https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82875
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Nov 22 09:57:28 2017 New Revision: 255050 URL: https://gcc.gnu.org/viewcvs?rev=255050&root=gcc&view=rev Log: PR middle-end/82875 * optabs.c (expand_doubleword_mult, expand_binop): Before calling expand_binop with *mul_widen_optab, make sure at least one of the operands doesn't have VOIDmode. * gcc.dg/pr82875.c: New test. * gcc.c-torture/compile/pr82875.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/compile/pr82875.c trunk/gcc/testsuite/gcc.dg/pr82875.c Modified: trunk/gcc/ChangeLog trunk/gcc/optabs.c trunk/gcc/testsuite/ChangeLog