[flang-commits] [clang] [flang] [clang][flang] Add support for -finit-local-zero (PR #159788)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Tue Jul 21 07:17:48 PDT 2026
================
@@ -0,0 +1,7 @@
+! Check that the driver passes through -finit-local-zero:
+! RUN: %flang -### -S -finit-local-zero %s -o - 2>&1 | FileCheck %s
+
+! Check that the compiler accepts -finit-local-zero:
+! RUN: %flang_fc1 -emit-hlfir -finit-local-zero %s -o /dev/null
----------------
tarunprabhu wrote:
In this test, you are running the full lowering pipeline and discarding the result just to see that there is no error. I don't think this is necessary. When checking for lowering, the test calls `-fc1` with `-finit-local-zero`. If, for whatever reason, this flag is removed from `fc1`, we'll get an error there, which is sufficient.
https://github.com/llvm/llvm-project/pull/159788
More information about the flang-commits
mailing list