[compiler-rt] 0c60b4b - [ubsan][test] Replace arch= features with TARGET=

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 18 16:09:24 PDT 2023


Author: Fangrui Song
Date: 2023-08-18T16:09:20-07:00
New Revision: 0c60b4b8a941484b82b8ce33864382d21906886f

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

LOG: [ubsan][test] Replace arch= features with TARGET=

Similar to e6e4362901ae95b455366f907fb1145938808208

Added: 
    

Modified: 
    compiler-rt/test/ubsan/TestCases/Misc/Linux/static-link.cpp
    compiler-rt/test/ubsan/TestCases/Misc/builtins.cpp
    compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-ptrauth-unauthenticated.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/ubsan/TestCases/Misc/Linux/static-link.cpp b/compiler-rt/test/ubsan/TestCases/Misc/Linux/static-link.cpp
index 09751013dcfd0e..cd185049567f79 100644
--- a/compiler-rt/test/ubsan/TestCases/Misc/Linux/static-link.cpp
+++ b/compiler-rt/test/ubsan/TestCases/Misc/Linux/static-link.cpp
@@ -1,5 +1,5 @@
 // REQUIRES: ubsan-standalone
-// REQUIRES: arch=x86_64
+// REQUIRES: target={{x86_64.*}}
 // REQUIRES: librt_has_multf3
 // RUN: %clangxx -fsanitize=bool -static  %s -o %t && UBSAN_OPTIONS=handle_segv=0:handle_sigbus=0:handle_sigfpe=0 %run %t 2>&1 | FileCheck %s
 #include <signal.h>

diff  --git a/compiler-rt/test/ubsan/TestCases/Misc/builtins.cpp b/compiler-rt/test/ubsan/TestCases/Misc/builtins.cpp
index 18c68b5917a5d6..f8f564cb7baae2 100644
--- a/compiler-rt/test/ubsan/TestCases/Misc/builtins.cpp
+++ b/compiler-rt/test/ubsan/TestCases/Misc/builtins.cpp
@@ -1,4 +1,4 @@
-// REQUIRES: arch=x86_64
+// REQUIRES: target={{x86_64.*}}
 //
 // RUN: %clangxx -fsanitize=builtin -w %s -O3 -o %t
 // RUN: %run %t 2>&1 | FileCheck %s --check-prefix=RECOVER

diff  --git a/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-ptrauth-unauthenticated.cpp b/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-ptrauth-unauthenticated.cpp
index 6061cfc457fc8a..e8567cd87df2bb 100644
--- a/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-ptrauth-unauthenticated.cpp
+++ b/compiler-rt/test/ubsan/TestCases/TypeCheck/vptr-ptrauth-unauthenticated.cpp
@@ -5,7 +5,7 @@
 // RUN: not %run %t 2>&1 | FileCheck %s
 
 // TODO(yln): introduce 'ptrauth' lit feature
-// REQUIRES: stable-runtime, cxxabi, arch=arm64e
+// REQUIRES: stable-runtime, cxxabi, TARGET={{arm64e.*}}
 
 #include <typeinfo>
 #include <ptrauth.h>


        


More information about the llvm-commits mailing list