1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 21:13:02 +02:00
llvm-mirror/test/CodeGen/X86/relax-reloc.ll
Rafael Espindola 388e5ba24b Change RelaxELFRelocations for llc.
As a developer tool it makes sense for it to use the new relocations.

llvm-svn: 273019
2016-06-17 17:43:41 +00:00

16 lines
413 B
LLVM

; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic
; RUN: llvm-readobj -r %t.o | FileCheck %s
; CHECK: Section ({{.}}) .rela.text {
; CHECK-NEXT: 0x3 R_X86_64_REX_GOTPCRELX a 0xFFFFFFFFFFFFFFFC
; CHECK-NEXT: }
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@a = external global i32
define i32 @f() {
%t = load i32, i32* @a
ret i32 %t
}