On Sat, Apr 11, 2015 at 08:28:06PM +0300, Michael Tokarev wrote:
11.04.2015 18:08, Kevin O'Connor wrote:
With a few additional checks it's possible to emulate all the leal cases without requiring a function call. Although this makes the vgafixup.py code a little more complex it eliminates the need for the "emulate_leal" function and it produces better code. In my tests, almost all "leal" instructions are replaced with 4 (or fewer) instructions.
Maybe it is possible to tell gcc to not produce this instruction in the first place?
That would certainly be better. Any idea how to do that?
-Kevin