comparison test/CodeGen/X86/2009-04-12-picrel.ll @ 0:95c75e76d11b LLVM3.4

LLVM 3.4
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 13:56:28 +0900
parents
children afa8332a0e37
comparison
equal deleted inserted replaced
-1:000000000000 0:95c75e76d11b
1 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -march=x86-64 -relocation-model=static -code-model=small > %t
2 ; RUN: grep leaq %t | count 1
3
4 @dst = external global [131072 x i32]
5 @ptr = external global i32*
6
7 define void @off01(i64 %i) nounwind {
8 entry:
9 %.sum = add i64 %i, 16
10 %0 = getelementptr [131072 x i32]* @dst, i64 0, i64 %.sum
11 store i32* %0, i32** @ptr, align 8
12 ret void
13 }