From: Segher Boessenkool Date: Tue, 28 Mar 2017 22:26:17 +0000 (+0200) Subject: rs6000: Fix gcc.target/powerpc/gcse-1.c for PIC (PR43496) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19846619223e78409e3788b5b627bfe26684604f;p=gcc.git rs6000: Fix gcc.target/powerpc/gcse-1.c for PIC (PR43496) 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 654863e6be4..e7ac462932b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-03-28 Segher Boessenkool + + PR testsuite/43496 + * gcc.target/powerpc/gcse-1.c: Skip scan-assembler-times "@ha" if + generating PIC code. + 2017-03-28 Vladimir Makarov PR rtl-optimization/80193 diff --git a/gcc/testsuite/gcc.target/powerpc/gcse-1.c b/gcc/testsuite/gcc.target/powerpc/gcse-1.c index 799cde1dd0e..b9cd055f37f 100644 --- a/gcc/testsuite/gcc.target/powerpc/gcse-1.c +++ b/gcc/testsuite/gcc.target/powerpc/gcse-1.c @@ -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