| 1 |
#include <arm_mve.h> |
| 2 |
extern void abort (void); |
| 3 |
|
| 4 |
__attribute__ ((noipa)) void |
| 5 |
write_expected (uint32x4_t v, void *a) |
| 6 |
{ |
| 7 |
TYPE _v = (TYPE) v; |
| 8 |
INTRINSIC (a, _v); |
| 9 |
} |
| 10 |
|
| 11 |
void test (uint32x4_t, void *, mve_pred16_t, mve_pred16_t); |
| 12 |
|
| 13 |
int main(void) |
| 14 |
{ |
| 15 |
uint32x4_t v = {0, 1, 2, 3}; |
| 16 |
uint32_t actual[] = {0, 0, 0, 0}; |
| 17 |
uint32_t expected[] = {0, 0, 0, 0}; |
| 18 |
|
| 19 |
write_expected (v, &(expected[0])); |
| 20 |
|
| 21 |
mve_pred16_t p1 = 0xff00; |
| 22 |
mve_pred16_t p2 = 0x00ff; |
| 23 |
|
| 24 |
test (v, (void *)&actual[0], p1, p2); |
| 25 |
|
| 26 |
if (__builtin_memcmp (&actual[0], &expected[0], 16) != 0) |
| 27 |
abort (); |
| 28 |
|
| 29 |
return 0; |
| 30 |
} |
| 31 |
|