blob: 329dd494f8b2cd3b9c64187278b55107651ea05a [file] [log] [blame]
/* { dg-skip-if "" { arm*-*-* } } */
#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 vaddhn_high
#define TEST_MSG "VADDHN_HIGH"
/* Expected results. */
VECT_VAR_DECL(expected, int, 8, 16) [] = { 0x5, 0x5, 0x5, 0x5,
0x5, 0x5, 0x5, 0x5,
0x32, 0x32, 0x32, 0x32,
0x32, 0x32, 0x32, 0x32 };
VECT_VAR_DECL(expected, int, 16, 8) [] = { 0x5, 0x5, 0x5, 0x5,
0x32, 0x32, 0x32, 0x32 };
VECT_VAR_DECL(expected, int, 32, 4) [] = { 0x5, 0x5, 0x18, 0x18 };
VECT_VAR_DECL(expected, uint, 8, 16) [] = { 0x5, 0x5, 0x5, 0x5,
0x5, 0x5, 0x5, 0x5,
0x3, 0x3, 0x3, 0x3,
0x3, 0x3, 0x3, 0x3 };
VECT_VAR_DECL(expected, uint, 16, 8) [] = { 0x5, 0x5, 0x5, 0x5,
0x37, 0x37, 0x37, 0x37 };
VECT_VAR_DECL(expected, uint, 32, 4) [] = { 0x5, 0x5, 0x3, 0x3 };
#include "vXXXhn_high.inc"