1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/DebugInfo/AArch64/eh-frame.ll
Fangrui Song 512d666f40 [DebugInfo] Respect relocations when decoding DW_EH_PE_sdata4 & DW_EH_PE_sdata8 and support R_ARM_REL32
The addresses in llvm-dwarfdump --eh-frame output for object files are closer to readelf -wf output now.
2020-07-18 09:00:50 -07:00

21 lines
464 B
LLVM

; RUN: llc -filetype=obj -mtriple=aarch64 %s -o %t.o
; RUN: llvm-readobj -r %t.o | FileCheck %s --check-prefix=REL32
; RUN: llvm-dwarfdump --eh-frame %t.o 2>&1 | FileCheck %s
; REL32: R_AARCH64_PREL32 .text 0x0
; REL32-NEXT: R_AARCH64_PREL32 .text 0x4
; CHECK-NOT: warning:
; CHECK: FDE cie=00000000 pc=00000000...00000004
; CHECK: FDE cie=00000000 pc=00000004...00000008
define void @foo() {
entry:
ret void
}
define void @bar() {
entry:
ret void
}