1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/X86/fp128-store.ll
Fangrui Song c2a599b0fa [X86][test] Add explicit dso_local to definitions in ELF static relocation model tests
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.
2020-12-30 14:40:50 -08:00

15 lines
485 B
LLVM

; RUN: llc < %s -O2 -mtriple=x86_64-linux-android -mattr=+mmx | FileCheck %s
; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu -mattr=+mmx | FileCheck %s
; __float128 myFP128 = 1.0L; // x86_64-linux-android
@myFP128 = dso_local global fp128 0xL00000000000000003FFF000000000000, align 16
define dso_local void @set_FP128(fp128 %x) {
entry:
store fp128 %x, fp128* @myFP128, align 16
ret void
; CHECK-LABEL: set_FP128:
; CHECK: movaps %xmm0, myFP128(%rip)
; CHECK-NEXT: retq
}