[Bug tree-optimization/64718] Bad 16-bit bswap replacement
thopre01 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 28 10:20:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64718
--- Comment #5 from Thomas Preud'homme <thopre01 at gcc dot gnu.org> ---
Author: thopre01
Date: Wed Jan 28 10:20:19 2015
New Revision: 220203
URL: https://gcc.gnu.org/viewcvs?rev=220203&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/pr64718.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-math-opts.c
More information about the Gcc-bugs
mailing list