• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-as < %s | llvm-spirv -spirv-text -o %t
2; RUN: FileCheck < %t %s
3
4; check for magic number followed by version 1.1
5; CHECK: 119734787 65792
6
7target 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"
8target triple = "spir-unknown-unknown"
9
10; Function Attrs: nounwind
11define spir_kernel void @worker() #0 {
12entry:
13  ret void
14}
15
16attributes #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" }
17
18!spirv.ExecutionMode = !{!0}
19!opencl.enable.FP_CONTRACT = !{}
20!opencl.spir.version = !{!6}
21!opencl.ocl.version = !{!7}
22!opencl.used.extensions = !{!8}
23!opencl.used.optional.core.features = !{!8}
24!opencl.compiler.options = !{!8}
25!llvm.ident = !{!9}
26!spirv.Source = !{!10}
27
28!0 = !{void ()* @worker, i32 33}
29!6 = !{i32 1, i32 2}
30!7 = !{i32 2, i32 2}
31!8 = !{}
32!9 = !{!"clang version 3.6.1 "}
33!10 = !{i32 4, i32 202000}
34