PR rtl-optimization/85376
commit48dcb21f365955c0dce9abdd31684bd131b08e0f
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Apr 2018 19:39:11 +0000 (13 19:39 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Apr 2018 19:39:11 +0000 (13 19:39 +0000)
treee69206619ac279de2033eb72eecaa2dea9038667
parent4910e96964a257b8414783a70675b1ca1c141834
PR rtl-optimization/85376
* simplify-rtx.c (simplify_const_unary_operation): For CLZ and CTZ and
zero op0, if C?Z_DEFINED_VALUE_AT_ZERO is false, return NULL_RTX
instead of a specific value.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259377 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr85376.c [new file with mode: 0644]