diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2004-01-12 16:01:18 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@arm.com> | 2004-01-12 16:01:18 +0000 |
commit | 5dac057d81687fa20ed8df295160050e2d6b24f0 (patch) | |
tree | d2d187c5236a718fef9ef1c9c16d56b0ca1d73a8 | |
parent | 12907b906eab2e8f76f8de83305ccd65c6efd8f6 (diff) |
* simplify-rtx.c (simplify_immed_subreg): Correctly extract the
high word of an integral CONST_DOUBLE.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@75725 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/simplify-rtx.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 724ede3a50b..a3970ca76be 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-01-12 Richard Earnshaw <rearnsha@arm.com> + + * simplify-rtx.c (simplify_immed_subreg): Correctly extract the + high word of an integral CONST_DOUBLE. + 2004-01-09 Paul Brook <paul@codesourcery.com> * simplify-rtx.c (simplify_plus_minus): Always generate canonical form. diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 615e09f8452..5664bca9081 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -3041,7 +3041,8 @@ simplify_immed_subreg (enum machine_mode outermode, rtx op, *vp++ = CONST_DOUBLE_LOW (el) >> i; while (i < HOST_BITS_PER_WIDE_INT * 2 && i < elem_bitsize) { - *vp++ = CONST_DOUBLE_HIGH (el) >> i; + *vp++ + = CONST_DOUBLE_HIGH (el) >> (i - HOST_BITS_PER_WIDE_INT); i += value_bit; } /* It shouldn't matter what's done here, so fill it with |