[llvm] [X86][GlobalIsel] support G_FABS for f80 (PR #136718)
Evgenii Kudriashov via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 22 10:02:57 PDT 2025
================
@@ -466,6 +466,11 @@ X86LegalizerInfo::X86LegalizerInfo(const X86Subtarget &STI,
(UseX87 && typeInSet(0, {s80})(Query));
});
+ //TODO: f32 and f64 FABS require xmm support
+ getActionDefinitionsBuilder(G_FABS)
+ .legalFor(UseX87, {s8, s80})
+ .lower();
----------------
e-kud wrote:
Does `lower` generate the selectable code? Then we probably can add tests for `float` and `double` as well.
https://github.com/llvm/llvm-project/pull/136718
More information about the llvm-commits
mailing list