| 310 | } |
| 311 | |
| 312 | void test_sub_f32_4(TestResult& result) { |
| 313 | float a_data[4] = {5.0f, 4.0f, 3.0f, 2.0f}; |
| 314 | float b_data[4] = {1.5f, 1.5f, 1.5f, 1.5f}; |
| 315 | float expected[4] = {3.5f, 2.5f, 1.5f, 0.5f}; |
| 316 | float output[4] = {0.0f}; |
| 317 | |
| 318 | simd_f32x4 a = load_f32_4(a_data); |
| 319 | simd_f32x4 b = load_f32_4(b_data); |
| 320 | simd_f32x4 c = sub_f32_4(a, b); |
| 321 | store_f32_4(output, c); |
| 322 | |
| 323 | if (!compare_f32_arrays(expected, output, 4)) { |
| 324 | result.fail("Float subtract operation produced incorrect results"); |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | void test_mul_f32_4(TestResult& result) { |
| 329 | float a_data[4] = {2.0f, 3.0f, 4.0f, 5.0f}; |
nothing calls this directly
no test coverage detected