@@ -224,7 +224,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
224
224
}
225
225
226
226
if (Subtarget.hasAVX10_2()) {
227
- for (auto VT : {MVT::f32, MVT::f64}) {
227
+ for (auto VT : {MVT::f16, MVT:: f32, MVT::f64}) {
228
228
setCondCodeAction(ISD::SETOEQ, VT, Custom);
229
229
setCondCodeAction(ISD::SETUNE, VT, Custom);
230
230
}
@@ -2298,10 +2298,8 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
2298
2298
setOperationAction(ISD::FP_EXTEND, MVT::f32, Legal);
2299
2299
setOperationAction(ISD::STRICT_FP_EXTEND, MVT::f32, Legal);
2300
2300
2301
- setCondCodeAction(ISD::SETOEQ, MVT::f16,
2302
- Subtarget.hasAVX10_2() ? Custom : Expand);
2303
- setCondCodeAction(ISD::SETUNE, MVT::f16,
2304
- Subtarget.hasAVX10_2() ? Custom : Expand);
2301
+ setCondCodeAction(ISD::SETOEQ, MVT::f16, Expand);
2302
+ setCondCodeAction(ISD::SETUNE, MVT::f16, Expand);
2305
2303
2306
2304
if (Subtarget.useAVX512Regs()) {
2307
2305
setGroup(MVT::v32f16);
0 commit comments