Skip to content

Commit cb913a6

Browse files
author
mattarde
committed
with no softfloat
1 parent aafa9bf commit cb913a6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,6 +2435,10 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
24352435
setOperationAction(ISD::SETCC, VT, Custom);
24362436
}
24372437
}
2438+
for (auto VT : { MVT::f16, MVT::f32, MVT::f64}) {
2439+
setCondCodeAction(ISD::SETOEQ, VT, Custom);
2440+
setCondCodeAction(ISD::SETUNE, VT, Custom);
2441+
}
24382442
}
24392443

24402444
if (!Subtarget.useSoftFloat() && Subtarget.hasVLX()) {
@@ -2497,12 +2501,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
24972501
setCondCodeAction(ISD::SETUNE, VT, Expand);
24982502
}
24992503

2500-
if (Subtarget.hasAVX10_2()) {
2501-
for (auto VT : {MVT::f32, MVT::f64}) {
2502-
setCondCodeAction(ISD::SETOEQ, VT, Custom);
2503-
setCondCodeAction(ISD::SETUNE, VT, Custom);
2504-
}
2505-
}
25062504
// We want to custom lower some of our intrinsics.
25072505
setOperationAction(ISD::INTRINSIC_WO_CHAIN, MVT::Other, Custom);
25082506
setOperationAction(ISD::INTRINSIC_W_CHAIN, MVT::Other, Custom);

0 commit comments

Comments
 (0)