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  uint16_t expected[] = { 123, 56, 0, 24, 63, 169, 4, 77 };
      11  
      12  #define TEST_MSG "VCVTH_u16_F16"
      13  #define INSN_NAME vcvth_u16_f16
      14  
      15  #define INPUT input
      16  #define EXPECTED expected
      17  
      18  #define INPUT_TYPE float16_t
      19  #define OUTPUT_TYPE uint16_t
      20  #define OUTPUT_TYPE_SIZE 16
      21  
      22  /* Include the template for unary scalar operations.  */
      23  #include "unary_scalar_op.inc"