]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add support for "pcaddi rd, symbol"
authormengqinggang <mengqinggang@loongson.cn>
Mon, 18 Sep 2023 10:00:21 +0000 (18:00 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Wed, 27 Sep 2023 07:07:51 +0000 (15:07 +0800)
commitf07dd5f7dd19d16b91bf680c7fa7773a7831c412
tree919f45360a675018931416f6f811f1f33fc3b547
parent5f22c5abdc68b8a6eab049a30412511b941f65d8
Add support for "pcaddi rd, symbol"

Add a macro pcaddi instruction to support "pcaddi rd, symbol".

pcaddi has a 20-bit signed immediate, it can address a +/- 2MB pc relative
address, and the address should be 4-byte aligned.
bfd/elfxx-loongarch.c
gas/testsuite/gas/loongarch/imm_ins.d
gas/testsuite/gas/loongarch/imm_ins_32.d
gas/testsuite/gas/loongarch/imm_op.d
gas/testsuite/gas/loongarch/imm_op.s
gas/testsuite/gas/loongarch/pcaddi.d [new file with mode: 0644]
gas/testsuite/gas/loongarch/pcaddi.s [new file with mode: 0644]
opcodes/loongarch-opc.c