[llvm] [GISel][RISCV] Legalize `G_FREM` to use fmod (PR #93063)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 05:34:13 PDT 2024
================
@@ -372,6 +372,11 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
G_FABS, G_FSQRT, G_FMAXNUM, G_FMINNUM})
.legalIf(typeIsScalarFPArith(0, ST));
+ getActionDefinitionsBuilder(G_FREM)
+ .libcallFor({s32, s64})
+ .minScalar(0, s32)
+ .scalarize(0);
----------------
dtcxzyw wrote:
I will leave it as a todo.
https://github.com/llvm/llvm-project/pull/93063
More information about the llvm-commits
mailing list