forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
committed by
liuzhensong
parent
5f22c5abdc
commit
f07dd5f7dd
@@ -340,7 +340,7 @@ static struct loongarch_opcode loongarch_macro_opcodes[] =
|
||||
{ 0, 0, "la.tls.gd", "r,l", INSN_LA_TLS_GD64, 0 },
|
||||
{ 0, 0, "la.tls.gd", "r,l", INSN_LA_TLS_GD64_LARGE_ABS, 0 },
|
||||
{ 0, 0, "la.tls.gd", "r,r,l", INSN_LA_TLS_GD64_LARGE_PCREL, 0 },
|
||||
|
||||
{ 0, 0, "pcaddi", "r,la", "pcaddi %1, %%pcrel_20(%2)", &LARCH_opts.ase_ilp32, 0, 0 },
|
||||
{ 0, 0, 0, 0, 0, 0, 0, 0 } /* Terminate the list. */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user