<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/wc, branch master</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=master</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2026-03-01T02:36:34Z</updated>
<entry>
<title>tests: wc,du: add additional --files0-from test cases</title>
<updated>2026-03-01T02:36:34Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-03-01T02:36:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=236df1fa6a980eccd2bab1ff892746d5e261d7f7'/>
<id>urn:sha1:236df1fa6a980eccd2bab1ff892746d5e261d7f7</id>
<content type='text'>
* tests/wc/wc-files0-from.pl ($limits): New variable.
(@Tests): Prefer the error strings from getlimits over writing them by
hand. Add test cases for --files0-from listing missing files and
duplicate files.
* tests/du/files0-from.pl ($limits): New variable.
(@Tests): Prefer the error strings from getlimits over writing them by
hand. Add test cases for --files0-from listing missing files. Add tests
for --files0-from listing duplicate files with and without the -l option
also in use.
</content>
</entry>
<entry>
<title>wc: add aarch64 Neon optimization for wc -l</title>
<updated>2026-02-19T04:09:44Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-02-18T08:03:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6a3dde5dd2d77fa1aa5fac65d8f71bdad81471a1'/>
<id>urn:sha1:6a3dde5dd2d77fa1aa5fac65d8f71bdad81471a1</id>
<content type='text'>
Here is an example of the performance improvement:

    $ yes abcdefghijklmnopqrstuvwxyz | head -n 100000000 &gt; input
    $ time ./src/wc-prev -l &lt; input
    100000000

    real	0m0.793s
    user	0m0.630s
    sys	0m0.162s
    $ time ./src/wc -l &lt; input
    100000000

    real	0m0.230s
    user	0m0.065s
    sys	0m0.164s

* NEWS: Mention the performance improvement.
* gnulib: Update to the latest commit.
* configure.ac: Check the the necessary intrinsics and functions.
* src/local.mk (noinst_LIBRARIES) [USE_NEON_WC_LINECOUNT]: Add
src/libwc_neon.a.
(src_libwc_neon_a_SOURCES, wc_neon_ldadd, src_libwc_neon_a_CFLAGS)
[USE_NEON_WC_LINECOUNT]: New variables.
(src_wc_LDADD) [USE_NEON_WC_LINECOUNT]: Add $(wc_neon_ldadd).
* src/wc.c [USE_NEON_WC_LINECOUNT]: Include sys/auxv.h and asm/hwcap.h.
(neon_supported) [USE_NEON_WC_LINECOUNT]: New function.
(wc_lines) [USE_NEON_WC_LINECOUNT]: Use neon_supported and
wc_lines_neon.
* src/wc.h (wc_lines_neon): Add declaration.
* src/wc_neon.c: New file.
* doc/coreutils.texi (Hardware Acceleration): Document the "-ASIMD"
hwcap and the variable used in ./configure to override detection of Neon
instructions.
* tests/wc/wc-cpu.sh: Also add "-ASIMD" to disable the use of Neon
instructions.
</content>
</entry>
<entry>
<title>maint: run 'make update-copyright'</title>
<updated>2026-01-01T18:56:16Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2026-01-01T18:56:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=73d3a49f45770c45808e4fdab35ae4fe248a3cd9'/>
<id>urn:sha1:73d3a49f45770c45808e4fdab35ae4fe248a3cd9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: wc: protect against a hang on GNU/Hurd</title>
<updated>2025-11-07T00:52:03Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2025-11-07T00:52:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8dd89f55d52059e590572ed94a8c9165f92b5354'/>
<id>urn:sha1:8dd89f55d52059e590572ed94a8c9165f92b5354</id>
<content type='text'>
Reported by Bruno Haible in
&lt;https://lists.gnu.org/r/coreutils/2025-11/msg00051.html&gt;.

* tests/wc/wc-total.sh: Skip a test that would exhaust memory on
GNU/Hurd.
</content>
</entry>
<entry>
<title>wc: add AVX512 function for line counting</title>
<updated>2025-09-30T13:09:37Z</updated>
<author>
<name>Mathieu Bordere</name>
<email>mathieu@letmetweakit.com</email>
</author>
<published>2025-09-24T10:41:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=67e9068c5f5fdae5666279717a4c19bdfe5c21de'/>
<id>urn:sha1:67e9068c5f5fdae5666279717a4c19bdfe5c21de</id>
<content type='text'>
* configure.ac: Add detection of AVX512 intrinsics for wc.
* src/local.mk: Build AVX512 wc libraries.
* src/wc.c: Add runtime detection of AVX512 intrinsics and call
appropriate function when detected.
* src/wc.h (wc_lines_avx512): Declare function.
* tests/wc/wc-cpu.sh: Add a test that disables AVX512 intrinsics.
* src/wc_avx512.c: New file containing the wc -l implementation using
AVX512. The logic and code is reused from the AVX2 implementation with
slight adaptations. Replaced __builtin_popcount by __builtin_popcountll
and the combination of _mm256_cmpeq_epi8 and _mm256_movemask_epi8 by a
single call to _mm512_cmpeq_epi8_mask.
* NEWS: Mention the improvement.
</content>
</entry>
<entry>
<title>tests: wc: fix hardware acceleration disabling test</title>
<updated>2025-09-24T14:53:34Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-09-24T14:52:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0cc3e1bfb631b321e79b89d4f2862a2b62597c80'/>
<id>urn:sha1:0cc3e1bfb631b321e79b89d4f2862a2b62597c80</id>
<content type='text'>
* tests/wc/wc-cpu.sh: The message is only printed with wc -l.
Reported by Mathieu Borderé.
</content>
</entry>
<entry>
<title>cksum,wc: support disabling hardware acceleration at runtime</title>
<updated>2025-09-14T12:43:49Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-09-12T16:03:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7bd3839cda04d89a4f1d190aff3a35a319664d8b'/>
<id>urn:sha1:7bd3839cda04d89a4f1d190aff3a35a319664d8b</id>
<content type='text'>
This is useful to give better test coverage at least,
and may be useful for users to tune their environment.

* bootstrap.conf: Reference the cpu-supports gnulib module.
* src/cksum.c: Use cpu_supports() rather than __builtin_cpu_supports().
* src/wc.c: Likewise.
* tests/cksum/cksum.sh: Adjust to testing all implementations.
* tests/wc/wc-cpu.sh: A new test to do likewise.
* tests/local.mk: Reference the new wc test.
</content>
</entry>
<entry>
<title>maint: use consistent references to standard files in messages</title>
<updated>2025-08-06T01:46:04Z</updated>
<author>
<name>Collin Funk</name>
<email>collin.funk1@gmail.com</email>
</author>
<published>2025-08-06T01:46:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c9a30d67814f4b7daac7cdd33b69822ce5313d48'/>
<id>urn:sha1:c9a30d67814f4b7daac7cdd33b69822ce5313d48</id>
<content type='text'>
* cfg.mk (sc_standard_outputs): Add a grep command for source files.
* src/du.c (main): Use standard input instead of stdin, standard output
instead of stdout, and standard error instead of stderr in messages.
* src/nohup.c (main): Likewise.
* src/sort.c (main): Likewise.
* src/split.c (main): Likewise.
* src/stdbuf.c (main): Likewise.
* src/wc.c (main): Likewise.
* tests/du/files0-from.pl (@Tests): Adjust test case to new messages.
* tests/sort/sort-files0-from.pl: Likewise.
* tests/wc/wc-files0-from.pl: Likewise.
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2025-01-01T09:33:08Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-01T09:14:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=28b176085f04a6227d7fadd28a129b5cb02dfbf5'/>
<id>urn:sha1:28b176085f04a6227d7fadd28a129b5cb02dfbf5</id>
<content type='text'>
Update to latest gnulib with new copyright year.
Run "make update-copyright" and then...

* gnulib: Update included in this commit as copyright years
are the only change from the previous gnulib commit.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
* tests/sample-test: Adjust to use the single most recent year.
</content>
</entry>
<entry>
<title>wc: fix -w with breaking space over UCHAR_MAX</title>
<updated>2024-02-26T17:33:02Z</updated>
<author>
<name>Aearil</name>
<email>aearil@paranoici.org</email>
</author>
<published>2024-02-24T20:44:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=feda512e97ab988ba866aa82895e6647cb68917e'/>
<id>urn:sha1:feda512e97ab988ba866aa82895e6647cb68917e</id>
<content type='text'>
* src/wc.c (wc): Fix regression introduced in commit v9.4-48-gf40c6b5cf.
* tests/wc/wc-nbsh.sh: Add test cases for "standard" spaces.
Fixes https://bugs.gnu.org/69369
</content>
</entry>
</feed>
