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

    <tr>
        <th>Summary</th>
        <td>
            [llvm-mca] Unfriendly error message related to operand range
        </td>
    </tr>

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

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

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

<pre>
    * file test.s
   `add      x18, x19, w20, uxtx #4`

*  reproduce cmd: 
   `llvm-mca -mtriple=aarch64 -mcpu=tsv110 -instruction-tables < test.s`

* report result
  error: expected '[su]xt[bhw]' with optional integer in range [0, 4]
   `add      x18, x19, w20, uxtx #4`

Obviously, the reason for the current error is that the 3rd operand requires **x20**, but not related to constant range
  
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylUsuy2yAM_Rq8YZLB-JF44UWaTLdd9QMwyDZ3sElB5PH3Fb5Je2e6LMMgCYTOOYLBm2fP5ImP1gFHiLiPTFyYOHHOWSuUMXwbj_LI5JlMl81dimzSAx-cyaqmzM9br5UK8gDX4E3SwPViWHXiX-s6d1t2i1Z8t2CwVwesuigV9NzWtKWviWKMt7IUfGfXiCFptH7doRocRM6q85vsv8gE7AOSicnhGxRC8CGzgMcVNIIh3gfWfIuJNZcHkjfMd3Jpl98tztxfM6By3K4IEwSyPKh1Ak65m_o6p_93r34MN-tTdM-chDMQbxX9ykcftlCnEGDFTwHcRtpUuJ1UwRBLIFKGLv1KNuTOyNyDR8Y8bfPMh4R89bkhTmXh6Ln21FNFVTdFbxEF9GXbik5UbdcWpq9MV3WqQIsOelL9fjTSzX-uY7CwGvd8MVsgRjXBV5Q_5DJIkYLrZ8RrpFdg8jvNifqchr32CwW5-Mvs6ON80CNRaGNMEMlpDrJuirk3emzAVEPdjELCsVadGceDqI5HU0Kt28KpAVzMdJmUK9z5VoJ8Yl3YXgopxbHsSkFru6-qRmk90uj0oFpgtYBFWbfPPPY-TEXoN0pDmiIdOhsx_j1UMdppha07ub5KOPvQ30YiVWzA_Ub8N_z4DAQ">