Skip to content

Commit 26112bf

Browse files
committed
Switch tests to use fir-test-opt when necessary
1 parent 172a536 commit 26112bf

27 files changed

+27
-27
lines changed

flang/test/Analysis/AliasAnalysis/alias-analysis-1.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// CHECK-LABEL: Testing : "_QPtest"
66
// CHECK-DAG: alloca_1#0 <-> address_of#0: NoAlias

flang/test/Analysis/AliasAnalysis/alias-analysis-2.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// CHECK-LABEL: Testing : "_QFPtest"
66

flang/test/Analysis/AliasAnalysis/alias-analysis-3.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// module m
66
// type t

flang/test/Analysis/AliasAnalysis/alias-analysis-4.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// use --mlir-disable-threading so that the AA queries are serialised
44
// as well as its diagnostic output.
5-
// RUN: fir-opt %s --test-fir-alias-analysis -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
5+
// RUN: fir-test-opt %s --test-fir-alias-analysis -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
66

77
// designate for a derived type component:
88
// module m

flang/test/Analysis/AliasAnalysis/alias-analysis-5.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// CHECK-LABEL: Testing : "_QPtest1"
66
// CHECK: arraya(ii)#0 <-> arrayc(ii)#0: NoAlias

flang/test/Analysis/AliasAnalysis/alias-analysis-6.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
1+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
22

33
// CHECK: test_y(1)#0 <-> test_x(1)#0: MayAlias
44
func.func @_QPtest(%arg0: !fir.ref<!fir.box<!fir.ptr<!fir.array<?xf32>>>> {fir.bindc_name = "y"}) {

flang/test/Analysis/AliasAnalysis/alias-analysis-7.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
1+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
22

33
// leslie3d case with two allocatable module variables
44
// that cannot alias:

flang/test/Analysis/AliasAnalysis/alias-analysis-8.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
1+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' 2>&1 | FileCheck %s
22

33
// Exercise that a box reference does not alias with the address loaded from the box
44
// module mm

flang/test/Analysis/AliasAnalysis/alias-analysis-9.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran source code:
66
// program TestTmpArrayAssignment

flang/test/Analysis/AliasAnalysis/alias-analysis-host-assoc.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Test alias analysis queries for host associated accesses.
2-
// RUN: fir-opt %s --test-fir-alias-analysis -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
2+
// RUN: fir-test-opt %s --test-fir-alias-analysis -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
33

44
// subroutine test1
55
// integer :: x(10)

flang/test/Analysis/AliasAnalysis/alias-analysis-omp-private-allocatable.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran code before simplification:
66
// SUBROUTINE mysub(ns,ne)

flang/test/Analysis/AliasAnalysis/alias-analysis-omp-target-1.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran source code:
66
//

flang/test/Analysis/AliasAnalysis/alias-analysis-omp-target-2.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran source code:
66
//

flang/test/Analysis/AliasAnalysis/alias-analysis-omp-teams-distribute-private-ptr.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran code:
66
// program main

flang/test/Analysis/AliasAnalysis/alias-analysis-omp-teams-distribute-private.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Use --mlir-disable-threading so that the AA queries are serialized
22
// as well as its diagnostic output.
3-
// RUN: fir-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
3+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
44

55
// Fortran code:
66
//

flang/test/Analysis/AliasAnalysis/modref-call-after-inlining.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
1+
// RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
22
// RUN: --mlir-disable-threading %s -o /dev/null 2>&1 | FileCheck %s
33

44
// Test fir.call modref with internal procedures after the host function has been inlined in

flang/test/Analysis/AliasAnalysis/modref-call-args.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test fir.call modref when arguments are passed to the call. This focus

flang/test/Analysis/AliasAnalysis/modref-call-dummies.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test fir.call modref for dummy argument variables. This focus on

flang/test/Analysis/AliasAnalysis/modref-call-equivalence.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test that mod ref effects for variables captured in internal procedures

flang/test/Analysis/AliasAnalysis/modref-call-globals.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test fir.call modref for global variables (module, saved, common).

flang/test/Analysis/AliasAnalysis/modref-call-internal-proc.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test fir.call modref with internal procedures

flang/test/Analysis/AliasAnalysis/modref-call-locals.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
! RUN: bbc -emit-hlfir %s -o - | %python %S/gen_mod_ref_test.py | \
2-
! RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
2+
! RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
33
! RUN: --mlir-disable-threading -o /dev/null 2>&1 | FileCheck %s
44

55
! Test fir.call modref for local variables.

flang/test/Analysis/AliasAnalysis/modref-call-not-fortran.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
1+
// RUN: fir-test-opt -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis-modref))' \
22
// RUN: --mlir-disable-threading %s -o /dev/null 2>&1 | FileCheck %s
33

44
// Test that fir.call modref is conservative when it cannot enusre it is

flang/test/Analysis/AliasAnalysis/ptr-component.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// is via fir.coordinate_of instead of hlfir.designate. We would like alias
66
// analysis results to be the same in both versions.
77

8-
// RUN: fir-opt %s -split-input-file -o /dev/null --mlir-disable-threading \
8+
// RUN: fir-test-opt %s -split-input-file -o /dev/null --mlir-disable-threading \
99
// RUN: -pass-pipeline='builtin.module(func.func(test-fir-alias-analysis))' \
1010
// RUN: 2>&1 | FileCheck -match-full-lines %s
1111

flang/test/Fir/OpenACC/openacc-mappable.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Use --mlir-disable-threading so that the diagnostic printing is serialized.
2-
// RUN: fir-opt %s -pass-pipeline='builtin.module(test-fir-openacc-interfaces)' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
2+
// RUN: fir-test-opt %s -pass-pipeline='builtin.module(test-fir-openacc-interfaces)' -split-input-file --mlir-disable-threading 2>&1 | FileCheck %s
33

44
module attributes {dlti.dl_spec = #dlti.dl_spec<f16 = dense<16> : vector<2xi64>, f128 = dense<128> : vector<2xi64>, !llvm.ptr<270> = dense<32> : vector<4xi64>, f64 = dense<64> : vector<2xi64>, !llvm.ptr<271> = dense<32> : vector<4xi64>, !llvm.ptr<272> = dense<64> : vector<4xi64>, i64 = dense<64> : vector<2xi64>, i128 = dense<128> : vector<2xi64>, f80 = dense<128> : vector<2xi64>, !llvm.ptr = dense<64> : vector<4xi64>, i1 = dense<8> : vector<2xi64>, i8 = dense<8> : vector<2xi64>, i16 = dense<16> : vector<2xi64>, i32 = dense<32> : vector<2xi64>, "dlti.endianness" = "little", "dlti.stack_alignment" = 128 : i64>, fir.defaultkind = "a1c4d8i4l4r4", fir.kindmap = "", llvm.data_layout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"} {
55
func.func @_QPsub() {

flang/test/HLFIR/assign-side-effects.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Test side effects of hlfir.assign op.
2-
// RUN: fir-opt %s --test-side-effects --verify-diagnostics
2+
// RUN: fir-test-opt %s --test-side-effects --verify-diagnostics
33

44
func.func @test1(%x: !fir.ref<i32>, %i: i32) {
55
// expected-remark @below {{found an instance of 'write' on a op operand, on resource '<Default>'}}

flang/test/HLFIR/memory-effects.fir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: fir-opt %s --test-side-effects --verify-diagnostics
1+
// RUN: fir-test-opt %s --test-side-effects --verify-diagnostics
22

33
func.func @concat(%arg0: !fir.ref<!fir.char<1,10>>, %arg1: !fir.ref<!fir.char<1, 20>>) {
44
// expected-remark@+1 {{operation has no memory effects}}

0 commit comments

Comments
 (0)