1 extern void abort (void); 2 3 int16x8_t test_vrev32qs16(int16x8_t _arg)4test_vrev32qs16 (int16x8_t _arg) 5 { 6 return vrev32q_s16 (_arg); 7 } 8 9 int main(int argc,char ** argv)10main (int argc, char **argv) 11 { 12 int i; 13 int16x8_t inorder = {1, 2, 3, 4, 5, 6, 7, 8}; 14 int16x8_t reversed = test_vrev32qs16 (inorder); 15 int16x8_t expected = {2, 1, 4, 3, 6, 5, 8, 7}; 16 17 for (i = 0; i < 8; i++) 18 if (reversed[i] != expected[i]) 19 abort (); 20 return 0; 21 } 22 23