aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/avr
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2016-07-29 16:09:39 +0000
committerGeorg-Johann Lay <gjl@gcc.gnu.org>2016-07-29 16:09:39 +0000
commitd51553e083cbed3f5c334573adc999654fb26df2 (patch)
treeebce2af4836c71268f87d2135a3656c319b61eba /gcc/config/avr
parent61c73a7fedd9cc3c18c0fd5891ac9ff547d0a294 (diff)
downloadgcc-d51553e083cbed3f5c334573adc999654fb26df2.zip
gcc-d51553e083cbed3f5c334573adc999654fb26df2.tar.gz
gcc-d51553e083cbed3f5c334573adc999654fb26df2.tar.bz2
avr.c (avr_out_compare): Use const0_rtx instead of 0 when testing for compares against constants of the...
* 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
Diffstat (limited to 'gcc/config/avr')
-rw-r--r--gcc/config/avr/avr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 0f2c708..a2a0d38 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -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))