From 00ee1bd86fce1a6bcfdf26ef83054f6df88e081b Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 21 Nov 2026 20:16:08 -0800 Subject: [PATCH] Runtime test private_sinks: the NaN kernel's stores past its arrays have names of their own The NaN case's two stores at k reused %pa2 and %pb2, the names of element 2's pointers, so llvm-as refused the module (multiple definition of local value 'pa2', lavapipe job m3-max-65711). --- crates/metal2vulkan-runtime/src/tests/private_sinks.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/private_sinks.rs b/crates/metal2vulkan-runtime/src/tests/private_sinks.rs index 08ae45e7a..7c0a35821 100644 --- a/crates/metal2vulkan-runtime/src/tests/private_sinks.rs +++ b/crates/metal2vulkan-runtime/src/tests/private_sinks.rs @@ -279,10 +279,10 @@ source_filename = "private_sinks.metal" %pk = getelementptr inbounds i32, ptr addrspace(1) %in, i32 %i1 %k = load i32, ptr addrspace(1) %pk, align 4 %w = shl i32 %k, 2 - %pa2 = getelementptr inbounds i8, ptr %a, i32 %w - store float 2.500000e+00, ptr %pa2, align 4 - %pb2 = getelementptr inbounds [4 x float], ptr %b, i32 0, i32 %k - store float 2.500000e+00, ptr %pb2, align 4 + %pak = getelementptr inbounds i8, ptr %a, i32 %w + store float 2.500000e+00, ptr %pak, align 4 + %pbk = getelementptr inbounds [4 x float], ptr %b, i32 0, i32 %k + store float 2.500000e+00, ptr %pbk, align 4 " } else { ""