public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16150] New: __mpn_mul_1 and others resolve to VIS3 optimized routines at hosts without VIS3 insns available in non-shared case
@ 2013-11-10 17:22 ilmalakhov at yandex dot ru
  2013-11-10 17:23 ` [Bug libc/16150] " ilmalakhov at yandex dot ru
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ilmalakhov at yandex dot ru @ 2013-11-10 17:22 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16150

            Bug ID: 16150
           Summary: __mpn_mul_1 and others resolve to VIS3 optimized
                    routines at hosts without VIS3 insns available in
                    non-shared case
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: ilmalakhov at yandex dot ru
                CC: drepper.fsp at gmail dot com

Hi

 There seems to be a misprint in `sysdeps/sparc/sparc64/multiarch/mul_1.S' and
a number of similar files added by the commit
`32fcb36dbf4f729d0b0e6d5c386fd1d68486463d', which makes statically-linked
programs executing at hosts lacking VIS3 insns crash with SIGILL. As one can
see, the resolver function below returns a pointer to `__mpn_mul_1_vis3' in
non-shared case even if `(_dl_hwcap & HWCAP_SPARC_VIS3) == 0'.

$ cat sysdeps/sparc/sparc64/multiarch/mul_1.S
. . .
ENTRY(__mpn_mul_1)
        .type   __mpn_mul_1, @gnu_indirect_function
. . .
        set     HWCAP_SPARC_VIS3, %o1
        andcc   %o0, %o1, %g0
        be      1f
. . .
1:
# ifdef SHARED
        sethi   %gdop_hix22(__mpn_mul_1_generic), %o1
        xor     %o1, %gdop_lox10(__mpn_mul_1_generic), %o1
# else  
        set     __mpn_mul_1_vis3, %o1
# endif

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-13  9:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-10 17:22 [Bug libc/16150] New: __mpn_mul_1 and others resolve to VIS3 optimized routines at hosts without VIS3 insns available in non-shared case ilmalakhov at yandex dot ru
2013-11-10 17:23 ` [Bug libc/16150] " ilmalakhov at yandex dot ru
2013-11-12 20:51 ` cvs-commit at gcc dot gnu.org
2013-11-12 21:01 ` cvs-commit at gcc dot gnu.org
2013-11-12 21:16 ` cvs-commit at gcc dot gnu.org
2013-11-12 21:20 ` davem at davemloft dot net
2013-11-12 21:21 ` davem at davemloft dot net
2014-01-06 16:55 ` cvs-commit at gcc dot gnu.org
2014-01-06 16:56 ` cvs-commit at gcc dot gnu.org
2014-06-13  9:33 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).