https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81759
--- Comment #3 from Andrew Pinski ---
(In reply to Daniel Fruzynski from comment #2)
> Looks that __builtin_ffs does not check if input value is nonzero at all.
> Assembler code for following code also has unnecessary instructions:
>
> [code]
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81759
--- Comment #2 from Daniel Fruzynski ---
Looks that __builtin_ffs does not check if input value is nonzero at all.
Assembler code for following code also has unnecessary instructions:
[code]
unsigned int test(unsigned int n)
{
if (n == 0)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81759
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81759
Andrew Pinski changed:
What|Removed |Added
Keywords||missed-optimization
Target|