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 \
3 ; RUN: -enable-legalize-types-checking | FileCheck %s
4 ; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu -mattr=+mmx \
5 ; RUN: -enable-legalize-types-checking | FileCheck %s
7 ; __float128 myFP128 = 1.0L; // x86_64-linux-android
8 @my_fp128 = dso_local global fp128 0xL00000000000000003FFF000000000000, align 16
10 define fp128 @get_fp128() {
11 ; CHECK-LABEL: get_fp128:
12 ; CHECK: # %bb.0: # %entry
13 ; CHECK-NEXT: movaps my_fp128(%rip), %xmm0
16 %0 = load fp128, ptr @my_fp128, align 16
20 @TestLoadExtend.data = internal unnamed_addr constant [2 x float] [float 0x3FB99999A0000000, float 0x3FC99999A0000000], align 4
22 define fp128 @TestLoadExtend(fp128 %x, i32 %n) {
23 ; CHECK-LABEL: TestLoadExtend:
24 ; CHECK: # %bb.0: # %entry
25 ; CHECK-NEXT: movslq %edi, %rax
26 ; CHECK-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
27 ; CHECK-NEXT: jmp __extendsftf2@PLT # TAILCALL
29 %idxprom = sext i32 %n to i64
30 %arrayidx = getelementptr inbounds [2 x float], ptr @TestLoadExtend.data, i64 0, i64 %idxprom
31 %0 = load float, ptr %arrayidx, align 4
32 %conv = fpext float %0 to fp128
36 ; CHECK-LABEL: my_fp128:
37 ; CHECK-NEXT: .quad 0x0
38 ; CHECK-NEXT: .quad 0x3fff000000000000
39 ; CHECK-NEXT: .size my_fp128, 16