2020-05-13 22:13:16 +02:00
|
|
|
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
2021-04-30 15:17:14 +02:00
|
|
|
# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass si-pre-emit-peephole -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s -implicit-check-not=S_SET_GPR_IDX
|
2020-05-13 22:13:16 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
name: simple
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: simple
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: salu_in_between
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: salu_in_between
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: $sgpr0 = S_MOV_B32 $sgpr2
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$sgpr0 = S_MOV_B32 $sgpr2
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: valu_write_in_between
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: valu_write_in_between
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr20 = V_MOV_B32_e32 1, implicit $exec
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr20 = V_MOV_B32_e32 1, implicit $exec
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: valu_read_in_between
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: valu_read_in_between
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: V_NOP_e32 implicit $exec, implicit $vgpr0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
V_NOP_e32 implicit $exec, implicit $vgpr0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: changed_index
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: changed_index
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $sgpr2 = S_MOV_B32 1
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$sgpr2 = S_MOV_B32 1
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: implicitly_changed_index
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: implicitly_changed_index
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: S_NOP 0, implicit-def $sgpr2
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
S_NOP 0, implicit-def $sgpr2
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: changed_m0
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: changed_m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $m0 = S_MOV_B32 1
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$m0 = S_MOV_B32 1
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: implicitly_changed_m0
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: implicitly_changed_m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: S_NOP 0, implicit-def $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
S_NOP 0, implicit-def $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: same_imm_index
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: same_imm_index
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON 1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON 1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON 1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
2021-04-30 14:42:45 +02:00
|
|
|
---
|
2020-05-13 22:13:16 +02:00
|
|
|
name: different_imm_index
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
2021-04-30 14:42:45 +02:00
|
|
|
; GCN-LABEL: name: different_imm_index
|
|
|
|
; GCN: S_SET_GPR_IDX_ON 1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: S_SET_GPR_IDX_ON 2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_ON 1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON 2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: different_gpr_index
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: different_gpr_index
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: different_gpr_index_then_same_index
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: different_gpr_index_then_same_index
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: use_m0_with_idx_off
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: use_m0_with_idx_off
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: three_in_a_row
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: three_in_a_row
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: $vgpr17 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: $vgpr18 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr17 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr18 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: different_gpr_index_then_two_same_indexes
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: different_gpr_index_then_two_same_indexes
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: two_same_indexes_then_different
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: two_same_indexes_then_different
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr1, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-13 22:13:16 +02:00
|
|
|
...
|
2020-05-20 00:50:49 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
name: indirect_mov
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
|
|
|
|
; GCN-LABEL: name: indirect_mov
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-20 00:50:49 +02:00
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: V_MOV_B32_indirect undef $vgpr0, undef $vgpr3, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3(tied-def 3)
|
|
|
|
; GCN: V_MOV_B32_indirect undef $vgpr0, undef $vgpr3, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3(tied-def 3)
|
2020-06-02 15:22:40 +02:00
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-20 00:50:49 +02:00
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
V_MOV_B32_indirect undef $vgpr0, undef $vgpr3, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3(tied-def 3)
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $m0, implicit-def $mode, implicit undef $m0, implicit $mode
|
2020-05-20 00:50:49 +02:00
|
|
|
V_MOV_B32_indirect undef $vgpr0, undef $vgpr3, implicit $exec, implicit-def $vgpr0_vgpr1_vgpr2_vgpr3, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3(tied-def 3)
|
2020-06-02 15:22:40 +02:00
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
2020-05-20 00:50:49 +02:00
|
|
|
...
|
2021-03-20 02:03:26 +01:00
|
|
|
|
|
|
|
---
|
|
|
|
name: simple_bundle
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: simple_bundle
|
|
|
|
; GCN: BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr16, implicit-def $vgpr16_lo16, implicit-def $vgpr16_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: }
|
|
|
|
; GCN: BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr15, implicit-def $vgpr15_lo16, implicit-def $vgpr15_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr0, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: }
|
|
|
|
BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr16, implicit-def $vgpr16_lo16, implicit-def $vgpr16_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
}
|
|
|
|
BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr15, implicit-def $vgpr15_lo16, implicit-def $vgpr15_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr0, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
}
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: salu_in_between_bundle
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: salu_in_between_bundle
|
|
|
|
; GCN: BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr16, implicit-def $vgpr16_lo16, implicit-def $vgpr16_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: }
|
|
|
|
; GCN: $sgpr0 = S_MOV_B32 $sgpr2
|
|
|
|
; GCN: BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr15, implicit-def $vgpr15_lo16, implicit-def $vgpr15_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr0, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: }
|
|
|
|
BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr16, implicit-def $vgpr16_lo16, implicit-def $vgpr16_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
}
|
|
|
|
$sgpr0 = S_MOV_B32 $sgpr2
|
|
|
|
BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr15, implicit-def $vgpr15_lo16, implicit-def $vgpr15_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr0, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
}
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: valu_in_between_bundle
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: valu_in_between_bundle
|
|
|
|
; GCN: BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr16, implicit-def $vgpr16_lo16, implicit-def $vgpr16_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: }
|
|
|
|
; GCN: $vgpr20 = V_MOV_B32_e32 1, implicit $exec
|
|
|
|
; GCN: BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr15, implicit-def $vgpr15_lo16, implicit-def $vgpr15_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr0, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: }
|
|
|
|
BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr16, implicit-def $vgpr16_lo16, implicit-def $vgpr16_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
}
|
|
|
|
$vgpr20 = V_MOV_B32_e32 1, implicit $exec
|
|
|
|
BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr15, implicit-def $vgpr15_lo16, implicit-def $vgpr15_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr0, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
}
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: changed_index_bundle
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: changed_index_bundle
|
|
|
|
; GCN: BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr16, implicit-def $vgpr16_lo16, implicit-def $vgpr16_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: }
|
|
|
|
; GCN: $sgpr2 = S_MOV_B32 1
|
|
|
|
; GCN: BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr15, implicit-def $vgpr15_lo16, implicit-def $vgpr15_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr0, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
; GCN: S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: }
|
|
|
|
BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr16, implicit-def $vgpr16_lo16, implicit-def $vgpr16_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
}
|
|
|
|
$sgpr2 = S_MOV_B32 1
|
|
|
|
BUNDLE implicit-def $m0, implicit-def $m0_lo16, implicit-def $m0_hi16, implicit-def $mode, implicit-def $vgpr15, implicit-def $vgpr15_lo16, implicit-def $vgpr15_hi16, implicit $sgpr2, implicit $m0, implicit $mode, implicit undef $vgpr0, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15 {
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
}
|
|
|
|
...
|
2021-04-30 15:50:46 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
name: simple_cbranch_vccz
|
|
|
|
body: |
|
|
|
|
; GCN-LABEL: name: simple_cbranch_vccz
|
|
|
|
; GCN: bb.0:
|
|
|
|
; GCN: successors: %bb.1(0x80000000)
|
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: S_CBRANCH_VCCZ %bb.1, implicit $vcc
|
|
|
|
; GCN: bb.1:
|
|
|
|
bb.0:
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_CBRANCH_VCCZ %bb.1, implicit $vcc
|
|
|
|
bb.1:
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
name: simple_cbranch_execz
|
|
|
|
body: |
|
|
|
|
; GCN-LABEL: name: simple_cbranch_execz
|
|
|
|
; GCN: bb.0:
|
|
|
|
; GCN: successors:
|
|
|
|
; GCN: S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
; GCN: $vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: $vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
; GCN: S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
; GCN: bb.1:
|
|
|
|
bb.0:
|
|
|
|
S_SET_GPR_IDX_ON $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr16 = V_MOV_B32_e32 undef $vgpr1, implicit $exec, implicit $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_SET_GPR_IDX_ON killed $sgpr2, 1, implicit-def $mode, implicit-def $m0, implicit $mode, implicit undef $m0
|
|
|
|
$vgpr15 = V_MOV_B32_e32 undef $vgpr0, implicit $exec, implicit killed $vgpr0_vgpr1_vgpr2_vgpr3_vgpr4_vgpr5_vgpr6_vgpr7_vgpr8_vgpr9_vgpr10_vgpr11_vgpr12_vgpr13_vgpr14_vgpr15, implicit $m0
|
|
|
|
S_SET_GPR_IDX_OFF implicit-def $mode, implicit $mode
|
|
|
|
S_CBRANCH_EXECZ %bb.1, implicit $exec
|
|
|
|
bb.1:
|
|
|
|
...
|