Commit 8064d930 by Richard Earnshaw Committed by Richard Earnshaw

simplify-rtx.c (simplify_immed_subreg): Correctly extract the high word of an…

simplify-rtx.c (simplify_immed_subreg): Correctly extract the high word of an integral CONST_DOUBLE.

* simplify-rtx.c (simplify_immed_subreg): Correctly extract the
high word of an integral CONST_DOUBLE.

From-SVN: r75725
parent 0786ca87
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> 2004-01-09 Paul Brook <paul@codesourcery.com>
* simplify-rtx.c (simplify_plus_minus): Always generate canonical form. * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
......
...@@ -3041,7 +3041,8 @@ simplify_immed_subreg (enum machine_mode outermode, rtx op, ...@@ -3041,7 +3041,8 @@ simplify_immed_subreg (enum machine_mode outermode, rtx op,
*vp++ = CONST_DOUBLE_LOW (el) >> i; *vp++ = CONST_DOUBLE_LOW (el) >> i;
while (i < HOST_BITS_PER_WIDE_INT * 2 && i < elem_bitsize) 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; i += value_bit;
} }
/* It shouldn't matter what's done here, so fill it with /* It shouldn't matter what's done here, so fill it with
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment