Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/simd/faminmax-builtins.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-O3 -march=armv9-a+faminmax" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4
5 #include "arm_neon.h"
6
7 /*
8 ** test_vamax_f16:
9 ** famax v0.4h, v0.4h, v1.4h
10 ** ret
11 */
12 float16x4_t
13 test_vamax_f16 (float16x4_t a, float16x4_t b)
14 {
15 return vamax_f16 (a, b);
16 }
17
18 /*
19 ** test_vamaxq_f16:
20 ** famax v0.8h, v0.8h, v1.8h
21 ** ret
22 */
23 float16x8_t
24 test_vamaxq_f16 (float16x8_t a, float16x8_t b)
25 {
26 return vamaxq_f16 (a, b);
27 }
28
29 /*
30 ** test_vamax_f32:
31 ** famax v0.2s, v0.2s, v1.2s
32 ** ret
33 */
34 float32x2_t
35 test_vamax_f32 (float32x2_t a, float32x2_t b)
36 {
37 return vamax_f32 (a, b);
38 }
39
40 /*
41 ** test_vamaxq_f32:
42 ** famax v0.4s, v0.4s, v1.4s
43 ** ret
44 */
45 float32x4_t
46 test_vamaxq_f32 (float32x4_t a, float32x4_t b)
47 {
48 return vamaxq_f32 (a, b);
49 }
50
51 /*
52 ** test_vamaxq_f64:
53 ** famax v0.2d, v0.2d, v1.2d
54 ** ret
55 */
56 float64x2_t
57 test_vamaxq_f64 (float64x2_t a, float64x2_t b)
58 {
59 return vamaxq_f64 (a, b);
60 }
61
62 /*
63 ** test_vamin_f16:
64 ** famin v0.4h, v0.4h, v1.4h
65 ** ret
66 */
67 float16x4_t
68 test_vamin_f16 (float16x4_t a, float16x4_t b)
69 {
70 return vamin_f16 (a, b);
71 }
72
73 /*
74 ** test_vaminq_f16:
75 ** famin v0.8h, v0.8h, v1.8h
76 ** ret
77 */
78 float16x8_t
79 test_vaminq_f16 (float16x8_t a, float16x8_t b)
80 {
81 return vaminq_f16 (a, b);
82 }
83
84 /*
85 ** test_vamin_f32:
86 ** famin v0.2s, v0.2s, v1.2s
87 ** ret
88 */
89 float32x2_t
90 test_vamin_f32 (float32x2_t a, float32x2_t b)
91 {
92 return vamin_f32 (a, b);
93 }
94
95 /*
96 ** test_vaminq_f32:
97 ** famin v0.4s, v0.4s, v1.4s
98 ** ret
99 */
100 float32x4_t
101 test_vaminq_f32 (float32x4_t a, float32x4_t b)
102 {
103 return vaminq_f32 (a, b);
104 }
105
106 /*
107 ** test_vaminq_f64:
108 ** famin v0.2d, v0.2d, v1.2d
109 ** ret
110 */
111 float64x2_t
112 test_vaminq_f64 (float64x2_t a, float64x2_t b)
113 {
114 return vaminq_f64 (a, b);
115 }