Re: [OBVIOUS][PATCH] Skip test for non-x86 targets.

2020-03-26 Thread Martin Liška

There are 2 more nits needed for the test-case fix.
I'm going to install this version.

Martin
>From 3aece9a2f2eed08c91d5f52d5481701d01bc3a90 Mon Sep 17 00:00:00 2001
From: Martin Liska 
Date: Thu, 26 Mar 2020 10:07:06 +0100
Subject: [PATCH] Skip test for non-x86 targets.

gcc/testsuite/ChangeLog:

2020-03-26  Martin Liska  

	PR testsuite/94334
	* gcc.dg/lto/pr94271_0.c: Skip for non-x86 targets
	and add ifunc effective target.
	* gcc.target/i386/pr81213-2.c: Add ifunc effective target.
---
 gcc/testsuite/gcc.dg/lto/pr94271_0.c  | 2 ++
 gcc/testsuite/gcc.target/i386/pr81213-2.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/lto/pr94271_0.c b/gcc/testsuite/gcc.dg/lto/pr94271_0.c
index 2ce7d65411a..e3c3fa17ea0 100644
--- a/gcc/testsuite/gcc.dg/lto/pr94271_0.c
+++ b/gcc/testsuite/gcc.dg/lto/pr94271_0.c
@@ -1,5 +1,7 @@
 /* PR lto/94271 */
+/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } } */
 /* { dg-lto-do link } */
+/* { dg-require-ifunc "" } */
 
 int a;
 
diff --git a/gcc/testsuite/gcc.target/i386/pr81213-2.c b/gcc/testsuite/gcc.target/i386/pr81213-2.c
index a80622cb184..ec9138018ea 100644
--- a/gcc/testsuite/gcc.target/i386/pr81213-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr81213-2.c
@@ -1,3 +1,4 @@
+/* { dg-require-ifunc "" } */
 __attribute__((target_clones("avx","arch=slm","arch=core-avx2","default")))
 static int
 foo ()
-- 
2.25.1



Re: [OBVIOUS][PATCH] Skip test for non-x86 targets.

2020-03-26 Thread Rainer Orth
Hi Martin,

> The test-case only works on x86 targets.
> I'm going to install the patch.

as noted in the PR, you also need

/* { dg-require-ifunc "" } */

Rainer

-- 
-
Rainer Orth, Center for Biotechnology, Bielefeld University


[OBVIOUS][PATCH] Skip test for non-x86 targets.

2020-03-26 Thread Martin Liška

Hi.

The test-case only works on x86 targets.
I'm going to install the patch.

Martin

gcc/testsuite/ChangeLog:

2020-03-26  Martin Liska  

PR testsuite/94334
* gcc.dg/lto/pr94271_0.c: Skip for non-x86 targets.
---
 gcc/testsuite/gcc.dg/lto/pr94271_0.c | 1 +
 1 file changed, 1 insertion(+)


diff --git a/gcc/testsuite/gcc.dg/lto/pr94271_0.c b/gcc/testsuite/gcc.dg/lto/pr94271_0.c
index 2ce7d65411a..2d0f1453afa 100644
--- a/gcc/testsuite/gcc.dg/lto/pr94271_0.c
+++ b/gcc/testsuite/gcc.dg/lto/pr94271_0.c
@@ -1,4 +1,5 @@
 /* PR lto/94271 */
+/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } } */
 /* { dg-lto-do link } */
 
 int a;