157 zassert_not_null(output, "output buffer allocation failed");
158
159 /* Begin benchmark */
160 benchmark_begin(&irq_key, ×tamp);
161
162 /* Execute function */
>>> CID 210615: Integer handling issues (INCOMPATIBLE_CAST)
>>> Pointer "input2" points to an object whose effective type is "unsigned int" (integral) but is dereferenced as a "float" (floating point). The cast will not convert the value of the object.
163 arm_add_f32(
164 (float32_t *)input1, (float32_t *)input2, output,
165 PATTERN_LENGTH);
166
167 /* End benchmark */
168 timespan = benchmark_end(irq_key, timestamp);
Please fix or provide comments in coverity using the link:
Note: This issue was created automatically. Priority was set based on classification
of the file affected and the impact field in coverity. Assignees were set using the CODEOWNERS file.
Static code scan issues found in file:
https://github.com/zephyrproject-rtos/zephyr/tree/4653b4e63f886a50ac7b72f8d47ba2950ab2dd0d/tests/benchmarks/cmsis_dsp/basicmath/src/f32.c#L163
Category: Integer handling issues Function:
test_benchmark_vec_add_f32
Component: Tests CID: 210615Details:
Please fix or provide comments in coverity using the link:
https://scan9.coverity.com/reports.htm#v32951/p12996.
Note: This issue was created automatically. Priority was set based on classification of the file affected and the impact field in coverity. Assignees were set using the CODEOWNERS file.