aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIra Rosen <irar@il.ibm.com>2009-03-03 07:42:26 +0000
committerIra Rosen <irar@gcc.gnu.org>2009-03-03 07:42:26 +0000
commitfc0ffad7cba0735ea2b159aaf00521b9c8da2319 (patch)
tree6cd78206410c881b2cc464ec5d4506b9109fe52f /gcc
parent7d4fba4aaca3f36d15a719acb5c74cb7ff3966ec (diff)
downloadgcc-fc0ffad7cba0735ea2b159aaf00521b9c8da2319.zip
gcc-fc0ffad7cba0735ea2b159aaf00521b9c8da2319.tar.gz
gcc-fc0ffad7cba0735ea2b159aaf00521b9c8da2319.tar.bz2
re PR tree-optimization/39248 (FAIL: gcc.dg/vect/vect-complex-1.c)
PR tree-optimization/39248 * gcc.dg/vect/vect-complex-1.c: Add attribute aligned to the arrays. * gcc.dg/vect/vect-iv-6.c: Don't expect to fail to vectorize on targets without vector misalignment support. * lib/target-supports.exp (check_effective_target_vect_short_mult): Add check_effective_target_arm32. From-SVN: r144569
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog11
-rw-r--r--gcc/testsuite/gcc.dg/vect/vect-complex-1.c8
-rw-r--r--gcc/testsuite/gcc.dg/vect/vect-iv-6.c2
-rw-r--r--gcc/testsuite/lib/target-supports.exp3
4 files changed, 18 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 983fe83..5d5b967 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,14 @@
+2009-03-03 Ira Rosen <irar@il.ibm.com>
+
+ PR tree-optimization/39248
+ * gcc.dg/vect/vect-complex-1.c: Add attribute aligned
+ to the arrays.
+ * gcc.dg/vect/vect-iv-6.c: Don't expect to fail to vectorize
+ on targets without vector misalignment support.
+ * lib/target-supports.exp
+ (check_effective_target_vect_short_mult): Add
+ check_effective_target_arm32.
+
2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/39335
diff --git a/gcc/testsuite/gcc.dg/vect/vect-complex-1.c b/gcc/testsuite/gcc.dg/vect/vect-complex-1.c
index 9be8864..e2d0adc 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-complex-1.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-complex-1.c
@@ -6,19 +6,19 @@
#define N 16
-_Complex float a[N] =
+_Complex float a[N] __attribute__ ((__aligned__(16))) =
{ 10.0F + 20.0iF, 11.0F + 21.0iF, 12.0F + 22.0iF, 13.0F + 23.0iF,
14.0F + 24.0iF, 15.0F + 25.0iF, 16.0F + 26.0iF, 17.0F + 27.0iF,
18.0F + 28.0iF, 19.0F + 29.0iF, 20.0F + 30.0iF, 21.0F + 31.0iF,
22.0F + 32.0iF, 23.0F + 33.0iF, 24.0F + 34.0iF, 25.0F + 35.0iF };
-_Complex float b[N] =
+_Complex float b[N] __attribute__ ((__aligned__(16))) =
{ 30.0F + 40.0iF, 31.0F + 41.0iF, 32.0F + 42.0iF, 33.0F + 43.0iF,
34.0F + 44.0iF, 35.0F + 45.0iF, 36.0F + 46.0iF, 37.0F + 47.0iF,
38.0F + 48.0iF, 39.0F + 49.0iF, 40.0F + 50.0iF, 41.0F + 51.0iF,
42.0F + 52.0iF, 43.0F + 53.0iF, 44.0F + 54.0iF, 45.0F + 55.0iF };
-_Complex float c[N];
-_Complex float res[N] =
+_Complex float c[N] __attribute__ ((__aligned__(16)));
+_Complex float res[N] __attribute__ ((__aligned__(16))) =
{ 40.0F + 60.0iF, 42.0F + 62.0iF, 44.0F + 64.0iF, 46.0F + 66.0iF,
48.0F + 68.0iF, 50.0F + 70.0iF, 52.0F + 72.0iF, 54.0F + 74.0iF,
56.0F + 76.0iF, 58.0F + 78.0iF, 60.0F + 80.0iF, 62.0F + 82.0iF,
diff --git a/gcc/testsuite/gcc.dg/vect/vect-iv-6.c b/gcc/testsuite/gcc.dg/vect/vect-iv-6.c
index b1a0d53..a0863cf 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-iv-6.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-iv-6.c
@@ -46,5 +46,5 @@ int main (void)
return main1 (3);
}
-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" {xfail vect_no_align } } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { cleanup-tree-dump "vect" } } */
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 03c1779..115f992 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -2288,7 +2288,8 @@ proc check_effective_target_vect_short_mult { } {
|| [istarget spu-*-*]
|| [istarget i?86-*-*]
|| [istarget x86_64-*-*]
- || [istarget powerpc*-*-*] } {
+ || [istarget powerpc*-*-*]
+ || [check_effective_target_arm32] } {
set et_vect_short_mult_saved 1
}
}