<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/109157>109157</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Since Clang 19 `-mllvm --x86-asm-syntax=intel` seems to affect inline assembly syntax in source
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lhmouse
</td>
</tr>
</table>
<pre>
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 ?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0lM1u6zYQhZ9mtBnIIIf6sRda-No1mkVRoDd7g5LHFhuKNEjKP29fyFaaJi3aTa8gEBIJDuZ855A6RnNyzA2U36DcZnpMvQ-N7Qc_Rs5af7g3P7O1HmgDYgti_Rxf8MwheqetveMYGTdWuxMmjyloF61OjLdlhTpGHlp7x5bTldnh-hWoesV4d0nfULsDvrjEdp5YzHXkMsdOO-z8cDaWv-xK_tMmoA3qiMb9tUGoxPw-f6lA7nqPQPV-r-Ow3wMtgWjwFwQq5FQEqOSpHAGtQH0DqhGhnHUjQr3B7tFefsMOc8wHay8D5vltWeU6Dvncj9qaR3v5r4T5d8w95n8rdAp8xsFf3ueez9QNPxXJf9bxGNsxvYNa4VEbGycmZx0iY-oZox9Dxwt8SRiZh8cq387cpc_g1PoHIJvUfRG7ANpNqPLBuNM1J0GFWMk6H7uQJnj7qgDatcYB7T4R_h8Rg9oYZ41j1HEA9ROotQS1LkGtkUPwYfoY3ZvzV4fJv7FD4yZqgWM03v2LHVCIX3R8-03fcevx7kfs9YVRuzuaA2u89px6Dph6E7HXEaMfOPXmeWAOHq8m9QiklqWqagS1yw6NOqzUSmfcyJqqqiYqKesbJUt55OVKdXKpylIKQcWqFlLwgalTMjPNTHcpSylKWujiWHTtUZQFHbpK11AIHrSxiwnswodTZmIcuZFiJcs6s7plGx_XAdHDi8nccpuF5uFgO54iFMKamOJHiWSS5ea7cR1_BBMq8R_2QSU-AqqPxymgf5o0XxzzmTduTnU2Btv0KZ3jFF_aAe1OJvVju-j8MOfsPW7n4H_nLgHtHhoj0G6WeWnojwAAAP__kV17rQ">