Commit 863cb91d authored by David Schleef's avatar David Schleef

arm: Fix register moving

parent a8e0644d
......@@ -350,6 +350,7 @@ orc_arm_emit_store_reg (OrcCompiler *compiler, int src1, int dest, int offset)
void
orc_arm_emit_mov (OrcCompiler *compiler, int dest, int src)
{
if (dest == src) return;
orc_arm_emit_mov_r(compiler, ORC_ARM_COND_AL, 0, dest, src);
}
......
......@@ -381,7 +381,7 @@ orc_arm_emit_loop (OrcCompiler *compiler)
int dest = ORC_DEST_ARG (compiler, insn, 0);
if (dest != src) {
orc_arm_emit_mov_r (compiler, ORC_ARM_COND_AL, 0, src, dest);
orc_arm_emit_mov_r (compiler, ORC_ARM_COND_AL, 0, dest, src);
}
rule->emit (compiler, rule->emit_user, insn);
} else {
......
Markdown is supported
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