2017-06-27 08:58:48 +08:00
|
|
|
# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs -run-pass=post-RA-sched -o - %s | FileCheck %s
|
|
|
|
# Make sure ScheduleDAGInstrs::fixupKills does not produce invalid kill flags.
|
|
|
|
---
|
|
|
|
name: func0
|
|
|
|
tracksRegLiveness: true
|
2019-03-28 00:12:26 +08:00
|
|
|
machineFunctionInfo:
|
|
|
|
isEntryFunction: true
|
|
|
|
scratchRSrcReg: '$sgpr0_sgpr1_sgpr2_sgpr3'
|
|
|
|
scratchWaveOffsetReg: '$sgpr7'
|
|
|
|
frameOffsetReg: '$sgpr7'
|
2017-06-27 08:58:48 +08:00
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
$sgpr33 = S_MOV_B32 $sgpr7
|
|
|
|
$sgpr32 = S_MOV_B32 $sgpr33
|
|
|
|
$sgpr10 = S_MOV_B32 5
|
|
|
|
$sgpr9 = S_MOV_B32 4
|
|
|
|
$sgpr8 = S_MOV_B32 3
|
|
|
|
BUNDLE implicit-def $sgpr6_sgpr7, implicit-def $sgpr6, implicit-def $sgpr7, implicit-def $scc {
|
|
|
|
$sgpr6_sgpr7 = S_GETPC_B64
|
|
|
|
$sgpr6 = S_ADD_U32 internal $sgpr6, 0, implicit-def $scc
|
|
|
|
$sgpr7 = S_ADDC_U32 internal $sgpr7,0, implicit-def $scc, implicit internal $scc
|
2017-06-27 08:58:48 +08:00
|
|
|
}
|
2018-02-01 06:04:26 +08:00
|
|
|
$sgpr4 = S_MOV_B32 $sgpr33
|
|
|
|
$vgpr0 = V_MOV_B32_e32 $sgpr8, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
|
|
$vgpr1 = V_MOV_B32_e32 $sgpr9, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
|
|
$vgpr2 = V_MOV_B32_e32 $sgpr10, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
|
|
$vgpr3 = V_MOV_B32_e32 $sgpr11, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11, implicit $exec
|
|
|
|
S_NOP 0, implicit killed $sgpr6_sgpr7, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit $sgpr4, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3
|
[AMDGPU] Add support for immediate operand for S_ENDPGM
Summary:
Add support for immediate operand in S_ENDPGM
Change-Id: I0c56a076a10980f719fb2a8f16407e9c301013f6
Reviewers: alexshap
Subscribers: qcolombet, arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, tpr, t-tye, eraman, arphaman, Petar.Avramovic, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59213
llvm-svn: 355902
2019-03-12 17:52:58 +08:00
|
|
|
S_ENDPGM 0
|
2017-06-27 08:58:48 +08:00
|
|
|
...
|
|
|
|
# CHECK-LABEL: name: func0
|
2018-10-30 23:04:40 +08:00
|
|
|
# CHECK-DAG: $sgpr10 = S_MOV_B32 5
|
|
|
|
# CHECK-DAG: $sgpr9 = S_MOV_B32 4
|
|
|
|
# CHECK-DAG: $sgpr8 = S_MOV_B32 3
|
2019-03-28 00:12:26 +08:00
|
|
|
# CHECK-DAG: $sgpr33 = S_MOV_B32 $sgpr7
|
2018-02-01 06:04:26 +08:00
|
|
|
# CHECK: $vgpr0 = V_MOV_B32_e32 $sgpr8, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
|
|
# CHECK: BUNDLE implicit-def $sgpr6_sgpr7, implicit-def $sgpr6, implicit-def $sgpr7, implicit-def $scc {
|
|
|
|
# CHECK: $sgpr6_sgpr7 = S_GETPC_B64
|
|
|
|
# CHECK: $sgpr6 = S_ADD_U32 internal $sgpr6, 0, implicit-def $scc
|
|
|
|
# CHECK: $sgpr7 = S_ADDC_U32 internal $sgpr7, 0, implicit-def $scc, implicit internal $scc
|
2017-06-27 08:58:48 +08:00
|
|
|
# CHECK: }
|
2020-01-10 06:28:49 +08:00
|
|
|
# CHECK: $sgpr32 = S_MOV_B32 $sgpr33
|
2018-10-30 23:04:40 +08:00
|
|
|
# CHECK: $sgpr4 = S_MOV_B32 killed $sgpr33
|
2018-02-01 06:04:26 +08:00
|
|
|
# CHECK: $vgpr1 = V_MOV_B32_e32 $sgpr9, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
|
|
# CHECK: $vgpr2 = V_MOV_B32_e32 $sgpr10, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11
|
|
|
|
# CHECK: $vgpr3 = V_MOV_B32_e32 killed $sgpr11, implicit $exec, implicit $sgpr8_sgpr9_sgpr10_sgpr11, implicit $exec
|
2019-03-28 00:12:26 +08:00
|
|
|
# CHECK: S_NOP 0, implicit $sgpr6_sgpr7, implicit $sgpr0_sgpr1_sgpr2_sgpr3, implicit killed $sgpr4, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3
|
[AMDGPU] Add support for immediate operand for S_ENDPGM
Summary:
Add support for immediate operand in S_ENDPGM
Change-Id: I0c56a076a10980f719fb2a8f16407e9c301013f6
Reviewers: alexshap
Subscribers: qcolombet, arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, tpr, t-tye, eraman, arphaman, Petar.Avramovic, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59213
llvm-svn: 355902
2019-03-12 17:52:58 +08:00
|
|
|
# CHECK: S_ENDPGM 0
|