annotate llvm/test/CodeGen/AMDGPU/misched-killflags.mir @ 223:5f17cb93ff66 llvm-original

LLVM13 (2021/7/18)
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:43:00 +0900
parents 0572611fdcc8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 # RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs -run-pass=post-RA-sched -o - %s | FileCheck %s
anatofuz
parents:
diff changeset
2 # Make sure ScheduleDAGInstrs::fixupKills does not produce invalid kill flags.
anatofuz
parents:
diff changeset
3 ---
anatofuz
parents:
diff changeset
4 name: func0
anatofuz
parents:
diff changeset
5 tracksRegLiveness: true
anatofuz
parents:
diff changeset
6 machineFunctionInfo:
anatofuz
parents:
diff changeset
7 isEntryFunction: true
anatofuz
parents:
diff changeset
8 scratchRSrcReg: '$sgpr0_sgpr1_sgpr2_sgpr3'
anatofuz
parents:
diff changeset
9 frameOffsetReg: '$sgpr7'
anatofuz
parents:
diff changeset
10 body: |
anatofuz
parents:
diff changeset
11 bb.0:
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 $sgpr33 = S_MOV_B32 $sgpr7
anatofuz
parents:
diff changeset
14 $sgpr32 = S_MOV_B32 $sgpr33
anatofuz
parents:
diff changeset
15 $sgpr10 = S_MOV_B32 5
anatofuz
parents:
diff changeset
16 $sgpr9 = S_MOV_B32 4
anatofuz
parents:
diff changeset
17 $sgpr8 = S_MOV_B32 3
anatofuz
parents:
diff changeset
18 BUNDLE implicit-def $sgpr6_sgpr7, implicit-def $sgpr6, implicit-def $sgpr7, implicit-def $scc {
anatofuz
parents:
diff changeset
19 $sgpr6_sgpr7 = S_GETPC_B64
anatofuz
parents:
diff changeset
20 $sgpr6 = S_ADD_U32 internal $sgpr6, 0, implicit-def $scc
anatofuz
parents:
diff changeset
21 $sgpr7 = S_ADDC_U32 internal $sgpr7,0, implicit-def $scc, implicit internal $scc
anatofuz
parents:
diff changeset
22 }
anatofuz
parents:
diff changeset
23 $sgpr4 = S_MOV_B32 $sgpr33
anatofuz
parents:
diff changeset
24 $vgpr0 = V_MOV_B32_e32 $sgpr8, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit $sgpr8_sgpr9_sgpr10_sgpr11
anatofuz
parents:
diff changeset
25 $vgpr1 = V_MOV_B32_e32 $sgpr9, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
anatofuz
parents:
diff changeset
26 $vgpr2 = V_MOV_B32_e32 $sgpr10, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
anatofuz
parents:
diff changeset
27 $vgpr3 = V_MOV_B32_e32 $sgpr11, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11, implicit $exec
anatofuz
parents:
diff changeset
28 S_NOP 0, implicit killed $sgpr6_sgpr7, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit $sgpr4, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3
anatofuz
parents:
diff changeset
29 S_ENDPGM 0
anatofuz
parents:
diff changeset
30 ...
anatofuz
parents:
diff changeset
31 # CHECK-LABEL: name: func0
anatofuz
parents:
diff changeset
32 # CHECK-DAG: $sgpr10 = S_MOV_B32 5
anatofuz
parents:
diff changeset
33 # CHECK-DAG: $sgpr9 = S_MOV_B32 4
anatofuz
parents:
diff changeset
34 # CHECK-DAG: $sgpr8 = S_MOV_B32 3
anatofuz
parents:
diff changeset
35 # CHECK-DAG: $sgpr33 = S_MOV_B32 $sgpr7
anatofuz
parents:
diff changeset
36 # CHECK: $vgpr0 = V_MOV_B32_e32 $sgpr8, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit $sgpr8_sgpr9_sgpr10_sgpr11
anatofuz
parents:
diff changeset
37 # CHECK: BUNDLE implicit-def $sgpr6_sgpr7, implicit-def $sgpr6, implicit-def $sgpr7, implicit-def $scc {
anatofuz
parents:
diff changeset
38 # CHECK: $sgpr6_sgpr7 = S_GETPC_B64
anatofuz
parents:
diff changeset
39 # CHECK: $sgpr6 = S_ADD_U32 internal $sgpr6, 0, implicit-def $scc
anatofuz
parents:
diff changeset
40 # CHECK: $sgpr7 = S_ADDC_U32 internal $sgpr7, 0, implicit-def $scc, implicit internal $scc
anatofuz
parents:
diff changeset
41 # CHECK: }
anatofuz
parents:
diff changeset
42 # CHECK: $sgpr32 = S_MOV_B32 $sgpr33
anatofuz
parents:
diff changeset
43 # CHECK: $sgpr4 = S_MOV_B32 killed $sgpr33
anatofuz
parents:
diff changeset
44 # CHECK: $vgpr1 = V_MOV_B32_e32 $sgpr9, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
anatofuz
parents:
diff changeset
45 # CHECK: $vgpr2 = V_MOV_B32_e32 $sgpr10, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
anatofuz
parents:
diff changeset
46 # CHECK: $vgpr3 = V_MOV_B32_e32 killed $sgpr11, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11, implicit $exec
anatofuz
parents:
diff changeset
47 # CHECK: S_NOP 0, implicit $sgpr6_sgpr7, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit killed $sgpr4, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3
anatofuz
parents:
diff changeset
48 # CHECK: S_ENDPGM 0