1 ; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
3 ; __kernel void test_fn( const __global char *src)
5 ; wait_group_events(0, NULL);
8 ; CHECK-NOT: OpCapability Groups
9 ; CHECK: OpGroupWaitEvents
11 %opencl.event_t = type opaque
13 define dso_local spir_kernel void @test_fn(i8 addrspace(1)* noundef %src) {
15 %src.addr = alloca i8 addrspace(1)*, align 8
16 store i8 addrspace(1)* %src, i8 addrspace(1)** %src.addr, align 8
17 call spir_func void @_Z17wait_group_eventsiPU3AS49ocl_event(i32 noundef 0, %opencl.event_t* addrspace(4)* noundef null)
21 declare spir_func void @_Z17wait_group_eventsiPU3AS49ocl_event(i32 noundef, %opencl.event_t* addrspace(4)* noundef)