Revision ad1a5b78 target-i386/ops_template_mem.h

b/target-i386/ops_template_mem.h
73 73
    int count;
74 74
    target_long src;
75 75

  
76
    count = T1 & SHIFT_MASK;
77
    if (count) {
76
    if (T1 & SHIFT1_MASK) {
77
        count = T1 & SHIFT_MASK;
78 78
        src = T0;
79 79
        T0 &= DATA_MASK;
80 80
        T0 = (T0 << count) | (T0 >> (DATA_BITS - count));
......
97 97
    int count;
98 98
    target_long src;
99 99

  
100
    count = T1 & SHIFT_MASK;
101
    if (count) {
100
    if (T1 & SHIFT1_MASK) {
101
        count = T1 & SHIFT_MASK;
102 102
        src = T0;
103 103
        T0 &= DATA_MASK;
104 104
        T0 = (T0 >> count) | (T0 << (DATA_BITS - count));

Also available in: Unified diff