[llvm] [BOLT] Fix runtime/instrument-wrong-target.s test (PR #82858)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 17:53:08 PST 2024


https://github.com/ayermolo created https://github.com/llvm/llvm-project/pull/82858

Test was failing when only X86 was specified for LLVM_TARGETS_TO_BUILD. Changed so that it will now report unsupporeted.

For "X86;AArch64" it still passes.
For "X86" reports UNSUPPORTED: BOLT :: runtime/instrument-wrong-target.s (1 of 1)

>From 56eb43c9b9b76eecdad511f8840d7de8db4ed381 Mon Sep 17 00:00:00 2001
From: Alexander Yermolovich <ayermolo at meta.com>
Date: Fri, 23 Feb 2024 17:48:00 -0800
Subject: [PATCH] [BOLT] Fix runtime/instrument-wrong-target.s test

Test was failing when only X86 was specified for LLVM_TARGETS_TO_BUILD. Changed
so that it will now report unsupporeted.

For "X86;AArch64" it still passes.
For "X86" reports UNSUPPORTED: BOLT :: runtime/instrument-wrong-target.s (1 of
1)
---
 bolt/test/runtime/instrument-wrong-target.s | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bolt/test/runtime/instrument-wrong-target.s b/bolt/test/runtime/instrument-wrong-target.s
index 31cae734a0bffd..b25c924ffbcc0f 100644
--- a/bolt/test/runtime/instrument-wrong-target.s
+++ b/bolt/test/runtime/instrument-wrong-target.s
@@ -1,7 +1,8 @@
 # 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
+# REQUIRES: 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



More information about the llvm-commits mailing list