* config/tc-mips.c (macro): Handle new macros: "lca" and "dlca"

for loading addresses using CALL relocations.
Don't emit CALL relocations when a base register is used.

* gas/mips/lca-svr4pic.d: New test for the "lca" macro.
* gas/mips/lca-xgot.d: Likewise.
* gas/mips/lca.s: Source for the new tests.
* gas/mips/mips.exp: Run the new tests.

* opcode/mips.h: Define new enum members, M_LCA_AB and M_DLCA_AB.

* mips-opc.c (mips_builtin_opcodes): Handle new macros: "lca" and
"dlca".
This commit is contained in:
Maciej W. Rozycki 2003-11-18 21:22:57 +00:00
parent 5659daa1d9
commit 1abe91b1db
11 changed files with 1246 additions and 8 deletions

View file

@ -567,6 +567,7 @@ enum
M_DIVU_3,
M_DIVU_3I,
M_DLA_AB,
M_DLCA_AB,
M_DLI,
M_DMUL,
M_DMUL_I,
@ -592,6 +593,7 @@ enum
M_LB_AB,
M_LBU_A,
M_LBU_AB,
M_LCA_AB,
M_LD_A,
M_LD_OB,
M_LD_AB,