[clang] [clang] Make -fveclib={ArmPL, SLEEF} imply -fno-math-errno (PR #112580)
Paul Walker via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 17 02:59:24 PDT 2024
================
@@ -3125,6 +3129,10 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
TrappingMathPresent = true;
FPExceptionBehavior = "strict";
break;
+ case options::OPT_fveclib:
+ if (llvm::is_contained(VecLibImpliesNoMathErrno, A->getValue()))
+ MathErrno = false;
+ break;
----------------
paulwalker-arm wrote:
As @mgabka says, this is a property of the library rather than an architecture specific decision.
https://github.com/llvm/llvm-project/pull/112580
More information about the cfe-commits
mailing list