summaryrefslogtreecommitdiff
path: root/masm/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'masm/parse.c')
-rw-r--r--masm/parse.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/masm/parse.c b/masm/parse.c
index 3cbe305..dfa9479 100644
--- a/masm/parse.c
+++ b/masm/parse.c
@@ -148,8 +148,6 @@ const enum mips_parse_format mips_parse_formats[] = {
FORMAT(LHU, SL)
FORMAT(LUI, SLI)
FORMAT(LW, SL)
- FORMAT(LWL, SL)
- FORMAT(LWR, SL)
FORMAT(MFHI, RD)
FORMAT(MFLO, RD)
FORMAT(MTHI, RS)
@@ -158,11 +156,9 @@ const enum mips_parse_format mips_parse_formats[] = {
FORMAT(MUH, R)
FORMAT(MULU, R)
FORMAT(MUHU, R)
- FORMAT(MULT, R2)
FORMAT(SB, SL)
FORMAT(SH, SL)
FORMAT(SW, SL)
- FORMAT(SWL, SL)
FORMAT(SLL, S)
FORMAT(SLLV, SV)
FORMAT(SLT, R)
@@ -862,9 +858,9 @@ static int parse_pseudo_la(struct parser *parser, struct ins_expr *expr)
expr->ins[0] = mips_instructions[MIPS_INS_LUI];
expr->ins[0].data.rt = reg;
expr->ins[0].data.immd = B16(hi);
- expr->ins[1] = mips_instructions[MIPS_INS_ORI];
+ expr->ins[1] = mips_instructions[MIPS_INS_ADDI];
expr->ins[1].data.rt = reg;
- expr->ins[1].data.rs = MIPS_REG_ZERO;
+ expr->ins[1].data.rs = reg;
expr->ins[1].data.immd = B16(lo);
return M_SUCCESS;