PR target/37270
authorkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Aug 2008 22:23:20 +0000 (22:23 +0000)
committerkkojima <kkojima@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Aug 2008 22:23:20 +0000 (22:23 +0000)
* config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
the reload address with the index register for SFmode
access with a displacement.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139809 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sh/sh.h

index 2449325..6f77e5c 100644 (file)
@@ -1,3 +1,10 @@
+2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       PR target/37270
+       * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
+       the reload address with the index register for SFmode
+       access with a displacement.
+
 2008-08-30  Jan Hubicka  <jh@suse.cz>
 
        * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
index 15bc744..d5ea612 100644 (file)
@@ -2613,8 +2613,8 @@ struct sh_args {
       if (TARGET_SH2E && MODE == SFmode)                               \
        {                                                               \
          X = copy_rtx (X);                                             \
-         push_reload (index_rtx, NULL_RTX, &XEXP (X, 1), NULL,         \
-                      R0_REGS, Pmode, VOIDmode, 0, 0, (OPNUM),         \
+         push_reload (X, NULL_RTX, &X, NULL,                           \
+                      BASE_REG_CLASS, Pmode, VOIDmode, 0, 0, (OPNUM),  \
                       (TYPE));                                         \
          goto WIN;                                                     \
        }                                                               \