Commit dcfd12b83ef9b09f3716793c3275ff399ce204d5

Authored by balrog
1 parent d0513623

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
Showing 1 changed file with 6 additions and 6 deletions
target-i386/ops_sse.h
... ... @@ -1499,12 +1499,12 @@ void glue(name, SUFFIX) (Reg *d, Reg *s)\
1499 1499 {\
1500 1500 d->elem(0) = F(0);\
1501 1501 d->elem(1) = F(1);\
1502   - d->elem(2) = F(2);\
1503   - d->elem(3) = F(3);\
1504   - if (num > 3) {\
1505   - d->elem(4) = F(4);\
1506   - d->elem(5) = F(5);\
1507   - if (num > 5) {\
  1502 + if (num > 2) {\
  1503 + d->elem(2) = F(2);\
  1504 + d->elem(3) = F(3);\
  1505 + if (num > 4) {\
  1506 + d->elem(4) = F(4);\
  1507 + d->elem(5) = F(5);\
1508 1508 d->elem(6) = F(6);\
1509 1509 d->elem(7) = F(7);\
1510 1510 }\
... ...