diff --git a/flang/test/Driver/OpenMP/map-types-and-sizes.f90 b/flang/test/Driver/OpenMP/map-types-and-sizes.f90 index e4f429e479af1..3595a80ba706a 100644 --- a/flang/test/Driver/OpenMP/map-types-and-sizes.f90 +++ b/flang/test/Driver/OpenMP/map-types-and-sizes.f90 @@ -1,4 +1,4 @@ -!RUN: %flang_fc1 -emit-llvm -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-llvm -fopenmp -flang-deprecated-no-hlfir %s -o - | FileCheck %s !=============================================================================== ! Check MapTypes for target implicit captures diff --git a/flang/test/Driver/compiler_options.f90 b/flang/test/Driver/compiler_options.f90 index 835e92c1229ec..3edebb915c095 100644 --- a/flang/test/Driver/compiler_options.f90 +++ b/flang/test/Driver/compiler_options.f90 @@ -1,6 +1,6 @@ -! RUN: %flang -S -emit-llvm -o - %s | FileCheck %s +! RUN: %flang -S -emit-llvm -flang-deprecated-no-hlfir -o - %s | FileCheck %s ! Test communication of COMPILER_OPTIONS from flang-new to flang-new -fc1. -! CHECK: [[OPTSVAR:@_QQclX[0-9a-f]+]] = {{[a-z]+}} constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang-new{{(\.exe)?}} -S -emit-llvm -o - {{.*}}compiler_options.f90" +! CHECK: [[OPTSVAR:@_QQclX[0-9a-f]+]] = {{[a-z]+}} constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang-new{{(\.exe)?}} -S -emit-llvm -flang-deprecated-no-hlfir -o - {{.*}}compiler_options.f90" program main use ISO_FORTRAN_ENV, only: compiler_options implicit none diff --git a/flang/test/Driver/optimization-remark.f90 b/flang/test/Driver/optimization-remark.f90 index e7a7abfaf6ab8..13fc24346eac6 100644 --- a/flang/test/Driver/optimization-remark.f90 +++ b/flang/test/Driver/optimization-remark.f90 @@ -2,7 +2,7 @@ ! and -Rpass-analysis) ! loop-delete isn't enabled at O0 so we use at least O1 -! DEFINE: %{output} = -emit-llvm -o /dev/null 2>&1 +! DEFINE: %{output} = -emit-llvm -flang-deprecated-no-hlfir -o /dev/null 2>&1 ! Check fc1 can handle -Rpass ! RUN: %flang_fc1 %s -O1 -Rpass %{output} 2>&1 | FileCheck %s --check-prefix=REMARKS diff --git a/flang/test/Fir/achar.f90 b/flang/test/Fir/achar.f90 index 73fd5a3daa30e..9b36d165e5133 100644 --- a/flang/test/Fir/achar.f90 +++ b/flang/test/Fir/achar.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Tests ACHAR lowering (converting an INTEGER to a CHARACTER (singleton, LEN=1) ! along with conversion of CHARACTER to another KIND. diff --git a/flang/test/Fir/dispatch.f90 b/flang/test/Fir/dispatch.f90 index ce60939410de6..2c06377c99034 100644 --- a/flang/test/Fir/dispatch.f90 +++ b/flang/test/Fir/dispatch.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -polymorphic-type -emit-fir %s -o - | fir-opt --fir-polymorphic-op | FileCheck %s -! RUN: bbc -polymorphic-type -emit-fir %s -o - | FileCheck %s --check-prefix=BT +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | fir-opt --fir-polymorphic-op | FileCheck %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefix=BT ! Tests codegen of fir.dispatch operation. This test is intentionally run from ! Fortran through bbc and tco so we have all the binding tables lowered to FIR diff --git a/flang/test/Lower/Intrinsics/abs.f90 b/flang/test/Lower/Intrinsics/abs.f90 index 7986eeee00030..8b977c3c0a968 100644 --- a/flang/test/Lower/Intrinsics/abs.f90 +++ b/flang/test/Lower/Intrinsics/abs.f90 @@ -1,10 +1,10 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" -! RUN: bbc -emit-fir --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" -! RUN: bbc --force-mlir-complex -emit-fir %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST" -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" -! RUN: %flang_fc1 -emit-fir -mllvm --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" -! RUN: %flang_fc1 -emit-fir -mllvm --force-mlir-complex %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST" -! RUN: %flang_fc1 -fapprox-func -emit-fir %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-APPROX" +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" +! RUN: bbc -emit-fir -hlfir=false --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" +! RUN: bbc --force-mlir-complex -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST" +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm --force-mlir-complex %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST" +! RUN: %flang_fc1 -fapprox-func -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-APPROX" ! Test abs intrinsic for various types (int, float, complex) diff --git a/flang/test/Lower/Intrinsics/achar.f90 b/flang/test/Lower/Intrinsics/achar.f90 index db9fc9368cfad..32cf30dde9ab2 100644 --- a/flang/test/Lower/Intrinsics/achar.f90 +++ b/flang/test/Lower/Intrinsics/achar.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | fir-opt --canonicalize | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | fir-opt --canonicalize | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | fir-opt --canonicalize | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | fir-opt --canonicalize | FileCheck %s ! CHECK-LABEL: func.func @_QPtest1( diff --git a/flang/test/Lower/Intrinsics/adjustl.f90 b/flang/test/Lower/Intrinsics/adjustl.f90 index e5e60d6705062..a8d004cd52665 100644 --- a/flang/test/Lower/Intrinsics/adjustl.f90 +++ b/flang/test/Lower/Intrinsics/adjustl.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABLE: adjustl_test subroutine adjustl_test diff --git a/flang/test/Lower/Intrinsics/adjustr.f90 b/flang/test/Lower/Intrinsics/adjustr.f90 index 0f904c7b6f5e5..07aa08c994586 100644 --- a/flang/test/Lower/Intrinsics/adjustr.f90 +++ b/flang/test/Lower/Intrinsics/adjustr.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABLE: adjustr_test subroutine adjustr_test diff --git a/flang/test/Lower/Intrinsics/aint.f90 b/flang/test/Lower/Intrinsics/aint.f90 index 4095a9dd0ad31..fb459953a06c3 100644 --- a/flang/test/Lower/Intrinsics/aint.f90 +++ b/flang/test/Lower/Intrinsics/aint.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPaint_test( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref{{.*}}, %[[VAL_1:.*]]: !fir.ref{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/all.f90 b/flang/test/Lower/Intrinsics/all.f90 index db02105bd6d2d..3eb7ea70dfb16 100644 --- a/flang/test/Lower/Intrinsics/all.f90 +++ b/flang/test/Lower/Intrinsics/all.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: all_test ! CHECK-SAME: %[[arg0:.*]]: !fir.box>>{{.*}}) -> !fir.logical<4> diff --git a/flang/test/Lower/Intrinsics/anint.f90 b/flang/test/Lower/Intrinsics/anint.f90 index fe479a07681ee..4148d18f15b30 100644 --- a/flang/test/Lower/Intrinsics/anint.f90 +++ b/flang/test/Lower/Intrinsics/anint.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPanint_test( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref {fir.bindc_name = "a"}, diff --git a/flang/test/Lower/Intrinsics/any.f90 b/flang/test/Lower/Intrinsics/any.f90 index b46c4f84cebe3..1ea22d9706744 100644 --- a/flang/test/Lower/Intrinsics/any.f90 +++ b/flang/test/Lower/Intrinsics/any.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: any_test ! CHECK-SAME: %[[arg0:.*]]: !fir.box>>{{.*}}) -> !fir.logical<4> diff --git a/flang/test/Lower/Intrinsics/associated.f90 b/flang/test/Lower/Intrinsics/associated.f90 index 091c081c5087c..f09d0546a6514 100644 --- a/flang/test/Lower/Intrinsics/associated.f90 +++ b/flang/test/Lower/Intrinsics/associated.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: associated_test ! CHECK-SAME: %[[arg0:.*]]: !fir.ref>>{{.*}}, %[[arg1:.*]]: !fir.ref>>>{{.*}}) diff --git a/flang/test/Lower/Intrinsics/atand.f90 b/flang/test/Lower/Intrinsics/atand.f90 index eea9c79773cf0..2483bef46e60f 100644 --- a/flang/test/Lower/Intrinsics/atand.f90 +++ b/flang/test/Lower/Intrinsics/atand.f90 @@ -1,6 +1,6 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-FAST" -! RUN: bbc --math-runtime=precise -emit-fir %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-PRECISE" -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-FAST" +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-FAST" +! RUN: bbc --math-runtime=precise -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-PRECISE" +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-FAST" function test_real4(x) real :: x, test_real4 diff --git a/flang/test/Lower/Intrinsics/bessel_jn.f90 b/flang/test/Lower/Intrinsics/bessel_jn.f90 index 9e0698a5986fe..3fdef7446100d 100644 --- a/flang/test/Lower/Intrinsics/bessel_jn.f90 +++ b/flang/test/Lower/Intrinsics/bessel_jn.f90 @@ -1,9 +1,9 @@ -! RUN: bbc -emit-fir %s -o - --math-runtime=fast | FileCheck --check-prefixes=ALL %s -! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=fast %s -o - | FileCheck --check-prefixes=ALL %s -! RUN: bbc -emit-fir %s -o - --math-runtime=relaxed | FileCheck --check-prefixes=ALL %s -! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=relaxed %s -o - | FileCheck --check-prefixes=ALL %s -! RUN: bbc -emit-fir %s -o - --math-runtime=precise | FileCheck --check-prefixes=ALL %s -! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=precise %s -o - | FileCheck --check-prefixes=ALL %s +! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=fast | FileCheck --check-prefixes=ALL %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=fast %s -o - | FileCheck --check-prefixes=ALL %s +! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=relaxed | FileCheck --check-prefixes=ALL %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=relaxed %s -o - | FileCheck --check-prefixes=ALL %s +! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=precise | FileCheck --check-prefixes=ALL %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=precise %s -o - | FileCheck --check-prefixes=ALL %s ! ALL-LABEL: @_QPtest_real4 ! ALL-SAME: (%[[argx:.*]]: !fir.ref{{.*}}, %[[argn:.*]]: !fir.ref{{.*}}) -> f32 diff --git a/flang/test/Lower/Intrinsics/bessel_yn.f90 b/flang/test/Lower/Intrinsics/bessel_yn.f90 index cf1541dac0ec9..9f4fbfbb89d31 100644 --- a/flang/test/Lower/Intrinsics/bessel_yn.f90 +++ b/flang/test/Lower/Intrinsics/bessel_yn.f90 @@ -1,9 +1,9 @@ -! RUN: bbc -emit-fir %s -o - --math-runtime=fast | FileCheck --check-prefixes=ALL %s -! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=fast %s -o - | FileCheck --check-prefixes=ALL %s -! RUN: bbc -emit-fir %s -o - --math-runtime=relaxed | FileCheck --check-prefixes=ALL %s -! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=relaxed %s -o - | FileCheck --check-prefixes=ALL %s -! RUN: bbc -emit-fir %s -o - --math-runtime=precise | FileCheck --check-prefixes=ALL %s -! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=precise %s -o - | FileCheck --check-prefixes=ALL %s +! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=fast | FileCheck --check-prefixes=ALL %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=fast %s -o - | FileCheck --check-prefixes=ALL %s +! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=relaxed | FileCheck --check-prefixes=ALL %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=relaxed %s -o - | FileCheck --check-prefixes=ALL %s +! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=precise | FileCheck --check-prefixes=ALL %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=precise %s -o - | FileCheck --check-prefixes=ALL %s ! ALL-LABEL: @_QPtest_real4 ! ALL-SAME: (%[[argx:.*]]: !fir.ref{{.*}}, %[[argn:.*]]: !fir.ref{{.*}}) -> f32 diff --git a/flang/test/Lower/Intrinsics/bge.f90 b/flang/test/Lower/Intrinsics/bge.f90 index 4f3095fe7294b..19ddf7d95c388 100644 --- a/flang/test/Lower/Intrinsics/bge.f90 +++ b/flang/test/Lower/Intrinsics/bge.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: bge_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}}, %[[C:.*]]: !fir.ref>{{.*}} diff --git a/flang/test/Lower/Intrinsics/bgt.f90 b/flang/test/Lower/Intrinsics/bgt.f90 index b31371a1f7d03..fea8611c17014 100644 --- a/flang/test/Lower/Intrinsics/bgt.f90 +++ b/flang/test/Lower/Intrinsics/bgt.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: bgt_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}}, %[[C:.*]]: !fir.ref>{{.*}} diff --git a/flang/test/Lower/Intrinsics/ble.f90 b/flang/test/Lower/Intrinsics/ble.f90 index fcdb32f4e46db..1c996a963e430 100644 --- a/flang/test/Lower/Intrinsics/ble.f90 +++ b/flang/test/Lower/Intrinsics/ble.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: ble_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}}, %[[C:.*]]: !fir.ref>{{.*}} diff --git a/flang/test/Lower/Intrinsics/blt.f90 b/flang/test/Lower/Intrinsics/blt.f90 index 05802f2612be1..06a57fb579e6b 100644 --- a/flang/test/Lower/Intrinsics/blt.f90 +++ b/flang/test/Lower/Intrinsics/blt.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: blt_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}}, %[[C:.*]]: !fir.ref>{{.*}} diff --git a/flang/test/Lower/Intrinsics/btest.f90 b/flang/test/Lower/Intrinsics/btest.f90 index a2bf7f56a6214..6c0fccd0f5a9f 100644 --- a/flang/test/Lower/Intrinsics/btest.f90 +++ b/flang/test/Lower/Intrinsics/btest.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: btest_test function btest_test(i, j) diff --git a/flang/test/Lower/Intrinsics/c_associated.f90 b/flang/test/Lower/Intrinsics/c_associated.f90 index 41e4676806102..ba2d7f130f760 100644 --- a/flang/test/Lower/Intrinsics/c_associated.f90 +++ b/flang/test/Lower/Intrinsics/c_associated.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! Test intrinsic module procedure c_associated diff --git a/flang/test/Lower/Intrinsics/c_f_pointer.f90 b/flang/test/Lower/Intrinsics/c_f_pointer.f90 index 145a306fc772d..8e8680777275d 100644 --- a/flang/test/Lower/Intrinsics/c_f_pointer.f90 +++ b/flang/test/Lower/Intrinsics/c_f_pointer.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! Test intrinsic module procedure c_f_pointer diff --git a/flang/test/Lower/Intrinsics/c_funloc.f90 b/flang/test/Lower/Intrinsics/c_funloc.f90 index 1f7e54e24b77a..29a0e10e2b94f 100644 --- a/flang/test/Lower/Intrinsics/c_funloc.f90 +++ b/flang/test/Lower/Intrinsics/c_funloc.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! Test intrinsic module procedure c_funloc diff --git a/flang/test/Lower/Intrinsics/c_loc.f90 b/flang/test/Lower/Intrinsics/c_loc.f90 index 524be0964c833..e73e63913566c 100644 --- a/flang/test/Lower/Intrinsics/c_loc.f90 +++ b/flang/test/Lower/Intrinsics/c_loc.f90 @@ -1,5 +1,5 @@ -! RUN: bbc --use-desc-for-alloc=false --emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false --emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! Test intrinsic module procedure c_loc diff --git a/flang/test/Lower/Intrinsics/cmplx.f90 b/flang/test/Lower/Intrinsics/cmplx.f90 index 2db1a65cd98a0..fe08920ece512 100644 --- a/flang/test/Lower/Intrinsics/cmplx.f90 +++ b/flang/test/Lower/Intrinsics/cmplx.f90 @@ -3,7 +3,7 @@ ! a disassociated pointer, or an optional argument. ! CMPLX without such argument is re-written by the front-end as a ! complex constructor that is tested elsewhere. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPcmplx_test_scalar_ptr( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref diff --git a/flang/test/Lower/Intrinsics/count.f90 b/flang/test/Lower/Intrinsics/count.f90 index 72e3275b8f7d1..1eef676e79244 100644 --- a/flang/test/Lower/Intrinsics/count.f90 +++ b/flang/test/Lower/Intrinsics/count.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: count_test1 ! CHECK-SAME: %[[arg0:.*]]: !fir.ref{{.*}}, %[[arg1:.*]]: !fir.box>>{{.*}}) diff --git a/flang/test/Lower/Intrinsics/cpu_time.f90 b/flang/test/Lower/Intrinsics/cpu_time.f90 index 53762c185ca3f..25ff4f8821145 100644 --- a/flang/test/Lower/Intrinsics/cpu_time.f90 +++ b/flang/test/Lower/Intrinsics/cpu_time.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: cpu_time_test subroutine cpu_time_test(t) diff --git a/flang/test/Lower/Intrinsics/date_and_time.f90 b/flang/test/Lower/Intrinsics/date_and_time.f90 index e54dca3c8e8cc..900880f778447 100644 --- a/flang/test/Lower/Intrinsics/date_and_time.f90 +++ b/flang/test/Lower/Intrinsics/date_and_time.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPdate_and_time_test( ! CHECK-SAME: %[[date:[^:]+]]: !fir.boxchar<1>{{.*}}, %[[time:[^:]+]]: !fir.boxchar<1>{{.*}}, %[[zone:.*]]: !fir.boxchar<1>{{.*}}, %[[values:.*]]: !fir.box>{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/dconjg.f90 b/flang/test/Lower/Intrinsics/dconjg.f90 index de33eeaf84c6b..dcd3ff06736c1 100644 --- a/flang/test/Lower/Intrinsics/dconjg.f90 +++ b/flang/test/Lower/Intrinsics/dconjg.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine test_dconjg(r, c) complex(8), intent(out) :: r diff --git a/flang/test/Lower/Intrinsics/dim.f90 b/flang/test/Lower/Intrinsics/dim.f90 index 2d2685de4707f..6b6d2179fad9f 100644 --- a/flang/test/Lower/Intrinsics/dim.f90 +++ b/flang/test/Lower/Intrinsics/dim.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPdim_testr( ! CHECK-SAME: %[[VAL_0:[a-z]+[0-9]]]: !fir.ref{{.*}}, %[[VAL_1:.*]]: !fir.ref{{.*}}, %[[VAL_2:.*]]: !fir.ref{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/dimag.f90 b/flang/test/Lower/Intrinsics/dimag.f90 index 535ca5f060ca2..03ec711b8f355 100644 --- a/flang/test/Lower/Intrinsics/dimag.f90 +++ b/flang/test/Lower/Intrinsics/dimag.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine test_dimag(r, c) real(8), intent(out) :: r diff --git a/flang/test/Lower/Intrinsics/dot_product.f90 b/flang/test/Lower/Intrinsics/dot_product.f90 index 8025b79620397..83d6fc4b3f759 100644 --- a/flang/test/Lower/Intrinsics/dot_product.f90 +++ b/flang/test/Lower/Intrinsics/dot_product.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! DOT_PROD ! CHECK-LABEL: dot_prod_int_default diff --git a/flang/test/Lower/Intrinsics/dprod.f90 b/flang/test/Lower/Intrinsics/dprod.f90 index 4a4220c63b581..8e14d63aa95ce 100644 --- a/flang/test/Lower/Intrinsics/dprod.f90 +++ b/flang/test/Lower/Intrinsics/dprod.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: dprod_test subroutine dprod_test (x, y, z) diff --git a/flang/test/Lower/Intrinsics/dreal.f90 b/flang/test/Lower/Intrinsics/dreal.f90 index 65d05c900e51a..2794262a3e2d3 100644 --- a/flang/test/Lower/Intrinsics/dreal.f90 +++ b/flang/test/Lower/Intrinsics/dreal.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine test_dreal(r, c) real(8), intent(out) :: r diff --git a/flang/test/Lower/Intrinsics/dshiftl.f90 b/flang/test/Lower/Intrinsics/dshiftl.f90 index 809bd83d03f82..8fd642df2e3bc 100644 --- a/flang/test/Lower/Intrinsics/dshiftl.f90 +++ b/flang/test/Lower/Intrinsics/dshiftl.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: dshiftl1_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}}, %[[S:.*]]: !fir.ref{{.*}}, %[[C:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/dshiftr.f90 b/flang/test/Lower/Intrinsics/dshiftr.f90 index 565e142a4a066..891f2fc54d04b 100644 --- a/flang/test/Lower/Intrinsics/dshiftr.f90 +++ b/flang/test/Lower/Intrinsics/dshiftr.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: dshiftr1_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}}, %[[S:.*]]: !fir.ref{{.*}}, %[[C:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/eoshift.f90 b/flang/test/Lower/Intrinsics/eoshift.f90 index b2cc1a9e909a9..5d916dcdb56c2 100644 --- a/flang/test/Lower/Intrinsics/eoshift.f90 +++ b/flang/test/Lower/Intrinsics/eoshift.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: eoshift_test1 subroutine eoshift_test1(arr, shift) diff --git a/flang/test/Lower/Intrinsics/exit-2.f90 b/flang/test/Lower/Intrinsics/exit-2.f90 index ff8cee05240c1..7158eeb70db81 100644 --- a/flang/test/Lower/Intrinsics/exit-2.f90 +++ b/flang/test/Lower/Intrinsics/exit-2.f90 @@ -1,5 +1,5 @@ ! Test EXIT with dynamically optional arguments. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPexit_opt_dummy( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref {fir.bindc_name = "status", fir.optional}) { diff --git a/flang/test/Lower/Intrinsics/exit.f90 b/flang/test/Lower/Intrinsics/exit.f90 index 6c973986e7c2c..c3110fcbec2b5 100644 --- a/flang/test/Lower/Intrinsics/exit.f90 +++ b/flang/test/Lower/Intrinsics/exit.f90 @@ -1,6 +1,6 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-32 -DDEFAULT_INTEGER_SIZE=32 %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck --check-prefixes=CHECK,CHECK-32 -DDEFAULT_INTEGER_SIZE=32 %s ! bbc doesn't have a way to set the default kinds so we use flang-new driver -! RUN: flang-new -fc1 -fdefault-integer-8 -emit-fir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-64 -DDEFAULT_INTEGER_SIZE=64 %s +! RUN: %flang_fc1 -fdefault-integer-8 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-64 -DDEFAULT_INTEGER_SIZE=64 %s ! CHECK-LABEL: func @_QPexit_test1() { subroutine exit_test1 diff --git a/flang/test/Lower/Intrinsics/exp.f90 b/flang/test/Lower/Intrinsics/exp.f90 index 49ed25a5b8e6c..15c6ebe2db71d 100644 --- a/flang/test/Lower/Intrinsics/exp.f90 +++ b/flang/test/Lower/Intrinsics/exp.f90 @@ -1,10 +1,10 @@ -! RUN: bbc -emit-fir -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" -! RUN: bbc -emit-fir --math-runtime=precise -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" -! RUN: bbc -emit-fir --force-mlir-complex -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR" -! RUN: %flang_fc1 -emit-fir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" -! RUN: %flang_fc1 -fapprox-func -emit-fir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-APPROX" -! RUN: %flang_fc1 -emit-fir -mllvm -outline-intrinsics -mllvm --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" -! RUN: %flang_fc1 -emit-fir -mllvm -outline-intrinsics -mllvm --force-mlir-complex %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR" +! RUN: bbc -emit-fir -hlfir=false -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" +! RUN: bbc -emit-fir -hlfir=false --math-runtime=precise -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" +! RUN: bbc -emit-fir -hlfir=false --force-mlir-complex -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR" +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" +! RUN: %flang_fc1 -fapprox-func -emit-fir -flang-deprecated-no-hlfir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-APPROX" +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -outline-intrinsics -mllvm --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -outline-intrinsics -mllvm --force-mlir-complex %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR" ! CHECK-LABEL: exp_testr ! CHECK-SAME: (%[[AREF:.*]]: !fir.ref {{.*}}, %[[BREF:.*]]: !fir.ref {{.*}}) diff --git a/flang/test/Lower/Intrinsics/extends_type_of.f90 b/flang/test/Lower/Intrinsics/extends_type_of.f90 index 642532f56bf6c..b36d4e8b7c0d4 100644 --- a/flang/test/Lower/Intrinsics/extends_type_of.f90 +++ b/flang/test/Lower/Intrinsics/extends_type_of.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -polymorphic-type %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s module extends_type_of_mod diff --git a/flang/test/Lower/Intrinsics/findloc.f90 b/flang/test/Lower/Intrinsics/findloc.f90 index e4a9ab9af6ea5..b8b337e8f085f 100644 --- a/flang/test/Lower/Intrinsics/findloc.f90 +++ b/flang/test/Lower/Intrinsics/findloc.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPfindloc_test_1d( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}, %[[arg1:.*]]: !fir.ref{{.*}}) -> !fir.array<1xi32> diff --git a/flang/test/Lower/Intrinsics/get_command.f90 b/flang/test/Lower/Intrinsics/get_command.f90 index 13cac00d822ac..5daf007307b2f 100644 --- a/flang/test/Lower/Intrinsics/get_command.f90 +++ b/flang/test/Lower/Intrinsics/get_command.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPcommand_only() { ! CHECK: %[[VAL_0:.*]] = fir.alloca !fir.char<1,10> {bindc_name = "cmd", uniq_name = "_QFcommand_onlyEcmd"} diff --git a/flang/test/Lower/Intrinsics/get_command_argument-optional.f90 b/flang/test/Lower/Intrinsics/get_command_argument-optional.f90 index ebb82578864b2..c1b081b6112b9 100644 --- a/flang/test/Lower/Intrinsics/get_command_argument-optional.f90 +++ b/flang/test/Lower/Intrinsics/get_command_argument-optional.f90 @@ -1,5 +1,5 @@ ! Test GET_COMMAND_ARGUMENT with dynamically optional arguments. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtest( ! CHECK-SAME: %[[numberParam:.*]]: !fir.ref {fir.bindc_name = "number", fir.optional}, diff --git a/flang/test/Lower/Intrinsics/get_command_argument.f90 b/flang/test/Lower/Intrinsics/get_command_argument.f90 index 4af448387044d..0b3ada9b25cd0 100644 --- a/flang/test/Lower/Intrinsics/get_command_argument.f90 +++ b/flang/test/Lower/Intrinsics/get_command_argument.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-32 -DDEFAULT_INTEGER_SIZE=32 %s -! RUN: flang-new -fc1 -fdefault-integer-8 -emit-fir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-64 -DDEFAULT_INTEGER_SIZE=64 %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck --check-prefixes=CHECK,CHECK-32 -DDEFAULT_INTEGER_SIZE=32 %s +! RUN: %flang_fc1 -fdefault-integer-8 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-64 -DDEFAULT_INTEGER_SIZE=64 %s ! CHECK-LABEL: func @_QPnumber_only( ! CHECK-SAME: %[[num:.*]]: !fir.ref{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/get_environment_variable-optional.f90 b/flang/test/Lower/Intrinsics/get_environment_variable-optional.f90 index 4325ff0282954..bb87df56ab800 100644 --- a/flang/test/Lower/Intrinsics/get_environment_variable-optional.f90 +++ b/flang/test/Lower/Intrinsics/get_environment_variable-optional.f90 @@ -1,5 +1,5 @@ ! Test GET_ENVIRONMENT_VARIABLE with dynamically optional arguments. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtest( diff --git a/flang/test/Lower/Intrinsics/get_environment_variable.f90 b/flang/test/Lower/Intrinsics/get_environment_variable.f90 index 5286eebb41f99..41634aaa97f4d 100644 --- a/flang/test/Lower/Intrinsics/get_environment_variable.f90 +++ b/flang/test/Lower/Intrinsics/get_environment_variable.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-32 -DDEFAULT_INTEGER_SIZE=32 %s -! RUN: flang-new -fc1 -fdefault-integer-8 -emit-fir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-64 -DDEFAULT_INTEGER_SIZE=64 %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck --check-prefixes=CHECK,CHECK-32 -DDEFAULT_INTEGER_SIZE=32 %s +! RUN: %flang_fc1 -fdefault-integer-8 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-64 -DDEFAULT_INTEGER_SIZE=64 %s ! CHECK-LABEL: func @_QPname_only( ! CHECK-SAME: %[[nameArg:.*]]: !fir.boxchar<1> {fir.bindc_name = "name"}) { diff --git a/flang/test/Lower/Intrinsics/iall.f90 b/flang/test/Lower/Intrinsics/iall.f90 index dcbf64b787000..119cb90a52da2 100644 --- a/flang/test/Lower/Intrinsics/iall.f90 +++ b/flang/test/Lower/Intrinsics/iall.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPiall_test_1( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}) -> i8 { diff --git a/flang/test/Lower/Intrinsics/iand.f90 b/flang/test/Lower/Intrinsics/iand.f90 index f7abde5fb693c..a6e4fbcdfe9f4 100644 --- a/flang/test/Lower/Intrinsics/iand.f90 +++ b/flang/test/Lower/Intrinsics/iand.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: iand_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}}, %[[C:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/iany.f90 b/flang/test/Lower/Intrinsics/iany.f90 index dfb0f62a8cde1..1f33a7a5c5cfb 100644 --- a/flang/test/Lower/Intrinsics/iany.f90 +++ b/flang/test/Lower/Intrinsics/iany.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPiany_test_1( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}) -> i8 { diff --git a/flang/test/Lower/Intrinsics/ibclr.f90 b/flang/test/Lower/Intrinsics/ibclr.f90 index ec30b251a867b..a11e677bf847f 100644 --- a/flang/test/Lower/Intrinsics/ibclr.f90 +++ b/flang/test/Lower/Intrinsics/ibclr.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: ibclr_test function ibclr_test(i, j) diff --git a/flang/test/Lower/Intrinsics/ibits.f90 b/flang/test/Lower/Intrinsics/ibits.f90 index 9702aa346d663..008801710a66a 100644 --- a/flang/test/Lower/Intrinsics/ibits.f90 +++ b/flang/test/Lower/Intrinsics/ibits.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: ibits_test function ibits_test(i, j, k) diff --git a/flang/test/Lower/Intrinsics/ibset.f90 b/flang/test/Lower/Intrinsics/ibset.f90 index 7dcaf9f475ea0..254adf75216a1 100644 --- a/flang/test/Lower/Intrinsics/ibset.f90 +++ b/flang/test/Lower/Intrinsics/ibset.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: ibset_test function ibset_test(i, j) diff --git a/flang/test/Lower/Intrinsics/ichar.f90 b/flang/test/Lower/Intrinsics/ichar.f90 index fa0cdc56ef588..99284455be097 100644 --- a/flang/test/Lower/Intrinsics/ichar.f90 +++ b/flang/test/Lower/Intrinsics/ichar.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: ichar_test subroutine ichar_test(c) diff --git a/flang/test/Lower/Intrinsics/ieee_class.f90 b/flang/test/Lower/Intrinsics/ieee_class.f90 index 71ff0a1d677aa..2c1cdf95275c9 100644 --- a/flang/test/Lower/Intrinsics/ieee_class.f90 +++ b/flang/test/Lower/Intrinsics/ieee_class.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s #ifndef RK #define RK 8 diff --git a/flang/test/Lower/Intrinsics/ieee_copy_sign.f90 b/flang/test/Lower/Intrinsics/ieee_copy_sign.f90 index 25541983a54e9..13e80bc5060b9 100644 --- a/flang/test/Lower/Intrinsics/ieee_copy_sign.f90 +++ b/flang/test/Lower/Intrinsics/ieee_copy_sign.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QQmain use ieee_arithmetic diff --git a/flang/test/Lower/Intrinsics/ieee_is_finite.f90 b/flang/test/Lower/Intrinsics/ieee_is_finite.f90 index db226c0d0a5ce..ee7d8dab7b992 100644 --- a/flang/test/Lower/Intrinsics/ieee_is_finite.f90 +++ b/flang/test/Lower/Intrinsics/ieee_is_finite.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: c.func @_QPis_finite_test subroutine is_finite_test(x, y) diff --git a/flang/test/Lower/Intrinsics/ieee_operator_eq.f90 b/flang/test/Lower/Intrinsics/ieee_operator_eq.f90 index 2692de3abd3d2..1a655ef47ec9a 100644 --- a/flang/test/Lower/Intrinsics/ieee_operator_eq.f90 +++ b/flang/test/Lower/Intrinsics/ieee_operator_eq.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: c.func @_QPs subroutine s(r1,r2) diff --git a/flang/test/Lower/Intrinsics/ieee_rounding.f90 b/flang/test/Lower/Intrinsics/ieee_rounding.f90 index f14c0be9b2173..6b2427faf320f 100644 --- a/flang/test/Lower/Intrinsics/ieee_rounding.f90 +++ b/flang/test/Lower/Intrinsics/ieee_rounding.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: c.func @_QQmain program r diff --git a/flang/test/Lower/Intrinsics/ieee_signbit.f90 b/flang/test/Lower/Intrinsics/ieee_signbit.f90 index aa02538a11f24..b0bf52c4ae2b8 100644 --- a/flang/test/Lower/Intrinsics/ieee_signbit.f90 +++ b/flang/test/Lower/Intrinsics/ieee_signbit.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: c.func @_QQmain use ieee_arithmetic diff --git a/flang/test/Lower/Intrinsics/ieee_unordered.f90 b/flang/test/Lower/Intrinsics/ieee_unordered.f90 index 15b04f310c4ff..d953e4d36cd2b 100644 --- a/flang/test/Lower/Intrinsics/ieee_unordered.f90 +++ b/flang/test/Lower/Intrinsics/ieee_unordered.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QQmain use ieee_arithmetic diff --git a/flang/test/Lower/Intrinsics/index.f90 b/flang/test/Lower/Intrinsics/index.f90 index 6ff28c922ab06..f1204458f7a40 100644 --- a/flang/test/Lower/Intrinsics/index.f90 +++ b/flang/test/Lower/Intrinsics/index.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPindex_test( ! CHECK-SAME: %[[s:[^:]+]]: !fir.boxchar<1>{{.*}}, %[[ss:[^:]+]]: !fir.boxchar<1>{{.*}}) -> i32 diff --git a/flang/test/Lower/Intrinsics/iparity.f90 b/flang/test/Lower/Intrinsics/iparity.f90 index bf84daf740dca..46b9ca5fc86fa 100644 --- a/flang/test/Lower/Intrinsics/iparity.f90 +++ b/flang/test/Lower/Intrinsics/iparity.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPiparity_test_1( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}) -> i8 { diff --git a/flang/test/Lower/Intrinsics/is_contiguous.f90 b/flang/test/Lower/Intrinsics/is_contiguous.f90 index e01348edcc5eb..67843d98b3d1f 100644 --- a/flang/test/Lower/Intrinsics/is_contiguous.f90 +++ b/flang/test/Lower/Intrinsics/is_contiguous.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPtest_is_contiguous( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.box> {fir.bindc_name = "a"}) { diff --git a/flang/test/Lower/Intrinsics/is_iostat_value.f90 b/flang/test/Lower/Intrinsics/is_iostat_value.f90 index 933dca1dcf193..2b4a94a555b9a 100644 --- a/flang/test/Lower/Intrinsics/is_iostat_value.f90 +++ b/flang/test/Lower/Intrinsics/is_iostat_value.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QQmain ! CHECK: %[[V_0:[0-9]+]] = fir.alloca i32 {bindc_name = "i", uniq_name = "_QFEi"} diff --git a/flang/test/Lower/Intrinsics/ishft.f90 b/flang/test/Lower/Intrinsics/ishft.f90 index ea9fd268d7bfe..d25bdd86b192b 100644 --- a/flang/test/Lower/Intrinsics/ishft.f90 +++ b/flang/test/Lower/Intrinsics/ishft.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: ishft_test function ishft_test(i, j) diff --git a/flang/test/Lower/Intrinsics/ishftc.f90 b/flang/test/Lower/Intrinsics/ishftc.f90 index 4a7f8e9561f07..70d71128cf9cf 100644 --- a/flang/test/Lower/Intrinsics/ishftc.f90 +++ b/flang/test/Lower/Intrinsics/ishftc.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: ishftc_test function ishftc_test(i, j, k) diff --git a/flang/test/Lower/Intrinsics/lbound.f90 b/flang/test/Lower/Intrinsics/lbound.f90 index b39dfe2d93fb3..54d2683e14f1c 100644 --- a/flang/test/Lower/Intrinsics/lbound.f90 +++ b/flang/test/Lower/Intrinsics/lbound.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPlbound_test( diff --git a/flang/test/Lower/Intrinsics/leadz.f90 b/flang/test/Lower/Intrinsics/leadz.f90 index 33efe45542461..181a8fdc4a4b1 100644 --- a/flang/test/Lower/Intrinsics/leadz.f90 +++ b/flang/test/Lower/Intrinsics/leadz.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: leadz1_test ! CHECK-SAME: %[[AREF:.*]]: !fir.ref{{.*}}, %[[BREF:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/len.f90 b/flang/test/Lower/Intrinsics/len.f90 index 75150e1840370..16b865cc89aad 100644 --- a/flang/test/Lower/Intrinsics/len.f90 +++ b/flang/test/Lower/Intrinsics/len.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: len_test subroutine len_test(i, c) diff --git a/flang/test/Lower/Intrinsics/loc.f90 b/flang/test/Lower/Intrinsics/loc.f90 index 049063ef5d611..a7d7124b9ddf9 100644 --- a/flang/test/Lower/Intrinsics/loc.f90 +++ b/flang/test/Lower/Intrinsics/loc.f90 @@ -1,5 +1,5 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! Test LOC intrinsic diff --git a/flang/test/Lower/Intrinsics/log.f90 b/flang/test/Lower/Intrinsics/log.f90 index 08dbd4218d64f..63af1c5e9e556 100644 --- a/flang/test/Lower/Intrinsics/log.f90 +++ b/flang/test/Lower/Intrinsics/log.f90 @@ -1,10 +1,10 @@ -! RUN: bbc -emit-fir -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" -! RUN: bbc -emit-fir --math-runtime=precise -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" -! RUN: bbc -emit-fir --force-mlir-complex -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR" -! RUN: %flang_fc1 -emit-fir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" -! RUN: %flang_fc1 -emit-fir -mllvm -outline-intrinsics -mllvm --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" -! RUN: %flang_fc1 -emit-fir -mllvm -outline-intrinsics -mllvm --force-mlir-complex %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR" -! RUN: %flang_fc1 -fapprox-func -emit-fir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-APPROX" +! RUN: bbc -emit-fir -hlfir=false -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" +! RUN: bbc -emit-fir -hlfir=false --math-runtime=precise -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" +! RUN: bbc -emit-fir -hlfir=false --force-mlir-complex -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR" +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE" +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -outline-intrinsics -mllvm --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE" +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -outline-intrinsics -mllvm --force-mlir-complex %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR" +! RUN: %flang_fc1 -fapprox-func -emit-fir -flang-deprecated-no-hlfir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-APPROX" ! CHECK-LABEL: log_testr ! CHECK-SAME: (%[[AREF:.*]]: !fir.ref {{.*}}, %[[BREF:.*]]: !fir.ref {{.*}}) diff --git a/flang/test/Lower/Intrinsics/maskl.f90 b/flang/test/Lower/Intrinsics/maskl.f90 index 19b6dcb33dcfe..fab0122f6be74 100644 --- a/flang/test/Lower/Intrinsics/maskl.f90 +++ b/flang/test/Lower/Intrinsics/maskl.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: maskl_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/maskr.f90 b/flang/test/Lower/Intrinsics/maskr.f90 index d4f39025bd789..85077a19541c5 100644 --- a/flang/test/Lower/Intrinsics/maskr.f90 +++ b/flang/test/Lower/Intrinsics/maskr.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: maskr_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/matmul.f90 b/flang/test/Lower/Intrinsics/matmul.f90 index 0e04b9ccab932..e9a8220dc6ab7 100644 --- a/flang/test/Lower/Intrinsics/matmul.f90 +++ b/flang/test/Lower/Intrinsics/matmul.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! Test matmul intrinsic diff --git a/flang/test/Lower/Intrinsics/max.f90 b/flang/test/Lower/Intrinsics/max.f90 index bdc7e0be43d23..1909a4eca3f67 100644 --- a/flang/test/Lower/Intrinsics/max.f90 +++ b/flang/test/Lower/Intrinsics/max.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module max_test contains diff --git a/flang/test/Lower/Intrinsics/maxloc.f90 b/flang/test/Lower/Intrinsics/maxloc.f90 index ec003713138af..e299e5ab63e64 100644 --- a/flang/test/Lower/Intrinsics/maxloc.f90 +++ b/flang/test/Lower/Intrinsics/maxloc.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPmaxloc_test( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}, %[[arg1:.*]]: !fir.box>{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/maxval.f90 b/flang/test/Lower/Intrinsics/maxval.f90 index a442926ff1b0b..9e8b6e04cd684 100644 --- a/flang/test/Lower/Intrinsics/maxval.f90 +++ b/flang/test/Lower/Intrinsics/maxval.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPmaxval_test( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}) -> i32 diff --git a/flang/test/Lower/Intrinsics/merge.f90 b/flang/test/Lower/Intrinsics/merge.f90 index c8b6b3294b328..2e17efcaf5c2a 100644 --- a/flang/test/Lower/Intrinsics/merge.f90 +++ b/flang/test/Lower/Intrinsics/merge.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPmerge_test( ! CHECK-SAME: %[[arg0:.*]]: !fir.ref>{{.*}}, %[[arg1:.*]]: index{{.*}}, %[[arg2:[^:]+]]: !fir.boxchar<1>{{.*}}, %[[arg3:[^:]+]]: !fir.boxchar<1>{{.*}}, %[[arg4:.*]]: !fir.ref>{{.*}}) -> !fir.boxchar<1> { diff --git a/flang/test/Lower/Intrinsics/merge_bits.f90 b/flang/test/Lower/Intrinsics/merge_bits.f90 index b5c2745d2b2ff..8cd72f5fd3228 100644 --- a/flang/test/Lower/Intrinsics/merge_bits.f90 +++ b/flang/test/Lower/Intrinsics/merge_bits.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: merge_bits1_test ! CHECK-SAME: %[[IREF:.*]]: !fir.ref{{.*}}, %[[JREF:.*]]: !fir.ref{{.*}}, %[[MREF:.*]]: !fir.ref{{.*}}, %[[RREF:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/minloc.f90 b/flang/test/Lower/Intrinsics/minloc.f90 index 06dcf04cc58ad..2a361cc94639f 100644 --- a/flang/test/Lower/Intrinsics/minloc.f90 +++ b/flang/test/Lower/Intrinsics/minloc.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPminloc_test( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}, %[[arg1:.*]]: !fir.box> diff --git a/flang/test/Lower/Intrinsics/minval.f90 b/flang/test/Lower/Intrinsics/minval.f90 index cdd5b9cdfbd67..cff34a4f1e7e6 100644 --- a/flang/test/Lower/Intrinsics/minval.f90 +++ b/flang/test/Lower/Intrinsics/minval.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPminval_test( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}) -> i32 diff --git a/flang/test/Lower/Intrinsics/mod.f90 b/flang/test/Lower/Intrinsics/mod.f90 index b879e7609fe62..3f5385ac303ab 100644 --- a/flang/test/Lower/Intrinsics/mod.f90 +++ b/flang/test/Lower/Intrinsics/mod.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPmod_testr4( ! CHECK-SAME: %[[arg0:.*]]: !fir.ref{{.*}}, %[[arg1:.*]]: !fir.ref{{.*}}, %[[arg2:.*]]: !fir.ref{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/modulo.f90 b/flang/test/Lower/Intrinsics/modulo.f90 index 23c02ccdddbbf..4c8c1ff4da3b0 100644 --- a/flang/test/Lower/Intrinsics/modulo.f90 +++ b/flang/test/Lower/Intrinsics/modulo.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPmodulo_testr( ! CHECK-SAME: %[[arg0:.*]]: !fir.ref{{.*}}, %[[arg1:.*]]: !fir.ref{{.*}}, %[[arg2:.*]]: !fir.ref{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/move_alloc.f90 b/flang/test/Lower/Intrinsics/move_alloc.f90 index c07a412d64073..f59566449e4ad 100644 --- a/flang/test/Lower/Intrinsics/move_alloc.f90 +++ b/flang/test/Lower/Intrinsics/move_alloc.f90 @@ -1,5 +1,5 @@ - ! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s - ! RUN: flang-new -fc1 -mllvm --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s + ! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s + ! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: to_from_only subroutine to_from_only diff --git a/flang/test/Lower/Intrinsics/mvbits.f90 b/flang/test/Lower/Intrinsics/mvbits.f90 index f9fd0e393450e..747418fd35f28 100644 --- a/flang/test/Lower/Intrinsics/mvbits.f90 +++ b/flang/test/Lower/Intrinsics/mvbits.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPmvbits_test( function mvbits_test(from, frompos, len, to, topos) diff --git a/flang/test/Lower/Intrinsics/nearest.f90 b/flang/test/Lower/Intrinsics/nearest.f90 index 46b0ce73608f3..02ded4919dd7e 100644 --- a/flang/test/Lower/Intrinsics/nearest.f90 +++ b/flang/test/Lower/Intrinsics/nearest.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: nearest_test1 subroutine nearest_test1(x, s) diff --git a/flang/test/Lower/Intrinsics/norm2.f90 b/flang/test/Lower/Intrinsics/norm2.f90 index 01c5ad50eed1e..f14cad59d5bd3 100644 --- a/flang/test/Lower/Intrinsics/norm2.f90 +++ b/flang/test/Lower/Intrinsics/norm2.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPnorm2_test_4( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}) -> f32 diff --git a/flang/test/Lower/Intrinsics/not.f90 b/flang/test/Lower/Intrinsics/not.f90 index 1c735af41c31d..140800c27e878 100644 --- a/flang/test/Lower/Intrinsics/not.f90 +++ b/flang/test/Lower/Intrinsics/not.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine not_test integer :: source diff --git a/flang/test/Lower/Intrinsics/pack.f90 b/flang/test/Lower/Intrinsics/pack.f90 index 3254941f13b72..37e3170316b4c 100644 --- a/flang/test/Lower/Intrinsics/pack.f90 +++ b/flang/test/Lower/Intrinsics/pack.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: pack_test ! CHECK-SAME: %[[arg0:[^:]+]]: !fir.box> diff --git a/flang/test/Lower/Intrinsics/parity.f90 b/flang/test/Lower/Intrinsics/parity.f90 index 1734a8fd56487..6771b7d703275 100644 --- a/flang/test/Lower/Intrinsics/parity.f90 +++ b/flang/test/Lower/Intrinsics/parity.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: parity_test ! CHECK-SAME: %[[arg0:.*]]: !fir.box>>{{.*}}) -> !fir.logical<4> diff --git a/flang/test/Lower/Intrinsics/popcnt.f90 b/flang/test/Lower/Intrinsics/popcnt.f90 index 7e5785db0de98..175b29edd86ea 100644 --- a/flang/test/Lower/Intrinsics/popcnt.f90 +++ b/flang/test/Lower/Intrinsics/popcnt.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: popcnt1_test ! CHECK-SAME: %[[AREF:.*]]: !fir.ref{{.*}}, %[[BREF:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/poppar.f90 b/flang/test/Lower/Intrinsics/poppar.f90 index 7141829bb0e60..f3c3ccf6cbdd4 100644 --- a/flang/test/Lower/Intrinsics/poppar.f90 +++ b/flang/test/Lower/Intrinsics/poppar.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: poppar1_test ! CHECK-SAME: %[[AREF:.*]]: !fir.ref{{.*}}, %[[BREF:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/present.f90 b/flang/test/Lower/Intrinsics/present.f90 index faa7aa14d15c7..f78f93c89fe40 100644 --- a/flang/test/Lower/Intrinsics/present.f90 +++ b/flang/test/Lower/Intrinsics/present.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: present_test ! CHECK-SAME: %[[arg0:[^:]+]]: !fir.box> diff --git a/flang/test/Lower/Intrinsics/product.f90 b/flang/test/Lower/Intrinsics/product.f90 index 58bbc2e4733af..e7f7c0d39ee0c 100644 --- a/flang/test/Lower/Intrinsics/product.f90 +++ b/flang/test/Lower/Intrinsics/product.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPproduct_test( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}) -> i32 diff --git a/flang/test/Lower/Intrinsics/random.f90 b/flang/test/Lower/Intrinsics/random.f90 index ebcc816731b1f..ca194befd0274 100644 --- a/flang/test/Lower/Intrinsics/random.f90 +++ b/flang/test/Lower/Intrinsics/random.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPrandom_test_1 subroutine random_test_1 diff --git a/flang/test/Lower/Intrinsics/real.f90 b/flang/test/Lower/Intrinsics/real.f90 index 7b9fab8a87712..f1f728e1a203f 100644 --- a/flang/test/Lower/Intrinsics/real.f90 +++ b/flang/test/Lower/Intrinsics/real.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Tests REAL lowering subroutine test_real() diff --git a/flang/test/Lower/Intrinsics/repeat.f90 b/flang/test/Lower/Intrinsics/repeat.f90 index 15ce3113b1aa9..dd37fbbc8c54c 100644 --- a/flang/test/Lower/Intrinsics/repeat.f90 +++ b/flang/test/Lower/Intrinsics/repeat.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPrepeat_test( ! CHECK-SAME: %[[arg0:.*]]: !fir.boxchar<1>{{.*}}, %[[arg1:.*]]: !fir.ref{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/reshape.f90 b/flang/test/Lower/Intrinsics/reshape.f90 index cb09be31871b0..6fe95963b7acc 100644 --- a/flang/test/Lower/Intrinsics/reshape.f90 +++ b/flang/test/Lower/Intrinsics/reshape.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPreshape_test( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}, %[[arg1:[^:]+]]: !fir.box>{{.*}}, %[[arg2:[^:]+]]: !fir.box>{{.*}}, %[[arg3:.*]]: !fir.ref>{{.*}}, %[[arg4:.*]]: !fir.ref>{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/rrspacing.f90 b/flang/test/Lower/Intrinsics/rrspacing.f90 index f5c3abb27af34..7125f6bf319b8 100644 --- a/flang/test/Lower/Intrinsics/rrspacing.f90 +++ b/flang/test/Lower/Intrinsics/rrspacing.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPrrspacing_test2( ! CHECK-SAME: %[[x:[^:]+]]: !fir.ref{{.*}}) -> f128 diff --git a/flang/test/Lower/Intrinsics/same_type_as.f90 b/flang/test/Lower/Intrinsics/same_type_as.f90 index d8d524a86bda7..e1333024927d5 100644 --- a/flang/test/Lower/Intrinsics/same_type_as.f90 +++ b/flang/test/Lower/Intrinsics/same_type_as.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -polymorphic-type %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s module same_type_as_mod diff --git a/flang/test/Lower/Intrinsics/scale.f90 b/flang/test/Lower/Intrinsics/scale.f90 index 6f6324ec8822d..91892838ea513 100644 --- a/flang/test/Lower/Intrinsics/scale.f90 +++ b/flang/test/Lower/Intrinsics/scale.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: scale_test1 subroutine scale_test1(x, i) diff --git a/flang/test/Lower/Intrinsics/scan.f90 b/flang/test/Lower/Intrinsics/scan.f90 index 01f9a314ad8bd..2dd6933bc46fa 100644 --- a/flang/test/Lower/Intrinsics/scan.f90 +++ b/flang/test/Lower/Intrinsics/scan.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPscan_test( ! CHECK-SAME: %[[s:[^:]+]]: !fir.boxchar<1>{{.*}}, %[[ss:[^:]+]]: !fir.boxchar<1>{{.*}}) -> i32 diff --git a/flang/test/Lower/Intrinsics/selected_int_kind.f90 b/flang/test/Lower/Intrinsics/selected_int_kind.f90 index 2536e73055534..96e9e1b568845 100644 --- a/flang/test/Lower/Intrinsics/selected_int_kind.f90 +++ b/flang/test/Lower/Intrinsics/selected_int_kind.f90 @@ -1,5 +1,5 @@ ! REQUIRES: shell -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPselected_int_kind_test1( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref {fir.bindc_name = "a"}) { diff --git a/flang/test/Lower/Intrinsics/selected_real_kind.f90 b/flang/test/Lower/Intrinsics/selected_real_kind.f90 index 51b064ebd5b6c..388703a35d692 100644 --- a/flang/test/Lower/Intrinsics/selected_real_kind.f90 +++ b/flang/test/Lower/Intrinsics/selected_real_kind.f90 @@ -1,5 +1,5 @@ ! REQUIRES: shell -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPselected_real_kind_test1( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref {fir.bindc_name = "p"}, diff --git a/flang/test/Lower/Intrinsics/set_exponent.f90 b/flang/test/Lower/Intrinsics/set_exponent.f90 index c22c935a76482..fedbad78747a9 100644 --- a/flang/test/Lower/Intrinsics/set_exponent.f90 +++ b/flang/test/Lower/Intrinsics/set_exponent.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! SET_EXPONENT ! CHECK-LABEL: set_exponent_test diff --git a/flang/test/Lower/Intrinsics/shifta.f90 b/flang/test/Lower/Intrinsics/shifta.f90 index 92fda39e84bf8..11d3b13866ff0 100644 --- a/flang/test/Lower/Intrinsics/shifta.f90 +++ b/flang/test/Lower/Intrinsics/shifta.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: shifta1_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}}, %[[C:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/shiftl.f90 b/flang/test/Lower/Intrinsics/shiftl.f90 index 92414c2f7a92e..846072734959a 100644 --- a/flang/test/Lower/Intrinsics/shiftl.f90 +++ b/flang/test/Lower/Intrinsics/shiftl.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: shiftl1_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}}, %[[C:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/shiftr.f90 b/flang/test/Lower/Intrinsics/shiftr.f90 index 1015d1446195e..e6c62845c2039 100644 --- a/flang/test/Lower/Intrinsics/shiftr.f90 +++ b/flang/test/Lower/Intrinsics/shiftr.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: shiftr1_test ! CHECK-SAME: %[[A:.*]]: !fir.ref{{.*}}, %[[B:.*]]: !fir.ref{{.*}}, %[[C:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/size.f90 b/flang/test/Lower/Intrinsics/size.f90 index 7e965fd65e3bc..36fb462472570 100644 --- a/flang/test/Lower/Intrinsics/size.f90 +++ b/flang/test/Lower/Intrinsics/size.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPsize_test() { subroutine size_test() diff --git a/flang/test/Lower/Intrinsics/spacing.f90 b/flang/test/Lower/Intrinsics/spacing.f90 index 0259522dd575d..39b35ebd533ab 100644 --- a/flang/test/Lower/Intrinsics/spacing.f90 +++ b/flang/test/Lower/Intrinsics/spacing.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPspacing_test( ! CHECK-SAME: %[[x:[^:]+]]: !fir.ref{{.*}}) -> f32 diff --git a/flang/test/Lower/Intrinsics/spread.f90 b/flang/test/Lower/Intrinsics/spread.f90 index 36947b42b7bcf..4cd823d837453 100644 --- a/flang/test/Lower/Intrinsics/spread.f90 +++ b/flang/test/Lower/Intrinsics/spread.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -polymorphic-type %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s module spread_mod diff --git a/flang/test/Lower/Intrinsics/storage_size.f90 b/flang/test/Lower/Intrinsics/storage_size.f90 index 06bc8eec2e5dc..668322f45bd85 100644 --- a/flang/test/Lower/Intrinsics/storage_size.f90 +++ b/flang/test/Lower/Intrinsics/storage_size.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -polymorphic-type %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s module storage_size_test type :: p1 diff --git a/flang/test/Lower/Intrinsics/sum.f90 b/flang/test/Lower/Intrinsics/sum.f90 index 14ab846602e02..cafcc0828df8b 100644 --- a/flang/test/Lower/Intrinsics/sum.f90 +++ b/flang/test/Lower/Intrinsics/sum.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPsum_test( ! CHECK-SAME: %[[arg0:.*]]: !fir.box>{{.*}}) -> i32 { diff --git a/flang/test/Lower/Intrinsics/system_clock.f90 b/flang/test/Lower/Intrinsics/system_clock.f90 index 37ed097e9a5df..ca36920c04eb3 100644 --- a/flang/test/Lower/Intrinsics/system_clock.f90 +++ b/flang/test/Lower/Intrinsics/system_clock.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: system_clock_test subroutine system_clock_test() diff --git a/flang/test/Lower/Intrinsics/trailz.f90 b/flang/test/Lower/Intrinsics/trailz.f90 index db05f3169e0ff..4433775510eff 100644 --- a/flang/test/Lower/Intrinsics/trailz.f90 +++ b/flang/test/Lower/Intrinsics/trailz.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: trailz1_test ! CHECK-SAME: %[[AREF:.*]]: !fir.ref{{.*}}, %[[BREF:.*]]: !fir.ref{{.*}} diff --git a/flang/test/Lower/Intrinsics/transfer.f90 b/flang/test/Lower/Intrinsics/transfer.f90 index f77e412bf62c2..812946f106476 100644 --- a/flang/test/Lower/Intrinsics/transfer.f90 +++ b/flang/test/Lower/Intrinsics/transfer.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine trans_test(store, word) ! CHECK-LABEL: func @_QPtrans_test( diff --git a/flang/test/Lower/Intrinsics/transpose.f90 b/flang/test/Lower/Intrinsics/transpose.f90 index 698a2e848c79f..41c94edb77e7b 100644 --- a/flang/test/Lower/Intrinsics/transpose.f90 +++ b/flang/test/Lower/Intrinsics/transpose.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -opt-transpose=false -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -O0 %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -opt-transpose=false -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -O0 %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtranspose_test( ! CHECK-SAME: %[[source:.*]]: !fir.ref>{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/transpose_opt.f90 b/flang/test/Lower/Intrinsics/transpose_opt.f90 index eb7990c427c85..65102d1f8912f 100644 --- a/flang/test/Lower/Intrinsics/transpose_opt.f90 +++ b/flang/test/Lower/Intrinsics/transpose_opt.f90 @@ -1,8 +1,8 @@ -! RUN: bbc -emit-fir %s -opt-transpose=true -o - | FileCheck %s -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -O1 %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -O2 %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -O3 %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -opt-transpose=true -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -O1 %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -O2 %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -O3 %s -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPtranspose_test( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref> {fir.bindc_name = "mat"}) { diff --git a/flang/test/Lower/Intrinsics/trim.f90 b/flang/test/Lower/Intrinsics/trim.f90 index f242e486c8ab7..9ecb7945097be 100644 --- a/flang/test/Lower/Intrinsics/trim.f90 +++ b/flang/test/Lower/Intrinsics/trim.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtrim_test( ! CHECK-SAME: %[[arg0:.*]]: !fir.boxchar<1>{{.*}}) { diff --git a/flang/test/Lower/Intrinsics/ubound.f90 b/flang/test/Lower/Intrinsics/ubound.f90 index 8210ff38994b5..889414d1dd769 100644 --- a/flang/test/Lower/Intrinsics/ubound.f90 +++ b/flang/test/Lower/Intrinsics/ubound.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPubound_test( subroutine ubound_test(a, dim, res) diff --git a/flang/test/Lower/Intrinsics/ubound01.f90 b/flang/test/Lower/Intrinsics/ubound01.f90 index 797accb0ac689..4ebe3870cf0b3 100644 --- a/flang/test/Lower/Intrinsics/ubound01.f90 +++ b/flang/test/Lower/Intrinsics/ubound01.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Check that assumed shape lower bounds are applied before passing the ! descriptor to the runtime call. diff --git a/flang/test/Lower/Intrinsics/verify.f90 b/flang/test/Lower/Intrinsics/verify.f90 index f6c787cf66eb0..eb1454c001f70 100644 --- a/flang/test/Lower/Intrinsics/verify.f90 +++ b/flang/test/Lower/Intrinsics/verify.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPverify_test( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.boxchar<1>{{.*}}, %[[VAL_1:.*]]: !fir.boxchar<1>{{.*}}) -> i32 { diff --git a/flang/test/Lower/OpenACC/acc-atomic-capture.f90 b/flang/test/Lower/OpenACC/acc-atomic-capture.f90 index 0dc09d71e6b1e..d27a9f6160626 100644 --- a/flang/test/Lower/OpenACC/acc-atomic-capture.f90 +++ b/flang/test/Lower/OpenACC/acc-atomic-capture.f90 @@ -1,4 +1,4 @@ -! RUN: %flang_fc1 -I nowhere -emit-fir -fopenacc %s -o - | FileCheck %s +! RUN: %flang_fc1 -I nowhere -emit-fir -flang-deprecated-no-hlfir -fopenacc %s -o - | FileCheck %s ! This test checks the lowering of atomic capture diff --git a/flang/test/Lower/OpenACC/acc-atomic-read.f90 b/flang/test/Lower/OpenACC/acc-atomic-read.f90 index 3a718576124c3..46217d86f01fb 100644 --- a/flang/test/Lower/OpenACC/acc-atomic-read.f90 +++ b/flang/test/Lower/OpenACC/acc-atomic-read.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -fopenacc -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s ! This test checks the lowering of atomic read diff --git a/flang/test/Lower/OpenACC/acc-atomic-update-array.f90 b/flang/test/Lower/OpenACC/acc-atomic-update-array.f90 index b2f69fa05c099..9e8484dcc870e 100644 --- a/flang/test/Lower/OpenACC/acc-atomic-update-array.f90 +++ b/flang/test/Lower/OpenACC/acc-atomic-update-array.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR subroutine atomic_update_array1(r, n, x) diff --git a/flang/test/Lower/OpenACC/acc-atomic-update.f90 b/flang/test/Lower/OpenACC/acc-atomic-update.f90 index 96e1d5e58e6f4..1bca04320b7ef 100644 --- a/flang/test/Lower/OpenACC/acc-atomic-update.f90 +++ b/flang/test/Lower/OpenACC/acc-atomic-update.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of atomic and atomic update constructs -! RUN: bbc --use-desc-for-alloc=false -fopenacc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir -fopenacc %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir -flang-deprecated-no-hlfir -fopenacc %s -o - | FileCheck %s program acc_atomic_update_test integer :: x, y, z diff --git a/flang/test/Lower/OpenACC/acc-atomic-write.f90 b/flang/test/Lower/OpenACC/acc-atomic-write.f90 index e68aaac3d3858..5c79db4534d4e 100644 --- a/flang/test/Lower/OpenACC/acc-atomic-write.f90 +++ b/flang/test/Lower/OpenACC/acc-atomic-write.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -fopenacc -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s ! This test checks the lowering of atomic write diff --git a/flang/test/Lower/OpenACC/acc-bounds.f90 b/flang/test/Lower/OpenACC/acc-bounds.f90 index 86fb4d8c5284e..519f9fa2bffd2 100644 --- a/flang/test/Lower/OpenACC/acc-bounds.f90 +++ b/flang/test/Lower/OpenACC/acc-bounds.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC data bounds operation. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR module openacc_bounds diff --git a/flang/test/Lower/OpenACC/acc-data-operands.f90 b/flang/test/Lower/OpenACC/acc-data-operands.f90 index 3ec78c4b781d7..1b56552cc6d2f 100644 --- a/flang/test/Lower/OpenACC/acc-data-operands.f90 +++ b/flang/test/Lower/OpenACC/acc-data-operands.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of complex OpenACC data operands. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR module acc_data_operand diff --git a/flang/test/Lower/OpenACC/acc-data.f90 b/flang/test/Lower/OpenACC/acc-data.f90 index c749f1948bbbe..f0b309e342112 100644 --- a/flang/test/Lower/OpenACC/acc-data.f90 +++ b/flang/test/Lower/OpenACC/acc-data.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC data directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR subroutine acc_data diff --git a/flang/test/Lower/OpenACC/acc-declare.f90 b/flang/test/Lower/OpenACC/acc-declare.f90 index f77e5489a6157..b839c1f8621a1 100644 --- a/flang/test/Lower/OpenACC/acc-declare.f90 +++ b/flang/test/Lower/OpenACC/acc-declare.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenACC declare directive in subroutine and ! function specification parts. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s module acc_declare contains diff --git a/flang/test/Lower/OpenACC/acc-enter-data.f90 b/flang/test/Lower/OpenACC/acc-enter-data.f90 index a1f568f38af73..ed9cdf9a7e5ee 100644 --- a/flang/test/Lower/OpenACC/acc-enter-data.f90 +++ b/flang/test/Lower/OpenACC/acc-enter-data.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC enter data directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR subroutine acc_enter_data diff --git a/flang/test/Lower/OpenACC/acc-exit-data.f90 b/flang/test/Lower/OpenACC/acc-exit-data.f90 index ec92cbb43aba1..66455398fe139 100644 --- a/flang/test/Lower/OpenACC/acc-exit-data.f90 +++ b/flang/test/Lower/OpenACC/acc-exit-data.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC exit data directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR subroutine acc_exit_data diff --git a/flang/test/Lower/OpenACC/acc-host-data.f90 b/flang/test/Lower/OpenACC/acc-host-data.f90 index 9dfabc522753a..ad6630c24c9d5 100644 --- a/flang/test/Lower/OpenACC/acc-host-data.f90 +++ b/flang/test/Lower/OpenACC/acc-host-data.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC host_data directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR subroutine acc_host_data() diff --git a/flang/test/Lower/OpenACC/acc-init.f90 b/flang/test/Lower/OpenACC/acc-init.f90 index d1fd638c7ac0e..a24e5ae469ec4 100644 --- a/flang/test/Lower/OpenACC/acc-init.f90 +++ b/flang/test/Lower/OpenACC/acc-init.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC init directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s subroutine acc_init diff --git a/flang/test/Lower/OpenACC/acc-kernels-loop.f90 b/flang/test/Lower/OpenACC/acc-kernels-loop.f90 index 8679e5f6ccd5f..eee3f09732a31 100644 --- a/flang/test/Lower/OpenACC/acc-kernels-loop.f90 +++ b/flang/test/Lower/OpenACC/acc-kernels-loop.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC kernels loop combined directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR subroutine acc_kernels_loop diff --git a/flang/test/Lower/OpenACC/acc-kernels.f90 b/flang/test/Lower/OpenACC/acc-kernels.f90 index 18eb0779031c9..d150986c587e8 100644 --- a/flang/test/Lower/OpenACC/acc-kernels.f90 +++ b/flang/test/Lower/OpenACC/acc-kernels.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC kernels construct. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR subroutine acc_kernels diff --git a/flang/test/Lower/OpenACC/acc-loop.f90 b/flang/test/Lower/OpenACC/acc-loop.f90 index ec5eff5da78e7..924574512da4c 100644 --- a/flang/test/Lower/OpenACC/acc-loop.f90 +++ b/flang/test/Lower/OpenACC/acc-loop.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC loop directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: acc.private.recipe @privatization_ref_10x10xf32 : !fir.ref> init { diff --git a/flang/test/Lower/OpenACC/acc-parallel-loop.f90 b/flang/test/Lower/OpenACC/acc-parallel-loop.f90 index e0a29273bd783..0fd484091664d 100644 --- a/flang/test/Lower/OpenACC/acc-parallel-loop.f90 +++ b/flang/test/Lower/OpenACC/acc-parallel-loop.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC parallel loop combined directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR ! CHECK-LABEL: func.func @_QPacc_parallel_loop() diff --git a/flang/test/Lower/OpenACC/acc-parallel.f90 b/flang/test/Lower/OpenACC/acc-parallel.f90 index b222820e5959d..2243430ef12c0 100644 --- a/flang/test/Lower/OpenACC/acc-parallel.f90 +++ b/flang/test/Lower/OpenACC/acc-parallel.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC parallel directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %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_section_ext10xext10_ref_10x10xf32 : !fir.ref> init { diff --git a/flang/test/Lower/OpenACC/acc-private.f90 b/flang/test/Lower/OpenACC/acc-private.f90 index 7ec8e345fd3af..b3343ec7a5c69 100644 --- a/flang/test/Lower/OpenACC/acc-private.f90 +++ b/flang/test/Lower/OpenACC/acc-private.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC loop directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR ! CHECK-LABEL: acc.private.recipe @privatization_ref_10xf32 : !fir.ref> init { diff --git a/flang/test/Lower/OpenACC/acc-reduction.f90 b/flang/test/Lower/OpenACC/acc-reduction.f90 index 8671c280c2fb3..98fef6a2d2f29 100644 --- a/flang/test/Lower/OpenACC/acc-reduction.f90 +++ b/flang/test/Lower/OpenACC/acc-reduction.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC reduction clause. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR ! CHECK-LABEL: acc.reduction.recipe @reduction_max_ref_UxUxf32 : !fir.ref> reduction_operator init { diff --git a/flang/test/Lower/OpenACC/acc-serial-loop.f90 b/flang/test/Lower/OpenACC/acc-serial-loop.f90 index c94b5a577350a..4e5060b9ff024 100644 --- a/flang/test/Lower/OpenACC/acc-serial-loop.f90 +++ b/flang/test/Lower/OpenACC/acc-serial-loop.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of Openacc serial loop combined directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR ! CHECK-LABEL: acc.private.recipe @privatization_ref_10xf32 : !fir.ref> init { diff --git a/flang/test/Lower/OpenACC/acc-serial.f90 b/flang/test/Lower/OpenACC/acc-serial.f90 index a3b0799566588..89e920eff936c 100644 --- a/flang/test/Lower/OpenACC/acc-serial.f90 +++ b/flang/test/Lower/OpenACC/acc-serial.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC serial directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %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_section_ext10xext10_ref_10x10xf32 : !fir.ref> init { diff --git a/flang/test/Lower/OpenACC/acc-set.f90 b/flang/test/Lower/OpenACC/acc-set.f90 index 39bf26e0072b7..6189e1a157724 100644 --- a/flang/test/Lower/OpenACC/acc-set.f90 +++ b/flang/test/Lower/OpenACC/acc-set.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC set directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR program test_acc_set diff --git a/flang/test/Lower/OpenACC/acc-shutdown.f90 b/flang/test/Lower/OpenACC/acc-shutdown.f90 index f63f5d62b4fe9..f9ce0e84d5e7f 100644 --- a/flang/test/Lower/OpenACC/acc-shutdown.f90 +++ b/flang/test/Lower/OpenACC/acc-shutdown.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC shutdown directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s subroutine acc_shutdown diff --git a/flang/test/Lower/OpenACC/acc-update.f90 b/flang/test/Lower/OpenACC/acc-update.f90 index 5d5f5733ef7f1..f6141ac530d62 100644 --- a/flang/test/Lower/OpenACC/acc-update.f90 +++ b/flang/test/Lower/OpenACC/acc-update.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC update directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s --check-prefixes=CHECK,HLFIR subroutine acc_update diff --git a/flang/test/Lower/OpenACC/acc-wait.f90 b/flang/test/Lower/OpenACC/acc-wait.f90 index 604fa5b3d6f99..28f4fc11a28f0 100644 --- a/flang/test/Lower/OpenACC/acc-wait.f90 +++ b/flang/test/Lower/OpenACC/acc-wait.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenACC wait directive. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s subroutine acc_update diff --git a/flang/test/Lower/OpenACC/stop-stmt-in-region.f90 b/flang/test/Lower/OpenACC/stop-stmt-in-region.f90 index 4b3e5632650f1..0a13509dff49f 100644 --- a/flang/test/Lower/OpenACC/stop-stmt-in-region.f90 +++ b/flang/test/Lower/OpenACC/stop-stmt-in-region.f90 @@ -1,8 +1,8 @@ ! This test checks lowering of stop statement in OpenACC region. -! RUN: bbc -fopenacc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenacc -emit-fir -hlfir=false %s -o - | FileCheck %s ! RUN: bbc -fopenacc -emit-hlfir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenacc %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenacc %s -o - | FileCheck %s ! RUN: %flang_fc1 -emit-hlfir -fopenacc %s -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPtest_stop_in_region1() { diff --git a/flang/test/Lower/OpenMP/FIR/array-bounds.f90 b/flang/test/Lower/OpenMP/FIR/array-bounds.f90 index abef31af22ba6..7e6ac02aefe60 100644 --- a/flang/test/Lower/OpenMP/FIR/array-bounds.f90 +++ b/flang/test/Lower/OpenMP/FIR/array-bounds.f90 @@ -1,5 +1,5 @@ -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s --check-prefixes=HOST,ALL -!RUN: %flang_fc1 -emit-fir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s --check-prefixes=DEVICE,ALL +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s --check-prefixes=HOST,ALL +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp -fopenmp-is-target-device %s -o - | FileCheck %s --check-prefixes=DEVICE,ALL !ALL-LABEL: func.func @_QPread_write_section( !ALL: %[[ITER:.*]] = fir.alloca i32 {bindc_name = "i", uniq_name = "_QFread_write_sectionEi"} diff --git a/flang/test/Lower/OpenMP/FIR/atomic-capture.f90 b/flang/test/Lower/OpenMP/FIR/atomic-capture.f90 index a8b04a2e90cd4..024400a9e8471 100644 --- a/flang/test/Lower/OpenMP/FIR/atomic-capture.f90 +++ b/flang/test/Lower/OpenMP/FIR/atomic-capture.f90 @@ -1,4 +1,4 @@ -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s ! This test checks the lowering of atomic capture diff --git a/flang/test/Lower/OpenMP/FIR/atomic-read.f90 b/flang/test/Lower/OpenMP/FIR/atomic-read.f90 index 0079b347fac8d..66be9e7139044 100644 --- a/flang/test/Lower/OpenMP/FIR/atomic-read.f90 +++ b/flang/test/Lower/OpenMP/FIR/atomic-read.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s ! This test checks the lowering of atomic read diff --git a/flang/test/Lower/OpenMP/FIR/atomic-update.f90 b/flang/test/Lower/OpenMP/FIR/atomic-update.f90 index 56ced10901ab6..f4ebeef48cac4 100644 --- a/flang/test/Lower/OpenMP/FIR/atomic-update.f90 +++ b/flang/test/Lower/OpenMP/FIR/atomic-update.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of atomic and atomic update constructs -! RUN: bbc --use-desc-for-alloc=false -fopenmp -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s program OmpAtomicUpdate use omp_lib diff --git a/flang/test/Lower/OpenMP/FIR/atomic-write.f90 b/flang/test/Lower/OpenMP/FIR/atomic-write.f90 index 949bf0b3cdb53..5d98176cc201f 100644 --- a/flang/test/Lower/OpenMP/FIR/atomic-write.f90 +++ b/flang/test/Lower/OpenMP/FIR/atomic-write.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s ! This test checks the lowering of atomic write diff --git a/flang/test/Lower/OpenMP/FIR/copyin.f90 b/flang/test/Lower/OpenMP/FIR/copyin.f90 index 7de0fb0e3b96a..20023a81977ae 100644 --- a/flang/test/Lower/OpenMP/FIR/copyin.f90 +++ b/flang/test/Lower/OpenMP/FIR/copyin.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of `COPYIN` clause. -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPcopyin_scalar_array() { ! CHECK: %[[VAL_0:.*]] = fir.address_of(@_QFcopyin_scalar_arrayEx1) : !fir.ref diff --git a/flang/test/Lower/OpenMP/FIR/critical.f90 b/flang/test/Lower/OpenMP/FIR/critical.f90 index b86729f8a98e3..e88178422a834 100644 --- a/flang/test/Lower/OpenMP/FIR/critical.f90 +++ b/flang/test/Lower/OpenMP/FIR/critical.f90 @@ -1,6 +1,6 @@ -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s --check-prefixes="OMPDialect" -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefix="OMPDialect" -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | tco | FileCheck %s --check-prefix="LLVMIR" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s --check-prefixes="OMPDialect" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefix="OMPDialect" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | tco | FileCheck %s --check-prefix="LLVMIR" !OMPDialect: omp.critical.declare @help2 !OMPDialect: omp.critical.declare @help1 hint(contended) diff --git a/flang/test/Lower/OpenMP/FIR/default-clause.f90 b/flang/test/Lower/OpenMP/FIR/default-clause.f90 index 4f4da79ae24df..14c0d375896a1 100644 --- a/flang/test/Lower/OpenMP/FIR/default-clause.f90 +++ b/flang/test/Lower/OpenMP/FIR/default-clause.f90 @@ -1,8 +1,8 @@ ! This test checks lowering of OpenMP parallel directive ! with `DEFAULT` clause present. -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s !CHECK: func @_QQmain() attributes {fir.bindc_name = "default_clause_lowering"} { diff --git a/flang/test/Lower/OpenMP/FIR/firstprivate-commonblock.f90 b/flang/test/Lower/OpenMP/FIR/firstprivate-commonblock.f90 index a230c8ab64c30..6adc7d9f6c82b 100644 --- a/flang/test/Lower/OpenMP/FIR/firstprivate-commonblock.f90 +++ b/flang/test/Lower/OpenMP/FIR/firstprivate-commonblock.f90 @@ -1,4 +1,4 @@ -! RUN: %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s !CHECK: func.func @_QPfirstprivate_common() { !CHECK: %[[val_0:.*]] = fir.address_of(@c_) : !fir.ref> diff --git a/flang/test/Lower/OpenMP/FIR/flush.f90 b/flang/test/Lower/OpenMP/FIR/flush.f90 index 069fbe5170403..2c281632b85cb 100644 --- a/flang/test/Lower/OpenMP/FIR/flush.f90 +++ b/flang/test/Lower/OpenMP/FIR/flush.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenMP Flush Directive. -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s --check-prefixes="FIRDialect,OMPDialect" -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | fir-opt --cfg-conversion | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefixes="LLVMIRDialect,OMPDialect" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s --check-prefixes="FIRDialect,OMPDialect" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | fir-opt --cfg-conversion | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefixes="LLVMIRDialect,OMPDialect" subroutine flush_standalone(a, b, c) integer, intent(inout) :: a, b, c diff --git a/flang/test/Lower/OpenMP/FIR/lastprivate-commonblock.f90 b/flang/test/Lower/OpenMP/FIR/lastprivate-commonblock.f90 index 7d2118305fb4c..389bcba35f77f 100644 --- a/flang/test/Lower/OpenMP/FIR/lastprivate-commonblock.f90 +++ b/flang/test/Lower/OpenMP/FIR/lastprivate-commonblock.f90 @@ -1,4 +1,4 @@ -! RUN: %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s !CHECK: func.func @_QPlastprivate_common() { !CHECK: %[[val_0:.*]] = fir.alloca i32 {adapt.valuebyref, pinned} diff --git a/flang/test/Lower/OpenMP/FIR/master.f90 b/flang/test/Lower/OpenMP/FIR/master.f90 index 3a607eea0fb50..dd9910da2f419 100644 --- a/flang/test/Lower/OpenMP/FIR/master.f90 +++ b/flang/test/Lower/OpenMP/FIR/master.f90 @@ -1,5 +1,5 @@ -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s --check-prefixes="FIRDialect,OMPDialect" -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | fir-opt --cfg-conversion | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefixes="OMPDialect" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s --check-prefixes="FIRDialect,OMPDialect" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | fir-opt --cfg-conversion | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefixes="OMPDialect" !=============================================================================== ! parallel construct with function call which has master construct internally diff --git a/flang/test/Lower/OpenMP/FIR/ordered-threads.f90 b/flang/test/Lower/OpenMP/FIR/ordered-threads.f90 index 3b896d24ea6d2..2e6afe2125b1a 100644 --- a/flang/test/Lower/OpenMP/FIR/ordered-threads.f90 +++ b/flang/test/Lower/OpenMP/FIR/ordered-threads.f90 @@ -2,9 +2,9 @@ ! Without clause in ordered direcitve, it behaves as if threads clause is ! specified. -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s --check-prefix=FIRDialect -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefix=LLVMIRDialect -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | tco | FileCheck %s --check-prefix=LLVMIR +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s --check-prefix=FIRDialect +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefix=LLVMIRDialect +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | tco | FileCheck %s --check-prefix=LLVMIR subroutine ordered integer :: i diff --git a/flang/test/Lower/OpenMP/FIR/parallel-firstprivate-clause-scalar.f90 b/flang/test/Lower/OpenMP/FIR/parallel-firstprivate-clause-scalar.f90 index bd5ed5ed0fc84..37f916ecb84c9 100644 --- a/flang/test/Lower/OpenMP/FIR/parallel-firstprivate-clause-scalar.f90 +++ b/flang/test/Lower/OpenMP/FIR/parallel-firstprivate-clause-scalar.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of `FIRSTPRIVATE` clause for scalar types. ! REQUIRES: shell -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s --check-prefix=FIRDialect +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefix=FIRDialect !FIRDialect-DAG: func @_QPfirstprivate_complex(%[[ARG1:.*]]: !fir.ref>{{.*}}, %[[ARG2:.*]]: !fir.ref>{{.*}}) { !FIRDialect: omp.parallel { diff --git a/flang/test/Lower/OpenMP/FIR/parallel-lastprivate-clause-scalar.f90 b/flang/test/Lower/OpenMP/FIR/parallel-lastprivate-clause-scalar.f90 index 6a68bbff5ba4d..148a7ee31f08d 100644 --- a/flang/test/Lower/OpenMP/FIR/parallel-lastprivate-clause-scalar.f90 +++ b/flang/test/Lower/OpenMP/FIR/parallel-lastprivate-clause-scalar.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of `LASTPRIVATE` clause for scalar types. -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s -! RUN: flang-new -fc1 -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -fopenmp -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s !CHECK: func @_QPlastprivate_character(%[[ARG1:.*]]: !fir.boxchar<1>{{.*}}) { !CHECK-DAG: %[[ARG1_UNBOX:.*]]:2 = fir.unboxchar diff --git a/flang/test/Lower/OpenMP/FIR/parallel-private-clause-fixes.f90 b/flang/test/Lower/OpenMP/FIR/parallel-private-clause-fixes.f90 index beb94bfc91a15..c99bf761333b8 100644 --- a/flang/test/Lower/OpenMP/FIR/parallel-private-clause-fixes.f90 +++ b/flang/test/Lower/OpenMP/FIR/parallel-private-clause-fixes.f90 @@ -1,6 +1,6 @@ ! This test checks a few bug fixes in the PRIVATE clause lowering -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: multiple_private_fix ! CHECK: %[[VAL_0:.*]] = fir.alloca i32 {bindc_name = "i", uniq_name = "_QFmultiple_private_fixEi"} diff --git a/flang/test/Lower/OpenMP/FIR/parallel-private-clause.f90 b/flang/test/Lower/OpenMP/FIR/parallel-private-clause.f90 index 8d288f6483493..8f5d280943cc2 100644 --- a/flang/test/Lower/OpenMP/FIR/parallel-private-clause.f90 +++ b/flang/test/Lower/OpenMP/FIR/parallel-private-clause.f90 @@ -2,7 +2,7 @@ ! `PRIVATE` clause present. ! REQUIRES: shell -! RUN: bbc --use-desc-for-alloc=false -fopenmp -emit-fir %s -o - | \ +! RUN: bbc --use-desc-for-alloc=false -fopenmp -emit-fir -hlfir=false %s -o - | \ ! RUN: FileCheck %s --check-prefix=FIRDialect !FIRDialect: func @_QPprivate_clause(%[[ARG1:.*]]: !fir.ref{{.*}}, %[[ARG2:.*]]: !fir.ref>{{.*}}, %[[ARG3:.*]]: !fir.boxchar<1>{{.*}}, %[[ARG4:.*]]: !fir.boxchar<1>{{.*}}) { diff --git a/flang/test/Lower/OpenMP/FIR/parallel-reduction-add.f90 b/flang/test/Lower/OpenMP/FIR/parallel-reduction-add.f90 index cab076f817cad..6580aeb13ccd1 100644 --- a/flang/test/Lower/OpenMP/FIR/parallel-reduction-add.f90 +++ b/flang/test/Lower/OpenMP/FIR/parallel-reduction-add.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp -o - %s 2>&1 | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s !CHECK-LABEL: omp.reduction.declare !CHECK-SAME: @[[RED_F32_NAME:.*]] : f32 init { diff --git a/flang/test/Lower/OpenMP/FIR/parallel-sections.f90 b/flang/test/Lower/OpenMP/FIR/parallel-sections.f90 index eb9daae29236c..33fda178323f2 100644 --- a/flang/test/Lower/OpenMP/FIR/parallel-sections.f90 +++ b/flang/test/Lower/OpenMP/FIR/parallel-sections.f90 @@ -1,5 +1,5 @@ -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s --check-prefixes="FIRDialect,OMPDialect" -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | fir-opt --cfg-conversion | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefixes="OMPDialect,LLVMDialect" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s --check-prefixes="FIRDialect,OMPDialect" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | fir-opt --cfg-conversion | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefixes="OMPDialect,LLVMDialect" !=============================================================================== ! Parallel sections construct diff --git a/flang/test/Lower/OpenMP/FIR/parallel-wsloop-firstpriv.f90 b/flang/test/Lower/OpenMP/FIR/parallel-wsloop-firstpriv.f90 index ac63c45677ffe..6eb39a2f63725 100644 --- a/flang/test/Lower/OpenMP/FIR/parallel-wsloop-firstpriv.f90 +++ b/flang/test/Lower/OpenMP/FIR/parallel-wsloop-firstpriv.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenMP parallel DO, with the loop bound being ! a firstprivate variable -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK: func @_QPomp_do_firstprivate(%[[ARG0:.*]]: !fir.ref {fir.bindc_name = "a"}) subroutine omp_do_firstprivate(a) diff --git a/flang/test/Lower/OpenMP/FIR/parallel-wsloop.f90 b/flang/test/Lower/OpenMP/FIR/parallel-wsloop.f90 index c302b91be8e67..8649cf284ffd9 100644 --- a/flang/test/Lower/OpenMP/FIR/parallel-wsloop.f90 +++ b/flang/test/Lower/OpenMP/FIR/parallel-wsloop.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenMP DO Directive (Worksharing). -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPsimple_parallel_do() subroutine simple_parallel_do diff --git a/flang/test/Lower/OpenMP/FIR/parallel.f90 b/flang/test/Lower/OpenMP/FIR/parallel.f90 index 821d2b4ecfc9f..b68551df23416 100644 --- a/flang/test/Lower/OpenMP/FIR/parallel.f90 +++ b/flang/test/Lower/OpenMP/FIR/parallel.f90 @@ -1,5 +1,5 @@ -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s --check-prefixes="FIRDialect,OMPDialect" -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefixes="LLVMDialect,OMPDialect" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s --check-prefixes="FIRDialect,OMPDialect" +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | fir-opt --fir-to-llvm-ir | FileCheck %s --check-prefixes="LLVMDialect,OMPDialect" !FIRDialect-LABEL: func @_QPparallel_simple subroutine parallel_simple() diff --git a/flang/test/Lower/OpenMP/FIR/private-commonblock.f90 b/flang/test/Lower/OpenMP/FIR/private-commonblock.f90 index 6e98b917cf87f..90036e0c0c7e2 100644 --- a/flang/test/Lower/OpenMP/FIR/private-commonblock.f90 +++ b/flang/test/Lower/OpenMP/FIR/private-commonblock.f90 @@ -1,4 +1,4 @@ -! RUN: %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s !CHECK: func.func @_QPprivate_common() { !CHECK: omp.parallel { diff --git a/flang/test/Lower/OpenMP/FIR/sections.f90 b/flang/test/Lower/OpenMP/FIR/sections.f90 index fc7029e2c9d72..87d34e58321be 100644 --- a/flang/test/Lower/OpenMP/FIR/sections.f90 +++ b/flang/test/Lower/OpenMP/FIR/sections.f90 @@ -1,6 +1,6 @@ ! This test checks the lowering of OpenMP sections construct with several clauses present -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK: func @_QQmain() attributes {fir.bindc_name = "sample"} { !CHECK: %[[COUNT:.*]] = fir.address_of(@_QFEcount) : !fir.ref diff --git a/flang/test/Lower/OpenMP/FIR/simd.f90 b/flang/test/Lower/OpenMP/FIR/simd.f90 index 47596cccdbc12..c8c2022d693d4 100644 --- a/flang/test/Lower/OpenMP/FIR/simd.f90 +++ b/flang/test/Lower/OpenMP/FIR/simd.f90 @@ -1,6 +1,6 @@ ! Tests for 2.9.3.1 Simd -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s !CHECK-LABEL: func @_QPsimdloop() subroutine simdloop diff --git a/flang/test/Lower/OpenMP/FIR/single.f90 b/flang/test/Lower/OpenMP/FIR/single.f90 index 22d9bb1d5d70e..266f6d94c60db 100644 --- a/flang/test/Lower/OpenMP/FIR/single.f90 +++ b/flang/test/Lower/OpenMP/FIR/single.f90 @@ -1,5 +1,5 @@ -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s -!RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s +!RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s !=============================================================================== ! Single construct diff --git a/flang/test/Lower/OpenMP/FIR/stop-stmt-in-region.f90 b/flang/test/Lower/OpenMP/FIR/stop-stmt-in-region.f90 index 2f73fb31966ec..d6c10bdee88d5 100644 --- a/flang/test/Lower/OpenMP/FIR/stop-stmt-in-region.f90 +++ b/flang/test/Lower/OpenMP/FIR/stop-stmt-in-region.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of stop statement in OpenMP region. -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPtest_stop_in_region1() { ! CHECK: omp.parallel { diff --git a/flang/test/Lower/OpenMP/FIR/target.f90 b/flang/test/Lower/OpenMP/FIR/target.f90 index d5a8fb242de92..cf3b6fff0cb74 100644 --- a/flang/test/Lower/OpenMP/FIR/target.f90 +++ b/flang/test/Lower/OpenMP/FIR/target.f90 @@ -1,4 +1,4 @@ -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !=============================================================================== ! Target_Enter Simple diff --git a/flang/test/Lower/OpenMP/FIR/task.f90 b/flang/test/Lower/OpenMP/FIR/task.f90 index 99a9e3a6b1e35..4e7e54588c796 100644 --- a/flang/test/Lower/OpenMP/FIR/task.f90 +++ b/flang/test/Lower/OpenMP/FIR/task.f90 @@ -1,4 +1,4 @@ -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK-LABEL: func @_QPomp_task_simple() { subroutine omp_task_simple diff --git a/flang/test/Lower/OpenMP/FIR/taskgroup.f90 b/flang/test/Lower/OpenMP/FIR/taskgroup.f90 index c3b7f4a73dbdd..55aba3ddb6c20 100644 --- a/flang/test/Lower/OpenMP/FIR/taskgroup.f90 +++ b/flang/test/Lower/OpenMP/FIR/taskgroup.f90 @@ -1,4 +1,4 @@ -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK-LABEL: @_QPomp_taskgroup subroutine omp_taskgroup diff --git a/flang/test/Lower/OpenMP/FIR/threadprivate-char-array-chararray.f90 b/flang/test/Lower/OpenMP/FIR/threadprivate-char-array-chararray.f90 index c9aceaa813bec..3580add37ef44 100644 --- a/flang/test/Lower/OpenMP/FIR/threadprivate-char-array-chararray.f90 +++ b/flang/test/Lower/OpenMP/FIR/threadprivate-char-array-chararray.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenMP Threadprivate Directive. ! Test for character, array, and character array. -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s module test character :: x diff --git a/flang/test/Lower/OpenMP/FIR/threadprivate-commonblock.f90 b/flang/test/Lower/OpenMP/FIR/threadprivate-commonblock.f90 index 0a1252d881605..49f592ec8121e 100644 --- a/flang/test/Lower/OpenMP/FIR/threadprivate-commonblock.f90 +++ b/flang/test/Lower/OpenMP/FIR/threadprivate-commonblock.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenMP Threadprivate Directive. ! Test for common block. -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s module test integer:: a diff --git a/flang/test/Lower/OpenMP/FIR/threadprivate-integer-different-kinds.f90 b/flang/test/Lower/OpenMP/FIR/threadprivate-integer-different-kinds.f90 index a403f181afe37..39c77406cc22c 100644 --- a/flang/test/Lower/OpenMP/FIR/threadprivate-integer-different-kinds.f90 +++ b/flang/test/Lower/OpenMP/FIR/threadprivate-integer-different-kinds.f90 @@ -2,7 +2,7 @@ ! Test for variables with different kind. !REQUIRES: shell -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s program test integer, save :: i diff --git a/flang/test/Lower/OpenMP/FIR/threadprivate-non-global.f90 b/flang/test/Lower/OpenMP/FIR/threadprivate-non-global.f90 index b008bcfe21107..b089693b2097c 100644 --- a/flang/test/Lower/OpenMP/FIR/threadprivate-non-global.f90 +++ b/flang/test/Lower/OpenMP/FIR/threadprivate-non-global.f90 @@ -2,7 +2,7 @@ ! Test for non-character non-SAVEd non-initialized scalars with or without ! allocatable or pointer attribute in main program. -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s program test integer :: x diff --git a/flang/test/Lower/OpenMP/FIR/threadprivate-pointer-allocatable.f90 b/flang/test/Lower/OpenMP/FIR/threadprivate-pointer-allocatable.f90 index 31f9e061c2de1..fd33c20f9f93d 100644 --- a/flang/test/Lower/OpenMP/FIR/threadprivate-pointer-allocatable.f90 +++ b/flang/test/Lower/OpenMP/FIR/threadprivate-pointer-allocatable.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenMP Threadprivate Directive. ! Test for allocatable and pointer variables. -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s module test integer, pointer :: x(:), m diff --git a/flang/test/Lower/OpenMP/FIR/threadprivate-real-logical-complex-derivedtype.f90 b/flang/test/Lower/OpenMP/FIR/threadprivate-real-logical-complex-derivedtype.f90 index eda6a729428b4..749fe5c8bf54d 100644 --- a/flang/test/Lower/OpenMP/FIR/threadprivate-real-logical-complex-derivedtype.f90 +++ b/flang/test/Lower/OpenMP/FIR/threadprivate-real-logical-complex-derivedtype.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenMP Threadprivate Directive. ! Test for real, logical, complex, and derived type. -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s module test type my_type diff --git a/flang/test/Lower/OpenMP/FIR/threadprivate-use-association-2.f90 b/flang/test/Lower/OpenMP/FIR/threadprivate-use-association-2.f90 index e07ec420984e3..14c0dff8da4bb 100644 --- a/flang/test/Lower/OpenMP/FIR/threadprivate-use-association-2.f90 +++ b/flang/test/Lower/OpenMP/FIR/threadprivate-use-association-2.f90 @@ -1,8 +1,8 @@ ! This test checks lowering of OpenMP Threadprivate Directive. ! Test for threadprivate variable double use in use association. -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s -!RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s +!RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s ! CHECK-LABEL: fir.global @_QMmEx : i32 module m diff --git a/flang/test/Lower/OpenMP/FIR/threadprivate-use-association.f90 b/flang/test/Lower/OpenMP/FIR/threadprivate-use-association.f90 index 71d454bb39ce1..685237430a1c4 100644 --- a/flang/test/Lower/OpenMP/FIR/threadprivate-use-association.f90 +++ b/flang/test/Lower/OpenMP/FIR/threadprivate-use-association.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenMP Threadprivate Directive. ! Test for threadprivate variable in use association. -!RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +!RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK-DAG: fir.global common @blk_(dense<0> : vector<24xi8>) : !fir.array<24xi8> !CHECK-DAG: fir.global @_QMtestEy : f32 { diff --git a/flang/test/Lower/OpenMP/FIR/unstructured.f90 b/flang/test/Lower/OpenMP/FIR/unstructured.f90 index e7d48bb269349..bfaf38b7ef1af 100644 --- a/flang/test/Lower/OpenMP/FIR/unstructured.f90 +++ b/flang/test/Lower/OpenMP/FIR/unstructured.f90 @@ -1,6 +1,6 @@ ! Test unstructured code adjacent to and inside OpenMP constructs. -! RUN: bbc %s -fopenmp -emit-fir -o "-" | FileCheck %s +! RUN: bbc %s -fopenmp -emit-fir -hlfir=false -o "-" | FileCheck %s ! CHECK-LABEL: func @_QPss1{{.*}} { ! CHECK: br ^bb1 diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-chunks.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-chunks.f90 index 99b0cf0f1298e..4030f46299d0b 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-chunks.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-chunks.f90 @@ -1,7 +1,7 @@ ! This test checks that chunk size is passed correctly when lowering of ! OpenMP DO Directive(Worksharing) with chunk size -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s program wsloop integer :: i diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-collapse.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-collapse.f90 index a122a41ba8b8f..933fc0910e338 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-collapse.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-collapse.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenMP DO Directive(Worksharing) with collapse. -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s program wsloop_collapse integer :: i, j, k diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-monotonic.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-monotonic.f90 index 9509920c6ec1b..1c381475f6cbb 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-monotonic.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-monotonic.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenMP DO Directive (Worksharing) with ! monotonic schedule modifier. -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s program wsloop_dynamic integer :: i diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-nonmonotonic.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-nonmonotonic.f90 index 5e4e66c77b343..3f425200b8fa4 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-nonmonotonic.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-nonmonotonic.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenMP DO Directive(Worksharing) with ! non-monotonic schedule modifier. -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s program wsloop_dynamic integer :: i diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-add.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-add.f90 index 69d133d50ffa0..62d9af31588e9 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-add.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-add.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK-LABEL: omp.reduction.declare !CHECK-SAME: @[[RED_F64_NAME:.*]] : f64 init { diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-iand.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-iand.f90 index c18971e14ff38..ecbcac88141f5 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-iand.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-iand.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK: omp.reduction.declare @[[IAND_DECLARE_I:.*]] : i32 init { !CHECK: %[[ZERO_VAL_I:.*]] = arith.constant -1 : i32 diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-ieor.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-ieor.f90 index 93d1539bc63a9..beb899fa287eb 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-ieor.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-ieor.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK: omp.reduction.declare @[[IEOR_DECLARE_I:.*]] : i32 init { !CHECK: %[[ZERO_VAL_I:.*]] = arith.constant 0 : i32 diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-ior.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-ior.f90 index 87e77c265fe1a..50291d228990b 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-ior.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-ior.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK: omp.reduction.declare @[[IOR_DECLARE_I:.*]] : i32 init { !CHECK: %[[ZERO_VAL_I:.*]] = arith.constant 0 : i32 diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-and.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-and.f90 index 425d37398c571..3f40a0597ae51 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-and.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-and.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK-LABEL: omp.reduction.declare !CHECK-SAME: @[[RED_NAME:.*]] : !fir.logical<4> init { diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-eqv.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-eqv.f90 index e8cf46f8261c4..16180da3ed489 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-eqv.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-eqv.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK-LABEL: omp.reduction.declare !CHECK-SAME: @[[RED_NAME:.*]] : !fir.logical<4> init { diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-neqv.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-neqv.f90 index 6e5d6c34cedc5..372f131e3d9c4 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-neqv.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-neqv.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK-LABEL: omp.reduction.declare !CHECK-SAME: @[[RED_NAME:.*]] : !fir.logical<4> init { diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-or.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-or.f90 index cdc12500e2c30..597014c099686 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-or.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-logical-or.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK-LABEL: omp.reduction.declare !CHECK-SAME: @[[RED_NAME:.*]] : !fir.logical<4> init { diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-max.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-max.f90 index a1cc9d6bd4d02..0f01b4697be86 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-max.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-max.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp -o - %s 2>&1 | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s !CHECK: omp.reduction.declare @[[MAX_DECLARE_F:.*]] : f32 init { !CHECK: %[[MINIMUM_VAL_F:.*]] = arith.constant -3.40282347E+38 : f32 diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-min.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-min.f90 index e60c64e7816af..880d94b910af9 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-min.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-min.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp -o - %s 2>&1 | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp -o - %s 2>&1 | FileCheck %s !CHECK: omp.reduction.declare @[[MIN_DECLARE_F:.*]] : f32 init { !CHECK: %[[MAXIMUM_VAL_F:.*]] = arith.constant -1.401300e-45 : f32 diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-mul.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-mul.f90 index c30cde66b5167..1c27f557fb30c 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-reduction-mul.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-reduction-mul.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -fopenmp %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s !CHECK-LABEL: omp.reduction.declare !CHECK-SAME: @[[RED_F64_NAME:.*]] : f64 init { diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-simd.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-simd.f90 index 47f9d572a8653..2e3f8ca3c207d 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-simd.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-simd.f90 @@ -1,7 +1,7 @@ ! This test checks lowering of OpenMP DO Directive(Worksharing) with ! simd schedule modifier. -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s program wsloop_dynamic integer :: i diff --git a/flang/test/Lower/OpenMP/FIR/wsloop-variable.f90 b/flang/test/Lower/OpenMP/FIR/wsloop-variable.f90 index 466055868f1cc..4f34f30f3e7c9 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop-variable.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop-variable.f90 @@ -2,7 +2,7 @@ ! types of loop iteration variable, lower bound, upper bound, and step. !REQUIRES: shell -!RUN: bbc -fopenmp -emit-fir %s -o - 2>&1 | FileCheck %s +!RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - 2>&1 | FileCheck %s !CHECK: OpenMP loop iteration variable cannot have more than 64 bits size and will be narrowed into 64 bits. diff --git a/flang/test/Lower/OpenMP/FIR/wsloop.f90 b/flang/test/Lower/OpenMP/FIR/wsloop.f90 index 2c00d1a9fddae..abc0489b08ff5 100644 --- a/flang/test/Lower/OpenMP/FIR/wsloop.f90 +++ b/flang/test/Lower/OpenMP/FIR/wsloop.f90 @@ -1,6 +1,6 @@ ! This test checks lowering of OpenMP DO Directive (Worksharing). -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s !CHECK-LABEL: func @_QPsimple_loop() subroutine simple_loop diff --git a/flang/test/Lower/OpenMP/Todo/omp-default-clause-inner-loop.f90 b/flang/test/Lower/OpenMP/Todo/omp-default-clause-inner-loop.f90 index fd56038231b19..5c624d31b5f36 100644 --- a/flang/test/Lower/OpenMP/Todo/omp-default-clause-inner-loop.f90 +++ b/flang/test/Lower/OpenMP/Todo/omp-default-clause-inner-loop.f90 @@ -1,7 +1,7 @@ ! This test checks the lowering of parallel do -! RUN: %flang_fc1 -emit-fir -fopenmp %s -o - | FileCheck %s -! RUN: bbc -fopenmp -emit-fir %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -fopenmp %s -o - | FileCheck %s +! RUN: bbc -fopenmp -emit-fir -hlfir=false %s -o - | FileCheck %s ! The string "EXPECTED" denotes the expected FIR diff --git a/flang/test/Lower/allocatable-assignment.f90 b/flang/test/Lower/allocatable-assignment.f90 index eb240fbebb00d..5c9887c507b67 100644 --- a/flang/test/Lower/allocatable-assignment.f90 +++ b/flang/test/Lower/allocatable-assignment.f90 @@ -1,5 +1,5 @@ ! Test allocatable assignments -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s module alloc_assign type t diff --git a/flang/test/Lower/allocatable-callee.f90 b/flang/test/Lower/allocatable-callee.f90 index 37c57926db048..23da3263748ad 100644 --- a/flang/test/Lower/allocatable-callee.f90 +++ b/flang/test/Lower/allocatable-callee.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test allocatable dummy argument on callee side diff --git a/flang/test/Lower/allocatable-caller.f90 b/flang/test/Lower/allocatable-caller.f90 index 2465470257826..0ea4cf342087e 100644 --- a/flang/test/Lower/allocatable-caller.f90 +++ b/flang/test/Lower/allocatable-caller.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test passing allocatables on caller side diff --git a/flang/test/Lower/allocatable-polymorphic.f90 b/flang/test/Lower/allocatable-polymorphic.f90 index 07ff925f2bbb1..75db99dee094d 100644 --- a/flang/test/Lower/allocatable-polymorphic.f90 +++ b/flang/test/Lower/allocatable-polymorphic.f90 @@ -1,5 +1,5 @@ -! RUN: bbc --use-desc-for-alloc=false -polymorphic-type -emit-fir %s -o - | FileCheck %s -! RUN: bbc --use-desc-for-alloc=false -polymorphic-type -emit-fir %s -o - | tco | FileCheck %s --check-prefix=LLVM +! RUN: bbc --use-desc-for-alloc=false -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -polymorphic-type -emit-fir -hlfir=false %s -o - | tco | FileCheck %s --check-prefix=LLVM module poly type p1 diff --git a/flang/test/Lower/allocatable-return.f90 b/flang/test/Lower/allocatable-return.f90 index c9c0ef37a78d5..92c5f8ad78d7c 100644 --- a/flang/test/Lower/allocatable-return.f90 +++ b/flang/test/Lower/allocatable-return.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir --polymorphic-type -I nowhere %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false --polymorphic-type -I nowhere %s -o - | FileCheck %s ! Test allocatable return. ! Allocatable arrays must have default runtime lbounds after the return. diff --git a/flang/test/Lower/allocatable-runtime.f90 b/flang/test/Lower/allocatable-runtime.f90 index 74c75218e00b0..3f1f8a86b7d07 100644 --- a/flang/test/Lower/allocatable-runtime.f90 +++ b/flang/test/Lower/allocatable-runtime.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -use-alloc-runtime %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -use-alloc-runtime %s -o - | FileCheck %s ! Test lowering of allocatables using runtime for allocate/deallcoate statements. ! CHECK-LABEL: _QPfoo diff --git a/flang/test/Lower/allocatables.f90 b/flang/test/Lower/allocatables.f90 index 24d3647210afc..e62f92fa0c1c7 100644 --- a/flang/test/Lower/allocatables.f90 +++ b/flang/test/Lower/allocatables.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test lowering of allocatables using runtime for allocate/deallcoate statements. ! CHECK-LABEL: _QPfooscalar diff --git a/flang/test/Lower/allocate-mold.f90 b/flang/test/Lower/allocate-mold.f90 index 6c67717336ee2..0cc10fc9016de 100644 --- a/flang/test/Lower/allocate-mold.f90 +++ b/flang/test/Lower/allocate-mold.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test lowering of ALLOCATE statement with a MOLD argument for scalars diff --git a/flang/test/Lower/allocate-source-allocatables.f90 b/flang/test/Lower/allocate-source-allocatables.f90 index 1d67eea49626a..f09612c3197da 100644 --- a/flang/test/Lower/allocate-source-allocatables.f90 +++ b/flang/test/Lower/allocate-source-allocatables.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test lowering of allocatables for allocate statements with source. diff --git a/flang/test/Lower/allocate-source-pointers.f90 b/flang/test/Lower/allocate-source-pointers.f90 index 126d0fafeae27..1beb420c53191 100644 --- a/flang/test/Lower/allocate-source-pointers.f90 +++ b/flang/test/Lower/allocate-source-pointers.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test lowering of pointers for allocate statements with source. diff --git a/flang/test/Lower/allocated.f90 b/flang/test/Lower/allocated.f90 index 35c87e2a03921..6e8420fc7d79a 100644 --- a/flang/test/Lower/allocated.f90 +++ b/flang/test/Lower/allocated.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: allocated_test ! CHECK-SAME: %[[arg0:.*]]: !fir.ref>>{{.*}}, %[[arg1:.*]]: !fir.ref>>>{{.*}}) diff --git a/flang/test/Lower/always-execute-loop-body.f90 b/flang/test/Lower/always-execute-loop-body.f90 index 7c4ef1af33929..30b70fb8b145e 100644 --- a/flang/test/Lower/always-execute-loop-body.f90 +++ b/flang/test/Lower/always-execute-loop-body.f90 @@ -1,5 +1,5 @@ -! RUN: bbc --always-execute-loop-body --emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -mmlir --always-execute-loop-body -emit-fir %s -o - | FileCheck %s +! RUN: bbc --always-execute-loop-body --emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -mmlir --always-execute-loop-body -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! Given the flag `--always-execute-loop-body` the compiler emits an extra ! code to change to tripcount, test tries to verify the extra emitted FIR. diff --git a/flang/test/Lower/arithmetic-goto.f90 b/flang/test/Lower/arithmetic-goto.f90 index eaf3d0c14c7ac..73f82c309d2da 100644 --- a/flang/test/Lower/arithmetic-goto.f90 +++ b/flang/test/Lower/arithmetic-goto.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QPkagi function kagi(index) diff --git a/flang/test/Lower/array-character.f90 b/flang/test/Lower/array-character.f90 index a5fba7a5e85af..ee01589f802ec 100644 --- a/flang/test/Lower/array-character.f90 +++ b/flang/test/Lower/array-character.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | fir-opt --canonicalize --cse | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | fir-opt --canonicalize --cse | FileCheck %s ! CHECK-LABEL: func @_QPissue( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.boxchar<1>{{.*}}, %[[VAL_1:.*]]: !fir.boxchar<1>{{.*}}) { diff --git a/flang/test/Lower/array-constructor-1.f90 b/flang/test/Lower/array-constructor-1.f90 index 4c11e94aae587..9dc7f7fb31541 100644 --- a/flang/test/Lower/array-constructor-1.f90 +++ b/flang/test/Lower/array-constructor-1.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -o - %s | FileCheck %s +! RUN: bbc -hlfir=false -o - %s | FileCheck %s module units integer, parameter :: preconnected_unit(3) = [0, 5, 6] diff --git a/flang/test/Lower/array-constructor-2.f90 b/flang/test/Lower/array-constructor-2.f90 index 10f4590205216..ae75a3b425202 100644 --- a/flang/test/Lower/array-constructor-2.f90 +++ b/flang/test/Lower/array-constructor-2.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false %s -o - | FileCheck %s +! RUN: bbc -hlfir=false --use-desc-for-alloc=false %s -o - | FileCheck %s ! Constant array ctor. ! CHECK-LABEL: func @_QPtest1( diff --git a/flang/test/Lower/array-constructor-index.f90 b/flang/test/Lower/array-constructor-index.f90 index 8332fc5f72091..a8d330aea63dc 100644 --- a/flang/test/Lower/array-constructor-index.f90 +++ b/flang/test/Lower/array-constructor-index.f90 @@ -1,5 +1,5 @@ ! Check that the implied-do index value is converted to proper type. -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s function test1(k) integer*1 :: k diff --git a/flang/test/Lower/array-copy.f90 b/flang/test/Lower/array-copy.f90 index 43cb508174b63..1339367b9f7d1 100644 --- a/flang/test/Lower/array-copy.f90 +++ b/flang/test/Lower/array-copy.f90 @@ -1,6 +1,6 @@ ! Test array-value-copy -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! Copy not needed ! CHECK-LABEL: func @_QPtest1( diff --git a/flang/test/Lower/array-derived-assignments.f90 b/flang/test/Lower/array-derived-assignments.f90 index 8c38131f1d14c..71e61f651302a 100644 --- a/flang/test/Lower/array-derived-assignments.f90 +++ b/flang/test/Lower/array-derived-assignments.f90 @@ -1,5 +1,5 @@ ! Test derived type assignment lowering inside array expression -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s module array_derived_assign type simple_copy diff --git a/flang/test/Lower/array-derived.f90 b/flang/test/Lower/array-derived.f90 index 1ad8a53ef92b8..b5eb7621c90f1 100644 --- a/flang/test/Lower/array-derived.f90 +++ b/flang/test/Lower/array-derived.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s module cs type r diff --git a/flang/test/Lower/array-elemental-calls-2.f90 b/flang/test/Lower/array-elemental-calls-2.f90 index 0d6e34c6391c3..1d2c18f8bc7ba 100644 --- a/flang/test/Lower/array-elemental-calls-2.f90 +++ b/flang/test/Lower/array-elemental-calls-2.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -o - -emit-fir %s | FileCheck %s +! RUN: bbc -o - -emit-fir -hlfir=false %s | FileCheck %s ! Test lowering of operations sub-expression inside elemental call arguments. ! This tests array contexts where an address is needed for each element (for diff --git a/flang/test/Lower/array-elemental-calls-3.f90 b/flang/test/Lower/array-elemental-calls-3.f90 index 31ada80268294..cba478df814ce 100644 --- a/flang/test/Lower/array-elemental-calls-3.f90 +++ b/flang/test/Lower/array-elemental-calls-3.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -o - -emit-fir %s | FileCheck %s +! RUN: bbc -o - -emit-fir -hlfir=false %s | FileCheck %s ! Test lowering of elemental calls with array arguments that use array ! elements as indices. diff --git a/flang/test/Lower/array-elemental-calls-char-byval.f90 b/flang/test/Lower/array-elemental-calls-char-byval.f90 index de6457316d534..c321614e7fc5b 100644 --- a/flang/test/Lower/array-elemental-calls-char-byval.f90 +++ b/flang/test/Lower/array-elemental-calls-char-byval.f90 @@ -1,6 +1,6 @@ ! Test lowering of elemental calls with character argument ! with the VALUE attribute. -! RUN: bbc -o - %s | FileCheck %s +! RUN: bbc -hlfir=false -o - %s | FileCheck %s module char_elem_byval diff --git a/flang/test/Lower/array-elemental-calls-char.f90 b/flang/test/Lower/array-elemental-calls-char.f90 index d2a62899b377b..e2507f0a5e604 100644 --- a/flang/test/Lower/array-elemental-calls-char.f90 +++ b/flang/test/Lower/array-elemental-calls-char.f90 @@ -1,6 +1,6 @@ ! Test lowering of elemental calls with character argument ! without the VALUE attribute. -! RUN: bbc -o - %s | FileCheck %s +! RUN: bbc -hlfir=false -o - %s | FileCheck %s module char_elem diff --git a/flang/test/Lower/array-elemental-calls.f90 b/flang/test/Lower/array-elemental-calls.f90 index dfbee67252818..853807bcb3e6c 100644 --- a/flang/test/Lower/array-elemental-calls.f90 +++ b/flang/test/Lower/array-elemental-calls.f90 @@ -1,5 +1,5 @@ ! Test lowering of elemental calls in array expressions. -! RUN: bbc -o - -emit-fir %s | FileCheck %s +! RUN: bbc -o - -emit-fir -hlfir=false %s | FileCheck %s module scalar_in_elem diff --git a/flang/test/Lower/array-elemental-subroutines.f90 b/flang/test/Lower/array-elemental-subroutines.f90 index 6b99c5e4c1abe..84be5cb792f01 100644 --- a/flang/test/Lower/array-elemental-subroutines.f90 +++ b/flang/test/Lower/array-elemental-subroutines.f90 @@ -1,5 +1,5 @@ ! Test lowering of elemental subroutine calls with array arguments -! RUN: bbc -o - -emit-fir %s | FileCheck %s +! RUN: bbc -o - -emit-fir -hlfir=false %s | FileCheck %s ! CHECK-LABEL: func @_QPtest_elem_sub( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.box>{{.*}}, %[[VAL_1:.*]]: !fir.box>>{{.*}}, %[[VAL_2:.*]]: !fir.ref{{.*}}, %[[VAL_3:.*]]: !fir.ref>{{.*}}) { diff --git a/flang/test/Lower/array-expression-assumed-size.f90 b/flang/test/Lower/array-expression-assumed-size.f90 index 41785e7eb091f..b5fd09103aa0b 100644 --- a/flang/test/Lower/array-expression-assumed-size.f90 +++ b/flang/test/Lower/array-expression-assumed-size.f90 @@ -1,5 +1,5 @@ -! RUN: bbc --emit-fir %s -o - | FileCheck %s -! RUN: bbc %s -o - | FileCheck --check-prefix=PostOpt %s +! RUN: bbc --emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck --check-prefix=PostOpt %s subroutine assumed_size_test(a) diff --git a/flang/test/Lower/array-expression-slice-1.f90 b/flang/test/Lower/array-expression-slice-1.f90 index 62c361e5391db..d7865a395db1c 100644 --- a/flang/test/Lower/array-expression-slice-1.f90 +++ b/flang/test/Lower/array-expression-slice-1.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -o - --outline-intrinsics %s | FileCheck %s +! RUN: bbc -hlfir=false -o - --outline-intrinsics %s | FileCheck %s ! CHECK-LABEL: func @_QQmain() attributes {fir.bindc_name = "p"} { ! CHECK-DAG: %[[VAL_0:.*]] = arith.constant 10 : index diff --git a/flang/test/Lower/array-expression-slice-2.f90 b/flang/test/Lower/array-expression-slice-2.f90 index 91bb10de6c72e..61499ec3027f8 100644 --- a/flang/test/Lower/array-expression-slice-2.f90 +++ b/flang/test/Lower/array-expression-slice-2.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPi subroutine i diff --git a/flang/test/Lower/array-expression-subscript.f90 b/flang/test/Lower/array-expression-subscript.f90 index 8e8bd54ca54b6..60180b5e305df 100644 --- a/flang/test/Lower/array-expression-subscript.f90 +++ b/flang/test/Lower/array-expression-subscript.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --emit-fir %s -o - | FileCheck %s +! RUN: bbc --emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtest1a( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref>{{.*}}, %[[VAL_1:.*]]: !fir.ref>{{.*}}, %[[VAL_2:.*]]: !fir.ref>{{.*}}) { diff --git a/flang/test/Lower/array-expression.f90 b/flang/test/Lower/array-expression.f90 index a34313fb0bd2e..f73cd6e5f4f17 100644 --- a/flang/test/Lower/array-expression.f90 +++ b/flang/test/Lower/array-expression.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtest1 subroutine test1(a,b,c,n) diff --git a/flang/test/Lower/array-substring.f90 b/flang/test/Lower/array-substring.f90 index 59d4b57724bde..421c4b28ac8f8 100644 --- a/flang/test/Lower/array-substring.f90 +++ b/flang/test/Lower/array-substring.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtest( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.boxchar<1>{{.*}}) -> !fir.array<1x!fir.logical<4>> { diff --git a/flang/test/Lower/array-temp.f90 b/flang/test/Lower/array-temp.f90 index 396ebfad36b0c..f8c2ec3e03c54 100644 --- a/flang/test/Lower/array-temp.f90 +++ b/flang/test/Lower/array-temp.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPss1() subroutine ss1 diff --git a/flang/test/Lower/array-user-def-assignments.f90 b/flang/test/Lower/array-user-def-assignments.f90 index 3a74ea48d18d3..ae380077df29c 100644 --- a/flang/test/Lower/array-user-def-assignments.f90 +++ b/flang/test/Lower/array-user-def-assignments.f90 @@ -1,5 +1,5 @@ ! Test lower of elemental user defined assignments -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module defined_assignments type t diff --git a/flang/test/Lower/array-wide-char.f90 b/flang/test/Lower/array-wide-char.f90 index db48ada8e5c05..8bad280d0f056 100644 --- a/flang/test/Lower/array-wide-char.f90 +++ b/flang/test/Lower/array-wide-char.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | tco | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | tco | FileCheck %s character(LEN=128, KIND=4), PARAMETER :: conarr(3) = & [ character(128,4) :: "now is the time", "for all good men to come", & diff --git a/flang/test/Lower/array.f90 b/flang/test/Lower/array.f90 index 3371887d04127..a2ab3d1384955 100644 --- a/flang/test/Lower/array.f90 +++ b/flang/test/Lower/array.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -o - %s | FileCheck %s +! RUN: bbc -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: fir.global @block_ ! CHECK-DAG: %[[VAL_1:.*]] = arith.constant 1.000000e+00 : f32 diff --git a/flang/test/Lower/assignment.f90 b/flang/test/Lower/assignment.f90 index 058842828d268..5eb55f864add7 100644 --- a/flang/test/Lower/assignment.f90 +++ b/flang/test/Lower/assignment.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o "-" -emit-fir | FileCheck %s +! RUN: bbc %s -o "-" -emit-fir -hlfir=false | FileCheck %s subroutine sub1(a) integer :: a diff --git a/flang/test/Lower/associate-construct-2.f90 b/flang/test/Lower/associate-construct-2.f90 index 1d0adb86e7690..80864858ed288 100644 --- a/flang/test/Lower/associate-construct-2.f90 +++ b/flang/test/Lower/associate-construct-2.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtest1( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref>{{.*}}, %[[VAL_1:.*]]: !fir.ref{{.*}}, %[[VAL_2:.*]]: !fir.ref{{.*}}, %[[VAL_3:.*]]: !fir.ref{{.*}}) { diff --git a/flang/test/Lower/associate-construct.f90 b/flang/test/Lower/associate-construct.f90 index 8aa5e50c611d9..cca9378431990 100644 --- a/flang/test/Lower/associate-construct.f90 +++ b/flang/test/Lower/associate-construct.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QQmain program p diff --git a/flang/test/Lower/assumed-shape-callee.f90 b/flang/test/Lower/assumed-shape-callee.f90 index e050a261701dc..a40ee109d51f3 100644 --- a/flang/test/Lower/assumed-shape-callee.f90 +++ b/flang/test/Lower/assumed-shape-callee.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test assumed shape dummy argument on callee side diff --git a/flang/test/Lower/assumed-shape-caller.f90 b/flang/test/Lower/assumed-shape-caller.f90 index 5c28c2d0cb4d0..5277dc76aa54b 100644 --- a/flang/test/Lower/assumed-shape-caller.f90 +++ b/flang/test/Lower/assumed-shape-caller.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test passing arrays to assumed shape dummy arguments diff --git a/flang/test/Lower/assumed-type.f90 b/flang/test/Lower/assumed-type.f90 index f9bf991ffa38a..99472a255adb7 100644 --- a/flang/test/Lower/assumed-type.f90 +++ b/flang/test/Lower/assumed-type.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -polymorphic-type -emit-fir %s -o - | FileCheck %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s module assumed_type_test diff --git a/flang/test/Lower/basic-call.f90 b/flang/test/Lower/basic-call.f90 index 3f146a8e29bff..c1a9de3f72821 100644 --- a/flang/test/Lower/basic-call.f90 +++ b/flang/test/Lower/basic-call.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o "-" -emit-fir | FileCheck %s +! RUN: bbc %s -o "-" -emit-fir -hlfir=false | FileCheck %s subroutine sub1() end diff --git a/flang/test/Lower/basic-function.f90 b/flang/test/Lower/basic-function.f90 index 2ff3ef2a0bd2c..ed661ca8378aa 100644 --- a/flang/test/Lower/basic-function.f90 +++ b/flang/test/Lower/basic-function.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o "-" -emit-fir | FileCheck %s +! RUN: bbc %s -o "-" -emit-fir -hlfir=false | FileCheck %s integer(1) function fct1() end diff --git a/flang/test/Lower/block.f90 b/flang/test/Lower/block.f90 index ed2603cec0f15..217ca469f7208 100644 --- a/flang/test/Lower/block.f90 +++ b/flang/test/Lower/block.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QQmain program bb ! block stack management and exits diff --git a/flang/test/Lower/c-interoperability-c-pointer.f90 b/flang/test/Lower/c-interoperability-c-pointer.f90 index 95c76c0264316..780e3d7dbcb68 100644 --- a/flang/test/Lower/c-interoperability-c-pointer.f90 +++ b/flang/test/Lower/c-interoperability-c-pointer.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPtest( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref> {fir.bindc_name = "ptr1"}, diff --git a/flang/test/Lower/c-interoperability.f90 b/flang/test/Lower/c-interoperability.f90 index 39db2d2bd69ee..cbd6c1f53f6f1 100644 --- a/flang/test/Lower/c-interoperability.f90 +++ b/flang/test/Lower/c-interoperability.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: fir.global @_QMc_interoperability_testEthis_thing : !fir.type<_QMc_interoperability_testTthing_with_pointer{cptr:!fir.type<_QM__fortran_builtinsT__builtin_c_ptr{__address:i64}>}> { ! CHECK: %[[VAL_0:.*]] = arith.constant 0 : i64 diff --git a/flang/test/Lower/c_ptr-constant-init.f90 b/flang/test/Lower/c_ptr-constant-init.f90 index 574816f9b2ab3..da56670438aa3 100644 --- a/flang/test/Lower/c_ptr-constant-init.f90 +++ b/flang/test/Lower/c_ptr-constant-init.f90 @@ -1,5 +1,5 @@ ! Test creation of outlined literal array with c_ptr/c_funptr elements. -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s subroutine test use, intrinsic :: iso_c_binding diff --git a/flang/test/Lower/call-by-value-attr.f90 b/flang/test/Lower/call-by-value-attr.f90 index dddc8e766fd28..09fc32fbf71ae 100644 --- a/flang/test/Lower/call-by-value-attr.f90 +++ b/flang/test/Lower/call-by-value-attr.f90 @@ -1,5 +1,5 @@ ! Test for PassBy::BaseAddressValueAttribute -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s program call_by_value_attr interface subroutine subri(val) diff --git a/flang/test/Lower/call-by-value.f90 b/flang/test/Lower/call-by-value.f90 index b7fc8fbac496a..e489ea432305f 100644 --- a/flang/test/Lower/call-by-value.f90 +++ b/flang/test/Lower/call-by-value.f90 @@ -1,5 +1,5 @@ ! Test for PassBy::Value -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s !CHECK-LABEL: func @_QQmain() !CHECK: %[[LOGICAL:.*]] = fir.alloca !fir.logical<1> diff --git a/flang/test/Lower/call-copy-in-out.f90 b/flang/test/Lower/call-copy-in-out.f90 index bcc2f81cf6bee..304eb083e2704 100644 --- a/flang/test/Lower/call-copy-in-out.f90 +++ b/flang/test/Lower/call-copy-in-out.f90 @@ -1,5 +1,5 @@ ! Test copy-in / copy-out of non-contiguous variable passed as F77 array arguments. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Nominal test ! CHECK-LABEL: func @_QPtest_assumed_shape_to_array( diff --git a/flang/test/Lower/call-implicit.f90 b/flang/test/Lower/call-implicit.f90 index 41130989732d5..0a677ce512a78 100644 --- a/flang/test/Lower/call-implicit.f90 +++ b/flang/test/Lower/call-implicit.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o "-" -emit-fir | FileCheck %s +! RUN: bbc %s -o "-" -emit-fir -hlfir=false | FileCheck %s ! Test lowering of calls to procedures with implicit interfaces using different ! calls with different argument types, one of which is character subroutine s2 diff --git a/flang/test/Lower/call-parenthesized-arg.f90 b/flang/test/Lower/call-parenthesized-arg.f90 index 8f164fed51a39..2940ecfceb444 100644 --- a/flang/test/Lower/call-parenthesized-arg.f90 +++ b/flang/test/Lower/call-parenthesized-arg.f90 @@ -1,6 +1,6 @@ ! Test that temps are always created of parenthesized arguments in ! calls. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPfoo_num_scalar( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref{{.*}}) { diff --git a/flang/test/Lower/call-suspect.f90 b/flang/test/Lower/call-suspect.f90 index 1a2a35c25b73f..6a3bca83daa05 100644 --- a/flang/test/Lower/call-suspect.f90 +++ b/flang/test/Lower/call-suspect.f90 @@ -2,7 +2,7 @@ ! are accepted regardless to maintain backwards compatibility with ! other Fortran implementations. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPs1() { ! CHECK: %[[cast:.*]] = fir.convert %{{.*}} : (!fir.ref) -> !fir.ref> diff --git a/flang/test/Lower/call.f90 b/flang/test/Lower/call.f90 index 2c6ee34297ab6..78e9b5f4bc8a7 100644 --- a/flang/test/Lower/call.f90 +++ b/flang/test/Lower/call.f90 @@ -1,7 +1,7 @@ ! Test various aspects around call lowering. More detailed tests around core ! requirements are done in call-xxx.f90 and dummy-argument-xxx.f90 files. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtest_nested_calls subroutine test_nested_calls() diff --git a/flang/test/Lower/character-assignment.f90 b/flang/test/Lower/character-assignment.f90 index 3d4b6621a857e..1d873c0cfd02a 100644 --- a/flang/test/Lower/character-assignment.f90 +++ b/flang/test/Lower/character-assignment.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false %s -o - -emit-fir | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false %s -o - -emit-fir -hlfir=false | FileCheck %s ! Simple character assignment tests ! CHECK-LABEL: _QPassign1 diff --git a/flang/test/Lower/character-concatenation.f90 b/flang/test/Lower/character-concatenation.f90 index 87d6ecfcaccf0..ae55b93902bb0 100644 --- a/flang/test/Lower/character-concatenation.f90 +++ b/flang/test/Lower/character-concatenation.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test character scalar concatenation lowering diff --git a/flang/test/Lower/character-elemental.f90 b/flang/test/Lower/character-elemental.f90 index 67425444e2034..6c46454176f53 100644 --- a/flang/test/Lower/character-elemental.f90 +++ b/flang/test/Lower/character-elemental.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: substring_main subroutine substring_main diff --git a/flang/test/Lower/character-local-variables.f90 b/flang/test/Lower/character-local-variables.f90 index 305f951ce51f6..0cf61a2623c4e 100644 --- a/flang/test/Lower/character-local-variables.f90 +++ b/flang/test/Lower/character-local-variables.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! Test lowering of local character variables diff --git a/flang/test/Lower/character-substrings.f90 b/flang/test/Lower/character-substrings.f90 index 44b47a7d5d452..8e1a91a247d4b 100644 --- a/flang/test/Lower/character-substrings.f90 +++ b/flang/test/Lower/character-substrings.f90 @@ -1,5 +1,5 @@ ! Test character substring lowering -! RUN: bbc %s -o - -emit-fir | FileCheck %s +! RUN: bbc %s -o - -emit-fir -hlfir=false | FileCheck %s ! Test substring lower where the parent is a scalar-char-literal-constant ! CHECK-LABEL: func @_QPscalar_substring_embox( diff --git a/flang/test/Lower/complex-operations.f90 b/flang/test/Lower/complex-operations.f90 index 42cdac0dc2a21..2a353216978f0 100644 --- a/flang/test/Lower/complex-operations.f90 +++ b/flang/test/Lower/complex-operations.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: @_QPadd_test subroutine add_test(a,b,c) diff --git a/flang/test/Lower/complex-real.f90 b/flang/test/Lower/complex-real.f90 index 72bd3cf300970..a6c59ced5b717 100644 --- a/flang/test/Lower/complex-real.f90 +++ b/flang/test/Lower/complex-real.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: @_QPsb_complex_bfloat ! CHECK: %[[C_REF:.*]] = fir.alloca !fir.complex<3> {bindc_name = "c", uniq_name = "_QFsb_complex_bfloatEc"} diff --git a/flang/test/Lower/components.f90 b/flang/test/Lower/components.f90 index dd9eeddd05dcc..e1582a8a31e0d 100644 --- a/flang/test/Lower/components.f90 +++ b/flang/test/Lower/components.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s module components_test type t1 diff --git a/flang/test/Lower/computed-goto.f90 b/flang/test/Lower/computed-goto.f90 index 92c1d03f8e43b..adf76c3ae8d7a 100644 --- a/flang/test/Lower/computed-goto.f90 +++ b/flang/test/Lower/computed-goto.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QPm function m(index) diff --git a/flang/test/Lower/constant-literal-mangling.f90 b/flang/test/Lower/constant-literal-mangling.f90 index 33a658fb61cd1..d02b5fd0a76c7 100644 --- a/flang/test/Lower/constant-literal-mangling.f90 +++ b/flang/test/Lower/constant-literal-mangling.f90 @@ -1,5 +1,5 @@ ! Test the names created for globals holding constant literal values -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s type someType integer :: i diff --git a/flang/test/Lower/control-flow.f90 b/flang/test/Lower/control-flow.f90 index b9485f4315b3a..d605aaf0a9d94 100644 --- a/flang/test/Lower/control-flow.f90 +++ b/flang/test/Lower/control-flow.f90 @@ -1,6 +1,6 @@ ! Tests for control-flow -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! check the lowering of a RETURN in the body of a SUBROUTINE ! CHECK-LABEL one diff --git a/flang/test/Lower/cray-pointer.f90 b/flang/test/Lower/cray-pointer.f90 index c9f3a4ca88ac3..d13d3c542e771 100644 --- a/flang/test/Lower/cray-pointer.f90 +++ b/flang/test/Lower/cray-pointer.f90 @@ -1,5 +1,5 @@ -! RUN: bbc %s -emit-fir -o - | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc %s -emit-fir -hlfir=false -o - | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! Test Cray Pointers diff --git a/flang/test/Lower/default-initialization-globals.f90 b/flang/test/Lower/default-initialization-globals.f90 index 2b5e3c36367e2..aa923f49170c1 100644 --- a/flang/test/Lower/default-initialization-globals.f90 +++ b/flang/test/Lower/default-initialization-globals.f90 @@ -1,5 +1,5 @@ ! Test default initialization of global variables (static init) -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s module tinit real, target :: ziel(100) diff --git a/flang/test/Lower/default-initialization.f90 b/flang/test/Lower/default-initialization.f90 index 4c14fdf23512d..e692b9b08446e 100644 --- a/flang/test/Lower/default-initialization.f90 +++ b/flang/test/Lower/default-initialization.f90 @@ -1,5 +1,5 @@ ! Test default initialization of local and dummy variables (dynamic initialization) -! RUN: bbc -emit-fir -polymorphic-type %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s module test_dinit type t diff --git a/flang/test/Lower/dense-attributed-array.f90 b/flang/test/Lower/dense-attributed-array.f90 index a9c3ef3a57a42..2be7db2801701 100644 --- a/flang/test/Lower/dense-attributed-array.f90 +++ b/flang/test/Lower/dense-attributed-array.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --emit-fir %s -o - | FileCheck %s +! RUN: bbc --emit-fir -hlfir=false %s -o - | FileCheck %s ! Test generation of dense attributed global array. Also, make sure there are ! no dead ssa assignments. diff --git a/flang/test/Lower/derived-allocatable-components.f90 b/flang/test/Lower/derived-allocatable-components.f90 index ded7b85186a3f..850a372baf3c1 100644 --- a/flang/test/Lower/derived-allocatable-components.f90 +++ b/flang/test/Lower/derived-allocatable-components.f90 @@ -1,5 +1,5 @@ ! Test lowering of allocatable components -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module acomp implicit none diff --git a/flang/test/Lower/derived-assignments.f90 b/flang/test/Lower/derived-assignments.f90 index 6c03899b1f712..c3ceacd4abd69 100644 --- a/flang/test/Lower/derived-assignments.f90 +++ b/flang/test/Lower/derived-assignments.f90 @@ -1,5 +1,5 @@ ! Test lowering of derived type assignments -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Assignment of simple "struct" with trivial intrinsic members. ! CHECK-LABEL: func @_QPtest1 diff --git a/flang/test/Lower/derived-pointer-components.f90 b/flang/test/Lower/derived-pointer-components.f90 index a989a7c8a9bce..aa172058111d1 100644 --- a/flang/test/Lower/derived-pointer-components.f90 +++ b/flang/test/Lower/derived-pointer-components.f90 @@ -1,5 +1,5 @@ ! Test lowering of pointer components -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module pcomp implicit none diff --git a/flang/test/Lower/derived-type-finalization.f90 b/flang/test/Lower/derived-type-finalization.f90 index 86e2e274e9d7e..5c4531884213d 100644 --- a/flang/test/Lower/derived-type-finalization.f90 +++ b/flang/test/Lower/derived-type-finalization.f90 @@ -1,5 +1,5 @@ ! Test derived type finalization -! RUN: bbc --use-desc-for-alloc=false -polymorphic-type -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s ! Missing tests: ! - finalization within BLOCK construct diff --git a/flang/test/Lower/derived-type-temp.f90 b/flang/test/Lower/derived-type-temp.f90 index d371056421b97..18bcacf10753c 100644 --- a/flang/test/Lower/derived-type-temp.f90 +++ b/flang/test/Lower/derived-type-temp.f90 @@ -1,5 +1,5 @@ ! Test lowering of derived type temporary creation and init -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s program derived_temp_init type t1 diff --git a/flang/test/Lower/derived-types.f90 b/flang/test/Lower/derived-types.f90 index 53e83bfdd27bb..901eb8eca8c6e 100644 --- a/flang/test/Lower/derived-types.f90 +++ b/flang/test/Lower/derived-types.f90 @@ -1,5 +1,5 @@ ! Test basic parts of derived type entities lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Note: only testing non parameterized derived type here. diff --git a/flang/test/Lower/dispatch.f90 b/flang/test/Lower/dispatch.f90 index 71150ef9b3414..1658cc0d75add 100644 --- a/flang/test/Lower/dispatch.f90 +++ b/flang/test/Lower/dispatch.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -polymorphic-type -emit-fir %s -o - | FileCheck %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s ! Tests the different possible type involving polymorphic entities. diff --git a/flang/test/Lower/do_loop.f90 b/flang/test/Lower/do_loop.f90 index d6ca1fe70977d..4ace17342ade3 100644 --- a/flang/test/Lower/do_loop.f90 +++ b/flang/test/Lower/do_loop.f90 @@ -1,5 +1,5 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir -o - %s | FileCheck %s -! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir -o - %s | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false -o - %s | FileCheck %s +! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir -flang-deprecated-no-hlfir -o - %s | FileCheck %s ! Simple tests for structured ordered loops with loop-control. ! Tests the structure of the loop, storage to index variable and return and diff --git a/flang/test/Lower/do_loop_unstructured.f90 b/flang/test/Lower/do_loop_unstructured.f90 index 2b5f1c6c0061a..c6bdd4b64ce31 100644 --- a/flang/test/Lower/do_loop_unstructured.f90 +++ b/flang/test/Lower/do_loop_unstructured.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s -! RUN: %flang_fc1 -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -o - %s | FileCheck %s ! Tests for unstructured loops. diff --git a/flang/test/Lower/dummy-argument-assumed-shape-optional.f90 b/flang/test/Lower/dummy-argument-assumed-shape-optional.f90 index 6a5a830fb67a5..dfd40acf9ee10 100644 --- a/flang/test/Lower/dummy-argument-assumed-shape-optional.f90 +++ b/flang/test/Lower/dummy-argument-assumed-shape-optional.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module tests interface subroutine takes_contiguous(a) diff --git a/flang/test/Lower/dummy-argument-contiguous.f90 b/flang/test/Lower/dummy-argument-contiguous.f90 index f5dbcba7f8902..118370cef9aa4 100644 --- a/flang/test/Lower/dummy-argument-contiguous.f90 +++ b/flang/test/Lower/dummy-argument-contiguous.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: bbc -emit-fir -gen-array-coor %s -o - | FileCheck %s --check-prefix=ArrayCoorCHECK +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -gen-array-coor %s -o - | FileCheck %s --check-prefix=ArrayCoorCHECK ! Test that non-contiguous assumed-shape memory layout is handled in lowering. ! In practice, test that input fir.box is propagated to fir operations diff --git a/flang/test/Lower/dummy-argument-optional-2.f90 b/flang/test/Lower/dummy-argument-optional-2.f90 index e49b709fa9a95..1fc7a87c6f3fc 100644 --- a/flang/test/Lower/dummy-argument-optional-2.f90 +++ b/flang/test/Lower/dummy-argument-optional-2.f90 @@ -1,6 +1,6 @@ ! Test passing pointer, allocatables, and optional assumed shapes to optional ! explicit shapes (see F2018 15.5.2.12). -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module optional_tests implicit none interface diff --git a/flang/test/Lower/dummy-argument-optional.f90 b/flang/test/Lower/dummy-argument-optional.f90 index d4f1939840337..a6749b6528e81 100644 --- a/flang/test/Lower/dummy-argument-optional.f90 +++ b/flang/test/Lower/dummy-argument-optional.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: flang-new -fc1 -fdefault-integer-8 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: %flang_fc1 -fdefault-integer-8 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! Test OPTIONAL lowering on caller/callee and PRESENT intrinsic. module opt diff --git a/flang/test/Lower/dummy-arguments.f90 b/flang/test/Lower/dummy-arguments.f90 index d7033db548a84..43d8e3c1e5d44 100644 --- a/flang/test/Lower/dummy-arguments.f90 +++ b/flang/test/Lower/dummy-arguments.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: _QQmain program test1 diff --git a/flang/test/Lower/dummy-procedure-character.f90 b/flang/test/Lower/dummy-procedure-character.f90 index 363221d658eb9..cecd839287ed1 100644 --- a/flang/test/Lower/dummy-procedure-character.f90 +++ b/flang/test/Lower/dummy-procedure-character.f90 @@ -1,6 +1,6 @@ ! Test lowering of character function dummy procedure. The length must be ! passed along the function address. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! ----------------------------------------------------------------------------- ! Test passing a character function as dummy procedure diff --git a/flang/test/Lower/dummy-procedure-in-entry.f90 b/flang/test/Lower/dummy-procedure-in-entry.f90 index 3ac91fd95ea23..6ba12e1afdaa1 100644 --- a/flang/test/Lower/dummy-procedure-in-entry.f90 +++ b/flang/test/Lower/dummy-procedure-in-entry.f90 @@ -1,7 +1,7 @@ ! Test dummy procedures that are not an argument in every entry. ! This requires creating a mock value in the entries where it is ! not an argument. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine dummy_with_iface() interface diff --git a/flang/test/Lower/dummy-procedure.f90 b/flang/test/Lower/dummy-procedure.f90 index 4d6b44c079209..caa078d3205c1 100644 --- a/flang/test/Lower/dummy-procedure.f90 +++ b/flang/test/Lower/dummy-procedure.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test dummy procedures diff --git a/flang/test/Lower/entry-statement.f90 b/flang/test/Lower/entry-statement.f90 index 6154d47e9153b..0ec650f8699a5 100644 --- a/flang/test/Lower/entry-statement.f90 +++ b/flang/test/Lower/entry-statement.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QPcompare1( diff --git a/flang/test/Lower/equivalence-1.f90 b/flang/test/Lower/equivalence-1.f90 index 17b10eaa18ecb..aec5c0f54c190 100644 --- a/flang/test/Lower/equivalence-1.f90 +++ b/flang/test/Lower/equivalence-1.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -o - %s | FileCheck %s +! RUN: bbc -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QPs1 SUBROUTINE s1 diff --git a/flang/test/Lower/equivalence-2.f90 b/flang/test/Lower/equivalence-2.f90 index 36a7c10ba2e93..662be53c59fcb 100644 --- a/flang/test/Lower/equivalence-2.f90 +++ b/flang/test/Lower/equivalence-2.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! Check more advanced equivalence cases diff --git a/flang/test/Lower/equivalence-with-host-assoc.f90 b/flang/test/Lower/equivalence-with-host-assoc.f90 index e69b08106aa6d..ec84fb506314b 100644 --- a/flang/test/Lower/equivalence-with-host-assoc.f90 +++ b/flang/test/Lower/equivalence-with-host-assoc.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s --check-prefixes=FIR +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s --check-prefixes=FIR ! RUN: bbc -emit-hlfir -o - %s | FileCheck %s --check-prefixes=HLFIR subroutine test1() diff --git a/flang/test/Lower/explicit-interface-results-2.f90 b/flang/test/Lower/explicit-interface-results-2.f90 index 64af605cf23a9..4e4b035bae7e1 100644 --- a/flang/test/Lower/explicit-interface-results-2.f90 +++ b/flang/test/Lower/explicit-interface-results-2.f90 @@ -1,7 +1,7 @@ ! Test lowering of internal procedures returning arrays or characters. ! This test allocation on the caller side of the results that may depend on ! host associated symbols. -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s module some_module integer :: n_module diff --git a/flang/test/Lower/explicit-interface-results.f90 b/flang/test/Lower/explicit-interface-results.f90 index 7821c4041b969..623e875b5f9c9 100644 --- a/flang/test/Lower/explicit-interface-results.f90 +++ b/flang/test/Lower/explicit-interface-results.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module callee implicit none diff --git a/flang/test/Lower/ext-proc-as-actual-argument-1.f90 b/flang/test/Lower/ext-proc-as-actual-argument-1.f90 index dca6f4d196344..6ef8e00610086 100644 --- a/flang/test/Lower/ext-proc-as-actual-argument-1.f90 +++ b/flang/test/Lower/ext-proc-as-actual-argument-1.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test external procedure as actual argument with the implicit character type. diff --git a/flang/test/Lower/ext-proc-as-actual-argument-2.f90 b/flang/test/Lower/ext-proc-as-actual-argument-2.f90 index 3cae4cf29a1c2..d0544271e0628 100644 --- a/flang/test/Lower/ext-proc-as-actual-argument-2.f90 +++ b/flang/test/Lower/ext-proc-as-actual-argument-2.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test external procedure as actual argument with the implicit character type. diff --git a/flang/test/Lower/fail_image.f90 b/flang/test/Lower/fail_image.f90 index 3f9aad3fd984e..a4708cbbf47cc 100644 --- a/flang/test/Lower/fail_image.f90 +++ b/flang/test/Lower/fail_image.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPfail_image_test subroutine fail_image_test(fail) diff --git a/flang/test/Lower/forall/array-constructor.f90 b/flang/test/Lower/forall/array-constructor.f90 index 411a72fb07048..083a71ba479aa 100644 --- a/flang/test/Lower/forall/array-constructor.f90 +++ b/flang/test/Lower/forall/array-constructor.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine ac1(arr,n) integer :: arr(:), n diff --git a/flang/test/Lower/forall/array-pointer.f90 b/flang/test/Lower/forall/array-pointer.f90 index 358e6b554f9b6..1e8f7a6a55002 100644 --- a/flang/test/Lower/forall/array-pointer.f90 +++ b/flang/test/Lower/forall/array-pointer.f90 @@ -6,7 +6,7 @@ ! is a pointer to an array of T and never an array of pointer to T in ! Fortran. -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s module array_of_pointer_test type t diff --git a/flang/test/Lower/forall/array-subscripts.f90 b/flang/test/Lower/forall/array-subscripts.f90 index 9fc721db4f60b..a0ae0500b5fdc 100644 --- a/flang/test/Lower/forall/array-subscripts.f90 +++ b/flang/test/Lower/forall/array-subscripts.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Make sure we use array values for subscripts that are arrays on the lhs so ! that copy-in/copy-out works correctly. diff --git a/flang/test/Lower/forall/character-1.f90 b/flang/test/Lower/forall/character-1.f90 index 8ccc09d90be64..e5c40a16420a6 100644 --- a/flang/test/Lower/forall/character-1.f90 +++ b/flang/test/Lower/forall/character-1.f90 @@ -1,5 +1,5 @@ -! RUN: bbc %s -o - | tco | FileCheck %s -! RUN: %flang -emit-llvm -S -mmlir -disable-external-name-interop %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | tco | FileCheck %s +! RUN: %flang -emit-llvm -flang-deprecated-no-hlfir -S -mmlir -disable-external-name-interop %s -o - | FileCheck %s ! Test from Fortran source through to LLVM IR. ! UNSUPPORTED: system-windows diff --git a/flang/test/Lower/forall/degenerate.f90 b/flang/test/Lower/forall/degenerate.f90 index 70598c965b91f..c10c0a9edf829 100644 --- a/flang/test/Lower/forall/degenerate.f90 +++ b/flang/test/Lower/forall/degenerate.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPpointer_forall_degenerated_assignment() { diff --git a/flang/test/Lower/forall/forall-2.f90 b/flang/test/Lower/forall/forall-2.f90 index d69c4edcb5b2e..cdafb4f3d49e7 100644 --- a/flang/test/Lower/forall/forall-2.f90 +++ b/flang/test/Lower/forall/forall-2.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s -! RUN: bbc %s -o - | FileCheck --check-prefix=POSTOPT %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck --check-prefix=POSTOPT %s ! CHECK-LABEL: func @_QPimplied_iters_allocatable( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.box,arr:!fir.box>>}>>>{{.*}}, %[[VAL_1:.*]]: !fir.box>{{.*}}) { diff --git a/flang/test/Lower/forall/forall-allocatable-2.f90 b/flang/test/Lower/forall/forall-allocatable-2.f90 index 6f5c275b38632..95bd290f27350 100644 --- a/flang/test/Lower/forall/forall-allocatable-2.f90 +++ b/flang/test/Lower/forall/forall-allocatable-2.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine forall_with_allocatable2(a1) real :: a1(:) diff --git a/flang/test/Lower/forall/forall-allocatable.f90 b/flang/test/Lower/forall/forall-allocatable.f90 index 969a83cae5e72..96cd37ea3ed8a 100644 --- a/flang/test/Lower/forall/forall-allocatable.f90 +++ b/flang/test/Lower/forall/forall-allocatable.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine forall_with_allocatable(a1) real :: a1(:) diff --git a/flang/test/Lower/forall/forall-array.f90 b/flang/test/Lower/forall/forall-array.f90 index 8c7daaae91eea..2abc5a30610a9 100644 --- a/flang/test/Lower/forall/forall-array.f90 +++ b/flang/test/Lower/forall/forall-array.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s !*** Test a FORALL construct with an array assignment ! This is similar to the following embedded WHERE construct test, but the diff --git a/flang/test/Lower/forall/forall-construct-2.f90 b/flang/test/Lower/forall/forall-construct-2.f90 index 481cffe58b8d3..3bca192ef8e2e 100644 --- a/flang/test/Lower/forall/forall-construct-2.f90 +++ b/flang/test/Lower/forall/forall-construct-2.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s !*** Test forall with multiple assignment statements subroutine test2_forall_construct(a,b) diff --git a/flang/test/Lower/forall/forall-construct-3.f90 b/flang/test/Lower/forall/forall-construct-3.f90 index 83e7d05d42bc8..59583330eb084 100644 --- a/flang/test/Lower/forall/forall-construct-3.f90 +++ b/flang/test/Lower/forall/forall-construct-3.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s !*** Test forall with multiple assignment statements and mask subroutine test3_forall_construct(a,b, mask) diff --git a/flang/test/Lower/forall/forall-construct-4.f90 b/flang/test/Lower/forall/forall-construct-4.f90 index aed8d92962ade..8134a2f7f2710 100644 --- a/flang/test/Lower/forall/forall-construct-4.f90 +++ b/flang/test/Lower/forall/forall-construct-4.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s !*** Test forall targeted by label subroutine test4_forall_construct() diff --git a/flang/test/Lower/forall/forall-construct.f90 b/flang/test/Lower/forall/forall-construct.f90 index b4296a71028d5..4d2d2d8764e77 100644 --- a/flang/test/Lower/forall/forall-construct.f90 +++ b/flang/test/Lower/forall/forall-construct.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s !*** Test a FORALL construct subroutine test_forall_construct(a,b) diff --git a/flang/test/Lower/forall/forall-ranked.f90 b/flang/test/Lower/forall/forall-ranked.f90 index 464b8386d2e10..9e56be926e78e 100644 --- a/flang/test/Lower/forall/forall-ranked.f90 +++ b/flang/test/Lower/forall/forall-ranked.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtest_forall_with_ranked_dimension() { ! CHECK: %[[VAL_0:.*]] = fir.alloca i32 {adapt.valuebyref, bindc_name = "i"} diff --git a/flang/test/Lower/forall/forall-slice.f90 b/flang/test/Lower/forall/forall-slice.f90 index 3a99682f79502..05148cea2e941 100644 --- a/flang/test/Lower/forall/forall-slice.f90 +++ b/flang/test/Lower/forall/forall-slice.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPtest_forall_with_slice( ! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref{{.*}}, %[[VAL_1:.*]]: !fir.ref{{.*}}) { diff --git a/flang/test/Lower/forall/forall-stmt.f90 b/flang/test/Lower/forall/forall-stmt.f90 index 4067cdb1ba054..8dbc807b57161 100644 --- a/flang/test/Lower/forall/forall-stmt.f90 +++ b/flang/test/Lower/forall/forall-stmt.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s !*** Test a FORALL statement subroutine test_forall_stmt(x, mask) diff --git a/flang/test/Lower/forall/forall-where-2.f90 b/flang/test/Lower/forall/forall-where-2.f90 index 15f60da9958c3..c075508bef561 100644 --- a/flang/test/Lower/forall/forall-where-2.f90 +++ b/flang/test/Lower/forall/forall-where-2.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test a FORALL construct with a nested WHERE construct where the mask diff --git a/flang/test/Lower/forall/forall-where.f90 b/flang/test/Lower/forall/forall-where.f90 index 3f94b764e88d1..56bce6fc4fc2e 100644 --- a/flang/test/Lower/forall/forall-where.f90 +++ b/flang/test/Lower/forall/forall-where.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s !*** Test a FORALL construct with a nested WHERE construct. ! This has both an explicit and implicit iteration space. The WHERE construct diff --git a/flang/test/Lower/forall/scalar-substring.f90 b/flang/test/Lower/forall/scalar-substring.f90 index 55734491bd761..0608efe7f0d49 100644 --- a/flang/test/Lower/forall/scalar-substring.f90 +++ b/flang/test/Lower/forall/scalar-substring.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine s(ch) character(10) :: ch diff --git a/flang/test/Lower/forall/test9.f90 b/flang/test/Lower/forall/test9.f90 index d3ae56d359fdc..88107cb6f6037 100644 --- a/flang/test/Lower/forall/test9.f90 +++ b/flang/test/Lower/forall/test9.f90 @@ -1,6 +1,6 @@ ! Test forall lowering -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s !*** This FORALL construct does present a potential loop-carried dependence if !*** implemented naively (and incorrectly). The final value of a(3) must be the diff --git a/flang/test/Lower/goto-do-body.f90 b/flang/test/Lower/goto-do-body.f90 index 3854947b55f62..910e55f1839fd 100644 --- a/flang/test/Lower/goto-do-body.f90 +++ b/flang/test/Lower/goto-do-body.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -emit-fir -o - | FileCheck %s +! RUN: bbc %s -emit-fir -hlfir=false -o - | FileCheck %s ! Test jumping to the body of a do loop. subroutine sub1() diff --git a/flang/test/Lower/goto-statement.f90 b/flang/test/Lower/goto-statement.f90 index 61f009d13a2b8..f69ed6ba656a2 100644 --- a/flang/test/Lower/goto-statement.f90 +++ b/flang/test/Lower/goto-statement.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -emit-fir -o - | FileCheck %s +! RUN: bbc %s -emit-fir -hlfir=false -o - | FileCheck %s ! Test trivial goto statement subroutine sub1() diff --git a/flang/test/Lower/host-associated-functions.f90 b/flang/test/Lower/host-associated-functions.f90 index 434ae51285c96..77a51490950fa 100644 --- a/flang/test/Lower/host-associated-functions.f90 +++ b/flang/test/Lower/host-associated-functions.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test calling functions whose result interface is evaluated on the call site ! and where the calls are located in an internal procedure while the diff --git a/flang/test/Lower/host-associated-globals.f90 b/flang/test/Lower/host-associated-globals.f90 index 018eb7aee3bc8..bb22a32775427 100644 --- a/flang/test/Lower/host-associated-globals.f90 +++ b/flang/test/Lower/host-associated-globals.f90 @@ -2,7 +2,7 @@ ! A tuple function argument should not be created for associated globals, and ! instead globals should be instantiated with a fir.address_of inside the ! contained procedures. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module test_mod_used_in_host integer :: i, j_in_equiv diff --git a/flang/test/Lower/host-associated.f90 b/flang/test/Lower/host-associated.f90 index 2e4e957ec918b..e2db6deb8803d 100644 --- a/flang/test/Lower/host-associated.f90 +++ b/flang/test/Lower/host-associated.f90 @@ -1,5 +1,5 @@ ! Test internal procedure host association lowering. -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! ----------------------------------------------------------------------------- ! Test non character intrinsic scalars diff --git a/flang/test/Lower/identical-block-merge-disable.f90 b/flang/test/Lower/identical-block-merge-disable.f90 index 63b370ef2393d..de74ba529d87f 100644 --- a/flang/test/Lower/identical-block-merge-disable.f90 +++ b/flang/test/Lower/identical-block-merge-disable.f90 @@ -1,6 +1,6 @@ ! Test disable identical block merge in the canonicalizer pass in bbc. ! Temporary fix for issue #1021. -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s MODULE DMUMPS_SOL_LR IMPLICIT NONE diff --git a/flang/test/Lower/implicit-call-mismatch.f90 b/flang/test/Lower/implicit-call-mismatch.f90 index 5d38bd6cc0626..afe6ad85d8e2e 100644 --- a/flang/test/Lower/implicit-call-mismatch.f90 +++ b/flang/test/Lower/implicit-call-mismatch.f90 @@ -2,7 +2,7 @@ ! Lowering must close the eyes and do as if it did not know ! about the function definition since semantic lets these ! programs through with a warning. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test reference to non-char procedure conversion. diff --git a/flang/test/Lower/implicit-interface.f90 b/flang/test/Lower/implicit-interface.f90 index ab5ce7b644711..f924a3f5d3e9e 100644 --- a/flang/test/Lower/implicit-interface.f90 +++ b/flang/test/Lower/implicit-interface.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QPchar_return_callee( ! CHECK-SAME: %{{.*}}: !fir.ref>{{.*}}, %{{.*}}: index{{.*}}, %{{.*}}: !fir.ref{{.*}}) -> !fir.boxchar<1> { diff --git a/flang/test/Lower/infinite_loop.f90 b/flang/test/Lower/infinite_loop.f90 index 7bca44f17413c..0450e2c4485fe 100644 --- a/flang/test/Lower/infinite_loop.f90 +++ b/flang/test/Lower/infinite_loop.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s -! RUN: %flang_fc1 -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -o - %s | FileCheck %s ! Tests for infinite loop. diff --git a/flang/test/Lower/integer-operations.f90 b/flang/test/Lower/integer-operations.f90 index 76ec658695a71..97285f452feaa 100644 --- a/flang/test/Lower/integer-operations.f90 +++ b/flang/test/Lower/integer-operations.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o "-" | FileCheck %s +! RUN: bbc -hlfir=false %s -o "-" | FileCheck %s ! Test integer intrinsic operation lowering to fir. diff --git a/flang/test/Lower/intentout-deallocate.f90 b/flang/test/Lower/intentout-deallocate.f90 index e139cb93add72..30502fd5d722a 100644 --- a/flang/test/Lower/intentout-deallocate.f90 +++ b/flang/test/Lower/intentout-deallocate.f90 @@ -1,5 +1,5 @@ ! Test correct deallocation of intent(out) allocatables. -! RUN: bbc --use-desc-for-alloc=false -emit-fir -polymorphic-type %s -o - | FileCheck %s --check-prefixes=CHECK,FIR +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s --check-prefixes=CHECK,FIR ! RUN: bbc -emit-hlfir -polymorphic-type %s -o - -I nw | FileCheck %s --check-prefixes=CHECK,HLFIR module mod1 diff --git a/flang/test/Lower/io-char-array.f90 b/flang/test/Lower/io-char-array.f90 index 8f48156eddadd..b3b9d240f583d 100644 --- a/flang/test/Lower/io-char-array.f90 +++ b/flang/test/Lower/io-char-array.f90 @@ -1,5 +1,5 @@ ! Check that a box is created instead of a temp to write to a char array. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s subroutine io_char_array character(12) :: r(2) = 'badbadbadbad' diff --git a/flang/test/Lower/io-derived-type.f90 b/flang/test/Lower/io-derived-type.f90 index 0bc41564715df..84f57f46289bd 100644 --- a/flang/test/Lower/io-derived-type.f90 +++ b/flang/test/Lower/io-derived-type.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -polymorphic-type -emit-fir -o - %s | FileCheck %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false -o - %s | FileCheck %s module m type t diff --git a/flang/test/Lower/io-implied-do-fixes.f90 b/flang/test/Lower/io-implied-do-fixes.f90 index fa740d503d4dd..a309efa17f124 100644 --- a/flang/test/Lower/io-implied-do-fixes.f90 +++ b/flang/test/Lower/io-implied-do-fixes.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! UNSUPPORTED: system-windows ! CHECK-LABEL: func @_QPido1 diff --git a/flang/test/Lower/io-item-list.f90 b/flang/test/Lower/io-item-list.f90 index aefd2cd4d96f0..c93bd72418a41 100644 --- a/flang/test/Lower/io-item-list.f90 +++ b/flang/test/Lower/io-item-list.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test that IO item list are lowered and passed correctly diff --git a/flang/test/Lower/io-statement-1.f90 b/flang/test/Lower/io-statement-1.f90 index 25eee5c65b0f6..980cdb65033ab 100644 --- a/flang/test/Lower/io-statement-1.f90 +++ b/flang/test/Lower/io-statement-1.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -emit-fir -o - | FileCheck %s +! RUN: bbc %s -emit-fir -hlfir=false -o - | FileCheck %s ! UNSUPPORTED: system-windows logical :: existsvar diff --git a/flang/test/Lower/io-statement-2.f90 b/flang/test/Lower/io-statement-2.f90 index 8634c14ca4c9c..108c64344f30c 100644 --- a/flang/test/Lower/io-statement-2.f90 +++ b/flang/test/Lower/io-statement-2.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! UNSUPPORTED: system-windows character*10 :: exx diff --git a/flang/test/Lower/io-statement-3.f90 b/flang/test/Lower/io-statement-3.f90 index c04979e756a14..174161706a1e8 100644 --- a/flang/test/Lower/io-statement-3.f90 +++ b/flang/test/Lower/io-statement-3.f90 @@ -1,5 +1,5 @@ ! Test lowering of IO read SIZE control-spec (12.6.2.15) -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QPtest_read_size( ! CHECK-SAME: %[[sizeVar:[^:]+]]: !fir.ref{{[^,]*}}, diff --git a/flang/test/Lower/io-statement-big-unit-checks.f90 b/flang/test/Lower/io-statement-big-unit-checks.f90 index 18512beb24a20..471fe399aee01 100644 --- a/flang/test/Lower/io-statement-big-unit-checks.f90 +++ b/flang/test/Lower/io-statement-big-unit-checks.f90 @@ -2,7 +2,7 @@ ! unit number that may turn out at runtime to be too large to fit in a default ! integer. Unit numbers must fit on default integers. This file tests that the ! related generated runtime checks and error recovery code. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! ----------------------------------------------------------------------------- diff --git a/flang/test/Lower/io-statement-open-options.f90 b/flang/test/Lower/io-statement-open-options.f90 index 4348767ec2033..9f469b2892a62 100755 --- a/flang/test/Lower/io-statement-open-options.f90 +++ b/flang/test/Lower/io-statement-open-options.f90 @@ -1,5 +1,5 @@ ! Test lowering of OPEN statment options -! RUN: bbc %s -emit-fir -o - | FileCheck %s +! RUN: bbc %s -emit-fir -hlfir=false -o - | FileCheck %s ! CHECK-LABEL: func.func @_QPtest_convert_specifier( subroutine test_convert_specifier(unit) diff --git a/flang/test/Lower/io-write.f90 b/flang/test/Lower/io-write.f90 index cf80cd1e9a155..ee079eb540a5e 100644 --- a/flang/test/Lower/io-write.f90 +++ b/flang/test/Lower/io-write.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test that IO item calls stackrestore in the right place diff --git a/flang/test/Lower/logical-operations.f90 b/flang/test/Lower/logical-operations.f90 index 9ade97b5f5eda..445563ead0d28 100644 --- a/flang/test/Lower/logical-operations.f90 +++ b/flang/test/Lower/logical-operations.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o "-" | FileCheck %s +! RUN: bbc -hlfir=false %s -o "-" | FileCheck %s ! Test logical intrinsic operation lowering to fir. diff --git a/flang/test/Lower/loops.f90 b/flang/test/Lower/loops.f90 index 12385cbb4c186..ea65ba3e4d66d 100644 --- a/flang/test/Lower/loops.f90 +++ b/flang/test/Lower/loops.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: loop_test subroutine loop_test diff --git a/flang/test/Lower/loops2.f90 b/flang/test/Lower/loops2.f90 index 4baf4f2b6ec38..0a587234a991b 100644 --- a/flang/test/Lower/loops2.f90 +++ b/flang/test/Lower/loops2.f90 @@ -1,5 +1,5 @@ ! Test loop variables increment -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s module test_loop_var implicit none diff --git a/flang/test/Lower/memory-alloc.f90 b/flang/test/Lower/memory-alloc.f90 index 3b7b8f01e7250..3669208591011 100644 --- a/flang/test/Lower/memory-alloc.f90 +++ b/flang/test/Lower/memory-alloc.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -o - %s | FileCheck %s +! RUN: bbc -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QMw0bPtest1( ! CHECK: %[[TWO:.*]] = arith.constant 2 : index diff --git a/flang/test/Lower/mixed_loops.f90 b/flang/test/Lower/mixed_loops.f90 index dcbc789398345..1aa0225129bed 100644 --- a/flang/test/Lower/mixed_loops.f90 +++ b/flang/test/Lower/mixed_loops.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s -! RUN: %flang_fc1 -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -o - %s | FileCheck %s ! Test while loop inside do loop. ! CHECK-LABEL: while_inside_do_loop diff --git a/flang/test/Lower/namelist-common-block.f90 b/flang/test/Lower/namelist-common-block.f90 index f47d4c9bd87ea..d16f886dadb5b 100644 --- a/flang/test/Lower/namelist-common-block.f90 +++ b/flang/test/Lower/namelist-common-block.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! Test that allocatable or pointer item from namelist are retrieved correctly ! if they are part of a common block as well. diff --git a/flang/test/Lower/namelist.f90 b/flang/test/Lower/namelist.f90 index ff3b706089300..bba7a0ea19774 100644 --- a/flang/test/Lower/namelist.f90 +++ b/flang/test/Lower/namelist.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: func @_QQmain program p diff --git a/flang/test/Lower/nested-where.f90 b/flang/test/Lower/nested-where.f90 index d976522e29bf9..b1b6367174ebd 100644 --- a/flang/test/Lower/nested-where.f90 +++ b/flang/test/Lower/nested-where.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QQmain() attributes {fir.bindc_name = "nested_where"} { program nested_where diff --git a/flang/test/Lower/nullify-polymorphic.f90 b/flang/test/Lower/nullify-polymorphic.f90 index 5e9c47c9c569b..764aa29485783 100644 --- a/flang/test/Lower/nullify-polymorphic.f90 +++ b/flang/test/Lower/nullify-polymorphic.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -polymorphic-type -emit-fir %s -o - | FileCheck %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s module poly type p1 diff --git a/flang/test/Lower/nullify.f90 b/flang/test/Lower/nullify.f90 index a192dc64e84e4..9c9ee459e22d2 100644 --- a/flang/test/Lower/nullify.f90 +++ b/flang/test/Lower/nullify.f90 @@ -1,5 +1,5 @@ ! Test lowering of nullify-statement -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! ----------------------------------------------------------------------------- diff --git a/flang/test/Lower/optional-value-caller.f90 b/flang/test/Lower/optional-value-caller.f90 index 2e8de49b732bb..a1e6ebf3e2182 100644 --- a/flang/test/Lower/optional-value-caller.f90 +++ b/flang/test/Lower/optional-value-caller.f90 @@ -1,5 +1,5 @@ ! Test lowering of OPTIONAL VALUE dummy argument on caller side. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! A copy must be made if the actual is a variable (and no copy-out), but care ! has to be take if the actual argument may be absent at runtime: the copy diff --git a/flang/test/Lower/parent-component.f90 b/flang/test/Lower/parent-component.f90 index e7582c5b3a939..ed1130a08493e 100644 --- a/flang/test/Lower/parent-component.f90 +++ b/flang/test/Lower/parent-component.f90 @@ -1,7 +1,7 @@ ! Test different ways of passing the parent component of an extended ! derived-type to a subroutine or the runtime. -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s program parent_comp type p diff --git a/flang/test/Lower/pointer-args-caller.f90 b/flang/test/Lower/pointer-args-caller.f90 index 1aee08cb8b898..2fba599b302f8 100644 --- a/flang/test/Lower/pointer-args-caller.f90 +++ b/flang/test/Lower/pointer-args-caller.f90 @@ -1,5 +1,5 @@ ! Test calls with POINTER dummy arguments on the caller side. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module call_defs interface diff --git a/flang/test/Lower/pointer-assignments.f90 b/flang/test/Lower/pointer-assignments.f90 index 24154d83e992c..cdf9eac70f450 100644 --- a/flang/test/Lower/pointer-assignments.f90 +++ b/flang/test/Lower/pointer-assignments.f90 @@ -1,5 +1,5 @@ ! Test lowering of pointer assignments -! RUN: bbc --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -emit-fir -hlfir=false %s -o - | FileCheck %s ! Note that p => NULL() are tested in pointer-disassociate.f90 diff --git a/flang/test/Lower/pointer-association-polymorphic.f90 b/flang/test/Lower/pointer-association-polymorphic.f90 index 0f5fdd66aa53c..bde96429c0ee9 100644 --- a/flang/test/Lower/pointer-association-polymorphic.f90 +++ b/flang/test/Lower/pointer-association-polymorphic.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -polymorphic-type -emit-fir %s -o - | FileCheck %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s module poly type p1 diff --git a/flang/test/Lower/pointer-default-init.f90 b/flang/test/Lower/pointer-default-init.f90 index 6dde5d56aaa82..0fb42683a3486 100644 --- a/flang/test/Lower/pointer-default-init.f90 +++ b/flang/test/Lower/pointer-default-init.f90 @@ -2,7 +2,7 @@ ! clean NULL() status. This is required by f18 runtime to do pointer ! association with a RHS with an undefined association status from a ! Fortran point of view. -! RUN: bbc -emit-fir -I nw %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -I nw %s -o - | FileCheck %s module test type t diff --git a/flang/test/Lower/pointer-disassociate.f90 b/flang/test/Lower/pointer-disassociate.f90 index d7f86c3495fe3..8d71905831655 100644 --- a/flang/test/Lower/pointer-disassociate.f90 +++ b/flang/test/Lower/pointer-disassociate.f90 @@ -1,5 +1,5 @@ ! Test lowering of pointer disassociation -! RUN: bbc -emit-fir --polymorphic-type %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false --polymorphic-type %s -o - | FileCheck %s ! ----------------------------------------------------------------------------- diff --git a/flang/test/Lower/pointer-initial-target-2.f90 b/flang/test/Lower/pointer-initial-target-2.f90 index a3f2292e7fb76..1129ddd03560d 100644 --- a/flang/test/Lower/pointer-initial-target-2.f90 +++ b/flang/test/Lower/pointer-initial-target-2.f90 @@ -1,5 +1,5 @@ ! Test lowering of pointer initial target -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! This tests focus on the scope context of initial data target. ! More complete tests regarding the initial data target expression diff --git a/flang/test/Lower/pointer-initial-target.f90 b/flang/test/Lower/pointer-initial-target.f90 index a52f2d7a32dff..83e785282792c 100644 --- a/flang/test/Lower/pointer-initial-target.f90 +++ b/flang/test/Lower/pointer-initial-target.f90 @@ -1,5 +1,5 @@ ! Test lowering of pointer initial target -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! ----------------------------------------------------------------------------- ! Test scalar initial data target that are simple names diff --git a/flang/test/Lower/pointer-references.f90 b/flang/test/Lower/pointer-references.f90 index a75367d8fb579..ace64f9ec7efe 100644 --- a/flang/test/Lower/pointer-references.f90 +++ b/flang/test/Lower/pointer-references.f90 @@ -1,5 +1,5 @@ ! Test lowering of references to pointers -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Assigning/reading to scalar pointer target. ! CHECK-LABEL: func @_QPscal_ptr( diff --git a/flang/test/Lower/pointer-results-as-arguments.f90 b/flang/test/Lower/pointer-results-as-arguments.f90 index 139aa26d9f7fb..a84568dd2d4b4 100644 --- a/flang/test/Lower/pointer-results-as-arguments.f90 +++ b/flang/test/Lower/pointer-results-as-arguments.f90 @@ -1,5 +1,5 @@ ! Test passing pointers results to pointer dummy arguments -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s module presults interface diff --git a/flang/test/Lower/pointer-runtime.f90 b/flang/test/Lower/pointer-runtime.f90 index c84f4401b92b2..dcf9d662f4ed2 100644 --- a/flang/test/Lower/pointer-runtime.f90 +++ b/flang/test/Lower/pointer-runtime.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -use-alloc-runtime %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -use-alloc-runtime %s -o - | FileCheck %s ! Test lowering of allocatables using runtime for allocate/deallocate statements. ! CHECK-LABEL: _QPpointer_runtime( diff --git a/flang/test/Lower/polymorphic-temp.f90 b/flang/test/Lower/polymorphic-temp.f90 index 7858064108b58..46cf14dcf93f4 100644 --- a/flang/test/Lower/polymorphic-temp.f90 +++ b/flang/test/Lower/polymorphic-temp.f90 @@ -1,5 +1,5 @@ ! Test creation of temporary from polymorphic enities -! RUN: bbc -polymorphic-type -emit-fir %s -o - | FileCheck %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s module poly_tmp type p1 diff --git a/flang/test/Lower/polymorphic-types.f90 b/flang/test/Lower/polymorphic-types.f90 index a3c205032236c..0288fea6eb38b 100644 --- a/flang/test/Lower/polymorphic-types.f90 +++ b/flang/test/Lower/polymorphic-types.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -polymorphic-type -emit-fir %s -o - | FileCheck %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s ! Tests the different possible type involving polymorphic entities. diff --git a/flang/test/Lower/polymorphic.f90 b/flang/test/Lower/polymorphic.f90 index f05c0f4c252b8..1770b34d0fe1a 100644 --- a/flang/test/Lower/polymorphic.f90 +++ b/flang/test/Lower/polymorphic.f90 @@ -1,4 +1,4 @@ -! RUN: bbc --use-desc-for-alloc=false -polymorphic-type -emit-fir %s -o - | FileCheck %s +! RUN: bbc --use-desc-for-alloc=false -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s ! Tests various aspect of the lowering of polymorphic entities. diff --git a/flang/test/Lower/procedure-declarations.f90 b/flang/test/Lower/procedure-declarations.f90 index 9a407c894c5c1..b0dee600f563d 100644 --- a/flang/test/Lower/procedure-declarations.f90 +++ b/flang/test/Lower/procedure-declarations.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test procedure declarations. Change appearance order of definition and usages ! (passing a procedure and calling it), with and without definitions. diff --git a/flang/test/Lower/read-write-buffer.f90 b/flang/test/Lower/read-write-buffer.f90 index af3f7217333c9..cfa25c8a0ad6e 100644 --- a/flang/test/Lower/read-write-buffer.f90 +++ b/flang/test/Lower/read-write-buffer.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test that we are passing the correct length when using character array as ! Format (Fortran 2018 12.6.2.2 point 3) diff --git a/flang/test/Lower/real-operations-1.f90 b/flang/test/Lower/real-operations-1.f90 index 67cb04237968e..137d0b5264c25 100644 --- a/flang/test/Lower/real-operations-1.f90 +++ b/flang/test/Lower/real-operations-1.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! Test real add on real kinds. diff --git a/flang/test/Lower/real-operations-2.f90 b/flang/test/Lower/real-operations-2.f90 index 5d17bf60e0062..0323f201f9dde 100644 --- a/flang/test/Lower/real-operations-2.f90 +++ b/flang/test/Lower/real-operations-2.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o "-" | FileCheck %s +! RUN: bbc -hlfir=false %s -o "-" | FileCheck %s ! Test real intrinsic operation lowering to FIR. diff --git a/flang/test/Lower/return-statement.f90 b/flang/test/Lower/return-statement.f90 index 66310754d7bf5..6351a6859eb4f 100644 --- a/flang/test/Lower/return-statement.f90 +++ b/flang/test/Lower/return-statement.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -o "-" -emit-fir | FileCheck %s +! RUN: bbc %s -o "-" -emit-fir -hlfir=false | FileCheck %s program basic return diff --git a/flang/test/Lower/select-case-statement.f90 b/flang/test/Lower/select-case-statement.f90 index 1ba844c0f52ec..37bc4d2d56fb5 100644 --- a/flang/test/Lower/select-case-statement.f90 +++ b/flang/test/Lower/select-case-statement.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: sinteger function sinteger(n) diff --git a/flang/test/Lower/select-type-2.f90 b/flang/test/Lower/select-type-2.f90 index 902181b8bfb60..3769132b01c1f 100644 --- a/flang/test/Lower/select-type-2.f90 +++ b/flang/test/Lower/select-type-2.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -polymorphic-type -emit-fir %s -o - | fir-opt --fir-polymorphic-op | FileCheck %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | fir-opt --fir-polymorphic-op | FileCheck %s module select_type_2 type p1 integer :: a diff --git a/flang/test/Lower/select-type.f90 b/flang/test/Lower/select-type.f90 index ef4336fbd2618..ef91fb913a1c8 100644 --- a/flang/test/Lower/select-type.f90 +++ b/flang/test/Lower/select-type.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -polymorphic-type -emit-fir %s -o - | FileCheck %s -! RUN: bbc -polymorphic-type -emit-fir %s -o - | fir-opt --fir-polymorphic-op | FileCheck --check-prefix=CFG %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s +! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | fir-opt --fir-polymorphic-op | FileCheck --check-prefix=CFG %s module select_type_lower_test type p1 integer :: a diff --git a/flang/test/Lower/statement-function.f90 b/flang/test/Lower/statement-function.f90 index 2b0df9c408a1e..96d39f9ce0d23 100644 --- a/flang/test/Lower/statement-function.f90 +++ b/flang/test/Lower/statement-function.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir -outline-intrinsics %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -outline-intrinsics %s -o - | FileCheck %s ! Test statement function lowering diff --git a/flang/test/Lower/stop-statement.f90 b/flang/test/Lower/stop-statement.f90 index b8d7515394f35..bc94a7ee23a61 100644 --- a/flang/test/Lower/stop-statement.f90 +++ b/flang/test/Lower/stop-statement.f90 @@ -1,4 +1,4 @@ -! RUN: bbc %s -emit-fir --canonicalize -o - | FileCheck %s +! RUN: bbc %s -emit-fir -hlfir=false --canonicalize -o - | FileCheck %s ! CHECK-LABEL: stop_test subroutine stop_test() diff --git a/flang/test/Lower/structure-constructors.f90 b/flang/test/Lower/structure-constructors.f90 index 3418490ecb695..14d8bfe04d1f0 100644 --- a/flang/test/Lower/structure-constructors.f90 +++ b/flang/test/Lower/structure-constructors.f90 @@ -1,5 +1,5 @@ ! Test lowering of structure constructors -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module m_struct_ctor implicit none diff --git a/flang/test/Lower/submodule.f90 b/flang/test/Lower/submodule.f90 index 9836f45d2dce0..acb39b948f61b 100644 --- a/flang/test/Lower/submodule.f90 +++ b/flang/test/Lower/submodule.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module mm integer :: vv = 20 diff --git a/flang/test/Lower/transformational-intrinsics.f90 b/flang/test/Lower/transformational-intrinsics.f90 index 8ef97e44c589f..3dfb689f18d81 100644 --- a/flang/test/Lower/transformational-intrinsics.f90 +++ b/flang/test/Lower/transformational-intrinsics.f90 @@ -1,6 +1,6 @@ ! Test how transformational intrinsic function references are lowered -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! The exact intrinsic being tested does not really matter, what is ! tested here is that transformational intrinsics are lowered correctly diff --git a/flang/test/Lower/user-defined-operators.f90 b/flang/test/Lower/user-defined-operators.f90 index 587ac56b5706a..cf900a5f28919 100644 --- a/flang/test/Lower/user-defined-operators.f90 +++ b/flang/test/Lower/user-defined-operators.f90 @@ -1,5 +1,5 @@ ! Test use defined operators/assignment -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! Test user defined assignment ! CHECK-LABEL: func @_QPuser_assignment( diff --git a/flang/test/Lower/variable-inquiries.f90 b/flang/test/Lower/variable-inquiries.f90 index c3d63d4741c44..590256a80ff38 100644 --- a/flang/test/Lower/variable-inquiries.f90 +++ b/flang/test/Lower/variable-inquiries.f90 @@ -1,5 +1,5 @@ ! Test property inquiries on variables -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module inquired real(8), allocatable :: a(:) diff --git a/flang/test/Lower/vector-subscript-io.f90 b/flang/test/Lower/vector-subscript-io.f90 index 38733cfc6cda2..9030bebd4ac4a 100644 --- a/flang/test/Lower/vector-subscript-io.f90 +++ b/flang/test/Lower/vector-subscript-io.f90 @@ -1,5 +1,5 @@ ! Test lowering of IO input items with vector subscripts -! RUN: bbc %s -o - | FileCheck %s +! RUN: bbc -hlfir=false %s -o - | FileCheck %s ! UNSUPPORTED: system-windows ! CHECK-LABEL: func @_QPsimple( diff --git a/flang/test/Lower/where-allocatable-assignments.f90 b/flang/test/Lower/where-allocatable-assignments.f90 index ce68acc9b1296..becf2458f60f7 100644 --- a/flang/test/Lower/where-allocatable-assignments.f90 +++ b/flang/test/Lower/where-allocatable-assignments.f90 @@ -1,6 +1,6 @@ ! Test that WHERE mask clean-up occurs at the right time when the ! WHERE contains whole allocatable assignments. -! RUN: bbc -emit-fir %s -o - | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s module mtest contains diff --git a/flang/test/Lower/where.f90 b/flang/test/Lower/where.f90 index 36c9917e68765..117371b19ddaf 100644 --- a/flang/test/Lower/where.f90 +++ b/flang/test/Lower/where.f90 @@ -1,4 +1,4 @@ - ! RUN: bbc -emit-fir %s -o - | FileCheck %s + ! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s ! CHECK-LABEL: func @_QQmain() { ! CHECK: %[[VAL_0:.*]] = fir.address_of(@_QFEa) : !fir.ref> diff --git a/flang/test/Lower/while_loop.f90 b/flang/test/Lower/while_loop.f90 index a920188eb1a43..8c03ff5ba9b18 100644 --- a/flang/test/Lower/while_loop.f90 +++ b/flang/test/Lower/while_loop.f90 @@ -1,5 +1,5 @@ -! RUN: bbc -emit-fir -o - %s | FileCheck %s -! RUN: %flang_fc1 -emit-fir -o - %s | FileCheck %s +! RUN: bbc -emit-fir -hlfir=false -o - %s | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -o - %s | FileCheck %s ! Test a simple while loop. ! CHECK-LABEL: simple_loop diff --git a/flang/test/Lower/zero-size.f90 b/flang/test/Lower/zero-size.f90 index 244062b37b92d..426f634a705ae 100644 --- a/flang/test/Lower/zero-size.f90 +++ b/flang/test/Lower/zero-size.f90 @@ -1,4 +1,4 @@ -! RUN: bbc -o - %s | FileCheck %s +! RUN: bbc -hlfir=false -o - %s | FileCheck %s ! CHECK-LABEL: _QPzero1 subroutine zero1(z) diff --git a/flang/test/Transforms/stack-arrays.f90 b/flang/test/Transforms/stack-arrays.f90 index 16ccd2a2a4250..2c8a6fc15504a 100644 --- a/flang/test/Transforms/stack-arrays.f90 +++ b/flang/test/Transforms/stack-arrays.f90 @@ -1,9 +1,9 @@ -! RUN: %flang_fc1 -emit-fir %s -o - | fir-opt --array-value-copy | fir-opt --stack-arrays | FileCheck %s +! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | fir-opt --array-value-copy | fir-opt --stack-arrays | FileCheck %s ! In order to verify the whole MLIR pipeline, make the driver generate LLVM IR. ! This is only to check that -fstack-arrays enables the stack-arrays pass so ! only check the first example -! RUN: %flang_fc1 -emit-llvm -o - -fstack-arrays %s | FileCheck --check-prefix=LLVM-IR %s +! RUN: %flang_fc1 -emit-llvm -flang-deprecated-no-hlfir -o - -fstack-arrays %s | FileCheck --check-prefix=LLVM-IR %s ! check simple array value copy case subroutine array_value_copy_simple(arr)