@@ -217,6 +217,12 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
217217
218218 setTruncStoreAction(MVT::f64, MVT::f32, Expand);
219219
220+ // SETOEQ and SETUNE require checking two conditions.
221+ for (auto VT : {MVT::f32, MVT::f64, MVT::f80}) {
222+ setCondCodeAction(ISD::SETOEQ, VT, Expand);
223+ setCondCodeAction(ISD::SETUNE, VT, Expand);
224+ }
225+
220226 // Integer absolute.
221227 if (Subtarget.canUseCMOV()) {
222228 setOperationAction(ISD::ABS , MVT::i16 , Custom);
@@ -2495,11 +2501,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
24952501 addRegisterClass(MVT::x86amx, &X86::TILERegClass);
24962502 }
24972503
2498- // SETOEQ and SETUNE require checking two conditions.
2499- for (auto VT : {MVT::f32, MVT::f64, MVT::f80}) {
2500- setCondCodeAction(ISD::SETOEQ, VT, Expand);
2501- setCondCodeAction(ISD::SETUNE, VT, Expand);
2502- }
25032504
25042505 // We want to custom lower some of our intrinsics.
25052506 setOperationAction(ISD::INTRINSIC_WO_CHAIN, MVT::Other, Custom);
0 commit comments