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

            Bug ID: 94935
           Summary: Failure to emit call to absvsi2 for __builtin_abs with
                    -ftrapv
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gabravier at gmail dot com
  Target Milestone: ---

unsigned f(int x)
{
    return __builtin_abs(x);
}

This should emit a call to __absvsi2, not get "inlined" into a call to
__subvsi3

Reply via email to