aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2014-10-31 19:00:28 (GMT)
committerRong Xu <xur@google.com>2014-10-31 19:00:28 (GMT)
commit29098ff058814235fb39d00b7496b7f8345ed3eb (patch)
treef0aaf66f503399133223096679a60c1217a45391 /gcc-4.9/gcc/testsuite/gcc.target
parente86367917b8400cc955d8bba75dcc329cb0e75d0 (diff)
downloadtoolchain_gcc-29098ff058814235fb39d00b7496b7f8345ed3eb.zip
toolchain_gcc-29098ff058814235fb39d00b7496b7f8345ed3eb.tar.gz
toolchain_gcc-29098ff058814235fb39d00b7496b7f8345ed3eb.tar.bz2
[4.9] Backport patches fixed vectorization issues.
Backport 3 patches from upstream gcc that fixed some vectorization issues: r215585 fixed PR63341 r216508 fixed PR63563 r216770 fixed PR63530 Change-Id: I650bf25ef0843b1ff01911b567fb26e069fd4550
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.target/i386/pr63563.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/i386/pr63563.c b/gcc-4.9/gcc/testsuite/gcc.target/i386/pr63563.c
new file mode 100644
index 0000000..ce3e465
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.target/i386/pr63563.c
@@ -0,0 +1,17 @@
+/* PR tree-optimization/63563 */
+/* { dg-do compile } */
+/* { dg-options "-O3 -mavx2" } */
+
+struct A { unsigned long a, b, c, d; } a[1024] = { { 0, 1, 2, 3 } }, b;
+
+void
+foo (void)
+{
+ int i;
+ for (i = 0; i < 1024; i++)
+ {
+ a[i].a = a[i].b = a[i].c = b.c;
+ if (a[i].d)
+ a[i].d = b.d;
+ }
+}