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(rINSTq)       # compare (vA, 0)
10    j${revcmp}   1f
11    movswq  2(rPC), rINSTq                  # fetch signed displacement
12    testq   rINSTq, rINSTq
13    jmp     MterpCommonTakenBranch
141:
15    cmpl    $$JIT_CHECK_OSR, rPROFILE
16    je      .L_check_not_taken_osr
17    ADVANCE_PC_FETCH_AND_GOTO_NEXT 2
18