PR target/54950
* config/m32c/predicates.md (m32c_const_u16_operand): New.
* config/m32c/muldiv.md: Use it.
From-SVN: r192553
+2012-10-17 DJ Delorie <dj@delorie.com>
+
+ PR target/54950
+ * config/m32c/predicates.md (m32c_const_u16_operand): New.
+ * config/m32c/muldiv.md: Use it.
+
2012-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* config/pa/pa.md (addhi3): Fix typo in last change.
(define_insn "umulhisi3_c"
[(set (match_operand:SI 0 "ra_operand" "=Rsi")
(mult:SI (zero_extend:SI (match_operand:HI 1 "mra_operand" "%0"))
- (match_operand 2 "immediate_operand" "i")))]
+ (match_operand 2 "m32c_const_u16_operand" "i")))]
""
"mulu.w\t%u2,%1"
[(set_attr "flags" "o")]
(define_predicate "m32c_1mask16_operand"
(and (match_operand 0 "const_int_operand")
(match_test "m32c_const_ok_for_constraint_p(INTVAL(op), 'I', \"Imw\")")))
+
+(define_predicate "m32c_const_u16_operand"
+ (and (match_operand 0 "const_int_operand")
+ (match_test "fprintf(stderr, \"u16=%d\\n\", INTVAL(op)),INTVAL (op) >= 0 && INTVAL (op) <= 65535")))