| 5770 | } |
| 5771 | |
| 5772 | void testJS(U8 instruction) { |
| 5773 | testJ(instruction, SF, true); |
| 5774 | testJ(instruction, CF, false); |
| 5775 | testJ(instruction, OF, false); |
| 5776 | testJ(instruction, PF, false); |
| 5777 | testJ(instruction, AF, false); |
| 5778 | testJ(instruction, ZF, false); |
| 5779 | |
| 5780 | // if sign(SF = 1) |
| 5781 | testJumpCmp(instruction, 0, 0, false); |
| 5782 | testJumpCmp(instruction, 1, 0, false); |
| 5783 | testJumpCmp(instruction, 0, 1, true); |
| 5784 | testJumpCmp(instruction, 1, 0xffffffff, false); |
| 5785 | testJumpCmp(instruction, 0xffffffff, 1, true); |
| 5786 | } |
| 5787 | |
| 5788 | void testJNS(U8 instruction) { |
| 5789 | testJ(instruction, SF, false); |
no test coverage detected