<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57986>57986</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Assertion ` castIsValid(op, S, Ty) && "Invalid cast!"' failed.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
llvm:instcombine
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
JonPsson
</td>
</tr>
</table>
<pre>
clang-16 -cc1 -triple s390x-ibm-linux -S -O2 -o /dev/null tc_crash0_aftercreduce.ll
...
#9 0x000002aa01a1de90 llvm::InstCombinerImpl::visitCallInst(llvm::CallInst&)
...
[testcase.tar.gz](https://github.com/llvm/llvm-project/files/9647836/testcase.tar.gz)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUc2O2yAQfhp8QUZ4bBNz4JBNFCm9tNJWva4wnjhU2ESAo2yfvtjZaqW9FaEZMQPfD9P74V0Zp-exrAQtjalomYK9OaSxlvxR2n4qnZ2XBy1fafkdaOkpgdOA9xznxTlKk3kzQccrf9OXhMEEHBaDzDnCj4Tvn5Ex9nGEWlL-4OsCrXmlqwElp87dJ1Lv8z7PMR381NsZw3m6uWf1bqNNB-3c2ibQfd7_LAoC8ivdM7YvCWMyOiJLOrDxD2mPGeSa0i2uKHDKe7TpuvTM-CkfNvxnKm_B_0aTCU4X6zDmLEWz6-rMd_qK-09BgaoSogHeZaPFoOpB1lIXySaHah8jhmT9TIngND9P5_hLOztkTf5G4EBf1_DzPcPRzZfICc7zfb20PSBQ5QqBHb3oLGpgxRKc-m9DNsZlc9TuZCeKqxIIbacvBivZN3XXVrKVRtY9CDRD3UDhdI8uqvylmf9jCjZ_v3mObBXVHgurgANwCaIS66gZaLw0RmqAgXem60nDccrK2QrBfBiLoDZt_TLG3HQ2pvjZ1DHacUbceDO-XtLVB_XNzz9i9HOx-VCbib-oWtyh">