diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-30 15:10:52 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-30 15:10:52 -0400 |
commit | 60d9eb30d0d09ec5540099a1babb0171da2b164a (patch) | |
tree | b89425e4d554b3af29c56856a264c9450c5afacb /masm/parse.c | |
parent | fix elf section padding (diff) | |
download | mips-60d9eb30d0d09ec5540099a1babb0171da2b164a.tar.gz mips-60d9eb30d0d09ec5540099a1babb0171da2b164a.tar.bz2 mips-60d9eb30d0d09ec5540099a1babb0171da2b164a.zip |
remove inv instructions
Diffstat (limited to '')
-rw-r--r-- | masm/parse.c | 8 |
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; |