public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed, testsuite] Fix vect/trapv-vect-reduc-4.c for sparc
@ 2015-08-12  5:57 Tom de Vries
  2015-08-12  6:34 ` [RFC] Add check_effective_target_vect_min_max Tom de Vries
  0 siblings, 1 reply; 7+ messages in thread
From: Tom de Vries @ 2015-08-12  5:57 UTC (permalink / raw)
  To: gcc-patches; +Cc: ro

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

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

[-- Attachment #2: 0001-Fix-vect-trapv-vect-reduc-4.c-for-sparc.patch --]
[-- Type: text/x-patch, Size: 901 bytes --]

Fix vect/trapv-vect-reduc-4.c for sparc

2015-08-12  Tom de Vries  <tom@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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-23  8:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-12  5:57 [committed, testsuite] Fix vect/trapv-vect-reduc-4.c for sparc Tom de Vries
2015-08-12  6:34 ` [RFC] Add check_effective_target_vect_min_max Tom de Vries
2015-08-12  8:51   ` Rainer Orth
2015-08-12  9:15     ` Tom de Vries
2015-08-12  9:18       ` Rainer Orth
2015-08-12 10:06         ` Richard Biener
2015-08-23  9:05           ` [committed] Rename vect_no_int_max to vect_no_int_min_max Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).