/* __muldi3.S: 64-bit multiply1*2* Copyright (C) 2003 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License7* as published by the Free Software Foundation; either version8* 2 of the License, or (at your option) any later version.9*/1011.text12.p2align 41314###############################################################################15#16# unsigned long long __muldi3(unsigned long long x [GR8:GR9],17# unsigned long long y [GR10:GR11])18#19###############################################################################20.globl __muldi3, __mulll, __umulll21.type __muldi3,@function22__muldi3:23__mulll:24__umulll:25umul gr8,gr11,gr4 ; GR4:GR5 = x.MSW * y.LSW26umul gr9,gr10,gr6 ; GR6:GR7 = x.LSW * y.MSW27umul.p gr9,gr11,gr8 ; GR8:GR9 = x.LSW * y.LSW28add gr5,gr7,gr529add.p gr8,gr5,gr8 ; GR8 += GR5 + GR730bralr31.size __muldi3, .-__muldi3323334