From 542803c9adea448854477e0a544455cffda7cd51 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Wed, 18 Dec 2019 11:47:26 +0000 Subject: [PATCH] Fix vect/pr65947-8.c testcase for amdgcn. 2019-12-18 Andrew Stubbs gcc/testsuite/ * gcc.dg/vect/pr65947-8.c: Change pass conditions for amdgcn. From-SVN: r279521 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/vect/pr65947-8.c | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a0b25efde5b..5dcd460deab 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-12-18 Andrew Stubbs + + * gcc.dg/vect/pr65947-8.c: Change pass conditions for amdgcn. + 2019-12-18 Eric Botcazou * gnat.dg/warn32.adb: New test. diff --git a/gcc/testsuite/gcc.dg/vect/pr65947-8.c b/gcc/testsuite/gcc.dg/vect/pr65947-8.c index f0f1ac29699..a2a940daf1a 100644 --- a/gcc/testsuite/gcc.dg/vect/pr65947-8.c +++ b/gcc/testsuite/gcc.dg/vect/pr65947-8.c @@ -7,7 +7,7 @@ extern void abort (void) __attribute__ ((noreturn)); #define N 27 /* Condition reduction with multiple types in the comparison. Will fail to - vectorize. */ + vectorize on architectures requiring matching vector sizes. */ int condition_reduction (char *a, int min_v) @@ -41,5 +41,6 @@ main (void) return 0; } -/* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" } } */ -/* { dg-final { scan-tree-dump "multiple types in double reduction or condition reduction" "vect" } } */ +/* { dg-final { scan-tree-dump-not "LOOP VECTORIZED" "vect" { target { ! amdgcn*-*-* } } } } */ +/* { 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*-*-* } } } } */ -- 2.30.2