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 6 7; __float128 myFP128 = 1.0L; // x86_64-linux-android 8@my_fp128 = global fp128 0xL00000000000000003FFF000000000000, align 16 9 10define fp128 @get_fp128() { 11; CHECK-LABEL: get_fp128: 12; CHECK: # %bb.0: # %entry 13; CHECK-NEXT: movaps {{.*}}(%rip), %xmm0 14; CHECK-NEXT: retq 15entry: 16 %0 = load fp128, fp128* @my_fp128, align 16 17 ret fp128 %0 18} 19 20@TestLoadExtend.data = internal unnamed_addr constant [2 x float] [float 0x3FB99999A0000000, float 0x3FC99999A0000000], align 4 21 22define fp128 @TestLoadExtend(fp128 %x, i32 %n) { 23; CHECK-LABEL: TestLoadExtend: 24; CHECK: # %bb.0: # %entry 25; CHECK-NEXT: pushq %rax 26; CHECK-NEXT: .cfi_def_cfa_offset 16 27; CHECK-NEXT: movslq %edi, %rax 28; CHECK-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero 29; CHECK-NEXT: callq __extendsftf2 30; CHECK-NEXT: popq %rax 31; CHECK-NEXT: .cfi_def_cfa_offset 8 32; CHECK-NEXT: retq 33entry: 34 %idxprom = sext i32 %n to i64 35 %arrayidx = getelementptr inbounds [2 x float], [2 x float]* @TestLoadExtend.data, i64 0, i64 %idxprom 36 %0 = load float, float* %arrayidx, align 4 37 %conv = fpext float %0 to fp128 38 ret fp128 %conv 39} 40 41; CHECK-LABEL: my_fp128: 42; CHECK-NEXT: .quad 0x0 43; CHECK-NEXT: .quad 0x3fff000000000000 44; CHECK-NEXT: .size my_fp128, 16 45