]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
scal-to-vec1.c (one): New volatile variable.
authorRichard Sandiford <rdsandiford@googlemail.com>
Tue, 24 Jan 2012 19:23:56 +0000 (19:23 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 24 Jan 2012 19:23:56 +0000 (19:23 +0000)
gcc/testsuite/
* gcc.c-torture/execute/scal-to-vec1.c (one): New volatile variable.
(main): Use it instead of argc.

From-SVN: r183489

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/scal-to-vec1.c

index b34ea63af36563efd51f84c8f3bd1f0fafb56310..2d3bc6588961e7d5424f8f4fc00a52f4a3c6fa3c 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * gcc.c-torture/execute/scal-to-vec1.c (one): New volatile variable.
+       (main): Use it instead of argc.
+
 2012-01-24  Jason Merrill  <jason@redhat.com>
 
        PR c++/51973
index e2b43f4263530a56736cc2c4eb5630cb294410e9..f03be64182265e2170d27bb36c1ebd69c840a5cb 100644 (file)
@@ -24,13 +24,14 @@ do {\
     } \
 } while (0)
 
+volatile int one = 1;
 
 int main (int argc, char *argv[]) {
 #define fvec_2 (vector(4, float)){2., 2., 2., 2.}
 #define dvec_2 (vector(2, double)){2., 2.}
 
 
-    vector(8, short) v0 = {argc, 1,2,3,4,5,6,7};
+    vector(8, short) v0 = {one, 1, 2, 3, 4, 5, 6, 7};
     vector(8, short) v1;
 
     vector(4, float) f0 = {1., 2., 3., 4.};