summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrnd.c
blob: 5f492d41bffb49fd6811a31aacb86d8a949ab0e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-require-effective-target arm_v8_neon_ok } */
/* { dg-add-options arm_v8_neon } */

#include <arm_neon.h>
#include "arm-neon-ref.h"
#include "compute-ref-data.h"

/* Expected results.  */
VECT_VAR_DECL (expected, hfloat, 32, 2) [] = { 0xc1800000, 0xc1700000 };
VECT_VAR_DECL (expected, hfloat, 32, 4) [] = { 0xc1800000, 0xc1700000,
					       0xc1600000, 0xc1500000 };

#define INSN vrnd
#define TEST_MSG "VRND"

#include "vrndX.inc"