[Bug target/56110] Sub-optimal code: unnecessary CMP after AND

2013-08-05 Thread ramana at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56110 Ramana Radhakrishnan ramana at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW

[Bug target/56110] Sub-optimal code: unnecessary CMP after AND

2013-03-16 Thread til...@code-monkey.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56110 --- Comment #2 from Tilman Sauerbeck til...@code-monkey.de 2013-03-16 09:01:17 UTC --- Created attachment 29677 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29677 WIP patch I'm not really sure if this patch is good or bad. The

[Bug target/56110] Sub-optimal code: unnecessary CMP after AND

2013-02-16 Thread til...@code-monkey.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56110 --- Comment #1 from Tilman Sauerbeck til...@code-monkey.de 2013-02-16 16:49:34 UTC --- Changing the literal in the test function so that it fits in 8 bits makes gcc go with the TST instruction instead of AND+CMP: unsigned f2 (unsigned x,