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(ptr addrspace(1) %arg) !kernel_arg_addr_space !1 !kernel_arg_access_qual !2 !kernel_arg_type !3 !kernel_arg_base_type !3 !kernel_arg_type_qual !4 {
8 %var = alloca ptr addrspace(1), align 8
9 ; CHECK: %[[#]] = OpFunctionParameter %[[#GLOBAL_PTR_CHAR]]
10 ; CHECK-NOT: %[[#]] = OpBitcast %[[#]] %[[#]]
11 store ptr addrspace(1) %arg, ptr %var, align 8