summaryrefslogtreecommitdiffstats
path: root/test/MC/ELF/global-offset.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/ELF/global-offset.s')
-rw-r--r--test/MC/ELF/global-offset.s6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/MC/ELF/global-offset.s b/test/MC/ELF/global-offset.s
index 8cc5dbb..81ae5d7 100644
--- a/test/MC/ELF/global-offset.s
+++ b/test/MC/ELF/global-offset.s
@@ -6,6 +6,10 @@
addl $_GLOBAL_OFFSET_TABLE_, %ebx
leal _GLOBAL_OFFSET_TABLE_(%ebx), %ebx
+// But not in this case
+foo:
+ addl _GLOBAL_OFFSET_TABLE_-foo,%ebx
+
// CHECK: ('sh_name', 0x00000005) # '.text'
// CHECK-NEXT: ('sh_type',
// CHECK-NEXT: ('sh_flags',
@@ -16,4 +20,4 @@
// CHECK-NEXT: ('sh_info',
// CHECK-NEXT: ('sh_addralign',
// CHECK-NEXT: ('sh_entsize',
-// CHECK-NEXT: ('_section_data', '81c30200 00008d9b 02000000')
+// CHECK-NEXT: ('_section_data', '81c30200 00008d9b 02000000 031d0200 0000')
OpenPOWER on IntegriCloud