| 388 | } |
| 389 | |
| 390 | void test_max_f32_4(TestResult& result) { |
| 391 | float a_data[4] = {1.0f, 5.0f, 3.0f, 7.0f}; |
| 392 | float b_data[4] = {2.0f, 4.0f, 6.0f, 1.0f}; |
| 393 | float expected[4] = {2.0f, 5.0f, 6.0f, 7.0f}; |
| 394 | float output[4] = {0.0f}; |
| 395 | |
| 396 | simd_f32x4 a = load_f32_4(a_data); |
| 397 | simd_f32x4 b = load_f32_4(b_data); |
| 398 | simd_f32x4 c = max_f32_4(a, b); |
| 399 | store_f32_4(output, c); |
| 400 | |
| 401 | if (!compare_f32_arrays(expected, output, 4)) { |
| 402 | result.fail("Float max operation produced incorrect results"); |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | } // namespace simd_test |
nothing calls this directly
no test coverage detected