From d51553e083cbed3f5c334573adc999654fb26df2 Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Fri, 29 Jul 2016 16:09:39 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/avr/avr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8c527ad1ac..b628b92eaab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-07-29 Georg-Johann Lay + + * 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 PR tree-optimization/57558 diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index 0f2c708c9f8..a2a0d388a95 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)) -- 2.30.2