<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/90954>90954</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[X86] Crash when building SingleSource/UnitTests/Matrix/AMXINT8/t_gemm_bf16.cpp: Assertion `RegNo && RegNo < 388 && "Invalid register number!"'
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:X86,
llvm:crash,
crash-on-valid
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
fhahn
</td>
</tr>
</table>
<pre>
Building the tests in `SingleSource/UnitTests/Matrix/AMXINT8/` added in [afc7e6588b3b43351e49f697fe48283ec5056c11](https://github.com/llvm/llvm-test-suite/commit/afc7e6588b3b43351e49f697fe48283ec5056c11) crashes `clang` with a `skylake-avx512` CPU.
I think this has been happening for a while.
Reduced IR reproducer:
https://llvm.godbolt.org/z/ax36ojxj5
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUs1u9CgQfBp8QWPZjfHPwYfJjCzNIdEqP1JuEeC2TYaBEeBksk-_wrvZ3e-W7wLqatFUVZcIQc8WsSf8jvBjJta4ON9Pi1hsJt341d-t2ozazjQuSCOGGKi2lNTFk7azwSe3eoUEhher43NqExjuRfT6RmDY37-eHp5bAgOpCyrGEcftNb8Tk2qw5m0rmawY4yVW3VR3zYRVCy1DxQteq7Ik_EigXWK8BsL2aRAMs47LKnPlLgQGYz6-r12itwurjomQcpeLjgSGH38FHVVehAVD0qeMsHOi_anjQkWCwvnLiDPuxMeNl5B6hz9eclIcSbH_-zzRuGh7TmegiwhUIlq6iOsVbTJxcp4K-rlogzn9_8NHHFeFIz09Uo9X71Llk-Kt-6v-pDWf3SidibnzM4Hhz6Tzxmr3fnvn2dizsWOdyLAvm7JqGAPeZEvfjMBhmiYAaKRsleIdcslEWzJVjl2Z6R4KqApesLKoGtbkbcVGbEtVqQpb0UpSFXgR2uQbB-fnTIewYt8VHa8yIySasGUJQAp1RjsStn9tawJA4EAAtnWx_ebzv-BW7ZzdfQijxwTzY-b7badynQOpCqNDDP_9GnU0W2jTbH6khzSBfi5oqfwO7O8FNL7NeLm8yamsc3W9Eran-xDQR-22uD_i_OAogZpATf8p2IGytv0GCcDJbgqox1mHiJ7a9SLREyg3rU22etP_MMxX795RpQBvFifam8t_BQAA___oryQA">