Skip to content

Commit c9e73cd

Browse files
SixWeiningtstellar
authored andcommitted
[test] Update dwarf-loongarch-relocs.ll
Address buildbot faiures: http://45.33.8.238/macm1/77360/step_11.txt http://45.33.8.238/linux/128902/step_12.txt (cherry picked from commit baba7e4)
1 parent 3173faa commit c9e73cd

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

llvm/test/DebugInfo/LoongArch/dwarf-loongarch-relocs.ll

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
; RUN: llc --filetype=obj --mtriple=loongarch64 --mattr=-relax %s -o %t.o
22
; 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
55

66
; RUN: llc --filetype=obj --mtriple=loongarch64 --mattr=+relax %s -o %t.r.o
77
; 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
1010

1111
; RELOCS-BOTH: Relocations [
1212
; 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
1720
; RELOCS-BOTH-NEXT: }
1821
; RELOCS-BOTH: Section ({{.*}}) .rela.debug_frame {
1922
; RELOCS-NORL-NEXT: 0x1C R_LARCH_32 .debug_frame 0x0
@@ -36,7 +39,8 @@
3639
; RELOCS-BOTH-NEXT: }
3740
; RELOCS-BOTH-NEXT: ]
3841

39-
; SOURCE: 0000000000000000 <foo>:
42+
; SOURCE-NORL: 0000000000000000 <foo>:
43+
; SOURCE-ENRL: 000000000000001c <foo>:
4044
; SOURCE: ; {
4145
; SOURCE: ; asm volatile(
4246
; SOURCE: ; return 0;
@@ -87,11 +91,16 @@
8791
; DWARF-EMPTY:
8892
; DWARF-NEXT: Address Line Column File ISA Discriminator OpIndex Flags
8993
; 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
95104

96105
; ModuleID = 'dwarf-loongarch-relocs.c'
97106
source_filename = "dwarf-loongarch-relocs.c"

0 commit comments

Comments
 (0)