1 ; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=32
2 ; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s -check-prefix=64
4 @gint_ = external global i32
5 @gLL_ = external global i64
7 ; 32: store_int_float_:
8 ; 32: trunc.w.s $f[[R0:[0-9]+]], $f{{[0-9]+}}
11 define void @store_int_float_(float %a) {
13 %conv = fptosi float %a to i32
14 store i32 %conv, i32* @gint_, align 4
18 ; 32: store_int_double_:
19 ; 32: trunc.w.d $f[[R0:[0-9]+]], $f{{[0-9]+}}
21 ; 64: store_int_double_:
22 ; 64: trunc.w.d $f[[R0:[0-9]+]], $f{{[0-9]+}}
25 define void @store_int_double_(double %a) {
27 %conv = fptosi double %a to i32
28 store i32 %conv, i32* @gint_, align 4
32 ; 64: store_LL_float_:
33 ; 64: trunc.l.s $f[[R0:[0-9]+]], $f{{[0-9]+}}
36 define void @store_LL_float_(float %a) {
38 %conv = fptosi float %a to i64
39 store i64 %conv, i64* @gLL_, align 8
43 ; 64: store_LL_double_:
44 ; 64: trunc.l.d $f[[R0:[0-9]+]], $f{{[0-9]+}}
47 define void @store_LL_double_(double %a) {
49 %conv = fptosi double %a to i64
50 store i64 %conv, i64* @gLL_, align 8