Commit d51553e0 by Georg-Johann Lay Committed by Georg-Johann Lay

avr.c (avr_out_compare): Use const0_rtx instead of 0 when testing for compares…

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
parent 61c73a7f
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
......
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment