forked from OSchip/llvm-project
[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:
parent
a2214e8f0d
commit
53ec21e3a1
|
@ -0,0 +1,2 @@
|
|||
if config.host_arch not in ['aarch64']:
|
||||
config.unsupported = True
|
|
@ -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 \
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
if config.host_arch not in ['x86', 'X86', 'x86_64']:
|
||||
config.unsupported = True
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
if config.host_arch not in ['AArch64']:
|
||||
if config.host_arch not in ['aarch64']:
|
||||
config.unsupported = True
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue