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 uint64_t expected[] = { 124, 57, 1, 25, 64, 169, 4, 77 }; 11 12 #define TEST_MSG "VCVTAH_u64_F16" 13 #define INSN_NAME vcvtah_u64_f16 14 15 #define INPUT input 16 #define EXPECTED expected 17 18 #define INPUT_TYPE float16_t 19 #define OUTPUT_TYPE uint64_t 20 #define OUTPUT_TYPE_SIZE 64 21 22 /* Include the template for unary scalar operations. */ 23 #include "unary_scalar_op.inc" 24