From: Georg-Johann Lay Date: Fri, 29 Jul 2016 16:09:39 +0000 (+0000) Subject: avr.c (avr_out_compare): Use const0_rtx instead of 0 when testing for compares agains... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d51553e083cbed3f5c334573adc999654fb26df2;p=gcc.git 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 --- 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))