[PATCH v1 0/1] riscv: Nop out memcpy_noalignment if !IS_IN(libc)

Yao Zihong zihong.plct@isrc.iscas.ac.cn
Mon Jan 19 07:01:39 GMT 2026


This patch nop out memcpy_noalignment if !IS_IN(libc) since ld.so
can only use the generic implmentation.

Testing
-------
Testing was conducted on MUSE-Pi (SpacemiT M1). The glibc testsuite passed
without any additional regressions compared with glibc master in multiarch
and non-multiarch builds.

Summary of test results for(MUSE-Pi):
    XFAIL: conform/UNIX98/ndbm.h/conform
    XFAIL: conform/UNIX98/ndbm.h/linknamespace
    XFAIL: conform/UNIX98/varargs.h/conform
    XFAIL: conform/UNIX98/varargs.h/linknamespace
    XFAIL: conform/XOPEN2K/ndbm.h/conform
    XFAIL: conform/XOPEN2K/ndbm.h/linknamespace
    XFAIL: conform/XOPEN2K8/ndbm.h/conform
    XFAIL: conform/XOPEN2K8/ndbm.h/linknamespace
    XFAIL: conform/XPG4/varargs.h/conform
    XFAIL: conform/XPG4/varargs.h/linknamespace
    XFAIL: conform/XPG42/ndbm.h/conform
    XFAIL: conform/XPG42/ndbm.h/linknamespace
    XFAIL: conform/XPG42/varargs.h/conform
    XFAIL: conform/XPG42/varargs.h/linknamespace
    UNSUPPORTED: elf/tst-env-setuid
    XPASS: elf/tst-protected1a
    XPASS: elf/tst-protected1b
    UNSUPPORTED: elf/tst-valgrind-smoke
    UNSUPPORTED: io/tst-faccessat-setuid
    UNSUPPORTED: libio/tst-fopen-compat
    XFAIL: localedata/tst-langinfo-newlocale-static
    UNSUPPORTED: math/test-ceil-except-2
    UNSUPPORTED: math/test-fesetexcept-traps
    UNSUPPORTED: math/test-fexcept-traps
    UNSUPPORTED: math/test-floor-except-2
    UNSUPPORTED: math/test-nearbyint-except-2
    UNSUPPORTED: math/test-trunc-except-2
    UNSUPPORTED: misc/tst-adjtimex
    UNSUPPORTED: misc/tst-clock_adjtime
    UNSUPPORTED: misc/tst-epoll-ioctls
    FAIL: misc/tst-gethostid
    UNSUPPORTED: misc/tst-mseal
    UNSUPPORTED: misc/tst-mseal-pkey
    UNSUPPORTED: misc/tst-ntp_adjtime
    UNSUPPORTED: misc/tst-pidfd_getinfo
    UNSUPPORTED: misc/tst-pkey
    UNSUPPORTED: nptl/test-cond-printers
    UNSUPPORTED: nptl/test-condattr-printers
    UNSUPPORTED: nptl/test-mutex-printers
    UNSUPPORTED: nptl/test-mutexattr-printers
    UNSUPPORTED: nptl/test-rwlock-printers
    UNSUPPORTED: nptl/test-rwlockattr-printers
    FAIL: nss/test-netdb
    XFAIL: posix/annexc
    FAIL: resolv/tst-bug18665
    FAIL: resolv/tst-bug18665-tcp
    FAIL: resolv/tst-ns_rr_cursor
    FAIL: resolv/tst-resolv-ai_idn
    FAIL: resolv/tst-resolv-ai_idn-latin1
    FAIL: resolv/tst-resolv-ai_idn-nolibidn2
    FAIL: resolv/tst-resolv-aliases
    FAIL: resolv/tst-resolv-basic
    FAIL: resolv/tst-resolv-byaddr
    FAIL: resolv/tst-resolv-invalid-cname
    FAIL: resolv/tst-resolv-noaaaa
    FAIL: resolv/tst-resolv-noaaaa-vc
    FAIL: resolv/tst-resolv-res_init-multi
    FAIL: resolv/tst-resolv-search
    FAIL: resolv/tst-resolv-semi-failure
    FAIL: resolv/tst-resolv-short-response
    FAIL: resolv/tst-resolv-threads
    UNSUPPORTED: string/tst-strerror
    UNSUPPORTED: string/tst-strsignal
    UNSUPPORTED: time/tst-clock_settime
    UNSUPPORTED: time/tst-settimeofday

                    === Summary of results ===
        19 FAIL
      6642 PASS
        28 UNSUPPORTED
        16 XFAIL
         2 XPASS

---

Yao Zihong (1):
  riscv: Nop out memcpy_noalignment if !IS_IN(libc)

 sysdeps/riscv/multiarch/memcpy_noalignment.S | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.47.2



More information about the Libc-alpha mailing list