summaryrefslogtreecommitdiffhomepage
path: root/ir/be/riscv
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/riscv
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/riscv')
-rw-r--r--ir/be/riscv/riscv_emitter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/be/riscv/riscv_emitter.c b/ir/be/riscv/riscv_emitter.c
index b3ac409..d8d5614 100644
--- a/ir/be/riscv/riscv_emitter.c
+++ b/ir/be/riscv/riscv_emitter.c
@@ -105,9 +105,10 @@ static void emit_riscv_asm_operand(ir_node const *const node, char const modifie
riscv_asm_operand_t const *const op = &((riscv_asm_operand_t const*)attr->operands)[pos];
/* modifiers:
* R: %lo of immediate
+ * c: plain immediate
* h: %hi of immediate
* z: print normally, except immediate 0 as 'zero' */
- if (!be_is_valid_asm_operand_kind(node, modifier, pos, op->op.kind, "z", "Rh", ""))
+ if (!be_is_valid_asm_operand_kind(node, modifier, pos, op->op.kind, "z", "Rch", ""))
return;
switch (op->op.kind) {