From 645c25f6425651f56d6d6cd09005d32756cb53be Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 15 Jan 2015 13:25:30 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.target/i386/pr54445-2.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 331aa4c10fa..ded57cf339f 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 5151c132840..f0ca9dc298e 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)?\\(%" } } */ -- 2.30.2