~ubuntu-branches/ubuntu/precise/eglibc/precise

« back to all changes in this revision

Viewing changes to sysdeps/sparc/sparc64/multiarch/memcpy.S

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-10-04 17:48:26 UTC
  • mfrom: (216.1.23 oneiric)
  • Revision ID: package-import@ubuntu.com-20111004174826-2cyb9ewn3ucymlsx
Tags: 2.13-20ubuntu5
libc6-dev: Don't break the current {gnat,gcj}-4.4-base versons. LP: #853688.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Multiple versions of memcpy
2
 
   Copyright (C) 2010, 2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 2010 Free Software Foundation, Inc.
3
3
   Contributed by David S. Miller (davem@davemloft.net)
4
4
   This file is part of the GNU C Library.
5
5
 
32
32
         or     %o3, %lo(_GLOBAL_OFFSET_TABLE_+4), %o3
33
33
1:      add     %o7, %o3, %o3
34
34
        mov     %o5, %o7
 
35
        sethi   %hi(_rtld_global_ro), %o2
 
36
        or      %o2, %lo(_rtld_global_ro), %o2
 
37
#  ifdef __arch64__
 
38
        ldx     [%o3 + %o2], %o2
 
39
        ldx     [%o2 + RTLD_GLOBAL_RO_DL_HWCAP_OFFSET], %o2
 
40
#  else
 
41
        ld      [%o3 + %o2], %o2
 
42
        ld      [%o2 + RTLD_GLOBAL_RO_DL_HWCAP_OFFSET + 4], %o2
 
43
#  endif
 
44
# else
 
45
        set     _dl_hwcap, %o3
 
46
#  ifdef __arch64__
 
47
        ldx     [%o3], %o2
 
48
#  else
 
49
        ld      [%o3 + 4], %o2
 
50
#  endif
35
51
# endif
36
 
        andcc   %o0, HWCAP_SPARC_N2, %g0
 
52
        andcc   %o2, 0x80, %g0  ! HWCAP_SPARC_N2
37
53
        be      1f
38
 
         andcc  %o0, HWCAP_SPARC_BLKINIT, %g0
 
54
         andcc  %o2, 0x40, %g0  ! HWCAP_SPARC_BLKINIT
39
55
# ifdef SHARED
40
56
        sethi   %gdop_hix22(__memcpy_niagara2), %o1
41
57
        xor     %o1, %gdop_lox10(__memcpy_niagara2), %o1
45
61
        ba      10f
46
62
         nop
47
63
1:      be      1f
48
 
         andcc  %o0, HWCAP_SPARC_ULTRA3, %g0
 
64
         andcc  %o2, 0x20, %g0  ! HWCAP_SPARC_ULTRA3
49
65
# ifdef SHARED
50
66
        sethi   %gdop_hix22(__memcpy_niagara1), %o1
51
67
        xor     %o1, %gdop_lox10(__memcpy_niagara1), %o1