aboutsummaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 1fb6317..3143f38 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -921,7 +921,10 @@ store_integral_bit_field (rtx op0, opt_scalar_int_mode op0_mode,
}
subreg_off = bitnum / BITS_PER_UNIT;
- if (validate_subreg (fieldmode, GET_MODE (arg0), arg0, subreg_off))
+ if (validate_subreg (fieldmode, GET_MODE (arg0), arg0, subreg_off)
+ /* STRICT_LOW_PART must have a non-paradoxical subreg as
+ operand. */
+ && !paradoxical_subreg_p (fieldmode, GET_MODE (arg0)))
{
arg0 = gen_rtx_SUBREG (fieldmode, arg0, subreg_off);