1 ; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
2 ; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
4 ; CHECK-DAG: %[[#CHAR:]] = OpTypeInt 8
5 ; CHECK-DAG: %[[#GLOBAL_PTR_CHAR:]] = OpTypePointer CrossWorkgroup %[[#CHAR]]
7 define spir_kernel void @foo(i8 %a, ptr addrspace(1) %p) {
8 store i8 %a, ptr addrspace(1) %p
12 ; CHECK: %[[#A:]] = OpFunctionParameter %[[#CHAR]]
13 ; CHECK: %[[#P:]] = OpFunctionParameter %[[#GLOBAL_PTR_CHAR]]
14 ; CHECK: OpStore %[[#P]] %[[#A]]