commit | eb4a32938442d098b7df09ae903bc1645c843c4e | [log] [tgz] |
---|---|---|
author | Tor Jeremiassen <torerik@google.com> | Thu Aug 08 09:42:12 2024 -0700 |
committer | Tor Jeremiassen <torerik@google.com> | Fri Aug 16 15:19:27 2024 -0700 |
tree | 93742527bfa4749eb55b227d051e5aa90264f83a | |
parent | 77c594f837d0cca62df3be53a53fb5f8cf1ac395 [diff] |
Fixed an memory santizer issue. PiperOrigin-RevId: 660872142 Change-Id: Ie935a8f091d1fa7de0a68ba997920c20f2b454ae
diff --git a/cheriot/test/riscv_cheriot_vector_fp_instructions_test.cc b/cheriot/test/riscv_cheriot_vector_fp_instructions_test.cc index 00f78c5..11a17b1 100644 --- a/cheriot/test/riscv_cheriot_vector_fp_instructions_test.cc +++ b/cheriot/test/riscv_cheriot_vector_fp_instructions_test.cc
@@ -320,6 +320,8 @@ {{kVmaskName, Span<const uint8_t>(kA5Mask)}}); // Iterate across different lmul values. for (int lmul_index = 0; lmul_index < 7; lmul_index++) { + // Clear vd_span. + for (auto &vd_val : vd_span) vd_val = 0; // Initialize input values. FillArrayWithRandomFPValues<Vs2>(vs2_span); using Vs2Int = typename FPTypeInfo<Vs2>::IntType;