public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite, committed] Fix effective target for ivdep tests
@ 2014-01-30 18:19 Richard Sandiford
  2014-02-10 11:09 ` Eric Botcazou
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Sandiford @ 2014-01-30 18:19 UTC (permalink / raw)
  To: gcc-patches

The ivdep tests use int arrays but required vect_float rather than vect_int.

Tested on mipsisa64-sde-elf, where it fixes some spurious failures for
-mips32r2/-mfp64, and on mips64-linux-gnu.  Applied as obvious.

There are still some other vect failures for mipsisa64-sde-elf but
I'll look at them separately.

Thanks,
Richard


gcc/testsuite/
	* g++.dg/vect/pr33426-ivdep.cc, g++.dg/vect/pr33426-ivdep-2.cc,
	g++.dg/vect/pr33426-ivdep-3.cc, g++.dg/vect/pr33426-ivdep-4.cc,
	gcc.dg/vect/vect-ivdep-1.c, gcc.dg/vect/vect-ivdep-2.c: Require
	vect_int rather than vect_float.

Index: gcc/testsuite/g++.dg/vect/pr33426-ivdep-2.cc
===================================================================
--- gcc/testsuite/g++.dg/vect/pr33426-ivdep-2.cc	2014-01-18 09:57:07.291548764 +0000
+++ gcc/testsuite/g++.dg/vect/pr33426-ivdep-2.cc	2014-01-29 21:58:47.202500320 +0000
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target vect_float } */
+/* { dg-require-effective-target vect_int } */
 /* { dg-additional-options "-O3 -fopt-info-vec-optimized -fdump-tree-original -fdump-tree-gimple" } */
 
 /* PR other/33426 */
Index: gcc/testsuite/g++.dg/vect/pr33426-ivdep-3.cc
===================================================================
--- gcc/testsuite/g++.dg/vect/pr33426-ivdep-3.cc	2014-01-18 09:57:07.311548919 +0000
+++ gcc/testsuite/g++.dg/vect/pr33426-ivdep-3.cc	2014-01-29 21:59:06.329719568 +0000
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target vect_float } */
+/* { dg-require-effective-target vect_int } */
 /* { dg-additional-options "-std=c++11 -O3 -fopt-info-vec-optimized -fdump-tree-original -fdump-tree-gimple" } */
 
 /* PR other/33426 */
Index: gcc/testsuite/g++.dg/vect/pr33426-ivdep-4.cc
===================================================================
--- gcc/testsuite/g++.dg/vect/pr33426-ivdep-4.cc	2014-01-18 09:57:07.312548926 +0000
+++ gcc/testsuite/g++.dg/vect/pr33426-ivdep-4.cc	2014-01-29 21:59:14.418815930 +0000
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target vect_float } */
+/* { dg-require-effective-target vect_int } */
 /* { dg-additional-options "-std=c++11 -O3 -fopt-info-vec-optimized -fdump-tree-original -fdump-tree-gimple" } */
 
 /* PR other/33426 */
Index: gcc/testsuite/g++.dg/vect/pr33426-ivdep.cc
===================================================================
--- gcc/testsuite/g++.dg/vect/pr33426-ivdep.cc	2014-01-18 09:57:07.311548919 +0000
+++ gcc/testsuite/g++.dg/vect/pr33426-ivdep.cc	2014-01-29 21:58:39.500415778 +0000
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target vect_float } */
+/* { dg-require-effective-target vect_int } */
 /* { dg-additional-options "-O3 -fopt-info-vec-optimized" } */
 
 /* PR other/33426 */
Index: gcc/testsuite/gcc.dg/vect/vect-ivdep-1.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/vect-ivdep-1.c	2014-01-18 09:57:06.969546279 +0000
+++ gcc/testsuite/gcc.dg/vect/vect-ivdep-1.c	2014-01-29 22:01:02.099343944 +0000
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target vect_float } */
+/* { dg-require-effective-target vect_int } */
 /* { dg-additional-options "-O3 -fopt-info-vec-optimized" } */
 
 /* PR other/33426 */
Index: gcc/testsuite/gcc.dg/vect/vect-ivdep-2.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/vect-ivdep-2.c	2014-01-18 09:57:06.970546286 +0000
+++ gcc/testsuite/gcc.dg/vect/vect-ivdep-2.c	2014-01-29 22:01:07.113422701 +0000
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-require-effective-target vect_float } */
+/* { dg-require-effective-target vect_int } */
 /* { dg-additional-options "-O3 -fopt-info-vec-optimized" } */
 
 /* PR other/33426 */

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

* Re: [testsuite, committed] Fix effective target for ivdep tests
  2014-01-30 18:19 [testsuite, committed] Fix effective target for ivdep tests Richard Sandiford
@ 2014-02-10 11:09 ` Eric Botcazou
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Botcazou @ 2014-02-10 11:09 UTC (permalink / raw)
  To: Richard Sandiford; +Cc: gcc-patches

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

> The ivdep tests use int arrays but required vect_float rather than vect_int.
> 
> Tested on mipsisa64-sde-elf, where it fixes some spurious failures for
> -mips32r2/-mfp64, and on mips64-linux-gnu.  Applied as obvious.

The 3rd and 4th tests also require vect_int_mult.

Tested on x86-64/Linux and SPARC/Solaris, applied on the mainline as obvious.


2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>

	* g++.dg/vect/pr33426-ivdep-3.cc: Require vect_int_mult as well.
	* g++.dg/vect/pr33426-ivdep-4.cc: Likewise.


-- 
Eric Botcazou

[-- Attachment #2: p.diff --]
[-- Type: text/x-patch, Size: 979 bytes --]

Index: g++.dg/vect/pr33426-ivdep-4.cc
===================================================================
--- g++.dg/vect/pr33426-ivdep-4.cc	(revision 207641)
+++ g++.dg/vect/pr33426-ivdep-4.cc	(working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_int } */
+/* { dg-require-effective-target vect_int_mult } */
 /* { dg-additional-options "-std=c++11 -O3 -fopt-info-vec-optimized -fdump-tree-original -fdump-tree-gimple" } */
 
 /* PR other/33426 */
Index: g++.dg/vect/pr33426-ivdep-3.cc
===================================================================
--- g++.dg/vect/pr33426-ivdep-3.cc	(revision 207641)
+++ g++.dg/vect/pr33426-ivdep-3.cc	(working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target vect_int } */
+/* { dg-require-effective-target vect_int_mult } */
 /* { dg-additional-options "-std=c++11 -O3 -fopt-info-vec-optimized -fdump-tree-original -fdump-tree-gimple" } */
 
 /* PR other/33426 */

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

end of thread, other threads:[~2014-02-10 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-30 18:19 [testsuite, committed] Fix effective target for ivdep tests Richard Sandiford
2014-02-10 11:09 ` Eric Botcazou

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).