Skip to content

Commit 006f264

Browse files
committed
Adding missing useSoftFloat check, NFCI
1 parent ea81e31 commit 006f264

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,7 +1980,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
19801980
}
19811981
}// useAVX512Regs
19821982

1983-
if (Subtarget.hasVBMI2()) {
1983+
if (!Subtarget.useSoftFloat() && Subtarget.hasVBMI2()) {
19841984
for (auto VT : {MVT::v8i16, MVT::v4i32, MVT::v2i64, MVT::v16i16, MVT::v8i32,
19851985
MVT::v4i64}) {
19861986
setOperationAction(ISD::FSHL, VT, Custom);
@@ -2336,7 +2336,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
23362336
}
23372337
}
23382338

2339-
if (Subtarget.hasAMXTILE()) {
2339+
if (!Subtarget.useSoftFloat() && Subtarget.hasAMXTILE()) {
23402340
addRegisterClass(MVT::x86amx, &X86::TILERegClass);
23412341
}
23422342

0 commit comments

Comments
 (0)