[codegen] add intcc conditions for reading overflow flag

Add conditions to IntCC for checking the overflow flag (Overflow,
NotOverflow).
This commit is contained in:
Ujjwal Sharma
2019-09-07 17:34:38 +05:30
committed by Benjamin Bouvier
parent dfdd504edc
commit 43a891dfa2
7 changed files with 34 additions and 45 deletions

View File

@@ -664,6 +664,10 @@ ebb11:
trapif ugt v11, user0 ; bin: 76 02 user0 0f 0b
; asm: jnbe .+4; ud2
trapif ule v11, user0 ; bin: 77 02 user0 0f 0b
; asm: jo .+4; ud2
trapif of v11, user0 ; bin: 71 02 user0 0f 0b
; asm: jno .+4; ud2
trapif nof v11, user0 ; bin: 70 02 user0 0f 0b
; Stack check.
; asm: cmpl %esp, %ecx

View File

@@ -862,6 +862,10 @@ ebb11:
trapif ugt v11, user0 ; bin: 76 02 user0 0f 0b
; asm: jnbe .+4; ud2
trapif ule v11, user0 ; bin: 77 02 user0 0f 0b
; asm: jo .+4; ud2
trapif of v11, user0 ; bin: 71 02 user0 0f 0b
; asm: jno .+4; ud2
trapif nof v11, user0 ; bin: 70 02 user0 0f 0b
; Debug trap.
debugtrap ; bin: cc