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