summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap2.c')
-rw-r--r--gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap2.c b/gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap2.c
index 23cea24540d..04f18fbb591 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap2.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-strided-u8-i8-gap2.c
@@ -16,8 +16,6 @@ typedef struct {
unsigned char h;
} s;
-volatile int y = 0;
-
__attribute__ ((noinline)) int
main1 (s *arr)
{
@@ -71,8 +69,7 @@ int main (void)
arr[i].f = i * 2 + 2;
arr[i].g = i - 3;
arr[i].h = 56;
- if (y) /* Avoid vectorization. */
- abort ();
+ asm volatile ("" ::: "memory");
}
main1 (arr);