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

    <tr>
        <th>Summary</th>
        <td>
            Backend code generator bug
        </td>
    </tr>

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

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

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

<pre>
    All of the following commands crash:
```
    llc bugpoint-reduced-simplified.bc
    llc bugpoint-reduced-simplified.bc -relocation-model=pic
    llc bugpoint-reduced-simplified.bc -relocation-model=static
```
[bugpoint-reduced-simplified.tar.gz](https://github.com/llvm/llvm-project/files/9747949/bugpoint-reduced-simplified.tar.gz)

llvm was tested from the homebrew repo for macOS (llvm@14) and also from apple (Apple clang version 14.0.0 (clang-1400.0.29.201)).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylUcGSnCAQ_Rq9UGMhMCoHDrOZymEPm0O-AKFVEhQLcKeSr09LNpVLKpWtKCXdNL5-_d4Y7Dd1856EieQFyBS8Dw-3zcSEddWbTcREnZaK3yp6r-it6ujbKinBx3tDxmPeg9vyJYI9DNhLcuvu3eTANqN5z12Cxz4YnV3YLmuw4Ct-393_Y6SMufnjFNX16W-AWcdm_l5d7xUblpz3dKrBPuKaXV6OsUGtMPH-9dd22WP4AiZjOjkPCXfZi14KidE_tGLyjVj5nojkoRPJkDJYMsWwFreWsMIY4UEi7AG9i2TV5tNngjwLGUFbgVgEfSTap_DzT73vHs47txIYr9HuV4gJ1SKtaGhDz2o5v7SCYt4w2TDanrwwqkG1XXcVjPcdq63iVnKp6-yyB_WkzVfAfgZlJzNsEHVGYjh0fUSv3q2fS-koAl4H1sl6UROXk-Ws7wbdTtZoxvk4UM207PjY9lPt9Qg-KTS1YmxDdQoExuhg7RSjjLUU314wwZpetroXfDDXEdggBhQNVu18c_JoQpzrqAolnCBh0buU0--iTsnNG0Bph_j6yEuI6oNen1_q0lgV4j8A6vwXow">