Skip to content

Commit f35f863

Browse files
authored
[flang][NFC] Use hlfir=false and flang-deprecated-no-hlfir in legacy tests (#71957)
Patch 2/3 of the transition step 1 described in https://discourse.llvm.org/t/rfc-enabling-the-hlfir-lowering-by-default/72778/7. All the modified tests are still here since coverage for the direct lowering to FIR was still needed while it was default. Some already have an HLFIR version, some have not and will need to be ported in step 2 described in the RFC. Note that another 147 lit tests use -emit-fir/-emit-llvm outputs but do not need a flag since the HLFIR/no HLFIR output is the same for what is being tested.
1 parent 4d5a8cc commit f35f863

File tree

393 files changed

+525
-525
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

393 files changed

+525
-525
lines changed

flang/test/Driver/OpenMP/map-types-and-sizes.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
!RUN: %flang_fc1 -emit-llvm -fopenmp %s -o - | FileCheck %s
1+
!RUN: %flang_fc1 -emit-llvm -fopenmp -flang-deprecated-no-hlfir %s -o - | FileCheck %s
22

33
!===============================================================================
44
! Check MapTypes for target implicit captures

flang/test/Driver/compiler_options.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
! RUN: %flang -S -emit-llvm -o - %s | FileCheck %s
1+
! RUN: %flang -S -emit-llvm -flang-deprecated-no-hlfir -o - %s | FileCheck %s
22
! Test communication of COMPILER_OPTIONS from flang-new to flang-new -fc1.
3-
! 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"
3+
! 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"
44
program main
55
use ISO_FORTRAN_ENV, only: compiler_options
66
implicit none

flang/test/Driver/optimization-remark.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
! and -Rpass-analysis)
33
! loop-delete isn't enabled at O0 so we use at least O1
44

5-
! DEFINE: %{output} = -emit-llvm -o /dev/null 2>&1
5+
! DEFINE: %{output} = -emit-llvm -flang-deprecated-no-hlfir -o /dev/null 2>&1
66

77
! Check fc1 can handle -Rpass
88
! RUN: %flang_fc1 %s -O1 -Rpass %{output} 2>&1 | FileCheck %s --check-prefix=REMARKS

flang/test/Fir/achar.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! Tests ACHAR lowering (converting an INTEGER to a CHARACTER (singleton, LEN=1)
44
! along with conversion of CHARACTER to another KIND.

flang/test/Fir/dispatch.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -polymorphic-type -emit-fir %s -o - | fir-opt --fir-polymorphic-op | FileCheck %s
2-
! RUN: bbc -polymorphic-type -emit-fir %s -o - | FileCheck %s --check-prefix=BT
1+
! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | fir-opt --fir-polymorphic-op | FileCheck %s
2+
! RUN: bbc -polymorphic-type -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefix=BT
33

44
! Tests codegen of fir.dispatch operation. This test is intentionally run from
55
! Fortran through bbc and tco so we have all the binding tables lowered to FIR

flang/test/Lower/Intrinsics/abs.f90

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE"
2-
! RUN: bbc -emit-fir --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE"
3-
! RUN: bbc --force-mlir-complex -emit-fir %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST"
4-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE"
5-
! RUN: %flang_fc1 -emit-fir -mllvm --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE"
6-
! RUN: %flang_fc1 -emit-fir -mllvm --force-mlir-complex %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST"
7-
! RUN: %flang_fc1 -fapprox-func -emit-fir %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-APPROX"
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE"
2+
! RUN: bbc -emit-fir -hlfir=false --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE"
3+
! RUN: bbc --force-mlir-complex -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST"
4+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE"
5+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE"
6+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm --force-mlir-complex %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST"
7+
! RUN: %flang_fc1 -fapprox-func -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-APPROX"
88

99
! Test abs intrinsic for various types (int, float, complex)
1010

flang/test/Lower/Intrinsics/achar.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | fir-opt --canonicalize | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | fir-opt --canonicalize | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | fir-opt --canonicalize | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | fir-opt --canonicalize | FileCheck %s
33

44

55
! CHECK-LABEL: func.func @_QPtest1(

flang/test/Lower/Intrinsics/adjustl.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABLE: adjustl_test
44
subroutine adjustl_test

flang/test/Lower/Intrinsics/adjustr.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABLE: adjustr_test
44
subroutine adjustr_test

flang/test/Lower/Intrinsics/aint.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: func @_QPaint_test(
44
! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref<f32>{{.*}}, %[[VAL_1:.*]]: !fir.ref<f32>{{.*}}) {

flang/test/Lower/Intrinsics/all.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: all_test
44
! CHECK-SAME: %[[arg0:.*]]: !fir.box<!fir.array<?x!fir.logical<4>>>{{.*}}) -> !fir.logical<4>

flang/test/Lower/Intrinsics/anint.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: func.func @_QPanint_test(
44
! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref<f32> {fir.bindc_name = "a"},

flang/test/Lower/Intrinsics/any.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: any_test
44
! CHECK-SAME: %[[arg0:.*]]: !fir.box<!fir.array<?x!fir.logical<4>>>{{.*}}) -> !fir.logical<4>

flang/test/Lower/Intrinsics/associated.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: associated_test
44
! CHECK-SAME: %[[arg0:.*]]: !fir.ref<!fir.box<!fir.ptr<f32>>>{{.*}}, %[[arg1:.*]]: !fir.ref<!fir.box<!fir.ptr<!fir.array<?xf32>>>>{{.*}})

flang/test/Lower/Intrinsics/atand.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-FAST"
2-
! RUN: bbc --math-runtime=precise -emit-fir %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-PRECISE"
3-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-FAST"
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-FAST"
2+
! RUN: bbc --math-runtime=precise -emit-fir -hlfir=false %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-PRECISE"
3+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s --check-prefixes="CHECK,CHECK-FAST"
44

55
function test_real4(x)
66
real :: x, test_real4

flang/test/Lower/Intrinsics/bessel_jn.f90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
! RUN: bbc -emit-fir %s -o - --math-runtime=fast | FileCheck --check-prefixes=ALL %s
2-
! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=fast %s -o - | FileCheck --check-prefixes=ALL %s
3-
! RUN: bbc -emit-fir %s -o - --math-runtime=relaxed | FileCheck --check-prefixes=ALL %s
4-
! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=relaxed %s -o - | FileCheck --check-prefixes=ALL %s
5-
! RUN: bbc -emit-fir %s -o - --math-runtime=precise | FileCheck --check-prefixes=ALL %s
6-
! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=precise %s -o - | FileCheck --check-prefixes=ALL %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=fast | FileCheck --check-prefixes=ALL %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=fast %s -o - | FileCheck --check-prefixes=ALL %s
3+
! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=relaxed | FileCheck --check-prefixes=ALL %s
4+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=relaxed %s -o - | FileCheck --check-prefixes=ALL %s
5+
! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=precise | FileCheck --check-prefixes=ALL %s
6+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=precise %s -o - | FileCheck --check-prefixes=ALL %s
77

88
! ALL-LABEL: @_QPtest_real4
99
! ALL-SAME: (%[[argx:.*]]: !fir.ref<f32>{{.*}}, %[[argn:.*]]: !fir.ref<i32>{{.*}}) -> f32

flang/test/Lower/Intrinsics/bessel_yn.f90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
! RUN: bbc -emit-fir %s -o - --math-runtime=fast | FileCheck --check-prefixes=ALL %s
2-
! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=fast %s -o - | FileCheck --check-prefixes=ALL %s
3-
! RUN: bbc -emit-fir %s -o - --math-runtime=relaxed | FileCheck --check-prefixes=ALL %s
4-
! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=relaxed %s -o - | FileCheck --check-prefixes=ALL %s
5-
! RUN: bbc -emit-fir %s -o - --math-runtime=precise | FileCheck --check-prefixes=ALL %s
6-
! RUN: %flang_fc1 -emit-fir -mllvm -math-runtime=precise %s -o - | FileCheck --check-prefixes=ALL %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=fast | FileCheck --check-prefixes=ALL %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=fast %s -o - | FileCheck --check-prefixes=ALL %s
3+
! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=relaxed | FileCheck --check-prefixes=ALL %s
4+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=relaxed %s -o - | FileCheck --check-prefixes=ALL %s
5+
! RUN: bbc -emit-fir -hlfir=false %s -o - --math-runtime=precise | FileCheck --check-prefixes=ALL %s
6+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -math-runtime=precise %s -o - | FileCheck --check-prefixes=ALL %s
77

88
! ALL-LABEL: @_QPtest_real4
99
! ALL-SAME: (%[[argx:.*]]: !fir.ref<f32>{{.*}}, %[[argn:.*]]: !fir.ref<i32>{{.*}}) -> f32

flang/test/Lower/Intrinsics/bge.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! CHECK-LABEL: bge_test
55
! CHECK-SAME: %[[A:.*]]: !fir.ref<i32>{{.*}}, %[[B:.*]]: !fir.ref<i32>{{.*}}, %[[C:.*]]: !fir.ref<!fir.logical<4>>{{.*}}

flang/test/Lower/Intrinsics/bgt.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! CHECK-LABEL: bgt_test
55
! CHECK-SAME: %[[A:.*]]: !fir.ref<i32>{{.*}}, %[[B:.*]]: !fir.ref<i32>{{.*}}, %[[C:.*]]: !fir.ref<!fir.logical<4>>{{.*}}

flang/test/Lower/Intrinsics/ble.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! CHECK-LABEL: ble_test
55
! CHECK-SAME: %[[A:.*]]: !fir.ref<i32>{{.*}}, %[[B:.*]]: !fir.ref<i32>{{.*}}, %[[C:.*]]: !fir.ref<!fir.logical<4>>{{.*}}

flang/test/Lower/Intrinsics/blt.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! CHECK-LABEL: blt_test
55
! CHECK-SAME: %[[A:.*]]: !fir.ref<i32>{{.*}}, %[[B:.*]]: !fir.ref<i32>{{.*}}, %[[C:.*]]: !fir.ref<!fir.logical<4>>{{.*}}

flang/test/Lower/Intrinsics/btest.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: btest_test
44
function btest_test(i, j)

flang/test/Lower/Intrinsics/c_associated.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! Test intrinsic module procedure c_associated
55

flang/test/Lower/Intrinsics/c_f_pointer.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! Test intrinsic module procedure c_f_pointer
55

flang/test/Lower/Intrinsics/c_funloc.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! Test intrinsic module procedure c_funloc
55

flang/test/Lower/Intrinsics/c_loc.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc --use-desc-for-alloc=false --emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc --use-desc-for-alloc=false --emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! Test intrinsic module procedure c_loc
55

flang/test/Lower/Intrinsics/cmplx.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
! a disassociated pointer, or an optional argument.
44
! CMPLX without such argument is re-written by the front-end as a
55
! complex constructor that is tested elsewhere.
6-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
6+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
77

88
! CHECK-LABEL: func @_QPcmplx_test_scalar_ptr(
99
! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref<f32>

flang/test/Lower/Intrinsics/count.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: count_test1
44
! CHECK-SAME: %[[arg0:.*]]: !fir.ref<i32>{{.*}}, %[[arg1:.*]]: !fir.box<!fir.array<?x!fir.logical<4>>>{{.*}})

flang/test/Lower/Intrinsics/cpu_time.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: cpu_time_test
44
subroutine cpu_time_test(t)

flang/test/Lower/Intrinsics/date_and_time.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: func @_QPdate_and_time_test(
44
! CHECK-SAME: %[[date:[^:]+]]: !fir.boxchar<1>{{.*}}, %[[time:[^:]+]]: !fir.boxchar<1>{{.*}}, %[[zone:.*]]: !fir.boxchar<1>{{.*}}, %[[values:.*]]: !fir.box<!fir.array<?xi64>>{{.*}}) {

flang/test/Lower/Intrinsics/dconjg.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
subroutine test_dconjg(r, c)
44
complex(8), intent(out) :: r

flang/test/Lower/Intrinsics/dim.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! CHECK-LABEL: func @_QPdim_testr(
55
! CHECK-SAME: %[[VAL_0:[a-z]+[0-9]]]: !fir.ref<f32>{{.*}}, %[[VAL_1:.*]]: !fir.ref<f32>{{.*}}, %[[VAL_2:.*]]: !fir.ref<f32>{{.*}}) {

flang/test/Lower/Intrinsics/dimag.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
subroutine test_dimag(r, c)
44
real(8), intent(out) :: r

flang/test/Lower/Intrinsics/dot_product.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! DOT_PROD
55
! CHECK-LABEL: dot_prod_int_default

flang/test/Lower/Intrinsics/dprod.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: dprod_test
44
subroutine dprod_test (x, y, z)

flang/test/Lower/Intrinsics/dreal.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
subroutine test_dreal(r, c)
44
real(8), intent(out) :: r

flang/test/Lower/Intrinsics/dshiftl.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! CHECK-LABEL: dshiftl1_test
55
! CHECK-SAME: %[[A:.*]]: !fir.ref<i8>{{.*}}, %[[B:.*]]: !fir.ref<i8>{{.*}}, %[[S:.*]]: !fir.ref<i32>{{.*}}, %[[C:.*]]: !fir.ref<i8>{{.*}}

flang/test/Lower/Intrinsics/dshiftr.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! CHECK-LABEL: dshiftr1_test
55
! CHECK-SAME: %[[A:.*]]: !fir.ref<i8>{{.*}}, %[[B:.*]]: !fir.ref<i8>{{.*}}, %[[S:.*]]: !fir.ref<i32>{{.*}}, %[[C:.*]]: !fir.ref<i8>{{.*}}

flang/test/Lower/Intrinsics/eoshift.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: eoshift_test1
44
subroutine eoshift_test1(arr, shift)

flang/test/Lower/Intrinsics/exit-2.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test EXIT with dynamically optional arguments.
2-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
33

44
! CHECK-LABEL: func @_QPexit_opt_dummy(
55
! CHECK-SAME: %[[VAL_0:.*]]: !fir.ref<i32> {fir.bindc_name = "status", fir.optional}) {

flang/test/Lower/Intrinsics/exit.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-32 -DDEFAULT_INTEGER_SIZE=32 %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck --check-prefixes=CHECK,CHECK-32 -DDEFAULT_INTEGER_SIZE=32 %s
22
! bbc doesn't have a way to set the default kinds so we use flang-new driver
3-
! RUN: flang-new -fc1 -fdefault-integer-8 -emit-fir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-64 -DDEFAULT_INTEGER_SIZE=64 %s
3+
! 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
44

55
! CHECK-LABEL: func @_QPexit_test1() {
66
subroutine exit_test1

flang/test/Lower/Intrinsics/exp.f90

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
! RUN: bbc -emit-fir -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE"
2-
! RUN: bbc -emit-fir --math-runtime=precise -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE"
3-
! RUN: bbc -emit-fir --force-mlir-complex -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR"
4-
! RUN: %flang_fc1 -emit-fir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE"
5-
! RUN: %flang_fc1 -fapprox-func -emit-fir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-APPROX"
6-
! RUN: %flang_fc1 -emit-fir -mllvm -outline-intrinsics -mllvm --math-runtime=precise %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE"
7-
! RUN: %flang_fc1 -emit-fir -mllvm -outline-intrinsics -mllvm --force-mlir-complex %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR"
1+
! RUN: bbc -emit-fir -hlfir=false -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE"
2+
! RUN: bbc -emit-fir -hlfir=false --math-runtime=precise -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-PRECISE"
3+
! RUN: bbc -emit-fir -hlfir=false --force-mlir-complex -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-FAST,CMPLX-MLIR"
4+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CHECK,CMPLX,CMPLX-PRECISE"
5+
! RUN: %flang_fc1 -fapprox-func -emit-fir -flang-deprecated-no-hlfir -mllvm -outline-intrinsics %s -o - | FileCheck %s --check-prefixes="CMPLX,CMPLX-APPROX"
6+
! 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"
7+
! 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"
88

99
! CHECK-LABEL: exp_testr
1010
! CHECK-SAME: (%[[AREF:.*]]: !fir.ref<f32> {{.*}}, %[[BREF:.*]]: !fir.ref<f32> {{.*}})

flang/test/Lower/Intrinsics/extends_type_of.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir -polymorphic-type %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false -polymorphic-type %s -o - | FileCheck %s
22

33
module extends_type_of_mod
44

flang/test/Lower/Intrinsics/findloc.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2-
! RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
2+
! RUN: %flang_fc1 -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s
33

44
! CHECK-LABEL: func @_QPfindloc_test_1d(
55
! CHECK-SAME: %[[arg0:.*]]: !fir.box<!fir.array<?xi32>>{{.*}}, %[[arg1:.*]]: !fir.ref<i32>{{.*}}) -> !fir.array<1xi32>

flang/test/Lower/Intrinsics/get_command.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
1+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
22

33
! CHECK-LABEL: func.func @_QPcommand_only() {
44
! CHECK: %[[VAL_0:.*]] = fir.alloca !fir.char<1,10> {bindc_name = "cmd", uniq_name = "_QFcommand_onlyEcmd"}

flang/test/Lower/Intrinsics/get_command_argument-optional.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! Test GET_COMMAND_ARGUMENT with dynamically optional arguments.
2-
! RUN: bbc -emit-fir %s -o - | FileCheck %s
2+
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s
33

44
! CHECK-LABEL: func @_QPtest(
55
! CHECK-SAME: %[[numberParam:.*]]: !fir.ref<i32> {fir.bindc_name = "number", fir.optional},

0 commit comments

Comments
 (0)