mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +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).
23 lines
524 B
LLVM
23 lines
524 B
LLVM
; RUN: llc < %s -mtriple=i686-- | FileCheck %s
|
|
|
|
; CHECK-NOT: rodata
|
|
; CHECK-NOT: literal
|
|
|
|
;
|
|
; Check that no FP constants in this testcase ends up in the
|
|
; constant pool.
|
|
|
|
@G = external dso_local global float ; <float*> [#uses=1]
|
|
|
|
declare void @extfloat(float)
|
|
|
|
declare void @extdouble(double)
|
|
|
|
define void @testfloatstore() {
|
|
call void @extfloat( float 0x40934999A0000000 )
|
|
call void @extdouble( double 0x409349A631F8A090 )
|
|
store float 0x402A064C20000000, float* @G
|
|
ret void
|
|
}
|
|
|