1 ; RUN: llc < %s -O2 -mtriple=x86_64-linux-android -mattr=+mmx \
2 ; RUN: -enable-legalize-types-checking | FileCheck %s
3 ; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu -mattr=+mmx \
4 ; RUN: -enable-legalize-types-checking | FileCheck %s
6 ; __float128 myFP128 = 1.0L; // x86_64-linux-android
7 @my_fp128 = global fp128 0xL00000000000000003FFF000000000000, align 16
9 define fp128 @get_fp128() {
11 %0 = load fp128, fp128* @my_fp128, align 16
13 ; CHECK-LABEL: get_fp128:
14 ; CHECK: movaps my_fp128(%rip), %xmm0
18 @TestLoadExtend.data = internal unnamed_addr constant [2 x float] [float 0x3FB99999A0000000, float 0x3FC99999A0000000], align 4
20 define fp128 @TestLoadExtend(fp128 %x, i32 %n) {
22 %idxprom = sext i32 %n to i64
23 %arrayidx = getelementptr inbounds [2 x float], [2 x float]* @TestLoadExtend.data, i64 0, i64 %idxprom
24 %0 = load float, float* %arrayidx, align 4
25 %conv = fpext float %0 to fp128
27 ; CHECK-LABEL: TestLoadExtend:
28 ; CHECK: movslq %edi, %rax
29 ; CHECK-NEXT: movss TestLoadExtend.data(,%rax,4), %xmm0
30 ; CHECK-NEXT: callq __extendsftf2
34 ; CHECK-LABEL: my_fp128:
36 ; CHECK-NEXT: .quad 4611404543450677248
37 ; CHECK-NEXT: .size my_fp128, 16