* [Qemu-devel] [PATCH] target-ppc: Fix vcmpbfp. Unordered Case
@ 2014-10-31 16:39 Tom Musta
2014-11-03 17:55 ` Alexander Graf
0 siblings, 1 reply; 2+ messages in thread
From: Tom Musta @ 2014-10-31 16:39 UTC (permalink / raw)
To: qemu-devel, qemu-ppc; +Cc: Tom Musta, agraf
Fix the implementation of Vector Compare Bounds Single Precision.
Specifically, fix the case where the operands are unordered -- since
the result is non-zero, the CR[6] field should be set to zero.
Signed-off-by: Tom Musta <tommusta@gmail.com>
---
target-ppc/int_helper.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/target-ppc/int_helper.c b/target-ppc/int_helper.c
index eb5c6d2..dae2fea 100644
--- a/target-ppc/int_helper.c
+++ b/target-ppc/int_helper.c
@@ -708,7 +708,7 @@ static inline void vcmpbfp_internal(CPUPPCState *env, ppc_avr_t *r,
int le_rel = float32_compare_quiet(a->f[i], b->f[i], &env->vec_status);
if (le_rel == float_relation_unordered) {
r->u32[i] = 0xc0000000;
- /* ALL_IN does not need to be updated here. */
+ all_in = 1;
} else {
float32 bneg = float32_chs(b->f[i]);
int ge_rel = float32_compare_quiet(a->f[i], bneg, &env->vec_status);
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] target-ppc: Fix vcmpbfp. Unordered Case
2014-10-31 16:39 [Qemu-devel] [PATCH] target-ppc: Fix vcmpbfp. Unordered Case Tom Musta
@ 2014-11-03 17:55 ` Alexander Graf
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2014-11-03 17:55 UTC (permalink / raw)
To: Tom Musta, qemu-devel, qemu-ppc
On 31.10.14 17:39, Tom Musta wrote:
> Fix the implementation of Vector Compare Bounds Single Precision.
> Specifically, fix the case where the operands are unordered -- since
> the result is non-zero, the CR[6] field should be set to zero.
>
> Signed-off-by: Tom Musta <tommusta@gmail.com>
Thanks, applied to ppc-next.
Alex
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-03 17:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-31 16:39 [Qemu-devel] [PATCH] target-ppc: Fix vcmpbfp. Unordered Case Tom Musta
2014-11-03 17:55 ` Alexander Graf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).