re PR rtl-optimization/83565 (RTL combine pass yields wrong rotate result)
commit371ae937660d0a6e5c1ce680c775d37d7ff13ba9
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 12 Jan 2018 10:18:24 +0000 (12 10:18 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 12 Jan 2018 10:18:24 +0000 (12 10:18 +0000)
tree41fac78fb9fc33bf7665d785001199058967572c
parentc574147e6298bf5e623c1c10c0deddde8cec507b
re PR rtl-optimization/83565 (RTL combine pass yields wrong rotate result)

PR rtl-optimization/83565
* rtlanal.c (nonzero_bits1): On WORD_REGISTER_OPERATIONS machines, do
not extend the result to a larger mode for rotate operations.
(num_sign_bit_copies1): Likewise.

From-SVN: r256572
gcc/ChangeLog
gcc/rtlanal.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20180112-1.c [new file with mode: 0644]