This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by craig.topper on Jun 21 2018, 11:08 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Jun 21 2018, 11:08 AM
echristo accepted this revision.Jun 21 2018, 11:48 AM
This revision is now accepted and ready to land.Jun 21 2018, 11:48 AM
This revision was automatically updated to reflect the committed changes.