@@ -334,10 +334,10 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
334
334
setOperationAction(ISD::FP_TO_SINT_SAT, VT, Custom);
335
335
}
336
336
setOperationAction(ISD::FCANONICALIZE, MVT::f32, Custom);
337
+ setOperationAction(ISD::FCANONICALIZE, MVT::f64, Custom);
337
338
if (Subtarget.is64Bit()) {
338
339
setOperationAction(ISD::FP_TO_UINT_SAT, MVT::i64, Custom);
339
340
setOperationAction(ISD::FP_TO_SINT_SAT, MVT::i64, Custom);
340
- setOperationAction(ISD::FCANONICALIZE, MVT::f64, Custom);
341
341
}
342
342
}
343
343
if (Subtarget.hasAVX10_2()) {
@@ -367,7 +367,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
367
367
setOperationAction(ISD::BITCAST , MVT::f32 , Expand);
368
368
setOperationAction(ISD::BITCAST , MVT::i32 , Expand);
369
369
setOperationAction(ISD::FCANONICALIZE, MVT::f32, Custom);
370
- setOperationAction(ISD::FCANONICALIZE, MVT::f80, Custom);
371
370
setOperationAction(ISD::FCANONICALIZE, MVT::f64, Custom);
372
371
if (Subtarget.is64Bit()) {
373
372
setOperationAction(ISD::BITCAST , MVT::f64 , Expand);
@@ -889,6 +888,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
889
888
setOperationAction(ISD::STRICT_FMUL , MVT::f80, Legal);
890
889
setOperationAction(ISD::STRICT_FDIV , MVT::f80, Legal);
891
890
setOperationAction(ISD::STRICT_FSQRT , MVT::f80, Legal);
891
+ setOperationAction(ISD::FCANONICALIZE , MVT::f80, Custom);
892
892
if (isTypeLegal(MVT::f16)) {
893
893
setOperationAction(ISD::FP_EXTEND, MVT::f80, Custom);
894
894
setOperationAction(ISD::STRICT_FP_EXTEND, MVT::f80, Custom);
0 commit comments