Issue |
98947
|
Summary |
Clang doesn't accept LOCK prefix in assembler
|
Labels |
clang
|
Assignees |
|
Reporter |
VorfeedCanal
|
As you can see all versions of GCC, even ancient ones accept `lock` as prefix: https://godbolt.org/z/q83EP7vc8
```
asm("LOCK CMPXCHGW %DI, 32768(%EDI,%EDI,8)");
```
Clang rejects it and if you put `LOCK` on separate line it comes before other prefixes while GCC puts it after.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs