[PATCH][rs6000] Fix offsettable memory reference for 750CL
Revital1 Eres
ERES@il.ibm.com
Thu Sep 6 08:06:00 GMT 2007
Hello,
This patch fixes the addressing for ppc750CL.
Bootstrapped/regtested on ppc64 (only C due to recent failure with
mainline on ppc).
OK for mainline?
:ADDPATCH rs6000:
Thanks,
Revital
2007-09-06 Revital Eres <eres@il.ibm.com>
* config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
Fix offsettable memory reference for 750CL.
Index: config/rs6000/rs6000.c
===================================================================
--- config/rs6000/rs6000.c (revision 128130)
+++ config/rs6000/rs6000.c (working copy)
@@ -3203,6 +3203,11 @@
case V2SImode:
case V1DImode:
case V2SFmode:
+ /* Paired vector modes. Only reg+reg addressing is valid and
+ constant offset zero should not occur due to canonicalization.
+ Allow any offset when not strict before reload. */
+ if (TARGET_PAIRED_FLOAT)
+ return !strict;
/* SPE vector modes. */
return SPE_CONST_OFFSET_OK (offset);
More information about the Gcc-patches
mailing list