mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-27 07:12:06 +00:00
fddccef6cb
This makes it slightly more powerful for dynamic-no-pic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273704 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
285 B
LLVM
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
|
|
}
|