Debian Codegraph @

IGC/ocloc_tests/SPIRV-extenstions/SPV_INTEL_runtime_aligned/RuntimeAligned.ll

raw
1 ; UNSUPPORTED: system-windows
2 ; REQUIRES: llvm-spirv, regkeys, dg2-supported
3
4 ; RUN: llvm-as %s -o %t.bc
5 ; RUN: llvm-spirv %t.bc --spirv-ext=+SPV_INTEL_runtime_aligned -o %t.spv
6 ; RUN: ocloc compile -spirv_input -file %t.spv -device dg2 -options " -igc_opts 'ShaderDumpTranslationOnly=1'" 2>&1 | FileCheck %s --check-prefixes=CHECK-LLVM
7
8 ; CHECK-LLVM: define spir_kernel void @test{{.*}} !kernel_arg_runtime_aligned ![[RTALIGN_MD:[0-9]+]] {{.*}}
9 ; CHECK-LLVM: ![[RTALIGN_MD]] = !{i1 true, i1 false, i1 true, i1 false, i1 false}
10
11 ; ModuleID = 'runtime_aligned.bc'
12 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024"
13 target triple = "spir64-unknown-unknown"
14
15 ; Function Attrs: nounwind
16 define spir_kernel void @test(i32 addrspace(1)* %a, float addrspace(1)* %b, i32 addrspace(1)* %c, i32 %d, i32 %e) #0 !kernel_arg_addr_space !5 !kernel_arg_access_qual !6 !kernel_arg_type !7 !kernel_arg_type_qual !8 !kernel_arg_base_type !9 !kernel_arg_runtime_aligned !10 {
17 entry:
18 ret void
19 }
20
21 attributes #0 = { nounwind }
22
23 !spirv.MemoryModel = !{!0}
24 !opencl.enable.FP_CONTRACT = !{}
25 !spirv.Source = !{!1}
26 !opencl.spir.version = !{!2}
27 !opencl.ocl.version = !{!1}
28 !opencl.used.extensions = !{!3}
29 !opencl.used.optional.core.features = !{!3}
30 !spirv.Generator = !{!4}
31
32 !0 = !{i32 2, i32 2}
33 !1 = !{i32 0, i32 0}
34 !2 = !{i32 1, i32 2}
35 !3 = !{}
36 !4 = !{i16 6, i16 14}
37 !5 = !{i32 1, i32 1, i32 1, i32 0, i32 0}
38 !6 = !{!"none", !"none", !"none", !"none", !"none"}
39 !7 = !{!"int*", !"float*", !"int*"}
40 !8 = !{!"", !"", !"", !"", !""}
41 !9 = !{!"int*", !"float*", !"int*", !"int", !"int"}
42 !10 = !{i1 true, i1 false, i1 true, i1 false, i1 false}