Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/xvfcmp-f.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mlasx -fno-vect-cost-model" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4
5 #define F float
6 #define I int
7 #define VL 32
8
9 #include "vfcmp-f.c"
10
11 /*
12 ** compare_quiet_equal:
13 ** xvld (\$xr[0-9]+),\$r4,0
14 ** xvld (\$xr[0-9]+),\$r5,0
15 ** xvfcmp.ceq.s (\$xr[0-9]+),(\1,\2|\2,\1)
16 ** xvst \3,\$r6,0
17 ** jr \$r1
18 */
19
20 /*
21 ** compare_quiet_not_equal:
22 ** xvld (\$xr[0-9]+),\$r4,0
23 ** xvld (\$xr[0-9]+),\$r5,0
24 ** xvfcmp.cune.s (\$xr[0-9]+),(\1,\2|\2,\1)
25 ** xvst \3,\$r6,0
26 ** jr \$r1
27 */
28
29 /*
30 ** compare_signaling_greater:
31 ** xvld (\$xr[0-9]+),\$r4,0
32 ** xvld (\$xr[0-9]+),\$r5,0
33 ** xvfcmp.slt.s (\$xr[0-9]+),\2,\1
34 ** xvst \3,\$r6,0
35 ** jr \$r1
36 */
37
38 /*
39 ** compare_signaling_greater_equal:
40 ** xvld (\$xr[0-9]+),\$r4,0
41 ** xvld (\$xr[0-9]+),\$r5,0
42 ** xvfcmp.sle.s (\$xr[0-9]+),\2,\1
43 ** xvst \3,\$r6,0
44 ** jr \$r1
45 */
46
47 /*
48 ** compare_signaling_less:
49 ** xvld (\$xr[0-9]+),\$r4,0
50 ** xvld (\$xr[0-9]+),\$r5,0
51 ** xvfcmp.slt.s (\$xr[0-9]+),\1,\2
52 ** xvst \3,\$r6,0
53 ** jr \$r1
54 */
55
56 /*
57 ** compare_signaling_less_equal:
58 ** xvld (\$xr[0-9]+),\$r4,0
59 ** xvld (\$xr[0-9]+),\$r5,0
60 ** xvfcmp.sle.s (\$xr[0-9]+),\1,\2
61 ** xvst \3,\$r6,0
62 ** jr \$r1
63 */
64
65 /*
66 ** compare_signaling_not_greater:
67 ** xvld (\$xr[0-9]+),\$r4,0
68 ** xvld (\$xr[0-9]+),\$r5,0
69 ** xvfcmp.sule.s (\$xr[0-9]+),\1,\2
70 ** xvst \3,\$r6,0
71 ** jr \$r1
72 */
73
74 /*
75 ** compare_signaling_less_unordered:
76 ** xvld (\$xr[0-9]+),\$r4,0
77 ** xvld (\$xr[0-9]+),\$r5,0
78 ** xvfcmp.sult.s (\$xr[0-9]+),\1,\2
79 ** xvst \3,\$r6,0
80 ** jr \$r1
81 */
82
83 /*
84 ** compare_signaling_not_less:
85 ** xvld (\$xr[0-9]+),\$r4,0
86 ** xvld (\$xr[0-9]+),\$r5,0
87 ** xvfcmp.sule.s (\$xr[0-9]+),\2,\1
88 ** xvst \3,\$r6,0
89 ** jr \$r1
90 */
91
92 /*
93 ** compare_signaling_greater_unordered:
94 ** xvld (\$xr[0-9]+),\$r4,0
95 ** xvld (\$xr[0-9]+),\$r5,0
96 ** xvfcmp.sult.s (\$xr[0-9]+),\2,\1
97 ** xvst \3,\$r6,0
98 ** jr \$r1
99 */
100
101 /*
102 ** compare_quiet_less:
103 ** xvld (\$xr[0-9]+),\$r4,0
104 ** xvld (\$xr[0-9]+),\$r5,0
105 ** xvfcmp.clt.s (\$xr[0-9]+),\1,\2
106 ** xvst \3,\$r6,0
107 ** jr \$r1
108 */
109
110 /*
111 ** compare_quiet_less_equal:
112 ** xvld (\$xr[0-9]+),\$r4,0
113 ** xvld (\$xr[0-9]+),\$r5,0
114 ** xvfcmp.cle.s (\$xr[0-9]+),\1,\2
115 ** xvst \3,\$r6,0
116 ** jr \$r1
117 */
118
119 /*
120 ** compare_quiet_greater:
121 ** xvld (\$xr[0-9]+),\$r4,0
122 ** xvld (\$xr[0-9]+),\$r5,0
123 ** xvfcmp.clt.s (\$xr[0-9]+),\2,\1
124 ** xvst \3,\$r6,0
125 ** jr \$r1
126 */
127
128 /*
129 ** compare_quiet_greater_equal:
130 ** xvld (\$xr[0-9]+),\$r4,0
131 ** xvld (\$xr[0-9]+),\$r5,0
132 ** xvfcmp.cle.s (\$xr[0-9]+),\2,\1
133 ** xvst \3,\$r6,0
134 ** jr \$r1
135 */
136
137 /*
138 ** compare_quiet_not_less:
139 ** xvld (\$xr[0-9]+),\$r4,0
140 ** xvld (\$xr[0-9]+),\$r5,0
141 ** xvfcmp.cule.s (\$xr[0-9]+),\2,\1
142 ** xvst \3,\$r6,0
143 ** jr \$r1
144 */
145
146 /*
147 ** compare_quiet_greater_unordered:
148 ** xvld (\$xr[0-9]+),\$r4,0
149 ** xvld (\$xr[0-9]+),\$r5,0
150 ** xvfcmp.cult.s (\$xr[0-9]+),\2,\1
151 ** xvst \3,\$r6,0
152 ** jr \$r1
153 */
154
155 /*
156 ** compare_quiet_not_greater:
157 ** xvld (\$xr[0-9]+),\$r4,0
158 ** xvld (\$xr[0-9]+),\$r5,0
159 ** xvfcmp.cule.s (\$xr[0-9]+),\1,\2
160 ** xvst \3,\$r6,0
161 ** jr \$r1
162 */
163
164 /*
165 ** compare_quiet_less_unordered:
166 ** xvld (\$xr[0-9]+),\$r4,0
167 ** xvld (\$xr[0-9]+),\$r5,0
168 ** xvfcmp.cult.s (\$xr[0-9]+),\1,\2
169 ** xvst \3,\$r6,0
170 ** jr \$r1
171 */
172
173 /*
174 ** compare_quiet_unordered:
175 ** xvld (\$xr[0-9]+),\$r4,0
176 ** xvld (\$xr[0-9]+),\$r5,0
177 ** xvfcmp.cun.s (\$xr[0-9]+),(\1,\2|\2,\1)
178 ** xvst \3,\$r6,0
179 ** jr \$r1
180 */
181
182 /*
183 ** compare_quiet_ordered:
184 ** xvld (\$xr[0-9]+),\$r4,0
185 ** xvld (\$xr[0-9]+),\$r5,0
186 ** xvfcmp.cor.s (\$xr[0-9]+),(\1,\2|\2,\1)
187 ** xvst \3,\$r6,0
188 ** jr \$r1
189 */