* config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
authorbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Apr 2008 03:55:15 +0000 (03:55 +0000)
committerbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Apr 2008 03:55:15 +0000 (03:55 +0000)
        secondary input reload for subword loads from the constant pool.

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

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

index c077778..d5bbc03 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-03  Janis Johnson  <janis187@us.ibm.com>
 
        PR target/35713
index d61625d..2518aed 100644 (file)
@@ -2839,7 +2839,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;
     }