[llvm] [X86][GlobalIsel] support G_FABS for f80 (PR #136718)
Evgenii Kudriashov via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 23 04:57:22 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:
We use X87 with and without SSE for `s80`. So there is no need forcing `-sse`.
https://github.com/llvm/llvm-project/pull/136718
More information about the llvm-commits
mailing list