diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2011-11-16 12:27:06 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2011-11-16 12:27:06 +0000 |
commit | 2906b0376142e10567d32715b7643583eb1bb331 (patch) | |
tree | dd866515eb9ca118f99b5a78b2c836175f7b44bf /gas/config/tc-mips.c | |
parent | 514f48bb1dbccb1c3820236b8dbc11b64c155984 (diff) | |
download | gdb-2906b0376142e10567d32715b7643583eb1bb331.zip gdb-2906b0376142e10567d32715b7643583eb1bb331.tar.gz gdb-2906b0376142e10567d32715b7643583eb1bb331.tar.bz2 |
* config/tc-mips.c (macro_build_jalr): Reverse a negative
conditional.
(mips_ip): Likewise.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r-- | gas/config/tc-mips.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 6af54f8..886bdce 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -5260,9 +5260,7 @@ macro_build_jalr (expressionS *ep, int cprestore) frag_grow (8); f = frag_more (0); } - if (!mips_opts.micromips) - macro_build (NULL, "jalr", "d,s", RA, PIC_CALL_REG); - else + if (mips_opts.micromips) { jalr = mips_opts.noreorder && !cprestore ? "jalr" : "jalrs"; if (MIPS_JALR_HINT_P (ep)) @@ -5270,6 +5268,8 @@ macro_build_jalr (expressionS *ep, int cprestore) else macro_build (NULL, jalr, "mj", PIC_CALL_REG); } + else + macro_build (NULL, "jalr", "d,s", RA, PIC_CALL_REG); if (MIPS_JALR_HINT_P (ep)) fix_new_exp (frag_now, f - frag_now->fr_literal, 4, ep, FALSE, jalr_reloc); } @@ -10964,9 +10964,9 @@ mips_ip (char *str, struct mips_cl_insn *ip) case '\\': /* 3-bit bit position. */ { - unsigned long mask = (!mips_opts.micromips - ? OP_MASK_3BITPOS - : MICROMIPSOP_MASK_3BITPOS); + unsigned long mask = (mips_opts.micromips + ? MICROMIPSOP_MASK_3BITPOS + : OP_MASK_3BITPOS); my_getExpression (&imm_expr, s); check_absolute_expr (ip, &imm_expr); |