[PR][BOLT][TEST] Fix tests

Summary:
Add lit.local.cfg to X86 and AArch64 folders.
Fix host_arch in lit config for AArch64.
Fix AArch64 and X86 tests.

Elvina Yakubova,
Advanced Software Technology Lab, Huawei

(cherry picked from FBD31702068)
This commit is contained in:
Elvina Yakubova 2021-10-11 11:15:08 +03:00 committed by Maksim Panchenko
parent a2214e8f0d
commit 53ec21e3a1
6 changed files with 9 additions and 4 deletions

View File

@ -0,0 +1,2 @@
if config.host_arch not in ['aarch64']:
config.unsupported = True

View File

@ -26,7 +26,7 @@ int main() {
// REQUIRES: system-linux
// RUN: %clang %cflags -no-pie %s -o %t.exe -Wl,-q \
// RUN: -Wl,--unresolved-symbols=ignore-all \
// RUN: -target aarch64-linux -fuse-ld=ld.lld \
// RUN: -fuse-ld=ld.lld \
// RUN: -nostdlib
// RUN: llvm-bolt %t.exe -o %t.bolt
// RUN: %clang %cflags -fPIC -pie %s -o %t_pie.exe -Wl,-q \

View File

@ -0,0 +1,2 @@
if config.host_arch not in ['x86', 'X86', 'x86_64']:
config.unsupported = True

View File

@ -3,7 +3,7 @@
# REQUIRES: system-linux
# RUN: %host_cc %cflags -no-pie %s -o %t.exe -Wl,-q
# RUN: %clang %cflags -no-pie %s -o %t.exe -Wl,-q
# RUN: llvm-bolt %t.exe -o %t.bolt -use-old-text=0 -lite=0 -trap-old-code
# RUN: %t.bolt

View File

@ -1,2 +1,2 @@
if config.host_arch not in ['AArch64']:
if config.host_arch not in ['aarch64']:
config.unsupported = True

View File

@ -4,7 +4,8 @@ REQUIRES: x86_64-linux
RUN: %clang -O3 %S/Inputs/internalcall-main.c %S/Inputs/internalcall.S -Wl,-q \
RUN: -o %t.exe
RUN: llvm-bolt -instrument %t.exe -o %t -relocs -lite=0
RUN: llvm-bolt -instrument %t.exe -instrumentation-file=%t.fdata \
RUN: -o %t -relocs -lite=0
RUN: %t | FileCheck %s
CHECK: Case 1: Result is: DEADBEEF