1 ! Copyright (C) 2012 by Imagination Technologies Ltd.
3 ! 64-bit arithmetic shift left routine.
8 .type ___ashldi3,function
13 CMP D1Ar3,#0 ! COUNT == 0
14 MOVEQ PC,D1RtP ! Yes, return
16 SUBS D0Ar4,D1Ar3,#32 ! N = COUNT - 32
20 NEG D0Ar4,D0Ar4 ! N = - N
21 LSL D1Re0,D1Re0,D1Ar3 ! HI = HI << COUNT
22 LSR D0Ar6,D0Re0,D0Ar4 ! TMP= LO >> -(COUNT - 32)
23 OR D1Re0,D1Re0,D0Ar6 ! HI = HI | TMP
25 LSL D0Re0,D0Re0,D0Ar4 ! LO = LO << COUNT
30 LSL D1Re0,D0Re0,D0Ar4 ! HI = LO << N
33 .size ___ashldi3,.-___ashldi3