** check whether list has any jump that do not produce a value ** (or produce an inverted value) */
| 3789 | ** (or produce an inverted value) |
| 3790 | */ |
| 3791 | static int need_value (FuncState *fs, int list) { |
| 3792 | for (; list != NO_JUMP; list = getjump(fs, list)) { |
| 3793 | Instruction i = *getjumpcontrol(fs, list); |
| 3794 | if (GET_OPCODE(i) != OP_TESTSET) return 1; |
| 3795 | } |
| 3796 | return 0; /* not found */ |
| 3797 | } |
| 3798 | |
| 3799 | |
| 3800 | static int patchtestreg (FuncState *fs, int node, int reg) { |
no test coverage detected