Skip to content

Commit 5b349f8

Browse files
authored
[bug] Execution Tests: Long Vector fix bug in compute expected values for split double (microsoft#7764)
This PR fixes a bug in computing the expected values for split double introduced in a recent refactor of the test architecture.
1 parent 9c8b79b commit 5b349f8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tools/clang/unittests/HLSLExec/LongVectors.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -935,13 +935,13 @@ void dispatchAsUintSplitDoubleTest(const TestConfig &Config,
935935
InputSets<double, 1> Inputs = buildTestInputs<double, 1>(Config, VectorSize);
936936

937937
std::vector<uint32_t> Expected;
938-
Expected.resize(Inputs.size() * 2);
938+
Expected.resize(VectorSize * 2);
939939

940-
for (size_t I = 0; I < Inputs.size(); ++I) {
940+
for (size_t I = 0; I < VectorSize; ++I) {
941941
uint32_t Low, High;
942-
splitDouble(Expected[I], Low, High);
942+
splitDouble(Inputs[0][I], Low, High);
943943
Expected[I] = Low;
944-
Expected[I + Inputs.size()] = High;
944+
Expected[I + VectorSize] = High;
945945
}
946946

947947
ValidationConfig ValidationConfig{};

0 commit comments

Comments
 (0)