| 1 |
extern void abort (void); |
| 2 |
|
| 3 |
int32x2_t |
| 4 |
test_vext_s32_1 (int32x2_t a, int32x2_t b) |
| 5 |
{ |
| 6 |
return vext_s32 (a, b, 1); |
| 7 |
} |
| 8 |
|
| 9 |
int |
| 10 |
main (int argc, char **argv) |
| 11 |
{ |
| 12 |
int i, off; |
| 13 |
int32_t arr1[] = {0, 1}; |
| 14 |
int32x2_t in1 = vld1_s32 (arr1); |
| 15 |
int32_t arr2[] = {2, 3}; |
| 16 |
int32x2_t in2 = vld1_s32 (arr2); |
| 17 |
int32_t exp[2]; |
| 18 |
int32x2_t expected; |
| 19 |
int32x2_t actual = test_vext_s32_1 (in1, in2); |
| 20 |
|
| 21 |
for (i = 0; i < 2; i++) |
| 22 |
exp[i] = i + 1; |
| 23 |
expected = vld1_s32 (exp); |
| 24 |
for (i = 0; i < 2; i++) |
| 25 |
if (actual[i] != expected[i]) |
| 26 |
abort (); |
| 27 |
|
| 28 |
return 0; |
| 29 |
} |
| 30 |
|