3 ; RUN: llc -mtriple=amdgcn < %s -debug-only=igrouplp 2>&1 | FileCheck --check-prefixes=GCN %s
8 ; Inverted 1008: 01111110000
9 ; GCN: After Inverting, SchedGroup Mask: 1008
10 define amdgpu_kernel void @invert1() #0 {
12 call void @llvm.amdgcn.sched.barrier(i32 1) #1
13 call void @llvm.amdcn.s.nop(i16 0) #1
17 ; Inverted 2044: 11111111100
18 ; GCN: After Inverting, SchedGroup Mask: 2044
19 define amdgpu_kernel void @invert2() #0 {
21 call void @llvm.amdgcn.sched.barrier(i32 2) #1
22 call void @llvm.amdcn.s.nop(i16 0) #1
26 ; Inverted 2042: 11111111010
27 ; GCN: After Inverting, SchedGroup Mask: 2042
28 define amdgpu_kernel void @invert4() #0 {
30 call void @llvm.amdgcn.sched.barrier(i32 4) #1
31 call void @llvm.amdcn.s.nop(i16 0) #1
35 ; Inverted 2038: 11111110110
36 ; GCN: After Inverting, SchedGroup Mask: 2038
37 define amdgpu_kernel void @invert8() #0 {
39 call void @llvm.amdgcn.sched.barrier(i32 8) #1
40 call void @llvm.amdcn.s.nop(i16 0) #1
44 ; Inverted 1935: 11110001111
45 ; GCN: After Inverting, SchedGroup Mask: 1935
46 define amdgpu_kernel void @invert16() #0 {
48 call void @llvm.amdgcn.sched.barrier(i32 16) #1
49 call void @llvm.amdcn.s.nop(i16 0) #1
53 ; Inverted 1999: 11111001111
54 ; GCN: After Inverting, SchedGroup Mask: 1999
55 define amdgpu_kernel void @invert32() #0 {
57 call void @llvm.amdgcn.sched.barrier(i32 32) #1
58 call void @llvm.amdcn.s.nop(i16 0) #1
62 ; Inverted 1967: 11110101111
63 ; GCN: After Inverting, SchedGroup Mask: 1967
64 define amdgpu_kernel void @invert64() #0 {
66 call void @llvm.amdgcn.sched.barrier(i32 64) #1
67 call void @llvm.amdcn.s.nop(i16 0) #1
71 ; Inverted 1151: 10001111111
72 ; GCN: After Inverting, SchedGroup Mask: 1151
73 define amdgpu_kernel void @invert128() #0 {
75 call void @llvm.amdgcn.sched.barrier(i32 128) #1
76 call void @llvm.amdcn.s.nop(i16 0) #1
80 ; Inverted 1663: 11001111111
81 ; GCN: After Inverting, SchedGroup Mask: 1663
82 define amdgpu_kernel void @invert256() #0 {
84 call void @llvm.amdgcn.sched.barrier(i32 256) #1
85 call void @llvm.amdcn.s.nop(i16 0) #1
89 ; Inverted 1407: 10101111111
90 ; GCN: After Inverting, SchedGroup Mask: 1407
91 define amdgpu_kernel void @invert512() #0 {
93 call void @llvm.amdgcn.sched.barrier(i32 512) #1
94 call void @llvm.amdcn.s.nop(i16 0) #1
98 ; Inverted 1022: 01111111110
99 ; GCN: After Inverting, SchedGroup Mask: 1022
100 define amdgpu_kernel void @invert1024() #0 {
102 call void @llvm.amdgcn.sched.barrier(i32 1024) #1
103 call void @llvm.amdcn.s.nop(i16 0) #1
107 declare void @llvm.amdgcn.sched.barrier(i32) #1
108 declare void @llvm.amdcn.s.nop(i16) #1
110 attributes #0 = { nounwind }
111 attributes #1 = { convergent nounwind }