| 28 | } |
| 29 | |
| 30 | void test_load_store_u32_4(TestResult& result) { |
| 31 | uint32_t input[4] = {0x12345678, 0x9ABCDEF0, 0xFEDCBA98, 0x76543210}; |
| 32 | uint32_t output[4] = {0}; |
| 33 | |
| 34 | simd_u32x4 v = load_u32_4(input); |
| 35 | store_u32_4(output, v); |
| 36 | |
| 37 | for (int i = 0; i < 4; i++) { |
| 38 | if (input[i] != output[i]) { |
| 39 | result.fail("Load/store u32x4 data mismatch"); |
| 40 | return; |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | void test_load_store_f32_4(TestResult& result) { |
| 46 | float input[4] = {1.5f, 2.5f, 3.5f, 4.5f}; |