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  #define INFF __builtin_inf ()
       8  
       9  /* Expected results (16-bit hexadecimal representation).  */
      10  uint16_t expected[] =
      11  {
      12    0x0000 /* 0.000000 */,
      13    0x8000 /* -0.000000 */,
      14    0xc454 /* -4.328125 */,
      15    0x4233 /* 3.099609 */,
      16    0x4d00 /* 20.000000 */,
      17    0xa51f /* -0.020004 */,
      18    0xc09a /* -2.300781 */,
      19    0xc73b /* -7.230469 */,
      20    0xc79a /* -7.601562 */,
      21    0x34f6 /* 0.310059 */,
      22    0xc73b /* -7.230469 */,
      23    0x3800 /* 0.500000 */,
      24    0xc79a /* -7.601562 */,
      25    0x451a /* 5.101562 */,
      26    0xc64d /* -6.300781 */,
      27    0x3556 /* 0.333496 */,
      28    0xfc00 /* -inf */,
      29    0xfc00 /* -inf */
      30  };
      31  
      32  #define TEST_MSG "VMINNMH_F16"
      33  #define INSN_NAME vminnmh_f16
      34  
      35  #define EXPECTED expected
      36  
      37  #define INPUT_TYPE float16_t
      38  #define OUTPUT_TYPE float16_t
      39  #define OUTPUT_TYPE_SIZE 16
      40  
      41  /* Include the template for binary scalar operations.  */
      42  #include "binary_scalar_op.inc"