summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beasm.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-06 23:18:04 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-03-06 23:19:28 +0100
commit23496a80af29a067e0f65a4a4d3c1075f1772a3a (patch)
treeace42a67799324ac300d98cb4b192a9bbfec09cd /ir/be/beasm.h
parenta08346ccb0d3aa7063dfed2197621880c1a6bf7a (diff)
beasm: Factor out common code to add an immediate operand.
Diffstat (limited to 'ir/be/beasm.h')
-rw-r--r--ir/be/beasm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir/be/beasm.h b/ir/be/beasm.h
index 2af6154..d7fe333 100644
--- a/ir/be/beasm.h
+++ b/ir/be/beasm.h
@@ -40,6 +40,11 @@ static inline void be_set_asm_operand(be_asm_operand_t* const op, be_asm_operand
op->pos = pos;
}
+static inline void be_asm_add_immediate(be_asm_operand_t *const op)
+{
+ be_set_asm_operand(op, BE_ASM_OPERAND_IMMEDIATE, -1);
+}
+
/**
* An assembler constraint.
*/