Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddhn_high.c

raw
1 /* { dg-skip-if "" { arm*-*-* } } */
2
3 #include <arm_neon.h>
4 #include "arm-neon-ref.h"
5 #include "compute-ref-data.h"
6
7 #if defined(__cplusplus)
8 #include <cstdint>
9 #else
10 #include <stdint.h>
11 #endif
12
13 #define INSN_NAME vaddhn_high
14 #define TEST_MSG "VADDHN_HIGH"
15
16 /* Expected results. */
17 VECT_VAR_DECL(expected, int, 8, 16) [] = { 0x5, 0x5, 0x5, 0x5,
18 0x5, 0x5, 0x5, 0x5,
19 0x32, 0x32, 0x32, 0x32,
20 0x32, 0x32, 0x32, 0x32 };
21 VECT_VAR_DECL(expected, int, 16, 8) [] = { 0x5, 0x5, 0x5, 0x5,
22 0x32, 0x32, 0x32, 0x32 };
23 VECT_VAR_DECL(expected, int, 32, 4) [] = { 0x5, 0x5, 0x18, 0x18 };
24 VECT_VAR_DECL(expected, uint, 8, 16) [] = { 0x5, 0x5, 0x5, 0x5,
25 0x5, 0x5, 0x5, 0x5,
26 0x3, 0x3, 0x3, 0x3,
27 0x3, 0x3, 0x3, 0x3 };
28 VECT_VAR_DECL(expected, uint, 16, 8) [] = { 0x5, 0x5, 0x5, 0x5,
29 0x37, 0x37, 0x37, 0x37 };
30 VECT_VAR_DECL(expected, uint, 32, 4) [] = { 0x5, 0x5, 0x3, 0x3 };
31
32 #include "vXXXhn_high.inc"