|
1 | 1 | ; RUN: llvm-as %s -o %t.bc
|
2 | 2 | ; RUN: llvm-spirv %t.bc -o %t.spv
|
3 |
| -; RUN: spirv-val %t.spv |
4 | 3 | ; RUN: llvm-spirv -r %t.spv -o %t.rev.bc
|
5 | 4 | ; RUN: llvm-dis < %t.rev.bc | FileCheck %s
|
6 | 5 |
|
7 |
| -source_filename = "/the_file.ll" |
8 |
| -target triple = "spir" |
| 6 | +source_filename = "the_file.ll" |
| 7 | +target triple = "spir64-unknown-unknown" |
9 | 8 |
|
10 | 9 | ; Function Attrs: nounwind
|
11 | 10 | define spir_func i1 @trunc_to_i1(i32 %iarg) #0 !dbg !7 {
|
@@ -72,36 +71,30 @@ define spir_func float @uitofp_b(i1 %barg) #0 !dbg !20 {
|
72 | 71 |
|
73 | 72 | attributes #0 = { nounwind }
|
74 | 73 |
|
75 |
| -!opencl.enable.FP_CONTRACT = !{} |
76 |
| -!opencl.spir.version = !{!0} |
77 |
| -!opencl.ocl.version = !{!0} |
78 |
| -!opencl.used.extensions = !{!1} |
79 |
| -!opencl.used.optional.core.features = !{!1} |
80 |
| -!opencl.compiler.options = !{!1} |
81 | 74 | !llvm.dbg.cu = !{!2}
|
82 | 75 | !llvm.debugify = !{!4, !5}
|
83 | 76 | !llvm.module.flags = !{!6}
|
84 | 77 |
|
85 | 78 | !0 = !{i32 1, i32 2}
|
86 | 79 | !1 = !{}
|
87 |
| -!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "debugify", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug) |
88 |
| -!3 = !DIFile(filename: "/the_file.ll", directory: "/") |
| 80 | +!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "debugify", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug) |
| 81 | +!3 = !DIFile(filename: "the_file.ll", directory: "", checksumkind: CSK_MD5, checksum: "18aa9ce738eaafc7b7b7181c19092815") |
89 | 82 | !4 = !{i32 10}
|
90 | 83 | !5 = !{i32 0}
|
91 | 84 | !6 = !{i32 2, !"Debug Info Version", i32 3}
|
92 |
| -!7 = distinct !DISubprogram(name: "trunc_to_i1", linkageName: "trunc_to_i1", scope: null, file: !3, line: 1, type: !8, scopeLine: 1, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !1) |
| 85 | +!7 = distinct !DISubprogram(name: "trunc_to_i1", scope: !3, file: !3, line: 1, type: !8, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !1) |
93 | 86 | !8 = !DISubroutineType(types: !1)
|
94 | 87 | !9 = !DILocation(line: 1, column: 1, scope: !7)
|
95 | 88 | !10 = !DILocation(line: 2, column: 1, scope: !7)
|
96 |
| -!11 = distinct !DISubprogram(name: "sext_from_i1", linkageName: "sext_from_i1", scope: null, file: !3, line: 3, type: !8, scopeLine: 3, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !1) |
| 89 | +!11 = distinct !DISubprogram(name: "sext_from_i1", scope: !3, file: !3, line: 3, type: !8, scopeLine: 3, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !1) |
97 | 90 | !12 = !DILocation(line: 3, column: 1, scope: !11)
|
98 | 91 | !13 = !DILocation(line: 4, column: 1, scope: !11)
|
99 |
| -!14 = distinct !DISubprogram(name: "zext_from_i1", linkageName: "zext_from_i1", scope: null, file: !3, line: 5, type: !8, scopeLine: 5, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !1) |
| 92 | +!14 = distinct !DISubprogram(name: "zext_from_i1", scope: !3, file: !3, line: 5, type: !8, scopeLine: 5, flags: DIFlagPrototyped , spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !1) |
100 | 93 | !15 = !DILocation(line: 5, column: 1, scope: !14)
|
101 | 94 | !16 = !DILocation(line: 6, column: 1, scope: !14)
|
102 |
| -!17 = distinct !DISubprogram(name: "sitofp_b", linkageName: "sitofp_b", scope: null, file: !3, line: 7, type: !8, scopeLine: 7, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !1) |
| 95 | +!17 = distinct !DISubprogram(name: "sitofp_b", scope: !3, file: !3, line: 7, type: !8, scopeLine: 7, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !1) |
103 | 96 | !18 = !DILocation(line: 7, column: 1, scope: !17)
|
104 | 97 | !19 = !DILocation(line: 8, column: 1, scope: !17)
|
105 |
| -!20 = distinct !DISubprogram(name: "uitofp_b", linkageName: "uitofp_b", scope: null, file: !3, line: 9, type: !8, scopeLine: 9, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !2, retainedNodes: !1) |
| 98 | +!20 = distinct !DISubprogram(name: "uitofp_b", scope: !3, file: !3, line: 9, type: !8, scopeLine: 9, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !2, retainedNodes: !1) |
106 | 99 | !21 = !DILocation(line: 9, column: 1, scope: !20)
|
107 | 100 | !22 = !DILocation(line: 10, column: 1, scope: !20)
|
0 commit comments