Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vnegh_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 uint16_t expected[] =
7 {
8 0x8000 /* -0.000000 */,
9 0x0000 /* 0.000000 */,
10 0xc000 /* -2.000000 */,
11 0xc233 /* -3.099609 */,
12 0xcd00 /* -20.000000 */,
13 0xb666 /* -0.399902 */,
14 0x409a /* 2.300781 */,
15 0xbd52 /* -1.330078 */,
16 0x479a /* 7.601562 */,
17 0xb4f6 /* -0.310059 */,
18 0xb55d /* -0.335205 */,
19 0xb800 /* -0.500000 */,
20 0xbc00 /* -1.000000 */,
21 0xca91 /* -13.132812 */,
22 0x464d /* 6.300781 */,
23 0xcd00 /* -20.000000 */,
24 0xfc00 /* -inf */,
25 0x7c00 /* inf */
26 };
27
28 #define TEST_MSG "VNEGH_F16"
29 #define INSN_NAME vnegh_f16
30
31 #define EXPECTED expected
32
33 #define INPUT_TYPE float16_t
34 #define OUTPUT_TYPE float16_t
35 #define OUTPUT_TYPE_SIZE 16
36
37 /* Include the template for unary scalar operations. */
38 #include "unary_scalar_op.inc"