Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/test/SPIRVVersionAutodetect_1_1.ll

raw
1 ; RUN: llvm-as %s -o %t.bc
2 ; RUN: llvm-spirv %t.bc -spirv-text -o %t
3 ; RUN: FileCheck < %t %s
4 ; RUN: llvm-spirv %t.bc -o %t.spv
5 ; RUN: spirv-val %t.spv
6
7 ; check for magic number followed by version 1.1
8 ; CHECK: 119734787 65792
9
10 target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
11 target triple = "spir-unknown-unknown"
12
13 ; Function Attrs: nounwind
14 define spir_kernel void @worker() #0 {
15 entry:
16 ret void
17 }
18
19 attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
20
21 !spirv.ExecutionMode = !{!0}
22 !opencl.enable.FP_CONTRACT = !{}
23 !opencl.spir.version = !{!6}
24 !opencl.ocl.version = !{!7}
25 !opencl.used.extensions = !{!8}
26 !opencl.used.optional.core.features = !{!8}
27 !opencl.compiler.options = !{!8}
28 !llvm.ident = !{!9}
29 !spirv.Source = !{!10}
30
31 !0 = !{void ()* @worker, i32 33}
32 !6 = !{i32 1, i32 2}
33 !7 = !{i32 2, i32 2}
34 !8 = !{}
35 !9 = !{!"clang version 3.6.1 "}
36 !10 = !{i32 4, i32 202000}