Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vaddh_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 0x3c00 /* 1.000000 */,
10 0x3c00 /* 1.000000 */,
11 0xc0a8 /* -2.328125 */,
12 0x5672 /* 103.125000 */,
13 0x5240 /* 50.000000 */,
14 0x3614 /* 0.379883 */,
15 0xbf34 /* -1.800781 */,
16 0xc5e6 /* -5.898438 */,
17 0xcaf4 /* -13.906250 */,
18 0x4d14 /* 20.312500 */,
19 0xc6e5 /* -6.894531 */,
20 0x419a /* 2.800781 */,
21 0xc69a /* -6.601562 */,
22 0x4c8f /* 18.234375 */,
23 0xc5fe /* -5.992188 */,
24 0x4d15 /* 20.328125 */,
25 0x7e00 /* nan */,
26 0x7e00 /* nan */,
27 };
28
29 #define TEST_MSG "VADDH_F16"
30 #define INSN_NAME vaddh_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 "binary_scalar_op.inc"