instrrules.c
// Add integer comparision conditional jump rule
Add integer comparision conditional jump rule
Add integer comparision conditional jump rule
static void add_int_comp_cond_jmp_rule(int *ntc, int src1, int src2, char *template, int op, int x86op1, char *t1, int x86op2, char *t2) {
    Rule *r;
    (*ntc)++;
    r = add_rule(*ntc, op,     src1, src2, 10); add_op(r, X_CMP,  0, SRC1, SRC2, template ); fin_rule(r);
    r = add_rule(0,    IR_JNZ, *ntc, LAB,  1 ); add_op(r, x86op1, 0, SRC2, 0,    t1); fin_rule(r);
    r = add_rule(0,    IR_JZ,  *ntc, LAB,  1 ); add_op(r, x86op2, 0, SRC2, 0,    t2); fin_rule(r);
}
static void add_int_comp_cond_jmp_rule ( int * ntc , int src1 , int src2 , char * template , int op , int x86op1 , char * t1 , int x86op2 , char * t2 ) { Rule * r ; ( * ntc ) ++ ; r = add_rule ( * ntc , op , src1 , src2 , 10 ) ; add_op ( r , X_CMP , 0 , SRC1 , SRC2 , template ) ; fin_rule ( r ) ; r = add_rule ( 0 , IR_JNZ , * ntc , LAB , 1 ) ; add_op ( r , x86op1 , 0 , SRC2 , 0 , t1 ) ; fin_rule ( r ) ; r = add_rule ( 0 , IR_JZ , * ntc , LAB , 1 ) ; add_op ( r , x86op2 , 0 , SRC2 , 0 , t2 ) ; fin_rule ( r ) ; }
Add integer comparision conditional jump rule
Add integer comparision conditional jump rule