Commit 733484b5 by Richard Stallman

(extract_split_bit_field): Change shift count calculation

in little-endian case.

From-SVN: r5794
parent 6358b911
...@@ -1503,9 +1503,9 @@ extract_split_bit_field (op0, bitsize, bitpos, unsignedp, align) ...@@ -1503,9 +1503,9 @@ extract_split_bit_field (op0, bitsize, bitpos, unsignedp, align)
part = expand_shift (LSHIFT_EXPR, word_mode, part, part = expand_shift (LSHIFT_EXPR, word_mode, part,
build_int_2 (bitsize - bitsdone, 0), 0, 1); build_int_2 (bitsize - bitsdone, 0), 0, 1);
#else #else
if (bitsdone != 0) if (bitsdone != thissize)
part = expand_shift (LSHIFT_EXPR, word_mode, part, part = expand_shift (LSHIFT_EXPR, word_mode, part,
build_int_2 (bitsdone, 0), 0, 1); build_int_2 (bitsdone - thissize, 0), 0, 1);
#endif #endif
if (first) if (first)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment