| Issue |
109157
|
| Summary |
Since Clang 19 `-mllvm --x86-asm-syntax=intel` seems to affect inline assembly syntax in source
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
lhmouse
|
Hello,
I personally use Clang to translate x86 assembly between AT&T syntax and Intel syntax. Clang 18- can compile AT&T syntax to Intel syntax, as in
```
$ echo '__asm__("mov $1, %eax");' \
| clang -x c - -mllvm --x86-asm-syntax=intel -O2 -S -o - \
| grep mov
mov eax, 1
```
but Clang 19 fails to parse the source. It seems to expect Intel syntax:
```
$ echo '__asm__("mov $1, %eax");' | \
| ./llvm-mingw-20240917-ucrt-x86_64/bin/clang -x c - -mllvm --x86-asm-syntax=intel -O2 -S -o - \
| grep mov
<inline asm>:1:5: error: unknown token in _expression_
```
@MaskRay Do you have any idea whether this has something to do with #85367 ?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs