1/*
2 * Generic one-operand compare-and-branch operation.  Provide a "revcmp"
3 * fragment that specifies the *reverse* comparison to perform, e.g.
4 * for "if-le" you would use "gt".
5 *
6 * for: if-eqz, if-nez, if-ltz, if-gez, if-gtz, if-lez
7 */
8    /* if-cmp vAA, +BBBB */
9    cmpl    $$0, VREG_ADDRESS(rINST)        # compare (vA, 0)
10    j${revcmp}   1f
11    movswl  2(rPC), rINST                   # fetch signed displacement
12    testl   rINST, rINST
13    jmp     MterpCommonTakenBranch
141:
15    cmpw    $$JIT_CHECK_OSR, rPROFILE
16    je      .L_check_not_taken_osr
17    ADVANCE_PC_FETCH_AND_GOTO_NEXT 2
18