1 #------------------------------------------------------------------------------
3 # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
5 # This program and the accompanying materials
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
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.
13 #------------------------------------------------------------------------------
17 \s\sGCC_ASM_EXPORT(__muldi3)
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}
24 \s\smov\s\sr4, r0, lsr #16
25 \s\sand\s\sr8, r0, r11
26 \s\sand\s\sip, r2, r11
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
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
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
48 \s\sadd\s\sr11, r0, r5
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}