Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrndmh_f16_1.c

raw
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 0x8000 /* -0.000000 */,
11 0x4000 /* 2.000000 */,
12 0x4200 /* 3.000000 */,
13 0x4d00 /* 20.000000 */,
14 0x0000 /* 0.000000 */,
15 0xc200 /* -3.000000 */,
16 0x3c00 /* 1.000000 */,
17 0xc800 /* -8.000000 */,
18 0x0000 /* 0.000000 */,
19 0x0000 /* 0.000000 */,
20 0x0000 /* 0.000000 */,
21 0x3c00 /* 1.000000 */,
22 0x4a80 /* 13.000000 */,
23 0xc700 /* -7.000000 */,
24 0x4d00 /* 20.000000 */,
25 0x7c00 /* inf */,
26 0xfc00 /* -inf */
27 };
28
29 #define TEST_MSG "VRNDMH_F16"
30 #define INSN_NAME vrndmh_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 unary scalar operations. */
39 #include "unary_scalar_op.inc"