1 ; RUN: llc -mtriple=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
3 ; GCN-LABEL: {{^}}test_wave_barrier:
4 ; GCN-DAG: ; wave barrier
7 define amdgpu_kernel void @test_wave_barrier() #0 {
9 call void @llvm.amdgcn.wave.barrier() #1
13 ; Check for verifier error from interpreting wave_barrier as a control
16 ; GCN-LABEL: {{^}}test_wave_barrier_is_not_isBarrier:
17 ; GCN-DAG: ; wave barrier
19 define amdgpu_kernel void @test_wave_barrier_is_not_isBarrier() #0 {
21 call void @llvm.amdgcn.wave.barrier() #1
25 declare void @llvm.amdgcn.wave.barrier() #1
27 attributes #0 = { nounwind }
28 attributes #1 = { convergent nounwind }