Commit 8369f38a by DJ Delorie Committed by DJ Delorie

cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to PSImode.

* cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
PSImode.

From-SVN: r202534
parent 511daaf5
2013-09-12 DJ Delorie <dj@redhat.com>
* cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
PSImode.
2013-09-12 Martin Jambor <mjambor@suse.cz>
PR ipa/58389
......
......@@ -3154,7 +3154,12 @@ expand_debug_expr (tree exp)
&& GET_MODE (op0) != VOIDmode && GET_MODE (op1) != VOIDmode
&& GET_MODE (op0) != GET_MODE (op1))
{
if (GET_MODE_BITSIZE (GET_MODE (op0)) < GET_MODE_BITSIZE (GET_MODE (op1)))
if (GET_MODE_BITSIZE (GET_MODE (op0)) < GET_MODE_BITSIZE (GET_MODE (op1))
/* If OP0 is a partial mode, then we must truncate, even if it has
the same bitsize as OP1 as GCC's representation of partial modes
is opaque. */
|| (GET_MODE_CLASS (GET_MODE (op0)) == MODE_PARTIAL_INT
&& GET_MODE_BITSIZE (GET_MODE (op0)) == GET_MODE_BITSIZE (GET_MODE (op1))))
op1 = simplify_gen_unary (TRUNCATE, GET_MODE (op0), op1,
GET_MODE (op1));
else
......
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