1 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
2 ; TODO: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
4 ; CHECK: %[[TyInt:.*]] = OpTypeInt 8 0
5 ; CHECK: %[[ConstInt:.*]] = OpConstant %[[TyInt]] 123
6 ; CHECK: %[[TyPtr:.*]] = OpTypePointer {{[a-zA-Z]+}} %[[TyInt]]
7 ; CHECK: %[[VarId:.*]] = OpVariable %[[TyPtr]] {{[a-zA-Z]+}} %[[ConstInt]]
9 @0 = addrspace(1) global i8 123
11 ; Function Attrs: nounwind
12 define spir_kernel void @foo() #0 {
16 attributes #0 = { nounwind }