re PR rtl-optimization/78378 (wrong code when combining shift + mult + zero_extend)
authorJakub Jelinek <jakub@redhat.com>
Wed, 16 Nov 2016 23:22:16 +0000 (00:22 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 16 Nov 2016 23:22:16 +0000 (00:22 +0100)
commitfb324f02097cf4175df7834104162199bddc4269
tree72f534b97622655d109468e279fca8aefac13b32
parent8972f7e90b58d35906601e67c9c5e4b04f1a880e
re PR rtl-optimization/78378 (wrong code when combining shift + mult + zero_extend)

PR rtl-optimization/78378
* combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
inner only if pos is 0.  Fix up formatting.

* gcc.c-torture/execute/pr78378.c: New test.

From-SVN: r242526
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr78378.c [new file with mode: 0644]