From: H.J. Lu Date: Thu, 15 Jan 2015 13:25:30 +0000 (+0000) Subject: Adjust scan string for PIE X-Git-Tag: releases/gcc-5.1.0~1748 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=645c25f6425651f56d6d6cd09005d32756cb53be;p=thirdparty%2Fgcc.git Adjust scan string for PIE The order of address in the first operand is different due to different output orders of PLUS between output_addr_const and output_pic_addr_const. This patch adjusts scan string for PIE in gcc.target/i386/pr54445-2.c. * gcc.target/i386/pr54445-2.c: Adjust scan string for PIE. From-SVN: r219654 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 331aa4c10fad..ded57cf339f7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-01-15 H.J. Lu + + * gcc.target/i386/pr54445-2.c: Adjust scan string for PIE. + 2015-01-15 Richard Biener PR lto/64415 diff --git a/gcc/testsuite/gcc.target/i386/pr54445-2.c b/gcc/testsuite/gcc.target/i386/pr54445-2.c index 5151c1328401..f0ca9dc298ee 100644 --- a/gcc/testsuite/gcc.target/i386/pr54445-2.c +++ b/gcc/testsuite/gcc.target/i386/pr54445-2.c @@ -8,4 +8,4 @@ tls_array_lookup_with_negative_constant(long long int position) { return tls_array[position - 1]; } -/* { dg-final { scan-assembler "mov(b|zbl)\[ \t\](%fs:)?tls_array@tpoff-1\\(%" } } */ +/* { dg-final { scan-assembler "mov(b|zbl)\[ \t\](%fs:)?(-1\\+)?tls_array@tpoff(-1)?\\(%" } } */