blob: 5f17dbe9cc35732f8c4cac722e12af8c0c5a4d05 [file] [log] [blame]
/* { 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>
int64_t input[] = { 123, -567, 0, 1024, -63, 169, -4, 77 };
uint16_t expected[] = { 0x57B0 /* 123.0. */, 0xE06E /* -567.0. */,
0x0000 /* 0.0. */, 0x6400 /* 1024. */,
0xD3E0 /* -63. */, 0x5948 /* 169. */,
0xC400 /* -4. */, 0x54D0 /* 77. */ };
#define TEST_MSG "VCVTH_F16_S64"
#define INSN_NAME vcvth_f16_s64
#define EXPECTED expected
#define INPUT input
#define INPUT_TYPE int64_t
#define OUTPUT_TYPE float16_t
#define OUTPUT_TYPE_SIZE 16
/* Include the template for binary scalar operations. */
#include "unary_scalar_op.inc"