[clang] Convert tests to check 'target=...'
authorPaul Robinson <paul.robinson@sony.com>
Thu, 15 Dec 2022 20:25:59 +0000 (12:25 -0800)
committerPaul Robinson <paul.robinson@sony.com>
Thu, 15 Dec 2022 20:26:33 +0000 (12:26 -0800)
Part of the project to eliminate special handling for triples in lit
expressions.

clang/test/Analysis/checker-plugins.c
clang/test/CodeGen/c-strings.c
clang/test/PCH/leakfiles.test

index 69fab8f..92a48de 100644 (file)
@@ -2,7 +2,7 @@
 
 // FIXME: This test fails on clang-stage2-cmake-RgSan,
 // see also https://reviews.llvm.org/D62445#1613268
-// UNSUPPORTED: darwin
+// UNSUPPORTED: target={{.*darwin.*}}
 
 // RUN: %clang_analyze_cc1 -verify %s \
 // RUN:   -load %llvmshlibdir/SampleAnalyzerPlugin%pluginext \
index 6873941..9e1ac0f 100644 (file)
@@ -1,4 +1,4 @@
-// XFAIL: aarch64-pc-windows-msvc
+// XFAIL: taraget=aarch64-pc-windows-msvc
 // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=ITANIUM
 // RUN: %clang_cc1 -triple %ms_abi_triple -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK --check-prefix=MSABI
 
@@ -21,7 +21,7 @@
 // fails the check for "@f3.x = ... align [ALIGN]", since ALIGN is derived
 // from the alignment of a single i8, which is still 1.
 
-// XFAIL: csky
+// XFAIL: target=csky{{.*}}
 // CSKY aligns arrays of size 4+ bytes to a 32-bit boundary, which
 // fails the check for "@f2.x = ... align [ALIGN]", since ALIGN is derived
 // from the alignment of a single i8, which is still 1.
index 90b2790..dc4047a 100644 (file)
@@ -3,7 +3,7 @@
 //
 // This test requires bash loops and ulimit.
 // REQUIRES: shell
-// UNSUPPORTED: win32
+// UNSUPPORTED: target={{.*win32.*}}
 //
 // Set up source files. lib/lib.h includes lots of lib*.h files in that dir.
 // client.c includes lib/lib.h, and also the individual files directly.