* [PATCH] S/390: Require a hardware vector support for test to succeed.
@ 2016-01-27 10:04 Dominik Vogt
2016-01-29 10:09 ` Andreas Krebbel
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Vogt @ 2016-01-27 10:04 UTC (permalink / raw)
To: gcc-patches; +Cc: Andreas Krebbel
[-- Attachment #1: Type: text/plain, Size: 352 bytes --]
The test case works on S/390 too, but only with -march=z13 or
later (i.e. if Gcc can make use of hardware vector support).
Otherwise the optimization gets too complex. The attached patch
forces Gcc to use -march=z13 instead of xfail'ing the test on
S/390.
What do you think about this approach?
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany
[-- Attachment #2: 0001-ChangeLog --]
[-- Type: text/plain, Size: 117 bytes --]
gcc/testsuite/ChangeLog
* gcc.dg/tree-ssa/ssa-dom-cse-2.c: Require a hardware vector support for
test to succeed.
[-- Attachment #3: 0001-S-390-Require-a-hardware-vector-support-for-test-to-.patch --]
[-- Type: text/x-diff, Size: 940 bytes --]
From d855b255132d6a3ef46571e84aa75c95d8c3c737 Mon Sep 17 00:00:00 2001
From: Dominik Vogt <vogt@linux.vnet.ibm.com>
Date: Wed, 27 Jan 2016 08:55:03 +0100
Subject: [PATCH] S/390: Require a hardware vector support for test to
succeed.
---
gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-2.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-2.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-2.c
index 2349400..f68b53b 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-2.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-2.c
@@ -1,5 +1,9 @@
/* { dg-do compile } */
/* { dg-options "-O3 -fno-tree-fre -fno-tree-pre -fdump-tree-optimized --param sra-max-scalarization-size-Ospeed=32" } */
+/* S390 needs hardware vector support for this to work (the optimization gets
+ * too complex without it.
+ * { dg-additional-options "-march=z13" { target { s390*-*-* } } } */
+
int
foo ()
--
2.3.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] S/390: Require a hardware vector support for test to succeed.
2016-01-27 10:04 [PATCH] S/390: Require a hardware vector support for test to succeed Dominik Vogt
@ 2016-01-29 10:09 ` Andreas Krebbel
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Krebbel @ 2016-01-29 10:09 UTC (permalink / raw)
To: Dominik Vogt; +Cc: gcc-patches
On Wed, Jan 27, 2016 at 11:04:32AM +0100, Dominik Vogt wrote:
> gcc/testsuite/ChangeLog
>
> * gcc.dg/tree-ssa/ssa-dom-cse-2.c: Require a hardware vector support for
> test to succeed.
Applied. Thanks!
-Andreas-
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-29 10:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-27 10:04 [PATCH] S/390: Require a hardware vector support for test to succeed Dominik Vogt
2016-01-29 10:09 ` Andreas Krebbel
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).