<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/95417>95417</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLVM does not support pseudo REX2 prefix
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:X86,
mc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
KanRobert
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
KanRobert
</td>
</tr>
</table>
<pre>
.byte 0xf3,0xd5,0x80,0xb8,0xc1
{rex2} popcnt %ecx,%eax
Expect the second has the same encoding as the first one. GNU binutils supports it while LLVM doesn't support it.
https://www.godbolt.org/z/xd5Tj78cr
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUkU9znDwMxj-NuGjCgABjDj7kH-_hTXvItJ1cwWjBKWsztsmSfvoOu9ukvfixNJpHmt_ThWBGy6ygugOi_zv77Hr2EYigeki6NU7Oq4920rvhXWHav0fGbDsUQPfZNlRnkdlZenkWnUP2ANktItR3njeC-gEXt2gbEahivQHd759uuwxe3sdtYR0xToyBtbMDTl24lN2Rka12g7EjXpsH40NEZzlF_O_rd-yNXaOZA4Z1WZyPAU3E02RmxqenH19wcBwsUB3_DKCJ6d_7pxiXAMUtUAvUnk6ndHRD7-aYOj8Ctb-A2m2ovr3WUvtkUMXQFE2XsMrrXJKUkspkUhk1IhNCC-64aAopBfcVcSW4koWoRGIUZVRmIi_ykkRFaVHndVEK0QiphTgwlBkfOzOn8_x23HcnJoSVVVOVeZ3MXc9zuIbWd_on2wGK2xcp9uB2rnTU1wy92i1u-nUMUGazCTF8mkYTZ1YfaNC6TzJL4HVw-Pz4Qrh4PpgtWf2s_iU0mjitfardEajdba9ys3j3yjoCtefDA1B7uf1N0e8AAAD__5_Xw4k">