diff options
Diffstat (limited to 'target-mips/translate.c')
-rw-r--r-- | target-mips/translate.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target-mips/translate.c b/target-mips/translate.c index 7ad8ebddf7..c0de12b0fb 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -1675,6 +1675,13 @@ static void gen_farith (DisasContext *ctx, int fmt, int ft, int fs, int fd, int GEN_STORE_FTN_FREG(fd, WT2); opn = "ceil.w.d"; break; + case FOP(33, 16): /* cvt.d.s */ + CHECK_FR(ctx, fs | fd); + GEN_LOAD_FREG_FTN(WT0, fs); + gen_op_float_cvtd_s(); + GEN_STORE_FTN_FREG(fd, DT2); + opn = "cvt.d.s"; + break; case FOP(33, 20): /* cvt.d.w */ CHECK_FR(ctx, fs | fd); GEN_LOAD_FREG_FTN(WT0, fs); @@ -1782,6 +1789,13 @@ static void gen_farith (DisasContext *ctx, int fmt, int ft, int fs, int fd, int GEN_STORE_FTN_FREG(fd, WT2); opn = "trunc.w.s"; break; + case FOP(32, 17): /* cvt.s.d */ + CHECK_FR(ctx, fs | fd); + GEN_LOAD_FREG_FTN(WT0, fs); + gen_op_float_cvts_d(); + GEN_STORE_FTN_FREG(fd, WT2); + opn = "cvt.s.d"; + break; case FOP(32, 20): /* cvt.s.w */ CHECK_FR(ctx, fs | fd); GEN_LOAD_FREG_FTN(WT0, fs); |