Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmulh_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 #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 0xc854 /* -8.656250 */,
14 0x5cd8 /* 310.000000 */,
15 0x60b0 /* 600.000000 */,
16 0xa019 /* -0.008003 */,
17 0xbc9a /* -1.150391 */,
18 0xc8cf /* -9.617188 */,
19 0x51fd /* 47.906250 */,
20 0x4634 /* 6.203125 */,
21 0xc0d9 /* -2.423828 */,
22 0x3c9a /* 1.150391 */,
23 0xc79a /* -7.601562 */,
24 0x5430 /* 67.000000 */,
25 0xbfd0 /* -1.953125 */,
26 0x46ac /* 6.671875 */,
27 0xfc00 /* -inf */,
28 0xfc00 /* -inf */
29 };
30
31 #define TEST_MSG "VMULH_F16"
32 #define INSN_NAME vmulh_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"