From dc2fe9b2e7a54b095b3614c8202ca38a094b3791 Mon Sep 17 00:00:00 2001 From: Alex Sepkowski <5620315+alsepkow@users.noreply.github.com> Date: Tue, 18 Nov 2025 13:26:01 -0800 Subject: [PATCH] Fix off by 1 bug in WaveActiveAllEqual --- tools/clang/unittests/HLSLExec/LongVectors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/clang/unittests/HLSLExec/LongVectors.cpp b/tools/clang/unittests/HLSLExec/LongVectors.cpp index 5ab16b75a8..59b9ccc3e6 100644 --- a/tools/clang/unittests/HLSLExec/LongVectors.cpp +++ b/tools/clang/unittests/HLSLExec/LongVectors.cpp @@ -1373,7 +1373,7 @@ template struct ExpectedBuilder { std::vector Expected; const size_t VectorSize = Inputs[0].size(); - Expected.assign(VectorSize - 1, static_cast(true)); + Expected.assign(VectorSize, static_cast(true)); // We set the last element to a different value on a single lane. Expected[VectorSize - 1] = static_cast(false);