sp-mishra / jitasm

Automatically exported from code.google.com/p/jitasm
0 stars 0 forks source link

Expression not evaluating properly. #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If( eax < 0 );

Error:

Uses JumpCondition JCC_B (unsigned jmp)

Should be JCC_L (singed jmp)? 

Looks like it's not actually implemented yet. However it is a problem for those 
not verifying output and expect the right behavior.

Original issue reported on code.google.com by mar...@printone.co.uk on 7 Dec 2012 at 1:47

GoogleCodeExporter commented 9 years ago

Original comment by aki.yamasaki on 8 Dec 2012 at 6:41

GoogleCodeExporter commented 9 years ago
Current implementation is supposed to use unsigned comparison because we cannot 
know that 'eax' is signed or unsigned. We have to consider new conditional 
statements which can specify signed or unsigned obviously.

Original comment by aki.yamasaki on 10 Dec 2012 at 6:39