[llvm] [AArch64][GlobalISel] Expand handling for sitofp and uitofp (PR #71282)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 4 13:12:52 PDT 2023
================
@@ -673,10 +673,33 @@ AArch64LegalizerInfo::AArch64LegalizerInfo(const AArch64Subtarget &ST)
getActionDefinitionsBuilder({G_SITOFP, G_UITOFP})
.legalForCartesianProduct({s32, s64, v2s64, v4s32, v2s32})
+ .legalIf([=](const LegalityQuery &Query) {
+ return HasFP16 &&
----------------
tschuett wrote:
```
typeInSet(0, {s16, v4s16, v8s16})(Query) && typeInSet(1, {s32, s64, v4s16, v8s16})(Query)
```
WDYT?
https://github.com/llvm/llvm-project/pull/71282
More information about the llvm-commits
mailing list