54 lines · plain
1; RUN: llc -mtriple=mipsel < %s | FileCheck %s -check-prefix=322; RUN: llc -mtriple=mips64el -mcpu=mips4 < %s | FileCheck %s -check-prefix=643; RUN: llc -mtriple=mips64el -mcpu=mips64 < %s | FileCheck %s -check-prefix=644 5@gint_ = external global i326@gLL_ = external global i647 8; 32-LABEL: store_int_float_:9; 32: trunc.w.s $f[[R0:[0-9]+]], $f{{[0-9]+}}10; 32: swc1 $f[[R0]],11 12define void @store_int_float_(float %a) {13entry:14 %conv = fptosi float %a to i3215 store i32 %conv, ptr @gint_, align 416 ret void17}18 19; 32-LABEL: store_int_double_:20; 32: trunc.w.d $f[[R0:[0-9]+]], $f{{[0-9]+}}21; 32: swc1 $f[[R0]],22; 64-LABEL: store_int_double_:23; 64: trunc.w.d $f[[R0:[0-9]+]], $f{{[0-9]+}}24; 64: swc1 $f[[R0]],25 26define void @store_int_double_(double %a) {27entry:28 %conv = fptosi double %a to i3229 store i32 %conv, ptr @gint_, align 430 ret void31}32 33; 64-LABEL: store_LL_float_:34; 64: trunc.l.s $f[[R0:[0-9]+]], $f{{[0-9]+}}35; 64: sdc1 $f[[R0]],36 37define void @store_LL_float_(float %a) {38entry:39 %conv = fptosi float %a to i6440 store i64 %conv, ptr @gLL_, align 841 ret void42}43 44; 64-LABEL: store_LL_double_:45; 64: trunc.l.d $f[[R0:[0-9]+]], $f{{[0-9]+}}46; 64: sdc1 $f[[R0]],47 48define void @store_LL_double_(double %a) {49entry:50 %conv = fptosi double %a to i6451 store i64 %conv, ptr @gLL_, align 852 ret void53}54