[Bug middle-end/94935] New: Failure to emit call to absvsi2 for __builtin_abs with -ftrapv

gabravier at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun May 3 11:20:49 GMT 2020


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


More information about the Gcc-bugs mailing list