1 2020-10-03 Jakub Jelinek <jakub@redhat.com>
3 * opth-gen.awk: For variables referenced in Mask and InverseMask,
4 don't use the explicit_mask bitmask array, but add separate
5 explicit_mask_* members with the same types as the variables.
6 * optc-save-gen.awk: Save, restore, compare and hash the separate
7 explicit_mask_* members.
9 2020-10-03 Jan Hubicka <hubicka@ucw.cz>
11 * ipa-modref-tree.c (test_insert_search_collapse): Update andling
13 (test_merge): Likewise.
14 * ipa-modref-tree.h (struct modref_access_node): Add offset, size,
15 max_size, parm_offset and parm_offset_known.
16 (modref_access_node::useful_p): Constify.
17 (modref_access_node::range_info_useful_p): New predicate.
18 (modref_access_node::operator==): New.
19 (struct modref_parm_map): New structure.
20 (modref_tree::merge): Update for racking parameters)
21 * ipa-modref.c (dump_access): Dump new fields.
22 (get_access): Fill in new fields.
23 (merge_call_side_effects): Update handling of parm map.
24 (write_modref_records): Stream new fields.
25 (read_modref_records): Stream new fields.
26 (compute_parm_map): Update for new parm map.
27 (ipa_merge_modref_summary_after_inlining): Update.
28 (modref_propagate_in_scc): Update.
29 * tree-ssa-alias.c (modref_may_conflict): Handle known ranges.
31 2020-10-03 H.J. Lu <hjl.tools@gmail.com>
34 * doc/extend.texi: Replace roudnevenl with roundevenl
36 2020-10-02 David Edelsohn <dje.gcc@gmail.com>
37 Andrew MacLeod <amacleod@redhat.com>
39 * config/rs6000/rs6000.c: Include ssa.h. Reorder some headers.
40 * config/rs6000/rs6000-call.c: Same.
42 2020-10-02 Martin Jambor <mjambor@suse.cz>
44 * params.opt (ipa-cp-large-unit-insns): New parameter.
45 * ipa-cp.c (get_max_overall_size): Use the new parameter.
47 2020-10-02 Martin Jambor <mjambor@suse.cz>
49 * ipa-cp.c (estimate_local_effects): Add overeall_size to dumped
51 (decide_about_value): Add dumping new overall_size.
53 2020-10-02 Martin Jambor <mjambor@suse.cz>
55 * ipa-fnsummary.h (ipa_freqcounting_predicate): New type.
56 (ipa_fn_summary): Change the type of loop_iterations and loop_strides
57 to vectors of ipa_freqcounting_predicate.
58 (ipa_fn_summary::ipa_fn_summary): Construct the new vectors.
59 (ipa_call_estimates): New fields loops_with_known_iterations and
60 loops_with_known_strides.
61 * ipa-cp.c (hint_time_bonus): Multiply param_ipa_cp_loop_hint_bonus
62 with the expected frequencies of loops with known iteration count or
64 * ipa-fnsummary.c (add_freqcounting_predicate): New function.
65 (ipa_fn_summary::~ipa_fn_summary): Release the new vectors instead of
67 (remap_hint_predicate_after_duplication): Replace with function
68 remap_freqcounting_preds_after_dup.
69 (ipa_fn_summary_t::duplicate): Use it or duplicate new vectors.
70 (ipa_dump_fn_summary): Dump the new vectors.
71 (analyze_function_body): Compute the loop property vectors.
72 (ipa_call_context::estimate_size_and_time): Calculate also
73 loops_with_known_iterations and loops_with_known_strides. Adjusted
75 (remap_hint_predicate): Replace with function
76 remap_freqcounting_predicate.
77 (ipa_merge_fn_summary_after_inlining): Use it.
78 (inline_read_section): Stream loopcounting vectors instead of two
80 (ipa_fn_summary_write): Likewise.
81 * params.opt (ipa-max-loop-predicates): New parameter.
82 * doc/invoke.texi (ipa-max-loop-predicates): Document new param.
84 2020-10-02 Martin Jambor <mjambor@suse.cz>
86 * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to use
88 (do_estimate_edge_size): Likewise.
89 (do_estimate_edge_hints): Likewise.
90 * ipa-fnsummary.h (struct ipa_call_estimates): New type.
91 (ipa_call_context::estimate_size_and_time): Adjusted declaration.
92 (estimate_ipcp_clone_size_and_time): Likewise.
93 * ipa-cp.c (hint_time_bonus): Changed the type of the second argument
94 to ipa_call_estimates.
95 (perform_estimation_of_a_value): Adjusted to use ipa_call_estimates.
96 (estimate_local_effects): Likewise.
97 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Adjusted
98 to return estimates in a single ipa_call_estimates parameter.
99 (estimate_ipcp_clone_size_and_time): Likewise.
101 2020-10-02 Martin Jambor <mjambor@suse.cz>
103 * ipa-fnsummary.h (ipa_cached_call_context): New forward declaration
105 (class ipa_call_context): Make friend ipa_cached_call_context. Moved
106 methods duplicate_from and release to it too.
107 * ipa-fnsummary.c (ipa_call_context::duplicate_from): Moved to class
108 ipa_cached_call_context.
109 (ipa_call_context::release): Likewise, removed the parameter.
110 * ipa-inline-analysis.c (node_context_cache_entry): Change the type of
111 ctx to ipa_cached_call_context.
112 (do_estimate_edge_time): Remove parameter from the call to
113 ipa_cached_call_context::release.
115 2020-10-02 Martin Jambor <mjambor@suse.cz>
117 * ipa-prop.h (ipa_auto_call_arg_values): New type.
118 (class ipa_call_arg_values): Likewise.
119 (ipa_get_indirect_edge_target): Replaced vector arguments with
120 ipa_call_arg_values in declaration. Added an overload for
121 ipa_auto_call_arg_values.
122 * ipa-fnsummary.h (ipa_call_context): Removed members m_known_vals,
123 m_known_contexts, m_known_aggs, duplicate_from, release and equal_to,
124 new members m_avals, store_to_cache and equivalent_to_p. Adjusted
125 construcotr arguments.
126 (estimate_ipcp_clone_size_and_time): Replaced vector arguments
127 with ipa_auto_call_arg_values in declaration.
128 (evaluate_properties_for_edge): Likewise.
129 * ipa-cp.c (ipa_get_indirect_edge_target): Adjusted to work on
130 ipa_call_arg_values rather than on separate vectors. Added an
131 overload for ipa_auto_call_arg_values.
132 (devirtualization_time_bonus): Adjusted to work on
133 ipa_auto_call_arg_values rather than on separate vectors.
134 (gather_context_independent_values): Adjusted to work on
135 ipa_auto_call_arg_values rather than on separate vectors.
136 (perform_estimation_of_a_value): Likewise.
137 (estimate_local_effects): Likewise.
138 (modify_known_vectors_with_val): Adjusted both variants to work on
139 ipa_auto_call_arg_values and rename them to
140 copy_known_vectors_add_val.
141 (decide_about_value): Adjusted to work on ipa_call_arg_values rather
142 than on separate vectors.
143 (decide_whether_version_node): Likewise.
144 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Likewise.
145 (evaluate_properties_for_edge): Likewise.
146 (ipa_fn_summary_t::duplicate): Likewise.
147 (estimate_edge_devirt_benefit): Adjusted to work on
148 ipa_call_arg_values rather than on separate vectors.
149 (estimate_edge_size_and_time): Likewise.
150 (estimate_calls_size_and_time_1): Likewise.
151 (summarize_calls_size_and_time): Adjusted calls to
152 estimate_edge_size_and_time.
153 (estimate_calls_size_and_time): Adjusted to work on
154 ipa_call_arg_values rather than on separate vectors.
155 (ipa_call_context::ipa_call_context): Construct from a pointer to
156 ipa_auto_call_arg_values instead of inividual vectors.
157 (ipa_call_context::duplicate_from): Adjusted to access vectors within
159 (ipa_call_context::release): Likewise.
160 (ipa_call_context::equal_to): Likewise.
161 (ipa_call_context::estimate_size_and_time): Adjusted to work on
162 ipa_call_arg_values rather than on separate vectors.
163 (estimate_ipcp_clone_size_and_time): Adjusted to work with
164 ipa_auto_call_arg_values rather than on separate vectors.
165 (ipa_merge_fn_summary_after_inlining): Likewise. Adjusted call to
166 estimate_edge_size_and_time.
167 (ipa_update_overall_fn_summary): Adjusted call to
168 estimate_edge_size_and_time.
169 * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to work with
170 ipa_auto_call_arg_values rather than with separate vectors.
171 (do_estimate_edge_size): Likewise.
172 (do_estimate_edge_hints): Likewise.
173 * ipa-prop.c (ipa_auto_call_arg_values::~ipa_auto_call_arg_values):
176 2020-10-02 Joe Ramsay <joe.ramsay@arm.com>
178 * config/arm/arm_mve.h (__arm_vmaxnmavq): Remove coercion of scalar
180 (__arm_vmaxnmvq): Likewise.
181 (__arm_vminnmavq): Likewise.
182 (__arm_vminnmvq): Likewise.
183 (__arm_vmaxnmavq_p): Likewise.
184 (__arm_vmaxnmvq_p): Likewise (and delete duplicate definition).
185 (__arm_vminnmavq_p): Likewise.
186 (__arm_vminnmvq_p): Likewise.
187 (__arm_vmaxavq): Likewise.
188 (__arm_vmaxavq_p): Likewise.
189 (__arm_vmaxvq): Likewise.
190 (__arm_vmaxvq_p): Likewise.
191 (__arm_vminavq): Likewise.
192 (__arm_vminavq_p): Likewise.
193 (__arm_vminvq): Likewise.
194 (__arm_vminvq_p): Likewise.
196 2020-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
198 * config/aarch64/aarch64.c (neoversev1_tunings): Define.
199 * config/aarch64/aarch64-cores.def (zeus): Use it.
200 (neoverse-v1): Likewise.
202 2020-10-02 Jan Hubicka <hubicka@ucw.cz>
204 * attr-fnspec.h: Update documentation.
205 (attr_fnsec::return_desc_size): Set to 2
206 (attr_fnsec::arg_desc_size): Set to 2
207 * builtin-attrs.def (STR1): Update fnspec.
208 * internal-fn.def (UBSAN_NULL): Update fnspec.
209 (UBSAN_VPTR): Update fnspec.
210 (UBSAN_PTR): Update fnspec.
211 (ASAN_CHECK): Update fnspec.
212 (GOACC_DIM_SIZE): Remove fnspec.
213 (GOACC_DIM_POS): Remove fnspec.
214 * tree-ssa-alias.c (attr_fnspec::verify): Update verification.
216 2020-10-02 Jan Hubicka <jh@suse.cz>
218 * attr-fnspec.h: New file.
219 * calls.c (decl_return_flags): Use attr_fnspec.
220 * gimple.c (gimple_call_arg_flags): Use attr_fnspec.
221 (gimple_call_return_flags): Use attr_fnspec.
222 * tree-into-ssa.c (pass_build_ssa::execute): Use attr_fnspec.
223 * tree-ssa-alias.c (attr_fnspec::verify): New member fuction.
225 2020-10-02 Jan Hubicka <jh@suse.cz>
227 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_range): Break out from ...
228 (ao_ref_init_from_ptr_and_size): ... here.
230 2020-10-02 Jan Hubicka <hubicka@ucw.cz>
232 * data-streamer-in.c (streamer_read_poly_int64): New function.
233 * data-streamer-out.c (streamer_write_poly_int64): New function.
234 * data-streamer.h (streamer_write_poly_int64): Declare.
235 (streamer_read_poly_int64): Declare.
237 2020-10-02 Richard Sandiford <richard.sandiford@arm.com>
239 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
241 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): Likewise.
242 * config/aarch64/aarch64-sve.md: Add banner comment describing
243 how merging predicated FP operations are represented.
244 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2): Split into...
245 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_relaxed): ...this and...
246 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_strict): ...this.
247 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any): Split into...
248 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_relaxed): ...this and...
249 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_strict): ...this.
250 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): Split into...
251 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_relaxed): ...this and...
252 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_strict): ...this.
253 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Split into...
254 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_relaxed): ...this
256 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_strict): ...this.
257 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2): Split into...
258 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_relaxed): ...this and...
259 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_strict): ...this.
260 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const): Split into...
261 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_relaxed): ...this
263 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_strict): ...this.
264 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3): Split into...
265 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_relaxed): ...this and...
266 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_strict): ...this.
267 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any): Split into...
268 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_relaxed): ...this and...
269 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_strict): ...this.
270 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const): Split into...
271 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_relaxed): ...this
273 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_strict): ...this.
274 (*cond_add<mode>_2_const): Split into...
275 (*cond_add<mode>_2_const_relaxed): ...this and...
276 (*cond_add<mode>_2_const_strict): ...this.
277 (*cond_add<mode>_any_const): Split into...
278 (*cond_add<mode>_any_const_relaxed): ...this and...
279 (*cond_add<mode>_any_const_strict): ...this.
280 (*cond_<SVE_COND_FCADD:optab><mode>_2): Split into...
281 (*cond_<SVE_COND_FCADD:optab><mode>_2_relaxed): ...this and...
282 (*cond_<SVE_COND_FCADD:optab><mode>_2_strict): ...this.
283 (*cond_<SVE_COND_FCADD:optab><mode>_any): Split into...
284 (*cond_<SVE_COND_FCADD:optab><mode>_any_relaxed): ...this and...
285 (*cond_<SVE_COND_FCADD:optab><mode>_any_strict): ...this.
286 (*cond_sub<mode>_3_const): Split into...
287 (*cond_sub<mode>_3_const_relaxed): ...this and...
288 (*cond_sub<mode>_3_const_strict): ...this.
289 (*aarch64_pred_abd<mode>): Split into...
290 (*aarch64_pred_abd<mode>_relaxed): ...this and...
291 (*aarch64_pred_abd<mode>_strict): ...this.
292 (*aarch64_cond_abd<mode>_2): Split into...
293 (*aarch64_cond_abd<mode>_2_relaxed): ...this and...
294 (*aarch64_cond_abd<mode>_2_strict): ...this.
295 (*aarch64_cond_abd<mode>_3): Split into...
296 (*aarch64_cond_abd<mode>_3_relaxed): ...this and...
297 (*aarch64_cond_abd<mode>_3_strict): ...this.
298 (*aarch64_cond_abd<mode>_any): Split into...
299 (*aarch64_cond_abd<mode>_any_relaxed): ...this and...
300 (*aarch64_cond_abd<mode>_any_strict): ...this.
301 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2): Split into...
302 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_relaxed): ...this and...
303 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_strict): ...this.
304 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4): Split into...
305 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_relaxed): ...this and...
306 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_strict): ...this.
307 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any): Split into...
308 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_relaxed): ...this and...
309 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_strict): ...this.
310 (*cond_<SVE_COND_FCMLA:optab><mode>_4): Split into...
311 (*cond_<SVE_COND_FCMLA:optab><mode>_4_relaxed): ...this and...
312 (*cond_<SVE_COND_FCMLA:optab><mode>_4_strict): ...this.
313 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Split into...
314 (*cond_<SVE_COND_FCMLA:optab><mode>_any_relaxed): ...this and...
315 (*cond_<SVE_COND_FCMLA:optab><mode>_any_strict): ...this.
316 (*aarch64_pred_fac<cmp_op><mode>): Split into...
317 (*aarch64_pred_fac<cmp_op><mode>_relaxed): ...this and...
318 (*aarch64_pred_fac<cmp_op><mode>_strict): ...this.
319 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>): Split
321 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_relaxed):
323 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_strict):
325 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>): Split
327 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_relaxed):
329 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_strict):
331 * config/aarch64/aarch64-sve2.md
332 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>): Split into...
333 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_relaxed): ...this and...
334 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_strict): ...this.
335 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any): Split into...
336 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_relaxed): ...this
338 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_strict): ...this.
339 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>): Split into...
340 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_relaxed): ...this and...
341 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_strict): ...this.
343 2020-10-02 Richard Sandiford <richard.sandiford@arm.com>
345 * config/arm/neon.md (*sub<VDQ:mode>3_neon): Use the new mode macros
346 for the insn condition.
347 (sub<VH:mode>3, *mul<VDQW:mode>3_neon): Likewise.
348 (mul<VDQW:mode>3add<VDQW:mode>_neon): Likewise.
349 (mul<VH:mode>3add<VH:mode>_neon): Likewise.
350 (mul<VDQW:mode>3neg<VDQW:mode>add<VDQW:mode>_neon): Likewise.
351 (fma<VCVTF:mode>4, fma<VH:mode>4, *fmsub<VCVTF:mode>4): Likewise.
352 (quad_halves_<code>v4sf, reduc_plus_scal_<VD:mode>): Likewise.
353 (reduc_plus_scal_<VQ:mode>, reduc_smin_scal_<VD:mode>): Likewise.
354 (reduc_smin_scal_<VQ:mode>, reduc_smax_scal_<VD:mode>): Likewise.
355 (reduc_smax_scal_<VQ:mode>, mul<VH:mode>3): Likewise.
356 (neon_vabd<VF:mode>_2, neon_vabd<VF:mode>_3): Likewise.
357 (fma<VH:mode>4_intrinsic): Delete.
358 (neon_vadd<VCVTF:mode>): Use the new mode macros to decide which
359 form of instruction to generate.
360 (neon_vmla<VDQW:mode>, neon_vmls<VDQW:mode>): Likewise.
361 (neon_vsub<VCVTF:mode>): Likewise.
362 (neon_vfma<VH:mode>): Generate the main fma<mode>4 form instead
363 of using fma<mode>4_intrinsic.
365 2020-10-02 Martin Liska <mliska@suse.cz>
367 PR gcov-profile/97193
368 * coverage.c (coverage_init): GCDA note files should not be
369 mangled and should end in output directory.
371 2020-10-02 Jason Merril <jason@redhat.com>
373 * gimple.h (gimple_call_operator_delete_p): Rename from
374 gimple_call_replaceable_operator_delete_p.
375 * gimple.c (gimple_call_operator_delete_p): Likewise.
376 * tree.h (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): Remove.
377 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Adjust.
378 (propagate_necessity): Likewise.
379 (eliminate_unnecessary_stmts): Likewise.
380 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
382 2020-10-02 Richard Biener <rguenther@suse.de>
384 * gimple.h (GF_CALL_FROM_NEW_OR_DELETE): New call flag.
385 (gimple_call_set_from_new_or_delete): New.
386 (gimple_call_from_new_or_delete): Likewise.
387 * gimple.c (gimple_build_call_from_tree): Set
388 GF_CALL_FROM_NEW_OR_DELETE appropriately.
389 * ipa-icf-gimple.c (func_checker::compare_gimple_call):
390 Compare gimple_call_from_new_or_delete.
391 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Make
392 sure to only consider new/delete calls from new or delete
394 (propagate_necessity): Likewise.
395 (eliminate_unnecessary_stmts): Likewise.
396 * tree-ssa-structalias.c (find_func_aliases_for_call):
399 2020-10-02 Jason Merril <jason@redhat.com>
401 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Move from cp-tree.h.
402 * tree-core.h: Document new usage of protected_flag.
404 2020-10-02 Aldy Hernandez <aldyh@redhat.com>
406 * value-range.h (irange::fits_p): New.
408 2020-10-01 Alan Modra <amodra@gmail.com>
410 * config/rs6000/rs6000.c (rs6000_legitimize_address): Use
411 gen_int_mode for high part of address constant.
413 2020-10-01 Alan Modra <amodra@gmail.com>
415 * config/rs6000/rs6000.c (rs6000_linux64_override_options):
416 Formatting. Correct setting of TARGET_NO_FP_IN_TOC and
417 TARGET_NO_SUM_IN_TOC.
419 2020-10-01 Alan Modra <amodra@gmail.com>
421 * config/rs6000/freebsd64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
422 rs6000_linux64_override_options.
423 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Break
425 * config/rs6000/rs6000.c (rs6000_linux64_override_options): ..this,
426 new function. Tweak non-biarch test and clearing of
427 profile_kernel to work with freebsd64.h.
429 2020-10-01 Martin Liska <mliska@suse.cz>
431 * config/rs6000/rs6000-call.c: Include value-range.h.
432 * config/rs6000/rs6000.c: Likewise.
434 2020-10-01 Tom de Vries <tdevries@suse.de>
437 * config/nvptx/nvptx.md (define_insn "truncsi<QHIM>2"): Emit mov.u32
438 instead of cvt.u32.u32.
440 2020-10-01 Richard Sandiford <richard.sandiford@arm.com>
444 * config/arm/arm-protos.h (arm_expand_vector_compare): Declare.
445 (arm_expand_vcond): Likewise.
446 * config/arm/arm.c (arm_expand_vector_compare): New function.
447 (arm_expand_vcond): Likewise.
448 * config/arm/neon.md (vec_cmp<VDQW:mode><v_cmp_result>): New pattern.
449 (vec_cmpu<VDQW:mode><VDQW:mode>): Likewise.
450 (vcond<VDQW:mode><VDQW:mode>): Require operand 5 to be a register
451 or zero. Use arm_expand_vcond.
452 (vcond<V_cvtto><V32:mode>): New pattern.
453 (vcondu<VDQIW:mode><VDQIW:mode>): Generalize to...
454 (vcondu<VDQW:mode><v_cmp_result): ...this. Require operand 5
455 to be a register or zero. Use arm_expand_vcond.
456 (vcond_mask_<VDQW:mode><v_cmp_result>): New pattern.
457 (neon_vc<cmp_op><mode>, neon_vc<cmp_op><mode>_insn): Add "@" marker.
458 (neon_vbsl<mode>): Likewise.
459 (neon_vc<cmp_op>u<mode>): Reexpress as...
460 (@neon_vc<code><mode>): ...this.
462 2020-10-01 Michael Davidsaver <mdavidsaver@gmail.com>
464 * config/i386/t-rtems: Change from mtune to march when building
465 multilibs. The mtune argument tunes or optimizes for a specific
466 CPU model but does not ensure the generated code is appropriate
467 for the CPU model. Prior to this patch, i386 compatible code
468 was always generated but tuned for later models.
470 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
472 * builtins.c (compute_objsize): Replace vr_values with range_query.
474 (gimple_call_alloc_size): Same.
475 * builtins.h (class vr_values): Remove.
476 (gimple_call_alloc_size): Replace vr_values with range_query.
477 * gimple-ssa-sprintf.c (get_int_range): Same.
478 (struct directive): Pass gimple context to fmtfunc callback.
479 (directive::set_width): Replace inline with out-of-line version.
480 (directive::set_precision): Same.
481 (format_none): New gimple argument.
482 (format_percent): New gimple argument.
483 (format_integer): New gimple argument.
484 (format_floating): New gimple argument.
485 (get_string_length): Use range_query API.
486 (format_character): New gimple argument.
487 (format_string): New gimple argument.
488 (format_plain): New gimple argument.
489 (format_directive): New gimple argument.
490 (parse_directive): Replace vr_values with range_query.
491 (compute_format_length): Same.
492 (handle_printf_call): Same. Adjust for range_query API.
493 * tree-ssa-strlen.c (get_range): Same.
494 (compare_nonzero_chars): Same.
495 (get_addr_stridx) Replace vr_values with range_query.
497 (dump_strlen_info): Same.
498 (get_range_strlen_dynamic): Adjust for range_query API.
499 (set_strlen_range): Same
500 (maybe_warn_overflow): Replace vr_values with range_query.
501 (handle_builtin_strcpy): Same.
502 (maybe_diag_stxncpy_trunc): Add FIXME comment.
503 (handle_builtin_memcpy): Replace vr_values with range_query.
504 (handle_builtin_memset): Same.
505 (get_len_or_size): Same.
506 (strxcmp_eqz_result): Same.
507 (handle_builtin_string_cmp): Same.
508 (count_nonzero_bytes_addr): Same, plus adjust for range_query API.
509 (count_nonzero_bytes): Replace vr_values with range_query.
510 (handle_store): Same.
511 (strlen_check_and_optimize_call): Same.
512 (handle_integral_assign): Same.
513 (check_and_optimize_stmt): Same.
514 * tree-ssa-strlen.h (class vr_values): Remove.
515 (get_range): Replace vr_values with range_query.
516 (get_range_strlen_dynamic): Same.
517 (handle_printf_call): Same.
519 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
521 * gimple-loop-versioning.cc (lv_dom_walker::before_dom_children):
522 Pass m_range_analyzer instead of get_vr_values.
523 (loop_versioning::name_prop::get_value): Rename to...
524 (loop_versioning::name_prop::value_of_expr): ...this.
525 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::evrp_range_analyzer):
526 Adjust for evrp_range_analyzer
527 inheriting from vr_values.
528 (evrp_range_analyzer::try_find_new_range): Same.
529 (evrp_range_analyzer::record_ranges_from_incoming_edge): Same.
530 (evrp_range_analyzer::record_ranges_from_phis): Same.
531 (evrp_range_analyzer::record_ranges_from_stmt): Same.
532 (evrp_range_analyzer::push_value_range): Same.
533 (evrp_range_analyzer::pop_value_range): Same.
534 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Inherit from
535 vr_values. Adjust accordingly.
536 * gimple-ssa-evrp.c: Adjust for evrp_range_analyzer inheriting from
538 (evrp_folder::value_of_evrp): Rename from get_value.
539 * tree-ssa-ccp.c (class ccp_folder): Rename get_value to
541 (ccp_folder::get_value): Rename to...
542 (ccp_folder::value_of_expr): ...this.
543 * tree-ssa-copy.c (class copy_folder): Rename get_value to
545 (copy_folder::get_value): Rename to...
546 (copy_folder::value_of_expr): ...this.
547 * tree-ssa-dom.c (dom_opt_dom_walker::after_dom_children): Adjust
548 for evrp_range_analyzer inheriting from vr_values.
549 (dom_opt_dom_walker::optimize_stmt): Same.
550 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
551 Call value_of_* instead of get_value.
552 (substitute_and_fold_engine::replace_phi_args_in): Same.
553 (substitute_and_fold_engine::propagate_into_phi_args): Same.
554 (substitute_and_fold_dom_walker::before_dom_children): Same.
555 * tree-ssa-propagate.h: Include value-query.h.
556 (class substitute_and_fold_engine): Inherit from value_query.
557 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children):
558 Adjust for evrp_range_analyzer inheriting from vr_values.
559 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
561 * tree-vrp.c (class vrp_folder): Same.
562 (vrp_folder::get_value): Rename to value_of_expr.
563 * vr-values.c (vr_values::get_lattice_entry): Adjust for
564 vr_values inheriting from range_query.
565 (vr_values::range_of_expr): New.
566 (vr_values::value_of_expr): New.
567 (vr_values::value_on_edge): New.
568 (vr_values::value_of_stmt): New.
569 (simplify_using_ranges::op_with_boolean_value_range_p): Call
570 get_value_range through query.
571 (check_for_binary_op_overflow): Rename store to query.
572 (vr_values::vr_values): Remove vrp_value_range_pool.
573 (vr_values::~vr_values): Same.
574 (simplify_using_ranges::get_vr_for_comparison): Call get_value_range
576 (simplify_using_ranges::compare_names): Same.
577 (simplify_using_ranges::vrp_evaluate_conditional): Same.
578 (simplify_using_ranges::vrp_visit_cond_stmt): Same.
579 (simplify_using_ranges::simplify_abs_using_ranges): Same.
580 (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
581 (simplify_cond_using_ranges_2): Same.
582 (simplify_using_ranges::simplify_switch_using_ranges): Same.
583 (simplify_using_ranges::two_valued_val_range_p): Same.
584 (simplify_using_ranges::simplify_using_ranges): Rename store to query.
585 (simplify_using_ranges::simplify): Assert that we have a query.
586 * vr-values.h (class range_query): Remove.
587 (class simplify_using_ranges): Remove inheritance of range_query.
588 (class vr_values): Add virtuals for range_of_expr, value_of_expr,
589 value_on_edge, value_of_stmt, and get_value_range.
590 Call range_query allocator instead of using vrp_value_range_pool.
591 Remove vrp_value_range_pool.
592 (simplify_using_ranges::get_value_range): Remove.
594 2020-10-01 Richard Biener <rguenther@suse.de>
596 PR tree-optimization/97236
597 * tree-vect-stmts.c (get_group_load_store_type): Keep
598 VMAT_ELEMENTWISE for single-element vectors.
600 2020-10-01 Jan Hubicka <jh@suse.cz>
602 * ipa-modref.c (compute_parm_map): Be ready for callee_pi to be NULL.
604 2020-10-01 Jan Hubicka <jh@suse.cz>
607 * ipa-fnsummary.c (pass_free_fnsummary::execute): Free
608 also indirect inlining datastructure.
609 * ipa-modref.c (pass_ipa_modref::execute): Do not free them here.
610 * ipa-prop.c (ipa_free_all_node_params): Do not crash when info does
612 (ipa_unregister_cgraph_hooks): Likewise.
614 2020-10-01 Jan Hubicka <jh@suse.cz>
616 * internal-fn.c (DEF_INTERNAL_FN): Fix handling of fnspec
618 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
620 * Makefile.in: Add value-query.o.
621 * value-query.cc: New file.
622 * value-query.h: New file.
624 2020-10-01 Alex Coplan <alex.coplan@arm.com>
626 * config/arm/arm-cpus.in: Fix ordering, move Neoverse N2 down.
627 * config/arm/arm-tables.opt: Regenerate.
628 * config/arm/arm-tune.md: Regenerate.
630 2020-10-01 Jakub Jelinek <jakub@redhat.com>
632 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
633 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
634 fenv_var and old_fpc. Formatting fixes.
636 2020-10-01 Richard Biener <rguenther@suse.de>
638 * tree-vect-patterns.c (vect_recog_bool_pattern): Also handle
641 2020-10-01 Florian Weimer <fweimer@redhat.com>
644 * config/i386/i386.h (PTA_NO_TUNE, PTA_X86_64_BASELINE)
645 (PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4): New.
646 * common/config/i386/i386-common.c (processor_alias_table):
647 Add "x86-64-v2", "x86-64-v3", "x86-64-v4".
648 * config/i386/i386-options.c (ix86_option_override_internal):
649 Handle new PTA_NO_TUNE processor table entries.
650 * doc/invoke.texi (x86 Options): Document new -march values.
652 2020-10-01 Alan Modra <amodra@gmail.com>
654 * config/rs6000/ppc-asm.h: Support __PCREL__ code.
656 2020-10-01 Alan Modra <amodra@gmail.com>
658 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
659 set -mcmodel=small for -mno-minimal-toc when pcrel.
661 2020-09-30 Martin Sebor <msebor@redhat.com>
664 * attribs.c (attr_access::array_as_string): Avoid assuming a VLA
665 access specification string contains a closing bracket.
667 2020-09-30 Martin Sebor <msebor@redhat.com>
670 * attribs.c (attr_access::array_as_string): Avoid modifying a shared
671 type in place and use build_type_attribute_qual_variant instead.
673 2020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
675 * config/arm/arm-cpus.in: Add Cortex-A78 and Cortex-A78AE cores.
676 * config/arm/arm-tables.opt: Regenerate.
677 * config/arm/arm-tune.md: Regenerate.
678 * doc/invoke.texi: Update docs.
680 2020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
682 * config/aarch64/aarch64-cores.def: Add Cortex-A78 and Cortex-A78AE cores.
683 * config/aarch64/aarch64-tune.md: Regenerate.
684 * doc/invoke.texi: Add -mtune=cortex-a78 and -mtune=cortex-a78ae.
686 2020-09-30 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
689 * config/arm/arm_mve.h (__ARM_mve_coerce2): Define.
690 (__arm_vaddq): Correct the scalar argument.
691 (__arm_vaddq_m): Likewise.
692 (__arm_vaddq_x): Likewise.
693 (__arm_vcmpeqq_m): Likewise.
694 (__arm_vcmpeqq): Likewise.
695 (__arm_vcmpgeq_m): Likewise.
696 (__arm_vcmpgeq): Likewise.
697 (__arm_vcmpgtq_m): Likewise.
698 (__arm_vcmpgtq): Likewise.
699 (__arm_vcmpleq_m): Likewise.
700 (__arm_vcmpleq): Likewise.
701 (__arm_vcmpltq_m): Likewise.
702 (__arm_vcmpltq): Likewise.
703 (__arm_vcmpneq_m): Likewise.
704 (__arm_vcmpneq): Likewise.
705 (__arm_vfmaq_m): Likewise.
706 (__arm_vfmaq): Likewise.
707 (__arm_vfmasq_m): Likewise.
708 (__arm_vfmasq): Likewise.
709 (__arm_vmaxnmavq): Likewise.
710 (__arm_vmaxnmavq_p): Likewise.
711 (__arm_vmaxnmvq): Likewise.
712 (__arm_vmaxnmvq_p): Likewise.
713 (__arm_vminnmavq): Likewise.
714 (__arm_vminnmavq_p): Likewise.
715 (__arm_vminnmvq): Likewise.
716 (__arm_vminnmvq_p): Likewise.
717 (__arm_vmulq_m): Likewise.
718 (__arm_vmulq): Likewise.
719 (__arm_vmulq_x): Likewise.
720 (__arm_vsetq_lane): Likewise.
721 (__arm_vsubq_m): Likewise.
722 (__arm_vsubq): Likewise.
723 (__arm_vsubq_x): Likewise.
725 2020-09-30 Joel Hutton <joel.hutton@arm.com>
728 * tree-vect-slp.c (vect_analyze_slp): Do not call
729 vect_attempt_slp_rearrange_stmts for vector constructors.
731 2020-09-30 Tamar Christina <tamar.christina@arm.com>
733 * tree-vectorizer.h (SLP_TREE_REF_COUNT): New.
734 * tree-vect-slp.c (_slp_tree::_slp_tree, _slp_tree::~_slp_tree,
735 vect_free_slp_tree, vect_build_slp_tree, vect_print_slp_tree,
736 slp_copy_subtree, vect_attempt_slp_rearrange_stmts): Use it.
738 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
740 * omp-offload.c (omp_discover_implicit_declare_target): Also
741 handled nested functions.
743 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
744 Tom de Vries <tdevries@suse.de>
746 * builtins.c (expand_builtin_cexpi, fold_builtin_sincos): Update
747 targetm.libc_has_function call.
748 * builtins.def (DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C11_BUILTIN):
749 (DEF_C2X_BUILTIN, DEF_C99_COMPL_BUILTIN, DEF_C99_C90RES_BUILTIN):
751 * config/darwin-protos.h (darwin_libc_has_function): Update prototype.
752 * config/darwin.c (darwin_libc_has_function): Add arg.
753 * config/linux-protos.h (linux_libc_has_function): Update prototype.
754 * config/linux.c (linux_libc_has_function): Add arg.
755 * config/i386/i386.c (ix86_libc_has_function): Update
756 targetm.libc_has_function call.
757 * config/nvptx/nvptx.c (nvptx_libc_has_function): New function.
758 (TARGET_LIBC_HAS_FUNCTION): Redefine to nvptx_libc_has_function.
759 * convert.c (convert_to_integer_1): Update targetm.libc_has_function
762 * target.def (libc_has_function): Add arg.
763 * doc/tm.texi: Regenerate.
764 * targhooks.c (default_libc_has_function, gnu_libc_has_function)
765 (no_c99_libc_has_function): Add arg.
766 * targhooks.h (default_libc_has_function, no_c99_libc_has_function)
767 (gnu_libc_has_function): Update prototype.
768 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Update
769 targetm.libc_has_function call.
771 2020-09-30 H.J. Lu <hjl.tools@gmail.com>
774 * config/i386/i386.md (UNSPECV_MOVDIRI): Renamed to ...
775 (UNSPEC_MOVDIRI): This.
776 (UNSPECV_MOVDIR64B): Renamed to ...
777 (UNSPEC_MOVDIR64B): This.
778 (movdiri<mode>): Use SET operation.
779 (@movdir64b_<mode>): Likewise.
781 2020-09-30 Florian Weimer <fweimer@redhat.com>
783 * config/i386/i386-c.c (ix86_target_macros_internal): Define
784 __LAHF_SAHF__ and __MOVBE__ based on ISA flags.
786 2020-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
789 * config/aarch64/arm_neon.h (vqrshlb_u8): Make second argument
791 (vqrshlh_u16): Likewise.
792 (vqrshls_u32): Likewise.
793 (vqrshld_u64): Likewise.
794 (vqshlb_u8): Likewise.
795 (vqshlh_u16): Likewise.
796 (vqshls_u32): Likewise.
797 (vqshld_u64): Likewise.
798 (vshld_u64): Likewise.
800 2020-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
803 * config/aarch64/aarch64-simd-builtins.def (sqmovun): Use UNOPUS
805 * config/aarch64/arm_neon.h (vqmovun_s16): Adjust builtin call.
806 Remove unnecessary result cast.
807 (vqmovun_s32): Likewise.
808 (vqmovun_s64): Likewise.
809 (vqmovunh_s16): Likewise. Fix return type.
810 (vqmovuns_s32): Likewise.
811 (vqmovund_s64): Likewise.
813 2020-09-30 Richard Sandiford <richard.sandiford@arm.com>
815 * config/aarch64/aarch64.c (aarch64_split_128bit_move_p): Add a
816 function comment. Tighten check for FP moves.
817 * config/aarch64/aarch64.md (*movti_aarch64): Add a w<-Z alternative.
818 (*movtf_aarch64): Handle r<-Y like r<-r. Remove unnecessary
819 earlyclobber. Change splitter predicate from aarch64_reg_or_imm
820 to nonmemory_operand.
822 2020-09-30 Alex Coplan <alex.coplan@arm.com>
825 * config/arm/arm.md (movsf): Relax TARGET_HARD_FLOAT to
828 * config/arm/vfp.md (no_literal_pool_df_immediate): Likewise.
829 (no_literal_pool_sf_immediate): Likewise.
831 2020-09-30 Alan Modra <amodra@gmail.com>
833 * configure.ac (--with-long-double-format): Typo fix.
834 * configure: Regenerate.
836 2020-09-30 Alan Modra <amodra@gmail.com>
838 * config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't use
839 non-existent operands[].
840 (@tablejump<mode>_nospec): Likewise.
842 2020-09-30 Segher Boessenkool <segher@kernel.crashing.org>
844 * config/rs6000/rs6000.md (tablejump): Simplify.
845 (tablejumpsi): Merge this ...
846 (tablejumpdi): ... and this ...
847 (@tablejump<mode>_normal): ... into this.
848 (tablejumpsi_nospec): Merge this ...
849 (tablejumpdi_nospec): ... and this ...
850 (@tablejump<mode>_nospec): ... into this.
851 (*tablejump<mode>_internal1): Delete, rename to ...
852 (@tablejump<mode>_insn_normal): ... this.
853 (*tablejump<mode>_internal1_nospec): Delete, rename to ...
854 (@tablejump<mode>_insn_nospec): ... this.
856 2020-09-29 Martin Sebor <msebor@redhat.com>
859 * calls.c (maybe_warn_rdwr_sizes): Simplify warning messages.
860 Correct handling of VLA argumments.
862 2020-09-29 Marek Polacek <polacek@redhat.com>
865 * doc/invoke.texi: Document -Wrange-loop-construct.
867 2020-09-29 Jim Wilson <jimw@sifive.com>
870 * configure.ac (gcc_cv_header_zstd_h): Check ZSTD_VERISON_NUMBER.
871 * configure: Regenerated.
873 2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
875 * config/arm/arm-cpus.in: Add Cortex-X1 core.
876 * config/arm/arm-tables.opt: Regenerate.
877 * config/arm/arm-tune.md: Regenerate.
878 * doc/invoke.texi: Update docs.
880 2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
882 * config/aarch64/aarch64-cores.def: Add Cortex-X1 Arm core.
883 * config/aarch64/aarch64-tune.md: Regenerate.
884 * doc/invoke.texi: Add -mtune=cortex-x1 docs.
886 2020-09-29 H.J. Lu <hjl.tools@gmail.com>
889 * config/i386/enqcmdintrin.h: Replace <enqcmdntrin.h> with
890 <enqcmdintrin.h>. Replace _ENQCMDNTRIN_H_INCLUDED with
891 _ENQCMDINTRIN_H_INCLUDED.
893 2020-09-29 Richard Biener <rguenther@suse.de>
895 PR tree-optimization/97241
896 * tree-vect-loop.c (vectorizable_reduction): Move finding
897 the SLP node for the reduction stmt to a better place.
899 2020-09-29 Richard Biener <rguenther@suse.de>
901 * tree-vect-slp.c (vect_analyze_slp): Move SLP reduction
902 re-arrangement and SLP graph load gathering...
903 (vect_optimize_slp): ... here.
904 * tree-vectorizer.h (vec_info::slp_loads): Remove.
906 2020-09-29 Hongyu Wang <hongyu.wang@intel.com>
909 * config/i386/amxbf16intrin.h: Add FSF copyright notes.
910 * config/i386/amxint8intrin.h: Ditto.
911 * config/i386/amxtileintrin.h: Ditto.
912 * config/i386/avx512vp2intersectintrin.h: Ditto.
913 * config/i386/avx512vp2intersectvlintrin.h: Ditto.
914 * config/i386/pconfigintrin.h: Ditto.
915 * config/i386/tsxldtrkintrin.h: Ditto.
916 * config/i386/wbnoinvdintrin.h: Ditto.
918 2020-09-29 Richard Biener <rguenther@suse.de>
920 PR tree-optimization/97238
921 * tree-ssa-reassoc.c (ovce_extract_ops): Fix typo.
923 2020-09-29 Richard Sandiford <richard.sandiford@arm.com>
925 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_ARITH, ARM_HAVE_NEON_V4HI_ARITH)
926 (ARM_HAVE_NEON_V2SI_ARITH, ARM_HAVE_NEON_V16QI_ARITH): New macros.
927 (ARM_HAVE_NEON_V8HI_ARITH, ARM_HAVE_NEON_V4SI_ARITH): Likewise.
928 (ARM_HAVE_NEON_V2DI_ARITH, ARM_HAVE_NEON_V4HF_ARITH): Likewise.
929 (ARM_HAVE_NEON_V8HF_ARITH, ARM_HAVE_NEON_V2SF_ARITH): Likewise.
930 (ARM_HAVE_NEON_V4SF_ARITH, ARM_HAVE_V8QI_ARITH, ARM_HAVE_V4HI_ARITH)
931 (ARM_HAVE_V2SI_ARITH, ARM_HAVE_V16QI_ARITH, ARM_HAVE_V8HI_ARITH)
932 (ARM_HAVE_V4SI_ARITH, ARM_HAVE_V2DI_ARITH, ARM_HAVE_V4HF_ARITH)
933 (ARM_HAVE_V2SF_ARITH, ARM_HAVE_V8HF_ARITH, ARM_HAVE_V4SF_ARITH):
935 * config/arm/iterators.md (VNIM, VNINOTM): Delete.
936 * config/arm/vec-common.md (add<VNIM:mode>3, addv8hf3)
937 (add<VNINOTM:mode>3): Replace with...
938 (add<VDQ:mode>3): ...this new expander.
939 * config/arm/neon.md (*add<VDQ:mode>3_neon): Use the new
940 ARM_HAVE_NEON_<MODE>_ARITH macros as the C condition.
941 (addv8hf3_neon, addv4hf3, add<VFH:mode>3_fp16): Delete in
943 (neon_vadd<VH:mode>): Use gen_add<mode>3 instead of
946 2020-09-29 Kito Cheng <kito.cheng@sifive.com>
948 * config/riscv/riscv-c.c (riscv_cpu_cpp_builtins): Define
949 __riscv_cmodel_medany when PIC mode.
951 2020-09-29 Alex Coplan <alex.coplan@arm.com>
953 * config/aarch64/aarch64-cores.def: Move neoverse-n2 after saphira.
954 * config/aarch64/aarch64-tune.md: Regenerate.
956 2020-09-29 Martin Liska <mliska@suse.cz>
958 PR tree-optimization/96979
959 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
960 Make a fast bail out.
961 (bit_test_cluster::can_be_handled): Likewise here.
962 * tree-switch-conversion.h (get_range): Use wi::to_wide instead
965 2020-09-29 Martin Liska <mliska@suse.cz>
968 2020-09-22 Martin Liska <mliska@suse.cz>
970 PR tree-optimization/96979
971 * doc/invoke.texi: Document new param max-switch-clustering-attempts.
972 * params.opt: Add new parameter.
973 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
974 Limit number of attempts.
975 (bit_test_cluster::find_bit_tests): Likewise.
977 2020-09-28 Aldy Hernandez <aldyh@redhat.com>
979 * value-range.h (class irange): Add irange_allocator friend.
980 (class irange_allocator): New.
982 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
985 * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Handle
988 2020-09-28 Paul A. Clarke <pc@us.ibm.com>
990 * config/rs6000/smmintrin.h (_mm_insert_epi8): New.
991 (_mm_insert_epi32): New.
992 (_mm_insert_epi64): New.
994 2020-09-28 liuhongt <hongtao.liu@intel.com>
996 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_AMX_TILE_SET,
997 OPTION_MASK_ISA2_AMX_INT8_SET, OPTION_MASK_ISA2_AMX_BF16_SET,
998 OPTION_MASK_ISA2_AMX_TILE_UNSET, OPTION_MASK_ISA2_AMX_INT8_UNSET,
999 OPTION_MASK_ISA2_AMX_BF16_UNSET, OPTION_MASK_ISA2_XSAVE_UNSET):
1001 (ix86_handle_option): Hanlde -mamx-tile, -mamx-int8, -mamx-bf16.
1002 * common/config/i386/i386-cpuinfo.h (processor_types): Add
1003 FEATURE_AMX_TILE, FEATURE_AMX_INT8, FEATURE_AMX_BF16.
1004 * common/config/i386/cpuinfo.h (XSTATE_TILECFG,
1005 XSTATE_TILEDATA, XCR_AMX_ENABLED_MASK): New macro.
1006 (get_available_features): Enable AMX features only if
1007 their states are suoorited by OSXSAVE.
1008 * common/config/i386/i386-isas.h: Add ISA_NAME_TABLE_ENTRY
1009 for amx-tile, amx-int8, amx-bf16.
1010 * config.gcc: Add amxtileintrin.h, amxint8intrin.h,
1011 amxbf16intrin.h to extra headers.
1012 * config/i386/amxbf16intrin.h: New file.
1013 * config/i386/amxint8intrin.h: Ditto.
1014 * config/i386/amxtileintrin.h: Ditto.
1015 * config/i386/cpuid.h (bit_AMX_BF16, bit_AMX_TILE, bit_AMX_INT8):
1017 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1018 __AMX_TILE__, __AMX_INT8__, AMX_BF16__.
1019 * config/i386/i386-options.c (ix86_target_string): Add
1020 -mamx-tile, -mamx-int8, -mamx-bf16.
1021 (ix86_option_override_internal): Handle AMX-TILE,
1023 * config/i386/i386.h (TARGET_AMX_TILE, TARGET_AMX_TILE_P,
1024 TARGET_AMX_INT8, TARGET_AMX_INT8_P, TARGET_AMX_BF16_P,
1025 PTA_AMX_TILE, PTA_AMX_INT8, PTA_AMX_BF16): New macros.
1026 * config/i386/i386.opt: Add -mamx-tile, -mamx-int8, -mamx-bf16.
1027 * config/i386/immintrin.h: Include amxtileintrin.h,
1028 amxint8intrin.h, amxbf16intrin.h.
1029 * doc/invoke.texi: Document -mamx-tile, -mamx-int8, -mamx-bf16.
1030 * doc/extend.texi: Document amx-tile, amx-int8, amx-bf16.
1031 * doc/sourcebuild.texi ((Effective-Target Keywords, Other
1032 hardware attributes): Document amx_int8, amx_tile, amx_bf16.
1034 2020-09-28 Andrea Corallo <andrea.corallo@arm.com>
1036 * config/aarch64/aarch64-builtins.c
1037 (aarch64_general_expand_builtin): Do not alter value on a
1038 force_reg returned rtx.
1040 2020-09-28 Eric Botcazou <ebotcazou@adacore.com>
1042 * tree-eh.c (lower_try_finally_dup_block): Revert latest change.
1044 2020-09-27 Jan Hubicka <jh@suse.cz>
1046 * ipa-modref.c (modref_summary::useful_p): Fix testing of stores.
1048 2020-09-27 Jakub Jelinek <jakub@redhat.com>
1051 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
1052 expand_copysign_bit): Check reg_overlap_mentioned_p between target
1053 and operand(s) and if it returns true, force a pseudo as target.
1055 2020-09-27 Xionghu Luo <luoxhu@linux.ibm.com>
1057 * gimple-isel.cc (gimple_expand_vec_set_expr): New function.
1058 (gimple_expand_vec_cond_exprs): Rename to ...
1059 (gimple_expand_vec_exprs): ... this and call
1060 gimple_expand_vec_set_expr.
1061 * internal-fn.c (vec_set_direct): New define.
1062 (expand_vec_set_optab_fn): New function.
1063 (direct_vec_set_optab_supported_p): New define.
1064 * internal-fn.def (VEC_SET): New DEF_INTERNAL_OPTAB_FN.
1065 * optabs.c (can_vec_set_var_idx_p): New function.
1066 * optabs.h (can_vec_set_var_idx_p): New declaration.
1068 2020-09-26 Jan Hubicka <jh@suse.cz>
1070 * ipa-modref.c (analyze_stmt): Do not skip clobbers in early pass.
1071 * ipa-pure-const.c (analyze_stmt): Update comment.
1073 2020-09-26 David Edelsohn <dje.gcc@gmail.com>
1074 Clement Chigot <clement.chigot@atos.com>
1076 * collect2.c (visibility_flag): New.
1077 (main): Detect -fvisibility.
1078 (write_c_file_stat): Push and pop default visibility.
1080 2020-09-26 Jan Hubicka <hubicka@ucw.cz>
1082 * ipa-inline-transform.c: Include ipa-modref-tree.h and ipa-modref.h.
1083 (inline_call): Call ipa_merge_modref_summary_after_inlining.
1084 * ipa-inline.c (ipa_inline): Do not free summaries.
1085 * ipa-modref.c (dump_records): Fix formating.
1086 (merge_call_side_effects): Break out from ...
1087 (analyze_call): ... here; record recursive calls.
1088 (analyze_stmt): Add new parameter RECURSIVE_CALLS.
1089 (analyze_function): Do iterative dataflow on recursive calls.
1090 (compute_parm_map): New function.
1091 (ipa_merge_modref_summary_after_inlining): New function.
1092 (collapse_loads): New function.
1093 (modref_propagate_in_scc): Break out from ...
1094 (pass_ipa_modref::execute): ... here; Do iterative dataflow.
1095 * ipa-modref.h (ipa_merge_modref_summary_after_inlining): Declare.
1097 2020-09-26 Jakub Jelinek <jakub@redhat.com>
1099 * omp-expand.c (expand_omp_simd): Help vectorizer for the collapse == 1
1100 and non-composite collapse > 1 case with non-constant innermost loop
1101 step by precomputing number of iterations before loop and using an
1102 alternate IV from 0 to number of iterations - 1 with step of 1.
1104 2020-09-26 Jan Hubicka <jh@suse.cz>
1106 * ipa-fnsummary.c (dump_ipa_call_summary): Dump
1107 points_to_local_or_readonly_memory flag.
1108 (analyze_function_body): Compute points_to_local_or_readonly_memory
1110 (remap_edge_change_prob): Rename to ...
1111 (remap_edge_params): ... this one; update
1112 points_to_local_or_readonly_memory.
1113 (remap_edge_summaries): Update.
1114 (read_ipa_call_summary): Stream the new flag.
1115 (write_ipa_call_summary): Likewise.
1116 * ipa-predicate.h (struct inline_param_summary): Add
1117 points_to_local_or_readonly_memory.
1118 (inline_param_summary::equal_to): Update.
1119 (inline_param_summary::useless_p): Update.
1121 2020-09-26 Jan Hubicka <hubicka@ucw.cz>
1123 * ipa-modref-tree.h (modref_ref_node::insert_access): Track if something
1125 (modref_base_node::insert_ref): Likewise (and add a new optional
1127 (modref_tree::insert): Likewise.
1128 (modref_tree::merge): Rewrite
1130 2020-09-25 Jan Hubicka <hubicka@ucw.cz>
1132 * doc/invoke.texi: Add -fno-ipa-modref to flags disabled by
1134 * opts.c (control_options_for_live_patching): Disable ipa-modref.
1136 2020-09-25 Jan Hubicka <hubicka@ucw.cz>
1138 * ipa-modref.c (analyze_stmt): Fix return value for gimple_clobber.
1140 2020-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1142 * config/aarch64/aarch64-option-extensions.def (rng): Add
1145 2020-09-25 Alex Coplan <alex.coplan@arm.com>
1147 * config/arm/arm-cpus.in (neoverse-v1): Add FP16.
1149 2020-09-25 Martin Liska <mliska@suse.cz>
1151 PR gcov-profile/64636
1152 * value-prof.c (stream_out_histogram_value): Allow negative
1153 values for HIST_TYPE_IOR.
1155 2020-09-25 Tom de Vries <tdevries@suse.de>
1157 * config/nvptx/nvptx.c (nvptx_assemble_integer, nvptx_print_operand):
1158 Use gcc_fallthrough ().
1160 2020-09-25 Richard Biener <rguenther@suse.de>
1163 * expr.c (store_constructor): Handle VECTOR_BOOLEAN_TYPE_P
1166 2020-09-25 Richard Biener <rguenther@suse.de>
1169 * vec.h (auto_vec<T>::operator=(auto_vec<T>&&)): Implement.
1171 2020-09-25 Richard Sandiford <richard.sandiford@arm.com>
1173 * config/arm/arm-protos.h (arm_mve_mode_and_operands_type_check):
1175 * config/arm/arm.c (arm_coproc_mem_operand_wb): Use a scale factor
1176 of 2 rather than 4 for 16-bit modes.
1177 (arm_mve_mode_and_operands_type_check): Delete.
1178 * config/arm/constraints.md (Uj): Allow writeback for Neon,
1179 but continue to disallow it for MVE.
1180 * config/arm/arm.md (*arm32_mov<HFBF:mode>): Add !TARGET_HAVE_MVE.
1181 * config/arm/vfp.md (*mov_load_vfp_hf16, *mov_store_vfp_hf16): Fold
1183 (*mov<mode>_vfp_<mode>16): ...here but use Uj for the FPR memory
1184 constraints. Use for base MVE too.
1186 2020-09-25 Richard Biener <rguenther@suse.de>
1188 PR tree-optimization/97199
1189 * tree-if-conv.c (combine_blocks): Remove edges only
1190 after looking at virtual PHI args.
1192 2020-09-25 Jakub Jelinek <jakub@redhat.com>
1194 * omp-low.c (scan_omp_1_stmt): Don't call scan_omp_simd for
1195 collapse > 1 loops as simt doesn't support collapsed loops yet.
1196 * omp-expand.c (expand_omp_for_init_counts, expand_omp_for_init_vars):
1197 Small tweaks to function comment.
1198 (expand_omp_simd): Rewritten collapse > 1 support to only attempt
1199 to vectorize the innermost loop and emit set of outer loops around it.
1200 For non-composite simd with collapse > 1 without broken loop don't
1201 even try to compute number of iterations first. Add support for
1202 non-rectangular simd loops.
1203 (expand_omp_for): Don't sorry_at on non-rectangular simd loops.
1205 2020-09-25 Martin Liska <mliska@suse.cz>
1207 * cgraph.c (cgraph_edge::debug): New.
1208 * cgraph.h (cgraph_edge::debug): New.
1210 2020-09-25 Martin Liska <mliska@suse.cz>
1212 * cgraph.c (cgraph_node::dump): Always print space at the end
1213 of a message. Remove one extra space.
1215 2020-09-24 Alex Coplan <alex.coplan@arm.com>
1217 * config/arm/arm-cpus.in (neoverse-n2): New.
1218 * config/arm/arm-tables.opt: Regenerate.
1219 * config/arm/arm-tune.md: Regenerate.
1220 * doc/invoke.texi: Document support for Neoverse N2.
1222 2020-09-24 Alex Coplan <alex.coplan@arm.com>
1224 * config/aarch64/aarch64-cores.def: Add Neoverse N2.
1225 * config/aarch64/aarch64-tune.md: Regenerate.
1226 * doc/invoke.texi: Document AArch64 support for Neoverse N2.
1228 2020-09-24 Richard Biener <rguenther@suse.de>
1230 * vec.h (auto_vec<T, 0>::auto_vec (auto_vec &&)): New move CTOR.
1231 (auto_vec<T, 0>::operator=(auto_vec &&)): Delete.
1232 * hash-table.h (hash_table::expand): Use std::move when expanding.
1233 * cfgloop.h (get_loop_exit_edges): Return auto_vec<edge>.
1234 * cfgloop.c (get_loop_exit_edges): Adjust.
1235 * cfgloopmanip.c (fix_loop_placement): Likewise.
1236 * ipa-fnsummary.c (analyze_function_body): Likewise.
1237 * ira-build.c (create_loop_tree_nodes): Likewise.
1238 (create_loop_tree_node_allocnos): Likewise.
1239 (loop_with_complex_edge_p): Likewise.
1240 * ira-color.c (ira_loop_edge_freq): Likewise.
1241 * loop-unroll.c (analyze_insns_in_loop): Likewise.
1242 * predict.c (predict_loops): Likewise.
1243 * tree-predcom.c (last_always_executed_block): Likewise.
1244 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
1245 * tree-ssa-loop-im.c (store_motion_loop): Likewise.
1246 * tree-ssa-loop-ivcanon.c (loop_edge_to_cancel): Likewise.
1247 (canonicalize_loop_induction_variables): Likewise.
1248 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
1249 * tree-ssa-loop-niter.c (find_loop_niter): Likewise.
1250 (finite_loop_p): Likewise.
1251 (find_loop_niter_by_eval): Likewise.
1252 (estimate_numbers_of_iterations): Likewise.
1253 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
1254 (may_use_storent_in_loop_p): Likewise.
1256 2020-09-24 Jan Hubicka <jh@suse.cz>
1258 * doc/invoke.texi: Document -fipa-modref, ipa-modref-max-bases,
1259 ipa-modref-max-refs, ipa-modref-max-accesses, ipa-modref-max-tests.
1260 * ipa-modref-tree.c (test_insert_search_collapse): Update.
1261 (test_merge): Update.
1262 (gt_ggc_mx): New function.
1263 * ipa-modref-tree.h (struct modref_access_node): New structure.
1264 (struct modref_ref_node): Add every_access and accesses array.
1265 (modref_ref_node::modref_ref_node): Update ctor.
1266 (modref_ref_node::search): New member function.
1267 (modref_ref_node::collapse): New member function.
1268 (modref_ref_node::insert_access): New member function.
1269 (modref_base_node::insert_ref): Do not collapse base if ref is 0.
1270 (modref_base_node::collapse): Copllapse also refs.
1271 (modref_tree): Add accesses.
1272 (modref_tree::modref_tree): Initialize max_accesses.
1273 (modref_tree::insert): Add access parameter.
1274 (modref_tree::cleanup): New member function.
1275 (modref_tree::merge): Add parm_map; merge accesses.
1276 (modref_tree::copy_from): New member function.
1277 (modref_tree::create_ggc): Add max_accesses.
1278 * ipa-modref.c (dump_access): New function.
1279 (dump_records): Dump accesses.
1280 (dump_lto_records): Dump accesses.
1281 (get_access): New function.
1282 (record_access): Record access.
1283 (record_access_lto): Record access.
1284 (analyze_call): Compute parm_map.
1285 (analyze_function): Update construction of modref records.
1286 (modref_summaries::duplicate): Likewise; use copy_from.
1287 (write_modref_records): Stream accesses.
1288 (read_modref_records): Sream accesses.
1289 (pass_ipa_modref::execute): Update call of merge.
1290 * params.opt (-param=modref-max-accesses): New.
1291 * tree-ssa-alias.c (alias_stats): Add modref_baseptr_tests.
1292 (dump_alias_stats): Update.
1293 (base_may_alias_with_dereference_p): New function.
1294 (modref_may_conflict): Check accesses.
1295 (ref_maybe_used_by_call_p_1): Update call to modref_may_conflict.
1296 (call_may_clobber_ref_p_1): Update call to modref_may_conflict.
1298 2020-09-24 Richard Sandiford <richard.sandiford@arm.com>
1300 * config/arm/arm.md (*stack_protect_combined_set_insn): For non-PIC,
1301 load the address of the canary rather than the address of the
1302 constant pool entry that points to it.
1303 (*stack_protect_combined_test_insn): Likewise.
1305 2020-09-24 Richard Biener <rguenther@suse.de>
1307 PR tree-optimization/97085
1308 * match.pd (mask ? { false,..} : { true, ..} -> ~mask): New.
1310 2020-09-24 Jan Hubicka <hubicka@ucw.cz>
1312 * ipa-modref-tree.h (modref_base::collapse): Release memory.
1313 (modref_tree::create_ggc): New member function.
1314 (modref_tree::colapse): Release memory.
1315 (modref_tree::~modref_tree): New destructor.
1316 * ipa-modref.c (modref_summaries::create_ggc): New function.
1317 (analyze_function): Use create_ggc.
1318 (modref_summaries::duplicate): Likewise.
1319 (read_modref_records): Likewise.
1320 (modref_read): Likewise.
1322 2020-09-24 Alan Modra <amodra@gmail.com>
1324 * config/rs6000/rs6000.c (rs6000_rtx_costs): Pass mode to
1325 reg_or_add_cint_operand and reg_or_sub_cint_operand.
1327 2020-09-24 Alan Modra <amodra@gmail.com>
1330 * config/rs6000/rs6000.c (num_insns_constant_gpr): Count rldimi
1331 constants correctly.
1333 2020-09-24 Alan Modra <amodra@gmail.com>
1335 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1336 Conditionally define __PCREL__.
1338 2020-09-24 Alan Modra <amodra@gmail.com>
1341 * config/rs6000/rs6000-internal.h (struct rs6000_stack): Improve
1343 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Likewise.
1344 (rs6000_expand_split_stack_prologue): Emit the prologue for
1345 functions that make a sibling call.
1347 2020-09-24 David Malcolm <dmalcolm@redhat.com>
1349 * doc/analyzer.texi (Analyzer Paths): Add note about
1350 -fno-analyzer-feasibility.
1351 * doc/invoke.texi (Static Analyzer Options): Add
1352 -fno-analyzer-feasibility.
1354 2020-09-24 Paul A. Clarke <pc@us.ibm.com>
1356 * doc/extend.texi: Add 'd' for doubleword variant of
1357 vector insert instruction.
1359 2020-09-23 Martin Sebor <msebor@redhat.com>
1361 * gimple-array-bounds.cc (build_zero_elt_array_type): New function.
1362 (array_bounds_checker::check_mem_ref): Call it.
1364 2020-09-23 Martin Sebor <msebor@redhat.com>
1367 * builtins.c (maybe_warn_for_bound): Handle both DECLs and EXPRESSIONs
1368 in pad->dst.ref, same is pad->src.ref.
1370 2020-09-23 Jan Hubicka <jh@suse.cz>
1372 * ipa-fnsummary.c (refs_local_or_readonly_memory_p): New function.
1373 (points_to_local_or_readonly_memory_p): New function.
1374 * ipa-fnsummary.h (refs_local_or_readonly_memory_p): Declare.
1375 (points_to_local_or_readonly_memory_p): Declare.
1376 * ipa-modref.c (record_access_p): Use refs_local_or_readonly_memory_p.
1377 * ipa-pure-const.c (check_op): Likewise.
1379 2020-09-23 Tom de Vries <tdevries@suse.de>
1381 * config/nvptx/nvptx.md: Don't allow operand containing sum of
1382 function ref and const.
1384 2020-09-23 Richard Sandiford <richard.sandiford@arm.com>
1386 * config/aarch64/aarch64-protos.h (aarch64_salt_type): New enum.
1387 (aarch64_stack_protect_canary_mem): Declare.
1388 * config/aarch64/aarch64.md (UNSPEC_SALT_ADDR): New unspec.
1389 (stack_protect_set): Forward to stack_protect_combined_set.
1390 (stack_protect_combined_set): New pattern. Use
1391 aarch64_stack_protect_canary_mem.
1392 (reg_stack_protect_address_<mode>): Add a salt operand.
1393 (stack_protect_test): Forward to stack_protect_combined_test.
1394 (stack_protect_combined_test): New pattern. Use
1395 aarch64_stack_protect_canary_mem.
1396 * config/aarch64/aarch64.c (strip_salt): New function.
1397 (strip_offset_and_salt): Likewise.
1398 (tls_symbolic_operand_type): Use strip_offset_and_salt.
1399 (aarch64_stack_protect_canary_mem): New function.
1400 (aarch64_cannot_force_const_mem): Use strip_offset_and_salt.
1401 (aarch64_classify_address): Likewise.
1402 (aarch64_symbolic_address_p): Likewise.
1403 (aarch64_print_operand): Likewise.
1404 (aarch64_output_addr_const_extra): New function.
1405 (aarch64_tls_symbol_p): Use strip_salt.
1406 (aarch64_classify_symbol): Likewise.
1407 (aarch64_legitimate_pic_operand_p): Use strip_offset_and_salt.
1408 (aarch64_legitimate_constant_p): Likewise.
1409 (aarch64_mov_operand_p): Use strip_salt.
1410 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Override.
1412 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1415 * config/aarch64/arm_neon.h (vreinterpretq_f64_p128,
1416 vreinterpretq_p128_f64): Define.
1418 2020-09-23 Alex Coplan <alex.coplan@arm.com>
1420 * config/arm/arm-cpus.in (neoverse-v1): New.
1421 * config/arm/arm-tables.opt: Regenerate.
1422 * config/arm/arm-tune.md: Regenerate.
1423 * doc/invoke.texi: Document support for Neoverse V1.
1425 2020-09-23 Alex Coplan <alex.coplan@arm.com>
1427 * config/aarch64/aarch64-cores.def: Add Neoverse V1.
1428 * config/aarch64/aarch64-tune.md: Regenerate.
1429 * doc/invoke.texi: Document support for Neoverse V1.
1431 2020-09-23 Richard Biener <rguenther@suse.de>
1434 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove
1435 LT_EXPR -> NE_EXPR verification and also apply it for
1438 2020-09-23 Jan Hubicka <hubicka@ucw.cz>
1440 * ipa-modref.c (modref_summary::lto_useful_p): New member function.
1441 (modref_summary::useful_p): New member function.
1442 (analyze_function): Drop useless summaries.
1443 (modref_write): Skip useless summaries.
1444 (pass_ipa_modref::execute): Drop useless summaries.
1445 * ipa-modref.h (struct GTY): Declare useful_p and lto_useful_p.
1446 * tree-ssa-alias.c (dump_alias_stats): Fix.
1447 (modref_may_conflict): Fix stats.
1449 2020-09-23 Richard Biener <rguenther@suse.de>
1452 * internal-fn.c (expand_vect_cond_mask_optab_fn): Use
1453 appropriate mode for force_reg.
1454 * tree.c (build_truth_vector_type_for): Pass VOIDmode to
1457 2020-09-23 Richard Sandiford <richard.sandiford@arm.com>
1459 * tree-vectorizer.h (determine_peel_for_niter): Delete in favor of...
1460 (vect_determine_partial_vectors_and_peeling): ...this new function.
1461 * tree-vect-loop-manip.c (vect_update_epilogue_niters): New function.
1462 Reject using vector epilogue loops for single iterations. Install
1463 the constant number of epilogue loop iterations in the associated
1464 loop_vinfo. Rely on vect_determine_partial_vectors_and_peeling
1465 to do the main part of the test.
1466 (vect_do_peeling): Use vect_update_epilogue_niters to handle
1467 epilogue loops with a known number of iterations. Skip recomputing
1468 the number of iterations later in that case. Otherwise, use
1469 vect_determine_partial_vectors_and_peeling to decide whether the
1470 epilogue loop needs to use partial vectors or peeling.
1471 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Set the
1472 default can_use_partial_vectors_p to false if partial-vector-usage=0.
1473 (determine_peel_for_niter): Remove in favor of...
1474 (vect_determine_partial_vectors_and_peeling): ...this new function,
1476 (vect_analyze_loop_2): ...here. Reflect the vect_verify_full_masking
1477 and vect_verify_loop_lens results in CAN_USE_PARTIAL_VECTORS_P
1478 rather than USING_PARTIAL_VECTORS_P.
1480 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1483 * config/aarch64/aarch64-simd-builtins.def (frintn): Use BUILTIN_VHSDF_HSDF
1484 for modes. Remove explicit hf instantiation.
1485 * config/aarch64/arm_neon.h (vrndns_f32): Define.
1487 2020-09-23 Richard Biener <rguenther@suse.de>
1489 PR tree-optimization/97173
1490 * tree-vect-loop.c (vectorizable_live_operation): Extend
1491 assert to also conver element conversions.
1493 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1496 * config/aarch64/arm_neon.h (vtrn1q_p64, vtrn2q_p64, vuzp1q_p64,
1497 vuzp2q_p64, vzip1q_p64, vzip2q_p64): Define.
1499 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1502 * config/aarch64/arm_neon.h (vldrq_p128): Define.
1504 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1507 * config/aarch64/arm_neon.h (vstrq_p128): Define.
1509 2020-09-23 Richard Biener <rguenther@suse.de>
1511 PR tree-optimization/97151
1512 * tree-ssa-structalias.c (find_func_aliases_for_call):
1513 DECL_IS_REPLACEABLE_OPERATOR_DELETE_P has no effect on
1516 2020-09-23 Richard Biener <rguenther@suse.de>
1519 * alias.c (compare_base_decls): Use DECL_HARD_REGISTER
1520 and guard with VAR_P.
1522 2020-09-23 Martin Liska <mliska@suse.cz>
1524 PR gcov-profile/97069
1525 * profile.c (branch_prob): Line number must be at least 1.
1527 2020-09-23 Tom de Vries <tdevries@suse.de>
1530 * config/nvptx/nvptx.c (nvptx_output_mov_insn): Handle move from
1531 DF subreg to DF reg.
1533 2020-09-23 David Malcolm <dmalcolm@redhat.com>
1535 * Makefile.in: Add $(ZLIBINC) to CFLAGS-analyzer/engine.o.
1537 2020-09-22 Jan Hubicka <jh@suse.cz>
1539 * ipa-modref.c (analyze_stmt): Ignore gimple clobber.
1541 2020-09-22 Jan Hubicka <jh@suse.cz>
1543 * ipa-modref-tree.c: Add namespace selftest.
1544 (modref_tree_c_tests): Rename to ...
1545 (ipa_modref_tree_c_tests): ... this.
1546 * ipa-modref.c (pass_modref): Remove destructor.
1547 (ipa_modref_c_finalize): New function.
1548 * ipa-modref.h (ipa_modref_c_finalize): Declare.
1549 * selftest-run-tests.c (selftest::run_tests): Call
1550 ipa_modref_c_finalize.
1551 * selftest.h (ipa_modref_tree_c_tests): Declare.
1552 * toplev.c: Include ipa-modref-tree.h and ipa-modref.h
1553 (toplev::finalize): Call ipa_modref_c_finalize.
1555 2020-09-22 David Malcolm <dmalcolm@redhat.com>
1557 * doc/analyzer.texi (Other Debugging Techniques): Mention
1558 -fdump-analyzer-json.
1559 * doc/invoke.texi (Static Analyzer Options): Add
1560 -fdump-analyzer-json.
1562 2020-09-22 David Faust <david.faust@oracle.com>
1564 * config/bpf/bpf.md: Add defines for signed div and mod operators.
1566 2020-09-22 Martin Liska <mliska@suse.cz>
1568 PR tree-optimization/96979
1569 * doc/invoke.texi: Document new param max-switch-clustering-attempts.
1570 * params.opt: Add new parameter.
1571 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
1572 Limit number of attempts.
1573 (bit_test_cluster::find_bit_tests): Likewise.
1575 2020-09-22 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
1577 * config/s390/s390.md ("*cmp<mode>_ccs_0", "*cmp<mode>_ccz_0",
1578 "*cmp<mode>_ccs_0_fastmath"): Basically change "*cmp<mode>_ccs_0" into
1579 "*cmp<mode>_ccz_0" and for fast math add "*cmp<mode>_ccs_0_fastmath".
1581 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1584 * config/aarch64/arm_neon.h (vcls_u8, vcls_u16, vcls_u32,
1585 vclsq_u8, vclsq_u16, vclsq_u32): Define.
1587 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1590 * config/aarch64/arm_neon.h (vceqq_p64, vceqz_p64, vceqzq_p64): Define.
1592 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1595 * config/aarch64/arm_neon.h (vadd_p8, vadd_p16, vadd_p64, vaddq_p8,
1596 vaddq_p16, vaddq_p64, vaddq_p128): Define.
1598 2020-09-22 Jakub Jelinek <jakub@redhat.com>
1600 * params.opt (--param=modref-max-tests=): Fix typo in help text:
1601 perofmed -> performed.
1602 * common.opt: Fix typo: incrmeental -> incremental.
1603 * ipa-modref.c: Fix typos: recroding -> recording, becaue -> because,
1604 analsis -> analysis.
1605 (class modref_summaries): Fix typo: betweehn -> between.
1606 (analyze_call): Fix typo: calle -> callee.
1607 (read_modref_records): Fix typo: expcted -> expected.
1608 (pass_ipa_modref::execute): Fix typo: calle -> callee.
1610 2020-09-22 Jakub Jelinek <jakub@redhat.com>
1612 * common.opt (-fipa-modref): Add dot at the end of option help.
1613 * params.opt (--param=modref-max-tests=): Likewise.
1615 2020-09-21 Marek Polacek <polacek@redhat.com>
1617 * doc/invoke.texi: Document -Wctad-maybe-unsupported.
1619 2020-09-21 Richard Biener <rguenther@suse.de>
1621 PR tree-optimization/97139
1622 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Only mark the
1623 pattern root, track visited vectorized stmts.
1625 2020-09-21 Jakub Jelinek <jakub@redhat.com>
1627 * configure.ac: Use mallinfo mallinfo2 as first operand of
1628 gcc_AC_CHECK_DECLS rather than [mallinfo, mallinfo2].
1629 * configure: Regenerated.
1630 * config.in: Regenerated.
1632 2020-09-21 Andrea Corallo <andrea.corallo@arm.com>
1634 * config/aarch64/aarch64-builtins.c
1635 (aarch64_general_expand_builtin): Use expand machinery not to
1636 alter the value of an rtx returned by force_reg.
1638 2020-09-21 Richard Biener <rguenther@suse.de>
1640 PR tree-optimization/97135
1641 * tree-ssa-loop-im.c (sm_seq_push_down): Do not ignore
1644 2020-09-21 Martin Liska <mliska@suse.cz>
1646 PR tree-optimization/96915
1647 * tree-switch-conversion.c (switch_conversion::expand): Accept
1648 also integer constants.
1650 2020-09-21 Martin Liska <mliska@suse.cz>
1652 * print-tree.c (print_node): Remove extra space.
1654 2020-09-21 Andrea Corallo <andrea.corallo@arm.com>
1657 * config/aarch64/aarch64-builtins.c
1658 (aarch64_expand_fpsr_fpcr_setter): Fix comment nit.
1659 (aarch64_expand_fpsr_fpcr_getter): New function, expand these
1660 getters using expand_insn machinery.
1661 (aarch64_general_expand_builtin): Make use of.
1663 2020-09-21 Martin Liska <mliska@suse.cz>
1665 * ggc-common.c (ggc_rlimit_bound): Use ONE_? macro.
1666 (ggc_min_expand_heuristic): Likewise.
1667 (ggc_min_heapsize_heuristic): Likewise.
1668 * ggc-page.c (ggc_collect): Likewise.
1669 * system.h (ONE_G): Likewise.
1671 2020-09-21 Martin Liska <mliska@suse.cz>
1673 * ggc-common.c (ggc_prune_overhead_list): Use SIZE_AMOUNT.
1674 * ggc-page.c (release_pages): Likewise.
1675 (ggc_collect): Likewise.
1676 (ggc_trim): Likewise.
1677 (ggc_grow): Likewise.
1678 * timevar.c (timer::print): Likewise.
1680 2020-09-21 Martin Liska <mliska@suse.cz>
1682 * config.in: Regenerate.
1683 * configure: Likewise.
1684 * configure.ac: Detect for mallinfo2.
1685 * ggc-common.c (defined): Use it.
1686 * system.h: Handle also HAVE_MALLINFO2.
1688 2020-09-20 John David Anglin < danglin@gcc.gnu.org>
1690 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Delete.
1691 * config/pa/pa64-hpux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1692 (ENDFILE_SPEC): Link with libgcc_stub.a and mill.a.
1693 * config/pa/pa32-linux.h (ENDFILE_SPEC): Link with libgcc.a.
1695 2020-09-20 Jan Hubicka <hubicka@ucw.cz>
1697 * ipa-modref.c (dump_lto_records): Fix ICE.
1699 2020-09-20 David Cepelik <d@dcepelik.cz>
1700 Jan Hubicka <hubicka@ucw.cz>
1702 * Makefile.in: Add ipa-modref.c and ipa-modref-tree.c.
1703 * alias.c: (reference_alias_ptr_type_1): Export.
1704 * alias.h (reference_alias_ptr_type_1): Declare.
1705 * common.opt (fipa-modref): New.
1706 * gengtype.c (open_base_files): Add ipa-modref-tree.h and ipa-modref.h
1707 * ipa-modref-tree.c: New file.
1708 * ipa-modref-tree.h: New file.
1709 * ipa-modref.c: New file.
1710 * ipa-modref.h: New file.
1711 * lto-section-in.c (lto_section_name): Add ipa_modref.
1712 * lto-streamer.h (enum lto_section_type): Add LTO_section_ipa_modref.
1713 * opts.c (default_options_table): Enable ipa-modref at -O1+.
1714 * params.opt (-param=modref-max-bases, -param=modref-max-refs,
1715 -param=modref-max-tests): New params.
1716 * passes.def: Schedule pass_modref and pass_ipa_modref.
1717 * timevar.def (TV_IPA_MODREF): New timevar.
1718 (TV_TREE_MODREF): New timevar.
1719 * tree-pass.h (make_pass_modref): Declare.
1720 (make_pass_ipa_modref): Declare.
1721 * tree-ssa-alias.c (dump_alias_stats): Include ipa-modref-tree.h
1723 (alias_stats): Add modref_use_may_alias, modref_use_no_alias,
1724 modref_clobber_may_alias, modref_clobber_no_alias, modref_tests.
1725 (dump_alias_stats): Dump new stats.
1726 (nonoverlapping_array_refs_p): Fix formating.
1727 (modref_may_conflict): New function.
1728 (ref_maybe_used_by_call_p_1): Use it.
1729 (call_may_clobber_ref_p_1): Use it.
1730 (call_may_clobber_ref_p): Update.
1731 (stmt_may_clobber_ref_p_1): Update.
1732 * tree-ssa-alias.h (call_may_clobber_ref_p_1): Update.
1734 2020-09-19 Martin Sebor <msebor@redhat.com>
1740 * gimple-array-bounds.cc (get_base_decl): New function.
1741 (get_ref_size): New function.
1742 (trailing_array): New function.
1743 (array_bounds_checker::check_array_ref): Call them. Handle arrays
1744 declared in function parameters.
1745 (array_bounds_checker::check_mem_ref): Same. Handle references to
1746 dynamically allocated arrays.
1748 2020-09-19 Martin Sebor <msebor@redhat.com>
1751 * builtins.c (warn_for_access): Add argument. Distinguish between
1753 (check_access): Add argument. Distinguish between reads and writes.
1754 (gimple_call_alloc_size): Set range even on failure.
1755 (gimple_parm_array_size): New function.
1756 (compute_objsize): Call it.
1757 (check_memop_access): Pass check_access an additional argument.
1758 (expand_builtin_memchr, expand_builtin_strcat): Same.
1759 (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
1760 (expand_builtin_stpncpy, check_strncat_sizes): Same.
1761 (expand_builtin_strncat, expand_builtin_strncpy): Same.
1762 (expand_builtin_memcmp): Same.
1763 * builtins.h (compute_objsize): Declare a new overload.
1764 (gimple_parm_array_size): Declare.
1765 (check_access): Add argument.
1766 * calls.c (append_attrname): Simplify.
1767 (maybe_warn_rdwr_sizes): Handle internal attribute access.
1768 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid adding
1771 2020-09-19 Martin Sebor <msebor@redhat.com>
1773 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Handle attribute
1774 access internal representation of arrays.
1776 2020-09-19 Martin Sebor <msebor@redhat.com>
1779 * attribs.c (decl_attributes): Also pass decl along with type
1780 attributes to handlers.
1781 (init_attr_rdwr_indices): Change second argument to attribute chain.
1782 Handle internal attribute representation in addition to external.
1783 (get_parm_access): New function.
1784 (attr_access::to_internal_string): Define new member function.
1785 (attr_access::to_external_string): Define new member function.
1786 (attr_access::vla_bounds): Define new member function.
1787 * attribs.h (struct attr_access): Declare new members.
1788 (attr_access::from_mode_char): Define new member function.
1789 (get_parm_access): Declare new function.
1790 * calls.c (initialize_argument_information): Pass function type
1791 attributes to init_attr_rdwr_indices.
1792 * doc/invoke.texi (-Warray-parameter, -Wvla-parameter): Document.
1793 * tree-pretty-print.c (dump_generic_node): Correct handling of
1795 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Same.
1796 * tree.h (access_mode): Add new enumerator.
1798 2020-09-19 Sandra Loosemore <sandra@codesourcery.com>
1800 * doc/generic.texi (Basic Statements): Document SWITCH_EXPR here,
1802 (Statements for C and C++): Rename node to reflect what
1803 the introduction already says about sharing between C and C++
1804 front ends. Copy-edit and correct documentation for structured
1807 2020-09-19 liuhongt <hongtao.liu@intel.com>
1810 * config/i386/x86-tune-costs.h (skylake_cost): increase rtx
1811 cost of sse_to_integer from 2 to 6.
1813 2020-09-18 Sudi Das <sudi.das@arm.com>
1814 Omar Tahir <omar.tahir@arm.com>
1816 * config/arm/thumb2.md (*thumb2_csneg): New.
1817 (*thumb2_negscc): Don't match if TARGET_COND_ARITH.
1818 * config/arm/arm.md (*if_neg_move): Don't match if TARGET_COND_ARITH.
1820 2020-09-18 Sudi Das <sudi.das@arm.com>
1821 Omar Tahir <omar.tahir@arm.com>
1823 * config/arm/thumb2.md (*thumb2_csinc): New.
1824 (*thumb2_cond_arith): Generate CINC where possible.
1826 2020-09-18 Sudi Das <sudi.das@arm.com>
1827 Omar Tahir <omar.tahir@arm.com>
1829 * config/arm/arm.h (TARGET_COND_ARITH): New macro.
1830 * config/arm/arm.c (arm_have_conditional_execution): Return false if
1831 TARGET_COND_ARITH before reload.
1832 * config/arm/predicates.md (arm_comparison_operation): Returns true if
1833 comparing CC_REGNUM with constant zero.
1834 * config/arm/thumb2.md (*thumb2_csinv): New.
1835 (*thumb2_movcond): Don't match if TARGET_COND_ARITH.
1837 2020-09-18 Richard Sandiford <richard.sandiford@arm.com>
1840 * ira.c (ira_setup_eliminable_regset): Skip the special elimination
1841 handling of the hard frame pointer if the hard frame pointer is fixed.
1843 2020-09-18 Richard Biener <rguenther@suse.de>
1845 PR tree-optimization/97081
1846 * tree-vect-patterns.c (vect_recog_rotate_pattern): Use the
1847 precision of the shifted operand to determine the mask.
1849 2020-09-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1851 * config/msp430/msp430.c (msp430_print_operand): Update comment.
1852 Cast to long when printing values formatted as long.
1853 Support 'd', 'e', 'f' and 'g' modifiers.
1854 Extract operand value with a single operation for all modifiers.
1855 * doc/extend.texi (msp430Operandmodifiers): New.
1857 2020-09-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1859 * config/msp430/msp430.c (increment_stack): Mark insns which increment
1860 the stack as frame_related.
1861 (msp430_expand_prologue): Add comments.
1862 (msp430_expand_epilogue): Mark insns which decrement
1863 the stack as frame_related.
1864 Add reg_note to stack pop insns describing position of register
1865 variables on the stack.
1867 2020-09-18 Andrew Stubbs <ams@codesourcery.com>
1869 * config/gcn/gcn-tree.c (execute_omp_gcn): Delete.
1870 (make_pass_omp_gcn): Delete.
1871 * config/gcn/t-gcn-hsa (PASSES_EXTRA): Delete.
1872 * config/gcn/gcn-passes.def: Removed.
1874 2020-09-18 Alex Coplan <alex.coplan@arm.com>
1876 * cfgloop.h (nb_iter_bound): Reword comment describing is_exit.
1878 2020-09-18 Richard Biener <rguenther@suse.de>
1880 PR tree-optimization/97095
1881 * tree-vect-loop.c (vectorizable_live_operation): Get
1882 the SLP vector type from the correct object.
1884 2020-09-18 Richard Biener <rguenther@suse.de>
1886 PR tree-optimization/97089
1887 * tree-ssa-sccvn.c (visit_nary_op): Do not replace unsigned
1890 2020-09-18 Richard Biener <rguenther@suse.de>
1892 PR tree-optimization/97098
1893 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Do not
1894 recurse to children when all stmts were already visited.
1896 2020-09-17 Sergei Trofimovich <siarheit@google.com>
1898 * profile.c (sort_hist_values): Clarify hist format:
1899 start with a value, not counter.
1901 2020-09-17 Yeting Kuo <fakepaper56@gmail.com>
1903 * config/riscv/riscv.h (CSW_MAX_OFFSET): Fix typo.
1905 2020-09-17 Patrick Palka <ppalka@redhat.com>
1908 * gensupport.c (alter_attrs_for_subst_insn) <case SET_ATTR>:
1909 Reduce indentation of misleadingly indented code fragment.
1910 * lra-constraints.c (multi_block_pseudo_p): Likewise.
1911 * sel-sched-ir.c (merge_fences): Likewise.
1913 2020-09-17 Martin Sebor <msebor@redhat.com>
1915 * doc/invoke.texi (-Wuninitialized): Document -Wuninitialized for
1917 (-Wmaybe-uninitialized): Same.
1919 2020-09-17 Richard Biener <rguenther@suse.de>
1921 * tree-ssa-sccvn.c (visit_nary_op): Value-number multiplications
1922 and divisions to negates of available negated forms.
1924 2020-09-17 Eric Botcazou <ebotcazou@adacore.com>
1927 * function.c (use_register_for_decl): Test cfun->tail_call_marked
1928 for a parameter here instead of...
1929 (assign_parm_setup_reg): ...here.
1931 2020-09-17 Aldy Hernandez <aldyh@redhat.com>
1933 * range-op.cc (multi_precision_range_tests): Normalize symbolics when copying to a
1935 * value-range.cc (irange::copy_legacy_range): Add test.
1937 2020-09-17 Jan Hubicka <jh@suse.cz>
1939 * cgraph.c (cgraph_node::get_availability): Fix availability of
1940 functions in other partitions
1941 * varpool.c (varpool_node::get_availability): Likewise.
1943 2020-09-17 Jojo R <jiejie_rong@c-sky.com>
1945 * config/csky/csky.opt (msim): New.
1946 * doc/invoke.texi (C-SKY Options): Document -msim.
1947 * config/csky/csky-elf.h (LIB_SPEC): Add simulator runtime.
1949 2020-09-17 Sergei Trofimovich <siarheit@google.com>
1951 * doc/cppenv.texi: Use @code{} instead of @samp{@command{}}
1954 2020-09-17 liuhongt <hongtao.liu@intel.com>
1956 * common/config/i386/i386-common.c
1957 (OPTION_MASK_ISA_AVX_UNSET): Remove OPTION_MASK_ISA_XSAVE_UNSET.
1958 (OPTION_MASK_ISA_XSAVE_UNSET): Add OPTION_MASK_ISA_AVX_UNSET.
1960 2020-09-16 Alexandre Oliva <oliva@adacore.com>
1962 * config/rs6000/rs6000.c (have_compare_and_set_mask): Use
1965 2020-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
1967 * config/rs6000/predicates.md (current_file_function_operand):
1968 Remove argument from rs6000_pcrel_p call.
1969 * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
1971 (rs6000_global_entry_point_prologue_needed_p): Likewise.
1972 (rs6000_output_function_prologue): Likewise.
1973 * config/rs6000/rs6000-protos.h (rs6000_function_pcrel_p): New
1975 (rs6000_pcrel_p): Remove argument.
1976 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
1977 argument from rs6000_pcrel_p call.
1978 (rs6000_call_template_1): Likewise.
1979 (rs6000_indirect_call_template_1): Likewise.
1980 (rs6000_longcall_ref): Likewise.
1981 (rs6000_call_aix): Likewise.
1982 (rs6000_sibcall_aix): Likewise.
1983 (rs6000_function_pcrel_p): Rename from rs6000_pcrel_p.
1984 (rs6000_pcrel_p): Rewrite.
1985 * config/rs6000/rs6000.md (*pltseq_plt_pcrel<mode>): Remove
1986 argument from rs6000_pcrel_p call.
1987 (*call_local<mode>): Likewise.
1988 (*call_value_local<mode>): Likewise.
1989 (*call_nonlocal_aix<mode>): Likewise.
1990 (*call_value_nonlocal_aix<mode>): Likewise.
1991 (*call_indirect_pcrel<mode>): Likewise.
1992 (*call_value_indirect_pcrel<mode>): Likewise.
1994 2020-09-16 Marek Polacek <polacek@redhat.com>
1996 PR preprocessor/96935
1997 * input.c (get_substring_ranges_for_loc): Return if start.column
2000 2020-09-16 Martin Sebor <msebor@redhat.com>
2003 * tree-ssa-uninit.c (maybe_warn_operand): Work harder to avoid
2004 warning for objects of empty structs
2006 2020-09-16 Eric Botcazou <ebotcazou@adacore.com>
2008 * tree-eh.c (lower_try_finally_dup_block): Backward propagate slocs
2009 to stack restore builtin calls.
2010 (cleanup_all_empty_eh): Do again a post-order traversal of the EH
2013 2020-09-16 Andrea Corallo <andrea.corallo@arm.com>
2015 * tree-vect-loop.c (vect_need_peeling_or_partial_vectors_p): New
2017 (vect_analyze_loop_2): Make use of it not to select partial
2018 vectors if no peel is required.
2019 (determine_peel_for_niter): Move out some logic into
2020 'vect_need_peeling_or_partial_vectors_p'.
2022 2020-09-16 H.J. Lu <hjl.tools@gmail.com>
2025 * cfgexpand.c (asm_clobber_reg_kind): Set sp_is_clobbered_by_asm
2026 to true if the stack pointer is clobbered by asm statement.
2027 * emit-rtl.h (rtl_data): Add sp_is_clobbered_by_asm.
2028 * config/i386/i386.c (ix86_get_drap_rtx): Set need_drap to true
2029 if the stack pointer is clobbered by asm statement.
2031 2020-09-16 Ilya Leoshkevich <iii@linux.ibm.com>
2033 * config/s390/vector.md(*vec_tf_to_v1tf): Use "f" instead of "v"
2034 for the source operand.
2036 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
2038 * config.gcc (C-SKY): Set use_gcc_stdint=wrap for elf target.
2040 2020-09-16 Richard Biener <rguenther@suse.de>
2042 * tree-vectorizer.h (_stmt_vec_info::num_slp_uses): Remove.
2043 (STMT_VINFO_NUM_SLP_USES): Likewise.
2044 (vect_free_slp_instance): Adjust.
2045 (vect_update_shared_vectype): Declare.
2046 * tree-vectorizer.c (vec_info::~vec_info): Adjust.
2047 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2048 (vectorizable_live_operation): Use vector type from
2049 SLP_TREE_REPRESENTATIVE.
2050 (vect_transform_loop): Adjust.
2051 * tree-vect-data-refs.c (vect_slp_analyze_node_alignment):
2052 Set the shared vector type.
2053 * tree-vect-slp.c (vect_free_slp_tree): Remove final_p
2054 parameter, remove STMT_VINFO_NUM_SLP_USES updating.
2055 (vect_free_slp_instance): Adjust.
2056 (vect_create_new_slp_node): Remove STMT_VINFO_NUM_SLP_USES
2058 (vect_update_shared_vectype): Always compare with the
2059 present vector type, update if NULL.
2060 (vect_build_slp_tree_1): Do not update the shared vector
2062 (vect_build_slp_tree_2): Adjust.
2063 (slp_copy_subtree): Likewise.
2064 (vect_attempt_slp_rearrange_stmts): Likewise.
2065 (vect_analyze_slp_instance): Likewise.
2066 (vect_analyze_slp): Likewise.
2067 (vect_slp_analyze_node_operations_1): Update the shared
2069 (vect_slp_analyze_operations): Adjust.
2070 (vect_slp_analyze_bb_1): Likewise.
2072 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
2074 * config/csky/t-csky-linux (CSKY_MULTILIB_OSDIRNAMES): Use mfloat-abi.
2075 (MULTILIB_OPTIONS): Likewise.
2076 * config/csky/t-csky-elf (MULTILIB_OPTIONS): Likewise.
2077 (MULTILIB_EXCEPTIONS): Likewise.
2079 2020-09-16 Jakub Jelinek <jakub@redhat.com>
2081 * config/arm/arm.c (arm_option_restore): Comment out opts argument
2082 name to avoid unused parameter warnings.
2084 2020-09-16 Jakub Jelinek <jakub@redhat.com>
2086 * optc-save-gen.awk: In cl_optimization_stream_out use
2087 bp_pack_var_len_{int,unsigned} instead of bp_pack_value. In
2088 cl_optimization_stream_in use bp_unpack_var_len_{int,unsigned}
2089 instead of bp_unpack_value. Formatting fix.
2091 2020-09-16 Jakub Jelinek <jakub@redhat.com>
2093 PR tree-optimization/97053
2094 * gimple-ssa-store-merging.c (check_no_overlap): Add FIRST_ORDER,
2095 START, FIRST_EARLIER and LAST_EARLIER arguments. Return false if
2096 any stores between FIRST_EARLIER inclusive and LAST_EARLIER exclusive
2097 has order in between FIRST_ORDER and LAST_ORDER and overlaps the to
2099 (imm_store_chain_info::try_coalesce_bswap): Add FIRST_EARLIER argument.
2100 Adjust check_no_overlap caller.
2101 (imm_store_chain_info::coalesce_immediate_stores): Add first_earlier
2102 and last_earlier variables, adjust them during iterations. Adjust
2103 check_no_overlap callers, call check_no_overlap even when extending
2104 overlapping stores by extra INTEGER_CST stores.
2106 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
2108 * config/csky/csky-linux-elf.h (GLIBC_DYNAMIC_LINKER): Use mfloat-abi.
2110 2020-09-16 Kewen Lin <linkw@linux.ibm.com>
2113 * config/rs6000/rs6000-p8swap.c (find_alignment_op): Adjust to
2114 support multiple defintions which are all AND operations with
2116 (recombine_lvx_pattern): Adjust to handle multiple AND operations
2117 from find_alignment_op.
2118 (recombine_stvx_pattern): Likewise.
2120 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
2122 * config/csky/csky.md (CSKY_NPARM_FREGS): New.
2123 (call_value_internal_vs/d): New.
2124 (untyped_call): New.
2125 * config/csky/csky.h (TARGET_SINGLE_FPU): New.
2126 (TARGET_DOUBLE_FPU): New.
2127 (FUNCTION_VARG_REGNO_P): New.
2128 (CSKY_VREG_MODE_P): New.
2129 (FUNCTION_VARG_MODE_P): New.
2130 (CUMULATIVE_ARGS): Add extra regs info.
2131 (INIT_CUMULATIVE_ARGS): Use csky_init_cumulative_args.
2132 (FUNCTION_ARG_REGNO_P): Use FUNCTION_VARG_REGNO_P.
2133 * config/csky/csky-protos.h (csky_init_cumulative_args): Extern.
2134 * config/csky/csky.c (csky_cpu_cpp_builtins): Support TARGET_HARD_FLOAT_ABI.
2135 (csky_function_arg): Likewise.
2136 (csky_num_arg_regs): Likewise.
2137 (csky_function_arg_advance): Likewise.
2138 (csky_function_value): Likewise.
2139 (csky_libcall_value): Likewise.
2140 (csky_function_value_regno_p): Likewise.
2141 (csky_arg_partial_bytes): Likewise.
2142 (csky_setup_incoming_varargs): Likewise.
2143 (csky_init_cumulative_args): New.
2145 2020-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
2147 * config/rs6000/rs6000-call.c (altivec_init_builtins): Fix name
2148 of __builtin_altivec_xst_len_r.
2150 2020-09-15 Ilya Leoshkevich <iii@linux.ibm.com>
2152 * rtlanal.c (set_noop_p): Treat subregs of registers in
2153 different modes conservatively.
2155 2020-09-15 Richard Biener <rguenther@suse.de>
2157 * tree-vect-slp.c (vect_get_and_check_slp_defs): Make swap
2158 argument by-value and do not change it.
2159 (vect_build_slp_tree_2): Adjust, set swap to NULL after last
2162 2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
2164 PR tree-optimization/94234
2165 * match.pd (T)(A) +- (T)(B) -> (T)(A +- B): New simplification.
2167 2020-09-15 Segher Boessenkool <segher@kernel.crashing.org>
2169 PR rtl-optimization/96475
2170 * bb-reorder.c (duplicate_computed_gotos): If we did anything, run
2173 2020-09-15 Richard Biener <rguenther@suse.de>
2175 * tree-vect-slp.c (vect_build_slp_tree_2): Also consider
2176 building an operand from scalars when building it did not
2177 fail fatally but avoid messing with the upcall splitting
2180 2020-09-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
2182 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Do not
2183 check +D32 for CMSE if -mfloat-abi=soft
2185 2020-09-15 liuhongt <hongtao.liu@intel.com>
2188 * config/i386/x86-tune-costs.h (struct processor_costs):
2189 Increase mask <-> integer cost for non AVX512 target to avoid
2190 spill gpr to mask. Also retune mask <-> integer and
2191 mask_load/store for skylake_cost.
2193 2020-09-15 Jakub Jelinek <jakub@redhat.com>
2196 * config/i386/sse.md (mul<mode>3<mask_name>_bcs,
2197 <avx512>_div<mode>3<mask_name>_bcst): Use <avx512bcst> instead of
2200 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
2203 * gimplify.c (gimplify_omp_for): Add 'bool openacc' argument;
2204 update omp_finish_clause calls.
2205 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses,
2206 gimplify_expr, gimplify_omp_loop): Update omp_finish_clause
2207 and/or gimplify_for calls.
2208 * langhooks-def.h (lhd_omp_finish_clause): Add bool openacc arg.
2209 * langhooks.c (lhd_omp_finish_clause): Likewise.
2210 * langhooks.h (lhd_omp_finish_clause): Likewise.
2211 * omp-low.c (scan_sharing_clauses): Keep GOMP_MAP_TO_PSET cause for
2212 'declare target' vars.
2214 2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
2216 PR tree-optimization/94234
2217 * genmatch.c (dt_simplify::gen_1): Emit check on final simplification
2218 result when "!" is specified on toplevel output expr.
2219 * match.pd ((A * C) +- (B * C) -> (A +- B) * C): Allow folding on expr
2220 with multi-use operands if final result is a simple gimple value.
2222 2020-09-14 Sergei Trofimovich <siarheit@google.com>
2224 * doc/invoke.texi: fix '-fprofile-reproducibility' option
2227 2020-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
2229 * config/bpf/bpf.md ("nop"): Re-define as `ja 0'.
2231 2020-09-14 Eric Botcazou <ebotcazou@adacore.com>
2233 * cgraphunit.c (cgraph_node::expand_thunk): Make sure to set
2234 cfun->tail_call_marked when forcing a tail call.
2235 * function.c (assign_parm_setup_reg): Always use a register to
2236 load a parameter passed by reference if cfun->tail_call_marked.
2238 2020-09-14 Pat Haugen <pthaugen@linux.ibm.com>
2240 * config/rs6000/power10.md (power10-mffgpr, power10-mftgpr): Rename to
2241 power10-mtvsr/power10-mfvsr.
2242 * config/rs6000/power6.md (X2F_power6, power6-mftgpr, power6-mffgpr):
2244 * config/rs6000/power8.md (power8-mffgpr, power8-mftgpr): Rename to
2245 power8-mtvsr/power8-mfvsr.
2246 * config/rs6000/power9.md (power9-mffgpr, power9-mftgpr): Rename to
2247 power9-mtvsr/power9-mfvsr.
2248 * config/rs6000/rs6000.c (rs6000_adjust_cost): Remove Power6
2250 * config/rs6000/rs6000.md (mffgpr, mftgpr, zero_extendsi<mode>2,
2251 extendsi<mode>2, @signbit<mode>2_dm, lfiwax, lfiwzx, *movsi_internal1,
2252 movsi_from_sf, *movdi_from_sf_zero_ext, *mov<mode>_internal,
2253 movsd_hardfloat, movsf_from_si, *mov<mode>_hardfloat64, p8_mtvsrwz,
2254 p8_mtvsrd_df, p8_mtvsrd_sf, p8_mfvsrd_3_<mode>, *movdi_internal64,
2255 unpack<mode>_dm): Rename mffgpr/mftgpr to mtvsr/mfvsr.
2256 * config/rs6000/vsx.md (vsx_mov<mode>_64bit, vsx_extract_<mode>,
2257 vsx_extract_si, *vsx_extract_<mode>_p8): Likewise.
2259 2020-09-14 Jakub Jelinek <jakub@redhat.com>
2261 * config/arm/arm.opt (x_arm_arch_string, x_arm_cpu_string,
2262 x_arm_tune_string): Remove TargetSave entries.
2263 (march=, mcpu=, mtune=): Add Save keyword.
2264 * config/arm/arm.c (arm_option_save): Remove.
2265 (TARGET_OPTION_SAVE): Don't redefine.
2266 (arm_option_restore): Don't restore x_arm_*_string here.
2268 2020-09-14 Jakub Jelinek <jakub@redhat.com>
2270 * opt-read.awk: Also initialize extra_target_var_types array.
2271 * opth-gen.awk: Emit explicit_mask arrays to struct cl_optimization
2272 and cl_target_option. Adjust cl_optimization_save,
2273 cl_optimization_restore, cl_target_option_save and
2274 cl_target_option_restore declarations.
2275 * optc-save-gen.awk: Add opts_set argument to cl_optimization_save,
2276 cl_optimization_restore, cl_target_option_save and
2277 cl_target_option_restore functions and save or restore opts_set
2278 next to the opts values into or from explicit_mask arrays.
2279 In cl_target_option_eq and cl_optimization_option_eq compare
2280 explicit_mask arrays, in cl_target_option_hash and cl_optimization_hash
2281 hash them and in cl_target_option_stream_out,
2282 cl_target_option_stream_in, cl_optimization_stream_out and
2283 cl_optimization_stream_in stream them.
2284 * tree.h (build_optimization_node, build_target_option_node): Add
2286 * tree.c (build_optimization_node): Add opts_set argument, pass it
2287 to cl_optimization_save.
2288 (build_target_option_node): Add opts_set argument, pass it to
2289 cl_target_option_save.
2290 * function.c (invoke_set_current_function_hook): Adjust
2291 cl_optimization_restore caller.
2292 * ipa-inline-transform.c (inline_call): Adjust cl_optimization_restore
2293 and build_optimization_node callers.
2294 * target.def (TARGET_OPTION_SAVE, TARGET_OPTION_RESTORE): Add opts_set
2296 * target-globals.c (save_target_globals_default_opts): Adjust
2297 cl_optimization_restore callers.
2298 * toplev.c (process_options): Adjust build_optimization_node and
2299 cl_optimization_restore callers.
2300 (target_reinit): Adjust cl_optimization_restore caller.
2301 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2302 Adjust build_optimization_node and cl_optimization_restore callers.
2303 * doc/tm.texi: Updated.
2304 * config/aarch64/aarch64.c (aarch64_override_options): Adjust
2305 build_target_option_node caller.
2306 (aarch64_option_save, aarch64_option_restore): Add opts_set argument.
2307 (aarch64_set_current_function): Adjust cl_target_option_restore
2309 (aarch64_option_valid_attribute_p): Adjust cl_target_option_save,
2310 cl_target_option_restore, cl_optimization_restore,
2311 build_optimization_node and build_target_option_node callers.
2312 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Adjust
2313 cl_target_option_restore and build_target_option_node callers.
2314 * config/arm/arm.c (arm_option_save, arm_option_restore): Add
2316 (arm_option_override): Adjust cl_target_option_save,
2317 build_optimization_node and build_target_option_node callers.
2318 (arm_set_current_function): Adjust cl_target_option_restore caller.
2319 (arm_valid_target_attribute_tree): Adjust build_target_option_node
2321 (add_attribute): Formatting fix.
2322 (arm_valid_target_attribute_p): Adjust cl_optimization_restore,
2323 cl_target_option_restore, arm_valid_target_attribute_tree and
2324 build_optimization_node callers.
2325 * config/arm/arm-c.c (arm_pragma_target_parse): Adjust
2326 cl_target_option_restore callers.
2327 * config/csky/csky.c (csky_option_override): Adjust
2328 build_target_option_node and cl_target_option_save callers.
2329 * config/gcn/gcn.c (gcn_fixup_accel_lto_options): Adjust
2330 build_optimization_node and cl_optimization_restore callers.
2331 * config/i386/i386-builtins.c (get_builtin_code_for_version):
2332 Adjust cl_target_option_save and cl_target_option_restore
2334 * config/i386/i386-c.c (ix86_pragma_target_parse): Adjust
2335 build_target_option_node and cl_target_option_restore callers.
2336 * config/i386/i386-options.c (ix86_function_specific_save,
2337 ix86_function_specific_restore): Add opts_set arguments.
2338 (ix86_valid_target_attribute_tree): Adjust build_target_option_node
2340 (ix86_valid_target_attribute_p): Adjust build_optimization_node,
2341 cl_optimization_restore, cl_target_option_restore,
2342 ix86_valid_target_attribute_tree and build_optimization_node callers.
2343 (ix86_option_override_internal): Adjust build_target_option_node
2345 (ix86_reset_previous_fndecl, ix86_set_current_function): Adjust
2346 cl_target_option_restore callers.
2347 * config/i386/i386-options.h (ix86_function_specific_save,
2348 ix86_function_specific_restore): Add opts_set argument.
2349 * config/nios2/nios2.c (nios2_option_override): Adjust
2350 build_target_option_node caller.
2351 (nios2_option_save, nios2_option_restore): Add opts_set argument.
2352 (nios2_valid_target_attribute_tree): Adjust build_target_option_node
2354 (nios2_valid_target_attribute_p): Adjust build_optimization_node,
2355 cl_optimization_restore, cl_target_option_save and
2356 cl_target_option_restore callers.
2357 (nios2_set_current_function, nios2_pragma_target_parse): Adjust
2358 cl_target_option_restore callers.
2359 * config/pru/pru.c (pru_option_override): Adjust
2360 build_target_option_node caller.
2361 (pru_set_current_function): Adjust cl_target_option_restore
2363 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust
2364 cl_target_option_save caller.
2365 (rs6000_option_override_internal): Adjust build_target_option_node
2367 (rs6000_valid_attribute_p): Adjust build_optimization_node,
2368 cl_optimization_restore, cl_target_option_save,
2369 cl_target_option_restore and build_target_option_node callers.
2370 (rs6000_pragma_target_parse): Adjust cl_target_option_restore and
2371 build_target_option_node callers.
2372 (rs6000_activate_target_options): Adjust cl_target_option_restore
2374 (rs6000_function_specific_save, rs6000_function_specific_restore):
2375 Add opts_set argument.
2376 * config/s390/s390.c (s390_function_specific_restore): Likewise.
2377 (s390_option_override_internal): Adjust s390_function_specific_restore
2379 (s390_option_override, s390_valid_target_attribute_tree): Adjust
2380 build_target_option_node caller.
2381 (s390_valid_target_attribute_p): Adjust build_optimization_node,
2382 cl_optimization_restore and cl_target_option_restore callers.
2383 (s390_activate_target_options): Adjust cl_target_option_restore
2385 * config/s390/s390-c.c (s390_cpu_cpp_builtins): Adjust
2386 cl_target_option_save caller.
2387 (s390_pragma_target_parse): Adjust build_target_option_node and
2388 cl_target_option_restore callers.
2390 2020-09-13 Roger Sayle <roger@nextmovesoftware.com>
2392 * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
2393 Provide accurate costs for DImode shifts of integer constants.
2395 2020-09-12 Roger Sayle <roger@nextmovesoftware.com>
2396 John David Anglin <danglin@gcc.gnu.org>
2398 * config/pa/pa.md (shrpsi4_1, shrpsi4_2): New define_insns split
2399 out from previous shrpsi4 providing two commutitive variants using
2400 plus_xor_ior_operator as a predicate.
2401 (shrpdi4_1, shrpdi4_2, shrpdi_3, shrpdi_4): Likewise DImode versions
2402 where _1 and _2 take register shifts, and _3 and _4 for integers.
2403 (rotlsi3_internal): Name this anonymous instruction.
2404 (rotrdi3): New DImode insn copied from rotrsi3.
2405 (rotldi3): New DImode expander copied from rotlsi3.
2406 (rotldi4_internal): New DImode insn copied from rotsi3_internal.
2408 2020-09-11 Michael Meissner <meissner@linux.ibm.com>
2410 * config/rs6000/rs6000.c (rs6000_maybe_emit_maxc_minc): Rename
2411 from rs6000_emit_p9_fp_minmax. Change return type to bool. Add
2412 comments to document NaN/signed zero behavior.
2413 (rs6000_maybe_emit_fp_cmove): Rename from rs6000_emit_p9_fp_cmove.
2414 (have_compare_and_set_mask): New helper function.
2415 (rs6000_emit_cmove): Update calls to new names and the new helper
2418 2020-09-11 Nathan Sidwell <nathan@acm.org>
2420 * config/i386/sse.md (mov<mode>): Fix operand indices.
2422 2020-09-11 Martin Sebor <msebor@redhat.com>
2425 * builtins.c (compute_objsize): Remove incorrect offset adjustment.
2426 (compute_objsize): Adjust offset range here instead.
2428 2020-09-11 Richard Biener <rguenther@suse.de>
2430 PR tree-optimization/97020
2431 * tree-vect-slp.c (vect_slp_analyze_operations): Apply
2432 SLP costs when doing loop vectorization.
2434 2020-09-11 Tom de Vries <tdevries@suse.de>
2437 * config/nvptx/nvptx.md (define_expand "atomic_test_and_set"): New
2440 2020-09-11 Andrew Stubbs <ams@codesourcery.com>
2442 * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align TImode registers.
2443 * config/gcn/gcn.md: Assert that TImode registers do not early clobber.
2445 2020-09-11 Richard Biener <rguenther@suse.de>
2447 * tree-vectorizer.h (_slp_instance::location): New method.
2448 (vect_schedule_slp): Adjust prototype.
2449 * tree-vectorizer.c (vec_info::remove_stmt): Adjust
2450 the BB region begin if we removed the stmt it points to.
2451 * tree-vect-loop.c (vect_transform_loop): Adjust.
2452 * tree-vect-slp.c (_slp_instance::location): Implement.
2453 (vect_analyze_slp_instance): For BB vectorization set
2454 vect_location to that of the instance.
2455 (vect_slp_analyze_operations): Likewise.
2456 (vect_bb_vectorization_profitable_p): Remove wrapper.
2457 (vect_slp_analyze_bb_1): Remove cost check here.
2458 (vect_slp_region): Cost check and code generate subgraphs separately,
2459 report optimized locations and missed optimizations due to
2460 profitability for each of them.
2461 (vect_schedule_slp): Get the vector of SLP graph entries to
2462 vectorize as argument.
2464 2020-09-11 Richard Biener <rguenther@suse.de>
2466 PR tree-optimization/97013
2467 * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove duplicate dumping.
2469 2020-09-11 Richard Biener <rguenther@suse.de>
2471 * tree-vect-slp.c (vect_build_slp_tree_1): Check vector
2472 types for all lanes are compatible.
2473 (vect_analyze_slp_instance): Appropriately check for stores.
2474 (vect_schedule_slp): Likewise.
2476 2020-09-11 Tom de Vries <tdevries@suse.de>
2478 * config/nvptx/nvptx.c (nvptx_assemble_value): Fix undefined
2481 2020-09-11 Tom de Vries <tdevries@suse.de>
2483 * config/nvptx/nvptx.c (nvptx_assemble_value): Handle negative
2486 2020-09-11 Aaron Sawdey <acsawdey@linux.ibm.com>
2488 * config/rs6000/rs6000.c (rs6000_option_override_internal):
2491 2020-09-10 Michael Meissner <meissner@linux.ibm.com>
2493 * config/rs6000/rs6000-protos.h (rs6000_emit_cmove): Change return
2495 (rs6000_emit_int_cmove): Change return type to bool.
2496 * config/rs6000/rs6000.c (rs6000_emit_cmove): Change return type
2498 (rs6000_emit_int_cmove): Change return type to bool.
2500 2020-09-10 Tom de Vries <tdevries@suse.de>
2503 * config/nvptx/nvptx.c (nvptx_assemble_value): Handle shift by
2504 number of bits in shift operand.
2506 2020-09-10 Jakub Jelinek <jakub@redhat.com>
2508 * lto-streamer-out.c (collect_block_tree_leafs): Recurse on
2509 root rather than BLOCK_SUBBLOCKS (root).
2511 2020-09-10 Alex Coplan <alex.coplan@arm.com>
2513 * config/aarch64/aarch64-cores.def: Add Cortex-R82.
2514 * config/aarch64/aarch64-tune.md: Regenerate.
2515 * doc/invoke.texi: Add entry for Cortex-R82.
2517 2020-09-10 Alex Coplan <alex.coplan@arm.com>
2519 * common/config/aarch64/aarch64-common.c
2520 (aarch64_get_extension_string_for_isa_flags): Don't force +crc for
2522 * config/aarch64/aarch64-arches.def: Add entry for Armv8-R.
2523 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros): Set
2524 __ARM_ARCH_PROFILE correctly for Armv8-R.
2525 * config/aarch64/aarch64.h (AARCH64_FL_V8_R): New.
2526 (AARCH64_FL_FOR_ARCH8_R): New.
2527 (AARCH64_ISA_V8_R): New.
2528 * doc/invoke.texi: Add Armv8-R to architecture table.
2530 2020-09-10 Jakub Jelinek <jakub@redhat.com>
2532 * config/arm/arm.c (arm_override_options_after_change_1): Add opts_set
2533 argument, test opts_set->x_str_align_functions rather than
2534 opts->x_str_align_functions.
2535 (arm_override_options_after_change, arm_option_override_internal,
2536 arm_set_current_function): Adjust callers.
2538 2020-09-10 Jakub Jelinek <jakub@redhat.com>
2541 * config/arm/arm.c (arm_override_options_after_change): Don't call
2542 arm_configure_build_target here.
2543 (arm_set_current_function): Call arm_override_options_after_change_1
2546 2020-09-10 Pat Haugen <pthaugen@linux.ibm.com>
2548 * config/rs6000/rs6000.md
2549 (lfiwzx, floatunssi<mode>2_lfiwzx, p8_mtvsrwz, p8_mtvsrd_sf): Fix insn
2551 * config/rs6000/vsx.md
2552 (vsx_concat_<mode>, vsx_splat_<mode>_reg, vsx_splat_v4sf): Likewise.
2554 2020-09-10 Jonathan Yong <10walls@gmail.com>
2556 * config.host: Adjust plugin name for Windows.
2558 2020-09-10 Tom de Vries <tdevries@suse.de>
2560 PR tree-optimization/97000
2561 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): Don't clear
2562 flag for IFN_UNIQUE.
2564 2020-09-10 Jakub Jelinek <jakub@redhat.com>
2567 * lto-streamer.h (struct output_block): Add emit_pwd member.
2568 * lto-streamer-out.c: Include toplev.h.
2569 (clear_line_info): Set emit_pwd.
2570 (lto_output_location_1): Encode the ob->current_file != xloc.file
2571 bit directly into the location number. If changing file, emit
2572 additionally a bit whether pwd is emitted and emit it before the
2573 first relative pathname since clear_line_info.
2574 (output_function, output_constructor): Don't call clear_line_info
2576 * lto-streamer-in.c (struct string_pair_map): New type.
2577 (struct string_pair_map_hasher): New type.
2578 (string_pair_map_hasher::hash): New method.
2579 (string_pair_map_hasher::equal): New method.
2580 (path_name_pair_hash_table, string_pair_map_allocator): New variables.
2581 (relative_path_prefix, canon_relative_path_prefix,
2582 canon_relative_file_name): New functions.
2583 (canon_file_name): Add relative_prefix argument, if non-NULL
2584 and string is a relative path, return canon_relative_file_name.
2585 (lto_location_cache::input_location_and_block): Decode file change
2586 bit from the location number. If changing file, unpack bit whether
2587 pwd is streamed and stream in pwd. Adjust canon_file_name caller.
2588 (lto_free_file_name_hash): Delete path_name_pair_hash_table
2589 and string_pair_map_allocator.
2591 2020-09-10 Richard Biener <rguenther@suse.de>
2593 PR tree-optimization/96043
2594 * tree-vectorizer.h (_slp_instance::cost_vec): New.
2595 (_slp_instance::subgraph_entries): Likewise.
2596 (BB_VINFO_TARGET_COST_DATA): Remove.
2597 * tree-vect-slp.c (vect_free_slp_instance): Free
2598 cost_vec and subgraph_entries.
2599 (vect_analyze_slp_instance): Initialize them.
2600 (vect_slp_analyze_operations): Defer passing costs to
2601 the target, instead record them in the SLP graph entry.
2602 (get_ultimate_leader): New helper for graph partitioning.
2603 (vect_bb_partition_graph_r): Likewise.
2604 (vect_bb_partition_graph): New function to partition the
2605 SLP graph into independently costable parts.
2606 (vect_bb_vectorization_profitable_p): Adjust to work on
2608 (vect_bb_vectorization_profitable_p): New wrapper,
2609 discarding non-profitable vectorization of subgraphs.
2610 (vect_slp_analyze_bb_1): Call vect_bb_partition_graph before
2613 2020-09-09 David Malcolm <dmalcolm@redhat.com>
2616 * doc/invoke.texi: Document -Wanalyzer-mismatching-deallocation.
2618 2020-09-09 Segher Boessenkool <segher@kernel.crashing.org>
2620 PR rtl-optimization/96475
2621 * bb-reorder.c (maybe_duplicate_computed_goto): Remove single_pred_p
2624 2020-09-09 Tom de Vries <tdevries@suse.de>
2626 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Fix Wformat
2629 2020-09-09 Richard Biener <rguenther@suse.de>
2631 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
2632 nothing when the permutation doesn't permute.
2634 2020-09-09 Tom de Vries <tdevries@suse.de>
2637 * config/nvptx/nvptx.c (write_fn_proto): Fix boolean type check.
2639 2020-09-09 Richard Biener <rguenther@suse.de>
2641 * tree-vect-stmts.c (vectorizable_comparison): Allow
2642 STMT_VINFO_LIVE_P stmts.
2644 2020-09-09 Richard Biener <rguenther@suse.de>
2646 * tree-vect-stmts.c (vectorizable_condition): Allow
2647 STMT_VINFO_LIVE_P stmts.
2649 2020-09-09 Richard Biener <rguenther@suse.de>
2651 PR tree-optimization/96978
2652 * tree-vect-stmts.c (vectorizable_condition): Do not
2653 look at STMT_VINFO_LIVE_P for BB vectorization.
2654 (vectorizable_comparison): Likewise.
2656 2020-09-09 liuhongt <hongtao.liu@intel.com>
2659 * config/i386/i386.md (get_thread_pointer<mode>): New
2662 2020-09-08 Julian Brown <julian@codesourcery.com>
2664 * config/gcn/gcn-valu.md (scatter<mode>_insn_1offset_ds<exec_scatter>):
2666 * config/gcn/gcn.md (*mov<mode>_insn, *movti_insn): Add waitcnt to
2667 ds_write alternatives.
2669 2020-09-08 Julian Brown <julian@codesourcery.com>
2671 * config/gcn/mkoffload.c (process_asm): Initialise regcount. Update
2672 scanning for SGPR/VGPR usage for HSACO v3.
2674 2020-09-08 Aldy Hernandez <aldyh@redhat.com>
2676 PR tree-optimization/96967
2677 * tree-vrp.c (find_case_label_range): Cast label range to
2678 type of switch operand.
2680 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2682 * config/msp430/msp430.c (msp430_file_end): Fix jumbled
2683 HAVE_AS_MSPABI_ATTRIBUTE and HAVE_AS_GNU_ATTRIBUTE checks.
2684 * configure: Regenerate.
2685 * configure.ac: Use ".mspabi_attribute 4,2" to check for assembler
2686 support for this object attribute directive.
2688 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2690 * common/config/msp430/msp430-common.c (msp430_handle_option): Remove
2692 Set target_cpu value to new enum values when parsing certain -mmcu=
2694 * config/msp430/msp430-opts.h (enum msp430_cpu_types): New.
2695 * config/msp430/msp430.c (msp430_option_override): Handle new
2696 target_cpu enum values.
2697 Set target_cpu using extracted value for given MCU when -mcpu=
2698 option is not passed by the user.
2699 * config/msp430/msp430.opt: Handle -mcpu= values using enums.
2701 2020-09-07 Richard Sandiford <richard.sandiford@arm.com>
2703 PR rtl-optimization/96796
2704 * lra-constraints.c (in_class_p): Add a default-false
2705 allow_all_reload_class_changes_p parameter. Do not treat
2706 reload moves specially when the parameter is true.
2707 (get_reload_reg): Try to narrow the class of an existing OP_OUT
2708 reload if we're reloading a reload pseudo in a reload instruction.
2710 2020-09-07 Andrea Corallo <andrea.corallo@arm.com>
2712 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Revert
2713 dead-code removal introduced by 09fa6acd8d9 + add a comment to
2716 2020-09-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2718 * doc/rtl.texi (subreg): Fix documentation to state there is a known
2719 number of undefined bits in regs and subregs of MODE_PARTIAL_INT modes.
2721 2020-09-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2723 * config/msp430/msp430.c (msp430_option_override): Don't set the
2724 ISA to 430 when the MCU is unrecognized.
2726 2020-09-07 Iain Sandoe <iain@sandoe.co.uk>
2728 * config/darwin.c (darwin_libc_has_function): Report sincos
2729 available from 10.9.
2731 2020-09-07 Alex Coplan <alex.coplan@arm.com>
2733 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): Delete.
2734 (*subs_mul_imm_<mode>): Delete.
2735 (*adds_<optab><mode>_multp2): Delete.
2736 (*subs_<optab><mode>_multp2): Delete.
2737 (*add_mul_imm_<mode>): Delete.
2738 (*add_<optab><ALLX:mode>_mult_<GPI:mode>): Delete.
2739 (*add_<optab><SHORT:mode>_mult_si_uxtw): Delete.
2740 (*add_<optab><mode>_multp2): Delete.
2741 (*add_<optab>si_multp2_uxtw): Delete.
2742 (*add_uxt<mode>_multp2): Delete.
2743 (*add_uxtsi_multp2_uxtw): Delete.
2744 (*sub_mul_imm_<mode>): Delete.
2745 (*sub_mul_imm_si_uxtw): Delete.
2746 (*sub_<optab><mode>_multp2): Delete.
2747 (*sub_<optab>si_multp2_uxtw): Delete.
2748 (*sub_uxt<mode>_multp2): Delete.
2749 (*sub_uxtsi_multp2_uxtw): Delete.
2750 (*neg_mul_imm_<mode>2): Delete.
2751 (*neg_mul_imm_si2_uxtw): Delete.
2752 * config/aarch64/predicates.md (aarch64_pwr_imm3): Delete.
2753 (aarch64_pwr_2_si): Delete.
2754 (aarch64_pwr_2_di): Delete.
2756 2020-09-07 Alex Coplan <alex.coplan@arm.com>
2758 * config/aarch64/aarch64.md
2759 (*adds_<optab><ALLX:mode>_<GPI:mode>): Ensure extended operand
2760 agrees with width of extension specifier.
2761 (*subs_<optab><ALLX:mode>_<GPI:mode>): Likewise.
2762 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
2763 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
2764 (*add_<optab><ALLX:mode>_<GPI:mode>): Likewise.
2765 (*add_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
2766 (*add_uxt<mode>_shift2): Likewise.
2767 (*sub_<optab><ALLX:mode>_<GPI:mode>): Likewise.
2768 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
2769 (*sub_uxt<mode>_shift2): Likewise.
2770 (*cmp_swp_<optab><ALLX:mode>_reg<GPI:mode>): Likewise.
2771 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
2773 2020-09-07 Richard Biener <rguenther@suse.de>
2775 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
2776 stmts we start SLP analysis from, failure and splitting.
2777 (vect_schedule_slp): Dump SLP graph entry and root stmt
2778 we are about to emit code for.
2780 2020-09-07 Martin Storsjö <martin@martin.st>
2782 * dwarf2out.c (file_name_acquire): Make a strchr return value
2785 2020-09-07 Jakub Jelinek <jakub@redhat.com>
2788 * lto-streamer-out.c (output_cfg): Also stream goto_locus for edges.
2789 Use bp_pack_var_len_unsigned instead of streamer_write_uhwi to stream
2790 e->dest->index and e->flags.
2791 (output_function): Call output_cfg before output_ssa_name, rather than
2792 after streaming all bbs.
2793 * lto-streamer-in.c (input_cfg): Stream in goto_locus for edges.
2794 Use bp_unpack_var_len_unsigned instead of streamer_read_uhwi to stream
2795 in dest_index and edge_flags.
2797 2020-09-07 Richard Biener <rguenther@suse.de>
2799 * tree-vectorizer.h (vectorizable_live_operation): Adjust.
2800 * tree-vect-loop.c (vectorizable_live_operation): Vectorize
2801 live lanes out of basic-block vectorization nodes.
2802 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): New function.
2803 (vect_slp_analyze_operations): Analyze live lanes and their
2804 vectorization possibility after the whole SLP graph is final.
2805 (vect_bb_slp_scalar_cost): Adjust for vectorized live lanes.
2806 * tree-vect-stmts.c (can_vectorize_live_stmts): Adjust.
2807 (vect_transform_stmt): Call can_vectorize_live_stmts also for
2808 basic-block vectorization.
2810 2020-09-04 Richard Biener <rguenther@suse.de>
2812 PR tree-optimization/96698
2813 PR tree-optimization/96920
2814 * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): Remove.
2815 (loop_vec_info::reduc_latch_slp_defs): Likewise.
2816 * tree-vect-stmts.c (vect_transform_stmt): Remove vectorized
2817 cycle PHI latch code.
2818 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): New
2819 helper to set vectorized cycle PHI latch values.
2820 (vect_transform_loop): Walk over all PHIs again after
2821 vectorizing them, calling maybe_set_vectorized_backedge_value.
2822 Call maybe_set_vectorized_backedge_value for each vectorized
2823 stmt. Remove delayed update code.
2824 * tree-vect-slp.c (vect_analyze_slp_instance): Initialize
2825 SLP instance reduc_phis member.
2826 (vect_schedule_slp): Set vectorized cycle PHI latch values.
2828 2020-09-04 Andrea Corallo <andrea.corallo@arm.com>
2830 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Remove
2831 dead code as LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) is
2834 2020-09-04 Christophe Lyon <christophe.lyon@linaro.org>
2837 * config/arm/thumb1.md: Move movsi splitter for
2838 arm_disable_literal_pool after the other movsi splitters.
2840 2020-09-04 Aldy Hernandez <aldyh@redhat.com>
2842 * range-op.cc (range_operator::fold_range): Rename widest_irange
2844 (operator_div::wi_fold): Same.
2845 (operator_lshift::op1_range): Same.
2846 (operator_rshift::op1_range): Same.
2847 (operator_cast::fold_range): Same.
2848 (operator_cast::op1_range): Same.
2849 (operator_bitwise_and::remove_impossible_ranges): Same.
2850 (operator_bitwise_and::op1_range): Same.
2851 (operator_abs::op1_range): Same.
2853 (widest_irange_tests): Same.
2854 (range3_tests): Rename irange3 to int_range3.
2855 (int_range_max_tests): Rename from widest_irange_tests.
2856 Rename widest_irange to int_range_max.
2857 (operator_tests): Rename widest_irange to int_range_max.
2858 (range_tests): Same.
2859 * tree-vrp.c (find_case_label_range): Same.
2860 * value-range.cc (irange::irange_intersect): Same.
2861 (irange::invert): Same.
2862 * value-range.h: Same.
2864 2020-09-04 Richard Biener <rguenther@suse.de>
2866 PR tree-optimization/96931
2867 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): If
2868 there's a fallthru edge and no abnormal edge the call is
2869 no longer control-altering.
2870 (cleanup_control_flow_bb): Pass down the BB to
2871 cleanup_call_ctrl_altering_flag.
2873 2020-09-04 Jakub Jelinek <jakub@redhat.com>
2875 * lto-streamer.h (stream_input_location_now): Remove declaration.
2876 * lto-streamer-in.c (stream_input_location_now): Remove.
2877 (input_eh_region, input_struct_function_base): Use
2878 stream_input_location instead of stream_input_location_now.
2880 2020-09-04 Jakub Jelinek <jakub@redhat.com>
2882 * lto-streamer.h (struct output_block): Add reset_locus member.
2883 * lto-streamer-out.c (clear_line_info): Set reset_locus to true.
2884 (lto_output_location_1): If reset_locus, clear it and ensure
2885 current_{file,line,col} is different from xloc members.
2887 2020-09-04 David Faust <david.faust@oracle.com>
2889 * config/bpf/bpf.h (ASM_SPEC): Pass -mxbpf to gas, if specified.
2890 * config/bpf/bpf.c (bpf_output_call): Support indirect calls in xBPF.
2892 2020-09-03 Martin Jambor <mjambor@suse.cz>
2894 PR tree-optimization/96820
2895 * tree-sra.c (create_access): Disqualify candidates with accesses
2896 beyond the end of the original aggregate.
2897 (maybe_add_sra_candidate): Check that candidate type size fits
2898 signed uhwi for the sake of consistency.
2900 2020-09-03 Will Schmidt <will_schmidt@vnet.ibm.com>
2902 * config/rs6000/rs6000-call.c (rs6000_init_builtin): Update V2DI_type_node
2903 and unsigned_V2DI_type_node definitions.
2905 2020-09-03 Jakub Jelinek <jakub@redhat.com>
2908 * tree.h (struct decl_tree_traits): New type.
2909 (decl_tree_map): New typedef.
2911 2020-09-03 Jakub Jelinek <jakub@redhat.com>
2914 * gimple.h (gimple_location_ptr, gimple_phi_arg_location_ptr): New
2916 * streamer-hooks.h (struct streamer_hooks): Add
2917 output_location_and_block callback. Fix up formatting for
2919 (stream_output_location_and_block): Define.
2920 * lto-streamer.h (class lto_location_cache): Fix comment typo. Add
2921 current_block member.
2922 (lto_location_cache::input_location_and_block): New method.
2923 (lto_location_cache::lto_location_cache): Initialize current_block.
2924 (lto_location_cache::cached_location): Add block member.
2925 (struct output_block): Add current_block member.
2926 (lto_output_location): Formatting fix.
2927 (lto_output_location_and_block): Declare.
2928 * lto-streamer.c (lto_streamer_hooks_init): Initialize
2929 streamer_hooks.output_location_and_block.
2930 * lto-streamer-in.c (lto_location_cache::cmp_loc): Also compare
2932 (lto_location_cache::apply_location_cache): Handle blocks.
2933 (lto_location_cache::accept_location_cache,
2934 lto_location_cache::revert_location_cache): Fix up function comments.
2935 (lto_location_cache::input_location_and_block): New method.
2936 (lto_location_cache::input_location): Implement using
2937 input_location_and_block.
2938 (input_function): Invoke apply_location_cache after streaming in all
2940 * lto-streamer-out.c (clear_line_info): Set current_block.
2941 (lto_output_location_1): New function, moved from lto_output_location,
2942 added block handling.
2943 (lto_output_location): Implement using lto_output_location_1.
2944 (lto_output_location_and_block): New function.
2945 * gimple-streamer-in.c (input_phi): Use input_location_and_block
2946 to input and cache both location and block.
2947 (input_gimple_stmt): Likewise.
2948 * gimple-streamer-out.c (output_phi): Use
2949 stream_output_location_and_block.
2950 (output_gimple_stmt): Likewise.
2952 2020-09-03 Richard Biener <rguenther@suse.de>
2954 * tree-vect-generic.c (tree_vec_extract): Remove odd
2955 special-casing of boolean vectors.
2956 * fold-const.c (fold_ternary_loc): Handle boolean vector
2957 type BIT_FIELD_REFs.
2959 2020-09-03 Hongtao Liu <hongtao.liu@intel.com>
2962 * config/i386/i386-features.c
2963 (replace_constant_pool_with_broadcast): New function.
2964 (constant_pool_broadcast): Ditto.
2965 (class pass_constant_pool_broadcast): New pass.
2966 (make_pass_constant_pool_broadcast): Ditto.
2967 (remove_partial_avx_dependency): Call
2968 replace_constant_pool_with_broadcast under TARGET_AVX512F, it
2969 would save compile time when both pass rpad and cpb are
2971 (remove_partial_avx_dependency_gate): New function.
2972 (class pass_remove_partial_avx_dependency::gate): Call
2973 remove_partial_avx_dependency_gate.
2974 * config/i386/i386-passes.def: Insert new pass after combine.
2975 * config/i386/i386-protos.h
2976 (make_pass_constant_pool_broadcast): Declare.
2977 * config/i386/sse.md (*avx512dq_mul<mode>3<mask_name>_bcst):
2979 (*avx512f_mul<mode>3<mask_name>_bcst): Ditto.
2980 * config/i386/avx512fintrin.h (_mm512_set1_ps,
2981 _mm512_set1_pd,_mm512_set1_epi32, _mm512_set1_epi64): Adjusted.
2983 2020-09-02 Jonathan Wakely <jwakely@redhat.com>
2986 * ginclude/stdbool.h (bool, false, true): Never define for C++.
2988 2020-09-02 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2990 * doc/invoke.texi (MSP430 options): Fix -mlarge description to
2991 indicate size_t is a 20-bit type.
2993 2020-09-02 Roger Sayle <roger@nextmovesoftware.com>
2995 * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
2996 Provide accurate costs for shifts of integer constants.
2998 2020-09-02 Jose E. Marchesi <jose.marchesi@oracle.com>
3000 * config/bpf/bpf.c (bpf_asm_named_section): Delete.
3001 (TARGET_ASM_NAMED_SECTION): Likewise.
3003 2020-09-02 Jose E. Marchesi <jemarch@gnu.org>
3005 * config.gcc: Use elfos.h in bpf-*-* targets.
3006 * config/bpf/bpf.h (MAX_OFILE_ALIGNMENT): Remove definition.
3007 (COMMON_ASM_OP): Likewise.
3008 (INIT_SECTION_ASM_OP): Likewise.
3009 (FINI_SECTION_ASM_OP): Likewise.
3010 (ASM_OUTPUT_SKIP): Likewise.
3011 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3012 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3014 2020-09-01 Martin Sebor <msebor@redhat.com>
3016 * builtins.c (compute_objsize): Only replace the upper bound
3017 of a POINTER_PLUS offset when it's less than the lower bound.
3019 2020-09-01 Peter Bergner <bergner@linux.ibm.com>
3022 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Do not
3023 reuse accumulator memory reference for source and destination accesses.
3025 2020-09-01 Martin Liska <mliska@suse.cz>
3027 * cfgrtl.c (rtl_create_basic_block): Use default value for
3028 growth vector function.
3029 * gimple.c (gimple_set_bb): Likewise.
3030 * symbol-summary.h: Likewise.
3031 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3032 (build_gimple_cfg): Likewise.
3033 (create_bb): Likewise.
3034 (move_block_to_fn): Likewise.
3036 2020-09-01 Martin Liska <mliska@suse.cz>
3038 * vec.h (vec_safe_grow): Change default of exact to false.
3039 (vec_safe_grow_cleared): Likewise.
3041 2020-09-01 Roger Sayle <roger@nextmovesoftware.com>
3044 * targhooks.c (default_vector_alignment): Return at least the
3045 GET_MODE_ALIGNMENT for the type's mode.
3047 2020-09-01 Richard Biener <rguenther@suse.de>
3049 PR rtl-optimization/96812
3050 * tree-ssa-address.c (copy_ref_info): Also copy dependence info.
3051 * cfgrtl.h (duplicate_insn_chain): Adjust prototype.
3052 * cfgrtl.c (duplicate_insn_chain): Remap dependence info
3054 (cfg_layout_duplicate_bb): Make sure we remap dependence info.
3055 * modulo-sched.c (duplicate_insns_of_cycles): Remap dependence
3057 (generate_prolog_epilog): Adjust.
3058 * config/c6x/c6x.c (hwloop_optimize): Remap dependence info.
3060 2020-09-01 Kewen Lin <linkw@gcc.gnu.org>
3062 * doc/sourcebuild.texi (has_arch_pwr5, has_arch_pwr6, has_arch_pwr7,
3063 has_arch_pwr8, has_arch_pwr9): Document.
3065 2020-08-31 Carl Love <cel@us.ibm.com>
3068 * config/rs6000/altivec.h (vec_popcntb, vec_popcnth, vec_popcntw,
3069 vec_popcntd): Remove defines.
3071 2020-08-31 Marek Polacek <polacek@redhat.com>
3072 Jason Merrill <jason@redhat.com>
3075 * tree.c (build_constructor_from_vec): New.
3076 * tree.h (build_constructor_from_vec): Declare.
3078 2020-08-31 Aldy Hernandez <aldyh@redhat.com>
3080 PR tree-optimization/96818
3081 * tree-vrp.c (find_case_label_range): Cast label range to
3082 type of switch operand.
3084 2020-08-31 liuhongt <hongtao.liu@intel.com>
3087 * config/i386/sse.md (vec_unpacku_float_hi_v16si): For vector
3088 compare to integer mask, don't use gen_rtx_LT, use
3089 ix86_expand_mask_vec_cmp instead.
3090 (vec_unpacku_float_hi_v16si): Ditto.
3092 2020-08-31 Jakub Jelinek <jakub@redhat.com>
3094 * tree-cfg.c (verify_gimple_switch): If the first non-default case
3095 label has CASE_HIGH, verify it has the same type as CASE_LOW.
3097 2020-08-31 Feng Xue <fxue@os.amperecomputing.com>
3100 * ipa-cp.c (decide_about_value): Use safe_add to avoid cost addition
3103 2020-08-31 Jakub Jelinek <jakub@redhat.com>
3106 * varasm.c: Include alloc-pool.h.
3107 (output_constant_pool_contents): Emit desc->mark < 0 entries as
3109 (struct constant_descriptor_rtx_data): New type.
3110 (constant_descriptor_rtx_data_cmp): New function.
3111 (struct const_rtx_data_hasher): New type.
3112 (const_rtx_data_hasher::hash, const_rtx_data_hasher::equal): New
3114 (optimize_constant_pool): New function.
3115 (output_shared_constant_pool): Call it if TARGET_SUPPORTS_ALIASES.
3117 2020-08-31 Kewen Lin <linkw@gcc.gnu.org>
3119 * doc/sourcebuild.texi (vect_len_load_store,
3120 vect_partial_vectors_usage_1, vect_partial_vectors_usage_2,
3121 vect_partial_vectors): Document.
3123 2020-08-30 Martin Sebor <msebor@redhat.com>
3125 * builtins.c (access_ref::access_ref): Call get_size_range instead
3128 2020-08-30 Jakub Jelinek <jakub@redhat.com>
3130 * config/i386/sse.md (ssse3_pshufbv8qi): Use gen_int_mode instead of
3131 GEN_INT, and ix86_build_const_vector instead of gen_rtvec and
3132 gen_rtx_CONT_VECTOR.
3134 2020-08-29 Bill Schmidt <wschmidt@linux.ibm.com>
3136 * config/rs6000/rs6000-builtin.def (MASK_FOR_STORE): Remove.
3137 * config/rs6000/rs6000-call.c (rs6000_expand_builtin): Remove
3138 all logic for ALTIVEC_BUILTIN_MASK_FOR_STORE.
3140 2020-08-28 Martin Sebor <msebor@redhat.com>
3142 * attribs.c (init_attr_rdwr_indices): Use global access_mode.
3143 * attribs.h (struct attr_access): Same.
3144 * builtins.c (fold_builtin_strlen): Add argument.
3145 (compute_objsize): Declare.
3146 (get_range): Declare.
3147 (check_read_access): New function.
3148 (access_ref::access_ref): Define ctor.
3149 (warn_string_no_nul): Add arguments. Handle -Wstrintop-overread.
3150 (check_nul_terminated_array): Handle source strings of different
3152 (expand_builtin_strlen): Remove warning code, call check_read_access
3153 instead. Declare locals closer to their initialization.
3154 (expand_builtin_strnlen): Same.
3155 (maybe_warn_for_bound): New function.
3156 (warn_for_access): Remove argument. Handle -Wstrintop-overread.
3157 (inform_access): Change argument type.
3158 (get_size_range): New function.
3159 (check_access): Remove unused arguments. Add new arguments. Handle
3160 -Wstrintop-overread. Move warning code to helpers and call them.
3161 Call check_nul_terminated_array.
3162 (check_memop_access): Remove unnecessary and provide additional
3164 (expand_builtin_memchr): Call check_read_access.
3165 (expand_builtin_strcat): Remove unnecessary and provide additional
3167 (expand_builtin_strcpy): Same.
3168 (expand_builtin_strcpy_args): Same. Avoid testing no-warning bit.
3169 (expand_builtin_stpcpy_1): Remove unnecessary and provide additional
3171 (expand_builtin_stpncpy): Same.
3172 (check_strncat_sizes): Same.
3173 (expand_builtin_strncat): Remove unnecessary and provide additional
3174 arguments in calls. Adjust comments.
3175 (expand_builtin_strncpy): Remove unnecessary and provide additional
3177 (expand_builtin_memcmp): Remove warning code. Call check_access.
3178 (expand_builtin_strcmp): Call check_access instead of
3179 check_nul_terminated_array.
3180 (expand_builtin_strncmp): Handle -Wstrintop-overread.
3181 (expand_builtin_fork_or_exec): Call check_access instead of
3182 check_nul_terminated_array.
3183 (expand_builtin): Same.
3184 (fold_builtin_1): Pass additional argument.
3185 (fold_builtin_n): Same.
3186 (fold_builtin_strpbrk): Remove calls to check_nul_terminated_array.
3187 (expand_builtin_memory_chk): Add comments.
3188 (maybe_emit_chk_warning): Remove unnecessary and provide additional
3190 (maybe_emit_sprintf_chk_warning): Same. Adjust comments.
3191 * builtins.h (warn_string_no_nul): Add arguments.
3192 (struct access_ref): Add member and ctor argument.
3193 (struct access_data): Add members and ctor.
3194 (check_access): Adjust signature.
3195 * calls.c (maybe_warn_nonstring_arg): Return an indication of
3196 whether a warning was issued. Issue -Wstrintop-overread instead
3197 of -Wstringop-overflow.
3198 (append_attrname): Adjust to naming changes.
3199 (maybe_warn_rdwr_sizes): Same. Remove unnecessary and provide
3200 additional arguments in calls.
3201 * calls.h (maybe_warn_nonstring_arg): Return bool.
3202 * doc/invoke.texi (-Wstringop-overread): Document new option.
3203 * gimple-fold.c (gimple_fold_builtin_strcpy): Provide an additional
3205 (gimple_fold_builtin_stpcpy): Same.
3206 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Adjust to naming
3208 * tree.h (enum access_mode): New type.
3210 2020-08-28 Bill Schmidt <wschmidt@linux.ibm.com>
3212 * config/rs6000/rs6000.c (rs6000_call_aix): Remove test for r12.
3213 (rs6000_sibcall_aix): Likewise.
3215 2020-08-28 Andrew Stubbs <ams@codesourcery.com>
3217 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Add "true"
3218 parameter to vec_safe_grow_cleared.
3220 2020-08-28 Martin Sebor <msebor@redhat.com>
3222 * ggc-common.c (gt_pch_save): Add argument to a call.
3224 2020-08-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
3227 * config/aarch64/aarch64-sve.md
3228 (cond_sub<mode>_relaxed_const): Updated and renamed from
3229 cond_sub<mode>_any_const pattern.
3230 (cond_sub<mode>_strict_const): New pattern.
3232 2020-08-28 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
3234 * doc/rtl.texi: Fix typo.
3236 2020-08-28 Uros Bizjak <ubizjak@gmail.com>
3239 * config/i386/i386-expand.c (split_double_mode): Also handle
3240 E_P2HImode and E_P2QImode.
3241 * config/i386/sse.md (MASK_DWI): New define_mode_iterator.
3242 (mov<mode>): New expander for P2HI,P2QI.
3243 (*mov<mode>_internal): New define_insn_and_split to split
3244 movement of P2QI/P2HI to 2 movqi/movhi patterns after reload.
3246 2020-08-28 liuhongt <hongtao.liu@intel.com>
3248 * common/config/i386/i386-common.c (ix86_handle_option): Set
3249 AVX512DQ when AVX512VP2INTERSECT exists.
3251 2020-08-27 Jakub Jelinek <jakub@redhat.com>
3254 * config/i386/i386.c (iamcu_alignment): Don't decrease alignment
3255 for TYPE_ATOMIC types.
3256 (ix86_local_alignment): Likewise.
3257 (ix86_minimum_alignment): Likewise.
3258 (x86_field_alignment): Likewise, and emit a -Wpsabi diagnostic
3261 2020-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
3264 * config/rs6000/rs6000.c (rs6000_sibcall_aix): Support
3265 indirect call for ELFv2.
3267 2020-08-27 Richard Biener <rguenther@suse.de>
3269 PR tree-optimization/96522
3270 * tree-ssa-address.c (copy_ref_info): Reset flow-sensitive
3271 info of the copied points-to. Transfer bigger alignment
3272 via the access type.
3273 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
3274 Reset all flow-sensitive info.
3276 2020-08-27 Martin Liska <mliska@suse.cz>
3278 * alias.c (init_alias_analysis): Set exact argument of a vector
3279 growth function to true.
3280 * calls.c (internal_arg_pointer_based_exp_scan): Likewise.
3281 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
3282 * cfgexpand.c (expand_asm_stmt): Likewise.
3283 * cfgrtl.c (rtl_create_basic_block): Likewise.
3284 * combine.c (combine_split_insns): Likewise.
3285 (combine_instructions): Likewise.
3286 * config/aarch64/aarch64-sve-builtins.cc (function_expander::add_output_operand): Likewise.
3287 (function_expander::add_input_operand): Likewise.
3288 (function_expander::add_integer_operand): Likewise.
3289 (function_expander::add_address_operand): Likewise.
3290 (function_expander::add_fixed_operand): Likewise.
3291 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
3292 * dwarf2cfi.c (update_row_reg_save): Likewise.
3293 * early-remat.c (early_remat::init_block_info): Likewise.
3294 (early_remat::finalize_candidate_indices): Likewise.
3295 * except.c (sjlj_build_landing_pads): Likewise.
3296 * final.c (compute_alignments): Likewise.
3297 (grow_label_align): Likewise.
3298 * function.c (temp_slots_at_level): Likewise.
3299 * fwprop.c (build_single_def_use_links): Likewise.
3300 (update_uses): Likewise.
3301 * gcc.c (insert_wrapper): Likewise.
3302 * genautomata.c (create_state_ainsn_table): Likewise.
3303 (add_vect): Likewise.
3304 (output_dead_lock_vect): Likewise.
3305 * genmatch.c (capture_info::capture_info): Likewise.
3306 (parser::finish_match_operand): Likewise.
3307 * genrecog.c (optimize_subroutine_group): Likewise.
3308 (merge_pattern_info::merge_pattern_info): Likewise.
3309 (merge_into_decision): Likewise.
3310 (print_subroutine_start): Likewise.
3312 * gimple-loop-versioning.cc (loop_versioning::loop_versioning): Likewise.
3313 * gimple.c (gimple_set_bb): Likewise.
3314 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user): Likewise.
3315 * haifa-sched.c (sched_extend_luids): Likewise.
3316 (extend_h_i_d): Likewise.
3317 * insn-addr.h (insn_addresses_new): Likewise.
3318 * ipa-cp.c (gather_context_independent_values): Likewise.
3319 (find_more_contexts_for_caller_subset): Likewise.
3320 * ipa-devirt.c (final_warning_record::grow_type_warnings): Likewise.
3321 (ipa_odr_read_section): Likewise.
3322 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
3323 (ipa_fn_summary_t::duplicate): Likewise.
3324 (analyze_function_body): Likewise.
3325 (ipa_merge_fn_summary_after_inlining): Likewise.
3326 (read_ipa_call_summary): Likewise.
3327 * ipa-icf.c (sem_function::bb_dict_test): Likewise.
3328 * ipa-prop.c (ipa_alloc_node_params): Likewise.
3329 (parm_bb_aa_status_for_bb): Likewise.
3330 (ipa_compute_jump_functions_for_edge): Likewise.
3331 (ipa_analyze_node): Likewise.
3332 (update_jump_functions_after_inlining): Likewise.
3333 (ipa_read_edge_info): Likewise.
3334 (read_ipcp_transformation_info): Likewise.
3335 (ipcp_transform_function): Likewise.
3336 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
3337 * ipa-split.c (execute_split_functions): Likewise.
3338 * ira.c (find_moveable_pseudos): Likewise.
3339 * lower-subreg.c (decompose_multiword_subregs): Likewise.
3340 * lto-streamer-in.c (input_eh_regions): Likewise.
3341 (input_cfg): Likewise.
3342 (input_struct_function_base): Likewise.
3343 (input_function): Likewise.
3344 * modulo-sched.c (set_node_sched_params): Likewise.
3345 (extend_node_sched_params): Likewise.
3346 (schedule_reg_moves): Likewise.
3347 * omp-general.c (omp_construct_simd_compare): Likewise.
3348 * passes.c (pass_manager::create_pass_tab): Likewise.
3349 (enable_disable_pass): Likewise.
3350 * predict.c (determine_unlikely_bbs): Likewise.
3351 * profile.c (compute_branch_probabilities): Likewise.
3352 * read-rtl-function.c (function_reader::parse_block): Likewise.
3353 * read-rtl.c (rtx_reader::read_rtx_code): Likewise.
3354 * reg-stack.c (stack_regs_mentioned): Likewise.
3355 * regrename.c (regrename_init): Likewise.
3356 * rtlanal.c (T>::add_single_to_queue): Likewise.
3357 * sched-deps.c (init_deps_data_vector): Likewise.
3358 * sel-sched-ir.c (sel_extend_global_bb_info): Likewise.
3359 (extend_region_bb_info): Likewise.
3360 (extend_insn_data): Likewise.
3361 * symtab.c (symtab_node::create_reference): Likewise.
3362 * tracer.c (tail_duplicate): Likewise.
3363 * trans-mem.c (tm_region_init): Likewise.
3364 (get_bb_regions_instrumented): Likewise.
3365 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3366 (build_gimple_cfg): Likewise.
3367 (create_bb): Likewise.
3368 (move_block_to_fn): Likewise.
3369 * tree-complex.c (tree_lower_complex): Likewise.
3370 * tree-if-conv.c (predicate_rhs_code): Likewise.
3371 * tree-inline.c (copy_bb): Likewise.
3372 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
3373 (mark_phi_for_rewrite): Likewise.
3374 * tree-object-size.c (compute_builtin_object_size): Likewise.
3375 (init_object_sizes): Likewise.
3376 * tree-predcom.c (initialize_root_vars_store_elim_1): Likewise.
3377 (initialize_root_vars_store_elim_2): Likewise.
3378 (prepare_initializers_chain_store_elim): Likewise.
3379 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
3380 (multiplier_allowed_in_address_p): Likewise.
3381 * tree-ssa-coalesce.c (ssa_conflicts_new): Likewise.
3382 * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
3383 * tree-ssa-loop-ivopts.c (addr_offset_valid_p): Likewise.
3384 (get_address_cost_ainc): Likewise.
3385 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Likewise.
3386 * tree-ssa-pre.c (add_to_value): Likewise.
3387 (phi_translate_1): Likewise.
3388 (do_pre_regular_insertion): Likewise.
3389 (do_pre_partial_partial_insertion): Likewise.
3390 (init_pre): Likewise.
3391 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
3392 (update_call_from_tree): Likewise.
3393 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Likewise.
3394 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
3395 (vn_reference_lookup_pieces): Likewise.
3396 (eliminate_dom_walker::eliminate_push_avail): Likewise.
3397 * tree-ssa-strlen.c (set_strinfo): Likewise.
3398 (get_stridx_plus_constant): Likewise.
3399 (zero_length_string): Likewise.
3400 (find_equal_ptrs): Likewise.
3401 (printf_strlen_execute): Likewise.
3402 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
3403 * tree-ssanames.c (make_ssa_name_fn): Likewise.
3404 * tree-streamer-in.c (streamer_read_tree_bitfields): Likewise.
3405 * tree-vect-loop.c (vect_record_loop_mask): Likewise.
3406 (vect_get_loop_mask): Likewise.
3407 (vect_record_loop_len): Likewise.
3408 (vect_get_loop_len): Likewise.
3409 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
3410 * tree-vect-slp.c (vect_slp_convert_to_external): Likewise.
3411 (vect_bb_slp_scalar_cost): Likewise.
3412 (vect_bb_vectorization_profitable_p): Likewise.
3413 (vectorizable_slp_permutation): Likewise.
3414 * tree-vect-stmts.c (vectorizable_call): Likewise.
3415 (vectorizable_simd_clone_call): Likewise.
3416 (scan_store_can_perm_p): Likewise.
3417 (vectorizable_store): Likewise.
3419 * vec.c (test_safe_grow_cleared): Likewise.
3420 * vec.h (vec_safe_grow): Likewise.
3421 (vec_safe_grow_cleared): Likewise.
3422 (vl_ptr>::safe_grow): Likewise.
3423 (vl_ptr>::safe_grow_cleared): Likewise.
3424 * config/c6x/c6x.c (insn_set_clock): Likewise.
3426 2020-08-27 Richard Biener <rguenther@suse.de>
3428 * tree-pretty-print.c (dump_mem_ref): Handle TARGET_MEM_REFs.
3429 (dump_generic_node): Use dump_mem_ref also for TARGET_MEM_REF.
3431 2020-08-27 Alex Coplan <alex.coplan@arm.com>
3433 * lra-constraints.c (canonicalize_reload_addr): New.
3434 (curr_insn_transform): Use canonicalize_reload_addr to ensure we
3435 generate canonical RTL for an address reload.
3437 2020-08-27 Zhiheng Xie <xiezhiheng@huawei.com>
3439 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
3440 for rounding intrinsics.
3442 2020-08-27 Zhiheng Xie <xiezhiheng@huawei.com>
3444 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
3445 for min/max intrinsics.
3447 2020-08-27 Richard Biener <rguenther@suse.de>
3449 PR tree-optimization/96579
3450 * tree-ssa-reassoc.c (linearize_expr_tree): If we expand
3451 rhs via special ops make sure to swap operands.
3453 2020-08-27 Richard Biener <rguenther@suse.de>
3455 PR tree-optimization/96565
3456 * tree-ssa-dse.c (dse_classify_store): Remove defs with
3457 no uses from further processing.
3459 2020-08-26 Göran Uddeborg <goeran@uddeborg.se>
3461 PR gcov-profile/96285
3462 * common.opt, doc/invoke.texi: Clarify wording of
3463 -fprofile-exclude-files and adjust -fprofile-filter-files to
3466 2020-08-26 H.J. Lu <hjl.tools@gmail.com>
3469 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
3470 Reject target("no-general-regs-only").
3472 2020-08-26 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3474 * config/msp430/constraints.md (K): Change unused constraint to
3475 constraint to a const_int between 1 and 19.
3476 (P): New constraint.
3477 * config/msp430/msp430-protos.h (msp430x_logical_shift_right): Remove.
3478 (msp430_expand_shift): New.
3479 (msp430_output_asm_shift_insns): New.
3480 * config/msp430/msp430.c (msp430_rtx_costs): Remove shift costs.
3482 (msp430_expand_helper): Remove hard-coded generation of some inline
3484 (use_helper_for_const_shift): New.
3485 (msp430_expand_shift): New.
3486 (msp430_output_asm_shift_insns): New.
3487 (msp430_print_operand): Add new 'W' operand selector.
3488 (msp430x_logical_shift_right): Remove.
3489 * config/msp430/msp430.md (HPSI): New define_mode_iterator.
3491 (any_shift): New define_code_iterator.
3492 (shift_insn): New define_code_attr.
3493 Adjust unnamed insn patterns searched for by combine.
3496 (430x_shift_left): Remove.
3503 (430x_arithmetic_shift_right): Remove.
3512 (430x_logical_shift_right): Remove.
3518 (<shift_insn><mode>3): New define_expand.
3519 (<shift_insn>hi3_430): New define_insn.
3520 (<shift_insn>si3_const): Likewise.
3521 (ashl<mode>3_430x): Likewise.
3522 (ashr<mode>3_430x): Likewise.
3523 (lshr<mode>3_430x): Likewise.
3524 (*bitbranch<mode>4_z): Replace renamed predicate msp430_bitpos with
3525 const_0_to_15_operand.
3526 * config/msp430/msp430.opt: New option -mmax-inline-shift=.
3527 * config/msp430/predicates.md (const_1_to_8_operand): New predicate.
3528 (const_0_to_15_operand): Rename msp430_bitpos predicate.
3529 (const_1_to_19_operand): New predicate.
3530 * doc/invoke.texi: Document -mmax-inline-shift=.
3532 2020-08-26 Aldy Hernandez <aldyh@redhat.com>
3534 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Abstract code out to...
3535 * tree-vrp.c (find_case_label_range): ...here. Rewrite for to use irange
3537 (simplify_stmt_for_jump_threading): Call find_case_label_range instead of
3538 duplicating the code in simplify_stmt_for_jump_threading.
3539 * tree-vrp.h (find_case_label_range): New prototype.
3541 2020-08-26 Richard Biener <rguenther@suse.de>
3543 PR tree-optimization/96698
3544 * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): New.
3545 (loop_vec_info::reduc_latch_slp_defs): Likewise.
3546 * tree-vect-stmts.c (vect_transform_stmt): Only record
3547 stmts to update PHI latches from, perform the update ...
3548 * tree-vect-loop.c (vect_transform_loop): ... here after
3549 vectorizing those PHIs.
3550 (info_for_reduction): Properly handle non-reduction PHIs.
3552 2020-08-26 Martin Liska <mliska@suse.cz>
3554 * cgraphunit.c (process_symver_attribute): Match only symver
3557 2020-08-26 Richard Biener <rguenther@suse.de>
3559 PR tree-optimization/96783
3560 * tree-vect-stmts.c (get_group_load_store_type): Use
3561 VMAT_ELEMENTWISE for negative strides when we cannot
3562 use VMAT_STRIDED_SLP.
3564 2020-08-26 Martin Liska <mliska@suse.cz>
3566 * doc/invoke.texi: Document how are pie and pic options merged.
3568 2020-08-26 Zhiheng Xie <xiezhiheng@huawei.com>
3570 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
3571 for add/sub arithmetic intrinsics.
3573 2020-08-26 Jakub Jelinek <jakub@redhat.com>
3576 * dwarf2out.c (dwarf2out_next_real_insn): Adjust function comment.
3577 (dwarf2out_var_location): Look for next_note only if next_real is
3578 non-NULL, in that case look for the first non-deleted
3579 NOTE_INSN_VAR_LOCATION between loc_note and next_real, if any.
3581 2020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
3583 * config/tilepro/gen-mul-tables.cc (main): Define IN_TARGET_CODE to 1
3586 2020-08-26 Martin Liska <mliska@suse.cz>
3588 * cgraphunit.c (process_symver_attribute): Allow multiple
3589 symver attributes for one symbol.
3590 * doc/extend.texi: Document the change.
3592 2020-08-25 H.J. Lu <hjl.tools@gmail.com>
3595 * config/i386/i386.h (CTZ_DEFINED_VALUE_AT_ZERO): Return 0/2.
3596 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
3598 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
3601 * config/pa/pa.c (hppa_rtx_costs_shadd_p): New helper function
3602 to check for coefficients supported by shNadd and shladd,l.
3603 (hppa_rtx_costs): Rewrite to avoid using estimates based upon
3604 FACTOR and enable recursing deeper into RTL expressions.
3606 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
3608 * config/pa/pa.md (ashldi3): Additionally, on !TARGET_64BIT
3609 generate a two instruction shd/zdep sequence when shifting
3610 registers by suitable constants.
3611 (shd_internal): New define_expand to provide gen_shd_internal.
3613 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
3615 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Rename
3616 __ARM_FEATURE_SVE_VECTOR_OPERATIONS to
3617 __ARM_FEATURE_SVE_VECTOR_OPERATORS.
3619 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
3621 * config/aarch64/aarch64-sve-builtins.cc (add_sve_type_attribute):
3622 Take the ACLE name of the type as a parameter and add it as fourth
3623 argument to the "SVE type" attribute.
3624 (register_builtin_types): Update call accordingly.
3625 (register_tuple_type): Likewise. Construct the name of the type
3626 earlier in order to do this.
3627 (get_arm_sve_vector_bits_attributes): New function.
3628 (handle_arm_sve_vector_bits_attribute): Report a more sensible
3629 error message if the attribute is applied to an SVE tuple type.
3630 Don't allow the attribute to be applied to an existing fixed-length
3631 SVE type. Mangle the new type as __SVE_VLS<type, vector-bits>.
3632 Add a dummy TYPE_DECL to the new type.
3634 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
3636 * config/aarch64/aarch64-sve-builtins.cc (DEF_SVE_TYPE): Add a
3637 leading "u" to each mangled name.
3639 2020-08-25 Richard Biener <rguenther@suse.de>
3641 PR tree-optimization/96548
3642 PR tree-optimization/96760
3643 * tree-ssa-loop-im.c (tree_ssa_lim): Recompute RPO after
3646 2020-08-25 Jakub Jelinek <jakub@redhat.com>
3648 PR tree-optimization/96722
3649 * gimple.c (infer_nonnull_range): Formatting fix.
3650 (infer_nonnull_range_by_dereference): Return false for clobber stmts.
3652 2020-08-25 Jakub Jelinek <jakub@redhat.com>
3654 PR tree-optimization/96758
3655 * tree-ssa-strlen.c (handle_builtin_string_cmp): If both cstlen1
3656 and cstlen2 are set, set cmpsiz to their minimum, otherwise use the
3657 one that is set. If bound is used and smaller than cmpsiz, set cmpsiz
3658 to bound. If both cstlen1 and cstlen2 are set, perform the optimization.
3660 2020-08-25 Martin Jambor <mjambor@suse.cz>
3662 PR tree-optimization/96730
3663 * tree-sra.c (create_access): Disqualify any aggregate with negative
3665 (build_ref_for_model): Add assert that offset is non-negative.
3667 2020-08-25 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
3669 * rtl.def: Fix typo in comment.
3671 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
3673 PR tree-optimization/21137
3674 * fold-const.c (fold_binary_loc) [NE_EXPR/EQ_EXPR]: Call
3675 STRIP_NOPS when checking whether to simplify ((x>>C1)&C2) != 0.
3677 2020-08-25 Andrew Pinski <apinski@marvell.com>
3680 * config/mips/mips.md (builtin_longjmp): Restore the frame
3681 pointer and stack pointer and gp.
3683 2020-08-25 Richard Biener <rguenther@suse.de>
3686 * dwarf2out.c (reference_to_unused): Make FUNCTION_DECL
3687 processing more consistent with respect to
3688 symtab->global_info_ready.
3689 (tree_add_const_value_attribute): Unconditionally call
3690 rtl_for_decl_init to do all mangling early but throw
3691 away the result if early_dwarf.
3693 2020-08-25 Hongtao Liu <hongtao.liu@intel.com>
3696 * config/i386/sse.md: Correct the mode of NOT operands to
3699 2020-08-25 Jakub Jelinek <jakub@redhat.com>
3701 PR tree-optimization/96715
3702 * match.pd (copysign(x,-x) -> -x): New simplification.
3704 2020-08-25 Jakub Jelinek <jakub@redhat.com>
3707 * fold-const.c (native_interpret_real): For MODE_COMPOSITE_P modes
3708 punt if the to be returned REAL_CST does not encode to the bitwise
3709 same representation.
3711 2020-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3713 * doc/install.texi (Configuration): Switch valgrind.com to https.
3715 2020-08-24 Christophe Lyon <christophe.lyon@linaro.org>
3719 * config/arm/thumb1.md: Disable set-constant splitter when
3721 (thumb1_movsi_insn): Fix -mpure-code
3724 2020-08-24 Martin Liska <mliska@suse.cz>
3726 * tree-vect-data-refs.c (dr_group_sort_cmp): Work on
3728 (vect_analyze_data_ref_accesses): Work on groups.
3729 (vect_find_stmt_data_reference): Add group_id argument and fill
3730 up dataref_groups vector.
3731 * tree-vect-loop.c (vect_get_datarefs_in_loop): Pass new
3733 (vect_analyze_loop_2): Likewise.
3734 * tree-vect-slp.c (vect_slp_analyze_bb_1): Pass argument.
3735 (vect_slp_bb_region): Likewise.
3736 (vect_slp_region): Likewise.
3737 (vect_slp_bb):Work on the entire BB.
3738 * tree-vectorizer.h (vect_analyze_data_ref_accesses): Add new
3740 (vect_find_stmt_data_reference): Likewise.
3742 2020-08-24 Martin Liska <mliska@suse.cz>
3744 PR tree-optimization/96597
3745 * tree-ssa-sccvn.c (vn_reference_lookup_call): Add missing
3746 initialization of ::punned.
3747 (vn_reference_insert): Use consistently false instead of 0.
3748 (vn_reference_insert_pieces): Likewise.
3750 2020-08-24 Hans-Peter Nilsson <hp@axis.com>
3753 * reorg.c (fill_slots_from_thread): Allow trial insns that clobber
3754 TARGET_FLAGS_REGNUM as delay-slot fillers.
3756 2020-08-23 H.J. Lu <hjl.tools@gmail.com>
3759 * config/i386/i386-options.c (IX86_ATTR_IX86_YES): New.
3760 (IX86_ATTR_IX86_NO): Likewise.
3761 (ix86_opt_type): Add ix86_opt_ix86_yes and ix86_opt_ix86_no.
3762 (ix86_valid_target_attribute_inner_p): Handle general-regs-only,
3763 ix86_opt_ix86_yes and ix86_opt_ix86_no.
3764 (ix86_option_override_internal): Check opts->x_ix86_target_flags
3765 instead of opts->x_ix86_target_flags.
3766 * doc/extend.texi: Document target("general-regs-only") function
3769 2020-08-21 Richard Sandiford <richard.sandiford@arm.com>
3771 * doc/extend.texi: Update links to Arm docs.
3772 * doc/invoke.texi: Likewise.
3774 2020-08-21 Hongtao Liu <hongtao.liu@intel.com>
3777 * config/i386/i386-expand.c
3778 (ix86_expand_vec_shift_qihi_constant): Refine.
3780 2020-08-21 Alex Coplan <alex.coplan@arm.com>
3783 * gcc.c (set_static_spec): New.
3784 (set_static_spec_owned): New.
3785 (set_static_spec_shared): New.
3786 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Use
3787 set_static_spec_owned() to take ownership of lto_wrapper_file
3788 such that it gets freed in driver::finalize.
3789 (driver::maybe_run_linker): Use set_static_spec_shared() to
3790 ensure that we don't try and free() the static string "ld",
3791 also ensuring that any previously-allocated string in
3792 linker_name_spec is freed. Likewise with argv0.
3793 (driver::finalize): Use set_static_spec_shared() when resetting
3794 specs that previously had allocated strings; remove if(0)
3795 around call to free().
3797 2020-08-21 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
3799 * emit-rtl.c (try_split): Call copy_frame_info_to_split_insn
3800 to split certain RTX_FRAME_RELATED_P insns.
3801 * recog.c (copy_frame_info_to_split_insn): New function.
3802 (peep2_attempt): Split copying of frame related info of
3803 RTX_FRAME_RELATED_P insns into above function and call it.
3804 * recog.h (copy_frame_info_to_split_insn): Declare it.
3806 2020-08-21 liuhongt <hongtao.liu@intel.com>
3809 * config/i386/i386.c (ix86_preferred_reload_class): Allow
3810 QImode data go into mask registers.
3811 * config/i386/i386.md: (*movhi_internal): Adjust constraints
3813 (*movqi_internal): Ditto.
3814 (*anddi_1): Support mask register operations
3815 (*and<mode>_1): Ditto.
3817 (*andn<mode>_1): Ditto.
3818 (*<code><mode>_1): Ditto.
3819 (*<code>qi_1): Ditto.
3820 (*one_cmpl<mode>2_1): Ditto.
3821 (*one_cmplsi2_1_zext): Ditto.
3822 (*one_cmplqi2_1): Ditto.
3823 (define_peephole2): Move constant 0/-1 directly into mask
3825 * config/i386/predicates.md (mask_reg_operand): New predicate.
3826 * config/i386/sse.md (define_split): Add post-reload splitters
3827 that would convert "generic" patterns to mask patterns.
3828 (*knotsi_1_zext): New define_insn.
3830 2020-08-21 liuhongt <hongtao.liu@intel.com>
3832 * config/i386/x86-tune-costs.h (skylake_cost): Adjust cost
3835 2020-08-21 liuhongt <hongtao.liu@intel.com>
3837 * config/i386/i386.c (inline_secondary_memory_needed):
3838 No memory is needed between mask regs and gpr.
3839 (ix86_hard_regno_mode_ok): Add condition TARGET_AVX512F for
3841 * config/i386/i386.h (enum reg_class): Add INT_MASK_REGS.
3842 (REG_CLASS_NAMES): Ditto.
3843 (REG_CLASS_CONTENTS): Ditto.
3844 * config/i386/i386.md: Exclude mask register in
3845 define_peephole2 which is avaiable only for gpr.
3847 2020-08-21 H.J. Lu <hjl.tools@gmail.com>
3850 * config/i386/i386.h (struct processor_costs): Add member
3851 mask_to_integer, integer_to_mask, mask_load[3], mask_store[3],
3853 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
3854 i386_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
3855 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
3856 bdver_cost, znver1_cost, znver2_cost, skylake_cost,
3857 btver1_cost, btver2_cost, pentium4_cost, nocona_cost,
3858 atom_cost, slm_cost, intel_cost, generic_cost, core_cost):
3859 Initialize mask_load[3], mask_store[3], mask_move,
3860 integer_to_mask, mask_to_integer for all target costs.
3861 * config/i386/i386.c (ix86_register_move_cost): Using cost
3862 model of mask registers.
3863 (inline_memory_move_cost): Ditto.
3864 (ix86_register_move_cost): Ditto.
3866 2020-08-20 Iain Buclaw <ibuclaw@gdcproject.org>
3868 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Don't include
3869 VxWorks header files if -fself-test is used.
3870 (STARTFILE_PREFIX_SPEC): Avoid using VSB_DIR if -fself-test is used.
3872 2020-08-20 Joe Ramsay <Joe.Ramsay@arm.com>
3875 * config/arm/mve.md (mve_vst1q_f<mode>): Require MVE memory operand for
3877 (mve_vst1q_<supf><mode>): Likewise.
3879 2020-08-19 2020-08-19 Carl Love <cel@us.ibm.com>
3881 * config/rs6000/rs6000-builtin.def (BU_P10V_0, BU_P10V_1,
3882 BU_P10V_2, BU_P10V_3): Rename BU_P10V_VSX_0, BU_P10V_VSX_1,
3883 BU_P10V_VSX_2, BU_P10V_VSX_3 respectively.
3884 (BU_P10V_4): Remove.
3885 (BU_P10V_AV_0, BU_P10V_AV_1, BU_P10V_AV_2, BU_P10V_AV_3, BU_P10V_AV_4):
3886 New definitions for Power 10 Altivec macros.
3887 (VSTRIBR, VSTRIHR, VSTRIBL, VSTRIHL, VSTRIBR_P, VSTRIHR_P,
3888 VSTRIBL_P, VSTRIHL_P, MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM,
3889 VEXPANDMB, VEXPANDMH, VEXPANDMW, VEXPANDMD, VEXPANDMQ, VEXTRACTMB,
3890 VEXTRACTMH, VEXTRACTMW, VEXTRACTMD, VEXTRACTMQ): Replace macro
3891 expansion BU_P10V_1 with BU_P10V_AV_1.
3892 (VCLRLB, VCLRRB, VCFUGED, VCLZDM, VCTZDM, VPDEPD, VPEXTD, VGNB,
3893 VCNTMBB, VCNTMBH, VCNTMBW, VCNTMBD): Replace macro expansion
3894 BU_P10V_2 with BU_P10V_AV_2.
3895 (VEXTRACTBL, VEXTRACTHL, VEXTRACTWL, VEXTRACTDL, VEXTRACTBR, VEXTRACTHR,
3896 VEXTRACTWR, VEXTRACTDR, VINSERTGPRBL, VINSERTGPRHL, VINSERTGPRWL,
3897 VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL, VINSERTGPRBR,
3898 VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR, VINSERTVPRHR,
3899 VINSERTVPRWR, VREPLACE_ELT_V4SI, VREPLACE_ELT_UV4SI, VREPLACE_ELT_V2DF,
3900 VREPLACE_ELT_V4SF, VREPLACE_ELT_V2DI, VREPLACE_ELT_UV2DI, VREPLACE_UN_V4SI,
3901 VREPLACE_UN_UV4SI, VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
3902 VREPLACE_UN_V2DF, VSLDB_V16QI, VSLDB_V8HI, VSLDB_V4SI, VSLDB_V2DI,
3903 VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI, VSRDB_V2DI): Replace macro expansion
3904 BU_P10V_3 with BU_P10V_AV_3.
3905 (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF, VXXSPLTID): Replace macro expansion
3906 BU_P10V_1 with BU_P10V_AV_1.
3907 (XXGENPCVM_V16QI, XXGENPCVM_V8HI, XXGENPCVM_V4SI, XXGENPCVM_V2DI):
3908 Replace macro expansion BU_P10V_2 with BU_P10V_VSX_2.
3909 (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF, VXXBLEND_V16QI, VXXBLEND_V8HI,
3910 VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): Replace macor
3911 expansion BU_P10V_3 with BU_P10V_VSX_3.
3912 (XXEVAL, VXXPERMX): Replace macro expansion BU_P10V_4 with BU_P10V_VSX_4.
3913 (XVCVBF16SP, XVCVSPBF16): Replace macro expansion BU_VSX_1 with
3914 BU_P10V_VSX_1. Also change MISC to CONST.
3915 * config/rs6000/rs6000-c.c: (P10_BUILTIN_VXXPERMX): Replace with
3916 P10V_BUILTIN_VXXPERMX.
3917 (P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRRB,
3918 P10_BUILTIN_VGNB, P10_BUILTIN_XXEVAL, P10_BUILTIN_VXXPERMX,
3919 P10_BUILTIN_VEXTRACTBL, P10_BUILTIN_VEXTRACTHL, P10_BUILTIN_VEXTRACTWL,
3920 P10_BUILTIN_VEXTRACTDL, P10_BUILTIN_VINSERTGPRHL,
3921 P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
3922 P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
3923 P10_BUILTIN_VEXTRACTBR, P10_BUILTIN_VEXTRACTHR,
3924 P10_BUILTIN_VEXTRACTWR, P10_BUILTIN_VEXTRACTDR,
3925 P10_BUILTIN_VINSERTGPRBR, P10_BUILTIN_VINSERTGPRHR,
3926 P10_BUILTIN_VINSERTGPRWR, P10_BUILTIN_VINSERTGPRDR,
3927 P10_BUILTIN_VINSERTVPRBR, P10_BUILTIN_VINSERTVPRHR,
3928 P10_BUILTIN_VINSERTVPRWR, P10_BUILTIN_VREPLACE_ELT_UV4SI,
3929 P10_BUILTIN_VREPLACE_ELT_V4SI, P10_BUILTIN_VREPLACE_ELT_UV2DI,
3930 P10_BUILTIN_VREPLACE_ELT_V2DI, P10_BUILTIN_VREPLACE_ELT_V2DF,
3931 P10_BUILTIN_VREPLACE_UN_UV4SI, P10_BUILTIN_VREPLACE_UN_V4SI,
3932 P10_BUILTIN_VREPLACE_UN_V4SF, P10_BUILTIN_VREPLACE_UN_UV2DI,
3933 P10_BUILTIN_VREPLACE_UN_V2DI, P10_BUILTIN_VREPLACE_UN_V2DF,
3934 P10_BUILTIN_VSLDB_V16QI, P10_BUILTIN_VSLDB_V16QI,
3935 P10_BUILTIN_VSLDB_V8HI, P10_BUILTIN_VSLDB_V4SI,
3936 P10_BUILTIN_VSLDB_V2DI, P10_BUILTIN_VXXSPLTIW_V4SI,
3937 P10_BUILTIN_VXXSPLTIW_V4SF, P10_BUILTIN_VXXSPLTID,
3938 P10_BUILTIN_VXXSPLTI32DX_V4SI, P10_BUILTIN_VXXSPLTI32DX_V4SF,
3939 P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
3940 P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI,
3941 P10_BUILTIN_VXXBLEND_V4SF, P10_BUILTIN_VXXBLEND_V2DF,
3942 P10_BUILTIN_VSRDB_V16QI, P10_BUILTIN_VSRDB_V8HI,
3943 P10_BUILTIN_VSRDB_V4SI, P10_BUILTIN_VSRDB_V2DI,
3944 P10_BUILTIN_VSTRIBL, P10_BUILTIN_VSTRIHL,
3945 P10_BUILTIN_VSTRIBL_P, P10_BUILTIN_VSTRIHL_P,
3946 P10_BUILTIN_VSTRIBR, P10_BUILTIN_VSTRIHR,
3947 P10_BUILTIN_VSTRIBR_P, P10_BUILTIN_VSTRIHR_P,
3948 P10_BUILTIN_MTVSRBM, P10_BUILTIN_MTVSRHM,
3949 P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
3950 P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB,
3951 P10_BUILTIN_VCNTMBH, P10_BUILTIN_VCNTMBW,
3952 P10_BUILTIN_VCNTMBD, P10_BUILTIN_VEXPANDMB,
3953 P10_BUILTIN_VEXPANDMH, P10_BUILTIN_VEXPANDMW,
3954 P10_BUILTIN_VEXPANDMD, P10_BUILTIN_VEXPANDMQ,
3955 P10_BUILTIN_VEXTRACTMB, P10_BUILTIN_VEXTRACTMH,
3956 P10_BUILTIN_VEXTRACTMW, P10_BUILTIN_VEXTRACTMD,
3957 P10_BUILTIN_VEXTRACTMQ, P10_BUILTIN_XVTLSBB_ZEROS,
3958 P10_BUILTIN_XVTLSBB_ONES): Replace with
3959 P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRRB,
3960 P10V_BUILTIN_VGNB, P10V_BUILTIN_XXEVAL, P10V_BUILTIN_VXXPERMX,
3961 P10V_BUILTIN_VEXTRACTBL, P10V_BUILTIN_VEXTRACTHL, P10V_BUILTIN_VEXTRACTWL,
3962 P10V_BUILTIN_VEXTRACTDL, P10V_BUILTIN_VINSERTGPRHL,
3963 P10V_BUILTIN_VINSERTGPRWL, P10V_BUILTIN_VINSERTGPRDL,
3964 P10V_BUILTIN_VINSERTVPRBL,P10V_BUILTIN_VINSERTVPRHL,
3965 P10V_BUILTIN_VEXTRACTBR, P10V_BUILTIN_VEXTRACTHR
3966 P10V_BUILTIN_VEXTRACTWR, P10V_BUILTIN_VEXTRACTDR,
3967 P10V_BUILTIN_VINSERTGPRBR, P10V_BUILTIN_VINSERTGPRHR,
3968 P10V_BUILTIN_VINSERTGPRWR, P10V_BUILTIN_VINSERTGPRDR,
3969 P10V_BUILTIN_VINSERTVPRBR, P10V_BUILTIN_VINSERTVPRHR,
3970 P10V_BUILTIN_VINSERTVPRWR, P10V_BUILTIN_VREPLACE_ELT_UV4SI,
3971 P10V_BUILTIN_VREPLACE_ELT_V4SI, P10V_BUILTIN_VREPLACE_ELT_UV2DI,
3972 P10V_BUILTIN_VREPLACE_ELT_V2DI, P10V_BUILTIN_VREPLACE_ELT_V2DF,
3973 P10V_BUILTIN_VREPLACE_UN_UV4SI, P10V_BUILTIN_VREPLACE_UN_V4SI,
3974 P10V_BUILTIN_VREPLACE_UN_V4SF, P10V_BUILTIN_VREPLACE_UN_UV2DI,
3975 P10V_BUILTIN_VREPLACE_UN_V2DI, P10V_BUILTIN_VREPLACE_UN_V2DF,
3976 P10V_BUILTIN_VSLDB_V16QI, P10V_BUILTIN_VSLDB_V16QI,
3977 P10V_BUILTIN_VSLDB_V8HI, P10V_BUILTIN_VSLDB_V4SI,
3978 P10V_BUILTIN_VSLDB_V2DI, P10V_BUILTIN_VXXSPLTIW_V4SI,
3979 P10V_BUILTIN_VXXSPLTIW_V4SF, P10V_BUILTIN_VXXSPLTID,
3980 P10V_BUILTIN_VXXSPLTI32DX_V4SI, P10V_BUILTIN_VXXSPLTI32DX_V4SF,
3981 P10V_BUILTIN_VXXBLEND_V16QI, P10V_BUILTIN_VXXBLEND_V8HI,
3982 P10V_BUILTIN_VXXBLEND_V4SI, P10V_BUILTIN_VXXBLEND_V2DI,
3983 P10V_BUILTIN_VXXBLEND_V4SF, P10V_BUILTIN_VXXBLEND_V2DF,
3984 P10V_BUILTIN_VSRDB_V16QI, P10V_BUILTIN_VSRDB_V8HI,
3985 P10V_BUILTIN_VSRDB_V4SI, P10V_BUILTIN_VSRDB_V2DI,
3986 P10V_BUILTIN_VSTRIBL, P10V_BUILTIN_VSTRIHL,
3987 P10V_BUILTIN_VSTRIBL_P, P10V_BUILTIN_VSTRIHL_P,
3988 P10V_BUILTIN_VSTRIBR, P10V_BUILTIN_VSTRIHR,
3989 P10V_BUILTIN_VSTRIBR_P, P10V_BUILTIN_VSTRIHR_P,
3990 P10V_BUILTIN_MTVSRBM, P10V_BUILTIN_MTVSRHM,
3991 P10V_BUILTIN_MTVSRWM, P10V_BUILTIN_MTVSRDM,
3992 P10V_BUILTIN_MTVSRQM, P10V_BUILTIN_VCNTMBB,
3993 P10V_BUILTIN_VCNTMBH, P10V_BUILTIN_VCNTMBW,
3994 P10V_BUILTIN_VCNTMBD, P10V_BUILTIN_VEXPANDMB,
3995 P10V_BUILTIN_VEXPANDMH, P10V_BUILTIN_VEXPANDMW,
3996 P10V_BUILTIN_VEXPANDMD, P10V_BUILTIN_VEXPANDMQ,
3997 P10V_BUILTIN_VEXTRACTMB, P10V_BUILTIN_VEXTRACTMH,
3998 P10V_BUILTIN_VEXTRACTMW, P10V_BUILTIN_VEXTRACTMD,
3999 P10V_BUILTIN_VEXTRACTMQ, P10V_BUILTIN_XVTLSBB_ZEROS,
4000 P10V_BUILTIN_XVTLSBB_ONES respectively.
4001 * config/rs6000/rs6000-call.c: Ditto above, change P10_BUILTIN_name to
4003 (P10_BUILTIN_XVCVSPBF16, P10_BUILTIN_XVCVBF16SP): Change to
4004 P10V_BUILTIN_XVCVSPBF16, P10V_BUILTIN_XVCVBF16SP respectively.
4006 2020-08-19 Bill Schmidt <wschmidt@linux.ibm.com>
4008 * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
4009 Sibcalls are always legal when the caller doesn't preserve r2.
4011 2020-08-19 Uroš Bizjak <ubizjak@gmail.com>
4013 * config/i386/i386-expand.c (ix86_expand_builtin)
4014 [case IX86_BUILTIN_ENQCMD, case IX86_BUILTIN_ENQCMDS]:
4015 Rewrite expansion to use code_for_enqcmd.
4016 [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]:
4017 Rewrite expansion to use code_for_wrss.
4018 [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
4019 Rewrite expansion to use code_for_wrss.
4021 2020-08-19 Feng Xue <fxue@os.amperecomputing.com>
4023 PR tree-optimization/94234
4024 * match.pd ((PTR_A + OFF) - (PTR_B + OFF)) -> (PTR_A - PTR_B): New
4027 2020-08-19 H.J. Lu <hjl.tools@gmail.com>
4029 * common/config/i386/cpuinfo.h (get_intel_cpu): Detect Rocket
4030 Lake and Alder Lake.
4032 2020-08-19 Peixin Qiao <qiaopeixin@huawei.com>
4034 * config/aarch64/aarch64.c (aarch64_init_cumulative_args): Remove
4035 "fndecl && TREE_PUBLIC (fndecl)" check since it prevents the funtion
4036 type check when calling via a function pointer or when calling a static
4039 2020-08-19 Kewen Lin <linkw@linux.ibm.com>
4041 * opts-global.c (decode_options): Call target_option_override_hook
4042 before it prints for --help=*.
4044 2020-08-18 Peter Bergner <bergner@linux.ibm.com>
4046 * config/rs6000/rs6000-builtin.def (BU_VSX_1): Rename xvcvbf16sp to
4048 * config/rs6000/rs6000-call.c (builtin_function_type): Likewise.
4049 * config/rs6000/vsx.md: Likewise.
4050 * doc/extend.texi: Likewise.
4052 2020-08-18 Aaron Sawdey <acsawdey@linux.ibm.com>
4054 * config/rs6000/rs6000-string.c (gen_lxvl_stxvl_move):
4056 (expand_block_move): Add lxvl/stxvl, vector pair, and
4058 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4059 Default value for -mblock-ops-vector-pair.
4060 * config/rs6000/rs6000.opt: Add -mblock-ops-vector-pair.
4062 2020-08-18 Aldy Hernandez <aldyh@redhat.com>
4064 * vr-values.c (check_for_binary_op_overflow): Change type of store
4066 (vr_values::adjust_range_with_scev): Abstract most of the code...
4067 (range_of_var_in_loop): ...here. Remove value_range_equiv uses.
4068 (simplify_using_ranges::simplify_using_ranges): Change type of store
4070 * vr-values.h (class range_query): New.
4071 (class simplify_using_ranges): Use range_query.
4072 (class vr_values): Add OVERRIDE to get_value_range.
4073 (range_of_var_in_loop): New.
4075 2020-08-18 Martin Sebor <msebor@redhat.com>
4079 * expr.c (convert_to_bytes): Replace statically allocated buffer with
4080 a dynamically allocated one of sufficient size.
4082 2020-08-18 Martin Sebor <msebor@redhat.com>
4084 PR tree-optimization/96670
4086 * gimple-fold.c (gimple_fold_builtin_memchr): Call byte_representation
4087 to get it, not string_constant.
4089 2020-08-18 Hu Jiangping <hujiangping@cn.fujitsu.com>
4091 * doc/gimple.texi (gimple_debug_begin_stmt_p): Add return type.
4092 (gimple_debug_inline_entry_p, gimple_debug_nonbind_marker_p): Likewise.
4094 2020-08-18 Martin Sebor <msebor@redhat.com>
4096 * fold-const.c (native_encode_expr): Update comment.
4098 2020-08-18 Uroš Bizjak <ubizjak@gmail.com>
4101 * config/i386/i386.md (restore_stack_nonlocal): Add missing compare
4102 RTX. Rewrite expander to use high-level functions in RTL construction.
4104 2020-08-18 liuhongt <hongtao.liu@intel.com>
4108 * config/i386/i386-expand.c (ix86_expand_pinsr): Don't use
4110 (ix86_expand_pextr): Don't use pextr for TImode.
4112 2020-08-17 Uroš Bizjak <ubizjak@gmail.com>
4114 * config/i386/i386-builtin.def (__builtin_ia32_bextri_u32)
4115 (__builtin_ia32_bextri_u64): Use CODE_FOR_nothing.
4116 * config/i386/i386.md (@tbm_bextri_<mode>):
4117 Implement as parametrized name pattern.
4118 (@rdrand<mode>): Ditto.
4119 (@rdseed<mode>): Ditto.
4120 * config/i386/i386-expand.c (ix86_expand_builtin)
4121 [case IX86_BUILTIN_BEXTRI32, case IX86_BUILTIN_BEXTRI64]:
4122 Update for parameterized name patterns.
4123 [case IX86_BUILTIN_RDRAND16_STEP, case IX86_BUILTIN_RDRAND32_STEP]
4124 [case IX86_BUILTIN_RDRAND64_STEP]: Ditto.
4125 [case IX86_BUILTIN_RDSEED16_STEP, case IX86_BUILTIN_RDSEED32_STEP]
4126 [case IX86_BUILTIN_RDSEED64_STEP]: Ditto.
4128 2020-08-17 Aldy Hernandez <aldyh@redhat.com>
4130 * vr-values.c (vr_values::get_value_range): Add stmt param.
4131 (vr_values::extract_range_from_comparison): Same.
4132 (vr_values::extract_range_from_assignment): Pass stmt to
4133 extract_range_from_comparison.
4134 (vr_values::adjust_range_with_scev): Pass stmt to get_value_range.
4135 (simplify_using_ranges::vrp_evaluate_conditional): Add stmt param.
4136 Pass stmt to get_value_range.
4137 (simplify_using_ranges::vrp_visit_cond_stmt): Pass stmt to
4139 (simplify_using_ranges::simplify_abs_using_ranges): Same.
4140 (simplify_using_ranges::simplify_div_or_mod_using_ranges): Same.
4141 (simplify_using_ranges::simplify_bit_ops_using_ranges): Same.
4142 (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
4143 (simplify_using_ranges::simplify_switch_using_ranges): Same.
4144 (simplify_using_ranges::simplify_float_conversion_using_ranges): Same.
4145 * vr-values.h (class vr_values): Add stmt arg to
4146 vrp_evaluate_conditional_warnv_with_ops.
4147 Add stmt arg to extract_range_from_comparison and get_value_range.
4148 (simplify_using_ranges::get_value_range): Add stmt arg.
4150 2020-08-17 liuhongt <hongtao.liu@intel.com>
4153 * config/i386/i386.c (ix86_legitimate_constant_p): Return
4154 false for ENDBR immediate.
4155 (ix86_legitimate_address_p): Ditto.
4156 * config/i386/predicates.md
4157 (x86_64_immediate_operand): Exclude ENDBR immediate.
4158 (x86_64_zext_immediate_operand): Ditto.
4159 (x86_64_dwzext_immediate_operand): Ditto.
4160 (ix86_endbr_immediate_operand): New predicate.
4162 2020-08-16 Roger Sayle <roger@nextmovesoftware.com>
4164 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
4165 Simplify (sign_extend:M (truncate:N (lshiftrt:M x C))) to
4166 (ashiftrt:M x C) when the shift sets the high bits appropriately.
4168 2020-08-14 Martin Sebor <msebor@redhat.com>
4171 * builtins.c (expand_builtin_memory_copy_args): Rename called function.
4172 (expand_builtin_stpcpy_1): Remove argument from call.
4173 (expand_builtin_memcmp): Rename called function.
4174 (inline_expand_builtin_bytecmp): Same.
4175 * expr.c (convert_to_bytes): New function.
4176 (constant_byte_string): New function (formerly string_constant).
4177 (string_constant): Call constant_byte_string.
4178 (byte_representation): New function.
4179 * expr.h (byte_representation): Declare.
4180 * fold-const-call.c (fold_const_call): Rename called function.
4181 * fold-const.c (c_getstr): Remove an argument.
4182 (getbyterep): Define a new function.
4183 * fold-const.h (c_getstr): Remove an argument.
4184 (getbyterep): Declare a new function.
4185 * gimple-fold.c (gimple_fold_builtin_memory_op): Rename callee.
4186 (gimple_fold_builtin_string_compare): Same.
4187 (gimple_fold_builtin_memchr): Same.
4189 2020-08-14 David Malcolm <dmalcolm@redhat.com>
4191 * doc/analyzer.texi (Overview): Add tip about how to get a
4192 gimple dump if the analyzer ICEs.
4194 2020-08-14 Uroš Bizjak <ubizjak@gmail.com>
4196 * config/i386/i386-builtin.def (__builtin_ia32_llwpcb)
4197 (__builtin_ia32_slwpcb, __builtin_ia32_lwpval32)
4198 (__builtin_ia32_lwpval64, __builtin_ia32_lwpins32)
4199 (__builtin_ia32_lwpins64): Use CODE_FOR_nothing.
4200 * config/i386/i386.md (@lwp_llwpcb<mode>):
4201 Implement as parametrized name pattern.
4202 (@lwp_slwpcb<mode>): Ditto.
4203 (@lwp_lwpval<mode>): Ditto.
4204 (@lwp_lwpins<mode>): Ditto.
4205 * config/i386/i386-expand.c (ix86_expand_special_args_builtin)
4206 [case VOID_FTYPE_UINT_UINT_UINT, case VOID_FTYPE_UINT64_UINT_UINT]
4207 [case UCHAR_FTYPE_UINT_UINT_UINT, case UCHAR_FTYPE_UINT64_UINT_UINT]:
4209 (ix86_expand_builtin)
4210 [ case IX86_BUILTIN_LLWPCB, case IX86_BUILTIN_LLWPCB]:
4211 Update for parameterized name patterns.
4212 [case IX86_BUILTIN_LWPVAL32, case IX86_BUILTIN_LWPVAL64]
4213 [case IX86_BUILTIN_LWPINS32, case IX86_BUILTIN_LWPINS64]: Expand here.
4215 2020-08-14 Lewis Hyatt <lhyatt@gmail.com>
4217 * common.opt: Add new option -fdiagnostics-plain-output.
4218 * doc/invoke.texi: Document it.
4219 * opts-common.c (decode_cmdline_options_to_array): Implement it.
4220 (decode_cmdline_option): Add missing const qualifier to argv.
4222 2020-08-14 Jakub Jelinek <jakub@redhat.com>
4223 Jonathan Wakely <jwakely@redhat.com>
4224 Jonathan Wakely <jwakely@redhat.com>
4226 * system.h: Include type_traits.
4227 * vec.h (vec<T, A, vl_embed>::embedded_size): Use offsetof and asserts
4228 on vec_stdlayout, which is conditionally a vec (for standard layout T)
4229 and otherwise vec_embedded.
4231 2020-08-14 Jojo R <jiejie_rong@c-sky.com>
4233 * config/csky/csky-elf.h (ASM_SPEC): Use mfloat-abi.
4234 * config/csky/csky-linux-elf.h (ASM_SPEC): mfloat-abi.
4236 2020-08-13 David Malcolm <dmalcolm@redhat.com>
4252 * Makefile.in (ANALYZER_OBJS): Add analyzer/region.o,
4253 analyzer/region-model-impl-calls.o,
4254 analyzer/region-model-manager.o,
4255 analyzer/region-model-reachability.o, analyzer/store.o, and
4257 * doc/analyzer.texi: Update for changes to analyzer
4259 * tristate.h (tristate::get_value): New accessor.
4261 2020-08-13 Uroš Bizjak <ubizjak@gmail.com>
4263 * config/i386/i386-builtin.def (CET_NORMAL): Merge to CET BDESC array.
4264 (__builtin_ia32_rddspd, __builtin_ia32_rddspq, __builtin_ia32_incsspd)
4265 (__builtin_ia32_incsspq, __builtin_ia32_wrssd, __builtin_ia32_wrssq)
4266 (__builtin_ia32_wrussd, __builtin_ia32_wrussq): Use CODE_FOR_nothing.
4267 * config/i386/i386-builtins.c: Remove handling of CET_NORMAL builtins.
4268 * config/i386/i386.md (@rdssp<mode>): Implement as parametrized
4269 name pattern. Use SWI48 mode iterator. Introduce input operand
4270 and remove explicit XOR zeroing from insn template.
4271 (@incssp<mode>): Implement as parametrized name pattern.
4272 Use SWI48 mode iterator.
4273 (@wrss<mode>): Ditto.
4274 (@wruss<mode>): Ditto.
4275 (rstorssp): Remove expander. Rename insn pattern from *rstorssp<mode>.
4276 Use DImode memory operand.
4277 (clrssbsy): Remove expander. Rename insn pattern from *clrssbsy<mode>.
4278 Use DImode memory operand.
4279 (save_stack_nonlocal): Update for parametrized name patterns.
4280 Use cleared register as an argument to gen_rddsp.
4281 (restore_stack_nonlocal): Update for parametrized name patterns.
4282 * config/i386/i386-expand.c (ix86_expand_builtin):
4283 [case IX86_BUILTIN_RDSSPD, case IX86_BUILTIN_RDSSPQ]: Expand here.
4284 [case IX86_BUILTIN_INCSSPD, case IX86_BUILTIN_INCSSPQ]: Ditto.
4285 [case IX86_BUILTIN_RSTORSSP, case IX86_BUILTIN_CLRSSBSY]:
4286 Generate DImode memory operand.
4287 [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]
4288 [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
4289 Update for parameterized name patterns.
4291 2020-08-13 Peter Bergner <bergner@linux.ibm.com>
4294 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode): Disallow
4295 MMA types as return values.
4296 (rs6000_function_arg): Disallow MMA types as function arguments.
4298 2020-08-13 Richard Sandiford <richard.sandiford@arm.com>
4301 2020-08-12 Peixin Qiao <qiaopeixin@huawei.com>
4303 * config/aarch64/aarch64.c (aarch64_function_value): Add if
4304 condition to check ag_mode after entering if condition of
4305 aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
4306 set as false by -mgeneral-regs-only, report the diagnostic
4307 information of -mgeneral-regs-only imcompatible with the use
4308 of fp/simd register(s).
4310 2020-08-13 Martin Liska <mliska@suse.cz>
4313 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Mask m_value
4316 2020-08-13 Jakub Jelinek <jakub@redhat.com>
4318 * gimplify.c (gimplify_omp_taskloop_expr): New function.
4319 (gimplify_omp_for): Use it. For OMP_FOR_NON_RECTANGULAR
4320 loops adjust in outer taskloop the var-outer decls.
4321 * omp-expand.c (expand_omp_taskloop_for_inner): Handle non-rectangular
4323 (expand_omp_for): Don't reject non-rectangular taskloop.
4324 * omp-general.c (omp_extract_for_data): Don't assert that
4325 non-rectangular loops have static schedule, instead treat loop->m1
4326 or loop->m2 as if loop->n1 or loop->n2 is non-constant.
4328 2020-08-13 Hongtao Liu <hongtao.liu@intel.com>
4331 * config/i386/sse.md (<avx512>_load<mode>_mask,
4332 <avx512>_load<mode>_mask): Extend to generate blendm
4334 (<avx512>_blendm<mode>, <avx512>_blendm<mode>): Change
4335 define_insn to define_expand.
4337 2020-08-12 Roger Sayle <roger@nextmovesoftware.com>
4338 Uroš Bizjak <ubizjak@gmail.com>
4341 * config/i386/i386.md (peephole2): Only reorder register clearing
4342 instructions to allow use of xor for general registers.
4344 2020-08-12 Martin Liska <mliska@suse.cz>
4347 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Drop value bits
4348 for bits that are unknown.
4349 (ipcp_bits_lattice::set_to_constant): Likewise.
4350 * tree-ssa-ccp.c (get_default_value): Add sanity check that
4351 IPA CP bit info has all bits set to zero in bits that
4354 2020-08-12 Peixin Qiao <qiaopeixin@huawei.com>
4356 * config/aarch64/aarch64.c (aarch64_function_value): Add if
4357 condition to check ag_mode after entering if condition of
4358 aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
4359 set as false by -mgeneral-regs-only, report the diagnostic
4360 information of -mgeneral-regs-only imcompatible with the use
4361 of fp/simd register(s).
4363 2020-08-12 Jakub Jelinek <jakub@redhat.com>
4365 PR tree-optimization/96535
4366 * toplev.c (process_options): Move flag_unroll_loops and
4367 flag_cunroll_grow_size handling from here to ...
4368 * opts.c (finish_options): ... here. For flag_cunroll_grow_size,
4369 don't check for AUTODETECT_VALUE, but instead check
4370 opts_set->x_flag_cunroll_grow_size.
4371 * common.opt (funroll-completely-grow-size): Default to 0.
4372 * config/rs6000/rs6000.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
4374 (rs6000_override_options_after_change): New function.
4375 (rs6000_option_override_internal): Call it. Move there the
4376 flag_cunroll_grow_size, unroll_only_small_loops and
4377 flag_rename_registers handling.
4379 2020-08-12 Tom de Vries <tdevries@suse.de>
4381 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Make elt_size an
4382 unsigned HOST_WIDE_INT. Print init_frag.remaining using
4383 HOST_WIDE_INT_PRINT_UNSIGNED.
4385 2020-08-12 Roger Sayle <roger@nextmovesoftware.com>
4386 Uroš Bizjak <ubizjak@gmail.com>
4388 * config/i386/i386.md (peephole2): Reduce unnecessary
4389 register shuffling produced by register allocation.
4391 2020-08-12 Aldy Hernandez <aldyh@redhat.com>
4393 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use vec<>
4394 instead of std::vector<>.
4395 (evaluate_properties_for_edge): Same.
4396 (ipa_fn_summary_t::duplicate): Same.
4397 (estimate_ipcp_clone_size_and_time): Same.
4398 * vec.h (<T, A, vl_embed>::embedded_size): Change vec_embedded
4399 type to contain a char[].
4401 2020-08-12 Andreas Krebbel <krebbel@linux.ibm.com>
4404 * config/s390/s390.c (s390_cannot_force_const_mem): Reject an
4405 unary minus for everything not being a numeric constant.
4406 (legitimize_tls_address): Move a NEG out of the CONST rtx.
4408 2020-08-12 Andreas Krebbel <krebbel@linux.ibm.com>
4411 * config/s390/s390.h (TARGET_NONSIGNALING_VECTOR_COMPARE_OK): New
4413 * config/s390/vector.md (vcond_comparison_operator): Use new macro
4416 2020-08-11 Jakub Jelinek <jakub@redhat.com>
4418 PR rtl-optimization/96539
4419 * expr.c (emit_block_move_hints): Don't copy anything if x and y
4420 are the same and neither is MEM_VOLATILE_P.
4422 2020-08-11 Jakub Jelinek <jakub@redhat.com>
4425 * tree.c (get_narrower): Use TREE_TYPE (ret) instead of
4426 TREE_TYPE (win) for COMPOUND_EXPRs.
4428 2020-08-11 Jan Hubicka <hubicka@ucw.cz>
4430 * predict.c (not_loop_guard_equal_edge_p): New function.
4431 (maybe_predict_edge): New function.
4432 (predict_paths_for_bb): Use it.
4433 (predict_paths_leading_to_edge): Use it.
4435 2020-08-11 Martin Liska <mliska@suse.cz>
4437 * dbgcnt.def (DEBUG_COUNTER): Add ipa_cp_bits.
4438 * ipa-cp.c (ipcp_store_bits_results): Use it when we store known
4439 bits for parameters.
4441 2020-08-10 Marek Polacek <polacek@redhat.com>
4443 * doc/sourcebuild.texi: Document dg-ice.
4445 2020-08-10 Roger Sayle <roger@nextmovesoftware.com>
4447 * config/i386/i386-expand.c (ix86_expand_int_movcc): Expand
4448 signed MIN_EXPR against zero as "x < 0 ? x : 0" instead of
4449 "x <= 0 ? x : 0" to enable sign_bit_compare_p optimizations.
4451 2020-08-10 Aldy Hernandez <aldyh@redhat.com>
4453 * value-range.h (gt_ggc_mx): Declare inline.
4456 2020-08-10 Marc Glisse <marc.glisse@inria.fr>
4458 PR tree-optimization/95433
4459 * match.pd (X * C1 == C2): Handle wrapping overflow.
4460 * expr.c (maybe_optimize_mod_cmp): Qualify call to mod_inv.
4462 * wide-int.cc (mod_inv): ... here.
4463 * wide-int.h (mod_inv): Declare it.
4465 2020-08-10 Jan Hubicka <hubicka@ucw.cz>
4467 * predict.c (filter_predictions): Document semantics of filter.
4468 (equal_edge_p): Rename to ...
4469 (not_equal_edge_p): ... this; reverse semantics.
4470 (remove_predictions_associated_with_edge): Fix.
4472 2020-08-10 Hongtao Liu <hongtao.liu@intel.com>
4475 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Refine for
4477 (ix86_expand_mask_vec_cmp): Change prototype.
4478 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): Change prototype.
4479 * config/i386/i386.c (ix86_print_operand): Remove operand
4481 * config/i386/sse.md
4482 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>): Deleted.
4483 (*<avx512>_cmp<mode>3<mask_scalar_merge_name>): Ditto.
4484 (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
4485 (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
4486 avx512f_maskcmp<mode>3): Ditto.
4488 2020-08-09 Roger Sayle <roger@nextmovesoftware.com>
4490 * expmed.c (init_expmed_one_conv): Restore all->reg's mode.
4491 (init_expmed_one_mode): Set all->reg to desired mode.
4493 2020-08-08 Peter Bergner <bergner@linux.ibm.com>
4496 * config/rs6000/rs6000.c (rs6000_invalid_conversion): Use canonical
4497 types for type comparisons. Refactor code to simplify it.
4499 2020-08-08 Jakub Jelinek <jakub@redhat.com>
4502 * tree-nested.c (convert_nonlocal_omp_clauses): For
4503 OMP_CLAUSE_REDUCTION, OMP_CLAUSE_LASTPRIVATE and OMP_CLAUSE_LINEAR
4504 save info->new_local_var_chain around walks of the clause gimple
4505 sequences and declare_vars if needed into the sequence.
4507 2020-08-08 Jakub Jelinek <jakub@redhat.com>
4509 PR tree-optimization/96424
4510 * omp-expand.c: Include tree-eh.h.
4511 (expand_omp_for_init_vars): Handle -fexceptions -fnon-call-exceptions
4512 by forcing floating point comparison into a bool temporary.
4514 2020-08-07 Marc Glisse <marc.glisse@inria.fr>
4516 * generic-match-head.c (optimize_vectors_before_lowering_p): New
4518 * gimple-match-head.c (optimize_vectors_before_lowering_p):
4520 * match.pd ((v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): Use it.
4522 2020-08-07 Richard Biener <rguenther@suse.de>
4524 PR tree-optimization/96514
4525 * tree-if-conv.c (if_convertible_bb_p): If the last stmt
4526 is a call that is control-altering, fail.
4528 2020-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
4530 * config/bpf/bpf.md: Remove trailing whitespaces.
4531 * config/bpf/constraints.md: Likewise.
4532 * config/bpf/predicates.md: Likewise.
4534 2020-08-07 Michael Meissner <meissner@linux.ibm.com>
4536 * config/rs6000/rs6000.md (bswaphi2_reg): Add ISA 3.1 support.
4537 (bswapsi2_reg): Add ISA 3.1 support.
4538 (bswapdi2): Rename bswapdi2_xxbrd to bswapdi2_brd.
4539 (bswapdi2_brd,bswapdi2_xxbrd): Rename. Add ISA 3.1 support.
4541 2020-08-07 Alan Modra <amodra@gmail.com>
4544 * config/rs6000/predicates.md (current_file_function_operand): Don't
4545 accept functions that differ in r2 usage.
4547 2020-08-06 Hans-Peter Nilsson <hp@bitrange.com>
4549 * config/mmix/mmix.md (MM): New mode_iterator.
4550 ("mov<mode>"): New expander to expand for all MM-modes.
4551 ("*movqi_expanded", "*movhi_expanded", "*movsi_expanded")
4552 ("*movsf_expanded", "*movdf_expanded"): Rename from the
4553 corresponding mov<M> named pattern. Add to the condition that
4554 either operand must be a register_operand.
4555 ("*movdi_expanded"): Similar, but also allow STCO in the condition.
4557 2020-08-06 Richard Sandiford <richard.sandiford@arm.com>
4560 * config/arm/arm.md (arm_stack_protect_test_insn): Zero out
4561 operand 2 after use.
4562 * config/arm/thumb1.md (thumb1_stack_protect_test_insn): Likewise.
4564 2020-08-06 Peter Bergner <bergner@linux.ibm.com>
4567 * config/rs6000/mma.md (*movpxi): Add xxsetaccz generation.
4568 Disable split for zero constant source operand.
4569 (mma_xxsetaccz): Change to define_expand. Call gen_movpxi.
4571 2020-08-06 Jakub Jelinek <jakub@redhat.com>
4573 PR tree-optimization/96480
4574 * tree-ssa-reassoc.c (suitable_cond_bb): Add TEST_SWAPPED_P argument.
4575 If TEST_BB ends in cond and has one edge to *OTHER_BB and another
4576 through an empty bb to that block too, if PHI args don't match, retry
4577 them through the other path from TEST_BB.
4578 (maybe_optimize_range_tests): Adjust callers. Handle such LAST_BB
4579 through inversion of the condition.
4581 2020-08-06 Jose E. Marchesi <jose.marchesi@oracle.com>
4583 * config/bpf/bpf-helpers.h (KERNEL_HELPER): Define.
4584 (KERNEL_VERSION): Remove.
4585 * config/bpf/bpf-helpers.def: Delete.
4586 * config/bpf/bpf.c (bpf_handle_fndecl_attribute): New function.
4587 (bpf_attribute_table): Define.
4588 (bpf_helper_names): Delete.
4589 (bpf_helper_code): Likewise.
4590 (enum bpf_builtins): Adjust to new helpers mechanism.
4591 (bpf_output_call): Likewise.
4592 (bpf_init_builtins): Likewise.
4593 (bpf_init_builtins): Likewise.
4594 * doc/extend.texi (BPF Function Attributes): New section.
4595 (BPF Kernel Helpers): Delete section.
4597 2020-08-06 Richard Biener <rguenther@suse.de>
4599 PR tree-optimization/96491
4600 * tree-ssa-sink.c (sink_common_stores_to_bb): Avoid
4601 sinking across abnormal edges.
4603 2020-08-06 Richard Biener <rguenther@suse.de>
4605 PR tree-optimization/96483
4606 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
4609 2020-08-06 Richard Biener <rguenther@suse.de>
4611 * graphite-isl-ast-to-gimple.c (ivs_params): Use hash_map instead
4613 (ivs_params_clear): Adjust.
4614 (gcc_expression_from_isl_ast_expr_id): Likewise.
4615 (graphite_create_new_loop): Likewise.
4616 (add_parameters_to_ivs_params): Likewise.
4618 2020-08-06 Roger Sayle <roger@nextmovesoftware.com>
4619 Uroš Bizjak <ubizjak@gmail.com>
4621 * config/i386/i386.md (MAXMIN_IMODE): No longer needed.
4622 (<maxmin><mode>3): Support SWI248 and general_operand for
4623 second operand, when TARGET_CMOVE.
4624 (<maxmin><mode>3_1 splitter): Optimize comparisons against
4625 0, 1 and -1 to use "test" instead of "cmp".
4626 (*<maxmin>di3_doubleword): Likewise, allow general_operand
4627 and enable on TARGET_CMOVE.
4628 (peephole2): Convert clearing a register after a flag setting
4629 instruction into an xor followed by the original flag setter.
4631 2020-08-06 Gerald Pfeifer <gerald@pfeifer.com>
4633 * ipa-fnsummary.c (INCLUDE_VECTOR): Define.
4634 Remove direct inclusion of <vector>.
4636 2020-08-06 Kewen Lin <linkw@gcc.gnu.org>
4638 * config/rs6000/rs6000.c (rs6000_adjust_vect_cost_per_loop): New
4640 (rs6000_finish_cost): Call rs6000_adjust_vect_cost_per_loop.
4641 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Add cost
4642 modeling for vector with length.
4643 (vect_rgroup_iv_might_wrap_p): New function, factored out from...
4644 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): ...this.
4645 Update function comment.
4646 * tree-vect-stmts.c (vect_gen_len): Update function comment.
4647 * tree-vectorizer.h (vect_rgroup_iv_might_wrap_p): New declare.
4649 2020-08-06 Kewen Lin <linkw@linux.ibm.com>
4651 * tree-vectorizer.c (try_vectorize_loop_1): Skip the epilogue loops
4654 2020-08-05 Marc Glisse <marc.glisse@inria.fr>
4656 PR tree-optimization/95906
4658 * match.pd ((c ? a : b) op d, (c ? a : b) op (c ? d : e),
4659 (v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): New transformations.
4660 (op (c ? a : b)): Update to match the new transformations.
4662 2020-08-05 Richard Sandiford <richard.sandiford@arm.com>
4665 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Set the
4666 CC register directly, instead of a GPR. Replace the original GPR
4667 destination with an extra scratch register. Zero out operand 3
4669 (stack_protect_test): Update accordingly.
4671 2020-08-05 Richard Sandiford <richard.sandiford@arm.com>
4673 * config/aarch64/aarch64.md (load_pair_sw_<SX:mode><SX2:mode>)
4674 (load_pair_dw_<DX:mode><DX2:mode>, load_pair_dw_tftf)
4675 (store_pair_sw_<SX:mode><SX2:mode>)
4676 (store_pair_dw_<DX:mode><DX2:mode>, store_pair_dw_tftf)
4677 (*load_pair_extendsidi2_aarch64)
4678 (*load_pair_zero_extendsidi2_aarch64): Use %z for the memory operand.
4679 * config/aarch64/aarch64-simd.md (load_pair<DREG:mode><DREG2:mode>)
4680 (vec_store_pair<DREG:mode><DREG2:mode>, load_pair<VQ:mode><VQ2:mode>)
4681 (vec_store_pair<VQ:mode><VQ2:mode>): Likewise.
4683 2020-08-05 Richard Biener <rguenther@suse.de>
4685 * tree-ssa-loop-im.c (invariantness_dom_walker): Remove.
4686 (invariantness_dom_walker::before_dom_children): Move to ...
4687 (compute_invariantness): ... this function.
4688 (move_computations): Inline ...
4689 (tree_ssa_lim): ... here, share RPO order and avoid some
4691 (analyze_memory_references): Remove sorting of location
4692 lists, instead assert they are sorted already when checking.
4693 (prev_flag_edges): Remove.
4694 (execute_sm_if_changed): Pass down and adjust prev edge state.
4695 (execute_sm_exit): Likewise.
4696 (hoist_memory_references): Likewise. Commit edge insertions
4697 of each processed exit.
4698 (store_motion_loop): Do not commit edge insertions on all
4699 edges in the function.
4700 (tree_ssa_lim_initialize): Do not call alloc_aux_for_edges.
4701 (tree_ssa_lim_finalize): Do not call free_aux_for_edges.
4703 2020-08-05 Richard Biener <rguenther@suse.de>
4705 * genmatch.c (fail_label): New global.
4706 (expr::gen_transform): Branch to fail_label instead of
4707 returning. Fix indent of call argument checking.
4708 (dt_simplify::gen_1): Compute and emit fail_label, branch
4709 to it instead of returning early.
4711 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4713 * omp-expand.c (expand_omp_for): Don't disallow combined non-rectangular
4716 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4719 * omp-low.c (lower_omp_taskreg): Call lower_reduction_clauses even in
4722 2020-08-05 Jakub Jelinek <jakub@redhat.com>
4724 * omp-expand.c (expand_omp_for_init_counts): Remember
4725 first_inner_iterations, factor and n1o from the number of iterations
4727 (expand_omp_for_init_vars): Use more efficient logical iteration number
4728 to actual iterator values computation even for non-rectangular loops
4729 where number of loop iterations could not be computed at compile time.
4731 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
4733 * config/rs6000/altivec.h (vec_blendv, vec_permx): Add define.
4734 * config/rs6000/altivec.md (UNSPEC_XXBLEND, UNSPEC_XXPERMX.): New
4736 (VM3): New define_mode.
4737 (VM3_char): New define_attr.
4738 (xxblend_<mode> mode VM3): New define_insn.
4739 (xxpermx): New define_expand.
4740 (xxpermx_inst): New define_insn.
4741 * config/rs6000/rs6000-builtin.def (VXXBLEND_V16QI, VXXBLEND_V8HI,
4742 VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): New
4743 BU_P10V_3 definitions.
4744 (XXBLEND): New BU_P10_OVERLOAD_3 definition.
4745 (XXPERMX): New BU_P10_OVERLOAD_4 definition.
4746 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4747 (P10_BUILTIN_VXXPERMX): Add if statement.
4748 * config/rs6000/rs6000-call.c (P10_BUILTIN_VXXBLEND_V16QI,
4749 P10_BUILTIN_VXXBLEND_V8HI, P10_BUILTIN_VXXBLEND_V4SI,
4750 P10_BUILTIN_VXXBLEND_V2DI, P10_BUILTIN_VXXBLEND_V4SF,
4751 P10_BUILTIN_VXXBLEND_V2DF, P10_BUILTIN_VXXPERMX): Define
4752 overloaded arguments.
4753 (rs6000_expand_quaternop_builtin): Add if case for CODE_FOR_xxpermx.
4754 (builtin_quaternary_function_type): Add v16uqi_type and xxpermx_type
4755 variables, add case statement for P10_BUILTIN_VXXPERMX.
4756 (builtin_function_type): Add case statements for
4757 P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
4758 P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI.
4759 * doc/extend.texi: Add documentation for vec_blendv and vec_permx.
4761 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
4763 * config/rs6000/altivec.h (vec_splati, vec_splatid, vec_splati_ins):
4765 * config/rs6000/altivec.md (UNSPEC_XXSPLTIW, UNSPEC_XXSPLTID,
4766 UNSPEC_XXSPLTI32DX): New.
4767 (vxxspltiw_v4si, vxxspltiw_v4sf_inst, vxxspltidp_v2df_inst,
4768 vxxsplti32dx_v4si_inst, vxxsplti32dx_v4sf_inst): New define_insn.
4769 (vxxspltiw_v4sf, vxxspltidp_v2df, vxxsplti32dx_v4si,
4770 vxxsplti32dx_v4sf.): New define_expands.
4771 * config/rs6000/predicates.md (u1bit_cint_operand,
4772 s32bit_cint_operand, c32bit_cint_operand): New predicates.
4773 * config/rs6000/rs6000-builtin.def (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF,
4774 VXXSPLTID): New definitions.
4775 (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF): New BU_P10V_3
4777 (XXSPLTIW, XXSPLTID): New definitions.
4778 (XXSPLTI32DX): Add definitions.
4779 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XXSPLTIW,
4780 P10_BUILTIN_VEC_XXSPLTID, P10_BUILTIN_VEC_XXSPLTI32DX):
4782 * config/rs6000/rs6000-protos.h (rs6000_constF32toI32): New extern
4784 * config/rs6000/rs6000.c (rs6000_constF32toI32): New function.
4785 * doc/extend.texi: Add documentation for vec_splati,
4786 vec_splatid, and vec_splati_ins.
4788 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
4790 * config/rs6000/altivec.h (vec_sldb, vec_srdb): New defines.
4791 * config/rs6000/altivec.md (UNSPEC_SLDB, UNSPEC_SRDB): New.
4792 (SLDB_lr): New attribute.
4793 (VSHIFT_DBL_LR): New iterator.
4794 (vs<SLDB_lr>db_<mode>): New define_insn.
4795 * config/rs6000/rs6000-builtin.def (VSLDB_V16QI, VSLDB_V8HI,
4796 VSLDB_V4SI, VSLDB_V2DI, VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI,
4797 VSRDB_V2DI): New BU_P10V_3 definitions.
4798 (SLDB, SRDB): New BU_P10_OVERLOAD_3 definitions.
4799 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_SLDB,
4800 P10_BUILTIN_VEC_SRDB): New definitions.
4801 (rs6000_expand_ternop_builtin) [CODE_FOR_vsldb_v16qi,
4802 CODE_FOR_vsldb_v8hi, CODE_FOR_vsldb_v4si, CODE_FOR_vsldb_v2di,
4803 CODE_FOR_vsrdb_v16qi, CODE_FOR_vsrdb_v8hi, CODE_FOR_vsrdb_v4si,
4804 CODE_FOR_vsrdb_v2di]: Add clauses.
4805 * doc/extend.texi: Add description for vec_sldb and vec_srdb.
4807 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
4809 * config/rs6000/altivec.h: Add define for vec_replace_elt and
4810 vec_replace_unaligned.
4811 * config/rs6000/vsx.md (UNSPEC_REPLACE_ELT, UNSPEC_REPLACE_UN): New
4813 (REPLACE_ELT): New mode iterator.
4814 (REPLACE_ELT_char, REPLACE_ELT_sh, REPLACE_ELT_max): New mode attributes.
4815 (vreplace_un_<mode>, vreplace_elt_<mode>_inst): New.
4816 * config/rs6000/rs6000-builtin.def (VREPLACE_ELT_V4SI,
4817 VREPLACE_ELT_UV4SI, VREPLACE_ELT_V4SF, VREPLACE_ELT_UV2DI,
4818 VREPLACE_ELT_V2DF, VREPLACE_UN_V4SI, VREPLACE_UN_UV4SI,
4819 VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
4820 VREPLACE_UN_V2DF, (REPLACE_ELT, REPLACE_UN, VREPLACE_ELT_V2DI): New builtin
4822 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_REPLACE_ELT,
4823 P10_BUILTIN_VEC_REPLACE_UN): New builtin argument definitions.
4824 (rs6000_expand_quaternop_builtin): Add 3rd argument checks for
4825 CODE_FOR_vreplace_elt_v4si, CODE_FOR_vreplace_elt_v4sf,
4826 CODE_FOR_vreplace_un_v4si, CODE_FOR_vreplace_un_v4sf.
4827 (builtin_function_type) [P10_BUILTIN_VREPLACE_ELT_UV4SI,
4828 P10_BUILTIN_VREPLACE_ELT_UV2DI, P10_BUILTIN_VREPLACE_UN_UV4SI,
4829 P10_BUILTIN_VREPLACE_UN_UV2DI]: New cases.
4830 * doc/extend.texi: Add description for vec_replace_elt and
4831 vec_replace_unaligned builtins.
4833 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
4835 * config/rs6000/altivec.h (vec_insertl, vec_inserth): New defines.
4836 * config/rs6000/rs6000-builtin.def (VINSERTGPRBL, VINSERTGPRHL,
4837 VINSERTGPRWL, VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL,
4838 VINSERTGPRBR, VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR,
4839 VINSERTVPRHR, VINSERTVPRWR): New builtins.
4840 (INSERTL, INSERTH): New builtins.
4841 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_INSERTL,
4842 P10_BUILTIN_VEC_INSERTH): New overloaded definitions.
4843 (P10_BUILTIN_VINSERTGPRBL, P10_BUILTIN_VINSERTGPRHL,
4844 P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
4845 P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
4846 P10_BUILTIN_VINSERTVPRWL): Add case entries.
4847 * config/rs6000/vsx.md (define_c_enum): Add UNSPEC_INSERTL,
4849 (define_expand): Add vinsertvl_<mode>, vinsertvr_<mode>,
4850 vinsertgl_<mode>, vinsertgr_<mode>, mode is VI2.
4851 (define_ins): vinsertvl_internal_<mode>, vinsertvr_internal_<mode>,
4852 vinsertgl_internal_<mode>, vinsertgr_internal_<mode>, mode VEC_I.
4853 * doc/extend.texi: Add documentation for vec_insertl, vec_inserth.
4855 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
4857 * config/rs6000/altivec.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
4858 (vextractl<mode>, vextractr<mode>)
4859 (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
4861 * config/rs6000/vsx.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
4862 (vextractl<mode>, vextractr<mode>)
4863 (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
4865 * doc/extend.texi: Update documentation for vec_extractl.
4866 Replace builtin name vec_extractr with vec_extracth. Update
4867 description of vec_extracth.
4869 2020-08-04 Jim Wilson <jimw@sifive.com>
4871 * doc/invoke.texi (AArch64 Options): Delete duplicate
4872 -mstack-protector-guard docs.
4874 2020-08-04 Roger Sayle <roger@nextmovesoftware.com>
4876 * config/nvptx/nvptx.md (smulhi3_highpart, smulsi3_highpart)
4877 (umulhi3_highpart, umulsi3_highpart): New instructions.
4879 2020-08-04 Andrew Stubbs <ams@codesourcery.com>
4881 * config/gcn/gcn-run.c (R_AMDGPU_NONE): Delete.
4882 (R_AMDGPU_ABS32_LO): Delete.
4883 (R_AMDGPU_ABS32_HI): Delete.
4884 (R_AMDGPU_ABS64): Delete.
4885 (R_AMDGPU_REL32): Delete.
4886 (R_AMDGPU_REL64): Delete.
4887 (R_AMDGPU_ABS32): Delete.
4888 (R_AMDGPU_GOTPCREL): Delete.
4889 (R_AMDGPU_GOTPCREL32_LO): Delete.
4890 (R_AMDGPU_GOTPCREL32_HI): Delete.
4891 (R_AMDGPU_REL32_LO): Delete.
4892 (R_AMDGPU_REL32_HI): Delete.
4894 (R_AMDGPU_RELATIVE64): Delete.
4896 2020-08-04 Omar Tahir <omar.tahir@arm.com>
4898 * config/arm/arm-cpus.in (armv8.1-m.main): Tune for Cortex-M55.
4900 2020-08-04 Hu Jiangping <hujiangping@cn.fujitsu.com>
4902 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Delete
4903 redundant extra_cost variable.
4905 2020-08-04 Zhiheng Xie <xiezhiheng@huawei.com>
4907 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
4908 Use FLOAT_MODE_P macro instead of enumerating all floating-point
4909 modes and add global flag FLAG_AUTO_FP.
4911 2020-08-04 Jakub Jelinek <jakub@redhat.com>
4913 * doc/extend.texi (symver): Add @cindex for symver function attribute.
4915 2020-08-04 Marc Glisse <marc.glisse@inria.fr>
4917 PR tree-optimization/95433
4918 * match.pd (X * C1 == C2): New transformation.
4920 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
4922 * gimple-ssa-sprintf.c (get_int_range): Adjust for irange API.
4923 (format_integer): Same.
4924 (handle_printf_call): Same.
4926 2020-08-04 Andrew Stubbs <ams@codesourcery.com>
4928 * config/gcn/gcn.md ("<expander>ti3"): New.
4930 2020-08-04 Richard Biener <rguenther@suse.de>
4932 PR tree-optimization/88240
4933 * tree-ssa-sccvn.h (vn_reference_s::punned): New flag.
4934 * tree-ssa-sccvn.c (vn_reference_insert): Initialize punned.
4935 (vn_reference_insert_pieces): Likewise.
4936 (visit_reference_op_call): Likewise.
4937 (visit_reference_op_load): Track whether a ref was punned.
4938 * tree-ssa-pre.c (do_hoist_insertion): Refuse to perform hoist
4939 insertion on punned floating point loads.
4941 2020-08-04 Sudakshina Das <sudi.das@arm.com>
4943 * config/aarch64/aarch64.c (aarch64_gen_store_pair): Add case
4945 (aarch64_gen_load_pair): Likewise.
4946 (aarch64_copy_one_block_and_progress_pointers): Handle 256 bit copy.
4947 (aarch64_expand_cpymem): Expand copy_limit to 256bits where
4950 2020-08-04 Andrea Corallo <andrea.corallo@arm.com>
4952 * config/aarch64/aarch64.md (aarch64_fjcvtzs): Add missing
4954 * doc/sourcebuild.texi (aarch64_fjcvtzs_hw) Document new
4955 target supports option.
4957 2020-08-04 Tom de Vries <tdevries@suse.de>
4960 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Handle V2SI/V2DI.
4962 2020-08-04 Jakub Jelinek <jakub@redhat.com>
4965 * tree-vect-generic.c (expand_vector_conversion): Replace .VEC_CONVERT
4966 call with GIMPLE_NOP if there is no lhs.
4968 2020-08-04 Jakub Jelinek <jakub@redhat.com>
4971 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Add IS_DEBUG
4972 argument. Return false instead of gcc_unreachable if it is true and
4973 get_addr_base_and_unit_offset returns NULL.
4974 (fold_stmt_1) <case GIMPLE_DEBUG>: Adjust caller.
4976 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
4978 * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional):
4979 Call is_gimple_min_invariant dropped from previous patch.
4981 2020-08-04 Jakub Jelinek <jakub@redhat.com>
4983 * omp-expand.c (expand_omp_for_init_counts): For triangular loops
4984 compute number of iterations at runtime more efficiently.
4985 (expand_omp_for_init_vars): Adjust immediate dominators.
4986 (extract_omp_for_update_vars): Likewise.
4988 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
4990 * vr-values.c (simplify_using_ranges::two_valued_val_range_p):
4993 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
4995 * vr-values.c (simplify_conversion_using_ranges): Convert to irange API.
4997 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
4999 * vr-values.c (test_for_singularity): Use irange API.
5000 (simplify_using_ranges::simplify_cond_using_ranges_1): Do not
5001 special case VR_RANGE.
5003 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
5005 * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional): Adjust
5008 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
5010 * vr-values.c (simplify_using_ranges::op_with_boolean_value_range_p): Adjust
5013 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
5015 * tree-ssanames.c (get_range_info): Use irange instead of value_range.
5016 * tree-ssanames.h (get_range_info): Same.
5018 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
5020 * fold-const.c (expr_not_equal_to): Adjust for irange API.
5022 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
5024 * builtins.c (determine_block_size): Remove ad-hoc range canonicalization.
5026 2020-08-04 Xionghu Luo <luoxhu@linux.ibm.com>
5028 PR rtl-optimization/71309
5029 * dse.c (find_shift_sequence): Use subreg of shifted from high part
5030 register to avoid loading from address.
5032 2020-08-03 Jonathan Wakely <jwakely@redhat.com>
5034 * doc/cpp.texi (Variadic Macros): Use the exact ... token in
5037 2020-08-03 Nathan Sidwell <nathan@acm.org>
5039 * doc/invoke.texi: Refer to c++20
5041 2020-08-03 Julian Brown <julian@codesourcery.com>
5042 Thomas Schwinge <thomas@codesourcery.com>
5044 * gimplify.c (gimplify_omp_target_update): Allow GOMP_MAP_TO_PSET
5045 without a preceding data-movement mapping.
5047 2020-08-03 Iain Sandoe <iain@sandoe.co.uk>
5049 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): UNDEF before
5051 (DEF_MIN_OSX_VERSION): Only define if there's no existing
5054 2020-08-03 Iain Sandoe <iain@sandoe.co.uk>
5056 * config/darwin.c (IN_TARGET_CODE): Remove.
5057 (darwin_mergeable_constant_section): Handle poly-int machine modes.
5058 (machopic_select_rtx_section): Likewise.
5060 2020-08-03 Aldy Hernandez <aldyh@redhat.com>
5062 PR tree-optimization/96430
5063 * range-op.cc (operator_tests): Do not shift by 31 on targets with
5064 integer's smaller than 32 bits.
5066 2020-08-03 Martin Jambor <mjambor@suse.cz>
5068 * hsa-brig-format.h: Moved to brig/brigfrontend.
5069 * hsa-brig.c: Removed.
5070 * hsa-builtins.def: Likewise.
5071 * hsa-common.c: Likewise.
5072 * hsa-common.h: Likewise.
5073 * hsa-dump.c: Likewise.
5074 * hsa-gen.c: Likewise.
5075 * hsa-regalloc.c: Likewise.
5076 * ipa-hsa.c: Likewise.
5077 * omp-grid.c: Likewise.
5078 * omp-grid.h: Likewise.
5079 * Makefile.in (BUILTINS_DEF): Remove hsa-builtins.def.
5080 (OBJS): Remove hsa-common.o, hsa-gen.o, hsa-regalloc.o, hsa-brig.o,
5081 hsa-dump.o, ipa-hsa.c and omp-grid.o.
5082 (GTFILES): Removed hsa-common.c and omp-expand.c.
5083 * builtins.def: Remove processing of hsa-builtins.def.
5084 (DEF_HSA_BUILTIN): Remove.
5085 * common.opt (flag_disable_hsa): Remove.
5087 * config.in (ENABLE_HSA): Removed.
5088 * configure.ac: Removed handling configuration for hsa offloading.
5089 (ENABLE_HSA): Removed.
5090 * configure: Regenerated.
5091 * doc/install.texi (--enable-offload-targets): Remove hsa from the
5093 (--with-hsa-runtime): Reword to reference any HSA run-time, not
5094 specifically HSA offloading.
5095 * doc/invoke.texi (Option Summary): Remove -Whsa.
5096 (Warning Options): Likewise.
5097 (Optimize Options): Remove hsa-gen-debug-stores.
5098 * doc/passes.texi (Regular IPA passes): Remove section on IPA HSA
5100 * gimple-low.c (lower_stmt): Remove GIMPLE_OMP_GRID_BODY case.
5101 * gimple-pretty-print.c (dump_gimple_omp_for): Likewise.
5102 (dump_gimple_omp_block): Likewise.
5103 (pp_gimple_stmt_1): Likewise.
5104 * gimple-walk.c (walk_gimple_stmt): Likewise.
5105 * gimple.c (gimple_build_omp_grid_body): Removed function.
5106 (gimple_copy): Remove GIMPLE_OMP_GRID_BODY case.
5107 * gimple.def (GIMPLE_OMP_GRID_BODY): Removed.
5108 * gimple.h (gf_mask): Removed GF_OMP_PARALLEL_GRID_PHONY,
5109 OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY,
5110 GF_OMP_FOR_GRID_INTRA_GROUP, GF_OMP_FOR_GRID_GROUP_ITER and
5111 GF_OMP_TEAMS_GRID_PHONY. Renumbered GF_OMP_FOR_KIND_SIMD and
5113 (gimple_build_omp_grid_body): Removed declaration.
5114 (gimple_has_substatements): Remove GIMPLE_OMP_GRID_BODY case.
5115 (gimple_omp_for_grid_phony): Removed.
5116 (gimple_omp_for_set_grid_phony): Likewise.
5117 (gimple_omp_for_grid_intra_group): Likewise.
5118 (gimple_omp_for_grid_intra_group): Likewise.
5119 (gimple_omp_for_grid_group_iter): Likewise.
5120 (gimple_omp_for_set_grid_group_iter): Likewise.
5121 (gimple_omp_parallel_grid_phony): Likewise.
5122 (gimple_omp_parallel_set_grid_phony): Likewise.
5123 (gimple_omp_teams_grid_phony): Likewise.
5124 (gimple_omp_teams_set_grid_phony): Likewise.
5125 (CASE_GIMPLE_OMP): Remove GIMPLE_OMP_GRID_BODY case.
5126 * lto-section-in.c (lto_section_name): Removed hsa.
5127 * lto-streamer.h (lto_section_type): Removed LTO_section_ipa_hsa.
5128 * lto-wrapper.c (compile_images_for_offload_targets): Remove special
5130 * omp-expand.c: Do not include hsa-common.h and gt-omp-expand.h.
5131 (parallel_needs_hsa_kernel_p): Removed.
5132 (grid_launch_attributes_trees): Likewise.
5133 (grid_launch_attributes_trees): Likewise.
5134 (grid_create_kernel_launch_attr_types): Likewise.
5135 (grid_insert_store_range_dim): Likewise.
5136 (grid_get_kernel_launch_attributes): Likewise.
5137 (get_target_arguments): Remove code passing HSA grid sizes.
5138 (grid_expand_omp_for_loop): Remove.
5139 (grid_arg_decl_map): Likewise.
5140 (grid_remap_kernel_arg_accesses): Likewise.
5141 (grid_expand_target_grid_body): Likewise.
5142 (expand_omp): Remove call to grid_expand_target_grid_body.
5143 (omp_make_gimple_edges): Remove GIMPLE_OMP_GRID_BODY case.
5144 * omp-general.c: Do not include hsa-common.h.
5145 (omp_maybe_offloaded): Do not check for HSA offloading.
5146 (omp_context_selector_matches): Likewise.
5147 * omp-low.c: Do not include hsa-common.h and omp-grid.h.
5148 (build_outer_var_ref): Remove handling of GIMPLE_OMP_GRID_BODY.
5149 (scan_sharing_clauses): Remove handling of OMP_CLAUSE__GRIDDIM_.
5150 (scan_omp_parallel): Remove handling of the phoney variant.
5151 (check_omp_nesting_restrictions): Remove handling of
5152 GIMPLE_OMP_GRID_BODY and GF_OMP_FOR_KIND_GRID_LOOP.
5153 (scan_omp_1_stmt): Remove handling of GIMPLE_OMP_GRID_BODY.
5154 (lower_omp_for_lastprivate): Remove handling of gridified loops.
5155 (lower_omp_for): Remove phony loop handling.
5156 (lower_omp_taskreg): Remove phony construct handling.
5157 (lower_omp_teams): Likewise.
5158 (lower_omp_grid_body): Removed.
5159 (lower_omp_1): Remove GIMPLE_OMP_GRID_BODY case.
5160 (execute_lower_omp): Do not call omp_grid_gridify_all_targets.
5161 * opts.c (common_handle_option): Do not handle hsa when processing
5163 * params.opt (hsa-gen-debug-stores): Remove.
5164 * passes.def: Remove pass_ipa_hsa and pass_gen_hsail.
5165 * timevar.def: Remove TV_IPA_HSA.
5166 * toplev.c: Do not include hsa-common.h.
5167 (compile_file): Do not call hsa_output_brig.
5168 * tree-core.h (enum omp_clause_code): Remove OMP_CLAUSE__GRIDDIM_.
5169 (tree_omp_clause): Remove union field dimension.
5170 * tree-nested.c (convert_nonlocal_omp_clauses): Remove the
5171 OMP_CLAUSE__GRIDDIM_ case.
5172 (convert_local_omp_clauses): Likewise.
5173 * tree-pass.h (make_pass_gen_hsail): Remove declaration.
5174 (make_pass_ipa_hsa): Likewise.
5175 * tree-pretty-print.c (dump_omp_clause): Remove GIMPLE_OMP_GRID_BODY
5177 * tree.c (omp_clause_num_ops): Remove the element corresponding to
5178 OMP_CLAUSE__GRIDDIM_.
5179 (omp_clause_code_name): Likewise.
5180 (walk_tree_1): Remove GIMPLE_OMP_GRID_BODY case.
5181 * tree.h (OMP_CLAUSE__GRIDDIM__DIMENSION): Remove.
5182 (OMP_CLAUSE__GRIDDIM__SIZE): Likewise.
5183 (OMP_CLAUSE__GRIDDIM__GROUP): Likewise.
5185 2020-08-03 Bu Le <bule1@huawei.com>
5187 * config/aarch64/aarch64-sve.md (sub<mode>3): Add support for
5190 2020-08-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5192 * config/msp430/msp430.h (ASM_SPEC): Don't pass on "-md" option.
5194 2020-08-03 Yunde Zhong <zhongyunde@huawei.com>
5196 PR rtl-optimization/95696
5197 * regrename.c (regrename_analyze): New param include_all_block_p
5198 with default value TRUE. If set to false, avoid disrupting SMS
5200 * regrename.h (regrename_analyze): Adjust prototype.
5202 2020-08-03 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
5204 * doc/tm.texi.in (VECTOR_STORE_FLAG_VALUE): Fix a typo.
5205 * doc/tm.texi: Regenerate.
5207 2020-08-03 Richard Sandiford <richard.sandiford@arm.com>
5209 * doc/invoke.texi: Add missing comma after octeontx2f95mm entry.
5211 2020-08-03 Qian jianhua <qianjh@cn.fujitsu.com>
5213 * config/aarch64/aarch64-cores.def (a64fx): New core.
5214 * config/aarch64/aarch64-tune.md: Regenerated.
5215 * config/aarch64/aarch64.c (a64fx_prefetch_tune, a64fx_tunings): New.
5216 * doc/invoke.texi: Add a64fx to the list.
5218 2020-08-03 Roger Sayle <roger@nextmovesoftware.com>
5220 PR rtl-optimization/61494
5221 * simplify-rtx.c (simplify_binary_operation_1) [MINUS]: Don't
5222 simplify x - 0.0 with -fsignaling-nans.
5224 2020-08-03 Roger Sayle <roger@nextmovesoftware.com>
5226 * genmatch.c (decision_tree::gen): Emit stub functions for
5227 tree code operand counts that have no simplifications.
5228 (main): Correct comment typo.
5230 2020-08-03 Jonathan Wakely <jwakely@redhat.com>
5232 * gimple-ssa-sprintf.c: Fix typos in comments.
5234 2020-08-03 Tamar Christina <tamar.christina@arm.com>
5236 * config/aarch64/driver-aarch64.c (readline): Check return value fgets.
5238 2020-08-03 Richard Biener <rguenther@suse.de>
5240 * doc/match-and-simplify.texi: Amend accordingly.
5242 2020-08-03 Richard Biener <rguenther@suse.de>
5244 * genmatch.c (parser::gimple): New.
5245 (parser::parser): Initialize gimple flag member.
5246 (parser::parse_expr): Error on ! operator modifier when
5247 not targeting GIMPLE.
5248 (main): Pass down gimple flag to parser ctor.
5250 2020-08-03 Aldy Hernandez <aldyh@redhat.com>
5252 * Makefile.in (GTFILES): Move value-range.h up.
5253 * gengtype-lex.l: Set yylval to handle GTY markers on templates.
5254 * ipa-cp.c (initialize_node_lattices): Call value_range
5256 (ipcp_propagate_stage): Use in-place new so value_range construct
5258 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use std
5259 vec instead of GCC's vec<>.
5260 (evaluate_properties_for_edge): Adjust for std vec.
5261 (ipa_fn_summary_t::duplicate): Same.
5262 (estimate_ipcp_clone_size_and_time): Same.
5263 * ipa-prop.c (ipa_get_value_range): Use in-place new for
5265 * ipa-prop.h (struct GTY): Remove class keyword for m_vr.
5266 * range-op.cc (empty_range_check): Rename to...
5267 (empty_range_varying): ...this and adjust for varying.
5268 (undefined_shift_range_check): Adjust for irange.
5269 (range_operator::wi_fold): Same.
5270 (range_operator::fold_range): Adjust for irange. Special case
5271 single pairs for performance.
5272 (range_operator::op1_range): Adjust for irange.
5273 (range_operator::op2_range): Same.
5274 (value_range_from_overflowed_bounds): Same.
5275 (value_range_with_overflow): Same.
5276 (create_possibly_reversed_range): Same.
5278 (range_false): Same.
5279 (range_true_and_false): Same.
5280 (get_bool_state): Adjust for irange and tweak for performance.
5281 (operator_equal::fold_range): Adjust for irange.
5282 (operator_equal::op1_range): Same.
5283 (operator_equal::op2_range): Same.
5284 (operator_not_equal::fold_range): Same.
5285 (operator_not_equal::op1_range): Same.
5286 (operator_not_equal::op2_range): Same.
5291 (operator_lt::fold_range): Same.
5292 (operator_lt::op1_range): Same.
5293 (operator_lt::op2_range): Same.
5294 (operator_le::fold_range): Same.
5295 (operator_le::op1_range): Same.
5296 (operator_le::op2_range): Same.
5297 (operator_gt::fold_range): Same.
5298 (operator_gt::op1_range): Same.
5299 (operator_gt::op2_range): Same.
5300 (operator_ge::fold_range): Same.
5301 (operator_ge::op1_range): Same.
5302 (operator_ge::op2_range): Same.
5303 (operator_plus::wi_fold): Same.
5304 (operator_plus::op1_range): Same.
5305 (operator_plus::op2_range): Same.
5306 (operator_minus::wi_fold): Same.
5307 (operator_minus::op1_range): Same.
5308 (operator_minus::op2_range): Same.
5309 (operator_min::wi_fold): Same.
5310 (operator_max::wi_fold): Same.
5311 (cross_product_operator::wi_cross_product): Same.
5312 (operator_mult::op1_range): New.
5313 (operator_mult::op2_range): New.
5314 (operator_mult::wi_fold): Adjust for irange.
5315 (operator_div::wi_fold): Same.
5316 (operator_exact_divide::op1_range): Same.
5317 (operator_lshift::fold_range): Same.
5318 (operator_lshift::wi_fold): Same.
5319 (operator_lshift::op1_range): New.
5320 (operator_rshift::op1_range): New.
5321 (operator_rshift::fold_range): Adjust for irange.
5322 (operator_rshift::wi_fold): Same.
5323 (operator_cast::truncating_cast_p): Abstract out from
5324 operator_cast::fold_range.
5325 (operator_cast::fold_range): Adjust for irange and tweak for
5327 (operator_cast::inside_domain_p): Abstract out from fold_range.
5328 (operator_cast::fold_pair): Same.
5329 (operator_cast::op1_range): Use abstracted methods above. Adjust
5330 for irange and tweak for performance.
5331 (operator_logical_and::fold_range): Adjust for irange.
5332 (operator_logical_and::op1_range): Same.
5333 (operator_logical_and::op2_range): Same.
5334 (unsigned_singleton_p): New.
5335 (operator_bitwise_and::remove_impossible_ranges): New.
5336 (operator_bitwise_and::fold_range): New.
5337 (wi_optimize_and_or): Adjust for irange.
5338 (operator_bitwise_and::wi_fold): Same.
5339 (set_nonzero_range_from_mask): New.
5340 (operator_bitwise_and::simple_op1_range_solver): New.
5341 (operator_bitwise_and::op1_range): Adjust for irange.
5342 (operator_bitwise_and::op2_range): Same.
5343 (operator_logical_or::fold_range): Same.
5344 (operator_logical_or::op1_range): Same.
5345 (operator_logical_or::op2_range): Same.
5346 (operator_bitwise_or::wi_fold): Same.
5347 (operator_bitwise_or::op1_range): Same.
5348 (operator_bitwise_or::op2_range): Same.
5349 (operator_bitwise_xor::wi_fold): Same.
5350 (operator_bitwise_xor::op1_range): New.
5351 (operator_bitwise_xor::op2_range): New.
5352 (operator_trunc_mod::wi_fold): Adjust for irange.
5353 (operator_logical_not::fold_range): Same.
5354 (operator_logical_not::op1_range): Same.
5355 (operator_bitwise_not::fold_range): Same.
5356 (operator_bitwise_not::op1_range): Same.
5357 (operator_cst::fold_range): Same.
5358 (operator_identity::fold_range): Same.
5359 (operator_identity::op1_range): Same.
5360 (class operator_unknown): New.
5361 (operator_unknown::fold_range): New.
5362 (class operator_abs): Adjust for irange.
5363 (operator_abs::wi_fold): Same.
5364 (operator_abs::op1_range): Same.
5365 (operator_absu::wi_fold): Same.
5366 (class operator_negate): Same.
5367 (operator_negate::fold_range): Same.
5368 (operator_negate::op1_range): Same.
5369 (operator_addr_expr::fold_range): Same.
5370 (operator_addr_expr::op1_range): Same.
5371 (pointer_plus_operator::wi_fold): Same.
5372 (pointer_min_max_operator::wi_fold): Same.
5373 (pointer_and_operator::wi_fold): Same.
5374 (pointer_or_operator::op1_range): New.
5375 (pointer_or_operator::op2_range): New.
5376 (pointer_or_operator::wi_fold): Adjust for irange.
5377 (integral_table::integral_table): Add entries for IMAGPART_EXPR
5378 and POINTER_DIFF_EXPR.
5379 (range_cast): Adjust for irange.
5380 (build_range3): New.
5381 (range3_tests): New.
5382 (widest_irange_tests): New.
5383 (multi_precision_range_tests): New.
5384 (operator_tests): New.
5386 * range-op.h (class range_operator): Adjust for irange.
5388 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust for irange and
5389 tweak for performance.
5390 (range_fold_binary_expr): Same.
5391 (masked_increment): Change to extern.
5392 * tree-vrp.h (masked_increment): New.
5393 * tree.c (cache_wide_int_in_type_cache): New function abstracted
5394 out from wide_int_to_tree_1.
5395 (wide_int_to_tree_1): Cache 0, 1, and MAX for pointers.
5396 * value-range-equiv.cc (value_range_equiv::deep_copy): Use kind
5398 (value_range_equiv::move): Same.
5399 (value_range_equiv::check): Adjust for irange.
5400 (value_range_equiv::intersect): Same.
5401 (value_range_equiv::union_): Same.
5402 (value_range_equiv::dump): Same.
5403 * value-range.cc (irange::operator=): Same.
5404 (irange::maybe_anti_range): New.
5405 (irange::copy_legacy_range): New.
5406 (irange::set_undefined): Adjust for irange.
5407 (irange::swap_out_of_order_endpoints): Abstract out from set().
5408 (irange::set_varying): Adjust for irange.
5409 (irange::irange_set): New.
5410 (irange::irange_set_anti_range): New.
5411 (irange::set): Adjust for irange.
5412 (value_range::set_nonzero): Move to header file.
5413 (value_range::set_zero): Move to header file.
5414 (value_range::check): Rename to...
5415 (irange::verify_range): ...this.
5416 (value_range::num_pairs): Rename to...
5417 (irange::legacy_num_pairs): ...this, and adjust for irange.
5418 (value_range::lower_bound): Rename to...
5419 (irange::legacy_lower_bound): ...this, and adjust for irange.
5420 (value_range::upper_bound): Rename to...
5421 (irange::legacy_upper_bound): ...this, and adjust for irange.
5422 (value_range::equal_p): Rename to...
5423 (irange::legacy_equal_p): ...this.
5424 (value_range::operator==): Move to header file.
5425 (irange::equal_p): New.
5426 (irange::symbolic_p): Adjust for irange.
5427 (irange::constant_p): Same.
5428 (irange::singleton_p): Same.
5429 (irange::value_inside_range): Same.
5430 (irange::may_contain_p): Same.
5431 (irange::contains_p): Same.
5432 (irange::normalize_addresses): Same.
5433 (irange::normalize_symbolics): Same.
5434 (irange::legacy_intersect): Same.
5435 (irange::legacy_union): Same.
5436 (irange::union_): Same.
5437 (irange::intersect): Same.
5438 (irange::irange_union): New.
5439 (irange::irange_intersect): New.
5440 (subtract_one): New.
5441 (irange::invert): Adjust for irange.
5442 (dump_bound_with_infinite_markers): New.
5443 (irange::dump): Adjust for irange.
5444 (debug): Add irange versions.
5445 (range_has_numeric_bounds_p): Adjust for irange.
5446 (vrp_val_max): Move to header file.
5447 (vrp_val_min): Move to header file.
5448 (DEFINE_INT_RANGE_GC_STUBS): New.
5449 (DEFINE_INT_RANGE_INSTANCE): New.
5450 * value-range.h (class irange): New.
5451 (class int_range): New.
5452 (class value_range): Rename to a instantiation of int_range.
5453 (irange::legacy_mode_p): New.
5454 (value_range::value_range): Remove.
5455 (irange::kind): New.
5456 (irange::num_pairs): Adjust for irange.
5457 (irange::type): Adjust for irange.
5458 (irange::tree_lower_bound): New.
5459 (irange::tree_upper_bound): New.
5460 (irange::type): Adjust for irange.
5461 (irange::min): Same.
5462 (irange::max): Same.
5463 (irange::varying_p): Same.
5464 (irange::undefined_p): Same.
5465 (irange::zero_p): Same.
5466 (irange::nonzero_p): Same.
5467 (irange::supports_type_p): Same.
5468 (range_includes_zero_p): Same.
5471 (irange::irange): New.
5472 (int_range::int_range): New.
5473 (int_range::operator=): New.
5474 (irange::set): Moved from value-range.cc and adjusted for irange.
5475 (irange::set_undefined): Same.
5476 (irange::set_varying): Same.
5477 (irange::operator==): Same.
5478 (irange::lower_bound): Same.
5479 (irange::upper_bound): Same.
5480 (irange::union_): Same.
5481 (irange::intersect): Same.
5482 (irange::set_nonzero): Same.
5483 (irange::set_zero): Same.
5484 (irange::normalize_min_max): New.
5485 (vrp_val_max): Move from value-range.cc.
5486 (vrp_val_min): Same.
5487 * vr-values.c (vr_values::get_lattice_entry): Call value_range
5490 2020-08-02 Sergei Trofimovich <siarheit@google.com>
5493 * var-tracking.c (vt_find_locations): Fully initialize
5494 all 'in_pending' bits.
5496 2020-08-01 Jan Hubicka <jh@suse.cz>
5498 * symtab.c (symtab_node::verify_base): Verify order.
5499 (symtab_node::verify_symtab_nodes): Verify order.
5501 2020-08-01 Jan Hubicka <jh@suse.cz>
5503 * predict.c (estimate_bb_frequencies): Cap recursive calls by 90%.
5505 2020-08-01 Jojo R <jiejie_rong@c-sky.com>
5507 * config/csky/csky_opts.h (float_abi_type): New.
5508 * config/csky/csky.h (TARGET_SOFT_FLOAT): New.
5509 (TARGET_HARD_FLOAT): New.
5510 (TARGET_HARD_FLOAT_ABI): New.
5511 (OPTION_DEFAULT_SPECS): Use mfloat-abi.
5512 * config/csky/csky.opt (mfloat-abi): New.
5513 * doc/invoke.texi (C-SKY Options): Document -mfloat-abi=.
5515 2020-08-01 Cooper Qu <cooper.qu@linux.alibaba.com>
5517 * config/csky/t-csky-linux: Delete big endian CPUs' multilib.
5519 2020-07-31 Roger Sayle <roger@nextmovesoftware.com>
5520 Tom de Vries <tdevries@suse.de>
5523 * config/nvptx/nvptx.c (nvptx_truly_noop_truncation): Implement.
5524 (TARGET_TRULY_NOOP_TRUNCATION): Define.
5526 2020-07-31 Richard Biener <rguenther@suse.de>
5529 * langhooks-def.h (lhd_finalize_early_debug): Declare.
5530 (LANG_HOOKS_FINALIZE_EARLY_DEBUG): Define.
5531 (LANG_HOOKS_INITIALIZER): Amend.
5532 * langhooks.c: Include cgraph.h and debug.h.
5533 (lhd_finalize_early_debug): Default implementation from
5534 former code in finalize_compilation_unit.
5535 * langhooks.h (lang_hooks::finalize_early_debug): Add.
5536 * cgraphunit.c (symbol_table::finalize_compilation_unit):
5537 Call the finalize_early_debug langhook.
5539 2020-07-31 Richard Biener <rguenther@suse.de>
5541 * genmatch.c (expr::force_leaf): Add and initialize.
5542 (expr::gen_transform): Honor force_leaf by passing
5543 NULL as sequence argument to maybe_push_res_to_seq.
5544 (parser::parse_expr): Allow ! marker on result expression
5546 * doc/match-and-simplify.texi: Amend.
5548 2020-07-31 Kewen Lin <linkw@linux.ibm.com>
5550 * tree-vect-loop.c (vect_get_known_peeling_cost): Don't consider branch
5551 taken costs for prologue and epilogue if they don't exist.
5552 (vect_estimate_min_profitable_iters): Likewise.
5554 2020-07-31 Martin Liska <mliska@suse.cz>
5556 * cgraph.h: Remove leading empty lines.
5557 * cgraphunit.c (enum cgraph_order_sort_kind): Remove
5559 (struct cgraph_order_sort): Add constructors.
5560 (cgraph_order_sort::process): New.
5561 (cgraph_order_cmp): New.
5562 (output_in_order): Simplify and push nodes to vector.
5564 2020-07-31 Richard Biener <rguenther@suse.de>
5567 * fold-const.c (fold_range_test): Special-case constant
5568 LHS for short-circuiting operations.
5570 2020-07-31 Martin Liska <mliska@suse.cz>
5572 * gcov-io.h (GCOV_PREALLOCATED_KVP): New.
5574 2020-07-31 Zhiheng Xie <xiezhiheng@huawei.com>
5576 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
5577 Add new argument ATTRS.
5578 (aarch64_call_properties): New function.
5579 (aarch64_modifies_global_state_p): Likewise.
5580 (aarch64_reads_global_state_p): Likewise.
5581 (aarch64_could_trap_p): Likewise.
5582 (aarch64_add_attribute): Likewise.
5583 (aarch64_get_attributes): Likewise.
5584 (aarch64_init_simd_builtins): Add attributes for each built-in function.
5586 2020-07-31 Richard Biener <rguenther@suse.de>
5589 * var-tracking.c (vt_find_locations): Use
5590 rev_post_order_and_mark_dfs_back_seme and separately iterate
5593 2020-07-31 Richard Biener <rguenther@suse.de>
5595 * cfganal.h (rev_post_order_and_mark_dfs_back_seme): Adjust
5597 * cfganal.c (rpoamdbs_bb_data): New struct with pre BB data.
5598 (tag_header): New helper.
5599 (cmp_edge_dest_pre): Likewise.
5600 (rev_post_order_and_mark_dfs_back_seme): Compute SCCs,
5601 find SCC exits and perform a DFS walk with extra edges to
5602 compute a RPO with adjacent SCC members when requesting an
5603 iteration optimized order and populate the toplevel SCC array.
5604 * tree-ssa-sccvn.c (do_rpo_vn): Remove ad-hoc computation
5605 of max_rpo and fill it in from SCC extent info instead.
5607 2020-07-30 Will Schmidt <will_schmidt@vnet.ibm.com>
5609 * config/rs6000/altivec.h (vec_test_lsbb_all_ones): New define.
5610 (vec_test_lsbb_all_zeros): New define.
5611 * config/rs6000/rs6000-builtin.def (BU_P10_VSX_1): New built-in
5613 (XVTLSBB_ZEROS, XVTLSBB_ONES): New builtin defines.
5614 (xvtlsbb_all_zeros, xvtlsbb_all_ones): New builtin overloads.
5615 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XVTLSBB_ZEROS,
5616 P10_BUILTIN_VEC_XVTLSBB_ONES): New altivec_builtin_types entries.
5617 * config/rs6000/rs6000.md (UNSPEC_XVTLSBB): New unspec.
5618 * config/rs6000/vsx.md (*xvtlsbb_internal): New instruction define.
5619 (xvtlsbbo, xvtlsbbz): New instruction expands.
5621 2020-07-30 Cooper Qu <cooper.qu@linux.alibaba.com>
5623 * config/riscv/riscv-opts.h (stack_protector_guard): New enum.
5624 * config/riscv/riscv.c (riscv_option_override): Handle
5626 * config/riscv/riscv.md (stack_protect_set): New pattern to handle
5627 flexible stack protector guard settings.
5628 (stack_protect_set_<mode>): Ditto.
5629 (stack_protect_test): Ditto.
5630 (stack_protect_test_<mode>): Ditto.
5631 * config/riscv/riscv.opt (mstack-protector-guard=,
5632 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
5634 * doc/invoke.texi (Option Summary) [RISC-V Options]:
5635 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
5636 -mstack-protector-guard-offset=.
5637 (RISC-V Options): Ditto.
5639 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
5642 * configure: Regenerated.
5644 2020-07-30 Richard Biener <rguenther@suse.de>
5646 PR tree-optimization/96370
5647 * tree-ssa-reassoc.c (rewrite_expr_tree): Add operation
5648 code parameter and use it instead of picking it up from
5649 the stmt that is being rewritten.
5650 (reassociate_bb): Pass down the operation code.
5652 2020-07-30 Roger Sayle <roger@nextmovesoftware.com>
5653 Tom de Vries <tdevries@suse.de>
5655 * config/nvptx/nvptx.md (nvptx_vector_index_operand): New predicate.
5656 (VECELEM): New mode attribute for a vector's uppercase element mode.
5657 (Vecelem): New mode attribute for a vector's lowercase element mode.
5658 (*vec_set<mode>_0, *vec_set<mode>_1, *vec_set<mode>_2)
5659 (*vec_set<mode>_3): New instructions.
5660 (vec_set<mode>): New expander to generate one of the above insns.
5661 (vec_extract<mode><Vecelem>): New instruction.
5663 2020-07-30 Martin Liska <mliska@suse.cz>
5666 * config/i386/x86-tune-costs.h: Use libcall for large sizes for
5667 -m32. Start using libcall from 128+ bytes.
5669 2020-07-30 Martin Liska <mliska@suse.cz>
5671 * config/i386/x86-tune-costs.h: Change code formatting.
5673 2020-07-29 Roger Sayle <roger@nextmovesoftware.com>
5675 * config/nvptx/nvptx.md (recip<mode>2): New instruction.
5677 2020-07-29 Fangrui Song <maskray@google.com>
5680 * opts.c (common_handle_option): Don't make -gsplit-dwarf imply -g.
5681 * doc/invoke.texi (-gsplit-dwarf): Update documentation.
5683 2020-07-29 Joe Ramsay <joe.ramsay@arm.com>
5685 * config/arm/arm-protos.h (arm_coproc_mem_operand_no_writeback):
5687 (arm_mve_mode_and_operands_type_check): Declare prototype.
5688 * config/arm/arm.c (arm_coproc_mem_operand): Refactor to use
5689 _arm_coproc_mem_operand.
5690 (arm_coproc_mem_operand_wb): New function to cover full, limited
5692 (arm_coproc_mem_operand_no_writeback): New constraint for memory
5693 operand with no writeback.
5694 (arm_print_operand): Extend 'E' specifier for memory operand
5695 that does not support writeback.
5696 (arm_mve_mode_and_operands_type_check): New constraint check for
5697 MVE memory operands.
5698 * config/arm/constraints.md: Add Uj constraint for VFP vldr.16
5700 * config/arm/vfp.md (*mov_load_vfp_hf16): New pattern for
5702 (*mov_store_vfp_hf16): New pattern for vstr.16.
5703 (*mov<mode>_vfp_<mode>16): Remove MVE moves.
5705 2020-07-29 Richard Biener <rguenther@suse.de>
5707 PR tree-optimization/96349
5708 * tree-ssa-loop-split.c (stmt_semi_invariant_p_1): When the
5709 condition runs into a loop PHI with an abnormal entry value give up.
5711 2020-07-29 Richard Biener <rguenther@suse.de>
5713 * tree-vectorizer.c (vectorize_loops): Reset the SCEV
5714 cache if we removed any SIMD UID SSA defs.
5715 * gimple-loop-interchange.cc (pass_linterchange::execute):
5716 Reset the scev cache if we interchanged a loop.
5718 2020-07-29 Richard Biener <rguenther@suse.de>
5720 PR tree-optimization/95679
5721 * tree-ssa-propagate.h
5722 (substitute_and_fold_engine::propagate_into_phi_args): Return
5723 whether anything changed.
5724 * tree-ssa-propagate.c
5725 (substitute_and_fold_engine::propagate_into_phi_args): Likewise.
5726 (substitute_and_fold_dom_walker::before_dom_children): Update
5729 2020-07-29 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
5731 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5732 Ensure that loop variable npeel_tmp advances in each iteration.
5734 2020-07-29 Hans-Peter Nilsson <hp@bitrange.com>
5736 * config/mmix/mmix.h (NO_FUNCTION_CSE): Define to 1.
5738 2020-07-29 Hans-Peter Nilsson <hp@bitrange.com>
5740 * config/mmix/mmix.h (ASM_OUTPUT_EXTERNAL): Define to
5741 default_elf_asm_output_external.
5743 2020-07-28 Sergei Trofimovich <siarheit@google.com>
5746 * ipa-cp.c (has_undead_caller_from_outside_scc_p): Consider
5747 unoptimized callers as undead.
5749 2020-07-28 Roger Sayle <roger@nextmovesoftware.com>
5750 Richard Biener <rguenther@suse.de>
5752 * match.pd (popcount(x)&1 -> parity(x)): New simplification.
5753 (parity(~x) -> parity(x)): New simplification.
5754 (parity(x)^parity(y) -> parity(x^y)): New simplification.
5755 (parity(x&1) -> x&1): New simplification.
5756 (popcount(x) -> x>>C): New simplification.
5758 2020-07-28 Roger Sayle <roger@nextmovesoftware.com>
5759 Tom de Vries <tdevries@suse.de>
5761 * config/nvptx/nvptx.md (extendqihi2): New instruction.
5762 (ashl<mode>3, ashr<mode>3, lshr<mode>3): Support HImode.
5764 2020-07-28 Jakub Jelinek <jakub@redhat.com>
5767 * calls.c (maybe_warn_rdwr_sizes): Add FNDECL and FNTYPE arguments,
5768 instead of trying to rediscover them in the body.
5769 (initialize_argument_information): Adjust caller.
5771 2020-07-28 Kewen Lin <linkw@linux.ibm.com>
5773 * tree-vect-loop.c (vect_get_known_peeling_cost): Factor out some code
5774 to determine peel_iters_epilogue to...
5775 (vect_get_peel_iters_epilogue): ...this new function.
5776 (vect_estimate_min_profitable_iters): Refactor cost calculation on
5777 peel_iters_prologue and peel_iters_epilogue.
5779 2020-07-27 Martin Sebor <msebor@redhat.com>
5781 PR tree-optimization/84079
5782 * gimple-array-bounds.cc (array_bounds_checker::check_addr_expr):
5783 Only allow just-past-the-end references for the most significant
5786 2020-07-27 Hu Jiangping <hujiangping@cn.fujitsu.com>
5789 * opts.c (check_alignment_argument): Set the -falign-Name
5790 on/off flag on and set the -falign-Name string value null,
5791 when the command-line specified argument is zero.
5793 2020-07-27 Martin Liska <mliska@suse.cz>
5795 PR tree-optimization/96058
5796 * expr.c (string_constant): Build string_constant only
5797 for a type that has same precision as char_type_node
5798 and is an integral type.
5800 2020-07-27 Richard Biener <rguenther@suse.de>
5802 * var-tracking.c (variable_tracking_main_1): Remove call
5803 to mark_dfs_back_edges.
5805 2020-07-27 Martin Liska <mliska@suse.cz>
5807 PR tree-optimization/96128
5808 * tree-vect-generic.c (expand_vector_comparison): Do not expand
5809 vector comparison with VEC_COND_EXPR.
5811 2020-07-27 H.J. Lu <hjl.tools@gmail.com>
5814 * common.opt: Add -fcf-protection=check.
5815 * flag-types.h (cf_protection_level): Add CF_CHECK.
5816 * lto-wrapper.c (merge_and_complain): Issue an error for
5817 mismatching -fcf-protection values with -fcf-protection=check.
5818 Otherwise, merge -fcf-protection values.
5819 * doc/invoke.texi: Document -fcf-protection=check.
5821 2020-07-27 Martin Liska <mliska@suse.cz>
5824 * symbol-summary.h: Call vec_safe_reserve before grow is called
5825 in order to grow to a reasonable size.
5826 * vec.h (vec_safe_reserve): Add missing function for vl_ptr
5829 2020-07-26 Hans-Peter Nilsson <hp@bitrange.com>
5831 * configure.ac (out-of-tree linker .hidden support): Don't turn off
5832 for mmix-knuth-mmixware.
5833 * configure: Regenerate.
5835 2020-07-26 Aaron Sawdey <acsawdey@linux.ibm.com>
5837 * config/rs6000/rs6000.c (rs6000_option_override_internal):
5838 Set the default value for -mblock-ops-unaligned-vsx.
5839 * config/rs6000/rs6000.opt: Add -mblock-ops-unaligned-vsx.
5840 * doc/invoke.texi: Document -mblock-ops-unaligned-vsx.
5842 2020-07-25 Hans-Peter Nilsson <hp@bitrange.com>
5844 * config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override the default
5845 with default_asm_output_ident_directive.
5847 2020-07-25 Andrew Stubbs <ams@codesourcery.com>
5849 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): New function.
5850 (TARGET_SCALAR_MODE_SUPPORTED_P): New define.
5852 2020-07-24 David Edelsohn <dje.gcc@gmail.com>
5853 Clement Chigot <clement.chigot@atos.net>
5855 * config.gcc (powerpc-ibm-aix7.1): Use t-aix64 and biarch64 for
5857 * config/rs6000/aix71.h (ASM_SPEC): Remove aix64 option.
5860 (ASM_CPU_SPEC): Remove vsx and altivec options.
5861 (CPP_SPEC_COMMON): Rename from CPP_SPEC.
5864 (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
5865 (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
5866 (LIB_SPEC_COMMON): Rename from LIB_SPEC.
5869 (LINK_SPEC_COMMON): Rename from LINK_SPEC.
5872 (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
5873 (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
5875 (CPLUSPLUS_CPP_SPEC): Same.
5878 (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
5879 * config/rs6000/aix72.h (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
5880 * config/rs6000/defaultaix64.h: Delete.
5882 2020-07-24 Segher Boessenkool <segher@kernel.crashing.org>
5884 * config/rs6000/rs6000.opt: Delete -mpower10.
5886 2020-07-24 Alexandre Oliva <oliva@adacore.com>
5888 * config/i386/intelmic-mkoffload.c
5889 (generate_target_descr_file): Use dumppfx for save_temps
5890 files. Pass -dumpbase et al down to the compiler.
5891 (generate_target_offloadend_file): Likewise.
5892 (generate_host_descr_file): Likewise.
5893 (prepare_target_image): Likewise. Move out_obj_filename
5895 (main): ... here. Detect -dumpbase, set dumppfx too.
5897 2020-07-24 Alexandre Oliva <oliva@adacore.com>
5900 * gcc.c (process_command): Adjust and document conditions to
5903 2020-07-24 Matthias Klose <doko@ubuntu.com>
5905 * config/aarch64/aarch64.c (+aarch64_offload_options,
5906 TARGET_OFFLOAD_OPTIONS): New.
5908 2020-07-24 Uroš Bizjak <ubizjak@gmail.com>
5911 * config/i386/sync.md (mmem_thread_fence): Emit mfence_sse2 for -Os.
5913 2020-07-23 Roger Sayle <roger@nextmovesoftware.com>
5915 PR rtl-optimization/96298
5916 * simplify-rtx.c (simplify_binary_operation_1) [XOR]: Xor doesn't
5917 distribute over xor, so (a^b)^(c^b) is not the same as (a^c)^b.
5919 2020-07-23 Dong JianQiang <dongjianqiang2@huawei.com>
5921 PR gcov-profile/96267
5922 * gcov-io.c (gcov_open): enable if IN_GCOV_TOOL.
5924 2020-07-23 Kewen Lin <linkw@linux.ibm.com>
5926 * config/rs6000/rs6000.c (adjust_vectorization_cost): Renamed to ...
5927 (rs6000_adjust_vect_cost_per_stmt): ... here.
5928 (rs6000_add_stmt_cost): Rename adjust_vectorization_cost to
5929 rs6000_adjust_vect_cost_per_stmt.
5931 2020-07-23 Kewen Lin <linkw@linux.ibm.com>
5933 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
5934 IFN_LEN_LOAD and IFN_LEN_STORE.
5935 (get_alias_ptr_type_for_ptr_address): Likewise.
5937 2020-07-23 Kito Cheng <kito.cheng@sifive.com>
5940 * asan.c (asan_shadow_offset_set_p): New.
5941 * asan.h (asan_shadow_offset_set_p): Ditto.
5942 * toplev.c (process_options): Allow -fsanitize=kernel-address
5943 even TARGET_ASAN_SHADOW_OFFSET not implemented, only check when
5944 asan stack protection is enabled.
5946 2020-07-22 Peter Bergner <bergner@linux.ibm.com>
5949 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Handle
5950 little-endian memory ordering.
5952 2020-07-22 Nathan Sidwell <nathan@acm.org>
5954 * dumpfile.c (parse_dump_option): Deal with filenames
5957 2020-07-22 Nathan Sidwell <nathan@acm.org>
5959 * incpath.c (add_path): Avoid multiple strlen calls.
5961 2020-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5963 * expmed.c (expand_sdiv_pow2): Check return value from emit_store_flag
5964 is not NULL_RTX before use.
5966 2020-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5968 * expr.c (convert_modes): Allow a constant integer to be converted to
5969 any scalar int mode.
5971 2020-07-22 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5973 * config/aarch64/aarch64-ldpstp.md: Add two peepholes for adjusted vector
5974 V2SI, V2SF, V2DI, V2DF load pair and store pair modes.
5975 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
5976 Change mode parameter to machine_mode.
5977 (aarch64_operands_adjust_ok_for_ldpstp): Change mode parameter to
5979 * config/aarch64/aarch64.c (aarch64_operands_adjust_ok_for_ldpstp):
5980 Change mode parameter to machine_mode.
5981 (aarch64_gen_adjusted_ldpstp): Change mode parameter to machine_mode.
5982 * config/aarch64/iterators.md (VP_2E): New iterator for 2 element vectors.
5984 2020-07-22 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
5986 * doc/languages.texi: Fix “then”/“than” typo.
5988 2020-07-21 Sunil K Pandey <skpgkp2@gmail.com>
5991 * config/i386/i386-protos.h (ix86_local_alignment): Add
5992 another function parameter may_lower alignment. Default is
5994 * config/i386/i386.c (ix86_lower_local_decl_alignment): New
5996 (ix86_local_alignment): Amend ix86_local_alignment to accept
5997 another parameter may_lower. If may_lower is true, new align
5998 may be lower than incoming alignment. If may_lower is false,
5999 new align will be greater or equal to incoming alignment.
6000 (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): Define.
6001 * doc/tm.texi: Regenerate.
6002 * doc/tm.texi.in (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): New
6004 * target.def (lower_local_decl_alignment): New hook.
6006 2020-07-21 Uroš Bizjak <ubizjak@gmail.com>
6009 * config/i386/sync.md (mfence_sse2): Enable for
6010 TARGET_64BIT and TARGET_SSE2.
6011 (mfence_nosse): Always enable.
6013 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6015 * config/msp430/msp430-protos.h (msp430_do_not_relax_short_jumps):
6017 * config/msp430/msp430.c (msp430_do_not_relax_short_jumps): Likewise.
6018 * config/msp430/msp430.md (cbranchhi4_real): Remove special case for
6019 msp430_do_not_relax_short_jumps.
6021 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6023 * config/msp430/msp430.md: New "extendqipsi2" define_insn.
6025 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6027 * config/msp430/msp430.h (NO_FUNCTION_CSE): Set to true at -O2 and
6030 2020-07-21 Xionghu Luo <luoxhu@linux.ibm.com>
6032 PR rtl-optimization/89310
6033 * config/rs6000/rs6000.md (movsf_from_si2): New define_insn_and_split.
6035 2020-07-20 Hans-Peter Nilsson <hp@bitrange.com>
6037 * config/mmix/mmix.c (mmix_expand_prologue): Calculate the total
6038 allocated size and set current_function_static_stack_size, if
6039 flag_stack_usage_info.
6041 2020-07-20 Sergei Trofimovich <siarheit@google.com>
6044 * config/sparc/linux.h (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
6045 to get crtendS.o for !no-pie mode.
6046 * config/sparc/linux64.h (ENDFILE_SPEC): Ditto.
6048 2020-07-20 Yang Yang <yangyang305@huawei.com>
6050 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6051 VIEW_CONVERT_EXPRs if the arguments types and return type
6052 of simd clone function are distinct with the vectype of stmt.
6054 2020-07-20 Uroš Bizjak <ubizjak@gmail.com>
6057 * config/i386/i386.h (TARGET_AVOID_MFENCE):
6058 Rename from TARGET_USE_XCHG_FOR_ATOMIC_STORE.
6059 * config/i386/sync.md (mfence_sse2): Disable for TARGET_AVOID_MFENCE.
6060 (mfence_nosse): Enable also for TARGET_AVOID_MFENCE. Emit stack
6061 referred memory in word_mode.
6062 (mem_thread_fence): Do not generate mfence_sse2 pattern when
6063 TARGET_AVOID_MFENCE is true.
6064 (atomic_store<mode>): Update for rename.
6065 * config/i386/x86-tune.def (X86_TUNE_AVOID_MFENCE):
6066 Rename from X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE.
6068 2020-07-20 Martin Sebor <msebor@redhat.com>
6072 * builtins.c (inline_expand_builtin_string_cmp): Rename...
6073 (inline_expand_builtin_bytecmp): ...to this.
6074 (builtin_memcpy_read_str): Don't expect data to be nul-terminated.
6075 (expand_builtin_memory_copy_args): Handle object representations
6076 with embedded nul bytes.
6077 (expand_builtin_memcmp): Same.
6078 (expand_builtin_strcmp): Adjust call to naming change.
6079 (expand_builtin_strncmp): Same.
6080 * expr.c (string_constant): Create empty strings with nonzero size.
6081 * fold-const.c (c_getstr): Rename locals and update comments.
6082 * tree.c (build_string): Accept null pointer argument.
6083 (build_string_literal): Same.
6084 * tree.h (build_string): Provide a default.
6085 (build_string_literal): Same.
6087 2020-07-20 Richard Biener <rguenther@suse.de>
6089 * cfganal.c (rev_post_order_and_mark_dfs_back_seme): Remove
6090 write-only post array.
6092 2020-07-20 Jakub Jelinek <jakub@redhat.com>
6095 * gimple-fold.c (fold_const_aggregate_ref_1): For COMPONENT_REF
6096 of a bitfield not aligned on byte boundaries try to
6097 fold_ctor_reference DECL_BIT_FIELD_REPRESENTATIVE if any and
6098 adjust it depending on endianity.
6100 2020-07-20 Jakub Jelinek <jakub@redhat.com>
6103 * fold-const.c (native_encode_initializer): Handle bit-fields.
6105 2020-07-20 Kewen Lin <linkw@linux.ibm.com>
6107 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6108 Set param_vect_partial_vector_usage to 0 explicitly.
6109 * doc/invoke.texi (vect-partial-vector-usage): Document new option.
6110 * optabs-query.c (get_len_load_store_mode): New function.
6111 * optabs-query.h (get_len_load_store_mode): New declare.
6112 * params.opt (vect-partial-vector-usage): New.
6113 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Add the
6114 handlings for vectorization using length-based partial vectors, call
6115 vect_gen_len for length generation, and rename some variables with
6116 items instead of scalars.
6117 (vect_set_loop_condition_partial_vectors): Add the handlings for
6118 vectorization using length-based partial vectors.
6119 (vect_do_peeling): Allow remaining eiters less than epilogue vf for
6120 LOOP_VINFO_USING_PARTIAL_VECTORS_P.
6121 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Init
6122 epil_using_partial_vectors_p.
6123 (_loop_vec_info::~_loop_vec_info): Call release_vec_loop_controls
6124 for lengths destruction.
6125 (vect_verify_loop_lens): New function.
6126 (vect_analyze_loop): Add handlings for epilogue of loop when it's
6127 marked to use vectorization using partial vectors.
6128 (vect_analyze_loop_2): Add the check to allow only one vectorization
6129 approach using partial vectorization at the same time. Check param
6130 vect-partial-vector-usage for partial vectors decision. Mark
6131 LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P if the epilogue is
6132 considerable to use partial vectors. Call release_vec_loop_controls
6133 for lengths destruction.
6134 (vect_estimate_min_profitable_iters): Adjust for loop vectorization
6135 using length-based partial vectors.
6136 (vect_record_loop_mask): Init factor to 1 for vectorization using
6137 mask-based partial vectors.
6138 (vect_record_loop_len): New function.
6139 (vect_get_loop_len): Likewise.
6140 * tree-vect-stmts.c (check_load_store_for_partial_vectors): Add
6141 checks for vectorization using length-based partial vectors. Factor
6142 some code to lambda function get_valid_nvectors.
6143 (vectorizable_store): Add handlings when using length-based partial
6145 (vectorizable_load): Likewise.
6146 (vect_gen_len): New function.
6147 * tree-vectorizer.h (struct rgroup_controls): Add field factor
6148 mainly for length-based partial vectors.
6149 (vec_loop_lens): New typedef.
6150 (_loop_vec_info): Add lens and epil_using_partial_vectors_p.
6151 (LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P): New macro.
6152 (LOOP_VINFO_LENS): Likewise.
6153 (LOOP_VINFO_FULLY_WITH_LENGTH_P): Likewise.
6154 (vect_record_loop_len): New declare.
6155 (vect_get_loop_len): Likewise.
6156 (vect_gen_len): Likewise.
6158 2020-07-20 Hans-Peter Nilsson <hp@bitrange.com>
6160 * config/mmix/mmix.c (mmix_option_override): Reinstate default
6161 integer-emitting targetm.asm_out pseudos when dumping detailed
6163 (mmix_assemble_integer): Update comment.
6165 2020-07-19 H.J. Lu <hjl.tools@gmail.com>
6169 * config/i386/cpuid.h: Add include guard.
6172 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
6175 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
6177 2020-07-18 Peter Bergner <bergner@linux.ibm.com>
6180 * config/rs6000/dfp.md (trunctdsd2): New define_insn.
6181 * config/rs6000/rs6000.md (define_attr "isa"): Add p9.
6182 (define_attr "enabled"): Handle p9.
6184 2020-07-17 Roger Sayle <roger@nextmovesoftware.com>
6186 * function.c (assign_parm_setup_block): Use the macro
6187 TRULY_NOOP_TRUNCATION_MODES_P instead of calling
6188 targetm.truly_noop_truncation directly.
6190 2020-07-17 H.J. Lu <hjl.tools@gmail.com>
6194 * config/i386/sse.md (VF_AVX512VL_VF1_128_256): Renamed to ...
6195 (VF1_AVX512ER_128_256): This. Drop DF vector modes.
6196 (rsqrt<mode>2): Replace VF_AVX512VL_VF1_128_256 with
6197 VF1_AVX512ER_128_256.
6199 2020-07-17 Tamar Christina <tamar.christina@arm.com>
6201 * doc/sourcebuild.texi (dg-set-compiler-env-var,
6202 dg-set-target-env-var): Document.
6204 2020-07-17 Tamar Christina <tamar.christina@arm.com>
6206 * config/arm/driver-arm.c (host_detect_local_cpu): Add GCC_CPUINFO.
6208 2020-07-17 Tamar Christina <tamar.christina@arm.com>
6210 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
6213 2020-07-17 Tamar Christina <tamar.christina@arm.com>
6215 * config/aarch64/driver-aarch64.c (INCLUDE_SET): New.
6216 (parse_field): Use std::string.
6217 (split_words, readline, find_field): New.
6218 (host_detect_local_cpu): Fix truncation issues.
6220 2020-07-17 Andrew Stubbs <ams@codesourcery.com>
6222 * config/gcn/mkoffload.c (EM_AMDGPU): Undefine before defining.
6223 (ELFOSABI_AMDGPU_HSA): Likewise.
6224 (ELFABIVERSION_AMDGPU_HSA): Likewise.
6225 (EF_AMDGPU_MACH_AMDGCN_GFX803): Likewise.
6226 (EF_AMDGPU_MACH_AMDGCN_GFX900): Likewise.
6227 (EF_AMDGPU_MACH_AMDGCN_GFX906): Likewise.
6230 2020-07-17 Andrew Pinski <apinksi@marvell.com>
6231 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
6234 * config/aarch64/aarch64.c (aarch64_evpc_ins): New function.
6235 (aarch64_expand_vec_perm_const_1): Call it.
6236 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_copy_lane): Make
6237 public, and add a "@" prefix.
6239 2020-07-17 Andrew Pinski <apinksi@marvell.com>
6240 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
6243 * config/aarch64/aarch64.c (aarch64_evpc_reencode): New function.
6244 (aarch64_expand_vec_perm_const_1): Call it.
6246 2020-07-17 Zhiheng Xie <xiezhiheng@huawei.com>
6248 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6249 Add new field flags.
6250 (VAR1): Add new field FLAG in macro.
6266 (aarch64_general_fold_builtin): Likewise.
6267 (aarch64_general_gimple_fold_builtin): Likewise.
6268 * config/aarch64/aarch64-simd-builtins.def: Add default flag for
6269 each built-in function.
6270 * config/aarch64/geniterators.sh: Add new field in BUILTIN macro.
6272 2020-07-17 Andreas Krebbel <krebbel@linux.ibm.com>
6275 * config/s390/s390.c (s390_expand_insv): Invoke the movstrict
6276 expanders to generate the pattern.
6277 * config/s390/s390.md ("*movstricthi", "*movstrictqi"): Remove the
6278 '*' to have callable expanders.
6280 2020-07-16 Hans-Peter Nilsson <hp@axis.com>
6281 Segher Boessenkool <segher@kernel.crashing.org>
6284 * combine.c (is_just_move): Take an rtx_insn* as argument. Use
6287 2020-07-16 Uroš Bizjak <ubizjak@gmail.com>
6290 * config/i386/sync.md
6291 (peephole2 to remove unneded compare after CMPXCHG):
6292 New pattern, also handle XOR zeroing and load of -1 by OR.
6294 2020-07-16 Eric Botcazou <ebotcazou@adacore.com>
6296 * config/i386/i386.c (ix86_compute_frame_layout): Minor tweak.
6297 (ix86_adjust_stack_and_probe): Delete.
6298 (ix86_adjust_stack_and_probe_stack_clash): Rename to above and add
6299 PROTECTION_AREA parameter. If it is true, probe PROBE_INTERVAL plus
6300 a small dope beyond SIZE bytes.
6301 (ix86_emit_probe_stack_range): Use local variable.
6302 (ix86_expand_prologue): Adjust calls to ix86_adjust_stack_and_probe
6303 and tidy up the stack checking code.
6304 * explow.c (get_stack_check_protect): Fix head comment.
6305 (anti_adjust_stack_and_probe_stack_clash): Likewise.
6306 (allocate_dynamic_stack_space): Add comment.
6307 * tree-nested.c (lookup_field_for_decl): Set the DECL_IGNORED_P and
6308 TREE_NO_WARNING but not TREE_ADDRESSABLE flags on the field.
6310 2020-07-16 Andrew Stubbs <ams@codesourcery.com>
6312 * config/gcn/mkoffload.c: Include simple-object.h and elf.h.
6313 (EM_AMDGPU): New macro.
6314 (ELFOSABI_AMDGPU_HSA): New macro.
6315 (ELFABIVERSION_AMDGPU_HSA): New macro.
6316 (EF_AMDGPU_MACH_AMDGCN_GFX803): New macro.
6317 (EF_AMDGPU_MACH_AMDGCN_GFX900): New macro.
6318 (EF_AMDGPU_MACH_AMDGCN_GFX906): New macro.
6319 (R_AMDGPU_NONE): New macro.
6320 (R_AMDGPU_ABS32_LO): New macro.
6321 (R_AMDGPU_ABS32_HI): New macro.
6322 (R_AMDGPU_ABS64): New macro.
6323 (R_AMDGPU_REL32): New macro.
6324 (R_AMDGPU_REL64): New macro.
6325 (R_AMDGPU_ABS32): New macro.
6326 (R_AMDGPU_GOTPCREL): New macro.
6327 (R_AMDGPU_GOTPCREL32_LO): New macro.
6328 (R_AMDGPU_GOTPCREL32_HI): New macro.
6329 (R_AMDGPU_REL32_LO): New macro.
6330 (R_AMDGPU_REL32_HI): New macro.
6331 (reserved): New macro.
6332 (R_AMDGPU_RELATIVE64): New macro.
6333 (gcn_s1_name): Delete global variable.
6334 (gcn_s2_name): Delete global variable.
6335 (gcn_o_name): Delete global variable.
6336 (gcn_cfile_name): Delete global variable.
6337 (files_to_cleanup): New global variable.
6338 (offload_abi): New global variable.
6339 (tool_cleanup): Use files_to_cleanup, not explicit list.
6340 (copy_early_debug_info): New function.
6341 (main): New local variables gcn_s1_name, gcn_s2_name, gcn_o_name,
6343 Create files_to_cleanup obstack.
6344 Recognize -march options.
6345 Copy early debug info from input .o files.
6347 2020-07-16 Andrea Corallo <andrea.corallo@arm.com>
6349 * Makefile.in (TAGS): Remove 'params.def'.
6351 2020-07-16 Roger Sayle <roger@nextmovesoftware.com>
6353 * target.def (TARGET_TRULY_NOOP_TRUNCATION): Clarify that
6354 targets that return false, indicating SUBREGs shouldn't be
6355 used, also need to provide a trunc?i?i2 optab that performs this
6357 * doc/tm.texi: Regenerate.
6359 2020-07-15 Uroš Bizjak <ubizjak@gmail.com>
6362 * config/i386/sync.md
6363 (peephole2 to remove unneded compare after CMPXCHG): New pattern.
6365 2020-07-15 Jakub Jelinek <jakub@redhat.com>
6368 * omp-general.h (struct omp_for_data): Rename min_inner_iterations
6369 member to first_inner_iterations, adjust comment.
6370 * omp-general.c (omp_extract_for_data): Adjust for the above change.
6371 Always use n1first and n2first to compute it, rather than depending
6372 on single_nonrect_cond_code. Similarly, always compute factor
6373 as (m2 - m1) * outer_step / inner_step rather than sometimes m1 - m2
6374 depending on single_nonrect_cond_code.
6375 * omp-expand.c (expand_omp_for_init_vars): Rename min_inner_iterations
6376 to first_inner_iterations and min_inner_iterationsd to
6377 first_inner_iterationsd.
6379 2020-07-15 Jakub Jelinek <jakub@redhat.com>
6382 * config/i386/avx512fintrin.h (_mm512_cmpeq_pd_mask,
6383 _mm512_mask_cmpeq_pd_mask, _mm512_cmplt_pd_mask,
6384 _mm512_mask_cmplt_pd_mask, _mm512_cmple_pd_mask,
6385 _mm512_mask_cmple_pd_mask, _mm512_cmpunord_pd_mask,
6386 _mm512_mask_cmpunord_pd_mask, _mm512_cmpneq_pd_mask,
6387 _mm512_mask_cmpneq_pd_mask, _mm512_cmpnlt_pd_mask,
6388 _mm512_mask_cmpnlt_pd_mask, _mm512_cmpnle_pd_mask,
6389 _mm512_mask_cmpnle_pd_mask, _mm512_cmpord_pd_mask,
6390 _mm512_mask_cmpord_pd_mask, _mm512_cmpeq_ps_mask,
6391 _mm512_mask_cmpeq_ps_mask, _mm512_cmplt_ps_mask,
6392 _mm512_mask_cmplt_ps_mask, _mm512_cmple_ps_mask,
6393 _mm512_mask_cmple_ps_mask, _mm512_cmpunord_ps_mask,
6394 _mm512_mask_cmpunord_ps_mask, _mm512_cmpneq_ps_mask,
6395 _mm512_mask_cmpneq_ps_mask, _mm512_cmpnlt_ps_mask,
6396 _mm512_mask_cmpnlt_ps_mask, _mm512_cmpnle_ps_mask,
6397 _mm512_mask_cmpnle_ps_mask, _mm512_cmpord_ps_mask,
6398 _mm512_mask_cmpord_ps_mask): Move outside of __OPTIMIZE__ guarded
6401 2020-07-15 Jakub Jelinek <jakub@redhat.com>
6404 * builtins.c: Include gimple-ssa.h, tree-ssa-live.h and
6406 (expand_expr_force_mode): If exp is a SSA_NAME with different mode
6407 from MODE and get_gimple_for_ssa_name is a cast from MODE, use the
6410 2020-07-15 Jiufu Guo <guojiufu@cn.ibm.com>
6412 * config/rs6000/rs6000.c (rs6000_loop_unroll_adjust): Refine hook.
6414 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
6416 * config/rs6000/rs6000.md (rotldi3_insert_sf): Add TARGET_POWERPC64
6418 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add
6419 TARGET_POWERPC64 requirement to TARGET_P8_VECTOR case.
6421 2020-07-14 Lewis Hyatt <lhyatt@gmail.com>
6423 PR preprocessor/49973
6425 * common.opt: Handle -ftabstop here instead of in c-family
6426 options. Add -fdiagnostics-column-unit= and
6427 -fdiagnostics-column-origin= options.
6428 * opts.c (common_handle_option): Handle the new options.
6429 * diagnostic-format-json.cc (json_from_expanded_location): Add
6430 diagnostic_context argument. Use it to convert column numbers as per
6432 (json_from_location_range): Likewise.
6433 (json_from_fixit_hint): Likewise.
6434 (json_end_diagnostic): Pass the new context argument to helper
6435 functions above. Add "column-origin" field to the output.
6436 (test_unknown_location): Add the new context argument to calls to
6438 (test_bad_endpoints): Likewise.
6439 * diagnostic-show-locus.c
6440 (exploc_with_display_col::exploc_with_display_col): Support
6442 (layout_point::layout_point): Make use of class
6443 exploc_with_display_col.
6444 (layout_range::layout_range): Likewise.
6445 (struct line_bounds): Clarify that the units are now always
6446 display columns. Rename members accordingly. Add constructor.
6447 (layout::print_source_line): Add support for tab expansion.
6448 (make_range): Adapt to class layout_range changes.
6449 (layout::maybe_add_location_range): Likewise.
6450 (layout::layout): Adapt to class exploc_with_display_col changes.
6451 (layout::calculate_x_offset_display): Support tabstop parameter.
6452 (layout::print_annotation_line): Adapt to struct line_bounds changes.
6453 (layout::print_line): Likewise.
6454 (line_label::line_label): Add diagnostic_context argument.
6455 (get_affected_range): Likewise.
6456 (get_printed_columns): Likewise.
6457 (layout::print_any_labels): Adapt to struct line_label changes.
6458 (class correction): Add m_tabstop member.
6459 (correction::correction): Add tabstop argument.
6460 (correction::compute_display_cols): Use m_tabstop.
6461 (class line_corrections): Add m_context member.
6462 (line_corrections::line_corrections): Add diagnostic_context argument.
6463 (line_corrections::add_hint): Use m_context to handle tabstops.
6464 (layout::print_trailing_fixits): Adapt to class line_corrections
6466 (test_layout_x_offset_display_utf8): Support tabstop parameter.
6467 (test_layout_x_offset_display_tab): New selftest.
6468 (test_one_liner_colorized_utf8): Likewise.
6469 (test_tab_expansion): Likewise.
6470 (test_diagnostic_show_locus_one_liner_utf8): Call the new tests.
6471 (diagnostic_show_locus_c_tests): Likewise.
6472 (test_overlapped_fixit_printing): Adapt to helper class and
6474 (test_overlapped_fixit_printing_utf8): Likewise.
6475 (test_overlapped_fixit_printing_2): Likewise.
6476 * diagnostic.h (enum diagnostics_column_unit): New enum.
6477 (struct diagnostic_context): Add members for the new options.
6478 (diagnostic_converted_column): Declare.
6479 (json_from_expanded_location): Add new context argument.
6480 * diagnostic.c (diagnostic_initialize): Initialize new members.
6481 (diagnostic_converted_column): New function.
6482 (maybe_line_and_column): Be willing to output a column of 0.
6483 (diagnostic_get_location_text): Convert column number as per the new
6485 (diagnostic_report_current_module): Likewise.
6486 (assert_location_text): Add origin and column_unit arguments for
6487 testing the new functionality.
6488 (test_diagnostic_get_location_text): Test the new functionality.
6489 * doc/invoke.texi: Document the new options and behavior.
6490 * input.h (location_compute_display_column): Add tabstop argument.
6491 * input.c (location_compute_display_column): Likewise.
6492 (test_cpp_utf8): Add selftests for tab expansion.
6493 * tree-diagnostic-path.cc (default_tree_make_json_for_path): Pass the
6494 new context argument to json_from_expanded_location().
6496 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6499 * expr.c (expand_constructor): Don't create temporary for store to
6500 volatile MEM if exp has an addressable type.
6502 2020-07-14 Nathan Sidwell <nathan@acm.org>
6504 * hash-map.h (hash_map::get): Note it is a pointer to value.
6505 * incpath.h (incpath_kind): Align comments.
6507 2020-07-14 Nathan Sidwell <nathan@acm.org>
6509 * tree-core.h (tree_decl_with_vis, tree_function_decl):
6510 Note additional padding on 64-bits
6511 * tree.c (cache_integer_cst): Note why no caching of enum literals.
6512 (get_tree_code_name): Robustify error case.
6514 2020-07-14 Nathan Sidwell <nathan@acm.org>
6516 * doc/gty.texi: Fic gt_cleare_cache name.
6517 * doc/invoke.texi: Remove duplicate opindex Wabi-tag.
6519 2020-07-14 Jakub Jelinek <jakub@redhat.com>
6521 * omp-general.h (struct omp_for_data): Add adjn1 member.
6522 * omp-general.c (omp_extract_for_data): For non-rect loop, punt on
6523 count computing if n1, n2 or step are not INTEGER_CST earlier.
6524 Narrow the outer iterator range if needed so that non-rect loop
6525 has at least one iteration for each outer range iteration. Compute
6527 * omp-expand.c (expand_omp_for_init_vars): Use adjn1 if non-NULL
6528 instead of the outer loop's n1.
6530 2020-07-14 Matthias Klose <doko@ubuntu.com>
6533 * lto-wrapper.c (merge_and_complain): Add decoded options as parameter,
6534 error on different values for -fcf-protection.
6535 (append_compiler_options): Pass -fcf-protection option.
6536 (find_and_merge_options): Add decoded options as parameter,
6537 pass decoded_options to merge_and_complain.
6538 (run_gcc): Pass decoded options to find_and_merge_options.
6539 * lto-opts.c (lto_write_options): Pass -fcf-protection option.
6541 2020-07-13 Alan Modra <amodra@gmail.com>
6543 * config/rs6000/rs6000.md (sibcall_local): Merge sibcall_local32
6544 and sibcall_local64.
6545 (sibcall_value_local): Similarly.
6547 2020-07-13 Nathan Sidwell <nathan@acm.org>
6549 * Makefile.in (distclean): Remove long gone cxxmain.c
6551 2020-07-13 H.J. Lu <hjl.tools@gmail.com>
6554 * config/i386/i386.md (cmpstrnsi): Pass a copy of the string
6555 length to cmpstrnqi patterns.
6557 2020-07-13 Jakub Jelinek <jakub@redhat.com>
6560 * ipa-fnsummary.c (analyze_function_body): Treat NULL bb->aux
6563 2020-07-13 Richard Biener <rguenther@suse.de>
6565 PR tree-optimization/96163
6566 * tree-vect-slp.c (vect_schedule_slp_instance): Put new stmts
6567 at least after region begin.
6569 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
6571 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
6572 __ARM_FEATURE_PAC_DEFAULT support.
6574 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
6577 * doc/extend.texi: Update the text for __builtin_return_address.
6579 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
6582 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
6583 Disable return address signing if __builtin_eh_return is used.
6585 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
6589 * config/aarch64/aarch64-protos.h (aarch64_return_addr_rtx): Declare.
6590 * config/aarch64/aarch64.c (aarch64_return_addr_rtx): New.
6591 (aarch64_return_addr): Use aarch64_return_addr_rtx.
6592 * config/aarch64/aarch64.h (PROFILE_HOOK): Likewise.
6594 2020-07-13 Richard Sandiford <richard.sandiford@arm.com>
6597 * tree.h (virtual_method_call_p): Add a default-false parameter
6598 that indicates whether the function is being called from dump
6600 (obj_type_ref_class): Likewise.
6601 * tree.c (virtual_method_call_p): Likewise.
6602 * ipa-devirt.c (obj_type_ref_class): Likewise. Lazily add ODR
6603 type information for the type when the parameter is false.
6604 * tree-pretty-print.c (dump_generic_node): Update calls to
6605 virtual_method_call_p and obj_type_ref_class accordingly.
6607 2020-07-13 Julian Brown <julian@codesourcery.com>
6608 Thomas Schwinge <thomas@codesourcery.com>
6610 * gimplify.c (gimplify_scan_omp_clauses): Do not strip
6611 GOMP_MAP_TO_PSET/GOMP_MAP_POINTER for OpenACC enter/exit data
6612 directives (see also PR92929).
6614 2020-07-13 Roger Sayle <roger@nextmovesoftware.com>
6616 * convert.c (convert_to_integer_1): Narrow integer operations
6617 even on targets that require explicit truncation instructions.
6619 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
6622 * config/cris/cris-passes.def: New file.
6623 * config/cris/t-cris (PASSES_EXTRA): Add cris-passes.def.
6624 * config/cris/cris.c: Add infrastructure bits and pass execute
6625 function cris_postdbr_cmpelim.
6626 * config/cris/cris-protos.h (make_pass_cris_postdbr_cmpelim): Declare.
6628 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
6630 * config/cris/t-cris: Remove gt-cris.h-related excessive cargo.
6632 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
6635 * config/cris/cris.md ("*add<mode>3_addi"): New splitter.
6636 ("*addi_b_<mode>"): New pattern.
6637 ("*addsi3<setnz>"): Remove stale %-related comment.
6639 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
6641 * config/cris/cris.md ("setnz_subst", "setnz_subst", "setcc_subst"):
6642 Use match_dup in output template, not match_operand.
6644 2020-07-13 Richard Biener <rguenther@suse.de>
6646 * var-tracking.c (bb_heap_node_t): Remove unused typedef.
6647 (vt_find_locations): Eliminate visited bitmap in favor of
6648 RPO order check. Dump statistics about the number of
6649 local BB dataflow computes.
6651 2020-07-13 Richard Biener <rguenther@suse.de>
6654 * expr.c (expand_constructor): Make a temporary also if we're
6655 storing to volatile memory.
6657 2020-07-13 Xionghu Luo <luoxhu@linux.ibm.com>
6659 * config/rs6000/rs6000.md (rotl_unspec): New
6660 define_insn_and_split.
6662 2020-07-13 Xionghu Luo <luoxhu@linux.ibm.com>
6664 * config/rs6000/rs6000.c (rs6000_expand_vector_init):
6665 Move V4SF to V4SI, init vector like V4SI and move to V4SF back.
6667 2020-07-11 Roger Sayle <roger@nextmovesoftware.com>
6669 * internal-fn.c (expand_mul_overflow): When checking for signed
6670 overflow from a widening multiplication, we access the truncated
6671 lowpart RES twice, so keep this value in a pseudo register.
6673 2020-07-11 Richard Sandiford <richard.sandiford@arm.com>
6675 PR tree-optimization/96146
6676 * value-range.cc (value_range::set): Only decompose POLY_INT_CST
6677 bounds to integers for VR_RANGE. Decay to VR_VARYING for anti-ranges
6678 involving POLY_INT_CSTs.
6680 2020-07-10 David Edelsohn <dje.gcc@gmail.com>
6683 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Only
6684 create named section for VAR_DECL or FUNCTION_DECL.
6686 2020-07-10 Joseph Myers <joseph@codesourcery.com>
6688 * glimits.h [__STDC_VERSION__ > 201710L] (BOOL_MAX, BOOL_WIDTH):
6691 2020-07-10 Alexander Popov <alex.popov@linux.com>
6693 * shrink-wrap.c (try_shrink_wrapping): Improve debug output.
6695 2020-07-10 Richard Sandiford <richard.sandiford@arm.com>
6698 * expr.c (expand_expr_real_2): When reducing bit fields,
6699 clear the target if it has a different mode from the expression.
6700 (reduce_to_bit_field_precision): Don't do that here. Instead
6701 assert that the target already has the correct mode.
6703 2020-07-10 Richard Sandiford <richard.sandiford@arm.com>
6707 * config/arm/arm.c (arm_attribute_table): Add
6708 "Advanced SIMD type".
6709 (arm_comp_type_attributes): Check that the "Advanced SIMD type"
6710 attributes are equal.
6711 * config/arm/arm-builtins.c: Include stringpool.h and
6713 (arm_mangle_builtin_vector_type): Use the mangling recorded
6714 in the "Advanced SIMD type" attribute.
6715 (arm_init_simd_builtin_types): Add an "Advanced SIMD type"
6716 attribute to each Advanced SIMD type, using the mangled type
6717 as the attribute's single argument.
6719 2020-07-10 Carl Love <cel@us.ibm.com>
6721 * config/rs6000/vsx.md (VSX_MM): New define_mode_iterator.
6722 (VSX_MM4): New define_mode_iterator.
6723 (vec_mtvsrbmi): New define_insn.
6724 (vec_mtvsr_<mode>): New define_insn.
6725 (vec_cntmb_<mode>): New define_insn.
6726 (vec_extract_<mode>): New define_insn.
6727 (vec_expand_<mode>): New define_insn.
6728 (define_c_enum unspec): Add entries UNSPEC_MTVSBM, UNSPEC_VCNTMB,
6729 UNSPEC_VEXTRACT, UNSPEC_VEXPAND.
6730 * config/rs6000/altivec.h ( vec_genbm, vec_genhm, vec_genwm,
6731 vec_gendm, vec_genqm, vec_cntm, vec_expandm, vec_extractm): Add
6733 * config/rs6000/rs6000-builtin.def: Add defines BU_P10_2, BU_P10_1.
6734 (BU_P10_1): Add definitions for mtvsrbm, mtvsrhm, mtvsrwm,
6735 mtvsrdm, mtvsrqm, vexpandmb, vexpandmh, vexpandmw, vexpandmd,
6736 vexpandmq, vextractmb, vextractmh, vextractmw, vextractmd, vextractmq.
6737 (BU_P10_2): Add definitions for cntmbb, cntmbh, cntmbw, cntmbd.
6738 (BU_P10_OVERLOAD_1): Add definitions for mtvsrbm, mtvsrhm,
6739 mtvsrwm, mtvsrdm, mtvsrqm, vexpandm, vextractm.
6740 (BU_P10_OVERLOAD_2): Add defition for cntm.
6741 * config/rs6000/rs6000-call.c (rs6000_expand_binop_builtin): Add
6742 checks for CODE_FOR_vec_cntmbb_v16qi, CODE_FOR_vec_cntmb_v8hi,
6743 CODE_FOR_vec_cntmb_v4si, CODE_FOR_vec_cntmb_v2di.
6744 (altivec_overloaded_builtins): Add overloaded argument entries for
6745 P10_BUILTIN_VEC_MTVSRBM, P10_BUILTIN_VEC_MTVSRHM,
6746 P10_BUILTIN_VEC_MTVSRWM, P10_BUILTIN_VEC_MTVSRDM,
6747 P10_BUILTIN_VEC_MTVSRQM, P10_BUILTIN_VEC_VCNTMBB,
6748 P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
6749 P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
6750 P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
6751 P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
6752 P10_BUILTIN_VEXPANDMQ, P10_BUILTIN_VEXTRACTMB,
6753 P10_BUILTIN_VEXTRACTMH, P10_BUILTIN_VEXTRACTMW,
6754 P10_BUILTIN_VEXTRACTMD, P10_BUILTIN_VEXTRACTMQ.
6755 (builtin_function_type): Add case entries for P10_BUILTIN_MTVSRBM,
6756 P10_BUILTIN_MTVSRHM, P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
6757 P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
6758 P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
6759 P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
6760 P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
6761 P10_BUILTIN_VEXPANDMQ.
6762 * config/rs6000/rs6000-builtin.def (altivec_overloaded_builtins): Add
6763 entries for MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM, VCNTM,
6764 VEXPANDM, VEXTRACTM.
6766 2020-07-10 Bill Seurer, 507-253-3502, seurer@us.ibm.com <(no_default)>
6769 * config/rs6000/rs6000-call.c: Add new type v16qi_ftype_pcvoid.
6770 (altivec_init_builtins) Change __builtin_altivec_mask_for_load to use
6771 v16qi_ftype_pcvoid with correct number of parameters.
6773 2020-07-10 H.J. Lu <hjl.tools@gmail.com>
6776 * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Check
6777 TARGET_AVX512VL when enabling FMA.
6779 2020-07-10 Andrea Corallo <andrea.corallo@arm.com>
6780 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
6781 Iain Apreotesei <iain.apreotesei@arm.com>
6783 * config/arm/arm-protos.h (arm_target_insn_ok_for_lob): New
6785 * config/arm/arm.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
6786 (arm_invalid_within_doloop): Implement invalid_within_doloop hook.
6787 (arm_target_insn_ok_for_lob): New function.
6788 * config/arm/arm.h (TARGET_HAVE_LOB): Define macro.
6789 * config/arm/thumb2.md (*doloop_end_internal, doloop_begin)
6790 (dls_insn): Add new patterns.
6791 (doloop_end): Modify to select LR when LOB is available.
6792 * config/arm/unspecs.md: Add new unspec.
6793 * doc/sourcebuild.texi (arm_v8_1_lob_ok)
6794 (arm_thumb2_ok_no_arm_v8_1_lob): Document new target supports
6797 2020-07-10 Richard Biener <rguenther@suse.de>
6799 PR tree-optimization/96133
6800 * gimple-fold.c (fold_array_ctor_reference): Do not
6801 recurse to folding a CTOR that does not fully cover the
6804 2020-07-10 Cui,Lili <lili.cui@intel.com>
6806 * common/config/i386/cpuinfo.h
6807 (get_intel_cpu): Handle sapphirerapids.
6808 * common/config/i386/i386-common.c
6809 (processor_names): Add sapphirerapids and alderlake.
6810 (processor_alias_table): Add sapphirerapids and alderlake.
6811 * common/config/i386/i386-cpuinfo.h
6812 (processor_subtypes): Add INTEL_COREI7_ALDERLAKE and
6813 INTEL_COREI7_ALDERLAKE.
6814 * config.gcc: Add -march=sapphirerapids and alderlake.
6815 * config/i386/driver-i386.c
6816 (host_detect_local_cpu) Handle sapphirerapids and alderlake.
6817 * config/i386/i386-c.c
6818 (ix86_target_macros_internal): Handle sapphirerapids and alderlake.
6819 * config/i386/i386-options.c
6820 (m_SAPPHIRERAPIDS) : Define.
6821 (m_ALDERLAKE): Ditto.
6822 (m_CORE_AVX512) : Add m_SAPPHIRERAPIDS.
6823 (processor_cost_table): Add sapphirerapids and alderlake.
6824 (ix86_option_override_internal) Handle PTA_WAITPKG, PTA_ENQCMD,
6825 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK.
6826 * config/i386/i386.h
6827 (ix86_size_cost) : Define SAPPHIRERAPIDS and ALDERLAKE.
6828 (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
6829 PROCESSOR_ALDERLAKE.
6831 (PTA_CLDEMOTE): Ditto.
6832 (PTA_SERIALIZE): Ditto.
6833 (PTA_TSXLDTRK): New.
6834 (PTA_SAPPHIRERAPIDS): Ditto.
6835 (PTA_ALDERLAKE): Ditto.
6836 (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
6837 PROCESSOR_ALDERLAKE.
6838 * doc/extend.texi: Add sapphirerapids and alderlake.
6839 * doc/invoke.texi: Add sapphirerapids and alderlake.
6841 2020-07-10 Martin Liska <mliska@suse.cz>
6843 * dumpfile.c [profile-report]: Add new profile dump.
6844 * dumpfile.h (enum tree_dump_index): Ad TDI_profile_report.
6845 * passes.c (pass_manager::dump_profile_report): Change stderr
6848 2020-07-10 Kewen Lin <linkw@linux.ibm.com>
6850 * tree-vect-loop.c (vect_transform_loop): Use LOOP_VINFO_NITERS which
6851 is adjusted by considering peeled prologue for non
6852 vect_use_loop_mask_for_alignment_p cases.
6854 2020-07-09 Peter Bergner <bergner@linux.ibm.com>
6857 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Define the MMA
6858 specific types __vector_quad and __vector_pair, and initialize the
6859 MMA built-ins if TARGET_EXTRA_BUILTINS is set.
6860 (mma_init_builtins): Don't test for mask set in rs6000_builtin_mask.
6861 Remove now unneeded mask variable.
6862 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add the
6863 OPTION_MASK_MMA flag for power10 if not already set.
6865 2020-07-09 Richard Biener <rguenther@suse.de>
6867 PR tree-optimization/96133
6868 * tree-vect-slp.c (vect_build_slp_tree_1): Compare load_p
6869 status between stmts.
6871 2020-07-09 H.J. Lu <hjl.tools@gmail.com>
6874 * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Enable FMA.
6875 * config/i386/sse.md (VF_AVX512VL_VF1_128_256): New.
6876 (rsqrt<mode>2): Replace VF1_128_256 with VF_AVX512VL_VF1_128_256.
6877 (rsqrtv16sf2): Removed.
6879 2020-07-09 Richard Biener <rguenther@suse.de>
6881 * tree-vectorizer.h (vect_verify_datarefs_alignment): Remove.
6882 (vect_slp_analyze_and_verify_instance_alignment): Rename to ...
6883 (vect_slp_analyze_instance_alignment): ... this.
6884 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove.
6885 (vect_verify_datarefs_alignment): Likewise.
6886 (vect_enhance_data_refs_alignment): Do not call
6887 vect_verify_datarefs_alignment.
6888 (vect_slp_analyze_node_alignment): Rename from
6889 vect_slp_analyze_and_verify_node_alignment and do not
6890 call verify_data_ref_alignment.
6891 (vect_slp_analyze_instance_alignment): Rename from
6892 vect_slp_analyze_and_verify_instance_alignment.
6893 * tree-vect-stmts.c (vectorizable_store): Dump when
6894 we vectorize an unaligned access.
6895 (vectorizable_load): Likewise.
6896 * tree-vect-loop.c (vect_analyze_loop_2): Do not call
6897 vect_verify_datarefs_alignment.
6898 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust.
6900 2020-07-09 Bin Cheng <bin.cheng@linux.alibaba.com>
6902 PR tree-optimization/95804
6903 * tree-loop-distribution.c (break_alias_scc_partitions): Force
6904 negative post order to reduction partition.
6906 2020-07-09 Jakub Jelinek <jakub@redhat.com>
6908 * omp-general.h (struct omp_for_data): Add min_inner_iterations
6910 * omp-general.c (omp_extract_for_data): Initialize them and remember
6911 them in OMP_CLAUSE_COLLAPSE_COUNT if needed and restore from there.
6912 * omp-expand.c (expand_omp_for_init_counts): Fix up computation of
6913 counts[fd->last_nonrect] if fd->loop.n2 is INTEGER_CST.
6914 (expand_omp_for_init_vars): For
6915 fd->first_nonrect + 1 == fd->last_nonrect loops with for now
6916 INTEGER_CST fd->loop.n2 find quadratic equation roots instead of
6917 using fallback method when possible.
6919 2020-07-09 Omar Tahir <omar.tahir@arm.com>
6921 * ira.c (move_unallocated_pseudos): Zero first_moveable_pseudo and
6922 last_moveable_pseudo before returning.
6924 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6926 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
6927 __ARM_FEATURE_BTI_DEFAULT support.
6929 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
6931 * config/aarch64/aarch64-protos.h (aarch64_indirect_call_asm):
6933 * config/aarch64/aarch64.c (aarch64_regno_regclass): Handle new
6934 stub registers class.
6935 (aarch64_class_max_nregs): Likewise.
6936 (aarch64_register_move_cost): Likewise.
6937 (aarch64_sls_shared_thunks): Global array to store stub labels.
6938 (aarch64_sls_emit_function_stub): New.
6939 (aarch64_create_blr_label): New.
6940 (aarch64_sls_emit_blr_function_thunks): New.
6941 (aarch64_sls_emit_shared_blr_thunks): New.
6942 (aarch64_asm_file_end): New.
6943 (aarch64_indirect_call_asm): New.
6944 (TARGET_ASM_FILE_END): Use aarch64_asm_file_end.
6945 (TARGET_ASM_FUNCTION_EPILOGUE): Use
6946 aarch64_sls_emit_blr_function_thunks.
6947 * config/aarch64/aarch64.h (STB_REGNUM_P): New.
6948 (enum reg_class): Add STUB_REGS class.
6949 (machine_function): Introduce `call_via` array for
6950 function-local stub labels.
6951 * config/aarch64/aarch64.md (*call_insn, *call_value_insn): Use
6952 aarch64_indirect_call_asm to emit code when hardening BLR
6954 * config/aarch64/constraints.md (Ucr): New constraint
6955 representing registers for indirect calls. Is GENERAL_REGS
6956 usually, and STUB_REGS when hardening BLR instruction against
6958 * config/aarch64/predicates.md (aarch64_general_reg): STUB_REGS class
6959 is also a general register.
6961 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
6963 * config/aarch64/aarch64-protos.h (aarch64_sls_barrier): New.
6964 * config/aarch64/aarch64.c (aarch64_output_casesi): Emit
6965 speculation barrier after BR instruction if needs be.
6966 (aarch64_trampoline_init): Handle ptr_mode value & adjust size
6968 (aarch64_sls_barrier): New.
6969 (aarch64_asm_trampoline_template): Add needed barriers.
6970 * config/aarch64/aarch64.h (AARCH64_ISA_SB): New.
6972 (TRAMPOLINE_SIZE): Account for barrier.
6973 * config/aarch64/aarch64.md (indirect_jump, *casesi_dispatch,
6974 simple_return, *do_return, *sibcall_insn, *sibcall_value_insn):
6975 Emit barrier if needs be, also account for possible barrier using
6976 "sls_length" attribute.
6977 (sls_length): New attribute.
6978 (length): Determine default using any non-default sls_length
6981 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
6983 * config/aarch64/aarch64-protos.h (aarch64_harden_sls_retbr_p):
6985 (aarch64_harden_sls_blr_p): New.
6986 * config/aarch64/aarch64.c (enum aarch64_sls_hardening_type):
6988 (aarch64_harden_sls_retbr_p): New.
6989 (aarch64_harden_sls_blr_p): New.
6990 (aarch64_validate_sls_mitigation): New.
6991 (aarch64_override_options): Parse options for SLS mitigation.
6992 * config/aarch64/aarch64.opt (-mharden-sls): New option.
6993 * doc/invoke.texi: Document new option.
6995 2020-07-09 Kewen Lin <linkw@linux.ibm.com>
6997 * tree-vect-stmts.c (vectorizable_condition): Prohibit vectorization
6998 with partial vectors explicitly excepting for EXTRACT_LAST_REDUCTION
6999 or nested-cycle reduction.
7001 2020-07-09 Kewen Lin <linkw@linux.ibm.com>
7003 * tree-vect-loop.c (vect_analyze_loop_2): Update dumping string
7004 for fully masking to be more common.
7006 2020-07-09 Kito Cheng <kito.cheng@sifive.com>
7008 * config/riscv/riscv.md (get_thread_pointer<mode>): New.
7010 * doc/extend.texi (Target Builtins): Add RISC-V built-in section.
7011 Document __builtin_thread_pointer.
7013 2020-07-09 Kito Cheng <kito.cheng@sifive.com>
7015 * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
7016 Abort if any arguments on stack.
7018 2020-07-08 Eric Botcazou <ebotcazou@adacore.com>
7020 * gimple-fold.c (gimple_fold_builtin_memory_op): Do not fold if
7021 either type has reverse scalar storage order.
7022 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not propagate through
7023 a memory copy if either type has reverse scalar storage order.
7025 2020-07-08 Tobias Burnus <tobias@codesourcery.com>
7027 * config/gcn/mkoffload.c (compile_native, main): Pass -fPIC/-fpic
7028 on to the native compiler, if used.
7029 * config/nvptx/mkoffload.c (compile_native, main): Likewise.
7031 2020-07-08 Will Schmidt <will_schmidt@vnet.ibm.com>
7033 * config/rs6000/altivec.h (vec_vmsumudm): New define.
7034 * config/rs6000/altivec.md (UNSPEC_VMSUMUDM): New unspec.
7035 (altivec_vmsumudm): New define_insn.
7036 * config/rs6000/rs6000-builtin.def (altivec_vmsumudm): New BU_ALTIVEC_3
7037 entry. (vmsumudm): New BU_ALTIVEC_OVERLOAD_3 entry.
7038 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add entries for
7039 ALTIVEC_BUILTIN_VMSUMUDM variants of vec_msum.
7040 * doc/extend.texi: Add document for vmsumudm behind vmsum.
7042 2020-07-08 Richard Biener <rguenther@suse.de>
7044 * tree-vect-stmts.c (get_group_load_store_type): Pass
7045 in the SLP node and the alignment support scheme output.
7047 (get_load_store_type): Likewise.
7048 (vectorizable_store): Adjust.
7049 (vectorizable_load): Likewise.
7051 2020-07-08 Richard Sandiford <richard.sandiford@arm.com>
7054 * expr.c (expand_expr_real_2): Get the mode from the type rather
7055 than the rtx, and assert that it is consistent with the mode of
7056 the rtx (where known). Optimize all constant integers, not just
7057 those that can be represented in poly_int64.
7059 2020-07-08 Kewen Lin <linkw@linux.ibm.com>
7061 * config/rs6000/vsx.md (len_load_v16qi): New define_expand.
7062 (len_store_v16qi): Likewise.
7064 2020-07-08 Kewen Lin <linkw@linux.ibm.com>
7066 * doc/md.texi (len_load_@var{m}): Document.
7067 (len_store_@var{m}): Likewise.
7068 * internal-fn.c (len_load_direct): New macro.
7069 (len_store_direct): Likewise.
7070 (expand_len_load_optab_fn): Likewise.
7071 (expand_len_store_optab_fn): Likewise.
7072 (direct_len_load_optab_supported_p): Likewise.
7073 (direct_len_store_optab_supported_p): Likewise.
7074 (expand_mask_load_optab_fn): New macro. Original renamed to ...
7075 (expand_partial_load_optab_fn): ... here. Add handlings for
7077 (expand_mask_store_optab_fn): New macro. Original renamed to ...
7078 (expand_partial_store_optab_fn): ... here. Add handlings for
7080 (internal_load_fn_p): Handle IFN_LEN_LOAD.
7081 (internal_store_fn_p): Handle IFN_LEN_STORE.
7082 (internal_fn_stored_value_index): Handle IFN_LEN_STORE.
7083 * internal-fn.def (LEN_LOAD): New internal function.
7084 (LEN_STORE): Likewise.
7085 * optabs.def (len_load_optab, len_store_optab): New optab.
7087 2020-07-07 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
7089 * config/aarch64/aarch64.c (thunderx2t99_regmove_cost,
7090 thunderx2t99_vector_cost): Likewise.
7092 2020-07-07 Richard Biener <rguenther@suse.de>
7094 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Fix
7095 group overlap condition to allow negative step DR groups.
7096 * tree-vect-stmts.c (get_group_load_store_type): For
7097 multi element SLP groups force VMAT_STRIDED_SLP when the step
7100 2020-07-07 Qian Jianhua <qianjh@cn.fujitsu.com>
7102 * doc/generic.texi: Fix typo.
7104 2020-07-07 Richard Biener <rguenther@suse.de>
7106 * lto-streamer-out.c (cmp_symbol_files): Use the computed
7107 order map to sort symbols from the same sub-file together.
7108 (lto_output): Compute a map of sub-file to an order number
7109 it appears in the symbol output array.
7111 2020-07-06 Richard Biener <rguenther@suse.de>
7113 PR tree-optimization/96075
7114 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
7115 TYPE_SIZE_UNIT of the vector component type instead of DR_STEP
7116 for the misalignment calculation for negative step.
7118 2020-07-06 Roger Sayle <roger@nextmovesoftware.com>
7120 * config/nvptx/nvptx.md (*vadd_addsi4): New instruction.
7121 (*vsub_addsi4): New instruction.
7123 2020-07-06 Hans-Peter Nilsson <hp@axis.com>
7125 * config/cris/cris.md (movulsr): New peephole2.
7127 2020-07-06 Hans-Peter Nilsson <hp@axis.com>
7129 * config/cris/sync.md ("cris_atomic_fetch_<atomic_op_name><mode>_1"):
7130 Correct gcc_assert of overlapping operands.
7132 2020-07-05 Hans-Peter Nilsson <hp@axis.com>
7134 * config/cris/cris.c (cris_select_cc_mode): Always return
7135 CC_NZmode for matching comparisons. Clarify comments.
7136 * config/cris/cris-modes.def: Clarify mode comment.
7137 * config/cris/cris.md (plusminus, plusminusumin, plusumin): New
7139 (addsub, addsubbo, nd): New code iterator attributes.
7140 ("*<addsub><su>qihi"): Rename from "*extopqihi". Use code
7141 iterator constructs instead of match_operator constructs.
7142 ("*<addsubbo><su><nd><mode>si<setnz>"): Similar from
7143 "*extop<mode>si<setnz>".
7144 ("*add<su>qihi_swap"): Similar from "*addxqihi_swap".
7145 ("*<addsubbo><su><nd><mode>si<setnz>_swap"): Similar from
7146 "*extop<mode>si<setnz>_swap".
7148 2020-07-05 Hans-Peter Nilsson <hp@axis.com>
7150 * config/cris/cris.md ("*extopqihi", "*extop<mode>si<setnz>_swap")
7151 ("*extop<mode>si<setnz>", "*addxqihi_swap"): Reinstate.
7153 2020-07-03 Eric Botcazou <ebotcazou@adacore.com>
7155 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold calls that
7156 were initially created for the assignment of a variable-sized
7157 object and whose source is now a string constant.
7158 * gimple-ssa-store-merging.c (struct merged_store_group): Document
7159 STRING_CST for rhs_code field.
7160 Add string_concatenation boolean field.
7161 (merged_store_group::merged_store_group): Initialize it as well as
7163 (merged_store_group::do_merge): Set it upon seeing a STRING_CST.
7164 Also set bit_insertion here upon seeing a BIT_INSERT_EXPR.
7165 (merged_store_group::apply_stores): Clear it for small regions.
7166 Do not create a power-of-2-sized buffer if it is still true.
7167 And do not set bit_insertion here again.
7168 (encode_tree_to_bitpos): Deal with BLKmode for the expression.
7169 (merged_store_group::can_be_merged_into): Deal with STRING_CST.
7170 (imm_store_chain_info::coalesce_immediate_stores): Set bit_insertion
7171 to true after changing MEM_REF stores into BIT_INSERT_EXPR stores.
7172 (count_multiple_uses): Return 0 for STRING_CST.
7173 (split_group): Do not split the group for a string concatenation.
7174 (imm_store_chain_info::output_merged_store): Constify and rename
7175 some local variables. Build an array type as destination type
7176 for a string concatenation, as well as a zero mask, and call
7177 build_string to build the source.
7178 (lhs_valid_for_store_merging_p): Return true for VIEW_CONVERT_EXPR.
7179 (pass_store_merging::process_store): Accept STRING_CST on the RHS.
7180 * gimple.h (gimple_call_alloca_for_var_p): New accessor function.
7181 * gimplify.c (gimplify_modify_expr_to_memcpy): Set alloca_for_var.
7182 * tree.h (CALL_ALLOCA_FOR_VAR_P): Document it for BUILT_IN_MEMCPY.
7184 2020-07-03 Martin Jambor <mjambor@suse.cz>
7187 * ipa-sra.c (all_callee_accesses_present_p): Do not accept type
7188 mismatched accesses.
7190 2020-07-03 Roger Sayle <roger@nextmovesoftware.com>
7192 * config/nvptx/nvptx.md (popcount<mode>2): New instructions.
7193 (mulhishi3, mulsidi3, umulhisi3, umulsidi3): New instructions.
7195 2020-07-03 Martin Liska <mliska@suse.cz>
7196 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7199 * gcov-dump.c (tag_function): Use gcov_position_t
7202 2020-07-03 Richard Biener <rguenther@suse.de>
7204 PR tree-optimization/96037
7205 * tree-vect-stmts.c (vect_is_simple_use): Initialize *slp_def.
7207 2020-07-03 Richard Biener <rguenther@suse.de>
7209 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Cost the
7210 original non-pattern stmts, look at the pattern stmt
7211 vectorization status.
7213 2020-07-03 Andrew Stubbs <ams@codesourcery.com>
7215 * config/gcn/gcn-valu.md (fold_left_plus_<mode>): New.
7217 2020-07-03 Richard Biener <rguenther@suse.de>
7219 * tree-vectorizer.h (vec_info::insert_on_entry): New.
7220 (vec_info::insert_seq_on_entry): Likewise.
7221 * tree-vectorizer.c (vec_info::insert_on_entry): Implement.
7222 (vec_info::insert_seq_on_entry): Likewise.
7223 * tree-vect-stmts.c (vect_init_vector_1): Use
7224 vec_info::insert_on_entry.
7225 (vect_finish_stmt_generation): Set modified bit after
7227 * tree-vect-slp.c (vect_create_constant_vectors): Simplify
7228 by using vec_info::insert_seq_on_entry and bypassing
7230 (vect_schedule_slp_instance): Deal with all-constant
7233 2020-07-03 Roger Sayle <roger@nextmovesoftware.com>
7234 Tom de Vries <tdevries@suse.de>
7237 * config/nvptx/nvptx.c (nvptx_vector_alignment): Use tree_to_uhwi
7238 to access TYPE_SIZE (type). Return at least the mode's alignment.
7240 2020-07-02 Richard Biener <rguenther@suse.de>
7242 PR tree-optimization/96028
7243 * tree-vect-slp.c (vect_slp_convert_to_external): Make sure
7244 we have scalar stmts to use.
7245 (vect_slp_analyze_node_operations): When analyzing a child
7246 failed try externalizing the parent node.
7248 2020-07-02 Martin Jambor <mjambor@suse.cz>
7251 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Adjust
7252 argument index if necessary.
7254 2020-07-02 Martin Liska <mliska@suse.cz>
7257 * tree-vect-generic.c (expand_vector_condition): Forward declaration.
7258 (expand_vector_comparison): Do not expand a comparison if all
7259 uses are consumed by a VEC_COND_EXPR.
7260 (expand_vector_operation): Change void return type to bool.
7261 (expand_vector_operations_1): Pass dce_ssa_names.
7263 2020-07-02 Ilya Leoshkevich <iii@linux.ibm.com>
7266 * system.h (NULL): Redefine to nullptr.
7268 2020-07-02 Jakub Jelinek <jakub@redhat.com>
7270 PR tree-optimization/95857
7271 * tree-cfg.c (group_case_labels_stmt): When removing an unreachable
7272 base_bb, remember all forced and non-local labels on it and later
7273 treat those as if they have NULL label_to_block. Formatting fix.
7276 2020-07-02 Richard Biener <rguenther@suse.de>
7278 PR tree-optimization/96022
7279 * tree-vect-stmts.c (vectorizable_shift): Only use the
7280 first vector stmt when extracting the scalar shift amount.
7281 * tree-vect-slp.c (vect_build_slp_tree_2): Also build unary
7282 nodes with all-scalar children from scalars but not stores.
7283 (vect_analyze_slp_instance): Mark the node not failed.
7285 2020-07-02 Felix Yang <felix.yang@huawei.com>
7287 PR tree-optimization/95961
7288 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use the
7289 number of scalars instead of the number of vectors as an upper bound
7290 for the loop saving info about DR in the hash table. Remove unused
7293 2020-07-02 Jakub Jelinek <jakub@redhat.com>
7295 * omp-expand.c (expand_omp_for): Diagnose non-rectangular loops with
7296 invalid steps - ((m2 - m1) * incr_outer) % incr must be 0 in valid
7297 OpenMP non-rectangular loops. Use XALLOCAVEC.
7299 2020-07-02 Martin Liska <mliska@suse.cz>
7301 PR gcov-profile/95348
7302 * coverage.c (read_counts_file): Read only COUNTERS that are
7304 * gcov-dump.c (tag_function): Change signature from unsigned to
7306 (tag_blocks): Likewise.
7307 (tag_arcs): Likewise.
7308 (tag_lines): Likewise.
7309 (tag_counters): Likewise.
7310 (tag_summary): Likewise.
7311 * gcov.c (read_count_file): Read all non-zero counters
7314 2020-07-02 Kito Cheng <kito.cheng@sifive.com>
7316 * config/riscv/multilib-generator (arch_canonicalize): Handle
7317 multi-letter extension.
7318 Using underline as separator between different extensions.
7320 2020-07-01 Pip Cet <pipcet@gmail.com>
7322 * spellcheck.c (test_data): Add problematic strings.
7323 (test_metric_conditions): Don't test the triangle inequality
7324 condition, which our distance function does not satisfy.
7326 2020-07-01 Omar Tahir <omar.tahir@arm.com>
7328 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Always
7329 generate a BTI instruction.
7331 2020-07-01 Jeff Law <law@redhat.com>
7333 PR tree-optimization/94882
7334 * match.pd (x & y) - (x | y) - 1 -> ~(x ^ y): New simplification.
7336 2020-07-01 Jeff Law <law@redhat.com>
7338 * config/m68k/m68k.c (m68k_output_btst): Drop "register" keyword.
7339 (emit_move_sequence, output_iorsi3, output_xorsi3): Likewise.
7341 2020-07-01 Andrea Corallo <andrea.corallo@arm.com>
7343 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add enums
7344 for 64bits fpsr/fpcr getter setters builtin variants.
7345 (aarch64_init_fpsr_fpcr_builtins): New function.
7346 (aarch64_general_init_builtins): Modify to make use of the later.
7347 (aarch64_expand_fpsr_fpcr_setter): New function.
7348 (aarch64_general_expand_builtin): Modify to make use of the later.
7349 * config/aarch64/aarch64.md (@aarch64_set_<fpscr_name><GPI:mode>)
7350 (@aarch64_get_<fpscr_name><GPI:mode>): New patterns replacing and
7351 generalizing 'get_fpcr', 'set_fpsr'.
7352 * config/aarch64/iterators.md (GET_FPSCR, SET_FPSCR): New int
7354 (fpscr_name): New int attribute.
7355 * doc/extend.texi (__builtin_aarch64_get_fpcr64)
7356 (__builtin_aarch64_set_fpcr64, __builtin_aarch64_get_fpsr64)
7357 (__builtin_aarch64_set_fpsr64): Add into AArch64 Built-in
7360 2020-07-01 Martin Liska <mliska@suse.cz>
7362 * gcov.c (print_usage): Avoid trailing space for -j option.
7364 2020-07-01 Richard Biener <rguenther@suse.de>
7366 PR tree-optimization/95839
7367 * tree-vect-slp.c (vect_slp_tree_uniform_p): Pre-existing
7368 vectors are not uniform.
7369 (vect_build_slp_tree_1): Handle BIT_FIELD_REFs of
7371 (vect_build_slp_tree_2): For groups of lane extracts
7372 from a vector register generate a permute node
7373 with a special child representing the pre-existing vector.
7374 (vect_prologue_cost_for_slp): Pre-existing vectors cost nothing.
7375 (vect_slp_analyze_node_operations): Use SLP_TREE_LANES.
7376 (vectorizable_slp_permutation): Do not generate or cost identity
7378 (vect_schedule_slp_instance): Handle pre-existing vector
7379 that are function arguments.
7381 2020-07-01 Richard Biener <rguenther@suse.de>
7383 * system.h (INCLUDE_ISL): New guarded include.
7384 * graphite-dependences.c: Use it.
7385 * graphite-isl-ast-to-gimple.c: Likewise.
7386 * graphite-optimize-isl.c: Likewise.
7387 * graphite-poly.c: Likewise.
7388 * graphite-scop-detection.c: Likewise.
7389 * graphite-sese-to-poly.c: Likewise.
7390 * graphite.c: Likewise.
7391 * graphite.h: Drop the includes here.
7393 2020-07-01 Martin Liska <mliska@suse.cz>
7395 * gcov.c (print_usage): Shorted option description for -j
7398 2020-07-01 Martin Liska <mliska@suse.cz>
7400 * doc/gcov.texi: Rename 2 options.
7401 * gcov.c (print_usage): Rename -i,--json-format to
7402 -j,--json-format and -j,--human-readable to -H,--human-readable.
7403 (process_args): Fix up parsing. Document obsolete options and
7404 how are they changed.
7406 2020-07-01 Jeff Law <law@redhat.com>
7408 * config/pa/pa.c (pa_emit_move_sequence): Drop register keyword.
7409 (pa_output_ascii): Likewise.
7411 2020-07-01 Kito Cheng <kito.cheng@sifive.com>
7413 * common/config/riscv/riscv-common.c (riscv_subset_t): New field
7415 (riscv_subset_list::parsing_subset_version): Add parameter for
7416 indicate explicitly version, and handle explicitly version.
7417 (riscv_subset_list::handle_implied_ext): Ditto.
7418 (riscv_subset_list::add): Ditto.
7419 (riscv_subset_t::riscv_subset_t): Init new field.
7420 (riscv_subset_list::to_string): Always output version info if version
7421 explicitly specified.
7422 (riscv_subset_list::parsing_subset_version): Handle explicitly
7424 (riscv_subset_list::parse_std_ext): Ditto.
7425 (riscv_subset_list::parse_multiletter_ext): Ditto.
7427 2020-06-30 Richard Sandiford <richard.sandiford@arm.com>
7431 * config/aarch64/aarch64.c (aarch64_attribute_table): Add
7432 "Advanced SIMD type".
7433 (aarch64_comp_type_attributes): Check that the "Advanced SIMD type"
7434 attributes are equal.
7435 * config/aarch64/aarch64-builtins.c: Include stringpool.h and
7437 (aarch64_mangle_builtin_vector_type): Use the mangling recorded
7438 in the "Advanced SIMD type" attribute.
7439 (aarch64_init_simd_builtin_types): Add an "Advanced SIMD type"
7440 attribute to each Advanced SIMD type, using the mangled type
7441 as the attribute's single argument.
7443 2020-06-30 Christophe Lyon <christophe.lyon@linaro.org>
7446 * config/arm/arm.c (arm_handle_isr_attribute): Warn if
7447 -mgeneral-regs-only is not used.
7449 2020-06-30 Yang Yang <yangyang305@huawei.com>
7451 PR tree-optimization/95855
7452 * gimple-ssa-split-paths.c (is_feasible_trace): Add extra
7453 checks to recognize a missed if-conversion opportunity when
7454 judging whether to duplicate a block.
7456 2020-06-29 Segher Boessenkool <segher@kernel.crashing.org>
7458 * doc/extend.texi: Change references to "future architecture" to
7459 "ISA 3.1", "-mcpu=future" to "-mcpu=power10", and remove vaguer
7460 references to "future" (because the future is now).
7462 2020-06-29 Segher Boessenkool <segher@kernel.crashing.org>
7464 * config/rs6000/rs6000.md (isa): Rename "fut" to "p10".
7466 2020-06-29 Roger Sayle <roger@nextmovesoftware.com>
7468 * simplify-rtx.c (simplify_distributive_operation): New function
7469 to un-distribute a binary operation of two binary operations.
7470 (X & C) ^ (Y & C) to (X ^ Y) & C, when C is simple (i.e. a constant).
7471 (simplify_binary_operation_1) <IOR, XOR, AND>: Call it from here
7473 (test_scalar_int_ops): New function for unit self-testing
7474 scalar integer transformations in simplify-rtx.c.
7475 (test_scalar_ops): Call test_scalar_int_ops for each integer mode.
7476 (simplify_rtx_c_tests): Call test_scalar_ops.
7478 2020-06-29 Richard Biener <rguenther@suse.de>
7480 PR tree-optimization/95916
7481 * tree-vect-slp.c (vect_schedule_slp_instance): Explicitely handle
7482 the case of not vectorized externals.
7484 2020-06-29 Richard Biener <rguenther@suse.de>
7486 * tree-vectorizer.h: Do not include <utility>.
7488 2020-06-29 Martin Liska <mliska@suse.cz>
7490 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Use gsi_bb
7491 instead of gimple_stmt_iterator::bb.
7492 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
7493 * tree-vectorizer.h: Likewise.
7495 2020-06-29 Andrew Stubbs <ams@codesourcery.com>
7497 * config/gcn/gcn-hsa.h (DBX_REGISTER_NUMBER): New macro.
7498 * config/gcn/gcn-protos.h (gcn_dwarf_register_number): New prototype.
7499 * config/gcn/gcn.c (gcn_expand_prologue): Add RTX_FRAME_RELATED_P
7500 and REG_FRAME_RELATED_EXPR to stack and frame pointer adjustments.
7501 (gcn_dwarf_register_number): New function.
7502 (gcn_dwarf_register_span): New function.
7503 (TARGET_DWARF_REGISTER_SPAN): New hook macro.
7505 2020-06-29 Kaipeng Zhou <zhoukaipeng3@huawei.com>
7507 PR tree-optimization/95854
7508 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Return NULL
7509 if operand 1 or 2 of a BIT_FIELD_REF cannot be converted to
7510 unsigned HOST_WIDE_INT.
7512 2020-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7514 * config/sparc/sparc.c (epilogue_renumber): Remove register.
7515 (sparc_print_operand_address): Likewise.
7516 (sparc_type_code): Likewise.
7517 (set_extends): Likewise.
7519 2020-06-29 Martin Liska <mliska@suse.cz>
7521 PR tree-optimization/92860
7522 * optc-save-gen.awk: Add exceptions for arc target.
7524 2020-06-29 Frederik Harwath <frederik@codesourcery.com>
7526 * doc/sourcebuild.texi: Describe globbing of the
7527 dump file scanning commands "suffix" argument.
7529 2020-06-28 Martin Sebor <msebor@redhat.com>
7532 * calls.c (maybe_warn_rdwr_sizes): Use location of argument if
7534 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same. Adjust
7536 * tree.c (get_nonnull_args): Consider the this pointer implicitly
7538 * var-tracking.c (deps_vec): New type.
7539 (var_loc_dep_vec): New function.
7540 (VAR_LOC_DEP_VEC): Use it.
7542 2020-06-28 Kewen Lin <linkw@linux.ibm.com>
7544 * internal-fn.c (direct_mask_load_optab_supported_p): Use
7545 convert_optab_supported_p instead of direct_optab_supported_p.
7546 (direct_mask_store_optab_supported_p): Likewise.
7548 2020-06-27 Aldy Hernandez <aldyh@redhat.com>
7550 * gimple-ssa-evrp-analyze.h (vrp_visit_cond_stmt): Use
7551 simplify_using_ranges class.
7552 * gimple-ssa-evrp.c (class evrp_folder): New simplify_using_ranges
7553 field. Adjust all methods to use new field.
7554 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Use
7555 simplify_using_ranges class.
7556 * tree-vrp.c (class vrp_folder): New simplify_using_ranges
7557 field. Adjust all methods to use new field.
7558 (simplify_stmt_for_jump_threading): Use simplify_using_ranges class.
7559 (vrp_prop::vrp_finalize): New vrp_folder argument.
7560 (execute_vrp): Pass folder to vrp_finalize. Use
7561 simplify_using_ranges class.
7562 Remove cleanup_edges_and_switches call.
7563 * vr-values.c (vr_values::op_with_boolean_value_range_p): Change
7564 value_range_equiv uses to value_range.
7565 (simplify_using_ranges::op_with_boolean_value_range_p): Use
7566 simplify_using_ranges class.
7567 (check_for_binary_op_overflow): Make static.
7568 (vr_values::extract_range_basic): Pass this to
7569 check_for_binary_op_overflow.
7570 (compare_range_with_value): Change value_range_equiv uses to
7572 (vr_values::vr_values): Initialize simplifier field.
7573 Remove uses of to_remove_edges and to_update_switch_stmts.
7574 (vr_values::~vr_values): Remove uses of to_remove_edges and
7575 to_update_switch_stmts.
7576 (vr_values::get_vr_for_comparison): Move to simplify_using_ranges
7578 (vr_values::compare_name_with_value): Same.
7579 (vr_values::compare_names): Same.
7580 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
7581 (vr_values::vrp_evaluate_conditional): Same.
7582 (vr_values::vrp_visit_cond_stmt): Same.
7583 (find_case_label_ranges): Change value_range_equiv uses to
7585 (vr_values::extract_range_from_stmt): Use simplify_using_ranges class.
7586 (vr_values::simplify_truth_ops_using_ranges): Move to
7587 simplify_using_ranges class.
7588 (vr_values::simplify_div_or_mod_using_ranges): Same.
7589 (vr_values::simplify_min_or_max_using_ranges): Same.
7590 (vr_values::simplify_abs_using_ranges): Same.
7591 (vr_values::simplify_bit_ops_using_ranges): Same.
7592 (test_for_singularity): Change value_range_equiv uses to
7594 (range_fits_type_p): Same.
7595 (vr_values::simplify_cond_using_ranges_1): Same.
7596 (vr_values::simplify_cond_using_ranges_2): Make extern.
7597 (vr_values::fold_cond): Move to simplify_using_ranges class.
7598 (vr_values::simplify_switch_using_ranges): Same.
7599 (vr_values::cleanup_edges_and_switches): Same.
7600 (vr_values::simplify_float_conversion_using_ranges): Same.
7601 (vr_values::simplify_internal_call_using_ranges): Same.
7602 (vr_values::two_valued_val_range_p): Same.
7603 (vr_values::simplify_stmt_using_ranges): Move to...
7604 (simplify_using_ranges::simplify): ...here.
7605 * vr-values.h (class vr_values): Move all the simplification of
7606 statements using ranges methods and code from here...
7607 (class simplify_using_ranges): ...to here.
7608 (simplify_cond_using_ranges_2): New extern prototype.
7610 2020-06-27 Jakub Jelinek <jakub@redhat.com>
7612 * omp-general.h (struct omp_for_data_loop): Add non_rect_referenced
7613 member, move outer member.
7614 (struct omp_for_data): Add first_nonrect and last_nonrect members.
7615 * omp-general.c (omp_extract_for_data): Initialize first_nonrect,
7616 last_nonrect and non_rect_referenced members.
7617 * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
7619 (expand_omp_for_init_vars): Add nonrect_bounds parameter. Handle
7620 non-rectangular loops.
7621 (extract_omp_for_update_vars): Likewise.
7622 (expand_omp_for_generic, expand_omp_for_static_nochunk,
7623 expand_omp_for_static_chunk, expand_omp_simd,
7624 expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): Adjust
7625 expand_omp_for_init_vars and extract_omp_for_update_vars callers.
7626 (expand_omp_for): Don't sorry on non-composite worksharing-loop or
7629 2020-06-26 H.J. Lu <hjl.tools@gmail.com>
7632 * config/i386/gnu-user.h (SUBTARGET_FRAME_POINTER_REQUIRED):
7634 * config/i386/i386.c (ix86_frame_pointer_required): Update
7637 2020-06-26 Yichao Yu <yyc1992@gmail.com>
7639 * multiple_target.c (redirect_to_specific_clone): Fix tests
7640 to check individual attribute rather than an attribute list.
7642 2020-06-26 Peter Bergner <bergner@linux.ibm.com>
7644 * config/rs6000/rs6000-call.c (cpu_is_info) <power10>: New.
7645 * doc/extend.texi (PowerPC Built-in Functions): Document power10,
7648 2020-06-26 Marek Polacek <polacek@redhat.com>
7650 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
7651 * doc/standards.texi (C Language): Correct the default dialect.
7652 (C++ Language): Update the default for C++ to gnu++17.
7654 2020-06-26 Eric Botcazou <ebotcazou@adacore.com>
7656 * tree-ssa-reassoc.c (dump_range_entry): New function.
7657 (debug_range_entry): New debug function.
7658 (update_range_test): Invoke dump_range_entry for dumping.
7659 (optimize_range_tests_to_bit_test): Merge the entry test in the
7660 bit test when possible and lower the profitability threshold.
7662 2020-06-26 Richard Biener <rguenther@suse.de>
7664 PR tree-optimization/95897
7665 * tree-vectorizer.h (vectorizable_induction): Remove
7666 unused gimple_stmt_iterator * parameter.
7667 * tree-vect-loop.c (vectorizable_induction): Likewise.
7668 (vect_analyze_loop_operations): Adjust.
7669 * tree-vect-stmts.c (vect_analyze_stmt): Likewise.
7670 (vect_transform_stmt): Likewise.
7671 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust
7672 for fold-left reductions, clarify existing reduction case.
7674 2020-06-25 Nick Clifton <nickc@redhat.com>
7676 * config/m32r/m32r.md (movsicc): Disable pattern.
7678 2020-06-25 Richard Biener <rguenther@suse.de>
7680 PR tree-optimization/95839
7681 * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove premature
7682 check on the number of datarefs.
7684 2020-06-25 Iain Sandoe <iain@sandoe.co.uk>
7686 * config/rs6000/rs6000-call.c (mma_init_builtins): Cast
7687 the insn_data n_operands value to unsigned.
7689 2020-06-25 Richard Biener <rguenther@suse.de>
7691 * tree-vect-slp.c (vect_schedule_slp_instance): Always use
7692 vector defs to determine insertion place.
7694 2020-06-25 H.J. Lu <hjl.tools@gmail.com>
7697 * config/i386/i386.h (PTA_ICELAKE_CLIENT): Remove PTA_CLWB.
7698 (PTA_ICELAKE_SERVER): Add PTA_CLWB.
7699 (PTA_TIGERLAKE): Add PTA_CLWB.
7701 2020-06-25 Richard Biener <rguenther@suse.de>
7703 PR tree-optimization/95866
7704 * tree-vect-stmts.c (vectorizable_shift): Reject incompatible
7705 vectorized shift operands. For scalar shifts use lane zero
7706 of a vectorized shift operand.
7708 2020-06-25 Martin Liska <mliska@suse.cz>
7710 PR tree-optimization/95745
7712 * gimple-isel.cc (gimple_expand_vec_cond_exprs): Delete dead
7713 SSA_NAMEs used as the first argument of a VEC_COND_EXPR. Always
7715 * tree-vect-generic.c (expand_vector_condition): Remove dead
7716 SSA_NAMEs used as the first argument of a VEC_COND_EXPR.
7718 2020-06-24 Will Schmidt <will_schmidt@vnet.ibm.com>
7721 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Update.
7722 * config/rs6000/altivec.md (UNSPEC_CONVERT_4F32_8F16): New unspec.
7723 (convert_4f32_8f16): New define_expand
7724 * config/rs6000/rs6000-builtin.def (convert_4f32_8f16): New builtin define
7726 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_CONVERT_4F32_8F16): New
7727 overloaded builtin entry.
7728 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPHP): New unspec.
7729 (vsx_xvcvsphp): New define_insn.
7731 2020-06-24 Roger Sayle <roger@nextmovesoftware.com>
7732 Segher Boessenkool <segher@kernel.crashing.org>
7734 * simplify-rtx.c (simplify_unary_operation_1): Simplify rotates by 0.
7736 2020-06-24 Roger Sayle <roger@nextmovesoftware.com>
7738 * simplify-rtx.c (simplify_unary_operation_1): Simplify
7739 (parity (parity x)) as (parity x), i.e. PARITY is idempotent.
7741 2020-06-24 Richard Biener <rguenther@suse.de>
7743 PR tree-optimization/95866
7744 * tree-vect-slp.c (vect_slp_tree_uniform_p): New.
7745 (vect_build_slp_tree_2): Properly reset matches[0],
7746 ignore uniform constants.
7748 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
7751 * common/config/i386/cpuinfo.h (get_intel_cpu): Remove brand_id.
7752 (cpu_indicator_init): Likewise.
7753 * config/i386/driver-i386.c (host_detect_local_cpu): Updated.
7755 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
7758 * common/config/i386/cpuinfo.h (get_intel_cpu): Add Cooper Lake
7759 detection with AVX512BF16.
7761 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
7764 * common/config/i386/i386-isas.h: New file. Extracted from
7765 gcc/config/i386/i386-builtins.c.
7766 (_isa_names_table): Add option.
7767 (ISA_NAMES_TABLE_START): New.
7768 (ISA_NAMES_TABLE_END): Likewise.
7769 (ISA_NAMES_TABLE_ENTRY): Likewise.
7770 (isa_names_table): Defined with ISA_NAMES_TABLE_START,
7771 ISA_NAMES_TABLE_END and ISA_NAMES_TABLE_ENTRY. Add more ISAs
7772 from enum processor_features.
7773 * config/i386/driver-i386.c: Include
7774 "common/config/i386/cpuinfo.h" and
7775 "common/config/i386/i386-isas.h".
7776 (has_feature): New macro.
7777 (host_detect_local_cpu): Call cpu_indicator_init to get CPU
7778 features. Use has_feature to detect processor features. Call
7779 Call get_intel_cpu to get the newer Intel CPU name. Use
7780 isa_names_table to generate command-line options.
7781 * config/i386/i386-builtins.c: Include
7782 "common/config/i386/i386-isas.h".
7783 (_arch_names_table): Removed.
7784 (isa_names_table): Likewise.
7786 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
7789 * common/config/i386/cpuinfo.h: New file.
7790 (__processor_model): Moved from libgcc/config/i386/cpuinfo.h.
7791 (__processor_model2): New.
7792 (CHECK___builtin_cpu_is): New. Defined as empty if not defined.
7793 (has_cpu_feature): New function.
7794 (set_cpu_feature): Likewise.
7795 (get_amd_cpu): Moved from libgcc/config/i386/cpuinfo.c. Use
7796 CHECK___builtin_cpu_is. Return AMD CPU name.
7797 (get_intel_cpu): Moved from libgcc/config/i386/cpuinfo.c. Use
7798 Use CHECK___builtin_cpu_is. Return Intel CPU name.
7799 (get_available_features): Moved from libgcc/config/i386/cpuinfo.c.
7800 Also check FEATURE_3DNOW, FEATURE_3DNOWP, FEATURE_ADX,
7801 FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT, FEATURE_CLWB,
7802 FEATURE_CLZERO, FEATURE_CMPXCHG16B, FEATURE_CMPXCHG8B,
7803 FEATURE_ENQCMD, FEATURE_F16C, FEATURE_FSGSBASE, FEATURE_FXSAVE,
7804 FEATURE_HLE, FEATURE_IBT, FEATURE_LAHF_LM, FEATURE_LM,
7805 FEATURE_LWP, FEATURE_LZCNT, FEATURE_MOVBE, FEATURE_MOVDIR64B,
7806 FEATURE_MOVDIRI, FEATURE_MWAITX, FEATURE_OSXSAVE,
7807 FEATURE_PCONFIG, FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
7808 FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
7809 FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
7810 FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
7811 FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
7812 FEATURE_XSAVEOPT and FEATURE_XSAVES
7813 (cpu_indicator_init): Moved from libgcc/config/i386/cpuinfo.c.
7814 Also update cpu_model2.
7815 * common/config/i386/i386-cpuinfo.h (processor_vendor): Add
7816 Add VENDOR_CENTAUR, VENDOR_CYRIX and VENDOR_NSC.
7817 (processor_features): Moved from gcc/config/i386/i386-builtins.c.
7818 Renamed F_XXX to FEATURE_XXX. Add FEATURE_3DNOW, FEATURE_3DNOWP,
7819 FEATURE_ADX, FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT,
7820 FEATURE_CLWB, FEATURE_CLZERO, FEATURE_CMPXCHG16B,
7821 FEATURE_CMPXCHG8B, FEATURE_ENQCMD, FEATURE_F16C,
7822 FEATURE_FSGSBASE, FEATURE_FXSAVE, FEATURE_HLE, FEATURE_IBT,
7823 FEATURE_LAHF_LM, FEATURE_LM, FEATURE_LWP, FEATURE_LZCNT,
7824 FEATURE_MOVBE, FEATURE_MOVDIR64B, FEATURE_MOVDIRI,
7825 FEATURE_MWAITX, FEATURE_OSXSAVE, FEATURE_PCONFIG,
7826 FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
7827 FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
7828 FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
7829 FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
7830 FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
7831 FEATURE_XSAVEOPT, FEATURE_XSAVES and CPU_FEATURE_MAX.
7832 (SIZE_OF_CPU_FEATURES): New.
7833 * config/i386/i386-builtins.c (processor_features): Removed.
7834 (isa_names_table): Replace F_XXX with FEATURE_XXX.
7835 (fold_builtin_cpu): Change __cpu_features2 to an array.
7837 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
7840 * common/config/i386/i386-common.c (processor_alias_table): Add
7841 processor model and priority to each entry.
7842 (pta_size): Updated with -6.
7843 (num_arch_names): New.
7844 * common/config/i386/i386-cpuinfo.h: New file.
7845 * config/i386/i386-builtins.c (feature_priority): Removed.
7846 (processor_model): Likewise.
7847 (_arch_names_table): Likewise.
7848 (arch_names_table): Likewise.
7849 (_isa_names_table): Replace P_ZERO with P_NONE.
7850 (get_builtin_code_for_version): Replace P_ZERO with P_NONE. Use
7851 processor_alias_table.
7852 (fold_builtin_cpu): Replace arch_names_table with
7853 processor_alias_table.
7854 * config/i386/i386.h: Include "common/config/i386/i386-cpuinfo.h".
7855 (pta): Add model and priority.
7856 (num_arch_names): New.
7858 2020-06-24 Richard Biener <rguenther@suse.de>
7860 * tree-vectorizer.h (vect_find_first_scalar_stmt_in_slp):
7862 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
7863 Simplify for new position of vectorized SLP loads.
7864 (vect_slp_analyze_node_dependences): Adjust for it.
7865 (vect_slp_analyze_and_verify_node_alignment): Compute alignment
7866 for the first stmts dataref.
7867 * tree-vect-slp.c (vect_find_first_scalar_stmt_in_slp): New.
7868 (vect_schedule_slp_instance): Emit loads before the
7870 * tree-vect-stmts.c (vectorizable_load): Do what the comment
7871 says and use vect_find_first_scalar_stmt_in_slp.
7873 2020-06-24 Richard Biener <rguenther@suse.de>
7875 PR tree-optimization/95856
7876 * tree-vectorizer.c (vect_stmt_dominates_stmt_p): Honor
7879 2020-06-24 Jakub Jelinek <jakub@redhat.com>
7882 * fold-const.c (fold_cond_expr_with_comparison): Optimize
7883 A <= 0 ? A : -A into (type)-absu(A) rather than -abs(A).
7885 2020-06-24 Jakub Jelinek <jakub@redhat.com>
7887 * omp-low.c (lower_omp_for): Fix two pastos.
7889 2020-06-24 Martin Liska <mliska@suse.cz>
7891 * optc-save-gen.awk: Compare string options in cl_optimization_compare
7894 2020-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
7896 * config.gcc: Identify power10 as a 64-bit processor and as valid
7897 for --with-cpu and --with-tune.
7899 2020-06-23 David Edelsohn <dje.gcc@gmail.com>
7901 * Makefile.in (LANG_MAKEFRAGS): Same.
7902 (tmake_file): Use -include.
7905 2020-06-23 Michael Meissner <meissner@linux.ibm.com>
7907 * REVISION: Delete file meant for a private branch.
7909 2020-06-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
7912 * config/arm/arm.c: (cmse_nonsecure_entry_clear_before_return): Use
7913 'callee_saved_reg_p' instead of 'calL_used_or_fixed_reg_p'.
7915 2020-06-23 Alexandre Oliva <oliva@adacore.com>
7917 * collect-utils.h (dumppfx): New.
7918 * collect-utils.c (dumppfx): Likewise.
7919 * lto-wrapper.c (run_gcc): Set global dumppfx.
7920 (compile_offload_image): Pass a -dumpbase on to mkoffload.
7921 * config/nvptx/mkoffload.c (ptx_dumpbase): New.
7922 (main): Handle incoming -dumpbase. Set ptx_dumpbase. Obey
7924 (compile_native): Pass -dumpbase et al to compiler.
7925 * config/gcn/mkoffload.c (gcn_dumpbase): New.
7926 (main): Handle incoming -dumpbase. Set gcn_dumpbase. Obey
7927 save_temps. Pass -dumpbase et al to offload target compiler.
7928 (compile_native): Pass -dumpbase et al to compiler.
7930 2020-06-23 Michael Meissner <meissner@linux.ibm.com>
7932 * REVISION: New file.
7934 2020-06-22 Segher Boessenkool <segher@kernel.crashing.org>
7936 * config/rs6000/altivec.h: Use _ARCH_PWR10, not _ARCH_PWR_FUTURE.
7937 Update comment for ISA 3.1.
7938 * config/rs6000/altivec.md: Use TARGET_POWER10, not TARGET_FUTURE.
7939 * config/rs6000/driver-rs6000.c (asm_names): Use -mpwr10 for power10
7940 on AIX, and -mpower10 elsewhere.
7941 * config/rs6000/future.md: Delete.
7942 * config/rs6000/linux64.h: Update comments. Use TARGET_POWER10, not
7944 * config/rs6000/power10.md: New file.
7945 * config/rs6000/ppc-auxv.h: Use PPC_PLATFORM_POWER10, not
7946 PPC_PLATFORM_FUTURE.
7947 * config/rs6000/rs6000-builtin.def: Update comments. Use BU_P10V_*
7948 names instead of BU_FUTURE_V_* names. Use RS6000_BTM_P10 instead of
7949 RS6000_BTM_FUTURE. Use P10_BUILTIN_* instead of FUTURE_BUILTIN_*.
7950 Use BU_P10_* instead of BU_FUTURE_*.
7951 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7952 _ARCH_PWR10 instead of _ARCH_PWR_FUTURE.
7953 (altivec_resolve_overloaded_builtin): Use P10_BUILTIN_VEC_XXEVAL, not
7954 FUTURE_BUILTIN_VEC_XXEVAL.
7955 * config/rs6000/rs6000-call.c: Use P10_BUILTIN_*, not FUTURE_BUILTIN_*.
7956 Update compiler messages.
7957 * config/rs6000/rs6000-cpus.def: Update comments. Use ISA_3_1_*, not
7958 ISA_FUTURE_*. Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE.
7959 * config/rs6000/rs6000-opts.h: Use PROCESSOR_POWER10, not
7961 * config/rs6000/rs6000-string.c: Ditto.
7962 * config/rs6000/rs6000-tables.opt (rs6000_cpu_opt_value): Use "power10"
7963 instead of "future", reorder it to right after "power9".
7964 * config/rs6000/rs6000.c: Update comments. Use OPTION_MASK_POWER10,
7965 not OPTION_MASK_FUTURE. Use TARGET_POWER10, not TARGET_FUTURE. Use
7966 RS6000_BTM_P10, not RS6000_BTM_FUTURE. Update compiler messages.
7967 Use PROCESSOR_POWER10, not PROCESSOR_FUTURE. Use ISA_3_1_MASKS_SERVER,
7968 not ISA_FUTURE_MASKS_SERVER.
7969 (rs6000_opt_masks): Use "power10" instead of "future".
7970 (rs6000_builtin_mask_names): Ditto.
7971 (rs6000_disable_incompatible_switches): Ditto.
7972 * config/rs6000/rs6000.h: Use -mpower10, not -mfuture. Use
7973 -mcpu=power10, not -mcpu=future. Use MASK_POWER10, not MASK_FUTURE.
7974 Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE. Use RS6000_BTM_P10,
7975 not RS6000_BTM_FUTURE.
7976 * config/rs6000/rs6000.md: Use "power10", not "future". Use
7977 TARGET_POWER10, not TARGET_FUTURE. Include "power10.md", not
7979 * config/rs6000/rs6000.opt (mfuture): Delete.
7981 * config/rs6000/t-rs6000: Use "power10.md", not "future.md".
7982 * config/rs6000/vsx.md: Use TARGET_POWER10, not TARGET_FUTURE.
7984 2020-06-22 Richard Sandiford <richard.sandiford@arm.com>
7986 * coretypes.h (first_type): Delete.
7987 * recog.h (insn_gen_fn::operator()): Go back to using a decltype.
7989 2020-06-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7991 * doc/sourcebuild.texi (arm_v8_1m_mve_fp_ok): Add item.
7992 (arm_mve_hw): Likewise.
7994 2020-06-22 H.J. Lu <hjl.tools@gmail.com>
7997 * config/i386/i386.c (ix86_dirflag_mode_needed): Skip
8000 2020-06-22 Richard Biener <rguenther@suse.de>
8002 PR tree-optimization/95770
8003 * tree-vect-slp.c (vect_schedule_slp_instance): Also consider
8006 2020-06-22 Andrew Stubbs <ams@codesourcery.com>
8008 * config/gcn/gcn.c (gcn_function_arg): Disallow vector arguments.
8009 (gcn_return_in_memory): Return vectors in memory.
8011 2020-06-22 Jakub Jelinek <jakub@redhat.com>
8013 * omp-general.c (omp_extract_for_data): For triangular loops with
8014 all loop invariant expressions constant where the innermost loop is
8015 executed at least once compute number of iterations at compile time.
8017 2020-06-22 Kito Cheng <kito.cheng@sifive.com>
8019 * config/riscv/riscv.h (ASM_SPEC): Remove riscv_expand_arch call.
8020 (DRIVER_SELF_SPECS): New.
8022 2020-06-22 Kito Cheng <kito.cheng@sifive.com>
8024 * config/riscv/riscv-builtins.c (RISCV_FTYPE_NAME0): New.
8025 (RISCV_FTYPE_ATYPES0): New.
8026 (riscv_builtins): Using RISCV_USI_FTYPE for frflags.
8027 * config/riscv/riscv-ftypes.def: Remove VOID argument.
8029 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
8031 * config.gcc: Use t-aix64, biarch64 and default64 for cpu_is_64bit.
8032 * config/rs6000/aix72.h (ASM_SPEC): Remove aix64 option.
8035 (ASM_CPU_SPEC): Remove vsx and altivec options.
8036 (CPP_SPEC_COMMON): Rename from CPP_SPEC.
8039 (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
8040 (TARGET_DEFAULT): Only define if not BIARCH.
8041 (LIB_SPEC_COMMON): Rename from LIB_SPEC.
8044 (LINK_SPEC_COMMON): Rename from LINK_SPEC.
8047 (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
8048 (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
8050 (CPLUSPLUS_CPP_SPEC): Same.
8053 (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
8054 * config/rs6000/defaultaix64.h: New file.
8055 * config/rs6000/t-aix64: New file.
8057 2020-06-21 Peter Bergner <bergner@linux.ibm.com>
8059 * config/rs6000/predicates.md (mma_assemble_input_operand): New.
8060 * config/rs6000/rs6000-builtin.def (BU_MMA_1, BU_MMA_V2, BU_MMA_3,
8061 BU_MMA_5, BU_MMA_6, BU_VSX_1): Add support macros for defining MMA
8063 (ASSEMBLE_ACC, ASSEMBLE_PAIR, DISASSEMBLE_ACC, DISASSEMBLE_PAIR,
8064 PMXVBF16GER2, PMXVBF16GER2NN, PMXVBF16GER2NP, PMXVBF16GER2PN,
8065 PMXVBF16GER2PP, PMXVF16GER2, PMXVF16GER2NN, PMXVF16GER2NP,
8066 PMXVF16GER2PN, PMXVF16GER2PP, PMXVF32GER, PMXVF32GERNN,
8067 PMXVF32GERNP, PMXVF32GERPN, PMXVF32GERPP, PMXVF64GER, PMXVF64GERNN,
8068 PMXVF64GERNP, PMXVF64GERPN, PMXVF64GERPP, PMXVI16GER2, PMXVI16GER2PP,
8069 PMXVI16GER2S, PMXVI16GER2SPP, PMXVI4GER8, PMXVI4GER8PP, PMXVI8GER4,
8070 PMXVI8GER4PP, PMXVI8GER4SPP, XVBF16GER2, XVBF16GER2NN, XVBF16GER2NP,
8071 XVBF16GER2PN, XVBF16GER2PP, XVCVBF16SP, XVCVSPBF16, XVF16GER2,
8072 XVF16GER2NN, XVF16GER2NP, XVF16GER2PN, XVF16GER2PP, XVF32GER,
8073 XVF32GERNN, XVF32GERNP, XVF32GERPN, XVF32GERPP, XVF64GER, XVF64GERNN,
8074 XVF64GERNP, XVF64GERPN, XVF64GERPP, XVI16GER2, XVI16GER2PP, XVI16GER2S,
8075 XVI16GER2SPP, XVI4GER8, XVI4GER8PP, XVI8GER4, XVI8GER4PP, XVI8GER4SPP,
8076 XXMFACC, XXMTACC, XXSETACCZ): Add MMA built-ins.
8077 * config/rs6000/rs6000.c (rs6000_emit_move): Use CONST_INT_P.
8078 Allow zero constants.
8079 (print_operand) <case 'A'>: New output modifier.
8080 (rs6000_split_multireg_move): Add support for inserting accumulator
8081 priming and depriming instructions. Add support for splitting an
8082 assemble accumulator pattern.
8083 * config/rs6000/rs6000-call.c (mma_init_builtins, mma_expand_builtin,
8084 rs6000_gimple_fold_mma_builtin): New functions.
8085 (RS6000_BUILTIN_M): New macro.
8086 (def_builtin): Handle RS6000_BTC_QUAD and RS6000_BTC_PAIR attributes.
8087 (bdesc_mma): Add new MMA built-in support.
8088 (htm_expand_builtin): Use RS6000_BTC_OPND_MASK.
8089 (rs6000_invalid_builtin): Add handling of RS6000_BTM_FUTURE and
8091 (rs6000_builtin_valid_without_lhs): Handle RS6000_BTC_VOID attribute.
8092 (rs6000_gimple_fold_builtin): Call rs6000_builtin_is_supported_p
8093 and rs6000_gimple_fold_mma_builtin.
8094 (rs6000_expand_builtin): Call mma_expand_builtin.
8095 Use RS6000_BTC_OPND_MASK.
8096 (rs6000_init_builtins): Adjust comment. Call mma_init_builtins.
8097 (htm_init_builtins): Use RS6000_BTC_OPND_MASK.
8098 (builtin_function_type): Handle VSX_BUILTIN_XVCVSPBF16 and
8099 VSX_BUILTIN_XVCVBF16SP.
8100 * config/rs6000/rs6000.h (RS6000_BTC_QUINARY, RS6000_BTC_SENARY,
8101 RS6000_BTC_OPND_MASK, RS6000_BTC_QUAD, RS6000_BTC_PAIR,
8102 RS6000_BTC_QUADPAIR, RS6000_BTC_GIMPLE): New defines.
8103 (RS6000_BTC_PREDICATE, RS6000_BTC_ABS, RS6000_BTC_DST,
8104 RS6000_BTC_TYPE_MASK, RS6000_BTC_ATTR_MASK): Adjust values.
8105 * config/rs6000/mma.md (MAX_MMA_OPERANDS): New define_constant.
8106 (UNSPEC_MMA_ASSEMBLE_ACC, UNSPEC_MMA_PMXVBF16GER2,
8107 UNSPEC_MMA_PMXVBF16GER2NN, UNSPEC_MMA_PMXVBF16GER2NP,
8108 UNSPEC_MMA_PMXVBF16GER2PN, UNSPEC_MMA_PMXVBF16GER2PP,
8109 UNSPEC_MMA_PMXVF16GER2, UNSPEC_MMA_PMXVF16GER2NN,
8110 UNSPEC_MMA_PMXVF16GER2NP, UNSPEC_MMA_PMXVF16GER2PN,
8111 UNSPEC_MMA_PMXVF16GER2PP, UNSPEC_MMA_PMXVF32GER,
8112 UNSPEC_MMA_PMXVF32GERNN, UNSPEC_MMA_PMXVF32GERNP,
8113 UNSPEC_MMA_PMXVF32GERPN, UNSPEC_MMA_PMXVF32GERPP,
8114 UNSPEC_MMA_PMXVF64GER, UNSPEC_MMA_PMXVF64GERNN,
8115 UNSPEC_MMA_PMXVF64GERNP, UNSPEC_MMA_PMXVF64GERPN,
8116 UNSPEC_MMA_PMXVF64GERPP, UNSPEC_MMA_PMXVI16GER2,
8117 UNSPEC_MMA_PMXVI16GER2PP, UNSPEC_MMA_PMXVI16GER2S,
8118 UNSPEC_MMA_PMXVI16GER2SPP, UNSPEC_MMA_PMXVI4GER8,
8119 UNSPEC_MMA_PMXVI4GER8PP, UNSPEC_MMA_PMXVI8GER4,
8120 UNSPEC_MMA_PMXVI8GER4PP, UNSPEC_MMA_PMXVI8GER4SPP,
8121 UNSPEC_MMA_XVBF16GER2, UNSPEC_MMA_XVBF16GER2NN,
8122 UNSPEC_MMA_XVBF16GER2NP, UNSPEC_MMA_XVBF16GER2PN,
8123 UNSPEC_MMA_XVBF16GER2PP, UNSPEC_MMA_XVF16GER2, UNSPEC_MMA_XVF16GER2NN,
8124 UNSPEC_MMA_XVF16GER2NP, UNSPEC_MMA_XVF16GER2PN, UNSPEC_MMA_XVF16GER2PP,
8125 UNSPEC_MMA_XVF32GER, UNSPEC_MMA_XVF32GERNN, UNSPEC_MMA_XVF32GERNP,
8126 UNSPEC_MMA_XVF32GERPN, UNSPEC_MMA_XVF32GERPP, UNSPEC_MMA_XVF64GER,
8127 UNSPEC_MMA_XVF64GERNN, UNSPEC_MMA_XVF64GERNP, UNSPEC_MMA_XVF64GERPN,
8128 UNSPEC_MMA_XVF64GERPP, UNSPEC_MMA_XVI16GER2, UNSPEC_MMA_XVI16GER2PP,
8129 UNSPEC_MMA_XVI16GER2S, UNSPEC_MMA_XVI16GER2SPP, UNSPEC_MMA_XVI4GER8,
8130 UNSPEC_MMA_XVI4GER8PP, UNSPEC_MMA_XVI8GER4, UNSPEC_MMA_XVI8GER4PP,
8131 UNSPEC_MMA_XVI8GER4SPP, UNSPEC_MMA_XXMFACC, UNSPEC_MMA_XXMTACC): New.
8132 (MMA_ACC, MMA_VV, MMA_AVV, MMA_PV, MMA_APV, MMA_VVI4I4I8,
8133 MMA_AVVI4I4I8, MMA_VVI4I4I2, MMA_AVVI4I4I2, MMA_VVI4I4,
8134 MMA_AVVI4I4, MMA_PVI4I2, MMA_APVI4I2, MMA_VVI4I4I4,
8135 MMA_AVVI4I4I4): New define_int_iterator.
8136 (acc, vv, avv, pv, apv, vvi4i4i8, avvi4i4i8, vvi4i4i2,
8137 avvi4i4i2, vvi4i4, avvi4i4, pvi4i2, apvi4i2, vvi4i4i4,
8138 avvi4i4i4): New define_int_attr.
8139 (*movpxi): Add zero constant alternative.
8140 (mma_assemble_pair, mma_assemble_acc): New define_expand.
8141 (*mma_assemble_acc): New define_insn_and_split.
8142 (mma_<acc>, mma_xxsetaccz, mma_<vv>, mma_<avv>, mma_<pv>, mma_<apv>,
8143 mma_<vvi4i4i8>, mma_<avvi4i4i8>, mma_<vvi4i4i2>, mma_<avvi4i4i2>,
8144 mma_<vvi4i4>, mma_<avvi4i4>, mma_<pvi4i2>, mma_<apvi4i2>,
8145 mma_<vvi4i4i4>, mma_<avvi4i4i4>): New define_insn.
8146 * config/rs6000/rs6000.md (define_attr "type"): New type mma.
8147 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVBF16SP): New.
8148 (UNSPEC_VSX_XVCVSPBF16): Likewise.
8149 (XVCVBF16): New define_int_iterator.
8150 (xvcvbf16): New define_int_attr.
8151 (vsx_<xvcvbf16>): New define_insn.
8152 * doc/extend.texi: Document the mma built-ins.
8154 2020-06-21 Peter Bergner <bergner@linux.ibm.com>
8155 Michael Meissner <meissner@linux.ibm.com>
8157 * config/rs6000/mma.md: New file.
8158 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
8160 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Add support
8161 for __vector_pair and __vector_quad types.
8162 * config/rs6000/rs6000-cpus.def (OTHER_FUTURE_MASKS): Add
8164 (POWERPC_MASKS): Likewise.
8165 * config/rs6000/rs6000-modes.def (OI, XI): New integer modes.
8166 (POI, PXI): New partial integer modes.
8167 * config/rs6000/rs6000.c (TARGET_INVALID_CONVERSION): Define.
8168 (rs6000_hard_regno_nregs_internal): Use VECTOR_ALIGNMENT_P.
8169 (rs6000_hard_regno_mode_ok_uncached): Likewise.
8170 Add support for POImode being allowed in VSX registers and PXImode
8171 being allowed in FP registers.
8172 (rs6000_modes_tieable_p): Adjust comment.
8173 Add support for POImode and PXImode.
8174 (rs6000_debug_reg_global) <print_tieable_modes>: Add OImode, POImode
8175 XImode, PXImode, V2SImode, V2SFmode and CCFPmode..
8176 (rs6000_setup_reg_addr_masks): Use VECTOR_ALIGNMENT_P.
8177 Set up appropriate addr_masks for vector pair and vector quad addresses.
8178 (rs6000_init_hard_regno_mode_ok): Add support for vector pair and
8179 vector quad registers. Setup reload handlers for POImode and PXImode.
8180 (rs6000_builtin_mask_calculate): Add support for RS6000_BTM_MMA.
8181 (rs6000_option_override_internal): Error if -mmma is specified
8182 without -mcpu=future.
8183 (rs6000_slow_unaligned_access): Use VECTOR_ALIGNMENT_P.
8184 (quad_address_p): Change size test to less than 16 bytes.
8185 (reg_offset_addressing_ok_p): Add support for ISA 3.1 vector pair
8186 and vector quad instructions.
8187 (avoiding_indexed_address_p): Likewise.
8188 (rs6000_emit_move): Disallow POImode and PXImode moves involving
8190 (rs6000_preferred_reload_class): Prefer VSX registers for POImode
8191 and FP registers for PXImode.
8192 (rs6000_split_multireg_move): Support splitting POImode and PXImode
8194 (rs6000_mangle_type): Adjust comment. Add support for mangling
8195 __vector_pair and __vector_quad types.
8196 (rs6000_opt_masks): Add entry for mma.
8197 (rs6000_builtin_mask_names): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
8198 (rs6000_function_value): Use VECTOR_ALIGNMENT_P.
8199 (address_to_insn_form): Likewise.
8200 (reg_to_non_prefixed): Likewise.
8201 (rs6000_invalid_conversion): New function.
8202 * config/rs6000/rs6000.h (MASK_MMA): Define.
8203 (BIGGEST_ALIGNMENT): Set to 512 if MMA support is enabled.
8204 (VECTOR_ALIGNMENT_P): New helper macro.
8205 (ALTIVEC_VECTOR_MODE): Use VECTOR_ALIGNMENT_P.
8206 (RS6000_BTM_MMA): Define.
8207 (RS6000_BTM_COMMON): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
8208 (rs6000_builtin_type_index): Add RS6000_BTI_vector_pair and
8209 RS6000_BTI_vector_quad.
8210 (vector_pair_type_node): New.
8211 (vector_quad_type_node): New.
8212 * config/rs6000/rs6000.md: Include mma.md.
8213 (define_mode_iterator RELOAD): Add POI and PXI.
8214 * config/rs6000/t-rs6000 (MD_INCLUDES): Add mma.md.
8215 * config/rs6000/rs6000.opt (-mmma): New.
8216 * doc/invoke.texi: Document -mmma.
8218 2020-06-20 Bin Cheng <bin.cheng@linux.alibaba.com>
8220 PR tree-optimization/95638
8221 * tree-loop-distribution.c (pg_edge_callback_data): New field.
8222 (loop_distribution::break_alias_scc_partitions): Record and restore
8223 postorder information. Fix memory leak.
8225 2020-06-19 Tobias Burnus <tobias@codesourcery.com>
8227 * config/gcn/gcn.c (gcn_related_vector_mode): Add ARG_UNUSED.
8228 (output_file_start): Use const 'char *'.
8230 2020-06-19 Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
8232 PR tree-optimization/94880
8233 * match.pd (A | B) - B -> (A & ~B): New simplification.
8235 2020-06-19 Richard Biener <rguenther@suse.de>
8237 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Adjust
8238 for lane permutations.
8240 2020-06-19 Richard Biener <rguenther@suse.de>
8242 PR tree-optimization/95761
8243 * tree-vect-slp.c (vect_schedule_slp_instance): Walk all
8244 vectorized stmts for finding the last one.
8246 2020-06-18 Felix Yang <felix.yang@huawei.com>
8248 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Call
8249 vect_relevant_for_alignment_p to filter out data references in
8250 the loop whose alignment is irrelevant when trying loop peeling
8253 2020-06-18 Uroš Bizjak <ubizjak@gmail.com>
8255 * config/i386/i386.md (*cmpqi_ext<mode>_1): Use SWI248 mode
8256 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
8257 mode iterator for the first operand of ZERO_EXTRACT RTX.
8258 Change ext_register_operand predicate to register_operand.
8259 Rename from *cmpqi_ext_1.
8260 (*cmpqi_ext<mode>_2): Ditto. Rename from *cmpqi_ext_2.
8261 (*cmpqi_ext<mode>_3): Ditto. Rename from *cmpqi_ext_3.
8262 (*cmpqi_ext<mode>_4): Ditto. Rename from *cmpqi_ext_4.
8263 (cmpi_ext_3): Use HImode instead of SImode for ZERO_EXTRACT RTX.
8264 (*extv<mode>): Use SWI24 mode iterator for the first operand
8265 of ZERO_EXTRACT RTX. Change ext_register_operand predicate
8266 to register_operand.
8267 (*extzv<mode>): Use SWI248 mode iterator for the first operand
8268 of ZERO_EXTRACT RTX. Change ext_register_operand predicate
8269 to register_operand.
8270 (*extzvqi): Use SWI248 mode iterator instead of SImode for
8271 ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first operand
8272 of ZERO_EXTRACT RTX. Change ext_register_operand predicate to
8274 (*extzvqi_mem_rex64 and corresponding peephole2): Use SWI248 mode
8275 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
8276 mode iterator for the first operand of ZERO_EXTRACT RTX.
8277 Change ext_register_operand predicate to register_operand.
8278 (@insv<mode>_1): Use SWI248 mode iterator for the first operand
8279 of ZERO_EXTRACT RTX. Change ext_register_operand predicate to
8281 (*insvqi_1): Use SWI248 mode iterator instead of SImode
8282 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the
8283 first operand of ZERO_EXTRACT RTX. Change ext_register_operand
8284 predicate to register_operand.
8287 (*insvqi_1_mem_rex64 and corresponding peephole2): Use SWI248 mode
8288 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
8289 mode iterator for the first operand of ZERO_EXTRACT RTX.
8290 Change ext_register_operand predicate to register_operand.
8291 (addqi_ext_1): New expander.
8292 (*addqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
8293 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
8294 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
8295 to register_operand. Rename from *addqi_ext_1.
8296 (*addqi_ext<mode>_2): Ditto. Rename from *addqi_ext_2.
8297 (divmodqi4): Use HImode instead of SImode for ZERO_EXTRACT RTX.
8298 (udivmodqi4): Ditto.
8299 (testqi_ext_1): Use HImode instead of SImode for ZERO_EXTRACT RTX.
8300 (*testqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
8301 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
8302 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
8303 to register_operand. Rename from *testqi_ext_1.
8304 (*testqi_ext<mode>_2): Ditto. Rename from *testqi_ext_2.
8305 (andqi_ext_1): New expander.
8306 (*andqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
8307 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
8308 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
8309 to register_operand. Rename from andqi_ext_1.
8310 (*andqi_ext<mode>_1_cc): Ditto. Rename from *andqi_ext_1_cc.
8311 (*andqi_ext<mode>_2): Ditto. Rename from *andqi_ext_2.
8312 (*<code>qi_ext<mode>_1): Ditto. Rename from *<code>qi_ext_1.
8313 (*<code>qi_ext<mode>_2): Ditto. Rename from *<code>qi_ext_2.
8314 (xorqi_ext_1_cc): Use HImode instead of SImode for ZERO_EXTRACT RTX.
8315 (*xorqi_ext<mode>_1_cc): Use SWI248 mode iterator instead of SImode
8316 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
8317 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
8318 to register_operand. Rename from *xorqi_ext_1_cc.
8319 * config/i386/i386-expand.c (ix86_split_idivmod): Emit ZERO_EXTRACT
8320 in mode, matching its first operand.
8321 (promote_duplicated_reg): Update for renamed insv<mode>_1.
8322 * config/i386/predicates.md (ext_register_operand): Remove predicate.
8324 2020-06-18 Martin Sebor <msebor@redhat.com>
8328 * builtins.c (compute_objsize): Remove call to
8329 compute_builtin_object_size and instead compute conservative sizes
8332 2020-06-18 Martin Liska <mliska@suse.cz>
8334 * coretypes.h (struct iterator_range): New type.
8335 * tree-vect-patterns.c (vect_determine_precisions): Use
8336 range-based iterator.
8337 (vect_pattern_recog): Likewise.
8338 * tree-vect-slp.c (_bb_vec_info): Likewise.
8339 (_bb_vec_info::~_bb_vec_info): Likewise.
8340 (vect_slp_check_for_constructors): Likewise.
8341 * tree-vectorizer.h:Add new iterators
8342 and functions that use it.
8344 2020-06-18 Martin Liska <mliska@suse.cz>
8346 * config/rs6000/rs6000-call.c (fold_build_vec_cmp):
8347 Since 502d63b6d6141597bb18fd23c87736a1b384cf8f, first argument
8348 of a VEC_COND_EXPR cannot be tcc_comparison and so that
8349 a SSA_NAME needs to be created before we use it for the first
8350 argument of the VEC_COND_EXPR.
8351 (fold_compare_helper): Pass gsi to fold_build_vec_cmp.
8353 2020-06-18 Richard Biener <rguenther@suse.de>
8356 * internal-fn.c (expand_vect_cond_optab_fn): Move the result
8357 to the target if necessary.
8358 (expand_vect_cond_mask_optab_fn): Likewise.
8360 2020-06-18 Martin Liska <mliska@suse.cz>
8362 * tree-ssa-reassoc.c (ovce_extract_ops): Replace *vcond with
8363 vcond as we check for NULL pointer.
8365 2020-06-18 Tobias Burnus <tobias@codesourcery.com>
8367 * gimple-pretty-print.c (dump_binary_rhs): Use braces to
8368 silence empty-body warning with gcc_fallthrough.
8370 2020-06-18 Jakub Jelinek <jakub@redhat.com>
8372 PR tree-optimization/95699
8373 * tree-ssa-phiopt.c (minmax_replacement): Treat (signed int)x < 0
8374 as x > INT_MAX and (signed int)x >= 0 as x <= INT_MAX. Move variable
8375 declarations to the statements that set them where possible.
8377 2020-06-18 Jakub Jelinek <jakub@redhat.com>
8380 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't allow
8381 scalar mode halfvectype other than vector boolean for
8382 VEC_PACK_TRUNC_EXPR.
8384 2020-06-18 Richard Biener <rguenther@suse.de>
8386 * varasm.c (assemble_variable): Make sure to not
8387 defer output when outputting addressed constants.
8388 (output_constant_def_contents): Likewise.
8389 (add_constant_to_table): Take and pass on whether to
8391 (output_addressed_constants): Likewise.
8392 (output_constant_def): Pass on whether to defer output
8393 to add_constant_to_table.
8394 (tree_output_constant_def): Defer output of constants.
8396 2020-06-18 Richard Biener <rguenther@suse.de>
8398 * tree-vectorizer.h (_slp_tree::two_operators): Remove.
8399 (_slp_tree::lane_permutation): New member.
8400 (_slp_tree::code): Likewise.
8401 (SLP_TREE_TWO_OPERATORS): Remove.
8402 (SLP_TREE_LANE_PERMUTATION): New.
8403 (SLP_TREE_CODE): Likewise.
8404 (vect_stmt_dominates_stmt_p): Declare.
8405 * tree-vectorizer.c (vect_stmt_dominates_stmt_p): New function.
8406 * tree-vect-stmts.c (vect_model_simple_cost): Remove
8407 SLP_TREE_TWO_OPERATORS handling.
8408 * tree-vect-slp.c (_slp_tree::_slp_tree): Amend.
8409 (_slp_tree::~_slp_tree): Likewise.
8410 (vect_two_operations_perm_ok_p): Remove.
8411 (vect_build_slp_tree_1): Remove verification of two-operator
8413 (vect_build_slp_tree_2): When we have two different operators
8414 build two computation SLP nodes and a blend.
8415 (vect_print_slp_tree): Print the lane permutation if it exists.
8416 (slp_copy_subtree): Copy it.
8417 (vect_slp_rearrange_stmts): Re-arrange it.
8418 (vect_slp_analyze_node_operations_1): Handle SLP_TREE_CODE
8419 VEC_PERM_EXPR explicitely.
8420 (vect_schedule_slp_instance): Likewise. Remove old
8421 SLP_TREE_TWO_OPERATORS code.
8422 (vectorizable_slp_permutation): New function.
8424 2020-06-18 Martin Liska <mliska@suse.cz>
8426 * tree-vect-generic.c (expand_vector_condition): Check
8427 for gassign before inspecting RHS.
8429 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
8431 * gimplify.c (omp_notice_threadprivate_variable)
8432 (omp_default_clause, omp_notice_variable): 'inform' after 'error'
8433 diagnostic. Adjust all users.
8435 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
8437 * hsa-gen.c (gen_hsa_insns_for_call): Move 'function_decl ==
8438 NULL_TREE' check earlier.
8440 2020-06-17 Forrest Timour <forrest.timour@gmail.com>
8442 * doc/extend.texi (attribute access): Fix a typo.
8444 2020-06-17 Bin Cheng <bin.cheng@linux.alibaba.com>
8445 Kaipeng Zhou <zhoukaipeng3@huawei.com>
8447 PR tree-optimization/95199
8448 * tree-vect-stmts.c: Eliminate common stmts for bump and offset in
8449 strided load/store operations and remove redundant code.
8451 2020-06-17 Richard Sandiford <richard.sandiford@arm.com>
8453 * coretypes.h (first_type): New alias template.
8454 * recog.h (insn_gen_fn::operator()): Use it instead of a decltype.
8455 Remove spurious “...” and split the function type out into a typedef.
8457 2020-06-17 Andreas Krebbel <krebbel@linux.ibm.com>
8459 * config/s390/s390.c (s390_fix_long_loop_prediction): Exit early
8462 2020-06-17 Richard Biener <rguenther@suse.de>
8464 * tree-vect-slp.c (vect_build_slp_tree_1): Set the passed
8465 in *vectype parameter.
8466 (vect_build_slp_tree_2): Set SLP_TREE_VECTYPE from what
8467 vect_build_slp_tree_1 computed.
8468 (vect_analyze_slp_instance): Set SLP_TREE_VECTYPE.
8469 (vect_slp_analyze_node_operations_1): Use the SLP node vector type.
8470 (vect_schedule_slp_instance): Likewise.
8471 * tree-vect-stmts.c (vect_is_simple_use): Take the vector type
8472 from SLP_TREE_VECTYPE.
8474 2020-06-17 Richard Biener <rguenther@suse.de>
8476 PR tree-optimization/95717
8477 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
8478 Move BB SSA updating before exit/latch PHI current def copying.
8480 2020-06-17 Martin Liska <mliska@suse.cz>
8482 * Makefile.in: Add new file.
8483 * expr.c (expand_expr_real_2): Add gcc_unreachable as we should
8484 not meet this condition.
8485 (do_store_flag): Likewise.
8486 * gimplify.c (gimplify_expr): Gimplify first argument of
8487 VEC_COND_EXPR to be a SSA name.
8488 * internal-fn.c (vec_cond_mask_direct): New.
8489 (vec_cond_direct): Likewise.
8490 (vec_condu_direct): Likewise.
8491 (vec_condeq_direct): Likewise.
8492 (expand_vect_cond_optab_fn): New.
8493 (expand_vec_cond_optab_fn): Likewise.
8494 (expand_vec_condu_optab_fn): Likewise.
8495 (expand_vec_condeq_optab_fn): Likewise.
8496 (expand_vect_cond_mask_optab_fn): Likewise.
8497 (expand_vec_cond_mask_optab_fn): Likewise.
8498 (direct_vec_cond_mask_optab_supported_p): Likewise.
8499 (direct_vec_cond_optab_supported_p): Likewise.
8500 (direct_vec_condu_optab_supported_p): Likewise.
8501 (direct_vec_condeq_optab_supported_p): Likewise.
8502 * internal-fn.def (VCOND): New OPTAB.
8504 (VCONDEQ): Likewise.
8505 (VCOND_MASK): Likewise.
8506 * optabs.c (get_rtx_code): Make it global.
8507 (expand_vec_cond_mask_expr): Removed.
8508 (expand_vec_cond_expr): Removed.
8509 * optabs.h (expand_vec_cond_expr): Likewise.
8510 (vector_compare_rtx): Make it global.
8511 * passes.def: Add new pass_gimple_isel pass.
8512 * tree-cfg.c (verify_gimple_assign_ternary): Add check
8513 for VEC_COND_EXPR about first argument.
8514 * tree-pass.h (make_pass_gimple_isel): New.
8515 * tree-ssa-forwprop.c (pass_forwprop::execute): Prevent
8516 propagation of the first argument of a VEC_COND_EXPR.
8517 * tree-ssa-reassoc.c (ovce_extract_ops): Support SSA_NAME as
8518 first argument of a VEC_COND_EXPR.
8519 (optimize_vec_cond_expr): Likewise.
8520 * tree-vect-generic.c (expand_vector_divmod): Make SSA_NAME
8521 for a first argument of created VEC_COND_EXPR.
8522 (expand_vector_condition): Fix coding style.
8523 * tree-vect-stmts.c (vectorizable_condition): Gimplify
8525 * gimple-isel.cc: New file.
8527 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
8529 * config/gcn/gcn-hsa.h (TEXT_SECTION_ASM_OP): Use ".text".
8530 (BSS_SECTION_ASM_OP): Use ".bss".
8531 (ASM_SPEC): Remove "-mattr=-code-object-v3".
8532 (LINK_SPEC): Add "--export-dynamic".
8533 * config/gcn/gcn-opts.h (processor_type): Replace PROCESSOR_VEGA with
8534 PROCESSOR_VEGA10 and PROCESSOR_VEGA20.
8535 * config/gcn/gcn-run.c (HSA_RUNTIME_LIB): Use ".so.1" variant.
8536 (load_image): Remove obsolete relocation handling.
8537 Add ".kd" suffix to the symbol names.
8538 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT): Set to 62.
8539 (gcn_option_override): Update gcn_isa test.
8540 (gcn_kernel_arg_types): Update all the assembler directives.
8541 Remove the obsolete options.
8542 (gcn_conditional_register_usage): Update MAX_NORMAL_SGPR_COUNT usage.
8543 (gcn_omp_device_kind_arch_isa): Handle PROCESSOR_VEGA10 and
8545 (output_file_start): Rework assembler file header.
8546 (gcn_hsa_declare_function_name): Rework kernel metadata.
8547 * config/gcn/gcn.h (GCN_KERNEL_ARG_TYPES): Set to 16.
8548 * config/gcn/gcn.opt (PROCESSOR_VEGA): Remove enum.
8549 (PROCESSOR_VEGA10): New enum value.
8550 (PROCESSOR_VEGA20): New enum value.
8552 2020-06-17 Martin Liska <mliska@suse.cz>
8554 * gcov-dump.c (print_version): Collapse lisence header to 2 lines
8556 * gcov-tool.c (print_version): Likewise.
8557 * gcov.c (print_version): Likewise.
8559 2020-06-17 liuhongt <hongtao.liu@intel.com>
8562 * config/i386/i386-expand.c
8563 (ix86_expand_vec_shift_qihi_constant): New function.
8564 * config/i386/i386-protos.h
8565 (ix86_expand_vec_shift_qihi_constant): Declare.
8566 * config/i386/sse.md (<shift_insn><mode>3): Optimize shift
8567 V*QImode by constant.
8569 2020-06-16 Aldy Hernandez <aldyh@redhat.com>
8571 PR tree-optimization/95649
8572 * tree-ssa-propagate.c (propagate_into_phi_args): Do not propagate unless
8573 value is a constant.
8575 2020-06-16 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
8577 * config.in: Regenerate.
8578 * config/s390/s390.c (print_operand): Emit vector alignment hints
8579 for target z13, if AS accepts them. For other targets the logic
8581 * config/s390/s390.h (TARGET_VECTOR_LOADSTORE_ALIGNMENT_HINTS): Define
8583 * configure: Regenerate.
8584 * configure.ac: Check HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13.
8586 2020-06-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
8588 * config/arm/arm_mve.h (__arm_vaddq_m_n_s8): Correct the intrinsic
8590 (__arm_vaddq_m_n_s32): Likewise.
8591 (__arm_vaddq_m_n_s16): Likewise.
8592 (__arm_vaddq_m_n_u8): Likewise.
8593 (__arm_vaddq_m_n_u32): Likewise.
8594 (__arm_vaddq_m_n_u16): Likewise.
8595 (__arm_vaddq_m): Modify polymorphic variant.
8597 2020-06-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
8599 * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Correct the predicate
8600 and constraint of all the operands.
8601 (mve_sqrshrl_sat<supf>_di): Likewise.
8602 (mve_uqrshl_si): Likewise.
8603 (mve_sqrshr_si): Likewise.
8604 (mve_uqshll_di): Likewise.
8605 (mve_urshrl_di): Likewise.
8606 (mve_uqshl_si): Likewise.
8607 (mve_urshr_si): Likewise.
8608 (mve_sqshl_si): Likewise.
8609 (mve_srshr_si): Likewise.
8610 (mve_srshrl_di): Likewise.
8611 (mve_sqshll_di): Likewise.
8612 * config/arm/predicates.md (arm_low_register_operand): Define.
8614 2020-06-16 Jakub Jelinek <jakub@redhat.com>
8616 * tree.h (OMP_FOR_NON_RECTANGULAR): Define.
8617 * gimplify.c (gimplify_omp_for): Diagnose schedule, ordered
8618 or dist_schedule clause on non-rectangular loops. Handle
8619 gimplification of non-rectangular lb/b expressions. When changing
8620 iteration variable, adjust also non-rectangular lb/b expressions
8622 * omp-general.h (struct omp_for_data_loop): Add m1, m2 and outer
8624 (struct omp_for_data): Add non_rect member.
8625 * omp-general.c (omp_extract_for_data): Handle non-rectangular
8626 loops. Fill in non_rect, m1, m2 and outer.
8627 * omp-low.c (lower_omp_for): Handle non-rectangular lb/b expressions.
8628 * omp-expand.c (expand_omp_for): Emit sorry_at for unsupported
8629 non-rectangular loop cases and assert for cases that can't be
8631 * tree-pretty-print.c (dump_mem_ref): Formatting fix.
8632 (dump_omp_loop_non_rect_expr): New function.
8633 (dump_generic_node): Handle non-rectangular OpenMP loops.
8634 * tree-pretty-print.h (dump_omp_loop_non_rect_expr): Declare.
8635 * gimple-pretty-print.c (dump_gimple_omp_for): Handle non-rectangular
8638 2020-06-16 Richard Biener <rguenther@suse.de>
8641 * varasm.c (build_constant_desc): Remove set_mem_attributes call.
8643 2020-06-16 Kito Cheng <kito.cheng@sifive.com>
8646 * config/riscv/riscv.c (riscv_gpr_save_operation_p): Remove
8647 assertion and turn it into a early exit check.
8649 2020-06-15 Eric Botcazou <ebotcazou@adacore.com>
8651 * gimplify.c (gimplify_init_constructor) <AGGREGATE_TYPE>: Declare
8652 new ENSURE_SINGLE_ACCESS constant and move variables down. If it is
8653 true and all elements are zero, then always clear. Return GS_ERROR
8654 if a temporary would be created for it and NOTIFY_TEMP_CREATION set.
8655 (gimplify_modify_expr_rhs) <VAR_DECL>: If the target is volatile but
8656 the type is aggregate non-addressable, ask gimplify_init_constructor
8657 whether it can generate a single access to the target.
8659 2020-06-15 Eric Botcazou <ebotcazou@adacore.com>
8661 * tree-sra.c (propagate_subaccesses_from_rhs): When a non-scalar
8662 access on the LHS is replaced with a scalar access, propagate the
8663 TYPE_REVERSE_STORAGE_ORDER flag of the type of the original access.
8665 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
8667 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Remove
8668 TARGET_THREADPTR reference.
8669 (xtensa_tls_symbol_p, xtensa_tls_referenced_p): Use
8670 targetm.have_tls instead of TARGET_HAVE_TLS.
8671 (xtensa_option_override): Set targetm.have_tls to false in
8672 configurations without THREADPTR.
8674 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
8676 * config/xtensa/elf.h (ASM_SPEC, LINK_SPEC): Pass ABI switch to
8678 * config/xtensa/linux.h (ASM_SPEC, LINK_SPEC): Ditto.
8679 * config/xtensa/uclinux.h (ASM_SPEC, LINK_SPEC): Ditto.
8680 * config/xtensa/xtensa.c (xtensa_option_override): Initialize
8681 xtensa_windowed_abi if needed.
8682 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI_DEFAULT): New
8684 (TARGET_WINDOWED_ABI): Redefine to xtensa_windowed_abi.
8685 * config/xtensa/xtensa.opt (xtensa_windowed_abi): New target
8687 (mabi=call0, mabi=windowed): New options.
8688 * doc/invoke.texi: Document new -mabi= Xtensa-specific options.
8690 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
8692 * config/xtensa/xtensa.c (xtensa_can_eliminate): New function.
8693 (TARGET_CAN_ELIMINATE): New macro.
8694 * config/xtensa/xtensa.h
8695 (XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM)
8696 (XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM): New macros.
8697 (HARD_FRAME_POINTER_REGNUM): Define using
8698 XTENSA_*_HARD_FRAME_POINTER_REGNUM.
8699 (ELIMINABLE_REGS): Replace lines with HARD_FRAME_POINTER_REGNUM
8700 by lines with XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM and
8701 XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM.
8703 2020-06-15 Felix Yang <felix.yang@huawei.com>
8705 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Rename
8706 parameter to loop_vinfo and update uses. Use LOOP_VINFO_DATAREFS
8708 (vect_analyze_data_refs_alignment): Likewise, and use LOOP_VINFO_DDRS
8710 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Use
8711 LOOP_VINFO_DATAREFS when possible.
8712 (update_epilogue_loop_vinfo): Likewise.
8714 2020-06-15 Kito Cheng <kito.cheng@sifive.com>
8716 * config/riscv/riscv.c (riscv_gen_gpr_save_insn): Change type to
8718 (riscv_gpr_save_operation_p): Change type to unsigned for i and
8721 2020-06-15 Hongtao Liu <hongtao.liu@intel.com>
8724 * config/i386/i386-expand.c (ix86_expand_vecmul_qihi): New
8726 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Declare.
8727 * config/i386/sse.md (mul<mode>3): Drop mask_name since
8728 there's no real simd int8 multiplication instruction with
8729 mask. Also optimize it under TARGET_AVX512BW.
8730 (mulv8qi3): New expander.
8732 2020-06-12 Marco Elver <elver@google.com>
8734 * gimplify.c (gimplify_function_tree): Optimize and do not emit
8735 IFN_TSAN_FUNC_EXIT in a finally block if we do not need it.
8736 * params.opt: Add --param=tsan-instrument-func-entry-exit=.
8737 * tsan.c (instrument_memory_accesses): Make
8738 fentry_exit_instrument bool depend on new param.
8740 2020-06-12 Felix Yang <felix.yang@huawei.com>
8742 PR tree-optimization/95570
8743 * tree-vect-data-refs.c (vect_relevant_for_alignment_p): New function.
8744 (vect_verify_datarefs_alignment): Call it to filter out data references
8745 in the loop whose alignment is irrelevant.
8746 (vect_get_peeling_costs_all_drs): Likewise.
8747 (vect_peeling_supportable): Likewise.
8748 (vect_enhance_data_refs_alignment): Likewise.
8750 2020-06-12 Richard Biener <rguenther@suse.de>
8752 PR tree-optimization/95633
8753 * tree-vect-stmts.c (vectorizable_condition): Properly
8754 guard the vec_else_clause access with EXTRACT_LAST_REDUCTION.
8756 2020-06-12 Martin Liška <mliska@suse.cz>
8758 * cgraphunit.c (process_symver_attribute): Wrap weakref keyword.
8759 * dbgcnt.c (dbg_cnt_set_limit_by_index): Do not print extra new
8761 * lto-wrapper.c (merge_and_complain): Wrap option names.
8763 2020-06-12 Kewen Lin <linkw@gcc.gnu.org>
8765 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Rename
8766 LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE. Rename
8767 LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
8768 (vect_set_loop_condition_masked): Renamed to ...
8769 (vect_set_loop_condition_partial_vectors): ... this. Rename
8770 LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE. Rename
8771 vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
8772 (vect_set_loop_condition_unmasked): Renamed to ...
8773 (vect_set_loop_condition_normal): ... this.
8774 (vect_set_loop_condition): Rename vect_set_loop_condition_unmasked to
8775 vect_set_loop_condition_normal. Rename vect_set_loop_condition_masked
8776 to vect_set_loop_condition_partial_vectors.
8777 (vect_prepare_for_masked_peels): Rename LOOP_VINFO_MASK_COMPARE_TYPE
8778 to LOOP_VINFO_RGROUP_COMPARE_TYPE.
8779 * tree-vect-loop.c (vect_known_niters_smaller_than_vf): New, factored
8781 (vect_analyze_loop_costing): ... this.
8782 (_loop_vec_info::_loop_vec_info): Rename mask_compare_type to
8784 (vect_min_prec_for_max_niters): New, factored out from ...
8785 (vect_verify_full_masking): ... this. Rename
8786 vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
8787 Rename LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE.
8788 Rename LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
8789 (vectorizable_reduction): Update some dumpings with partial
8790 vectors instead of fully-masked.
8791 (vectorizable_live_operation): Likewise.
8792 (vect_iv_limit_for_full_masking): Renamed to ...
8793 (vect_iv_limit_for_partial_vectors): ... this.
8794 * tree-vect-stmts.c (check_load_store_masking): Renamed to ...
8795 (check_load_store_for_partial_vectors): ... this. Update some
8796 dumpings with partial vectors instead of fully-masked.
8797 (vectorizable_store): Rename check_load_store_masking to
8798 check_load_store_for_partial_vectors.
8799 (vectorizable_load): Likewise.
8800 * tree-vectorizer.h (LOOP_VINFO_MASK_COMPARE_TYPE): Renamed to ...
8801 (LOOP_VINFO_RGROUP_COMPARE_TYPE): ... this.
8802 (LOOP_VINFO_MASK_IV_TYPE): Renamed to ...
8803 (LOOP_VINFO_RGROUP_IV_TYPE): ... this.
8804 (vect_iv_limit_for_full_masking): Renamed to ...
8805 (vect_iv_limit_for_partial_vectors): this.
8806 (_loop_vec_info): Rename mask_compare_type to rgroup_compare_type.
8807 Rename iv_type to rgroup_iv_type.
8809 2020-06-12 Richard Sandiford <richard.sandiford@arm.com>
8811 * recog.h (insn_gen_fn::f0, insn_gen_fn::f1, insn_gen_fn::f2)
8812 (insn_gen_fn::f3, insn_gen_fn::f4, insn_gen_fn::f5, insn_gen_fn::f6)
8813 (insn_gen_fn::f7, insn_gen_fn::f8, insn_gen_fn::f9, insn_gen_fn::f10)
8814 (insn_gen_fn::f11, insn_gen_fn::f12, insn_gen_fn::f13)
8815 (insn_gen_fn::f14, insn_gen_fn::f15, insn_gen_fn::f16): Delete.
8816 (insn_gen_fn::operator()): Replace overloaded definitions with
8817 a parameter-pack version.
8819 2020-06-12 H.J. Lu <hjl.tools@gmail.com>
8822 * config/i386/i386-features.c (rest_of_insert_endbranch):
8824 (rest_of_insert_endbr_and_patchable_area): Change return type
8825 to void. Add need_endbr and patchable_area_size arguments.
8826 Don't call timevar_push nor timevar_pop. Replace
8827 endbr_queued_at_entrance with insn_queued_at_entrance. Insert
8828 UNSPECV_PATCHABLE_AREA for patchable area.
8829 (pass_data_insert_endbranch): Renamed to ...
8830 (pass_data_insert_endbr_and_patchable_area): This. Change
8831 pass name to endbr_and_patchable_area.
8832 (pass_insert_endbranch): Renamed to ...
8833 (pass_insert_endbr_and_patchable_area): This. Add need_endbr
8834 and patchable_area_size;.
8835 (pass_insert_endbr_and_patchable_area::gate): Set and check
8836 need_endbr and patchable_area_size.
8837 (pass_insert_endbr_and_patchable_area::execute): Call
8838 timevar_push and timevar_pop. Pass need_endbr and
8839 patchable_area_size to rest_of_insert_endbr_and_patchable_area.
8840 (make_pass_insert_endbranch): Renamed to ...
8841 (make_pass_insert_endbr_and_patchable_area): This.
8842 * config/i386/i386-passes.def: Replace pass_insert_endbranch
8843 with pass_insert_endbr_and_patchable_area.
8844 * config/i386/i386-protos.h (ix86_output_patchable_area): New.
8845 (make_pass_insert_endbranch): Renamed to ...
8846 (make_pass_insert_endbr_and_patchable_area): This.
8847 * config/i386/i386.c (ix86_asm_output_function_label): Set
8848 function_label_emitted to true.
8849 (ix86_print_patchable_function_entry): New function.
8850 (ix86_output_patchable_area): Likewise.
8851 (x86_function_profiler): Replace endbr_queued_at_entrance with
8852 insn_queued_at_entrance. Generate ENDBR only for TYPE_ENDBR.
8853 Call ix86_output_patchable_area to generate patchable area if
8855 (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): New.
8856 * config/i386/i386.h (queued_insn_type): New.
8857 (machine_function): Add function_label_emitted. Replace
8858 endbr_queued_at_entrance with insn_queued_at_entrance.
8859 * config/i386/i386.md (UNSPECV_PATCHABLE_AREA): New.
8860 (patchable_area): New.
8862 2020-06-11 Martin Liska <mliska@suse.cz>
8864 * config/rs6000/rs6000.c (rs6000_density_test): Fix GNU coding
8867 2020-06-11 Martin Liska <mliska@suse.cz>
8870 * config/rs6000/rs6000.c (rs6000_density_test): Skip debug
8873 2020-06-11 Martin Liska <mliska@suse.cz>
8874 Jakub Jelinek <jakub@redhat.com>
8877 * asan.c (asan_emit_stack_protection): Fix emission for ilp32
8878 by using Pmode instead of ptr_mode.
8880 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
8882 * tree-vect-loop-manip.c (vect_set_loop_mask): Renamed to ...
8883 (vect_set_loop_control): ... this.
8884 (vect_maybe_permute_loop_masks): Rename rgroup_masks related things.
8885 (vect_set_loop_masks_directly): Renamed to ...
8886 (vect_set_loop_controls_directly): ... this. Also rename some
8887 variables with ctrl instead of mask. Rename vect_set_loop_mask to
8888 vect_set_loop_control.
8889 (vect_set_loop_condition_masked): Rename rgroup_masks related things.
8890 Also rename some variables with ctrl instead of mask.
8891 * tree-vect-loop.c (release_vec_loop_masks): Renamed to ...
8892 (release_vec_loop_controls): ... this. Rename rgroup_masks related
8894 (_loop_vec_info::~_loop_vec_info): Rename release_vec_loop_masks to
8895 release_vec_loop_controls.
8896 (can_produce_all_loop_masks_p): Rename rgroup_masks related things.
8897 (vect_get_max_nscalars_per_iter): Likewise.
8898 (vect_estimate_min_profitable_iters): Likewise.
8899 (vect_record_loop_mask): Likewise.
8900 (vect_get_loop_mask): Likewise.
8901 * tree-vectorizer.h (struct rgroup_masks): Renamed to ...
8902 (struct rgroup_controls): ... this. Also rename mask_type
8903 to type and rename masks to controls.
8905 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
8907 * tree-vect-loop-manip.c (vect_set_loop_condition): Rename
8908 LOOP_VINFO_FULLY_MASKED_P to LOOP_VINFO_USING_PARTIAL_VECTORS_P.
8909 (vect_gen_vector_loop_niters): Likewise.
8910 (vect_do_peeling): Likewise.
8911 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
8912 fully_masked_p to using_partial_vectors_p.
8913 (vect_analyze_loop_costing): Rename LOOP_VINFO_FULLY_MASKED_P to
8914 LOOP_VINFO_USING_PARTIAL_VECTORS_P.
8915 (determine_peel_for_niter): Likewise.
8916 (vect_estimate_min_profitable_iters): Likewise.
8917 (vect_transform_loop): Likewise.
8918 * tree-vectorizer.h (LOOP_VINFO_FULLY_MASKED_P): Updated.
8919 (LOOP_VINFO_USING_PARTIAL_VECTORS_P): New macro.
8921 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
8923 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
8924 can_fully_mask_p to can_use_partial_vectors_p.
8925 (vect_analyze_loop_2): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
8926 LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P. Rename saved_can_fully_mask_p
8927 to saved_can_use_partial_vectors_p.
8928 (vectorizable_reduction): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
8929 LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P.
8930 (vectorizable_live_operation): Likewise.
8931 * tree-vect-stmts.c (permute_vec_elements): Likewise.
8932 (check_load_store_masking): Likewise.
8933 (vectorizable_operation): Likewise.
8934 (vectorizable_store): Likewise.
8935 (vectorizable_load): Likewise.
8936 (vectorizable_condition): Likewise.
8937 * tree-vectorizer.h (LOOP_VINFO_CAN_FULLY_MASK_P): Renamed to ...
8938 (LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P): ... this.
8939 (_loop_vec_info): Rename can_fully_mask_p to can_use_partial_vectors_p.
8941 2020-06-11 Martin Liska <mliska@suse.cz>
8943 * optc-save-gen.awk: Quote error string.
8945 2020-06-11 Alexandre Oliva <oliva@adacore.com>
8947 * print-rtl.c (print_mem_expr): Enable TDF_SLIM in dump_flags.
8949 2020-06-11 Kito Cheng <kito.cheng@sifive.com>
8951 * config/riscv/riscv-protos.h (riscv_output_gpr_save): Remove.
8952 * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Update
8954 * config/riscv/riscv.c (riscv_output_gpr_save): Remove.
8955 * config/riscv/riscv.md (gpr_save): Update output asm pattern.
8957 2020-06-11 Kito Cheng <kito.cheng@sifive.com>
8959 * config/riscv/predicates.md (gpr_save_operation): New.
8960 * config/riscv/riscv-protos.h (riscv_gen_gpr_save_insn): New.
8961 (riscv_gpr_save_operation_p): Ditto.
8962 * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
8963 Ignore USEs for gpr_save patter.
8964 * config/riscv/riscv.c (gpr_save_reg_order): New.
8965 (riscv_expand_prologue): Use riscv_gen_gpr_save_insn to gen gpr_save.
8966 (riscv_gen_gpr_save_insn): New.
8967 (riscv_gpr_save_operation_p): Ditto.
8968 * config/riscv/riscv.md (S3_REGNUM): New.
8975 (S10_REGNUM): Ditto.
8976 (S11_REGNUM): Ditto.
8977 (gpr_save): Model USEs correctly.
8979 2020-06-10 Martin Sebor <msebor@redhat.com>
8983 * builtins.c (inform_access): New function.
8984 (check_access): Call it. Add argument.
8985 (addr_decl_size): Remove.
8986 (get_range): New function.
8987 (compute_objsize): New overload. Only use compute_builtin_object_size
8988 with raw memory function.
8989 (check_memop_access): Pass new argument to compute_objsize and
8991 (expand_builtin_memchr, expand_builtin_strcat): Same.
8992 (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
8993 (expand_builtin_stpncpy, check_strncat_sizes): Same.
8994 (expand_builtin_strncat, expand_builtin_strncpy): Same.
8995 (expand_builtin_memcmp): Same.
8996 * builtins.h (check_nul_terminated_array): Declare extern.
8997 (check_access): Add argument.
8998 (struct access_ref, struct access_data): New structs.
8999 * gimple-ssa-warn-restrict.c (clamp_offset): New helper.
9000 (builtin_access::overlap): Call it.
9001 * tree-object-size.c (decl_init_size): Declare extern.
9002 (addr_object_size): Correct offset computation.
9003 * tree-object-size.h (decl_init_size): Declare.
9004 * tree-ssa-strlen.c (handle_integral_assign): Remove a call
9005 to maybe_warn_overflow when assigning to an SSA_NAME.
9007 2020-06-10 Richard Biener <rguenther@suse.de>
9009 * tree-vect-loop.c (vect_determine_vectorization_factor):
9011 (_loop_vec_info::_loop_vec_info): Likewise.
9012 (vect_update_vf_for_slp): Likewise.
9013 (vect_analyze_loop_operations): Likewise.
9014 (update_epilogue_loop_vinfo): Likewise.
9015 * tree-vect-patterns.c (vect_determine_precisions): Likewise.
9016 (vect_pattern_recog): Likewise.
9017 * tree-vect-slp.c (vect_detect_hybrid_slp): Likewise.
9018 (_bb_vec_info::_bb_vec_info): Likewise.
9019 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized):
9022 2020-06-10 Richard Biener <rguenther@suse.de>
9024 PR tree-optimization/95576
9025 * tree-vect-slp.c (vect_slp_bb): Skip leading debug stmts.
9027 2020-06-10 Haijian Zhang <z.zhanghaijian@huawei.com>
9030 * config/aarch64/aarch64-sve-builtins.h
9031 (sve_switcher::m_old_maximum_field_alignment): New member.
9032 * config/aarch64/aarch64-sve-builtins.cc
9033 (sve_switcher::sve_switcher): Save maximum_field_alignment in
9034 m_old_maximum_field_alignment and clear maximum_field_alignment.
9035 (sve_switcher::~sve_switcher): Restore maximum_field_alignment.
9037 2020-06-10 Richard Biener <rguenther@suse.de>
9039 * tree-vectorizer.h (_slp_tree::vec_stmts): Make it a vector
9041 (_stmt_vec_info::vec_stmts): Likewise.
9042 (vec_info::stmt_vec_info_ro): New flag.
9043 (vect_finish_replace_stmt): Adjust declaration.
9044 (vect_finish_stmt_generation): Likewise.
9045 (vectorizable_induction): Likewise.
9046 (vect_transform_reduction): Likewise.
9047 (vectorizable_lc_phi): Likewise.
9048 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Do not
9049 allocate stmt infos for increments.
9050 (vect_record_grouped_load_vectors): Adjust.
9051 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
9052 (vectorize_fold_left_reduction): Likewise.
9053 (vect_transform_reduction): Likewise.
9054 (vect_transform_cycle_phi): Likewise.
9055 (vectorizable_lc_phi): Likewise.
9056 (vectorizable_induction): Likewise.
9057 (vectorizable_live_operation): Likewise.
9058 (vect_transform_loop): Likewise.
9059 * tree-vect-patterns.c (vect_pattern_recog): Set stmt_vec_info_ro.
9060 * tree-vect-slp.c (vect_get_slp_vect_def): Adjust.
9061 (vect_get_slp_defs): Likewise.
9062 (vect_transform_slp_perm_load): Likewise.
9063 (vect_schedule_slp_instance): Likewise.
9064 (vectorize_slp_instance_root_stmt): Likewise.
9065 * tree-vect-stmts.c (vect_get_vec_defs_for_operand): Likewise.
9066 (vect_finish_stmt_generation_1): Do not allocate a stmt info.
9067 (vect_finish_replace_stmt): Do not return anything.
9068 (vect_finish_stmt_generation): Likewise.
9069 (vect_build_gather_load_calls): Adjust.
9070 (vectorizable_bswap): Likewise.
9071 (vectorizable_call): Likewise.
9072 (vectorizable_simd_clone_call): Likewise.
9073 (vect_create_vectorized_demotion_stmts): Likewise.
9074 (vectorizable_conversion): Likewise.
9075 (vectorizable_assignment): Likewise.
9076 (vectorizable_shift): Likewise.
9077 (vectorizable_operation): Likewise.
9078 (vectorizable_scan_store): Likewise.
9079 (vectorizable_store): Likewise.
9080 (vectorizable_load): Likewise.
9081 (vectorizable_condition): Likewise.
9082 (vectorizable_comparison): Likewise.
9083 (vect_transform_stmt): Likewise.
9084 * tree-vectorizer.c (vec_info::vec_info): Initialize
9086 (vec_info::replace_stmt): Copy over stmt UID rather than
9087 unsetting/setting a stmt info allocating a new UID.
9088 (vec_info::set_vinfo_for_stmt): Assert !stmt_vec_info_ro.
9090 2020-06-10 Aldy Hernandez <aldyh@redhat.com>
9092 * gimple-loop-versioning.cc (loop_versioning::name_prop::get_value):
9094 * gimple-ssa-evrp.c (class evrp_folder): New.
9095 (class evrp_dom_walker): Remove.
9096 (execute_early_vrp): Use evrp_folder instead of evrp_dom_walker.
9097 * tree-ssa-ccp.c (ccp_folder::get_value): Add stmt parameter.
9098 * tree-ssa-copy.c (copy_folder::get_value): Same.
9099 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
9100 Pass stmt to get_value.
9101 (substitute_and_fold_engine::replace_phi_args_in): Same.
9102 (substitute_and_fold_dom_walker::after_dom_children): Call
9104 (substitute_and_fold_dom_walker::foreach_new_stmt_in_bb): New.
9105 (substitute_and_fold_dom_walker::propagate_into_phi_args): New.
9106 (substitute_and_fold_dom_walker::before_dom_children): Adjust to
9107 call virtual functions for folding, pre_folding, and post folding.
9108 Call get_value with PHI. Tweak dump.
9109 * tree-ssa-propagate.h (class substitute_and_fold_engine):
9110 New argument to get_value.
9111 New virtual function pre_fold_bb.
9112 New virtual function post_fold_bb.
9113 New virtual function pre_fold_stmt.
9114 New virtual function post_new_stmt.
9115 New function propagate_into_phi_args.
9116 * tree-vrp.c (vrp_folder::get_value): Add stmt argument.
9117 * vr-values.c (vr_values::extract_range_from_stmt): Adjust dump
9119 (vr_values::fold_cond): New.
9120 (vr_values::simplify_cond_using_ranges_1): Call fold_cond.
9121 * vr-values.h (class vr_values): Add
9122 simplify_cond_using_ranges_when_edge_is_known.
9124 2020-06-10 Martin Liska <mliska@suse.cz>
9127 * asan.c (asan_emit_stack_protection): Emit
9128 also **SavedFlagPtr(FakeStack, class_id) = 0 in order to release
9131 2020-06-10 Tamar Christina <tamar.christina@arm.com>
9133 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Adjust costs for mul.
9135 2020-06-10 Richard Biener <rguenther@suse.de>
9137 * tree-vect-data-refs.c (vect_vfa_access_size): Adjust.
9138 (vect_record_grouped_load_vectors): Likewise.
9139 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
9140 (vectorize_fold_left_reduction): Likewise.
9141 (vect_transform_reduction): Likewise.
9142 (vect_transform_cycle_phi): Likewise.
9143 (vectorizable_lc_phi): Likewise.
9144 (vectorizable_induction): Likewise.
9145 (vectorizable_live_operation): Likewise.
9146 (vect_transform_loop): Likewise.
9147 * tree-vect-slp.c (vect_get_slp_defs): New function, split out
9149 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Remove.
9150 (vect_get_vec_def_for_operand): Likewise.
9151 (vect_get_vec_def_for_stmt_copy): Likewise.
9152 (vect_get_vec_defs_for_stmt_copy): Likewise.
9153 (vect_get_vec_defs_for_operand): New function.
9154 (vect_get_vec_defs): Likewise.
9155 (vect_build_gather_load_calls): Adjust.
9156 (vect_get_gather_scatter_ops): Likewise.
9157 (vectorizable_bswap): Likewise.
9158 (vectorizable_call): Likewise.
9159 (vectorizable_simd_clone_call): Likewise.
9160 (vect_get_loop_based_defs): Remove.
9161 (vect_create_vectorized_demotion_stmts): Adjust.
9162 (vectorizable_conversion): Likewise.
9163 (vectorizable_assignment): Likewise.
9164 (vectorizable_shift): Likewise.
9165 (vectorizable_operation): Likewise.
9166 (vectorizable_scan_store): Likewise.
9167 (vectorizable_store): Likewise.
9168 (vectorizable_load): Likewise.
9169 (vectorizable_condition): Likewise.
9170 (vectorizable_comparison): Likewise.
9171 (vect_transform_stmt): Adjust and remove no longer applicable
9173 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9174 STMT_VINFO_VEC_STMTS.
9175 (vec_info::free_stmt_vec_info): Relase it.
9176 * tree-vectorizer.h (_stmt_vec_info::vectorized_stmt): Remove.
9177 (_stmt_vec_info::vec_stmts): Add.
9178 (STMT_VINFO_VEC_STMT): Remove.
9179 (STMT_VINFO_VEC_STMTS): New.
9180 (vect_get_vec_def_for_operand_1): Remove.
9181 (vect_get_vec_def_for_operand): Likewise.
9182 (vect_get_vec_defs_for_stmt_copy): Likewise.
9183 (vect_get_vec_def_for_stmt_copy): Likewise.
9184 (vect_get_vec_defs): New overloads.
9185 (vect_get_vec_defs_for_operand): New.
9186 (vect_get_slp_defs): Declare.
9188 2020-06-10 Qian Chao <qianchao9@huawei.com>
9190 PR tree-optimization/95569
9191 * trans-mem.c (expand_assign_tm): Ensure that rtmp is marked TREE_ADDRESSABLE.
9193 2020-06-10 Martin Liska <mliska@suse.cz>
9195 PR tree-optimization/92860
9196 * optc-save-gen.awk: Generate new function cl_optimization_compare.
9197 * opth-gen.awk: Generate declaration of the function.
9199 2020-06-09 Michael Meissner <meissner@linux.ibm.com>
9201 * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
9202 'future' PowerPC platform.
9203 (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
9204 (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
9205 * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
9207 * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
9208 (rs6000_clone_map): Add 'future' system target_clones support.
9210 2020-06-09 Michael Kuhn <gcc@ikkoku.de>
9212 * Makefile.in (ZSTD_INC): Define.
9213 (ZSTD_LIB): Include ZSTD_LDFLAGS.
9214 (CFLAGS-lto-compress.o): Add ZSTD_INC.
9215 * configure.ac (ZSTD_CPPFLAGS, ZSTD_LDFLAGS): New variables for
9217 * configure: Rebuilt.
9219 2020-06-09 Jason Merrill <jason@redhat.com>
9222 * tree.c (walk_tree_1): Call func on the TYPE_DECL of a DECL_EXPR.
9224 2020-06-09 Marco Elver <elver@google.com>
9226 * params.opt: Define --param=tsan-distinguish-volatile=[0,1].
9227 * sanitizer.def (BUILT_IN_TSAN_VOLATILE_READ1): Define new
9228 builtin for volatile instrumentation of reads/writes.
9229 (BUILT_IN_TSAN_VOLATILE_READ2): Likewise.
9230 (BUILT_IN_TSAN_VOLATILE_READ4): Likewise.
9231 (BUILT_IN_TSAN_VOLATILE_READ8): Likewise.
9232 (BUILT_IN_TSAN_VOLATILE_READ16): Likewise.
9233 (BUILT_IN_TSAN_VOLATILE_WRITE1): Likewise.
9234 (BUILT_IN_TSAN_VOLATILE_WRITE2): Likewise.
9235 (BUILT_IN_TSAN_VOLATILE_WRITE4): Likewise.
9236 (BUILT_IN_TSAN_VOLATILE_WRITE8): Likewise.
9237 (BUILT_IN_TSAN_VOLATILE_WRITE16): Likewise.
9238 * tsan.c (get_memory_access_decl): Argument if access is
9239 volatile. If param tsan-distinguish-volatile is non-zero, and
9240 access if volatile, return volatile instrumentation decl.
9241 (instrument_expr): Check if access is volatile.
9243 2020-06-09 Richard Biener <rguenther@suse.de>
9245 * tree-vect-loop.c (vectorizable_induction): Remove dead code.
9247 2020-06-09 Tobias Burnus <tobias@codesourcery.com>
9249 * omp-offload.c (add_decls_addresses_to_decl_constructor,
9250 omp_finish_file): With in_lto_p, stream out all offload-table
9251 items even if the symtab_node does not exist.
9253 2020-06-09 Richard Biener <rguenther@suse.de>
9255 * tree-vect-stmts.c (vect_transform_stmt): Remove dead code.
9257 2020-06-09 Martin Liska <mliska@suse.cz>
9259 * gcov-dump.c (print_usage): Fix spacing for --raw option
9262 2020-06-09 Martin Liska <mliska@suse.cz>
9264 * cif-code.def (ATTRIBUTE_MISMATCH): Rename to...
9265 (SANITIZE_ATTRIBUTE_MISMATCH): ...this.
9266 * ipa-inline.c (sanitize_attrs_match_for_inline_p):
9267 Handle all sanitizer options.
9268 (can_inline_edge_p): Use renamed CIF_* enum value.
9270 2020-06-09 Joe Ramsay <joe.ramsay@arm.com>
9272 * config/aarch64/aarch64-sve.md (<optab><mode>2): Add support for
9274 (@aarch64_pred_<optab><mode>): Add support for unpacked vectors.
9275 (@aarch64_bic<mode>): Enable unpacked BIC.
9276 (*bic<mode>3): Enable unpacked BIC.
9278 2020-06-09 Martin Liska <mliska@suse.cz>
9280 PR gcov-profile/95365
9281 * doc/gcov.texi: Compile and link one example in 2 steps.
9283 2020-06-09 Jakub Jelinek <jakub@redhat.com>
9285 PR tree-optimization/95527
9286 * match.pd (__builtin_ffs (X) cmp CST): New optimizations.
9288 2020-06-09 Michael Meissner <meissner@linux.ibm.com>
9290 * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
9291 'future' PowerPC platform.
9292 (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
9293 (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
9294 * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
9296 * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
9297 (rs6000_clone_map): Add 'future' system target_clones support.
9299 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
9303 * omp-offload.c (add_decls_addresses_to_decl_constructor,
9304 omp_finish_file): Skip removed items.
9305 * lto-cgraph.c (output_offload_tables): Likewise; set force_output
9306 to this node for variables and functions.
9308 2020-06-08 Jason Merrill <jason@redhat.com>
9310 * aclocal.m4: Remove ax_cxx_compile_stdcxx.m4.
9311 * configure.ac: Remove AX_CXX_COMPILE_STDCXX.
9312 * configure: Regenerate.
9314 2020-06-08 Martin Sebor <msebor@redhat.com>
9316 * postreload.c (reload_cse_simplify_operands): Clear first array element
9317 before using it. Assert a precondition.
9319 2020-06-08 Jakub Jelinek <jakub@redhat.com>
9322 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't use
9323 VEC_UNPACK*_EXPR or VEC_PACK_TRUNC_EXPR with scalar modes unless the
9324 type is vector boolean.
9326 2020-06-08 Tamar Christina <tamar.christina@arm.com>
9328 * config/aarch64/aarch64.c (aarch64_layout_frame): Expand comments.
9330 2020-06-08 Christophe Lyon <christophe.lyon@linaro.org>
9332 * config/arm/predicates.md (vfp_register_operand): Use VFP_HI_REGS
9333 instead of VFP_REGS.
9335 2020-06-08 Martin Liska <mliska@suse.cz>
9337 * config/rs6000/vector.md: Replace FAIL with gcc_unreachable
9338 in all vcond* patterns.
9340 2020-06-08 Christophe Lyon <christophe.lyon@linaro.org>
9342 * common/config/arm/arm-common.c (INCLUDE_ALGORITHM):
9343 Define. No longer include <algorithm>.
9345 2020-06-07 Roger Sayle <roger@nextmovesoftware.com>
9347 * config/i386/i386.md (paritydi2, paritysi2): Expand reduction
9348 via shift and xor to an USPEC PARITY matching a parityhi2_cmp.
9349 (paritydi2_cmp, paritysi2_cmp): Delete these define_insn_and_split.
9350 (parityhi2, parityqi2): New expanders.
9351 (parityhi2_cmp): Implement set parity flag with xorb insn.
9352 (parityqi2_cmp): Implement set parity flag with testb insn.
9353 New peephole2s to use these insns (UNSPEC PARITY) when appropriate.
9355 2020-06-07 Jiufu Guo <guojiufu@linux.ibm.com>
9358 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9359 Override flag_cunroll_grow_size.
9361 2020-06-07 Jiufu Guo <guojiufu@linux.ibm.com>
9363 * common.opt (flag_cunroll_grow_size): New flag.
9364 * toplev.c (process_options): Set flag_cunroll_grow_size.
9365 * tree-ssa-loop-ivcanon.c (pass_complete_unroll::execute):
9366 Use flag_cunroll_grow_size.
9368 2020-06-06 Jan Hubicka <hubicka@ucw.cz>
9371 * ipa-devirt.c (struct odr_enum_val): Turn values to wide_int.
9372 (ipa_odr_summary_write): Update streaming.
9373 (ipa_odr_read_section): Update streaming.
9375 2020-06-06 Alexandre Oliva <oliva@adacore.com>
9378 * gcc.c (do_spec_1): Don't call memcpy (_, NULL, 0).
9380 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
9381 Julian Brown <julian@codesourcery.com>
9383 * gimplify.c (gimplify_adjust_omp_clauses): Remove
9384 'GOMP_MAP_STRUCT' mapping from OpenACC 'exit data' directives.
9386 2020-06-05 Richard Biener <rguenther@suse.de>
9388 PR tree-optimization/95539
9389 * tree-vect-data-refs.c
9390 (vect_slp_analyze_and_verify_instance_alignment): Use
9391 SLP_TREE_REPRESENTATIVE for the data-ref check.
9392 * tree-vect-stmts.c (vectorizable_load): Reset stmt_info
9393 back to the first scalar stmt rather than the
9394 SLP_TREE_REPRESENTATIVE to match previous behavior.
9396 2020-06-05 Felix Yang <felix.yang@huawei.com>
9399 * expr.c (emit_move_insn): Check src and dest of the copy to see
9400 if one or both of them are subregs, try to remove the subregs when
9401 innermode and outermode are equal in size and the mode change involves
9402 an implicit round trip through memory.
9404 2020-06-05 Jakub Jelinek <jakub@redhat.com>
9407 * config/i386/i386.md (*ctzsi2_zext, *clzsi2_lzcnt_zext): New
9408 define_insn_and_split patterns.
9409 (*ctzsi2_zext_falsedep, *clzsi2_lzcnt_zext_falsedep): New
9410 define_insn patterns.
9412 2020-06-05 Jonathan Wakely <jwakely@redhat.com>
9414 * alloc-pool.h (object_allocator::remove_raw): New.
9415 * tree-ssa-math-opts.c (struct occurrence): Use NSMDI.
9416 (occurrence::occurrence): Add.
9417 (occurrence::~occurrence): Likewise.
9418 (occurrence::new): Likewise.
9419 (occurrence::delete): Likewise.
9421 (insert_bb): Use new occurence (...) instead of occ_new.
9422 (register_division_in): Likewise.
9423 (free_bb): Use delete occ instead of manually removing
9426 2020-06-05 Richard Biener <rguenther@suse.de>
9429 * cfgexpand.c (expand_debug_expr): Avoid calling
9430 set_mem_attributes_minus_bitpos when we were expanding
9432 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9433 ARRAY_REF special-casing, add CONSTRUCTOR to the set of
9434 special-cases we do not want MEM_EXPRs for. Assert
9435 we end up with reasonable MEM_EXPRs.
9437 2020-06-05 Lili Cui <lili.cui@intel.com>
9440 * config/i386/i386.h (PTA_WAITPKG): Change bitmask value.
9442 2020-06-04 Martin Sebor <msebor@redhat.com>
9446 * attribs.c (init_attr_rdwr_indices): Move function here.
9447 * attribs.h (rdwr_access_hash, rdwr_map): Define.
9448 (attr_access): Add 'none'.
9449 (init_attr_rdwr_indices): Declared function.
9450 * builtins.c (warn_for_access)): New function.
9451 (check_access): Call it.
9452 * builtins.h (checK-access): Add an optional argument.
9453 * calls.c (rdwr_access_hash, rdwr_map): Move to attribs.h.
9454 (init_attr_rdwr_indices): Declare extern.
9455 (append_attrname): Handle attr_access::none.
9456 (maybe_warn_rdwr_sizes): Same.
9457 (initialize_argument_information): Update comments.
9458 * doc/extend.texi (attribute access): Document 'none'.
9459 * tree-ssa-uninit.c (struct wlimits): New.
9460 (maybe_warn_operand): New function.
9461 (maybe_warn_pass_by_reference): Same.
9462 (warn_uninitialized_vars): Refactor code into maybe_warn_operand.
9463 Also call for function calls.
9464 (pass_late_warn_uninitialized::execute): Adjust comments.
9465 (execute_early_warn_uninitialized): Same.
9467 2020-06-04 Vladimir Makarov <vmakarov@redhat.com>
9470 * lra.c (lra_emit_move): Add processing STRICT_LOW_PART.
9471 * lra-constraints.c (match_reload): Use STRICT_LOW_PART in output
9472 reload if the original insn has it too.
9474 2020-06-04 Richard Biener <rguenther@suse.de>
9476 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr):
9477 Ensure that tmp_ha is marked TREE_ADDRESSABLE.
9479 2020-06-04 Martin Jambor <mjambor@suse.cz>
9482 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move non-call
9483 exceptions check to...
9484 * tree-eh.c (stmt_unremovable_because_of_non_call_eh_p): ...this
9486 * tree-eh.h (stmt_unremovable_because_of_non_call_eh_p): Declare it.
9487 * ipa-sra.c (isra_track_scalar_value_uses): Use it. New parameter
9490 2020-06-04 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
9493 * config/arm/predicates.md (mve_scatter_memory): Define to
9494 match (mem (reg)) for scatter store memory.
9495 * config/arm/mve.md (mve_vstrbq_scatter_offset_<supf><mode>): Modify
9496 define_insn to define_expand.
9497 (mve_vstrbq_scatter_offset_p_<supf><mode>): Likewise.
9498 (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
9499 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
9500 (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
9501 (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
9502 (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
9503 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
9504 (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
9505 (mve_vstrhq_scatter_offset_fv8hf): Likewise.
9506 (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
9507 (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
9508 (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
9509 (mve_vstrwq_scatter_offset_fv4sf): Likewise.
9510 (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
9511 (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
9512 (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
9513 (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
9514 (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
9515 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
9516 (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
9517 (mve_vstrbq_scatter_offset_<supf><mode>_insn): Define insn for scatter
9519 (mve_vstrbq_scatter_offset_p_<supf><mode>_insn): Likewise.
9520 (mve_vstrhq_scatter_offset_<supf><mode>_insn): Likewise.
9521 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>_insn): Likewise.
9522 (mve_vstrhq_scatter_shifted_offset_<supf><mode>_insn): Likewise.
9523 (mve_vstrdq_scatter_offset_p_<supf>v2di_insn): Likewise.
9524 (mve_vstrdq_scatter_offset_<supf>v2di_insn): Likewise.
9525 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di_insn): Likewise.
9526 (mve_vstrdq_scatter_shifted_offset_<supf>v2di_insn): Likewise.
9527 (mve_vstrhq_scatter_offset_fv8hf_insn): Likewise.
9528 (mve_vstrhq_scatter_offset_p_fv8hf_insn): Likewise.
9529 (mve_vstrhq_scatter_shifted_offset_fv8hf_insn): Likewise.
9530 (mve_vstrhq_scatter_shifted_offset_p_fv8hf_insn): Likewise.
9531 (mve_vstrwq_scatter_offset_fv4sf_insn): Likewise.
9532 (mve_vstrwq_scatter_offset_p_fv4sf_insn): Likewise.
9533 (mve_vstrwq_scatter_offset_p_<supf>v4si_insn): Likewise.
9534 (mve_vstrwq_scatter_offset_<supf>v4si_insn): Likewise.
9535 (mve_vstrwq_scatter_shifted_offset_fv4sf_insn): Likewise.
9536 (mve_vstrwq_scatter_shifted_offset_p_fv4sf_insn): Likewise.
9537 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si_insn): Likewise.
9538 (mve_vstrwq_scatter_shifted_offset_<supf>v4si_insn): Likewise.
9540 2020-06-04 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
9542 * config/arm/arm_mve.h (__arm_vbicq_n_u16): Correct the intrinsic
9544 (__arm_vbicq_n_s16): Likewise.
9545 (__arm_vbicq_n_u32): Likewise.
9546 (__arm_vbicq_n_s32): Likewise.
9547 (__arm_vbicq): Modify polymorphic variant.
9549 2020-06-04 Richard Biener <rguenther@suse.de>
9551 * tree-vectorizer.h (vect_get_slp_vect_def): Declare.
9552 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
9553 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9554 (vect_is_simple_use): Use SLP_TREE_REPRESENTATIVE.
9555 * tree-vect-slp.c (vect_get_slp_vect_defs): Fold into single
9557 (vect_get_slp_defs): ... here.
9558 (vect_get_slp_vect_def): New function.
9560 2020-06-04 Richard Biener <rguenther@suse.de>
9562 * tree-vectorizer.h (_slp_tree::lanes): New.
9563 (SLP_TREE_LANES): Likewise.
9564 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
9565 (vectorizable_reduction): Likewise.
9566 (vect_transform_cycle_phi): Likewise.
9567 (vectorizable_induction): Likewise.
9568 (vectorizable_live_operation): Likewise.
9569 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize lanes.
9570 (vect_create_new_slp_node): Likewise.
9571 (slp_copy_subtree): Copy it.
9572 (vect_optimize_slp): Use it.
9573 (vect_slp_analyze_node_operations_1): Likewise.
9574 (vect_slp_convert_to_external): Likewise.
9575 (vect_bb_vectorization_profitable_p): Likewise.
9576 * tree-vect-stmts.c (vectorizable_load): Likewise.
9577 (get_vectype_for_scalar_type): Likewise.
9579 2020-06-04 Richard Biener <rguenther@suse.de>
9581 * tree-vect-slp.c (vect_update_all_shared_vectypes): Remove.
9582 (vect_build_slp_tree_2): Simplify building all external op
9584 (vect_slp_analyze_node_operations): Remove push/pop of
9585 STMT_VINFO_DEF_TYPE.
9586 (vect_schedule_slp_instance): Likewise.
9587 * tree-vect-stmts.c (ect_check_store_rhs): Pass in the
9588 stmt_info, use the vect_is_simple_use overload combining
9589 SLP and stmt_info analysis.
9590 (vect_is_simple_cond): Likewise.
9591 (vectorizable_store): Adjust.
9592 (vectorizable_condition): Likewise.
9593 (vect_is_simple_use): Fully handle invariant SLP nodes
9594 here. Amend stmt_info operand extraction with COND_EXPR
9596 * tree-vect-loop.c (vectorizable_reduction): Deal with
9597 COND_EXPR representation ugliness.
9599 2020-06-04 Hongtao Liu <hongtao.liu@inte.com>
9602 * config/i386/sse.md (*vcvtps2ph_store<merge_mask_name>):
9603 Refine from *vcvtps2ph_store<mask_name>.
9604 (vcvtps2ph256<mask_name>): Refine constraint from vm to v.
9605 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
9606 (*vcvtps2ph256<merge_mask_name>): New define_insn.
9607 (*avx512f_vcvtps2ph512<merge_mask_name>): Ditto.
9608 * config/i386/subst.md (merge_mask): New define_subst.
9609 (merge_mask_name): New define_subst_attr.
9610 (merge_mask_operand3): Ditto.
9612 2020-06-04 Hao Liu <hliu@os.amperecomputing.com>
9614 PR tree-optimization/89430
9616 (struct name_to_bb): Rename to ref_to_bb; add a new field exp;
9617 remove ssa_name_ver, store, offset fields.
9618 (struct ssa_names_hasher): Rename to refs_hasher; update functions.
9619 (class nontrapping_dom_walker): Rename m_seen_ssa_names to m_seen_refs.
9620 (nontrapping_dom_walker::add_or_mark_expr): Extend to support ARRAY_REFs
9623 2020-06-04 Andreas Schwab <schwab@suse.de>
9626 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Call assemble_external.
9628 2020-06-04 Hongtao.liu <hongtao.liu@intel.com>
9630 * config/i386/sse.md (pmov_dst_3_lower): New mode attribute.
9631 (trunc<mode><pmov_dst_3_lower>2): Refine from
9632 trunc<mode><pmov_dst_3>2.
9634 2020-06-03 Vitor Guidi <vitor.guidi@usp.br>
9636 * match.pd (tanh/sinh -> 1/cosh): New simplification.
9638 2020-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9641 * config/rs6000/rs6000.c (is_stfs_insn): Rename to
9642 is_lfs_stfs_insn and make it recognize lfs as well.
9643 (prefixed_store_p): Use is_lfs_stfs_insn().
9644 (prefixed_load_p): Use is_lfs_stfs_insn() to recognize lfs.
9646 2020-06-03 Jan Hubicka <hubicka@ucw.cz>
9648 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
9650 (odr_enums): New static var.
9651 (struct odr_enum_val): New struct.
9652 (class odr_enum): New struct.
9653 (odr_enum_map): New hashtable.
9654 (odr_types_equivalent_p): Drop code testing TYPE_VALUES.
9655 (add_type_duplicate): Likewise.
9656 (free_odr_warning_data): Do not free TYPE_VALUES.
9657 (register_odr_enum): New function.
9658 (ipa_odr_summary_write): New function.
9659 (ipa_odr_read_section): New function.
9660 (ipa_odr_summary_read): New function.
9661 (class pass_ipa_odr): New pass.
9662 (make_pass_ipa_odr): New function.
9663 * ipa-utils.h (register_odr_enum): Declare.
9664 * lto-section-in.c: (lto_section_name): Add odr_types section.
9665 * lto-streamer.h (enum lto_section_type): Add odr_types section.
9666 * passes.def: Add odr_types pass.
9667 * lto-streamer-out.c (DFS::DFS_write_tree_body): Do not stream
9669 (hash_tree): Likewise.
9670 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
9672 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
9674 * timevar.def (TV_IPA_ODR): New timervar.
9675 * tree-pass.h (make_pass_ipa_odr): Declare.
9676 * tree.c (free_lang_data_in_type): Regiser ODR types.
9678 2020-06-03 Romain Naour <romain.naour@gmail.com>
9680 * Makefile.in (SELFTEST_DEPS): Move before including language makefile
9683 2020-06-03 Richard Biener <rguenther@suse.de>
9685 PR tree-optimization/95487
9686 * tree-vect-stmts.c (vectorizable_store): Use a truth type
9687 for the scatter mask.
9689 2020-06-03 Richard Biener <rguenther@suse.de>
9691 PR tree-optimization/95495
9692 * tree-vect-slp.c (vect_slp_analyze_node_operations): Use
9693 SLP_TREE_REPRESENTATIVE in the shift assertion.
9695 2020-06-03 Tom Tromey <tromey@adacore.com>
9697 * spellcheck.c (CASE_COST): New define.
9698 (BASE_COST): New define.
9699 (get_edit_distance): Recognize case changes.
9700 (get_edit_distance_cutoff): Update.
9701 (test_edit_distances): Update.
9702 (get_old_cutoff): Update.
9703 (test_find_closest_string): Add case sensitivity test.
9705 2020-06-03 Richard Biener <rguenther@suse.de>
9707 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Loop over
9708 the cost vector to unset the visited flag on stmts.
9710 2020-06-03 Tobias Burnus <tobias@codesourcery.com>
9712 * gimplify.c (omp_notice_variable): Use new hook.
9713 * langhooks-def.h (lhd_omp_predetermined_mapping): Declare.
9714 (LANG_HOOKS_OMP_PREDETERMINED_MAPPING): Define
9715 (LANG_HOOKS_DECLS): Add it.
9716 * langhooks.c (lhd_omp_predetermined_sharing): Remove bogus unused attr.
9717 (lhd_omp_predetermined_mapping): New.
9718 * langhooks.h (struct lang_hooks_for_decls): Add new hook.
9720 2020-06-03 Jan Hubicka <jh@suse.cz>
9722 * lto-streamer.h (LTO_tags): Reorder so frequent tags has small indexes;
9723 add LTO_first_tree_tag and LTO_first_gimple_tag.
9724 (lto_tag_is_tree_code_p): Update.
9725 (lto_tag_is_gimple_code_p): Update.
9726 (lto_gimple_code_to_tag): Update.
9727 (lto_tag_to_gimple_code): Update.
9728 (lto_tree_code_to_tag): Update.
9729 (lto_tag_to_tree_code): Update.
9731 2020-06-02 Felix Yang <felix.yang@huawei.com>
9734 * config/aarch64/aarch64.c (aarch64_short_vector_p):
9735 Leave later code to report an error if SVE is disabled.
9737 2020-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9739 * config/aarch64/aarch64-cores.def (zeus): Define.
9740 * config/aarch64/aarch64-tune.md: Regenerate.
9741 * doc/invoke.texi (AArch64 Options): Document zeus -mcpu option.
9743 2020-06-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9746 * config/rs6000/rs6000.c (prefixed_store_p): Add special case
9748 (is_stfs_insn): New helper function.
9750 2020-06-02 Jan Hubicka <jh@suse.cz>
9752 * lto-streamer-in.c (stream_read_tree_ref): Simplify streaming of
9754 * lto-streamer-out.c (stream_write_tree_ref): Likewise.
9756 2020-06-02 Andrew Stubbs <ams@codesourcery.com>
9758 * config/gcn/gcn-hsa.h (CC1_SPEC): Delete.
9759 * config/gcn/gcn.opt (-mlocal-symbol-id): Delete.
9760 * config/gcn/mkoffload.c (main): Don't use -mlocal-symbol-id.
9762 2020-06-02 Eric Botcazou <ebotcazou@adacore.com>
9765 * optabs.c (expand_unop): Fix bits/bytes confusion in latest change.
9766 * tree-pretty-print.c (dump_generic_node) <ARRAY_TYPE>: Print quals.
9768 2020-06-02 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
9770 * config/s390/s390.c (print_operand): Emit vector alignment
9773 2020-06-02 Martin Liska <mliska@suse.cz>
9775 * coverage.c (get_coverage_counts): Skip sanity check for TOP N counters
9776 as they have variable number of counters.
9777 * gcov-dump.c (main): Add new option -r.
9778 (print_usage): Likewise.
9779 (tag_counters): All new raw format.
9780 * gcov-io.h (struct gcov_kvp): New.
9781 (GCOV_TOPN_VALUES): Remove.
9782 (GCOV_TOPN_VALUES_COUNTERS): Likewise.
9783 (GCOV_TOPN_MEM_COUNTERS): New.
9784 (GCOV_TOPN_DISK_COUNTERS): Likewise.
9785 (GCOV_TOPN_MAXIMUM_TRACKED_VALUES): Likewise.
9786 * ipa-profile.c (ipa_profile_generate_summary): Use
9787 GCOV_TOPN_MAXIMUM_TRACKED_VALUES.
9788 (ipa_profile_write_edge_summary): Likewise.
9789 (ipa_profile_read_edge_summary): Likewise.
9790 (ipa_profile): Remove usage of GCOV_TOPN_VALUES.
9791 * profile.c (sort_hist_values): Sort variable number
9793 (compute_value_histograms): Special case for TOP N counters
9794 that have dynamic number of key-value pairs.
9795 * value-prof.c (dump_histogram_value): Dump variable number
9797 (stream_in_histogram_value): Stream in variable number
9798 of key-value pairs for TOP N counter.
9799 (get_nth_most_common_value): Deal with variable number
9801 (dump_ic_profile): Use GCOV_TOPN_MAXIMUM_TRACKED_VALUES
9803 (gimple_find_values_to_profile): Set GCOV_TOPN_MEM_COUNTERS
9805 * doc/gcov-dump.texi: Document new -r option.
9807 2020-06-02 Iain Buclaw <ibuclaw@gdcproject.org>
9810 * config.gcc (arm-wrs-vxworks7*): Set default cpu to generic-armv7-a.
9812 2020-06-01 Jeff Law <law@torsion.usersys.redhat.com>
9814 * lower-subreg.c (resolve_simple_move): If simplify_gen_subreg_concatn
9815 returns (const_int 0) for the destination, then emit nothing.
9817 2020-06-01 Jan Hubicka <hubicka@ucw.cz>
9819 * lto-streamer.h (enum LTO_tags): Remove LTO_field_decl_ref,
9820 LTO_function_decl_ref, LTO_label_decl_ref, LTO_namespace_decl_ref,
9821 LTO_result_decl_ref, LTO_type_decl_ref, LTO_type_ref,
9822 LTO_const_decl_ref, LTO_imported_decl_ref,
9823 LTO_translation_unit_decl_ref, LTO_global_decl_ref and
9824 LTO_namelist_decl_ref; add LTO_global_stream_ref.
9825 * lto-streamer-in.c (lto_input_tree_ref): Simplify.
9826 (lto_input_scc): Update.
9827 (lto_input_tree_1): Update.
9828 * lto-streamer-out.c (lto_indexable_tree_ref): Simlify.
9829 * lto-streamer.c (lto_tag_name): Update.
9831 2020-06-01 Jan Hubicka <hubicka@ucw.cz>
9833 * ipa-reference.c (stream_out_bitmap): Use lto_output_var_decl_ref.
9834 (ipa_reference_read_optimization_summary): Use lto_intput_var_decl_ref.
9835 * lto-cgraph.c (lto_output_node): Likewise.
9836 (lto_output_varpool_node): Likewise.
9837 (output_offload_tables): Likewise.
9838 (input_node): Likewise.
9839 (input_varpool_node): Likewise.
9840 (input_offload_tables): Likewise.
9841 * lto-streamer-in.c (lto_input_tree_ref): Declare.
9842 (lto_input_var_decl_ref): Declare.
9843 (lto_input_fn_decl_ref): Declare.
9844 * lto-streamer-out.c (lto_indexable_tree_ref): Use only one decl stream.
9845 (lto_output_var_decl_index): Rename to ..
9846 (lto_output_var_decl_ref): ... this.
9847 (lto_output_fn_decl_index): Rename to ...
9848 (lto_output_fn_decl_ref): ... this.
9849 * lto-streamer.h (enum lto_decl_stream_e_t): Remove per-type streams.
9850 (DEFINE_DECL_STREAM_FUNCS): Remove.
9851 (lto_output_var_decl_index): Remove.
9852 (lto_output_fn_decl_index): Remove.
9853 (lto_output_var_decl_ref): Declare.
9854 (lto_output_fn_decl_ref): Declare.
9855 (lto_input_var_decl_ref): Declare.
9856 (lto_input_fn_decl_ref): Declare.
9858 2020-06-01 Feng Xue <fxue@os.amperecomputing.com>
9860 * cgraphclones.c (materialize_all_clones): Adjust replace map dump.
9861 * ipa-param-manipulation.c (ipa_dump_adjusted_parameters): Do not
9862 dump infomation if there is no adjusted parameter.
9863 * (ipa_param_adjustments::dump): Adjust prefix spaces for dump string.
9865 2020-06-01 Aldy Hernandez <aldyh@redhat.com>
9867 * Makefile.in (gimple-array-bounds.o): New.
9868 * tree-vrp.c: Move array bounds code...
9869 * gimple-array-bounds.cc: ...here...
9870 * gimple-array-bounds.h: ...and here.
9872 2020-06-01 Aldy Hernandez <aldyh@redhat.com>
9874 * Makefile.in (OBJS): Add value-range-equiv.o.
9875 * tree-vrp.c (*value_range_equiv*): Move to...
9876 * value-range-equiv.cc: ...here.
9877 * tree-vrp.h (class value_range_equiv): Move to...
9878 * value-range-equiv.h: ...here.
9879 * vr-values.h: Include value-range-equiv.h.
9881 2020-06-01 Feng Xue <fxue@os.amperecomputing.com>
9884 * ipa-cp.c (propagate_aggs_across_jump_function): Check aggregate
9885 lattice for simple pass-through by-ref argument.
9887 2020-05-31 Jeff Law <law@redhat.com>
9889 * lra.c (add_auto_inc_notes): Remove function.
9890 * reload1.c (add_auto_inc_notes): Similarly. Move into...
9891 * rtlanal.c (add_auto_inc_notes): New function.
9892 * rtl.h (add_auto_inc_notes): Add prototype.
9893 * recog.c (peep2_attempt): Scan and add REG_INC notes to new insns
9896 2020-05-31 Jan Hubicka <jh@suse.cz>
9898 * lto-section-out.c (lto_output_decl_index): Remove.
9899 (lto_output_field_decl_index): Move to lto-streamer-out.c
9900 (lto_output_fn_decl_index): Move to lto-streamer-out.c
9901 (lto_output_namespace_decl_index): Remove.
9902 (lto_output_var_decl_index): Remove.
9903 (lto_output_type_decl_index): Remove.
9904 (lto_output_type_ref_index): Remove.
9905 * lto-streamer-out.c (output_type_ref): Remove.
9906 (lto_get_index): New function.
9907 (lto_output_tree_ref): Remove.
9908 (lto_indexable_tree_ref): New function.
9909 (lto_output_var_decl_index): Move here from lto-section-out.c; simplify.
9910 (lto_output_fn_decl_index): Move here from lto-section-out.c; simplify.
9911 (stream_write_tree_ref): Update.
9912 (lto_output_tree): Update.
9913 * lto-streamer.h (lto_output_decl_index): Remove prototype.
9914 (lto_output_field_decl_index): Remove prototype.
9915 (lto_output_namespace_decl_index): Remove prototype.
9916 (lto_output_type_decl_index): Remove prototype.
9917 (lto_output_type_ref_index): Remove prototype.
9918 (lto_output_var_decl_index): Move.
9919 (lto_output_fn_decl_index): Move
9921 2020-05-31 Jakub Jelinek <jakub@redhat.com>
9924 * expr.c (store_expr): For shortedned_string_cst, ensure temp has
9927 2020-05-31 Jeff Law <law@redhat.com>
9929 * config/h8300/jumpcall.md (brabs, brabc): Disable patterns.
9931 2020-05-31 Jim Wilson <jimw@sifive.com>
9933 * config/riscv/riscv.md (zero_extendsidi2_shifted): New.
9935 2020-05-30 Jonathan Yong <10walls@gmail.com>
9937 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Insert -lkernel32
9938 after -lmsvcrt. This is necessary as libmsvcrt.a is not a pure
9939 import library, but also contains some functions that invoke
9940 others in KERNEL32.DLL.
9942 2020-05-29 Segher Boessenkool <segher@kernel.crashing.org>
9944 * config/rs6000/altivec.md (altivec_vmrghw_direct): Prefer VSX form.
9945 (altivec_vmrglw_direct): Ditto.
9946 (altivec_vperm_<mode>_direct): Ditto.
9947 (altivec_vperm_v8hiv16qi): Ditto.
9948 (*altivec_vperm_<mode>_uns_internal): Ditto.
9949 (*altivec_vpermr_<mode>_internal): Ditto.
9950 (vperm_v8hiv4si): Ditto.
9951 (vperm_v16qiv8hi): Ditto.
9953 2020-05-29 Jan Hubicka <jh@suse.cz>
9955 * lto-streamer-in.c (streamer_read_chain): Move here from
9957 (stream_read_tree_ref): New.
9958 (lto_input_tree_1): Simplify.
9959 * lto-streamer-out.c (stream_write_tree_ref): New.
9960 (lto_write_tree_1): Simplify.
9961 (lto_output_tree_1): Simplify.
9962 (DFS::DFS_write_tree): Simplify.
9963 (streamer_write_chain): Move here from tree-stremaer-out.c.
9964 * lto-streamer.h (lto_output_tree_ref): Update prototype.
9965 (stream_read_tree_ref): Declare
9966 (stream_write_tree_ref): Declare
9967 * tree-streamer-in.c (streamer_read_chain): Update to use
9968 stream_read_tree_ref.
9969 (lto_input_ts_common_tree_pointers): Likewise.
9970 (lto_input_ts_vector_tree_pointers): Likewise.
9971 (lto_input_ts_poly_tree_pointers): Likewise.
9972 (lto_input_ts_complex_tree_pointers): Likewise.
9973 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
9974 (lto_input_ts_decl_common_tree_pointers): Likewise.
9975 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
9976 (lto_input_ts_field_decl_tree_pointers): Likewise.
9977 (lto_input_ts_function_decl_tree_pointers): Likewise.
9978 (lto_input_ts_type_common_tree_pointers): Likewise.
9979 (lto_input_ts_type_non_common_tree_pointers): Likewise.
9980 (lto_input_ts_list_tree_pointers): Likewise.
9981 (lto_input_ts_vec_tree_pointers): Likewise.
9982 (lto_input_ts_exp_tree_pointers): Likewise.
9983 (lto_input_ts_block_tree_pointers): Likewise.
9984 (lto_input_ts_binfo_tree_pointers): Likewise.
9985 (lto_input_ts_constructor_tree_pointers): Likewise.
9986 (lto_input_ts_omp_clause_tree_pointers): Likewise.
9987 * tree-streamer-out.c (streamer_write_chain): Update to use
9988 stream_write_tree_ref.
9989 (write_ts_common_tree_pointers): Likewise.
9990 (write_ts_vector_tree_pointers): Likewise.
9991 (write_ts_poly_tree_pointers): Likewise.
9992 (write_ts_complex_tree_pointers): Likewise.
9993 (write_ts_decl_minimal_tree_pointers): Likewise.
9994 (write_ts_decl_common_tree_pointers): Likewise.
9995 (write_ts_decl_non_common_tree_pointers): Likewise.
9996 (write_ts_decl_with_vis_tree_pointers): Likewise.
9997 (write_ts_field_decl_tree_pointers): Likewise.
9998 (write_ts_function_decl_tree_pointers): Likewise.
9999 (write_ts_type_common_tree_pointers): Likewise.
10000 (write_ts_type_non_common_tree_pointers): Likewise.
10001 (write_ts_list_tree_pointers): Likewise.
10002 (write_ts_vec_tree_pointers): Likewise.
10003 (write_ts_exp_tree_pointers): Likewise.
10004 (write_ts_block_tree_pointers): Likewise.
10005 (write_ts_binfo_tree_pointers): Likewise.
10006 (write_ts_constructor_tree_pointers): Likewise.
10007 (write_ts_omp_clause_tree_pointers): Likewise.
10008 (streamer_write_tree_body): Likewise.
10009 (streamer_write_integer_cst): Likewise.
10010 * tree-streamer.h (streamer_read_chain):Declare.
10011 (streamer_write_chain):Declare.
10012 (streamer_write_tree_body): Update prototype.
10013 (streamer_write_integer_cst): Update prototype.
10015 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
10018 * configure: Regenerated.
10020 2020-05-29 Andrew Stubbs <ams@codesourcery.com>
10022 * config/gcn/gcn-valu.md (add<mode>3_vcc_zext_dup): Add early clobber.
10023 (add<mode>3_vcc_zext_dup_exec): Likewise.
10024 (add<mode>3_vcc_zext_dup2): Likewise.
10025 (add<mode>3_vcc_zext_dup2_exec): Likewise.
10027 2020-05-29 Richard Biener <rguenther@suse.de>
10029 PR tree-optimization/95272
10030 * tree-vectorizer.h (_slp_tree::representative): Add.
10031 (SLP_TREE_REPRESENTATIVE): Likewise.
10032 * tree-vect-loop.c (vectorizable_reduction): Adjust SLP
10034 (vectorizable_live_operation): Use the representative to
10035 attach the reduction info to.
10036 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
10037 SLP_TREE_REPRESENTATIVE.
10038 (vect_create_new_slp_node): Likewise.
10039 (slp_copy_subtree): Copy it.
10040 (vect_slp_rearrange_stmts): Re-arrange even COND_EXPR stmts.
10041 (vect_slp_analyze_node_operations_1): Pass the representative
10042 to vect_analyze_stmt.
10043 (vect_schedule_slp_instance): Pass the representative to
10044 vect_transform_stmt.
10046 2020-05-29 Richard Biener <rguenther@suse.de>
10048 PR tree-optimization/95356
10049 * tree-vect-stmts.c (vectorizable_shift): Do in-place SLP
10050 node hacking during analysis.
10052 2020-05-29 Jan Hubicka <hubicka@ucw.cz>
10055 * lto-streamer-out.c (lto_output_tree): Disable redundant streaming.
10057 2020-05-29 Richard Biener <rguenther@suse.de>
10059 PR tree-optimization/95403
10060 * tree-vect-stmts.c (vect_init_vector_1): Guard against NULL
10063 2020-05-29 Jakub Jelinek <jakub@redhat.com>
10065 PR middle-end/95315
10066 * omp-general.c (omp_resolve_declare_variant): Fix up addition of
10067 declare variant cgraph node removal callback.
10069 2020-05-29 Jakub Jelinek <jakub@redhat.com>
10071 PR middle-end/95052
10072 * expr.c (store_expr): If expr_size is constant and significantly
10073 larger than TREE_STRING_LENGTH, set temp to just the
10074 TREE_STRING_LENGTH portion of the STRING_CST.
10076 2020-05-29 Richard Biener <rguenther@suse.de>
10078 PR tree-optimization/95393
10079 * tree-ssa-phiopt.c (minmax_replacement): Use gimple_build
10080 to build the min/max expression so we simplify cases like
10081 MAX(0, s) immediately.
10083 2020-05-29 Joe Ramsay <joe.ramsay@arm.com>
10085 * config/aarch64/aarch64-sve.md (<LOGICAL:optab><mode>3): Add support
10086 for unpacked EOR, ORR, AND.
10088 2020-05-28 Nicolas Bértolo <nicolasbertolo@gmail.com>
10090 * Makefile.in: don't look for libiberty in the "pic" subdirectory
10091 when building for Mingw. Add dependency on xgcc with the proper
10094 2020-05-28 Jeff Law <law@redhat.com>
10096 * config/h8300/logical.md (bclrhi_msx): Remove pattern.
10098 2020-05-28 Jeff Law <law@redhat.com>
10100 * config/h8300/logical.md (HImode H8/SX bit-and splitter): Don't
10101 make a nonzero adjustment to the memory offset.
10102 (b<ior,xor>hi_msx): Turn into a splitter.
10104 2020-05-28 Eric Botcazou <ebotcazou@adacore.com>
10106 * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
10107 Fix off-by-one error.
10109 2020-05-28 Richard Sandiford <richard.sandiford@arm.com>
10111 * config/aarch64/aarch64.h (aarch64_frame): Add a comment above
10112 wb_candidate1 and wb_candidate2.
10113 * config/aarch64/aarch64.c (aarch64_layout_frame): Invalidate
10114 wb_candidate1 and wb_candidate2 if we decided not to use them.
10116 2020-05-28 Richard Sandiford <richard.sandiford@arm.com>
10119 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Assert that
10120 we have at least some CFI operations when using a frame pointer.
10121 Only redefine the CFA if we have CFI operations.
10123 2020-05-28 Richard Biener <rguenther@suse.de>
10125 * tree-vect-slp.c (vect_prologue_cost_for_slp): Remove
10126 case for !SLP_TREE_VECTYPE.
10127 (vect_slp_analyze_node_operations): Adjust.
10129 2020-05-28 Richard Biener <rguenther@suse.de>
10131 * tree-vectorizer.h (_slp_tree::vec_defs): Add.
10132 (SLP_TREE_VEC_DEFS): Likewise.
10133 * tree-vect-slp.c (_slp_tree::_slp_tree): Adjust.
10134 (_slp_tree::~_slp_tree): Likewise.
10135 (vect_mask_constant_operand_p): Remove unused function.
10136 (vect_get_constant_vectors): Rename to...
10137 (vect_create_constant_vectors): ... this. Take the
10138 invariant node as argument and code generate it. Remove
10139 dead code, remove temporary asserts. Pass a NULL stmt_info
10140 to vect_init_vector.
10141 (vect_get_slp_defs): Simplify.
10142 (vect_schedule_slp_instance): Code-generate externals and
10143 invariants using vect_create_constant_vectors.
10145 2020-05-28 Richard Biener <rguenther@suse.de>
10147 * tree-vect-stmts.c (vect_finish_stmt_generation_1):
10148 Conditionalize stmt_info use, assert the new stmt cannot throw
10149 when not specified.
10150 (vect_finish_stmt_generation): Adjust assert.
10152 2020-05-28 Richard Biener <rguenther@suse.de>
10154 PR tree-optimization/95273
10155 PR tree-optimization/95356
10156 * tree-vect-stmts.c (vectorizable_shift): Adjust when and to
10157 what we set the vector type of the shift operand SLP node
10160 2020-05-28 Andrea Corallo <andrea.corallo@arm.com>
10162 * config/arm/arm.c (mve_vector_mem_operand): Fix unwanted
10165 2020-05-28 Martin Liska <mliska@suse.cz>
10168 * doc/invoke.texi: Add missing params, remove max-once-peeled-insns and
10169 rename ipcp-unit-growth to ipa-cp-unit-growth.
10171 2020-05-28 Hongtao Liu <hongtao.liu@intel.com>
10173 * config/i386/sse.md (*avx512vl_<code>v2div2qi2_store_1): Rename
10174 from *avx512vl_<code>v2div2qi_store and refine memory size of
10176 (*avx512vl_<code>v2div2qi2_mask_store_1): Ditto.
10177 (*avx512vl_<code><mode>v4qi2_store_1): Ditto.
10178 (*avx512vl_<code><mode>v4qi2_mask_store_1): Ditto.
10179 (*avx512vl_<code><mode>v8qi2_store_1): Ditto.
10180 (*avx512vl_<code><mode>v8qi2_mask_store_1): Ditto.
10181 (*avx512vl_<code><mode>v4hi2_store_1): Ditto.
10182 (*avx512vl_<code><mode>v4hi2_mask_store_1): Ditto.
10183 (*avx512vl_<code>v2div2hi2_store_1): Ditto.
10184 (*avx512vl_<code>v2div2hi2_mask_store_1): Ditto.
10185 (*avx512vl_<code>v2div2si2_store_1): Ditto.
10186 (*avx512vl_<code>v2div2si2_mask_store_1): Ditto.
10187 (*avx512f_<code>v8div16qi2_store_1): Ditto.
10188 (*avx512f_<code>v8div16qi2_mask_store_1): Ditto.
10189 (*avx512vl_<code>v2div2qi2_store_2): New define_insn_and_split.
10190 (*avx512vl_<code>v2div2qi2_mask_store_2): Ditto.
10191 (*avx512vl_<code><mode>v4qi2_store_2): Ditto.
10192 (*avx512vl_<code><mode>v4qi2_mask_store_2): Ditto.
10193 (*avx512vl_<code><mode>v8qi2_store_2): Ditto.
10194 (*avx512vl_<code><mode>v8qi2_mask_store_2): Ditto.
10195 (*avx512vl_<code><mode>v4hi2_store_2): Ditto.
10196 (*avx512vl_<code><mode>v4hi2_mask_store_2): Ditto.
10197 (*avx512vl_<code>v2div2hi2_store_2): Ditto.
10198 (*avx512vl_<code>v2div2hi2_mask_store_2): Ditto.
10199 (*avx512vl_<code>v2div2si2_store_2): Ditto.
10200 (*avx512vl_<code>v2div2si2_mask_store_2): Ditto.
10201 (*avx512f_<code>v8div16qi2_store_2): Ditto.
10202 (*avx512f_<code>v8div16qi2_mask_store_2): Ditto.
10203 * config/i386/i386-builtin-types.def: Adjust builtin type.
10204 * config/i386/i386-expand.c: Ditto.
10205 * config/i386/i386-builtin.def: Adjust builtin.
10206 * config/i386/avx512fintrin.h: Ditto.
10207 * config/i386/avx512vlbwintrin.h: Ditto.
10208 * config/i386/avx512vlintrin.h: Ditto.
10210 2020-05-28 Dong JianQiang <dongjianqiang2@huawei.com>
10212 PR gcov-profile/95332
10213 * gcov-io.c (gcov_var::endian): Move field.
10214 (from_file): Add IN_GCOV_TOOL check.
10215 * gcov-io.h (gcov_magic): Ditto.
10217 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
10219 * config/xtensa/xtensa.c (xtensa_delegitimize_address): New
10221 (TARGET_DELEGITIMIZE_ADDRESS): New macro.
10223 2020-05-27 Eric Botcazou <ebotcazou@adacore.com>
10225 * builtin-types.def (BT_UINT128): New primitive type.
10226 (BT_FN_UINT128_UINT128): New function type.
10227 * builtins.def (BUILT_IN_BSWAP128): New GCC builtin.
10228 * doc/extend.texi (__builtin_bswap128): Document it.
10229 * builtins.c (expand_builtin): Deal with BUILT_IN_BSWAP128.
10230 (is_inexpensive_builtin): Likewise.
10231 * fold-const-call.c (fold_const_call_ss): Likewise.
10232 * fold-const.c (tree_call_nonnegative_warnv_p): Likewise.
10233 * tree-ssa-ccp.c (evaluate_stmt): Likewise.
10234 * tree-vect-stmts.c (vect_get_data_ptr_increment): Likewise.
10235 (vectorizable_call): Likewise.
10236 * optabs.c (expand_unop): Always use the double word path for it.
10237 * tree-core.h (enum tree_index): Add TI_UINT128_TYPE.
10238 * tree.h (uint128_type_node): New global type.
10239 * tree.c (build_common_tree_nodes): Build it if TImode is supported.
10241 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
10243 * config/i386/mmx.md (*mmx_haddv2sf3): Remove SSE alternatives.
10244 (mmx_hsubv2sf3): Ditto.
10245 (mmx_haddsubv2sf3): New expander.
10246 (*mmx_haddsubv2sf3): Rename from mmx_addsubv2sf3. Correct
10247 RTL template to model horizontal subtraction and addition.
10248 * config/i386/i386-builtin.def (IX86_BUILTIN_PFPNACC):
10251 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
10254 * config/i386/sse.md
10255 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>):
10256 Remove %q operand modifier from insn template.
10257 (avx512f_<code>v8hiv8di2<mask_name>): Ditto.
10259 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
10261 * config/i386/mmx.md (mmx_pswapdsf2): Add SSE alternatives.
10262 Enable insn pattern for TARGET_MMX_WITH_SSE.
10263 (*mmx_movshdup): New insn pattern.
10264 (*mmx_movsldup): Ditto.
10265 (*mmx_movss): Ditto.
10266 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
10268 (expand_vec_perm_movs): Handle E_V2SFmode.
10269 (expand_vec_perm_even_odd): Ditto.
10270 (expand_vec_perm_broadcast_1): Assert that E_V2SFmode
10271 is already handled by standard shuffle patterns.
10273 2020-05-27 Richard Biener <rguenther@suse.de>
10275 PR tree-optimization/95295
10276 * tree-ssa-loop-im.c (sm_seq_valid_bb): Fix sinking after
10277 merging stores from paths.
10279 2020-05-27 Richard Biener <rguenther@suse.de>
10281 PR tree-optimization/95356
10282 * tree-vect-stmts.c (vectorizable_shift): Adjust vector
10283 type for the shift operand.
10285 2020-05-27 Richard Biener <rguenther@suse.de>
10287 PR tree-optimization/95335
10288 * tree-vect-slp.c (vect_slp_analyze_node_operations): Reset
10289 lvisited for nodes made external.
10291 2020-05-27 Richard Biener <rguenther@suse.de>
10293 * dump-context.h (debug_dump_context): New class.
10294 (dump_context): Make it friend.
10295 * dumpfile.c (debug_dump_context::debug_dump_context):
10297 (debug_dump_context::~debug_dump_context): Likewise.
10298 * tree-vect-slp.c: Include dump-context.h.
10299 (vect_print_slp_tree): Dump a single SLP node.
10300 (debug): New overload for slp_tree.
10301 (vect_print_slp_graph): Rename from vect_print_slp_tree and
10303 (vect_analyze_slp_instance): Adjust.
10305 2020-05-27 Jakub Jelinek <jakub@redhat.com>
10307 PR middle-end/95315
10308 * omp-general.c (omp_declare_variant_remove_hook): New function.
10309 (omp_resolve_declare_variant): Always return base if it is already
10310 declare_variant_alt magic decl itself. Register
10311 omp_declare_variant_remove_hook as cgraph node removal hook.
10313 2020-05-27 Jeff Law <law@redhat.com>
10315 * config/h8300/testcompare.md (tst_extzv_1_n): Do not accept constants
10316 for the primary input operand.
10317 (tstsi_variable_bit_qi): Similarly.
10319 2020-05-26 Uroš Bizjak <ubizjak@gmail.com>
10321 * config/i386/mmx.md (mmx_pswapdv2si2): Add SSE2 alternative.
10323 2020-05-26 Tobias Burnus <tobias@codesourcery.com>
10326 * ipa-utils.h (odr_type_p): Also permit calls with
10327 only flag_generate_offload set.
10329 2020-05-26 Alexandre Oliva <oliva@adacore.com>
10331 * gcc.c (validate_switches): Add braced parameter. Adjust all
10332 callers. Expected and skip trailing brace only if braced.
10333 Return after handling one atom otherwise.
10334 (DUMPS_OPTIONS): New.
10335 (cpp_debug_options): Define in terms of it.
10337 2020-05-26 Richard Biener <rguenther@suse.de>
10339 PR tree-optimization/95327
10340 * tree-vect-stmts.c (vectorizable_shift): Compute op1_vectype
10341 when we are not using a scalar shift.
10343 2020-05-26 Uroš Bizjak <ubizjak@gmail.com>
10345 * config/i386/mmx.md (*mmx_pshufd_1): New insn pattern.
10346 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
10347 Handle E_V2SImode and E_V4HImode.
10348 (expand_vec_perm_even_odd_1): Handle E_V4HImode.
10349 Assert that E_V2SImode is already handled.
10350 (expand_vec_perm_broadcast_1): Assert that E_V2SImode
10351 is already handled by standard shuffle patterns.
10353 2020-05-26 Jan Hubicka <jh@suse.cz>
10355 * tree.c (free_lang_data_in_type): Simpify types of TYPE_VALUES in
10358 2020-05-26 Jakub Jelinek <jakub@redhat.com>
10361 * gimplify.c (find_combined_omp_for): Move to omp-general.c.
10362 * omp-general.h (find_combined_omp_for): Declare.
10363 * omp-general.c: Include tree-iterator.h.
10364 (find_combined_omp_for): New function, moved from gimplify.c.
10366 2020-05-26 Alexandre Oliva <oliva@adacore.com>
10368 * common.opt (aux_base_name): Define.
10369 (dumpbase, dumpdir): Mark as Driver options.
10370 (-dumpbase, -dumpdir): Likewise.
10371 (dumpbase-ext, -dumpbase-ext): New.
10372 (auxbase, auxbase-strip): Drop.
10373 * doc/invoke.texi (-dumpbase, -dumpbase-ext, -dumpdir):
10375 (-o): Introduce the notion of primary output, mention it
10376 influences auxiliary and dump output names as well, add
10378 (-save-temps): Adjust, move examples into -dump*.
10379 (-save-temps=cwd, -save-temps=obj): Likewise.
10380 (-fdump-final-insns): Adjust.
10381 * dwarf2out.c (gen_producer_string): Drop auxbase and
10382 auxbase_strip; add dumpbase_ext.
10383 * gcc.c (enum save_temps): Add SAVE_TEMPS_DUMP.
10384 (save_temps_prefix, save_temps_length): Drop.
10385 (save_temps_overrides_dumpdir): New.
10386 (dumpdir, dumpbase, dumpbase_ext): New.
10387 (dumpdir_length, dumpdir_trailing_dash_added): New.
10388 (outbase, outbase_length): New.
10389 (The Specs Language): Introduce %". Adjust %b and %B.
10390 (ASM_FINAL_SPEC): Use %b.dwo for an aux output name always.
10391 Precede object file with %w when it's the primary output.
10392 (cpp_debug_options): Do not pass on incoming -dumpdir,
10393 -dumpbase and -dumpbase-ext options; recompute them with
10395 (cc1_options): Drop auxbase with and without compare-debug;
10396 use cpp_debug_options instead of dumpbase. Mark asm output
10397 with %w when it's the primary output.
10398 (static_spec_functions): Drop %:compare-debug-auxbase-opt and
10399 %:replace-exception. Add %:dumps.
10400 (driver_handle_option): Implement -save-temps=*/-dumpdir
10401 mutual overriding logic. Save dumpdir, dumpbase and
10402 dumpbase-ext options. Do not save output_file in
10404 (adds_single_suffix_p): New.
10405 (single_input_file_index): New.
10406 (process_command): Combine output dir, output base name, and
10407 dumpbase into dumpdir and outbase.
10408 (set_collect_gcc_options): Pass a possibly-adjusted -dumpdir.
10409 (do_spec_1): Optionally dumpdir instead of save_temps_prefix,
10410 and outbase instead of input_basename in %b, %B and in
10411 -save-temps aux files. Handle empty argument %".
10412 (driver::maybe_run_linker): Adjust dumpdir and auxbase.
10413 (compare_debug_dump_opt_spec_function): Adjust gkd dump file
10414 naming. Spec-quote the computed -fdump-final-insns file name.
10415 (debug_auxbase_opt): Drop.
10416 (compare_debug_self_opt_spec_function): Drop auxbase-strip
10418 (compare_debug_auxbase_opt_spec_function): Drop.
10419 (not_actual_file_p): New.
10420 (replace_extension_spec_func): Drop.
10421 (dumps_spec_func): New.
10422 (convert_white_space): Split-out parts into...
10423 (quote_string, whitespace_to_convert_p): ... these. New.
10424 (quote_spec_char_p, quote_spec, quote_spec_arg): New.
10425 (driver::finalize): Release and reset new variables; drop
10427 * lto-wrapper.c (HAVE_TARGET_EXECUTABLE_SUFFIX): Define if...
10428 (TARGET_EXECUTABLE_SUFFIX): ... is defined; define this to the
10429 empty string otherwise.
10430 (DUMPBASE_SUFFIX): Drop leading period.
10431 (debug_objcopy): Use concat.
10432 (run_gcc): Recognize -save-temps=* as -save-temps too. Obey
10433 -dumpdir. Pass on empty dumpdir and dumpbase with a directory
10434 component. Simplify temp file names.
10435 * opts.c (finish_options): Drop aux base name handling.
10436 (common_handle_option): Drop auxbase-strip handling.
10437 * toplev.c (print_switch_values): Drop auxbase, add
10439 (process_options): Derive aux_base_name from dump_base_name
10441 (lang_dependent_init): Compute dump_base_ext along with
10442 dump_base_name. Disable stack usage and callgraph-info during
10443 lto generation and compare-debug recompilation.
10445 2020-05-26 Hongtao Liu <hongtao.liu@intel.com>
10446 Uroš Bizjak <ubizjak@gmail.com>
10450 * config/i386/sse.md (<floatunssuffix>v2div2sf2): New expander.
10451 (fix<fixunssuffix>_truncv2sfv2di2): Ditto.
10452 (avx512dq_float<floatunssuffix>v2div2sf2): Renaming from
10453 float<floatunssuffix>v2div2sf2.
10454 (avx512dq_fix<fixunssuffix>_truncv2sfv2di2<mask_name>):
10455 Renaming from fix<fixunssuffix>_truncv2sfv2di2<mask_name>.
10456 (vec_pack<floatprefix>_float_<mode>): Adjust icode name.
10457 (vec_unpack_<fixprefix>fix_trunc_lo_<mode>): Ditto.
10458 (vec_unpack_<fixprefix>fix_trunc_hi_<mode>): Ditto.
10459 * config/i386/i386-builtin.def: Ditto.
10460 * emit-rtl.c (validate_subreg): Allow use of *paradoxical* vector
10461 subregs when both omode and imode are vector mode and
10462 have the same inner mode.
10464 2020-05-25 Eric Botcazou <ebotcazou@adacore.com>
10466 * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
10467 Only turn MEM_REFs into bit-field stores for small bit-field regions.
10468 (imm_store_chain_info::output_merged_store): Be prepared for sources
10469 with non-integral type in the bit-field insertion case.
10470 (pass_store_merging::process_store): Use MAX_BITSIZE_MODE_ANY_INT as
10471 the largest size for the bit-field case.
10473 2020-05-25 Uroš Bizjak <ubizjak@gmail.com>
10475 * config/i386/mmx.md (*vec_dupv2sf): Redefine as define_insn.
10476 (mmx_pshufw_1): Change Yv constraint to xYw. Correct type attribute.
10477 (*vec_dupv4hi): Redefine as define_insn.
10478 Remove alternative with general register input.
10479 (*vec_dupv2si): Ditto.
10481 2020-05-25 Richard Biener <rguenther@suse.de>
10483 PR tree-optimization/95309
10484 * tree-vect-slp.c (vect_get_constant_vectors): Move number
10485 of vector computation ...
10486 (vect_slp_analyze_node_operations): ... to analysis phase.
10488 2020-05-25 Jan Hubicka <hubicka@ucw.cz>
10490 * lto-streamer-out.c (lto_output_tree): Add streamer_debugging check.
10491 * lto-streamer.h (streamer_debugging): New constant
10492 * tree-streamer-in.c (streamer_read_tree_bitfields): Add
10493 streamer_debugging check.
10494 (streamer_get_pickled_tree): Likewise.
10495 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
10497 2020-05-25 Richard Biener <rguenther@suse.de>
10499 PR tree-optimization/95308
10500 * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize
10501 test for TARGET_MEM_REFs.
10503 2020-05-25 Richard Biener <rguenther@suse.de>
10505 PR tree-optimization/95295
10506 * tree-ssa-loop-im.c (sm_seq_valid_bb): Compare remat stores
10507 RHSes and drop to full sm_other if they are not equal.
10509 2020-05-25 Richard Biener <rguenther@suse.de>
10511 PR tree-optimization/95271
10512 * tree-vect-stmts.c (vectorizable_bswap): Update invariant SLP
10513 children vector type.
10514 (vectorizable_call): Pass down slp ops.
10516 2020-05-25 Richard Biener <rguenther@suse.de>
10518 PR tree-optimization/95297
10519 * tree-vect-stmts.c (vectorizable_shift): For scalar_shift_arg
10520 skip updating operand 1 vector type.
10522 2020-05-25 Richard Biener <rguenther@suse.de>
10524 PR tree-optimization/95284
10525 * tree-ssa-sink.c (sink_common_stores_to_bb): Amend previous
10528 2020-05-25 Hongtao Liu <hongtao.liu@intel.com>
10531 * config/i386/sse.md (sf2dfmode_lower): New mode attribute.
10532 (trunc<mode><sf2dfmode_lower>2) New expander.
10533 (extend<sf2dfmode_lower><mode>2): Ditto.
10535 2020-05-23 Iain Sandoe <iain@sandoe.co.uk>
10537 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make
10538 ubsan_{data,type},ASAN symbols linker-visible.
10540 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
10542 * lto-streamer-out.c (DFS::DFS): Silence warning.
10544 2020-05-22 Uroš Bizjak <ubizjak@gmail.com>
10547 * config/i386/i386.md (<rounding_insn><mode>2): Do not try to
10548 expand non-sse4 ROUND_ROUNDEVEN rounding via SSE support routines.
10550 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
10552 * lto-streamer-out.c (lto_output_tree): Do not stream final ref if
10555 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
10557 * lto-section-out.c (lto_output_decl_index): Adjust dump indentation.
10558 * lto-streamer-out.c (create_output_block): Fix whitespace
10559 (lto_write_tree_1): Add (debug) dump.
10560 (DFS::DFS): Add dump.
10561 (DFS::DFS_write_tree_body): Do not dump here.
10562 (lto_output_tree): Improve dumping; do not stream ref when not needed.
10563 (produce_asm_for_decls): Fix whitespace.
10564 * tree-streamer-out.c (streamer_write_tree_header): Add dump.
10565 * tree-streamer-out.c (streamer_write_integer_cst): Add debug dump.
10567 2020-05-22 Hongtao.liu <hongtao.liu@intel.com>
10570 * config/i386/sse.md (trunc<pmov_src_lower><mode>2): New expander
10571 (truncv32hiv32qi2): Ditto.
10572 (trunc<ssedoublemodelower><mode>2): Ditto.
10573 (trunc<mode><pmov_dst_3>2): Ditto.
10574 (trunc<mode><pmov_dst_mode_4>2): Ditto.
10575 (truncv2div2si2): Ditto.
10576 (truncv8div8qi2): Ditto.
10577 (avx512f_<code>v8div16qi2): Renaming from *avx512f_<code>v8div16qi2.
10578 (avx512vl_<code>v2div2si): Renaming from *avx512vl_<code>v2div2si2.
10579 (avx512vl_<code><mode>v2<ssecakarnum>qi2): Renaming from
10580 *avx512vl_<code><mode>v<ssescalarnum>qi2.
10582 2020-05-22 H.J. Lu <hongjiu.lu@intel.com>
10585 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
10588 2020-05-22 Richard Biener <rguenther@suse.de>
10590 PR tree-optimization/95268
10591 * tree-ssa-sink.c (sink_common_stores_to_bb): Handle clobbers
10594 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
10596 * tree-streamer.c (record_common_node): Fix hash value of pre-streamed
10599 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
10601 * lto-streamer-in.c (lto_read_tree): Do not stream end markers.
10602 (lto_input_scc): Optimize streaming of entry lengths.
10603 * lto-streamer-out.c (lto_write_tree): Do not stream end markers
10604 (DFS::DFS): Optimize stremaing of entry lengths
10606 2020-05-22 Richard Biener <rguenther@suse.de>
10609 * doc/invoke.texi (flto): Document behavior of diagnostic
10612 2020-05-22 Richard Biener <rguenther@suse.de>
10614 * tree-vectorizer.h (vect_is_simple_use): New overload.
10615 (vect_maybe_update_slp_op_vectype): New.
10616 * tree-vect-stmts.c (vect_is_simple_use): New overload
10617 accessing operands of SLP vs. non-SLP operation transparently.
10618 (vect_maybe_update_slp_op_vectype): New function updating
10619 the possibly shared SLP operands vector type.
10620 (vectorizable_operation): Be a bit more SLP vs non-SLP agnostic
10621 using the new vect_is_simple_use overload; update SLP invariant
10622 operand nodes vector type.
10623 (vectorizable_comparison): Likewise.
10624 (vectorizable_call): Likewise.
10625 (vectorizable_conversion): Likewise.
10626 (vectorizable_shift): Likewise.
10627 (vectorizable_store): Likewise.
10628 (vectorizable_condition): Likewise.
10629 (vectorizable_assignment): Likewise.
10630 * tree-vect-loop.c (vectorizable_reduction): Likewise.
10631 * tree-vect-slp.c (vect_get_constant_vectors): Enforce
10632 present SLP_TREE_VECTYPE and check it matches previous
10635 2020-05-22 Richard Biener <rguenther@suse.de>
10637 PR tree-optimization/95248
10638 * tree-ssa-loop-im.c (sm_seq_valid_bb): Remove bogus early out.
10640 2020-05-22 Richard Biener <rguenther@suse.de>
10642 * tree-vectorizer.h (_slp_tree::_slp_tree): New.
10643 (_slp_tree::~_slp_tree): Likewise.
10644 * tree-vect-slp.c (_slp_tree::_slp_tree): Factor out code
10646 (_slp_tree::~_slp_tree): Implement.
10647 (vect_free_slp_tree): Simplify.
10648 (vect_create_new_slp_node): Likewise. Add nops parameter.
10649 (vect_build_slp_tree_2): Adjust.
10650 (vect_analyze_slp_instance): Likewise.
10652 2020-05-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10654 * adjust-alignment.c: Include memmodel.h.
10656 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
10659 * config/i386/cpuid.h: Use hexadecimal in comments.
10661 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
10664 * config/i386/i386-builtins.c (processor_features): Move
10665 F_AVX512VP2INTERSECT after F_AVX512BF16.
10666 (isa_names_table): Likewise.
10668 2020-05-21 Martin Liska <mliska@suse.cz>
10670 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
10671 Handle OPT_moutline_atomics.
10672 * config/aarch64/aarch64.c: Add outline-atomics to
10673 aarch64_attributes.
10674 * doc/extend.texi: Document the newly added target attribute.
10676 2020-05-21 Uroš Bizjak <ubizjak@gmail.com>
10680 * config/i386/mmx.md (*mmx_<code>v2sf): Do not mark
10681 operands 1 and 2 commutative. Manually swap operands.
10682 (*mmx_nabsv2sf2): Ditto.
10685 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
10687 * config/i386/i386.md (*<code>tf2_1):
10688 Mark operands 1 and 2 commutative.
10689 (*nabstf2_1): Ditto.
10690 * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
10691 commutative. Do not swap operands.
10692 (*nabs<mode>2): Ditto.
10694 2020-05-20 Uroš Bizjak <ubizjak@gmail.com>
10697 * config/i386/sse.md (<code>v8qiv8hi2): Use
10698 simplify_gen_subreg instead of simplify_subreg.
10699 (<code>v8qiv8si2): Ditto.
10700 (<code>v4qiv4si2): Ditto.
10701 (<code>v4hiv4si2): Ditto.
10702 (<code>v8qiv8di2): Ditto.
10703 (<code>v4qiv4di2): Ditto.
10704 (<code>v2qiv2di2): Ditto.
10705 (<code>v4hiv4di2): Ditto.
10706 (<code>v2hiv2di2): Ditto.
10707 (<code>v2siv2di2): Ditto.
10709 2020-05-20 Uroš Bizjak <ubizjak@gmail.com>
10712 * config/i386/i386.md (*pushsi2_rex64):
10713 Use "e" constraint instead of "i".
10715 2020-05-20 Jan Hubicka <hubicka@ucw.cz>
10717 * lto-streamer-in.c (lto_input_scc): Add SHARED_SCC parameter.
10718 (lto_input_tree_1): Strenghten sanity check.
10719 (lto_input_tree): Update call of lto_input_scc.
10720 * lto-streamer-out.c: Include ipa-utils.h
10721 (create_output_block): Initialize local_trees if merigng is going
10723 (destroy_output_block): Destroy local_trees.
10724 (DFS): Add max_local_entry.
10725 (local_tree_p): New function.
10726 (DFS::DFS): Initialize and maintain it.
10727 (DFS::DFS_write_tree): Decide on streaming format.
10728 (lto_output_tree): Stream inline singleton SCCs
10729 * lto-streamer.h (enum LTO_tags): Add LTO_trees.
10730 (struct output_block): Add local_trees.
10731 (lto_input_scc): Update prototype.
10733 2020-05-20 Patrick Palka <ppalka@redhat.com>
10736 * hash-table.h (hash_table::find_with_hash): Move up the call to
10737 hash_table::verify.
10739 2020-05-20 Martin Liska <mliska@suse.cz>
10741 * lto-compress.c (lto_compression_zstd): Fill up
10742 num_compressed_il_bytes.
10743 (lto_uncompression_zstd): Likewise for num_uncompressed_il_bytes here.
10745 2020-05-20 Richard Biener <rguenther@suse.de>
10747 PR tree-optimization/95219
10748 * tree-vect-loop.c (vectorizable_induction): Reduce
10749 group_size before computing the number of required IVs.
10751 2020-05-20 Richard Biener <rguenther@suse.de>
10753 PR middle-end/95231
10754 * tree-inline.c (remap_gimple_stmt): Revert adjusting
10755 COND_EXPR and VEC_COND_EXPR for a -fnon-call-exception boundary.
10757 2020-05-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
10758 Andre Vieira <andre.simoesdiasvieira@arm.com>
10761 * config/arm/arm-protos.h (arm_mode_base_reg_class): Function
10763 (mve_vector_mem_operand): Likewise.
10764 * config/arm/arm.c (thumb2_legitimate_address_p): For MVE target check
10765 the load from memory to a core register is legitimate for give mode.
10766 (mve_vector_mem_operand): Define function.
10767 (arm_print_operand): Modify comment.
10768 (arm_mode_base_reg_class): Define.
10769 * config/arm/arm.h (MODE_BASE_REG_CLASS): Modify to add check for
10770 TARGET_HAVE_MVE and expand to arm_mode_base_reg_class on TRUE.
10771 * config/arm/constraints.md (Ux): Likewise.
10773 * config/arm/mve.md (mve_mov): Replace constraint Us with Ux and also
10774 add support for missing Vector Store Register and Vector Load Register.
10775 Add a new alternative to support load from memory to PC (or label) in
10777 (mve_vstrbq_<supf><mode>): Modify constraint Us to Ux.
10778 (mve_vldrbq_<supf><mode>): Modify constriant Us to Ux, predicate to
10779 mve_memory_operand and also modify the MVE instructions to emit.
10780 (mve_vldrbq_z_<supf><mode>): Modify constraint Us to Ux.
10781 (mve_vldrhq_fv8hf): Modify constriant Us to Ux, predicate to
10782 mve_memory_operand and also modify the MVE instructions to emit.
10783 (mve_vldrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
10784 mve_memory_operand and also modify the MVE instructions to emit.
10785 (mve_vldrhq_z_fv8hf): Likewise.
10786 (mve_vldrhq_z_<supf><mode>): Likewise.
10787 (mve_vldrwq_fv4sf): Likewise.
10788 (mve_vldrwq_<supf>v4si): Likewise.
10789 (mve_vldrwq_z_fv4sf): Likewise.
10790 (mve_vldrwq_z_<supf>v4si): Likewise.
10791 (mve_vld1q_f<mode>): Modify constriant Us to Ux.
10792 (mve_vld1q_<supf><mode>): Likewise.
10793 (mve_vstrhq_fv8hf): Modify constriant Us to Ux, predicate to
10794 mve_memory_operand.
10795 (mve_vstrhq_p_fv8hf): Modify constriant Us to Ux, predicate to
10796 mve_memory_operand and also modify the MVE instructions to emit.
10797 (mve_vstrhq_p_<supf><mode>): Likewise.
10798 (mve_vstrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
10799 mve_memory_operand.
10800 (mve_vstrwq_fv4sf): Modify constriant Us to Ux.
10801 (mve_vstrwq_p_fv4sf): Modify constriant Us to Ux and also modify the MVE
10802 instructions to emit.
10803 (mve_vstrwq_p_<supf>v4si): Likewise.
10804 (mve_vstrwq_<supf>v4si): Likewise.Modify constriant Us to Ux.
10805 * config/arm/predicates.md (mve_memory_operand): Define.
10807 2020-05-30 Richard Biener <rguenther@suse.de>
10810 * c-fold.c (c_fully_fold_internal): Enhance guard on
10813 2020-05-20 Kito Cheng <kito.cheng@sifive.com>
10816 * Makefile.in (OBJS): Add adjust-alignment.o.
10817 * adjust-alignment.c (pass_data_adjust_alignment): New.
10818 (pass_adjust_alignment): New.
10819 (pass_adjust_alignment::execute): New.
10820 (make_pass_adjust_alignment): New.
10821 * tree-pass.h (make_pass_adjust_alignment): New.
10822 * passes.def: Add pass_adjust_alignment.
10824 2020-05-19 Alex Coplan <alex.coplan@arm.com>
10827 * config/aarch64/aarch64.c (aarch64_evpc_rev_local): Don't match
10828 identity permutation.
10830 2020-05-19 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10832 * doc/sourcebuild.texi: Document new short_eq_int, ptr_eq_short,
10833 msp430_small, msp430_large and size24plus DejaGNU effective
10835 Improve grammar in descriptions for size20plus and size32plus effective
10838 2020-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
10840 * config/bpf/bpf.c (bpf_compute_frame_layout): Include space for
10841 callee saved registers only in xBPF.
10842 (bpf_expand_prologue): Save callee saved registers only in xBPF.
10843 (bpf_expand_epilogue): Likewise for restoring.
10844 * doc/invoke.texi (eBPF Options): Document this is activated by
10847 2020-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
10849 * config/bpf/bpf.opt (mxbpf): New option.
10850 * doc/invoke.texi (Option Summary): Add -mxbpf.
10851 (eBPF Options): Document -mxbbpf.
10853 2020-05-19 Uroš Bizjak <ubizjak@gmail.com>
10856 * config/i386/sse.md (<code>v16qiv16hi2): New expander.
10857 (<code>v32qiv32hi2): Ditto.
10858 (<code>v8qiv8hi2): Ditto.
10859 (<code>v16qiv16si2): Ditto.
10860 (<code>v8qiv8si2): Ditto.
10861 (<code>v4qiv4si2): Ditto.
10862 (<code>v16hiv16si2): Ditto.
10863 (<code>v8hiv8si2): Ditto.
10864 (<code>v4hiv4si2): Ditto.
10865 (<code>v8qiv8di2): Ditto.
10866 (<code>v4qiv4di2): Ditto.
10867 (<code>v2qiv2di2): Ditto.
10868 (<code>v8hiv8di2): Ditto.
10869 (<code>v4hiv4di2): Ditto.
10870 (<code>v2hiv2di2): Ditto.
10871 (<code>v8siv8di2): Ditto.
10872 (<code>v4siv4di2): Ditto.
10873 (<code>v2siv2di2): Ditto.
10875 2020-05-19 Kito Cheng <kito.cheng@sifive.com>
10877 * common/config/riscv/riscv-common.c (riscv_implied_info_t): New.
10878 (riscv_implied_info): New.
10879 (riscv_subset_list): Add handle_implied_ext.
10880 (riscv_subset_list::to_string): New parameter version_p to
10881 control output format.
10882 (riscv_subset_list::handle_implied_ext): New.
10883 (riscv_subset_list::parse_std_ext): Call handle_implied_ext.
10884 (riscv_arch_str): New parameter version_p to control output format.
10885 (riscv_expand_arch): New.
10886 * config/riscv/riscv-protos.h (riscv_arch_str): New parameter,
10888 * config/riscv/riscv.h (riscv_expand_arch): New,
10889 (EXTRA_SPEC_FUNCTIONS): Define.
10890 (ASM_SPEC): Transform -march= via riscv_expand_arch.
10892 2020-05-19 Kito Cheng <kito.cheng@sifive.com>
10894 * riscv-common.c (parse_sv_or_non_std_ext): Rename to
10895 parse_multiletter_ext.
10896 (parse_multiletter_ext): Add parsing `h` and `z`, drop `sx`,
10897 adjust parsing order for 's' and 'x'.
10899 2020-05-19 Richard Biener <rguenther@suse.de>
10901 * tree-vectorizer.h (_slp_tree::vectype): Add field.
10902 (SLP_TREE_VECTYPE): New.
10903 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
10905 (vect_create_new_slp_node): Likewise.
10906 (vect_prologue_cost_for_slp): Move here from tree-vect-stmts.c
10908 (vect_slp_analyze_node_operations): Walk nodes children for
10910 (vect_get_constant_vectors): Use local scope op variable.
10911 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Remove here.
10912 (vect_model_simple_cost): Adjust.
10913 (vect_model_store_cost): Likewise.
10914 (vectorizable_store): Likewise.
10916 2020-05-18 Martin Sebor <msebor@redhat.com>
10918 PR middle-end/92815
10919 * tree-object-size.c (decl_init_size): New function.
10920 (addr_object_size): Call it.
10921 * tree.h (last_field): Declare.
10922 (first_field): Add attribute nonnull.
10924 2020-05-18 Martin Sebor <msebor@redhat.com>
10926 PR middle-end/94940
10927 * tree-vrp.c (vrp_prop::check_mem_ref): Remove unreachable code.
10928 * tree.c (component_ref_size): Correct the handling or array members
10930 Drop a pointless test.
10931 Rename a local variable.
10933 2020-05-18 Jason Merrill <jason@redhat.com>
10935 * aclocal.m4: Add ax_cxx_compile_stdcxx.m4.
10936 * configure.ac: Use AX_CXX_COMPILE_STDCXX(11).
10938 2020-05-14 Jason Merrill <jason@redhat.com>
10940 * doc/install.texi (Prerequisites): Update boostrap compiler
10941 requirement to C++11/GCC 4.8.
10943 2020-05-18 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
10945 PR tree-optimization/94952
10946 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
10947 Initialize variables bitpos, bitregion_start, and bitregion_end in
10948 order to silence warnings about use of uninitialized variables.
10950 2020-05-18 Carl Love <cel@us.ibm.com>
10953 * config/rs6000/vsx.md (define_expand): Fix instruction generation for
10954 first_match_index_<mode>.
10955 * testsuite/gcc.target/powerpc/builtins-8-p9-runnable.c (main): Add
10956 additional test cases with zero vector elements.
10958 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
10961 * config/i386/i386-expand.c (ix86_expand_int_movcc):
10962 Avoid reversing a non-trapping comparison to a trapping one.
10964 2020-05-18 Alex Coplan <alex.coplan@arm.com>
10966 * config/arm/arm.c (output_move_double): Fix codegen when loading into
10967 a register pair with an odd base register.
10969 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
10971 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
10972 Do not emit FLAGS_REG clobber for TFmode.
10973 * config/i386/i386.md (*<code>tf2_1): Rewrite as
10974 define_insn_and_split. Mark operands 1 and 2 commutative.
10975 (*nabstf2_1): Ditto.
10976 (absneg SSE splitter): Use MODEF mode iterator instead of SSEMODEF.
10977 Do not swap memory operands. Simplify RTX generation.
10978 (neg abs SSE splitter): Ditto.
10979 * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
10980 commutative. Do not swap operands. Simplify RTX generation.
10981 (*nabs<mode>2): Ditto.
10983 2020-05-18 Richard Biener <rguenther@suse.de>
10985 * tree-vect-slp.c (vect_slp_bb): Start after labels.
10986 (vect_get_constant_vectors): Really place init stmt after scalar defs.
10987 * tree-vect-stmts.c (vect_init_vector_1): Insert before
10990 2020-05-18 H.J. Lu <hongjiu.lu@intel.com>
10992 * config/i386/driver-i386.c (host_detect_local_cpu): Support
10993 Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
10994 processor families.
10996 2020-05-18 Richard Biener <rguenther@suse.de>
10998 PR middle-end/95171
10999 * tree-inline.c (remap_gimple_stmt): Split out trapping compares
11000 when inlining into a non-call EH function.
11002 2020-05-18 Richard Biener <rguenther@suse.de>
11004 PR tree-optimization/95172
11005 * tree-ssa-loop-im.c (execute_sm): Get flag whether we
11006 eventually need the conditional processing.
11007 (execute_sm_exit): When processing an orderd sequence
11008 avoid doing any conditional processing.
11009 (hoist_memory_references): Pass down whether all edges
11010 have ordered processing for a ref to execute_sm.
11012 2020-05-17 Jeff Law <law@redhat.com>
11014 * config/h8300/predicates.md (pc_or_label_operand): New predicate.
11015 * config/h8300/jumpcall.md (branch_true, branch_false): Consolidate
11016 into a single pattern using pc_or_label_operand.
11017 * config/h8300/combiner.md (bit branch patterns): Likewise.
11018 * config/h8300/peepholes.md (HImode and SImode branches): Likewise.
11020 2020-05-17 H.J. Lu <hongjiu.lu@intel.com>
11023 * config/i386/i386-features.c (has_non_address_hard_reg):
11025 (pseudo_reg_set): This. Return the SET expression. Ignore
11026 pseudo register push.
11027 (general_scalar_to_vector_candidate_p): Combine single_set and
11028 has_non_address_hard_reg calls to pseudo_reg_set.
11029 (timode_scalar_to_vector_candidate_p): Likewise.
11030 * config/i386/i386.md (*pushv1ti2): New pattern.
11032 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
11035 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
11037 * tree-vrp.c (operand_less_p): Move to...
11038 * vr-values.c (operand_less_p): ...here.
11039 * tree-vrp.h (operand_less_p): Remove.
11041 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
11043 * tree-vrp.c (operand_less_p): Move to...
11044 * vr-values.c (operand_less_p): ...here.
11045 * tree-vrp.h (operand_less_p): Remove.
11047 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
11049 * tree-vrp.c (class vrp_insert): Remove prototype for
11052 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
11054 * tree-vrp.c (class live_names): New.
11055 (live_on_edge): Move into live_names.
11056 (build_assert_expr_for): Move into vrp_insert.
11057 (find_assert_locations_in_bb): Rename from
11058 find_assert_locations_1.
11059 (process_assert_insertions_for): Move into vrp_insert.
11060 (compare_assert_loc): Same.
11061 (remove_range_assertions): Same.
11062 (dump_asserts_for): Rename to vrp_insert::dump.
11063 (debug_asserts_for): Rename to vrp_insert::debug.
11064 (dump_all_asserts): Rename to vrp_insert::dump.
11065 (debug_all_asserts): Rename to vrp_insert::debug.
11067 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
11069 * tree-vrp.c (class vrp_prop): Move check_all_array_refs,
11070 check_array_ref, check_mem_ref, and search_for_addr_array
11072 (class array_bounds_checker): ...here.
11073 (class check_array_bounds_dom_walker): Adjust to use
11074 array_bounds_checker.
11075 (check_all_array_refs): Move into array_bounds_checker and rename
11077 (class vrp_folder): Make fold_predicate_in private.
11079 2020-05-15 Jeff Law <law@redhat.com>
11081 * config/h8300/h8300.md (SFI iterator): New iterator for
11083 * config/h8300/peepholes.md (memory comparison): Use mode
11084 iterator to consolidate 3 patterns into one.
11085 (stack allocation and stack store): Handle SFmode. Handle
11086 8 byte allocations.
11088 2020-05-15 Segher Boessenkool <segher@kernel.crashing.org>
11090 * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_2): Also require
11091 RS6000_BTM_POWERPC64.
11093 2020-05-15 Uroš Bizjak <ubizjak@gmail.com>
11095 * config/i386/i386.md (SWI48DWI): New mode iterator.
11096 (*push<mode>2): Allow XMM registers.
11097 (*pushdi2_rex64): Ditto.
11098 (*pushsi2_rex64): Ditto.
11100 (push XMM reg splitter): New splitter
11102 (*pushdf) Change "x" operand constraint to "v".
11103 (*pushsf_rex64): Ditto.
11106 2020-05-15 Richard Biener <rguenther@suse.de>
11108 PR tree-optimization/92260
11109 * tree-vect-slp.c (vect_get_constant_vectors): Compute
11110 the number of vector stmts in a canonical way.
11112 2020-05-15 Martin Liska <mliska@suse.cz>
11114 * hsa-gen.c (get_symbol_for_decl): Fix misleading indentation
11117 2020-05-15 Andrew Stubbs <ams@codesourcery.com>
11119 * config/gcn/gcn-valu.md (v<expander><mode>3): Fix unsignedp.
11121 2020-05-15 Richard Biener <rguenther@suse.de>
11123 PR tree-optimization/95133
11124 * gimple-ssa-split-paths.c
11125 (find_block_to_duplicate_for_splitting_paths): Check for
11128 2020-05-15 Christophe Lyon <christophe.lyon@linaro.org>
11130 * config/arm/arm.c (reg_needs_saving_p): Add support for interrupt
11132 (arm_compute_save_reg0_reg12_mask): Use reg_needs_saving_p.
11134 2020-05-15 Tobias Burnus <tobias@codesourcery.com>
11136 PR middle-end/94635
11137 * gimplify.c (gimplify_scan_omp_clauses): For MAP_TO_PSET with
11138 OMP_TARGET_EXIT_DATA, use 'release:' unless the associated
11141 2020-05-15 Uroš Bizjak <ubizjak@gmail.com>
11144 * config/i386/i386.md (isa): Add sse3_noavx.
11145 (enabled): Handle sse3_noavx.
11147 * config/i386/mmx.md (mmx_haddv2sf3): New expander.
11148 (*mmx_haddv2sf3): Rename from mmx_haddv2sf3. Add SSE/AVX
11149 alternatives. Match commutative vec_select selector operands.
11150 (*mmx_haddv2sf3_low): New insn pattern.
11152 (*mmx_hsubv2sf3): Add SSE/AVX alternatives.
11153 (*mmx_hsubv2sf3_low): New insn pattern.
11155 2020-05-15 Richard Biener <rguenther@suse.de>
11157 PR tree-optimization/33315
11158 * tree-ssa-sink.c: Include tree-eh.h.
11159 (sink_stats): Add commoned member.
11160 (sink_common_stores_to_bb): New function implementing store
11161 commoning by sinking to the successor.
11162 (sink_code_in_bb): Call it, pass down TODO_cleanup_cfg returned.
11163 (pass_sink_code::execute): Likewise. Record commoned stores
11166 2020-05-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
11168 PR rtl-optimization/37451, part of PR target/61837
11169 * loop-doloop.c (doloop_simplify_count): New function. Simplify
11170 (add -1; zero_ext; add +1) to zero_ext when not wrapping.
11171 (doloop_modify): Call doloop_simplify_count.
11173 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
11176 * doc/sourcebuild.texi: Document effective target lgccjit.
11178 2020-05-14 Andrew Stubbs <ams@codesourcery.com>
11180 * config/gcn/gcn-valu.md (add<mode>3_zext_dup): Change to a
11181 define_expand, and rename the original to ...
11182 (add<mode>3_vcc_zext_dup): ... this, and add a custom VCC operand.
11183 (add<mode>3_zext_dup_exec): Likewise, with ...
11184 (add<mode>3_vcc_zext_dup_exec): ... this.
11185 (add<mode>3_zext_dup2): Likewise, with ...
11186 (add<mode>3_zext_dup_exec): ... this.
11187 (add<mode>3_zext_dup2_exec): Likewise, with ...
11188 (add<mode>3_zext_dup2): ... this.
11189 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address): Switch
11190 addv64di3_zext* calls to use addv64di3_vcc_zext*.
11192 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
11195 * config/i386/sse.md (truncv2dfv2df2): New insn pattern.
11196 (extendv2sfv2df2): Ditto.
11198 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
11200 * configure: Regenerated.
11202 2020-05-14 Christophe Lyon <christophe.lyon@linaro.org>
11204 * config/arm/arm.c (reg_needs_saving_p): New function.
11205 (use_return_insn): Use reg_needs_saving_p.
11206 (arm_get_vfp_saved_size): Likewise.
11207 (arm_compute_frame_layout): Likewise.
11208 (arm_save_coproc_regs): Likewise.
11209 (thumb1_expand_epilogue): Likewise.
11210 (arm_expand_epilogue_apcs_frame): Likewise.
11211 (arm_expand_epilogue): Likewise.
11213 2020-05-14 Christophe Lyon <christophe.lyon@linaro.org>
11215 * config/arm/arm.c (thumb1_expand_prologue): Update error message.
11217 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
11220 * config/i386/sse.md (sse2_cvtpi2pd): Add memory to alternative 1.
11222 (floatv2siv2df2): New expander.
11223 (floatunsv2siv2df2): New insn pattern.
11225 (fix_truncv2dfv2si2): New expander.
11226 (fixuns_truncv2dfv2si2): New insn pattern.
11228 2020-05-14 Richard Sandiford <richard.sandiford@arm.com>
11231 * config/aarch64/aarch64-sve-builtins.cc
11232 (handle_arm_sve_vector_bits_attribute): Create a copy of the
11233 original type's TYPE_MAIN_VARIANT, then reapply all the differences
11234 between the original type and its main variant.
11236 2020-05-14 Richard Biener <rguenther@suse.de>
11238 PR middle-end/95118
11239 * real.c (real_to_decimal_for_mode): Make sure we handle
11240 a zero with nonzero exponent.
11242 2020-05-14 Jakub Jelinek <jakub@redhat.com>
11244 * Makefile.in (GTFILES): Add omp-general.c.
11245 * cgraph.h (struct cgraph_node): Add declare_variant_alt and
11246 calls_declare_variant_alt members and initialize them in the
11248 * ipa.c (symbol_table::remove_unreachable_nodes): Handle direct
11249 calls to declare_variant_alt nodes.
11250 * lto-cgraph.c (lto_output_node): Write declare_variant_alt
11251 and calls_declare_variant_alt.
11252 (input_overwrite_node): Read them back.
11253 * omp-simd-clone.c (simd_clone_create): Copy calls_declare_variant_alt
11255 * tree-inline.c (expand_call_inline): Or in calls_declare_variant_alt
11257 (tree_function_versioning): Copy calls_declare_variant_alt bit.
11258 * omp-offload.c (execute_omp_device_lower): Call
11259 omp_resolve_declare_variant on direct function calls.
11260 (pass_omp_device_lower::gate): Also enable for
11261 calls_declare_variant_alt functions.
11262 * omp-general.c (omp_maybe_offloaded): Return false after inlining.
11263 (omp_context_selector_matches): Handle the case when
11264 cfun->curr_properties has PROP_gimple_any bit set.
11265 (struct omp_declare_variant_entry): New type.
11266 (struct omp_declare_variant_base_entry): New type.
11267 (struct omp_declare_variant_hasher): New type.
11268 (omp_declare_variant_hasher::hash, omp_declare_variant_hasher::equal):
11270 (omp_declare_variants): New variable.
11271 (struct omp_declare_variant_alt_hasher): New type.
11272 (omp_declare_variant_alt_hasher::hash,
11273 omp_declare_variant_alt_hasher::equal): New methods.
11274 (omp_declare_variant_alt): New variables.
11275 (omp_resolve_late_declare_variant): New function.
11276 (omp_resolve_declare_variant): Call omp_resolve_late_declare_variant
11277 when called late. Create a magic declare_variant_alt fndecl and
11278 cgraph node and return that if decision needs to be deferred until
11279 after gimplification.
11280 * cgraph.c (symbol_table::create_edge): Or in calls_declare_variant_alt
11283 PR middle-end/95108
11284 * omp-simd-clone.c (struct modify_stmt_info): Add after_stmt member.
11285 (ipa_simd_modify_stmt_ops): For PHIs, only add before first stmt in
11286 entry block if info->after_stmt is NULL, otherwise add after that stmt
11287 and update it after adding each stmt.
11288 (ipa_simd_modify_function_body): Initialize info.after_stmt.
11290 * function.h (struct function): Add has_omp_target bit.
11291 * omp-offload.c (omp_discover_declare_target_fn_r): New function,
11293 (omp_discover_declare_target_tgt_fn_r): ... this.
11294 (omp_discover_declare_target_var_r): Call
11295 omp_discover_declare_target_tgt_fn_r instead of
11296 omp_discover_declare_target_fn_r.
11297 (omp_discover_implicit_declare_target): Also queue functions with
11298 has_omp_target bit set, for those walk with
11299 omp_discover_declare_target_fn_r, for declare target to functions
11300 walk with omp_discover_declare_target_tgt_fn_r.
11302 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
11305 * config/i386/mmx.md (mmx_fix_truncv2sfv2si2): Rename from mmx_pf2id.
11306 Add SSE/AVX alternative. Change operand predicates from
11307 nonimmediate_operand to register_mmxmem_operand.
11308 Enable instruction pattern for TARGET_MMX_WITH_SSE.
11309 (fix_truncv2sfv2si2): New expander.
11310 (fixuns_truncv2sfv2si2): New insn pattern.
11312 (mmx_floatv2siv2sf2): rename from mmx_floatv2si2.
11313 Add SSE/AVX alternative. Change operand predicates from
11314 nonimmediate_operand to register_mmxmem_operand.
11315 Enable instruction pattern for TARGET_MMX_WITH_SSE.
11316 (floatv2siv2sf2): New expander.
11317 (floatunsv2siv2sf2): New insn pattern.
11319 * config/i386/i386-builtin.def (IX86_BUILTIN_PF2ID):
11321 (IX86_BUILTIN_PI2FD): Ditto.
11323 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
11325 * config/s390/s390.c (s390_emit_stack_probe): Call the probe_stack
11327 * config/s390/s390.md ("@probe_stack2<mode>", "probe_stack"): New
11330 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
11332 * config/s390/s390.c (allocate_stack_space): Add missing updates
11333 of last_probe_offset.
11335 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
11337 * config/s390/s390.md ("allocate_stack"): Call
11338 anti_adjust_stack_and_probe_stack_clash when stack clash
11339 protection is enabled.
11340 * explow.c (anti_adjust_stack_and_probe_stack_clash): Remove
11341 prototype. Remove static.
11342 * explow.h (anti_adjust_stack_and_probe_stack_clash): Add
11345 2020-05-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
11347 * config/rs6000/altivec.h (vec_extractl): New #define.
11348 (vec_extracth): Likewise.
11349 * config/rs6000/altivec.md (UNSPEC_EXTRACTL): New constant.
11350 (UNSPEC_EXTRACTR): Likewise.
11351 (vextractl<mode>): New expansion.
11352 (vextractl<mode>_internal): New insn.
11353 (vextractr<mode>): New expansion.
11354 (vextractr<mode>_internal): New insn.
11355 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vextdubvlx):
11356 New built-in function.
11357 (__builtin_altivec_vextduhvlx): Likewise.
11358 (__builtin_altivec_vextduwvlx): Likewise.
11359 (__builtin_altivec_vextddvlx): Likewise.
11360 (__builtin_altivec_vextdubvhx): Likewise.
11361 (__builtin_altivec_vextduhvhx): Likewise.
11362 (__builtin_altivec_vextduwvhx): Likewise.
11363 (__builtin_altivec_vextddvhx): Likewise.
11364 (__builtin_vec_extractl): New overloaded built-in function.
11365 (__builtin_vec_extracth): Likewise.
11366 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
11367 Define overloaded forms of __builtin_vec_extractl and
11368 __builtin_vec_extracth.
11369 (builtin_function_type): Add cases to mark arguments of new
11370 built-in functions as unsigned.
11371 (rs6000_common_init_builtins): Add
11372 opaque_ftype_opaque_opaque_opaque_opaque.
11373 * config/rs6000/rs6000.md (du_or_d): New mode attribute.
11374 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
11375 for a Future Architecture): Add description of vec_extractl and
11376 vec_extractr built-in functions.
11378 2020-05-13 Richard Biener <rguenther@suse.de>
11380 * target.def (add_stmt_cost): Add new vectype parameter.
11381 * targhooks.c (default_add_stmt_cost): Adjust.
11382 * targhooks.h (default_add_stmt_cost): Likewise.
11383 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Take new
11385 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
11386 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
11387 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
11389 * tree-vectorizer.h (stmt_info_for_cost::vectype): Add.
11390 (dump_stmt_cost): Add new vectype parameter.
11391 (add_stmt_cost): Likewise.
11392 (record_stmt_cost): Likewise.
11393 (record_stmt_cost): Add overload with old signature.
11394 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
11396 (vect_get_known_peeling_cost): Likewise.
11397 (vect_estimate_min_profitable_iters): Likewise.
11398 * tree-vectorizer.c (dump_stmt_cost): Add new vectype parameter.
11399 * tree-vect-stmts.c (record_stmt_cost): Likewise.
11400 (vect_prologue_cost_for_slp_op): Remove stmt_vec_info parameter
11401 and pass down correct vectype and NULL stmt_info.
11402 (vect_model_simple_cost): Adjust.
11403 (vect_model_store_cost): Likewise.
11405 2020-05-13 Richard Biener <rguenther@suse.de>
11407 * tree-vectorizer.h (SLP_INSTANCE_GROUP_SIZE): Remove.
11408 (_slp_instance::group_size): Likewise.
11409 * tree-vect-loop.c (vectorizable_reduction): The group size
11410 is the number of lanes in the node.
11411 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
11412 (vect_analyze_slp_instance): Do not set SLP_INSTANCE_GROUP_SIZE,
11413 verify it matches the instance trees number of lanes.
11414 (vect_slp_analyze_node_operations_1): Use the numer of lanes
11415 in the node as group size.
11416 (vect_bb_vectorization_profitable_p): Use the instance root
11417 number of lanes for the size of life.
11418 (vect_schedule_slp_instance): Use the number of lanes as
11420 * tree-vect-stmts.c (vectorizable_load): Remove SLP instance
11421 parameter. Use the number of lanes of the load for the group
11422 size in the gap adjustment code.
11423 (vect_analyze_stmt): Adjust.
11424 (vect_transform_stmt): Likewise.
11426 2020-05-13 Jakub Jelinek <jakub@redhat.com>
11429 * cfgrtl.c (purge_dead_edges): Skip over debug and note insns even
11430 if the last insn is a note.
11432 PR tree-optimization/95060
11433 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Fold a NEGATE_EXPR
11434 if it is the single use of the FMA internal builtin.
11436 2020-05-13 Bin Cheng <bin.cheng@linux.alibaba.com>
11438 PR tree-optimization/94969
11439 * tree-data-dependence.c (constant_access_functions): Rename to...
11440 (invariant_access_functions): ...this. Add parameter. Check for
11441 invariant access function, rather than constant.
11442 (build_classic_dist_vector): Call above function.
11443 * tree-loop-distribution.c (pg_add_dependence_edges): Add comment.
11445 2020-05-13 Hongtao Liu <hongtao.liu@intel.com>
11448 * doc/extend.texi (x86Operandmodifiers): Document more x86
11450 * gcc/config/i386/i386.c: Add comment for operand modifier N and I.
11452 2020-05-12 Giuliano Belinassi <giuliano.belinassi@usp.br>
11454 * tree-vrp.c (class vrp_insert): New.
11455 (insert_range_assertions): Move to class vrp_insert.
11456 (dump_all_asserts): Same as above.
11457 (dump_asserts_for): Same as above.
11458 (live): Same as above.
11459 (need_assert_for): Same as above.
11460 (live_on_edge): Same as above.
11461 (finish_register_edge_assert_for): Same as above.
11462 (find_switch_asserts): Same as above.
11463 (find_assert_locations): Same as above.
11464 (find_assert_locations_1): Same as above.
11465 (find_conditional_asserts): Same as above.
11466 (process_assert_insertions): Same as above.
11467 (register_new_assert_for): Same as above.
11468 (vrp_prop): New variable fun.
11469 (vrp_initialize): New parameter.
11470 (identify_jump_threads): Same as above.
11471 (execute_vrp): Same as above.
11474 2020-05-12 Keith Packard <keith.packard@sifive.com>
11476 * config/riscv/riscv.c (riscv_unique_section): New.
11477 (TARGET_ASM_UNIQUE_SECTION): New.
11479 2020-05-12 Craig Blackmore <craig.blackmore@embecosm.com>
11481 * config.gcc: Add riscv-shorten-memrefs.o to extra_objs for riscv.
11482 * config/riscv/riscv-passes.def: New file.
11483 * config/riscv/riscv-protos.h (make_pass_shorten_memrefs): Declare.
11484 * config/riscv/riscv-shorten-memrefs.c: New file.
11485 * config/riscv/riscv.c (tree-pass.h): New include.
11486 (riscv_compressed_reg_p): New Function
11487 (riscv_compressed_lw_offset_p): Likewise.
11488 (riscv_compressed_lw_address_p): Likewise.
11489 (riscv_shorten_lw_offset): Likewise.
11490 (riscv_legitimize_address): Attempt to convert base + large_offset
11491 to compressible new_base + small_offset.
11492 (riscv_address_cost): Make anticipated compressed load/stores
11493 cheaper for code size than uncompressed load/stores.
11494 (riscv_register_priority): Move compressed register check to
11495 riscv_compressed_reg_p.
11496 * config/riscv/riscv.h (C_S_BITS): Define.
11497 (CSW_MAX_OFFSET): Define.
11498 * config/riscv/riscv.opt (mshorten-memefs): New option.
11499 * config/riscv/t-riscv (riscv-shorten-memrefs.o): New rule.
11500 (PASSES_EXTRA): Add riscv-passes.def.
11501 * doc/invoke.texi: Document -mshorten-memrefs.
11503 * config/riscv/riscv.c (riscv_new_address_profitable_p): New function.
11504 (TARGET_NEW_ADDRESS_PROFITABLE_P): Define.
11505 * doc/tm.texi: Regenerate.
11506 * doc/tm.texi.in (TARGET_NEW_ADDRESS_PROFITABLE_P): New hook.
11507 * sched-deps.c (attempt_change): Use old address if it is cheaper than
11509 * target.def (new_address_profitable_p): New hook.
11510 * targhooks.c (default_new_address_profitable_p): New function.
11511 * targhooks.h (default_new_address_profitable_p): Declare.
11513 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
11516 * config/i386/mmx.md (copysignv2sf3): New expander.
11517 (xorsignv2sf3): Ditto.
11518 (signbitv2sf3): Ditto.
11520 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
11523 * config/i386/mmx.md (fmav2sf4): New insn pattern.
11525 (fnmav2sf4): Ditto.
11526 (fnmsv2sf4): Ditto.
11528 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
11530 * Makefile.in (CET_HOST_FLAGS): New.
11531 (COMPILER): Add $(CET_HOST_FLAGS).
11532 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
11533 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
11535 * aclocal.m4: Regenerated.
11536 * configure: Likewise.
11538 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
11541 * config/i386/mmx.md (<code>v2sf2): New insn pattern.
11542 (*mmx_<code>v2sf2): New insn_and_split pattern.
11543 (*mmx_nabsv2sf2): Ditto.
11544 (*mmx_andnotv2sf3): New insn pattern.
11545 (*mmx_<code>v2sf3): Ditto.
11546 * config/i386/i386.md (absneg_op): New code attribute.
11547 * config/i386/i386.c (ix86_build_const_vector): Handle V2SFmode.
11548 (ix86_build_signbit_mask): Ditto.
11550 2020-05-12 Richard Biener <rguenther@suse.de>
11552 * tree-ssa-live.c (remove_unused_locals): Remove dead debug
11555 2020-05-12 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11557 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
11558 Update prototype to include "local" argument.
11559 * config/msp430/msp430.c (msp430_output_aligned_decl_common): Add
11560 "local" argument. Handle local common decls.
11561 * config/msp430/msp430.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Adjust
11562 msp430_output_aligned_decl_common call with 0 for "local" argument.
11563 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11565 2020-05-12 Richard Biener <rguenther@suse.de>
11567 * cfghooks.c (split_edge): Preserve EDGE_DFS_BACK if set.
11569 2020-05-12 Martin Liska <mliska@suse.cz>
11573 * sanopt.c (sanitize_rewrite_addressable_params):
11574 Clear DECL_NOT_GIMPLE_REG_P for argument.
11576 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
11578 PR tree-optimization/94980
11579 * tree-vect-generic.c (expand_vector_comparison): Use
11580 vector_element_bits_tree to get the element size in bits,
11581 rather than using TYPE_SIZE.
11582 (expand_vector_condition, vector_element): Likewise.
11584 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
11586 PR tree-optimization/94980
11587 * tree-vect-generic.c (build_replicated_const): Take the number
11588 of bits as a parameter, instead of the type of the elements.
11589 (do_plus_minus): Update accordingly, using vector_element_bits
11590 to calculate the correct number of bits.
11591 (do_negate): Likewise.
11593 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
11595 PR tree-optimization/94980
11596 * tree.h (vector_element_bits, vector_element_bits_tree): Declare.
11597 * tree.c (vector_element_bits, vector_element_bits_tree): New.
11598 * match.pd: Use the new functions instead of determining the
11599 vector element size directly from TYPE_SIZE(_UNIT).
11600 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
11601 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
11602 * tree-vect-stmts.c (vect_is_simple_cond): Likewise.
11603 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
11604 (expand_vector_conversion): Likewise.
11605 (expand_vector_addition): Likewise for a TYPE_SIZE_UNIT used as
11606 a divisor. Convert the dividend to bits to compensate.
11607 * tree-vect-loop.c (vectorizable_live_operation): Call
11608 vector_element_bits instead of open-coding it.
11610 2020-05-12 Jakub Jelinek <jakub@redhat.com>
11612 * omp-offload.h (omp_discover_implicit_declare_target): Declare.
11613 * omp-offload.c: Include context.h.
11614 (omp_declare_target_fn_p, omp_declare_target_var_p,
11615 omp_discover_declare_target_fn_r, omp_discover_declare_target_var_r,
11616 omp_discover_implicit_declare_target): New functions.
11617 * cgraphunit.c (analyze_functions): Call
11618 omp_discover_implicit_declare_target.
11620 2020-05-12 Richard Biener <rguenther@suse.de>
11622 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Canonicalize
11623 literal constant &MEM[..] to a constant literal.
11625 2020-05-12 Richard Biener <rguenther@suse.de>
11627 PR tree-optimization/95045
11628 * dbgcnt.def (lim): Add debug-counter.
11629 * tree-ssa-loop-im.c: Include dbgcnt.h.
11630 (find_refs_for_sm): Use lim debug counter for store motion
11632 (do_store_motion): Rename form store_motion. Commit edge
11634 (store_motion_loop): ... here.
11635 (tree_ssa_lim): Adjust.
11637 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11639 * config/rs6000/altivec.h (vec_clzm): Rename to vec_cntlzm.
11640 (vec_ctzm): Rename to vec_cnttzm.
11641 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11642 Change fourth operand for vec_ternarylogic to require
11643 compatibility with unsigned SImode rather than unsigned QImode.
11644 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
11645 Remove overloaded forms of vec_gnb that are no longer needed.
11646 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
11647 for a Future Architecture): Replace vec_clzm with vec_cntlzm;
11648 replace vec_ctzm with vec_cntlzm; remove four unwanted forms of
11649 vec_gnb; move vec_ternarylogic documentation into this section
11650 and replace const unsigned char with const unsigned int as its
11653 2020-05-11 Carl Love <cel@us.ibm.com>
11655 * config/rs6000/altivec.h (vec_genpcvm): New #define.
11656 * config/rs6000/rs6000-builtin.def (XXGENPCVM_V16QI): New built-in
11658 (XXGENPCVM_V8HI): Likewise.
11659 (XXGENPCVM_V4SI): Likewise.
11660 (XXGENPCVM_V2DI): Likewise.
11661 (XXGENPCVM): New overloaded built-in instantiation.
11662 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add
11663 entries for FUTURE_BUILTIN_VEC_XXGENPCVM.
11664 (altivec_expand_builtin): Add special handling for
11665 FUTURE_BUILTIN_VEC_XXGENPCVM.
11666 (builtin_function_type): Add handling for
11667 FUTURE_BUILTIN_XXGENPCVM_{V16QI,V8HI,V4SI,V2DI}.
11668 * config/rs6000/vsx.md (VSX_EXTRACT_I4): New mode iterator.
11669 (UNSPEC_XXGENPCV): New constant.
11670 (xxgenpcvm_<mode>_internal): New insn.
11671 (xxgenpcvm_<mode>): New expansion.
11672 * doc/extend.texi: Add documentation for vec_genpcvm built-ins.
11674 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11676 * config/rs6000/altivec.h (vec_strir): New #define.
11677 (vec_stril): Likewise.
11678 (vec_strir_p): Likewise.
11679 (vec_stril_p): Likewise.
11680 * config/rs6000/altivec.md (UNSPEC_VSTRIR): New constant.
11681 (UNSPEC_VSTRIL): Likewise.
11682 (vstrir_<mode>): New expansion.
11683 (vstrir_code_<mode>): New insn.
11684 (vstrir_p_<mode>): New expansion.
11685 (vstrir_p_code_<mode>): New insn.
11686 (vstril_<mode>): New expansion.
11687 (vstril_code_<mode>): New insn.
11688 (vstril_p_<mode>): New expansion.
11689 (vstril_p_code_<mode>): New insn.
11690 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vstribr):
11691 New built-in function.
11692 (__builtin_altivec_vstrihr): Likewise.
11693 (__builtin_altivec_vstribl): Likewise.
11694 (__builtin_altivec_vstrihl): Likewise.
11695 (__builtin_altivec_vstribr_p): Likewise.
11696 (__builtin_altivec_vstrihr_p): Likewise.
11697 (__builtin_altivec_vstribl_p): Likewise.
11698 (__builtin_altivec_vstrihl_p): Likewise.
11699 (__builtin_vec_strir): New overloaded built-in function.
11700 (__builtin_vec_stril): Likewise.
11701 (__builtin_vec_strir_p): Likewise.
11702 (__builtin_vec_stril_p): Likewise.
11703 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
11704 Define overloaded forms of __builtin_vec_strir,
11705 __builtin_vec_stril, __builtin_vec_strir_p, and
11706 __builtin_vec_stril_p.
11707 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
11708 for a Future Architecture): Add description of vec_stril,
11709 vec_stril_p, vec_strir, and vec_strir_p built-in functions.
11711 2020-05-11 Kelvin Nilsen <wschmidt@linux.ibm.com>
11713 * config/rs6000/altivec.h (vec_ternarylogic): New #define.
11714 * config/rs6000/altivec.md (UNSPEC_XXEVAL): New constant.
11715 (xxeval): New insn.
11716 * config/rs6000/predicates.md (u8bit_cint_operand): New predicate.
11717 * config/rs6000/rs6000-builtin.def: Add handling of new macro
11719 (BU_FUTURE_V_4): New macro. Use it.
11720 (BU_FUTURE_OVERLOAD_4): Likewise.
11721 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Add
11722 handling for quaternary built-in functions.
11723 (altivec_resolve_overloaded_builtin): Add special-case handling
11724 for __builtin_vec_xxeval.
11725 * config/rs6000/rs6000-call.c: Add handling of new macro
11726 RS6000_BUILTIN_4 in initialization of rs6000_builtin_info,
11727 bdesc0_arg, bdesc1_arg, bdesc2_arg, bdesc_3arg,
11728 bdesc_altivec_preds, bdesc_abs, and bdesc_htm arrays.
11729 (altivec_overloaded_builtins): Add definitions for
11730 FUTURE_BUILTIN_VEC_XXEVAL.
11731 (bdesc_4arg): New array.
11732 (htm_expand_builtin): Add handling for quaternary built-in
11734 (rs6000_expand_quaternop_builtin): New function.
11735 (rs6000_expand_builtin): Add handling for quaternary built-in
11737 (rs6000_init_builtins): Initialize builtin_mode_to_type entries
11738 for unsigned QImode and unsigned HImode.
11739 (builtin_quaternary_function_type): New function.
11740 (rs6000_common_init_builtins): Add handling of quaternary
11742 * config/rs6000/rs6000.h (RS6000_BTC_QUATERNARY): New defined
11744 (RS6000_BTC_PREDICATE): Change value of constant.
11745 (RS6000_BTC_ABS): Likewise.
11746 (rs6000_builtins): Add support for new macro RS6000_BUILTIN_4.
11747 * doc/extend.texi (PowerPC AltiVec Built-In Functions Available
11748 for a Future Architecture): Add description of vec_ternarylogic
11751 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11753 * config/rs6000/rs6000-builtin.def (__builtin_pdepd): New built-in
11755 (__builtin_pextd): Likewise.
11756 * config/rs6000/rs6000.md (UNSPEC_PDEPD): New constant.
11757 (UNSPEC_PEXTD): Likewise.
11760 * doc/extend.texi (Basic PowerPC Built-in Functions Available for
11761 a Future Architecture): Add descriptions of __builtin_pdepd and
11762 __builtin_pextd functions.
11764 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11766 * config/rs6000/altivec.h (vec_clrl): New #define.
11767 (vec_clrr): Likewise.
11768 * config/rs6000/altivec.md (UNSPEC_VCLRLB): New constant.
11769 (UNSPEC_VCLRRB): Likewise.
11770 (vclrlb): New insn.
11771 (vclrrb): Likewise.
11772 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vclrlb): New
11774 (__builtin_altivec_vclrrb): Likewise.
11775 (__builtin_vec_clrl): New overloaded built-in function.
11776 (__builtin_vec_clrr): Likewise.
11777 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
11778 Define overloaded forms of __builtin_vec_clrl and
11779 __builtin_vec_clrr.
11780 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
11781 for a Future Architecture): Add descriptions of vec_clrl and
11784 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11786 * config/rs6000/rs6000-builtin.def (__builtin_cntlzdm): New
11787 built-in function definition.
11788 (__builtin_cnttzdm): Likewise.
11789 * config/rs6000/rs6000.md (UNSPEC_CNTLZDM): New constant.
11790 (UNSPEC_CNTTZDM): Likewise.
11791 (cntlzdm): New insn.
11792 (cnttzdm): Likewise.
11793 * doc/extend.texi (Basic PowerPC Built-in Functions available for
11794 a Future Architecture): Add descriptions of __builtin_cntlzdm and
11795 __builtin_cnttzdm functions.
11797 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
11800 * config/i386/mmx.md (sqrtv2sf2): New insn pattern.
11802 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11804 * config/rs6000/altivec.h (vec_cfuge): New #define.
11805 * config/rs6000/altivec.md (UNSPEC_VCFUGED): New constant.
11806 (vcfuged): New insn.
11807 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vcfuged):
11808 New built-in function.
11809 * config/rs6000/rs6000-call.c (builtin_function_type): Add
11810 handling for FUTURE_BUILTIN_VCFUGED case.
11811 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
11812 for a Future Architecture): Add description of vec_cfuge built-in
11815 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11817 * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_0): New
11819 (BU_FUTURE_MISC_1): Likewise.
11820 (BU_FUTURE_MISC_2): Likewise.
11821 (BU_FUTURE_MISC_3): Likewise.
11822 (__builtin_cfuged): New built-in function definition.
11823 * config/rs6000/rs6000.md (UNSPEC_CFUGED): New constant.
11824 (cfuged): New insn.
11825 * doc/extend.texi (Basic PowerPC Built-in Functions Available for
11826 a Future Architecture): New subsubsection.
11828 2020-05-11 Richard Biener <rguenther@suse.de>
11830 PR tree-optimization/95049
11831 * tree-ssa-sccvn.c (set_ssa_val_to): Reject lattice transition
11832 between different constants.
11834 2020-05-11 Richard Sandiford <richard.sandiford@arm.com>
11836 * tree-pretty-print.c (dump_generic_node): Handle BOOLEAN_TYPEs.
11838 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11839 Bill Schmidt <wschmidt@linux.ibm.com>
11841 * config/rs6000/altivec.h (vec_gnb): New #define.
11842 * config/rs6000/altivec.md (UNSPEC_VGNB): New constant.
11844 * config/rs6000/rs6000-builtin.def (BU_FUTURE_OVERLOAD_1): New
11846 (BU_FUTURE_OVERLOAD_2): Likewise.
11847 (BU_FUTURE_OVERLOAD_3): Likewise.
11848 (__builtin_altivec_gnb): New built-in function.
11849 (__buiiltin_vec_gnb): New overloaded built-in function.
11850 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
11851 Define overloaded forms of __builtin_vec_gnb.
11852 (rs6000_expand_binop_builtin): Add error checking for 2nd argument
11853 of __builtin_vec_gnb.
11854 (builtin_function_type): Mark return value and arguments unsigned
11855 for FUTURE_BUILTIN_VGNB.
11856 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
11857 for a Future Architecture): Add description of vec_gnb built-in
11860 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11861 Bill Schmidt <wschmidt@linux.ibm.com>
11863 * config/rs6000/altivec.h (vec_pdep): New macro implementing new
11865 (vec_pext): Likewise.
11866 * config/rs6000/altivec.md (UNSPEC_VPDEPD): New constant.
11867 (UNSPEC_VPEXTD): Likewise.
11868 (vpdepd): New insn.
11869 (vpextd): Likewise.
11870 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vpdepd): New
11872 (__builtin_altivec_vpextd): Likewise.
11873 * config/rs6000/rs6000-call.c (builtin_function_type): Add
11874 handling for FUTURE_BUILTIN_VPDEPD and FUTURE_BUILTIN_VPEXTD
11876 * doc/extend.texi (PowerPC Altivec Built-in Functions Available
11877 for a Future Architecture): Add description of vec_pdep and
11878 vec_pext built-in functions.
11880 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
11881 Bill Schmidt <wschmidt@linux.ibm.com>
11883 * config/rs6000/altivec.h (vec_clzm): New macro.
11884 (vec_ctzm): Likewise.
11885 * config/rs6000/altivec.md (UNSPEC_VCLZDM): New constant.
11886 (UNSPEC_VCTZDM): Likewise.
11887 (vclzdm): New insn.
11888 (vctzdm): Likewise.
11889 * config/rs6000/rs6000-builtin.def (BU_FUTURE_V_0): New macro.
11890 (BU_FUTURE_V_1): Likewise.
11891 (BU_FUTURE_V_2): Likewise.
11892 (BU_FUTURE_V_3): Likewise.
11893 (__builtin_altivec_vclzdm): New builtin definition.
11894 (__builtin_altivec_vctzdm): Likewise.
11895 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Cause
11896 _ARCH_PWR_FUTURE macro to be defined if OPTION_MASK_FUTURE flag is
11898 * config/rs6000/rs6000-call.c (builtin_function_type): Set return
11899 value and parameter types to be unsigned for VCLZDM and VCTZDM.
11900 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
11901 support for TARGET_FUTURE flag.
11902 * config/rs6000/rs6000.h (RS6000_BTM_FUTURE): New macro constant.
11903 * doc/extend.texi (PowerPC Altivec Built-in Functions Available
11904 for a Future Architecture): New subsubsection.
11906 2020-05-11 Richard Biener <rguenther@suse.de>
11908 PR tree-optimization/94988
11909 PR tree-optimization/95025
11910 * tree-ssa-loop-im.c (seq_entry): Make a struct, add from.
11911 (sm_seq_push_down): Take extra parameter denoting where we
11913 (execute_sm_exit): Re-issue sm_other stores in the correct
11915 (sm_seq_valid_bb): When always executed, allow sm_other to
11916 prevail inbetween sm_ord and record their stored value.
11917 (hoist_memory_references): Adjust refs_not_supported propagation
11918 and prune sm_other from the end of the ordered sequences.
11920 2020-05-11 Felix Yang <felix.yang@huawei.com>
11923 * config/aarch64/aarch64.md (mov<mode>):
11924 Bitcasts to the equivalent integer mode using gen_lowpart
11925 instead of doing FAIL for scalar floating point move.
11927 2020-05-11 Alex Coplan <alex.coplan@arm.com>
11929 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Add case
11930 to correctly calculate cost for new pattern (*csinv3_uxtw_insn3).
11931 * config/aarch64/aarch64.md (*csinv3_utxw_insn1): New.
11932 (*csinv3_uxtw_insn2): New.
11933 (*csinv3_uxtw_insn3): New.
11934 * config/aarch64/iterators.md (neg_not_cs): New.
11936 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
11939 * config/i386/mmx.md (mmx_addv2sf3): Use "v" constraint
11940 instead of "Yv" for AVX alternatives. Add "prefix" attribute.
11941 (*mmx_addv2sf3): Ditto.
11942 (*mmx_subv2sf3): Ditto.
11943 (*mmx_mulv2sf3): Ditto.
11944 (*mmx_<code>v2sf3): Ditto.
11945 (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
11947 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
11950 * config/i386/i386.c (ix86_vector_mode_supported_p):
11951 Vectorize 3dNOW! vector modes for TARGET_MMX_WITH_SSE.
11952 * config/i386/mmx.md (*mov<mode>_internal): Do not set
11953 mode of alternative 13 to V2SF for TARGET_MMX_WITH_SSE.
11955 (mmx_addv2sf3): Change operand predicates from
11956 nonimmediate_operand to register_mmxmem_operand.
11957 (addv2sf3): New expander.
11958 (*mmx_addv2sf3): Add SSE/AVX alternatives. Change operand
11959 predicates from nonimmediate_operand to register_mmxmem_operand.
11960 Enable instruction pattern for TARGET_MMX_WITH_SSE.
11962 (mmx_subv2sf3): Change operand predicate from
11963 nonimmediate_operand to register_mmxmem_operand.
11964 (mmx_subrv2sf3): Ditto.
11965 (subv2sf3): New expander.
11966 (*mmx_subv2sf3): Add SSE/AVX alternatives. Change operand
11967 predicates from nonimmediate_operand to register_mmxmem_operand.
11968 Enable instruction pattern for TARGET_MMX_WITH_SSE.
11970 (mmx_mulv2sf3): Change operand predicates from
11971 nonimmediate_operand to register_mmxmem_operand.
11972 (mulv2sf3): New expander.
11973 (*mmx_mulv2sf3): Add SSE/AVX alternatives. Change operand
11974 predicates from nonimmediate_operand to register_mmxmem_operand.
11975 Enable instruction pattern for TARGET_MMX_WITH_SSE.
11977 (mmx_<code>v2sf3): Change operand predicates from
11978 nonimmediate_operand to register_mmxmem_operand.
11979 (<code>v2sf3): New expander.
11980 (*mmx_<code>v2sf3): Add SSE/AVX alternatives. Change operand
11981 predicates from nonimmediate_operand to register_mmxmem_operand.
11982 Enable instruction pattern for TARGET_MMX_WITH_SSE.
11983 (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
11985 2020-05-11 Martin Liska <mliska@suse.cz>
11988 * common.opt: Fix typo in option description.
11990 2020-05-11 Martin Liska <mliska@suse.cz>
11992 PR gcov-profile/94928
11993 * gcov-io.h: Add caveat about coverage format parsing and
11994 possible outdated documentation.
11996 2020-05-11 Xiong Hu Luo <luoxhu@linux.ibm.com>
11998 PR tree-optimization/83403
11999 * tree-affine.c (expr_to_aff_combination): Replace SSA_NAME with
12000 determine_value_range, Add fold conversion of MULT_EXPR, fix the
12001 previous PLUS_EXPR.
12003 2020-05-10 Gerald Pfeifer <gerald@pfeifer.com>
12005 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and
12006 __ILP32__ for 32-bit targets.
12008 2020-05-09 Eric Botcazou <ebotcazou@adacore.com>
12010 * tree.h (expr_align): Delete.
12011 * tree.c (expr_align): Likewise.
12013 2020-05-09 Hans-Peter Nilsson <hp@axis.com>
12015 * resource.c (init_resource_info): Filter-out TARGET_FLAGS_REGNUM
12016 from end_of_function_needs.
12018 * config.gcc: Remove support for crisv32-*-* and cris-*-linux*.
12019 * config/cris/t-linux, config/cris/linux.h, config/cris/linux.opt:
12021 * config/cris/t-elfmulti: Remove crisv32 multilib.
12022 * config/cris: Remove shared-library and CRIS v32 support.
12024 Move trivially from cc0 to reg:CC model, removing most optimizations.
12025 * config/cris/cris.md: Remove all side-effect patterns and their
12026 splitters. Remove most peepholes. Add clobbers of CRIS_CC0_REGNUM
12027 to all but post-reload control-flow and movem insns. Remove
12028 constraints on all modified expanders. Remove obsoleted cc0-related
12030 (attr "cc"): Remove alternative "rev".
12031 (mode_iterator BWDD, DI_, SI_): New.
12032 (mode_attr sCC_destc, cmp_op1c, cmp_op2c): New.
12033 ("tst<mode>"): Remove; fold as "M" alternative into compare insn.
12034 ("mstep_shift", "mstep_mul"): Remove patterns.
12035 ("s<rcond>", "s<ocond>", "s<ncond>"): Anonymize.
12036 * config/cris/cris.c: Change all non-condition-code,
12037 non-control-flow emitted insns to add a parallel with clobber of
12038 CRIS_CC0_REGNUM, mostly by changing from gen_rtx_SET with
12039 emit_insn to use of emit_move_insn, gen_add2_insn or
12040 cris_emit_insn, as convenient.
12041 (cris_reg_overlap_mentioned_p)
12042 (cris_normal_notice_update_cc, cris_notice_update_cc): Remove.
12043 (cris_movem_load_rest_p): Don't assume all elements in a
12045 (cris_store_multiple_op_p): Ditto.
12046 (cris_emit_insn): New function.
12047 * cris/cris-protos.h (cris_emit_insn): Declare.
12050 * config/cris/cris.md (zcond): New code_iterator.
12051 ("*cbranch<mode>4_btstq<CC>"): New insn_and_split.
12053 * config/cris/cris.c (TARGET_FLAGS_REGNUM): Define.
12055 * config/cris/cris.h (REVERSIBLE_CC_MODE): Define to true.
12057 * config/cris/cris.md ("movsi"): For memory destination
12058 post-reload, generate clobberless variant. Similarly for a
12059 zero-source post-reload.
12060 ("*mov_tomem<mode>_split"): New split.
12061 ("*mov_tomem<mode>"): New insn.
12062 ("enabled", mov_tomem_enabled): Define and use to exclude "x" ->
12063 "Q>m" for less-than-SImode.
12064 ("*mov_fromzero<mode>_split"): New split.
12065 ("*mov_fromzero<mode>"): New insn.
12067 Prepare for cmpelim pass to eliminate redundant compare insns.
12068 * config/cris/cris-modes.def: New file.
12069 * config/cris/cris-protos.h (cris_select_cc_mode): Declare.
12070 (cris_notice_update_cc): Remove left-over declaration.
12071 * config/cris/cris.c (TARGET_CC_MODES_COMPATIBLE): Define.
12072 (cris_select_cc_mode, cris_cc_modes_compatible): New functions.
12073 * config/cris/cris.h (SELECT_CC_MODE): Define.
12074 * config/cris/cris.md (NZSET, NZUSE, NZVCSET, NZVCUSE): New
12076 (cond): New code_iterator.
12077 (nzcond): Replacement for incorrect ncond. All callers changed.
12078 (nzvccond): Replacement for ocond. All callers changed.
12079 (rnzcond): Replacement for rcond. All callers changed.
12080 (xCC): New code_attr.
12081 (cmp_op1c, cmp_op0c): Renumber from cmp_op1c and cmp_op2c. All
12083 ("*cmpdi<NZVCSET:mode>"): Rename from "*cmpdi". Replace
12084 CCmode with iteration over NZVCSET.
12085 ("*cmp_ext<BW:mode><NZVCSET:mode>"): Similarly; rename from
12087 ("*cmpsi<NZVCSET:mode>"): Similarly, from "*cmpsi".
12088 ("*cmp<BW:mode><NZVCSET:mode>"): Similarly from "*cmp<mode>".
12089 ("*btst<mode>"): Similarly, from "*btst".
12090 ("*cbranch<mode><code>4"): Rename from "*cbranch<mode>4",
12091 iterating over cond instead of matching the comparison with
12092 ordered_comparison_operator.
12093 ("*cbranch<mode>4_btstq<CC>"): Correct label operand number.
12094 ("b<zcond:code><mode>"): Rename from "b<ncond:code>", iterating
12096 ("b<nzvccond:code><mode>"): Similarly from "b<ocond:code>", over
12097 NZVCUSE. Remove FIXME.
12098 ("*b<nzcond:code>_reversed<mode>"): Similarly from
12099 "*b<ncond:code>_reversed", over NZUSE.
12100 ("*b<nzvccond:code>_reversed<mode>"): Similarly from
12101 "*b<ocond:code>_reversed", over NZVCUSE. Remove FIXME.
12102 ("b<rnzcond:code><mode>"): Similarly from "b<rcond:code>",
12103 over NZUSE. Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
12104 depending on CC_NZmode vs. CCmode. Remove FIXME.
12105 ("*b<rnzcond:code>_reversed<mode>"): Similarly from
12106 "*b<rcond:code>_reversed", over NZUSE.
12107 ("*cstore<mode><code>4"): Rename from "*cstore<mode>4",
12108 iterating over cond instead of matching the comparison with
12109 ordered_comparison_operator.
12110 ("*s<nzcond:code><mode>"): Rename from "*s<ncond:code>",
12111 iterating over NZUSE.
12112 ("*s<rnzcond:code><mode>"): Similar from "*s<rcond:code>", over
12113 NZUSE. Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
12114 depending on CC_NZmode vs. CCmode.
12115 ("*s<nzvccond:code><mode>"): Simlar from "*s<ocond:code>", over
12116 NZVCUSE. Remove FIXME.
12117 ("cc"): Comment on new use.
12118 ("cc_enabled"): New attribute.
12119 ("enabled"): Make default fall back to cc_enabled.
12120 ("setnz", "ccnz", "setnzvc", "ccnzvc", "setcc", "cccc"): New
12121 default_subst_attrs.
12122 ("setnz_subst", "setnzvc_subst", "setcc_subst"): New default_subst.
12123 ("*movsi_internal<setcc><setnz><setnzvc>"): Rename from
12124 "*movsi_internal". Correct contents of, and rename attribute
12125 "cc" to "cc<cccc><ccnz><ccnzvc>".
12126 ("anz", "anzvc", "acc"): New define_subst_attrs.
12127 ("<acc><anz><anzvc>movhi<setcc><setnz><setnzvc>"): Rename from
12128 "movhi". Rename "cc" attribute to "cc<cccc><ccnz><ccnzvc>".
12129 ("<acc><anz><anzvc>movqi<setcc><setnz><setnzvc>"): Similar from
12130 "movqi". Correct contents of, and rename "cc" attribute to
12131 "cc<cccc><ccnz><ccnzvc>".
12132 ("*b<zcond:code><mode>"): Rename from "b<zcond:code><mode>".
12133 ("*b<nzvccond:code><mode>"): Rename from "b<nzvccond:code><mode>".
12134 ("*b<rnzcond:code><mode>"): Rename from "*b<rnzcond:code><mode>".
12135 ("<acc><anz><anzvc>extend<mode>si2<setcc><setnz><setnzvc>"):
12136 Rename from "extend<mode>si2".
12137 ("<acc><anz><anzvc>zero_extend<mode>si2<setcc><setnz><setnzvc>"):
12138 Similar, from "zero_extend<mode>si2".
12139 ("*adddi3<setnz>"): Rename from "*adddi3".
12140 ("*subdi3<setnz>"): Similarly from "*subdi3".
12141 ("*addsi3<setnz>"): Similarly from "*addsi3".
12142 ("*subsi3<setnz>"): Similarly from "*subsi3".
12143 ("*addhi3<setnz>"): Similarly from "*addhi3" and decorate the
12144 "cc" attribute to "cc<ccnz>".
12145 ("*addqi3<setnz>"): Similarly from "*addqi3".
12146 ("*sub<mode>3<setnz>"): Similarly from "*sub<mode>3".
12147 ("*expanded_andsi<setcc><setnz><setnzvc>"): Rename from
12149 ("*iorsi3<setcc><setnz><setnzvc>"): Similar from "*iorsi3".
12150 Decorate "cc" attribute to make "cc<cccc><ccnz><ccnzvc>".
12151 ("*iorhi3<setcc><setnz><setnzvc>"): Similar from "*iorhi3".
12152 ("*iorqi3<setcc><setnz><setnzvc>"): Similar from "*iorqi3".
12153 ("*expanded_andhi<setcc><setnz><setnzvc>"): Similar from
12154 "*expanded_andhi". Add quick cc-setting alternative for 0..31.
12155 ("*andqi3<setcc><setnz><setnzvc>"): Similar from "*andqi3".
12156 ("<acc><anz><anzvc>xorsi3<setcc><setnz><setnzvc>"): Rename
12158 ("<acc><anz><anzvc>one_cmplsi2<setcc><setnz><setnzvc>"): Rename
12159 from "one_cmplsi2".
12160 ("<acc><anz><anzvc><shlr>si3<setcc><setnz><setnzvc>"): Rename
12162 ("<acc><anz><anzvc>clzsi2<setcc><setnz><setnzvc>"): Rename
12164 ("<acc><anz><anzvc>bswapsi2<setcc><setnz><setnzvc>"): Rename
12166 ("*uminsi3<setcc><setnz><setnzvc>"): Rename from "*uminsi3".
12168 * config/cris/cris-modes.def (CC_ZnN): New CC_MODE.
12169 * config/cris/cris.c (cris_rtx_costs): Handle pre-split bit-test
12170 * config/cris/cris.md (ZnNNZSET, ZnNNZUSE): New mode_iterators.
12171 (znnCC, rznnCC): New code_attrs.
12172 ("*btst<mode>"): Iterator over ZnNNZSET instead of NZVCSET. Remove
12173 obseolete comment. Add belt-and-suspenders mode-test to condition.
12174 Add fixme regarding remaining matched-but-not-generated case.
12175 ("*cbranch<mode>4_btstrq1_<CC>"): New insn_and_split.
12176 ("*cbranch<mode>4_btstqb0_<CC>"): Rename from
12177 "*cbranch<mode>4_btstq<CC>". Split to CC_NZ instead of CC.
12178 ("*b<zcond:code><mode>"): Iterate over ZnNNZUSE instead of NZUSE.
12179 Handle output of CC_ZnNmode.
12180 ("*b<nzcond:code>_reversed<mode>"): Ditto.
12182 * config/cris/cris.c (cris_select_cc_mode): Return CC_NZmode for
12183 NEG too. Correct comment.
12184 * config/cris/cris.md ("<anz>neg<mode>2<setnz>"): Rename from
12187 2020-05-08 Vladimir Makarov <vmakarov@redhat.com>
12189 * ira-color.c (update_costs_from_allocno): Remove
12190 conflict_cost_update_p argument. Propagate costs only along
12191 threads. Always do conflict cost update. Add printing debugging
12193 (update_costs_from_copies): Add printing debugging info.
12194 (restore_costs_from_copies): Ditto.
12195 (assign_hard_reg): Improve debug info.
12196 (push_only_colorable): Ditto. Call update_costs_from_prefs.
12197 (color_allocnos): Remove update_costs_from_prefs.
12199 2020-05-08 Richard Biener <rguenther@suse.de>
12201 * tree-vectorizer.h (vec_info::slp_loads): New.
12202 (vect_optimize_slp): Declare.
12203 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
12204 nothing when there are no loads.
12205 (vect_gather_slp_loads): Gather loads into a vector.
12206 (vect_supported_load_permutation_p): Remove.
12207 (vect_analyze_slp_instance): Do not verify permutation
12209 (vect_analyze_slp): Optimize permutations of reductions
12210 after all SLP instances have been gathered and gather
12212 (vect_optimize_slp): New function split out from
12213 vect_supported_load_permutation_p. Elide some permutations.
12214 (vect_slp_analyze_bb_1): Call vect_optimize_slp.
12215 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
12216 * tree-vect-stmts.c (vectorizable_load): Check whether
12217 the load can be permuted. When generating code assert we can.
12219 2020-05-08 Richard Biener <rguenther@suse.de>
12221 * tree-ssa-sccvn.c (rpo_avail): Change type to
12222 eliminate_dom_walker *.
12223 (eliminate_with_rpo_vn): Adjust rpo_avail to make vn_valueize
12224 use the DOM walker availability.
12225 (vn_reference_fold_indirect): Use get_addr_base_and_unit_offset_1
12226 with vn_valueize as valueization callback.
12227 (vn_reference_maybe_forwprop_address): Likewise.
12228 * tree-dfa.c (get_addr_base_and_unit_offset_1): Also valueize
12229 array_ref_low_bound.
12231 2020-05-08 Jakub Jelinek <jakub@redhat.com>
12233 PR tree-optimization/94786
12234 * match.pd (A ^ ((A ^ B) & -(C cmp D)) -> (C cmp D) ? B : A): New
12238 * config/i386/i386.md (peephole2 after *add<mode>3_cc_overflow_1): New
12241 PR middle-end/94724
12242 * tree.c (get_narrower): Reuse the op temporary instead of
12245 PR tree-optimization/94783
12246 * match.pd ((X + (X >> (prec - 1))) ^ (X >> (prec - 1)) to abs (X)):
12247 New simplification.
12249 PR tree-optimization/94956
12250 * match.pd (FFS): Optimize __builtin_ffs* of non-zero argument into
12251 __builtin_ctz* + 1 if direct IFN_CTZ is supported.
12253 PR tree-optimization/94913
12254 * match.pd (A - B + -1 >= A to B >= A): New simplification.
12255 (A - B > A to A < B): Don't test TYPE_OVERFLOW_WRAPS which is always
12256 true for TYPE_UNSIGNED integral types.
12259 PR rtl-optimization/94516
12260 * rtl.h (remove_reg_equal_equiv_notes): Add a bool argument defaulted
12262 * rtlanal.c (remove_reg_equal_equiv_notes): Add no_rescan argument.
12263 Call df_notes_rescan if that argument is not true and returning true.
12264 * combine.c (adjust_for_new_dest): Pass true as second argument to
12265 remove_reg_equal_equiv_notes.
12266 * postreload.c (reload_combine_recognize_pattern): Don't call
12269 2020-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12271 * config/rs6000/rs6000.md (*setnbc_<un>signed_<GPR:mode>): New
12273 (*setnbcr_<un>signed_<GPR:mode>): New define_insn.
12274 (*neg_eq_<mode>): Avoid for TARGET_FUTURE; add missing && 1.
12275 (*neg_ne_<mode>): Likewise.
12277 2020-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12279 * config/rs6000/rs6000.md (setbc_<un>signed_<GPR:mode>): New
12281 (*setbcr_<un>signed_<GPR:mode>): Likewise.
12282 (cstore<mode>4): Use setbc[r] if available.
12283 (<code><GPR:mode><GPR2:mode>2_isel): Avoid for TARGET_FUTURE.
12284 (eq<mode>3): Use setbc for TARGET_FUTURE.
12285 (*eq<mode>3): Avoid for TARGET_FUTURE.
12286 (ne<mode>3): Replace :P with :GPR; use setbc for TARGET_FUTURE;
12287 else for non-Pmode, use gen_eq and gen_xor.
12288 (*ne<mode>3): Avoid for TARGET_FUTURE.
12289 (*eqsi3_ext<mode>): Avoid for TARGET_FUTURE; fix missing && 1.
12291 2020-05-07 Jeff Law <law@redhat.com>
12293 * config/h8300/h8300.md: Move expanders and patterns into
12294 files based on functionality.
12295 * config/h8300/addsub.md: New file.
12296 * config/h8300/bitfield.md: New file
12297 * config/h8300/combiner.md: New file
12298 * config/h8300/divmod.md: New file
12299 * config/h8300/extensions.md: New file
12300 * config/h8300/jumpcall.md: New file
12301 * config/h8300/logical.md: New file
12302 * config/h8300/movepush.md: New file
12303 * config/h8300/multiply.md: New file
12304 * config/h8300/other.md: New file
12305 * config/h8300/proepi.md: New file
12306 * config/h8300/shiftrotate.md: New file
12307 * config/h8300/testcompare.md: New file
12309 * config/h8300/h8300.md (adds/subs splitters): Merge into single
12311 (negation expanders and patterns): Simplify and combine using
12313 (one_cmpl expanders and patterns): Likewise.
12314 (tablejump, indirect_jump patterns ): Likewise.
12315 (shift and rotate expanders and patterns): Likewise.
12316 (absolute value expander and pattern): Drop expander, rename pattern
12318 (peephole2 patterns): Move into...
12319 * config/h8300/peepholes.md: New file.
12321 * config/h8300/constraints.md (L and N): Simplify now that we're not
12322 longer supporting the original H8/300 chip.
12323 * config/h8300/elf.h (LINK_SPEC): Likewise. Default to H8/300H.
12324 * config/h8300/h8300.c (shift_alg_qi): Drop H8/300 support.
12325 (shift_alg_hi, shift_alg_si): Similarly.
12326 (h8300_option_overrides): Similarly. Default to H8/300H. If
12327 compiling for H8/S, then turn off H8/300H. Do not update the
12328 shift_alg tables for H8/300 port.
12329 (h8300_emit_stack_adjustment): Remove support for H8/300. Simplify
12331 (push, split_adds_subs, h8300_rtx_costs): Likewise.
12332 (h8300_print_operand, compute_mov_length): Likewise.
12333 (output_plussi, compute_plussi_length): Likewise.
12334 (compute_plussi_cc, output_logical_op): Likewise.
12335 (compute_logical_op_length, compute_logical_op_cc): Likewise.
12336 (get_shift_alg, h8300_shift_needs_scratch): Likewise.
12337 (output_a_shift, compute_a_shift_length): Likewise.
12338 (output_a_rotate, compute_a_rotate_length): Likewise.
12339 (output_simode_bld, h8300_hard_regno_mode_ok): Likewise.
12340 (h8300_modes_tieable_p, h8300_return_in_memory): Likewise.
12341 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
12342 (attr_cpu, TARGET_H8300): Remove.
12343 (TARGET_DEFAULT): Update.
12344 (UNITS_PER_WORD, PARM_BOUNDARY): Simplify where possible.
12345 (BIGGEST_ALIGNMENT, STACK_BOUNDARY): Likewise.
12346 (CONSTANT_ADDRESS_P, MOVE_MAX, Pmode): Likewise.
12347 (SIZE_TYPE, POINTER_SIZE, ASM_WORD_OP): Likewise.
12348 * config/h8300/h8300.md: Simplify patterns throughout.
12349 * config/h8300/t-h8300: Update multilib configuration.
12351 * config/h8300/h8300.h (LINK_SPEC): Remove.
12352 (USER_LABEL_PREFIX): Likewise.
12354 * config/h8300/h8300.c (h8300_asm_named_section): Remove.
12355 (h8300_option_override): Remove remnants of COFF support.
12357 2020-05-07 Alan Modra <amodra@gmail.com>
12359 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Replace
12360 set_rtx_cost with set_src_cost.
12361 * tree-switch-conversion.c (bit_test_cluster::emit): Likewise.
12363 2020-05-07 Kewen Lin <linkw@gcc.gnu.org>
12365 * tree-vect-stmts.c (vectorizable_load): Check alignment to avoid
12366 redundant half vector handlings for no peeling gaps.
12368 2020-05-07 Giuliano Belinassi <giuliano.belinassi@usp.br>
12370 * tree-ssa-operands.c (operands_scanner): New class.
12371 (operands_bitmap_obstack): Remove.
12372 (n_initialized): Remove.
12373 (build_uses): Move to operands_scanner class.
12374 (build_vuse): Same as above.
12375 (build_vdef): Same as above.
12376 (verify_ssa_operands): Same as above.
12377 (finalize_ssa_uses): Same as above.
12378 (cleanup_build_arrays): Same as above.
12379 (finalize_ssa_stmt_operands): Same as above.
12380 (start_ssa_stmt_operands): Same as above.
12381 (append_use): Same as above.
12382 (append_vdef): Same as above.
12383 (add_virtual_operand): Same as above.
12384 (add_stmt_operand): Same as above.
12385 (get_mem_ref_operands): Same as above.
12386 (get_tmr_operands): Same as above.
12387 (maybe_add_call_vops): Same as above.
12388 (get_asm_stmt_operands): Same as above.
12389 (get_expr_operands): Same as above.
12390 (parse_ssa_operands): Same as above.
12391 (finalize_ssa_defs): Same as above.
12392 (build_ssa_operands): Same as above, plus create a C-like wrapper.
12393 (update_stmt_operands): Create an instance of operands_scanner.
12395 2020-05-07 Richard Biener <rguenther@suse.de>
12398 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Use
12399 DECL_EXTERNAL || TREE_PUBLIC instead of externally_visible.
12400 (refered_from_nonlocal_var): Likewise.
12401 (ipa_pta_execute): Likewise.
12403 2020-05-07 Erick Ochoa <erick.ochoa@theobroma-systems.com>
12405 * gcc/tree-ssa-struct-alias.c: Fix comments
12407 2020-05-07 Martin Liska <mliska@suse.cz>
12409 * doc/invoke.texi: Fix 2 optindex entries.
12411 2020-05-07 Richard Biener <rguenther@suse.de>
12413 PR middle-end/94703
12414 * tree-core.h (tree_decl_common::gimple_reg_flag): Rename ...
12415 (tree_decl_common::not_gimple_reg_flag): ... to this.
12416 * tree.h (DECL_GIMPLE_REG_P): Rename ...
12417 (DECL_NOT_GIMPLE_REG_P): ... to this.
12418 * gimple-expr.c (copy_var_decl): Copy DECL_NOT_GIMPLE_REG_P.
12419 (create_tmp_reg): Simplify.
12420 (create_tmp_reg_fn): Likewise.
12421 (is_gimple_reg): Check DECL_NOT_GIMPLE_REG_P for all regs.
12422 * gimplify.c (create_tmp_from_val): Simplify.
12423 (gimplify_bind_expr): Likewise.
12424 (gimplify_compound_literal_expr): Likewise.
12425 (gimplify_function_tree): Likewise.
12426 (prepare_gimple_addressable): Set DECL_NOT_GIMPLE_REG_P.
12427 * asan.c (create_odr_indicator): Do not clear DECL_GIMPLE_REG_P.
12428 (asan_add_global): Copy it.
12429 * cgraphunit.c (cgraph_node::expand_thunk): Force args
12431 * function.c (gimplify_parameters): Copy
12432 DECL_NOT_GIMPLE_REG_P.
12433 * ipa-param-manipulation.c
12434 (ipa_param_body_adjustments::common_initialization): Simplify.
12435 (ipa_param_body_adjustments::reset_debug_stmts): Copy
12436 DECL_NOT_GIMPLE_REG_P.
12437 * omp-low.c (lower_omp_for_scan): Do not set DECL_GIMPLE_REG_P.
12438 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
12439 * tree-cfg.c (make_blocks_1): Simplify.
12440 (verify_address): Do not verify DECL_GIMPLE_REG_P setting.
12441 * tree-eh.c (lower_eh_constructs_2): Simplify.
12442 * tree-inline.c (declare_return_variable): Adjust and
12444 (copy_decl_to_var): Copy DECL_NOT_GIMPLE_REG_P.
12445 (copy_result_decl_to_var): Likewise.
12446 * tree-into-ssa.c (pass_build_ssa::execute): Adjust comment.
12447 * tree-nested.c (create_tmp_var_for): Simplify.
12448 * tree-parloops.c (separate_decls_in_region_name): Copy
12449 DECL_NOT_GIMPLE_REG_P.
12450 * tree-sra.c (create_access_replacement): Adjust and
12451 generalize partial def support.
12452 * tree-ssa-forwprop.c (pass_forwprop::execute): Set
12453 DECL_NOT_GIMPLE_REG_P on decls we introduce partial defs on.
12454 * tree-ssa.c (maybe_optimize_var): Handle clearing of
12455 TREE_ADDRESSABLE and setting/clearing DECL_NOT_GIMPLE_REG_P
12457 * lto-streamer-out.c (hash_tree): Hash DECL_NOT_GIMPLE_REG_P.
12458 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream
12459 DECL_NOT_GIMPLE_REG_P.
12460 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
12461 * cfgexpand.c (avoid_type_punning_on_regs): New.
12462 (discover_nonconstant_array_refs): Call
12463 avoid_type_punning_on_regs to avoid unsupported mode punning.
12465 2020-05-07 Alex Coplan <alex.coplan@arm.com>
12467 * config/arm/arm.c (arm_add_stmt_cost): Fix declaration, remove class
12470 2020-05-07 Richard Biener <rguenther@suse.de>
12472 PR tree-optimization/57359
12473 * tree-ssa-loop-im.c (im_mem_ref::indep_loop): Remove.
12474 (in_mem_ref::dep_loop): Repurpose.
12475 (LOOP_DEP_BIT): Remove.
12476 (enum dep_kind): New.
12477 (enum dep_state): Likewise.
12478 (record_loop_dependence): New function to populate the
12480 (query_loop_dependence): New function to query the dependence
12482 (memory_accesses::refs_in_loop): Rename to ...
12483 (memory_accesses::refs_loaded_in_loop): ... this and change to
12485 (outermost_indep_loop): Adjust.
12486 (mem_ref_alloc): Likewise.
12487 (gather_mem_refs_stmt): Likewise.
12488 (mem_refs_may_alias_p): Add tbaa_p parameter and pass it down.
12489 (struct sm_aux): New.
12490 (execute_sm): Split code generation on exits, record state
12492 (enum sm_kind): New.
12493 (execute_sm_exit): Exit code generation part.
12494 (sm_seq_push_down): Helper for sm_seq_valid_bb performing
12495 dependence checking on stores reached from exits.
12496 (sm_seq_valid_bb): New function gathering SM stores on exits.
12497 (hoist_memory_references): Re-implement.
12498 (refs_independent_p): Add tbaa_p parameter and pass it down.
12499 (record_dep_loop): Remove.
12500 (ref_indep_loop_p_1): Fold into ...
12501 (ref_indep_loop_p): ... this and generalize for three kinds
12502 of dependence queries.
12503 (can_sm_ref_p): Adjust according to hoist_memory_references
12505 (store_motion_loop): Don't do anything if the set of SM
12506 candidates is empty.
12507 (tree_ssa_lim_initialize): Adjust.
12508 (tree_ssa_lim_finalize): Likewise.
12510 2020-05-07 Eric Botcazou <ebotcazou@adacore.com>
12511 Pierre-Marie de Rodat <derodat@adacore.com>
12513 * dwarf2out.c (add_data_member_location_attribute): Take into account
12514 the variant part offset in the computation of the data bit offset.
12515 (add_bit_offset_attribute): Remove CTX parameter. Pass a new context
12516 in the call to field_byte_offset.
12517 (gen_field_die): Adjust call to add_bit_offset_attribute and remove
12518 confusing assertion.
12519 (analyze_variant_discr): Deal with boolean subtypes.
12521 2020-05-07 Martin Liska <mliska@suse.cz>
12523 * lto-wrapper.c: Split arguments of MAKE environment
12526 2020-05-07 Uroš Bizjak <ubizjak@gmail.com>
12528 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
12529 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
12530 fenv_var and new_fenv_var.
12532 2020-05-06 Jakub Jelinek <jakub@redhat.com>
12535 * config/i386/subst.md (store_mask_constraint, store_mask_predicate):
12537 (avx512dq_vextract<shuffletype>64x2_1_maskm,
12538 avx512f_vextract<shuffletype>32x4_1_maskm,
12539 vec_extract_lo_<mode>_maskm, vec_extract_hi_<mode>_maskm): Remove.
12540 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>): Split
12542 (*avx512dq_vextract<shuffletype>64x2_1,
12543 avx512dq_vextract<shuffletype>64x2_1_mask): ... these new
12544 define_insns. Even in the masked variant allow memory output but in
12545 that case use 0 rather than 0C constraint on the source of masked-out
12547 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Split
12549 (*avx512f_vextract<shuffletype>32x4_1,
12550 avx512f_vextract<shuffletype>32x4_1_mask): ... these new define_insns.
12551 Even in the masked variant allow memory output but in that case use
12552 0 rather than 0C constraint on the source of masked-out elts.
12553 (vec_extract_lo_<mode><mask_name>): Split into ...
12554 (vec_extract_lo_<mode>, vec_extract_lo_<mode>_mask): ... these new
12555 define_insns. Even in the masked variant allow memory output but in
12556 that case use 0 rather than 0C constraint on the source of masked-out
12558 (vec_extract_hi_<mode><mask_name>): Split into ...
12559 (vec_extract_hi_<mode>, vec_extract_hi_<mode>_mask): ... these new
12560 define_insns. Even in the masked variant allow memory output but in
12561 that case use 0 rather than 0C constraint on the source of masked-out
12564 2020-05-06 qing zhao <qing.zhao@oracle.com>
12567 * common.opt: Add -flarge-source-files.
12568 * doc/invoke.texi: Document it.
12569 * toplev.c (process_options): set line_table->default_range_bits
12570 to 0 when flag_large_source_files is true.
12572 2020-05-06 Uroš Bizjak <ubizjak@gmail.com>
12575 * config/i386/predicates.md (add_comparison_operator): New predicate.
12576 * config/i386/i386.md (compare->add splitter): New splitters.
12578 2020-05-06 Richard Biener <rguenther@suse.de>
12580 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
12581 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
12582 Remove slp_instance parameter, just iterate over all scalar stmts.
12583 (vect_slp_analyze_instance_dependence): Adjust and likewise.
12584 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Remove unused BB
12586 (vect_schedule_slp): Just iterate over all scalar stmts.
12587 (vect_supported_load_permutation_p): Adjust.
12588 (vect_transform_slp_perm_load): Remove slp_instance parameter,
12589 instead use the number of lanes in the node as group size.
12590 * tree-vect-stmts.c (vect_model_load_cost): Get vectorization
12591 factor instead of slp_instance as parameter.
12592 (vectorizable_load): Adjust.
12594 2020-05-06 Andreas Schwab <schwab@suse.de>
12596 * config/aarch64/driver-aarch64.c: Include "aarch64-protos.h".
12597 (aarch64_get_extension_string_for_isa_flags): Don't declare.
12599 2020-05-06 Richard Biener <rguenther@suse.de>
12601 PR middle-end/94964
12602 * cfgloopmanip.c (create_preheader): Require non-complex
12603 preheader edge for CP_SIMPLE_PREHEADERS.
12605 2020-05-06 Richard Biener <rguenther@suse.de>
12607 PR tree-optimization/94963
12608 * tree-ssa-loop-im.c (execute_sm_if_changed): Remove
12609 no-warning marking of the conditional store.
12610 (execute_sm): Instead mark the uninitialized state
12611 on loop entry to be not warned about.
12613 2020-05-06 Hongtao Liu <hongtao.liu@intel.com>
12615 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_TSXLDTRK_SET,
12616 OPTION_MASK_ISA2_TSXLDTRK_UNSET): New macros.
12617 * config.gcc: Add tsxldtrkintrin.h to extra_headers.
12618 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12620 * config/i386/i386-builtin.def: Add new builtins.
12621 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12623 * config/i386/i386-options.c (ix86_target_string): Add
12625 (ix86_valid_target_attribute_inner_p): Add attribute tsxldtrk.
12626 * config/i386/i386.h (TARGET_TSXLDTRK, TARGET_TSXLDTRK_P):
12628 * config/i386/i386.md (define_c_enum "unspec"): Add
12629 UNSPECV_SUSLDTRK, UNSPECV_RESLDTRK.
12630 (TSXLDTRK): New define_int_iterator.
12631 ("<tsxldtrk>"): New define_insn.
12632 * config/i386/i386.opt: Add -mtsxldtrk.
12633 * config/i386/immintrin.h: Include tsxldtrkintrin.h.
12634 * config/i386/tsxldtrkintrin.h: New.
12635 * doc/invoke.texi: Document -mtsxldtrk.
12637 2020-05-06 Jakub Jelinek <jakub@redhat.com>
12639 PR tree-optimization/94921
12640 * match.pd (~(~X - Y) -> X + Y, ~(~X + Y) -> X - Y): New
12643 2020-05-06 Richard Biener <rguenther@suse.de>
12645 PR tree-optimization/94965
12646 * tree-vect-stmts.c (vectorizable_load): Fix typo.
12648 2020-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12650 * doc/install.texi: Replace Sun with Solaris as appropriate.
12651 (Tools/packages necessary for building GCC, Perl version between
12652 5.6.1 and 5.6.24): Remove Solaris 8 reference.
12653 (Installing GCC: Binaries, Solaris 2 (SPARC, Intel)): Remove
12655 (Specific, i?86-*-solaris2*): Update version references for
12656 Solaris 11.3 and later. Remove gas 2.26 caveat.
12657 (Specific, *-*-solaris2*): Update version references for
12658 Solaris 11.3 and later. Remove boehm-gc reference.
12659 Document GMP, MPFR caveats on Solaris 11.3.
12660 (Specific, sparc-sun-solaris2*): Update Solaris 9 references.
12661 (Specific, sparc64-*-solaris2*): Likewise.
12662 Document --build requirement.
12664 2020-05-06 Jakub Jelinek <jakub@redhat.com>
12667 * config/riscv/riscv-builtins.c (riscv_atomic_assign_expand_fenv): Use
12668 TARGET_EXPR instead of MODIFY_EXPR for first assignment to old_flags.
12670 PR rtl-optimization/94873
12671 * combine.c (combine_instructions): Don't optimize using REG_EQUAL
12672 note if SET_SRC (set) has side-effects.
12674 2020-05-06 Hongtao Liu <hongtao.liu@intel.com>
12675 Wei Xiao <wei3.xiao@intel.com>
12677 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_SERIALIZE_SET,
12678 OPTION_MASK_ISA2_SERIALIZE_UNSET): New macros.
12679 (ix86_handle_option): Handle -mserialize.
12680 * config.gcc (serializeintrin.h): New header file.
12681 * config/i386/cpuid.h (bit_SERIALIZE): New bit.
12682 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12684 * config/i386/i386-builtin.def: Add new builtin.
12685 * config/i386/i386-c.c (__SERIALIZE__): New macro.
12686 * config/i386/i386-options.c (ix86_target_opts_isa2_opts):
12688 * (ix86_valid_target_attribute_inner_p): Add target attribute
12690 * config/i386/i386.h (TARGET_SERIALIZE, TARGET_SERIALIZE_P):
12692 * config/i386/i386.md (UNSPECV_SERIALIZE): New unspec.
12693 (serialize): New define_insn.
12694 * config/i386/i386.opt (mserialize): New option
12695 * config/i386/immintrin.h: Include serailizeintrin.h.
12696 * config/i386/serializeintrin.h: New header file.
12697 * doc/invoke.texi: Add documents for -mserialize.
12699 2020-05-06 Richard Biener <rguenther@suse.de>
12701 * tree-cfg.c (verify_gimple_assign_unary): Adjust integer
12702 to/from pointer conversion checking.
12704 2020-05-05 Michael Meissner <meissner@linux.ibm.com>
12706 * config/rs6000/rs6000-builtin.def: Delete changes meant for a
12708 * config/rs6000/rs6000-c.c: Likewise.
12709 * config/rs6000/rs6000-call.c: Likewise.
12710 * config/rs6000/rs6000.c: Likewise.
12712 2020-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
12714 * config/rtems.h (RTEMS_STARTFILE_SPEC): Define if undefined.
12715 (RTEMS_ENDFILE_SPEC): Likewise.
12716 (STARTFILE_SPEC): Update comment. Add RTEMS_STARTFILE_SPEC.
12717 (ENDFILE_SPEC): Add RTEMS_ENDFILE_SPEC.
12718 (LIB_SPECS): Support -nodefaultlibs option.
12719 * config/or1k/rtems.h (RTEMS_STARTFILE_SPEC): Define.
12720 (RTEMS_ENDFILE_SPEC): Likewise.
12721 * config/rs6000/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
12722 (RTEMS_ENDFILE_SPEC): Likewise.
12723 * config/v850/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
12724 (RTEMS_ENDFILE_SPEC): Likewise.
12726 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
12728 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Remove.
12729 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Remove.
12731 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
12733 * config/pru/pru.h: Mark R3.w0 as caller saved.
12735 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
12737 * config/pru/pru.c (pru_emit_doloop): Use new gen_doloop_end_internal
12738 and gen_doloop_begin_internal.
12739 (pru_reorg_loop): Use gen_pruloop with mode.
12740 * config/pru/pru.md: Use new @insn syntax.
12742 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
12744 * config/pru/pru.c (pru_print_operand): Fix fall through comment.
12746 2020-05-05 Uroš Bizjak <ubizjak@gmail.com>
12748 * config/i386/i386.md (fixuns_trunc<mode>si2): Use
12749 "clobber (scratch:M)" instad of "clobber (match_scratch:M N)".
12750 (addqi3_cconly_overflow): Ditto.
12751 (umulv<mode>4): Ditto.
12752 (<s>mul<mode>3_highpart): Ditto.
12753 (tls_global_dynamic_32): Ditto.
12754 (tls_local_dynamic_base_32): Ditto.
12761 (*adddi_4): Remove "m" constraint from scratch operand.
12762 (*add<mode>_4): Ditto.
12764 2020-05-05 Jakub Jelinek <jakub@redhat.com>
12766 PR rtl-optimization/94516
12767 * postreload.c (reload_cse_simplify): When replacing sp = sp + const
12768 with sp = reg, add REG_EQUAL note with sp + const.
12769 * combine-stack-adj.c (try_apply_stack_adjustment): Change return
12770 type from int to bool. Add LIVE and OTHER_INSN arguments. Undo
12771 postreload sp = sp + const to sp = reg optimization if needed and
12773 (combine_stack_adjustments_for_block): Add LIVE argument. Handle
12774 reg = sp insn with sp + const REG_EQUAL note. Adjust
12775 try_apply_stack_adjustment caller, call
12776 df_simulate_initialize_forwards and df_simulate_one_insn_forwards.
12777 (combine_stack_adjustments): Allocate and free LIVE bitmap,
12778 adjust combine_stack_adjustments_for_block caller.
12780 2020-05-05 Martin Liska <mliska@suse.cz>
12782 PR gcov-profile/93623
12783 * tree-cfg.c (stmt_can_terminate_bb_p): Update comment to reflect
12786 2020-05-05 Martin Liska <mliska@suse.cz>
12788 * opt-functions.awk (opt_args_non_empty): New function.
12789 * opt-read.awk: Use the function for various option arguments.
12791 2020-05-05 Martin Liska <mliska@suse.cz>
12794 * lto-wrapper.c (run_gcc): When using -flto=jobserver,
12795 report warning when the jobserver is not detected.
12797 2020-05-05 Martin Liska <mliska@suse.cz>
12799 PR gcov-profile/94636
12800 * gcov.c (main): Print total lines summary at the end.
12801 (generate_results): Expect file_name always being non-null.
12802 Print newline after intermediate file is printed in order to align with
12803 what we do for normal files.
12805 2020-05-05 Martin Liska <mliska@suse.cz>
12807 * dumpfile.c (dump_switch_p): Change return type
12808 and print option suggestion.
12809 * dumpfile.h: Change return type.
12810 * opts-global.c (handle_common_deferred_options):
12811 Move error into dump_switch_p function.
12813 2020-05-05 Martin Liska <mliska@suse.cz>
12816 * alloc-pool.h: Use const for some arguments.
12817 * bitmap.h: Likewise.
12818 * mem-stats.h: Likewise.
12819 * sese.h (get_entry_bb): Likewise.
12820 (get_exit_bb): Likewise.
12822 2020-05-05 Richard Biener <rguenther@suse.de>
12824 * tree-vect-slp.c (struct vdhs_data): New.
12825 (vect_detect_hybrid_slp): New walker.
12826 (vect_detect_hybrid_slp): Rewrite.
12828 2020-05-05 Richard Biener <rguenther@suse.de>
12831 * tree-ssa-structalias.c (ipa_pta_execute): Use
12832 varpool_node::externally_visible_p ().
12833 (refered_from_nonlocal_var): Likewise.
12835 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
12837 * gcc.c (LTO_PLUGIN_SPEC): Define if not already.
12838 (LINK_PLUGIN_SPEC): Execute LTO_PLUGIN_SPEC.
12839 * config/vxworks.h (LTO_PLUGIN_SPEC): Define.
12841 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
12843 * gimplify.c (gimplify_init_constructor): Do not put the constructor
12844 into static memory if it is not complete.
12846 2020-05-05 Richard Biener <rguenther@suse.de>
12848 PR tree-optimization/94949
12849 * tree-ssa-loop-im.c (execute_sm): Check whether we use
12850 the multithreaded model or always compute the stored value
12851 before eliding a load.
12853 2020-05-05 Alex Coplan <alex.coplan@arm.com>
12855 * config/aarch64/aarch64.md (*one_cmpl_zero_extend): New.
12857 2020-05-05 Jakub Jelinek <jakub@redhat.com>
12859 PR tree-optimization/94800
12860 * match.pd (X + (X << C) to X * (1 + (1 << C)),
12861 (X << C1) + (X << C2) to X * ((1 << C1) + (1 << C2))): New
12865 * config/i386/mmx.md (*vec_dupv4hi): Use xYw constraints instead of Yv.
12867 PR tree-optimization/94914
12868 * match.pd ((((type)A * B) >> prec) != 0 to .MUL_OVERFLOW(A, B) != 0):
12869 New simplification.
12871 2020-05-05 Uroš Bizjak <ubizjak@gmail.com>
12873 * config/i386/i386.md (*testqi_ext_3): Use
12874 int_nonimmediate_operand instead of manual mode checks.
12875 (*x86_mov<SWI48:mode>cc_0_m1_neg_leu<SWI:mode>):
12876 Use int_nonimmediate_operand predicate. Rewrite
12877 define_insn_and_split pattern to a combine pass splitter.
12879 2020-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12881 * configure.ac <i[34567]86-*-*>: Add --32 to tls_as_opt on Solaris.
12882 * configure: Regenerate.
12884 2020-05-05 Jakub Jelinek <jakub@redhat.com>
12887 * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
12888 ssse3_ph<plusminus_mnemonic>wv8hi3, ssse3_ph<plusminus_mnemonic>wv4hi3,
12889 avx2_ph<plusminus_mnemonic>dv8si3, ssse3_ph<plusminus_mnemonic>dv4si3,
12890 ssse3_ph<plusminus_mnemonic>dv2si3): Simplify RTL patterns.
12892 2020-05-04 Clement Chigot <clement.chigot@atos.net>
12893 David Edelsohn <dje.gcc@gmail.com>
12895 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Override explicit
12896 for fmodl, frexpl, ldexpl and modfl builtins.
12898 2020-05-04 Richard Sandiford <richard.sandiford@arm.com>
12900 PR middle-end/94941
12901 * internal-fn.c (expand_load_lanes_optab_fn): Emit a move if the
12902 chosen lhs is different from the gcall lhs.
12903 (expand_mask_load_optab_fn): Likewise.
12904 (expand_gather_load_optab_fn): Likewise.
12906 2020-05-04 Uroš Bizjak <ubizjak@gmail.com>
12909 * config/i386/i386.md (*neg<mode>_ccc): New insn pattern.
12910 (EQ compare->LTU compare splitter): New splitter.
12911 (NE compare->NEG splitter): Ditto.
12913 2020-05-04 Marek Polacek <polacek@redhat.com>
12916 2020-04-30 Marek Polacek <polacek@redhat.com>
12919 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
12920 (check_aligned_type): Check if TYPE_USER_ALIGN match.
12922 2020-05-04 Richard Biener <rguenther@suse.de>
12924 PR tree-optimization/93891
12925 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fall back to
12926 the original reference tree for assessing access alignment.
12928 2020-05-04 Richard Biener <rguenther@suse.de>
12930 PR tree-optimization/39612
12931 * tree-ssa-loop-im.c (im_mem_ref::loaded): New member.
12932 (set_ref_loaded_in_loop): New.
12933 (mark_ref_loaded): Likewise.
12934 (gather_mem_refs_stmt): Call mark_ref_loaded for loads.
12935 (execute_sm): Avoid issueing a load when it was not there.
12936 (execute_sm_if_changed): Avoid issueing warnings for the
12939 2020-05-04 Martin Jambor <mjambor@suse.cz>
12942 * tree-inline.c (tree_function_versioning): Leave any type conversion
12943 of replacements to setup_one_parameter and its friend
12944 force_value_to_type.
12946 2020-05-04 Uroš Bizjak <ubizjak@gmail.com>
12949 * config/i386/predicates.md (shr_comparison_operator): New predicate.
12950 * config/i386/i386.md (compare->shr splitter): New splitters.
12952 2020-05-04 Jakub Jelinek <jakub@redhat.com>
12954 PR tree-optimization/94718
12955 * match.pd ((X < 0) != (Y < 0) into (X ^ Y) < 0): New simplification.
12957 PR tree-optimization/94718
12958 * match.pd (bitop (convert @0) (convert? @1)): For GIMPLE, if we can,
12959 replace two nop conversions on bit_{and,ior,xor} argument
12960 and result with just one conversion on the result or another argument.
12962 PR tree-optimization/94718
12963 * fold-const.c (fold_binary_loc): Move (X & C) eqne (Y & C)
12964 -> (X ^ Y) & C eqne 0 optimization to ...
12965 * match.pd ((X & C) op (Y & C) into (X ^ Y) & C op 0): ... here.
12967 * opts.c (get_option_html_page): Instead of hardcoding a list of
12968 options common between C/C++ and Fortran only use gfortran/
12969 documentation for warnings that have CL_Fortran set but not
12972 2020-05-03 Uroš Bizjak <ubizjak@gmail.com>
12974 * config/i386/i386-expand.c (ix86_expand_int_movcc):
12975 Use plus_constant instead of gen_rtx_PLUS with GEN_INT.
12976 (emit_memmov): Ditto.
12977 (emit_memset): Ditto.
12978 (ix86_expand_strlensi_unroll_1): Ditto.
12979 (release_scratch_register_on_entry): Ditto.
12980 (gen_frame_set): Ditto.
12981 (ix86_emit_restore_reg_using_pop): Ditto.
12982 (ix86_emit_outlined_ms2sysv_restore): Ditto.
12983 (ix86_expand_epilogue): Ditto.
12984 (ix86_expand_split_stack_prologue): Ditto.
12985 * config/i386/i386.md (push immediate splitter): Ditto.
12989 2020-05-02 Iain Sandoe <iain@sandoe.co.uk>
12991 PR translation/93861
12992 * config/darwin-driver.c (darwin_driver_init): Adjust spelling in
12995 2020-05-02 Jakub Jelinek <jakub@redhat.com>
12997 * config/tilegx/tilegx.md
12998 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Use <I124MODE:n>
12999 rather than just <n>.
13001 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
13004 * cfgexpand.c (pass_expand::execute): Set crtl->patch_area_size
13005 and crtl->patch_area_entry.
13006 * emit-rtl.h (rtl_data): Add patch_area_size and patch_area_entry.
13007 * opts.c (common_handle_option): Limit
13008 function_entry_patch_area_size and function_entry_patch_area_start
13009 to USHRT_MAX. Fix a typo in error message.
13010 * varasm.c (assemble_start_function): Use crtl->patch_area_size
13011 and crtl->patch_area_entry.
13012 * doc/invoke.texi: Document the maximum value for
13013 -fpatchable-function-entry.
13015 2020-05-01 Iain Sandoe <iain@sandoe.co.uk>
13017 * config/i386/darwin.h: Repair SUBTARGET_INIT_BUILTINS.
13018 Override SUBTARGET_SHADOW_OFFSET macro.
13020 2020-05-01 Andreas Tobler <andreast@gcc.gnu.org>
13022 * config/i386/i386.h: Define a new macro: SUBTARGET_SHADOW_OFFSET.
13023 * config/i386/i386.c (ix86_asan_shadow_offset): Use this macro.
13024 * config/i386/darwin.h: Override the SUBTARGET_SHADOW_OFFSET macro.
13025 * config/i386/freebsd.h: Likewise.
13026 * config/freebsd.h (LIBASAN_EARLY_SPEC): Define.
13027 LIBTSAN_EARLY_SPEC): Likewise. (LIBLSAN_EARLY_SPEC): Likewise.
13029 2020-04-30 Alexandre Oliva <oliva@adacore.com>
13031 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13032 the newly-introduced fileio effective target.
13034 2020-04-30 Richard Sandiford <richard.sandiford@arm.com>
13036 PR rtl-optimization/94740
13037 * cse.c (cse_process_notes_1): Replace with...
13038 (cse_process_note_1): ...this new function, acting as a
13039 simplify_replace_fn_rtx callback to process_note. Handle only
13040 REGs and MEMs directly. Validate the MEM if cse_process_note
13041 changes its address.
13042 (cse_process_notes): Replace with...
13043 (cse_process_note): ...this new function.
13044 (cse_extended_basic_block): Update accordingly, iterating over
13045 the register notes and passing individual notes to cse_process_note.
13047 2020-04-30 Carl Love <cel@us.ibm.com>
13049 * config/rs6000/emmintrin.h (_mm_movemask_epi8): Fix comment.
13051 2020-04-30 Martin Jambor <mjambor@suse.cz>
13054 * cgraph.c (clone_of_p): Also consider thunks whih had their bodies
13055 saved by the inliner and thunks which had their call inlined.
13056 * ipa-inline-transform.c (save_inline_function_body): Fill in
13057 former_clone_of of new body holders.
13059 2020-04-30 Jakub Jelinek <jakub@redhat.com>
13061 * BASE-VER: Set to 11.0.0.
13063 2020-04-30 Jonathan Wakely <jwakely@redhat.com>
13065 * pretty-print.c (pp_take_prefix): Fix spelling in comment.
13067 2020-04-30 Marek Polacek <polacek@redhat.com>
13070 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
13071 (check_aligned_type): Check if TYPE_USER_ALIGN match.
13073 2020-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13075 * config/aarch64/aarch64.h (TARGET_OUTLINE_ATOMICS): Define.
13076 * config/aarch64/aarch64.opt (moutline-atomics): Change to Int variable.
13077 * doc/invoke.texi (moutline-atomics): Document as on by default.
13079 2020-04-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
13082 * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Remove
13083 the check for NOTE_INSN_DELETED_LABEL.
13085 2020-04-30 Jakub Jelinek <jakub@redhat.com>
13087 * configure.ac (--with-documentation-root-url,
13088 --with-changes-root-url): Diagnose URL not ending with /,
13089 use AC_DEFINE_UNQUOTED instead of AC_SUBST.
13090 * opts.h (get_changes_url): Remove.
13091 * opts.c (get_changes_url): Remove.
13092 * Makefile.in (CFLAGS-opts.o): Don't add -DDOCUMENTATION_ROOT_URL
13093 or -DCHANGES_ROOT_URL.
13094 * doc/install.texi (--with-documentation-root-url,
13095 --with-changes-root-url): Document.
13096 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Don't call
13097 get_changes_url and free, change url variable type to const char * and
13098 set it to CHANGES_ROOT_URL "gcc-10/changes.html#empty_base".
13099 * config/s390/s390.c (s390_function_arg_vector,
13100 s390_function_arg_float): Likewise.
13101 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
13103 * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
13105 * config.in: Regenerate.
13106 * configure: Regenerate.
13108 2020-04-30 Christophe Lyon <christophe.lyon@linaro.org>
13111 * config/arm/arm.c (isr_attribute_args): Remove duplicate entries.
13113 2020-04-30 Andreas Krebbel <krebbel@linux.ibm.com>
13115 * config/s390/constraints.md ("j>f", "jb4"): New constraints.
13116 * config/s390/vecintrin.h (vec_load_len_r, vec_store_len_r): Fix
13118 * config/s390/vx-builtins.md ("vlrlrv16qi", "vstrlrv16qi"): Add a
13120 ("*vlrlrv16qi", "*vstrlrv16qi"): Add alternative for vl/vst.
13121 Change constraint for vlrl/vstrl to jb4.
13123 2020-04-30 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
13125 * var-tracking.c (vt_initialize): Move variables pre and post
13126 into inner block and initialize both in order to fix warning
13127 about uninitialized use. Remove unnecessary checks for
13128 frame_pointer_needed.
13130 2020-04-30 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
13132 * toplev.c (output_stack_usage_1): Ensure that first
13133 argument to fprintf is not null.
13135 2020-04-29 Jakub Jelinek <jakub@redhat.com>
13137 * configure.ac (-with-changes-root-url): New configure option,
13138 defaulting to https://gcc.gnu.org/.
13139 * Makefile.in (CFLAGS-opts.o): Define CHANGES_ROOT_URL for
13141 * pretty-print.c (get_end_url_string): New function.
13142 (pp_format): Handle %{ and %} for URLs.
13143 (pp_begin_url): Use pp_string instead of pp_printf.
13144 (pp_end_url): Use get_end_url_string.
13145 * opts.h (get_changes_url): Declare.
13146 * opts.c (get_changes_url): New function.
13147 * config/rs6000/rs6000-call.c: Include opts.h.
13148 (rs6000_discover_homogeneous_aggregate): Use %{in GCC 10.1%} instead
13149 of just in GCC 10.1 in diagnostics and add URL.
13150 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Likewise.
13151 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
13153 * config/s390/s390.c (s390_function_arg_vector,
13154 s390_function_arg_float): Likewise.
13155 * configure: Regenerated.
13158 * config/s390/s390.c (s390_function_arg_vector,
13159 s390_function_arg_float): Use DECL_FIELD_ABI_IGNORED instead of
13160 cxx17_empty_base_field_p. In -Wpsabi diagnostics use the type
13161 passed to the function rather than the type of the single element.
13162 Rename cxx17_empty_base_seen variable to empty_base_seen, change
13163 type to int, and adjust diagnostics depending on if the field
13164 has [[no_unique_attribute]] or not.
13167 * config/i386/avx512bwintrin.h (_mm512_alignr_epi8,
13168 _mm512_mask_alignr_epi8, _mm512_maskz_alignr_epi8): Wrap macro operands
13169 used in casts into parens.
13170 * config/i386/avx512fintrin.h (_mm512_cvt_roundps_ph, _mm512_cvtps_ph,
13171 _mm512_mask_cvt_roundps_ph, _mm512_mask_cvtps_ph,
13172 _mm512_maskz_cvt_roundps_ph, _mm512_maskz_cvtps_ph,
13173 _mm512_mask_cmp_epi64_mask, _mm512_mask_cmp_epi32_mask,
13174 _mm512_mask_cmp_epu64_mask, _mm512_mask_cmp_epu32_mask,
13175 _mm512_mask_cmp_round_pd_mask, _mm512_mask_cmp_round_ps_mask,
13176 _mm512_mask_cmp_pd_mask, _mm512_mask_cmp_ps_mask): Likewise.
13177 * config/i386/avx512vlbwintrin.h (_mm256_mask_alignr_epi8,
13178 _mm256_maskz_alignr_epi8, _mm_mask_alignr_epi8, _mm_maskz_alignr_epi8,
13179 _mm256_mask_cmp_epu8_mask): Likewise.
13180 * config/i386/avx512vlintrin.h (_mm_mask_cvtps_ph, _mm_maskz_cvtps_ph,
13181 _mm256_mask_cvtps_ph, _mm256_maskz_cvtps_ph): Likewise.
13182 * config/i386/f16cintrin.h (_mm_cvtps_ph, _mm256_cvtps_ph): Likewise.
13183 * config/i386/shaintrin.h (_mm_sha1rnds4_epu32): Likewise.
13186 * config/i386/avx2intrin.h (_mm_mask_i32gather_pd,
13187 _mm256_mask_i32gather_pd, _mm_mask_i64gather_pd,
13188 _mm256_mask_i64gather_pd, _mm_mask_i32gather_ps,
13189 _mm256_mask_i32gather_ps, _mm_mask_i64gather_ps,
13190 _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
13191 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
13192 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
13193 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
13194 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
13195 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
13196 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
13197 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
13198 _mm256_mask_i64gather_epi32): Surround macro parameter uses with
13200 (_mm_i32gather_pd, _mm256_i32gather_pd, _mm_i64gather_pd,
13201 _mm256_i64gather_pd, _mm_i32gather_ps, _mm256_i32gather_ps,
13202 _mm_i64gather_ps, _mm256_i64gather_ps): Likewise. Don't use
13203 as mask vector containing -1.0 or -1.0f elts, but instead vector
13204 with all bits set using _mm*_cmpeq_p? with zero operands.
13205 * config/i386/avx512fintrin.h (_mm512_i32gather_ps,
13206 _mm512_mask_i32gather_ps, _mm512_i32gather_pd,
13207 _mm512_mask_i32gather_pd, _mm512_i64gather_ps,
13208 _mm512_mask_i64gather_ps, _mm512_i64gather_pd,
13209 _mm512_mask_i64gather_pd, _mm512_i32gather_epi32,
13210 _mm512_mask_i32gather_epi32, _mm512_i32gather_epi64,
13211 _mm512_mask_i32gather_epi64, _mm512_i64gather_epi32,
13212 _mm512_mask_i64gather_epi32, _mm512_i64gather_epi64,
13213 _mm512_mask_i64gather_epi64, _mm512_i32scatter_ps,
13214 _mm512_mask_i32scatter_ps, _mm512_i32scatter_pd,
13215 _mm512_mask_i32scatter_pd, _mm512_i64scatter_ps,
13216 _mm512_mask_i64scatter_ps, _mm512_i64scatter_pd,
13217 _mm512_mask_i64scatter_pd, _mm512_i32scatter_epi32,
13218 _mm512_mask_i32scatter_epi32, _mm512_i32scatter_epi64,
13219 _mm512_mask_i32scatter_epi64, _mm512_i64scatter_epi32,
13220 _mm512_mask_i64scatter_epi32, _mm512_i64scatter_epi64,
13221 _mm512_mask_i64scatter_epi64): Surround macro parameter uses with
13223 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
13224 _mm512_prefetch_i32gather_ps, _mm512_mask_prefetch_i32gather_pd,
13225 _mm512_mask_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
13226 _mm512_prefetch_i64gather_ps, _mm512_mask_prefetch_i64gather_pd,
13227 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
13228 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
13229 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
13230 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
13231 _mm512_mask_prefetch_i64scatter_ps): Likewise.
13232 * config/i386/avx512vlintrin.h (_mm256_mmask_i32gather_ps,
13233 _mm_mmask_i32gather_ps, _mm256_mmask_i32gather_pd,
13234 _mm_mmask_i32gather_pd, _mm256_mmask_i64gather_ps,
13235 _mm_mmask_i64gather_ps, _mm256_mmask_i64gather_pd,
13236 _mm_mmask_i64gather_pd, _mm256_mmask_i32gather_epi32,
13237 _mm_mmask_i32gather_epi32, _mm256_mmask_i32gather_epi64,
13238 _mm_mmask_i32gather_epi64, _mm256_mmask_i64gather_epi32,
13239 _mm_mmask_i64gather_epi32, _mm256_mmask_i64gather_epi64,
13240 _mm_mmask_i64gather_epi64, _mm256_i32scatter_ps,
13241 _mm256_mask_i32scatter_ps, _mm_i32scatter_ps, _mm_mask_i32scatter_ps,
13242 _mm256_i32scatter_pd, _mm256_mask_i32scatter_pd, _mm_i32scatter_pd,
13243 _mm_mask_i32scatter_pd, _mm256_i64scatter_ps,
13244 _mm256_mask_i64scatter_ps, _mm_i64scatter_ps, _mm_mask_i64scatter_ps,
13245 _mm256_i64scatter_pd, _mm256_mask_i64scatter_pd, _mm_i64scatter_pd,
13246 _mm_mask_i64scatter_pd, _mm256_i32scatter_epi32,
13247 _mm256_mask_i32scatter_epi32, _mm_i32scatter_epi32,
13248 _mm_mask_i32scatter_epi32, _mm256_i32scatter_epi64,
13249 _mm256_mask_i32scatter_epi64, _mm_i32scatter_epi64,
13250 _mm_mask_i32scatter_epi64, _mm256_i64scatter_epi32,
13251 _mm256_mask_i64scatter_epi32, _mm_i64scatter_epi32,
13252 _mm_mask_i64scatter_epi32, _mm256_i64scatter_epi64,
13253 _mm256_mask_i64scatter_epi64, _mm_i64scatter_epi64,
13254 _mm_mask_i64scatter_epi64): Likewise.
13256 2020-04-29 Jeff Law <law@redhat.com>
13258 * config/h8300/h8300.md (H8/SX div patterns): All H8/SX specific
13259 division instructions are 4 bytes long.
13261 2020-04-29 Jakub Jelinek <jakub@redhat.com>
13264 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Use
13265 TARGET_EXPR instead of MODIFY_EXPR for first assignment to
13266 fenv_var, fenv_clear and old_fenv variables. For fenv_addr
13267 take address of TARGET_EXPR of fenv_var with void_node initializer.
13270 2020-04-29 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
13272 PR tree-optimization/94774
13273 * gimple-ssa-sprintf.c (try_substitute_return_value): Initialize
13276 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
13278 * calls.h (cxx17_empty_base_field_p): Turn into a function declaration.
13279 * calls.c (cxx17_empty_base_field_p): New function. Check
13280 DECL_ARTIFICIAL and RECORD_OR_UNION_TYPE_P in addition to the
13283 2020-04-29 H.J. Lu <hongjiu.lu@intel.com>
13286 * config/i386/i386-options.c (ix86_set_indirect_branch_type):
13287 Allow -fcf-protection with -mindirect-branch=thunk-extern and
13288 -mfunction-return=thunk-extern.
13289 * doc/invoke.texi: Update notes for -fcf-protection=branch with
13290 -mindirect-branch=thunk-extern and -mindirect-return=thunk-extern.
13292 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
13294 * doc/sourcebuild.texi: Add missing arm_arch_v8a_hard_ok anchor.
13296 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
13298 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Use
13299 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
13300 fenv_var and new_fenv_var.
13302 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
13304 * doc/sourcebuild.texi (arm_arch_v8a_hard_ok): Document new
13305 effective-target keyword.
13306 (arm_arch_v8a_hard_multilib): Likewise.
13307 (arm_arch_v8a_hard): Document new dg-add-options keyword.
13308 * config/arm/arm.c (arm_return_in_memory): Note that the APCS
13309 code is deprecated and has not been updated to handle
13310 DECL_FIELD_ABI_IGNORED.
13311 (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
13312 (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
13313 (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
13314 avoid_cxx17_empty_base with a pointer to a bitmask. Ignore fields
13315 whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
13316 something actually is a HFA or HVA. Record whether we see a
13317 [[no_unique_address]] field that previous GCCs would not have
13318 ignored in this way.
13319 (aapcs_vfp_is_call_or_return_candidate): Update the calls to
13320 aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
13321 [[no_unique_address]] case. Use TYPE_MAIN_VARIANT in the
13322 diagnostic messages.
13323 (arm_needs_doubleword_align): Add a comment explaining why we
13324 consider even zero-sized fields.
13326 2020-04-29 Richard Biener <rguenther@suse.de>
13327 Li Zekun <lizekun1@huawei.com>
13330 * tree.c (component_ref_size): Guard against error_mark_node
13331 DECL_INITIAL as it happens with LTO.
13333 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
13335 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add a
13336 comment explaining why we consider even zero-sized fields.
13337 (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
13338 (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
13339 (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
13340 avoid_cxx17_empty_base with a pointer to a bitmask. Ignore fields
13341 whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
13342 something actually is a HFA or HVA. Record whether we see a
13343 [[no_unique_address]] field that previous GCCs would not have
13344 ignored in this way.
13345 (aarch64_vfp_is_call_or_return_candidate): Add a parameter to say
13346 whether diagnostics should be suppressed. Update the calls to
13347 aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
13348 [[no_unique_address]] case.
13349 (aarch64_return_in_msb): Update call accordingly, never silencing
13351 (aarch64_function_value): Likewise.
13352 (aarch64_return_in_memory_1): Likewise.
13353 (aarch64_init_cumulative_args): Likewise.
13354 (aarch64_gimplify_va_arg_expr): Likewise.
13355 (aarch64_pass_by_reference_1): Take a CUMULATIVE_ARGS pointer and
13356 use it to decide whether arch64_vfp_is_call_or_return_candidate
13358 (aarch64_pass_by_reference): Update calls accordingly.
13359 (aarch64_vfp_is_call_candidate): Use the CUMULATIVE_ARGS argument
13360 to decide whether arch64_vfp_is_call_or_return_candidate should be
13363 2020-04-29 Haijian Zhang <z.zhanghaijian@huawei.com>
13366 * config/aarch64/aarch64-builtins.c
13367 (aarch64_atomic_assign_expand_fenv): Use TARGET_EXPR instead of
13368 MODIFY_EXPR for first assignment to fenv_cr, fenv_sr and
13371 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
13373 * configure.ac <$enable_offload_targets>: Do parsing as done
13375 * configure: Regenerate.
13377 * configure.ac <$enable_offload_targets>: 'amdgcn' is 'gcn'.
13378 * configure: Regenerate.
13381 * rtlanal.c (set_noop_p): Handle non-constant selectors.
13384 * common/config/gcn/gcn-common.c (gcn_except_unwind_info): New
13386 (TARGET_EXCEPT_UNWIND_INFO): Define.
13388 2020-04-29 Jakub Jelinek <jakub@redhat.com>
13391 * config/gcn/gcn.md (*mov<mode>_insn): Use
13392 'reg_overlap_mentioned_p' to check for overlap.
13395 * config/ia64/ia64.c (hfa_element_mode): Use DECL_FIELD_ABI_IGNORED
13396 instead of cxx17_empty_base_field_p.
13399 * tree-core.h (tree_decl_common): Note decl_flag_0 used for
13400 DECL_FIELD_ABI_IGNORED.
13401 * tree.h (DECL_FIELD_ABI_IGNORED): Define.
13402 * calls.h (cxx17_empty_base_field_p): Change into a temporary
13403 macro, check DECL_FIELD_ABI_IGNORED flag with no "no_unique_address"
13405 * calls.c (cxx17_empty_base_field_p): Remove.
13406 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Handle
13407 DECL_FIELD_ABI_IGNORED.
13408 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
13409 * lto-streamer-out.c (hash_tree): Likewise.
13410 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Rename
13411 cxx17_empty_base_seen to empty_base_seen, change type to int *,
13412 adjust recursive calls, use DECL_FIELD_ABI_IGNORED instead of
13413 cxx17_empty_base_field_p, if "no_unique_address" attribute is
13414 present, propagate that to the caller too.
13415 (rs6000_discover_homogeneous_aggregate): Adjust
13416 rs6000_aggregate_candidate caller, emit different diagnostics
13417 when c++17 empty base fields are present and when empty
13418 [[no_unique_address]] fields are present.
13419 * config/rs6000/rs6000.c (rs6000_special_round_type_align,
13420 darwin_rs6000_special_round_type_align): Skip DECL_FIELD_ABI_IGNORED
13423 2020-04-29 Richard Biener <rguenther@suse.de>
13425 * tree-ssa-loop-im.c (ref_always_accessed::operator ()):
13426 Just check whether the stmt stores.
13428 2020-04-28 Alexandre Oliva <oliva@adacore.com>
13431 * config/rs6000/rs6000.md (rs6000_mffsl): Copy result to
13432 output operand in emulation. Don't overwrite pseudos.
13434 2020-04-28 Jeff Law <law@redhat.com>
13436 * config/h8300/h8300.md (H8/SX mult patterns): All H8/SX specific
13437 multiply patterns are 4 bytes long.
13439 2020-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13441 * config/arm/arm-cpus.in (cortex-m55): Remove +nofp option.
13442 * doc/invoke.texi (Arm Options): Remove -mcpu=cortex-m55 from +nofp option.
13444 2020-04-28 Matthew Malcomson <matthew.malcomson@arm.com>
13445 Jakub Jelinek <jakub@redhat.com>
13448 * config/arm/arm.c (aapcs_vfp_sub_candidate): Account for C++17 empty
13449 base class artificial fields.
13450 (aapcs_vfp_is_call_or_return_candidate): Warn when PCS ABI
13451 decision is different after this fix.
13453 2020-04-28 David Malcolm <dmalcolm@redhat.com>
13459 * doc/invoke.texi (Static Analyzer Options): Remove
13460 -Wanalyzer-use-of-uninitialized-value.
13461 (-Wno-analyzer-use-of-uninitialized-value): Remove item.
13463 2020-04-28 Jakub Jelinek <jakub@redhat.com>
13465 PR tree-optimization/94809
13466 * tree.c (build_call_expr_internal_loc_array): Call
13467 process_call_operands.
13469 2020-04-27 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
13471 * config/aarch64/aarch64-cores.def (thunderx3t110): Add the chip name.
13472 * config/aarch64/aarch64-tune.md: Regenerate.
13473 * config/aarch64/aarch64.c (thunderx3t110_addrcost_table): Define.
13474 (thunderx3t110_regmove_cost): Likewise.
13475 (thunderx3t110_vector_cost): Likewise.
13476 (thunderx3t110_prefetch_tune): Likewise.
13477 (thunderx3t110_tunings): Likewise.
13478 * config/aarch64/aarch64-cost-tables.h (thunderx3t110_extra_costs):
13480 * config/aarch64/thunderx3t110.md: New file.
13481 * config/aarch64/aarch64.md: Include thunderx3t110.md.
13482 * doc/invoke.texi (AArch64 options): Add thunderx3t110.
13484 2020-04-28 Jakub Jelinek <jakub@redhat.com>
13487 * config/s390/s390.c (s390_function_arg_vector,
13488 s390_function_arg_float): Emit -Wpsabi diagnostics if the ABI changed.
13490 2020-04-28 Richard Sandiford <richard.sandiford@arm.com>
13492 PR tree-optimization/94727
13493 * tree-vect-stmts.c (vect_is_simple_cond): If both comparison
13494 operands are invariant booleans, use the mask type associated with the
13495 STMT_VINFO_VECTYPE. Use !slp_node instead of !vectype to exclude SLP.
13496 (vectorizable_condition): Pass vectype unconditionally to
13497 vect_is_simple_cond.
13499 2020-04-27 Jakub Jelinek <jakub@redhat.com>
13502 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Use
13503 TARGET_EXPR instead of MODIFY_EXPR for first assignment to
13504 sw_var, exceptions_var, mxcsr_orig_var and mxcsr_mod_var.
13506 2020-04-27 David Malcolm <dmalcolm@redhat.com>
13509 * configure.ac (DOCUMENTATION_ROOT_URL): Drop trailing "gcc/" from
13510 default value, so that it can by supplied by get_option_html_page.
13511 * configure: Regenerate.
13512 * opts.c: Include "selftest.h".
13513 (get_option_html_page): New function.
13514 (get_option_url): Use it. Reformat to place comments next to the
13515 expressions they refer to.
13516 (selftest::test_get_option_html_page): New.
13517 (selftest::opts_c_tests): New.
13518 * selftest-run-tests.c (selftest::run_tests): Call
13519 selftest::opts_c_tests.
13520 * selftest.h (selftest::opts_c_tests): New decl.
13522 2020-04-27 Richard Sandiford <richard.sandiford@arm.com>
13524 * config/arm/arm-builtins.c (arm_expand_builtin_args): Only apply
13525 UINTVAL to CONST_INTs.
13527 2020-04-27 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13529 * config/arm/constraints.md (e): Remove constraint.
13530 (Te): Define constraint.
13531 * config/arm/mve.md (vaddvq_<supf><mode>): Modify constraint in
13532 operand 0 from "e" to "Te".
13533 (vaddvaq_<supf><mode>): Likewise.
13534 (vaddvq_p_<supf><mode>): Likewise.
13535 (vmladavq_<supf><mode>): Likewise.
13536 (vmladavxq_s<mode>): Likewise.
13537 (vmlsdavq_s<mode>): Likewise.
13538 (vmlsdavxq_s<mode>): Likewise.
13539 (vaddvaq_p_<supf><mode>): Likewise.
13540 (vmladavaq_<supf><mode>): Likewise.
13541 (vmladavq_p_<supf><mode>): Likewise.
13542 (vmladavxq_p_s<mode>): Likewise.
13543 (vmlsdavq_p_s<mode>): Likewise.
13544 (vmlsdavxq_p_s<mode>): Likewise.
13545 (vmlsdavaxq_s<mode>): Likewise.
13546 (vmlsdavaq_s<mode>): Likewise.
13547 (vmladavaxq_s<mode>): Likewise.
13548 (vmladavaq_p_<supf><mode>): Likewise.
13549 (vmladavaxq_p_s<mode>): Likewise.
13550 (vmlsdavaq_p_s<mode>): Likewise.
13551 (vmlsdavaxq_p_s<mode>): Likewise.
13553 2020-04-27 Andre Vieira <andre.simoesdiasvieira@arm.com>
13555 * config/arm/arm.c (output_move_neon): Only get the first operand if
13558 2020-04-27 Felix Yang <felix.yang@huawei.com>
13560 PR tree-optimization/94784
13561 * tree-ssa-forwprop.c (simplify_vector_constructor): Flip the
13562 assert around so that it checks that the two vectors have equal
13563 TYPE_VECTOR_SUBPARTS and that converting the corresponding element
13564 types is a useless_type_conversion_p.
13566 2020-04-27 Szabolcs Nagy <szabolcs.nagy@arm.com>
13569 * dwarf2cfi.c (struct GTY): Add ra_mangled.
13570 (cfi_row_equal_p): Check ra_mangled.
13571 (dwarf2out_frame_debug_cfa_window_save): Remove the argument,
13572 this only handles the sparc logic now.
13573 (dwarf2out_frame_debug_cfa_toggle_ra_mangle): New function for
13574 the aarch64 specific logic.
13575 (dwarf2out_frame_debug): Update to use the new subroutines.
13576 (change_cfi_row): Check ra_mangled.
13578 2020-04-27 Jakub Jelinek <jakub@redhat.com>
13581 * config/s390/s390.c (s390_function_arg_vector,
13582 s390_function_arg_float): Ignore cxx17_empty_base_field_p fields.
13584 2020-04-27 Jiufu Guo <guojiufu@cn.ibm.com>
13586 * common/config/rs6000/rs6000-common.c
13587 (rs6000_option_optimization_table) [OPT_LEVELS_ALL]: Remove turn off
13589 * config/rs6000/rs6000.c (rs6000_option_override_internal): Avoid to
13592 2020-04-27 Martin Liska <mliska@suse.cz>
13595 * cgraph.h (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
13596 Do not remove ifunc_resolvers in remove unreachable nodes in LTO.
13598 2020-04-27 Xiong Hu Luo <luoxhu@linux.ibm.com>
13601 * config/rs6000/rs6000-logue.c (frame_pointer_needed_indeed):
13603 (rs6000_emit_prologue_components):
13604 Check with frame_pointer_needed_indeed.
13605 (rs6000_emit_epilogue_components): Likewise.
13606 (rs6000_emit_prologue): Likewise.
13607 (rs6000_emit_epilogue): Set frame_pointer_needed_indeed.
13609 2020-04-25 David Edelsohn <dje.gcc@gmail.com>
13611 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Don't push a
13612 stack frame when debugging and flag_compare_debug is enabled.
13614 2020-04-25 Michael Meissner <meissner@linux.ibm.com>
13616 * config/rs6000/linux64.h (PCREL_SUPPORTED_BY_OS): Define to
13617 enable PC-relative addressing for -mcpu=future.
13618 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Move
13619 after OTHER_FUTURE_MASKS. Use OTHER_FUTURE_MASKS.
13620 * config/rs6000/rs6000.c (PCREL_SUPPORTED_BY_OS): If not defined,
13621 suppress PC-relative addressing.
13622 (rs6000_option_override_internal): Split up error messages
13623 checking for -mprefixed and -mpcrel. Enable -mpcrel if the target
13624 system supports it.
13626 2020-04-25 Jakub Jelinek <jakub@redhat.com>
13627 Richard Biener <rguenther@suse.de>
13629 PR tree-optimization/94734
13630 PR tree-optimization/89430
13631 * tree-ssa-phiopt.c: Include tree-eh.h.
13632 (cond_store_replacement): Return false if an automatic variable
13633 access could trap. If -fstore-data-races, don't return false
13634 just because an automatic variable is addressable.
13636 2020-04-24 Andrew Stubbs <ams@codesourcery.com>
13638 * config/gcn/gcn-valu.md (add<mode>_zext_dup2_exec): Fix merge
13640 (add<mode>_sext_dup2_exec): Likewise.
13642 2020-04-24 Segher Boessenkool <segher@kernel.crashing.org>
13645 * config/rs6000/vector.md (vec_shr_<mode> for VEC_L): Correct little
13646 endian byteshift_val calculation.
13648 2020-04-24 Andrew Stubbs <ams@codesourcery.com>
13650 * config/gcn/gcn.md (*mov<mode>_insn): Only split post-reload.
13652 2020-04-24 Richard Sandiford <richard.sandiford@arm.com>
13654 * config/aarch64/arm_sve.h: Add a comment.
13656 2020-04-24 Haijian Zhang <z.zhanghaijian@huawei.com>
13658 PR rtl-optimization/94708
13659 * combine.c (simplify_if_then_else): Add check for
13660 !HONOR_NANS (mode) && !HONOR_SIGNED_ZEROS (mode).
13662 2020-04-23 Martin Sebor <msebor@redhat.com>
13665 * common.opt (-Wno-frame-larger-than): New option.
13666 (-Wno-larger-than, -Wno-stack-usage): Same.
13668 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
13670 * config/gcn/gcn-valu.md (mov<mode>_exec): Swap the numbers on operands
13672 (mov<mode>_exec): Likewise.
13673 (trunc<vndi><mode>2_exec): Swap parameters to gen_mov<mode>_exec.
13674 (<convop><mode><vndi>2_exec): Likewise.
13676 2019-04-23 Eric Botcazou <ebotcazou@adacore.com>
13678 PR tree-optimization/94717
13679 * gimple-ssa-store-merging.c (try_coalesce_bswap): Return false if one
13680 of the stores doesn't have the same landing pad number as the first.
13681 (coalesce_immediate_stores): Do not try to coalesce the store using
13682 bswap if it doesn't have the same landing pad number as the first.
13684 2020-04-23 Bill Schmidt <wschmidt@linux.ibm.com>
13686 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13687 Replace outdated link to ELFv2 ABI.
13689 2020-04-23 Jakub Jelinek <jakub@redhat.com>
13692 * optabs.c (expand_vec_perm_const): For shift_amt const0_rtx
13695 PR middle-end/94724
13696 * tree.c (get_narrower): Instead of creating COMPOUND_EXPRs
13697 temporarily with non-final second operand and updating it later,
13698 push COMPOUND_EXPRs into a vector and process it in reverse,
13699 creating COMPOUND_EXPRs with the final operands.
13701 2020-04-23 Szabolcs Nagy <szabolcs.nagy@arm.com>
13704 * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Swap
13705 bti c and bti j handling.
13707 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
13708 Thomas Schwinge <thomas@codesourcery.com>
13710 PR middle-end/93488
13712 * omp-expand.c (expand_omp_target): Use force_gimple_operand_gsi on
13713 t_async and the wait arguments.
13715 2020-04-23 Richard Sandiford <richard.sandiford@arm.com>
13717 PR tree-optimization/94727
13718 * tree-vect-stmts.c (vectorizable_comparison): Use mask_type when
13719 comparing invariant scalar booleans.
13721 2020-04-23 Matthew Malcomson <matthew.malcomson@arm.com>
13722 Jakub Jelinek <jakub@redhat.com>
13725 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Account for C++17
13726 empty base class artificial fields.
13727 (aarch64_vfp_is_call_or_return_candidate): Warn when ABI PCS decision is
13728 different after this fix.
13730 2020-04-23 Jakub Jelinek <jakub@redhat.com>
13733 * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
13734 Use TYPE_UID (TYPE_MAIN_VARIANT (type)) instead of type to check
13735 if the same type has been diagnosed most recently already.
13737 2020-04-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13739 * config/arm/arm_mve.h (__arm_vbicq_n_u16): Modify function parameter's
13741 (__arm_vbicq_n_s16): Likewise.
13742 (__arm_vbicq_n_u32): Likewise.
13743 (__arm_vbicq_n_s32): Likewise.
13744 (__arm_vbicq): Likewise.
13745 (__arm_vbicq_n_s16): Modify MVE polymorphic variant argument's datatype.
13746 (__arm_vbicq_n_s32): Likewise.
13747 (__arm_vbicq_n_u16): Likewise.
13748 (__arm_vbicq_n_u32): Likewise.
13749 (__arm_vdupq_m_n_s8): Likewise.
13750 (__arm_vdupq_m_n_s16): Likewise.
13751 (__arm_vdupq_m_n_s32): Likewise.
13752 (__arm_vdupq_m_n_u8): Likewise.
13753 (__arm_vdupq_m_n_u16): Likewise.
13754 (__arm_vdupq_m_n_u32): Likewise.
13755 (__arm_vdupq_m_n_f16): Likewise.
13756 (__arm_vdupq_m_n_f32): Likewise.
13757 (__arm_vldrhq_gather_offset_s16): Likewise.
13758 (__arm_vldrhq_gather_offset_s32): Likewise.
13759 (__arm_vldrhq_gather_offset_u16): Likewise.
13760 (__arm_vldrhq_gather_offset_u32): Likewise.
13761 (__arm_vldrhq_gather_offset_f16): Likewise.
13762 (__arm_vldrhq_gather_offset_z_s16): Likewise.
13763 (__arm_vldrhq_gather_offset_z_s32): Likewise.
13764 (__arm_vldrhq_gather_offset_z_u16): Likewise.
13765 (__arm_vldrhq_gather_offset_z_u32): Likewise.
13766 (__arm_vldrhq_gather_offset_z_f16): Likewise.
13767 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
13768 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
13769 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
13770 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
13771 (__arm_vldrhq_gather_shifted_offset_f16): Likewise.
13772 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
13773 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
13774 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
13775 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
13776 (__arm_vldrhq_gather_shifted_offset_z_f16): Likewise.
13777 (__arm_vldrwq_gather_offset_s32): Likewise.
13778 (__arm_vldrwq_gather_offset_u32): Likewise.
13779 (__arm_vldrwq_gather_offset_f32): Likewise.
13780 (__arm_vldrwq_gather_offset_z_s32): Likewise.
13781 (__arm_vldrwq_gather_offset_z_u32): Likewise.
13782 (__arm_vldrwq_gather_offset_z_f32): Likewise.
13783 (__arm_vldrwq_gather_shifted_offset_s32): Likewise.
13784 (__arm_vldrwq_gather_shifted_offset_u32): Likewise.
13785 (__arm_vldrwq_gather_shifted_offset_f32): Likewise.
13786 (__arm_vldrwq_gather_shifted_offset_z_s32): Likewise.
13787 (__arm_vldrwq_gather_shifted_offset_z_u32): Likewise.
13788 (__arm_vldrwq_gather_shifted_offset_z_f32): Likewise.
13789 (__arm_vdwdupq_x_n_u8): Likewise.
13790 (__arm_vdwdupq_x_n_u16): Likewise.
13791 (__arm_vdwdupq_x_n_u32): Likewise.
13792 (__arm_viwdupq_x_n_u8): Likewise.
13793 (__arm_viwdupq_x_n_u16): Likewise.
13794 (__arm_viwdupq_x_n_u32): Likewise.
13795 (__arm_vidupq_x_n_u8): Likewise.
13796 (__arm_vddupq_x_n_u8): Likewise.
13797 (__arm_vidupq_x_n_u16): Likewise.
13798 (__arm_vddupq_x_n_u16): Likewise.
13799 (__arm_vidupq_x_n_u32): Likewise.
13800 (__arm_vddupq_x_n_u32): Likewise.
13801 (__arm_vldrdq_gather_offset_s64): Likewise.
13802 (__arm_vldrdq_gather_offset_u64): Likewise.
13803 (__arm_vldrdq_gather_offset_z_s64): Likewise.
13804 (__arm_vldrdq_gather_offset_z_u64): Likewise.
13805 (__arm_vldrdq_gather_shifted_offset_s64): Likewise.
13806 (__arm_vldrdq_gather_shifted_offset_u64): Likewise.
13807 (__arm_vldrdq_gather_shifted_offset_z_s64): Likewise.
13808 (__arm_vldrdq_gather_shifted_offset_z_u64): Likewise.
13809 (__arm_vidupq_m_n_u8): Likewise.
13810 (__arm_vidupq_m_n_u16): Likewise.
13811 (__arm_vidupq_m_n_u32): Likewise.
13812 (__arm_vddupq_m_n_u8): Likewise.
13813 (__arm_vddupq_m_n_u16): Likewise.
13814 (__arm_vddupq_m_n_u32): Likewise.
13815 (__arm_vidupq_n_u16): Likewise.
13816 (__arm_vidupq_n_u32): Likewise.
13817 (__arm_vidupq_n_u8): Likewise.
13818 (__arm_vddupq_n_u16): Likewise.
13819 (__arm_vddupq_n_u32): Likewise.
13820 (__arm_vddupq_n_u8): Likewise.
13822 2020-04-23 Iain Buclaw <ibuclaw@gdcproject.org>
13824 * doc/install.texi (D-Specific Options): Document
13825 --enable-libphobos-checking and --with-libphobos-druntime-only.
13827 2020-04-23 Jakub Jelinek <jakub@redhat.com>
13830 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Add
13831 cxx17_empty_base_seen argument. Pass it to recursive calls.
13832 Ignore cxx17_empty_base_field_p fields after setting
13833 *cxx17_empty_base_seen to true.
13834 (rs6000_discover_homogeneous_aggregate): Adjust
13835 rs6000_aggregate_candidate caller. With -Wpsabi, diagnose homogeneous
13836 aggregates with C++17 empty base fields.
13839 * attribs.c (decl_attribute): Don't diagnose attribute exclusions
13840 if last_decl is error_mark_node or has such a TREE_TYPE.
13843 * attribs.c (decl_attribute): Don't diagnose attribute exclusions
13844 if last_decl is error_mark_node or has such a TREE_TYPE.
13846 2020-04-22 Felix Yang <felix.yang@huawei.com>
13849 * config/aarch64/aarch64.h (TARGET_SVE):
13850 Add && !TARGET_GENERAL_REGS_ONLY.
13851 (TARGET_SVE2): Add && TARGET_SVE.
13852 (TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3,
13853 TARGET_SVE2_SM4): Add && TARGET_SVE2.
13854 * config/aarch64/aarch64-sve-builtins.h
13855 (sve_switcher::m_old_general_regs_only): New member.
13856 * config/aarch64/aarch64-sve-builtins.cc (check_required_registers):
13858 (reported_missing_registers_p): New variable.
13859 (check_required_extensions): Call check_required_registers before
13860 return if all required extenstions are present.
13861 (sve_switcher::sve_switcher): Save TARGET_GENERAL_REGS_ONLY in
13862 m_old_general_regs_only and clear MASK_GENERAL_REGS_ONLY in
13863 global_options.x_target_flags.
13864 (sve_switcher::~sve_switcher): Set MASK_GENERAL_REGS_ONLY in
13865 global_options.x_target_flags if m_old_general_regs_only is true.
13867 2020-04-22 Zackery Spytz <zspytz@gmail.com>
13869 * doc/extend.exi: Add "free" to list of other builtin functions
13872 2020-04-20 Aaron Sawdey <acsawdey@linux.ibm.com>
13875 * config/rs6000/sync.md (load_quadpti): Add attr "prefixed"
13876 if TARGET_PREFIXED.
13877 (store_quadpti): Ditto.
13878 (atomic_load<mode>): Do not swap doublewords if TARGET_PREFIXED as
13879 plq will be used and doesn't need it.
13880 (atomic_store<mode>): Ditto, for pstq.
13882 2020-04-22 Erick Ochoa <erick.ochoa@theobroma-systems.com>
13884 * doc/invoke.texi: Update flags turned on by -O3.
13886 2020-04-22 Jakub Jelinek <jakub@redhat.com>
13889 * config/ia64/ia64.c (hfa_element_mode): Ignore
13890 cxx17_empty_base_field_p fields.
13893 * calls.h (cxx17_empty_base_field_p): Declare.
13894 * calls.c (cxx17_empty_base_field_p): Define.
13896 2020-04-22 Christophe Lyon <christophe.lyon@linaro.org>
13898 * doc/sourcebuild.texi (arm_softfp_ok, arm_hard_ok): Document.
13900 2020-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13901 Andre Vieira <andre.simoesdiasvieira@arm.com>
13902 Mihail Ionescu <mihail.ionescu@arm.com>
13904 * config/arm/arm.c (arm_file_start): Handle isa_bit_quirk_no_asmcpu.
13905 * config/arm/arm-cpus.in (quirk_no_asmcpu): Define.
13906 (ALL_QUIRKS): Add quirk_no_asmcpu.
13907 (cortex-m55): Define new cpu.
13908 * config/arm/arm-tables.opt: Regenerate.
13909 * config/arm/arm-tune.md: Likewise.
13910 * doc/invoke.texi (Arm Options): Document -mcpu=cortex-m55.
13912 2020-04-22 Richard Sandiford <richard.sandiford@arm.com>
13914 PR tree-optimization/94700
13915 * tree-ssa-forwprop.c (simplify_vector_constructor): When processing
13916 an identity constructor, use a VIEW_CONVERT_EXPR to handle mixtures
13917 of similarly-structured but distinct vector types.
13919 2020-04-21 Martin Sebor <msebor@redhat.com>
13921 PR middle-end/94647
13922 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Correct
13923 the computation of the lower bound of the source access size.
13924 (builtin_access::generic_overlap): Remove a hack for setting ranges
13925 of overlap offsets.
13927 2020-04-21 John David Anglin <danglin@gcc.gnu.org>
13929 * config/pa/som.h (ASM_WEAKEN_LABEL): Delete.
13930 (ASM_WEAKEN_DECL): New define.
13931 (HAVE_GAS_WEAKREF): Undefine.
13933 2020-04-21 Richard Sandiford <richard.sandiford@arm.com>
13935 PR tree-optimization/94683
13936 * tree-ssa-forwprop.c (simplify_vector_constructor): Use a
13937 VIEW_CONVERT_EXPR to handle mixtures of similarly-structured
13938 but distinct vector types.
13940 2020-04-21 Jakub Jelinek <jakub@redhat.com>
13943 * stor-layout.c (place_field, finalize_record_size): Don't emit
13944 -Wpadded warning on TYPE_ARTIFICIAL rli->t.
13945 * ubsan.c (ubsan_get_type_descriptor_type,
13946 ubsan_get_source_location_type, ubsan_create_data): Set
13948 * asan.c (asan_global_struct): Likewise.
13950 2020-04-21 Duan bo <duanbo3@huawei.com>
13953 * config/aarch64/aarch64.c: Add an error message for option conflict.
13954 * doc/invoke.texi (-mcmodel=large): Mention that -mcmodel=large is
13955 incompatible with -fpic, -fPIC and -mabi=ilp32.
13957 2020-04-21 Frederik Harwath <frederik@codesourcery.com>
13960 * omp-low.c (new_omp_context): Remove assignments to
13961 ctx->outer_reduction_clauses and ctx->local_reduction_clauses.
13963 2020-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
13965 * config/s390/vector.md ("popcountv8hi2_vx", "popcountv4si2_vx")
13966 ("popcountv2di2_vx"): Use simplify_gen_subreg.
13968 2020-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
13971 * config/s390/s390-builtin-types.def: Add 3 new function modes.
13972 * config/s390/s390-builtins.def: Add mode dependent low-level
13973 builtin and map the overloaded builtins to these.
13974 * config/s390/vx-builtins.md ("vec_selV_HW"): Rename to ...
13975 ("vsel<V_HW"): ... this and rewrite the pattern with bitops.
13977 2020-04-20 Richard Sandiford <richard.sandiford@arm.com>
13979 * tree-vect-loop.c (vect_better_loop_vinfo_p): If old_loop_vinfo
13980 has a variable VF, prefer new_loop_vinfo if it is cheaper for the
13981 estimated VF and is no worse at double the estimated VF.
13983 2020-04-20 Richard Sandiford <richard.sandiford@arm.com>
13986 * config/aarch64/aarch64.c (aarch64_sve_expand_vector_init): Fix
13987 order of arguments to rtx_vector_builder.
13988 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
13989 When extending the trailing constants to a full vector, replace any
13990 variables with zeros.
13992 2020-04-20 Jan Hubicka <hubicka@ucw.cz>
13995 * tree-inline.c (optimize_inline_calls): Recompute calls_comdat_local
13998 2020-04-20 Martin Liska <mliska@suse.cz>
14000 * symtab.c (symtab_node::dump_references): Add space after
14002 (symtab_node::dump_referring): Likewise.
14004 2020-04-18 Jeff Law <law@redhat.com>
14007 * regrename.c (check_new_reg_p): Ignore DEBUG_INSNs when walking
14010 2020-04-18 Iain Buclaw <ibuclaw@gdcproject.org>
14012 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
14013 attributes): Document d_runtime_has_std_library.
14015 2020-04-17 Jeff Law <law@redhat.com>
14017 PR rtl-optimization/90275
14018 * cse.c (cse_insn): Avoid recording nop sets in multi-set parallels
14019 when the destination has a REG_UNUSED note.
14021 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
14023 PR middle-end/94635
14024 * gimplify.c (gimplify_scan_omp_clauses): Turn MAP_TO_PSET to
14027 2020-04-17 Richard Sandiford <richard.sandiford@arm.com>
14029 * config/aarch64/aarch64.c (aarch64_advsimd_ldp_stp_p): New function.
14030 (aarch64_sve_adjust_stmt_cost): Add a vectype parameter. Double the
14031 cost of load and store insns if one loop iteration has enough scalar
14032 elements to use an Advanced SIMD LDP or STP.
14033 (aarch64_add_stmt_cost): Update call accordingly.
14035 2020-04-17 Jakub Jelinek <jakub@redhat.com>
14036 Jeff Law <law@redhat.com>
14039 * config/i386/i386.md (*testqi_ext_3): Use CCZmode rather than
14040 CCNOmode in ix86_match_ccmode if len is equal to <MODE>mode precision,
14041 or pos + len >= 32, or pos + len is equal to operands[2] precision
14042 and operands[2] is not a register operand. During splitting perform
14043 SImode AND if operands[0] doesn't have CCZmode and pos + len is
14044 equal to mode precision.
14046 2020-04-17 Richard Biener <rguenther@suse.de>
14049 * cgraphclones.c (cgraph_node::create_clone): Remove duplicate
14051 * dwarf2out.c (dw_val_equal_p): Fix pasto in
14052 dw_val_class_vms_delta comparison.
14053 * optabs.c (expand_binop_directly): Fix pasto in commutation
14055 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Fix pasto in
14058 2020-04-17 Jakub Jelinek <jakub@redhat.com>
14060 PR rtl-optimization/94618
14061 * cfgrtl.c (delete_insn_and_edges): Set purge not just when
14062 insn is the BB_END of its block, but also when it is only followed
14063 by DEBUG_INSNs in its block.
14065 PR tree-optimization/94621
14066 * tree-inline.c (remap_type_1): Don't dereference NULL TYPE_DOMAIN.
14067 Move id->adjust_array_error_bounds check first in the condition.
14069 2020-04-17 Martin Liska <mliska@suse.cz>
14070 Jonathan Yong <10walls@gmail.com>
14072 PR gcov-profile/94570
14073 * coverage.c (coverage_init): Use separator properly.
14075 2020-04-16 Peter Bergner <bergner@linux.ibm.com>
14077 PR rtl-optimization/93974
14078 * config/rs6000/rs6000.c (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
14079 (rs6000_cannot_substitute_mem_equiv_p): New function.
14081 2020-04-16 Martin Jambor <mjambor@suse.cz>
14084 * ipa-inline.h (ipa_saved_clone_sources): Declare.
14085 * ipa-inline-transform.c (ipa_saved_clone_sources): New variable.
14086 (save_inline_function_body): Link the new body holder with the
14088 * cgraph.c: Include ipa-inline.h.
14089 (cgraph_edge::redirect_call_stmt_to_callee): Try to find the decl from
14090 the statement in ipa_saved_clone_sources.
14091 * cgraphunit.c: Include ipa-inline.h.
14092 (expand_all_functions): Free ipa_saved_clone_sources.
14094 2020-04-16 Richard Sandiford <richard.sandiford@arm.com>
14097 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor): Take
14098 the VNx16BI lowpart of the recursively-generated constant.
14100 2020-04-16 Martin Liska <mliska@suse.cz>
14101 Jakub Jelinek <jakub@redhat.com>
14104 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
14105 DECL_IS_REPLACEABLE_OPERATOR during cloning.
14106 * tree-ssa-dce.c (valid_new_delete_pair_p): New function.
14107 (propagate_necessity): Check operator names.
14109 2020-04-16 Richard Sandiford <richard.sandiford@arm.com>
14111 PR rtl-optimization/94605
14112 * early-remat.c (early_remat::process_block): Handle insns that
14113 set multiple candidate registers.
14114 2020-04-16 Jan Hubicka <hubicka@ucw.cz>
14116 PR gcov-profile/93401
14117 * common.opt (profile-prefix-path): New option.
14118 * coverae.c: Include diagnostics.h.
14119 (coverage_init): Strip profile prefix path.
14120 * doc/invoke.texi (-fprofile-prefix-path): Document.
14122 2020-04-16 Richard Biener <rguenther@suse.de>
14124 PR middle-end/94614
14125 * expr.c (emit_move_multi_word): Do not generate code when
14126 the destination part is undefined_operand_subword_p.
14127 * lower-subreg.c (resolve_clobber): Look through a paradoxica
14130 2020-04-16 Martin Jambor <mjambor@suse.cz>
14132 PR tree-optimization/94598
14133 * tree-sra.c (verify_sra_access_forest): Fix verification of total
14134 scalarization accesses under access to one-element arrays.
14136 2020-04-16 Jakub Jelinek <jakub@redhat.com>
14139 * function.c (assign_parm_find_data_types): Add workaround for
14140 BROKEN_VALUE_INITIALIZATION compilers.
14142 2020-04-16 Richard Biener <rguenther@suse.de>
14144 * gdbhooks.py (TreePrinter): Print SSA_NAME_VERSION of SSA_NAME
14147 2020-04-15 Uroš Bizjak <ubizjak@gmail.com>
14150 * config/i386/i386-builtin.def (__builtin_ia32_movq128):
14151 Require OPTION_MASK_ISA_SSE2.
14153 2020-04-15 Gustavo Romero <gromero@linux.ibm.com>
14156 * dumpfile.c (selftest::temp_dump_context::temp_dump_context):
14157 Don't construct a dump_context temporary to call static method.
14159 2020-04-15 Andrea Corallo <andrea.corallo@arm.com>
14161 * config/aarch64/falkor-tag-collision-avoidance.c
14162 (valid_src_p): Check for aarch64_address_info type before
14163 accessing base field.
14165 2020-04-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
14167 * config/arm/mve.md (mve_vec_duplicate<mode>): New pattern.
14168 (V_sz_elem2): Remove unused mode attribute.
14170 2020-04-15 Matthew Malcomson <matthew.malcomson@arm.com>
14172 * config/arm/arm.md (arm_movdi): Disallow for MVE.
14174 2020-04-15 Richard Biener <rguenther@suse.de>
14176 PR middle-end/94539
14177 * tree-ssa-alias.c (same_type_for_tbaa): Defer to
14178 alias_sets_conflict_p for pointers.
14180 2020-04-14 Max Filippov <jcmvbkbc@gmail.com>
14183 * config/xtensa/xtensa.md (zero_extendhisi2, zero_extendqisi2)
14184 (extendhisi2_internal): Add %v1 before the load instructions.
14186 2020-04-14 Aaron Sawdey <acsawdey@linux.ibm.com>
14189 * config/rs6000/rs6000.c (address_to_insn_form): Do not attempt to
14190 use PC-relative addressing for TLS references.
14192 2020-04-14 Martin Jambor <mjambor@suse.cz>
14195 * ipa-sra.c: Include internal-fn.h.
14196 (enum isra_scan_context): Update comment.
14197 (scan_function): Treat calls to internal_functions like loads or stores.
14199 2020-04-14 Yang Yang <yangyang305@huawei.com>
14201 PR tree-optimization/94574
14202 * tree-ssa.c (non_rewritable_lvalue_p): Add size check when analyzing
14203 whether a vector-insert is rewritable using a BIT_INSERT_EXPR.
14205 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
14208 * config/i386/i386.c (ix86_get_ssemov): Remove mode size check.
14210 2020-04-13 Martin Sebor <msebor@redhat.com>
14212 * doc/extend.texi (-Wall): Mention -Wformat-overflow and
14213 -Wformat-truncation. Move -Wzero-length-bounds last.
14214 (-Wrestrict): Document positive form of option enabled by -Wall.
14216 2020-04-13 Zachary Spytz <zspytz@gmail.com>
14218 * doc/extend.texi: Add realloc to list of built-in functions
14219 are recognized by the compiler.
14221 2020-04-13 H.J. Lu <hongjiu.lu@intel.com>
14224 * config/i386/i386.c (ix86_expand_epilogue): Restore the frame
14225 pointer in word_mode for eh_return epilogues.
14227 2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14229 * config/msp430/msp430.c (msp430_print_operand): Don't add offsets to
14230 memory references in %B, %C and %D operand selectors when the inner
14231 operand is a post increment address.
14233 2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14235 * config/msp430/msp430.c (msp430_print_operand): Offset a %C memory
14236 reference by 4 bytes, and %D memory reference by 6 bytes.
14238 2020-04-11 Uroš Bizjak <ubizjak@gmail.com>
14241 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE2
14242 condition for V4SI, V8HI and V16QI modes.
14244 2020-04-11 Jakub Jelinek <jakub@redhat.com>
14248 * cselib.c (cselib_record_sp_cfa_base_equiv): Set PRESERVED_VALUE_P on
14251 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
14253 PR middle-end/89433
14254 PR middle-end/93465
14255 * omp-general.c (oacc_verify_routine_clauses): Diagnose if
14256 "#pragma omp declare target" has also been applied.
14258 2020-04-09 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14260 * config/msp430/msp430.c (msp430_expand_epilogue): Use emit_jump_insn
14261 when to emit the epilogue_helper insn.
14262 * config/msp430/msp430.md (epilogue_helper): Add a return insn to the
14265 2020-04-09 Jakub Jelinek <jakub@redhat.com>
14268 * cselib.h (cselib_record_sp_cfa_base_equiv,
14269 cselib_sp_derived_value_p): Declare.
14270 * cselib.c (cselib_record_sp_cfa_base_equiv,
14271 cselib_sp_derived_value_p): New functions.
14272 * var-tracking.c (add_stores): Don't record MO_VAL_SET for
14273 cselib_sp_derived_value_p values.
14274 (vt_initialize): Call cselib_record_sp_cfa_base_equiv at the
14275 start of extended basic blocks other than the first one
14276 for !frame_pointer_needed functions.
14278 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
14280 * doc/sourcebuild.texi (aarch64_sve_hw, aarch64_sve128_hw)
14281 (aarch64_sve256_hw, aarch64_sve512_hw, aarch64_sve1024_hw)
14282 (aarch64_sve2048_hw): Document.
14283 * config/aarch64/aarch64-protos.h
14284 (aarch64_sve::handle_arm_sve_vector_bits_attribute): Declare.
14285 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14286 __ARM_FEATURE_SVE_VECTOR_OPERATIONS when SVE is enabled.
14287 * config/aarch64/aarch64-sve-builtins.cc (matches_type_p): New
14289 (find_type_suffix_for_scalar_type): Use it instead of comparing
14290 TYPE_MAIN_VARIANTs.
14291 (function_resolver::infer_vector_or_tuple_type): Likewise.
14292 (function_resolver::require_vector_type): Likewise.
14293 (handle_arm_sve_vector_bits_attribute): New function.
14294 * config/aarch64/aarch64.c (pure_scalable_type_info): New class.
14295 (aarch64_attribute_table): Add arm_sve_vector_bits.
14296 (aarch64_return_in_memory_1):
14297 (pure_scalable_type_info::piece::get_rtx): New function.
14298 (pure_scalable_type_info::num_zr): Likewise.
14299 (pure_scalable_type_info::num_pr): Likewise.
14300 (pure_scalable_type_info::get_rtx): Likewise.
14301 (pure_scalable_type_info::analyze): Likewise.
14302 (pure_scalable_type_info::analyze_registers): Likewise.
14303 (pure_scalable_type_info::analyze_array): Likewise.
14304 (pure_scalable_type_info::analyze_record): Likewise.
14305 (pure_scalable_type_info::add_piece): Likewise.
14306 (aarch64_some_values_include_pst_objects_p): Likewise.
14307 (aarch64_returns_value_in_sve_regs_p): Use pure_scalable_type_info
14308 to analyze whether the type is returned in SVE registers.
14309 (aarch64_takes_arguments_in_sve_regs_p): Likwise whether the type
14310 is passed in SVE registers.
14311 (aarch64_pass_by_reference_1): New function, extracted from...
14312 (aarch64_pass_by_reference): ...here. Use pure_scalable_type_info
14313 to analyze whether the type is a pure scalable type and, if so,
14314 whether it should be passed by reference.
14315 (aarch64_return_in_msb): Return false for pure scalable types.
14316 (aarch64_function_value_1): Fold back into...
14317 (aarch64_function_value): ...this function. Use
14318 pure_scalable_type_info to analyze whether the type is a pure
14319 scalable type and, if so, which registers it should use. Handle
14320 types that include pure scalable types but are not themselves
14321 pure scalable types.
14322 (aarch64_return_in_memory_1): New function, split out from...
14323 (aarch64_return_in_memory): ...here. Use pure_scalable_type_info
14324 to analyze whether the type is a pure scalable type and, if so,
14325 whether it should be returned by reference.
14326 (aarch64_layout_arg): Remove orig_mode argument. Use
14327 pure_scalable_type_info to analyze whether the type is a pure
14328 scalable type and, if so, which registers it should use. Handle
14329 types that include pure scalable types but are not themselves
14330 pure scalable types.
14331 (aarch64_function_arg): Update call accordingly.
14332 (aarch64_function_arg_advance): Likewise.
14333 (aarch64_pad_reg_upward): On big-endian targets, return false for
14334 pure scalable types that are smaller than 16 bytes.
14335 (aarch64_member_type_forces_blk): New function.
14336 (aapcs_vfp_sub_candidate): Exit early for built-in SVE types.
14337 (aarch64_short_vector_p): Return false for VECTOR_TYPEs that
14338 correspond to built-in SVE types. Do not rely on a vector mode
14339 if the type includes an pure scalable type. When returning true,
14340 assert that the mode is not an SVE mode.
14341 (aarch64_vfp_is_call_or_return_candidate): Do not check for SVE
14342 built-in types here. When returning true, assert that the type
14343 does not have an SVE mode.
14344 (aarch64_can_change_mode_class): Don't allow anything to change
14345 between a predicate mode and a non-predicate mode. Also don't
14346 allow changes between SVE vector modes and other modes that
14347 might be bigger than 128 bits.
14348 (aarch64_invalid_binary_op): Reject binary operations that mix
14349 SVE and GNU vector types.
14350 (TARGET_MEMBER_TYPE_FORCES_BLK): Define.
14352 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
14354 * config/aarch64/aarch64.c (aarch64_attribute_table): Add
14355 "SVE sizeless type".
14356 * config/aarch64/aarch64-sve-builtins.cc (make_type_sizeless)
14357 (sizeless_type_p): New functions.
14358 (register_builtin_types): Apply make_type_sizeless to the type.
14359 (register_tuple_type): Likewise.
14360 (verify_type_context): Use sizeless_type_p instead of builin_type_p.
14362 2020-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14364 * config/arm/arm_cde.h: Remove `extern "C"` when compiling for
14367 2020-04-09 Martin Jambor <mjambor@suse.cz>
14368 Richard Biener <rguenther@suse.de>
14370 PR tree-optimization/94482
14371 * tree-sra.c (create_access_replacement): Dump new replacement with
14373 (sra_modify_expr): Fix handling of cases when the original EXPR writes
14374 to only part of the replacement.
14375 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly verify
14376 the first operand of combinations into REAL/IMAGPART_EXPR and
14379 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
14381 * doc/sourcebuild.texi (check-function-bodies): Treat the third
14382 parameter as a list of option regexps and require each regexp
14385 2020-04-09 Andrea Corallo <andrea.corallo@arm.com>
14388 * config/aarch64/falkor-tag-collision-avoidance.c
14389 (valid_src_p): Fix missing rtx type check.
14391 2020-04-09 Bin Cheng <bin.cheng@linux.alibaba.com>
14392 Richard Biener <rguenther@suse.de>
14394 PR tree-optimization/93674
14395 * tree-ssa-loop-ivopts.c (langhooks.h): New include.
14396 (add_iv_candidate_for_use): For iv_use of non integer or pointer type,
14397 or non-mode precision type, add candidate in unsigned type with the
14400 2020-04-08 Clement Chigot <clement.chigot@atos.net>
14402 * config/rs6000/aix61.h (LIB_SPEC): Add -lc128 with -mlong-double-128.
14403 * config/rs6000/aix71.h (LIB_SPEC): Likewise.
14404 * config/rs6000/aix72.h (LIB_SPEC): Likewise.
14406 2020-04-08 Jakub Jelinek <jakub@redhat.com>
14408 PR middle-end/94526
14409 * cselib.c (autoinc_split): Handle e->val_rtx being SP_DERIVED_VALUE_P
14411 * reload1.c (eliminate_regs_1): Avoid creating
14412 (plus (reg) (const_int 0)) in DEBUG_INSNs.
14414 PR tree-optimization/94524
14415 * tree-vect-generic.c (expand_vector_divmod): If any elt of op1 is
14416 negative for signed TRUNC_MOD_EXPR, multiply with absolute value of
14417 op1 rather than op1 itself at the end. Punt for signed modulo by
14418 most negative constant.
14419 * tree-vect-patterns.c (vect_recog_divmod_pattern): Punt for signed
14420 modulo by most negative constant.
14422 2020-04-08 Richard Biener <rguenther@suse.de>
14424 PR rtl-optimization/93946
14425 * cse.c (cse_insn): Record the tabled expression in
14426 src_related. Verify a redundant store removal is valid.
14428 2020-04-08 H.J. Lu <hongjiu.lu@intel.com>
14431 * config/i386/i386-features.c (rest_of_insert_endbranch): Insert
14432 ENDBR at function entry if function will be called indirectly.
14434 2020-04-08 Jakub Jelinek <jakub@redhat.com>
14437 * config/i386/i386.c (ix86_get_mask_mode): Only use int mask for elem_size
14440 2020-04-08 Martin Liska <mliska@suse.cz>
14443 * gimple.c (gimple_call_operator_delete_p): Rename to...
14444 (gimple_call_replaceable_operator_delete_p): ... this.
14445 Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
14446 * gimple.h (gimple_call_operator_delete_p): Rename to ...
14447 (gimple_call_replaceable_operator_delete_p): ... this.
14448 * tree-core.h (tree_function_decl): Add replaceable_operator
14450 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1):
14451 Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
14452 (propagate_necessity): Use gimple_call_replaceable_operator_delete_p.
14453 (eliminate_unnecessary_stmts): Likewise.
14454 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
14455 Pack DECL_IS_REPLACEABLE_OPERATOR.
14456 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
14457 Unpack the field here.
14458 * tree.h (DECL_IS_REPLACEABLE_OPERATOR): New.
14459 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): New.
14460 (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): New.
14461 * cgraph.c (cgraph_node::dump): Dump if an operator is replaceable.
14462 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Compare
14463 replaceable operator flags.
14465 2020-04-08 Dennis Zhang <dennis.zhang@arm.com>
14466 Matthew Malcomson <matthew.malcomson@arm.com>
14468 * config/arm/arm-builtins.c (CX_IMM_QUALIFIERS): New macro.
14469 (CX_UNARY_QUALIFIERS, CX_BINARY_QUALIFIERS): Likewise.
14470 (CX_TERNARY_QUALIFIERS): Likewise.
14471 (ARM_BUILTIN_CDE_PATTERN_START): Likewise.
14472 (ARM_BUILTIN_CDE_PATTERN_END): Likewise.
14473 (arm_init_acle_builtins): Initialize CDE builtins.
14474 (arm_expand_acle_builtin): Check CDE constant operands.
14475 * config/arm/arm.h (ARM_CDE_CONST_COPROC): New macro to set the range
14476 of CDE constant operand.
14477 * config/arm/arm.c (arm_hard_regno_mode_ok): Support DImode for
14479 (ARM_VCDE_CONST_1, ARM_VCDE_CONST_2, ARM_VCDE_CONST_3): Likewise.
14480 * config/arm/arm_cde.h (__arm_vcx1_u32): New macro of ACLE interface.
14481 (__arm_vcx1a_u32, __arm_vcx2_u32, __arm_vcx2a_u32): Likewise.
14482 (__arm_vcx3_u32, __arm_vcx3a_u32, __arm_vcx1d_u64): Likewise.
14483 (__arm_vcx1da_u64, __arm_vcx2d_u64, __arm_vcx2da_u64): Likewise.
14484 (__arm_vcx3d_u64, __arm_vcx3da_u64): Likewise.
14485 * config/arm/arm_cde_builtins.def: New file.
14486 * config/arm/iterators.md (V_reg): New attribute of SI.
14487 * config/arm/predicates.md (const_int_coproc_operand): New.
14488 (const_int_vcde1_operand, const_int_vcde2_operand): New.
14489 (const_int_vcde3_operand): New.
14490 * config/arm/unspecs.md (UNSPEC_VCDE, UNSPEC_VCDEA): New.
14491 * config/arm/vfp.md (arm_vcx1<mode>): New entry.
14492 (arm_vcx1a<mode>, arm_vcx2<mode>, arm_vcx2a<mode>): Likewise.
14493 (arm_vcx3<mode>, arm_vcx3a<mode>): Likewise.
14495 2020-04-08 Dennis Zhang <dennis.zhang@arm.com>
14497 * config.gcc: Add arm_cde.h.
14498 * config/arm/arm-c.c (arm_cpu_builtins): Define or undefine
14499 __ARM_FEATURE_CDE and __ARM_FEATURE_CDE_COPROC.
14500 * config/arm/arm-cpus.in (cdecp0, cdecp1, ..., cdecp7): New options.
14501 * config/arm/arm.c (arm_option_reconfigure_globals): Configure
14502 arm_arch_cde and arm_arch_cde_coproc to store the feature bits.
14503 * config/arm/arm.h (TARGET_CDE): New macro.
14504 * config/arm/arm_cde.h: New file.
14505 * doc/invoke.texi: Document CDE options +cdecp[0-7].
14506 * doc/sourcebuild.texi (arm_v8m_main_cde_ok): Document new target
14508 (arm_v8m_main_cde_fp, arm_v8_1m_main_cde_mve): Likewise.
14510 2020-04-08 Jakub Jelinek <jakub@redhat.com>
14512 PR rtl-optimization/94516
14513 * postreload.c: Include rtl-iter.h.
14514 (reload_cse_move2add): Handle SP autoinc here by FOR_EACH_SUBRTX_VAR
14515 looking for all MEMs with RTX_AUTOINC operand.
14516 (move2add_note_store): Remove {PRE,POST}_{INC,DEC} handling.
14518 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
14520 * omp-grid.c (grid_eliminate_combined_simd_part): Use
14521 OMP_CLAUSE_CODE to access the omp clause code.
14523 2020-04-07 Jeff Law <law@redhat.com>
14525 PR rtl-optimization/92264
14526 * config/h8300/h8300.md (mov;add peephole2): Avoid applying when
14527 the destination is the stack pointer.
14529 2020-04-07 Jakub Jelinek <jakub@redhat.com>
14531 PR rtl-optimization/94291
14532 PR rtl-optimization/84169
14533 * combine.c (try_combine): For split_i2i3, don't assume SET_DEST
14534 must be a REG or SUBREG of REG; if it is not one of these, don't
14537 2020-04-07 Richard Biener <rguenther@suse.de>
14539 PR middle-end/94479
14540 * gimplify.c (gimplify_addr_expr): Also consider generated
14543 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14545 * config/arm/arm_mve.h: Add C++ polymorphism and fix preserve MACROs.
14547 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14549 * config/arm/arm_mve.h: Cast some pointers to expected types.
14551 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14553 * config/arm/arm_mve.h: Replace all uses of vuninitializedq_* with the
14554 same with '__arm_' prefix.
14556 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14558 * config/arm/mve.md (mve_vec_extract*): Allow memory operands in set.
14560 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14562 * config/arm/arm.c (arm_mve_immediate_check): Removed.
14563 * config/arm/mve.md (MVE_pred2, MVE_constraint2): Added FP types.
14564 (mve_vcvtq_n_to_f_*, mve_vcvtq_n_from_f_*, mve_vqshrnbq_n_*,
14565 mve_vqshrntq_n_*, mve_vqshrunbq_n_s*, mve_vqshruntq_n_s*,
14566 mve_vcvtq_m_n_from_f_*, mve_vcvtq_m_n_to_f_*, mve_vqshrnbq_m_n_*,
14567 mve_vqrshruntq_m_n_s*, mve_vqshrunbq_m_n_s*,
14568 mve_vqshruntq_m_n_s*): Fixed immediate constraints.
14570 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14572 * config/arm/arm.d (ashldi3): Don't use lsll for constant 32-bit shifts.
14574 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14576 * config/arm/arm_mve.h: Fix v[id]wdup intrinsics.
14577 * config/arm/mve/md: Fix v[id]wdup patterns.
14579 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14581 * config/arm/arm.c (output_move_neon): Deal with label + offset cases.
14582 * config/arm/mve.md (*mve_mov<mode>): Handle const vectors.
14584 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14586 * config/arm/arm_mve.h: Remove use of typeof for addr pointer parameters
14587 and remove const_ptr enums.
14589 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
14591 * config/arm/arm_mve.h (vsubq_n): Merge with...
14593 (vmulq_n): Merge with...
14595 (__ARM_mve_typeid): Simplify scalar and constant detection.
14597 2020-04-07 Jakub Jelinek <jakub@redhat.com>
14600 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Fix the check
14601 for inter-lane permutation for 64-byte modes.
14604 * config/aarch64/aarch64-simd.md (ashl<mode>3, lshr<mode>3,
14605 ashr<mode>3): Force operands[2] into reg whenever it is not CONST_INT.
14606 Assume it is a REG after that instead of testing it and doing FAIL
14607 otherwise. Formatting fix.
14609 2020-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
14611 * config/rs6000/t-rtems: Delete mcpu=8540 multilib.
14613 2020-04-07 Jakub Jelinek <jakub@redhat.com>
14616 * config/i386/i386-expand.c (emit_reduc_half): For V{64QI,32HI}mode
14617 handle i < 64 using avx512bw_lshrv4ti3. Formatting fixes.
14619 2020-04-06 Jakub Jelinek <jakub@redhat.com>
14621 * cselib.c (cselib_subst_to_values): For SP_DERIVED_VALUE_P
14622 + const0_rtx return the SP_DERIVED_VALUE_P.
14624 2020-04-06 Richard Sandiford <richard.sandiford@arm.com>
14626 PR rtl-optimization/92989
14627 * lra-lives.c (process_bb_lives): Do not treat eh_return data
14628 registers as being live at the beginning of the EH receiver.
14630 2020-04-05 Zachary Spytz <zspytz@gmail.com>
14632 * extend.texi: Add free to list of ISO C90 functions that
14633 are recognized by the compiler.
14635 2020-04-05 Nagaraju Mekala <nmekala@xilix.com>
14637 * config/microblaze/microblaze.c (microblaze_must_save_register): Check
14638 for fast_interrupt.
14640 * config/microblaze/microblaze.md (trap): Update output pattern.
14642 2020-04-04 Hannes Domani <ssbssa@yahoo.de>
14643 Jakub Jelinek <jakub@redhat.com>
14646 * dwarf2out.c (gen_subprogram_die): Look through references, pointers,
14647 arrays, pointer-to-members, function types and qualifiers when
14648 checking if in-class DIE had an 'auto' or 'decltype(auto)' return type
14649 to emit type again on definition.
14651 2020-04-04 Jan Hubicka <hubicka@ucw.cz>
14654 * ipa-fnsummary.c (vrp_will_run_p): New function.
14655 (fre_will_run_p): New function.
14656 (evaluate_properties_for_edge): Use it.
14657 * ipa-inline.c (can_inline_edge_by_limits_p): Do not inline
14658 !optimize_debug to optimize_debug.
14660 2020-04-04 Jakub Jelinek <jakub@redhat.com>
14662 PR rtl-optimization/94468
14663 * cselib.c (references_value_p): Formatting fix.
14664 (cselib_useless_value_p): New function.
14665 (discard_useless_locs, discard_useless_values,
14666 cselib_invalidate_regno_val, cselib_invalidate_mem,
14667 cselib_record_set): Use it instead of
14668 v->locs == 0 && !PRESERVED_VALUE_P (v->val_rtx).
14671 * tree-iterator.h (expr_single): Declare.
14672 * tree-iterator.c (expr_single): New function.
14673 * tree.h (protected_set_expr_location_if_unset): Declare.
14674 * tree.c (protected_set_expr_location): Use expr_single.
14675 (protected_set_expr_location_if_unset): New function.
14677 2020-04-03 Jeff Law <law@redhat.com>
14679 PR rtl-optimization/92264
14680 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Handle
14681 reloading of auto-increment addressing modes.
14683 2020-04-03 H.J. Lu <hongjiu.lu@intel.com>
14686 * config/i386/sse.md (ssse3_pshufbv8qi3): Mark scratch operand
14689 2020-04-03 Jeff Law <law@redhat.com>
14691 PR rtl-optimization/92264
14692 * config/m32r/m32r.c (m32r_output_block_move): Properly account for
14693 post-increment addressing of source operands as well as residuals
14694 when computing any adjustments to the input pointer.
14696 2020-04-03 Jakub Jelinek <jakub@redhat.com>
14699 * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
14700 avx2_ph<plusminus_mnemonic>dv8si3): Fix up RTL pattern to do
14701 second half of first lane from first lane of second operand and
14702 first half of second lane from second lane of first operand.
14704 2020-04-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
14706 * config/arm/arm_mve.h: Condition the header file on __ARM_FEATURE_MVE.
14708 2020-04-03 Tamar Christina <tamar.christina@arm.com>
14711 * common/config/aarch64/aarch64-common.c
14712 (aarch64_get_extension_string_for_isa_flags): Handle default flags.
14714 2020-04-03 Richard Biener <rguenther@suse.de>
14716 PR middle-end/94465
14717 * tree.c (array_ref_low_bound): Deal with released SSA names
14720 2020-04-03 Kwok Cheung Yeung <kcy@codesourcery.com>
14722 * config/gcn/gcn.c (print_operand): Handle unordered comparison
14724 * config/gcn/predicates.md (gcn_fp_compare_operator): Add unordered
14725 comparison operators.
14727 2020-04-03 Kewen Lin <linkw@gcc.gnu.org>
14729 PR tree-optimization/94443
14730 * tree-vect-loop.c (vectorizable_live_operation): Use
14731 gsi_insert_seq_before to replace gsi_insert_before.
14733 2020-04-03 Martin Liska <mliska@suse.cz>
14736 * ipa-icf-gimple.c (func_checker::compare_gimple_call):
14737 Compare type attributes for gimple_call_fntypes.
14739 2020-04-02 Sandra Loosemore <sandra@codesourcery.com>
14741 * alias.c (get_alias_set): Fix comment typos.
14743 2020-04-02 Fritz Reese <foreese@gcc.gnu.org>
14746 * fortran/decl.c (match_attr_spec): Lump COMP_STRUCTURE/COMP_MAP into
14747 attribute checking used by TYPE.
14749 2020-04-02 Martin Jambor <mjambor@suse.cz>
14752 * ipa-sra.c (struct caller_issues): New fields candidate and
14753 call_from_outside_comdat.
14754 (check_for_caller_issues): Check for calls from outsied of
14755 candidate's same_comdat_group.
14756 (check_all_callers_for_issues): Set up issues.candidate, check result
14758 (mark_callers_calls_comdat_local): New function.
14759 (process_isra_node_results): Set calls_comdat_local of callers if
14762 2020-04-02 Richard Biener <rguenther@suse.de>
14765 * common.opt (ffinite-loops): Initialize to zero.
14766 * opts.c (default_options_table): Remove OPT_ffinite_loops
14768 * cfgloop.h (loop::finite_p): New member.
14769 * cfgloopmanip.c (copy_loop_info): Copy finite_p.
14770 * ipa-icf-gimple.c (func_checker::compare_loops): Compare
14772 * lto-streamer-in.c (input_cfg): Stream finite_p.
14773 * lto-streamer-out.c (output_cfg): Likewise.
14774 * tree-cfg.c (replace_loop_annotate): Initialize finite_p
14775 from flag_finite_loops at CFG build time.
14776 * tree-ssa-loop-niter.c (finite_loop_p): Check the loops
14777 finite_p flag instead of flag_finite_loops.
14778 * doc/invoke.texi (ffinite-loops): Adjust documentation of
14781 2020-04-02 Richard Biener <rguenther@suse.de>
14784 * dwarf2out.c (dwarf2out_early_finish): Remove code emitting
14785 DW_TAG_imported_unit.
14787 2020-04-02 Maciej W. Rozycki <macro@wdc.com>
14789 * doc/install.texi (Specific) <riscv32-*-elf, riscv32-*-linux>
14790 <riscv64-*-elf, riscv64-*-linux>: Update binutils requirement to
14793 2020-04-02 Kewen Lin <linkw@gcc.gnu.org>
14795 PR tree-optimization/94401
14796 * tree-vect-loop.c (vectorizable_load): Handle VMAT_CONTIGUOUS_REVERSE
14797 access type when loading halves of vector to avoid peeling for gaps.
14799 2020-04-02 Jakub Jelinek <jakub@redhat.com>
14801 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add a space in
14802 between a string literal and MIPS_SYSVERSION_SPEC macro.
14804 2020-04-02 Martin Jambor <mjambor@suse.cz>
14806 * doc/invoke.texi (Optimize Options): Document sra-max-propagations.
14808 2020-04-02 Jakub Jelinek <jakub@redhat.com>
14810 PR rtl-optimization/92264
14811 * params.opt (-param=max-find-base-term-values=): Decrease default
14814 PR rtl-optimization/92264
14815 * rtl.h (struct rtx_def): Mention that call bit is used as
14816 SP_DERIVED_VALUE_P in cselib.c.
14817 * cselib.c (SP_DERIVED_VALUE_P): Define.
14818 (PRESERVED_VALUE_P, SP_BASED_VALUE_P): Move definitions earlier.
14819 (cselib_hasher::equal): Handle equality between SP_DERIVED_VALUE_P
14820 val_rtx and sp based expression where offsets cancel each other.
14821 (preserve_constants_and_equivs): Formatting fix.
14822 (cselib_reset_table): Add reverse op loc to SP_DERIVED_VALUE_P
14823 locs list for cfa_base_preserved_val if needed. Formatting fix.
14824 (autoinc_split): If the to be returned value is a REG, MEM or
14825 VALUE which has SP_DERIVED_VALUE_P + CONST_INT as one of its
14826 locs, return the SP_DERIVED_VALUE_P VALUE and adjust *off.
14827 (rtx_equal_for_cselib_1): Call autoinc_split even if both
14828 expressions are PLUS in Pmode with CONST_INT second operands.
14829 Handle SP_DERIVED_VALUE_P cases.
14830 (cselib_hash_plus_const_int): New function.
14831 (cselib_hash_rtx): Use it for PLUS in Pmode with CONST_INT
14832 second operand, as well as for PRE_DEC etc. that ought to be
14833 hashed the same way.
14834 (cselib_subst_to_values): Substitute PLUS with Pmode and
14835 CONST_INT operand if the first operand is a VALUE which has
14836 SP_DERIVED_VALUE_P + CONST_INT as one of its locs for the
14837 SP_DERIVED_VALUE_P + adjusted offset.
14838 (cselib_lookup_1): When creating a new VALUE for stack_pointer_rtx,
14839 set SP_DERIVED_VALUE_P on it. Set PRESERVED_VALUE_P when adding
14840 SP_DERIVED_VALUE_P PRESERVED_VALUE_P subseted VALUE location.
14841 * var-tracking.c (vt_initialize): Call cselib_add_permanent_equiv
14842 on the sp value before calling cselib_add_permanent_equiv on the
14844 * dse.c (check_for_inc_dec_1, check_for_inc_dec): Punt on RTX_AUTOINC
14845 in the insn without REG_INC note.
14846 (replace_read): Punt on RTX_AUTOINC in the *loc being replaced.
14847 Punt on invalid insns added by copy_to_mode_reg. Formatting fixes.
14850 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): For
14851 y_mode E_[QH]Imode and y being a CONST_INT, change y_mode to SImode.
14853 2020-04-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14856 * config/arm/arm-builtins.c (LDRGBWBXU_QUALIFIERS): Define.
14857 (LDRGBWBXU_Z_QUALIFIERS): Likewise.
14858 * config/arm/arm_mve.h (__arm_vldrdq_gather_base_wb_s64): Modify
14859 intrinsic defintion by adding a new builtin call to writeback into base
14861 (__arm_vldrdq_gather_base_wb_u64): Likewise.
14862 (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
14863 (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
14864 (__arm_vldrwq_gather_base_wb_s32): Likewise.
14865 (__arm_vldrwq_gather_base_wb_u32): Likewise.
14866 (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
14867 (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
14868 (__arm_vldrwq_gather_base_wb_f32): Likewise.
14869 (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
14870 * config/arm/arm_mve_builtins.def (vldrwq_gather_base_wb_z_u): Modify
14871 builtin's qualifier.
14872 (vldrdq_gather_base_wb_z_u): Likewise.
14873 (vldrwq_gather_base_wb_u): Likewise.
14874 (vldrdq_gather_base_wb_u): Likewise.
14875 (vldrwq_gather_base_wb_z_s): Likewise.
14876 (vldrwq_gather_base_wb_z_f): Likewise.
14877 (vldrdq_gather_base_wb_z_s): Likewise.
14878 (vldrwq_gather_base_wb_s): Likewise.
14879 (vldrwq_gather_base_wb_f): Likewise.
14880 (vldrdq_gather_base_wb_s): Likewise.
14881 (vldrwq_gather_base_nowb_z_u): Define builtin.
14882 (vldrdq_gather_base_nowb_z_u): Likewise.
14883 (vldrwq_gather_base_nowb_u): Likewise.
14884 (vldrdq_gather_base_nowb_u): Likewise.
14885 (vldrwq_gather_base_nowb_z_s): Likewise.
14886 (vldrwq_gather_base_nowb_z_f): Likewise.
14887 (vldrdq_gather_base_nowb_z_s): Likewise.
14888 (vldrwq_gather_base_nowb_s): Likewise.
14889 (vldrwq_gather_base_nowb_f): Likewise.
14890 (vldrdq_gather_base_nowb_s): Likewise.
14891 * config/arm/mve.md (mve_vldrwq_gather_base_nowb_<supf>v4si): Define RTL
14893 (mve_vldrwq_gather_base_wb_<supf>v4si): Modify RTL pattern.
14894 (mve_vldrwq_gather_base_nowb_z_<supf>v4si): Define RTL pattern.
14895 (mve_vldrwq_gather_base_wb_z_<supf>v4si): Modify RTL pattern.
14896 (mve_vldrwq_gather_base_wb_fv4sf): Modify RTL pattern.
14897 (mve_vldrwq_gather_base_nowb_fv4sf): Define RTL pattern.
14898 (mve_vldrwq_gather_base_wb_z_fv4sf): Modify RTL pattern.
14899 (mve_vldrwq_gather_base_nowb_z_fv4sf): Define RTL pattern.
14900 (mve_vldrdq_gather_base_nowb_<supf>v4di): Define RTL pattern.
14901 (mve_vldrdq_gather_base_wb_<supf>v4di): Modify RTL pattern.
14902 (mve_vldrdq_gather_base_nowb_z_<supf>v4di): Define RTL pattern.
14903 (mve_vldrdq_gather_base_wb_z_<supf>v4di): Modify RTL pattern.
14905 2020-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14907 * config/s390/vector.md ("<ti*>add<mode>3", "mul<mode>3")
14908 ("and<mode>3", "notand<mode>3", "ior<mode>3", "ior_not<mode>3")
14909 ("xor<mode>3", "notxor<mode>3", "smin<mode>3", "smax<mode>3")
14910 ("umin<mode>3", "umax<mode>3", "vec_widen_smult_even_<mode>")
14911 ("vec_widen_umult_even_<mode>", "vec_widen_smult_odd_<mode>")
14912 ("vec_widen_umult_odd_<mode>", "add<mode>3", "sub<mode>3")
14913 ("mul<mode>3", "fma<mode>4", "fms<mode>4", "neg_fma<mode>4")
14914 ("neg_fms<mode>4", "*smax<mode>3_vxe", "*smaxv2df3_vx")
14915 ("*smin<mode>3_vxe", "*sminv2df3_vx"): Remove % constraint
14917 ("vec_widen_umult_lo_<mode>", "vec_widen_umult_hi_<mode>")
14918 ("vec_widen_smult_lo_<mode>", "vec_widen_smult_hi_<mode>"):
14919 Remove constraints from expander.
14920 * config/s390/vx-builtins.md ("vacc<bhfgq>_<mode>", "vacq")
14921 ("vacccq", "vec_avg<mode>", "vec_avgu<mode>", "vec_vmal<mode>")
14922 ("vec_vmah<mode>", "vec_vmalh<mode>", "vec_vmae<mode>")
14923 ("vec_vmale<mode>", "vec_vmao<mode>", "vec_vmalo<mode>")
14924 ("vec_smulh<mode>", "vec_umulh<mode>", "vec_nor<mode>3")
14925 ("vfmin<mode>", "vfmax<mode>"): Remove % constraint modifier.
14927 2020-04-01 Peter Bergner <bergner@linux.ibm.com>
14929 PR rtl-optimization/94123
14930 * lower-subreg.c (pass_lower_subreg3::gate): Remove test for
14931 flag_split_wide_types_early.
14933 2020-04-01 Joerg Sonnenberger <joerg@bec.de>
14935 * doc/extend.texi (Common Function Attributes): Fix typo.
14937 2020-04-01 Segher Boessenkool <segher@kernel.crashing.org>
14940 * config/rs6000/rs6000.md (*tocref<mode> for P): Add insn condition
14943 2020-04-01 Zackery Spytz <zspytz@gmail.com>
14945 * doc/extend.texi: Fix a typo in the documentation of the
14946 copy function attribute.
14948 2020-04-01 Jakub Jelinek <jakub@redhat.com>
14950 PR middle-end/94423
14951 * tree-object-size.c (pass_object_sizes::execute): Don't call
14952 replace_uses_by for SSA_NAME_OCCURS_IN_ABNORMAL_PHI lhs, instead
14953 call replace_call_with_value.
14955 2020-04-01 Kewen Lin <linkw@gcc.gnu.org>
14957 PR tree-optimization/94043
14958 * tree-vect-loop.c (vectorizable_live_operation): Generate loop-closed
14959 phi for vec_lhs and use it for lane extraction.
14961 2020-03-31 Felix Yang <felix.yang@huawei.com>
14963 PR tree-optimization/94398
14964 * tree-vect-stmts.c (vectorizable_store): Instead of calling
14965 vect_supportable_dr_alignment, set alignment_support_scheme to
14966 dr_unaligned_supported for gather-scatter accesses.
14967 (vectorizable_load): Likewise.
14969 2020-03-31 Andrew Stubbs <ams@codesourcery.com>
14971 * config/gcn/gcn-valu.md (V_QI, V_HI, V_HF, V_SI, V_SF, V_DI, V_DF):
14972 New mode iterators.
14973 (vnsi, VnSI, vndi, VnDI): New mode attributes.
14974 (mov<mode>): Use <VnDI> in place of V64DI.
14975 (mov<mode>_exec): Likewise.
14976 (mov<mode>_sgprbase): Likewise.
14977 (reload_out<mode>): Likewise.
14978 (*vec_set<mode>_1): Use GET_MODE_NUNITS instead of constant 64.
14979 (gather_load<mode>v64si): Rename to ...
14980 (gather_load<mode><vnsi>): ... this, and use <VnSI> in place of V64SI,
14981 and <VnDI> in place of V64DI.
14982 (gather<mode>_insn_1offset<exec>): Use <VnDI> in place of V64DI.
14983 (gather<mode>_insn_1offset_ds<exec>): Use <VnSI> in place of V64SI.
14984 (gather<mode>_insn_2offsets<exec>): Use <VnSI> and <VnDI>.
14985 (scatter_store<mode>v64si): Rename to ...
14986 (scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
14987 (scatter<mode>_expr<exec_scatter>): Use <VnSI> and <VnDI>.
14988 (scatter<mode>_insn_1offset<exec_scatter>): Likewise.
14989 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
14990 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
14991 (ds_bpermute<mode>): Use <VnSI>.
14992 (addv64si3_vcc<exec_vcc>): Rename to ...
14993 (add<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
14994 (addv64si3_vcc_dup<exec_vcc>): Rename to ...
14995 (add<mode>3_vcc_dup<exec_vcc>): ... this, and use V_SI.
14996 (addcv64si3<exec_vcc>): Rename to ...
14997 (addc<mode>3<exec_vcc>): ... this, and use V_SI.
14998 (subv64si3_vcc<exec_vcc>): Rename to ...
14999 (sub<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
15000 (subcv64si3<exec_vcc>): Rename to ...
15001 (subc<mode>3<exec_vcc>): ... this, and use V_SI.
15002 (addv64di3): Rename to ...
15003 (add<mode>3): ... this, and use V_DI.
15004 (addv64di3_exec): Rename to ...
15005 (add<mode>3_exec): ... this, and use V_DI.
15006 (subv64di3): Rename to ...
15007 (sub<mode>3): ... this, and use V_DI.
15008 (subv64di3_exec): Rename to ...
15009 (sub<mode>3_exec): ... this, and use V_DI.
15010 (addv64di3_zext): Rename to ...
15011 (add<mode>3_zext): ... this, and use V_DI and <VnSI>.
15012 (addv64di3_zext_exec): Rename to ...
15013 (add<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
15014 (addv64di3_zext_dup): Rename to ...
15015 (add<mode>3_zext_dup): ... this, and use V_DI and <VnSI>.
15016 (addv64di3_zext_dup_exec): Rename to ...
15017 (add<mode>3_zext_dup_exec): ... this, and use V_DI and <VnSI>.
15018 (addv64di3_zext_dup2): Rename to ...
15019 (add<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
15020 (addv64di3_zext_dup2_exec): Rename to ...
15021 (add<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
15022 (addv64di3_sext_dup2): Rename to ...
15023 (add<mode>3_sext_dup2): ... this, and use V_DI and <VnSI>.
15024 (addv64di3_sext_dup2_exec): Rename to ...
15025 (add<mode>3_sext_dup2_exec): ... this, and use V_DI and <VnSI>.
15026 (<su>mulv64si3_highpart<exec>): Rename to ...
15027 (<su>mul<mode>3_highpart<exec>): ... this and use V_SI and <VnDI>.
15028 (mulv64di3): Rename to ...
15029 (mul<mode>3): ... this, and use V_DI and <VnSI>.
15030 (mulv64di3_exec): Rename to ...
15031 (mul<mode>3_exec): ... this, and use V_DI and <VnSI>.
15032 (mulv64di3_zext): Rename to ...
15033 (mul<mode>3_zext): ... this, and use V_DI and <VnSI>.
15034 (mulv64di3_zext_exec): Rename to ...
15035 (mul<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
15036 (mulv64di3_zext_dup2): Rename to ...
15037 (mul<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
15038 (mulv64di3_zext_dup2_exec): Rename to ...
15039 (mul<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
15040 (<expander>v64di3): Rename to ...
15041 (<expander><mode>3): ... this, and use V_DI and <VnSI>.
15042 (<expander>v64di3_exec): Rename to ...
15043 (<expander><mode>3_exec): ... this, and use V_DI and <VnSI>.
15044 (<expander>v64si3<exec>): Rename to ...
15045 (<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
15046 (v<expander>v64si3<exec>): Rename to ...
15047 (v<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
15048 (<expander>v64si3<exec>): Rename to ...
15049 (<expander><vnsi>3<exec>): ... this, and use V_SI.
15050 (subv64df3<exec>): Rename to ...
15051 (sub<mode>3<exec>): ... this, and use V_DF.
15052 (truncv64di<mode>2): Rename to ...
15053 (trunc<vndi><mode>2): ... this, and use <VnDI>.
15054 (truncv64di<mode>2_exec): Rename to ...
15055 (trunc<vndi><mode>2_exec): ... this, and use <VnDI>.
15056 (<convop><mode>v64di2): Rename to ...
15057 (<convop><mode><vndi>2): ... this, and use <VnDI>.
15058 (<convop><mode>v64di2_exec): Rename to ...
15059 (<convop><mode><vndi>2_exec): ... this, and use <VnDI>.
15060 (vec_cmp<u>v64qidi): Rename to ...
15061 (vec_cmp<u><mode>di): ... this, and use <VnSI>.
15062 (vec_cmp<u>v64qidi_exec): Rename to ...
15063 (vec_cmp<u><mode>di_exec): ... this, and use <VnSI>.
15064 (vcond_mask_<mode>di): Use <VnDI>.
15065 (maskload<mode>di): Likewise.
15066 (maskstore<mode>di): Likewise.
15067 (mask_gather_load<mode>v64si): Rename to ...
15068 (mask_gather_load<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
15069 (mask_scatter_store<mode>v64si): Rename to ...
15070 (mask_scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
15071 (*<reduc_op>_dpp_shr_v64di): Rename to ...
15072 (*<reduc_op>_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
15073 (*plus_carry_in_dpp_shr_v64si): Rename to ...
15074 (*plus_carry_in_dpp_shr_<mode>): ... this, and use V_SI.
15075 (*plus_carry_dpp_shr_v64di): Rename to ...
15076 (*plus_carry_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
15077 (vec_seriesv64si): Rename to ...
15078 (vec_series<mode>): ... this, and use V_SI.
15079 (vec_seriesv64di): Rename to ...
15080 (vec_series<mode>): ... this, and use V_DI.
15082 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
15084 * config/arc/arc.c (arc_print_operand): Use
15085 HOST_WIDE_INT_PRINT_DEC macro.
15087 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
15089 * config/arc/arc.h (ASM_FORMAT_PRIVATE_NAME): Fix it.
15091 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15093 * config/arm/arm_mve.h (vbicq): Define MVE intrinsic polymorphic
15095 (__arm_vbicq): Likewise.
15097 2020-03-31 Vineet Gupta <vgupta@synopsys.com>
15099 * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700.
15101 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15103 * config/arm/arm_mve.h (vaddlvq): Move the polymorphic variant to the
15104 common section of both MVE Integer and MVE Floating Point.
15105 (vaddvq): Likewise.
15106 (vaddlvq_p): Likewise.
15107 (vaddvaq): Likewise.
15108 (vaddvq_p): Likewise.
15109 (vcmpcsq): Likewise.
15110 (vmlsdavxq): Likewise.
15111 (vmlsdavq): Likewise.
15112 (vmladavxq): Likewise.
15113 (vmladavq): Likewise.
15114 (vminvq): Likewise.
15115 (vminavq): Likewise.
15116 (vmaxvq): Likewise.
15117 (vmaxavq): Likewise.
15118 (vmlaldavq): Likewise.
15119 (vcmphiq): Likewise.
15120 (vaddlvaq): Likewise.
15121 (vrmlaldavhq): Likewise.
15122 (vrmlaldavhxq): Likewise.
15123 (vrmlsldavhq): Likewise.
15124 (vrmlsldavhxq): Likewise.
15125 (vmlsldavxq): Likewise.
15126 (vmlsldavq): Likewise.
15127 (vabavq): Likewise.
15128 (vrmlaldavhaq): Likewise.
15129 (vcmpgeq_m_n): Likewise.
15130 (vmlsdavxq_p): Likewise.
15131 (vmlsdavq_p): Likewise.
15132 (vmlsdavaxq): Likewise.
15133 (vmlsdavaq): Likewise.
15134 (vaddvaq_p): Likewise.
15135 (vcmpcsq_m_n): Likewise.
15136 (vcmpcsq_m): Likewise.
15137 (vmladavxq_p): Likewise.
15138 (vmladavq_p): Likewise.
15139 (vmladavaxq): Likewise.
15140 (vmladavaq): Likewise.
15141 (vminvq_p): Likewise.
15142 (vminavq_p): Likewise.
15143 (vmaxvq_p): Likewise.
15144 (vmaxavq_p): Likewise.
15145 (vcmphiq_m): Likewise.
15146 (vaddlvaq_p): Likewise.
15147 (vmlaldavaq): Likewise.
15148 (vmlaldavaxq): Likewise.
15149 (vmlaldavq_p): Likewise.
15150 (vmlaldavxq_p): Likewise.
15151 (vmlsldavaq): Likewise.
15152 (vmlsldavaxq): Likewise.
15153 (vmlsldavq_p): Likewise.
15154 (vmlsldavxq_p): Likewise.
15155 (vrmlaldavhaxq): Likewise.
15156 (vrmlaldavhq_p): Likewise.
15157 (vrmlaldavhxq_p): Likewise.
15158 (vrmlsldavhaq): Likewise.
15159 (vrmlsldavhaxq): Likewise.
15160 (vrmlsldavhq_p): Likewise.
15161 (vrmlsldavhxq_p): Likewise.
15162 (vabavq_p): Likewise.
15163 (vmladavaq_p): Likewise.
15164 (vstrbq_scatter_offset): Likewise.
15165 (vstrbq_p): Likewise.
15166 (vstrbq_scatter_offset_p): Likewise.
15167 (vstrdq_scatter_base_p): Likewise.
15168 (vstrdq_scatter_base): Likewise.
15169 (vstrdq_scatter_offset_p): Likewise.
15170 (vstrdq_scatter_offset): Likewise.
15171 (vstrdq_scatter_shifted_offset_p): Likewise.
15172 (vstrdq_scatter_shifted_offset): Likewise.
15173 (vmaxq_x): Likewise.
15174 (vminq_x): Likewise.
15175 (vmovlbq_x): Likewise.
15176 (vmovltq_x): Likewise.
15177 (vmulhq_x): Likewise.
15178 (vmullbq_int_x): Likewise.
15179 (vmullbq_poly_x): Likewise.
15180 (vmulltq_int_x): Likewise.
15181 (vmulltq_poly_x): Likewise.
15182 (vstrbq): Likewise.
15184 2020-03-31 Jakub Jelinek <jakub@redhat.com>
15187 * config/aarch64/constraints.md (Uph): New constraint.
15188 * config/aarch64/atomics.md (cas_short_expected_imm): New mode attr.
15189 (@aarch64_compare_and_swap<mode>): Use it instead of n in operand 2's
15192 2020-03-31 Marc Glisse <marc.glisse@inria.fr>
15193 Jakub Jelinek <jakub@redhat.com>
15195 PR middle-end/94412
15196 * fold-const.c (fold_binary_loc) <case TRUNC_DIV_EXPR>: Use
15197 ANY_INTEGRAL_TYPE_P instead of INTEGRAL_TYPE_P.
15199 2020-03-31 Jakub Jelinek <jakub@redhat.com>
15201 PR tree-optimization/94403
15202 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Allow also
15203 ENUMERAL_TYPE lhs_type.
15205 PR rtl-optimization/94344
15206 * tree-ssa-forwprop.c (simplify_rotate): Handle also same precision
15207 conversions, either on both operands of |^+ or just one. Handle
15208 also extra same precision conversion on RSHIFT_EXPR first operand
15209 provided RSHIFT_EXPR is performed in unsigned type.
15211 2020-03-30 David Malcolm <dmalcolm@redhat.com>
15213 * lra.c (finish_insn_code_data_once): Set the array elements
15214 to NULL after freeing them.
15216 2020-03-30 Andreas Schwab <schwab@suse.de>
15218 * config/host-linux.c (TRY_EMPTY_VM_SPACE) [__riscv && __LP64__]:
15221 2020-03-30 Will Schmidt <will_schmidt@vnet.ibm.com>
15223 * config/rs6000/rs6000-call.c altivec_init_builtins(): Remove code
15224 to skip defining builtins based on builtin_mask.
15226 2020-03-30 Jakub Jelinek <jakub@redhat.com>
15229 * config/i386/sse.md (<mask_codefor>one_cmpl<mode>2<mask_name>): If
15230 !TARGET_AVX512VL, use 512-bit vpternlog and make sure the input
15231 operand is a register. Don't enable masked variants for V*[QH]Imode.
15234 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Use
15235 <store_mask_constraint> instead of m in output operand constraint.
15236 (vec_extract_hi_<mode><mask_name>): Use <mask_operand2> instead of
15239 2020-03-30 Alan Modra <amodra@gmail.com>
15241 * config/rs6000/rs6000.c (rs6000_call_aix): Emit cookie to pattern.
15242 (rs6000_indirect_call_template_1): Adjust to suit.
15243 * config/rs6000/rs6000.md (call_local): Merge call_local32,
15244 call_local64, and call_local_aix.
15245 (call_value_local): Simlarly.
15246 (call_nonlocal_aix, call_value_nonlocal_aix): Adjust rtl to suit,
15247 and disable pattern when CALL_LONG.
15248 (call_indirect_aix, call_value_indirect_aix): Adjust rtl.
15249 (call_indirect_elfv2, call_indirect_pcrel): Likewise.
15250 (call_value_indirect_elfv2, call_value_indirect_pcrel): Likewise.
15252 2020-03-29 H.J. Lu <hongjiu.lu@intel.com>
15255 * doc/invoke.texi: Update -falign-functions, -falign-loops and
15256 -falign-jumps documentation.
15258 2020-03-29 Martin Liska <mliska@suse.cz>
15261 * cgraphunit.c (process_function_and_variable_attributes): Remove
15262 double 'attribute' words.
15264 2020-03-29 John David Anglin <dave.anglin@bell.net>
15266 * config/pa/pa.c (pa_asm_output_aligned_bss): Delete duplicate
15269 2020-03-28 Jakub Jelinek <jakub@redhat.com>
15272 * c-decl.c (grokdeclarator): After issuing errors, set size_int_const
15273 to true after setting size to integer_one_node.
15275 PR tree-optimization/94329
15276 * tree-ssa-reassoc.c (reassociate_bb): When calling reassoc_remove_stmt
15277 on the last stmt in a bb, make sure gsi_prev isn't done immediately
15280 2020-03-27 Alan Modra <amodra@gmail.com>
15283 * config/rs6000/rs6000.c (rs6000_longcall_ref): Use unspec_volatile
15284 for PLT16_LO and PLT_PCREL.
15285 * config/rs6000/rs6000.md (UNSPEC_PLT16_LO, UNSPEC_PLT_PCREL): Remove.
15286 (UNSPECV_PLT16_LO, UNSPECV_PLT_PCREL): Define.
15287 (pltseq_plt16_lo_, pltseq_plt_pcrel): Use unspec_volatile.
15289 2020-03-27 Martin Sebor <msebor@redhat.com>
15292 * calls.c (init_attr_rdwr_indices): Iterate over all access attributes.
15294 2020-03-27 Andrew Stubbs <ams@codesourcery.com>
15296 * config/gcn/gcn-valu.md:
15297 (VEC_SUBDWORD_MODE): Rename to V_QIHI throughout.
15298 (VEC_1REG_MODE): Delete.
15299 (VEC_1REG_ALT): Delete.
15300 (VEC_ALL1REG_MODE): Rename to V_1REG throughout.
15301 (VEC_1REG_INT_MODE): Delete.
15302 (VEC_ALL1REG_INT_MODE): Rename to V_INT_1REG throughout.
15303 (VEC_ALL1REG_INT_ALT): Rename to V_INT_1REG_ALT throughout.
15304 (VEC_2REG_MODE): Rename to V_2REG throughout.
15305 (VEC_REG_MODE): Rename to V_noHI throughout.
15306 (VEC_ALLREG_MODE): Rename to V_ALL throughout.
15307 (VEC_ALLREG_ALT): Rename to V_ALL_ALT throughout.
15308 (VEC_ALLREG_INT_MODE): Rename to V_INT throughout.
15309 (VEC_INT_MODE): Delete.
15310 (VEC_FP_MODE): Rename to V_FP throughout and move to top.
15311 (VEC_FP_1REG_MODE): Rename to V_FP_1REG throughout and move to top.
15312 (FP_MODE): Delete and replace with FP throughout.
15313 (FP_1REG_MODE): Delete and replace with FP_1REG throughout.
15314 (VCMP_MODE): Rename to V_noQI throughout and move to top.
15315 (VCMP_MODE_INT): Rename to V_INT_noQI throughout and move to top.
15316 * config/gcn/gcn.md (FP): New mode iterator.
15317 (FP_1REG): New mode iterator.
15319 2020-03-27 David Malcolm <dmalcolm@redhat.com>
15321 * doc/invoke.texi (-fdump-analyzer-supergraph): Document that this
15322 now emits two .dot files.
15323 * graphviz.cc (graphviz_out::begin_tr): Only emit a TR, not a TD.
15324 (graphviz_out::end_tr): Only close a TR, not a TD.
15325 (graphviz_out::begin_td): New.
15326 (graphviz_out::end_td): New.
15327 (graphviz_out::begin_trtd): New, replacing the old implementation
15328 of graphviz_out::begin_tr.
15329 (graphviz_out::end_tdtr): New, replacing the old implementation
15330 of graphviz_out::end_tr.
15331 * graphviz.h (graphviz_out::begin_td): New decl.
15332 (graphviz_out::end_td): New decl.
15333 (graphviz_out::begin_trtd): New decl.
15334 (graphviz_out::end_tdtr): New decl.
15336 2020-03-27 Richard Biener <rguenther@suse.de>
15339 * dwarf2out.c (should_emit_struct_debug): Return false for
15342 2020-03-27 Richard Biener <rguenther@suse.de>
15344 PR tree-optimization/94352
15345 * tree-ssa-propagate.c (ssa_prop_init): Move seeding of the
15347 (ssa_propagation_engine::ssa_propagate): ... here after
15348 initializing curr_order.
15350 2020-03-27 Kewen Lin <linkw@gcc.gnu.org>
15352 PR tree-optimization/90332
15353 * tree-vect-stmts.c (vector_vector_composition_type): New function.
15354 (get_group_load_store_type): Adjust to call
15355 vector_vector_composition_type, extend it to construct with scalar
15357 (vectorizable_load): Likewise.
15359 2020-03-27 Roman Zhuykov <zhroma@ispras.ru>
15361 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove assertions.
15362 (create_ddg_dep_no_link): Likewise.
15363 (add_cross_iteration_register_deps): Move debug instruction check.
15364 Other minor refactoring.
15365 (add_intra_loop_mem_dep): Do not check for debug instructions.
15366 (add_inter_loop_mem_dep): Likewise.
15367 (build_intra_loop_deps): Likewise.
15368 (create_ddg): Do not include debug insns into the graph.
15369 * ddg.h (struct ddg): Remove num_debug field.
15370 * modulo-sched.c (doloop_register_get): Adjust condition.
15371 (res_MII): Remove DDG num_debug field usage.
15372 (sms_schedule_by_order): Use assertion against debug insns.
15373 (ps_has_conflicts): Drop debug insn check.
15375 2020-03-26 Jakub Jelinek <jakub@redhat.com>
15378 * tree.c (protected_set_expr_location): Recurse on STATEMENT_LIST
15379 that contains exactly one non-DEBUG_BEGIN_STMT statement.
15382 * gimple.h (gimple_seq_first_nondebug_stmt): New function.
15383 (gimple_seq_last_nondebug_stmt): Don't return NULL if seq contains
15384 a single non-debug stmt followed by one or more debug stmts.
15385 * gimplify.c (gimplify_body): Use gimple_seq_first_nondebug_stmt
15386 instead of gimple_seq_first_stmt, use gimple_seq_first_nondebug_stmt
15387 and gimple_seq_last_nondebug_stmt instead of gimple_seq_first and
15388 gimple_seq_last to check if outer_stmt gbind could be reused and
15389 if yes and it is surrounded by any debug stmts, move them into the
15392 PR rtl-optimization/92264
15393 * var-tracking.c (add_stores): Call cselib_set_value_sp_based even
15394 for sp based values in !frame_pointer_needed
15395 && !ACCUMULATE_OUTGOING_ARGS functions.
15397 2020-03-26 Felix Yang <felix.yang@huawei.com>
15399 PR tree-optimization/94269
15400 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Restrict
15402 operation to single basic block.
15404 2020-03-25 Jeff Law <law@redhat.com>
15406 PR rtl-optimization/90275
15407 * config/sh/sh.md (mov_neg_si_t): Clobber the T register in the
15410 2020-03-25 Jakub Jelinek <jakub@redhat.com>
15413 * config/arm/arm.c (arm_gen_dicompare_reg): Set mode of COMPARE to
15414 mode rather than VOIDmode.
15416 2020-03-25 Martin Sebor <msebor@redhat.com>
15418 PR middle-end/94004
15419 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Issue warnings
15420 even for alloca calls resulting from system macro expansion.
15421 Include inlining context in all warnings.
15423 2020-03-25 Richard Sandiford <richard.sandiford@arm.com>
15426 * config/rs6000/rs6000.c (rs6000_can_change_mode_class): Allow
15427 FPRs to change between SDmode and DDmode.
15429 2020-03-25 Martin Sebor <msebor@redhat.com>
15431 PR tree-optimization/94131
15432 * gimple-fold.c (get_range_strlen_tree): Fail for variable-length
15434 * tree-ssa-strlen.c (get_range_strlen_dynamic): Avoid assuming
15435 types have constant sizes.
15437 2020-03-25 Martin Liska <mliska@suse.cz>
15440 * configure.ac: Report error only when --with-zstd
15442 * configure: Regenerate.
15444 2020-03-25 Jakub Jelinek <jakub@redhat.com>
15447 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Set
15448 INSN_CODE (insn) to -1 when changing the pattern.
15450 2020-03-25 Martin Liska <mliska@suse.cz>
15454 * config/i386/i386-features.c (make_resolver_func): Drop
15455 public flag for resolver.
15456 * config/rs6000/rs6000.c (make_resolver_func): Add comdat
15457 group for resolver and drop public flag if possible.
15458 * multiple_target.c (create_dispatcher_calls): Drop unique_name
15459 and resolution as we want to enable LTO privatization of the default
15462 2020-03-25 Martin Liska <mliska@suse.cz>
15465 * configure.ac: Respect --without-zstd and report
15466 error when we can't find header file with --with-zstd.
15467 * configure: Regenerate.
15469 2020-03-25 Jakub Jelinek <jakub@redhat.com>
15471 PR middle-end/94303
15472 * varasm.c (output_constructor_array_range): If local->index
15473 RANGE_EXPR doesn't start at the current location in the constructor,
15474 skip needed number of bytes using assemble_zeros or assert we don't
15478 * langhooks.c (lhd_set_decl_assembler_name): Use a static ulong
15479 counter instead of DECL_UID.
15481 PR tree-optimization/94300
15482 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): If pd.offset
15483 is positive, make sure that off + size isn't larger than needed_len.
15485 2020-03-25 Richard Biener <rguenther@suse.de>
15486 Jakub Jelinek <jakub@redhat.com>
15489 * tree-if-conv.c (ifcvt_local_dce): Delete dead statements backwards.
15491 2020-03-24 Christophe Lyon <christophe.lyon@linaro.org>
15493 * doc/sourcebuild.texi (ARM-specific attributes): Add
15495 (Features for dg-add-options): Add arm_fp_dp.
15497 2020-03-24 John David Anglin <danglin@gcc.gnu.org>
15500 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Define __BIG_ENDIAN__.
15502 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
15505 * omp-offload.c (omp_finish_file): Fix target-link handling if
15506 targetm_common.have_named_sections is false.
15508 2020-03-24 Jakub Jelinek <jakub@redhat.com>
15511 * config/arm/arm.md (subvdi4, usubvsi4, usubvdi4): Use gen_int_mode
15512 instead of GEN_INT.
15515 * tree-ssa-loop-manip.c (create_iv): If after, set stmt location to
15516 e->goto_locus even if gsi_bb (*incr_pos) contains only debug stmts.
15517 If not after and at *incr_pos is a debug stmt, set stmt location to
15518 location of next non-debug stmt after it if any.
15521 * tree-if-conv.c (ifcvt_local_dce): For gimple debug stmts, just set
15522 GF_PLF_2, but don't add them to worklist. Don't add an assigment to
15523 worklist or set GF_PLF_2 just because it is used in a debug stmt in
15524 another bb. Formatting improvements.
15527 * cgraphunit.c (check_global_declaration): For DECL_EXTERNAL and
15528 non-TREE_PUBLIC non-DECL_ARTIFICIAL FUNCTION_DECLs, set TREE_PUBLIC
15529 regardless of whether TREE_NO_WARNING is set on it or whether
15530 warn_unused_function is true or not.
15532 2020-03-23 Jeff Law <law@redhat.com>
15534 PR rtl-optimization/90275
15537 * simplify-rtx.c (comparison_code_valid_for_mode): New function.
15538 (simplify_logical_relational_operation): Use it.
15540 2020-03-23 Jakub Jelinek <jakub@redhat.com>
15543 * tree.c (get_narrower): Handle COMPOUND_EXPR by recursing on
15544 ultimate rhs and if returned something different, reconstructing
15545 the COMPOUND_EXPRs.
15547 2020-03-23 Lewis Hyatt <lhyatt@gmail.com>
15549 * opts.c (print_filtered_help): Improve the help text for alias options.
15551 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15552 Andre Vieira <andre.simoesdiasvieira@arm.com>
15553 Mihail Ionescu <mihail.ionescu@arm.com>
15555 * config/arm/arm_mve.h (vshlcq_m_s8): Define macro.
15556 (vshlcq_m_u8): Likewise.
15557 (vshlcq_m_s16): Likewise.
15558 (vshlcq_m_u16): Likewise.
15559 (vshlcq_m_s32): Likewise.
15560 (vshlcq_m_u32): Likewise.
15561 (__arm_vshlcq_m_s8): Define intrinsic.
15562 (__arm_vshlcq_m_u8): Likewise.
15563 (__arm_vshlcq_m_s16): Likewise.
15564 (__arm_vshlcq_m_u16): Likewise.
15565 (__arm_vshlcq_m_s32): Likewise.
15566 (__arm_vshlcq_m_u32): Likewise.
15567 (vshlcq_m): Define polymorphic variant.
15568 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_UNONE_IMM_UNONE):
15569 Use builtin qualifier.
15570 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
15571 * config/arm/mve.md (mve_vshlcq_m_vec_<supf><mode>): Define RTL pattern.
15572 (mve_vshlcq_m_carry_<supf><mode>): Likewise.
15573 (mve_vshlcq_m_<supf><mode>): Likewise.
15575 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15577 * config/arm/arm-builtins.c (LSLL_QUALIFIERS): Define builtin qualifier.
15578 (UQSHL_QUALIFIERS): Likewise.
15579 (ASRL_QUALIFIERS): Likewise.
15580 (SQSHL_QUALIFIERS): Likewise.
15581 * config/arm/arm_mve.h (__ARM_BIG_ENDIAN): Check to not support MVE in
15583 (sqrshr): Define macro.
15584 (sqrshrl): Likewise.
15585 (sqrshrl_sat48): Likewise.
15587 (sqshll): Likewise.
15589 (srshrl): Likewise.
15590 (uqrshl): Likewise.
15591 (uqrshll): Likewise.
15592 (uqrshll_sat48): Likewise.
15594 (uqshll): Likewise.
15596 (urshrl): Likewise.
15599 (__arm_lsll): Define intrinsic.
15600 (__arm_asrl): Likewise.
15601 (__arm_uqrshll): Likewise.
15602 (__arm_uqrshll_sat48): Likewise.
15603 (__arm_sqrshrl): Likewise.
15604 (__arm_sqrshrl_sat48): Likewise.
15605 (__arm_uqshll): Likewise.
15606 (__arm_urshrl): Likewise.
15607 (__arm_srshrl): Likewise.
15608 (__arm_sqshll): Likewise.
15609 (__arm_uqrshl): Likewise.
15610 (__arm_sqrshr): Likewise.
15611 (__arm_uqshl): Likewise.
15612 (__arm_urshr): Likewise.
15613 (__arm_sqshl): Likewise.
15614 (__arm_srshr): Likewise.
15615 * config/arm/arm_mve_builtins.def (LSLL_QUALIFIERS): Use builtin
15617 (UQSHL_QUALIFIERS): Likewise.
15618 (ASRL_QUALIFIERS): Likewise.
15619 (SQSHL_QUALIFIERS): Likewise.
15620 * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Define RTL pattern.
15621 (mve_sqrshrl_sat<supf>_di): Likewise.
15622 (mve_uqrshl_si): Likewise.
15623 (mve_sqrshr_si): Likewise.
15624 (mve_uqshll_di): Likewise.
15625 (mve_urshrl_di): Likewise.
15626 (mve_uqshl_si): Likewise.
15627 (mve_urshr_si): Likewise.
15628 (mve_sqshl_si): Likewise.
15629 (mve_srshr_si): Likewise.
15630 (mve_srshrl_di): Likewise.
15631 (mve_sqshll_di): Likewise.
15633 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15634 Andre Vieira <andre.simoesdiasvieira@arm.com>
15635 Mihail Ionescu <mihail.ionescu@arm.com>
15637 * config/arm/arm_mve.h (vsetq_lane_f16): Define macro.
15638 (vsetq_lane_f32): Likewise.
15639 (vsetq_lane_s16): Likewise.
15640 (vsetq_lane_s32): Likewise.
15641 (vsetq_lane_s8): Likewise.
15642 (vsetq_lane_s64): Likewise.
15643 (vsetq_lane_u8): Likewise.
15644 (vsetq_lane_u16): Likewise.
15645 (vsetq_lane_u32): Likewise.
15646 (vsetq_lane_u64): Likewise.
15647 (vgetq_lane_f16): Likewise.
15648 (vgetq_lane_f32): Likewise.
15649 (vgetq_lane_s16): Likewise.
15650 (vgetq_lane_s32): Likewise.
15651 (vgetq_lane_s8): Likewise.
15652 (vgetq_lane_s64): Likewise.
15653 (vgetq_lane_u8): Likewise.
15654 (vgetq_lane_u16): Likewise.
15655 (vgetq_lane_u32): Likewise.
15656 (vgetq_lane_u64): Likewise.
15657 (__ARM_NUM_LANES): Likewise.
15658 (__ARM_LANEQ): Likewise.
15659 (__ARM_CHECK_LANEQ): Likewise.
15660 (__arm_vsetq_lane_s16): Define intrinsic.
15661 (__arm_vsetq_lane_s32): Likewise.
15662 (__arm_vsetq_lane_s8): Likewise.
15663 (__arm_vsetq_lane_s64): Likewise.
15664 (__arm_vsetq_lane_u8): Likewise.
15665 (__arm_vsetq_lane_u16): Likewise.
15666 (__arm_vsetq_lane_u32): Likewise.
15667 (__arm_vsetq_lane_u64): Likewise.
15668 (__arm_vgetq_lane_s16): Likewise.
15669 (__arm_vgetq_lane_s32): Likewise.
15670 (__arm_vgetq_lane_s8): Likewise.
15671 (__arm_vgetq_lane_s64): Likewise.
15672 (__arm_vgetq_lane_u8): Likewise.
15673 (__arm_vgetq_lane_u16): Likewise.
15674 (__arm_vgetq_lane_u32): Likewise.
15675 (__arm_vgetq_lane_u64): Likewise.
15676 (__arm_vsetq_lane_f16): Likewise.
15677 (__arm_vsetq_lane_f32): Likewise.
15678 (__arm_vgetq_lane_f16): Likewise.
15679 (__arm_vgetq_lane_f32): Likewise.
15680 (vgetq_lane): Define polymorphic variant.
15681 (vsetq_lane): Likewise.
15682 * config/arm/mve.md (mve_vec_extract<mode><V_elem_l>): Define RTL
15684 (mve_vec_extractv2didi): Likewise.
15685 (mve_vec_extract_sext_internal<mode>): Likewise.
15686 (mve_vec_extract_zext_internal<mode>): Likewise.
15687 (mve_vec_set<mode>_internal): Likewise.
15688 (mve_vec_setv2di_internal): Likewise.
15689 * config/arm/neon.md (vec_set<mode>): Move RTL pattern to vec-common.md
15691 (vec_extract<mode><V_elem_l>): Rename to
15692 "neon_vec_extract<mode><V_elem_l>".
15693 (vec_extractv2didi): Rename to "neon_vec_extractv2didi".
15694 * config/arm/vec-common.md (vec_extract<mode><V_elem_l>): Define RTL
15695 pattern common for MVE and NEON.
15696 (vec_set<mode>): Move RTL pattern from neon.md and modify to accept both
15699 2020-03-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
15701 * config/arm/mve.md (earlyclobber_32): New mode attribute.
15702 (mve_vrev64q_*, mve_vcaddq*, mve_vhcaddq_*, mve_vcmulq_*,
15703 mve_vmull[bt]q_*, mve_vqdmull[bt]q_*): Add appropriate early clobbers.
15705 2020-03-23 Richard Biener <rguenther@suse.de>
15707 PR tree-optimization/94261
15708 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
15709 IL operand swapping code.
15710 (vect_slp_rearrange_stmts): Do not arrange isomorphic
15711 nodes that would need operation code adjustments.
15713 2020-03-23 Tobias Burnus <tobias@codesourcery.com>
15715 * doc/install.texi (amdgcn-*-amdhsa): Renamed
15716 from amdgcn-unknown-amdhsa; change
15717 amdgcn-unknown-amdhsa to amdgcn-amdhsa.
15719 2020-03-23 Richard Biener <rguenther@suse.de>
15722 * ipa-prop.c (ipa_read_jump_function): Build the ADDR_EXRP
15723 directly rather than also folding it via build_fold_addr_expr.
15725 2020-03-23 Richard Biener <rguenther@suse.de>
15727 PR tree-optimization/94266
15728 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not propagate
15729 addresses of TARGET_MEM_REFs.
15731 2020-03-23 Martin Liska <mliska@suse.cz>
15734 * symtab.c (symtab_node::clone_references): Save speculative_id
15735 as ref may be overwritten by create_reference.
15736 (symtab_node::clone_referring): Likewise.
15737 (symtab_node::clone_reference): Likewise.
15739 2020-03-22 Iain Sandoe <iain@sandoe.co.uk>
15741 * config/i386/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Remove
15742 references to Darwin.
15743 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION): Define this
15744 unconditionally and comment on why.
15746 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
15748 * config/darwin.c (darwin_mergeable_constant_section): Collect
15749 section anchor checks into the caller.
15750 (machopic_select_section): Collect section anchor checks into
15751 the determination of 'effective zero-size' objects. When the
15752 size is unknown, assume it is non-zero, and thus return the
15753 'generic' section for the DECL.
15755 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
15758 * config/darwin.opt: Amend options descriptions.
15760 2020-03-21 Richard Sandiford <richard.sandiford@arm.com>
15762 PR rtl-optimization/94052
15763 * lra-constraints.c (simplify_operand_subreg): Reload the inner
15764 register of a paradoxical subreg if simplify_subreg_regno fails
15765 to give a valid hard register for the outer mode.
15767 2020-03-20 Martin Jambor <mjambor@suse.cz>
15769 PR tree-optimization/93435
15770 * params.opt (sra-max-propagations): New parameter.
15771 * tree-sra.c (propagation_budget): New variable.
15772 (budget_for_propagation_access): New function.
15773 (propagate_subaccesses_from_rhs): Use it.
15774 (propagate_subaccesses_from_lhs): Likewise.
15775 (propagate_all_subaccesses): Set up and destroy propagation_budget.
15777 2020-03-20 Carl Love <cel@us.ibm.com>
15780 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15781 Add check for TARGET_FPRND for Power 7 or newer.
15783 2020-03-20 Jan Hubicka <hubicka@ucw.cz>
15786 * cgraph.c (symbol_table::create_edge): Update calls_comdat_local flag.
15787 (cgraph_edge::redirect_callee): Move here; likewise.
15788 (cgraph_node::remove_callees): Update calls_comdat_local flag.
15789 (cgraph_node::verify_node): Verify that calls_comdat_local flag match
15791 (cgraph_node::check_calls_comdat_local_p): New member function.
15792 * cgraph.h (cgraph_node::check_calls_comdat_local_p): Declare.
15793 (cgraph_edge::redirect_callee): Move offline.
15794 * ipa-fnsummary.c (compute_fn_summary): Do not compute
15795 calls_comdat_local flag here.
15796 * ipa-inline-transform.c (inline_call): Fix updating of
15797 calls_comdat_local flag.
15798 * ipa-split.c (split_function): Use true instead of 1 to set the flag.
15799 * symtab.c (symtab_node::add_to_same_comdat_group): Update
15800 calls_comdat_local flag.
15802 2020-03-20 Richard Biener <rguenther@suse.de>
15804 * tree-vect-slp.c (vect_analyze_slp_instance): Dump SLP tree
15805 from the possibly modified root.
15807 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15808 Andre Vieira <andre.simoesdiasvieira@arm.com>
15809 Mihail Ionescu <mihail.ionescu@arm.com>
15811 * config/arm/arm_mve.h (vst1q_p_u8): Define macro.
15812 (vst1q_p_s8): Likewise.
15813 (vst2q_s8): Likewise.
15814 (vst2q_u8): Likewise.
15815 (vld1q_z_u8): Likewise.
15816 (vld1q_z_s8): Likewise.
15817 (vld2q_s8): Likewise.
15818 (vld2q_u8): Likewise.
15819 (vld4q_s8): Likewise.
15820 (vld4q_u8): Likewise.
15821 (vst1q_p_u16): Likewise.
15822 (vst1q_p_s16): Likewise.
15823 (vst2q_s16): Likewise.
15824 (vst2q_u16): Likewise.
15825 (vld1q_z_u16): Likewise.
15826 (vld1q_z_s16): Likewise.
15827 (vld2q_s16): Likewise.
15828 (vld2q_u16): Likewise.
15829 (vld4q_s16): Likewise.
15830 (vld4q_u16): Likewise.
15831 (vst1q_p_u32): Likewise.
15832 (vst1q_p_s32): Likewise.
15833 (vst2q_s32): Likewise.
15834 (vst2q_u32): Likewise.
15835 (vld1q_z_u32): Likewise.
15836 (vld1q_z_s32): Likewise.
15837 (vld2q_s32): Likewise.
15838 (vld2q_u32): Likewise.
15839 (vld4q_s32): Likewise.
15840 (vld4q_u32): Likewise.
15841 (vld4q_f16): Likewise.
15842 (vld2q_f16): Likewise.
15843 (vld1q_z_f16): Likewise.
15844 (vst2q_f16): Likewise.
15845 (vst1q_p_f16): Likewise.
15846 (vld4q_f32): Likewise.
15847 (vld2q_f32): Likewise.
15848 (vld1q_z_f32): Likewise.
15849 (vst2q_f32): Likewise.
15850 (vst1q_p_f32): Likewise.
15851 (__arm_vst1q_p_u8): Define intrinsic.
15852 (__arm_vst1q_p_s8): Likewise.
15853 (__arm_vst2q_s8): Likewise.
15854 (__arm_vst2q_u8): Likewise.
15855 (__arm_vld1q_z_u8): Likewise.
15856 (__arm_vld1q_z_s8): Likewise.
15857 (__arm_vld2q_s8): Likewise.
15858 (__arm_vld2q_u8): Likewise.
15859 (__arm_vld4q_s8): Likewise.
15860 (__arm_vld4q_u8): Likewise.
15861 (__arm_vst1q_p_u16): Likewise.
15862 (__arm_vst1q_p_s16): Likewise.
15863 (__arm_vst2q_s16): Likewise.
15864 (__arm_vst2q_u16): Likewise.
15865 (__arm_vld1q_z_u16): Likewise.
15866 (__arm_vld1q_z_s16): Likewise.
15867 (__arm_vld2q_s16): Likewise.
15868 (__arm_vld2q_u16): Likewise.
15869 (__arm_vld4q_s16): Likewise.
15870 (__arm_vld4q_u16): Likewise.
15871 (__arm_vst1q_p_u32): Likewise.
15872 (__arm_vst1q_p_s32): Likewise.
15873 (__arm_vst2q_s32): Likewise.
15874 (__arm_vst2q_u32): Likewise.
15875 (__arm_vld1q_z_u32): Likewise.
15876 (__arm_vld1q_z_s32): Likewise.
15877 (__arm_vld2q_s32): Likewise.
15878 (__arm_vld2q_u32): Likewise.
15879 (__arm_vld4q_s32): Likewise.
15880 (__arm_vld4q_u32): Likewise.
15881 (__arm_vld4q_f16): Likewise.
15882 (__arm_vld2q_f16): Likewise.
15883 (__arm_vld1q_z_f16): Likewise.
15884 (__arm_vst2q_f16): Likewise.
15885 (__arm_vst1q_p_f16): Likewise.
15886 (__arm_vld4q_f32): Likewise.
15887 (__arm_vld2q_f32): Likewise.
15888 (__arm_vld1q_z_f32): Likewise.
15889 (__arm_vst2q_f32): Likewise.
15890 (__arm_vst1q_p_f32): Likewise.
15891 (vld1q_z): Define polymorphic variant.
15894 (vst1q_p): Likewise.
15896 * config/arm/arm_mve_builtins.def (STORE1): Use builtin qualifier.
15898 * config/arm/mve.md (mve_vst2q<mode>): Define RTL pattern.
15899 (mve_vld2q<mode>): Likewise.
15900 (mve_vld4q<mode>): Likewise.
15902 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15903 Andre Vieira <andre.simoesdiasvieira@arm.com>
15904 Mihail Ionescu <mihail.ionescu@arm.com>
15906 * config/arm/arm-builtins.c (ARM_BUILTIN_GET_FPSCR_NZCVQC): Define.
15907 (ARM_BUILTIN_SET_FPSCR_NZCVQC): Likewise.
15908 (arm_init_mve_builtins): Add "__builtin_arm_get_fpscr_nzcvqc" and
15909 "__builtin_arm_set_fpscr_nzcvqc" to arm_builtin_decls array.
15910 (arm_expand_builtin): Define case ARM_BUILTIN_GET_FPSCR_NZCVQC
15911 and ARM_BUILTIN_SET_FPSCR_NZCVQC.
15912 * config/arm/arm_mve.h (vadciq_s32): Define macro.
15913 (vadciq_u32): Likewise.
15914 (vadciq_m_s32): Likewise.
15915 (vadciq_m_u32): Likewise.
15916 (vadcq_s32): Likewise.
15917 (vadcq_u32): Likewise.
15918 (vadcq_m_s32): Likewise.
15919 (vadcq_m_u32): Likewise.
15920 (vsbciq_s32): Likewise.
15921 (vsbciq_u32): Likewise.
15922 (vsbciq_m_s32): Likewise.
15923 (vsbciq_m_u32): Likewise.
15924 (vsbcq_s32): Likewise.
15925 (vsbcq_u32): Likewise.
15926 (vsbcq_m_s32): Likewise.
15927 (vsbcq_m_u32): Likewise.
15928 (__arm_vadciq_s32): Define intrinsic.
15929 (__arm_vadciq_u32): Likewise.
15930 (__arm_vadciq_m_s32): Likewise.
15931 (__arm_vadciq_m_u32): Likewise.
15932 (__arm_vadcq_s32): Likewise.
15933 (__arm_vadcq_u32): Likewise.
15934 (__arm_vadcq_m_s32): Likewise.
15935 (__arm_vadcq_m_u32): Likewise.
15936 (__arm_vsbciq_s32): Likewise.
15937 (__arm_vsbciq_u32): Likewise.
15938 (__arm_vsbciq_m_s32): Likewise.
15939 (__arm_vsbciq_m_u32): Likewise.
15940 (__arm_vsbcq_s32): Likewise.
15941 (__arm_vsbcq_u32): Likewise.
15942 (__arm_vsbcq_m_s32): Likewise.
15943 (__arm_vsbcq_m_u32): Likewise.
15944 (vadciq_m): Define polymorphic variant.
15945 (vadciq): Likewise.
15946 (vadcq_m): Likewise.
15948 (vsbciq_m): Likewise.
15949 (vsbciq): Likewise.
15950 (vsbcq_m): Likewise.
15952 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE): Use builtin
15954 (BINOP_UNONE_UNONE_UNONE): Likewise.
15955 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
15956 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
15957 * config/arm/mve.md (VADCIQ): Define iterator.
15958 (VADCIQ_M): Likewise.
15960 (VSBCQ_M): Likewise.
15961 (VSBCIQ): Likewise.
15962 (VSBCIQ_M): Likewise.
15964 (VADCQ_M): Likewise.
15965 (mve_vadciq_m_<supf>v4si): Define RTL pattern.
15966 (mve_vadciq_<supf>v4si): Likewise.
15967 (mve_vadcq_m_<supf>v4si): Likewise.
15968 (mve_vadcq_<supf>v4si): Likewise.
15969 (mve_vsbciq_m_<supf>v4si): Likewise.
15970 (mve_vsbciq_<supf>v4si): Likewise.
15971 (mve_vsbcq_m_<supf>v4si): Likewise.
15972 (mve_vsbcq_<supf>v4si): Likewise.
15973 (get_fpscr_nzcvqc): Define isns.
15974 (set_fpscr_nzcvqc): Define isns.
15975 * config/arm/unspecs.md (UNSPEC_GET_FPSCR_NZCVQC): Define.
15976 (UNSPEC_SET_FPSCR_NZCVQC): Define.
15978 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15980 * config/arm/arm_mve.h (vddupq_x_n_u8): Define macro.
15981 (vddupq_x_n_u16): Likewise.
15982 (vddupq_x_n_u32): Likewise.
15983 (vddupq_x_wb_u8): Likewise.
15984 (vddupq_x_wb_u16): Likewise.
15985 (vddupq_x_wb_u32): Likewise.
15986 (vdwdupq_x_n_u8): Likewise.
15987 (vdwdupq_x_n_u16): Likewise.
15988 (vdwdupq_x_n_u32): Likewise.
15989 (vdwdupq_x_wb_u8): Likewise.
15990 (vdwdupq_x_wb_u16): Likewise.
15991 (vdwdupq_x_wb_u32): Likewise.
15992 (vidupq_x_n_u8): Likewise.
15993 (vidupq_x_n_u16): Likewise.
15994 (vidupq_x_n_u32): Likewise.
15995 (vidupq_x_wb_u8): Likewise.
15996 (vidupq_x_wb_u16): Likewise.
15997 (vidupq_x_wb_u32): Likewise.
15998 (viwdupq_x_n_u8): Likewise.
15999 (viwdupq_x_n_u16): Likewise.
16000 (viwdupq_x_n_u32): Likewise.
16001 (viwdupq_x_wb_u8): Likewise.
16002 (viwdupq_x_wb_u16): Likewise.
16003 (viwdupq_x_wb_u32): Likewise.
16004 (vdupq_x_n_s8): Likewise.
16005 (vdupq_x_n_s16): Likewise.
16006 (vdupq_x_n_s32): Likewise.
16007 (vdupq_x_n_u8): Likewise.
16008 (vdupq_x_n_u16): Likewise.
16009 (vdupq_x_n_u32): Likewise.
16010 (vminq_x_s8): Likewise.
16011 (vminq_x_s16): Likewise.
16012 (vminq_x_s32): Likewise.
16013 (vminq_x_u8): Likewise.
16014 (vminq_x_u16): Likewise.
16015 (vminq_x_u32): Likewise.
16016 (vmaxq_x_s8): Likewise.
16017 (vmaxq_x_s16): Likewise.
16018 (vmaxq_x_s32): Likewise.
16019 (vmaxq_x_u8): Likewise.
16020 (vmaxq_x_u16): Likewise.
16021 (vmaxq_x_u32): Likewise.
16022 (vabdq_x_s8): Likewise.
16023 (vabdq_x_s16): Likewise.
16024 (vabdq_x_s32): Likewise.
16025 (vabdq_x_u8): Likewise.
16026 (vabdq_x_u16): Likewise.
16027 (vabdq_x_u32): Likewise.
16028 (vabsq_x_s8): Likewise.
16029 (vabsq_x_s16): Likewise.
16030 (vabsq_x_s32): Likewise.
16031 (vaddq_x_s8): Likewise.
16032 (vaddq_x_s16): Likewise.
16033 (vaddq_x_s32): Likewise.
16034 (vaddq_x_n_s8): Likewise.
16035 (vaddq_x_n_s16): Likewise.
16036 (vaddq_x_n_s32): Likewise.
16037 (vaddq_x_u8): Likewise.
16038 (vaddq_x_u16): Likewise.
16039 (vaddq_x_u32): Likewise.
16040 (vaddq_x_n_u8): Likewise.
16041 (vaddq_x_n_u16): Likewise.
16042 (vaddq_x_n_u32): Likewise.
16043 (vclsq_x_s8): Likewise.
16044 (vclsq_x_s16): Likewise.
16045 (vclsq_x_s32): Likewise.
16046 (vclzq_x_s8): Likewise.
16047 (vclzq_x_s16): Likewise.
16048 (vclzq_x_s32): Likewise.
16049 (vclzq_x_u8): Likewise.
16050 (vclzq_x_u16): Likewise.
16051 (vclzq_x_u32): Likewise.
16052 (vnegq_x_s8): Likewise.
16053 (vnegq_x_s16): Likewise.
16054 (vnegq_x_s32): Likewise.
16055 (vmulhq_x_s8): Likewise.
16056 (vmulhq_x_s16): Likewise.
16057 (vmulhq_x_s32): Likewise.
16058 (vmulhq_x_u8): Likewise.
16059 (vmulhq_x_u16): Likewise.
16060 (vmulhq_x_u32): Likewise.
16061 (vmullbq_poly_x_p8): Likewise.
16062 (vmullbq_poly_x_p16): Likewise.
16063 (vmullbq_int_x_s8): Likewise.
16064 (vmullbq_int_x_s16): Likewise.
16065 (vmullbq_int_x_s32): Likewise.
16066 (vmullbq_int_x_u8): Likewise.
16067 (vmullbq_int_x_u16): Likewise.
16068 (vmullbq_int_x_u32): Likewise.
16069 (vmulltq_poly_x_p8): Likewise.
16070 (vmulltq_poly_x_p16): Likewise.
16071 (vmulltq_int_x_s8): Likewise.
16072 (vmulltq_int_x_s16): Likewise.
16073 (vmulltq_int_x_s32): Likewise.
16074 (vmulltq_int_x_u8): Likewise.
16075 (vmulltq_int_x_u16): Likewise.
16076 (vmulltq_int_x_u32): Likewise.
16077 (vmulq_x_s8): Likewise.
16078 (vmulq_x_s16): Likewise.
16079 (vmulq_x_s32): Likewise.
16080 (vmulq_x_n_s8): Likewise.
16081 (vmulq_x_n_s16): Likewise.
16082 (vmulq_x_n_s32): Likewise.
16083 (vmulq_x_u8): Likewise.
16084 (vmulq_x_u16): Likewise.
16085 (vmulq_x_u32): Likewise.
16086 (vmulq_x_n_u8): Likewise.
16087 (vmulq_x_n_u16): Likewise.
16088 (vmulq_x_n_u32): Likewise.
16089 (vsubq_x_s8): Likewise.
16090 (vsubq_x_s16): Likewise.
16091 (vsubq_x_s32): Likewise.
16092 (vsubq_x_n_s8): Likewise.
16093 (vsubq_x_n_s16): Likewise.
16094 (vsubq_x_n_s32): Likewise.
16095 (vsubq_x_u8): Likewise.
16096 (vsubq_x_u16): Likewise.
16097 (vsubq_x_u32): Likewise.
16098 (vsubq_x_n_u8): Likewise.
16099 (vsubq_x_n_u16): Likewise.
16100 (vsubq_x_n_u32): Likewise.
16101 (vcaddq_rot90_x_s8): Likewise.
16102 (vcaddq_rot90_x_s16): Likewise.
16103 (vcaddq_rot90_x_s32): Likewise.
16104 (vcaddq_rot90_x_u8): Likewise.
16105 (vcaddq_rot90_x_u16): Likewise.
16106 (vcaddq_rot90_x_u32): Likewise.
16107 (vcaddq_rot270_x_s8): Likewise.
16108 (vcaddq_rot270_x_s16): Likewise.
16109 (vcaddq_rot270_x_s32): Likewise.
16110 (vcaddq_rot270_x_u8): Likewise.
16111 (vcaddq_rot270_x_u16): Likewise.
16112 (vcaddq_rot270_x_u32): Likewise.
16113 (vhaddq_x_n_s8): Likewise.
16114 (vhaddq_x_n_s16): Likewise.
16115 (vhaddq_x_n_s32): Likewise.
16116 (vhaddq_x_n_u8): Likewise.
16117 (vhaddq_x_n_u16): Likewise.
16118 (vhaddq_x_n_u32): Likewise.
16119 (vhaddq_x_s8): Likewise.
16120 (vhaddq_x_s16): Likewise.
16121 (vhaddq_x_s32): Likewise.
16122 (vhaddq_x_u8): Likewise.
16123 (vhaddq_x_u16): Likewise.
16124 (vhaddq_x_u32): Likewise.
16125 (vhcaddq_rot90_x_s8): Likewise.
16126 (vhcaddq_rot90_x_s16): Likewise.
16127 (vhcaddq_rot90_x_s32): Likewise.
16128 (vhcaddq_rot270_x_s8): Likewise.
16129 (vhcaddq_rot270_x_s16): Likewise.
16130 (vhcaddq_rot270_x_s32): Likewise.
16131 (vhsubq_x_n_s8): Likewise.
16132 (vhsubq_x_n_s16): Likewise.
16133 (vhsubq_x_n_s32): Likewise.
16134 (vhsubq_x_n_u8): Likewise.
16135 (vhsubq_x_n_u16): Likewise.
16136 (vhsubq_x_n_u32): Likewise.
16137 (vhsubq_x_s8): Likewise.
16138 (vhsubq_x_s16): Likewise.
16139 (vhsubq_x_s32): Likewise.
16140 (vhsubq_x_u8): Likewise.
16141 (vhsubq_x_u16): Likewise.
16142 (vhsubq_x_u32): Likewise.
16143 (vrhaddq_x_s8): Likewise.
16144 (vrhaddq_x_s16): Likewise.
16145 (vrhaddq_x_s32): Likewise.
16146 (vrhaddq_x_u8): Likewise.
16147 (vrhaddq_x_u16): Likewise.
16148 (vrhaddq_x_u32): Likewise.
16149 (vrmulhq_x_s8): Likewise.
16150 (vrmulhq_x_s16): Likewise.
16151 (vrmulhq_x_s32): Likewise.
16152 (vrmulhq_x_u8): Likewise.
16153 (vrmulhq_x_u16): Likewise.
16154 (vrmulhq_x_u32): Likewise.
16155 (vandq_x_s8): Likewise.
16156 (vandq_x_s16): Likewise.
16157 (vandq_x_s32): Likewise.
16158 (vandq_x_u8): Likewise.
16159 (vandq_x_u16): Likewise.
16160 (vandq_x_u32): Likewise.
16161 (vbicq_x_s8): Likewise.
16162 (vbicq_x_s16): Likewise.
16163 (vbicq_x_s32): Likewise.
16164 (vbicq_x_u8): Likewise.
16165 (vbicq_x_u16): Likewise.
16166 (vbicq_x_u32): Likewise.
16167 (vbrsrq_x_n_s8): Likewise.
16168 (vbrsrq_x_n_s16): Likewise.
16169 (vbrsrq_x_n_s32): Likewise.
16170 (vbrsrq_x_n_u8): Likewise.
16171 (vbrsrq_x_n_u16): Likewise.
16172 (vbrsrq_x_n_u32): Likewise.
16173 (veorq_x_s8): Likewise.
16174 (veorq_x_s16): Likewise.
16175 (veorq_x_s32): Likewise.
16176 (veorq_x_u8): Likewise.
16177 (veorq_x_u16): Likewise.
16178 (veorq_x_u32): Likewise.
16179 (vmovlbq_x_s8): Likewise.
16180 (vmovlbq_x_s16): Likewise.
16181 (vmovlbq_x_u8): Likewise.
16182 (vmovlbq_x_u16): Likewise.
16183 (vmovltq_x_s8): Likewise.
16184 (vmovltq_x_s16): Likewise.
16185 (vmovltq_x_u8): Likewise.
16186 (vmovltq_x_u16): Likewise.
16187 (vmvnq_x_s8): Likewise.
16188 (vmvnq_x_s16): Likewise.
16189 (vmvnq_x_s32): Likewise.
16190 (vmvnq_x_u8): Likewise.
16191 (vmvnq_x_u16): Likewise.
16192 (vmvnq_x_u32): Likewise.
16193 (vmvnq_x_n_s16): Likewise.
16194 (vmvnq_x_n_s32): Likewise.
16195 (vmvnq_x_n_u16): Likewise.
16196 (vmvnq_x_n_u32): Likewise.
16197 (vornq_x_s8): Likewise.
16198 (vornq_x_s16): Likewise.
16199 (vornq_x_s32): Likewise.
16200 (vornq_x_u8): Likewise.
16201 (vornq_x_u16): Likewise.
16202 (vornq_x_u32): Likewise.
16203 (vorrq_x_s8): Likewise.
16204 (vorrq_x_s16): Likewise.
16205 (vorrq_x_s32): Likewise.
16206 (vorrq_x_u8): Likewise.
16207 (vorrq_x_u16): Likewise.
16208 (vorrq_x_u32): Likewise.
16209 (vrev16q_x_s8): Likewise.
16210 (vrev16q_x_u8): Likewise.
16211 (vrev32q_x_s8): Likewise.
16212 (vrev32q_x_s16): Likewise.
16213 (vrev32q_x_u8): Likewise.
16214 (vrev32q_x_u16): Likewise.
16215 (vrev64q_x_s8): Likewise.
16216 (vrev64q_x_s16): Likewise.
16217 (vrev64q_x_s32): Likewise.
16218 (vrev64q_x_u8): Likewise.
16219 (vrev64q_x_u16): Likewise.
16220 (vrev64q_x_u32): Likewise.
16221 (vrshlq_x_s8): Likewise.
16222 (vrshlq_x_s16): Likewise.
16223 (vrshlq_x_s32): Likewise.
16224 (vrshlq_x_u8): Likewise.
16225 (vrshlq_x_u16): Likewise.
16226 (vrshlq_x_u32): Likewise.
16227 (vshllbq_x_n_s8): Likewise.
16228 (vshllbq_x_n_s16): Likewise.
16229 (vshllbq_x_n_u8): Likewise.
16230 (vshllbq_x_n_u16): Likewise.
16231 (vshlltq_x_n_s8): Likewise.
16232 (vshlltq_x_n_s16): Likewise.
16233 (vshlltq_x_n_u8): Likewise.
16234 (vshlltq_x_n_u16): Likewise.
16235 (vshlq_x_s8): Likewise.
16236 (vshlq_x_s16): Likewise.
16237 (vshlq_x_s32): Likewise.
16238 (vshlq_x_u8): Likewise.
16239 (vshlq_x_u16): Likewise.
16240 (vshlq_x_u32): Likewise.
16241 (vshlq_x_n_s8): Likewise.
16242 (vshlq_x_n_s16): Likewise.
16243 (vshlq_x_n_s32): Likewise.
16244 (vshlq_x_n_u8): Likewise.
16245 (vshlq_x_n_u16): Likewise.
16246 (vshlq_x_n_u32): Likewise.
16247 (vrshrq_x_n_s8): Likewise.
16248 (vrshrq_x_n_s16): Likewise.
16249 (vrshrq_x_n_s32): Likewise.
16250 (vrshrq_x_n_u8): Likewise.
16251 (vrshrq_x_n_u16): Likewise.
16252 (vrshrq_x_n_u32): Likewise.
16253 (vshrq_x_n_s8): Likewise.
16254 (vshrq_x_n_s16): Likewise.
16255 (vshrq_x_n_s32): Likewise.
16256 (vshrq_x_n_u8): Likewise.
16257 (vshrq_x_n_u16): Likewise.
16258 (vshrq_x_n_u32): Likewise.
16259 (vdupq_x_n_f16): Likewise.
16260 (vdupq_x_n_f32): Likewise.
16261 (vminnmq_x_f16): Likewise.
16262 (vminnmq_x_f32): Likewise.
16263 (vmaxnmq_x_f16): Likewise.
16264 (vmaxnmq_x_f32): Likewise.
16265 (vabdq_x_f16): Likewise.
16266 (vabdq_x_f32): Likewise.
16267 (vabsq_x_f16): Likewise.
16268 (vabsq_x_f32): Likewise.
16269 (vaddq_x_f16): Likewise.
16270 (vaddq_x_f32): Likewise.
16271 (vaddq_x_n_f16): Likewise.
16272 (vaddq_x_n_f32): Likewise.
16273 (vnegq_x_f16): Likewise.
16274 (vnegq_x_f32): Likewise.
16275 (vmulq_x_f16): Likewise.
16276 (vmulq_x_f32): Likewise.
16277 (vmulq_x_n_f16): Likewise.
16278 (vmulq_x_n_f32): Likewise.
16279 (vsubq_x_f16): Likewise.
16280 (vsubq_x_f32): Likewise.
16281 (vsubq_x_n_f16): Likewise.
16282 (vsubq_x_n_f32): Likewise.
16283 (vcaddq_rot90_x_f16): Likewise.
16284 (vcaddq_rot90_x_f32): Likewise.
16285 (vcaddq_rot270_x_f16): Likewise.
16286 (vcaddq_rot270_x_f32): Likewise.
16287 (vcmulq_x_f16): Likewise.
16288 (vcmulq_x_f32): Likewise.
16289 (vcmulq_rot90_x_f16): Likewise.
16290 (vcmulq_rot90_x_f32): Likewise.
16291 (vcmulq_rot180_x_f16): Likewise.
16292 (vcmulq_rot180_x_f32): Likewise.
16293 (vcmulq_rot270_x_f16): Likewise.
16294 (vcmulq_rot270_x_f32): Likewise.
16295 (vcvtaq_x_s16_f16): Likewise.
16296 (vcvtaq_x_s32_f32): Likewise.
16297 (vcvtaq_x_u16_f16): Likewise.
16298 (vcvtaq_x_u32_f32): Likewise.
16299 (vcvtnq_x_s16_f16): Likewise.
16300 (vcvtnq_x_s32_f32): Likewise.
16301 (vcvtnq_x_u16_f16): Likewise.
16302 (vcvtnq_x_u32_f32): Likewise.
16303 (vcvtpq_x_s16_f16): Likewise.
16304 (vcvtpq_x_s32_f32): Likewise.
16305 (vcvtpq_x_u16_f16): Likewise.
16306 (vcvtpq_x_u32_f32): Likewise.
16307 (vcvtmq_x_s16_f16): Likewise.
16308 (vcvtmq_x_s32_f32): Likewise.
16309 (vcvtmq_x_u16_f16): Likewise.
16310 (vcvtmq_x_u32_f32): Likewise.
16311 (vcvtbq_x_f32_f16): Likewise.
16312 (vcvttq_x_f32_f16): Likewise.
16313 (vcvtq_x_f16_u16): Likewise.
16314 (vcvtq_x_f16_s16): Likewise.
16315 (vcvtq_x_f32_s32): Likewise.
16316 (vcvtq_x_f32_u32): Likewise.
16317 (vcvtq_x_n_f16_s16): Likewise.
16318 (vcvtq_x_n_f16_u16): Likewise.
16319 (vcvtq_x_n_f32_s32): Likewise.
16320 (vcvtq_x_n_f32_u32): Likewise.
16321 (vcvtq_x_s16_f16): Likewise.
16322 (vcvtq_x_s32_f32): Likewise.
16323 (vcvtq_x_u16_f16): Likewise.
16324 (vcvtq_x_u32_f32): Likewise.
16325 (vcvtq_x_n_s16_f16): Likewise.
16326 (vcvtq_x_n_s32_f32): Likewise.
16327 (vcvtq_x_n_u16_f16): Likewise.
16328 (vcvtq_x_n_u32_f32): Likewise.
16329 (vrndq_x_f16): Likewise.
16330 (vrndq_x_f32): Likewise.
16331 (vrndnq_x_f16): Likewise.
16332 (vrndnq_x_f32): Likewise.
16333 (vrndmq_x_f16): Likewise.
16334 (vrndmq_x_f32): Likewise.
16335 (vrndpq_x_f16): Likewise.
16336 (vrndpq_x_f32): Likewise.
16337 (vrndaq_x_f16): Likewise.
16338 (vrndaq_x_f32): Likewise.
16339 (vrndxq_x_f16): Likewise.
16340 (vrndxq_x_f32): Likewise.
16341 (vandq_x_f16): Likewise.
16342 (vandq_x_f32): Likewise.
16343 (vbicq_x_f16): Likewise.
16344 (vbicq_x_f32): Likewise.
16345 (vbrsrq_x_n_f16): Likewise.
16346 (vbrsrq_x_n_f32): Likewise.
16347 (veorq_x_f16): Likewise.
16348 (veorq_x_f32): Likewise.
16349 (vornq_x_f16): Likewise.
16350 (vornq_x_f32): Likewise.
16351 (vorrq_x_f16): Likewise.
16352 (vorrq_x_f32): Likewise.
16353 (vrev32q_x_f16): Likewise.
16354 (vrev64q_x_f16): Likewise.
16355 (vrev64q_x_f32): Likewise.
16356 (__arm_vddupq_x_n_u8): Define intrinsic.
16357 (__arm_vddupq_x_n_u16): Likewise.
16358 (__arm_vddupq_x_n_u32): Likewise.
16359 (__arm_vddupq_x_wb_u8): Likewise.
16360 (__arm_vddupq_x_wb_u16): Likewise.
16361 (__arm_vddupq_x_wb_u32): Likewise.
16362 (__arm_vdwdupq_x_n_u8): Likewise.
16363 (__arm_vdwdupq_x_n_u16): Likewise.
16364 (__arm_vdwdupq_x_n_u32): Likewise.
16365 (__arm_vdwdupq_x_wb_u8): Likewise.
16366 (__arm_vdwdupq_x_wb_u16): Likewise.
16367 (__arm_vdwdupq_x_wb_u32): Likewise.
16368 (__arm_vidupq_x_n_u8): Likewise.
16369 (__arm_vidupq_x_n_u16): Likewise.
16370 (__arm_vidupq_x_n_u32): Likewise.
16371 (__arm_vidupq_x_wb_u8): Likewise.
16372 (__arm_vidupq_x_wb_u16): Likewise.
16373 (__arm_vidupq_x_wb_u32): Likewise.
16374 (__arm_viwdupq_x_n_u8): Likewise.
16375 (__arm_viwdupq_x_n_u16): Likewise.
16376 (__arm_viwdupq_x_n_u32): Likewise.
16377 (__arm_viwdupq_x_wb_u8): Likewise.
16378 (__arm_viwdupq_x_wb_u16): Likewise.
16379 (__arm_viwdupq_x_wb_u32): Likewise.
16380 (__arm_vdupq_x_n_s8): Likewise.
16381 (__arm_vdupq_x_n_s16): Likewise.
16382 (__arm_vdupq_x_n_s32): Likewise.
16383 (__arm_vdupq_x_n_u8): Likewise.
16384 (__arm_vdupq_x_n_u16): Likewise.
16385 (__arm_vdupq_x_n_u32): Likewise.
16386 (__arm_vminq_x_s8): Likewise.
16387 (__arm_vminq_x_s16): Likewise.
16388 (__arm_vminq_x_s32): Likewise.
16389 (__arm_vminq_x_u8): Likewise.
16390 (__arm_vminq_x_u16): Likewise.
16391 (__arm_vminq_x_u32): Likewise.
16392 (__arm_vmaxq_x_s8): Likewise.
16393 (__arm_vmaxq_x_s16): Likewise.
16394 (__arm_vmaxq_x_s32): Likewise.
16395 (__arm_vmaxq_x_u8): Likewise.
16396 (__arm_vmaxq_x_u16): Likewise.
16397 (__arm_vmaxq_x_u32): Likewise.
16398 (__arm_vabdq_x_s8): Likewise.
16399 (__arm_vabdq_x_s16): Likewise.
16400 (__arm_vabdq_x_s32): Likewise.
16401 (__arm_vabdq_x_u8): Likewise.
16402 (__arm_vabdq_x_u16): Likewise.
16403 (__arm_vabdq_x_u32): Likewise.
16404 (__arm_vabsq_x_s8): Likewise.
16405 (__arm_vabsq_x_s16): Likewise.
16406 (__arm_vabsq_x_s32): Likewise.
16407 (__arm_vaddq_x_s8): Likewise.
16408 (__arm_vaddq_x_s16): Likewise.
16409 (__arm_vaddq_x_s32): Likewise.
16410 (__arm_vaddq_x_n_s8): Likewise.
16411 (__arm_vaddq_x_n_s16): Likewise.
16412 (__arm_vaddq_x_n_s32): Likewise.
16413 (__arm_vaddq_x_u8): Likewise.
16414 (__arm_vaddq_x_u16): Likewise.
16415 (__arm_vaddq_x_u32): Likewise.
16416 (__arm_vaddq_x_n_u8): Likewise.
16417 (__arm_vaddq_x_n_u16): Likewise.
16418 (__arm_vaddq_x_n_u32): Likewise.
16419 (__arm_vclsq_x_s8): Likewise.
16420 (__arm_vclsq_x_s16): Likewise.
16421 (__arm_vclsq_x_s32): Likewise.
16422 (__arm_vclzq_x_s8): Likewise.
16423 (__arm_vclzq_x_s16): Likewise.
16424 (__arm_vclzq_x_s32): Likewise.
16425 (__arm_vclzq_x_u8): Likewise.
16426 (__arm_vclzq_x_u16): Likewise.
16427 (__arm_vclzq_x_u32): Likewise.
16428 (__arm_vnegq_x_s8): Likewise.
16429 (__arm_vnegq_x_s16): Likewise.
16430 (__arm_vnegq_x_s32): Likewise.
16431 (__arm_vmulhq_x_s8): Likewise.
16432 (__arm_vmulhq_x_s16): Likewise.
16433 (__arm_vmulhq_x_s32): Likewise.
16434 (__arm_vmulhq_x_u8): Likewise.
16435 (__arm_vmulhq_x_u16): Likewise.
16436 (__arm_vmulhq_x_u32): Likewise.
16437 (__arm_vmullbq_poly_x_p8): Likewise.
16438 (__arm_vmullbq_poly_x_p16): Likewise.
16439 (__arm_vmullbq_int_x_s8): Likewise.
16440 (__arm_vmullbq_int_x_s16): Likewise.
16441 (__arm_vmullbq_int_x_s32): Likewise.
16442 (__arm_vmullbq_int_x_u8): Likewise.
16443 (__arm_vmullbq_int_x_u16): Likewise.
16444 (__arm_vmullbq_int_x_u32): Likewise.
16445 (__arm_vmulltq_poly_x_p8): Likewise.
16446 (__arm_vmulltq_poly_x_p16): Likewise.
16447 (__arm_vmulltq_int_x_s8): Likewise.
16448 (__arm_vmulltq_int_x_s16): Likewise.
16449 (__arm_vmulltq_int_x_s32): Likewise.
16450 (__arm_vmulltq_int_x_u8): Likewise.
16451 (__arm_vmulltq_int_x_u16): Likewise.
16452 (__arm_vmulltq_int_x_u32): Likewise.
16453 (__arm_vmulq_x_s8): Likewise.
16454 (__arm_vmulq_x_s16): Likewise.
16455 (__arm_vmulq_x_s32): Likewise.
16456 (__arm_vmulq_x_n_s8): Likewise.
16457 (__arm_vmulq_x_n_s16): Likewise.
16458 (__arm_vmulq_x_n_s32): Likewise.
16459 (__arm_vmulq_x_u8): Likewise.
16460 (__arm_vmulq_x_u16): Likewise.
16461 (__arm_vmulq_x_u32): Likewise.
16462 (__arm_vmulq_x_n_u8): Likewise.
16463 (__arm_vmulq_x_n_u16): Likewise.
16464 (__arm_vmulq_x_n_u32): Likewise.
16465 (__arm_vsubq_x_s8): Likewise.
16466 (__arm_vsubq_x_s16): Likewise.
16467 (__arm_vsubq_x_s32): Likewise.
16468 (__arm_vsubq_x_n_s8): Likewise.
16469 (__arm_vsubq_x_n_s16): Likewise.
16470 (__arm_vsubq_x_n_s32): Likewise.
16471 (__arm_vsubq_x_u8): Likewise.
16472 (__arm_vsubq_x_u16): Likewise.
16473 (__arm_vsubq_x_u32): Likewise.
16474 (__arm_vsubq_x_n_u8): Likewise.
16475 (__arm_vsubq_x_n_u16): Likewise.
16476 (__arm_vsubq_x_n_u32): Likewise.
16477 (__arm_vcaddq_rot90_x_s8): Likewise.
16478 (__arm_vcaddq_rot90_x_s16): Likewise.
16479 (__arm_vcaddq_rot90_x_s32): Likewise.
16480 (__arm_vcaddq_rot90_x_u8): Likewise.
16481 (__arm_vcaddq_rot90_x_u16): Likewise.
16482 (__arm_vcaddq_rot90_x_u32): Likewise.
16483 (__arm_vcaddq_rot270_x_s8): Likewise.
16484 (__arm_vcaddq_rot270_x_s16): Likewise.
16485 (__arm_vcaddq_rot270_x_s32): Likewise.
16486 (__arm_vcaddq_rot270_x_u8): Likewise.
16487 (__arm_vcaddq_rot270_x_u16): Likewise.
16488 (__arm_vcaddq_rot270_x_u32): Likewise.
16489 (__arm_vhaddq_x_n_s8): Likewise.
16490 (__arm_vhaddq_x_n_s16): Likewise.
16491 (__arm_vhaddq_x_n_s32): Likewise.
16492 (__arm_vhaddq_x_n_u8): Likewise.
16493 (__arm_vhaddq_x_n_u16): Likewise.
16494 (__arm_vhaddq_x_n_u32): Likewise.
16495 (__arm_vhaddq_x_s8): Likewise.
16496 (__arm_vhaddq_x_s16): Likewise.
16497 (__arm_vhaddq_x_s32): Likewise.
16498 (__arm_vhaddq_x_u8): Likewise.
16499 (__arm_vhaddq_x_u16): Likewise.
16500 (__arm_vhaddq_x_u32): Likewise.
16501 (__arm_vhcaddq_rot90_x_s8): Likewise.
16502 (__arm_vhcaddq_rot90_x_s16): Likewise.
16503 (__arm_vhcaddq_rot90_x_s32): Likewise.
16504 (__arm_vhcaddq_rot270_x_s8): Likewise.
16505 (__arm_vhcaddq_rot270_x_s16): Likewise.
16506 (__arm_vhcaddq_rot270_x_s32): Likewise.
16507 (__arm_vhsubq_x_n_s8): Likewise.
16508 (__arm_vhsubq_x_n_s16): Likewise.
16509 (__arm_vhsubq_x_n_s32): Likewise.
16510 (__arm_vhsubq_x_n_u8): Likewise.
16511 (__arm_vhsubq_x_n_u16): Likewise.
16512 (__arm_vhsubq_x_n_u32): Likewise.
16513 (__arm_vhsubq_x_s8): Likewise.
16514 (__arm_vhsubq_x_s16): Likewise.
16515 (__arm_vhsubq_x_s32): Likewise.
16516 (__arm_vhsubq_x_u8): Likewise.
16517 (__arm_vhsubq_x_u16): Likewise.
16518 (__arm_vhsubq_x_u32): Likewise.
16519 (__arm_vrhaddq_x_s8): Likewise.
16520 (__arm_vrhaddq_x_s16): Likewise.
16521 (__arm_vrhaddq_x_s32): Likewise.
16522 (__arm_vrhaddq_x_u8): Likewise.
16523 (__arm_vrhaddq_x_u16): Likewise.
16524 (__arm_vrhaddq_x_u32): Likewise.
16525 (__arm_vrmulhq_x_s8): Likewise.
16526 (__arm_vrmulhq_x_s16): Likewise.
16527 (__arm_vrmulhq_x_s32): Likewise.
16528 (__arm_vrmulhq_x_u8): Likewise.
16529 (__arm_vrmulhq_x_u16): Likewise.
16530 (__arm_vrmulhq_x_u32): Likewise.
16531 (__arm_vandq_x_s8): Likewise.
16532 (__arm_vandq_x_s16): Likewise.
16533 (__arm_vandq_x_s32): Likewise.
16534 (__arm_vandq_x_u8): Likewise.
16535 (__arm_vandq_x_u16): Likewise.
16536 (__arm_vandq_x_u32): Likewise.
16537 (__arm_vbicq_x_s8): Likewise.
16538 (__arm_vbicq_x_s16): Likewise.
16539 (__arm_vbicq_x_s32): Likewise.
16540 (__arm_vbicq_x_u8): Likewise.
16541 (__arm_vbicq_x_u16): Likewise.
16542 (__arm_vbicq_x_u32): Likewise.
16543 (__arm_vbrsrq_x_n_s8): Likewise.
16544 (__arm_vbrsrq_x_n_s16): Likewise.
16545 (__arm_vbrsrq_x_n_s32): Likewise.
16546 (__arm_vbrsrq_x_n_u8): Likewise.
16547 (__arm_vbrsrq_x_n_u16): Likewise.
16548 (__arm_vbrsrq_x_n_u32): Likewise.
16549 (__arm_veorq_x_s8): Likewise.
16550 (__arm_veorq_x_s16): Likewise.
16551 (__arm_veorq_x_s32): Likewise.
16552 (__arm_veorq_x_u8): Likewise.
16553 (__arm_veorq_x_u16): Likewise.
16554 (__arm_veorq_x_u32): Likewise.
16555 (__arm_vmovlbq_x_s8): Likewise.
16556 (__arm_vmovlbq_x_s16): Likewise.
16557 (__arm_vmovlbq_x_u8): Likewise.
16558 (__arm_vmovlbq_x_u16): Likewise.
16559 (__arm_vmovltq_x_s8): Likewise.
16560 (__arm_vmovltq_x_s16): Likewise.
16561 (__arm_vmovltq_x_u8): Likewise.
16562 (__arm_vmovltq_x_u16): Likewise.
16563 (__arm_vmvnq_x_s8): Likewise.
16564 (__arm_vmvnq_x_s16): Likewise.
16565 (__arm_vmvnq_x_s32): Likewise.
16566 (__arm_vmvnq_x_u8): Likewise.
16567 (__arm_vmvnq_x_u16): Likewise.
16568 (__arm_vmvnq_x_u32): Likewise.
16569 (__arm_vmvnq_x_n_s16): Likewise.
16570 (__arm_vmvnq_x_n_s32): Likewise.
16571 (__arm_vmvnq_x_n_u16): Likewise.
16572 (__arm_vmvnq_x_n_u32): Likewise.
16573 (__arm_vornq_x_s8): Likewise.
16574 (__arm_vornq_x_s16): Likewise.
16575 (__arm_vornq_x_s32): Likewise.
16576 (__arm_vornq_x_u8): Likewise.
16577 (__arm_vornq_x_u16): Likewise.
16578 (__arm_vornq_x_u32): Likewise.
16579 (__arm_vorrq_x_s8): Likewise.
16580 (__arm_vorrq_x_s16): Likewise.
16581 (__arm_vorrq_x_s32): Likewise.
16582 (__arm_vorrq_x_u8): Likewise.
16583 (__arm_vorrq_x_u16): Likewise.
16584 (__arm_vorrq_x_u32): Likewise.
16585 (__arm_vrev16q_x_s8): Likewise.
16586 (__arm_vrev16q_x_u8): Likewise.
16587 (__arm_vrev32q_x_s8): Likewise.
16588 (__arm_vrev32q_x_s16): Likewise.
16589 (__arm_vrev32q_x_u8): Likewise.
16590 (__arm_vrev32q_x_u16): Likewise.
16591 (__arm_vrev64q_x_s8): Likewise.
16592 (__arm_vrev64q_x_s16): Likewise.
16593 (__arm_vrev64q_x_s32): Likewise.
16594 (__arm_vrev64q_x_u8): Likewise.
16595 (__arm_vrev64q_x_u16): Likewise.
16596 (__arm_vrev64q_x_u32): Likewise.
16597 (__arm_vrshlq_x_s8): Likewise.
16598 (__arm_vrshlq_x_s16): Likewise.
16599 (__arm_vrshlq_x_s32): Likewise.
16600 (__arm_vrshlq_x_u8): Likewise.
16601 (__arm_vrshlq_x_u16): Likewise.
16602 (__arm_vrshlq_x_u32): Likewise.
16603 (__arm_vshllbq_x_n_s8): Likewise.
16604 (__arm_vshllbq_x_n_s16): Likewise.
16605 (__arm_vshllbq_x_n_u8): Likewise.
16606 (__arm_vshllbq_x_n_u16): Likewise.
16607 (__arm_vshlltq_x_n_s8): Likewise.
16608 (__arm_vshlltq_x_n_s16): Likewise.
16609 (__arm_vshlltq_x_n_u8): Likewise.
16610 (__arm_vshlltq_x_n_u16): Likewise.
16611 (__arm_vshlq_x_s8): Likewise.
16612 (__arm_vshlq_x_s16): Likewise.
16613 (__arm_vshlq_x_s32): Likewise.
16614 (__arm_vshlq_x_u8): Likewise.
16615 (__arm_vshlq_x_u16): Likewise.
16616 (__arm_vshlq_x_u32): Likewise.
16617 (__arm_vshlq_x_n_s8): Likewise.
16618 (__arm_vshlq_x_n_s16): Likewise.
16619 (__arm_vshlq_x_n_s32): Likewise.
16620 (__arm_vshlq_x_n_u8): Likewise.
16621 (__arm_vshlq_x_n_u16): Likewise.
16622 (__arm_vshlq_x_n_u32): Likewise.
16623 (__arm_vrshrq_x_n_s8): Likewise.
16624 (__arm_vrshrq_x_n_s16): Likewise.
16625 (__arm_vrshrq_x_n_s32): Likewise.
16626 (__arm_vrshrq_x_n_u8): Likewise.
16627 (__arm_vrshrq_x_n_u16): Likewise.
16628 (__arm_vrshrq_x_n_u32): Likewise.
16629 (__arm_vshrq_x_n_s8): Likewise.
16630 (__arm_vshrq_x_n_s16): Likewise.
16631 (__arm_vshrq_x_n_s32): Likewise.
16632 (__arm_vshrq_x_n_u8): Likewise.
16633 (__arm_vshrq_x_n_u16): Likewise.
16634 (__arm_vshrq_x_n_u32): Likewise.
16635 (__arm_vdupq_x_n_f16): Likewise.
16636 (__arm_vdupq_x_n_f32): Likewise.
16637 (__arm_vminnmq_x_f16): Likewise.
16638 (__arm_vminnmq_x_f32): Likewise.
16639 (__arm_vmaxnmq_x_f16): Likewise.
16640 (__arm_vmaxnmq_x_f32): Likewise.
16641 (__arm_vabdq_x_f16): Likewise.
16642 (__arm_vabdq_x_f32): Likewise.
16643 (__arm_vabsq_x_f16): Likewise.
16644 (__arm_vabsq_x_f32): Likewise.
16645 (__arm_vaddq_x_f16): Likewise.
16646 (__arm_vaddq_x_f32): Likewise.
16647 (__arm_vaddq_x_n_f16): Likewise.
16648 (__arm_vaddq_x_n_f32): Likewise.
16649 (__arm_vnegq_x_f16): Likewise.
16650 (__arm_vnegq_x_f32): Likewise.
16651 (__arm_vmulq_x_f16): Likewise.
16652 (__arm_vmulq_x_f32): Likewise.
16653 (__arm_vmulq_x_n_f16): Likewise.
16654 (__arm_vmulq_x_n_f32): Likewise.
16655 (__arm_vsubq_x_f16): Likewise.
16656 (__arm_vsubq_x_f32): Likewise.
16657 (__arm_vsubq_x_n_f16): Likewise.
16658 (__arm_vsubq_x_n_f32): Likewise.
16659 (__arm_vcaddq_rot90_x_f16): Likewise.
16660 (__arm_vcaddq_rot90_x_f32): Likewise.
16661 (__arm_vcaddq_rot270_x_f16): Likewise.
16662 (__arm_vcaddq_rot270_x_f32): Likewise.
16663 (__arm_vcmulq_x_f16): Likewise.
16664 (__arm_vcmulq_x_f32): Likewise.
16665 (__arm_vcmulq_rot90_x_f16): Likewise.
16666 (__arm_vcmulq_rot90_x_f32): Likewise.
16667 (__arm_vcmulq_rot180_x_f16): Likewise.
16668 (__arm_vcmulq_rot180_x_f32): Likewise.
16669 (__arm_vcmulq_rot270_x_f16): Likewise.
16670 (__arm_vcmulq_rot270_x_f32): Likewise.
16671 (__arm_vcvtaq_x_s16_f16): Likewise.
16672 (__arm_vcvtaq_x_s32_f32): Likewise.
16673 (__arm_vcvtaq_x_u16_f16): Likewise.
16674 (__arm_vcvtaq_x_u32_f32): Likewise.
16675 (__arm_vcvtnq_x_s16_f16): Likewise.
16676 (__arm_vcvtnq_x_s32_f32): Likewise.
16677 (__arm_vcvtnq_x_u16_f16): Likewise.
16678 (__arm_vcvtnq_x_u32_f32): Likewise.
16679 (__arm_vcvtpq_x_s16_f16): Likewise.
16680 (__arm_vcvtpq_x_s32_f32): Likewise.
16681 (__arm_vcvtpq_x_u16_f16): Likewise.
16682 (__arm_vcvtpq_x_u32_f32): Likewise.
16683 (__arm_vcvtmq_x_s16_f16): Likewise.
16684 (__arm_vcvtmq_x_s32_f32): Likewise.
16685 (__arm_vcvtmq_x_u16_f16): Likewise.
16686 (__arm_vcvtmq_x_u32_f32): Likewise.
16687 (__arm_vcvtbq_x_f32_f16): Likewise.
16688 (__arm_vcvttq_x_f32_f16): Likewise.
16689 (__arm_vcvtq_x_f16_u16): Likewise.
16690 (__arm_vcvtq_x_f16_s16): Likewise.
16691 (__arm_vcvtq_x_f32_s32): Likewise.
16692 (__arm_vcvtq_x_f32_u32): Likewise.
16693 (__arm_vcvtq_x_n_f16_s16): Likewise.
16694 (__arm_vcvtq_x_n_f16_u16): Likewise.
16695 (__arm_vcvtq_x_n_f32_s32): Likewise.
16696 (__arm_vcvtq_x_n_f32_u32): Likewise.
16697 (__arm_vcvtq_x_s16_f16): Likewise.
16698 (__arm_vcvtq_x_s32_f32): Likewise.
16699 (__arm_vcvtq_x_u16_f16): Likewise.
16700 (__arm_vcvtq_x_u32_f32): Likewise.
16701 (__arm_vcvtq_x_n_s16_f16): Likewise.
16702 (__arm_vcvtq_x_n_s32_f32): Likewise.
16703 (__arm_vcvtq_x_n_u16_f16): Likewise.
16704 (__arm_vcvtq_x_n_u32_f32): Likewise.
16705 (__arm_vrndq_x_f16): Likewise.
16706 (__arm_vrndq_x_f32): Likewise.
16707 (__arm_vrndnq_x_f16): Likewise.
16708 (__arm_vrndnq_x_f32): Likewise.
16709 (__arm_vrndmq_x_f16): Likewise.
16710 (__arm_vrndmq_x_f32): Likewise.
16711 (__arm_vrndpq_x_f16): Likewise.
16712 (__arm_vrndpq_x_f32): Likewise.
16713 (__arm_vrndaq_x_f16): Likewise.
16714 (__arm_vrndaq_x_f32): Likewise.
16715 (__arm_vrndxq_x_f16): Likewise.
16716 (__arm_vrndxq_x_f32): Likewise.
16717 (__arm_vandq_x_f16): Likewise.
16718 (__arm_vandq_x_f32): Likewise.
16719 (__arm_vbicq_x_f16): Likewise.
16720 (__arm_vbicq_x_f32): Likewise.
16721 (__arm_vbrsrq_x_n_f16): Likewise.
16722 (__arm_vbrsrq_x_n_f32): Likewise.
16723 (__arm_veorq_x_f16): Likewise.
16724 (__arm_veorq_x_f32): Likewise.
16725 (__arm_vornq_x_f16): Likewise.
16726 (__arm_vornq_x_f32): Likewise.
16727 (__arm_vorrq_x_f16): Likewise.
16728 (__arm_vorrq_x_f32): Likewise.
16729 (__arm_vrev32q_x_f16): Likewise.
16730 (__arm_vrev64q_x_f16): Likewise.
16731 (__arm_vrev64q_x_f32): Likewise.
16732 (vabdq_x): Define polymorphic variant.
16733 (vabsq_x): Likewise.
16734 (vaddq_x): Likewise.
16735 (vandq_x): Likewise.
16736 (vbicq_x): Likewise.
16737 (vbrsrq_x): Likewise.
16738 (vcaddq_rot270_x): Likewise.
16739 (vcaddq_rot90_x): Likewise.
16740 (vcmulq_rot180_x): Likewise.
16741 (vcmulq_rot270_x): Likewise.
16742 (vcmulq_x): Likewise.
16743 (vcvtq_x): Likewise.
16744 (vcvtq_x_n): Likewise.
16745 (vcvtnq_m): Likewise.
16746 (veorq_x): Likewise.
16747 (vmaxnmq_x): Likewise.
16748 (vminnmq_x): Likewise.
16749 (vmulq_x): Likewise.
16750 (vnegq_x): Likewise.
16751 (vornq_x): Likewise.
16752 (vorrq_x): Likewise.
16753 (vrev32q_x): Likewise.
16754 (vrev64q_x): Likewise.
16755 (vrndaq_x): Likewise.
16756 (vrndmq_x): Likewise.
16757 (vrndnq_x): Likewise.
16758 (vrndpq_x): Likewise.
16759 (vrndq_x): Likewise.
16760 (vrndxq_x): Likewise.
16761 (vsubq_x): Likewise.
16762 (vcmulq_rot90_x): Likewise.
16763 (vadciq): Likewise.
16764 (vclsq_x): Likewise.
16765 (vclzq_x): Likewise.
16766 (vhaddq_x): Likewise.
16767 (vhcaddq_rot270_x): Likewise.
16768 (vhcaddq_rot90_x): Likewise.
16769 (vhsubq_x): Likewise.
16770 (vmaxq_x): Likewise.
16771 (vminq_x): Likewise.
16772 (vmovlbq_x): Likewise.
16773 (vmovltq_x): Likewise.
16774 (vmulhq_x): Likewise.
16775 (vmullbq_int_x): Likewise.
16776 (vmullbq_poly_x): Likewise.
16777 (vmulltq_int_x): Likewise.
16778 (vmulltq_poly_x): Likewise.
16779 (vmvnq_x): Likewise.
16780 (vrev16q_x): Likewise.
16781 (vrhaddq_x): Likewise.
16782 (vrmulhq_x): Likewise.
16783 (vrshlq_x): Likewise.
16784 (vrshrq_x): Likewise.
16785 (vshllbq_x): Likewise.
16786 (vshlltq_x): Likewise.
16787 (vshlq_x_n): Likewise.
16788 (vshlq_x): Likewise.
16789 (vdwdupq_x_u8): Likewise.
16790 (vdwdupq_x_u16): Likewise.
16791 (vdwdupq_x_u32): Likewise.
16792 (viwdupq_x_u8): Likewise.
16793 (viwdupq_x_u16): Likewise.
16794 (viwdupq_x_u32): Likewise.
16795 (vidupq_x_u8): Likewise.
16796 (vddupq_x_u8): Likewise.
16797 (vidupq_x_u16): Likewise.
16798 (vddupq_x_u16): Likewise.
16799 (vidupq_x_u32): Likewise.
16800 (vddupq_x_u32): Likewise.
16801 (vshrq_x): Likewise.
16803 2020-03-20 Richard Biener <rguenther@suse.de>
16805 * tree-vect-slp.c (vect_analyze_slp_instance): Push the stmts
16806 to vectorize for CTOR defs.
16808 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
16809 Andre Vieira <andre.simoesdiasvieira@arm.com>
16810 Mihail Ionescu <mihail.ionescu@arm.com>
16812 * config/arm/arm-builtins.c (LDRGBWBS_QUALIFIERS): Define builtin
16814 (LDRGBWBU_QUALIFIERS): Likewise.
16815 (LDRGBWBS_Z_QUALIFIERS): Likewise.
16816 (LDRGBWBU_Z_QUALIFIERS): Likewise.
16817 (STRSBWBS_QUALIFIERS): Likewise.
16818 (STRSBWBU_QUALIFIERS): Likewise.
16819 (STRSBWBS_P_QUALIFIERS): Likewise.
16820 (STRSBWBU_P_QUALIFIERS): Likewise.
16821 * config/arm/arm_mve.h (vldrdq_gather_base_wb_s64): Define macro.
16822 (vldrdq_gather_base_wb_u64): Likewise.
16823 (vldrdq_gather_base_wb_z_s64): Likewise.
16824 (vldrdq_gather_base_wb_z_u64): Likewise.
16825 (vldrwq_gather_base_wb_f32): Likewise.
16826 (vldrwq_gather_base_wb_s32): Likewise.
16827 (vldrwq_gather_base_wb_u32): Likewise.
16828 (vldrwq_gather_base_wb_z_f32): Likewise.
16829 (vldrwq_gather_base_wb_z_s32): Likewise.
16830 (vldrwq_gather_base_wb_z_u32): Likewise.
16831 (vstrdq_scatter_base_wb_p_s64): Likewise.
16832 (vstrdq_scatter_base_wb_p_u64): Likewise.
16833 (vstrdq_scatter_base_wb_s64): Likewise.
16834 (vstrdq_scatter_base_wb_u64): Likewise.
16835 (vstrwq_scatter_base_wb_p_s32): Likewise.
16836 (vstrwq_scatter_base_wb_p_f32): Likewise.
16837 (vstrwq_scatter_base_wb_p_u32): Likewise.
16838 (vstrwq_scatter_base_wb_s32): Likewise.
16839 (vstrwq_scatter_base_wb_u32): Likewise.
16840 (vstrwq_scatter_base_wb_f32): Likewise.
16841 (__arm_vldrdq_gather_base_wb_s64): Define intrinsic.
16842 (__arm_vldrdq_gather_base_wb_u64): Likewise.
16843 (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
16844 (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
16845 (__arm_vldrwq_gather_base_wb_s32): Likewise.
16846 (__arm_vldrwq_gather_base_wb_u32): Likewise.
16847 (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
16848 (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
16849 (__arm_vstrdq_scatter_base_wb_s64): Likewise.
16850 (__arm_vstrdq_scatter_base_wb_u64): Likewise.
16851 (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
16852 (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
16853 (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
16854 (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
16855 (__arm_vstrwq_scatter_base_wb_s32): Likewise.
16856 (__arm_vstrwq_scatter_base_wb_u32): Likewise.
16857 (__arm_vldrwq_gather_base_wb_f32): Likewise.
16858 (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
16859 (__arm_vstrwq_scatter_base_wb_f32): Likewise.
16860 (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
16861 (vstrwq_scatter_base_wb): Define polymorphic variant.
16862 (vstrwq_scatter_base_wb_p): Likewise.
16863 (vstrdq_scatter_base_wb_p): Likewise.
16864 (vstrdq_scatter_base_wb): Likewise.
16865 * config/arm/arm_mve_builtins.def (LDRGBWBS_QUALIFIERS): Use builtin
16867 * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Define RTL
16869 (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
16870 (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Likewise.
16871 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Likewise.
16872 (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
16873 (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Likewise.
16874 (mve_vstrwq_scatter_base_wb_fv4sf): Likewise.
16875 (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
16876 (mve_vstrwq_scatter_base_wb_fv4sf_insn): Likewise.
16877 (mve_vstrwq_scatter_base_wb_p_fv4sf): Likewise.
16878 (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
16879 (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Likewise.
16880 (mve_vstrdq_scatter_base_wb_<supf>v2di): Likewise.
16881 (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
16882 (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Likewise.
16883 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Likewise.
16884 (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
16885 (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Likewise.
16886 (mve_vldrwq_gather_base_wb_<supf>v4si): Likewise.
16887 (mve_vldrwq_gather_base_wb_<supf>v4si_insn): Likewise.
16888 (mve_vldrwq_gather_base_wb_z_<supf>v4si): Likewise.
16889 (mve_vldrwq_gather_base_wb_z_<supf>v4si_insn): Likewise.
16890 (mve_vldrwq_gather_base_wb_fv4sf): Likewise.
16891 (mve_vldrwq_gather_base_wb_fv4sf_insn): Likewise.
16892 (mve_vldrwq_gather_base_wb_z_fv4sf): Likewise.
16893 (mve_vldrwq_gather_base_wb_z_fv4sf_insn): Likewise.
16894 (mve_vldrdq_gather_base_wb_<supf>v2di): Likewise.
16895 (mve_vldrdq_gather_base_wb_<supf>v2di_insn): Likewise.
16896 (mve_vldrdq_gather_base_wb_z_<supf>v2di): Likewise.
16897 (mve_vldrdq_gather_base_wb_z_<supf>v2di_insn): Likewise.
16899 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
16900 Andre Vieira <andre.simoesdiasvieira@arm.com>
16901 Mihail Ionescu <mihail.ionescu@arm.com>
16903 * config/arm/arm-builtins.c
16904 (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Define quinary
16906 * config/arm/arm_mve.h (vddupq_m_n_u8): Define macro.
16907 (vddupq_m_n_u32): Likewise.
16908 (vddupq_m_n_u16): Likewise.
16909 (vddupq_m_wb_u8): Likewise.
16910 (vddupq_m_wb_u16): Likewise.
16911 (vddupq_m_wb_u32): Likewise.
16912 (vddupq_n_u8): Likewise.
16913 (vddupq_n_u32): Likewise.
16914 (vddupq_n_u16): Likewise.
16915 (vddupq_wb_u8): Likewise.
16916 (vddupq_wb_u16): Likewise.
16917 (vddupq_wb_u32): Likewise.
16918 (vdwdupq_m_n_u8): Likewise.
16919 (vdwdupq_m_n_u32): Likewise.
16920 (vdwdupq_m_n_u16): Likewise.
16921 (vdwdupq_m_wb_u8): Likewise.
16922 (vdwdupq_m_wb_u32): Likewise.
16923 (vdwdupq_m_wb_u16): Likewise.
16924 (vdwdupq_n_u8): Likewise.
16925 (vdwdupq_n_u32): Likewise.
16926 (vdwdupq_n_u16): Likewise.
16927 (vdwdupq_wb_u8): Likewise.
16928 (vdwdupq_wb_u32): Likewise.
16929 (vdwdupq_wb_u16): Likewise.
16930 (vidupq_m_n_u8): Likewise.
16931 (vidupq_m_n_u32): Likewise.
16932 (vidupq_m_n_u16): Likewise.
16933 (vidupq_m_wb_u8): Likewise.
16934 (vidupq_m_wb_u16): Likewise.
16935 (vidupq_m_wb_u32): Likewise.
16936 (vidupq_n_u8): Likewise.
16937 (vidupq_n_u32): Likewise.
16938 (vidupq_n_u16): Likewise.
16939 (vidupq_wb_u8): Likewise.
16940 (vidupq_wb_u16): Likewise.
16941 (vidupq_wb_u32): Likewise.
16942 (viwdupq_m_n_u8): Likewise.
16943 (viwdupq_m_n_u32): Likewise.
16944 (viwdupq_m_n_u16): Likewise.
16945 (viwdupq_m_wb_u8): Likewise.
16946 (viwdupq_m_wb_u32): Likewise.
16947 (viwdupq_m_wb_u16): Likewise.
16948 (viwdupq_n_u8): Likewise.
16949 (viwdupq_n_u32): Likewise.
16950 (viwdupq_n_u16): Likewise.
16951 (viwdupq_wb_u8): Likewise.
16952 (viwdupq_wb_u32): Likewise.
16953 (viwdupq_wb_u16): Likewise.
16954 (__arm_vddupq_m_n_u8): Define intrinsic.
16955 (__arm_vddupq_m_n_u32): Likewise.
16956 (__arm_vddupq_m_n_u16): Likewise.
16957 (__arm_vddupq_m_wb_u8): Likewise.
16958 (__arm_vddupq_m_wb_u16): Likewise.
16959 (__arm_vddupq_m_wb_u32): Likewise.
16960 (__arm_vddupq_n_u8): Likewise.
16961 (__arm_vddupq_n_u32): Likewise.
16962 (__arm_vddupq_n_u16): Likewise.
16963 (__arm_vdwdupq_m_n_u8): Likewise.
16964 (__arm_vdwdupq_m_n_u32): Likewise.
16965 (__arm_vdwdupq_m_n_u16): Likewise.
16966 (__arm_vdwdupq_m_wb_u8): Likewise.
16967 (__arm_vdwdupq_m_wb_u32): Likewise.
16968 (__arm_vdwdupq_m_wb_u16): Likewise.
16969 (__arm_vdwdupq_n_u8): Likewise.
16970 (__arm_vdwdupq_n_u32): Likewise.
16971 (__arm_vdwdupq_n_u16): Likewise.
16972 (__arm_vdwdupq_wb_u8): Likewise.
16973 (__arm_vdwdupq_wb_u32): Likewise.
16974 (__arm_vdwdupq_wb_u16): Likewise.
16975 (__arm_vidupq_m_n_u8): Likewise.
16976 (__arm_vidupq_m_n_u32): Likewise.
16977 (__arm_vidupq_m_n_u16): Likewise.
16978 (__arm_vidupq_n_u8): Likewise.
16979 (__arm_vidupq_m_wb_u8): Likewise.
16980 (__arm_vidupq_m_wb_u16): Likewise.
16981 (__arm_vidupq_m_wb_u32): Likewise.
16982 (__arm_vidupq_n_u32): Likewise.
16983 (__arm_vidupq_n_u16): Likewise.
16984 (__arm_vidupq_wb_u8): Likewise.
16985 (__arm_vidupq_wb_u16): Likewise.
16986 (__arm_vidupq_wb_u32): Likewise.
16987 (__arm_vddupq_wb_u8): Likewise.
16988 (__arm_vddupq_wb_u16): Likewise.
16989 (__arm_vddupq_wb_u32): Likewise.
16990 (__arm_viwdupq_m_n_u8): Likewise.
16991 (__arm_viwdupq_m_n_u32): Likewise.
16992 (__arm_viwdupq_m_n_u16): Likewise.
16993 (__arm_viwdupq_m_wb_u8): Likewise.
16994 (__arm_viwdupq_m_wb_u32): Likewise.
16995 (__arm_viwdupq_m_wb_u16): Likewise.
16996 (__arm_viwdupq_n_u8): Likewise.
16997 (__arm_viwdupq_n_u32): Likewise.
16998 (__arm_viwdupq_n_u16): Likewise.
16999 (__arm_viwdupq_wb_u8): Likewise.
17000 (__arm_viwdupq_wb_u32): Likewise.
17001 (__arm_viwdupq_wb_u16): Likewise.
17002 (vidupq_m): Define polymorphic variant.
17003 (vddupq_m): Likewise.
17004 (vidupq_u16): Likewise.
17005 (vidupq_u32): Likewise.
17006 (vidupq_u8): Likewise.
17007 (vddupq_u16): Likewise.
17008 (vddupq_u32): Likewise.
17009 (vddupq_u8): Likewise.
17010 (viwdupq_m): Likewise.
17011 (viwdupq_u16): Likewise.
17012 (viwdupq_u32): Likewise.
17013 (viwdupq_u8): Likewise.
17014 (vdwdupq_m): Likewise.
17015 (vdwdupq_u16): Likewise.
17016 (vdwdupq_u32): Likewise.
17017 (vdwdupq_u8): Likewise.
17018 * config/arm/arm_mve_builtins.def
17019 (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Use builtin
17021 * config/arm/mve.md (mve_vidupq_n_u<mode>): Define RTL pattern.
17022 (mve_vidupq_u<mode>_insn): Likewise.
17023 (mve_vidupq_m_n_u<mode>): Likewise.
17024 (mve_vidupq_m_wb_u<mode>_insn): Likewise.
17025 (mve_vddupq_n_u<mode>): Likewise.
17026 (mve_vddupq_u<mode>_insn): Likewise.
17027 (mve_vddupq_m_n_u<mode>): Likewise.
17028 (mve_vddupq_m_wb_u<mode>_insn): Likewise.
17029 (mve_vdwdupq_n_u<mode>): Likewise.
17030 (mve_vdwdupq_wb_u<mode>): Likewise.
17031 (mve_vdwdupq_wb_u<mode>_insn): Likewise.
17032 (mve_vdwdupq_m_n_u<mode>): Likewise.
17033 (mve_vdwdupq_m_wb_u<mode>): Likewise.
17034 (mve_vdwdupq_m_wb_u<mode>_insn): Likewise.
17035 (mve_viwdupq_n_u<mode>): Likewise.
17036 (mve_viwdupq_wb_u<mode>): Likewise.
17037 (mve_viwdupq_wb_u<mode>_insn): Likewise.
17038 (mve_viwdupq_m_n_u<mode>): Likewise.
17039 (mve_viwdupq_m_wb_u<mode>): Likewise.
17040 (mve_viwdupq_m_wb_u<mode>_insn): Likewise.
17042 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17044 * config/arm/arm_mve.h (vreinterpretq_s16_s32): Define macro.
17045 (vreinterpretq_s16_s64): Likewise.
17046 (vreinterpretq_s16_s8): Likewise.
17047 (vreinterpretq_s16_u16): Likewise.
17048 (vreinterpretq_s16_u32): Likewise.
17049 (vreinterpretq_s16_u64): Likewise.
17050 (vreinterpretq_s16_u8): Likewise.
17051 (vreinterpretq_s32_s16): Likewise.
17052 (vreinterpretq_s32_s64): Likewise.
17053 (vreinterpretq_s32_s8): Likewise.
17054 (vreinterpretq_s32_u16): Likewise.
17055 (vreinterpretq_s32_u32): Likewise.
17056 (vreinterpretq_s32_u64): Likewise.
17057 (vreinterpretq_s32_u8): Likewise.
17058 (vreinterpretq_s64_s16): Likewise.
17059 (vreinterpretq_s64_s32): Likewise.
17060 (vreinterpretq_s64_s8): Likewise.
17061 (vreinterpretq_s64_u16): Likewise.
17062 (vreinterpretq_s64_u32): Likewise.
17063 (vreinterpretq_s64_u64): Likewise.
17064 (vreinterpretq_s64_u8): Likewise.
17065 (vreinterpretq_s8_s16): Likewise.
17066 (vreinterpretq_s8_s32): Likewise.
17067 (vreinterpretq_s8_s64): Likewise.
17068 (vreinterpretq_s8_u16): Likewise.
17069 (vreinterpretq_s8_u32): Likewise.
17070 (vreinterpretq_s8_u64): Likewise.
17071 (vreinterpretq_s8_u8): Likewise.
17072 (vreinterpretq_u16_s16): Likewise.
17073 (vreinterpretq_u16_s32): Likewise.
17074 (vreinterpretq_u16_s64): Likewise.
17075 (vreinterpretq_u16_s8): Likewise.
17076 (vreinterpretq_u16_u32): Likewise.
17077 (vreinterpretq_u16_u64): Likewise.
17078 (vreinterpretq_u16_u8): Likewise.
17079 (vreinterpretq_u32_s16): Likewise.
17080 (vreinterpretq_u32_s32): Likewise.
17081 (vreinterpretq_u32_s64): Likewise.
17082 (vreinterpretq_u32_s8): Likewise.
17083 (vreinterpretq_u32_u16): Likewise.
17084 (vreinterpretq_u32_u64): Likewise.
17085 (vreinterpretq_u32_u8): Likewise.
17086 (vreinterpretq_u64_s16): Likewise.
17087 (vreinterpretq_u64_s32): Likewise.
17088 (vreinterpretq_u64_s64): Likewise.
17089 (vreinterpretq_u64_s8): Likewise.
17090 (vreinterpretq_u64_u16): Likewise.
17091 (vreinterpretq_u64_u32): Likewise.
17092 (vreinterpretq_u64_u8): Likewise.
17093 (vreinterpretq_u8_s16): Likewise.
17094 (vreinterpretq_u8_s32): Likewise.
17095 (vreinterpretq_u8_s64): Likewise.
17096 (vreinterpretq_u8_s8): Likewise.
17097 (vreinterpretq_u8_u16): Likewise.
17098 (vreinterpretq_u8_u32): Likewise.
17099 (vreinterpretq_u8_u64): Likewise.
17100 (vreinterpretq_s32_f16): Likewise.
17101 (vreinterpretq_s32_f32): Likewise.
17102 (vreinterpretq_u16_f16): Likewise.
17103 (vreinterpretq_u16_f32): Likewise.
17104 (vreinterpretq_u32_f16): Likewise.
17105 (vreinterpretq_u32_f32): Likewise.
17106 (vreinterpretq_u64_f16): Likewise.
17107 (vreinterpretq_u64_f32): Likewise.
17108 (vreinterpretq_u8_f16): Likewise.
17109 (vreinterpretq_u8_f32): Likewise.
17110 (vreinterpretq_f16_f32): Likewise.
17111 (vreinterpretq_f16_s16): Likewise.
17112 (vreinterpretq_f16_s32): Likewise.
17113 (vreinterpretq_f16_s64): Likewise.
17114 (vreinterpretq_f16_s8): Likewise.
17115 (vreinterpretq_f16_u16): Likewise.
17116 (vreinterpretq_f16_u32): Likewise.
17117 (vreinterpretq_f16_u64): Likewise.
17118 (vreinterpretq_f16_u8): Likewise.
17119 (vreinterpretq_f32_f16): Likewise.
17120 (vreinterpretq_f32_s16): Likewise.
17121 (vreinterpretq_f32_s32): Likewise.
17122 (vreinterpretq_f32_s64): Likewise.
17123 (vreinterpretq_f32_s8): Likewise.
17124 (vreinterpretq_f32_u16): Likewise.
17125 (vreinterpretq_f32_u32): Likewise.
17126 (vreinterpretq_f32_u64): Likewise.
17127 (vreinterpretq_f32_u8): Likewise.
17128 (vreinterpretq_s16_f16): Likewise.
17129 (vreinterpretq_s16_f32): Likewise.
17130 (vreinterpretq_s64_f16): Likewise.
17131 (vreinterpretq_s64_f32): Likewise.
17132 (vreinterpretq_s8_f16): Likewise.
17133 (vreinterpretq_s8_f32): Likewise.
17134 (vuninitializedq_u8): Likewise.
17135 (vuninitializedq_u16): Likewise.
17136 (vuninitializedq_u32): Likewise.
17137 (vuninitializedq_u64): Likewise.
17138 (vuninitializedq_s8): Likewise.
17139 (vuninitializedq_s16): Likewise.
17140 (vuninitializedq_s32): Likewise.
17141 (vuninitializedq_s64): Likewise.
17142 (vuninitializedq_f16): Likewise.
17143 (vuninitializedq_f32): Likewise.
17144 (__arm_vuninitializedq_u8): Define intrinsic.
17145 (__arm_vuninitializedq_u16): Likewise.
17146 (__arm_vuninitializedq_u32): Likewise.
17147 (__arm_vuninitializedq_u64): Likewise.
17148 (__arm_vuninitializedq_s8): Likewise.
17149 (__arm_vuninitializedq_s16): Likewise.
17150 (__arm_vuninitializedq_s32): Likewise.
17151 (__arm_vuninitializedq_s64): Likewise.
17152 (__arm_vreinterpretq_s16_s32): Likewise.
17153 (__arm_vreinterpretq_s16_s64): Likewise.
17154 (__arm_vreinterpretq_s16_s8): Likewise.
17155 (__arm_vreinterpretq_s16_u16): Likewise.
17156 (__arm_vreinterpretq_s16_u32): Likewise.
17157 (__arm_vreinterpretq_s16_u64): Likewise.
17158 (__arm_vreinterpretq_s16_u8): Likewise.
17159 (__arm_vreinterpretq_s32_s16): Likewise.
17160 (__arm_vreinterpretq_s32_s64): Likewise.
17161 (__arm_vreinterpretq_s32_s8): Likewise.
17162 (__arm_vreinterpretq_s32_u16): Likewise.
17163 (__arm_vreinterpretq_s32_u32): Likewise.
17164 (__arm_vreinterpretq_s32_u64): Likewise.
17165 (__arm_vreinterpretq_s32_u8): Likewise.
17166 (__arm_vreinterpretq_s64_s16): Likewise.
17167 (__arm_vreinterpretq_s64_s32): Likewise.
17168 (__arm_vreinterpretq_s64_s8): Likewise.
17169 (__arm_vreinterpretq_s64_u16): Likewise.
17170 (__arm_vreinterpretq_s64_u32): Likewise.
17171 (__arm_vreinterpretq_s64_u64): Likewise.
17172 (__arm_vreinterpretq_s64_u8): Likewise.
17173 (__arm_vreinterpretq_s8_s16): Likewise.
17174 (__arm_vreinterpretq_s8_s32): Likewise.
17175 (__arm_vreinterpretq_s8_s64): Likewise.
17176 (__arm_vreinterpretq_s8_u16): Likewise.
17177 (__arm_vreinterpretq_s8_u32): Likewise.
17178 (__arm_vreinterpretq_s8_u64): Likewise.
17179 (__arm_vreinterpretq_s8_u8): Likewise.
17180 (__arm_vreinterpretq_u16_s16): Likewise.
17181 (__arm_vreinterpretq_u16_s32): Likewise.
17182 (__arm_vreinterpretq_u16_s64): Likewise.
17183 (__arm_vreinterpretq_u16_s8): Likewise.
17184 (__arm_vreinterpretq_u16_u32): Likewise.
17185 (__arm_vreinterpretq_u16_u64): Likewise.
17186 (__arm_vreinterpretq_u16_u8): Likewise.
17187 (__arm_vreinterpretq_u32_s16): Likewise.
17188 (__arm_vreinterpretq_u32_s32): Likewise.
17189 (__arm_vreinterpretq_u32_s64): Likewise.
17190 (__arm_vreinterpretq_u32_s8): Likewise.
17191 (__arm_vreinterpretq_u32_u16): Likewise.
17192 (__arm_vreinterpretq_u32_u64): Likewise.
17193 (__arm_vreinterpretq_u32_u8): Likewise.
17194 (__arm_vreinterpretq_u64_s16): Likewise.
17195 (__arm_vreinterpretq_u64_s32): Likewise.
17196 (__arm_vreinterpretq_u64_s64): Likewise.
17197 (__arm_vreinterpretq_u64_s8): Likewise.
17198 (__arm_vreinterpretq_u64_u16): Likewise.
17199 (__arm_vreinterpretq_u64_u32): Likewise.
17200 (__arm_vreinterpretq_u64_u8): Likewise.
17201 (__arm_vreinterpretq_u8_s16): Likewise.
17202 (__arm_vreinterpretq_u8_s32): Likewise.
17203 (__arm_vreinterpretq_u8_s64): Likewise.
17204 (__arm_vreinterpretq_u8_s8): Likewise.
17205 (__arm_vreinterpretq_u8_u16): Likewise.
17206 (__arm_vreinterpretq_u8_u32): Likewise.
17207 (__arm_vreinterpretq_u8_u64): Likewise.
17208 (__arm_vuninitializedq_f16): Likewise.
17209 (__arm_vuninitializedq_f32): Likewise.
17210 (__arm_vreinterpretq_s32_f16): Likewise.
17211 (__arm_vreinterpretq_s32_f32): Likewise.
17212 (__arm_vreinterpretq_s16_f16): Likewise.
17213 (__arm_vreinterpretq_s16_f32): Likewise.
17214 (__arm_vreinterpretq_s64_f16): Likewise.
17215 (__arm_vreinterpretq_s64_f32): Likewise.
17216 (__arm_vreinterpretq_s8_f16): Likewise.
17217 (__arm_vreinterpretq_s8_f32): Likewise.
17218 (__arm_vreinterpretq_u16_f16): Likewise.
17219 (__arm_vreinterpretq_u16_f32): Likewise.
17220 (__arm_vreinterpretq_u32_f16): Likewise.
17221 (__arm_vreinterpretq_u32_f32): Likewise.
17222 (__arm_vreinterpretq_u64_f16): Likewise.
17223 (__arm_vreinterpretq_u64_f32): Likewise.
17224 (__arm_vreinterpretq_u8_f16): Likewise.
17225 (__arm_vreinterpretq_u8_f32): Likewise.
17226 (__arm_vreinterpretq_f16_f32): Likewise.
17227 (__arm_vreinterpretq_f16_s16): Likewise.
17228 (__arm_vreinterpretq_f16_s32): Likewise.
17229 (__arm_vreinterpretq_f16_s64): Likewise.
17230 (__arm_vreinterpretq_f16_s8): Likewise.
17231 (__arm_vreinterpretq_f16_u16): Likewise.
17232 (__arm_vreinterpretq_f16_u32): Likewise.
17233 (__arm_vreinterpretq_f16_u64): Likewise.
17234 (__arm_vreinterpretq_f16_u8): Likewise.
17235 (__arm_vreinterpretq_f32_f16): Likewise.
17236 (__arm_vreinterpretq_f32_s16): Likewise.
17237 (__arm_vreinterpretq_f32_s32): Likewise.
17238 (__arm_vreinterpretq_f32_s64): Likewise.
17239 (__arm_vreinterpretq_f32_s8): Likewise.
17240 (__arm_vreinterpretq_f32_u16): Likewise.
17241 (__arm_vreinterpretq_f32_u32): Likewise.
17242 (__arm_vreinterpretq_f32_u64): Likewise.
17243 (__arm_vreinterpretq_f32_u8): Likewise.
17244 (vuninitializedq): Define polymorphic variant.
17245 (vreinterpretq_f16): Likewise.
17246 (vreinterpretq_f32): Likewise.
17247 (vreinterpretq_s16): Likewise.
17248 (vreinterpretq_s32): Likewise.
17249 (vreinterpretq_s64): Likewise.
17250 (vreinterpretq_s8): Likewise.
17251 (vreinterpretq_u16): Likewise.
17252 (vreinterpretq_u32): Likewise.
17253 (vreinterpretq_u64): Likewise.
17254 (vreinterpretq_u8): Likewise.
17256 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17257 Andre Vieira <andre.simoesdiasvieira@arm.com>
17258 Mihail Ionescu <mihail.ionescu@arm.com>
17260 * config/arm/arm_mve.h (vaddq_s8): Define macro.
17261 (vaddq_s16): Likewise.
17262 (vaddq_s32): Likewise.
17263 (vaddq_u8): Likewise.
17264 (vaddq_u16): Likewise.
17265 (vaddq_u32): Likewise.
17266 (vaddq_f16): Likewise.
17267 (vaddq_f32): Likewise.
17268 (__arm_vaddq_s8): Define intrinsic.
17269 (__arm_vaddq_s16): Likewise.
17270 (__arm_vaddq_s32): Likewise.
17271 (__arm_vaddq_u8): Likewise.
17272 (__arm_vaddq_u16): Likewise.
17273 (__arm_vaddq_u32): Likewise.
17274 (__arm_vaddq_f16): Likewise.
17275 (__arm_vaddq_f32): Likewise.
17276 (vaddq): Define polymorphic variant.
17277 * config/arm/iterators.md (VNIM): Define mode iterator for common types
17278 Neon, IWMMXT and MVE.
17279 (VNINOTM): Likewise.
17280 * config/arm/mve.md (mve_vaddq<mode>): Define RTL pattern.
17281 (mve_vaddq_f<mode>): Define RTL pattern.
17282 * config/arm/neon.md (add<mode>3): Rename to addv4hf3 RTL pattern.
17283 (addv8hf3_neon): Define RTL pattern.
17284 * config/arm/vec-common.md (add<mode>3): Modify standard add RTL pattern
17286 (addv8hf3): Define standard RTL pattern for MVE and Neon.
17287 (add<mode>3): Modify existing standard add RTL pattern for Neon and IWMMXT.
17289 2020-03-20 Martin Liska <mliska@suse.cz>
17292 * ipa-cp.c (ipa_get_jf_ancestor_result): Use offset in bytes. Previously
17293 build_ref_for_offset function was used and it transforms off to bytes
17296 2020-03-20 Richard Biener <rguenther@suse.de>
17298 PR tree-optimization/94266
17299 * gimple-ssa-sprintf.c (get_origin_and_offset): Use the
17300 type of the underlying object to adjust for the containing
17301 field if available.
17303 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17305 * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Rename this to ...
17306 (VUNSPEC_GET_FPSCR): ... this, and move it to vunspec.
17307 * config/arm/vfp.md: (get_fpscr, set_fpscr): Revert to old patterns.
17309 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17311 * config/arm/mve.md (mve_mov<mode>): Fix R->R case.
17313 2020-03-20 Jakub Jelinek <jakub@redhat.com>
17315 PR tree-optimization/94224
17316 * gimple-ssa-store-merging.c
17317 (imm_store_chain_info::coalesce_immediate): Don't consider overlapping
17318 or adjacent INTEGER_CST rhs_code stores as mergeable if they have
17321 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17323 * config/arm/arm.md (define_attr "conds"): Fix logic for neon and mve.
17325 2020-03-19 Jan Hubicka <hubicka@ucw.cz>
17328 * cgraph.c (cgraph_node::function_symbol): Fix availability computation.
17329 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
17331 2020-03-19 Jan Hubicka <hubicka@ucw.cz>
17334 * cgraphunit.c (process_function_and_variable_attributes): warn
17335 for flatten attribute on alias.
17336 * ipa-inline.c (ipa_inline): Do not ICE on flatten attribute on alias.
17338 2020-03-19 Martin Liska <mliska@suse.cz>
17340 * lto-section-in.c: Add ext_symtab.
17341 * lto-streamer-out.c (write_symbol_extension_info): New.
17342 (produce_symtab_extension): New.
17343 (produce_asm_for_decls): Stream also produce_symtab_extension.
17344 * lto-streamer.h (enum lto_section_type): New section.
17346 2020-03-19 Jakub Jelinek <jakub@redhat.com>
17348 PR tree-optimization/94211
17349 * tree-ssa-phiopt.c (value_replacement): Use estimate_num_insns_seq
17350 instead of estimate_num_insns for bb_seq (middle_bb). Rename
17351 emtpy_or_with_defined_p variable to empty_or_with_defined_p, adjust
17354 2020-03-19 Richard Biener <rguenther@suse.de>
17357 * ipa-cp.c (ipa_get_jf_ancestor_result): Avoid build_fold_addr_expr
17358 and build_ref_for_offset.
17360 2020-03-19 Richard Biener <rguenther@suse.de>
17362 PR middle-end/94216
17363 * fold-const.c (fold_binary_loc): Avoid using
17364 build_fold_addr_expr when we really want an ADDR_EXPR.
17366 2020-03-18 Segher Boessenkool <segher@kernel.crashing.org>
17368 * config/rs6000/constraints.md (wd, wf, wi, ws, ww): New undocumented
17371 2020-03-12 Richard Sandiford <richard.sandiford@arm.com>
17373 PR rtl-optimization/90275
17374 * cse.c (cse_insn): Delete no-op register moves too.
17376 2020-03-18 Martin Sebor <msebor@redhat.com>
17379 * cgraphunit.c (process_function_and_variable_attributes): Also
17380 complain about weakref function definitions and drop all effects
17383 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
17384 Mihail Ionescu <mihail.ionescu@arm.com>
17385 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17387 * config/arm/arm_mve.h (vstrdq_scatter_base_p_s64): Define macro.
17388 (vstrdq_scatter_base_p_u64): Likewise.
17389 (vstrdq_scatter_base_s64): Likewise.
17390 (vstrdq_scatter_base_u64): Likewise.
17391 (vstrdq_scatter_offset_p_s64): Likewise.
17392 (vstrdq_scatter_offset_p_u64): Likewise.
17393 (vstrdq_scatter_offset_s64): Likewise.
17394 (vstrdq_scatter_offset_u64): Likewise.
17395 (vstrdq_scatter_shifted_offset_p_s64): Likewise.
17396 (vstrdq_scatter_shifted_offset_p_u64): Likewise.
17397 (vstrdq_scatter_shifted_offset_s64): Likewise.
17398 (vstrdq_scatter_shifted_offset_u64): Likewise.
17399 (vstrhq_scatter_offset_f16): Likewise.
17400 (vstrhq_scatter_offset_p_f16): Likewise.
17401 (vstrhq_scatter_shifted_offset_f16): Likewise.
17402 (vstrhq_scatter_shifted_offset_p_f16): Likewise.
17403 (vstrwq_scatter_base_f32): Likewise.
17404 (vstrwq_scatter_base_p_f32): Likewise.
17405 (vstrwq_scatter_offset_f32): Likewise.
17406 (vstrwq_scatter_offset_p_f32): Likewise.
17407 (vstrwq_scatter_offset_p_s32): Likewise.
17408 (vstrwq_scatter_offset_p_u32): Likewise.
17409 (vstrwq_scatter_offset_s32): Likewise.
17410 (vstrwq_scatter_offset_u32): Likewise.
17411 (vstrwq_scatter_shifted_offset_f32): Likewise.
17412 (vstrwq_scatter_shifted_offset_p_f32): Likewise.
17413 (vstrwq_scatter_shifted_offset_p_s32): Likewise.
17414 (vstrwq_scatter_shifted_offset_p_u32): Likewise.
17415 (vstrwq_scatter_shifted_offset_s32): Likewise.
17416 (vstrwq_scatter_shifted_offset_u32): Likewise.
17417 (__arm_vstrdq_scatter_base_p_s64): Define intrinsic.
17418 (__arm_vstrdq_scatter_base_p_u64): Likewise.
17419 (__arm_vstrdq_scatter_base_s64): Likewise.
17420 (__arm_vstrdq_scatter_base_u64): Likewise.
17421 (__arm_vstrdq_scatter_offset_p_s64): Likewise.
17422 (__arm_vstrdq_scatter_offset_p_u64): Likewise.
17423 (__arm_vstrdq_scatter_offset_s64): Likewise.
17424 (__arm_vstrdq_scatter_offset_u64): Likewise.
17425 (__arm_vstrdq_scatter_shifted_offset_p_s64): Likewise.
17426 (__arm_vstrdq_scatter_shifted_offset_p_u64): Likewise.
17427 (__arm_vstrdq_scatter_shifted_offset_s64): Likewise.
17428 (__arm_vstrdq_scatter_shifted_offset_u64): Likewise.
17429 (__arm_vstrwq_scatter_offset_p_s32): Likewise.
17430 (__arm_vstrwq_scatter_offset_p_u32): Likewise.
17431 (__arm_vstrwq_scatter_offset_s32): Likewise.
17432 (__arm_vstrwq_scatter_offset_u32): Likewise.
17433 (__arm_vstrwq_scatter_shifted_offset_p_s32): Likewise.
17434 (__arm_vstrwq_scatter_shifted_offset_p_u32): Likewise.
17435 (__arm_vstrwq_scatter_shifted_offset_s32): Likewise.
17436 (__arm_vstrwq_scatter_shifted_offset_u32): Likewise.
17437 (__arm_vstrhq_scatter_offset_f16): Likewise.
17438 (__arm_vstrhq_scatter_offset_p_f16): Likewise.
17439 (__arm_vstrhq_scatter_shifted_offset_f16): Likewise.
17440 (__arm_vstrhq_scatter_shifted_offset_p_f16): Likewise.
17441 (__arm_vstrwq_scatter_base_f32): Likewise.
17442 (__arm_vstrwq_scatter_base_p_f32): Likewise.
17443 (__arm_vstrwq_scatter_offset_f32): Likewise.
17444 (__arm_vstrwq_scatter_offset_p_f32): Likewise.
17445 (__arm_vstrwq_scatter_shifted_offset_f32): Likewise.
17446 (__arm_vstrwq_scatter_shifted_offset_p_f32): Likewise.
17447 (vstrhq_scatter_offset): Define polymorphic variant.
17448 (vstrhq_scatter_offset_p): Likewise.
17449 (vstrhq_scatter_shifted_offset): Likewise.
17450 (vstrhq_scatter_shifted_offset_p): Likewise.
17451 (vstrwq_scatter_base): Likewise.
17452 (vstrwq_scatter_base_p): Likewise.
17453 (vstrwq_scatter_offset): Likewise.
17454 (vstrwq_scatter_offset_p): Likewise.
17455 (vstrwq_scatter_shifted_offset): Likewise.
17456 (vstrwq_scatter_shifted_offset_p): Likewise.
17457 (vstrdq_scatter_base_p): Likewise.
17458 (vstrdq_scatter_base): Likewise.
17459 (vstrdq_scatter_offset_p): Likewise.
17460 (vstrdq_scatter_offset): Likewise.
17461 (vstrdq_scatter_shifted_offset_p): Likewise.
17462 (vstrdq_scatter_shifted_offset): Likewise.
17463 * config/arm/arm_mve_builtins.def (STRSBS): Use builtin qualifier.
17464 (STRSBS_P): Likewise.
17465 (STRSBU): Likewise.
17466 (STRSBU_P): Likewise.
17468 (STRSS_P): Likewise.
17470 (STRSU_P): Likewise.
17471 * config/arm/constraints.md (Ri): Define.
17472 * config/arm/mve.md (VSTRDSBQ): Define iterator.
17473 (VSTRDSOQ): Likewise.
17474 (VSTRDSSOQ): Likewise.
17475 (VSTRWSOQ): Likewise.
17476 (VSTRWSSOQ): Likewise.
17477 (mve_vstrdq_scatter_base_p_<supf>v2di): Define RTL pattern.
17478 (mve_vstrdq_scatter_base_<supf>v2di): Likewise.
17479 (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
17480 (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
17481 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
17482 (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
17483 (mve_vstrhq_scatter_offset_fv8hf): Likewise.
17484 (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
17485 (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
17486 (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
17487 (mve_vstrwq_scatter_base_fv4sf): Likewise.
17488 (mve_vstrwq_scatter_base_p_fv4sf): Likewise.
17489 (mve_vstrwq_scatter_offset_fv4sf): Likewise.
17490 (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
17491 (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
17492 (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
17493 (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
17494 (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
17495 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
17496 (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
17497 * config/arm/predicates.md (Ri): Define predicate to check immediate
17498 is the range +/-1016 and multiple of 8.
17500 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
17501 Mihail Ionescu <mihail.ionescu@arm.com>
17502 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17504 * config/arm/arm_mve.h (vst1q_f32): Define macro.
17505 (vst1q_f16): Likewise.
17506 (vst1q_s8): Likewise.
17507 (vst1q_s32): Likewise.
17508 (vst1q_s16): Likewise.
17509 (vst1q_u8): Likewise.
17510 (vst1q_u32): Likewise.
17511 (vst1q_u16): Likewise.
17512 (vstrhq_f16): Likewise.
17513 (vstrhq_scatter_offset_s32): Likewise.
17514 (vstrhq_scatter_offset_s16): Likewise.
17515 (vstrhq_scatter_offset_u32): Likewise.
17516 (vstrhq_scatter_offset_u16): Likewise.
17517 (vstrhq_scatter_offset_p_s32): Likewise.
17518 (vstrhq_scatter_offset_p_s16): Likewise.
17519 (vstrhq_scatter_offset_p_u32): Likewise.
17520 (vstrhq_scatter_offset_p_u16): Likewise.
17521 (vstrhq_scatter_shifted_offset_s32): Likewise.
17522 (vstrhq_scatter_shifted_offset_s16): Likewise.
17523 (vstrhq_scatter_shifted_offset_u32): Likewise.
17524 (vstrhq_scatter_shifted_offset_u16): Likewise.
17525 (vstrhq_scatter_shifted_offset_p_s32): Likewise.
17526 (vstrhq_scatter_shifted_offset_p_s16): Likewise.
17527 (vstrhq_scatter_shifted_offset_p_u32): Likewise.
17528 (vstrhq_scatter_shifted_offset_p_u16): Likewise.
17529 (vstrhq_s32): Likewise.
17530 (vstrhq_s16): Likewise.
17531 (vstrhq_u32): Likewise.
17532 (vstrhq_u16): Likewise.
17533 (vstrhq_p_f16): Likewise.
17534 (vstrhq_p_s32): Likewise.
17535 (vstrhq_p_s16): Likewise.
17536 (vstrhq_p_u32): Likewise.
17537 (vstrhq_p_u16): Likewise.
17538 (vstrwq_f32): Likewise.
17539 (vstrwq_s32): Likewise.
17540 (vstrwq_u32): Likewise.
17541 (vstrwq_p_f32): Likewise.
17542 (vstrwq_p_s32): Likewise.
17543 (vstrwq_p_u32): Likewise.
17544 (__arm_vst1q_s8): Define intrinsic.
17545 (__arm_vst1q_s32): Likewise.
17546 (__arm_vst1q_s16): Likewise.
17547 (__arm_vst1q_u8): Likewise.
17548 (__arm_vst1q_u32): Likewise.
17549 (__arm_vst1q_u16): Likewise.
17550 (__arm_vstrhq_scatter_offset_s32): Likewise.
17551 (__arm_vstrhq_scatter_offset_s16): Likewise.
17552 (__arm_vstrhq_scatter_offset_u32): Likewise.
17553 (__arm_vstrhq_scatter_offset_u16): Likewise.
17554 (__arm_vstrhq_scatter_offset_p_s32): Likewise.
17555 (__arm_vstrhq_scatter_offset_p_s16): Likewise.
17556 (__arm_vstrhq_scatter_offset_p_u32): Likewise.
17557 (__arm_vstrhq_scatter_offset_p_u16): Likewise.
17558 (__arm_vstrhq_scatter_shifted_offset_s32): Likewise.
17559 (__arm_vstrhq_scatter_shifted_offset_s16): Likewise.
17560 (__arm_vstrhq_scatter_shifted_offset_u32): Likewise.
17561 (__arm_vstrhq_scatter_shifted_offset_u16): Likewise.
17562 (__arm_vstrhq_scatter_shifted_offset_p_s32): Likewise.
17563 (__arm_vstrhq_scatter_shifted_offset_p_s16): Likewise.
17564 (__arm_vstrhq_scatter_shifted_offset_p_u32): Likewise.
17565 (__arm_vstrhq_scatter_shifted_offset_p_u16): Likewise.
17566 (__arm_vstrhq_s32): Likewise.
17567 (__arm_vstrhq_s16): Likewise.
17568 (__arm_vstrhq_u32): Likewise.
17569 (__arm_vstrhq_u16): Likewise.
17570 (__arm_vstrhq_p_s32): Likewise.
17571 (__arm_vstrhq_p_s16): Likewise.
17572 (__arm_vstrhq_p_u32): Likewise.
17573 (__arm_vstrhq_p_u16): Likewise.
17574 (__arm_vstrwq_s32): Likewise.
17575 (__arm_vstrwq_u32): Likewise.
17576 (__arm_vstrwq_p_s32): Likewise.
17577 (__arm_vstrwq_p_u32): Likewise.
17578 (__arm_vstrwq_p_f32): Likewise.
17579 (__arm_vstrwq_f32): Likewise.
17580 (__arm_vst1q_f32): Likewise.
17581 (__arm_vst1q_f16): Likewise.
17582 (__arm_vstrhq_f16): Likewise.
17583 (__arm_vstrhq_p_f16): Likewise.
17584 (vst1q): Define polymorphic variant.
17585 (vstrhq): Likewise.
17586 (vstrhq_p): Likewise.
17587 (vstrhq_scatter_offset_p): Likewise.
17588 (vstrhq_scatter_offset): Likewise.
17589 (vstrhq_scatter_shifted_offset_p): Likewise.
17590 (vstrhq_scatter_shifted_offset): Likewise.
17591 (vstrwq_p): Likewise.
17592 (vstrwq): Likewise.
17593 * config/arm/arm_mve_builtins.def (STRS): Use builtin qualifier.
17594 (STRS_P): Likewise.
17596 (STRSS_P): Likewise.
17598 (STRSU_P): Likewise.
17600 (STRU_P): Likewise.
17601 * config/arm/mve.md (VST1Q): Define iterator.
17602 (VSTRHSOQ): Likewise.
17603 (VSTRHSSOQ): Likewise.
17604 (VSTRHQ): Likewise.
17605 (VSTRWQ): Likewise.
17606 (mve_vstrhq_fv8hf): Define RTL pattern.
17607 (mve_vstrhq_p_fv8hf): Likewise.
17608 (mve_vstrhq_p_<supf><mode>): Likewise.
17609 (mve_vstrhq_scatter_offset_p_<supf><mode>): Likewise.
17610 (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
17611 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
17612 (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
17613 (mve_vstrhq_<supf><mode>): Likewise.
17614 (mve_vstrwq_fv4sf): Likewise.
17615 (mve_vstrwq_p_fv4sf): Likewise.
17616 (mve_vstrwq_p_<supf>v4si): Likewise.
17617 (mve_vstrwq_<supf>v4si): Likewise.
17618 (mve_vst1q_f<mode>): Define expand.
17619 (mve_vst1q_<supf><mode>): Likewise.
17621 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
17622 Mihail Ionescu <mihail.ionescu@arm.com>
17623 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17625 * config/arm/arm_mve.h (vld1q_s8): Define macro.
17626 (vld1q_s32): Likewise.
17627 (vld1q_s16): Likewise.
17628 (vld1q_u8): Likewise.
17629 (vld1q_u32): Likewise.
17630 (vld1q_u16): Likewise.
17631 (vldrhq_gather_offset_s32): Likewise.
17632 (vldrhq_gather_offset_s16): Likewise.
17633 (vldrhq_gather_offset_u32): Likewise.
17634 (vldrhq_gather_offset_u16): Likewise.
17635 (vldrhq_gather_offset_z_s32): Likewise.
17636 (vldrhq_gather_offset_z_s16): Likewise.
17637 (vldrhq_gather_offset_z_u32): Likewise.
17638 (vldrhq_gather_offset_z_u16): Likewise.
17639 (vldrhq_gather_shifted_offset_s32): Likewise.
17640 (vldrhq_gather_shifted_offset_s16): Likewise.
17641 (vldrhq_gather_shifted_offset_u32): Likewise.
17642 (vldrhq_gather_shifted_offset_u16): Likewise.
17643 (vldrhq_gather_shifted_offset_z_s32): Likewise.
17644 (vldrhq_gather_shifted_offset_z_s16): Likewise.
17645 (vldrhq_gather_shifted_offset_z_u32): Likewise.
17646 (vldrhq_gather_shifted_offset_z_u16): Likewise.
17647 (vldrhq_s32): Likewise.
17648 (vldrhq_s16): Likewise.
17649 (vldrhq_u32): Likewise.
17650 (vldrhq_u16): Likewise.
17651 (vldrhq_z_s32): Likewise.
17652 (vldrhq_z_s16): Likewise.
17653 (vldrhq_z_u32): Likewise.
17654 (vldrhq_z_u16): Likewise.
17655 (vldrwq_s32): Likewise.
17656 (vldrwq_u32): Likewise.
17657 (vldrwq_z_s32): Likewise.
17658 (vldrwq_z_u32): Likewise.
17659 (vld1q_f32): Likewise.
17660 (vld1q_f16): Likewise.
17661 (vldrhq_f16): Likewise.
17662 (vldrhq_z_f16): Likewise.
17663 (vldrwq_f32): Likewise.
17664 (vldrwq_z_f32): Likewise.
17665 (__arm_vld1q_s8): Define intrinsic.
17666 (__arm_vld1q_s32): Likewise.
17667 (__arm_vld1q_s16): Likewise.
17668 (__arm_vld1q_u8): Likewise.
17669 (__arm_vld1q_u32): Likewise.
17670 (__arm_vld1q_u16): Likewise.
17671 (__arm_vldrhq_gather_offset_s32): Likewise.
17672 (__arm_vldrhq_gather_offset_s16): Likewise.
17673 (__arm_vldrhq_gather_offset_u32): Likewise.
17674 (__arm_vldrhq_gather_offset_u16): Likewise.
17675 (__arm_vldrhq_gather_offset_z_s32): Likewise.
17676 (__arm_vldrhq_gather_offset_z_s16): Likewise.
17677 (__arm_vldrhq_gather_offset_z_u32): Likewise.
17678 (__arm_vldrhq_gather_offset_z_u16): Likewise.
17679 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
17680 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
17681 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
17682 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
17683 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
17684 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
17685 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
17686 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
17687 (__arm_vldrhq_s32): Likewise.
17688 (__arm_vldrhq_s16): Likewise.
17689 (__arm_vldrhq_u32): Likewise.
17690 (__arm_vldrhq_u16): Likewise.
17691 (__arm_vldrhq_z_s32): Likewise.
17692 (__arm_vldrhq_z_s16): Likewise.
17693 (__arm_vldrhq_z_u32): Likewise.
17694 (__arm_vldrhq_z_u16): Likewise.
17695 (__arm_vldrwq_s32): Likewise.
17696 (__arm_vldrwq_u32): Likewise.
17697 (__arm_vldrwq_z_s32): Likewise.
17698 (__arm_vldrwq_z_u32): Likewise.
17699 (__arm_vld1q_f32): Likewise.
17700 (__arm_vld1q_f16): Likewise.
17701 (__arm_vldrwq_f32): Likewise.
17702 (__arm_vldrwq_z_f32): Likewise.
17703 (__arm_vldrhq_z_f16): Likewise.
17704 (__arm_vldrhq_f16): Likewise.
17705 (vld1q): Define polymorphic variant.
17706 (vldrhq_gather_offset): Likewise.
17707 (vldrhq_gather_offset_z): Likewise.
17708 (vldrhq_gather_shifted_offset): Likewise.
17709 (vldrhq_gather_shifted_offset_z): Likewise.
17710 * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
17712 (LDRU_Z): Likewise.
17713 (LDRS_Z): Likewise.
17714 (LDRGU_Z): Likewise.
17716 (LDRGS_Z): Likewise.
17718 * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
17719 (V_sz_elem1): Likewise.
17720 (VLD1Q): Define iterator.
17721 (VLDRHGOQ): Likewise.
17722 (VLDRHGSOQ): Likewise.
17723 (VLDRHQ): Likewise.
17724 (VLDRWQ): Likewise.
17725 (mve_vldrhq_fv8hf): Define RTL pattern.
17726 (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
17727 (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
17728 (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
17729 (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
17730 (mve_vldrhq_<supf><mode>): Likewise.
17731 (mve_vldrhq_z_fv8hf): Likewise.
17732 (mve_vldrhq_z_<supf><mode>): Likewise.
17733 (mve_vldrwq_fv4sf): Likewise.
17734 (mve_vldrwq_<supf>v4si): Likewise.
17735 (mve_vldrwq_z_fv4sf): Likewise.
17736 (mve_vldrwq_z_<supf>v4si): Likewise.
17737 (mve_vld1q_f<mode>): Define RTL expand pattern.
17738 (mve_vld1q_<supf><mode>): Likewise.
17740 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
17741 Mihail Ionescu <mihail.ionescu@arm.com>
17742 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17744 * config/arm/arm_mve.h (vld1q_s8): Define macro.
17745 (vld1q_s32): Likewise.
17746 (vld1q_s16): Likewise.
17747 (vld1q_u8): Likewise.
17748 (vld1q_u32): Likewise.
17749 (vld1q_u16): Likewise.
17750 (vldrhq_gather_offset_s32): Likewise.
17751 (vldrhq_gather_offset_s16): Likewise.
17752 (vldrhq_gather_offset_u32): Likewise.
17753 (vldrhq_gather_offset_u16): Likewise.
17754 (vldrhq_gather_offset_z_s32): Likewise.
17755 (vldrhq_gather_offset_z_s16): Likewise.
17756 (vldrhq_gather_offset_z_u32): Likewise.
17757 (vldrhq_gather_offset_z_u16): Likewise.
17758 (vldrhq_gather_shifted_offset_s32): Likewise.
17759 (vldrhq_gather_shifted_offset_s16): Likewise.
17760 (vldrhq_gather_shifted_offset_u32): Likewise.
17761 (vldrhq_gather_shifted_offset_u16): Likewise.
17762 (vldrhq_gather_shifted_offset_z_s32): Likewise.
17763 (vldrhq_gather_shifted_offset_z_s16): Likewise.
17764 (vldrhq_gather_shifted_offset_z_u32): Likewise.
17765 (vldrhq_gather_shifted_offset_z_u16): Likewise.
17766 (vldrhq_s32): Likewise.
17767 (vldrhq_s16): Likewise.
17768 (vldrhq_u32): Likewise.
17769 (vldrhq_u16): Likewise.
17770 (vldrhq_z_s32): Likewise.
17771 (vldrhq_z_s16): Likewise.
17772 (vldrhq_z_u32): Likewise.
17773 (vldrhq_z_u16): Likewise.
17774 (vldrwq_s32): Likewise.
17775 (vldrwq_u32): Likewise.
17776 (vldrwq_z_s32): Likewise.
17777 (vldrwq_z_u32): Likewise.
17778 (vld1q_f32): Likewise.
17779 (vld1q_f16): Likewise.
17780 (vldrhq_f16): Likewise.
17781 (vldrhq_z_f16): Likewise.
17782 (vldrwq_f32): Likewise.
17783 (vldrwq_z_f32): Likewise.
17784 (__arm_vld1q_s8): Define intrinsic.
17785 (__arm_vld1q_s32): Likewise.
17786 (__arm_vld1q_s16): Likewise.
17787 (__arm_vld1q_u8): Likewise.
17788 (__arm_vld1q_u32): Likewise.
17789 (__arm_vld1q_u16): Likewise.
17790 (__arm_vldrhq_gather_offset_s32): Likewise.
17791 (__arm_vldrhq_gather_offset_s16): Likewise.
17792 (__arm_vldrhq_gather_offset_u32): Likewise.
17793 (__arm_vldrhq_gather_offset_u16): Likewise.
17794 (__arm_vldrhq_gather_offset_z_s32): Likewise.
17795 (__arm_vldrhq_gather_offset_z_s16): Likewise.
17796 (__arm_vldrhq_gather_offset_z_u32): Likewise.
17797 (__arm_vldrhq_gather_offset_z_u16): Likewise.
17798 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
17799 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
17800 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
17801 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
17802 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
17803 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
17804 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
17805 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
17806 (__arm_vldrhq_s32): Likewise.
17807 (__arm_vldrhq_s16): Likewise.
17808 (__arm_vldrhq_u32): Likewise.
17809 (__arm_vldrhq_u16): Likewise.
17810 (__arm_vldrhq_z_s32): Likewise.
17811 (__arm_vldrhq_z_s16): Likewise.
17812 (__arm_vldrhq_z_u32): Likewise.
17813 (__arm_vldrhq_z_u16): Likewise.
17814 (__arm_vldrwq_s32): Likewise.
17815 (__arm_vldrwq_u32): Likewise.
17816 (__arm_vldrwq_z_s32): Likewise.
17817 (__arm_vldrwq_z_u32): Likewise.
17818 (__arm_vld1q_f32): Likewise.
17819 (__arm_vld1q_f16): Likewise.
17820 (__arm_vldrwq_f32): Likewise.
17821 (__arm_vldrwq_z_f32): Likewise.
17822 (__arm_vldrhq_z_f16): Likewise.
17823 (__arm_vldrhq_f16): Likewise.
17824 (vld1q): Define polymorphic variant.
17825 (vldrhq_gather_offset): Likewise.
17826 (vldrhq_gather_offset_z): Likewise.
17827 (vldrhq_gather_shifted_offset): Likewise.
17828 (vldrhq_gather_shifted_offset_z): Likewise.
17829 * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
17831 (LDRU_Z): Likewise.
17832 (LDRS_Z): Likewise.
17833 (LDRGU_Z): Likewise.
17835 (LDRGS_Z): Likewise.
17837 * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
17838 (V_sz_elem1): Likewise.
17839 (VLD1Q): Define iterator.
17840 (VLDRHGOQ): Likewise.
17841 (VLDRHGSOQ): Likewise.
17842 (VLDRHQ): Likewise.
17843 (VLDRWQ): Likewise.
17844 (mve_vldrhq_fv8hf): Define RTL pattern.
17845 (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
17846 (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
17847 (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
17848 (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
17849 (mve_vldrhq_<supf><mode>): Likewise.
17850 (mve_vldrhq_z_fv8hf): Likewise.
17851 (mve_vldrhq_z_<supf><mode>): Likewise.
17852 (mve_vldrwq_fv4sf): Likewise.
17853 (mve_vldrwq_<supf>v4si): Likewise.
17854 (mve_vldrwq_z_fv4sf): Likewise.
17855 (mve_vldrwq_z_<supf>v4si): Likewise.
17856 (mve_vld1q_f<mode>): Define RTL expand pattern.
17857 (mve_vld1q_<supf><mode>): Likewise.
17859 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
17860 Mihail Ionescu <mihail.ionescu@arm.com>
17861 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17863 * config/arm/arm-builtins.c (LDRGBS_Z_QUALIFIERS): Define builtin
17865 (LDRGBU_Z_QUALIFIERS): Likewise.
17866 (LDRGS_Z_QUALIFIERS): Likewise.
17867 (LDRGU_Z_QUALIFIERS): Likewise.
17868 (LDRS_Z_QUALIFIERS): Likewise.
17869 (LDRU_Z_QUALIFIERS): Likewise.
17870 * config/arm/arm_mve.h (vldrbq_gather_offset_z_s16): Define macro.
17871 (vldrbq_gather_offset_z_u8): Likewise.
17872 (vldrbq_gather_offset_z_s32): Likewise.
17873 (vldrbq_gather_offset_z_u16): Likewise.
17874 (vldrbq_gather_offset_z_u32): Likewise.
17875 (vldrbq_gather_offset_z_s8): Likewise.
17876 (vldrbq_z_s16): Likewise.
17877 (vldrbq_z_u8): Likewise.
17878 (vldrbq_z_s8): Likewise.
17879 (vldrbq_z_s32): Likewise.
17880 (vldrbq_z_u16): Likewise.
17881 (vldrbq_z_u32): Likewise.
17882 (vldrwq_gather_base_z_u32): Likewise.
17883 (vldrwq_gather_base_z_s32): Likewise.
17884 (__arm_vldrbq_gather_offset_z_s8): Define intrinsic.
17885 (__arm_vldrbq_gather_offset_z_s32): Likewise.
17886 (__arm_vldrbq_gather_offset_z_s16): Likewise.
17887 (__arm_vldrbq_gather_offset_z_u8): Likewise.
17888 (__arm_vldrbq_gather_offset_z_u32): Likewise.
17889 (__arm_vldrbq_gather_offset_z_u16): Likewise.
17890 (__arm_vldrbq_z_s8): Likewise.
17891 (__arm_vldrbq_z_s32): Likewise.
17892 (__arm_vldrbq_z_s16): Likewise.
17893 (__arm_vldrbq_z_u8): Likewise.
17894 (__arm_vldrbq_z_u32): Likewise.
17895 (__arm_vldrbq_z_u16): Likewise.
17896 (__arm_vldrwq_gather_base_z_s32): Likewise.
17897 (__arm_vldrwq_gather_base_z_u32): Likewise.
17898 (vldrbq_gather_offset_z): Define polymorphic variant.
17899 * config/arm/arm_mve_builtins.def (LDRGBS_Z_QUALIFIERS): Use builtin
17901 (LDRGBU_Z_QUALIFIERS): Likewise.
17902 (LDRGS_Z_QUALIFIERS): Likewise.
17903 (LDRGU_Z_QUALIFIERS): Likewise.
17904 (LDRS_Z_QUALIFIERS): Likewise.
17905 (LDRU_Z_QUALIFIERS): Likewise.
17906 * config/arm/mve.md (mve_vldrbq_gather_offset_z_<supf><mode>): Define
17908 (mve_vldrbq_z_<supf><mode>): Likewise.
17909 (mve_vldrwq_gather_base_z_<supf>v4si): Likewise.
17911 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
17912 Mihail Ionescu <mihail.ionescu@arm.com>
17913 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17915 * config/arm/arm-builtins.c (STRS_P_QUALIFIERS): Define builtin
17917 (STRU_P_QUALIFIERS): Likewise.
17918 (STRSU_P_QUALIFIERS): Likewise.
17919 (STRSS_P_QUALIFIERS): Likewise.
17920 (STRSBS_P_QUALIFIERS): Likewise.
17921 (STRSBU_P_QUALIFIERS): Likewise.
17922 * config/arm/arm_mve.h (vstrbq_p_s8): Define macro.
17923 (vstrbq_p_s32): Likewise.
17924 (vstrbq_p_s16): Likewise.
17925 (vstrbq_p_u8): Likewise.
17926 (vstrbq_p_u32): Likewise.
17927 (vstrbq_p_u16): Likewise.
17928 (vstrbq_scatter_offset_p_s8): Likewise.
17929 (vstrbq_scatter_offset_p_s32): Likewise.
17930 (vstrbq_scatter_offset_p_s16): Likewise.
17931 (vstrbq_scatter_offset_p_u8): Likewise.
17932 (vstrbq_scatter_offset_p_u32): Likewise.
17933 (vstrbq_scatter_offset_p_u16): Likewise.
17934 (vstrwq_scatter_base_p_s32): Likewise.
17935 (vstrwq_scatter_base_p_u32): Likewise.
17936 (__arm_vstrbq_p_s8): Define intrinsic.
17937 (__arm_vstrbq_p_s32): Likewise.
17938 (__arm_vstrbq_p_s16): Likewise.
17939 (__arm_vstrbq_p_u8): Likewise.
17940 (__arm_vstrbq_p_u32): Likewise.
17941 (__arm_vstrbq_p_u16): Likewise.
17942 (__arm_vstrbq_scatter_offset_p_s8): Likewise.
17943 (__arm_vstrbq_scatter_offset_p_s32): Likewise.
17944 (__arm_vstrbq_scatter_offset_p_s16): Likewise.
17945 (__arm_vstrbq_scatter_offset_p_u8): Likewise.
17946 (__arm_vstrbq_scatter_offset_p_u32): Likewise.
17947 (__arm_vstrbq_scatter_offset_p_u16): Likewise.
17948 (__arm_vstrwq_scatter_base_p_s32): Likewise.
17949 (__arm_vstrwq_scatter_base_p_u32): Likewise.
17950 (vstrbq_p): Define polymorphic variant.
17951 (vstrbq_scatter_offset_p): Likewise.
17952 (vstrwq_scatter_base_p): Likewise.
17953 * config/arm/arm_mve_builtins.def (STRS_P_QUALIFIERS): Use builtin
17955 (STRU_P_QUALIFIERS): Likewise.
17956 (STRSU_P_QUALIFIERS): Likewise.
17957 (STRSS_P_QUALIFIERS): Likewise.
17958 (STRSBS_P_QUALIFIERS): Likewise.
17959 (STRSBU_P_QUALIFIERS): Likewise.
17960 * config/arm/mve.md (mve_vstrbq_scatter_offset_p_<supf><mode>): Define
17962 (mve_vstrwq_scatter_base_p_<supf>v4si): Likewise.
17963 (mve_vstrbq_p_<supf><mode>): Likewise.
17965 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
17966 Mihail Ionescu <mihail.ionescu@arm.com>
17967 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17969 * config/arm/arm-builtins.c (LDRGU_QUALIFIERS): Define builtin
17971 (LDRGS_QUALIFIERS): Likewise.
17972 (LDRS_QUALIFIERS): Likewise.
17973 (LDRU_QUALIFIERS): Likewise.
17974 (LDRGBS_QUALIFIERS): Likewise.
17975 (LDRGBU_QUALIFIERS): Likewise.
17976 * config/arm/arm_mve.h (vldrbq_gather_offset_u8): Define macro.
17977 (vldrbq_gather_offset_s8): Likewise.
17978 (vldrbq_s8): Likewise.
17979 (vldrbq_u8): Likewise.
17980 (vldrbq_gather_offset_u16): Likewise.
17981 (vldrbq_gather_offset_s16): Likewise.
17982 (vldrbq_s16): Likewise.
17983 (vldrbq_u16): Likewise.
17984 (vldrbq_gather_offset_u32): Likewise.
17985 (vldrbq_gather_offset_s32): Likewise.
17986 (vldrbq_s32): Likewise.
17987 (vldrbq_u32): Likewise.
17988 (vldrwq_gather_base_s32): Likewise.
17989 (vldrwq_gather_base_u32): Likewise.
17990 (__arm_vldrbq_gather_offset_u8): Define intrinsic.
17991 (__arm_vldrbq_gather_offset_s8): Likewise.
17992 (__arm_vldrbq_s8): Likewise.
17993 (__arm_vldrbq_u8): Likewise.
17994 (__arm_vldrbq_gather_offset_u16): Likewise.
17995 (__arm_vldrbq_gather_offset_s16): Likewise.
17996 (__arm_vldrbq_s16): Likewise.
17997 (__arm_vldrbq_u16): Likewise.
17998 (__arm_vldrbq_gather_offset_u32): Likewise.
17999 (__arm_vldrbq_gather_offset_s32): Likewise.
18000 (__arm_vldrbq_s32): Likewise.
18001 (__arm_vldrbq_u32): Likewise.
18002 (__arm_vldrwq_gather_base_s32): Likewise.
18003 (__arm_vldrwq_gather_base_u32): Likewise.
18004 (vldrbq_gather_offset): Define polymorphic variant.
18005 * config/arm/arm_mve_builtins.def (LDRGU_QUALIFIERS): Use builtin
18007 (LDRGS_QUALIFIERS): Likewise.
18008 (LDRS_QUALIFIERS): Likewise.
18009 (LDRU_QUALIFIERS): Likewise.
18010 (LDRGBS_QUALIFIERS): Likewise.
18011 (LDRGBU_QUALIFIERS): Likewise.
18012 * config/arm/mve.md (VLDRBGOQ): Define iterator.
18013 (VLDRBQ): Likewise.
18014 (VLDRWGBQ): Likewise.
18015 (mve_vldrbq_gather_offset_<supf><mode>): Define RTL pattern.
18016 (mve_vldrbq_<supf><mode>): Likewise.
18017 (mve_vldrwq_gather_base_<supf>v4si): Likewise.
18019 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
18020 Mihail Ionescu <mihail.ionescu@arm.com>
18021 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18023 * config/arm/arm-builtins.c (STRS_QUALIFIERS): Define builtin qualifier.
18024 (STRU_QUALIFIERS): Likewise.
18025 (STRSS_QUALIFIERS): Likewise.
18026 (STRSU_QUALIFIERS): Likewise.
18027 (STRSBS_QUALIFIERS): Likewise.
18028 (STRSBU_QUALIFIERS): Likewise.
18029 * config/arm/arm_mve.h (vstrbq_s8): Define macro.
18030 (vstrbq_u8): Likewise.
18031 (vstrbq_u16): Likewise.
18032 (vstrbq_scatter_offset_s8): Likewise.
18033 (vstrbq_scatter_offset_u8): Likewise.
18034 (vstrbq_scatter_offset_u16): Likewise.
18035 (vstrbq_s16): Likewise.
18036 (vstrbq_u32): Likewise.
18037 (vstrbq_scatter_offset_s16): Likewise.
18038 (vstrbq_scatter_offset_u32): Likewise.
18039 (vstrbq_s32): Likewise.
18040 (vstrbq_scatter_offset_s32): Likewise.
18041 (vstrwq_scatter_base_s32): Likewise.
18042 (vstrwq_scatter_base_u32): Likewise.
18043 (__arm_vstrbq_scatter_offset_s8): Define intrinsic.
18044 (__arm_vstrbq_scatter_offset_s32): Likewise.
18045 (__arm_vstrbq_scatter_offset_s16): Likewise.
18046 (__arm_vstrbq_scatter_offset_u8): Likewise.
18047 (__arm_vstrbq_scatter_offset_u32): Likewise.
18048 (__arm_vstrbq_scatter_offset_u16): Likewise.
18049 (__arm_vstrbq_s8): Likewise.
18050 (__arm_vstrbq_s32): Likewise.
18051 (__arm_vstrbq_s16): Likewise.
18052 (__arm_vstrbq_u8): Likewise.
18053 (__arm_vstrbq_u32): Likewise.
18054 (__arm_vstrbq_u16): Likewise.
18055 (__arm_vstrwq_scatter_base_s32): Likewise.
18056 (__arm_vstrwq_scatter_base_u32): Likewise.
18057 (vstrbq): Define polymorphic variant.
18058 (vstrbq_scatter_offset): Likewise.
18059 (vstrwq_scatter_base): Likewise.
18060 * config/arm/arm_mve_builtins.def (STRS_QUALIFIERS): Use builtin
18062 (STRU_QUALIFIERS): Likewise.
18063 (STRSS_QUALIFIERS): Likewise.
18064 (STRSU_QUALIFIERS): Likewise.
18065 (STRSBS_QUALIFIERS): Likewise.
18066 (STRSBU_QUALIFIERS): Likewise.
18067 * config/arm/mve.md (MVE_B_ELEM): Define mode attribute iterator.
18068 (VSTRWSBQ): Define iterators.
18069 (VSTRBSOQ): Likewise.
18070 (VSTRBQ): Likewise.
18071 (mve_vstrbq_<supf><mode>): Define RTL pattern.
18072 (mve_vstrbq_scatter_offset_<supf><mode>): Likewise.
18073 (mve_vstrwq_scatter_base_<supf>v4si): Likewise.
18075 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
18076 Mihail Ionescu <mihail.ionescu@arm.com>
18077 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18079 * config/arm/arm_mve.h (vabdq_m_f32): Define macro.
18080 (vabdq_m_f16): Likewise.
18081 (vaddq_m_f32): Likewise.
18082 (vaddq_m_f16): Likewise.
18083 (vaddq_m_n_f32): Likewise.
18084 (vaddq_m_n_f16): Likewise.
18085 (vandq_m_f32): Likewise.
18086 (vandq_m_f16): Likewise.
18087 (vbicq_m_f32): Likewise.
18088 (vbicq_m_f16): Likewise.
18089 (vbrsrq_m_n_f32): Likewise.
18090 (vbrsrq_m_n_f16): Likewise.
18091 (vcaddq_rot270_m_f32): Likewise.
18092 (vcaddq_rot270_m_f16): Likewise.
18093 (vcaddq_rot90_m_f32): Likewise.
18094 (vcaddq_rot90_m_f16): Likewise.
18095 (vcmlaq_m_f32): Likewise.
18096 (vcmlaq_m_f16): Likewise.
18097 (vcmlaq_rot180_m_f32): Likewise.
18098 (vcmlaq_rot180_m_f16): Likewise.
18099 (vcmlaq_rot270_m_f32): Likewise.
18100 (vcmlaq_rot270_m_f16): Likewise.
18101 (vcmlaq_rot90_m_f32): Likewise.
18102 (vcmlaq_rot90_m_f16): Likewise.
18103 (vcmulq_m_f32): Likewise.
18104 (vcmulq_m_f16): Likewise.
18105 (vcmulq_rot180_m_f32): Likewise.
18106 (vcmulq_rot180_m_f16): Likewise.
18107 (vcmulq_rot270_m_f32): Likewise.
18108 (vcmulq_rot270_m_f16): Likewise.
18109 (vcmulq_rot90_m_f32): Likewise.
18110 (vcmulq_rot90_m_f16): Likewise.
18111 (vcvtq_m_n_s32_f32): Likewise.
18112 (vcvtq_m_n_s16_f16): Likewise.
18113 (vcvtq_m_n_u32_f32): Likewise.
18114 (vcvtq_m_n_u16_f16): Likewise.
18115 (veorq_m_f32): Likewise.
18116 (veorq_m_f16): Likewise.
18117 (vfmaq_m_f32): Likewise.
18118 (vfmaq_m_f16): Likewise.
18119 (vfmaq_m_n_f32): Likewise.
18120 (vfmaq_m_n_f16): Likewise.
18121 (vfmasq_m_n_f32): Likewise.
18122 (vfmasq_m_n_f16): Likewise.
18123 (vfmsq_m_f32): Likewise.
18124 (vfmsq_m_f16): Likewise.
18125 (vmaxnmq_m_f32): Likewise.
18126 (vmaxnmq_m_f16): Likewise.
18127 (vminnmq_m_f32): Likewise.
18128 (vminnmq_m_f16): Likewise.
18129 (vmulq_m_f32): Likewise.
18130 (vmulq_m_f16): Likewise.
18131 (vmulq_m_n_f32): Likewise.
18132 (vmulq_m_n_f16): Likewise.
18133 (vornq_m_f32): Likewise.
18134 (vornq_m_f16): Likewise.
18135 (vorrq_m_f32): Likewise.
18136 (vorrq_m_f16): Likewise.
18137 (vsubq_m_f32): Likewise.
18138 (vsubq_m_f16): Likewise.
18139 (vsubq_m_n_f32): Likewise.
18140 (vsubq_m_n_f16): Likewise.
18141 (__attribute__): Likewise.
18142 (__arm_vabdq_m_f32): Likewise.
18143 (__arm_vabdq_m_f16): Likewise.
18144 (__arm_vaddq_m_f32): Likewise.
18145 (__arm_vaddq_m_f16): Likewise.
18146 (__arm_vaddq_m_n_f32): Likewise.
18147 (__arm_vaddq_m_n_f16): Likewise.
18148 (__arm_vandq_m_f32): Likewise.
18149 (__arm_vandq_m_f16): Likewise.
18150 (__arm_vbicq_m_f32): Likewise.
18151 (__arm_vbicq_m_f16): Likewise.
18152 (__arm_vbrsrq_m_n_f32): Likewise.
18153 (__arm_vbrsrq_m_n_f16): Likewise.
18154 (__arm_vcaddq_rot270_m_f32): Likewise.
18155 (__arm_vcaddq_rot270_m_f16): Likewise.
18156 (__arm_vcaddq_rot90_m_f32): Likewise.
18157 (__arm_vcaddq_rot90_m_f16): Likewise.
18158 (__arm_vcmlaq_m_f32): Likewise.
18159 (__arm_vcmlaq_m_f16): Likewise.
18160 (__arm_vcmlaq_rot180_m_f32): Likewise.
18161 (__arm_vcmlaq_rot180_m_f16): Likewise.
18162 (__arm_vcmlaq_rot270_m_f32): Likewise.
18163 (__arm_vcmlaq_rot270_m_f16): Likewise.
18164 (__arm_vcmlaq_rot90_m_f32): Likewise.
18165 (__arm_vcmlaq_rot90_m_f16): Likewise.
18166 (__arm_vcmulq_m_f32): Likewise.
18167 (__arm_vcmulq_m_f16): Likewise.
18168 (__arm_vcmulq_rot180_m_f32): Define intrinsic.
18169 (__arm_vcmulq_rot180_m_f16): Likewise.
18170 (__arm_vcmulq_rot270_m_f32): Likewise.
18171 (__arm_vcmulq_rot270_m_f16): Likewise.
18172 (__arm_vcmulq_rot90_m_f32): Likewise.
18173 (__arm_vcmulq_rot90_m_f16): Likewise.
18174 (__arm_vcvtq_m_n_s32_f32): Likewise.
18175 (__arm_vcvtq_m_n_s16_f16): Likewise.
18176 (__arm_vcvtq_m_n_u32_f32): Likewise.
18177 (__arm_vcvtq_m_n_u16_f16): Likewise.
18178 (__arm_veorq_m_f32): Likewise.
18179 (__arm_veorq_m_f16): Likewise.
18180 (__arm_vfmaq_m_f32): Likewise.
18181 (__arm_vfmaq_m_f16): Likewise.
18182 (__arm_vfmaq_m_n_f32): Likewise.
18183 (__arm_vfmaq_m_n_f16): Likewise.
18184 (__arm_vfmasq_m_n_f32): Likewise.
18185 (__arm_vfmasq_m_n_f16): Likewise.
18186 (__arm_vfmsq_m_f32): Likewise.
18187 (__arm_vfmsq_m_f16): Likewise.
18188 (__arm_vmaxnmq_m_f32): Likewise.
18189 (__arm_vmaxnmq_m_f16): Likewise.
18190 (__arm_vminnmq_m_f32): Likewise.
18191 (__arm_vminnmq_m_f16): Likewise.
18192 (__arm_vmulq_m_f32): Likewise.
18193 (__arm_vmulq_m_f16): Likewise.
18194 (__arm_vmulq_m_n_f32): Likewise.
18195 (__arm_vmulq_m_n_f16): Likewise.
18196 (__arm_vornq_m_f32): Likewise.
18197 (__arm_vornq_m_f16): Likewise.
18198 (__arm_vorrq_m_f32): Likewise.
18199 (__arm_vorrq_m_f16): Likewise.
18200 (__arm_vsubq_m_f32): Likewise.
18201 (__arm_vsubq_m_f16): Likewise.
18202 (__arm_vsubq_m_n_f32): Likewise.
18203 (__arm_vsubq_m_n_f16): Likewise.
18204 (vabdq_m): Define polymorphic variant.
18205 (vaddq_m): Likewise.
18206 (vaddq_m_n): Likewise.
18207 (vandq_m): Likewise.
18208 (vbicq_m): Likewise.
18209 (vbrsrq_m_n): Likewise.
18210 (vcaddq_rot270_m): Likewise.
18211 (vcaddq_rot90_m): Likewise.
18212 (vcmlaq_m): Likewise.
18213 (vcmlaq_rot180_m): Likewise.
18214 (vcmlaq_rot270_m): Likewise.
18215 (vcmlaq_rot90_m): Likewise.
18216 (vcmulq_m): Likewise.
18217 (vcmulq_rot180_m): Likewise.
18218 (vcmulq_rot270_m): Likewise.
18219 (vcmulq_rot90_m): Likewise.
18220 (veorq_m): Likewise.
18221 (vfmaq_m): Likewise.
18222 (vfmaq_m_n): Likewise.
18223 (vfmasq_m_n): Likewise.
18224 (vfmsq_m): Likewise.
18225 (vmaxnmq_m): Likewise.
18226 (vminnmq_m): Likewise.
18227 (vmulq_m): Likewise.
18228 (vmulq_m_n): Likewise.
18229 (vornq_m): Likewise.
18230 (vsubq_m): Likewise.
18231 (vsubq_m_n): Likewise.
18232 (vorrq_m): Likewise.
18233 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
18235 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
18236 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
18237 * config/arm/mve.md (mve_vabdq_m_f<mode>): Define RTL pattern.
18238 (mve_vaddq_m_f<mode>): Likewise.
18239 (mve_vaddq_m_n_f<mode>): Likewise.
18240 (mve_vandq_m_f<mode>): Likewise.
18241 (mve_vbicq_m_f<mode>): Likewise.
18242 (mve_vbrsrq_m_n_f<mode>): Likewise.
18243 (mve_vcaddq_rot270_m_f<mode>): Likewise.
18244 (mve_vcaddq_rot90_m_f<mode>): Likewise.
18245 (mve_vcmlaq_m_f<mode>): Likewise.
18246 (mve_vcmlaq_rot180_m_f<mode>): Likewise.
18247 (mve_vcmlaq_rot270_m_f<mode>): Likewise.
18248 (mve_vcmlaq_rot90_m_f<mode>): Likewise.
18249 (mve_vcmulq_m_f<mode>): Likewise.
18250 (mve_vcmulq_rot180_m_f<mode>): Likewise.
18251 (mve_vcmulq_rot270_m_f<mode>): Likewise.
18252 (mve_vcmulq_rot90_m_f<mode>): Likewise.
18253 (mve_veorq_m_f<mode>): Likewise.
18254 (mve_vfmaq_m_f<mode>): Likewise.
18255 (mve_vfmaq_m_n_f<mode>): Likewise.
18256 (mve_vfmasq_m_n_f<mode>): Likewise.
18257 (mve_vfmsq_m_f<mode>): Likewise.
18258 (mve_vmaxnmq_m_f<mode>): Likewise.
18259 (mve_vminnmq_m_f<mode>): Likewise.
18260 (mve_vmulq_m_f<mode>): Likewise.
18261 (mve_vmulq_m_n_f<mode>): Likewise.
18262 (mve_vornq_m_f<mode>): Likewise.
18263 (mve_vorrq_m_f<mode>): Likewise.
18264 (mve_vsubq_m_f<mode>): Likewise.
18265 (mve_vsubq_m_n_f<mode>): Likewise.
18267 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
18268 Mihail Ionescu <mihail.ionescu@arm.com>
18269 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18271 * config/arm/arm-protos.h (arm_mve_immediate_check):
18272 * config/arm/arm.c (arm_mve_immediate_check): Define fuction to check
18273 mode and interger value.
18274 * config/arm/arm_mve.h (vmlaldavaq_p_s32): Define macro.
18275 (vmlaldavaq_p_s16): Likewise.
18276 (vmlaldavaq_p_u32): Likewise.
18277 (vmlaldavaq_p_u16): Likewise.
18278 (vmlaldavaxq_p_s32): Likewise.
18279 (vmlaldavaxq_p_s16): Likewise.
18280 (vmlaldavaxq_p_u32): Likewise.
18281 (vmlaldavaxq_p_u16): Likewise.
18282 (vmlsldavaq_p_s32): Likewise.
18283 (vmlsldavaq_p_s16): Likewise.
18284 (vmlsldavaxq_p_s32): Likewise.
18285 (vmlsldavaxq_p_s16): Likewise.
18286 (vmullbq_poly_m_p8): Likewise.
18287 (vmullbq_poly_m_p16): Likewise.
18288 (vmulltq_poly_m_p8): Likewise.
18289 (vmulltq_poly_m_p16): Likewise.
18290 (vqdmullbq_m_n_s32): Likewise.
18291 (vqdmullbq_m_n_s16): Likewise.
18292 (vqdmullbq_m_s32): Likewise.
18293 (vqdmullbq_m_s16): Likewise.
18294 (vqdmulltq_m_n_s32): Likewise.
18295 (vqdmulltq_m_n_s16): Likewise.
18296 (vqdmulltq_m_s32): Likewise.
18297 (vqdmulltq_m_s16): Likewise.
18298 (vqrshrnbq_m_n_s32): Likewise.
18299 (vqrshrnbq_m_n_s16): Likewise.
18300 (vqrshrnbq_m_n_u32): Likewise.
18301 (vqrshrnbq_m_n_u16): Likewise.
18302 (vqrshrntq_m_n_s32): Likewise.
18303 (vqrshrntq_m_n_s16): Likewise.
18304 (vqrshrntq_m_n_u32): Likewise.
18305 (vqrshrntq_m_n_u16): Likewise.
18306 (vqrshrunbq_m_n_s32): Likewise.
18307 (vqrshrunbq_m_n_s16): Likewise.
18308 (vqrshruntq_m_n_s32): Likewise.
18309 (vqrshruntq_m_n_s16): Likewise.
18310 (vqshrnbq_m_n_s32): Likewise.
18311 (vqshrnbq_m_n_s16): Likewise.
18312 (vqshrnbq_m_n_u32): Likewise.
18313 (vqshrnbq_m_n_u16): Likewise.
18314 (vqshrntq_m_n_s32): Likewise.
18315 (vqshrntq_m_n_s16): Likewise.
18316 (vqshrntq_m_n_u32): Likewise.
18317 (vqshrntq_m_n_u16): Likewise.
18318 (vqshrunbq_m_n_s32): Likewise.
18319 (vqshrunbq_m_n_s16): Likewise.
18320 (vqshruntq_m_n_s32): Likewise.
18321 (vqshruntq_m_n_s16): Likewise.
18322 (vrmlaldavhaq_p_s32): Likewise.
18323 (vrmlaldavhaq_p_u32): Likewise.
18324 (vrmlaldavhaxq_p_s32): Likewise.
18325 (vrmlsldavhaq_p_s32): Likewise.
18326 (vrmlsldavhaxq_p_s32): Likewise.
18327 (vrshrnbq_m_n_s32): Likewise.
18328 (vrshrnbq_m_n_s16): Likewise.
18329 (vrshrnbq_m_n_u32): Likewise.
18330 (vrshrnbq_m_n_u16): Likewise.
18331 (vrshrntq_m_n_s32): Likewise.
18332 (vrshrntq_m_n_s16): Likewise.
18333 (vrshrntq_m_n_u32): Likewise.
18334 (vrshrntq_m_n_u16): Likewise.
18335 (vshllbq_m_n_s8): Likewise.
18336 (vshllbq_m_n_s16): Likewise.
18337 (vshllbq_m_n_u8): Likewise.
18338 (vshllbq_m_n_u16): Likewise.
18339 (vshlltq_m_n_s8): Likewise.
18340 (vshlltq_m_n_s16): Likewise.
18341 (vshlltq_m_n_u8): Likewise.
18342 (vshlltq_m_n_u16): Likewise.
18343 (vshrnbq_m_n_s32): Likewise.
18344 (vshrnbq_m_n_s16): Likewise.
18345 (vshrnbq_m_n_u32): Likewise.
18346 (vshrnbq_m_n_u16): Likewise.
18347 (vshrntq_m_n_s32): Likewise.
18348 (vshrntq_m_n_s16): Likewise.
18349 (vshrntq_m_n_u32): Likewise.
18350 (vshrntq_m_n_u16): Likewise.
18351 (__arm_vmlaldavaq_p_s32): Define intrinsic.
18352 (__arm_vmlaldavaq_p_s16): Likewise.
18353 (__arm_vmlaldavaq_p_u32): Likewise.
18354 (__arm_vmlaldavaq_p_u16): Likewise.
18355 (__arm_vmlaldavaxq_p_s32): Likewise.
18356 (__arm_vmlaldavaxq_p_s16): Likewise.
18357 (__arm_vmlaldavaxq_p_u32): Likewise.
18358 (__arm_vmlaldavaxq_p_u16): Likewise.
18359 (__arm_vmlsldavaq_p_s32): Likewise.
18360 (__arm_vmlsldavaq_p_s16): Likewise.
18361 (__arm_vmlsldavaxq_p_s32): Likewise.
18362 (__arm_vmlsldavaxq_p_s16): Likewise.
18363 (__arm_vmullbq_poly_m_p8): Likewise.
18364 (__arm_vmullbq_poly_m_p16): Likewise.
18365 (__arm_vmulltq_poly_m_p8): Likewise.
18366 (__arm_vmulltq_poly_m_p16): Likewise.
18367 (__arm_vqdmullbq_m_n_s32): Likewise.
18368 (__arm_vqdmullbq_m_n_s16): Likewise.
18369 (__arm_vqdmullbq_m_s32): Likewise.
18370 (__arm_vqdmullbq_m_s16): Likewise.
18371 (__arm_vqdmulltq_m_n_s32): Likewise.
18372 (__arm_vqdmulltq_m_n_s16): Likewise.
18373 (__arm_vqdmulltq_m_s32): Likewise.
18374 (__arm_vqdmulltq_m_s16): Likewise.
18375 (__arm_vqrshrnbq_m_n_s32): Likewise.
18376 (__arm_vqrshrnbq_m_n_s16): Likewise.
18377 (__arm_vqrshrnbq_m_n_u32): Likewise.
18378 (__arm_vqrshrnbq_m_n_u16): Likewise.
18379 (__arm_vqrshrntq_m_n_s32): Likewise.
18380 (__arm_vqrshrntq_m_n_s16): Likewise.
18381 (__arm_vqrshrntq_m_n_u32): Likewise.
18382 (__arm_vqrshrntq_m_n_u16): Likewise.
18383 (__arm_vqrshrunbq_m_n_s32): Likewise.
18384 (__arm_vqrshrunbq_m_n_s16): Likewise.
18385 (__arm_vqrshruntq_m_n_s32): Likewise.
18386 (__arm_vqrshruntq_m_n_s16): Likewise.
18387 (__arm_vqshrnbq_m_n_s32): Likewise.
18388 (__arm_vqshrnbq_m_n_s16): Likewise.
18389 (__arm_vqshrnbq_m_n_u32): Likewise.
18390 (__arm_vqshrnbq_m_n_u16): Likewise.
18391 (__arm_vqshrntq_m_n_s32): Likewise.
18392 (__arm_vqshrntq_m_n_s16): Likewise.
18393 (__arm_vqshrntq_m_n_u32): Likewise.
18394 (__arm_vqshrntq_m_n_u16): Likewise.
18395 (__arm_vqshrunbq_m_n_s32): Likewise.
18396 (__arm_vqshrunbq_m_n_s16): Likewise.
18397 (__arm_vqshruntq_m_n_s32): Likewise.
18398 (__arm_vqshruntq_m_n_s16): Likewise.
18399 (__arm_vrmlaldavhaq_p_s32): Likewise.
18400 (__arm_vrmlaldavhaq_p_u32): Likewise.
18401 (__arm_vrmlaldavhaxq_p_s32): Likewise.
18402 (__arm_vrmlsldavhaq_p_s32): Likewise.
18403 (__arm_vrmlsldavhaxq_p_s32): Likewise.
18404 (__arm_vrshrnbq_m_n_s32): Likewise.
18405 (__arm_vrshrnbq_m_n_s16): Likewise.
18406 (__arm_vrshrnbq_m_n_u32): Likewise.
18407 (__arm_vrshrnbq_m_n_u16): Likewise.
18408 (__arm_vrshrntq_m_n_s32): Likewise.
18409 (__arm_vrshrntq_m_n_s16): Likewise.
18410 (__arm_vrshrntq_m_n_u32): Likewise.
18411 (__arm_vrshrntq_m_n_u16): Likewise.
18412 (__arm_vshllbq_m_n_s8): Likewise.
18413 (__arm_vshllbq_m_n_s16): Likewise.
18414 (__arm_vshllbq_m_n_u8): Likewise.
18415 (__arm_vshllbq_m_n_u16): Likewise.
18416 (__arm_vshlltq_m_n_s8): Likewise.
18417 (__arm_vshlltq_m_n_s16): Likewise.
18418 (__arm_vshlltq_m_n_u8): Likewise.
18419 (__arm_vshlltq_m_n_u16): Likewise.
18420 (__arm_vshrnbq_m_n_s32): Likewise.
18421 (__arm_vshrnbq_m_n_s16): Likewise.
18422 (__arm_vshrnbq_m_n_u32): Likewise.
18423 (__arm_vshrnbq_m_n_u16): Likewise.
18424 (__arm_vshrntq_m_n_s32): Likewise.
18425 (__arm_vshrntq_m_n_s16): Likewise.
18426 (__arm_vshrntq_m_n_u32): Likewise.
18427 (__arm_vshrntq_m_n_u16): Likewise.
18428 (vmullbq_poly_m): Define polymorphic variant.
18429 (vmulltq_poly_m): Likewise.
18430 (vshllbq_m): Likewise.
18431 (vshrntq_m_n): Likewise.
18432 (vshrnbq_m_n): Likewise.
18433 (vshlltq_m_n): Likewise.
18434 (vshllbq_m_n): Likewise.
18435 (vrshrntq_m_n): Likewise.
18436 (vrshrnbq_m_n): Likewise.
18437 (vqshruntq_m_n): Likewise.
18438 (vqshrunbq_m_n): Likewise.
18439 (vqdmullbq_m_n): Likewise.
18440 (vqdmullbq_m): Likewise.
18441 (vqdmulltq_m_n): Likewise.
18442 (vqdmulltq_m): Likewise.
18443 (vqrshrnbq_m_n): Likewise.
18444 (vqrshrntq_m_n): Likewise.
18445 (vqrshrunbq_m_n): Likewise.
18446 (vqrshruntq_m_n): Likewise.
18447 (vqshrnbq_m_n): Likewise.
18448 (vqshrntq_m_n): Likewise.
18449 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
18450 builtin qualifiers.
18451 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
18452 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
18453 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
18454 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
18455 * config/arm/mve.md (VMLALDAVAQ_P): Define iterator.
18456 (VMLALDAVAXQ_P): Likewise.
18457 (VQRSHRNBQ_M_N): Likewise.
18458 (VQRSHRNTQ_M_N): Likewise.
18459 (VQSHRNBQ_M_N): Likewise.
18460 (VQSHRNTQ_M_N): Likewise.
18461 (VRSHRNBQ_M_N): Likewise.
18462 (VRSHRNTQ_M_N): Likewise.
18463 (VSHLLBQ_M_N): Likewise.
18464 (VSHLLTQ_M_N): Likewise.
18465 (VSHRNBQ_M_N): Likewise.
18466 (VSHRNTQ_M_N): Likewise.
18467 (mve_vmlaldavaq_p_<supf><mode>): Define RTL pattern.
18468 (mve_vmlaldavaxq_p_<supf><mode>): Likewise.
18469 (mve_vqrshrnbq_m_n_<supf><mode>): Likewise.
18470 (mve_vqrshrntq_m_n_<supf><mode>): Likewise.
18471 (mve_vqshrnbq_m_n_<supf><mode>): Likewise.
18472 (mve_vqshrntq_m_n_<supf><mode>): Likewise.
18473 (mve_vrmlaldavhaq_p_sv4si): Likewise.
18474 (mve_vrshrnbq_m_n_<supf><mode>): Likewise.
18475 (mve_vrshrntq_m_n_<supf><mode>): Likewise.
18476 (mve_vshllbq_m_n_<supf><mode>): Likewise.
18477 (mve_vshlltq_m_n_<supf><mode>): Likewise.
18478 (mve_vshrnbq_m_n_<supf><mode>): Likewise.
18479 (mve_vshrntq_m_n_<supf><mode>): Likewise.
18480 (mve_vmlsldavaq_p_s<mode>): Likewise.
18481 (mve_vmlsldavaxq_p_s<mode>): Likewise.
18482 (mve_vmullbq_poly_m_p<mode>): Likewise.
18483 (mve_vmulltq_poly_m_p<mode>): Likewise.
18484 (mve_vqdmullbq_m_n_s<mode>): Likewise.
18485 (mve_vqdmullbq_m_s<mode>): Likewise.
18486 (mve_vqdmulltq_m_n_s<mode>): Likewise.
18487 (mve_vqdmulltq_m_s<mode>): Likewise.
18488 (mve_vqrshrunbq_m_n_s<mode>): Likewise.
18489 (mve_vqrshruntq_m_n_s<mode>): Likewise.
18490 (mve_vqshrunbq_m_n_s<mode>): Likewise.
18491 (mve_vqshruntq_m_n_s<mode>): Likewise.
18492 (mve_vrmlaldavhaq_p_uv4si): Likewise.
18493 (mve_vrmlaldavhaxq_p_sv4si): Likewise.
18494 (mve_vrmlsldavhaq_p_sv4si): Likewise.
18495 (mve_vrmlsldavhaxq_p_sv4si): Likewise.
18497 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
18498 Mihail Ionescu <mihail.ionescu@arm.com>
18499 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18501 * config/arm/arm_mve.h (vabdq_m_s8): Define macro.
18502 (vabdq_m_s32): Likewise.
18503 (vabdq_m_s16): Likewise.
18504 (vabdq_m_u8): Likewise.
18505 (vabdq_m_u32): Likewise.
18506 (vabdq_m_u16): Likewise.
18507 (vaddq_m_n_s8): Likewise.
18508 (vaddq_m_n_s32): Likewise.
18509 (vaddq_m_n_s16): Likewise.
18510 (vaddq_m_n_u8): Likewise.
18511 (vaddq_m_n_u32): Likewise.
18512 (vaddq_m_n_u16): Likewise.
18513 (vaddq_m_s8): Likewise.
18514 (vaddq_m_s32): Likewise.
18515 (vaddq_m_s16): Likewise.
18516 (vaddq_m_u8): Likewise.
18517 (vaddq_m_u32): Likewise.
18518 (vaddq_m_u16): Likewise.
18519 (vandq_m_s8): Likewise.
18520 (vandq_m_s32): Likewise.
18521 (vandq_m_s16): Likewise.
18522 (vandq_m_u8): Likewise.
18523 (vandq_m_u32): Likewise.
18524 (vandq_m_u16): Likewise.
18525 (vbicq_m_s8): Likewise.
18526 (vbicq_m_s32): Likewise.
18527 (vbicq_m_s16): Likewise.
18528 (vbicq_m_u8): Likewise.
18529 (vbicq_m_u32): Likewise.
18530 (vbicq_m_u16): Likewise.
18531 (vbrsrq_m_n_s8): Likewise.
18532 (vbrsrq_m_n_s32): Likewise.
18533 (vbrsrq_m_n_s16): Likewise.
18534 (vbrsrq_m_n_u8): Likewise.
18535 (vbrsrq_m_n_u32): Likewise.
18536 (vbrsrq_m_n_u16): Likewise.
18537 (vcaddq_rot270_m_s8): Likewise.
18538 (vcaddq_rot270_m_s32): Likewise.
18539 (vcaddq_rot270_m_s16): Likewise.
18540 (vcaddq_rot270_m_u8): Likewise.
18541 (vcaddq_rot270_m_u32): Likewise.
18542 (vcaddq_rot270_m_u16): Likewise.
18543 (vcaddq_rot90_m_s8): Likewise.
18544 (vcaddq_rot90_m_s32): Likewise.
18545 (vcaddq_rot90_m_s16): Likewise.
18546 (vcaddq_rot90_m_u8): Likewise.
18547 (vcaddq_rot90_m_u32): Likewise.
18548 (vcaddq_rot90_m_u16): Likewise.
18549 (veorq_m_s8): Likewise.
18550 (veorq_m_s32): Likewise.
18551 (veorq_m_s16): Likewise.
18552 (veorq_m_u8): Likewise.
18553 (veorq_m_u32): Likewise.
18554 (veorq_m_u16): Likewise.
18555 (vhaddq_m_n_s8): Likewise.
18556 (vhaddq_m_n_s32): Likewise.
18557 (vhaddq_m_n_s16): Likewise.
18558 (vhaddq_m_n_u8): Likewise.
18559 (vhaddq_m_n_u32): Likewise.
18560 (vhaddq_m_n_u16): Likewise.
18561 (vhaddq_m_s8): Likewise.
18562 (vhaddq_m_s32): Likewise.
18563 (vhaddq_m_s16): Likewise.
18564 (vhaddq_m_u8): Likewise.
18565 (vhaddq_m_u32): Likewise.
18566 (vhaddq_m_u16): Likewise.
18567 (vhcaddq_rot270_m_s8): Likewise.
18568 (vhcaddq_rot270_m_s32): Likewise.
18569 (vhcaddq_rot270_m_s16): Likewise.
18570 (vhcaddq_rot90_m_s8): Likewise.
18571 (vhcaddq_rot90_m_s32): Likewise.
18572 (vhcaddq_rot90_m_s16): Likewise.
18573 (vhsubq_m_n_s8): Likewise.
18574 (vhsubq_m_n_s32): Likewise.
18575 (vhsubq_m_n_s16): Likewise.
18576 (vhsubq_m_n_u8): Likewise.
18577 (vhsubq_m_n_u32): Likewise.
18578 (vhsubq_m_n_u16): Likewise.
18579 (vhsubq_m_s8): Likewise.
18580 (vhsubq_m_s32): Likewise.
18581 (vhsubq_m_s16): Likewise.
18582 (vhsubq_m_u8): Likewise.
18583 (vhsubq_m_u32): Likewise.
18584 (vhsubq_m_u16): Likewise.
18585 (vmaxq_m_s8): Likewise.
18586 (vmaxq_m_s32): Likewise.
18587 (vmaxq_m_s16): Likewise.
18588 (vmaxq_m_u8): Likewise.
18589 (vmaxq_m_u32): Likewise.
18590 (vmaxq_m_u16): Likewise.
18591 (vminq_m_s8): Likewise.
18592 (vminq_m_s32): Likewise.
18593 (vminq_m_s16): Likewise.
18594 (vminq_m_u8): Likewise.
18595 (vminq_m_u32): Likewise.
18596 (vminq_m_u16): Likewise.
18597 (vmladavaq_p_s8): Likewise.
18598 (vmladavaq_p_s32): Likewise.
18599 (vmladavaq_p_s16): Likewise.
18600 (vmladavaq_p_u8): Likewise.
18601 (vmladavaq_p_u32): Likewise.
18602 (vmladavaq_p_u16): Likewise.
18603 (vmladavaxq_p_s8): Likewise.
18604 (vmladavaxq_p_s32): Likewise.
18605 (vmladavaxq_p_s16): Likewise.
18606 (vmlaq_m_n_s8): Likewise.
18607 (vmlaq_m_n_s32): Likewise.
18608 (vmlaq_m_n_s16): Likewise.
18609 (vmlaq_m_n_u8): Likewise.
18610 (vmlaq_m_n_u32): Likewise.
18611 (vmlaq_m_n_u16): Likewise.
18612 (vmlasq_m_n_s8): Likewise.
18613 (vmlasq_m_n_s32): Likewise.
18614 (vmlasq_m_n_s16): Likewise.
18615 (vmlasq_m_n_u8): Likewise.
18616 (vmlasq_m_n_u32): Likewise.
18617 (vmlasq_m_n_u16): Likewise.
18618 (vmlsdavaq_p_s8): Likewise.
18619 (vmlsdavaq_p_s32): Likewise.
18620 (vmlsdavaq_p_s16): Likewise.
18621 (vmlsdavaxq_p_s8): Likewise.
18622 (vmlsdavaxq_p_s32): Likewise.
18623 (vmlsdavaxq_p_s16): Likewise.
18624 (vmulhq_m_s8): Likewise.
18625 (vmulhq_m_s32): Likewise.
18626 (vmulhq_m_s16): Likewise.
18627 (vmulhq_m_u8): Likewise.
18628 (vmulhq_m_u32): Likewise.
18629 (vmulhq_m_u16): Likewise.
18630 (vmullbq_int_m_s8): Likewise.
18631 (vmullbq_int_m_s32): Likewise.
18632 (vmullbq_int_m_s16): Likewise.
18633 (vmullbq_int_m_u8): Likewise.
18634 (vmullbq_int_m_u32): Likewise.
18635 (vmullbq_int_m_u16): Likewise.
18636 (vmulltq_int_m_s8): Likewise.
18637 (vmulltq_int_m_s32): Likewise.
18638 (vmulltq_int_m_s16): Likewise.
18639 (vmulltq_int_m_u8): Likewise.
18640 (vmulltq_int_m_u32): Likewise.
18641 (vmulltq_int_m_u16): Likewise.
18642 (vmulq_m_n_s8): Likewise.
18643 (vmulq_m_n_s32): Likewise.
18644 (vmulq_m_n_s16): Likewise.
18645 (vmulq_m_n_u8): Likewise.
18646 (vmulq_m_n_u32): Likewise.
18647 (vmulq_m_n_u16): Likewise.
18648 (vmulq_m_s8): Likewise.
18649 (vmulq_m_s32): Likewise.
18650 (vmulq_m_s16): Likewise.
18651 (vmulq_m_u8): Likewise.
18652 (vmulq_m_u32): Likewise.
18653 (vmulq_m_u16): Likewise.
18654 (vornq_m_s8): Likewise.
18655 (vornq_m_s32): Likewise.
18656 (vornq_m_s16): Likewise.
18657 (vornq_m_u8): Likewise.
18658 (vornq_m_u32): Likewise.
18659 (vornq_m_u16): Likewise.
18660 (vorrq_m_s8): Likewise.
18661 (vorrq_m_s32): Likewise.
18662 (vorrq_m_s16): Likewise.
18663 (vorrq_m_u8): Likewise.
18664 (vorrq_m_u32): Likewise.
18665 (vorrq_m_u16): Likewise.
18666 (vqaddq_m_n_s8): Likewise.
18667 (vqaddq_m_n_s32): Likewise.
18668 (vqaddq_m_n_s16): Likewise.
18669 (vqaddq_m_n_u8): Likewise.
18670 (vqaddq_m_n_u32): Likewise.
18671 (vqaddq_m_n_u16): Likewise.
18672 (vqaddq_m_s8): Likewise.
18673 (vqaddq_m_s32): Likewise.
18674 (vqaddq_m_s16): Likewise.
18675 (vqaddq_m_u8): Likewise.
18676 (vqaddq_m_u32): Likewise.
18677 (vqaddq_m_u16): Likewise.
18678 (vqdmladhq_m_s8): Likewise.
18679 (vqdmladhq_m_s32): Likewise.
18680 (vqdmladhq_m_s16): Likewise.
18681 (vqdmladhxq_m_s8): Likewise.
18682 (vqdmladhxq_m_s32): Likewise.
18683 (vqdmladhxq_m_s16): Likewise.
18684 (vqdmlahq_m_n_s8): Likewise.
18685 (vqdmlahq_m_n_s32): Likewise.
18686 (vqdmlahq_m_n_s16): Likewise.
18687 (vqdmlahq_m_n_u8): Likewise.
18688 (vqdmlahq_m_n_u32): Likewise.
18689 (vqdmlahq_m_n_u16): Likewise.
18690 (vqdmlsdhq_m_s8): Likewise.
18691 (vqdmlsdhq_m_s32): Likewise.
18692 (vqdmlsdhq_m_s16): Likewise.
18693 (vqdmlsdhxq_m_s8): Likewise.
18694 (vqdmlsdhxq_m_s32): Likewise.
18695 (vqdmlsdhxq_m_s16): Likewise.
18696 (vqdmulhq_m_n_s8): Likewise.
18697 (vqdmulhq_m_n_s32): Likewise.
18698 (vqdmulhq_m_n_s16): Likewise.
18699 (vqdmulhq_m_s8): Likewise.
18700 (vqdmulhq_m_s32): Likewise.
18701 (vqdmulhq_m_s16): Likewise.
18702 (vqrdmladhq_m_s8): Likewise.
18703 (vqrdmladhq_m_s32): Likewise.
18704 (vqrdmladhq_m_s16): Likewise.
18705 (vqrdmladhxq_m_s8): Likewise.
18706 (vqrdmladhxq_m_s32): Likewise.
18707 (vqrdmladhxq_m_s16): Likewise.
18708 (vqrdmlahq_m_n_s8): Likewise.
18709 (vqrdmlahq_m_n_s32): Likewise.
18710 (vqrdmlahq_m_n_s16): Likewise.
18711 (vqrdmlahq_m_n_u8): Likewise.
18712 (vqrdmlahq_m_n_u32): Likewise.
18713 (vqrdmlahq_m_n_u16): Likewise.
18714 (vqrdmlashq_m_n_s8): Likewise.
18715 (vqrdmlashq_m_n_s32): Likewise.
18716 (vqrdmlashq_m_n_s16): Likewise.
18717 (vqrdmlashq_m_n_u8): Likewise.
18718 (vqrdmlashq_m_n_u32): Likewise.
18719 (vqrdmlashq_m_n_u16): Likewise.
18720 (vqrdmlsdhq_m_s8): Likewise.
18721 (vqrdmlsdhq_m_s32): Likewise.
18722 (vqrdmlsdhq_m_s16): Likewise.
18723 (vqrdmlsdhxq_m_s8): Likewise.
18724 (vqrdmlsdhxq_m_s32): Likewise.
18725 (vqrdmlsdhxq_m_s16): Likewise.
18726 (vqrdmulhq_m_n_s8): Likewise.
18727 (vqrdmulhq_m_n_s32): Likewise.
18728 (vqrdmulhq_m_n_s16): Likewise.
18729 (vqrdmulhq_m_s8): Likewise.
18730 (vqrdmulhq_m_s32): Likewise.
18731 (vqrdmulhq_m_s16): Likewise.
18732 (vqrshlq_m_s8): Likewise.
18733 (vqrshlq_m_s32): Likewise.
18734 (vqrshlq_m_s16): Likewise.
18735 (vqrshlq_m_u8): Likewise.
18736 (vqrshlq_m_u32): Likewise.
18737 (vqrshlq_m_u16): Likewise.
18738 (vqshlq_m_n_s8): Likewise.
18739 (vqshlq_m_n_s32): Likewise.
18740 (vqshlq_m_n_s16): Likewise.
18741 (vqshlq_m_n_u8): Likewise.
18742 (vqshlq_m_n_u32): Likewise.
18743 (vqshlq_m_n_u16): Likewise.
18744 (vqshlq_m_s8): Likewise.
18745 (vqshlq_m_s32): Likewise.
18746 (vqshlq_m_s16): Likewise.
18747 (vqshlq_m_u8): Likewise.
18748 (vqshlq_m_u32): Likewise.
18749 (vqshlq_m_u16): Likewise.
18750 (vqsubq_m_n_s8): Likewise.
18751 (vqsubq_m_n_s32): Likewise.
18752 (vqsubq_m_n_s16): Likewise.
18753 (vqsubq_m_n_u8): Likewise.
18754 (vqsubq_m_n_u32): Likewise.
18755 (vqsubq_m_n_u16): Likewise.
18756 (vqsubq_m_s8): Likewise.
18757 (vqsubq_m_s32): Likewise.
18758 (vqsubq_m_s16): Likewise.
18759 (vqsubq_m_u8): Likewise.
18760 (vqsubq_m_u32): Likewise.
18761 (vqsubq_m_u16): Likewise.
18762 (vrhaddq_m_s8): Likewise.
18763 (vrhaddq_m_s32): Likewise.
18764 (vrhaddq_m_s16): Likewise.
18765 (vrhaddq_m_u8): Likewise.
18766 (vrhaddq_m_u32): Likewise.
18767 (vrhaddq_m_u16): Likewise.
18768 (vrmulhq_m_s8): Likewise.
18769 (vrmulhq_m_s32): Likewise.
18770 (vrmulhq_m_s16): Likewise.
18771 (vrmulhq_m_u8): Likewise.
18772 (vrmulhq_m_u32): Likewise.
18773 (vrmulhq_m_u16): Likewise.
18774 (vrshlq_m_s8): Likewise.
18775 (vrshlq_m_s32): Likewise.
18776 (vrshlq_m_s16): Likewise.
18777 (vrshlq_m_u8): Likewise.
18778 (vrshlq_m_u32): Likewise.
18779 (vrshlq_m_u16): Likewise.
18780 (vrshrq_m_n_s8): Likewise.
18781 (vrshrq_m_n_s32): Likewise.
18782 (vrshrq_m_n_s16): Likewise.
18783 (vrshrq_m_n_u8): Likewise.
18784 (vrshrq_m_n_u32): Likewise.
18785 (vrshrq_m_n_u16): Likewise.
18786 (vshlq_m_n_s8): Likewise.
18787 (vshlq_m_n_s32): Likewise.
18788 (vshlq_m_n_s16): Likewise.
18789 (vshlq_m_n_u8): Likewise.
18790 (vshlq_m_n_u32): Likewise.
18791 (vshlq_m_n_u16): Likewise.
18792 (vshrq_m_n_s8): Likewise.
18793 (vshrq_m_n_s32): Likewise.
18794 (vshrq_m_n_s16): Likewise.
18795 (vshrq_m_n_u8): Likewise.
18796 (vshrq_m_n_u32): Likewise.
18797 (vshrq_m_n_u16): Likewise.
18798 (vsliq_m_n_s8): Likewise.
18799 (vsliq_m_n_s32): Likewise.
18800 (vsliq_m_n_s16): Likewise.
18801 (vsliq_m_n_u8): Likewise.
18802 (vsliq_m_n_u32): Likewise.
18803 (vsliq_m_n_u16): Likewise.
18804 (vsubq_m_n_s8): Likewise.
18805 (vsubq_m_n_s32): Likewise.
18806 (vsubq_m_n_s16): Likewise.
18807 (vsubq_m_n_u8): Likewise.
18808 (vsubq_m_n_u32): Likewise.
18809 (vsubq_m_n_u16): Likewise.
18810 (__arm_vabdq_m_s8): Define intrinsic.
18811 (__arm_vabdq_m_s32): Likewise.
18812 (__arm_vabdq_m_s16): Likewise.
18813 (__arm_vabdq_m_u8): Likewise.
18814 (__arm_vabdq_m_u32): Likewise.
18815 (__arm_vabdq_m_u16): Likewise.
18816 (__arm_vaddq_m_n_s8): Likewise.
18817 (__arm_vaddq_m_n_s32): Likewise.
18818 (__arm_vaddq_m_n_s16): Likewise.
18819 (__arm_vaddq_m_n_u8): Likewise.
18820 (__arm_vaddq_m_n_u32): Likewise.
18821 (__arm_vaddq_m_n_u16): Likewise.
18822 (__arm_vaddq_m_s8): Likewise.
18823 (__arm_vaddq_m_s32): Likewise.
18824 (__arm_vaddq_m_s16): Likewise.
18825 (__arm_vaddq_m_u8): Likewise.
18826 (__arm_vaddq_m_u32): Likewise.
18827 (__arm_vaddq_m_u16): Likewise.
18828 (__arm_vandq_m_s8): Likewise.
18829 (__arm_vandq_m_s32): Likewise.
18830 (__arm_vandq_m_s16): Likewise.
18831 (__arm_vandq_m_u8): Likewise.
18832 (__arm_vandq_m_u32): Likewise.
18833 (__arm_vandq_m_u16): Likewise.
18834 (__arm_vbicq_m_s8): Likewise.
18835 (__arm_vbicq_m_s32): Likewise.
18836 (__arm_vbicq_m_s16): Likewise.
18837 (__arm_vbicq_m_u8): Likewise.
18838 (__arm_vbicq_m_u32): Likewise.
18839 (__arm_vbicq_m_u16): Likewise.
18840 (__arm_vbrsrq_m_n_s8): Likewise.
18841 (__arm_vbrsrq_m_n_s32): Likewise.
18842 (__arm_vbrsrq_m_n_s16): Likewise.
18843 (__arm_vbrsrq_m_n_u8): Likewise.
18844 (__arm_vbrsrq_m_n_u32): Likewise.
18845 (__arm_vbrsrq_m_n_u16): Likewise.
18846 (__arm_vcaddq_rot270_m_s8): Likewise.
18847 (__arm_vcaddq_rot270_m_s32): Likewise.
18848 (__arm_vcaddq_rot270_m_s16): Likewise.
18849 (__arm_vcaddq_rot270_m_u8): Likewise.
18850 (__arm_vcaddq_rot270_m_u32): Likewise.
18851 (__arm_vcaddq_rot270_m_u16): Likewise.
18852 (__arm_vcaddq_rot90_m_s8): Likewise.
18853 (__arm_vcaddq_rot90_m_s32): Likewise.
18854 (__arm_vcaddq_rot90_m_s16): Likewise.
18855 (__arm_vcaddq_rot90_m_u8): Likewise.
18856 (__arm_vcaddq_rot90_m_u32): Likewise.
18857 (__arm_vcaddq_rot90_m_u16): Likewise.
18858 (__arm_veorq_m_s8): Likewise.
18859 (__arm_veorq_m_s32): Likewise.
18860 (__arm_veorq_m_s16): Likewise.
18861 (__arm_veorq_m_u8): Likewise.
18862 (__arm_veorq_m_u32): Likewise.
18863 (__arm_veorq_m_u16): Likewise.
18864 (__arm_vhaddq_m_n_s8): Likewise.
18865 (__arm_vhaddq_m_n_s32): Likewise.
18866 (__arm_vhaddq_m_n_s16): Likewise.
18867 (__arm_vhaddq_m_n_u8): Likewise.
18868 (__arm_vhaddq_m_n_u32): Likewise.
18869 (__arm_vhaddq_m_n_u16): Likewise.
18870 (__arm_vhaddq_m_s8): Likewise.
18871 (__arm_vhaddq_m_s32): Likewise.
18872 (__arm_vhaddq_m_s16): Likewise.
18873 (__arm_vhaddq_m_u8): Likewise.
18874 (__arm_vhaddq_m_u32): Likewise.
18875 (__arm_vhaddq_m_u16): Likewise.
18876 (__arm_vhcaddq_rot270_m_s8): Likewise.
18877 (__arm_vhcaddq_rot270_m_s32): Likewise.
18878 (__arm_vhcaddq_rot270_m_s16): Likewise.
18879 (__arm_vhcaddq_rot90_m_s8): Likewise.
18880 (__arm_vhcaddq_rot90_m_s32): Likewise.
18881 (__arm_vhcaddq_rot90_m_s16): Likewise.
18882 (__arm_vhsubq_m_n_s8): Likewise.
18883 (__arm_vhsubq_m_n_s32): Likewise.
18884 (__arm_vhsubq_m_n_s16): Likewise.
18885 (__arm_vhsubq_m_n_u8): Likewise.
18886 (__arm_vhsubq_m_n_u32): Likewise.
18887 (__arm_vhsubq_m_n_u16): Likewise.
18888 (__arm_vhsubq_m_s8): Likewise.
18889 (__arm_vhsubq_m_s32): Likewise.
18890 (__arm_vhsubq_m_s16): Likewise.
18891 (__arm_vhsubq_m_u8): Likewise.
18892 (__arm_vhsubq_m_u32): Likewise.
18893 (__arm_vhsubq_m_u16): Likewise.
18894 (__arm_vmaxq_m_s8): Likewise.
18895 (__arm_vmaxq_m_s32): Likewise.
18896 (__arm_vmaxq_m_s16): Likewise.
18897 (__arm_vmaxq_m_u8): Likewise.
18898 (__arm_vmaxq_m_u32): Likewise.
18899 (__arm_vmaxq_m_u16): Likewise.
18900 (__arm_vminq_m_s8): Likewise.
18901 (__arm_vminq_m_s32): Likewise.
18902 (__arm_vminq_m_s16): Likewise.
18903 (__arm_vminq_m_u8): Likewise.
18904 (__arm_vminq_m_u32): Likewise.
18905 (__arm_vminq_m_u16): Likewise.
18906 (__arm_vmladavaq_p_s8): Likewise.
18907 (__arm_vmladavaq_p_s32): Likewise.
18908 (__arm_vmladavaq_p_s16): Likewise.
18909 (__arm_vmladavaq_p_u8): Likewise.
18910 (__arm_vmladavaq_p_u32): Likewise.
18911 (__arm_vmladavaq_p_u16): Likewise.
18912 (__arm_vmladavaxq_p_s8): Likewise.
18913 (__arm_vmladavaxq_p_s32): Likewise.
18914 (__arm_vmladavaxq_p_s16): Likewise.
18915 (__arm_vmlaq_m_n_s8): Likewise.
18916 (__arm_vmlaq_m_n_s32): Likewise.
18917 (__arm_vmlaq_m_n_s16): Likewise.
18918 (__arm_vmlaq_m_n_u8): Likewise.
18919 (__arm_vmlaq_m_n_u32): Likewise.
18920 (__arm_vmlaq_m_n_u16): Likewise.
18921 (__arm_vmlasq_m_n_s8): Likewise.
18922 (__arm_vmlasq_m_n_s32): Likewise.
18923 (__arm_vmlasq_m_n_s16): Likewise.
18924 (__arm_vmlasq_m_n_u8): Likewise.
18925 (__arm_vmlasq_m_n_u32): Likewise.
18926 (__arm_vmlasq_m_n_u16): Likewise.
18927 (__arm_vmlsdavaq_p_s8): Likewise.
18928 (__arm_vmlsdavaq_p_s32): Likewise.
18929 (__arm_vmlsdavaq_p_s16): Likewise.
18930 (__arm_vmlsdavaxq_p_s8): Likewise.
18931 (__arm_vmlsdavaxq_p_s32): Likewise.
18932 (__arm_vmlsdavaxq_p_s16): Likewise.
18933 (__arm_vmulhq_m_s8): Likewise.
18934 (__arm_vmulhq_m_s32): Likewise.
18935 (__arm_vmulhq_m_s16): Likewise.
18936 (__arm_vmulhq_m_u8): Likewise.
18937 (__arm_vmulhq_m_u32): Likewise.
18938 (__arm_vmulhq_m_u16): Likewise.
18939 (__arm_vmullbq_int_m_s8): Likewise.
18940 (__arm_vmullbq_int_m_s32): Likewise.
18941 (__arm_vmullbq_int_m_s16): Likewise.
18942 (__arm_vmullbq_int_m_u8): Likewise.
18943 (__arm_vmullbq_int_m_u32): Likewise.
18944 (__arm_vmullbq_int_m_u16): Likewise.
18945 (__arm_vmulltq_int_m_s8): Likewise.
18946 (__arm_vmulltq_int_m_s32): Likewise.
18947 (__arm_vmulltq_int_m_s16): Likewise.
18948 (__arm_vmulltq_int_m_u8): Likewise.
18949 (__arm_vmulltq_int_m_u32): Likewise.
18950 (__arm_vmulltq_int_m_u16): Likewise.
18951 (__arm_vmulq_m_n_s8): Likewise.
18952 (__arm_vmulq_m_n_s32): Likewise.
18953 (__arm_vmulq_m_n_s16): Likewise.
18954 (__arm_vmulq_m_n_u8): Likewise.
18955 (__arm_vmulq_m_n_u32): Likewise.
18956 (__arm_vmulq_m_n_u16): Likewise.
18957 (__arm_vmulq_m_s8): Likewise.
18958 (__arm_vmulq_m_s32): Likewise.
18959 (__arm_vmulq_m_s16): Likewise.
18960 (__arm_vmulq_m_u8): Likewise.
18961 (__arm_vmulq_m_u32): Likewise.
18962 (__arm_vmulq_m_u16): Likewise.
18963 (__arm_vornq_m_s8): Likewise.
18964 (__arm_vornq_m_s32): Likewise.
18965 (__arm_vornq_m_s16): Likewise.
18966 (__arm_vornq_m_u8): Likewise.
18967 (__arm_vornq_m_u32): Likewise.
18968 (__arm_vornq_m_u16): Likewise.
18969 (__arm_vorrq_m_s8): Likewise.
18970 (__arm_vorrq_m_s32): Likewise.
18971 (__arm_vorrq_m_s16): Likewise.
18972 (__arm_vorrq_m_u8): Likewise.
18973 (__arm_vorrq_m_u32): Likewise.
18974 (__arm_vorrq_m_u16): Likewise.
18975 (__arm_vqaddq_m_n_s8): Likewise.
18976 (__arm_vqaddq_m_n_s32): Likewise.
18977 (__arm_vqaddq_m_n_s16): Likewise.
18978 (__arm_vqaddq_m_n_u8): Likewise.
18979 (__arm_vqaddq_m_n_u32): Likewise.
18980 (__arm_vqaddq_m_n_u16): Likewise.
18981 (__arm_vqaddq_m_s8): Likewise.
18982 (__arm_vqaddq_m_s32): Likewise.
18983 (__arm_vqaddq_m_s16): Likewise.
18984 (__arm_vqaddq_m_u8): Likewise.
18985 (__arm_vqaddq_m_u32): Likewise.
18986 (__arm_vqaddq_m_u16): Likewise.
18987 (__arm_vqdmladhq_m_s8): Likewise.
18988 (__arm_vqdmladhq_m_s32): Likewise.
18989 (__arm_vqdmladhq_m_s16): Likewise.
18990 (__arm_vqdmladhxq_m_s8): Likewise.
18991 (__arm_vqdmladhxq_m_s32): Likewise.
18992 (__arm_vqdmladhxq_m_s16): Likewise.
18993 (__arm_vqdmlahq_m_n_s8): Likewise.
18994 (__arm_vqdmlahq_m_n_s32): Likewise.
18995 (__arm_vqdmlahq_m_n_s16): Likewise.
18996 (__arm_vqdmlahq_m_n_u8): Likewise.
18997 (__arm_vqdmlahq_m_n_u32): Likewise.
18998 (__arm_vqdmlahq_m_n_u16): Likewise.
18999 (__arm_vqdmlsdhq_m_s8): Likewise.
19000 (__arm_vqdmlsdhq_m_s32): Likewise.
19001 (__arm_vqdmlsdhq_m_s16): Likewise.
19002 (__arm_vqdmlsdhxq_m_s8): Likewise.
19003 (__arm_vqdmlsdhxq_m_s32): Likewise.
19004 (__arm_vqdmlsdhxq_m_s16): Likewise.
19005 (__arm_vqdmulhq_m_n_s8): Likewise.
19006 (__arm_vqdmulhq_m_n_s32): Likewise.
19007 (__arm_vqdmulhq_m_n_s16): Likewise.
19008 (__arm_vqdmulhq_m_s8): Likewise.
19009 (__arm_vqdmulhq_m_s32): Likewise.
19010 (__arm_vqdmulhq_m_s16): Likewise.
19011 (__arm_vqrdmladhq_m_s8): Likewise.
19012 (__arm_vqrdmladhq_m_s32): Likewise.
19013 (__arm_vqrdmladhq_m_s16): Likewise.
19014 (__arm_vqrdmladhxq_m_s8): Likewise.
19015 (__arm_vqrdmladhxq_m_s32): Likewise.
19016 (__arm_vqrdmladhxq_m_s16): Likewise.
19017 (__arm_vqrdmlahq_m_n_s8): Likewise.
19018 (__arm_vqrdmlahq_m_n_s32): Likewise.
19019 (__arm_vqrdmlahq_m_n_s16): Likewise.
19020 (__arm_vqrdmlahq_m_n_u8): Likewise.
19021 (__arm_vqrdmlahq_m_n_u32): Likewise.
19022 (__arm_vqrdmlahq_m_n_u16): Likewise.
19023 (__arm_vqrdmlashq_m_n_s8): Likewise.
19024 (__arm_vqrdmlashq_m_n_s32): Likewise.
19025 (__arm_vqrdmlashq_m_n_s16): Likewise.
19026 (__arm_vqrdmlashq_m_n_u8): Likewise.
19027 (__arm_vqrdmlashq_m_n_u32): Likewise.
19028 (__arm_vqrdmlashq_m_n_u16): Likewise.
19029 (__arm_vqrdmlsdhq_m_s8): Likewise.
19030 (__arm_vqrdmlsdhq_m_s32): Likewise.
19031 (__arm_vqrdmlsdhq_m_s16): Likewise.
19032 (__arm_vqrdmlsdhxq_m_s8): Likewise.
19033 (__arm_vqrdmlsdhxq_m_s32): Likewise.
19034 (__arm_vqrdmlsdhxq_m_s16): Likewise.
19035 (__arm_vqrdmulhq_m_n_s8): Likewise.
19036 (__arm_vqrdmulhq_m_n_s32): Likewise.
19037 (__arm_vqrdmulhq_m_n_s16): Likewise.
19038 (__arm_vqrdmulhq_m_s8): Likewise.
19039 (__arm_vqrdmulhq_m_s32): Likewise.
19040 (__arm_vqrdmulhq_m_s16): Likewise.
19041 (__arm_vqrshlq_m_s8): Likewise.
19042 (__arm_vqrshlq_m_s32): Likewise.
19043 (__arm_vqrshlq_m_s16): Likewise.
19044 (__arm_vqrshlq_m_u8): Likewise.
19045 (__arm_vqrshlq_m_u32): Likewise.
19046 (__arm_vqrshlq_m_u16): Likewise.
19047 (__arm_vqshlq_m_n_s8): Likewise.
19048 (__arm_vqshlq_m_n_s32): Likewise.
19049 (__arm_vqshlq_m_n_s16): Likewise.
19050 (__arm_vqshlq_m_n_u8): Likewise.
19051 (__arm_vqshlq_m_n_u32): Likewise.
19052 (__arm_vqshlq_m_n_u16): Likewise.
19053 (__arm_vqshlq_m_s8): Likewise.
19054 (__arm_vqshlq_m_s32): Likewise.
19055 (__arm_vqshlq_m_s16): Likewise.
19056 (__arm_vqshlq_m_u8): Likewise.
19057 (__arm_vqshlq_m_u32): Likewise.
19058 (__arm_vqshlq_m_u16): Likewise.
19059 (__arm_vqsubq_m_n_s8): Likewise.
19060 (__arm_vqsubq_m_n_s32): Likewise.
19061 (__arm_vqsubq_m_n_s16): Likewise.
19062 (__arm_vqsubq_m_n_u8): Likewise.
19063 (__arm_vqsubq_m_n_u32): Likewise.
19064 (__arm_vqsubq_m_n_u16): Likewise.
19065 (__arm_vqsubq_m_s8): Likewise.
19066 (__arm_vqsubq_m_s32): Likewise.
19067 (__arm_vqsubq_m_s16): Likewise.
19068 (__arm_vqsubq_m_u8): Likewise.
19069 (__arm_vqsubq_m_u32): Likewise.
19070 (__arm_vqsubq_m_u16): Likewise.
19071 (__arm_vrhaddq_m_s8): Likewise.
19072 (__arm_vrhaddq_m_s32): Likewise.
19073 (__arm_vrhaddq_m_s16): Likewise.
19074 (__arm_vrhaddq_m_u8): Likewise.
19075 (__arm_vrhaddq_m_u32): Likewise.
19076 (__arm_vrhaddq_m_u16): Likewise.
19077 (__arm_vrmulhq_m_s8): Likewise.
19078 (__arm_vrmulhq_m_s32): Likewise.
19079 (__arm_vrmulhq_m_s16): Likewise.
19080 (__arm_vrmulhq_m_u8): Likewise.
19081 (__arm_vrmulhq_m_u32): Likewise.
19082 (__arm_vrmulhq_m_u16): Likewise.
19083 (__arm_vrshlq_m_s8): Likewise.
19084 (__arm_vrshlq_m_s32): Likewise.
19085 (__arm_vrshlq_m_s16): Likewise.
19086 (__arm_vrshlq_m_u8): Likewise.
19087 (__arm_vrshlq_m_u32): Likewise.
19088 (__arm_vrshlq_m_u16): Likewise.
19089 (__arm_vrshrq_m_n_s8): Likewise.
19090 (__arm_vrshrq_m_n_s32): Likewise.
19091 (__arm_vrshrq_m_n_s16): Likewise.
19092 (__arm_vrshrq_m_n_u8): Likewise.
19093 (__arm_vrshrq_m_n_u32): Likewise.
19094 (__arm_vrshrq_m_n_u16): Likewise.
19095 (__arm_vshlq_m_n_s8): Likewise.
19096 (__arm_vshlq_m_n_s32): Likewise.
19097 (__arm_vshlq_m_n_s16): Likewise.
19098 (__arm_vshlq_m_n_u8): Likewise.
19099 (__arm_vshlq_m_n_u32): Likewise.
19100 (__arm_vshlq_m_n_u16): Likewise.
19101 (__arm_vshrq_m_n_s8): Likewise.
19102 (__arm_vshrq_m_n_s32): Likewise.
19103 (__arm_vshrq_m_n_s16): Likewise.
19104 (__arm_vshrq_m_n_u8): Likewise.
19105 (__arm_vshrq_m_n_u32): Likewise.
19106 (__arm_vshrq_m_n_u16): Likewise.
19107 (__arm_vsliq_m_n_s8): Likewise.
19108 (__arm_vsliq_m_n_s32): Likewise.
19109 (__arm_vsliq_m_n_s16): Likewise.
19110 (__arm_vsliq_m_n_u8): Likewise.
19111 (__arm_vsliq_m_n_u32): Likewise.
19112 (__arm_vsliq_m_n_u16): Likewise.
19113 (__arm_vsubq_m_n_s8): Likewise.
19114 (__arm_vsubq_m_n_s32): Likewise.
19115 (__arm_vsubq_m_n_s16): Likewise.
19116 (__arm_vsubq_m_n_u8): Likewise.
19117 (__arm_vsubq_m_n_u32): Likewise.
19118 (__arm_vsubq_m_n_u16): Likewise.
19119 (vqdmladhq_m): Define polymorphic variant.
19120 (vqdmladhxq_m): Likewise.
19121 (vqdmlsdhq_m): Likewise.
19122 (vqdmlsdhxq_m): Likewise.
19123 (vabdq_m): Likewise.
19124 (vandq_m): Likewise.
19125 (vbicq_m): Likewise.
19126 (vbrsrq_m_n): Likewise.
19127 (vcaddq_rot270_m): Likewise.
19128 (vcaddq_rot90_m): Likewise.
19129 (veorq_m): Likewise.
19130 (vmaxq_m): Likewise.
19131 (vminq_m): Likewise.
19132 (vmladavaq_p): Likewise.
19133 (vmlaq_m_n): Likewise.
19134 (vmlasq_m_n): Likewise.
19135 (vmulhq_m): Likewise.
19136 (vmullbq_int_m): Likewise.
19137 (vmulltq_int_m): Likewise.
19138 (vornq_m): Likewise.
19139 (vorrq_m): Likewise.
19140 (vqdmlahq_m_n): Likewise.
19141 (vqrdmlahq_m_n): Likewise.
19142 (vqrdmlashq_m_n): Likewise.
19143 (vqrshlq_m): Likewise.
19144 (vqshlq_m_n): Likewise.
19145 (vqshlq_m): Likewise.
19146 (vrhaddq_m): Likewise.
19147 (vrmulhq_m): Likewise.
19148 (vrshlq_m): Likewise.
19149 (vrshrq_m_n): Likewise.
19150 (vshlq_m_n): Likewise.
19151 (vshrq_m_n): Likewise.
19152 (vsliq_m): Likewise.
19153 (vaddq_m_n): Likewise.
19154 (vaddq_m): Likewise.
19155 (vhaddq_m_n): Likewise.
19156 (vhaddq_m): Likewise.
19157 (vhcaddq_rot270_m): Likewise.
19158 (vhcaddq_rot90_m): Likewise.
19159 (vhsubq_m): Likewise.
19160 (vhsubq_m_n): Likewise.
19161 (vmulq_m_n): Likewise.
19162 (vmulq_m): Likewise.
19163 (vqaddq_m_n): Likewise.
19164 (vqaddq_m): Likewise.
19165 (vqdmulhq_m_n): Likewise.
19166 (vqdmulhq_m): Likewise.
19167 (vsubq_m_n): Likewise.
19168 (vsliq_m_n): Likewise.
19169 (vqsubq_m_n): Likewise.
19170 (vqsubq_m): Likewise.
19171 (vqrdmulhq_m): Likewise.
19172 (vqrdmulhq_m_n): Likewise.
19173 (vqrdmlsdhxq_m): Likewise.
19174 (vqrdmlsdhq_m): Likewise.
19175 (vqrdmladhq_m): Likewise.
19176 (vqrdmladhxq_m): Likewise.
19177 (vmlsdavaxq_p): Likewise.
19178 (vmlsdavaq_p): Likewise.
19179 (vmladavaxq_p): Likewise.
19180 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
19182 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
19183 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
19184 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE): Likewise.
19185 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
19186 * config/arm/mve.md (VHSUBQ_M): Define iterators.
19187 (VSLIQ_M_N): Likewise.
19188 (VQRDMLAHQ_M_N): Likewise.
19189 (VRSHLQ_M): Likewise.
19190 (VMINQ_M): Likewise.
19191 (VMULLBQ_INT_M): Likewise.
19192 (VMULHQ_M): Likewise.
19193 (VMULQ_M): Likewise.
19194 (VHSUBQ_M_N): Likewise.
19195 (VHADDQ_M_N): Likewise.
19196 (VORRQ_M): Likewise.
19197 (VRMULHQ_M): Likewise.
19198 (VQADDQ_M): Likewise.
19199 (VRSHRQ_M_N): Likewise.
19200 (VQSUBQ_M_N): Likewise.
19201 (VADDQ_M): Likewise.
19202 (VORNQ_M): Likewise.
19203 (VQDMLAHQ_M_N): Likewise.
19204 (VRHADDQ_M): Likewise.
19205 (VQSHLQ_M): Likewise.
19206 (VANDQ_M): Likewise.
19207 (VBICQ_M): Likewise.
19208 (VSHLQ_M_N): Likewise.
19209 (VCADDQ_ROT270_M): Likewise.
19210 (VQRSHLQ_M): Likewise.
19211 (VQADDQ_M_N): Likewise.
19212 (VADDQ_M_N): Likewise.
19213 (VMAXQ_M): Likewise.
19214 (VQSUBQ_M): Likewise.
19215 (VMLASQ_M_N): Likewise.
19216 (VMLADAVAQ_P): Likewise.
19217 (VBRSRQ_M_N): Likewise.
19218 (VMULQ_M_N): Likewise.
19219 (VCADDQ_ROT90_M): Likewise.
19220 (VMULLTQ_INT_M): Likewise.
19221 (VEORQ_M): Likewise.
19222 (VSHRQ_M_N): Likewise.
19223 (VSUBQ_M_N): Likewise.
19224 (VHADDQ_M): Likewise.
19225 (VABDQ_M): Likewise.
19226 (VQRDMLASHQ_M_N): Likewise.
19227 (VMLAQ_M_N): Likewise.
19228 (VQSHLQ_M_N): Likewise.
19229 (mve_vabdq_m_<supf><mode>): Define RTL pattern.
19230 (mve_vaddq_m_n_<supf><mode>): Likewise.
19231 (mve_vaddq_m_<supf><mode>): Likewise.
19232 (mve_vandq_m_<supf><mode>): Likewise.
19233 (mve_vbicq_m_<supf><mode>): Likewise.
19234 (mve_vbrsrq_m_n_<supf><mode>): Likewise.
19235 (mve_vcaddq_rot270_m_<supf><mode>): Likewise.
19236 (mve_vcaddq_rot90_m_<supf><mode>): Likewise.
19237 (mve_veorq_m_<supf><mode>): Likewise.
19238 (mve_vhaddq_m_n_<supf><mode>): Likewise.
19239 (mve_vhaddq_m_<supf><mode>): Likewise.
19240 (mve_vhsubq_m_n_<supf><mode>): Likewise.
19241 (mve_vhsubq_m_<supf><mode>): Likewise.
19242 (mve_vmaxq_m_<supf><mode>): Likewise.
19243 (mve_vminq_m_<supf><mode>): Likewise.
19244 (mve_vmladavaq_p_<supf><mode>): Likewise.
19245 (mve_vmlaq_m_n_<supf><mode>): Likewise.
19246 (mve_vmlasq_m_n_<supf><mode>): Likewise.
19247 (mve_vmulhq_m_<supf><mode>): Likewise.
19248 (mve_vmullbq_int_m_<supf><mode>): Likewise.
19249 (mve_vmulltq_int_m_<supf><mode>): Likewise.
19250 (mve_vmulq_m_n_<supf><mode>): Likewise.
19251 (mve_vmulq_m_<supf><mode>): Likewise.
19252 (mve_vornq_m_<supf><mode>): Likewise.
19253 (mve_vorrq_m_<supf><mode>): Likewise.
19254 (mve_vqaddq_m_n_<supf><mode>): Likewise.
19255 (mve_vqaddq_m_<supf><mode>): Likewise.
19256 (mve_vqdmlahq_m_n_<supf><mode>): Likewise.
19257 (mve_vqrdmlahq_m_n_<supf><mode>): Likewise.
19258 (mve_vqrdmlashq_m_n_<supf><mode>): Likewise.
19259 (mve_vqrshlq_m_<supf><mode>): Likewise.
19260 (mve_vqshlq_m_n_<supf><mode>): Likewise.
19261 (mve_vqshlq_m_<supf><mode>): Likewise.
19262 (mve_vqsubq_m_n_<supf><mode>): Likewise.
19263 (mve_vqsubq_m_<supf><mode>): Likewise.
19264 (mve_vrhaddq_m_<supf><mode>): Likewise.
19265 (mve_vrmulhq_m_<supf><mode>): Likewise.
19266 (mve_vrshlq_m_<supf><mode>): Likewise.
19267 (mve_vrshrq_m_n_<supf><mode>): Likewise.
19268 (mve_vshlq_m_n_<supf><mode>): Likewise.
19269 (mve_vshrq_m_n_<supf><mode>): Likewise.
19270 (mve_vsliq_m_n_<supf><mode>): Likewise.
19271 (mve_vsubq_m_n_<supf><mode>): Likewise.
19272 (mve_vhcaddq_rot270_m_s<mode>): Likewise.
19273 (mve_vhcaddq_rot90_m_s<mode>): Likewise.
19274 (mve_vmladavaxq_p_s<mode>): Likewise.
19275 (mve_vmlsdavaq_p_s<mode>): Likewise.
19276 (mve_vmlsdavaxq_p_s<mode>): Likewise.
19277 (mve_vqdmladhq_m_s<mode>): Likewise.
19278 (mve_vqdmladhxq_m_s<mode>): Likewise.
19279 (mve_vqdmlsdhq_m_s<mode>): Likewise.
19280 (mve_vqdmlsdhxq_m_s<mode>): Likewise.
19281 (mve_vqdmulhq_m_n_s<mode>): Likewise.
19282 (mve_vqdmulhq_m_s<mode>): Likewise.
19283 (mve_vqrdmladhq_m_s<mode>): Likewise.
19284 (mve_vqrdmladhxq_m_s<mode>): Likewise.
19285 (mve_vqrdmlsdhq_m_s<mode>): Likewise.
19286 (mve_vqrdmlsdhxq_m_s<mode>): Likewise.
19287 (mve_vqrdmulhq_m_n_s<mode>): Likewise.
19288 (mve_vqrdmulhq_m_s<mode>): Likewise.
19290 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
19291 Mihail Ionescu <mihail.ionescu@arm.com>
19292 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19294 * config/arm/arm-builtins.c (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS):
19295 Define builtin qualifier.
19296 (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
19297 (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
19298 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
19299 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
19300 (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
19301 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
19302 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
19303 * config/arm/arm_mve.h (vsriq_m_n_s8): Define macro.
19304 (vsubq_m_s8): Likewise.
19305 (vcvtq_m_n_f16_u16): Likewise.
19306 (vqshluq_m_n_s8): Likewise.
19307 (vabavq_p_s8): Likewise.
19308 (vsriq_m_n_u8): Likewise.
19309 (vshlq_m_u8): Likewise.
19310 (vsubq_m_u8): Likewise.
19311 (vabavq_p_u8): Likewise.
19312 (vshlq_m_s8): Likewise.
19313 (vcvtq_m_n_f16_s16): Likewise.
19314 (vsriq_m_n_s16): Likewise.
19315 (vsubq_m_s16): Likewise.
19316 (vcvtq_m_n_f32_u32): Likewise.
19317 (vqshluq_m_n_s16): Likewise.
19318 (vabavq_p_s16): Likewise.
19319 (vsriq_m_n_u16): Likewise.
19320 (vshlq_m_u16): Likewise.
19321 (vsubq_m_u16): Likewise.
19322 (vabavq_p_u16): Likewise.
19323 (vshlq_m_s16): Likewise.
19324 (vcvtq_m_n_f32_s32): Likewise.
19325 (vsriq_m_n_s32): Likewise.
19326 (vsubq_m_s32): Likewise.
19327 (vqshluq_m_n_s32): Likewise.
19328 (vabavq_p_s32): Likewise.
19329 (vsriq_m_n_u32): Likewise.
19330 (vshlq_m_u32): Likewise.
19331 (vsubq_m_u32): Likewise.
19332 (vabavq_p_u32): Likewise.
19333 (vshlq_m_s32): Likewise.
19334 (__arm_vsriq_m_n_s8): Define intrinsic.
19335 (__arm_vsubq_m_s8): Likewise.
19336 (__arm_vqshluq_m_n_s8): Likewise.
19337 (__arm_vabavq_p_s8): Likewise.
19338 (__arm_vsriq_m_n_u8): Likewise.
19339 (__arm_vshlq_m_u8): Likewise.
19340 (__arm_vsubq_m_u8): Likewise.
19341 (__arm_vabavq_p_u8): Likewise.
19342 (__arm_vshlq_m_s8): Likewise.
19343 (__arm_vsriq_m_n_s16): Likewise.
19344 (__arm_vsubq_m_s16): Likewise.
19345 (__arm_vqshluq_m_n_s16): Likewise.
19346 (__arm_vabavq_p_s16): Likewise.
19347 (__arm_vsriq_m_n_u16): Likewise.
19348 (__arm_vshlq_m_u16): Likewise.
19349 (__arm_vsubq_m_u16): Likewise.
19350 (__arm_vabavq_p_u16): Likewise.
19351 (__arm_vshlq_m_s16): Likewise.
19352 (__arm_vsriq_m_n_s32): Likewise.
19353 (__arm_vsubq_m_s32): Likewise.
19354 (__arm_vqshluq_m_n_s32): Likewise.
19355 (__arm_vabavq_p_s32): Likewise.
19356 (__arm_vsriq_m_n_u32): Likewise.
19357 (__arm_vshlq_m_u32): Likewise.
19358 (__arm_vsubq_m_u32): Likewise.
19359 (__arm_vabavq_p_u32): Likewise.
19360 (__arm_vshlq_m_s32): Likewise.
19361 (__arm_vcvtq_m_n_f16_u16): Likewise.
19362 (__arm_vcvtq_m_n_f16_s16): Likewise.
19363 (__arm_vcvtq_m_n_f32_u32): Likewise.
19364 (__arm_vcvtq_m_n_f32_s32): Likewise.
19365 (vcvtq_m_n): Define polymorphic variant.
19366 (vqshluq_m_n): Likewise.
19367 (vshlq_m): Likewise.
19368 (vsriq_m_n): Likewise.
19369 (vsubq_m): Likewise.
19370 (vabavq_p): Likewise.
19371 * config/arm/arm_mve_builtins.def
19372 (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS): Use builtin qualifier.
19373 (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
19374 (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
19375 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
19376 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
19377 (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
19378 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
19379 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
19380 * config/arm/mve.md (VABAVQ_P): Define iterator.
19381 (VSHLQ_M): Likewise.
19382 (VSRIQ_M_N): Likewise.
19383 (VSUBQ_M): Likewise.
19384 (VCVTQ_M_N_TO_F): Likewise.
19385 (mve_vabavq_p_<supf><mode>): Define RTL pattern.
19386 (mve_vqshluq_m_n_s<mode>): Likewise.
19387 (mve_vshlq_m_<supf><mode>): Likewise.
19388 (mve_vsriq_m_n_<supf><mode>): Likewise.
19389 (mve_vsubq_m_<supf><mode>): Likewise.
19390 (mve_vcvtq_m_n_to_f_<supf><mode>): Likewise.
19392 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
19393 Mihail Ionescu <mihail.ionescu@arm.com>
19394 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19396 * config/arm/arm_mve.h (vrmlaldavhaxq_s32): Define macro.
19397 (vrmlsldavhaq_s32): Likewise.
19398 (vrmlsldavhaxq_s32): Likewise.
19399 (vaddlvaq_p_s32): Likewise.
19400 (vcvtbq_m_f16_f32): Likewise.
19401 (vcvtbq_m_f32_f16): Likewise.
19402 (vcvttq_m_f16_f32): Likewise.
19403 (vcvttq_m_f32_f16): Likewise.
19404 (vrev16q_m_s8): Likewise.
19405 (vrev32q_m_f16): Likewise.
19406 (vrmlaldavhq_p_s32): Likewise.
19407 (vrmlaldavhxq_p_s32): Likewise.
19408 (vrmlsldavhq_p_s32): Likewise.
19409 (vrmlsldavhxq_p_s32): Likewise.
19410 (vaddlvaq_p_u32): Likewise.
19411 (vrev16q_m_u8): Likewise.
19412 (vrmlaldavhq_p_u32): Likewise.
19413 (vmvnq_m_n_s16): Likewise.
19414 (vorrq_m_n_s16): Likewise.
19415 (vqrshrntq_n_s16): Likewise.
19416 (vqshrnbq_n_s16): Likewise.
19417 (vqshrntq_n_s16): Likewise.
19418 (vrshrnbq_n_s16): Likewise.
19419 (vrshrntq_n_s16): Likewise.
19420 (vshrnbq_n_s16): Likewise.
19421 (vshrntq_n_s16): Likewise.
19422 (vcmlaq_f16): Likewise.
19423 (vcmlaq_rot180_f16): Likewise.
19424 (vcmlaq_rot270_f16): Likewise.
19425 (vcmlaq_rot90_f16): Likewise.
19426 (vfmaq_f16): Likewise.
19427 (vfmaq_n_f16): Likewise.
19428 (vfmasq_n_f16): Likewise.
19429 (vfmsq_f16): Likewise.
19430 (vmlaldavaq_s16): Likewise.
19431 (vmlaldavaxq_s16): Likewise.
19432 (vmlsldavaq_s16): Likewise.
19433 (vmlsldavaxq_s16): Likewise.
19434 (vabsq_m_f16): Likewise.
19435 (vcvtmq_m_s16_f16): Likewise.
19436 (vcvtnq_m_s16_f16): Likewise.
19437 (vcvtpq_m_s16_f16): Likewise.
19438 (vcvtq_m_s16_f16): Likewise.
19439 (vdupq_m_n_f16): Likewise.
19440 (vmaxnmaq_m_f16): Likewise.
19441 (vmaxnmavq_p_f16): Likewise.
19442 (vmaxnmvq_p_f16): Likewise.
19443 (vminnmaq_m_f16): Likewise.
19444 (vminnmavq_p_f16): Likewise.
19445 (vminnmvq_p_f16): Likewise.
19446 (vmlaldavq_p_s16): Likewise.
19447 (vmlaldavxq_p_s16): Likewise.
19448 (vmlsldavq_p_s16): Likewise.
19449 (vmlsldavxq_p_s16): Likewise.
19450 (vmovlbq_m_s8): Likewise.
19451 (vmovltq_m_s8): Likewise.
19452 (vmovnbq_m_s16): Likewise.
19453 (vmovntq_m_s16): Likewise.
19454 (vnegq_m_f16): Likewise.
19455 (vpselq_f16): Likewise.
19456 (vqmovnbq_m_s16): Likewise.
19457 (vqmovntq_m_s16): Likewise.
19458 (vrev32q_m_s8): Likewise.
19459 (vrev64q_m_f16): Likewise.
19460 (vrndaq_m_f16): Likewise.
19461 (vrndmq_m_f16): Likewise.
19462 (vrndnq_m_f16): Likewise.
19463 (vrndpq_m_f16): Likewise.
19464 (vrndq_m_f16): Likewise.
19465 (vrndxq_m_f16): Likewise.
19466 (vcmpeqq_m_n_f16): Likewise.
19467 (vcmpgeq_m_f16): Likewise.
19468 (vcmpgeq_m_n_f16): Likewise.
19469 (vcmpgtq_m_f16): Likewise.
19470 (vcmpgtq_m_n_f16): Likewise.
19471 (vcmpleq_m_f16): Likewise.
19472 (vcmpleq_m_n_f16): Likewise.
19473 (vcmpltq_m_f16): Likewise.
19474 (vcmpltq_m_n_f16): Likewise.
19475 (vcmpneq_m_f16): Likewise.
19476 (vcmpneq_m_n_f16): Likewise.
19477 (vmvnq_m_n_u16): Likewise.
19478 (vorrq_m_n_u16): Likewise.
19479 (vqrshruntq_n_s16): Likewise.
19480 (vqshrunbq_n_s16): Likewise.
19481 (vqshruntq_n_s16): Likewise.
19482 (vcvtmq_m_u16_f16): Likewise.
19483 (vcvtnq_m_u16_f16): Likewise.
19484 (vcvtpq_m_u16_f16): Likewise.
19485 (vcvtq_m_u16_f16): Likewise.
19486 (vqmovunbq_m_s16): Likewise.
19487 (vqmovuntq_m_s16): Likewise.
19488 (vqrshrntq_n_u16): Likewise.
19489 (vqshrnbq_n_u16): Likewise.
19490 (vqshrntq_n_u16): Likewise.
19491 (vrshrnbq_n_u16): Likewise.
19492 (vrshrntq_n_u16): Likewise.
19493 (vshrnbq_n_u16): Likewise.
19494 (vshrntq_n_u16): Likewise.
19495 (vmlaldavaq_u16): Likewise.
19496 (vmlaldavaxq_u16): Likewise.
19497 (vmlaldavq_p_u16): Likewise.
19498 (vmlaldavxq_p_u16): Likewise.
19499 (vmovlbq_m_u8): Likewise.
19500 (vmovltq_m_u8): Likewise.
19501 (vmovnbq_m_u16): Likewise.
19502 (vmovntq_m_u16): Likewise.
19503 (vqmovnbq_m_u16): Likewise.
19504 (vqmovntq_m_u16): Likewise.
19505 (vrev32q_m_u8): Likewise.
19506 (vmvnq_m_n_s32): Likewise.
19507 (vorrq_m_n_s32): Likewise.
19508 (vqrshrntq_n_s32): Likewise.
19509 (vqshrnbq_n_s32): Likewise.
19510 (vqshrntq_n_s32): Likewise.
19511 (vrshrnbq_n_s32): Likewise.
19512 (vrshrntq_n_s32): Likewise.
19513 (vshrnbq_n_s32): Likewise.
19514 (vshrntq_n_s32): Likewise.
19515 (vcmlaq_f32): Likewise.
19516 (vcmlaq_rot180_f32): Likewise.
19517 (vcmlaq_rot270_f32): Likewise.
19518 (vcmlaq_rot90_f32): Likewise.
19519 (vfmaq_f32): Likewise.
19520 (vfmaq_n_f32): Likewise.
19521 (vfmasq_n_f32): Likewise.
19522 (vfmsq_f32): Likewise.
19523 (vmlaldavaq_s32): Likewise.
19524 (vmlaldavaxq_s32): Likewise.
19525 (vmlsldavaq_s32): Likewise.
19526 (vmlsldavaxq_s32): Likewise.
19527 (vabsq_m_f32): Likewise.
19528 (vcvtmq_m_s32_f32): Likewise.
19529 (vcvtnq_m_s32_f32): Likewise.
19530 (vcvtpq_m_s32_f32): Likewise.
19531 (vcvtq_m_s32_f32): Likewise.
19532 (vdupq_m_n_f32): Likewise.
19533 (vmaxnmaq_m_f32): Likewise.
19534 (vmaxnmavq_p_f32): Likewise.
19535 (vmaxnmvq_p_f32): Likewise.
19536 (vminnmaq_m_f32): Likewise.
19537 (vminnmavq_p_f32): Likewise.
19538 (vminnmvq_p_f32): Likewise.
19539 (vmlaldavq_p_s32): Likewise.
19540 (vmlaldavxq_p_s32): Likewise.
19541 (vmlsldavq_p_s32): Likewise.
19542 (vmlsldavxq_p_s32): Likewise.
19543 (vmovlbq_m_s16): Likewise.
19544 (vmovltq_m_s16): Likewise.
19545 (vmovnbq_m_s32): Likewise.
19546 (vmovntq_m_s32): Likewise.
19547 (vnegq_m_f32): Likewise.
19548 (vpselq_f32): Likewise.
19549 (vqmovnbq_m_s32): Likewise.
19550 (vqmovntq_m_s32): Likewise.
19551 (vrev32q_m_s16): Likewise.
19552 (vrev64q_m_f32): Likewise.
19553 (vrndaq_m_f32): Likewise.
19554 (vrndmq_m_f32): Likewise.
19555 (vrndnq_m_f32): Likewise.
19556 (vrndpq_m_f32): Likewise.
19557 (vrndq_m_f32): Likewise.
19558 (vrndxq_m_f32): Likewise.
19559 (vcmpeqq_m_n_f32): Likewise.
19560 (vcmpgeq_m_f32): Likewise.
19561 (vcmpgeq_m_n_f32): Likewise.
19562 (vcmpgtq_m_f32): Likewise.
19563 (vcmpgtq_m_n_f32): Likewise.
19564 (vcmpleq_m_f32): Likewise.
19565 (vcmpleq_m_n_f32): Likewise.
19566 (vcmpltq_m_f32): Likewise.
19567 (vcmpltq_m_n_f32): Likewise.
19568 (vcmpneq_m_f32): Likewise.
19569 (vcmpneq_m_n_f32): Likewise.
19570 (vmvnq_m_n_u32): Likewise.
19571 (vorrq_m_n_u32): Likewise.
19572 (vqrshruntq_n_s32): Likewise.
19573 (vqshrunbq_n_s32): Likewise.
19574 (vqshruntq_n_s32): Likewise.
19575 (vcvtmq_m_u32_f32): Likewise.
19576 (vcvtnq_m_u32_f32): Likewise.
19577 (vcvtpq_m_u32_f32): Likewise.
19578 (vcvtq_m_u32_f32): Likewise.
19579 (vqmovunbq_m_s32): Likewise.
19580 (vqmovuntq_m_s32): Likewise.
19581 (vqrshrntq_n_u32): Likewise.
19582 (vqshrnbq_n_u32): Likewise.
19583 (vqshrntq_n_u32): Likewise.
19584 (vrshrnbq_n_u32): Likewise.
19585 (vrshrntq_n_u32): Likewise.
19586 (vshrnbq_n_u32): Likewise.
19587 (vshrntq_n_u32): Likewise.
19588 (vmlaldavaq_u32): Likewise.
19589 (vmlaldavaxq_u32): Likewise.
19590 (vmlaldavq_p_u32): Likewise.
19591 (vmlaldavxq_p_u32): Likewise.
19592 (vmovlbq_m_u16): Likewise.
19593 (vmovltq_m_u16): Likewise.
19594 (vmovnbq_m_u32): Likewise.
19595 (vmovntq_m_u32): Likewise.
19596 (vqmovnbq_m_u32): Likewise.
19597 (vqmovntq_m_u32): Likewise.
19598 (vrev32q_m_u16): Likewise.
19599 (__arm_vrmlaldavhaxq_s32): Define intrinsic.
19600 (__arm_vrmlsldavhaq_s32): Likewise.
19601 (__arm_vrmlsldavhaxq_s32): Likewise.
19602 (__arm_vaddlvaq_p_s32): Likewise.
19603 (__arm_vrev16q_m_s8): Likewise.
19604 (__arm_vrmlaldavhq_p_s32): Likewise.
19605 (__arm_vrmlaldavhxq_p_s32): Likewise.
19606 (__arm_vrmlsldavhq_p_s32): Likewise.
19607 (__arm_vrmlsldavhxq_p_s32): Likewise.
19608 (__arm_vaddlvaq_p_u32): Likewise.
19609 (__arm_vrev16q_m_u8): Likewise.
19610 (__arm_vrmlaldavhq_p_u32): Likewise.
19611 (__arm_vmvnq_m_n_s16): Likewise.
19612 (__arm_vorrq_m_n_s16): Likewise.
19613 (__arm_vqrshrntq_n_s16): Likewise.
19614 (__arm_vqshrnbq_n_s16): Likewise.
19615 (__arm_vqshrntq_n_s16): Likewise.
19616 (__arm_vrshrnbq_n_s16): Likewise.
19617 (__arm_vrshrntq_n_s16): Likewise.
19618 (__arm_vshrnbq_n_s16): Likewise.
19619 (__arm_vshrntq_n_s16): Likewise.
19620 (__arm_vmlaldavaq_s16): Likewise.
19621 (__arm_vmlaldavaxq_s16): Likewise.
19622 (__arm_vmlsldavaq_s16): Likewise.
19623 (__arm_vmlsldavaxq_s16): Likewise.
19624 (__arm_vmlaldavq_p_s16): Likewise.
19625 (__arm_vmlaldavxq_p_s16): Likewise.
19626 (__arm_vmlsldavq_p_s16): Likewise.
19627 (__arm_vmlsldavxq_p_s16): Likewise.
19628 (__arm_vmovlbq_m_s8): Likewise.
19629 (__arm_vmovltq_m_s8): Likewise.
19630 (__arm_vmovnbq_m_s16): Likewise.
19631 (__arm_vmovntq_m_s16): Likewise.
19632 (__arm_vqmovnbq_m_s16): Likewise.
19633 (__arm_vqmovntq_m_s16): Likewise.
19634 (__arm_vrev32q_m_s8): Likewise.
19635 (__arm_vmvnq_m_n_u16): Likewise.
19636 (__arm_vorrq_m_n_u16): Likewise.
19637 (__arm_vqrshruntq_n_s16): Likewise.
19638 (__arm_vqshrunbq_n_s16): Likewise.
19639 (__arm_vqshruntq_n_s16): Likewise.
19640 (__arm_vqmovunbq_m_s16): Likewise.
19641 (__arm_vqmovuntq_m_s16): Likewise.
19642 (__arm_vqrshrntq_n_u16): Likewise.
19643 (__arm_vqshrnbq_n_u16): Likewise.
19644 (__arm_vqshrntq_n_u16): Likewise.
19645 (__arm_vrshrnbq_n_u16): Likewise.
19646 (__arm_vrshrntq_n_u16): Likewise.
19647 (__arm_vshrnbq_n_u16): Likewise.
19648 (__arm_vshrntq_n_u16): Likewise.
19649 (__arm_vmlaldavaq_u16): Likewise.
19650 (__arm_vmlaldavaxq_u16): Likewise.
19651 (__arm_vmlaldavq_p_u16): Likewise.
19652 (__arm_vmlaldavxq_p_u16): Likewise.
19653 (__arm_vmovlbq_m_u8): Likewise.
19654 (__arm_vmovltq_m_u8): Likewise.
19655 (__arm_vmovnbq_m_u16): Likewise.
19656 (__arm_vmovntq_m_u16): Likewise.
19657 (__arm_vqmovnbq_m_u16): Likewise.
19658 (__arm_vqmovntq_m_u16): Likewise.
19659 (__arm_vrev32q_m_u8): Likewise.
19660 (__arm_vmvnq_m_n_s32): Likewise.
19661 (__arm_vorrq_m_n_s32): Likewise.
19662 (__arm_vqrshrntq_n_s32): Likewise.
19663 (__arm_vqshrnbq_n_s32): Likewise.
19664 (__arm_vqshrntq_n_s32): Likewise.
19665 (__arm_vrshrnbq_n_s32): Likewise.
19666 (__arm_vrshrntq_n_s32): Likewise.
19667 (__arm_vshrnbq_n_s32): Likewise.
19668 (__arm_vshrntq_n_s32): Likewise.
19669 (__arm_vmlaldavaq_s32): Likewise.
19670 (__arm_vmlaldavaxq_s32): Likewise.
19671 (__arm_vmlsldavaq_s32): Likewise.
19672 (__arm_vmlsldavaxq_s32): Likewise.
19673 (__arm_vmlaldavq_p_s32): Likewise.
19674 (__arm_vmlaldavxq_p_s32): Likewise.
19675 (__arm_vmlsldavq_p_s32): Likewise.
19676 (__arm_vmlsldavxq_p_s32): Likewise.
19677 (__arm_vmovlbq_m_s16): Likewise.
19678 (__arm_vmovltq_m_s16): Likewise.
19679 (__arm_vmovnbq_m_s32): Likewise.
19680 (__arm_vmovntq_m_s32): Likewise.
19681 (__arm_vqmovnbq_m_s32): Likewise.
19682 (__arm_vqmovntq_m_s32): Likewise.
19683 (__arm_vrev32q_m_s16): Likewise.
19684 (__arm_vmvnq_m_n_u32): Likewise.
19685 (__arm_vorrq_m_n_u32): Likewise.
19686 (__arm_vqrshruntq_n_s32): Likewise.
19687 (__arm_vqshrunbq_n_s32): Likewise.
19688 (__arm_vqshruntq_n_s32): Likewise.
19689 (__arm_vqmovunbq_m_s32): Likewise.
19690 (__arm_vqmovuntq_m_s32): Likewise.
19691 (__arm_vqrshrntq_n_u32): Likewise.
19692 (__arm_vqshrnbq_n_u32): Likewise.
19693 (__arm_vqshrntq_n_u32): Likewise.
19694 (__arm_vrshrnbq_n_u32): Likewise.
19695 (__arm_vrshrntq_n_u32): Likewise.
19696 (__arm_vshrnbq_n_u32): Likewise.
19697 (__arm_vshrntq_n_u32): Likewise.
19698 (__arm_vmlaldavaq_u32): Likewise.
19699 (__arm_vmlaldavaxq_u32): Likewise.
19700 (__arm_vmlaldavq_p_u32): Likewise.
19701 (__arm_vmlaldavxq_p_u32): Likewise.
19702 (__arm_vmovlbq_m_u16): Likewise.
19703 (__arm_vmovltq_m_u16): Likewise.
19704 (__arm_vmovnbq_m_u32): Likewise.
19705 (__arm_vmovntq_m_u32): Likewise.
19706 (__arm_vqmovnbq_m_u32): Likewise.
19707 (__arm_vqmovntq_m_u32): Likewise.
19708 (__arm_vrev32q_m_u16): Likewise.
19709 (__arm_vcvtbq_m_f16_f32): Likewise.
19710 (__arm_vcvtbq_m_f32_f16): Likewise.
19711 (__arm_vcvttq_m_f16_f32): Likewise.
19712 (__arm_vcvttq_m_f32_f16): Likewise.
19713 (__arm_vrev32q_m_f16): Likewise.
19714 (__arm_vcmlaq_f16): Likewise.
19715 (__arm_vcmlaq_rot180_f16): Likewise.
19716 (__arm_vcmlaq_rot270_f16): Likewise.
19717 (__arm_vcmlaq_rot90_f16): Likewise.
19718 (__arm_vfmaq_f16): Likewise.
19719 (__arm_vfmaq_n_f16): Likewise.
19720 (__arm_vfmasq_n_f16): Likewise.
19721 (__arm_vfmsq_f16): Likewise.
19722 (__arm_vabsq_m_f16): Likewise.
19723 (__arm_vcvtmq_m_s16_f16): Likewise.
19724 (__arm_vcvtnq_m_s16_f16): Likewise.
19725 (__arm_vcvtpq_m_s16_f16): Likewise.
19726 (__arm_vcvtq_m_s16_f16): Likewise.
19727 (__arm_vdupq_m_n_f16): Likewise.
19728 (__arm_vmaxnmaq_m_f16): Likewise.
19729 (__arm_vmaxnmavq_p_f16): Likewise.
19730 (__arm_vmaxnmvq_p_f16): Likewise.
19731 (__arm_vminnmaq_m_f16): Likewise.
19732 (__arm_vminnmavq_p_f16): Likewise.
19733 (__arm_vminnmvq_p_f16): Likewise.
19734 (__arm_vnegq_m_f16): Likewise.
19735 (__arm_vpselq_f16): Likewise.
19736 (__arm_vrev64q_m_f16): Likewise.
19737 (__arm_vrndaq_m_f16): Likewise.
19738 (__arm_vrndmq_m_f16): Likewise.
19739 (__arm_vrndnq_m_f16): Likewise.
19740 (__arm_vrndpq_m_f16): Likewise.
19741 (__arm_vrndq_m_f16): Likewise.
19742 (__arm_vrndxq_m_f16): Likewise.
19743 (__arm_vcmpeqq_m_n_f16): Likewise.
19744 (__arm_vcmpgeq_m_f16): Likewise.
19745 (__arm_vcmpgeq_m_n_f16): Likewise.
19746 (__arm_vcmpgtq_m_f16): Likewise.
19747 (__arm_vcmpgtq_m_n_f16): Likewise.
19748 (__arm_vcmpleq_m_f16): Likewise.
19749 (__arm_vcmpleq_m_n_f16): Likewise.
19750 (__arm_vcmpltq_m_f16): Likewise.
19751 (__arm_vcmpltq_m_n_f16): Likewise.
19752 (__arm_vcmpneq_m_f16): Likewise.
19753 (__arm_vcmpneq_m_n_f16): Likewise.
19754 (__arm_vcvtmq_m_u16_f16): Likewise.
19755 (__arm_vcvtnq_m_u16_f16): Likewise.
19756 (__arm_vcvtpq_m_u16_f16): Likewise.
19757 (__arm_vcvtq_m_u16_f16): Likewise.
19758 (__arm_vcmlaq_f32): Likewise.
19759 (__arm_vcmlaq_rot180_f32): Likewise.
19760 (__arm_vcmlaq_rot270_f32): Likewise.
19761 (__arm_vcmlaq_rot90_f32): Likewise.
19762 (__arm_vfmaq_f32): Likewise.
19763 (__arm_vfmaq_n_f32): Likewise.
19764 (__arm_vfmasq_n_f32): Likewise.
19765 (__arm_vfmsq_f32): Likewise.
19766 (__arm_vabsq_m_f32): Likewise.
19767 (__arm_vcvtmq_m_s32_f32): Likewise.
19768 (__arm_vcvtnq_m_s32_f32): Likewise.
19769 (__arm_vcvtpq_m_s32_f32): Likewise.
19770 (__arm_vcvtq_m_s32_f32): Likewise.
19771 (__arm_vdupq_m_n_f32): Likewise.
19772 (__arm_vmaxnmaq_m_f32): Likewise.
19773 (__arm_vmaxnmavq_p_f32): Likewise.
19774 (__arm_vmaxnmvq_p_f32): Likewise.
19775 (__arm_vminnmaq_m_f32): Likewise.
19776 (__arm_vminnmavq_p_f32): Likewise.
19777 (__arm_vminnmvq_p_f32): Likewise.
19778 (__arm_vnegq_m_f32): Likewise.
19779 (__arm_vpselq_f32): Likewise.
19780 (__arm_vrev64q_m_f32): Likewise.
19781 (__arm_vrndaq_m_f32): Likewise.
19782 (__arm_vrndmq_m_f32): Likewise.
19783 (__arm_vrndnq_m_f32): Likewise.
19784 (__arm_vrndpq_m_f32): Likewise.
19785 (__arm_vrndq_m_f32): Likewise.
19786 (__arm_vrndxq_m_f32): Likewise.
19787 (__arm_vcmpeqq_m_n_f32): Likewise.
19788 (__arm_vcmpgeq_m_f32): Likewise.
19789 (__arm_vcmpgeq_m_n_f32): Likewise.
19790 (__arm_vcmpgtq_m_f32): Likewise.
19791 (__arm_vcmpgtq_m_n_f32): Likewise.
19792 (__arm_vcmpleq_m_f32): Likewise.
19793 (__arm_vcmpleq_m_n_f32): Likewise.
19794 (__arm_vcmpltq_m_f32): Likewise.
19795 (__arm_vcmpltq_m_n_f32): Likewise.
19796 (__arm_vcmpneq_m_f32): Likewise.
19797 (__arm_vcmpneq_m_n_f32): Likewise.
19798 (__arm_vcvtmq_m_u32_f32): Likewise.
19799 (__arm_vcvtnq_m_u32_f32): Likewise.
19800 (__arm_vcvtpq_m_u32_f32): Likewise.
19801 (__arm_vcvtq_m_u32_f32): Likewise.
19802 (vcvtq_m): Define polymorphic variant.
19803 (vabsq_m): Likewise.
19804 (vcmlaq): Likewise.
19805 (vcmlaq_rot180): Likewise.
19806 (vcmlaq_rot270): Likewise.
19807 (vcmlaq_rot90): Likewise.
19808 (vcmpeqq_m_n): Likewise.
19809 (vcmpgeq_m_n): Likewise.
19810 (vrndxq_m): Likewise.
19811 (vrndq_m): Likewise.
19812 (vrndpq_m): Likewise.
19813 (vcmpgtq_m_n): Likewise.
19814 (vcmpgtq_m): Likewise.
19815 (vcmpleq_m): Likewise.
19816 (vcmpleq_m_n): Likewise.
19817 (vcmpltq_m_n): Likewise.
19818 (vcmpltq_m): Likewise.
19819 (vcmpneq_m): Likewise.
19820 (vcmpneq_m_n): Likewise.
19821 (vcvtbq_m): Likewise.
19822 (vcvttq_m): Likewise.
19823 (vcvtmq_m): Likewise.
19824 (vcvtnq_m): Likewise.
19825 (vcvtpq_m): Likewise.
19826 (vdupq_m_n): Likewise.
19827 (vfmaq_n): Likewise.
19829 (vfmasq_n): Likewise.
19831 (vmaxnmaq_m): Likewise.
19832 (vmaxnmavq_m): Likewise.
19833 (vmaxnmvq_m): Likewise.
19834 (vmaxnmavq_p): Likewise.
19835 (vmaxnmvq_p): Likewise.
19836 (vminnmaq_m): Likewise.
19837 (vminnmavq_p): Likewise.
19838 (vminnmvq_p): Likewise.
19839 (vrndnq_m): Likewise.
19840 (vrndaq_m): Likewise.
19841 (vrndmq_m): Likewise.
19842 (vrev64q_m): Likewise.
19843 (vrev32q_m): Likewise.
19844 (vpselq): Likewise.
19845 (vnegq_m): Likewise.
19846 (vcmpgeq_m): Likewise.
19847 (vshrntq_n): Likewise.
19848 (vrshrntq_n): Likewise.
19849 (vmovlbq_m): Likewise.
19850 (vmovnbq_m): Likewise.
19851 (vmovntq_m): Likewise.
19852 (vmvnq_m_n): Likewise.
19853 (vmvnq_m): Likewise.
19854 (vshrnbq_n): Likewise.
19855 (vrshrnbq_n): Likewise.
19856 (vqshruntq_n): Likewise.
19857 (vrev16q_m): Likewise.
19858 (vqshrunbq_n): Likewise.
19859 (vqshrntq_n): Likewise.
19860 (vqrshruntq_n): Likewise.
19861 (vqrshrntq_n): Likewise.
19862 (vqshrnbq_n): Likewise.
19863 (vqmovuntq_m): Likewise.
19864 (vqmovntq_m): Likewise.
19865 (vqmovnbq_m): Likewise.
19866 (vorrq_m_n): Likewise.
19867 (vmovltq_m): Likewise.
19868 (vqmovunbq_m): Likewise.
19869 (vaddlvaq_p): Likewise.
19870 (vmlaldavaq): Likewise.
19871 (vmlaldavaxq): Likewise.
19872 (vmlaldavq_p): Likewise.
19873 (vmlaldavxq_p): Likewise.
19874 (vmlsldavaq): Likewise.
19875 (vmlsldavaxq): Likewise.
19876 (vmlsldavq_p): Likewise.
19877 (vmlsldavxq_p): Likewise.
19878 (vrmlaldavhaxq): Likewise.
19879 (vrmlaldavhq_p): Likewise.
19880 (vrmlaldavhxq_p): Likewise.
19881 (vrmlsldavhaq): Likewise.
19882 (vrmlsldavhaxq): Likewise.
19883 (vrmlsldavhq_p): Likewise.
19884 (vrmlsldavhxq_p): Likewise.
19885 * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_IMM_UNONE): Use
19887 (TERNOP_NONE_NONE_NONE_IMM): Likewise.
19888 (TERNOP_NONE_NONE_NONE_NONE): Likewise.
19889 (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
19890 (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
19891 (TERNOP_UNONE_UNONE_IMM_UNONE): Likewise.
19892 (TERNOP_UNONE_UNONE_NONE_IMM): Likewise.
19893 (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
19894 (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
19895 (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
19896 * config/arm/mve.md (MVE_constraint3): Define mode attribute iterator.
19897 (MVE_pred3): Likewise.
19898 (MVE_constraint1): Likewise.
19899 (MVE_pred1): Likewise.
19900 (VMLALDAVQ_P): Define iterator.
19901 (VQMOVNBQ_M): Likewise.
19902 (VMOVLTQ_M): Likewise.
19903 (VMOVNBQ_M): Likewise.
19904 (VRSHRNTQ_N): Likewise.
19905 (VORRQ_M_N): Likewise.
19906 (VREV32Q_M): Likewise.
19907 (VREV16Q_M): Likewise.
19908 (VQRSHRNTQ_N): Likewise.
19909 (VMOVNTQ_M): Likewise.
19910 (VMOVLBQ_M): Likewise.
19911 (VMLALDAVAQ): Likewise.
19912 (VQSHRNBQ_N): Likewise.
19913 (VSHRNBQ_N): Likewise.
19914 (VRSHRNBQ_N): Likewise.
19915 (VMLALDAVXQ_P): Likewise.
19916 (VQMOVNTQ_M): Likewise.
19917 (VMVNQ_M_N): Likewise.
19918 (VQSHRNTQ_N): Likewise.
19919 (VMLALDAVAXQ): Likewise.
19920 (VSHRNTQ_N): Likewise.
19921 (VCVTMQ_M): Likewise.
19922 (VCVTNQ_M): Likewise.
19923 (VCVTPQ_M): Likewise.
19924 (VCVTQ_M_N_FROM_F): Likewise.
19925 (VCVTQ_M_FROM_F): Likewise.
19926 (VRMLALDAVHQ_P): Likewise.
19927 (VADDLVAQ_P): Likewise.
19928 (mve_vrndq_m_f<mode>): Define RTL pattern.
19929 (mve_vabsq_m_f<mode>): Likewise.
19930 (mve_vaddlvaq_p_<supf>v4si): Likewise.
19931 (mve_vcmlaq_f<mode>): Likewise.
19932 (mve_vcmlaq_rot180_f<mode>): Likewise.
19933 (mve_vcmlaq_rot270_f<mode>): Likewise.
19934 (mve_vcmlaq_rot90_f<mode>): Likewise.
19935 (mve_vcmpeqq_m_n_f<mode>): Likewise.
19936 (mve_vcmpgeq_m_f<mode>): Likewise.
19937 (mve_vcmpgeq_m_n_f<mode>): Likewise.
19938 (mve_vcmpgtq_m_f<mode>): Likewise.
19939 (mve_vcmpgtq_m_n_f<mode>): Likewise.
19940 (mve_vcmpleq_m_f<mode>): Likewise.
19941 (mve_vcmpleq_m_n_f<mode>): Likewise.
19942 (mve_vcmpltq_m_f<mode>): Likewise.
19943 (mve_vcmpltq_m_n_f<mode>): Likewise.
19944 (mve_vcmpneq_m_f<mode>): Likewise.
19945 (mve_vcmpneq_m_n_f<mode>): Likewise.
19946 (mve_vcvtbq_m_f16_f32v8hf): Likewise.
19947 (mve_vcvtbq_m_f32_f16v4sf): Likewise.
19948 (mve_vcvttq_m_f16_f32v8hf): Likewise.
19949 (mve_vcvttq_m_f32_f16v4sf): Likewise.
19950 (mve_vdupq_m_n_f<mode>): Likewise.
19951 (mve_vfmaq_f<mode>): Likewise.
19952 (mve_vfmaq_n_f<mode>): Likewise.
19953 (mve_vfmasq_n_f<mode>): Likewise.
19954 (mve_vfmsq_f<mode>): Likewise.
19955 (mve_vmaxnmaq_m_f<mode>): Likewise.
19956 (mve_vmaxnmavq_p_f<mode>): Likewise.
19957 (mve_vmaxnmvq_p_f<mode>): Likewise.
19958 (mve_vminnmaq_m_f<mode>): Likewise.
19959 (mve_vminnmavq_p_f<mode>): Likewise.
19960 (mve_vminnmvq_p_f<mode>): Likewise.
19961 (mve_vmlaldavaq_<supf><mode>): Likewise.
19962 (mve_vmlaldavaxq_<supf><mode>): Likewise.
19963 (mve_vmlaldavq_p_<supf><mode>): Likewise.
19964 (mve_vmlaldavxq_p_<supf><mode>): Likewise.
19965 (mve_vmlsldavaq_s<mode>): Likewise.
19966 (mve_vmlsldavaxq_s<mode>): Likewise.
19967 (mve_vmlsldavq_p_s<mode>): Likewise.
19968 (mve_vmlsldavxq_p_s<mode>): Likewise.
19969 (mve_vmovlbq_m_<supf><mode>): Likewise.
19970 (mve_vmovltq_m_<supf><mode>): Likewise.
19971 (mve_vmovnbq_m_<supf><mode>): Likewise.
19972 (mve_vmovntq_m_<supf><mode>): Likewise.
19973 (mve_vmvnq_m_n_<supf><mode>): Likewise.
19974 (mve_vnegq_m_f<mode>): Likewise.
19975 (mve_vorrq_m_n_<supf><mode>): Likewise.
19976 (mve_vpselq_f<mode>): Likewise.
19977 (mve_vqmovnbq_m_<supf><mode>): Likewise.
19978 (mve_vqmovntq_m_<supf><mode>): Likewise.
19979 (mve_vqmovunbq_m_s<mode>): Likewise.
19980 (mve_vqmovuntq_m_s<mode>): Likewise.
19981 (mve_vqrshrntq_n_<supf><mode>): Likewise.
19982 (mve_vqrshruntq_n_s<mode>): Likewise.
19983 (mve_vqshrnbq_n_<supf><mode>): Likewise.
19984 (mve_vqshrntq_n_<supf><mode>): Likewise.
19985 (mve_vqshrunbq_n_s<mode>): Likewise.
19986 (mve_vqshruntq_n_s<mode>): Likewise.
19987 (mve_vrev32q_m_fv8hf): Likewise.
19988 (mve_vrev32q_m_<supf><mode>): Likewise.
19989 (mve_vrev64q_m_f<mode>): Likewise.
19990 (mve_vrmlaldavhaxq_sv4si): Likewise.
19991 (mve_vrmlaldavhxq_p_sv4si): Likewise.
19992 (mve_vrmlsldavhaxq_sv4si): Likewise.
19993 (mve_vrmlsldavhq_p_sv4si): Likewise.
19994 (mve_vrmlsldavhxq_p_sv4si): Likewise.
19995 (mve_vrndaq_m_f<mode>): Likewise.
19996 (mve_vrndmq_m_f<mode>): Likewise.
19997 (mve_vrndnq_m_f<mode>): Likewise.
19998 (mve_vrndpq_m_f<mode>): Likewise.
19999 (mve_vrndxq_m_f<mode>): Likewise.
20000 (mve_vrshrnbq_n_<supf><mode>): Likewise.
20001 (mve_vrshrntq_n_<supf><mode>): Likewise.
20002 (mve_vshrnbq_n_<supf><mode>): Likewise.
20003 (mve_vshrntq_n_<supf><mode>): Likewise.
20004 (mve_vcvtmq_m_<supf><mode>): Likewise.
20005 (mve_vcvtpq_m_<supf><mode>): Likewise.
20006 (mve_vcvtnq_m_<supf><mode>): Likewise.
20007 (mve_vcvtq_m_n_from_f_<supf><mode>): Likewise.
20008 (mve_vrev16q_m_<supf>v16qi): Likewise.
20009 (mve_vcvtq_m_from_f_<supf><mode>): Likewise.
20010 (mve_vrmlaldavhq_p_<supf>v4si): Likewise.
20011 (mve_vrmlsldavhaq_sv4si): Likewise.
20013 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
20014 Mihail Ionescu <mihail.ionescu@arm.com>
20015 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20017 * config/arm/arm_mve.h (vpselq_u8): Define macro.
20018 (vpselq_s8): Likewise.
20019 (vrev64q_m_u8): Likewise.
20020 (vqrdmlashq_n_u8): Likewise.
20021 (vqrdmlahq_n_u8): Likewise.
20022 (vqdmlahq_n_u8): Likewise.
20023 (vmvnq_m_u8): Likewise.
20024 (vmlasq_n_u8): Likewise.
20025 (vmlaq_n_u8): Likewise.
20026 (vmladavq_p_u8): Likewise.
20027 (vmladavaq_u8): Likewise.
20028 (vminvq_p_u8): Likewise.
20029 (vmaxvq_p_u8): Likewise.
20030 (vdupq_m_n_u8): Likewise.
20031 (vcmpneq_m_u8): Likewise.
20032 (vcmpneq_m_n_u8): Likewise.
20033 (vcmphiq_m_u8): Likewise.
20034 (vcmphiq_m_n_u8): Likewise.
20035 (vcmpeqq_m_u8): Likewise.
20036 (vcmpeqq_m_n_u8): Likewise.
20037 (vcmpcsq_m_u8): Likewise.
20038 (vcmpcsq_m_n_u8): Likewise.
20039 (vclzq_m_u8): Likewise.
20040 (vaddvaq_p_u8): Likewise.
20041 (vsriq_n_u8): Likewise.
20042 (vsliq_n_u8): Likewise.
20043 (vshlq_m_r_u8): Likewise.
20044 (vrshlq_m_n_u8): Likewise.
20045 (vqshlq_m_r_u8): Likewise.
20046 (vqrshlq_m_n_u8): Likewise.
20047 (vminavq_p_s8): Likewise.
20048 (vminaq_m_s8): Likewise.
20049 (vmaxavq_p_s8): Likewise.
20050 (vmaxaq_m_s8): Likewise.
20051 (vcmpneq_m_s8): Likewise.
20052 (vcmpneq_m_n_s8): Likewise.
20053 (vcmpltq_m_s8): Likewise.
20054 (vcmpltq_m_n_s8): Likewise.
20055 (vcmpleq_m_s8): Likewise.
20056 (vcmpleq_m_n_s8): Likewise.
20057 (vcmpgtq_m_s8): Likewise.
20058 (vcmpgtq_m_n_s8): Likewise.
20059 (vcmpgeq_m_s8): Likewise.
20060 (vcmpgeq_m_n_s8): Likewise.
20061 (vcmpeqq_m_s8): Likewise.
20062 (vcmpeqq_m_n_s8): Likewise.
20063 (vshlq_m_r_s8): Likewise.
20064 (vrshlq_m_n_s8): Likewise.
20065 (vrev64q_m_s8): Likewise.
20066 (vqshlq_m_r_s8): Likewise.
20067 (vqrshlq_m_n_s8): Likewise.
20068 (vqnegq_m_s8): Likewise.
20069 (vqabsq_m_s8): Likewise.
20070 (vnegq_m_s8): Likewise.
20071 (vmvnq_m_s8): Likewise.
20072 (vmlsdavxq_p_s8): Likewise.
20073 (vmlsdavq_p_s8): Likewise.
20074 (vmladavxq_p_s8): Likewise.
20075 (vmladavq_p_s8): Likewise.
20076 (vminvq_p_s8): Likewise.
20077 (vmaxvq_p_s8): Likewise.
20078 (vdupq_m_n_s8): Likewise.
20079 (vclzq_m_s8): Likewise.
20080 (vclsq_m_s8): Likewise.
20081 (vaddvaq_p_s8): Likewise.
20082 (vabsq_m_s8): Likewise.
20083 (vqrdmlsdhxq_s8): Likewise.
20084 (vqrdmlsdhq_s8): Likewise.
20085 (vqrdmlashq_n_s8): Likewise.
20086 (vqrdmlahq_n_s8): Likewise.
20087 (vqrdmladhxq_s8): Likewise.
20088 (vqrdmladhq_s8): Likewise.
20089 (vqdmlsdhxq_s8): Likewise.
20090 (vqdmlsdhq_s8): Likewise.
20091 (vqdmlahq_n_s8): Likewise.
20092 (vqdmladhxq_s8): Likewise.
20093 (vqdmladhq_s8): Likewise.
20094 (vmlsdavaxq_s8): Likewise.
20095 (vmlsdavaq_s8): Likewise.
20096 (vmlasq_n_s8): Likewise.
20097 (vmlaq_n_s8): Likewise.
20098 (vmladavaxq_s8): Likewise.
20099 (vmladavaq_s8): Likewise.
20100 (vsriq_n_s8): Likewise.
20101 (vsliq_n_s8): Likewise.
20102 (vpselq_u16): Likewise.
20103 (vpselq_s16): Likewise.
20104 (vrev64q_m_u16): Likewise.
20105 (vqrdmlashq_n_u16): Likewise.
20106 (vqrdmlahq_n_u16): Likewise.
20107 (vqdmlahq_n_u16): Likewise.
20108 (vmvnq_m_u16): Likewise.
20109 (vmlasq_n_u16): Likewise.
20110 (vmlaq_n_u16): Likewise.
20111 (vmladavq_p_u16): Likewise.
20112 (vmladavaq_u16): Likewise.
20113 (vminvq_p_u16): Likewise.
20114 (vmaxvq_p_u16): Likewise.
20115 (vdupq_m_n_u16): Likewise.
20116 (vcmpneq_m_u16): Likewise.
20117 (vcmpneq_m_n_u16): Likewise.
20118 (vcmphiq_m_u16): Likewise.
20119 (vcmphiq_m_n_u16): Likewise.
20120 (vcmpeqq_m_u16): Likewise.
20121 (vcmpeqq_m_n_u16): Likewise.
20122 (vcmpcsq_m_u16): Likewise.
20123 (vcmpcsq_m_n_u16): Likewise.
20124 (vclzq_m_u16): Likewise.
20125 (vaddvaq_p_u16): Likewise.
20126 (vsriq_n_u16): Likewise.
20127 (vsliq_n_u16): Likewise.
20128 (vshlq_m_r_u16): Likewise.
20129 (vrshlq_m_n_u16): Likewise.
20130 (vqshlq_m_r_u16): Likewise.
20131 (vqrshlq_m_n_u16): Likewise.
20132 (vminavq_p_s16): Likewise.
20133 (vminaq_m_s16): Likewise.
20134 (vmaxavq_p_s16): Likewise.
20135 (vmaxaq_m_s16): Likewise.
20136 (vcmpneq_m_s16): Likewise.
20137 (vcmpneq_m_n_s16): Likewise.
20138 (vcmpltq_m_s16): Likewise.
20139 (vcmpltq_m_n_s16): Likewise.
20140 (vcmpleq_m_s16): Likewise.
20141 (vcmpleq_m_n_s16): Likewise.
20142 (vcmpgtq_m_s16): Likewise.
20143 (vcmpgtq_m_n_s16): Likewise.
20144 (vcmpgeq_m_s16): Likewise.
20145 (vcmpgeq_m_n_s16): Likewise.
20146 (vcmpeqq_m_s16): Likewise.
20147 (vcmpeqq_m_n_s16): Likewise.
20148 (vshlq_m_r_s16): Likewise.
20149 (vrshlq_m_n_s16): Likewise.
20150 (vrev64q_m_s16): Likewise.
20151 (vqshlq_m_r_s16): Likewise.
20152 (vqrshlq_m_n_s16): Likewise.
20153 (vqnegq_m_s16): Likewise.
20154 (vqabsq_m_s16): Likewise.
20155 (vnegq_m_s16): Likewise.
20156 (vmvnq_m_s16): Likewise.
20157 (vmlsdavxq_p_s16): Likewise.
20158 (vmlsdavq_p_s16): Likewise.
20159 (vmladavxq_p_s16): Likewise.
20160 (vmladavq_p_s16): Likewise.
20161 (vminvq_p_s16): Likewise.
20162 (vmaxvq_p_s16): Likewise.
20163 (vdupq_m_n_s16): Likewise.
20164 (vclzq_m_s16): Likewise.
20165 (vclsq_m_s16): Likewise.
20166 (vaddvaq_p_s16): Likewise.
20167 (vabsq_m_s16): Likewise.
20168 (vqrdmlsdhxq_s16): Likewise.
20169 (vqrdmlsdhq_s16): Likewise.
20170 (vqrdmlashq_n_s16): Likewise.
20171 (vqrdmlahq_n_s16): Likewise.
20172 (vqrdmladhxq_s16): Likewise.
20173 (vqrdmladhq_s16): Likewise.
20174 (vqdmlsdhxq_s16): Likewise.
20175 (vqdmlsdhq_s16): Likewise.
20176 (vqdmlahq_n_s16): Likewise.
20177 (vqdmladhxq_s16): Likewise.
20178 (vqdmladhq_s16): Likewise.
20179 (vmlsdavaxq_s16): Likewise.
20180 (vmlsdavaq_s16): Likewise.
20181 (vmlasq_n_s16): Likewise.
20182 (vmlaq_n_s16): Likewise.
20183 (vmladavaxq_s16): Likewise.
20184 (vmladavaq_s16): Likewise.
20185 (vsriq_n_s16): Likewise.
20186 (vsliq_n_s16): Likewise.
20187 (vpselq_u32): Likewise.
20188 (vpselq_s32): Likewise.
20189 (vrev64q_m_u32): Likewise.
20190 (vqrdmlashq_n_u32): Likewise.
20191 (vqrdmlahq_n_u32): Likewise.
20192 (vqdmlahq_n_u32): Likewise.
20193 (vmvnq_m_u32): Likewise.
20194 (vmlasq_n_u32): Likewise.
20195 (vmlaq_n_u32): Likewise.
20196 (vmladavq_p_u32): Likewise.
20197 (vmladavaq_u32): Likewise.
20198 (vminvq_p_u32): Likewise.
20199 (vmaxvq_p_u32): Likewise.
20200 (vdupq_m_n_u32): Likewise.
20201 (vcmpneq_m_u32): Likewise.
20202 (vcmpneq_m_n_u32): Likewise.
20203 (vcmphiq_m_u32): Likewise.
20204 (vcmphiq_m_n_u32): Likewise.
20205 (vcmpeqq_m_u32): Likewise.
20206 (vcmpeqq_m_n_u32): Likewise.
20207 (vcmpcsq_m_u32): Likewise.
20208 (vcmpcsq_m_n_u32): Likewise.
20209 (vclzq_m_u32): Likewise.
20210 (vaddvaq_p_u32): Likewise.
20211 (vsriq_n_u32): Likewise.
20212 (vsliq_n_u32): Likewise.
20213 (vshlq_m_r_u32): Likewise.
20214 (vrshlq_m_n_u32): Likewise.
20215 (vqshlq_m_r_u32): Likewise.
20216 (vqrshlq_m_n_u32): Likewise.
20217 (vminavq_p_s32): Likewise.
20218 (vminaq_m_s32): Likewise.
20219 (vmaxavq_p_s32): Likewise.
20220 (vmaxaq_m_s32): Likewise.
20221 (vcmpneq_m_s32): Likewise.
20222 (vcmpneq_m_n_s32): Likewise.
20223 (vcmpltq_m_s32): Likewise.
20224 (vcmpltq_m_n_s32): Likewise.
20225 (vcmpleq_m_s32): Likewise.
20226 (vcmpleq_m_n_s32): Likewise.
20227 (vcmpgtq_m_s32): Likewise.
20228 (vcmpgtq_m_n_s32): Likewise.
20229 (vcmpgeq_m_s32): Likewise.
20230 (vcmpgeq_m_n_s32): Likewise.
20231 (vcmpeqq_m_s32): Likewise.
20232 (vcmpeqq_m_n_s32): Likewise.
20233 (vshlq_m_r_s32): Likewise.
20234 (vrshlq_m_n_s32): Likewise.
20235 (vrev64q_m_s32): Likewise.
20236 (vqshlq_m_r_s32): Likewise.
20237 (vqrshlq_m_n_s32): Likewise.
20238 (vqnegq_m_s32): Likewise.
20239 (vqabsq_m_s32): Likewise.
20240 (vnegq_m_s32): Likewise.
20241 (vmvnq_m_s32): Likewise.
20242 (vmlsdavxq_p_s32): Likewise.
20243 (vmlsdavq_p_s32): Likewise.
20244 (vmladavxq_p_s32): Likewise.
20245 (vmladavq_p_s32): Likewise.
20246 (vminvq_p_s32): Likewise.
20247 (vmaxvq_p_s32): Likewise.
20248 (vdupq_m_n_s32): Likewise.
20249 (vclzq_m_s32): Likewise.
20250 (vclsq_m_s32): Likewise.
20251 (vaddvaq_p_s32): Likewise.
20252 (vabsq_m_s32): Likewise.
20253 (vqrdmlsdhxq_s32): Likewise.
20254 (vqrdmlsdhq_s32): Likewise.
20255 (vqrdmlashq_n_s32): Likewise.
20256 (vqrdmlahq_n_s32): Likewise.
20257 (vqrdmladhxq_s32): Likewise.
20258 (vqrdmladhq_s32): Likewise.
20259 (vqdmlsdhxq_s32): Likewise.
20260 (vqdmlsdhq_s32): Likewise.
20261 (vqdmlahq_n_s32): Likewise.
20262 (vqdmladhxq_s32): Likewise.
20263 (vqdmladhq_s32): Likewise.
20264 (vmlsdavaxq_s32): Likewise.
20265 (vmlsdavaq_s32): Likewise.
20266 (vmlasq_n_s32): Likewise.
20267 (vmlaq_n_s32): Likewise.
20268 (vmladavaxq_s32): Likewise.
20269 (vmladavaq_s32): Likewise.
20270 (vsriq_n_s32): Likewise.
20271 (vsliq_n_s32): Likewise.
20272 (vpselq_u64): Likewise.
20273 (vpselq_s64): Likewise.
20274 (__arm_vpselq_u8): Define intrinsic.
20275 (__arm_vpselq_s8): Likewise.
20276 (__arm_vrev64q_m_u8): Likewise.
20277 (__arm_vqrdmlashq_n_u8): Likewise.
20278 (__arm_vqrdmlahq_n_u8): Likewise.
20279 (__arm_vqdmlahq_n_u8): Likewise.
20280 (__arm_vmvnq_m_u8): Likewise.
20281 (__arm_vmlasq_n_u8): Likewise.
20282 (__arm_vmlaq_n_u8): Likewise.
20283 (__arm_vmladavq_p_u8): Likewise.
20284 (__arm_vmladavaq_u8): Likewise.
20285 (__arm_vminvq_p_u8): Likewise.
20286 (__arm_vmaxvq_p_u8): Likewise.
20287 (__arm_vdupq_m_n_u8): Likewise.
20288 (__arm_vcmpneq_m_u8): Likewise.
20289 (__arm_vcmpneq_m_n_u8): Likewise.
20290 (__arm_vcmphiq_m_u8): Likewise.
20291 (__arm_vcmphiq_m_n_u8): Likewise.
20292 (__arm_vcmpeqq_m_u8): Likewise.
20293 (__arm_vcmpeqq_m_n_u8): Likewise.
20294 (__arm_vcmpcsq_m_u8): Likewise.
20295 (__arm_vcmpcsq_m_n_u8): Likewise.
20296 (__arm_vclzq_m_u8): Likewise.
20297 (__arm_vaddvaq_p_u8): Likewise.
20298 (__arm_vsriq_n_u8): Likewise.
20299 (__arm_vsliq_n_u8): Likewise.
20300 (__arm_vshlq_m_r_u8): Likewise.
20301 (__arm_vrshlq_m_n_u8): Likewise.
20302 (__arm_vqshlq_m_r_u8): Likewise.
20303 (__arm_vqrshlq_m_n_u8): Likewise.
20304 (__arm_vminavq_p_s8): Likewise.
20305 (__arm_vminaq_m_s8): Likewise.
20306 (__arm_vmaxavq_p_s8): Likewise.
20307 (__arm_vmaxaq_m_s8): Likewise.
20308 (__arm_vcmpneq_m_s8): Likewise.
20309 (__arm_vcmpneq_m_n_s8): Likewise.
20310 (__arm_vcmpltq_m_s8): Likewise.
20311 (__arm_vcmpltq_m_n_s8): Likewise.
20312 (__arm_vcmpleq_m_s8): Likewise.
20313 (__arm_vcmpleq_m_n_s8): Likewise.
20314 (__arm_vcmpgtq_m_s8): Likewise.
20315 (__arm_vcmpgtq_m_n_s8): Likewise.
20316 (__arm_vcmpgeq_m_s8): Likewise.
20317 (__arm_vcmpgeq_m_n_s8): Likewise.
20318 (__arm_vcmpeqq_m_s8): Likewise.
20319 (__arm_vcmpeqq_m_n_s8): Likewise.
20320 (__arm_vshlq_m_r_s8): Likewise.
20321 (__arm_vrshlq_m_n_s8): Likewise.
20322 (__arm_vrev64q_m_s8): Likewise.
20323 (__arm_vqshlq_m_r_s8): Likewise.
20324 (__arm_vqrshlq_m_n_s8): Likewise.
20325 (__arm_vqnegq_m_s8): Likewise.
20326 (__arm_vqabsq_m_s8): Likewise.
20327 (__arm_vnegq_m_s8): Likewise.
20328 (__arm_vmvnq_m_s8): Likewise.
20329 (__arm_vmlsdavxq_p_s8): Likewise.
20330 (__arm_vmlsdavq_p_s8): Likewise.
20331 (__arm_vmladavxq_p_s8): Likewise.
20332 (__arm_vmladavq_p_s8): Likewise.
20333 (__arm_vminvq_p_s8): Likewise.
20334 (__arm_vmaxvq_p_s8): Likewise.
20335 (__arm_vdupq_m_n_s8): Likewise.
20336 (__arm_vclzq_m_s8): Likewise.
20337 (__arm_vclsq_m_s8): Likewise.
20338 (__arm_vaddvaq_p_s8): Likewise.
20339 (__arm_vabsq_m_s8): Likewise.
20340 (__arm_vqrdmlsdhxq_s8): Likewise.
20341 (__arm_vqrdmlsdhq_s8): Likewise.
20342 (__arm_vqrdmlashq_n_s8): Likewise.
20343 (__arm_vqrdmlahq_n_s8): Likewise.
20344 (__arm_vqrdmladhxq_s8): Likewise.
20345 (__arm_vqrdmladhq_s8): Likewise.
20346 (__arm_vqdmlsdhxq_s8): Likewise.
20347 (__arm_vqdmlsdhq_s8): Likewise.
20348 (__arm_vqdmlahq_n_s8): Likewise.
20349 (__arm_vqdmladhxq_s8): Likewise.
20350 (__arm_vqdmladhq_s8): Likewise.
20351 (__arm_vmlsdavaxq_s8): Likewise.
20352 (__arm_vmlsdavaq_s8): Likewise.
20353 (__arm_vmlasq_n_s8): Likewise.
20354 (__arm_vmlaq_n_s8): Likewise.
20355 (__arm_vmladavaxq_s8): Likewise.
20356 (__arm_vmladavaq_s8): Likewise.
20357 (__arm_vsriq_n_s8): Likewise.
20358 (__arm_vsliq_n_s8): Likewise.
20359 (__arm_vpselq_u16): Likewise.
20360 (__arm_vpselq_s16): Likewise.
20361 (__arm_vrev64q_m_u16): Likewise.
20362 (__arm_vqrdmlashq_n_u16): Likewise.
20363 (__arm_vqrdmlahq_n_u16): Likewise.
20364 (__arm_vqdmlahq_n_u16): Likewise.
20365 (__arm_vmvnq_m_u16): Likewise.
20366 (__arm_vmlasq_n_u16): Likewise.
20367 (__arm_vmlaq_n_u16): Likewise.
20368 (__arm_vmladavq_p_u16): Likewise.
20369 (__arm_vmladavaq_u16): Likewise.
20370 (__arm_vminvq_p_u16): Likewise.
20371 (__arm_vmaxvq_p_u16): Likewise.
20372 (__arm_vdupq_m_n_u16): Likewise.
20373 (__arm_vcmpneq_m_u16): Likewise.
20374 (__arm_vcmpneq_m_n_u16): Likewise.
20375 (__arm_vcmphiq_m_u16): Likewise.
20376 (__arm_vcmphiq_m_n_u16): Likewise.
20377 (__arm_vcmpeqq_m_u16): Likewise.
20378 (__arm_vcmpeqq_m_n_u16): Likewise.
20379 (__arm_vcmpcsq_m_u16): Likewise.
20380 (__arm_vcmpcsq_m_n_u16): Likewise.
20381 (__arm_vclzq_m_u16): Likewise.
20382 (__arm_vaddvaq_p_u16): Likewise.
20383 (__arm_vsriq_n_u16): Likewise.
20384 (__arm_vsliq_n_u16): Likewise.
20385 (__arm_vshlq_m_r_u16): Likewise.
20386 (__arm_vrshlq_m_n_u16): Likewise.
20387 (__arm_vqshlq_m_r_u16): Likewise.
20388 (__arm_vqrshlq_m_n_u16): Likewise.
20389 (__arm_vminavq_p_s16): Likewise.
20390 (__arm_vminaq_m_s16): Likewise.
20391 (__arm_vmaxavq_p_s16): Likewise.
20392 (__arm_vmaxaq_m_s16): Likewise.
20393 (__arm_vcmpneq_m_s16): Likewise.
20394 (__arm_vcmpneq_m_n_s16): Likewise.
20395 (__arm_vcmpltq_m_s16): Likewise.
20396 (__arm_vcmpltq_m_n_s16): Likewise.
20397 (__arm_vcmpleq_m_s16): Likewise.
20398 (__arm_vcmpleq_m_n_s16): Likewise.
20399 (__arm_vcmpgtq_m_s16): Likewise.
20400 (__arm_vcmpgtq_m_n_s16): Likewise.
20401 (__arm_vcmpgeq_m_s16): Likewise.
20402 (__arm_vcmpgeq_m_n_s16): Likewise.
20403 (__arm_vcmpeqq_m_s16): Likewise.
20404 (__arm_vcmpeqq_m_n_s16): Likewise.
20405 (__arm_vshlq_m_r_s16): Likewise.
20406 (__arm_vrshlq_m_n_s16): Likewise.
20407 (__arm_vrev64q_m_s16): Likewise.
20408 (__arm_vqshlq_m_r_s16): Likewise.
20409 (__arm_vqrshlq_m_n_s16): Likewise.
20410 (__arm_vqnegq_m_s16): Likewise.
20411 (__arm_vqabsq_m_s16): Likewise.
20412 (__arm_vnegq_m_s16): Likewise.
20413 (__arm_vmvnq_m_s16): Likewise.
20414 (__arm_vmlsdavxq_p_s16): Likewise.
20415 (__arm_vmlsdavq_p_s16): Likewise.
20416 (__arm_vmladavxq_p_s16): Likewise.
20417 (__arm_vmladavq_p_s16): Likewise.
20418 (__arm_vminvq_p_s16): Likewise.
20419 (__arm_vmaxvq_p_s16): Likewise.
20420 (__arm_vdupq_m_n_s16): Likewise.
20421 (__arm_vclzq_m_s16): Likewise.
20422 (__arm_vclsq_m_s16): Likewise.
20423 (__arm_vaddvaq_p_s16): Likewise.
20424 (__arm_vabsq_m_s16): Likewise.
20425 (__arm_vqrdmlsdhxq_s16): Likewise.
20426 (__arm_vqrdmlsdhq_s16): Likewise.
20427 (__arm_vqrdmlashq_n_s16): Likewise.
20428 (__arm_vqrdmlahq_n_s16): Likewise.
20429 (__arm_vqrdmladhxq_s16): Likewise.
20430 (__arm_vqrdmladhq_s16): Likewise.
20431 (__arm_vqdmlsdhxq_s16): Likewise.
20432 (__arm_vqdmlsdhq_s16): Likewise.
20433 (__arm_vqdmlahq_n_s16): Likewise.
20434 (__arm_vqdmladhxq_s16): Likewise.
20435 (__arm_vqdmladhq_s16): Likewise.
20436 (__arm_vmlsdavaxq_s16): Likewise.
20437 (__arm_vmlsdavaq_s16): Likewise.
20438 (__arm_vmlasq_n_s16): Likewise.
20439 (__arm_vmlaq_n_s16): Likewise.
20440 (__arm_vmladavaxq_s16): Likewise.
20441 (__arm_vmladavaq_s16): Likewise.
20442 (__arm_vsriq_n_s16): Likewise.
20443 (__arm_vsliq_n_s16): Likewise.
20444 (__arm_vpselq_u32): Likewise.
20445 (__arm_vpselq_s32): Likewise.
20446 (__arm_vrev64q_m_u32): Likewise.
20447 (__arm_vqrdmlashq_n_u32): Likewise.
20448 (__arm_vqrdmlahq_n_u32): Likewise.
20449 (__arm_vqdmlahq_n_u32): Likewise.
20450 (__arm_vmvnq_m_u32): Likewise.
20451 (__arm_vmlasq_n_u32): Likewise.
20452 (__arm_vmlaq_n_u32): Likewise.
20453 (__arm_vmladavq_p_u32): Likewise.
20454 (__arm_vmladavaq_u32): Likewise.
20455 (__arm_vminvq_p_u32): Likewise.
20456 (__arm_vmaxvq_p_u32): Likewise.
20457 (__arm_vdupq_m_n_u32): Likewise.
20458 (__arm_vcmpneq_m_u32): Likewise.
20459 (__arm_vcmpneq_m_n_u32): Likewise.
20460 (__arm_vcmphiq_m_u32): Likewise.
20461 (__arm_vcmphiq_m_n_u32): Likewise.
20462 (__arm_vcmpeqq_m_u32): Likewise.
20463 (__arm_vcmpeqq_m_n_u32): Likewise.
20464 (__arm_vcmpcsq_m_u32): Likewise.
20465 (__arm_vcmpcsq_m_n_u32): Likewise.
20466 (__arm_vclzq_m_u32): Likewise.
20467 (__arm_vaddvaq_p_u32): Likewise.
20468 (__arm_vsriq_n_u32): Likewise.
20469 (__arm_vsliq_n_u32): Likewise.
20470 (__arm_vshlq_m_r_u32): Likewise.
20471 (__arm_vrshlq_m_n_u32): Likewise.
20472 (__arm_vqshlq_m_r_u32): Likewise.
20473 (__arm_vqrshlq_m_n_u32): Likewise.
20474 (__arm_vminavq_p_s32): Likewise.
20475 (__arm_vminaq_m_s32): Likewise.
20476 (__arm_vmaxavq_p_s32): Likewise.
20477 (__arm_vmaxaq_m_s32): Likewise.
20478 (__arm_vcmpneq_m_s32): Likewise.
20479 (__arm_vcmpneq_m_n_s32): Likewise.
20480 (__arm_vcmpltq_m_s32): Likewise.
20481 (__arm_vcmpltq_m_n_s32): Likewise.
20482 (__arm_vcmpleq_m_s32): Likewise.
20483 (__arm_vcmpleq_m_n_s32): Likewise.
20484 (__arm_vcmpgtq_m_s32): Likewise.
20485 (__arm_vcmpgtq_m_n_s32): Likewise.
20486 (__arm_vcmpgeq_m_s32): Likewise.
20487 (__arm_vcmpgeq_m_n_s32): Likewise.
20488 (__arm_vcmpeqq_m_s32): Likewise.
20489 (__arm_vcmpeqq_m_n_s32): Likewise.
20490 (__arm_vshlq_m_r_s32): Likewise.
20491 (__arm_vrshlq_m_n_s32): Likewise.
20492 (__arm_vrev64q_m_s32): Likewise.
20493 (__arm_vqshlq_m_r_s32): Likewise.
20494 (__arm_vqrshlq_m_n_s32): Likewise.
20495 (__arm_vqnegq_m_s32): Likewise.
20496 (__arm_vqabsq_m_s32): Likewise.
20497 (__arm_vnegq_m_s32): Likewise.
20498 (__arm_vmvnq_m_s32): Likewise.
20499 (__arm_vmlsdavxq_p_s32): Likewise.
20500 (__arm_vmlsdavq_p_s32): Likewise.
20501 (__arm_vmladavxq_p_s32): Likewise.
20502 (__arm_vmladavq_p_s32): Likewise.
20503 (__arm_vminvq_p_s32): Likewise.
20504 (__arm_vmaxvq_p_s32): Likewise.
20505 (__arm_vdupq_m_n_s32): Likewise.
20506 (__arm_vclzq_m_s32): Likewise.
20507 (__arm_vclsq_m_s32): Likewise.
20508 (__arm_vaddvaq_p_s32): Likewise.
20509 (__arm_vabsq_m_s32): Likewise.
20510 (__arm_vqrdmlsdhxq_s32): Likewise.
20511 (__arm_vqrdmlsdhq_s32): Likewise.
20512 (__arm_vqrdmlashq_n_s32): Likewise.
20513 (__arm_vqrdmlahq_n_s32): Likewise.
20514 (__arm_vqrdmladhxq_s32): Likewise.
20515 (__arm_vqrdmladhq_s32): Likewise.
20516 (__arm_vqdmlsdhxq_s32): Likewise.
20517 (__arm_vqdmlsdhq_s32): Likewise.
20518 (__arm_vqdmlahq_n_s32): Likewise.
20519 (__arm_vqdmladhxq_s32): Likewise.
20520 (__arm_vqdmladhq_s32): Likewise.
20521 (__arm_vmlsdavaxq_s32): Likewise.
20522 (__arm_vmlsdavaq_s32): Likewise.
20523 (__arm_vmlasq_n_s32): Likewise.
20524 (__arm_vmlaq_n_s32): Likewise.
20525 (__arm_vmladavaxq_s32): Likewise.
20526 (__arm_vmladavaq_s32): Likewise.
20527 (__arm_vsriq_n_s32): Likewise.
20528 (__arm_vsliq_n_s32): Likewise.
20529 (__arm_vpselq_u64): Likewise.
20530 (__arm_vpselq_s64): Likewise.
20531 (vcmpneq_m_n): Define polymorphic variant.
20532 (vcmpneq_m): Likewise.
20533 (vqrdmlsdhq): Likewise.
20534 (vqrdmlsdhxq): Likewise.
20535 (vqrshlq_m_n): Likewise.
20536 (vqshlq_m_r): Likewise.
20537 (vrev64q_m): Likewise.
20538 (vrshlq_m_n): Likewise.
20539 (vshlq_m_r): Likewise.
20540 (vsliq_n): Likewise.
20541 (vsriq_n): Likewise.
20542 (vqrdmlashq_n): Likewise.
20543 (vqrdmlahq): Likewise.
20544 (vqrdmladhxq): Likewise.
20545 (vqrdmladhq): Likewise.
20546 (vqnegq_m): Likewise.
20547 (vqdmlsdhxq): Likewise.
20548 (vabsq_m): Likewise.
20549 (vclsq_m): Likewise.
20550 (vclzq_m): Likewise.
20551 (vcmpgeq_m): Likewise.
20552 (vcmpgeq_m_n): Likewise.
20553 (vdupq_m_n): Likewise.
20554 (vmaxaq_m): Likewise.
20555 (vmlaq_n): Likewise.
20556 (vmlasq_n): Likewise.
20557 (vmvnq_m): Likewise.
20558 (vnegq_m): Likewise.
20559 (vpselq): Likewise.
20560 (vqdmlahq_n): Likewise.
20561 (vqrdmlahq_n): Likewise.
20562 (vqdmlsdhq): Likewise.
20563 (vqdmladhq): Likewise.
20564 (vqabsq_m): Likewise.
20565 (vminaq_m): Likewise.
20566 (vrmlaldavhaq): Likewise.
20567 (vmlsdavxq_p): Likewise.
20568 (vmlsdavq_p): Likewise.
20569 (vmlsdavaxq): Likewise.
20570 (vmlsdavaq): Likewise.
20571 (vaddvaq_p): Likewise.
20572 (vcmpcsq_m_n): Likewise.
20573 (vcmpcsq_m): Likewise.
20574 (vcmpeqq_m_n): Likewise.
20575 (vcmpeqq_m): Likewise.
20576 (vmladavxq_p): Likewise.
20577 (vmladavq_p): Likewise.
20578 (vmladavaxq): Likewise.
20579 (vmladavaq): Likewise.
20580 (vminvq_p): Likewise.
20581 (vminavq_p): Likewise.
20582 (vmaxvq_p): Likewise.
20583 (vmaxavq_p): Likewise.
20584 (vcmpltq_m_n): Likewise.
20585 (vcmpltq_m): Likewise.
20586 (vcmpleq_m): Likewise.
20587 (vcmpleq_m_n): Likewise.
20588 (vcmphiq_m_n): Likewise.
20589 (vcmphiq_m): Likewise.
20590 (vcmpgtq_m_n): Likewise.
20591 (vcmpgtq_m): Likewise.
20592 * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_NONE_IMM): Use
20594 (TERNOP_NONE_NONE_NONE_NONE): Likewise.
20595 (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
20596 (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
20597 (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
20598 (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
20599 (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
20600 * config/arm/constraints.md (Rc): Define constraint to check constant is
20601 in the range of 0 to 15.
20602 (Re): Define constraint to check constant is in the range of 0 to 31.
20603 * config/arm/mve.md (VADDVAQ_P): Define iterator.
20604 (VCLZQ_M): Likewise.
20605 (VCMPEQQ_M_N): Likewise.
20606 (VCMPEQQ_M): Likewise.
20607 (VCMPNEQ_M_N): Likewise.
20608 (VCMPNEQ_M): Likewise.
20609 (VDUPQ_M_N): Likewise.
20610 (VMAXVQ_P): Likewise.
20611 (VMINVQ_P): Likewise.
20612 (VMLADAVAQ): Likewise.
20613 (VMLADAVQ_P): Likewise.
20614 (VMLAQ_N): Likewise.
20615 (VMLASQ_N): Likewise.
20616 (VMVNQ_M): Likewise.
20617 (VPSELQ): Likewise.
20618 (VQDMLAHQ_N): Likewise.
20619 (VQRDMLAHQ_N): Likewise.
20620 (VQRDMLASHQ_N): Likewise.
20621 (VQRSHLQ_M_N): Likewise.
20622 (VQSHLQ_M_R): Likewise.
20623 (VREV64Q_M): Likewise.
20624 (VRSHLQ_M_N): Likewise.
20625 (VSHLQ_M_R): Likewise.
20626 (VSLIQ_N): Likewise.
20627 (VSRIQ_N): Likewise.
20628 (mve_vabsq_m_s<mode>): Define RTL pattern.
20629 (mve_vaddvaq_p_<supf><mode>): Likewise.
20630 (mve_vclsq_m_s<mode>): Likewise.
20631 (mve_vclzq_m_<supf><mode>): Likewise.
20632 (mve_vcmpcsq_m_n_u<mode>): Likewise.
20633 (mve_vcmpcsq_m_u<mode>): Likewise.
20634 (mve_vcmpeqq_m_n_<supf><mode>): Likewise.
20635 (mve_vcmpeqq_m_<supf><mode>): Likewise.
20636 (mve_vcmpgeq_m_n_s<mode>): Likewise.
20637 (mve_vcmpgeq_m_s<mode>): Likewise.
20638 (mve_vcmpgtq_m_n_s<mode>): Likewise.
20639 (mve_vcmpgtq_m_s<mode>): Likewise.
20640 (mve_vcmphiq_m_n_u<mode>): Likewise.
20641 (mve_vcmphiq_m_u<mode>): Likewise.
20642 (mve_vcmpleq_m_n_s<mode>): Likewise.
20643 (mve_vcmpleq_m_s<mode>): Likewise.
20644 (mve_vcmpltq_m_n_s<mode>): Likewise.
20645 (mve_vcmpltq_m_s<mode>): Likewise.
20646 (mve_vcmpneq_m_n_<supf><mode>): Likewise.
20647 (mve_vcmpneq_m_<supf><mode>): Likewise.
20648 (mve_vdupq_m_n_<supf><mode>): Likewise.
20649 (mve_vmaxaq_m_s<mode>): Likewise.
20650 (mve_vmaxavq_p_s<mode>): Likewise.
20651 (mve_vmaxvq_p_<supf><mode>): Likewise.
20652 (mve_vminaq_m_s<mode>): Likewise.
20653 (mve_vminavq_p_s<mode>): Likewise.
20654 (mve_vminvq_p_<supf><mode>): Likewise.
20655 (mve_vmladavaq_<supf><mode>): Likewise.
20656 (mve_vmladavq_p_<supf><mode>): Likewise.
20657 (mve_vmladavxq_p_s<mode>): Likewise.
20658 (mve_vmlaq_n_<supf><mode>): Likewise.
20659 (mve_vmlasq_n_<supf><mode>): Likewise.
20660 (mve_vmlsdavq_p_s<mode>): Likewise.
20661 (mve_vmlsdavxq_p_s<mode>): Likewise.
20662 (mve_vmvnq_m_<supf><mode>): Likewise.
20663 (mve_vnegq_m_s<mode>): Likewise.
20664 (mve_vpselq_<supf><mode>): Likewise.
20665 (mve_vqabsq_m_s<mode>): Likewise.
20666 (mve_vqdmlahq_n_<supf><mode>): Likewise.
20667 (mve_vqnegq_m_s<mode>): Likewise.
20668 (mve_vqrdmladhq_s<mode>): Likewise.
20669 (mve_vqrdmladhxq_s<mode>): Likewise.
20670 (mve_vqrdmlahq_n_<supf><mode>): Likewise.
20671 (mve_vqrdmlashq_n_<supf><mode>): Likewise.
20672 (mve_vqrdmlsdhq_s<mode>): Likewise.
20673 (mve_vqrdmlsdhxq_s<mode>): Likewise.
20674 (mve_vqrshlq_m_n_<supf><mode>): Likewise.
20675 (mve_vqshlq_m_r_<supf><mode>): Likewise.
20676 (mve_vrev64q_m_<supf><mode>): Likewise.
20677 (mve_vrshlq_m_n_<supf><mode>): Likewise.
20678 (mve_vshlq_m_r_<supf><mode>): Likewise.
20679 (mve_vsliq_n_<supf><mode>): Likewise.
20680 (mve_vsriq_n_<supf><mode>): Likewise.
20681 (mve_vqdmlsdhxq_s<mode>): Likewise.
20682 (mve_vqdmlsdhq_s<mode>): Likewise.
20683 (mve_vqdmladhxq_s<mode>): Likewise.
20684 (mve_vqdmladhq_s<mode>): Likewise.
20685 (mve_vmlsdavaxq_s<mode>): Likewise.
20686 (mve_vmlsdavaq_s<mode>): Likewise.
20687 (mve_vmladavaxq_s<mode>): Likewise.
20688 * config/arm/predicates.md (mve_imm_15):Define predicate to check the
20689 matching constraint Rc.
20690 (mve_imm_31): Define predicate to check the matching constraint Re.
20692 2020-03-18 Andrew Stubbs <ams@codesourcery.com>
20694 * config/gcn/gcn-valu.md (vec_cmp<mode>di): Set operand 1 to DImode.
20695 (vec_cmp<mode>di_dup): Likewise.
20696 * config/gcn/gcn.h (STORE_FLAG_VALUE): Set to -1.
20698 2020-03-18 Andrew Stubbs <ams@codesourcery.com>
20700 * config/gcn/gcn-valu.md (COND_MODE): Delete.
20701 (COND_INT_MODE): Delete.
20702 (cond_op): Add "mult".
20703 (cond_<expander><mode>): Use VEC_ALLREG_MODE.
20704 (cond_<expander><mode>): Use VEC_ALLREG_INT_MODE.
20706 2020-03-18 Richard Biener <rguenther@suse.de>
20708 PR middle-end/94206
20709 * gimple-fold.c (gimple_fold_builtin_memset): Avoid using
20710 partial int modes or not mode-precision integer types for
20713 2020-03-18 Jakub Jelinek <jakub@redhat.com>
20715 * asan.c (get_mem_refs_of_builtin_call): Fix up duplicated word issue
20717 * config/arc/arc.c (frame_stack_add): Likewise.
20718 * gimple-loop-versioning.cc (loop_versioning::analyze_arbitrary_term):
20720 * ipa-predicate.c (predicate::remap_after_inlining): Likewise.
20721 * tree-ssa-strlen.h (handle_printf_call): Likewise.
20722 * tree-ssa-strlen.c (is_strlen_related_p): Likewise.
20723 * optinfo-emit-json.cc (optrecord_json_writer::add_record): Likewise.
20725 2020-03-18 Duan bo <duanbo3@huawei.com>
20728 * config/aarch64/aarch64.md (ldr_got_tiny): Delete.
20729 (@ldr_got_tiny_<mode>): New pattern.
20730 (ldr_got_tiny_sidi): Likewise.
20731 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Use
20732 them to handle SYMBOL_TINY_GOT for ILP32.
20734 2020-03-18 Richard Sandiford <richard.sandiford@arm.com>
20736 * config/aarch64/aarch64.c (aarch64_sve_abi): Treat p12-p15 as
20737 call-preserved for SVE PCS functions.
20738 (aarch64_layout_frame): Cope with up to 12 predicate save slots.
20739 Optimize the case in which there are no following vector save slots.
20741 2020-03-18 Richard Biener <rguenther@suse.de>
20743 PR middle-end/94188
20744 * fold-const.c (build_fold_addr_expr): Convert address to
20746 * asan.c (maybe_create_ssa_name): Strip useless type conversions.
20747 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use build1
20748 to build the ADDR_EXPR which we don't really want to simplify.
20749 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
20750 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Likewise.
20751 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
20752 (simplify_builtin_call): Strip useless type conversions.
20753 * tree-ssa-strlen.c (new_strinfo): Likewise.
20755 2020-03-17 Alexey Neyman <stilor@att.net>
20758 * dwarf2out.c (gen_decl_die): Proceed to generating the DIE if
20759 the debug level is terse and the declaration is public. Do not
20760 generate type info.
20761 (dwarf2out_decl): Same.
20762 (add_type_attribute): Return immediately if debug level is
20765 2020-03-17 Richard Sandiford <richard.sandiford@arm.com>
20767 * config/aarch64/iterators.md (Vmtype): Handle V4BF and V8BF.
20769 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
20770 Mihail Ionescu <mihail.ionescu@arm.com>
20771 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20773 * config/arm/arm-builtins.c (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS):
20774 Define qualifier for ternary operands.
20775 (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
20776 (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
20777 (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
20778 (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
20779 (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
20780 (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
20781 (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
20782 (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
20783 (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
20784 (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
20785 (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
20786 (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
20787 (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
20788 * config/arm/arm_mve.h (vabavq_s8): Define macro.
20789 (vabavq_s16): Likewise.
20790 (vabavq_s32): Likewise.
20791 (vbicq_m_n_s16): Likewise.
20792 (vbicq_m_n_s32): Likewise.
20793 (vbicq_m_n_u16): Likewise.
20794 (vbicq_m_n_u32): Likewise.
20795 (vcmpeqq_m_f16): Likewise.
20796 (vcmpeqq_m_f32): Likewise.
20797 (vcvtaq_m_s16_f16): Likewise.
20798 (vcvtaq_m_u16_f16): Likewise.
20799 (vcvtaq_m_s32_f32): Likewise.
20800 (vcvtaq_m_u32_f32): Likewise.
20801 (vcvtq_m_f16_s16): Likewise.
20802 (vcvtq_m_f16_u16): Likewise.
20803 (vcvtq_m_f32_s32): Likewise.
20804 (vcvtq_m_f32_u32): Likewise.
20805 (vqrshrnbq_n_s16): Likewise.
20806 (vqrshrnbq_n_u16): Likewise.
20807 (vqrshrnbq_n_s32): Likewise.
20808 (vqrshrnbq_n_u32): Likewise.
20809 (vqrshrunbq_n_s16): Likewise.
20810 (vqrshrunbq_n_s32): Likewise.
20811 (vrmlaldavhaq_s32): Likewise.
20812 (vrmlaldavhaq_u32): Likewise.
20813 (vshlcq_s8): Likewise.
20814 (vshlcq_u8): Likewise.
20815 (vshlcq_s16): Likewise.
20816 (vshlcq_u16): Likewise.
20817 (vshlcq_s32): Likewise.
20818 (vshlcq_u32): Likewise.
20819 (vabavq_u8): Likewise.
20820 (vabavq_u16): Likewise.
20821 (vabavq_u32): Likewise.
20822 (__arm_vabavq_s8): Define intrinsic.
20823 (__arm_vabavq_s16): Likewise.
20824 (__arm_vabavq_s32): Likewise.
20825 (__arm_vabavq_u8): Likewise.
20826 (__arm_vabavq_u16): Likewise.
20827 (__arm_vabavq_u32): Likewise.
20828 (__arm_vbicq_m_n_s16): Likewise.
20829 (__arm_vbicq_m_n_s32): Likewise.
20830 (__arm_vbicq_m_n_u16): Likewise.
20831 (__arm_vbicq_m_n_u32): Likewise.
20832 (__arm_vqrshrnbq_n_s16): Likewise.
20833 (__arm_vqrshrnbq_n_u16): Likewise.
20834 (__arm_vqrshrnbq_n_s32): Likewise.
20835 (__arm_vqrshrnbq_n_u32): Likewise.
20836 (__arm_vqrshrunbq_n_s16): Likewise.
20837 (__arm_vqrshrunbq_n_s32): Likewise.
20838 (__arm_vrmlaldavhaq_s32): Likewise.
20839 (__arm_vrmlaldavhaq_u32): Likewise.
20840 (__arm_vshlcq_s8): Likewise.
20841 (__arm_vshlcq_u8): Likewise.
20842 (__arm_vshlcq_s16): Likewise.
20843 (__arm_vshlcq_u16): Likewise.
20844 (__arm_vshlcq_s32): Likewise.
20845 (__arm_vshlcq_u32): Likewise.
20846 (__arm_vcmpeqq_m_f16): Likewise.
20847 (__arm_vcmpeqq_m_f32): Likewise.
20848 (__arm_vcvtaq_m_s16_f16): Likewise.
20849 (__arm_vcvtaq_m_u16_f16): Likewise.
20850 (__arm_vcvtaq_m_s32_f32): Likewise.
20851 (__arm_vcvtaq_m_u32_f32): Likewise.
20852 (__arm_vcvtq_m_f16_s16): Likewise.
20853 (__arm_vcvtq_m_f16_u16): Likewise.
20854 (__arm_vcvtq_m_f32_s32): Likewise.
20855 (__arm_vcvtq_m_f32_u32): Likewise.
20856 (vcvtaq_m): Define polymorphic variant.
20857 (vcvtq_m): Likewise.
20858 (vabavq): Likewise.
20859 (vshlcq): Likewise.
20860 (vbicq_m_n): Likewise.
20861 (vqrshrnbq_n): Likewise.
20862 (vqrshrunbq_n): Likewise.
20863 * config/arm/arm_mve_builtins.def
20864 (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS): Use the builtin qualifer.
20865 (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
20866 (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
20867 (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
20868 (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
20869 (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
20870 (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
20871 (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
20872 (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
20873 (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
20874 (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
20875 (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
20876 (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
20877 (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
20878 * config/arm/mve.md (VBICQ_M_N): Define iterator.
20879 (VCVTAQ_M): Likewise.
20880 (VCVTQ_M_TO_F): Likewise.
20881 (VQRSHRNBQ_N): Likewise.
20882 (VABAVQ): Likewise.
20883 (VSHLCQ): Likewise.
20884 (VRMLALDAVHAQ): Likewise.
20885 (mve_vbicq_m_n_<supf><mode>): Define RTL pattern.
20886 (mve_vcmpeqq_m_f<mode>): Likewise.
20887 (mve_vcvtaq_m_<supf><mode>): Likewise.
20888 (mve_vcvtq_m_to_f_<supf><mode>): Likewise.
20889 (mve_vqrshrnbq_n_<supf><mode>): Likewise.
20890 (mve_vqrshrunbq_n_s<mode>): Likewise.
20891 (mve_vrmlaldavhaq_<supf>v4si): Likewise.
20892 (mve_vabavq_<supf><mode>): Likewise.
20893 (mve_vshlcq_<supf><mode>): Likewise.
20894 (mve_vshlcq_<supf><mode>): Likewise.
20895 (mve_vshlcq_vec_<supf><mode>): Define RTL expand.
20896 (mve_vshlcq_carry_<supf><mode>): Likewise.
20898 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
20899 Mihail Ionescu <mihail.ionescu@arm.com>
20900 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20902 * config/arm/arm_mve.h (vqmovntq_u16): Define macro.
20903 (vqmovnbq_u16): Likewise.
20904 (vmulltq_poly_p8): Likewise.
20905 (vmullbq_poly_p8): Likewise.
20906 (vmovntq_u16): Likewise.
20907 (vmovnbq_u16): Likewise.
20908 (vmlaldavxq_u16): Likewise.
20909 (vmlaldavq_u16): Likewise.
20910 (vqmovuntq_s16): Likewise.
20911 (vqmovunbq_s16): Likewise.
20912 (vshlltq_n_u8): Likewise.
20913 (vshllbq_n_u8): Likewise.
20914 (vorrq_n_u16): Likewise.
20915 (vbicq_n_u16): Likewise.
20916 (vcmpneq_n_f16): Likewise.
20917 (vcmpneq_f16): Likewise.
20918 (vcmpltq_n_f16): Likewise.
20919 (vcmpltq_f16): Likewise.
20920 (vcmpleq_n_f16): Likewise.
20921 (vcmpleq_f16): Likewise.
20922 (vcmpgtq_n_f16): Likewise.
20923 (vcmpgtq_f16): Likewise.
20924 (vcmpgeq_n_f16): Likewise.
20925 (vcmpgeq_f16): Likewise.
20926 (vcmpeqq_n_f16): Likewise.
20927 (vcmpeqq_f16): Likewise.
20928 (vsubq_f16): Likewise.
20929 (vqmovntq_s16): Likewise.
20930 (vqmovnbq_s16): Likewise.
20931 (vqdmulltq_s16): Likewise.
20932 (vqdmulltq_n_s16): Likewise.
20933 (vqdmullbq_s16): Likewise.
20934 (vqdmullbq_n_s16): Likewise.
20935 (vorrq_f16): Likewise.
20936 (vornq_f16): Likewise.
20937 (vmulq_n_f16): Likewise.
20938 (vmulq_f16): Likewise.
20939 (vmovntq_s16): Likewise.
20940 (vmovnbq_s16): Likewise.
20941 (vmlsldavxq_s16): Likewise.
20942 (vmlsldavq_s16): Likewise.
20943 (vmlaldavxq_s16): Likewise.
20944 (vmlaldavq_s16): Likewise.
20945 (vminnmvq_f16): Likewise.
20946 (vminnmq_f16): Likewise.
20947 (vminnmavq_f16): Likewise.
20948 (vminnmaq_f16): Likewise.
20949 (vmaxnmvq_f16): Likewise.
20950 (vmaxnmq_f16): Likewise.
20951 (vmaxnmavq_f16): Likewise.
20952 (vmaxnmaq_f16): Likewise.
20953 (veorq_f16): Likewise.
20954 (vcmulq_rot90_f16): Likewise.
20955 (vcmulq_rot270_f16): Likewise.
20956 (vcmulq_rot180_f16): Likewise.
20957 (vcmulq_f16): Likewise.
20958 (vcaddq_rot90_f16): Likewise.
20959 (vcaddq_rot270_f16): Likewise.
20960 (vbicq_f16): Likewise.
20961 (vandq_f16): Likewise.
20962 (vaddq_n_f16): Likewise.
20963 (vabdq_f16): Likewise.
20964 (vshlltq_n_s8): Likewise.
20965 (vshllbq_n_s8): Likewise.
20966 (vorrq_n_s16): Likewise.
20967 (vbicq_n_s16): Likewise.
20968 (vqmovntq_u32): Likewise.
20969 (vqmovnbq_u32): Likewise.
20970 (vmulltq_poly_p16): Likewise.
20971 (vmullbq_poly_p16): Likewise.
20972 (vmovntq_u32): Likewise.
20973 (vmovnbq_u32): Likewise.
20974 (vmlaldavxq_u32): Likewise.
20975 (vmlaldavq_u32): Likewise.
20976 (vqmovuntq_s32): Likewise.
20977 (vqmovunbq_s32): Likewise.
20978 (vshlltq_n_u16): Likewise.
20979 (vshllbq_n_u16): Likewise.
20980 (vorrq_n_u32): Likewise.
20981 (vbicq_n_u32): Likewise.
20982 (vcmpneq_n_f32): Likewise.
20983 (vcmpneq_f32): Likewise.
20984 (vcmpltq_n_f32): Likewise.
20985 (vcmpltq_f32): Likewise.
20986 (vcmpleq_n_f32): Likewise.
20987 (vcmpleq_f32): Likewise.
20988 (vcmpgtq_n_f32): Likewise.
20989 (vcmpgtq_f32): Likewise.
20990 (vcmpgeq_n_f32): Likewise.
20991 (vcmpgeq_f32): Likewise.
20992 (vcmpeqq_n_f32): Likewise.
20993 (vcmpeqq_f32): Likewise.
20994 (vsubq_f32): Likewise.
20995 (vqmovntq_s32): Likewise.
20996 (vqmovnbq_s32): Likewise.
20997 (vqdmulltq_s32): Likewise.
20998 (vqdmulltq_n_s32): Likewise.
20999 (vqdmullbq_s32): Likewise.
21000 (vqdmullbq_n_s32): Likewise.
21001 (vorrq_f32): Likewise.
21002 (vornq_f32): Likewise.
21003 (vmulq_n_f32): Likewise.
21004 (vmulq_f32): Likewise.
21005 (vmovntq_s32): Likewise.
21006 (vmovnbq_s32): Likewise.
21007 (vmlsldavxq_s32): Likewise.
21008 (vmlsldavq_s32): Likewise.
21009 (vmlaldavxq_s32): Likewise.
21010 (vmlaldavq_s32): Likewise.
21011 (vminnmvq_f32): Likewise.
21012 (vminnmq_f32): Likewise.
21013 (vminnmavq_f32): Likewise.
21014 (vminnmaq_f32): Likewise.
21015 (vmaxnmvq_f32): Likewise.
21016 (vmaxnmq_f32): Likewise.
21017 (vmaxnmavq_f32): Likewise.
21018 (vmaxnmaq_f32): Likewise.
21019 (veorq_f32): Likewise.
21020 (vcmulq_rot90_f32): Likewise.
21021 (vcmulq_rot270_f32): Likewise.
21022 (vcmulq_rot180_f32): Likewise.
21023 (vcmulq_f32): Likewise.
21024 (vcaddq_rot90_f32): Likewise.
21025 (vcaddq_rot270_f32): Likewise.
21026 (vbicq_f32): Likewise.
21027 (vandq_f32): Likewise.
21028 (vaddq_n_f32): Likewise.
21029 (vabdq_f32): Likewise.
21030 (vshlltq_n_s16): Likewise.
21031 (vshllbq_n_s16): Likewise.
21032 (vorrq_n_s32): Likewise.
21033 (vbicq_n_s32): Likewise.
21034 (vrmlaldavhq_u32): Likewise.
21035 (vctp8q_m): Likewise.
21036 (vctp64q_m): Likewise.
21037 (vctp32q_m): Likewise.
21038 (vctp16q_m): Likewise.
21039 (vaddlvaq_u32): Likewise.
21040 (vrmlsldavhxq_s32): Likewise.
21041 (vrmlsldavhq_s32): Likewise.
21042 (vrmlaldavhxq_s32): Likewise.
21043 (vrmlaldavhq_s32): Likewise.
21044 (vcvttq_f16_f32): Likewise.
21045 (vcvtbq_f16_f32): Likewise.
21046 (vaddlvaq_s32): Likewise.
21047 (__arm_vqmovntq_u16): Define intrinsic.
21048 (__arm_vqmovnbq_u16): Likewise.
21049 (__arm_vmulltq_poly_p8): Likewise.
21050 (__arm_vmullbq_poly_p8): Likewise.
21051 (__arm_vmovntq_u16): Likewise.
21052 (__arm_vmovnbq_u16): Likewise.
21053 (__arm_vmlaldavxq_u16): Likewise.
21054 (__arm_vmlaldavq_u16): Likewise.
21055 (__arm_vqmovuntq_s16): Likewise.
21056 (__arm_vqmovunbq_s16): Likewise.
21057 (__arm_vshlltq_n_u8): Likewise.
21058 (__arm_vshllbq_n_u8): Likewise.
21059 (__arm_vorrq_n_u16): Likewise.
21060 (__arm_vbicq_n_u16): Likewise.
21061 (__arm_vcmpneq_n_f16): Likewise.
21062 (__arm_vcmpneq_f16): Likewise.
21063 (__arm_vcmpltq_n_f16): Likewise.
21064 (__arm_vcmpltq_f16): Likewise.
21065 (__arm_vcmpleq_n_f16): Likewise.
21066 (__arm_vcmpleq_f16): Likewise.
21067 (__arm_vcmpgtq_n_f16): Likewise.
21068 (__arm_vcmpgtq_f16): Likewise.
21069 (__arm_vcmpgeq_n_f16): Likewise.
21070 (__arm_vcmpgeq_f16): Likewise.
21071 (__arm_vcmpeqq_n_f16): Likewise.
21072 (__arm_vcmpeqq_f16): Likewise.
21073 (__arm_vsubq_f16): Likewise.
21074 (__arm_vqmovntq_s16): Likewise.
21075 (__arm_vqmovnbq_s16): Likewise.
21076 (__arm_vqdmulltq_s16): Likewise.
21077 (__arm_vqdmulltq_n_s16): Likewise.
21078 (__arm_vqdmullbq_s16): Likewise.
21079 (__arm_vqdmullbq_n_s16): Likewise.
21080 (__arm_vorrq_f16): Likewise.
21081 (__arm_vornq_f16): Likewise.
21082 (__arm_vmulq_n_f16): Likewise.
21083 (__arm_vmulq_f16): Likewise.
21084 (__arm_vmovntq_s16): Likewise.
21085 (__arm_vmovnbq_s16): Likewise.
21086 (__arm_vmlsldavxq_s16): Likewise.
21087 (__arm_vmlsldavq_s16): Likewise.
21088 (__arm_vmlaldavxq_s16): Likewise.
21089 (__arm_vmlaldavq_s16): Likewise.
21090 (__arm_vminnmvq_f16): Likewise.
21091 (__arm_vminnmq_f16): Likewise.
21092 (__arm_vminnmavq_f16): Likewise.
21093 (__arm_vminnmaq_f16): Likewise.
21094 (__arm_vmaxnmvq_f16): Likewise.
21095 (__arm_vmaxnmq_f16): Likewise.
21096 (__arm_vmaxnmavq_f16): Likewise.
21097 (__arm_vmaxnmaq_f16): Likewise.
21098 (__arm_veorq_f16): Likewise.
21099 (__arm_vcmulq_rot90_f16): Likewise.
21100 (__arm_vcmulq_rot270_f16): Likewise.
21101 (__arm_vcmulq_rot180_f16): Likewise.
21102 (__arm_vcmulq_f16): Likewise.
21103 (__arm_vcaddq_rot90_f16): Likewise.
21104 (__arm_vcaddq_rot270_f16): Likewise.
21105 (__arm_vbicq_f16): Likewise.
21106 (__arm_vandq_f16): Likewise.
21107 (__arm_vaddq_n_f16): Likewise.
21108 (__arm_vabdq_f16): Likewise.
21109 (__arm_vshlltq_n_s8): Likewise.
21110 (__arm_vshllbq_n_s8): Likewise.
21111 (__arm_vorrq_n_s16): Likewise.
21112 (__arm_vbicq_n_s16): Likewise.
21113 (__arm_vqmovntq_u32): Likewise.
21114 (__arm_vqmovnbq_u32): Likewise.
21115 (__arm_vmulltq_poly_p16): Likewise.
21116 (__arm_vmullbq_poly_p16): Likewise.
21117 (__arm_vmovntq_u32): Likewise.
21118 (__arm_vmovnbq_u32): Likewise.
21119 (__arm_vmlaldavxq_u32): Likewise.
21120 (__arm_vmlaldavq_u32): Likewise.
21121 (__arm_vqmovuntq_s32): Likewise.
21122 (__arm_vqmovunbq_s32): Likewise.
21123 (__arm_vshlltq_n_u16): Likewise.
21124 (__arm_vshllbq_n_u16): Likewise.
21125 (__arm_vorrq_n_u32): Likewise.
21126 (__arm_vbicq_n_u32): Likewise.
21127 (__arm_vcmpneq_n_f32): Likewise.
21128 (__arm_vcmpneq_f32): Likewise.
21129 (__arm_vcmpltq_n_f32): Likewise.
21130 (__arm_vcmpltq_f32): Likewise.
21131 (__arm_vcmpleq_n_f32): Likewise.
21132 (__arm_vcmpleq_f32): Likewise.
21133 (__arm_vcmpgtq_n_f32): Likewise.
21134 (__arm_vcmpgtq_f32): Likewise.
21135 (__arm_vcmpgeq_n_f32): Likewise.
21136 (__arm_vcmpgeq_f32): Likewise.
21137 (__arm_vcmpeqq_n_f32): Likewise.
21138 (__arm_vcmpeqq_f32): Likewise.
21139 (__arm_vsubq_f32): Likewise.
21140 (__arm_vqmovntq_s32): Likewise.
21141 (__arm_vqmovnbq_s32): Likewise.
21142 (__arm_vqdmulltq_s32): Likewise.
21143 (__arm_vqdmulltq_n_s32): Likewise.
21144 (__arm_vqdmullbq_s32): Likewise.
21145 (__arm_vqdmullbq_n_s32): Likewise.
21146 (__arm_vorrq_f32): Likewise.
21147 (__arm_vornq_f32): Likewise.
21148 (__arm_vmulq_n_f32): Likewise.
21149 (__arm_vmulq_f32): Likewise.
21150 (__arm_vmovntq_s32): Likewise.
21151 (__arm_vmovnbq_s32): Likewise.
21152 (__arm_vmlsldavxq_s32): Likewise.
21153 (__arm_vmlsldavq_s32): Likewise.
21154 (__arm_vmlaldavxq_s32): Likewise.
21155 (__arm_vmlaldavq_s32): Likewise.
21156 (__arm_vminnmvq_f32): Likewise.
21157 (__arm_vminnmq_f32): Likewise.
21158 (__arm_vminnmavq_f32): Likewise.
21159 (__arm_vminnmaq_f32): Likewise.
21160 (__arm_vmaxnmvq_f32): Likewise.
21161 (__arm_vmaxnmq_f32): Likewise.
21162 (__arm_vmaxnmavq_f32): Likewise.
21163 (__arm_vmaxnmaq_f32): Likewise.
21164 (__arm_veorq_f32): Likewise.
21165 (__arm_vcmulq_rot90_f32): Likewise.
21166 (__arm_vcmulq_rot270_f32): Likewise.
21167 (__arm_vcmulq_rot180_f32): Likewise.
21168 (__arm_vcmulq_f32): Likewise.
21169 (__arm_vcaddq_rot90_f32): Likewise.
21170 (__arm_vcaddq_rot270_f32): Likewise.
21171 (__arm_vbicq_f32): Likewise.
21172 (__arm_vandq_f32): Likewise.
21173 (__arm_vaddq_n_f32): Likewise.
21174 (__arm_vabdq_f32): Likewise.
21175 (__arm_vshlltq_n_s16): Likewise.
21176 (__arm_vshllbq_n_s16): Likewise.
21177 (__arm_vorrq_n_s32): Likewise.
21178 (__arm_vbicq_n_s32): Likewise.
21179 (__arm_vrmlaldavhq_u32): Likewise.
21180 (__arm_vctp8q_m): Likewise.
21181 (__arm_vctp64q_m): Likewise.
21182 (__arm_vctp32q_m): Likewise.
21183 (__arm_vctp16q_m): Likewise.
21184 (__arm_vaddlvaq_u32): Likewise.
21185 (__arm_vrmlsldavhxq_s32): Likewise.
21186 (__arm_vrmlsldavhq_s32): Likewise.
21187 (__arm_vrmlaldavhxq_s32): Likewise.
21188 (__arm_vrmlaldavhq_s32): Likewise.
21189 (__arm_vcvttq_f16_f32): Likewise.
21190 (__arm_vcvtbq_f16_f32): Likewise.
21191 (__arm_vaddlvaq_s32): Likewise.
21192 (vst4q): Define polymorphic variant.
21193 (vrndxq): Likewise.
21195 (vrndpq): Likewise.
21196 (vrndnq): Likewise.
21197 (vrndmq): Likewise.
21198 (vrndaq): Likewise.
21199 (vrev64q): Likewise.
21201 (vdupq_n): Likewise.
21203 (vrev32q): Likewise.
21204 (vcvtbq_f32): Likewise.
21205 (vcvttq_f32): Likewise.
21207 (vsubq_n): Likewise.
21208 (vbrsrq_n): Likewise.
21209 (vcvtq_n): Likewise.
21213 (vaddq_n): Likewise.
21217 (vmulq_n): Likewise.
21219 (vcaddq_rot270): Likewise.
21220 (vcmpeqq_n): Likewise.
21221 (vcmpeqq): Likewise.
21222 (vcaddq_rot90): Likewise.
21223 (vcmpgeq_n): Likewise.
21224 (vcmpgeq): Likewise.
21225 (vcmpgtq_n): Likewise.
21226 (vcmpgtq): Likewise.
21227 (vcmpgtq): Likewise.
21228 (vcmpleq_n): Likewise.
21229 (vcmpleq_n): Likewise.
21230 (vcmpleq): Likewise.
21231 (vcmpleq): Likewise.
21232 (vcmpltq_n): Likewise.
21233 (vcmpltq_n): Likewise.
21234 (vcmpltq): Likewise.
21235 (vcmpltq): Likewise.
21236 (vcmpneq_n): Likewise.
21237 (vcmpneq_n): Likewise.
21238 (vcmpneq): Likewise.
21239 (vcmpneq): Likewise.
21240 (vcmulq): Likewise.
21241 (vcmulq): Likewise.
21242 (vcmulq_rot180): Likewise.
21243 (vcmulq_rot180): Likewise.
21244 (vcmulq_rot270): Likewise.
21245 (vcmulq_rot270): Likewise.
21246 (vcmulq_rot90): Likewise.
21247 (vcmulq_rot90): Likewise.
21250 (vmaxnmaq): Likewise.
21251 (vmaxnmaq): Likewise.
21252 (vmaxnmavq): Likewise.
21253 (vmaxnmavq): Likewise.
21254 (vmaxnmq): Likewise.
21255 (vmaxnmq): Likewise.
21256 (vmaxnmvq): Likewise.
21257 (vmaxnmvq): Likewise.
21258 (vminnmaq): Likewise.
21259 (vminnmaq): Likewise.
21260 (vminnmavq): Likewise.
21261 (vminnmavq): Likewise.
21262 (vminnmq): Likewise.
21263 (vminnmq): Likewise.
21264 (vminnmvq): Likewise.
21265 (vminnmvq): Likewise.
21266 (vbicq_n): Likewise.
21267 (vqmovntq): Likewise.
21268 (vqmovntq): Likewise.
21269 (vqmovnbq): Likewise.
21270 (vqmovnbq): Likewise.
21271 (vmulltq_poly): Likewise.
21272 (vmulltq_poly): Likewise.
21273 (vmullbq_poly): Likewise.
21274 (vmullbq_poly): Likewise.
21275 (vmovntq): Likewise.
21276 (vmovntq): Likewise.
21277 (vmovnbq): Likewise.
21278 (vmovnbq): Likewise.
21279 (vmlaldavxq): Likewise.
21280 (vmlaldavxq): Likewise.
21281 (vqmovuntq): Likewise.
21282 (vqmovuntq): Likewise.
21283 (vshlltq_n): Likewise.
21284 (vshlltq_n): Likewise.
21285 (vshllbq_n): Likewise.
21286 (vshllbq_n): Likewise.
21287 (vorrq_n): Likewise.
21288 (vorrq_n): Likewise.
21289 (vmlaldavq): Likewise.
21290 (vmlaldavq): Likewise.
21291 (vqmovunbq): Likewise.
21292 (vqmovunbq): Likewise.
21293 (vqdmulltq_n): Likewise.
21294 (vqdmulltq_n): Likewise.
21295 (vqdmulltq): Likewise.
21296 (vqdmulltq): Likewise.
21297 (vqdmullbq_n): Likewise.
21298 (vqdmullbq_n): Likewise.
21299 (vqdmullbq): Likewise.
21300 (vqdmullbq): Likewise.
21301 (vaddlvaq): Likewise.
21302 (vaddlvaq): Likewise.
21303 (vrmlaldavhq): Likewise.
21304 (vrmlaldavhq): Likewise.
21305 (vrmlaldavhxq): Likewise.
21306 (vrmlaldavhxq): Likewise.
21307 (vrmlsldavhq): Likewise.
21308 (vrmlsldavhq): Likewise.
21309 (vrmlsldavhxq): Likewise.
21310 (vrmlsldavhxq): Likewise.
21311 (vmlsldavxq): Likewise.
21312 (vmlsldavxq): Likewise.
21313 (vmlsldavq): Likewise.
21314 (vmlsldavq): Likewise.
21315 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
21316 (BINOP_NONE_NONE_NONE): Likewise.
21317 (BINOP_UNONE_NONE_NONE): Likewise.
21318 (BINOP_UNONE_UNONE_IMM): Likewise.
21319 (BINOP_UNONE_UNONE_NONE): Likewise.
21320 (BINOP_UNONE_UNONE_UNONE): Likewise.
21321 * config/arm/mve.md (mve_vabdq_f<mode>): Define RTL pattern.
21322 (mve_vaddlvaq_<supf>v4si): Likewise.
21323 (mve_vaddq_n_f<mode>): Likewise.
21324 (mve_vandq_f<mode>): Likewise.
21325 (mve_vbicq_f<mode>): Likewise.
21326 (mve_vbicq_n_<supf><mode>): Likewise.
21327 (mve_vcaddq_rot270_f<mode>): Likewise.
21328 (mve_vcaddq_rot90_f<mode>): Likewise.
21329 (mve_vcmpeqq_f<mode>): Likewise.
21330 (mve_vcmpeqq_n_f<mode>): Likewise.
21331 (mve_vcmpgeq_f<mode>): Likewise.
21332 (mve_vcmpgeq_n_f<mode>): Likewise.
21333 (mve_vcmpgtq_f<mode>): Likewise.
21334 (mve_vcmpgtq_n_f<mode>): Likewise.
21335 (mve_vcmpleq_f<mode>): Likewise.
21336 (mve_vcmpleq_n_f<mode>): Likewise.
21337 (mve_vcmpltq_f<mode>): Likewise.
21338 (mve_vcmpltq_n_f<mode>): Likewise.
21339 (mve_vcmpneq_f<mode>): Likewise.
21340 (mve_vcmpneq_n_f<mode>): Likewise.
21341 (mve_vcmulq_f<mode>): Likewise.
21342 (mve_vcmulq_rot180_f<mode>): Likewise.
21343 (mve_vcmulq_rot270_f<mode>): Likewise.
21344 (mve_vcmulq_rot90_f<mode>): Likewise.
21345 (mve_vctp<mode1>q_mhi): Likewise.
21346 (mve_vcvtbq_f16_f32v8hf): Likewise.
21347 (mve_vcvttq_f16_f32v8hf): Likewise.
21348 (mve_veorq_f<mode>): Likewise.
21349 (mve_vmaxnmaq_f<mode>): Likewise.
21350 (mve_vmaxnmavq_f<mode>): Likewise.
21351 (mve_vmaxnmq_f<mode>): Likewise.
21352 (mve_vmaxnmvq_f<mode>): Likewise.
21353 (mve_vminnmaq_f<mode>): Likewise.
21354 (mve_vminnmavq_f<mode>): Likewise.
21355 (mve_vminnmq_f<mode>): Likewise.
21356 (mve_vminnmvq_f<mode>): Likewise.
21357 (mve_vmlaldavq_<supf><mode>): Likewise.
21358 (mve_vmlaldavxq_<supf><mode>): Likewise.
21359 (mve_vmlsldavq_s<mode>): Likewise.
21360 (mve_vmlsldavxq_s<mode>): Likewise.
21361 (mve_vmovnbq_<supf><mode>): Likewise.
21362 (mve_vmovntq_<supf><mode>): Likewise.
21363 (mve_vmulq_f<mode>): Likewise.
21364 (mve_vmulq_n_f<mode>): Likewise.
21365 (mve_vornq_f<mode>): Likewise.
21366 (mve_vorrq_f<mode>): Likewise.
21367 (mve_vorrq_n_<supf><mode>): Likewise.
21368 (mve_vqdmullbq_n_s<mode>): Likewise.
21369 (mve_vqdmullbq_s<mode>): Likewise.
21370 (mve_vqdmulltq_n_s<mode>): Likewise.
21371 (mve_vqdmulltq_s<mode>): Likewise.
21372 (mve_vqmovnbq_<supf><mode>): Likewise.
21373 (mve_vqmovntq_<supf><mode>): Likewise.
21374 (mve_vqmovunbq_s<mode>): Likewise.
21375 (mve_vqmovuntq_s<mode>): Likewise.
21376 (mve_vrmlaldavhxq_sv4si): Likewise.
21377 (mve_vrmlsldavhq_sv4si): Likewise.
21378 (mve_vrmlsldavhxq_sv4si): Likewise.
21379 (mve_vshllbq_n_<supf><mode>): Likewise.
21380 (mve_vshlltq_n_<supf><mode>): Likewise.
21381 (mve_vsubq_f<mode>): Likewise.
21382 (mve_vmulltq_poly_p<mode>): Likewise.
21383 (mve_vmullbq_poly_p<mode>): Likewise.
21384 (mve_vrmlaldavhq_<supf>v4si): Likewise.
21386 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
21387 Mihail Ionescu <mihail.ionescu@arm.com>
21388 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21390 * config/arm/arm_mve.h (vsubq_u8): Define macro.
21391 (vsubq_n_u8): Likewise.
21392 (vrmulhq_u8): Likewise.
21393 (vrhaddq_u8): Likewise.
21394 (vqsubq_u8): Likewise.
21395 (vqsubq_n_u8): Likewise.
21396 (vqaddq_u8): Likewise.
21397 (vqaddq_n_u8): Likewise.
21398 (vorrq_u8): Likewise.
21399 (vornq_u8): Likewise.
21400 (vmulq_u8): Likewise.
21401 (vmulq_n_u8): Likewise.
21402 (vmulltq_int_u8): Likewise.
21403 (vmullbq_int_u8): Likewise.
21404 (vmulhq_u8): Likewise.
21405 (vmladavq_u8): Likewise.
21406 (vminvq_u8): Likewise.
21407 (vminq_u8): Likewise.
21408 (vmaxvq_u8): Likewise.
21409 (vmaxq_u8): Likewise.
21410 (vhsubq_u8): Likewise.
21411 (vhsubq_n_u8): Likewise.
21412 (vhaddq_u8): Likewise.
21413 (vhaddq_n_u8): Likewise.
21414 (veorq_u8): Likewise.
21415 (vcmpneq_n_u8): Likewise.
21416 (vcmphiq_u8): Likewise.
21417 (vcmphiq_n_u8): Likewise.
21418 (vcmpeqq_u8): Likewise.
21419 (vcmpeqq_n_u8): Likewise.
21420 (vcmpcsq_u8): Likewise.
21421 (vcmpcsq_n_u8): Likewise.
21422 (vcaddq_rot90_u8): Likewise.
21423 (vcaddq_rot270_u8): Likewise.
21424 (vbicq_u8): Likewise.
21425 (vandq_u8): Likewise.
21426 (vaddvq_p_u8): Likewise.
21427 (vaddvaq_u8): Likewise.
21428 (vaddq_n_u8): Likewise.
21429 (vabdq_u8): Likewise.
21430 (vshlq_r_u8): Likewise.
21431 (vrshlq_u8): Likewise.
21432 (vrshlq_n_u8): Likewise.
21433 (vqshlq_u8): Likewise.
21434 (vqshlq_r_u8): Likewise.
21435 (vqrshlq_u8): Likewise.
21436 (vqrshlq_n_u8): Likewise.
21437 (vminavq_s8): Likewise.
21438 (vminaq_s8): Likewise.
21439 (vmaxavq_s8): Likewise.
21440 (vmaxaq_s8): Likewise.
21441 (vbrsrq_n_u8): Likewise.
21442 (vshlq_n_u8): Likewise.
21443 (vrshrq_n_u8): Likewise.
21444 (vqshlq_n_u8): Likewise.
21445 (vcmpneq_n_s8): Likewise.
21446 (vcmpltq_s8): Likewise.
21447 (vcmpltq_n_s8): Likewise.
21448 (vcmpleq_s8): Likewise.
21449 (vcmpleq_n_s8): Likewise.
21450 (vcmpgtq_s8): Likewise.
21451 (vcmpgtq_n_s8): Likewise.
21452 (vcmpgeq_s8): Likewise.
21453 (vcmpgeq_n_s8): Likewise.
21454 (vcmpeqq_s8): Likewise.
21455 (vcmpeqq_n_s8): Likewise.
21456 (vqshluq_n_s8): Likewise.
21457 (vaddvq_p_s8): Likewise.
21458 (vsubq_s8): Likewise.
21459 (vsubq_n_s8): Likewise.
21460 (vshlq_r_s8): Likewise.
21461 (vrshlq_s8): Likewise.
21462 (vrshlq_n_s8): Likewise.
21463 (vrmulhq_s8): Likewise.
21464 (vrhaddq_s8): Likewise.
21465 (vqsubq_s8): Likewise.
21466 (vqsubq_n_s8): Likewise.
21467 (vqshlq_s8): Likewise.
21468 (vqshlq_r_s8): Likewise.
21469 (vqrshlq_s8): Likewise.
21470 (vqrshlq_n_s8): Likewise.
21471 (vqrdmulhq_s8): Likewise.
21472 (vqrdmulhq_n_s8): Likewise.
21473 (vqdmulhq_s8): Likewise.
21474 (vqdmulhq_n_s8): Likewise.
21475 (vqaddq_s8): Likewise.
21476 (vqaddq_n_s8): Likewise.
21477 (vorrq_s8): Likewise.
21478 (vornq_s8): Likewise.
21479 (vmulq_s8): Likewise.
21480 (vmulq_n_s8): Likewise.
21481 (vmulltq_int_s8): Likewise.
21482 (vmullbq_int_s8): Likewise.
21483 (vmulhq_s8): Likewise.
21484 (vmlsdavxq_s8): Likewise.
21485 (vmlsdavq_s8): Likewise.
21486 (vmladavxq_s8): Likewise.
21487 (vmladavq_s8): Likewise.
21488 (vminvq_s8): Likewise.
21489 (vminq_s8): Likewise.
21490 (vmaxvq_s8): Likewise.
21491 (vmaxq_s8): Likewise.
21492 (vhsubq_s8): Likewise.
21493 (vhsubq_n_s8): Likewise.
21494 (vhcaddq_rot90_s8): Likewise.
21495 (vhcaddq_rot270_s8): Likewise.
21496 (vhaddq_s8): Likewise.
21497 (vhaddq_n_s8): Likewise.
21498 (veorq_s8): Likewise.
21499 (vcaddq_rot90_s8): Likewise.
21500 (vcaddq_rot270_s8): Likewise.
21501 (vbrsrq_n_s8): Likewise.
21502 (vbicq_s8): Likewise.
21503 (vandq_s8): Likewise.
21504 (vaddvaq_s8): Likewise.
21505 (vaddq_n_s8): Likewise.
21506 (vabdq_s8): Likewise.
21507 (vshlq_n_s8): Likewise.
21508 (vrshrq_n_s8): Likewise.
21509 (vqshlq_n_s8): Likewise.
21510 (vsubq_u16): Likewise.
21511 (vsubq_n_u16): Likewise.
21512 (vrmulhq_u16): Likewise.
21513 (vrhaddq_u16): Likewise.
21514 (vqsubq_u16): Likewise.
21515 (vqsubq_n_u16): Likewise.
21516 (vqaddq_u16): Likewise.
21517 (vqaddq_n_u16): Likewise.
21518 (vorrq_u16): Likewise.
21519 (vornq_u16): Likewise.
21520 (vmulq_u16): Likewise.
21521 (vmulq_n_u16): Likewise.
21522 (vmulltq_int_u16): Likewise.
21523 (vmullbq_int_u16): Likewise.
21524 (vmulhq_u16): Likewise.
21525 (vmladavq_u16): Likewise.
21526 (vminvq_u16): Likewise.
21527 (vminq_u16): Likewise.
21528 (vmaxvq_u16): Likewise.
21529 (vmaxq_u16): Likewise.
21530 (vhsubq_u16): Likewise.
21531 (vhsubq_n_u16): Likewise.
21532 (vhaddq_u16): Likewise.
21533 (vhaddq_n_u16): Likewise.
21534 (veorq_u16): Likewise.
21535 (vcmpneq_n_u16): Likewise.
21536 (vcmphiq_u16): Likewise.
21537 (vcmphiq_n_u16): Likewise.
21538 (vcmpeqq_u16): Likewise.
21539 (vcmpeqq_n_u16): Likewise.
21540 (vcmpcsq_u16): Likewise.
21541 (vcmpcsq_n_u16): Likewise.
21542 (vcaddq_rot90_u16): Likewise.
21543 (vcaddq_rot270_u16): Likewise.
21544 (vbicq_u16): Likewise.
21545 (vandq_u16): Likewise.
21546 (vaddvq_p_u16): Likewise.
21547 (vaddvaq_u16): Likewise.
21548 (vaddq_n_u16): Likewise.
21549 (vabdq_u16): Likewise.
21550 (vshlq_r_u16): Likewise.
21551 (vrshlq_u16): Likewise.
21552 (vrshlq_n_u16): Likewise.
21553 (vqshlq_u16): Likewise.
21554 (vqshlq_r_u16): Likewise.
21555 (vqrshlq_u16): Likewise.
21556 (vqrshlq_n_u16): Likewise.
21557 (vminavq_s16): Likewise.
21558 (vminaq_s16): Likewise.
21559 (vmaxavq_s16): Likewise.
21560 (vmaxaq_s16): Likewise.
21561 (vbrsrq_n_u16): Likewise.
21562 (vshlq_n_u16): Likewise.
21563 (vrshrq_n_u16): Likewise.
21564 (vqshlq_n_u16): Likewise.
21565 (vcmpneq_n_s16): Likewise.
21566 (vcmpltq_s16): Likewise.
21567 (vcmpltq_n_s16): Likewise.
21568 (vcmpleq_s16): Likewise.
21569 (vcmpleq_n_s16): Likewise.
21570 (vcmpgtq_s16): Likewise.
21571 (vcmpgtq_n_s16): Likewise.
21572 (vcmpgeq_s16): Likewise.
21573 (vcmpgeq_n_s16): Likewise.
21574 (vcmpeqq_s16): Likewise.
21575 (vcmpeqq_n_s16): Likewise.
21576 (vqshluq_n_s16): Likewise.
21577 (vaddvq_p_s16): Likewise.
21578 (vsubq_s16): Likewise.
21579 (vsubq_n_s16): Likewise.
21580 (vshlq_r_s16): Likewise.
21581 (vrshlq_s16): Likewise.
21582 (vrshlq_n_s16): Likewise.
21583 (vrmulhq_s16): Likewise.
21584 (vrhaddq_s16): Likewise.
21585 (vqsubq_s16): Likewise.
21586 (vqsubq_n_s16): Likewise.
21587 (vqshlq_s16): Likewise.
21588 (vqshlq_r_s16): Likewise.
21589 (vqrshlq_s16): Likewise.
21590 (vqrshlq_n_s16): Likewise.
21591 (vqrdmulhq_s16): Likewise.
21592 (vqrdmulhq_n_s16): Likewise.
21593 (vqdmulhq_s16): Likewise.
21594 (vqdmulhq_n_s16): Likewise.
21595 (vqaddq_s16): Likewise.
21596 (vqaddq_n_s16): Likewise.
21597 (vorrq_s16): Likewise.
21598 (vornq_s16): Likewise.
21599 (vmulq_s16): Likewise.
21600 (vmulq_n_s16): Likewise.
21601 (vmulltq_int_s16): Likewise.
21602 (vmullbq_int_s16): Likewise.
21603 (vmulhq_s16): Likewise.
21604 (vmlsdavxq_s16): Likewise.
21605 (vmlsdavq_s16): Likewise.
21606 (vmladavxq_s16): Likewise.
21607 (vmladavq_s16): Likewise.
21608 (vminvq_s16): Likewise.
21609 (vminq_s16): Likewise.
21610 (vmaxvq_s16): Likewise.
21611 (vmaxq_s16): Likewise.
21612 (vhsubq_s16): Likewise.
21613 (vhsubq_n_s16): Likewise.
21614 (vhcaddq_rot90_s16): Likewise.
21615 (vhcaddq_rot270_s16): Likewise.
21616 (vhaddq_s16): Likewise.
21617 (vhaddq_n_s16): Likewise.
21618 (veorq_s16): Likewise.
21619 (vcaddq_rot90_s16): Likewise.
21620 (vcaddq_rot270_s16): Likewise.
21621 (vbrsrq_n_s16): Likewise.
21622 (vbicq_s16): Likewise.
21623 (vandq_s16): Likewise.
21624 (vaddvaq_s16): Likewise.
21625 (vaddq_n_s16): Likewise.
21626 (vabdq_s16): Likewise.
21627 (vshlq_n_s16): Likewise.
21628 (vrshrq_n_s16): Likewise.
21629 (vqshlq_n_s16): Likewise.
21630 (vsubq_u32): Likewise.
21631 (vsubq_n_u32): Likewise.
21632 (vrmulhq_u32): Likewise.
21633 (vrhaddq_u32): Likewise.
21634 (vqsubq_u32): Likewise.
21635 (vqsubq_n_u32): Likewise.
21636 (vqaddq_u32): Likewise.
21637 (vqaddq_n_u32): Likewise.
21638 (vorrq_u32): Likewise.
21639 (vornq_u32): Likewise.
21640 (vmulq_u32): Likewise.
21641 (vmulq_n_u32): Likewise.
21642 (vmulltq_int_u32): Likewise.
21643 (vmullbq_int_u32): Likewise.
21644 (vmulhq_u32): Likewise.
21645 (vmladavq_u32): Likewise.
21646 (vminvq_u32): Likewise.
21647 (vminq_u32): Likewise.
21648 (vmaxvq_u32): Likewise.
21649 (vmaxq_u32): Likewise.
21650 (vhsubq_u32): Likewise.
21651 (vhsubq_n_u32): Likewise.
21652 (vhaddq_u32): Likewise.
21653 (vhaddq_n_u32): Likewise.
21654 (veorq_u32): Likewise.
21655 (vcmpneq_n_u32): Likewise.
21656 (vcmphiq_u32): Likewise.
21657 (vcmphiq_n_u32): Likewise.
21658 (vcmpeqq_u32): Likewise.
21659 (vcmpeqq_n_u32): Likewise.
21660 (vcmpcsq_u32): Likewise.
21661 (vcmpcsq_n_u32): Likewise.
21662 (vcaddq_rot90_u32): Likewise.
21663 (vcaddq_rot270_u32): Likewise.
21664 (vbicq_u32): Likewise.
21665 (vandq_u32): Likewise.
21666 (vaddvq_p_u32): Likewise.
21667 (vaddvaq_u32): Likewise.
21668 (vaddq_n_u32): Likewise.
21669 (vabdq_u32): Likewise.
21670 (vshlq_r_u32): Likewise.
21671 (vrshlq_u32): Likewise.
21672 (vrshlq_n_u32): Likewise.
21673 (vqshlq_u32): Likewise.
21674 (vqshlq_r_u32): Likewise.
21675 (vqrshlq_u32): Likewise.
21676 (vqrshlq_n_u32): Likewise.
21677 (vminavq_s32): Likewise.
21678 (vminaq_s32): Likewise.
21679 (vmaxavq_s32): Likewise.
21680 (vmaxaq_s32): Likewise.
21681 (vbrsrq_n_u32): Likewise.
21682 (vshlq_n_u32): Likewise.
21683 (vrshrq_n_u32): Likewise.
21684 (vqshlq_n_u32): Likewise.
21685 (vcmpneq_n_s32): Likewise.
21686 (vcmpltq_s32): Likewise.
21687 (vcmpltq_n_s32): Likewise.
21688 (vcmpleq_s32): Likewise.
21689 (vcmpleq_n_s32): Likewise.
21690 (vcmpgtq_s32): Likewise.
21691 (vcmpgtq_n_s32): Likewise.
21692 (vcmpgeq_s32): Likewise.
21693 (vcmpgeq_n_s32): Likewise.
21694 (vcmpeqq_s32): Likewise.
21695 (vcmpeqq_n_s32): Likewise.
21696 (vqshluq_n_s32): Likewise.
21697 (vaddvq_p_s32): Likewise.
21698 (vsubq_s32): Likewise.
21699 (vsubq_n_s32): Likewise.
21700 (vshlq_r_s32): Likewise.
21701 (vrshlq_s32): Likewise.
21702 (vrshlq_n_s32): Likewise.
21703 (vrmulhq_s32): Likewise.
21704 (vrhaddq_s32): Likewise.
21705 (vqsubq_s32): Likewise.
21706 (vqsubq_n_s32): Likewise.
21707 (vqshlq_s32): Likewise.
21708 (vqshlq_r_s32): Likewise.
21709 (vqrshlq_s32): Likewise.
21710 (vqrshlq_n_s32): Likewise.
21711 (vqrdmulhq_s32): Likewise.
21712 (vqrdmulhq_n_s32): Likewise.
21713 (vqdmulhq_s32): Likewise.
21714 (vqdmulhq_n_s32): Likewise.
21715 (vqaddq_s32): Likewise.
21716 (vqaddq_n_s32): Likewise.
21717 (vorrq_s32): Likewise.
21718 (vornq_s32): Likewise.
21719 (vmulq_s32): Likewise.
21720 (vmulq_n_s32): Likewise.
21721 (vmulltq_int_s32): Likewise.
21722 (vmullbq_int_s32): Likewise.
21723 (vmulhq_s32): Likewise.
21724 (vmlsdavxq_s32): Likewise.
21725 (vmlsdavq_s32): Likewise.
21726 (vmladavxq_s32): Likewise.
21727 (vmladavq_s32): Likewise.
21728 (vminvq_s32): Likewise.
21729 (vminq_s32): Likewise.
21730 (vmaxvq_s32): Likewise.
21731 (vmaxq_s32): Likewise.
21732 (vhsubq_s32): Likewise.
21733 (vhsubq_n_s32): Likewise.
21734 (vhcaddq_rot90_s32): Likewise.
21735 (vhcaddq_rot270_s32): Likewise.
21736 (vhaddq_s32): Likewise.
21737 (vhaddq_n_s32): Likewise.
21738 (veorq_s32): Likewise.
21739 (vcaddq_rot90_s32): Likewise.
21740 (vcaddq_rot270_s32): Likewise.
21741 (vbrsrq_n_s32): Likewise.
21742 (vbicq_s32): Likewise.
21743 (vandq_s32): Likewise.
21744 (vaddvaq_s32): Likewise.
21745 (vaddq_n_s32): Likewise.
21746 (vabdq_s32): Likewise.
21747 (vshlq_n_s32): Likewise.
21748 (vrshrq_n_s32): Likewise.
21749 (vqshlq_n_s32): Likewise.
21750 (__arm_vsubq_u8): Define intrinsic.
21751 (__arm_vsubq_n_u8): Likewise.
21752 (__arm_vrmulhq_u8): Likewise.
21753 (__arm_vrhaddq_u8): Likewise.
21754 (__arm_vqsubq_u8): Likewise.
21755 (__arm_vqsubq_n_u8): Likewise.
21756 (__arm_vqaddq_u8): Likewise.
21757 (__arm_vqaddq_n_u8): Likewise.
21758 (__arm_vorrq_u8): Likewise.
21759 (__arm_vornq_u8): Likewise.
21760 (__arm_vmulq_u8): Likewise.
21761 (__arm_vmulq_n_u8): Likewise.
21762 (__arm_vmulltq_int_u8): Likewise.
21763 (__arm_vmullbq_int_u8): Likewise.
21764 (__arm_vmulhq_u8): Likewise.
21765 (__arm_vmladavq_u8): Likewise.
21766 (__arm_vminvq_u8): Likewise.
21767 (__arm_vminq_u8): Likewise.
21768 (__arm_vmaxvq_u8): Likewise.
21769 (__arm_vmaxq_u8): Likewise.
21770 (__arm_vhsubq_u8): Likewise.
21771 (__arm_vhsubq_n_u8): Likewise.
21772 (__arm_vhaddq_u8): Likewise.
21773 (__arm_vhaddq_n_u8): Likewise.
21774 (__arm_veorq_u8): Likewise.
21775 (__arm_vcmpneq_n_u8): Likewise.
21776 (__arm_vcmphiq_u8): Likewise.
21777 (__arm_vcmphiq_n_u8): Likewise.
21778 (__arm_vcmpeqq_u8): Likewise.
21779 (__arm_vcmpeqq_n_u8): Likewise.
21780 (__arm_vcmpcsq_u8): Likewise.
21781 (__arm_vcmpcsq_n_u8): Likewise.
21782 (__arm_vcaddq_rot90_u8): Likewise.
21783 (__arm_vcaddq_rot270_u8): Likewise.
21784 (__arm_vbicq_u8): Likewise.
21785 (__arm_vandq_u8): Likewise.
21786 (__arm_vaddvq_p_u8): Likewise.
21787 (__arm_vaddvaq_u8): Likewise.
21788 (__arm_vaddq_n_u8): Likewise.
21789 (__arm_vabdq_u8): Likewise.
21790 (__arm_vshlq_r_u8): Likewise.
21791 (__arm_vrshlq_u8): Likewise.
21792 (__arm_vrshlq_n_u8): Likewise.
21793 (__arm_vqshlq_u8): Likewise.
21794 (__arm_vqshlq_r_u8): Likewise.
21795 (__arm_vqrshlq_u8): Likewise.
21796 (__arm_vqrshlq_n_u8): Likewise.
21797 (__arm_vminavq_s8): Likewise.
21798 (__arm_vminaq_s8): Likewise.
21799 (__arm_vmaxavq_s8): Likewise.
21800 (__arm_vmaxaq_s8): Likewise.
21801 (__arm_vbrsrq_n_u8): Likewise.
21802 (__arm_vshlq_n_u8): Likewise.
21803 (__arm_vrshrq_n_u8): Likewise.
21804 (__arm_vqshlq_n_u8): Likewise.
21805 (__arm_vcmpneq_n_s8): Likewise.
21806 (__arm_vcmpltq_s8): Likewise.
21807 (__arm_vcmpltq_n_s8): Likewise.
21808 (__arm_vcmpleq_s8): Likewise.
21809 (__arm_vcmpleq_n_s8): Likewise.
21810 (__arm_vcmpgtq_s8): Likewise.
21811 (__arm_vcmpgtq_n_s8): Likewise.
21812 (__arm_vcmpgeq_s8): Likewise.
21813 (__arm_vcmpgeq_n_s8): Likewise.
21814 (__arm_vcmpeqq_s8): Likewise.
21815 (__arm_vcmpeqq_n_s8): Likewise.
21816 (__arm_vqshluq_n_s8): Likewise.
21817 (__arm_vaddvq_p_s8): Likewise.
21818 (__arm_vsubq_s8): Likewise.
21819 (__arm_vsubq_n_s8): Likewise.
21820 (__arm_vshlq_r_s8): Likewise.
21821 (__arm_vrshlq_s8): Likewise.
21822 (__arm_vrshlq_n_s8): Likewise.
21823 (__arm_vrmulhq_s8): Likewise.
21824 (__arm_vrhaddq_s8): Likewise.
21825 (__arm_vqsubq_s8): Likewise.
21826 (__arm_vqsubq_n_s8): Likewise.
21827 (__arm_vqshlq_s8): Likewise.
21828 (__arm_vqshlq_r_s8): Likewise.
21829 (__arm_vqrshlq_s8): Likewise.
21830 (__arm_vqrshlq_n_s8): Likewise.
21831 (__arm_vqrdmulhq_s8): Likewise.
21832 (__arm_vqrdmulhq_n_s8): Likewise.
21833 (__arm_vqdmulhq_s8): Likewise.
21834 (__arm_vqdmulhq_n_s8): Likewise.
21835 (__arm_vqaddq_s8): Likewise.
21836 (__arm_vqaddq_n_s8): Likewise.
21837 (__arm_vorrq_s8): Likewise.
21838 (__arm_vornq_s8): Likewise.
21839 (__arm_vmulq_s8): Likewise.
21840 (__arm_vmulq_n_s8): Likewise.
21841 (__arm_vmulltq_int_s8): Likewise.
21842 (__arm_vmullbq_int_s8): Likewise.
21843 (__arm_vmulhq_s8): Likewise.
21844 (__arm_vmlsdavxq_s8): Likewise.
21845 (__arm_vmlsdavq_s8): Likewise.
21846 (__arm_vmladavxq_s8): Likewise.
21847 (__arm_vmladavq_s8): Likewise.
21848 (__arm_vminvq_s8): Likewise.
21849 (__arm_vminq_s8): Likewise.
21850 (__arm_vmaxvq_s8): Likewise.
21851 (__arm_vmaxq_s8): Likewise.
21852 (__arm_vhsubq_s8): Likewise.
21853 (__arm_vhsubq_n_s8): Likewise.
21854 (__arm_vhcaddq_rot90_s8): Likewise.
21855 (__arm_vhcaddq_rot270_s8): Likewise.
21856 (__arm_vhaddq_s8): Likewise.
21857 (__arm_vhaddq_n_s8): Likewise.
21858 (__arm_veorq_s8): Likewise.
21859 (__arm_vcaddq_rot90_s8): Likewise.
21860 (__arm_vcaddq_rot270_s8): Likewise.
21861 (__arm_vbrsrq_n_s8): Likewise.
21862 (__arm_vbicq_s8): Likewise.
21863 (__arm_vandq_s8): Likewise.
21864 (__arm_vaddvaq_s8): Likewise.
21865 (__arm_vaddq_n_s8): Likewise.
21866 (__arm_vabdq_s8): Likewise.
21867 (__arm_vshlq_n_s8): Likewise.
21868 (__arm_vrshrq_n_s8): Likewise.
21869 (__arm_vqshlq_n_s8): Likewise.
21870 (__arm_vsubq_u16): Likewise.
21871 (__arm_vsubq_n_u16): Likewise.
21872 (__arm_vrmulhq_u16): Likewise.
21873 (__arm_vrhaddq_u16): Likewise.
21874 (__arm_vqsubq_u16): Likewise.
21875 (__arm_vqsubq_n_u16): Likewise.
21876 (__arm_vqaddq_u16): Likewise.
21877 (__arm_vqaddq_n_u16): Likewise.
21878 (__arm_vorrq_u16): Likewise.
21879 (__arm_vornq_u16): Likewise.
21880 (__arm_vmulq_u16): Likewise.
21881 (__arm_vmulq_n_u16): Likewise.
21882 (__arm_vmulltq_int_u16): Likewise.
21883 (__arm_vmullbq_int_u16): Likewise.
21884 (__arm_vmulhq_u16): Likewise.
21885 (__arm_vmladavq_u16): Likewise.
21886 (__arm_vminvq_u16): Likewise.
21887 (__arm_vminq_u16): Likewise.
21888 (__arm_vmaxvq_u16): Likewise.
21889 (__arm_vmaxq_u16): Likewise.
21890 (__arm_vhsubq_u16): Likewise.
21891 (__arm_vhsubq_n_u16): Likewise.
21892 (__arm_vhaddq_u16): Likewise.
21893 (__arm_vhaddq_n_u16): Likewise.
21894 (__arm_veorq_u16): Likewise.
21895 (__arm_vcmpneq_n_u16): Likewise.
21896 (__arm_vcmphiq_u16): Likewise.
21897 (__arm_vcmphiq_n_u16): Likewise.
21898 (__arm_vcmpeqq_u16): Likewise.
21899 (__arm_vcmpeqq_n_u16): Likewise.
21900 (__arm_vcmpcsq_u16): Likewise.
21901 (__arm_vcmpcsq_n_u16): Likewise.
21902 (__arm_vcaddq_rot90_u16): Likewise.
21903 (__arm_vcaddq_rot270_u16): Likewise.
21904 (__arm_vbicq_u16): Likewise.
21905 (__arm_vandq_u16): Likewise.
21906 (__arm_vaddvq_p_u16): Likewise.
21907 (__arm_vaddvaq_u16): Likewise.
21908 (__arm_vaddq_n_u16): Likewise.
21909 (__arm_vabdq_u16): Likewise.
21910 (__arm_vshlq_r_u16): Likewise.
21911 (__arm_vrshlq_u16): Likewise.
21912 (__arm_vrshlq_n_u16): Likewise.
21913 (__arm_vqshlq_u16): Likewise.
21914 (__arm_vqshlq_r_u16): Likewise.
21915 (__arm_vqrshlq_u16): Likewise.
21916 (__arm_vqrshlq_n_u16): Likewise.
21917 (__arm_vminavq_s16): Likewise.
21918 (__arm_vminaq_s16): Likewise.
21919 (__arm_vmaxavq_s16): Likewise.
21920 (__arm_vmaxaq_s16): Likewise.
21921 (__arm_vbrsrq_n_u16): Likewise.
21922 (__arm_vshlq_n_u16): Likewise.
21923 (__arm_vrshrq_n_u16): Likewise.
21924 (__arm_vqshlq_n_u16): Likewise.
21925 (__arm_vcmpneq_n_s16): Likewise.
21926 (__arm_vcmpltq_s16): Likewise.
21927 (__arm_vcmpltq_n_s16): Likewise.
21928 (__arm_vcmpleq_s16): Likewise.
21929 (__arm_vcmpleq_n_s16): Likewise.
21930 (__arm_vcmpgtq_s16): Likewise.
21931 (__arm_vcmpgtq_n_s16): Likewise.
21932 (__arm_vcmpgeq_s16): Likewise.
21933 (__arm_vcmpgeq_n_s16): Likewise.
21934 (__arm_vcmpeqq_s16): Likewise.
21935 (__arm_vcmpeqq_n_s16): Likewise.
21936 (__arm_vqshluq_n_s16): Likewise.
21937 (__arm_vaddvq_p_s16): Likewise.
21938 (__arm_vsubq_s16): Likewise.
21939 (__arm_vsubq_n_s16): Likewise.
21940 (__arm_vshlq_r_s16): Likewise.
21941 (__arm_vrshlq_s16): Likewise.
21942 (__arm_vrshlq_n_s16): Likewise.
21943 (__arm_vrmulhq_s16): Likewise.
21944 (__arm_vrhaddq_s16): Likewise.
21945 (__arm_vqsubq_s16): Likewise.
21946 (__arm_vqsubq_n_s16): Likewise.
21947 (__arm_vqshlq_s16): Likewise.
21948 (__arm_vqshlq_r_s16): Likewise.
21949 (__arm_vqrshlq_s16): Likewise.
21950 (__arm_vqrshlq_n_s16): Likewise.
21951 (__arm_vqrdmulhq_s16): Likewise.
21952 (__arm_vqrdmulhq_n_s16): Likewise.
21953 (__arm_vqdmulhq_s16): Likewise.
21954 (__arm_vqdmulhq_n_s16): Likewise.
21955 (__arm_vqaddq_s16): Likewise.
21956 (__arm_vqaddq_n_s16): Likewise.
21957 (__arm_vorrq_s16): Likewise.
21958 (__arm_vornq_s16): Likewise.
21959 (__arm_vmulq_s16): Likewise.
21960 (__arm_vmulq_n_s16): Likewise.
21961 (__arm_vmulltq_int_s16): Likewise.
21962 (__arm_vmullbq_int_s16): Likewise.
21963 (__arm_vmulhq_s16): Likewise.
21964 (__arm_vmlsdavxq_s16): Likewise.
21965 (__arm_vmlsdavq_s16): Likewise.
21966 (__arm_vmladavxq_s16): Likewise.
21967 (__arm_vmladavq_s16): Likewise.
21968 (__arm_vminvq_s16): Likewise.
21969 (__arm_vminq_s16): Likewise.
21970 (__arm_vmaxvq_s16): Likewise.
21971 (__arm_vmaxq_s16): Likewise.
21972 (__arm_vhsubq_s16): Likewise.
21973 (__arm_vhsubq_n_s16): Likewise.
21974 (__arm_vhcaddq_rot90_s16): Likewise.
21975 (__arm_vhcaddq_rot270_s16): Likewise.
21976 (__arm_vhaddq_s16): Likewise.
21977 (__arm_vhaddq_n_s16): Likewise.
21978 (__arm_veorq_s16): Likewise.
21979 (__arm_vcaddq_rot90_s16): Likewise.
21980 (__arm_vcaddq_rot270_s16): Likewise.
21981 (__arm_vbrsrq_n_s16): Likewise.
21982 (__arm_vbicq_s16): Likewise.
21983 (__arm_vandq_s16): Likewise.
21984 (__arm_vaddvaq_s16): Likewise.
21985 (__arm_vaddq_n_s16): Likewise.
21986 (__arm_vabdq_s16): Likewise.
21987 (__arm_vshlq_n_s16): Likewise.
21988 (__arm_vrshrq_n_s16): Likewise.
21989 (__arm_vqshlq_n_s16): Likewise.
21990 (__arm_vsubq_u32): Likewise.
21991 (__arm_vsubq_n_u32): Likewise.
21992 (__arm_vrmulhq_u32): Likewise.
21993 (__arm_vrhaddq_u32): Likewise.
21994 (__arm_vqsubq_u32): Likewise.
21995 (__arm_vqsubq_n_u32): Likewise.
21996 (__arm_vqaddq_u32): Likewise.
21997 (__arm_vqaddq_n_u32): Likewise.
21998 (__arm_vorrq_u32): Likewise.
21999 (__arm_vornq_u32): Likewise.
22000 (__arm_vmulq_u32): Likewise.
22001 (__arm_vmulq_n_u32): Likewise.
22002 (__arm_vmulltq_int_u32): Likewise.
22003 (__arm_vmullbq_int_u32): Likewise.
22004 (__arm_vmulhq_u32): Likewise.
22005 (__arm_vmladavq_u32): Likewise.
22006 (__arm_vminvq_u32): Likewise.
22007 (__arm_vminq_u32): Likewise.
22008 (__arm_vmaxvq_u32): Likewise.
22009 (__arm_vmaxq_u32): Likewise.
22010 (__arm_vhsubq_u32): Likewise.
22011 (__arm_vhsubq_n_u32): Likewise.
22012 (__arm_vhaddq_u32): Likewise.
22013 (__arm_vhaddq_n_u32): Likewise.
22014 (__arm_veorq_u32): Likewise.
22015 (__arm_vcmpneq_n_u32): Likewise.
22016 (__arm_vcmphiq_u32): Likewise.
22017 (__arm_vcmphiq_n_u32): Likewise.
22018 (__arm_vcmpeqq_u32): Likewise.
22019 (__arm_vcmpeqq_n_u32): Likewise.
22020 (__arm_vcmpcsq_u32): Likewise.
22021 (__arm_vcmpcsq_n_u32): Likewise.
22022 (__arm_vcaddq_rot90_u32): Likewise.
22023 (__arm_vcaddq_rot270_u32): Likewise.
22024 (__arm_vbicq_u32): Likewise.
22025 (__arm_vandq_u32): Likewise.
22026 (__arm_vaddvq_p_u32): Likewise.
22027 (__arm_vaddvaq_u32): Likewise.
22028 (__arm_vaddq_n_u32): Likewise.
22029 (__arm_vabdq_u32): Likewise.
22030 (__arm_vshlq_r_u32): Likewise.
22031 (__arm_vrshlq_u32): Likewise.
22032 (__arm_vrshlq_n_u32): Likewise.
22033 (__arm_vqshlq_u32): Likewise.
22034 (__arm_vqshlq_r_u32): Likewise.
22035 (__arm_vqrshlq_u32): Likewise.
22036 (__arm_vqrshlq_n_u32): Likewise.
22037 (__arm_vminavq_s32): Likewise.
22038 (__arm_vminaq_s32): Likewise.
22039 (__arm_vmaxavq_s32): Likewise.
22040 (__arm_vmaxaq_s32): Likewise.
22041 (__arm_vbrsrq_n_u32): Likewise.
22042 (__arm_vshlq_n_u32): Likewise.
22043 (__arm_vrshrq_n_u32): Likewise.
22044 (__arm_vqshlq_n_u32): Likewise.
22045 (__arm_vcmpneq_n_s32): Likewise.
22046 (__arm_vcmpltq_s32): Likewise.
22047 (__arm_vcmpltq_n_s32): Likewise.
22048 (__arm_vcmpleq_s32): Likewise.
22049 (__arm_vcmpleq_n_s32): Likewise.
22050 (__arm_vcmpgtq_s32): Likewise.
22051 (__arm_vcmpgtq_n_s32): Likewise.
22052 (__arm_vcmpgeq_s32): Likewise.
22053 (__arm_vcmpgeq_n_s32): Likewise.
22054 (__arm_vcmpeqq_s32): Likewise.
22055 (__arm_vcmpeqq_n_s32): Likewise.
22056 (__arm_vqshluq_n_s32): Likewise.
22057 (__arm_vaddvq_p_s32): Likewise.
22058 (__arm_vsubq_s32): Likewise.
22059 (__arm_vsubq_n_s32): Likewise.
22060 (__arm_vshlq_r_s32): Likewise.
22061 (__arm_vrshlq_s32): Likewise.
22062 (__arm_vrshlq_n_s32): Likewise.
22063 (__arm_vrmulhq_s32): Likewise.
22064 (__arm_vrhaddq_s32): Likewise.
22065 (__arm_vqsubq_s32): Likewise.
22066 (__arm_vqsubq_n_s32): Likewise.
22067 (__arm_vqshlq_s32): Likewise.
22068 (__arm_vqshlq_r_s32): Likewise.
22069 (__arm_vqrshlq_s32): Likewise.
22070 (__arm_vqrshlq_n_s32): Likewise.
22071 (__arm_vqrdmulhq_s32): Likewise.
22072 (__arm_vqrdmulhq_n_s32): Likewise.
22073 (__arm_vqdmulhq_s32): Likewise.
22074 (__arm_vqdmulhq_n_s32): Likewise.
22075 (__arm_vqaddq_s32): Likewise.
22076 (__arm_vqaddq_n_s32): Likewise.
22077 (__arm_vorrq_s32): Likewise.
22078 (__arm_vornq_s32): Likewise.
22079 (__arm_vmulq_s32): Likewise.
22080 (__arm_vmulq_n_s32): Likewise.
22081 (__arm_vmulltq_int_s32): Likewise.
22082 (__arm_vmullbq_int_s32): Likewise.
22083 (__arm_vmulhq_s32): Likewise.
22084 (__arm_vmlsdavxq_s32): Likewise.
22085 (__arm_vmlsdavq_s32): Likewise.
22086 (__arm_vmladavxq_s32): Likewise.
22087 (__arm_vmladavq_s32): Likewise.
22088 (__arm_vminvq_s32): Likewise.
22089 (__arm_vminq_s32): Likewise.
22090 (__arm_vmaxvq_s32): Likewise.
22091 (__arm_vmaxq_s32): Likewise.
22092 (__arm_vhsubq_s32): Likewise.
22093 (__arm_vhsubq_n_s32): Likewise.
22094 (__arm_vhcaddq_rot90_s32): Likewise.
22095 (__arm_vhcaddq_rot270_s32): Likewise.
22096 (__arm_vhaddq_s32): Likewise.
22097 (__arm_vhaddq_n_s32): Likewise.
22098 (__arm_veorq_s32): Likewise.
22099 (__arm_vcaddq_rot90_s32): Likewise.
22100 (__arm_vcaddq_rot270_s32): Likewise.
22101 (__arm_vbrsrq_n_s32): Likewise.
22102 (__arm_vbicq_s32): Likewise.
22103 (__arm_vandq_s32): Likewise.
22104 (__arm_vaddvaq_s32): Likewise.
22105 (__arm_vaddq_n_s32): Likewise.
22106 (__arm_vabdq_s32): Likewise.
22107 (__arm_vshlq_n_s32): Likewise.
22108 (__arm_vrshrq_n_s32): Likewise.
22109 (__arm_vqshlq_n_s32): Likewise.
22110 (vsubq): Define polymorphic variant.
22111 (vsubq_n): Likewise.
22112 (vshlq_r): Likewise.
22113 (vrshlq_n): Likewise.
22114 (vrshlq): Likewise.
22115 (vrmulhq): Likewise.
22116 (vrhaddq): Likewise.
22117 (vqsubq_n): Likewise.
22118 (vqsubq): Likewise.
22119 (vqshlq): Likewise.
22120 (vqshlq_r): Likewise.
22121 (vqshluq): Likewise.
22122 (vrshrq_n): Likewise.
22123 (vshlq_n): Likewise.
22124 (vqshluq_n): Likewise.
22125 (vqshlq_n): Likewise.
22126 (vqrshlq_n): Likewise.
22127 (vqrshlq): Likewise.
22128 (vqrdmulhq_n): Likewise.
22129 (vqrdmulhq): Likewise.
22130 (vqdmulhq_n): Likewise.
22131 (vqdmulhq): Likewise.
22132 (vqaddq_n): Likewise.
22133 (vqaddq): Likewise.
22134 (vorrq_n): Likewise.
22137 (vmulq_n): Likewise.
22139 (vmulltq_int): Likewise.
22140 (vmullbq_int): Likewise.
22141 (vmulhq): Likewise.
22143 (vminaq): Likewise.
22145 (vmaxaq): Likewise.
22146 (vhsubq_n): Likewise.
22147 (vhsubq): Likewise.
22148 (vhcaddq_rot90): Likewise.
22149 (vhcaddq_rot270): Likewise.
22150 (vhaddq_n): Likewise.
22151 (vhaddq): Likewise.
22153 (vcaddq_rot90): Likewise.
22154 (vcaddq_rot270): Likewise.
22155 (vbrsrq_n): Likewise.
22156 (vbicq_n): Likewise.
22159 (vaddq_n): Likewise.
22162 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
22163 (BINOP_NONE_NONE_NONE): Likewise.
22164 (BINOP_NONE_NONE_UNONE): Likewise.
22165 (BINOP_UNONE_NONE_IMM): Likewise.
22166 (BINOP_UNONE_NONE_NONE): Likewise.
22167 (BINOP_UNONE_UNONE_IMM): Likewise.
22168 (BINOP_UNONE_UNONE_NONE): Likewise.
22169 (BINOP_UNONE_UNONE_UNONE): Likewise.
22170 * config/arm/constraints.md (Ra): Define constraint to check constant is
22171 in the range of 0 to 7.
22172 (Rg): Define constriant to check the constant is one among 1, 2, 4
22174 * config/arm/mve.md (mve_vabdq_<supf>): Define RTL pattern.
22175 (mve_vaddq_n_<supf>): Likewise.
22176 (mve_vaddvaq_<supf>): Likewise.
22177 (mve_vaddvq_p_<supf>): Likewise.
22178 (mve_vandq_<supf>): Likewise.
22179 (mve_vbicq_<supf>): Likewise.
22180 (mve_vbrsrq_n_<supf>): Likewise.
22181 (mve_vcaddq_rot270_<supf>): Likewise.
22182 (mve_vcaddq_rot90_<supf>): Likewise.
22183 (mve_vcmpcsq_n_u): Likewise.
22184 (mve_vcmpcsq_u): Likewise.
22185 (mve_vcmpeqq_n_<supf>): Likewise.
22186 (mve_vcmpeqq_<supf>): Likewise.
22187 (mve_vcmpgeq_n_s): Likewise.
22188 (mve_vcmpgeq_s): Likewise.
22189 (mve_vcmpgtq_n_s): Likewise.
22190 (mve_vcmpgtq_s): Likewise.
22191 (mve_vcmphiq_n_u): Likewise.
22192 (mve_vcmphiq_u): Likewise.
22193 (mve_vcmpleq_n_s): Likewise.
22194 (mve_vcmpleq_s): Likewise.
22195 (mve_vcmpltq_n_s): Likewise.
22196 (mve_vcmpltq_s): Likewise.
22197 (mve_vcmpneq_n_<supf>): Likewise.
22198 (mve_vddupq_n_u): Likewise.
22199 (mve_veorq_<supf>): Likewise.
22200 (mve_vhaddq_n_<supf>): Likewise.
22201 (mve_vhaddq_<supf>): Likewise.
22202 (mve_vhcaddq_rot270_s): Likewise.
22203 (mve_vhcaddq_rot90_s): Likewise.
22204 (mve_vhsubq_n_<supf>): Likewise.
22205 (mve_vhsubq_<supf>): Likewise.
22206 (mve_vidupq_n_u): Likewise.
22207 (mve_vmaxaq_s): Likewise.
22208 (mve_vmaxavq_s): Likewise.
22209 (mve_vmaxq_<supf>): Likewise.
22210 (mve_vmaxvq_<supf>): Likewise.
22211 (mve_vminaq_s): Likewise.
22212 (mve_vminavq_s): Likewise.
22213 (mve_vminq_<supf>): Likewise.
22214 (mve_vminvq_<supf>): Likewise.
22215 (mve_vmladavq_<supf>): Likewise.
22216 (mve_vmladavxq_s): Likewise.
22217 (mve_vmlsdavq_s): Likewise.
22218 (mve_vmlsdavxq_s): Likewise.
22219 (mve_vmulhq_<supf>): Likewise.
22220 (mve_vmullbq_int_<supf>): Likewise.
22221 (mve_vmulltq_int_<supf>): Likewise.
22222 (mve_vmulq_n_<supf>): Likewise.
22223 (mve_vmulq_<supf>): Likewise.
22224 (mve_vornq_<supf>): Likewise.
22225 (mve_vorrq_<supf>): Likewise.
22226 (mve_vqaddq_n_<supf>): Likewise.
22227 (mve_vqaddq_<supf>): Likewise.
22228 (mve_vqdmulhq_n_s): Likewise.
22229 (mve_vqdmulhq_s): Likewise.
22230 (mve_vqrdmulhq_n_s): Likewise.
22231 (mve_vqrdmulhq_s): Likewise.
22232 (mve_vqrshlq_n_<supf>): Likewise.
22233 (mve_vqrshlq_<supf>): Likewise.
22234 (mve_vqshlq_n_<supf>): Likewise.
22235 (mve_vqshlq_r_<supf>): Likewise.
22236 (mve_vqshlq_<supf>): Likewise.
22237 (mve_vqshluq_n_s): Likewise.
22238 (mve_vqsubq_n_<supf>): Likewise.
22239 (mve_vqsubq_<supf>): Likewise.
22240 (mve_vrhaddq_<supf>): Likewise.
22241 (mve_vrmulhq_<supf>): Likewise.
22242 (mve_vrshlq_n_<supf>): Likewise.
22243 (mve_vrshlq_<supf>): Likewise.
22244 (mve_vrshrq_n_<supf>): Likewise.
22245 (mve_vshlq_n_<supf>): Likewise.
22246 (mve_vshlq_r_<supf>): Likewise.
22247 (mve_vsubq_n_<supf>): Likewise.
22248 (mve_vsubq_<supf>): Likewise.
22249 * config/arm/predicates.md (mve_imm_7): Define predicate to check
22250 the matching constraint Ra.
22251 (mve_imm_selective_upto_8): Define predicate to check the matching
22254 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
22255 Mihail Ionescu <mihail.ionescu@arm.com>
22256 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22258 * config/arm/arm-builtins.c (BINOP_NONE_NONE_UNONE_QUALIFIERS): Define
22259 qualifier for binary operands.
22260 (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
22261 (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
22262 * config/arm/arm_mve.h (vaddlvq_p_s32): Define macro.
22263 (vaddlvq_p_u32): Likewise.
22264 (vcmpneq_s8): Likewise.
22265 (vcmpneq_s16): Likewise.
22266 (vcmpneq_s32): Likewise.
22267 (vcmpneq_u8): Likewise.
22268 (vcmpneq_u16): Likewise.
22269 (vcmpneq_u32): Likewise.
22270 (vshlq_s8): Likewise.
22271 (vshlq_s16): Likewise.
22272 (vshlq_s32): Likewise.
22273 (vshlq_u8): Likewise.
22274 (vshlq_u16): Likewise.
22275 (vshlq_u32): Likewise.
22276 (__arm_vaddlvq_p_s32): Define intrinsic.
22277 (__arm_vaddlvq_p_u32): Likewise.
22278 (__arm_vcmpneq_s8): Likewise.
22279 (__arm_vcmpneq_s16): Likewise.
22280 (__arm_vcmpneq_s32): Likewise.
22281 (__arm_vcmpneq_u8): Likewise.
22282 (__arm_vcmpneq_u16): Likewise.
22283 (__arm_vcmpneq_u32): Likewise.
22284 (__arm_vshlq_s8): Likewise.
22285 (__arm_vshlq_s16): Likewise.
22286 (__arm_vshlq_s32): Likewise.
22287 (__arm_vshlq_u8): Likewise.
22288 (__arm_vshlq_u16): Likewise.
22289 (__arm_vshlq_u32): Likewise.
22290 (vaddlvq_p): Define polymorphic variant.
22291 (vcmpneq): Likewise.
22293 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_UNONE_QUALIFIERS):
22295 (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
22296 (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
22297 * config/arm/mve.md (mve_vaddlvq_p_<supf>v4si): Define RTL pattern.
22298 (mve_vcmpneq_<supf><mode>): Likewise.
22299 (mve_vshlq_<supf><mode>): Likewise.
22301 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
22302 Mihail Ionescu <mihail.ionescu@arm.com>
22303 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22305 * config/arm/arm-builtins.c (BINOP_UNONE_UNONE_IMM_QUALIFIERS): Define
22306 qualifier for binary operands.
22307 (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
22308 (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
22309 * config/arm/arm_mve.h (vcvtq_n_s16_f16): Define macro.
22310 (vcvtq_n_s32_f32): Likewise.
22311 (vcvtq_n_u16_f16): Likewise.
22312 (vcvtq_n_u32_f32): Likewise.
22313 (vcreateq_u8): Likewise.
22314 (vcreateq_u16): Likewise.
22315 (vcreateq_u32): Likewise.
22316 (vcreateq_u64): Likewise.
22317 (vcreateq_s8): Likewise.
22318 (vcreateq_s16): Likewise.
22319 (vcreateq_s32): Likewise.
22320 (vcreateq_s64): Likewise.
22321 (vshrq_n_s8): Likewise.
22322 (vshrq_n_s16): Likewise.
22323 (vshrq_n_s32): Likewise.
22324 (vshrq_n_u8): Likewise.
22325 (vshrq_n_u16): Likewise.
22326 (vshrq_n_u32): Likewise.
22327 (__arm_vcreateq_u8): Define intrinsic.
22328 (__arm_vcreateq_u16): Likewise.
22329 (__arm_vcreateq_u32): Likewise.
22330 (__arm_vcreateq_u64): Likewise.
22331 (__arm_vcreateq_s8): Likewise.
22332 (__arm_vcreateq_s16): Likewise.
22333 (__arm_vcreateq_s32): Likewise.
22334 (__arm_vcreateq_s64): Likewise.
22335 (__arm_vshrq_n_s8): Likewise.
22336 (__arm_vshrq_n_s16): Likewise.
22337 (__arm_vshrq_n_s32): Likewise.
22338 (__arm_vshrq_n_u8): Likewise.
22339 (__arm_vshrq_n_u16): Likewise.
22340 (__arm_vshrq_n_u32): Likewise.
22341 (__arm_vcvtq_n_s16_f16): Likewise.
22342 (__arm_vcvtq_n_s32_f32): Likewise.
22343 (__arm_vcvtq_n_u16_f16): Likewise.
22344 (__arm_vcvtq_n_u32_f32): Likewise.
22345 (vshrq_n): Define polymorphic variant.
22346 * config/arm/arm_mve_builtins.def (BINOP_UNONE_UNONE_IMM_QUALIFIERS):
22348 (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
22349 (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
22350 * config/arm/constraints.md (Rb): Define constraint to check constant is
22351 in the range of 1 to 8.
22352 (Rf): Define constraint to check constant is in the range of 1 to 32.
22353 * config/arm/mve.md (mve_vcreateq_<supf><mode>): Define RTL pattern.
22354 (mve_vshrq_n_<supf><mode>): Likewise.
22355 (mve_vcvtq_n_from_f_<supf><mode>): Likewise.
22356 * config/arm/predicates.md (mve_imm_8): Define predicate to check
22357 the matching constraint Rb.
22358 (mve_imm_32): Define predicate to check the matching constraint Rf.
22360 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
22361 Mihail Ionescu <mihail.ionescu@arm.com>
22362 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22364 * config/arm/arm-builtins.c (BINOP_NONE_NONE_NONE_QUALIFIERS): Define
22365 qualifier for binary operands.
22366 (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
22367 (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
22368 (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
22369 * config/arm/arm_mve.h (vsubq_n_f16): Define macro.
22370 (vsubq_n_f32): Likewise.
22371 (vbrsrq_n_f16): Likewise.
22372 (vbrsrq_n_f32): Likewise.
22373 (vcvtq_n_f16_s16): Likewise.
22374 (vcvtq_n_f32_s32): Likewise.
22375 (vcvtq_n_f16_u16): Likewise.
22376 (vcvtq_n_f32_u32): Likewise.
22377 (vcreateq_f16): Likewise.
22378 (vcreateq_f32): Likewise.
22379 (__arm_vsubq_n_f16): Define intrinsic.
22380 (__arm_vsubq_n_f32): Likewise.
22381 (__arm_vbrsrq_n_f16): Likewise.
22382 (__arm_vbrsrq_n_f32): Likewise.
22383 (__arm_vcvtq_n_f16_s16): Likewise.
22384 (__arm_vcvtq_n_f32_s32): Likewise.
22385 (__arm_vcvtq_n_f16_u16): Likewise.
22386 (__arm_vcvtq_n_f32_u32): Likewise.
22387 (__arm_vcreateq_f16): Likewise.
22388 (__arm_vcreateq_f32): Likewise.
22389 (vsubq): Define polymorphic variant.
22390 (vbrsrq): Likewise.
22391 (vcvtq_n): Likewise.
22392 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE_QUALIFIERS): Use
22394 (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
22395 (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
22396 (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
22397 * config/arm/constraints.md (Rd): Define constraint to check constant is
22398 in the range of 1 to 16.
22399 * config/arm/mve.md (mve_vsubq_n_f<mode>): Define RTL pattern.
22400 mve_vbrsrq_n_f<mode>: Likewise.
22401 mve_vcvtq_n_to_f_<supf><mode>: Likewise.
22402 mve_vcreateq_f<mode>: Likewise.
22403 * config/arm/predicates.md (mve_imm_16): Define predicate to check
22404 the matching constraint Rd.
22406 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
22407 Mihail Ionescu <mihail.ionescu@arm.com>
22408 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22410 * config/arm/arm-builtins.c (hi_UP): Define mode.
22411 * config/arm/arm.h (IS_VPR_REGNUM): Move.
22412 * config/arm/arm.md (VPR_REGNUM): Define before APSRQ_REGNUM.
22413 (APSRQ_REGNUM): Modify.
22414 (APSRGE_REGNUM): Modify.
22415 * config/arm/arm_mve.h (vctp16q): Define macro.
22416 (vctp32q): Likewise.
22417 (vctp64q): Likewise.
22418 (vctp8q): Likewise.
22420 (__arm_vctp16q): Define intrinsic.
22421 (__arm_vctp32q): Likewise.
22422 (__arm_vctp64q): Likewise.
22423 (__arm_vctp8q): Likewise.
22424 (__arm_vpnot): Likewise.
22425 * config/arm/arm_mve_builtins.def (UNOP_UNONE_UNONE): Use builtin
22427 * config/arm/mve.md (mve_vctp<mode1>qhi): Define RTL pattern.
22428 (mve_vpnothi): Likewise.
22430 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
22431 Mihail Ionescu <mihail.ionescu@arm.com>
22432 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22434 * config/arm/arm.h (enum reg_class): Define new class EVEN_REGS.
22435 * config/arm/arm_mve.h (vdupq_n_s8): Define macro.
22436 (vdupq_n_s16): Likewise.
22437 (vdupq_n_s32): Likewise.
22438 (vabsq_s8): Likewise.
22439 (vabsq_s16): Likewise.
22440 (vabsq_s32): Likewise.
22441 (vclsq_s8): Likewise.
22442 (vclsq_s16): Likewise.
22443 (vclsq_s32): Likewise.
22444 (vclzq_s8): Likewise.
22445 (vclzq_s16): Likewise.
22446 (vclzq_s32): Likewise.
22447 (vnegq_s8): Likewise.
22448 (vnegq_s16): Likewise.
22449 (vnegq_s32): Likewise.
22450 (vaddlvq_s32): Likewise.
22451 (vaddvq_s8): Likewise.
22452 (vaddvq_s16): Likewise.
22453 (vaddvq_s32): Likewise.
22454 (vmovlbq_s8): Likewise.
22455 (vmovlbq_s16): Likewise.
22456 (vmovltq_s8): Likewise.
22457 (vmovltq_s16): Likewise.
22458 (vmvnq_s8): Likewise.
22459 (vmvnq_s16): Likewise.
22460 (vmvnq_s32): Likewise.
22461 (vrev16q_s8): Likewise.
22462 (vrev32q_s8): Likewise.
22463 (vrev32q_s16): Likewise.
22464 (vqabsq_s8): Likewise.
22465 (vqabsq_s16): Likewise.
22466 (vqabsq_s32): Likewise.
22467 (vqnegq_s8): Likewise.
22468 (vqnegq_s16): Likewise.
22469 (vqnegq_s32): Likewise.
22470 (vcvtaq_s16_f16): Likewise.
22471 (vcvtaq_s32_f32): Likewise.
22472 (vcvtnq_s16_f16): Likewise.
22473 (vcvtnq_s32_f32): Likewise.
22474 (vcvtpq_s16_f16): Likewise.
22475 (vcvtpq_s32_f32): Likewise.
22476 (vcvtmq_s16_f16): Likewise.
22477 (vcvtmq_s32_f32): Likewise.
22478 (vmvnq_u8): Likewise.
22479 (vmvnq_u16): Likewise.
22480 (vmvnq_u32): Likewise.
22481 (vdupq_n_u8): Likewise.
22482 (vdupq_n_u16): Likewise.
22483 (vdupq_n_u32): Likewise.
22484 (vclzq_u8): Likewise.
22485 (vclzq_u16): Likewise.
22486 (vclzq_u32): Likewise.
22487 (vaddvq_u8): Likewise.
22488 (vaddvq_u16): Likewise.
22489 (vaddvq_u32): Likewise.
22490 (vrev32q_u8): Likewise.
22491 (vrev32q_u16): Likewise.
22492 (vmovltq_u8): Likewise.
22493 (vmovltq_u16): Likewise.
22494 (vmovlbq_u8): Likewise.
22495 (vmovlbq_u16): Likewise.
22496 (vrev16q_u8): Likewise.
22497 (vaddlvq_u32): Likewise.
22498 (vcvtpq_u16_f16): Likewise.
22499 (vcvtpq_u32_f32): Likewise.
22500 (vcvtnq_u16_f16): Likewise.
22501 (vcvtmq_u16_f16): Likewise.
22502 (vcvtmq_u32_f32): Likewise.
22503 (vcvtaq_u16_f16): Likewise.
22504 (vcvtaq_u32_f32): Likewise.
22505 (__arm_vdupq_n_s8): Define intrinsic.
22506 (__arm_vdupq_n_s16): Likewise.
22507 (__arm_vdupq_n_s32): Likewise.
22508 (__arm_vabsq_s8): Likewise.
22509 (__arm_vabsq_s16): Likewise.
22510 (__arm_vabsq_s32): Likewise.
22511 (__arm_vclsq_s8): Likewise.
22512 (__arm_vclsq_s16): Likewise.
22513 (__arm_vclsq_s32): Likewise.
22514 (__arm_vclzq_s8): Likewise.
22515 (__arm_vclzq_s16): Likewise.
22516 (__arm_vclzq_s32): Likewise.
22517 (__arm_vnegq_s8): Likewise.
22518 (__arm_vnegq_s16): Likewise.
22519 (__arm_vnegq_s32): Likewise.
22520 (__arm_vaddlvq_s32): Likewise.
22521 (__arm_vaddvq_s8): Likewise.
22522 (__arm_vaddvq_s16): Likewise.
22523 (__arm_vaddvq_s32): Likewise.
22524 (__arm_vmovlbq_s8): Likewise.
22525 (__arm_vmovlbq_s16): Likewise.
22526 (__arm_vmovltq_s8): Likewise.
22527 (__arm_vmovltq_s16): Likewise.
22528 (__arm_vmvnq_s8): Likewise.
22529 (__arm_vmvnq_s16): Likewise.
22530 (__arm_vmvnq_s32): Likewise.
22531 (__arm_vrev16q_s8): Likewise.
22532 (__arm_vrev32q_s8): Likewise.
22533 (__arm_vrev32q_s16): Likewise.
22534 (__arm_vqabsq_s8): Likewise.
22535 (__arm_vqabsq_s16): Likewise.
22536 (__arm_vqabsq_s32): Likewise.
22537 (__arm_vqnegq_s8): Likewise.
22538 (__arm_vqnegq_s16): Likewise.
22539 (__arm_vqnegq_s32): Likewise.
22540 (__arm_vmvnq_u8): Likewise.
22541 (__arm_vmvnq_u16): Likewise.
22542 (__arm_vmvnq_u32): Likewise.
22543 (__arm_vdupq_n_u8): Likewise.
22544 (__arm_vdupq_n_u16): Likewise.
22545 (__arm_vdupq_n_u32): Likewise.
22546 (__arm_vclzq_u8): Likewise.
22547 (__arm_vclzq_u16): Likewise.
22548 (__arm_vclzq_u32): Likewise.
22549 (__arm_vaddvq_u8): Likewise.
22550 (__arm_vaddvq_u16): Likewise.
22551 (__arm_vaddvq_u32): Likewise.
22552 (__arm_vrev32q_u8): Likewise.
22553 (__arm_vrev32q_u16): Likewise.
22554 (__arm_vmovltq_u8): Likewise.
22555 (__arm_vmovltq_u16): Likewise.
22556 (__arm_vmovlbq_u8): Likewise.
22557 (__arm_vmovlbq_u16): Likewise.
22558 (__arm_vrev16q_u8): Likewise.
22559 (__arm_vaddlvq_u32): Likewise.
22560 (__arm_vcvtpq_u16_f16): Likewise.
22561 (__arm_vcvtpq_u32_f32): Likewise.
22562 (__arm_vcvtnq_u16_f16): Likewise.
22563 (__arm_vcvtmq_u16_f16): Likewise.
22564 (__arm_vcvtmq_u32_f32): Likewise.
22565 (__arm_vcvtaq_u16_f16): Likewise.
22566 (__arm_vcvtaq_u32_f32): Likewise.
22567 (__arm_vcvtaq_s16_f16): Likewise.
22568 (__arm_vcvtaq_s32_f32): Likewise.
22569 (__arm_vcvtnq_s16_f16): Likewise.
22570 (__arm_vcvtnq_s32_f32): Likewise.
22571 (__arm_vcvtpq_s16_f16): Likewise.
22572 (__arm_vcvtpq_s32_f32): Likewise.
22573 (__arm_vcvtmq_s16_f16): Likewise.
22574 (__arm_vcvtmq_s32_f32): Likewise.
22575 (vdupq_n): Define polymorphic variant.
22580 (vaddlvq): Likewise.
22581 (vaddvq): Likewise.
22582 (vmovlbq): Likewise.
22583 (vmovltq): Likewise.
22585 (vrev16q): Likewise.
22586 (vrev32q): Likewise.
22587 (vqabsq): Likewise.
22588 (vqnegq): Likewise.
22589 * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
22590 (UNOP_SNONE_NONE): Likewise.
22591 (UNOP_UNONE_UNONE): Likewise.
22592 (UNOP_UNONE_NONE): Likewise.
22593 * config/arm/constraints.md (e): Define new constriant to allow only
22595 * config/arm/mve.md (mve_vqabsq_s<mode>): Define RTL pattern.
22596 (mve_vnegq_s<mode>): Likewise.
22597 (mve_vmvnq_<supf><mode>): Likewise.
22598 (mve_vdupq_n_<supf><mode>): Likewise.
22599 (mve_vclzq_<supf><mode>): Likewise.
22600 (mve_vclsq_s<mode>): Likewise.
22601 (mve_vaddvq_<supf><mode>): Likewise.
22602 (mve_vabsq_s<mode>): Likewise.
22603 (mve_vrev32q_<supf><mode>): Likewise.
22604 (mve_vmovltq_<supf><mode>): Likewise.
22605 (mve_vmovlbq_<supf><mode>): Likewise.
22606 (mve_vcvtpq_<supf><mode>): Likewise.
22607 (mve_vcvtnq_<supf><mode>): Likewise.
22608 (mve_vcvtmq_<supf><mode>): Likewise.
22609 (mve_vcvtaq_<supf><mode>): Likewise.
22610 (mve_vrev16q_<supf>v16qi): Likewise.
22611 (mve_vaddlvq_<supf>v4si): Likewise.
22613 2020-03-17 Jakub Jelinek <jakub@redhat.com>
22615 * lra-spills.c (remove_pseudos): Fix up duplicated word issue in
22617 * tree-sra.c (create_access_replacement): Fix up duplicated word issue
22619 * read-rtl-function.c (find_param_by_name,
22620 function_reader::parse_enum_value, function_reader::get_insn_by_uid):
22622 * spellcheck.c (get_edit_distance_cutoff): Likewise.
22623 * tree-data-ref.c (create_ifn_alias_checks): Likewise.
22624 * tree.def (SWITCH_EXPR): Likewise.
22625 * selftest.c (assert_str_contains): Likewise.
22626 * ipa-param-manipulation.h (class ipa_param_body_adjustments):
22628 * tree-ssa-math-opts.c (convert_expand_mult_copysign): Likewise.
22629 * tree-ssa-loop-split.c (find_vdef_in_loop): Likewise.
22630 * langhooks.h (struct lang_hooks_for_decls): Likewise.
22631 * ipa-prop.h (struct ipa_param_descriptor): Likewise.
22632 * tree-ssa-strlen.c (handle_builtin_string_cmp, handle_store):
22634 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
22635 * tree-ssa-reassoc.c (reassociate_bb): Likewise.
22636 * tree.c (component_ref_size): Likewise.
22637 * hsa-common.c (hsa_init_compilation_unit_data): Likewise.
22638 * gimple-ssa-sprintf.c (get_string_length, format_string,
22639 format_directive): Likewise.
22640 * omp-grid.c (grid_process_kernel_body_copy): Likewise.
22641 * input.c (string_concat_db::get_string_concatenation,
22642 test_lexer_string_locations_ucn4): Likewise.
22643 * cfgexpand.c (pass_expand::execute): Likewise.
22644 * gimple-ssa-warn-restrict.c (builtin_memref::offset_out_of_bounds,
22645 maybe_diag_overlap): Likewise.
22646 * rtl.c (RTX_CODE_HWINT_P_1): Likewise.
22647 * shrink-wrap.c (spread_components): Likewise.
22648 * tree-ssa-dse.c (initialize_ao_ref_for_dse, valid_ao_ref_for_dse):
22650 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
22652 * dwarf2out.c (dwarf2out_early_finish): Likewise.
22653 * gimple-ssa-store-merging.c: Likewise.
22654 * ira-costs.c (record_operand_costs): Likewise.
22655 * tree-vect-loop.c (vectorizable_reduction): Likewise.
22656 * target.def (dispatch): Likewise.
22657 (validate_dims, gen_ccmp_first): Fix up duplicated word issue
22658 in documentation text.
22659 * doc/tm.texi: Regenerated.
22660 * config/i386/x86-tune.def (X86_TUNE_PARTIAL_FLAG_REG_STALL): Fix up
22661 duplicated word issue in a comment.
22662 * config/i386/i386.c (ix86_test_loading_unspec): Likewise.
22663 * config/i386/i386-features.c (remove_partial_avx_dependency):
22665 * config/msp430/msp430.c (msp430_select_section): Likewise.
22666 * config/gcn/gcn-run.c (load_image): Likewise.
22667 * config/aarch64/aarch64-sve.md (sve_ld1r<mode>): Likewise.
22668 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Likewise.
22669 * config/aarch64/falkor-tag-collision-avoidance.c
22670 (single_dest_per_chain): Likewise.
22671 * config/nvptx/nvptx.c (nvptx_record_fndecl): Likewise.
22672 * config/fr30/fr30.c (fr30_arg_partial_bytes): Likewise.
22673 * config/rs6000/rs6000-string.c (expand_cmp_vec_sequence): Likewise.
22674 * config/rs6000/rs6000-p8swap.c (replace_swapped_load_constant):
22676 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
22677 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
22678 * config/rs6000/rs6000-logue.c
22679 (rs6000_emit_probe_stack_range_stack_clash): Likewise.
22680 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Likewise.
22681 Fix various other issues in the comment.
22683 2020-03-17 Mihail Ionescu <mihail.ionescu@arm.com>
22685 * config/arm/t-rmprofile: create new multilib for
22686 armv8.1-m.main+mve hard float and reuse v8-m.main ones for
22689 2020-03-17 Jakub Jelinek <jakub@redhat.com>
22691 PR tree-optimization/94015
22692 * tree-ssa-strlen.c (count_nonzero_bytes): Split portions of the
22693 function where EXP is address of the bytes being stored rather than
22694 the bytes themselves into count_nonzero_bytes_addr. Punt on zero
22695 sized MEM_REF. Use VAR_P macro and handle CONST_DECL like VAR_DECLs.
22696 Use ctor_for_folding instead of looking at DECL_INITIAL. Punt before
22697 calling native_encode_expr if host or target doesn't have 8-bit
22698 chars. Formatting fixes.
22699 (count_nonzero_bytes_addr): New function.
22701 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
22702 Mihail Ionescu <mihail.ionescu@arm.com>
22703 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22705 * config/arm/arm-builtins.c (UNOP_SNONE_SNONE_QUALIFIERS): Define.
22706 (UNOP_SNONE_NONE_QUALIFIERS): Likewise.
22707 (UNOP_SNONE_IMM_QUALIFIERS): Likewise.
22708 (UNOP_UNONE_NONE_QUALIFIERS): Likewise.
22709 (UNOP_UNONE_UNONE_QUALIFIERS): Likewise.
22710 (UNOP_UNONE_IMM_QUALIFIERS): Likewise.
22711 * config/arm/arm_mve.h (vmvnq_n_s16): Define macro.
22712 (vmvnq_n_s32): Likewise.
22713 (vrev64q_s8): Likewise.
22714 (vrev64q_s16): Likewise.
22715 (vrev64q_s32): Likewise.
22716 (vcvtq_s16_f16): Likewise.
22717 (vcvtq_s32_f32): Likewise.
22718 (vrev64q_u8): Likewise.
22719 (vrev64q_u16): Likewise.
22720 (vrev64q_u32): Likewise.
22721 (vmvnq_n_u16): Likewise.
22722 (vmvnq_n_u32): Likewise.
22723 (vcvtq_u16_f16): Likewise.
22724 (vcvtq_u32_f32): Likewise.
22725 (__arm_vmvnq_n_s16): Define intrinsic.
22726 (__arm_vmvnq_n_s32): Likewise.
22727 (__arm_vrev64q_s8): Likewise.
22728 (__arm_vrev64q_s16): Likewise.
22729 (__arm_vrev64q_s32): Likewise.
22730 (__arm_vrev64q_u8): Likewise.
22731 (__arm_vrev64q_u16): Likewise.
22732 (__arm_vrev64q_u32): Likewise.
22733 (__arm_vmvnq_n_u16): Likewise.
22734 (__arm_vmvnq_n_u32): Likewise.
22735 (__arm_vcvtq_s16_f16): Likewise.
22736 (__arm_vcvtq_s32_f32): Likewise.
22737 (__arm_vcvtq_u16_f16): Likewise.
22738 (__arm_vcvtq_u32_f32): Likewise.
22739 (vrev64q): Define polymorphic variant.
22740 * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
22741 (UNOP_SNONE_NONE): Likewise.
22742 (UNOP_SNONE_IMM): Likewise.
22743 (UNOP_UNONE_UNONE): Likewise.
22744 (UNOP_UNONE_NONE): Likewise.
22745 (UNOP_UNONE_IMM): Likewise.
22746 * config/arm/mve.md (mve_vrev64q_<supf><mode>): Define RTL pattern.
22747 (mve_vcvtq_from_f_<supf><mode>): Likewise.
22748 (mve_vmvnq_n_<supf><mode>): Likewise.
22750 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
22751 Mihail Ionescu <mihail.ionescu@arm.com>
22752 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22754 * config/arm/arm-builtins.c (UNOP_NONE_NONE_QUALIFIERS): Define macro.
22755 (UNOP_NONE_SNONE_QUALIFIERS): Likewise.
22756 (UNOP_NONE_UNONE_QUALIFIERS): Likewise.
22757 * config/arm/arm_mve.h (vrndxq_f16): Define macro.
22758 (vrndxq_f32): Likewise.
22759 (vrndq_f16) Likewise.
22760 (vrndq_f32): Likewise.
22761 (vrndpq_f16): Likewise.
22762 (vrndpq_f32): Likewise.
22763 (vrndnq_f16): Likewise.
22764 (vrndnq_f32): Likewise.
22765 (vrndmq_f16): Likewise.
22766 (vrndmq_f32): Likewise.
22767 (vrndaq_f16): Likewise.
22768 (vrndaq_f32): Likewise.
22769 (vrev64q_f16): Likewise.
22770 (vrev64q_f32): Likewise.
22771 (vnegq_f16): Likewise.
22772 (vnegq_f32): Likewise.
22773 (vdupq_n_f16): Likewise.
22774 (vdupq_n_f32): Likewise.
22775 (vabsq_f16): Likewise.
22776 (vabsq_f32): Likewise.
22777 (vrev32q_f16): Likewise.
22778 (vcvttq_f32_f16): Likewise.
22779 (vcvtbq_f32_f16): Likewise.
22780 (vcvtq_f16_s16): Likewise.
22781 (vcvtq_f32_s32): Likewise.
22782 (vcvtq_f16_u16): Likewise.
22783 (vcvtq_f32_u32): Likewise.
22784 (__arm_vrndxq_f16): Define intrinsic.
22785 (__arm_vrndxq_f32): Likewise.
22786 (__arm_vrndq_f16): Likewise.
22787 (__arm_vrndq_f32): Likewise.
22788 (__arm_vrndpq_f16): Likewise.
22789 (__arm_vrndpq_f32): Likewise.
22790 (__arm_vrndnq_f16): Likewise.
22791 (__arm_vrndnq_f32): Likewise.
22792 (__arm_vrndmq_f16): Likewise.
22793 (__arm_vrndmq_f32): Likewise.
22794 (__arm_vrndaq_f16): Likewise.
22795 (__arm_vrndaq_f32): Likewise.
22796 (__arm_vrev64q_f16): Likewise.
22797 (__arm_vrev64q_f32): Likewise.
22798 (__arm_vnegq_f16): Likewise.
22799 (__arm_vnegq_f32): Likewise.
22800 (__arm_vdupq_n_f16): Likewise.
22801 (__arm_vdupq_n_f32): Likewise.
22802 (__arm_vabsq_f16): Likewise.
22803 (__arm_vabsq_f32): Likewise.
22804 (__arm_vrev32q_f16): Likewise.
22805 (__arm_vcvttq_f32_f16): Likewise.
22806 (__arm_vcvtbq_f32_f16): Likewise.
22807 (__arm_vcvtq_f16_s16): Likewise.
22808 (__arm_vcvtq_f32_s32): Likewise.
22809 (__arm_vcvtq_f16_u16): Likewise.
22810 (__arm_vcvtq_f32_u32): Likewise.
22811 (vrndxq): Define polymorphic variants.
22813 (vrndpq): Likewise.
22814 (vrndnq): Likewise.
22815 (vrndmq): Likewise.
22816 (vrndaq): Likewise.
22817 (vrev64q): Likewise.
22820 (vrev32q): Likewise.
22821 (vcvtbq_f32): Likewise.
22822 (vcvttq_f32): Likewise.
22824 * config/arm/arm_mve_builtins.def (VAR2): Define.
22826 * config/arm/mve.md (mve_vrndxq_f<mode>): Add RTL pattern.
22827 (mve_vrndq_f<mode>): Likewise.
22828 (mve_vrndpq_f<mode>): Likewise.
22829 (mve_vrndnq_f<mode>): Likewise.
22830 (mve_vrndmq_f<mode>): Likewise.
22831 (mve_vrndaq_f<mode>): Likewise.
22832 (mve_vrev64q_f<mode>): Likewise.
22833 (mve_vnegq_f<mode>): Likewise.
22834 (mve_vdupq_n_f<mode>): Likewise.
22835 (mve_vabsq_f<mode>): Likewise.
22836 (mve_vrev32q_fv8hf): Likewise.
22837 (mve_vcvttq_f32_f16v4sf): Likewise.
22838 (mve_vcvtbq_f32_f16v4sf): Likewise.
22839 (mve_vcvtq_to_f_<supf><mode>): Likewise.
22841 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
22842 Mihail Ionescu <mihail.ionescu@arm.com>
22843 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22845 * config/arm/arm-builtins.c (CF): Define mve_builtin_data.
22847 (ARM_BUILTIN_MVE_PATTERN_START): Define.
22848 (arm_init_mve_builtins): Define function.
22849 (arm_init_builtins): Add TARGET_HAVE_MVE check.
22850 (arm_expand_builtin_1): Check the range of fcode.
22851 (arm_expand_mve_builtin): Define function to expand MVE builtins.
22852 (arm_expand_builtin): Check the range of fcode.
22853 * config/arm/arm_mve.h (__ARM_FEATURE_MVE): Define MVE floating point
22855 (__ARM_MVE_PRESERVE_USER_NAMESPACE): Define to protect user namespace.
22856 (vst4q_s8): Define macro.
22857 (vst4q_s16): Likewise.
22858 (vst4q_s32): Likewise.
22859 (vst4q_u8): Likewise.
22860 (vst4q_u16): Likewise.
22861 (vst4q_u32): Likewise.
22862 (vst4q_f16): Likewise.
22863 (vst4q_f32): Likewise.
22864 (__arm_vst4q_s8): Define inline builtin.
22865 (__arm_vst4q_s16): Likewise.
22866 (__arm_vst4q_s32): Likewise.
22867 (__arm_vst4q_u8): Likewise.
22868 (__arm_vst4q_u16): Likewise.
22869 (__arm_vst4q_u32): Likewise.
22870 (__arm_vst4q_f16): Likewise.
22871 (__arm_vst4q_f32): Likewise.
22872 (__ARM_mve_typeid): Define macro with MVE types.
22873 (__ARM_mve_coerce): Define macro with _Generic feature.
22874 (vst4q): Define polymorphic variant for different vst4q builtins.
22875 * config/arm/arm_mve_builtins.def: New file.
22876 * config/arm/iterators.md (VSTRUCT): Modify to allow XI and OI
22878 * config/arm/mve.md (MVE_VLD_ST): Define iterator.
22879 (unspec): Define unspec.
22880 (mve_vst4q<mode>): Define RTL pattern.
22881 * config/arm/neon.md (mov<mode>): Modify expand to allow XI and OI
22883 (neon_mov<mode>): Modify RTL define_insn to allow XI and OI modes
22885 (define_split): Allow OI mode split for MVE after reload.
22886 (define_split): Allow XI mode split for MVE after reload.
22887 * config/arm/t-arm (arm.o): Add entry for arm_mve_builtins.def.
22888 (arm-builtins.o): Likewise.
22890 2020-03-17 Christophe Lyon <christophe.lyon@linaro.org>
22892 * c-typeck.c (process_init_element): Handle constructor_type with
22893 type size represented by POLY_INT_CST.
22895 2020-03-17 Jakub Jelinek <jakub@redhat.com>
22897 PR tree-optimization/94187
22898 * tree-ssa-strlen.c (count_nonzero_bytes): Punt if
22899 nchars - offset < nbytes.
22901 PR middle-end/94189
22902 * builtins.c (expand_builtin_strnlen): Do return NULL_RTX if we would
22903 emit a warning if it was enabled and don't depend on TREE_NO_WARNING
22904 for code-generation.
22906 2020-03-16 Vladimir Makarov <vmakarov@redhat.com>
22909 * lra-spills.c (remove_pseudos): Do not reuse insn alternative
22910 after changing memory subreg.
22912 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
22913 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22915 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Modify function to add
22916 emulator calls for dobule precision arithmetic operations for MVE.
22918 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
22919 Mihail Ionescu <mihail.ionescu@arm.com>
22920 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22922 * common/config/arm/arm-common.c (arm_asm_auto_mfpu): When vfp_base
22923 feature bit is on and -mfpu=auto is passed as compiler option, do not
22924 generate error on not finding any matching fpu. Because in this case
22925 fpu is not required.
22926 * config/arm/arm-cpus.in (vfp_base): Define feature bit, this bit is
22927 enabled for MVE and also for all VFP extensions.
22928 (VFPv2): Modify fgroup to enable vfp_base feature bit when ever VFPv2
22930 (MVE): Define fgroup to enable feature bits mve, vfp_base and armv7em.
22931 (MVE_FP): Define fgroup to enable feature bits is fgroup MVE and FPv5
22932 along with feature bits mve_float.
22933 (mve): Modify add options in armv8.1-m.main arch for MVE.
22934 (mve.fp): Modify add options in armv8.1-m.main arch for MVE with
22936 * config/arm/arm.c (use_return_insn): Replace the
22937 check with TARGET_VFP_BASE.
22938 (thumb2_legitimate_index_p): Replace TARGET_HARD_FLOAT with
22940 (arm_rtx_costs_internal): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
22941 with TARGET_VFP_BASE, to allow cost calculations for copies in MVE as
22943 (arm_get_vfp_saved_size): Replace TARGET_HARD_FLOAT with
22944 TARGET_VFP_BASE, to allow space calculation for VFP registers in MVE
22946 (arm_compute_frame_layout): Likewise.
22947 (arm_save_coproc_regs): Likewise.
22948 (arm_fixed_condition_code_regs): Modify to enable using VFPCC_REGNUM
22950 (arm_hard_regno_mode_ok): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
22951 with equivalent macro TARGET_VFP_BASE.
22952 (arm_expand_epilogue_apcs_frame): Likewise.
22953 (arm_expand_epilogue): Likewise.
22954 (arm_conditional_register_usage): Likewise.
22955 (arm_declare_function_name): Add check to skip printing .fpu directive
22956 in assembly file when TARGET_VFP_BASE is enabled and fpu_to_print is
22958 * config/arm/arm.h (TARGET_VFP_BASE): Define.
22959 * config/arm/arm.md (arch): Add "mve" to arch.
22960 (eq_attr "arch" "mve"): Enable on TARGET_HAVE_MVE is true.
22961 (vfp_pop_multiple_with_writeback): Replace "TARGET_HARD_FLOAT
22962 || TARGET_HAVE_MVE" with equivalent macro TARGET_VFP_BASE.
22963 * config/arm/constraints.md (Uf): Define to allow modification to FPCCR
22965 * config/arm/thumb2.md (thumb2_movsfcc_soft_insn): Modify target guard
22966 to not allow for MVE.
22967 * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Move to volatile unspecs
22969 (VUNSPEC_GET_FPSCR): Define.
22970 * config/arm/vfp.md (thumb2_movhi_vfp): Add support for VMSR and VMRS
22971 instructions which move to general-purpose Register from Floating-point
22972 Special register and vice-versa.
22973 (thumb2_movhi_fp16): Likewise.
22974 (thumb2_movsi_vfp): Add support for VMSR and VMRS instructions along
22975 with MCR and MRC instructions which set and get Floating-point Status
22976 and Control Register (FPSCR).
22977 (movdi_vfp): Modify pattern to enable Single-precision scalar float move
22979 (thumb2_movdf_vfp): Modify pattern to enable Double-precision scalar
22980 float move patterns in MVE.
22981 (thumb2_movsfcc_vfp): Modify pattern to enable single float conditional
22982 code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
22983 (thumb2_movdfcc_vfp): Modify pattern to enable double float conditional
22984 code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
22985 (push_multi_vfp): Add support to use VFP VPUSH pattern for MVE by adding
22986 TARGET_VFP_BASE check.
22987 (set_fpscr): Add support to set FPSCR register for MVE. Modify pattern
22988 using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
22990 (get_fpscr): Add support to get FPSCR register for MVE. Modify pattern
22991 using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
22995 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
22996 Mihail Ionescu <mihail.ionescu@arm.com>
22997 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22999 * config.gcc (arm_mve.h): Include mve intrinsics header file.
23000 * config/arm/aout.h (p0): Add new register name for MVE predicated
23002 * config/arm-builtins.c (ARM_BUILTIN_SIMD_LANE_CHECK): Define macro
23003 common to Neon and MVE.
23004 (ARM_BUILTIN_NEON_LANE_CHECK): Renamed to ARM_BUILTIN_SIMD_LANE_CHECK.
23005 (arm_init_simd_builtin_types): Disable poly types for MVE.
23006 (arm_init_neon_builtins): Move a check to arm_init_builtins function.
23007 (arm_init_builtins): Use ARM_BUILTIN_SIMD_LANE_CHECK instead of
23008 ARM_BUILTIN_NEON_LANE_CHECK.
23009 (mve_dereference_pointer): Add function.
23010 (arm_expand_builtin_args): Call to mve_dereference_pointer when MVE is
23012 (arm_expand_neon_builtin): Moved to arm_expand_builtin function.
23013 (arm_expand_builtin): Moved from arm_expand_neon_builtin function.
23014 * config/arm/arm-c.c (__ARM_FEATURE_MVE): Define macro for MVE and MVE
23015 with floating point enabled.
23016 * config/arm/arm-protos.h (neon_immediate_valid_for_move): Renamed to
23017 simd_immediate_valid_for_move.
23018 (simd_immediate_valid_for_move): Renamed from
23019 neon_immediate_valid_for_move function.
23020 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Generate
23021 error if vfpv2 feature bit is disabled and mve feature bit is also
23022 disabled for HARD_FLOAT_ABI.
23023 (use_return_insn): Check to not push VFP regs for MVE.
23024 (aapcs_vfp_allocate): Add MVE check to have same Procedure Call Standard
23026 (aapcs_vfp_allocate_return_reg): Likewise.
23027 (thumb2_legitimate_address_p): Check to return 0 on valid Thumb-2
23028 address operand for MVE.
23029 (arm_rtx_costs_internal): MVE check to determine cost of rtx.
23030 (neon_valid_immediate): Rename to simd_valid_immediate.
23031 (simd_valid_immediate): Rename from neon_valid_immediate.
23032 (simd_valid_immediate): MVE check on size of vector is 128 bits.
23033 (neon_immediate_valid_for_move): Rename to
23034 simd_immediate_valid_for_move.
23035 (simd_immediate_valid_for_move): Rename from
23036 neon_immediate_valid_for_move.
23037 (neon_immediate_valid_for_logic): Modify call to neon_valid_immediate
23039 (neon_make_constant): Modify call to neon_valid_immediate function.
23040 (neon_vector_mem_operand): Return VFP register for POST_INC or PRE_DEC
23042 (output_move_neon): Add MVE check to generate vldm/vstm instrcutions.
23043 (arm_compute_frame_layout): Calculate space for saved VFP registers for
23045 (arm_save_coproc_regs): Save coproc registers for MVE.
23046 (arm_print_operand): Add case 'E' to print memory operands for MVE.
23047 (arm_print_operand_address): Check to print register number for MVE.
23048 (arm_hard_regno_mode_ok): Check for arm hard regno mode ok for MVE.
23049 (arm_modes_tieable_p): Check to allow structure mode for MVE.
23050 (arm_regno_class): Add VPR_REGNUM check.
23051 (arm_expand_epilogue_apcs_frame): MVE check to calculate epilogue code
23053 (arm_expand_epilogue): MVE check for enabling pop instructions in
23055 (arm_print_asm_arch_directives): Modify function to disable print of
23056 .arch_extension "mve" and "fp" for cases where MVE is enabled with
23058 (arm_vector_mode_supported_p): Check for modes available in MVE interger
23059 and MVE floating point.
23060 (arm_array_mode_supported_p): Add TARGET_HAVE_MVE check for array mode
23062 (arm_conditional_register_usage): Enable usage of conditional regsiter
23064 (fixed_regs[VPR_REGNUM]): Enable VPR_REG for MVE.
23065 (arm_declare_function_name): Modify function to disable print of
23066 .arch_extension "mve" and "fp" for cases where MVE is enabled with
23068 * config/arm/arm.h (TARGET_HAVE_MVE): Disable for soft float abi and
23069 when target general registers are required.
23070 (TARGET_HAVE_MVE_FLOAT): Likewise.
23071 (FIXED_REGISTERS): Add bit for VFP_REG class which is enabled in arm.c
23073 (CALL_USED_REGISTERS): Set bit for VFP_REG class in CALL_USED_REGISTERS
23074 which indicate this is not available for across function calls.
23075 (FIRST_PSEUDO_REGISTER): Modify.
23076 (VALID_MVE_MODE): Define valid MVE mode.
23077 (VALID_MVE_SI_MODE): Define valid MVE SI mode.
23078 (VALID_MVE_SF_MODE): Define valid MVE SF mode.
23079 (VALID_MVE_STRUCT_MODE): Define valid MVE struct mode.
23080 (VPR_REGNUM): Add Vector Predication Register in arm_regs_in_sequence
23082 (IS_VPR_REGNUM): Macro to check for VPR_REG register.
23083 (REG_ALLOC_ORDER): Add VPR_REGNUM entry.
23084 (enum reg_class): Add VPR_REG entry.
23085 (REG_CLASS_NAMES): Add VPR_REG entry.
23086 * config/arm/arm.md (VPR_REGNUM): Define.
23087 (conds): Check is_mve_type attrbiute to differentiate "conditional" and
23088 "unconditional" instructions.
23089 (arm_movsf_soft_insn): Modify RTL to not allow for MVE.
23090 (movdf_soft_insn): Modify RTL to not allow for MVE.
23091 (vfp_pop_multiple_with_writeback): Enable for MVE.
23092 (include "mve.md"): Include mve.md file.
23093 * config/arm/arm_mve.h: Add MVE intrinsics head file.
23094 * config/arm/constraints.md (Up): Constraint to enable "p0" register in MVE
23095 for vector predicated operands.
23096 * config/arm/iterators.md (VNIM1): Define.
23097 (VNINOTM1): Define.
23098 (VHFBF_split): Define
23099 * config/arm/mve.md: New file.
23100 (mve_mov<mode>): Define RTL for move, store and load in MVE.
23101 (mve_mov<mode>): Define move RTL pattern with vec_duplicate operator for
23103 * config/arm/neon.md (neon_immediate_valid_for_move): Rename with
23104 simd_immediate_valid_for_move.
23105 (neon_mov<mode>): Split pattern and move expand pattern "movv8hf" which
23106 is common to MVE and NEON to vec-common.md file.
23107 (vec_init<mode><V_elem_l>): Add TARGET_HAVE_MVE check.
23108 * config/arm/predicates.md (vpr_register_operand): Define.
23109 * config/arm/t-arm: Add mve.md file.
23110 * config/arm/types.md (mve_move): Add MVE instructions mve_move to
23112 (mve_store): Add MVE instructions mve_store to attribute "type".
23113 (mve_load): Add MVE instructions mve_load to attribute "type".
23114 (is_mve_type): Define attribute.
23115 * config/arm/vec-common.md (mov<mode>): Modify RTL expand to support
23116 standard move patterns in MVE along with NEON and IWMMXT with mode
23118 (mov<mode>): Modify RTL expand to support standard move patterns in NEON
23119 and IWMMXT with mode iterator V8HF.
23120 (movv8hf): Define RTL expand to support standard "movv8hf" pattern in
23122 * config/arm/vfp.md (neon_immediate_valid_for_move): Rename to
23123 simd_immediate_valid_for_move.
23126 2020-03-16 H.J. Lu <hongjiu.lu@intel.com>
23129 * config/i386/i386.md (*movsi_internal): Call ix86_output_ssemov
23130 for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL
23132 * config/i386/predicates.md (ext_sse_reg_operand): Removed.
23134 2020-03-16 Jakub Jelinek <jakub@redhat.com>
23137 * tree-inline.c (insert_init_stmt): Don't gimple_regimplify_operands
23140 PR tree-optimization/94166
23141 * tree-ssa-reassoc.c (sort_by_mach_mode): Use SSA_NAME_VERSION
23142 as secondary comparison key.
23144 2020-03-16 Bin Cheng <bin.cheng@linux.alibaba.com>
23146 PR tree-optimization/94125
23147 * tree-loop-distribution.c
23148 (loop_distribution::break_alias_scc_partitions): Update post order
23149 number for merged scc.
23151 2020-03-15 H.J. Lu <hongjiu.lu@intel.com>
23154 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_SI and
23156 * config/i386/i386.md (*movsf_internal): Call ix86_output_ssemov
23157 for TYPE_SSEMOV. Remove TARGET_PREFER_AVX256, TARGET_AVX512VL
23158 and ext_sse_reg_operand check.
23160 2020-03-15 Lewis Hyatt <lhyatt@gmail.com>
23162 * common.opt: Avoid redundancy in the help text.
23163 * config/arc/arc.opt: Likewise.
23164 * config/cr16/cr16.opt: Likewise.
23166 2020-03-14 Jakub Jelinek <jakub@redhat.com>
23168 PR middle-end/93566
23169 * tree-nested.c (convert_nonlocal_omp_clauses,
23170 convert_local_omp_clauses): Handle {,in_,task_}reduction clauses
23171 with C/C++ array sections.
23173 2020-03-14 H.J. Lu <hongjiu.lu@intel.com>
23176 * config/i386/i386.md (*movdi_internal): Call ix86_output_ssemov
23177 for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL
23180 2020-03-14 Jakub Jelinek <jakub@redhat.com>
23182 * gimple-fold.c (gimple_fold_builtin_strncpy): Change
23183 "a an" to "an" in a comment.
23184 * hsa-common.h (is_a_helper): Likewise.
23185 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.
23186 * config/arc/arc.c (arc600_corereg_hazard): Likewise.
23187 * config/s390/s390.c (s390_indirect_branch_via_thunk): Likewise.
23189 2020-03-13 Aaron Sawdey <acsawdey@linux.ibm.com>
23192 * config/rs6000/rs6000.c (num_insns_constant_multi): Don't shift a
23193 64-bit value by 64 bits (UB).
23195 2020-03-13 Vladimir Makarov <vmakarov@redhat.com>
23197 PR rtl-optimization/92303
23198 * lra-spills.c (remove_pseudos): Try to simplify memory subreg.
23200 2020-03-13 Segher Boessenkool <segher@kernel.crashing.org>
23202 PR rtl-optimization/94148
23203 PR rtl-optimization/94042
23204 * df-core.c (BB_LAST_CHANGE_AGE): Delete.
23205 (df_worklist_propagate_forward): New parameter last_change_age, use
23206 that instead of bb->aux.
23207 (df_worklist_propagate_backward): Ditto.
23208 (df_worklist_dataflow_doublequeue): Use a local array last_change_age.
23210 2020-03-13 Richard Biener <rguenther@suse.de>
23212 PR tree-optimization/94163
23213 * tree-ssa-pre.c (create_expression_by_pieces): Check
23214 whether alignment would be zero.
23216 2020-03-13 Martin Liska <mliska@suse.cz>
23219 * lto-wrapper.c (run_gcc): Use concat for appending
23220 to collect_gcc_options.
23222 2020-03-13 Jakub Jelinek <jakub@redhat.com>
23225 * config/aarch64/aarch64.c (aarch64_add_offset_1): Use gen_int_mode
23226 instead of GEN_INT.
23228 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
23231 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DF.
23232 * config/i386/i386.md (*movdf_internal): Call ix86_output_ssemov
23233 for TYPE_SSEMOV. Remove TARGET_AVX512F, TARGET_PREFER_AVX256,
23234 TARGET_AVX512VL and ext_sse_reg_operand check.
23236 2020-03-13 Bu Le <bule1@huawei.com>
23239 * config/aarch64/aarch64.opt (-param=aarch64-float-recp-precision=)
23240 (-param=aarch64-double-recp-precision=): New options.
23241 * doc/invoke.texi: Document them.
23242 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Use them
23243 instead of hard-coding the choice of 1 for float and 2 for double.
23245 2020-03-13 Eric Botcazou <ebotcazou@adacore.com>
23247 PR rtl-optimization/94119
23248 * resource.h (clear_hashed_info_until_next_barrier): Declare.
23249 * resource.c (clear_hashed_info_until_next_barrier): New function.
23250 * reorg.c (add_to_delay_list): Fix formatting.
23251 (relax_delay_slots): Call clear_hashed_info_until_next_barrier on
23252 the next instruction after removing a BARRIER.
23254 2020-03-13 Eric Botcazou <ebotcazou@adacore.com>
23256 PR middle-end/92071
23257 * expmed.c (store_integral_bit_field): For fields larger than a word,
23258 call extract_bit_field on the value if the mode is BLKmode. Remove
23259 specific path for big-endian targets and tidy things up a little bit.
23261 2020-03-12 Richard Sandiford <richard.sandiford@arm.com>
23263 PR rtl-optimization/90275
23264 * cse.c (cse_insn): Delete no-op register moves too.
23266 2020-03-12 Darius Galis <darius.galis@cyberthorstudios.com>
23268 * config/rx/rx.md (CTRLREG_CPEN): Remove.
23269 * config/rx/rx.c (rx_print_operand): Remove CTRLREG_CPEN support.
23271 2020-03-12 Richard Biener <rguenther@suse.de>
23273 PR tree-optimization/94103
23274 * tree-ssa-sccvn.c (visit_reference_op_load): Avoid type
23275 punning when the mode precision is not sufficient.
23277 2020-03-12 H.J. Lu <hongjiu.lu@intel.com>
23280 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DI,
23281 MODE_V1DF and MODE_V2SF.
23282 * config/i386/mmx.md (MMXMODE:*mov<mode>_internal): Call
23283 ix86_output_ssemov for TYPE_SSEMOV. Remove ext_sse_reg_operand
23286 2020-03-12 Jakub Jelinek <jakub@redhat.com>
23288 * doc/tm.texi.in (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change
23289 ASM_OUTPUT_ALIGNED_DECL in description to ASM_OUTPUT_ALIGNED_LOCAL
23290 and ASM_OUTPUT_DECL to ASM_OUTPUT_LOCAL.
23291 * doc/tm.texi: Regenerated.
23293 PR tree-optimization/94130
23294 * tree-ssa-dse.c: Include gimplify.h.
23295 (increment_start_addr): If stmt has lhs, drop the lhs from call and
23296 set it after the call to the original value of the first argument.
23298 (decrement_count): Formatting fix.
23300 2020-03-11 Delia Burduv <delia.burduv@arm.com>
23302 * config/arm/arm-builtins.c
23303 (arm_init_simd_builtin_scalar_types): New.
23304 * config/arm/arm_neon.h (vld2_bf16): Used new builtin type.
23305 (vld2q_bf16): Used new builtin type.
23306 (vld3_bf16): Used new builtin type.
23307 (vld3q_bf16): Used new builtin type.
23308 (vld4_bf16): Used new builtin type.
23309 (vld4q_bf16): Used new builtin type.
23310 (vld2_dup_bf16): Used new builtin type.
23311 (vld2q_dup_bf16): Used new builtin type.
23312 (vld3_dup_bf16): Used new builtin type.
23313 (vld3q_dup_bf16): Used new builtin type.
23314 (vld4_dup_bf16): Used new builtin type.
23315 (vld4q_dup_bf16): Used new builtin type.
23317 2020-03-11 Jakub Jelinek <jakub@redhat.com>
23320 * config/pdp11/pdp11.c (pdp11_asm_output_var): Call switch_to_section
23321 at the start to switch to data section. Don't print extra newline if
23322 .globl directive has not been emitted.
23324 2020-03-11 Richard Biener <rguenther@suse.de>
23326 * match.pd ((T *)(ptr - ptr-cst) -> &MEM[ptr + -ptr-cst]):
23329 2020-03-11 Eric Botcazou <ebotcazou@adacore.com>
23331 PR middle-end/93961
23332 * tree.c (variably_modified_type_p) <RECORD_TYPE>: Recurse into fields
23333 whose type is a qualified union.
23335 2020-03-11 Jakub Jelinek <jakub@redhat.com>
23338 * config/aarch64/aarch64.c (aarch64_add_offset_1): Use absu_hwi
23339 instead of abs_hwi, change moffset type to unsigned HOST_WIDE_INT.
23342 * value-prof.c (dump_histogram_value): Use abs_hwi instead of
23344 (get_nth_most_common_value): Use abs_hwi instead of abs.
23346 PR middle-end/94111
23347 * dfp.c (decimal_to_binary): Only use decimal128ToString if from->cl
23348 is rvc_normal, otherwise use real_to_decimal to print the number to
23351 PR tree-optimization/94114
23352 * tree-loop-distribution.c (generate_memset_builtin): Call
23353 rewrite_to_non_trapping_overflow even on mem.
23354 (generate_memcpy_builtin): Call rewrite_to_non_trapping_overflow even
23357 2020-03-10 Jeff Law <law@redhat.com>
23359 * config/bfin/bfin.md (movsi_insv): Add length attribute.
23361 2020-03-10 Jiufu Guo <guojiufu@linux.ibm.com>
23364 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): Check
23365 NAN and SIGNED_ZEROR for smax/smin.
23367 2020-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
23370 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
23371 clause to handle P9V_BUILTIN_VEC_LXVL with const arguments.
23373 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
23375 * loop-iv.c (find_simple_exit): Make it static.
23376 * cfgloop.h: Remove the corresponding prototype.
23378 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
23380 * ddg.c (create_ddg): Fix intendation.
23381 (set_recurrence_length): Likewise.
23382 (create_ddg_all_sccs): Likewise.
23384 2020-03-10 Jakub Jelinek <jakub@redhat.com>
23387 * config/i386/i386.md (*testqi_ext_3): Call ix86_match_ccmode with
23388 CCZmode instead of CCNOmode if operands[2] has DImode and pos + len
23391 2020-03-09 Jason Merrill <jason@redhat.com>
23393 * gdbinit.in (pgs): Fix typo in documentation.
23395 2020-03-09 Vladimir Makarov <vmakarov@redhat.com>
23399 2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
23401 PR rtl-optimization/93564
23402 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
23403 do not honor reg alloc order.
23405 2020-03-09 Andrew Pinski <apinski@marvell.com>
23407 PR inline-asm/94095
23408 * doc/extend.texi (x86 Operand Modifiers): Fix column
23411 2020-03-09 Martin Liska <mliska@suse.cz>
23414 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23415 Remove set of str_align_loops and str_align_jumps as these
23416 should be set in previous 2 conditions in the function.
23418 2020-03-09 Jakub Jelinek <jakub@redhat.com>
23420 PR rtl-optimization/94045
23421 * params.opt (-param=max-find-base-term-values=): New option.
23422 * alias.c (find_base_term): Add cut-off for number of visited VALUEs
23423 in a single toplevel find_base_term call.
23425 2020-03-06 Wilco Dijkstra <wdijkstr@arm.com>
23428 * config/aarch64/aarch64-builtins.c (TYPES_TERNOPU_LANE): Add define.
23429 * config/aarch64/aarch64-simd.md
23430 (aarch64_vec_<su>mult_lane<Qlane>): Add new insn for widening lane mul.
23431 (aarch64_vec_<su>mlal_lane<Qlane>): Likewise.
23432 * config/aarch64/aarch64-simd-builtins.def: Add intrinsics.
23433 * config/aarch64/arm_neon.h:
23434 (vmlal_lane_s16): Expand using intrinsics rather than inline asm.
23435 (vmlal_lane_u16): Likewise.
23436 (vmlal_lane_s32): Likewise.
23437 (vmlal_lane_u32): Likewise.
23438 (vmlal_laneq_s16): Likewise.
23439 (vmlal_laneq_u16): Likewise.
23440 (vmlal_laneq_s32): Likewise.
23441 (vmlal_laneq_u32): Likewise.
23442 (vmull_lane_s16): Likewise.
23443 (vmull_lane_u16): Likewise.
23444 (vmull_lane_s32): Likewise.
23445 (vmull_lane_u32): Likewise.
23446 (vmull_laneq_s16): Likewise.
23447 (vmull_laneq_u16): Likewise.
23448 (vmull_laneq_s32): Likewise.
23449 (vmull_laneq_u32): Likewise.
23450 * config/aarch64/iterators.md (Vcondtype): New iterator for lane mul.
23453 2020-03-06 Wilco Dijkstra <wdijkstr@arm.com>
23455 * aarch64/aarch64-simd.md (aarch64_mla_elt<mode>): Correct lane syntax.
23456 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
23457 (aarch64_mls_elt<mode>): Likewise.
23458 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
23459 (aarch64_fma4_elt<mode>): Likewise.
23460 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
23461 (aarch64_fma4_elt_to_64v2df): Likewise.
23462 (aarch64_fnma4_elt<mode>): Likewise.
23463 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
23464 (aarch64_fnma4_elt_to_64v2df): Likewise.
23466 2020-03-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23468 * config/aarch64/aarch64-sve2.md (@aarch64_sve_<sve_int_op><mode>:
23469 Specify movprfx attribute.
23470 (@aarch64_sve_<sve_int_op>_lane_<mode>): Likewise.
23472 2020-03-06 David Edelsohn <dje.gcc@gmail.com>
23475 * config/rs6000/aix61.h (TARGET_NO_SUM_IN_TOC): Set to 1 for
23477 (TARGET_NO_FP_IN_TOC): Same.
23478 * config/rs6000/aix71.h: Same.
23479 * config/rs6000/aix72.h: Same.
23481 2020-03-06 Andrew Pinski <apinski@marvell.com>
23482 Jeff Law <law@redhat.com>
23484 PR rtl-optimization/93996
23485 * haifa-sched.c (remove_notes): Be more careful when adding
23488 2020-03-06 Delia Burduv <delia.burduv@arm.com>
23490 * config/arm/arm_neon.h (vld2_bf16): New.
23496 (vld2_dup_bf16): New.
23497 (vld2q_dup_bf16): New.
23498 (vld3_dup_bf16): New.
23499 (vld3q_dup_bf16): New.
23500 (vld4_dup_bf16): New.
23501 (vld4q_dup_bf16): New.
23502 * config/arm/arm_neon_builtins.def
23503 (vld2): Changed to VAR13 and added v4bf, v8bf
23504 (vld2_dup): Changed to VAR8 and added v4bf, v8bf
23505 (vld3): Changed to VAR13 and added v4bf, v8bf
23506 (vld3_dup): Changed to VAR8 and added v4bf, v8bf
23507 (vld4): Changed to VAR13 and added v4bf, v8bf
23508 (vld4_dup): Changed to VAR8 and added v4bf, v8bf
23509 * config/arm/iterators.md (VDXBF2): New iterator.
23510 *config/arm/neon.md (neon_vld2): Use new iterators.
23511 (neon_vld2_dup<mode): Use new iterators.
23512 (neon_vld3<mode>): Likewise.
23513 (neon_vld3qa<mode>): Likewise.
23514 (neon_vld3qb<mode>): Likewise.
23515 (neon_vld3_dup<mode>): Likewise.
23516 (neon_vld4<mode>): Likewise.
23517 (neon_vld4qa<mode>): Likewise.
23518 (neon_vld4qb<mode>): Likewise.
23519 (neon_vld4_dup<mode>): Likewise.
23520 (neon_vld2_dupv8bf): New.
23521 (neon_vld3_dupv8bf): Likewise.
23522 (neon_vld4_dupv8bf): Likewise.
23524 2020-03-06 Delia Burduv <delia.burduv@arm.com>
23526 * config/arm/arm_neon.h (bfloat16x4x2_t): New typedef.
23527 (bfloat16x8x2_t): New typedef.
23528 (bfloat16x4x3_t): New typedef.
23529 (bfloat16x8x3_t): New typedef.
23530 (bfloat16x4x4_t): New typedef.
23531 (bfloat16x8x4_t): New typedef.
23538 * config/arm/arm-builtins.c (v2bf_UP): Define.
23540 (arm_init_simd_builtin_types): Init Bfloat16x2_t eltype.
23541 * config/arm/arm-modes.def (V2BF): New mode.
23542 * config/arm/arm-simd-builtin-types.def
23543 (Bfloat16x2_t): New entry.
23544 * config/arm/arm_neon_builtins.def
23545 (vst2): Changed to VAR13 and added v4bf, v8bf
23546 (vst3): Changed to VAR13 and added v4bf, v8bf
23547 (vst4): Changed to VAR13 and added v4bf, v8bf
23548 * config/arm/iterators.md (VDXBF): New iterator.
23549 (VQ2BF): New iterator.
23550 *config/arm/neon.md (neon_vst2<mode>): Used new iterators.
23551 (neon_vst2<mode>): Used new iterators.
23552 (neon_vst3<mode>): Used new iterators.
23553 (neon_vst3<mode>): Used new iterators.
23554 (neon_vst3qa<mode>): Used new iterators.
23555 (neon_vst3qb<mode>): Used new iterators.
23556 (neon_vst4<mode>): Used new iterators.
23557 (neon_vst4<mode>): Used new iterators.
23558 (neon_vst4qa<mode>): Used new iterators.
23559 (neon_vst4qb<mode>): Used new iterators.
23561 2020-03-06 Delia Burduv <delia.burduv@arm.com>
23563 * config/aarch64/aarch64-simd-builtins.def
23564 (bfcvtn): New built-in function.
23565 (bfcvtn_q): New built-in function.
23566 (bfcvtn2): New built-in function.
23567 (bfcvt): New built-in function.
23568 * config/aarch64/aarch64-simd.md
23569 (aarch64_bfcvtn<q><mode>): New pattern.
23570 (aarch64_bfcvtn2v8bf): New pattern.
23571 (aarch64_bfcvtbf): New pattern.
23572 * config/aarch64/arm_bf16.h (float32_t): New typedef.
23573 (vcvth_bf16_f32): New intrinsic.
23574 * config/aarch64/arm_bf16.h (vcvt_bf16_f32): New intrinsic.
23575 (vcvtq_low_bf16_f32): New intrinsic.
23576 (vcvtq_high_bf16_f32): New intrinsic.
23577 * config/aarch64/iterators.md (V4SF_TO_BF): New mode iterator.
23578 (UNSPEC_BFCVTN): New UNSPEC.
23579 (UNSPEC_BFCVTN2): New UNSPEC.
23580 (UNSPEC_BFCVT): New UNSPEC.
23581 * config/arm/types.md (bf_cvt): New type.
23583 2020-03-06 Andreas Krebbel <krebbel@linux.ibm.com>
23585 * config/s390/s390.md ("tabort"): Get rid of two consecutive
23586 blanks in format string.
23588 2020-03-05 H.J. Lu <hongjiu.lu@intel.com>
23592 * config/i386/i386-protos.h (ix86_output_ssemov): New prototype.
23593 * config/i386/i386.c (ix86_get_ssemov): New function.
23594 (ix86_output_ssemov): Likewise.
23595 * config/i386/sse.md (VMOVE:mov<mode>_internal): Call
23596 ix86_output_ssemov for TYPE_SSEMOV. Remove TARGET_AVX512VL
23598 (*movxi_internal_avx512f): Call ix86_output_ssemov for TYPE_SSEMOV.
23599 (*movoi_internal_avx): Call ix86_output_ssemov for TYPE_SSEMOV.
23600 Remove ext_sse_reg_operand and TARGET_AVX512VL check.
23601 (*movti_internal): Likewise.
23602 (*movtf_internal): Call ix86_output_ssemov for TYPE_SSEMOV.
23604 2020-03-05 Jeff Law <law@redhat.com>
23606 PR tree-optimization/91890
23607 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Remove LOC argument.
23608 Use gimple_or_expr_nonartificial_location.
23609 (check_bounds_overlap): Drop LOC argument to maybe_diag_access_bounds.
23610 Use gimple_or_expr_nonartificial_location.
23611 * gimple.c (gimple_or_expr_nonartificial_location): New function.
23612 * gimple.h (gimple_or_expr_nonartificial_location): Declare it.
23613 * tree-ssa-strlen.c (maybe_warn_overflow): Use
23614 gimple_or_expr_nonartificial_location.
23615 (maybe_diag_stxncpy_trunc, handle_builtin_stxncpy_strncat): Likewise.
23616 (maybe_warn_pointless_strcmp): Likewise.
23618 2020-03-05 Jakub Jelinek <jakub@redhat.com>
23621 * config/i386/avx2intrin.h (_mm_mask_i32gather_ps): Fix first cast of
23622 SRC and MASK arguments to __m128 from __m128d.
23623 (_mm256_mask_i32gather_ps): Fix first cast of MASK argument to __m256
23625 (_mm_mask_i64gather_ps): Fix first cast of MASK argument to __m128
23627 * config/i386/xopintrin.h (_mm_permute2_pd): Fix first cast of C
23628 argument to __m128i from __m128d.
23629 (_mm256_permute2_pd): Fix first cast of C argument to __m256i from
23631 (_mm_permute2_ps): Fix first cast of C argument to __m128i from __m128.
23632 (_mm256_permute2_ps): Fix first cast of C argument to __m256i from
23635 2020-03-05 Delia Burduv <delia.burduv@arm.com>
23637 * config/arm/arm_neon.h (vbfmmlaq_f32): New.
23638 (vbfmlalbq_f32): New.
23639 (vbfmlaltq_f32): New.
23640 (vbfmlalbq_lane_f32): New.
23641 (vbfmlaltq_lane_f32): New.
23642 (vbfmlalbq_laneq_f32): New.
23643 (vbfmlaltq_laneq_f32): New.
23644 * config/arm/arm_neon_builtins.def (vmmla): New.
23649 (vfmab_laneq): New.
23650 (vfmat_laneq): New.
23651 * config/arm/iterators.md (BF_MA): New int iterator.
23652 (bt): New int attribute.
23653 (VQXBF): Copy of VQX with V8BF.
23654 * config/arm/neon.md (neon_vmmlav8bf): New insn.
23655 (neon_vfma<bt>v8bf): New insn.
23656 (neon_vfma<bt>_lanev8bf): New insn.
23657 (neon_vfma<bt>_laneqv8bf): New expand.
23658 (neon_vget_high<mode>): Changed iterator to VQXBF.
23659 * config/arm/unspecs.md (UNSPEC_BFMMLA): New UNSPEC.
23660 (UNSPEC_BFMAB): New UNSPEC.
23661 (UNSPEC_BFMAT): New UNSPEC.
23663 2020-03-05 Jakub Jelinek <jakub@redhat.com>
23665 PR middle-end/93399
23666 * tree-pretty-print.h (pretty_print_string): Declare.
23667 * tree-pretty-print.c (pretty_print_string): Remove forward
23668 declaration, no longer static. Change nbytes parameter type
23669 from unsigned to size_t.
23670 * print-rtl.c (print_value) <case CONST_STRING>: Use
23671 pretty_print_string and for shrink way too long strings.
23673 2020-03-05 Richard Biener <rguenther@suse.de>
23674 Jakub Jelinek <jakub@redhat.com>
23676 PR tree-optimization/93582
23677 * tree-ssa-sccvn.c (vn_reference_lookup_3): Treat POINTER_PLUS_EXPR
23678 last operand as signed when looking for memset offset. Formatting
23681 2020-03-04 Andrew Pinski <apinski@marvell.com>
23684 * value-prof.c (dump_histogram_value): Use std::abs.
23686 2020-03-04 Martin Sebor <msebor@redhat.com>
23688 PR tree-optimization/93986
23689 * tree-ssa-strlen.c (maybe_warn_overflow): Convert all wide_int
23690 operands to the same precision widest_int to avoid ICEs.
23692 2020-03-04 Bill Schmidt <wschmidt@linux.ibm.com>
23695 * rs6000-cpus.def (OTHER_ALTIVEC_MASKS): New #define.
23696 * rs6000.c (rs6000_disable_incompatible_switches): Add table entry
23697 for OPTION_MASK_ALTIVEC.
23699 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
23701 * config.gcc: Include the glibc-stdint.h header for zTPF.
23703 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
23705 * config/s390/s390.c (s390_secondary_memory_needed): Disallow
23706 direct FPR-GPR copies.
23707 (s390_register_info_gprtofpr): Disallow GPR content to be saved in
23710 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
23712 * config/s390/s390.c (s390_emit_prologue): Specify the 2 new
23713 operands to the prologue_tpf expander.
23714 (s390_emit_epilogue): Likewise.
23715 (s390_option_override_internal): Do error checking and setup for
23717 * config/s390/tpf.h (TPF_TRACE_PROLOGUE_CHECK)
23718 (TPF_TRACE_EPILOGUE_CHECK, TPF_TRACE_PROLOGUE_TARGET)
23719 (TPF_TRACE_EPILOGUE_TARGET, TPF_TRACE_PROLOGUE_SKIP_TARGET)
23720 (TPF_TRACE_EPILOGUE_SKIP_TARGET): New macro definitions.
23721 * config/s390/tpf.md ("prologue_tpf", "epilogue_tpf"): Add two new
23722 operands for the check flag and the branch target.
23723 * config/s390/tpf.opt ("mtpf-trace-hook-prologue-check")
23724 ("mtpf-trace-hook-prologue-target")
23725 ("mtpf-trace-hook-epilogue-check")
23726 ("mtpf-trace-hook-epilogue-target", "mtpf-trace-skip"): New
23728 * doc/invoke.texi: Document -mtpf-trace-skip option. The other
23729 options are for debugging purposes and will not be documented
23732 2020-03-04 Jakub Jelinek <jakub@redhat.com>
23735 * tree-inline.c (copy_decl_to_var): Copy DECL_BY_REFERENCE flag.
23737 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Add offseti
23738 argument. Change pd argument so that it can be modified. Turn
23739 constant non-CONSTRUCTOR store into non-constant if it is too large.
23740 Adjust offset and size of CONSTRUCTOR or non-constant store to avoid
23742 (vn_walk_cb_data::vn_walk_cb_data, vn_reference_lookup_3): Adjust
23745 2020-02-04 Richard Biener <rguenther@suse.de>
23747 PR tree-optimization/93964
23748 * graphite-isl-ast-to-gimple.c
23749 (gcc_expression_from_isl_ast_expr_id): Add intermediate
23750 conversion for pointer to integer converts.
23751 * graphite-scop-detection.c (assign_parameter_index_in_region):
23754 2020-03-04 Martin Liska <mliska@suse.cz>
23758 * doc/invoke.texi: Clarify --help=language and --help=common
23761 2020-03-04 Jakub Jelinek <jakub@redhat.com>
23763 PR tree-optimization/94001
23764 * tree-tailcall.c (process_assignment): Before comparing op1 to
23765 *ass_var, verify *ass_var is non-NULL.
23767 2020-03-04 Kito Cheng <kito.cheng@sifive.com>
23770 * config/riscv/riscv.c (riscv_emit_float_compare): Using NE to compare
23773 2020-03-03 Dennis Zhang <dennis.zhang@arm.com>
23775 * config/arm/arm_bf16.h (vcvtah_f32_bf16, vcvth_bf16_f32): New.
23776 * config/arm/arm_neon.h (vcvt_f32_bf16, vcvtq_low_f32_bf16): New.
23777 (vcvtq_high_f32_bf16, vcvt_bf16_f32): New.
23778 (vcvtq_low_bf16_f32, vcvtq_high_bf16_f32): New.
23779 * config/arm/arm_neon_builtins.def (vbfcvt, vbfcvt_high): New entries.
23780 (vbfcvtv4sf, vbfcvtv4sf_high): Likewise.
23781 * config/arm/iterators.md (VBFCVT, VBFCVTM): New mode iterators.
23782 (V_bf_low, V_bf_cvt_m): New mode attributes.
23783 * config/arm/neon.md (neon_vbfcvtv4sf<VBFCVT:mode>): New.
23784 (neon_vbfcvtv4sf_highv8bf, neon_vbfcvtsf): New.
23785 (neon_vbfcvt<VBFCVT:mode>, neon_vbfcvt_highv8bf): New.
23786 (neon_vbfcvtbf_cvtmode<mode>, neon_vbfcvtbf): New
23787 * config/arm/unspecs.md (UNSPEC_BFCVT, UNSPEC_BFCVT_HIG): New.
23789 2020-03-03 Jakub Jelinek <jakub@redhat.com>
23791 PR tree-optimization/93582
23792 * tree-ssa-sccvn.h (vn_reference_lookup): Add mask argument.
23793 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add mask and masked_result
23794 members, initialize them in the constructor and if mask is non-NULL,
23795 artificially push_partial_def {} for the portions of the mask that
23797 (vn_walk_cb_data::finish): If mask is non-NULL, set masked_result to
23798 val and return (void *)-1. Formatting fix.
23799 (vn_reference_lookup_pieces): Adjust vn_walk_cb_data initialization.
23801 (vn_reference_lookup): Add mask argument. If non-NULL, don't call
23802 fully_constant_vn_reference_p nor vn_reference_lookup_1 and return
23804 (visit_nary_op): Handle BIT_AND_EXPR of a memory load and INTEGER_CST
23806 (visit_stmt): Formatting fix.
23808 2020-03-03 Richard Biener <rguenther@suse.de>
23810 PR tree-optimization/93946
23811 * alias.h (refs_same_for_tbaa_p): Declare.
23812 * alias.c (refs_same_for_tbaa_p): New function.
23813 * tree-ssa-alias.c (ao_ref_alias_set): For a NULL ref return
23815 * tree-ssa-scopedtables.h
23816 (avail_exprs_stack::lookup_avail_expr): Add output argument
23817 giving access to the hashtable entry.
23818 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
23820 * tree-ssa-dom.c: Include alias.h.
23821 (dom_opt_dom_walker::optimize_stmt): Validate TBAA state before
23822 removing redundant store.
23823 * tree-ssa-sccvn.h (vn_reference_s::base_set): New member.
23824 (ao_ref_init_from_vn_reference): Adjust prototype.
23825 (vn_reference_lookup_pieces): Likewise.
23826 (vn_reference_insert_pieces): Likewise.
23827 * tree-ssa-sccvn.c: Track base alias set in addition to alias
23829 (eliminate_dom_walker::eliminate_stmt): Also check base alias
23830 set when removing redundant stores.
23831 (visit_reference_op_store): Likewise.
23832 * dse.c (record_store): Adjust valdity check for redundant
23835 2020-03-03 Jakub Jelinek <jakub@redhat.com>
23838 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Reorder.
23840 PR rtl-optimization/94002
23841 * explow.c (plus_constant): Punt if cst has VOIDmode and
23842 get_pool_mode is different from mode.
23844 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
23846 * config/arc/arc.c (leigitimate_small_data_address_p): Check if an
23847 address has an offset which fits the scalling constraint for a
23848 load/store operation.
23849 (legitimate_scaled_address_p): Update use
23850 leigitimate_small_data_address_p.
23851 (arc_print_operand): Likewise.
23852 (arc_legitimate_address_p): Likewise.
23853 (legitimate_small_data_address_p): Likewise.
23855 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
23857 * config/arc/arc.md (fmasf4_fpu): Use accl_operand predicate.
23858 (fnmasf4_fpu): Likewise.
23860 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
23862 * config/arc/arc.md (adddi3): Early expand the 64bit operation into
23864 (subdi3): Likewise.
23865 (adddi3_i): Remove pattern.
23866 (subdi3_i): Likewise.
23868 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
23870 * config/arc/arc.md (eh_return): Add length info.
23872 2020-03-02 David Malcolm <dmalcolm@redhat.com>
23874 * doc/invoke.texi (-fanalyzer-show-duplicate-count): New.
23876 2020-03-02 David Malcolm <dmalcolm@redhat.com>
23878 * doc/invoke.texi (Static Analyzer Options): Add
23879 -Wanalyzer-stale-setjmp-buffer to the list of options enabled
23882 2020-03-02 Uroš Bizjak <ubizjak@gmail.com>
23885 * config/i386/i386.md (movstrict<mode>): Allow only
23886 registers with VALID_INT_MODE_P modes.
23888 2020-03-02 Andrew Stubbs <ams@codesourcery.com>
23890 * config/gcn/gcn-valu.md (dpp_move<mode>): New.
23891 (reduc_insn): Use 'U' and 'B' operand codes.
23892 (reduc_<reduc_op>_scal_<mode>): Allow all types.
23893 (reduc_<reduc_op>_scal_v64di): Delete.
23894 (*<reduc_op>_dpp_shr_<mode>): Allow all 1reg types.
23895 (*plus_carry_dpp_shr_v64si): Change to ...
23896 (*plus_carry_dpp_shr_<mode>): ... this and allow all 1reg int types.
23897 (mov_from_lane63_v64di): Change to ...
23898 (mov_from_lane63_<mode>): ... this, and allow all 64-bit modes.
23899 * config/gcn/gcn.c (gcn_expand_dpp_shr_insn): Increase buffer size.
23900 Support UNSPEC_MOV_DPP_SHR output formats.
23901 (gcn_expand_reduc_scalar): Add "use_moves" reductions.
23902 Add "use_extends" reductions.
23903 (print_operand_address): Add 'I' and 'U' codes.
23904 * config/gcn/gcn.md (unspec): Add UNSPEC_MOV_DPP_SHR.
23906 2020-03-02 Martin Liska <mliska@suse.cz>
23908 * lto-wrapper.c: Fix typo in comment about
23909 C++ standard version.
23911 2020-03-01 Martin Sebor <msebor@redhat.com>
23914 * calls.c (init_attr_rdwr_indices): Correctly handle attribute.
23916 2020-03-01 Martin Sebor <msebor@redhat.com>
23918 PR middle-end/93829
23919 * tree-ssa-strlen.c (count_nonzero_bytes): Set the size to that
23920 of a pointer in the outermost ADDR_EXPRs.
23922 2020-02-28 Jeff Law <law@redhat.com>
23924 * config/v850/v850.h (STATIC_CHAIN_REGNUM): Change to r19.
23925 * config/v850/v850.c (v850_asm_trampoline_template): Update
23928 2020-02-28 Michael Meissner <meissner@linux.ibm.com>
23931 * config/rs6000/vsx.md (vsx_extract_<mode>_<VS_scalar>mode_var):
23934 2020-02-28 Martin Liska <mliska@suse.cz>
23937 * configure.ac: Improve detection of ld_date by requiring
23938 either two dashes or none.
23939 * configure: Regenerate.
23941 2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
23943 PR rtl-optimization/93564
23944 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
23945 do not honor reg alloc order.
23947 2020-02-27 Joel Hutton <Joel.Hutton@arm.com>
23950 * config/aarch64/aarch64.c (aarch64_override_options): Fix
23951 misleading warning string.
23953 2020-02-27 Martin Sebor <msebor@redhat.com>
23955 * doc/invoke.texi (-Wbuiltin-declaration-mismatch): Fix a typo.
23957 2020-02-27 Michael Meissner <meissner@linux.ibm.com>
23960 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
23961 Split the insn into two parts. This insn only does variable
23962 extract from a register.
23963 (vsx_extract_<mode>_var_load, VSX_D iterator): New insn, do
23964 variable extract from memory.
23965 (vsx_extract_v4sf_var): Split the insn into two parts. This insn
23966 only does variable extract from a register.
23967 (vsx_extract_v4sf_var_load): New insn, do variable extract from
23969 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Split the insn
23970 into two parts. This insn only does variable extract from a
23972 (vsx_extract_<mode>_var_load, VSX_EXTRACT_I iterator): New insn,
23973 do variable extract from memory.
23975 2020-02-27 Martin Jambor <mjambor@suse.cz>
23976 Feng Xue <fxue@os.amperecomputing.com>
23979 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): Replaced with
23980 new function calls_same_node_or_its_all_contexts_clone_p.
23981 (cgraph_edge_brings_value_p): Use it.
23982 (cgraph_edge_brings_value_p): Likewise.
23983 (self_recursive_pass_through_p): Return false if caller is a clone.
23984 (self_recursive_agg_pass_through_p): Likewise.
23986 2020-02-27 Jan Hubicka <hubicka@ucw.cz>
23988 PR middle-end/92152
23989 * alias.c (ends_tbaa_access_path_p): Break out from ...
23990 (component_uses_parent_alias_set_from): ... here.
23991 * alias.h (ends_tbaa_access_path_p): Declare.
23992 * tree-ssa-alias.c (access_path_may_continue_p): Break out from ...;
23993 handle trailing arrays past end of tbaa access path.
23994 (aliasing_component_refs_p): ... here; likewise.
23995 (nonoverlapping_refs_since_match_p): Track TBAA segment of the access
23996 path; disambiguate also past end of it.
23997 (nonoverlapping_component_refs_p): Use only TBAA segment of the access
24000 2020-02-27 Mihail Ionescu <mihail.ionescu@arm.com>
24002 * (__ARM_NUM_LANES, __arm_lane, __arm_lane_q): Move to the
24003 beginning of the file.
24004 (vcreate_bf16, vcombine_bf16): New.
24005 (vdup_n_bf16, vdupq_n_bf16): New.
24006 (vdup_lane_bf16, vdup_laneq_bf16): New.
24007 (vdupq_lane_bf16, vdupq_laneq_bf16): New.
24008 (vduph_lane_bf16, vduph_laneq_bf16): New.
24009 (vset_lane_bf16, vsetq_lane_bf16): New.
24010 (vget_lane_bf16, vgetq_lane_bf16): New.
24011 (vget_high_bf16, vget_low_bf16): New.
24012 (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
24013 (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
24014 (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
24015 (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
24016 (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
24017 (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
24018 (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
24019 (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
24020 (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
24021 (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
24022 (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New.
24023 (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
24024 (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
24025 (vreinterpretq_bf16_p128): New.
24026 (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
24027 (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
24028 (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
24029 (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
24030 (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
24031 (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
24032 (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
24033 (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
24034 (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
24035 (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
24036 (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
24037 (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
24038 (vreinterpretq_p128_bf16): New.
24039 * config/arm/arm_neon_builtins.def (VDX): Add V4BF.
24040 (V_elem): Likewise.
24041 (V_elem_l): Likewise.
24042 (VD_LANE): Likewise.
24044 (V_DOUBLE): Likewise.
24045 (VDQX): Add V4BF and V8BF.
24046 (V_two_elem, V_three_elem, V_four_elem): Likewise.
24048 (V_HALF): Likewise.
24049 (V_double_vector_mode): Likewise.
24050 (V_cmp_result): Likewise.
24051 (V_uf_sclr): Likewise.
24052 (V_sz_elem): Likewise.
24053 (Is_d_reg): Likewise.
24054 (V_mode_nunits): Likewise.
24055 * config/arm/neon.md (neon_vdup_lane): Enable for BFloat16.
24057 2020-02-27 Andrew Stubbs <ams@codesourcery.com>
24059 * config/gcn/gcn-valu.md (VEC_SUBDWORD_MODE): New mode iterator.
24060 (<expander><mode>2<exec>): Change modes to VEC_ALL1REG_INT_MODE.
24061 (<expander><mode>3<exec>): Likewise.
24062 (<expander><mode>3): New.
24063 (v<expander><mode>3): New.
24064 (<expander><mode>3): New.
24065 (<expander><mode>3<exec>): Rename to ...
24066 (<expander>v64si3<exec>): ... this, and change modes to V64SI.
24067 * config/gcn/gcn.md (mnemonic): Use '%B' for not.
24069 2020-02-27 Alexandre Oliva <oliva@adacore.com>
24071 * config/vx-common.h (NO_DOLLAR_IN_LABEL, NO_DOT_IN_LABEL): Leave
24074 2020-02-27 Richard Biener <rguenther@suse.de>
24076 PR tree-optimization/93508
24077 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle _CHK like
24078 non-_CHK variants. Valueize their length arguments.
24080 2020-02-27 Richard Biener <rguenther@suse.de>
24082 PR tree-optimization/93953
24083 * tree-vect-slp.c (slp_copy_subtree): Avoid keeping a reference
24084 to the hash-map entry.
24086 2020-02-27 Andrew Stubbs <ams@codesourcery.com>
24088 * config/gcn/gcn.md (mov<mode>): Add transformations for BI subregs.
24090 2020-02-27 Mark Williams <mwilliams@fb.com>
24092 * dwarf2out.c (file_name_acquire): Call remap_debug_filename.
24093 * lto-opts.c (lto_write_options): Drop -fdebug-prefix-map,
24094 -ffile-prefix-map and -fmacro-prefix-map.
24095 * lto-streamer-out.c: Include file-prefix-map.h.
24096 (lto_output_location): Remap the file part of locations.
24098 2020-02-27 Jakub Jelinek <jakub@redhat.com>
24101 * gimplify.c (gimplify_init_constructor): Don't promote readonly
24102 DECL_REGISTER variables to TREE_STATIC.
24104 PR tree-optimization/93582
24105 PR tree-optimization/93945
24106 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle memset with
24107 non-zero INTEGER_CST second argument and ref->offset or ref->size
24108 not a multiple of BITS_PER_UNIT.
24110 2020-02-27 Jonathan Wakely <jwakely@redhat.com>
24112 * doc/install.texi (Binaries): Update description of BullFreeware.
24114 2020-02-26 Sandra Loosemore <sandra@codesourcery.com>
24118 * doc/invoke.texi (Option Summary): Re-alphabetize warnings in
24119 C++ Language Options, Warning Options, and Static Analyzer
24120 Options lists. Document negative form of options enabled by
24121 default. Move some things around to more accurately sort
24122 warnings by category.
24123 (C++ Dialect Options, Warning Options, Static Analyzer
24124 Options): Document negative form of options when enabled by
24125 default. Move some things around to more accurately sort
24126 warnings by category. Add some missing index entries.
24127 Light copy-editing.
24129 2020-02-26 Carl Love <cel@us.ibm.com>
24132 * doc/extend.texi (PowerPC AltiVec Built-in Functions available on
24133 ISA 2.07): The builtin-function name __builtin_crypto_vpmsumb is only
24134 for the vector unsigned short arguments. It is also listed as the
24135 name of the built-in for arguments vector unsigned short,
24136 vector unsigned int and vector unsigned long long built-ins. The
24137 name of the builtins for these arguments should be:
24138 __builtin_crypto_vpmsumh, __builtin_crypto_vpmsumw and
24139 __builtin_crypto_vpmsumd respectively.
24141 2020-02-26 Richard Biener <rguenther@suse.de>
24143 * tree-vect-slp.c (vect_print_slp_tree): Also dump ref count
24144 and load permutation.
24146 2020-02-26 Richard Sandiford <richard.sandiford@arm.com>
24148 PR middle-end/93843
24149 * optabs-tree.c (supportable_convert_operation): Reject types with
24152 2020-02-26 David Malcolm <dmalcolm@redhat.com>
24154 * Makefile.in (ANALYZER_OBJS): Add analyzer/bar-chart.o.
24156 2020-02-26 Jakub Jelinek <jakub@redhat.com>
24158 PR tree-optimization/93820
24159 * gimple-ssa-store-merging.c (check_no_overlap): Change RHS_CODE
24160 argument to ALL_INTEGER_CST_P boolean.
24161 (imm_store_chain_info::try_coalesce_bswap): Adjust caller.
24162 (imm_store_chain_info::coalesce_immediate_stores): Likewise. Handle
24163 adjacent INTEGER_CST store into merged_store->only_constants like
24166 2020-02-25 Jakub Jelinek <jakub@redhat.com>
24169 * config/sh/sh.c (expand_cbranchdi4): Fix comment typo, probablity
24171 * cfghooks.c (verify_flow_info): Likewise.
24172 * predict.c (combine_predictions_for_bb): Likewise.
24173 * bb-reorder.c (connect_better_edge_p): Likewise. Fix comment typo,
24174 sucessor -> successor.
24175 (find_traces_1_round): Fix comment typo, destinarion -> destination.
24176 * omp-expand.c (expand_oacc_for): Fix comment typo, sucessors ->
24178 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Fix dump
24179 message typo, sucessors -> successors.
24181 2020-02-25 Martin Sebor <msebor@redhat.com>
24183 * doc/extend.texi (attribute access): Correct an example.
24185 2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
24187 * config/aarch64/aarch64-builtins.c (aarch64_scalar_builtin_types):
24189 (aarch64_init_simd_builtin_scalar_types): Register simd_bf.
24190 (VAR15, VAR16): New.
24191 * config/aarch64/iterators.md (VALLDIF): Enable for V4BF and V8BF.
24192 (VD): Enable for V4BF.
24194 (VQ): Enable for V8BF.
24196 (VQ_NO2E): Likewise.
24197 (VDBL, Vdbl): Add V4BF.
24198 (V_INT_EQUIV, v_int_equiv): Add V4BF and V8BF.
24199 * config/aarch64/arm_neon.h (bfloat16x4x2_t): New typedef.
24200 (bfloat16x8x2_t): Likewise.
24201 (bfloat16x4x3_t): Likewise.
24202 (bfloat16x8x3_t): Likewise.
24203 (bfloat16x4x4_t): Likewise.
24204 (bfloat16x8x4_t): Likewise.
24205 (vcombine_bf16): New.
24206 (vld1_bf16, vld1_bf16_x2): New.
24207 (vld1_bf16_x3, vld1_bf16_x4): New.
24208 (vld1q_bf16, vld1q_bf16_x2): New.
24209 (vld1q_bf16_x3, vld1q_bf16_x4): New.
24210 (vld1_lane_bf16): New.
24211 (vld1q_lane_bf16): New.
24212 (vld1_dup_bf16): New.
24213 (vld1q_dup_bf16): New.
24216 (vld2_dup_bf16): New.
24217 (vld2q_dup_bf16): New.
24220 (vld3_dup_bf16): New.
24221 (vld3q_dup_bf16): New.
24224 (vld4_dup_bf16): New.
24225 (vld4q_dup_bf16): New.
24226 (vst1_bf16, vst1_bf16_x2): New.
24227 (vst1_bf16_x3, vst1_bf16_x4): New.
24228 (vst1q_bf16, vst1q_bf16_x2): New.
24229 (vst1q_bf16_x3, vst1q_bf16_x4): New.
24230 (vst1_lane_bf16): New.
24231 (vst1q_lane_bf16): New.
24239 2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
24241 * config/aarch64/iterators.md (VDQF_F16) Add V4BF and V8BF.
24242 (VALL_F16): Likewise.
24243 (VALLDI_F16): Likewise.
24245 (Vetype): Likewise.
24246 (vswap_width_name): Likewise.
24247 (VSWAP_WIDTH): Likewise.
24251 * config/aarch64/arm_neon.h (vset_lane_bf16, vsetq_lane_bf16): New.
24252 (vget_lane_bf16, vgetq_lane_bf16): New.
24253 (vcreate_bf16): New.
24254 (vdup_n_bf16, vdupq_n_bf16): New.
24255 (vdup_lane_bf16, vdup_laneq_bf16): New.
24256 (vdupq_lane_bf16, vdupq_laneq_bf16): New.
24257 (vduph_lane_bf16, vduph_laneq_bf16): New.
24258 (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
24259 (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
24260 (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
24261 (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
24262 (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
24263 (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
24264 (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
24265 (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
24266 (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
24267 (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
24268 (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New
24269 (vreinterpret_bf16_f16, vreinterpretq_bf16_f16): New
24270 (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
24271 (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
24272 (vreinterpretq_bf16_p128): New.
24273 (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
24274 (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
24275 (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
24276 (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
24277 (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
24278 (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
24279 (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
24280 (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
24281 (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
24282 (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
24283 (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
24284 (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
24285 (vreinterpret_f64_bf16,vreinterpretq_f64_bf16): New.
24286 (vreinterpret_f16_bf16,vreinterpretq_f16_bf16): New.
24287 (vreinterpretq_p128_bf16): New.
24289 2020-02-25 Dennis Zhang <dennis.zhang@arm.com>
24291 * config/arm/arm_neon.h (vbfdot_f32, vbfdotq_f32): New
24292 (vbfdot_lane_f32, vbfdotq_laneq_f32): New.
24293 (vbfdot_laneq_f32, vbfdotq_lane_f32): New.
24294 * config/arm/arm_neon_builtins.def (vbfdot): New entry.
24295 (vbfdot_lanev4bf, vbfdot_lanev8bf): Likewise.
24296 * config/arm/iterators.md (VSF2BF): New attribute.
24297 * config/arm/neon.md (neon_vbfdot<VCVTF:mode>): New entry.
24298 (neon_vbfdot_lanev4bf<VCVTF:mode>): Likewise.
24299 (neon_vbfdot_lanev8bf<VCVTF:mode>): Likewise.
24301 2020-02-25 Christophe Lyon <christophe.lyon@linaro.org>
24303 * config/arm/arm.md (required_for_purecode): New attribute.
24304 (enabled): Handle required_for_purecode.
24305 * config/arm/thumb1.md (thumb1_movsi_insn): Add alternative to
24306 work with -mpure-code.
24308 2020-02-25 Jakub Jelinek <jakub@redhat.com>
24310 PR rtl-optimization/93908
24311 * combine.c (find_split_point): For store into ZERO_EXTRACT, and src
24314 2019-02-25 Eric Botcazou <ebotcazou@adacore.com>
24316 * dwarf2out.c (dwarf2out_size_function): Run in early-DWARF mode.
24318 2020-02-25 Roman Zhuykov <zhroma@ispras.ru>
24320 * doc/install.texi (--enable-checking): Adjust wording.
24322 2020-02-25 Richard Biener <rguenther@suse.de>
24324 PR tree-optimization/93868
24325 * tree-vect-slp.c (slp_copy_subtree): New function.
24326 (vect_attempt_slp_rearrange_stmts): Copy the SLP tree before
24327 re-arranging stmts in it.
24329 2020-02-25 Jakub Jelinek <jakub@redhat.com>
24331 PR middle-end/93874
24332 * passes.c (pass_manager::dump_passes): Create a cgraph node for the
24333 dummy function and remove it at the end.
24335 PR translation/93864
24336 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Fix comment typo
24337 paramter -> parameter.
24338 * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Likewise.
24339 * ipa-prop.h (struct ipa_agg_replacement_value): Likewise.
24341 2020-02-24 Roman Zhuykov <zhroma@ispras.ru>
24343 * doc/install.texi (--enable-checking): Properly document current
24345 (--enable-stage1-checking): Minor clarification about bootstrap.
24347 2020-02-24 David Malcolm <dmalcolm@redhat.com>
24350 * doc/invoke.texi (-Wnanalyzer-tainted-array-index): Note that
24351 -fanalyzer-checker=taint is also required.
24352 (-fanalyzer-checker=): Note that providing this option enables the
24353 given checker, and doing so may be required for checkers that are
24354 disabled by default.
24356 2020-02-24 David Malcolm <dmalcolm@redhat.com>
24358 * doc/invoke.texi (-fanalyzer-verbosity=): "2" only shows
24359 significant control flow events; add a "3" which shows all
24360 control flow events; the old "3" becomes "4".
24362 2020-02-24 Jakub Jelinek <jakub@redhat.com>
24364 PR tree-optimization/93582
24365 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Consider
24366 pd.offset and pd.size to be counted in bits rather than bytes, add
24367 support for maxsizei that is not a multiple of BITS_PER_UNIT and
24368 handle bitfield stores and loads.
24369 (vn_reference_lookup_3): Don't call ranges_known_overlap_p with
24370 uncomparable quantities - bytes vs. bits. Allow push_partial_def
24371 on offsets/sizes that aren't multiple of BITS_PER_UNIT and adjust
24372 pd.offset/pd.size to be counted in bits rather than bytes.
24373 Formatting fix. Rename shadowed len variable to buflen.
24375 2020-02-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24376 Kugan Vivekandarajah <kugan.vivekanandarajah@linaro.org>
24379 * gcc.c (putenv_COLLECT_AS_OPTIONS): New function.
24380 (driver::main): Call putenv_COLLECT_AS_OPTIONS.
24381 * opts-common.c (parse_options_from_collect_gcc_options): New function.
24382 (prepend_xassembler_to_collect_as_options): Likewise.
24383 * opts.h (parse_options_from_collect_gcc_options): Declare prototype.
24384 (prepend_xassembler_to_collect_as_options): Likewise.
24385 * lto-opts.c (lto_write_options): Stream assembler options
24386 in COLLECT_AS_OPTIONS.
24387 * lto-wrapper.c (xassembler_options_error): New static variable.
24388 (get_options_from_collect_gcc_options): Move parsing options code to
24389 parse_options_from_collect_gcc_options and call it.
24390 (merge_and_complain): Validate -Xassembler options.
24391 (append_compiler_options): Handle OPT_Xassembler.
24392 (run_gcc): Append command line -Xassembler options to
24393 collect_gcc_options.
24394 * doc/invoke.texi: Add documentation about using Xassembler
24397 2020-02-24 Kito Cheng <kito.cheng@sifive.com>
24399 * config/riscv/riscv.c (riscv_emit_float_compare): Change the code gen
24401 (riscv_rtx_costs): Update cost model for LTGT.
24403 2020-02-23 Vladimir Makarov <vmakarov@redhat.com>
24405 PR rtl-optimization/93564
24406 * ira-color.c (struct update_cost_queue_elem): New member start.
24407 (queue_update_cost, get_next_update_cost): Add new arg start.
24408 (allocnos_conflict_p): New function.
24409 (update_costs_from_allocno): Add new arg conflict_cost_update_p.
24410 Add checking conflicts with allocnos_conflict_p.
24411 (update_costs_from_prefs, restore_costs_from_copies): Adjust
24412 update_costs_from_allocno calls.
24413 (update_conflict_hard_regno_costs): Add checking conflicts with
24414 allocnos_conflict_p. Adjust calls of queue_update_cost and
24415 get_next_update_cost.
24416 (assign_hard_reg): Adjust calls of queue_update_cost. Add
24418 (bucket_allocno_compare_func): Restore previous version.
24420 2020-02-21 John David Anglin <danglin@gcc.gnu.org>
24422 * config/pa/pa.c (pa_function_value): Fix check for word and
24423 double-word size when handling aggregate return values.
24424 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Fix to indicate
24425 that homogeneous SFmode and DFmode aggregates are passed and returned
24426 in general registers.
24428 2020-02-21 Jakub Jelinek <jakub@redhat.com>
24430 PR translation/93759
24431 * opts.c (print_filtered_help): Translate help before appending
24432 messages to it rather than after that.
24434 2020-02-19 Richard Sandiford <richard.sandiford@arm.com>
24436 PR rtl-optimization/PR92989
24437 * lra-lives.c (process_bb_lives): Restore the original order
24438 of the bb liveness update. Call make_hard_regno_dead for each
24439 register clobbered at the start of an EH receiver.
24441 2020-02-18 Feng Xue <fxue@os.amperecomputing.com>
24444 * ipa-cp.c (self_recursively_generated_p): Mark self-dependent value as
24445 self-recursively generated.
24447 2020-02-21 Iain Sandoe <iain@sandoe.co.uk>
24450 * config/darwin-c.c (pop_field_alignment): Adjust quoting of
24453 2020-02-21 Mihail Ionescu <mihail.ionescu@arm.com>
24455 * doc/sourcebuild.texi (arm_v8_1m_mve_ok):
24456 Document new target supports option.
24458 2020-02-21 Dennis Zhang <dennis.zhang@arm.com>
24460 * config/arm/arm_neon.h (vmmlaq_s32, vmmlaq_u32, vusmmlaq_s32): New.
24461 * config/arm/arm_neon_builtins.def (smmla, ummla, usmmla): New.
24462 * config/arm/iterators.md (MATMUL): New iterator.
24463 (sup): Add UNSPEC_MATMUL_S, UNSPEC_MATMUL_U, and UNSPEC_MATMUL_US.
24464 (mmla_sfx): New attribute.
24465 * config/arm/neon.md (neon_<sup>mmlav16qi): New.
24466 * config/arm/unspecs.md (UNSPEC_MATMUL_S, UNSPEC_MATMUL_U): New.
24467 (UNSPEC_MATMUL_US): New.
24469 2020-02-21 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
24471 * config/arm/arm.md: Prevent scalar shifts from being used when big
24474 2020-02-21 Jan Hubicka <hubicka@ucw.cz>
24475 Richard Biener <rguenther@suse.de>
24477 PR tree-optimization/93586
24478 * tree-ssa-alias.c (nonoverlapping_array_refs_p): Finish array walk
24479 after mismatched array refs; do not sure type size information to
24480 recover from unmatched referneces with !flag_strict_aliasing_p.
24482 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
24484 * config/gcn/gcn-valu.md (gather_load<mode>): Rename to ...
24485 (gather_load<mode>v64si): ... this and set operand 2 to V64SI.
24486 (scatter_store<mode>): Rename to ...
24487 (scatter_store<mode>v64si): ... this and set operand 1 to V64SI.
24488 (scatter<mode>_exec): Delete. Move contents ...
24489 (mask_scatter_store<mode>): ... here, and rename that to ...
24490 (mask_gather_load<mode>v64si): ... this. Set operand 2 to V64SI.
24491 Remove mode conversion.
24492 (mask_gather_load<mode>): Rename to ...
24493 (mask_scatter_store<mode>v64si): ... this. Set operand 1 to V64SI.
24494 Remove mode conversion.
24495 * config/gcn/gcn.c (gcn_expand_scaled_offsets): Remove mode conversion.
24497 2020-02-21 Martin Jambor <mjambor@suse.cz>
24499 PR tree-optimization/93845
24500 * tree-sra.c (verify_sra_access_forest): Only test access size of
24503 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
24505 * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align VGPR pairs.
24506 * config/gcn/gcn-valu.md (addv64di3): Remove early-clobber.
24507 (addv64di3_exec): Likewise.
24508 (subv64di3): Likewise.
24509 (subv64di3_exec): Likewise.
24510 (addv64di3_zext): Likewise.
24511 (addv64di3_zext_exec): Likewise.
24512 (addv64di3_zext_dup): Likewise.
24513 (addv64di3_zext_dup_exec): Likewise.
24514 (addv64di3_zext_dup2): Likewise.
24515 (addv64di3_zext_dup2_exec): Likewise.
24516 (addv64di3_sext_dup2): Likewise.
24517 (addv64di3_sext_dup2_exec): Likewise.
24518 (<expander>v64di3): Likewise.
24519 (<expander>v64di3_exec): Likewise.
24520 (*<reduc_op>_dpp_shr_v64di): Likewise.
24521 (*plus_carry_dpp_shr_v64di): Likewise.
24522 * config/gcn/gcn.md (adddi3): Likewise.
24523 (addptrdi3): Likewise.
24524 (<expander>di3): Likewise.
24526 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
24528 * config/gcn/gcn-valu.md (vec_seriesv64di): Use gen_vec_duplicatev64di.
24530 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
24532 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Add SVE
24533 support. Use aarch64_emit_mult instead of emitting multiplication
24534 instructions directly.
24535 * config/aarch64/aarch64-sve.md (sqrt<mode>2, rsqrt<mode>2)
24536 (@aarch64_rsqrte<mode>, @aarch64_rsqrts<mode>): New expanders.
24538 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
24540 * config/aarch64/aarch64.c (aarch64_emit_mult): New function.
24541 (aarch64_emit_approx_div): Add SVE support. Use aarch64_emit_mult
24542 instead of emitting multiplication instructions directly.
24543 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_OPTAB): New iterator.
24544 * config/aarch64/aarch64-sve.md (div<mode>3, @aarch64_frecpe<mode>)
24545 (@aarch64_frecps<mode>): New expanders.
24547 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
24549 * config/aarch64/aarch64-protos.h (AARCH64_APPROX_MODE): Operate
24550 on and produce uint64_ts rather than ints.
24551 (AARCH64_APPROX_NONE, AARCH64_APPROX_ALL): Change to uint64_ts.
24552 (cpu_approx_modes): Change the fields from unsigned int to uint64_t.
24554 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
24556 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Don't create
24557 an unused xmsk register when handling approximate rsqrt.
24559 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
24561 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Fix inverted
24562 flag_finite_math_only condition.
24564 2020-02-20 Uroš Bizjak <ubizjak@gmail.com>
24567 * config/i386/mmx.md (*vec_extractv2sf_1): Match source operand
24568 to destination operand for shufps alternative.
24569 (*vec_extractv2si_1): Ditto.
24571 2020-02-20 Peter Bergner <bergner@linux.ibm.com>
24574 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Handle VSX
24577 2020-02-20 Martin Liska <mliska@suse.cz>
24579 PR translation/93831
24580 * config/darwin.c (darwin_override_options): Change 64b to 64-bit mode.
24582 2020-02-20 Martin Liska <mliska@suse.cz>
24584 PR translation/93830
24585 * common/config/avr/avr-common.c: Remote trailing "|".
24587 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
24589 * collect2.c (maybe_run_lto_and_relink): Fix typo in
24592 2020-02-19 Richard Sandiford <richard.sandiford@arm.com>
24594 PR tree-optimization/93767
24595 * tree-vect-data-refs.c (vect_compile_time_alias): Remove the
24596 access-size bias from the offset calculations for negative strides.
24598 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
24600 * collect2.c (c_file, o_file): Make const again.
24601 (ldout,lderrout, dump_ld_file): Remove.
24602 (tool_cleanup): Avoid calling not signal-safe functions.
24603 (maybe_run_lto_and_relink): Avoid possible signal handler
24604 access to unintialzed memory (lto_o_files).
24605 (main): Avoid leaking temp files in $TMPDIR.
24606 Initialize c_file/o_file with concat, which avoids exposing
24607 uninitialized memory to signal handler, which calls unlink(!).
24608 Avoid calling maybe_unlink when the main function returns,
24609 since the atexit handler is already doing this.
24610 * collect2.h (dump_ld_file, ldout, lderrout): Remove.
24612 2020-02-19 Martin Jambor <mjambor@suse.cz>
24614 PR tree-optimization/93776
24615 * tree-sra.c (create_access): Do not create zero size accesses.
24616 (get_access_for_expr): Do not search for zero sized accesses.
24618 2020-02-19 Martin Jambor <mjambor@suse.cz>
24620 PR tree-optimization/93667
24621 * tree-sra.c (scalarizable_type_p): Return false if record fields
24622 do not follow wach other.
24624 2020-01-21 Kito Cheng <kito.cheng@sifive.com>
24626 * config/riscv/riscv.c (riscv_output_move) Using fmv.x.w/fmv.w.x
24627 rather than fmv.x.s/fmv.s.x.
24629 2020-02-18 James Greenhalgh <james.greenhalgh@arm.com>
24631 * config/aarch64/aarch64-simd-builtins.def
24632 (intrinsic_vec_smult_lo_): New.
24633 (intrinsic_vec_umult_lo_): Likewise.
24634 (vec_widen_smult_hi_): Likewise.
24635 (vec_widen_umult_hi_): Likewise.
24636 * config/aarch64/aarch64-simd.md
24637 (aarch64_intrinsic_vec_<su>mult_lo_<mode>): New.
24638 * config/aarch64/arm_neon.h (vmull_high_s8): Use intrinsics.
24639 (vmull_high_s16): Likewise.
24640 (vmull_high_s32): Likewise.
24641 (vmull_high_u8): Likewise.
24642 (vmull_high_u16): Likewise.
24643 (vmull_high_u32): Likewise.
24644 (vmull_s8): Likewise.
24645 (vmull_s16): Likewise.
24646 (vmull_s32): Likewise.
24647 (vmull_u8): Likewise.
24648 (vmull_u16): Likewise.
24649 (vmull_u32): Likewise.
24651 2020-02-18 Martin Liska <mliska@suse.cz>
24653 * value-prof.c (stream_out_histogram_value): Restore LTO PGO
24654 bootstrap by missing removal of invalid sanity check.
24656 2020-02-18 Martin Liska <mliska@suse.cz>
24659 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
24660 Always compare LHS of gimple_assign.
24662 2020-02-18 Martin Liska <mliska@suse.cz>
24665 * cgraph.c (cgraph_node::verify_node): Verify MALLOC attribute
24666 and return type of functions.
24667 * ipa-param-manipulation.c (ipa_param_adjustments::adjust_decl):
24668 Drop MALLOC attribute for void functions.
24669 * ipa-pure-const.c (funct_state_summary_t::duplicate): Drop
24670 malloc_state for a new VOID clone.
24672 2020-02-18 Martin Liska <mliska@suse.cz>
24675 * common.opt: Add -fprofile-reproducibility.
24676 * doc/invoke.texi: Document it.
24677 * value-prof.c (dump_histogram_value):
24678 Document and support behavior for counters[0]
24679 being a negative value.
24680 (get_nth_most_common_value): Handle negative
24681 counters[0] in respect to flag_profile_reproducible.
24683 2020-02-18 Jakub Jelinek <jakub@redhat.com>
24686 * cgraph.c (verify_speculative_call): Use speculative_id instead of
24687 speculative_uid in messages. Remove trailing whitespace from error
24688 message. Use num_speculative_call_targets instead of
24689 num_speculative_targets in a message.
24690 (cgraph_node::verify_node): Use call_stmt instead of cal_stmt in
24691 edge messages and stmt instead of cal_stmt in reference message.
24693 PR tree-optimization/93780
24694 * tree-ssa.c (non_rewritable_lvalue_p): Check valid_vector_subparts_p
24695 before calling build_vector_type.
24696 (execute_update_addresses_taken): Likewise.
24699 * params.opt (-param=ipa-max-switch-predicate-bounds=): Fix help
24700 typo, functoin -> function.
24701 * tree.c (free_lang_data_in_decl): Fix comment typo,
24702 functoin -> function.
24703 * ipa-visibility.c (cgraph_externally_visible_p): Likewise.
24705 2020-02-17 David Malcolm <dmalcolm@redhat.com>
24707 * diagnostic.c (print_any_cwe): Don't call get_cwe_url if URLs
24709 (print_option_information): Don't call get_option_url if URLs
24712 2020-02-17 Alexandre Oliva <oliva@adacore.com>
24714 * tree-emutls.c (new_emutls_decl, emutls_common_1): Complete
24715 handling of register_common-less targets.
24717 2020-02-17 Martin Liska <mliska@suse.cz>
24720 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar.
24722 2020-02-17 Martin Liska <mliska@suse.cz>
24724 PR translation/93755
24725 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24728 2020-02-17 Martin Liska <mliska@suse.cz>
24731 * config/rx/elf.opt: Fix typo.
24733 2020-02-17 Richard Biener <rguenther@suse.de>
24736 * opts-global.c (print_ignored_options): Use inform and
24739 2020-02-17 Jiufu Guo <guojiufu@linux.ibm.com>
24742 * config/rs6000/rs6000.md (untyped_call): Add emit_clobber.
24744 2020-02-16 Uroš Bizjak <ubizjak@gmail.com>
24747 * config/i386/i386.md (atan2xf3): Swap operands 1 and 2.
24748 (atan2<mode>3): Update operand order in the call to gen_atan2xf3.
24750 2020-02-15 Jason Merrill <jason@redhat.com>
24752 * doc/invoke.texi (C Dialect Options): Add -std=c++20.
24754 2020-02-15 Jakub Jelinek <jakub@redhat.com>
24756 PR tree-optimization/93744
24757 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0,
24758 A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
24759 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): For GENERIC, make
24760 sure @2 in the first and @1 in the other patterns has no side-effects.
24762 2020-02-15 David Malcolm <dmalcolm@redhat.com>
24763 Bernd Edlinger <bernd.edlinger@hotmail.de>
24767 * config.in (DIAGNOSTICS_URLS_DEFAULT): New define.
24768 * configure.ac (--with-diagnostics-urls): New configuration
24769 option, based on --with-diagnostics-color.
24770 (DIAGNOSTICS_URLS_DEFAULT): New define.
24771 * config.h: Regenerate.
24772 * configure: Regenerate.
24773 * diagnostic.c (diagnostic_urls_init): Handle -1 for
24774 DIAGNOSTICS_URLS_DEFAULT from configure-time
24775 --with-diagnostics-urls=auto-if-env by querying for a GCC_URLS
24776 and TERM_URLS environment variable.
24777 * diagnostic-url.h (diagnostic_url_format): New enum type.
24778 (diagnostic_urls_enabled_p): rename to...
24779 (determine_url_format): ... this, and change return type.
24780 * diagnostic-color.c (parse_env_vars_for_urls): New helper function.
24781 (auto_enable_urls): Disable URLs on xfce4-terminal, gnome-terminal,
24782 the linux console, and mingw.
24783 (diagnostic_urls_enabled_p): rename to...
24784 (determine_url_format): ... this, and adjust.
24785 * pretty-print.h (pretty_printer::show_urls): rename to...
24786 (pretty_printer::url_format): ... this, and change to enum.
24787 * pretty-print.c (pretty_printer::pretty_printer,
24788 pp_begin_url, pp_end_url, test_urls): Adjust.
24789 * doc/install.texi (--with-diagnostics-urls): Document the new
24790 configuration option.
24791 (--with-diagnostics-color): Document the existing interaction
24792 with GCC_COLORS better.
24793 * doc/invoke.texi (-fdiagnostics-urls): Add GCC_URLS and TERM_URLS
24794 vindex reference. Update description of defaults based on the above.
24795 (-fdiagnostics-color): Update description of how -fdiagnostics-color
24796 interacts with GCC_COLORS.
24798 2020-02-14 Eric Botcazou <ebotcazou@adacore.com>
24801 * config/sparc/sparc.c (eligible_for_call_delay): Test HAVE_GNU_LD in
24802 conjunction with TARGET_GNU_TLS in early return.
24804 2020-02-14 Alexander Monakov <amonakov@ispras.ru>
24806 * rtlanal.c (rtx_cost): Handle a SET up front. Avoid division if
24807 the mode is not wider than UNITS_PER_WORD.
24809 2020-02-14 Martin Jambor <mjambor@suse.cz>
24811 PR tree-optimization/93516
24812 * tree-sra.c (propagate_subaccesses_from_rhs): Do not create
24813 access of the same type as the parent.
24814 (propagate_subaccesses_from_lhs): Likewise.
24816 2020-02-14 Hongtao Liu <hongtao.liu@intel.com>
24819 * config/i386/avx512vbmi2intrin.h
24820 (_mm512_shrdi_epi16, _mm512_mask_shrdi_epi16,
24821 _mm512_maskz_shrdi_epi16, _mm512_shrdi_epi32,
24822 _mm512_mask_shrdi_epi32, _mm512_maskz_shrdi_epi32,
24823 _m512_shrdi_epi64, _m512_mask_shrdi_epi64,
24824 _m512_maskz_shrdi_epi64, _mm512_shldi_epi16,
24825 _mm512_mask_shldi_epi16, _mm512_maskz_shldi_epi16,
24826 _mm512_shldi_epi32, _mm512_mask_shldi_epi32,
24827 _mm512_maskz_shldi_epi32, _mm512_shldi_epi64,
24828 _mm512_mask_shldi_epi64, _mm512_maskz_shldi_epi64): Fix typo
24829 of lacking a closing parenthesis.
24830 * config/i386/avx512vbmi2vlintrin.h
24831 (_mm256_shrdi_epi16, _mm256_mask_shrdi_epi16,
24832 _mm256_maskz_shrdi_epi16, _mm256_shrdi_epi32,
24833 _mm256_mask_shrdi_epi32, _mm256_maskz_shrdi_epi32,
24834 _m256_shrdi_epi64, _m256_mask_shrdi_epi64,
24835 _m256_maskz_shrdi_epi64, _mm256_shldi_epi16,
24836 _mm256_mask_shldi_epi16, _mm256_maskz_shldi_epi16,
24837 _mm256_shldi_epi32, _mm256_mask_shldi_epi32,
24838 _mm256_maskz_shldi_epi32, _mm256_shldi_epi64,
24839 _mm256_mask_shldi_epi64, _mm256_maskz_shldi_epi64,
24840 _mm_shrdi_epi16, _mm_mask_shrdi_epi16,
24841 _mm_maskz_shrdi_epi16, _mm_shrdi_epi32,
24842 _mm_mask_shrdi_epi32, _mm_maskz_shrdi_epi32,
24843 _mm_shrdi_epi64, _mm_mask_shrdi_epi64,
24844 _m_maskz_shrdi_epi64, _mm_shldi_epi16,
24845 _mm_mask_shldi_epi16, _mm_maskz_shldi_epi16,
24846 _mm_shldi_epi32, _mm_mask_shldi_epi32,
24847 _mm_maskz_shldi_epi32, _mm_shldi_epi64,
24848 _mm_mask_shldi_epi64, _mm_maskz_shldi_epi64): Ditto.
24850 2020-02-13 H.J. Lu <hongjiu.lu@intel.com>
24853 * config/i386/i386.c (ix86_trampoline_init): Skip ENDBR32 at
24854 the target function entry.
24856 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
24858 * common/config/arc/arc-common.c (arc_option_optimization_table):
24859 Disable if-conversion step when optimized for size.
24861 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
24863 * config/arc/arc.c (arc_conditional_register_usage): R0-R3 and
24864 R12-R15 are always in ARCOMPACT16_REGS register class.
24865 * config/arc/arc.opt (mq-class): Deprecate.
24866 * config/arc/constraint.md ("q"): Remove dependency on mq-class
24868 * doc/invoke.texi (mq-class): Update text.
24869 * common/config/arc/arc-common.c (arc_option_optimization_table):
24872 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
24874 * config/arc/arc.c (arc_insn_cost): New function.
24875 (TARGET_INSN_COST): Define.
24876 * config/arc/arc.md (cost): New attribute.
24877 (add_n): Use arc_nonmemory_operand.
24878 (ashlsi3_insn): Likewise, also update constraints.
24879 (ashrsi3_insn): Likewise.
24880 (rotrsi3): Likewise.
24881 (add_shift): Likewise.
24882 * config/arc/predicates.md (arc_nonmemory_operand): New predicate.
24884 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
24886 * config/arc/arc.md (mulsidi_600): Correctly select mlo/mhi
24888 (umulsidi_600): Likewise.
24890 2020-02-13 Jakub Jelinek <jakub@redhat.com>
24893 * config/i386/avx512bitalgintrin.h (_mm512_mask_popcnt_epi8,
24894 _mm512_mask_popcnt_epi16, _mm256_mask_popcnt_epi8,
24895 _mm256_mask_popcnt_epi16, _mm_mask_popcnt_epi8,
24896 _mm_mask_popcnt_epi16): Rename __B argument to __A and __A to __W,
24897 pass __A to the builtin followed by __W instead of __A followed by
24899 * config/i386/avx512vpopcntdqintrin.h (_mm512_mask_popcnt_epi32,
24900 _mm512_mask_popcnt_epi64): Likewise.
24901 * config/i386/avx512vpopcntdqvlintrin.h (_mm_mask_popcnt_epi32,
24902 _mm256_mask_popcnt_epi32, _mm_mask_popcnt_epi64,
24903 _mm256_mask_popcnt_epi64): Likewise.
24905 PR tree-optimization/93582
24906 * fold-const.h (shift_bytes_in_array_left,
24907 shift_bytes_in_array_right): Declare.
24908 * fold-const.c (shift_bytes_in_array_left,
24909 shift_bytes_in_array_right): New function, moved from
24910 gimple-ssa-store-merging.c, no longer static.
24911 * gimple-ssa-store-merging.c (shift_bytes_in_array): Move
24912 to gimple-ssa-store-merging.c and rename to shift_bytes_in_array_left.
24913 (shift_bytes_in_array_right): Move to gimple-ssa-store-merging.c.
24914 (encode_tree_to_bitpos): Use shift_bytes_in_array_left instead of
24915 shift_bytes_in_array.
24916 (verify_shift_bytes_in_array): Rename to ...
24917 (verify_shift_bytes_in_array_left): ... this. Use
24918 shift_bytes_in_array_left instead of shift_bytes_in_array.
24919 (store_merging_c_tests): Call verify_shift_bytes_in_array_left
24920 instead of verify_shift_bytes_in_array.
24921 * tree-ssa-sccvn.c (vn_reference_lookup_3): For native_encode_expr
24922 / native_interpret_expr where the store covers all needed bits,
24923 punt on PDP-endian, otherwise allow all involved offsets and sizes
24924 not to be byte-aligned.
24927 * config/i386/sse.md (k<code><mode>): Drop mode from last operand and
24928 use const_0_to_255_operand predicate instead of immediate_operand.
24929 (avx512dq_fpclass<mode><mask_scalar_merge_name>,
24930 avx512dq_vmfpclass<mode><mask_scalar_merge_name>,
24931 vgf2p8affineinvqb_<mode><mask_name>,
24932 vgf2p8affineqb_<mode><mask_name>): Drop mode from
24933 const_0_to_255_operand predicated operands.
24935 2020-02-12 Jeff Law <law@redhat.com>
24937 * config/h8300/h8300.md (comparison shortening peepholes): Use
24938 a mode iterator to merge the HImode and SImode peepholes.
24940 2020-02-12 Jakub Jelinek <jakub@redhat.com>
24942 PR middle-end/93663
24943 * real.c (is_even): Make static. Function comment fix.
24944 (is_halfway_below): Make static, don't assert R is not inf/nan,
24945 instead return false for those. Small formatting fixes.
24947 2020-02-12 Martin Sebor <msebor@redhat.com>
24949 PR middle-end/93646
24950 * tree-ssa-strlen.c (handle_builtin_stxncpy): Rename...
24951 (handle_builtin_stxncpy_strncat): ...to this. Change first argument.
24952 Issue only -Wstringop-overflow strncat, never -Wstringop-truncation.
24953 (strlen_check_and_optimize_call): Adjust callee name.
24955 2020-02-12 Jeff Law <law@redhat.com>
24957 * config/h8300/h8300.md (comparison shortening peepholes): Drop
24958 (and (xor)) variant. Combine other two into single peephole.
24960 2020-02-12 Wilco Dijkstra <wdijkstr@arm.com>
24962 PR rtl-optimization/93565
24963 * config/aarch64/aarch64.c (aarch64_rtx_costs): Add CTZ costs.
24965 2020-02-12 Wilco Dijkstra <wdijkstr@arm.com>
24967 * config/aarch64/aarch64-simd.md
24968 (aarch64_zero_extend<GPI:mode>_reduc_plus_<VDQV_E:mode>): New pattern.
24969 * config/aarch64/aarch64.md (popcount<mode>2): Use it instead of
24970 generating separate ADDV and zero_extend patterns.
24971 * config/aarch64/iterators.md (VDQV_E): New iterator.
24973 2020-02-12 Jeff Law <law@redhat.com>
24975 * config/h8300/h8300.md (cpymemsi, movmd): Remove dead patterns,
24976 expanders, splits, etc.
24977 (movmd_internal_<mode>, movmd splitter, movstr, movsd): Likewise.
24978 (stpcpy_internal_<mode>, stpcpy splitter): Likewise.
24979 (peepholes to convert QI/HI mode pushes to SI mode pushes): Likewise.
24980 * config/h8300/h8300.c (h8300_swap_into_er6): Remove unused function.
24981 (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise
24982 * config/h8300/h8300-protos.h (h8300_swap_into_er6): Remove unused
24983 function prototype.
24984 (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise.
24986 2020-02-12 Jakub Jelinek <jakub@redhat.com>
24989 * config/i386/sse.md (VI48F_256_DQ): New mode iterator.
24990 (avx512vl_vextractf128<mode>): Use it instead of VI48F_256. Remove
24991 TARGET_AVX512DQ from condition.
24992 (vec_extract_lo_<mode><mask_name>): Use <mask_avx512dq_condition>
24993 instead of <mask_mode512bit_condition> in condition. If
24994 TARGET_AVX512DQ is false, emit vextract*64x4 instead of
24996 (vec_extract_lo_<mode><mask_name>): Drop <mask_avx512dq_condition>
24999 2020-02-12 Kewen Lin <linkw@gcc.gnu.org>
25002 * ira.c (combine_and_move_insns): Skip multiple_sets def_insn.
25004 2020-02-12 Segher Boessenkool <segher@kernel.crashing.org>
25006 * config/rs6000/rs6000.c (rs6000_debug_print_mode): Don't use sizeof
25007 where strlen is more legible.
25008 (rs6000_builtin_vectorized_libmass): Ditto.
25009 (rs6000_print_options_internal): Ditto.
25011 2020-02-11 Martin Sebor <msebor@redhat.com>
25013 PR tree-optimization/93683
25014 * tree-ssa-alias.c (stmt_kills_ref_p): Avoid using LHS when not set.
25016 2020-02-11 Michael Meissner <meissner@linux.ibm.com>
25018 * config/rs6000/predicates.md (cint34_operand): Rename the
25019 -mprefixed-addr option to be -mprefixed.
25020 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Rename
25021 the -mprefixed-addr option to be -mprefixed.
25022 (OTHER_FUTURE_MASKS): Likewise.
25023 (POWERPC_MASKS): Likewise.
25024 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
25025 the -mprefixed-addr option to be -mprefixed. Change error
25026 messages to refer to -mprefixed.
25027 (num_insns_constant_gpr): Rename the -mprefixed-addr option to be
25029 (rs6000_legitimate_offset_address_p): Likewise.
25030 (rs6000_mode_dependent_address): Likewise.
25031 (rs6000_opt_masks): Change the spelling of "-mprefixed-addr" to be
25032 "-mprefixed" for target attributes and pragmas.
25033 (address_to_insn_form): Rename the -mprefixed-addr option to be
25035 (rs6000_adjust_insn_length): Likewise.
25036 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Rename the
25037 -mprefixed-addr option to be -mprefixed.
25038 (ASM_OUTPUT_OPCODE): Likewise.
25039 * config/rs6000/rs6000.md (prefixed insn attribute): Rename the
25040 -mprefixed-addr option to be -mprefixed.
25041 * config/rs6000/rs6000.opt (-mprefixed): Rename the
25042 -mprefixed-addr option to be prefixed. Change the option from
25043 being undocumented to being documented.
25044 * doc/invoke.texi (RS/6000 and PowerPC Options): Document the
25045 -mprefixed option. Update the -mpcrel documentation to mention
25048 2020-02-11 Hans-Peter Nilsson <hp@axis.com>
25050 * ira-conflicts.c (print_hard_reg_set): Correct output for sets
25051 including FIRST_PSEUDO_REGISTER - 1.
25052 * ira-color.c (print_hard_reg_set): Ditto.
25054 2020-02-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
25056 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
25057 (USTERNOP_QUALIFIERS): New define.
25058 (USMAC_LANE_QUADTUP_QUALIFIERS): New define.
25059 (SUMAC_LANE_QUADTUP_QUALIFIERS): New define.
25060 (arm_expand_builtin_args): Add case ARG_BUILTIN_LANE_QUADTUP_INDEX.
25061 (arm_expand_builtin_1): Add qualifier_lane_quadtup_index.
25062 * config/arm/arm_neon.h (vusdot_s32): New.
25063 (vusdot_lane_s32): New.
25064 (vusdotq_lane_s32): New.
25065 (vsudot_lane_s32): New.
25066 (vsudotq_lane_s32): New.
25067 * config/arm/arm_neon_builtins.def (usdot, usdot_lane,sudot_lane): New.
25068 * config/arm/iterators.md (DOTPROD_I8MM): New.
25069 (sup, opsuffix): Add <us/su>.
25070 * config/arm/neon.md (neon_usdot, <us/su>dot_lane: New.
25071 * config/arm/unspecs.md (UNSPEC_DOT_US, UNSPEC_DOT_SU): New.
25073 2020-02-11 Richard Biener <rguenther@suse.de>
25075 PR tree-optimization/93661
25076 PR tree-optimization/93662
25077 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
25078 tree_to_poly_int64.
25079 * tree-sra.c (get_access_for_expr): Likewise.
25081 2020-02-10 Jakub Jelinek <jakub@redhat.com>
25084 * config/i386/sse.md (VI_256_AVX2): New mode iterator.
25085 (vcond_mask_<mode><sseintvecmodelower>): Use it instead of VI_256.
25086 Change condition from TARGET_AVX2 to TARGET_AVX.
25088 2020-02-10 Iain Sandoe <iain@sandoe.co.uk>
25091 * config/darwin-c.c (darwin_cfstring_ref_p): Fix up last
25092 argument of strncmp.
25094 2020-02-10 Hans-Peter Nilsson <hp@axis.com>
25096 Try to generate zero-based comparisons.
25097 * config/cris/cris.c (cris_reduce_compare): New function.
25098 * config/cris/cris-protos.h (cris_reduce_compare): Add prototype.
25099 * config/cris/cris.md ("cbranch<mode>4", "cbranchdi4", "cstoredi4")
25100 (cstore<mode>4"): Apply cris_reduce_compare in expanders.
25102 2020-02-10 Richard Earnshaw <rearnsha@arm.com>
25105 * config/arm/arm.md (movsi_compare0): Allow SP as a source register
25106 in Thumb state and also as a destination in Arm state. Add T16
25109 2020-02-10 Hans-Peter Nilsson <hp@axis.com>
25111 * md.texi (Define Subst): Match closing paren in example.
25113 2020-02-10 Jakub Jelinek <jakub@redhat.com>
25117 * config/i386/i386.c (x86_64_elf_section_type_flags): Fix up last
25118 arguments of strncmp.
25120 2020-02-10 Feng Xue <fxue@os.amperecomputing.com>
25123 * ipa-cp.c (ipcp_lattice::add_value): Add source with same call edge
25124 but different source value.
25125 (adjust_callers_for_value_intersection): New function.
25126 (gather_edges_for_value): Adjust order of callers to let a
25127 non-self-recursive caller be the first element.
25128 (self_recursive_pass_through_p): Add a new parameter "simple", and
25129 check generalized self-recursive pass-through jump function.
25130 (self_recursive_agg_pass_through_p): Likewise.
25131 (find_more_scalar_values_for_callers_subset): Compute value from
25132 pass-through jump function for self-recursive.
25133 (intersect_with_plats): Cleanup previous implementation code for value
25134 itersection with self-recursive call edge.
25135 (intersect_with_agg_replacements): Likewise.
25136 (intersect_aggregates_with_edge): Deduce value from pass-through jump
25137 function for self-recursive call edge. Cleanup previous implementation
25138 code for value intersection with self-recursive call edge.
25139 (decide_whether_version_node): Remove dead callers and adjust order
25140 to let a non-self-recursive caller be the first element.
25142 2020-02-09 Uroš Bizjak <ubizjak@gmail.com>
25144 * recog.c: Move pass_split_before_sched2 code in front of
25145 pass_split_before_regstack.
25146 (pass_data_split_before_sched2): Rename pass to split3 from split4.
25147 (pass_data_split_before_regstack): Rename pass to split4 from split3.
25148 (rest_of_handle_split_before_sched2): Remove.
25149 (pass_split_before_sched2::execute): Unconditionally call
25151 (enable_split_before_sched2): New function.
25152 (pass_split_before_sched2::gate): Use enable_split_before_sched2.
25153 (pass_split_before_regstack::gate): Ditto.
25154 * config/nds32/nds32.c (nds32_split_double_word_load_store_p):
25155 Update name check for renamed split4 pass.
25156 * config/sh/sh.c (register_sh_passes): Update pass insertion
25157 point for renamed split4 pass.
25159 2020-02-09 Jakub Jelinek <jakub@redhat.com>
25161 * gimplify.c (gimplify_adjust_omp_clauses_1): Promote
25162 DECL_IN_CONSTANT_POOL variables into "omp declare target" to avoid
25163 copying them around between host and target.
25165 2020-02-08 Andrew Pinski <apinski@marvell.com>
25168 * config/aarch64/aarch64-simd.md (movmisalign<mode>): Check
25169 STRICT_ALIGNMENT also.
25171 2020-02-08 Jim Wilson <jimw@sifive.com>
25174 * config/riscv/riscv.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
25176 2020-02-08 Uroš Bizjak <ubizjak@gmail.com>
25177 Jakub Jelinek <jakub@redhat.com>
25180 * config/i386/i386.h (CALL_USED_REGISTERS): Make
25181 xmm16-xmm31 call-used even in 64-bit ms-abi.
25183 2020-02-07 Dennis Zhang <dennis.zhang@arm.com>
25185 * config/aarch64/aarch64-simd-builtins.def (simd_smmla): New entry.
25186 (simd_ummla, simd_usmmla): Likewise.
25187 * config/aarch64/aarch64-simd.md (aarch64_simd_<sur>mmlav16qi): New.
25188 * config/aarch64/arm_neon.h (vmmlaq_s32, vmmlaq_u32): New.
25189 (vusmmlaq_s32): New.
25191 2020-02-07 Richard Biener <rguenther@suse.de>
25193 PR middle-end/93519
25194 * tree-inline.c (fold_marked_statements): Do a PRE walk,
25195 skipping unreachable regions.
25196 (optimize_inline_calls): Skip folding stmts when we didn't
25199 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
25202 * config/i386/i386.c (function_arg_ms_64): Add a type argument.
25203 Don't return aggregates with only SFmode and DFmode in SSE
25205 (ix86_function_arg): Pass arg.type to function_arg_ms_64.
25207 2020-02-07 Jakub Jelinek <jakub@redhat.com>
25210 * config/rs6000/rs6000-logue.c
25211 (rs6000_emit_probe_stack_range_stack_clash): Always use gen_add3_insn,
25212 if it fails, move rs into end_addr and retry. Add
25213 REG_FRAME_RELATED_EXPR note whenever it returns more than one insn or
25214 the insn pattern doesn't describe well what exactly happens to
25218 * config/i386/predicates.md (avx_identity_operand): Remove.
25219 * config/i386/sse.md (*avx_vec_concat<mode>_1): Remove.
25220 (avx_<castmode><avxsizesuffix>_<castmode>,
25221 avx512f_<castmode><avxsizesuffix>_256<castmode>): Change patterns to
25222 a VEC_CONCAT of the operand and UNSPEC_CAST.
25223 (avx512f_<castmode><avxsizesuffix>_<castmode>): Change pattern to
25224 a VEC_CONCAT of VEC_CONCAT of the operand and UNSPEC_CAST with
25228 * config/i386/i386.c (ix86_lea_outperforms): Make sure to clear
25229 recog_data.insn if distance_non_agu_define changed it.
25231 2020-02-06 Michael Meissner <meissner@linux.ibm.com>
25234 * config/rs6000/rs6000.c (reg_to_non_prefixed): Before ISA 3.0
25235 we only had X-FORM (reg+reg) addressing for vectors. Also before
25236 ISA 3.0, we only had X-FORM addressing for scalars in the
25237 traditional Altivec registers.
25239 2020-02-06 <zhongyunde@huawei.com>
25240 Vladimir Makarov <vmakarov@redhat.com>
25242 PR rtl-optimization/93561
25243 * lra-assigns.c (spill_for): Check that tested hard regno is not out of
25244 hard register range.
25246 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
25248 * config/aarch64/aarch64.md (aarch64_movk<mode>): Add a type
25251 2020-02-06 Segher Boessenkool <segher@kernel.crashing.org>
25253 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Handle the case
25254 where the low and the high 32 bits are equal to each other specially,
25255 with an rldimi instruction.
25257 2020-02-06 Mihail Ionescu <mihail.ionescu@arm.com>
25259 * config/arm/arm-cpus.in: Set profile M for armv8.1-m.main.
25261 2020-02-06 Mihail Ionescu <mihail.ionescu@arm.com>
25263 * config/arm/arm-tables.opt: Regenerate.
25265 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
25268 * config/aarch64/aarch64-protos.h (aarch64_movk_shift): Declare.
25269 * config/aarch64/aarch64.c (aarch64_movk_shift): New function.
25270 * config/aarch64/aarch64.md (aarch64_movk<mode>): New pattern.
25272 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
25274 PR rtl-optimization/87763
25275 * config/aarch64/aarch64.md (*ashiftsi_extvdi_bfiz): New pattern.
25277 2020-02-06 Delia Burduv <delia.burduv@arm.com>
25279 * config/aarch64/aarch64-simd-builtins.def
25280 (bfmlaq): New built-in function.
25281 (bfmlalb): New built-in function.
25282 (bfmlalt): New built-in function.
25283 (bfmlalb_lane): New built-in function.
25284 (bfmlalt_lane): New built-in function.
25285 * config/aarch64/aarch64-simd.md
25286 (aarch64_bfmmlaqv4sf): New pattern.
25287 (aarch64_bfmlal<bt>v4sf): New pattern.
25288 (aarch64_bfmlal<bt>_lane<q>v4sf): New pattern.
25289 * config/aarch64/arm_neon.h (vbfmmlaq_f32): New intrinsic.
25290 (vbfmlalbq_f32): New intrinsic.
25291 (vbfmlaltq_f32): New intrinsic.
25292 (vbfmlalbq_lane_f32): New intrinsic.
25293 (vbfmlaltq_lane_f32): New intrinsic.
25294 (vbfmlalbq_laneq_f32): New intrinsic.
25295 (vbfmlaltq_laneq_f32): New intrinsic.
25296 * config/aarch64/iterators.md (BF_MLA): New int iterator.
25297 (bt): New int attribute.
25299 2020-02-06 Uroš Bizjak <ubizjak@gmail.com>
25301 * config/i386/i386.md (*pushtf): Emit "#" instead of
25302 calling gcc_unreachable in insn output.
25305 (*pushsf_rex64): Ditto for alternatives other than 1.
25306 (*pushsf): Ditto for alternatives other than 1.
25308 2020-02-06 Martin Liska <mliska@suse.cz>
25310 PR gcov-profile/91971
25311 PR gcov-profile/93466
25312 * coverage.c (coverage_init): Revert mangling of
25313 path into filename. It can lead to huge filename length.
25314 Creation of subfolders seem more natural.
25316 2020-02-06 Stam Markianos-Wright <stam.markianos-wright@arm.com>
25319 * config/arm/arm.c (arm_block_arith_comp_libfuncs_for_mode): New.
25320 (arm_init_libfuncs): Add BFmode support to block spurious BF libfuncs.
25321 Use arm_block_arith_comp_libfuncs_for_mode for HFmode.
25323 2020-02-06 Jakub Jelinek <jakub@redhat.com>
25326 * config/i386/predicates.md (avx_identity_operand): New predicate.
25327 * config/i386/sse.md (*avx_vec_concat<mode>_1): New
25328 define_insn_and_split.
25331 * omp-low.c (use_pointer_for_field): For nested constructs, also
25332 look for map clauses on target construct.
25333 (scan_omp_1_stmt) <case GIMPLE_OMP_TARGET>: Bump temporarily
25334 taskreg_nesting_level.
25337 * gimplify.c (gimplify_scan_omp_clauses) <do_notice>: If adding
25338 shared clause, call omp_notice_variable on outer context if any.
25340 2020-02-05 Jason Merrill <jason@redhat.com>
25343 * symtab.c (symtab_node::nonzero_address): A DECL_COMDAT decl has
25344 non-zero address even if weak and not yet defined.
25346 2020-02-05 Martin Sebor <msebor@redhat.com>
25348 PR tree-optimization/92765
25349 * gimple-fold.c (get_range_strlen_tree): Handle MEM_REF and PARM_DECL.
25350 * tree-ssa-strlen.c (compute_string_length): Remove.
25351 (determine_min_objsize): Remove.
25352 (get_len_or_size): Add an argument. Call get_range_strlen_dynamic.
25353 Avoid using type size as the upper bound on string length.
25354 (handle_builtin_string_cmp): Add an argument. Adjust.
25355 (strlen_check_and_optimize_call): Pass additional argument to
25356 handle_builtin_string_cmp.
25358 2020-02-05 Uroš Bizjak <ubizjak@gmail.com>
25360 * config/i386/i386.md (*pushdi2_rex64 peephole2): Remove.
25361 (*pushdi2_rex64 peephole2): Unconditionally split after
25362 epilogue_completed.
25363 (*ashl<mode>3_doubleword): Ditto.
25364 (*<shift_insn><mode>3_doubleword): Ditto.
25366 2020-02-05 Michael Meissner <meissner@linux.ibm.com>
25369 * config/rs6000/rs6000.c (get_vector_offset): Fix
25371 2020-02-05 Andrew Stubbs <ams@codesourcery.com>
25373 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Use / not space.
25375 2020-02-05 David Malcolm <dmalcolm@redhat.com>
25377 * doc/analyzer.texi
25378 (Special Functions for Debugging the Analyzer): Update description
25379 of __analyzer_dump_exploded_nodes.
25381 2020-02-05 Jakub Jelinek <jakub@redhat.com>
25384 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Only
25385 include sets and not clobbers in the vzeroupper pattern.
25386 * config/i386/sse.md (*avx_vzeroupper): Require in insn condition that
25387 the parallel has 17 (64-bit) or 9 (32-bit) elts.
25388 (*avx_vzeroupper_1): New define_insn_and_split.
25391 * recog.c (pass_split_after_reload::gate): For STACK_REGS targets,
25392 don't run when !optimize.
25393 (pass_split_before_regstack::gate): For STACK_REGS targets, run even
25396 2020-02-05 Richard Biener <rguenther@suse.de>
25398 PR middle-end/90648
25399 * genmatch.c (dt_node::gen_kids_1): Emit number of argument
25400 checks before matching calls.
25402 2020-02-05 Jakub Jelinek <jakub@redhat.com>
25404 * tree-ssa-alias.c (aliasing_matching_component_refs_p): Fix up
25405 function comment typo.
25407 PR middle-end/93555
25408 * omp-simd-clone.c (expand_simd_clones): If simd_clone_mangle or
25409 simd_clone_create failed when i == 0, adjust clone->nargs by
25412 2020-02-05 Martin Liska <mliska@suse.cz>
25415 * doc/invoke.texi: Document that one should
25416 not combine ASLR and -fpch.
25418 2020-02-04 Richard Biener <rguenther@suse.de>
25420 PR tree-optimization/93538
25421 * match.pd (addr EQ/NE ptr): Amend to handle &ptr->x EQ/NE ptr.
25423 2020-02-04 Richard Biener <rguenther@suse.de>
25425 PR tree-optimization/91123
25426 * tree-ssa-sccvn.c (vn_walk_cb_data::finish): New method.
25427 (vn_walk_cb_data::last_vuse): New member.
25428 (vn_walk_cb_data::saved_operands): Likewsie.
25429 (vn_walk_cb_data::~vn_walk_cb_data): Release saved_operands.
25430 (vn_walk_cb_data::push_partial_def): Use finish.
25431 (vn_reference_lookup_2): Update last_vuse and use finish if
25432 we've saved operands.
25433 (vn_reference_lookup_3): Use finish and update calls to
25434 push_partial_defs everywhere. When translating through
25435 memcpy or aggregate copies save off operands and alias-set.
25436 (eliminate_dom_walker::eliminate_stmt): Restore VN_WALKREWRITE
25437 operation for redundant store removal.
25439 2020-02-04 Richard Biener <rguenther@suse.de>
25441 PR tree-optimization/92819
25442 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
25443 generating more stmts than before.
25445 2020-02-04 Martin Liska <mliska@suse.cz>
25447 * config/arm/arm.c (arm_gen_far_branch): Move the function
25448 outside of selftests.
25450 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
25452 * config/rs6000/rs6000.c (adjust_vec_address_pcrel): New helper
25453 function to adjust PC-relative vector addresses.
25454 (rs6000_adjust_vec_address): Call adjust_vec_address_pcrel to
25455 handle vectors with PC-relative addresses.
25457 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
25459 * config/rs6000/rs6000.c (reg_to_non_prefixed): Add forward
25461 (hard_reg_and_mode_to_addr_mask): Delete.
25462 (rs6000_adjust_vec_address): If the original vector address
25463 was REG+REG or REG+OFFSET and the element is not zero, do the add
25464 of the elements in the original address before adding the offset
25465 for the vector element. Use address_to_insn_form to validate the
25466 address using the register being loaded, rather than guessing
25467 whether the address is a DS-FORM or DQ-FORM address.
25469 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
25471 * config/rs6000/rs6000.c (get_vector_offset): New helper function
25472 to calculate the offset in memory from the start of a vector of a
25473 particular element. Add code to keep the element number in
25474 bounds if the element number is variable.
25475 (rs6000_adjust_vec_address): Move calculation of offset of the
25476 vector element to get_vector_offset.
25477 (rs6000_split_vec_extract_var): Do not do the initial AND of
25478 element here, move the code to get_vector_offset.
25480 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
25482 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add some
25485 2020-02-03 Segher Boessenkool <segher@kernel.crashing.org>
25487 * config/rs6000/constraints.md: Improve documentation.
25489 2020-02-03 Richard Earnshaw <rearnsha@arm.com>
25492 * config/arm/t-arm: ($(srcdir)/config/arm/arm-tune.md)
25493 ($(srcdir)/config/arm/arm-tables.opt): Use move-if-change.
25495 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
25497 * config.gcc: Remove "carrizo" support.
25498 * config/gcn/gcn-opts.h (processor_type): Likewise.
25499 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Likewise.
25500 * config/gcn/gcn.opt (gpu_type): Likewise.
25501 * config/gcn/t-omp-device: Likewise.
25503 2020-02-03 Stam Markianos-Wright <stam.markianos-wright@arm.com>
25506 * config/arm/arm-protos.h: New function arm_gen_far_branch prototype.
25507 * config/arm/arm.c (arm_gen_far_branch): New function
25508 arm_gen_far_branch.
25509 * config/arm/arm.md: Update b<cond> for Thumb2 range checks.
25511 2020-02-03 Julian Brown <julian@codesourcery.com>
25512 Tobias Burnus <tobias@codesourcery.com>
25514 * doc/invoke.texi: Update mention of OpenACC version to 2.6.
25516 2020-02-03 Jakub Jelinek <jakub@redhat.com>
25519 * config/s390/s390.md (popcounthi2_z196): Fix up expander to emit
25520 valid RTL to sum up the lowest and second lowest bytes of the popcnt
25523 2020-02-02 Vladimir Makarov <vmakarov@redhat.com>
25525 PR rtl-optimization/91333
25526 * ira-color.c (struct allocno_color_data): Add member
25528 (init_allocno_threads): Set the member up.
25529 (bucket_allocno_compare_func): Add compare hard reg
25532 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
25534 nios2: Support for GOT-relative DW_EH_PE_datarel encoding.
25536 * configure.ac [nios2-*-*]: Check HAVE_AS_NIOS2_GOTOFF_RELOCATION.
25537 * config.in: Regenerated.
25538 * configure: Regenerated.
25539 * config/nios2/nios2.h (ASM_PREFERRED_EH_DATA_FORMAT): Fix handling
25540 for PIC when HAVE_AS_NIOS2_GOTOFF_RELOCATION.
25541 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New.
25543 2020-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
25545 * configure: Regenerate.
25547 2020-01-31 Vladimir Makarov <vmakarov@redhat.com>
25549 PR rtl-optimization/91333
25550 * ira-color.c (bucket_allocno_compare_func): Move conflict hard
25551 reg preferences comparison up.
25553 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
25555 * config/aarch64/aarch64.h (TARGET_SVE_BF16): New macro.
25556 * config/aarch64/aarch64-sve-builtins-sve2.h (svcvtnt): Move to
25557 aarch64-sve-builtins-base.h.
25558 * config/aarch64/aarch64-sve-builtins-sve2.cc (svcvtnt): Move to
25559 aarch64-sve-builtins-base.cc.
25560 * config/aarch64/aarch64-sve-builtins-base.h (svbfdot, svbfdot_lane)
25561 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
25562 (svcvtnt): Declare.
25563 * config/aarch64/aarch64-sve-builtins-base.cc (svbfdot, svbfdot_lane)
25564 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
25565 (svcvtnt): New functions.
25566 * config/aarch64/aarch64-sve-builtins-base.def (svbfdot, svbfdot_lane)
25567 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
25568 (svcvtnt): New functions.
25569 (svcvt): Add a form that converts f32 to bf16.
25570 * config/aarch64/aarch64-sve-builtins-shapes.h (ternary_bfloat)
25571 (ternary_bfloat_lane, ternary_bfloat_lanex2, ternary_bfloat_opt_n):
25573 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_element_type):
25574 Treat B as bfloat16_t.
25575 (ternary_bfloat_lane_base): New class.
25576 (ternary_bfloat_def): Likewise.
25577 (ternary_bfloat): New shape.
25578 (ternary_bfloat_lane_def): New class.
25579 (ternary_bfloat_lane): New shape.
25580 (ternary_bfloat_lanex2_def): New class.
25581 (ternary_bfloat_lanex2): New shape.
25582 (ternary_bfloat_opt_n_def): New class.
25583 (ternary_bfloat_opt_n): New shape.
25584 * config/aarch64/aarch64-sve-builtins.cc (TYPES_cvt_bfloat): New macro.
25585 * config/aarch64/aarch64-sve.md (@aarch64_sve_<sve_fp_op>vnx4sf)
25586 (@aarch64_sve_<sve_fp_op>_lanevnx4sf): New patterns.
25587 (@aarch64_sve_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>)
25588 (@cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
25589 (*cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
25590 (@aarch64_sve_cvtnt<VNx8BF_ONLY:mode>): Likewise.
25591 * config/aarch64/aarch64-sve2.md (@aarch64_sve2_cvtnt<mode>): Key
25592 the pattern off the narrow mode instead of the wider one.
25593 * config/aarch64/iterators.md (VNx8BF_ONLY): New mode iterator.
25594 (UNSPEC_BFMLALB, UNSPEC_BFMLALT, UNSPEC_BFMMLA): New unspecs.
25595 (sve_fp_op): Handle them.
25596 (SVE_BFLOAT_TERNARY_LONG): New int itertor.
25597 (SVE_BFLOAT_TERNARY_LONG_LANE): Likewise.
25599 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
25601 * config/aarch64/arm_sve.h: Include arm_bf16.h.
25602 * config/aarch64/aarch64-modes.def (BF): Move definition before
25603 VECTOR_MODES. Remove separate VECTOR_MODES for V4BF and V8BF.
25604 (SVE_MODES): Handle BF modes.
25605 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle
25607 (aarch64_full_sve_mode): Likewise.
25608 * config/aarch64/iterators.md (SVE_STRUCT): Add VNx16BF, VNx24BF
25610 (SVE_FULL, SVE_FULL_HSD, SVE_ALL): Add VNx8BF.
25611 (Vetype, Vesize, Vctype, VEL, Vel, VEL_INT, V128, v128, vwcore)
25612 (V_INT_EQUIV, v_int_equiv, V_FP_EQUIV, v_fp_equiv, vector_count)
25613 (insn_length, VSINGLE, vsingle, VPRED, vpred, VDOUBLE): Handle the
25615 * config/aarch64/aarch64-sve-builtins.h (TYPE_bfloat): New
25617 * config/aarch64/aarch64-sve-builtins.cc (TYPES_all_arith): New macro.
25618 (TYPES_all_data): Add bf16.
25619 (TYPES_reinterpret1, TYPES_reinterpret): Likewise.
25620 (register_tuple_type): Increase buffer size.
25621 * config/aarch64/aarch64-sve-builtins.def (svbfloat16_t): New type.
25622 (bf16): New type suffix.
25623 * config/aarch64/aarch64-sve-builtins-base.def (svabd, svadd, svaddv)
25624 (svcmpeq, svcmpge, svcmpgt, svcmple, svcmplt, svcmpne, svmad, svmax)
25625 (svmaxv, svmin, svminv, svmla, svmls, svmsb, svmul, svsub, svsubr):
25626 Change type from all_data to all_arith.
25627 * config/aarch64/aarch64-sve-builtins-sve2.def (svaddp, svmaxp)
25628 (svminp): Likewise.
25630 2020-01-31 Dennis Zhang <dennis.zhang@arm.com>
25631 Matthew Malcomson <matthew.malcomson@arm.com>
25632 Richard Sandiford <richard.sandiford@arm.com>
25634 * doc/invoke.texi (f32mm): Document new AArch64 -march= extension.
25635 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
25636 __ARM_FEATURE_SVE_MATMUL_INT8, __ARM_FEATURE_SVE_MATMUL_FP32 and
25637 __ARM_FEATURE_SVE_MATMUL_FP64 as appropriate. Don't define
25638 __ARM_FEATURE_MATMUL_FP64.
25639 * config/aarch64/aarch64-option-extensions.def (fp, simd, fp16)
25640 (sve): Add AARCH64_FL_F32MM to the list of extensions that should
25641 be disabled at the same time.
25642 (f32mm): New extension.
25643 * config/aarch64/aarch64.h (AARCH64_FL_F32MM): New macro.
25644 (AARCH64_FL_F64MM): Bump to the next bit up.
25645 (AARCH64_ISA_F32MM, TARGET_SVE_I8MM, TARGET_F32MM, TARGET_SVE_F32MM)
25646 (TARGET_SVE_F64MM): New macros.
25647 * config/aarch64/iterators.md (SVE_MATMULF): New mode iterator.
25648 (UNSPEC_FMMLA, UNSPEC_SMATMUL, UNSPEC_UMATMUL, UNSPEC_USMATMUL)
25649 (UNSPEC_TRN1Q, UNSPEC_TRN2Q, UNSPEC_UZP1Q, UNSPEC_UZP2Q, UNSPEC_ZIP1Q)
25650 (UNSPEC_ZIP2Q): New unspeccs.
25651 (DOTPROD_US_ONLY, PERMUTEQ, MATMUL, FMMLA): New int iterators.
25652 (optab, sur, perm_insn): Handle the new unspecs.
25653 (sve_fp_op): Handle UNSPEC_FMMLA. Resort.
25654 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use
25655 TARGET_SVE_F64MM instead of separate tests.
25656 (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod<vsi2qi>): New pattern.
25657 (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod_lane<vsi2qi>): Likewise.
25658 (@aarch64_sve_add_<MATMUL:optab><vsi2qi>): Likewise.
25659 (@aarch64_sve_<FMMLA:sve_fp_op><mode>): Likewise.
25660 (@aarch64_sve_<PERMUTEQ:optab><mode>): Likewise.
25661 * config/aarch64/aarch64-sve-builtins.cc (TYPES_s_float): New macro.
25662 (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): Use it.
25663 (TYPES_s_signed): New macro.
25664 (TYPES_s_integer): Use it.
25665 (TYPES_d_float): New macro.
25666 (TYPES_d_data): Use it.
25667 * config/aarch64/aarch64-sve-builtins-shapes.h (mmla): Declare.
25668 (ternary_intq_uintq_lane, ternary_intq_uintq_opt_n, ternary_uintq_intq)
25669 (ternary_uintq_intq_lane, ternary_uintq_intq_opt_n): Likewise.
25670 * config/aarch64/aarch64-sve-builtins-shapes.cc (mmla_def): New class.
25671 (svmmla): New shape.
25672 (ternary_resize2_opt_n_base): Add TYPE_CLASS2 and TYPE_CLASS3
25673 template parameters.
25674 (ternary_resize2_lane_base): Likewise.
25675 (ternary_resize2_base): New class.
25676 (ternary_qq_lane_base): Likewise.
25677 (ternary_intq_uintq_lane_def): Likewise.
25678 (ternary_intq_uintq_lane): New shape.
25679 (ternary_intq_uintq_opt_n_def): New class
25680 (ternary_intq_uintq_opt_n): New shape.
25681 (ternary_qq_lane_def): Inherit from ternary_qq_lane_base.
25682 (ternary_uintq_intq_def): New class.
25683 (ternary_uintq_intq): New shape.
25684 (ternary_uintq_intq_lane_def): New class.
25685 (ternary_uintq_intq_lane): New shape.
25686 (ternary_uintq_intq_opt_n_def): New class.
25687 (ternary_uintq_intq_opt_n): New shape.
25688 * config/aarch64/aarch64-sve-builtins-base.h (svmmla, svsudot)
25689 (svsudot_lane, svtrn1q, svtrn2q, svusdot, svusdot_lane, svusmmla)
25690 (svuzp1q, svuzp2q, svzip1q, svzip2q): Declare.
25691 * config/aarch64/aarch64-sve-builtins-base.cc (svdot_lane_impl):
25693 (svdotprod_lane_impl): ...this new class.
25694 (svmmla_impl, svusdot_impl): New classes.
25695 (svdot_lane): Update to use svdotprod_lane_impl.
25696 (svmmla, svsudot, svsudot_lane, svtrn1q, svtrn2q, svusdot)
25697 (svusdot_lane, svusmmla, svuzp1q, svuzp2q, svzip1q, svzip2q): New
25699 * config/aarch64/aarch64-sve-builtins-base.def (svmmla): New base
25700 function, with no types defined.
25701 (svmmla, svusmmla, svsudot, svsudot_lane, svusdot, svusdot_lane): New
25702 AARCH64_FL_I8MM functions.
25703 (svmmla): New AARCH64_FL_F32MM function.
25704 (svld1ro): Depend only on AARCH64_FL_F64MM, not on AARCH64_FL_V8_6.
25705 (svmmla, svtrn1q, svtrn2q, svuz1q, svuz2q, svzip1q, svzip2q): New
25706 AARCH64_FL_F64MM function.
25707 (REQUIRED_EXTENSIONS):
25709 2020-01-31 Andrew Stubbs <ams@codesourcery.com>
25711 * config/gcn/gcn-valu.md (addv64di3_exec): Allow one '0' in each
25714 2020-01-31 Uroš Bizjak <ubizjak@gmail.com>
25716 * config/i386/i386.md (*movoi_internal_avx): Do not check for
25717 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. Remove MODE_V8SF handling.
25718 (*movti_internal): Do not check for
25719 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
25720 (*movtf_internal): Move check for TARGET_SSE2 and size optimization
25721 just after check for TARGET_AVX.
25722 (*movdf_internal): Ditto.
25723 * config/i386/mmx.md (*mov<mode>_internal): Do not check for
25724 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
25725 * config/i386/sse.md (mov<mode>_internal): Only check
25726 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL with V2DFmode. Move check
25727 for TARGET_SSE2 and size optimization just after check for TARGET_AVX.
25728 (<sse>_andnot<mode>3<mask_name>): Move check for
25729 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL after check for TARGET_AVX.
25730 (<code><mode>3<mask_name>): Ditto.
25731 (*andnot<mode>3): Ditto.
25732 (*andnottf3): Ditto.
25733 (*<code><mode>3): Ditto.
25734 (*<code>tf3): Ditto.
25735 (*andnot<VI:mode>3): Remove
25736 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling.
25737 (<mask_codefor><code><VI48_AVX_AVX512F:mode>3<mask_name>): Ditto.
25738 (*<code><VI12_AVX_AVX512F:mode>3): Ditto.
25739 (sse4_1_blendv<ssemodesuffix>): Ditto.
25740 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL):
25741 Explain that tune applies to 128bit instructions only.
25743 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
25745 * config/gcn/mkoffload.c (process_asm): Add sgpr_count and vgpr_count
25746 to definition of hsa_kernel_description. Parse assembly to find SGPR
25747 and VGPR count of kernel and store in hsa_kernel_description.
25749 2020-01-31 Tamar Christina <tamar.christina@arm.com>
25751 PR rtl-optimization/91838
25752 * simplify-rtx.c (simplify_binary_operation_1): Update LSHIFTRT case
25753 to truncate if allowed or reject combination.
25755 2020-01-31 Andrew Stubbs <ams@codesourcery.com>
25757 * tree-ssa-loop-ivopts.c (get_iv): Use sizetype for zero-step.
25758 (find_inv_vars_cb): Likewise.
25760 2020-01-31 David Malcolm <dmalcolm@redhat.com>
25762 * calls.c (special_function_p): Split out the check for DECL_NAME
25763 being non-NULL and fndecl being extern at file scope into a
25764 new maybe_special_function_p and call it. Drop check for fndecl
25765 being non-NULL that was after a usage of DECL_NAME (fndecl).
25766 * tree.h (maybe_special_function_p): New inline function.
25768 2020-01-30 Andrew Stubbs <ams@codesourcery.com>
25770 * config/gcn/gcn-valu.md (gather<mode>_exec): Move contents ...
25771 (mask_gather_load<mode>): ... here, and zero-initialize the
25773 (maskload<mode>di): Zero-initialize the destination.
25774 * config/gcn/gcn.c:
25776 2020-01-30 David Malcolm <dmalcolm@redhat.com>
25779 * doc/analyzer.texi (Limitations): Note that constraints on
25780 floating-point values are currently ignored.
25782 2020-01-30 Jakub Jelinek <jakub@redhat.com>
25785 * symtab.c (symtab_node::noninterposable_alias): If localalias
25786 already exists, but is not usable, append numbers after it until
25787 a unique name is found. Formatting fix.
25789 PR middle-end/93505
25790 * combine.c (simplify_comparison) <case ROTATE>: Punt on out of range
25793 2020-01-30 Andrew Stubbs <ams@codesourcery.com>
25795 * config/gcn/gcn.c (print_operand): Handle LTGT.
25796 * config/gcn/predicates.md (gcn_fp_compare_operator): Allow ltgt.
25798 2020-01-30 Richard Biener <rguenther@suse.de>
25800 * tree-pretty-print.c (dump_generic_node): Wrap VECTOR_CST
25801 and CONSTRUCTOR in _Literal (type) with TDF_GIMPLE.
25803 2020-01-30 John David Anglin <danglin@gcc.gnu.org>
25805 * config/pa/pa.c (pa_elf_select_rtx_section): Place function pointers
25806 without a DECL in .data.rel.ro.local.
25808 2020-01-30 Jakub Jelinek <jakub@redhat.com>
25811 * config/arm/arm.md (uaddvdi4): Actually emit what gen_uaddvsi4
25815 * config/i386/sse.md
25816 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext): Renamed to ...
25817 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext): ... this. Use
25818 any_extend code iterator instead of always zero_extend.
25819 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_lt): Renamed to ...
25820 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_lt): ... this.
25821 Use any_extend code iterator instead of always zero_extend.
25822 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_shift): Renamed to ...
25823 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_shift): ... this.
25824 Use any_extend code iterator instead of always zero_extend.
25825 (*sse2_pmovmskb_ext): New define_insn.
25826 (*sse2_pmovmskb_ext_lt): New define_insn_and_split.
25829 * config/i386/i386.md (*popcountsi2_zext): New define_insn_and_split.
25830 (*popcountsi2_zext_falsedep): New define_insn.
25832 2020-01-30 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
25834 * config.in: Regenerated.
25835 * configure: Regenerated.
25837 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
25840 * config/gcn/gcn-hsa.h (ASM_SPEC): Add -mattr=-code-object-v3 as
25841 LLVM's assembler changed the default in version 9.
25843 2020-01-24 Jeff Law <law@redhat.com>
25845 PR tree-optimization/89689
25846 * builtins.def (BUILT_IN_OBJECT_SIZE): Make it const rather than pure.
25848 2020-01-29 Richard Sandiford <richard.sandiford@arm.com>
25852 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
25854 PR rtl-optimization/87763
25855 * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
25856 simplification to handle subregs as well as bare regs.
25857 * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
25859 2020-01-29 Joel Hutton <Joel.Hutton@arm.com>
25862 * ira.c (ira): Revert use of simplified LRA algorithm.
25864 2020-01-29 Martin Jambor <mjambor@suse.cz>
25866 PR tree-optimization/92706
25867 * tree-sra.c (struct access): Fields first_link, last_link,
25868 next_queued and grp_queued renamed to first_rhs_link, last_rhs_link,
25869 next_rhs_queued and grp_rhs_queued respectively, new fields
25870 first_lhs_link, last_lhs_link, next_lhs_queued and grp_lhs_queued.
25871 (struct assign_link): Field next renamed to next_rhs, new field
25872 next_lhs. Updated comment.
25873 (work_queue_head): Renamed to rhs_work_queue_head.
25874 (lhs_work_queue_head): New variable.
25875 (add_link_to_lhs): New function.
25876 (relink_to_new_repr): Also relink LHS lists.
25877 (add_access_to_work_queue): Renamed to add_access_to_rhs_work_queue.
25878 (add_access_to_lhs_work_queue): New function.
25879 (pop_access_from_work_queue): Renamed to
25880 pop_access_from_rhs_work_queue.
25881 (pop_access_from_lhs_work_queue): New function.
25882 (build_accesses_from_assign): Also add links to LHS lists and to LHS
25884 (child_would_conflict_in_lacc): Renamed to
25885 child_would_conflict_in_acc. Adjusted parameter names.
25886 (create_artificial_child_access): New parameter set_grp_read, use it.
25887 (subtree_mark_written_and_enqueue): Renamed to
25888 subtree_mark_written_and_rhs_enqueue.
25889 (propagate_subaccesses_across_link): Renamed to
25890 propagate_subaccesses_from_rhs.
25891 (propagate_subaccesses_from_lhs): New function.
25892 (propagate_all_subaccesses): Also propagate subaccesses from LHSs to
25895 2020-01-29 Martin Jambor <mjambor@suse.cz>
25897 PR tree-optimization/92706
25898 * tree-sra.c (struct access): Adjust comment of
25899 grp_total_scalarization.
25900 (find_access_in_subtree): Look for single children spanning an entire
25902 (scalarizable_type_p): Allow register accesses, adjust callers.
25903 (completely_scalarize): Remove function.
25904 (scalarize_elem): Likewise.
25905 (create_total_scalarization_access): Likewise.
25906 (sort_and_splice_var_accesses): Do not track total scalarization
25908 (analyze_access_subtree): New parameter totally, adjust to new meaning
25909 of grp_total_scalarization.
25910 (analyze_access_trees): Pass new parameter to analyze_access_subtree.
25911 (can_totally_scalarize_forest_p): New function.
25912 (create_total_scalarization_access): Likewise.
25913 (create_total_access_and_reshape): Likewise.
25914 (total_should_skip_creating_access): Likewise.
25915 (totally_scalarize_subtree): Likewise.
25916 (analyze_all_variable_accesses): Perform total scalarization after
25917 subaccess propagation using the new functions above.
25918 (initialize_constant_pool_replacements): Output initializers by
25919 traversing the access tree.
25921 2020-01-29 Martin Jambor <mjambor@suse.cz>
25923 * tree-sra.c (verify_sra_access_forest): New function.
25924 (verify_all_sra_access_forests): Likewise.
25925 (create_artificial_child_access): Set parent.
25926 (analyze_all_variable_accesses): Call the verifier.
25928 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
25930 * cgraph.c (cgraph_edge::resolve_speculation): Only lookup direct edge
25931 if called on indirect edge.
25932 (cgraph_edge::redirect_call_stmt_to_callee): Lookup indirect edge of
25933 speculative call if needed.
25935 2020-01-29 Richard Biener <rguenther@suse.de>
25937 PR tree-optimization/93428
25938 * tree-vect-slp.c (vect_build_slp_tree_2): Compute the load
25939 permutation when the load node is created.
25940 (vect_analyze_slp_instance): Re-use it here.
25942 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
25944 * ipa-prop.c (update_indirect_edges_after_inlining): Fix warning.
25946 2020-01-28 Vladimir Makarov <vmakarov@redhat.com>
25948 PR rtl-optimization/93272
25949 * ira-lives.c (process_out_of_region_eh_regs): New function.
25950 (process_bb_node_lives): Call it.
25952 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
25954 * coverage.c (read_counts_file): Make error message lowercase.
25956 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
25958 * profile-count.c (profile_quality_display_names): Fix ordering.
25960 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
25963 * cgraph.c (cgraph_add_edge_to_call_site_hash): Update call site
25964 hash only when edge is first within the sequence.
25965 (cgraph_edge::set_call_stmt): Update handling of speculative calls.
25966 (symbol_table::create_edge): Do not set target_prob.
25967 (cgraph_edge::remove_caller): Watch for speculative calls when updating
25968 the call site hash.
25969 (cgraph_edge::make_speculative): Drop target_prob parameter.
25970 (cgraph_edge::speculative_call_info): Remove.
25971 (cgraph_edge::first_speculative_call_target): New member function.
25972 (update_call_stmt_hash_for_removing_direct_edge): New function.
25973 (cgraph_edge::resolve_speculation): Rewrite to new API.
25974 (cgraph_edge::speculative_call_for_target): New member function.
25975 (cgraph_edge::make_direct): Rewrite to new API; fix handling of
25976 multiple speculation targets.
25977 (cgraph_edge::redirect_call_stmt_to_callee): Likewise; fix updating
25979 (verify_speculative_call): Verify that targets form an interval.
25980 * cgraph.h (cgraph_edge::speculative_call_info): Remove.
25981 (cgraph_edge::first_speculative_call_target): New member function.
25982 (cgraph_edge::next_speculative_call_target): New member function.
25983 (cgraph_edge::speculative_call_target_ref): New member function.
25984 (cgraph_edge;:speculative_call_indirect_edge): New member funtion.
25985 (cgraph_edge): Remove target_prob.
25986 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
25987 Fix handling of speculative calls.
25988 * ipa-devirt.c (ipa_devirt): Fix handling of speculative cals.
25989 * ipa-fnsummary.c (analyze_function_body): Likewise.
25990 * ipa-inline.c (speculation_useful_p): Use new speculative call API.
25991 * ipa-profile.c (dump_histogram): Fix formating.
25992 (ipa_profile_generate_summary): Watch for overflows.
25993 (ipa_profile): Do not require probablity to be 1/2; update to new API.
25994 * ipa-prop.c (ipa_make_edge_direct_to_target): Update to new API.
25995 (update_indirect_edges_after_inlining): Update to new API.
25996 * ipa-utils.c (ipa_merge_profiles): Rewrite merging of speculative call
25998 * profile-count.h: (profile_probability::adjusted): New.
25999 * tree-inline.c (copy_bb): Update to new speculative call API; fix
26000 updating of profile.
26001 * value-prof.c (gimple_ic_transform): Rename to ...
26002 (dump_ic_profile): ... this one; update dumping.
26003 (stream_in_histogram_value): Fix formating.
26004 (gimple_value_profile_transformations): Update.
26006 2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
26009 * config/i386/i386.md (*movoi_internal_avx): Remove
26010 TARGET_SSE_TYPELESS_STORES check.
26011 (*movti_internal): Prefer TARGET_AVX over
26012 TARGET_SSE_TYPELESS_STORES.
26013 (*movtf_internal): Likewise.
26014 * config/i386/sse.md (mov<mode>_internal): Prefer TARGET_AVX over
26015 TARGET_SSE_TYPELESS_STORES. Remove "<MODE_SIZE> == 16" check
26016 from TARGET_SSE_TYPELESS_STORES.
26018 2020-01-28 David Malcolm <dmalcolm@redhat.com>
26020 * diagnostic-core.h (warning_at): Rename overload to...
26021 (warning_meta): ...this.
26022 (emit_diagnostic_valist): Delete decl of overload taking
26023 diagnostic_metadata.
26024 * diagnostic.c (emit_diagnostic_valist): Likewise for defn.
26025 (warning_at): Rename overload taking diagnostic_metadata to...
26026 (warning_meta): ...this.
26028 2020-01-28 Richard Biener <rguenther@suse.de>
26030 PR tree-optimization/93439
26031 * tree-parloops.c (create_loop_fn): Move clique bookkeeping...
26032 * tree-cfg.c (move_sese_region_to_fn): ... here.
26033 (verify_types_in_gimple_reference): Verify used cliques are
26036 2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
26039 * config/i386/i386-options.c (set_ix86_tune_features): Add an
26040 argument of a pointer to struct gcc_options and pass it to
26041 parse_mtune_ctrl_str.
26042 (ix86_function_specific_restore): Pass opts to
26043 set_ix86_tune_features.
26044 (ix86_option_override_internal): Likewise.
26045 (parse_mtune_ctrl_str): Add an argument of a pointer to struct
26046 gcc_options and use it for x_ix86_tune_ctrl_string.
26048 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
26050 PR rtl-optimization/87763
26051 * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
26052 simplification to handle subregs as well as bare regs.
26053 * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
26055 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
26057 * tree-vect-loop.c (vectorizable_reduction): Fail gracefully
26058 for reduction chains that (now) include a call.
26060 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
26062 PR tree-optimization/92822
26063 * tree-ssa-forwprop.c (simplify_vector_constructor): When filling
26064 out the don't-care elements of a vector whose significant elements
26065 are duplicates, make the don't-care elements duplicates too.
26067 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
26069 PR tree-optimization/93434
26070 * tree-predcom.c (split_data_refs_to_components): Record which
26071 components have had aliasing loads removed. Prevent store-store
26072 commoning for all such components.
26074 2020-01-28 Jakub Jelinek <jakub@redhat.com>
26077 * config/i386/i386.c (ix86_fold_builtin) <do_shift>: If mask is not
26078 -1 or is_vshift is true, use new_vector with number of elts npatterns
26079 rather than new_unary_operation.
26081 PR tree-optimization/93454
26082 * gimple-fold.c (fold_array_ctor_reference): Perform
26083 elt_size.to_uhwi () just once, instead of calling it in every
26084 iteration. Punt if that value is above size of the temporary
26085 buffer. Decrease third native_encode_expr argument when
26086 bufoff + elt_sz is above size of buf.
26088 2020-01-27 Joseph Myers <joseph@codesourcery.com>
26090 * config/mips/mips.c (mips_declare_object_name)
26091 [USE_GNU_UNIQUE_OBJECT]: Support use of gnu_unique_object.
26093 2020-01-27 Martin Liska <mliska@suse.cz>
26095 PR gcov-profile/93403
26096 * tree-profile.c (gimple_init_gcov_profiler): Generate
26097 both __gcov_indirect_call_profiler_v4 and
26098 __gcov_indirect_call_profiler_v4_atomic.
26100 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
26103 * config/aarch64/aarch64-simd.md (aarch64_get_half<mode>): New
26105 (@aarch64_split_simd_mov<mode>): Use it.
26106 (aarch64_simd_mov_from_<mode>low): Add a GPR alternative.
26107 Leave the vec_extract patterns to handle 2-element vectors.
26108 (aarch64_simd_mov_from_<mode>high): Likewise.
26109 (vec_extract<VQMOV_NO2E:mode><Vhalf>): New expander.
26110 (vec_extractv2dfv1df): Likewise.
26112 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
26114 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Match
26115 jump conditions for *compare_condjump<GPI:mode>.
26117 2020-01-27 David Malcolm <dmalcolm@redhat.com>
26120 * digraph.cc (test_edge::test_edge): Specify template for base
26123 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
26125 * config/arc/arc.c (arc_rtx_costs): Update mul64 cost.
26127 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
26129 * config/arc/arc-protos.h (gen_mlo): Remove.
26130 (gen_mhi): Likewise.
26131 * config/arc/arc.c (AUX_MULHI): Define.
26132 (arc_must_save_reister): Special handling for r58/59.
26133 (arc_compute_frame_size): Consider mlo/mhi registers.
26134 (arc_save_callee_saves): Emit fp/sp move only when emit_move
26136 (arc_conditional_register_usage): Remove TARGET_BIG_ENDIAN from
26137 mlo/mhi name selection.
26138 (arc_restore_callee_saves): Don't early restore blink when ISR.
26139 (arc_expand_prologue): Add mlo/mhi saving.
26140 (arc_expand_epilogue): Add mlo/mhi restoring.
26143 * config/arc/arc.h (DBX_REGISTER_NUMBER): Correct register
26144 numbering when MUL64 option is used.
26145 (DWARF2_FRAME_REG_OUT): Define.
26146 * config/arc/arc.md (arc600_stall): New pattern.
26147 (VUNSPEC_ARC_ARC600_STALL): Define.
26148 (mulsi64): Use correct mlo/mhi registers.
26149 (mulsi_600): Clean it up.
26150 * config/arc/predicates.md (mlo_operand): Remove any dependency on
26152 (mhi_operand): Likewise.
26154 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
26155 Petro Karashchenko <petro.karashchenko@ring.com>
26157 * config/arc/arc.c (arc_is_uncached_mem_p): Check struct
26158 attributes if needed.
26159 (prepare_move_operands): Generate special unspec instruction for
26161 (arc_isuncached_mem_p): Propagate uncached attribute to each
26163 * config/arc/arc.md (VUNSPEC_ARC_LDDI): Define.
26164 (VUNSPEC_ARC_STDI): Likewise.
26165 (ALLI): New mode iterator.
26166 (mALLI): New mode attribute.
26167 (lddi): New instruction pattern.
26169 (stdidi_split): Split instruction for architectures which are not
26170 supporting ll64 option.
26171 (lddidi_split): Likewise.
26173 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
26175 PR rtl-optimization/92989
26176 * lra-lives.c (process_bb_lives): Update the live-in set before
26177 processing additional clobbers.
26179 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
26181 PR rtl-optimization/93170
26182 * cselib.c (cselib_invalidate_regno_val): New function, split out
26184 (cselib_invalidate_regno): ...here.
26185 (cselib_invalidated_by_call_p): New function.
26186 (cselib_process_insn): Iterate over all the hard-register entries in
26187 REG_VALUES and invalidate any that cross call-clobbered registers.
26189 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
26191 * dojump.c (split_comparison): Use HONOR_NANS rather than
26192 HONOR_SNANS when splitting LTGT.
26194 2020-01-27 Martin Liska <mliska@suse.cz>
26197 * opts.c (print_filtered_help): Exclude language-specific
26198 options from --help=common unless enabled in all FEs.
26200 2020-01-27 Martin Liska <mliska@suse.cz>
26202 * opts.c (print_help): Exclude params from
26203 all except --help=param.
26205 2020-01-27 Martin Liska <mliska@suse.cz>
26208 * config/i386/i386-features.c (make_resolver_func):
26209 Align the code with ppc64 target implementation.
26210 Do not generate a unique name for resolver function.
26212 2020-01-27 Richard Biener <rguenther@suse.de>
26214 PR tree-optimization/93397
26215 * tree-vect-slp.c (vect_analyze_slp_instance): Delay
26216 converted reduction chain SLP graph adjustment.
26218 2020-01-26 Marek Polacek <polacek@redhat.com>
26221 * sanopt.c (sanitize_rewrite_addressable_params): Avoid crash on
26224 2020-01-26 Jason Merrill <jason@redhat.com>
26227 * tree.c (verify_type_variant): Only verify TYPE_NEEDS_CONSTRUCTING
26230 2020-01-26 Darius Galis <darius.galis@cyberthorstudios.com>
26232 * config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint
26233 (rx_setmem): Likewise.
26235 2020-01-26 Jakub Jelinek <jakub@redhat.com>
26238 * config/i386/i386.md (*addv<dwi>4_doubleword, *subv<dwi>4_doubleword):
26239 Use nonimmediate_operand instead of x86_64_hilo_general_operand and
26240 drop <di> from constraint of last operand.
26243 * config/i386/sse.md (*avx_vperm_broadcast_<mode>): Disallow for
26244 TARGET_AVX2 and V4DFmode not in the split condition, but in the
26245 pattern condition, though allow { 0, 0, 0, 0 } broadcast always.
26247 2020-01-25 Feng Xue <fxue@os.amperecomputing.com>
26250 * ipa-cp.c (get_info_about_necessary_edges): Remove value
26253 2020-01-24 Jeff Law <law@redhat.com>
26255 PR tree-optimization/92788
26256 * tree-ssa-threadedge.c (thread_across_edge): Check EDGE_COMPLEX
26259 2020-01-24 Jakub Jelinek <jakub@redhat.com>
26262 * config/i386/sse.md (*avx_vperm_broadcast_v4sf,
26263 *avx_vperm_broadcast_<mode>,
26264 <sse2_avx_avx512f>_vpermil<mode><mask_name>,
26265 *<sse2_avx_avx512f>_vpermilp<mode><mask_name>):
26266 Move before avx2_perm<mode>/avx512f_perm<mode>.
26269 * simplify-rtx.c (simplify_const_unary_operation,
26270 simplify_const_binary_operation): Punt for mode precision above
26271 MAX_BITSIZE_MODE_ANY_INT.
26273 2020-01-24 Andrew Pinski <apinski@marvell.com>
26275 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Change
26276 alu.shift_reg to 0.
26278 2020-01-24 Jeff Law <law@redhat.com>
26281 * config/h8300/h8300.c (h8300_print_operand): Only call byte_reg
26282 for REGs. Call output_operand_lossage to get more reasonable
26285 2020-01-24 Andrew Stubbs <ams@codesourcery.com>
26287 * config/gcn/gcn-valu.md (vec_cmp<mode>di): Use
26288 gcn_fp_compare_operator.
26289 (vec_cmpu<mode>di): Use gcn_compare_operator.
26290 (vec_cmp<u>v64qidi): Use gcn_compare_operator.
26291 (vec_cmp<mode>di_exec): Use gcn_fp_compare_operator.
26292 (vec_cmpu<mode>di_exec): Use gcn_compare_operator.
26293 (vec_cmp<u>v64qidi_exec): Use gcn_compare_operator.
26294 (vec_cmp<mode>di_dup): Use gcn_fp_compare_operator.
26295 (vec_cmp<mode>di_dup_exec): Use gcn_fp_compare_operator.
26296 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): Use
26297 gcn_fp_compare_operator.
26298 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): Use
26299 gcn_fp_compare_operator.
26300 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): Use
26301 gcn_fp_compare_operator.
26302 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): Use
26303 gcn_fp_compare_operator.
26305 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
26307 * doc/install.texi (Cross-Compiler-Specific Options): Document
26308 `--with-toolexeclibdir' option.
26310 2020-01-24 Hans-Peter Nilsson <hp@axis.com>
26312 * target.def (flags_regnum): Also mention effect on delay slot filling.
26313 * doc/tm.texi: Regenerate.
26315 2020-01-23 Jeff Law <law@redhat.com>
26317 PR translation/90162
26318 * config/h8300/h8300.c (h8300_option_override): Fix diagnostic text.
26320 2020-01-23 Mikael Tillenius <mti-1@tillenius.com>
26323 * config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of
26326 2020-01-23 Jakub Jelinek <jakub@redhat.com>
26328 PR rtl-optimization/93402
26329 * postreload.c (reload_combine_recognize_pattern): Don't try to adjust
26332 2020-01-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26334 * config.in: Regenerated.
26335 * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to 1
26336 for TARGET_LIBC_GNUSTACK.
26337 * configure: Regenerated.
26338 * configure.ac: Define TARGET_LIBC_GNUSTACK if glibc version is
26339 found to be 2.31 or greater.
26341 2020-01-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26343 * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to
26345 * config/mips/mips.c (TARGET_ASM_FILE_END): Define to ...
26346 (mips_asm_file_end): New function. Delegate to
26347 file_end_indicate_exec_stack if NEED_INDICATE_EXEC_STACK is true.
26348 * config/mips/mips.h (NEED_INDICATE_EXEC_STACK): Define to 0.
26350 2020-01-23 Jakub Jelinek <jakub@redhat.com>
26353 * config/i386/i386-modes.def (POImode): New mode.
26354 (MAX_BITSIZE_MODE_ANY_INT): Change from 128 to 160.
26355 * config/i386/i386.md (DPWI): New mode attribute.
26356 (addv<mode>4, subv<mode>4): Use <DPWI> instead of <DWI>.
26357 (QWI): Rename to...
26358 (QPWI): ... this. Use POI instead of OI for TImode.
26359 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1,
26360 *subv<dwi>4_doubleword, *subv<dwi>4_doubleword_1): Use <QPWI>
26363 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
26366 * config/aarch64/aarch64.md (UNSPEC_SPECULATION_TRACKER_REV): New
26368 (speculation_tracker_rev): New pattern.
26369 * config/aarch64/aarch64-speculation.cc (aarch64_do_track_speculation):
26370 Use speculation_tracker_rev to track the inverse condition.
26372 2020-01-23 Richard Biener <rguenther@suse.de>
26374 PR tree-optimization/93381
26375 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Take
26376 alias-set of the def as argument and record the first one.
26377 (vn_walk_cb_data::first_set): New member.
26378 (vn_reference_lookup_3): Pass the alias-set of the current def
26379 to push_partial_def. Fix alias-set used in the aggregate copy
26381 (vn_reference_lookup): Consistently set *last_vuse_ptr.
26382 * real.c (clear_significand_below): Fix out-of-bound access.
26384 2020-01-23 Jakub Jelinek <jakub@redhat.com>
26387 * config/i386/i386.md (*bmi2_bzhi_<mode>3_2, *bmi2_bzhi_<mode>3_3):
26388 New define_insn patterns.
26390 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
26392 * doc/sourcebuild.texi (check-function-bodies): Add an
26393 optional target/xfail selector.
26395 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
26397 PR rtl-optimization/93124
26398 * auto-inc-dec.c (merge_in_block): Don't add auto inc/decs to
26399 bare USE and CLOBBER insns.
26401 2020-01-22 Andrew Pinski <apinski@marvell.com>
26403 * config/arc/arc.c (output_short_suffix): Check insn for nullness.
26405 2020-01-22 David Malcolm <dmalcolm@redhat.com>
26408 * gdbinit.in (break-on-saved-diagnostic): Update for move of
26409 diagnostic_manager into "ana" namespace.
26410 * selftest-run-tests.c (selftest::run_tests): Update for move of
26411 selftest::run_analyzer_selftests to
26412 ana::selftest::run_analyzer_selftests.
26414 2020-01-22 Richard Sandiford <richard.sandiford@arm.com>
26416 * cfgexpand.c (union_stack_vars): Update the size.
26418 2020-01-22 Richard Biener <rguenther@suse.de>
26420 PR tree-optimization/93381
26421 * tree-ssa-structalias.c (find_func_aliases): Assume offsetting
26422 throughout, handle all conversions the same.
26424 2020-01-22 Jakub Jelinek <jakub@redhat.com>
26427 * config/aarch64/aarch64.c (aarch64_expand_subvti): Only use
26428 gen_subdi3_compare1_imm if low_in2 satisfies aarch64_plus_immediate
26429 predicate, not whenever it is CONST_INT. Otherwise, force_reg it.
26430 Call force_reg on high_in2 unconditionally.
26432 2020-01-22 Martin Liska <mliska@suse.cz>
26434 PR tree-optimization/92924
26435 * profile.c (compute_value_histograms): Divide
26436 all counter values.
26438 2020-01-22 Jakub Jelinek <jakub@redhat.com>
26441 * output.h (assemble_name_resolve): Declare.
26442 * varasm.c (assemble_name_resolve): New function.
26443 (assemble_name): Use it.
26444 * config/i386/i386.h (ASM_OUTPUT_SYMBOL_REF): Define.
26446 2020-01-22 Joseph Myers <joseph@codesourcery.com>
26448 * doc/sourcebuild.texi (Texinfo Manuals, Front End): Refer to
26449 update_web_docs_git instead of update_web_docs_svn.
26451 2020-01-21 Andrew Pinski <apinski@marvell.com>
26454 * config/aarch64/aarch64.md (tlsgd_small_<mode>): Have operand 0
26455 as PTR mode. Have operand 1 as being modeless, it can be P mode.
26456 (*tlsgd_small_<mode>): Likewise.
26457 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately)
26458 <case SYMBOL_SMALL_TLSGD>: Call gen_tlsgd_small_* with a ptr_mode
26459 register. Convert that register back to dest using convert_mode.
26461 2020-01-21 Jim Wilson <jimw@sifive.com>
26463 * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Use INTVAL
26466 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
26467 Uros Bizjak <ubizjak@gmail.com>
26470 * config/i386/i386.c (ix86_tls_module_base): Replace Pmode
26472 (legitimize_tls_address): Do GNU2 TLS address computation in
26473 ptr_mode and zero-extend result to Pmode.
26474 * config/i386/i386.md (@tls_dynamic_gnu2_64_<mode>): Replace
26475 :P with :PTR and Pmode with ptr_mode.
26476 (*tls_dynamic_gnu2_lea_64_<mode>): Likewise.
26477 (*tls_dynamic_gnu2_call_64_<mode>): Likewise.
26478 (*tls_dynamic_gnu2_combine_64_<mode>): Likewise.
26480 2020-01-21 Jakub Jelinek <jakub@redhat.com>
26483 * config/riscv/riscv.c (riscv_rtx_costs) <case ZERO_EXTRACT>: Verify
26484 the last two operands are CONST_INT_P before using them as such.
26486 2020-01-21 Richard Sandiford <richard.sandiford@arm.com>
26488 * config/aarch64/aarch64-sve-builtins.def: Use get_typenode_from_name
26489 to get the integer element types.
26491 2020-01-21 Richard Sandiford <richard.sandiford@arm.com>
26493 * config/aarch64/aarch64-sve-builtins.h
26494 (function_expander::convert_to_pmode): Declare.
26495 * config/aarch64/aarch64-sve-builtins.cc
26496 (function_expander::convert_to_pmode): New function.
26497 (function_expander::get_contiguous_base): Use it.
26498 (function_expander::prepare_gather_address_operands): Likewise.
26499 * config/aarch64/aarch64-sve-builtins-sve2.cc
26500 (svwhilerw_svwhilewr_impl::expand): Likewise.
26502 2020-01-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
26505 * config/aarch64/aarch64.c (aarch64_declare_function_name): Set
26506 cfun->machine->label_is_assembled.
26507 (aarch64_print_patchable_function_entry): New.
26508 (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): Define.
26509 * config/aarch64/aarch64.h (struct machine_function): New field,
26510 label_is_assembled.
26512 2020-01-21 David Malcolm <dmalcolm@redhat.com>
26515 * ipa-profile.c (ipa_profile): Delete call_sums and set it to
26518 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
26521 * cgraph.c (cgraph_edge::resolve_speculation,
26522 cgraph_edge::redirect_call_stmt_to_callee): Fix update of
26523 call_stmt_site_hash.
26525 2020-01-21 Martin Liska <mliska@suse.cz>
26527 * config/rs6000/rs6000.c (common_mode_defined): Remove
26530 2020-01-21 Richard Biener <rguenther@suse.de>
26532 PR tree-optimization/92328
26533 * tree-ssa-sccvn.c (vn_reference_lookup_3): Preserve
26534 type when value-numbering same-sized store by inserting a
26536 (eliminate_dom_walker::eliminate_stmt): When eliminating
26537 a redundant store handle bit-reinterpretation of the same value.
26539 2020-01-21 Andrew Pinski <apinski@marvel.com>
26542 * tree-into-ssa.c (prepare_block_for_update_1): Split out
26544 (prepare_block_for_update): This. Use a worklist instead of
26547 2020-01-21 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26549 * config/arm/arm.c (clear_operation_p):
26550 Initialise last_regno, skip first iteration
26551 based on the first_set value and use ints instead
26552 of the unnecessary HOST_WIDE_INTs.
26554 2020-01-21 Jakub Jelinek <jakub@redhat.com>
26557 * config/rs6000/rs6000.c (rs6000_emit_cmove): If using fsel, punt for
26558 compare_mode other than SFmode or DFmode.
26560 2020-01-21 Kito Cheng <kito.cheng@sifive.com>
26563 * config/riscv/riscv-protos.h (riscv_hard_regno_rename_ok): New.
26564 * config/riscv/riscv.c (riscv_hard_regno_rename_ok): New.
26565 * config/riscv/riscv.h (HARD_REGNO_RENAME_OK): Defined.
26567 2020-01-20 Wilco Dijkstra <wdijkstr@arm.com>
26569 * config/aarch64/aarch64.c (neoversen1_tunings): Set jump_align to 4.
26571 2020-01-20 Andrew Pinski <apinski@marvell.com>
26573 PR middle-end/93242
26574 * targhooks.c (default_print_patchable_function_entry): Use
26575 output_asm_insn to emit the nop instruction.
26577 2020-01-20 Fangrui Song <maskray@google.com>
26579 PR middle-end/93194
26580 * targhooks.c (default_print_patchable_function_entry): Align to
26583 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
26586 * config/i386/i386.c (legitimize_tls_address): Pass Pmode to
26587 gen_tls_dynamic_gnu2_64. Compute GNU2 TLS address in ptr_mode.
26588 * config/i386/i386.md (tls_dynamic_gnu2_64): Renamed to ...
26589 (@tls_dynamic_gnu2_64_<mode>): This. Replace DI with P.
26590 (*tls_dynamic_gnu2_lea_64): Renamed to ...
26591 (*tls_dynamic_gnu2_lea_64_<mode>): This. Replace DI with P.
26592 Remove the {q} suffix from lea.
26593 (*tls_dynamic_gnu2_call_64): Renamed to ...
26594 (*tls_dynamic_gnu2_call_64_<mode>): This. Replace DI with P.
26595 (*tls_dynamic_gnu2_combine_64): Renamed to ...
26596 (*tls_dynamic_gnu2_combine_64_<mode>): This. Replace DI with P.
26597 Pass Pmode to gen_tls_dynamic_gnu2_64.
26599 2020-01-20 Wilco Dijkstra <wdijkstr@arm.com>
26601 * config/aarch64/aarch64.h (SLOW_BYTE_ACCESS): Set to 1.
26603 2020-01-20 Richard Sandiford <richard.sandiford@arm.com>
26605 * config/aarch64/aarch64-sve-builtins-base.cc
26606 (svld1ro_impl::memory_vector_mode): Remove parameter name.
26608 2020-01-20 Richard Biener <rguenther@suse.de>
26611 * dwarf2out.c (prune_unused_types): Unconditionally mark
26612 called function DIEs.
26614 2020-01-20 Martin Liska <mliska@suse.cz>
26616 PR tree-optimization/93199
26617 * tree-eh.c (struct leh_state): Add
26618 new field outer_non_cleanup.
26619 (cleanup_is_dead_in): Pass leh_state instead
26620 of eh_region. Add a checking that state->outer_non_cleanup
26621 points to outer non-clean up region.
26622 (lower_try_finally): Record outer_non_cleanup
26624 (lower_catch): Likewise.
26625 (lower_eh_filter): Likewise.
26626 (lower_eh_must_not_throw): Likewise.
26627 (lower_cleanup): Likewise.
26629 2020-01-20 Richard Biener <rguenther@suse.de>
26631 PR tree-optimization/93094
26632 * tree-vectorizer.h (vect_loop_versioning): Adjust.
26633 (vect_transform_loop): Likewise.
26634 * tree-vectorizer.c (try_vectorize_loop_1): Pass down
26635 loop_vectorized_call to vect_transform_loop.
26636 * tree-vect-loop.c (vect_transform_loop): Pass down
26637 loop_vectorized_call to vect_loop_versioning.
26638 * tree-vect-loop-manip.c (vect_loop_versioning): Use
26639 the earlier discovered loop_vectorized_call.
26641 2020-01-19 Eric S. Raymond <esr@thyrsus.com>
26643 * doc/contribute.texi: Update for SVN -> Git transition.
26644 * doc/install.texi: Likewise.
26646 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
26649 * cgraph.c (cgraph_edge::make_speculative): Increase number of
26650 speculative targets.
26651 (verify_speculative_call): New function
26652 (cgraph_node::verify_node): Use it.
26653 * ipa-profile.c (ipa_profile): Fix formating; do not set number of
26656 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
26659 * cgraph.c (cgraph_edge::resolve_speculation): Fix foramting.
26660 (cgraph_edge::make_direct): Remove all indirect targets.
26661 (cgraph_edge::redirect_call_stmt_to_callee): Use make_direct..
26662 (cgraph_node::verify_node): Verify that only one call_stmt or
26663 lto_stmt_uid is set.
26664 * cgraphclones.c (cgraph_edge::clone): Set only one call_stmt or
26666 * lto-cgraph.c (lto_output_edge): Simplify streaming of stmt.
26667 (lto_output_ref): Simplify streaming of stmt.
26668 * lto-streamer-in.c (fixup_call_stmt_edges_1): Clear lto_stmt_uid.
26670 2020-01-18 Tamar Christina <tamar.christina@arm.com>
26672 * config/aarch64/aarch64-sve-builtins-base.cc (memory_vector_mode):
26673 Mark parameter unused.
26675 2020-01-18 Hans-Peter Nilsson <hp@axis.com>
26677 * config.gcc <obsolete targets>: Add crisv32-*-* and cris-*-linux*
26679 2019-01-18 Gerald Pfeifer <gerald@pfeifer.com>
26681 * varpool.c (ctor_useable_for_folding_p): Fix grammar.
26683 2020-01-18 Iain Sandoe <iain@sandoe.co.uk>
26685 * Makefile.in: Add coroutine-passes.o.
26686 * builtin-types.def (BT_CONST_SIZE): New.
26687 (BT_FN_BOOL_PTR): New.
26688 (BT_FN_PTR_PTR_CONST_SIZE_BOOL): New.
26689 * builtins.def (DEF_COROUTINE_BUILTIN): New.
26690 * coroutine-builtins.def: New file.
26691 * coroutine-passes.cc: New file.
26692 * function.h (struct GTY function): Add a bit to indicate that the
26693 function is a coroutine component.
26694 * internal-fn.c (expand_CO_FRAME): New.
26695 (expand_CO_YIELD): New.
26696 (expand_CO_SUSPN): New.
26697 (expand_CO_ACTOR): New.
26698 * internal-fn.def (CO_ACTOR): New.
26702 * passes.def: Add pass_coroutine_lower_builtins,
26703 pass_coroutine_early_expand_ifns.
26704 * tree-pass.h (make_pass_coroutine_lower_builtins): New.
26705 (make_pass_coroutine_early_expand_ifns): New.
26706 * doc/invoke.texi: Document the fcoroutines command line
26709 2020-01-18 Jakub Jelinek <jakub@redhat.com>
26711 * config/arm/vfp.md (*clear_vfp_multiple): Remove unused variable.
26714 * config/arm/arm.c (clear_operation_p): Don't use REGNO until
26715 after checking the argument is a REG. Don't use REGNO (reg)
26716 again to set last_regno, reuse regno variable instead.
26718 2020-01-17 David Malcolm <dmalcolm@redhat.com>
26720 * doc/analyzer.texi (Limitations): Add note about NaN.
26722 2020-01-17 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26723 Sudakshina Das <sudi.das@arm.com>
26725 * config/arm/arm.md (ashldi3): Generate thumb2_lsll for both reg
26726 and valid immediate.
26727 (ashrdi3): Generate thumb2_asrl for both reg and valid immediate.
26728 (lshrdi3): Generate thumb2_lsrl for valid immediates.
26729 * config/arm/constraints.md (Pg): New.
26730 * config/arm/predicates.md (long_shift_imm): New.
26731 (arm_reg_or_long_shift_imm): Likewise.
26732 * config/arm/thumb2.md (thumb2_asrl): New immediate alternative.
26733 (thumb2_lsll): Likewise.
26734 (thumb2_lsrl): New.
26736 2020-01-17 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26737 Sudakshina Das <sudi.das@arm.com>
26739 * config/arm/arm.md (ashldi3): Generate thumb2_lsll for TARGET_HAVE_MVE.
26740 (ashrdi3): Generate thumb2_asrl for TARGET_HAVE_MVE.
26741 * config/arm/arm.c (arm_hard_regno_mode_ok): Allocate even odd
26742 register pairs for doubleword quantities for ARMv8.1M-Mainline.
26743 * config/arm/thumb2.md (thumb2_asrl): New.
26744 (thumb2_lsll): Likewise.
26746 2020-01-17 Jakub Jelinek <jakub@redhat.com>
26748 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear): Remove
26751 2020-01-17 Alexander Monakov <amonakov@ispras.ru>
26753 * gdbinit.in (help-gcc-hooks): New command.
26754 (pp, pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, ptc, pdn, ptn, pdd, prc,
26755 pi, pbm, pel, trt): Take $arg0 instead of $ if supplied. Update
26758 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
26760 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use the
26761 correct target macro.
26763 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
26765 * config/aarch64/aarch64-protos.h
26766 (aarch64_sve_ld1ro_operand_p): New.
26767 * config/aarch64/aarch64-sve-builtins-base.cc
26768 (class load_replicate): New.
26769 (class svld1ro_impl): New.
26770 (class svld1rq_impl): Change to inherit from load_replicate.
26771 (svld1ro): New sve intrinsic function base.
26772 * config/aarch64/aarch64-sve-builtins-base.def (svld1ro):
26773 New DEF_SVE_FUNCTION.
26774 * config/aarch64/aarch64-sve-builtins-base.h
26775 (svld1ro): New decl.
26776 * config/aarch64/aarch64-sve-builtins.cc
26777 (function_expander::add_mem_operand): Modify assert to allow
26779 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): New
26781 * config/aarch64/aarch64.c
26782 (aarch64_sve_ld1rq_operand_p): Implement in terms of ...
26783 (aarch64_sve_ld1rq_ld1ro_operand_p): This.
26784 (aarch64_sve_ld1ro_operand_p): New.
26785 * config/aarch64/aarch64.md (UNSPEC_LD1RO): New unspec.
26786 * config/aarch64/constraints.md (UOb,UOh,UOw,UOd): New.
26787 * config/aarch64/predicates.md
26788 (aarch64_sve_ld1ro_operand_{b,h,w,d}): New.
26790 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
26792 * config/aarch64/aarch64-c.c (_ARM_FEATURE_MATMUL_FLOAT64):
26793 Introduce this ACLE specified predefined macro.
26794 * config/aarch64/aarch64-option-extensions.def (f64mm): New.
26795 (fp): Disabling this disables f64mm.
26796 (simd): Disabling this disables f64mm.
26797 (fp16): Disabling this disables f64mm.
26798 (sve): Disabling this disables f64mm.
26799 * config/aarch64/aarch64.h (AARCH64_FL_F64MM): New.
26800 (AARCH64_ISA_F64MM): New.
26801 (TARGET_F64MM): New.
26802 * doc/invoke.texi (f64mm): Document new option.
26804 2020-01-17 Wilco Dijkstra <wdijkstr@arm.com>
26806 * config/aarch64/aarch64.c (generic_tunings): Add branch fusion.
26807 (neoversen1_tunings): Likewise.
26809 2020-01-17 Wilco Dijkstra <wdijkstr@arm.com>
26812 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap)
26813 Add assert to ensure prolog has been emitted.
26814 (aarch64_split_atomic_op): Likewise.
26815 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>)
26816 Use epilogue_completed rather than reload_completed.
26817 (aarch64_atomic_exchange<mode>): Likewise.
26818 (aarch64_atomic_<atomic_optab><mode>): Likewise.
26819 (atomic_nand<mode>): Likewise.
26820 (aarch64_atomic_fetch_<atomic_optab><mode>): Likewise.
26821 (atomic_fetch_nand<mode>): Likewise.
26822 (aarch64_atomic_<atomic_optab>_fetch<mode>): Likewise.
26823 (atomic_nand_fetch<mode>): Likewise.
26825 2020-01-17 Richard Sandiford <richard.sandiford@arm.com>
26828 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Return false
26830 (REVERSE_CONDITION): Delete.
26831 * config/aarch64/iterators.md (CC_ONLY): New mode iterator.
26832 (CCFP_CCFPE): Likewise.
26833 (e): New mode attribute.
26834 * config/aarch64/aarch64.md (ccmp<GPI:mode>): Rename to...
26835 (@ccmp<CC_ONLY:mode><GPI:mode>): ...this, using CC_ONLY instead of CC.
26836 (fccmp<GPF:mode>, fccmpe<GPF:mode>): Merge into...
26837 (@ccmp<CCFP_CCFPE:mode><GPF:mode>): ...this combined pattern.
26838 (@ccmp<CC_ONLY:mode><GPI:mode>_rev): New pattern.
26839 (@ccmp<CCFP_CCFPE:mode><GPF:mode>_rev): Likewise.
26840 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Update
26841 name of generator from gen_ccmpdi to gen_ccmpccdi.
26842 (aarch64_gen_ccmp_next): Use code_for_ccmp. If we want to reverse
26843 the previous comparison but aren't able to, use the new ccmp_rev
26846 2020-01-17 Richard Sandiford <richard.sandiford@arm.com>
26848 * gimplify.c (gimplify_return_expr): Use poly_int_tree_p rather
26849 than testing directly for INTEGER_CST.
26850 (gimplify_target_expr, gimplify_omp_depend): Likewise.
26852 2020-01-17 Jakub Jelinek <jakub@redhat.com>
26854 PR tree-optimization/93292
26855 * tree-vect-stmts.c (vectorizable_comparison): Punt also if
26856 get_vectype_for_scalar_type returns NULL.
26858 2020-01-16 Jan Hubicka <hubicka@ucw.cz>
26860 * params.opt (-param=max-predicted-iterations): Increase range from 0.
26861 * predict.c (estimate_loops): Add 1 to param_max_predicted_iterations.
26863 2020-01-16 Jan Hubicka <hubicka@ucw.cz>
26865 * ipa-fnsummary.c (estimate_calls_size_and_time): Fix formating of
26867 * params.opt: (max-predicted-iterations): Set bounds.
26868 * predict.c (real_almost_one, real_br_prob_base,
26869 real_inv_br_prob_base, real_one_half, real_bb_freq_max): Remove.
26870 (propagate_freq): Add max_cyclic_prob parameter; cap cyclic
26871 probabilities; do not truncate to reg_br_prob_bases.
26872 (estimate_loops_at_level): Pass max_cyclic_prob.
26873 (estimate_loops): Compute max_cyclic_prob.
26874 (estimate_bb_frequencies): Do not initialize real_*; update calculation
26876 * profile-count.c (profile_probability::to_sreal): New.
26877 * profile-count.h (class sreal): Move up in file.
26878 (profile_probability::to_sreal): Declare.
26880 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
26883 (arm_invalid_conversion): New function for target hook.
26884 (arm_invalid_unary_op): New function for target hook.
26885 (arm_invalid_binary_op): New function for target hook.
26887 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
26889 * config.gcc: Add arm_bf16.h.
26890 * config/arm/arm-builtins.c (arm_mangle_builtin_type): Fix comment.
26891 (arm_simd_builtin_std_type): Add BFmode.
26892 (arm_init_simd_builtin_types): Define element types for vector types.
26893 (arm_init_bf16_types): New function.
26894 (arm_init_builtins): Add arm_init_bf16_types function call.
26895 * config/arm/arm-modes.def: Add BFmode and V4BF, V8BF vector modes.
26896 * config/arm/arm-simd-builtin-types.def: Add V4BF, V8BF.
26897 * config/arm/arm.c (aapcs_vfp_sub_candidate): Add BFmode.
26898 (arm_hard_regno_mode_ok): Add BFmode and tidy up statements.
26899 (arm_vector_mode_supported_p): Add V4BF, V8BF.
26900 (arm_mangle_type): Add __bf16.
26901 * config/arm/arm.h: Add V4BF, V8BF to VALID_NEON_DREG_MODE,
26902 VALID_NEON_QREG_MODE respectively. Add export arm_bf16_type_node,
26903 arm_bf16_ptr_type_node.
26904 * config/arm/arm.md: Add BFmode to movhf expand, mov pattern and
26905 define_split between ARM registers.
26906 * config/arm/arm_bf16.h: New file.
26907 * config/arm/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
26908 * config/arm/iterators.md: (ANY64_BF, VDXMOV, VHFBF, HFBF, fporbf): New.
26909 (VQXMOV): Add V8BF.
26910 * config/arm/neon.md: Add BF vector types to movhf NEON move patterns.
26911 * config/arm/vfp.md: Add BFmode to movhf patterns.
26913 2020-01-16 Mihail Ionescu <mihail.ionescu@arm.com>
26914 Andre Vieira <andre.simoesdiasvieira@arm.com>
26916 * config/arm/arm-cpus.in (mve, mve_float): New features.
26917 (dsp, mve, mve.fp): New options.
26918 * config/arm/arm.h (TARGET_HAVE_MVE, TARGET_HAVE_MVE_FLOAT): Define.
26919 * config/arm/t-rmprofile: Map v8.1-M multilibs to v8-M.
26920 * doc/invoke.texi: Document the armv8.1-m mve and dps options.
26922 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26923 Thomas Preud'homme <thomas.preudhomme@arm.com>
26925 * config/arm/arm-cpus.in (ARMv8_1m_main): Redefine as an extension to
26927 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Remove
26928 error for using -mcmse when targeting Armv8.1-M Mainline.
26930 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26931 Thomas Preud'homme <thomas.preudhomme@arm.com>
26933 * config/arm/arm.md (nonsecure_call_internal): Do not force memory
26934 address in r4 when targeting Armv8.1-M Mainline.
26935 (nonsecure_call_value_internal): Likewise.
26936 * config/arm/thumb2.md (nonsecure_call_reg_thumb2): Make memory address
26937 a register match_operand again. Emit BLXNS when targeting
26938 Armv8.1-M Mainline.
26939 (nonsecure_call_value_reg_thumb2): Likewise.
26941 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26942 Thomas Preud'homme <thomas.preudhomme@arm.com>
26944 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): Declare early.
26945 (cmse_nonsecure_call_inline_register_clear): Define new lazy_fpclear
26946 variable as true when floating-point ABI is not hard. Replace
26947 check against TARGET_HARD_FLOAT_ABI by checks against lazy_fpclear.
26948 Generate VLSTM and VLLDM instruction respectively before and
26949 after a function call to cmse_nonsecure_call function.
26950 * config/arm/unspecs.md (VUNSPEC_VLSTM): Define unspec.
26951 (VUNSPEC_VLLDM): Likewise.
26952 * config/arm/vfp.md (lazy_store_multiple_insn): New define_insn.
26953 (lazy_load_multiple_insn): Likewise.
26955 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26956 Thomas Preud'homme <thomas.preudhomme@arm.com>
26958 * config/arm/arm.c (vfp_emit_fstmd): Declare early.
26959 (arm_emit_vfp_multi_reg_pop): Likewise.
26960 (cmse_nonsecure_call_inline_register_clear): Abstract number of VFP
26961 registers to clear in max_fp_regno. Emit VPUSH and VPOP to save and
26962 restore callee-saved VFP registers.
26964 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26965 Thomas Preud'homme <thomas.preudhomme@arm.com>
26967 * config/arm/arm.c (arm_emit_multi_reg_pop): Declare early.
26968 (cmse_nonsecure_call_clear_caller_saved): Rename into ...
26969 (cmse_nonsecure_call_inline_register_clear): This. Save and clear
26970 callee-saved GPRs as well as clear ip register before doing a nonsecure
26971 call then restore callee-saved GPRs after it when targeting
26972 Armv8.1-M Mainline.
26973 (arm_reorg): Adapt to function rename.
26975 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26976 Thomas Preud'homme <thomas.preudhomme@arm.com>
26978 * config/arm/arm-protos.h (clear_operation_p): Adapt prototype.
26979 * config/arm/arm.c (clear_operation_p): Extend to be able to check a
26980 clear_vfp_multiple pattern based on a new vfp parameter.
26981 (cmse_clear_registers): Generate VSCCLRM to clear VFP registers when
26982 targeting Armv8.1-M Mainline.
26983 (cmse_nonsecure_entry_clear_before_return): Clear VFP registers
26984 unconditionally when targeting Armv8.1-M Mainline architecture. Check
26985 whether VFP registers are available before looking call_used_regs for a
26987 * config/arm/predicates.md (clear_multiple_operation): Adapt to change
26988 of prototype of clear_operation_p.
26989 (clear_vfp_multiple_operation): New predicate.
26990 * config/arm/unspecs.md (VUNSPEC_VSCCLRM_VPR): New volatile unspec.
26991 * config/arm/vfp.md (clear_vfp_multiple): New define_insn.
26993 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26994 Thomas Preud'homme <thomas.preudhomme@arm.com>
26996 * config/arm/arm-protos.h (clear_operation_p): Declare.
26997 * config/arm/arm.c (clear_operation_p): New function.
26998 (cmse_clear_registers): Generate clear_multiple instruction pattern if
26999 targeting Armv8.1-M Mainline or successor.
27000 (output_return_instruction): Only output APSR register clearing if
27001 Armv8.1-M Mainline instructions not available.
27002 (thumb_exit): Likewise.
27003 * config/arm/predicates.md (clear_multiple_operation): New predicate.
27004 * config/arm/thumb2.md (clear_apsr): New define_insn.
27005 (clear_multiple): Likewise.
27006 * config/arm/unspecs.md (VUNSPEC_CLRM_APSR): New volatile unspec.
27008 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
27009 Thomas Preud'homme <thomas.preudhomme@arm.com>
27011 * config/arm/arm.c (fp_sysreg_names): Declare and define.
27012 (use_return_insn): Also return false for Armv8.1-M Mainline.
27013 (output_return_instruction): Skip FPSCR clearing if Armv8.1-M
27014 Mainline instructions are available.
27015 (arm_compute_frame_layout): Allocate space in frame for FPCXTNS
27016 when targeting Armv8.1-M Mainline Security Extensions.
27017 (arm_expand_prologue): Save FPCXTNS if this is an Armv8.1-M
27018 Mainline entry function.
27019 (cmse_nonsecure_entry_clear_before_return): Clear IP and r4 if
27020 targeting Armv8.1-M Mainline or successor.
27021 (arm_expand_epilogue): Fix indentation of caller-saved register
27022 clearing. Restore FPCXTNS if this is an Armv8.1-M Mainline
27024 * config/arm/arm.h (TARGET_HAVE_FP_CMSE): New macro.
27025 (FP_SYSREGS): Likewise.
27026 (enum vfp_sysregs_encoding): Define enum.
27027 (fp_sysreg_names): Declare.
27028 * config/arm/unspecs.md (VUNSPEC_VSTR_VLDR): New volatile unspec.
27029 * config/arm/vfp.md (push_fpsysreg_insn): New define_insn.
27030 (pop_fpsysreg_insn): Likewise.
27032 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
27033 Thomas Preud'homme <thomas.preudhomme@arm.com>
27035 * config/arm/arm-cpus.in (armv8_1m_main): New feature.
27036 (ARMv4, ARMv4t, ARMv5t, ARMv5te, ARMv5tej, ARMv6, ARMv6j, ARMv6k,
27037 ARMv6z, ARMv6kz, ARMv6zk, ARMv6t2, ARMv6m, ARMv7, ARMv7a, ARMv7ve,
27038 ARMv7r, ARMv7m, ARMv7em, ARMv8a, ARMv8_1a, ARMv8_2a, ARMv8_3a,
27039 ARMv8_4a, ARMv8_5a, ARMv8m_base, ARMv8m_main, ARMv8r): Reindent.
27040 (ARMv8_1m_main): New feature group.
27041 (armv8.1-m.main): New architecture.
27042 * config/arm/arm-tables.opt: Regenerate.
27043 * config/arm/arm.c (arm_arch8_1m_main): Define and default initialize.
27044 (arm_option_reconfigure_globals): Initialize arm_arch8_1m_main.
27045 (arm_options_perform_arch_sanity_checks): Error out when targeting
27046 Armv8.1-M Mainline Security Extensions.
27047 * config/arm/arm.h (arm_arch8_1m_main): Declare.
27049 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
27051 * config/aarch64/aarch64-simd-builtins.def (aarch64_bfdot,
27052 aarch64_bfdot_lane, aarch64_bfdot_laneq): New.
27053 * config/aarch64/aarch64-simd.md (aarch64_bfdot, aarch64_bfdot_lane,
27054 aarch64_bfdot_laneq): New.
27055 * config/aarch64/arm_bf16.h (vbfdot_f32, vbfdotq_f32,
27056 vbfdot_lane_f32, vbfdotq_lane_f32, vbfdot_laneq_f32,
27057 vbfdotq_laneq_f32): New.
27058 * config/aarch64/iterators.md (UNSPEC_BFDOT, Vbfdottype,
27059 VBFMLA_W, VBF): New.
27060 (isquadop): Add V4BF, V8BF.
27062 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
27064 * config/aarch64/aarch64-builtins.c: (enum aarch64_type_qualifiers):
27065 New qualifier_lane_quadtup_index, TYPES_TERNOP_SSUS,
27066 TYPES_QUADOPSSUS_LANE_QUADTUP, TYPES_QUADOPSSSU_LANE_QUADTUP.
27067 (aarch64_simd_expand_args): Add case SIMD_ARG_LANE_QUADTUP_INDEX.
27068 (aarch64_simd_expand_builtin): Add qualifier_lane_quadtup_index.
27069 * config/aarch64/aarch64-simd-builtins.def (usdot, usdot_lane,
27070 usdot_laneq, sudot_lane,sudot_laneq): New.
27071 * config/aarch64/aarch64-simd.md (aarch64_usdot): New.
27072 (aarch64_<sur>dot_lane): New.
27073 * config/aarch64/arm_neon.h (vusdot_s32): New.
27074 (vusdotq_s32): New.
27075 (vusdot_lane_s32): New.
27076 (vsudot_lane_s32): New.
27077 * config/aarch64/iterators.md (DOTPROD_I8MM): New iterator.
27078 (UNSPEC_USDOT, UNSPEC_SUDOT): New unspecs.
27080 2020-01-16 Martin Liska <mliska@suse.cz>
27082 * value-prof.c (dump_histogram_value): Fix
27083 obvious spacing issue.
27085 2020-01-16 Andrew Pinski <apinski@marvell.com>
27087 * tree-ssa-sccvn.c(vn_reference_lookup_3): Check lhs for
27088 !storage_order_barrier_p.
27090 2020-01-16 Andrew Pinski <apinski@marvell.com>
27092 * sched-int.h (_dep): Add unused bit-field field for the padding.
27093 * sched-deps.c (init_dep_1): Init unused field.
27095 2020-01-16 Andrew Pinski <apinski@marvell.com>
27097 * optabs.h (create_expand_operand): Initialize target field also.
27099 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
27101 PR tree-optimization/92429
27102 * tree-ssa-loop-niter.h (simplify_replace_tree): Add parameter.
27103 * tree-ssa-loop-niter.c (simplify_replace_tree): Add parameter to
27105 * tree-vect-loop.c (update_epilogue_vinfo): Do not fold when replacing
27108 2020-01-16 Richard Sandiford <richard.sandiford@arm.com>
27110 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move): Apply
27111 aarch64_sve_int_mode to each mode.
27113 2020-01-15 David Malcolm <dmalcolm@redhat.com>
27115 * doc/analyzer.texi (Overview): Add note about
27116 -fdump-ipa-analyzer.
27118 2020-01-15 Wilco Dijkstra <wdijkstr@arm.com>
27120 PR tree-optimization/93231
27121 * tree-ssa-forwprop.c (optimize_count_trailing_zeroes): Check
27122 input_type is unsigned. Use tree_to_shwi for shift constant.
27123 Check CST_STRING element size is CHAR_TYPE_SIZE bits.
27124 (simplify_count_trailing_zeroes): Add test to handle known non-zero
27125 inputs more efficiently.
27127 2020-01-15 Uroš Bizjak <ubizjak@gmail.com>
27129 * config/i386/i386.md (*movsf_internal): Do not require
27130 SSE2 ISA for alternatives 14 and 15.
27132 2020-01-15 Richard Biener <rguenther@suse.de>
27134 PR middle-end/93273
27135 * tree-eh.c (sink_clobbers): If we already visited the destination
27136 block do not defer insertion.
27137 (pass_lower_eh_dispatch::execute): Maintain BB_VISITED for
27138 the purpose of defered insertion.
27140 2020-01-15 Jakub Jelinek <jakub@redhat.com>
27142 * BASE-VER: Bump to 10.0.1.
27144 2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
27146 PR tree-optimization/93247
27147 * tree-vect-loop.c (update_epilogue_loop_vinfo): Check the access
27148 type of the stmt that we're going to vectorize.
27150 2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
27152 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Use a
27153 VIEW_CONVERT_EXPR if the vectorized constructor has a diffeent
27156 2020-01-15 Martin Liska <mliska@suse.cz>
27158 * ipa-profile.c (ipa_profile_read_edge_summary): Do not allow
27159 2 calls of streamer_read_hwi in a function call.
27161 2020-01-15 Richard Biener <rguenther@suse.de>
27163 * alias.c (record_alias_subset): Avoid redundant work when
27164 subset is already recorded.
27166 2020-01-14 David Malcolm <dmalcolm@redhat.com>
27168 * doc/invoke.texi (-fdiagnostics-show-cwe): Add note that some of
27169 the analyzer options provide CWE identifiers.
27171 2020-01-14 David Malcolm <dmalcolm@redhat.com>
27173 * tree-diagnostic-path.cc (path_summary::event_range::print):
27174 When testing for UNKNOWN_LOCATION, look through ad-hoc wrappers
27175 using get_pure_location.
27177 2020-01-15 Jakub Jelinek <jakub@redhat.com>
27179 PR tree-optimization/93262
27180 * tree-ssa-dse.c (maybe_trim_memstar_call): For *_chk builtins,
27181 perform head trimming only if the last argument is constant,
27182 either all ones, or larger or equal to head trim, in the latter
27183 case decrease the last argument by head_trim.
27185 PR tree-optimization/93249
27186 * tree-ssa-dse.c: Include builtins.h and gimple-fold.h.
27187 (maybe_trim_memstar_call): Move head_trim and tail_trim vars to
27188 function body scope, reindent. For BUILTIN_IN_STRNCPY*, don't
27189 perform head trim unless we can prove there are no '\0' chars
27190 from the source among the first head_trim chars.
27192 2020-01-14 David Malcolm <dmalcolm@redhat.com>
27194 * Makefile.in (ANALYZER_OBJS): Add analyzer/function-set.o.
27196 2020-01-15 Jakub Jelinek <jakub@redhat.com>
27199 * config/i386/sse.md
27200 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1,
27201 *<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1,
27202 *<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1,
27203 *<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Use
27204 just a single alternative instead of two, make operands 1 and 2
27207 2020-01-14 Jan Hubicka <hubicka@ucw.cz>
27210 * ipa-devirt.c (odr_types_equivalent_p): Compare TREE_ADDRESSABLE and
27213 2020-01-14 David Malcolm <dmalcolm@redhat.com>
27215 * Makefile.in (lang_opt_files): Add analyzer.opt.
27216 (ANALYZER_OBJS): New.
27217 (OBJS): Add digraph.o, graphviz.o, ordered-hash-map-tests.o,
27218 tristate.o and ANALYZER_OBJS.
27219 (TEXI_GCCINT_FILES): Add analyzer.texi.
27220 * common.opt (-fanalyzer): New driver option.
27221 * config.in: Regenerate.
27222 * configure: Regenerate.
27223 * configure.ac (--disable-analyzer, ENABLE_ANALYZER): New option.
27224 (gccdepdir): Also create depdir for "analyzer" subdir.
27225 * digraph.cc: New file.
27226 * digraph.h: New file.
27227 * doc/analyzer.texi: New file.
27228 * doc/gccint.texi ("Static Analyzer") New menu item.
27229 (analyzer.texi): Include it.
27230 * doc/invoke.texi ("Static Analyzer Options"): New list and new section.
27231 ("Warning Options"): Add static analysis warnings to the list.
27232 (-Wno-analyzer-double-fclose): New option.
27233 (-Wno-analyzer-double-free): New option.
27234 (-Wno-analyzer-exposure-through-output-file): New option.
27235 (-Wno-analyzer-file-leak): New option.
27236 (-Wno-analyzer-free-of-non-heap): New option.
27237 (-Wno-analyzer-malloc-leak): New option.
27238 (-Wno-analyzer-possible-null-argument): New option.
27239 (-Wno-analyzer-possible-null-dereference): New option.
27240 (-Wno-analyzer-null-argument): New option.
27241 (-Wno-analyzer-null-dereference): New option.
27242 (-Wno-analyzer-stale-setjmp-buffer): New option.
27243 (-Wno-analyzer-tainted-array-index): New option.
27244 (-Wno-analyzer-use-after-free): New option.
27245 (-Wno-analyzer-use-of-pointer-in-stale-stack-frame): New option.
27246 (-Wno-analyzer-use-of-uninitialized-value): New option.
27247 (-Wanalyzer-too-complex): New option.
27248 (-fanalyzer-call-summaries): New warning.
27249 (-fanalyzer-checker=): New warning.
27250 (-fanalyzer-fine-grained): New warning.
27251 (-fno-analyzer-state-merge): New warning.
27252 (-fno-analyzer-state-purge): New warning.
27253 (-fanalyzer-transitivity): New warning.
27254 (-fanalyzer-verbose-edges): New warning.
27255 (-fanalyzer-verbose-state-changes): New warning.
27256 (-fanalyzer-verbosity=): New warning.
27257 (-fdump-analyzer): New warning.
27258 (-fdump-analyzer-callgraph): New warning.
27259 (-fdump-analyzer-exploded-graph): New warning.
27260 (-fdump-analyzer-exploded-nodes): New warning.
27261 (-fdump-analyzer-exploded-nodes-2): New warning.
27262 (-fdump-analyzer-exploded-nodes-3): New warning.
27263 (-fdump-analyzer-supergraph): New warning.
27264 * doc/sourcebuild.texi (dg-require-dot): New.
27265 (dg-check-dot): New.
27266 * gdbinit.in (break-on-saved-diagnostic): New command.
27267 * graphviz.cc: New file.
27268 * graphviz.h: New file.
27269 * ordered-hash-map-tests.cc: New file.
27270 * ordered-hash-map.h: New file.
27271 * passes.def (pass_analyzer): Add before
27272 pass_ipa_whole_program_visibility.
27273 * selftest-run-tests.c (selftest::run_tests): Call
27274 selftest::ordered_hash_map_tests_cc_tests.
27275 * selftest.h (selftest::ordered_hash_map_tests_cc_tests): New
27277 * shortest-paths.h: New file.
27278 * timevar.def (TV_ANALYZER): New timevar.
27279 (TV_ANALYZER_SUPERGRAPH): Likewise.
27280 (TV_ANALYZER_STATE_PURGE): Likewise.
27281 (TV_ANALYZER_PLAN): Likewise.
27282 (TV_ANALYZER_SCC): Likewise.
27283 (TV_ANALYZER_WORKLIST): Likewise.
27284 (TV_ANALYZER_DUMP): Likewise.
27285 (TV_ANALYZER_DIAGNOSTICS): Likewise.
27286 (TV_ANALYZER_SHORTEST_PATHS): Likewise.
27287 * tree-pass.h (make_pass_analyzer): New decl.
27288 * tristate.cc: New file.
27289 * tristate.h: New file.
27291 2020-01-14 Uroš Bizjak <ubizjak@gmail.com>
27294 * config/i386/i386.md (*movsf_internal): Require SSE2 ISA for
27295 alternatives 9 and 10.
27297 2020-01-14 David Malcolm <dmalcolm@redhat.com>
27299 * attribs.c (excl_hash_traits::empty_zero_p): New static constant.
27300 * gcov.c (function_start_pair_hash::empty_zero_p): Likewise.
27301 * graphite.c (struct sese_scev_hash::empty_zero_p): Likewise.
27302 * hash-map-tests.c (selftest::test_nonzero_empty_key): New selftest.
27303 (selftest::hash_map_tests_c_tests): Call it.
27304 * hash-map-traits.h (simple_hashmap_traits::empty_zero_p):
27305 New static constant, using the value of = H::empty_zero_p.
27306 (unbounded_hashmap_traits::empty_zero_p): Likewise, using the value
27307 from default_hash_traits <Value>.
27308 * hash-map.h (hash_map::empty_zero_p): Likewise, using the value
27310 * hash-set-tests.c (value_hash_traits::empty_zero_p): Likewise.
27311 * hash-table.h (hash_table::alloc_entries): Guard the loop of
27312 calls to mark_empty with !Descriptor::empty_zero_p.
27313 (hash_table::empty_slow): Conditionalize the memset call with a
27314 check that Descriptor::empty_zero_p; otherwise, loop through the
27315 entries calling mark_empty on them.
27316 * hash-traits.h (int_hash::empty_zero_p): New static constant.
27317 (pointer_hash::empty_zero_p): Likewise.
27318 (pair_hash::empty_zero_p): Likewise.
27319 * ipa-devirt.c (default_hash_traits <type_pair>::empty_zero_p):
27321 * ipa-prop.c (ipa_bit_ggc_hash_traits::empty_zero_p): Likewise.
27322 (ipa_vr_ggc_hash_traits::empty_zero_p): Likewise.
27323 * profile.c (location_triplet_hash::empty_zero_p): Likewise.
27324 * sanopt.c (sanopt_tree_triplet_hash::empty_zero_p): Likewise.
27325 (sanopt_tree_couple_hash::empty_zero_p): Likewise.
27326 * tree-hasher.h (int_tree_hasher::empty_zero_p): Likewise.
27327 * tree-ssa-sccvn.c (vn_ssa_aux_hasher::empty_zero_p): Likewise.
27328 * tree-vect-slp.c (bst_traits::empty_zero_p): Likewise.
27329 * tree-vectorizer.h
27330 (default_hash_traits<scalar_cond_masked_key>::empty_zero_p):
27333 2020-01-14 Kewen Lin <linkw@gcc.gnu.org>
27335 * cfgloopanal.c (average_num_loop_insns): Free bbs when early return,
27336 fix typo on return value.
27338 2020-01-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
27341 * cgraph.c (symbol_table::create_edge): Init speculative_id and
27343 (cgraph_edge::make_speculative): Add param for setting speculative_id
27345 (cgraph_edge::speculative_call_info): Update comments and find reference
27346 by speculative_id for multiple indirect targets.
27347 (cgraph_edge::resolve_speculation): Decrease the speculations
27348 for indirect edge, drop it's speculative if not direct target
27349 left. Update comments.
27350 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
27351 (cgraph_node::dump): Print num_speculative_call_targets.
27352 (cgraph_node::verify_node): Don't report error if speculative
27353 edge not include statement.
27354 (cgraph_edge::num_speculative_call_targets_p): New function.
27355 * cgraph.h (int common_target_id): Remove.
27356 (int common_target_probability): Remove.
27357 (num_speculative_call_targets): New variable.
27358 (make_speculative): Add param for setting speculative_id.
27359 (cgraph_edge::num_speculative_call_targets_p): New declare.
27360 (target_prob): New variable.
27361 (speculative_id): New variable.
27362 * ipa-fnsummary.c (analyze_function_body): Create and duplicate
27363 call summaries for multiple speculative call targets.
27364 * cgraphclones.c (cgraph_node::create_clone): Clone speculative_id.
27365 * ipa-profile.c (struct speculative_call_target): New struct.
27366 (class speculative_call_summary): New class.
27367 (class speculative_call_summaries): New class.
27368 (call_sums): New variable.
27369 (ipa_profile_generate_summary): Generate indirect multiple targets summaries.
27370 (ipa_profile_write_edge_summary): New function.
27371 (ipa_profile_write_summary): Stream out indirect multiple targets summaries.
27372 (ipa_profile_dump_all_summaries): New function.
27373 (ipa_profile_read_edge_summary): New function.
27374 (ipa_profile_read_summary_section): New function.
27375 (ipa_profile_read_summary): Stream in indirect multiple targets summaries.
27376 (ipa_profile): Generate num_speculative_call_targets from
27378 * ipa-ref.h (speculative_id): New variable.
27379 * ipa-utils.c (ipa_merge_profiles): Update with target_prob.
27380 * lto-cgraph.c (lto_output_edge): Remove indirect common_target_id and
27381 common_target_probability. Stream out speculative_id and
27382 num_speculative_call_targets.
27383 (input_edge): Likewise.
27384 * predict.c (dump_prediction): Remove edges count assert to be
27386 * symtab.c (symtab_node::create_reference): Init speculative_id.
27387 (symtab_node::clone_references): Clone speculative_id.
27388 (symtab_node::clone_referring): Clone speculative_id.
27389 (symtab_node::clone_reference): Clone speculative_id.
27390 (symtab_node::clear_stmts_in_references): Clear speculative_id.
27391 * tree-inline.c (copy_bb): Duplicate all the speculative edges
27392 if indirect call contains multiple speculative targets.
27393 * value-prof.h (check_ic_target): Remove.
27394 * value-prof.c (gimple_value_profile_transformations):
27395 Use void function gimple_ic_transform.
27396 * value-prof.c (gimple_ic_transform): Handle topn case.
27397 Fix comment typos. Change it to a void function.
27399 2020-01-13 Andrew Pinski <apinski@marvell.com>
27401 * config/aarch64/aarch64-cores.def (octeontx2): New define.
27402 (octeontx2t98): New define.
27403 (octeontx2t96): New define.
27404 (octeontx2t93): New define.
27405 (octeontx2f95): New define.
27406 (octeontx2f95n): New define.
27407 (octeontx2f95mm): New define.
27408 * config/aarch64/aarch64-tune.md: Regenerate.
27409 * doc/invoke.texi (-mcpu=): Document the new cpu types.
27411 2020-01-13 Jason Merrill <jason@redhat.com>
27413 PR c++/33799 - destroy return value if local cleanup throws.
27414 * gimplify.c (gimplify_return_expr): Handle COMPOUND_EXPR.
27416 2020-01-13 Martin Liska <mliska@suse.cz>
27418 * ipa-cp.c (get_max_overall_size): Use newly
27419 renamed param param_ipa_cp_unit_growth.
27420 * params.opt: Remove legacy param name.
27422 2020-01-13 Martin Sebor <msebor@redhat.com>
27424 PR tree-optimization/93213
27425 * tree-ssa-strlen.c (handle_store): Only allow single-byte nul-over-nul
27426 stores to be eliminated.
27428 2020-01-13 Martin Liska <mliska@suse.cz>
27430 * opts.c (print_help): Do not print CL_PARAM
27431 and CL_WARNING for CL_OPTIMIZATION.
27433 2020-01-13 Jonathan Wakely <jwakely@redhat.com>
27436 * doc/invoke.texi (Warning Options): Add caveat about some warnings
27437 depending on optimization settings.
27439 2020-01-13 Jakub Jelinek <jakub@redhat.com>
27441 PR tree-optimization/90838
27442 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
27443 SCALAR_INT_TYPE_MODE directly in CTZ_DEFINED_VALUE_AT_ZERO macro
27444 argument rather than to initialize temporary for targets that
27445 don't use the mode argument at all. Initialize ctzval to avoid
27448 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
27450 * tree.h (OMP_CLAUSE_USE_DEVICE_PTR_IF_PRESENT): New definition.
27451 * tree-core.h: Document it.
27452 * gimplify.c (gimplify_omp_workshare): Set it.
27453 * omp-low.c (lower_omp_target): Use it.
27454 * tree-pretty-print.c (dump_omp_clause): Print it.
27456 * omp-low.c (lower_omp_target) <OMP_CLAUSE_USE_DEVICE_PTR etc.>:
27457 Assert that for OpenACC we always have 'GOMP_MAP_USE_DEVICE_PTR'.
27459 2020-01-10 David Malcolm <dmalcolm@redhat.com>
27461 * Makefile.in (OBJS): Add tree-diagnostic-path.o.
27462 * common.opt (fdiagnostics-path-format=): New option.
27463 (diagnostic_path_format): New enum.
27464 (fdiagnostics-show-path-depths): New option.
27465 * coretypes.h (diagnostic_event_id_t): New forward decl.
27466 * diagnostic-color.c (color_dict): Add "path".
27467 * diagnostic-event-id.h: New file.
27468 * diagnostic-format-json.cc (json_from_expanded_location): Make
27470 (json_end_diagnostic): Call context->make_json_for_path if it
27471 exists and the diagnostic has a path.
27472 (diagnostic_output_format_init): Clear context->print_path.
27473 * diagnostic-path.h: New file.
27474 * diagnostic-show-locus.c (colorizer::set_range): Special-case
27475 when printing a run of events in a diagnostic_path so that they
27476 all get the same color.
27477 (layout::m_diagnostic_path_p): New field.
27478 (layout::layout): Initialize it.
27479 (layout::print_any_labels): Don't colorize the label text for an
27480 event in a diagnostic_path.
27481 (gcc_rich_location::add_location_if_nearby): Add
27482 "restrict_to_current_line_spans" and "label" params. Pass the
27483 former to layout.maybe_add_location_range; pass the latter
27484 when calling add_range.
27485 * diagnostic.c: Include "diagnostic-path.h".
27486 (diagnostic_initialize): Initialize context->path_format and
27487 context->show_path_depths.
27488 (diagnostic_show_any_path): New function.
27489 (diagnostic_path::interprocedural_p): New function.
27490 (diagnostic_report_diagnostic): Call diagnostic_show_any_path.
27491 (simple_diagnostic_path::num_events): New function.
27492 (simple_diagnostic_path::get_event): New function.
27493 (simple_diagnostic_path::add_event): New function.
27494 (simple_diagnostic_event::simple_diagnostic_event): New ctor.
27495 (simple_diagnostic_event::~simple_diagnostic_event): New dtor.
27496 (debug): New overload taking a diagnostic_path *.
27497 * diagnostic.def (DK_DIAGNOSTIC_PATH): New.
27498 * diagnostic.h (enum diagnostic_path_format): New enum.
27499 (json::value): New forward decl.
27500 (diagnostic_context::path_format): New field.
27501 (diagnostic_context::show_path_depths): New field.
27502 (diagnostic_context::print_path): New callback field.
27503 (diagnostic_context::make_json_for_path): New callback field.
27504 (diagnostic_show_any_path): New decl.
27505 (json_from_expanded_location): New decl.
27506 * doc/invoke.texi (-fdiagnostics-path-format=): New option.
27507 (-fdiagnostics-show-path-depths): New option.
27508 (-fdiagnostics-color): Add "path" to description of default
27509 GCC_COLORS; describe it.
27510 (-fdiagnostics-format=json): Document how diagnostic paths are
27511 represented in the JSON output format.
27512 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
27513 Add optional params "restrict_to_current_line_spans" and "label".
27514 * opts.c (common_handle_option): Handle
27515 OPT_fdiagnostics_path_format_ and
27516 OPT_fdiagnostics_show_path_depths.
27517 * pretty-print.c: Include "diagnostic-event-id.h".
27518 (pp_format): Implement "%@" format code for printing
27519 diagnostic_event_id_t *.
27520 (selftest::test_pp_format): Add tests for "%@".
27521 * selftest-run-tests.c (selftest::run_tests): Call
27522 selftest::tree_diagnostic_path_cc_tests.
27523 * selftest.h (selftest::tree_diagnostic_path_cc_tests): New decl.
27524 * toplev.c (general_init): Initialize global_dc->path_format and
27525 global_dc->show_path_depths.
27526 * tree-diagnostic-path.cc: New file.
27527 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Make
27528 non-static. Drop "diagnostic" param in favor of storing the
27529 original value of "where" and re-using it.
27530 (virt_loc_aware_diagnostic_finalizer): Update for dropped param of
27531 maybe_unwind_expanded_macro_loc.
27532 (tree_diagnostics_defaults): Initialize context->print_path and
27533 context->make_json_for_path.
27534 * tree-diagnostic.h (default_tree_diagnostic_path_printer): New
27536 (default_tree_make_json_for_path): New decl.
27537 (maybe_unwind_expanded_macro_loc): New decl.
27539 2020-01-10 Jakub Jelinek <jakub@redhat.com>
27541 PR tree-optimization/93210
27542 * fold-const.h (native_encode_initializer,
27543 can_native_interpret_type_p): Declare.
27544 * fold-const.c (native_encode_string): Fix up handling with off != -1,
27546 (native_encode_initializer): New function, moved from dwarf2out.c.
27547 Adjust to native_encode_expr compatible arguments, including dry-run
27548 and partial extraction modes. Don't handle STRING_CST.
27549 (can_native_interpret_type_p): No longer static.
27550 * gimple-fold.c (fold_ctor_reference): For native_encode_expr, verify
27551 offset / BITS_PER_UNIT fits into int and don't call it if
27552 can_native_interpret_type_p fails. If suboff is NULL and for
27553 CONSTRUCTOR fold_{,non}array_ctor_reference returns NULL, retry with
27554 native_encode_initializer.
27555 (fold_const_aggregate_ref_1): Formatting fix.
27556 * dwarf2out.c (native_encode_initializer): Moved to fold-const.c.
27557 (tree_add_const_value_attribute): Adjust caller.
27559 PR tree-optimization/90838
27560 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
27561 SCALAR_INT_TYPE_MODE instead of TYPE_MODE as operand of
27562 CTZ_DEFINED_VALUE_AT_ZERO.
27564 2020-01-10 Vladimir Makarov <vmakarov@redhat.com>
27566 PR inline-asm/93027
27567 * lra-constraints.c (match_reload): Permit input operands have the
27568 same mode as output while other input operands have a different
27571 2020-01-10 Wilco Dijkstra <wdijkstr@arm.com>
27573 PR tree-optimization/90838
27574 * tree-ssa-forwprop.c (check_ctz_array): Add new function.
27575 (check_ctz_string): Likewise.
27576 (optimize_count_trailing_zeroes): Likewise.
27577 (simplify_count_trailing_zeroes): Likewise.
27578 (pass_forwprop::execute): Try ctz simplification.
27579 * match.pd: Add matching for ctz idioms.
27581 2020-01-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
27583 * config/aarch64/aarch64.c (aarch64_invalid_conversion): New function
27585 (aarch64_invalid_unary_op): New function for target hook.
27586 (aarch64_invalid_binary_op): New function for target hook.
27588 2020-01-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
27590 * config.gcc: Add arm_bf16.h.
27591 * config/aarch64/aarch64-builtins.c
27592 (aarch64_simd_builtin_std_type): Add BFmode.
27593 (aarch64_init_simd_builtin_types): Define element types for vector
27595 (aarch64_init_bf16_types): New function.
27596 (aarch64_general_init_builtins): Add arm_init_bf16_types function call.
27597 * config/aarch64/aarch64-modes.def: Add BFmode and V4BF, V8BF vector
27599 * config/aarch64/aarch64-simd-builtin-types.def: Add BF SIMD types.
27600 * config/aarch64/aarch64-simd.md: Add BF vector types to NEON move
27602 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): Add V4BF.
27603 (AARCH64_VALID_SIMD_QREG_MODE): Add V8BF.
27604 * config/aarch64/aarch64.c
27605 (aarch64_classify_vector_mode): Add support for BF types.
27606 (aarch64_gimplify_va_arg_expr): Add support for BF types.
27607 (aarch64_vq_mode): Add support for BF types.
27608 (aarch64_simd_container_mode): Add support for BF types.
27609 (aarch64_mangle_type): Add support for BF scalar type.
27610 * config/aarch64/aarch64.md: Add BFmode to movhf pattern.
27611 * config/aarch64/arm_bf16.h: New file.
27612 * config/aarch64/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
27613 * config/aarch64/iterators.md: Add BF types to mode attributes.
27614 (HFBF, GPF_TF_F16_MOV, VDMOV, VQMOV, VQMOV_NO2Em VALL_F16MOV): New.
27616 2020-01-10 Jason Merrill <jason@redhat.com>
27618 PR c++/93173 - incorrect tree sharing.
27619 * gimplify.c (copy_if_shared): No longer static.
27620 * gimplify.h: Declare it.
27622 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
27624 * doc/invoke.texi (-msve-vector-bits=): Document that
27625 -msve-vector-bits=128 now generates VL-specific code for
27626 little-endian targets.
27627 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types): Use
27628 build_vector_type_for_mode to construct the data vector types.
27629 * config/aarch64/aarch64.c (aarch64_convert_sve_vector_bits): Generate
27630 VL-specific code for -msve-vector-bits=128 on little-endian targets.
27631 (aarch64_simd_container_mode): Always prefer Advanced SIMD modes
27632 for 128-bit vectors.
27634 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
27636 * config/aarch64/aarch64.c (aarch64_evpc_sel): Fix gen_vcond_mask
27639 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
27641 * config/aarch64/aarch64-builtins.c
27642 (aarch64_builtin_vectorized_function): Check for specific vector modes,
27643 rather than checking the number of elements and the element mode.
27645 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
27647 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
27648 get_related_vectype_for_scalar_type rather than build_vector_type
27649 to create the index type for a conditional reduction.
27651 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
27653 * tree-vect-loop.c (update_epilogue_loop_vinfo): Update DR_REF
27654 for any type of gather or scatter, including strided accesses.
27656 2020-01-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
27658 * tree-vectorizer.h (get_dr_vinfo_offset): Add missing function
27661 2020-01-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
27663 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Use
27664 get_dr_vinfo_offset
27665 * tree-vect-loop.c (update_epilogue_loop_vinfo): Remove orig_drs_init
27666 parameter and its use to reset DR_OFFSET's.
27667 (vect_transform_loop): Remove orig_drs_init argument.
27668 * tree-vect-loop-manip.c (vect_update_init_of_dr): Update the offset
27669 member of dr_vec_info rather than the offset of the associated
27670 data_reference's innermost_loop_behavior.
27671 (vect_update_init_of_dr): Pass dr_vec_info instead of data_reference.
27672 (vect_do_peeling): Remove orig_drs_init parameter and its construction.
27673 * tree-vect-stmts.c (check_scan_store): Replace use of DR_OFFSET with
27674 get_dr_vinfo_offset.
27675 (vectorizable_store): Likewise.
27676 (vectorizable_load): Likewise.
27678 2020-01-10 Richard Biener <rguenther@suse.de>
27680 * gimple-ssa-store-merging
27681 (pass_store_merging::terminate_all_aliasing_chains): Cache alias info.
27683 2020-01-10 Martin Liska <mliska@suse.cz>
27686 * ipa-inline-analysis.c (offline_size): Make proper parenthesis
27687 encapsulation that was there before r280040.
27689 2020-01-10 Richard Biener <rguenther@suse.de>
27691 PR middle-end/93199
27692 * tree-eh.c (sink_clobbers): Move clobbers to out-of-IL
27693 sequences to avoid walking them again for secondary opportunities.
27694 (pass_lower_eh_dispatch::execute): Instead actually insert
27697 2020-01-10 Richard Biener <rguenther@suse.de>
27699 PR middle-end/93199
27700 * tree-eh.c (redirect_eh_edge_1): Avoid some work if possible.
27701 (cleanup_all_empty_eh): Walk landing pads in reverse order to
27702 avoid quadraticness.
27704 2020-01-10 Martin Jambor <mjambor@suse.cz>
27706 * params.opt (param_ipa_sra_max_replacements): Mark as Optimization.
27707 * ipa-sra.c (pull_accesses_from_callee): New parameter caller, use it
27708 to get param_ipa_sra_max_replacements.
27709 (param_splitting_across_edge): Pass the caller to
27710 pull_accesses_from_callee.
27712 2020-01-10 Martin Jambor <mjambor@suse.cz>
27714 * params.opt (param_ipcp_unit_growth): Mark as Optimization.
27715 * ipa-cp.c (max_new_size): Removed.
27716 (orig_overall_size): New variable.
27717 (get_max_overall_size): New function.
27718 (estimate_local_effects): Use it. Adjust dump.
27719 (decide_about_value): Likewise.
27720 (ipcp_propagate_stage): Do not calculate max_new_size, just store
27721 orig_overall_size. Adjust dump.
27722 (ipa_cp_c_finalize): Clear orig_overall_size instead of max_new_size.
27724 2020-01-10 Martin Jambor <mjambor@suse.cz>
27726 * params.opt (param_ipa_max_agg_items): Mark as Optimization
27727 * ipa-cp.c (merge_agg_lats_step): New parameter max_agg_items, use
27728 instead of param_ipa_max_agg_items.
27729 (merge_aggregate_lattices): Extract param_ipa_max_agg_items from
27730 optimization info for the callee.
27732 2020-01-09 Kwok Cheung Yeung <kcy@codesourcery.com>
27734 * lto-streamer-in.c (input_function): Remove streamed-in inline debug
27735 markers if debug_inline_points is false.
27737 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
27739 * config.gcc (aarch64*-*-*): Add aarch64-sve-builtins-sve2.o to
27741 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): Depend on
27742 aarch64-sve-builtins-base.def, aarch64-sve-builtins-sve2.def and
27743 aarch64-sve-builtins-sve2.h.
27744 (aarch64-sve-builtins-sve2.o): New rule.
27745 * config/aarch64/aarch64.h (AARCH64_ISA_SVE2_AES): New macro.
27746 (AARCH64_ISA_SVE2_BITPERM, AARCH64_ISA_SVE2_SHA3): Likewise.
27747 (AARCH64_ISA_SVE2_SM4, TARGET_SVE2_AES, TARGET_SVE2_BITPERM): Likewise.
27748 (TARGET_SVE2_SHA, TARGET_SVE2_SM4): Likewise.
27749 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Handle
27750 TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3 and
27752 * config/aarch64/aarch64-sve.md: Update comments with SVE2
27753 instructions that are handled here.
27754 (@cond_asrd<mode>): Generalize to...
27755 (@cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>): ...this.
27756 (*cond_asrd<mode>_2): Generalize to...
27757 (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_2): ...this.
27758 (*cond_asrd<mode>_z): Generalize to...
27759 (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_z): ...this.
27760 * config/aarch64/aarch64.md (UNSPEC_LDNT1_GATHER): New unspec.
27761 (UNSPEC_STNT1_SCATTER, UNSPEC_WHILEGE, UNSPEC_WHILEGT): Likewise.
27762 (UNSPEC_WHILEHI, UNSPEC_WHILEHS): Likewise.
27763 * config/aarch64/aarch64-sve2.md (@aarch64_gather_ldnt<mode>): New
27765 (@aarch64_gather_ldnt_<ANY_EXTEND:optab><SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
27766 (@aarch64_scatter_stnt<mode>): Likewise.
27767 (@aarch64_scatter_stnt_<SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
27768 (@aarch64_mul_lane_<mode>): Likewise.
27769 (@aarch64_sve_suqadd<mode>_const): Likewise.
27770 (*<sur>h<addsub><mode>): Generalize to...
27771 (@aarch64_pred_<SVE2_COND_INT_BINARY_REV:sve_int_op><mode>): ...this
27773 (@cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>): New expander.
27774 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_2): New pattern.
27775 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_3): Likewise.
27776 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_any): Likewise.
27777 (*cond_<SVE2_COND_INT_BINARY_NOREV:sve_int_op><mode>_z): Likewise.
27778 (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op><mode>):: Likewise.
27779 (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op>_lane_<mode>): Likewise.
27780 (@aarch64_pred_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): Likewise.
27781 (@cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): New expander.
27782 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_2): New pattern.
27783 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_3): Likewise.
27784 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_any): Likewise.
27785 (@aarch64_sve_<SVE2_INT_TERNARY:sve_int_op><mode>): Likewise.
27786 (@aarch64_sve_<SVE2_INT_TERNARY_LANE:sve_int_op>_lane_<mode>)
27787 (@aarch64_sve_add_mul_lane_<mode>): Likewise.
27788 (@aarch64_sve_sub_mul_lane_<mode>): Likewise.
27789 (@aarch64_sve2_xar<mode>): Likewise.
27790 (@aarch64_sve2_bcax<mode>): Likewise.
27791 (*aarch64_sve2_eor3<mode>): Rename to...
27792 (@aarch64_sve2_eor3<mode>): ...this.
27793 (@aarch64_sve2_bsl<mode>): New expander.
27794 (@aarch64_sve2_nbsl<mode>): Likewise.
27795 (@aarch64_sve2_bsl1n<mode>): Likewise.
27796 (@aarch64_sve2_bsl2n<mode>): Likewise.
27797 (@aarch64_sve_add_<SHIFTRT:sve_int_op><mode>): Likewise.
27798 (*aarch64_sve2_sra<mode>): Add MOVPRFX support.
27799 (@aarch64_sve_add_<VRSHR_N:sve_int_op><mode>): New pattern.
27800 (@aarch64_sve_<SVE2_INT_SHIFT_INSERT:sve_int_op><mode>): Likewise.
27801 (@aarch64_sve2_<USMAX:su>aba<mode>): New expander.
27802 (*aarch64_sve2_<USMAX:su>aba<mode>): New pattern.
27803 (@aarch64_sve_<SVE2_INT_BINARY_WIDE:sve_int_op><mode>): Likewise.
27804 (<su>mull<bt><Vwide>): Generalize to...
27805 (@aarch64_sve_<SVE2_INT_BINARY_LONG:sve_int_op><mode>): ...this new
27807 (@aarch64_sve_<SVE2_INT_BINARY_LONG_lANE:sve_int_op>_lane_<mode>)
27808 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_LONG:sve_int_op><mode>)
27809 (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG:sve_int_op><mode>)
27810 (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
27811 (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG:sve_int_op><mode>)
27812 (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
27813 (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG:sve_int_op><mode>)
27814 (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
27815 (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG:sve_int_op><mode>)
27816 (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
27817 (@aarch64_sve_<SVE2_FP_TERNARY_LONG:sve_fp_op><mode>): New patterns.
27818 (@aarch64_<SVE2_FP_TERNARY_LONG_LANE:sve_fp_op>_lane_<mode>)
27819 (@aarch64_sve_<SVE2_INT_UNARY_NARROWB:sve_int_op><mode>): Likewise.
27820 (@aarch64_sve_<SVE2_INT_UNARY_NARROWT:sve_int_op><mode>): Likewise.
27821 (@aarch64_sve_<SVE2_INT_BINARY_NARROWB:sve_int_op><mode>): Likewise.
27822 (@aarch64_sve_<SVE2_INT_BINARY_NARROWT:sve_int_op><mode>): Likewise.
27823 (<SHRNB:r>shrnb<mode>): Generalize to...
27824 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWB:sve_int_op><mode>): ...this
27826 (<SHRNT:r>shrnt<mode>): Generalize to...
27827 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWT:sve_int_op><mode>): ...this
27829 (@aarch64_pred_<SVE2_INT_BINARY_PAIR:sve_int_op><mode>): New pattern.
27830 (@aarch64_pred_<SVE2_FP_BINARY_PAIR:sve_fp_op><mode>): Likewise.
27831 (@cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>): New expander.
27832 (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_2): New pattern.
27833 (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_z): Likewise.
27834 (@aarch64_sve_<SVE2_INT_CADD:optab><mode>): Likewise.
27835 (@aarch64_sve_<SVE2_INT_CMLA:optab><mode>): Likewise.
27836 (@aarch64_<SVE2_INT_CMLA:optab>_lane_<mode>): Likewise.
27837 (@aarch64_sve_<SVE2_INT_CDOT:optab><mode>): Likewise.
27838 (@aarch64_<SVE2_INT_CDOT:optab>_lane_<mode>): Likewise.
27839 (@aarch64_pred_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): Likewise.
27840 (@cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New expander.
27841 (*cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New pattern.
27842 (@aarch64_sve2_cvtnt<mode>): Likewise.
27843 (@aarch64_pred_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): Likewise.
27844 (@cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): New expander.
27845 (*cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>_any): New pattern.
27846 (@aarch64_sve2_cvtxnt<mode>): Likewise.
27847 (@aarch64_pred_<SVE2_U32_UNARY:sve_int_op><mode>): Likewise.
27848 (@cond_<SVE2_U32_UNARY:sve_int_op><mode>): New expander.
27849 (*cond_<SVE2_U32_UNARY:sve_int_op><mode>): New pattern.
27850 (@aarch64_pred_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): Likewise.
27851 (@cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New expander.
27852 (*cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New pattern.
27853 (@aarch64_sve2_pmul<mode>): Likewise.
27854 (@aarch64_sve_<SVE2_PMULL:optab><mode>): Likewise.
27855 (@aarch64_sve_<SVE2_PMULL_PAIR:optab><mode>): Likewise.
27856 (@aarch64_sve2_tbl2<mode>): Likewise.
27857 (@aarch64_sve2_tbx<mode>): Likewise.
27858 (@aarch64_sve_<SVE2_INT_BITPERM:sve_int_op><mode>): Likewise.
27859 (@aarch64_sve2_histcnt<mode>): Likewise.
27860 (@aarch64_sve2_histseg<mode>): Likewise.
27861 (@aarch64_pred_<SVE2_MATCH:sve_int_op><mode>): Likewise.
27862 (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_cc): Likewise.
27863 (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_ptest): Likewise.
27864 (aarch64_sve2_aes<CRYPTO_AES:aes_op>): Likewise.
27865 (aarch64_sve2_aes<CRYPTO_AESMC:aesmc_op>): Likewise.
27866 (*aarch64_sve2_aese_fused, *aarch64_sve2_aesd_fused): Likewise.
27867 (aarch64_sve2_rax1, aarch64_sve2_sm4e, aarch64_sve2_sm4ekey): Likewise.
27868 (<su>mulh<r>s<mode>3): Update after above pattern name changes.
27869 * config/aarch64/iterators.md (VNx16QI_ONLY, VNx4SF_ONLY)
27870 (SVE_STRUCT2, SVE_FULL_BHI, SVE_FULL_HSI, SVE_FULL_HDI)
27871 (SVE2_PMULL_PAIR_I): New mode iterators.
27872 (UNSPEC_ADCLB, UNSPEC_ADCLT, UNSPEC_ADDHNB, UNSPEC_ADDHNT, UNSPEC_BDEP)
27873 (UNSPEC_BEXT, UNSPEC_BGRP, UNSPEC_CADD90, UNSPEC_CADD270, UNSPEC_CDOT)
27874 (UNSPEC_CDOT90, UNSPEC_CDOT180, UNSPEC_CDOT270, UNSPEC_CMLA)
27875 (UNSPEC_CMLA90, UNSPEC_CMLA180, UNSPEC_CMLA270, UNSPEC_COND_FCVTLT)
27876 (UNSPEC_COND_FCVTNT, UNSPEC_COND_FCVTX, UNSPEC_COND_FCVTXNT)
27877 (UNSPEC_COND_FLOGB, UNSPEC_EORBT, UNSPEC_EORTB, UNSPEC_FADDP)
27878 (UNSPEC_FMAXP, UNSPEC_FMAXNMP, UNSPEC_FMLALB, UNSPEC_FMLALT)
27879 (UNSPEC_FMLSLB, UNSPEC_FMLSLT, UNSPEC_FMINP, UNSPEC_FMINNMP)
27880 (UNSPEC_HISTCNT, UNSPEC_HISTSEG, UNSPEC_MATCH, UNSPEC_NMATCH)
27881 (UNSPEC_PMULLB, UNSPEC_PMULLB_PAIR, UNSPEC_PMULLT, UNSPEC_PMULLT_PAIR)
27882 (UNSPEC_RADDHNB, UNSPEC_RADDHNT, UNSPEC_RSUBHNB, UNSPEC_RSUBHNT)
27883 (UNSPEC_SLI, UNSPEC_SRI, UNSPEC_SABDLB, UNSPEC_SABDLT, UNSPEC_SADDLB)
27884 (UNSPEC_SADDLBT, UNSPEC_SADDLT, UNSPEC_SADDWB, UNSPEC_SADDWT)
27885 (UNSPEC_SBCLB, UNSPEC_SBCLT, UNSPEC_SMAXP, UNSPEC_SMINP)
27886 (UNSPEC_SQCADD90, UNSPEC_SQCADD270, UNSPEC_SQDMULLB, UNSPEC_SQDMULLBT)
27887 (UNSPEC_SQDMULLT, UNSPEC_SQRDCMLAH, UNSPEC_SQRDCMLAH90)
27888 (UNSPEC_SQRDCMLAH180, UNSPEC_SQRDCMLAH270, UNSPEC_SQRSHRNB)
27889 (UNSPEC_SQRSHRNT, UNSPEC_SQRSHRUNB, UNSPEC_SQRSHRUNT, UNSPEC_SQSHRNB)
27890 (UNSPEC_SQSHRNT, UNSPEC_SQSHRUNB, UNSPEC_SQSHRUNT, UNSPEC_SQXTNB)
27891 (UNSPEC_SQXTNT, UNSPEC_SQXTUNB, UNSPEC_SQXTUNT, UNSPEC_SSHLLB)
27892 (UNSPEC_SSHLLT, UNSPEC_SSUBLB, UNSPEC_SSUBLBT, UNSPEC_SSUBLT)
27893 (UNSPEC_SSUBLTB, UNSPEC_SSUBWB, UNSPEC_SSUBWT, UNSPEC_SUBHNB)
27894 (UNSPEC_SUBHNT, UNSPEC_TBL2, UNSPEC_UABDLB, UNSPEC_UABDLT)
27895 (UNSPEC_UADDLB, UNSPEC_UADDLT, UNSPEC_UADDWB, UNSPEC_UADDWT)
27896 (UNSPEC_UMAXP, UNSPEC_UMINP, UNSPEC_UQRSHRNB, UNSPEC_UQRSHRNT)
27897 (UNSPEC_UQSHRNB, UNSPEC_UQSHRNT, UNSPEC_UQXTNB, UNSPEC_UQXTNT)
27898 (UNSPEC_USHLLB, UNSPEC_USHLLT, UNSPEC_USUBLB, UNSPEC_USUBLT)
27899 (UNSPEC_USUBWB, UNSPEC_USUBWT): New unspecs.
27900 (UNSPEC_SMULLB, UNSPEC_SMULLT, UNSPEC_UMULLB, UNSPEC_UMULLT)
27901 (UNSPEC_SMULHS, UNSPEC_SMULHRS, UNSPEC_UMULHS, UNSPEC_UMULHRS)
27902 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SHRNB, UNSPEC_SHRNT): Move
27904 (VNARROW, Ventype): New mode attributes.
27905 (Vewtype): Handle VNx2DI. Fix typo in comment.
27906 (VDOUBLE): New mode attribute.
27907 (sve_lane_con): Handle VNx8HI.
27908 (SVE_INT_UNARY): Include ss_abs and ss_neg for TARGET_SVE2.
27909 (SVE_INT_BINARY): Likewise ss_plus, us_plus, ss_minus and us_minus.
27910 (sve_int_op, sve_int_op_rev): Handle the above codes.
27911 (sve_pred_int_rhs2_operand): Likewise.
27912 (MULLBT, SHRNB, SHRNT): Delete.
27913 (SVE_INT_SHIFT_IMM): New int iterator.
27914 (SVE_WHILE): Add UNSPEC_WHILEGE, UNSPEC_WHILEGT, UNSPEC_WHILEHI
27915 and UNSPEC_WHILEHS for TARGET_SVE2.
27916 (SVE2_U32_UNARY, SVE2_INT_UNARY_NARROWB, SVE2_INT_UNARY_NARROWT)
27917 (SVE2_INT_BINARY, SVE2_INT_BINARY_LANE, SVE2_INT_BINARY_LONG)
27918 (SVE2_INT_BINARY_LONG_LANE, SVE2_INT_BINARY_NARROWB)
27919 (SVE2_INT_BINARY_NARROWT, SVE2_INT_BINARY_PAIR, SVE2_FP_BINARY_PAIR)
27920 (SVE2_INT_BINARY_PAIR_LONG, SVE2_INT_BINARY_WIDE): New int iterators.
27921 (SVE2_INT_SHIFT_IMM_LONG, SVE2_INT_SHIFT_IMM_NARROWB): Likewise.
27922 (SVE2_INT_SHIFT_IMM_NARROWT, SVE2_INT_SHIFT_INSERT, SVE2_INT_CADD)
27923 (SVE2_INT_BITPERM, SVE2_INT_TERNARY, SVE2_INT_TERNARY_LANE): Likewise.
27924 (SVE2_FP_TERNARY_LONG, SVE2_FP_TERNARY_LONG_LANE, SVE2_INT_CMLA)
27925 (SVE2_INT_CDOT, SVE2_INT_ADD_BINARY_LONG, SVE2_INT_QADD_BINARY_LONG)
27926 (SVE2_INT_SUB_BINARY_LONG, SVE2_INT_QSUB_BINARY_LONG): Likewise.
27927 (SVE2_INT_ADD_BINARY_LONG_LANE, SVE2_INT_QADD_BINARY_LONG_LANE)
27928 (SVE2_INT_SUB_BINARY_LONG_LANE, SVE2_INT_QSUB_BINARY_LONG_LANE)
27929 (SVE2_COND_INT_UNARY_FP, SVE2_COND_FP_UNARY_LONG): Likewise.
27930 (SVE2_COND_FP_UNARY_NARROWB, SVE2_COND_INT_BINARY): Likewise.
27931 (SVE2_COND_INT_BINARY_NOREV, SVE2_COND_INT_BINARY_REV): Likewise.
27932 (SVE2_COND_INT_SHIFT, SVE2_MATCH, SVE2_PMULL): Likewise.
27933 (optab): Handle the new unspecs.
27934 (su, r): Remove entries for UNSPEC_SHRNB, UNSPEC_SHRNT, UNSPEC_RSHRNB
27936 (lr): Handle the new unspecs.
27938 (cmp_op, while_optab_cmp, sve_int_op): Handle the new unspecs.
27939 (sve_int_op_rev, sve_int_add_op, sve_int_qadd_op, sve_int_sub_op)
27940 (sve_int_qsub_op): New int attributes.
27941 (sve_fp_op, rot): Handle the new unspecs.
27942 * config/aarch64/aarch64-sve-builtins.h
27943 (function_resolver::require_matching_pointer_type): Declare.
27944 (function_resolver::resolve_unary): Add an optional boolean argument.
27945 (function_resolver::finish_opt_n_resolution): Add an optional
27946 type_suffix_index argument.
27947 (gimple_folder::redirect_call): Declare.
27948 (gimple_expander::prepare_gather_address_operands): Add an optional
27950 * config/aarch64/aarch64-sve-builtins.cc: Include
27951 aarch64-sve-builtins-sve2.h.
27952 (TYPES_b_unsigned, TYPES_b_integer, TYPES_bh_integer): New macros.
27953 (TYPES_bs_unsigned, TYPES_hs_signed, TYPES_hs_integer): Likewise.
27954 (TYPES_hd_unsigned, TYPES_hsd_signed): Likewise.
27955 (TYPES_hsd_integer): Use TYPES_hsd_signed.
27956 (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): New macros.
27957 (TYPES_s_unsigned): Likewise.
27958 (TYPES_s_integer): Use TYPES_s_unsigned.
27959 (TYPES_sd_signed, TYPES_sd_unsigned): New macros.
27960 (TYPES_sd_integer): Use them.
27961 (TYPES_d_unsigned): New macro.
27962 (TYPES_d_integer): Use it.
27963 (TYPES_d_data, TYPES_cvt_long, TYPES_cvt_narrow_s): New macros.
27964 (TYPES_cvt_narrow): Likewise.
27965 (DEF_SVE_TYPES_ARRAY): Include the new types macros above.
27966 (preds_mx): New variable.
27967 (function_builder::add_overloaded_function): Allow the new feature
27968 set to be more restrictive than the original one.
27969 (function_resolver::infer_pointer_type): Remove qualifiers from
27970 the pointer type before printing it.
27971 (function_resolver::require_matching_pointer_type): New function.
27972 (function_resolver::resolve_sv_displacement): Handle functions
27973 that don't support 32-bit vector indices or svint32_t vector offsets.
27974 (function_resolver::finish_opt_n_resolution): Take the inferred type
27975 as a separate argument.
27976 (function_resolver::resolve_unary): Optionally treat all forms in
27977 the same way as normal merging functions.
27978 (gimple_folder::redirect_call): New function.
27979 (function_expander::prepare_gather_address_operands): Add an argument
27980 that says whether scaled forms are available. If they aren't,
27981 handle scaling of vector indices and don't add the extension and
27983 (function_expander::map_to_unspecs): If aarch64_sve isn't available,
27984 fall back to using cond_* instead.
27985 * config/aarch64/aarch64-sve-builtins-functions.h (rtx_code_function):
27986 Split out the member variables into...
27987 (rtx_code_function_base): ...this new base class.
27988 (rtx_code_function_rotated): Inherit rtx_code_function_base.
27989 (unspec_based_function): Split out the member variables into...
27990 (unspec_based_function_base): ...this new base class.
27991 (unspec_based_function_rotated): Inherit unspec_based_function_base.
27992 (unspec_based_function_exact_insn): New class.
27993 (unspec_based_add_function, unspec_based_add_lane_function)
27994 (unspec_based_lane_function, unspec_based_pred_function)
27995 (unspec_based_qadd_function, unspec_based_qadd_lane_function)
27996 (unspec_based_qsub_function, unspec_based_qsub_lane_function)
27997 (unspec_based_sub_function, unspec_based_sub_lane_function): New
27999 (unspec_based_fused_function): New class.
28000 (unspec_based_mla_function, unspec_based_mls_function): New typedefs.
28001 (unspec_based_fused_lane_function): New class.
28002 (unspec_based_mla_lane_function, unspec_based_mls_lane_function): New
28004 (CODE_FOR_MODE1): New macro.
28005 (fixed_insn_function): New class.
28006 (while_comparison): Likewise.
28007 * config/aarch64/aarch64-sve-builtins-shapes.h (binary_long_lane)
28008 (binary_long_opt_n, binary_narrowb_opt_n, binary_narrowt_opt_n)
28009 (binary_to_uint, binary_wide, binary_wide_opt_n, compare, compare_ptr)
28010 (load_ext_gather_index_restricted, load_ext_gather_offset_restricted)
28011 (load_gather_sv_restricted, shift_left_imm_long): Declare.
28012 (shift_left_imm_to_uint, shift_right_imm_narrowb): Likewise.
28013 (shift_right_imm_narrowt, shift_right_imm_narrowb_to_uint): Likewise.
28014 (shift_right_imm_narrowt_to_uint, store_scatter_index_restricted)
28015 (store_scatter_offset_restricted, tbl_tuple, ternary_long_lane)
28016 (ternary_long_opt_n, ternary_qq_lane_rotate, ternary_qq_rotate)
28017 (ternary_shift_left_imm, ternary_shift_right_imm, ternary_uint)
28018 (unary_convert_narrowt, unary_long, unary_narrowb, unary_narrowt)
28019 (unary_narrowb_to_uint, unary_narrowt_to_uint, unary_to_int): Likewise.
28020 * config/aarch64/aarch64-sve-builtins-shapes.cc (apply_predication):
28021 Also add an initial argument for unary_convert_narrowt, regardless
28022 of the predication type.
28023 (build_32_64): Allow loads and stores to specify MODE_none.
28024 (build_sv_index64, build_sv_uint_offset): New functions.
28025 (long_type_suffix): New function.
28026 (binary_imm_narrowb_base, binary_imm_narrowt_base): New classes.
28027 (binary_imm_long_base, load_gather_sv_base): Likewise.
28028 (shift_right_imm_narrow_wrapper, ternary_shift_imm_base): Likewise.
28029 (ternary_resize2_opt_n_base, ternary_resize2_lane_base): Likewise.
28030 (unary_narrowb_base, unary_narrowt_base): Likewise.
28031 (binary_long_lane_def, binary_long_lane): New shape.
28032 (binary_long_opt_n_def, binary_long_opt_n): Likewise.
28033 (binary_narrowb_opt_n_def, binary_narrowb_opt_n): Likewise.
28034 (binary_narrowt_opt_n_def, binary_narrowt_opt_n): Likewise.
28035 (binary_to_uint_def, binary_to_uint): Likewise.
28036 (binary_wide_def, binary_wide): Likewise.
28037 (binary_wide_opt_n_def, binary_wide_opt_n): Likewise.
28038 (compare_def, compare): Likewise.
28039 (compare_ptr_def, compare_ptr): Likewise.
28040 (load_ext_gather_index_restricted_def,
28041 load_ext_gather_index_restricted): Likewise.
28042 (load_ext_gather_offset_restricted_def,
28043 load_ext_gather_offset_restricted): Likewise.
28044 (load_gather_sv_def): Inherit from load_gather_sv_base.
28045 (load_gather_sv_restricted_def, load_gather_sv_restricted): New shape.
28046 (shift_left_imm_def, shift_left_imm): Likewise.
28047 (shift_left_imm_long_def, shift_left_imm_long): Likewise.
28048 (shift_left_imm_to_uint_def, shift_left_imm_to_uint): Likewise.
28049 (store_scatter_index_restricted_def,
28050 store_scatter_index_restricted): Likewise.
28051 (store_scatter_offset_restricted_def,
28052 store_scatter_offset_restricted): Likewise.
28053 (tbl_tuple_def, tbl_tuple): Likewise.
28054 (ternary_long_lane_def, ternary_long_lane): Likewise.
28055 (ternary_long_opt_n_def, ternary_long_opt_n): Likewise.
28056 (ternary_qq_lane_def): Inherit from ternary_resize2_lane_base.
28057 (ternary_qq_lane_rotate_def, ternary_qq_lane_rotate): New shape
28058 (ternary_qq_opt_n_def): Inherit from ternary_resize2_opt_n_base.
28059 (ternary_qq_rotate_def, ternary_qq_rotate): New shape.
28060 (ternary_shift_left_imm_def, ternary_shift_left_imm): Likewise.
28061 (ternary_shift_right_imm_def, ternary_shift_right_imm): Likewise.
28062 (ternary_uint_def, ternary_uint): Likewise.
28063 (unary_convert): Fix typo in comment.
28064 (unary_convert_narrowt_def, unary_convert_narrowt): New shape.
28065 (unary_long_def, unary_long): Likewise.
28066 (unary_narrowb_def, unary_narrowb): Likewise.
28067 (unary_narrowt_def, unary_narrowt): Likewise.
28068 (unary_narrowb_to_uint_def, unary_narrowb_to_uint): Likewise.
28069 (unary_narrowt_to_uint_def, unary_narrowt_to_uint): Likewise.
28070 (unary_to_int_def, unary_to_int): Likewise.
28071 * config/aarch64/aarch64-sve-builtins-base.cc (unspec_cmla)
28072 (unspec_fcmla, unspec_cond_fcmla, expand_mla_mls_lane): New functions.
28073 (svasrd_impl): Delete.
28074 (svcadd_impl::expand): Handle integer operations too.
28075 (svcmla_impl::expand, svcmla_lane::expand): Likewise, using the
28076 new functions to derive the unspec numbers.
28077 (svmla_svmls_lane_impl): Replace with...
28078 (svmla_lane_impl, svmls_lane_impl): ...these new classes. Handle
28079 integer operations too.
28080 (svwhile_impl): Rename to...
28081 (svwhilelx_impl): ...this and inherit from while_comparison.
28082 (svasrd): Use unspec_based_function.
28083 (svmla_lane): Use svmla_lane_impl.
28084 (svmls_lane): Use svmls_lane_impl.
28085 (svrecpe, svrsqrte): Handle unsigned integer operations too.
28086 (svwhilele, svwhilelt): Use svwhilelx_impl.
28087 * config/aarch64/aarch64-sve-builtins-sve2.h: New file.
28088 * config/aarch64/aarch64-sve-builtins-sve2.cc: Likewise.
28089 * config/aarch64/aarch64-sve-builtins-sve2.def: Likewise.
28090 * config/aarch64/aarch64-sve-builtins.def: Include
28091 aarch64-sve-builtins-sve2.def.
28093 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
28095 * config/aarch64/aarch64-protos.h (aarch64_sve_arith_immediate_p)
28096 (aarch64_sve_sqadd_sqsub_immediate_p): Add a machine_mode argument.
28097 * config/aarch64/aarch64.c (aarch64_sve_arith_immediate_p)
28098 (aarch64_sve_sqadd_sqsub_immediate_p): Likewise. Handle scalar
28099 immediates as well as vector ones.
28100 * config/aarch64/predicates.md (aarch64_sve_arith_immediate)
28101 (aarch64_sve_sub_arith_immediate, aarch64_sve_qadd_immediate)
28102 (aarch64_sve_qsub_immediate): Update calls accordingly.
28104 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
28106 * config/aarch64/aarch64-sve2.md: Add banner comments.
28107 (<su>mulh<r>s<mode>3): Move further up file.
28108 (<su>mull<bt><Vwide>, <r>shrnb<mode>, <r>shrnt<mode>)
28109 (*aarch64_sve2_sra<mode>): Move further down file.
28110 * config/aarch64/t-aarch64 (s-check-sve-md): Check aarch64-sve2.md too.
28112 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
28114 * config/aarch64/iterators.md (SVE_WHILE): Add UNSPEC_WHILERW
28115 and UNSPEC_WHILEWR.
28116 (while_optab_cmp): Handle them.
28117 * config/aarch64/aarch64-sve.md
28118 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): Make public
28119 and add a "@" marker.
28120 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): Use it
28121 instead of gen_aarch64_sve2_while_ptest.
28122 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): Delete.
28124 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
28126 * config/aarch64/aarch64.md (UNSPEC_WHILE_LE): Rename to...
28127 (UNSPEC_WHILELE): ...this.
28128 (UNSPEC_WHILE_LO): Rename to...
28129 (UNSPEC_WHILELO): ...this.
28130 (UNSPEC_WHILE_LS): Rename to...
28131 (UNSPEC_WHILELS): ...this.
28132 (UNSPEC_WHILE_LT): Rename to...
28133 (UNSPEC_WHILELT): ...this.
28134 * config/aarch64/iterators.md (SVE_WHILE): Update accordingly.
28135 (cmp_op, while_optab_cmp): Likewise.
28136 * config/aarch64/aarch64.c (aarch64_sve_move_pred_via_while): Likewise.
28137 * config/aarch64/aarch64-sve-builtins-base.cc (svwhilele): Likewise.
28138 (svwhilelt): Likewise.
28140 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
28142 * config/aarch64/aarch64-sve-builtins-shapes.h (unary_count): Delete.
28143 (unary_to_uint): Define.
28144 * config/aarch64/aarch64-sve-builtins-shapes.cc (unary_count_def)
28145 (unary_count): Rename to...
28146 (unary_to_uint_def, unary_to_uint): ...this.
28147 * config/aarch64/aarch64-sve-builtins-base.def: Update accordingly.
28149 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
28151 * config/aarch64/aarch64-sve-builtins-functions.h
28152 (code_for_mode_function): New class.
28153 (CODE_FOR_MODE0, QUIET_CODE_FOR_MODE0): New macros.
28154 * config/aarch64/aarch64-sve-builtins-base.cc (svcompact_impl)
28155 (svext_impl, svmul_lane_impl, svsplice_impl, svtmad_impl): Delete.
28156 (svcompact, svext, svsplice): Use QUIET_CODE_FOR_MODE0.
28157 (svmul_lane, svtmad): Use CODE_FOR_MODE0.
28159 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
28161 * config/aarch64/iterators.md (addsub): New code attribute.
28162 * config/aarch64/aarch64-simd.md (aarch64_<su_optab><optab><mode>):
28164 (aarch64_<su_optab>q<addsub><mode>): ...this, making the same change
28165 in the asm string and attributes. Fix indentation.
28166 * config/aarch64/aarch64-sve.md (@aarch64_<su_optab><optab><mode>):
28168 (@aarch64_sve_<optab><mode>): ...this.
28169 * config/aarch64/aarch64-sve-builtins.h
28170 (function_expander::expand_signed_unpred_op): Delete.
28171 * config/aarch64/aarch64-sve-builtins.cc
28172 (function_expander::expand_signed_unpred_op): Likewise.
28173 (function_expander::map_to_rtx_codes): If the optab isn't defined,
28174 try using code_for_aarch64_sve instead.
28175 * config/aarch64/aarch64-sve-builtins-base.cc (svqadd_impl): Delete.
28176 (svqsub_impl): Likewise.
28177 (svqadd, svqsub): Use rtx_code_function instead.
28179 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
28181 * config/aarch64/iterators.md (SRHSUB, URHSUB): Delete.
28182 (HADDSUB, sur, addsub): Remove them.
28184 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
28186 * tree-nrv.c (pass_return_slot::execute): Handle all internal
28187 functions the same way, rather than singling out those that
28188 aren't mapped directly to optabs.
28190 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
28192 * target.def (compatible_vector_types_p): New target hook.
28193 * hooks.h (hook_bool_const_tree_const_tree_true): Declare.
28194 * hooks.c (hook_bool_const_tree_const_tree_true): New function.
28195 * doc/tm.texi.in (TARGET_COMPATIBLE_VECTOR_TYPES_P): New hook.
28196 * doc/tm.texi: Regenerate.
28197 * gimple-expr.c: Include target.h.
28198 (useless_type_conversion_p): Use targetm.compatible_vector_types_p.
28199 * config/aarch64/aarch64.c (aarch64_compatible_vector_types_p): New
28201 (TARGET_COMPATIBLE_VECTOR_TYPES_P): Define.
28202 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
28203 Use the original predicate if it already has a suitable type.
28205 2020-01-09 Martin Jambor <mjambor@suse.cz>
28207 * cgraph.h (cgraph_edge): Make remove, set_call_stmt, make_direct,
28208 resolve_speculation and redirect_call_stmt_to_callee static. Change
28209 return type of set_call_stmt to cgraph_edge *.
28210 * auto-profile.c (afdo_indirect_call): Adjust call to
28211 redirect_call_stmt_to_callee.
28212 * cgraph.c (cgraph_edge::set_call_stmt): Make return cgraph-edge *,
28213 make the this pointer explicit, adjust self-recursive calls and the
28214 call top make_direct. Return the resulting edge.
28215 (cgraph_edge::remove): Make this pointer explicit.
28216 (cgraph_edge::resolve_speculation): Likewise, adjust call to remove.
28217 (cgraph_edge::make_direct): Likewise, adjust call to
28218 resolve_speculation.
28219 (cgraph_edge::redirect_call_stmt_to_callee): Likewise, also adjust
28220 call to set_call_stmt.
28221 (cgraph_update_edges_for_call_stmt_node): Update call to
28222 set_call_stmt and remove.
28223 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
28224 Renamed edge to master_edge. Adjusted calls to set_call_stmt.
28225 (cgraph_node::create_edge_including_clones): Moved "first" definition
28226 of edge to the block where it was used. Adjusted calls to
28228 (cgraph_node::remove_symbol_and_inline_clones): Adjust call to
28229 cgraph_edge::remove.
28230 * cgraphunit.c (walk_polymorphic_call_targets): Adjusted calls to
28231 make_direct and redirect_call_stmt_to_callee.
28232 * ipa-fnsummary.c (redirect_to_unreachable): Adjust calls to
28233 resolve_speculation and make_direct.
28234 * ipa-inline-transform.c (inline_transform): Adjust call to
28235 redirect_call_stmt_to_callee.
28236 (check_speculations_1):: Adjust call to resolve_speculation.
28237 * ipa-inline.c (resolve_noninline_speculation): Adjust call to
28238 resolve-speculation.
28239 (inline_small_functions): Adjust call to resolve_speculation.
28240 (ipa_inline): Likewise.
28241 * ipa-prop.c (ipa_make_edge_direct_to_target): Adjust call to
28243 * ipa-visibility.c (function_and_variable_visibility): Make iteration
28244 safe with regards to edge removal, adjust calls to
28245 redirect_call_stmt_to_callee.
28246 * ipa.c (walk_polymorphic_call_targets): Adjust calls to make_direct
28247 and redirect_call_stmt_to_callee.
28248 * multiple_target.c (create_dispatcher_calls): Adjust call to
28249 redirect_call_stmt_to_callee
28250 (redirect_to_specific_clone): Likewise.
28251 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
28252 Adjust calls to cgraph_edge::remove.
28253 * tree-inline.c (copy_bb): Adjust call to set_call_stmt.
28254 (redirect_all_calls): Adjust call to redirect_call_stmt_to_callee.
28255 (expand_call_inline): Adjust call to cgraph_edge::remove.
28257 2020-01-09 Martin Liska <mliska@suse.cz>
28259 * params.opt: Set Optimization for
28260 param_max_speculative_devirt_maydefs.
28262 2020-01-09 Martin Sebor <msebor@redhat.com>
28264 PR middle-end/93200
28266 * builtins.c (compute_objsize): Avoid handling MEM_REFs of vector type.
28268 2020-01-09 Martin Liska <mliska@suse.cz>
28270 * auto-profile.c (auto_profile): Use opt_for_fn
28272 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
28273 (propagate_vals_across_arith_jfunc): Likewise.
28274 (hint_time_bonus): Likewise.
28275 (incorporate_penalties): Likewise.
28276 (good_cloning_opportunity_p): Likewise.
28277 (perform_estimation_of_a_value): Likewise.
28278 (estimate_local_effects): Likewise.
28279 (ipcp_propagate_stage): Likewise.
28280 * ipa-fnsummary.c (decompose_param_expr): Likewise.
28281 (set_switch_stmt_execution_predicate): Likewise.
28282 (analyze_function_body): Likewise.
28283 * ipa-inline-analysis.c (offline_size): Likewise.
28284 * ipa-inline.c (early_inliner): Likewise.
28285 * ipa-prop.c (ipa_analyze_node): Likewise.
28286 (ipcp_transform_function): Likewise.
28287 * ipa-sra.c (process_scan_results): Likewise.
28288 (ipa_sra_summarize_function): Likewise.
28289 * params.opt: Rename ipcp-unit-growth to
28290 ipa-cp-unit-growth. Add Optimization for various
28291 IPA-related parameters.
28293 2020-01-09 Richard Biener <rguenther@suse.de>
28295 PR middle-end/93054
28296 * gimplify.c (gimplify_expr): Deal with NOP definitions.
28298 2020-01-09 Richard Biener <rguenther@suse.de>
28300 PR tree-optimization/93040
28301 * gimple-ssa-store-merging.c (find_bswap_or_nop): Raise search limit.
28303 2020-01-09 Georg-Johann Lay <avr@gjlay.de>
28305 * common/config/avr/avr-common.c (avr_option_optimization_table)
28306 [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
28308 2020-01-09 Martin Liska <mliska@suse.cz>
28310 * cgraphclones.c (symbol_table::materialize_all_clones):
28311 Use cgraph_node::dump_name.
28313 2020-01-09 Jakub Jelinek <jakub@redhat.com>
28315 PR inline-asm/93202
28316 * config/riscv/riscv.c (riscv_print_operand_reloc): Use
28317 output_operand_lossage instead of gcc_unreachable.
28318 * doc/md.texi (riscv f constraint): Fix typo.
28321 * config/i386/i386.md (subv<mode>4): Use SWIDWI iterator instead of
28322 SWI. Use <general_hilo_operand> instead of <general_operand>. Use
28323 CONST_SCALAR_INT_P instead of CONST_INT_P.
28324 (*subv<mode>4_1): Rename to ...
28325 (subv<mode>4_1): ... this.
28326 (*subv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
28327 define_insn_and_split patterns.
28328 (*subv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
28331 2020-01-08 David Malcolm <dmalcolm@redhat.com>
28333 * vec.c (class selftest::count_dtor): New class.
28334 (selftest::test_auto_delete_vec): New test.
28335 (selftest::vec_c_tests): Call it.
28336 * vec.h (class auto_delete_vec): New class template.
28337 (auto_delete_vec<T>::~auto_delete_vec): New dtor.
28339 2020-01-08 David Malcolm <dmalcolm@redhat.com>
28341 * sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
28343 2020-01-08 Jim Wilson <jimw@sifive.com>
28345 * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out
28346 use of TLS_MODEL_LOCAL_EXEC when not pic.
28348 2020-01-08 David Malcolm <dmalcolm@redhat.com>
28350 * hash-map-tests.c (selftest::test_map_of_strings_to_int): Fix
28353 2020-01-08 Jakub Jelinek <jakub@redhat.com>
28356 * config/i386/i386.md (*stack_protect_set_2_<mode> peephole2,
28357 *stack_protect_set_3 peephole2): Also check that the second
28358 insns source is general_operand.
28361 * config/i386/i386.md (addcarry<mode>_0): Use nonimmediate_operand
28362 predicate for output operand instead of register_operand.
28363 (addcarry<mode>, addcarry<mode>_1): Likewise. Add alternative with
28364 memory destination and non-memory operands[2].
28366 2020-01-08 Martin Liska <mliska@suse.cz>
28368 * cgraph.c (cgraph_node::dump): Use ::dump_name or
28369 ::dump_asm_name instead of (::name or ::asm_name).
28370 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
28371 * cgraphunit.c (walk_polymorphic_call_targets): Likewise.
28372 (analyze_functions): Likewise.
28373 (expand_all_functions): Likewise.
28374 * ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
28375 (propagate_bits_across_jump_function): Likewise.
28376 (dump_profile_updates): Likewise.
28377 (ipcp_store_bits_results): Likewise.
28378 (ipcp_store_vr_results): Likewise.
28379 * ipa-devirt.c (dump_targets): Likewise.
28380 * ipa-fnsummary.c (analyze_function_body): Likewise.
28381 * ipa-hsa.c (check_warn_node_versionable): Likewise.
28382 (process_hsa_functions): Likewise.
28383 * ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
28384 (set_alias_uids): Likewise.
28385 * ipa-inline-transform.c (save_inline_function_body): Likewise.
28386 * ipa-inline.c (recursive_inlining): Likewise.
28387 (inline_to_all_callers_1): Likewise.
28388 (ipa_inline): Likewise.
28389 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
28390 (ipa_propagate_frequency): Likewise.
28391 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
28392 (remove_described_reference): Likewise.
28393 * ipa-pure-const.c (worse_state): Likewise.
28394 (check_retval_uses): Likewise.
28395 (analyze_function): Likewise.
28396 (propagate_pure_const): Likewise.
28397 (propagate_nothrow): Likewise.
28398 (dump_malloc_lattice): Likewise.
28399 (propagate_malloc): Likewise.
28400 (pass_local_pure_const::execute): Likewise.
28401 * ipa-visibility.c (optimize_weakref): Likewise.
28402 (function_and_variable_visibility): Likewise.
28403 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
28404 (ipa_discover_variable_flags): Likewise.
28405 * lto-streamer-out.c (output_function): Likewise.
28406 (output_constructor): Likewise.
28407 * tree-inline.c (copy_bb): Likewise.
28408 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
28409 * varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
28411 2020-01-08 Richard Biener <rguenther@suse.de>
28413 PR middle-end/93199
28414 * tree-eh.c (sink_clobbers): Update virtual operands for
28415 the first and last stmt only. Add a dry-run capability.
28416 (pass_lower_eh_dispatch::execute): Perform clobber sinking
28417 after CFG manipulations and in RPO order to catch all
28418 secondary opportunities reliably.
28420 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
28423 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
28425 2019-01-08 Richard Biener <rguenther@suse.de>
28427 PR middle-end/93199
28428 * gimple-fold.c (rewrite_to_defined_overflow): Mark stmt modified.
28429 * tree-ssa-loop-im.c (move_computations_worker): Properly adjust
28430 virtual operand, also updating SSA use.
28431 * gimple-loop-interchange.cc (loop_cand::undo_simple_reduction):
28432 Update stmt after resetting virtual operand.
28433 (tree_loop_interchange::move_code_to_inner_loop): Likewise.
28434 * gimple-iterator.c (gsi_remove): When not removing the stmt
28435 permanently do not delink immediate uses or mark the stmt modified.
28437 2020-01-08 Martin Liska <mliska@suse.cz>
28439 * ipa-fnsummary.c (dump_ipa_call_summary): Use symtab_node::dump_name.
28440 (ipa_call_context::estimate_size_and_time): Likewise.
28441 (inline_analyze_function): Likewise.
28443 2020-01-08 Martin Liska <mliska@suse.cz>
28445 * cgraph.c (cgraph_node::dump): Use systematically
28448 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
28450 Add -nodevicespecs option for avr.
28453 * config/avr/avr.opt (-nodevicespecs): New driver option.
28454 * config/avr/driver-avr.c (avr_devicespecs_file): Only issue
28455 "-specs=device-specs/..." if that option is not set.
28456 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
28458 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
28460 Implement 64-bit double functions for avr.
28463 * config.gcc (tm_defines) [target=avr]: Support --with-libf7,
28464 --with-double-comparison.
28465 * doc/install.texi: Document them.
28466 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
28467 <WITH_LIBF7_LIBGCC, WITH_LIBF7_MATH, WITH_LIBF7_MATH_SYMBOLS>
28468 <WITH_DOUBLE_COMPARISON>: New built-in defines.
28469 * doc/invoke.texi (AVR Built-in Macros): Document them.
28470 * config/avr/avr-protos.h (avr_float_lib_compare_returns_bool): New.
28471 * config/avr/avr.c (avr_float_lib_compare_returns_bool): New function.
28472 * config/avr/avr.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): New macro.
28474 2020-01-08 Richard Earnshaw <rearnsha@arm.com>
28477 * config/arm/t-multilib (MULTILIB_MATCHES): Add rules to match
28478 armv7-a{+mp,+sec,+mp+sec} to appropriate armv7 multilib variants
28479 when only building rm-profile multilibs.
28481 2020-01-08 Feng Xue <fxue@os.amperecomputing.com>
28484 * ipa-cp.c (self_recursively_generated_p): Find matched aggregate
28485 lattice for a value to check.
28486 (propagate_vals_across_arith_jfunc): Add an assertion to ensure
28487 finite propagation in self-recursive scc.
28489 2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com>
28491 * ipa-inline.c (caller_growth_limits): Restore the AND.
28493 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
28495 * config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator.
28496 (VEC_ALLREG_ALT): New iterator.
28497 (VEC_ALLREG_INT_MODE): New iterator.
28498 (VCMP_MODE): New iterator.
28499 (VCMP_MODE_INT): New iterator.
28500 (vec_cmpu<mode>di): Use VCMP_MODE_INT.
28501 (vec_cmp<u>v64qidi): New define_expand.
28502 (vec_cmp<mode>di_exec): Use VCMP_MODE.
28503 (vec_cmpu<mode>di_exec): New define_expand.
28504 (vec_cmp<u>v64qidi_exec): New define_expand.
28505 (vec_cmp<mode>di_dup): Use VCMP_MODE.
28506 (vec_cmp<mode>di_dup_exec): Use VCMP_MODE.
28507 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>): Rename ...
28508 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): ... to this.
28509 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Rename ...
28510 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): ... to this.
28511 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Rename ...
28512 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): ... to this.
28513 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Rename ...
28514 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): ... to
28516 * config/gcn/gcn.c (print_operand): Fix 8 and 16 bit suffixes.
28517 * config/gcn/gcn.md (expander): Add sign_extend and zero_extend.
28519 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
28521 * config/gcn/constraints.md (DA): Update description and match.
28523 (Db): New constraint.
28524 * config/gcn/gcn-protos.h (gcn_inline_constant64_p): Add second
28526 * config/gcn/gcn.c (gcn_inline_constant64_p): Add 'mixed' parameter.
28527 Implement 'Db' mixed immediate type.
28528 * config/gcn/gcn-valu.md (addcv64si3<exec_vcc>): Rework constraints.
28529 (addcv64si3_dup<exec_vcc>): Delete.
28530 (subcv64si3<exec_vcc>): Rework constraints.
28531 (addv64di3): Rework constraints.
28532 (addv64di3_exec): Rework constraints.
28533 (subv64di3): Rework constraints.
28534 (addv64di3_dup): Delete.
28535 (addv64di3_dup_exec): Delete.
28536 (addv64di3_zext): Rework constraints.
28537 (addv64di3_zext_exec): Rework constraints.
28538 (addv64di3_zext_dup): Rework constraints.
28539 (addv64di3_zext_dup_exec): Rework constraints.
28540 (addv64di3_zext_dup2): Rework constraints.
28541 (addv64di3_zext_dup2_exec): Rework constraints.
28542 (addv64di3_sext_dup2): Rework constraints.
28543 (addv64di3_sext_dup2_exec): Rework constraints.
28545 2020-01-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
28547 * doc/sourcebuild.texi (arm_little_endian, arm_nothumb): Documented
28548 existing target checks.
28550 2020-01-07 Richard Biener <rguenther@suse.de>
28552 * doc/install.texi: Bump minimal supported MPC version.
28554 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
28556 * langhooks-def.h (lhd_simulate_enum_decl): Declare.
28557 (LANG_HOOKS_SIMULATE_ENUM_DECL): Use it.
28558 * langhooks.c: Include stor-layout.h.
28559 (lhd_simulate_enum_decl): New function.
28560 * config/aarch64/aarch64-sve-builtins.cc (init_builtins): Call
28561 handle_arm_sve_h for the LTO frontend.
28562 (register_vector_type): Cope with null returns from pushdecl.
28564 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
28566 * config/aarch64/aarch64-protos.h (aarch64_sve::svbool_type_p)
28567 (aarch64_sve::nvectors_if_data_type): Replace with...
28568 (aarch64_sve::builtin_type_p): ...this.
28569 * config/aarch64/aarch64-sve-builtins.cc: Include attribs.h.
28570 (find_vector_type): Delete.
28571 (add_sve_type_attribute): New function.
28572 (lookup_sve_type_attribute): Likewise.
28573 (register_builtin_types): Add an "SVE type" attribute to each type.
28574 (register_tuple_type): Likewise.
28575 (svbool_type_p, nvectors_if_data_type): Delete.
28576 (mangle_builtin_type): Use lookup_sve_type_attribute.
28577 (builtin_type_p): Likewise. Add an overload that returns the
28578 number of constituent vector and predicate registers.
28579 * config/aarch64/aarch64.c (aarch64_sve_argument_p): Delete.
28580 (aarch64_returns_value_in_sve_regs_p): Use aarch64_sve::builtin_type_p
28581 instead of aarch64_sve_argument_p.
28582 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
28583 (aarch64_pass_by_reference): Likewise.
28584 (aarch64_function_value_1): Likewise.
28585 (aarch64_return_in_memory): Likewise.
28586 (aarch64_layout_arg): Likewise.
28588 2020-01-07 Jakub Jelinek <jakub@redhat.com>
28590 PR tree-optimization/93156
28591 * tree-ssa-ccp.c (bit_value_binop): For x * x note that the second
28592 least significant bit is always clear.
28594 PR tree-optimization/93118
28595 * match.pd ((x >> c) << c -> x & (-1<<c)): Add nop_convert?. Add new
28596 simplifier with two intermediate conversions.
28598 2020-01-07 Martin Liska <mliska@suse.cz>
28600 * params.opt: Add Optimization for various parameters.
28602 2020-01-07 Martin Liska <mliska@suse.cz>
28605 * doc/extend.texi: Explain cloning for target_clone
28608 2020-01-07 Martin Liska <mliska@suse.cz>
28610 PR tree-optimization/92860
28611 * common.opt: Make in Optimization option
28612 as it is affected by -O0, which is an Optimization
28614 * tree-inline.c (tree_inlinable_function_p):
28615 Use opt_for_fn for warn_inline.
28616 (expand_call_inline): Likewise.
28618 2020-01-07 Martin Liska <mliska@suse.cz>
28620 PR tree-optimization/92860
28621 * common.opt: Make flag_ree as optimization
28624 2020-01-07 Martin Liska <mliska@suse.cz>
28626 PR optimization/92860
28627 * params.opt: Mark param_min_crossjump_insns with Optimization
28630 2020-01-07 Luo Xiong Hu <luoxhu@linux.ibm.com>
28632 * ipa-inline-analysis.c (estimate_growth): Fix typo.
28633 * ipa-inline.c (caller_growth_limits): Use OR instead of AND.
28635 2020-01-06 Michael Meissner <meissner@linux.ibm.com>
28637 * config/rs6000/rs6000.c (hard_reg_and_mode_to_addr_mask): New
28638 helper function to return the valid addressing formats for a given
28639 hard register and mode.
28640 (rs6000_adjust_vec_address): Call hard_reg_and_mode_to_addr_mask.
28642 * config/rs6000/constraints.md (Q constraint): Update
28644 * doc/md.texi (RS/6000 constraints): Update 'Q' cosntraint
28647 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
28648 Use 'Q' for doing vector extract from memory.
28649 (vsx_extract_v4sf_var): Use 'Q' for doing vector extract from
28651 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Use 'Q' for
28652 doing vector extract from memory.
28653 (vsx_extract_<mode>_<VS_scalar>mode_var): Use 'Q' for doing vector
28654 extract from memory.
28656 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add support
28657 for the offset being 34-bits when -mcpu=future is used.
28659 2020-01-06 John David Anglin <danglin@gcc.gnu.org>
28661 * config/pa/pa.md: Revert change to use ordered_comparison_operator
28662 instead of cmpib_comparison_operator in cmpib patterns.
28663 * config/pa/predicates.md (cmpib_comparison_operator): Revert removal
28664 of cmpib_comparison_operator. Revise comment.
28666 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
28668 * tree-vect-slp.c (vect_build_slp_tree_1): Require all shifts
28669 in an IFN_DIV_POW2 node to be equal.
28671 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
28673 * tree-vect-stmts.c (vect_check_load_store_mask): Rename to...
28674 (vect_check_scalar_mask): ...this.
28675 (vectorizable_store, vectorizable_load): Update call accordingly.
28676 (vectorizable_call): Use vect_check_scalar_mask to check the mask
28677 argument in calls to conditional internal functions.
28679 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
28681 * config/gcn/gcn-valu.md (subv64di3): Use separate alternatives for
28682 '0' matching inputs.
28683 (subv64di3_exec): Likewise.
28685 2020-01-06 Bryan Stenson <bryan@siliconvortex.com>
28687 * config/mips/mips.c (vr4130_align_insns): Fix typo.
28688 * doc/md.texi (movstr): Likewise.
28690 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
28692 * config/gcn/gcn-valu.md (vec_extract<mode><scalar_mode>): Add early
28695 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
28697 * config/aarch64/t-aarch64 ($(srcdir)/config/aarch64/aarch64-tune.md):
28699 (s-aarch64-tune-md): ...this new stamp file. Pipe the new contents
28700 to a temporary file and use move-if-change to update the real
28701 file where necessary.
28703 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
28705 * config/aarch64/aarch64-sve.md (@aarch64_sel_dup<mode>): Use Upl
28706 rather than Upa for CPY /M.
28708 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
28710 * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
28713 2020-01-06 Martin Liska <mliska@suse.cz>
28715 PR tree-optimization/92860
28716 * params.opt: Mark param_max_combine_insns with Optimization
28719 2020-01-05 Jakub Jelinek <jakub@redhat.com>
28722 * config/i386/i386.md (SWIDWI): New mode iterator.
28723 (DWI, dwi): Add TImode variants.
28724 (addv<mode>4): Use SWIDWI iterator instead of SWI. Use
28725 <general_hilo_operand> instead of <general_operand>. Use
28726 CONST_SCALAR_INT_P instead of CONST_INT_P.
28727 (*addv<mode>4_1): Rename to ...
28728 (addv<mode>4_1): ... this.
28729 (QWI): New mode attribute.
28730 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
28731 define_insn_and_split patterns.
28732 (*addv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
28734 (uaddv<mode>4): Use SWIDWI iterator instead of SWI. Use
28735 <general_hilo_operand> instead of <general_operand>.
28736 (*addcarry<mode>_1): New define_insn.
28737 (*add<dwi>3_doubleword_cc_overflow_1): New define_insn_and_split.
28739 2020-01-03 Konstantin Kharlamov <Hi-Angel@yandex.ru>
28741 * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm):
28742 Use "call" instead of "set".
28744 2020-01-03 Martin Jambor <mjambor@suse.cz>
28747 * ipa-cp.c (print_all_lattices): Skip functions without info.
28749 2020-01-03 Jakub Jelinek <jakub@redhat.com>
28752 * config/i386/i386-options.c (ix86_simd_clone_adjust): If
28753 TARGET_PREFER_AVX128, use prefer-vector-width=256 for 'c' and 'd'
28754 simd clones. If TARGET_PREFER_AVX256, use prefer-vector-width=512
28755 for 'e' simd clones.
28758 * config/i386/i386.opt (x_prefer_vector_width_type): Remove TargetSave
28760 (mprefer-vector-width=): Add Save.
28761 * config/i386/i386-options.c (ix86_target_string): Add PVW argument, print
28762 -mprefer-vector-width= if non-zero. Fix up -mfpmath= comment.
28763 (ix86_debug_options, ix86_function_specific_print): Adjust
28764 ix86_target_string callers.
28765 (ix86_valid_target_attribute_inner_p): Handle prefer-vector-width=.
28766 (ix86_valid_target_attribute_tree): Likewise.
28767 * config/i386/i386-options.h (ix86_target_string): Add PVW argument.
28768 * config/i386/i386-expand.c (ix86_expand_builtin): Adjust
28769 ix86_target_string caller.
28772 * config/i386/i386.md (abs<mode>2): Use expand_simple_binop instead of
28773 emitting ASHIFTRT, XOR and MINUS by hand. Use gen_int_mode with QImode
28774 instead of gen_int_shift_amount + convert_modes.
28776 PR rtl-optimization/93088
28777 * loop-iv.c (find_single_def_src): Punt after looking through
28778 128 reg copies for regs with single definitions. Move definitions
28781 2020-01-02 Dennis Zhang <dennis.zhang@arm.com>
28783 * config/arm/arm-c.c (arm_cpu_builtins): Define
28784 __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC,
28785 __ARM_FEATURE_BF16_SCALAR_ARITHMETIC, and
28786 __ARM_BF16_FORMAT_ALTERNATIVE when enabled.
28787 * config/arm/arm-cpus.in (armv8_6, i8mm, bf16): New features.
28788 * config/arm/arm-tables.opt: Regenerated.
28789 * config/arm/arm.c (arm_option_reconfigure_globals): Initialize
28790 arm_arch_i8mm and arm_arch_bf16 when enabled.
28791 * config/arm/arm.h (TARGET_I8MM): New macro.
28792 (TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
28793 * config/arm/t-aprofile: Add matching rules for -march=armv8.6-a.
28794 * config/arm/t-arm-elf (all_v8_archs): Add armv8.6-a.
28795 * config/arm/t-multilib: Add matching rules for -march=armv8.6-a.
28796 (v8_6_a_simd_variants): New.
28797 (v8_*_a_simd_variants): Add i8mm and bf16.
28798 * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options.
28800 2020-01-02 Jakub Jelinek <jakub@redhat.com>
28803 * predict.c (compute_function_frequency): Don't call
28804 warn_function_cold on functions that already have cold attribute.
28806 2020-01-01 John David Anglin <danglin@gcc.gnu.org>
28809 * config/pa/pa.c (pa_elf_select_rtx_section): New. Put references to
28810 COMDAT group function labels in .data.rel.ro.local section.
28811 * config/pa/pa32-linux.h (TARGET_ASM_SELECT_RTX_SECTION): Define.
28814 * config/pa/pa.md (scc): Use ordered_comparison_operator instead of
28815 comparison_operator in B and S integer comparisons. Likewise, use
28816 ordered_comparison_operator instead of cmpib_comparison_operator in
28818 * config/pa/predicates.md (cmpib_comparison_operator): Remove.
28820 2020-01-01 Jakub Jelinek <jakub@redhat.com>
28822 Update copyright years.
28824 * gcc.c (process_command): Update copyright notice dates.
28825 * gcov-dump.c (print_version): Ditto.
28826 * gcov.c (print_version): Ditto.
28827 * gcov-tool.c (print_version): Ditto.
28828 * gengtype.c (create_file): Ditto.
28829 * doc/cpp.texi: Bump @copying's copyright year.
28830 * doc/cppinternals.texi: Ditto.
28831 * doc/gcc.texi: Ditto.
28832 * doc/gccint.texi: Ditto.
28833 * doc/gcov.texi: Ditto.
28834 * doc/install.texi: Ditto.
28835 * doc/invoke.texi: Ditto.
28837 2020-01-01 Jan Hubicka <hubicka@ucw.cz>
28839 * ipa.c (walk_polymorphic_call_targets): Fix updating of overall
28842 2020-01-01 Jakub Jelinek <jakub@redhat.com>
28844 PR tree-optimization/93098
28845 * match.pd (popcount): For shift amounts, use integer_onep
28846 or wi::to_widest () == cst instead of tree_to_uhwi () == cst
28847 tests. Make sure that precision is power of two larger than or equal
28848 to 16. Ensure shift is never negative. Use HOST_WIDE_INT_UC macro
28849 instead of ULL suffixed constants. Formatting fixes.
28851 Copyright (C) 2020 Free Software Foundation, Inc.
28853 Copying and distribution of this file, with or without modification,
28854 are permitted in any medium without royalty provided the copyright
28855 notice and this notice are preserved.