[NFC][flang] Replace use of flang -fc1 with %flang_fc1 in few test case (#168830)
Replace use of flang -fc1 with %flang_fc1 in few test case
This commit is contained in:
parent
bdf598f8dd
commit
dc343d2f05
@ -1,6 +1,6 @@
|
||||
! RUN: bbc -emit-fir %s -o - | FileCheck %s
|
||||
! bbc doesn't have a way to set the default kinds so we use flang driver
|
||||
! RUN: flang -fc1 -fdefault-integer-8 -emit-fir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-64 %s
|
||||
! RUN: %flang_fc1 -fdefault-integer-8 -emit-fir %s -o - | FileCheck --check-prefixes=CHECK,CHECK-64 %s
|
||||
|
||||
! CHECK-LABEL: argument_count_test
|
||||
subroutine argument_count_test()
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
! RUN: bbc -emit-fir -hlfir=false %s -o - | FileCheck %s -check-prefixes=HONORINF,ALL
|
||||
! RUN: flang -fc1 -menable-no-infs -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s -check-prefixes=CHECK,ALL,%if flang-supports-f128-math %{F128%} %else %{F64%}
|
||||
! RUN: %flang_fc1 -menable-no-infs -emit-fir -flang-deprecated-no-hlfir %s -o - | FileCheck %s -check-prefixes=CHECK,ALL,%if flang-supports-f128-math %{F128%} %else %{F64%}
|
||||
|
||||
! ALL-LABEL: func @_QPmodulo_testr(
|
||||
! ALL-SAME: %[[arg0:.*]]: !fir.ref<f64>{{.*}}, %[[arg1:.*]]: !fir.ref<f64>{{.*}}, %[[arg2:.*]]: !fir.ref<f64>{{.*}}) {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
! This test checks the lowering of OpenMP Indirect Clause when used with the Declare Target directive
|
||||
|
||||
! RUN: not flang -fc1 -emit-fir -fopenmp -fopenmp-version=52 %s 2>&1 | FileCheck %s
|
||||
! RUN: not %flang_fc1 -emit-fir -fopenmp -fopenmp-version=52 %s 2>&1 | FileCheck %s
|
||||
|
||||
module functions
|
||||
implicit none
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
! This test checks lowering of OpenMP allocate Directive.
|
||||
|
||||
! RUN: not flang -fc1 -emit-fir -fopenmp %s 2>&1 | FileCheck %s
|
||||
! RUN: not %flang_fc1 -emit-fir -fopenmp %s 2>&1 | FileCheck %s
|
||||
|
||||
program main
|
||||
integer :: x, y
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
! This test checks lowering of OpenMP declare reduction Directive, with initialization
|
||||
! via a subroutine. This functionality is currently not implemented.
|
||||
|
||||
! RUN: not flang -fc1 -emit-fir -fopenmp %s 2>&1 | FileCheck %s
|
||||
! RUN: not %flang_fc1 -emit-fir -fopenmp %s 2>&1 | FileCheck %s
|
||||
|
||||
!CHECK: not yet implemented: OpenMPDeclareReductionConstruct
|
||||
subroutine initme(x,n)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
! This test checks lowering of OpenMP declare reduction Directive.
|
||||
|
||||
! RUN: not flang -fc1 -emit-fir -fopenmp %s 2>&1 | FileCheck %s
|
||||
! RUN: not %flang_fc1 -emit-fir -fopenmp %s 2>&1 | FileCheck %s
|
||||
|
||||
subroutine declare_red()
|
||||
integer :: my_var
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
! This test checks lowering of OpenMP declare simd Directive.
|
||||
|
||||
// RUN: not flang -fc1 -emit-fir -fopenmp %s 2>&1 | FileCheck %s
|
||||
// RUN: not %flang_fc1 -emit-fir -fopenmp %s 2>&1 | FileCheck %s
|
||||
|
||||
subroutine sub(x, y)
|
||||
real, intent(inout) :: x, y
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
! Test lowering of Cray pointee references.
|
||||
! RUN: flang -fc1 -emit-hlfir -fopenmp %s -o - 2>&1 | FileCheck %s
|
||||
! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - 2>&1 | FileCheck %s
|
||||
|
||||
module test_host_assoc_cray_pointer
|
||||
! CHECK-LABEL: fir.global @_QMtest_host_assoc_cray_pointerEivar : i64
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
! Test lowering of Cray pointee references.
|
||||
! RUN: flang -fc1 -emit-hlfir -fopenmp %s -o - 2>&1 | FileCheck %s
|
||||
! RUN: %flang_fc1 -emit-hlfir -fopenmp %s -o - 2>&1 | FileCheck %s
|
||||
|
||||
! CHECK-LABEL: func.func @_QQmain() attributes {fir.bindc_name = "TEST_CRAY_POINTERS_02"}
|
||||
program test_cray_pointers_02
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
! This test checks lowering of `LASTPRIVATE` clause for scalar types.
|
||||
|
||||
! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s
|
||||
! RUN: flang -fc1 -fopenmp -emit-hlfir %s -o - | FileCheck %s
|
||||
! RUN: %flang_fc1 -fopenmp -emit-hlfir %s -o - | FileCheck %s
|
||||
|
||||
!CHECK: func @_QPlastprivate_character(%[[ARG1:.*]]: !fir.boxchar<1>{{.*}}) {
|
||||
!CHECK-DAG: %[[ARG1_UNBOX:.*]]:2 = fir.unboxchar
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
! Check that for parallel do, reduction is only processed for the loop
|
||||
|
||||
! RUN: bbc -fopenmp --force-byref-reduction -emit-hlfir %s -o - | FileCheck %s
|
||||
! RUN: flang -fc1 -fopenmp -mmlir --force-byref-reduction -emit-hlfir %s -o - | FileCheck %s
|
||||
! RUN: %flang_fc1 -fopenmp -mmlir --force-byref-reduction -emit-hlfir %s -o - | FileCheck %s
|
||||
|
||||
! CHECK: omp.parallel {
|
||||
! CHECK: omp.wsloop private({{.*}}) reduction(byref @add_reduction_byref_i32
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
! Check that for parallel do, reduction is only processed for the loop
|
||||
|
||||
! RUN: bbc -fopenmp -emit-hlfir %s -o - | FileCheck %s
|
||||
! RUN: flang -fc1 -fopenmp -emit-hlfir %s -o - | FileCheck %s
|
||||
! RUN: %flang_fc1 -fopenmp -emit-hlfir %s -o - | FileCheck %s
|
||||
|
||||
! CHECK: omp.parallel {
|
||||
! CHECK: omp.wsloop private({{.*}}) reduction(@add_reduction_i32
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
! This test checks the lowering of OpenMP Indirect Clause when used with the Declare Target directive
|
||||
|
||||
! RUN: not flang -fopenmp -fopenmp-version=52 %s 2>&1 | FileCheck %s
|
||||
! RUN: not %flang -fopenmp -fopenmp-version=52 %s 2>&1 | FileCheck %s
|
||||
|
||||
module functions
|
||||
implicit none
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
! This test checks the lowering of OpenMP Indirect Clause when used with the Declare Target directive
|
||||
|
||||
! RUN: not flang -fopenmp -fopenmp-version=50 %s 2>&1 | FileCheck %s --check-prefix="CHECK-50"
|
||||
! RUN: not flang -fopenmp -fopenmp-version=52 %s 2>&1 | FileCheck %s --check-prefix="CHECK-52"
|
||||
! RUN: not %flang -fopenmp -fopenmp-version=50 %s 2>&1 | FileCheck %s --check-prefix="CHECK-50"
|
||||
! RUN: not %flang -fopenmp -fopenmp-version=52 %s 2>&1 | FileCheck %s --check-prefix="CHECK-52"
|
||||
|
||||
module functions
|
||||
implicit none
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user