Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vsubh_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 0xbc00 /* -1.000000 */,
12 0xbc00 /* -1.000000 */,
13 0x4654 /* 6.328125 */,
14 0xd60e /* -96.875000 */,
15 0xc900 /* -10.000000 */,
16 0x36b8 /* 0.419922 */,
17 0xc19a /* -2.800781 */,
18 0x4848 /* 8.562500 */,
19 0xbd34 /* -1.300781 */,
20 0xccec /* -19.687500 */,
21 0x4791 /* 7.566406 */,
22 0xbf34 /* -1.800781 */,
23 0x484d /* 8.601562 */,
24 0x4804 /* 8.031250 */,
25 0xc69c /* -6.609375 */,
26 0x4ceb /* 19.671875 */,
27 0x7c00 /* inf */,
28 0xfc00 /* -inf */
29 };
30
31 #define TEST_MSG "VSUB_F16"
32 #define INSN_NAME vsubh_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"