[flang-commits] [clang] [flang] [flang] Add -finit-local= to initialize automatic variables (PR #216164)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Fri Aug 14 06:39:26 PDT 2026


================
@@ -0,0 +1,64 @@
+! Tests for -finit-local= with REAL(16) and COMPLEX(16) (IEEE f128).
+! These types require f128 math support, which is not available on AIX.
+!
+! REQUIRES: flang-supports-f128-math
+!
+! RUN: bbc -emit-hlfir -finit-local=zero  -o - %s | FileCheck --check-prefix=ZERO  %s
+! RUN: bbc -emit-hlfir -finit-local=nan   -o - %s | FileCheck --check-prefix=NAN   %s
+! RUN: bbc -emit-hlfir -finit-local=snan  -o - %s | FileCheck --check-prefix=SNAN  %s
+! RUN: bbc -emit-hlfir -finit-local=0xAA  -o - %s | FileCheck --check-prefix=HEX   %s
----------------
tarunprabhu wrote:

I believe that we have been using `%flang_fc1` to test lowering instead of `bbc` unless the latter is explicitly needed. @eugeneepshteyn, is that correct? 

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


More information about the flang-commits mailing list