<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/132683>132683</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[RISCV] The assignment within the loop was not successful.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
shawn-xc
</td>
</tr>
</table>
<pre>
I wrote a simple C code example and found that the assignment of stRegCmd.regOp in the CtlPushNonAipr2AiprCmd function within the loop was not successful, and it always retained the value outside the loop. For detailed code information, please refer to:https://godbolt.org/z/rxxozzhjo.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEksFunTwQhZ_GbEZBxobAXbBIyI-Uzd8qrbo3eABHxkb2ONzk6SvIVat2040ty2fO8fgbFaOZHWLLqkdWPWUq0eJDGxe1u7vrmA1ev7fPsAdPCAqiWTeL0MHoNQJe1XlUTsPkk9NAiyKgBeHTd0VH4CeI9IJzt-o84PxlA-NOTUf2a4rL_949mC2IY-lWDVNyIxnvYDe03KTW-w12FcF5gpjGEWOckmWiO8MNgbK7eo8QkJRxqM-qN2UTgk8UjcZfPjn0PoA-hBb1ZyfGTT6s6og9PDeLKiIEnDAAefZfzx47dnlYiLbI5AMTPRP97PXgLeU-zEz0H0z04Xr1Hx_Lq88z3Up9kReVYVvUpWg4l6LIlrZqmlqWlRwkx_qisRiaqagmOSlV1UWJmWkFFxWXouR1ITjPx3vJheJc1nhpajmxkuOqjM2tfVuP8MzEmLAtpLhvZGbVgDaePIVwuMN5y4Q48Ib2KLob0hxZya2JFH_bkCF7DsLL87fuB6ue4PufJP8NJM9SsO1f32RoSUM--pWJ_gi7bXdb8K84EhP9-cTIRH_r4a0VPwMAAP__oJPe4A">