summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrndn.c
blob: 52b99424d28643a6414a2b1e29d6438ffa37172d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* { dg-require-effective-target arm_v8_neon_hw } */
/* { dg-add-options arm_v8_neon } */

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

/* Expected results.  */
/* Expected results.  */
#if defined (__ARM_FEATURE_FP16_VECTOR_ARITHMETIC)
VECT_VAR_DECL (expected, hfloat, 16, 4) [] = { 0xcc00, 0xcb80,
					       0xcb00, 0xca80 };
VECT_VAR_DECL (expected, hfloat, 16, 8) [] = { 0xcc00, 0xcb80,
					       0xcb00, 0xca80,
					       0xca00, 0xc980,
					       0xc900, 0xc880 };
#endif
VECT_VAR_DECL (expected, hfloat, 32, 2) [] = { 0xc1800000, 0xc1700000 };
VECT_VAR_DECL (expected, hfloat, 32, 4) [] = { 0xc1800000, 0xc1700000,
					       0xc1600000, 0xc1500000 };

#define INSN vrndn
#define TEST_MSG "VRNDN"

#include "vrndX.inc"