[llvm] Add Instruction selection support for x87 ld/st (PR #97016)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 02:16:55 PDT 2024
================
@@ -195,6 +195,14 @@ X86InstructionSelector::getRegClass(LLT Ty, const RegisterBank &RB) const {
return &X86::VR512RegClass;
}
+ if (RB.getID() == X86::PSRRegBankID) {
+ if (Ty.getSizeInBits() == 80)
+ return &X86::RFP80RegClass;
+ if (Ty.getSizeInBits() == 64)
+ return &X86::RFP64RegClass;
+ return &X86::RFP32RegClass;
----------------
RKSimon wrote:
Can this be anything but `if (Ty.getSizeInBits() ==32)` ?
https://github.com/llvm/llvm-project/pull/97016
More information about the llvm-commits
mailing list