blob: b4ef51cae7460b1a70611a8c2ef3db7b53c87860 [file] [log] [blame]
extern void abort (void);
poly8x8x2_t
test_vuzpp8 (poly8x8_t _a, poly8x8_t _b)
{
return vuzp_p8 (_a, _b);
}
int
main (int argc, char **argv)
{
int i;
poly8_t first[] = {1, 2, 3, 4, 5, 6, 7, 8};
poly8_t second[] = {9, 10, 11, 12, 13, 14, 15, 16};
poly8x8x2_t result = test_vuzpp8 (vld1_p8 (first), vld1_p8 (second));
poly8_t exp1[] = {1, 3, 5, 7, 9, 11, 13, 15};
poly8_t exp2[] = {2, 4, 6, 8, 10, 12, 14, 16};
poly8x8_t expect1 = vld1_p8 (exp1);
poly8x8_t expect2 = vld1_p8 (exp2);
for (i = 0; i < 8; i++)
if ((result.val[0][i] != expect1[i]) || (result.val[1][i] != expect2[i]))
abort ();
return 0;
}