[llvm-bugs] [Bug 46079] New: Failure to use vfmadd132sd when appropriate

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 26 09:46:33 PDT 2020


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: unassignedbugs at nondot.org
          Reporter: gabravier at gmail.com
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    llvm-dev at redking.me.uk, spatel+llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200526/fdaadc96/attachment.html>


More information about the llvm-bugs mailing list