Debian Codegraph @

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

raw
1 /* { dg-require-effective-target arm_v8_2a_fp16_scalar_hw } */
2 /* { dg-add-options arm_v8_2a_fp16_scalar } */
3 /* { dg-skip-if "" { arm*-*-* } } */
4
5 #include <arm_fp16.h>
6
7 /* Input values. */
8 float16_t input[] = { 2.5, 100, 7.1, 9.9, 5.0, 9.1, 4.8, 77 };
9 uint16_t expected_1[] = {5, 200, 14, 19, 10, 18, 9, 154};
10 uint16_t expected_2[] = {10, 400, 28, 39, 20, 36, 19, 308};
11
12 #define TEST_MSG "VCVTH_N_U16_F16"
13 #define INSN_NAME vcvth_n_u16_f16
14
15 #define INPUT input
16 #define EXPECTED_1 expected_1
17 #define EXPECTED_2 expected_2
18
19 #define INPUT_TYPE float16_t
20 #define OUTPUT_TYPE uint16_t
21 #define OUTPUT_TYPE_SIZE 16
22
23 #define SCALAR_OPERANDS
24 #define SCALAR_1 1
25 #define SCALAR_2 2
26
27 /* Include the template for unary scalar operations. */
28 #include "unary_scalar_op.inc"