Add missing file.
authorMartin Liska <marxin@gcc.gnu.org>
Thu, 28 Jul 2016 08:31:54 +0000 (08:31 +0000)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 28 Jul 2016 08:31:54 +0000 (08:31 +0000)
From-SVN: r238810

gcc/testsuite/g++.dg/vect/pr70944.cc [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/vect/pr70944.cc b/gcc/testsuite/g++.dg/vect/pr70944.cc
new file mode 100644 (file)
index 0000000..f8973aa
--- /dev/null
@@ -0,0 +1,13 @@
+/* { dg-do compile { target x86_64-*-* } } */
+/* { dg-additional-options "-O3 -march=core-avx2" } */
+
+unsigned *a;
+void
+fn1 ()
+{
+  for (int i; i; ++i)
+    {
+      unsigned g (a[i] << 8 >> 24);
+      a[i] = g;
+    }
+}