* pa.c (secondary_reload_class): SAR<->FP copies require a
secondary register.
From-SVN: r41379
Mon Apr 16 08:03:48 2001 Jeffrey A Law (law@cygnus.com)
+ * pa.c (secondary_reload_class): SAR<->FP copies require a
+ secondary register.
+
* install.texi (mips-mips-bsd): Update list of functions
required to include memmove.
* tm.texi (TARGET_MEM_FUNCTIONS): Update list of implicitly
|| (class == SHIFT_REGS && (regno <= 0 || regno >= 32)))
return GENERAL_REGS;
+ /* A SAR<->FP register copy requires a secondary register (GPR) as
+ well as secondary memory. */
+ if (regno >= 0 && regno < FIRST_PSEUDO_REGISTER
+ && ((REGNO_REG_CLASS (regno) == SHIFT_REGS && FP_REG_CLASS_P (class))
+ || (class == SHIFT_REGS && FP_REG_CLASS_P (REGNO_REG_CLASS (regno)))))
+ return GENERAL_REGS;
+
if (GET_CODE (in) == HIGH)
in = XEXP (in, 0);