[AMDGPU][GISel] RegBankLegalize rules for update_dpp (#190662)
This commit is contained in:
parent
89665812f5
commit
9033e872fd
@ -1717,6 +1717,10 @@ RegBankLegalizeRules::RegBankLegalizeRules(const GCNSubtarget &_ST,
|
||||
.Div(B32, {{VgprB32}, {IntrId, VgprB32}})
|
||||
.Div(B64, {{VgprB64}, {IntrId, VgprB64}});
|
||||
|
||||
addRulesForIOpcs({amdgcn_update_dpp}, StandardB)
|
||||
.Div(B32, {{VgprB32}, {IntrId, VgprB32, VgprB32}})
|
||||
.Div(B64, {{VgprB64}, {IntrId, VgprB64, VgprB64}});
|
||||
|
||||
addRulesForIOpcs({amdgcn_sin, amdgcn_cos}, Standard)
|
||||
.Div(S16, {{Vgpr16}, {IntrId, Vgpr16}})
|
||||
.Uni(S16, {{UniInVgprS16}, {IntrId, Vgpr16}})
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; RUN: llc -global-isel -mtriple=amdgcn -mcpu=tonga -amdgpu-dpp-combine=false < %s | FileCheck -check-prefix=GFX8 %s
|
||||
; RUN: llc -global-isel -mtriple=amdgcn -mcpu=gfx1010 -amdgpu-dpp-combine=false < %s | FileCheck -check-prefix=GFX10 %s
|
||||
; RUN: llc -global-isel -mtriple=amdgcn -mcpu=gfx1100 -amdgpu-enable-delay-alu=0 -amdgpu-dpp-combine=false < %s | FileCheck -check-prefix=GFX11 %s
|
||||
; RUN: llc -global-isel -new-reg-bank-select -mtriple=amdgcn -mcpu=tonga -amdgpu-dpp-combine=false < %s | FileCheck -check-prefix=GFX8 %s
|
||||
; RUN: llc -global-isel -new-reg-bank-select -mtriple=amdgcn -mcpu=gfx1010 -amdgpu-dpp-combine=false < %s | FileCheck -check-prefix=GFX10 %s
|
||||
; RUN: llc -global-isel -new-reg-bank-select -mtriple=amdgcn -mcpu=gfx1100 -amdgpu-enable-delay-alu=0 -amdgpu-dpp-combine=false < %s | FileCheck -check-prefix=GFX11 %s
|
||||
|
||||
define amdgpu_kernel void @dpp_test(ptr addrspace(1) %out, i32 %in1, i32 %in2) {
|
||||
; GFX8-LABEL: dpp_test:
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
||||
# RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass=regbankselect -regbankselect-fast -verify-machineinstrs %s -o - | FileCheck %s
|
||||
# RUN: llc -mtriple=amdgcn -mcpu=fiji -run-pass='amdgpu-regbankselect,amdgpu-regbanklegalize' %s -o - | FileCheck %s
|
||||
|
||||
---
|
||||
name: update_dpp_ss
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user