Fix offsettable memory reference for 750CL

From-SVN: r128184
This commit is contained in:
Revital Eres 2007-09-06 14:30:19 +00:00 committed by Revital Eres
parent bd379f7328
commit d42a3bae0f
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-09-06 Revital Eres <eres@il.ibm.com>
* config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
Fix offsettable memory reference for 750CL.
2007-09-06 Pat Haugen <pthaugen@us.ibm.com>
* reload.c (find_reloads_address_1): Try to preserve original

View File

@ -3203,6 +3203,11 @@ rs6000_legitimate_offset_address_p (enum machine_mode mode, rtx x, int strict)
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);