[llvm] Add Instruction selection support for x87 ld/st (PR #97016)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 28 02:25:14 PDT 2024
================
@@ -472,6 +482,10 @@ unsigned X86InstructionSelector::getLoadStoreOp(const LLT &Ty,
: (HasAVX512 ? X86::VMOVSDZmr :
HasAVX ? X86::VMOVSDmr :
X86::MOVSDmr);
+ if (X86::PSRRegBankID == RB.getID())
+ return Isload ? X86::LD_Fp64m : X86::ST_Fp64m;
+ } else if (Ty == LLT::scalar(80) || Ty == LLT::pointer(0, 80)) {
----------------
tschuett wrote:
Your pointer is defined as:
https://github.com/llvm/llvm-project/blob/7c181955637197f7a1b37b00d271254f85f66d85/llvm/lib/Target/X86/GISel/X86LegalizerInfo.cpp#L47
https://github.com/llvm/llvm-project/pull/97016
More information about the llvm-commits
mailing list