diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/vect-strided-a-u16-i2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/vect-strided-a-u16-i2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/vect-strided-a-u16-i2.c b/gcc/testsuite/gcc.dg/vect/vect-strided-a-u16-i2.c index 25cabb693c5..dca34ef1f29 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-strided-a-u16-i2.c +++ b/gcc/testsuite/gcc.dg/vect/vect-strided-a-u16-i2.c @@ -10,6 +10,8 @@ typedef struct { unsigned short b; } s; +volatile int y = 0; + __attribute__ ((noinline)) int main1 () { @@ -22,8 +24,8 @@ main1 () { arr[i].a = i; arr[i].b = i * 2; - if (arr[i].a == 178) - abort(); + if (y) /* Avoid vectorization. */ + abort (); } for (i = 0; i < N; i++) |