mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
and PIC: Allow FDE references outside the +/-2GB range supported by PC relative offsets for code models other than small/medium. For JIT application, memory layout is less controlled and can result in truncations otherwise. Patch from Akos Kiss. Differential Revision: http://reviews.llvm.org/D6079 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222760 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
389 B
ArmAsm
14 lines
389 B
ArmAsm
// RUN: llvm-mc -filetype=obj %s -o - -triple x86_64-pc-linux \
|
|
// RUN: -relocation-model=pic -code-model=small \
|
|
// RUN: | llvm-objdump -r - | FileCheck --check-prefix=X86-64 %s
|
|
// RUN: llvm-mc -filetype=obj %s -o - -triple i686-pc-linux | llvm-objdump -r - | FileCheck --check-prefix=I686 %s
|
|
|
|
// PR15448
|
|
|
|
func:
|
|
.cfi_startproc
|
|
.cfi_endproc
|
|
|
|
// X86-64: R_X86_64_PC32
|
|
// I686: R_386_PC32
|