| 1 |
/* { dg-require-effective-target arm_v8_2a_fp16_scalar_hw } */ |
| 2 |
/* { dg-add-options arm_v8_2a_fp16_scalar } */ |
| 3 |
|
| 4 |
#include <arm_fp16.h> |
| 5 |
|
| 6 |
/* Expected results (16-bit hexadecimal representation). */ |
| 7 |
uint16_t expected[] = |
| 8 |
{ |
| 9 |
0x0000 /* 0.000000 */, |
| 10 |
0x0000 /* 0.000000 */, |
| 11 |
0x3944 /* 0.658203 */, |
| 12 |
0xcefa /* -27.906250 */, |
| 13 |
0x5369 /* 59.281250 */, |
| 14 |
0x35ba /* 0.357910 */, |
| 15 |
0xc574 /* -5.453125 */, |
| 16 |
0xc5e6 /* -5.898438 */, |
| 17 |
0x3f66 /* 1.849609 */, |
| 18 |
0x5665 /* 102.312500 */, |
| 19 |
0xc02d /* -2.087891 */, |
| 20 |
0x4d79 /* 21.890625 */, |
| 21 |
0x547b /* 71.687500 */, |
| 22 |
0xcdf0 /* -23.750000 */, |
| 23 |
0xc625 /* -6.144531 */, |
| 24 |
0x4cf9 /* 19.890625 */, |
| 25 |
0x7e00 /* nan */, |
| 26 |
0x7e00 /* nan */ |
| 27 |
}; |
| 28 |
|
| 29 |
#define TEST_MSG "VFMAH_F16" |
| 30 |
#define INSN_NAME vfmah_f16 |
| 31 |
|
| 32 |
#define EXPECTED expected |
| 33 |
|
| 34 |
#define INPUT_TYPE float16_t |
| 35 |
#define OUTPUT_TYPE float16_t |
| 36 |
#define OUTPUT_TYPE_SIZE 16 |
| 37 |
|
| 38 |
/* Include the template for binary scalar operations. */ |
| 39 |
#include "ternary_scalar_op.inc" |