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

    <tr>
        <th>Summary</th>
        <td>
            [SystemZ] LLVM ERROR: Error while trying to spill R14D from class ADDR64Bit: Cannot scavenge register without an emergency spill slot!
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    [tc_regscav.tar.gz](https://github.com/llvm/llvm-project/files/14014828/tc_regscav.tar.gz)

llc -mtriple=s390x-linux-gnu -mcpu=z16 ./tc_regscav.ll -misched=shuffle

LLVM ERROR: Error while trying to spill R14D from class ADDR64Bit: Cannot scavenge register without an emergency spill slot!
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: ./bin/llc -mtriple=s390x-linux-gnu -mcpu=z16 ./tc_regscav.ll -misched=shuffle
1.      Running pass 'Function Pass Manager' on module './tc_regscav.ll'.
2.      Running pass 'Prologue/Epilogue Insertion & Frame Finalization' on function '@fun'

@uweigand This test case has i128 registers, but it is an ADDR64 that needs scavenging...
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzElE-vnDYUxT-N2VwNMgaGYcFiEgap1Ys6mld10U1lzMW4MTbyn7y89-krM5k2VbpppSobQNfcc66Ofzb3XkmD2JH6Han7jMewWNf9aM3Ve2uKbLTTa1oM4jeH0gv-KQ_c5fKN1D1hpyWEzZPyTNhA2CBVWOKYC7sSNmj96fE6bM7-jiIQNsxKoydsKCpaVCd2Imz4Vpq1hPaEnu9PrQUc1uDUppGUvS9b-vmglYmfD9JEOKxii6Ts34oj5H-X0xoOq_JiwSk1LnGeNX4t_fT0ywe43G4_3Uh5hotz1sHLojRCcK_KSAgW_Ka0hltR9TA7u4LQ3Hs49_3tWL1TITW-58bYAMkTjURwKJUP6OBFhcXGANwArugkGvH6RdBrGwgr7nNcny7n5wv4OK4qAIcxSnC4WRfSBP86ZOV93FMGbiZQRug4IYQFQTjuFxi5-BgcF5jf7Z8DFx9hiuuWXPYSzQltr85Kx1fgTsYVTUhD7BmPyuyu_8PGFMn4Fo1J8W8pasKaIRoRlDVwTYUP3HCJjrAGrIHVTlFj-usbk722q7J_Ur06q62MSNhw2dT-CT8Yj263IuwIg-MrwqAM1-qNp_IX0_kxEGENqegc08LXZJGKxhdUMm3Az4vyENAHENwjLNyDKtjpT0w8Ye9hjAFUAOUTLHe6ICw8gEGc_IMtZWSe59nUlVNbtjzDrmho3dblqaDZ0rGqHnFuWcPmiVKkLZuZwKadimMr5rHJVMcoq2jBGKO0LGk-H-sGx6mt-TRRPh5JRXHlSucJqdw6me0wdU1Lq2Om-YjaPy4L1-3cjVF6UlGtfPB_tQUV9H6tPL_6gOuvpO7h-x-3LDrd_ffztKfwRwAAAP__zAaxjg">