]> Shamusworld >> Repos - rmac/blobdiff - eagen0.c
Fix movep size optimising when +o3 is enabled. Show available optimisations in the...
[rmac] / eagen0.c
index 1c359b9d4d056108123165e8edfd846a3b699620..a9b6f7ee496a181cb43384eae8c7af2835b6dc09 100644 (file)
--- a/eagen0.c
+++ b/eagen0.c
@@ -35,7 +35,7 @@ int eaNgen(WORD siz)
                        if (tdb)
                                MarkRelocatable(cursect, sloc, tdb, MWORD, NULL);
 
-                       if ((v == 0) && optim_flags[OPT_INDIRECT_DISP])
+                       if ((v == 0) && optim_flags[OPT_INDIRECT_DISP] && !movep)
                        {
                                // If expr is 0, size optimise the opcode. Generally the lower
                                // 6 bits of the opcode for expr(ax) are 101rrr where rrr=the