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)
29 lines
528 B
ArmAsm
29 lines
528 B
ArmAsm
# This reproduces issue 177 from our github repo
|
|
# AARCH64_MOVW_UABS_G* relocations handling
|
|
|
|
# REQUIRES: system-linux
|
|
|
|
# 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
|
|
|
|
.text
|
|
.align 4
|
|
.global test
|
|
.type test, %function
|
|
test:
|
|
mov x0, xzr
|
|
ret
|
|
.size test, .-test
|
|
|
|
.align 4
|
|
.global main
|
|
.type main, %function
|
|
main:
|
|
movz x0, #:abs_g3:test
|
|
movk x0, #:abs_g2_nc:test
|
|
movk x0, #:abs_g1_nc:test
|
|
movk x0, #:abs_g0_nc:test
|
|
br x0
|
|
.size main, .-main
|