https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83930
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Sat Mar 3 13:14:58 2018 New Revision: 258170 URL: https://gcc.gnu.org/viewcvs?rev=258170&root=gcc&view=rev Log: Backported from mainline 2018-01-20 Jakub Jelinek <ja...@redhat.com> PR target/83930 * simplify-rtx.c (simplify_binary_operation_1) <case UMOD>: Use UINTVAL (trueop1) instead of INTVAL (op1). * gcc.dg/pr83930.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr83930.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/simplify-rtx.c branches/gcc-7-branch/gcc/testsuite/ChangeLog