| 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 |
#define INFF __builtin_inf () |
| 7 |
|
| 8 |
/* Expected results (16-bit hexadecimal representation). */ |
| 9 |
uint16_t expected[] = |
| 10 |
{ |
| 11 |
0x0000 /* 0.000000 */, |
| 12 |
0x8000 /* -0.000000 */, |
| 13 |
0xb765 /* -0.462158 */, |
| 14 |
0x27ef /* 0.030991 */, |
| 15 |
0x3955 /* 0.666504 */, |
| 16 |
0xccff /* -19.984375 */, |
| 17 |
0xc49a /* -4.601562 */, |
| 18 |
0xb1e3 /* -0.183960 */, |
| 19 |
0x3cd3 /* 1.206055 */, |
| 20 |
0x23f0 /* 0.015503 */, |
| 21 |
0xa9ef /* -0.046356 */, |
| 22 |
0x32f4 /* 0.217285 */, |
| 23 |
0xb036 /* -0.131592 */, |
| 24 |
0x4126 /* 2.574219 */, |
| 25 |
0xcd15 /* -20.328125 */, |
| 26 |
0x537f /* 59.968750 */, |
| 27 |
0x7e00 /* nan */, |
| 28 |
0x7e00 /* nan */ |
| 29 |
}; |
| 30 |
|
| 31 |
#define TEST_MSG "VDIVH_F16" |
| 32 |
#define INSN_NAME vdivh_f16 |
| 33 |
|
| 34 |
#define EXPECTED expected |
| 35 |
|
| 36 |
#define INPUT_TYPE float16_t |
| 37 |
#define OUTPUT_TYPE float16_t |
| 38 |
#define OUTPUT_TYPE_SIZE 16 |
| 39 |
|
| 40 |
/* Include the template for binary scalar operations. */ |
| 41 |
#include "binary_scalar_op.inc" |