| 1 |
#include <arm_neon.h> |
| 2 |
#include "arm-neon-ref.h" |
| 3 |
#include "compute-ref-data.h" |
| 4 |
|
| 5 |
#if defined(__cplusplus) |
| 6 |
#include <cstdint> |
| 7 |
#else |
| 8 |
#include <stdint.h> |
| 9 |
#endif |
| 10 |
|
| 11 |
#define INSN_NAME vsubhn |
| 12 |
#define TEST_MSG "VSUBHN" |
| 13 |
|
| 14 |
/* Expected results. */ |
| 15 |
VECT_VAR_DECL(expected,int,8,8) [] = { 0x31, 0x31, 0x31, 0x31, |
| 16 |
0x31, 0x31, 0x31, 0x31 }; |
| 17 |
VECT_VAR_DECL(expected,int,16,4) [] = { 0x31, 0x31, 0x31, 0x31 }; |
| 18 |
VECT_VAR_DECL(expected,int,32,2) [] = { 0x17, 0x17 }; |
| 19 |
VECT_VAR_DECL(expected,uint,8,8) [] = { 0x2, 0x2, 0x2, 0x2, |
| 20 |
0x2, 0x2, 0x2, 0x2 }; |
| 21 |
VECT_VAR_DECL(expected,uint,16,4) [] = { 0x36, 0x36, 0x36, 0x36 }; |
| 22 |
VECT_VAR_DECL(expected,uint,32,2) [] = { 0x2, 0x2 }; |
| 23 |
|
| 24 |
#include "vXXXhn.inc" |