2018-08-29 02:34:24 +08:00
|
|
|
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
|
|
# RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs -run-pass si-fold-operands,dead-mi-elimination %s -o - | FileCheck -check-prefix=GCN %s
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_scalar_imm_vgpr_v_add_i32_e64_no_carry_out_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_add_i32_e64_no_carry_out_use
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
|
|
|
; GCN: [[V_ADD_I32_e32_:%[0-9]+]]:vgpr_32 = V_ADD_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e32_]]
|
2018-08-29 02:34:24 +08:00
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_vgpr_scalar_imm_v_add_i32_e64_no_carry_out_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: shrink_vgpr_scalar_imm_v_add_i32_e64_no_carry_out_use
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[V_ADD_I32_e32_:%[0-9]+]]:vgpr_32 = V_ADD_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e32_]]
|
2018-08-29 02:34:24 +08:00
|
|
|
%0:vgpr_32 = IMPLICIT_DEF
|
|
|
|
%1:sreg_32_xm0 = S_MOV_B32 12345
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_scalar_imm_vgpr_v_add_i32_e64_carry_out_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_add_i32_e64_carry_out_use
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
|
|
|
; GCN: [[V_ADD_I32_e32_:%[0-9]+]]:vgpr_32 = V_ADD_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e32_]]
|
2018-08-29 02:34:24 +08:00
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
|
|
|
|
# This does not shrink because it would violate the constant bus
|
|
|
|
# restriction. to have an SGPR input and an immediate, so a copy would
|
|
|
|
# be required.
|
|
|
|
|
|
|
|
name: shrink_vector_imm_sgpr_v_add_i32_e64_no_carry_out_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: shrink_vector_imm_sgpr_v_add_i32_e64_no_carry_out_use
|
|
|
|
; GCN: [[V_MOV_B32_e32_:%[0-9]+]]:vgpr_32 = V_MOV_B32_e32 12345, implicit $exec
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:sreg_32_xm0 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
; GCN: [[V_ADD_I32_e64_:%[0-9]+]]:vgpr_32, [[V_ADD_I32_e64_1:%[0-9]+]]:sreg_64 = V_ADD_I32_e64 [[DEF]], [[V_MOV_B32_e32_]], 0, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e64_]]
|
2018-08-29 02:34:24 +08:00
|
|
|
%0:vgpr_32 = V_MOV_B32_e32 12345, implicit $exec
|
|
|
|
%1:sreg_32_xm0 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_sgpr_vector_imm_v_add_i32_e64_no_carry_out_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: shrink_sgpr_vector_imm_v_add_i32_e64_no_carry_out_use
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:sreg_32_xm0 = IMPLICIT_DEF
|
|
|
|
; GCN: [[V_MOV_B32_e32_:%[0-9]+]]:vgpr_32 = V_MOV_B32_e32 12345, implicit $exec
|
2019-03-19 03:35:44 +08:00
|
|
|
; GCN: [[V_ADD_I32_e64_:%[0-9]+]]:vgpr_32, [[V_ADD_I32_e64_1:%[0-9]+]]:sreg_64 = V_ADD_I32_e64 [[V_MOV_B32_e32_]], [[DEF]], 0, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e64_]]
|
2018-08-29 02:34:24 +08:00
|
|
|
%0:sreg_32_xm0 = IMPLICIT_DEF
|
|
|
|
%1:vgpr_32 = V_MOV_B32_e32 12345, implicit $exec
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_scalar_imm_vgpr_v_add_i32_e64_live_vcc_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_add_i32_e64_live_vcc_use
|
|
|
|
; GCN: $vcc = S_MOV_B64 -1
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
; GCN: [[V_ADD_I32_e64_:%[0-9]+]]:vgpr_32, [[V_ADD_I32_e64_1:%[0-9]+]]:sreg_64 = V_ADD_I32_e64 [[S_MOV_B32_]], [[DEF]], 0, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e64_]], implicit $vcc
|
2018-08-29 02:34:24 +08:00
|
|
|
$vcc = S_MOV_B64 -1
|
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2, implicit $vcc
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_scalar_imm_vgpr_v_add_i32_e64_liveout_vcc_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_add_i32_e64_liveout_vcc_use
|
|
|
|
; GCN: bb.0:
|
|
|
|
; GCN: successors: %bb.1(0x80000000)
|
|
|
|
; GCN: $vcc = S_MOV_B64 -1
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
; GCN: [[V_ADD_I32_e64_:%[0-9]+]]:vgpr_32, [[V_ADD_I32_e64_1:%[0-9]+]]:sreg_64 = V_ADD_I32_e64 [[S_MOV_B32_]], [[DEF]], 0, implicit $exec
|
2018-08-29 02:34:24 +08:00
|
|
|
; GCN: bb.1:
|
|
|
|
; GCN: liveins: $vcc
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e64_]], implicit $vcc
|
2018-08-29 02:34:24 +08:00
|
|
|
bb.0:
|
|
|
|
successors: %bb.1
|
|
|
|
$vcc = S_MOV_B64 -1
|
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
bb.1:
|
|
|
|
liveins: $vcc
|
[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, implicit %2, implicit $vcc
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_scalar_imm_vgpr_v_add_i32_e64_liveout_vcc_lo_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_add_i32_e64_liveout_vcc_lo_use
|
|
|
|
; GCN: bb.0:
|
|
|
|
; GCN: successors: %bb.1(0x80000000)
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
; GCN: [[V_ADD_I32_e64_:%[0-9]+]]:vgpr_32, [[V_ADD_I32_e64_1:%[0-9]+]]:sreg_64 = V_ADD_I32_e64 [[S_MOV_B32_]], [[DEF]], 0, implicit $exec
|
2018-08-29 02:34:24 +08:00
|
|
|
; GCN: bb.1:
|
|
|
|
; GCN: liveins: $vcc_lo
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e64_]], implicit $vcc_lo
|
2018-08-29 02:34:24 +08:00
|
|
|
bb.0:
|
|
|
|
successors: %bb.1
|
|
|
|
$vcc = S_MOV_B64 -1
|
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
bb.1:
|
|
|
|
liveins: $vcc_lo
|
[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, implicit %2, implicit $vcc_lo
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
|
|
|
|
# This is not OK to clobber because vcc_lo has a livein use.
|
|
|
|
|
|
|
|
name: shrink_scalar_imm_vgpr_v_add_i32_e64_livein_vcc
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_add_i32_e64_livein_vcc
|
|
|
|
; GCN: bb.0:
|
|
|
|
; GCN: successors: %bb.1(0x80000000)
|
|
|
|
; GCN: $vcc = S_MOV_B64 -1
|
|
|
|
; GCN: bb.1:
|
|
|
|
; GCN: liveins: $vcc
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
; GCN: [[V_ADD_I32_e64_:%[0-9]+]]:vgpr_32, [[V_ADD_I32_e64_1:%[0-9]+]]:sreg_64 = V_ADD_I32_e64 [[S_MOV_B32_]], [[DEF]], 0, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e64_]], implicit $vcc_lo
|
2018-08-29 02:34:24 +08:00
|
|
|
bb.0:
|
|
|
|
successors: %bb.1
|
|
|
|
$vcc = S_MOV_B64 -1
|
|
|
|
|
|
|
|
bb.1:
|
|
|
|
liveins: $vcc
|
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2, implicit $vcc_lo
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_scalar_imm_vgpr_v_add_i32_e64_livein_vcc_hi
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_add_i32_e64_livein_vcc_hi
|
|
|
|
; GCN: bb.0:
|
|
|
|
; GCN: successors: %bb.1(0x80000000)
|
|
|
|
; GCN: $vcc_hi = S_MOV_B32 -1
|
|
|
|
; GCN: bb.1:
|
|
|
|
; GCN: successors: %bb.2(0x80000000)
|
|
|
|
; GCN: liveins: $vcc_hi
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
; GCN: [[V_ADD_I32_e64_:%[0-9]+]]:vgpr_32, [[V_ADD_I32_e64_1:%[0-9]+]]:sreg_64 = V_ADD_I32_e64 [[S_MOV_B32_]], [[DEF]], 0, implicit $exec
|
2018-08-29 02:34:24 +08:00
|
|
|
; GCN: bb.2:
|
|
|
|
; GCN: liveins: $vcc_hi
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e64_]], implicit $vcc_hi
|
2018-08-29 02:34:24 +08:00
|
|
|
bb.0:
|
|
|
|
successors: %bb.1
|
|
|
|
$vcc_hi = S_MOV_B32 -1
|
|
|
|
|
|
|
|
bb.1:
|
|
|
|
liveins: $vcc_hi
|
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
bb.2:
|
|
|
|
liveins: $vcc_hi
|
|
|
|
|
[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, implicit %2, implicit $vcc_hi
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_scalar_imm_vgpr_v_sub_i32_e64_no_carry_out_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_sub_i32_e64_no_carry_out_use
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
|
|
|
; GCN: [[V_SUBREV_I32_e32_:%[0-9]+]]:vgpr_32 = V_SUBREV_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_SUBREV_I32_e32_]]
|
2018-08-29 02:34:24 +08:00
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_SUB_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_vgpr_scalar_imm_v_sub_i32_e64_no_carry_out_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: shrink_vgpr_scalar_imm_v_sub_i32_e64_no_carry_out_use
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[V_SUB_I32_e32_:%[0-9]+]]:vgpr_32 = V_SUB_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_SUB_I32_e32_]]
|
2018-08-29 02:34:24 +08:00
|
|
|
%0:vgpr_32 = IMPLICIT_DEF
|
|
|
|
%1:sreg_32_xm0 = S_MOV_B32 12345
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_SUB_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_scalar_imm_vgpr_v_subrev_i32_e64_no_carry_out_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_subrev_i32_e64_no_carry_out_use
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
|
|
|
; GCN: [[V_SUB_I32_e32_:%[0-9]+]]:vgpr_32 = V_SUB_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_SUB_I32_e32_]]
|
2018-08-29 02:34:24 +08:00
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_SUBREV_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
name: shrink_vgpr_scalar_imm_v_subrev_i32_e64_no_carry_out_use
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: shrink_vgpr_scalar_imm_v_subrev_i32_e64_no_carry_out_use
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[V_SUBREV_I32_e32_:%[0-9]+]]:vgpr_32 = V_SUBREV_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_SUBREV_I32_e32_]]
|
2018-08-29 02:34:24 +08:00
|
|
|
%0:vgpr_32 = IMPLICIT_DEF
|
|
|
|
%1:sreg_32_xm0 = S_MOV_B32 12345
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_SUBREV_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-08-30 15:17:51 +08:00
|
|
|
# We know this is OK because vcc isn't live out of the block.
|
|
|
|
|
|
|
|
name: shrink_scalar_imm_vgpr_v_add_i32_e64_known_no_liveout
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_add_i32_e64_known_no_liveout
|
|
|
|
; GCN: bb.0:
|
|
|
|
; GCN: successors: %bb.1(0x80000000)
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
|
|
|
; GCN: [[V_ADD_I32_e32_:%[0-9]+]]:vgpr_32 = V_ADD_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
|
|
|
; GCN: bb.1:
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e32_]]
|
2018-08-30 15:17:51 +08:00
|
|
|
bb.0:
|
|
|
|
successors: %bb.1
|
|
|
|
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
2018-08-30 15:17:51 +08:00
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
|
|
|
|
bb.1:
|
[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, implicit %2
|
2018-08-30 15:17:51 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-08-29 02:34:24 +08:00
|
|
|
# We know this is OK because vcc isn't live out of the block, even
|
2018-08-30 15:17:51 +08:00
|
|
|
# though it had a defined but unused. value
|
2018-08-29 02:34:24 +08:00
|
|
|
|
2018-08-30 15:17:51 +08:00
|
|
|
name: shrink_scalar_imm_vgpr_v_add_i32_e64_known_no_liveout_dead_vcc_def
|
2018-08-29 02:34:24 +08:00
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
2018-08-30 15:17:51 +08:00
|
|
|
; GCN-LABEL: name: shrink_scalar_imm_vgpr_v_add_i32_e64_known_no_liveout_dead_vcc_def
|
2018-08-29 02:34:24 +08:00
|
|
|
; GCN: bb.0:
|
|
|
|
; GCN: successors: %bb.1(0x80000000)
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
2018-08-30 15:18:10 +08:00
|
|
|
; GCN: [[V_ADD_I32_e32_:%[0-9]+]]:vgpr_32 = V_ADD_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
2018-08-29 02:34:24 +08:00
|
|
|
; GCN: bb.1:
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e32_]]
|
2018-08-29 02:34:24 +08:00
|
|
|
bb.0:
|
|
|
|
successors: %bb.1
|
|
|
|
|
2018-08-30 15:17:51 +08:00
|
|
|
S_NOP 0, implicit-def $vcc
|
2018-08-29 02:34:24 +08:00
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
2018-08-30 15:17:51 +08:00
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
bb.1:
|
[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, implicit %2
|
2018-08-29 02:34:24 +08:00
|
|
|
|
|
|
|
...
|
2018-08-30 15:18:19 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
# This requires searching through many DBG_VALUE instructions before the insert poitn, which
|
|
|
|
# should not count against the search limit.
|
|
|
|
|
|
|
|
name: vcc_liveness_dbg_value_search_before
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: vcc_liveness_dbg_value_search_before
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: [[V_ADD_I32_e32_:%[0-9]+]]:vgpr_32 = V_ADD_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e32_]]
|
2018-08-30 15:18:19 +08:00
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
[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, implicit %2
|
2018-08-30 15:18:19 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
|
|
|
|
# This requires searching through many DBG_VALUE instructions after the insert point, which
|
|
|
|
# should not count against the search limit.
|
|
|
|
|
|
|
|
name: vcc_liveness_dbg_value_search_after
|
|
|
|
tracksRegLiveness: true
|
|
|
|
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
; GCN-LABEL: name: vcc_liveness_dbg_value_search_after
|
|
|
|
; GCN: [[S_MOV_B32_:%[0-9]+]]:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
; GCN: [[DEF:%[0-9]+]]:vgpr_32 = IMPLICIT_DEF
|
|
|
|
; GCN: [[V_ADD_I32_e32_:%[0-9]+]]:vgpr_32 = V_ADD_I32_e32 [[S_MOV_B32_]], [[DEF]], implicit-def $vcc, implicit $exec
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
|
|
|
; GCN: DBG_VALUE $noreg, 0
|
[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
|
|
|
; GCN: S_ENDPGM 0, implicit [[V_ADD_I32_e32_]]
|
2018-08-30 15:18:19 +08:00
|
|
|
%0:sreg_32_xm0 = S_MOV_B32 12345
|
|
|
|
%1:vgpr_32 = IMPLICIT_DEF
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
|
|
|
S_NOP 0
|
2019-03-19 03:35:44 +08:00
|
|
|
%2:vgpr_32, %3:sreg_64 = V_ADD_I32_e64 %0, %1, 0, implicit $exec
|
2018-08-30 15:18:19 +08:00
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
DBG_VALUE $noreg, 0
|
|
|
|
$vcc = S_MOV_B64 0
|
[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, implicit %2
|
2018-08-30 15:18:19 +08:00
|
|
|
|
|
|
|
...
|