summaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index d5beb2eb5fc..ddf732bdbd8 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -3201,7 +3201,7 @@ simplify_immed_subreg (enum machine_mode outermode, rtx op,
ibase = elem_bitsize - 1 - i;
else
ibase = i;
- tmp[ibase / 32] = (*vp++ & value_mask) << i % 32;
+ tmp[ibase / 32] |= (*vp++ & value_mask) << i % 32;
}
real_from_target (&r, tmp, outer_submode);