| /* { dg-do run } */ |
| /* { dg-require-effective-target arm_v8_2a_fp16_scalar_hw } */ |
| /* { dg-add-options arm_v8_2a_fp16_scalar } */ |
| /* { dg-skip-if "" { arm*-*-* } } */ |
| |
| #include <arm_fp16.h> |
| |
| /* Input values. */ |
| float16_t input[] = { 123.9, -56.8, 0.7, 24.6, -63.5, 169.4, -4.3, 77.0 }; |
| int64_t expected[] = { 123, -56, 0, 24, -63, 169, -4, 77 }; |
| |
| #define TEST_MSG "VCVTH_S64_F16" |
| #define INSN_NAME vcvth_s64_f16 |
| |
| #define INPUT input |
| #define EXPECTED expected |
| |
| #define INPUT_TYPE float16_t |
| #define OUTPUT_TYPE int64_t |
| #define OUTPUT_TYPE_SIZE 64 |
| |
| /* Include the template for unary scalar operations. */ |
| #include "unary_scalar_op.inc" |