mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
AMDGPU/GlobalISel: Regbank select for fpext
llvm-svn: 351692
This commit is contained in:
parent
dc75546ec1
commit
af0f1330ee
@ -433,6 +433,7 @@ AMDGPURegisterBankInfo::getInstrMapping(const MachineInstr &MI) const {
|
||||
case AMDGPU::G_SITOFP:
|
||||
case AMDGPU::G_UITOFP:
|
||||
case AMDGPU::G_FPTRUNC:
|
||||
case AMDGPU::G_FPEXT:
|
||||
case AMDGPU::G_FEXP2:
|
||||
case AMDGPU::G_FLOG2:
|
||||
case AMDGPU::G_INTRINSIC_TRUNC:
|
||||
|
31
test/CodeGen/AMDGPU/GlobalISel/regbankselect-fpext.mir
Normal file
31
test/CodeGen/AMDGPU/GlobalISel/regbankselect-fpext.mir
Normal file
@ -0,0 +1,31 @@
|
||||
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
||||
# RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-fast | FileCheck %s
|
||||
# RUN: llc -march=amdgcn -mcpu=fiji -run-pass=regbankselect %s -verify-machineinstrs -o - -regbankselect-greedy | FileCheck %s
|
||||
|
||||
---
|
||||
name: fpext_s
|
||||
legalized: true
|
||||
|
||||
body: |
|
||||
bb.0:
|
||||
liveins: $sgpr0
|
||||
; CHECK-LABEL: name: fpext_s
|
||||
; CHECK: [[COPY:%[0-9]+]]:sgpr(s32) = COPY $sgpr0
|
||||
; CHECK: [[FPEXT:%[0-9]+]]:vgpr(s64) = G_FPEXT [[COPY]](s32)
|
||||
%0:_(s32) = COPY $sgpr0
|
||||
%1:_(s64) = G_FPEXT %0
|
||||
...
|
||||
|
||||
---
|
||||
name: fpext_v
|
||||
legalized: true
|
||||
|
||||
body: |
|
||||
bb.0:
|
||||
liveins: $vgpr0
|
||||
; CHECK-LABEL: name: fpext_v
|
||||
; CHECK: [[COPY:%[0-9]+]]:vgpr(s32) = COPY $vgpr0
|
||||
; CHECK: [[FPEXT:%[0-9]+]]:vgpr(s64) = G_FPEXT [[COPY]](s32)
|
||||
%0:_(s32) = COPY $vgpr0
|
||||
%1:_(s64) = G_FPEXT %0
|
||||
...
|
Loading…
Reference in New Issue
Block a user