================
@@ -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;
+      }
----------------
paulwalker-arm wrote:

It would be unusual but I suggest 
```
NoMathErrnoWasImpliedByVecLib = llvm::is_contained(VecLibImpliesNoMathErrno, 
A->getValue());
if (NoMathErrnoWasImpliedByVecLib)
  MathErrno = false;
```
to cover the `-fveclib=ArmPL -fmath-errno -fveclib=LIBMVEC` scenario.

https://github.com/llvm/llvm-project/pull/112580
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to