aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/SPIRV/transcoding/vec8.ll
blob: e055e0a1231c40496a1790f74648225ae8d9a78c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
;; This test verifies that the Vector16 capability is correctly added
;; if an OpenCL kernel uses a vector of eight elements.
;;
;; Source:
;; __kernel void test( int8 v ) {}

; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV

; CHECK-SPIRV: OpCapability Vector16

define spir_kernel void @test(<8 x i32> %v) {
  %1 = alloca <8 x i32>, align 32
  store <8 x i32> %v, <8 x i32>* %1, align 32
  ret void
}