Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/X86/ga-offset.ll @ 33:e4204d083e25
LLVM 3.5
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 14:32:10 +0900 |
parents | 95c75e76d11b |
children | afa8332a0e37 |
line wrap: on
line source
; RUN: llc < %s -march=x86 > %t ; RUN: not grep lea %t ; RUN: not grep add %t ; RUN: grep mov %t | count 1 ; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static > %t ; RUN: not grep lea %t ; RUN: not grep add %t ; RUN: grep mov %t | count 1 ; This store should fold to a single mov instruction. @ptr = global i32* null @dst = global [131072 x i32] zeroinitializer define void @foo() nounwind { store i32* getelementptr ([131072 x i32]* @dst, i32 0, i32 16), i32** @ptr ret void }