* simplify-rtx.c (simplify_immed_subreg): Fix construction of
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jan 2004 08:21:15 +0000 (08:21 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Jan 2004 08:21:15 +0000 (08:21 +0000)
floating-point constants.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75540 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/simplify-rtx.c

index b729f9b..aa0010d 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
+
+       * simplify-rtx.c (simplify_immed_subreg): Fix construction of
+       floating-point constants.
+
 2004-01-08  J. Brobecker  <brobecker@gnat.com>
 
        * dwarf2out.c (subrange_type_die): Add context_die parameter.
index d5beb2e..ddf732b 100644 (file)
@@ -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);