On 03/09/15 15:23, Jakub Jelinek wrote:
Hi!

As mentioned in the PR, e.g. wide-int is very unhappy if the shift second
operand doesn't fit into the shift mode.
Generally, the backend shift patterns ensure that, but in debug insns
nothing enforces that.

This patch fixes that by making sure e.g. QImode shifts have always at
QImode shift amount, HImode shifts have QImode or HImode shift amount etc.

Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?

2015-03-09  Jakub Jelinek  <ja...@redhat.com>

        PR rtl-optimization/65321
        * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
        than shift mode.
        * var-tracking.c (use_narrower_mode): Likewise.

        * gcc.dg/pr65321.c: New test.
OK.

jeff

Reply via email to