Commit eb36b1ad authored by Matthias Braun's avatar Matthias Braun
Browse files

amd64: fix broken Perm emitter

parent 1d71000a
......@@ -543,7 +543,7 @@ static void emit_be_Perm(const ir_node *node)
arch_register_class_t const* const cls0 = reg0->reg_class;
assert(cls0 == reg1->reg_class && "Register class mismatch at Perm");
amd64_emitf(node, "xchg %R, %R", reg0, reg1);
amd64_emitf(node, "xchg %^R, %^R", reg0, reg1);
if (cls0 != &amd64_reg_classes[CLASS_amd64_gp]) {
panic("unexpected register class in be_Perm (%+F)", node);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment