1 /* { dg-do run } */
2 /* { dg-require-effective-target arm_v8_2a_fp16_scalar_hw } */
3 /* { dg-add-options arm_v8_2a_fp16_scalar }  */
4 /* { dg-skip-if "" { arm*-*-* } } */
5 
6 #include <arm_fp16.h>
7 
8 /* Input values.  */
9 float16_t input[] = { 123.9, -56.8, 0.7, 24.6, -63.5, 169.4, -4.3, 77.0 };
10 int16_t expected[] = { 124, -56, 1, 25, -63, 170, -4, 77 };
11 
12 #define TEST_MSG "VCVTPH_S16_F16"
13 #define INSN_NAME vcvtph_s16_f16
14 
15 #define INPUT input
16 #define EXPECTED expected
17 
18 #define INPUT_TYPE float16_t
19 #define OUTPUT_TYPE int16_t
20 #define OUTPUT_TYPE_SIZE 16
21 
22 /* Include the template for unary scalar operations.  */
23 #include "unary_scalar_op.inc"
24