Skip to content

Commit 6f3f54c

Browse files
smilczekigcbot
authored andcommitted
Fix typo in ocloc test RUN command.
Ocloc test generate_enum.ll contains a command that looks for a file name that does not exist, because of lack of match with kernel name. This causes verify build to fail. This commit changes the kernel name to 'foo' to remedy this issue.
1 parent 192e16d commit 6f3f54c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

IGC/ocloc_tests/DebugInfo/Dwarf/generate_enum.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
; LLVM with typed pointers:
2121
; RUN: llvm-as -opaque-pointers=0 %s -o %t
2222
; RUN: ocloc compile -llvm_input -file %t -device dg2 -options "-g -cl-opt-disable -igc_opts 'ElfDumpEnable=1, DumpUseShorterName=0, DebugDumpNamePrefix=%t_'"
23-
; RUN: oneapi-readelf --debug-dump %t_OCL_simd32__ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E13simple_kernel.elf | FileCheck %s
23+
; RUN: oneapi-readelf --debug-dump %t_OCL_simd32_foo.elf | FileCheck %s
2424

2525
; CHECK DW_AT_name : typeinfo name for main::'lambda'(sycl::_V1::handler&)::operator()(sycl::_V1::handler&) const::simple_kernel
2626
; CHECK: DW_TAG_enumeration_type
@@ -31,7 +31,7 @@
3131
@a = addrspace(1) global i64 0, align 8, !dbg !0
3232

3333
; Function Attrs: nounwind
34-
define spir_kernel void @_ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E13simple_kernel() #0 !dbg !17 {
34+
define spir_kernel void @foo() #0 !dbg !17 {
3535
entry:
3636
%b = alloca i32, align 4
3737
call void @llvm.dbg.value(metadata i32* %b, metadata !20, metadata !22), !dbg !23
@@ -65,7 +65,7 @@ attributes #1 = { nounwind readnone }
6565
!14 = !{!0}
6666
!15 = !{i32 2, !"Dwarf Version", i32 4}
6767
!16 = !{i32 1, !"Debug Info Version", i32 3}
68-
!17 = distinct !DISubprogram(name: "_ZTSZZ4mainENKUlRN4sycl3_V17handlerEE_clES2_E13simple_kernel", scope: !2, file: !2, line: 3, type: !18, flags: DIFlagPrototyped, unit: !8, retainedNodes: !13)
68+
!17 = distinct !DISubprogram(name: "foo", scope: !2, file: !2, line: 3, type: !18, flags: DIFlagPrototyped, unit: !8, retainedNodes: !13)
6969
!18 = !DISubroutineType(types: !19)
7070
!19 = !{null}
7171
!20 = !DILocalVariable(name: "b", scope: !17, file: !2, line: 4, type: !21)

0 commit comments

Comments
 (0)