1 ! Copyright (C) 2012 by Imagination Technologies Ltd.
3 ! 64-bit multiply routine.
7 ! 64-bit signed/unsigned multiply
9 ! A = D1Ar1:D0Ar2 = a 2^48 + b 2^32 + c 2^16 + d 2^0
11 ! B = D1Ar3:D0Ar4 = w 2^48 + x 2^32 + y 2^16 + z 2^0
15 .type ___muldi3,function
18 MULD D1Re0,D1Ar1,D0Ar4 ! (a 2^48 + b 2^32)(y 2^16 + z 2^0)
19 MULD D0Re0,D0Ar2,D1Ar3 ! (w 2^48 + x 2^32)(c 2^16 + d 2^0)
22 MULW D0Re0,D0Ar2,D0Ar4 ! (d 2^0) * (z 2^0)
25 MULW D0Ar6,D0Ar2,D0Ar4 ! (c 2^16)(z 2^0)
28 ADDS D0Re0,D0Re0,D0Ar6
33 MULW D0Ar6,D0Ar2,D0Ar4 ! (c 2^16)(y 2^16)
37 MULW D0Ar6,D0Ar2,D0Ar4 ! (d 2^0)(y 2^16)
40 ADDS D0Re0,D0Re0,D0Ar6
44 .size ___muldi3,.-___muldi3