From 19846619223e78409e3788b5b627bfe26684604f Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Wed, 29 Mar 2017 00:26:17 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/powerpc/gcse-1.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.30.2