]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
LoongArch: Fixed precedence of expression operators in instructions
authorLulu Cai <cailulu@loongson.cn>
Mon, 2 Sep 2024 04:05:54 +0000 (12:05 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Mon, 9 Sep 2024 07:11:53 +0000 (15:11 +0800)
commit6c2358b90adb376f0b2cec4e19759d37e9abdd28
tree0c99eeea4ce2e7fced5b712d36379af836d27dd9
parent4bc828f8765d0b342d3d57837172170d14d36966
LoongArch: Fixed precedence of expression operators in instructions

The precedence of the operators "+" and "-" in the current loongarch
instruction expression is higher than "<<" and ">>", which is different
from the explanation in the user guide.

We modified the precedence of "<<" and ">>" to be higher than "+" and "-".
gas/config/loongarch-parse.y
gas/testsuite/gas/loongarch/insn_expr.d [new file with mode: 0644]
gas/testsuite/gas/loongarch/insn_expr.s [new file with mode: 0644]