Skip to content

Commit 38fcdfa

Browse files
committed
[MIPS] Use softPromoteHalf legalization for fp16 rather than PromoteFloat
Fix part of llvm#97975.
1 parent 9b5a303 commit 38fcdfa

File tree

2 files changed

+411
-29
lines changed

2 files changed

+411
-29
lines changed

llvm/lib/Target/Mips/MipsISelLowering.h

+2
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@ class TargetRegisterClass;
365365
return ABI.IsN64() ? Mips::A1_64 : Mips::A1;
366366
}
367367

368+
bool softPromoteHalfType() const override { return true; }
369+
368370
bool isJumpTableRelative() const override {
369371
return getTargetMachine().isPositionIndependent();
370372
}

0 commit comments

Comments
 (0)