[compiler-rt] bc5e385 - [compiler-rt/builtins] Convert tests to check 'target=...'
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 11:04:20 PST 2022
Author: Paul Robinson
Date: 2022-12-16T11:03:45-08:00
New Revision: bc5e385e2fafc136629d879f5650557f30ab1f52
URL: https://github.com/llvm/llvm-project/commit/bc5e385e2fafc136629d879f5650557f30ab1f52
DIFF: https://github.com/llvm/llvm-project/commit/bc5e385e2fafc136629d879f5650557f30ab1f52.diff
LOG: [compiler-rt/builtins] Convert tests to check 'target=...'
Part of the project to eliminate special handling for triples in lit
expressions.
Added:
Modified:
compiler-rt/test/builtins/Unit/clear_cache_test.c
compiler-rt/test/builtins/Unit/divxc3_test.c
compiler-rt/test/builtins/Unit/fixunstfti_test.c
compiler-rt/test/builtins/Unit/mulxc3_test.c
compiler-rt/test/builtins/Unit/powixf2_test.c
Removed:
################################################################################
diff --git a/compiler-rt/test/builtins/Unit/clear_cache_test.c b/compiler-rt/test/builtins/Unit/clear_cache_test.c
index 5235ba7d9a42c..560e4ccb535a6 100644
--- a/compiler-rt/test/builtins/Unit/clear_cache_test.c
+++ b/compiler-rt/test/builtins/Unit/clear_cache_test.c
@@ -1,5 +1,5 @@
// REQUIRES: native-run
-// UNSUPPORTED: arm, aarch64
+// UNSUPPORTED: target={{(arm|aarch64).*}}
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_clear_cache
diff --git a/compiler-rt/test/builtins/Unit/divxc3_test.c b/compiler-rt/test/builtins/Unit/divxc3_test.c
index 3fa64cf1bdafa..d97e72a5c013a 100644
--- a/compiler-rt/test/builtins/Unit/divxc3_test.c
+++ b/compiler-rt/test/builtins/Unit/divxc3_test.c
@@ -1,8 +1,8 @@
// RUN: %clang_builtins %s %librt -lm -o %t && %run %t
// REQUIRES: librt_has_divxc3
// REQUIRES: x86-target-arch
-// UNSUPPORTED: powerpc64
-// UNSUPPORTED: mips
+// UNSUPPORTED: target=powerpc64{{.*}}
+// UNSUPPORTED: target=mips{{.*}}
// REQUIRES: c99-complex
#if !_ARCH_PPC
diff --git a/compiler-rt/test/builtins/Unit/fixunstfti_test.c b/compiler-rt/test/builtins/Unit/fixunstfti_test.c
index 9f2ae42a1e254..2812b282667f5 100644
--- a/compiler-rt/test/builtins/Unit/fixunstfti_test.c
+++ b/compiler-rt/test/builtins/Unit/fixunstfti_test.c
@@ -1,6 +1,6 @@
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_fixunstfti
-// UNSUPPORTED: mips
+// UNSUPPORTED: target=mips{{.*}}
#include <stdio.h>
diff --git a/compiler-rt/test/builtins/Unit/mulxc3_test.c b/compiler-rt/test/builtins/Unit/mulxc3_test.c
index 77e567bb793e6..b07f11f6d27fe 100644
--- a/compiler-rt/test/builtins/Unit/mulxc3_test.c
+++ b/compiler-rt/test/builtins/Unit/mulxc3_test.c
@@ -1,8 +1,8 @@
// RUN: %clang_builtins %s %librt -lm -o %t && %run %t
// REQUIRES: librt_has_mulxc3
-// UNSUPPORTED: powerpc64
+// UNSUPPORTED: target=powerpc64{{.*}}
// REQUIRES: x86-target-arch
-// UNSUPPORTED: mips
+// UNSUPPORTED: target=mips{{.*}}
// REQUIRES: c99-complex
#if !_ARCH_PPC
diff --git a/compiler-rt/test/builtins/Unit/powixf2_test.c b/compiler-rt/test/builtins/Unit/powixf2_test.c
index 856012ab32dbb..ec9bc04db4b2b 100644
--- a/compiler-rt/test/builtins/Unit/powixf2_test.c
+++ b/compiler-rt/test/builtins/Unit/powixf2_test.c
@@ -1,6 +1,6 @@
// RUN: %clang_builtins %s %librt -o %t && %run %t
// REQUIRES: librt_has_powixf2
-// UNSUPPORTED: powerpc64
+// UNSUPPORTED: target=powerpc64{{.*}}
// REQUIRES: x86-target-arch
#if !_ARCH_PPC
More information about the llvm-commits
mailing list