|
1 | 1 | ; RUN: llc --filetype=obj --mtriple=loongarch64 --mattr=-relax %s -o %t.o
|
2 | 2 | ; RUN: llvm-readobj -r %t.o | FileCheck --check-prefixes=RELOCS-BOTH,RELOCS-NORL %s
|
3 |
| -; RUN: llvm-objdump --source %t.o | FileCheck --check-prefix=SOURCE %s |
4 |
| -; RUN: llvm-dwarfdump --debug-info --debug-line %t.o | FileCheck --check-prefix=DWARF %s |
| 3 | +; RUN: llvm-objdump --source %t.o | FileCheck --check-prefixes=SOURCE,SOURCE-NORL %s |
| 4 | +; RUN: llvm-dwarfdump --debug-info --debug-line %t.o | FileCheck --check-prefixes=DWARF,DWARF-NORL %s |
5 | 5 |
|
6 | 6 | ; RUN: llc --filetype=obj --mtriple=loongarch64 --mattr=+relax %s -o %t.r.o
|
7 | 7 | ; RUN: llvm-readobj -r %t.r.o | FileCheck --check-prefixes=RELOCS-BOTH,RELOCS-ENRL %s
|
8 |
| -; RUN: llvm-objdump --source %t.r.o | FileCheck --check-prefix=SOURCE %s |
9 |
| -; RUN: llvm-dwarfdump --debug-info --debug-line %t.r.o | FileCheck --check-prefix=DWARF %s |
| 8 | +; RUN: llvm-objdump --source %t.r.o | FileCheck --check-prefixes=SOURCE,SOURCE-ENRL %s |
| 9 | +; RUN: llvm-dwarfdump --debug-info --debug-line %t.r.o | FileCheck --check-prefixes=DWARF,DWARF-ENRL %s |
10 | 10 |
|
11 | 11 | ; RELOCS-BOTH: Relocations [
|
12 | 12 | ; RELOCS-BOTH-NEXT: Section ({{.*}}) .rela.text {
|
13 |
| -; RELOCS-BOTH-NEXT: 0x14 R_LARCH_PCALA_HI20 sym 0x0 |
14 |
| -; RELOCS-ENRL-NEXT: 0x14 R_LARCH_RELAX - 0x0 |
15 |
| -; RELOCS-BOTH-NEXT: 0x18 R_LARCH_PCALA_LO12 sym 0x0 |
16 |
| -; RELOCS-ENRL-NEXT: 0x18 R_LARCH_RELAX - 0x0 |
| 13 | +; RELOCS-NORL-NEXT: 0x14 R_LARCH_PCALA_HI20 sym 0x0 |
| 14 | +; RELOCS-NORL-NEXT: 0x18 R_LARCH_PCALA_LO12 sym 0x0 |
| 15 | +; RELOCS-ENRL-NEXT: 0x0 R_LARCH_ALIGN .Lla-relax-align0 0x5 |
| 16 | +; RELOCS-ENRL-NEXT: 0x30 R_LARCH_PCALA_HI20 sym 0x0 |
| 17 | +; RELOCS-ENRL-NEXT: 0x30 R_LARCH_RELAX - 0x0 |
| 18 | +; RELOCS-ENRL-NEXT: 0x34 R_LARCH_PCALA_LO12 sym 0x0 |
| 19 | +; RELOCS-ENRL-NEXT: 0x34 R_LARCH_RELAX - 0x0 |
17 | 20 | ; RELOCS-BOTH-NEXT: }
|
18 | 21 | ; RELOCS-BOTH: Section ({{.*}}) .rela.debug_frame {
|
19 | 22 | ; RELOCS-NORL-NEXT: 0x1C R_LARCH_32 .debug_frame 0x0
|
|
36 | 39 | ; RELOCS-BOTH-NEXT: }
|
37 | 40 | ; RELOCS-BOTH-NEXT: ]
|
38 | 41 |
|
39 |
| -; SOURCE: 0000000000000000 <foo>: |
| 42 | +; SOURCE-NORL: 0000000000000000 <foo>: |
| 43 | +; SOURCE-ENRL: 000000000000001c <foo>: |
40 | 44 | ; SOURCE: ; {
|
41 | 45 | ; SOURCE: ; asm volatile(
|
42 | 46 | ; SOURCE: ; return 0;
|
|
87 | 91 | ; DWARF-EMPTY:
|
88 | 92 | ; DWARF-NEXT: Address Line Column File ISA Discriminator OpIndex Flags
|
89 | 93 | ; DWARF-NEXT: ------------------ ------ ------ ------ --- ------------- ------- -------------
|
90 |
| -; DWARF-NEXT: 0x0000000000000000 2 0 0 0 0 0 is_stmt |
91 |
| -; DWARF-NEXT: 0x0000000000000010 3 3 0 0 0 0 is_stmt prologue_end |
92 |
| -; DWARF-NEXT: 0x0000000000000020 10 3 0 0 0 0 is_stmt |
93 |
| -; DWARF-NEXT: 0x000000000000002c 10 3 0 0 0 0 epilogue_begin |
94 |
| -; DWARF-NEXT: 0x0000000000000034 10 3 0 0 0 0 end_sequence |
| 94 | +; DWARF-NORL-NEXT: 0x0000000000000000 2 0 0 0 0 0 is_stmt |
| 95 | +; DWARF-NORL-NEXT: 0x0000000000000010 3 3 0 0 0 0 is_stmt prologue_end |
| 96 | +; DWARF-NORL-NEXT: 0x0000000000000020 10 3 0 0 0 0 is_stmt |
| 97 | +; DWARF-NORL-NEXT: 0x000000000000002c 10 3 0 0 0 0 epilogue_begin |
| 98 | +; DWARF-NORL-NEXT: 0x0000000000000034 10 3 0 0 0 0 end_sequence |
| 99 | +; DWARF-ENRL-NEXT: 0x000000000000001c 2 0 0 0 0 0 is_stmt |
| 100 | +; DWARF-ENRL-NEXT: 0x000000000000002c 3 3 0 0 0 0 is_stmt prologue_end |
| 101 | +; DWARF-ENRL-NEXT: 0x000000000000003c 10 3 0 0 0 0 is_stmt |
| 102 | +; DWARF-ENRL-NEXT: 0x0000000000000048 10 3 0 0 0 0 epilogue_begin |
| 103 | +; DWARF-ENRL-NEXT: 0x0000000000000050 10 3 0 0 0 0 end_sequence |
95 | 104 |
|
96 | 105 | ; ModuleID = 'dwarf-loongarch-relocs.c'
|
97 | 106 | source_filename = "dwarf-loongarch-relocs.c"
|
|
0 commit comments