[clang] df3f5f7 - [Windows] Convert tests to check 'target=<triple>'

Paul Robinson via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 29 10:33:31 PST 2022


Author: Paul Robinson
Date: 2022-11-29T10:33:21-08:00
New Revision: df3f5f714985a45ed7ad34a60f16a853b6cd40f2

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

LOG: [Windows] Convert tests to check 'target=<triple>'

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

Added: 
    

Modified: 
    clang/test/CodeGenCXX/vtable-debug-info.cpp
    clang/test/Driver/experimental-library-flag.cpp
    clang/test/Driver/fat-archive-unbundle-ext.c
    clang/test/Driver/inhibit-downstream-commands.c
    clang/test/Driver/no-integrated-as.s
    llvm/test/MC/RISCV/rv32i-aliases-invalid.s
    llvm/test/MC/RISCV/rv64i-aliases-invalid.s

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenCXX/vtable-debug-info.cpp b/clang/test/CodeGenCXX/vtable-debug-info.cpp
index 0ac90b3ec1d32..5b2816529f8b3 100644
--- a/clang/test/CodeGenCXX/vtable-debug-info.cpp
+++ b/clang/test/CodeGenCXX/vtable-debug-info.cpp
@@ -1,6 +1,6 @@
 // RUN: %clang -emit-llvm -S -g %s -o /dev/null
 // Radar 8730409
-// XFAIL: windows-msvc
+// XFAIL: target={{.*windows-msvc}}
 
 // FIXME: This test crashes on *-pc-win32
 // for lack of debugging support on -integrated-as (MCCOFF).

diff  --git a/clang/test/Driver/experimental-library-flag.cpp b/clang/test/Driver/experimental-library-flag.cpp
index 529888b867c16..523c8e410f6c3 100644
--- a/clang/test/Driver/experimental-library-flag.cpp
+++ b/clang/test/Driver/experimental-library-flag.cpp
@@ -1,6 +1,6 @@
 // On some platforms, -stdlib=libc++ is currently ignored, so -lc++experimental is not added.
 // Once -stdlib=libc++ works on those, this XFAIL can be removed.
-// XFAIL: windows, x86_64-scei-ps4, x86_64-sie-ps5
+// XFAIL: target={{.*windows.*}}, x86_64-scei-ps4, x86_64-sie-ps5
 
 // For some reason, this fails with a core dump on AIX. This needs to be investigated.
 // UNSUPPORTED: aix

diff  --git a/clang/test/Driver/fat-archive-unbundle-ext.c b/clang/test/Driver/fat-archive-unbundle-ext.c
index fff977c237a87..f257012c8f337 100644
--- a/clang/test/Driver/fat-archive-unbundle-ext.c
+++ b/clang/test/Driver/fat-archive-unbundle-ext.c
@@ -1,5 +1,5 @@
 // REQUIRES: x86-registered-target
-// UNSUPPORTED: windows, darwin, aix
+// UNSUPPORTED: target={{.*windows.*}}, darwin, aix
 
 // Generate dummy fat object
 // RUN: %clang -O0 -target %itanium_abi_triple %s -c -o %t.host.o

diff  --git a/clang/test/Driver/inhibit-downstream-commands.c b/clang/test/Driver/inhibit-downstream-commands.c
index b4086bd4d4e2c..f6dc4ee61e9bb 100644
--- a/clang/test/Driver/inhibit-downstream-commands.c
+++ b/clang/test/Driver/inhibit-downstream-commands.c
@@ -2,5 +2,5 @@
 // CHECK: error: unknown type name 'invalid'
 // CHECK-NOT: clang: error: assembler command failed
 // CHECK-NOT: clang: error: linker command failed
-// XFAIL: windows-msvc, ps5
+// XFAIL: target={{.*windows-msvc}}, ps5
 invalid C code!

diff  --git a/clang/test/Driver/no-integrated-as.s b/clang/test/Driver/no-integrated-as.s
index 16a1f0535cc14..6be8e17398afe 100644
--- a/clang/test/Driver/no-integrated-as.s
+++ b/clang/test/Driver/no-integrated-as.s
@@ -1,6 +1,6 @@
 ; RUN: %clang -### -no-integrated-as -c %s 2>&1 | FileCheck %s -check-prefix IAS
 ; Windows and PS5 don't support no-integrated-as
-; XFAIL: windows-msvc, ps5
+; XFAIL: target={{.*windows-msvc}}, ps5
 ;
 ; Make sure the current file's filename appears in the output.
 ; We can't generically match on the assembler name, so we just make sure

diff  --git a/llvm/test/MC/RISCV/rv32i-aliases-invalid.s b/llvm/test/MC/RISCV/rv32i-aliases-invalid.s
index d237554615029..985f86f087fb8 100644
--- a/llvm/test/MC/RISCV/rv32i-aliases-invalid.s
+++ b/llvm/test/MC/RISCV/rv32i-aliases-invalid.s
@@ -1,4 +1,4 @@
-# UNSUPPORTED: windows
+# UNSUPPORTED: target={{.*windows.*}}
 # RUN: not llvm-mc -triple=riscv32 -riscv-no-aliases < %s -o /dev/null 2>&1 | FileCheck %s
 # RUN: not llvm-mc -triple=riscv32 < %s -o /dev/null 2>&1 | FileCheck %s
 

diff  --git a/llvm/test/MC/RISCV/rv64i-aliases-invalid.s b/llvm/test/MC/RISCV/rv64i-aliases-invalid.s
index 71c5cf4d35c11..93e191d2e3312 100644
--- a/llvm/test/MC/RISCV/rv64i-aliases-invalid.s
+++ b/llvm/test/MC/RISCV/rv64i-aliases-invalid.s
@@ -1,4 +1,4 @@
-# UNSUPPORTED: windows
+# UNSUPPORTED: target={{.*windows.*}}
 # RUN: not llvm-mc -triple=riscv64 -riscv-no-aliases < %s -o /dev/null 2>&1 | FileCheck %s
 # RUN: not llvm-mc -triple=riscv64 < %s 2>&1 -o /dev/null | FileCheck %s
 


        


More information about the cfe-commits mailing list