1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
4 define amdgpu_kernel void @test_sched_barrier() #0 {
5 ; GCN-LABEL: test_sched_barrier:
6 ; GCN: ; %bb.0: ; %entry
7 ; GCN-NEXT: ; sched_barrier mask(0x00000000)
8 ; GCN-NEXT: ; sched_barrier mask(0x00000001)
9 ; GCN-NEXT: ; sched_barrier mask(0x00000004)
10 ; GCN-NEXT: ; sched_barrier mask(0x0000000F)
13 call void @llvm.amdgcn.sched.barrier(i32 0) #1
14 call void @llvm.amdgcn.sched.barrier(i32 1) #1
15 call void @llvm.amdgcn.sched.barrier(i32 4) #1
16 call void @llvm.amdgcn.sched.barrier(i32 15) #1
20 declare void @llvm.amdgcn.sched.barrier(i32) #1
22 attributes #0 = { nounwind }
23 attributes #1 = { convergent nounwind }