[PATCH] D48448: [X86] Correct the inline assembly implementations of __movsb/w/d/q and __stosw/d/q to mark registers/memory as modified

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 21 11:08:13 PDT 2018


craig.topper created this revision.
craig.topper added reviewers: rnk, echristo.

The inline assembly for these didn't mark that edi, esi, ecx are modified by movs/stos instruction. It also didn't mark that memory is modified.

This issue was reported to llvm-dev last year http://lists.llvm.org/pipermail/cfe-dev/2017-November/055863.html but no bug was ever filed.


https://reviews.llvm.org/D48448

Files:
  lib/Headers/intrin.h
  test/CodeGen/ms-intrinsics.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48448.152346.patch
Type: text/x-patch
Size: 6567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180621/a7bce8a7/attachment-0001.bin>


More information about the cfe-commits mailing list