LLVM/project 7f8faefllvm/test/Transforms/PhaseOrdering/X86 horizontal-reduce-add.ll horizontal-reduce-fadd.ll

[PhaseOrdering][X86] Copied codegen add/fadd reduction pattern tests to ensure middle-end is creating reduction intrinsics (#206101)

AVX512 is missing a llvm.vector.reduce.add.v16i32 call - will investigate
DeltaFile
+125-0llvm/test/Transforms/PhaseOrdering/X86/horizontal-reduce-add.ll
+98-0llvm/test/Transforms/PhaseOrdering/X86/horizontal-reduce-fadd.ll
+223-02 files

FreeBSD/src 2d7f1cfsys/kern syscalls.master

syscalls.master: Allow clock_nanosleep in capability mode

It is akin to nanosleep(2) and does not access global namespaces.
It should be permitted in capability mode.

Reviewed by: vangyzen
Fixes: 3f8455b0905a ("Add clock_nanosleep()")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57343

(cherry picked from commit 692b0ef1506ba51b72d0a2707cbf8879a6e01d78)
DeltaFile
+1-1sys/kern/syscalls.master
+1-11 files

FreeBSD/src aefff0asys/net if_media.h

if_media: Claim 10BASE-T1S and 10BASE-T1L constants

These are two single-pair Ethernet (SPE) variants that run at 10 Mbps.
10BASE-T1S has automotive origins and supports multiple nodes on up to
25m of cable.  10BASE-T1L is intended for building and industrial
automation and supports long-distance point to point links of over 1km.

Reviewed by:    kbowling
Differential Revision: https://reviews.freebsd.org/D56952

(cherry picked from commit a3036edd0292291a71fb74ba2bce355159ac6913)
DeltaFile
+6-0sys/net/if_media.h
+6-01 files

LLVM/project bcc3939llvm/lib/Transforms/Scalar GVNSink.cpp

[llvm][GVNSink] Avoid non-determistic iteration order over NeededPHIs (#205952)

The iteration order of DenseSet is not guaranteed, which affects the
output of code generated with GVNSink enabled. This can cause code to be
emitted in differing order, affect section ordering, and in some cases
was reported to result in larger binaries due to increased padding between
sections.

This patch addresses this by using SetVector, which has a deterministic
iteration order.
DeltaFile
+3-4llvm/lib/Transforms/Scalar/GVNSink.cpp
+3-41 files

LLVM/project 5cc938bllvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll, llvm/test/CodeGen/RISCV clmul.ll

Rebase

Created using spr 1.3.7
DeltaFile
+25,784-36,416llvm/test/CodeGen/RISCV/rvv/clmulh-sdnode.ll
+12,227-23,140llvm/test/CodeGen/RISCV/rvv/clmul-sdnode.ll
+12,991-3,310llvm/test/MC/AMDGPU/gfx13_asm_vop3_dpp16.s
+11,856-3,719llvm/test/MC/AMDGPU/gfx12_asm_vop3_dpp16.s
+4,004-11,142llvm/test/CodeGen/RISCV/clmul.ll
+6,940-6,782llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+73,802-84,5098,083 files not shown
+467,177-361,3538,089 files

LLVM/project 6a0ef50clang/lib/CodeGen CGStmtOpenMP.cpp

[clang][OpenMP][NFC] Assert fused distribute loop invariant

See
https://github.com/llvm/llvm-project/pull/201670#discussion_r3463060131
DeltaFile
+8-3clang/lib/CodeGen/CGStmtOpenMP.cpp
+8-31 files

LLVM/project fdf30aeflang/lib/Optimizer/Builder FIRBuilder.cpp, flang/lib/Optimizer/HLFIR/Transforms InlineHLFIRAssign.cpp

Revert "[Flang]Add support for inlining hlfir.assign operation where both LHS and RHS are slices of the same array" (#206103)

Reverts llvm/llvm-project#204532 due to regressions in numerous Fujitsu
tests and several important apps
DeltaFile
+0-178flang/test/HLFIR/inline-hlfir-assign-self-copy.fir
+0-141flang/test/HLFIR/inline-hlfir-assign-self-copy-runtime-stride.fir
+0-137flang/lib/Optimizer/Builder/FIRBuilder.cpp
+0-132flang/test/HLFIR/inline-hlfir-assign-pointer-overlap.fir
+0-98flang/test/HLFIR/inline-hlfir-assign-scalar-index.fir
+12-48flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRAssign.cpp
+12-7342 files not shown
+13-7458 files

LLVM/project 0c0633bllvm/include/llvm/ADT Enum.h

[spr] initial version

Created using spr 1.3.8-wip
DeltaFile
+2-1llvm/include/llvm/ADT/Enum.h
+2-11 files

LLVM/project 7dbdc34llvm/cmake/modules CoverageReport.cmake

Fix command-line argument for prepare-code-coverage-artifact.py (#200982)
DeltaFile
+1-1llvm/cmake/modules/CoverageReport.cmake
+1-11 files

FreeBSD/src ad26a56sys/dev/acpica acpi_timer.c, sys/x86/include init.h

acpi_timer(4): Remove unused 'acpi_timer_disabled' boolean

Same reason as for the previous commit to acpi_cpu(4).  This boolean is
not used anywhere.  Disabling acpi_timer(4) can be done through the
regular ACPI disable mechanism (using the 'debug.acpi.disabled' tunable,
see acpi_disabled()).

Reviewed by:    emaste (implicit)
Fixes:          ac3ede5371af ("x86/xen: remove PVHv1 code")
MFC after:      3 days
Event:          Halifax Hackathon 202606
Location:       Dalhousie CS Faculty building
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-5sys/dev/acpica/acpi_timer.c
+0-3sys/x86/include/init.h
+1-82 files

FreeBSD/src 25df388sys/dev/acpica acpi_hpet.c, sys/x86/include init.h

acpi_hpet(4): Remove unused 'acpi_hpet_disabled' boolean

Same reason as for the previous commit to acpi_cpu(4).  This boolean is
not used anywhere.  Disabling acpi_hpet(4) can be done through the
regular ACPI disable mechanism (using the 'debug.acpi.disabled' tunable,
see acpi_disabled()).

Reviewed by:    emaste (implicit)
Fixes:          ac3ede5371af ("x86/xen: remove PVHv1 code")
MFC after:      3 days
Event:          Halifax Hackathon 202606
Location:       Dalhousie CS Faculty building
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-4sys/dev/acpica/acpi_hpet.c
+0-3sys/x86/include/init.h
+1-72 files

LLVM/project 543ee60flang/lib/Semantics check-omp-structure.cpp check-omp-structure.h

Remove unused locator check
DeltaFile
+0-11flang/lib/Semantics/check-omp-structure.cpp
+0-1flang/lib/Semantics/check-omp-structure.h
+0-122 files

FreeBSD/src c5be733lib/msun/tests logarithm_test.c

msun/logarithm_test: expect_fail log1p_accuracy_tests in the correct spot

While here, remove the conditional on the "ci" config var to ensure that
this is reproducible locally as well.

This fixes a case where we are expecting a fail before the failing ATF_CHECK_*
assertion happens. Found in a CI failure here:
https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16608/testReport/lib.msun/logarithm_test/log1p_accuracy_tests/

PR:             253984
Fixes:          405188aeac540f7666dfde37c2f32d222119f56e
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D57351

(cherry picked from commit 19af9c77acc912e4bf90a667924f5f4ff78a7759)
DeltaFile
+3-4lib/msun/tests/logarithm_test.c
+3-41 files

FreeBSD/src be5333alib/msun/tests nan_test.c

lib/msun/tests: re-enable nan_test on riscv

Commit 1e25cda7f06923d05e28dac8eb1c1c428a5c92dc fixed it.

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 52ad4f883489f73e7a876f5cf296bb5a7dc696a2)
DeltaFile
+0-3lib/msun/tests/nan_test.c
+0-31 files

FreeBSD/src 3e559actests/sys/kern ptrace_test.c

ptrace_test: expect PT_STEP tests to fail on riscv

ptrace_single_step currently returns EOPNOTSUPP on riscv.

This temporarily fixes the following CI failures:
https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16606/testReport/sys.kern/ptrace_test/ptrace__PT_STEP_with_signal/
https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16606/testReport/sys.kern/ptrace_test/ptrace__step_siginfo/

Reviewed by:    kib
Approved by:    emaste (mentor)
Differential Revision:  https://reviews.freebsd.org/D57288

(cherry picked from commit a7df326619ef9caa2ed00bf2d103dd278e7b32ec)
DeltaFile
+8-0tests/sys/kern/ptrace_test.c
+8-01 files

FreeBSD/src a13936ftests/sys/netpfil/pf route_to.sh

tests/pf/route_to: check_random: rely on test timeout to fail

This test is known to be flaky if 10 attempts happens to be
not enough for the test to pass. Usually, this test passes in ~4-6 attempts.
See https://ci.freebsd.org/job/FreeBSD-main-amd64-test/28664/testReport/junit/sys.netpfil.pf/route_to/random_table/

Rely on the timeout (default 5 mins) to catch a failure here, rather than just 10
attempts. It's very unlikely that 5 mins worth of attempts still isn't enough.

For a history of flakiness, see
https://ci.freebsd.org/job/FreeBSD-main-amd64-test/lastSuccessfulBuild/testReport/junit/sys.netpfil.pf/route_to/random_table/history/

PR:             289477
Reviewed by:    kp
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D57408

(cherry picked from commit 1294f332aec02e111b47d69e0d91e32dc2624001)
DeltaFile
+8-12tests/sys/netpfil/pf/route_to.sh
+8-121 files

FreeBSD/src 200f43flib/libc/riscv gd_qnan.h

libc: fix strtold NaN representation on riscv

Regenerate gd_qnan.h on riscv using the qnan.c
config tool found in contrib/gdtoa.

This fixes the following tests in CI:
lib/libc/stdio/scanfloat_test:infinities_and_nans
lib/libc/stdlib/strtod_test:strtold_nan

Reviewed by:    jrtc27
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D57405

(cherry picked from commit 1e25cda7f06923d05e28dac8eb1c1c428a5c92dc)
DeltaFile
+3-3lib/libc/riscv/gd_qnan.h
+3-31 files

FreeBSD/src e639219lib/msun/tests invctrig_test.c logarithm_test.c

lib/msun/tests: xfail remaining failing tests on non-x86 archs

These are the remaining trivial xfail cases where no other
test logic changes are necessary.

Signed-off-by: Siva Mahadevan <me at svmhdvn.name>
PR:             290099
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1871
(cherry picked from commit 405188aeac540f7666dfde37c2f32d222119f56e)
DeltaFile
+15-0lib/msun/tests/invctrig_test.c
+9-2lib/msun/tests/logarithm_test.c
+9-0lib/msun/tests/next_test.c
+9-0lib/msun/tests/ctrig_test.c
+9-0lib/msun/tests/fma_test.c
+3-1lib/msun/tests/trig_test.c
+54-35 files not shown
+69-311 files

FreeBSD/src a230865lib/msun/tests lrint_test.c

lib/msun/tests: xfail failing lrint_test cases on non-x86 archs

Replace ATF_CHECK_* with ATF_REQUIRE_* to fail fast and avoid
unexpected aborts.

Signed-off-by: Siva Mahadevan <me at svmhdvn.name>
PR:             290099
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1871
(cherry picked from commit de601d5bf5c6d2409134abc4638c7a0818cc896e)
DeltaFile
+5-2lib/msun/tests/lrint_test.c
+5-21 files

FreeBSD/src 76c1cb3lib/libexecinfo/tests sigtramp_test.c

tests/sigtramp_test: xfail on non-amd64

This test fail until at least https://reviews.llvm.org/D155066 is
rebased and picked up for aarch64 and more work is done for the other
archs.

PR:             289096
Reviewed by:    jlduran
Fixes:          fef84fd8ae845e19cec0f6b9aac0e6451cca3d7a
MFC after:      3 days

(cherry picked from commit 0010c4b8a020dbeb81e61b71117d1caae9b044cc)
DeltaFile
+2-2lib/libexecinfo/tests/sigtramp_test.c
+2-21 files

FreeBSD/src f6ca004tests/sys/posixshm memfd_test.c

memfd_test: skip hugetlb testcase when large page requests are not supported

Fixes this CI test failure: https://ci.freebsd.org/view/Test/job/FreeBSD-main-riscv64-test/16606/testReport/junit/sys.posixshm/memfd_test/hugetlb/

Reviewed by:    kevans
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D57289

(cherry picked from commit 64b053f879a8b3c4aa31e1ab99340dfe0ddfea0c)
DeltaFile
+5-2tests/sys/posixshm/memfd_test.c
+5-21 files

FreeBSD/src bacf780lib/libc/tests/secure fortify_uio_test.c generate-fortify-tests.lua

libc/fortify_uio_test: replace stdin in base readv tests

This fixes the readv_before_end and preadv_before_end test
timeout failures on riscv.

See https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/lastCompletedBuild/testReport/lib.libc.secure/fortify_uio_test/readv_before_end/

Reviewed by:    kevans, emaste
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D57420

(cherry picked from commit 9f2a38cf40f2632472b3889505fd1ab5d6ba9e1b)
DeltaFile
+18-0lib/libc/tests/secure/fortify_uio_test.c
+2-0lib/libc/tests/secure/generate-fortify-tests.lua
+20-02 files

FreeBSD/src c8039d9sys/netpfil/pf pf.c

pf: free match rules after exiting critical section

This fixes a panic reported on armv7:

sys/netpfil/pf/counters:match_block  ->  panic: free: called with spinlock or critical section held
[...]
vpanic() at vpanic
         pc = 0xc0321b5c  lr = 0xc02f7b5c (free+0x140)
         sp = 0xc8c858bc  fp = 0xc8c858e0
         r4 = 0xe2fad648  r5 = 0xe402ce78
         r6 = 0xc8c859e8  r7 = 0x0000001c
         r8 = 0xc8c858b4  r9 = 0xc0321b5c
        r10 = 0xc8c858bc
free() at free+0x140
         pc = 0xc02f7b5c  lr = 0xe2f4f920 ($a+0x5f8)
         sp = 0xc8c858e8  fp = 0xc8c85930
         r4 = 0xe402ce68  r5 = 0xc8c8599c
         r6 = 0xffffffff r10 = 0x0000001c
[...]

    [10 lines not shown]
DeltaFile
+4-4sys/netpfil/pf/pf.c
+4-41 files

FreeBSD/src 1a861f3lib/msun/tests invtrig_test.c

lib/msun/tests: xfail failing invtrig_test cases on non-x86

Replace ATF_CHECK_* with ATF_REQUIRE_* to fail fast and avoid
unexpected abort.

PR:             290099
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1871

(cherry picked from commit 5a0617454e37c6a3df4106c24bd5ad20b338fe3a)
DeltaFile
+19-7lib/msun/tests/invtrig_test.c
+19-71 files

FreeBSD/src 2dc5e14sys/amd64/conf GENERIC, sys/arm/conf std.armv7

GENERIC: enable extended error strings on all archs

This follows commit 3296fda0c309c873ae37a0a4e25ded3ae04b421c.

PR:             289236
Reviewed by:    kib
MFC after:      3 days

(cherry picked from commit f38cbefef8090f3363e5685c5a3b30ffbf1d3ad0)
DeltaFile
+1-1sys/amd64/conf/GENERIC
+1-1sys/arm64/conf/std.arm64
+1-0sys/i386/conf/GENERIC
+1-0sys/arm/conf/std.armv7
+1-0sys/powerpc/conf/GENERIC
+1-0sys/riscv/conf/GENERIC
+6-26 files

FreeBSD/src 12f47bfshare/man/man5 src.conf.5, share/mk src.opts.mk

src.opts.mk: enable OPENSSL_KTLS by default on riscv64

1e649491b8567151270095fda3bce8faea394952 enabled KERN_TLS in
riscv/conf/GENERIC, but didn't enable OPENSSL_KTLS.

This passes all testcases in the sys/kern/ssl_sendfile suite and
fixes CI failures seen here:
https://ci.freebsd.org/job/FreeBSD-main-riscv64-test/16606/testReport/sys.kern/ssl_sendfile/

PR:     293810
Fixes:  1e649491b8567151270095fda3bce8faea394952
MFC after:      3 days
Reviewed by:    gallatin, ngie
Differential Revision:  https://reviews.freebsd.org/D57316

(cherry picked from commit b61ab2d693c04d4be5468e7db4b03d5777228f95)
DeltaFile
+9-3share/man/man5/src.conf.5
+2-2share/mk/src.opts.mk
+11-52 files

FreeBSD/src c1cab43lib/msun/tests test-utils.h

lib/msun/tests: Add REQUIRE_ variants of test-utils macros

Signed-off-by: Siva Mahadevan <me at svmhdvn.name>
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1871
(cherry picked from commit a9b1650f90f4dbc62baa52b395082b1714b6cbf3)
DeltaFile
+30-15lib/msun/tests/test-utils.h
+30-151 files

FreeBSD/src 86f5085contrib/netbsd-tests/lib/libm t_fe_round.c

lib/msun/tests: xfail fe_round on riscv64

Replace ATF_CHECK_* with ATF_REQUIRE_* to fail fast and
avoid unexpected aborts.

Signed-off-by: Siva Mahadevan <me at svmhdvn.name>
PR:             290099
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1871
(cherry picked from commit 6c18c40b29fd5ac66230af34726260ce2d47aecd)
DeltaFile
+5-2contrib/netbsd-tests/lib/libm/t_fe_round.c
+5-21 files

FreeBSD/src 11d85cecontrib/netbsd-tests/lib/libm t_fe_round.c, lib/msun/tests fmaxmin_test.c

lib/msun/tests: Remove newlines in ATF msgs

This fixes broken test reports with the following message:

lib/msun/fe_round_test:fe_round  ->  broken: Test result contains
multiple lines: expected_failure:
/usr/src/contrib/netbsd-tests/lib/libm/t_fe_round.c:95: Didn't get the
same rounding mode out!<<NEWLINE>>(index 0) fed in 64 rounding mode, got
0 out<<NEWLINE>>  [0.079s]

Signed-off-by: Siva Mahadevan <me at svmhdvn.name>
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1871
(cherry picked from commit ec640742e30270098f8d982c1c0838f2dfde9ad5)
DeltaFile
+12-12contrib/netbsd-tests/lib/libm/t_fe_round.c
+1-1lib/msun/tests/fmaxmin_test.c
+13-132 files

FreeBSD/src 17e00bflib/msun/tests fma_test.c ctrig_test.c

lib/msun/tests: Replace remaining printf() with debug()

Signed-off-by: Siva Mahadevan <me at svmhdvn.name>
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1871
(cherry picked from commit d03c9b8f662466537753056608d6a64d8c5513c3)
DeltaFile
+4-4lib/msun/tests/fma_test.c
+3-3lib/msun/tests/ctrig_test.c
+7-72 files