<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/83749>83749</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Backport 5f058aa21199 to 18.x
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
SixWeining
</td>
</tr>
</table>
<pre>
/cherry-pick 5f058aa21199
This patch solves the CAS sign-extend issue for LoongArch. Actually this issue exists in all versions since 16.x, but the policy only allow us to backport to the latest release branch (i.e. 18.x).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxMkb-O4ywUxZ8GN1ex-GPiuKDIzMjV180nbQ34xrBDwAKcSd5-RbKr3QYoDufe3zm6FL9GREXkG5Efnd6rS1l9-vsP9NHHtTNpeSjCZ-sw58dh8_YL5IXKk9acsWki9IPQ8-v83_kCm67WQUnhhgWqQ3g_f0KbcsB7xbiAL2VHuKQM_6UU13O2roezrbsO4QG1ebwkePelFvARdAhww1x8igWKjxaBHfs74e9g9vqcsqXg7QNSDI8mT9-wF6gJjLZfW8q1vZsu6IqlQsaAuiCYrKN1QPjJ99gDOzXXqe8WJZZJTLpDxUY6SSZGceycGqwccRFGXEbOGJVWGIYT1ccFUdph7LzilA9U0IFSKcWx54j6YpgdjOAnSi9koHjVPvQh3K59ymv3pFUnMQ5TF7TBUJ51cB7x-xUF4by1k1X7czD7WshAQ0vnr0v1NaB6-4P7b0eNvZF1ew7K1boVIs6Ez4TPq69uN71NV8Ln5vX7Omw5_URbCZ-fGxTC5-eGvwIAAP__psy1-A">