https://bugs.llvm.org/show_bug.cgi?id=46079

            Bug ID: 46079
           Summary: Failure to use vfmadd132sd when appropriate
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedb...@nondot.org
          Reporter: gabrav...@gmail.com
                CC: craig.top...@gmail.com, llvm-bugs@lists.llvm.org,
                    llvm-...@redking.me.uk, spatel+l...@rotateright.com

double f(double a, double b, double c)
{
    return a * b + c;
}

When compiled with `-O3 -mavx512f`, GCC produces this :

f(double, double, double):
  vfmadd132sd xmm0, xmm2, xmm1
  ret

Clang produces this :

f(double, double, double): # @f(double, double, double)
  vmulsd xmm0, xmm0, xmm1
  vaddsd xmm0, xmm0, xmm2
  ret

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to