[llvm] [GlobalISel][ARM] Legalze set_fpenv and get_fpenv (PR #79852)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 08:44:00 PST 2024
================
@@ -193,6 +193,11 @@ ARMLegalizerInfo::ARMLegalizerInfo(const ARMSubtarget &ST) {
.legalForCartesianProduct({s32}, {s32, s64});
getActionDefinitionsBuilder({G_SITOFP, G_UITOFP})
.legalForCartesianProduct({s32, s64}, {s32});
+
+ getActionDefinitionsBuilder({G_GET_FPENV, G_SET_FPENV})
+ .legalFor({s32});
+ getActionDefinitionsBuilder(G_RESET_FPENV)
+ .legalIf([=](const LegalityQuery &Query) { return true; });
----------------
tschuett wrote:
`.alwaysLegal();`
https://github.com/llvm/llvm-project/pull/79852
More information about the llvm-commits
mailing list