OSDN Git Service

5ac22490ff02882b5fb7f649df9174908bef9a72
[android-x86/external-llvm.git] / test / CodeGen / Mips / Fast-ISel / fpext.ll
1 ; RUN: llc -march=mipsel -relocation-model=pic -O0 -mips-fast-isel -fast-isel-abort=1 -mcpu=mips32r2 \
2 ; RUN:     < %s | FileCheck %s
3 ; RUN: llc -march=mipsel -relocation-model=pic -O0 -mips-fast-isel -fast-isel-abort=1 -mcpu=mips32 \
4 ; RUN:     < %s | FileCheck %s
5
6 @f = global float 0x40147E6B80000000, align 4
7 @d_f = common global double 0.000000e+00, align 8
8 @.str = private unnamed_addr constant [6 x i8] c"%f  \0A\00", align 1
9
10 ; Function Attrs: nounwind
11 define void @dv() #0 {
12 entry:
13   %0 = load float, float* @f, align 4
14   %conv = fpext float %0 to double
15 ; CHECK: cvt.d.s  $f{{[0-9]+}}, $f{{[0-9]+}}
16   store double %conv, double* @d_f, align 8
17   ret void
18 }
19
20
21 attributes #1 = { nounwind }