re PR target/35496 (test failures between revs. 132950 and 132974)
authorUros Bizjak <ubizjak@gmail.com>
Sun, 9 Mar 2008 13:37:52 +0000 (14:37 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 9 Mar 2008 13:37:52 +0000 (14:37 +0100)
        PR target/35496
        * config/i386/i386.c (ix86_constant_algnment): Compute alignment using
        ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.

From-SVN: r133052

gcc/ChangeLog
gcc/config/i386/i386.c

index e907310934209a5a59697281c0f39ad9498abce1..8265c51c2b4104344f2afe1162761926961e80a0 100644 (file)
@@ -1,3 +1,9 @@
+2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/35496
+       * config/i386/i386.c (ix86_constant_algnment): Compute alignment using
+       ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
+
 2008-03-09  Ira Rosen  <irar@il.ibm.com>
 
        * config/rs6000/rs6000.c (builtin_description): Rename vector
index f1618e617bada15cd6eb67b49c2aa20b54a4bbf3..74b2be23d9be4b29b5cf95abed57701b48afc6d2 100644 (file)
@@ -16789,7 +16789,8 @@ ia32_multipass_dfa_lookahead (void)
 int
 ix86_constant_alignment (tree exp, int align)
 {
-  if (TREE_CODE (exp) == REAL_CST)
+  if (TREE_CODE (exp) == REAL_CST || TREE_CODE (exp) == VECTOR_CST
+      || TREE_CODE (exp) == INTEGER_CST)
     {
       if (TYPE_MODE (TREE_TYPE (exp)) == DFmode && align < 64)
        return 64;