Skip to content

Commit c7c561e

Browse files
committed
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.
1 parent fe753f7 commit c7c561e

File tree

3 files changed

+3313
-0
lines changed

3 files changed

+3313
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM,
582582

583583
setMaxAtomicSizeInBitsSupported(64);
584584
setMaxDivRemBitWidthSupported(64);
585+
setMaxLargeFPConvertBitWidthSupported(64);
585586
}
586587

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

0 commit comments

Comments
 (0)