16 lines · plain
1;; This test verifies that the Vector16 capability is correctly added2;; 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-SPIRV8 9; CHECK-SPIRV: OpCapability Vector1610 11define spir_kernel void @test(<8 x i32> %v) {12 %1 = alloca <8 x i32>, align 3213 store <8 x i32> %v, <8 x i32>* %1, align 3214 ret void15}16