@@ -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