xref: /llvm-project/llvm/test/CodeGen/X86/fp128-store.ll (revision 85efa22ee6182e322beea3d0be68d060049af95a)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -O2 -mtriple=x86_64-linux-android -mattr=+mmx | FileCheck %s
3; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu -mattr=+mmx | FileCheck %s
4
5; __float128 myFP128 = 1.0L;  // x86_64-linux-android
6@myFP128 = dso_local global fp128 0xL00000000000000003FFF000000000000, align 16
7
8define dso_local void @set_FP128(fp128 %x) {
9; CHECK-LABEL: set_FP128:
10; CHECK:       # %bb.0: # %entry
11; CHECK-NEXT:    movaps %xmm0, myFP128(%rip)
12; CHECK-NEXT:    retq
13entry:
14  store fp128 %x, ptr @myFP128, align 16
15  ret void
16}
17