re PR tree-optimization/64718 (Bad 16-bit bswap replacement)
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 28 Jan 2015 10:20:19 +0000 (10:20 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Wed, 28 Jan 2015 10:20:19 +0000 (10:20 +0000)
commit8447859b3ecba626580a9b812a236ecc6438d730
tree79c23d259d3122536e27807b8eb8ee4dcdd18bb3
parent285398d2db1c0835373f9d97d95ff18b94125ad9
re PR tree-optimization/64718 (Bad 16-bit bswap replacement)

2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR tree-optimization/64718
    * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
    be a 16bit unsigned integer when n->range is 16.
    (bswap_replace): Convert src to that type if necessary for all bswap
    sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
    set in pass_optimize_bswap::execute ().

    gcc/testsuite/
    PR tree-optimization/64718
    * gcc.c-torture/execute/pr64718.c: New test.

From-SVN: r220203
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr64718.c [new file with mode: 0644]
gcc/tree-ssa-math-opts.c