summaryrefslogtreecommitdiff
path: root/target-arm/translate.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-03 19:09:29 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-11-03 19:09:29 +0000
commitc9fb531ab2a78e731a0b450017fb5e92de79f8f8 (patch)
treeadfb3c667f53b14c795f25e33362084c8976a70a /target-arm/translate.c
parentde3526b2b3ddc8ca914e5c5766545930f5830031 (diff)
downloadqemu-c9fb531ab2a78e731a0b450017fb5e92de79f8f8.tar.gz
qemu-c9fb531ab2a78e731a0b450017fb5e92de79f8f8.tar.bz2
qemu-c9fb531ab2a78e731a0b450017fb5e92de79f8f8.zip
VFP fnmsc negative zero fix.
Signed-off-by: Paul Brook <paul@codesourcery.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5610 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm/translate.c')
-rw-r--r--target-arm/translate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-arm/translate.c b/target-arm/translate.c
index e6c1e46149..ab8cee5cd5 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -3057,9 +3057,9 @@ static int disas_vfp_insn(CPUState * env, DisasContext *s, uint32_t insn)
break;
case 3: /* nmsc: -fd - (fn * fm) */
gen_vfp_mul(dp);
- gen_mov_F1_vreg(dp, rd);
- gen_vfp_add(dp);
gen_vfp_neg(dp);
+ gen_mov_F1_vreg(dp, rd);
+ gen_vfp_sub(dp);
break;
case 4: /* mul: fn * fm */
gen_vfp_mul(dp);