1 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s
3 ; CHECK: %[[#]] = OpExtInstImport "OpenCL.std"
4 ; CHECK: %[[#]] = OpTypeInt 32 0
6 define spir_kernel void @foo(i32 addrspace(1)* %a) {
8 %a.addr = alloca i32 addrspace(1)*, align 4
9 store i32 addrspace(1)* %a, i32 addrspace(1)** %a.addr, align 4
10 %0 = load i32 addrspace(1)*, i32 addrspace(1)** %a.addr, align 4
11 store i32 0, i32 addrspace(1)* %0, align 4