Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vminh_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 /* { dg-skip-if "" { arm*-*-* } } */
4
5 #include <arm_fp16.h>
6
7 /* Input values. */
8 #define A 123.4
9 #define B -567.8
10 #define C -34.8
11 #define D 1024
12 #define E 663.1
13 #define F 169.1
14 #define G -4.8
15 #define H 77
16
17 float16_t input_1[] = { A, B, C, D };
18 float16_t input_2[] = { E, F, G, H };
19 float16_t expected[] = { A, B, C, H };
20
21 #define TEST_MSG "VMINH_F16"
22 #define INSN_NAME vminh_f16
23
24 #define INPUT_1 input_1
25 #define INPUT_2 input_2
26 #define EXPECTED expected
27
28 #define INPUT_TYPE float16_t
29 #define OUTPUT_TYPE float16_t
30 #define OUTPUT_TYPE_SIZE 16
31
32 /* Include the template for unary scalar operations. */
33 #include "binary_scalar_op.inc"