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

            Bug ID: 107933
           Summary: std::sqrt complies in intrinsics for float even if
                    --no-builtin  is provided
           Product: gcc
           Version: 12.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vincenzo.innocente at cern dot ch
  Target Milestone: ---

on x86_64

float f(float x) { return std::sqrt(x);}
compiles in
sqrtss  xmm0, xmm0
even if --no-builtin is provided
double d(double x) { return std::sqrt(x);}
calls libm as well as

float  fs(float x) { return sqrtf(x);}
double ds(double x) { return sqrt(x);}


see
https://godbolt.org/z/Mhf9hv6ns

Reply via email to