From: gjl Date: Fri, 29 Jul 2016 16:09:39 +0000 (+0000) Subject: * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07ce0c8a21dd7b0af168a82d30131ea9aad37c8c;p=thirdparty%2Fgcc.git * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0 when testing for compares against constants of the form 0xabab. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238879 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a8c527ad1ac0..b628b92eaabe 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 0f2c708c9f85..a2a0d388a955 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))