Commit 4e2c881f by Pitchumani Sivanupandi Committed by Denis Chertykov

avr.c (avr_hard_regno_call_part_clobbered): Use LAST_CALLEE_SAVED_REG instead of…

avr.c (avr_hard_regno_call_part_clobbered): Use LAST_CALLEE_SAVED_REG instead of hard-coded register number.

	* config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
	LAST_CALLEE_SAVED_REG instead of hard-coded register number.
	(Last callee saved reg is different for AVR_TINY architecture)

From-SVN: r223009
parent bdfdc7da
2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
* config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
LAST_CALLEE_SAVED_REG instead of hard-coded register number.
(Last callee saved reg is different for AVR_TINY architecture)
2015-05-11 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
......
......@@ -11332,9 +11332,10 @@ avr_hard_regno_call_part_clobbered (unsigned regno, machine_mode mode)
return 0;
/* Return true if any of the following boundaries is crossed:
17/18, 27/28 and 29/30. */
17/18 or 19/20 (if AVR_TINY), 27/28 and 29/30. */
return ((regno < 18 && regno + GET_MODE_SIZE (mode) > 18)
return ((regno <= LAST_CALLEE_SAVED_REG &&
regno + GET_MODE_SIZE (mode) > (LAST_CALLEE_SAVED_REG + 1))
|| (regno < REG_Y && regno + GET_MODE_SIZE (mode) > REG_Y)
|| (regno < REG_Z && regno + GET_MODE_SIZE (mode) > REG_Z));
}
......
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