(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
advsimd-intrinsics/
vsubh_f16_1.c
       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    0xbc00 /* -1.000000 */,
      13    0xbc00 /* -1.000000 */,
      14    0x4654 /* 6.328125 */,
      15    0xd60e /* -96.875000 */,
      16    0xc900 /* -10.000000 */,
      17    0x36b8 /* 0.419922 */,
      18    0xc19a /* -2.800781 */,
      19    0x4848 /* 8.562500 */,
      20    0xbd34 /* -1.300781 */,
      21    0xccec /* -19.687500 */,
      22    0x4791 /* 7.566406 */,
      23    0xbf34 /* -1.800781 */,
      24    0x484d /* 8.601562 */,
      25    0x4804 /* 8.031250 */,
      26    0xc69c /* -6.609375 */,
      27    0x4ceb /* 19.671875 */,
      28    0x7c00 /* inf */,
      29    0xfc00 /* -inf */
      30  };
      31  
      32  #define TEST_MSG "VSUB_F16"
      33  #define INSN_NAME vsubh_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"