[flang-commits] [flang] e84d187 - [Flang] Convert a test to check 'target=...'

Paul Robinson via flang-commits flang-commits at lists.llvm.org
Wed Dec 14 08:34:20 PST 2022


Author: Paul Robinson
Date: 2022-12-14T08:34:11-08:00
New Revision: e84d1879e51f543d2cdeaca3b4ae7786ea3f19b5

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

LOG: [Flang] Convert a test to check 'target=...'

Part of the project to eliminate special handling for triples in lit
expressions.

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

Added: 
    

Modified: 
    flang/test/Driver/fast_math.f90
    flang/test/lit.site.cfg.py.in

Removed: 
    


################################################################################
diff  --git a/flang/test/Driver/fast_math.f90 b/flang/test/Driver/fast_math.f90
index 46b8170f6d42e..07c8ec6ea0710 100644
--- a/flang/test/Driver/fast_math.f90
+++ b/flang/test/Driver/fast_math.f90
@@ -58,7 +58,7 @@
 
 ! Check that -ffast-math causes us to link to crtfastmath.o
 ! UNSUPPORTED: system-windows
-! UNSUPPORTED: powerpc-registered-target
+! UNSUPPORTED: target=powerpc{{.*}}
 ! RUN: %flang -ffast-math -### %s -o %t 2>&1 \
 ! RUN:     | FileCheck --check-prefix=CHECK-CRT %s
 ! CHECK-CRT: {{crtbegin.?\.o}}

diff  --git a/flang/test/lit.site.cfg.py.in b/flang/test/lit.site.cfg.py.in
index 11fb00644fa92..dbd84354e854e 100644
--- a/flang/test/lit.site.cfg.py.in
+++ b/flang/test/lit.site.cfg.py.in
@@ -5,6 +5,7 @@ import sys
 config.llvm_tools_dir = lit_config.substitute("@LLVM_TOOLS_DIR@")
 config.llvm_shlib_dir = lit_config.substitute(path(r"@SHLIBDIR@"))
 config.llvm_plugin_ext = "@LLVM_PLUGIN_EXT@"
+config.target_triple = "@LLVM_TARGET_TRIPLE@"
 config.llvm_target_triple_env = "@LLVM_TARGET_TRIPLE_ENV@"
 config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
 config.errc_messages = "@LLVM_LIT_ERRC_MESSAGES@"


        


More information about the flang-commits mailing list