<div dir="ltr">Hi, developers,<div><br></div><div>I notice following asm symbol definitions are eveluated improperly:</div><div><br></div><div>A = 9</div><div>B = 3*A - 2 * A + 1</div><div><br></div><div>the value of B should be 10 instead of 8.</div>
<div><br></div><div>It seems asm parser treat "B = 3*A - 2 * A + 1" as "B = 3*A - (2 * A + 1)"</div><div><div style>because the second "*" has higher precedence than "-", and evaluation just performs simple recursion within AsmParser::ParseBinOpRHS (which resides in file lib/MC/MCParser/AsmParser.cpp).</div>
<div style><br></div><div style>Can some one make a fixup?</div><div style><br></div><div style>Regard.</div>-- <br>杨勇勇 (Yang Yong-Yong)
</div></div>