Merge branch 'r8169-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/romieu...
[linux-2.6] / arch / blackfin / lib / smulsi3_highpart.S
1 .align 2
2 .global ___smulsi3_highpart;
3 .type ___smulsi3_highpart, STT_FUNC;
4
5 #ifdef CONFIG_ARITHMETIC_OPS_L1
6 .section .l1.text
7 #else
8 .text
9 #endif
10
11 ___smulsi3_highpart:
12         R2 = R1.L * R0.L (FU);
13         R3 = R1.H * R0.L (IS,M);
14         R0 = R0.H * R1.H, R1 = R0.H * R1.L (IS,M);
15
16         R1.L = R2.H + R1.L;
17         cc = ac0;
18         R2 = cc;
19
20         R1.L = R1.L + R3.L;
21         cc = ac0;
22         R1 >>>= 16;
23         R3 >>>= 16;
24         R1 = R1 + R3;
25         R1 = R1 + R2;
26         R2 = cc;
27         R1 = R1 + R2;
28
29         R0 = R0 + R1;
30         RTS;
31
32 .size ___smulsi3_highpart, .-___smulsi3_highpart