diff mbox series

[OBVIOUS] Skip test for non-x86 targets.

Message ID 171854b4-046c-cadb-cee7-aa7b228080c3@suse.cz
State New
Headers show
Series [OBVIOUS] Skip test for non-x86 targets. | expand

Commit Message

Martin Liška March 26, 2020, 9:08 a.m. UTC
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  <mliska@suse.cz>

	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(+)

Comments

Rainer Orth March 26, 2020, 9:11 a.m. UTC | #1
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
Martin Liška March 26, 2020, 9:12 a.m. UTC | #2
There are 2 more nits needed for the test-case fix.
I'm going to install this version.

Martin
diff mbox series

Patch

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;