From 733484b5d62fe6104f83bcc292caff83b0b14727 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 18 Oct 1993 20:17:08 +0000 Subject: [PATCH] (extract_split_bit_field): Change shift count calculation in little-endian case. From-SVN: r5794 --- gcc/expmed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/expmed.c b/gcc/expmed.c index bb22a05851b..93298339dfc 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -1503,9 +1503,9 @@ extract_split_bit_field (op0, bitsize, bitpos, unsignedp, align) part = expand_shift (LSHIFT_EXPR, word_mode, part, build_int_2 (bitsize - bitsdone, 0), 0, 1); #else - if (bitsdone != 0) + if (bitsdone != thissize) part = expand_shift (LSHIFT_EXPR, word_mode, part, - build_int_2 (bitsdone, 0), 0, 1); + build_int_2 (bitsdone - thissize, 0), 0, 1); #endif if (first) -- 2.30.2