Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vcvtnh_s16_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[] = { 123.9, -56.8, 0.7, 24.6, -63.5, 169.4, -4.3, 77.0 };
9 int16_t expected[] = { 124, -57, 1, 25, -64, 169, -4, 77 };
10
11 #define TEST_MSG "VCVTNH_S16_F16"
12 #define INSN_NAME vcvtnh_s16_f16
13
14 #define INPUT input
15 #define EXPECTED expected
16
17 #define INPUT_TYPE float16_t
18 #define OUTPUT_TYPE int16_t
19 #define OUTPUT_TYPE_SIZE 16
20
21 /* Include the template for unary scalar operations. */
22 #include "unary_scalar_op.inc"