[clang] [clang] Make -fveclib={ArmPL, SLEEF} imply -fno-math-errno (PR #112580)

Benjamin Maxwell via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 21 05:53:31 PDT 2024


================
@@ -3125,6 +3140,13 @@ static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
       TrappingMathPresent = true;
       FPExceptionBehavior = "strict";
       break;
+    case options::OPT_fveclib:
+      VecLibArg = A;
+      if (llvm::is_contained(VecLibImpliesNoMathErrno, A->getValue())) {
+        MathErrno = false;
+        NoMathErrnoWasImpliedByVecLib = true;
+      }
----------------
MacDue wrote:

Done (and added test cases for the two scenarios discussed in these comments) :+1: 

https://github.com/llvm/llvm-project/pull/112580


More information about the cfe-commits mailing list