OSDN Git Service

* config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use defined
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Mar 2009 21:58:31 +0000 (21:58 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Mar 2009 21:58:31 +0000 (21:58 +0000)
        names instead of magic constants for REX SSE registers.

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

gcc/ChangeLog
gcc/config/i386/i386.h

index 213a5dc..012e808 100644 (file)
@@ -1,7 +1,8 @@
 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
 
-       * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not
-       shadow "i" variable.
+       * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
+       variable.  Use defined names instead of magic constants for REX SSE
+       registers.
 
 2009-03-01  Richard Guenther  <rguenther@suse.de>
 
index aa46097..3149442 100644 (file)
@@ -942,10 +942,10 @@ do {                                                                      \
       {                                                                        \
        call_used_regs[4 /*RSI*/] = 0;                                  \
        call_used_regs[5 /*RDI*/] = 0;                                  \
-       for (i = 0; i < 8; i++)                                         \
-         call_used_regs[45+i] = 0;                                     \
        call_used_regs[27 /*XMM6*/] = 0;                                \
        call_used_regs[28 /*XMM7*/] = 0;                                \
+       for (i = FIRST_REX_SSE_REG; i <= LAST_REX_SSE_REG; i++)         \
+         call_used_regs[i] = 0;                                        \
       }                                                                        \
     if (! TARGET_MMX)                                                  \
       for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)                      \