1 # RUN: llvm-mc --triple=loongarch64 %s | FileCheck --check-prefix=PRINT %s
2 # RUN: llvm-mc --filetype=obj --triple=loongarch64 %s \
3 # RUN: | llvm-readobj -r - | FileCheck %s
5 # PRINT: .reloc 8, R_LARCH_NONE, .data
6 # PRINT: .reloc 4, R_LARCH_NONE, foo+4
7 # PRINT: .reloc 0, R_LARCH_NONE, 8
8 # PRINT: .reloc 0, R_LARCH_32, .data+2
9 # PRINT: .reloc 0, R_LARCH_TLS_DTPMOD32, foo+3
10 # PRINT: .reloc 0, R_LARCH_IRELATIVE, 5
11 # PRINT: .reloc 0, BFD_RELOC_NONE, 9
12 # PRINT-NEXT: .reloc 0, BFD_RELOC_32, 9
13 # PRINT-NEXT: .reloc 0, BFD_RELOC_64, 9
19 .reloc 8, R_LARCH_NONE, .data
20 .reloc 4, R_LARCH_NONE, foo+4
21 .reloc 0, R_LARCH_NONE, 8
23 .reloc 0, R_LARCH_32, .data+2
24 .reloc 0, R_LARCH_TLS_DTPMOD32, foo+3
25 .reloc 0, R_LARCH_IRELATIVE, 5
27 .reloc 0, BFD_RELOC_NONE, 9
28 .reloc 0, BFD_RELOC_32, 9
29 .reloc 0, BFD_RELOC_64, 9
38 # CHECK: 0x8 R_LARCH_NONE .data 0x0
39 # CHECK-NEXT: 0x4 R_LARCH_NONE foo 0x4
40 # CHECK-NEXT: 0x0 R_LARCH_NONE - 0x8
41 # CHECK-NEXT: 0x0 R_LARCH_32 .data 0x2
42 # CHECK-NEXT: 0x0 R_LARCH_TLS_DTPMOD32 foo 0x3
43 # CHECK-NEXT: 0x0 R_LARCH_IRELATIVE - 0x5
44 # CHECK-NEXT: 0x0 R_LARCH_NONE - 0x9
45 # CHECK-NEXT: 0x0 R_LARCH_32 - 0x9
46 # CHECK-NEXT: 0x0 R_LARCH_64 - 0x9