* config/m32r/m32r.c (gen_compare): Fix reg/smallconst equal code,
the patch for which was accidentally omitted from the previous commit.
From-SVN: r113249
+2006-04-25 Nick Clifton <nickc@redhat.com>
+
+ * config/m32r/m32r.c (gen_compare): Fix reg/smallconst equal code,
+ the patch for which was accidentally omitted from the previous
+ commit.
+
2006-04-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
PR target/26775
/* Reg/smallconst equal comparison. */
if (compare_code == EQ
&& GET_CODE (y) == CONST_INT
- && CMP_INT16_P (INTVAL (y)))
+ && UINT16_P (INTVAL (y)))
{
rtx tmp = gen_reg_rtx (SImode);
- emit_insn (gen_addsi3 (tmp, x, GEN_INT (-INTVAL (y))));
+ emit_insn (gen_xorsi3 (tmp, x, GEN_INT (INTVAL (y))));
return gen_rtx (code, CCmode, tmp, const0_rtx);
}