Commit 30913bae9a2cf92b5a87363ec1c7d0ad1f82cdcc
1 parent
cd390083
target-i386: fix helper_pmovmskb_mmx helper
(malc) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5728 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
16 additions
and
16 deletions
target-i386/ops_sse.h
... | ... | @@ -980,23 +980,23 @@ uint32_t glue(helper_pmovmskb, SUFFIX)(Reg *s) |
980 | 980 | { |
981 | 981 | uint32_t val; |
982 | 982 | val = 0; |
983 | - val |= (s->XMM_B(0) >> 7); | |
984 | - val |= (s->XMM_B(1) >> 6) & 0x02; | |
985 | - val |= (s->XMM_B(2) >> 5) & 0x04; | |
986 | - val |= (s->XMM_B(3) >> 4) & 0x08; | |
987 | - val |= (s->XMM_B(4) >> 3) & 0x10; | |
988 | - val |= (s->XMM_B(5) >> 2) & 0x20; | |
989 | - val |= (s->XMM_B(6) >> 1) & 0x40; | |
990 | - val |= (s->XMM_B(7)) & 0x80; | |
983 | + val |= (s->B(0) >> 7); | |
984 | + val |= (s->B(1) >> 6) & 0x02; | |
985 | + val |= (s->B(2) >> 5) & 0x04; | |
986 | + val |= (s->B(3) >> 4) & 0x08; | |
987 | + val |= (s->B(4) >> 3) & 0x10; | |
988 | + val |= (s->B(5) >> 2) & 0x20; | |
989 | + val |= (s->B(6) >> 1) & 0x40; | |
990 | + val |= (s->B(7)) & 0x80; | |
991 | 991 | #if SHIFT == 1 |
992 | - val |= (s->XMM_B(8) << 1) & 0x0100; | |
993 | - val |= (s->XMM_B(9) << 2) & 0x0200; | |
994 | - val |= (s->XMM_B(10) << 3) & 0x0400; | |
995 | - val |= (s->XMM_B(11) << 4) & 0x0800; | |
996 | - val |= (s->XMM_B(12) << 5) & 0x1000; | |
997 | - val |= (s->XMM_B(13) << 6) & 0x2000; | |
998 | - val |= (s->XMM_B(14) << 7) & 0x4000; | |
999 | - val |= (s->XMM_B(15) << 8) & 0x8000; | |
992 | + val |= (s->B(8) << 1) & 0x0100; | |
993 | + val |= (s->B(9) << 2) & 0x0200; | |
994 | + val |= (s->B(10) << 3) & 0x0400; | |
995 | + val |= (s->B(11) << 4) & 0x0800; | |
996 | + val |= (s->B(12) << 5) & 0x1000; | |
997 | + val |= (s->B(13) << 6) & 0x2000; | |
998 | + val |= (s->B(14) << 7) & 0x4000; | |
999 | + val |= (s->B(15) << 8) & 0x8000; | |
1000 | 1000 | #endif |
1001 | 1001 | return val; |
1002 | 1002 | } | ... | ... |