diff options
author | Nick Clifton <nickc@redhat.com> | 2006-04-25 14:08:35 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2006-04-25 14:08:35 +0000 |
commit | 5789bd0667a17fdb2c28257809b2897ef0e676cd (patch) | |
tree | ca14cc47088baa2bd11349a41b4c6a946a63f775 | |
parent | a0cde57a943636aa436aee30acf9351f64db9ea7 (diff) | |
download | gcc-5789bd0667a17fdb2c28257809b2897ef0e676cd.zip gcc-5789bd0667a17fdb2c28257809b2897ef0e676cd.tar.gz gcc-5789bd0667a17fdb2c28257809b2897ef0e676cd.tar.bz2 |
m32r.c (gen_compare): Fix reg/smallconst equal code...
* 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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/m32r/m32r.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 143f9b6..d17872f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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 diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c index abeea18..ab0b303 100644 --- a/gcc/config/m32r/m32r.c +++ b/gcc/config/m32r/m32r.c @@ -1150,11 +1150,11 @@ gen_compare (enum rtx_code code, rtx x, rtx y, int need_compare) /* 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); } |