OSDN Git Service

gcc/
authorjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Nov 2009 19:40:28 +0000 (19:40 +0000)
committerjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 30 Nov 2009 19:40:28 +0000 (19:40 +0000)
* config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
reloads to LO_REGS.

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

gcc/ChangeLog
gcc/config/arm/arm.h

index 9c8294c..71d9b8e 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-30  Julian Brown  <julian@codesourcery.com>
+
+       * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Don't restrict Thumb-2
+       reloads to LO_REGS.
+
 2009-11-30  Richard Henderson  <rth@redhat.com>
 
        * config/i386/i386.c (ix86_vec_interleave_v2df_operator_ok): New.
index 3f34954..691a860 100644 (file)
@@ -1275,7 +1275,7 @@ enum reg_class
    In general this is just CLASS, but for the Thumb core registers and
    immediate constants we prefer a LO_REGS class or a subset.  */
 #define PREFERRED_RELOAD_CLASS(X, CLASS)               \
-  (TARGET_ARM ? (CLASS) :                              \
+  (TARGET_32BIT ? (CLASS) :                            \
    ((CLASS) == GENERAL_REGS || (CLASS) == HI_REGS      \
     || (CLASS) == NO_REGS || (CLASS) == STACK_REG      \
    ? LO_REGS : (CLASS)))