Fix AL/AX is not extended to EAX when calling indirectly
commit02370acdc9967255cd06a928499fd1981356595e
authorZhang Boyang <zhangboyang.id@gmail.com>
Sat, 9 Sep 2017 13:01:42 +0000 (9 21:01 +0800)
committerZhang Boyang <zhangboyang.id@gmail.com>
Sat, 9 Sep 2017 13:01:42 +0000 (9 21:01 +0800)
treecab31c87e780340ce87f99113880279d91f63b59
parenta82c11f4b41c8f91034bd1cf426ec01eb811185e
Fix AL/AX is not extended to EAX when calling indirectly

AL/AX should be extended to EAX when calling functions. However, the previous code did this only for direct calls, indirect calls were ignored.
New code also avoid redundant code when generating JMP instruction. (i.e. expanding code should be generated with CALL instruction only)
i386-gen.c