From: Jeffrey A Law Date: Mon, 16 Apr 2001 15:13:32 +0000 (+0000) Subject: pa.c (secondary_reload_class): SAR<->FP copies require a secondary register. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26ee120d31cf2890ac579d666661cbd829eec893;p=gcc.git pa.c (secondary_reload_class): SAR<->FP copies require a secondary register. * pa.c (secondary_reload_class): SAR<->FP copies require a secondary register. From-SVN: r41379 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da7a5e7c4bc..4c4dc57da1c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 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 diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 050681b54ba..5b8505be4b9 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -4694,6 +4694,13 @@ secondary_reload_class (class, mode, in) || (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);