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

            Bug ID: 95534
           Summary: Failure to optimize out atoi when used as operand of
                    _tzcnt_u64
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gabravier at gmail dot com
  Target Milestone: ---

#include <x86intrin.h>

void f(char *s)
{
    _tzcnt_u64(atol(s));
}

This can be optimized to doing nothing.

Reply via email to