From: Dominik Vogt Date: Fri, 29 Jan 2016 10:09:13 +0000 (+0000) Subject: S/390: Require a hardware vector support for test to succeed. X-Git-Tag: upstream/12.2.0~49099 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1c9546419aae2a19c525eef66a6660826389305;p=platform%2Fupstream%2Fgcc.git S/390: Require a hardware vector support for test to succeed. 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. gcc/testsuite/ChangeLog * gcc.dg/tree-ssa/ssa-dom-cse-2.c: Require a hardware vector support for test to succeed. From-SVN: r232971 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c20ea73..866f042 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-01-29 Dominik Vogt + + * gcc.dg/tree-ssa/ssa-dom-cse-2.c: Require a hardware vector + support for test to succeed. + 2016-01-29 Marek Polacek PR c++/69509 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 ()