[flang-commits] [flang] [flang][hlfir][openacc] Updated LIT tests checks. (PR #66099)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Tue Sep 12 08:52:26 PDT 2023


================
@@ -1,10 +1,13 @@
 ! This test checks lowering of OpenACC loop directive.
 
-! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s
+! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR
+! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR
 
 ! CHECK-LABEL: acc.firstprivate.recipe @firstprivatization_ref_50xf32 : !fir.ref<!fir.array<50xf32>> init {
 ! CHECK: ^bb0(%{{.*}}: !fir.ref<!fir.array<50xf32>>):
 ! CHECK:   %[[ALLOCA:.*]] = fir.alloca !fir.array<50xf32>
+! FIXME: we need hlfir.declare here to satisfy the assumptions about
+!        the HLFIR lowering, i.e. that every varible has fir/hlfir.declare.
----------------
vzakhari wrote:

Thanks!

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


More information about the flang-commits mailing list