150
|
1 # RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs -run-pass=post-RA-sched -o - %s | FileCheck %s
|
|
2 # Make sure ScheduleDAGInstrs::fixupKills does not produce invalid kill flags.
|
|
3 ---
|
|
4 name: func0
|
|
5 tracksRegLiveness: true
|
|
6 machineFunctionInfo:
|
|
7 isEntryFunction: true
|
|
8 scratchRSrcReg: '$sgpr0_sgpr1_sgpr2_sgpr3'
|
|
9 frameOffsetReg: '$sgpr7'
|
|
10 body: |
|
|
11 bb.0:
|
|
12
|
|
13 $sgpr33 = S_MOV_B32 $sgpr7
|
|
14 $sgpr32 = S_MOV_B32 $sgpr33
|
|
15 $sgpr10 = S_MOV_B32 5
|
|
16 $sgpr9 = S_MOV_B32 4
|
|
17 $sgpr8 = S_MOV_B32 3
|
|
18 BUNDLE implicit-def $sgpr6_sgpr7, implicit-def $sgpr6, implicit-def $sgpr7, implicit-def $scc {
|
|
19 $sgpr6_sgpr7 = S_GETPC_B64
|
|
20 $sgpr6 = S_ADD_U32 internal $sgpr6, 0, implicit-def $scc
|
|
21 $sgpr7 = S_ADDC_U32 internal $sgpr7,0, implicit-def $scc, implicit internal $scc
|
|
22 }
|
|
23 $sgpr4 = S_MOV_B32 $sgpr33
|
|
24 $vgpr0 = V_MOV_B32_e32 $sgpr8, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
25 $vgpr1 = V_MOV_B32_e32 $sgpr9, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
26 $vgpr2 = V_MOV_B32_e32 $sgpr10, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
27 $vgpr3 = V_MOV_B32_e32 $sgpr11, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11, implicit $exec
|
|
28 S_NOP 0, implicit killed $sgpr6_sgpr7, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit $sgpr4, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3
|
|
29 S_ENDPGM 0
|
|
30 ...
|
|
31 # CHECK-LABEL: name: func0
|
|
32 # CHECK-DAG: $sgpr10 = S_MOV_B32 5
|
|
33 # CHECK-DAG: $sgpr9 = S_MOV_B32 4
|
|
34 # CHECK-DAG: $sgpr8 = S_MOV_B32 3
|
|
35 # CHECK-DAG: $sgpr33 = S_MOV_B32 $sgpr7
|
|
36 # CHECK: $vgpr0 = V_MOV_B32_e32 $sgpr8, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
37 # CHECK: BUNDLE implicit-def $sgpr6_sgpr7, implicit-def $sgpr6, implicit-def $sgpr7, implicit-def $scc {
|
|
38 # CHECK: $sgpr6_sgpr7 = S_GETPC_B64
|
|
39 # CHECK: $sgpr6 = S_ADD_U32 internal $sgpr6, 0, implicit-def $scc
|
|
40 # CHECK: $sgpr7 = S_ADDC_U32 internal $sgpr7, 0, implicit-def $scc, implicit internal $scc
|
|
41 # CHECK: }
|
|
42 # CHECK: $sgpr32 = S_MOV_B32 $sgpr33
|
|
43 # CHECK: $sgpr4 = S_MOV_B32 killed $sgpr33
|
|
44 # CHECK: $vgpr1 = V_MOV_B32_e32 $sgpr9, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
45 # CHECK: $vgpr2 = V_MOV_B32_e32 $sgpr10, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
46 # CHECK: $vgpr3 = V_MOV_B32_e32 killed $sgpr11, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11, implicit $exec
|
|
47 # CHECK: S_NOP 0, implicit $sgpr6_sgpr7, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit killed $sgpr4, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3
|
|
48 # CHECK: S_ENDPGM 0
|