[llvm] AArch64: Select FCANONICALIZE (PR #104429)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 02:47:12 PDT 2024
================
@@ -880,6 +880,8 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
setOperationAction(Op, MVT::f16, Legal);
}
// clang-format on
+ if (!Subtarget->hasFullFP16())
+ setOperationPromotedToType(ISD::FCANONICALIZE, MVT::f16, MVT::f32);
----------------
davemgreen wrote:
Can this be added to LegalizeNarrowFP? I think that f32 is the default promotion type for f16.
https://github.com/llvm/llvm-project/pull/104429
More information about the llvm-commits
mailing list