[llvm] [BOLT] Fix the instrumentation test case (PR #76078)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 21 06:19:57 PST 2023


https://github.com/llongint updated https://github.com/llvm/llvm-project/pull/76078

>From 4eb7b89513c93408214f8236c7ec3025808c8b33 Mon Sep 17 00:00:00 2001
From: hezuoqiang <hezuoqiang at huawei.com>
Date: Thu, 21 Dec 2023 01:09:08 +0800
Subject: [PATCH]  [BOLT] Fix the instrumentation test case

---
 bolt/test/runtime/instrument-wrong-target.s    | 2 +-
 bolt/test/runtime/instrumentation-indirect-2.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bolt/test/runtime/instrument-wrong-target.s b/bolt/test/runtime/instrument-wrong-target.s
index 31cae734a0bffd..e44c05e71436b1 100644
--- a/bolt/test/runtime/instrument-wrong-target.s
+++ b/bolt/test/runtime/instrument-wrong-target.s
@@ -1,7 +1,7 @@
 # Test that BOLT errs when trying to instrument a binary with a different
 # architecture than the one BOLT is built for.
 
-# REQUIRES: x86_64-linux,bolt-runtime,target=x86_64{{.*}}
+# REQUIRES: x86_64-linux,bolt-runtime,target=x86_64{{.*}},aarch64-registered-target
 
 # RUN: llvm-mc -triple aarch64 -filetype=obj %s -o %t.o
 # RUN: ld.lld -q -pie -o %t.exe %t.o
diff --git a/bolt/test/runtime/instrumentation-indirect-2.c b/bolt/test/runtime/instrumentation-indirect-2.c
index 7d19db14b77f0a..9319186d03c945 100644
--- a/bolt/test/runtime/instrumentation-indirect-2.c
+++ b/bolt/test/runtime/instrumentation-indirect-2.c
@@ -50,7 +50,7 @@ int main() {
   return 0;
 }
 /*
-REQUIRES: system-linux,shell,fuser
+REQUIRES: system-linux,shell,fuser,bolt-runtime
 
 RUN: %clang %cflags %s -o %t.exe -Wl,-q -pie -fpie
 



More information about the llvm-commits mailing list