1 ; RUN: llc -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s
3 ; CHECK: [[uint:%[0-9]+]] = OpTypeInt 32 0
4 ; CHECK: [[uint2:%[0-9]+]] = OpTypeVector [[uint]] 2
5 ; CHECK: [[uint_1:%[0-9]+]] = OpConstant [[uint]] 1
6 ; CHECK: [[ptr_uint:%[0-9]+]] = OpTypePointer Function [[uint]]
7 ; CHECK: [[ptr_uint2:%[0-9]+]] = OpTypePointer Function [[uint2]]
9 define void @main() #1 {
11 %0 = alloca <2 x i32>, align 4
12 ; CHECK: [[var:%[0-9]+]] = OpVariable [[ptr_uint2]] Function
14 %1 = getelementptr <2 x i32>, ptr %0, i32 0, i32 1
15 ; CHECK: {{%[0-9]+}} = OpAccessChain [[ptr_uint]] [[var]] [[uint_1]]
20 attributes #1 = { "hlsl.numthreads"="4,8,16" "hlsl.shader"="compute" }