| 1 |
/* { dg-require-effective-target arm_v8_2a_fp16_scalar_hw } */ |
| 2 |
/* { dg-add-options arm_v8_2a_fp16_scalar } */ |
| 3 |
/* { dg-skip-if "" { arm*-*-* } } */ |
| 4 |
|
| 5 |
#include <arm_fp16.h> |
| 6 |
|
| 7 |
int16_t input[] = { 123, -567, 0, 1024, -63, 169, -4, 77 }; |
| 8 |
uint16_t expected[] = { 0x57B0 /* 123.0. */, 0xE06E /* -567.0. */, |
| 9 |
0x0000 /* 0.0. */, 0x6400 /* 1024. */, |
| 10 |
0xD3E0 /* -63. */, 0x5948 /* 169. */, |
| 11 |
0xC400 /* -4. */, 0x54D0 /* 77. */ }; |
| 12 |
|
| 13 |
#define TEST_MSG "VCVTH_F16_S16" |
| 14 |
#define INSN_NAME vcvth_f16_s16 |
| 15 |
|
| 16 |
#define EXPECTED expected |
| 17 |
|
| 18 |
#define INPUT input |
| 19 |
#define INPUT_TYPE int16_t |
| 20 |
#define OUTPUT_TYPE float16_t |
| 21 |
#define OUTPUT_TYPE_SIZE 16 |
| 22 |
|
| 23 |
/* Include the template for binary scalar operations. */ |
| 24 |
#include "unary_scalar_op.inc" |