[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 45/48] target-arm: fix neon vcvt fixed-point
From: |
Riku Voipio |
Subject: |
[Qemu-devel] [PATCH 45/48] target-arm: fix neon vcvt fixed-point |
Date: |
Fri, 26 Mar 2010 16:07:05 +0000 |
From: Juha Riihimäki <address@hidden>
Signed-Off-By: Riku Voipio <address@hidden>
Signed-off-by: Juha Riihimäki <address@hidden>
---
target-arm/translate.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/target-arm/translate.c b/target-arm/translate.c
index 92c8a1a..fd3a72e 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -4874,20 +4874,21 @@ static int disas_neon_data_insn(CPUState * env,
DisasContext *s, uint32_t insn)
if (!(insn & (1 << 21)) || (q && ((rd | rm) & 1))) {
return 1;
}
+ shift = 64 - ((insn >> 16) & 0x3f);
for (pass = 0; pass < (q ? 4 : 2); pass++) {
tcg_gen_ld_f32(cpu_F0s, cpu_env,
neon_reg_offset(rm, pass));
if (op & 1) {
if (u) {
- gen_vfp_ulto(0, shift);
+ gen_vfp_toul(0, shift);
} else {
- gen_vfp_slto(0, shift);
+ gen_vfp_tosl(0, shift);
}
} else {
if (u) {
- gen_vfp_toul(0, shift);
+ gen_vfp_ulto(0, shift);
} else {
- gen_vfp_tosl(0, shift);
+ gen_vfp_slto(0, shift);
}
}
tcg_gen_st_f32(cpu_F0s, cpu_env,
--
1.6.5
- [Qemu-devel] [PATCH 18/48] make cursor grab optional, (continued)
- [Qemu-devel] [PATCH 18/48] make cursor grab optional, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 47/48] target-arm: fix neon vshll (shift < max), Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 38/48] target-arm: fix neon vrshl instruction, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 40/48] target-arm: fix neon v(r)sra instructions, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 39/48] target-arm: fix neon vrshr instruction, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 25/48] blizzard: fix for non-32bpp host displays, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 09/48] console change headers, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 48/48] usb: fix -usbdevice option handling with no parameters, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 46/48] target-arm: fix neon vrsqrts instruction, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 45/48] target-arm: fix neon vcvt fixed-point,
Riku Voipio <=
- [Qemu-devel] [PATCH 43/48] target-arm: fix neon vq(r)dmulh.s16 instructions, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 42/48] target-arm: fix signed narrow 64->32 operation, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 41/48] target-arm: fix neon vld1 single element to all lanes, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 35/48] target-arm: fix neon vmon/vmvn with modified immediate, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 32/48] Add beagleboard and n900 machine definitions, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 12/48] cocoa frontend changes, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 22/48] License update, Riku Voipio, 2010/03/26
- [Qemu-devel] [PATCH 44/48] target-arm: fix neon v(q)(r)shrn instructions, Riku Voipio, 2010/03/26