Test for push being relaxed.
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 18 Dec 2010 01:16:59 +0000 (01:16 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 18 Dec 2010 01:16:59 +0000 (01:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122124 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/ELF/relocation-386.s

index a442d4298d9cc4155877cde22600f604ad7b1d27..f106f89b7083ee600fbe5e1a3f1d9a95cbca4a4c 100644 (file)
 // CHECK-NEXT: (('r_offset', 0x00000083)
 // CHECK-NEXT:  ('r_sym', 0x00000004)
 // CHECK-NEXT:  ('r_type', 0x00000020)
+// CHECK-NEXT: ),
+// Relocation 23 ($bar) is of type R_386_32 and uses the section
+// CHECK-NEXT: Relocation 0x00000017
+// CHECK-NEXT: (('r_offset',
+// CHECK-NEXT:  ('r_sym',
+// CHECK-NEXT:  ('r_type', 0x00000001)
 // CHECK-NEXT: ),
 
         .text
@@ -209,6 +215,7 @@ bar2:
         movl zed@TLSLDM(%eax), %eax
         movl zed@TPOFF(%eax), %eax
         movl zed@DTPOFF(%eax), %eax
+        pushl $bar
 
         .section        zedsec,"awT",@progbits
 zed: