(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
advsimd-intrinsics/
vcvth_n_s16_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  /* { dg-skip-if "" { arm*-*-* } } */
       5  
       6  #include <arm_fp16.h>
       7  
       8  /* Input values.  */
       9  float16_t input[] = { 2.5, 100, 7.1, -9.9, -5.0, 9.1, -4.8, 77 };
      10  int16_t expected_1[] = { 5, 200, 14, -19, -10, 18, -9, 154 };
      11  int16_t expected_2[] = { 10, 400, 28, -39, -20, 36, -19, 308 };
      12  
      13  #define TEST_MSG "VCVTH_N_S16_F16"
      14  #define INSN_NAME vcvth_n_s16_f16
      15  
      16  #define INPUT input
      17  #define EXPECTED_1 expected_1
      18  #define EXPECTED_2 expected_2
      19  
      20  #define INPUT_TYPE float16_t
      21  #define OUTPUT_TYPE int16_t
      22  #define OUTPUT_TYPE_SIZE 16
      23  
      24  #define SCALAR_OPERANDS
      25  #define SCALAR_1 1
      26  #define SCALAR_2 2
      27  
      28  /* Include the template for unary scalar operations.  */
      29  #include "unary_scalar_op.inc"