1 ! SPDX-License-Identifier: GPL-2.0
2 ! Copyright (C) 2012 by Imagination Technologies Ltd.
4 ! 64-bit multiply routine.
8 ! 64-bit signed/unsigned multiply
10 ! A = D1Ar1:D0Ar2 = a 2^48 + b 2^32 + c 2^16 + d 2^0
12 ! B = D1Ar3:D0Ar4 = w 2^48 + x 2^32 + y 2^16 + z 2^0
16 .type ___muldi3,function
19 MULD D1Re0,D1Ar1,D0Ar4 ! (a 2^48 + b 2^32)(y 2^16 + z 2^0)
20 MULD D0Re0,D0Ar2,D1Ar3 ! (w 2^48 + x 2^32)(c 2^16 + d 2^0)
23 MULW D0Re0,D0Ar2,D0Ar4 ! (d 2^0) * (z 2^0)
26 MULW D0Ar6,D0Ar2,D0Ar4 ! (c 2^16)(z 2^0)
29 ADDS D0Re0,D0Re0,D0Ar6
34 MULW D0Ar6,D0Ar2,D0Ar4 ! (c 2^16)(y 2^16)
38 MULW D0Ar6,D0Ar2,D0Ar4 ! (d 2^0)(y 2^16)
41 ADDS D0Re0,D0Re0,D0Ar6
45 .size ___muldi3,.-___muldi3