Re: PR96493, powerpc local call linkage failure
authorAlan Modra <amodra@gmail.com>
Mon, 10 Aug 2020 13:31:12 +0000 (23:01 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 12 Aug 2020 04:00:12 +0000 (13:30 +0930)
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

index f0de08188133928a91efcb33f84fc79d54b6af7d..1e5d43f199db12c1cd71c1aeb5d6a2ad47304ad6 100644 (file)
@@ -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.