[llvm-bugs] [Bug 34174] New: __stosb intrinsic handled incorrectly

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Aug 12 13:04:39 PDT 2017


            Bug ID: 34174
           Summary: __stosb intrinsic handled incorrectly
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: ignacio.slipknot at gmail.com
                CC: llvm-bugs at lists.llvm.org

__stosb should generate a "rep stosb" instruction.
In the current implementation, however, it creates a call to memset.
This is unacceptable when you need the exact behavior of this intrinsic.

One possible solution is to insert inline assembly like
clang/lib/Headers/intrin.h does, that way it shouldn't be optimized away.

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/20170812/d78542bf/attachment.html>

More information about the llvm-bugs mailing list