<div dir="ltr">Hi,<div><br></div><div>To fix this bug(<a href="http://llvm.org/bugs/show_bug.cgi?id=18881">http://llvm.org/bugs/show_bug.cgi?id=18881</a>), we need to add more register constraints that for <span style="white-space:pre-wrap">STLXR , </span><span style="white-space:pre-wrap">Ws and Wt should not be the same register.  Because these </span><span style="white-space:pre-wrap">unpredictable instructions are </span><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.000099182128906px">valid instructions in MC layer, we </span></font><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.000099182128906px">couldn't just </span></font><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.000099182128906px"> simply treat them as </span></font><span style="white-space:pre-wrap">unallocated encoding.</span></div>
<div><span style="white-space:pre-wrap">I suppose to add some extra rules on register allocator to avoid it allocating register causing any unpredictable behavior, but I don't have experience to this part. Can anybody tell me how to implement this or have better ideas to solve this problem? Thanks in advance.</span><div>
<br></div>-- <br><div dir="ltr">Best Regards,<div><br></div><div>Kevin Qin</div></div>
</div></div>