public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch testsuite] Skip gcc.dg/ifcvt-4.c for targets on which it may not work
@ 2015-12-18  9:55 James Greenhalgh
  2015-12-21 19:38 ` Jeff Law
  0 siblings, 1 reply; 5+ messages in thread
From: James Greenhalgh @ 2015-12-18  9:55 UTC (permalink / raw)
  To: gcc-patches; +Cc: richard.earnshaw, ramana.radhakrishnan

This is a multi-part message in MIME format.
--------------2.2.0.1.gd394abb.dirty
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit


Hi,

PR68232 is a testsuite failure for targets with very low branch costs.
As the test is looking for if-conversion, it will fail for any subtarget
for which the cost of a branch is sufficiently low that if-conversion looks
more expensive.

In the current implementation this will be any subtarget with an unpredictable
 branch cost of 0 or 1. I had thought this would be very few targets, but
at least powerpc64le and arm can trigger this for particular tuning targets.

This patch skips the test on those targets.

OK?

Thanks,
James

---
2015-12-17  James Greenhalgh  <james.greenhalgh@arm.com>

	PR testsuite/68232
	* gcc.dg/ifcvt-4.c: Skip for arm*-*-* and powerpc64le*-*-*.


--------------2.2.0.1.gd394abb.dirty
Content-Type: text/x-patch; name="0001-Patch-testsuite-Skip-gcc.dg-ifcvt-4.c-for-targets-on.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="0001-Patch-testsuite-Skip-gcc.dg-ifcvt-4.c-for-targets-on.patch"

diff --git a/gcc/testsuite/gcc.dg/ifcvt-4.c b/gcc/testsuite/gcc.dg/ifcvt-4.c
index 16be2b0..e1c81fb 100644
--- a/gcc/testsuite/gcc.dg/ifcvt-4.c
+++ b/gcc/testsuite/gcc.dg/ifcvt-4.c
@@ -1,4 +1,6 @@
 /* { dg-options "-fdump-rtl-ce1 -O2" } */
+/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" { "arm*-*-* powerpc64le*-*-*" } {"*"} { "" } }  */
+
 int
 foo (int x, int y, int a)
 {

--------------2.2.0.1.gd394abb.dirty--


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

end of thread, other threads:[~2015-12-24 19:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-18  9:55 [Patch testsuite] Skip gcc.dg/ifcvt-4.c for targets on which it may not work James Greenhalgh
2015-12-21 19:38 ` Jeff Law
2015-12-22 11:25   ` Richard Earnshaw (lists)
2015-12-22 19:12     ` Jeff Law
2015-12-24 19:40     ` Mike Stump

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