summaryrefslogtreecommitdiffhomepage
path: root/ir/be/ia32
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-03 16:55:19 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-03-04 20:55:18 +0100
commitaeb9a50904e8864cef8e7f783f5bda705a792c37 (patch)
treebf627443164c57170e9d97b411969d73589aa30c /ir/be/ia32
parent60d49bf6351f543e33f122c6d60567486a054051 (diff)
beasm: Add helper function to check for occurrence of modifiers.
Diffstat (limited to 'ir/be/ia32')
-rw-r--r--ir/be/ia32/ia32_emitter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/ia32/ia32_emitter.c b/ir/be/ia32/ia32_emitter.c
index 035b67a..9eafdb7 100644
--- a/ir/be/ia32/ia32_emitter.c
+++ b/ir/be/ia32/ia32_emitter.c
@@ -792,7 +792,7 @@ static void emit_ia32_asm_operand(ir_node const *const node, char const modifier
}
case BE_ASM_OPERAND_IMMEDIATE:
- if (modifier != 'c' && modifier != 'P' && modifier != 'p')
+ if (!be_has_modifier("Pcp", modifier))
be_emit_char('$');
x86_emit_imm32(&op->u.imm32);
return;