aboutsummaryrefslogtreecommitdiff
path: root/i386-gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'i386-gen.c')
-rw-r--r--i386-gen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386-gen.c b/i386-gen.c
index b96e4fb..9cc2f8e 100644
--- a/i386-gen.c
+++ b/i386-gen.c
@@ -754,9 +754,9 @@ ST_FUNC void gen_opi(int op)
c = vtop->c.i;
if (c == (char)c) {
/* generate inc and dec for smaller code */
- if (c==1 && opc==0) {
+ if (c==1 && opc==0 && op != TOK_ADDC1) {
o (0x40 | r); // inc
- } else if (c==1 && opc==5) {
+ } else if (c==1 && opc==5 && op != TOK_SUBC1) {
o (0x48 | r); // dec
} else {
o(0x83);