llvm-6502/test/MC/X86/fde-reloc.s
Joerg Sonnenberger 21bcdeb1d6 Reapply 222538 and update tests to explicitly request small code model
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
2014-11-25 13:37:55 +00:00

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