Debian Codegraph @

llvm/test/CodeGen/SPIRV/transcoding/optional-core-features-multiple.ll

raw
1 ;; OpenCL C source
2 ;; -----------------------------------------------
3 ;; double d = 1.0;
4 ;; kernel void test(read_only image2d_t img) {}
5 ;; -----------------------------------------------
6
7 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
8
9 @d = addrspace(1) global double 1.000000e+00, align 8
10
11 define spir_kernel void @test(target("spirv.Image", void, 1, 0, 0, 0, 0, 0, 0) %img) {
12 entry:
13 ret void
14 }
15
16 ; CHECK-SPIRV-DAG: OpCapability Float64
17 ; CHECK-SPIRV-DAG: OpCapability ImageBasic