Commit ff814010 by Uros Bizjak Committed by Uros Bizjak

re PR rtl-optimization/84157 ([nvptx] ICE: RTL check: expected code 'reg', have 'lshiftrt')

	PR rtl-optimization/84157
	* combine.c (change_zero_ext): Use REG_P predicate in
	front of HARD_REGISTER_P predicate.

From-SVN: r257302
parent 19416210
2018-02-01 Uros Bizjak <ubizjak@gmail.com>
PR rtl-optimization/84157
* combine.c (change_zero_ext): Use REG_P predicate in
front of HARD_REGISTER_P predicate.
2018-02-01 Georg-Johann Lay <avr@gjlay.de>
* config/avr/avr.c (avr_option_override): Move disabling of
......
......@@ -11483,7 +11483,7 @@ change_zero_ext (rtx pat)
if (mode != inner_mode)
{
if (HARD_REGISTER_P (x)
if (REG_P (x) && HARD_REGISTER_P (x)
&& !can_change_dest_mode (x, 0, mode))
continue;
......@@ -11501,7 +11501,7 @@ change_zero_ext (rtx pat)
x = SUBREG_REG (XEXP (x, 0));
if (GET_MODE (x) != mode)
{
if (HARD_REGISTER_P (x)
if (REG_P (x) && HARD_REGISTER_P (x)
&& !can_change_dest_mode (x, 0, mode))
continue;
......
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