diff options
author | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-11 10:15:32 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-11 10:15:32 +0200 |
commit | 97c0278dc1cdef940d837be932a284c2bd7f4d35 (patch) | |
tree | bd0de4b1543c47e6368cd3feaa4b20b2b4c20ed8 /arch/blackfin/lib/smulsi3_highpart.S | |
parent | 6402a7d5b747008c5b13d8e62d97493b9f852700 (diff) | |
download | barebox-97c0278dc1cdef940d837be932a284c2bd7f4d35.tar.gz barebox-97c0278dc1cdef940d837be932a284c2bd7f4d35.tar.xz |
initial blackfin support
Diffstat (limited to 'arch/blackfin/lib/smulsi3_highpart.S')
-rw-r--r-- | arch/blackfin/lib/smulsi3_highpart.S | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/blackfin/lib/smulsi3_highpart.S b/arch/blackfin/lib/smulsi3_highpart.S new file mode 100644 index 0000000000..10b8f8da57 --- /dev/null +++ b/arch/blackfin/lib/smulsi3_highpart.S @@ -0,0 +1,30 @@ +.align 2 +.global ___smulsi3_highpart; +.type ___smulsi3_highpart, STT_FUNC; + +#ifdef CONFIG_ARITHMETIC_OPS_L1 +.section .l1.text +#else +.text +#endif + +___smulsi3_highpart: + R2 = R1.L * R0.L (FU); + R3 = R1.H * R0.L (IS,M); + R0 = R0.H * R1.H, R1 = R0.H * R1.L (IS,M); + + R1.L = R2.H + R1.L; + cc = ac0; + R2 = cc; + + R1.L = R1.L + R3.L; + cc = ac0; + R1 >>>= 16; + R3 >>>= 16; + R1 = R1 + R3; + R1 = R1 + R2; + R2 = cc; + R1 = R1 + R2; + + R0 = R0 + R1; + RTS; |