From: Uros Bizjak Date: Sun, 9 Mar 2008 13:37:52 +0000 (+0100) Subject: re PR target/35496 (test failures between revs. 132950 and 132974) X-Git-Tag: releases/gcc-4.4.0~6118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be3d47899e7cb4631032a36de11a4cc8bcde7bcb;p=thirdparty%2Fgcc.git re PR target/35496 (test failures between revs. 132950 and 132974) 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e90731093420..8265c51c2b41 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-03-09 Uros Bizjak + + 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 * config/rs6000/rs6000.c (builtin_description): Rename vector diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index f1618e617bad..74b2be23d9be 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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;