summaryrefslogtreecommitdiffstats
path: root/target-ppc/op.c
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-11 00:33:08 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-11 00:33:08 +0000
commit9c7e37e7fad48f6e7bbafa29f7980a4a9bf191b7 (patch)
treefc76114a27a92796895ecb341b875c19ef0d5d07 /target-ppc/op.c
parentc3e10c7b4377c1cbc0a4fbc12312c2cf41c0cda7 (diff)
downloadhqemu-9c7e37e7fad48f6e7bbafa29f7980a4a9bf191b7.zip
hqemu-9c7e37e7fad48f6e7bbafa29f7980a4a9bf191b7.tar.gz
Fix POWER abs & abso computation.
Fix PowerPC SPE evabs & evneg (thanks to Fabrice Bellard for reporting the bug) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3575 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/op.c')
-rw-r--r--target-ppc/op.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/op.c b/target-ppc/op.c
index bbc5c5b..81c426c 100644
--- a/target-ppc/op.c
+++ b/target-ppc/op.c
@@ -2199,9 +2199,9 @@ void OPPROTO op_store_601_batu (void)
/* XXX: those micro-ops need tests ! */
void OPPROTO op_POWER_abs (void)
{
- if (T0 == INT32_MIN)
+ if ((int32_t)T0 == INT32_MIN)
T0 = INT32_MAX;
- else if (T0 < 0)
+ else if ((int32_t)T0 < 0)
T0 = -T0;
RETURN();
}
OpenPOWER on IntegriCloud