diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2021-04-09 13:43:17 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2021-04-09 13:43:17 +0100 |
commit | a708de07a1075b4707e640466b987fd724e823b7 (patch) | |
tree | 48bfd00eaf084472fd0f83ec54a9beedfaec83d6 | |
parent | 7e45c45d9ccf9d0af2ce29fc5016506ba30676c0 (diff) | |
download | gcc-a708de07a1075b4707e640466b987fd724e823b7.zip gcc-a708de07a1075b4707e640466b987fd724e823b7.tar.gz gcc-a708de07a1075b4707e640466b987fd724e823b7.tar.bz2 |
testsuite: Fix gcc.dg/vect/pr65947-7.c
This test was failing on aarch64 targets because we inlined the
test function into main, making it vectorisable.
gcc/testsuite/
* gcc.dg/vect/pr65947-7.c: Add a noipa attribute. Expect the
loop to vectorized if vect_fold_extract_last.
-rw-r--r-- | gcc/testsuite/gcc.dg/vect/pr65947-7.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-7.c b/gcc/testsuite/gcc.dg/vect/pr65947-7.c index 287f57e..16cdcd1 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-7.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-7.c @@ -9,7 +9,7 @@ extern void abort (void) __attribute__ ((noreturn)); /* Condition reduction with comparison is a different type to the data. Will fail to vectorize. */ -int +int __attribute__ ((noipa)) condition_reduction (short *a, int min_v, int *b) { int last = N + 65; @@ -52,4 +52,5 @@ main (void) return 0; } -/* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" } } */ +/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target vect_fold_extract_last } } } */ +/* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" { target { ! vect_fold_extract_last } } } } */ |