mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
92f2c530f2
They are currently implicit because TargetMachine::shouldAssumeDSOLocal implies dso_local. For external data, clang -fno-pic emits the dso_local specifier for ELF and non-MinGW COFF. Adding explicit dso_local makes these tests in align with the clang behavior and helps implementing an option to use GOT indirection for external data access in -fno-pic mode (to avoid copy relocations).
13 lines
442 B
LLVM
13 lines
442 B
LLVM
; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s -o /dev/null
|
|
; PR7653
|
|
|
|
@__FUNCTION__.1623 = external dso_local constant [4 x i8] ; <[4 x i8]*> [#uses=1]
|
|
|
|
define void @foo() nounwind {
|
|
entry:
|
|
tail call void asm sideeffect "", "s,i,~{fpsr},~{flags}"(i8* getelementptr
|
|
inbounds ([4 x i8], [4 x i8]* @__FUNCTION__.1623, i64 0, i64 0), i8* getelementptr
|
|
inbounds ([4 x i8], [4 x i8]* @__FUNCTION__.1623, i64 0, i64 0)) nounwind
|
|
ret void
|
|
}
|