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

    <tr>
        <th>Summary</th>
        <td>
            RISCV backend crash when handling binary kind MC expression
        </td>
    </tr>

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

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

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

<pre>
    When compiling following code with clang on RISCV target:
`beqz x8,.+127`
Clang crashed and reported:

Assertion `FixupKind != RISCV::fixup_riscv_invalid && "Unhandled expression!"' failed.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxMkUGPmzAQhX_NcLEW2QNxyIFDNhFSVfXSqq16Whk8gLuOTW2zyebXVyaVthew9Pxmnr-nYjSTI2ph9wy7c6HWNPvQ_lrdne7zeqiL3uv39udMjg3-shhr3MRGb62_5tPgNbGrSTMbrHIT8459_fTt9IMlFSZKUB2Bn4EfQfKe_tzZrQE8lYDPAvcg-UM8bdYhqDiTZsppFmjxIZH-8G_fY4wUkvGOgeSdua3LZ-M0AxRQnR-Ls6M6jll7CSYOby_GvSlr8i0JKBkgfnezctqSZnRbAsVovMszEAH3bFTGki4L3Vb6UB1UQa2QB7GvUciqmNtGDCj7Xku-G9QoaiX3NZIUleCj5qgK0yLHijdC8AaxrkqNzcgVNvowVnxXI9ScLsrY0tq3S-nDVJgYV2plLQUWVvVk41YIoqMr28QcbncuQps9T_06Rai5NTHFjynJJEvtg3-vhldy-kGVXXN_26Nzab1xKryz18zuy-k_CMUabDuntMSMETvAbjJpXvty8BfALm_693tagv9NQwLstnwRsNvy_w0AAP__iiu8VA">