aboutsummaryrefslogtreecommitdiff
path: root/target-i386/ops_sse.h
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-01 01:52:37 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-01 01:52:37 +0000
commitdcfd12b83ef9b09f3716793c3275ff399ce204d5 (patch)
tree3e47fbd2372e0cd61249f4cd24ba095a951e4e87 /target-i386/ops_sse.h
parentd0513623aee6bca7b6458a12fc652ac028f03753 (diff)
Fix pmovsx* / pmovzx* SSE instructions (original fix by Frank Mehnert).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5841 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/ops_sse.h')
-rw-r--r--target-i386/ops_sse.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/target-i386/ops_sse.h b/target-i386/ops_sse.h
index 6ba333f7c0..720d97c47e 100644
--- a/target-i386/ops_sse.h
+++ b/target-i386/ops_sse.h
@@ -1499,12 +1499,12 @@ void glue(name, SUFFIX) (Reg *d, Reg *s)\
{\
d->elem(0) = F(0);\
d->elem(1) = F(1);\
- d->elem(2) = F(2);\
- d->elem(3) = F(3);\
- if (num > 3) {\
- d->elem(4) = F(4);\
- d->elem(5) = F(5);\
- if (num > 5) {\
+ if (num > 2) {\
+ d->elem(2) = F(2);\
+ d->elem(3) = F(3);\
+ if (num > 4) {\
+ d->elem(4) = F(4);\
+ d->elem(5) = F(5);\
d->elem(6) = F(6);\
d->elem(7) = F(7);\
}\