Home | History | Annotate | Download | only in mips64
      1     /*
      2      * Generic two-operand compare-and-branch operation.  Provide a "condition"
      3      * fragment that specifies the comparison to perform, e.g. for
      4      * "if-le" you would use "le".
      5      *
      6      * For: if-eq, if-ne, if-lt, if-ge, if-gt, if-le
      7      */
      8     /* if-cmp vA, vB, +CCCC */
      9     ext     a2, rINST, 8, 4             # a2 <- A
     10     ext     a3, rINST, 12, 4            # a3 <- B
     11     lh      rINST, 2(rPC)               # rINST <- offset (sign-extended CCCC)
     12     GET_VREG a0, a2                     # a0 <- vA
     13     GET_VREG a1, a3                     # a1 <- vB
     14     b${condition}c a0, a1, MterpCommonTakenBranchNoFlags
     15     li      v0, JIT_CHECK_OSR           # possible OSR re-entry?
     16     beqc    rPROFILE, v0, .L_check_not_taken_osr
     17     FETCH_ADVANCE_INST 2                # advance rPC, load rINST
     18     GET_INST_OPCODE v0                  # extract opcode from rINST
     19     GOTO_OPCODE v0                      # jump to next instruction
     20