Commit 645c25f6 by H.J. Lu Committed by H.J. Lu

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
parent c61fcfa6
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
......
......@@ -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)?\\(%" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment