<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/106210>106210</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[M68k] incorrect assertion on move from CC register to data register
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
TechnoElf
</td>
</tr>
</table>
<pre>
The assertion "Need DR8 register to copy CCR" in M68kInstrInfo::copyPhysReg appears to be wrong. According to the Programmer's Reference Manual, MOVE from CCR takes a 32bit destination operand and zero extends the 5 bits in the CC register.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUkUFv3CAQhX8Nvoxi4TG2l4MP6SYr5ZA2WkW9Y5i1aWywAG-6_fUVVpq2B4QYGN5786kY7eiIetZ8Yc1DobY0-dC_kp6cf5wvxeDNrX-dCFSMFJL1DhjiVyIDD-cDBBptTBQgedB-vcHxeGaIYB08t4e3JxdTeHIXz-p7Vt_nFy_TLZ5pBLWupELMjQPBe_BuLOFeax-MdWMup4ngJfgxqGWhwLCLcKYLBXKa4Fm5Tc0Mj_D87fsjXIJfsjYk9UYRFNQ42ASGYrJO7bb9SkE5A3n9ouCBfiZyJu46DQw2xWw7n47Hz2BlYfrayFqqgvqqQ9E1UlS8mPpOHyQ2QjZtpQcpayNaIauhFZVs5YC8sD1yFPyAXVU1nB9KjVJUXS0HIbkRLWeC06LsXM7zdSl9GAsb40Z9xVuseDGrgea4k0F09A77LUPMoEKfm-6GbYxM8NnGFP9-k2yad6SZAWsewDrtQyCd_sHoHSz-Sn9G9x9Ko5L6LBRbmPsppTVminhieBptmrah1H5heMqyH9vdGvwP0onhaTcbGZ4-0lx7_B0AAP__PhPK9w">