aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/MC/RISCV/reloc-directive.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/RISCV/reloc-directive.s')
-rw-r--r--llvm/test/MC/RISCV/reloc-directive.s36
1 files changed, 14 insertions, 22 deletions
diff --git a/llvm/test/MC/RISCV/reloc-directive.s b/llvm/test/MC/RISCV/reloc-directive.s
index 0e217fa..4ab2889 100644
--- a/llvm/test/MC/RISCV/reloc-directive.s
+++ b/llvm/test/MC/RISCV/reloc-directive.s
@@ -3,15 +3,7 @@
# RUN: llvm-mc -filetype=obj -triple=riscv32 %s | llvm-readobj -r - | FileCheck %s
# RUN: llvm-mc -filetype=obj -triple=riscv64 %s | llvm-readobj -r - | FileCheck %s
-# PRINT: .reloc 8, R_RISCV_NONE, .data
-# PRINT: .reloc 4, R_RISCV_NONE, foo+4
-# PRINT: .reloc 0, R_RISCV_NONE, 8
-# PRINT: .reloc 0, R_RISCV_32, .data+2
-# PRINT: .reloc 0, R_RISCV_SET32, foo+3
-# PRINT: .reloc 0, R_RISCV_32_PCREL, 5
-# PRINT: .reloc 0, BFD_RELOC_NONE, 9
-# PRINT-NEXT: .reloc 0, BFD_RELOC_32, 9
-# PRINT-NEXT: .reloc 0, BFD_RELOC_64, 9
+# PRINT: .reloc {{.*}}+8, R_RISCV_NONE, .data
# CHECK: 0x8 R_RISCV_NONE .data 0x0
# CHECK-NEXT: 0x4 R_RISCV_NONE foo 0x4
@@ -37,26 +29,26 @@
# CHECK-NEXT: }
.text
- ret
- nop
- nop
- .reloc 8, R_RISCV_NONE, .data
- .reloc 4, R_RISCV_NONE, foo+4
- .reloc 0, R_RISCV_NONE, 8
+ .reloc .+8, R_RISCV_NONE, .data
+ .reloc .+4, R_RISCV_NONE, foo+4
+ .reloc .+0, R_RISCV_NONE, 8
- .reloc 0, R_RISCV_32, .data+2
- .reloc 0, R_RISCV_SET32, foo+3
- .reloc 0, R_RISCV_32_PCREL, 5
+ .reloc .+0, R_RISCV_32, .data+2
+ .reloc .+0, R_RISCV_SET32, foo+3
+ .reloc .+0, R_RISCV_32_PCREL, 5
- .reloc 0, BFD_RELOC_NONE, 9
- .reloc 0, BFD_RELOC_32, 9
- .reloc 0, BFD_RELOC_64, 9
+ .reloc .+0, BFD_RELOC_NONE, 9
+ .reloc .+0, BFD_RELOC_32, 9
+ .reloc .+0, BFD_RELOC_64, 9
.reloc foo, R_RISCV_32, 6
.reloc line, R_RISCV_32, 6
.reloc probe, R_RISCV_32, 6
-
.reloc foo+4, R_RISCV_32, 6
+ ret
+ nop
+ nop
+
.data
.globl foo
foo: