root/arch/sparc/lib/ashrdi3.S

/* [previous][next][first][last][top][bottom][index][help] */
   1 /* ashrdi3.S:   The filesystem code creates all kinds of references to
   2  *              this little routine on the sparc with gcc.
   3  *
   4  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
   5  */
   6 
   7                 .globl ___ashrdi3
   8 ___ashrdi3:
   9         tst     %o2
  10         be      3f
  11         or      %g0, 32, %g2
  12         sub     %g2, %o2, %g2
  13         tst     %g2
  14         bg      1f
  15         sra     %o0, %o2, %o4
  16         sra     %o0, 31, %o4
  17         sub     %g0, %g2, %g2
  18         ba      2f
  19         sra     %o0, %g2, %o5
  20 1:      sll     %o0, %g2, %g3
  21         srl     %o1, %o2, %g2
  22         or      %g2, %g3, %o5
  23 2:      or      %g0, %o4, %o0
  24         or      %g0, %o5, %o1
  25 3:      jmpl    %o7 + 8, %g0
  26         nop

/* [previous][next][first][last][top][bottom][index][help] */