<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60715>60715</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Inline Assembly Dialect Option for clang-cl
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
geometrian
</td>
</tr>
</table>
<pre>
Some performance-critical inline assembly for ia-32/amd64 compiles nicely with ordinary clang under Linux. Per [current practice](https://stackoverflow.com/a/58154963), `-masm=intel` is used to select Intel syntax for sanity (note that, as discussed at that link, various alternatives such as `.intel_syntax noprefix` are "problematic" on a technical level.) This works great.
However, on Windows with Visual Studio, there's clang-cl, and clang-cl does not recognize this option:
```text
clang-cl: warning: unknown argument ignored in clang-cl: '-masm=intel' [-Wunknown-argument]
```
Commentary for this specific argument appears to be nonexistent, and the [docs do not list](https://clang.llvm.org/docs/UsersManual.html#id12) it as supported. This is a problem because there does not seem to be an alternative way to select the assembly dialect in clang-cl. The dialect defaults to AT&T, which obviously causes various failures.
Please add support in clang-cl for `-masm=intel` or provide/document an alternate way of selecting inline assembler dialect.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsVM9u4zYTfxr6MrAhU5FsH3TIbmB8C3xFF9i0eyxG5FiahiIFDmXHffqCkuMkxQKGbZGamd8_EkW480SNqr6o6mmFU-pDbDoKA6XI6FdtsNfmRxgIRoqnEAf0htYmcmKDDtg79gQoQkPrrnAKERjXpVb6iIOtH8CEYWRHAp4NuStcOPUQomWP8QrGoe9g8pYi_J_99LqB7xRBVV_MFCP5BGNEk9iQqp6U3vcpjaLKR6WPSh8loXkJZ4onFy4bE4Y8Veljtd9WD4e6VPqg9FdQdbEeUAZVPrFP5FRdAAtMQhZSACFHJsG3vAVy9QlfZx6CntMVlN77kAhSjyl3QwHLYibJ5ZjmdXDsX_LmGSOHSQBdougx8ZkEZDJ9LlN1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