Skip to content

Commit a1a82e3

Browse files
arsenmsearlmc1
authored andcommitted
AMDGPU: Enable ExpandLargeFpConvert for > 64-bit types
Fixes casts between double/float/half and i128. The pass seems to be broken for bfloat though. I also believe we could have a better implementation which attempts to make use the native 32-bit conversion instructions like the 64-bit expansion does. (cherry picked from commit c7c561e) Disabled global-isel run lines due to unnecessary dependence on other patches. Change-Id: I0983eae0fff19c77b23d408744a262ee38004125
1 parent fb4ab95 commit a1a82e3

File tree

3 files changed

+4147
-0
lines changed

3 files changed

+4147
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
580580
ISD::AssertSext, ISD::INTRINSIC_WO_CHAIN});
581581
setMaxDivRemBitWidthSupported(64);
582582
setMaxAtomicSizeInBitsSupported(64);
583+
setMaxLargeFPConvertBitWidthSupported(64);
583584
}
584585

585586
bool AMDGPUTargetLowering::mayIgnoreSignedZero(SDValue Op) const {

0 commit comments

Comments
 (0)