From 9bd6a6aebf1d2ef3c8199d2c9a263dd47054d14c Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 28 Jul 2016 08:31:54 +0000 Subject: [PATCH] Add missing file. From-SVN: r238810 --- gcc/testsuite/g++.dg/vect/pr70944.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gcc/testsuite/g++.dg/vect/pr70944.cc diff --git a/gcc/testsuite/g++.dg/vect/pr70944.cc b/gcc/testsuite/g++.dg/vect/pr70944.cc new file mode 100644 index 00000000000..f8973aaff53 --- /dev/null +++ b/gcc/testsuite/g++.dg/vect/pr70944.cc @@ -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; + } +} -- 2.30.2