Skip to content

Commit e75b386

Browse files
svenvhjsji
authored andcommitted
Align constant-loclist test to upstream (#2756)
The test has evolved upstream since it was forked into this repository and started failing now. Re-align the invocations and FileCheck patterns with the test in llvm-project. Original commit: KhronosGroup/SPIRV-LLVM-Translator@4baa42c3da51c0d
1 parent e6f4ee4 commit e75b386

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

llvm-spirv/test/DebugInfo/X86/constant-loclist.ll

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
; RUN: llvm-as < %s -o %t.bc
22
; RUN: llvm-spirv %t.bc -o %t.spv
33
; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o %t.ll
4-
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -filetype=obj %t.ll -o - -experimental-debug-variable-locations=false | llvm-dwarfdump -v -debug-info - | FileCheck %s
4+
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -filetype=obj %t.ll -o - -experimental-debug-variable-locations=true | llvm-dwarfdump -v -debug-info - | FileCheck %s
55

66
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-100
77
; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o %t.ll
8-
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -filetype=obj %t.ll -o - -experimental-debug-variable-locations=false | llvm-dwarfdump -v -debug-info - | FileCheck %s
8+
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -filetype=obj %t.ll -o - -experimental-debug-variable-locations=true | llvm-dwarfdump -v -debug-info - | FileCheck %s
99

1010
; RUN: llvm-spirv %t.bc -o %t.spv --spirv-debug-info-version=nonsemantic-shader-200
1111
; RUN: llvm-spirv -r %t.spv -o - | llvm-dis -o %t.ll
12-
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -filetype=obj %t.ll -o - -experimental-debug-variable-locations=false | llvm-dwarfdump -v -debug-info - | FileCheck %s
12+
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -filetype=obj %t.ll -o - -experimental-debug-variable-locations=true | llvm-dwarfdump -v -debug-info - | FileCheck %s
1313

1414
; A hand-written testcase to check 64-bit constant handling in location lists.
1515

1616
; CHECK: .debug_info contents:
1717
; CHECK: DW_TAG_variable
1818
; CHECK-NEXT: DW_AT_location [DW_FORM_data4] (
19-
; CHECK-NEXT: 0x{{.*}}, 0x{{.*}}: DW_OP_constu 0x4000000000000000)
20-
; CHECK-NEXT: DW_AT_name {{.*}}"d"
19+
; CHECK-NEXT: {{.*}}: DW_OP_lit0
20+
; CHECK-NEXT: {{.*}}: DW_OP_constu 0x4000000000000000)
21+
; CHECK-NEXT: DW_AT_name {{.*}}"u"
2122
; CHECK: DW_TAG_variable
2223
; CHECK-NEXT: DW_AT_location [DW_FORM_data4] (
23-
; CHECK-NEXT: 0x{{.*}}, 0x{{.*}}: DW_OP_consts +0
24-
; CHECK-NEXT: 0x{{.*}}, 0x{{.*}}: DW_OP_consts +4611686018427387904)
24+
; CHECK-NEXT: {{.*}}: DW_OP_consts +0
25+
; CHECK-NEXT: {{.*}}: DW_OP_consts +4611686018427387904)
2526
; CHECK-NEXT: DW_AT_name {{.*}}"i"
2627
; CHECK: DW_TAG_variable
2728
; CHECK-NEXT: DW_AT_location [DW_FORM_data4] (
28-
; CHECK-NEXT: 0x{{.*}}, 0x{{.*}}: DW_OP_lit0
29-
; CHECK-NEXT: 0x{{.*}}, 0x{{.*}}: DW_OP_constu 0x4000000000000000)
30-
; CHECK-NEXT: DW_AT_name {{.*}}"u"
29+
; CHECK-NEXT: {{.*}}: DW_OP_constu 0x4000000000000000)
30+
; CHECK-NEXT: DW_AT_name {{.*}}"d"
3131

3232
source_filename = "test.c"
3333
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"

0 commit comments

Comments
 (0)