blob: fb8ae6af6ef554835f09aa3a29398490a320c2d9 [file] [log] [blame]
/*
* Generic one-operand compare-and-branch operation. Provide a "revcmp"
* fragment that specifies the *reverse* comparison to perform, e.g.
* for "if-le" you would use "gt".
*
* for: if-eqz, if-nez, if-ltz, if-gez, if-gtz, if-lez
*/
/* if-cmp vAA, +BBBB */
cmpl $$0, VREG_ADDRESS(rINSTq) # compare (vA, 0)
j${revcmp} 1f
movswq 2(rPC), rINSTq # fetch signed displacement
testq rINSTq, rINSTq
jmp MterpCommonTakenBranch
1:
cmpl $$JIT_CHECK_OSR, rPROFILE
je .L_check_not_taken_osr
ADVANCE_PC_FETCH_AND_GOTO_NEXT 2