view gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsubhn.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

#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"