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

__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.
llvm-bugs mailing list

Reply via email to