]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/sh/lib/ashrsi3.S
Merge remote-tracking branch 'spi/fix/core' into spi-linus
[karo-tx-linux.git] / arch / sh / lib / ashrsi3.S
index 6f3cf46b77c2c1cac502030cb3a0c7a8acdb1308..602599d80209114bfc2de066f2f0e74459fc5648 100644 (file)
@@ -54,22 +54,37 @@ Boston, MA 02110-1301, USA.  */
 !
 ! (none)
 !
+! __ashrsi3_r0
+!
+! Entry:
+!
+! r4: Value to shift
+! r0: Shifts
+!
+! Exit:
+!
+! r0: Result
+!
+! Destroys:
+!
+! (none)
 
        .global __ashrsi3
+       .global __ashrsi3_r0
        
        .align  2
 __ashrsi3:
-       mov     #31,r0
-       and     r0,r5
+       mov     r5,r0
+       .align  2
+__ashrsi3_r0:
+       and     #31,r0
+       mov.l   r4,@-r15
+       mov     r0,r4
        mova    ashrsi3_table,r0
-       mov.b   @(r0,r5),r5
-#ifdef __sh1__
-       add     r5,r0
+       mov.b   @(r0,r4),r4
+       add     r4,r0
        jmp     @r0
-#else
-       braf    r5
-#endif
-       mov     r4,r0
+       mov.l   @r15+,r0
 
        .align  2
 ashrsi3_table: