Skip to content

Commit

Permalink
[MIPS] Use softPromoteHalf legalization for fp16 rather than PromoteF…
Browse files Browse the repository at this point in the history
…loat

Fix part of #97975.
  • Loading branch information
yingopq committed Sep 30, 2024
1 parent 9b5a303 commit 38fcdfa
Show file tree
Hide file tree
Showing 2 changed files with 411 additions and 29 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Target/Mips/MipsISelLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ class TargetRegisterClass;
return ABI.IsN64() ? Mips::A1_64 : Mips::A1;
}

bool softPromoteHalfType() const override { return true; }

bool isJumpTableRelative() const override {
return getTargetMachine().isPositionIndependent();
}
Expand Down
Loading

0 comments on commit 38fcdfa

Please sign in to comment.