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

    <tr>
        <th>Summary</th>
        <td>
            MIPS: jal trigger an ICE with -fPIC
        </td>
    </tr>

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

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

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

<pre>
    ```asm
xx:
    jal (3)
```

`./bin/clang -target mips -fPIC -c nn.s -o buggy3.o`

```
0.      Program arguments: ./bin/clang -target mips -fPIC -c nn.s -o buggy3.o    
 #0 0x000056260d077907 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/syq/git-push/llvm-project.github/llvm/lib/Support/Unix/Sig
nals.inc:723:13 
 #1 0x000056260d075af0 llvm::sys::RunSignalHandlers() /home/syq/git-push/llvm-project.github/llvm/lib/Support/Signals.cpp:106:18 
 #2 0x000056260cffa95f (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) /home/syq/git-push/llvm-project.git
hub/llvm/lib/Support/CrashRecoveryContext.cpp:73:5 
 #3 0x000056260cffa95f CrashRecoverySignalHandler(int) /home/syq/git-push/llvm-project.github/llvm/lib/Support/CrashRecoveryContext.cpp:390
:51 
 #4 0x00007f06f185afd0 (/lib/x86_64-linux-gnu/libc.so.6+0x3bfd0) 
 #5 0x000056260bdb4ed4 llvm::MCExpr::getKind() const /home/syq/git-push/llvm-project.github/llvm/include/llvm/MC/MCExpr.h:81:37 
 #6 0x000056260bdb4ed4 llvm::MCSymbolRefExpr::classof(llvm::MCExpr const*) /home/syq/git-push/llvm-project.github/llvm/include/llvm/MC/MCEx
pr.h:423:15 
 #7 0x000056260bdb4ed4 llvm::isa_impl<llvm::MCSymbolRefExpr, llvm::MCExpr, void>::doit(llvm::MCExpr const&) /home/syq/git-push/llvm-project
.github/llvm/include/llvm/Support/Casting.h:64:53 
 #8 0x000056260bdb4ed4 llvm::isa_impl_cl<llvm::MCSymbolRefExpr, llvm::MCExpr const*>::doit(llvm::MCExpr const*) /home/syq/git-push/llvm-pro
ject.github/llvm/include/llvm/Support/Casting.h:110:12
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVl1vnDgU_TWeF2uQuebzgYcpLdpoFSlKdp8jAwbcNTa1TTKzv34FnnRIm6ZJt1HkMddwfc65xx_MWtErzgsUf0Dxxx2b3aBN8fivtacvbFfr9lSghPh_ZkdEPiJyOB4RPfguxhh_ZhIjyCiC3Ae_fnF-fAoGCKpaKARVI5nq8d4x03OHRzFZvO9urkq8b7BSgcV7jeu570800N_n2SYnAV7_bozuDRsxM_08cuUsogf8axMu6c7sEFCCyZEQQuIEEtKSNM1JiqV8GBcN6MGerO_cGKHcnWPNP38Z1nAE2eUlwx7vtXWGsxFBgqDEQjkEOUZQDXrkCCp7-oKg6oXbT7MdEFTL1_vJ6M-8cUEv3DDX5-jyI5aHu3matHEIqr-VOC4B0XvgikkbCNUgekiBInoI6YZS-A2lmHXkJUq3s7oTvWLyD6ZayY1FkP1O1D65DZppWiCSZGmzDVDYAm26juVxt1iNKa1Oo54tVmzkdlr1zj3o0jA73PJGP3BzKrVy_Oiuxkn6Uc9kfQdBtlahxLNaV0GLpVb9Owl6sK_SfAnRmXO61CbeMKYvMX6W4FlFnjj8vpq8ApbmTwuRHuJwAzo6g047knRhFrOuJXj1yjn9MUvuk2gvhZqP-17NfqAJrA4SBB_IkdZdS1YaX5PGWyXqto54G21Mel1-Ok7G93vu_hSqPbuz0cq6X9ZDqEbOLb8Ersu1WWYLBkQPWbhIkW6QJj9Dencaay1veXeB3Ehmre6e7RJ-Eo8fweH_VPXHLDzsM5fI7w1bA6avkxGW3Yt1NZU_Zgjl94WCEj9o0SL6yYdbLdwr7JN3sPfgf67BxuTMOqH6VYMkWuy83R6zt0lw37xbhUtt3yjDW03gwb_NCi_LEIZk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