[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 08/10] target-i386: SSE4.2: fix pcmpXstrX instructio
From: |
Aurelien Jarno |
Subject: |
[Qemu-devel] [PATCH 08/10] target-i386: SSE4.2: fix pcmpXstrX instructions with "Masked(-)" polarity |
Date: |
Tue, 26 Mar 2013 20:01:40 +0100 |
valids can equals to -1 if the reg/mem string is empty. Change the
expression to have an empty xor mask in that case.
Signed-off-by: Aurelien Jarno <address@hidden>
---
target-i386/ops_sse.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target-i386/ops_sse.h b/target-i386/ops_sse.h
index 77ab410..a0bac07 100644
--- a/target-i386/ops_sse.h
+++ b/target-i386/ops_sse.h
@@ -2050,7 +2050,7 @@ static inline unsigned pcmpxstrx(CPUX86State *env, Reg
*d, Reg *s,
res ^= (2 << upper) - 1;
break;
case 3:
- res ^= (2 << valids) - 1;
+ res ^= (1 << (valids + 1)) - 1;
break;
}
--
1.7.10.4
- [Qemu-devel] [PATCH 00/10] target-i386: fix and enable SSE4.1 and SSE4.2, Aurelien Jarno, 2013/03/26
- [Qemu-devel] [PATCH 08/10] target-i386: SSE4.2: fix pcmpXstrX instructions with "Masked(-)" polarity,
Aurelien Jarno <=
- [Qemu-devel] [PATCH 05/10] target-i386: SSE4.2: fix pcmpXstrX instructions in "Ranges" mode, Aurelien Jarno, 2013/03/26
- [Qemu-devel] [PATCH 03/10] target-i386: SSE4.2: fix pcmpXstri instructions, Aurelien Jarno, 2013/03/26
- [Qemu-devel] [PATCH 04/10] target-i386: SSE4.2: fix pcmpXstrm instructions, Aurelien Jarno, 2013/03/26
- [Qemu-devel] [PATCH 02/10] target-i386: SSE4.2: fix pcmpgtq instruction, Aurelien Jarno, 2013/03/26
- [Qemu-devel] [PATCH 09/10] target-i386: enable SSE4.1 and SSE4.2 in TCG mode, Aurelien Jarno, 2013/03/26