allwinner_a64/android/art/runtime/interpreter/mterp/x86_64/zcmp.S
2018-08-08 16:48:17 +08:00

17 lines
599 B
ArmAsm

/*
* 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