[Flang] Convert a test to check 'target=...'
authorPaul Robinson <paul.robinson@sony.com>
Tue, 13 Dec 2022 16:52:31 +0000 (08:52 -0800)
committerPaul Robinson <paul.robinson@sony.com>
Wed, 14 Dec 2022 16:34:11 +0000 (08:34 -0800)
Part of the project to eliminate special handling for triples in lit
expressions.

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

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

index 46b8170..07c8ec6 100644 (file)
@@ -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}}
index 11fb006..dbd8435 100644 (file)
@@ -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@"