mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
c2a599b0fa
TargetMachine::shouldAssumeDSOLocal currently implies dso_local for such definitions. Adding explicit dso_local makes these tests align with the clang -fno-pic behavior and allow the removal of the TargetMachine::shouldAssumeDSOLocal special case.
12 lines
405 B
LLVM
12 lines
405 B
LLVM
; RUN: llc < %s -mtriple=x86_64-linux -relocation-model=static | FileCheck %s
|
|
|
|
@ptr = dso_local global i32* null
|
|
@dst = dso_local global [131072 x i32] zeroinitializer
|
|
|
|
define dso_local void @foo() nounwind {
|
|
; This store should fold to a single mov instruction.
|
|
; CHECK: movq $dst+64, ptr(%rip)
|
|
store i32* getelementptr ([131072 x i32], [131072 x i32]* @dst, i32 0, i32 16), i32** @ptr
|
|
ret void
|
|
}
|