Commit 2c51d187 by Jeff Law

pa.c (emit_move_sequence): Handle secondary reload when loading a constant into SAR.

	* pa.c (emit_move_sequence): Handle secondary reload when loading
	a constant into SAR.

From-SVN: r8272
parent 7a0934e7
...@@ -832,10 +832,11 @@ emit_move_sequence (operands, mode, scratch_reg) ...@@ -832,10 +832,11 @@ emit_move_sequence (operands, mode, scratch_reg)
return 1; return 1;
} }
/* Handle secondary reloads for SAR. These occur when trying to load /* Handle secondary reloads for SAR. These occur when trying to load
the SAR from memory or from a FP register. */ the SAR from memory a FP register, or with a constant. */
else if (GET_CODE (operand0) == REG else if (GET_CODE (operand0) == REG
&& REGNO_REG_CLASS (REGNO (operand0)) == SHIFT_REGS && REGNO_REG_CLASS (REGNO (operand0)) == SHIFT_REGS
&& (GET_CODE (operand1) == MEM && (GET_CODE (operand1) == MEM
|| GET_CODE (operand1) == CONST_INT
|| (GET_CODE (operand1) == REG || (GET_CODE (operand1) == REG
&& FP_REG_CLASS_P (REGNO_REG_CLASS (REGNO (operand1))))) && FP_REG_CLASS_P (REGNO_REG_CLASS (REGNO (operand1)))))
&& scratch_reg) && scratch_reg)
......
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