36 lines · plain
1; RUN: llc -mtriple=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32r2 \2; RUN: < %s | FileCheck %s3; RUN: llc -mtriple=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32 \4; RUN: < %s | FileCheck %s5 6 7@f = global float 0x40D6E83280000000, align 48@d = global double 0x4132D68780000000, align 89@i_f = common global i32 0, align 410@i_d = common global i32 0, align 411@.str = private unnamed_addr constant [5 x i8] c"%i \0A\00", align 112 13; Function Attrs: nounwind14define void @ifv() {15entry:16; CHECK-LABEL: .ent ifv17 %0 = load float, ptr @f, align 418 %conv = fptosi float %0 to i3219; CHECK: trunc.w.s $f[[REG:[0-9]+]], $f{{[0-9]+}}20; CHECK: mfc1 ${{[0-9]+}}, $f[[REG]]21 store i32 %conv, ptr @i_f, align 422 ret void23}24 25; Function Attrs: nounwind26define void @idv() {27entry:28; CHECK-LABEL: .ent idv29 %0 = load double, ptr @d, align 830 %conv = fptosi double %0 to i3231; CHECK: trunc.w.d $f[[REG:[0-9]+]], $f{{[0-9]+}}32; CHECK: mfc1 ${{[0-9]+}}, $f[[REG]]33 store i32 %conv, ptr @i_d, align 434 ret void35}36