rs6000: Fix gcc.target/powerpc/gcse-1.c for PIC (PR43496)
authorSegher Boessenkool <segher@kernel.crashing.org>
Tue, 28 Mar 2017 22:26:17 +0000 (00:26 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Tue, 28 Mar 2017 22:26:17 +0000 (00:26 +0200)
With PIC a @ha relocation isn't generated, so skip that test then.

PR testsuite/43496
* gcc.target/powerpc/gcse-1.c: Skip scan-assembler-times "@ha" if
generating PIC code.

From-SVN: r246555

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/gcse-1.c

index 654863e6be4faa7b312bab71515641fdd5df3193..e7ac462932bae4f27cc066f1e76617ff7a967f66 100644 (file)
@@ -1,3 +1,9 @@
+2017-03-28  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       PR testsuite/43496
+       * gcc.target/powerpc/gcse-1.c: Skip scan-assembler-times "@ha" if
+       generating PIC code.
+
 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR rtl-optimization/80193
index 799cde1dd0e7fe7a74c5c15744366a7acd5dceb9..b9cd055f37f4bfaabf16cd78e534918eecc9f81c 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile { target { *-*-linux* && ilp32 } } } */
 /* { dg-options "-O2" } */
-/* { dg-final { scan-assembler-times "@ha" 1 } } */
+/* { dg-final { scan-assembler-times "@ha" 1 { target { ! fpic } } } } */
 
 
 /* Test for PR 7003, address of array loaded int register