re PR middle-end/80100 (simplify-rtx.c sanitizer detects undefined behaviour with...
authorJakub Jelinek <jakub@redhat.com>
Tue, 11 Apr 2017 17:21:51 +0000 (19:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 11 Apr 2017 17:21:51 +0000 (19:21 +0200)
commitdf1c878ec25af7e9405b0276e6478fd996c2d3f9
treed1d5ca050c0a8ac57a6d99ab8e91004a3a1aeec0
parent8585103f053ef26a5939ec7c3a08ad77f70d2c3c
re PR middle-end/80100 (simplify-rtx.c sanitizer detects undefined behaviour with optimization)

PR middle-end/80100
* simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
left shift in unsigned HOST_WIDE_INT type.

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

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