+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
&& 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