Home | History | Annotate | Download | only in arm64
      1 %default { "compare":"1" }
      2     /*
      3      * Generic one-operand compare-and-branch operation.  Provide a "condition"
      4      * fragment that specifies the comparison to perform.
      5      *
      6      * for: if-eqz, if-nez, if-ltz, if-gez, if-gtz, if-lez
      7      */
      8     /* if-cmp vAA, +BBBB */
      9     lsr     w0, wINST, #8               // w0<- AA
     10     GET_VREG w2, w0                     // w2<- vAA
     11     FETCH_S wINST, 1                    // w1<- branch offset, in code units
     12     .if ${compare}
     13     cmp     w2, #0                      // compare (vA, 0)
     14     .endif
     15     ${branch} MterpCommonTakenBranchNoFlags
     16     cmp     wPROFILE, #JIT_CHECK_OSR    // possible OSR re-entry?
     17     b.eq    .L_check_not_taken_osr
     18     FETCH_ADVANCE_INST 2
     19     GET_INST_OPCODE ip                  // extract opcode from wINST
     20     GOTO_OPCODE ip                      // jump to next instruction
     21