Re: [PATCH] PR 68749: S/390: Disable ifcvt-4.c for -m31.

2017-02-23 Thread Andreas Krebbel
On 02/15/2017 12:19 PM, Dominik Vogt wrote:
> The attached patch disables the test ifcvt-4.c on s390 and on
> s390x with -31, and adds -march=z196 for s390x.  It should no
> longer fail on s390 and s390x.
> 
> Tested on s390x biarch.
> 
> Ciao
> 
> Dominik ^_^  ^_^
> 
Applied. Thanks!

-Andreas-



[PATCH] PR 68749: S/390: Disable ifcvt-4.c for -m31.

2017-02-15 Thread Dominik Vogt
The attached patch disables the test ifcvt-4.c on s390 and on
s390x with -31, and adds -march=z196 for s390x.  It should no
longer fail on s390 and s390x.

Tested on s390x biarch.

Ciao

Dominik ^_^  ^_^

-- 

Dominik Vogt
IBM Germany
gcc/testsuite/ChangeLog-pr68749

PR 68749
* gcc.dg/ifcvt-4.c: Disable for -m31, use -march=z196.
>From 741e57a26f203a0dc3e0744c63249109f001d7c3 Mon Sep 17 00:00:00 2001
From: Dominik Vogt <v...@linux.vnet.ibm.com>
Date: Wed, 15 Feb 2017 12:13:15 +0100
Subject: [PATCH] PR 68749: S/390: Disable ifcvt-4.c for -m31.

The test needs the conditional move pattern which is available only with
-march=z196 or higher and -m64.
---
 gcc/testsuite/gcc.dg/ifcvt-4.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/ifcvt-4.c b/gcc/testsuite/gcc.dg/ifcvt-4.c
index 466ad15..b4a4bc8 100644
--- a/gcc/testsuite/gcc.dg/ifcvt-4.c
+++ b/gcc/testsuite/gcc.dg/ifcvt-4.c
@@ -1,6 +1,8 @@
 /* { dg-options "-fdump-rtl-ce1 -O2 --param max-rtl-if-conversion-insns=3 
--param max-rtl-if-conversion-unpredictable-cost=100" } */
 /* { dg-additional-options "-misel" { target { powerpc*-*-* } } } */
-/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" 
{ "arm*-*-* hppa*64*-*-* visium-*-*" riscv*-*-* } }  */
+/* { dg-additional-options "-march=z196" { target { s390x-*-* } } } */
+/* { dg-skip-if "Multiple set if-conversion not guaranteed on all subtargets" 
{ "arm*-*-* hppa*64*-*-* s390-*-* visium-*-*" riscv*-*-* } }  */
+/* { dg-skip-if "" { "s390x-*-*" } { "-m31" } }  */
 
 typedef int word __attribute__((mode(word)));
 
-- 
2.3.0