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

fix fucompp emitter when no register is needed

parent f6377fd3
......@@ -1000,7 +1000,7 @@ static void emit_ia32_x87CondJmp(ir_node *irn, ia32_emit_env_t *env) {
if (reverse)
set_ia32_pncode(irn, (long)get_inversed_pnc(get_ia32_pncode(irn)));
snprintf(cmd_buf, SNPRINTF_BUF_LEN, "%s %%%s", instr, reg);
snprintf(cmd_buf, SNPRINTF_BUF_LEN, "%s %s%s", instr, reg[0] == '\0' ? "" : "%", reg);
lc_esnprintf(ia32_get_arg_env(), cmnt_buf, SNPRINTF_BUF_LEN, "/* %+F */", irn);
lc_esnprintf(ia32_get_arg_env(), cmd_buf, SNPRINTF_BUF_LEN, "fnstsw %%ax", irn);
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