comparison test/CodeGen/X86/rip-rel-lea.ll @ 95:afa8332a0e37 LLVM3.8

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents 95c75e76d11b
children
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
5 ; Use %rip-relative addressing even in static mode on x86-64, because 5 ; Use %rip-relative addressing even in static mode on x86-64, because
6 ; it has a smaller encoding. 6 ; it has a smaller encoding.
7 7
8 @a = internal global double 3.4 8 @a = internal global double 3.4
9 define double* @foo() nounwind { 9 define double* @foo() nounwind {
10 %a = getelementptr double* @a, i64 0 10 %a = getelementptr double, double* @a, i64 0
11 ret double* %a 11 ret double* %a
12 12
13 ; PIC64: leaq a(%rip) 13 ; PIC64: leaq a(%rip)
14 ; PICX32: leal a(%rip) 14 ; PICX32: leal a(%rip)
15 ; PIC32: leal a@GOTOFF(%eax) 15 ; PIC32: leal a@GOTOFF(%eax)