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.
5 tracksRegLiveness: true
8 scratchRSrcReg: '$sgpr0_sgpr1_sgpr2_sgpr3'
9 scratchWaveOffsetReg: '$sgpr7'
10 frameOffsetReg: '$sgpr7'
14 $sgpr33 = S_MOV_B32 $sgpr7
15 $sgpr32 = S_MOV_B32 $sgpr33
19 BUNDLE implicit-def $sgpr6_sgpr7, implicit-def $sgpr6, implicit-def $sgpr7, implicit-def $scc {
20 $sgpr6_sgpr7 = S_GETPC_B64
21 $sgpr6 = S_ADD_U32 internal $sgpr6, 0, implicit-def $scc
22 $sgpr7 = S_ADDC_U32 internal $sgpr7,0, implicit-def $scc, implicit internal $scc
24 $sgpr4 = S_MOV_B32 $sgpr33
25 $vgpr0 = V_MOV_B32_e32 $sgpr8, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit $sgpr8_sgpr9_sgpr10_sgpr11
26 $vgpr1 = V_MOV_B32_e32 $sgpr9, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
27 $vgpr2 = V_MOV_B32_e32 $sgpr10, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
28 $vgpr3 = V_MOV_B32_e32 $sgpr11, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11, implicit $exec
29 S_NOP 0, implicit killed $sgpr6_sgpr7, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit $sgpr4, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3
32 # CHECK-LABEL: name: func0
33 # CHECK-DAG: $sgpr10 = S_MOV_B32 5
34 # CHECK-DAG: $sgpr9 = S_MOV_B32 4
35 # CHECK-DAG: $sgpr8 = S_MOV_B32 3
36 # CHECK-DAG: $sgpr33 = S_MOV_B32 $sgpr7
37 # CHECK: $vgpr0 = V_MOV_B32_e32 $sgpr8, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit $sgpr8_sgpr9_sgpr10_sgpr11
38 # CHECK: $sgpr32 = S_MOV_B32 $sgpr33
39 # CHECK: BUNDLE implicit-def $sgpr6_sgpr7, implicit-def $sgpr6, implicit-def $sgpr7, implicit-def $scc {
40 # CHECK: $sgpr6_sgpr7 = S_GETPC_B64
41 # CHECK: $sgpr6 = S_ADD_U32 internal $sgpr6, 0, implicit-def $scc
42 # CHECK: $sgpr7 = S_ADDC_U32 internal $sgpr7, 0, implicit-def $scc, implicit internal $scc
44 # CHECK: $sgpr4 = S_MOV_B32 killed $sgpr33
45 # CHECK: $vgpr1 = V_MOV_B32_e32 $sgpr9, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
46 # CHECK: $vgpr2 = V_MOV_B32_e32 $sgpr10, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
47 # CHECK: $vgpr3 = V_MOV_B32_e32 killed $sgpr11, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11, implicit $exec
48 # CHECK: S_NOP 0, implicit $sgpr6_sgpr7, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit killed $sgpr4, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3