diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2015-01-15 13:25:30 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2015-01-15 05:25:30 -0800 |
commit | 645c25f6425651f56d6d6cd09005d32756cb53be (patch) | |
tree | 3581e9b8129a4535fc12d041c7f8cc31b60c3e68 /gcc | |
parent | c61fcfa602a55e9173f62f8e6cb3cd712e460561 (diff) | |
download | gcc-645c25f6425651f56d6d6cd09005d32756cb53be.zip gcc-645c25f6425651f56d6d6cd09005d32756cb53be.tar.gz gcc-645c25f6425651f56d6d6cd09005d32756cb53be.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr54445-2.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 331aa4c..ded57cf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-01-15 H.J. Lu <hongjiu.lu@intel.com> + + * gcc.target/i386/pr54445-2.c: Adjust scan string for PIE. + 2015-01-15 Richard Biener <rguenther@suse.de> PR lto/64415 diff --git a/gcc/testsuite/gcc.target/i386/pr54445-2.c b/gcc/testsuite/gcc.target/i386/pr54445-2.c index 5151c13..f0ca9dc 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)?\\(%" } } */ |