]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
xtensa.c (xtensa_secondary_reload_class): Use a secondary input reload for subword...
authorBob Wilson <bob.wilson@acm.org>
Fri, 4 Apr 2008 21:07:50 +0000 (21:07 +0000)
committerBob Wilson <bwilson@gcc.gnu.org>
Fri, 4 Apr 2008 21:07:50 +0000 (21:07 +0000)
* config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
secondary input reload for subword loads from the constant pool.

From-SVN: r133914

gcc/ChangeLog
gcc/config/xtensa/xtensa.c

index e36f404164e0826256ac5b45adb574041e9fa462..9fdf703d4f7f815ac064052f3f571b655fdc5d34 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-03  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
+       secondary input reload for subword loads from the constant pool.
+
 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
 
        * doc/include/gpl_v3.texi: Copy from trunk.
index ee91eafc47d90681e9a2c3224c55d2de26f0ab76..f9a90c3b1f16d874b351be9bb9930ee7caa29489 100644 (file)
@@ -2386,7 +2386,8 @@ xtensa_secondary_reload_class (enum reg_class class,
 
   if (!isoutput)
     {
-      if (class == FP_REGS && constantpool_mem_p (x))
+      if ((class == FP_REGS || GET_MODE_SIZE (mode) < UNITS_PER_WORD)
+         && constantpool_mem_p (x))
        return RL_REGS;
     }