Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vminnmh_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 0xc454 /* -4.328125 */,
14 0x4233 /* 3.099609 */,
15 0x4d00 /* 20.000000 */,
16 0xa51f /* -0.020004 */,
17 0xc09a /* -2.300781 */,
18 0xc73b /* -7.230469 */,
19 0xc79a /* -7.601562 */,
20 0x34f6 /* 0.310059 */,
21 0xc73b /* -7.230469 */,
22 0x3800 /* 0.500000 */,
23 0xc79a /* -7.601562 */,
24 0x451a /* 5.101562 */,
25 0xc64d /* -6.300781 */,
26 0x3556 /* 0.333496 */,
27 0xfc00 /* -inf */,
28 0xfc00 /* -inf */
29 };
30
31 #define TEST_MSG "VMINNMH_F16"
32 #define INSN_NAME vminnmh_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"