This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/81759] Improve data tracking for _pext_u64 and __builtin_ffsll


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81759

--- Comment #2 from Daniel Fruzynski <bugzilla@poradnik-webmastera.com> ---
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)
    __builtin_unreachable();
  return __builtin_ffs(n) - 1;
}
[/code]

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]