<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54105>54105</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
RISCVAsmParser parseBareSymbol double-parses -
</td>
</tr>
<tr>
<th>Labels</th>
<td>
bug,
backend:RISC-V,
confirmed
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
jrtc27
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jrtc27
</td>
</tr>
</table>
<pre>
```lla a0, foo - 5``` ends up being parsed as ```lla a0, foo - -5``` since we don't eat the binary plus or minus before parsing the RHS, ending up with an extra unary operator (with the unary plus stripped as redundant, but the unary minus persisting).
See https://discourse.llvm.org/t/wrong-result-with-la-ra-symbol-pseudo-la/60545 for the initial report.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1kU1v4yAQhn8NviAsgu0kPviQtop2b6tG6h3MJKHFYPGx2fz7Heyo7R5WQjbMMO_7MKO8vg9ky9dlraSSE_FMz95TRrvPDAWnI80zVWDchc4yRNBURvrfWvatOBo3Ar0B1d4RsUsUZKLpClQZJ8OdzjZH6gOdjMONgrMPsHgUr3Lv9cepKCNEiSDGzaQrlY7CnxQkzYuKnyHIhDJE7Jd8qcxfBjEFM88rdgCdnZYuFVmV07e7KwRqRRMT2hHR14S_EH5YvycAek1pjqQ5EHHEpU0cfcaO1Nb-nmofsOaIysdb8O7CAsRsEytIzEoWJIv3SXnL5ghZe4zh1S3v2g5bFxYS40wy0iLm7EOqKz00um96WSWTLAyvP0_Pb4c4_SpjCOs0nmSA06KLXc7KAlvCkbIqBzv8S3xBlqzq0U94KNCPH5uDf4exsJsYM0TcdO2Gd9V1EJuR9-e-BS5033ZNt-1avj-PjWiEArGvrFRg40C6JyKEytgEUbpbDnL8wNmhfSFnb1-Z0buzCRPoEupeKjMILsrabfao29adake12zYbrnXT9hvScpiksZ-trsKwkKNhxKTFocWvpIzRXBzAg-o9pFHsHl4yp6sPwxqrlvcOy2P_Atl6_Jg">