From d6730f06420106af01e26414f046626b5292565d Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 26 Mar 2020 10:12:57 +0100 Subject: [PATCH] Skip test for non-x86 targets. 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/ChangeLog | 7 +++++++ gcc/testsuite/gcc.dg/lto/pr94271_0.c | 2 ++ gcc/testsuite/gcc.target/i386/pr81213-2.c | 1 + 3 files changed, 10 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ea31955bbe2..65f32a3eb1d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +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. + 2020-03-26 Jakub Jelinek PR debug/94281 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.30.2