Closed llvmbot closed 2 years ago
mentioned in issue llvm/llvm-project#7187
Thank you for the confirmation.
I checked it with small change:
void foo(void) { __asm ("rep movsd"); }
Everything works. Should we close the bug?
Yes.
I just ran the testcase again with version 6.0.0 (trunk 316603) and I can no longer reproduce the issue.
I suppose you're working on Windows, right?
Extended Description
This was revealed by https://github.com/reactos/reactos/blob/master/reactos/ntoskrnl/include/internal/i386/ke.h#L738 and then reduced to:
void foo(void) { __asm rep movsd; }
cl /c compiles it without errors, but clang-cl /c emits:
error: invalid instruction mnemonic 'movsl' __asm rep movsd; ^