
At the moment llvm-bolt fails when analyzing jump tables on aarch64 in case FP register spill/reload is used.
20 lines
429 B
ArmAsm
20 lines
429 B
ArmAsm
# Check that we correctly handle arm64 fp register spills in
|
|
# bolt when we are processing jump tables.
|
|
# REQUIRES: system-linux
|
|
# RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t.o
|
|
# RUN: ld.lld --emit-relocs %t.o -o %t.elf
|
|
# RUN: llvm-bolt --jump-tables=move %t.elf -o %t.bolt
|
|
|
|
.globl _foo, _start
|
|
|
|
_foo:
|
|
ret
|
|
|
|
_start:
|
|
adr x6, _foo
|
|
fmov d18,x6
|
|
fmov x5,d18
|
|
ldrb w5, [x5, w1, uxtw]
|
|
add x5, x6, w5, sxtb #2
|
|
br x5
|