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;