[libc] Relax read errno check (#215053)
read_write_test was failing on the libc-arm32-qemu-debian-dbg bot due to
a different errno number. Even though the test has a qemu branch, it did
not kick in because the bot does not set CMAKE_CROSSCOMPILING_EMULATOR
(I assume the tests get run via binfmt_misc).
While we could fix this in the bot config, and the different error
*might* be considered a qemu bug, I don't think this is particularly
relevant for this test, as we're merely forwarding the error number from
the kernel (as such, the errno expectation is more of a test for the
kernel that for libc). I think this okay to relax the check to expect
one of the two reasonable error messages.
clang/AMDGPU: Add half typed image gather4 builtin
Follow along with the precedent of using an f32 suffix
for the coordinate type. We probably should have had one
builtin that detected the coordinate type.
Co-Authored-By: Claude (Opus 4.8) <noreply at anthropic.com>
[libc] Fix HermeticTestUtils signature of operator delete (#215041)
The signed-and-aligned version should take a size_t. It was added to
support rv32 #67457, where it worked presumably because size_t is
defined as `unsigned int`.
This should fix printf_core.parser_test on amdgpu, which failed to link
because it generated a call to the operator (while other targets do
not). I did not try this with a GPU build, but I've verified this fixes
the same error in x86 builds (when deleting an overaligned struct).
multimedia/gaupol: Improve port
- Actually switch to GTK4.
- Use USE_GSTREAMER=rust instead of manually defining as dependency.
- Pet port{clippy,fmt}.
Fixes: f4bb31f406d7 ("multimedia/gaupol: Update 1.16 => 2.0")
Approved by: osa, vvd (Mentors, implicit)
[OpenMP] Convert AST dump tests for `variant` clause into codegen tests (#204581)
This is another spin-off of #200077 and a complimentary PR to #204493.
Johannes suggested that AST dump tests for the `variant` clause can be
turned into rather short codegen tests that check for the mangled name
of the selected function. This PR implements that.
When #204413 gets fixed, those tests can be further reduced to only use
`-verify`.
clang/AMDGPU: Require 16-bit-insts for half typed image sample builtins (#213612)
Extend the d16 feature requirement to the half typed image sample
builtins. The sample variants returning 16-bit elements require d16
support (gfx8+) but were gated only on image-insts/extended-image-insts,
so they were wrongly accepted on old targets.
Co-Authored-By: Claude (Opus 4.8) <noreply at anthropic.com>
[Flang][test] Account for FLANG_TEST_Fortran_FLAGS (#213964)
FLANG_TEST_Fortran_FLAGS allows adding additional flags when running
Flang's test. It is typically used for standalone builds of Flang where
the intrinsic modules are not (and cannot be) built using
LLVM_ENABLE_RUNTIMES=flang-rt, but an external location can be specified
using `-fintrinsic-modules-path`. FLANG_TEST_Fortran_FLAGS was not
accounted for in #201278. In this PR, accept (and ignore) any additional
command line arguments in the test.
Also change `flang` -> `%flang` which is what inserts the
FLANG_TEST_Fortran_FLAGS.
[AMDGPU] Mark int64_t and intmax_t as LP64 (#214865)
Summary:
The standalone amdgcn target currently inconsistently sets the bit
widths for things like intptr_t but does not set int64_t and intmax_t.
This diverges from the common Linux definitions, which HIP / OpenMP
currently inherit for most cases, but doesn't correspond to other
targets like Windows either. We should make this consistent with the
Linux target, both so we are not in the in-between state and because
that is what the vast majority of AMDGCN compilations already do through
HIP.
Note, this does not affect OpenCL, HIP, OpenMP, or SPIR-V compilations.
It only affects the raw '--target=amdgcn-amd-amdhsa` without any other
language mode set.
[OpenMP][offload] Fix target reduction for narrow non-integer types
Cast the result of the shuffle function back to the width that
corresponds to the integer that is used to hold the bits of the actual
type.
Prevents corresponding reductions from returning NaN or otherwise
incorrect results at higher optimization levels.
Claude assisted with this patch.
Bump libvips to 8.18.5
From upstream:
> Changes since 8.18.4:
>
> maplut: fix possible OOB read with complex images [sage-mode-hunter]
> measure: verify image region is larger than patch count [lovell]
> matload: more specific Matlab detection
> reduceh: fix potential incorrect output with Highway < 1.1.0 [dloebl]
> jxlsave: ensure EXIF data is freed on error [kleisauke]
> icc_ac2rc: ensure ICC profile is closed on error [kleisauke]
> buildlut: guard against NaN values [kleisauke]
> tiffsave: better xyz handling [har-pi]
> more use of vips_image_decode() [har-pi]
> quantise: better conversion to rgba [har-pi]
> jp2kload: support palette images [Socialpranker]
> buildlut: better final write calculation [har-pi]
18313 svm flush_asid can adopt a foreign CPU's ASID and skip the flush
Reviewed by: ixi meow <illumos at iximeow.net>
Reviewed by: Robert Mustacchi <rm at fingolfin.org>
Approved by: Dan McDonald <danmcd at edgecast.io>
18312 vmm frees nested page tables the CPU can still walk
Reviewed by: ixi meow <illumos at iximeow.net>
Reviewed by: Robert Mustacchi <rm at fingolfin.org>
Reviewed by: Patrick Mooney <pmooney at pfmooney.com>
Approved by: Dan McDonald <danmcd at edgecast.io>
libsysdecode: also verify command decoders
We already verified that the attribute parser tables were correctly
sorted. Now also verify that the command decoders are too.
While here move the assertions into a constructor so we only run them once.
libsysdecode: use decoder table for PF netlink commands
Introduce a PF netlink command decoder table mapping PFNL commands to
their attribute decoder sets. This replaces the existing switch-based
dispatch and makes it easier to add support for additional PF netlink
commands.
Signed-off-by: Ishan Agrawal <iagrawal9990 at gmail.com>
Sponsored-by: Google LLC (GSoC 2026)
Reviewed by: kp
clang/AMDGPU: Require 16-bit-insts for half typed image sample builtins
Extend the d16 feature requirement to the half typed image sample
builtins. The sample variants returning 16-bit elements require d16 support
(gfx8+) but were gated only on image-insts/extended-image-insts, so they were
wrongly accepted on old targets.
Co-Authored-By: Claude (Opus 4.8) <noreply at anthropic.com>
clang/AMDGPU: Add half typed image gather4 builtin
Follow along with the precedent of using an f32 suffix
for the coordinate type. We probably should have had one
builtin that detected the coordinate type.
Co-Authored-By: Claude (Opus 4.8) <noreply at anthropic.com>
clang/AMDGPU: Require 16-bit-insts for half typed image builtins (#205368)
Typed image load/store operations with 16-bit elements require d16
support which was introduced in gfx8. They were previously gated only
on image-insts, so they were wrongly accepted on targets that have
images but lack 16-bit support (e.g. gfx700), where the backend then
fails to select.
Co-Authored-By: Claude (Opus 4.8) <noreply at anthropic.com>
clang/AMDGPU: Require 16-bit-insts for half typed buffer format builtins (#205367)
Typed buffer format load/store operations with 16-bit elements require
d16 support which was introduced in gfx8. These builtins previously had
no required features at all, so they were accepted (and then crashed the
backend) on targets without 16-bit support.
The automatic builtin feature verification is enforced in codegen,
which seems like a layering violation.
Co-Authored-By: Claude (Opus 4.8) <noreply at anthropic.com>