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

    <tr>
        <th>Summary</th>
        <td>
            `inteldialect` does not handle labels `0:` or `1:` on `x86`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    The below code:

```llvm
define void @demo() {
start:
  call void asm inteldialect "0: jmp 0b", ""()
  ret void
}
```

Should build. Instead, it provides an inaccurate error message:

```text
<inline asm>:2:5: error: invalid operand for instruction
        0: jmp 0b
           ^
Compiler returned: 1
```

This only happens on `x86` and `x86_64`, other platforms seem not to be affected. This looks like another case of https://github.com/llvm/llvm-project/issues/35492, cc @rnk who authored 953bdce68db36f1fec5299f9525b1b87c491a8a8.

Link: https://llvm.godbolt.org/z/WWvWMzznK
Original repro: https://rust.godbolt.org/z/qP3Kd3Ts7
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU02PpDYQ_TXmUkoLbKDhwGF2ZluKNlEiZaQ5Rv4owDvGRWzTuzu_PjJsJ735OgQhTJX9nl49PcsY7eQRB9a8Y81TIbc0UxjSFChG0RSKzJfheUZQ6OgTaDLIxAMrn1h5-7bl8Tp3XY6WwdF6hCtZA6wuDS7EeMd4D-z87jgSkwzpDyYALZ07ADIuYH1CZ6x0qBMwzksmHuDjskKpGOeMP8K-8IP1xhEw7RRfdZ2f_iLwXvUvM23OgNqsMyf43seE0mRim2ANdLUGI0gP1kuttyATAoZAARaMUU7_akLCz-lrSzxa77IPMi5MvGfigTPx0ORRdqr8Y_1VOmuAVgzSGxgpgPUxhU0nS_422fHcu_DNBgCw5v3Re6RltQ5DdmMLHk0GVf_hxPNsI5B3X2CW64o-F8Da8nPXsraErOqofm3rDOWPQGnGAKuTaaSwRIiIC3hKkAgUghxH1AnNCXZuR_QawdlXBOkPqJYRgUaYU1pjtpJfGL9MNs2bOmlaGL_saTqW79ZAH1Enxi82xg0j4xfR1P0eBK1zxIJ_hU8zwRFfNNA3QhmNbWeUaMdqRN3wvh_7hjeqUt1Z130lO9md7q34wfrXbNe3srKE00RGkUsnChPjlzfGLy8v15cf3978hwP7U7CT9dJBwDXQ31nCFtM_sPz2s_hgxHM8F2YQphe9LHCozrwSvC-rrpiHc6VG3feox55LVWnsWsWxLrlsxro2bWEHXvK6PFdd1TVt050q06nSSGyNEH2LhtUlLtK60z4JhanYbRz6vqnPhZMKXbzd_zDsjqttiqwunY0p_glLNjkcWFve388cEkMY9wDM0huHcHDm3OTM5hMUclXdqruEFVtww_8PwjHEdeC_BwAA__-6F2--">