/* | |
* 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(rINST) # compare (vA, 0) | |
j${revcmp} 1f | |
movswl 2(rPC), rINST # fetch signed displacement | |
testl rINST, rINST | |
jmp MterpCommonTakenBranch | |
1: | |
cmpw $$JIT_CHECK_OSR, rPROFILE | |
je .L_check_not_taken_osr | |
ADVANCE_PC_FETCH_AND_GOTO_NEXT 2 |