diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2012-01-24 19:23:56 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2012-01-24 19:23:56 +0000 |
commit | 2c49569ecea56dc875035dfaf1984f4746c9c46e (patch) | |
tree | 37f60788554c580565ba88e005c3b1fc26f553f7 | |
parent | 999bcff5bd185eca61a9781c043a56f06b133366 (diff) | |
download | gcc-2c49569ecea56dc875035dfaf1984f4746c9c46e.zip gcc-2c49569ecea56dc875035dfaf1984f4746c9c46e.tar.gz gcc-2c49569ecea56dc875035dfaf1984f4746c9c46e.tar.bz2 |
scal-to-vec1.c (one): New volatile variable.
gcc/testsuite/
* gcc.c-torture/execute/scal-to-vec1.c (one): New volatile variable.
(main): Use it instead of argc.
From-SVN: r183489
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/scal-to-vec1.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b34ea63a..2d3bc65 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.c-torture/execute/scal-to-vec1.c b/gcc/testsuite/gcc.c-torture/execute/scal-to-vec1.c index e2b43f4..f03be64 100644 --- a/gcc/testsuite/gcc.c-torture/execute/scal-to-vec1.c +++ b/gcc/testsuite/gcc.c-torture/execute/scal-to-vec1.c @@ -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.}; |