aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/SystemZ/reloc-directive.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/SystemZ/reloc-directive.s')
-rw-r--r--llvm/test/MC/SystemZ/reloc-directive.s42
1 files changed, 15 insertions, 27 deletions
diff --git a/llvm/test/MC/SystemZ/reloc-directive.s b/llvm/test/MC/SystemZ/reloc-directive.s
index abc6ca3..78c36e1 100644
--- a/llvm/test/MC/SystemZ/reloc-directive.s
+++ b/llvm/test/MC/SystemZ/reloc-directive.s
@@ -3,19 +3,7 @@
# RUN: llvm-mc -filetype=obj -triple=s390x-linux-gnu %s -o %t
# RUN: llvm-readobj -r %t | FileCheck %s
-# PRINT: .reloc 2, R_390_NONE, .data
-# PRINT-NEXT: .reloc 1, R_390_NONE, foo+4
-# PRINT-NEXT: .reloc 0, R_390_NONE, 8
-# PRINT-NEXT: .reloc 0, R_390_64, .data+2
-# PRINT-NEXT: .reloc 0, R_390_GOTENT, foo+3
-# PRINT-NEXT: .reloc 0, R_390_PC32DBL, 6
-# PRINT-NEXT: .reloc 4, R_390_12, foo
-# PRINT-NEXT: .reloc 2, R_390_20, foo
-# PRINT: .reloc 0, BFD_RELOC_NONE, 9
-# PRINT-NEXT: .reloc 0, BFD_RELOC_8, 9
-# PRINT-NEXT: .reloc 0, BFD_RELOC_16, 9
-# PRINT-NEXT: .reloc 0, BFD_RELOC_32, 9
-# PRINT-NEXT: .reloc 0, BFD_RELOC_64, 9
+# PRINT: .reloc {{.*}}+2, R_390_NONE, .data
# CHECK: 0x2 R_390_NONE .data 0x0
# CHECK-NEXT: 0x1 R_390_NONE foo 0x4
@@ -32,23 +20,23 @@
# CHECK-NEXT: 0x0 R_390_64 - 0x9
.text
+ .reloc .+2, R_390_NONE, .data
+ .reloc .+1, R_390_NONE, foo+4
+ .reloc .+0, R_390_NONE, 8
+ .reloc .+0, R_390_64, .data+2
+ .reloc .+0, R_390_GOTENT, foo+3
+ .reloc .+0, R_390_PC32DBL, 6
+ .reloc .+4, R_390_12, foo
+ .reloc .+2, R_390_20, foo
+
+ .reloc .+0, BFD_RELOC_NONE, 9
+ .reloc .+0, BFD_RELOC_8, 9
+ .reloc .+0, BFD_RELOC_16, 9
+ .reloc .+0, BFD_RELOC_32, 9
+ .reloc .+0, BFD_RELOC_64, 9
br %r14
nop
nop
- .reloc 2, R_390_NONE, .data
- .reloc 1, R_390_NONE, foo+4
- .reloc 0, R_390_NONE, 8
- .reloc 0, R_390_64, .data+2
- .reloc 0, R_390_GOTENT, foo+3
- .reloc 0, R_390_PC32DBL, 6
- .reloc 4, R_390_12, foo
- .reloc 2, R_390_20, foo
-
- .reloc 0, BFD_RELOC_NONE, 9
- .reloc 0, BFD_RELOC_8, 9
- .reloc 0, BFD_RELOC_16, 9
- .reloc 0, BFD_RELOC_32, 9
- .reloc 0, BFD_RELOC_64, 9
.data
.globl foo