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 <mli...@suse.cz>
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  <mli...@suse.cz>

	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

Reply via email to