Skip to content

Commit

Permalink
Adding missing useSoftFloat check, NFCI
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebewang committed Nov 24, 2023
1 parent ea81e31 commit 006f264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/X86/X86ISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1980,7 +1980,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
}
}// useAVX512Regs

if (Subtarget.hasVBMI2()) {
if (!Subtarget.useSoftFloat() && Subtarget.hasVBMI2()) {
for (auto VT : {MVT::v8i16, MVT::v4i32, MVT::v2i64, MVT::v16i16, MVT::v8i32,
MVT::v4i64}) {
setOperationAction(ISD::FSHL, VT, Custom);
Expand Down Expand Up @@ -2336,7 +2336,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
}
}

if (Subtarget.hasAMXTILE()) {
if (!Subtarget.useSoftFloat() && Subtarget.hasAMXTILE()) {
addRegisterClass(MVT::x86amx, &X86::TILERegClass);
}

Expand Down

0 comments on commit 006f264

Please sign in to comment.