| 358 | } |
| 359 | |
| 360 | void test_sqrt_f32_4(TestResult& result) { |
| 361 | float input[4] = {4.0f, 9.0f, 16.0f, 25.0f}; |
| 362 | float expected[4] = {2.0f, 3.0f, 4.0f, 5.0f}; |
| 363 | float output[4] = {0.0f}; |
| 364 | |
| 365 | simd_f32x4 v = load_f32_4(input); |
| 366 | simd_f32x4 result_v = sqrt_f32_4(v); |
| 367 | store_f32_4(output, result_v); |
| 368 | |
| 369 | if (!compare_f32_arrays(expected, output, 4, 0.01f)) { |
| 370 | result.fail("Float sqrt operation produced incorrect results"); |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | void test_min_f32_4(TestResult& result) { |
| 375 | float a_data[4] = {1.0f, 5.0f, 3.0f, 7.0f}; |
nothing calls this directly
no test coverage detected