1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/CodeGen/X86/ga-offset2.ll
Rafael Espindola e90363afbd Use shouldAssumeDSOLocal in isOffsetFoldingLegal.
This makes it slightly more powerful for dynamic-no-pic.

llvm-svn: 273704
2016-06-24 18:48:36 +00:00

11 lines
285 B
LLVM

; RUN: llc < %s -mtriple=i686-apple-darwin -relocation-model=dynamic-no-pic | FileCheck %s
@var = external hidden global i32
@p = external hidden global i32*
define void @f() {
; CHECK: movl $_var+40, _p
store i32* getelementptr (i32, i32* @var, i64 10), i32** @p
ret void
}