[RS6000] Non-pcrel tests when power10
authorAlan Modra <amodra@gmail.com>
Thu, 22 Oct 2020 01:57:31 +0000 (12:27 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 26 Oct 2020 22:45:52 +0000 (09:15 +1030)
These tests require -mno-pcrel because they are testing features
of the non-pcrel ABI.

* gcc.target/powerpc/cprophard.c: Add -mno-pcrel to options.
* gcc.target/powerpc/float128-hw3.c: Likewise.
* gcc.target/powerpc/pr79439-1.c: Likewise.
* gcc.target/powerpc/pr79439-2.c: Likewise.
* gcc.target/powerpc/r2_shrink-wrap.c: Likewise.

gcc/testsuite/gcc.target/powerpc/cprophard.c
gcc/testsuite/gcc.target/powerpc/float128-hw3.c
gcc/testsuite/gcc.target/powerpc/pr79439-1.c
gcc/testsuite/gcc.target/powerpc/pr79439-2.c
gcc/testsuite/gcc.target/powerpc/r2_shrink-wrap.c

index f93081f..0aac9a5 100644 (file)
@@ -1,6 +1,6 @@
-/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
+/* { dg-do compile { target lp64 } } */
 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -mno-pcrel" } */
 /* { dg-final { scan-assembler {ld 2,(24|40)\(1\)} } } */
 
 /* From a linux kernel mis-compile of net/core/skbuff.c.  */
index b3bbeb2..630c93d 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile { target lp64 } } */
 /* { dg-require-effective-target powerpc_p9vector_ok } */
 /* { dg-require-effective-target float128 } */
-/* { dg-options "-mpower9-vector -O2 -ffast-math -std=c11" } */
+/* { dg-options "-mpower9-vector -O2 -ffast-math -std=c11 -mno-pcrel" } */
 
 /* Test to make sure the compiler calls the external function instead of doing
    the built-in processing for _Float128 functions that have hardware support
index 539c96f..8eb08a4 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { powerpc*-*-linux* && lp64 } } } */
-/* { dg-options "-O2 -fpic -fno-reorder-blocks -fno-inline-functions" } */
+/* { dg-options "-O2 -fpic -fno-reorder-blocks -fno-inline-functions -mno-pcrel" } */
 
 /* On the Linux 64-bit ABIs, we eliminate NOP in the 'rec' call even if
    -fpic is used.  The recursive call should call the local alias.  The
index b53af44..9ebcf25 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target { powerpc*-*-linux* && lp64 } } } */
-/* { dg-options "-O2 -fpic -fno-reorder-blocks" } */
+/* { dg-options "-O2 -fpic -fno-reorder-blocks -mno-pcrel" } */
 
 /* On the Linux 64-bit ABIs, we should not eliminate NOP in the 'rec' call if
    -fpic is used because rec can be interposed at link time (since it has an
index b81b9b1..a74da38 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target lp64 } } */
-/* { dg-options "-O2 -fdump-rtl-pro_and_epilogue" } */
+/* { dg-options "-O2 -fdump-rtl-pro_and_epilogue -mno-pcrel" } */
 
 /* Verify we move the prologue past the TOC reference of 'j' and shrink-wrap
    the function. */