aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2022-12-15 12:25:59 -0800
committerPaul Robinson <paul.robinson@sony.com>2022-12-15 12:26:33 -0800
commite0f2150e99e5e429c33047f25e3da2ab146d0f57 (patch)
treead20a1e96879fc907469aee7839a74f80b7ad8fc
parentfedcdd21a22b8eec53ba73cde8bf9ef3b587dd84 (diff)
downloadllvm-e0f2150e99e5e429c33047f25e3da2ab146d0f57.zip
llvm-e0f2150e99e5e429c33047f25e3da2ab146d0f57.tar.gz
llvm-e0f2150e99e5e429c33047f25e3da2ab146d0f57.tar.bz2
[clang] Convert tests to check 'target=...'
Part of the project to eliminate special handling for triples in lit expressions.
-rw-r--r--clang/test/Analysis/checker-plugins.c2
-rw-r--r--clang/test/CodeGen/c-strings.c4
-rw-r--r--clang/test/PCH/leakfiles.test2
3 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Analysis/checker-plugins.c b/clang/test/Analysis/checker-plugins.c
index 69fab8f..92a48de 100644
--- a/clang/test/Analysis/checker-plugins.c
+++ b/clang/test/Analysis/checker-plugins.c
@@ -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 \
diff --git a/clang/test/CodeGen/c-strings.c b/clang/test/CodeGen/c-strings.c
index 6873941..9e1ac0f 100644
--- a/clang/test/CodeGen/c-strings.c
+++ b/clang/test/CodeGen/c-strings.c
@@ -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.
diff --git a/clang/test/PCH/leakfiles.test b/clang/test/PCH/leakfiles.test
index 90b2790..dc4047ac 100644
--- a/clang/test/PCH/leakfiles.test
+++ b/clang/test/PCH/leakfiles.test
@@ -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.