From c38c873b25ce332c83b4a81dc96f7168a72fd5cf Mon Sep 17 00:00:00 2001 From: hjl 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219654 138bc75d-0d04-0410-961f-82ee72b054a4 --- 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.11.4.GIT