From 2ba0674c657fb2089d8aae4f8c254ce0559c8f53 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 10 Aug 2020 23:01:12 +0930 Subject: [PATCH] Re: PR96493, powerpc local call linkage failure PR target/96525 * gcc.target/powerpc/pr96493.c: Make it a link test when no power10_hw. Require power10_ok. --- gcc/testsuite/gcc.target/powerpc/pr96493.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/powerpc/pr96493.c b/gcc/testsuite/gcc.target/powerpc/pr96493.c index f0de0818813..1e5d43f199d 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr96493.c +++ b/gcc/testsuite/gcc.target/powerpc/pr96493.c @@ -1,6 +1,8 @@ -/* { dg-do run } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ /* { dg-options "-mdejagnu-cpu=power8 -O2" } */ /* { dg-require-effective-target powerpc_elfv2 } */ +/* { dg-require-effective-target power10_ok } */ /* Test local calls between pcrel and non-pcrel code. -- 2.30.2