diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87a376329b9..b1956008a8a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-09-06 Revital Eres + + * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): + Fix offsettable memory reference for 750CL. + 2007-09-06 Pat Haugen * reload.c (find_reloads_address_1): Try to preserve original diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 9768a3f4909..be82c3f6442 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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);