aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2004-01-08 08:21:15 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2004-01-08 08:21:15 +0000
commiteffdb4934f2ccf0db9e8a9991dc88f395931cb03 (patch)
tree4093957f310cbe38cb354877920351203b3438c5 /gcc
parentfbfd77b814a92d3a83feef8553020009ab0cb430 (diff)
downloadgcc-effdb4934f2ccf0db9e8a9991dc88f395931cb03.zip
gcc-effdb4934f2ccf0db9e8a9991dc88f395931cb03.tar.gz
gcc-effdb4934f2ccf0db9e8a9991dc88f395931cb03.tar.bz2
simplify-rtx.c (simplify_immed_subreg): Fix construction of floating-point constants.
* simplify-rtx.c (simplify_immed_subreg): Fix construction of floating-point constants. From-SVN: r75540
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/simplify-rtx.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b729f9b..aa0010d3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index d5beb2e..ddf732b 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);