[flang-commits] [flang] 1953bcd - [flang] Add RUN lines using `fir-opt`

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Thu Jun 9 02:49:15 PDT 2022


Author: Andrzej Warzynski
Date: 2022-06-09T09:48:54Z
New Revision: 1953bcdaac2cefe28b101fcfabee4f85bd6d2370

URL: https://github.com/llvm/llvm-project/commit/1953bcdaac2cefe28b101fcfabee4f85bd6d2370
DIFF: https://github.com/llvm/llvm-project/commit/1953bcdaac2cefe28b101fcfabee4f85bd6d2370.diff

LOG: [flang] Add RUN lines using `fir-opt`

In tests that define a pass pipeline to use, add a RUN line using fir-opt.

Differential Revision: https://reviews.llvm.org/D126955

Added: 
    

Modified: 
    flang/test/Fir/global-initialization.fir
    flang/test/Fir/rebox-susbtring.fir

Removed: 
    


################################################################################
diff  --git a/flang/test/Fir/global-initialization.fir b/flang/test/Fir/global-initialization.fir
index 638a39759ca90..1cb4e94bada4d 100644
--- a/flang/test/Fir/global-initialization.fir
+++ b/flang/test/Fir/global-initialization.fir
@@ -1,3 +1,4 @@
+// RUN: fir-opt --fir-to-llvm-ir %s | FileCheck %s
 // RUN: tco --fir-to-llvm-ir %s | FileCheck %s
 
 fir.global internal @_QEmask : !fir.array<32xi32> {

diff  --git a/flang/test/Fir/rebox-susbtring.fir b/flang/test/Fir/rebox-susbtring.fir
index e685c44d1cf79..382c54e1058e2 100644
--- a/flang/test/Fir/rebox-susbtring.fir
+++ b/flang/test/Fir/rebox-susbtring.fir
@@ -1,5 +1,6 @@
 // Test translation to llvm IR of fir.rebox with substring array sections.
 
+// RUN: fir-opt -o - -cg-rewrite --fir-to-llvm-ir -cse %s | FileCheck %s
 // RUN: tco -o - -cg-rewrite --fir-to-llvm-ir -cse %s | FileCheck %s
 
 // Test a fir.rebox with a substring on a character array with constant


        


More information about the flang-commits mailing list