Home | History | Annotate | Download | only in armv5te
      1     /*
      2      * Long integer shift.  This is different from the generic 32/64-bit
      3      * binary operations because vAA/vBB are 64-bit but vCC (the shift
      4      * distance) is 32-bit.  Also, Dalvik requires us to ignore all but the low
      5      * 6 bits.
      6      */
      7     /* ushr-long vAA, vBB, vCC */
      8     and     r2, r2, #63                 @ r0<- r0 & 0x3f
      9     mov     r0, r0, lsr r2              @  r0<- r2 >> r2
     10     rsb     r3, r2, #32                 @  r3<- 32 - r2
     11     orr     r0, r0, r1, asl r3          @  r0<- r0 | (r1 << (32-r2))
     12     subs    ip, r2, #32                 @  ip<- r2 - 32
     13     movpl   r0, r1, lsr ip              @  if r2 >= 32, r0<-r1 >>> (r2-32)
     14     mov     r1, r1, lsr r2              @  r1<- r1 >>> r2
     15     bx      lr
     16