]> gcc.gnu.org Git - gcc.git/commitdiff
avr.c (avr_out_compare): Use const0_rtx instead of 0 when testing for compares agains...
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 29 Jul 2016 16:09:39 +0000 (16:09 +0000)
committerGeorg-Johann Lay <gjl@gcc.gnu.org>
Fri, 29 Jul 2016 16:09:39 +0000 (16:09 +0000)
* config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
when testing for compares against constants of the form 0xabab.

From-SVN: r238879

gcc/ChangeLog
gcc/config/avr/avr.c

index a8c527ad1ac09da9f232d977738457fba5a6999b..b628b92eaabe8dc3d2ce993fc1e4fcbbfff093ba 100644 (file)
@@ -1,3 +1,8 @@
+2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
+
+       * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
+       when testing for compares against constants of the form 0xabab.
+
 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
 
        PR tree-optimization/57558
index 0f2c708c9f85dfd3dff6f95429c62125bd173f94..a2a0d388a9557e2d8fdcb8445e58322de4e8e110 100644 (file)
@@ -5357,7 +5357,7 @@ avr_out_compare (rtx_insn *insn, rtx *xop, int *plen)
      the constant is of the form 0xabab.  */
 
   if (n_bytes == 2
-      && xval != 0
+      && xval != const0_rtx
       && test_hard_reg_class (LD_REGS, xreg)
       && compare_eq_p (insn)
       && !reg_unused_after (insn, xreg))
This page took 0.132234 seconds and 5 git commands to generate.