diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-10-23 21:25:11 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-10-23 21:25:11 +0000 |
commit | dd016883fb560f0dc541d4da829caa33830fd30d (patch) | |
tree | 3298f636f50927f2caf0b6956f796cefaf665fee /target-mips/op.c | |
parent | d37aca662561a54a5ea177c6c05280633fa41cb8 (diff) |
add support for cvt.s.d and cvt.d.s (Aurelien Jarno)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2198 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op.c')
-rw-r--r-- | target-mips/op.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target-mips/op.c b/target-mips/op.c index 457551725d..39db3ce959 100644 --- a/target-mips/op.c +++ b/target-mips/op.c @@ -785,12 +785,24 @@ void op_mtc1 (void) #define FLOAT_OP(name, p) void OPPROTO op_float_##name##_##p(void) +FLOAT_OP(cvtd, s) +{ + FDT2 = float32_to_float64(WT0, &env->fp_status); + DEBUG_FPU_STATE(); + RETURN(); +} FLOAT_OP(cvtd, w) { FDT2 = int32_to_float64(WT0, &env->fp_status); DEBUG_FPU_STATE(); RETURN(); } +FLOAT_OP(cvts, d) +{ + FST2 = float64_to_float32(WT0, &env->fp_status); + DEBUG_FPU_STATE(); + RETURN(); +} FLOAT_OP(cvts, w) { FST2 = int32_to_float32(WT0, &env->fp_status); |