https://bugs.llvm.org/show_bug.cgi?id=34174
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: unassignedb...@nondot.org
Reporter: ignacio.slipk...@gmail.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs