re PR rtl-optimization/88563 (wrong code with -O2 -fno-code-hoisting -fno-tree-ccp...
authorJakub Jelinek <jakub@redhat.com>
Fri, 21 Dec 2018 15:54:55 +0000 (16:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 21 Dec 2018 15:54:55 +0000 (16:54 +0100)
commitf9f248c8b86bbc5c69d4c3083d617736a65d7244
treeb0383a5bf34aa046177c0201b4320f8670639d21
parent247c45b265ff85428aafb7cfcf6f968936ad48f3
re PR rtl-optimization/88563 (wrong code with -O2 -fno-code-hoisting -fno-tree-ccp -fno-tree-dominator-opts -fno-tree-forwprop -fno-tree-fre -fno-tree-pre -fno-tree-vrp)

PR rtl-optimization/88563
* expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Swap innermode
and mode arguments to convert_modes.  Likewise swap mode and word_mode
arguments.  Handle both arguments with VOIDmode before convert_modes
of one of them.  Formatting fixes.

* gcc.dg/pr88563.c: New test.

From-SVN: r267326
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr88563.c [new file with mode: 0644]