projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f6377fd
)
fix fucompp emitter when no register is needed
author
Matthias Braun
<matze@braunis.de>
Tue, 29 Aug 2006 13:05:32 +0000
(13:05 +0000)
committer
Matthias Braun
<matze@braunis.de>
Tue, 29 Aug 2006 13:05:32 +0000
(13:05 +0000)
ir/be/ia32/ia32_emitter.c
patch
|
blob
|
history
diff --git
a/ir/be/ia32/ia32_emitter.c
b/ir/be/ia32/ia32_emitter.c
index
579e990
..
fa2cf13
100644
(file)
--- a/
ir/be/ia32/ia32_emitter.c
+++ b/
ir/be/ia32/ia32_emitter.c
@@
-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);
IA32_DO_EMIT(irn);
lc_esnprintf(ia32_get_arg_env(), cmd_buf, SNPRINTF_BUF_LEN, "fnstsw %%ax", irn);