[llvm-bugs] [Bug 39535] New: missing float optimization

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 2 05:17:39 PDT 2018


            Bug ID: 39535
           Summary: missing float optimization
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: trass3r 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

float test(float x)
        return x ? 0 : x;

  vxorps xmm1, xmm1, xmm1
  vcmpeqss xmm1, xmm0, xmm1
  vandps xmm0, xmm1, xmm0

gcc and icc give:
  vxorps xmm0, xmm0, xmm0


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/20181102/09aa04c4/attachment-0001.html>

More information about the llvm-bugs mailing list