summaryrefslogtreecommitdiffhomepage
path: root/ir/be/amd64
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2018-05-08 12:05:00 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2018-05-08 12:05:00 +0200
commit46210b81e457b068ae83f19ee7d4f1a3a05a9a77 (patch)
tree21cd970bccfabd633915d434b0d4a2973b39228d /ir/be/amd64
parent314369bc156ad55385d5d761e0013ff8d9f13549 (diff)
be: Use a common struct to hold basic asm operand information.
Diffstat (limited to 'ir/be/amd64')
-rw-r--r--ir/be/amd64/amd64_emitter.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ir/be/amd64/amd64_emitter.c b/ir/be/amd64/amd64_emitter.c
index ea7675e..114c22b 100644
--- a/ir/be/amd64/amd64_emitter.c
+++ b/ir/be/amd64/amd64_emitter.c
@@ -538,33 +538,33 @@ static void emit_amd64_asm_operand(ir_node const *const node, char const modifie
* p: like 'c' and other operands unmodified (gcc doc: "print raw symbol")
* q: 64 bit name of register
* w: 16 bit name of register */
- if (!be_is_valid_asm_operand_kind(node, modifier, pos, op->kind, "APXbhkpqw", "c", ""))
+ if (!be_is_valid_asm_operand_kind(node, modifier, pos, op->op.kind, "APXbhkpqw", "c", ""))
return;
if (modifier == 'A')
be_emit_char('*');
- switch ((be_asm_operand_kind_t)op->kind) {
+ switch ((be_asm_operand_kind_t)op->op.kind) {
case BE_ASM_OPERAND_INVALID:
panic("invalid asm operand");
case BE_ASM_OPERAND_INPUT_VALUE: {
arch_register_t const *const reg
- = arch_get_irn_register_in(node, op->inout_pos);
+ = arch_get_irn_register_in(node, op->op.pos);
emit_amd64_asm_register(reg, modifier, op->u.mode);
return;
}
case BE_ASM_OPERAND_OUTPUT_VALUE: {
arch_register_t const *const reg
- = arch_get_irn_register_out(node, op->inout_pos);
+ = arch_get_irn_register_out(node, op->op.pos);
emit_amd64_asm_register(reg, modifier, op->u.mode);
return;
}
case BE_ASM_OPERAND_MEMORY: {
arch_register_t const *const reg
- = arch_get_irn_register_in(node, op->inout_pos);
+ = arch_get_irn_register_in(node, op->op.pos);
be_emit_irprintf("(%%%s)", reg->name);
return;
}