From: Jim Wilson Date: Wed, 17 Jan 1996 23:56:06 +0000 (-0800) Subject: (extract_bit_field): For multi-word bitfield, clobber target before X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34ea783bd582e392bb7e1b7ee5435601d528ab03;p=gcc.git (extract_bit_field): For multi-word bitfield, clobber target before storing to it. From-SVN: r11059 --- diff --git a/gcc/expmed.c b/gcc/expmed.c index e79a8e2a49b..dbd7eb2bb4f 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -965,6 +965,9 @@ extract_bit_field (str_rtx, bitsize, bitnum, unsignedp, if (target == 0 || GET_CODE (target) != REG) target = gen_reg_rtx (mode); + /* Indicate for flow that the entire target reg is being set. */ + emit_insn (gen_rtx (CLOBBER, VOIDmode, target)); + for (i = 0; i < nwords; i++) { /* If I is 0, use the low-order word in both field and target;