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  
       5  #include <arm_fp16.h>
       6  
       7  /* Input values.  */
       8  int32_t input[] =
       9  {
      10    0, -0,
      11    123, -567,
      12    -34, 1024,
      13    -63, 169,
      14    -4, 77,
      15    -144, -56,
      16    -16, -15,
      17    -14, -13,
      18  };
      19  
      20  /* Expected results (16-bit hexadecimal representation).  */
      21  uint16_t expected[] =
      22  {
      23    0x0000 /* 0.000000 */,
      24    0x0000 /* 0.000000 */,
      25    0x57b0 /* 123.000000 */,
      26    0x7c00 /* inf */,
      27    0x7c00 /* inf */,
      28    0x6400 /* 1024.000000 */,
      29    0x7c00 /* inf */,
      30    0x5948 /* 169.000000 */,
      31    0x7c00 /* inf */,
      32    0x54d0 /* 77.000000 */,
      33    0x7c00 /* inf */,
      34    0x7c00 /* inf */,
      35    0x7c00 /* inf */,
      36    0x7c00 /* inf */,
      37    0x7c00 /* inf */,
      38    0x7c00 /* inf */
      39  };
      40  
      41  #define TEST_MSG "VCVTH_F16_U32"
      42  #define INSN_NAME vcvth_f16_u32
      43  
      44  #define INPUT input
      45  #define EXPECTED expected
      46  
      47  #define INPUT_TYPE int32_t
      48  #define OUTPUT_TYPE float16_t
      49  #define OUTPUT_TYPE_SIZE 16
      50  
      51  /* Include the template for unary scalar operations.  */
      52  #include "unary_scalar_op.inc"