summaryrefslogtreecommitdiffhomepage
path: root/ir/be/mips
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-06 23:17:50 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-03-06 23:19:28 +0100
commit2382a039ec6f3077a875985c51c707a03488126e (patch)
treef50be7cea6e36d6dd3aef08944aeb07f1a75cc62 /ir/be/mips
parent0ab734a7b23c6a6d2cb4be944d385681024fdcab (diff)
beasm: Support modifier 'c' (plain immediate) in all remaining backends.
These backends do not have a prefix for immediates anyway, so besides accepting the modifier there is nothing to do.
Diffstat (limited to 'ir/be/mips')
-rw-r--r--ir/be/mips/mips_emitter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/be/mips/mips_emitter.c b/ir/be/mips/mips_emitter.c
index ae0ba57..ac56fe9 100644
--- a/ir/be/mips/mips_emitter.c
+++ b/ir/be/mips/mips_emitter.c
@@ -102,8 +102,9 @@ static void emit_mips_asm_operand(ir_node const *const node, char const modifier
be_asm_attr_t const *const attr = get_be_asm_attr_const(node);
mips_asm_operand_t const *const op = &((mips_asm_operand_t const*)attr->operands)[pos];
/* modifiers:
+ * c: plain immediate
* z: print normally, except immediate 0 as '$zero' */
- if (!be_is_valid_asm_operand_kind(node, modifier, pos, op->op.kind, "z", "", ""))
+ if (!be_is_valid_asm_operand_kind(node, modifier, pos, op->op.kind, "z", "c", ""))
return;
switch (op->op.kind) {