]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPkg/Library/CompilerIntrinsicsLib/Arm/muldi3.S
Remove tabs from all text files in the package.
[mirror_edk2.git] / ArmPkg / Library / CompilerIntrinsicsLib / Arm / muldi3.S
CommitLineData
2ef2b01e
A
1#------------------------------------------------------------------------------
2#
d6ebcab7 3# Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
2ef2b01e 4#
d6ebcab7 5# This program and the accompanying materials
2ef2b01e
A
6# are licensed and made available under the terms and conditions of the BSD License
7# which accompanies this distribution. The full text of the license may be found at
8# http://opensource.org/licenses/bsd-license.php
9#
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12#
13#------------------------------------------------------------------------------
14
58b5d037 15\s\s.text
16\s\s.align 2
17\s\sGCC_ASM_EXPORT(__muldi3)
63ca7402 18
4e471bfd 19ASM_PFX(__muldi3):
58b5d037 20\s\sstmfd\s\ssp!, {r4, r5, r6, r7, lr}
21\s\sadd\s\sr7, sp, #12
22\s\sstmfd\s\ssp!, {r8, r10, r11}
23\s\sldr\s\sr11, L4
24\s\smov\s\sr4, r0, lsr #16
25\s\sand\s\sr8, r0, r11
26\s\sand\s\sip, r2, r11
27\s\smul\s\slr, ip, r8
28\s\smul\s\sip, r4, ip
29\s\ssub\s\ssp, sp, #8
30\s\sadd\s\sr10, ip, lr, lsr #16
31\s\sand\s\sip, r10, r11
32\s\sand\s\slr, lr, r11
33\s\smov\s\sr6, r2, lsr #16
34\s\sstr\s\sr4, [sp, #4]
35\s\sadd\s\sr4, lr, ip, asl #16
36\s\smul\s\sip, r8, r6
37\s\smov\s\sr5, r10, lsr #16
38\s\sadd\s\sr10, ip, r4, lsr #16
39\s\sand\s\sip, r10, r11
40\s\sand\s\slr, r4, r11
41\s\sadd\s\sr4, lr, ip, asl #16
42\s\smul\s\sr0, r3, r0
43\s\sadd\s\sip, r5, r10, lsr #16
44\s\sldr\s\sr5, [sp, #4]
45\s\smla\s\sr0, r2, r1, r0
46\s\smla\s\sr5, r6, r5, ip
47\s\smov\s\sr10, r4
48\s\sadd\s\sr11, r0, r5
49\s\smov\s\sr1, r11
50\s\smov\s\sr0, r4
51\s\ssub\s\ssp, r7, #24
52\s\sldmfd\s\ssp!, {r8, r10, r11}
53\s\sldmfd\s\ssp!, {r4, r5, r6, r7, pc}
54\s\s.p2align 2
2ef2b01e 55L5:
58b5d037 56\s\s.align 2
2ef2b01e 57L4:
58b5d037 58\s\s.long\s\s65535