summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-08 08:21:15 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-08 08:21:15 +0000
commite67a84f382089b3c39abf93fb39b2ebc1bef7b6c (patch)
tree4093957f310cbe38cb354877920351203b3438c5
parenta7011153eca1d17e5c73dbe7a516aee215835c22 (diff)
downloadppe42-gcc-e67a84f382089b3c39abf93fb39b2ebc1bef7b6c.tar.gz
ppe42-gcc-e67a84f382089b3c39abf93fb39b2ebc1bef7b6c.zip
* simplify-rtx.c (simplify_immed_subreg): Fix construction of
floating-point constants. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75540 138bc75d-0d04-0410-961f-82ee72b054a4
-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 b729f9b50ed..aa0010d379d 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 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);
OpenPOWER on IntegriCloud