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

fix immediate emitting

[r14277]
parent adf4f663
......@@ -1328,6 +1328,8 @@ void emit_ia32_Immediate(ia32_emit_env_t *env, const ir_node *node)
if(attr->cnst_val.tv != NULL) {
if(attr->am_sc != NULL)
be_emit_char(env, '+');
else
be_emit_char(env, '$');
be_emit_tarval(env, attr->cnst_val.tv);
}
}
......
......@@ -27,7 +27,7 @@ static inline int mov(int val)
{
int res;
__asm__ ("movl %0, %1" : "=r"(res) : "ri" (val));
__asm__ ("movl %1, %0" : "=r"(res) : "ri" (val));
return res;
}
......
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