re PR target/83930 (ICE: RTL check: expected code 'const_int', have 'mem' in simplify...
authorJakub Jelinek <jakub@redhat.com>
Sat, 20 Jan 2018 09:54:06 +0000 (10:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 20 Jan 2018 09:54:06 +0000 (10:54 +0100)
commit09cbbded0d197f2da4f01be6f90c8535474b8200
tree4d6b788cd8b16520ee399d6ae4558099799e7a26
parentf18fee823bb765b1efab04025d28fcf9315fb80b
re PR target/83930 (ICE: RTL check: expected code 'const_int', have 'mem' in simplify_binary_operation_1, at simplify-rtx.c:3302)

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.

From-SVN: r256915
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83930.c [new file with mode: 0644]