Home | History | Annotate | Download | only in arm64
      1     /*
      2      * Generic two-operand compare-and-branch operation.  Provide a "condition"
      3      * fragment that specifies the comparison to perform.
      4      *
      5      * For: if-eq, if-ne, if-lt, if-ge, if-gt, if-le
      6      */
      7     /* if-cmp vA, vB, +CCCC */
      8     lsr     w1, wINST, #12              // w1<- B
      9     ubfx    w0, wINST, #8, #4           // w0<- A
     10     GET_VREG w3, w1                     // w3<- vB
     11     GET_VREG w2, w0                     // w2<- vA
     12     FETCH_S wINST, 1                    // wINST<- branch offset, in code units
     13     cmp     w2, w3                      // compare (vA, vB)
     14     b.${condition} MterpCommonTakenBranchNoFlags
     15     cmp     wPROFILE, #JIT_CHECK_OSR    // possible OSR re-entry?
     16     b.eq    .L_check_not_taken_osr
     17     FETCH_ADVANCE_INST 2
     18     GET_INST_OPCODE ip                  // extract opcode from wINST
     19     GOTO_OPCODE ip                      // jump to next instruction
     20