Commit 33159866 by Uros Bizjak

i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in QImode checks.

	* config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
	QImode checks.

From-SVN: r197933
parent 14c96bca
...@@ -33972,13 +33972,13 @@ ix86_hard_regno_mode_ok (int regno, enum machine_mode mode) ...@@ -33972,13 +33972,13 @@ ix86_hard_regno_mode_ok (int regno, enum machine_mode mode)
{ {
/* Take care for QImode values - they can be in non-QI regs, /* Take care for QImode values - they can be in non-QI regs,
but then they do cause partial register stalls. */ but then they do cause partial register stalls. */
if (TARGET_64BIT || QI_REGNO_P (regno)) if (ANY_QI_REGNO_P (regno))
return true; return true;
if (!TARGET_PARTIAL_REG_STALL) if (!TARGET_PARTIAL_REG_STALL)
return true; return true;
/* LRA checks if the hard register is OK for the given mode. /* LRA checks if the hard register is OK for the given mode.
QImode values can live in non-QI regs, so we allow all QImode values can live in non-QI regs, so we allow all
registers here. */ registers here. */
if (lra_in_progress) if (lra_in_progress)
return true; return true;
return !can_create_pseudo_p (); return !can_create_pseudo_p ();
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