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
This commit is contained in:
H.J. Lu 2015-01-15 13:25:30 +00:00 committed by H.J. Lu
parent c61fcfa602
commit 645c25f642
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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)?\\(%" } } */