From 392e8802486cb573b916e746010e141a75f507e6 Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 15 Nov 2014 09:58:27 +0800 Subject: init android origin source code --- ANDROID_3.4.5/arch/sparc/lib/lshrdi3.S | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ANDROID_3.4.5/arch/sparc/lib/lshrdi3.S (limited to 'ANDROID_3.4.5/arch/sparc/lib/lshrdi3.S') diff --git a/ANDROID_3.4.5/arch/sparc/lib/lshrdi3.S b/ANDROID_3.4.5/arch/sparc/lib/lshrdi3.S new file mode 100644 index 00000000..47a1354c --- /dev/null +++ b/ANDROID_3.4.5/arch/sparc/lib/lshrdi3.S @@ -0,0 +1,26 @@ + + .globl __lshrdi3 +__lshrdi3: + cmp %o2, 0 + be 3f + mov 0x20, %g2 + + sub %g2, %o2, %g2 + cmp %g2, 0 + bg 1f + srl %o0, %o2, %o4 + + clr %o4 + neg %g2 + b 2f + srl %o0, %g2, %o5 +1: + sll %o0, %g2, %g3 + srl %o1, %o2, %g2 + or %g2, %g3, %o5 +2: + mov %o4, %o0 + mov %o5, %o1 +3: + retl + nop -- cgit