Commit 62064ec0 by Andrew Stubbs Committed by Andrew Stubbs

Fix vector testcases for amdgcn.

2019-12-17  Andrew Stubbs  <ams@codesourcery.com>

	gcc/testsuite/
	* gcc.dg/vect/pr65947-8.c: Change pass conditions for amdgcn.
	* gcc.dg/vect/vect-multitypes-11.c: Ensure that main isn't vectorized.
	* gcc.dg/vect/vect-multitypes-12.c: Likewise.

From-SVN: r279465
parent 634c5bca
2019-12-17 Andrew Stubbs <ams@codesourcery.com>
* gcc.dg/vect/pr65947-8.c: Change pass conditions for amdgcn.
* gcc.dg/vect/vect-multitypes-11.c: Ensure that main isn't vectorized.
* gcc.dg/vect/vect-multitypes-12.c: Likewise.
2019-12-17 Christophe Lyon <christophe.lyon@linaro.org> 2019-12-17 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/arm/pr45701-1.c: Adjust for -mpure-code. * gcc.target/arm/pr45701-1.c: Adjust for -mpure-code.
......
...@@ -7,7 +7,7 @@ extern void abort (void) __attribute__ ((noreturn)); ...@@ -7,7 +7,7 @@ extern void abort (void) __attribute__ ((noreturn));
#define N 27 #define N 27
/* Condition reduction with multiple types in the comparison. Will fail to /* Condition reduction with multiple types in the comparison. Will fail to
vectorize. */ vectorize on architectures requiring matching vector sizes. */
int int
condition_reduction (char *a, int min_v) condition_reduction (char *a, int min_v)
...@@ -41,5 +41,6 @@ main (void) ...@@ -41,5 +41,6 @@ main (void)
return 0; return 0;
} }
/* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" } } */ /* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" { target { ! amdgcn*-*-* } } } } */
/* { dg-final { scan-tree-dump "multiple types in double reduction or condition reduction" "vect" } } */ /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" { target amdgcn*-*-* } } } */
/* { dg-final { scan-tree-dump "multiple types in double reduction or condition reduction" "vect" { target { ! amdgcn*-*-* } } } } */
...@@ -17,6 +17,7 @@ foo (int len, int *z) { ...@@ -17,6 +17,7 @@ foo (int len, int *z) {
} }
__attribute__ ((optimize(("no-tree-vectorize"))))
int main (void) int main (void)
{ {
short i; short i;
......
...@@ -16,7 +16,7 @@ foo (int len, int *z) { ...@@ -16,7 +16,7 @@ foo (int len, int *z) {
} }
} }
__attribute__ ((optimize("no-tree-vectorize")))
int main (void) int main (void)
{ {
char i; char i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment