Hi,

For sparc, the scan for 'vectorized 2 loops' in vect/trapv-vect-reduc-4.c fail because the vector instructions min and max are not supported.

Tested on x86_64. Tested on sparc by Rainer.

Committed as obvious.

Thanks,
- Tom
Fix vect/trapv-vect-reduc-4.c for sparc

2015-08-12  Tom de Vries  <t...@codesourcery.com>

	PR testsuite/67175
	* gcc.dg/vect/trapv-vect-reduc-4.c: Add reduction detection scan.
	Handle absence of vector min/max for sparc.
---
 gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c b/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c
index 86f9b90..8fd353c 100644
--- a/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c
+++ b/gcc/testsuite/gcc.dg/vect/trapv-vect-reduc-4.c
@@ -46,4 +46,5 @@ int main (void)
   return 0;
 }
 
-/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
+/* { dg-final { scan-tree-dump-times "Detected reduction\\." 2 "vect"  } } */
+/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target { ! { sparc*-*-* } } } } } */
-- 
1.9.1

Reply via email to