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

    <tr>
        <th>Summary</th>
        <td>
            assertion failing in multiple backends N->getValueType(0) == RV.getValueType() && N->getNumValues() == 1 && "Type mismatch"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:AArch64,
            backend:X86,
            llvm:codegen,
            crash-on-valid
      </td>
    </tr>

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

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

<pre>
    `llc` is asserting out for me on this code when targeting either x86-64 or AArch64
```llvm
define i1 @f(i64 %0) {
  %2 = icmp ult i64 0, %0
 %3 = add i64 0, 1
  %4 = icmp ult i64 %3, 0
  %5 = zext i1 %2 to i64
  %6 = add i64 %3, %5
  %7 = icmp ult i64 %6, %3
  %8 = zext i1 %4 to i63
  %9 = zext i1 %7 to i63
  %new0 = or i63 %8, %9
  %last = trunc i63 %new0 to i1
  ret i1 %last
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsk0-PozgQxT9NcbESmbJj4MAhM9kc57BatfZqoADvGohs03_2069sknQ6PRISUtXv1bPKz9p7M8xENRx-wOGU6TWMi6sdDTS6rFm6jxoUt7YFxZnxTHtPLph5YMsaWL84NhFbZhZG41m7dMTeRppZ0G6ghJEJIzn2Xqqdkmxx7Hh07agk8BPwIyi-fda-Tlupo97MxEzOQPIesDRKMsADB6wYFD82isUSMhAnZtrpwlYbWAQ54M-N3jDAg0iU7rpPIH8YIr8PiaKI8QfskLD_6D2ko0XzsET6gVFfnG5TovgBKn7rp66keCDLZ0u5WT4y1TNTfGdmeuMJW1zspNFXu-oBs9qHhAW3zu2NTOI48r4zRzevqLjeY3F6utCsq0VXiUpnVOdFzvMq56rIxrrlqudlwcuya4RSSgnVKF1oWTY5kWoyUyNHyUWeY84lFnuSKFD2UlQ9b_u-Aslp0sbuY2j2ixsy4_1KdSlLkWdWN2R9yjNio9t_ae5AHG-xQwT8-aXzd6nu1RRDcYxBHmi-l1un_bhb5t2rtqaL5cMpc3Wkd806eJDcGh_854mCCZbq62tZZtZrY-NzMDObVhvMxRK7HsGzXzsQfwwUXrRd6a-PCwGWW9zFKV7Iny_7p25qogJUd_GvdUqEv7U3bX7jADGK2WT8pEM7AmK2OluPIVw8iCPgGfA8mDCuzb5dJsBz2sb2213c8g-1AfCclu0Bz2nf_wcAAP__fI0uOg">