Debian Codegraph @

llvm/test/CodeGen/SPIRV/transcoding/vec8.ll

raw
1 ;; This test verifies that the Vector16 capability is correctly added
2 ;; if an OpenCL kernel uses a vector of eight elements.
3 ;;
4 ;; Source:
5 ;; __kernel void test( int8 v ) {}
6
7 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
8
9 ; CHECK-SPIRV: OpCapability Vector16
10
11 define spir_kernel void @test(<8 x i32> %v) {
12 %1 = alloca <8 x i32>, align 32
13 store <8 x i32> %v, ptr %1, align 32
14 ret void
15 }