| 5712 | } |
| 5713 | |
| 5714 | void testJBE(U8 instruction) { |
| 5715 | testJ(instruction, ZF, true); |
| 5716 | testJ(instruction, CF, true); |
| 5717 | testJ(instruction, CF | ZF, true); |
| 5718 | testJ(instruction, CF | OF, true); |
| 5719 | testJ(instruction, ZF | OF, true); |
| 5720 | testJ(instruction, OF, false); |
| 5721 | testJ(instruction, PF, false); |
| 5722 | testJ(instruction, AF, false); |
| 5723 | testJ(instruction, SF, false); |
| 5724 | |
| 5725 | // if below or equal (CF=1 or ZF=1) |
| 5726 | testJumpCmp(instruction, 0, 0, true); |
| 5727 | testJumpCmp(instruction, 1, 0, false); |
| 5728 | testJumpCmp(instruction, 0xffffffff, 0, false); |
| 5729 | testJumpCmp(instruction, 0, 1, true); |
| 5730 | testJumpCmp(instruction, 0, 0xffffffff, true); |
| 5731 | } |
| 5732 | |
| 5733 | void testJNBE(U8 instruction) { |
| 5734 | testJ(instruction, ZF, false); |
no test coverage detected