• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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---
4name: func0
5tracksRegLiveness: true
6body: |
7  bb.0:
8    liveins: $sgpr7, $sgpr0_sgpr1_sgpr2_sgpr3
9
10    $sgpr33 = S_MOV_B32 $sgpr7
11    $sgpr32 = S_MOV_B32 $sgpr33
12    $sgpr10 = S_MOV_B32 5
13    $sgpr9 = S_MOV_B32 4
14    $sgpr8 = S_MOV_B32 3
15    BUNDLE implicit-def $sgpr6_sgpr7, implicit-def $sgpr6, implicit-def $sgpr7, implicit-def $scc {
16      $sgpr6_sgpr7 = S_GETPC_B64
17      $sgpr6 = S_ADD_U32 internal $sgpr6, 0, implicit-def $scc
18      $sgpr7 = S_ADDC_U32 internal $sgpr7,0, implicit-def $scc, implicit internal $scc
19    }
20    $sgpr4 = S_MOV_B32 $sgpr33
21    $vgpr0 = V_MOV_B32_e32 $sgpr8, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit $sgpr8_sgpr9_sgpr10_sgpr11
22    $vgpr1 = V_MOV_B32_e32 $sgpr9, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
23    $vgpr2 = V_MOV_B32_e32 $sgpr10, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
24    $vgpr3 = V_MOV_B32_e32 $sgpr11, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11, implicit $exec
25    S_NOP 0, implicit killed $sgpr6_sgpr7, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit $sgpr4, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3
26    S_ENDPGM
27...
28# CHECK-LABEL: name: func0
29# CHECK: $sgpr10 = S_MOV_B32 5
30# CHECK: $sgpr9 = S_MOV_B32 4
31# CHECK: $sgpr8 = S_MOV_B32 3
32# CHECK: $sgpr33 = S_MOV_B32 killed $sgpr7
33# CHECK: $vgpr0 = V_MOV_B32_e32 $sgpr8, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit $sgpr8_sgpr9_sgpr10_sgpr11
34# CHECK: BUNDLE implicit-def $sgpr6_sgpr7, implicit-def $sgpr6, implicit-def $sgpr7, implicit-def $scc {
35# CHECK:   $sgpr6_sgpr7 = S_GETPC_B64
36# CHECK:   $sgpr6 = S_ADD_U32 internal $sgpr6, 0, implicit-def $scc
37# CHECK:   $sgpr7 = S_ADDC_U32 internal $sgpr7, 0, implicit-def $scc, implicit internal $scc
38# CHECK: }
39# CHECK: $sgpr4 = S_MOV_B32 $sgpr33
40# CHECK: $vgpr1 = V_MOV_B32_e32 $sgpr9, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
41# CHECK: $vgpr2 = V_MOV_B32_e32 $sgpr10, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
42# CHECK: $vgpr3 = V_MOV_B32_e32 killed $sgpr11, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11, implicit $exec
43# CHECK: $sgpr32 = S_MOV_B32 killed $sgpr33
44# CHECK: S_NOP 0, implicit killed $sgpr6_sgpr7, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit $sgpr4, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3
45# CHECK: S_ENDPGM
46