<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/106893>106893</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            LLVM allows usage of add instead of addi inside an inline assembly
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          mekosko
      </td>
    </tr>
</table>

<pre>
    When add is used with immediate values llvm just replaces add with addi without any errors and warnings.

https://godbolt.org/z/c145YddxK

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckEGP2yAQhX8NvqC1MLYT-8Bhq5Uv3V5b9Th4xja7GCIGJ01_fWUnUqW9ACPeg_c-YHZzIDKi_SbatwK2vMRkVvqM_BkLG_Fufi0UJCBKx3JjQnlzeZFuXQkdZJJX8Bux9P66yo-Ns0x08TASH6ZDDIjuOMUtSwh3SSnFxBICyhuk4MLMpVBvQr0-1iXnC4v6VehB6GGOaKPPZUyz0MNfoYexatrfiH--P-QFmhr7uoeCTHXWbdWd-lNfLKaeFDb9ZG2H9XmiDpqxRWyrCbG249gWzmilG9WrqlL1SfUlgmpqW3W6s9ScaRSNohWcL_d-e4LCMW9kKnXq-rrwYMnzgU_rQDd53Aqtd5rJ7KYXu80sGuUdZ_7_THbZk3l___lDgvfxtsOFmWScHrADZwJ8jm6fHZKEIF3wLpAEZlqtvxdb8uYLL5eXzZZjXIUe9g-f28slxQ8as9DDEZOFHp49rkb_CwAA___DaKwE">