annotate llvm/test/CodeGen/AMDGPU/insert-waitcnts-exp.mir @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # RUN: llc -march=amdgcn -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck %s
anatofuz
parents:
diff changeset
2 --- |
anatofuz
parents:
diff changeset
3 define amdgpu_ps <4 x float> @exp_done_waitcnt(<4 x i32> inreg, <4 x
anatofuz
parents:
diff changeset
4 i32> inreg, i32 inreg %w, float %v) #0 {
anatofuz
parents:
diff changeset
5 %a = load volatile float, float addrspace(1)* undef
anatofuz
parents:
diff changeset
6 %b = load volatile float, float addrspace(1)* undef
anatofuz
parents:
diff changeset
7 %c = load volatile float, float addrspace(1)* undef
anatofuz
parents:
diff changeset
8 %d = load volatile float, float addrspace(1)* undef
anatofuz
parents:
diff changeset
9 call void @llvm.amdgcn.exp.f32(i32 15, i32 1, float %a, float %b, float %c, float %d, i1 true, i1 false)
anatofuz
parents:
diff changeset
10 ret <4 x float> <float 5.000000e-01, float 1.000000e+00, float 2.000000e+00, float 4.000000e+00>
anatofuz
parents:
diff changeset
11 }
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 declare void @llvm.amdgcn.exp.f32(i32, i32, float, float, float, float, i1, i1) #0
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 attributes #0 = { nounwind }
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 ...
anatofuz
parents:
diff changeset
18 ---
anatofuz
parents:
diff changeset
19
anatofuz
parents:
diff changeset
20 # CHECK-LABEL: name: exp_done_waitcnt{{$}}
anatofuz
parents:
diff changeset
21 # CHECK: EXP_DONE
anatofuz
parents:
diff changeset
22 # CHECK-NEXT: S_WAITCNT 3855
anatofuz
parents:
diff changeset
23 # CHECK: $vgpr0 = V_MOV_B32
anatofuz
parents:
diff changeset
24 # CHECK: $vgpr1 = V_MOV_B32
anatofuz
parents:
diff changeset
25 # CHECK: $vgpr2 = V_MOV_B32
anatofuz
parents:
diff changeset
26 # CHECK: $vgpr3 = V_MOV_B32
anatofuz
parents:
diff changeset
27 name: exp_done_waitcnt
anatofuz
parents:
diff changeset
28 alignment: 1
anatofuz
parents:
diff changeset
29 exposesReturnsTwice: false
anatofuz
parents:
diff changeset
30 legalized: false
anatofuz
parents:
diff changeset
31 regBankSelected: false
anatofuz
parents:
diff changeset
32 selected: false
anatofuz
parents:
diff changeset
33 tracksRegLiveness: true
anatofuz
parents:
diff changeset
34 frameInfo:
anatofuz
parents:
diff changeset
35 isFrameAddressTaken: false
anatofuz
parents:
diff changeset
36 isReturnAddressTaken: false
anatofuz
parents:
diff changeset
37 hasStackMap: false
anatofuz
parents:
diff changeset
38 hasPatchPoint: false
anatofuz
parents:
diff changeset
39 stackSize: 0
anatofuz
parents:
diff changeset
40 offsetAdjustment: 0
anatofuz
parents:
diff changeset
41 maxAlignment: 0
anatofuz
parents:
diff changeset
42 adjustsStack: false
anatofuz
parents:
diff changeset
43 hasCalls: false
anatofuz
parents:
diff changeset
44 maxCallFrameSize: 0
anatofuz
parents:
diff changeset
45 hasOpaqueSPAdjustment: false
anatofuz
parents:
diff changeset
46 hasVAStart: false
anatofuz
parents:
diff changeset
47 hasMustTailInVarArgFunc: false
anatofuz
parents:
diff changeset
48 body: |
anatofuz
parents:
diff changeset
49 bb.0 (%ir-block.2):
anatofuz
parents:
diff changeset
50 $sgpr3 = S_MOV_B32 61440
anatofuz
parents:
diff changeset
51 $sgpr2 = S_MOV_B32 -1
anatofuz
parents:
diff changeset
52 $vgpr0 = BUFFER_LOAD_DWORD_OFFSET $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, 0, 0, 0, implicit $exec :: (volatile load 4 from `float addrspace(1)* undef`)
anatofuz
parents:
diff changeset
53 $vgpr1 = BUFFER_LOAD_DWORD_OFFSET $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, 0, 0, 0, implicit $exec :: (volatile load 4 from `float addrspace(1)* undef`)
anatofuz
parents:
diff changeset
54 $vgpr2 = BUFFER_LOAD_DWORD_OFFSET $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, 0, 0, 0, implicit $exec :: (volatile load 4 from `float addrspace(1)* undef`)
anatofuz
parents:
diff changeset
55 $vgpr3 = BUFFER_LOAD_DWORD_OFFSET killed $sgpr0_sgpr1_sgpr2_sgpr3, 0, 0, 0, 0, 0, 0, 0, implicit $exec :: (volatile load 4 from `float addrspace(1)* undef`)
anatofuz
parents:
diff changeset
56 EXP_DONE 0, killed $vgpr0, killed $vgpr1, killed $vgpr2, killed $vgpr3, -1, -1, 15, implicit $exec
anatofuz
parents:
diff changeset
57 $vgpr0 = V_MOV_B32_e32 1056964608, implicit $exec
anatofuz
parents:
diff changeset
58 $vgpr1 = V_MOV_B32_e32 1065353216, implicit $exec
anatofuz
parents:
diff changeset
59 $vgpr2 = V_MOV_B32_e32 1073741824, implicit $exec
anatofuz
parents:
diff changeset
60 $vgpr3 = V_MOV_B32_e32 1082130432, implicit $exec
anatofuz
parents:
diff changeset
61 SI_RETURN_TO_EPILOG killed $vgpr0, killed $vgpr1, killed $vgpr2, killed $vgpr3
anatofuz
parents:
diff changeset
62
anatofuz
parents:
diff changeset
63 ...