Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vmaxnmh_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 0x3c00 /* 1.000000 */,
12 0x3c00 /* 1.000000 */,
13 0x4000 /* 2.000000 */,
14 0x5640 /* 100.000000 */,
15 0x4f80 /* 30.000000 */,
16 0x3666 /* 0.399902 */,
17 0x3800 /* 0.500000 */,
18 0x3d52 /* 1.330078 */,
19 0xc64d /* -6.300781 */,
20 0x4d00 /* 20.000000 */,
21 0x355d /* 0.335205 */,
22 0x409a /* 2.300781 */,
23 0x3c00 /* 1.000000 */,
24 0x4a91 /* 13.132812 */,
25 0x34f6 /* 0.310059 */,
26 0x4d00 /* 20.000000 */,
27 0x7c00 /* inf */,
28 0x7c00 /* inf */
29 };
30
31 #define TEST_MSG "VMAXNMH_F16"
32 #define INSN_NAME vmaxnmh_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"