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