2017-09-20 04:54:38 +08:00
|
|
|
# RUN: llc -march=amdgcn -mcpu=tonga -run-pass post-RA-sched -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s
|
|
|
|
|
|
|
|
# GCN: FLAT_LOAD_DWORD
|
|
|
|
# GCN-NEXT: FLAT_LOAD_DWORD
|
|
|
|
# GCN: FLAT_STORE_DWORD
|
|
|
|
# GCN-NEXT: FLAT_STORE_DWORD
|
|
|
|
|
|
|
|
---
|
|
|
|
name: cluster_loads_post_ra
|
|
|
|
tracksRegLiveness: true
|
|
|
|
registers:
|
|
|
|
liveins:
|
2018-02-01 06:04:26 +08:00
|
|
|
- { reg: '$vgpr0' }
|
2017-09-20 04:54:38 +08:00
|
|
|
body: |
|
|
|
|
bb.0:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $vgpr0
|
2017-09-20 04:54:38 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
$vgpr0_vgpr1 = IMPLICIT_DEF
|
|
|
|
$vgpr4_vgpr5 = IMPLICIT_DEF
|
2019-05-01 06:08:23 +08:00
|
|
|
$vgpr0 = FLAT_LOAD_DWORD $vgpr0_vgpr1, 0, 0, 0, 0, implicit $exec, implicit $flat_scr :: (load 4)
|
|
|
|
$vgpr4 = FLAT_LOAD_DWORD $vgpr4_vgpr5, 0, 0, 0, 0, implicit $exec, implicit $flat_scr :: (load 4)
|
2018-02-01 06:04:26 +08:00
|
|
|
$vgpr2 = IMPLICIT_DEF
|
|
|
|
$vgpr3 = IMPLICIT_DEF
|
|
|
|
$vgpr6 = IMPLICIT_DEF
|
|
|
|
$vgpr0 = V_ADD_I32_e32 16, $vgpr2, implicit-def $vcc, implicit $exec
|
|
|
|
$vgpr1 = V_ADDC_U32_e32 $vgpr3, killed $vgpr6, implicit-def dead $vcc, implicit $vcc, implicit $exec
|
2019-05-01 06:08:23 +08:00
|
|
|
FLAT_STORE_DWORD $vgpr2_vgpr3, killed $vgpr0, 0, 0, 0, 0, implicit $exec, implicit $flat_scr :: (store 4)
|
|
|
|
FLAT_STORE_DWORD $vgpr0_vgpr1, killed $vgpr4, 0, 0, 0, 0, implicit $exec, implicit $flat_scr :: (store 4)
|
[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-09-20 04:54:38 +08:00
|
|
|
|
|
|
|
...
|