Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrsubhn_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 vrsubhn_high
14 #define TEST_MSG "VRSUBHN_HIGH"
15
16 /* Expected results. */
17 VECT_VAR_DECL(expected, int, 8, 16) [] = { 0x5, 0x5, 0x5, 0x5,
18 0x5, 0x5, 0x5, 0x5,
19 0x31, 0x31, 0x31, 0x31,
20 0x31, 0x31, 0x31, 0x31 };
21 VECT_VAR_DECL(expected, int, 16, 8) [] = { 0x5, 0x5, 0x5, 0x5,
22 0x31, 0x31, 0x31, 0x31 };
23 VECT_VAR_DECL(expected, int, 32, 4) [] = { 0x5, 0x5, 0x17, 0x17 };
24 VECT_VAR_DECL(expected, uint, 8, 16) [] = { 0x5, 0x5, 0x5, 0x5,
25 0x5, 0x5, 0x5, 0x5,
26 0x2, 0x2, 0x2, 0x2,
27 0x2, 0x2, 0x2, 0x2 };
28 VECT_VAR_DECL(expected, uint, 16, 8) [] = { 0x5, 0x5, 0x5, 0x5,
29 0x36, 0x36, 0x36, 0x36 };
30 VECT_VAR_DECL(expected, uint, 32, 4) [] = { 0x5, 0x5, 0x2, 0x2 };
31
32 #include "vXXXhn_high.inc"