Skip to content

Commit 4c82652

Browse files
svenvhsys-ce-bb
authored andcommitted
Update DebugInfo tests for op-index addition (#2079)
Update tests for llvm-project commit 6aa94c6 ("[DWARF] Add printout for op-index", 2023-07-12). Original commit: KhronosGroup/SPIRV-LLVM-Translator@81ffaaf
1 parent 8f86b89 commit 4c82652

File tree

4 files changed

+18
-19
lines changed

4 files changed

+18
-19
lines changed

llvm-spirv/test/DebugInfo/Generic/multiline.ll

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,13 @@ target triple = "spir64-unknown-unknown"
3737

3838
; INT: {{^}}Address
3939
; INT: -----
40-
; INT-NEXT: 2 0 1 0 0 is_stmt{{$}}
41-
; INT-NEXT: 3 3 1 0 0 is_stmt prologue_end{{$}}
42-
; INT-NEXT: 3 9 1 0 0 {{$}}
43-
; INT-NEXT: 3 15 1 0 0 {{$}}
44-
; INT-NEXT: 4 3 1 0 0 is_stmt{{$}}
45-
; INT-NEXT: 4 9 1 0 0 {{$}}
46-
; INT-NEXT: 4 15 1 0 0 {{$}}
47-
; INT-NEXT: 5 1 1 0 0 is_stmt{{( epilogue_begin)?}}{{$}}
40+
; INT: 3 3 1 0 0 0 is_stmt prologue_end{{$}}
41+
; INT-NEXT: 3 9 1 0 0 0 {{$}}
42+
; INT-NEXT: 3 15 1 0 0 0 {{$}}
43+
; INT-NEXT: 4 3 1 0 0 0 is_stmt{{$}}
44+
; INT-NEXT: 4 9 1 0 0 0 {{$}}
45+
; INT-NEXT: 4 15 1 0 0 0 {{$}}
46+
; INT-NEXT: 5 1 1 0 0 0 is_stmt{{( epilogue_begin)?}}{{$}}
4847

4948

5049
; Function Attrs: nounwind uwtable

llvm-spirv/test/DebugInfo/X86/discriminator2.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ attributes #1 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-
7171
!13 = !DILocation(line: 5, column: 21, scope: !12)
7272
!14 = !DILocation(line: 6, column: 1, scope: !6)
7373

74-
; CHECK: Address Line Column File ISA Discriminator Flags
75-
; CHECK: ------------------ ------ ------ ------ --- ------------- -------------
76-
; CHECK: {{.*}} 4 3 1 0 1 {{.*}}
77-
; CHECK: {{.*}} 5 21 1 0 1 {{.*}}
74+
; CHECK: Address Line Column File ISA Discriminator OpIndex Flags
75+
; CHECK: ------------------ ------ ------ ------ --- ------------- ------- -------------
76+
; CHECK: {{.*}} 4 3 1 0 1 0 {{.*}}
77+
; CHECK: {{.*}} 5 21 1 0 1 0 {{.*}}

llvm-spirv/test/DebugInfo/X86/discriminator3.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ attributes #2 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-
8383
!21 = !DILocation(line: 3, column: 21, scope: !17)
8484
!22 = !DILocation(line: 4, column: 1, scope: !6)
8585

86-
; CHECK: Address Line Column File ISA Discriminator Flags
87-
; CHECK: ------------------ ------ ------ ------ --- ------------- -------------
88-
; CHECK: {{.*}} 3 15 1 0 1
89-
; CHECK: {{.*}} 3 16 1 0 1
90-
; CHECK: {{.*}} 3 11 1 0 1
86+
; CHECK: Address Line Column File ISA Discriminator OpIndex Flags
87+
; CHECK: ------------------ ------ ------ ------ --- ------------- ------- -------------
88+
; CHECK: {{.*}} 3 15 1 0 1 0
89+
; CHECK: {{.*}} 3 16 1 0 1 0
90+
; CHECK: {{.*}} 3 11 1 0 1 0

llvm-spirv/test/DebugInfo/X86/ending-run.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ target triple = "spir64-unknown-unknown"
2020
; Check that the line table starts at 7, not 4, but that the first
2121
; statement isn't until line 8.
2222

23-
; CHECK-NOT: 0x0000000000000000 7 0 1 0 0 is_stmt
23+
; CHECK-NOT: 0x0000000000000000 7 0 1 0 0 0 is_stmt
2424
; CHECK: 0x0000000000000000 7 0 1 0
25-
; CHECK: 0x0000000000000004 8 18 1 0 0 is_stmt prologue_end
25+
; CHECK: 0x0000000000000004 8 18 1 0 0 0 is_stmt prologue_end
2626

2727
define i32 @callee(i32 %x) nounwind uwtable ssp !dbg !5 {
2828
entry:

0 commit comments

Comments
 (0)