blob: acecf41543e18dc0ab13438be8c997fdb023f6aa [file] [log] [blame]
#include <arm_neon.h>
#include "arm-neon-ref.h"
#include "compute-ref-data.h"
#if defined(__cplusplus)
#include <cstdint>
#else
#include <stdint.h>
#endif
#define INSN_NAME vsubhn
#define TEST_MSG "VSUBHN"
/* Expected results. */
VECT_VAR_DECL(expected,int,8,8) [] = { 0x31, 0x31, 0x31, 0x31,
0x31, 0x31, 0x31, 0x31 };
VECT_VAR_DECL(expected,int,16,4) [] = { 0x31, 0x31, 0x31, 0x31 };
VECT_VAR_DECL(expected,int,32,2) [] = { 0x17, 0x17 };
VECT_VAR_DECL(expected,uint,8,8) [] = { 0x2, 0x2, 0x2, 0x2,
0x2, 0x2, 0x2, 0x2 };
VECT_VAR_DECL(expected,uint,16,4) [] = { 0x36, 0x36, 0x36, 0x36 };
VECT_VAR_DECL(expected,uint,32,2) [] = { 0x2, 0x2 };
#include "vXXXhn.inc"