]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust scan string for PIE
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 15 Jan 2015 13:25:30 +0000 (13:25 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 15 Jan 2015 13:25:30 +0000 (05:25 -0800)
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
gcc/testsuite/gcc.target/i386/pr54445-2.c

index 331aa4c10fadab26826fb9950e1a1a048df9d35f..ded57cf339f7aa2fe4411d0aa0cc7de907ba35ad 100644 (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
index 5151c132840168e0a89bce9401c09f1049048e00..f0ca9dc298ee341869a36eef959a8db31a552cf0 100644 (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)?\\(%" } } */