| 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 |
#define INFF __builtin_inf () |
| 8 |
|
| 9 |
/* Expected results. |
| 10 |
Absolute difference between INPUT1 and INPUT2 in binary_scalar_op.inc. */ |
| 11 |
uint16_t expected[] = |
| 12 |
{ |
| 13 |
0x3C00, |
| 14 |
0x3C00, |
| 15 |
0x4654, |
| 16 |
0x560E, |
| 17 |
0x4900, |
| 18 |
0x36B8, |
| 19 |
0x419a, |
| 20 |
0x4848, |
| 21 |
0x3d34, |
| 22 |
0x4cec, |
| 23 |
0x4791, |
| 24 |
0x3f34, |
| 25 |
0x484d, |
| 26 |
0x4804, |
| 27 |
0x469c, |
| 28 |
0x4ceb, |
| 29 |
0x7c00, |
| 30 |
0x7c00 |
| 31 |
}; |
| 32 |
|
| 33 |
#define TEST_MSG "VABDH_F16" |
| 34 |
#define INSN_NAME vabdh_f16 |
| 35 |
|
| 36 |
#define EXPECTED expected |
| 37 |
|
| 38 |
#define INPUT_TYPE float16_t |
| 39 |
#define OUTPUT_TYPE float16_t |
| 40 |
#define OUTPUT_TYPE_SIZE 16 |
| 41 |
|
| 42 |
/* Include the template for binary scalar operations. */ |
| 43 |
#include "binary_scalar_op.inc" |