1 2020-11-09 Claudiu Zissulescu <claziss@synopsys.com>
3 * config/arc/arc.c (arc_split_move): Recognize vadd2 instructions.
4 * config/arc/arc.md (movdi_insn): Update pattern to use vadd2
6 (movdf_insn): Likewise.
7 (maddhisi4): New pattern.
8 (umaddhisi4): Likewise.
9 * config/arc/simdext.md (mov<mode>_int): Update pattern to use
11 (sdot_prodv4hi): New pattern.
12 (udot_prodv4hi): Likewise.
13 (arc_vec_<V_US>mac_hi_v4hi): Update/renamed to
14 arc_vec_<V_US>mac_v2hiv2si.
15 (arc_vec_<V_US>mac_v2hiv2si_zero): New pattern.
16 * config/arc/constraints.md (Ral): Accumulator register
19 2020-11-09 Aldy Hernandez <aldyh@redhat.com>
21 * function-tests.c (test_ranges): Call range_op_tests.
22 * range-op.cc (build_range3): Move to value-range.cc.
24 (int_range_max_tests): Same.
25 (multi_precision_range_tests): Same.
27 (operator_tests): Split up...
28 (range_op_tests): Split up...
29 (range_op_cast_tests): ...here.
30 (range_op_lshift_tests): ...here.
31 (range_op_rshift_tests): ...here.
32 (range_op_bitwise_and_tests): ...here.
33 * selftest.h (range_op_tests): New.
34 * value-range.cc (build_range3): New.
35 (range_tests_irange3): New.
36 (range_tests_int_range_max): New.
37 (range_tests_legacy): New.
38 (range_tests_misc): New.
41 2020-11-09 Richard Biener <rguenther@suse.de>
43 PR tree-optimization/97761
44 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Remove
45 premature end of DFS walk.
47 2020-11-09 Aldy Hernandez <aldyh@redhat.com>
49 * value-range.cc (irange::swap_out_of_order_endpoints): Rewrite
51 (irange::set): Cleanup redundant manipulations.
52 * value-range.h (irange::normalize_min_max): Modify object
53 in-place instead of modifying arguments.
55 2020-11-09 Andrea Corallo <andrea.corallo@arm.com>
57 * config/aarch64/aarch64-builtins.c
58 (aarch64_expand_fcmla_builtin): Do not alter force_reg returned
61 2020-11-09 Richard Biener <rguenther@suse.de>
63 PR tree-optimization/97753
64 * tree-vect-loop.c (vectorizable_induction): Fill vec_steps
65 when CSEing inside the group.
67 2020-11-09 Richard Biener <rguenther@suse.de>
69 PR tree-optimization/97746
70 * tree-vect-patterns.c (vect_determine_precisions): First walk PHIs.
72 2020-11-09 Richard Biener <rguenther@suse.de>
74 * tree-ssa-pre.c (get_representative_for): CSE VN_INFO calls.
75 (create_expression_by_pieces): Likewise.
76 (insert_into_preds_of_block): Likewsie.
77 (do_pre_regular_insertion): Likewsie.
78 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_insert):
80 (eliminate_dom_walker::eliminate_stmt): Likewise.
82 2020-11-09 Richard Biener <rguenther@suse.de>
84 PR tree-optimization/97765
85 * tree-ssa-pre.c (bb_bitmap_sets::phi_translate_table): Add.
86 (PHI_TRANS_TABLE): New macro.
87 (phi_translate_table): Remove.
88 (expr_pred_trans_d::pred): Remove.
89 (expr_pred_trans_d::hash): Simplify.
90 (expr_pred_trans_d::equal): Likewise.
91 (phi_trans_add): Adjust.
92 (phi_translate): Likewise. Remove hash-table expansion
93 detection and optimization.
94 (phi_translate_set): Allocate PHI_TRANS_TABLE here.
96 (fini_pre): Free PHI_TRANS_TABLE.
98 2020-11-09 Lili Cui <lili.cui@intel.com>
101 * config/i386/i386.h:
102 (PTA_BROADWELL): Delete PTA_PRFCHW.
103 (PTA_SILVERMONT): Add PTA_PRFCHW.
104 (PTA_KNL): Add PTA_PREFETCHWT1.
105 (PTA_TREMONT): Add PTA_MOVDIRI, PTA_MOVDIR64B, PTA_CLDEMOTE and PTA_WAITPKG.
106 * doc/invoke.texi: Delete PREFETCHW for broadwell, skylake, knl, knm,
107 skylake-avx512, cannonlake, icelake-client, icelake-server, cascadelake,
108 cooperlake, tigerlake and sapphirerapids.
109 Add PREFETCHW for silvermont, goldmont, goldmont-plus and tremont.
110 Add XSAVEC and XSAVES for goldmont, goldmont-plus and tremont.
111 Add MOVDIRI, MOVDIR64B, CLDEMOTE and WAITPKG for tremont.
112 Add KEYLOCKER and HREST for alderlake.
113 Add AMX-BF16, AMX-TILE, AMX-INT8 and UINTR for sapphirerapids.
114 Add KEYLOCKER for tigerlake.
116 2020-11-09 Kewen Lin <linkw@linux.ibm.com>
118 PR rtl-optimization/97705
119 * ira.c (ira): Refactor some regstat free/init/compute invocation
120 into lambda function regstat_recompute_for_max_regno, and call it
121 when max_regno increases as remove_scratches succeeds.
123 2020-11-08 David Edelsohn <dje.gcc@gmail.com>
125 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Change
126 DECL_IS_BUILTIN -> DECL_IS_UNDECLARED_BUILTIN.
128 2020-11-07 Martin Uecker <muecker@gwdg.de>
130 * doc/extend.texi: Document mixing labels and code.
131 * doc/invoke.texi: Likewise.
133 2020-11-06 Segher Boessenkool <segher@kernel.crashing.org>
135 * config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't abuse
137 (@tablejump<mode>_nospec): Ditto.
139 2020-11-06 Peter Bergner <bergner@linux.ibm.com>
141 * config/rs6000/rs6000.h (BIGGEST_ALIGNMENT): Revert previous commit
142 so as not to break the ABI.
143 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Set the ABI
144 mandated alignment for __vector_pair and __vector_quad types.
146 2020-11-06 Jeff Law <law@torsion.usersys.redhat.com>
149 * config/i386/i386.md (simple_return): Also check
150 for ms_hook_prologue function attribute.
151 * config/i386/i386.c (ix86_can_use_return_insn_p):
152 Also check for ms_hook_prologue function attribute.
153 * config/i386/i386-protos.h (ix86_function_ms_hook_prologue): Declare.
155 2020-11-06 Segher Boessenkool <segher@kernel.crashing.org>
158 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
159 TARGET_POWERPC64 instead of TARGET_64BIT.
161 2020-11-06 Joseph Myers <joseph@codesourcery.com>
163 * builtins.def (BUILT_IN_NANSD32, BUILT_IN_NANSD64)
164 (BUILT_IN_NANSD128): New built-in functions.
165 * fold-const-call.c (fold_const_call): Handle the new built-in
167 * doc/extend.texi (__builtin_nansd32, __builtin_nansd64)
168 (__builtin_nansd128): Document.
169 * doc/sourcebuild.texi (Effective-Target Keywords): Document
172 2020-11-06 Bin Cheng <bin.cheng@linux.alibaba.com>
174 * tree-ssa-uninit.c (find_var_cmp_const): New function.
175 (use_pred_not_overlap_with_undef_path_pred): Call above.
177 2020-11-06 Iain Sandoe <iain@sandoe.co.uk>
179 * config/darwin-c.c: Allow for Darwin20 to correspond to macOS 11.
180 * config/darwin-driver.c: Likewise.
182 2020-11-06 Richard Biener <rguenther@suse.de>
184 * tree-ssa-pre.c (expr_pred_trans_d): Modify so elements
185 are embedded rather than allocated. Remove hashval member,
186 make all members integers.
187 (phi_trans_add): Adjust accordingly.
188 (phi_translate): Likewise. Deal with re-allocation
191 2020-11-06 Andrew MacLeod <amacleod@redhat.com>
193 PR tree-optimization/97737
194 PR tree-optimization/97741
195 * gimple-range.cc: (gimple_ranger::range_of_stmt): Intersect newly
196 calculated ranges with the existing known global range.
198 2020-11-06 Darius Galis <darius.galis@cyberthorstudios.com>
200 * config/rx/rx.md (CTRLREG_PC): Add.
201 * config/rx/rx.c (CTRLREG_PC): Add
202 (rx_expand_builtin_mvtc): Add warning: PC register cannot
205 2020-11-06 Nathan Sidwell <nathan@acm.org>
207 * tree.h (DECL_IS_BUILTIN): Rename to ...
208 (DECL_IS_UNDECLARED_BUILTIN): ... here. No need to use SOURCE_LOCUS.
209 * calls.c (maybe_warn_alloc_args_overflow): Adjust for rename.
210 * cfgexpand.c (pass_expand::execute): Likewise.
211 * dwarf2out.c (base_type_die, is_naming_typedef_decl): Likewise.
212 * godump.c (go_decl, go_type_decl): Likewise.
213 * print-tree.c (print_decl_identifier): Likewise.
214 * tree-pretty-print.c (dump_generic_node): Likewise.
215 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Likewise.
216 * xcoffout.c (xcoff_assign_fundamental_type_number): Likewise.
218 2020-11-06 David Candler <david.candler@arm.com>
220 * config/aarch64/aarch64-builtins.c
221 (TYPES_SHIFT2IMM): Add define.
222 (TYPES_SHIFT2IMM_UUSS): Add define.
223 (TYPES_USHIFT2IMM): Add define.
224 * config/aarch64/aarch64-simd.md
225 (aarch64_<sur>q<r>shr<u>n2_n<mode>): Add new insn for upper saturating shift right.
226 * config/aarch64/aarch64-simd-builtins.def: Add intrinsics.
227 * config/aarch64/arm_neon.h:
228 (vqrshrn_high_n_s16): Expand using intrinsic rather than inline asm.
229 (vqrshrn_high_n_s32): Likewise.
230 (vqrshrn_high_n_s64): Likewise.
231 (vqrshrn_high_n_u16): Likewise.
232 (vqrshrn_high_n_u32): Likewise.
233 (vqrshrn_high_n_u64): Likewise.
234 (vqrshrun_high_n_s16): Likewise.
235 (vqrshrun_high_n_s32): Likewise.
236 (vqrshrun_high_n_s64): Likewise.
237 (vqshrn_high_n_s16): Likewise.
238 (vqshrn_high_n_s32): Likewise.
239 (vqshrn_high_n_s64): Likewise.
240 (vqshrn_high_n_u16): Likewise.
241 (vqshrn_high_n_u32): Likewise.
242 (vqshrn_high_n_u64): Likewise.
243 (vqshrun_high_n_s16): Likewise.
244 (vqshrun_high_n_s32): Likewise.
245 (vqshrun_high_n_s64): Likewise.
247 2020-11-06 Richard Sandiford <richard.sandiford@arm.com>
249 * config/aarch64/aarch64-modes.def (VNx2BF, VNx4BF): Adjust nunits
250 and alignment based on the current VG.
251 * config/aarch64/iterators.md (SVE_ALL, SVE_24, SVE_2, SVE_4): Add
252 partial SVE BF modes.
253 (UNSPEC_REVBHW): New unspec.
254 (Vetype, Vesize, Vctype, VEL, Vel, vwcore, V_INT_CONTAINER)
255 (v_int_container, VPRED, vpred): Handle partial SVE BF modes.
256 (container_bits, Vcwtype): New mode attributes.
257 * config/aarch64/aarch64-sve.md
258 (@aarch64_sve_revbhw_<SVE_ALL:mode><PRED_HSD:mode>): New pattern.
259 (@aarch64_sve_dup_lane<mode>): Extended from SVE_FULL to SVE_ALL.
260 (@aarch64_sve_rev<mode>, @aarch64_sve_<perm_insn><mode>): Likewise.
261 (@aarch64_sve_ext<mode>): Likewise.
262 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle
263 E_VNx2BFmode and E_VNx4BFmode.
264 (aarch64_evpc_rev_local): Base the analysis on the container size
265 instead of the element size. Use the new aarch64_sve_revbhw
267 (aarch64_evpc_dup): Handle partial SVE data modes. Use the
268 container size instead of the element size when applying the
269 SVE immediate limit. Fix a previously incorrect bounds check.
270 (aarch64_expand_vec_perm_const_1): Handle partial SVE data modes.
272 2020-11-06 Martin Liska <mliska@suse.cz>
274 * common.opt: Add new -fbit-tests option.
275 * doc/invoke.texi: Document the option.
276 * tree-switch-conversion.c (bit_test_cluster::find_bit_tests):
278 * tree-switch-conversion.h (is_enabled): New function.
280 2020-11-06 Richard Biener <rguenther@suse.de>
282 * tree-ssa-sccvn.h (get_max_constant_value_id): Declare.
283 (get_next_constant_value_id): Likewise.
284 (value_id_constant_p): Inline and simplify.
285 * tree-ssa-sccvn.c (constant_value_ids): Remove.
286 (next_constant_value_id): Add.
287 (get_or_alloc_constant_value_id): Adjust.
288 (value_id_constant_p): Remove definition.
289 (get_max_constant_value_id): Define.
290 (get_next_value_id): Add assert for overflow.
291 (get_next_constant_value_id): Define.
292 (run_rpo_vn): Adjust.
293 (free_rpo_vn): Likewise.
294 (do_rpo_vn): Initialize next_constant_value_id.
295 * tree-ssa-pre.c (constant_value_expressions): New.
296 (add_to_value): Split into constant/non-constant value
297 handling. Avoid exact re-allocation.
298 (vn_valnum_from_value_id): Adjust.
299 (phi_translate_1): Remove spurious exact re-allocation.
300 (bitmap_find_leader): Adjust. Make sure we return
301 a CONSTANT value for a constant value id.
302 (do_pre_regular_insertion): Use 2 auto-elements for avail.
303 (do_pre_partial_partial_insertion): Likewise.
304 (init_pre): Allocate constant_value_expressions.
305 (fini_pre): Release constant_value_expressions.
307 2020-11-06 Richard Biener <rguenther@suse.de>
309 PR tree-optimization/97706
310 * tree-vect-patterns.c (possible_vector_mask_operation_p):
311 PHIs are possible mask operations.
312 (vect_determine_mask_precision): Handle PHIs.
313 (vect_determine_precisions): Walk PHIs in BB analysis.
315 2020-11-06 Richard Biener <rguenther@suse.de>
317 * tree-vect-slp.c (vect_analyze_slp): Pass down the
318 SLP graph entry kind.
319 (vect_analyze_slp_instance): Simplify.
320 (vect_build_slp_instance): Adjust.
321 (vect_slp_check_for_constructors): Perform more
322 eligibility checks here.
324 2020-11-06 Jan Hubicka <jh@suse.cz>
326 * ipa-ref.h (enum ipa_ref_use): Remove GTY marker.
327 (struct ipa_ref): Remove GTY marker; reorder for better packing.
328 (struct ipa_ref_list): Remove GTY marker; turn references
329 nad referring to va_heap, vl_ptr vectors; update accesors.
330 * cgraph.h (symtab_node::iterate_reference): Update.
331 * ipa-ref.c (ipa_ref::remove_reference): Update.
332 * symtab.c (symtab_node::create_reference): Update.
333 (symtab_node::remove_all_references): Update.
334 (symtab_node::resolve_alias): Update.
336 2020-11-06 Jakub Jelinek <jakub@redhat.com>
338 * ipa-modref-tree.h: Fix comment typos.
339 * ipa-modref.c: Likewise.
341 2020-11-06 Andreas Krebbel <krebbel@linux.ibm.com>
343 * config/s390/s390.c (s390_option_override_internal): Remove
344 override of inline params.
346 2020-11-06 Richard Biener <rguenther@suse.de>
348 PR tree-optimization/97706
349 * tree-vect-patterns.c (vect_determine_mask_precision):
350 Remove worklist operation.
351 (vect_determine_stmt_precisions): Do not call
352 vect_determine_mask_precision here.
353 (vect_determine_precisions): Compute mask precision
356 2020-11-06 Richard Biener <rguenther@suse.de>
358 PR tree-optimization/97732
359 * tree-vect-loop.c (vectorizable_induction): Convert the
360 init elements to the vector component type.
361 * gimple-fold.c (gimple_build_vector): Use CONSTANT_CLASS_P
362 rather than TREE_CONSTANT to determine if elements are
363 eligible for VECTOR_CSTs.
365 2020-11-06 Jan Hubicka <jh@suse.cz>
367 * attr-fnspec.h (attr_fnspec::get_str): New accessor
368 * ipa-fnsummary.c (read_ipa_call_summary): Store also parm info
370 * ipa-modref.c (class fnspec_summary): New type.
371 (class fnspec_summaries_t): New type.
372 (modref_summary::modref_summary): Initialize writes_errno.
373 (struct modref_summary_lto): Add writes_errno.
374 (modref_summary_lto::modref_summary_lto): Initialize writes_errno.
375 (modref_summary::dump): Check for NULL pointers.
376 (modref_summary_lto::dump): Dump writes_errno.
377 (collapse_loads): Move up in source file.
378 (collapse_stores): New function.
379 (process_fnspec): Handle also internal calls.
380 (analyze_call): Likewise.
381 (analyze_stmt): Store fnspec string if needed.
382 (analyze_function): Initialize fnspec_sumarries.
383 (modref_summaries_lto::duplicate): Copy writes_errno.
384 (modref_write): Store writes_errno and fnspec summaries.
385 (read_section): Read writes_errno and fnspec summaries.
386 (modref_read): Initialize fnspec summaries.
387 (update_signature): Fix formating.
388 (compute_parm_map): Return true if sucessful.
389 (get_parm_type): New function.
390 (get_access_for_fnspec): New function.
391 (propagate_unknown_call): New function.
392 (modref_propagate_in_scc): Use it.
393 (pass_ipa_modref::execute): Delete fnspec_summaries.
394 (ipa_modref_c_finalize): Delete fnspec_summaries.
395 * ipa-prop.c: Include attr-fnspec.h.
396 (ipa_compute_jump_functions_for_bb): Also compute jump functions
397 for functions with fnspecs.
398 (ipa_read_edge_info): Read jump functions for builtins.
400 2020-11-06 Jan Hubicka <jh@suse.cz>
402 * ipa-fnsummary.h (class size_time_entry): Do not GTY annotate.
403 (class ipa_fnsummary): Turn size_time_table to auto_vec and
404 call_size_time_table to effecient vec; update constructors.
405 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Update.
406 (ipa_fn_summary::~ipa_fn_summary): Update.
407 (ipa_fn_summary_t::duplicate): Update.
408 (ipa_dump_fn_summary): Update.
409 (set_switch_stmt_execution_predicate): Update.
410 (analyze_function_body): Update.
411 (estimate_calls_size_and_time): Update.
412 (ipa_call_context::estimate_size_and_time): Update.
413 (ipa_merge_fn_summary_after_inlining): Update.
414 (ipa_update_overall_fn_summary): Update.
415 (inline_read_section): Update.
416 (ipa_fn_summary_write): Update.
418 2020-11-06 Richard Biener <rguenther@suse.de>
420 PR tree-optimization/97733
421 * tree-vect-slp.c (vect_analyze_slp_instance): If less
422 than two reductions were relevant or live do nothing.
424 2020-11-06 Jeff Law <law@redhat.com>
426 PR tree-optimization/97223
427 * match.pd (overflow detection and optimization): Handle conversions.
429 2020-11-06 Eugene Rozenfeld <erozen@microsoft.com>
431 * match.pd (x >> x): New pattern.
433 2020-11-06 Kito Cheng <kito.cheng@sifive.com>
435 * common/config/riscv/riscv-common.c (riscv_implied_info):
436 Add static and const.
437 (riscv_subset_list::handle_implied_ext): Add const due to
438 riscv_implied_info changed to const.
440 2020-11-06 Kito Cheng <kito.cheng@sifive.com>
443 * toplev.c (process_options): Remove param_asan_stack checking for kasan
446 2020-11-05 Marek Polacek <polacek@redhat.com>
449 * doc/invoke.texi: Document -Wexceptions.
451 2020-11-05 Marek Polacek <polacek@redhat.com>
454 * doc/invoke.texi: Document -Wvexing-parse.
456 2020-11-05 Andrew MacLeod <amacleod@redhat.com>
458 PR tree-optimization/97725
459 * range-op.cc (operator_equal::fold_range): Use new tmp value.
460 (operator_not_equal::fold_range): Ditto.
461 * value-query.cc (range_query::value_of_expr): Use int_range_max
463 (range_query::value_on_edge): Ditto.
464 (range_query::value_of_stmt): Ditto.
466 2020-11-05 Olivier Hainque <hainque@adacore.com>
468 * config/aarch64/aarch64-vxworks.h (TARGET_OS_USES_R18):
470 (STATIC_CHAIN_REGNUM): Redefine to 9.
472 2020-11-05 Olivier Hainque <hainque@adacore.com>
474 * config/aarch64/aarch64.md: Define PROBE_STACK_FIRST_REGNUM
475 and PROBE_STACK_SECOND_REGNUM constants, designating r10/r11.
476 Replacements for the PROBE_STACK_FIRST/SECOND_REG constants in
478 * config/aarch64/aarch64.c (PROBE_STACK_FIRST_REG): Remove.
479 (PROBE_STACK_SECOND_REG): Remove.
480 (aarch64_emit_probe_stack_range): Adjust to the _REG -> _REGNUM
481 suffix update for PROBE_STACK register numbers.
483 2020-11-05 Jan Hubicka <jh@suse.cz>
485 * gimple.c (gimple_call_fnspec): Handle C++ new and delete.
486 * gimple.h (gimple_call_from_new_or_delete): Constify parameter.
488 2020-11-05 Aldy Hernandez <aldyh@redhat.com>
490 PR tree-optimization/97721
491 * gimple-range.cc (get_tree_range): Drop overflow from constants.
493 2020-11-05 David Malcolm <dmalcolm@redhat.com>
495 * tree-diagnostic-path.cc (struct path_summary::event_range): Move
496 out of path_summary to...
497 (struct event_range): ...here.
498 (class path_summary): Convert to...
499 (struct path_summary): ...this.
500 (path_summary::m_ranges): Drop "private".
501 (path_summary::print): Convert to...
502 (print_path_summary_as_text): ...this, passing in the path_summary
504 (default_tree_diagnostic_path_printer): Update for above change.
505 (selftest::test_empty_path): Likewise.
506 (selftest::test_intraprocedural_path): Likewise.
507 (selftest::test_interprocedural_path_1): Likewise.
508 (selftest::test_interprocedural_path_2): Likewise.
509 (selftest::test_recursion): Likewise.
511 2020-11-05 qing zhao <qinzhao@gcc.gnu.org>
514 * config/i386/i386.c (zero_all_st_registers): Return
515 earlier when the FPU is disabled.
517 2020-11-05 Jan Hubicka <jh@suse.cz>
519 * ipa-modref.c (parm_map_for_arg): Initialize parm_offset and
521 (read_section): Set writes_errno to false.
523 2020-11-05 Richard Biener <rguenther@suse.de>
525 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
526 Use the original stmts.
527 (vect_slp_analyze_node_alignment): Use the pattern stmt.
528 * tree-vect-slp.c (vect_fixup_store_groups_with_patterns):
530 (vect_slp_analyze_bb_1): Call it.
532 2020-11-05 Tamar Christina <tamar.christina@arm.com>
534 * tree-vect-slp.c (vect_slp_tree_permute_noop_p): New.
535 (vect_optimize_slp): Optimize permutes.
536 (vectorizable_slp_permutation): Fix typo.
538 2020-11-05 Richard Biener <rguenther@suse.de>
541 * dwarf2out.c (add_abstract_origin_attribute): Make sure to
542 point to the abstract instance.
544 2020-11-05 Tamar Christina <tamar.christina@arm.com>
546 * tree-vect-loop.c (vect_analyze_loop_2): Check kind.
547 * tree-vect-slp.c (vect_build_slp_instance): New.
548 (enum slp_instance_kind): Move to...
549 * tree-vectorizer.h (enum slp_instance_kind): .. Here
550 (SLP_INSTANCE_KIND): New.
552 2020-11-05 Kewen Lin <linkw@linux.ibm.com>
555 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use direct move
556 instructions for vector construction with char/short types.
557 * config/rs6000/rs6000.md (p8_mtvsrwz_v16qisi2): New define_insn.
558 (p8_mtvsrd_v16qidi2): Likewise.
560 2020-11-04 Tamar Christina <tamar.christina@arm.com>
562 * tree-vect-slp.c (vect_analyze_slp_instance): Moved load/store lanes
564 * tree-vect-loop.c (vect_analyze_loop_2): ..Here
566 2020-11-04 Ilya Leoshkevich <iii@linux.ibm.com>
568 * config/s390/s390.c (NR_C_MODES): Unhardcode.
569 (s390_alloc_pool): Use size_t for iterating from 0 to
571 (s390_add_constant): Likewise.
572 (s390_find_constant): Likewise.
573 (s390_dump_pool): Likewise.
574 (s390_free_pool): Likewise.
576 2020-11-04 Ilya Leoshkevich <iii@linux.ibm.com>
578 * config/s390/s390.md (RRe): Remove.
581 2020-11-04 Andrew MacLeod <amacleod@redhat.com>
583 PR tree-optimization/97515
584 * gimple-range-cache.h (class ranger_cache): New prototypes plus
585 temporal cache pointer.
586 * gimple-range-cache.cc (struct range_timestamp): New.
587 (class temporal_cache): New.
588 (temporal_cache::temporal_cache): New.
589 (temporal_cache::~temporal_cache): New.
590 (temporal_cache::get_timestamp): New.
591 (temporal_cache::set_dependency): New.
592 (temporal_cache::temporal_value): New.
593 (temporal_cache::current_p): New.
594 (temporal_cache::set_timestamp): New.
595 (temporal_cache::set_always_current): New.
596 (ranger_cache::ranger_cache): Allocate the temporal cache.
597 (ranger_cache::~ranger_cache): Free temporal cache.
598 (ranger_cache::get_non_stale_global_range): New.
599 (ranger_cache::set_global_range): Add a timestamp.
600 (ranger_cache::register_dependency): New. Add timestamp dependency.
601 * gimple-range.cc (gimple_ranger::range_of_range_op): Add operand
603 (gimple_ranger::range_of_phi): Ditto.
604 (gimple_ranger::range_of_stmt): Check if global range is stale, and
607 2020-11-04 Tobias Burnus <tobias@codesourcery.com>
609 * targhooks.c (default_zero_call_used_regs): Fix flag-name typo
612 2020-11-04 Richard Biener <rguenther@suse.de>
614 * tree-vectorizer.h (vectorizable_phi): Adjust prototype.
615 * tree-vect-stmts.c (vect_transform_stmt): Adjust.
616 (vect_analyze_stmt): Pass cost_vec to vectorizable_phi.
617 * tree-vect-loop.c (vectorizable_phi): Do costing.
619 2020-11-04 Richard Biener <rguenther@suse.de>
621 PR tree-optimization/97709
622 * tree-vect-loop.c (vectorizable_live_operation): Set
623 SSA_NAME_OCCURS_IN_ABNORMAL_PHI when necessary.
625 2020-11-04 Jakub Jelinek <jakub@redhat.com>
627 PR tree-optimization/97690
628 * tree-ssa-phiopt.c (conditional_replacement): Also optimize
629 cond ? pow2p_cst : 0 as ((type) cond) << cst.
631 2020-11-04 Richard Biener <rguenther@suse.de>
633 * tree-vect-loop.c (vectorizable_induction): Re-instantiate
634 previously removed CSE of SLP IVs.
636 2020-11-04 Uroš Bizjak <ubizjak@gmail.com>
638 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
639 Fix Intel MCU psABI comment w.r.t DEFAULT_PCC_STRUCT_RETURN.
641 2020-11-04 Richard Biener <rguenther@suse.de>
644 * tree-vect-slp.c (vect_build_slp_tree_2): Revert previous
645 fix and instead adjust the memset.
647 2020-11-04 Pat Bernardi <bernardi@adacore.com>
649 * config/i386/i386elf.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
650 (ASM_OUTPUT_ASCII): Likewise.
651 (DEFAULT_PCC_STRUCT_RETURN): Define.
652 * config/i386/i386.c (ix86_return_in_memory): Remove
653 SUBTARGET_RETURN_IN_MEMORY.
655 2020-11-04 liuhongt <hongtao.liu@intel.com>
658 * ira.c: (ira_setup_alts): Extract memory from operand only
659 for special memory constraint.
660 * recog.c (asm_operand_ok): Ditto.
661 * lra-constraints.c (process_alt_operands): MEM_P is
662 required for normal memory constraint.
664 2020-11-04 liuhongt <hongtao.liu@intel.com>
667 * lra-constraints.c (valid_address_p): Handle operand of
668 special memory constraint.
669 (process_address_1): Ditto.
671 2020-11-03 Jan Hubicka <hubicka@ucw.cz>
674 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Fix ICE with
676 (cgraph_node::remove): Save clone info before releasing it and pass it
678 * cgraph.h (symtab_node::unregister): Add clone_info parameter.
679 (cgraph_clone::unregister): Likewise.
680 * cgraphclones.c (cgraph_node::find_replacement): Copy clone info
681 * symtab-clones.cc (clone_infos_t::duplicate): Remove.
682 (clone_info::get_create): Simplify.
683 * symtab.c (symtab_node::unregister): Pass around clone info.
684 * varpool.c (varpool_node::remove): Update.
686 2020-11-03 Thomas Schwinge <thomas@codesourcery.com>
688 * omp-low.c (scan_omp_for) <OpenACC>: Use proper location to
689 'inform' of enclosing parent compute construct.
691 2020-11-03 Jan Hubicka <hubicka@ucw.cz>
694 * cgraphclones.c (duplicate_thunk_for_node): Check that info is
697 2020-11-03 Uroš Bizjak <ubizjak@gmail.com>
699 * config/i386/i386.c (ix86_function_arg_regno_p): Use up to
700 SSE_REGPARM_MAX registers to pass function parameters
701 for 32bit Mach-O targets.
702 * config/i386/i386.h (X86_32_MMX_REGPARM_MAX): New macro.
703 (MMX_REGPARM_MAX): Use it.
705 2020-11-03 Dennis Zhang <dennis.zhang@arm.com>
707 * config/aarch64/aarch64-simd-builtins.def (vget_lo_half): New entry.
708 (vget_hi_half): Likewise.
709 * config/aarch64/aarch64-simd.md (aarch64_vget_lo_halfv8bf): New entry.
710 (aarch64_vget_hi_halfv8bf): Likewise.
711 * config/aarch64/arm_neon.h (vget_low_bf16): New intrinsic.
712 (vget_high_bf16): Likewise.
714 2020-11-03 Yang Yang <yangyang305@huawei.com>
716 * cgraph.h (struct cgraph_simd_clone): Change field "simdlen" of
717 struct cgraph_simd_clone from unsigned int to poly_uint64.
718 * config/aarch64/aarch64.c
719 (aarch64_simd_clone_compute_vecsize_and_simdlen): adaptation of
720 operations on "simdlen".
721 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
722 Printf formats update.
723 * gengtype.c (main): Handle poly_uint64.
724 * omp-simd-clone.c (simd_clone_mangle): Likewise.Re
725 (simd_clone_adjust_return_type): Likewise.
726 (create_tmp_simd_array): Likewise.
727 (simd_clone_adjust_argument_types): Likewise.
728 (simd_clone_init_simd_arrays): Likewise.
729 (ipa_simd_modify_function_body): Likewise.
730 (simd_clone_adjust): Likewise.
731 (expand_simd_clones): Likewise.
732 * poly-int-types.h (vector_unroll_factor): New macro.
733 * poly-int.h (constant_multiple_p): Add two-argument versions.
734 * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
736 2020-11-03 Richard Biener <rguenther@suse.de>
738 PR tree-optimization/97623
739 * params.opt (-param=max-pre-hoist-insert-iterations): New.
740 * doc/invoke.texi (max-pre-hoist-insert-iterations): Document.
741 * tree-ssa-pre.c (insert): Do at most max-pre-hoist-insert-iterations
742 hoist insert iterations.
744 2020-11-03 Richard Biener <rguenther@suse.de>
747 * gimple-isel.cc (gimple_expand_vec_cond_expr): Use
748 the correct types for the vcond_mask/vec_cmp optab queries.
750 2020-11-03 Andrew MacLeod <amacleod@redhat.com>
752 * gimple-range-cache.cc (ssa_global_cache::get_global_range): Return
753 true if there was a previous range set.
754 (ranger_cache::ranger_cache): Take a gimple_ranger parameter.
755 (ranger_cache::set_global_range): Propagate the value if updating.
756 (ranger_cache::propagate_cache): Renamed from iterative_cache_update.
757 (ranger_cache::propagate_updated_value): New. Split from:
758 (ranger_cache::fill_block_cache): Split out value propagator.
759 * gimple-range-cache.h (ssa_global_cache): Update prototypes.
760 (ranger_cache): Update prototypes.
762 2020-11-03 Andrew MacLeod <amacleod@redhat.com>
764 * gimple-range-cache.h (block_range_cache): Add new entry point.
765 (ranger_cache): Privatize global abnd block cache members.
766 * gimple-range-cache.cc (ssa_block_ranges::set_bb_range): Add bounds
768 (ssa_block_ranges::set_bb_varying): Ditto.
769 (ssa_block_ranges::get_bb_range): Ditto.
770 (ssa_block_ranges::bb_range_p): Ditto.
771 (block_range_cache::get_block_ranges): Fix formatting.
772 (block_range_cache::query_block_ranges): New.
773 (block_range_cache::get_bb_range): Use Query_block_ranges.
774 (block_range_cache::bb_range_p): Ditto.
775 (ranger_cache::dump): New.
776 (ranger_cache::get_global_range): New.
777 (ranger_cache::set_global_range): New.
778 * gimple-range.cc (gimple_ranger::range_of_expr): Use new API.
779 (gimple_ranger::range_of_stmt): Ditto.
780 (gimple_ranger::export_global_ranges): Ditto.
781 (gimple_ranger::dump): Ditto.
783 2020-11-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
785 * fold-const.c (getbyterep): Remove duplicated statement.
787 2020-11-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
790 * cfgexpand.c (align_local_variable): Make SSA_NAMEs
791 at least MODE_ALIGNED.
792 (expand_one_stack_var_at): Increase MEM_ALIGN for SSA_NAMEs.
794 2020-11-03 Zhiheng Xie <xiezhiheng@huawei.com>
795 Nannan Zheng <zhengnannan@huawei.com>
797 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
798 for AES/SHA/SM3/SM4 intrinsics.
800 2020-11-03 Zhiheng Xie <xiezhiheng@huawei.com>
801 Nannan Zheng <zhengnannan@huawei.com>
803 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
804 for compare intrinsics.
806 2020-11-03 Richard Biener <rguenther@suse.de>
808 * dwarf2out.c (maybe_create_die_with_external_ref): Remove
811 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
813 * config/arm/arm_neon.h (vst2_lane_bf16, vst2q_lane_bf16)
814 (vst3_lane_bf16, vst3q_lane_bf16, vst4_lane_bf16)
815 (vst4q_lane_bf16): New intrinsics.
816 * config/arm/arm_neon_builtins.def: Touch it for:
817 __builtin_neon_vst2_lanev4bf, __builtin_neon_vst2_lanev8bf,
818 __builtin_neon_vst3_lanev4bf, __builtin_neon_vst3_lanev8bf,
819 __builtin_neon_vst4_lanev4bf,__builtin_neon_vst4_lanev8bf.
821 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
823 * config/arm/arm_neon.h (vld2_lane_bf16, vld2q_lane_bf16)
824 (vld3_lane_bf16, vld3q_lane_bf16, vld4_lane_bf16)
825 (vld4q_lane_bf16): Add intrinsics.
826 * config/arm/arm_neon_builtins.def: Touch for:
827 __builtin_neon_vld2_lanev4bf, __builtin_neon_vld2_lanev8bf,
828 __builtin_neon_vld3_lanev4bf, __builtin_neon_vld3_lanev8bf,
829 __builtin_neon_vld4_lanev4bf, __builtin_neon_vld4_lanev8bf.
830 * config/arm/iterators.md (VQ_HS): Add V8BF to the iterator.
832 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
834 * config/arm/arm_neon.h (vst1_bf16, vst1q_bf16): Add intrinsics.
835 * config/arm/arm_neon_builtins.def : Touch for:
836 __builtin_neon_vst1v4bf, __builtin_neon_vst1v8bf.
838 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
840 * config/arm/arm-builtins.c (VAR14): Define macro.
841 * config/arm/arm_neon_builtins.def: Touch for:
842 __builtin_neon_vld1v4bf, __builtin_neon_vld1v8bf.
843 * config/arm/arm_neon.h (vld1_bf16, vld1q_bf16): Add intrinsics.
845 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
847 * config/arm/arm_neon.h (vst1_lane_bf16, vst1q_lane_bf16): Add
849 * config/arm/arm_neon_builtins.def (STORE1LANE): Add v4bf, v8bf.
851 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
853 * config/arm/arm_neon_builtins.def: Add to LOAD1LANE v4bf, v8bf.
854 * config/arm/arm_neon.h (vld1_lane_bf16, vld1q_lane_bf16): Add
857 2020-11-03 Richard Biener <rguenther@suse.de>
860 * tree-vect-slp.c (vect_build_slp_tree_2): Scale
861 allocation of skip_args by sizeof (bool).
863 2020-11-03 Richard Biener <rguenther@suse.de>
865 PR tree-optimization/80928
866 * tree-vect-loop.c (vectorizable_induction): SLP vectorize
869 2020-11-03 Jan Hubicka <hubicka@ucw.cz>
872 * ipa-inline-transform.c (maybe_materialize_called_clones): New
874 (inline_transform): Use it.
876 2020-11-03 Richard Biener <rguenther@suse.de>
878 PR tree-optimization/97678
879 * tree-vect-slp.c (vect_build_slp_tree_2): Do not track
880 the initial values of inductions when not nested.
881 * tree-vect-loop.c (vectorizable_induction): Look at
882 PHI node initial values again for SLP and not nested
883 inductions. Handle LOOP_VINFO_MASK_SKIP_NITERS and cost
886 2020-11-03 Uroš Bizjak <ubizjak@gmail.com>
888 * config/i386/sse.md (aes<aeswideklvariant>u8):
889 Do not use xmm_regs array. Fix whitespace.
891 2020-11-03 Uroš Bizjak <ubizjak@gmail.com>
893 * config/i386/i386-expand.c (ix86_expand_builtin): Fix comment.
895 2020-11-03 Thomas Schwinge <thomas@codesourcery.com>
897 * omp-low.c (scan_omp_for) <OpenACC>: Move earlier inconsistent
898 nested 'reduction' clauses checking.
900 2020-11-03 Thomas Schwinge <thomas@codesourcery.com>
902 * omp-low.c (scan_omp_for) <OpenACC>: More precise diagnostics for
903 'gang', 'worker', 'vector' clauses with arguments only allowed in
906 2020-11-03 Kewen Lin <linkw@gcc.gnu.org>
908 PR tree-optimization/96789
909 * function.h (struct function): New member unsigned pending_TODOs.
910 * passes.c (class pass_pre_slp_scalar_cleanup): New class.
911 (make_pass_pre_slp_scalar_cleanup): New function.
912 (pass_data_pre_slp_scalar_cleanup): New pass data.
913 * passes.def: (pass_pre_slp_scalar_cleanup): New pass, add
914 pass_fre and pass_dse as its children.
915 * timevar.def (TV_SCALAR_CLEANUP): New timevar.
916 * tree-pass.h (PENDING_TODO_force_next_scalar_cleanup): New
918 (make_pass_pre_slp_scalar_cleanup): New declare.
919 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1):
920 Once any outermost loop gets unrolled, flag cfun pending_TODOs
921 PENDING_TODO_force_next_scalar_cleanup on.
923 2020-11-02 Alan Modra <amodra@gmail.com>
926 * calls.h (maybe_complain_about_tail_call): Declare.
927 * calls.c (maybe_complain_about_tail_call): Make global.
928 (can_implement_as_sibling_call_p): Delete reg_parm_stack_space
929 param. Adjust caller. Move REG_PARM_STACK_SPACE check to..
930 * config/i386/i386.c (ix86_function_ok_for_sibcall): ..here.
932 2020-11-02 Vladimir N. Makarov <vmakarov@redhat.com>
934 * ira.c (ira_remove_scratches): Rename to remove_scratches. Make
935 it static and returning flag of any change.
936 (ira.c): Call ira_expand_reg_equiv in case of removing scratches.
938 2020-11-02 H.J. Lu <hjl.tools@gmail.com>
941 * config/i386/i386-expand.c (ix86_expand_builtin): Require MMX
942 for __builtin_ia32_maskmovq.
944 2020-11-02 Martin Sebor <msebor@redhat.com>
946 * doc/invoke.texi (-Wstringop-overflow): Correct default setting.
947 (-Wstringop-overread): Move past -Wstringop-overflow.
949 2020-11-02 François-Xavier Coudert <fxcoudert@gcc.gnu.org>
952 * Makefile.in (gcc-vers.texi): Quote @, { and }.
954 2020-11-02 Carl Love <cel@us.ibm.com>
957 * config/rs6000/altivec.h (__builtin_bcdadd, __builtin_bcdadd_lt,
958 __builtin_bcdadd_eq, __builtin_bcdadd_gt, __builtin_bcdadd_ofl,
959 __builtin_bcdadd_ov, __builtin_bcdsub, __builtin_bcdsub_lt,
960 __builtin_bcdsub_eq, __builtin_bcdsub_gt, __builtin_bcdsub_ofl,
961 __builtin_bcdsub_ov, __builtin_bcdinvalid, __builtin_bcdmul10,
962 __builtin_bcddiv10, __builtin_bcd2dfp, __builtin_bcdcmpeq,
963 __builtin_bcdcmpgt, __builtin_bcdcmplt, __builtin_bcdcmpge,
964 __builtin_bcdcmple): Add defines.
965 * config/rs6000/altivec.md: Add UNSPEC_BCDSHIFT.
966 (BCD_TEST): Add le, ge to code iterator.
967 Add VBCD mode iterator.
968 (bcd<bcd_add_sub>_test, *bcd<bcd_add_sub>_test2,
969 bcd<bcd_add_sub>_<code>, bcd<bcd_add_sub>_<code>): Add mode to name.
970 Change iterator from V1TI to VBCD.
971 (*bcdinvalid_<mode>, bcdshift_v16qi): New define_insn.
972 (bcdinvalid_<mode>, bcdmul10_v16qi, bcddiv10_v16qi): New define.
973 * config/rs6000/dfp.md (dfp_denbcd_v16qi_inst): New define_insn.
974 (dfp_denbcd_v16qi): New define_expand.
975 * config/rs6000/rs6000-builtin.def (BU_P8V_MISC_1): New define.
976 (BCDADD): Replaced with BCDADD_V1TI and BCDADD_V16QI.
977 (BCDADD_LT): Replaced with BCDADD_LT_V1TI and BCDADD_LT_V16QI.
978 (BCDADD_EQ): Replaced with BCDADD_EQ_V1TI and BCDADD_EQ_V16QI.
979 (BCDADD_GT): Replaced with BCDADD_GT_V1TI and BCDADD_GT_V16QI.
980 (BCDADD_OV): Replaced with BCDADD_OV_V1TI and BCDADD_OV_V16QI.
981 (BCDSUB_V1TI, BCDSUB_V16QI, BCDSUB_LT_V1TI, BCDSUB_LT_V16QI,
982 BCDSUB_LE_V1TI, BCDSUB_LE_V16QI, BCDSUB_EQ_V1TI, BCDSUB_EQ_V16QI,
983 BCDSUB_GT_V1TI, BCDSUB_GT_V16QI, BCDSUB_GE_V1TI, BCDSUB_GE_V16QI,
984 BCDSUB_OV_V1TI, BCDSUB_OV_V16QI, BCDINVALID_V1TI, BCDINVALID_V16QI,
985 BCDMUL10_V16QI, BCDDIV10_V16QI, DENBCD_V16QI): New builtin definitions.
986 (BCDADD, BCDADD_LT, BCDADD_EQ, BCDADD_GT, BCDADD_OV, BCDSUB, BCDSUB_LT,
987 BCDSUB_LE, BCDSUB_EQ, BCDSUB_GT, BCDSUB_GE, BCDSUB_OV, BCDINVALID,
988 BCDMUL10, BCDDIV10, DENBCD): New overload definitions.
989 * config/rs6000/rs6000-call.c (P8V_BUILTIN_VEC_BCDADD, P8V_BUILTIN_VEC_BCDADD_LT,
990 P8V_BUILTIN_VEC_BCDADD_EQ, P8V_BUILTIN_VEC_BCDADD_GT, P8V_BUILTIN_VEC_BCDADD_OV,
991 P8V_BUILTIN_VEC_BCDINVALID, P9V_BUILTIN_VEC_BCDMUL10, P8V_BUILTIN_VEC_DENBCD.
992 P8V_BUILTIN_VEC_BCDSUB, P8V_BUILTIN_VEC_BCDSUB_LT, P8V_BUILTIN_VEC_BCDSUB_LE,
993 P8V_BUILTIN_VEC_BCDSUB_EQ, P8V_BUILTIN_VEC_BCDSUB_GT, P8V_BUILTIN_VEC_BCDSUB_GE,
994 P8V_BUILTIN_VEC_BCDSUB_OV): New overloaded specifications.
995 (CODE_FOR_bcdadd): Replaced with CODE_FOR_bcdadd_v16qi and CODE_FOR_bcdadd_v1ti.
996 (CODE_FOR_bcdadd_lt): Replaced with CODE_FOR_bcdadd_lt_v16qi and CODE_FOR_bcdadd_lt_v1ti.
997 (CODE_FOR_bcdadd_eq): Replaced with CODE_FOR_bcdadd_eq_v16qi and CODE_FOR_bcdadd_eq_v1ti.
998 (CODE_FOR_bcdadd_gt): Replaced with CODE_FOR_bcdadd_gt_v16qi and CODE_FOR_bcdadd_gt_v1ti.
999 (CODE_FOR_bcdsub): Replaced with CODE_FOR_bcdsub_v16qi and CODE_FOR_bcdsub_v1ti.
1000 (CODE_FOR_bcdsub_lt): Replaced with CODE_FOR_bcdsub_lt_v16qi and CODE_FOR_bcdsub_lt_v1ti.
1001 (CODE_FOR_bcdsub_eq): Replaced with CODE_FOR_bcdsub_eq_v16qi and CODE_FOR_bcdsub_eq_v1ti.
1002 (CODE_FOR_bcdsub_gt): Replaced with CODE_FOR_bcdsub_gt_v16qi and CODE_FOR_bcdsub_gt_v1ti.
1003 (rs6000_expand_ternop_builtin): Add CODE_FOR_dfp_denbcd_v16qi to else if.
1004 * doc/extend.texi: Add documentation for new builtins.
1006 2020-11-02 Nathan Sidwell <nathan@acm.org>
1008 * tree.c (cache_integer_cst): Fixup pointer caching to match
1009 wide_int_to_type_1's expectations. Add comment.
1011 2020-11-02 Nathan Sidwell <nathan@acm.org>
1013 * tree.h (id_equal): Call the symetric predicate with swapped
1016 2020-11-02 Nathan Sidwell <nathan@acm.org>
1018 * print-tree.c (print_node): Display all the operands of a call
1021 2020-11-02 Vladimir N. Makarov <vmakarov@redhat.com>
1023 * config/rs6000/vsx.md (*vsx_extract_<mode>_store_p9): Add hint *
1024 to 2nd alternative of the 1st scratch.
1026 2020-11-02 Sudakshina Das <sudi.das@arm.com>
1029 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Update
1030 return value on INSN_P check.
1032 2020-11-02 Richard Biener <rguenther@suse.de>
1034 * tree.h (build_real_from_wide): Declare.
1035 * tree.c (build_real_from_wide): New function.
1036 * tree-vect-slp.c (vect_build_slp_tree_2): Remove
1037 restriction on induction vectorization, represent
1039 * tree-vect-loop.c (vect_model_induction_cost): Inline ...
1040 (vectorizable_induction): ... here. Rewrite SLP
1043 2020-11-02 Martin Jambor <mjambor@suse.cz>
1045 * dbgcnt.def (ipa_cp_values): New counter.
1046 (ipa_cp_vr): Likewise.
1047 * ipa-cp.c (decide_about_value): Check and bump ipa_cp_values debug
1049 (decide_whether_version_node): Likewise.
1050 (ipcp_store_vr_results):Check and bump ipa_cp_vr debug counter.
1052 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1054 * config/arm/arm.c (arm_thumb1_mi_thunk): Build mi_delta in r3 and
1055 do not emit function address and delta when -mpure-code is used.
1057 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1059 * config/arm/thumb1.md (thumb1_movsi_insn): Call
1060 thumb1_gen_const_int_print.
1061 * config/arm/arm-protos.h (thumb1_gen_const_int_print): Add
1063 * config/arm/arm.c (thumb1_gen_const_int_print): New.
1065 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1067 * config/arm/arm.c (thumb1_const_rtl, thumb1_const_print): New
1069 (thumb1_gen_const_int): Rename to ...
1070 (thumb1_gen_const_int_1): ... New helper function. Add capability
1071 to emit either RTL or asm, improve generated code.
1072 (thumb1_gen_const_int_rtl): New function.
1073 * config/arm/arm-protos.h (thumb1_gen_const_int): Rename to
1074 thumb1_gen_const_int_rtl.
1075 * config/arm/thumb1.md: Call thumb1_gen_const_int_rtl instead
1076 of thumb1_gen_const_int.
1078 2020-11-02 Richard Biener <rguenther@suse.de>
1080 PR tree-optimization/97558
1081 * tree-vect-loop.c (vectorizable_reduction): For nested SLP
1082 cycles compute invariant operands vector type.
1084 2020-11-02 Richard Biener <rguenther@suse.de>
1086 PR tree-optimization/97558
1087 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns):
1088 Check for any mismatch in pattern vs. non-pattern and dissolve
1089 the group if there is one.
1090 * tree-vect-slp.c (vect_analyze_slp_instance): Avoid
1091 analyzing not relevant reductions.
1092 (vect_analyze_slp): Avoid analyzing not relevant reduction
1095 2020-11-02 Richard Biener <rguenther@suse.de>
1097 PR tree-optimization/97650
1098 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check
1099 for SSA_NAME before checking SSA_NAME_IS_DEFAULT_DEF.
1101 2020-11-02 Kito Cheng <kito.cheng@sifive.com>
1103 * common/config/riscv/riscv-common.c
1104 (riscv_subset_list::parse_multiletter_ext): Checking multiletter
1105 extension has more than 1 letter.
1107 2020-11-02 Kito Cheng <kito.cheng@sifive.com>
1109 * config.gcc (riscv*-*-*): Handle --with-multilib-generator.
1111 * configure.ac: Add --with-multilib-generator.
1112 * config/riscv/multilib-generator: Exit when parsing arch string error.
1113 * config/riscv/t-withmultilib-generator: New.
1114 * doc/install.texi: Document --with-multilib-generator.
1116 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1119 * config/arm/arm.c (thumb_legitimate_constant_p): Accept
1120 (symbol_ref + addend) when literal pool is disabled.
1121 (arm_valid_symbolic_address_p): Add support for thumb-1 without
1123 * config/arm/thumb1.md (*thumb1_movsi_insn): Accept (symbol_ref +
1124 addend) in the pure-code alternative.
1126 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1129 * config/arm/arm.c (thumb_legitimate_constant_p): Add support for
1130 disabled literal pool in thumb-1.
1131 * config/arm/thumb1.md (thumb1_movsi_symbol_ref): Remove.
1132 (*thumb1_movsi_insn): Add support for SYMBOL_REF with -mpure-code.
1134 2020-11-01 Iain Sandoe <iain@sandoe.co.uk>
1136 * config/host-darwin.c: Align pch_address_space to 16384.
1138 2020-11-01 Pat Bernardi <bernardi@adacore.com>
1140 * config/i386/i386.c (ix86_expand_prologue): Set the stack usage to 0
1141 for naked functions.
1143 2020-11-01 Iain Buclaw <ibuclaw@gdcproject.org>
1146 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't call
1147 clone_info::get when cgraph_node::get returns NULL.
1149 2020-10-31 Jan Hubicka <jh@suse.cz>
1151 * Makefile.in: (OBJS): Add symtab-clones.o
1152 (GTFILES): Add symtab-clones.h
1153 * cgraph.c: Include symtab-clones.h.
1154 (cgraph_edge::resolve_speculation): Fix formating
1155 (cgraph_edge::redirect_call_stmt_to_callee): Update.
1156 (cgraph_update_edges_for_call_stmt): Update
1157 (release_function_body): Fix formating.
1158 (cgraph_node::remove): Fix formating.
1159 (cgraph_node::dump): Fix formating.
1160 (cgraph_node::get_availability): Fix formating.
1161 (cgraph_node::call_for_symbol_thunks_and_aliases): Fix formating.
1162 (set_const_flag_1): Fix formating.
1163 (set_pure_flag_1): Fix formating.
1164 (cgraph_node::can_remove_if_no_direct_calls_p): Fix formating.
1165 (collect_callers_of_node_1): Fix formating.
1166 (clone_of_p): Update.
1167 (cgraph_node::verify_node): Update.
1168 (cgraph_c_finalize): Call clone_info::release ().
1169 * cgraph.h (struct cgraph_clone_info): Move to symtab-clones.h.
1170 (cgraph_node): Remove clone_info.
1171 (symbol_table): Add m_clones.
1172 * cgraphclones.c: Include symtab-clone.h.
1173 (duplicate_thunk_for_node): Update.
1174 (cgraph_node::create_clone): Update.
1175 (cgraph_node::create_virtual_clone): Update.
1176 (cgraph_node::find_replacement): Update.
1177 (cgraph_node::materialize_clone): Update.
1178 * gengtype.c (open_base_files): Include symtab-clones.h.
1179 * ipa-cp.c: Include symtab-clones.h.
1180 (initialize_node_lattices): Update.
1181 (want_remove_some_param_p): Update.
1182 (create_specialized_node): Update.
1183 * ipa-fnsummary.c: Include symtab-clones.h.
1184 (ipa_fn_summary_t::duplicate): Update.
1185 * ipa-modref.c: Include symtab-clones.h.
1186 (update_signature): Update.
1187 * ipa-param-manipulation.c: Include symtab-clones.h.
1188 (ipa_param_body_adjustments::common_initialization): Update.
1189 * ipa-prop.c: Include symtab-clones.h.
1190 (adjust_agg_replacement_values): Update.
1191 (ipcp_get_parm_bits): Update.
1192 (ipcp_update_bits): Update.
1193 (ipcp_update_vr): Update.
1194 * ipa-sra.c: Include symtab-clones.h.
1195 (process_isra_node_results): Update.
1196 (disable_unavailable_parameters): Update.
1197 * lto-cgraph.c: Include symtab-clone.h.
1198 (output_cgraph_opt_summary_p): Update.
1199 (output_node_opt_summary): Update.
1200 (input_node_opt_summary): Update.
1201 * symtab-clones.cc: New file.
1202 * symtab-clones.h: New file.
1203 * tree-inline.c (expand_call_inline): Update.
1204 (update_clone_info): Update.
1205 (tree_function_versioning): Update.
1207 2020-10-31 Jan Hubicka <jh@suse.cz>
1209 * ipa-modref.c (modref_summary::dump): Dump writes_errno.
1210 (parm_map_for_arg): Break out from ...
1211 (merge_call_side_effects): ... here.
1212 (get_access_for_fnspec): New function.
1213 (process_fnspec): New function.
1214 (analyze_call): Use it.
1215 (analyze_stmt): Update.
1216 (analyze_function): Initialize writes_errno.
1217 (modref_summaries::duplicate): Duplicate writes_errno.
1218 * ipa-modref.h (struct modref_summary): Add writes_errno.
1219 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Check errno.
1221 2020-10-30 Michael Meissner <meissner@linux.ibm.com>
1223 * config/rs6000/rs6000.c (glibc_supports_ieee_128bit): New helper
1225 (rs6000_option_override_internal): Call it.
1227 2020-10-30 Qing Zhao <qing.zhao@oracle.com>
1228 H.J.Lu <hjl.tools@gmail.com>
1230 * common.opt: Add new option -fzero-call-used-regs
1231 * config/i386/i386.c (zero_call_used_regno_p): New function.
1232 (zero_call_used_regno_mode): Likewise.
1233 (zero_all_vector_registers): Likewise.
1234 (zero_all_st_registers): Likewise.
1235 (zero_all_mm_registers): Likewise.
1236 (ix86_zero_call_used_regs): Likewise.
1237 (TARGET_ZERO_CALL_USED_REGS): Define.
1238 * df-scan.c (df_epilogue_uses_p): New function.
1239 (df_get_exit_block_use_set): Replace EPILOGUE_USES with
1241 * df.h (df_epilogue_uses_p): Declare.
1242 * doc/extend.texi: Document the new zero_call_used_regs attribute.
1243 * doc/invoke.texi: Document the new -fzero-call-used-regs option.
1244 * doc/tm.texi: Regenerate.
1245 * doc/tm.texi.in (TARGET_ZERO_CALL_USED_REGS): New hook.
1246 * emit-rtl.h (struct rtl_data): New field must_be_zero_on_return.
1247 * flag-types.h (namespace zero_regs_flags): New namespace.
1248 * function.c (gen_call_used_regs_seq): New function.
1249 (class pass_zero_call_used_regs): New class.
1250 (pass_zero_call_used_regs::execute): New function.
1251 (make_pass_zero_call_used_regs): New function.
1252 * optabs.c (expand_asm_reg_clobber_mem_blockage): New function.
1253 * optabs.h (expand_asm_reg_clobber_mem_blockage): Declare.
1254 * opts.c (zero_call_used_regs_opts): New structure array
1256 (parse_zero_call_used_regs_options): New function.
1257 (common_handle_option): Handle -fzero-call-used-regs.
1258 * opts.h (zero_call_used_regs_opts): New structure array.
1259 * passes.def: Add new pass pass_zero_call_used_regs.
1260 * recog.c (valid_insn_p): New function.
1261 * recog.h (valid_insn_p): Declare.
1262 * resource.c (init_resource_info): Replace EPILOGUE_USES with
1264 * target.def (zero_call_used_regs): New hook.
1265 * targhooks.c (default_zero_call_used_regs): New function.
1266 * targhooks.h (default_zero_call_used_regs): Declare.
1267 * tree-pass.h (make_pass_zero_call_used_regs): Declare.
1269 2020-10-30 Vladimir N. Makarov <vmakarov@redhat.com>
1271 * lra.c (get_scratch_reg): New function.
1272 (remove_scratches_1): Rename remove_insn_scratches. Use
1273 ira_remove_insn_scratches and get_scratch_reg.
1274 (remove_scratches): Do not
1275 initialize scratches, scratch_bitmap, and scratch_operand_bitmap.
1276 (lra): Call ira_restore_scratches instead of restore_scratches.
1277 (struct sloc, sloc_t, scratches, scratch_bitmap)
1278 (scratch_operand_bitmap, lra_former_scratch_p)
1279 (lra_former_scratch_operand_p, lra_register_new_scratch_op)
1280 (restore_scratches): Move them to ...
1282 (former_scratch_p, former_scratch_operand_p): Rename to
1283 ira_former_scratch_p and ira_former_scratch_operand_p.
1284 (contains_X_constraint_p): New function.
1285 (register_new_scratch_op): Rename to ira_register_new_scratch_op.
1286 Change it to work for IRA and LRA.
1287 (restore_scratches): Rename to ira_restore_scratches.
1288 (get_scratch_reg, ira_remove_insn_scratches): New functions.
1289 (ira): Call ira_remove_scratches if we use LRA.
1290 * ira.h (ira_former_scratch_p, ira_former_scratch_operand_p): New
1292 (ira_register_new_scratch_op, ira_restore_scratches): New prototypes.
1293 (ira_remove_insn_scratches): New prototype.
1294 * lra-int.h (lra_former_scratch_p, lra_former_scratch_operand_p):
1296 (lra_register_new_scratch_op): Ditto.
1297 * lra-constraints.c: Rename lra_former_scratch_p and
1298 lra_former_scratch_p to ira_former_scratch_p and to
1299 ira_former_scratch_p.
1300 * lra-remat.c: Ditto.
1301 * lra-spills.c: Rename lra_former_scratch_p to ira_former_scratch_p.
1303 2020-10-30 Martin Sebor <msebor@redhat.com>
1306 * builtins.c (access_ref::add_offset): Cap offset lower bound
1307 to at most the the upper bound.
1309 2020-10-30 Jan Hubicka <jh@suse.cz>
1312 * cgraph.c (cgraph_node::create_thunk): Register thunk as early during
1314 * cgraphunit.c (analyze_functions): Call
1315 thunk_info::process_early_thunks.
1316 * symtab-thunks.cc (struct unprocessed_thunk): New struct.
1317 (thunks): New static variable.
1318 (thunk_info::register_early): New member function.
1319 (thunk_info::process_early_thunks): New member function.
1320 * symtab-thunks.h (thunk_info::register_early): Declare.
1321 (thunk_info::process_early_thunks): Declare.
1323 2020-10-30 Richard Biener <rguenther@suse.de>
1325 PR tree-optimization/97623
1326 * tree-ssa-pre.c (insert): First do hoist insertion in
1329 2020-10-30 Richard Biener <rguenther@suse.de>
1331 PR tree-optimization/97626
1332 * tree-vect-slp.c (vect_slp_analyze_node_operations):
1333 Exchange the lvisited hash-set for a vector, roll back
1334 recursive adds to visited when analysis failed.
1335 (vect_slp_analyze_operations): Likewise.
1337 2020-10-30 Zhiheng Xie <xiezhiheng@huawei.com>
1338 Nannan Zheng <zhengnannan@huawei.com>
1340 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
1341 for conversion intrinsics.
1343 2020-10-30 Richard Biener <rguenther@suse.de>
1345 PR tree-optimization/97633
1346 * tree-vect-slp.c (): Update backedges in single-node cycles.
1347 Optimize processing of externals.
1349 2020-10-30 Alex Coplan <alex.coplan@arm.com>
1352 * combine.c (make_extraction): Also handle shifts written as
1353 (mult x 2^n), avoid creating an extract rtx for these.
1354 * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Delete.
1355 (aarch64_classify_index): Remove extract-based address handling.
1356 (aarch64_strip_extend): Likewise.
1357 (aarch64_rtx_arith_op_extract_p): Likewise, remove now-unused parameter.
1359 (aarch64_rtx_costs): ... here.
1361 2020-10-30 Olivier Hainque <hainque@adacore.com>
1363 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Also
1364 builtin_define __ppc and __ppc__ for VxWorks 7.
1366 2020-10-30 Olivier Hainque <hainque@adacore.com>
1367 Douglas Rupp <rupp@adacore.com>
1368 Pat Bernardi <bernardi@adacore.com>
1370 * config.gcc: Adjust the ix86/x86_64-wrs-vxworks filters
1371 to apply to VxWorks 7 as well.
1372 * config/i386/t-vxworks (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
1373 Remove the fPIC multilib and add one for the large code model
1375 * config/i386/vxworks.h: Separate sections for TARGET_VXWORKS7,
1376 other variants and common bits.
1377 (TARGET_OS_CPP_BUILTINS): Augment to support a range of CPU
1378 families. Leverage VX_CPU_PREFIX.
1379 (CC1_SPEC): Add definition.
1380 (STACK_CHECK_PROTECT): Use conditional expression instead of
1381 heavier to read conditioned macro definitions.
1383 2020-10-30 Jakub Jelinek <jakub@redhat.com>
1385 * gimplify.c (gimplify_scan_omp_clauses): Force
1386 OMP_CLAUSE_ALLOCATE_ALLOCATOR into a temporary if it is non-NULL and
1388 (gimplify_omp_for): Only put allocate on inner taskloop if lastprivate
1389 for the same variable is going to be put there, and in that case
1390 if the OMP_CLAUSE_ALLOCATE_ALLOCATOR is non-NULL non-constant, make
1391 the allocator firstprivate on task.
1393 2020-10-30 Michael Meissner <meissner@linux.ibm.com>
1395 * config/rs6000/rs6000.c (rs6000_option_override_internal): Allow
1396 long double type to be changed for C/C++ if glibc 2.32 or newer.
1397 (rs6000_invalid_binary_op): Update error messages about mixing IBM
1398 long double and IEEE 128-bit.
1400 2020-10-29 Richard Biener <rguenther@suse.de>
1402 * tree-ssa-pre.c (compute_avail): Free operands consistently.
1403 * tree-vect-loop.c (vectorizable_phi): Make sure all operand
1404 defs vectors are released.
1406 2020-10-29 Jan Hubicka <jh@suse.cz>
1408 * vec.h (vec<T, va_heap, vl_ptr>::copy): Pass mem stat info.
1410 2020-10-29 Jan Hubicka <jh@suse.cz>
1412 * wide-int.h (trailing_wide_ints <N>): Turn len to array of structures
1413 so it does not imply typeless storage.
1414 (trailing_wide_ints <N>::operator): update
1415 (trailing_wide_ints <N>::operator []): Update.
1417 2020-10-29 Joseph Myers <joseph@codesourcery.com>
1419 * ginclude/stdbool.h [__STDC_VERSION__ > 201710L] (true, false):
1420 Define with type _Bool.
1422 2020-10-29 Aldy Hernandez <aldyh@redhat.com>
1424 PR tree-optimization/97505
1425 * vr-values.c (vr_values::extract_range_basic): Enable
1426 trap again for everything except UBSAN builtins.
1428 2020-10-29 Richard Sandiford <richard.sandiford@arm.com>
1430 * tree-vectorizer.h (vect_transform_slp_perm_load): Take an
1431 optional extra parameter.
1432 * tree-vect-slp.c (vect_transform_slp_perm_load): Calculate
1433 the number of loads as well as the number of permutes, taking
1434 the counting loop from...
1435 * tree-vect-stmts.c (vect_model_load_cost): ...here. Use the
1436 value computed by vect_transform_slp_perm_load for ncopies.
1438 2020-10-29 Martin Liska <mliska@suse.cz>
1441 * langhooks.c (lhd_begin_section): Call get_section with
1442 not_existing = true.
1443 * output.h (get_section): Add new argument.
1444 * varasm.c (get_section): Fail when NOT_EXISTING is true
1445 and a section already exists.
1446 * ipa-cp.c (ipcp_write_summary): Remove.
1447 (ipcp_read_summary): Likewise.
1448 * ipa-fnsummary.c (ipa_fn_summary_read): Always read jump
1450 (ipa_fn_summary_write): Always stream it.
1452 2020-10-29 Richard Biener <rguenther@suse.de>
1454 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Pass
1455 SLP_TREE_VECTYPE to record_stmt_cost.
1457 2020-10-29 Martin Liska <mliska@suse.cz>
1459 * optc-gen.awk: Check that params start with -param=.
1460 * params.opt: Fix ipa-jump-function-lookups.
1462 2020-10-29 Alexandre Oliva <oliva@adacore.com>
1464 * tree-ssa-math-opts.c (sincos_stats): Add conv_removed.
1465 (execute_cse_conv_1): New.
1466 (execute_cse_sincos_1): Call it. Fix return within
1467 FOR_EACH_IMM_USE_STMT.
1468 (pass_cse_sincos::execute): Report conv_inserted.
1470 2020-10-29 Xuepeng Guo <xuepeng.guo@intel.com>
1471 Hongyu Wang <hongyu.wang@intel.com>
1472 Hongtao Liu <hongtao.liu@intel.com>
1474 * common/config/i386/cpuinfo.h (get_available_features):
1475 Detect KL, AESKLE and WIDEKL features.
1476 * common/config/i386/i386-common.c
1477 (OPTION_MASK_ISA_KL_SET): New.
1478 (OPTION_MASK_ISA_WIDEKL_SET): Likewise.
1479 (OPTION_MASK_ISA_KL_UNSET): Likewise.
1480 (OPTION_MASK_ISA_WIDEKL_UNSET): Likewise.
1481 (OPTION_MASK_ISA2_AVX2_UNSET): Likewise.
1482 (OPTION_MASK_ISA2_AVX_UNSET): Likewise.
1483 (OPTION_MASK_ISA2_SSE4_2_UNSET): Likewise.
1484 (OPTION_MASK_ISA2_SSE4_1_UNSET): Likewise.
1485 (OPTION_MASK_ISA2_SSE4_UNSET): Likewise.
1486 (OPTION_MASK_ISA2_SSSE3_UNSET): Likewise.
1487 (OPTION_MASK_ISA2_SSE3_UNSET): Likewise.
1488 (OPTION_MASK_ISA2_SSE2_UNSET): Likewise.
1489 (OPTION_MASK_ISA2_SSE_UNSET): Likewise.
1490 (ix86_handle_option): Handle kl and widekl, add dependency chain
1492 * common/config/i386/i386-cpuinfo.h (enum processor_features):
1493 (FEATURE_KL, FEATURE_AESKLE, FEATURE_WIDEKL): New.
1494 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
1495 for KL, AESKLE and WIDEKL.
1496 * config.gcc: Add keylockerintrin.h.
1497 * doc/invoke.texi: Document new option -mkl and -mwidekl.
1498 * doc/extend.texi: Document kl and widekl.
1499 * config/i386/cpuid.h (bit_KL, bit_AESKLE, bit_WIDEKL): New.
1500 * config/i386/i386-builtin-types.def ((UINT, UINT, V2DI, V2DI, PVOID),
1501 (UINT, UINT, V2DI, PVOID), (VOID, V2DI, V2DI, V2DI, UINT),
1502 (UINT8, PV2DI, V2DI, PCVOID), (UINT8, PV2DI, PCV2DI, PCVOID)): New
1504 * config/i386/i386-builtin.def: Add
1505 __builtin_ia32_loadiwkey,
1506 __builtin_ia32_aesdec128kl_u8,
1507 __builtin_ia32_aesdec256kl_u8,
1508 __builtin_ia32_aesenc128kl_u8,
1509 __builtin_ia32_aesenc256kl_u8,
1510 __builtin_ia32_aesdecwide128kl_u8,
1511 __builtin_ia32_aesdecwide256kl_u8,
1512 __builtin_ia32_aesencwide128kl_u8,
1513 __builtin_ia32_aesencwide256kl_u8,
1514 __builtin_ia32_encodekey128_u32,
1515 __builtin_ia32_encodekey256_u32.
1516 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1518 * config/i386/i386-options.c (isa2_opts): Add -mkl and -mwidekl.
1519 (ix86_option_override_internal): Handle KL and WIDEKL.
1520 (ix86_valid_target_attribute_inner_p): Add attribute for kl and widekl.
1521 * config/i386/i386-expand.c
1522 (ix86_expand_builtin): Expand Keylocker Builtins.
1523 * config/i386/i386.h (TARGET_KL): New.
1524 (TARGET_KL_P): Likewise.
1525 (TARGET_WIDEKL): Likewise.
1526 (TARGET_WIDEKL_P): Likewise.
1528 (PTA_WIDEKL): Likewise.
1529 (PTA_TIGERLAKE): Add PTA_KL, PTA_WIDEKL.
1530 (PTA_ALDERLAKE): Likewise.
1531 * config/i386/i386.opt: Add new option mkl and mwidekl.
1532 * config/i386/keylockerintrin.h: New header file for Keylocker.
1533 * config/i386/immintrin.h: Include keylockerintrin.h.
1534 * config/i386/predicates.md (encodekey128_operation): New
1536 (encodekey256_operation): Likewise.
1537 (aeswidekl_operation): Likewise.
1538 * config/i386/sse.md (UNSPECV_LOADIWKEY): New.
1539 (UNSPECV_AESDEC128KLU8): Likewise.
1540 (UNSPECV_AESENC128KLU8): Likewise.
1541 (UNSPECV_AESDEC256KLU8): Likewise.
1542 (UNSPECV_AESENC256KLU8): Likewise.
1543 (UNSPECV_AESDECWIDE128KLU8): Likewise.
1544 (UNSPECV_AESENCWIDE128KLU8): Likewise.
1545 (UNSPECV_AESDECWIDE256KLU8): Likewise.
1546 (UNSPECV_AESENCWIDE256KLU8): Likewise.
1547 (UNSPECV_ENCODEKEY128U32): Likewise.
1548 (UNSPECV_ENCODEKEY256U32): Likewise.
1549 (encodekey128u32): New expander.
1550 (encodekey256u32): Likewise.
1551 (aes<aeswideklvariant>u8): Likewise.
1552 (loadiwkey): New insn pattern.
1553 (*encodekey128u32): Likewise.
1554 (*encodekey256u32): Likewise.
1555 (aes<aesklvariant>u8): Likewise.
1556 (*aes<aeswideklvariant>u8): Likewise.
1558 2020-10-29 Richard Biener <rguenther@suse.de>
1560 * tree-vect-slp.c (vect_build_slp_tree_2): Allow splatting
1561 not vectorizable loads.
1562 (vect_build_slp_instance): Amend dumping with address.
1563 (vect_slp_convert_to_external): Likewise.
1565 2020-10-29 Andrew MacLeod <amacleod@redhat.com>
1567 PR tree-optimization/97609
1568 * gimple-range-cache.cc (non_null_ref::process_name): Call
1569 infer_nonnull_range directly instead of infer_value_range.
1571 2020-10-29 David Malcolm <dmalcolm@redhat.com>
1573 * Makefile.in (ANALYZER_OBJS): Add analyzer/complexity.o.
1575 2020-10-28 Marek Polacek <polacek@redhat.com>
1578 * doc/invoke.texi: Document -Wdeprecated-enum-enum-conversion
1579 and -Wdeprecated-enum-float-conversion. -Wenum-conversion is
1580 no longer C/ObjC only.
1582 2020-10-28 Richard Sandiford <richard.sandiford@arm.com>
1584 PR tree-optimization/97457
1585 * value-range.cc (irange::set): Don't decay POLY_INT_CST ranges
1588 2020-10-28 Carl Love <cel@us.ibm.com>
1590 * config/rs6000/vsx.md(xxgenpcvm_<mode>_internal): Remove TARGET_64BIT.
1592 2020-10-28 Richard Biener <rguenther@suse.de>
1594 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Dump
1595 when shared vectype update fails.
1597 2020-10-28 Richard Biener <rguenther@suse.de>
1599 * tree-vect-slp.c (vect_get_and_check_slp_defs): For skipped
1600 args just push NULLs and vect_uninitialized_def.
1601 (vect_build_slp_tree_2): Allocate skip_args for all ops
1602 and pass it down to vect_get_and_check_slp_defs.
1604 2020-10-28 Richard Biener <rguenther@suse.de>
1606 PR tree-optimization/97615
1607 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
1608 an external from pattern defs.
1610 2020-10-28 Richard Biener <rguenther@suse.de>
1612 * tree-vect-slp.c (vect_optimize_slp): Fix iteration over
1615 2020-10-28 Richard Biener <rguenther@suse.de>
1617 * tree-vect-slp.c (vect_build_slp_instance): Split the store
1618 group at the failure boundary and also re-analyze a large enough
1621 2020-10-28 Richard Biener <rguenther@suse.de>
1623 * tree-vect-data-refs.c (vect_slp_analyze_node_alignment):
1624 Dump when vect_update_shared_vectype fails.
1626 2020-10-28 Andrea Corallo <andrea.corallo@arm.com>
1628 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC, __ST3_LANE_FUNC)
1629 (__ST4_LANE_FUNC): Rename the macro generating the 'q' variants
1630 into __ST2Q_LANE_FUNC, __ST2Q_LANE_FUNC, __ST2Q_LANE_FUNC so they
1631 all can be undefed at the and of the file.
1632 (vst2_lane_bf16, vst2q_lane_bf16, vst3_lane_bf16, vst3q_lane_bf16)
1633 (vst4_lane_bf16, vst4q_lane_bf16): Add new intrinsics.
1635 2020-10-28 Andrea Corallo <andrea.corallo@arm.com>
1637 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC, __LD3_LANE_FUNC)
1638 (__LD4_LANE_FUNC): Rename the macro generating the 'q' variants
1639 into __LD2Q_LANE_FUNC, __LD2Q_LANE_FUNC, __LD2Q_LANE_FUNC so they
1640 all can be undefed at the and of the file.
1641 (vld2_lane_bf16, vld2q_lane_bf16, vld3_lane_bf16, vld3q_lane_bf16)
1642 (vld4_lane_bf16, vld4q_lane_bf16): Add new intrinsics.
1644 2020-10-28 Jakub Jelinek <jakub@redhat.com>
1646 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ALLOCATE.
1647 * tree.h (OMP_CLAUSE_ALLOCATE_ALLOCATOR,
1648 OMP_CLAUSE_ALLOCATE_COMBINED): Define.
1649 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add allocate
1651 (walk_tree_1): Handle OMP_CLAUSE_ALLOCATE.
1652 * tree-pretty-print.c (dump_omp_clause): Likewise.
1653 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses,
1654 gimplify_omp_for): Likewise.
1655 * tree-nested.c (convert_nonlocal_omp_clauses,
1656 convert_local_omp_clauses): Likewise.
1657 * omp-low.c (scan_sharing_clauses): Likewise.
1659 2020-10-28 Jakub Jelinek <jakub@redhat.com>
1661 * omp-offload.c (omp_declare_target_tgt_fn_r): Handle direct calls to
1662 declare variant base functions.
1664 2020-10-28 Jakub Jelinek <jakub@redhat.com>
1667 * lto-streamer.h (omp_lto_output_declare_variant_alt,
1668 omp_lto_input_declare_variant_alt): Declare variant.
1669 * symtab.c (symtab_node::get_partitioning_class): Return
1670 SYMBOL_DUPLICATE for declare_variant_alt nodes.
1671 * passes.c (ipa_write_summaries): Add declare_variant_alt to
1673 * lto-cgraph.c (output_refs): Call omp_lto_output_declare_variant_alt
1674 on declare_variant_alt nodes.
1675 (input_refs): Call omp_lto_input_declare_variant_alt on
1676 declare_variant_alt nodes.
1677 * lto-streamer-out.c (output_function): Don't call
1678 collect_block_tree_leafs if DECL_INITIAL is error_mark_node.
1679 (lto_output): Call output_function even for declare_variant_alt
1681 * omp-general.c (omp_lto_output_declare_variant_alt,
1682 omp_lto_input_declare_variant_alt): New functions.
1684 2020-10-28 Jakub Jelinek <jakub@redhat.com>
1686 * wide-int.cc (wi::set_bit_large): Call canonize unless setting
1687 msb bit and clearing bits above it.
1689 2020-10-28 Andrew MacLeod <amacleod@redhat.com>
1691 * gimple-range-gori.cc (gori_compute_cache::cache_stmt): Accumulate
1692 return values and only set cache when everything returned true.
1693 * gimple-range.cc (get_tree_range): Set the return range to UNDEFINED
1694 when the range isn't supported.
1695 (gimple_ranger::calc_stmt): Return varying if the type is supported,
1696 even if the stmt processing failed. False otherwise.
1697 (range_of_builtin_ubsan_call): Don't use gcc_assert.
1698 (range_of_builtin_call): Ditto.
1699 (gimple_ranger::range_of_cond_expr): Ditto.
1700 (gimple_ranger::range_of_expr): Ditto
1701 (gimple_ranger::range_on_entry): Ditto.
1702 (gimple_ranger::range_on_exit): Ditto.
1703 (gimple_ranger::range_on_edge): DItto.
1704 (gimple_ranger::range_of_stmt): Don't use gcc_assert, and initialize
1705 return value to UNDEFINED.
1707 2020-10-27 Andreas Krebbel <krebbel@linux.ibm.com>
1709 PR rtl-optimization/97497
1710 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Do not
1711 return true for r12 when -fpic is used.
1713 2020-10-27 Tamar Christina <tamar.christina@arm.com>
1716 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Use unsigned
1717 arithmetic in check.
1719 2020-10-27 Andrea Corallo <andrea.corallo@arm.com>
1721 * config/aarch64/arm_neon.h (vcopy_lane_bf16, vcopyq_lane_bf16)
1722 (vcopyq_laneq_bf16, vcopy_laneq_bf16): New intrinsics.
1724 2020-10-27 Olivier Hainque <hainque@adacore.com>
1726 * config/vxworks.h (VX_CPU_PREFIX): #define here.
1727 * config/rs6000/vxworks.h: Remove #definition.
1729 2020-10-27 Olivier Hainque <hainque@adacore.com>
1731 * config/rs6000/vxworks.h (CPP_SPEC): Fix macro definition
1734 2020-10-27 Richard Biener <rguenther@suse.de>
1736 * tree-vect-slp.c (vect_build_slp_instance): Use ceil_log2
1737 to compute maximum group-size.
1739 2020-10-27 Jan Hubicka <jh@suse.cz>
1742 * ipa-modref-tree.h (modref_tree::remap_params): New member function.
1743 * ipa-modref.c (modref_summaries_lto::duplicate): Check that
1744 optimization summaries are not duplicated.
1745 (remap_arguments): Remove.
1746 (modref_transform): Rename to ...
1747 (update_signature): ... this one; handle also lto summary.
1748 (pass_ipa_modref::execute): Update signatures here rather
1749 than in transform hook.
1751 2020-10-27 Richard Biener <rguenther@suse.de>
1753 * tree-vect-slp.c (vect_slp_bbs): Remove no-op
1754 slp-max-insns-in-bb check.
1755 (vect_slp_function): Dump when splitting the function.
1756 Adjust the split condition for control altering stmts.
1757 * params.opt (-param=slp-max-insns-in-bb): Remove.
1758 * doc/invoke.texi (-param=slp-max-insns-in-bb): Likewise.
1760 2020-10-27 Richard Biener <rguenther@suse.de>
1762 * gimple.h (gimple_expr_type): For PHIs return the type
1764 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1765 Make sure edge order into copied loop headers line up with the
1767 * tree-vect-loop.c (vect_transform_cycle_phi): Handle nested
1769 (vectorizable_phi): New function.
1770 (vectorizable_live_operation): For BB vectorization compute insert
1772 * tree-vect-slp.c (vect_free_slp_tree): Deal with NULL
1773 SLP_TREE_CHILDREN entries.
1774 (vect_create_new_slp_node): Add overloads with pre-existing node
1776 (vect_print_slp_graph): Likewise.
1777 (vect_mark_slp_stmts): Likewise.
1778 (vect_mark_slp_stmts_relevant): Likewise.
1779 (vect_gather_slp_loads): Likewise.
1780 (vect_optimize_slp): Likewise.
1781 (vect_slp_analyze_node_operations): Likewise.
1782 (vect_bb_slp_scalar_cost): Likewise.
1783 (vect_remove_slp_scalar_calls): Likewise.
1784 (vect_get_and_check_slp_defs): Handle PHIs.
1785 (vect_build_slp_tree_1): Handle PHIs.
1786 (vect_build_slp_tree_2): Continue SLP build, following PHI
1787 arguments. Fix memory leak.
1788 (vect_build_slp_tree): Put stub node into the hash-map so
1789 we can discover cycles directly.
1790 (vect_build_slp_instance): Set the backedge SLP def for
1792 (vect_analyze_slp_backedges): Remove.
1793 (vect_analyze_slp): Do not call it.
1794 (vect_slp_convert_to_external): Release SLP_TREE_LOAD_PERMUTATION.
1795 (vect_slp_analyze_node_operations): Handle stray failed
1796 backedge defs by failing.
1797 (vect_slp_build_vertices): Adjust leaf condition.
1798 (vect_bb_slp_mark_live_stmts): Handle PHIs, use visited
1799 hash-set to handle cycles.
1800 (vect_slp_analyze_operations): Adjust.
1801 (vect_bb_partition_graph_r): Likewise.
1802 (vect_slp_function): Adjust split condition to allow CFG
1804 (vect_schedule_slp_instance): Rename to ...
1805 (vect_schedule_slp_node): ... this. Move DFS walk to ...
1806 (vect_schedule_scc): ... this new function.
1807 (vect_schedule_slp): Call it. Remove ad-hoc vectorized
1809 * tree-vect-stmts.c (vect_analyze_stmt): Call
1811 (vect_transform_stmt): Likewise.
1812 (vect_is_simple_use): Handle vect_backedge_def.
1813 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Only
1814 set loop header PHIs to vect_unknown_def_type for loop
1816 * tree-vectorizer.h (enum vect_def_type): Add vect_backedge_def.
1817 (enum stmt_vec_info_type): Add phi_info_type.
1818 (vectorizable_phi): Declare.
1820 2020-10-27 Richard Biener <rguenther@suse.de>
1822 * tree-vect-slp.c (vect_build_slp_tree_2): When vectorizing
1823 BBs splat uniform operands and stop SLP discovery.
1825 2020-10-27 Iain Buclaw <ibuclaw@gdcproject.org>
1827 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_D_CRITSEC_SIZE):
1829 * config/glibc-d.c (glibc_d_critsec_size): Likewise.
1830 (TARGET_D_CRITSEC_SIZE): Likewise.
1831 * config/i386/linux-common.h (GNU_USER_TARGET_D_CRITSEC_SIZE):
1833 * config/sol2-d.c (solaris_d_critsec_size): Likewise.
1834 (TARGET_D_CRITSEC_SIZE): Likewise.
1835 * doc/tm.texi.in (TARGET_D_CRITSEC_SIZE): Likewise.
1836 * doc/tm.texi: Regenerate.
1838 2020-10-27 Martin Liska <mliska@suse.cz>
1840 PR gcov-profile/97461
1841 * gcov-io.h (GCOV_PREALLOCATED_KVP): Pre-allocate 64
1844 2020-10-27 Jan Hubicka <jh@suse.cz>
1846 * tree-ssa-alias.c (attr_fnspec::verify): Re-enabl checking.
1848 2020-10-27 Jan Hubicka <jh@suse.cz>
1850 * builtin-attrs.def (STRERRNOC): New macro.
1851 (STRERRNOP): New macro.
1852 (ATTR_ERRNOCONST_NOTHROW_LEAF_LIST): New attr list.
1853 (ATTR_ERRNOPURE_NOTHROW_LEAF_LIST): New attr list.
1854 * builtins.def (ATTR_MATHFN_ERRNO): Use
1855 ATTR_ERRNOCONST_NOTHROW_LEAF_LIST.
1856 (ATTR_MATHFN_FPROUNDING_ERRNO): Use ATTR_ERRNOCONST_NOTHROW_LEAF_LIST
1857 or ATTR_ERRNOPURE_NOTHROW_LEAF_LIST.
1859 2020-10-27 Kito Cheng <kito.cheng@sifive.com>
1861 * common/config/riscv/riscv-common.c (opt_var_ref_t): New.
1862 (riscv_ext_flag_table_t): New.
1863 (riscv_ext_flag_table): New.
1864 (riscv_parse_arch_string): Pass gcc_options* instead of
1865 &opts->x_target_flags only, and using riscv_arch_option_table to
1867 (riscv_handle_option): Update argument for riscv_parse_arch_string.
1868 (riscv_expand_arch): Ditto.
1869 (riscv_expand_arch_from_cpu): Ditto.
1871 2020-10-27 Jan Hubicka <jh@suse.cz>
1873 * tree-ssa-ccp.c (evaluate_stmt): Use EAF_RETURN_ARG; do not handle
1874 string buitings specially.
1876 2020-10-27 Jan Hubicka <jh@suse.cz>
1878 * tree.c (set_call_expr_flags): Fix string for ECF_RET1.
1879 (build_common_builtin_nodes): Do not set ECF_RET1 for memcpy, memmove,
1880 and memset. They are handled by builtin_fnspec.
1882 2020-10-27 Jan Hubicka <jh@suse.cz>
1884 * builtins.c (builtin_fnspec): Add bzero, memcmp, memcmp_eq, bcmp,
1885 strncmp, strncmp_eq, strncasecmp, rindex, strlen, strlnen, strcasecmp,
1886 strcspn, strspn, strcmp, strcmp_eq.
1888 2020-10-27 Richard Biener <rguenther@suse.de>
1890 * tree-vectorizer.h (slp_tree_pool): Declare.
1891 (_slp_tree::operator new): Likewise.
1892 (_slp_tree::operator delete): Likewise.
1893 * tree-vectorizer.c (vectorize_loops): Allocate and free the
1895 (pass_slp_vectorize::execute): Likewise.
1896 * tree-vect-slp.c (slp_tree_pool): Define.
1897 (_slp_tree::operator new): Likewise.
1898 (_slp_tree::operator delete): Likewise.
1900 2020-10-27 Martin Liska <mliska@suse.cz>
1902 * lto-wrapper.c (run_gcc): Do not use sub-make when jobserver is
1903 not detected properly.
1905 2020-10-27 Martin Liska <mliska@suse.cz>
1907 * symbol-summary.h (call_summary_base): Pass symtab hooks to
1908 base and register (or unregister) hooks directly.
1910 2020-10-27 Martin Liska <mliska@suse.cz>
1912 * symbol-summary.h (function_summary_base::unregister_hooks):
1913 Call disable_insertion_hook and disable_duplication_hook.
1914 (function_summary_base::symtab_insertion): New field.
1915 (function_summary_base::symtab_removal): Likewise.
1916 (function_summary_base::symtab_duplication): Likewise.
1917 Register hooks in function_summary_base and directly register
1918 (or unregister) hooks.
1920 2020-10-26 Andrew MacLeod <amacleod@redhat.com>
1922 PR tree-optimization/97567
1923 * gimple-range-gori.cc (gori_compute::logical_combine): Union the
1924 ranges of operand1 and operand2, not intersect.
1926 2020-10-26 Jan Hubicka <jh@suse.cz>
1928 * attr-fnspec.h: Update toplevel comment.
1929 (attr_fnspec::attr_fnspec): New constructor.
1930 (attr_fnspec::arg_read_p,
1931 attr_fnspec::arg_written_p,
1932 attr_fnspec::arg_access_size_given_by_arg_p,
1933 attr_fnspec::arg_single_access_p
1934 attr_fnspec::loads_known_p
1935 attr_fnspec::stores_known_p,
1936 attr_fnspec::clobbers_errno_p): New member functions.
1937 (gimple_call_fnspec): Declare.
1938 (builtin_fnspec): Declare.
1939 * builtins.c: Include attr-fnspec.h
1940 (builtin_fnspec): New function.
1941 * builtins.def (BUILT_IN_MEMCPY): Do not specify RET1 fnspec.
1942 (BUILT_IN_MEMMOVE): Do not specify RET1 fnspec.
1943 (BUILT_IN_MEMSET): Do not specify RET1 fnspec.
1944 (BUILT_IN_STRCAT): Do not specify RET1 fnspec.
1945 (BUILT_IN_STRCPY): Do not specify RET1 fnspec.
1946 (BUILT_IN_STRNCAT): Do not specify RET1 fnspec.
1947 (BUILT_IN_STRNCPY): Do not specify RET1 fnspec.
1948 (BUILT_IN_MEMCPY_CHK): Do not specify RET1 fnspec.
1949 (BUILT_IN_MEMMOVE_CHK): Do not specify RET1 fnspec.
1950 (BUILT_IN_MEMSET_CHK): Do not specify RET1 fnspec.
1951 (BUILT_IN_STRCAT_CHK): Do not specify RET1 fnspec.
1952 (BUILT_IN_STRCPY_CHK): Do not specify RET1 fnspec.
1953 (BUILT_IN_STRNCAT_CHK): Do not specify RET1 fnspec.
1954 (BUILT_IN_STRNCPY_CHK): Do not specify RET1 fnspec.
1955 * gimple.c (gimple_call_fnspec): Return attr_fnspec.
1956 (gimple_call_arg_flags): Update.
1957 (gimple_call_return_flags): Update.
1958 * tree-ssa-alias.c (check_fnspec): New function.
1959 (ref_maybe_used_by_call_p_1): Use fnspec for builtin handling.
1960 (call_may_clobber_ref_p_1): Likewise.
1961 (attr_fnspec::verify): Update verifier.
1962 * calls.c (decl_fnspec): New function.
1963 (decl_return_flags): Use it.
1965 2020-10-26 Aldy Hernandez <aldyh@redhat.com>
1967 PR tree-optimization/97555
1968 * range-op.cc (range_tests): Test 1-bit signed invert.
1969 * value-range.cc (subtract_one): Adjust comment.
1971 (irange::invert): Call add_one.
1973 2020-10-26 Jan Hubicka <jh@suse.cz>
1975 * cgraph.h (cgraph_node::optimize_for_size_p): Return
1976 optimize_size_level.
1977 (cgraph_node::optimize_for_size_p): Update.
1978 * coretypes.h (enum optimize_size_level): New enum.
1979 * predict.c (unlikely_executed_edge_p): Microoptimize.
1980 (optimize_function_for_size_p): Return optimize_size_level.
1981 (optimize_bb_for_size_p): Likewise.
1982 (optimize_edge_for_size_p): Likewise.
1983 (optimize_insn_for_size_p): Likewise.
1984 (optimize_loop_nest_for_size_p): Likewise.
1985 * predict.h (optimize_function_for_size_p): Update declaration.
1986 (optimize_bb_for_size_p): Update declaration.
1987 (optimize_edge_for_size_p): Update declaration.
1988 (optimize_insn_for_size_p): Update declaration.
1989 (optimize_loop_for_size_p): Update declaration.
1990 (optimize_loop_nest_for_size_p): Update declaration.
1992 2020-10-26 Richard Biener <rguenther@suse.de>
1994 * tree-vect-slp.c (enum slp_instance_kind): New.
1995 (vect_build_slp_instance): Split out from...
1996 (vect_analyze_slp_instance): ... this.
1998 2020-10-26 Andrew MacLeod <amacleod@redhat.com>
2000 * gimple-range.cc (range_of_builtin_call): Initialize zerov to 0.
2002 2020-10-26 Jan Hubicka <jh@suse.cz>
2005 * cgraphclones.c (cgraph_node::materialize_clone): Clear stmt
2007 * cgraphunit.c (mark_functions_to_output): Do not clear them here.
2008 * ipa-inline-transform.c (inline_transform): Clear stmt references.
2009 * symtab.c (symtab_node::clear_stmts_in_references): Make recursive
2011 * tree-ssa-structalias.c (ipa_pta_execute): Do not clear references.
2013 2020-10-26 Zhiheng Xie <xiezhiheng@huawei.com>
2014 Nannan Zheng <zhengnannan@huawei.com>
2016 * config/aarch64/aarch64-builtins.c: Add FLAG STORE.
2017 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
2018 for store intrinsics.
2020 2020-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2022 PR tree-optimization/97546
2023 * gimple-ssa-store-merging.c (find_bswap_or_nop): Return NULL if
2024 type is not INTEGER_CST.
2026 2020-10-26 Richard Biener <rguenther@suse.de>
2029 * expr.c (const_scalar_mask_from_tree): Remove.
2030 (expand_expr_real_1): Always VIEW_CONVERT integer mode
2031 vector constants to an integer type.
2032 * tree.c (build_truth_vector_type_for_mode): Use a single-bit
2033 boolean component type for non-vector-mode mask_mode.
2035 2020-10-26 H.J. Lu <hjl.tools@gmail.com>
2038 * config/i386/i386-expand.c (ix86_expand_cmpstrn_or_cmpmem):
2039 Return false for -mno-inline-all-stringops.
2041 2020-10-26 H.J. Lu <hjl.tools@gmail.com>
2044 * config/i386/i386-expand.c (ix86_expand_cmpstrn_or_cmpmem): New
2046 * config/i386/i386-protos.h (ix86_expand_cmpstrn_or_cmpmem): New
2048 * config/i386/i386.md (cmpmemsi): New pattern.
2050 2020-10-26 Andreas Krebbel <krebbel@linux.ibm.com>
2052 * config/s390/vector.md ("vcond_mask_<mode><mode>"): New expander.
2054 2020-10-26 Richard Biener <rguenther@suse.de>
2056 * sbitmap.c (sbitmap_vector_alloc): Use size_t for byte
2057 quantities to avoid overflow.
2059 2020-10-26 Richard Biener <rguenther@suse.de>
2061 PR tree-optimization/97539
2062 * tree-vect-loop-manip.c (vect_do_peeling): Reset out-of-loop
2063 debug uses before peeling.
2065 2020-10-26 Jan Hubicka <hubicka@ucw.cz>
2067 * cgraph.h (struct cgraph_node): Make ipa_transforms_to_apply vl_ptr.
2068 * ipa-inline-analysis.c (initialize_growth_caches): Disable insertion
2069 and duplication hooks.
2070 * ipa-inline-transform.c (clone_inlined_nodes): Clear
2071 ipa_transforms_to_apply.
2072 (save_inline_function_body): Disable insertion hoook for
2073 ipa_saved_clone_sources.
2074 * ipa-prop.c (ipcp_transformation_initialize): Disable insertion hook.
2075 * ipa-prop.h (ipa_node_params_t): Disable insertion hook.
2076 * ipa-reference.c (propagate): Disable insertion hoook.
2077 * ipa-sra.c (ipa_sra_summarize_function): Move out of anonymous
2079 (ipa_sra_function_summaries::insert): New virtual function.
2080 * passes.c (execute_one_pass): Do not add transforms to inline clones.
2081 * symbol-summary.h (function_summary_base): Make insert and duplicate
2082 hooks fail instead of silently producing empty summaries; add way to
2083 disable duplication hooks
2084 (call_summary_base): Likewise.
2085 * tree-nested.c (nested_function_info::get_create): Disable insertion
2087 (maybe_record_nested_function): Likewise.
2089 2020-10-26 Xionghu Luo <luoxhu@linux.ibm.com>
2091 * cfg.c (debug_bb): New overloaded function.
2092 (debug_bb_n): New overloaded function.
2093 * cfg.h (debug_bb): New declaration.
2094 (debug_bb_n): New declaration.
2095 * print-rtl.c (debug_bb_slim): Call debug_bb with flags.
2097 2020-10-24 H.J. Lu <hjl.tools@gmail.com>
2100 * configure.ac (HAVE_AS_WORKING_DWARF_4_FLAG): Renamed to ...
2101 (HAVE_AS_WORKING_DWARF_N_FLAG): This. Don't define if there is
2102 an extra assembly input file in debug info. Replace success
2103 with dwarf4_success in the 32-bit --gdwarf-4 check.
2104 * dwarf2out.c (asm_outputs_debug_line_str): Check
2105 HAVE_AS_WORKING_DWARF_N_FLAG instead of
2106 HAVE_AS_WORKING_DWARF_4_FLAG.
2107 * gcc.c (ASM_DEBUG_SPEC): Likewise.
2108 (ASM_DEBUG_OPTION_SPEC): Likewise.
2109 * config.in: Regenerated.
2110 * configure: Likewise.
2112 2020-10-24 Aldy Hernandez <aldyh@redhat.com>
2114 PR tree-optimization/97538
2115 * calls.c (get_size_range): Handle undefined ranges.
2117 2020-10-24 Martin Liska <mliska@suse.cz>
2119 * cgraph.c (cgraph_node::former_thunk_p): Move out of CHECKING_P
2122 2020-10-24 Alan Modra <amodra@gmail.com>
2124 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Limit
2125 AND addressing to just lvx/stvx style addresses.
2127 2020-10-24 Alan Modra <amodra@gmail.com>
2129 * config/rs6000/rs6000.md (cstore<mode>4): Don't call
2130 rs6000_emit_int_cmove for power10 when -mno-isel.
2132 2020-10-23 Jan Hubicka <hubicka@ucw.cz>
2134 * Makefile.in: Add symtab-thunks.o
2135 (GTFILES): Add symtab-thunks.h and symtab-thunks.cc; remove cgraphunit.c
2136 * cgraph.c: Include symtab-thunks.h.
2137 (cgraph_node::create_thunk): Update
2138 (symbol_table::create_edge): Update
2139 (cgraph_node::dump): Update
2140 (cgraph_node::call_for_symbol_thunks_and_aliases): Update
2141 (set_nothrow_flag_1): Update
2142 (set_malloc_flag_1): Update
2143 (set_const_flag_1): Update
2144 (collect_callers_of_node_1): Update
2145 (clone_of_p): Update
2146 (cgraph_node::verify_node): Update
2147 (cgraph_node::function_symbol): Update
2148 (cgraph_c_finalize): Call thunk_info::release.
2149 (cgraph_node::has_thunk_p): Update
2150 (cgraph_node::former_thunk_p): Move here from cgraph.h; reimplement.
2151 * cgraph.h (struct cgraph_thunk_info): Rename to symtab-thunks.h.
2152 (cgraph_node): Remove thunk field; add thunk bitfield.
2153 (cgraph_node::expand_thunk): Move to symtab-thunks.h
2154 (symtab_thunks_cc_finalize): Declare.
2155 (cgraph_node::has_gimple_body_p): Update.
2156 (cgraph_node::former_thunk_p): Update.
2157 * cgraphclones.c: Include symtab-thunks.h.
2158 (duplicate_thunk_for_node): Update.
2159 (cgraph_edge::redirect_callee_duplicating_thunks): Update.
2160 (cgraph_node::expand_all_artificial_thunks): Update.
2161 (cgraph_node::create_edge_including_clones): Update.
2162 * cgraphunit.c: Include symtab-thunks.h.
2163 (vtable_entry_type): Move to symtab-thunks.c.
2164 (cgraph_node::analyze): Update.
2165 (analyze_functions): Update.
2166 (mark_functions_to_output): Update.
2167 (thunk_adjust): Move to symtab-thunks.c
2168 (cgraph_node::expand_thunk): Move to symtab-thunks.c
2169 (cgraph_node::assemble_thunks_and_aliases): Update.
2170 (output_in_order): Update.
2171 (cgraphunit_c_finalize): Do not clear vtable_entry_type.
2172 (cgraph_node::create_wrapper): Update.
2173 * gengtype.c (open_base_files): Add symtab-thunks.h
2174 * ipa-comdats.c (propagate_comdat_group): UPdate.
2175 (ipa_comdats): Update.
2176 * ipa-cp.c (determine_versionability): UPdate.
2177 (gather_caller_stats): Update.
2178 (count_callers): Update
2179 (set_single_call_flag): Update
2180 (initialize_node_lattices): Update
2181 (call_passes_through_thunk_p): Update
2182 (call_passes_through_thunk): Update
2183 (propagate_constants_across_call): Update
2184 (find_more_scalar_values_for_callers_subset): Update
2185 (has_undead_caller_from_outside_scc_p): Update
2186 * ipa-fnsummary.c (evaluate_properties_for_edge): Update.
2187 (compute_fn_summary): Update.
2188 (inline_analyze_function): Update.
2189 * ipa-icf.c: Include symtab-thunks.h.
2190 (sem_function::equals_wpa): Update.
2191 (redirect_all_callers): Update.
2192 (sem_function::init): Update.
2193 (sem_function::parse): Update.
2194 * ipa-inline-transform.c: Include symtab-thunks.h.
2195 (inline_call): Update.
2196 (save_inline_function_body): Update.
2197 (preserve_function_body_p): Update.
2198 * ipa-inline.c (inline_small_functions): Update.
2199 * ipa-polymorphic-call.c: Include alloc-pool.h, symbol-summary.h,
2201 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Update.
2202 * ipa-pure-const.c: Include symtab-thunks.h.
2203 (analyze_function): Update.
2204 * ipa-sra.c (check_for_caller_issues): Update.
2205 * ipa-utils.c (ipa_reverse_postorder): Update.
2206 (ipa_merge_profiles): Update.
2207 * ipa-visibility.c (non_local_p): Update.
2208 (cgraph_node::local_p): Update.
2209 (function_and_variable_visibility): Update.
2210 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
2211 * lto-cgraph.c: Include alloc-pool.h, symbol-summary.h and
2213 (lto_output_edge): Update.
2214 (lto_output_node): Update.
2215 (compute_ltrans_boundary): Update.
2216 (output_symtab): Update.
2217 (verify_node_partition): Update.
2218 (input_overwrite_node): Update.
2219 (input_node): Update.
2220 * lto-streamer-in.c (fixup_call_stmt_edges): Update.
2221 * symtab-thunks.cc: New file.
2222 * symtab-thunks.h: New file.
2223 * toplev.c (toplev::finalize): Call symtab_thunks_cc_finalize.
2224 * trans-mem.c (ipa_tm_mayenterirr_function): Update.
2225 (ipa_tm_execute): Update.
2226 * tree-inline.c (expand_call_inline): Update.
2227 * tree-nested.c (create_nesting_tree): Update.
2228 (convert_all_function_calls): Update.
2229 (gimplify_all_functions): Update.
2230 * tree-profile.c (tree_profiling): Update.
2231 * tree-ssa-structalias.c (associate_varinfo_to_alias): Update.
2232 * tree.c (free_lang_data_in_decl): Update.
2233 * value-prof.c (init_node_map): Update.
2235 2020-10-23 Marek Polacek <polacek@redhat.com>
2238 * doc/invoke.texi: Document -Wsizeof-array-div.
2240 2020-10-23 Martin Sebor <msebor@redhat.com>
2243 * attribs.c (init_attr_rdwr_indices): Handle static VLA parameters.
2245 2020-10-23 Douglas Rupp <rupp@adacore.com>
2247 * config/vxworks.h (VXWORKS_NET_LIBS_RTP): Use -lrtnet if
2248 rtnetStackLib.h is available,fallback to -lnet otherwise.
2250 2020-10-23 Douglas Rupp <rupp@adacore.com>
2252 * gcc.c (if-exists-then-else): New built-in spec function.
2253 * doc/invoke.texi: Document it.
2255 2020-10-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2257 * doc/extend.texi (PowerPC Built-in Functions): Replace
2258 extraneous characters with whitespace.
2260 2020-10-23 Martin Liska <mliska@suse.cz>
2262 * gcov.c (read_count_file): Never call gcov_sync with a negative
2265 2020-10-23 Jakub Jelinek <jakub@redhat.com>
2267 * Makefile.in (PLUGIN_HEADERS): Add gomp-constants.h and $(EXPR_H).
2268 (s-header-vars): Accept not just spaces but also tabs between *_H name
2269 and =. Handle common/config/ headers similarly to config. Don't
2270 throw away everything from first ... to last / on the remaining
2271 string, instead skip just ... to corresponding last / without
2272 intervening spaces and tabs.
2273 (install-plugin): Treat common/config headers like config headers.
2274 * config/i386/t-i386 (TM_H): Add
2275 $(srcdir)/common/config/i386/i386-cpuinfo.h.
2277 2020-10-23 Jakub Jelinek <jakub@redhat.com>
2279 PR tree-optimization/97164
2280 * stor-layout.c (layout_type): Also reject arrays where element size
2281 is constant, but not a multiple of element alignment.
2283 2020-10-23 Eric Botcazou <ebotcazou@adacore.com>
2285 * tree-ssa-loop-ivopts.c (analyze_and_mark_doloop_use): Bail out if
2286 the loop is subject to a pragma Unroll with no specific count.
2288 2020-10-23 Dennis Zhang <dennis.zhang@arm.com>
2290 * config/arm/mve.md (mve_vsubq<mode>): New entry for vsub instruction
2291 using expression 'minus'.
2292 (mve_vsubq_f<mode>): Use minus instead of VSUBQ_F unspec.
2293 * config/arm/neon.md (sub<mode>3, sub<mode>3_fp16): Removed.
2294 (neon_vsub<mode>): Use gen_sub<mode>3 instead of gen_sub<mode>3_fp16.
2295 * config/arm/vec-common.md (sub<mode>3): Use the new mode macros
2296 ARM_HAVE_<MODE>_ARITH. Use iterator VDQ instead of VALL.
2298 2020-10-23 Martin Liska <mliska@suse.cz>
2301 * lto-wrapper.c (make_exists): New function.
2302 (run_gcc): Use it to check that make is present and working
2303 for parallel execution.
2305 2020-10-23 Richard Biener <rguenther@suse.de>
2308 2020-10-22 Richard Biener <rguenther@suse.de>
2311 * expr.c (expand_expr_real_1): Be more careful when
2312 expanding a VECTOR_BOOLEAN_TYPE_P VECTOR_CSTs.
2314 2020-10-23 Kewen Lin <linkw@linux.ibm.com>
2316 * tree-vect-loop.c (vect_transform_loop): Remove the redundant
2317 LOOP_VINFO_FULLY_MASKED_P check.
2319 2020-10-23 Dennis Zhang <dennis.zhang@arm.com>
2321 * config/arm/mve.md (mve_vsubq<mode>): New entry for vsub instruction
2322 using expression 'minus'.
2323 (mve_vsubq_f<mode>): Use minus instead of VSUBQ_F unspec.
2324 * config/arm/neon.md (sub<mode>3, sub<mode>3_fp16): Removed.
2325 (neon_vsub<mode>): Use gen_sub<mode>3 instead of gen_sub<mode>3_fp16.
2326 * config/arm/vec-common.md (sub<mode>3): Use the new mode macros
2327 ARM_HAVE_<MODE>_ARITH. Use iterator VDQ instead of VALL.
2329 2020-10-22 Alan Modra <amodra@gmail.com>
2331 * config/rs6000/rs6000.c (rs6000_emit_xxspltidp_v2df): Delete
2332 debug printf. Remove trailing ".\n" from inform message.
2335 2020-10-22 Andrew MacLeod <amacleod@redhat.com>
2337 * gimple-range-gori.cc (is_gimple_logical_p): Use types_compatible_p
2338 for logical compatibility.
2339 (logical_stmt_cache::cacheable_p): Ditto.
2341 2020-10-22 Jan Hubicka <hubicka@ucw.cz>
2343 * cgraph.c (cgraph_node::get_untransformed_body): Perform lazy
2344 clone materialization.
2345 * cgraph.h (cgraph_node::materialize_clone): Declare.
2346 (symbol_table::materialize_all_clones): Remove.
2347 * cgraphclones.c (cgraph_materialize_clone): Turn to ...
2348 (cgraph_node::materialize_clone): .. this one; move here
2349 dumping from symbol_table::materialize_all_clones.
2350 (symbol_table::materialize_all_clones): Remove.
2351 * cgraphunit.c (mark_functions_to_output): Clear stmt references.
2352 (cgraph_node::expand): Initialize bitmaps early;
2353 do not call execute_all_ipa_transforms if there are no transforms.
2354 * ipa-inline-transform.c (save_inline_function_body): Fix formating.
2355 (inline_transform): Materialize all clones before function is modified.
2356 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
2357 Materialize clone if needed.
2358 * ipa.c (class pass_materialize_all_clones): Remove.
2359 (make_pass_materialize_all_clones): Remove.
2360 * passes.c (execute_all_ipa_transforms): Materialize all clones.
2361 * passes.def: Remove pass_materialize_all_clones.
2362 * tree-pass.h (make_pass_materialize_all_clones): Remove.
2363 * tree-ssa-structalias.c (ipa_pta_execute): Clear refs.
2365 2020-10-22 Will Schmidt <will_schmidt@vnet.ibm.com>
2367 * config/rs6000/altivec.h (vec_xl_zext, vec_xl_sext, vec_xst_trunc):
2369 * config/rs6000/rs6000-builtin.def (BU_P10V_OVERLOAD_X): New builtin
2371 (BU_P10V_AV_X): New builtin macro.
2372 (se_lxvrhbx, se_lxrbhx, se_lxvrwx, se_lxvrdx): Define internal names
2373 for load and sign extend vector element.
2374 (ze_lxvrbx, ze_lxvrhx, ze_lxvrwx, ze_lxvrdx): Define internal names
2375 for load and zero extend vector element.
2376 (tr_stxvrbx, tr_stxvrhx, tr_stxvrwx, tr_stxvrdx): Define internal names
2377 for truncate and store vector element.
2378 (se_lxvrx, ze_lxvrx, tr_stxvrx): Define internal names for overloaded
2379 load/store rightmost element.
2380 * config/rs6000/rs6000-call.c (altivec_builtin_types): Define the
2381 internal monomorphs P10_BUILTIN_SE_LXVRBX, P10_BUILTIN_SE_LXVRHX,
2382 P10_BUILTIN_SE_LXVRWX, P10_BUILTIN_SE_LXVRDX,
2383 P10_BUILTIN_ZE_LXVRBX, P10_BUILTIN_ZE_LXVRHX, P10_BUILTIN_ZE_LXVRWX,
2384 P10_BUILTIN_ZE_LXVRDX,
2385 P10_BUILTIN_TR_STXVRBX, P10_BUILTIN_TR_STXVRHX, P10_BUILTIN_TR_STXVRWX,
2386 P10_BUILTIN_TR_STXVRDX,
2387 (altivec_expand_lxvr_builtin): New expansion for load element builtins.
2388 (altivec_expand_stv_builtin): Update to for truncate and store builtins.
2389 (altivec_expand_builtin): Add clases for load/store rightmost builtins.
2390 (altivec_init_builtins): Add def_builtin entries for
2391 __builtin_altivec_se_lxvrbx, __builtin_altivec_se_lxvrhx,
2392 __builtin_altivec_se_lxvrwx, __builtin_altivec_se_lxvrdx,
2393 __builtin_altivec_ze_lxvrbx, __builtin_altivec_ze_lxvrhx,
2394 __builtin_altivec_ze_lxvrwx, __builtin_altivec_ze_lxvrdx,
2395 __builtin_altivec_tr_stxvrbx, __builtin_altivec_tr_stxvrhx,
2396 __builtin_altivec_tr_stxvrwx, __builtin_altivec_tr_stxvrdx,
2397 __builtin_vec_se_lxvrx, __builtin_vec_ze_lxvrx, __builtin_vec_tr_stxvrx.
2398 * config/rs6000/vsx.md (vsx_lxvr<wd>x, vsx_stxvr<wd>x, vsx_stxvr<wd>x):
2399 New define_insn entries.
2400 * doc/extend.texi: Add documentation for vsx_xl_sext, vsx_xl_zext,
2403 2020-10-22 Will Schmidt <will_schmidt@vnet.ibm.com>
2405 * config/rs6000/vsx.md (enum unspec): Add
2406 UNSPEC_EXTENDDITI2 and UNSPEC_MTVSRD_DITI_W1 entries.
2407 (mtvsrdd_diti_w1, extendditi2_vector): New define_insns.
2408 (extendditi2): New define_expand.
2410 2020-10-22 Alexandre Oliva <oliva@adacore.com>
2412 * config/i386/mingw-w64.h (TARGET_LIBC_HAS_FUNCTION): Enable
2413 sincos optimization.
2415 2020-10-22 Alan Modra <amodra@gmail.com>
2417 * config/rs6000/vsx.md (vec_cntmb_<mode>, vec_extract_<mode>),
2418 (vec_expand_<mode>): Replace <VSX_MM_SUFFIX> with <wd>.
2420 2020-10-22 Richard Biener <rguenther@suse.de>
2422 * tree-vect-slp.c (vect_analyze_slp_instance): Refactor so
2423 computing a vector type early is not needed, for store group
2424 splitting compute a new vector type based on the desired
2427 2020-10-22 Richard Biener <rguenther@suse.de>
2430 * expr.c (expand_expr_real_1): Be more careful when
2431 expanding a VECTOR_BOOLEAN_TYPE_P VECTOR_CSTs.
2433 2020-10-22 David Malcolm <dmalcolm@redhat.com>
2435 * ipa-modref-tree.c (selftest::test_insert_search_collapse): Fix
2437 (selftest::test_merge): Fix leaks.
2439 2020-10-22 Andreas Krebbel <krebbel@linux.ibm.com>
2442 * config/s390/vector.md ("vec_cmp<VI_HW:mode><VI_HW:mode>")
2443 ("vec_cmpu<VI_HW:mode><VI_HW:mode>"): New expanders.
2445 2020-10-22 Andreas Krebbel <krebbel@linux.ibm.com>
2447 PR rtl-optimization/97439
2448 * dfp.c (decimal_real_maxval): Set the sign flag in the
2451 2020-10-22 Martin Liska <mliska@suse.cz>
2454 * cfgexpand.c (stack_protect_decl_phase):
2455 Guard with lookup_attribute("no_stack_protector") at
2457 (expand_used_vars): Likewise here.
2458 * doc/extend.texi: Document no_stack_protector attribute.
2460 2020-10-22 Martin Liska <mliska@suse.cz>
2462 * cfgexpand.c: Move the enum to ...
2463 * coretypes.h (enum stack_protector): ... here.
2464 * function.c (assign_parm_adjust_stack_rtl): Use the stack_protector
2467 2020-10-22 Kito Cheng <kito.cheng@sifive.com>
2469 * config/riscv/multilib-generator: Add TODO, import itertools
2470 and functools.reduce.
2471 Handle expantion operator.
2472 (LONG_EXT_PREFIXES): New.
2473 (arch_canonicalize): Update comment and improve python3
2474 debuggability/compatibility.
2475 (add_underline_prefix): New.
2476 (_expand_combination): Ditto.
2478 (expand_combination): Ditto.
2480 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2482 * tree-ssa-phiopt.c (cond_removal_in_popcount_clz_ctz_pattern):
2483 For CLZ and CTZ tests, use type temporary instead of mode.
2485 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2487 * config.gcc (x86_archs): Add samuel-2, nehemiah, c7 and esther.
2488 (x86_64_archs): Add eden-x2, nano, nano-1000, nano-2000, nano-3000,
2489 nano-x2, eden-x4, nano-x4, x86-64-v2, x86-64-v3 and x86-64-v4.
2490 (i[34567]86-*-* | x86_64-*-*): Only allow x86-64-v* as argument
2493 2020-10-22 Jan Hubicka <jh@suse.cz>
2495 * ipa-pure-const.c (funct_state_summary_t::insert): Free stale
2498 2020-10-22 Jan Hubicka <hubicka@ucw.cz>
2500 * cgraph.c: Include tree-nested.h
2501 (cgraph_node::create): Call maybe_record_nested_function.
2502 (cgraph_node::remove): Do not remove function from nested function
2504 (cgraph_node::dump): Update.
2505 (cgraph_node::unnest): Move to tree-nested.c
2506 (cgraph_node::verify_node): Update.
2507 (cgraph_c_finalize): Call nested_function_info::release.
2508 * cgraph.h (struct symtab_node): Remove nested function info.
2509 * cgraphclones.c (cgraph_node::create_clone): Do not clone nested
2511 * cgraphunit.c (cgraph_node::analyze): Update.
2512 (cgraph_node::expand): Do not worry about nested functions; they are
2514 (symbol_table::finalize_compilation_unit): Call
2515 nested_function_info::release.
2516 * gimplify.c: Include tree-nested.h
2517 (unshare_body): Update.
2518 (unvisit_body): Update.
2519 * omp-offload.c (omp_discover_implicit_declare_target): Update.
2520 * tree-nested.c: Include alloc-pool.h, tree-nested.h, symbol-summary.h
2521 (nested_function_sum): New static variable.
2522 (nested_function_info::get): New member function.
2523 (nested_function_info::get_create): New member function.
2524 (unnest_function): New function.
2525 (nested_function_info::~nested_function_info): New member function.
2526 (nested_function_info::release): New function.
2527 (maybe_record_nested_function): New function.
2528 (lookup_element_for_decl): Update.
2529 (check_for_nested_with_variably_modified): Update.
2530 (create_nesting_tree): Update.
2531 (unnest_nesting_tree_1): Update.
2532 (gimplify_all_functions): Update.
2533 (lower_nested_functions): Update.
2534 * tree-nested.h (class nested_function_info): New class.
2535 (maybe_record_nested_function): Declare.
2536 (unnest_function): Declare.
2537 (first_nested_function): New inline function.
2538 (next_nested_function): New inline function.
2539 (nested_function_origin): New inline function.
2541 2020-10-22 liuhongt <hongtao.liu@intel.com>
2543 PR rtl-optimization/97249
2544 * simplify-rtx.c (simplify_binary_operation_1): Simplify
2545 vec_select of a subreg of X to a vec_select of X.
2547 2020-10-22 liuhongt <hongtao.liu@intel.com>
2550 * config/i386/constraints.md ("Br"): New special memory
2552 * config/i386/i386-expand.c (ix86_binary_operator_ok): Both
2553 source operand cannot be in memory or bcst_memory_operand.
2554 * config/i386/i386.c (ix86_print_operand): Print bcst_mem_operand.
2555 * config/i386/i386.h (VALID_BCST_MODE_P): New.
2556 * config/i386/predicates.md (bcst_mem_operand): New predicate
2557 for AVX512 embedding broadcast memory operand.
2558 (bcst_vector_operand): New predicate, vector_operand or
2560 * config/i386/sse.md
2561 (*<plusminus_insn><mode>3<mask_name><round_name>): Extend
2562 predicate and constraints to handle bcst_mem_operand.
2563 (*mul<mode>3<mask_name><round_name>): Ditto.
2564 (<sse>_div<mode>3<mask_name><round_name>): Ditto.
2565 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
2567 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
2569 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
2571 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
2573 (*<plusminus_insn><mode>3): Ditto.
2574 (avx512dq_mul<mode>3<mask_name>): Ditto.
2575 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
2576 (*andnot<mode>3): Ditto.
2577 (<mask_codefor><code><mode>3<mask_name>): Ditto.
2578 (*sub<mode>3<mask_name>_bcst): Removed.
2579 (*add<mode>3<mask_name>_bcst): Ditto.
2580 (*mul<mode>3<mask_name>_bcst): Ditto.
2581 (*<avx512>_div<mode>3<mask_name>_bcst): Ditto.
2582 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1):
2584 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2):
2586 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3):
2588 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1):
2590 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2):
2592 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3):
2594 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1):
2596 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2):
2598 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3):
2600 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1):
2602 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2):
2604 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3):
2606 (*sub<mode>3_bcst): Ditto.
2607 (*add<mode>3_bcst): Ditto.
2608 (*avx512dq_mul<mode>3<mask_name>_bcst): Ditto.
2609 (*avx512f_mul<mode>3<mask_name>_bcst): Ditto.
2610 (*andnot<mode>3_bcst): Ditto.
2611 (*<code><mode>3_bcst): Ditto.
2612 * config/i386/subst.md (bcst_round_constraint): New subst
2614 (bcst_round_nimm_predicate): Ditto.
2615 (bcst_mask_prefix3): Ditto.
2616 (bcst_mask_prefix4): Ditto.
2618 2020-10-22 liuhongt <hongtao.liu@intel.com>
2621 * ira-costs.c (record_operand_costs): Extract memory operand
2622 from recog_data.operand[i] for record_address_regs.
2623 (record_reg_classes): Extract memory operand from OP for
2624 conditional judgement MEM_P.
2625 * ira.c (ira_setup_alts): Ditto.
2626 * lra-constraints.c (extract_mem_from_operand): New function.
2627 (satisfies_memory_constraint_p): Extract memory operand from
2628 OP for decompose_mem_address, return false when there's no
2629 memory operand inside OP.
2630 (process_alt_operands): Remove MEM_P (op) since it would be
2631 judged in satisfies_memory_constraint_p.
2632 * recog.c (asm_operand_ok): Extract memory operand from OP for
2633 judgement of memory_operand (OP, VOIDmode).
2634 (constrain_operands): Don't unwrapper unary operator when
2635 there's memory operand inside.
2636 * rtl.h (extract_mem_from_operand): New decl.
2638 2020-10-22 Dennis Zhang <dennis.zhang@arm.com>
2640 * config/arm/mve.md (mve_vmaxq_<supf><mode>): Replace with ...
2641 (mve_vmaxq_s<mode>, mve_vmaxq_u<mode>): ... these new insns to
2642 use smax/umax instead of VMAXQ.
2643 (mve_vminq_<supf><mode>): Replace with ...
2644 (mve_vminq_s<mode>, mve_vminq_u<mode>): ... these new insns to
2645 use smin/umin instead of VMINQ.
2646 (mve_vmaxnmq_f<mode>): Use smax instead of VMAXNMQ_F.
2647 (mve_vminnmq_f<mode>): Use smin instead of VMINNMQ_F.
2648 * config/arm/vec-common.md (smin<mode>3): Use the new mode macros
2649 ARM_HAVE_<MODE>_ARITH.
2650 (umin<mode>3, smax<mode>3, umax<mode>3): Likewise.
2652 2020-10-22 Andrew MacLeod <amacleod@redhat.com>
2654 PR tree-optimization/97520
2655 * gimple-range.cc (range_of_non_trivial_assignment): Handle x = &a
2656 by returning a non-zero range.
2658 2020-10-22 Dennis Zhang <dennis.zhang@arm.com>
2660 * config/arm/mve.md (mve_vmulq<mode>): New entry for vmul instruction
2661 using expression 'mult'.
2662 (mve_vmulq_f<mode>): Use mult instead of VMULQ_F.
2663 * config/arm/neon.md (mul<mode>3): Removed.
2664 * config/arm/vec-common.md (mul<mode>3): Use the new mode macros
2665 ARM_HAVE_<MODE>_ARITH. Use mode iterator VDQWH instead of VALLW.
2667 2020-10-22 Andrew MacLeod <amacleod@redhat.com>
2669 PR tree-optimization/97515
2670 * value-query.cc (range_query::value_of_expr): If the result is
2671 UNDEFINED, check to see if the global value is a constant.
2672 (range_query::value_on_edge): Ditto.
2674 2020-10-21 Jan Hubicka <hubicka@ucw.cz>
2677 * ipa-inline.c (inline_insns_single): Add hint2 parameter.
2678 (inline_insns_auto): Add hint2 parameter.
2679 (can_inline_edge_by_limits_p): Update.
2680 (want_inline_small_function_p): Update.
2681 (wrapper_heuristics_may_apply): Update.
2683 2020-10-21 Richard Biener <rguenther@suse.de>
2684 Andrew MacLeod <amacleod@redhat.com>
2685 Martin Liska <mliska@suse.cz>
2688 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove call to
2689 build_distinct_type_copy().
2691 2020-10-21 Jan Hubicka <jh@suse.cz>
2694 * ipa-fnsummary.c (ipa_dump_hints): Add INLINE_HINT_builtin_constant_p.
2695 (ipa_fn_summary::~ipa_fn_summary): Free builtin_constant_p_parms.
2696 (ipa_fn_summary_t::duplicate): Duplicate builtin_constant_p_parms.
2697 (ipa_dump_fn_summary): Dump builtin_constant_p_parms.
2698 (add_builtin_constant_p_parm): New function
2699 (set_cond_stmt_execution_predicate): Update builtin_constant_p_parms.
2700 (ipa_call_context::estimate_size_and_time): Set
2701 INLINE_HINT_builtin_constant_p..
2702 (ipa_merge_fn_summary_after_inlining): Merge builtin_constant_p_parms.
2703 (inline_read_section): Read builtin_constant_p_parms.
2704 (ipa_fn_summary_write): Write builtin_constant_p_parms.
2705 * ipa-fnsummary.h (enum ipa_hints_vals): Add
2706 INLINE_HINT_builtin_constant_p.
2707 * ipa-inline.c (want_inline_small_function_p): Use
2708 INLINE_HINT_builtin_constant_p.
2709 (edge_badness): Use INLINE_HINT_builtin_constant_p.
2711 2020-10-21 Douglas Rupp <rupp@adacore.com>
2713 * config/vx-common.h (LINK_SPEC, LIB_SPEC): Remove #undef.
2715 2020-10-21 Douglas Rupp <rupp@adacore.com>
2716 Olivier Hainque <hainque@adacore.com>
2718 * config.gcc (powerpc*-wrs-vxworks7r*): New case.
2719 * config/rs6000/vxworks.h: Rework to handle VxWorks7.
2720 Refactor as common bits + vx6 vs vx7 ones. For the
2721 latter, rely essentially on the Linux configuration
2722 and adjust CPU to _VX_CPU in CPP_SPEC. Add a case
2723 for e6500. Use SUB3TARGET_OVERRIDE_OPTIONS for specifics
2724 to preserve the Linux SUBSUBTARGET_OVERRIDE_OPTIONS
2727 2020-10-21 Richard Biener <rguenther@suse.de>
2729 PR tree-optimization/97500
2730 * tree-vect-slp.c (vect_analyze_slp_backedges): Do not
2731 fill backedges for inductions.
2733 2020-10-21 liuhongt <hongtao.liu@intel.com>
2736 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Move
2737 op_true to dest directly when op_true equals op_false.
2739 2020-10-21 Jakub Jelinek <jakub@redhat.com>
2741 PR tree-optimization/97503
2742 * tree-ssa-phiopt.c: Include internal-fn.h.
2743 (cond_removal_in_popcount_pattern): Rename to ...
2744 (cond_removal_in_popcount_clz_ctz_pattern): ... this. Handle not just
2745 popcount, but also clz and ctz if it has C?Z_DEFINED_VALUE_AT_ZERO 2.
2747 2020-10-21 Richard Biener <rguenther@suse.de>
2749 * cfg.c (htab_bb_copy_original_entry): Remove.
2750 (bb_copy_hasher): Likewise.
2751 (bb_original, bb_copy, loop_copy): Use
2752 hash_map<int_hash<int, -1, -2>, int>.
2753 (original_copy_bb_pool): Remove.
2754 (initialize_original_copy_tables): Adjust.
2755 (reset_original_copy_tables): Likewise.
2756 (free_original_copy_tables): Likewise.
2757 (original_copy_tables_initialized_p): Likewise.
2758 (copy_original_table_clear): Simplify.
2759 (copy_original_table_set): Likewise.
2760 (get_bb_original): Likewise.
2761 (get_bb_copy): Likewise.
2762 (get_loop_copy): Likewise.
2764 2020-10-21 Richard Biener <rguenther@suse.de>
2766 * cfghooks.c (copy_bbs): Split out loop computing new_edges.
2768 2020-10-21 Aldy Hernandez <aldyh@redhat.com>
2770 * gimple-range.cc (gimple_ranger::range_of_ssa_name_with_loop_info):
2771 Remove TREE_OVERFLOW special case.
2772 * vr-values.c (bounds_of_var_in_loop): Adjust overflow for
2775 2020-10-21 Aldy Hernandez <aldyh@redhat.com>
2777 * vr-values.h: Remove simplify_cond_using_ranges_2.
2778 (range_fits_type_p): New.
2779 * vr-values.c (range_fits_type_p): Remove static qualifier.
2780 (vrp_simplify_cond_using_ranges): Move...
2781 * tree-vrp.c (vrp_simplify_cond_using_ranges): ...to here.
2783 2020-10-20 Andrew MacLeod <amacleod@redhat.com>
2785 PR tree-optimization/97505
2786 * vr-values.c (vr_values::extract_range_basic): Trap if
2787 vr_values version disagrees with range_of_builtin_call.
2789 2020-10-20 David Edelsohn <dje.gcc@gmail.com>
2791 * config/rs6000/rs6000.c (rs6000_option_override_internal):
2792 Don't implcitly enable Altivec ABI if set on the command line.
2794 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
2796 * calls.c (get_size_range): Adjust to work with ranger.
2797 * calls.h (get_size_range): Add ranger argument to prototype.
2798 * gimple-ssa-warn-restrict.c (class wrestrict_dom_walker): Remove.
2799 (check_call): Pull out of wrestrict_dom_walker into a
2801 (wrestrict_dom_walker::before_dom_children): Rename to...
2802 (wrestrict_walk): ...this.
2803 (pass_wrestrict::execute): Instantiate ranger.
2804 (class builtin_memref): Add stmt and query fields.
2805 (builtin_access::builtin_access): Add range_query field.
2806 (builtin_memref::builtin_memref): Same.
2807 (builtin_memref::extend_offset_range): Same.
2808 (builtin_access::builtin_access): Make work with ranger.
2809 (wrestrict_dom_walker::check_call): Pull out into...
2810 (check_call): ...here.
2811 (check_bounds_or_overlap): Add range_query argument.
2812 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap):
2813 Add range_query and gimple stmt arguments.
2815 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
2817 * gimple-ssa-warn-alloca.c (enum alloca_type): Remove
2818 ALLOCA_BOUND_UNKNOWN and ALLOCA_CAST_FROM_SIGNED.
2819 (warn_limit_specified_p): New.
2820 (alloca_call_type_by_arg): Remove.
2821 (cast_from_signed_p): Remove.
2823 (alloca_call_type): Remove heuristics and replace with call into
2825 (pass_walloca::execute): Instantiate ranger.
2827 2020-10-20 Tobias Burnus <tobias@codesourcery.com>
2829 * lto-wrapper.c (run_gcc): Use proper variable for
2830 %u.ltrans_args dump suffix.
2832 2020-10-20 Zhiheng Xie <xiezhiheng@huawei.com>
2833 Nannan Zheng <zhengnannan@huawei.com>
2835 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
2836 for get/set reg intrinsics.
2838 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
2840 * gimple-range.cc (gimple_ranger::range_of_builtin_ubsan_call):
2841 Make externally visble...
2842 (range_of_builtin_ubsan_call): ...here. Add range_query argument.
2843 (gimple_ranger::range_of_builtin_call): Make externally visible...
2844 (range_of_builtin_call): ...here. Add range_query argument.
2845 * gimple-range.h (range_of_builtin_call): Move out from class and
2846 make externally visible.
2847 * vr-values.c (vr_values::extract_range_basic): Abstract out
2848 builtin handling to...
2849 (vr_values::range_of_expr): Handle non SSAs.
2850 (vr_values::extract_range_builtin): ...here.
2851 * vr-values.h (class vr_values): Add extract_range_builtin.
2852 (range_of_expr): Rename NAME to EXPR.
2854 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
2856 PR tree-optimization/97501
2857 * gimple-range.cc (gimple_ranger::range_of_ssa_name_with_loop_info):
2858 Saturate overflows returned from SCEV.
2860 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
2862 * value-range.cc (irange::operator=): Split up call to
2863 copy_legacy_range into...
2864 (irange::copy_to_legacy): ...this.
2865 (irange::copy_legacy_to_multi_range): ...and this.
2866 (irange::copy_legacy_range): Remove.
2867 * value-range.h: Remove copoy_legacy_range.
2868 Add copy_legacy_to_multi_range and copy_to_legacy.
2870 2020-10-20 Tobias Burnus <tobias@codesourcery.com>
2872 * doc/invoke.texi (NVPTX options): Use @item not @itemx.
2874 2020-10-20 Richard Biener <rguenther@suse.de>
2876 * tree-cfg.c (reinstall_phi_args): Remove.
2877 (gimple_split_edge): Remove PHIs around the edge redirection
2878 to avoid touching them at all.
2880 2020-10-20 Richard Biener <rguenther@suse.de>
2882 * tree-vect-loop.c (vectorizable_reduction): Use the correct
2883 loops latch edge for the PHI arg lookup.
2885 2020-10-20 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2887 * config/msp430/msp430.md (andneghi3): Allow general operand for
2888 op1 and update output assembler template.
2890 2020-10-20 Tobias Burnus <tobias@codesourcery.com>
2892 * collect-utils.c (collect_execute, fork_execute): Add at-file suffix
2894 * collect-utils.h (collect_execute, fork_execute): Update prototype.
2895 * collect2.c (maybe_run_lto_and_relink, do_link, main, do_dsymutil):
2896 Update calls by passing NULL.
2897 * config/i386/intelmic-mkoffload.c (compile_for_target,
2898 generate_host_descr_file, prepare_target_image, main): Likewise.
2899 * config/gcn/mkoffload.c (compile_native, main): Pass at-file suffix.
2900 * config/nvptx/mkoffload.c (compile_native, main): Likewise.
2901 * lto-wrapper.c (compile_offload_image): Likewise.
2903 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
2905 * range-op.cc (operator_rshift::op1_range): Special case
2908 2020-10-20 Richard Biener <rguenther@suse.de>
2910 PR tree-optimization/97496
2911 * tree-vect-slp.c (vect_get_and_check_slp_defs): Guard extern
2912 promotion with not in pattern.
2914 2020-10-20 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
2916 * config/s390/s390.c (s390_expand_vec_strlen): Add alignment
2917 for memory access inside loop.
2919 2020-10-19 Andrew MacLeod <amacleod@redhat.com>
2921 PR tree-optimization/97360
2922 * gimple-range.h (range_compatible_p): New.
2923 * gimple-range-gori.cc (is_gimple_logical_p): Use range_compatible_p.
2924 (range_is_either_true_or_false): Ditto.
2925 (gori_compute::outgoing_edge_range_p): Cast result to the correct
2927 (logical_stmt_cache::cacheable_p): Use range_compatible_p.
2928 * gimple-range.cc (gimple_ranger::calc_stmt): Check range_compatible_p
2929 before casting the range.
2930 (gimple_ranger::range_on_exit): Use range_compatible_p.
2931 (gimple_ranger::range_on_edge): Ditto.
2933 2020-10-19 Martin Jambor <mjambor@suse.cz>
2935 PR tree-optimization/97456
2936 * tree-complex.c (set_component_ssa_name): Do not replace ignored decl
2937 default definitions with new component vars. Reorder if conditions.
2939 2020-10-19 David Edelsohn <dje.gcc@gmail.com>
2941 * config/rs6000/vsx.md (vextract_fp_from_shorth): Fix vals_be.
2942 (vextract_fp_from_shortl) Same.
2944 2020-10-19 Aldy Hernandez <aldyh@redhat.com>
2946 PR tree-optimization/97488
2947 * range-op.cc (operator_lshift::op1_range): Handle large right shifts.
2949 2020-10-19 Martin Liska <mliska@suse.cz>
2951 * ipa-modref.c (compute_parm_map): Clear vector.
2953 2020-10-19 Richard Biener <rguenther@suse.de>
2955 PR tree-optimization/97486
2956 * tree-vect-slp.c (vect_slp_function): Split after stmts
2959 2020-10-19 Jonathan Wakely <jwakely@redhat.com>
2961 * doc/invoke.texi (OPptimize Options): Add missing closing
2964 2020-10-19 Aldy Hernandez <aldyh@redhat.com>
2966 PR tree-optimization/97467
2967 * range-op.cc (operator_lshift::op1_range): Handle shifts by 0.
2969 2020-10-19 Richard Biener <rguenther@suse.de>
2971 PR tree-optimization/97466
2972 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
2973 spurious assert, re-indent.
2975 2020-10-19 Li Jia He <helijia@gcc.gnu.org>
2977 PR tree-optimization/66552
2978 * match.pd (x << (n % C) -> x << (n & C-1)): New simplification.
2980 2020-10-19 Richard Biener <rguenther@suse.de>
2982 * tree-cfg.c (verify_gimple_comparison): Drop special-case
2983 for pointer comparison.
2985 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
2987 * vr-values.c (dump_all_value_ranges): Only dump names which are
2990 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
2992 * range-op.cc (pointer_plus_operator::wi_fold): Make pointer_plus
2993 [0, 0] + const return a [const, const] range.
2995 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
2997 * gimple-ssa-evrp.c (hybrid_folder::value_on_edge): Call
2998 evrp_folder::value_of_expr directly.
2999 (hybrid_folder::value_of_stmt): Ditto.
3001 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
3003 PR tree-optimization/97462
3004 * range-op.cc (operator_lshift::op1_range): Don't trap on negative
3007 2020-10-16 Olivier Hainque <hainque@adacore.com>
3009 * config/vxworks.h (VX_CRTBEGIN_SPEC): Likewise.
3011 2020-10-16 Olivier Hainque <hainque@adacore.com>
3013 * config/vxworks/_vxworks-versions.h: Only include
3014 version.h if _WRS_VXWORKS_MAJOR is not defined.
3015 Provide a default _WRS_VXWORKS_MINOR (0).
3017 2020-10-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3020 * config/arm/arm.c (fp_bitlist): Add isa_bit_mve_float to FP bits array.
3022 2020-10-16 Richard Biener <rguenther@suse.de>
3024 * tree-vect-slp.c (vect_get_and_check_slp_defs): For BB
3025 vectorization swap operands only if it helps, demote mismatches to
3028 2020-10-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3031 * config/arm/arm-builtins.c (arm_strsbwbs_qualifiers): Modify array.
3032 (arm_strsbwbu_qualifiers): Likewise.
3033 (arm_strsbwbs_p_qualifiers): Likewise.
3034 (arm_strsbwbu_p_qualifiers): Likewise.
3035 * config/arm/arm_mve.h (__arm_vstrdq_scatter_base_wb_s64): Modify
3036 function definition.
3037 (__arm_vstrdq_scatter_base_wb_u64): Likewise.
3038 (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
3039 (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
3040 (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
3041 (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
3042 (__arm_vstrwq_scatter_base_wb_s32): Likewise.
3043 (__arm_vstrwq_scatter_base_wb_u32): Likewise.
3044 (__arm_vstrwq_scatter_base_wb_f32): Likewise.
3045 (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
3046 * config/arm/arm_mve_builtins.def (vstrwq_scatter_base_wb_add_u): Remove
3047 expansion for the builtin.
3048 (vstrwq_scatter_base_wb_add_s): Likewise.
3049 (vstrwq_scatter_base_wb_add_f): Likewise.
3050 (vstrdq_scatter_base_wb_add_u): Likewise.
3051 (vstrdq_scatter_base_wb_add_s): Likewise.
3052 (vstrwq_scatter_base_wb_p_add_u): Likewise.
3053 (vstrwq_scatter_base_wb_p_add_s): Likewise.
3054 (vstrwq_scatter_base_wb_p_add_f): Likewise.
3055 (vstrdq_scatter_base_wb_p_add_u): Likewise.
3056 (vstrdq_scatter_base_wb_p_add_s): Likewise.
3057 * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Remove
3059 (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
3060 (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Rename pattern to ...
3061 (mve_vstrwq_scatter_base_wb_<supf>v4si): This.
3062 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Remove expand.
3063 (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
3064 (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Rename pattern to ...
3065 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): This.
3066 (mve_vstrwq_scatter_base_wb_fv4sf): Remove expand.
3067 (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
3068 (mve_vstrwq_scatter_base_wb_fv4sf_insn): Rename pattern to ...
3069 (mve_vstrwq_scatter_base_wb_fv4sf): This.
3070 (mve_vstrwq_scatter_base_wb_p_fv4sf): Remove expand.
3071 (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
3072 (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Rename pattern to ...
3073 (mve_vstrwq_scatter_base_wb_p_fv4sf): This.
3074 (mve_vstrdq_scatter_base_wb_<supf>v2di): Remove expand.
3075 (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
3076 (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Rename pattern to ...
3077 (mve_vstrdq_scatter_base_wb_<supf>v2di): This.
3078 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Remove expand.
3079 (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
3080 (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Rename pattern to ...
3081 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): This.
3083 2020-10-16 Kito Cheng <kito.cheng@sifive.com>
3085 * config/riscv/multilib-generator (IMPLIED_EXT): New.
3086 (arch_canonicalize): Update comment and handle implied extensions.
3088 2020-10-16 Richard Biener <rguenther@suse.de>
3090 * tree-vect-slp.c (vect_get_and_check_slp_defs): First analyze
3091 all operands and fill in the def_stmts and ops entries.
3092 (vect_def_types_match): New helper.
3094 2020-10-16 Martin Liska <mliska@suse.cz>
3097 * ipa-prop.c (struct ipa_vr_ggc_hash_traits):
3098 Compare types of VRP as we can merge ranges of different types.
3100 2020-10-16 Richard Biener <rguenther@suse.de>
3102 PR tree-optimization/97428
3103 * tree-vect-slp.c (vect_analyze_slp_instance): Split store
3104 groups also for loop vectorization.
3106 2020-10-15 Tom de Vries <tdevries@suse.de>
3109 * config/nvptx/nvptx.opt (m32): Comment out.
3110 * doc/invoke.texi (NVPTX options): Remove -m32.
3112 2020-10-15 Jan Hubicka <hubicka@ucw.cz>
3113 Richard Biener <rguenther@suse.de>
3115 * attr-fnspec.h: Fix toplevel comment.
3117 2020-10-15 Richard Biener <rguenther@suse.de>
3119 * tree-pretty-print.c (dump_mem_ref): Print constant offset
3120 also for TARGET_MEM_REF.
3122 2020-10-15 Jan Hubicka <jh@suse.cz>
3124 * symtab.c (symtab_node::binds_to_current_def_p): Also accept symbols
3125 defined in other partition.
3127 2020-10-15 Richard Biener <rguenther@suse.de>
3129 * tree-vect-loop.c (vectorizable_live_operation): Adjust
3132 2020-10-15 Richard Biener <rguenther@suse.de>
3134 PR tree-optimization/97482
3135 * tree-data-ref.c (split_constant_offset_1): Handle
3136 trivial conversions better.
3137 * fold-const.c (convert_to_ptrofftype_loc): Elide conversion
3138 if the offset is already ptrofftype_p.
3140 2020-10-15 Martin Liska <mliska@suse.cz>
3143 * profile-count.c (profile_count::to_frequency): Move part of
3144 gcc_assert to STATIC_ASSERT.
3145 * regs.h (REG_FREQ_FROM_BB): Do not use count.to_frequency for
3146 a function that does not have count_max initialized.
3148 2020-10-15 Jakub Jelinek <jakub@redhat.com>
3150 * params.opt (-param-ipa-jump-function-lookups=): Add full stop at
3151 the end of the parameter description.
3153 2020-10-15 Kito Cheng <kito.cheng@sifive.com>
3155 * common/config/riscv/riscv-common.c (riscv_cpu_tables): New.
3156 (riscv_arch_str): Return empty string if current_subset_list
3158 (riscv_find_cpu): New.
3159 (riscv_handle_option): Verify option value of -mcpu.
3160 (riscv_expand_arch): Using std::string.
3161 (riscv_default_mtune): New.
3162 (riscv_expand_arch_from_cpu): Ditto.
3163 * config/riscv/riscv-cores.def: New.
3164 * config/riscv/riscv-protos.h (riscv_find_cpu): New.
3165 (riscv_cpu_info): New.
3166 * config/riscv/riscv.c (riscv_tune_info): Rename ...
3167 (riscv_tune_param): ... to this.
3168 (riscv_cpu_info): Rename ...
3169 (riscv_tune_info): ... to this.
3170 (tune_info): Rename ...
3171 (tune_param): ... to this.
3172 (rocket_tune_info): Update data type name.
3173 (sifive_7_tune_info): Ditto.
3174 (optimize_size_tune_info): Ditto.
3175 (riscv_cpu_info_table): Rename ...
3176 (riscv_tune_info_table): ... to this.
3177 (riscv_parse_cpu): Rename ...
3178 (riscv_parse_tune): ... to this, and translate valid -mcpu option to
3180 (riscv_rtx_costs): Rename tune_info to tune_param.
3181 (riscv_class_max_nregs): Ditto.
3182 (riscv_memory_move_cost): Ditto.
3183 (riscv_init_machine_status): Use value of -mcpu if -mtune is not
3184 given, and rename tune_info to tune_param.
3185 * config/riscv/riscv.h (riscv_expand_arch_from_cpu): New.
3186 (riscv_default_mtune): Ditto.
3187 (EXTRA_SPEC_FUNCTIONS): Add riscv_expand_arch_from_cpu and
3188 riscv_default_mtune.
3189 (OPTION_DEFAULT_SPECS): Handle default value of -march/-mabi.
3190 (DRIVER_SELF_SPECS): Expand -march from -mcpu if -march is not
3192 * config/riscv/riscv.opt (-mcpu): New option.
3193 * config/riscv/t-riscv ($(common_out_file)): Add
3194 riscv-cores.def to dependency.
3195 * doc/invoke.texi (RISC-V Option): Add -mcpu, and update the
3196 description of default value for -mtune and -march.
3198 2020-10-15 Hongyu Wang <hongyu.wang@intel.com>
3200 * common/config/i386/cpuinfo.h (get_available_features):
3202 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_HRESET_SET,
3203 OPTION_MASK_ISA2_HRESET_UNSET): New macros.
3204 (ix86_handle_option): Handle -mhreset.
3205 * common/config/i386/i386-cpuinfo.h (enum processor_features):
3207 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
3209 * config.gcc: Add hresetintrin.h
3210 * config/i386/hresetintrin.h: New header file.
3211 * config/i386/x86gprintrin.h: Include hresetintrin.h.
3212 * config/i386/cpuid.h (bit_HRESET): New.
3213 * config/i386/i386-builtin.def: Add new builtin.
3214 * config/i386/i386-expand.c (ix86_expand_builtin):
3216 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3218 * config/i386/i386-options.c (isa2_opts): Add -mhreset.
3219 (ix86_valid_target_attribute_inner_p): Handle hreset.
3220 * config/i386/i386.h (TARGET_HRESET, TARGET_HRESET_P,
3222 (PTA_ALDERLAKE): Add PTA_HRESET.
3223 * config/i386/i386.opt: Add option -mhreset.
3224 * config/i386/i386.md (UNSPECV_HRESET): New unspec.
3225 (hreset): New define_insn.
3226 * doc/invoke.texi: Document -mhreset.
3227 * doc/extend.texi: Document hreset.
3229 2020-10-15 Hongtao Liu <hongtao.liu@intel.com>
3231 * common/config/i386/cpuinfo.h (get_available_features):
3233 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_UINTR_SET
3234 OPTION_MASK_ISA2_UINTR_UNSET): New.
3235 (ix86_handle_option): Handle -muintr.
3236 * common/config/i386/i386-cpuinfo.h (enum processor_features):
3238 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
3240 * config.gcc: Add uintrintrin.h to extra_headers.
3241 * config/i386/uintrintrin.h: New.
3242 * config/i386/cpuid.h (bit_UINTR): New.
3243 * config/i386/i386-builtin-types.def: Add new types.
3244 * config/i386/i386-builtin.def: Add new builtins.
3245 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins): Add
3246 __builtin_ia32_testui.
3247 * config/i386/i386-builtins.h (ix86_builtins): Add
3248 IX86_BUILTIN_TESTUI.
3249 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3251 * config/i386/i386-expand.c (ix86_expand_special_args_builtin):
3252 Handle UINT8_FTYPE_VOID.
3253 (ix86_expand_builtin): Handle IX86_BUILTIN_TESTUI.
3254 * config/i386/i386-options.c (isa2_opts): Add -muintr.
3255 (ix86_valid_target_attribute_inner_p): Handle UINTR.
3256 (ix86_option_override_internal): Add TARGET_64BIT check for UINTR.
3257 * config/i386/i386.h (TARGET_UINTR, TARGET_UINTR_P, PTA_UINTR): New.
3258 (PTA_SAPPHIRRAPIDS): Add PTA_UINTR.
3259 * config/i386/i386.opt: Add -muintr.
3260 * config/i386/i386.md
3261 (define_int_iterator UINTR_UNSPECV): New.
3262 (define_int_attr uintr_unspecv): New.
3263 (uintr_<uintr_unspecv>, uintr_senduipi, testui):
3264 New define_insn patterns.
3265 * config/i386/x86gprintrin.h: Include uintrintrin.h
3266 * doc/invoke.texi: Document -muintr.
3267 * doc/extend.texi: Document uintr.
3269 2020-10-14 Martin Sebor <msebor@redhat.com>
3272 * builtins.c (gimple_parm_array_size): Peel off one less layer
3275 2020-10-14 Martin Sebor <msebor@redhat.com>
3278 * attribs.c (init_attr_rdwr_indices): Unwrap extra list layer.
3280 2020-10-14 Sunil K Pandey <skpgkp2@gmail.com>
3283 * config/i386/avx2intrin.h (_mm_broadcastsi128_si256): New intrinsics.
3284 (_mm_broadcastsd_pd): Ditto.
3285 * config/i386/avx512bwintrin.h (_mm512_loadu_epi16): New intrinsics.
3286 (_mm512_storeu_epi16): Ditto.
3287 (_mm512_loadu_epi8): Ditto.
3288 (_mm512_storeu_epi8): Ditto.
3289 * config/i386/avx512dqintrin.h (_mm_reduce_round_sd): New intrinsics.
3290 (_mm_mask_reduce_round_sd): Ditto.
3291 (_mm_maskz_reduce_round_sd): Ditto.
3292 (_mm_reduce_round_ss): Ditto.
3293 (_mm_mask_reduce_round_ss): Ditto.
3294 (_mm_maskz_reduce_round_ss): Ditto.
3295 (_mm512_reduce_round_pd): Ditto.
3296 (_mm512_mask_reduce_round_pd): Ditto.
3297 (_mm512_maskz_reduce_round_pd): Ditto.
3298 (_mm512_reduce_round_ps): Ditto.
3299 (_mm512_mask_reduce_round_ps): Ditto.
3300 (_mm512_maskz_reduce_round_ps): Ditto.
3301 * config/i386/avx512erintrin.h
3302 (_mm_mask_rcp28_round_sd): New intrinsics.
3303 (_mm_maskz_rcp28_round_sd): Ditto.
3304 (_mm_mask_rcp28_round_ss): Ditto.
3305 (_mm_maskz_rcp28_round_ss): Ditto.
3306 (_mm_mask_rsqrt28_round_sd): Ditto.
3307 (_mm_maskz_rsqrt28_round_sd): Ditto.
3308 (_mm_mask_rsqrt28_round_ss): Ditto.
3309 (_mm_maskz_rsqrt28_round_ss): Ditto.
3310 (_mm_mask_rcp28_sd): Ditto.
3311 (_mm_maskz_rcp28_sd): Ditto.
3312 (_mm_mask_rcp28_ss): Ditto.
3313 (_mm_maskz_rcp28_ss): Ditto.
3314 (_mm_mask_rsqrt28_sd): Ditto.
3315 (_mm_maskz_rsqrt28_sd): Ditto.
3316 (_mm_mask_rsqrt28_ss): Ditto.
3317 (_mm_maskz_rsqrt28_ss): Ditto.
3318 * config/i386/avx512fintrin.h (_mm_mask_sqrt_sd): New intrinsics.
3319 (_mm_maskz_sqrt_sd): Ditto.
3320 (_mm_mask_sqrt_ss): Ditto.
3321 (_mm_maskz_sqrt_ss): Ditto.
3322 (_mm_mask_scalef_sd): Ditto.
3323 (_mm_maskz_scalef_sd): Ditto.
3324 (_mm_mask_scalef_ss): Ditto.
3325 (_mm_maskz_scalef_ss): Ditto.
3326 (_mm_mask_cvt_roundsd_ss): Ditto.
3327 (_mm_maskz_cvt_roundsd_ss): Ditto.
3328 (_mm_mask_cvt_roundss_sd): Ditto.
3329 (_mm_maskz_cvt_roundss_sd): Ditto.
3330 (_mm_mask_cvtss_sd): Ditto.
3331 (_mm_maskz_cvtss_sd): Ditto.
3332 (_mm_mask_cvtsd_ss): Ditto.
3333 (_mm_maskz_cvtsd_ss): Ditto.
3334 (_mm512_cvtsi512_si32): Ditto.
3335 (_mm_cvtsd_i32): Ditto.
3336 (_mm_cvtss_i32): Ditto.
3337 (_mm_cvti32_sd): Ditto.
3338 (_mm_cvti32_ss): Ditto.
3339 (_mm_cvtsd_i64): Ditto.
3340 (_mm_cvtss_i64): Ditto.
3341 (_mm_cvti64_sd): Ditto.
3342 (_mm_cvti64_ss): Ditto.
3343 * config/i386/avx512vlbwintrin.h (_mm256_storeu_epi8): New intrinsics.
3344 (_mm_storeu_epi8): Ditto.
3345 (_mm256_loadu_epi16): Ditto.
3346 (_mm_loadu_epi16): Ditto.
3347 (_mm256_loadu_epi8): Ditto.
3348 (_mm_loadu_epi8): Ditto.
3349 (_mm256_storeu_epi16): Ditto.
3350 (_mm_storeu_epi16): Ditto.
3351 * config/i386/avx512vlintrin.h (_mm256_load_epi64): New intrinsics.
3352 (_mm_load_epi64): Ditto.
3353 (_mm256_load_epi32): Ditto.
3354 (_mm_load_epi32): Ditto.
3355 (_mm256_store_epi32): Ditto.
3356 (_mm_store_epi32): Ditto.
3357 (_mm256_loadu_epi64): Ditto.
3358 (_mm_loadu_epi64): Ditto.
3359 (_mm256_loadu_epi32): Ditto.
3360 (_mm_loadu_epi32): Ditto.
3361 (_mm256_mask_cvt_roundps_ph): Ditto.
3362 (_mm256_maskz_cvt_roundps_ph): Ditto.
3363 (_mm_mask_cvt_roundps_ph): Ditto.
3364 (_mm_maskz_cvt_roundps_ph): Ditto.
3365 * config/i386/avxintrin.h (_mm256_cvtsi256_si32): New intrinsics.
3366 * config/i386/emmintrin.h (_mm_loadu_si32): New intrinsics.
3367 (_mm_loadu_si16): Ditto.
3368 (_mm_storeu_si32): Ditto.
3369 (_mm_storeu_si16): Ditto.
3370 * config/i386/i386-builtin-types.def
3371 (V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT): Add new type.
3372 (V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT): Ditto.
3373 (V4SF_FTYPE_V4SF_V2DF_V4SF_UQI_INT): Ditto.
3374 (V2DF_FTYPE_V2DF_V4SF_V2DF_UQI_INT): Ditto.
3375 * config/i386/i386-builtin.def
3376 (__builtin_ia32_cvtsd2ss_mask_round): New builtin.
3377 (__builtin_ia32_cvtss2sd_mask_round): Ditto.
3378 (__builtin_ia32_rcp28sd_mask_round): Ditto.
3379 (__builtin_ia32_rcp28ss_mask_round): Ditto.
3380 (__builtin_ia32_rsqrt28sd_mask_round): Ditto.
3381 (__builtin_ia32_rsqrt28ss_mask_round): Ditto.
3382 (__builtin_ia32_reducepd512_mask_round): Ditto.
3383 (__builtin_ia32_reduceps512_mask_round): Ditto.
3384 (__builtin_ia32_reducesd_mask_round): Ditto.
3385 (__builtin_ia32_reducess_mask_round): Ditto.
3386 * config/i386/i386-expand.c
3387 (ix86_expand_round_builtin): Expand round builtin for new type.
3388 (V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT)
3389 (V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT)
3390 (V4SF_FTYPE_V4SF_V2DF_V4SF_UQI_INT)
3391 (V2DF_FTYPE_V2DF_V4SF_V2DF_UQI_INT)
3392 * config/i386/mmintrin.h ()
3393 Define datatype __m32 and __m16.
3394 Define datatype __m32_u and __m16_u.
3395 * config/i386/sse.md: Adjust pattern.
3396 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>): Adjust.
3397 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name>): Ditto.
3398 (sse2_cvtsd2ss<mask_name><round_name>): Ditto.
3399 (sse2_cvtss2sd<mask_name><round_saeonly_name>): Ditto.
3400 (avx512er_vmrcp28<mode><mask_name><round_saeonly_name>): Ditto.
3401 (avx512er_vmrsqrt28<mode><mask_name><round_saeonly_name>): Ditto.
3403 2020-10-14 Olivier Hainque <hainque@adacore.com>
3405 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Fix
3406 the VX_CPU selection for -mcpu=xscale on arm-vxworks.
3408 2020-10-14 Olivier Hainque <hainque@adacore.com>
3410 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Accommodate
3411 expectations from different versions of VxWorks, for 32 or 64bit
3414 2020-10-14 Olivier Hainque <hainque@adacore.com>
3416 * config/vxworks.h: #undef CPLUSPLUS_CPP_SPEC.
3418 2020-10-14 Olivier Hainque <hainque@adacore.com>
3420 * config/t-vxworks: Adjust the VxWorks alternative LIMITS_H guard
3421 for glimits.h, make it both closer to the previous one and easier to
3424 2020-10-14 Jakub Jelinek <jakub@redhat.com>
3427 * config/i386/i386.md (CC_CCC): New mode iterator.
3428 (*setcc_qi_addqi3_cconly_overflow_1_<mode>): New
3429 define_insn_and_split.
3430 * config/i386/i386.c (ix86_cc_mode): Return CCCmode
3431 for *setcc_qi_addqi3_cconly_overflow_1_<mode> pattern operands.
3432 (ix86_rtx_costs): Return true and *total = 0;
3433 for *setcc_qi_addqi3_cconly_overflow_1_<mode> pattern. Use op0 and
3434 op1 temporaries to simplify COMPARE checks.
3436 2020-10-14 Aldy Hernandez <aldyh@redhat.com>
3438 PR tree-optimization/97396
3439 * gimple-range.cc (gimple_ranger::range_of_phi): Do not call
3440 range_of_ssa_name_with_loop_info with the loop tree root.
3442 2020-10-14 Richard Biener <rguenther@suse.de>
3444 * tree-vect-slp.c (vect_get_and_check_slp_defs): Split out
3445 test for compatible operand types.
3447 2020-10-14 Olivier Hainque <hainque@adacore.com>
3449 * config/vxworks.c (vxworks_override_options): Guard pic checks with
3450 flag_pic > 0 instead of just flag_pic.
3452 2020-10-14 Jan Hubicka <hubicka@ucw.cz>
3454 * ipa-fnsummary.c (remap_edge_summaries): Make offset_map HOST_WIDE_INT.
3455 (remap_freqcounting_predicate): Likewise.
3456 (ipa_merge_fn_summary_after_inlining): Likewise.
3457 * ipa-predicate.c (predicate::remap_after_inlining): Likewise
3458 * ipa-predicate.h (remap_after_inlining): Update.
3460 2020-10-14 Jan Hubicka <jh@suse.cz>
3462 * ipa-modref.c (compute_parm_map): Handle POINTER_PLUS_EXPR in
3465 2020-10-14 Richard Biener <rguenther@suse.de>
3467 * tree-vect-slp.c (vect_get_and_check_slp_defs): Move
3468 check for duplicate/interleave of variable size constants
3469 to a place done once and early.
3470 (vect_build_slp_tree_2): Adjust heuristics when to build
3471 a BB SLP node from scalars.
3473 2020-10-14 Tom de Vries <tdevries@suse.de>
3475 * tracer.c (cached_can_duplicate_bb_p, analyze_bb): Use
3476 can_duplicate_block_p.
3477 (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
3478 (can_duplicate_bb_p): Move and merge ...
3479 * tree-cfg.c (gimple_can_duplicate_bb_p): ... here.
3481 2020-10-14 Jan Hubicka <hubicka@ucw.cz>
3483 * doc/invoke.texi: (ipa-jump-function-lookups): Document param.
3484 * ipa-modref.c (merge_call_side_effects): Use
3485 unadjusted_ptr_and_unit_offset.
3486 * ipa-prop.c (unadjusted_ptr_and_unit_offset): New function.
3487 * ipa-prop.h (unadjusted_ptr_and_unit_offset): Declare.
3488 * params.opt: (-param-ipa-jump-function-lookups): New.
3490 2020-10-14 Jan Hubicka <jh@suse.cz>
3493 * ipa-modref.c (ignore_edge): Do not ignore inlined edes.
3494 (ipa_merge_modref_summary_after_inlining): Improve debug output and
3495 fix parameter of ignore_stores_p.
3497 2020-10-14 Kito Cheng <kito.cheng@sifive.com>
3500 * expr.c (expand_assignment): Handle misaligned stores with PARALLEL
3503 2020-10-13 Jakub Jelinek <jakub@redhat.com>
3505 PR rtl-optimization/97386
3506 * combine.c (simplify_shift_const_1): Don't optimize nested ROTATEs if
3507 they have different modes.
3509 2020-10-13 Aldy Hernandez <aldyh@redhat.com>
3511 PR tree-optimization/97379
3512 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Do
3513 not save hash slot across calls to hash_table<>::get_or_insert.
3515 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
3517 * lto-wrapper.c (find_crtoffloadtable): Fix last commit
3518 by adding NULL as last argument to concat.
3520 2020-10-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3522 * config/aarch64/aarch64.c (neoversen2_tunings): Define.
3523 * config/aarch64/aarch64-cores.def (neoverse-n2): Use it.
3525 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
3527 * lto-wrapper.c (find_crtoffloadtable): With -save-temps,
3528 use non-temp file name utilizing the dump prefix.
3529 (run_gcc): Update call.
3531 2020-10-13 Richard Biener <rguenther@suse.de>
3533 PR tree-optimization/97382
3534 * tree-vectorizer.h (_stmt_vec_info::same_align_refs): Remove.
3535 (STMT_VINFO_SAME_ALIGN_REFS): Likewise.
3536 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
3537 allocate STMT_VINFO_SAME_ALIGN_REFS.
3538 (vec_info::free_stmt_vec_info): Do not release
3539 STMT_VINFO_SAME_ALIGN_REFS.
3540 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
3541 Do not compute self and read-read dependences.
3542 (vect_dr_aligned_if_related_peeled_dr_is): New helper.
3543 (vect_dr_aligned_if_peeled_dr_is): Likewise.
3544 (vect_update_misalignment_for_peel): Use it instead of
3545 iterating over STMT_VINFO_SAME_ALIGN_REFS.
3546 (dr_align_group_sort_cmp): New function.
3547 (vect_enhance_data_refs_alignment): Count the number of
3548 same aligned refs here and elide uses of STMT_VINFO_SAME_ALIGN_REFS.
3549 (vect_find_same_alignment_drs): Remove.
3550 (vect_analyze_data_refs_alignment): Do not call it.
3551 * vec.h (auto_vec<T, 0>::auto_vec): Adjust CTOR to take
3552 a vec<>&&, assert it isn't using auto storage.
3553 (auto_vec& operator=): Apply a similar change.
3555 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
3557 * config/nvptx/mkoffload.c (main): Add missing fclose (in).
3559 2020-10-13 Zhiheng Xie <xiezhiheng@huawei.com>
3560 Nannan Zheng <zhengnannan@huawei.com>
3562 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
3563 for mul/mla/mls intrinsics.
3565 2020-10-13 Jakub Jelinek <jakub@redhat.com>
3567 * omp-low.c (add_taskreg_looptemp_clauses): For triangular loops
3568 with non-constant number of iterations add another 4 _looptemp_
3569 clauses before the (optional) one for lastprivate.
3570 (lower_omp_for_lastprivate): Skip those clauses when looking for
3571 the lastprivate clause.
3572 (lower_omp_for): For triangular loops with non-constant number of
3573 iterations add another 4 _looptemp_ clauses.
3574 * omp-expand.c (expand_omp_for_init_counts): For triangular loops
3575 with non-constant number of iterations set counts[0],
3576 fd->first_inner_iterations, fd->factor and fd->adjn1 from the newly
3577 added _looptemp_ clauses.
3578 (expand_omp_for_init_vars): Initialize the newly added _looptemp_
3580 (find_lastprivate_looptemp): New function.
3581 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
3582 expand_omp_taskloop_for_outer): Use it instead of manually skipping
3585 2020-10-13 Jan Hubicka <hubicka@ucw.cz>
3588 * ipa-modref.c (dump_lto_records): Fix formating of dump file.
3589 (modref_summary::dump): Do not check loads to be non-null.
3590 (modref_summary_lto::dump): Do not check loads to be non-null.
3591 (merge_call_side_effects): Improve debug output.
3592 (analyze_call): Crash when cur_summary->loads is NULL.
3593 (analyze_function): Update.
3594 (modref_summaries::insert): Insert only into summaries, not
3595 optimization_summaries.
3596 (modref_summaries::duplicate): Likewise; crash when load or sotres
3598 (modref_summaries_lto::duplicate): Crash when loads or stores are NULL.
3599 (write_modref_records): param_index is signed.
3600 (read_modref_records): param_index is signed.
3601 (modref_write): Crash when loads or stores are NULL.
3602 (read_section): Compensate previous change.
3603 (pass_modref::execute): Do not check optimization_summaries t be
3606 (compute_parm_map): Fix formating.
3607 (modref_propagate_in_scc): Do not expect loads/stores to be NULL.
3609 2020-10-12 Alexandre Oliva <oliva@adacore.com>
3611 * builtins.c (mathfn_built_in_type): Use CFN_ enumerators.
3613 2020-10-12 Andrew MacLeod <amacleod@redhat.com>
3615 PR tree-optimization/97381
3616 * gimple-range-gori.cc (gori_compute::compute_operand2_range): If a range cannot be
3617 calculated through operand 2, return false.
3619 2020-10-12 Aldy Hernandez <aldyh@redhat.com>
3621 PR tree-optimization/97378
3622 * range-op.cc (operator_trunc_mod::wi_fold): Return VARYING for mod by zero.
3624 2020-10-12 David Malcolm <dmalcolm@redhat.com>
3626 * doc/invoke.texi: Document -Wanalyzer-write-to-const and
3627 -Wanalyzer-write-to-string-literal.
3629 2020-10-12 Martin Sebor <msebor@redhat.com>
3634 * builtins.c (access_ref::access_ref): Initialize new member. Use
3636 (access_ref::size_remaining): Define new member function.
3637 (inform_access): Handle expressions referencing objects.
3638 (gimple_call_alloc_size): Call get_size_range instead of get_range.
3639 (gimple_call_return_array): New function.
3640 (get_range): Rename...
3641 (get_offset_range): ...to this. Improve detection of ranges from
3642 types of expressions.
3643 (gimple_call_return_array): Adjust calls to get_range per above.
3644 (compute_objsize): Same. Set maximum size or offset instead of
3645 failing for unknown objects and handle more kinds of expressions.
3646 (compute_objsize): Call access_ref::size_remaining.
3647 (compute_objsize): Have transitional wrapper fail for pointers
3648 into unknown objects.
3649 (expand_builtin_strncmp): Call access_ref::size_remaining and
3651 * builtins.h (access_ref::size_remaining): Declare new member function.
3652 (access_ref::set_max_size_range): Define new member function.
3653 (access_ref::add_ofset, access_ref::add_max_ofset): Same.
3654 (access_ref::add_base0): New data member.
3655 * calls.c (get_size_range): Change argument type. Handle new
3657 * calls.h (get_size_range): Adjust signature.
3658 (enum size_range_flags): Define new type.
3659 * gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Correct
3660 argument to get_size_range.
3661 * tree-ssa-strlen.c (get_range): Handle anti-ranges.
3662 (maybe_warn_overflow): Check DECL_P before assuming it's one.
3664 2020-10-12 Martin Sebor <msebor@redhat.com>
3668 * builtins.c (get_range): Return full range of type when neither
3669 value nor its range is available. Fail for ranges inverted due
3670 to the signedness of offsets.
3671 (compute_objsize): Handle more special array members. Handle
3672 POINTER_PLUS_EXPR and VIEW_CONVERT_EXPR that come up in front end
3674 (access_ref::offset_bounded): Define new member function.
3675 * builtins.h (access_ref::eval): New data member.
3676 (access_ref::offset_bounded): New member function.
3677 (access_ref::offset_zero): New member function.
3678 (compute_objsize): Declare a new overload.
3679 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Use
3680 enum special_array_member.
3681 * tree.c (component_ref_size): Use special_array_member.
3682 * tree.h (special_array_member): Define a new type.
3683 (component_ref_size): Change signature.
3685 2020-10-12 Jan Hubicka <hubicka@ucw.cz>
3687 * ipa-modref.c (modref_summaries): Remove field IPA.
3688 (class modref_summary_lto): New global variable.
3689 (class modref_summaries_lto): New.
3690 (modref_summary::modref_summary): Remove loads_lto and stores_lto.
3691 (modref_summary::~modref_summary): Remove loads_lto and stores_lto.
3692 (modref_summary::useful_p): Do not use lto_useful.
3693 (modref_records_lto): New typedef.
3694 (struct modref_summary_lto): New type.
3695 (modref_summary_lto::modref_summary_lto): New member function.
3696 (modref_summary_lto::~modref_summary_lto): New member function.
3697 (modref_summary_lto::useful_p): New member function.
3698 (modref_summary::dump): Do not handle lto.
3699 (modref_summary_lto::dump): New member function.
3700 (get_modref_function_summary): Use optimization_summary.
3701 (merge_call_side_effects): Use optimization_summary.
3702 (analyze_call): Use optimization_summary.
3703 (struct summary_ptrs): New struture.
3704 (analyze_load): Update to handle separate lto and non-lto summaries.
3705 (analyze_store): Likewise.
3706 (analyze_stmt): Likewise.
3707 (remove_summary): Break out from ...
3708 (analyze_function): ... here; update to handle seprated summaries.
3709 (modref_summaries::insert): Do not handle lto summary.
3710 (modref_summaries_lto::insert): New member function.
3711 (modref_summaries::duplicate): Do not handle lto summary.
3712 (modref_summaries_lto::duplicate): New member function.
3713 (read_modref_records): Expect nolto_ret or lto_ret to be NULL>
3714 (modref_write): Write lto summary.
3715 (read_section): Handle separated summaries.
3716 (modref_read): Initialize separated summaries.
3717 (modref_transform): Handle separated summaries.
3718 (pass_modref::execute): Turn summary to optimization_summary; handle
3720 (ignore_edge): Handle separate summaries.
3721 (ipa_merge_modref_summary_after_inlining): Likewise.
3722 (collapse_loads): Likewise.
3723 (modref_propagate_in_scc): Likewise.
3724 (pass_ipa_modref::execute): Likewise.
3725 (ipa_modref_c_finalize): Likewise.
3726 * ipa-modref.h (modref_records_lto): Remove typedef.
3727 (struct modref_summary): Remove stores_lto, loads_lto and finished
3728 fields; remove lto_useful_p member function.
3730 2020-10-12 Richard Biener <rguenther@suse.de>
3732 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
3733 Use SLP_TREE_REPRESENTATIVE.
3734 * tree-vectorizer.h (_slp_tree::vertex): New member used
3735 for graphds interfacing.
3736 * tree-vect-slp.c (vect_build_slp_tree_2): Allocate space
3737 for PHI SLP children.
3738 (vect_analyze_slp_backedges): New function filling in SLP
3739 node children for PHIs that correspond to backedge values.
3740 (vect_analyze_slp): Call vect_analyze_slp_backedges for the
3742 (vect_slp_analyze_node_operations): Deal with a cyclic graph.
3743 (vect_schedule_slp_instance): Likewise.
3744 (vect_schedule_slp): Likewise.
3745 (slp_copy_subtree): Remove.
3746 (vect_slp_rearrange_stmts): Likewise.
3747 (vect_attempt_slp_rearrange_stmts): Likewise.
3748 (vect_slp_build_vertices): New functions.
3749 (vect_slp_permute): Likewise.
3750 (vect_slp_perms_eq): Likewise.
3751 (vect_optimize_slp): Remove special code to elide
3752 permutations with SLP reductions. Implement generic
3753 permute optimization.
3755 2020-10-12 Christophe Lyon <christophe.lyon@linaro.org>
3757 * config/arm/arm.c (arm_preferred_simd_mode): Use E_FOOmode
3760 2020-10-12 Martin Liska <mliska@suse.cz>
3762 PR tree-optimization/97079
3763 * internal-fn.c (internal_fn_stored_value_index): Handle also
3765 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Bail
3766 out for unsupported TREE_TYPE.
3768 2020-10-12 Richard Biener <rguenther@suse.de>
3770 * tree-vect-slp.c (vect_bb_partition_graph_r): Use visited
3772 (vect_bb_partition_graph): Likewise.
3774 2020-10-12 Duan bo <duanbo3@huawei.com>
3777 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Add
3778 the identification and handling of the dropped situation in the
3779 cond expression processing phase.
3781 2020-10-12 Tobias Burnus <tobias@codesourcery.com>
3783 * doc/invoke.texi (nvptx's -misa): Update default to sm_35.
3785 2020-10-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3788 * config/aarch64/arm_neon.h (vdupq_n_p8, vdupq_n_p16,
3789 vdupq_n_p64, vdupq_n_s8, vdupq_n_s16, vdupq_n_u8, vdupq_n_u16):
3792 2020-10-12 Ilya Leoshkevich <iii@linux.ibm.com>
3794 * config/s390/s390-protos.h (s390_build_signbit_mask): New
3796 * config/s390/s390.c (s390_contiguous_bitmask_vector_p):
3797 Bitcast the argument to an integral mode.
3798 (s390_expand_vec_init): Do not call
3799 s390_contiguous_bitmask_vector_p with a scalar argument.
3800 (s390_build_signbit_mask): New function.
3801 * config/s390/vector.md (copysign<mode>3): Use bitwise
3804 2020-10-12 Aldy Hernandez <aldyh@redhat.com>
3806 PR tree-optimization/97371
3807 * range-op.cc (operator_rshift::op1_range): Ignore shifts larger than
3808 or equal to type precision.
3810 2020-10-12 Martin Liska <mliska@suse.cz>
3812 * ipa-modref.c (merge_call_side_effects): Clear modref_parm_map
3813 fields in the vector.
3815 2020-10-12 Richard Biener <rguenther@suse.de>
3817 * tree-vect-slp.c (vect_analyze_slp_instance): Set matches to true
3818 after successful discovery but forced split.
3820 2020-10-12 Tom de Vries <tdevries@suse.de>
3822 * config/nvptx/nvptx.opt (-msoft-stack-reserve-local): Rename to ...
3823 (-msoft-stack-reserve-local=): ... this.
3825 2020-10-12 Richard Biener <rguenther@suse.de>
3827 PR tree-optimization/97357
3828 * tree-ssa-loop-split.c (ssa_semi_invariant_p): Abnormal
3829 SSA names are not semi invariant.
3831 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
3833 * config/darwin.c (darwin_globalize_label): Make a subset of
3834 metadate symbols global.
3835 (darwin_label_is_anonymous_local_objc_name): Make a subset of
3836 metadata symbols linker-visible.
3837 (darwin_override_options): Track more target OS versions, make
3838 the next_runtime version track this (unless it's set to 0 for
3841 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
3843 * config/darwin.c (darwin_globalize_label): Add protocol
3844 meta-data labels to the set that are global.
3845 (darwin_label_is_anonymous_local_objc_name): Arrange for meta-
3846 data start labels to be linker-visible.
3848 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
3850 * config/darwin.c (darwin_objc2_section): Allow for
3851 values > 1 to represent the next runtime.
3852 (darwin_objc1_section): Likewise.
3853 * config/darwin.h (NEXT_OBJC_RUNTIME): Set the default
3854 next runtime value to be 10.5.8.
3856 2020-10-10 Jan Hubicka <jh@suse.cz>
3858 * ipa-modref.c (modref_transform): Fix parameter map computation.
3860 2020-10-10 Tom de Vries <tdevries@suse.de>
3863 * config/nvptx/nvptx.c (nvptx_replace_dot): New function.
3864 (write_fn_proto, write_fn_proto_from_insn, nvptx_output_call_insn):
3865 Use nvptx_replace_dot.
3867 2020-10-10 Tom de Vries <tdevries@suse.de>
3869 * config/nvptx/nvptx.c (write_fn_proto_1): New function, factored out
3871 (write_fn_proto): ... here. Return void.
3873 2020-10-10 Jan Hubicka <jh@suse.cz>
3875 * ipa-modref.c (remap_arguments): Check range in map access.
3877 2020-10-10 Jan Hubicka <jh@suse.cz>
3879 * ipa-modref.c (modref_transform): Use reserve instead of safe_grow.
3881 2020-10-10 Jan Hubicka <jh@suse.cz>
3883 * ipa-modref.c (modref_transform): Check that summaries are allocated.
3885 2020-10-10 Jan Hubicka <jh@suse.cz>
3887 * ipa-modref-tree.h (struct modref_tree): Revert prevoius change.
3888 * ipa-modref.c (analyze_function): Dump original summary.
3889 (modref_read): Only set IPA if streaming summary (not optimization
3891 (remap_arguments): New function.
3892 (modref_transform): New function.
3893 (compute_parm_map): Fix offset calculation.
3894 (ipa_merge_modref_summary_after_inlining): Do not merge stores when
3895 they can be ignored.
3897 2020-10-10 Jan Hubicka <jh@suse.cz>
3899 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Improve debug dumps.
3900 (call_may_clobber_ref_p_1): Improve debug dumps.
3902 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
3904 * config/darwin.c (output_objc_section_asm_op): Avoid extra
3905 objective-c section switches unless the linker needs them.
3907 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
3909 * config/darwin-sections.def (objc2_data_section): New.
3910 (objc2_ivar_section): New.
3911 * config/darwin.c (darwin_objc2_section): Act on Protocol and
3914 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
3916 * config/darwin-sections.def (objc2_class_names_section,
3917 objc2_method_names_section, objc2_method_types_section): New
3918 * config/darwin.c (output_objc_section_asm_op): Output new
3919 sections. (darwin_objc2_section): Select new sections where
3922 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
3924 * config/darwin.c (darwin_emit_local_bss): Amend section names to
3925 match system tools. (darwin_output_aligned_bss): Likewise.
3927 2020-10-10 Aldy Hernandez <aldyh@redhat.com>
3929 PR tree-optimization/97359
3930 * gimple-range-gori.cc (logical_stmt_cache::cacheable_p): Only
3931 handle ANDs and ORs.
3932 (gori_compute_cache::cache_stmt): Adjust comment.
3934 2020-10-09 Vladimir Makarov <vmakarov@redhat.com>
3936 PR rtl-optimization/97313
3937 * lra-constraints.c (match_reload): Don't keep strict_low_part in
3938 reloads for non-registers.
3940 2020-10-09 H.J. Lu <hjl.tools@gmail.com>
3943 * config.gcc (extra_headers): Add x86gprintrin.h.
3944 * config/i386/adxintrin.h: Check _X86GPRINTRIN_H_INCLUDED for
3946 * config/i386/bmi2intrin.h: Likewise.
3947 * config/i386/bmiintrin.h: Likewise.
3948 * config/i386/cetintrin.h: Likewise.
3949 * config/i386/cldemoteintrin.h: Likewise.
3950 * config/i386/clflushoptintrin.h: Likewise.
3951 * config/i386/clwbintrin.h: Likewise.
3952 * config/i386/enqcmdintrin.h: Likewise.
3953 * config/i386/fxsrintrin.h: Likewise.
3954 * config/i386/ia32intrin.h: Likewise.
3955 * config/i386/lwpintrin.h: Likewise.
3956 * config/i386/lzcntintrin.h: Likewise.
3957 * config/i386/movdirintrin.h: Likewise.
3958 * config/i386/pconfigintrin.h: Likewise.
3959 * config/i386/pkuintrin.h: Likewise.
3960 * config/i386/rdseedintrin.h: Likewise.
3961 * config/i386/rtmintrin.h: Likewise.
3962 * config/i386/serializeintrin.h: Likewise.
3963 * config/i386/tbmintrin.h: Likewise.
3964 * config/i386/tsxldtrkintrin.h: Likewise.
3965 * config/i386/waitpkgintrin.h: Likewise.
3966 * config/i386/wbnoinvdintrin.h: Likewise.
3967 * config/i386/xsavecintrin.h: Likewise.
3968 * config/i386/xsaveintrin.h: Likewise.
3969 * config/i386/xsaveoptintrin.h: Likewise.
3970 * config/i386/xsavesintrin.h: Likewise.
3971 * config/i386/xtestintrin.h: Likewise.
3972 * config/i386/immintrin.h: Include <x86gprintrin.h> instead of
3973 <fxsrintrin.h>, <xsaveintrin.h>, <xsaveoptintrin.h>,
3974 <xsavesintrin.h>, <xsavecintrin.h>, <lzcntintrin.h>,
3975 <bmiintrin.h>, <bmi2intrin.h>, <xtestintrin.h>, <cetintrin.h>,
3976 <movdirintrin.h>, <sgxintrin.h, <pconfigintrin.h>,
3977 <waitpkgintrin.h>, <cldemoteintrin.h>, <enqcmdintrin.h>,
3978 <serializeintrin.h>, <tsxldtrkintrin.h>, <adxintrin.h>,
3979 <clwbintrin.h>, <clflushoptintrin.h>, <wbnoinvdintrin.h> and
3981 (_wbinvd): Moved to config/i386/x86gprintrin.h.
3982 (_rdrand16_step): Likewise.
3983 (_rdrand32_step): Likewise.
3984 (_rdpid_u32): Likewise.
3985 (_readfsbase_u32): Likewise.
3986 (_readfsbase_u64): Likewise.
3987 (_readgsbase_u32): Likewise.
3988 (_readgsbase_u64): Likewise.
3989 (_writefsbase_u32): Likewise.
3990 (_writefsbase_u64): Likewise.
3991 (_writegsbase_u32): Likewise.
3992 (_writegsbase_u64): Likewise.
3993 (_rdrand64_step): Likewise.
3994 (_ptwrite64): Likewise.
3995 (_ptwrite32): Likewise.
3996 * config/i386/x86gprintrin.h: New file.
3997 * config/i386/x86intrin.h: Include <x86gprintrin.h>. Don't
3998 include <ia32intrin.h>, <lwpintrin.h>, <tbmintrin.h>,
3999 <popcntintrin.h>, <mwaitxintrin.h> and <clzerointrin.h>.
4001 2020-10-09 Tom de Vries <tdevries@suse.de>
4004 * config/nvptx/nvptx.h (ASM_SPEC): Also pass -m to nvptx-as if
4006 * config/nvptx/nvptx.opt (misa): Init with PTX_ISA_SM35.
4008 2020-10-09 Richard Biener <rguenther@suse.de>
4010 * doc/sourcebuild.texi (vect_masked_load): Document.
4012 2020-10-09 Richard Biener <rguenther@suse.de>
4014 PR tree-optimization/97334
4015 * tree-vect-slp.c (vect_build_slp_tree_1): Do not fatally
4016 fail lanes other than zero when BB vectorizing.
4018 2020-10-09 Jan Hubicka <jh@suse.cz>
4022 * ipa-modref-tree.h (copy_from): Drop summary in a
4025 2020-10-09 Richard Biener <rguenther@suse.de>
4027 PR tree-optimization/97347
4028 * tree-vect-slp.c (vect_create_constant_vectors): Use
4029 edge insertion when inserting on the fallthru edge,
4030 appropriately insert at the start of BBs when inserting
4033 2020-10-09 Andrew MacLeod <amacleod@redhat.com>
4035 PR tree-optimization/97317
4036 * range-op.cc (operator_cast::op1_range): Handle casts where the precision
4037 of the RHS is only 1 greater than the precision of the LHS.
4039 2020-10-09 Richard Biener <rguenther@suse.de>
4041 * cgraphunit.c (expand_all_functions): Free tp_first_run_order.
4042 * ipa-modref.c (pass_ipa_modref::execute): Free order.
4043 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Free
4045 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Free
4046 data references upon failure.
4047 * tree-vect-loop.c (update_epilogue_loop_vinfo): Free BBs
4048 array of the original loop.
4049 * tree-vect-slp.c (vect_slp_bbs): Use an auto_vec for
4050 dataref_groups to release its memory.
4052 2020-10-09 Jakub Jelinek <jakub@redhat.com>
4054 PR tree-optimization/94801
4056 * vr-values.c (vr_values::extract_range_basic) <CASE_CFN_CLZ,
4057 CASE_CFN_CTZ>: When stmt is not an internal-fn call or
4058 C?Z_DEFINED_VALUE_AT_ZERO is not 2, assume argument is not zero
4059 and thus use [0, prec-1] range unless it can be further improved.
4060 For CTZ, don't update maxi from upper bound if it was previously prec.
4061 * gimple-range.cc (gimple_ranger::range_of_builtin_call) <CASE_CFN_CLZ,
4062 CASE_CFN_CTZ>: Likewise.
4064 2020-10-09 Jakub Jelinek <jakub@redhat.com>
4066 PR tree-optimization/97325
4067 * match.pd (FFS(nonzero) -> CTZ(nonzero) + 1): Cast argument to
4068 corresponding unsigned type.
4070 2020-10-09 Richard Biener <rguenther@suse.de>
4072 * tree-vect-slp.c (vect_create_constant_vectors): Properly insert
4075 2020-10-08 Alexandre Oliva <oliva@adacore.com>
4077 * builtins.c (mathfn_built_in_type): New.
4078 * builtins.h (mathfn_built_in_type): Declare.
4079 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use it to
4080 obtain the type expected by the intrinsic.
4082 2020-10-08 Will Schmidt <will_schmidt@vnet.ibm.com>
4084 * config/rs6000/rs6000-builtin.def (BU_P10_MISC_2): Rename
4085 to BU_P10_POWERPC64_MISC_2.
4086 CFUGED, CNTLZDM, CNTTZDM, PDEPD, PEXTD): Call renamed macro.
4088 2020-10-08 Jan Hubicka <jh@suse.cz>
4090 * tree-nrv.c (dest_safe_for_nrv_p): Disable tbaa in
4091 call_may_clobber_ref_p and ref_maybe_used_by_stmt_p.
4092 * tree-tailcall.c (find_tail_calls): Likewise.
4093 * tree-ssa-alias.c (call_may_clobber_ref_p): Add tbaa_p parameter.
4094 * tree-ssa-alias.h (call_may_clobber_ref_p): Update prototype.
4095 * tree-ssa-sccvn.c (vn_reference_lookup_3): Pass data->tbaa_p
4096 to call_may_clobber_ref_p_1.
4098 2020-10-08 Mark Wielaard <mark@klomp.org>
4100 * dwarf2out.c (dwarf2out_finish): Emit .file 0 entry when
4101 generating DWARF5 .debug_line table through gas.
4103 2020-10-08 John Henning <john.henning@oracle.com>
4106 * doc/invoke.texi: Improve documentation of
4107 -fallow-store-data-races.
4109 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
4112 * config/arm/arm_mve.h (__arm_vcvtnq_u32_f32): New.
4114 2020-10-08 Martin Liska <mliska@suse.cz>
4115 Richard Biener <rguenther@suse.de>
4117 * tree-vectorizer.h (_bb_vec_info::const_iterator): Remove.
4118 (_bb_vec_info::const_reverse_iterator): Likewise.
4119 (_bb_vec_info::region_stmts): Likewise.
4120 (_bb_vec_info::reverse_region_stmts): Likewise.
4121 (_bb_vec_info::_bb_vec_info): Adjust.
4122 (_bb_vec_info::bb): Remove.
4123 (_bb_vec_info::region_begin): Remove.
4124 (_bb_vec_info::region_end): Remove.
4125 (_bb_vec_info::bbs): New vector of BBs.
4126 (vect_slp_function): Declare.
4127 * tree-vect-patterns.c (vect_determine_precisions): Use
4128 regular stmt iteration.
4129 (vect_pattern_recog): Likewise.
4130 * tree-vect-slp.c: Include cfganal.h, tree-eh.h and tree-cfg.h.
4131 (vect_build_slp_tree_1): Properly refuse to vectorize
4132 volatile and throwing stmts.
4133 (vect_build_slp_tree_2): Pass group-size down to
4134 get_vectype_for_scalar_type.
4135 (_bb_vec_info::_bb_vec_info): Use regular stmt iteration,
4136 adjust for changed region specification.
4137 (_bb_vec_info::~_bb_vec_info): Likewise.
4138 (vect_slp_check_for_constructors): Likewise.
4139 (vect_slp_region): Likewise.
4140 (vect_slp_bbs): New worker operating on a vector of BBs.
4141 (vect_slp_bb): Wrap it.
4142 (vect_slp_function): New function splitting the function
4143 into multi-BB regions.
4144 (vect_create_constant_vectors): Handle the case of inserting
4145 after a throwing def.
4146 (vect_schedule_slp_instance): Adjust.
4147 * tree-vectorizer.c (vec_info::remove_stmt): Simplify again.
4148 (vec_info::insert_seq_on_entry): Adjust.
4149 (pass_slp_vectorize::execute): Also init PHIs. Call
4152 2020-10-08 Richard Biener <rguenther@suse.de>
4154 PR tree-optimization/97330
4155 * tree-ssa-sink.c (statement_sink_location): Avoid skipping
4156 PHIs when they dominate the insert location.
4158 2020-10-08 Jan Hubicka <jh@suse.cz>
4160 * ipa-modref.c (get_access): Fix handling of offsets.
4161 * tree-ssa-alias.c (modref_may_conflict): Watch for overflows.
4163 2020-10-08 Martin Liska <mliska@suse.cz>
4165 * dbgcnt.def (DEBUG_COUNTER): Add ipa_mod_ref debug counter.
4166 * tree-ssa-alias.c (modref_may_conflict): Handle the counter.
4168 2020-10-08 Richard Biener <rguenther@suse.de>
4170 * tree-vectorizer.c (try_vectorize_loop_1): Do not dump
4171 "basic block vectorized".
4172 (pass_slp_vectorize::execute): Likewise.
4173 * tree-vect-slp.c (vect_analyze_slp_instance): Avoid
4174 re-analyzing split single stmts.
4176 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
4179 * config/arm/arm_mve.h (vqrdmlashq_n_u8, vqrdmlashq_n_u16)
4180 (vqrdmlashq_n_u32, vqrdmlahq_n_u8, vqrdmlahq_n_u16)
4181 (vqrdmlahq_n_u32, vqdmlahq_n_u8, vqdmlahq_n_u16, vqdmlahq_n_u32)
4182 (vmlaldavaxq_p_u16, vmlaldavaxq_p_u32): Remove.
4183 * config/arm/arm_mve_builtins.def (vqrdmlashq_n_u, vqrdmlahq_n_u)
4184 (vqdmlahq_n_u, vmlaldavaxq_p_u): Remove.
4185 * config/arm/unspecs.md (VQDMLAHQ_N_U, VQRDMLAHQ_N_U)
4187 (VMLALDAVAXQ_P_U): Remove unspecs.
4188 * config/arm/iterators.md (VQDMLAHQ_N_U, VQRDMLAHQ_N_U)
4189 (VQRDMLASHQ_N_U, VMLALDAVAXQ_P_U): Remove attributes.
4190 (VQDMLAHQ_N, VQRDMLAHQ_N, VQRDMLASHQ_N, VMLALDAVAXQ_P): Remove
4191 unsigned variants from iterators.
4192 * config/arm/mve.md (mve_vqdmlahq_n_<supf><mode>)
4193 (mve_vqrdmlahq_n_<supf><mode>)
4194 (mve_vqrdmlashq_n_<supf><mode>, mve_vmlaldavaxq_p_<supf><mode>):
4197 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
4200 * config/arm/arm_mve.h (vqdmlashq, vqdmlashq_m): Define.
4201 * config/arm/arm_mve_builtins.def (vqdmlashq_n_s)
4202 (vqdmlashq_m_n_s,): New.
4203 * config/arm/unspecs.md (VQDMLASHQ_N_S, VQDMLASHQ_M_N_S): New
4205 * config/arm/iterators.md (VQDMLASHQ_N_S, VQDMLASHQ_M_N_S): New
4207 (VQDMLASHQ_N): New iterator.
4208 * config/arm/mve.md (mve_vqdmlashq_n_, mve_vqdmlashq_m_n_s): New
4211 2020-10-08 Jakub Jelinek <jakub@redhat.com>
4214 * config/arm/arm.c (arm_expand_divmod_libfunc): Pass mode instead of
4215 GET_MODE (op0) or GET_MODE (op1) to emit_library_call_value.
4217 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
4219 PR tree-optimization/97325
4220 * gimple-range.cc (gimple_ranger::range_of_builtin_call): Handle
4221 negative numbers in __builtin_ffs and __builtin_popcount.
4223 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
4225 PR tree-optimization/97315
4226 * range-op.cc (value_range_with_overflow): Change any
4227 non-overflow calculation in which both bounds are
4228 overflow/underflow to be undefined.
4230 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
4232 PR tree-optimization/97315
4233 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Removes the
4234 trap and instead annotates the listing.
4236 2020-10-08 Jakub Jelinek <jakub@redhat.com>
4239 * tree-cfg.c (move_block_to_fn): Call notice_special_calls on
4240 call stmts being moved into dest_cfun.
4241 * omp-low.c (lower_rec_input_clauses): Set cfun->calls_alloca when
4242 adding __builtin_alloca_with_align call without gimplification.
4244 2020-10-07 Aldy Hernandez <aldyh@redhat.com>
4246 * common.opt (-fevrp-mode): Rename and move...
4247 * params.opt (--param=evrp-mode): ...here.
4248 * gimple-range.h (DEBUG_RANGE_CACHE): Use param_evrp_mode instead
4250 * gimple-ssa-evrp.c (rvrp_folder): Same.
4251 (hybrid_folder): Same.
4252 (execute_early_vrp): Same.
4254 2020-10-07 Richard Biener <rguenther@suse.de>
4256 PR tree-optimization/97307
4257 * tree-ssa-sink.c (statement_sink_location): Change heuristic
4258 for not skipping stores to look for virtual definitions
4261 2020-10-07 Andrew MacLeod <amacleod@redhat.com>
4263 * value-range.h (irange_allocator::allocate): Allocate in two hunks
4264 instead of using the variably-sized trailing array approach.
4266 2020-10-07 David Malcolm <dmalcolm@redhat.com>
4268 * doc/invoke.texi (-fdiagnostics-plain-output): Add
4269 -fdiagnostics-path-format=separate-events to list of
4270 options injected by -fdiagnostics-plain-output.
4271 * opts-common.c (decode_cmdline_options_to_array): Likewise.
4273 2020-10-07 Martin Jambor <mjambor@suse.cz>
4276 * ipa-prop.c (update_indirect_edges_after_inlining): Do not add
4277 resolved speculation edges to vector of new direct edges even in
4278 presence of multiple speculative direct edges for a single call.
4280 2020-10-07 Andrew Stubbs <ams@codesourcery.com>
4282 * config/gcn/gcn.md (unspec): Add UNSPEC_ADDPTR.
4283 (addptrdi3): Add SGPR alternative.
4285 2020-10-07 Mark Wielaard <mark@klomp.org>
4287 * dwarf2out.c (add_filepath_AT_string): New function.
4288 (asm_outputs_debug_line_str): Likewise.
4289 (add_filename_attribute): Likewise.
4290 (add_comp_dir_attribute): Call add_filepath_AT_string.
4291 (gen_compile_unit_die): Call add_filename_attribute for name.
4292 (init_sections_and_labels): Init debug_line_str_section when
4293 asm_outputs_debug_line_str return true.
4294 (dwarf2out_early_finish): Remove DW_AT_name and DW_AT_comp_dir
4295 hack and call add_filename_attribute for the remap_debug_filename.
4297 2020-10-07 Jakub Jelinek <jakub@redhat.com>
4299 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG,
4300 HAVE_AS_WORKING_DWARF_4_FLAG): New tests.
4301 * gcc.c (ASM_DEBUG_DWARF_OPTION): Define.
4302 (ASM_DEBUG_SPEC): Use ASM_DEBUG_DWARF_OPTION instead of
4303 "--gdwarf2". Use %{cond:opt1;:opt2} style.
4304 (ASM_DEBUG_OPTION_DWARF_OPT): Define.
4305 (ASM_DEBUG_OPTION_SPEC): Define.
4306 (asm_debug_option): New variable.
4307 (asm_options): Add "%(asm_debug_option)".
4308 (static_specs): Add asm_debug_option entry.
4309 (static_spec_functions): Add dwarf-version-gt.
4310 (debug_level_greater_than_spec_func): New function.
4311 * config/darwin.h (ASM_DEBUG_OPTION_SPEC): Define.
4312 * config/darwin9.h (ASM_DEBUG_OPTION_SPEC): Redefine.
4313 * config.in: Regenerated.
4314 * configure: Regenerated.
4316 2020-10-07 Jakub Jelinek <jakub@redhat.com>
4319 * optc-save-gen.awk: Don't declare mask variable if explicit_mask
4320 array is not present.
4322 2020-10-07 Jakub Jelinek <jakub@redhat.com>
4324 * omp-expand.c (expand_omp_simd): Don't emit MIN_EXPR and PLUS_EXPR
4325 at the end of entry_bb and innermost init_bb, instead force arguments
4326 for MIN_EXPR into temporaries in both cases and jump to a new bb that
4327 performs MIN_EXPR and PLUS_EXPR.
4329 2020-10-07 Tom de Vries <tdevries@suse.de>
4331 * tree-ssa-loop-ch.c (ch_base::copy_headers): Add missing NULL test
4334 2020-10-06 Andrew MacLeod <amacleod@redhat.com>
4336 * flag-types.h (enum evrp_mode): New enumerated type EVRP_MODE_*.
4337 * common.opt (fevrp-mode): New undocumented flag.
4338 * gimple-ssa-evrp.c: Include gimple-range.h
4339 (class rvrp_folder): EVRP folding using ranger exclusively.
4340 (rvrp_folder::rvrp_folder): New.
4341 (rvrp_folder::~rvrp_folder): New.
4342 (rvrp_folder::value_of_expr): New. Use rangers value_of_expr.
4343 (rvrp_folder::value_on_edge): New. Use rangers value_on_edge.
4344 (rvrp_folder::value_of_Stmt): New. Use rangers value_of_stmt.
4345 (rvrp_folder::fold_stmt): New. Call the simplifier.
4346 (class hybrid_folder): EVRP folding using both engines.
4347 (hybrid_folder::hybrid_folder): New.
4348 (hybrid_folder::~hybrid_folder): New.
4349 (hybrid_folder::fold_stmt): New. Simplify with one engne, then the
4351 (hybrid_folder::value_of_expr): New. Use both value routines.
4352 (hybrid_folder::value_on_edge): New. Use both value routines.
4353 (hybrid_folder::value_of_stmt): New. Use both value routines.
4354 (hybrid_folder::choose_value): New. Choose between range_analzyer and
4356 (execute_early_vrp): Choose a folder based on flag_evrp_mode.
4357 * vr-values.c (simplify_using_ranges::fold_cond): Try range_of_stmt
4358 first to see if it returns a value.
4359 (simplify_using_ranges::simplify_switch_using_ranges): Return true if
4360 any changes were made to the switch.
4362 2020-10-06 Andrew MacLeod <amacleod@redhat.com>
4364 * Makefile.in (OBJS): Add gimple-range*.o.
4365 * gimple-range.h: New file.
4366 * gimple-range.cc: New file.
4367 * gimple-range-cache.h: New file.
4368 * gimple-range-cache.cc: New file.
4369 * gimple-range-edge.h: New file.
4370 * gimple-range-edge.cc: New file.
4371 * gimple-range-gori.h: New file.
4372 * gimple-range-gori.cc: New file.
4374 2020-10-06 Dennis Zhang <dennis.zhang@arm.com>
4376 * config/arm/arm.c (arm_preferred_simd_mode): Enable MVE SIMD modes.
4378 2020-10-06 Tom de Vries <tdevries@suse.de>
4381 * gimplify.c (gimplify_bind_expr): Handle lookup in
4382 oacc_declare_returns using key with decl-expr.
4384 2020-10-06 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4386 * config/arm/iterators.md (MVE_types): Move mode iterator from mve.md to
4388 (MVE_VLD_ST): Likewise.
4395 (MVE_CNVT): Move mode attribute iterator from mve.md to iterators.md.
4396 (MVE_LANES): Likewise.
4397 (MVE_constraint): Likewise.
4398 (MVE_constraint1): Likewise.
4399 (MVE_constraint2): Likewise.
4400 (MVE_constraint3): Likewise.
4401 (MVE_pred): Likewise.
4402 (MVE_pred1): Likewise.
4403 (MVE_pred2): Likewise.
4404 (MVE_pred3): Likewise.
4405 (MVE_B_ELEM): Likewise.
4406 (MVE_H_ELEM): Likewise.
4407 (V_sz_elem1): Likewise.
4408 (V_extr_elem): Likewise.
4409 (earlyclobber_32): Likewise.
4410 (supf): Move int attribute from mve.md to iterators.md.
4412 (VCVTQ_TO_F): Move int iterator from mve.md to iterators.md.
4413 (VMVNQ_N): Likewise.
4414 (VREV64Q): Likewise.
4415 (VCVTQ_FROM_F): Likewise.
4416 (VREV16Q): Likewise.
4419 (VDUPQ_N): Likewise.
4422 (VREV32Q): Likewise.
4423 (VMOVLBQ): Likewise.
4424 (VMOVLTQ): Likewise.
4428 (VADDLVQ): Likewise.
4430 (VCTPQ_M): Likewise.
4431 (VCVTQ_N_TO_F): Likewise.
4432 (VCREATEQ): Likewise.
4433 (VSHRQ_N): Likewise.
4434 (VCVTQ_N_FROM_F): Likewise.
4435 (VADDLVQ_P): Likewise.
4436 (VCMPNEQ): Likewise.
4439 (VADDQ_N): Likewise.
4440 (VADDVAQ): Likewise.
4441 (VADDVQ_P): Likewise.
4444 (VBRSRQ_N): Likewise.
4445 (VCADDQ_ROT270): Likewise.
4446 (VCADDQ_ROT90): Likewise.
4447 (VCMPEQQ): Likewise.
4448 (VCMPEQQ_N): Likewise.
4449 (VCMPNEQ_N): Likewise.
4452 (VHADDQ_N): Likewise.
4454 (VHSUBQ_N): Likewise.
4459 (VMLADAVQ): Likewise.
4461 (VMULLBQ_INT): Likewise.
4462 (VMULLTQ_INT): Likewise.
4464 (VMULQ_N): Likewise.
4468 (VQADDQ_N): Likewise.
4469 (VQRSHLQ): Likewise.
4470 (VQRSHLQ_N): Likewise.
4472 (VQSHLQ_N): Likewise.
4473 (VQSHLQ_R): Likewise.
4475 (VQSUBQ_N): Likewise.
4476 (VRHADDQ): Likewise.
4477 (VRMULHQ): Likewise.
4479 (VRSHLQ_N): Likewise.
4480 (VRSHRQ_N): Likewise.
4481 (VSHLQ_N): Likewise.
4482 (VSHLQ_R): Likewise.
4484 (VSUBQ_N): Likewise.
4485 (VADDLVAQ): Likewise.
4486 (VBICQ_N): Likewise.
4487 (VMLALDAVQ): Likewise.
4488 (VMLALDAVXQ): Likewise.
4489 (VMOVNBQ): Likewise.
4490 (VMOVNTQ): Likewise.
4491 (VORRQ_N): Likewise.
4492 (VQMOVNBQ): Likewise.
4493 (VQMOVNTQ): Likewise.
4494 (VSHLLBQ_N): Likewise.
4495 (VSHLLTQ_N): Likewise.
4496 (VRMLALDAVHQ): Likewise.
4497 (VBICQ_M_N): Likewise.
4498 (VCVTAQ_M): Likewise.
4499 (VCVTQ_M_TO_F): Likewise.
4500 (VQRSHRNBQ_N): Likewise.
4503 (VRMLALDAVHAQ): Likewise.
4504 (VADDVAQ_P): Likewise.
4505 (VCLZQ_M): Likewise.
4506 (VCMPEQQ_M_N): Likewise.
4507 (VCMPEQQ_M): Likewise.
4508 (VCMPNEQ_M_N): Likewise.
4509 (VCMPNEQ_M): Likewise.
4510 (VDUPQ_M_N): Likewise.
4511 (VMAXVQ_P): Likewise.
4512 (VMINVQ_P): Likewise.
4513 (VMLADAVAQ): Likewise.
4514 (VMLADAVQ_P): Likewise.
4515 (VMLAQ_N): Likewise.
4516 (VMLASQ_N): Likewise.
4517 (VMVNQ_M): Likewise.
4519 (VQDMLAHQ_N): Likewise.
4520 (VQRDMLAHQ_N): Likewise.
4521 (VQRDMLASHQ_N): Likewise.
4522 (VQRSHLQ_M_N): Likewise.
4523 (VQSHLQ_M_R): Likewise.
4524 (VREV64Q_M): Likewise.
4525 (VRSHLQ_M_N): Likewise.
4526 (VSHLQ_M_R): Likewise.
4527 (VSLIQ_N): Likewise.
4528 (VSRIQ_N): Likewise.
4529 (VMLALDAVQ_P): Likewise.
4530 (VQMOVNBQ_M): Likewise.
4531 (VMOVLTQ_M): Likewise.
4532 (VMOVNBQ_M): Likewise.
4533 (VRSHRNTQ_N): Likewise.
4534 (VORRQ_M_N): Likewise.
4535 (VREV32Q_M): Likewise.
4536 (VREV16Q_M): Likewise.
4537 (VQRSHRNTQ_N): Likewise.
4538 (VMOVNTQ_M): Likewise.
4539 (VMOVLBQ_M): Likewise.
4540 (VMLALDAVAQ): Likewise.
4541 (VQSHRNBQ_N): Likewise.
4542 (VSHRNBQ_N): Likewise.
4543 (VRSHRNBQ_N): Likewise.
4544 (VMLALDAVXQ_P): Likewise.
4545 (VQMOVNTQ_M): Likewise.
4546 (VMVNQ_M_N): Likewise.
4547 (VQSHRNTQ_N): Likewise.
4548 (VMLALDAVAXQ): Likewise.
4549 (VSHRNTQ_N): Likewise.
4550 (VCVTMQ_M): Likewise.
4551 (VCVTNQ_M): Likewise.
4552 (VCVTPQ_M): Likewise.
4553 (VCVTQ_M_N_FROM_F): Likewise.
4554 (VCVTQ_M_FROM_F): Likewise.
4555 (VRMLALDAVHQ_P): Likewise.
4556 (VADDLVAQ_P): Likewise.
4557 (VABAVQ_P): Likewise.
4558 (VSHLQ_M): Likewise.
4559 (VSRIQ_M_N): Likewise.
4560 (VSUBQ_M): Likewise.
4561 (VCVTQ_M_N_TO_F): Likewise.
4562 (VHSUBQ_M): Likewise.
4563 (VSLIQ_M_N): Likewise.
4564 (VRSHLQ_M): Likewise.
4565 (VMINQ_M): Likewise.
4566 (VMULLBQ_INT_M): Likewise.
4567 (VMULHQ_M): Likewise.
4568 (VMULQ_M): Likewise.
4569 (VHSUBQ_M_N): Likewise.
4570 (VHADDQ_M_N): Likewise.
4571 (VORRQ_M): Likewise.
4572 (VRMULHQ_M): Likewise.
4573 (VQADDQ_M): Likewise.
4574 (VRSHRQ_M_N): Likewise.
4575 (VQSUBQ_M_N): Likewise.
4576 (VADDQ_M): Likewise.
4577 (VORNQ_M): Likewise.
4578 (VRHADDQ_M): Likewise.
4579 (VQSHLQ_M): Likewise.
4580 (VANDQ_M): Likewise.
4581 (VBICQ_M): Likewise.
4582 (VSHLQ_M_N): Likewise.
4583 (VCADDQ_ROT270_M): Likewise.
4584 (VQRSHLQ_M): Likewise.
4585 (VQADDQ_M_N): Likewise.
4586 (VADDQ_M_N): Likewise.
4587 (VMAXQ_M): Likewise.
4588 (VQSUBQ_M): Likewise.
4589 (VMLASQ_M_N): Likewise.
4590 (VMLADAVAQ_P): Likewise.
4591 (VBRSRQ_M_N): Likewise.
4592 (VMULQ_M_N): Likewise.
4593 (VCADDQ_ROT90_M): Likewise.
4594 (VMULLTQ_INT_M): Likewise.
4595 (VEORQ_M): Likewise.
4596 (VSHRQ_M_N): Likewise.
4597 (VSUBQ_M_N): Likewise.
4598 (VHADDQ_M): Likewise.
4599 (VABDQ_M): Likewise.
4600 (VMLAQ_M_N): Likewise.
4601 (VQSHLQ_M_N): Likewise.
4602 (VMLALDAVAQ_P): Likewise.
4603 (VMLALDAVAXQ_P): Likewise.
4604 (VQRSHRNBQ_M_N): Likewise.
4605 (VQRSHRNTQ_M_N): Likewise.
4606 (VQSHRNBQ_M_N): Likewise.
4607 (VQSHRNTQ_M_N): Likewise.
4608 (VRSHRNBQ_M_N): Likewise.
4609 (VRSHRNTQ_M_N): Likewise.
4610 (VSHLLBQ_M_N): Likewise.
4611 (VSHLLTQ_M_N): Likewise.
4612 (VSHRNBQ_M_N): Likewise.
4613 (VSHRNTQ_M_N): Likewise.
4614 (VSTRWSBQ): Likewise.
4615 (VSTRBSOQ): Likewise.
4617 (VLDRBGOQ): Likewise.
4619 (VLDRWGBQ): Likewise.
4621 (VLDRHGOQ): Likewise.
4622 (VLDRHGSOQ): Likewise.
4625 (VLDRDGBQ): Likewise.
4626 (VLDRDGOQ): Likewise.
4627 (VLDRDGSOQ): Likewise.
4628 (VLDRWGOQ): Likewise.
4629 (VLDRWGSOQ): Likewise.
4631 (VSTRHSOQ): Likewise.
4632 (VSTRHSSOQ): Likewise.
4635 (VSTRDSBQ): Likewise.
4636 (VSTRDSOQ): Likewise.
4637 (VSTRDSSOQ): Likewise.
4638 (VSTRWSOQ): Likewise.
4639 (VSTRWSSOQ): Likewise.
4640 (VSTRWSBWBQ): Likewise.
4641 (VLDRWGBWBQ): Likewise.
4642 (VSTRDSBWBQ): Likewise.
4643 (VLDRDGBWBQ): Likewise.
4645 (VADCIQ_M): Likewise.
4647 (VSBCQ_M): Likewise.
4649 (VSBCIQ_M): Likewise.
4651 (VADCQ_M): Likewise.
4652 (UQRSHLLQ): Likewise.
4653 (SQRSHRLQ): Likewise.
4654 (VSHLCQ_M): Likewise.
4655 * config/arm/mve.md (MVE_types): Move mode iterator to iterators.md from mve.md.
4656 (MVE_VLD_ST): Likewise.
4663 (MVE_CNVT): Move mode attribute iterator to iterators.md from mve.md.
4664 (MVE_LANES): Likewise.
4665 (MVE_constraint): Likewise.
4666 (MVE_constraint1): Likewise.
4667 (MVE_constraint2): Likewise.
4668 (MVE_constraint3): Likewise.
4669 (MVE_pred): Likewise.
4670 (MVE_pred1): Likewise.
4671 (MVE_pred2): Likewise.
4672 (MVE_pred3): Likewise.
4673 (MVE_B_ELEM): Likewise.
4674 (MVE_H_ELEM): Likewise.
4675 (V_sz_elem1): Likewise.
4676 (V_extr_elem): Likewise.
4677 (earlyclobber_32): Likewise.
4678 (supf): Move int attribute to iterators.md from mve.md.
4680 (VCVTQ_TO_F): Move int iterator to iterators.md from mve.md.
4681 (VMVNQ_N): Likewise.
4682 (VREV64Q): Likewise.
4683 (VCVTQ_FROM_F): Likewise.
4684 (VREV16Q): Likewise.
4687 (VDUPQ_N): Likewise.
4690 (VREV32Q): Likewise.
4691 (VMOVLBQ): Likewise.
4692 (VMOVLTQ): Likewise.
4696 (VADDLVQ): Likewise.
4698 (VCTPQ_M): Likewise.
4699 (VCVTQ_N_TO_F): Likewise.
4700 (VCREATEQ): Likewise.
4701 (VSHRQ_N): Likewise.
4702 (VCVTQ_N_FROM_F): Likewise.
4703 (VADDLVQ_P): Likewise.
4704 (VCMPNEQ): Likewise.
4707 (VADDQ_N): Likewise.
4708 (VADDVAQ): Likewise.
4709 (VADDVQ_P): Likewise.
4712 (VBRSRQ_N): Likewise.
4713 (VCADDQ_ROT270): Likewise.
4714 (VCADDQ_ROT90): Likewise.
4715 (VCMPEQQ): Likewise.
4716 (VCMPEQQ_N): Likewise.
4717 (VCMPNEQ_N): Likewise.
4720 (VHADDQ_N): Likewise.
4722 (VHSUBQ_N): Likewise.
4727 (VMLADAVQ): Likewise.
4729 (VMULLBQ_INT): Likewise.
4730 (VMULLTQ_INT): Likewise.
4732 (VMULQ_N): Likewise.
4736 (VQADDQ_N): Likewise.
4737 (VQRSHLQ): Likewise.
4738 (VQRSHLQ_N): Likewise.
4740 (VQSHLQ_N): Likewise.
4741 (VQSHLQ_R): Likewise.
4743 (VQSUBQ_N): Likewise.
4744 (VRHADDQ): Likewise.
4745 (VRMULHQ): Likewise.
4747 (VRSHLQ_N): Likewise.
4748 (VRSHRQ_N): Likewise.
4749 (VSHLQ_N): Likewise.
4750 (VSHLQ_R): Likewise.
4752 (VSUBQ_N): Likewise.
4753 (VADDLVAQ): Likewise.
4754 (VBICQ_N): Likewise.
4755 (VMLALDAVQ): Likewise.
4756 (VMLALDAVXQ): Likewise.
4757 (VMOVNBQ): Likewise.
4758 (VMOVNTQ): Likewise.
4759 (VORRQ_N): Likewise.
4760 (VQMOVNBQ): Likewise.
4761 (VQMOVNTQ): Likewise.
4762 (VSHLLBQ_N): Likewise.
4763 (VSHLLTQ_N): Likewise.
4764 (VRMLALDAVHQ): Likewise.
4765 (VBICQ_M_N): Likewise.
4766 (VCVTAQ_M): Likewise.
4767 (VCVTQ_M_TO_F): Likewise.
4768 (VQRSHRNBQ_N): Likewise.
4771 (VRMLALDAVHAQ): Likewise.
4772 (VADDVAQ_P): Likewise.
4773 (VCLZQ_M): Likewise.
4774 (VCMPEQQ_M_N): Likewise.
4775 (VCMPEQQ_M): Likewise.
4776 (VCMPNEQ_M_N): Likewise.
4777 (VCMPNEQ_M): Likewise.
4778 (VDUPQ_M_N): Likewise.
4779 (VMAXVQ_P): Likewise.
4780 (VMINVQ_P): Likewise.
4781 (VMLADAVAQ): Likewise.
4782 (VMLADAVQ_P): Likewise.
4783 (VMLAQ_N): Likewise.
4784 (VMLASQ_N): Likewise.
4785 (VMVNQ_M): Likewise.
4787 (VQDMLAHQ_N): Likewise.
4788 (VQRDMLAHQ_N): Likewise.
4789 (VQRDMLASHQ_N): Likewise.
4790 (VQRSHLQ_M_N): Likewise.
4791 (VQSHLQ_M_R): Likewise.
4792 (VREV64Q_M): Likewise.
4793 (VRSHLQ_M_N): Likewise.
4794 (VSHLQ_M_R): Likewise.
4795 (VSLIQ_N): Likewise.
4796 (VSRIQ_N): Likewise.
4797 (VMLALDAVQ_P): Likewise.
4798 (VQMOVNBQ_M): Likewise.
4799 (VMOVLTQ_M): Likewise.
4800 (VMOVNBQ_M): Likewise.
4801 (VRSHRNTQ_N): Likewise.
4802 (VORRQ_M_N): Likewise.
4803 (VREV32Q_M): Likewise.
4804 (VREV16Q_M): Likewise.
4805 (VQRSHRNTQ_N): Likewise.
4806 (VMOVNTQ_M): Likewise.
4807 (VMOVLBQ_M): Likewise.
4808 (VMLALDAVAQ): Likewise.
4809 (VQSHRNBQ_N): Likewise.
4810 (VSHRNBQ_N): Likewise.
4811 (VRSHRNBQ_N): Likewise.
4812 (VMLALDAVXQ_P): Likewise.
4813 (VQMOVNTQ_M): Likewise.
4814 (VMVNQ_M_N): Likewise.
4815 (VQSHRNTQ_N): Likewise.
4816 (VMLALDAVAXQ): Likewise.
4817 (VSHRNTQ_N): Likewise.
4818 (VCVTMQ_M): Likewise.
4819 (VCVTNQ_M): Likewise.
4820 (VCVTPQ_M): Likewise.
4821 (VCVTQ_M_N_FROM_F): Likewise.
4822 (VCVTQ_M_FROM_F): Likewise.
4823 (VRMLALDAVHQ_P): Likewise.
4824 (VADDLVAQ_P): Likewise.
4825 (VABAVQ_P): Likewise.
4826 (VSHLQ_M): Likewise.
4827 (VSRIQ_M_N): Likewise.
4828 (VSUBQ_M): Likewise.
4829 (VCVTQ_M_N_TO_F): Likewise.
4830 (VHSUBQ_M): Likewise.
4831 (VSLIQ_M_N): Likewise.
4832 (VRSHLQ_M): Likewise.
4833 (VMINQ_M): Likewise.
4834 (VMULLBQ_INT_M): Likewise.
4835 (VMULHQ_M): Likewise.
4836 (VMULQ_M): Likewise.
4837 (VHSUBQ_M_N): Likewise.
4838 (VHADDQ_M_N): Likewise.
4839 (VORRQ_M): Likewise.
4840 (VRMULHQ_M): Likewise.
4841 (VQADDQ_M): Likewise.
4842 (VRSHRQ_M_N): Likewise.
4843 (VQSUBQ_M_N): Likewise.
4844 (VADDQ_M): Likewise.
4845 (VORNQ_M): Likewise.
4846 (VRHADDQ_M): Likewise.
4847 (VQSHLQ_M): Likewise.
4848 (VANDQ_M): Likewise.
4849 (VBICQ_M): Likewise.
4850 (VSHLQ_M_N): Likewise.
4851 (VCADDQ_ROT270_M): Likewise.
4852 (VQRSHLQ_M): Likewise.
4853 (VQADDQ_M_N): Likewise.
4854 (VADDQ_M_N): Likewise.
4855 (VMAXQ_M): Likewise.
4856 (VQSUBQ_M): Likewise.
4857 (VMLASQ_M_N): Likewise.
4858 (VMLADAVAQ_P): Likewise.
4859 (VBRSRQ_M_N): Likewise.
4860 (VMULQ_M_N): Likewise.
4861 (VCADDQ_ROT90_M): Likewise.
4862 (VMULLTQ_INT_M): Likewise.
4863 (VEORQ_M): Likewise.
4864 (VSHRQ_M_N): Likewise.
4865 (VSUBQ_M_N): Likewise.
4866 (VHADDQ_M): Likewise.
4867 (VABDQ_M): Likewise.
4868 (VMLAQ_M_N): Likewise.
4869 (VQSHLQ_M_N): Likewise.
4870 (VMLALDAVAQ_P): Likewise.
4871 (VMLALDAVAXQ_P): Likewise.
4872 (VQRSHRNBQ_M_N): Likewise.
4873 (VQRSHRNTQ_M_N): Likewise.
4874 (VQSHRNBQ_M_N): Likewise.
4875 (VQSHRNTQ_M_N): Likewise.
4876 (VRSHRNBQ_M_N): Likewise.
4877 (VRSHRNTQ_M_N): Likewise.
4878 (VSHLLBQ_M_N): Likewise.
4879 (VSHLLTQ_M_N): Likewise.
4880 (VSHRNBQ_M_N): Likewise.
4881 (VSHRNTQ_M_N): Likewise.
4882 (VSTRWSBQ): Likewise.
4883 (VSTRBSOQ): Likewise.
4885 (VLDRBGOQ): Likewise.
4887 (VLDRWGBQ): Likewise.
4889 (VLDRHGOQ): Likewise.
4890 (VLDRHGSOQ): Likewise.
4893 (VLDRDGBQ): Likewise.
4894 (VLDRDGOQ): Likewise.
4895 (VLDRDGSOQ): Likewise.
4896 (VLDRWGOQ): Likewise.
4897 (VLDRWGSOQ): Likewise.
4899 (VSTRHSOQ): Likewise.
4900 (VSTRHSSOQ): Likewise.
4903 (VSTRDSBQ): Likewise.
4904 (VSTRDSOQ): Likewise.
4905 (VSTRDSSOQ): Likewise.
4906 (VSTRWSOQ): Likewise.
4907 (VSTRWSSOQ): Likewise.
4908 (VSTRWSBWBQ): Likewise.
4909 (VLDRWGBWBQ): Likewise.
4910 (VSTRDSBWBQ): Likewise.
4911 (VLDRDGBWBQ): Likewise.
4913 (VADCIQ_M): Likewise.
4915 (VSBCQ_M): Likewise.
4917 (VSBCIQ_M): Likewise.
4919 (VADCQ_M): Likewise.
4920 (UQRSHLLQ): Likewise.
4921 (SQRSHRLQ): Likewise.
4922 (VSHLCQ_M): Likewise.
4923 (define_c_enum "unspec"): Move MVE enumerator to unspecs.md from mve.md.
4924 * config/arm/unspecs.md (define_c_enum "unspec"): Move MVE enumerator from
4925 mve.md to unspecs.md.
4927 2020-10-06 Martin Liska <mliska@suse.cz>
4929 * common.opt: Remove -fdbg-cnt-list from deferred options.
4930 * dbgcnt.c (dbg_cnt_set_limit_by_index): Make a copy
4932 (dbg_cnt_list_all_counters): Print also current counter value
4933 and print to stderr.
4934 * opts-global.c (handle_common_deferred_options): Do not handle
4936 * opts.c (common_handle_option): Likewise.
4937 * toplev.c (finalize): Handle it after compilation here.
4939 2020-10-06 Martin Liska <mliska@suse.cz>
4941 * dbgcnt.c (dbg_cnt): Report also upper limit.
4943 2020-10-06 Tom de Vries <tdevries@suse.de>
4945 * tracer.c (count_insns): Rename to ...
4946 (analyze_bb): ... this.
4947 (cache_can_duplicate_bb_p, cached_can_duplicate_bb_p): New function.
4948 (ignore_bb_p): Use cached_can_duplicate_bb_p.
4949 (tail_duplicate): Call cache_can_duplicate_bb_p.
4951 2020-10-06 Tom de Vries <tdevries@suse.de>
4953 * tracer.c (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
4954 (can_duplicate_bb_p): New function, factored out of ...
4955 (ignore_bb_p): ... here.
4957 2020-10-06 Jakub Jelinek <jakub@redhat.com>
4959 PR rtl-optimization/97282
4960 * tree-ssa-math-opts.c (divmod_candidate_p): Don't return false for
4961 constant op2 if it is not a power of two and the type has precision
4962 larger than HOST_BITS_PER_WIDE_INT or BITS_PER_WORD.
4963 * internal-fn.c (contains_call_div_mod): New function.
4964 (expand_DIVMOD): If last argument is a constant, try to expand it as
4965 TRUNC_DIV_EXPR followed by TRUNC_MOD_EXPR, but if the sequence
4966 contains any calls or {,U}{DIV,MOD} rtxes, throw it away and use
4967 divmod optab or divmod libfunc.
4969 2020-10-06 Aldy Hernandez <aldyh@redhat.com>
4971 * value-range.h (irange_allocator::allocate): Increase
4972 newir storage by one.
4974 2020-10-06 Jakub Jelinek <jakub@redhat.com>
4977 * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Only follow
4978 node->alias_target if it is a FUNCTION_DECL.
4980 2020-10-06 Joe Ramsay <joe.ramsay@arm.com>
4982 * config/arm/arm-cpus.in:
4983 (ALL_FPU_INTERNAL): Remove vfp_base.
4984 (VFPv2): Remove vfp_base.
4985 (MVE): Remove vfp_base.
4986 (vfp_base): Redefine as implied bit dependent on MVE or FP
4987 (cortex-m55): Add flags to disable MVE, MVE FP, FP and DSP extensions.
4988 * config/arm/arm.c (arm_configure_build_target): Add implied bits to ISA.
4989 * config/arm/parsecpu.awk:
4990 (gen_isa): Print implied bits and their dependencies to ISA header.
4991 (gen_data): Add parsing for implied feature bits.
4993 2020-10-06 Andreas Krebbel <krebbel@linux.ibm.com>
4995 * doc/invoke.texi: Add z15/arch13 to the list of documented
4996 -march/-mtune options.
4998 2020-10-05 Aldy Hernandez <aldyh@redhat.com>
5000 * value-range.cc (irange::legacy_intersect): Only handle
5002 (irange::legacy_union): Same.
5003 (irange::union_): When unioning legacy with non-legacy,
5004 first convert to legacy and do everything in legacy mode.
5005 (irange::intersect): Same, but for intersect.
5006 * range-op.cc (range_tests): Adjust for above changes.
5008 2020-10-05 Aldy Hernandez <aldyh@redhat.com>
5010 * range-op.cc (operator_div::wi_fold): Return varying for
5012 (class operator_rshift): Move class up.
5013 (operator_abs::wi_fold): Return [-MIN,-MIN] for ABS([-MIN,-MIN]).
5014 (operator_tests): Adjust tests.
5016 2020-10-05 Tom de Vries <tdevries@suse.de>
5018 * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_XCHG_*.
5020 2020-10-05 Alex Coplan <alex.coplan@arm.com>
5022 * config/arm/arm-cpus.in (neoverse-v1): Add missing vendor and
5025 2020-10-05 Tom de Vries <tdevries@suse.de>
5027 * tracer.c (ignore_bb_p): Remove incorrect suggestion.
5029 2020-10-05 Jakub Jelinek <jakub@redhat.com>
5031 * opth-gen.awk: Don't emit explicit_mask array if n_target_explicit
5032 is equal to n_target_explicit_mask.
5033 * optc-save-gen.awk: Compute has_target_explicit_mask and if false,
5034 don't emit code iterating over explicit_mask array elements. Stream
5035 also explicit_mask_* target members.
5037 2020-10-05 Jakub Jelinek <jakub@redhat.com>
5039 * gimple-ssa-store-merging.c
5040 (imm_store_chain_info::output_merged_store): Use ~0U instead of ~0 in
5041 unsigned int array initializer.
5043 2020-10-05 Tom de Vries <tdevries@suse.de>
5046 * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_ENTER_ALLOC,
5047 GOMP_SIMT_VOTE_ANY and GOMP_SIMT_EXIT.
5049 2020-10-03 Jakub Jelinek <jakub@redhat.com>
5051 * opth-gen.awk: For variables referenced in Mask and InverseMask,
5052 don't use the explicit_mask bitmask array, but add separate
5053 explicit_mask_* members with the same types as the variables.
5054 * optc-save-gen.awk: Save, restore, compare and hash the separate
5055 explicit_mask_* members.
5057 2020-10-03 Jan Hubicka <hubicka@ucw.cz>
5059 * ipa-modref-tree.c (test_insert_search_collapse): Update andling
5061 (test_merge): Likewise.
5062 * ipa-modref-tree.h (struct modref_access_node): Add offset, size,
5063 max_size, parm_offset and parm_offset_known.
5064 (modref_access_node::useful_p): Constify.
5065 (modref_access_node::range_info_useful_p): New predicate.
5066 (modref_access_node::operator==): New.
5067 (struct modref_parm_map): New structure.
5068 (modref_tree::merge): Update for racking parameters)
5069 * ipa-modref.c (dump_access): Dump new fields.
5070 (get_access): Fill in new fields.
5071 (merge_call_side_effects): Update handling of parm map.
5072 (write_modref_records): Stream new fields.
5073 (read_modref_records): Stream new fields.
5074 (compute_parm_map): Update for new parm map.
5075 (ipa_merge_modref_summary_after_inlining): Update.
5076 (modref_propagate_in_scc): Update.
5077 * tree-ssa-alias.c (modref_may_conflict): Handle known ranges.
5079 2020-10-03 H.J. Lu <hjl.tools@gmail.com>
5082 * doc/extend.texi: Replace roudnevenl with roundevenl
5084 2020-10-02 David Edelsohn <dje.gcc@gmail.com>
5085 Andrew MacLeod <amacleod@redhat.com>
5087 * config/rs6000/rs6000.c: Include ssa.h. Reorder some headers.
5088 * config/rs6000/rs6000-call.c: Same.
5090 2020-10-02 Martin Jambor <mjambor@suse.cz>
5092 * params.opt (ipa-cp-large-unit-insns): New parameter.
5093 * ipa-cp.c (get_max_overall_size): Use the new parameter.
5095 2020-10-02 Martin Jambor <mjambor@suse.cz>
5097 * ipa-cp.c (estimate_local_effects): Add overeall_size to dumped
5099 (decide_about_value): Add dumping new overall_size.
5101 2020-10-02 Martin Jambor <mjambor@suse.cz>
5103 * ipa-fnsummary.h (ipa_freqcounting_predicate): New type.
5104 (ipa_fn_summary): Change the type of loop_iterations and loop_strides
5105 to vectors of ipa_freqcounting_predicate.
5106 (ipa_fn_summary::ipa_fn_summary): Construct the new vectors.
5107 (ipa_call_estimates): New fields loops_with_known_iterations and
5108 loops_with_known_strides.
5109 * ipa-cp.c (hint_time_bonus): Multiply param_ipa_cp_loop_hint_bonus
5110 with the expected frequencies of loops with known iteration count or
5112 * ipa-fnsummary.c (add_freqcounting_predicate): New function.
5113 (ipa_fn_summary::~ipa_fn_summary): Release the new vectors instead of
5114 just two predicates.
5115 (remap_hint_predicate_after_duplication): Replace with function
5116 remap_freqcounting_preds_after_dup.
5117 (ipa_fn_summary_t::duplicate): Use it or duplicate new vectors.
5118 (ipa_dump_fn_summary): Dump the new vectors.
5119 (analyze_function_body): Compute the loop property vectors.
5120 (ipa_call_context::estimate_size_and_time): Calculate also
5121 loops_with_known_iterations and loops_with_known_strides. Adjusted
5123 (remap_hint_predicate): Replace with function
5124 remap_freqcounting_predicate.
5125 (ipa_merge_fn_summary_after_inlining): Use it.
5126 (inline_read_section): Stream loopcounting vectors instead of two
5128 (ipa_fn_summary_write): Likewise.
5129 * params.opt (ipa-max-loop-predicates): New parameter.
5130 * doc/invoke.texi (ipa-max-loop-predicates): Document new param.
5132 2020-10-02 Martin Jambor <mjambor@suse.cz>
5134 * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to use
5136 (do_estimate_edge_size): Likewise.
5137 (do_estimate_edge_hints): Likewise.
5138 * ipa-fnsummary.h (struct ipa_call_estimates): New type.
5139 (ipa_call_context::estimate_size_and_time): Adjusted declaration.
5140 (estimate_ipcp_clone_size_and_time): Likewise.
5141 * ipa-cp.c (hint_time_bonus): Changed the type of the second argument
5142 to ipa_call_estimates.
5143 (perform_estimation_of_a_value): Adjusted to use ipa_call_estimates.
5144 (estimate_local_effects): Likewise.
5145 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Adjusted
5146 to return estimates in a single ipa_call_estimates parameter.
5147 (estimate_ipcp_clone_size_and_time): Likewise.
5149 2020-10-02 Martin Jambor <mjambor@suse.cz>
5151 * ipa-fnsummary.h (ipa_cached_call_context): New forward declaration
5153 (class ipa_call_context): Make friend ipa_cached_call_context. Moved
5154 methods duplicate_from and release to it too.
5155 * ipa-fnsummary.c (ipa_call_context::duplicate_from): Moved to class
5156 ipa_cached_call_context.
5157 (ipa_call_context::release): Likewise, removed the parameter.
5158 * ipa-inline-analysis.c (node_context_cache_entry): Change the type of
5159 ctx to ipa_cached_call_context.
5160 (do_estimate_edge_time): Remove parameter from the call to
5161 ipa_cached_call_context::release.
5163 2020-10-02 Martin Jambor <mjambor@suse.cz>
5165 * ipa-prop.h (ipa_auto_call_arg_values): New type.
5166 (class ipa_call_arg_values): Likewise.
5167 (ipa_get_indirect_edge_target): Replaced vector arguments with
5168 ipa_call_arg_values in declaration. Added an overload for
5169 ipa_auto_call_arg_values.
5170 * ipa-fnsummary.h (ipa_call_context): Removed members m_known_vals,
5171 m_known_contexts, m_known_aggs, duplicate_from, release and equal_to,
5172 new members m_avals, store_to_cache and equivalent_to_p. Adjusted
5173 construcotr arguments.
5174 (estimate_ipcp_clone_size_and_time): Replaced vector arguments
5175 with ipa_auto_call_arg_values in declaration.
5176 (evaluate_properties_for_edge): Likewise.
5177 * ipa-cp.c (ipa_get_indirect_edge_target): Adjusted to work on
5178 ipa_call_arg_values rather than on separate vectors. Added an
5179 overload for ipa_auto_call_arg_values.
5180 (devirtualization_time_bonus): Adjusted to work on
5181 ipa_auto_call_arg_values rather than on separate vectors.
5182 (gather_context_independent_values): Adjusted to work on
5183 ipa_auto_call_arg_values rather than on separate vectors.
5184 (perform_estimation_of_a_value): Likewise.
5185 (estimate_local_effects): Likewise.
5186 (modify_known_vectors_with_val): Adjusted both variants to work on
5187 ipa_auto_call_arg_values and rename them to
5188 copy_known_vectors_add_val.
5189 (decide_about_value): Adjusted to work on ipa_call_arg_values rather
5190 than on separate vectors.
5191 (decide_whether_version_node): Likewise.
5192 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Likewise.
5193 (evaluate_properties_for_edge): Likewise.
5194 (ipa_fn_summary_t::duplicate): Likewise.
5195 (estimate_edge_devirt_benefit): Adjusted to work on
5196 ipa_call_arg_values rather than on separate vectors.
5197 (estimate_edge_size_and_time): Likewise.
5198 (estimate_calls_size_and_time_1): Likewise.
5199 (summarize_calls_size_and_time): Adjusted calls to
5200 estimate_edge_size_and_time.
5201 (estimate_calls_size_and_time): Adjusted to work on
5202 ipa_call_arg_values rather than on separate vectors.
5203 (ipa_call_context::ipa_call_context): Construct from a pointer to
5204 ipa_auto_call_arg_values instead of inividual vectors.
5205 (ipa_call_context::duplicate_from): Adjusted to access vectors within
5207 (ipa_call_context::release): Likewise.
5208 (ipa_call_context::equal_to): Likewise.
5209 (ipa_call_context::estimate_size_and_time): Adjusted to work on
5210 ipa_call_arg_values rather than on separate vectors.
5211 (estimate_ipcp_clone_size_and_time): Adjusted to work with
5212 ipa_auto_call_arg_values rather than on separate vectors.
5213 (ipa_merge_fn_summary_after_inlining): Likewise. Adjusted call to
5214 estimate_edge_size_and_time.
5215 (ipa_update_overall_fn_summary): Adjusted call to
5216 estimate_edge_size_and_time.
5217 * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to work with
5218 ipa_auto_call_arg_values rather than with separate vectors.
5219 (do_estimate_edge_size): Likewise.
5220 (do_estimate_edge_hints): Likewise.
5221 * ipa-prop.c (ipa_auto_call_arg_values::~ipa_auto_call_arg_values):
5224 2020-10-02 Joe Ramsay <joe.ramsay@arm.com>
5226 * config/arm/arm_mve.h (__arm_vmaxnmavq): Remove coercion of scalar
5228 (__arm_vmaxnmvq): Likewise.
5229 (__arm_vminnmavq): Likewise.
5230 (__arm_vminnmvq): Likewise.
5231 (__arm_vmaxnmavq_p): Likewise.
5232 (__arm_vmaxnmvq_p): Likewise (and delete duplicate definition).
5233 (__arm_vminnmavq_p): Likewise.
5234 (__arm_vminnmvq_p): Likewise.
5235 (__arm_vmaxavq): Likewise.
5236 (__arm_vmaxavq_p): Likewise.
5237 (__arm_vmaxvq): Likewise.
5238 (__arm_vmaxvq_p): Likewise.
5239 (__arm_vminavq): Likewise.
5240 (__arm_vminavq_p): Likewise.
5241 (__arm_vminvq): Likewise.
5242 (__arm_vminvq_p): Likewise.
5244 2020-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5246 * config/aarch64/aarch64.c (neoversev1_tunings): Define.
5247 * config/aarch64/aarch64-cores.def (zeus): Use it.
5248 (neoverse-v1): Likewise.
5250 2020-10-02 Jan Hubicka <hubicka@ucw.cz>
5252 * attr-fnspec.h: Update documentation.
5253 (attr_fnsec::return_desc_size): Set to 2
5254 (attr_fnsec::arg_desc_size): Set to 2
5255 * builtin-attrs.def (STR1): Update fnspec.
5256 * internal-fn.def (UBSAN_NULL): Update fnspec.
5257 (UBSAN_VPTR): Update fnspec.
5258 (UBSAN_PTR): Update fnspec.
5259 (ASAN_CHECK): Update fnspec.
5260 (GOACC_DIM_SIZE): Remove fnspec.
5261 (GOACC_DIM_POS): Remove fnspec.
5262 * tree-ssa-alias.c (attr_fnspec::verify): Update verification.
5264 2020-10-02 Jan Hubicka <jh@suse.cz>
5266 * attr-fnspec.h: New file.
5267 * calls.c (decl_return_flags): Use attr_fnspec.
5268 * gimple.c (gimple_call_arg_flags): Use attr_fnspec.
5269 (gimple_call_return_flags): Use attr_fnspec.
5270 * tree-into-ssa.c (pass_build_ssa::execute): Use attr_fnspec.
5271 * tree-ssa-alias.c (attr_fnspec::verify): New member fuction.
5273 2020-10-02 Jan Hubicka <jh@suse.cz>
5275 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_range): Break out from ...
5276 (ao_ref_init_from_ptr_and_size): ... here.
5278 2020-10-02 Jan Hubicka <hubicka@ucw.cz>
5280 * data-streamer-in.c (streamer_read_poly_int64): New function.
5281 * data-streamer-out.c (streamer_write_poly_int64): New function.
5282 * data-streamer.h (streamer_write_poly_int64): Declare.
5283 (streamer_read_poly_int64): Declare.
5285 2020-10-02 Richard Sandiford <richard.sandiford@arm.com>
5287 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
5289 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): Likewise.
5290 * config/aarch64/aarch64-sve.md: Add banner comment describing
5291 how merging predicated FP operations are represented.
5292 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2): Split into...
5293 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_relaxed): ...this and...
5294 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_strict): ...this.
5295 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any): Split into...
5296 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_relaxed): ...this and...
5297 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_strict): ...this.
5298 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): Split into...
5299 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_relaxed): ...this and...
5300 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_strict): ...this.
5301 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Split into...
5302 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_relaxed): ...this
5304 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_strict): ...this.
5305 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2): Split into...
5306 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_relaxed): ...this and...
5307 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_strict): ...this.
5308 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const): Split into...
5309 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_relaxed): ...this
5311 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_strict): ...this.
5312 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3): Split into...
5313 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_relaxed): ...this and...
5314 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_strict): ...this.
5315 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any): Split into...
5316 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_relaxed): ...this and...
5317 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_strict): ...this.
5318 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const): Split into...
5319 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_relaxed): ...this
5321 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_strict): ...this.
5322 (*cond_add<mode>_2_const): Split into...
5323 (*cond_add<mode>_2_const_relaxed): ...this and...
5324 (*cond_add<mode>_2_const_strict): ...this.
5325 (*cond_add<mode>_any_const): Split into...
5326 (*cond_add<mode>_any_const_relaxed): ...this and...
5327 (*cond_add<mode>_any_const_strict): ...this.
5328 (*cond_<SVE_COND_FCADD:optab><mode>_2): Split into...
5329 (*cond_<SVE_COND_FCADD:optab><mode>_2_relaxed): ...this and...
5330 (*cond_<SVE_COND_FCADD:optab><mode>_2_strict): ...this.
5331 (*cond_<SVE_COND_FCADD:optab><mode>_any): Split into...
5332 (*cond_<SVE_COND_FCADD:optab><mode>_any_relaxed): ...this and...
5333 (*cond_<SVE_COND_FCADD:optab><mode>_any_strict): ...this.
5334 (*cond_sub<mode>_3_const): Split into...
5335 (*cond_sub<mode>_3_const_relaxed): ...this and...
5336 (*cond_sub<mode>_3_const_strict): ...this.
5337 (*aarch64_pred_abd<mode>): Split into...
5338 (*aarch64_pred_abd<mode>_relaxed): ...this and...
5339 (*aarch64_pred_abd<mode>_strict): ...this.
5340 (*aarch64_cond_abd<mode>_2): Split into...
5341 (*aarch64_cond_abd<mode>_2_relaxed): ...this and...
5342 (*aarch64_cond_abd<mode>_2_strict): ...this.
5343 (*aarch64_cond_abd<mode>_3): Split into...
5344 (*aarch64_cond_abd<mode>_3_relaxed): ...this and...
5345 (*aarch64_cond_abd<mode>_3_strict): ...this.
5346 (*aarch64_cond_abd<mode>_any): Split into...
5347 (*aarch64_cond_abd<mode>_any_relaxed): ...this and...
5348 (*aarch64_cond_abd<mode>_any_strict): ...this.
5349 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2): Split into...
5350 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_relaxed): ...this and...
5351 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_strict): ...this.
5352 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4): Split into...
5353 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_relaxed): ...this and...
5354 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_strict): ...this.
5355 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any): Split into...
5356 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_relaxed): ...this and...
5357 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_strict): ...this.
5358 (*cond_<SVE_COND_FCMLA:optab><mode>_4): Split into...
5359 (*cond_<SVE_COND_FCMLA:optab><mode>_4_relaxed): ...this and...
5360 (*cond_<SVE_COND_FCMLA:optab><mode>_4_strict): ...this.
5361 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Split into...
5362 (*cond_<SVE_COND_FCMLA:optab><mode>_any_relaxed): ...this and...
5363 (*cond_<SVE_COND_FCMLA:optab><mode>_any_strict): ...this.
5364 (*aarch64_pred_fac<cmp_op><mode>): Split into...
5365 (*aarch64_pred_fac<cmp_op><mode>_relaxed): ...this and...
5366 (*aarch64_pred_fac<cmp_op><mode>_strict): ...this.
5367 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>): Split
5369 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_relaxed):
5371 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_strict):
5373 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>): Split
5375 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_relaxed):
5377 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_strict):
5379 * config/aarch64/aarch64-sve2.md
5380 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>): Split into...
5381 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_relaxed): ...this and...
5382 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_strict): ...this.
5383 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any): Split into...
5384 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_relaxed): ...this
5386 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_strict): ...this.
5387 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>): Split into...
5388 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_relaxed): ...this and...
5389 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_strict): ...this.
5391 2020-10-02 Richard Sandiford <richard.sandiford@arm.com>
5393 * config/arm/neon.md (*sub<VDQ:mode>3_neon): Use the new mode macros
5394 for the insn condition.
5395 (sub<VH:mode>3, *mul<VDQW:mode>3_neon): Likewise.
5396 (mul<VDQW:mode>3add<VDQW:mode>_neon): Likewise.
5397 (mul<VH:mode>3add<VH:mode>_neon): Likewise.
5398 (mul<VDQW:mode>3neg<VDQW:mode>add<VDQW:mode>_neon): Likewise.
5399 (fma<VCVTF:mode>4, fma<VH:mode>4, *fmsub<VCVTF:mode>4): Likewise.
5400 (quad_halves_<code>v4sf, reduc_plus_scal_<VD:mode>): Likewise.
5401 (reduc_plus_scal_<VQ:mode>, reduc_smin_scal_<VD:mode>): Likewise.
5402 (reduc_smin_scal_<VQ:mode>, reduc_smax_scal_<VD:mode>): Likewise.
5403 (reduc_smax_scal_<VQ:mode>, mul<VH:mode>3): Likewise.
5404 (neon_vabd<VF:mode>_2, neon_vabd<VF:mode>_3): Likewise.
5405 (fma<VH:mode>4_intrinsic): Delete.
5406 (neon_vadd<VCVTF:mode>): Use the new mode macros to decide which
5407 form of instruction to generate.
5408 (neon_vmla<VDQW:mode>, neon_vmls<VDQW:mode>): Likewise.
5409 (neon_vsub<VCVTF:mode>): Likewise.
5410 (neon_vfma<VH:mode>): Generate the main fma<mode>4 form instead
5411 of using fma<mode>4_intrinsic.
5413 2020-10-02 Martin Liska <mliska@suse.cz>
5415 PR gcov-profile/97193
5416 * coverage.c (coverage_init): GCDA note files should not be
5417 mangled and should end in output directory.
5419 2020-10-02 Jason Merril <jason@redhat.com>
5421 * gimple.h (gimple_call_operator_delete_p): Rename from
5422 gimple_call_replaceable_operator_delete_p.
5423 * gimple.c (gimple_call_operator_delete_p): Likewise.
5424 * tree.h (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): Remove.
5425 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Adjust.
5426 (propagate_necessity): Likewise.
5427 (eliminate_unnecessary_stmts): Likewise.
5428 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
5430 2020-10-02 Richard Biener <rguenther@suse.de>
5432 * gimple.h (GF_CALL_FROM_NEW_OR_DELETE): New call flag.
5433 (gimple_call_set_from_new_or_delete): New.
5434 (gimple_call_from_new_or_delete): Likewise.
5435 * gimple.c (gimple_build_call_from_tree): Set
5436 GF_CALL_FROM_NEW_OR_DELETE appropriately.
5437 * ipa-icf-gimple.c (func_checker::compare_gimple_call):
5438 Compare gimple_call_from_new_or_delete.
5439 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Make
5440 sure to only consider new/delete calls from new or delete
5442 (propagate_necessity): Likewise.
5443 (eliminate_unnecessary_stmts): Likewise.
5444 * tree-ssa-structalias.c (find_func_aliases_for_call):
5447 2020-10-02 Jason Merril <jason@redhat.com>
5449 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Move from cp-tree.h.
5450 * tree-core.h: Document new usage of protected_flag.
5452 2020-10-02 Aldy Hernandez <aldyh@redhat.com>
5454 * value-range.h (irange::fits_p): New.
5456 2020-10-01 Alan Modra <amodra@gmail.com>
5458 * config/rs6000/rs6000.c (rs6000_legitimize_address): Use
5459 gen_int_mode for high part of address constant.
5461 2020-10-01 Alan Modra <amodra@gmail.com>
5463 * config/rs6000/rs6000.c (rs6000_linux64_override_options):
5464 Formatting. Correct setting of TARGET_NO_FP_IN_TOC and
5465 TARGET_NO_SUM_IN_TOC.
5467 2020-10-01 Alan Modra <amodra@gmail.com>
5469 * config/rs6000/freebsd64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5470 rs6000_linux64_override_options.
5471 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Break
5473 * config/rs6000/rs6000.c (rs6000_linux64_override_options): ..this,
5474 new function. Tweak non-biarch test and clearing of
5475 profile_kernel to work with freebsd64.h.
5477 2020-10-01 Martin Liska <mliska@suse.cz>
5479 * config/rs6000/rs6000-call.c: Include value-range.h.
5480 * config/rs6000/rs6000.c: Likewise.
5482 2020-10-01 Tom de Vries <tdevries@suse.de>
5485 * config/nvptx/nvptx.md (define_insn "truncsi<QHIM>2"): Emit mov.u32
5486 instead of cvt.u32.u32.
5488 2020-10-01 Richard Sandiford <richard.sandiford@arm.com>
5492 * config/arm/arm-protos.h (arm_expand_vector_compare): Declare.
5493 (arm_expand_vcond): Likewise.
5494 * config/arm/arm.c (arm_expand_vector_compare): New function.
5495 (arm_expand_vcond): Likewise.
5496 * config/arm/neon.md (vec_cmp<VDQW:mode><v_cmp_result>): New pattern.
5497 (vec_cmpu<VDQW:mode><VDQW:mode>): Likewise.
5498 (vcond<VDQW:mode><VDQW:mode>): Require operand 5 to be a register
5499 or zero. Use arm_expand_vcond.
5500 (vcond<V_cvtto><V32:mode>): New pattern.
5501 (vcondu<VDQIW:mode><VDQIW:mode>): Generalize to...
5502 (vcondu<VDQW:mode><v_cmp_result): ...this. Require operand 5
5503 to be a register or zero. Use arm_expand_vcond.
5504 (vcond_mask_<VDQW:mode><v_cmp_result>): New pattern.
5505 (neon_vc<cmp_op><mode>, neon_vc<cmp_op><mode>_insn): Add "@" marker.
5506 (neon_vbsl<mode>): Likewise.
5507 (neon_vc<cmp_op>u<mode>): Reexpress as...
5508 (@neon_vc<code><mode>): ...this.
5510 2020-10-01 Michael Davidsaver <mdavidsaver@gmail.com>
5512 * config/i386/t-rtems: Change from mtune to march when building
5513 multilibs. The mtune argument tunes or optimizes for a specific
5514 CPU model but does not ensure the generated code is appropriate
5515 for the CPU model. Prior to this patch, i386 compatible code
5516 was always generated but tuned for later models.
5518 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
5520 * builtins.c (compute_objsize): Replace vr_values with range_query.
5522 (gimple_call_alloc_size): Same.
5523 * builtins.h (class vr_values): Remove.
5524 (gimple_call_alloc_size): Replace vr_values with range_query.
5525 * gimple-ssa-sprintf.c (get_int_range): Same.
5526 (struct directive): Pass gimple context to fmtfunc callback.
5527 (directive::set_width): Replace inline with out-of-line version.
5528 (directive::set_precision): Same.
5529 (format_none): New gimple argument.
5530 (format_percent): New gimple argument.
5531 (format_integer): New gimple argument.
5532 (format_floating): New gimple argument.
5533 (get_string_length): Use range_query API.
5534 (format_character): New gimple argument.
5535 (format_string): New gimple argument.
5536 (format_plain): New gimple argument.
5537 (format_directive): New gimple argument.
5538 (parse_directive): Replace vr_values with range_query.
5539 (compute_format_length): Same.
5540 (handle_printf_call): Same. Adjust for range_query API.
5541 * tree-ssa-strlen.c (get_range): Same.
5542 (compare_nonzero_chars): Same.
5543 (get_addr_stridx) Replace vr_values with range_query.
5545 (dump_strlen_info): Same.
5546 (get_range_strlen_dynamic): Adjust for range_query API.
5547 (set_strlen_range): Same
5548 (maybe_warn_overflow): Replace vr_values with range_query.
5549 (handle_builtin_strcpy): Same.
5550 (maybe_diag_stxncpy_trunc): Add FIXME comment.
5551 (handle_builtin_memcpy): Replace vr_values with range_query.
5552 (handle_builtin_memset): Same.
5553 (get_len_or_size): Same.
5554 (strxcmp_eqz_result): Same.
5555 (handle_builtin_string_cmp): Same.
5556 (count_nonzero_bytes_addr): Same, plus adjust for range_query API.
5557 (count_nonzero_bytes): Replace vr_values with range_query.
5558 (handle_store): Same.
5559 (strlen_check_and_optimize_call): Same.
5560 (handle_integral_assign): Same.
5561 (check_and_optimize_stmt): Same.
5562 * tree-ssa-strlen.h (class vr_values): Remove.
5563 (get_range): Replace vr_values with range_query.
5564 (get_range_strlen_dynamic): Same.
5565 (handle_printf_call): Same.
5567 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
5569 * gimple-loop-versioning.cc (lv_dom_walker::before_dom_children):
5570 Pass m_range_analyzer instead of get_vr_values.
5571 (loop_versioning::name_prop::get_value): Rename to...
5572 (loop_versioning::name_prop::value_of_expr): ...this.
5573 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::evrp_range_analyzer):
5574 Adjust for evrp_range_analyzer
5575 inheriting from vr_values.
5576 (evrp_range_analyzer::try_find_new_range): Same.
5577 (evrp_range_analyzer::record_ranges_from_incoming_edge): Same.
5578 (evrp_range_analyzer::record_ranges_from_phis): Same.
5579 (evrp_range_analyzer::record_ranges_from_stmt): Same.
5580 (evrp_range_analyzer::push_value_range): Same.
5581 (evrp_range_analyzer::pop_value_range): Same.
5582 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Inherit from
5583 vr_values. Adjust accordingly.
5584 * gimple-ssa-evrp.c: Adjust for evrp_range_analyzer inheriting from
5586 (evrp_folder::value_of_evrp): Rename from get_value.
5587 * tree-ssa-ccp.c (class ccp_folder): Rename get_value to
5589 (ccp_folder::get_value): Rename to...
5590 (ccp_folder::value_of_expr): ...this.
5591 * tree-ssa-copy.c (class copy_folder): Rename get_value to
5593 (copy_folder::get_value): Rename to...
5594 (copy_folder::value_of_expr): ...this.
5595 * tree-ssa-dom.c (dom_opt_dom_walker::after_dom_children): Adjust
5596 for evrp_range_analyzer inheriting from vr_values.
5597 (dom_opt_dom_walker::optimize_stmt): Same.
5598 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
5599 Call value_of_* instead of get_value.
5600 (substitute_and_fold_engine::replace_phi_args_in): Same.
5601 (substitute_and_fold_engine::propagate_into_phi_args): Same.
5602 (substitute_and_fold_dom_walker::before_dom_children): Same.
5603 * tree-ssa-propagate.h: Include value-query.h.
5604 (class substitute_and_fold_engine): Inherit from value_query.
5605 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children):
5606 Adjust for evrp_range_analyzer inheriting from vr_values.
5607 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
5609 * tree-vrp.c (class vrp_folder): Same.
5610 (vrp_folder::get_value): Rename to value_of_expr.
5611 * vr-values.c (vr_values::get_lattice_entry): Adjust for
5612 vr_values inheriting from range_query.
5613 (vr_values::range_of_expr): New.
5614 (vr_values::value_of_expr): New.
5615 (vr_values::value_on_edge): New.
5616 (vr_values::value_of_stmt): New.
5617 (simplify_using_ranges::op_with_boolean_value_range_p): Call
5618 get_value_range through query.
5619 (check_for_binary_op_overflow): Rename store to query.
5620 (vr_values::vr_values): Remove vrp_value_range_pool.
5621 (vr_values::~vr_values): Same.
5622 (simplify_using_ranges::get_vr_for_comparison): Call get_value_range
5624 (simplify_using_ranges::compare_names): Same.
5625 (simplify_using_ranges::vrp_evaluate_conditional): Same.
5626 (simplify_using_ranges::vrp_visit_cond_stmt): Same.
5627 (simplify_using_ranges::simplify_abs_using_ranges): Same.
5628 (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
5629 (simplify_cond_using_ranges_2): Same.
5630 (simplify_using_ranges::simplify_switch_using_ranges): Same.
5631 (simplify_using_ranges::two_valued_val_range_p): Same.
5632 (simplify_using_ranges::simplify_using_ranges): Rename store to query.
5633 (simplify_using_ranges::simplify): Assert that we have a query.
5634 * vr-values.h (class range_query): Remove.
5635 (class simplify_using_ranges): Remove inheritance of range_query.
5636 (class vr_values): Add virtuals for range_of_expr, value_of_expr,
5637 value_on_edge, value_of_stmt, and get_value_range.
5638 Call range_query allocator instead of using vrp_value_range_pool.
5639 Remove vrp_value_range_pool.
5640 (simplify_using_ranges::get_value_range): Remove.
5642 2020-10-01 Richard Biener <rguenther@suse.de>
5644 PR tree-optimization/97236
5645 * tree-vect-stmts.c (get_group_load_store_type): Keep
5646 VMAT_ELEMENTWISE for single-element vectors.
5648 2020-10-01 Jan Hubicka <jh@suse.cz>
5650 * ipa-modref.c (compute_parm_map): Be ready for callee_pi to be NULL.
5652 2020-10-01 Jan Hubicka <jh@suse.cz>
5655 * ipa-fnsummary.c (pass_free_fnsummary::execute): Free
5656 also indirect inlining datastructure.
5657 * ipa-modref.c (pass_ipa_modref::execute): Do not free them here.
5658 * ipa-prop.c (ipa_free_all_node_params): Do not crash when info does
5660 (ipa_unregister_cgraph_hooks): Likewise.
5662 2020-10-01 Jan Hubicka <jh@suse.cz>
5664 * internal-fn.c (DEF_INTERNAL_FN): Fix handling of fnspec
5666 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
5668 * Makefile.in: Add value-query.o.
5669 * value-query.cc: New file.
5670 * value-query.h: New file.
5672 2020-10-01 Alex Coplan <alex.coplan@arm.com>
5674 * config/arm/arm-cpus.in: Fix ordering, move Neoverse N2 down.
5675 * config/arm/arm-tables.opt: Regenerate.
5676 * config/arm/arm-tune.md: Regenerate.
5678 2020-10-01 Jakub Jelinek <jakub@redhat.com>
5680 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
5681 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
5682 fenv_var and old_fpc. Formatting fixes.
5684 2020-10-01 Richard Biener <rguenther@suse.de>
5686 * tree-vect-patterns.c (vect_recog_bool_pattern): Also handle
5689 2020-10-01 Florian Weimer <fweimer@redhat.com>
5692 * config/i386/i386.h (PTA_NO_TUNE, PTA_X86_64_BASELINE)
5693 (PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4): New.
5694 * common/config/i386/i386-common.c (processor_alias_table):
5695 Add "x86-64-v2", "x86-64-v3", "x86-64-v4".
5696 * config/i386/i386-options.c (ix86_option_override_internal):
5697 Handle new PTA_NO_TUNE processor table entries.
5698 * doc/invoke.texi (x86 Options): Document new -march values.
5700 2020-10-01 Alan Modra <amodra@gmail.com>
5702 * config/rs6000/ppc-asm.h: Support __PCREL__ code.
5704 2020-10-01 Alan Modra <amodra@gmail.com>
5706 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
5707 set -mcmodel=small for -mno-minimal-toc when pcrel.
5709 2020-09-30 Martin Sebor <msebor@redhat.com>
5712 * attribs.c (attr_access::array_as_string): Avoid assuming a VLA
5713 access specification string contains a closing bracket.
5715 2020-09-30 Martin Sebor <msebor@redhat.com>
5718 * attribs.c (attr_access::array_as_string): Avoid modifying a shared
5719 type in place and use build_type_attribute_qual_variant instead.
5721 2020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5723 * config/arm/arm-cpus.in: Add Cortex-A78 and Cortex-A78AE cores.
5724 * config/arm/arm-tables.opt: Regenerate.
5725 * config/arm/arm-tune.md: Regenerate.
5726 * doc/invoke.texi: Update docs.
5728 2020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5730 * config/aarch64/aarch64-cores.def: Add Cortex-A78 and Cortex-A78AE cores.
5731 * config/aarch64/aarch64-tune.md: Regenerate.
5732 * doc/invoke.texi: Add -mtune=cortex-a78 and -mtune=cortex-a78ae.
5734 2020-09-30 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5737 * config/arm/arm_mve.h (__ARM_mve_coerce2): Define.
5738 (__arm_vaddq): Correct the scalar argument.
5739 (__arm_vaddq_m): Likewise.
5740 (__arm_vaddq_x): Likewise.
5741 (__arm_vcmpeqq_m): Likewise.
5742 (__arm_vcmpeqq): Likewise.
5743 (__arm_vcmpgeq_m): Likewise.
5744 (__arm_vcmpgeq): Likewise.
5745 (__arm_vcmpgtq_m): Likewise.
5746 (__arm_vcmpgtq): Likewise.
5747 (__arm_vcmpleq_m): Likewise.
5748 (__arm_vcmpleq): Likewise.
5749 (__arm_vcmpltq_m): Likewise.
5750 (__arm_vcmpltq): Likewise.
5751 (__arm_vcmpneq_m): Likewise.
5752 (__arm_vcmpneq): Likewise.
5753 (__arm_vfmaq_m): Likewise.
5754 (__arm_vfmaq): Likewise.
5755 (__arm_vfmasq_m): Likewise.
5756 (__arm_vfmasq): Likewise.
5757 (__arm_vmaxnmavq): Likewise.
5758 (__arm_vmaxnmavq_p): Likewise.
5759 (__arm_vmaxnmvq): Likewise.
5760 (__arm_vmaxnmvq_p): Likewise.
5761 (__arm_vminnmavq): Likewise.
5762 (__arm_vminnmavq_p): Likewise.
5763 (__arm_vminnmvq): Likewise.
5764 (__arm_vminnmvq_p): Likewise.
5765 (__arm_vmulq_m): Likewise.
5766 (__arm_vmulq): Likewise.
5767 (__arm_vmulq_x): Likewise.
5768 (__arm_vsetq_lane): Likewise.
5769 (__arm_vsubq_m): Likewise.
5770 (__arm_vsubq): Likewise.
5771 (__arm_vsubq_x): Likewise.
5773 2020-09-30 Joel Hutton <joel.hutton@arm.com>
5776 * tree-vect-slp.c (vect_analyze_slp): Do not call
5777 vect_attempt_slp_rearrange_stmts for vector constructors.
5779 2020-09-30 Tamar Christina <tamar.christina@arm.com>
5781 * tree-vectorizer.h (SLP_TREE_REF_COUNT): New.
5782 * tree-vect-slp.c (_slp_tree::_slp_tree, _slp_tree::~_slp_tree,
5783 vect_free_slp_tree, vect_build_slp_tree, vect_print_slp_tree,
5784 slp_copy_subtree, vect_attempt_slp_rearrange_stmts): Use it.
5786 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
5788 * omp-offload.c (omp_discover_implicit_declare_target): Also
5789 handled nested functions.
5791 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
5792 Tom de Vries <tdevries@suse.de>
5794 * builtins.c (expand_builtin_cexpi, fold_builtin_sincos): Update
5795 targetm.libc_has_function call.
5796 * builtins.def (DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C11_BUILTIN):
5797 (DEF_C2X_BUILTIN, DEF_C99_COMPL_BUILTIN, DEF_C99_C90RES_BUILTIN):
5799 * config/darwin-protos.h (darwin_libc_has_function): Update prototype.
5800 * config/darwin.c (darwin_libc_has_function): Add arg.
5801 * config/linux-protos.h (linux_libc_has_function): Update prototype.
5802 * config/linux.c (linux_libc_has_function): Add arg.
5803 * config/i386/i386.c (ix86_libc_has_function): Update
5804 targetm.libc_has_function call.
5805 * config/nvptx/nvptx.c (nvptx_libc_has_function): New function.
5806 (TARGET_LIBC_HAS_FUNCTION): Redefine to nvptx_libc_has_function.
5807 * convert.c (convert_to_integer_1): Update targetm.libc_has_function
5810 * target.def (libc_has_function): Add arg.
5811 * doc/tm.texi: Regenerate.
5812 * targhooks.c (default_libc_has_function, gnu_libc_has_function)
5813 (no_c99_libc_has_function): Add arg.
5814 * targhooks.h (default_libc_has_function, no_c99_libc_has_function)
5815 (gnu_libc_has_function): Update prototype.
5816 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Update
5817 targetm.libc_has_function call.
5819 2020-09-30 H.J. Lu <hjl.tools@gmail.com>
5822 * config/i386/i386.md (UNSPECV_MOVDIRI): Renamed to ...
5823 (UNSPEC_MOVDIRI): This.
5824 (UNSPECV_MOVDIR64B): Renamed to ...
5825 (UNSPEC_MOVDIR64B): This.
5826 (movdiri<mode>): Use SET operation.
5827 (@movdir64b_<mode>): Likewise.
5829 2020-09-30 Florian Weimer <fweimer@redhat.com>
5831 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5832 __LAHF_SAHF__ and __MOVBE__ based on ISA flags.
5834 2020-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5837 * config/aarch64/arm_neon.h (vqrshlb_u8): Make second argument
5839 (vqrshlh_u16): Likewise.
5840 (vqrshls_u32): Likewise.
5841 (vqrshld_u64): Likewise.
5842 (vqshlb_u8): Likewise.
5843 (vqshlh_u16): Likewise.
5844 (vqshls_u32): Likewise.
5845 (vqshld_u64): Likewise.
5846 (vshld_u64): Likewise.
5848 2020-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5851 * config/aarch64/aarch64-simd-builtins.def (sqmovun): Use UNOPUS
5853 * config/aarch64/arm_neon.h (vqmovun_s16): Adjust builtin call.
5854 Remove unnecessary result cast.
5855 (vqmovun_s32): Likewise.
5856 (vqmovun_s64): Likewise.
5857 (vqmovunh_s16): Likewise. Fix return type.
5858 (vqmovuns_s32): Likewise.
5859 (vqmovund_s64): Likewise.
5861 2020-09-30 Richard Sandiford <richard.sandiford@arm.com>
5863 * config/aarch64/aarch64.c (aarch64_split_128bit_move_p): Add a
5864 function comment. Tighten check for FP moves.
5865 * config/aarch64/aarch64.md (*movti_aarch64): Add a w<-Z alternative.
5866 (*movtf_aarch64): Handle r<-Y like r<-r. Remove unnecessary
5867 earlyclobber. Change splitter predicate from aarch64_reg_or_imm
5868 to nonmemory_operand.
5870 2020-09-30 Alex Coplan <alex.coplan@arm.com>
5873 * config/arm/arm.md (movsf): Relax TARGET_HARD_FLOAT to
5876 * config/arm/vfp.md (no_literal_pool_df_immediate): Likewise.
5877 (no_literal_pool_sf_immediate): Likewise.
5879 2020-09-30 Alan Modra <amodra@gmail.com>
5881 * configure.ac (--with-long-double-format): Typo fix.
5882 * configure: Regenerate.
5884 2020-09-30 Alan Modra <amodra@gmail.com>
5886 * config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't use
5887 non-existent operands[].
5888 (@tablejump<mode>_nospec): Likewise.
5890 2020-09-30 Segher Boessenkool <segher@kernel.crashing.org>
5892 * config/rs6000/rs6000.md (tablejump): Simplify.
5893 (tablejumpsi): Merge this ...
5894 (tablejumpdi): ... and this ...
5895 (@tablejump<mode>_normal): ... into this.
5896 (tablejumpsi_nospec): Merge this ...
5897 (tablejumpdi_nospec): ... and this ...
5898 (@tablejump<mode>_nospec): ... into this.
5899 (*tablejump<mode>_internal1): Delete, rename to ...
5900 (@tablejump<mode>_insn_normal): ... this.
5901 (*tablejump<mode>_internal1_nospec): Delete, rename to ...
5902 (@tablejump<mode>_insn_nospec): ... this.
5904 2020-09-29 Martin Sebor <msebor@redhat.com>
5907 * calls.c (maybe_warn_rdwr_sizes): Simplify warning messages.
5908 Correct handling of VLA argumments.
5910 2020-09-29 Marek Polacek <polacek@redhat.com>
5913 * doc/invoke.texi: Document -Wrange-loop-construct.
5915 2020-09-29 Jim Wilson <jimw@sifive.com>
5918 * configure.ac (gcc_cv_header_zstd_h): Check ZSTD_VERISON_NUMBER.
5919 * configure: Regenerated.
5921 2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5923 * config/arm/arm-cpus.in: Add Cortex-X1 core.
5924 * config/arm/arm-tables.opt: Regenerate.
5925 * config/arm/arm-tune.md: Regenerate.
5926 * doc/invoke.texi: Update docs.
5928 2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5930 * config/aarch64/aarch64-cores.def: Add Cortex-X1 Arm core.
5931 * config/aarch64/aarch64-tune.md: Regenerate.
5932 * doc/invoke.texi: Add -mtune=cortex-x1 docs.
5934 2020-09-29 H.J. Lu <hjl.tools@gmail.com>
5937 * config/i386/enqcmdintrin.h: Replace <enqcmdntrin.h> with
5938 <enqcmdintrin.h>. Replace _ENQCMDNTRIN_H_INCLUDED with
5939 _ENQCMDINTRIN_H_INCLUDED.
5941 2020-09-29 Richard Biener <rguenther@suse.de>
5943 PR tree-optimization/97241
5944 * tree-vect-loop.c (vectorizable_reduction): Move finding
5945 the SLP node for the reduction stmt to a better place.
5947 2020-09-29 Richard Biener <rguenther@suse.de>
5949 * tree-vect-slp.c (vect_analyze_slp): Move SLP reduction
5950 re-arrangement and SLP graph load gathering...
5951 (vect_optimize_slp): ... here.
5952 * tree-vectorizer.h (vec_info::slp_loads): Remove.
5954 2020-09-29 Hongyu Wang <hongyu.wang@intel.com>
5957 * config/i386/amxbf16intrin.h: Add FSF copyright notes.
5958 * config/i386/amxint8intrin.h: Ditto.
5959 * config/i386/amxtileintrin.h: Ditto.
5960 * config/i386/avx512vp2intersectintrin.h: Ditto.
5961 * config/i386/avx512vp2intersectvlintrin.h: Ditto.
5962 * config/i386/pconfigintrin.h: Ditto.
5963 * config/i386/tsxldtrkintrin.h: Ditto.
5964 * config/i386/wbnoinvdintrin.h: Ditto.
5966 2020-09-29 Richard Biener <rguenther@suse.de>
5968 PR tree-optimization/97238
5969 * tree-ssa-reassoc.c (ovce_extract_ops): Fix typo.
5971 2020-09-29 Richard Sandiford <richard.sandiford@arm.com>
5973 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_ARITH, ARM_HAVE_NEON_V4HI_ARITH)
5974 (ARM_HAVE_NEON_V2SI_ARITH, ARM_HAVE_NEON_V16QI_ARITH): New macros.
5975 (ARM_HAVE_NEON_V8HI_ARITH, ARM_HAVE_NEON_V4SI_ARITH): Likewise.
5976 (ARM_HAVE_NEON_V2DI_ARITH, ARM_HAVE_NEON_V4HF_ARITH): Likewise.
5977 (ARM_HAVE_NEON_V8HF_ARITH, ARM_HAVE_NEON_V2SF_ARITH): Likewise.
5978 (ARM_HAVE_NEON_V4SF_ARITH, ARM_HAVE_V8QI_ARITH, ARM_HAVE_V4HI_ARITH)
5979 (ARM_HAVE_V2SI_ARITH, ARM_HAVE_V16QI_ARITH, ARM_HAVE_V8HI_ARITH)
5980 (ARM_HAVE_V4SI_ARITH, ARM_HAVE_V2DI_ARITH, ARM_HAVE_V4HF_ARITH)
5981 (ARM_HAVE_V2SF_ARITH, ARM_HAVE_V8HF_ARITH, ARM_HAVE_V4SF_ARITH):
5983 * config/arm/iterators.md (VNIM, VNINOTM): Delete.
5984 * config/arm/vec-common.md (add<VNIM:mode>3, addv8hf3)
5985 (add<VNINOTM:mode>3): Replace with...
5986 (add<VDQ:mode>3): ...this new expander.
5987 * config/arm/neon.md (*add<VDQ:mode>3_neon): Use the new
5988 ARM_HAVE_NEON_<MODE>_ARITH macros as the C condition.
5989 (addv8hf3_neon, addv4hf3, add<VFH:mode>3_fp16): Delete in
5991 (neon_vadd<VH:mode>): Use gen_add<mode>3 instead of
5992 gen_add<mode>3_fp16.
5994 2020-09-29 Kito Cheng <kito.cheng@sifive.com>
5996 * config/riscv/riscv-c.c (riscv_cpu_cpp_builtins): Define
5997 __riscv_cmodel_medany when PIC mode.
5999 2020-09-29 Alex Coplan <alex.coplan@arm.com>
6001 * config/aarch64/aarch64-cores.def: Move neoverse-n2 after saphira.
6002 * config/aarch64/aarch64-tune.md: Regenerate.
6004 2020-09-29 Martin Liska <mliska@suse.cz>
6006 PR tree-optimization/96979
6007 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
6008 Make a fast bail out.
6009 (bit_test_cluster::can_be_handled): Likewise here.
6010 * tree-switch-conversion.h (get_range): Use wi::to_wide instead
6013 2020-09-29 Martin Liska <mliska@suse.cz>
6016 2020-09-22 Martin Liska <mliska@suse.cz>
6018 PR tree-optimization/96979
6019 * doc/invoke.texi: Document new param max-switch-clustering-attempts.
6020 * params.opt: Add new parameter.
6021 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6022 Limit number of attempts.
6023 (bit_test_cluster::find_bit_tests): Likewise.
6025 2020-09-28 Aldy Hernandez <aldyh@redhat.com>
6027 * value-range.h (class irange): Add irange_allocator friend.
6028 (class irange_allocator): New.
6030 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6033 * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Handle
6036 2020-09-28 Paul A. Clarke <pc@us.ibm.com>
6038 * config/rs6000/smmintrin.h (_mm_insert_epi8): New.
6039 (_mm_insert_epi32): New.
6040 (_mm_insert_epi64): New.
6042 2020-09-28 liuhongt <hongtao.liu@intel.com>
6044 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_AMX_TILE_SET,
6045 OPTION_MASK_ISA2_AMX_INT8_SET, OPTION_MASK_ISA2_AMX_BF16_SET,
6046 OPTION_MASK_ISA2_AMX_TILE_UNSET, OPTION_MASK_ISA2_AMX_INT8_UNSET,
6047 OPTION_MASK_ISA2_AMX_BF16_UNSET, OPTION_MASK_ISA2_XSAVE_UNSET):
6049 (ix86_handle_option): Hanlde -mamx-tile, -mamx-int8, -mamx-bf16.
6050 * common/config/i386/i386-cpuinfo.h (processor_types): Add
6051 FEATURE_AMX_TILE, FEATURE_AMX_INT8, FEATURE_AMX_BF16.
6052 * common/config/i386/cpuinfo.h (XSTATE_TILECFG,
6053 XSTATE_TILEDATA, XCR_AMX_ENABLED_MASK): New macro.
6054 (get_available_features): Enable AMX features only if
6055 their states are suoorited by OSXSAVE.
6056 * common/config/i386/i386-isas.h: Add ISA_NAME_TABLE_ENTRY
6057 for amx-tile, amx-int8, amx-bf16.
6058 * config.gcc: Add amxtileintrin.h, amxint8intrin.h,
6059 amxbf16intrin.h to extra headers.
6060 * config/i386/amxbf16intrin.h: New file.
6061 * config/i386/amxint8intrin.h: Ditto.
6062 * config/i386/amxtileintrin.h: Ditto.
6063 * config/i386/cpuid.h (bit_AMX_BF16, bit_AMX_TILE, bit_AMX_INT8):
6065 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6066 __AMX_TILE__, __AMX_INT8__, AMX_BF16__.
6067 * config/i386/i386-options.c (ix86_target_string): Add
6068 -mamx-tile, -mamx-int8, -mamx-bf16.
6069 (ix86_option_override_internal): Handle AMX-TILE,
6071 * config/i386/i386.h (TARGET_AMX_TILE, TARGET_AMX_TILE_P,
6072 TARGET_AMX_INT8, TARGET_AMX_INT8_P, TARGET_AMX_BF16_P,
6073 PTA_AMX_TILE, PTA_AMX_INT8, PTA_AMX_BF16): New macros.
6074 * config/i386/i386.opt: Add -mamx-tile, -mamx-int8, -mamx-bf16.
6075 * config/i386/immintrin.h: Include amxtileintrin.h,
6076 amxint8intrin.h, amxbf16intrin.h.
6077 * doc/invoke.texi: Document -mamx-tile, -mamx-int8, -mamx-bf16.
6078 * doc/extend.texi: Document amx-tile, amx-int8, amx-bf16.
6079 * doc/sourcebuild.texi ((Effective-Target Keywords, Other
6080 hardware attributes): Document amx_int8, amx_tile, amx_bf16.
6082 2020-09-28 Andrea Corallo <andrea.corallo@arm.com>
6084 * config/aarch64/aarch64-builtins.c
6085 (aarch64_general_expand_builtin): Do not alter value on a
6086 force_reg returned rtx.
6088 2020-09-28 Eric Botcazou <ebotcazou@adacore.com>
6090 * tree-eh.c (lower_try_finally_dup_block): Revert latest change.
6092 2020-09-27 Jan Hubicka <jh@suse.cz>
6094 * ipa-modref.c (modref_summary::useful_p): Fix testing of stores.
6096 2020-09-27 Jakub Jelinek <jakub@redhat.com>
6099 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6100 expand_copysign_bit): Check reg_overlap_mentioned_p between target
6101 and operand(s) and if it returns true, force a pseudo as target.
6103 2020-09-27 Xionghu Luo <luoxhu@linux.ibm.com>
6105 * gimple-isel.cc (gimple_expand_vec_set_expr): New function.
6106 (gimple_expand_vec_cond_exprs): Rename to ...
6107 (gimple_expand_vec_exprs): ... this and call
6108 gimple_expand_vec_set_expr.
6109 * internal-fn.c (vec_set_direct): New define.
6110 (expand_vec_set_optab_fn): New function.
6111 (direct_vec_set_optab_supported_p): New define.
6112 * internal-fn.def (VEC_SET): New DEF_INTERNAL_OPTAB_FN.
6113 * optabs.c (can_vec_set_var_idx_p): New function.
6114 * optabs.h (can_vec_set_var_idx_p): New declaration.
6116 2020-09-26 Jan Hubicka <jh@suse.cz>
6118 * ipa-modref.c (analyze_stmt): Do not skip clobbers in early pass.
6119 * ipa-pure-const.c (analyze_stmt): Update comment.
6121 2020-09-26 David Edelsohn <dje.gcc@gmail.com>
6122 Clement Chigot <clement.chigot@atos.com>
6124 * collect2.c (visibility_flag): New.
6125 (main): Detect -fvisibility.
6126 (write_c_file_stat): Push and pop default visibility.
6128 2020-09-26 Jan Hubicka <hubicka@ucw.cz>
6130 * ipa-inline-transform.c: Include ipa-modref-tree.h and ipa-modref.h.
6131 (inline_call): Call ipa_merge_modref_summary_after_inlining.
6132 * ipa-inline.c (ipa_inline): Do not free summaries.
6133 * ipa-modref.c (dump_records): Fix formating.
6134 (merge_call_side_effects): Break out from ...
6135 (analyze_call): ... here; record recursive calls.
6136 (analyze_stmt): Add new parameter RECURSIVE_CALLS.
6137 (analyze_function): Do iterative dataflow on recursive calls.
6138 (compute_parm_map): New function.
6139 (ipa_merge_modref_summary_after_inlining): New function.
6140 (collapse_loads): New function.
6141 (modref_propagate_in_scc): Break out from ...
6142 (pass_ipa_modref::execute): ... here; Do iterative dataflow.
6143 * ipa-modref.h (ipa_merge_modref_summary_after_inlining): Declare.
6145 2020-09-26 Jakub Jelinek <jakub@redhat.com>
6147 * omp-expand.c (expand_omp_simd): Help vectorizer for the collapse == 1
6148 and non-composite collapse > 1 case with non-constant innermost loop
6149 step by precomputing number of iterations before loop and using an
6150 alternate IV from 0 to number of iterations - 1 with step of 1.
6152 2020-09-26 Jan Hubicka <jh@suse.cz>
6154 * ipa-fnsummary.c (dump_ipa_call_summary): Dump
6155 points_to_local_or_readonly_memory flag.
6156 (analyze_function_body): Compute points_to_local_or_readonly_memory
6158 (remap_edge_change_prob): Rename to ...
6159 (remap_edge_params): ... this one; update
6160 points_to_local_or_readonly_memory.
6161 (remap_edge_summaries): Update.
6162 (read_ipa_call_summary): Stream the new flag.
6163 (write_ipa_call_summary): Likewise.
6164 * ipa-predicate.h (struct inline_param_summary): Add
6165 points_to_local_or_readonly_memory.
6166 (inline_param_summary::equal_to): Update.
6167 (inline_param_summary::useless_p): Update.
6169 2020-09-26 Jan Hubicka <hubicka@ucw.cz>
6171 * ipa-modref-tree.h (modref_ref_node::insert_access): Track if something
6173 (modref_base_node::insert_ref): Likewise (and add a new optional
6175 (modref_tree::insert): Likewise.
6176 (modref_tree::merge): Rewrite
6178 2020-09-25 Jan Hubicka <hubicka@ucw.cz>
6180 * doc/invoke.texi: Add -fno-ipa-modref to flags disabled by
6182 * opts.c (control_options_for_live_patching): Disable ipa-modref.
6184 2020-09-25 Jan Hubicka <hubicka@ucw.cz>
6186 * ipa-modref.c (analyze_stmt): Fix return value for gimple_clobber.
6188 2020-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6190 * config/aarch64/aarch64-option-extensions.def (rng): Add
6193 2020-09-25 Alex Coplan <alex.coplan@arm.com>
6195 * config/arm/arm-cpus.in (neoverse-v1): Add FP16.
6197 2020-09-25 Martin Liska <mliska@suse.cz>
6199 PR gcov-profile/64636
6200 * value-prof.c (stream_out_histogram_value): Allow negative
6201 values for HIST_TYPE_IOR.
6203 2020-09-25 Tom de Vries <tdevries@suse.de>
6205 * config/nvptx/nvptx.c (nvptx_assemble_integer, nvptx_print_operand):
6206 Use gcc_fallthrough ().
6208 2020-09-25 Richard Biener <rguenther@suse.de>
6211 * expr.c (store_constructor): Handle VECTOR_BOOLEAN_TYPE_P
6214 2020-09-25 Richard Biener <rguenther@suse.de>
6217 * vec.h (auto_vec<T>::operator=(auto_vec<T>&&)): Implement.
6219 2020-09-25 Richard Sandiford <richard.sandiford@arm.com>
6221 * config/arm/arm-protos.h (arm_mve_mode_and_operands_type_check):
6223 * config/arm/arm.c (arm_coproc_mem_operand_wb): Use a scale factor
6224 of 2 rather than 4 for 16-bit modes.
6225 (arm_mve_mode_and_operands_type_check): Delete.
6226 * config/arm/constraints.md (Uj): Allow writeback for Neon,
6227 but continue to disallow it for MVE.
6228 * config/arm/arm.md (*arm32_mov<HFBF:mode>): Add !TARGET_HAVE_MVE.
6229 * config/arm/vfp.md (*mov_load_vfp_hf16, *mov_store_vfp_hf16): Fold
6231 (*mov<mode>_vfp_<mode>16): ...here but use Uj for the FPR memory
6232 constraints. Use for base MVE too.
6234 2020-09-25 Richard Biener <rguenther@suse.de>
6236 PR tree-optimization/97199
6237 * tree-if-conv.c (combine_blocks): Remove edges only
6238 after looking at virtual PHI args.
6240 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6242 * omp-low.c (scan_omp_1_stmt): Don't call scan_omp_simd for
6243 collapse > 1 loops as simt doesn't support collapsed loops yet.
6244 * omp-expand.c (expand_omp_for_init_counts, expand_omp_for_init_vars):
6245 Small tweaks to function comment.
6246 (expand_omp_simd): Rewritten collapse > 1 support to only attempt
6247 to vectorize the innermost loop and emit set of outer loops around it.
6248 For non-composite simd with collapse > 1 without broken loop don't
6249 even try to compute number of iterations first. Add support for
6250 non-rectangular simd loops.
6251 (expand_omp_for): Don't sorry_at on non-rectangular simd loops.
6253 2020-09-25 Martin Liska <mliska@suse.cz>
6255 * cgraph.c (cgraph_edge::debug): New.
6256 * cgraph.h (cgraph_edge::debug): New.
6258 2020-09-25 Martin Liska <mliska@suse.cz>
6260 * cgraph.c (cgraph_node::dump): Always print space at the end
6261 of a message. Remove one extra space.
6263 2020-09-24 Alex Coplan <alex.coplan@arm.com>
6265 * config/arm/arm-cpus.in (neoverse-n2): New.
6266 * config/arm/arm-tables.opt: Regenerate.
6267 * config/arm/arm-tune.md: Regenerate.
6268 * doc/invoke.texi: Document support for Neoverse N2.
6270 2020-09-24 Alex Coplan <alex.coplan@arm.com>
6272 * config/aarch64/aarch64-cores.def: Add Neoverse N2.
6273 * config/aarch64/aarch64-tune.md: Regenerate.
6274 * doc/invoke.texi: Document AArch64 support for Neoverse N2.
6276 2020-09-24 Richard Biener <rguenther@suse.de>
6278 * vec.h (auto_vec<T, 0>::auto_vec (auto_vec &&)): New move CTOR.
6279 (auto_vec<T, 0>::operator=(auto_vec &&)): Delete.
6280 * hash-table.h (hash_table::expand): Use std::move when expanding.
6281 * cfgloop.h (get_loop_exit_edges): Return auto_vec<edge>.
6282 * cfgloop.c (get_loop_exit_edges): Adjust.
6283 * cfgloopmanip.c (fix_loop_placement): Likewise.
6284 * ipa-fnsummary.c (analyze_function_body): Likewise.
6285 * ira-build.c (create_loop_tree_nodes): Likewise.
6286 (create_loop_tree_node_allocnos): Likewise.
6287 (loop_with_complex_edge_p): Likewise.
6288 * ira-color.c (ira_loop_edge_freq): Likewise.
6289 * loop-unroll.c (analyze_insns_in_loop): Likewise.
6290 * predict.c (predict_loops): Likewise.
6291 * tree-predcom.c (last_always_executed_block): Likewise.
6292 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
6293 * tree-ssa-loop-im.c (store_motion_loop): Likewise.
6294 * tree-ssa-loop-ivcanon.c (loop_edge_to_cancel): Likewise.
6295 (canonicalize_loop_induction_variables): Likewise.
6296 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
6297 * tree-ssa-loop-niter.c (find_loop_niter): Likewise.
6298 (finite_loop_p): Likewise.
6299 (find_loop_niter_by_eval): Likewise.
6300 (estimate_numbers_of_iterations): Likewise.
6301 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
6302 (may_use_storent_in_loop_p): Likewise.
6304 2020-09-24 Jan Hubicka <jh@suse.cz>
6306 * doc/invoke.texi: Document -fipa-modref, ipa-modref-max-bases,
6307 ipa-modref-max-refs, ipa-modref-max-accesses, ipa-modref-max-tests.
6308 * ipa-modref-tree.c (test_insert_search_collapse): Update.
6309 (test_merge): Update.
6310 (gt_ggc_mx): New function.
6311 * ipa-modref-tree.h (struct modref_access_node): New structure.
6312 (struct modref_ref_node): Add every_access and accesses array.
6313 (modref_ref_node::modref_ref_node): Update ctor.
6314 (modref_ref_node::search): New member function.
6315 (modref_ref_node::collapse): New member function.
6316 (modref_ref_node::insert_access): New member function.
6317 (modref_base_node::insert_ref): Do not collapse base if ref is 0.
6318 (modref_base_node::collapse): Copllapse also refs.
6319 (modref_tree): Add accesses.
6320 (modref_tree::modref_tree): Initialize max_accesses.
6321 (modref_tree::insert): Add access parameter.
6322 (modref_tree::cleanup): New member function.
6323 (modref_tree::merge): Add parm_map; merge accesses.
6324 (modref_tree::copy_from): New member function.
6325 (modref_tree::create_ggc): Add max_accesses.
6326 * ipa-modref.c (dump_access): New function.
6327 (dump_records): Dump accesses.
6328 (dump_lto_records): Dump accesses.
6329 (get_access): New function.
6330 (record_access): Record access.
6331 (record_access_lto): Record access.
6332 (analyze_call): Compute parm_map.
6333 (analyze_function): Update construction of modref records.
6334 (modref_summaries::duplicate): Likewise; use copy_from.
6335 (write_modref_records): Stream accesses.
6336 (read_modref_records): Sream accesses.
6337 (pass_ipa_modref::execute): Update call of merge.
6338 * params.opt (-param=modref-max-accesses): New.
6339 * tree-ssa-alias.c (alias_stats): Add modref_baseptr_tests.
6340 (dump_alias_stats): Update.
6341 (base_may_alias_with_dereference_p): New function.
6342 (modref_may_conflict): Check accesses.
6343 (ref_maybe_used_by_call_p_1): Update call to modref_may_conflict.
6344 (call_may_clobber_ref_p_1): Update call to modref_may_conflict.
6346 2020-09-24 Richard Sandiford <richard.sandiford@arm.com>
6348 * config/arm/arm.md (*stack_protect_combined_set_insn): For non-PIC,
6349 load the address of the canary rather than the address of the
6350 constant pool entry that points to it.
6351 (*stack_protect_combined_test_insn): Likewise.
6353 2020-09-24 Richard Biener <rguenther@suse.de>
6355 PR tree-optimization/97085
6356 * match.pd (mask ? { false,..} : { true, ..} -> ~mask): New.
6358 2020-09-24 Jan Hubicka <hubicka@ucw.cz>
6360 * ipa-modref-tree.h (modref_base::collapse): Release memory.
6361 (modref_tree::create_ggc): New member function.
6362 (modref_tree::colapse): Release memory.
6363 (modref_tree::~modref_tree): New destructor.
6364 * ipa-modref.c (modref_summaries::create_ggc): New function.
6365 (analyze_function): Use create_ggc.
6366 (modref_summaries::duplicate): Likewise.
6367 (read_modref_records): Likewise.
6368 (modref_read): Likewise.
6370 2020-09-24 Alan Modra <amodra@gmail.com>
6372 * config/rs6000/rs6000.c (rs6000_rtx_costs): Pass mode to
6373 reg_or_add_cint_operand and reg_or_sub_cint_operand.
6375 2020-09-24 Alan Modra <amodra@gmail.com>
6378 * config/rs6000/rs6000.c (num_insns_constant_gpr): Count rldimi
6379 constants correctly.
6381 2020-09-24 Alan Modra <amodra@gmail.com>
6383 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
6384 Conditionally define __PCREL__.
6386 2020-09-24 Alan Modra <amodra@gmail.com>
6389 * config/rs6000/rs6000-internal.h (struct rs6000_stack): Improve
6391 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Likewise.
6392 (rs6000_expand_split_stack_prologue): Emit the prologue for
6393 functions that make a sibling call.
6395 2020-09-24 David Malcolm <dmalcolm@redhat.com>
6397 * doc/analyzer.texi (Analyzer Paths): Add note about
6398 -fno-analyzer-feasibility.
6399 * doc/invoke.texi (Static Analyzer Options): Add
6400 -fno-analyzer-feasibility.
6402 2020-09-24 Paul A. Clarke <pc@us.ibm.com>
6404 * doc/extend.texi: Add 'd' for doubleword variant of
6405 vector insert instruction.
6407 2020-09-23 Martin Sebor <msebor@redhat.com>
6409 * gimple-array-bounds.cc (build_zero_elt_array_type): New function.
6410 (array_bounds_checker::check_mem_ref): Call it.
6412 2020-09-23 Martin Sebor <msebor@redhat.com>
6415 * builtins.c (maybe_warn_for_bound): Handle both DECLs and EXPRESSIONs
6416 in pad->dst.ref, same is pad->src.ref.
6418 2020-09-23 Jan Hubicka <jh@suse.cz>
6420 * ipa-fnsummary.c (refs_local_or_readonly_memory_p): New function.
6421 (points_to_local_or_readonly_memory_p): New function.
6422 * ipa-fnsummary.h (refs_local_or_readonly_memory_p): Declare.
6423 (points_to_local_or_readonly_memory_p): Declare.
6424 * ipa-modref.c (record_access_p): Use refs_local_or_readonly_memory_p.
6425 * ipa-pure-const.c (check_op): Likewise.
6427 2020-09-23 Tom de Vries <tdevries@suse.de>
6429 * config/nvptx/nvptx.md: Don't allow operand containing sum of
6430 function ref and const.
6432 2020-09-23 Richard Sandiford <richard.sandiford@arm.com>
6434 * config/aarch64/aarch64-protos.h (aarch64_salt_type): New enum.
6435 (aarch64_stack_protect_canary_mem): Declare.
6436 * config/aarch64/aarch64.md (UNSPEC_SALT_ADDR): New unspec.
6437 (stack_protect_set): Forward to stack_protect_combined_set.
6438 (stack_protect_combined_set): New pattern. Use
6439 aarch64_stack_protect_canary_mem.
6440 (reg_stack_protect_address_<mode>): Add a salt operand.
6441 (stack_protect_test): Forward to stack_protect_combined_test.
6442 (stack_protect_combined_test): New pattern. Use
6443 aarch64_stack_protect_canary_mem.
6444 * config/aarch64/aarch64.c (strip_salt): New function.
6445 (strip_offset_and_salt): Likewise.
6446 (tls_symbolic_operand_type): Use strip_offset_and_salt.
6447 (aarch64_stack_protect_canary_mem): New function.
6448 (aarch64_cannot_force_const_mem): Use strip_offset_and_salt.
6449 (aarch64_classify_address): Likewise.
6450 (aarch64_symbolic_address_p): Likewise.
6451 (aarch64_print_operand): Likewise.
6452 (aarch64_output_addr_const_extra): New function.
6453 (aarch64_tls_symbol_p): Use strip_salt.
6454 (aarch64_classify_symbol): Likewise.
6455 (aarch64_legitimate_pic_operand_p): Use strip_offset_and_salt.
6456 (aarch64_legitimate_constant_p): Likewise.
6457 (aarch64_mov_operand_p): Use strip_salt.
6458 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Override.
6460 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6463 * config/aarch64/arm_neon.h (vreinterpretq_f64_p128,
6464 vreinterpretq_p128_f64): Define.
6466 2020-09-23 Alex Coplan <alex.coplan@arm.com>
6468 * config/arm/arm-cpus.in (neoverse-v1): New.
6469 * config/arm/arm-tables.opt: Regenerate.
6470 * config/arm/arm-tune.md: Regenerate.
6471 * doc/invoke.texi: Document support for Neoverse V1.
6473 2020-09-23 Alex Coplan <alex.coplan@arm.com>
6475 * config/aarch64/aarch64-cores.def: Add Neoverse V1.
6476 * config/aarch64/aarch64-tune.md: Regenerate.
6477 * doc/invoke.texi: Document support for Neoverse V1.
6479 2020-09-23 Richard Biener <rguenther@suse.de>
6482 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove
6483 LT_EXPR -> NE_EXPR verification and also apply it for
6486 2020-09-23 Jan Hubicka <hubicka@ucw.cz>
6488 * ipa-modref.c (modref_summary::lto_useful_p): New member function.
6489 (modref_summary::useful_p): New member function.
6490 (analyze_function): Drop useless summaries.
6491 (modref_write): Skip useless summaries.
6492 (pass_ipa_modref::execute): Drop useless summaries.
6493 * ipa-modref.h (struct GTY): Declare useful_p and lto_useful_p.
6494 * tree-ssa-alias.c (dump_alias_stats): Fix.
6495 (modref_may_conflict): Fix stats.
6497 2020-09-23 Richard Biener <rguenther@suse.de>
6500 * internal-fn.c (expand_vect_cond_mask_optab_fn): Use
6501 appropriate mode for force_reg.
6502 * tree.c (build_truth_vector_type_for): Pass VOIDmode to
6505 2020-09-23 Richard Sandiford <richard.sandiford@arm.com>
6507 * tree-vectorizer.h (determine_peel_for_niter): Delete in favor of...
6508 (vect_determine_partial_vectors_and_peeling): ...this new function.
6509 * tree-vect-loop-manip.c (vect_update_epilogue_niters): New function.
6510 Reject using vector epilogue loops for single iterations. Install
6511 the constant number of epilogue loop iterations in the associated
6512 loop_vinfo. Rely on vect_determine_partial_vectors_and_peeling
6513 to do the main part of the test.
6514 (vect_do_peeling): Use vect_update_epilogue_niters to handle
6515 epilogue loops with a known number of iterations. Skip recomputing
6516 the number of iterations later in that case. Otherwise, use
6517 vect_determine_partial_vectors_and_peeling to decide whether the
6518 epilogue loop needs to use partial vectors or peeling.
6519 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Set the
6520 default can_use_partial_vectors_p to false if partial-vector-usage=0.
6521 (determine_peel_for_niter): Remove in favor of...
6522 (vect_determine_partial_vectors_and_peeling): ...this new function,
6524 (vect_analyze_loop_2): ...here. Reflect the vect_verify_full_masking
6525 and vect_verify_loop_lens results in CAN_USE_PARTIAL_VECTORS_P
6526 rather than USING_PARTIAL_VECTORS_P.
6528 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6531 * config/aarch64/aarch64-simd-builtins.def (frintn): Use BUILTIN_VHSDF_HSDF
6532 for modes. Remove explicit hf instantiation.
6533 * config/aarch64/arm_neon.h (vrndns_f32): Define.
6535 2020-09-23 Richard Biener <rguenther@suse.de>
6537 PR tree-optimization/97173
6538 * tree-vect-loop.c (vectorizable_live_operation): Extend
6539 assert to also conver element conversions.
6541 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6544 * config/aarch64/arm_neon.h (vtrn1q_p64, vtrn2q_p64, vuzp1q_p64,
6545 vuzp2q_p64, vzip1q_p64, vzip2q_p64): Define.
6547 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6550 * config/aarch64/arm_neon.h (vldrq_p128): Define.
6552 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6555 * config/aarch64/arm_neon.h (vstrq_p128): Define.
6557 2020-09-23 Richard Biener <rguenther@suse.de>
6559 PR tree-optimization/97151
6560 * tree-ssa-structalias.c (find_func_aliases_for_call):
6561 DECL_IS_REPLACEABLE_OPERATOR_DELETE_P has no effect on
6564 2020-09-23 Richard Biener <rguenther@suse.de>
6567 * alias.c (compare_base_decls): Use DECL_HARD_REGISTER
6568 and guard with VAR_P.
6570 2020-09-23 Martin Liska <mliska@suse.cz>
6572 PR gcov-profile/97069
6573 * profile.c (branch_prob): Line number must be at least 1.
6575 2020-09-23 Tom de Vries <tdevries@suse.de>
6578 * config/nvptx/nvptx.c (nvptx_output_mov_insn): Handle move from
6579 DF subreg to DF reg.
6581 2020-09-23 David Malcolm <dmalcolm@redhat.com>
6583 * Makefile.in: Add $(ZLIBINC) to CFLAGS-analyzer/engine.o.
6585 2020-09-22 Jan Hubicka <jh@suse.cz>
6587 * ipa-modref.c (analyze_stmt): Ignore gimple clobber.
6589 2020-09-22 Jan Hubicka <jh@suse.cz>
6591 * ipa-modref-tree.c: Add namespace selftest.
6592 (modref_tree_c_tests): Rename to ...
6593 (ipa_modref_tree_c_tests): ... this.
6594 * ipa-modref.c (pass_modref): Remove destructor.
6595 (ipa_modref_c_finalize): New function.
6596 * ipa-modref.h (ipa_modref_c_finalize): Declare.
6597 * selftest-run-tests.c (selftest::run_tests): Call
6598 ipa_modref_c_finalize.
6599 * selftest.h (ipa_modref_tree_c_tests): Declare.
6600 * toplev.c: Include ipa-modref-tree.h and ipa-modref.h
6601 (toplev::finalize): Call ipa_modref_c_finalize.
6603 2020-09-22 David Malcolm <dmalcolm@redhat.com>
6605 * doc/analyzer.texi (Other Debugging Techniques): Mention
6606 -fdump-analyzer-json.
6607 * doc/invoke.texi (Static Analyzer Options): Add
6608 -fdump-analyzer-json.
6610 2020-09-22 David Faust <david.faust@oracle.com>
6612 * config/bpf/bpf.md: Add defines for signed div and mod operators.
6614 2020-09-22 Martin Liska <mliska@suse.cz>
6616 PR tree-optimization/96979
6617 * doc/invoke.texi: Document new param max-switch-clustering-attempts.
6618 * params.opt: Add new parameter.
6619 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6620 Limit number of attempts.
6621 (bit_test_cluster::find_bit_tests): Likewise.
6623 2020-09-22 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
6625 * config/s390/s390.md ("*cmp<mode>_ccs_0", "*cmp<mode>_ccz_0",
6626 "*cmp<mode>_ccs_0_fastmath"): Basically change "*cmp<mode>_ccs_0" into
6627 "*cmp<mode>_ccz_0" and for fast math add "*cmp<mode>_ccs_0_fastmath".
6629 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6632 * config/aarch64/arm_neon.h (vcls_u8, vcls_u16, vcls_u32,
6633 vclsq_u8, vclsq_u16, vclsq_u32): Define.
6635 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6638 * config/aarch64/arm_neon.h (vceqq_p64, vceqz_p64, vceqzq_p64): Define.
6640 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6643 * config/aarch64/arm_neon.h (vadd_p8, vadd_p16, vadd_p64, vaddq_p8,
6644 vaddq_p16, vaddq_p64, vaddq_p128): Define.
6646 2020-09-22 Jakub Jelinek <jakub@redhat.com>
6648 * params.opt (--param=modref-max-tests=): Fix typo in help text:
6649 perofmed -> performed.
6650 * common.opt: Fix typo: incrmeental -> incremental.
6651 * ipa-modref.c: Fix typos: recroding -> recording, becaue -> because,
6652 analsis -> analysis.
6653 (class modref_summaries): Fix typo: betweehn -> between.
6654 (analyze_call): Fix typo: calle -> callee.
6655 (read_modref_records): Fix typo: expcted -> expected.
6656 (pass_ipa_modref::execute): Fix typo: calle -> callee.
6658 2020-09-22 Jakub Jelinek <jakub@redhat.com>
6660 * common.opt (-fipa-modref): Add dot at the end of option help.
6661 * params.opt (--param=modref-max-tests=): Likewise.
6663 2020-09-21 Marek Polacek <polacek@redhat.com>
6665 * doc/invoke.texi: Document -Wctad-maybe-unsupported.
6667 2020-09-21 Richard Biener <rguenther@suse.de>
6669 PR tree-optimization/97139
6670 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Only mark the
6671 pattern root, track visited vectorized stmts.
6673 2020-09-21 Jakub Jelinek <jakub@redhat.com>
6675 * configure.ac: Use mallinfo mallinfo2 as first operand of
6676 gcc_AC_CHECK_DECLS rather than [mallinfo, mallinfo2].
6677 * configure: Regenerated.
6678 * config.in: Regenerated.
6680 2020-09-21 Andrea Corallo <andrea.corallo@arm.com>
6682 * config/aarch64/aarch64-builtins.c
6683 (aarch64_general_expand_builtin): Use expand machinery not to
6684 alter the value of an rtx returned by force_reg.
6686 2020-09-21 Richard Biener <rguenther@suse.de>
6688 PR tree-optimization/97135
6689 * tree-ssa-loop-im.c (sm_seq_push_down): Do not ignore
6692 2020-09-21 Martin Liska <mliska@suse.cz>
6694 PR tree-optimization/96915
6695 * tree-switch-conversion.c (switch_conversion::expand): Accept
6696 also integer constants.
6698 2020-09-21 Martin Liska <mliska@suse.cz>
6700 * print-tree.c (print_node): Remove extra space.
6702 2020-09-21 Andrea Corallo <andrea.corallo@arm.com>
6705 * config/aarch64/aarch64-builtins.c
6706 (aarch64_expand_fpsr_fpcr_setter): Fix comment nit.
6707 (aarch64_expand_fpsr_fpcr_getter): New function, expand these
6708 getters using expand_insn machinery.
6709 (aarch64_general_expand_builtin): Make use of.
6711 2020-09-21 Martin Liska <mliska@suse.cz>
6713 * ggc-common.c (ggc_rlimit_bound): Use ONE_? macro.
6714 (ggc_min_expand_heuristic): Likewise.
6715 (ggc_min_heapsize_heuristic): Likewise.
6716 * ggc-page.c (ggc_collect): Likewise.
6717 * system.h (ONE_G): Likewise.
6719 2020-09-21 Martin Liska <mliska@suse.cz>
6721 * ggc-common.c (ggc_prune_overhead_list): Use SIZE_AMOUNT.
6722 * ggc-page.c (release_pages): Likewise.
6723 (ggc_collect): Likewise.
6724 (ggc_trim): Likewise.
6725 (ggc_grow): Likewise.
6726 * timevar.c (timer::print): Likewise.
6728 2020-09-21 Martin Liska <mliska@suse.cz>
6730 * config.in: Regenerate.
6731 * configure: Likewise.
6732 * configure.ac: Detect for mallinfo2.
6733 * ggc-common.c (defined): Use it.
6734 * system.h: Handle also HAVE_MALLINFO2.
6736 2020-09-20 John David Anglin < danglin@gcc.gnu.org>
6738 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Delete.
6739 * config/pa/pa64-hpux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6740 (ENDFILE_SPEC): Link with libgcc_stub.a and mill.a.
6741 * config/pa/pa32-linux.h (ENDFILE_SPEC): Link with libgcc.a.
6743 2020-09-20 Jan Hubicka <hubicka@ucw.cz>
6745 * ipa-modref.c (dump_lto_records): Fix ICE.
6747 2020-09-20 David Cepelik <d@dcepelik.cz>
6748 Jan Hubicka <hubicka@ucw.cz>
6750 * Makefile.in: Add ipa-modref.c and ipa-modref-tree.c.
6751 * alias.c: (reference_alias_ptr_type_1): Export.
6752 * alias.h (reference_alias_ptr_type_1): Declare.
6753 * common.opt (fipa-modref): New.
6754 * gengtype.c (open_base_files): Add ipa-modref-tree.h and ipa-modref.h
6755 * ipa-modref-tree.c: New file.
6756 * ipa-modref-tree.h: New file.
6757 * ipa-modref.c: New file.
6758 * ipa-modref.h: New file.
6759 * lto-section-in.c (lto_section_name): Add ipa_modref.
6760 * lto-streamer.h (enum lto_section_type): Add LTO_section_ipa_modref.
6761 * opts.c (default_options_table): Enable ipa-modref at -O1+.
6762 * params.opt (-param=modref-max-bases, -param=modref-max-refs,
6763 -param=modref-max-tests): New params.
6764 * passes.def: Schedule pass_modref and pass_ipa_modref.
6765 * timevar.def (TV_IPA_MODREF): New timevar.
6766 (TV_TREE_MODREF): New timevar.
6767 * tree-pass.h (make_pass_modref): Declare.
6768 (make_pass_ipa_modref): Declare.
6769 * tree-ssa-alias.c (dump_alias_stats): Include ipa-modref-tree.h
6771 (alias_stats): Add modref_use_may_alias, modref_use_no_alias,
6772 modref_clobber_may_alias, modref_clobber_no_alias, modref_tests.
6773 (dump_alias_stats): Dump new stats.
6774 (nonoverlapping_array_refs_p): Fix formating.
6775 (modref_may_conflict): New function.
6776 (ref_maybe_used_by_call_p_1): Use it.
6777 (call_may_clobber_ref_p_1): Use it.
6778 (call_may_clobber_ref_p): Update.
6779 (stmt_may_clobber_ref_p_1): Update.
6780 * tree-ssa-alias.h (call_may_clobber_ref_p_1): Update.
6782 2020-09-19 Martin Sebor <msebor@redhat.com>
6788 * gimple-array-bounds.cc (get_base_decl): New function.
6789 (get_ref_size): New function.
6790 (trailing_array): New function.
6791 (array_bounds_checker::check_array_ref): Call them. Handle arrays
6792 declared in function parameters.
6793 (array_bounds_checker::check_mem_ref): Same. Handle references to
6794 dynamically allocated arrays.
6796 2020-09-19 Martin Sebor <msebor@redhat.com>
6799 * builtins.c (warn_for_access): Add argument. Distinguish between
6801 (check_access): Add argument. Distinguish between reads and writes.
6802 (gimple_call_alloc_size): Set range even on failure.
6803 (gimple_parm_array_size): New function.
6804 (compute_objsize): Call it.
6805 (check_memop_access): Pass check_access an additional argument.
6806 (expand_builtin_memchr, expand_builtin_strcat): Same.
6807 (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
6808 (expand_builtin_stpncpy, check_strncat_sizes): Same.
6809 (expand_builtin_strncat, expand_builtin_strncpy): Same.
6810 (expand_builtin_memcmp): Same.
6811 * builtins.h (compute_objsize): Declare a new overload.
6812 (gimple_parm_array_size): Declare.
6813 (check_access): Add argument.
6814 * calls.c (append_attrname): Simplify.
6815 (maybe_warn_rdwr_sizes): Handle internal attribute access.
6816 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid adding
6819 2020-09-19 Martin Sebor <msebor@redhat.com>
6821 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Handle attribute
6822 access internal representation of arrays.
6824 2020-09-19 Martin Sebor <msebor@redhat.com>
6827 * attribs.c (decl_attributes): Also pass decl along with type
6828 attributes to handlers.
6829 (init_attr_rdwr_indices): Change second argument to attribute chain.
6830 Handle internal attribute representation in addition to external.
6831 (get_parm_access): New function.
6832 (attr_access::to_internal_string): Define new member function.
6833 (attr_access::to_external_string): Define new member function.
6834 (attr_access::vla_bounds): Define new member function.
6835 * attribs.h (struct attr_access): Declare new members.
6836 (attr_access::from_mode_char): Define new member function.
6837 (get_parm_access): Declare new function.
6838 * calls.c (initialize_argument_information): Pass function type
6839 attributes to init_attr_rdwr_indices.
6840 * doc/invoke.texi (-Warray-parameter, -Wvla-parameter): Document.
6841 * tree-pretty-print.c (dump_generic_node): Correct handling of
6843 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Same.
6844 * tree.h (access_mode): Add new enumerator.
6846 2020-09-19 Sandra Loosemore <sandra@codesourcery.com>
6848 * doc/generic.texi (Basic Statements): Document SWITCH_EXPR here,
6850 (Statements for C and C++): Rename node to reflect what
6851 the introduction already says about sharing between C and C++
6852 front ends. Copy-edit and correct documentation for structured
6855 2020-09-19 liuhongt <hongtao.liu@intel.com>
6858 * config/i386/x86-tune-costs.h (skylake_cost): increase rtx
6859 cost of sse_to_integer from 2 to 6.
6861 2020-09-18 Sudi Das <sudi.das@arm.com>
6862 Omar Tahir <omar.tahir@arm.com>
6864 * config/arm/thumb2.md (*thumb2_csneg): New.
6865 (*thumb2_negscc): Don't match if TARGET_COND_ARITH.
6866 * config/arm/arm.md (*if_neg_move): Don't match if TARGET_COND_ARITH.
6868 2020-09-18 Sudi Das <sudi.das@arm.com>
6869 Omar Tahir <omar.tahir@arm.com>
6871 * config/arm/thumb2.md (*thumb2_csinc): New.
6872 (*thumb2_cond_arith): Generate CINC where possible.
6874 2020-09-18 Sudi Das <sudi.das@arm.com>
6875 Omar Tahir <omar.tahir@arm.com>
6877 * config/arm/arm.h (TARGET_COND_ARITH): New macro.
6878 * config/arm/arm.c (arm_have_conditional_execution): Return false if
6879 TARGET_COND_ARITH before reload.
6880 * config/arm/predicates.md (arm_comparison_operation): Returns true if
6881 comparing CC_REGNUM with constant zero.
6882 * config/arm/thumb2.md (*thumb2_csinv): New.
6883 (*thumb2_movcond): Don't match if TARGET_COND_ARITH.
6885 2020-09-18 Richard Sandiford <richard.sandiford@arm.com>
6888 * ira.c (ira_setup_eliminable_regset): Skip the special elimination
6889 handling of the hard frame pointer if the hard frame pointer is fixed.
6891 2020-09-18 Richard Biener <rguenther@suse.de>
6893 PR tree-optimization/97081
6894 * tree-vect-patterns.c (vect_recog_rotate_pattern): Use the
6895 precision of the shifted operand to determine the mask.
6897 2020-09-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6899 * config/msp430/msp430.c (msp430_print_operand): Update comment.
6900 Cast to long when printing values formatted as long.
6901 Support 'd', 'e', 'f' and 'g' modifiers.
6902 Extract operand value with a single operation for all modifiers.
6903 * doc/extend.texi (msp430Operandmodifiers): New.
6905 2020-09-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6907 * config/msp430/msp430.c (increment_stack): Mark insns which increment
6908 the stack as frame_related.
6909 (msp430_expand_prologue): Add comments.
6910 (msp430_expand_epilogue): Mark insns which decrement
6911 the stack as frame_related.
6912 Add reg_note to stack pop insns describing position of register
6913 variables on the stack.
6915 2020-09-18 Andrew Stubbs <ams@codesourcery.com>
6917 * config/gcn/gcn-tree.c (execute_omp_gcn): Delete.
6918 (make_pass_omp_gcn): Delete.
6919 * config/gcn/t-gcn-hsa (PASSES_EXTRA): Delete.
6920 * config/gcn/gcn-passes.def: Removed.
6922 2020-09-18 Alex Coplan <alex.coplan@arm.com>
6924 * cfgloop.h (nb_iter_bound): Reword comment describing is_exit.
6926 2020-09-18 Richard Biener <rguenther@suse.de>
6928 PR tree-optimization/97095
6929 * tree-vect-loop.c (vectorizable_live_operation): Get
6930 the SLP vector type from the correct object.
6932 2020-09-18 Richard Biener <rguenther@suse.de>
6934 PR tree-optimization/97089
6935 * tree-ssa-sccvn.c (visit_nary_op): Do not replace unsigned
6938 2020-09-18 Richard Biener <rguenther@suse.de>
6940 PR tree-optimization/97098
6941 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Do not
6942 recurse to children when all stmts were already visited.
6944 2020-09-17 Sergei Trofimovich <siarheit@google.com>
6946 * profile.c (sort_hist_values): Clarify hist format:
6947 start with a value, not counter.
6949 2020-09-17 Yeting Kuo <fakepaper56@gmail.com>
6951 * config/riscv/riscv.h (CSW_MAX_OFFSET): Fix typo.
6953 2020-09-17 Patrick Palka <ppalka@redhat.com>
6956 * gensupport.c (alter_attrs_for_subst_insn) <case SET_ATTR>:
6957 Reduce indentation of misleadingly indented code fragment.
6958 * lra-constraints.c (multi_block_pseudo_p): Likewise.
6959 * sel-sched-ir.c (merge_fences): Likewise.
6961 2020-09-17 Martin Sebor <msebor@redhat.com>
6963 * doc/invoke.texi (-Wuninitialized): Document -Wuninitialized for
6965 (-Wmaybe-uninitialized): Same.
6967 2020-09-17 Richard Biener <rguenther@suse.de>
6969 * tree-ssa-sccvn.c (visit_nary_op): Value-number multiplications
6970 and divisions to negates of available negated forms.
6972 2020-09-17 Eric Botcazou <ebotcazou@adacore.com>
6975 * function.c (use_register_for_decl): Test cfun->tail_call_marked
6976 for a parameter here instead of...
6977 (assign_parm_setup_reg): ...here.
6979 2020-09-17 Aldy Hernandez <aldyh@redhat.com>
6981 * range-op.cc (multi_precision_range_tests): Normalize symbolics when copying to a
6983 * value-range.cc (irange::copy_legacy_range): Add test.
6985 2020-09-17 Jan Hubicka <jh@suse.cz>
6987 * cgraph.c (cgraph_node::get_availability): Fix availability of
6988 functions in other partitions
6989 * varpool.c (varpool_node::get_availability): Likewise.
6991 2020-09-17 Jojo R <jiejie_rong@c-sky.com>
6993 * config/csky/csky.opt (msim): New.
6994 * doc/invoke.texi (C-SKY Options): Document -msim.
6995 * config/csky/csky-elf.h (LIB_SPEC): Add simulator runtime.
6997 2020-09-17 Sergei Trofimovich <siarheit@google.com>
6999 * doc/cppenv.texi: Use @code{} instead of @samp{@command{}}
7002 2020-09-17 liuhongt <hongtao.liu@intel.com>
7004 * common/config/i386/i386-common.c
7005 (OPTION_MASK_ISA_AVX_UNSET): Remove OPTION_MASK_ISA_XSAVE_UNSET.
7006 (OPTION_MASK_ISA_XSAVE_UNSET): Add OPTION_MASK_ISA_AVX_UNSET.
7008 2020-09-16 Alexandre Oliva <oliva@adacore.com>
7010 * config/rs6000/rs6000.c (have_compare_and_set_mask): Use
7013 2020-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
7015 * config/rs6000/predicates.md (current_file_function_operand):
7016 Remove argument from rs6000_pcrel_p call.
7017 * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
7019 (rs6000_global_entry_point_prologue_needed_p): Likewise.
7020 (rs6000_output_function_prologue): Likewise.
7021 * config/rs6000/rs6000-protos.h (rs6000_function_pcrel_p): New
7023 (rs6000_pcrel_p): Remove argument.
7024 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
7025 argument from rs6000_pcrel_p call.
7026 (rs6000_call_template_1): Likewise.
7027 (rs6000_indirect_call_template_1): Likewise.
7028 (rs6000_longcall_ref): Likewise.
7029 (rs6000_call_aix): Likewise.
7030 (rs6000_sibcall_aix): Likewise.
7031 (rs6000_function_pcrel_p): Rename from rs6000_pcrel_p.
7032 (rs6000_pcrel_p): Rewrite.
7033 * config/rs6000/rs6000.md (*pltseq_plt_pcrel<mode>): Remove
7034 argument from rs6000_pcrel_p call.
7035 (*call_local<mode>): Likewise.
7036 (*call_value_local<mode>): Likewise.
7037 (*call_nonlocal_aix<mode>): Likewise.
7038 (*call_value_nonlocal_aix<mode>): Likewise.
7039 (*call_indirect_pcrel<mode>): Likewise.
7040 (*call_value_indirect_pcrel<mode>): Likewise.
7042 2020-09-16 Marek Polacek <polacek@redhat.com>
7044 PR preprocessor/96935
7045 * input.c (get_substring_ranges_for_loc): Return if start.column
7048 2020-09-16 Martin Sebor <msebor@redhat.com>
7051 * tree-ssa-uninit.c (maybe_warn_operand): Work harder to avoid
7052 warning for objects of empty structs
7054 2020-09-16 Eric Botcazou <ebotcazou@adacore.com>
7056 * tree-eh.c (lower_try_finally_dup_block): Backward propagate slocs
7057 to stack restore builtin calls.
7058 (cleanup_all_empty_eh): Do again a post-order traversal of the EH
7061 2020-09-16 Andrea Corallo <andrea.corallo@arm.com>
7063 * tree-vect-loop.c (vect_need_peeling_or_partial_vectors_p): New
7065 (vect_analyze_loop_2): Make use of it not to select partial
7066 vectors if no peel is required.
7067 (determine_peel_for_niter): Move out some logic into
7068 'vect_need_peeling_or_partial_vectors_p'.
7070 2020-09-16 H.J. Lu <hjl.tools@gmail.com>
7073 * cfgexpand.c (asm_clobber_reg_kind): Set sp_is_clobbered_by_asm
7074 to true if the stack pointer is clobbered by asm statement.
7075 * emit-rtl.h (rtl_data): Add sp_is_clobbered_by_asm.
7076 * config/i386/i386.c (ix86_get_drap_rtx): Set need_drap to true
7077 if the stack pointer is clobbered by asm statement.
7079 2020-09-16 Ilya Leoshkevich <iii@linux.ibm.com>
7081 * config/s390/vector.md(*vec_tf_to_v1tf): Use "f" instead of "v"
7082 for the source operand.
7084 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7086 * config.gcc (C-SKY): Set use_gcc_stdint=wrap for elf target.
7088 2020-09-16 Richard Biener <rguenther@suse.de>
7090 * tree-vectorizer.h (_stmt_vec_info::num_slp_uses): Remove.
7091 (STMT_VINFO_NUM_SLP_USES): Likewise.
7092 (vect_free_slp_instance): Adjust.
7093 (vect_update_shared_vectype): Declare.
7094 * tree-vectorizer.c (vec_info::~vec_info): Adjust.
7095 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7096 (vectorizable_live_operation): Use vector type from
7097 SLP_TREE_REPRESENTATIVE.
7098 (vect_transform_loop): Adjust.
7099 * tree-vect-data-refs.c (vect_slp_analyze_node_alignment):
7100 Set the shared vector type.
7101 * tree-vect-slp.c (vect_free_slp_tree): Remove final_p
7102 parameter, remove STMT_VINFO_NUM_SLP_USES updating.
7103 (vect_free_slp_instance): Adjust.
7104 (vect_create_new_slp_node): Remove STMT_VINFO_NUM_SLP_USES
7106 (vect_update_shared_vectype): Always compare with the
7107 present vector type, update if NULL.
7108 (vect_build_slp_tree_1): Do not update the shared vector
7110 (vect_build_slp_tree_2): Adjust.
7111 (slp_copy_subtree): Likewise.
7112 (vect_attempt_slp_rearrange_stmts): Likewise.
7113 (vect_analyze_slp_instance): Likewise.
7114 (vect_analyze_slp): Likewise.
7115 (vect_slp_analyze_node_operations_1): Update the shared
7117 (vect_slp_analyze_operations): Adjust.
7118 (vect_slp_analyze_bb_1): Likewise.
7120 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7122 * config/csky/t-csky-linux (CSKY_MULTILIB_OSDIRNAMES): Use mfloat-abi.
7123 (MULTILIB_OPTIONS): Likewise.
7124 * config/csky/t-csky-elf (MULTILIB_OPTIONS): Likewise.
7125 (MULTILIB_EXCEPTIONS): Likewise.
7127 2020-09-16 Jakub Jelinek <jakub@redhat.com>
7129 * config/arm/arm.c (arm_option_restore): Comment out opts argument
7130 name to avoid unused parameter warnings.
7132 2020-09-16 Jakub Jelinek <jakub@redhat.com>
7134 * optc-save-gen.awk: In cl_optimization_stream_out use
7135 bp_pack_var_len_{int,unsigned} instead of bp_pack_value. In
7136 cl_optimization_stream_in use bp_unpack_var_len_{int,unsigned}
7137 instead of bp_unpack_value. Formatting fix.
7139 2020-09-16 Jakub Jelinek <jakub@redhat.com>
7141 PR tree-optimization/97053
7142 * gimple-ssa-store-merging.c (check_no_overlap): Add FIRST_ORDER,
7143 START, FIRST_EARLIER and LAST_EARLIER arguments. Return false if
7144 any stores between FIRST_EARLIER inclusive and LAST_EARLIER exclusive
7145 has order in between FIRST_ORDER and LAST_ORDER and overlaps the to
7147 (imm_store_chain_info::try_coalesce_bswap): Add FIRST_EARLIER argument.
7148 Adjust check_no_overlap caller.
7149 (imm_store_chain_info::coalesce_immediate_stores): Add first_earlier
7150 and last_earlier variables, adjust them during iterations. Adjust
7151 check_no_overlap callers, call check_no_overlap even when extending
7152 overlapping stores by extra INTEGER_CST stores.
7154 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7156 * config/csky/csky-linux-elf.h (GLIBC_DYNAMIC_LINKER): Use mfloat-abi.
7158 2020-09-16 Kewen Lin <linkw@linux.ibm.com>
7161 * config/rs6000/rs6000-p8swap.c (find_alignment_op): Adjust to
7162 support multiple defintions which are all AND operations with
7164 (recombine_lvx_pattern): Adjust to handle multiple AND operations
7165 from find_alignment_op.
7166 (recombine_stvx_pattern): Likewise.
7168 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7170 * config/csky/csky.md (CSKY_NPARM_FREGS): New.
7171 (call_value_internal_vs/d): New.
7172 (untyped_call): New.
7173 * config/csky/csky.h (TARGET_SINGLE_FPU): New.
7174 (TARGET_DOUBLE_FPU): New.
7175 (FUNCTION_VARG_REGNO_P): New.
7176 (CSKY_VREG_MODE_P): New.
7177 (FUNCTION_VARG_MODE_P): New.
7178 (CUMULATIVE_ARGS): Add extra regs info.
7179 (INIT_CUMULATIVE_ARGS): Use csky_init_cumulative_args.
7180 (FUNCTION_ARG_REGNO_P): Use FUNCTION_VARG_REGNO_P.
7181 * config/csky/csky-protos.h (csky_init_cumulative_args): Extern.
7182 * config/csky/csky.c (csky_cpu_cpp_builtins): Support TARGET_HARD_FLOAT_ABI.
7183 (csky_function_arg): Likewise.
7184 (csky_num_arg_regs): Likewise.
7185 (csky_function_arg_advance): Likewise.
7186 (csky_function_value): Likewise.
7187 (csky_libcall_value): Likewise.
7188 (csky_function_value_regno_p): Likewise.
7189 (csky_arg_partial_bytes): Likewise.
7190 (csky_setup_incoming_varargs): Likewise.
7191 (csky_init_cumulative_args): New.
7193 2020-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
7195 * config/rs6000/rs6000-call.c (altivec_init_builtins): Fix name
7196 of __builtin_altivec_xst_len_r.
7198 2020-09-15 Ilya Leoshkevich <iii@linux.ibm.com>
7200 * rtlanal.c (set_noop_p): Treat subregs of registers in
7201 different modes conservatively.
7203 2020-09-15 Richard Biener <rguenther@suse.de>
7205 * tree-vect-slp.c (vect_get_and_check_slp_defs): Make swap
7206 argument by-value and do not change it.
7207 (vect_build_slp_tree_2): Adjust, set swap to NULL after last
7210 2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
7212 PR tree-optimization/94234
7213 * match.pd (T)(A) +- (T)(B) -> (T)(A +- B): New simplification.
7215 2020-09-15 Segher Boessenkool <segher@kernel.crashing.org>
7217 PR rtl-optimization/96475
7218 * bb-reorder.c (duplicate_computed_gotos): If we did anything, run
7221 2020-09-15 Richard Biener <rguenther@suse.de>
7223 * tree-vect-slp.c (vect_build_slp_tree_2): Also consider
7224 building an operand from scalars when building it did not
7225 fail fatally but avoid messing with the upcall splitting
7228 2020-09-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
7230 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Do not
7231 check +D32 for CMSE if -mfloat-abi=soft
7233 2020-09-15 liuhongt <hongtao.liu@intel.com>
7236 * config/i386/x86-tune-costs.h (struct processor_costs):
7237 Increase mask <-> integer cost for non AVX512 target to avoid
7238 spill gpr to mask. Also retune mask <-> integer and
7239 mask_load/store for skylake_cost.
7241 2020-09-15 Jakub Jelinek <jakub@redhat.com>
7244 * config/i386/sse.md (mul<mode>3<mask_name>_bcs,
7245 <avx512>_div<mode>3<mask_name>_bcst): Use <avx512bcst> instead of
7248 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7251 * gimplify.c (gimplify_omp_for): Add 'bool openacc' argument;
7252 update omp_finish_clause calls.
7253 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses,
7254 gimplify_expr, gimplify_omp_loop): Update omp_finish_clause
7255 and/or gimplify_for calls.
7256 * langhooks-def.h (lhd_omp_finish_clause): Add bool openacc arg.
7257 * langhooks.c (lhd_omp_finish_clause): Likewise.
7258 * langhooks.h (lhd_omp_finish_clause): Likewise.
7259 * omp-low.c (scan_sharing_clauses): Keep GOMP_MAP_TO_PSET cause for
7260 'declare target' vars.
7262 2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
7264 PR tree-optimization/94234
7265 * genmatch.c (dt_simplify::gen_1): Emit check on final simplification
7266 result when "!" is specified on toplevel output expr.
7267 * match.pd ((A * C) +- (B * C) -> (A +- B) * C): Allow folding on expr
7268 with multi-use operands if final result is a simple gimple value.
7270 2020-09-14 Sergei Trofimovich <siarheit@google.com>
7272 * doc/invoke.texi: fix '-fprofile-reproducibility' option
7275 2020-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7277 * config/bpf/bpf.md ("nop"): Re-define as `ja 0'.
7279 2020-09-14 Eric Botcazou <ebotcazou@adacore.com>
7281 * cgraphunit.c (cgraph_node::expand_thunk): Make sure to set
7282 cfun->tail_call_marked when forcing a tail call.
7283 * function.c (assign_parm_setup_reg): Always use a register to
7284 load a parameter passed by reference if cfun->tail_call_marked.
7286 2020-09-14 Pat Haugen <pthaugen@linux.ibm.com>
7288 * config/rs6000/power10.md (power10-mffgpr, power10-mftgpr): Rename to
7289 power10-mtvsr/power10-mfvsr.
7290 * config/rs6000/power6.md (X2F_power6, power6-mftgpr, power6-mffgpr):
7292 * config/rs6000/power8.md (power8-mffgpr, power8-mftgpr): Rename to
7293 power8-mtvsr/power8-mfvsr.
7294 * config/rs6000/power9.md (power9-mffgpr, power9-mftgpr): Rename to
7295 power9-mtvsr/power9-mfvsr.
7296 * config/rs6000/rs6000.c (rs6000_adjust_cost): Remove Power6
7298 * config/rs6000/rs6000.md (mffgpr, mftgpr, zero_extendsi<mode>2,
7299 extendsi<mode>2, @signbit<mode>2_dm, lfiwax, lfiwzx, *movsi_internal1,
7300 movsi_from_sf, *movdi_from_sf_zero_ext, *mov<mode>_internal,
7301 movsd_hardfloat, movsf_from_si, *mov<mode>_hardfloat64, p8_mtvsrwz,
7302 p8_mtvsrd_df, p8_mtvsrd_sf, p8_mfvsrd_3_<mode>, *movdi_internal64,
7303 unpack<mode>_dm): Rename mffgpr/mftgpr to mtvsr/mfvsr.
7304 * config/rs6000/vsx.md (vsx_mov<mode>_64bit, vsx_extract_<mode>,
7305 vsx_extract_si, *vsx_extract_<mode>_p8): Likewise.
7307 2020-09-14 Jakub Jelinek <jakub@redhat.com>
7309 * config/arm/arm.opt (x_arm_arch_string, x_arm_cpu_string,
7310 x_arm_tune_string): Remove TargetSave entries.
7311 (march=, mcpu=, mtune=): Add Save keyword.
7312 * config/arm/arm.c (arm_option_save): Remove.
7313 (TARGET_OPTION_SAVE): Don't redefine.
7314 (arm_option_restore): Don't restore x_arm_*_string here.
7316 2020-09-14 Jakub Jelinek <jakub@redhat.com>
7318 * opt-read.awk: Also initialize extra_target_var_types array.
7319 * opth-gen.awk: Emit explicit_mask arrays to struct cl_optimization
7320 and cl_target_option. Adjust cl_optimization_save,
7321 cl_optimization_restore, cl_target_option_save and
7322 cl_target_option_restore declarations.
7323 * optc-save-gen.awk: Add opts_set argument to cl_optimization_save,
7324 cl_optimization_restore, cl_target_option_save and
7325 cl_target_option_restore functions and save or restore opts_set
7326 next to the opts values into or from explicit_mask arrays.
7327 In cl_target_option_eq and cl_optimization_option_eq compare
7328 explicit_mask arrays, in cl_target_option_hash and cl_optimization_hash
7329 hash them and in cl_target_option_stream_out,
7330 cl_target_option_stream_in, cl_optimization_stream_out and
7331 cl_optimization_stream_in stream them.
7332 * tree.h (build_optimization_node, build_target_option_node): Add
7334 * tree.c (build_optimization_node): Add opts_set argument, pass it
7335 to cl_optimization_save.
7336 (build_target_option_node): Add opts_set argument, pass it to
7337 cl_target_option_save.
7338 * function.c (invoke_set_current_function_hook): Adjust
7339 cl_optimization_restore caller.
7340 * ipa-inline-transform.c (inline_call): Adjust cl_optimization_restore
7341 and build_optimization_node callers.
7342 * target.def (TARGET_OPTION_SAVE, TARGET_OPTION_RESTORE): Add opts_set
7344 * target-globals.c (save_target_globals_default_opts): Adjust
7345 cl_optimization_restore callers.
7346 * toplev.c (process_options): Adjust build_optimization_node and
7347 cl_optimization_restore callers.
7348 (target_reinit): Adjust cl_optimization_restore caller.
7349 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
7350 Adjust build_optimization_node and cl_optimization_restore callers.
7351 * doc/tm.texi: Updated.
7352 * config/aarch64/aarch64.c (aarch64_override_options): Adjust
7353 build_target_option_node caller.
7354 (aarch64_option_save, aarch64_option_restore): Add opts_set argument.
7355 (aarch64_set_current_function): Adjust cl_target_option_restore
7357 (aarch64_option_valid_attribute_p): Adjust cl_target_option_save,
7358 cl_target_option_restore, cl_optimization_restore,
7359 build_optimization_node and build_target_option_node callers.
7360 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Adjust
7361 cl_target_option_restore and build_target_option_node callers.
7362 * config/arm/arm.c (arm_option_save, arm_option_restore): Add
7364 (arm_option_override): Adjust cl_target_option_save,
7365 build_optimization_node and build_target_option_node callers.
7366 (arm_set_current_function): Adjust cl_target_option_restore caller.
7367 (arm_valid_target_attribute_tree): Adjust build_target_option_node
7369 (add_attribute): Formatting fix.
7370 (arm_valid_target_attribute_p): Adjust cl_optimization_restore,
7371 cl_target_option_restore, arm_valid_target_attribute_tree and
7372 build_optimization_node callers.
7373 * config/arm/arm-c.c (arm_pragma_target_parse): Adjust
7374 cl_target_option_restore callers.
7375 * config/csky/csky.c (csky_option_override): Adjust
7376 build_target_option_node and cl_target_option_save callers.
7377 * config/gcn/gcn.c (gcn_fixup_accel_lto_options): Adjust
7378 build_optimization_node and cl_optimization_restore callers.
7379 * config/i386/i386-builtins.c (get_builtin_code_for_version):
7380 Adjust cl_target_option_save and cl_target_option_restore
7382 * config/i386/i386-c.c (ix86_pragma_target_parse): Adjust
7383 build_target_option_node and cl_target_option_restore callers.
7384 * config/i386/i386-options.c (ix86_function_specific_save,
7385 ix86_function_specific_restore): Add opts_set arguments.
7386 (ix86_valid_target_attribute_tree): Adjust build_target_option_node
7388 (ix86_valid_target_attribute_p): Adjust build_optimization_node,
7389 cl_optimization_restore, cl_target_option_restore,
7390 ix86_valid_target_attribute_tree and build_optimization_node callers.
7391 (ix86_option_override_internal): Adjust build_target_option_node
7393 (ix86_reset_previous_fndecl, ix86_set_current_function): Adjust
7394 cl_target_option_restore callers.
7395 * config/i386/i386-options.h (ix86_function_specific_save,
7396 ix86_function_specific_restore): Add opts_set argument.
7397 * config/nios2/nios2.c (nios2_option_override): Adjust
7398 build_target_option_node caller.
7399 (nios2_option_save, nios2_option_restore): Add opts_set argument.
7400 (nios2_valid_target_attribute_tree): Adjust build_target_option_node
7402 (nios2_valid_target_attribute_p): Adjust build_optimization_node,
7403 cl_optimization_restore, cl_target_option_save and
7404 cl_target_option_restore callers.
7405 (nios2_set_current_function, nios2_pragma_target_parse): Adjust
7406 cl_target_option_restore callers.
7407 * config/pru/pru.c (pru_option_override): Adjust
7408 build_target_option_node caller.
7409 (pru_set_current_function): Adjust cl_target_option_restore
7411 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust
7412 cl_target_option_save caller.
7413 (rs6000_option_override_internal): Adjust build_target_option_node
7415 (rs6000_valid_attribute_p): Adjust build_optimization_node,
7416 cl_optimization_restore, cl_target_option_save,
7417 cl_target_option_restore and build_target_option_node callers.
7418 (rs6000_pragma_target_parse): Adjust cl_target_option_restore and
7419 build_target_option_node callers.
7420 (rs6000_activate_target_options): Adjust cl_target_option_restore
7422 (rs6000_function_specific_save, rs6000_function_specific_restore):
7423 Add opts_set argument.
7424 * config/s390/s390.c (s390_function_specific_restore): Likewise.
7425 (s390_option_override_internal): Adjust s390_function_specific_restore
7427 (s390_option_override, s390_valid_target_attribute_tree): Adjust
7428 build_target_option_node caller.
7429 (s390_valid_target_attribute_p): Adjust build_optimization_node,
7430 cl_optimization_restore and cl_target_option_restore callers.
7431 (s390_activate_target_options): Adjust cl_target_option_restore
7433 * config/s390/s390-c.c (s390_cpu_cpp_builtins): Adjust
7434 cl_target_option_save caller.
7435 (s390_pragma_target_parse): Adjust build_target_option_node and
7436 cl_target_option_restore callers.
7438 2020-09-13 Roger Sayle <roger@nextmovesoftware.com>
7440 * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
7441 Provide accurate costs for DImode shifts of integer constants.
7443 2020-09-12 Roger Sayle <roger@nextmovesoftware.com>
7444 John David Anglin <danglin@gcc.gnu.org>
7446 * config/pa/pa.md (shrpsi4_1, shrpsi4_2): New define_insns split
7447 out from previous shrpsi4 providing two commutitive variants using
7448 plus_xor_ior_operator as a predicate.
7449 (shrpdi4_1, shrpdi4_2, shrpdi_3, shrpdi_4): Likewise DImode versions
7450 where _1 and _2 take register shifts, and _3 and _4 for integers.
7451 (rotlsi3_internal): Name this anonymous instruction.
7452 (rotrdi3): New DImode insn copied from rotrsi3.
7453 (rotldi3): New DImode expander copied from rotlsi3.
7454 (rotldi4_internal): New DImode insn copied from rotsi3_internal.
7456 2020-09-11 Michael Meissner <meissner@linux.ibm.com>
7458 * config/rs6000/rs6000.c (rs6000_maybe_emit_maxc_minc): Rename
7459 from rs6000_emit_p9_fp_minmax. Change return type to bool. Add
7460 comments to document NaN/signed zero behavior.
7461 (rs6000_maybe_emit_fp_cmove): Rename from rs6000_emit_p9_fp_cmove.
7462 (have_compare_and_set_mask): New helper function.
7463 (rs6000_emit_cmove): Update calls to new names and the new helper
7466 2020-09-11 Nathan Sidwell <nathan@acm.org>
7468 * config/i386/sse.md (mov<mode>): Fix operand indices.
7470 2020-09-11 Martin Sebor <msebor@redhat.com>
7473 * builtins.c (compute_objsize): Remove incorrect offset adjustment.
7474 (compute_objsize): Adjust offset range here instead.
7476 2020-09-11 Richard Biener <rguenther@suse.de>
7478 PR tree-optimization/97020
7479 * tree-vect-slp.c (vect_slp_analyze_operations): Apply
7480 SLP costs when doing loop vectorization.
7482 2020-09-11 Tom de Vries <tdevries@suse.de>
7485 * config/nvptx/nvptx.md (define_expand "atomic_test_and_set"): New
7488 2020-09-11 Andrew Stubbs <ams@codesourcery.com>
7490 * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align TImode registers.
7491 * config/gcn/gcn.md: Assert that TImode registers do not early clobber.
7493 2020-09-11 Richard Biener <rguenther@suse.de>
7495 * tree-vectorizer.h (_slp_instance::location): New method.
7496 (vect_schedule_slp): Adjust prototype.
7497 * tree-vectorizer.c (vec_info::remove_stmt): Adjust
7498 the BB region begin if we removed the stmt it points to.
7499 * tree-vect-loop.c (vect_transform_loop): Adjust.
7500 * tree-vect-slp.c (_slp_instance::location): Implement.
7501 (vect_analyze_slp_instance): For BB vectorization set
7502 vect_location to that of the instance.
7503 (vect_slp_analyze_operations): Likewise.
7504 (vect_bb_vectorization_profitable_p): Remove wrapper.
7505 (vect_slp_analyze_bb_1): Remove cost check here.
7506 (vect_slp_region): Cost check and code generate subgraphs separately,
7507 report optimized locations and missed optimizations due to
7508 profitability for each of them.
7509 (vect_schedule_slp): Get the vector of SLP graph entries to
7510 vectorize as argument.
7512 2020-09-11 Richard Biener <rguenther@suse.de>
7514 PR tree-optimization/97013
7515 * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove duplicate dumping.
7517 2020-09-11 Richard Biener <rguenther@suse.de>
7519 * tree-vect-slp.c (vect_build_slp_tree_1): Check vector
7520 types for all lanes are compatible.
7521 (vect_analyze_slp_instance): Appropriately check for stores.
7522 (vect_schedule_slp): Likewise.
7524 2020-09-11 Tom de Vries <tdevries@suse.de>
7526 * config/nvptx/nvptx.c (nvptx_assemble_value): Fix undefined
7529 2020-09-11 Tom de Vries <tdevries@suse.de>
7531 * config/nvptx/nvptx.c (nvptx_assemble_value): Handle negative
7534 2020-09-11 Aaron Sawdey <acsawdey@linux.ibm.com>
7536 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7539 2020-09-10 Michael Meissner <meissner@linux.ibm.com>
7541 * config/rs6000/rs6000-protos.h (rs6000_emit_cmove): Change return
7543 (rs6000_emit_int_cmove): Change return type to bool.
7544 * config/rs6000/rs6000.c (rs6000_emit_cmove): Change return type
7546 (rs6000_emit_int_cmove): Change return type to bool.
7548 2020-09-10 Tom de Vries <tdevries@suse.de>
7551 * config/nvptx/nvptx.c (nvptx_assemble_value): Handle shift by
7552 number of bits in shift operand.
7554 2020-09-10 Jakub Jelinek <jakub@redhat.com>
7556 * lto-streamer-out.c (collect_block_tree_leafs): Recurse on
7557 root rather than BLOCK_SUBBLOCKS (root).
7559 2020-09-10 Alex Coplan <alex.coplan@arm.com>
7561 * config/aarch64/aarch64-cores.def: Add Cortex-R82.
7562 * config/aarch64/aarch64-tune.md: Regenerate.
7563 * doc/invoke.texi: Add entry for Cortex-R82.
7565 2020-09-10 Alex Coplan <alex.coplan@arm.com>
7567 * common/config/aarch64/aarch64-common.c
7568 (aarch64_get_extension_string_for_isa_flags): Don't force +crc for
7570 * config/aarch64/aarch64-arches.def: Add entry for Armv8-R.
7571 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros): Set
7572 __ARM_ARCH_PROFILE correctly for Armv8-R.
7573 * config/aarch64/aarch64.h (AARCH64_FL_V8_R): New.
7574 (AARCH64_FL_FOR_ARCH8_R): New.
7575 (AARCH64_ISA_V8_R): New.
7576 * doc/invoke.texi: Add Armv8-R to architecture table.
7578 2020-09-10 Jakub Jelinek <jakub@redhat.com>
7580 * config/arm/arm.c (arm_override_options_after_change_1): Add opts_set
7581 argument, test opts_set->x_str_align_functions rather than
7582 opts->x_str_align_functions.
7583 (arm_override_options_after_change, arm_option_override_internal,
7584 arm_set_current_function): Adjust callers.
7586 2020-09-10 Jakub Jelinek <jakub@redhat.com>
7589 * config/arm/arm.c (arm_override_options_after_change): Don't call
7590 arm_configure_build_target here.
7591 (arm_set_current_function): Call arm_override_options_after_change_1
7594 2020-09-10 Pat Haugen <pthaugen@linux.ibm.com>
7596 * config/rs6000/rs6000.md
7597 (lfiwzx, floatunssi<mode>2_lfiwzx, p8_mtvsrwz, p8_mtvsrd_sf): Fix insn
7599 * config/rs6000/vsx.md
7600 (vsx_concat_<mode>, vsx_splat_<mode>_reg, vsx_splat_v4sf): Likewise.
7602 2020-09-10 Jonathan Yong <10walls@gmail.com>
7604 * config.host: Adjust plugin name for Windows.
7606 2020-09-10 Tom de Vries <tdevries@suse.de>
7608 PR tree-optimization/97000
7609 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): Don't clear
7610 flag for IFN_UNIQUE.
7612 2020-09-10 Jakub Jelinek <jakub@redhat.com>
7615 * lto-streamer.h (struct output_block): Add emit_pwd member.
7616 * lto-streamer-out.c: Include toplev.h.
7617 (clear_line_info): Set emit_pwd.
7618 (lto_output_location_1): Encode the ob->current_file != xloc.file
7619 bit directly into the location number. If changing file, emit
7620 additionally a bit whether pwd is emitted and emit it before the
7621 first relative pathname since clear_line_info.
7622 (output_function, output_constructor): Don't call clear_line_info
7624 * lto-streamer-in.c (struct string_pair_map): New type.
7625 (struct string_pair_map_hasher): New type.
7626 (string_pair_map_hasher::hash): New method.
7627 (string_pair_map_hasher::equal): New method.
7628 (path_name_pair_hash_table, string_pair_map_allocator): New variables.
7629 (relative_path_prefix, canon_relative_path_prefix,
7630 canon_relative_file_name): New functions.
7631 (canon_file_name): Add relative_prefix argument, if non-NULL
7632 and string is a relative path, return canon_relative_file_name.
7633 (lto_location_cache::input_location_and_block): Decode file change
7634 bit from the location number. If changing file, unpack bit whether
7635 pwd is streamed and stream in pwd. Adjust canon_file_name caller.
7636 (lto_free_file_name_hash): Delete path_name_pair_hash_table
7637 and string_pair_map_allocator.
7639 2020-09-10 Richard Biener <rguenther@suse.de>
7641 PR tree-optimization/96043
7642 * tree-vectorizer.h (_slp_instance::cost_vec): New.
7643 (_slp_instance::subgraph_entries): Likewise.
7644 (BB_VINFO_TARGET_COST_DATA): Remove.
7645 * tree-vect-slp.c (vect_free_slp_instance): Free
7646 cost_vec and subgraph_entries.
7647 (vect_analyze_slp_instance): Initialize them.
7648 (vect_slp_analyze_operations): Defer passing costs to
7649 the target, instead record them in the SLP graph entry.
7650 (get_ultimate_leader): New helper for graph partitioning.
7651 (vect_bb_partition_graph_r): Likewise.
7652 (vect_bb_partition_graph): New function to partition the
7653 SLP graph into independently costable parts.
7654 (vect_bb_vectorization_profitable_p): Adjust to work on
7656 (vect_bb_vectorization_profitable_p): New wrapper,
7657 discarding non-profitable vectorization of subgraphs.
7658 (vect_slp_analyze_bb_1): Call vect_bb_partition_graph before
7661 2020-09-09 David Malcolm <dmalcolm@redhat.com>
7664 * doc/invoke.texi: Document -Wanalyzer-mismatching-deallocation.
7666 2020-09-09 Segher Boessenkool <segher@kernel.crashing.org>
7668 PR rtl-optimization/96475
7669 * bb-reorder.c (maybe_duplicate_computed_goto): Remove single_pred_p
7672 2020-09-09 Tom de Vries <tdevries@suse.de>
7674 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Fix Wformat
7677 2020-09-09 Richard Biener <rguenther@suse.de>
7679 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
7680 nothing when the permutation doesn't permute.
7682 2020-09-09 Tom de Vries <tdevries@suse.de>
7685 * config/nvptx/nvptx.c (write_fn_proto): Fix boolean type check.
7687 2020-09-09 Richard Biener <rguenther@suse.de>
7689 * tree-vect-stmts.c (vectorizable_comparison): Allow
7690 STMT_VINFO_LIVE_P stmts.
7692 2020-09-09 Richard Biener <rguenther@suse.de>
7694 * tree-vect-stmts.c (vectorizable_condition): Allow
7695 STMT_VINFO_LIVE_P stmts.
7697 2020-09-09 Richard Biener <rguenther@suse.de>
7699 PR tree-optimization/96978
7700 * tree-vect-stmts.c (vectorizable_condition): Do not
7701 look at STMT_VINFO_LIVE_P for BB vectorization.
7702 (vectorizable_comparison): Likewise.
7704 2020-09-09 liuhongt <hongtao.liu@intel.com>
7707 * config/i386/i386.md (get_thread_pointer<mode>): New
7710 2020-09-08 Julian Brown <julian@codesourcery.com>
7712 * config/gcn/gcn-valu.md (scatter<mode>_insn_1offset_ds<exec_scatter>):
7714 * config/gcn/gcn.md (*mov<mode>_insn, *movti_insn): Add waitcnt to
7715 ds_write alternatives.
7717 2020-09-08 Julian Brown <julian@codesourcery.com>
7719 * config/gcn/mkoffload.c (process_asm): Initialise regcount. Update
7720 scanning for SGPR/VGPR usage for HSACO v3.
7722 2020-09-08 Aldy Hernandez <aldyh@redhat.com>
7724 PR tree-optimization/96967
7725 * tree-vrp.c (find_case_label_range): Cast label range to
7726 type of switch operand.
7728 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7730 * config/msp430/msp430.c (msp430_file_end): Fix jumbled
7731 HAVE_AS_MSPABI_ATTRIBUTE and HAVE_AS_GNU_ATTRIBUTE checks.
7732 * configure: Regenerate.
7733 * configure.ac: Use ".mspabi_attribute 4,2" to check for assembler
7734 support for this object attribute directive.
7736 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7738 * common/config/msp430/msp430-common.c (msp430_handle_option): Remove
7740 Set target_cpu value to new enum values when parsing certain -mmcu=
7742 * config/msp430/msp430-opts.h (enum msp430_cpu_types): New.
7743 * config/msp430/msp430.c (msp430_option_override): Handle new
7744 target_cpu enum values.
7745 Set target_cpu using extracted value for given MCU when -mcpu=
7746 option is not passed by the user.
7747 * config/msp430/msp430.opt: Handle -mcpu= values using enums.
7749 2020-09-07 Richard Sandiford <richard.sandiford@arm.com>
7751 PR rtl-optimization/96796
7752 * lra-constraints.c (in_class_p): Add a default-false
7753 allow_all_reload_class_changes_p parameter. Do not treat
7754 reload moves specially when the parameter is true.
7755 (get_reload_reg): Try to narrow the class of an existing OP_OUT
7756 reload if we're reloading a reload pseudo in a reload instruction.
7758 2020-09-07 Andrea Corallo <andrea.corallo@arm.com>
7760 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Revert
7761 dead-code removal introduced by 09fa6acd8d9 + add a comment to
7764 2020-09-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7766 * doc/rtl.texi (subreg): Fix documentation to state there is a known
7767 number of undefined bits in regs and subregs of MODE_PARTIAL_INT modes.
7769 2020-09-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7771 * config/msp430/msp430.c (msp430_option_override): Don't set the
7772 ISA to 430 when the MCU is unrecognized.
7774 2020-09-07 Iain Sandoe <iain@sandoe.co.uk>
7776 * config/darwin.c (darwin_libc_has_function): Report sincos
7777 available from 10.9.
7779 2020-09-07 Alex Coplan <alex.coplan@arm.com>
7781 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): Delete.
7782 (*subs_mul_imm_<mode>): Delete.
7783 (*adds_<optab><mode>_multp2): Delete.
7784 (*subs_<optab><mode>_multp2): Delete.
7785 (*add_mul_imm_<mode>): Delete.
7786 (*add_<optab><ALLX:mode>_mult_<GPI:mode>): Delete.
7787 (*add_<optab><SHORT:mode>_mult_si_uxtw): Delete.
7788 (*add_<optab><mode>_multp2): Delete.
7789 (*add_<optab>si_multp2_uxtw): Delete.
7790 (*add_uxt<mode>_multp2): Delete.
7791 (*add_uxtsi_multp2_uxtw): Delete.
7792 (*sub_mul_imm_<mode>): Delete.
7793 (*sub_mul_imm_si_uxtw): Delete.
7794 (*sub_<optab><mode>_multp2): Delete.
7795 (*sub_<optab>si_multp2_uxtw): Delete.
7796 (*sub_uxt<mode>_multp2): Delete.
7797 (*sub_uxtsi_multp2_uxtw): Delete.
7798 (*neg_mul_imm_<mode>2): Delete.
7799 (*neg_mul_imm_si2_uxtw): Delete.
7800 * config/aarch64/predicates.md (aarch64_pwr_imm3): Delete.
7801 (aarch64_pwr_2_si): Delete.
7802 (aarch64_pwr_2_di): Delete.
7804 2020-09-07 Alex Coplan <alex.coplan@arm.com>
7806 * config/aarch64/aarch64.md
7807 (*adds_<optab><ALLX:mode>_<GPI:mode>): Ensure extended operand
7808 agrees with width of extension specifier.
7809 (*subs_<optab><ALLX:mode>_<GPI:mode>): Likewise.
7810 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
7811 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
7812 (*add_<optab><ALLX:mode>_<GPI:mode>): Likewise.
7813 (*add_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
7814 (*add_uxt<mode>_shift2): Likewise.
7815 (*sub_<optab><ALLX:mode>_<GPI:mode>): Likewise.
7816 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
7817 (*sub_uxt<mode>_shift2): Likewise.
7818 (*cmp_swp_<optab><ALLX:mode>_reg<GPI:mode>): Likewise.
7819 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
7821 2020-09-07 Richard Biener <rguenther@suse.de>
7823 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
7824 stmts we start SLP analysis from, failure and splitting.
7825 (vect_schedule_slp): Dump SLP graph entry and root stmt
7826 we are about to emit code for.
7828 2020-09-07 Martin Storsjö <martin@martin.st>
7830 * dwarf2out.c (file_name_acquire): Make a strchr return value
7833 2020-09-07 Jakub Jelinek <jakub@redhat.com>
7836 * lto-streamer-out.c (output_cfg): Also stream goto_locus for edges.
7837 Use bp_pack_var_len_unsigned instead of streamer_write_uhwi to stream
7838 e->dest->index and e->flags.
7839 (output_function): Call output_cfg before output_ssa_name, rather than
7840 after streaming all bbs.
7841 * lto-streamer-in.c (input_cfg): Stream in goto_locus for edges.
7842 Use bp_unpack_var_len_unsigned instead of streamer_read_uhwi to stream
7843 in dest_index and edge_flags.
7845 2020-09-07 Richard Biener <rguenther@suse.de>
7847 * tree-vectorizer.h (vectorizable_live_operation): Adjust.
7848 * tree-vect-loop.c (vectorizable_live_operation): Vectorize
7849 live lanes out of basic-block vectorization nodes.
7850 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): New function.
7851 (vect_slp_analyze_operations): Analyze live lanes and their
7852 vectorization possibility after the whole SLP graph is final.
7853 (vect_bb_slp_scalar_cost): Adjust for vectorized live lanes.
7854 * tree-vect-stmts.c (can_vectorize_live_stmts): Adjust.
7855 (vect_transform_stmt): Call can_vectorize_live_stmts also for
7856 basic-block vectorization.
7858 2020-09-04 Richard Biener <rguenther@suse.de>
7860 PR tree-optimization/96698
7861 PR tree-optimization/96920
7862 * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): Remove.
7863 (loop_vec_info::reduc_latch_slp_defs): Likewise.
7864 * tree-vect-stmts.c (vect_transform_stmt): Remove vectorized
7865 cycle PHI latch code.
7866 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): New
7867 helper to set vectorized cycle PHI latch values.
7868 (vect_transform_loop): Walk over all PHIs again after
7869 vectorizing them, calling maybe_set_vectorized_backedge_value.
7870 Call maybe_set_vectorized_backedge_value for each vectorized
7871 stmt. Remove delayed update code.
7872 * tree-vect-slp.c (vect_analyze_slp_instance): Initialize
7873 SLP instance reduc_phis member.
7874 (vect_schedule_slp): Set vectorized cycle PHI latch values.
7876 2020-09-04 Andrea Corallo <andrea.corallo@arm.com>
7878 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Remove
7879 dead code as LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) is
7882 2020-09-04 Christophe Lyon <christophe.lyon@linaro.org>
7885 * config/arm/thumb1.md: Move movsi splitter for
7886 arm_disable_literal_pool after the other movsi splitters.
7888 2020-09-04 Aldy Hernandez <aldyh@redhat.com>
7890 * range-op.cc (range_operator::fold_range): Rename widest_irange
7892 (operator_div::wi_fold): Same.
7893 (operator_lshift::op1_range): Same.
7894 (operator_rshift::op1_range): Same.
7895 (operator_cast::fold_range): Same.
7896 (operator_cast::op1_range): Same.
7897 (operator_bitwise_and::remove_impossible_ranges): Same.
7898 (operator_bitwise_and::op1_range): Same.
7899 (operator_abs::op1_range): Same.
7901 (widest_irange_tests): Same.
7902 (range3_tests): Rename irange3 to int_range3.
7903 (int_range_max_tests): Rename from widest_irange_tests.
7904 Rename widest_irange to int_range_max.
7905 (operator_tests): Rename widest_irange to int_range_max.
7906 (range_tests): Same.
7907 * tree-vrp.c (find_case_label_range): Same.
7908 * value-range.cc (irange::irange_intersect): Same.
7909 (irange::invert): Same.
7910 * value-range.h: Same.
7912 2020-09-04 Richard Biener <rguenther@suse.de>
7914 PR tree-optimization/96931
7915 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): If
7916 there's a fallthru edge and no abnormal edge the call is
7917 no longer control-altering.
7918 (cleanup_control_flow_bb): Pass down the BB to
7919 cleanup_call_ctrl_altering_flag.
7921 2020-09-04 Jakub Jelinek <jakub@redhat.com>
7923 * lto-streamer.h (stream_input_location_now): Remove declaration.
7924 * lto-streamer-in.c (stream_input_location_now): Remove.
7925 (input_eh_region, input_struct_function_base): Use
7926 stream_input_location instead of stream_input_location_now.
7928 2020-09-04 Jakub Jelinek <jakub@redhat.com>
7930 * lto-streamer.h (struct output_block): Add reset_locus member.
7931 * lto-streamer-out.c (clear_line_info): Set reset_locus to true.
7932 (lto_output_location_1): If reset_locus, clear it and ensure
7933 current_{file,line,col} is different from xloc members.
7935 2020-09-04 David Faust <david.faust@oracle.com>
7937 * config/bpf/bpf.h (ASM_SPEC): Pass -mxbpf to gas, if specified.
7938 * config/bpf/bpf.c (bpf_output_call): Support indirect calls in xBPF.
7940 2020-09-03 Martin Jambor <mjambor@suse.cz>
7942 PR tree-optimization/96820
7943 * tree-sra.c (create_access): Disqualify candidates with accesses
7944 beyond the end of the original aggregate.
7945 (maybe_add_sra_candidate): Check that candidate type size fits
7946 signed uhwi for the sake of consistency.
7948 2020-09-03 Will Schmidt <will_schmidt@vnet.ibm.com>
7950 * config/rs6000/rs6000-call.c (rs6000_init_builtin): Update V2DI_type_node
7951 and unsigned_V2DI_type_node definitions.
7953 2020-09-03 Jakub Jelinek <jakub@redhat.com>
7956 * tree.h (struct decl_tree_traits): New type.
7957 (decl_tree_map): New typedef.
7959 2020-09-03 Jakub Jelinek <jakub@redhat.com>
7962 * gimple.h (gimple_location_ptr, gimple_phi_arg_location_ptr): New
7964 * streamer-hooks.h (struct streamer_hooks): Add
7965 output_location_and_block callback. Fix up formatting for
7967 (stream_output_location_and_block): Define.
7968 * lto-streamer.h (class lto_location_cache): Fix comment typo. Add
7969 current_block member.
7970 (lto_location_cache::input_location_and_block): New method.
7971 (lto_location_cache::lto_location_cache): Initialize current_block.
7972 (lto_location_cache::cached_location): Add block member.
7973 (struct output_block): Add current_block member.
7974 (lto_output_location): Formatting fix.
7975 (lto_output_location_and_block): Declare.
7976 * lto-streamer.c (lto_streamer_hooks_init): Initialize
7977 streamer_hooks.output_location_and_block.
7978 * lto-streamer-in.c (lto_location_cache::cmp_loc): Also compare
7980 (lto_location_cache::apply_location_cache): Handle blocks.
7981 (lto_location_cache::accept_location_cache,
7982 lto_location_cache::revert_location_cache): Fix up function comments.
7983 (lto_location_cache::input_location_and_block): New method.
7984 (lto_location_cache::input_location): Implement using
7985 input_location_and_block.
7986 (input_function): Invoke apply_location_cache after streaming in all
7988 * lto-streamer-out.c (clear_line_info): Set current_block.
7989 (lto_output_location_1): New function, moved from lto_output_location,
7990 added block handling.
7991 (lto_output_location): Implement using lto_output_location_1.
7992 (lto_output_location_and_block): New function.
7993 * gimple-streamer-in.c (input_phi): Use input_location_and_block
7994 to input and cache both location and block.
7995 (input_gimple_stmt): Likewise.
7996 * gimple-streamer-out.c (output_phi): Use
7997 stream_output_location_and_block.
7998 (output_gimple_stmt): Likewise.
8000 2020-09-03 Richard Biener <rguenther@suse.de>
8002 * tree-vect-generic.c (tree_vec_extract): Remove odd
8003 special-casing of boolean vectors.
8004 * fold-const.c (fold_ternary_loc): Handle boolean vector
8005 type BIT_FIELD_REFs.
8007 2020-09-03 Hongtao Liu <hongtao.liu@intel.com>
8010 * config/i386/i386-features.c
8011 (replace_constant_pool_with_broadcast): New function.
8012 (constant_pool_broadcast): Ditto.
8013 (class pass_constant_pool_broadcast): New pass.
8014 (make_pass_constant_pool_broadcast): Ditto.
8015 (remove_partial_avx_dependency): Call
8016 replace_constant_pool_with_broadcast under TARGET_AVX512F, it
8017 would save compile time when both pass rpad and cpb are
8019 (remove_partial_avx_dependency_gate): New function.
8020 (class pass_remove_partial_avx_dependency::gate): Call
8021 remove_partial_avx_dependency_gate.
8022 * config/i386/i386-passes.def: Insert new pass after combine.
8023 * config/i386/i386-protos.h
8024 (make_pass_constant_pool_broadcast): Declare.
8025 * config/i386/sse.md (*avx512dq_mul<mode>3<mask_name>_bcst):
8027 (*avx512f_mul<mode>3<mask_name>_bcst): Ditto.
8028 * config/i386/avx512fintrin.h (_mm512_set1_ps,
8029 _mm512_set1_pd,_mm512_set1_epi32, _mm512_set1_epi64): Adjusted.
8031 2020-09-02 Jonathan Wakely <jwakely@redhat.com>
8034 * ginclude/stdbool.h (bool, false, true): Never define for C++.
8036 2020-09-02 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8038 * doc/invoke.texi (MSP430 options): Fix -mlarge description to
8039 indicate size_t is a 20-bit type.
8041 2020-09-02 Roger Sayle <roger@nextmovesoftware.com>
8043 * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
8044 Provide accurate costs for shifts of integer constants.
8046 2020-09-02 Jose E. Marchesi <jose.marchesi@oracle.com>
8048 * config/bpf/bpf.c (bpf_asm_named_section): Delete.
8049 (TARGET_ASM_NAMED_SECTION): Likewise.
8051 2020-09-02 Jose E. Marchesi <jemarch@gnu.org>
8053 * config.gcc: Use elfos.h in bpf-*-* targets.
8054 * config/bpf/bpf.h (MAX_OFILE_ALIGNMENT): Remove definition.
8055 (COMMON_ASM_OP): Likewise.
8056 (INIT_SECTION_ASM_OP): Likewise.
8057 (FINI_SECTION_ASM_OP): Likewise.
8058 (ASM_OUTPUT_SKIP): Likewise.
8059 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8060 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8062 2020-09-01 Martin Sebor <msebor@redhat.com>
8064 * builtins.c (compute_objsize): Only replace the upper bound
8065 of a POINTER_PLUS offset when it's less than the lower bound.
8067 2020-09-01 Peter Bergner <bergner@linux.ibm.com>
8070 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Do not
8071 reuse accumulator memory reference for source and destination accesses.
8073 2020-09-01 Martin Liska <mliska@suse.cz>
8075 * cfgrtl.c (rtl_create_basic_block): Use default value for
8076 growth vector function.
8077 * gimple.c (gimple_set_bb): Likewise.
8078 * symbol-summary.h: Likewise.
8079 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
8080 (build_gimple_cfg): Likewise.
8081 (create_bb): Likewise.
8082 (move_block_to_fn): Likewise.
8084 2020-09-01 Martin Liska <mliska@suse.cz>
8086 * vec.h (vec_safe_grow): Change default of exact to false.
8087 (vec_safe_grow_cleared): Likewise.
8089 2020-09-01 Roger Sayle <roger@nextmovesoftware.com>
8092 * targhooks.c (default_vector_alignment): Return at least the
8093 GET_MODE_ALIGNMENT for the type's mode.
8095 2020-09-01 Richard Biener <rguenther@suse.de>
8097 PR rtl-optimization/96812
8098 * tree-ssa-address.c (copy_ref_info): Also copy dependence info.
8099 * cfgrtl.h (duplicate_insn_chain): Adjust prototype.
8100 * cfgrtl.c (duplicate_insn_chain): Remap dependence info
8102 (cfg_layout_duplicate_bb): Make sure we remap dependence info.
8103 * modulo-sched.c (duplicate_insns_of_cycles): Remap dependence
8105 (generate_prolog_epilog): Adjust.
8106 * config/c6x/c6x.c (hwloop_optimize): Remap dependence info.
8108 2020-09-01 Kewen Lin <linkw@gcc.gnu.org>
8110 * doc/sourcebuild.texi (has_arch_pwr5, has_arch_pwr6, has_arch_pwr7,
8111 has_arch_pwr8, has_arch_pwr9): Document.
8113 2020-08-31 Carl Love <cel@us.ibm.com>
8116 * config/rs6000/altivec.h (vec_popcntb, vec_popcnth, vec_popcntw,
8117 vec_popcntd): Remove defines.
8119 2020-08-31 Marek Polacek <polacek@redhat.com>
8120 Jason Merrill <jason@redhat.com>
8123 * tree.c (build_constructor_from_vec): New.
8124 * tree.h (build_constructor_from_vec): Declare.
8126 2020-08-31 Aldy Hernandez <aldyh@redhat.com>
8128 PR tree-optimization/96818
8129 * tree-vrp.c (find_case_label_range): Cast label range to
8130 type of switch operand.
8132 2020-08-31 liuhongt <hongtao.liu@intel.com>
8135 * config/i386/sse.md (vec_unpacku_float_hi_v16si): For vector
8136 compare to integer mask, don't use gen_rtx_LT, use
8137 ix86_expand_mask_vec_cmp instead.
8138 (vec_unpacku_float_hi_v16si): Ditto.
8140 2020-08-31 Jakub Jelinek <jakub@redhat.com>
8142 * tree-cfg.c (verify_gimple_switch): If the first non-default case
8143 label has CASE_HIGH, verify it has the same type as CASE_LOW.
8145 2020-08-31 Feng Xue <fxue@os.amperecomputing.com>
8148 * ipa-cp.c (decide_about_value): Use safe_add to avoid cost addition
8151 2020-08-31 Jakub Jelinek <jakub@redhat.com>
8154 * varasm.c: Include alloc-pool.h.
8155 (output_constant_pool_contents): Emit desc->mark < 0 entries as
8157 (struct constant_descriptor_rtx_data): New type.
8158 (constant_descriptor_rtx_data_cmp): New function.
8159 (struct const_rtx_data_hasher): New type.
8160 (const_rtx_data_hasher::hash, const_rtx_data_hasher::equal): New
8162 (optimize_constant_pool): New function.
8163 (output_shared_constant_pool): Call it if TARGET_SUPPORTS_ALIASES.
8165 2020-08-31 Kewen Lin <linkw@gcc.gnu.org>
8167 * doc/sourcebuild.texi (vect_len_load_store,
8168 vect_partial_vectors_usage_1, vect_partial_vectors_usage_2,
8169 vect_partial_vectors): Document.
8171 2020-08-30 Martin Sebor <msebor@redhat.com>
8173 * builtins.c (access_ref::access_ref): Call get_size_range instead
8176 2020-08-30 Jakub Jelinek <jakub@redhat.com>
8178 * config/i386/sse.md (ssse3_pshufbv8qi): Use gen_int_mode instead of
8179 GEN_INT, and ix86_build_const_vector instead of gen_rtvec and
8180 gen_rtx_CONT_VECTOR.
8182 2020-08-29 Bill Schmidt <wschmidt@linux.ibm.com>
8184 * config/rs6000/rs6000-builtin.def (MASK_FOR_STORE): Remove.
8185 * config/rs6000/rs6000-call.c (rs6000_expand_builtin): Remove
8186 all logic for ALTIVEC_BUILTIN_MASK_FOR_STORE.
8188 2020-08-28 Martin Sebor <msebor@redhat.com>
8190 * attribs.c (init_attr_rdwr_indices): Use global access_mode.
8191 * attribs.h (struct attr_access): Same.
8192 * builtins.c (fold_builtin_strlen): Add argument.
8193 (compute_objsize): Declare.
8194 (get_range): Declare.
8195 (check_read_access): New function.
8196 (access_ref::access_ref): Define ctor.
8197 (warn_string_no_nul): Add arguments. Handle -Wstrintop-overread.
8198 (check_nul_terminated_array): Handle source strings of different
8200 (expand_builtin_strlen): Remove warning code, call check_read_access
8201 instead. Declare locals closer to their initialization.
8202 (expand_builtin_strnlen): Same.
8203 (maybe_warn_for_bound): New function.
8204 (warn_for_access): Remove argument. Handle -Wstrintop-overread.
8205 (inform_access): Change argument type.
8206 (get_size_range): New function.
8207 (check_access): Remove unused arguments. Add new arguments. Handle
8208 -Wstrintop-overread. Move warning code to helpers and call them.
8209 Call check_nul_terminated_array.
8210 (check_memop_access): Remove unnecessary and provide additional
8212 (expand_builtin_memchr): Call check_read_access.
8213 (expand_builtin_strcat): Remove unnecessary and provide additional
8215 (expand_builtin_strcpy): Same.
8216 (expand_builtin_strcpy_args): Same. Avoid testing no-warning bit.
8217 (expand_builtin_stpcpy_1): Remove unnecessary and provide additional
8219 (expand_builtin_stpncpy): Same.
8220 (check_strncat_sizes): Same.
8221 (expand_builtin_strncat): Remove unnecessary and provide additional
8222 arguments in calls. Adjust comments.
8223 (expand_builtin_strncpy): Remove unnecessary and provide additional
8225 (expand_builtin_memcmp): Remove warning code. Call check_access.
8226 (expand_builtin_strcmp): Call check_access instead of
8227 check_nul_terminated_array.
8228 (expand_builtin_strncmp): Handle -Wstrintop-overread.
8229 (expand_builtin_fork_or_exec): Call check_access instead of
8230 check_nul_terminated_array.
8231 (expand_builtin): Same.
8232 (fold_builtin_1): Pass additional argument.
8233 (fold_builtin_n): Same.
8234 (fold_builtin_strpbrk): Remove calls to check_nul_terminated_array.
8235 (expand_builtin_memory_chk): Add comments.
8236 (maybe_emit_chk_warning): Remove unnecessary and provide additional
8238 (maybe_emit_sprintf_chk_warning): Same. Adjust comments.
8239 * builtins.h (warn_string_no_nul): Add arguments.
8240 (struct access_ref): Add member and ctor argument.
8241 (struct access_data): Add members and ctor.
8242 (check_access): Adjust signature.
8243 * calls.c (maybe_warn_nonstring_arg): Return an indication of
8244 whether a warning was issued. Issue -Wstrintop-overread instead
8245 of -Wstringop-overflow.
8246 (append_attrname): Adjust to naming changes.
8247 (maybe_warn_rdwr_sizes): Same. Remove unnecessary and provide
8248 additional arguments in calls.
8249 * calls.h (maybe_warn_nonstring_arg): Return bool.
8250 * doc/invoke.texi (-Wstringop-overread): Document new option.
8251 * gimple-fold.c (gimple_fold_builtin_strcpy): Provide an additional
8253 (gimple_fold_builtin_stpcpy): Same.
8254 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Adjust to naming
8256 * tree.h (enum access_mode): New type.
8258 2020-08-28 Bill Schmidt <wschmidt@linux.ibm.com>
8260 * config/rs6000/rs6000.c (rs6000_call_aix): Remove test for r12.
8261 (rs6000_sibcall_aix): Likewise.
8263 2020-08-28 Andrew Stubbs <ams@codesourcery.com>
8265 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Add "true"
8266 parameter to vec_safe_grow_cleared.
8268 2020-08-28 Martin Sebor <msebor@redhat.com>
8270 * ggc-common.c (gt_pch_save): Add argument to a call.
8272 2020-08-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8275 * config/aarch64/aarch64-sve.md
8276 (cond_sub<mode>_relaxed_const): Updated and renamed from
8277 cond_sub<mode>_any_const pattern.
8278 (cond_sub<mode>_strict_const): New pattern.
8280 2020-08-28 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
8282 * doc/rtl.texi: Fix typo.
8284 2020-08-28 Uros Bizjak <ubizjak@gmail.com>
8287 * config/i386/i386-expand.c (split_double_mode): Also handle
8288 E_P2HImode and E_P2QImode.
8289 * config/i386/sse.md (MASK_DWI): New define_mode_iterator.
8290 (mov<mode>): New expander for P2HI,P2QI.
8291 (*mov<mode>_internal): New define_insn_and_split to split
8292 movement of P2QI/P2HI to 2 movqi/movhi patterns after reload.
8294 2020-08-28 liuhongt <hongtao.liu@intel.com>
8296 * common/config/i386/i386-common.c (ix86_handle_option): Set
8297 AVX512DQ when AVX512VP2INTERSECT exists.
8299 2020-08-27 Jakub Jelinek <jakub@redhat.com>
8302 * config/i386/i386.c (iamcu_alignment): Don't decrease alignment
8303 for TYPE_ATOMIC types.
8304 (ix86_local_alignment): Likewise.
8305 (ix86_minimum_alignment): Likewise.
8306 (x86_field_alignment): Likewise, and emit a -Wpsabi diagnostic
8309 2020-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
8312 * config/rs6000/rs6000.c (rs6000_sibcall_aix): Support
8313 indirect call for ELFv2.
8315 2020-08-27 Richard Biener <rguenther@suse.de>
8317 PR tree-optimization/96522
8318 * tree-ssa-address.c (copy_ref_info): Reset flow-sensitive
8319 info of the copied points-to. Transfer bigger alignment
8320 via the access type.
8321 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8322 Reset all flow-sensitive info.
8324 2020-08-27 Martin Liska <mliska@suse.cz>
8326 * alias.c (init_alias_analysis): Set exact argument of a vector
8327 growth function to true.
8328 * calls.c (internal_arg_pointer_based_exp_scan): Likewise.
8329 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
8330 * cfgexpand.c (expand_asm_stmt): Likewise.
8331 * cfgrtl.c (rtl_create_basic_block): Likewise.
8332 * combine.c (combine_split_insns): Likewise.
8333 (combine_instructions): Likewise.
8334 * config/aarch64/aarch64-sve-builtins.cc (function_expander::add_output_operand): Likewise.
8335 (function_expander::add_input_operand): Likewise.
8336 (function_expander::add_integer_operand): Likewise.
8337 (function_expander::add_address_operand): Likewise.
8338 (function_expander::add_fixed_operand): Likewise.
8339 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
8340 * dwarf2cfi.c (update_row_reg_save): Likewise.
8341 * early-remat.c (early_remat::init_block_info): Likewise.
8342 (early_remat::finalize_candidate_indices): Likewise.
8343 * except.c (sjlj_build_landing_pads): Likewise.
8344 * final.c (compute_alignments): Likewise.
8345 (grow_label_align): Likewise.
8346 * function.c (temp_slots_at_level): Likewise.
8347 * fwprop.c (build_single_def_use_links): Likewise.
8348 (update_uses): Likewise.
8349 * gcc.c (insert_wrapper): Likewise.
8350 * genautomata.c (create_state_ainsn_table): Likewise.
8351 (add_vect): Likewise.
8352 (output_dead_lock_vect): Likewise.
8353 * genmatch.c (capture_info::capture_info): Likewise.
8354 (parser::finish_match_operand): Likewise.
8355 * genrecog.c (optimize_subroutine_group): Likewise.
8356 (merge_pattern_info::merge_pattern_info): Likewise.
8357 (merge_into_decision): Likewise.
8358 (print_subroutine_start): Likewise.
8360 * gimple-loop-versioning.cc (loop_versioning::loop_versioning): Likewise.
8361 * gimple.c (gimple_set_bb): Likewise.
8362 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user): Likewise.
8363 * haifa-sched.c (sched_extend_luids): Likewise.
8364 (extend_h_i_d): Likewise.
8365 * insn-addr.h (insn_addresses_new): Likewise.
8366 * ipa-cp.c (gather_context_independent_values): Likewise.
8367 (find_more_contexts_for_caller_subset): Likewise.
8368 * ipa-devirt.c (final_warning_record::grow_type_warnings): Likewise.
8369 (ipa_odr_read_section): Likewise.
8370 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
8371 (ipa_fn_summary_t::duplicate): Likewise.
8372 (analyze_function_body): Likewise.
8373 (ipa_merge_fn_summary_after_inlining): Likewise.
8374 (read_ipa_call_summary): Likewise.
8375 * ipa-icf.c (sem_function::bb_dict_test): Likewise.
8376 * ipa-prop.c (ipa_alloc_node_params): Likewise.
8377 (parm_bb_aa_status_for_bb): Likewise.
8378 (ipa_compute_jump_functions_for_edge): Likewise.
8379 (ipa_analyze_node): Likewise.
8380 (update_jump_functions_after_inlining): Likewise.
8381 (ipa_read_edge_info): Likewise.
8382 (read_ipcp_transformation_info): Likewise.
8383 (ipcp_transform_function): Likewise.
8384 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
8385 * ipa-split.c (execute_split_functions): Likewise.
8386 * ira.c (find_moveable_pseudos): Likewise.
8387 * lower-subreg.c (decompose_multiword_subregs): Likewise.
8388 * lto-streamer-in.c (input_eh_regions): Likewise.
8389 (input_cfg): Likewise.
8390 (input_struct_function_base): Likewise.
8391 (input_function): Likewise.
8392 * modulo-sched.c (set_node_sched_params): Likewise.
8393 (extend_node_sched_params): Likewise.
8394 (schedule_reg_moves): Likewise.
8395 * omp-general.c (omp_construct_simd_compare): Likewise.
8396 * passes.c (pass_manager::create_pass_tab): Likewise.
8397 (enable_disable_pass): Likewise.
8398 * predict.c (determine_unlikely_bbs): Likewise.
8399 * profile.c (compute_branch_probabilities): Likewise.
8400 * read-rtl-function.c (function_reader::parse_block): Likewise.
8401 * read-rtl.c (rtx_reader::read_rtx_code): Likewise.
8402 * reg-stack.c (stack_regs_mentioned): Likewise.
8403 * regrename.c (regrename_init): Likewise.
8404 * rtlanal.c (T>::add_single_to_queue): Likewise.
8405 * sched-deps.c (init_deps_data_vector): Likewise.
8406 * sel-sched-ir.c (sel_extend_global_bb_info): Likewise.
8407 (extend_region_bb_info): Likewise.
8408 (extend_insn_data): Likewise.
8409 * symtab.c (symtab_node::create_reference): Likewise.
8410 * tracer.c (tail_duplicate): Likewise.
8411 * trans-mem.c (tm_region_init): Likewise.
8412 (get_bb_regions_instrumented): Likewise.
8413 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
8414 (build_gimple_cfg): Likewise.
8415 (create_bb): Likewise.
8416 (move_block_to_fn): Likewise.
8417 * tree-complex.c (tree_lower_complex): Likewise.
8418 * tree-if-conv.c (predicate_rhs_code): Likewise.
8419 * tree-inline.c (copy_bb): Likewise.
8420 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
8421 (mark_phi_for_rewrite): Likewise.
8422 * tree-object-size.c (compute_builtin_object_size): Likewise.
8423 (init_object_sizes): Likewise.
8424 * tree-predcom.c (initialize_root_vars_store_elim_1): Likewise.
8425 (initialize_root_vars_store_elim_2): Likewise.
8426 (prepare_initializers_chain_store_elim): Likewise.
8427 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
8428 (multiplier_allowed_in_address_p): Likewise.
8429 * tree-ssa-coalesce.c (ssa_conflicts_new): Likewise.
8430 * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
8431 * tree-ssa-loop-ivopts.c (addr_offset_valid_p): Likewise.
8432 (get_address_cost_ainc): Likewise.
8433 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Likewise.
8434 * tree-ssa-pre.c (add_to_value): Likewise.
8435 (phi_translate_1): Likewise.
8436 (do_pre_regular_insertion): Likewise.
8437 (do_pre_partial_partial_insertion): Likewise.
8438 (init_pre): Likewise.
8439 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
8440 (update_call_from_tree): Likewise.
8441 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Likewise.
8442 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
8443 (vn_reference_lookup_pieces): Likewise.
8444 (eliminate_dom_walker::eliminate_push_avail): Likewise.
8445 * tree-ssa-strlen.c (set_strinfo): Likewise.
8446 (get_stridx_plus_constant): Likewise.
8447 (zero_length_string): Likewise.
8448 (find_equal_ptrs): Likewise.
8449 (printf_strlen_execute): Likewise.
8450 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
8451 * tree-ssanames.c (make_ssa_name_fn): Likewise.
8452 * tree-streamer-in.c (streamer_read_tree_bitfields): Likewise.
8453 * tree-vect-loop.c (vect_record_loop_mask): Likewise.
8454 (vect_get_loop_mask): Likewise.
8455 (vect_record_loop_len): Likewise.
8456 (vect_get_loop_len): Likewise.
8457 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
8458 * tree-vect-slp.c (vect_slp_convert_to_external): Likewise.
8459 (vect_bb_slp_scalar_cost): Likewise.
8460 (vect_bb_vectorization_profitable_p): Likewise.
8461 (vectorizable_slp_permutation): Likewise.
8462 * tree-vect-stmts.c (vectorizable_call): Likewise.
8463 (vectorizable_simd_clone_call): Likewise.
8464 (scan_store_can_perm_p): Likewise.
8465 (vectorizable_store): Likewise.
8467 * vec.c (test_safe_grow_cleared): Likewise.
8468 * vec.h (vec_safe_grow): Likewise.
8469 (vec_safe_grow_cleared): Likewise.
8470 (vl_ptr>::safe_grow): Likewise.
8471 (vl_ptr>::safe_grow_cleared): Likewise.
8472 * config/c6x/c6x.c (insn_set_clock): Likewise.
8474 2020-08-27 Richard Biener <rguenther@suse.de>
8476 * tree-pretty-print.c (dump_mem_ref): Handle TARGET_MEM_REFs.
8477 (dump_generic_node): Use dump_mem_ref also for TARGET_MEM_REF.
8479 2020-08-27 Alex Coplan <alex.coplan@arm.com>
8481 * lra-constraints.c (canonicalize_reload_addr): New.
8482 (curr_insn_transform): Use canonicalize_reload_addr to ensure we
8483 generate canonical RTL for an address reload.
8485 2020-08-27 Zhiheng Xie <xiezhiheng@huawei.com>
8487 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
8488 for rounding intrinsics.
8490 2020-08-27 Zhiheng Xie <xiezhiheng@huawei.com>
8492 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
8493 for min/max intrinsics.
8495 2020-08-27 Richard Biener <rguenther@suse.de>
8497 PR tree-optimization/96579
8498 * tree-ssa-reassoc.c (linearize_expr_tree): If we expand
8499 rhs via special ops make sure to swap operands.
8501 2020-08-27 Richard Biener <rguenther@suse.de>
8503 PR tree-optimization/96565
8504 * tree-ssa-dse.c (dse_classify_store): Remove defs with
8505 no uses from further processing.
8507 2020-08-26 Göran Uddeborg <goeran@uddeborg.se>
8509 PR gcov-profile/96285
8510 * common.opt, doc/invoke.texi: Clarify wording of
8511 -fprofile-exclude-files and adjust -fprofile-filter-files to
8514 2020-08-26 H.J. Lu <hjl.tools@gmail.com>
8517 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
8518 Reject target("no-general-regs-only").
8520 2020-08-26 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8522 * config/msp430/constraints.md (K): Change unused constraint to
8523 constraint to a const_int between 1 and 19.
8524 (P): New constraint.
8525 * config/msp430/msp430-protos.h (msp430x_logical_shift_right): Remove.
8526 (msp430_expand_shift): New.
8527 (msp430_output_asm_shift_insns): New.
8528 * config/msp430/msp430.c (msp430_rtx_costs): Remove shift costs.
8530 (msp430_expand_helper): Remove hard-coded generation of some inline
8532 (use_helper_for_const_shift): New.
8533 (msp430_expand_shift): New.
8534 (msp430_output_asm_shift_insns): New.
8535 (msp430_print_operand): Add new 'W' operand selector.
8536 (msp430x_logical_shift_right): Remove.
8537 * config/msp430/msp430.md (HPSI): New define_mode_iterator.
8539 (any_shift): New define_code_iterator.
8540 (shift_insn): New define_code_attr.
8541 Adjust unnamed insn patterns searched for by combine.
8544 (430x_shift_left): Remove.
8551 (430x_arithmetic_shift_right): Remove.
8560 (430x_logical_shift_right): Remove.
8566 (<shift_insn><mode>3): New define_expand.
8567 (<shift_insn>hi3_430): New define_insn.
8568 (<shift_insn>si3_const): Likewise.
8569 (ashl<mode>3_430x): Likewise.
8570 (ashr<mode>3_430x): Likewise.
8571 (lshr<mode>3_430x): Likewise.
8572 (*bitbranch<mode>4_z): Replace renamed predicate msp430_bitpos with
8573 const_0_to_15_operand.
8574 * config/msp430/msp430.opt: New option -mmax-inline-shift=.
8575 * config/msp430/predicates.md (const_1_to_8_operand): New predicate.
8576 (const_0_to_15_operand): Rename msp430_bitpos predicate.
8577 (const_1_to_19_operand): New predicate.
8578 * doc/invoke.texi: Document -mmax-inline-shift=.
8580 2020-08-26 Aldy Hernandez <aldyh@redhat.com>
8582 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Abstract code out to...
8583 * tree-vrp.c (find_case_label_range): ...here. Rewrite for to use irange
8585 (simplify_stmt_for_jump_threading): Call find_case_label_range instead of
8586 duplicating the code in simplify_stmt_for_jump_threading.
8587 * tree-vrp.h (find_case_label_range): New prototype.
8589 2020-08-26 Richard Biener <rguenther@suse.de>
8591 PR tree-optimization/96698
8592 * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): New.
8593 (loop_vec_info::reduc_latch_slp_defs): Likewise.
8594 * tree-vect-stmts.c (vect_transform_stmt): Only record
8595 stmts to update PHI latches from, perform the update ...
8596 * tree-vect-loop.c (vect_transform_loop): ... here after
8597 vectorizing those PHIs.
8598 (info_for_reduction): Properly handle non-reduction PHIs.
8600 2020-08-26 Martin Liska <mliska@suse.cz>
8602 * cgraphunit.c (process_symver_attribute): Match only symver
8605 2020-08-26 Richard Biener <rguenther@suse.de>
8607 PR tree-optimization/96783
8608 * tree-vect-stmts.c (get_group_load_store_type): Use
8609 VMAT_ELEMENTWISE for negative strides when we cannot
8610 use VMAT_STRIDED_SLP.
8612 2020-08-26 Martin Liska <mliska@suse.cz>
8614 * doc/invoke.texi: Document how are pie and pic options merged.
8616 2020-08-26 Zhiheng Xie <xiezhiheng@huawei.com>
8618 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
8619 for add/sub arithmetic intrinsics.
8621 2020-08-26 Jakub Jelinek <jakub@redhat.com>
8624 * dwarf2out.c (dwarf2out_next_real_insn): Adjust function comment.
8625 (dwarf2out_var_location): Look for next_note only if next_real is
8626 non-NULL, in that case look for the first non-deleted
8627 NOTE_INSN_VAR_LOCATION between loc_note and next_real, if any.
8629 2020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
8631 * config/tilepro/gen-mul-tables.cc (main): Define IN_TARGET_CODE to 1
8634 2020-08-26 Martin Liska <mliska@suse.cz>
8636 * cgraphunit.c (process_symver_attribute): Allow multiple
8637 symver attributes for one symbol.
8638 * doc/extend.texi: Document the change.
8640 2020-08-25 H.J. Lu <hjl.tools@gmail.com>
8643 * config/i386/i386.h (CTZ_DEFINED_VALUE_AT_ZERO): Return 0/2.
8644 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
8646 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
8649 * config/pa/pa.c (hppa_rtx_costs_shadd_p): New helper function
8650 to check for coefficients supported by shNadd and shladd,l.
8651 (hppa_rtx_costs): Rewrite to avoid using estimates based upon
8652 FACTOR and enable recursing deeper into RTL expressions.
8654 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
8656 * config/pa/pa.md (ashldi3): Additionally, on !TARGET_64BIT
8657 generate a two instruction shd/zdep sequence when shifting
8658 registers by suitable constants.
8659 (shd_internal): New define_expand to provide gen_shd_internal.
8661 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
8663 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Rename
8664 __ARM_FEATURE_SVE_VECTOR_OPERATIONS to
8665 __ARM_FEATURE_SVE_VECTOR_OPERATORS.
8667 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
8669 * config/aarch64/aarch64-sve-builtins.cc (add_sve_type_attribute):
8670 Take the ACLE name of the type as a parameter and add it as fourth
8671 argument to the "SVE type" attribute.
8672 (register_builtin_types): Update call accordingly.
8673 (register_tuple_type): Likewise. Construct the name of the type
8674 earlier in order to do this.
8675 (get_arm_sve_vector_bits_attributes): New function.
8676 (handle_arm_sve_vector_bits_attribute): Report a more sensible
8677 error message if the attribute is applied to an SVE tuple type.
8678 Don't allow the attribute to be applied to an existing fixed-length
8679 SVE type. Mangle the new type as __SVE_VLS<type, vector-bits>.
8680 Add a dummy TYPE_DECL to the new type.
8682 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
8684 * config/aarch64/aarch64-sve-builtins.cc (DEF_SVE_TYPE): Add a
8685 leading "u" to each mangled name.
8687 2020-08-25 Richard Biener <rguenther@suse.de>
8689 PR tree-optimization/96548
8690 PR tree-optimization/96760
8691 * tree-ssa-loop-im.c (tree_ssa_lim): Recompute RPO after
8694 2020-08-25 Jakub Jelinek <jakub@redhat.com>
8696 PR tree-optimization/96722
8697 * gimple.c (infer_nonnull_range): Formatting fix.
8698 (infer_nonnull_range_by_dereference): Return false for clobber stmts.
8700 2020-08-25 Jakub Jelinek <jakub@redhat.com>
8702 PR tree-optimization/96758
8703 * tree-ssa-strlen.c (handle_builtin_string_cmp): If both cstlen1
8704 and cstlen2 are set, set cmpsiz to their minimum, otherwise use the
8705 one that is set. If bound is used and smaller than cmpsiz, set cmpsiz
8706 to bound. If both cstlen1 and cstlen2 are set, perform the optimization.
8708 2020-08-25 Martin Jambor <mjambor@suse.cz>
8710 PR tree-optimization/96730
8711 * tree-sra.c (create_access): Disqualify any aggregate with negative
8713 (build_ref_for_model): Add assert that offset is non-negative.
8715 2020-08-25 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
8717 * rtl.def: Fix typo in comment.
8719 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
8721 PR tree-optimization/21137
8722 * fold-const.c (fold_binary_loc) [NE_EXPR/EQ_EXPR]: Call
8723 STRIP_NOPS when checking whether to simplify ((x>>C1)&C2) != 0.
8725 2020-08-25 Andrew Pinski <apinski@marvell.com>
8728 * config/mips/mips.md (builtin_longjmp): Restore the frame
8729 pointer and stack pointer and gp.
8731 2020-08-25 Richard Biener <rguenther@suse.de>
8734 * dwarf2out.c (reference_to_unused): Make FUNCTION_DECL
8735 processing more consistent with respect to
8736 symtab->global_info_ready.
8737 (tree_add_const_value_attribute): Unconditionally call
8738 rtl_for_decl_init to do all mangling early but throw
8739 away the result if early_dwarf.
8741 2020-08-25 Hongtao Liu <hongtao.liu@intel.com>
8744 * config/i386/sse.md: Correct the mode of NOT operands to
8747 2020-08-25 Jakub Jelinek <jakub@redhat.com>
8749 PR tree-optimization/96715
8750 * match.pd (copysign(x,-x) -> -x): New simplification.
8752 2020-08-25 Jakub Jelinek <jakub@redhat.com>
8755 * fold-const.c (native_interpret_real): For MODE_COMPOSITE_P modes
8756 punt if the to be returned REAL_CST does not encode to the bitwise
8757 same representation.
8759 2020-08-24 Gerald Pfeifer <gerald@pfeifer.com>
8761 * doc/install.texi (Configuration): Switch valgrind.com to https.
8763 2020-08-24 Christophe Lyon <christophe.lyon@linaro.org>
8767 * config/arm/thumb1.md: Disable set-constant splitter when
8769 (thumb1_movsi_insn): Fix -mpure-code
8772 2020-08-24 Martin Liska <mliska@suse.cz>
8774 * tree-vect-data-refs.c (dr_group_sort_cmp): Work on
8776 (vect_analyze_data_ref_accesses): Work on groups.
8777 (vect_find_stmt_data_reference): Add group_id argument and fill
8778 up dataref_groups vector.
8779 * tree-vect-loop.c (vect_get_datarefs_in_loop): Pass new
8781 (vect_analyze_loop_2): Likewise.
8782 * tree-vect-slp.c (vect_slp_analyze_bb_1): Pass argument.
8783 (vect_slp_bb_region): Likewise.
8784 (vect_slp_region): Likewise.
8785 (vect_slp_bb):Work on the entire BB.
8786 * tree-vectorizer.h (vect_analyze_data_ref_accesses): Add new
8788 (vect_find_stmt_data_reference): Likewise.
8790 2020-08-24 Martin Liska <mliska@suse.cz>
8792 PR tree-optimization/96597
8793 * tree-ssa-sccvn.c (vn_reference_lookup_call): Add missing
8794 initialization of ::punned.
8795 (vn_reference_insert): Use consistently false instead of 0.
8796 (vn_reference_insert_pieces): Likewise.
8798 2020-08-24 Hans-Peter Nilsson <hp@axis.com>
8801 * reorg.c (fill_slots_from_thread): Allow trial insns that clobber
8802 TARGET_FLAGS_REGNUM as delay-slot fillers.
8804 2020-08-23 H.J. Lu <hjl.tools@gmail.com>
8807 * config/i386/i386-options.c (IX86_ATTR_IX86_YES): New.
8808 (IX86_ATTR_IX86_NO): Likewise.
8809 (ix86_opt_type): Add ix86_opt_ix86_yes and ix86_opt_ix86_no.
8810 (ix86_valid_target_attribute_inner_p): Handle general-regs-only,
8811 ix86_opt_ix86_yes and ix86_opt_ix86_no.
8812 (ix86_option_override_internal): Check opts->x_ix86_target_flags
8813 instead of opts->x_ix86_target_flags.
8814 * doc/extend.texi: Document target("general-regs-only") function
8817 2020-08-21 Richard Sandiford <richard.sandiford@arm.com>
8819 * doc/extend.texi: Update links to Arm docs.
8820 * doc/invoke.texi: Likewise.
8822 2020-08-21 Hongtao Liu <hongtao.liu@intel.com>
8825 * config/i386/i386-expand.c
8826 (ix86_expand_vec_shift_qihi_constant): Refine.
8828 2020-08-21 Alex Coplan <alex.coplan@arm.com>
8831 * gcc.c (set_static_spec): New.
8832 (set_static_spec_owned): New.
8833 (set_static_spec_shared): New.
8834 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Use
8835 set_static_spec_owned() to take ownership of lto_wrapper_file
8836 such that it gets freed in driver::finalize.
8837 (driver::maybe_run_linker): Use set_static_spec_shared() to
8838 ensure that we don't try and free() the static string "ld",
8839 also ensuring that any previously-allocated string in
8840 linker_name_spec is freed. Likewise with argv0.
8841 (driver::finalize): Use set_static_spec_shared() when resetting
8842 specs that previously had allocated strings; remove if(0)
8843 around call to free().
8845 2020-08-21 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
8847 * emit-rtl.c (try_split): Call copy_frame_info_to_split_insn
8848 to split certain RTX_FRAME_RELATED_P insns.
8849 * recog.c (copy_frame_info_to_split_insn): New function.
8850 (peep2_attempt): Split copying of frame related info of
8851 RTX_FRAME_RELATED_P insns into above function and call it.
8852 * recog.h (copy_frame_info_to_split_insn): Declare it.
8854 2020-08-21 liuhongt <hongtao.liu@intel.com>
8857 * config/i386/i386.c (ix86_preferred_reload_class): Allow
8858 QImode data go into mask registers.
8859 * config/i386/i386.md: (*movhi_internal): Adjust constraints
8861 (*movqi_internal): Ditto.
8862 (*anddi_1): Support mask register operations
8863 (*and<mode>_1): Ditto.
8865 (*andn<mode>_1): Ditto.
8866 (*<code><mode>_1): Ditto.
8867 (*<code>qi_1): Ditto.
8868 (*one_cmpl<mode>2_1): Ditto.
8869 (*one_cmplsi2_1_zext): Ditto.
8870 (*one_cmplqi2_1): Ditto.
8871 (define_peephole2): Move constant 0/-1 directly into mask
8873 * config/i386/predicates.md (mask_reg_operand): New predicate.
8874 * config/i386/sse.md (define_split): Add post-reload splitters
8875 that would convert "generic" patterns to mask patterns.
8876 (*knotsi_1_zext): New define_insn.
8878 2020-08-21 liuhongt <hongtao.liu@intel.com>
8880 * config/i386/x86-tune-costs.h (skylake_cost): Adjust cost
8883 2020-08-21 liuhongt <hongtao.liu@intel.com>
8885 * config/i386/i386.c (inline_secondary_memory_needed):
8886 No memory is needed between mask regs and gpr.
8887 (ix86_hard_regno_mode_ok): Add condition TARGET_AVX512F for
8889 * config/i386/i386.h (enum reg_class): Add INT_MASK_REGS.
8890 (REG_CLASS_NAMES): Ditto.
8891 (REG_CLASS_CONTENTS): Ditto.
8892 * config/i386/i386.md: Exclude mask register in
8893 define_peephole2 which is avaiable only for gpr.
8895 2020-08-21 H.J. Lu <hjl.tools@gmail.com>
8898 * config/i386/i386.h (struct processor_costs): Add member
8899 mask_to_integer, integer_to_mask, mask_load[3], mask_store[3],
8901 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
8902 i386_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
8903 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
8904 bdver_cost, znver1_cost, znver2_cost, skylake_cost,
8905 btver1_cost, btver2_cost, pentium4_cost, nocona_cost,
8906 atom_cost, slm_cost, intel_cost, generic_cost, core_cost):
8907 Initialize mask_load[3], mask_store[3], mask_move,
8908 integer_to_mask, mask_to_integer for all target costs.
8909 * config/i386/i386.c (ix86_register_move_cost): Using cost
8910 model of mask registers.
8911 (inline_memory_move_cost): Ditto.
8912 (ix86_register_move_cost): Ditto.
8914 2020-08-20 Iain Buclaw <ibuclaw@gdcproject.org>
8916 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Don't include
8917 VxWorks header files if -fself-test is used.
8918 (STARTFILE_PREFIX_SPEC): Avoid using VSB_DIR if -fself-test is used.
8920 2020-08-20 Joe Ramsay <Joe.Ramsay@arm.com>
8923 * config/arm/mve.md (mve_vst1q_f<mode>): Require MVE memory operand for
8925 (mve_vst1q_<supf><mode>): Likewise.
8927 2020-08-19 2020-08-19 Carl Love <cel@us.ibm.com>
8929 * config/rs6000/rs6000-builtin.def (BU_P10V_0, BU_P10V_1,
8930 BU_P10V_2, BU_P10V_3): Rename BU_P10V_VSX_0, BU_P10V_VSX_1,
8931 BU_P10V_VSX_2, BU_P10V_VSX_3 respectively.
8932 (BU_P10V_4): Remove.
8933 (BU_P10V_AV_0, BU_P10V_AV_1, BU_P10V_AV_2, BU_P10V_AV_3, BU_P10V_AV_4):
8934 New definitions for Power 10 Altivec macros.
8935 (VSTRIBR, VSTRIHR, VSTRIBL, VSTRIHL, VSTRIBR_P, VSTRIHR_P,
8936 VSTRIBL_P, VSTRIHL_P, MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM,
8937 VEXPANDMB, VEXPANDMH, VEXPANDMW, VEXPANDMD, VEXPANDMQ, VEXTRACTMB,
8938 VEXTRACTMH, VEXTRACTMW, VEXTRACTMD, VEXTRACTMQ): Replace macro
8939 expansion BU_P10V_1 with BU_P10V_AV_1.
8940 (VCLRLB, VCLRRB, VCFUGED, VCLZDM, VCTZDM, VPDEPD, VPEXTD, VGNB,
8941 VCNTMBB, VCNTMBH, VCNTMBW, VCNTMBD): Replace macro expansion
8942 BU_P10V_2 with BU_P10V_AV_2.
8943 (VEXTRACTBL, VEXTRACTHL, VEXTRACTWL, VEXTRACTDL, VEXTRACTBR, VEXTRACTHR,
8944 VEXTRACTWR, VEXTRACTDR, VINSERTGPRBL, VINSERTGPRHL, VINSERTGPRWL,
8945 VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL, VINSERTGPRBR,
8946 VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR, VINSERTVPRHR,
8947 VINSERTVPRWR, VREPLACE_ELT_V4SI, VREPLACE_ELT_UV4SI, VREPLACE_ELT_V2DF,
8948 VREPLACE_ELT_V4SF, VREPLACE_ELT_V2DI, VREPLACE_ELT_UV2DI, VREPLACE_UN_V4SI,
8949 VREPLACE_UN_UV4SI, VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
8950 VREPLACE_UN_V2DF, VSLDB_V16QI, VSLDB_V8HI, VSLDB_V4SI, VSLDB_V2DI,
8951 VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI, VSRDB_V2DI): Replace macro expansion
8952 BU_P10V_3 with BU_P10V_AV_3.
8953 (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF, VXXSPLTID): Replace macro expansion
8954 BU_P10V_1 with BU_P10V_AV_1.
8955 (XXGENPCVM_V16QI, XXGENPCVM_V8HI, XXGENPCVM_V4SI, XXGENPCVM_V2DI):
8956 Replace macro expansion BU_P10V_2 with BU_P10V_VSX_2.
8957 (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF, VXXBLEND_V16QI, VXXBLEND_V8HI,
8958 VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): Replace macor
8959 expansion BU_P10V_3 with BU_P10V_VSX_3.
8960 (XXEVAL, VXXPERMX): Replace macro expansion BU_P10V_4 with BU_P10V_VSX_4.
8961 (XVCVBF16SP, XVCVSPBF16): Replace macro expansion BU_VSX_1 with
8962 BU_P10V_VSX_1. Also change MISC to CONST.
8963 * config/rs6000/rs6000-c.c: (P10_BUILTIN_VXXPERMX): Replace with
8964 P10V_BUILTIN_VXXPERMX.
8965 (P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRRB,
8966 P10_BUILTIN_VGNB, P10_BUILTIN_XXEVAL, P10_BUILTIN_VXXPERMX,
8967 P10_BUILTIN_VEXTRACTBL, P10_BUILTIN_VEXTRACTHL, P10_BUILTIN_VEXTRACTWL,
8968 P10_BUILTIN_VEXTRACTDL, P10_BUILTIN_VINSERTGPRHL,
8969 P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
8970 P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
8971 P10_BUILTIN_VEXTRACTBR, P10_BUILTIN_VEXTRACTHR,
8972 P10_BUILTIN_VEXTRACTWR, P10_BUILTIN_VEXTRACTDR,
8973 P10_BUILTIN_VINSERTGPRBR, P10_BUILTIN_VINSERTGPRHR,
8974 P10_BUILTIN_VINSERTGPRWR, P10_BUILTIN_VINSERTGPRDR,
8975 P10_BUILTIN_VINSERTVPRBR, P10_BUILTIN_VINSERTVPRHR,
8976 P10_BUILTIN_VINSERTVPRWR, P10_BUILTIN_VREPLACE_ELT_UV4SI,
8977 P10_BUILTIN_VREPLACE_ELT_V4SI, P10_BUILTIN_VREPLACE_ELT_UV2DI,
8978 P10_BUILTIN_VREPLACE_ELT_V2DI, P10_BUILTIN_VREPLACE_ELT_V2DF,
8979 P10_BUILTIN_VREPLACE_UN_UV4SI, P10_BUILTIN_VREPLACE_UN_V4SI,
8980 P10_BUILTIN_VREPLACE_UN_V4SF, P10_BUILTIN_VREPLACE_UN_UV2DI,
8981 P10_BUILTIN_VREPLACE_UN_V2DI, P10_BUILTIN_VREPLACE_UN_V2DF,
8982 P10_BUILTIN_VSLDB_V16QI, P10_BUILTIN_VSLDB_V16QI,
8983 P10_BUILTIN_VSLDB_V8HI, P10_BUILTIN_VSLDB_V4SI,
8984 P10_BUILTIN_VSLDB_V2DI, P10_BUILTIN_VXXSPLTIW_V4SI,
8985 P10_BUILTIN_VXXSPLTIW_V4SF, P10_BUILTIN_VXXSPLTID,
8986 P10_BUILTIN_VXXSPLTI32DX_V4SI, P10_BUILTIN_VXXSPLTI32DX_V4SF,
8987 P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
8988 P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI,
8989 P10_BUILTIN_VXXBLEND_V4SF, P10_BUILTIN_VXXBLEND_V2DF,
8990 P10_BUILTIN_VSRDB_V16QI, P10_BUILTIN_VSRDB_V8HI,
8991 P10_BUILTIN_VSRDB_V4SI, P10_BUILTIN_VSRDB_V2DI,
8992 P10_BUILTIN_VSTRIBL, P10_BUILTIN_VSTRIHL,
8993 P10_BUILTIN_VSTRIBL_P, P10_BUILTIN_VSTRIHL_P,
8994 P10_BUILTIN_VSTRIBR, P10_BUILTIN_VSTRIHR,
8995 P10_BUILTIN_VSTRIBR_P, P10_BUILTIN_VSTRIHR_P,
8996 P10_BUILTIN_MTVSRBM, P10_BUILTIN_MTVSRHM,
8997 P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
8998 P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB,
8999 P10_BUILTIN_VCNTMBH, P10_BUILTIN_VCNTMBW,
9000 P10_BUILTIN_VCNTMBD, P10_BUILTIN_VEXPANDMB,
9001 P10_BUILTIN_VEXPANDMH, P10_BUILTIN_VEXPANDMW,
9002 P10_BUILTIN_VEXPANDMD, P10_BUILTIN_VEXPANDMQ,
9003 P10_BUILTIN_VEXTRACTMB, P10_BUILTIN_VEXTRACTMH,
9004 P10_BUILTIN_VEXTRACTMW, P10_BUILTIN_VEXTRACTMD,
9005 P10_BUILTIN_VEXTRACTMQ, P10_BUILTIN_XVTLSBB_ZEROS,
9006 P10_BUILTIN_XVTLSBB_ONES): Replace with
9007 P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRRB,
9008 P10V_BUILTIN_VGNB, P10V_BUILTIN_XXEVAL, P10V_BUILTIN_VXXPERMX,
9009 P10V_BUILTIN_VEXTRACTBL, P10V_BUILTIN_VEXTRACTHL, P10V_BUILTIN_VEXTRACTWL,
9010 P10V_BUILTIN_VEXTRACTDL, P10V_BUILTIN_VINSERTGPRHL,
9011 P10V_BUILTIN_VINSERTGPRWL, P10V_BUILTIN_VINSERTGPRDL,
9012 P10V_BUILTIN_VINSERTVPRBL,P10V_BUILTIN_VINSERTVPRHL,
9013 P10V_BUILTIN_VEXTRACTBR, P10V_BUILTIN_VEXTRACTHR
9014 P10V_BUILTIN_VEXTRACTWR, P10V_BUILTIN_VEXTRACTDR,
9015 P10V_BUILTIN_VINSERTGPRBR, P10V_BUILTIN_VINSERTGPRHR,
9016 P10V_BUILTIN_VINSERTGPRWR, P10V_BUILTIN_VINSERTGPRDR,
9017 P10V_BUILTIN_VINSERTVPRBR, P10V_BUILTIN_VINSERTVPRHR,
9018 P10V_BUILTIN_VINSERTVPRWR, P10V_BUILTIN_VREPLACE_ELT_UV4SI,
9019 P10V_BUILTIN_VREPLACE_ELT_V4SI, P10V_BUILTIN_VREPLACE_ELT_UV2DI,
9020 P10V_BUILTIN_VREPLACE_ELT_V2DI, P10V_BUILTIN_VREPLACE_ELT_V2DF,
9021 P10V_BUILTIN_VREPLACE_UN_UV4SI, P10V_BUILTIN_VREPLACE_UN_V4SI,
9022 P10V_BUILTIN_VREPLACE_UN_V4SF, P10V_BUILTIN_VREPLACE_UN_UV2DI,
9023 P10V_BUILTIN_VREPLACE_UN_V2DI, P10V_BUILTIN_VREPLACE_UN_V2DF,
9024 P10V_BUILTIN_VSLDB_V16QI, P10V_BUILTIN_VSLDB_V16QI,
9025 P10V_BUILTIN_VSLDB_V8HI, P10V_BUILTIN_VSLDB_V4SI,
9026 P10V_BUILTIN_VSLDB_V2DI, P10V_BUILTIN_VXXSPLTIW_V4SI,
9027 P10V_BUILTIN_VXXSPLTIW_V4SF, P10V_BUILTIN_VXXSPLTID,
9028 P10V_BUILTIN_VXXSPLTI32DX_V4SI, P10V_BUILTIN_VXXSPLTI32DX_V4SF,
9029 P10V_BUILTIN_VXXBLEND_V16QI, P10V_BUILTIN_VXXBLEND_V8HI,
9030 P10V_BUILTIN_VXXBLEND_V4SI, P10V_BUILTIN_VXXBLEND_V2DI,
9031 P10V_BUILTIN_VXXBLEND_V4SF, P10V_BUILTIN_VXXBLEND_V2DF,
9032 P10V_BUILTIN_VSRDB_V16QI, P10V_BUILTIN_VSRDB_V8HI,
9033 P10V_BUILTIN_VSRDB_V4SI, P10V_BUILTIN_VSRDB_V2DI,
9034 P10V_BUILTIN_VSTRIBL, P10V_BUILTIN_VSTRIHL,
9035 P10V_BUILTIN_VSTRIBL_P, P10V_BUILTIN_VSTRIHL_P,
9036 P10V_BUILTIN_VSTRIBR, P10V_BUILTIN_VSTRIHR,
9037 P10V_BUILTIN_VSTRIBR_P, P10V_BUILTIN_VSTRIHR_P,
9038 P10V_BUILTIN_MTVSRBM, P10V_BUILTIN_MTVSRHM,
9039 P10V_BUILTIN_MTVSRWM, P10V_BUILTIN_MTVSRDM,
9040 P10V_BUILTIN_MTVSRQM, P10V_BUILTIN_VCNTMBB,
9041 P10V_BUILTIN_VCNTMBH, P10V_BUILTIN_VCNTMBW,
9042 P10V_BUILTIN_VCNTMBD, P10V_BUILTIN_VEXPANDMB,
9043 P10V_BUILTIN_VEXPANDMH, P10V_BUILTIN_VEXPANDMW,
9044 P10V_BUILTIN_VEXPANDMD, P10V_BUILTIN_VEXPANDMQ,
9045 P10V_BUILTIN_VEXTRACTMB, P10V_BUILTIN_VEXTRACTMH,
9046 P10V_BUILTIN_VEXTRACTMW, P10V_BUILTIN_VEXTRACTMD,
9047 P10V_BUILTIN_VEXTRACTMQ, P10V_BUILTIN_XVTLSBB_ZEROS,
9048 P10V_BUILTIN_XVTLSBB_ONES respectively.
9049 * config/rs6000/rs6000-call.c: Ditto above, change P10_BUILTIN_name to
9051 (P10_BUILTIN_XVCVSPBF16, P10_BUILTIN_XVCVBF16SP): Change to
9052 P10V_BUILTIN_XVCVSPBF16, P10V_BUILTIN_XVCVBF16SP respectively.
9054 2020-08-19 Bill Schmidt <wschmidt@linux.ibm.com>
9056 * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
9057 Sibcalls are always legal when the caller doesn't preserve r2.
9059 2020-08-19 Uroš Bizjak <ubizjak@gmail.com>
9061 * config/i386/i386-expand.c (ix86_expand_builtin)
9062 [case IX86_BUILTIN_ENQCMD, case IX86_BUILTIN_ENQCMDS]:
9063 Rewrite expansion to use code_for_enqcmd.
9064 [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]:
9065 Rewrite expansion to use code_for_wrss.
9066 [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
9067 Rewrite expansion to use code_for_wrss.
9069 2020-08-19 Feng Xue <fxue@os.amperecomputing.com>
9071 PR tree-optimization/94234
9072 * match.pd ((PTR_A + OFF) - (PTR_B + OFF)) -> (PTR_A - PTR_B): New
9075 2020-08-19 H.J. Lu <hjl.tools@gmail.com>
9077 * common/config/i386/cpuinfo.h (get_intel_cpu): Detect Rocket
9078 Lake and Alder Lake.
9080 2020-08-19 Peixin Qiao <qiaopeixin@huawei.com>
9082 * config/aarch64/aarch64.c (aarch64_init_cumulative_args): Remove
9083 "fndecl && TREE_PUBLIC (fndecl)" check since it prevents the funtion
9084 type check when calling via a function pointer or when calling a static
9087 2020-08-19 Kewen Lin <linkw@linux.ibm.com>
9089 * opts-global.c (decode_options): Call target_option_override_hook
9090 before it prints for --help=*.
9092 2020-08-18 Peter Bergner <bergner@linux.ibm.com>
9094 * config/rs6000/rs6000-builtin.def (BU_VSX_1): Rename xvcvbf16sp to
9096 * config/rs6000/rs6000-call.c (builtin_function_type): Likewise.
9097 * config/rs6000/vsx.md: Likewise.
9098 * doc/extend.texi: Likewise.
9100 2020-08-18 Aaron Sawdey <acsawdey@linux.ibm.com>
9102 * config/rs6000/rs6000-string.c (gen_lxvl_stxvl_move):
9104 (expand_block_move): Add lxvl/stxvl, vector pair, and
9106 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9107 Default value for -mblock-ops-vector-pair.
9108 * config/rs6000/rs6000.opt: Add -mblock-ops-vector-pair.
9110 2020-08-18 Aldy Hernandez <aldyh@redhat.com>
9112 * vr-values.c (check_for_binary_op_overflow): Change type of store
9114 (vr_values::adjust_range_with_scev): Abstract most of the code...
9115 (range_of_var_in_loop): ...here. Remove value_range_equiv uses.
9116 (simplify_using_ranges::simplify_using_ranges): Change type of store
9118 * vr-values.h (class range_query): New.
9119 (class simplify_using_ranges): Use range_query.
9120 (class vr_values): Add OVERRIDE to get_value_range.
9121 (range_of_var_in_loop): New.
9123 2020-08-18 Martin Sebor <msebor@redhat.com>
9127 * expr.c (convert_to_bytes): Replace statically allocated buffer with
9128 a dynamically allocated one of sufficient size.
9130 2020-08-18 Martin Sebor <msebor@redhat.com>
9132 PR tree-optimization/96670
9134 * gimple-fold.c (gimple_fold_builtin_memchr): Call byte_representation
9135 to get it, not string_constant.
9137 2020-08-18 Hu Jiangping <hujiangping@cn.fujitsu.com>
9139 * doc/gimple.texi (gimple_debug_begin_stmt_p): Add return type.
9140 (gimple_debug_inline_entry_p, gimple_debug_nonbind_marker_p): Likewise.
9142 2020-08-18 Martin Sebor <msebor@redhat.com>
9144 * fold-const.c (native_encode_expr): Update comment.
9146 2020-08-18 Uroš Bizjak <ubizjak@gmail.com>
9149 * config/i386/i386.md (restore_stack_nonlocal): Add missing compare
9150 RTX. Rewrite expander to use high-level functions in RTL construction.
9152 2020-08-18 liuhongt <hongtao.liu@intel.com>
9156 * config/i386/i386-expand.c (ix86_expand_pinsr): Don't use
9158 (ix86_expand_pextr): Don't use pextr for TImode.
9160 2020-08-17 Uroš Bizjak <ubizjak@gmail.com>
9162 * config/i386/i386-builtin.def (__builtin_ia32_bextri_u32)
9163 (__builtin_ia32_bextri_u64): Use CODE_FOR_nothing.
9164 * config/i386/i386.md (@tbm_bextri_<mode>):
9165 Implement as parametrized name pattern.
9166 (@rdrand<mode>): Ditto.
9167 (@rdseed<mode>): Ditto.
9168 * config/i386/i386-expand.c (ix86_expand_builtin)
9169 [case IX86_BUILTIN_BEXTRI32, case IX86_BUILTIN_BEXTRI64]:
9170 Update for parameterized name patterns.
9171 [case IX86_BUILTIN_RDRAND16_STEP, case IX86_BUILTIN_RDRAND32_STEP]
9172 [case IX86_BUILTIN_RDRAND64_STEP]: Ditto.
9173 [case IX86_BUILTIN_RDSEED16_STEP, case IX86_BUILTIN_RDSEED32_STEP]
9174 [case IX86_BUILTIN_RDSEED64_STEP]: Ditto.
9176 2020-08-17 Aldy Hernandez <aldyh@redhat.com>
9178 * vr-values.c (vr_values::get_value_range): Add stmt param.
9179 (vr_values::extract_range_from_comparison): Same.
9180 (vr_values::extract_range_from_assignment): Pass stmt to
9181 extract_range_from_comparison.
9182 (vr_values::adjust_range_with_scev): Pass stmt to get_value_range.
9183 (simplify_using_ranges::vrp_evaluate_conditional): Add stmt param.
9184 Pass stmt to get_value_range.
9185 (simplify_using_ranges::vrp_visit_cond_stmt): Pass stmt to
9187 (simplify_using_ranges::simplify_abs_using_ranges): Same.
9188 (simplify_using_ranges::simplify_div_or_mod_using_ranges): Same.
9189 (simplify_using_ranges::simplify_bit_ops_using_ranges): Same.
9190 (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
9191 (simplify_using_ranges::simplify_switch_using_ranges): Same.
9192 (simplify_using_ranges::simplify_float_conversion_using_ranges): Same.
9193 * vr-values.h (class vr_values): Add stmt arg to
9194 vrp_evaluate_conditional_warnv_with_ops.
9195 Add stmt arg to extract_range_from_comparison and get_value_range.
9196 (simplify_using_ranges::get_value_range): Add stmt arg.
9198 2020-08-17 liuhongt <hongtao.liu@intel.com>
9201 * config/i386/i386.c (ix86_legitimate_constant_p): Return
9202 false for ENDBR immediate.
9203 (ix86_legitimate_address_p): Ditto.
9204 * config/i386/predicates.md
9205 (x86_64_immediate_operand): Exclude ENDBR immediate.
9206 (x86_64_zext_immediate_operand): Ditto.
9207 (x86_64_dwzext_immediate_operand): Ditto.
9208 (ix86_endbr_immediate_operand): New predicate.
9210 2020-08-16 Roger Sayle <roger@nextmovesoftware.com>
9212 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
9213 Simplify (sign_extend:M (truncate:N (lshiftrt:M x C))) to
9214 (ashiftrt:M x C) when the shift sets the high bits appropriately.
9216 2020-08-14 Martin Sebor <msebor@redhat.com>
9219 * builtins.c (expand_builtin_memory_copy_args): Rename called function.
9220 (expand_builtin_stpcpy_1): Remove argument from call.
9221 (expand_builtin_memcmp): Rename called function.
9222 (inline_expand_builtin_bytecmp): Same.
9223 * expr.c (convert_to_bytes): New function.
9224 (constant_byte_string): New function (formerly string_constant).
9225 (string_constant): Call constant_byte_string.
9226 (byte_representation): New function.
9227 * expr.h (byte_representation): Declare.
9228 * fold-const-call.c (fold_const_call): Rename called function.
9229 * fold-const.c (c_getstr): Remove an argument.
9230 (getbyterep): Define a new function.
9231 * fold-const.h (c_getstr): Remove an argument.
9232 (getbyterep): Declare a new function.
9233 * gimple-fold.c (gimple_fold_builtin_memory_op): Rename callee.
9234 (gimple_fold_builtin_string_compare): Same.
9235 (gimple_fold_builtin_memchr): Same.
9237 2020-08-14 David Malcolm <dmalcolm@redhat.com>
9239 * doc/analyzer.texi (Overview): Add tip about how to get a
9240 gimple dump if the analyzer ICEs.
9242 2020-08-14 Uroš Bizjak <ubizjak@gmail.com>
9244 * config/i386/i386-builtin.def (__builtin_ia32_llwpcb)
9245 (__builtin_ia32_slwpcb, __builtin_ia32_lwpval32)
9246 (__builtin_ia32_lwpval64, __builtin_ia32_lwpins32)
9247 (__builtin_ia32_lwpins64): Use CODE_FOR_nothing.
9248 * config/i386/i386.md (@lwp_llwpcb<mode>):
9249 Implement as parametrized name pattern.
9250 (@lwp_slwpcb<mode>): Ditto.
9251 (@lwp_lwpval<mode>): Ditto.
9252 (@lwp_lwpins<mode>): Ditto.
9253 * config/i386/i386-expand.c (ix86_expand_special_args_builtin)
9254 [case VOID_FTYPE_UINT_UINT_UINT, case VOID_FTYPE_UINT64_UINT_UINT]
9255 [case UCHAR_FTYPE_UINT_UINT_UINT, case UCHAR_FTYPE_UINT64_UINT_UINT]:
9257 (ix86_expand_builtin)
9258 [ case IX86_BUILTIN_LLWPCB, case IX86_BUILTIN_LLWPCB]:
9259 Update for parameterized name patterns.
9260 [case IX86_BUILTIN_LWPVAL32, case IX86_BUILTIN_LWPVAL64]
9261 [case IX86_BUILTIN_LWPINS32, case IX86_BUILTIN_LWPINS64]: Expand here.
9263 2020-08-14 Lewis Hyatt <lhyatt@gmail.com>
9265 * common.opt: Add new option -fdiagnostics-plain-output.
9266 * doc/invoke.texi: Document it.
9267 * opts-common.c (decode_cmdline_options_to_array): Implement it.
9268 (decode_cmdline_option): Add missing const qualifier to argv.
9270 2020-08-14 Jakub Jelinek <jakub@redhat.com>
9271 Jonathan Wakely <jwakely@redhat.com>
9272 Jonathan Wakely <jwakely@redhat.com>
9274 * system.h: Include type_traits.
9275 * vec.h (vec<T, A, vl_embed>::embedded_size): Use offsetof and asserts
9276 on vec_stdlayout, which is conditionally a vec (for standard layout T)
9277 and otherwise vec_embedded.
9279 2020-08-14 Jojo R <jiejie_rong@c-sky.com>
9281 * config/csky/csky-elf.h (ASM_SPEC): Use mfloat-abi.
9282 * config/csky/csky-linux-elf.h (ASM_SPEC): mfloat-abi.
9284 2020-08-13 David Malcolm <dmalcolm@redhat.com>
9300 * Makefile.in (ANALYZER_OBJS): Add analyzer/region.o,
9301 analyzer/region-model-impl-calls.o,
9302 analyzer/region-model-manager.o,
9303 analyzer/region-model-reachability.o, analyzer/store.o, and
9305 * doc/analyzer.texi: Update for changes to analyzer
9307 * tristate.h (tristate::get_value): New accessor.
9309 2020-08-13 Uroš Bizjak <ubizjak@gmail.com>
9311 * config/i386/i386-builtin.def (CET_NORMAL): Merge to CET BDESC array.
9312 (__builtin_ia32_rddspd, __builtin_ia32_rddspq, __builtin_ia32_incsspd)
9313 (__builtin_ia32_incsspq, __builtin_ia32_wrssd, __builtin_ia32_wrssq)
9314 (__builtin_ia32_wrussd, __builtin_ia32_wrussq): Use CODE_FOR_nothing.
9315 * config/i386/i386-builtins.c: Remove handling of CET_NORMAL builtins.
9316 * config/i386/i386.md (@rdssp<mode>): Implement as parametrized
9317 name pattern. Use SWI48 mode iterator. Introduce input operand
9318 and remove explicit XOR zeroing from insn template.
9319 (@incssp<mode>): Implement as parametrized name pattern.
9320 Use SWI48 mode iterator.
9321 (@wrss<mode>): Ditto.
9322 (@wruss<mode>): Ditto.
9323 (rstorssp): Remove expander. Rename insn pattern from *rstorssp<mode>.
9324 Use DImode memory operand.
9325 (clrssbsy): Remove expander. Rename insn pattern from *clrssbsy<mode>.
9326 Use DImode memory operand.
9327 (save_stack_nonlocal): Update for parametrized name patterns.
9328 Use cleared register as an argument to gen_rddsp.
9329 (restore_stack_nonlocal): Update for parametrized name patterns.
9330 * config/i386/i386-expand.c (ix86_expand_builtin):
9331 [case IX86_BUILTIN_RDSSPD, case IX86_BUILTIN_RDSSPQ]: Expand here.
9332 [case IX86_BUILTIN_INCSSPD, case IX86_BUILTIN_INCSSPQ]: Ditto.
9333 [case IX86_BUILTIN_RSTORSSP, case IX86_BUILTIN_CLRSSBSY]:
9334 Generate DImode memory operand.
9335 [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]
9336 [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
9337 Update for parameterized name patterns.
9339 2020-08-13 Peter Bergner <bergner@linux.ibm.com>
9342 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode): Disallow
9343 MMA types as return values.
9344 (rs6000_function_arg): Disallow MMA types as function arguments.
9346 2020-08-13 Richard Sandiford <richard.sandiford@arm.com>
9349 2020-08-12 Peixin Qiao <qiaopeixin@huawei.com>
9351 * config/aarch64/aarch64.c (aarch64_function_value): Add if
9352 condition to check ag_mode after entering if condition of
9353 aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
9354 set as false by -mgeneral-regs-only, report the diagnostic
9355 information of -mgeneral-regs-only imcompatible with the use
9356 of fp/simd register(s).
9358 2020-08-13 Martin Liska <mliska@suse.cz>
9361 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Mask m_value
9364 2020-08-13 Jakub Jelinek <jakub@redhat.com>
9366 * gimplify.c (gimplify_omp_taskloop_expr): New function.
9367 (gimplify_omp_for): Use it. For OMP_FOR_NON_RECTANGULAR
9368 loops adjust in outer taskloop the var-outer decls.
9369 * omp-expand.c (expand_omp_taskloop_for_inner): Handle non-rectangular
9371 (expand_omp_for): Don't reject non-rectangular taskloop.
9372 * omp-general.c (omp_extract_for_data): Don't assert that
9373 non-rectangular loops have static schedule, instead treat loop->m1
9374 or loop->m2 as if loop->n1 or loop->n2 is non-constant.
9376 2020-08-13 Hongtao Liu <hongtao.liu@intel.com>
9379 * config/i386/sse.md (<avx512>_load<mode>_mask,
9380 <avx512>_load<mode>_mask): Extend to generate blendm
9382 (<avx512>_blendm<mode>, <avx512>_blendm<mode>): Change
9383 define_insn to define_expand.
9385 2020-08-12 Roger Sayle <roger@nextmovesoftware.com>
9386 Uroš Bizjak <ubizjak@gmail.com>
9389 * config/i386/i386.md (peephole2): Only reorder register clearing
9390 instructions to allow use of xor for general registers.
9392 2020-08-12 Martin Liska <mliska@suse.cz>
9395 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Drop value bits
9396 for bits that are unknown.
9397 (ipcp_bits_lattice::set_to_constant): Likewise.
9398 * tree-ssa-ccp.c (get_default_value): Add sanity check that
9399 IPA CP bit info has all bits set to zero in bits that
9402 2020-08-12 Peixin Qiao <qiaopeixin@huawei.com>
9404 * config/aarch64/aarch64.c (aarch64_function_value): Add if
9405 condition to check ag_mode after entering if condition of
9406 aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
9407 set as false by -mgeneral-regs-only, report the diagnostic
9408 information of -mgeneral-regs-only imcompatible with the use
9409 of fp/simd register(s).
9411 2020-08-12 Jakub Jelinek <jakub@redhat.com>
9413 PR tree-optimization/96535
9414 * toplev.c (process_options): Move flag_unroll_loops and
9415 flag_cunroll_grow_size handling from here to ...
9416 * opts.c (finish_options): ... here. For flag_cunroll_grow_size,
9417 don't check for AUTODETECT_VALUE, but instead check
9418 opts_set->x_flag_cunroll_grow_size.
9419 * common.opt (funroll-completely-grow-size): Default to 0.
9420 * config/rs6000/rs6000.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
9422 (rs6000_override_options_after_change): New function.
9423 (rs6000_option_override_internal): Call it. Move there the
9424 flag_cunroll_grow_size, unroll_only_small_loops and
9425 flag_rename_registers handling.
9427 2020-08-12 Tom de Vries <tdevries@suse.de>
9429 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Make elt_size an
9430 unsigned HOST_WIDE_INT. Print init_frag.remaining using
9431 HOST_WIDE_INT_PRINT_UNSIGNED.
9433 2020-08-12 Roger Sayle <roger@nextmovesoftware.com>
9434 Uroš Bizjak <ubizjak@gmail.com>
9436 * config/i386/i386.md (peephole2): Reduce unnecessary
9437 register shuffling produced by register allocation.
9439 2020-08-12 Aldy Hernandez <aldyh@redhat.com>
9441 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use vec<>
9442 instead of std::vector<>.
9443 (evaluate_properties_for_edge): Same.
9444 (ipa_fn_summary_t::duplicate): Same.
9445 (estimate_ipcp_clone_size_and_time): Same.
9446 * vec.h (<T, A, vl_embed>::embedded_size): Change vec_embedded
9447 type to contain a char[].
9449 2020-08-12 Andreas Krebbel <krebbel@linux.ibm.com>
9452 * config/s390/s390.c (s390_cannot_force_const_mem): Reject an
9453 unary minus for everything not being a numeric constant.
9454 (legitimize_tls_address): Move a NEG out of the CONST rtx.
9456 2020-08-12 Andreas Krebbel <krebbel@linux.ibm.com>
9459 * config/s390/s390.h (TARGET_NONSIGNALING_VECTOR_COMPARE_OK): New
9461 * config/s390/vector.md (vcond_comparison_operator): Use new macro
9464 2020-08-11 Jakub Jelinek <jakub@redhat.com>
9466 PR rtl-optimization/96539
9467 * expr.c (emit_block_move_hints): Don't copy anything if x and y
9468 are the same and neither is MEM_VOLATILE_P.
9470 2020-08-11 Jakub Jelinek <jakub@redhat.com>
9473 * tree.c (get_narrower): Use TREE_TYPE (ret) instead of
9474 TREE_TYPE (win) for COMPOUND_EXPRs.
9476 2020-08-11 Jan Hubicka <hubicka@ucw.cz>
9478 * predict.c (not_loop_guard_equal_edge_p): New function.
9479 (maybe_predict_edge): New function.
9480 (predict_paths_for_bb): Use it.
9481 (predict_paths_leading_to_edge): Use it.
9483 2020-08-11 Martin Liska <mliska@suse.cz>
9485 * dbgcnt.def (DEBUG_COUNTER): Add ipa_cp_bits.
9486 * ipa-cp.c (ipcp_store_bits_results): Use it when we store known
9487 bits for parameters.
9489 2020-08-10 Marek Polacek <polacek@redhat.com>
9491 * doc/sourcebuild.texi: Document dg-ice.
9493 2020-08-10 Roger Sayle <roger@nextmovesoftware.com>
9495 * config/i386/i386-expand.c (ix86_expand_int_movcc): Expand
9496 signed MIN_EXPR against zero as "x < 0 ? x : 0" instead of
9497 "x <= 0 ? x : 0" to enable sign_bit_compare_p optimizations.
9499 2020-08-10 Aldy Hernandez <aldyh@redhat.com>
9501 * value-range.h (gt_ggc_mx): Declare inline.
9504 2020-08-10 Marc Glisse <marc.glisse@inria.fr>
9506 PR tree-optimization/95433
9507 * match.pd (X * C1 == C2): Handle wrapping overflow.
9508 * expr.c (maybe_optimize_mod_cmp): Qualify call to mod_inv.
9510 * wide-int.cc (mod_inv): ... here.
9511 * wide-int.h (mod_inv): Declare it.
9513 2020-08-10 Jan Hubicka <hubicka@ucw.cz>
9515 * predict.c (filter_predictions): Document semantics of filter.
9516 (equal_edge_p): Rename to ...
9517 (not_equal_edge_p): ... this; reverse semantics.
9518 (remove_predictions_associated_with_edge): Fix.
9520 2020-08-10 Hongtao Liu <hongtao.liu@intel.com>
9523 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Refine for
9525 (ix86_expand_mask_vec_cmp): Change prototype.
9526 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): Change prototype.
9527 * config/i386/i386.c (ix86_print_operand): Remove operand
9529 * config/i386/sse.md
9530 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>): Deleted.
9531 (*<avx512>_cmp<mode>3<mask_scalar_merge_name>): Ditto.
9532 (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
9533 (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9534 avx512f_maskcmp<mode>3): Ditto.
9536 2020-08-09 Roger Sayle <roger@nextmovesoftware.com>
9538 * expmed.c (init_expmed_one_conv): Restore all->reg's mode.
9539 (init_expmed_one_mode): Set all->reg to desired mode.
9541 2020-08-08 Peter Bergner <bergner@linux.ibm.com>
9544 * config/rs6000/rs6000.c (rs6000_invalid_conversion): Use canonical
9545 types for type comparisons. Refactor code to simplify it.
9547 2020-08-08 Jakub Jelinek <jakub@redhat.com>
9550 * tree-nested.c (convert_nonlocal_omp_clauses): For
9551 OMP_CLAUSE_REDUCTION, OMP_CLAUSE_LASTPRIVATE and OMP_CLAUSE_LINEAR
9552 save info->new_local_var_chain around walks of the clause gimple
9553 sequences and declare_vars if needed into the sequence.
9555 2020-08-08 Jakub Jelinek <jakub@redhat.com>
9557 PR tree-optimization/96424
9558 * omp-expand.c: Include tree-eh.h.
9559 (expand_omp_for_init_vars): Handle -fexceptions -fnon-call-exceptions
9560 by forcing floating point comparison into a bool temporary.
9562 2020-08-07 Marc Glisse <marc.glisse@inria.fr>
9564 * generic-match-head.c (optimize_vectors_before_lowering_p): New
9566 * gimple-match-head.c (optimize_vectors_before_lowering_p):
9568 * match.pd ((v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): Use it.
9570 2020-08-07 Richard Biener <rguenther@suse.de>
9572 PR tree-optimization/96514
9573 * tree-if-conv.c (if_convertible_bb_p): If the last stmt
9574 is a call that is control-altering, fail.
9576 2020-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
9578 * config/bpf/bpf.md: Remove trailing whitespaces.
9579 * config/bpf/constraints.md: Likewise.
9580 * config/bpf/predicates.md: Likewise.
9582 2020-08-07 Michael Meissner <meissner@linux.ibm.com>
9584 * config/rs6000/rs6000.md (bswaphi2_reg): Add ISA 3.1 support.
9585 (bswapsi2_reg): Add ISA 3.1 support.
9586 (bswapdi2): Rename bswapdi2_xxbrd to bswapdi2_brd.
9587 (bswapdi2_brd,bswapdi2_xxbrd): Rename. Add ISA 3.1 support.
9589 2020-08-07 Alan Modra <amodra@gmail.com>
9592 * config/rs6000/predicates.md (current_file_function_operand): Don't
9593 accept functions that differ in r2 usage.
9595 2020-08-06 Hans-Peter Nilsson <hp@bitrange.com>
9597 * config/mmix/mmix.md (MM): New mode_iterator.
9598 ("mov<mode>"): New expander to expand for all MM-modes.
9599 ("*movqi_expanded", "*movhi_expanded", "*movsi_expanded")
9600 ("*movsf_expanded", "*movdf_expanded"): Rename from the
9601 corresponding mov<M> named pattern. Add to the condition that
9602 either operand must be a register_operand.
9603 ("*movdi_expanded"): Similar, but also allow STCO in the condition.
9605 2020-08-06 Richard Sandiford <richard.sandiford@arm.com>
9608 * config/arm/arm.md (arm_stack_protect_test_insn): Zero out
9609 operand 2 after use.
9610 * config/arm/thumb1.md (thumb1_stack_protect_test_insn): Likewise.
9612 2020-08-06 Peter Bergner <bergner@linux.ibm.com>
9615 * config/rs6000/mma.md (*movpxi): Add xxsetaccz generation.
9616 Disable split for zero constant source operand.
9617 (mma_xxsetaccz): Change to define_expand. Call gen_movpxi.
9619 2020-08-06 Jakub Jelinek <jakub@redhat.com>
9621 PR tree-optimization/96480
9622 * tree-ssa-reassoc.c (suitable_cond_bb): Add TEST_SWAPPED_P argument.
9623 If TEST_BB ends in cond and has one edge to *OTHER_BB and another
9624 through an empty bb to that block too, if PHI args don't match, retry
9625 them through the other path from TEST_BB.
9626 (maybe_optimize_range_tests): Adjust callers. Handle such LAST_BB
9627 through inversion of the condition.
9629 2020-08-06 Jose E. Marchesi <jose.marchesi@oracle.com>
9631 * config/bpf/bpf-helpers.h (KERNEL_HELPER): Define.
9632 (KERNEL_VERSION): Remove.
9633 * config/bpf/bpf-helpers.def: Delete.
9634 * config/bpf/bpf.c (bpf_handle_fndecl_attribute): New function.
9635 (bpf_attribute_table): Define.
9636 (bpf_helper_names): Delete.
9637 (bpf_helper_code): Likewise.
9638 (enum bpf_builtins): Adjust to new helpers mechanism.
9639 (bpf_output_call): Likewise.
9640 (bpf_init_builtins): Likewise.
9641 (bpf_init_builtins): Likewise.
9642 * doc/extend.texi (BPF Function Attributes): New section.
9643 (BPF Kernel Helpers): Delete section.
9645 2020-08-06 Richard Biener <rguenther@suse.de>
9647 PR tree-optimization/96491
9648 * tree-ssa-sink.c (sink_common_stores_to_bb): Avoid
9649 sinking across abnormal edges.
9651 2020-08-06 Richard Biener <rguenther@suse.de>
9653 PR tree-optimization/96483
9654 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
9657 2020-08-06 Richard Biener <rguenther@suse.de>
9659 * graphite-isl-ast-to-gimple.c (ivs_params): Use hash_map instead
9661 (ivs_params_clear): Adjust.
9662 (gcc_expression_from_isl_ast_expr_id): Likewise.
9663 (graphite_create_new_loop): Likewise.
9664 (add_parameters_to_ivs_params): Likewise.
9666 2020-08-06 Roger Sayle <roger@nextmovesoftware.com>
9667 Uroš Bizjak <ubizjak@gmail.com>
9669 * config/i386/i386.md (MAXMIN_IMODE): No longer needed.
9670 (<maxmin><mode>3): Support SWI248 and general_operand for
9671 second operand, when TARGET_CMOVE.
9672 (<maxmin><mode>3_1 splitter): Optimize comparisons against
9673 0, 1 and -1 to use "test" instead of "cmp".
9674 (*<maxmin>di3_doubleword): Likewise, allow general_operand
9675 and enable on TARGET_CMOVE.
9676 (peephole2): Convert clearing a register after a flag setting
9677 instruction into an xor followed by the original flag setter.
9679 2020-08-06 Gerald Pfeifer <gerald@pfeifer.com>
9681 * ipa-fnsummary.c (INCLUDE_VECTOR): Define.
9682 Remove direct inclusion of <vector>.
9684 2020-08-06 Kewen Lin <linkw@gcc.gnu.org>
9686 * config/rs6000/rs6000.c (rs6000_adjust_vect_cost_per_loop): New
9688 (rs6000_finish_cost): Call rs6000_adjust_vect_cost_per_loop.
9689 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Add cost
9690 modeling for vector with length.
9691 (vect_rgroup_iv_might_wrap_p): New function, factored out from...
9692 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): ...this.
9693 Update function comment.
9694 * tree-vect-stmts.c (vect_gen_len): Update function comment.
9695 * tree-vectorizer.h (vect_rgroup_iv_might_wrap_p): New declare.
9697 2020-08-06 Kewen Lin <linkw@linux.ibm.com>
9699 * tree-vectorizer.c (try_vectorize_loop_1): Skip the epilogue loops
9702 2020-08-05 Marc Glisse <marc.glisse@inria.fr>
9704 PR tree-optimization/95906
9706 * match.pd ((c ? a : b) op d, (c ? a : b) op (c ? d : e),
9707 (v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): New transformations.
9708 (op (c ? a : b)): Update to match the new transformations.
9710 2020-08-05 Richard Sandiford <richard.sandiford@arm.com>
9713 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Set the
9714 CC register directly, instead of a GPR. Replace the original GPR
9715 destination with an extra scratch register. Zero out operand 3
9717 (stack_protect_test): Update accordingly.
9719 2020-08-05 Richard Sandiford <richard.sandiford@arm.com>
9721 * config/aarch64/aarch64.md (load_pair_sw_<SX:mode><SX2:mode>)
9722 (load_pair_dw_<DX:mode><DX2:mode>, load_pair_dw_tftf)
9723 (store_pair_sw_<SX:mode><SX2:mode>)
9724 (store_pair_dw_<DX:mode><DX2:mode>, store_pair_dw_tftf)
9725 (*load_pair_extendsidi2_aarch64)
9726 (*load_pair_zero_extendsidi2_aarch64): Use %z for the memory operand.
9727 * config/aarch64/aarch64-simd.md (load_pair<DREG:mode><DREG2:mode>)
9728 (vec_store_pair<DREG:mode><DREG2:mode>, load_pair<VQ:mode><VQ2:mode>)
9729 (vec_store_pair<VQ:mode><VQ2:mode>): Likewise.
9731 2020-08-05 Richard Biener <rguenther@suse.de>
9733 * tree-ssa-loop-im.c (invariantness_dom_walker): Remove.
9734 (invariantness_dom_walker::before_dom_children): Move to ...
9735 (compute_invariantness): ... this function.
9736 (move_computations): Inline ...
9737 (tree_ssa_lim): ... here, share RPO order and avoid some
9739 (analyze_memory_references): Remove sorting of location
9740 lists, instead assert they are sorted already when checking.
9741 (prev_flag_edges): Remove.
9742 (execute_sm_if_changed): Pass down and adjust prev edge state.
9743 (execute_sm_exit): Likewise.
9744 (hoist_memory_references): Likewise. Commit edge insertions
9745 of each processed exit.
9746 (store_motion_loop): Do not commit edge insertions on all
9747 edges in the function.
9748 (tree_ssa_lim_initialize): Do not call alloc_aux_for_edges.
9749 (tree_ssa_lim_finalize): Do not call free_aux_for_edges.
9751 2020-08-05 Richard Biener <rguenther@suse.de>
9753 * genmatch.c (fail_label): New global.
9754 (expr::gen_transform): Branch to fail_label instead of
9755 returning. Fix indent of call argument checking.
9756 (dt_simplify::gen_1): Compute and emit fail_label, branch
9757 to it instead of returning early.
9759 2020-08-05 Jakub Jelinek <jakub@redhat.com>
9761 * omp-expand.c (expand_omp_for): Don't disallow combined non-rectangular
9764 2020-08-05 Jakub Jelinek <jakub@redhat.com>
9767 * omp-low.c (lower_omp_taskreg): Call lower_reduction_clauses even in
9770 2020-08-05 Jakub Jelinek <jakub@redhat.com>
9772 * omp-expand.c (expand_omp_for_init_counts): Remember
9773 first_inner_iterations, factor and n1o from the number of iterations
9775 (expand_omp_for_init_vars): Use more efficient logical iteration number
9776 to actual iterator values computation even for non-rectangular loops
9777 where number of loop iterations could not be computed at compile time.
9779 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
9781 * config/rs6000/altivec.h (vec_blendv, vec_permx): Add define.
9782 * config/rs6000/altivec.md (UNSPEC_XXBLEND, UNSPEC_XXPERMX.): New
9784 (VM3): New define_mode.
9785 (VM3_char): New define_attr.
9786 (xxblend_<mode> mode VM3): New define_insn.
9787 (xxpermx): New define_expand.
9788 (xxpermx_inst): New define_insn.
9789 * config/rs6000/rs6000-builtin.def (VXXBLEND_V16QI, VXXBLEND_V8HI,
9790 VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): New
9791 BU_P10V_3 definitions.
9792 (XXBLEND): New BU_P10_OVERLOAD_3 definition.
9793 (XXPERMX): New BU_P10_OVERLOAD_4 definition.
9794 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9795 (P10_BUILTIN_VXXPERMX): Add if statement.
9796 * config/rs6000/rs6000-call.c (P10_BUILTIN_VXXBLEND_V16QI,
9797 P10_BUILTIN_VXXBLEND_V8HI, P10_BUILTIN_VXXBLEND_V4SI,
9798 P10_BUILTIN_VXXBLEND_V2DI, P10_BUILTIN_VXXBLEND_V4SF,
9799 P10_BUILTIN_VXXBLEND_V2DF, P10_BUILTIN_VXXPERMX): Define
9800 overloaded arguments.
9801 (rs6000_expand_quaternop_builtin): Add if case for CODE_FOR_xxpermx.
9802 (builtin_quaternary_function_type): Add v16uqi_type and xxpermx_type
9803 variables, add case statement for P10_BUILTIN_VXXPERMX.
9804 (builtin_function_type): Add case statements for
9805 P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
9806 P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI.
9807 * doc/extend.texi: Add documentation for vec_blendv and vec_permx.
9809 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
9811 * config/rs6000/altivec.h (vec_splati, vec_splatid, vec_splati_ins):
9813 * config/rs6000/altivec.md (UNSPEC_XXSPLTIW, UNSPEC_XXSPLTID,
9814 UNSPEC_XXSPLTI32DX): New.
9815 (vxxspltiw_v4si, vxxspltiw_v4sf_inst, vxxspltidp_v2df_inst,
9816 vxxsplti32dx_v4si_inst, vxxsplti32dx_v4sf_inst): New define_insn.
9817 (vxxspltiw_v4sf, vxxspltidp_v2df, vxxsplti32dx_v4si,
9818 vxxsplti32dx_v4sf.): New define_expands.
9819 * config/rs6000/predicates.md (u1bit_cint_operand,
9820 s32bit_cint_operand, c32bit_cint_operand): New predicates.
9821 * config/rs6000/rs6000-builtin.def (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF,
9822 VXXSPLTID): New definitions.
9823 (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF): New BU_P10V_3
9825 (XXSPLTIW, XXSPLTID): New definitions.
9826 (XXSPLTI32DX): Add definitions.
9827 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XXSPLTIW,
9828 P10_BUILTIN_VEC_XXSPLTID, P10_BUILTIN_VEC_XXSPLTI32DX):
9830 * config/rs6000/rs6000-protos.h (rs6000_constF32toI32): New extern
9832 * config/rs6000/rs6000.c (rs6000_constF32toI32): New function.
9833 * doc/extend.texi: Add documentation for vec_splati,
9834 vec_splatid, and vec_splati_ins.
9836 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
9838 * config/rs6000/altivec.h (vec_sldb, vec_srdb): New defines.
9839 * config/rs6000/altivec.md (UNSPEC_SLDB, UNSPEC_SRDB): New.
9840 (SLDB_lr): New attribute.
9841 (VSHIFT_DBL_LR): New iterator.
9842 (vs<SLDB_lr>db_<mode>): New define_insn.
9843 * config/rs6000/rs6000-builtin.def (VSLDB_V16QI, VSLDB_V8HI,
9844 VSLDB_V4SI, VSLDB_V2DI, VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI,
9845 VSRDB_V2DI): New BU_P10V_3 definitions.
9846 (SLDB, SRDB): New BU_P10_OVERLOAD_3 definitions.
9847 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_SLDB,
9848 P10_BUILTIN_VEC_SRDB): New definitions.
9849 (rs6000_expand_ternop_builtin) [CODE_FOR_vsldb_v16qi,
9850 CODE_FOR_vsldb_v8hi, CODE_FOR_vsldb_v4si, CODE_FOR_vsldb_v2di,
9851 CODE_FOR_vsrdb_v16qi, CODE_FOR_vsrdb_v8hi, CODE_FOR_vsrdb_v4si,
9852 CODE_FOR_vsrdb_v2di]: Add clauses.
9853 * doc/extend.texi: Add description for vec_sldb and vec_srdb.
9855 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
9857 * config/rs6000/altivec.h: Add define for vec_replace_elt and
9858 vec_replace_unaligned.
9859 * config/rs6000/vsx.md (UNSPEC_REPLACE_ELT, UNSPEC_REPLACE_UN): New
9861 (REPLACE_ELT): New mode iterator.
9862 (REPLACE_ELT_char, REPLACE_ELT_sh, REPLACE_ELT_max): New mode attributes.
9863 (vreplace_un_<mode>, vreplace_elt_<mode>_inst): New.
9864 * config/rs6000/rs6000-builtin.def (VREPLACE_ELT_V4SI,
9865 VREPLACE_ELT_UV4SI, VREPLACE_ELT_V4SF, VREPLACE_ELT_UV2DI,
9866 VREPLACE_ELT_V2DF, VREPLACE_UN_V4SI, VREPLACE_UN_UV4SI,
9867 VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
9868 VREPLACE_UN_V2DF, (REPLACE_ELT, REPLACE_UN, VREPLACE_ELT_V2DI): New builtin
9870 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_REPLACE_ELT,
9871 P10_BUILTIN_VEC_REPLACE_UN): New builtin argument definitions.
9872 (rs6000_expand_quaternop_builtin): Add 3rd argument checks for
9873 CODE_FOR_vreplace_elt_v4si, CODE_FOR_vreplace_elt_v4sf,
9874 CODE_FOR_vreplace_un_v4si, CODE_FOR_vreplace_un_v4sf.
9875 (builtin_function_type) [P10_BUILTIN_VREPLACE_ELT_UV4SI,
9876 P10_BUILTIN_VREPLACE_ELT_UV2DI, P10_BUILTIN_VREPLACE_UN_UV4SI,
9877 P10_BUILTIN_VREPLACE_UN_UV2DI]: New cases.
9878 * doc/extend.texi: Add description for vec_replace_elt and
9879 vec_replace_unaligned builtins.
9881 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
9883 * config/rs6000/altivec.h (vec_insertl, vec_inserth): New defines.
9884 * config/rs6000/rs6000-builtin.def (VINSERTGPRBL, VINSERTGPRHL,
9885 VINSERTGPRWL, VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL,
9886 VINSERTGPRBR, VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR,
9887 VINSERTVPRHR, VINSERTVPRWR): New builtins.
9888 (INSERTL, INSERTH): New builtins.
9889 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_INSERTL,
9890 P10_BUILTIN_VEC_INSERTH): New overloaded definitions.
9891 (P10_BUILTIN_VINSERTGPRBL, P10_BUILTIN_VINSERTGPRHL,
9892 P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
9893 P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
9894 P10_BUILTIN_VINSERTVPRWL): Add case entries.
9895 * config/rs6000/vsx.md (define_c_enum): Add UNSPEC_INSERTL,
9897 (define_expand): Add vinsertvl_<mode>, vinsertvr_<mode>,
9898 vinsertgl_<mode>, vinsertgr_<mode>, mode is VI2.
9899 (define_ins): vinsertvl_internal_<mode>, vinsertvr_internal_<mode>,
9900 vinsertgl_internal_<mode>, vinsertgr_internal_<mode>, mode VEC_I.
9901 * doc/extend.texi: Add documentation for vec_insertl, vec_inserth.
9903 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
9905 * config/rs6000/altivec.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
9906 (vextractl<mode>, vextractr<mode>)
9907 (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
9909 * config/rs6000/vsx.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
9910 (vextractl<mode>, vextractr<mode>)
9911 (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
9913 * doc/extend.texi: Update documentation for vec_extractl.
9914 Replace builtin name vec_extractr with vec_extracth. Update
9915 description of vec_extracth.
9917 2020-08-04 Jim Wilson <jimw@sifive.com>
9919 * doc/invoke.texi (AArch64 Options): Delete duplicate
9920 -mstack-protector-guard docs.
9922 2020-08-04 Roger Sayle <roger@nextmovesoftware.com>
9924 * config/nvptx/nvptx.md (smulhi3_highpart, smulsi3_highpart)
9925 (umulhi3_highpart, umulsi3_highpart): New instructions.
9927 2020-08-04 Andrew Stubbs <ams@codesourcery.com>
9929 * config/gcn/gcn-run.c (R_AMDGPU_NONE): Delete.
9930 (R_AMDGPU_ABS32_LO): Delete.
9931 (R_AMDGPU_ABS32_HI): Delete.
9932 (R_AMDGPU_ABS64): Delete.
9933 (R_AMDGPU_REL32): Delete.
9934 (R_AMDGPU_REL64): Delete.
9935 (R_AMDGPU_ABS32): Delete.
9936 (R_AMDGPU_GOTPCREL): Delete.
9937 (R_AMDGPU_GOTPCREL32_LO): Delete.
9938 (R_AMDGPU_GOTPCREL32_HI): Delete.
9939 (R_AMDGPU_REL32_LO): Delete.
9940 (R_AMDGPU_REL32_HI): Delete.
9942 (R_AMDGPU_RELATIVE64): Delete.
9944 2020-08-04 Omar Tahir <omar.tahir@arm.com>
9946 * config/arm/arm-cpus.in (armv8.1-m.main): Tune for Cortex-M55.
9948 2020-08-04 Hu Jiangping <hujiangping@cn.fujitsu.com>
9950 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Delete
9951 redundant extra_cost variable.
9953 2020-08-04 Zhiheng Xie <xiezhiheng@huawei.com>
9955 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
9956 Use FLOAT_MODE_P macro instead of enumerating all floating-point
9957 modes and add global flag FLAG_AUTO_FP.
9959 2020-08-04 Jakub Jelinek <jakub@redhat.com>
9961 * doc/extend.texi (symver): Add @cindex for symver function attribute.
9963 2020-08-04 Marc Glisse <marc.glisse@inria.fr>
9965 PR tree-optimization/95433
9966 * match.pd (X * C1 == C2): New transformation.
9968 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
9970 * gimple-ssa-sprintf.c (get_int_range): Adjust for irange API.
9971 (format_integer): Same.
9972 (handle_printf_call): Same.
9974 2020-08-04 Andrew Stubbs <ams@codesourcery.com>
9976 * config/gcn/gcn.md ("<expander>ti3"): New.
9978 2020-08-04 Richard Biener <rguenther@suse.de>
9980 PR tree-optimization/88240
9981 * tree-ssa-sccvn.h (vn_reference_s::punned): New flag.
9982 * tree-ssa-sccvn.c (vn_reference_insert): Initialize punned.
9983 (vn_reference_insert_pieces): Likewise.
9984 (visit_reference_op_call): Likewise.
9985 (visit_reference_op_load): Track whether a ref was punned.
9986 * tree-ssa-pre.c (do_hoist_insertion): Refuse to perform hoist
9987 insertion on punned floating point loads.
9989 2020-08-04 Sudakshina Das <sudi.das@arm.com>
9991 * config/aarch64/aarch64.c (aarch64_gen_store_pair): Add case
9993 (aarch64_gen_load_pair): Likewise.
9994 (aarch64_copy_one_block_and_progress_pointers): Handle 256 bit copy.
9995 (aarch64_expand_cpymem): Expand copy_limit to 256bits where
9998 2020-08-04 Andrea Corallo <andrea.corallo@arm.com>
10000 * config/aarch64/aarch64.md (aarch64_fjcvtzs): Add missing
10002 * doc/sourcebuild.texi (aarch64_fjcvtzs_hw) Document new
10003 target supports option.
10005 2020-08-04 Tom de Vries <tdevries@suse.de>
10008 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Handle V2SI/V2DI.
10010 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10012 PR middle-end/96426
10013 * tree-vect-generic.c (expand_vector_conversion): Replace .VEC_CONVERT
10014 call with GIMPLE_NOP if there is no lhs.
10016 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10019 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Add IS_DEBUG
10020 argument. Return false instead of gcc_unreachable if it is true and
10021 get_addr_base_and_unit_offset returns NULL.
10022 (fold_stmt_1) <case GIMPLE_DEBUG>: Adjust caller.
10024 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10026 * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional):
10027 Call is_gimple_min_invariant dropped from previous patch.
10029 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10031 * omp-expand.c (expand_omp_for_init_counts): For triangular loops
10032 compute number of iterations at runtime more efficiently.
10033 (expand_omp_for_init_vars): Adjust immediate dominators.
10034 (extract_omp_for_update_vars): Likewise.
10036 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10038 * vr-values.c (simplify_using_ranges::two_valued_val_range_p):
10041 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10043 * vr-values.c (simplify_conversion_using_ranges): Convert to irange API.
10045 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10047 * vr-values.c (test_for_singularity): Use irange API.
10048 (simplify_using_ranges::simplify_cond_using_ranges_1): Do not
10049 special case VR_RANGE.
10051 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10053 * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional): Adjust
10056 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10058 * vr-values.c (simplify_using_ranges::op_with_boolean_value_range_p): Adjust
10061 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10063 * tree-ssanames.c (get_range_info): Use irange instead of value_range.
10064 * tree-ssanames.h (get_range_info): Same.
10066 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10068 * fold-const.c (expr_not_equal_to): Adjust for irange API.
10070 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10072 * builtins.c (determine_block_size): Remove ad-hoc range canonicalization.
10074 2020-08-04 Xionghu Luo <luoxhu@linux.ibm.com>
10076 PR rtl-optimization/71309
10077 * dse.c (find_shift_sequence): Use subreg of shifted from high part
10078 register to avoid loading from address.
10080 2020-08-03 Jonathan Wakely <jwakely@redhat.com>
10082 * doc/cpp.texi (Variadic Macros): Use the exact ... token in
10085 2020-08-03 Nathan Sidwell <nathan@acm.org>
10087 * doc/invoke.texi: Refer to c++20
10089 2020-08-03 Julian Brown <julian@codesourcery.com>
10090 Thomas Schwinge <thomas@codesourcery.com>
10092 * gimplify.c (gimplify_omp_target_update): Allow GOMP_MAP_TO_PSET
10093 without a preceding data-movement mapping.
10095 2020-08-03 Iain Sandoe <iain@sandoe.co.uk>
10097 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): UNDEF before
10099 (DEF_MIN_OSX_VERSION): Only define if there's no existing
10102 2020-08-03 Iain Sandoe <iain@sandoe.co.uk>
10104 * config/darwin.c (IN_TARGET_CODE): Remove.
10105 (darwin_mergeable_constant_section): Handle poly-int machine modes.
10106 (machopic_select_rtx_section): Likewise.
10108 2020-08-03 Aldy Hernandez <aldyh@redhat.com>
10110 PR tree-optimization/96430
10111 * range-op.cc (operator_tests): Do not shift by 31 on targets with
10112 integer's smaller than 32 bits.
10114 2020-08-03 Martin Jambor <mjambor@suse.cz>
10116 * hsa-brig-format.h: Moved to brig/brigfrontend.
10117 * hsa-brig.c: Removed.
10118 * hsa-builtins.def: Likewise.
10119 * hsa-common.c: Likewise.
10120 * hsa-common.h: Likewise.
10121 * hsa-dump.c: Likewise.
10122 * hsa-gen.c: Likewise.
10123 * hsa-regalloc.c: Likewise.
10124 * ipa-hsa.c: Likewise.
10125 * omp-grid.c: Likewise.
10126 * omp-grid.h: Likewise.
10127 * Makefile.in (BUILTINS_DEF): Remove hsa-builtins.def.
10128 (OBJS): Remove hsa-common.o, hsa-gen.o, hsa-regalloc.o, hsa-brig.o,
10129 hsa-dump.o, ipa-hsa.c and omp-grid.o.
10130 (GTFILES): Removed hsa-common.c and omp-expand.c.
10131 * builtins.def: Remove processing of hsa-builtins.def.
10132 (DEF_HSA_BUILTIN): Remove.
10133 * common.opt (flag_disable_hsa): Remove.
10135 * config.in (ENABLE_HSA): Removed.
10136 * configure.ac: Removed handling configuration for hsa offloading.
10137 (ENABLE_HSA): Removed.
10138 * configure: Regenerated.
10139 * doc/install.texi (--enable-offload-targets): Remove hsa from the
10141 (--with-hsa-runtime): Reword to reference any HSA run-time, not
10142 specifically HSA offloading.
10143 * doc/invoke.texi (Option Summary): Remove -Whsa.
10144 (Warning Options): Likewise.
10145 (Optimize Options): Remove hsa-gen-debug-stores.
10146 * doc/passes.texi (Regular IPA passes): Remove section on IPA HSA
10148 * gimple-low.c (lower_stmt): Remove GIMPLE_OMP_GRID_BODY case.
10149 * gimple-pretty-print.c (dump_gimple_omp_for): Likewise.
10150 (dump_gimple_omp_block): Likewise.
10151 (pp_gimple_stmt_1): Likewise.
10152 * gimple-walk.c (walk_gimple_stmt): Likewise.
10153 * gimple.c (gimple_build_omp_grid_body): Removed function.
10154 (gimple_copy): Remove GIMPLE_OMP_GRID_BODY case.
10155 * gimple.def (GIMPLE_OMP_GRID_BODY): Removed.
10156 * gimple.h (gf_mask): Removed GF_OMP_PARALLEL_GRID_PHONY,
10157 OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY,
10158 GF_OMP_FOR_GRID_INTRA_GROUP, GF_OMP_FOR_GRID_GROUP_ITER and
10159 GF_OMP_TEAMS_GRID_PHONY. Renumbered GF_OMP_FOR_KIND_SIMD and
10161 (gimple_build_omp_grid_body): Removed declaration.
10162 (gimple_has_substatements): Remove GIMPLE_OMP_GRID_BODY case.
10163 (gimple_omp_for_grid_phony): Removed.
10164 (gimple_omp_for_set_grid_phony): Likewise.
10165 (gimple_omp_for_grid_intra_group): Likewise.
10166 (gimple_omp_for_grid_intra_group): Likewise.
10167 (gimple_omp_for_grid_group_iter): Likewise.
10168 (gimple_omp_for_set_grid_group_iter): Likewise.
10169 (gimple_omp_parallel_grid_phony): Likewise.
10170 (gimple_omp_parallel_set_grid_phony): Likewise.
10171 (gimple_omp_teams_grid_phony): Likewise.
10172 (gimple_omp_teams_set_grid_phony): Likewise.
10173 (CASE_GIMPLE_OMP): Remove GIMPLE_OMP_GRID_BODY case.
10174 * lto-section-in.c (lto_section_name): Removed hsa.
10175 * lto-streamer.h (lto_section_type): Removed LTO_section_ipa_hsa.
10176 * lto-wrapper.c (compile_images_for_offload_targets): Remove special
10178 * omp-expand.c: Do not include hsa-common.h and gt-omp-expand.h.
10179 (parallel_needs_hsa_kernel_p): Removed.
10180 (grid_launch_attributes_trees): Likewise.
10181 (grid_launch_attributes_trees): Likewise.
10182 (grid_create_kernel_launch_attr_types): Likewise.
10183 (grid_insert_store_range_dim): Likewise.
10184 (grid_get_kernel_launch_attributes): Likewise.
10185 (get_target_arguments): Remove code passing HSA grid sizes.
10186 (grid_expand_omp_for_loop): Remove.
10187 (grid_arg_decl_map): Likewise.
10188 (grid_remap_kernel_arg_accesses): Likewise.
10189 (grid_expand_target_grid_body): Likewise.
10190 (expand_omp): Remove call to grid_expand_target_grid_body.
10191 (omp_make_gimple_edges): Remove GIMPLE_OMP_GRID_BODY case.
10192 * omp-general.c: Do not include hsa-common.h.
10193 (omp_maybe_offloaded): Do not check for HSA offloading.
10194 (omp_context_selector_matches): Likewise.
10195 * omp-low.c: Do not include hsa-common.h and omp-grid.h.
10196 (build_outer_var_ref): Remove handling of GIMPLE_OMP_GRID_BODY.
10197 (scan_sharing_clauses): Remove handling of OMP_CLAUSE__GRIDDIM_.
10198 (scan_omp_parallel): Remove handling of the phoney variant.
10199 (check_omp_nesting_restrictions): Remove handling of
10200 GIMPLE_OMP_GRID_BODY and GF_OMP_FOR_KIND_GRID_LOOP.
10201 (scan_omp_1_stmt): Remove handling of GIMPLE_OMP_GRID_BODY.
10202 (lower_omp_for_lastprivate): Remove handling of gridified loops.
10203 (lower_omp_for): Remove phony loop handling.
10204 (lower_omp_taskreg): Remove phony construct handling.
10205 (lower_omp_teams): Likewise.
10206 (lower_omp_grid_body): Removed.
10207 (lower_omp_1): Remove GIMPLE_OMP_GRID_BODY case.
10208 (execute_lower_omp): Do not call omp_grid_gridify_all_targets.
10209 * opts.c (common_handle_option): Do not handle hsa when processing
10211 * params.opt (hsa-gen-debug-stores): Remove.
10212 * passes.def: Remove pass_ipa_hsa and pass_gen_hsail.
10213 * timevar.def: Remove TV_IPA_HSA.
10214 * toplev.c: Do not include hsa-common.h.
10215 (compile_file): Do not call hsa_output_brig.
10216 * tree-core.h (enum omp_clause_code): Remove OMP_CLAUSE__GRIDDIM_.
10217 (tree_omp_clause): Remove union field dimension.
10218 * tree-nested.c (convert_nonlocal_omp_clauses): Remove the
10219 OMP_CLAUSE__GRIDDIM_ case.
10220 (convert_local_omp_clauses): Likewise.
10221 * tree-pass.h (make_pass_gen_hsail): Remove declaration.
10222 (make_pass_ipa_hsa): Likewise.
10223 * tree-pretty-print.c (dump_omp_clause): Remove GIMPLE_OMP_GRID_BODY
10225 * tree.c (omp_clause_num_ops): Remove the element corresponding to
10226 OMP_CLAUSE__GRIDDIM_.
10227 (omp_clause_code_name): Likewise.
10228 (walk_tree_1): Remove GIMPLE_OMP_GRID_BODY case.
10229 * tree.h (OMP_CLAUSE__GRIDDIM__DIMENSION): Remove.
10230 (OMP_CLAUSE__GRIDDIM__SIZE): Likewise.
10231 (OMP_CLAUSE__GRIDDIM__GROUP): Likewise.
10233 2020-08-03 Bu Le <bule1@huawei.com>
10235 * config/aarch64/aarch64-sve.md (sub<mode>3): Add support for
10238 2020-08-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10240 * config/msp430/msp430.h (ASM_SPEC): Don't pass on "-md" option.
10242 2020-08-03 Yunde Zhong <zhongyunde@huawei.com>
10244 PR rtl-optimization/95696
10245 * regrename.c (regrename_analyze): New param include_all_block_p
10246 with default value TRUE. If set to false, avoid disrupting SMS
10248 * regrename.h (regrename_analyze): Adjust prototype.
10250 2020-08-03 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
10252 * doc/tm.texi.in (VECTOR_STORE_FLAG_VALUE): Fix a typo.
10253 * doc/tm.texi: Regenerate.
10255 2020-08-03 Richard Sandiford <richard.sandiford@arm.com>
10257 * doc/invoke.texi: Add missing comma after octeontx2f95mm entry.
10259 2020-08-03 Qian jianhua <qianjh@cn.fujitsu.com>
10261 * config/aarch64/aarch64-cores.def (a64fx): New core.
10262 * config/aarch64/aarch64-tune.md: Regenerated.
10263 * config/aarch64/aarch64.c (a64fx_prefetch_tune, a64fx_tunings): New.
10264 * doc/invoke.texi: Add a64fx to the list.
10266 2020-08-03 Roger Sayle <roger@nextmovesoftware.com>
10268 PR rtl-optimization/61494
10269 * simplify-rtx.c (simplify_binary_operation_1) [MINUS]: Don't
10270 simplify x - 0.0 with -fsignaling-nans.
10272 2020-08-03 Roger Sayle <roger@nextmovesoftware.com>
10274 * genmatch.c (decision_tree::gen): Emit stub functions for
10275 tree code operand counts that have no simplifications.
10276 (main): Correct comment typo.
10278 2020-08-03 Jonathan Wakely <jwakely@redhat.com>
10280 * gimple-ssa-sprintf.c: Fix typos in comments.
10282 2020-08-03 Tamar Christina <tamar.christina@arm.com>
10284 * config/aarch64/driver-aarch64.c (readline): Check return value fgets.
10286 2020-08-03 Richard Biener <rguenther@suse.de>
10288 * doc/match-and-simplify.texi: Amend accordingly.
10290 2020-08-03 Richard Biener <rguenther@suse.de>
10292 * genmatch.c (parser::gimple): New.
10293 (parser::parser): Initialize gimple flag member.
10294 (parser::parse_expr): Error on ! operator modifier when
10295 not targeting GIMPLE.
10296 (main): Pass down gimple flag to parser ctor.
10298 2020-08-03 Aldy Hernandez <aldyh@redhat.com>
10300 * Makefile.in (GTFILES): Move value-range.h up.
10301 * gengtype-lex.l: Set yylval to handle GTY markers on templates.
10302 * ipa-cp.c (initialize_node_lattices): Call value_range
10304 (ipcp_propagate_stage): Use in-place new so value_range construct
10306 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use std
10307 vec instead of GCC's vec<>.
10308 (evaluate_properties_for_edge): Adjust for std vec.
10309 (ipa_fn_summary_t::duplicate): Same.
10310 (estimate_ipcp_clone_size_and_time): Same.
10311 * ipa-prop.c (ipa_get_value_range): Use in-place new for
10313 * ipa-prop.h (struct GTY): Remove class keyword for m_vr.
10314 * range-op.cc (empty_range_check): Rename to...
10315 (empty_range_varying): ...this and adjust for varying.
10316 (undefined_shift_range_check): Adjust for irange.
10317 (range_operator::wi_fold): Same.
10318 (range_operator::fold_range): Adjust for irange. Special case
10319 single pairs for performance.
10320 (range_operator::op1_range): Adjust for irange.
10321 (range_operator::op2_range): Same.
10322 (value_range_from_overflowed_bounds): Same.
10323 (value_range_with_overflow): Same.
10324 (create_possibly_reversed_range): Same.
10325 (range_true): Same.
10326 (range_false): Same.
10327 (range_true_and_false): Same.
10328 (get_bool_state): Adjust for irange and tweak for performance.
10329 (operator_equal::fold_range): Adjust for irange.
10330 (operator_equal::op1_range): Same.
10331 (operator_equal::op2_range): Same.
10332 (operator_not_equal::fold_range): Same.
10333 (operator_not_equal::op1_range): Same.
10334 (operator_not_equal::op2_range): Same.
10339 (operator_lt::fold_range): Same.
10340 (operator_lt::op1_range): Same.
10341 (operator_lt::op2_range): Same.
10342 (operator_le::fold_range): Same.
10343 (operator_le::op1_range): Same.
10344 (operator_le::op2_range): Same.
10345 (operator_gt::fold_range): Same.
10346 (operator_gt::op1_range): Same.
10347 (operator_gt::op2_range): Same.
10348 (operator_ge::fold_range): Same.
10349 (operator_ge::op1_range): Same.
10350 (operator_ge::op2_range): Same.
10351 (operator_plus::wi_fold): Same.
10352 (operator_plus::op1_range): Same.
10353 (operator_plus::op2_range): Same.
10354 (operator_minus::wi_fold): Same.
10355 (operator_minus::op1_range): Same.
10356 (operator_minus::op2_range): Same.
10357 (operator_min::wi_fold): Same.
10358 (operator_max::wi_fold): Same.
10359 (cross_product_operator::wi_cross_product): Same.
10360 (operator_mult::op1_range): New.
10361 (operator_mult::op2_range): New.
10362 (operator_mult::wi_fold): Adjust for irange.
10363 (operator_div::wi_fold): Same.
10364 (operator_exact_divide::op1_range): Same.
10365 (operator_lshift::fold_range): Same.
10366 (operator_lshift::wi_fold): Same.
10367 (operator_lshift::op1_range): New.
10368 (operator_rshift::op1_range): New.
10369 (operator_rshift::fold_range): Adjust for irange.
10370 (operator_rshift::wi_fold): Same.
10371 (operator_cast::truncating_cast_p): Abstract out from
10372 operator_cast::fold_range.
10373 (operator_cast::fold_range): Adjust for irange and tweak for
10375 (operator_cast::inside_domain_p): Abstract out from fold_range.
10376 (operator_cast::fold_pair): Same.
10377 (operator_cast::op1_range): Use abstracted methods above. Adjust
10378 for irange and tweak for performance.
10379 (operator_logical_and::fold_range): Adjust for irange.
10380 (operator_logical_and::op1_range): Same.
10381 (operator_logical_and::op2_range): Same.
10382 (unsigned_singleton_p): New.
10383 (operator_bitwise_and::remove_impossible_ranges): New.
10384 (operator_bitwise_and::fold_range): New.
10385 (wi_optimize_and_or): Adjust for irange.
10386 (operator_bitwise_and::wi_fold): Same.
10387 (set_nonzero_range_from_mask): New.
10388 (operator_bitwise_and::simple_op1_range_solver): New.
10389 (operator_bitwise_and::op1_range): Adjust for irange.
10390 (operator_bitwise_and::op2_range): Same.
10391 (operator_logical_or::fold_range): Same.
10392 (operator_logical_or::op1_range): Same.
10393 (operator_logical_or::op2_range): Same.
10394 (operator_bitwise_or::wi_fold): Same.
10395 (operator_bitwise_or::op1_range): Same.
10396 (operator_bitwise_or::op2_range): Same.
10397 (operator_bitwise_xor::wi_fold): Same.
10398 (operator_bitwise_xor::op1_range): New.
10399 (operator_bitwise_xor::op2_range): New.
10400 (operator_trunc_mod::wi_fold): Adjust for irange.
10401 (operator_logical_not::fold_range): Same.
10402 (operator_logical_not::op1_range): Same.
10403 (operator_bitwise_not::fold_range): Same.
10404 (operator_bitwise_not::op1_range): Same.
10405 (operator_cst::fold_range): Same.
10406 (operator_identity::fold_range): Same.
10407 (operator_identity::op1_range): Same.
10408 (class operator_unknown): New.
10409 (operator_unknown::fold_range): New.
10410 (class operator_abs): Adjust for irange.
10411 (operator_abs::wi_fold): Same.
10412 (operator_abs::op1_range): Same.
10413 (operator_absu::wi_fold): Same.
10414 (class operator_negate): Same.
10415 (operator_negate::fold_range): Same.
10416 (operator_negate::op1_range): Same.
10417 (operator_addr_expr::fold_range): Same.
10418 (operator_addr_expr::op1_range): Same.
10419 (pointer_plus_operator::wi_fold): Same.
10420 (pointer_min_max_operator::wi_fold): Same.
10421 (pointer_and_operator::wi_fold): Same.
10422 (pointer_or_operator::op1_range): New.
10423 (pointer_or_operator::op2_range): New.
10424 (pointer_or_operator::wi_fold): Adjust for irange.
10425 (integral_table::integral_table): Add entries for IMAGPART_EXPR
10426 and POINTER_DIFF_EXPR.
10427 (range_cast): Adjust for irange.
10428 (build_range3): New.
10429 (range3_tests): New.
10430 (widest_irange_tests): New.
10431 (multi_precision_range_tests): New.
10432 (operator_tests): New.
10433 (range_tests): New.
10434 * range-op.h (class range_operator): Adjust for irange.
10435 (range_cast): Same.
10436 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust for irange and
10437 tweak for performance.
10438 (range_fold_binary_expr): Same.
10439 (masked_increment): Change to extern.
10440 * tree-vrp.h (masked_increment): New.
10441 * tree.c (cache_wide_int_in_type_cache): New function abstracted
10442 out from wide_int_to_tree_1.
10443 (wide_int_to_tree_1): Cache 0, 1, and MAX for pointers.
10444 * value-range-equiv.cc (value_range_equiv::deep_copy): Use kind
10446 (value_range_equiv::move): Same.
10447 (value_range_equiv::check): Adjust for irange.
10448 (value_range_equiv::intersect): Same.
10449 (value_range_equiv::union_): Same.
10450 (value_range_equiv::dump): Same.
10451 * value-range.cc (irange::operator=): Same.
10452 (irange::maybe_anti_range): New.
10453 (irange::copy_legacy_range): New.
10454 (irange::set_undefined): Adjust for irange.
10455 (irange::swap_out_of_order_endpoints): Abstract out from set().
10456 (irange::set_varying): Adjust for irange.
10457 (irange::irange_set): New.
10458 (irange::irange_set_anti_range): New.
10459 (irange::set): Adjust for irange.
10460 (value_range::set_nonzero): Move to header file.
10461 (value_range::set_zero): Move to header file.
10462 (value_range::check): Rename to...
10463 (irange::verify_range): ...this.
10464 (value_range::num_pairs): Rename to...
10465 (irange::legacy_num_pairs): ...this, and adjust for irange.
10466 (value_range::lower_bound): Rename to...
10467 (irange::legacy_lower_bound): ...this, and adjust for irange.
10468 (value_range::upper_bound): Rename to...
10469 (irange::legacy_upper_bound): ...this, and adjust for irange.
10470 (value_range::equal_p): Rename to...
10471 (irange::legacy_equal_p): ...this.
10472 (value_range::operator==): Move to header file.
10473 (irange::equal_p): New.
10474 (irange::symbolic_p): Adjust for irange.
10475 (irange::constant_p): Same.
10476 (irange::singleton_p): Same.
10477 (irange::value_inside_range): Same.
10478 (irange::may_contain_p): Same.
10479 (irange::contains_p): Same.
10480 (irange::normalize_addresses): Same.
10481 (irange::normalize_symbolics): Same.
10482 (irange::legacy_intersect): Same.
10483 (irange::legacy_union): Same.
10484 (irange::union_): Same.
10485 (irange::intersect): Same.
10486 (irange::irange_union): New.
10487 (irange::irange_intersect): New.
10488 (subtract_one): New.
10489 (irange::invert): Adjust for irange.
10490 (dump_bound_with_infinite_markers): New.
10491 (irange::dump): Adjust for irange.
10492 (debug): Add irange versions.
10493 (range_has_numeric_bounds_p): Adjust for irange.
10494 (vrp_val_max): Move to header file.
10495 (vrp_val_min): Move to header file.
10496 (DEFINE_INT_RANGE_GC_STUBS): New.
10497 (DEFINE_INT_RANGE_INSTANCE): New.
10498 * value-range.h (class irange): New.
10499 (class int_range): New.
10500 (class value_range): Rename to a instantiation of int_range.
10501 (irange::legacy_mode_p): New.
10502 (value_range::value_range): Remove.
10503 (irange::kind): New.
10504 (irange::num_pairs): Adjust for irange.
10505 (irange::type): Adjust for irange.
10506 (irange::tree_lower_bound): New.
10507 (irange::tree_upper_bound): New.
10508 (irange::type): Adjust for irange.
10509 (irange::min): Same.
10510 (irange::max): Same.
10511 (irange::varying_p): Same.
10512 (irange::undefined_p): Same.
10513 (irange::zero_p): Same.
10514 (irange::nonzero_p): Same.
10515 (irange::supports_type_p): Same.
10516 (range_includes_zero_p): Same.
10519 (irange::irange): New.
10520 (int_range::int_range): New.
10521 (int_range::operator=): New.
10522 (irange::set): Moved from value-range.cc and adjusted for irange.
10523 (irange::set_undefined): Same.
10524 (irange::set_varying): Same.
10525 (irange::operator==): Same.
10526 (irange::lower_bound): Same.
10527 (irange::upper_bound): Same.
10528 (irange::union_): Same.
10529 (irange::intersect): Same.
10530 (irange::set_nonzero): Same.
10531 (irange::set_zero): Same.
10532 (irange::normalize_min_max): New.
10533 (vrp_val_max): Move from value-range.cc.
10534 (vrp_val_min): Same.
10535 * vr-values.c (vr_values::get_lattice_entry): Call value_range
10538 2020-08-02 Sergei Trofimovich <siarheit@google.com>
10541 * var-tracking.c (vt_find_locations): Fully initialize
10542 all 'in_pending' bits.
10544 2020-08-01 Jan Hubicka <jh@suse.cz>
10546 * symtab.c (symtab_node::verify_base): Verify order.
10547 (symtab_node::verify_symtab_nodes): Verify order.
10549 2020-08-01 Jan Hubicka <jh@suse.cz>
10551 * predict.c (estimate_bb_frequencies): Cap recursive calls by 90%.
10553 2020-08-01 Jojo R <jiejie_rong@c-sky.com>
10555 * config/csky/csky_opts.h (float_abi_type): New.
10556 * config/csky/csky.h (TARGET_SOFT_FLOAT): New.
10557 (TARGET_HARD_FLOAT): New.
10558 (TARGET_HARD_FLOAT_ABI): New.
10559 (OPTION_DEFAULT_SPECS): Use mfloat-abi.
10560 * config/csky/csky.opt (mfloat-abi): New.
10561 * doc/invoke.texi (C-SKY Options): Document -mfloat-abi=.
10563 2020-08-01 Cooper Qu <cooper.qu@linux.alibaba.com>
10565 * config/csky/t-csky-linux: Delete big endian CPUs' multilib.
10567 2020-07-31 Roger Sayle <roger@nextmovesoftware.com>
10568 Tom de Vries <tdevries@suse.de>
10571 * config/nvptx/nvptx.c (nvptx_truly_noop_truncation): Implement.
10572 (TARGET_TRULY_NOOP_TRUNCATION): Define.
10574 2020-07-31 Richard Biener <rguenther@suse.de>
10577 * langhooks-def.h (lhd_finalize_early_debug): Declare.
10578 (LANG_HOOKS_FINALIZE_EARLY_DEBUG): Define.
10579 (LANG_HOOKS_INITIALIZER): Amend.
10580 * langhooks.c: Include cgraph.h and debug.h.
10581 (lhd_finalize_early_debug): Default implementation from
10582 former code in finalize_compilation_unit.
10583 * langhooks.h (lang_hooks::finalize_early_debug): Add.
10584 * cgraphunit.c (symbol_table::finalize_compilation_unit):
10585 Call the finalize_early_debug langhook.
10587 2020-07-31 Richard Biener <rguenther@suse.de>
10589 * genmatch.c (expr::force_leaf): Add and initialize.
10590 (expr::gen_transform): Honor force_leaf by passing
10591 NULL as sequence argument to maybe_push_res_to_seq.
10592 (parser::parse_expr): Allow ! marker on result expression
10594 * doc/match-and-simplify.texi: Amend.
10596 2020-07-31 Kewen Lin <linkw@linux.ibm.com>
10598 * tree-vect-loop.c (vect_get_known_peeling_cost): Don't consider branch
10599 taken costs for prologue and epilogue if they don't exist.
10600 (vect_estimate_min_profitable_iters): Likewise.
10602 2020-07-31 Martin Liska <mliska@suse.cz>
10604 * cgraph.h: Remove leading empty lines.
10605 * cgraphunit.c (enum cgraph_order_sort_kind): Remove
10607 (struct cgraph_order_sort): Add constructors.
10608 (cgraph_order_sort::process): New.
10609 (cgraph_order_cmp): New.
10610 (output_in_order): Simplify and push nodes to vector.
10612 2020-07-31 Richard Biener <rguenther@suse.de>
10614 PR middle-end/96369
10615 * fold-const.c (fold_range_test): Special-case constant
10616 LHS for short-circuiting operations.
10618 2020-07-31 Martin Liska <mliska@suse.cz>
10620 * gcov-io.h (GCOV_PREALLOCATED_KVP): New.
10622 2020-07-31 Zhiheng Xie <xiezhiheng@huawei.com>
10624 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10625 Add new argument ATTRS.
10626 (aarch64_call_properties): New function.
10627 (aarch64_modifies_global_state_p): Likewise.
10628 (aarch64_reads_global_state_p): Likewise.
10629 (aarch64_could_trap_p): Likewise.
10630 (aarch64_add_attribute): Likewise.
10631 (aarch64_get_attributes): Likewise.
10632 (aarch64_init_simd_builtins): Add attributes for each built-in function.
10634 2020-07-31 Richard Biener <rguenther@suse.de>
10637 * var-tracking.c (vt_find_locations): Use
10638 rev_post_order_and_mark_dfs_back_seme and separately iterate
10639 over toplevel SCCs.
10641 2020-07-31 Richard Biener <rguenther@suse.de>
10643 * cfganal.h (rev_post_order_and_mark_dfs_back_seme): Adjust
10645 * cfganal.c (rpoamdbs_bb_data): New struct with pre BB data.
10646 (tag_header): New helper.
10647 (cmp_edge_dest_pre): Likewise.
10648 (rev_post_order_and_mark_dfs_back_seme): Compute SCCs,
10649 find SCC exits and perform a DFS walk with extra edges to
10650 compute a RPO with adjacent SCC members when requesting an
10651 iteration optimized order and populate the toplevel SCC array.
10652 * tree-ssa-sccvn.c (do_rpo_vn): Remove ad-hoc computation
10653 of max_rpo and fill it in from SCC extent info instead.
10655 2020-07-30 Will Schmidt <will_schmidt@vnet.ibm.com>
10657 * config/rs6000/altivec.h (vec_test_lsbb_all_ones): New define.
10658 (vec_test_lsbb_all_zeros): New define.
10659 * config/rs6000/rs6000-builtin.def (BU_P10_VSX_1): New built-in
10661 (XVTLSBB_ZEROS, XVTLSBB_ONES): New builtin defines.
10662 (xvtlsbb_all_zeros, xvtlsbb_all_ones): New builtin overloads.
10663 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XVTLSBB_ZEROS,
10664 P10_BUILTIN_VEC_XVTLSBB_ONES): New altivec_builtin_types entries.
10665 * config/rs6000/rs6000.md (UNSPEC_XVTLSBB): New unspec.
10666 * config/rs6000/vsx.md (*xvtlsbb_internal): New instruction define.
10667 (xvtlsbbo, xvtlsbbz): New instruction expands.
10669 2020-07-30 Cooper Qu <cooper.qu@linux.alibaba.com>
10671 * config/riscv/riscv-opts.h (stack_protector_guard): New enum.
10672 * config/riscv/riscv.c (riscv_option_override): Handle
10674 * config/riscv/riscv.md (stack_protect_set): New pattern to handle
10675 flexible stack protector guard settings.
10676 (stack_protect_set_<mode>): Ditto.
10677 (stack_protect_test): Ditto.
10678 (stack_protect_test_<mode>): Ditto.
10679 * config/riscv/riscv.opt (mstack-protector-guard=,
10680 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
10682 * doc/invoke.texi (Option Summary) [RISC-V Options]:
10683 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
10684 -mstack-protector-guard-offset=.
10685 (RISC-V Options): Ditto.
10687 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
10690 * configure: Regenerated.
10692 2020-07-30 Richard Biener <rguenther@suse.de>
10694 PR tree-optimization/96370
10695 * tree-ssa-reassoc.c (rewrite_expr_tree): Add operation
10696 code parameter and use it instead of picking it up from
10697 the stmt that is being rewritten.
10698 (reassociate_bb): Pass down the operation code.
10700 2020-07-30 Roger Sayle <roger@nextmovesoftware.com>
10701 Tom de Vries <tdevries@suse.de>
10703 * config/nvptx/nvptx.md (nvptx_vector_index_operand): New predicate.
10704 (VECELEM): New mode attribute for a vector's uppercase element mode.
10705 (Vecelem): New mode attribute for a vector's lowercase element mode.
10706 (*vec_set<mode>_0, *vec_set<mode>_1, *vec_set<mode>_2)
10707 (*vec_set<mode>_3): New instructions.
10708 (vec_set<mode>): New expander to generate one of the above insns.
10709 (vec_extract<mode><Vecelem>): New instruction.
10711 2020-07-30 Martin Liska <mliska@suse.cz>
10714 * config/i386/x86-tune-costs.h: Use libcall for large sizes for
10715 -m32. Start using libcall from 128+ bytes.
10717 2020-07-30 Martin Liska <mliska@suse.cz>
10719 * config/i386/x86-tune-costs.h: Change code formatting.
10721 2020-07-29 Roger Sayle <roger@nextmovesoftware.com>
10723 * config/nvptx/nvptx.md (recip<mode>2): New instruction.
10725 2020-07-29 Fangrui Song <maskray@google.com>
10728 * opts.c (common_handle_option): Don't make -gsplit-dwarf imply -g.
10729 * doc/invoke.texi (-gsplit-dwarf): Update documentation.
10731 2020-07-29 Joe Ramsay <joe.ramsay@arm.com>
10733 * config/arm/arm-protos.h (arm_coproc_mem_operand_no_writeback):
10735 (arm_mve_mode_and_operands_type_check): Declare prototype.
10736 * config/arm/arm.c (arm_coproc_mem_operand): Refactor to use
10737 _arm_coproc_mem_operand.
10738 (arm_coproc_mem_operand_wb): New function to cover full, limited
10740 (arm_coproc_mem_operand_no_writeback): New constraint for memory
10741 operand with no writeback.
10742 (arm_print_operand): Extend 'E' specifier for memory operand
10743 that does not support writeback.
10744 (arm_mve_mode_and_operands_type_check): New constraint check for
10745 MVE memory operands.
10746 * config/arm/constraints.md: Add Uj constraint for VFP vldr.16
10748 * config/arm/vfp.md (*mov_load_vfp_hf16): New pattern for
10750 (*mov_store_vfp_hf16): New pattern for vstr.16.
10751 (*mov<mode>_vfp_<mode>16): Remove MVE moves.
10753 2020-07-29 Richard Biener <rguenther@suse.de>
10755 PR tree-optimization/96349
10756 * tree-ssa-loop-split.c (stmt_semi_invariant_p_1): When the
10757 condition runs into a loop PHI with an abnormal entry value give up.
10759 2020-07-29 Richard Biener <rguenther@suse.de>
10761 * tree-vectorizer.c (vectorize_loops): Reset the SCEV
10762 cache if we removed any SIMD UID SSA defs.
10763 * gimple-loop-interchange.cc (pass_linterchange::execute):
10764 Reset the scev cache if we interchanged a loop.
10766 2020-07-29 Richard Biener <rguenther@suse.de>
10768 PR tree-optimization/95679
10769 * tree-ssa-propagate.h
10770 (substitute_and_fold_engine::propagate_into_phi_args): Return
10771 whether anything changed.
10772 * tree-ssa-propagate.c
10773 (substitute_and_fold_engine::propagate_into_phi_args): Likewise.
10774 (substitute_and_fold_dom_walker::before_dom_children): Update
10777 2020-07-29 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
10779 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10780 Ensure that loop variable npeel_tmp advances in each iteration.
10782 2020-07-29 Hans-Peter Nilsson <hp@bitrange.com>
10784 * config/mmix/mmix.h (NO_FUNCTION_CSE): Define to 1.
10786 2020-07-29 Hans-Peter Nilsson <hp@bitrange.com>
10788 * config/mmix/mmix.h (ASM_OUTPUT_EXTERNAL): Define to
10789 default_elf_asm_output_external.
10791 2020-07-28 Sergei Trofimovich <siarheit@google.com>
10794 * ipa-cp.c (has_undead_caller_from_outside_scc_p): Consider
10795 unoptimized callers as undead.
10797 2020-07-28 Roger Sayle <roger@nextmovesoftware.com>
10798 Richard Biener <rguenther@suse.de>
10800 * match.pd (popcount(x)&1 -> parity(x)): New simplification.
10801 (parity(~x) -> parity(x)): New simplification.
10802 (parity(x)^parity(y) -> parity(x^y)): New simplification.
10803 (parity(x&1) -> x&1): New simplification.
10804 (popcount(x) -> x>>C): New simplification.
10806 2020-07-28 Roger Sayle <roger@nextmovesoftware.com>
10807 Tom de Vries <tdevries@suse.de>
10809 * config/nvptx/nvptx.md (extendqihi2): New instruction.
10810 (ashl<mode>3, ashr<mode>3, lshr<mode>3): Support HImode.
10812 2020-07-28 Jakub Jelinek <jakub@redhat.com>
10814 PR middle-end/96335
10815 * calls.c (maybe_warn_rdwr_sizes): Add FNDECL and FNTYPE arguments,
10816 instead of trying to rediscover them in the body.
10817 (initialize_argument_information): Adjust caller.
10819 2020-07-28 Kewen Lin <linkw@linux.ibm.com>
10821 * tree-vect-loop.c (vect_get_known_peeling_cost): Factor out some code
10822 to determine peel_iters_epilogue to...
10823 (vect_get_peel_iters_epilogue): ...this new function.
10824 (vect_estimate_min_profitable_iters): Refactor cost calculation on
10825 peel_iters_prologue and peel_iters_epilogue.
10827 2020-07-27 Martin Sebor <msebor@redhat.com>
10829 PR tree-optimization/84079
10830 * gimple-array-bounds.cc (array_bounds_checker::check_addr_expr):
10831 Only allow just-past-the-end references for the most significant
10834 2020-07-27 Hu Jiangping <hujiangping@cn.fujitsu.com>
10837 * opts.c (check_alignment_argument): Set the -falign-Name
10838 on/off flag on and set the -falign-Name string value null,
10839 when the command-line specified argument is zero.
10841 2020-07-27 Martin Liska <mliska@suse.cz>
10843 PR tree-optimization/96058
10844 * expr.c (string_constant): Build string_constant only
10845 for a type that has same precision as char_type_node
10846 and is an integral type.
10848 2020-07-27 Richard Biener <rguenther@suse.de>
10850 * var-tracking.c (variable_tracking_main_1): Remove call
10851 to mark_dfs_back_edges.
10853 2020-07-27 Martin Liska <mliska@suse.cz>
10855 PR tree-optimization/96128
10856 * tree-vect-generic.c (expand_vector_comparison): Do not expand
10857 vector comparison with VEC_COND_EXPR.
10859 2020-07-27 H.J. Lu <hjl.tools@gmail.com>
10862 * common.opt: Add -fcf-protection=check.
10863 * flag-types.h (cf_protection_level): Add CF_CHECK.
10864 * lto-wrapper.c (merge_and_complain): Issue an error for
10865 mismatching -fcf-protection values with -fcf-protection=check.
10866 Otherwise, merge -fcf-protection values.
10867 * doc/invoke.texi: Document -fcf-protection=check.
10869 2020-07-27 Martin Liska <mliska@suse.cz>
10872 * symbol-summary.h: Call vec_safe_reserve before grow is called
10873 in order to grow to a reasonable size.
10874 * vec.h (vec_safe_reserve): Add missing function for vl_ptr
10877 2020-07-26 Hans-Peter Nilsson <hp@bitrange.com>
10879 * configure.ac (out-of-tree linker .hidden support): Don't turn off
10880 for mmix-knuth-mmixware.
10881 * configure: Regenerate.
10883 2020-07-26 Aaron Sawdey <acsawdey@linux.ibm.com>
10885 * config/rs6000/rs6000.c (rs6000_option_override_internal):
10886 Set the default value for -mblock-ops-unaligned-vsx.
10887 * config/rs6000/rs6000.opt: Add -mblock-ops-unaligned-vsx.
10888 * doc/invoke.texi: Document -mblock-ops-unaligned-vsx.
10890 2020-07-25 Hans-Peter Nilsson <hp@bitrange.com>
10892 * config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override the default
10893 with default_asm_output_ident_directive.
10895 2020-07-25 Andrew Stubbs <ams@codesourcery.com>
10897 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): New function.
10898 (TARGET_SCALAR_MODE_SUPPORTED_P): New define.
10900 2020-07-24 David Edelsohn <dje.gcc@gmail.com>
10901 Clement Chigot <clement.chigot@atos.net>
10903 * config.gcc (powerpc-ibm-aix7.1): Use t-aix64 and biarch64 for
10905 * config/rs6000/aix71.h (ASM_SPEC): Remove aix64 option.
10908 (ASM_CPU_SPEC): Remove vsx and altivec options.
10909 (CPP_SPEC_COMMON): Rename from CPP_SPEC.
10912 (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
10913 (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
10914 (LIB_SPEC_COMMON): Rename from LIB_SPEC.
10917 (LINK_SPEC_COMMON): Rename from LINK_SPEC.
10918 (LINK_SPEC32): New.
10919 (LINK_SPEC64): New.
10920 (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
10921 (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
10923 (CPLUSPLUS_CPP_SPEC): Same.
10926 (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
10927 * config/rs6000/aix72.h (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
10928 * config/rs6000/defaultaix64.h: Delete.
10930 2020-07-24 Segher Boessenkool <segher@kernel.crashing.org>
10932 * config/rs6000/rs6000.opt: Delete -mpower10.
10934 2020-07-24 Alexandre Oliva <oliva@adacore.com>
10936 * config/i386/intelmic-mkoffload.c
10937 (generate_target_descr_file): Use dumppfx for save_temps
10938 files. Pass -dumpbase et al down to the compiler.
10939 (generate_target_offloadend_file): Likewise.
10940 (generate_host_descr_file): Likewise.
10941 (prepare_target_image): Likewise. Move out_obj_filename
10943 (main): ... here. Detect -dumpbase, set dumppfx too.
10945 2020-07-24 Alexandre Oliva <oliva@adacore.com>
10948 * gcc.c (process_command): Adjust and document conditions to
10949 reset dumpbase_ext.
10951 2020-07-24 Matthias Klose <doko@ubuntu.com>
10953 * config/aarch64/aarch64.c (+aarch64_offload_options,
10954 TARGET_OFFLOAD_OPTIONS): New.
10956 2020-07-24 Uroš Bizjak <ubizjak@gmail.com>
10959 * config/i386/sync.md (mmem_thread_fence): Emit mfence_sse2 for -Os.
10961 2020-07-23 Roger Sayle <roger@nextmovesoftware.com>
10963 PR rtl-optimization/96298
10964 * simplify-rtx.c (simplify_binary_operation_1) [XOR]: Xor doesn't
10965 distribute over xor, so (a^b)^(c^b) is not the same as (a^c)^b.
10967 2020-07-23 Dong JianQiang <dongjianqiang2@huawei.com>
10969 PR gcov-profile/96267
10970 * gcov-io.c (gcov_open): enable if IN_GCOV_TOOL.
10972 2020-07-23 Kewen Lin <linkw@linux.ibm.com>
10974 * config/rs6000/rs6000.c (adjust_vectorization_cost): Renamed to ...
10975 (rs6000_adjust_vect_cost_per_stmt): ... here.
10976 (rs6000_add_stmt_cost): Rename adjust_vectorization_cost to
10977 rs6000_adjust_vect_cost_per_stmt.
10979 2020-07-23 Kewen Lin <linkw@linux.ibm.com>
10981 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
10982 IFN_LEN_LOAD and IFN_LEN_STORE.
10983 (get_alias_ptr_type_for_ptr_address): Likewise.
10985 2020-07-23 Kito Cheng <kito.cheng@sifive.com>
10988 * asan.c (asan_shadow_offset_set_p): New.
10989 * asan.h (asan_shadow_offset_set_p): Ditto.
10990 * toplev.c (process_options): Allow -fsanitize=kernel-address
10991 even TARGET_ASAN_SHADOW_OFFSET not implemented, only check when
10992 asan stack protection is enabled.
10994 2020-07-22 Peter Bergner <bergner@linux.ibm.com>
10997 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Handle
10998 little-endian memory ordering.
11000 2020-07-22 Nathan Sidwell <nathan@acm.org>
11002 * dumpfile.c (parse_dump_option): Deal with filenames
11005 2020-07-22 Nathan Sidwell <nathan@acm.org>
11007 * incpath.c (add_path): Avoid multiple strlen calls.
11009 2020-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11011 * expmed.c (expand_sdiv_pow2): Check return value from emit_store_flag
11012 is not NULL_RTX before use.
11014 2020-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11016 * expr.c (convert_modes): Allow a constant integer to be converted to
11017 any scalar int mode.
11019 2020-07-22 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
11021 * config/aarch64/aarch64-ldpstp.md: Add two peepholes for adjusted vector
11022 V2SI, V2SF, V2DI, V2DF load pair and store pair modes.
11023 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
11024 Change mode parameter to machine_mode.
11025 (aarch64_operands_adjust_ok_for_ldpstp): Change mode parameter to
11027 * config/aarch64/aarch64.c (aarch64_operands_adjust_ok_for_ldpstp):
11028 Change mode parameter to machine_mode.
11029 (aarch64_gen_adjusted_ldpstp): Change mode parameter to machine_mode.
11030 * config/aarch64/iterators.md (VP_2E): New iterator for 2 element vectors.
11032 2020-07-22 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
11034 * doc/languages.texi: Fix “then”/“than” typo.
11036 2020-07-21 Sunil K Pandey <skpgkp2@gmail.com>
11039 * config/i386/i386-protos.h (ix86_local_alignment): Add
11040 another function parameter may_lower alignment. Default is
11042 * config/i386/i386.c (ix86_lower_local_decl_alignment): New
11044 (ix86_local_alignment): Amend ix86_local_alignment to accept
11045 another parameter may_lower. If may_lower is true, new align
11046 may be lower than incoming alignment. If may_lower is false,
11047 new align will be greater or equal to incoming alignment.
11048 (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): Define.
11049 * doc/tm.texi: Regenerate.
11050 * doc/tm.texi.in (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): New
11052 * target.def (lower_local_decl_alignment): New hook.
11054 2020-07-21 Uroš Bizjak <ubizjak@gmail.com>
11057 * config/i386/sync.md (mfence_sse2): Enable for
11058 TARGET_64BIT and TARGET_SSE2.
11059 (mfence_nosse): Always enable.
11061 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11063 * config/msp430/msp430-protos.h (msp430_do_not_relax_short_jumps):
11065 * config/msp430/msp430.c (msp430_do_not_relax_short_jumps): Likewise.
11066 * config/msp430/msp430.md (cbranchhi4_real): Remove special case for
11067 msp430_do_not_relax_short_jumps.
11069 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11071 * config/msp430/msp430.md: New "extendqipsi2" define_insn.
11073 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11075 * config/msp430/msp430.h (NO_FUNCTION_CSE): Set to true at -O2 and
11078 2020-07-21 Xionghu Luo <luoxhu@linux.ibm.com>
11080 PR rtl-optimization/89310
11081 * config/rs6000/rs6000.md (movsf_from_si2): New define_insn_and_split.
11083 2020-07-20 Hans-Peter Nilsson <hp@bitrange.com>
11085 * config/mmix/mmix.c (mmix_expand_prologue): Calculate the total
11086 allocated size and set current_function_static_stack_size, if
11087 flag_stack_usage_info.
11089 2020-07-20 Sergei Trofimovich <siarheit@google.com>
11092 * config/sparc/linux.h (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11093 to get crtendS.o for !no-pie mode.
11094 * config/sparc/linux64.h (ENDFILE_SPEC): Ditto.
11096 2020-07-20 Yang Yang <yangyang305@huawei.com>
11098 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
11099 VIEW_CONVERT_EXPRs if the arguments types and return type
11100 of simd clone function are distinct with the vectype of stmt.
11102 2020-07-20 Uroš Bizjak <ubizjak@gmail.com>
11105 * config/i386/i386.h (TARGET_AVOID_MFENCE):
11106 Rename from TARGET_USE_XCHG_FOR_ATOMIC_STORE.
11107 * config/i386/sync.md (mfence_sse2): Disable for TARGET_AVOID_MFENCE.
11108 (mfence_nosse): Enable also for TARGET_AVOID_MFENCE. Emit stack
11109 referred memory in word_mode.
11110 (mem_thread_fence): Do not generate mfence_sse2 pattern when
11111 TARGET_AVOID_MFENCE is true.
11112 (atomic_store<mode>): Update for rename.
11113 * config/i386/x86-tune.def (X86_TUNE_AVOID_MFENCE):
11114 Rename from X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE.
11116 2020-07-20 Martin Sebor <msebor@redhat.com>
11118 PR middle-end/95189
11119 PR middle-end/95886
11120 * builtins.c (inline_expand_builtin_string_cmp): Rename...
11121 (inline_expand_builtin_bytecmp): ...to this.
11122 (builtin_memcpy_read_str): Don't expect data to be nul-terminated.
11123 (expand_builtin_memory_copy_args): Handle object representations
11124 with embedded nul bytes.
11125 (expand_builtin_memcmp): Same.
11126 (expand_builtin_strcmp): Adjust call to naming change.
11127 (expand_builtin_strncmp): Same.
11128 * expr.c (string_constant): Create empty strings with nonzero size.
11129 * fold-const.c (c_getstr): Rename locals and update comments.
11130 * tree.c (build_string): Accept null pointer argument.
11131 (build_string_literal): Same.
11132 * tree.h (build_string): Provide a default.
11133 (build_string_literal): Same.
11135 2020-07-20 Richard Biener <rguenther@suse.de>
11137 * cfganal.c (rev_post_order_and_mark_dfs_back_seme): Remove
11138 write-only post array.
11140 2020-07-20 Jakub Jelinek <jakub@redhat.com>
11143 * gimple-fold.c (fold_const_aggregate_ref_1): For COMPONENT_REF
11144 of a bitfield not aligned on byte boundaries try to
11145 fold_ctor_reference DECL_BIT_FIELD_REPRESENTATIVE if any and
11146 adjust it depending on endianity.
11148 2020-07-20 Jakub Jelinek <jakub@redhat.com>
11151 * fold-const.c (native_encode_initializer): Handle bit-fields.
11153 2020-07-20 Kewen Lin <linkw@linux.ibm.com>
11155 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11156 Set param_vect_partial_vector_usage to 0 explicitly.
11157 * doc/invoke.texi (vect-partial-vector-usage): Document new option.
11158 * optabs-query.c (get_len_load_store_mode): New function.
11159 * optabs-query.h (get_len_load_store_mode): New declare.
11160 * params.opt (vect-partial-vector-usage): New.
11161 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Add the
11162 handlings for vectorization using length-based partial vectors, call
11163 vect_gen_len for length generation, and rename some variables with
11164 items instead of scalars.
11165 (vect_set_loop_condition_partial_vectors): Add the handlings for
11166 vectorization using length-based partial vectors.
11167 (vect_do_peeling): Allow remaining eiters less than epilogue vf for
11168 LOOP_VINFO_USING_PARTIAL_VECTORS_P.
11169 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Init
11170 epil_using_partial_vectors_p.
11171 (_loop_vec_info::~_loop_vec_info): Call release_vec_loop_controls
11172 for lengths destruction.
11173 (vect_verify_loop_lens): New function.
11174 (vect_analyze_loop): Add handlings for epilogue of loop when it's
11175 marked to use vectorization using partial vectors.
11176 (vect_analyze_loop_2): Add the check to allow only one vectorization
11177 approach using partial vectorization at the same time. Check param
11178 vect-partial-vector-usage for partial vectors decision. Mark
11179 LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P if the epilogue is
11180 considerable to use partial vectors. Call release_vec_loop_controls
11181 for lengths destruction.
11182 (vect_estimate_min_profitable_iters): Adjust for loop vectorization
11183 using length-based partial vectors.
11184 (vect_record_loop_mask): Init factor to 1 for vectorization using
11185 mask-based partial vectors.
11186 (vect_record_loop_len): New function.
11187 (vect_get_loop_len): Likewise.
11188 * tree-vect-stmts.c (check_load_store_for_partial_vectors): Add
11189 checks for vectorization using length-based partial vectors. Factor
11190 some code to lambda function get_valid_nvectors.
11191 (vectorizable_store): Add handlings when using length-based partial
11193 (vectorizable_load): Likewise.
11194 (vect_gen_len): New function.
11195 * tree-vectorizer.h (struct rgroup_controls): Add field factor
11196 mainly for length-based partial vectors.
11197 (vec_loop_lens): New typedef.
11198 (_loop_vec_info): Add lens and epil_using_partial_vectors_p.
11199 (LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P): New macro.
11200 (LOOP_VINFO_LENS): Likewise.
11201 (LOOP_VINFO_FULLY_WITH_LENGTH_P): Likewise.
11202 (vect_record_loop_len): New declare.
11203 (vect_get_loop_len): Likewise.
11204 (vect_gen_len): Likewise.
11206 2020-07-20 Hans-Peter Nilsson <hp@bitrange.com>
11208 * config/mmix/mmix.c (mmix_option_override): Reinstate default
11209 integer-emitting targetm.asm_out pseudos when dumping detailed
11211 (mmix_assemble_integer): Update comment.
11213 2020-07-19 H.J. Lu <hjl.tools@gmail.com>
11217 * config/i386/cpuid.h: Add include guard.
11220 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
11223 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
11225 2020-07-18 Peter Bergner <bergner@linux.ibm.com>
11228 * config/rs6000/dfp.md (trunctdsd2): New define_insn.
11229 * config/rs6000/rs6000.md (define_attr "isa"): Add p9.
11230 (define_attr "enabled"): Handle p9.
11232 2020-07-17 Roger Sayle <roger@nextmovesoftware.com>
11234 * function.c (assign_parm_setup_block): Use the macro
11235 TRULY_NOOP_TRUNCATION_MODES_P instead of calling
11236 targetm.truly_noop_truncation directly.
11238 2020-07-17 H.J. Lu <hjl.tools@gmail.com>
11242 * config/i386/sse.md (VF_AVX512VL_VF1_128_256): Renamed to ...
11243 (VF1_AVX512ER_128_256): This. Drop DF vector modes.
11244 (rsqrt<mode>2): Replace VF_AVX512VL_VF1_128_256 with
11245 VF1_AVX512ER_128_256.
11247 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11249 * doc/sourcebuild.texi (dg-set-compiler-env-var,
11250 dg-set-target-env-var): Document.
11252 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11254 * config/arm/driver-arm.c (host_detect_local_cpu): Add GCC_CPUINFO.
11256 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11258 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
11261 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11263 * config/aarch64/driver-aarch64.c (INCLUDE_SET): New.
11264 (parse_field): Use std::string.
11265 (split_words, readline, find_field): New.
11266 (host_detect_local_cpu): Fix truncation issues.
11268 2020-07-17 Andrew Stubbs <ams@codesourcery.com>
11270 * config/gcn/mkoffload.c (EM_AMDGPU): Undefine before defining.
11271 (ELFOSABI_AMDGPU_HSA): Likewise.
11272 (ELFABIVERSION_AMDGPU_HSA): Likewise.
11273 (EF_AMDGPU_MACH_AMDGCN_GFX803): Likewise.
11274 (EF_AMDGPU_MACH_AMDGCN_GFX900): Likewise.
11275 (EF_AMDGPU_MACH_AMDGCN_GFX906): Likewise.
11276 (reserved): Delete.
11278 2020-07-17 Andrew Pinski <apinksi@marvell.com>
11279 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
11282 * config/aarch64/aarch64.c (aarch64_evpc_ins): New function.
11283 (aarch64_expand_vec_perm_const_1): Call it.
11284 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_copy_lane): Make
11285 public, and add a "@" prefix.
11287 2020-07-17 Andrew Pinski <apinksi@marvell.com>
11288 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
11291 * config/aarch64/aarch64.c (aarch64_evpc_reencode): New function.
11292 (aarch64_expand_vec_perm_const_1): Call it.
11294 2020-07-17 Zhiheng Xie <xiezhiheng@huawei.com>
11296 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11297 Add new field flags.
11298 (VAR1): Add new field FLAG in macro.
11314 (aarch64_general_fold_builtin): Likewise.
11315 (aarch64_general_gimple_fold_builtin): Likewise.
11316 * config/aarch64/aarch64-simd-builtins.def: Add default flag for
11317 each built-in function.
11318 * config/aarch64/geniterators.sh: Add new field in BUILTIN macro.
11320 2020-07-17 Andreas Krebbel <krebbel@linux.ibm.com>
11323 * config/s390/s390.c (s390_expand_insv): Invoke the movstrict
11324 expanders to generate the pattern.
11325 * config/s390/s390.md ("*movstricthi", "*movstrictqi"): Remove the
11326 '*' to have callable expanders.
11328 2020-07-16 Hans-Peter Nilsson <hp@axis.com>
11329 Segher Boessenkool <segher@kernel.crashing.org>
11332 * combine.c (is_just_move): Take an rtx_insn* as argument. Use
11335 2020-07-16 Uroš Bizjak <ubizjak@gmail.com>
11338 * config/i386/sync.md
11339 (peephole2 to remove unneded compare after CMPXCHG):
11340 New pattern, also handle XOR zeroing and load of -1 by OR.
11342 2020-07-16 Eric Botcazou <ebotcazou@adacore.com>
11344 * config/i386/i386.c (ix86_compute_frame_layout): Minor tweak.
11345 (ix86_adjust_stack_and_probe): Delete.
11346 (ix86_adjust_stack_and_probe_stack_clash): Rename to above and add
11347 PROTECTION_AREA parameter. If it is true, probe PROBE_INTERVAL plus
11348 a small dope beyond SIZE bytes.
11349 (ix86_emit_probe_stack_range): Use local variable.
11350 (ix86_expand_prologue): Adjust calls to ix86_adjust_stack_and_probe
11351 and tidy up the stack checking code.
11352 * explow.c (get_stack_check_protect): Fix head comment.
11353 (anti_adjust_stack_and_probe_stack_clash): Likewise.
11354 (allocate_dynamic_stack_space): Add comment.
11355 * tree-nested.c (lookup_field_for_decl): Set the DECL_IGNORED_P and
11356 TREE_NO_WARNING but not TREE_ADDRESSABLE flags on the field.
11358 2020-07-16 Andrew Stubbs <ams@codesourcery.com>
11360 * config/gcn/mkoffload.c: Include simple-object.h and elf.h.
11361 (EM_AMDGPU): New macro.
11362 (ELFOSABI_AMDGPU_HSA): New macro.
11363 (ELFABIVERSION_AMDGPU_HSA): New macro.
11364 (EF_AMDGPU_MACH_AMDGCN_GFX803): New macro.
11365 (EF_AMDGPU_MACH_AMDGCN_GFX900): New macro.
11366 (EF_AMDGPU_MACH_AMDGCN_GFX906): New macro.
11367 (R_AMDGPU_NONE): New macro.
11368 (R_AMDGPU_ABS32_LO): New macro.
11369 (R_AMDGPU_ABS32_HI): New macro.
11370 (R_AMDGPU_ABS64): New macro.
11371 (R_AMDGPU_REL32): New macro.
11372 (R_AMDGPU_REL64): New macro.
11373 (R_AMDGPU_ABS32): New macro.
11374 (R_AMDGPU_GOTPCREL): New macro.
11375 (R_AMDGPU_GOTPCREL32_LO): New macro.
11376 (R_AMDGPU_GOTPCREL32_HI): New macro.
11377 (R_AMDGPU_REL32_LO): New macro.
11378 (R_AMDGPU_REL32_HI): New macro.
11379 (reserved): New macro.
11380 (R_AMDGPU_RELATIVE64): New macro.
11381 (gcn_s1_name): Delete global variable.
11382 (gcn_s2_name): Delete global variable.
11383 (gcn_o_name): Delete global variable.
11384 (gcn_cfile_name): Delete global variable.
11385 (files_to_cleanup): New global variable.
11386 (offload_abi): New global variable.
11387 (tool_cleanup): Use files_to_cleanup, not explicit list.
11388 (copy_early_debug_info): New function.
11389 (main): New local variables gcn_s1_name, gcn_s2_name, gcn_o_name,
11391 Create files_to_cleanup obstack.
11392 Recognize -march options.
11393 Copy early debug info from input .o files.
11395 2020-07-16 Andrea Corallo <andrea.corallo@arm.com>
11397 * Makefile.in (TAGS): Remove 'params.def'.
11399 2020-07-16 Roger Sayle <roger@nextmovesoftware.com>
11401 * target.def (TARGET_TRULY_NOOP_TRUNCATION): Clarify that
11402 targets that return false, indicating SUBREGs shouldn't be
11403 used, also need to provide a trunc?i?i2 optab that performs this
11405 * doc/tm.texi: Regenerate.
11407 2020-07-15 Uroš Bizjak <ubizjak@gmail.com>
11410 * config/i386/sync.md
11411 (peephole2 to remove unneded compare after CMPXCHG): New pattern.
11413 2020-07-15 Jakub Jelinek <jakub@redhat.com>
11416 * omp-general.h (struct omp_for_data): Rename min_inner_iterations
11417 member to first_inner_iterations, adjust comment.
11418 * omp-general.c (omp_extract_for_data): Adjust for the above change.
11419 Always use n1first and n2first to compute it, rather than depending
11420 on single_nonrect_cond_code. Similarly, always compute factor
11421 as (m2 - m1) * outer_step / inner_step rather than sometimes m1 - m2
11422 depending on single_nonrect_cond_code.
11423 * omp-expand.c (expand_omp_for_init_vars): Rename min_inner_iterations
11424 to first_inner_iterations and min_inner_iterationsd to
11425 first_inner_iterationsd.
11427 2020-07-15 Jakub Jelinek <jakub@redhat.com>
11430 * config/i386/avx512fintrin.h (_mm512_cmpeq_pd_mask,
11431 _mm512_mask_cmpeq_pd_mask, _mm512_cmplt_pd_mask,
11432 _mm512_mask_cmplt_pd_mask, _mm512_cmple_pd_mask,
11433 _mm512_mask_cmple_pd_mask, _mm512_cmpunord_pd_mask,
11434 _mm512_mask_cmpunord_pd_mask, _mm512_cmpneq_pd_mask,
11435 _mm512_mask_cmpneq_pd_mask, _mm512_cmpnlt_pd_mask,
11436 _mm512_mask_cmpnlt_pd_mask, _mm512_cmpnle_pd_mask,
11437 _mm512_mask_cmpnle_pd_mask, _mm512_cmpord_pd_mask,
11438 _mm512_mask_cmpord_pd_mask, _mm512_cmpeq_ps_mask,
11439 _mm512_mask_cmpeq_ps_mask, _mm512_cmplt_ps_mask,
11440 _mm512_mask_cmplt_ps_mask, _mm512_cmple_ps_mask,
11441 _mm512_mask_cmple_ps_mask, _mm512_cmpunord_ps_mask,
11442 _mm512_mask_cmpunord_ps_mask, _mm512_cmpneq_ps_mask,
11443 _mm512_mask_cmpneq_ps_mask, _mm512_cmpnlt_ps_mask,
11444 _mm512_mask_cmpnlt_ps_mask, _mm512_cmpnle_ps_mask,
11445 _mm512_mask_cmpnle_ps_mask, _mm512_cmpord_ps_mask,
11446 _mm512_mask_cmpord_ps_mask): Move outside of __OPTIMIZE__ guarded
11449 2020-07-15 Jakub Jelinek <jakub@redhat.com>
11452 * builtins.c: Include gimple-ssa.h, tree-ssa-live.h and
11454 (expand_expr_force_mode): If exp is a SSA_NAME with different mode
11455 from MODE and get_gimple_for_ssa_name is a cast from MODE, use the
11458 2020-07-15 Jiufu Guo <guojiufu@cn.ibm.com>
11460 * config/rs6000/rs6000.c (rs6000_loop_unroll_adjust): Refine hook.
11462 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
11464 * config/rs6000/rs6000.md (rotldi3_insert_sf): Add TARGET_POWERPC64
11466 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add
11467 TARGET_POWERPC64 requirement to TARGET_P8_VECTOR case.
11469 2020-07-14 Lewis Hyatt <lhyatt@gmail.com>
11471 PR preprocessor/49973
11473 * common.opt: Handle -ftabstop here instead of in c-family
11474 options. Add -fdiagnostics-column-unit= and
11475 -fdiagnostics-column-origin= options.
11476 * opts.c (common_handle_option): Handle the new options.
11477 * diagnostic-format-json.cc (json_from_expanded_location): Add
11478 diagnostic_context argument. Use it to convert column numbers as per
11480 (json_from_location_range): Likewise.
11481 (json_from_fixit_hint): Likewise.
11482 (json_end_diagnostic): Pass the new context argument to helper
11483 functions above. Add "column-origin" field to the output.
11484 (test_unknown_location): Add the new context argument to calls to
11486 (test_bad_endpoints): Likewise.
11487 * diagnostic-show-locus.c
11488 (exploc_with_display_col::exploc_with_display_col): Support
11490 (layout_point::layout_point): Make use of class
11491 exploc_with_display_col.
11492 (layout_range::layout_range): Likewise.
11493 (struct line_bounds): Clarify that the units are now always
11494 display columns. Rename members accordingly. Add constructor.
11495 (layout::print_source_line): Add support for tab expansion.
11496 (make_range): Adapt to class layout_range changes.
11497 (layout::maybe_add_location_range): Likewise.
11498 (layout::layout): Adapt to class exploc_with_display_col changes.
11499 (layout::calculate_x_offset_display): Support tabstop parameter.
11500 (layout::print_annotation_line): Adapt to struct line_bounds changes.
11501 (layout::print_line): Likewise.
11502 (line_label::line_label): Add diagnostic_context argument.
11503 (get_affected_range): Likewise.
11504 (get_printed_columns): Likewise.
11505 (layout::print_any_labels): Adapt to struct line_label changes.
11506 (class correction): Add m_tabstop member.
11507 (correction::correction): Add tabstop argument.
11508 (correction::compute_display_cols): Use m_tabstop.
11509 (class line_corrections): Add m_context member.
11510 (line_corrections::line_corrections): Add diagnostic_context argument.
11511 (line_corrections::add_hint): Use m_context to handle tabstops.
11512 (layout::print_trailing_fixits): Adapt to class line_corrections
11514 (test_layout_x_offset_display_utf8): Support tabstop parameter.
11515 (test_layout_x_offset_display_tab): New selftest.
11516 (test_one_liner_colorized_utf8): Likewise.
11517 (test_tab_expansion): Likewise.
11518 (test_diagnostic_show_locus_one_liner_utf8): Call the new tests.
11519 (diagnostic_show_locus_c_tests): Likewise.
11520 (test_overlapped_fixit_printing): Adapt to helper class and
11522 (test_overlapped_fixit_printing_utf8): Likewise.
11523 (test_overlapped_fixit_printing_2): Likewise.
11524 * diagnostic.h (enum diagnostics_column_unit): New enum.
11525 (struct diagnostic_context): Add members for the new options.
11526 (diagnostic_converted_column): Declare.
11527 (json_from_expanded_location): Add new context argument.
11528 * diagnostic.c (diagnostic_initialize): Initialize new members.
11529 (diagnostic_converted_column): New function.
11530 (maybe_line_and_column): Be willing to output a column of 0.
11531 (diagnostic_get_location_text): Convert column number as per the new
11533 (diagnostic_report_current_module): Likewise.
11534 (assert_location_text): Add origin and column_unit arguments for
11535 testing the new functionality.
11536 (test_diagnostic_get_location_text): Test the new functionality.
11537 * doc/invoke.texi: Document the new options and behavior.
11538 * input.h (location_compute_display_column): Add tabstop argument.
11539 * input.c (location_compute_display_column): Likewise.
11540 (test_cpp_utf8): Add selftests for tab expansion.
11541 * tree-diagnostic-path.cc (default_tree_make_json_for_path): Pass the
11542 new context argument to json_from_expanded_location().
11544 2020-07-14 Jakub Jelinek <jakub@redhat.com>
11546 PR middle-end/96194
11547 * expr.c (expand_constructor): Don't create temporary for store to
11548 volatile MEM if exp has an addressable type.
11550 2020-07-14 Nathan Sidwell <nathan@acm.org>
11552 * hash-map.h (hash_map::get): Note it is a pointer to value.
11553 * incpath.h (incpath_kind): Align comments.
11555 2020-07-14 Nathan Sidwell <nathan@acm.org>
11557 * tree-core.h (tree_decl_with_vis, tree_function_decl):
11558 Note additional padding on 64-bits
11559 * tree.c (cache_integer_cst): Note why no caching of enum literals.
11560 (get_tree_code_name): Robustify error case.
11562 2020-07-14 Nathan Sidwell <nathan@acm.org>
11564 * doc/gty.texi: Fic gt_cleare_cache name.
11565 * doc/invoke.texi: Remove duplicate opindex Wabi-tag.
11567 2020-07-14 Jakub Jelinek <jakub@redhat.com>
11569 * omp-general.h (struct omp_for_data): Add adjn1 member.
11570 * omp-general.c (omp_extract_for_data): For non-rect loop, punt on
11571 count computing if n1, n2 or step are not INTEGER_CST earlier.
11572 Narrow the outer iterator range if needed so that non-rect loop
11573 has at least one iteration for each outer range iteration. Compute
11575 * omp-expand.c (expand_omp_for_init_vars): Use adjn1 if non-NULL
11576 instead of the outer loop's n1.
11578 2020-07-14 Matthias Klose <doko@ubuntu.com>
11581 * lto-wrapper.c (merge_and_complain): Add decoded options as parameter,
11582 error on different values for -fcf-protection.
11583 (append_compiler_options): Pass -fcf-protection option.
11584 (find_and_merge_options): Add decoded options as parameter,
11585 pass decoded_options to merge_and_complain.
11586 (run_gcc): Pass decoded options to find_and_merge_options.
11587 * lto-opts.c (lto_write_options): Pass -fcf-protection option.
11589 2020-07-13 Alan Modra <amodra@gmail.com>
11591 * config/rs6000/rs6000.md (sibcall_local): Merge sibcall_local32
11592 and sibcall_local64.
11593 (sibcall_value_local): Similarly.
11595 2020-07-13 Nathan Sidwell <nathan@acm.org>
11597 * Makefile.in (distclean): Remove long gone cxxmain.c
11599 2020-07-13 H.J. Lu <hjl.tools@gmail.com>
11602 * config/i386/i386.md (cmpstrnsi): Pass a copy of the string
11603 length to cmpstrnqi patterns.
11605 2020-07-13 Jakub Jelinek <jakub@redhat.com>
11608 * ipa-fnsummary.c (analyze_function_body): Treat NULL bb->aux
11609 as false predicate.
11611 2020-07-13 Richard Biener <rguenther@suse.de>
11613 PR tree-optimization/96163
11614 * tree-vect-slp.c (vect_schedule_slp_instance): Put new stmts
11615 at least after region begin.
11617 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
11619 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
11620 __ARM_FEATURE_PAC_DEFAULT support.
11622 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
11625 * doc/extend.texi: Update the text for __builtin_return_address.
11627 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
11630 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
11631 Disable return address signing if __builtin_eh_return is used.
11633 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
11637 * config/aarch64/aarch64-protos.h (aarch64_return_addr_rtx): Declare.
11638 * config/aarch64/aarch64.c (aarch64_return_addr_rtx): New.
11639 (aarch64_return_addr): Use aarch64_return_addr_rtx.
11640 * config/aarch64/aarch64.h (PROFILE_HOOK): Likewise.
11642 2020-07-13 Richard Sandiford <richard.sandiford@arm.com>
11644 PR middle-end/95114
11645 * tree.h (virtual_method_call_p): Add a default-false parameter
11646 that indicates whether the function is being called from dump
11648 (obj_type_ref_class): Likewise.
11649 * tree.c (virtual_method_call_p): Likewise.
11650 * ipa-devirt.c (obj_type_ref_class): Likewise. Lazily add ODR
11651 type information for the type when the parameter is false.
11652 * tree-pretty-print.c (dump_generic_node): Update calls to
11653 virtual_method_call_p and obj_type_ref_class accordingly.
11655 2020-07-13 Julian Brown <julian@codesourcery.com>
11656 Thomas Schwinge <thomas@codesourcery.com>
11658 * gimplify.c (gimplify_scan_omp_clauses): Do not strip
11659 GOMP_MAP_TO_PSET/GOMP_MAP_POINTER for OpenACC enter/exit data
11660 directives (see also PR92929).
11662 2020-07-13 Roger Sayle <roger@nextmovesoftware.com>
11664 * convert.c (convert_to_integer_1): Narrow integer operations
11665 even on targets that require explicit truncation instructions.
11667 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
11670 * config/cris/cris-passes.def: New file.
11671 * config/cris/t-cris (PASSES_EXTRA): Add cris-passes.def.
11672 * config/cris/cris.c: Add infrastructure bits and pass execute
11673 function cris_postdbr_cmpelim.
11674 * config/cris/cris-protos.h (make_pass_cris_postdbr_cmpelim): Declare.
11676 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
11678 * config/cris/t-cris: Remove gt-cris.h-related excessive cargo.
11680 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
11683 * config/cris/cris.md ("*add<mode>3_addi"): New splitter.
11684 ("*addi_b_<mode>"): New pattern.
11685 ("*addsi3<setnz>"): Remove stale %-related comment.
11687 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
11689 * config/cris/cris.md ("setnz_subst", "setnz_subst", "setcc_subst"):
11690 Use match_dup in output template, not match_operand.
11692 2020-07-13 Richard Biener <rguenther@suse.de>
11694 * var-tracking.c (bb_heap_node_t): Remove unused typedef.
11695 (vt_find_locations): Eliminate visited bitmap in favor of
11696 RPO order check. Dump statistics about the number of
11697 local BB dataflow computes.
11699 2020-07-13 Richard Biener <rguenther@suse.de>
11701 PR middle-end/94600
11702 * expr.c (expand_constructor): Make a temporary also if we're
11703 storing to volatile memory.
11705 2020-07-13 Xionghu Luo <luoxhu@linux.ibm.com>
11707 * config/rs6000/rs6000.md (rotl_unspec): New
11708 define_insn_and_split.
11710 2020-07-13 Xionghu Luo <luoxhu@linux.ibm.com>
11712 * config/rs6000/rs6000.c (rs6000_expand_vector_init):
11713 Move V4SF to V4SI, init vector like V4SI and move to V4SF back.
11715 2020-07-11 Roger Sayle <roger@nextmovesoftware.com>
11717 * internal-fn.c (expand_mul_overflow): When checking for signed
11718 overflow from a widening multiplication, we access the truncated
11719 lowpart RES twice, so keep this value in a pseudo register.
11721 2020-07-11 Richard Sandiford <richard.sandiford@arm.com>
11723 PR tree-optimization/96146
11724 * value-range.cc (value_range::set): Only decompose POLY_INT_CST
11725 bounds to integers for VR_RANGE. Decay to VR_VARYING for anti-ranges
11726 involving POLY_INT_CSTs.
11728 2020-07-10 David Edelsohn <dje.gcc@gmail.com>
11731 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Only
11732 create named section for VAR_DECL or FUNCTION_DECL.
11734 2020-07-10 Joseph Myers <joseph@codesourcery.com>
11736 * glimits.h [__STDC_VERSION__ > 201710L] (BOOL_MAX, BOOL_WIDTH):
11739 2020-07-10 Alexander Popov <alex.popov@linux.com>
11741 * shrink-wrap.c (try_shrink_wrapping): Improve debug output.
11743 2020-07-10 Richard Sandiford <richard.sandiford@arm.com>
11745 PR middle-end/96151
11746 * expr.c (expand_expr_real_2): When reducing bit fields,
11747 clear the target if it has a different mode from the expression.
11748 (reduce_to_bit_field_precision): Don't do that here. Instead
11749 assert that the target already has the correct mode.
11751 2020-07-10 Richard Sandiford <richard.sandiford@arm.com>
11755 * config/arm/arm.c (arm_attribute_table): Add
11756 "Advanced SIMD type".
11757 (arm_comp_type_attributes): Check that the "Advanced SIMD type"
11758 attributes are equal.
11759 * config/arm/arm-builtins.c: Include stringpool.h and
11761 (arm_mangle_builtin_vector_type): Use the mangling recorded
11762 in the "Advanced SIMD type" attribute.
11763 (arm_init_simd_builtin_types): Add an "Advanced SIMD type"
11764 attribute to each Advanced SIMD type, using the mangled type
11765 as the attribute's single argument.
11767 2020-07-10 Carl Love <cel@us.ibm.com>
11769 * config/rs6000/vsx.md (VSX_MM): New define_mode_iterator.
11770 (VSX_MM4): New define_mode_iterator.
11771 (vec_mtvsrbmi): New define_insn.
11772 (vec_mtvsr_<mode>): New define_insn.
11773 (vec_cntmb_<mode>): New define_insn.
11774 (vec_extract_<mode>): New define_insn.
11775 (vec_expand_<mode>): New define_insn.
11776 (define_c_enum unspec): Add entries UNSPEC_MTVSBM, UNSPEC_VCNTMB,
11777 UNSPEC_VEXTRACT, UNSPEC_VEXPAND.
11778 * config/rs6000/altivec.h ( vec_genbm, vec_genhm, vec_genwm,
11779 vec_gendm, vec_genqm, vec_cntm, vec_expandm, vec_extractm): Add
11781 * config/rs6000/rs6000-builtin.def: Add defines BU_P10_2, BU_P10_1.
11782 (BU_P10_1): Add definitions for mtvsrbm, mtvsrhm, mtvsrwm,
11783 mtvsrdm, mtvsrqm, vexpandmb, vexpandmh, vexpandmw, vexpandmd,
11784 vexpandmq, vextractmb, vextractmh, vextractmw, vextractmd, vextractmq.
11785 (BU_P10_2): Add definitions for cntmbb, cntmbh, cntmbw, cntmbd.
11786 (BU_P10_OVERLOAD_1): Add definitions for mtvsrbm, mtvsrhm,
11787 mtvsrwm, mtvsrdm, mtvsrqm, vexpandm, vextractm.
11788 (BU_P10_OVERLOAD_2): Add defition for cntm.
11789 * config/rs6000/rs6000-call.c (rs6000_expand_binop_builtin): Add
11790 checks for CODE_FOR_vec_cntmbb_v16qi, CODE_FOR_vec_cntmb_v8hi,
11791 CODE_FOR_vec_cntmb_v4si, CODE_FOR_vec_cntmb_v2di.
11792 (altivec_overloaded_builtins): Add overloaded argument entries for
11793 P10_BUILTIN_VEC_MTVSRBM, P10_BUILTIN_VEC_MTVSRHM,
11794 P10_BUILTIN_VEC_MTVSRWM, P10_BUILTIN_VEC_MTVSRDM,
11795 P10_BUILTIN_VEC_MTVSRQM, P10_BUILTIN_VEC_VCNTMBB,
11796 P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
11797 P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
11798 P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
11799 P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
11800 P10_BUILTIN_VEXPANDMQ, P10_BUILTIN_VEXTRACTMB,
11801 P10_BUILTIN_VEXTRACTMH, P10_BUILTIN_VEXTRACTMW,
11802 P10_BUILTIN_VEXTRACTMD, P10_BUILTIN_VEXTRACTMQ.
11803 (builtin_function_type): Add case entries for P10_BUILTIN_MTVSRBM,
11804 P10_BUILTIN_MTVSRHM, P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
11805 P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
11806 P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
11807 P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
11808 P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
11809 P10_BUILTIN_VEXPANDMQ.
11810 * config/rs6000/rs6000-builtin.def (altivec_overloaded_builtins): Add
11811 entries for MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM, VCNTM,
11812 VEXPANDM, VEXTRACTM.
11814 2020-07-10 Bill Seurer, 507-253-3502, seurer@us.ibm.com <(no_default)>
11817 * config/rs6000/rs6000-call.c: Add new type v16qi_ftype_pcvoid.
11818 (altivec_init_builtins) Change __builtin_altivec_mask_for_load to use
11819 v16qi_ftype_pcvoid with correct number of parameters.
11821 2020-07-10 H.J. Lu <hjl.tools@gmail.com>
11824 * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Check
11825 TARGET_AVX512VL when enabling FMA.
11827 2020-07-10 Andrea Corallo <andrea.corallo@arm.com>
11828 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
11829 Iain Apreotesei <iain.apreotesei@arm.com>
11831 * config/arm/arm-protos.h (arm_target_insn_ok_for_lob): New
11833 * config/arm/arm.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
11834 (arm_invalid_within_doloop): Implement invalid_within_doloop hook.
11835 (arm_target_insn_ok_for_lob): New function.
11836 * config/arm/arm.h (TARGET_HAVE_LOB): Define macro.
11837 * config/arm/thumb2.md (*doloop_end_internal, doloop_begin)
11838 (dls_insn): Add new patterns.
11839 (doloop_end): Modify to select LR when LOB is available.
11840 * config/arm/unspecs.md: Add new unspec.
11841 * doc/sourcebuild.texi (arm_v8_1_lob_ok)
11842 (arm_thumb2_ok_no_arm_v8_1_lob): Document new target supports
11845 2020-07-10 Richard Biener <rguenther@suse.de>
11847 PR tree-optimization/96133
11848 * gimple-fold.c (fold_array_ctor_reference): Do not
11849 recurse to folding a CTOR that does not fully cover the
11852 2020-07-10 Cui,Lili <lili.cui@intel.com>
11854 * common/config/i386/cpuinfo.h
11855 (get_intel_cpu): Handle sapphirerapids.
11856 * common/config/i386/i386-common.c
11857 (processor_names): Add sapphirerapids and alderlake.
11858 (processor_alias_table): Add sapphirerapids and alderlake.
11859 * common/config/i386/i386-cpuinfo.h
11860 (processor_subtypes): Add INTEL_COREI7_ALDERLAKE and
11861 INTEL_COREI7_ALDERLAKE.
11862 * config.gcc: Add -march=sapphirerapids and alderlake.
11863 * config/i386/driver-i386.c
11864 (host_detect_local_cpu) Handle sapphirerapids and alderlake.
11865 * config/i386/i386-c.c
11866 (ix86_target_macros_internal): Handle sapphirerapids and alderlake.
11867 * config/i386/i386-options.c
11868 (m_SAPPHIRERAPIDS) : Define.
11869 (m_ALDERLAKE): Ditto.
11870 (m_CORE_AVX512) : Add m_SAPPHIRERAPIDS.
11871 (processor_cost_table): Add sapphirerapids and alderlake.
11872 (ix86_option_override_internal) Handle PTA_WAITPKG, PTA_ENQCMD,
11873 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK.
11874 * config/i386/i386.h
11875 (ix86_size_cost) : Define SAPPHIRERAPIDS and ALDERLAKE.
11876 (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
11877 PROCESSOR_ALDERLAKE.
11879 (PTA_CLDEMOTE): Ditto.
11880 (PTA_SERIALIZE): Ditto.
11881 (PTA_TSXLDTRK): New.
11882 (PTA_SAPPHIRERAPIDS): Ditto.
11883 (PTA_ALDERLAKE): Ditto.
11884 (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
11885 PROCESSOR_ALDERLAKE.
11886 * doc/extend.texi: Add sapphirerapids and alderlake.
11887 * doc/invoke.texi: Add sapphirerapids and alderlake.
11889 2020-07-10 Martin Liska <mliska@suse.cz>
11891 * dumpfile.c [profile-report]: Add new profile dump.
11892 * dumpfile.h (enum tree_dump_index): Ad TDI_profile_report.
11893 * passes.c (pass_manager::dump_profile_report): Change stderr
11896 2020-07-10 Kewen Lin <linkw@linux.ibm.com>
11898 * tree-vect-loop.c (vect_transform_loop): Use LOOP_VINFO_NITERS which
11899 is adjusted by considering peeled prologue for non
11900 vect_use_loop_mask_for_alignment_p cases.
11902 2020-07-09 Peter Bergner <bergner@linux.ibm.com>
11905 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Define the MMA
11906 specific types __vector_quad and __vector_pair, and initialize the
11907 MMA built-ins if TARGET_EXTRA_BUILTINS is set.
11908 (mma_init_builtins): Don't test for mask set in rs6000_builtin_mask.
11909 Remove now unneeded mask variable.
11910 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add the
11911 OPTION_MASK_MMA flag for power10 if not already set.
11913 2020-07-09 Richard Biener <rguenther@suse.de>
11915 PR tree-optimization/96133
11916 * tree-vect-slp.c (vect_build_slp_tree_1): Compare load_p
11917 status between stmts.
11919 2020-07-09 H.J. Lu <hjl.tools@gmail.com>
11922 * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Enable FMA.
11923 * config/i386/sse.md (VF_AVX512VL_VF1_128_256): New.
11924 (rsqrt<mode>2): Replace VF1_128_256 with VF_AVX512VL_VF1_128_256.
11925 (rsqrtv16sf2): Removed.
11927 2020-07-09 Richard Biener <rguenther@suse.de>
11929 * tree-vectorizer.h (vect_verify_datarefs_alignment): Remove.
11930 (vect_slp_analyze_and_verify_instance_alignment): Rename to ...
11931 (vect_slp_analyze_instance_alignment): ... this.
11932 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove.
11933 (vect_verify_datarefs_alignment): Likewise.
11934 (vect_enhance_data_refs_alignment): Do not call
11935 vect_verify_datarefs_alignment.
11936 (vect_slp_analyze_node_alignment): Rename from
11937 vect_slp_analyze_and_verify_node_alignment and do not
11938 call verify_data_ref_alignment.
11939 (vect_slp_analyze_instance_alignment): Rename from
11940 vect_slp_analyze_and_verify_instance_alignment.
11941 * tree-vect-stmts.c (vectorizable_store): Dump when
11942 we vectorize an unaligned access.
11943 (vectorizable_load): Likewise.
11944 * tree-vect-loop.c (vect_analyze_loop_2): Do not call
11945 vect_verify_datarefs_alignment.
11946 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust.
11948 2020-07-09 Bin Cheng <bin.cheng@linux.alibaba.com>
11950 PR tree-optimization/95804
11951 * tree-loop-distribution.c (break_alias_scc_partitions): Force
11952 negative post order to reduction partition.
11954 2020-07-09 Jakub Jelinek <jakub@redhat.com>
11956 * omp-general.h (struct omp_for_data): Add min_inner_iterations
11957 and factor members.
11958 * omp-general.c (omp_extract_for_data): Initialize them and remember
11959 them in OMP_CLAUSE_COLLAPSE_COUNT if needed and restore from there.
11960 * omp-expand.c (expand_omp_for_init_counts): Fix up computation of
11961 counts[fd->last_nonrect] if fd->loop.n2 is INTEGER_CST.
11962 (expand_omp_for_init_vars): For
11963 fd->first_nonrect + 1 == fd->last_nonrect loops with for now
11964 INTEGER_CST fd->loop.n2 find quadratic equation roots instead of
11965 using fallback method when possible.
11967 2020-07-09 Omar Tahir <omar.tahir@arm.com>
11969 * ira.c (move_unallocated_pseudos): Zero first_moveable_pseudo and
11970 last_moveable_pseudo before returning.
11972 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
11974 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
11975 __ARM_FEATURE_BTI_DEFAULT support.
11977 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
11979 * config/aarch64/aarch64-protos.h (aarch64_indirect_call_asm):
11981 * config/aarch64/aarch64.c (aarch64_regno_regclass): Handle new
11982 stub registers class.
11983 (aarch64_class_max_nregs): Likewise.
11984 (aarch64_register_move_cost): Likewise.
11985 (aarch64_sls_shared_thunks): Global array to store stub labels.
11986 (aarch64_sls_emit_function_stub): New.
11987 (aarch64_create_blr_label): New.
11988 (aarch64_sls_emit_blr_function_thunks): New.
11989 (aarch64_sls_emit_shared_blr_thunks): New.
11990 (aarch64_asm_file_end): New.
11991 (aarch64_indirect_call_asm): New.
11992 (TARGET_ASM_FILE_END): Use aarch64_asm_file_end.
11993 (TARGET_ASM_FUNCTION_EPILOGUE): Use
11994 aarch64_sls_emit_blr_function_thunks.
11995 * config/aarch64/aarch64.h (STB_REGNUM_P): New.
11996 (enum reg_class): Add STUB_REGS class.
11997 (machine_function): Introduce `call_via` array for
11998 function-local stub labels.
11999 * config/aarch64/aarch64.md (*call_insn, *call_value_insn): Use
12000 aarch64_indirect_call_asm to emit code when hardening BLR
12002 * config/aarch64/constraints.md (Ucr): New constraint
12003 representing registers for indirect calls. Is GENERAL_REGS
12004 usually, and STUB_REGS when hardening BLR instruction against
12006 * config/aarch64/predicates.md (aarch64_general_reg): STUB_REGS class
12007 is also a general register.
12009 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
12011 * config/aarch64/aarch64-protos.h (aarch64_sls_barrier): New.
12012 * config/aarch64/aarch64.c (aarch64_output_casesi): Emit
12013 speculation barrier after BR instruction if needs be.
12014 (aarch64_trampoline_init): Handle ptr_mode value & adjust size
12016 (aarch64_sls_barrier): New.
12017 (aarch64_asm_trampoline_template): Add needed barriers.
12018 * config/aarch64/aarch64.h (AARCH64_ISA_SB): New.
12020 (TRAMPOLINE_SIZE): Account for barrier.
12021 * config/aarch64/aarch64.md (indirect_jump, *casesi_dispatch,
12022 simple_return, *do_return, *sibcall_insn, *sibcall_value_insn):
12023 Emit barrier if needs be, also account for possible barrier using
12024 "sls_length" attribute.
12025 (sls_length): New attribute.
12026 (length): Determine default using any non-default sls_length
12029 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
12031 * config/aarch64/aarch64-protos.h (aarch64_harden_sls_retbr_p):
12033 (aarch64_harden_sls_blr_p): New.
12034 * config/aarch64/aarch64.c (enum aarch64_sls_hardening_type):
12036 (aarch64_harden_sls_retbr_p): New.
12037 (aarch64_harden_sls_blr_p): New.
12038 (aarch64_validate_sls_mitigation): New.
12039 (aarch64_override_options): Parse options for SLS mitigation.
12040 * config/aarch64/aarch64.opt (-mharden-sls): New option.
12041 * doc/invoke.texi: Document new option.
12043 2020-07-09 Kewen Lin <linkw@linux.ibm.com>
12045 * tree-vect-stmts.c (vectorizable_condition): Prohibit vectorization
12046 with partial vectors explicitly excepting for EXTRACT_LAST_REDUCTION
12047 or nested-cycle reduction.
12049 2020-07-09 Kewen Lin <linkw@linux.ibm.com>
12051 * tree-vect-loop.c (vect_analyze_loop_2): Update dumping string
12052 for fully masking to be more common.
12054 2020-07-09 Kito Cheng <kito.cheng@sifive.com>
12056 * config/riscv/riscv.md (get_thread_pointer<mode>): New.
12057 (TP_REGNUM): Ditto.
12058 * doc/extend.texi (Target Builtins): Add RISC-V built-in section.
12059 Document __builtin_thread_pointer.
12061 2020-07-09 Kito Cheng <kito.cheng@sifive.com>
12063 * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
12064 Abort if any arguments on stack.
12066 2020-07-08 Eric Botcazou <ebotcazou@adacore.com>
12068 * gimple-fold.c (gimple_fold_builtin_memory_op): Do not fold if
12069 either type has reverse scalar storage order.
12070 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not propagate through
12071 a memory copy if either type has reverse scalar storage order.
12073 2020-07-08 Tobias Burnus <tobias@codesourcery.com>
12075 * config/gcn/mkoffload.c (compile_native, main): Pass -fPIC/-fpic
12076 on to the native compiler, if used.
12077 * config/nvptx/mkoffload.c (compile_native, main): Likewise.
12079 2020-07-08 Will Schmidt <will_schmidt@vnet.ibm.com>
12081 * config/rs6000/altivec.h (vec_vmsumudm): New define.
12082 * config/rs6000/altivec.md (UNSPEC_VMSUMUDM): New unspec.
12083 (altivec_vmsumudm): New define_insn.
12084 * config/rs6000/rs6000-builtin.def (altivec_vmsumudm): New BU_ALTIVEC_3
12085 entry. (vmsumudm): New BU_ALTIVEC_OVERLOAD_3 entry.
12086 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add entries for
12087 ALTIVEC_BUILTIN_VMSUMUDM variants of vec_msum.
12088 * doc/extend.texi: Add document for vmsumudm behind vmsum.
12090 2020-07-08 Richard Biener <rguenther@suse.de>
12092 * tree-vect-stmts.c (get_group_load_store_type): Pass
12093 in the SLP node and the alignment support scheme output.
12095 (get_load_store_type): Likewise.
12096 (vectorizable_store): Adjust.
12097 (vectorizable_load): Likewise.
12099 2020-07-08 Richard Sandiford <richard.sandiford@arm.com>
12101 PR middle-end/95694
12102 * expr.c (expand_expr_real_2): Get the mode from the type rather
12103 than the rtx, and assert that it is consistent with the mode of
12104 the rtx (where known). Optimize all constant integers, not just
12105 those that can be represented in poly_int64.
12107 2020-07-08 Kewen Lin <linkw@linux.ibm.com>
12109 * config/rs6000/vsx.md (len_load_v16qi): New define_expand.
12110 (len_store_v16qi): Likewise.
12112 2020-07-08 Kewen Lin <linkw@linux.ibm.com>
12114 * doc/md.texi (len_load_@var{m}): Document.
12115 (len_store_@var{m}): Likewise.
12116 * internal-fn.c (len_load_direct): New macro.
12117 (len_store_direct): Likewise.
12118 (expand_len_load_optab_fn): Likewise.
12119 (expand_len_store_optab_fn): Likewise.
12120 (direct_len_load_optab_supported_p): Likewise.
12121 (direct_len_store_optab_supported_p): Likewise.
12122 (expand_mask_load_optab_fn): New macro. Original renamed to ...
12123 (expand_partial_load_optab_fn): ... here. Add handlings for
12125 (expand_mask_store_optab_fn): New macro. Original renamed to ...
12126 (expand_partial_store_optab_fn): ... here. Add handlings for
12128 (internal_load_fn_p): Handle IFN_LEN_LOAD.
12129 (internal_store_fn_p): Handle IFN_LEN_STORE.
12130 (internal_fn_stored_value_index): Handle IFN_LEN_STORE.
12131 * internal-fn.def (LEN_LOAD): New internal function.
12132 (LEN_STORE): Likewise.
12133 * optabs.def (len_load_optab, len_store_optab): New optab.
12135 2020-07-07 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
12137 * config/aarch64/aarch64.c (thunderx2t99_regmove_cost,
12138 thunderx2t99_vector_cost): Likewise.
12140 2020-07-07 Richard Biener <rguenther@suse.de>
12142 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Fix
12143 group overlap condition to allow negative step DR groups.
12144 * tree-vect-stmts.c (get_group_load_store_type): For
12145 multi element SLP groups force VMAT_STRIDED_SLP when the step
12148 2020-07-07 Qian Jianhua <qianjh@cn.fujitsu.com>
12150 * doc/generic.texi: Fix typo.
12152 2020-07-07 Richard Biener <rguenther@suse.de>
12154 * lto-streamer-out.c (cmp_symbol_files): Use the computed
12155 order map to sort symbols from the same sub-file together.
12156 (lto_output): Compute a map of sub-file to an order number
12157 it appears in the symbol output array.
12159 2020-07-06 Richard Biener <rguenther@suse.de>
12161 PR tree-optimization/96075
12162 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12163 TYPE_SIZE_UNIT of the vector component type instead of DR_STEP
12164 for the misalignment calculation for negative step.
12166 2020-07-06 Roger Sayle <roger@nextmovesoftware.com>
12168 * config/nvptx/nvptx.md (*vadd_addsi4): New instruction.
12169 (*vsub_addsi4): New instruction.
12171 2020-07-06 Hans-Peter Nilsson <hp@axis.com>
12173 * config/cris/cris.md (movulsr): New peephole2.
12175 2020-07-06 Hans-Peter Nilsson <hp@axis.com>
12177 * config/cris/sync.md ("cris_atomic_fetch_<atomic_op_name><mode>_1"):
12178 Correct gcc_assert of overlapping operands.
12180 2020-07-05 Hans-Peter Nilsson <hp@axis.com>
12182 * config/cris/cris.c (cris_select_cc_mode): Always return
12183 CC_NZmode for matching comparisons. Clarify comments.
12184 * config/cris/cris-modes.def: Clarify mode comment.
12185 * config/cris/cris.md (plusminus, plusminusumin, plusumin): New
12187 (addsub, addsubbo, nd): New code iterator attributes.
12188 ("*<addsub><su>qihi"): Rename from "*extopqihi". Use code
12189 iterator constructs instead of match_operator constructs.
12190 ("*<addsubbo><su><nd><mode>si<setnz>"): Similar from
12191 "*extop<mode>si<setnz>".
12192 ("*add<su>qihi_swap"): Similar from "*addxqihi_swap".
12193 ("*<addsubbo><su><nd><mode>si<setnz>_swap"): Similar from
12194 "*extop<mode>si<setnz>_swap".
12196 2020-07-05 Hans-Peter Nilsson <hp@axis.com>
12198 * config/cris/cris.md ("*extopqihi", "*extop<mode>si<setnz>_swap")
12199 ("*extop<mode>si<setnz>", "*addxqihi_swap"): Reinstate.
12201 2020-07-03 Eric Botcazou <ebotcazou@adacore.com>
12203 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold calls that
12204 were initially created for the assignment of a variable-sized
12205 object and whose source is now a string constant.
12206 * gimple-ssa-store-merging.c (struct merged_store_group): Document
12207 STRING_CST for rhs_code field.
12208 Add string_concatenation boolean field.
12209 (merged_store_group::merged_store_group): Initialize it as well as
12210 bit_insertion here.
12211 (merged_store_group::do_merge): Set it upon seeing a STRING_CST.
12212 Also set bit_insertion here upon seeing a BIT_INSERT_EXPR.
12213 (merged_store_group::apply_stores): Clear it for small regions.
12214 Do not create a power-of-2-sized buffer if it is still true.
12215 And do not set bit_insertion here again.
12216 (encode_tree_to_bitpos): Deal with BLKmode for the expression.
12217 (merged_store_group::can_be_merged_into): Deal with STRING_CST.
12218 (imm_store_chain_info::coalesce_immediate_stores): Set bit_insertion
12219 to true after changing MEM_REF stores into BIT_INSERT_EXPR stores.
12220 (count_multiple_uses): Return 0 for STRING_CST.
12221 (split_group): Do not split the group for a string concatenation.
12222 (imm_store_chain_info::output_merged_store): Constify and rename
12223 some local variables. Build an array type as destination type
12224 for a string concatenation, as well as a zero mask, and call
12225 build_string to build the source.
12226 (lhs_valid_for_store_merging_p): Return true for VIEW_CONVERT_EXPR.
12227 (pass_store_merging::process_store): Accept STRING_CST on the RHS.
12228 * gimple.h (gimple_call_alloca_for_var_p): New accessor function.
12229 * gimplify.c (gimplify_modify_expr_to_memcpy): Set alloca_for_var.
12230 * tree.h (CALL_ALLOCA_FOR_VAR_P): Document it for BUILT_IN_MEMCPY.
12232 2020-07-03 Martin Jambor <mjambor@suse.cz>
12235 * ipa-sra.c (all_callee_accesses_present_p): Do not accept type
12236 mismatched accesses.
12238 2020-07-03 Roger Sayle <roger@nextmovesoftware.com>
12240 * config/nvptx/nvptx.md (popcount<mode>2): New instructions.
12241 (mulhishi3, mulsidi3, umulhisi3, umulsidi3): New instructions.
12243 2020-07-03 Martin Liska <mliska@suse.cz>
12244 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12247 * gcov-dump.c (tag_function): Use gcov_position_t
12250 2020-07-03 Richard Biener <rguenther@suse.de>
12252 PR tree-optimization/96037
12253 * tree-vect-stmts.c (vect_is_simple_use): Initialize *slp_def.
12255 2020-07-03 Richard Biener <rguenther@suse.de>
12257 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Cost the
12258 original non-pattern stmts, look at the pattern stmt
12259 vectorization status.
12261 2020-07-03 Andrew Stubbs <ams@codesourcery.com>
12263 * config/gcn/gcn-valu.md (fold_left_plus_<mode>): New.
12265 2020-07-03 Richard Biener <rguenther@suse.de>
12267 * tree-vectorizer.h (vec_info::insert_on_entry): New.
12268 (vec_info::insert_seq_on_entry): Likewise.
12269 * tree-vectorizer.c (vec_info::insert_on_entry): Implement.
12270 (vec_info::insert_seq_on_entry): Likewise.
12271 * tree-vect-stmts.c (vect_init_vector_1): Use
12272 vec_info::insert_on_entry.
12273 (vect_finish_stmt_generation): Set modified bit after
12275 * tree-vect-slp.c (vect_create_constant_vectors): Simplify
12276 by using vec_info::insert_seq_on_entry and bypassing
12278 (vect_schedule_slp_instance): Deal with all-constant
12281 2020-07-03 Roger Sayle <roger@nextmovesoftware.com>
12282 Tom de Vries <tdevries@suse.de>
12285 * config/nvptx/nvptx.c (nvptx_vector_alignment): Use tree_to_uhwi
12286 to access TYPE_SIZE (type). Return at least the mode's alignment.
12288 2020-07-02 Richard Biener <rguenther@suse.de>
12290 PR tree-optimization/96028
12291 * tree-vect-slp.c (vect_slp_convert_to_external): Make sure
12292 we have scalar stmts to use.
12293 (vect_slp_analyze_node_operations): When analyzing a child
12294 failed try externalizing the parent node.
12296 2020-07-02 Martin Jambor <mjambor@suse.cz>
12299 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Adjust
12300 argument index if necessary.
12302 2020-07-02 Martin Liska <mliska@suse.cz>
12304 PR middle-end/95830
12305 * tree-vect-generic.c (expand_vector_condition): Forward declaration.
12306 (expand_vector_comparison): Do not expand a comparison if all
12307 uses are consumed by a VEC_COND_EXPR.
12308 (expand_vector_operation): Change void return type to bool.
12309 (expand_vector_operations_1): Pass dce_ssa_names.
12311 2020-07-02 Ilya Leoshkevich <iii@linux.ibm.com>
12314 * system.h (NULL): Redefine to nullptr.
12316 2020-07-02 Jakub Jelinek <jakub@redhat.com>
12318 PR tree-optimization/95857
12319 * tree-cfg.c (group_case_labels_stmt): When removing an unreachable
12320 base_bb, remember all forced and non-local labels on it and later
12321 treat those as if they have NULL label_to_block. Formatting fix.
12322 Fix a comment typo.
12324 2020-07-02 Richard Biener <rguenther@suse.de>
12326 PR tree-optimization/96022
12327 * tree-vect-stmts.c (vectorizable_shift): Only use the
12328 first vector stmt when extracting the scalar shift amount.
12329 * tree-vect-slp.c (vect_build_slp_tree_2): Also build unary
12330 nodes with all-scalar children from scalars but not stores.
12331 (vect_analyze_slp_instance): Mark the node not failed.
12333 2020-07-02 Felix Yang <felix.yang@huawei.com>
12335 PR tree-optimization/95961
12336 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use the
12337 number of scalars instead of the number of vectors as an upper bound
12338 for the loop saving info about DR in the hash table. Remove unused
12341 2020-07-02 Jakub Jelinek <jakub@redhat.com>
12343 * omp-expand.c (expand_omp_for): Diagnose non-rectangular loops with
12344 invalid steps - ((m2 - m1) * incr_outer) % incr must be 0 in valid
12345 OpenMP non-rectangular loops. Use XALLOCAVEC.
12347 2020-07-02 Martin Liska <mliska@suse.cz>
12349 PR gcov-profile/95348
12350 * coverage.c (read_counts_file): Read only COUNTERS that are
12352 * gcov-dump.c (tag_function): Change signature from unsigned to
12354 (tag_blocks): Likewise.
12355 (tag_arcs): Likewise.
12356 (tag_lines): Likewise.
12357 (tag_counters): Likewise.
12358 (tag_summary): Likewise.
12359 * gcov.c (read_count_file): Read all non-zero counters
12362 2020-07-02 Kito Cheng <kito.cheng@sifive.com>
12364 * config/riscv/multilib-generator (arch_canonicalize): Handle
12365 multi-letter extension.
12366 Using underline as separator between different extensions.
12368 2020-07-01 Pip Cet <pipcet@gmail.com>
12370 * spellcheck.c (test_data): Add problematic strings.
12371 (test_metric_conditions): Don't test the triangle inequality
12372 condition, which our distance function does not satisfy.
12374 2020-07-01 Omar Tahir <omar.tahir@arm.com>
12376 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Always
12377 generate a BTI instruction.
12379 2020-07-01 Jeff Law <law@redhat.com>
12381 PR tree-optimization/94882
12382 * match.pd (x & y) - (x | y) - 1 -> ~(x ^ y): New simplification.
12384 2020-07-01 Jeff Law <law@redhat.com>
12386 * config/m68k/m68k.c (m68k_output_btst): Drop "register" keyword.
12387 (emit_move_sequence, output_iorsi3, output_xorsi3): Likewise.
12389 2020-07-01 Andrea Corallo <andrea.corallo@arm.com>
12391 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add enums
12392 for 64bits fpsr/fpcr getter setters builtin variants.
12393 (aarch64_init_fpsr_fpcr_builtins): New function.
12394 (aarch64_general_init_builtins): Modify to make use of the later.
12395 (aarch64_expand_fpsr_fpcr_setter): New function.
12396 (aarch64_general_expand_builtin): Modify to make use of the later.
12397 * config/aarch64/aarch64.md (@aarch64_set_<fpscr_name><GPI:mode>)
12398 (@aarch64_get_<fpscr_name><GPI:mode>): New patterns replacing and
12399 generalizing 'get_fpcr', 'set_fpsr'.
12400 * config/aarch64/iterators.md (GET_FPSCR, SET_FPSCR): New int
12402 (fpscr_name): New int attribute.
12403 * doc/extend.texi (__builtin_aarch64_get_fpcr64)
12404 (__builtin_aarch64_set_fpcr64, __builtin_aarch64_get_fpsr64)
12405 (__builtin_aarch64_set_fpsr64): Add into AArch64 Built-in
12408 2020-07-01 Martin Liska <mliska@suse.cz>
12410 * gcov.c (print_usage): Avoid trailing space for -j option.
12412 2020-07-01 Richard Biener <rguenther@suse.de>
12414 PR tree-optimization/95839
12415 * tree-vect-slp.c (vect_slp_tree_uniform_p): Pre-existing
12416 vectors are not uniform.
12417 (vect_build_slp_tree_1): Handle BIT_FIELD_REFs of
12419 (vect_build_slp_tree_2): For groups of lane extracts
12420 from a vector register generate a permute node
12421 with a special child representing the pre-existing vector.
12422 (vect_prologue_cost_for_slp): Pre-existing vectors cost nothing.
12423 (vect_slp_analyze_node_operations): Use SLP_TREE_LANES.
12424 (vectorizable_slp_permutation): Do not generate or cost identity
12426 (vect_schedule_slp_instance): Handle pre-existing vector
12427 that are function arguments.
12429 2020-07-01 Richard Biener <rguenther@suse.de>
12431 * system.h (INCLUDE_ISL): New guarded include.
12432 * graphite-dependences.c: Use it.
12433 * graphite-isl-ast-to-gimple.c: Likewise.
12434 * graphite-optimize-isl.c: Likewise.
12435 * graphite-poly.c: Likewise.
12436 * graphite-scop-detection.c: Likewise.
12437 * graphite-sese-to-poly.c: Likewise.
12438 * graphite.c: Likewise.
12439 * graphite.h: Drop the includes here.
12441 2020-07-01 Martin Liska <mliska@suse.cz>
12443 * gcov.c (print_usage): Shorted option description for -j
12446 2020-07-01 Martin Liska <mliska@suse.cz>
12448 * doc/gcov.texi: Rename 2 options.
12449 * gcov.c (print_usage): Rename -i,--json-format to
12450 -j,--json-format and -j,--human-readable to -H,--human-readable.
12451 (process_args): Fix up parsing. Document obsolete options and
12452 how are they changed.
12454 2020-07-01 Jeff Law <law@redhat.com>
12456 * config/pa/pa.c (pa_emit_move_sequence): Drop register keyword.
12457 (pa_output_ascii): Likewise.
12459 2020-07-01 Kito Cheng <kito.cheng@sifive.com>
12461 * common/config/riscv/riscv-common.c (riscv_subset_t): New field
12463 (riscv_subset_list::parsing_subset_version): Add parameter for
12464 indicate explicitly version, and handle explicitly version.
12465 (riscv_subset_list::handle_implied_ext): Ditto.
12466 (riscv_subset_list::add): Ditto.
12467 (riscv_subset_t::riscv_subset_t): Init new field.
12468 (riscv_subset_list::to_string): Always output version info if version
12469 explicitly specified.
12470 (riscv_subset_list::parsing_subset_version): Handle explicitly
12472 (riscv_subset_list::parse_std_ext): Ditto.
12473 (riscv_subset_list::parse_multiletter_ext): Ditto.
12475 2020-06-30 Richard Sandiford <richard.sandiford@arm.com>
12479 * config/aarch64/aarch64.c (aarch64_attribute_table): Add
12480 "Advanced SIMD type".
12481 (aarch64_comp_type_attributes): Check that the "Advanced SIMD type"
12482 attributes are equal.
12483 * config/aarch64/aarch64-builtins.c: Include stringpool.h and
12485 (aarch64_mangle_builtin_vector_type): Use the mangling recorded
12486 in the "Advanced SIMD type" attribute.
12487 (aarch64_init_simd_builtin_types): Add an "Advanced SIMD type"
12488 attribute to each Advanced SIMD type, using the mangled type
12489 as the attribute's single argument.
12491 2020-06-30 Christophe Lyon <christophe.lyon@linaro.org>
12494 * config/arm/arm.c (arm_handle_isr_attribute): Warn if
12495 -mgeneral-regs-only is not used.
12497 2020-06-30 Yang Yang <yangyang305@huawei.com>
12499 PR tree-optimization/95855
12500 * gimple-ssa-split-paths.c (is_feasible_trace): Add extra
12501 checks to recognize a missed if-conversion opportunity when
12502 judging whether to duplicate a block.
12504 2020-06-29 Segher Boessenkool <segher@kernel.crashing.org>
12506 * doc/extend.texi: Change references to "future architecture" to
12507 "ISA 3.1", "-mcpu=future" to "-mcpu=power10", and remove vaguer
12508 references to "future" (because the future is now).
12510 2020-06-29 Segher Boessenkool <segher@kernel.crashing.org>
12512 * config/rs6000/rs6000.md (isa): Rename "fut" to "p10".
12514 2020-06-29 Roger Sayle <roger@nextmovesoftware.com>
12516 * simplify-rtx.c (simplify_distributive_operation): New function
12517 to un-distribute a binary operation of two binary operations.
12518 (X & C) ^ (Y & C) to (X ^ Y) & C, when C is simple (i.e. a constant).
12519 (simplify_binary_operation_1) <IOR, XOR, AND>: Call it from here
12521 (test_scalar_int_ops): New function for unit self-testing
12522 scalar integer transformations in simplify-rtx.c.
12523 (test_scalar_ops): Call test_scalar_int_ops for each integer mode.
12524 (simplify_rtx_c_tests): Call test_scalar_ops.
12526 2020-06-29 Richard Biener <rguenther@suse.de>
12528 PR tree-optimization/95916
12529 * tree-vect-slp.c (vect_schedule_slp_instance): Explicitely handle
12530 the case of not vectorized externals.
12532 2020-06-29 Richard Biener <rguenther@suse.de>
12534 * tree-vectorizer.h: Do not include <utility>.
12536 2020-06-29 Martin Liska <mliska@suse.cz>
12538 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Use gsi_bb
12539 instead of gimple_stmt_iterator::bb.
12540 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
12541 * tree-vectorizer.h: Likewise.
12543 2020-06-29 Andrew Stubbs <ams@codesourcery.com>
12545 * config/gcn/gcn-hsa.h (DBX_REGISTER_NUMBER): New macro.
12546 * config/gcn/gcn-protos.h (gcn_dwarf_register_number): New prototype.
12547 * config/gcn/gcn.c (gcn_expand_prologue): Add RTX_FRAME_RELATED_P
12548 and REG_FRAME_RELATED_EXPR to stack and frame pointer adjustments.
12549 (gcn_dwarf_register_number): New function.
12550 (gcn_dwarf_register_span): New function.
12551 (TARGET_DWARF_REGISTER_SPAN): New hook macro.
12553 2020-06-29 Kaipeng Zhou <zhoukaipeng3@huawei.com>
12555 PR tree-optimization/95854
12556 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Return NULL
12557 if operand 1 or 2 of a BIT_FIELD_REF cannot be converted to
12558 unsigned HOST_WIDE_INT.
12560 2020-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12562 * config/sparc/sparc.c (epilogue_renumber): Remove register.
12563 (sparc_print_operand_address): Likewise.
12564 (sparc_type_code): Likewise.
12565 (set_extends): Likewise.
12567 2020-06-29 Martin Liska <mliska@suse.cz>
12569 PR tree-optimization/92860
12570 * optc-save-gen.awk: Add exceptions for arc target.
12572 2020-06-29 Frederik Harwath <frederik@codesourcery.com>
12574 * doc/sourcebuild.texi: Describe globbing of the
12575 dump file scanning commands "suffix" argument.
12577 2020-06-28 Martin Sebor <msebor@redhat.com>
12580 * calls.c (maybe_warn_rdwr_sizes): Use location of argument if
12582 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same. Adjust
12584 * tree.c (get_nonnull_args): Consider the this pointer implicitly
12586 * var-tracking.c (deps_vec): New type.
12587 (var_loc_dep_vec): New function.
12588 (VAR_LOC_DEP_VEC): Use it.
12590 2020-06-28 Kewen Lin <linkw@linux.ibm.com>
12592 * internal-fn.c (direct_mask_load_optab_supported_p): Use
12593 convert_optab_supported_p instead of direct_optab_supported_p.
12594 (direct_mask_store_optab_supported_p): Likewise.
12596 2020-06-27 Aldy Hernandez <aldyh@redhat.com>
12598 * gimple-ssa-evrp-analyze.h (vrp_visit_cond_stmt): Use
12599 simplify_using_ranges class.
12600 * gimple-ssa-evrp.c (class evrp_folder): New simplify_using_ranges
12601 field. Adjust all methods to use new field.
12602 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Use
12603 simplify_using_ranges class.
12604 * tree-vrp.c (class vrp_folder): New simplify_using_ranges
12605 field. Adjust all methods to use new field.
12606 (simplify_stmt_for_jump_threading): Use simplify_using_ranges class.
12607 (vrp_prop::vrp_finalize): New vrp_folder argument.
12608 (execute_vrp): Pass folder to vrp_finalize. Use
12609 simplify_using_ranges class.
12610 Remove cleanup_edges_and_switches call.
12611 * vr-values.c (vr_values::op_with_boolean_value_range_p): Change
12612 value_range_equiv uses to value_range.
12613 (simplify_using_ranges::op_with_boolean_value_range_p): Use
12614 simplify_using_ranges class.
12615 (check_for_binary_op_overflow): Make static.
12616 (vr_values::extract_range_basic): Pass this to
12617 check_for_binary_op_overflow.
12618 (compare_range_with_value): Change value_range_equiv uses to
12620 (vr_values::vr_values): Initialize simplifier field.
12621 Remove uses of to_remove_edges and to_update_switch_stmts.
12622 (vr_values::~vr_values): Remove uses of to_remove_edges and
12623 to_update_switch_stmts.
12624 (vr_values::get_vr_for_comparison): Move to simplify_using_ranges
12626 (vr_values::compare_name_with_value): Same.
12627 (vr_values::compare_names): Same.
12628 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
12629 (vr_values::vrp_evaluate_conditional): Same.
12630 (vr_values::vrp_visit_cond_stmt): Same.
12631 (find_case_label_ranges): Change value_range_equiv uses to
12633 (vr_values::extract_range_from_stmt): Use simplify_using_ranges class.
12634 (vr_values::simplify_truth_ops_using_ranges): Move to
12635 simplify_using_ranges class.
12636 (vr_values::simplify_div_or_mod_using_ranges): Same.
12637 (vr_values::simplify_min_or_max_using_ranges): Same.
12638 (vr_values::simplify_abs_using_ranges): Same.
12639 (vr_values::simplify_bit_ops_using_ranges): Same.
12640 (test_for_singularity): Change value_range_equiv uses to
12642 (range_fits_type_p): Same.
12643 (vr_values::simplify_cond_using_ranges_1): Same.
12644 (vr_values::simplify_cond_using_ranges_2): Make extern.
12645 (vr_values::fold_cond): Move to simplify_using_ranges class.
12646 (vr_values::simplify_switch_using_ranges): Same.
12647 (vr_values::cleanup_edges_and_switches): Same.
12648 (vr_values::simplify_float_conversion_using_ranges): Same.
12649 (vr_values::simplify_internal_call_using_ranges): Same.
12650 (vr_values::two_valued_val_range_p): Same.
12651 (vr_values::simplify_stmt_using_ranges): Move to...
12652 (simplify_using_ranges::simplify): ...here.
12653 * vr-values.h (class vr_values): Move all the simplification of
12654 statements using ranges methods and code from here...
12655 (class simplify_using_ranges): ...to here.
12656 (simplify_cond_using_ranges_2): New extern prototype.
12658 2020-06-27 Jakub Jelinek <jakub@redhat.com>
12660 * omp-general.h (struct omp_for_data_loop): Add non_rect_referenced
12661 member, move outer member.
12662 (struct omp_for_data): Add first_nonrect and last_nonrect members.
12663 * omp-general.c (omp_extract_for_data): Initialize first_nonrect,
12664 last_nonrect and non_rect_referenced members.
12665 * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
12667 (expand_omp_for_init_vars): Add nonrect_bounds parameter. Handle
12668 non-rectangular loops.
12669 (extract_omp_for_update_vars): Likewise.
12670 (expand_omp_for_generic, expand_omp_for_static_nochunk,
12671 expand_omp_for_static_chunk, expand_omp_simd,
12672 expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): Adjust
12673 expand_omp_for_init_vars and extract_omp_for_update_vars callers.
12674 (expand_omp_for): Don't sorry on non-composite worksharing-loop or
12677 2020-06-26 H.J. Lu <hjl.tools@gmail.com>
12680 * config/i386/gnu-user.h (SUBTARGET_FRAME_POINTER_REQUIRED):
12682 * config/i386/i386.c (ix86_frame_pointer_required): Update
12685 2020-06-26 Yichao Yu <yyc1992@gmail.com>
12687 * multiple_target.c (redirect_to_specific_clone): Fix tests
12688 to check individual attribute rather than an attribute list.
12690 2020-06-26 Peter Bergner <bergner@linux.ibm.com>
12692 * config/rs6000/rs6000-call.c (cpu_is_info) <power10>: New.
12693 * doc/extend.texi (PowerPC Built-in Functions): Document power10,
12696 2020-06-26 Marek Polacek <polacek@redhat.com>
12698 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
12699 * doc/standards.texi (C Language): Correct the default dialect.
12700 (C++ Language): Update the default for C++ to gnu++17.
12702 2020-06-26 Eric Botcazou <ebotcazou@adacore.com>
12704 * tree-ssa-reassoc.c (dump_range_entry): New function.
12705 (debug_range_entry): New debug function.
12706 (update_range_test): Invoke dump_range_entry for dumping.
12707 (optimize_range_tests_to_bit_test): Merge the entry test in the
12708 bit test when possible and lower the profitability threshold.
12710 2020-06-26 Richard Biener <rguenther@suse.de>
12712 PR tree-optimization/95897
12713 * tree-vectorizer.h (vectorizable_induction): Remove
12714 unused gimple_stmt_iterator * parameter.
12715 * tree-vect-loop.c (vectorizable_induction): Likewise.
12716 (vect_analyze_loop_operations): Adjust.
12717 * tree-vect-stmts.c (vect_analyze_stmt): Likewise.
12718 (vect_transform_stmt): Likewise.
12719 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust
12720 for fold-left reductions, clarify existing reduction case.
12722 2020-06-25 Nick Clifton <nickc@redhat.com>
12724 * config/m32r/m32r.md (movsicc): Disable pattern.
12726 2020-06-25 Richard Biener <rguenther@suse.de>
12728 PR tree-optimization/95839
12729 * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove premature
12730 check on the number of datarefs.
12732 2020-06-25 Iain Sandoe <iain@sandoe.co.uk>
12734 * config/rs6000/rs6000-call.c (mma_init_builtins): Cast
12735 the insn_data n_operands value to unsigned.
12737 2020-06-25 Richard Biener <rguenther@suse.de>
12739 * tree-vect-slp.c (vect_schedule_slp_instance): Always use
12740 vector defs to determine insertion place.
12742 2020-06-25 H.J. Lu <hjl.tools@gmail.com>
12745 * config/i386/i386.h (PTA_ICELAKE_CLIENT): Remove PTA_CLWB.
12746 (PTA_ICELAKE_SERVER): Add PTA_CLWB.
12747 (PTA_TIGERLAKE): Add PTA_CLWB.
12749 2020-06-25 Richard Biener <rguenther@suse.de>
12751 PR tree-optimization/95866
12752 * tree-vect-stmts.c (vectorizable_shift): Reject incompatible
12753 vectorized shift operands. For scalar shifts use lane zero
12754 of a vectorized shift operand.
12756 2020-06-25 Martin Liska <mliska@suse.cz>
12758 PR tree-optimization/95745
12759 PR middle-end/95830
12760 * gimple-isel.cc (gimple_expand_vec_cond_exprs): Delete dead
12761 SSA_NAMEs used as the first argument of a VEC_COND_EXPR. Always
12763 * tree-vect-generic.c (expand_vector_condition): Remove dead
12764 SSA_NAMEs used as the first argument of a VEC_COND_EXPR.
12766 2020-06-24 Will Schmidt <will_schmidt@vnet.ibm.com>
12769 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Update.
12770 * config/rs6000/altivec.md (UNSPEC_CONVERT_4F32_8F16): New unspec.
12771 (convert_4f32_8f16): New define_expand
12772 * config/rs6000/rs6000-builtin.def (convert_4f32_8f16): New builtin define
12774 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_CONVERT_4F32_8F16): New
12775 overloaded builtin entry.
12776 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPHP): New unspec.
12777 (vsx_xvcvsphp): New define_insn.
12779 2020-06-24 Roger Sayle <roger@nextmovesoftware.com>
12780 Segher Boessenkool <segher@kernel.crashing.org>
12782 * simplify-rtx.c (simplify_unary_operation_1): Simplify rotates by 0.
12784 2020-06-24 Roger Sayle <roger@nextmovesoftware.com>
12786 * simplify-rtx.c (simplify_unary_operation_1): Simplify
12787 (parity (parity x)) as (parity x), i.e. PARITY is idempotent.
12789 2020-06-24 Richard Biener <rguenther@suse.de>
12791 PR tree-optimization/95866
12792 * tree-vect-slp.c (vect_slp_tree_uniform_p): New.
12793 (vect_build_slp_tree_2): Properly reset matches[0],
12794 ignore uniform constants.
12796 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
12799 * common/config/i386/cpuinfo.h (get_intel_cpu): Remove brand_id.
12800 (cpu_indicator_init): Likewise.
12801 * config/i386/driver-i386.c (host_detect_local_cpu): Updated.
12803 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
12806 * common/config/i386/cpuinfo.h (get_intel_cpu): Add Cooper Lake
12807 detection with AVX512BF16.
12809 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
12812 * common/config/i386/i386-isas.h: New file. Extracted from
12813 gcc/config/i386/i386-builtins.c.
12814 (_isa_names_table): Add option.
12815 (ISA_NAMES_TABLE_START): New.
12816 (ISA_NAMES_TABLE_END): Likewise.
12817 (ISA_NAMES_TABLE_ENTRY): Likewise.
12818 (isa_names_table): Defined with ISA_NAMES_TABLE_START,
12819 ISA_NAMES_TABLE_END and ISA_NAMES_TABLE_ENTRY. Add more ISAs
12820 from enum processor_features.
12821 * config/i386/driver-i386.c: Include
12822 "common/config/i386/cpuinfo.h" and
12823 "common/config/i386/i386-isas.h".
12824 (has_feature): New macro.
12825 (host_detect_local_cpu): Call cpu_indicator_init to get CPU
12826 features. Use has_feature to detect processor features. Call
12827 Call get_intel_cpu to get the newer Intel CPU name. Use
12828 isa_names_table to generate command-line options.
12829 * config/i386/i386-builtins.c: Include
12830 "common/config/i386/i386-isas.h".
12831 (_arch_names_table): Removed.
12832 (isa_names_table): Likewise.
12834 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
12837 * common/config/i386/cpuinfo.h: New file.
12838 (__processor_model): Moved from libgcc/config/i386/cpuinfo.h.
12839 (__processor_model2): New.
12840 (CHECK___builtin_cpu_is): New. Defined as empty if not defined.
12841 (has_cpu_feature): New function.
12842 (set_cpu_feature): Likewise.
12843 (get_amd_cpu): Moved from libgcc/config/i386/cpuinfo.c. Use
12844 CHECK___builtin_cpu_is. Return AMD CPU name.
12845 (get_intel_cpu): Moved from libgcc/config/i386/cpuinfo.c. Use
12846 Use CHECK___builtin_cpu_is. Return Intel CPU name.
12847 (get_available_features): Moved from libgcc/config/i386/cpuinfo.c.
12848 Also check FEATURE_3DNOW, FEATURE_3DNOWP, FEATURE_ADX,
12849 FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT, FEATURE_CLWB,
12850 FEATURE_CLZERO, FEATURE_CMPXCHG16B, FEATURE_CMPXCHG8B,
12851 FEATURE_ENQCMD, FEATURE_F16C, FEATURE_FSGSBASE, FEATURE_FXSAVE,
12852 FEATURE_HLE, FEATURE_IBT, FEATURE_LAHF_LM, FEATURE_LM,
12853 FEATURE_LWP, FEATURE_LZCNT, FEATURE_MOVBE, FEATURE_MOVDIR64B,
12854 FEATURE_MOVDIRI, FEATURE_MWAITX, FEATURE_OSXSAVE,
12855 FEATURE_PCONFIG, FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
12856 FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
12857 FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
12858 FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
12859 FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
12860 FEATURE_XSAVEOPT and FEATURE_XSAVES
12861 (cpu_indicator_init): Moved from libgcc/config/i386/cpuinfo.c.
12862 Also update cpu_model2.
12863 * common/config/i386/i386-cpuinfo.h (processor_vendor): Add
12864 Add VENDOR_CENTAUR, VENDOR_CYRIX and VENDOR_NSC.
12865 (processor_features): Moved from gcc/config/i386/i386-builtins.c.
12866 Renamed F_XXX to FEATURE_XXX. Add FEATURE_3DNOW, FEATURE_3DNOWP,
12867 FEATURE_ADX, FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT,
12868 FEATURE_CLWB, FEATURE_CLZERO, FEATURE_CMPXCHG16B,
12869 FEATURE_CMPXCHG8B, FEATURE_ENQCMD, FEATURE_F16C,
12870 FEATURE_FSGSBASE, FEATURE_FXSAVE, FEATURE_HLE, FEATURE_IBT,
12871 FEATURE_LAHF_LM, FEATURE_LM, FEATURE_LWP, FEATURE_LZCNT,
12872 FEATURE_MOVBE, FEATURE_MOVDIR64B, FEATURE_MOVDIRI,
12873 FEATURE_MWAITX, FEATURE_OSXSAVE, FEATURE_PCONFIG,
12874 FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
12875 FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
12876 FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
12877 FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
12878 FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
12879 FEATURE_XSAVEOPT, FEATURE_XSAVES and CPU_FEATURE_MAX.
12880 (SIZE_OF_CPU_FEATURES): New.
12881 * config/i386/i386-builtins.c (processor_features): Removed.
12882 (isa_names_table): Replace F_XXX with FEATURE_XXX.
12883 (fold_builtin_cpu): Change __cpu_features2 to an array.
12885 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
12888 * common/config/i386/i386-common.c (processor_alias_table): Add
12889 processor model and priority to each entry.
12890 (pta_size): Updated with -6.
12891 (num_arch_names): New.
12892 * common/config/i386/i386-cpuinfo.h: New file.
12893 * config/i386/i386-builtins.c (feature_priority): Removed.
12894 (processor_model): Likewise.
12895 (_arch_names_table): Likewise.
12896 (arch_names_table): Likewise.
12897 (_isa_names_table): Replace P_ZERO with P_NONE.
12898 (get_builtin_code_for_version): Replace P_ZERO with P_NONE. Use
12899 processor_alias_table.
12900 (fold_builtin_cpu): Replace arch_names_table with
12901 processor_alias_table.
12902 * config/i386/i386.h: Include "common/config/i386/i386-cpuinfo.h".
12903 (pta): Add model and priority.
12904 (num_arch_names): New.
12906 2020-06-24 Richard Biener <rguenther@suse.de>
12908 * tree-vectorizer.h (vect_find_first_scalar_stmt_in_slp):
12910 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
12911 Simplify for new position of vectorized SLP loads.
12912 (vect_slp_analyze_node_dependences): Adjust for it.
12913 (vect_slp_analyze_and_verify_node_alignment): Compute alignment
12914 for the first stmts dataref.
12915 * tree-vect-slp.c (vect_find_first_scalar_stmt_in_slp): New.
12916 (vect_schedule_slp_instance): Emit loads before the
12918 * tree-vect-stmts.c (vectorizable_load): Do what the comment
12919 says and use vect_find_first_scalar_stmt_in_slp.
12921 2020-06-24 Richard Biener <rguenther@suse.de>
12923 PR tree-optimization/95856
12924 * tree-vectorizer.c (vect_stmt_dominates_stmt_p): Honor
12927 2020-06-24 Jakub Jelinek <jakub@redhat.com>
12929 PR middle-end/95810
12930 * fold-const.c (fold_cond_expr_with_comparison): Optimize
12931 A <= 0 ? A : -A into (type)-absu(A) rather than -abs(A).
12933 2020-06-24 Jakub Jelinek <jakub@redhat.com>
12935 * omp-low.c (lower_omp_for): Fix two pastos.
12937 2020-06-24 Martin Liska <mliska@suse.cz>
12939 * optc-save-gen.awk: Compare string options in cl_optimization_compare
12942 2020-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
12944 * config.gcc: Identify power10 as a 64-bit processor and as valid
12945 for --with-cpu and --with-tune.
12947 2020-06-23 David Edelsohn <dje.gcc@gmail.com>
12949 * Makefile.in (LANG_MAKEFRAGS): Same.
12950 (tmake_file): Use -include.
12951 (xmake_file): Same.
12953 2020-06-23 Michael Meissner <meissner@linux.ibm.com>
12955 * REVISION: Delete file meant for a private branch.
12957 2020-06-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
12960 * config/arm/arm.c: (cmse_nonsecure_entry_clear_before_return): Use
12961 'callee_saved_reg_p' instead of 'calL_used_or_fixed_reg_p'.
12963 2020-06-23 Alexandre Oliva <oliva@adacore.com>
12965 * collect-utils.h (dumppfx): New.
12966 * collect-utils.c (dumppfx): Likewise.
12967 * lto-wrapper.c (run_gcc): Set global dumppfx.
12968 (compile_offload_image): Pass a -dumpbase on to mkoffload.
12969 * config/nvptx/mkoffload.c (ptx_dumpbase): New.
12970 (main): Handle incoming -dumpbase. Set ptx_dumpbase. Obey
12972 (compile_native): Pass -dumpbase et al to compiler.
12973 * config/gcn/mkoffload.c (gcn_dumpbase): New.
12974 (main): Handle incoming -dumpbase. Set gcn_dumpbase. Obey
12975 save_temps. Pass -dumpbase et al to offload target compiler.
12976 (compile_native): Pass -dumpbase et al to compiler.
12978 2020-06-23 Michael Meissner <meissner@linux.ibm.com>
12980 * REVISION: New file.
12982 2020-06-22 Segher Boessenkool <segher@kernel.crashing.org>
12984 * config/rs6000/altivec.h: Use _ARCH_PWR10, not _ARCH_PWR_FUTURE.
12985 Update comment for ISA 3.1.
12986 * config/rs6000/altivec.md: Use TARGET_POWER10, not TARGET_FUTURE.
12987 * config/rs6000/driver-rs6000.c (asm_names): Use -mpwr10 for power10
12988 on AIX, and -mpower10 elsewhere.
12989 * config/rs6000/future.md: Delete.
12990 * config/rs6000/linux64.h: Update comments. Use TARGET_POWER10, not
12992 * config/rs6000/power10.md: New file.
12993 * config/rs6000/ppc-auxv.h: Use PPC_PLATFORM_POWER10, not
12994 PPC_PLATFORM_FUTURE.
12995 * config/rs6000/rs6000-builtin.def: Update comments. Use BU_P10V_*
12996 names instead of BU_FUTURE_V_* names. Use RS6000_BTM_P10 instead of
12997 RS6000_BTM_FUTURE. Use P10_BUILTIN_* instead of FUTURE_BUILTIN_*.
12998 Use BU_P10_* instead of BU_FUTURE_*.
12999 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13000 _ARCH_PWR10 instead of _ARCH_PWR_FUTURE.
13001 (altivec_resolve_overloaded_builtin): Use P10_BUILTIN_VEC_XXEVAL, not
13002 FUTURE_BUILTIN_VEC_XXEVAL.
13003 * config/rs6000/rs6000-call.c: Use P10_BUILTIN_*, not FUTURE_BUILTIN_*.
13004 Update compiler messages.
13005 * config/rs6000/rs6000-cpus.def: Update comments. Use ISA_3_1_*, not
13006 ISA_FUTURE_*. Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE.
13007 * config/rs6000/rs6000-opts.h: Use PROCESSOR_POWER10, not
13009 * config/rs6000/rs6000-string.c: Ditto.
13010 * config/rs6000/rs6000-tables.opt (rs6000_cpu_opt_value): Use "power10"
13011 instead of "future", reorder it to right after "power9".
13012 * config/rs6000/rs6000.c: Update comments. Use OPTION_MASK_POWER10,
13013 not OPTION_MASK_FUTURE. Use TARGET_POWER10, not TARGET_FUTURE. Use
13014 RS6000_BTM_P10, not RS6000_BTM_FUTURE. Update compiler messages.
13015 Use PROCESSOR_POWER10, not PROCESSOR_FUTURE. Use ISA_3_1_MASKS_SERVER,
13016 not ISA_FUTURE_MASKS_SERVER.
13017 (rs6000_opt_masks): Use "power10" instead of "future".
13018 (rs6000_builtin_mask_names): Ditto.
13019 (rs6000_disable_incompatible_switches): Ditto.
13020 * config/rs6000/rs6000.h: Use -mpower10, not -mfuture. Use
13021 -mcpu=power10, not -mcpu=future. Use MASK_POWER10, not MASK_FUTURE.
13022 Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE. Use RS6000_BTM_P10,
13023 not RS6000_BTM_FUTURE.
13024 * config/rs6000/rs6000.md: Use "power10", not "future". Use
13025 TARGET_POWER10, not TARGET_FUTURE. Include "power10.md", not
13027 * config/rs6000/rs6000.opt (mfuture): Delete.
13029 * config/rs6000/t-rs6000: Use "power10.md", not "future.md".
13030 * config/rs6000/vsx.md: Use TARGET_POWER10, not TARGET_FUTURE.
13032 2020-06-22 Richard Sandiford <richard.sandiford@arm.com>
13034 * coretypes.h (first_type): Delete.
13035 * recog.h (insn_gen_fn::operator()): Go back to using a decltype.
13037 2020-06-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13039 * doc/sourcebuild.texi (arm_v8_1m_mve_fp_ok): Add item.
13040 (arm_mve_hw): Likewise.
13042 2020-06-22 H.J. Lu <hjl.tools@gmail.com>
13045 * config/i386/i386.c (ix86_dirflag_mode_needed): Skip
13048 2020-06-22 Richard Biener <rguenther@suse.de>
13050 PR tree-optimization/95770
13051 * tree-vect-slp.c (vect_schedule_slp_instance): Also consider
13054 2020-06-22 Andrew Stubbs <ams@codesourcery.com>
13056 * config/gcn/gcn.c (gcn_function_arg): Disallow vector arguments.
13057 (gcn_return_in_memory): Return vectors in memory.
13059 2020-06-22 Jakub Jelinek <jakub@redhat.com>
13061 * omp-general.c (omp_extract_for_data): For triangular loops with
13062 all loop invariant expressions constant where the innermost loop is
13063 executed at least once compute number of iterations at compile time.
13065 2020-06-22 Kito Cheng <kito.cheng@sifive.com>
13067 * config/riscv/riscv.h (ASM_SPEC): Remove riscv_expand_arch call.
13068 (DRIVER_SELF_SPECS): New.
13070 2020-06-22 Kito Cheng <kito.cheng@sifive.com>
13072 * config/riscv/riscv-builtins.c (RISCV_FTYPE_NAME0): New.
13073 (RISCV_FTYPE_ATYPES0): New.
13074 (riscv_builtins): Using RISCV_USI_FTYPE for frflags.
13075 * config/riscv/riscv-ftypes.def: Remove VOID argument.
13077 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
13079 * config.gcc: Use t-aix64, biarch64 and default64 for cpu_is_64bit.
13080 * config/rs6000/aix72.h (ASM_SPEC): Remove aix64 option.
13083 (ASM_CPU_SPEC): Remove vsx and altivec options.
13084 (CPP_SPEC_COMMON): Rename from CPP_SPEC.
13087 (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
13088 (TARGET_DEFAULT): Only define if not BIARCH.
13089 (LIB_SPEC_COMMON): Rename from LIB_SPEC.
13092 (LINK_SPEC_COMMON): Rename from LINK_SPEC.
13093 (LINK_SPEC32): New.
13094 (LINK_SPEC64): New.
13095 (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
13096 (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
13098 (CPLUSPLUS_CPP_SPEC): Same.
13101 (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
13102 * config/rs6000/defaultaix64.h: New file.
13103 * config/rs6000/t-aix64: New file.
13105 2020-06-21 Peter Bergner <bergner@linux.ibm.com>
13107 * config/rs6000/predicates.md (mma_assemble_input_operand): New.
13108 * config/rs6000/rs6000-builtin.def (BU_MMA_1, BU_MMA_V2, BU_MMA_3,
13109 BU_MMA_5, BU_MMA_6, BU_VSX_1): Add support macros for defining MMA
13110 built-in functions.
13111 (ASSEMBLE_ACC, ASSEMBLE_PAIR, DISASSEMBLE_ACC, DISASSEMBLE_PAIR,
13112 PMXVBF16GER2, PMXVBF16GER2NN, PMXVBF16GER2NP, PMXVBF16GER2PN,
13113 PMXVBF16GER2PP, PMXVF16GER2, PMXVF16GER2NN, PMXVF16GER2NP,
13114 PMXVF16GER2PN, PMXVF16GER2PP, PMXVF32GER, PMXVF32GERNN,
13115 PMXVF32GERNP, PMXVF32GERPN, PMXVF32GERPP, PMXVF64GER, PMXVF64GERNN,
13116 PMXVF64GERNP, PMXVF64GERPN, PMXVF64GERPP, PMXVI16GER2, PMXVI16GER2PP,
13117 PMXVI16GER2S, PMXVI16GER2SPP, PMXVI4GER8, PMXVI4GER8PP, PMXVI8GER4,
13118 PMXVI8GER4PP, PMXVI8GER4SPP, XVBF16GER2, XVBF16GER2NN, XVBF16GER2NP,
13119 XVBF16GER2PN, XVBF16GER2PP, XVCVBF16SP, XVCVSPBF16, XVF16GER2,
13120 XVF16GER2NN, XVF16GER2NP, XVF16GER2PN, XVF16GER2PP, XVF32GER,
13121 XVF32GERNN, XVF32GERNP, XVF32GERPN, XVF32GERPP, XVF64GER, XVF64GERNN,
13122 XVF64GERNP, XVF64GERPN, XVF64GERPP, XVI16GER2, XVI16GER2PP, XVI16GER2S,
13123 XVI16GER2SPP, XVI4GER8, XVI4GER8PP, XVI8GER4, XVI8GER4PP, XVI8GER4SPP,
13124 XXMFACC, XXMTACC, XXSETACCZ): Add MMA built-ins.
13125 * config/rs6000/rs6000.c (rs6000_emit_move): Use CONST_INT_P.
13126 Allow zero constants.
13127 (print_operand) <case 'A'>: New output modifier.
13128 (rs6000_split_multireg_move): Add support for inserting accumulator
13129 priming and depriming instructions. Add support for splitting an
13130 assemble accumulator pattern.
13131 * config/rs6000/rs6000-call.c (mma_init_builtins, mma_expand_builtin,
13132 rs6000_gimple_fold_mma_builtin): New functions.
13133 (RS6000_BUILTIN_M): New macro.
13134 (def_builtin): Handle RS6000_BTC_QUAD and RS6000_BTC_PAIR attributes.
13135 (bdesc_mma): Add new MMA built-in support.
13136 (htm_expand_builtin): Use RS6000_BTC_OPND_MASK.
13137 (rs6000_invalid_builtin): Add handling of RS6000_BTM_FUTURE and
13139 (rs6000_builtin_valid_without_lhs): Handle RS6000_BTC_VOID attribute.
13140 (rs6000_gimple_fold_builtin): Call rs6000_builtin_is_supported_p
13141 and rs6000_gimple_fold_mma_builtin.
13142 (rs6000_expand_builtin): Call mma_expand_builtin.
13143 Use RS6000_BTC_OPND_MASK.
13144 (rs6000_init_builtins): Adjust comment. Call mma_init_builtins.
13145 (htm_init_builtins): Use RS6000_BTC_OPND_MASK.
13146 (builtin_function_type): Handle VSX_BUILTIN_XVCVSPBF16 and
13147 VSX_BUILTIN_XVCVBF16SP.
13148 * config/rs6000/rs6000.h (RS6000_BTC_QUINARY, RS6000_BTC_SENARY,
13149 RS6000_BTC_OPND_MASK, RS6000_BTC_QUAD, RS6000_BTC_PAIR,
13150 RS6000_BTC_QUADPAIR, RS6000_BTC_GIMPLE): New defines.
13151 (RS6000_BTC_PREDICATE, RS6000_BTC_ABS, RS6000_BTC_DST,
13152 RS6000_BTC_TYPE_MASK, RS6000_BTC_ATTR_MASK): Adjust values.
13153 * config/rs6000/mma.md (MAX_MMA_OPERANDS): New define_constant.
13154 (UNSPEC_MMA_ASSEMBLE_ACC, UNSPEC_MMA_PMXVBF16GER2,
13155 UNSPEC_MMA_PMXVBF16GER2NN, UNSPEC_MMA_PMXVBF16GER2NP,
13156 UNSPEC_MMA_PMXVBF16GER2PN, UNSPEC_MMA_PMXVBF16GER2PP,
13157 UNSPEC_MMA_PMXVF16GER2, UNSPEC_MMA_PMXVF16GER2NN,
13158 UNSPEC_MMA_PMXVF16GER2NP, UNSPEC_MMA_PMXVF16GER2PN,
13159 UNSPEC_MMA_PMXVF16GER2PP, UNSPEC_MMA_PMXVF32GER,
13160 UNSPEC_MMA_PMXVF32GERNN, UNSPEC_MMA_PMXVF32GERNP,
13161 UNSPEC_MMA_PMXVF32GERPN, UNSPEC_MMA_PMXVF32GERPP,
13162 UNSPEC_MMA_PMXVF64GER, UNSPEC_MMA_PMXVF64GERNN,
13163 UNSPEC_MMA_PMXVF64GERNP, UNSPEC_MMA_PMXVF64GERPN,
13164 UNSPEC_MMA_PMXVF64GERPP, UNSPEC_MMA_PMXVI16GER2,
13165 UNSPEC_MMA_PMXVI16GER2PP, UNSPEC_MMA_PMXVI16GER2S,
13166 UNSPEC_MMA_PMXVI16GER2SPP, UNSPEC_MMA_PMXVI4GER8,
13167 UNSPEC_MMA_PMXVI4GER8PP, UNSPEC_MMA_PMXVI8GER4,
13168 UNSPEC_MMA_PMXVI8GER4PP, UNSPEC_MMA_PMXVI8GER4SPP,
13169 UNSPEC_MMA_XVBF16GER2, UNSPEC_MMA_XVBF16GER2NN,
13170 UNSPEC_MMA_XVBF16GER2NP, UNSPEC_MMA_XVBF16GER2PN,
13171 UNSPEC_MMA_XVBF16GER2PP, UNSPEC_MMA_XVF16GER2, UNSPEC_MMA_XVF16GER2NN,
13172 UNSPEC_MMA_XVF16GER2NP, UNSPEC_MMA_XVF16GER2PN, UNSPEC_MMA_XVF16GER2PP,
13173 UNSPEC_MMA_XVF32GER, UNSPEC_MMA_XVF32GERNN, UNSPEC_MMA_XVF32GERNP,
13174 UNSPEC_MMA_XVF32GERPN, UNSPEC_MMA_XVF32GERPP, UNSPEC_MMA_XVF64GER,
13175 UNSPEC_MMA_XVF64GERNN, UNSPEC_MMA_XVF64GERNP, UNSPEC_MMA_XVF64GERPN,
13176 UNSPEC_MMA_XVF64GERPP, UNSPEC_MMA_XVI16GER2, UNSPEC_MMA_XVI16GER2PP,
13177 UNSPEC_MMA_XVI16GER2S, UNSPEC_MMA_XVI16GER2SPP, UNSPEC_MMA_XVI4GER8,
13178 UNSPEC_MMA_XVI4GER8PP, UNSPEC_MMA_XVI8GER4, UNSPEC_MMA_XVI8GER4PP,
13179 UNSPEC_MMA_XVI8GER4SPP, UNSPEC_MMA_XXMFACC, UNSPEC_MMA_XXMTACC): New.
13180 (MMA_ACC, MMA_VV, MMA_AVV, MMA_PV, MMA_APV, MMA_VVI4I4I8,
13181 MMA_AVVI4I4I8, MMA_VVI4I4I2, MMA_AVVI4I4I2, MMA_VVI4I4,
13182 MMA_AVVI4I4, MMA_PVI4I2, MMA_APVI4I2, MMA_VVI4I4I4,
13183 MMA_AVVI4I4I4): New define_int_iterator.
13184 (acc, vv, avv, pv, apv, vvi4i4i8, avvi4i4i8, vvi4i4i2,
13185 avvi4i4i2, vvi4i4, avvi4i4, pvi4i2, apvi4i2, vvi4i4i4,
13186 avvi4i4i4): New define_int_attr.
13187 (*movpxi): Add zero constant alternative.
13188 (mma_assemble_pair, mma_assemble_acc): New define_expand.
13189 (*mma_assemble_acc): New define_insn_and_split.
13190 (mma_<acc>, mma_xxsetaccz, mma_<vv>, mma_<avv>, mma_<pv>, mma_<apv>,
13191 mma_<vvi4i4i8>, mma_<avvi4i4i8>, mma_<vvi4i4i2>, mma_<avvi4i4i2>,
13192 mma_<vvi4i4>, mma_<avvi4i4>, mma_<pvi4i2>, mma_<apvi4i2>,
13193 mma_<vvi4i4i4>, mma_<avvi4i4i4>): New define_insn.
13194 * config/rs6000/rs6000.md (define_attr "type"): New type mma.
13195 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVBF16SP): New.
13196 (UNSPEC_VSX_XVCVSPBF16): Likewise.
13197 (XVCVBF16): New define_int_iterator.
13198 (xvcvbf16): New define_int_attr.
13199 (vsx_<xvcvbf16>): New define_insn.
13200 * doc/extend.texi: Document the mma built-ins.
13202 2020-06-21 Peter Bergner <bergner@linux.ibm.com>
13203 Michael Meissner <meissner@linux.ibm.com>
13205 * config/rs6000/mma.md: New file.
13206 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13208 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Add support
13209 for __vector_pair and __vector_quad types.
13210 * config/rs6000/rs6000-cpus.def (OTHER_FUTURE_MASKS): Add
13212 (POWERPC_MASKS): Likewise.
13213 * config/rs6000/rs6000-modes.def (OI, XI): New integer modes.
13214 (POI, PXI): New partial integer modes.
13215 * config/rs6000/rs6000.c (TARGET_INVALID_CONVERSION): Define.
13216 (rs6000_hard_regno_nregs_internal): Use VECTOR_ALIGNMENT_P.
13217 (rs6000_hard_regno_mode_ok_uncached): Likewise.
13218 Add support for POImode being allowed in VSX registers and PXImode
13219 being allowed in FP registers.
13220 (rs6000_modes_tieable_p): Adjust comment.
13221 Add support for POImode and PXImode.
13222 (rs6000_debug_reg_global) <print_tieable_modes>: Add OImode, POImode
13223 XImode, PXImode, V2SImode, V2SFmode and CCFPmode..
13224 (rs6000_setup_reg_addr_masks): Use VECTOR_ALIGNMENT_P.
13225 Set up appropriate addr_masks for vector pair and vector quad addresses.
13226 (rs6000_init_hard_regno_mode_ok): Add support for vector pair and
13227 vector quad registers. Setup reload handlers for POImode and PXImode.
13228 (rs6000_builtin_mask_calculate): Add support for RS6000_BTM_MMA.
13229 (rs6000_option_override_internal): Error if -mmma is specified
13230 without -mcpu=future.
13231 (rs6000_slow_unaligned_access): Use VECTOR_ALIGNMENT_P.
13232 (quad_address_p): Change size test to less than 16 bytes.
13233 (reg_offset_addressing_ok_p): Add support for ISA 3.1 vector pair
13234 and vector quad instructions.
13235 (avoiding_indexed_address_p): Likewise.
13236 (rs6000_emit_move): Disallow POImode and PXImode moves involving
13238 (rs6000_preferred_reload_class): Prefer VSX registers for POImode
13239 and FP registers for PXImode.
13240 (rs6000_split_multireg_move): Support splitting POImode and PXImode
13242 (rs6000_mangle_type): Adjust comment. Add support for mangling
13243 __vector_pair and __vector_quad types.
13244 (rs6000_opt_masks): Add entry for mma.
13245 (rs6000_builtin_mask_names): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
13246 (rs6000_function_value): Use VECTOR_ALIGNMENT_P.
13247 (address_to_insn_form): Likewise.
13248 (reg_to_non_prefixed): Likewise.
13249 (rs6000_invalid_conversion): New function.
13250 * config/rs6000/rs6000.h (MASK_MMA): Define.
13251 (BIGGEST_ALIGNMENT): Set to 512 if MMA support is enabled.
13252 (VECTOR_ALIGNMENT_P): New helper macro.
13253 (ALTIVEC_VECTOR_MODE): Use VECTOR_ALIGNMENT_P.
13254 (RS6000_BTM_MMA): Define.
13255 (RS6000_BTM_COMMON): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
13256 (rs6000_builtin_type_index): Add RS6000_BTI_vector_pair and
13257 RS6000_BTI_vector_quad.
13258 (vector_pair_type_node): New.
13259 (vector_quad_type_node): New.
13260 * config/rs6000/rs6000.md: Include mma.md.
13261 (define_mode_iterator RELOAD): Add POI and PXI.
13262 * config/rs6000/t-rs6000 (MD_INCLUDES): Add mma.md.
13263 * config/rs6000/rs6000.opt (-mmma): New.
13264 * doc/invoke.texi: Document -mmma.
13266 2020-06-20 Bin Cheng <bin.cheng@linux.alibaba.com>
13268 PR tree-optimization/95638
13269 * tree-loop-distribution.c (pg_edge_callback_data): New field.
13270 (loop_distribution::break_alias_scc_partitions): Record and restore
13271 postorder information. Fix memory leak.
13273 2020-06-19 Tobias Burnus <tobias@codesourcery.com>
13275 * config/gcn/gcn.c (gcn_related_vector_mode): Add ARG_UNUSED.
13276 (output_file_start): Use const 'char *'.
13278 2020-06-19 Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
13280 PR tree-optimization/94880
13281 * match.pd (A | B) - B -> (A & ~B): New simplification.
13283 2020-06-19 Richard Biener <rguenther@suse.de>
13285 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Adjust
13286 for lane permutations.
13288 2020-06-19 Richard Biener <rguenther@suse.de>
13290 PR tree-optimization/95761
13291 * tree-vect-slp.c (vect_schedule_slp_instance): Walk all
13292 vectorized stmts for finding the last one.
13294 2020-06-18 Felix Yang <felix.yang@huawei.com>
13296 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Call
13297 vect_relevant_for_alignment_p to filter out data references in
13298 the loop whose alignment is irrelevant when trying loop peeling
13299 to force alignment.
13301 2020-06-18 Uroš Bizjak <ubizjak@gmail.com>
13303 * config/i386/i386.md (*cmpqi_ext<mode>_1): Use SWI248 mode
13304 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
13305 mode iterator for the first operand of ZERO_EXTRACT RTX.
13306 Change ext_register_operand predicate to register_operand.
13307 Rename from *cmpqi_ext_1.
13308 (*cmpqi_ext<mode>_2): Ditto. Rename from *cmpqi_ext_2.
13309 (*cmpqi_ext<mode>_3): Ditto. Rename from *cmpqi_ext_3.
13310 (*cmpqi_ext<mode>_4): Ditto. Rename from *cmpqi_ext_4.
13311 (cmpi_ext_3): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13312 (*extv<mode>): Use SWI24 mode iterator for the first operand
13313 of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13314 to register_operand.
13315 (*extzv<mode>): Use SWI248 mode iterator for the first operand
13316 of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13317 to register_operand.
13318 (*extzvqi): Use SWI248 mode iterator instead of SImode for
13319 ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first operand
13320 of ZERO_EXTRACT RTX. Change ext_register_operand predicate to
13322 (*extzvqi_mem_rex64 and corresponding peephole2): Use SWI248 mode
13323 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
13324 mode iterator for the first operand of ZERO_EXTRACT RTX.
13325 Change ext_register_operand predicate to register_operand.
13326 (@insv<mode>_1): Use SWI248 mode iterator for the first operand
13327 of ZERO_EXTRACT RTX. Change ext_register_operand predicate to
13329 (*insvqi_1): Use SWI248 mode iterator instead of SImode
13330 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the
13331 first operand of ZERO_EXTRACT RTX. Change ext_register_operand
13332 predicate to register_operand.
13333 (*insvqi_2): Ditto.
13334 (*insvqi_3): Ditto.
13335 (*insvqi_1_mem_rex64 and corresponding peephole2): Use SWI248 mode
13336 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
13337 mode iterator for the first operand of ZERO_EXTRACT RTX.
13338 Change ext_register_operand predicate to register_operand.
13339 (addqi_ext_1): New expander.
13340 (*addqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
13341 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13342 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13343 to register_operand. Rename from *addqi_ext_1.
13344 (*addqi_ext<mode>_2): Ditto. Rename from *addqi_ext_2.
13345 (divmodqi4): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13346 (udivmodqi4): Ditto.
13347 (testqi_ext_1): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13348 (*testqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
13349 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13350 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13351 to register_operand. Rename from *testqi_ext_1.
13352 (*testqi_ext<mode>_2): Ditto. Rename from *testqi_ext_2.
13353 (andqi_ext_1): New expander.
13354 (*andqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
13355 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13356 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13357 to register_operand. Rename from andqi_ext_1.
13358 (*andqi_ext<mode>_1_cc): Ditto. Rename from *andqi_ext_1_cc.
13359 (*andqi_ext<mode>_2): Ditto. Rename from *andqi_ext_2.
13360 (*<code>qi_ext<mode>_1): Ditto. Rename from *<code>qi_ext_1.
13361 (*<code>qi_ext<mode>_2): Ditto. Rename from *<code>qi_ext_2.
13362 (xorqi_ext_1_cc): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13363 (*xorqi_ext<mode>_1_cc): Use SWI248 mode iterator instead of SImode
13364 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13365 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13366 to register_operand. Rename from *xorqi_ext_1_cc.
13367 * config/i386/i386-expand.c (ix86_split_idivmod): Emit ZERO_EXTRACT
13368 in mode, matching its first operand.
13369 (promote_duplicated_reg): Update for renamed insv<mode>_1.
13370 * config/i386/predicates.md (ext_register_operand): Remove predicate.
13372 2020-06-18 Martin Sebor <msebor@redhat.com>
13374 PR middle-end/95667
13375 PR middle-end/92814
13376 * builtins.c (compute_objsize): Remove call to
13377 compute_builtin_object_size and instead compute conservative sizes
13380 2020-06-18 Martin Liska <mliska@suse.cz>
13382 * coretypes.h (struct iterator_range): New type.
13383 * tree-vect-patterns.c (vect_determine_precisions): Use
13384 range-based iterator.
13385 (vect_pattern_recog): Likewise.
13386 * tree-vect-slp.c (_bb_vec_info): Likewise.
13387 (_bb_vec_info::~_bb_vec_info): Likewise.
13388 (vect_slp_check_for_constructors): Likewise.
13389 * tree-vectorizer.h:Add new iterators
13390 and functions that use it.
13392 2020-06-18 Martin Liska <mliska@suse.cz>
13394 * config/rs6000/rs6000-call.c (fold_build_vec_cmp):
13395 Since 502d63b6d6141597bb18fd23c87736a1b384cf8f, first argument
13396 of a VEC_COND_EXPR cannot be tcc_comparison and so that
13397 a SSA_NAME needs to be created before we use it for the first
13398 argument of the VEC_COND_EXPR.
13399 (fold_compare_helper): Pass gsi to fold_build_vec_cmp.
13401 2020-06-18 Richard Biener <rguenther@suse.de>
13403 PR middle-end/95739
13404 * internal-fn.c (expand_vect_cond_optab_fn): Move the result
13405 to the target if necessary.
13406 (expand_vect_cond_mask_optab_fn): Likewise.
13408 2020-06-18 Martin Liska <mliska@suse.cz>
13410 * tree-ssa-reassoc.c (ovce_extract_ops): Replace *vcond with
13411 vcond as we check for NULL pointer.
13413 2020-06-18 Tobias Burnus <tobias@codesourcery.com>
13415 * gimple-pretty-print.c (dump_binary_rhs): Use braces to
13416 silence empty-body warning with gcc_fallthrough.
13418 2020-06-18 Jakub Jelinek <jakub@redhat.com>
13420 PR tree-optimization/95699
13421 * tree-ssa-phiopt.c (minmax_replacement): Treat (signed int)x < 0
13422 as x > INT_MAX and (signed int)x >= 0 as x <= INT_MAX. Move variable
13423 declarations to the statements that set them where possible.
13425 2020-06-18 Jakub Jelinek <jakub@redhat.com>
13428 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't allow
13429 scalar mode halfvectype other than vector boolean for
13430 VEC_PACK_TRUNC_EXPR.
13432 2020-06-18 Richard Biener <rguenther@suse.de>
13434 * varasm.c (assemble_variable): Make sure to not
13435 defer output when outputting addressed constants.
13436 (output_constant_def_contents): Likewise.
13437 (add_constant_to_table): Take and pass on whether to
13439 (output_addressed_constants): Likewise.
13440 (output_constant_def): Pass on whether to defer output
13441 to add_constant_to_table.
13442 (tree_output_constant_def): Defer output of constants.
13444 2020-06-18 Richard Biener <rguenther@suse.de>
13446 * tree-vectorizer.h (_slp_tree::two_operators): Remove.
13447 (_slp_tree::lane_permutation): New member.
13448 (_slp_tree::code): Likewise.
13449 (SLP_TREE_TWO_OPERATORS): Remove.
13450 (SLP_TREE_LANE_PERMUTATION): New.
13451 (SLP_TREE_CODE): Likewise.
13452 (vect_stmt_dominates_stmt_p): Declare.
13453 * tree-vectorizer.c (vect_stmt_dominates_stmt_p): New function.
13454 * tree-vect-stmts.c (vect_model_simple_cost): Remove
13455 SLP_TREE_TWO_OPERATORS handling.
13456 * tree-vect-slp.c (_slp_tree::_slp_tree): Amend.
13457 (_slp_tree::~_slp_tree): Likewise.
13458 (vect_two_operations_perm_ok_p): Remove.
13459 (vect_build_slp_tree_1): Remove verification of two-operator
13461 (vect_build_slp_tree_2): When we have two different operators
13462 build two computation SLP nodes and a blend.
13463 (vect_print_slp_tree): Print the lane permutation if it exists.
13464 (slp_copy_subtree): Copy it.
13465 (vect_slp_rearrange_stmts): Re-arrange it.
13466 (vect_slp_analyze_node_operations_1): Handle SLP_TREE_CODE
13467 VEC_PERM_EXPR explicitely.
13468 (vect_schedule_slp_instance): Likewise. Remove old
13469 SLP_TREE_TWO_OPERATORS code.
13470 (vectorizable_slp_permutation): New function.
13472 2020-06-18 Martin Liska <mliska@suse.cz>
13474 * tree-vect-generic.c (expand_vector_condition): Check
13475 for gassign before inspecting RHS.
13477 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
13479 * gimplify.c (omp_notice_threadprivate_variable)
13480 (omp_default_clause, omp_notice_variable): 'inform' after 'error'
13481 diagnostic. Adjust all users.
13483 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
13485 * hsa-gen.c (gen_hsa_insns_for_call): Move 'function_decl ==
13486 NULL_TREE' check earlier.
13488 2020-06-17 Forrest Timour <forrest.timour@gmail.com>
13490 * doc/extend.texi (attribute access): Fix a typo.
13492 2020-06-17 Bin Cheng <bin.cheng@linux.alibaba.com>
13493 Kaipeng Zhou <zhoukaipeng3@huawei.com>
13495 PR tree-optimization/95199
13496 * tree-vect-stmts.c: Eliminate common stmts for bump and offset in
13497 strided load/store operations and remove redundant code.
13499 2020-06-17 Richard Sandiford <richard.sandiford@arm.com>
13501 * coretypes.h (first_type): New alias template.
13502 * recog.h (insn_gen_fn::operator()): Use it instead of a decltype.
13503 Remove spurious “...” and split the function type out into a typedef.
13505 2020-06-17 Andreas Krebbel <krebbel@linux.ibm.com>
13507 * config/s390/s390.c (s390_fix_long_loop_prediction): Exit early
13510 2020-06-17 Richard Biener <rguenther@suse.de>
13512 * tree-vect-slp.c (vect_build_slp_tree_1): Set the passed
13513 in *vectype parameter.
13514 (vect_build_slp_tree_2): Set SLP_TREE_VECTYPE from what
13515 vect_build_slp_tree_1 computed.
13516 (vect_analyze_slp_instance): Set SLP_TREE_VECTYPE.
13517 (vect_slp_analyze_node_operations_1): Use the SLP node vector type.
13518 (vect_schedule_slp_instance): Likewise.
13519 * tree-vect-stmts.c (vect_is_simple_use): Take the vector type
13520 from SLP_TREE_VECTYPE.
13522 2020-06-17 Richard Biener <rguenther@suse.de>
13524 PR tree-optimization/95717
13525 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
13526 Move BB SSA updating before exit/latch PHI current def copying.
13528 2020-06-17 Martin Liska <mliska@suse.cz>
13530 * Makefile.in: Add new file.
13531 * expr.c (expand_expr_real_2): Add gcc_unreachable as we should
13532 not meet this condition.
13533 (do_store_flag): Likewise.
13534 * gimplify.c (gimplify_expr): Gimplify first argument of
13535 VEC_COND_EXPR to be a SSA name.
13536 * internal-fn.c (vec_cond_mask_direct): New.
13537 (vec_cond_direct): Likewise.
13538 (vec_condu_direct): Likewise.
13539 (vec_condeq_direct): Likewise.
13540 (expand_vect_cond_optab_fn): New.
13541 (expand_vec_cond_optab_fn): Likewise.
13542 (expand_vec_condu_optab_fn): Likewise.
13543 (expand_vec_condeq_optab_fn): Likewise.
13544 (expand_vect_cond_mask_optab_fn): Likewise.
13545 (expand_vec_cond_mask_optab_fn): Likewise.
13546 (direct_vec_cond_mask_optab_supported_p): Likewise.
13547 (direct_vec_cond_optab_supported_p): Likewise.
13548 (direct_vec_condu_optab_supported_p): Likewise.
13549 (direct_vec_condeq_optab_supported_p): Likewise.
13550 * internal-fn.def (VCOND): New OPTAB.
13551 (VCONDU): Likewise.
13552 (VCONDEQ): Likewise.
13553 (VCOND_MASK): Likewise.
13554 * optabs.c (get_rtx_code): Make it global.
13555 (expand_vec_cond_mask_expr): Removed.
13556 (expand_vec_cond_expr): Removed.
13557 * optabs.h (expand_vec_cond_expr): Likewise.
13558 (vector_compare_rtx): Make it global.
13559 * passes.def: Add new pass_gimple_isel pass.
13560 * tree-cfg.c (verify_gimple_assign_ternary): Add check
13561 for VEC_COND_EXPR about first argument.
13562 * tree-pass.h (make_pass_gimple_isel): New.
13563 * tree-ssa-forwprop.c (pass_forwprop::execute): Prevent
13564 propagation of the first argument of a VEC_COND_EXPR.
13565 * tree-ssa-reassoc.c (ovce_extract_ops): Support SSA_NAME as
13566 first argument of a VEC_COND_EXPR.
13567 (optimize_vec_cond_expr): Likewise.
13568 * tree-vect-generic.c (expand_vector_divmod): Make SSA_NAME
13569 for a first argument of created VEC_COND_EXPR.
13570 (expand_vector_condition): Fix coding style.
13571 * tree-vect-stmts.c (vectorizable_condition): Gimplify
13573 * gimple-isel.cc: New file.
13575 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
13577 * config/gcn/gcn-hsa.h (TEXT_SECTION_ASM_OP): Use ".text".
13578 (BSS_SECTION_ASM_OP): Use ".bss".
13579 (ASM_SPEC): Remove "-mattr=-code-object-v3".
13580 (LINK_SPEC): Add "--export-dynamic".
13581 * config/gcn/gcn-opts.h (processor_type): Replace PROCESSOR_VEGA with
13582 PROCESSOR_VEGA10 and PROCESSOR_VEGA20.
13583 * config/gcn/gcn-run.c (HSA_RUNTIME_LIB): Use ".so.1" variant.
13584 (load_image): Remove obsolete relocation handling.
13585 Add ".kd" suffix to the symbol names.
13586 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT): Set to 62.
13587 (gcn_option_override): Update gcn_isa test.
13588 (gcn_kernel_arg_types): Update all the assembler directives.
13589 Remove the obsolete options.
13590 (gcn_conditional_register_usage): Update MAX_NORMAL_SGPR_COUNT usage.
13591 (gcn_omp_device_kind_arch_isa): Handle PROCESSOR_VEGA10 and
13593 (output_file_start): Rework assembler file header.
13594 (gcn_hsa_declare_function_name): Rework kernel metadata.
13595 * config/gcn/gcn.h (GCN_KERNEL_ARG_TYPES): Set to 16.
13596 * config/gcn/gcn.opt (PROCESSOR_VEGA): Remove enum.
13597 (PROCESSOR_VEGA10): New enum value.
13598 (PROCESSOR_VEGA20): New enum value.
13600 2020-06-17 Martin Liska <mliska@suse.cz>
13602 * gcov-dump.c (print_version): Collapse lisence header to 2 lines
13604 * gcov-tool.c (print_version): Likewise.
13605 * gcov.c (print_version): Likewise.
13607 2020-06-17 liuhongt <hongtao.liu@intel.com>
13610 * config/i386/i386-expand.c
13611 (ix86_expand_vec_shift_qihi_constant): New function.
13612 * config/i386/i386-protos.h
13613 (ix86_expand_vec_shift_qihi_constant): Declare.
13614 * config/i386/sse.md (<shift_insn><mode>3): Optimize shift
13615 V*QImode by constant.
13617 2020-06-16 Aldy Hernandez <aldyh@redhat.com>
13619 PR tree-optimization/95649
13620 * tree-ssa-propagate.c (propagate_into_phi_args): Do not propagate unless
13621 value is a constant.
13623 2020-06-16 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
13625 * config.in: Regenerate.
13626 * config/s390/s390.c (print_operand): Emit vector alignment hints
13627 for target z13, if AS accepts them. For other targets the logic
13629 * config/s390/s390.h (TARGET_VECTOR_LOADSTORE_ALIGNMENT_HINTS): Define
13631 * configure: Regenerate.
13632 * configure.ac: Check HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13.
13634 2020-06-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13636 * config/arm/arm_mve.h (__arm_vaddq_m_n_s8): Correct the intrinsic
13638 (__arm_vaddq_m_n_s32): Likewise.
13639 (__arm_vaddq_m_n_s16): Likewise.
13640 (__arm_vaddq_m_n_u8): Likewise.
13641 (__arm_vaddq_m_n_u32): Likewise.
13642 (__arm_vaddq_m_n_u16): Likewise.
13643 (__arm_vaddq_m): Modify polymorphic variant.
13645 2020-06-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13647 * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Correct the predicate
13648 and constraint of all the operands.
13649 (mve_sqrshrl_sat<supf>_di): Likewise.
13650 (mve_uqrshl_si): Likewise.
13651 (mve_sqrshr_si): Likewise.
13652 (mve_uqshll_di): Likewise.
13653 (mve_urshrl_di): Likewise.
13654 (mve_uqshl_si): Likewise.
13655 (mve_urshr_si): Likewise.
13656 (mve_sqshl_si): Likewise.
13657 (mve_srshr_si): Likewise.
13658 (mve_srshrl_di): Likewise.
13659 (mve_sqshll_di): Likewise.
13660 * config/arm/predicates.md (arm_low_register_operand): Define.
13662 2020-06-16 Jakub Jelinek <jakub@redhat.com>
13664 * tree.h (OMP_FOR_NON_RECTANGULAR): Define.
13665 * gimplify.c (gimplify_omp_for): Diagnose schedule, ordered
13666 or dist_schedule clause on non-rectangular loops. Handle
13667 gimplification of non-rectangular lb/b expressions. When changing
13668 iteration variable, adjust also non-rectangular lb/b expressions
13670 * omp-general.h (struct omp_for_data_loop): Add m1, m2 and outer
13672 (struct omp_for_data): Add non_rect member.
13673 * omp-general.c (omp_extract_for_data): Handle non-rectangular
13674 loops. Fill in non_rect, m1, m2 and outer.
13675 * omp-low.c (lower_omp_for): Handle non-rectangular lb/b expressions.
13676 * omp-expand.c (expand_omp_for): Emit sorry_at for unsupported
13677 non-rectangular loop cases and assert for cases that can't be
13679 * tree-pretty-print.c (dump_mem_ref): Formatting fix.
13680 (dump_omp_loop_non_rect_expr): New function.
13681 (dump_generic_node): Handle non-rectangular OpenMP loops.
13682 * tree-pretty-print.h (dump_omp_loop_non_rect_expr): Declare.
13683 * gimple-pretty-print.c (dump_gimple_omp_for): Handle non-rectangular
13686 2020-06-16 Richard Biener <rguenther@suse.de>
13688 PR middle-end/95690
13689 * varasm.c (build_constant_desc): Remove set_mem_attributes call.
13691 2020-06-16 Kito Cheng <kito.cheng@sifive.com>
13694 * config/riscv/riscv.c (riscv_gpr_save_operation_p): Remove
13695 assertion and turn it into a early exit check.
13697 2020-06-15 Eric Botcazou <ebotcazou@adacore.com>
13699 * gimplify.c (gimplify_init_constructor) <AGGREGATE_TYPE>: Declare
13700 new ENSURE_SINGLE_ACCESS constant and move variables down. If it is
13701 true and all elements are zero, then always clear. Return GS_ERROR
13702 if a temporary would be created for it and NOTIFY_TEMP_CREATION set.
13703 (gimplify_modify_expr_rhs) <VAR_DECL>: If the target is volatile but
13704 the type is aggregate non-addressable, ask gimplify_init_constructor
13705 whether it can generate a single access to the target.
13707 2020-06-15 Eric Botcazou <ebotcazou@adacore.com>
13709 * tree-sra.c (propagate_subaccesses_from_rhs): When a non-scalar
13710 access on the LHS is replaced with a scalar access, propagate the
13711 TYPE_REVERSE_STORAGE_ORDER flag of the type of the original access.
13713 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
13715 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Remove
13716 TARGET_THREADPTR reference.
13717 (xtensa_tls_symbol_p, xtensa_tls_referenced_p): Use
13718 targetm.have_tls instead of TARGET_HAVE_TLS.
13719 (xtensa_option_override): Set targetm.have_tls to false in
13720 configurations without THREADPTR.
13722 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
13724 * config/xtensa/elf.h (ASM_SPEC, LINK_SPEC): Pass ABI switch to
13726 * config/xtensa/linux.h (ASM_SPEC, LINK_SPEC): Ditto.
13727 * config/xtensa/uclinux.h (ASM_SPEC, LINK_SPEC): Ditto.
13728 * config/xtensa/xtensa.c (xtensa_option_override): Initialize
13729 xtensa_windowed_abi if needed.
13730 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI_DEFAULT): New
13732 (TARGET_WINDOWED_ABI): Redefine to xtensa_windowed_abi.
13733 * config/xtensa/xtensa.opt (xtensa_windowed_abi): New target
13735 (mabi=call0, mabi=windowed): New options.
13736 * doc/invoke.texi: Document new -mabi= Xtensa-specific options.
13738 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
13740 * config/xtensa/xtensa.c (xtensa_can_eliminate): New function.
13741 (TARGET_CAN_ELIMINATE): New macro.
13742 * config/xtensa/xtensa.h
13743 (XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM)
13744 (XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM): New macros.
13745 (HARD_FRAME_POINTER_REGNUM): Define using
13746 XTENSA_*_HARD_FRAME_POINTER_REGNUM.
13747 (ELIMINABLE_REGS): Replace lines with HARD_FRAME_POINTER_REGNUM
13748 by lines with XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM and
13749 XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM.
13751 2020-06-15 Felix Yang <felix.yang@huawei.com>
13753 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Rename
13754 parameter to loop_vinfo and update uses. Use LOOP_VINFO_DATAREFS
13756 (vect_analyze_data_refs_alignment): Likewise, and use LOOP_VINFO_DDRS
13758 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Use
13759 LOOP_VINFO_DATAREFS when possible.
13760 (update_epilogue_loop_vinfo): Likewise.
13762 2020-06-15 Kito Cheng <kito.cheng@sifive.com>
13764 * config/riscv/riscv.c (riscv_gen_gpr_save_insn): Change type to
13766 (riscv_gpr_save_operation_p): Change type to unsigned for i and
13769 2020-06-15 Hongtao Liu <hongtao.liu@intel.com>
13772 * config/i386/i386-expand.c (ix86_expand_vecmul_qihi): New
13774 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Declare.
13775 * config/i386/sse.md (mul<mode>3): Drop mask_name since
13776 there's no real simd int8 multiplication instruction with
13777 mask. Also optimize it under TARGET_AVX512BW.
13778 (mulv8qi3): New expander.
13780 2020-06-12 Marco Elver <elver@google.com>
13782 * gimplify.c (gimplify_function_tree): Optimize and do not emit
13783 IFN_TSAN_FUNC_EXIT in a finally block if we do not need it.
13784 * params.opt: Add --param=tsan-instrument-func-entry-exit=.
13785 * tsan.c (instrument_memory_accesses): Make
13786 fentry_exit_instrument bool depend on new param.
13788 2020-06-12 Felix Yang <felix.yang@huawei.com>
13790 PR tree-optimization/95570
13791 * tree-vect-data-refs.c (vect_relevant_for_alignment_p): New function.
13792 (vect_verify_datarefs_alignment): Call it to filter out data references
13793 in the loop whose alignment is irrelevant.
13794 (vect_get_peeling_costs_all_drs): Likewise.
13795 (vect_peeling_supportable): Likewise.
13796 (vect_enhance_data_refs_alignment): Likewise.
13798 2020-06-12 Richard Biener <rguenther@suse.de>
13800 PR tree-optimization/95633
13801 * tree-vect-stmts.c (vectorizable_condition): Properly
13802 guard the vec_else_clause access with EXTRACT_LAST_REDUCTION.
13804 2020-06-12 Martin Liška <mliska@suse.cz>
13806 * cgraphunit.c (process_symver_attribute): Wrap weakref keyword.
13807 * dbgcnt.c (dbg_cnt_set_limit_by_index): Do not print extra new
13809 * lto-wrapper.c (merge_and_complain): Wrap option names.
13811 2020-06-12 Kewen Lin <linkw@gcc.gnu.org>
13813 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Rename
13814 LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE. Rename
13815 LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
13816 (vect_set_loop_condition_masked): Renamed to ...
13817 (vect_set_loop_condition_partial_vectors): ... this. Rename
13818 LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE. Rename
13819 vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
13820 (vect_set_loop_condition_unmasked): Renamed to ...
13821 (vect_set_loop_condition_normal): ... this.
13822 (vect_set_loop_condition): Rename vect_set_loop_condition_unmasked to
13823 vect_set_loop_condition_normal. Rename vect_set_loop_condition_masked
13824 to vect_set_loop_condition_partial_vectors.
13825 (vect_prepare_for_masked_peels): Rename LOOP_VINFO_MASK_COMPARE_TYPE
13826 to LOOP_VINFO_RGROUP_COMPARE_TYPE.
13827 * tree-vect-loop.c (vect_known_niters_smaller_than_vf): New, factored
13829 (vect_analyze_loop_costing): ... this.
13830 (_loop_vec_info::_loop_vec_info): Rename mask_compare_type to
13832 (vect_min_prec_for_max_niters): New, factored out from ...
13833 (vect_verify_full_masking): ... this. Rename
13834 vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
13835 Rename LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE.
13836 Rename LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
13837 (vectorizable_reduction): Update some dumpings with partial
13838 vectors instead of fully-masked.
13839 (vectorizable_live_operation): Likewise.
13840 (vect_iv_limit_for_full_masking): Renamed to ...
13841 (vect_iv_limit_for_partial_vectors): ... this.
13842 * tree-vect-stmts.c (check_load_store_masking): Renamed to ...
13843 (check_load_store_for_partial_vectors): ... this. Update some
13844 dumpings with partial vectors instead of fully-masked.
13845 (vectorizable_store): Rename check_load_store_masking to
13846 check_load_store_for_partial_vectors.
13847 (vectorizable_load): Likewise.
13848 * tree-vectorizer.h (LOOP_VINFO_MASK_COMPARE_TYPE): Renamed to ...
13849 (LOOP_VINFO_RGROUP_COMPARE_TYPE): ... this.
13850 (LOOP_VINFO_MASK_IV_TYPE): Renamed to ...
13851 (LOOP_VINFO_RGROUP_IV_TYPE): ... this.
13852 (vect_iv_limit_for_full_masking): Renamed to ...
13853 (vect_iv_limit_for_partial_vectors): this.
13854 (_loop_vec_info): Rename mask_compare_type to rgroup_compare_type.
13855 Rename iv_type to rgroup_iv_type.
13857 2020-06-12 Richard Sandiford <richard.sandiford@arm.com>
13859 * recog.h (insn_gen_fn::f0, insn_gen_fn::f1, insn_gen_fn::f2)
13860 (insn_gen_fn::f3, insn_gen_fn::f4, insn_gen_fn::f5, insn_gen_fn::f6)
13861 (insn_gen_fn::f7, insn_gen_fn::f8, insn_gen_fn::f9, insn_gen_fn::f10)
13862 (insn_gen_fn::f11, insn_gen_fn::f12, insn_gen_fn::f13)
13863 (insn_gen_fn::f14, insn_gen_fn::f15, insn_gen_fn::f16): Delete.
13864 (insn_gen_fn::operator()): Replace overloaded definitions with
13865 a parameter-pack version.
13867 2020-06-12 H.J. Lu <hjl.tools@gmail.com>
13870 * config/i386/i386-features.c (rest_of_insert_endbranch):
13872 (rest_of_insert_endbr_and_patchable_area): Change return type
13873 to void. Add need_endbr and patchable_area_size arguments.
13874 Don't call timevar_push nor timevar_pop. Replace
13875 endbr_queued_at_entrance with insn_queued_at_entrance. Insert
13876 UNSPECV_PATCHABLE_AREA for patchable area.
13877 (pass_data_insert_endbranch): Renamed to ...
13878 (pass_data_insert_endbr_and_patchable_area): This. Change
13879 pass name to endbr_and_patchable_area.
13880 (pass_insert_endbranch): Renamed to ...
13881 (pass_insert_endbr_and_patchable_area): This. Add need_endbr
13882 and patchable_area_size;.
13883 (pass_insert_endbr_and_patchable_area::gate): Set and check
13884 need_endbr and patchable_area_size.
13885 (pass_insert_endbr_and_patchable_area::execute): Call
13886 timevar_push and timevar_pop. Pass need_endbr and
13887 patchable_area_size to rest_of_insert_endbr_and_patchable_area.
13888 (make_pass_insert_endbranch): Renamed to ...
13889 (make_pass_insert_endbr_and_patchable_area): This.
13890 * config/i386/i386-passes.def: Replace pass_insert_endbranch
13891 with pass_insert_endbr_and_patchable_area.
13892 * config/i386/i386-protos.h (ix86_output_patchable_area): New.
13893 (make_pass_insert_endbranch): Renamed to ...
13894 (make_pass_insert_endbr_and_patchable_area): This.
13895 * config/i386/i386.c (ix86_asm_output_function_label): Set
13896 function_label_emitted to true.
13897 (ix86_print_patchable_function_entry): New function.
13898 (ix86_output_patchable_area): Likewise.
13899 (x86_function_profiler): Replace endbr_queued_at_entrance with
13900 insn_queued_at_entrance. Generate ENDBR only for TYPE_ENDBR.
13901 Call ix86_output_patchable_area to generate patchable area if
13903 (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): New.
13904 * config/i386/i386.h (queued_insn_type): New.
13905 (machine_function): Add function_label_emitted. Replace
13906 endbr_queued_at_entrance with insn_queued_at_entrance.
13907 * config/i386/i386.md (UNSPECV_PATCHABLE_AREA): New.
13908 (patchable_area): New.
13910 2020-06-11 Martin Liska <mliska@suse.cz>
13912 * config/rs6000/rs6000.c (rs6000_density_test): Fix GNU coding
13915 2020-06-11 Martin Liska <mliska@suse.cz>
13918 * config/rs6000/rs6000.c (rs6000_density_test): Skip debug
13921 2020-06-11 Martin Liska <mliska@suse.cz>
13922 Jakub Jelinek <jakub@redhat.com>
13925 * asan.c (asan_emit_stack_protection): Fix emission for ilp32
13926 by using Pmode instead of ptr_mode.
13928 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
13930 * tree-vect-loop-manip.c (vect_set_loop_mask): Renamed to ...
13931 (vect_set_loop_control): ... this.
13932 (vect_maybe_permute_loop_masks): Rename rgroup_masks related things.
13933 (vect_set_loop_masks_directly): Renamed to ...
13934 (vect_set_loop_controls_directly): ... this. Also rename some
13935 variables with ctrl instead of mask. Rename vect_set_loop_mask to
13936 vect_set_loop_control.
13937 (vect_set_loop_condition_masked): Rename rgroup_masks related things.
13938 Also rename some variables with ctrl instead of mask.
13939 * tree-vect-loop.c (release_vec_loop_masks): Renamed to ...
13940 (release_vec_loop_controls): ... this. Rename rgroup_masks related
13942 (_loop_vec_info::~_loop_vec_info): Rename release_vec_loop_masks to
13943 release_vec_loop_controls.
13944 (can_produce_all_loop_masks_p): Rename rgroup_masks related things.
13945 (vect_get_max_nscalars_per_iter): Likewise.
13946 (vect_estimate_min_profitable_iters): Likewise.
13947 (vect_record_loop_mask): Likewise.
13948 (vect_get_loop_mask): Likewise.
13949 * tree-vectorizer.h (struct rgroup_masks): Renamed to ...
13950 (struct rgroup_controls): ... this. Also rename mask_type
13951 to type and rename masks to controls.
13953 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
13955 * tree-vect-loop-manip.c (vect_set_loop_condition): Rename
13956 LOOP_VINFO_FULLY_MASKED_P to LOOP_VINFO_USING_PARTIAL_VECTORS_P.
13957 (vect_gen_vector_loop_niters): Likewise.
13958 (vect_do_peeling): Likewise.
13959 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
13960 fully_masked_p to using_partial_vectors_p.
13961 (vect_analyze_loop_costing): Rename LOOP_VINFO_FULLY_MASKED_P to
13962 LOOP_VINFO_USING_PARTIAL_VECTORS_P.
13963 (determine_peel_for_niter): Likewise.
13964 (vect_estimate_min_profitable_iters): Likewise.
13965 (vect_transform_loop): Likewise.
13966 * tree-vectorizer.h (LOOP_VINFO_FULLY_MASKED_P): Updated.
13967 (LOOP_VINFO_USING_PARTIAL_VECTORS_P): New macro.
13969 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
13971 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
13972 can_fully_mask_p to can_use_partial_vectors_p.
13973 (vect_analyze_loop_2): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
13974 LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P. Rename saved_can_fully_mask_p
13975 to saved_can_use_partial_vectors_p.
13976 (vectorizable_reduction): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
13977 LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P.
13978 (vectorizable_live_operation): Likewise.
13979 * tree-vect-stmts.c (permute_vec_elements): Likewise.
13980 (check_load_store_masking): Likewise.
13981 (vectorizable_operation): Likewise.
13982 (vectorizable_store): Likewise.
13983 (vectorizable_load): Likewise.
13984 (vectorizable_condition): Likewise.
13985 * tree-vectorizer.h (LOOP_VINFO_CAN_FULLY_MASK_P): Renamed to ...
13986 (LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P): ... this.
13987 (_loop_vec_info): Rename can_fully_mask_p to can_use_partial_vectors_p.
13989 2020-06-11 Martin Liska <mliska@suse.cz>
13991 * optc-save-gen.awk: Quote error string.
13993 2020-06-11 Alexandre Oliva <oliva@adacore.com>
13995 * print-rtl.c (print_mem_expr): Enable TDF_SLIM in dump_flags.
13997 2020-06-11 Kito Cheng <kito.cheng@sifive.com>
13999 * config/riscv/riscv-protos.h (riscv_output_gpr_save): Remove.
14000 * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Update
14002 * config/riscv/riscv.c (riscv_output_gpr_save): Remove.
14003 * config/riscv/riscv.md (gpr_save): Update output asm pattern.
14005 2020-06-11 Kito Cheng <kito.cheng@sifive.com>
14007 * config/riscv/predicates.md (gpr_save_operation): New.
14008 * config/riscv/riscv-protos.h (riscv_gen_gpr_save_insn): New.
14009 (riscv_gpr_save_operation_p): Ditto.
14010 * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
14011 Ignore USEs for gpr_save patter.
14012 * config/riscv/riscv.c (gpr_save_reg_order): New.
14013 (riscv_expand_prologue): Use riscv_gen_gpr_save_insn to gen gpr_save.
14014 (riscv_gen_gpr_save_insn): New.
14015 (riscv_gpr_save_operation_p): Ditto.
14016 * config/riscv/riscv.md (S3_REGNUM): New.
14017 (S4_REGNUM): Ditto.
14018 (S5_REGNUM): Ditto.
14019 (S6_REGNUM): Ditto.
14020 (S7_REGNUM): Ditto.
14021 (S8_REGNUM): Ditto.
14022 (S9_REGNUM): Ditto.
14023 (S10_REGNUM): Ditto.
14024 (S11_REGNUM): Ditto.
14025 (gpr_save): Model USEs correctly.
14027 2020-06-10 Martin Sebor <msebor@redhat.com>
14029 PR middle-end/95353
14030 PR middle-end/92939
14031 * builtins.c (inform_access): New function.
14032 (check_access): Call it. Add argument.
14033 (addr_decl_size): Remove.
14034 (get_range): New function.
14035 (compute_objsize): New overload. Only use compute_builtin_object_size
14036 with raw memory function.
14037 (check_memop_access): Pass new argument to compute_objsize and
14039 (expand_builtin_memchr, expand_builtin_strcat): Same.
14040 (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
14041 (expand_builtin_stpncpy, check_strncat_sizes): Same.
14042 (expand_builtin_strncat, expand_builtin_strncpy): Same.
14043 (expand_builtin_memcmp): Same.
14044 * builtins.h (check_nul_terminated_array): Declare extern.
14045 (check_access): Add argument.
14046 (struct access_ref, struct access_data): New structs.
14047 * gimple-ssa-warn-restrict.c (clamp_offset): New helper.
14048 (builtin_access::overlap): Call it.
14049 * tree-object-size.c (decl_init_size): Declare extern.
14050 (addr_object_size): Correct offset computation.
14051 * tree-object-size.h (decl_init_size): Declare.
14052 * tree-ssa-strlen.c (handle_integral_assign): Remove a call
14053 to maybe_warn_overflow when assigning to an SSA_NAME.
14055 2020-06-10 Richard Biener <rguenther@suse.de>
14057 * tree-vect-loop.c (vect_determine_vectorization_factor):
14059 (_loop_vec_info::_loop_vec_info): Likewise.
14060 (vect_update_vf_for_slp): Likewise.
14061 (vect_analyze_loop_operations): Likewise.
14062 (update_epilogue_loop_vinfo): Likewise.
14063 * tree-vect-patterns.c (vect_determine_precisions): Likewise.
14064 (vect_pattern_recog): Likewise.
14065 * tree-vect-slp.c (vect_detect_hybrid_slp): Likewise.
14066 (_bb_vec_info::_bb_vec_info): Likewise.
14067 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized):
14070 2020-06-10 Richard Biener <rguenther@suse.de>
14072 PR tree-optimization/95576
14073 * tree-vect-slp.c (vect_slp_bb): Skip leading debug stmts.
14075 2020-06-10 Haijian Zhang <z.zhanghaijian@huawei.com>
14078 * config/aarch64/aarch64-sve-builtins.h
14079 (sve_switcher::m_old_maximum_field_alignment): New member.
14080 * config/aarch64/aarch64-sve-builtins.cc
14081 (sve_switcher::sve_switcher): Save maximum_field_alignment in
14082 m_old_maximum_field_alignment and clear maximum_field_alignment.
14083 (sve_switcher::~sve_switcher): Restore maximum_field_alignment.
14085 2020-06-10 Richard Biener <rguenther@suse.de>
14087 * tree-vectorizer.h (_slp_tree::vec_stmts): Make it a vector
14089 (_stmt_vec_info::vec_stmts): Likewise.
14090 (vec_info::stmt_vec_info_ro): New flag.
14091 (vect_finish_replace_stmt): Adjust declaration.
14092 (vect_finish_stmt_generation): Likewise.
14093 (vectorizable_induction): Likewise.
14094 (vect_transform_reduction): Likewise.
14095 (vectorizable_lc_phi): Likewise.
14096 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Do not
14097 allocate stmt infos for increments.
14098 (vect_record_grouped_load_vectors): Adjust.
14099 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
14100 (vectorize_fold_left_reduction): Likewise.
14101 (vect_transform_reduction): Likewise.
14102 (vect_transform_cycle_phi): Likewise.
14103 (vectorizable_lc_phi): Likewise.
14104 (vectorizable_induction): Likewise.
14105 (vectorizable_live_operation): Likewise.
14106 (vect_transform_loop): Likewise.
14107 * tree-vect-patterns.c (vect_pattern_recog): Set stmt_vec_info_ro.
14108 * tree-vect-slp.c (vect_get_slp_vect_def): Adjust.
14109 (vect_get_slp_defs): Likewise.
14110 (vect_transform_slp_perm_load): Likewise.
14111 (vect_schedule_slp_instance): Likewise.
14112 (vectorize_slp_instance_root_stmt): Likewise.
14113 * tree-vect-stmts.c (vect_get_vec_defs_for_operand): Likewise.
14114 (vect_finish_stmt_generation_1): Do not allocate a stmt info.
14115 (vect_finish_replace_stmt): Do not return anything.
14116 (vect_finish_stmt_generation): Likewise.
14117 (vect_build_gather_load_calls): Adjust.
14118 (vectorizable_bswap): Likewise.
14119 (vectorizable_call): Likewise.
14120 (vectorizable_simd_clone_call): Likewise.
14121 (vect_create_vectorized_demotion_stmts): Likewise.
14122 (vectorizable_conversion): Likewise.
14123 (vectorizable_assignment): Likewise.
14124 (vectorizable_shift): Likewise.
14125 (vectorizable_operation): Likewise.
14126 (vectorizable_scan_store): Likewise.
14127 (vectorizable_store): Likewise.
14128 (vectorizable_load): Likewise.
14129 (vectorizable_condition): Likewise.
14130 (vectorizable_comparison): Likewise.
14131 (vect_transform_stmt): Likewise.
14132 * tree-vectorizer.c (vec_info::vec_info): Initialize
14134 (vec_info::replace_stmt): Copy over stmt UID rather than
14135 unsetting/setting a stmt info allocating a new UID.
14136 (vec_info::set_vinfo_for_stmt): Assert !stmt_vec_info_ro.
14138 2020-06-10 Aldy Hernandez <aldyh@redhat.com>
14140 * gimple-loop-versioning.cc (loop_versioning::name_prop::get_value):
14141 Add stmt parameter.
14142 * gimple-ssa-evrp.c (class evrp_folder): New.
14143 (class evrp_dom_walker): Remove.
14144 (execute_early_vrp): Use evrp_folder instead of evrp_dom_walker.
14145 * tree-ssa-ccp.c (ccp_folder::get_value): Add stmt parameter.
14146 * tree-ssa-copy.c (copy_folder::get_value): Same.
14147 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
14148 Pass stmt to get_value.
14149 (substitute_and_fold_engine::replace_phi_args_in): Same.
14150 (substitute_and_fold_dom_walker::after_dom_children): Call
14152 (substitute_and_fold_dom_walker::foreach_new_stmt_in_bb): New.
14153 (substitute_and_fold_dom_walker::propagate_into_phi_args): New.
14154 (substitute_and_fold_dom_walker::before_dom_children): Adjust to
14155 call virtual functions for folding, pre_folding, and post folding.
14156 Call get_value with PHI. Tweak dump.
14157 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14158 New argument to get_value.
14159 New virtual function pre_fold_bb.
14160 New virtual function post_fold_bb.
14161 New virtual function pre_fold_stmt.
14162 New virtual function post_new_stmt.
14163 New function propagate_into_phi_args.
14164 * tree-vrp.c (vrp_folder::get_value): Add stmt argument.
14165 * vr-values.c (vr_values::extract_range_from_stmt): Adjust dump
14167 (vr_values::fold_cond): New.
14168 (vr_values::simplify_cond_using_ranges_1): Call fold_cond.
14169 * vr-values.h (class vr_values): Add
14170 simplify_cond_using_ranges_when_edge_is_known.
14172 2020-06-10 Martin Liska <mliska@suse.cz>
14175 * asan.c (asan_emit_stack_protection): Emit
14176 also **SavedFlagPtr(FakeStack, class_id) = 0 in order to release
14179 2020-06-10 Tamar Christina <tamar.christina@arm.com>
14181 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Adjust costs for mul.
14183 2020-06-10 Richard Biener <rguenther@suse.de>
14185 * tree-vect-data-refs.c (vect_vfa_access_size): Adjust.
14186 (vect_record_grouped_load_vectors): Likewise.
14187 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
14188 (vectorize_fold_left_reduction): Likewise.
14189 (vect_transform_reduction): Likewise.
14190 (vect_transform_cycle_phi): Likewise.
14191 (vectorizable_lc_phi): Likewise.
14192 (vectorizable_induction): Likewise.
14193 (vectorizable_live_operation): Likewise.
14194 (vect_transform_loop): Likewise.
14195 * tree-vect-slp.c (vect_get_slp_defs): New function, split out
14197 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Remove.
14198 (vect_get_vec_def_for_operand): Likewise.
14199 (vect_get_vec_def_for_stmt_copy): Likewise.
14200 (vect_get_vec_defs_for_stmt_copy): Likewise.
14201 (vect_get_vec_defs_for_operand): New function.
14202 (vect_get_vec_defs): Likewise.
14203 (vect_build_gather_load_calls): Adjust.
14204 (vect_get_gather_scatter_ops): Likewise.
14205 (vectorizable_bswap): Likewise.
14206 (vectorizable_call): Likewise.
14207 (vectorizable_simd_clone_call): Likewise.
14208 (vect_get_loop_based_defs): Remove.
14209 (vect_create_vectorized_demotion_stmts): Adjust.
14210 (vectorizable_conversion): Likewise.
14211 (vectorizable_assignment): Likewise.
14212 (vectorizable_shift): Likewise.
14213 (vectorizable_operation): Likewise.
14214 (vectorizable_scan_store): Likewise.
14215 (vectorizable_store): Likewise.
14216 (vectorizable_load): Likewise.
14217 (vectorizable_condition): Likewise.
14218 (vectorizable_comparison): Likewise.
14219 (vect_transform_stmt): Adjust and remove no longer applicable
14221 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
14222 STMT_VINFO_VEC_STMTS.
14223 (vec_info::free_stmt_vec_info): Relase it.
14224 * tree-vectorizer.h (_stmt_vec_info::vectorized_stmt): Remove.
14225 (_stmt_vec_info::vec_stmts): Add.
14226 (STMT_VINFO_VEC_STMT): Remove.
14227 (STMT_VINFO_VEC_STMTS): New.
14228 (vect_get_vec_def_for_operand_1): Remove.
14229 (vect_get_vec_def_for_operand): Likewise.
14230 (vect_get_vec_defs_for_stmt_copy): Likewise.
14231 (vect_get_vec_def_for_stmt_copy): Likewise.
14232 (vect_get_vec_defs): New overloads.
14233 (vect_get_vec_defs_for_operand): New.
14234 (vect_get_slp_defs): Declare.
14236 2020-06-10 Qian Chao <qianchao9@huawei.com>
14238 PR tree-optimization/95569
14239 * trans-mem.c (expand_assign_tm): Ensure that rtmp is marked TREE_ADDRESSABLE.
14241 2020-06-10 Martin Liska <mliska@suse.cz>
14243 PR tree-optimization/92860
14244 * optc-save-gen.awk: Generate new function cl_optimization_compare.
14245 * opth-gen.awk: Generate declaration of the function.
14247 2020-06-09 Michael Meissner <meissner@linux.ibm.com>
14249 * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
14250 'future' PowerPC platform.
14251 (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
14252 (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
14253 * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
14255 * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
14256 (rs6000_clone_map): Add 'future' system target_clones support.
14258 2020-06-09 Michael Kuhn <gcc@ikkoku.de>
14260 * Makefile.in (ZSTD_INC): Define.
14261 (ZSTD_LIB): Include ZSTD_LDFLAGS.
14262 (CFLAGS-lto-compress.o): Add ZSTD_INC.
14263 * configure.ac (ZSTD_CPPFLAGS, ZSTD_LDFLAGS): New variables for
14265 * configure: Rebuilt.
14267 2020-06-09 Jason Merrill <jason@redhat.com>
14270 * tree.c (walk_tree_1): Call func on the TYPE_DECL of a DECL_EXPR.
14272 2020-06-09 Marco Elver <elver@google.com>
14274 * params.opt: Define --param=tsan-distinguish-volatile=[0,1].
14275 * sanitizer.def (BUILT_IN_TSAN_VOLATILE_READ1): Define new
14276 builtin for volatile instrumentation of reads/writes.
14277 (BUILT_IN_TSAN_VOLATILE_READ2): Likewise.
14278 (BUILT_IN_TSAN_VOLATILE_READ4): Likewise.
14279 (BUILT_IN_TSAN_VOLATILE_READ8): Likewise.
14280 (BUILT_IN_TSAN_VOLATILE_READ16): Likewise.
14281 (BUILT_IN_TSAN_VOLATILE_WRITE1): Likewise.
14282 (BUILT_IN_TSAN_VOLATILE_WRITE2): Likewise.
14283 (BUILT_IN_TSAN_VOLATILE_WRITE4): Likewise.
14284 (BUILT_IN_TSAN_VOLATILE_WRITE8): Likewise.
14285 (BUILT_IN_TSAN_VOLATILE_WRITE16): Likewise.
14286 * tsan.c (get_memory_access_decl): Argument if access is
14287 volatile. If param tsan-distinguish-volatile is non-zero, and
14288 access if volatile, return volatile instrumentation decl.
14289 (instrument_expr): Check if access is volatile.
14291 2020-06-09 Richard Biener <rguenther@suse.de>
14293 * tree-vect-loop.c (vectorizable_induction): Remove dead code.
14295 2020-06-09 Tobias Burnus <tobias@codesourcery.com>
14297 * omp-offload.c (add_decls_addresses_to_decl_constructor,
14298 omp_finish_file): With in_lto_p, stream out all offload-table
14299 items even if the symtab_node does not exist.
14301 2020-06-09 Richard Biener <rguenther@suse.de>
14303 * tree-vect-stmts.c (vect_transform_stmt): Remove dead code.
14305 2020-06-09 Martin Liska <mliska@suse.cz>
14307 * gcov-dump.c (print_usage): Fix spacing for --raw option
14310 2020-06-09 Martin Liska <mliska@suse.cz>
14312 * cif-code.def (ATTRIBUTE_MISMATCH): Rename to...
14313 (SANITIZE_ATTRIBUTE_MISMATCH): ...this.
14314 * ipa-inline.c (sanitize_attrs_match_for_inline_p):
14315 Handle all sanitizer options.
14316 (can_inline_edge_p): Use renamed CIF_* enum value.
14318 2020-06-09 Joe Ramsay <joe.ramsay@arm.com>
14320 * config/aarch64/aarch64-sve.md (<optab><mode>2): Add support for
14322 (@aarch64_pred_<optab><mode>): Add support for unpacked vectors.
14323 (@aarch64_bic<mode>): Enable unpacked BIC.
14324 (*bic<mode>3): Enable unpacked BIC.
14326 2020-06-09 Martin Liska <mliska@suse.cz>
14328 PR gcov-profile/95365
14329 * doc/gcov.texi: Compile and link one example in 2 steps.
14331 2020-06-09 Jakub Jelinek <jakub@redhat.com>
14333 PR tree-optimization/95527
14334 * match.pd (__builtin_ffs (X) cmp CST): New optimizations.
14336 2020-06-09 Michael Meissner <meissner@linux.ibm.com>
14338 * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
14339 'future' PowerPC platform.
14340 (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
14341 (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
14342 * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
14344 * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
14345 (rs6000_clone_map): Add 'future' system target_clones support.
14347 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
14350 PR middle-end/95551
14351 * omp-offload.c (add_decls_addresses_to_decl_constructor,
14352 omp_finish_file): Skip removed items.
14353 * lto-cgraph.c (output_offload_tables): Likewise; set force_output
14354 to this node for variables and functions.
14356 2020-06-08 Jason Merrill <jason@redhat.com>
14358 * aclocal.m4: Remove ax_cxx_compile_stdcxx.m4.
14359 * configure.ac: Remove AX_CXX_COMPILE_STDCXX.
14360 * configure: Regenerate.
14362 2020-06-08 Martin Sebor <msebor@redhat.com>
14364 * postreload.c (reload_cse_simplify_operands): Clear first array element
14365 before using it. Assert a precondition.
14367 2020-06-08 Jakub Jelinek <jakub@redhat.com>
14370 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't use
14371 VEC_UNPACK*_EXPR or VEC_PACK_TRUNC_EXPR with scalar modes unless the
14372 type is vector boolean.
14374 2020-06-08 Tamar Christina <tamar.christina@arm.com>
14376 * config/aarch64/aarch64.c (aarch64_layout_frame): Expand comments.
14378 2020-06-08 Christophe Lyon <christophe.lyon@linaro.org>
14380 * config/arm/predicates.md (vfp_register_operand): Use VFP_HI_REGS
14381 instead of VFP_REGS.
14383 2020-06-08 Martin Liska <mliska@suse.cz>
14385 * config/rs6000/vector.md: Replace FAIL with gcc_unreachable
14386 in all vcond* patterns.
14388 2020-06-08 Christophe Lyon <christophe.lyon@linaro.org>
14390 * common/config/arm/arm-common.c (INCLUDE_ALGORITHM):
14391 Define. No longer include <algorithm>.
14393 2020-06-07 Roger Sayle <roger@nextmovesoftware.com>
14395 * config/i386/i386.md (paritydi2, paritysi2): Expand reduction
14396 via shift and xor to an USPEC PARITY matching a parityhi2_cmp.
14397 (paritydi2_cmp, paritysi2_cmp): Delete these define_insn_and_split.
14398 (parityhi2, parityqi2): New expanders.
14399 (parityhi2_cmp): Implement set parity flag with xorb insn.
14400 (parityqi2_cmp): Implement set parity flag with testb insn.
14401 New peephole2s to use these insns (UNSPEC PARITY) when appropriate.
14403 2020-06-07 Jiufu Guo <guojiufu@linux.ibm.com>
14406 * config/rs6000/rs6000.c (rs6000_option_override_internal):
14407 Override flag_cunroll_grow_size.
14409 2020-06-07 Jiufu Guo <guojiufu@linux.ibm.com>
14411 * common.opt (flag_cunroll_grow_size): New flag.
14412 * toplev.c (process_options): Set flag_cunroll_grow_size.
14413 * tree-ssa-loop-ivcanon.c (pass_complete_unroll::execute):
14414 Use flag_cunroll_grow_size.
14416 2020-06-06 Jan Hubicka <hubicka@ucw.cz>
14419 * ipa-devirt.c (struct odr_enum_val): Turn values to wide_int.
14420 (ipa_odr_summary_write): Update streaming.
14421 (ipa_odr_read_section): Update streaming.
14423 2020-06-06 Alexandre Oliva <oliva@adacore.com>
14426 * gcc.c (do_spec_1): Don't call memcpy (_, NULL, 0).
14428 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
14429 Julian Brown <julian@codesourcery.com>
14431 * gimplify.c (gimplify_adjust_omp_clauses): Remove
14432 'GOMP_MAP_STRUCT' mapping from OpenACC 'exit data' directives.
14434 2020-06-05 Richard Biener <rguenther@suse.de>
14436 PR tree-optimization/95539
14437 * tree-vect-data-refs.c
14438 (vect_slp_analyze_and_verify_instance_alignment): Use
14439 SLP_TREE_REPRESENTATIVE for the data-ref check.
14440 * tree-vect-stmts.c (vectorizable_load): Reset stmt_info
14441 back to the first scalar stmt rather than the
14442 SLP_TREE_REPRESENTATIVE to match previous behavior.
14444 2020-06-05 Felix Yang <felix.yang@huawei.com>
14447 * expr.c (emit_move_insn): Check src and dest of the copy to see
14448 if one or both of them are subregs, try to remove the subregs when
14449 innermode and outermode are equal in size and the mode change involves
14450 an implicit round trip through memory.
14452 2020-06-05 Jakub Jelinek <jakub@redhat.com>
14455 * config/i386/i386.md (*ctzsi2_zext, *clzsi2_lzcnt_zext): New
14456 define_insn_and_split patterns.
14457 (*ctzsi2_zext_falsedep, *clzsi2_lzcnt_zext_falsedep): New
14458 define_insn patterns.
14460 2020-06-05 Jonathan Wakely <jwakely@redhat.com>
14462 * alloc-pool.h (object_allocator::remove_raw): New.
14463 * tree-ssa-math-opts.c (struct occurrence): Use NSMDI.
14464 (occurrence::occurrence): Add.
14465 (occurrence::~occurrence): Likewise.
14466 (occurrence::new): Likewise.
14467 (occurrence::delete): Likewise.
14469 (insert_bb): Use new occurence (...) instead of occ_new.
14470 (register_division_in): Likewise.
14471 (free_bb): Use delete occ instead of manually removing
14474 2020-06-05 Richard Biener <rguenther@suse.de>
14476 PR middle-end/95493
14477 * cfgexpand.c (expand_debug_expr): Avoid calling
14478 set_mem_attributes_minus_bitpos when we were expanding
14480 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
14481 ARRAY_REF special-casing, add CONSTRUCTOR to the set of
14482 special-cases we do not want MEM_EXPRs for. Assert
14483 we end up with reasonable MEM_EXPRs.
14485 2020-06-05 Lili Cui <lili.cui@intel.com>
14488 * config/i386/i386.h (PTA_WAITPKG): Change bitmask value.
14490 2020-06-04 Martin Sebor <msebor@redhat.com>
14492 PR middle-end/10138
14493 PR middle-end/95136
14494 * attribs.c (init_attr_rdwr_indices): Move function here.
14495 * attribs.h (rdwr_access_hash, rdwr_map): Define.
14496 (attr_access): Add 'none'.
14497 (init_attr_rdwr_indices): Declared function.
14498 * builtins.c (warn_for_access)): New function.
14499 (check_access): Call it.
14500 * builtins.h (checK-access): Add an optional argument.
14501 * calls.c (rdwr_access_hash, rdwr_map): Move to attribs.h.
14502 (init_attr_rdwr_indices): Declare extern.
14503 (append_attrname): Handle attr_access::none.
14504 (maybe_warn_rdwr_sizes): Same.
14505 (initialize_argument_information): Update comments.
14506 * doc/extend.texi (attribute access): Document 'none'.
14507 * tree-ssa-uninit.c (struct wlimits): New.
14508 (maybe_warn_operand): New function.
14509 (maybe_warn_pass_by_reference): Same.
14510 (warn_uninitialized_vars): Refactor code into maybe_warn_operand.
14511 Also call for function calls.
14512 (pass_late_warn_uninitialized::execute): Adjust comments.
14513 (execute_early_warn_uninitialized): Same.
14515 2020-06-04 Vladimir Makarov <vmakarov@redhat.com>
14517 PR middle-end/95464
14518 * lra.c (lra_emit_move): Add processing STRICT_LOW_PART.
14519 * lra-constraints.c (match_reload): Use STRICT_LOW_PART in output
14520 reload if the original insn has it too.
14522 2020-06-04 Richard Biener <rguenther@suse.de>
14524 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr):
14525 Ensure that tmp_ha is marked TREE_ADDRESSABLE.
14527 2020-06-04 Martin Jambor <mjambor@suse.cz>
14530 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move non-call
14531 exceptions check to...
14532 * tree-eh.c (stmt_unremovable_because_of_non_call_eh_p): ...this
14534 * tree-eh.h (stmt_unremovable_because_of_non_call_eh_p): Declare it.
14535 * ipa-sra.c (isra_track_scalar_value_uses): Use it. New parameter
14538 2020-06-04 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14541 * config/arm/predicates.md (mve_scatter_memory): Define to
14542 match (mem (reg)) for scatter store memory.
14543 * config/arm/mve.md (mve_vstrbq_scatter_offset_<supf><mode>): Modify
14544 define_insn to define_expand.
14545 (mve_vstrbq_scatter_offset_p_<supf><mode>): Likewise.
14546 (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
14547 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
14548 (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
14549 (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
14550 (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
14551 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
14552 (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
14553 (mve_vstrhq_scatter_offset_fv8hf): Likewise.
14554 (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
14555 (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
14556 (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
14557 (mve_vstrwq_scatter_offset_fv4sf): Likewise.
14558 (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
14559 (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
14560 (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
14561 (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
14562 (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
14563 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
14564 (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
14565 (mve_vstrbq_scatter_offset_<supf><mode>_insn): Define insn for scatter
14567 (mve_vstrbq_scatter_offset_p_<supf><mode>_insn): Likewise.
14568 (mve_vstrhq_scatter_offset_<supf><mode>_insn): Likewise.
14569 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>_insn): Likewise.
14570 (mve_vstrhq_scatter_shifted_offset_<supf><mode>_insn): Likewise.
14571 (mve_vstrdq_scatter_offset_p_<supf>v2di_insn): Likewise.
14572 (mve_vstrdq_scatter_offset_<supf>v2di_insn): Likewise.
14573 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di_insn): Likewise.
14574 (mve_vstrdq_scatter_shifted_offset_<supf>v2di_insn): Likewise.
14575 (mve_vstrhq_scatter_offset_fv8hf_insn): Likewise.
14576 (mve_vstrhq_scatter_offset_p_fv8hf_insn): Likewise.
14577 (mve_vstrhq_scatter_shifted_offset_fv8hf_insn): Likewise.
14578 (mve_vstrhq_scatter_shifted_offset_p_fv8hf_insn): Likewise.
14579 (mve_vstrwq_scatter_offset_fv4sf_insn): Likewise.
14580 (mve_vstrwq_scatter_offset_p_fv4sf_insn): Likewise.
14581 (mve_vstrwq_scatter_offset_p_<supf>v4si_insn): Likewise.
14582 (mve_vstrwq_scatter_offset_<supf>v4si_insn): Likewise.
14583 (mve_vstrwq_scatter_shifted_offset_fv4sf_insn): Likewise.
14584 (mve_vstrwq_scatter_shifted_offset_p_fv4sf_insn): Likewise.
14585 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si_insn): Likewise.
14586 (mve_vstrwq_scatter_shifted_offset_<supf>v4si_insn): Likewise.
14588 2020-06-04 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14590 * config/arm/arm_mve.h (__arm_vbicq_n_u16): Correct the intrinsic
14592 (__arm_vbicq_n_s16): Likewise.
14593 (__arm_vbicq_n_u32): Likewise.
14594 (__arm_vbicq_n_s32): Likewise.
14595 (__arm_vbicq): Modify polymorphic variant.
14597 2020-06-04 Richard Biener <rguenther@suse.de>
14599 * tree-vectorizer.h (vect_get_slp_vect_def): Declare.
14600 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
14601 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
14602 (vect_is_simple_use): Use SLP_TREE_REPRESENTATIVE.
14603 * tree-vect-slp.c (vect_get_slp_vect_defs): Fold into single
14605 (vect_get_slp_defs): ... here.
14606 (vect_get_slp_vect_def): New function.
14608 2020-06-04 Richard Biener <rguenther@suse.de>
14610 * tree-vectorizer.h (_slp_tree::lanes): New.
14611 (SLP_TREE_LANES): Likewise.
14612 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
14613 (vectorizable_reduction): Likewise.
14614 (vect_transform_cycle_phi): Likewise.
14615 (vectorizable_induction): Likewise.
14616 (vectorizable_live_operation): Likewise.
14617 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize lanes.
14618 (vect_create_new_slp_node): Likewise.
14619 (slp_copy_subtree): Copy it.
14620 (vect_optimize_slp): Use it.
14621 (vect_slp_analyze_node_operations_1): Likewise.
14622 (vect_slp_convert_to_external): Likewise.
14623 (vect_bb_vectorization_profitable_p): Likewise.
14624 * tree-vect-stmts.c (vectorizable_load): Likewise.
14625 (get_vectype_for_scalar_type): Likewise.
14627 2020-06-04 Richard Biener <rguenther@suse.de>
14629 * tree-vect-slp.c (vect_update_all_shared_vectypes): Remove.
14630 (vect_build_slp_tree_2): Simplify building all external op
14631 nodes from scalars.
14632 (vect_slp_analyze_node_operations): Remove push/pop of
14633 STMT_VINFO_DEF_TYPE.
14634 (vect_schedule_slp_instance): Likewise.
14635 * tree-vect-stmts.c (ect_check_store_rhs): Pass in the
14636 stmt_info, use the vect_is_simple_use overload combining
14637 SLP and stmt_info analysis.
14638 (vect_is_simple_cond): Likewise.
14639 (vectorizable_store): Adjust.
14640 (vectorizable_condition): Likewise.
14641 (vect_is_simple_use): Fully handle invariant SLP nodes
14642 here. Amend stmt_info operand extraction with COND_EXPR
14644 * tree-vect-loop.c (vectorizable_reduction): Deal with
14645 COND_EXPR representation ugliness.
14647 2020-06-04 Hongtao Liu <hongtao.liu@inte.com>
14650 * config/i386/sse.md (*vcvtps2ph_store<merge_mask_name>):
14651 Refine from *vcvtps2ph_store<mask_name>.
14652 (vcvtps2ph256<mask_name>): Refine constraint from vm to v.
14653 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
14654 (*vcvtps2ph256<merge_mask_name>): New define_insn.
14655 (*avx512f_vcvtps2ph512<merge_mask_name>): Ditto.
14656 * config/i386/subst.md (merge_mask): New define_subst.
14657 (merge_mask_name): New define_subst_attr.
14658 (merge_mask_operand3): Ditto.
14660 2020-06-04 Hao Liu <hliu@os.amperecomputing.com>
14662 PR tree-optimization/89430
14663 * tree-ssa-phiopt.c
14664 (struct name_to_bb): Rename to ref_to_bb; add a new field exp;
14665 remove ssa_name_ver, store, offset fields.
14666 (struct ssa_names_hasher): Rename to refs_hasher; update functions.
14667 (class nontrapping_dom_walker): Rename m_seen_ssa_names to m_seen_refs.
14668 (nontrapping_dom_walker::add_or_mark_expr): Extend to support ARRAY_REFs
14669 and COMPONENT_REFs.
14671 2020-06-04 Andreas Schwab <schwab@suse.de>
14674 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Call assemble_external.
14676 2020-06-04 Hongtao.liu <hongtao.liu@intel.com>
14678 * config/i386/sse.md (pmov_dst_3_lower): New mode attribute.
14679 (trunc<mode><pmov_dst_3_lower>2): Refine from
14680 trunc<mode><pmov_dst_3>2.
14682 2020-06-03 Vitor Guidi <vitor.guidi@usp.br>
14684 * match.pd (tanh/sinh -> 1/cosh): New simplification.
14686 2020-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
14689 * config/rs6000/rs6000.c (is_stfs_insn): Rename to
14690 is_lfs_stfs_insn and make it recognize lfs as well.
14691 (prefixed_store_p): Use is_lfs_stfs_insn().
14692 (prefixed_load_p): Use is_lfs_stfs_insn() to recognize lfs.
14694 2020-06-03 Jan Hubicka <hubicka@ucw.cz>
14696 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
14698 (odr_enums): New static var.
14699 (struct odr_enum_val): New struct.
14700 (class odr_enum): New struct.
14701 (odr_enum_map): New hashtable.
14702 (odr_types_equivalent_p): Drop code testing TYPE_VALUES.
14703 (add_type_duplicate): Likewise.
14704 (free_odr_warning_data): Do not free TYPE_VALUES.
14705 (register_odr_enum): New function.
14706 (ipa_odr_summary_write): New function.
14707 (ipa_odr_read_section): New function.
14708 (ipa_odr_summary_read): New function.
14709 (class pass_ipa_odr): New pass.
14710 (make_pass_ipa_odr): New function.
14711 * ipa-utils.h (register_odr_enum): Declare.
14712 * lto-section-in.c: (lto_section_name): Add odr_types section.
14713 * lto-streamer.h (enum lto_section_type): Add odr_types section.
14714 * passes.def: Add odr_types pass.
14715 * lto-streamer-out.c (DFS::DFS_write_tree_body): Do not stream
14717 (hash_tree): Likewise.
14718 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
14720 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
14722 * timevar.def (TV_IPA_ODR): New timervar.
14723 * tree-pass.h (make_pass_ipa_odr): Declare.
14724 * tree.c (free_lang_data_in_type): Regiser ODR types.
14726 2020-06-03 Romain Naour <romain.naour@gmail.com>
14728 * Makefile.in (SELFTEST_DEPS): Move before including language makefile
14731 2020-06-03 Richard Biener <rguenther@suse.de>
14733 PR tree-optimization/95487
14734 * tree-vect-stmts.c (vectorizable_store): Use a truth type
14735 for the scatter mask.
14737 2020-06-03 Richard Biener <rguenther@suse.de>
14739 PR tree-optimization/95495
14740 * tree-vect-slp.c (vect_slp_analyze_node_operations): Use
14741 SLP_TREE_REPRESENTATIVE in the shift assertion.
14743 2020-06-03 Tom Tromey <tromey@adacore.com>
14745 * spellcheck.c (CASE_COST): New define.
14746 (BASE_COST): New define.
14747 (get_edit_distance): Recognize case changes.
14748 (get_edit_distance_cutoff): Update.
14749 (test_edit_distances): Update.
14750 (get_old_cutoff): Update.
14751 (test_find_closest_string): Add case sensitivity test.
14753 2020-06-03 Richard Biener <rguenther@suse.de>
14755 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Loop over
14756 the cost vector to unset the visited flag on stmts.
14758 2020-06-03 Tobias Burnus <tobias@codesourcery.com>
14760 * gimplify.c (omp_notice_variable): Use new hook.
14761 * langhooks-def.h (lhd_omp_predetermined_mapping): Declare.
14762 (LANG_HOOKS_OMP_PREDETERMINED_MAPPING): Define
14763 (LANG_HOOKS_DECLS): Add it.
14764 * langhooks.c (lhd_omp_predetermined_sharing): Remove bogus unused attr.
14765 (lhd_omp_predetermined_mapping): New.
14766 * langhooks.h (struct lang_hooks_for_decls): Add new hook.
14768 2020-06-03 Jan Hubicka <jh@suse.cz>
14770 * lto-streamer.h (LTO_tags): Reorder so frequent tags has small indexes;
14771 add LTO_first_tree_tag and LTO_first_gimple_tag.
14772 (lto_tag_is_tree_code_p): Update.
14773 (lto_tag_is_gimple_code_p): Update.
14774 (lto_gimple_code_to_tag): Update.
14775 (lto_tag_to_gimple_code): Update.
14776 (lto_tree_code_to_tag): Update.
14777 (lto_tag_to_tree_code): Update.
14779 2020-06-02 Felix Yang <felix.yang@huawei.com>
14782 * config/aarch64/aarch64.c (aarch64_short_vector_p):
14783 Leave later code to report an error if SVE is disabled.
14785 2020-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14787 * config/aarch64/aarch64-cores.def (zeus): Define.
14788 * config/aarch64/aarch64-tune.md: Regenerate.
14789 * doc/invoke.texi (AArch64 Options): Document zeus -mcpu option.
14791 2020-06-02 Aaron Sawdey <acsawdey@linux.ibm.com>
14794 * config/rs6000/rs6000.c (prefixed_store_p): Add special case
14796 (is_stfs_insn): New helper function.
14798 2020-06-02 Jan Hubicka <jh@suse.cz>
14800 * lto-streamer-in.c (stream_read_tree_ref): Simplify streaming of
14802 * lto-streamer-out.c (stream_write_tree_ref): Likewise.
14804 2020-06-02 Andrew Stubbs <ams@codesourcery.com>
14806 * config/gcn/gcn-hsa.h (CC1_SPEC): Delete.
14807 * config/gcn/gcn.opt (-mlocal-symbol-id): Delete.
14808 * config/gcn/mkoffload.c (main): Don't use -mlocal-symbol-id.
14810 2020-06-02 Eric Botcazou <ebotcazou@adacore.com>
14812 PR middle-end/95395
14813 * optabs.c (expand_unop): Fix bits/bytes confusion in latest change.
14814 * tree-pretty-print.c (dump_generic_node) <ARRAY_TYPE>: Print quals.
14816 2020-06-02 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
14818 * config/s390/s390.c (print_operand): Emit vector alignment
14821 2020-06-02 Martin Liska <mliska@suse.cz>
14823 * coverage.c (get_coverage_counts): Skip sanity check for TOP N counters
14824 as they have variable number of counters.
14825 * gcov-dump.c (main): Add new option -r.
14826 (print_usage): Likewise.
14827 (tag_counters): All new raw format.
14828 * gcov-io.h (struct gcov_kvp): New.
14829 (GCOV_TOPN_VALUES): Remove.
14830 (GCOV_TOPN_VALUES_COUNTERS): Likewise.
14831 (GCOV_TOPN_MEM_COUNTERS): New.
14832 (GCOV_TOPN_DISK_COUNTERS): Likewise.
14833 (GCOV_TOPN_MAXIMUM_TRACKED_VALUES): Likewise.
14834 * ipa-profile.c (ipa_profile_generate_summary): Use
14835 GCOV_TOPN_MAXIMUM_TRACKED_VALUES.
14836 (ipa_profile_write_edge_summary): Likewise.
14837 (ipa_profile_read_edge_summary): Likewise.
14838 (ipa_profile): Remove usage of GCOV_TOPN_VALUES.
14839 * profile.c (sort_hist_values): Sort variable number
14841 (compute_value_histograms): Special case for TOP N counters
14842 that have dynamic number of key-value pairs.
14843 * value-prof.c (dump_histogram_value): Dump variable number
14844 of key-value pairs.
14845 (stream_in_histogram_value): Stream in variable number
14846 of key-value pairs for TOP N counter.
14847 (get_nth_most_common_value): Deal with variable number
14848 of key-value pairs.
14849 (dump_ic_profile): Use GCOV_TOPN_MAXIMUM_TRACKED_VALUES
14850 for loop iteration.
14851 (gimple_find_values_to_profile): Set GCOV_TOPN_MEM_COUNTERS
14853 * doc/gcov-dump.texi: Document new -r option.
14855 2020-06-02 Iain Buclaw <ibuclaw@gdcproject.org>
14858 * config.gcc (arm-wrs-vxworks7*): Set default cpu to generic-armv7-a.
14860 2020-06-01 Jeff Law <law@torsion.usersys.redhat.com>
14862 * lower-subreg.c (resolve_simple_move): If simplify_gen_subreg_concatn
14863 returns (const_int 0) for the destination, then emit nothing.
14865 2020-06-01 Jan Hubicka <hubicka@ucw.cz>
14867 * lto-streamer.h (enum LTO_tags): Remove LTO_field_decl_ref,
14868 LTO_function_decl_ref, LTO_label_decl_ref, LTO_namespace_decl_ref,
14869 LTO_result_decl_ref, LTO_type_decl_ref, LTO_type_ref,
14870 LTO_const_decl_ref, LTO_imported_decl_ref,
14871 LTO_translation_unit_decl_ref, LTO_global_decl_ref and
14872 LTO_namelist_decl_ref; add LTO_global_stream_ref.
14873 * lto-streamer-in.c (lto_input_tree_ref): Simplify.
14874 (lto_input_scc): Update.
14875 (lto_input_tree_1): Update.
14876 * lto-streamer-out.c (lto_indexable_tree_ref): Simlify.
14877 * lto-streamer.c (lto_tag_name): Update.
14879 2020-06-01 Jan Hubicka <hubicka@ucw.cz>
14881 * ipa-reference.c (stream_out_bitmap): Use lto_output_var_decl_ref.
14882 (ipa_reference_read_optimization_summary): Use lto_intput_var_decl_ref.
14883 * lto-cgraph.c (lto_output_node): Likewise.
14884 (lto_output_varpool_node): Likewise.
14885 (output_offload_tables): Likewise.
14886 (input_node): Likewise.
14887 (input_varpool_node): Likewise.
14888 (input_offload_tables): Likewise.
14889 * lto-streamer-in.c (lto_input_tree_ref): Declare.
14890 (lto_input_var_decl_ref): Declare.
14891 (lto_input_fn_decl_ref): Declare.
14892 * lto-streamer-out.c (lto_indexable_tree_ref): Use only one decl stream.
14893 (lto_output_var_decl_index): Rename to ..
14894 (lto_output_var_decl_ref): ... this.
14895 (lto_output_fn_decl_index): Rename to ...
14896 (lto_output_fn_decl_ref): ... this.
14897 * lto-streamer.h (enum lto_decl_stream_e_t): Remove per-type streams.
14898 (DEFINE_DECL_STREAM_FUNCS): Remove.
14899 (lto_output_var_decl_index): Remove.
14900 (lto_output_fn_decl_index): Remove.
14901 (lto_output_var_decl_ref): Declare.
14902 (lto_output_fn_decl_ref): Declare.
14903 (lto_input_var_decl_ref): Declare.
14904 (lto_input_fn_decl_ref): Declare.
14906 2020-06-01 Feng Xue <fxue@os.amperecomputing.com>
14908 * cgraphclones.c (materialize_all_clones): Adjust replace map dump.
14909 * ipa-param-manipulation.c (ipa_dump_adjusted_parameters): Do not
14910 dump infomation if there is no adjusted parameter.
14911 * (ipa_param_adjustments::dump): Adjust prefix spaces for dump string.
14913 2020-06-01 Aldy Hernandez <aldyh@redhat.com>
14915 * Makefile.in (gimple-array-bounds.o): New.
14916 * tree-vrp.c: Move array bounds code...
14917 * gimple-array-bounds.cc: ...here...
14918 * gimple-array-bounds.h: ...and here.
14920 2020-06-01 Aldy Hernandez <aldyh@redhat.com>
14922 * Makefile.in (OBJS): Add value-range-equiv.o.
14923 * tree-vrp.c (*value_range_equiv*): Move to...
14924 * value-range-equiv.cc: ...here.
14925 * tree-vrp.h (class value_range_equiv): Move to...
14926 * value-range-equiv.h: ...here.
14927 * vr-values.h: Include value-range-equiv.h.
14929 2020-06-01 Feng Xue <fxue@os.amperecomputing.com>
14932 * ipa-cp.c (propagate_aggs_across_jump_function): Check aggregate
14933 lattice for simple pass-through by-ref argument.
14935 2020-05-31 Jeff Law <law@redhat.com>
14937 * lra.c (add_auto_inc_notes): Remove function.
14938 * reload1.c (add_auto_inc_notes): Similarly. Move into...
14939 * rtlanal.c (add_auto_inc_notes): New function.
14940 * rtl.h (add_auto_inc_notes): Add prototype.
14941 * recog.c (peep2_attempt): Scan and add REG_INC notes to new insns
14944 2020-05-31 Jan Hubicka <jh@suse.cz>
14946 * lto-section-out.c (lto_output_decl_index): Remove.
14947 (lto_output_field_decl_index): Move to lto-streamer-out.c
14948 (lto_output_fn_decl_index): Move to lto-streamer-out.c
14949 (lto_output_namespace_decl_index): Remove.
14950 (lto_output_var_decl_index): Remove.
14951 (lto_output_type_decl_index): Remove.
14952 (lto_output_type_ref_index): Remove.
14953 * lto-streamer-out.c (output_type_ref): Remove.
14954 (lto_get_index): New function.
14955 (lto_output_tree_ref): Remove.
14956 (lto_indexable_tree_ref): New function.
14957 (lto_output_var_decl_index): Move here from lto-section-out.c; simplify.
14958 (lto_output_fn_decl_index): Move here from lto-section-out.c; simplify.
14959 (stream_write_tree_ref): Update.
14960 (lto_output_tree): Update.
14961 * lto-streamer.h (lto_output_decl_index): Remove prototype.
14962 (lto_output_field_decl_index): Remove prototype.
14963 (lto_output_namespace_decl_index): Remove prototype.
14964 (lto_output_type_decl_index): Remove prototype.
14965 (lto_output_type_ref_index): Remove prototype.
14966 (lto_output_var_decl_index): Move.
14967 (lto_output_fn_decl_index): Move
14969 2020-05-31 Jakub Jelinek <jakub@redhat.com>
14971 PR middle-end/95052
14972 * expr.c (store_expr): For shortedned_string_cst, ensure temp has
14975 2020-05-31 Jeff Law <law@redhat.com>
14977 * config/h8300/jumpcall.md (brabs, brabc): Disable patterns.
14979 2020-05-31 Jim Wilson <jimw@sifive.com>
14981 * config/riscv/riscv.md (zero_extendsidi2_shifted): New.
14983 2020-05-30 Jonathan Yong <10walls@gmail.com>
14985 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Insert -lkernel32
14986 after -lmsvcrt. This is necessary as libmsvcrt.a is not a pure
14987 import library, but also contains some functions that invoke
14988 others in KERNEL32.DLL.
14990 2020-05-29 Segher Boessenkool <segher@kernel.crashing.org>
14992 * config/rs6000/altivec.md (altivec_vmrghw_direct): Prefer VSX form.
14993 (altivec_vmrglw_direct): Ditto.
14994 (altivec_vperm_<mode>_direct): Ditto.
14995 (altivec_vperm_v8hiv16qi): Ditto.
14996 (*altivec_vperm_<mode>_uns_internal): Ditto.
14997 (*altivec_vpermr_<mode>_internal): Ditto.
14998 (vperm_v8hiv4si): Ditto.
14999 (vperm_v16qiv8hi): Ditto.
15001 2020-05-29 Jan Hubicka <jh@suse.cz>
15003 * lto-streamer-in.c (streamer_read_chain): Move here from
15004 tree-streamer-in.c.
15005 (stream_read_tree_ref): New.
15006 (lto_input_tree_1): Simplify.
15007 * lto-streamer-out.c (stream_write_tree_ref): New.
15008 (lto_write_tree_1): Simplify.
15009 (lto_output_tree_1): Simplify.
15010 (DFS::DFS_write_tree): Simplify.
15011 (streamer_write_chain): Move here from tree-stremaer-out.c.
15012 * lto-streamer.h (lto_output_tree_ref): Update prototype.
15013 (stream_read_tree_ref): Declare
15014 (stream_write_tree_ref): Declare
15015 * tree-streamer-in.c (streamer_read_chain): Update to use
15016 stream_read_tree_ref.
15017 (lto_input_ts_common_tree_pointers): Likewise.
15018 (lto_input_ts_vector_tree_pointers): Likewise.
15019 (lto_input_ts_poly_tree_pointers): Likewise.
15020 (lto_input_ts_complex_tree_pointers): Likewise.
15021 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
15022 (lto_input_ts_decl_common_tree_pointers): Likewise.
15023 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
15024 (lto_input_ts_field_decl_tree_pointers): Likewise.
15025 (lto_input_ts_function_decl_tree_pointers): Likewise.
15026 (lto_input_ts_type_common_tree_pointers): Likewise.
15027 (lto_input_ts_type_non_common_tree_pointers): Likewise.
15028 (lto_input_ts_list_tree_pointers): Likewise.
15029 (lto_input_ts_vec_tree_pointers): Likewise.
15030 (lto_input_ts_exp_tree_pointers): Likewise.
15031 (lto_input_ts_block_tree_pointers): Likewise.
15032 (lto_input_ts_binfo_tree_pointers): Likewise.
15033 (lto_input_ts_constructor_tree_pointers): Likewise.
15034 (lto_input_ts_omp_clause_tree_pointers): Likewise.
15035 * tree-streamer-out.c (streamer_write_chain): Update to use
15036 stream_write_tree_ref.
15037 (write_ts_common_tree_pointers): Likewise.
15038 (write_ts_vector_tree_pointers): Likewise.
15039 (write_ts_poly_tree_pointers): Likewise.
15040 (write_ts_complex_tree_pointers): Likewise.
15041 (write_ts_decl_minimal_tree_pointers): Likewise.
15042 (write_ts_decl_common_tree_pointers): Likewise.
15043 (write_ts_decl_non_common_tree_pointers): Likewise.
15044 (write_ts_decl_with_vis_tree_pointers): Likewise.
15045 (write_ts_field_decl_tree_pointers): Likewise.
15046 (write_ts_function_decl_tree_pointers): Likewise.
15047 (write_ts_type_common_tree_pointers): Likewise.
15048 (write_ts_type_non_common_tree_pointers): Likewise.
15049 (write_ts_list_tree_pointers): Likewise.
15050 (write_ts_vec_tree_pointers): Likewise.
15051 (write_ts_exp_tree_pointers): Likewise.
15052 (write_ts_block_tree_pointers): Likewise.
15053 (write_ts_binfo_tree_pointers): Likewise.
15054 (write_ts_constructor_tree_pointers): Likewise.
15055 (write_ts_omp_clause_tree_pointers): Likewise.
15056 (streamer_write_tree_body): Likewise.
15057 (streamer_write_integer_cst): Likewise.
15058 * tree-streamer.h (streamer_read_chain):Declare.
15059 (streamer_write_chain):Declare.
15060 (streamer_write_tree_body): Update prototype.
15061 (streamer_write_integer_cst): Update prototype.
15063 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
15066 * configure: Regenerated.
15068 2020-05-29 Andrew Stubbs <ams@codesourcery.com>
15070 * config/gcn/gcn-valu.md (add<mode>3_vcc_zext_dup): Add early clobber.
15071 (add<mode>3_vcc_zext_dup_exec): Likewise.
15072 (add<mode>3_vcc_zext_dup2): Likewise.
15073 (add<mode>3_vcc_zext_dup2_exec): Likewise.
15075 2020-05-29 Richard Biener <rguenther@suse.de>
15077 PR tree-optimization/95272
15078 * tree-vectorizer.h (_slp_tree::representative): Add.
15079 (SLP_TREE_REPRESENTATIVE): Likewise.
15080 * tree-vect-loop.c (vectorizable_reduction): Adjust SLP
15082 (vectorizable_live_operation): Use the representative to
15083 attach the reduction info to.
15084 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
15085 SLP_TREE_REPRESENTATIVE.
15086 (vect_create_new_slp_node): Likewise.
15087 (slp_copy_subtree): Copy it.
15088 (vect_slp_rearrange_stmts): Re-arrange even COND_EXPR stmts.
15089 (vect_slp_analyze_node_operations_1): Pass the representative
15090 to vect_analyze_stmt.
15091 (vect_schedule_slp_instance): Pass the representative to
15092 vect_transform_stmt.
15094 2020-05-29 Richard Biener <rguenther@suse.de>
15096 PR tree-optimization/95356
15097 * tree-vect-stmts.c (vectorizable_shift): Do in-place SLP
15098 node hacking during analysis.
15100 2020-05-29 Jan Hubicka <hubicka@ucw.cz>
15103 * lto-streamer-out.c (lto_output_tree): Disable redundant streaming.
15105 2020-05-29 Richard Biener <rguenther@suse.de>
15107 PR tree-optimization/95403
15108 * tree-vect-stmts.c (vect_init_vector_1): Guard against NULL
15111 2020-05-29 Jakub Jelinek <jakub@redhat.com>
15113 PR middle-end/95315
15114 * omp-general.c (omp_resolve_declare_variant): Fix up addition of
15115 declare variant cgraph node removal callback.
15117 2020-05-29 Jakub Jelinek <jakub@redhat.com>
15119 PR middle-end/95052
15120 * expr.c (store_expr): If expr_size is constant and significantly
15121 larger than TREE_STRING_LENGTH, set temp to just the
15122 TREE_STRING_LENGTH portion of the STRING_CST.
15124 2020-05-29 Richard Biener <rguenther@suse.de>
15126 PR tree-optimization/95393
15127 * tree-ssa-phiopt.c (minmax_replacement): Use gimple_build
15128 to build the min/max expression so we simplify cases like
15129 MAX(0, s) immediately.
15131 2020-05-29 Joe Ramsay <joe.ramsay@arm.com>
15133 * config/aarch64/aarch64-sve.md (<LOGICAL:optab><mode>3): Add support
15134 for unpacked EOR, ORR, AND.
15136 2020-05-28 Nicolas Bértolo <nicolasbertolo@gmail.com>
15138 * Makefile.in: don't look for libiberty in the "pic" subdirectory
15139 when building for Mingw. Add dependency on xgcc with the proper
15142 2020-05-28 Jeff Law <law@redhat.com>
15144 * config/h8300/logical.md (bclrhi_msx): Remove pattern.
15146 2020-05-28 Jeff Law <law@redhat.com>
15148 * config/h8300/logical.md (HImode H8/SX bit-and splitter): Don't
15149 make a nonzero adjustment to the memory offset.
15150 (b<ior,xor>hi_msx): Turn into a splitter.
15152 2020-05-28 Eric Botcazou <ebotcazou@adacore.com>
15154 * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
15155 Fix off-by-one error.
15157 2020-05-28 Richard Sandiford <richard.sandiford@arm.com>
15159 * config/aarch64/aarch64.h (aarch64_frame): Add a comment above
15160 wb_candidate1 and wb_candidate2.
15161 * config/aarch64/aarch64.c (aarch64_layout_frame): Invalidate
15162 wb_candidate1 and wb_candidate2 if we decided not to use them.
15164 2020-05-28 Richard Sandiford <richard.sandiford@arm.com>
15167 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Assert that
15168 we have at least some CFI operations when using a frame pointer.
15169 Only redefine the CFA if we have CFI operations.
15171 2020-05-28 Richard Biener <rguenther@suse.de>
15173 * tree-vect-slp.c (vect_prologue_cost_for_slp): Remove
15174 case for !SLP_TREE_VECTYPE.
15175 (vect_slp_analyze_node_operations): Adjust.
15177 2020-05-28 Richard Biener <rguenther@suse.de>
15179 * tree-vectorizer.h (_slp_tree::vec_defs): Add.
15180 (SLP_TREE_VEC_DEFS): Likewise.
15181 * tree-vect-slp.c (_slp_tree::_slp_tree): Adjust.
15182 (_slp_tree::~_slp_tree): Likewise.
15183 (vect_mask_constant_operand_p): Remove unused function.
15184 (vect_get_constant_vectors): Rename to...
15185 (vect_create_constant_vectors): ... this. Take the
15186 invariant node as argument and code generate it. Remove
15187 dead code, remove temporary asserts. Pass a NULL stmt_info
15188 to vect_init_vector.
15189 (vect_get_slp_defs): Simplify.
15190 (vect_schedule_slp_instance): Code-generate externals and
15191 invariants using vect_create_constant_vectors.
15193 2020-05-28 Richard Biener <rguenther@suse.de>
15195 * tree-vect-stmts.c (vect_finish_stmt_generation_1):
15196 Conditionalize stmt_info use, assert the new stmt cannot throw
15197 when not specified.
15198 (vect_finish_stmt_generation): Adjust assert.
15200 2020-05-28 Richard Biener <rguenther@suse.de>
15202 PR tree-optimization/95273
15203 PR tree-optimization/95356
15204 * tree-vect-stmts.c (vectorizable_shift): Adjust when and to
15205 what we set the vector type of the shift operand SLP node
15208 2020-05-28 Andrea Corallo <andrea.corallo@arm.com>
15210 * config/arm/arm.c (mve_vector_mem_operand): Fix unwanted
15213 2020-05-28 Martin Liska <mliska@suse.cz>
15216 * doc/invoke.texi: Add missing params, remove max-once-peeled-insns and
15217 rename ipcp-unit-growth to ipa-cp-unit-growth.
15219 2020-05-28 Hongtao Liu <hongtao.liu@intel.com>
15221 * config/i386/sse.md (*avx512vl_<code>v2div2qi2_store_1): Rename
15222 from *avx512vl_<code>v2div2qi_store and refine memory size of
15224 (*avx512vl_<code>v2div2qi2_mask_store_1): Ditto.
15225 (*avx512vl_<code><mode>v4qi2_store_1): Ditto.
15226 (*avx512vl_<code><mode>v4qi2_mask_store_1): Ditto.
15227 (*avx512vl_<code><mode>v8qi2_store_1): Ditto.
15228 (*avx512vl_<code><mode>v8qi2_mask_store_1): Ditto.
15229 (*avx512vl_<code><mode>v4hi2_store_1): Ditto.
15230 (*avx512vl_<code><mode>v4hi2_mask_store_1): Ditto.
15231 (*avx512vl_<code>v2div2hi2_store_1): Ditto.
15232 (*avx512vl_<code>v2div2hi2_mask_store_1): Ditto.
15233 (*avx512vl_<code>v2div2si2_store_1): Ditto.
15234 (*avx512vl_<code>v2div2si2_mask_store_1): Ditto.
15235 (*avx512f_<code>v8div16qi2_store_1): Ditto.
15236 (*avx512f_<code>v8div16qi2_mask_store_1): Ditto.
15237 (*avx512vl_<code>v2div2qi2_store_2): New define_insn_and_split.
15238 (*avx512vl_<code>v2div2qi2_mask_store_2): Ditto.
15239 (*avx512vl_<code><mode>v4qi2_store_2): Ditto.
15240 (*avx512vl_<code><mode>v4qi2_mask_store_2): Ditto.
15241 (*avx512vl_<code><mode>v8qi2_store_2): Ditto.
15242 (*avx512vl_<code><mode>v8qi2_mask_store_2): Ditto.
15243 (*avx512vl_<code><mode>v4hi2_store_2): Ditto.
15244 (*avx512vl_<code><mode>v4hi2_mask_store_2): Ditto.
15245 (*avx512vl_<code>v2div2hi2_store_2): Ditto.
15246 (*avx512vl_<code>v2div2hi2_mask_store_2): Ditto.
15247 (*avx512vl_<code>v2div2si2_store_2): Ditto.
15248 (*avx512vl_<code>v2div2si2_mask_store_2): Ditto.
15249 (*avx512f_<code>v8div16qi2_store_2): Ditto.
15250 (*avx512f_<code>v8div16qi2_mask_store_2): Ditto.
15251 * config/i386/i386-builtin-types.def: Adjust builtin type.
15252 * config/i386/i386-expand.c: Ditto.
15253 * config/i386/i386-builtin.def: Adjust builtin.
15254 * config/i386/avx512fintrin.h: Ditto.
15255 * config/i386/avx512vlbwintrin.h: Ditto.
15256 * config/i386/avx512vlintrin.h: Ditto.
15258 2020-05-28 Dong JianQiang <dongjianqiang2@huawei.com>
15260 PR gcov-profile/95332
15261 * gcov-io.c (gcov_var::endian): Move field.
15262 (from_file): Add IN_GCOV_TOOL check.
15263 * gcov-io.h (gcov_magic): Ditto.
15265 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
15267 * config/xtensa/xtensa.c (xtensa_delegitimize_address): New
15269 (TARGET_DELEGITIMIZE_ADDRESS): New macro.
15271 2020-05-27 Eric Botcazou <ebotcazou@adacore.com>
15273 * builtin-types.def (BT_UINT128): New primitive type.
15274 (BT_FN_UINT128_UINT128): New function type.
15275 * builtins.def (BUILT_IN_BSWAP128): New GCC builtin.
15276 * doc/extend.texi (__builtin_bswap128): Document it.
15277 * builtins.c (expand_builtin): Deal with BUILT_IN_BSWAP128.
15278 (is_inexpensive_builtin): Likewise.
15279 * fold-const-call.c (fold_const_call_ss): Likewise.
15280 * fold-const.c (tree_call_nonnegative_warnv_p): Likewise.
15281 * tree-ssa-ccp.c (evaluate_stmt): Likewise.
15282 * tree-vect-stmts.c (vect_get_data_ptr_increment): Likewise.
15283 (vectorizable_call): Likewise.
15284 * optabs.c (expand_unop): Always use the double word path for it.
15285 * tree-core.h (enum tree_index): Add TI_UINT128_TYPE.
15286 * tree.h (uint128_type_node): New global type.
15287 * tree.c (build_common_tree_nodes): Build it if TImode is supported.
15289 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
15291 * config/i386/mmx.md (*mmx_haddv2sf3): Remove SSE alternatives.
15292 (mmx_hsubv2sf3): Ditto.
15293 (mmx_haddsubv2sf3): New expander.
15294 (*mmx_haddsubv2sf3): Rename from mmx_addsubv2sf3. Correct
15295 RTL template to model horizontal subtraction and addition.
15296 * config/i386/i386-builtin.def (IX86_BUILTIN_PFPNACC):
15299 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
15302 * config/i386/sse.md
15303 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>):
15304 Remove %q operand modifier from insn template.
15305 (avx512f_<code>v8hiv8di2<mask_name>): Ditto.
15307 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
15309 * config/i386/mmx.md (mmx_pswapdsf2): Add SSE alternatives.
15310 Enable insn pattern for TARGET_MMX_WITH_SSE.
15311 (*mmx_movshdup): New insn pattern.
15312 (*mmx_movsldup): Ditto.
15313 (*mmx_movss): Ditto.
15314 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
15316 (expand_vec_perm_movs): Handle E_V2SFmode.
15317 (expand_vec_perm_even_odd): Ditto.
15318 (expand_vec_perm_broadcast_1): Assert that E_V2SFmode
15319 is already handled by standard shuffle patterns.
15321 2020-05-27 Richard Biener <rguenther@suse.de>
15323 PR tree-optimization/95295
15324 * tree-ssa-loop-im.c (sm_seq_valid_bb): Fix sinking after
15325 merging stores from paths.
15327 2020-05-27 Richard Biener <rguenther@suse.de>
15329 PR tree-optimization/95356
15330 * tree-vect-stmts.c (vectorizable_shift): Adjust vector
15331 type for the shift operand.
15333 2020-05-27 Richard Biener <rguenther@suse.de>
15335 PR tree-optimization/95335
15336 * tree-vect-slp.c (vect_slp_analyze_node_operations): Reset
15337 lvisited for nodes made external.
15339 2020-05-27 Richard Biener <rguenther@suse.de>
15341 * dump-context.h (debug_dump_context): New class.
15342 (dump_context): Make it friend.
15343 * dumpfile.c (debug_dump_context::debug_dump_context):
15345 (debug_dump_context::~debug_dump_context): Likewise.
15346 * tree-vect-slp.c: Include dump-context.h.
15347 (vect_print_slp_tree): Dump a single SLP node.
15348 (debug): New overload for slp_tree.
15349 (vect_print_slp_graph): Rename from vect_print_slp_tree and
15351 (vect_analyze_slp_instance): Adjust.
15353 2020-05-27 Jakub Jelinek <jakub@redhat.com>
15355 PR middle-end/95315
15356 * omp-general.c (omp_declare_variant_remove_hook): New function.
15357 (omp_resolve_declare_variant): Always return base if it is already
15358 declare_variant_alt magic decl itself. Register
15359 omp_declare_variant_remove_hook as cgraph node removal hook.
15361 2020-05-27 Jeff Law <law@redhat.com>
15363 * config/h8300/testcompare.md (tst_extzv_1_n): Do not accept constants
15364 for the primary input operand.
15365 (tstsi_variable_bit_qi): Similarly.
15367 2020-05-26 Uroš Bizjak <ubizjak@gmail.com>
15369 * config/i386/mmx.md (mmx_pswapdv2si2): Add SSE2 alternative.
15371 2020-05-26 Tobias Burnus <tobias@codesourcery.com>
15374 * ipa-utils.h (odr_type_p): Also permit calls with
15375 only flag_generate_offload set.
15377 2020-05-26 Alexandre Oliva <oliva@adacore.com>
15379 * gcc.c (validate_switches): Add braced parameter. Adjust all
15380 callers. Expected and skip trailing brace only if braced.
15381 Return after handling one atom otherwise.
15382 (DUMPS_OPTIONS): New.
15383 (cpp_debug_options): Define in terms of it.
15385 2020-05-26 Richard Biener <rguenther@suse.de>
15387 PR tree-optimization/95327
15388 * tree-vect-stmts.c (vectorizable_shift): Compute op1_vectype
15389 when we are not using a scalar shift.
15391 2020-05-26 Uroš Bizjak <ubizjak@gmail.com>
15393 * config/i386/mmx.md (*mmx_pshufd_1): New insn pattern.
15394 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
15395 Handle E_V2SImode and E_V4HImode.
15396 (expand_vec_perm_even_odd_1): Handle E_V4HImode.
15397 Assert that E_V2SImode is already handled.
15398 (expand_vec_perm_broadcast_1): Assert that E_V2SImode
15399 is already handled by standard shuffle patterns.
15401 2020-05-26 Jan Hubicka <jh@suse.cz>
15403 * tree.c (free_lang_data_in_type): Simpify types of TYPE_VALUES in
15406 2020-05-26 Jakub Jelinek <jakub@redhat.com>
15409 * gimplify.c (find_combined_omp_for): Move to omp-general.c.
15410 * omp-general.h (find_combined_omp_for): Declare.
15411 * omp-general.c: Include tree-iterator.h.
15412 (find_combined_omp_for): New function, moved from gimplify.c.
15414 2020-05-26 Alexandre Oliva <oliva@adacore.com>
15416 * common.opt (aux_base_name): Define.
15417 (dumpbase, dumpdir): Mark as Driver options.
15418 (-dumpbase, -dumpdir): Likewise.
15419 (dumpbase-ext, -dumpbase-ext): New.
15420 (auxbase, auxbase-strip): Drop.
15421 * doc/invoke.texi (-dumpbase, -dumpbase-ext, -dumpdir):
15423 (-o): Introduce the notion of primary output, mention it
15424 influences auxiliary and dump output names as well, add
15426 (-save-temps): Adjust, move examples into -dump*.
15427 (-save-temps=cwd, -save-temps=obj): Likewise.
15428 (-fdump-final-insns): Adjust.
15429 * dwarf2out.c (gen_producer_string): Drop auxbase and
15430 auxbase_strip; add dumpbase_ext.
15431 * gcc.c (enum save_temps): Add SAVE_TEMPS_DUMP.
15432 (save_temps_prefix, save_temps_length): Drop.
15433 (save_temps_overrides_dumpdir): New.
15434 (dumpdir, dumpbase, dumpbase_ext): New.
15435 (dumpdir_length, dumpdir_trailing_dash_added): New.
15436 (outbase, outbase_length): New.
15437 (The Specs Language): Introduce %". Adjust %b and %B.
15438 (ASM_FINAL_SPEC): Use %b.dwo for an aux output name always.
15439 Precede object file with %w when it's the primary output.
15440 (cpp_debug_options): Do not pass on incoming -dumpdir,
15441 -dumpbase and -dumpbase-ext options; recompute them with
15443 (cc1_options): Drop auxbase with and without compare-debug;
15444 use cpp_debug_options instead of dumpbase. Mark asm output
15445 with %w when it's the primary output.
15446 (static_spec_functions): Drop %:compare-debug-auxbase-opt and
15447 %:replace-exception. Add %:dumps.
15448 (driver_handle_option): Implement -save-temps=*/-dumpdir
15449 mutual overriding logic. Save dumpdir, dumpbase and
15450 dumpbase-ext options. Do not save output_file in
15452 (adds_single_suffix_p): New.
15453 (single_input_file_index): New.
15454 (process_command): Combine output dir, output base name, and
15455 dumpbase into dumpdir and outbase.
15456 (set_collect_gcc_options): Pass a possibly-adjusted -dumpdir.
15457 (do_spec_1): Optionally dumpdir instead of save_temps_prefix,
15458 and outbase instead of input_basename in %b, %B and in
15459 -save-temps aux files. Handle empty argument %".
15460 (driver::maybe_run_linker): Adjust dumpdir and auxbase.
15461 (compare_debug_dump_opt_spec_function): Adjust gkd dump file
15462 naming. Spec-quote the computed -fdump-final-insns file name.
15463 (debug_auxbase_opt): Drop.
15464 (compare_debug_self_opt_spec_function): Drop auxbase-strip
15466 (compare_debug_auxbase_opt_spec_function): Drop.
15467 (not_actual_file_p): New.
15468 (replace_extension_spec_func): Drop.
15469 (dumps_spec_func): New.
15470 (convert_white_space): Split-out parts into...
15471 (quote_string, whitespace_to_convert_p): ... these. New.
15472 (quote_spec_char_p, quote_spec, quote_spec_arg): New.
15473 (driver::finalize): Release and reset new variables; drop
15475 * lto-wrapper.c (HAVE_TARGET_EXECUTABLE_SUFFIX): Define if...
15476 (TARGET_EXECUTABLE_SUFFIX): ... is defined; define this to the
15477 empty string otherwise.
15478 (DUMPBASE_SUFFIX): Drop leading period.
15479 (debug_objcopy): Use concat.
15480 (run_gcc): Recognize -save-temps=* as -save-temps too. Obey
15481 -dumpdir. Pass on empty dumpdir and dumpbase with a directory
15482 component. Simplify temp file names.
15483 * opts.c (finish_options): Drop aux base name handling.
15484 (common_handle_option): Drop auxbase-strip handling.
15485 * toplev.c (print_switch_values): Drop auxbase, add
15487 (process_options): Derive aux_base_name from dump_base_name
15489 (lang_dependent_init): Compute dump_base_ext along with
15490 dump_base_name. Disable stack usage and callgraph-info during
15491 lto generation and compare-debug recompilation.
15493 2020-05-26 Hongtao Liu <hongtao.liu@intel.com>
15494 Uroš Bizjak <ubizjak@gmail.com>
15498 * config/i386/sse.md (<floatunssuffix>v2div2sf2): New expander.
15499 (fix<fixunssuffix>_truncv2sfv2di2): Ditto.
15500 (avx512dq_float<floatunssuffix>v2div2sf2): Renaming from
15501 float<floatunssuffix>v2div2sf2.
15502 (avx512dq_fix<fixunssuffix>_truncv2sfv2di2<mask_name>):
15503 Renaming from fix<fixunssuffix>_truncv2sfv2di2<mask_name>.
15504 (vec_pack<floatprefix>_float_<mode>): Adjust icode name.
15505 (vec_unpack_<fixprefix>fix_trunc_lo_<mode>): Ditto.
15506 (vec_unpack_<fixprefix>fix_trunc_hi_<mode>): Ditto.
15507 * config/i386/i386-builtin.def: Ditto.
15508 * emit-rtl.c (validate_subreg): Allow use of *paradoxical* vector
15509 subregs when both omode and imode are vector mode and
15510 have the same inner mode.
15512 2020-05-25 Eric Botcazou <ebotcazou@adacore.com>
15514 * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
15515 Only turn MEM_REFs into bit-field stores for small bit-field regions.
15516 (imm_store_chain_info::output_merged_store): Be prepared for sources
15517 with non-integral type in the bit-field insertion case.
15518 (pass_store_merging::process_store): Use MAX_BITSIZE_MODE_ANY_INT as
15519 the largest size for the bit-field case.
15521 2020-05-25 Uroš Bizjak <ubizjak@gmail.com>
15523 * config/i386/mmx.md (*vec_dupv2sf): Redefine as define_insn.
15524 (mmx_pshufw_1): Change Yv constraint to xYw. Correct type attribute.
15525 (*vec_dupv4hi): Redefine as define_insn.
15526 Remove alternative with general register input.
15527 (*vec_dupv2si): Ditto.
15529 2020-05-25 Richard Biener <rguenther@suse.de>
15531 PR tree-optimization/95309
15532 * tree-vect-slp.c (vect_get_constant_vectors): Move number
15533 of vector computation ...
15534 (vect_slp_analyze_node_operations): ... to analysis phase.
15536 2020-05-25 Jan Hubicka <hubicka@ucw.cz>
15538 * lto-streamer-out.c (lto_output_tree): Add streamer_debugging check.
15539 * lto-streamer.h (streamer_debugging): New constant
15540 * tree-streamer-in.c (streamer_read_tree_bitfields): Add
15541 streamer_debugging check.
15542 (streamer_get_pickled_tree): Likewise.
15543 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
15545 2020-05-25 Richard Biener <rguenther@suse.de>
15547 PR tree-optimization/95308
15548 * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize
15549 test for TARGET_MEM_REFs.
15551 2020-05-25 Richard Biener <rguenther@suse.de>
15553 PR tree-optimization/95295
15554 * tree-ssa-loop-im.c (sm_seq_valid_bb): Compare remat stores
15555 RHSes and drop to full sm_other if they are not equal.
15557 2020-05-25 Richard Biener <rguenther@suse.de>
15559 PR tree-optimization/95271
15560 * tree-vect-stmts.c (vectorizable_bswap): Update invariant SLP
15561 children vector type.
15562 (vectorizable_call): Pass down slp ops.
15564 2020-05-25 Richard Biener <rguenther@suse.de>
15566 PR tree-optimization/95297
15567 * tree-vect-stmts.c (vectorizable_shift): For scalar_shift_arg
15568 skip updating operand 1 vector type.
15570 2020-05-25 Richard Biener <rguenther@suse.de>
15572 PR tree-optimization/95284
15573 * tree-ssa-sink.c (sink_common_stores_to_bb): Amend previous
15576 2020-05-25 Hongtao Liu <hongtao.liu@intel.com>
15579 * config/i386/sse.md (sf2dfmode_lower): New mode attribute.
15580 (trunc<mode><sf2dfmode_lower>2) New expander.
15581 (extend<sf2dfmode_lower><mode>2): Ditto.
15583 2020-05-23 Iain Sandoe <iain@sandoe.co.uk>
15585 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make
15586 ubsan_{data,type},ASAN symbols linker-visible.
15588 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
15590 * lto-streamer-out.c (DFS::DFS): Silence warning.
15592 2020-05-22 Uroš Bizjak <ubizjak@gmail.com>
15595 * config/i386/i386.md (<rounding_insn><mode>2): Do not try to
15596 expand non-sse4 ROUND_ROUNDEVEN rounding via SSE support routines.
15598 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
15600 * lto-streamer-out.c (lto_output_tree): Do not stream final ref if
15603 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
15605 * lto-section-out.c (lto_output_decl_index): Adjust dump indentation.
15606 * lto-streamer-out.c (create_output_block): Fix whitespace
15607 (lto_write_tree_1): Add (debug) dump.
15608 (DFS::DFS): Add dump.
15609 (DFS::DFS_write_tree_body): Do not dump here.
15610 (lto_output_tree): Improve dumping; do not stream ref when not needed.
15611 (produce_asm_for_decls): Fix whitespace.
15612 * tree-streamer-out.c (streamer_write_tree_header): Add dump.
15613 * tree-streamer-out.c (streamer_write_integer_cst): Add debug dump.
15615 2020-05-22 Hongtao.liu <hongtao.liu@intel.com>
15618 * config/i386/sse.md (trunc<pmov_src_lower><mode>2): New expander
15619 (truncv32hiv32qi2): Ditto.
15620 (trunc<ssedoublemodelower><mode>2): Ditto.
15621 (trunc<mode><pmov_dst_3>2): Ditto.
15622 (trunc<mode><pmov_dst_mode_4>2): Ditto.
15623 (truncv2div2si2): Ditto.
15624 (truncv8div8qi2): Ditto.
15625 (avx512f_<code>v8div16qi2): Renaming from *avx512f_<code>v8div16qi2.
15626 (avx512vl_<code>v2div2si): Renaming from *avx512vl_<code>v2div2si2.
15627 (avx512vl_<code><mode>v2<ssecakarnum>qi2): Renaming from
15628 *avx512vl_<code><mode>v<ssescalarnum>qi2.
15630 2020-05-22 H.J. Lu <hongjiu.lu@intel.com>
15633 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15636 2020-05-22 Richard Biener <rguenther@suse.de>
15638 PR tree-optimization/95268
15639 * tree-ssa-sink.c (sink_common_stores_to_bb): Handle clobbers
15642 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
15644 * tree-streamer.c (record_common_node): Fix hash value of pre-streamed
15647 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
15649 * lto-streamer-in.c (lto_read_tree): Do not stream end markers.
15650 (lto_input_scc): Optimize streaming of entry lengths.
15651 * lto-streamer-out.c (lto_write_tree): Do not stream end markers
15652 (DFS::DFS): Optimize stremaing of entry lengths
15654 2020-05-22 Richard Biener <rguenther@suse.de>
15657 * doc/invoke.texi (flto): Document behavior of diagnostic
15660 2020-05-22 Richard Biener <rguenther@suse.de>
15662 * tree-vectorizer.h (vect_is_simple_use): New overload.
15663 (vect_maybe_update_slp_op_vectype): New.
15664 * tree-vect-stmts.c (vect_is_simple_use): New overload
15665 accessing operands of SLP vs. non-SLP operation transparently.
15666 (vect_maybe_update_slp_op_vectype): New function updating
15667 the possibly shared SLP operands vector type.
15668 (vectorizable_operation): Be a bit more SLP vs non-SLP agnostic
15669 using the new vect_is_simple_use overload; update SLP invariant
15670 operand nodes vector type.
15671 (vectorizable_comparison): Likewise.
15672 (vectorizable_call): Likewise.
15673 (vectorizable_conversion): Likewise.
15674 (vectorizable_shift): Likewise.
15675 (vectorizable_store): Likewise.
15676 (vectorizable_condition): Likewise.
15677 (vectorizable_assignment): Likewise.
15678 * tree-vect-loop.c (vectorizable_reduction): Likewise.
15679 * tree-vect-slp.c (vect_get_constant_vectors): Enforce
15680 present SLP_TREE_VECTYPE and check it matches previous
15683 2020-05-22 Richard Biener <rguenther@suse.de>
15685 PR tree-optimization/95248
15686 * tree-ssa-loop-im.c (sm_seq_valid_bb): Remove bogus early out.
15688 2020-05-22 Richard Biener <rguenther@suse.de>
15690 * tree-vectorizer.h (_slp_tree::_slp_tree): New.
15691 (_slp_tree::~_slp_tree): Likewise.
15692 * tree-vect-slp.c (_slp_tree::_slp_tree): Factor out code
15694 (_slp_tree::~_slp_tree): Implement.
15695 (vect_free_slp_tree): Simplify.
15696 (vect_create_new_slp_node): Likewise. Add nops parameter.
15697 (vect_build_slp_tree_2): Adjust.
15698 (vect_analyze_slp_instance): Likewise.
15700 2020-05-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15702 * adjust-alignment.c: Include memmodel.h.
15704 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
15707 * config/i386/cpuid.h: Use hexadecimal in comments.
15709 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
15712 * config/i386/i386-builtins.c (processor_features): Move
15713 F_AVX512VP2INTERSECT after F_AVX512BF16.
15714 (isa_names_table): Likewise.
15716 2020-05-21 Martin Liska <mliska@suse.cz>
15718 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
15719 Handle OPT_moutline_atomics.
15720 * config/aarch64/aarch64.c: Add outline-atomics to
15721 aarch64_attributes.
15722 * doc/extend.texi: Document the newly added target attribute.
15724 2020-05-21 Uroš Bizjak <ubizjak@gmail.com>
15728 * config/i386/mmx.md (*mmx_<code>v2sf): Do not mark
15729 operands 1 and 2 commutative. Manually swap operands.
15730 (*mmx_nabsv2sf2): Ditto.
15733 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
15735 * config/i386/i386.md (*<code>tf2_1):
15736 Mark operands 1 and 2 commutative.
15737 (*nabstf2_1): Ditto.
15738 * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
15739 commutative. Do not swap operands.
15740 (*nabs<mode>2): Ditto.
15742 2020-05-20 Uroš Bizjak <ubizjak@gmail.com>
15745 * config/i386/sse.md (<code>v8qiv8hi2): Use
15746 simplify_gen_subreg instead of simplify_subreg.
15747 (<code>v8qiv8si2): Ditto.
15748 (<code>v4qiv4si2): Ditto.
15749 (<code>v4hiv4si2): Ditto.
15750 (<code>v8qiv8di2): Ditto.
15751 (<code>v4qiv4di2): Ditto.
15752 (<code>v2qiv2di2): Ditto.
15753 (<code>v4hiv4di2): Ditto.
15754 (<code>v2hiv2di2): Ditto.
15755 (<code>v2siv2di2): Ditto.
15757 2020-05-20 Uroš Bizjak <ubizjak@gmail.com>
15760 * config/i386/i386.md (*pushsi2_rex64):
15761 Use "e" constraint instead of "i".
15763 2020-05-20 Jan Hubicka <hubicka@ucw.cz>
15765 * lto-streamer-in.c (lto_input_scc): Add SHARED_SCC parameter.
15766 (lto_input_tree_1): Strenghten sanity check.
15767 (lto_input_tree): Update call of lto_input_scc.
15768 * lto-streamer-out.c: Include ipa-utils.h
15769 (create_output_block): Initialize local_trees if merigng is going
15771 (destroy_output_block): Destroy local_trees.
15772 (DFS): Add max_local_entry.
15773 (local_tree_p): New function.
15774 (DFS::DFS): Initialize and maintain it.
15775 (DFS::DFS_write_tree): Decide on streaming format.
15776 (lto_output_tree): Stream inline singleton SCCs
15777 * lto-streamer.h (enum LTO_tags): Add LTO_trees.
15778 (struct output_block): Add local_trees.
15779 (lto_input_scc): Update prototype.
15781 2020-05-20 Patrick Palka <ppalka@redhat.com>
15784 * hash-table.h (hash_table::find_with_hash): Move up the call to
15785 hash_table::verify.
15787 2020-05-20 Martin Liska <mliska@suse.cz>
15789 * lto-compress.c (lto_compression_zstd): Fill up
15790 num_compressed_il_bytes.
15791 (lto_uncompression_zstd): Likewise for num_uncompressed_il_bytes here.
15793 2020-05-20 Richard Biener <rguenther@suse.de>
15795 PR tree-optimization/95219
15796 * tree-vect-loop.c (vectorizable_induction): Reduce
15797 group_size before computing the number of required IVs.
15799 2020-05-20 Richard Biener <rguenther@suse.de>
15801 PR middle-end/95231
15802 * tree-inline.c (remap_gimple_stmt): Revert adjusting
15803 COND_EXPR and VEC_COND_EXPR for a -fnon-call-exception boundary.
15805 2020-05-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15806 Andre Vieira <andre.simoesdiasvieira@arm.com>
15809 * config/arm/arm-protos.h (arm_mode_base_reg_class): Function
15811 (mve_vector_mem_operand): Likewise.
15812 * config/arm/arm.c (thumb2_legitimate_address_p): For MVE target check
15813 the load from memory to a core register is legitimate for give mode.
15814 (mve_vector_mem_operand): Define function.
15815 (arm_print_operand): Modify comment.
15816 (arm_mode_base_reg_class): Define.
15817 * config/arm/arm.h (MODE_BASE_REG_CLASS): Modify to add check for
15818 TARGET_HAVE_MVE and expand to arm_mode_base_reg_class on TRUE.
15819 * config/arm/constraints.md (Ux): Likewise.
15821 * config/arm/mve.md (mve_mov): Replace constraint Us with Ux and also
15822 add support for missing Vector Store Register and Vector Load Register.
15823 Add a new alternative to support load from memory to PC (or label) in
15825 (mve_vstrbq_<supf><mode>): Modify constraint Us to Ux.
15826 (mve_vldrbq_<supf><mode>): Modify constriant Us to Ux, predicate to
15827 mve_memory_operand and also modify the MVE instructions to emit.
15828 (mve_vldrbq_z_<supf><mode>): Modify constraint Us to Ux.
15829 (mve_vldrhq_fv8hf): Modify constriant Us to Ux, predicate to
15830 mve_memory_operand and also modify the MVE instructions to emit.
15831 (mve_vldrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
15832 mve_memory_operand and also modify the MVE instructions to emit.
15833 (mve_vldrhq_z_fv8hf): Likewise.
15834 (mve_vldrhq_z_<supf><mode>): Likewise.
15835 (mve_vldrwq_fv4sf): Likewise.
15836 (mve_vldrwq_<supf>v4si): Likewise.
15837 (mve_vldrwq_z_fv4sf): Likewise.
15838 (mve_vldrwq_z_<supf>v4si): Likewise.
15839 (mve_vld1q_f<mode>): Modify constriant Us to Ux.
15840 (mve_vld1q_<supf><mode>): Likewise.
15841 (mve_vstrhq_fv8hf): Modify constriant Us to Ux, predicate to
15842 mve_memory_operand.
15843 (mve_vstrhq_p_fv8hf): Modify constriant Us to Ux, predicate to
15844 mve_memory_operand and also modify the MVE instructions to emit.
15845 (mve_vstrhq_p_<supf><mode>): Likewise.
15846 (mve_vstrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
15847 mve_memory_operand.
15848 (mve_vstrwq_fv4sf): Modify constriant Us to Ux.
15849 (mve_vstrwq_p_fv4sf): Modify constriant Us to Ux and also modify the MVE
15850 instructions to emit.
15851 (mve_vstrwq_p_<supf>v4si): Likewise.
15852 (mve_vstrwq_<supf>v4si): Likewise.Modify constriant Us to Ux.
15853 * config/arm/predicates.md (mve_memory_operand): Define.
15855 2020-05-30 Richard Biener <rguenther@suse.de>
15858 * c-fold.c (c_fully_fold_internal): Enhance guard on
15861 2020-05-20 Kito Cheng <kito.cheng@sifive.com>
15864 * Makefile.in (OBJS): Add adjust-alignment.o.
15865 * adjust-alignment.c (pass_data_adjust_alignment): New.
15866 (pass_adjust_alignment): New.
15867 (pass_adjust_alignment::execute): New.
15868 (make_pass_adjust_alignment): New.
15869 * tree-pass.h (make_pass_adjust_alignment): New.
15870 * passes.def: Add pass_adjust_alignment.
15872 2020-05-19 Alex Coplan <alex.coplan@arm.com>
15875 * config/aarch64/aarch64.c (aarch64_evpc_rev_local): Don't match
15876 identity permutation.
15878 2020-05-19 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15880 * doc/sourcebuild.texi: Document new short_eq_int, ptr_eq_short,
15881 msp430_small, msp430_large and size24plus DejaGNU effective
15883 Improve grammar in descriptions for size20plus and size32plus effective
15886 2020-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
15888 * config/bpf/bpf.c (bpf_compute_frame_layout): Include space for
15889 callee saved registers only in xBPF.
15890 (bpf_expand_prologue): Save callee saved registers only in xBPF.
15891 (bpf_expand_epilogue): Likewise for restoring.
15892 * doc/invoke.texi (eBPF Options): Document this is activated by
15895 2020-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
15897 * config/bpf/bpf.opt (mxbpf): New option.
15898 * doc/invoke.texi (Option Summary): Add -mxbpf.
15899 (eBPF Options): Document -mxbbpf.
15901 2020-05-19 Uroš Bizjak <ubizjak@gmail.com>
15904 * config/i386/sse.md (<code>v16qiv16hi2): New expander.
15905 (<code>v32qiv32hi2): Ditto.
15906 (<code>v8qiv8hi2): Ditto.
15907 (<code>v16qiv16si2): Ditto.
15908 (<code>v8qiv8si2): Ditto.
15909 (<code>v4qiv4si2): Ditto.
15910 (<code>v16hiv16si2): Ditto.
15911 (<code>v8hiv8si2): Ditto.
15912 (<code>v4hiv4si2): Ditto.
15913 (<code>v8qiv8di2): Ditto.
15914 (<code>v4qiv4di2): Ditto.
15915 (<code>v2qiv2di2): Ditto.
15916 (<code>v8hiv8di2): Ditto.
15917 (<code>v4hiv4di2): Ditto.
15918 (<code>v2hiv2di2): Ditto.
15919 (<code>v8siv8di2): Ditto.
15920 (<code>v4siv4di2): Ditto.
15921 (<code>v2siv2di2): Ditto.
15923 2020-05-19 Kito Cheng <kito.cheng@sifive.com>
15925 * common/config/riscv/riscv-common.c (riscv_implied_info_t): New.
15926 (riscv_implied_info): New.
15927 (riscv_subset_list): Add handle_implied_ext.
15928 (riscv_subset_list::to_string): New parameter version_p to
15929 control output format.
15930 (riscv_subset_list::handle_implied_ext): New.
15931 (riscv_subset_list::parse_std_ext): Call handle_implied_ext.
15932 (riscv_arch_str): New parameter version_p to control output format.
15933 (riscv_expand_arch): New.
15934 * config/riscv/riscv-protos.h (riscv_arch_str): New parameter,
15936 * config/riscv/riscv.h (riscv_expand_arch): New,
15937 (EXTRA_SPEC_FUNCTIONS): Define.
15938 (ASM_SPEC): Transform -march= via riscv_expand_arch.
15940 2020-05-19 Kito Cheng <kito.cheng@sifive.com>
15942 * riscv-common.c (parse_sv_or_non_std_ext): Rename to
15943 parse_multiletter_ext.
15944 (parse_multiletter_ext): Add parsing `h` and `z`, drop `sx`,
15945 adjust parsing order for 's' and 'x'.
15947 2020-05-19 Richard Biener <rguenther@suse.de>
15949 * tree-vectorizer.h (_slp_tree::vectype): Add field.
15950 (SLP_TREE_VECTYPE): New.
15951 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
15953 (vect_create_new_slp_node): Likewise.
15954 (vect_prologue_cost_for_slp): Move here from tree-vect-stmts.c
15956 (vect_slp_analyze_node_operations): Walk nodes children for
15958 (vect_get_constant_vectors): Use local scope op variable.
15959 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Remove here.
15960 (vect_model_simple_cost): Adjust.
15961 (vect_model_store_cost): Likewise.
15962 (vectorizable_store): Likewise.
15964 2020-05-18 Martin Sebor <msebor@redhat.com>
15966 PR middle-end/92815
15967 * tree-object-size.c (decl_init_size): New function.
15968 (addr_object_size): Call it.
15969 * tree.h (last_field): Declare.
15970 (first_field): Add attribute nonnull.
15972 2020-05-18 Martin Sebor <msebor@redhat.com>
15974 PR middle-end/94940
15975 * tree-vrp.c (vrp_prop::check_mem_ref): Remove unreachable code.
15976 * tree.c (component_ref_size): Correct the handling or array members
15978 Drop a pointless test.
15979 Rename a local variable.
15981 2020-05-18 Jason Merrill <jason@redhat.com>
15983 * aclocal.m4: Add ax_cxx_compile_stdcxx.m4.
15984 * configure.ac: Use AX_CXX_COMPILE_STDCXX(11).
15986 2020-05-14 Jason Merrill <jason@redhat.com>
15988 * doc/install.texi (Prerequisites): Update boostrap compiler
15989 requirement to C++11/GCC 4.8.
15991 2020-05-18 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
15993 PR tree-optimization/94952
15994 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
15995 Initialize variables bitpos, bitregion_start, and bitregion_end in
15996 order to silence warnings about use of uninitialized variables.
15998 2020-05-18 Carl Love <cel@us.ibm.com>
16001 * config/rs6000/vsx.md (define_expand): Fix instruction generation for
16002 first_match_index_<mode>.
16003 * testsuite/gcc.target/powerpc/builtins-8-p9-runnable.c (main): Add
16004 additional test cases with zero vector elements.
16006 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
16009 * config/i386/i386-expand.c (ix86_expand_int_movcc):
16010 Avoid reversing a non-trapping comparison to a trapping one.
16012 2020-05-18 Alex Coplan <alex.coplan@arm.com>
16014 * config/arm/arm.c (output_move_double): Fix codegen when loading into
16015 a register pair with an odd base register.
16017 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
16019 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16020 Do not emit FLAGS_REG clobber for TFmode.
16021 * config/i386/i386.md (*<code>tf2_1): Rewrite as
16022 define_insn_and_split. Mark operands 1 and 2 commutative.
16023 (*nabstf2_1): Ditto.
16024 (absneg SSE splitter): Use MODEF mode iterator instead of SSEMODEF.
16025 Do not swap memory operands. Simplify RTX generation.
16026 (neg abs SSE splitter): Ditto.
16027 * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
16028 commutative. Do not swap operands. Simplify RTX generation.
16029 (*nabs<mode>2): Ditto.
16031 2020-05-18 Richard Biener <rguenther@suse.de>
16033 * tree-vect-slp.c (vect_slp_bb): Start after labels.
16034 (vect_get_constant_vectors): Really place init stmt after scalar defs.
16035 * tree-vect-stmts.c (vect_init_vector_1): Insert before
16038 2020-05-18 H.J. Lu <hongjiu.lu@intel.com>
16040 * config/i386/driver-i386.c (host_detect_local_cpu): Support
16041 Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
16042 processor families.
16044 2020-05-18 Richard Biener <rguenther@suse.de>
16046 PR middle-end/95171
16047 * tree-inline.c (remap_gimple_stmt): Split out trapping compares
16048 when inlining into a non-call EH function.
16050 2020-05-18 Richard Biener <rguenther@suse.de>
16052 PR tree-optimization/95172
16053 * tree-ssa-loop-im.c (execute_sm): Get flag whether we
16054 eventually need the conditional processing.
16055 (execute_sm_exit): When processing an orderd sequence
16056 avoid doing any conditional processing.
16057 (hoist_memory_references): Pass down whether all edges
16058 have ordered processing for a ref to execute_sm.
16060 2020-05-17 Jeff Law <law@redhat.com>
16062 * config/h8300/predicates.md (pc_or_label_operand): New predicate.
16063 * config/h8300/jumpcall.md (branch_true, branch_false): Consolidate
16064 into a single pattern using pc_or_label_operand.
16065 * config/h8300/combiner.md (bit branch patterns): Likewise.
16066 * config/h8300/peepholes.md (HImode and SImode branches): Likewise.
16068 2020-05-17 H.J. Lu <hongjiu.lu@intel.com>
16071 * config/i386/i386-features.c (has_non_address_hard_reg):
16073 (pseudo_reg_set): This. Return the SET expression. Ignore
16074 pseudo register push.
16075 (general_scalar_to_vector_candidate_p): Combine single_set and
16076 has_non_address_hard_reg calls to pseudo_reg_set.
16077 (timode_scalar_to_vector_candidate_p): Likewise.
16078 * config/i386/i386.md (*pushv1ti2): New pattern.
16080 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16083 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16085 * tree-vrp.c (operand_less_p): Move to...
16086 * vr-values.c (operand_less_p): ...here.
16087 * tree-vrp.h (operand_less_p): Remove.
16089 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16091 * tree-vrp.c (operand_less_p): Move to...
16092 * vr-values.c (operand_less_p): ...here.
16093 * tree-vrp.h (operand_less_p): Remove.
16095 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16097 * tree-vrp.c (class vrp_insert): Remove prototype for
16100 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16102 * tree-vrp.c (class live_names): New.
16103 (live_on_edge): Move into live_names.
16104 (build_assert_expr_for): Move into vrp_insert.
16105 (find_assert_locations_in_bb): Rename from
16106 find_assert_locations_1.
16107 (process_assert_insertions_for): Move into vrp_insert.
16108 (compare_assert_loc): Same.
16109 (remove_range_assertions): Same.
16110 (dump_asserts_for): Rename to vrp_insert::dump.
16111 (debug_asserts_for): Rename to vrp_insert::debug.
16112 (dump_all_asserts): Rename to vrp_insert::dump.
16113 (debug_all_asserts): Rename to vrp_insert::debug.
16115 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16117 * tree-vrp.c (class vrp_prop): Move check_all_array_refs,
16118 check_array_ref, check_mem_ref, and search_for_addr_array
16120 (class array_bounds_checker): ...here.
16121 (class check_array_bounds_dom_walker): Adjust to use
16122 array_bounds_checker.
16123 (check_all_array_refs): Move into array_bounds_checker and rename
16125 (class vrp_folder): Make fold_predicate_in private.
16127 2020-05-15 Jeff Law <law@redhat.com>
16129 * config/h8300/h8300.md (SFI iterator): New iterator for
16131 * config/h8300/peepholes.md (memory comparison): Use mode
16132 iterator to consolidate 3 patterns into one.
16133 (stack allocation and stack store): Handle SFmode. Handle
16134 8 byte allocations.
16136 2020-05-15 Segher Boessenkool <segher@kernel.crashing.org>
16138 * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_2): Also require
16139 RS6000_BTM_POWERPC64.
16141 2020-05-15 Uroš Bizjak <ubizjak@gmail.com>
16143 * config/i386/i386.md (SWI48DWI): New mode iterator.
16144 (*push<mode>2): Allow XMM registers.
16145 (*pushdi2_rex64): Ditto.
16146 (*pushsi2_rex64): Ditto.
16148 (push XMM reg splitter): New splitter
16150 (*pushdf) Change "x" operand constraint to "v".
16151 (*pushsf_rex64): Ditto.
16154 2020-05-15 Richard Biener <rguenther@suse.de>
16156 PR tree-optimization/92260
16157 * tree-vect-slp.c (vect_get_constant_vectors): Compute
16158 the number of vector stmts in a canonical way.
16160 2020-05-15 Martin Liska <mliska@suse.cz>
16162 * hsa-gen.c (get_symbol_for_decl): Fix misleading indentation
16165 2020-05-15 Andrew Stubbs <ams@codesourcery.com>
16167 * config/gcn/gcn-valu.md (v<expander><mode>3): Fix unsignedp.
16169 2020-05-15 Richard Biener <rguenther@suse.de>
16171 PR tree-optimization/95133
16172 * gimple-ssa-split-paths.c
16173 (find_block_to_duplicate_for_splitting_paths): Check for
16176 2020-05-15 Christophe Lyon <christophe.lyon@linaro.org>
16178 * config/arm/arm.c (reg_needs_saving_p): Add support for interrupt
16180 (arm_compute_save_reg0_reg12_mask): Use reg_needs_saving_p.
16182 2020-05-15 Tobias Burnus <tobias@codesourcery.com>
16184 PR middle-end/94635
16185 * gimplify.c (gimplify_scan_omp_clauses): For MAP_TO_PSET with
16186 OMP_TARGET_EXIT_DATA, use 'release:' unless the associated
16189 2020-05-15 Uroš Bizjak <ubizjak@gmail.com>
16192 * config/i386/i386.md (isa): Add sse3_noavx.
16193 (enabled): Handle sse3_noavx.
16195 * config/i386/mmx.md (mmx_haddv2sf3): New expander.
16196 (*mmx_haddv2sf3): Rename from mmx_haddv2sf3. Add SSE/AVX
16197 alternatives. Match commutative vec_select selector operands.
16198 (*mmx_haddv2sf3_low): New insn pattern.
16200 (*mmx_hsubv2sf3): Add SSE/AVX alternatives.
16201 (*mmx_hsubv2sf3_low): New insn pattern.
16203 2020-05-15 Richard Biener <rguenther@suse.de>
16205 PR tree-optimization/33315
16206 * tree-ssa-sink.c: Include tree-eh.h.
16207 (sink_stats): Add commoned member.
16208 (sink_common_stores_to_bb): New function implementing store
16209 commoning by sinking to the successor.
16210 (sink_code_in_bb): Call it, pass down TODO_cleanup_cfg returned.
16211 (pass_sink_code::execute): Likewise. Record commoned stores
16214 2020-05-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16216 PR rtl-optimization/37451, part of PR target/61837
16217 * loop-doloop.c (doloop_simplify_count): New function. Simplify
16218 (add -1; zero_ext; add +1) to zero_ext when not wrapping.
16219 (doloop_modify): Call doloop_simplify_count.
16221 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
16224 * doc/sourcebuild.texi: Document effective target lgccjit.
16226 2020-05-14 Andrew Stubbs <ams@codesourcery.com>
16228 * config/gcn/gcn-valu.md (add<mode>3_zext_dup): Change to a
16229 define_expand, and rename the original to ...
16230 (add<mode>3_vcc_zext_dup): ... this, and add a custom VCC operand.
16231 (add<mode>3_zext_dup_exec): Likewise, with ...
16232 (add<mode>3_vcc_zext_dup_exec): ... this.
16233 (add<mode>3_zext_dup2): Likewise, with ...
16234 (add<mode>3_zext_dup_exec): ... this.
16235 (add<mode>3_zext_dup2_exec): Likewise, with ...
16236 (add<mode>3_zext_dup2): ... this.
16237 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address): Switch
16238 addv64di3_zext* calls to use addv64di3_vcc_zext*.
16240 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
16243 * config/i386/sse.md (truncv2dfv2df2): New insn pattern.
16244 (extendv2sfv2df2): Ditto.
16246 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
16248 * configure: Regenerated.
16250 2020-05-14 Christophe Lyon <christophe.lyon@linaro.org>
16252 * config/arm/arm.c (reg_needs_saving_p): New function.
16253 (use_return_insn): Use reg_needs_saving_p.
16254 (arm_get_vfp_saved_size): Likewise.
16255 (arm_compute_frame_layout): Likewise.
16256 (arm_save_coproc_regs): Likewise.
16257 (thumb1_expand_epilogue): Likewise.
16258 (arm_expand_epilogue_apcs_frame): Likewise.
16259 (arm_expand_epilogue): Likewise.
16261 2020-05-14 Christophe Lyon <christophe.lyon@linaro.org>
16263 * config/arm/arm.c (thumb1_expand_prologue): Update error message.
16265 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
16268 * config/i386/sse.md (sse2_cvtpi2pd): Add memory to alternative 1.
16270 (floatv2siv2df2): New expander.
16271 (floatunsv2siv2df2): New insn pattern.
16273 (fix_truncv2dfv2si2): New expander.
16274 (fixuns_truncv2dfv2si2): New insn pattern.
16276 2020-05-14 Richard Sandiford <richard.sandiford@arm.com>
16279 * config/aarch64/aarch64-sve-builtins.cc
16280 (handle_arm_sve_vector_bits_attribute): Create a copy of the
16281 original type's TYPE_MAIN_VARIANT, then reapply all the differences
16282 between the original type and its main variant.
16284 2020-05-14 Richard Biener <rguenther@suse.de>
16286 PR middle-end/95118
16287 * real.c (real_to_decimal_for_mode): Make sure we handle
16288 a zero with nonzero exponent.
16290 2020-05-14 Jakub Jelinek <jakub@redhat.com>
16292 * Makefile.in (GTFILES): Add omp-general.c.
16293 * cgraph.h (struct cgraph_node): Add declare_variant_alt and
16294 calls_declare_variant_alt members and initialize them in the
16296 * ipa.c (symbol_table::remove_unreachable_nodes): Handle direct
16297 calls to declare_variant_alt nodes.
16298 * lto-cgraph.c (lto_output_node): Write declare_variant_alt
16299 and calls_declare_variant_alt.
16300 (input_overwrite_node): Read them back.
16301 * omp-simd-clone.c (simd_clone_create): Copy calls_declare_variant_alt
16303 * tree-inline.c (expand_call_inline): Or in calls_declare_variant_alt
16305 (tree_function_versioning): Copy calls_declare_variant_alt bit.
16306 * omp-offload.c (execute_omp_device_lower): Call
16307 omp_resolve_declare_variant on direct function calls.
16308 (pass_omp_device_lower::gate): Also enable for
16309 calls_declare_variant_alt functions.
16310 * omp-general.c (omp_maybe_offloaded): Return false after inlining.
16311 (omp_context_selector_matches): Handle the case when
16312 cfun->curr_properties has PROP_gimple_any bit set.
16313 (struct omp_declare_variant_entry): New type.
16314 (struct omp_declare_variant_base_entry): New type.
16315 (struct omp_declare_variant_hasher): New type.
16316 (omp_declare_variant_hasher::hash, omp_declare_variant_hasher::equal):
16318 (omp_declare_variants): New variable.
16319 (struct omp_declare_variant_alt_hasher): New type.
16320 (omp_declare_variant_alt_hasher::hash,
16321 omp_declare_variant_alt_hasher::equal): New methods.
16322 (omp_declare_variant_alt): New variables.
16323 (omp_resolve_late_declare_variant): New function.
16324 (omp_resolve_declare_variant): Call omp_resolve_late_declare_variant
16325 when called late. Create a magic declare_variant_alt fndecl and
16326 cgraph node and return that if decision needs to be deferred until
16327 after gimplification.
16328 * cgraph.c (symbol_table::create_edge): Or in calls_declare_variant_alt
16331 PR middle-end/95108
16332 * omp-simd-clone.c (struct modify_stmt_info): Add after_stmt member.
16333 (ipa_simd_modify_stmt_ops): For PHIs, only add before first stmt in
16334 entry block if info->after_stmt is NULL, otherwise add after that stmt
16335 and update it after adding each stmt.
16336 (ipa_simd_modify_function_body): Initialize info.after_stmt.
16338 * function.h (struct function): Add has_omp_target bit.
16339 * omp-offload.c (omp_discover_declare_target_fn_r): New function,
16341 (omp_discover_declare_target_tgt_fn_r): ... this.
16342 (omp_discover_declare_target_var_r): Call
16343 omp_discover_declare_target_tgt_fn_r instead of
16344 omp_discover_declare_target_fn_r.
16345 (omp_discover_implicit_declare_target): Also queue functions with
16346 has_omp_target bit set, for those walk with
16347 omp_discover_declare_target_fn_r, for declare target to functions
16348 walk with omp_discover_declare_target_tgt_fn_r.
16350 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
16353 * config/i386/mmx.md (mmx_fix_truncv2sfv2si2): Rename from mmx_pf2id.
16354 Add SSE/AVX alternative. Change operand predicates from
16355 nonimmediate_operand to register_mmxmem_operand.
16356 Enable instruction pattern for TARGET_MMX_WITH_SSE.
16357 (fix_truncv2sfv2si2): New expander.
16358 (fixuns_truncv2sfv2si2): New insn pattern.
16360 (mmx_floatv2siv2sf2): rename from mmx_floatv2si2.
16361 Add SSE/AVX alternative. Change operand predicates from
16362 nonimmediate_operand to register_mmxmem_operand.
16363 Enable instruction pattern for TARGET_MMX_WITH_SSE.
16364 (floatv2siv2sf2): New expander.
16365 (floatunsv2siv2sf2): New insn pattern.
16367 * config/i386/i386-builtin.def (IX86_BUILTIN_PF2ID):
16369 (IX86_BUILTIN_PI2FD): Ditto.
16371 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
16373 * config/s390/s390.c (s390_emit_stack_probe): Call the probe_stack
16375 * config/s390/s390.md ("@probe_stack2<mode>", "probe_stack"): New
16378 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
16380 * config/s390/s390.c (allocate_stack_space): Add missing updates
16381 of last_probe_offset.
16383 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
16385 * config/s390/s390.md ("allocate_stack"): Call
16386 anti_adjust_stack_and_probe_stack_clash when stack clash
16387 protection is enabled.
16388 * explow.c (anti_adjust_stack_and_probe_stack_clash): Remove
16389 prototype. Remove static.
16390 * explow.h (anti_adjust_stack_and_probe_stack_clash): Add
16393 2020-05-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
16395 * config/rs6000/altivec.h (vec_extractl): New #define.
16396 (vec_extracth): Likewise.
16397 * config/rs6000/altivec.md (UNSPEC_EXTRACTL): New constant.
16398 (UNSPEC_EXTRACTR): Likewise.
16399 (vextractl<mode>): New expansion.
16400 (vextractl<mode>_internal): New insn.
16401 (vextractr<mode>): New expansion.
16402 (vextractr<mode>_internal): New insn.
16403 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vextdubvlx):
16404 New built-in function.
16405 (__builtin_altivec_vextduhvlx): Likewise.
16406 (__builtin_altivec_vextduwvlx): Likewise.
16407 (__builtin_altivec_vextddvlx): Likewise.
16408 (__builtin_altivec_vextdubvhx): Likewise.
16409 (__builtin_altivec_vextduhvhx): Likewise.
16410 (__builtin_altivec_vextduwvhx): Likewise.
16411 (__builtin_altivec_vextddvhx): Likewise.
16412 (__builtin_vec_extractl): New overloaded built-in function.
16413 (__builtin_vec_extracth): Likewise.
16414 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
16415 Define overloaded forms of __builtin_vec_extractl and
16416 __builtin_vec_extracth.
16417 (builtin_function_type): Add cases to mark arguments of new
16418 built-in functions as unsigned.
16419 (rs6000_common_init_builtins): Add
16420 opaque_ftype_opaque_opaque_opaque_opaque.
16421 * config/rs6000/rs6000.md (du_or_d): New mode attribute.
16422 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
16423 for a Future Architecture): Add description of vec_extractl and
16424 vec_extractr built-in functions.
16426 2020-05-13 Richard Biener <rguenther@suse.de>
16428 * target.def (add_stmt_cost): Add new vectype parameter.
16429 * targhooks.c (default_add_stmt_cost): Adjust.
16430 * targhooks.h (default_add_stmt_cost): Likewise.
16431 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Take new
16433 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
16434 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
16435 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
16437 * tree-vectorizer.h (stmt_info_for_cost::vectype): Add.
16438 (dump_stmt_cost): Add new vectype parameter.
16439 (add_stmt_cost): Likewise.
16440 (record_stmt_cost): Likewise.
16441 (record_stmt_cost): Add overload with old signature.
16442 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
16444 (vect_get_known_peeling_cost): Likewise.
16445 (vect_estimate_min_profitable_iters): Likewise.
16446 * tree-vectorizer.c (dump_stmt_cost): Add new vectype parameter.
16447 * tree-vect-stmts.c (record_stmt_cost): Likewise.
16448 (vect_prologue_cost_for_slp_op): Remove stmt_vec_info parameter
16449 and pass down correct vectype and NULL stmt_info.
16450 (vect_model_simple_cost): Adjust.
16451 (vect_model_store_cost): Likewise.
16453 2020-05-13 Richard Biener <rguenther@suse.de>
16455 * tree-vectorizer.h (SLP_INSTANCE_GROUP_SIZE): Remove.
16456 (_slp_instance::group_size): Likewise.
16457 * tree-vect-loop.c (vectorizable_reduction): The group size
16458 is the number of lanes in the node.
16459 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16460 (vect_analyze_slp_instance): Do not set SLP_INSTANCE_GROUP_SIZE,
16461 verify it matches the instance trees number of lanes.
16462 (vect_slp_analyze_node_operations_1): Use the numer of lanes
16463 in the node as group size.
16464 (vect_bb_vectorization_profitable_p): Use the instance root
16465 number of lanes for the size of life.
16466 (vect_schedule_slp_instance): Use the number of lanes as
16468 * tree-vect-stmts.c (vectorizable_load): Remove SLP instance
16469 parameter. Use the number of lanes of the load for the group
16470 size in the gap adjustment code.
16471 (vect_analyze_stmt): Adjust.
16472 (vect_transform_stmt): Likewise.
16474 2020-05-13 Jakub Jelinek <jakub@redhat.com>
16477 * cfgrtl.c (purge_dead_edges): Skip over debug and note insns even
16478 if the last insn is a note.
16480 PR tree-optimization/95060
16481 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Fold a NEGATE_EXPR
16482 if it is the single use of the FMA internal builtin.
16484 2020-05-13 Bin Cheng <bin.cheng@linux.alibaba.com>
16486 PR tree-optimization/94969
16487 * tree-data-dependence.c (constant_access_functions): Rename to...
16488 (invariant_access_functions): ...this. Add parameter. Check for
16489 invariant access function, rather than constant.
16490 (build_classic_dist_vector): Call above function.
16491 * tree-loop-distribution.c (pg_add_dependence_edges): Add comment.
16493 2020-05-13 Hongtao Liu <hongtao.liu@intel.com>
16496 * doc/extend.texi (x86Operandmodifiers): Document more x86
16498 * gcc/config/i386/i386.c: Add comment for operand modifier N and I.
16500 2020-05-12 Giuliano Belinassi <giuliano.belinassi@usp.br>
16502 * tree-vrp.c (class vrp_insert): New.
16503 (insert_range_assertions): Move to class vrp_insert.
16504 (dump_all_asserts): Same as above.
16505 (dump_asserts_for): Same as above.
16506 (live): Same as above.
16507 (need_assert_for): Same as above.
16508 (live_on_edge): Same as above.
16509 (finish_register_edge_assert_for): Same as above.
16510 (find_switch_asserts): Same as above.
16511 (find_assert_locations): Same as above.
16512 (find_assert_locations_1): Same as above.
16513 (find_conditional_asserts): Same as above.
16514 (process_assert_insertions): Same as above.
16515 (register_new_assert_for): Same as above.
16516 (vrp_prop): New variable fun.
16517 (vrp_initialize): New parameter.
16518 (identify_jump_threads): Same as above.
16519 (execute_vrp): Same as above.
16522 2020-05-12 Keith Packard <keith.packard@sifive.com>
16524 * config/riscv/riscv.c (riscv_unique_section): New.
16525 (TARGET_ASM_UNIQUE_SECTION): New.
16527 2020-05-12 Craig Blackmore <craig.blackmore@embecosm.com>
16529 * config.gcc: Add riscv-shorten-memrefs.o to extra_objs for riscv.
16530 * config/riscv/riscv-passes.def: New file.
16531 * config/riscv/riscv-protos.h (make_pass_shorten_memrefs): Declare.
16532 * config/riscv/riscv-shorten-memrefs.c: New file.
16533 * config/riscv/riscv.c (tree-pass.h): New include.
16534 (riscv_compressed_reg_p): New Function
16535 (riscv_compressed_lw_offset_p): Likewise.
16536 (riscv_compressed_lw_address_p): Likewise.
16537 (riscv_shorten_lw_offset): Likewise.
16538 (riscv_legitimize_address): Attempt to convert base + large_offset
16539 to compressible new_base + small_offset.
16540 (riscv_address_cost): Make anticipated compressed load/stores
16541 cheaper for code size than uncompressed load/stores.
16542 (riscv_register_priority): Move compressed register check to
16543 riscv_compressed_reg_p.
16544 * config/riscv/riscv.h (C_S_BITS): Define.
16545 (CSW_MAX_OFFSET): Define.
16546 * config/riscv/riscv.opt (mshorten-memefs): New option.
16547 * config/riscv/t-riscv (riscv-shorten-memrefs.o): New rule.
16548 (PASSES_EXTRA): Add riscv-passes.def.
16549 * doc/invoke.texi: Document -mshorten-memrefs.
16551 * config/riscv/riscv.c (riscv_new_address_profitable_p): New function.
16552 (TARGET_NEW_ADDRESS_PROFITABLE_P): Define.
16553 * doc/tm.texi: Regenerate.
16554 * doc/tm.texi.in (TARGET_NEW_ADDRESS_PROFITABLE_P): New hook.
16555 * sched-deps.c (attempt_change): Use old address if it is cheaper than
16557 * target.def (new_address_profitable_p): New hook.
16558 * targhooks.c (default_new_address_profitable_p): New function.
16559 * targhooks.h (default_new_address_profitable_p): Declare.
16561 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
16564 * config/i386/mmx.md (copysignv2sf3): New expander.
16565 (xorsignv2sf3): Ditto.
16566 (signbitv2sf3): Ditto.
16568 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
16571 * config/i386/mmx.md (fmav2sf4): New insn pattern.
16573 (fnmav2sf4): Ditto.
16574 (fnmsv2sf4): Ditto.
16576 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
16578 * Makefile.in (CET_HOST_FLAGS): New.
16579 (COMPILER): Add $(CET_HOST_FLAGS).
16580 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
16581 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
16583 * aclocal.m4: Regenerated.
16584 * configure: Likewise.
16586 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
16589 * config/i386/mmx.md (<code>v2sf2): New insn pattern.
16590 (*mmx_<code>v2sf2): New insn_and_split pattern.
16591 (*mmx_nabsv2sf2): Ditto.
16592 (*mmx_andnotv2sf3): New insn pattern.
16593 (*mmx_<code>v2sf3): Ditto.
16594 * config/i386/i386.md (absneg_op): New code attribute.
16595 * config/i386/i386.c (ix86_build_const_vector): Handle V2SFmode.
16596 (ix86_build_signbit_mask): Ditto.
16598 2020-05-12 Richard Biener <rguenther@suse.de>
16600 * tree-ssa-live.c (remove_unused_locals): Remove dead debug
16603 2020-05-12 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16605 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16606 Update prototype to include "local" argument.
16607 * config/msp430/msp430.c (msp430_output_aligned_decl_common): Add
16608 "local" argument. Handle local common decls.
16609 * config/msp430/msp430.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Adjust
16610 msp430_output_aligned_decl_common call with 0 for "local" argument.
16611 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
16613 2020-05-12 Richard Biener <rguenther@suse.de>
16615 * cfghooks.c (split_edge): Preserve EDGE_DFS_BACK if set.
16617 2020-05-12 Martin Liska <mliska@suse.cz>
16621 * sanopt.c (sanitize_rewrite_addressable_params):
16622 Clear DECL_NOT_GIMPLE_REG_P for argument.
16624 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
16626 PR tree-optimization/94980
16627 * tree-vect-generic.c (expand_vector_comparison): Use
16628 vector_element_bits_tree to get the element size in bits,
16629 rather than using TYPE_SIZE.
16630 (expand_vector_condition, vector_element): Likewise.
16632 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
16634 PR tree-optimization/94980
16635 * tree-vect-generic.c (build_replicated_const): Take the number
16636 of bits as a parameter, instead of the type of the elements.
16637 (do_plus_minus): Update accordingly, using vector_element_bits
16638 to calculate the correct number of bits.
16639 (do_negate): Likewise.
16641 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
16643 PR tree-optimization/94980
16644 * tree.h (vector_element_bits, vector_element_bits_tree): Declare.
16645 * tree.c (vector_element_bits, vector_element_bits_tree): New.
16646 * match.pd: Use the new functions instead of determining the
16647 vector element size directly from TYPE_SIZE(_UNIT).
16648 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
16649 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
16650 * tree-vect-stmts.c (vect_is_simple_cond): Likewise.
16651 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
16652 (expand_vector_conversion): Likewise.
16653 (expand_vector_addition): Likewise for a TYPE_SIZE_UNIT used as
16654 a divisor. Convert the dividend to bits to compensate.
16655 * tree-vect-loop.c (vectorizable_live_operation): Call
16656 vector_element_bits instead of open-coding it.
16658 2020-05-12 Jakub Jelinek <jakub@redhat.com>
16660 * omp-offload.h (omp_discover_implicit_declare_target): Declare.
16661 * omp-offload.c: Include context.h.
16662 (omp_declare_target_fn_p, omp_declare_target_var_p,
16663 omp_discover_declare_target_fn_r, omp_discover_declare_target_var_r,
16664 omp_discover_implicit_declare_target): New functions.
16665 * cgraphunit.c (analyze_functions): Call
16666 omp_discover_implicit_declare_target.
16668 2020-05-12 Richard Biener <rguenther@suse.de>
16670 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Canonicalize
16671 literal constant &MEM[..] to a constant literal.
16673 2020-05-12 Richard Biener <rguenther@suse.de>
16675 PR tree-optimization/95045
16676 * dbgcnt.def (lim): Add debug-counter.
16677 * tree-ssa-loop-im.c: Include dbgcnt.h.
16678 (find_refs_for_sm): Use lim debug counter for store motion
16680 (do_store_motion): Rename form store_motion. Commit edge
16682 (store_motion_loop): ... here.
16683 (tree_ssa_lim): Adjust.
16685 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
16687 * config/rs6000/altivec.h (vec_clzm): Rename to vec_cntlzm.
16688 (vec_ctzm): Rename to vec_cnttzm.
16689 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16690 Change fourth operand for vec_ternarylogic to require
16691 compatibility with unsigned SImode rather than unsigned QImode.
16692 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
16693 Remove overloaded forms of vec_gnb that are no longer needed.
16694 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
16695 for a Future Architecture): Replace vec_clzm with vec_cntlzm;
16696 replace vec_ctzm with vec_cntlzm; remove four unwanted forms of
16697 vec_gnb; move vec_ternarylogic documentation into this section
16698 and replace const unsigned char with const unsigned int as its
16701 2020-05-11 Carl Love <cel@us.ibm.com>
16703 * config/rs6000/altivec.h (vec_genpcvm): New #define.
16704 * config/rs6000/rs6000-builtin.def (XXGENPCVM_V16QI): New built-in
16706 (XXGENPCVM_V8HI): Likewise.
16707 (XXGENPCVM_V4SI): Likewise.
16708 (XXGENPCVM_V2DI): Likewise.
16709 (XXGENPCVM): New overloaded built-in instantiation.
16710 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add
16711 entries for FUTURE_BUILTIN_VEC_XXGENPCVM.
16712 (altivec_expand_builtin): Add special handling for
16713 FUTURE_BUILTIN_VEC_XXGENPCVM.
16714 (builtin_function_type): Add handling for
16715 FUTURE_BUILTIN_XXGENPCVM_{V16QI,V8HI,V4SI,V2DI}.
16716 * config/rs6000/vsx.md (VSX_EXTRACT_I4): New mode iterator.
16717 (UNSPEC_XXGENPCV): New constant.
16718 (xxgenpcvm_<mode>_internal): New insn.
16719 (xxgenpcvm_<mode>): New expansion.
16720 * doc/extend.texi: Add documentation for vec_genpcvm built-ins.
16722 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
16724 * config/rs6000/altivec.h (vec_strir): New #define.
16725 (vec_stril): Likewise.
16726 (vec_strir_p): Likewise.
16727 (vec_stril_p): Likewise.
16728 * config/rs6000/altivec.md (UNSPEC_VSTRIR): New constant.
16729 (UNSPEC_VSTRIL): Likewise.
16730 (vstrir_<mode>): New expansion.
16731 (vstrir_code_<mode>): New insn.
16732 (vstrir_p_<mode>): New expansion.
16733 (vstrir_p_code_<mode>): New insn.
16734 (vstril_<mode>): New expansion.
16735 (vstril_code_<mode>): New insn.
16736 (vstril_p_<mode>): New expansion.
16737 (vstril_p_code_<mode>): New insn.
16738 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vstribr):
16739 New built-in function.
16740 (__builtin_altivec_vstrihr): Likewise.
16741 (__builtin_altivec_vstribl): Likewise.
16742 (__builtin_altivec_vstrihl): Likewise.
16743 (__builtin_altivec_vstribr_p): Likewise.
16744 (__builtin_altivec_vstrihr_p): Likewise.
16745 (__builtin_altivec_vstribl_p): Likewise.
16746 (__builtin_altivec_vstrihl_p): Likewise.
16747 (__builtin_vec_strir): New overloaded built-in function.
16748 (__builtin_vec_stril): Likewise.
16749 (__builtin_vec_strir_p): Likewise.
16750 (__builtin_vec_stril_p): Likewise.
16751 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
16752 Define overloaded forms of __builtin_vec_strir,
16753 __builtin_vec_stril, __builtin_vec_strir_p, and
16754 __builtin_vec_stril_p.
16755 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
16756 for a Future Architecture): Add description of vec_stril,
16757 vec_stril_p, vec_strir, and vec_strir_p built-in functions.
16759 2020-05-11 Kelvin Nilsen <wschmidt@linux.ibm.com>
16761 * config/rs6000/altivec.h (vec_ternarylogic): New #define.
16762 * config/rs6000/altivec.md (UNSPEC_XXEVAL): New constant.
16763 (xxeval): New insn.
16764 * config/rs6000/predicates.md (u8bit_cint_operand): New predicate.
16765 * config/rs6000/rs6000-builtin.def: Add handling of new macro
16767 (BU_FUTURE_V_4): New macro. Use it.
16768 (BU_FUTURE_OVERLOAD_4): Likewise.
16769 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Add
16770 handling for quaternary built-in functions.
16771 (altivec_resolve_overloaded_builtin): Add special-case handling
16772 for __builtin_vec_xxeval.
16773 * config/rs6000/rs6000-call.c: Add handling of new macro
16774 RS6000_BUILTIN_4 in initialization of rs6000_builtin_info,
16775 bdesc0_arg, bdesc1_arg, bdesc2_arg, bdesc_3arg,
16776 bdesc_altivec_preds, bdesc_abs, and bdesc_htm arrays.
16777 (altivec_overloaded_builtins): Add definitions for
16778 FUTURE_BUILTIN_VEC_XXEVAL.
16779 (bdesc_4arg): New array.
16780 (htm_expand_builtin): Add handling for quaternary built-in
16782 (rs6000_expand_quaternop_builtin): New function.
16783 (rs6000_expand_builtin): Add handling for quaternary built-in
16785 (rs6000_init_builtins): Initialize builtin_mode_to_type entries
16786 for unsigned QImode and unsigned HImode.
16787 (builtin_quaternary_function_type): New function.
16788 (rs6000_common_init_builtins): Add handling of quaternary
16790 * config/rs6000/rs6000.h (RS6000_BTC_QUATERNARY): New defined
16792 (RS6000_BTC_PREDICATE): Change value of constant.
16793 (RS6000_BTC_ABS): Likewise.
16794 (rs6000_builtins): Add support for new macro RS6000_BUILTIN_4.
16795 * doc/extend.texi (PowerPC AltiVec Built-In Functions Available
16796 for a Future Architecture): Add description of vec_ternarylogic
16799 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
16801 * config/rs6000/rs6000-builtin.def (__builtin_pdepd): New built-in
16803 (__builtin_pextd): Likewise.
16804 * config/rs6000/rs6000.md (UNSPEC_PDEPD): New constant.
16805 (UNSPEC_PEXTD): Likewise.
16808 * doc/extend.texi (Basic PowerPC Built-in Functions Available for
16809 a Future Architecture): Add descriptions of __builtin_pdepd and
16810 __builtin_pextd functions.
16812 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
16814 * config/rs6000/altivec.h (vec_clrl): New #define.
16815 (vec_clrr): Likewise.
16816 * config/rs6000/altivec.md (UNSPEC_VCLRLB): New constant.
16817 (UNSPEC_VCLRRB): Likewise.
16818 (vclrlb): New insn.
16819 (vclrrb): Likewise.
16820 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vclrlb): New
16822 (__builtin_altivec_vclrrb): Likewise.
16823 (__builtin_vec_clrl): New overloaded built-in function.
16824 (__builtin_vec_clrr): Likewise.
16825 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
16826 Define overloaded forms of __builtin_vec_clrl and
16827 __builtin_vec_clrr.
16828 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
16829 for a Future Architecture): Add descriptions of vec_clrl and
16832 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
16834 * config/rs6000/rs6000-builtin.def (__builtin_cntlzdm): New
16835 built-in function definition.
16836 (__builtin_cnttzdm): Likewise.
16837 * config/rs6000/rs6000.md (UNSPEC_CNTLZDM): New constant.
16838 (UNSPEC_CNTTZDM): Likewise.
16839 (cntlzdm): New insn.
16840 (cnttzdm): Likewise.
16841 * doc/extend.texi (Basic PowerPC Built-in Functions available for
16842 a Future Architecture): Add descriptions of __builtin_cntlzdm and
16843 __builtin_cnttzdm functions.
16845 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
16848 * config/i386/mmx.md (sqrtv2sf2): New insn pattern.
16850 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
16852 * config/rs6000/altivec.h (vec_cfuge): New #define.
16853 * config/rs6000/altivec.md (UNSPEC_VCFUGED): New constant.
16854 (vcfuged): New insn.
16855 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vcfuged):
16856 New built-in function.
16857 * config/rs6000/rs6000-call.c (builtin_function_type): Add
16858 handling for FUTURE_BUILTIN_VCFUGED case.
16859 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
16860 for a Future Architecture): Add description of vec_cfuge built-in
16863 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
16865 * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_0): New
16867 (BU_FUTURE_MISC_1): Likewise.
16868 (BU_FUTURE_MISC_2): Likewise.
16869 (BU_FUTURE_MISC_3): Likewise.
16870 (__builtin_cfuged): New built-in function definition.
16871 * config/rs6000/rs6000.md (UNSPEC_CFUGED): New constant.
16872 (cfuged): New insn.
16873 * doc/extend.texi (Basic PowerPC Built-in Functions Available for
16874 a Future Architecture): New subsubsection.
16876 2020-05-11 Richard Biener <rguenther@suse.de>
16878 PR tree-optimization/95049
16879 * tree-ssa-sccvn.c (set_ssa_val_to): Reject lattice transition
16880 between different constants.
16882 2020-05-11 Richard Sandiford <richard.sandiford@arm.com>
16884 * tree-pretty-print.c (dump_generic_node): Handle BOOLEAN_TYPEs.
16886 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
16887 Bill Schmidt <wschmidt@linux.ibm.com>
16889 * config/rs6000/altivec.h (vec_gnb): New #define.
16890 * config/rs6000/altivec.md (UNSPEC_VGNB): New constant.
16892 * config/rs6000/rs6000-builtin.def (BU_FUTURE_OVERLOAD_1): New
16894 (BU_FUTURE_OVERLOAD_2): Likewise.
16895 (BU_FUTURE_OVERLOAD_3): Likewise.
16896 (__builtin_altivec_gnb): New built-in function.
16897 (__buiiltin_vec_gnb): New overloaded built-in function.
16898 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
16899 Define overloaded forms of __builtin_vec_gnb.
16900 (rs6000_expand_binop_builtin): Add error checking for 2nd argument
16901 of __builtin_vec_gnb.
16902 (builtin_function_type): Mark return value and arguments unsigned
16903 for FUTURE_BUILTIN_VGNB.
16904 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
16905 for a Future Architecture): Add description of vec_gnb built-in
16908 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
16909 Bill Schmidt <wschmidt@linux.ibm.com>
16911 * config/rs6000/altivec.h (vec_pdep): New macro implementing new
16913 (vec_pext): Likewise.
16914 * config/rs6000/altivec.md (UNSPEC_VPDEPD): New constant.
16915 (UNSPEC_VPEXTD): Likewise.
16916 (vpdepd): New insn.
16917 (vpextd): Likewise.
16918 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vpdepd): New
16920 (__builtin_altivec_vpextd): Likewise.
16921 * config/rs6000/rs6000-call.c (builtin_function_type): Add
16922 handling for FUTURE_BUILTIN_VPDEPD and FUTURE_BUILTIN_VPEXTD
16924 * doc/extend.texi (PowerPC Altivec Built-in Functions Available
16925 for a Future Architecture): Add description of vec_pdep and
16926 vec_pext built-in functions.
16928 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
16929 Bill Schmidt <wschmidt@linux.ibm.com>
16931 * config/rs6000/altivec.h (vec_clzm): New macro.
16932 (vec_ctzm): Likewise.
16933 * config/rs6000/altivec.md (UNSPEC_VCLZDM): New constant.
16934 (UNSPEC_VCTZDM): Likewise.
16935 (vclzdm): New insn.
16936 (vctzdm): Likewise.
16937 * config/rs6000/rs6000-builtin.def (BU_FUTURE_V_0): New macro.
16938 (BU_FUTURE_V_1): Likewise.
16939 (BU_FUTURE_V_2): Likewise.
16940 (BU_FUTURE_V_3): Likewise.
16941 (__builtin_altivec_vclzdm): New builtin definition.
16942 (__builtin_altivec_vctzdm): Likewise.
16943 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Cause
16944 _ARCH_PWR_FUTURE macro to be defined if OPTION_MASK_FUTURE flag is
16946 * config/rs6000/rs6000-call.c (builtin_function_type): Set return
16947 value and parameter types to be unsigned for VCLZDM and VCTZDM.
16948 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
16949 support for TARGET_FUTURE flag.
16950 * config/rs6000/rs6000.h (RS6000_BTM_FUTURE): New macro constant.
16951 * doc/extend.texi (PowerPC Altivec Built-in Functions Available
16952 for a Future Architecture): New subsubsection.
16954 2020-05-11 Richard Biener <rguenther@suse.de>
16956 PR tree-optimization/94988
16957 PR tree-optimization/95025
16958 * tree-ssa-loop-im.c (seq_entry): Make a struct, add from.
16959 (sm_seq_push_down): Take extra parameter denoting where we
16961 (execute_sm_exit): Re-issue sm_other stores in the correct
16963 (sm_seq_valid_bb): When always executed, allow sm_other to
16964 prevail inbetween sm_ord and record their stored value.
16965 (hoist_memory_references): Adjust refs_not_supported propagation
16966 and prune sm_other from the end of the ordered sequences.
16968 2020-05-11 Felix Yang <felix.yang@huawei.com>
16971 * config/aarch64/aarch64.md (mov<mode>):
16972 Bitcasts to the equivalent integer mode using gen_lowpart
16973 instead of doing FAIL for scalar floating point move.
16975 2020-05-11 Alex Coplan <alex.coplan@arm.com>
16977 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Add case
16978 to correctly calculate cost for new pattern (*csinv3_uxtw_insn3).
16979 * config/aarch64/aarch64.md (*csinv3_utxw_insn1): New.
16980 (*csinv3_uxtw_insn2): New.
16981 (*csinv3_uxtw_insn3): New.
16982 * config/aarch64/iterators.md (neg_not_cs): New.
16984 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
16987 * config/i386/mmx.md (mmx_addv2sf3): Use "v" constraint
16988 instead of "Yv" for AVX alternatives. Add "prefix" attribute.
16989 (*mmx_addv2sf3): Ditto.
16990 (*mmx_subv2sf3): Ditto.
16991 (*mmx_mulv2sf3): Ditto.
16992 (*mmx_<code>v2sf3): Ditto.
16993 (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
16995 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
16998 * config/i386/i386.c (ix86_vector_mode_supported_p):
16999 Vectorize 3dNOW! vector modes for TARGET_MMX_WITH_SSE.
17000 * config/i386/mmx.md (*mov<mode>_internal): Do not set
17001 mode of alternative 13 to V2SF for TARGET_MMX_WITH_SSE.
17003 (mmx_addv2sf3): Change operand predicates from
17004 nonimmediate_operand to register_mmxmem_operand.
17005 (addv2sf3): New expander.
17006 (*mmx_addv2sf3): Add SSE/AVX alternatives. Change operand
17007 predicates from nonimmediate_operand to register_mmxmem_operand.
17008 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17010 (mmx_subv2sf3): Change operand predicate from
17011 nonimmediate_operand to register_mmxmem_operand.
17012 (mmx_subrv2sf3): Ditto.
17013 (subv2sf3): New expander.
17014 (*mmx_subv2sf3): Add SSE/AVX alternatives. Change operand
17015 predicates from nonimmediate_operand to register_mmxmem_operand.
17016 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17018 (mmx_mulv2sf3): Change operand predicates from
17019 nonimmediate_operand to register_mmxmem_operand.
17020 (mulv2sf3): New expander.
17021 (*mmx_mulv2sf3): Add SSE/AVX alternatives. Change operand
17022 predicates from nonimmediate_operand to register_mmxmem_operand.
17023 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17025 (mmx_<code>v2sf3): Change operand predicates from
17026 nonimmediate_operand to register_mmxmem_operand.
17027 (<code>v2sf3): New expander.
17028 (*mmx_<code>v2sf3): Add SSE/AVX alternatives. Change operand
17029 predicates from nonimmediate_operand to register_mmxmem_operand.
17030 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17031 (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
17033 2020-05-11 Martin Liska <mliska@suse.cz>
17036 * common.opt: Fix typo in option description.
17038 2020-05-11 Martin Liska <mliska@suse.cz>
17040 PR gcov-profile/94928
17041 * gcov-io.h: Add caveat about coverage format parsing and
17042 possible outdated documentation.
17044 2020-05-11 Xiong Hu Luo <luoxhu@linux.ibm.com>
17046 PR tree-optimization/83403
17047 * tree-affine.c (expr_to_aff_combination): Replace SSA_NAME with
17048 determine_value_range, Add fold conversion of MULT_EXPR, fix the
17049 previous PLUS_EXPR.
17051 2020-05-10 Gerald Pfeifer <gerald@pfeifer.com>
17053 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and
17054 __ILP32__ for 32-bit targets.
17056 2020-05-09 Eric Botcazou <ebotcazou@adacore.com>
17058 * tree.h (expr_align): Delete.
17059 * tree.c (expr_align): Likewise.
17061 2020-05-09 Hans-Peter Nilsson <hp@axis.com>
17063 * resource.c (init_resource_info): Filter-out TARGET_FLAGS_REGNUM
17064 from end_of_function_needs.
17066 * config.gcc: Remove support for crisv32-*-* and cris-*-linux*.
17067 * config/cris/t-linux, config/cris/linux.h, config/cris/linux.opt:
17069 * config/cris/t-elfmulti: Remove crisv32 multilib.
17070 * config/cris: Remove shared-library and CRIS v32 support.
17072 Move trivially from cc0 to reg:CC model, removing most optimizations.
17073 * config/cris/cris.md: Remove all side-effect patterns and their
17074 splitters. Remove most peepholes. Add clobbers of CRIS_CC0_REGNUM
17075 to all but post-reload control-flow and movem insns. Remove
17076 constraints on all modified expanders. Remove obsoleted cc0-related
17078 (attr "cc"): Remove alternative "rev".
17079 (mode_iterator BWDD, DI_, SI_): New.
17080 (mode_attr sCC_destc, cmp_op1c, cmp_op2c): New.
17081 ("tst<mode>"): Remove; fold as "M" alternative into compare insn.
17082 ("mstep_shift", "mstep_mul"): Remove patterns.
17083 ("s<rcond>", "s<ocond>", "s<ncond>"): Anonymize.
17084 * config/cris/cris.c: Change all non-condition-code,
17085 non-control-flow emitted insns to add a parallel with clobber of
17086 CRIS_CC0_REGNUM, mostly by changing from gen_rtx_SET with
17087 emit_insn to use of emit_move_insn, gen_add2_insn or
17088 cris_emit_insn, as convenient.
17089 (cris_reg_overlap_mentioned_p)
17090 (cris_normal_notice_update_cc, cris_notice_update_cc): Remove.
17091 (cris_movem_load_rest_p): Don't assume all elements in a
17093 (cris_store_multiple_op_p): Ditto.
17094 (cris_emit_insn): New function.
17095 * cris/cris-protos.h (cris_emit_insn): Declare.
17098 * config/cris/cris.md (zcond): New code_iterator.
17099 ("*cbranch<mode>4_btstq<CC>"): New insn_and_split.
17101 * config/cris/cris.c (TARGET_FLAGS_REGNUM): Define.
17103 * config/cris/cris.h (REVERSIBLE_CC_MODE): Define to true.
17105 * config/cris/cris.md ("movsi"): For memory destination
17106 post-reload, generate clobberless variant. Similarly for a
17107 zero-source post-reload.
17108 ("*mov_tomem<mode>_split"): New split.
17109 ("*mov_tomem<mode>"): New insn.
17110 ("enabled", mov_tomem_enabled): Define and use to exclude "x" ->
17111 "Q>m" for less-than-SImode.
17112 ("*mov_fromzero<mode>_split"): New split.
17113 ("*mov_fromzero<mode>"): New insn.
17115 Prepare for cmpelim pass to eliminate redundant compare insns.
17116 * config/cris/cris-modes.def: New file.
17117 * config/cris/cris-protos.h (cris_select_cc_mode): Declare.
17118 (cris_notice_update_cc): Remove left-over declaration.
17119 * config/cris/cris.c (TARGET_CC_MODES_COMPATIBLE): Define.
17120 (cris_select_cc_mode, cris_cc_modes_compatible): New functions.
17121 * config/cris/cris.h (SELECT_CC_MODE): Define.
17122 * config/cris/cris.md (NZSET, NZUSE, NZVCSET, NZVCUSE): New
17124 (cond): New code_iterator.
17125 (nzcond): Replacement for incorrect ncond. All callers changed.
17126 (nzvccond): Replacement for ocond. All callers changed.
17127 (rnzcond): Replacement for rcond. All callers changed.
17128 (xCC): New code_attr.
17129 (cmp_op1c, cmp_op0c): Renumber from cmp_op1c and cmp_op2c. All
17131 ("*cmpdi<NZVCSET:mode>"): Rename from "*cmpdi". Replace
17132 CCmode with iteration over NZVCSET.
17133 ("*cmp_ext<BW:mode><NZVCSET:mode>"): Similarly; rename from
17135 ("*cmpsi<NZVCSET:mode>"): Similarly, from "*cmpsi".
17136 ("*cmp<BW:mode><NZVCSET:mode>"): Similarly from "*cmp<mode>".
17137 ("*btst<mode>"): Similarly, from "*btst".
17138 ("*cbranch<mode><code>4"): Rename from "*cbranch<mode>4",
17139 iterating over cond instead of matching the comparison with
17140 ordered_comparison_operator.
17141 ("*cbranch<mode>4_btstq<CC>"): Correct label operand number.
17142 ("b<zcond:code><mode>"): Rename from "b<ncond:code>", iterating
17144 ("b<nzvccond:code><mode>"): Similarly from "b<ocond:code>", over
17145 NZVCUSE. Remove FIXME.
17146 ("*b<nzcond:code>_reversed<mode>"): Similarly from
17147 "*b<ncond:code>_reversed", over NZUSE.
17148 ("*b<nzvccond:code>_reversed<mode>"): Similarly from
17149 "*b<ocond:code>_reversed", over NZVCUSE. Remove FIXME.
17150 ("b<rnzcond:code><mode>"): Similarly from "b<rcond:code>",
17151 over NZUSE. Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
17152 depending on CC_NZmode vs. CCmode. Remove FIXME.
17153 ("*b<rnzcond:code>_reversed<mode>"): Similarly from
17154 "*b<rcond:code>_reversed", over NZUSE.
17155 ("*cstore<mode><code>4"): Rename from "*cstore<mode>4",
17156 iterating over cond instead of matching the comparison with
17157 ordered_comparison_operator.
17158 ("*s<nzcond:code><mode>"): Rename from "*s<ncond:code>",
17159 iterating over NZUSE.
17160 ("*s<rnzcond:code><mode>"): Similar from "*s<rcond:code>", over
17161 NZUSE. Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
17162 depending on CC_NZmode vs. CCmode.
17163 ("*s<nzvccond:code><mode>"): Simlar from "*s<ocond:code>", over
17164 NZVCUSE. Remove FIXME.
17165 ("cc"): Comment on new use.
17166 ("cc_enabled"): New attribute.
17167 ("enabled"): Make default fall back to cc_enabled.
17168 ("setnz", "ccnz", "setnzvc", "ccnzvc", "setcc", "cccc"): New
17169 default_subst_attrs.
17170 ("setnz_subst", "setnzvc_subst", "setcc_subst"): New default_subst.
17171 ("*movsi_internal<setcc><setnz><setnzvc>"): Rename from
17172 "*movsi_internal". Correct contents of, and rename attribute
17173 "cc" to "cc<cccc><ccnz><ccnzvc>".
17174 ("anz", "anzvc", "acc"): New define_subst_attrs.
17175 ("<acc><anz><anzvc>movhi<setcc><setnz><setnzvc>"): Rename from
17176 "movhi". Rename "cc" attribute to "cc<cccc><ccnz><ccnzvc>".
17177 ("<acc><anz><anzvc>movqi<setcc><setnz><setnzvc>"): Similar from
17178 "movqi". Correct contents of, and rename "cc" attribute to
17179 "cc<cccc><ccnz><ccnzvc>".
17180 ("*b<zcond:code><mode>"): Rename from "b<zcond:code><mode>".
17181 ("*b<nzvccond:code><mode>"): Rename from "b<nzvccond:code><mode>".
17182 ("*b<rnzcond:code><mode>"): Rename from "*b<rnzcond:code><mode>".
17183 ("<acc><anz><anzvc>extend<mode>si2<setcc><setnz><setnzvc>"):
17184 Rename from "extend<mode>si2".
17185 ("<acc><anz><anzvc>zero_extend<mode>si2<setcc><setnz><setnzvc>"):
17186 Similar, from "zero_extend<mode>si2".
17187 ("*adddi3<setnz>"): Rename from "*adddi3".
17188 ("*subdi3<setnz>"): Similarly from "*subdi3".
17189 ("*addsi3<setnz>"): Similarly from "*addsi3".
17190 ("*subsi3<setnz>"): Similarly from "*subsi3".
17191 ("*addhi3<setnz>"): Similarly from "*addhi3" and decorate the
17192 "cc" attribute to "cc<ccnz>".
17193 ("*addqi3<setnz>"): Similarly from "*addqi3".
17194 ("*sub<mode>3<setnz>"): Similarly from "*sub<mode>3".
17195 ("*expanded_andsi<setcc><setnz><setnzvc>"): Rename from
17197 ("*iorsi3<setcc><setnz><setnzvc>"): Similar from "*iorsi3".
17198 Decorate "cc" attribute to make "cc<cccc><ccnz><ccnzvc>".
17199 ("*iorhi3<setcc><setnz><setnzvc>"): Similar from "*iorhi3".
17200 ("*iorqi3<setcc><setnz><setnzvc>"): Similar from "*iorqi3".
17201 ("*expanded_andhi<setcc><setnz><setnzvc>"): Similar from
17202 "*expanded_andhi". Add quick cc-setting alternative for 0..31.
17203 ("*andqi3<setcc><setnz><setnzvc>"): Similar from "*andqi3".
17204 ("<acc><anz><anzvc>xorsi3<setcc><setnz><setnzvc>"): Rename
17206 ("<acc><anz><anzvc>one_cmplsi2<setcc><setnz><setnzvc>"): Rename
17207 from "one_cmplsi2".
17208 ("<acc><anz><anzvc><shlr>si3<setcc><setnz><setnzvc>"): Rename
17210 ("<acc><anz><anzvc>clzsi2<setcc><setnz><setnzvc>"): Rename
17212 ("<acc><anz><anzvc>bswapsi2<setcc><setnz><setnzvc>"): Rename
17214 ("*uminsi3<setcc><setnz><setnzvc>"): Rename from "*uminsi3".
17216 * config/cris/cris-modes.def (CC_ZnN): New CC_MODE.
17217 * config/cris/cris.c (cris_rtx_costs): Handle pre-split bit-test
17218 * config/cris/cris.md (ZnNNZSET, ZnNNZUSE): New mode_iterators.
17219 (znnCC, rznnCC): New code_attrs.
17220 ("*btst<mode>"): Iterator over ZnNNZSET instead of NZVCSET. Remove
17221 obseolete comment. Add belt-and-suspenders mode-test to condition.
17222 Add fixme regarding remaining matched-but-not-generated case.
17223 ("*cbranch<mode>4_btstrq1_<CC>"): New insn_and_split.
17224 ("*cbranch<mode>4_btstqb0_<CC>"): Rename from
17225 "*cbranch<mode>4_btstq<CC>". Split to CC_NZ instead of CC.
17226 ("*b<zcond:code><mode>"): Iterate over ZnNNZUSE instead of NZUSE.
17227 Handle output of CC_ZnNmode.
17228 ("*b<nzcond:code>_reversed<mode>"): Ditto.
17230 * config/cris/cris.c (cris_select_cc_mode): Return CC_NZmode for
17231 NEG too. Correct comment.
17232 * config/cris/cris.md ("<anz>neg<mode>2<setnz>"): Rename from
17235 2020-05-08 Vladimir Makarov <vmakarov@redhat.com>
17237 * ira-color.c (update_costs_from_allocno): Remove
17238 conflict_cost_update_p argument. Propagate costs only along
17239 threads. Always do conflict cost update. Add printing debugging
17241 (update_costs_from_copies): Add printing debugging info.
17242 (restore_costs_from_copies): Ditto.
17243 (assign_hard_reg): Improve debug info.
17244 (push_only_colorable): Ditto. Call update_costs_from_prefs.
17245 (color_allocnos): Remove update_costs_from_prefs.
17247 2020-05-08 Richard Biener <rguenther@suse.de>
17249 * tree-vectorizer.h (vec_info::slp_loads): New.
17250 (vect_optimize_slp): Declare.
17251 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
17252 nothing when there are no loads.
17253 (vect_gather_slp_loads): Gather loads into a vector.
17254 (vect_supported_load_permutation_p): Remove.
17255 (vect_analyze_slp_instance): Do not verify permutation
17257 (vect_analyze_slp): Optimize permutations of reductions
17258 after all SLP instances have been gathered and gather
17260 (vect_optimize_slp): New function split out from
17261 vect_supported_load_permutation_p. Elide some permutations.
17262 (vect_slp_analyze_bb_1): Call vect_optimize_slp.
17263 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17264 * tree-vect-stmts.c (vectorizable_load): Check whether
17265 the load can be permuted. When generating code assert we can.
17267 2020-05-08 Richard Biener <rguenther@suse.de>
17269 * tree-ssa-sccvn.c (rpo_avail): Change type to
17270 eliminate_dom_walker *.
17271 (eliminate_with_rpo_vn): Adjust rpo_avail to make vn_valueize
17272 use the DOM walker availability.
17273 (vn_reference_fold_indirect): Use get_addr_base_and_unit_offset_1
17274 with vn_valueize as valueization callback.
17275 (vn_reference_maybe_forwprop_address): Likewise.
17276 * tree-dfa.c (get_addr_base_and_unit_offset_1): Also valueize
17277 array_ref_low_bound.
17279 2020-05-08 Jakub Jelinek <jakub@redhat.com>
17281 PR tree-optimization/94786
17282 * match.pd (A ^ ((A ^ B) & -(C cmp D)) -> (C cmp D) ? B : A): New
17286 * config/i386/i386.md (peephole2 after *add<mode>3_cc_overflow_1): New
17289 PR middle-end/94724
17290 * tree.c (get_narrower): Reuse the op temporary instead of
17293 PR tree-optimization/94783
17294 * match.pd ((X + (X >> (prec - 1))) ^ (X >> (prec - 1)) to abs (X)):
17295 New simplification.
17297 PR tree-optimization/94956
17298 * match.pd (FFS): Optimize __builtin_ffs* of non-zero argument into
17299 __builtin_ctz* + 1 if direct IFN_CTZ is supported.
17301 PR tree-optimization/94913
17302 * match.pd (A - B + -1 >= A to B >= A): New simplification.
17303 (A - B > A to A < B): Don't test TYPE_OVERFLOW_WRAPS which is always
17304 true for TYPE_UNSIGNED integral types.
17307 PR rtl-optimization/94516
17308 * rtl.h (remove_reg_equal_equiv_notes): Add a bool argument defaulted
17310 * rtlanal.c (remove_reg_equal_equiv_notes): Add no_rescan argument.
17311 Call df_notes_rescan if that argument is not true and returning true.
17312 * combine.c (adjust_for_new_dest): Pass true as second argument to
17313 remove_reg_equal_equiv_notes.
17314 * postreload.c (reload_combine_recognize_pattern): Don't call
17317 2020-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17319 * config/rs6000/rs6000.md (*setnbc_<un>signed_<GPR:mode>): New
17321 (*setnbcr_<un>signed_<GPR:mode>): New define_insn.
17322 (*neg_eq_<mode>): Avoid for TARGET_FUTURE; add missing && 1.
17323 (*neg_ne_<mode>): Likewise.
17325 2020-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17327 * config/rs6000/rs6000.md (setbc_<un>signed_<GPR:mode>): New
17329 (*setbcr_<un>signed_<GPR:mode>): Likewise.
17330 (cstore<mode>4): Use setbc[r] if available.
17331 (<code><GPR:mode><GPR2:mode>2_isel): Avoid for TARGET_FUTURE.
17332 (eq<mode>3): Use setbc for TARGET_FUTURE.
17333 (*eq<mode>3): Avoid for TARGET_FUTURE.
17334 (ne<mode>3): Replace :P with :GPR; use setbc for TARGET_FUTURE;
17335 else for non-Pmode, use gen_eq and gen_xor.
17336 (*ne<mode>3): Avoid for TARGET_FUTURE.
17337 (*eqsi3_ext<mode>): Avoid for TARGET_FUTURE; fix missing && 1.
17339 2020-05-07 Jeff Law <law@redhat.com>
17341 * config/h8300/h8300.md: Move expanders and patterns into
17342 files based on functionality.
17343 * config/h8300/addsub.md: New file.
17344 * config/h8300/bitfield.md: New file
17345 * config/h8300/combiner.md: New file
17346 * config/h8300/divmod.md: New file
17347 * config/h8300/extensions.md: New file
17348 * config/h8300/jumpcall.md: New file
17349 * config/h8300/logical.md: New file
17350 * config/h8300/movepush.md: New file
17351 * config/h8300/multiply.md: New file
17352 * config/h8300/other.md: New file
17353 * config/h8300/proepi.md: New file
17354 * config/h8300/shiftrotate.md: New file
17355 * config/h8300/testcompare.md: New file
17357 * config/h8300/h8300.md (adds/subs splitters): Merge into single
17359 (negation expanders and patterns): Simplify and combine using
17361 (one_cmpl expanders and patterns): Likewise.
17362 (tablejump, indirect_jump patterns ): Likewise.
17363 (shift and rotate expanders and patterns): Likewise.
17364 (absolute value expander and pattern): Drop expander, rename pattern
17366 (peephole2 patterns): Move into...
17367 * config/h8300/peepholes.md: New file.
17369 * config/h8300/constraints.md (L and N): Simplify now that we're not
17370 longer supporting the original H8/300 chip.
17371 * config/h8300/elf.h (LINK_SPEC): Likewise. Default to H8/300H.
17372 * config/h8300/h8300.c (shift_alg_qi): Drop H8/300 support.
17373 (shift_alg_hi, shift_alg_si): Similarly.
17374 (h8300_option_overrides): Similarly. Default to H8/300H. If
17375 compiling for H8/S, then turn off H8/300H. Do not update the
17376 shift_alg tables for H8/300 port.
17377 (h8300_emit_stack_adjustment): Remove support for H8/300. Simplify
17379 (push, split_adds_subs, h8300_rtx_costs): Likewise.
17380 (h8300_print_operand, compute_mov_length): Likewise.
17381 (output_plussi, compute_plussi_length): Likewise.
17382 (compute_plussi_cc, output_logical_op): Likewise.
17383 (compute_logical_op_length, compute_logical_op_cc): Likewise.
17384 (get_shift_alg, h8300_shift_needs_scratch): Likewise.
17385 (output_a_shift, compute_a_shift_length): Likewise.
17386 (output_a_rotate, compute_a_rotate_length): Likewise.
17387 (output_simode_bld, h8300_hard_regno_mode_ok): Likewise.
17388 (h8300_modes_tieable_p, h8300_return_in_memory): Likewise.
17389 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
17390 (attr_cpu, TARGET_H8300): Remove.
17391 (TARGET_DEFAULT): Update.
17392 (UNITS_PER_WORD, PARM_BOUNDARY): Simplify where possible.
17393 (BIGGEST_ALIGNMENT, STACK_BOUNDARY): Likewise.
17394 (CONSTANT_ADDRESS_P, MOVE_MAX, Pmode): Likewise.
17395 (SIZE_TYPE, POINTER_SIZE, ASM_WORD_OP): Likewise.
17396 * config/h8300/h8300.md: Simplify patterns throughout.
17397 * config/h8300/t-h8300: Update multilib configuration.
17399 * config/h8300/h8300.h (LINK_SPEC): Remove.
17400 (USER_LABEL_PREFIX): Likewise.
17402 * config/h8300/h8300.c (h8300_asm_named_section): Remove.
17403 (h8300_option_override): Remove remnants of COFF support.
17405 2020-05-07 Alan Modra <amodra@gmail.com>
17407 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Replace
17408 set_rtx_cost with set_src_cost.
17409 * tree-switch-conversion.c (bit_test_cluster::emit): Likewise.
17411 2020-05-07 Kewen Lin <linkw@gcc.gnu.org>
17413 * tree-vect-stmts.c (vectorizable_load): Check alignment to avoid
17414 redundant half vector handlings for no peeling gaps.
17416 2020-05-07 Giuliano Belinassi <giuliano.belinassi@usp.br>
17418 * tree-ssa-operands.c (operands_scanner): New class.
17419 (operands_bitmap_obstack): Remove.
17420 (n_initialized): Remove.
17421 (build_uses): Move to operands_scanner class.
17422 (build_vuse): Same as above.
17423 (build_vdef): Same as above.
17424 (verify_ssa_operands): Same as above.
17425 (finalize_ssa_uses): Same as above.
17426 (cleanup_build_arrays): Same as above.
17427 (finalize_ssa_stmt_operands): Same as above.
17428 (start_ssa_stmt_operands): Same as above.
17429 (append_use): Same as above.
17430 (append_vdef): Same as above.
17431 (add_virtual_operand): Same as above.
17432 (add_stmt_operand): Same as above.
17433 (get_mem_ref_operands): Same as above.
17434 (get_tmr_operands): Same as above.
17435 (maybe_add_call_vops): Same as above.
17436 (get_asm_stmt_operands): Same as above.
17437 (get_expr_operands): Same as above.
17438 (parse_ssa_operands): Same as above.
17439 (finalize_ssa_defs): Same as above.
17440 (build_ssa_operands): Same as above, plus create a C-like wrapper.
17441 (update_stmt_operands): Create an instance of operands_scanner.
17443 2020-05-07 Richard Biener <rguenther@suse.de>
17446 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Use
17447 DECL_EXTERNAL || TREE_PUBLIC instead of externally_visible.
17448 (refered_from_nonlocal_var): Likewise.
17449 (ipa_pta_execute): Likewise.
17451 2020-05-07 Erick Ochoa <erick.ochoa@theobroma-systems.com>
17453 * gcc/tree-ssa-struct-alias.c: Fix comments
17455 2020-05-07 Martin Liska <mliska@suse.cz>
17457 * doc/invoke.texi: Fix 2 optindex entries.
17459 2020-05-07 Richard Biener <rguenther@suse.de>
17461 PR middle-end/94703
17462 * tree-core.h (tree_decl_common::gimple_reg_flag): Rename ...
17463 (tree_decl_common::not_gimple_reg_flag): ... to this.
17464 * tree.h (DECL_GIMPLE_REG_P): Rename ...
17465 (DECL_NOT_GIMPLE_REG_P): ... to this.
17466 * gimple-expr.c (copy_var_decl): Copy DECL_NOT_GIMPLE_REG_P.
17467 (create_tmp_reg): Simplify.
17468 (create_tmp_reg_fn): Likewise.
17469 (is_gimple_reg): Check DECL_NOT_GIMPLE_REG_P for all regs.
17470 * gimplify.c (create_tmp_from_val): Simplify.
17471 (gimplify_bind_expr): Likewise.
17472 (gimplify_compound_literal_expr): Likewise.
17473 (gimplify_function_tree): Likewise.
17474 (prepare_gimple_addressable): Set DECL_NOT_GIMPLE_REG_P.
17475 * asan.c (create_odr_indicator): Do not clear DECL_GIMPLE_REG_P.
17476 (asan_add_global): Copy it.
17477 * cgraphunit.c (cgraph_node::expand_thunk): Force args
17479 * function.c (gimplify_parameters): Copy
17480 DECL_NOT_GIMPLE_REG_P.
17481 * ipa-param-manipulation.c
17482 (ipa_param_body_adjustments::common_initialization): Simplify.
17483 (ipa_param_body_adjustments::reset_debug_stmts): Copy
17484 DECL_NOT_GIMPLE_REG_P.
17485 * omp-low.c (lower_omp_for_scan): Do not set DECL_GIMPLE_REG_P.
17486 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
17487 * tree-cfg.c (make_blocks_1): Simplify.
17488 (verify_address): Do not verify DECL_GIMPLE_REG_P setting.
17489 * tree-eh.c (lower_eh_constructs_2): Simplify.
17490 * tree-inline.c (declare_return_variable): Adjust and
17492 (copy_decl_to_var): Copy DECL_NOT_GIMPLE_REG_P.
17493 (copy_result_decl_to_var): Likewise.
17494 * tree-into-ssa.c (pass_build_ssa::execute): Adjust comment.
17495 * tree-nested.c (create_tmp_var_for): Simplify.
17496 * tree-parloops.c (separate_decls_in_region_name): Copy
17497 DECL_NOT_GIMPLE_REG_P.
17498 * tree-sra.c (create_access_replacement): Adjust and
17499 generalize partial def support.
17500 * tree-ssa-forwprop.c (pass_forwprop::execute): Set
17501 DECL_NOT_GIMPLE_REG_P on decls we introduce partial defs on.
17502 * tree-ssa.c (maybe_optimize_var): Handle clearing of
17503 TREE_ADDRESSABLE and setting/clearing DECL_NOT_GIMPLE_REG_P
17505 * lto-streamer-out.c (hash_tree): Hash DECL_NOT_GIMPLE_REG_P.
17506 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream
17507 DECL_NOT_GIMPLE_REG_P.
17508 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
17509 * cfgexpand.c (avoid_type_punning_on_regs): New.
17510 (discover_nonconstant_array_refs): Call
17511 avoid_type_punning_on_regs to avoid unsupported mode punning.
17513 2020-05-07 Alex Coplan <alex.coplan@arm.com>
17515 * config/arm/arm.c (arm_add_stmt_cost): Fix declaration, remove class
17518 2020-05-07 Richard Biener <rguenther@suse.de>
17520 PR tree-optimization/57359
17521 * tree-ssa-loop-im.c (im_mem_ref::indep_loop): Remove.
17522 (in_mem_ref::dep_loop): Repurpose.
17523 (LOOP_DEP_BIT): Remove.
17524 (enum dep_kind): New.
17525 (enum dep_state): Likewise.
17526 (record_loop_dependence): New function to populate the
17528 (query_loop_dependence): New function to query the dependence
17530 (memory_accesses::refs_in_loop): Rename to ...
17531 (memory_accesses::refs_loaded_in_loop): ... this and change to
17533 (outermost_indep_loop): Adjust.
17534 (mem_ref_alloc): Likewise.
17535 (gather_mem_refs_stmt): Likewise.
17536 (mem_refs_may_alias_p): Add tbaa_p parameter and pass it down.
17537 (struct sm_aux): New.
17538 (execute_sm): Split code generation on exits, record state
17540 (enum sm_kind): New.
17541 (execute_sm_exit): Exit code generation part.
17542 (sm_seq_push_down): Helper for sm_seq_valid_bb performing
17543 dependence checking on stores reached from exits.
17544 (sm_seq_valid_bb): New function gathering SM stores on exits.
17545 (hoist_memory_references): Re-implement.
17546 (refs_independent_p): Add tbaa_p parameter and pass it down.
17547 (record_dep_loop): Remove.
17548 (ref_indep_loop_p_1): Fold into ...
17549 (ref_indep_loop_p): ... this and generalize for three kinds
17550 of dependence queries.
17551 (can_sm_ref_p): Adjust according to hoist_memory_references
17553 (store_motion_loop): Don't do anything if the set of SM
17554 candidates is empty.
17555 (tree_ssa_lim_initialize): Adjust.
17556 (tree_ssa_lim_finalize): Likewise.
17558 2020-05-07 Eric Botcazou <ebotcazou@adacore.com>
17559 Pierre-Marie de Rodat <derodat@adacore.com>
17561 * dwarf2out.c (add_data_member_location_attribute): Take into account
17562 the variant part offset in the computation of the data bit offset.
17563 (add_bit_offset_attribute): Remove CTX parameter. Pass a new context
17564 in the call to field_byte_offset.
17565 (gen_field_die): Adjust call to add_bit_offset_attribute and remove
17566 confusing assertion.
17567 (analyze_variant_discr): Deal with boolean subtypes.
17569 2020-05-07 Martin Liska <mliska@suse.cz>
17571 * lto-wrapper.c: Split arguments of MAKE environment
17574 2020-05-07 Uroš Bizjak <ubizjak@gmail.com>
17576 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
17577 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
17578 fenv_var and new_fenv_var.
17580 2020-05-06 Jakub Jelinek <jakub@redhat.com>
17583 * config/i386/subst.md (store_mask_constraint, store_mask_predicate):
17585 (avx512dq_vextract<shuffletype>64x2_1_maskm,
17586 avx512f_vextract<shuffletype>32x4_1_maskm,
17587 vec_extract_lo_<mode>_maskm, vec_extract_hi_<mode>_maskm): Remove.
17588 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>): Split
17590 (*avx512dq_vextract<shuffletype>64x2_1,
17591 avx512dq_vextract<shuffletype>64x2_1_mask): ... these new
17592 define_insns. Even in the masked variant allow memory output but in
17593 that case use 0 rather than 0C constraint on the source of masked-out
17595 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Split
17597 (*avx512f_vextract<shuffletype>32x4_1,
17598 avx512f_vextract<shuffletype>32x4_1_mask): ... these new define_insns.
17599 Even in the masked variant allow memory output but in that case use
17600 0 rather than 0C constraint on the source of masked-out elts.
17601 (vec_extract_lo_<mode><mask_name>): Split into ...
17602 (vec_extract_lo_<mode>, vec_extract_lo_<mode>_mask): ... these new
17603 define_insns. Even in the masked variant allow memory output but in
17604 that case use 0 rather than 0C constraint on the source of masked-out
17606 (vec_extract_hi_<mode><mask_name>): Split into ...
17607 (vec_extract_hi_<mode>, vec_extract_hi_<mode>_mask): ... these new
17608 define_insns. Even in the masked variant allow memory output but in
17609 that case use 0 rather than 0C constraint on the source of masked-out
17612 2020-05-06 qing zhao <qing.zhao@oracle.com>
17615 * common.opt: Add -flarge-source-files.
17616 * doc/invoke.texi: Document it.
17617 * toplev.c (process_options): set line_table->default_range_bits
17618 to 0 when flag_large_source_files is true.
17620 2020-05-06 Uroš Bizjak <ubizjak@gmail.com>
17623 * config/i386/predicates.md (add_comparison_operator): New predicate.
17624 * config/i386/i386.md (compare->add splitter): New splitters.
17626 2020-05-06 Richard Biener <rguenther@suse.de>
17628 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
17629 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
17630 Remove slp_instance parameter, just iterate over all scalar stmts.
17631 (vect_slp_analyze_instance_dependence): Adjust and likewise.
17632 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Remove unused BB
17634 (vect_schedule_slp): Just iterate over all scalar stmts.
17635 (vect_supported_load_permutation_p): Adjust.
17636 (vect_transform_slp_perm_load): Remove slp_instance parameter,
17637 instead use the number of lanes in the node as group size.
17638 * tree-vect-stmts.c (vect_model_load_cost): Get vectorization
17639 factor instead of slp_instance as parameter.
17640 (vectorizable_load): Adjust.
17642 2020-05-06 Andreas Schwab <schwab@suse.de>
17644 * config/aarch64/driver-aarch64.c: Include "aarch64-protos.h".
17645 (aarch64_get_extension_string_for_isa_flags): Don't declare.
17647 2020-05-06 Richard Biener <rguenther@suse.de>
17649 PR middle-end/94964
17650 * cfgloopmanip.c (create_preheader): Require non-complex
17651 preheader edge for CP_SIMPLE_PREHEADERS.
17653 2020-05-06 Richard Biener <rguenther@suse.de>
17655 PR tree-optimization/94963
17656 * tree-ssa-loop-im.c (execute_sm_if_changed): Remove
17657 no-warning marking of the conditional store.
17658 (execute_sm): Instead mark the uninitialized state
17659 on loop entry to be not warned about.
17661 2020-05-06 Hongtao Liu <hongtao.liu@intel.com>
17663 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_TSXLDTRK_SET,
17664 OPTION_MASK_ISA2_TSXLDTRK_UNSET): New macros.
17665 * config.gcc: Add tsxldtrkintrin.h to extra_headers.
17666 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17668 * config/i386/i386-builtin.def: Add new builtins.
17669 * config/i386/i386-c.c (ix86_target_macros_internal): Define
17671 * config/i386/i386-options.c (ix86_target_string): Add
17673 (ix86_valid_target_attribute_inner_p): Add attribute tsxldtrk.
17674 * config/i386/i386.h (TARGET_TSXLDTRK, TARGET_TSXLDTRK_P):
17676 * config/i386/i386.md (define_c_enum "unspec"): Add
17677 UNSPECV_SUSLDTRK, UNSPECV_RESLDTRK.
17678 (TSXLDTRK): New define_int_iterator.
17679 ("<tsxldtrk>"): New define_insn.
17680 * config/i386/i386.opt: Add -mtsxldtrk.
17681 * config/i386/immintrin.h: Include tsxldtrkintrin.h.
17682 * config/i386/tsxldtrkintrin.h: New.
17683 * doc/invoke.texi: Document -mtsxldtrk.
17685 2020-05-06 Jakub Jelinek <jakub@redhat.com>
17687 PR tree-optimization/94921
17688 * match.pd (~(~X - Y) -> X + Y, ~(~X + Y) -> X - Y): New
17691 2020-05-06 Richard Biener <rguenther@suse.de>
17693 PR tree-optimization/94965
17694 * tree-vect-stmts.c (vectorizable_load): Fix typo.
17696 2020-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17698 * doc/install.texi: Replace Sun with Solaris as appropriate.
17699 (Tools/packages necessary for building GCC, Perl version between
17700 5.6.1 and 5.6.24): Remove Solaris 8 reference.
17701 (Installing GCC: Binaries, Solaris 2 (SPARC, Intel)): Remove
17703 (Specific, i?86-*-solaris2*): Update version references for
17704 Solaris 11.3 and later. Remove gas 2.26 caveat.
17705 (Specific, *-*-solaris2*): Update version references for
17706 Solaris 11.3 and later. Remove boehm-gc reference.
17707 Document GMP, MPFR caveats on Solaris 11.3.
17708 (Specific, sparc-sun-solaris2*): Update Solaris 9 references.
17709 (Specific, sparc64-*-solaris2*): Likewise.
17710 Document --build requirement.
17712 2020-05-06 Jakub Jelinek <jakub@redhat.com>
17715 * config/riscv/riscv-builtins.c (riscv_atomic_assign_expand_fenv): Use
17716 TARGET_EXPR instead of MODIFY_EXPR for first assignment to old_flags.
17718 PR rtl-optimization/94873
17719 * combine.c (combine_instructions): Don't optimize using REG_EQUAL
17720 note if SET_SRC (set) has side-effects.
17722 2020-05-06 Hongtao Liu <hongtao.liu@intel.com>
17723 Wei Xiao <wei3.xiao@intel.com>
17725 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_SERIALIZE_SET,
17726 OPTION_MASK_ISA2_SERIALIZE_UNSET): New macros.
17727 (ix86_handle_option): Handle -mserialize.
17728 * config.gcc (serializeintrin.h): New header file.
17729 * config/i386/cpuid.h (bit_SERIALIZE): New bit.
17730 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17732 * config/i386/i386-builtin.def: Add new builtin.
17733 * config/i386/i386-c.c (__SERIALIZE__): New macro.
17734 * config/i386/i386-options.c (ix86_target_opts_isa2_opts):
17736 * (ix86_valid_target_attribute_inner_p): Add target attribute
17738 * config/i386/i386.h (TARGET_SERIALIZE, TARGET_SERIALIZE_P):
17740 * config/i386/i386.md (UNSPECV_SERIALIZE): New unspec.
17741 (serialize): New define_insn.
17742 * config/i386/i386.opt (mserialize): New option
17743 * config/i386/immintrin.h: Include serailizeintrin.h.
17744 * config/i386/serializeintrin.h: New header file.
17745 * doc/invoke.texi: Add documents for -mserialize.
17747 2020-05-06 Richard Biener <rguenther@suse.de>
17749 * tree-cfg.c (verify_gimple_assign_unary): Adjust integer
17750 to/from pointer conversion checking.
17752 2020-05-05 Michael Meissner <meissner@linux.ibm.com>
17754 * config/rs6000/rs6000-builtin.def: Delete changes meant for a
17756 * config/rs6000/rs6000-c.c: Likewise.
17757 * config/rs6000/rs6000-call.c: Likewise.
17758 * config/rs6000/rs6000.c: Likewise.
17760 2020-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
17762 * config/rtems.h (RTEMS_STARTFILE_SPEC): Define if undefined.
17763 (RTEMS_ENDFILE_SPEC): Likewise.
17764 (STARTFILE_SPEC): Update comment. Add RTEMS_STARTFILE_SPEC.
17765 (ENDFILE_SPEC): Add RTEMS_ENDFILE_SPEC.
17766 (LIB_SPECS): Support -nodefaultlibs option.
17767 * config/or1k/rtems.h (RTEMS_STARTFILE_SPEC): Define.
17768 (RTEMS_ENDFILE_SPEC): Likewise.
17769 * config/rs6000/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
17770 (RTEMS_ENDFILE_SPEC): Likewise.
17771 * config/v850/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
17772 (RTEMS_ENDFILE_SPEC): Likewise.
17774 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
17776 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Remove.
17777 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Remove.
17779 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
17781 * config/pru/pru.h: Mark R3.w0 as caller saved.
17783 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
17785 * config/pru/pru.c (pru_emit_doloop): Use new gen_doloop_end_internal
17786 and gen_doloop_begin_internal.
17787 (pru_reorg_loop): Use gen_pruloop with mode.
17788 * config/pru/pru.md: Use new @insn syntax.
17790 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
17792 * config/pru/pru.c (pru_print_operand): Fix fall through comment.
17794 2020-05-05 Uroš Bizjak <ubizjak@gmail.com>
17796 * config/i386/i386.md (fixuns_trunc<mode>si2): Use
17797 "clobber (scratch:M)" instad of "clobber (match_scratch:M N)".
17798 (addqi3_cconly_overflow): Ditto.
17799 (umulv<mode>4): Ditto.
17800 (<s>mul<mode>3_highpart): Ditto.
17801 (tls_global_dynamic_32): Ditto.
17802 (tls_local_dynamic_base_32): Ditto.
17809 (*adddi_4): Remove "m" constraint from scratch operand.
17810 (*add<mode>_4): Ditto.
17812 2020-05-05 Jakub Jelinek <jakub@redhat.com>
17814 PR rtl-optimization/94516
17815 * postreload.c (reload_cse_simplify): When replacing sp = sp + const
17816 with sp = reg, add REG_EQUAL note with sp + const.
17817 * combine-stack-adj.c (try_apply_stack_adjustment): Change return
17818 type from int to bool. Add LIVE and OTHER_INSN arguments. Undo
17819 postreload sp = sp + const to sp = reg optimization if needed and
17821 (combine_stack_adjustments_for_block): Add LIVE argument. Handle
17822 reg = sp insn with sp + const REG_EQUAL note. Adjust
17823 try_apply_stack_adjustment caller, call
17824 df_simulate_initialize_forwards and df_simulate_one_insn_forwards.
17825 (combine_stack_adjustments): Allocate and free LIVE bitmap,
17826 adjust combine_stack_adjustments_for_block caller.
17828 2020-05-05 Martin Liska <mliska@suse.cz>
17830 PR gcov-profile/93623
17831 * tree-cfg.c (stmt_can_terminate_bb_p): Update comment to reflect
17834 2020-05-05 Martin Liska <mliska@suse.cz>
17836 * opt-functions.awk (opt_args_non_empty): New function.
17837 * opt-read.awk: Use the function for various option arguments.
17839 2020-05-05 Martin Liska <mliska@suse.cz>
17842 * lto-wrapper.c (run_gcc): When using -flto=jobserver,
17843 report warning when the jobserver is not detected.
17845 2020-05-05 Martin Liska <mliska@suse.cz>
17847 PR gcov-profile/94636
17848 * gcov.c (main): Print total lines summary at the end.
17849 (generate_results): Expect file_name always being non-null.
17850 Print newline after intermediate file is printed in order to align with
17851 what we do for normal files.
17853 2020-05-05 Martin Liska <mliska@suse.cz>
17855 * dumpfile.c (dump_switch_p): Change return type
17856 and print option suggestion.
17857 * dumpfile.h: Change return type.
17858 * opts-global.c (handle_common_deferred_options):
17859 Move error into dump_switch_p function.
17861 2020-05-05 Martin Liska <mliska@suse.cz>
17864 * alloc-pool.h: Use const for some arguments.
17865 * bitmap.h: Likewise.
17866 * mem-stats.h: Likewise.
17867 * sese.h (get_entry_bb): Likewise.
17868 (get_exit_bb): Likewise.
17870 2020-05-05 Richard Biener <rguenther@suse.de>
17872 * tree-vect-slp.c (struct vdhs_data): New.
17873 (vect_detect_hybrid_slp): New walker.
17874 (vect_detect_hybrid_slp): Rewrite.
17876 2020-05-05 Richard Biener <rguenther@suse.de>
17879 * tree-ssa-structalias.c (ipa_pta_execute): Use
17880 varpool_node::externally_visible_p ().
17881 (refered_from_nonlocal_var): Likewise.
17883 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
17885 * gcc.c (LTO_PLUGIN_SPEC): Define if not already.
17886 (LINK_PLUGIN_SPEC): Execute LTO_PLUGIN_SPEC.
17887 * config/vxworks.h (LTO_PLUGIN_SPEC): Define.
17889 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
17891 * gimplify.c (gimplify_init_constructor): Do not put the constructor
17892 into static memory if it is not complete.
17894 2020-05-05 Richard Biener <rguenther@suse.de>
17896 PR tree-optimization/94949
17897 * tree-ssa-loop-im.c (execute_sm): Check whether we use
17898 the multithreaded model or always compute the stored value
17899 before eliding a load.
17901 2020-05-05 Alex Coplan <alex.coplan@arm.com>
17903 * config/aarch64/aarch64.md (*one_cmpl_zero_extend): New.
17905 2020-05-05 Jakub Jelinek <jakub@redhat.com>
17907 PR tree-optimization/94800
17908 * match.pd (X + (X << C) to X * (1 + (1 << C)),
17909 (X << C1) + (X << C2) to X * ((1 << C1) + (1 << C2))): New
17913 * config/i386/mmx.md (*vec_dupv4hi): Use xYw constraints instead of Yv.
17915 PR tree-optimization/94914
17916 * match.pd ((((type)A * B) >> prec) != 0 to .MUL_OVERFLOW(A, B) != 0):
17917 New simplification.
17919 2020-05-05 Uroš Bizjak <ubizjak@gmail.com>
17921 * config/i386/i386.md (*testqi_ext_3): Use
17922 int_nonimmediate_operand instead of manual mode checks.
17923 (*x86_mov<SWI48:mode>cc_0_m1_neg_leu<SWI:mode>):
17924 Use int_nonimmediate_operand predicate. Rewrite
17925 define_insn_and_split pattern to a combine pass splitter.
17927 2020-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17929 * configure.ac <i[34567]86-*-*>: Add --32 to tls_as_opt on Solaris.
17930 * configure: Regenerate.
17932 2020-05-05 Jakub Jelinek <jakub@redhat.com>
17935 * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
17936 ssse3_ph<plusminus_mnemonic>wv8hi3, ssse3_ph<plusminus_mnemonic>wv4hi3,
17937 avx2_ph<plusminus_mnemonic>dv8si3, ssse3_ph<plusminus_mnemonic>dv4si3,
17938 ssse3_ph<plusminus_mnemonic>dv2si3): Simplify RTL patterns.
17940 2020-05-04 Clement Chigot <clement.chigot@atos.net>
17941 David Edelsohn <dje.gcc@gmail.com>
17943 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Override explicit
17944 for fmodl, frexpl, ldexpl and modfl builtins.
17946 2020-05-04 Richard Sandiford <richard.sandiford@arm.com>
17948 PR middle-end/94941
17949 * internal-fn.c (expand_load_lanes_optab_fn): Emit a move if the
17950 chosen lhs is different from the gcall lhs.
17951 (expand_mask_load_optab_fn): Likewise.
17952 (expand_gather_load_optab_fn): Likewise.
17954 2020-05-04 Uroš Bizjak <ubizjak@gmail.com>
17957 * config/i386/i386.md (*neg<mode>_ccc): New insn pattern.
17958 (EQ compare->LTU compare splitter): New splitter.
17959 (NE compare->NEG splitter): Ditto.
17961 2020-05-04 Marek Polacek <polacek@redhat.com>
17964 2020-04-30 Marek Polacek <polacek@redhat.com>
17967 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
17968 (check_aligned_type): Check if TYPE_USER_ALIGN match.
17970 2020-05-04 Richard Biener <rguenther@suse.de>
17972 PR tree-optimization/93891
17973 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fall back to
17974 the original reference tree for assessing access alignment.
17976 2020-05-04 Richard Biener <rguenther@suse.de>
17978 PR tree-optimization/39612
17979 * tree-ssa-loop-im.c (im_mem_ref::loaded): New member.
17980 (set_ref_loaded_in_loop): New.
17981 (mark_ref_loaded): Likewise.
17982 (gather_mem_refs_stmt): Call mark_ref_loaded for loads.
17983 (execute_sm): Avoid issueing a load when it was not there.
17984 (execute_sm_if_changed): Avoid issueing warnings for the
17987 2020-05-04 Martin Jambor <mjambor@suse.cz>
17990 * tree-inline.c (tree_function_versioning): Leave any type conversion
17991 of replacements to setup_one_parameter and its friend
17992 force_value_to_type.
17994 2020-05-04 Uroš Bizjak <ubizjak@gmail.com>
17997 * config/i386/predicates.md (shr_comparison_operator): New predicate.
17998 * config/i386/i386.md (compare->shr splitter): New splitters.
18000 2020-05-04 Jakub Jelinek <jakub@redhat.com>
18002 PR tree-optimization/94718
18003 * match.pd ((X < 0) != (Y < 0) into (X ^ Y) < 0): New simplification.
18005 PR tree-optimization/94718
18006 * match.pd (bitop (convert @0) (convert? @1)): For GIMPLE, if we can,
18007 replace two nop conversions on bit_{and,ior,xor} argument
18008 and result with just one conversion on the result or another argument.
18010 PR tree-optimization/94718
18011 * fold-const.c (fold_binary_loc): Move (X & C) eqne (Y & C)
18012 -> (X ^ Y) & C eqne 0 optimization to ...
18013 * match.pd ((X & C) op (Y & C) into (X ^ Y) & C op 0): ... here.
18015 * opts.c (get_option_html_page): Instead of hardcoding a list of
18016 options common between C/C++ and Fortran only use gfortran/
18017 documentation for warnings that have CL_Fortran set but not
18020 2020-05-03 Uroš Bizjak <ubizjak@gmail.com>
18022 * config/i386/i386-expand.c (ix86_expand_int_movcc):
18023 Use plus_constant instead of gen_rtx_PLUS with GEN_INT.
18024 (emit_memmov): Ditto.
18025 (emit_memset): Ditto.
18026 (ix86_expand_strlensi_unroll_1): Ditto.
18027 (release_scratch_register_on_entry): Ditto.
18028 (gen_frame_set): Ditto.
18029 (ix86_emit_restore_reg_using_pop): Ditto.
18030 (ix86_emit_outlined_ms2sysv_restore): Ditto.
18031 (ix86_expand_epilogue): Ditto.
18032 (ix86_expand_split_stack_prologue): Ditto.
18033 * config/i386/i386.md (push immediate splitter): Ditto.
18037 2020-05-02 Iain Sandoe <iain@sandoe.co.uk>
18039 PR translation/93861
18040 * config/darwin-driver.c (darwin_driver_init): Adjust spelling in
18043 2020-05-02 Jakub Jelinek <jakub@redhat.com>
18045 * config/tilegx/tilegx.md
18046 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Use <I124MODE:n>
18047 rather than just <n>.
18049 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
18052 * cfgexpand.c (pass_expand::execute): Set crtl->patch_area_size
18053 and crtl->patch_area_entry.
18054 * emit-rtl.h (rtl_data): Add patch_area_size and patch_area_entry.
18055 * opts.c (common_handle_option): Limit
18056 function_entry_patch_area_size and function_entry_patch_area_start
18057 to USHRT_MAX. Fix a typo in error message.
18058 * varasm.c (assemble_start_function): Use crtl->patch_area_size
18059 and crtl->patch_area_entry.
18060 * doc/invoke.texi: Document the maximum value for
18061 -fpatchable-function-entry.
18063 2020-05-01 Iain Sandoe <iain@sandoe.co.uk>
18065 * config/i386/darwin.h: Repair SUBTARGET_INIT_BUILTINS.
18066 Override SUBTARGET_SHADOW_OFFSET macro.
18068 2020-05-01 Andreas Tobler <andreast@gcc.gnu.org>
18070 * config/i386/i386.h: Define a new macro: SUBTARGET_SHADOW_OFFSET.
18071 * config/i386/i386.c (ix86_asan_shadow_offset): Use this macro.
18072 * config/i386/darwin.h: Override the SUBTARGET_SHADOW_OFFSET macro.
18073 * config/i386/freebsd.h: Likewise.
18074 * config/freebsd.h (LIBASAN_EARLY_SPEC): Define.
18075 LIBTSAN_EARLY_SPEC): Likewise. (LIBLSAN_EARLY_SPEC): Likewise.
18077 2020-04-30 Alexandre Oliva <oliva@adacore.com>
18079 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18080 the newly-introduced fileio effective target.
18082 2020-04-30 Richard Sandiford <richard.sandiford@arm.com>
18084 PR rtl-optimization/94740
18085 * cse.c (cse_process_notes_1): Replace with...
18086 (cse_process_note_1): ...this new function, acting as a
18087 simplify_replace_fn_rtx callback to process_note. Handle only
18088 REGs and MEMs directly. Validate the MEM if cse_process_note
18089 changes its address.
18090 (cse_process_notes): Replace with...
18091 (cse_process_note): ...this new function.
18092 (cse_extended_basic_block): Update accordingly, iterating over
18093 the register notes and passing individual notes to cse_process_note.
18095 2020-04-30 Carl Love <cel@us.ibm.com>
18097 * config/rs6000/emmintrin.h (_mm_movemask_epi8): Fix comment.
18099 2020-04-30 Martin Jambor <mjambor@suse.cz>
18102 * cgraph.c (clone_of_p): Also consider thunks whih had their bodies
18103 saved by the inliner and thunks which had their call inlined.
18104 * ipa-inline-transform.c (save_inline_function_body): Fill in
18105 former_clone_of of new body holders.
18107 2020-04-30 Jakub Jelinek <jakub@redhat.com>
18109 * BASE-VER: Set to 11.0.0.
18111 2020-04-30 Jonathan Wakely <jwakely@redhat.com>
18113 * pretty-print.c (pp_take_prefix): Fix spelling in comment.
18115 2020-04-30 Marek Polacek <polacek@redhat.com>
18118 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
18119 (check_aligned_type): Check if TYPE_USER_ALIGN match.
18121 2020-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18123 * config/aarch64/aarch64.h (TARGET_OUTLINE_ATOMICS): Define.
18124 * config/aarch64/aarch64.opt (moutline-atomics): Change to Int variable.
18125 * doc/invoke.texi (moutline-atomics): Document as on by default.
18127 2020-04-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
18130 * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Remove
18131 the check for NOTE_INSN_DELETED_LABEL.
18133 2020-04-30 Jakub Jelinek <jakub@redhat.com>
18135 * configure.ac (--with-documentation-root-url,
18136 --with-changes-root-url): Diagnose URL not ending with /,
18137 use AC_DEFINE_UNQUOTED instead of AC_SUBST.
18138 * opts.h (get_changes_url): Remove.
18139 * opts.c (get_changes_url): Remove.
18140 * Makefile.in (CFLAGS-opts.o): Don't add -DDOCUMENTATION_ROOT_URL
18141 or -DCHANGES_ROOT_URL.
18142 * doc/install.texi (--with-documentation-root-url,
18143 --with-changes-root-url): Document.
18144 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Don't call
18145 get_changes_url and free, change url variable type to const char * and
18146 set it to CHANGES_ROOT_URL "gcc-10/changes.html#empty_base".
18147 * config/s390/s390.c (s390_function_arg_vector,
18148 s390_function_arg_float): Likewise.
18149 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
18151 * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
18153 * config.in: Regenerate.
18154 * configure: Regenerate.
18156 2020-04-30 Christophe Lyon <christophe.lyon@linaro.org>
18159 * config/arm/arm.c (isr_attribute_args): Remove duplicate entries.
18161 2020-04-30 Andreas Krebbel <krebbel@linux.ibm.com>
18163 * config/s390/constraints.md ("j>f", "jb4"): New constraints.
18164 * config/s390/vecintrin.h (vec_load_len_r, vec_store_len_r): Fix
18166 * config/s390/vx-builtins.md ("vlrlrv16qi", "vstrlrv16qi"): Add a
18168 ("*vlrlrv16qi", "*vstrlrv16qi"): Add alternative for vl/vst.
18169 Change constraint for vlrl/vstrl to jb4.
18171 2020-04-30 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18173 * var-tracking.c (vt_initialize): Move variables pre and post
18174 into inner block and initialize both in order to fix warning
18175 about uninitialized use. Remove unnecessary checks for
18176 frame_pointer_needed.
18178 2020-04-30 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18180 * toplev.c (output_stack_usage_1): Ensure that first
18181 argument to fprintf is not null.
18183 2020-04-29 Jakub Jelinek <jakub@redhat.com>
18185 * configure.ac (-with-changes-root-url): New configure option,
18186 defaulting to https://gcc.gnu.org/.
18187 * Makefile.in (CFLAGS-opts.o): Define CHANGES_ROOT_URL for
18189 * pretty-print.c (get_end_url_string): New function.
18190 (pp_format): Handle %{ and %} for URLs.
18191 (pp_begin_url): Use pp_string instead of pp_printf.
18192 (pp_end_url): Use get_end_url_string.
18193 * opts.h (get_changes_url): Declare.
18194 * opts.c (get_changes_url): New function.
18195 * config/rs6000/rs6000-call.c: Include opts.h.
18196 (rs6000_discover_homogeneous_aggregate): Use %{in GCC 10.1%} instead
18197 of just in GCC 10.1 in diagnostics and add URL.
18198 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Likewise.
18199 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
18201 * config/s390/s390.c (s390_function_arg_vector,
18202 s390_function_arg_float): Likewise.
18203 * configure: Regenerated.
18206 * config/s390/s390.c (s390_function_arg_vector,
18207 s390_function_arg_float): Use DECL_FIELD_ABI_IGNORED instead of
18208 cxx17_empty_base_field_p. In -Wpsabi diagnostics use the type
18209 passed to the function rather than the type of the single element.
18210 Rename cxx17_empty_base_seen variable to empty_base_seen, change
18211 type to int, and adjust diagnostics depending on if the field
18212 has [[no_unique_attribute]] or not.
18215 * config/i386/avx512bwintrin.h (_mm512_alignr_epi8,
18216 _mm512_mask_alignr_epi8, _mm512_maskz_alignr_epi8): Wrap macro operands
18217 used in casts into parens.
18218 * config/i386/avx512fintrin.h (_mm512_cvt_roundps_ph, _mm512_cvtps_ph,
18219 _mm512_mask_cvt_roundps_ph, _mm512_mask_cvtps_ph,
18220 _mm512_maskz_cvt_roundps_ph, _mm512_maskz_cvtps_ph,
18221 _mm512_mask_cmp_epi64_mask, _mm512_mask_cmp_epi32_mask,
18222 _mm512_mask_cmp_epu64_mask, _mm512_mask_cmp_epu32_mask,
18223 _mm512_mask_cmp_round_pd_mask, _mm512_mask_cmp_round_ps_mask,
18224 _mm512_mask_cmp_pd_mask, _mm512_mask_cmp_ps_mask): Likewise.
18225 * config/i386/avx512vlbwintrin.h (_mm256_mask_alignr_epi8,
18226 _mm256_maskz_alignr_epi8, _mm_mask_alignr_epi8, _mm_maskz_alignr_epi8,
18227 _mm256_mask_cmp_epu8_mask): Likewise.
18228 * config/i386/avx512vlintrin.h (_mm_mask_cvtps_ph, _mm_maskz_cvtps_ph,
18229 _mm256_mask_cvtps_ph, _mm256_maskz_cvtps_ph): Likewise.
18230 * config/i386/f16cintrin.h (_mm_cvtps_ph, _mm256_cvtps_ph): Likewise.
18231 * config/i386/shaintrin.h (_mm_sha1rnds4_epu32): Likewise.
18234 * config/i386/avx2intrin.h (_mm_mask_i32gather_pd,
18235 _mm256_mask_i32gather_pd, _mm_mask_i64gather_pd,
18236 _mm256_mask_i64gather_pd, _mm_mask_i32gather_ps,
18237 _mm256_mask_i32gather_ps, _mm_mask_i64gather_ps,
18238 _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
18239 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
18240 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
18241 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
18242 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
18243 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
18244 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
18245 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
18246 _mm256_mask_i64gather_epi32): Surround macro parameter uses with
18248 (_mm_i32gather_pd, _mm256_i32gather_pd, _mm_i64gather_pd,
18249 _mm256_i64gather_pd, _mm_i32gather_ps, _mm256_i32gather_ps,
18250 _mm_i64gather_ps, _mm256_i64gather_ps): Likewise. Don't use
18251 as mask vector containing -1.0 or -1.0f elts, but instead vector
18252 with all bits set using _mm*_cmpeq_p? with zero operands.
18253 * config/i386/avx512fintrin.h (_mm512_i32gather_ps,
18254 _mm512_mask_i32gather_ps, _mm512_i32gather_pd,
18255 _mm512_mask_i32gather_pd, _mm512_i64gather_ps,
18256 _mm512_mask_i64gather_ps, _mm512_i64gather_pd,
18257 _mm512_mask_i64gather_pd, _mm512_i32gather_epi32,
18258 _mm512_mask_i32gather_epi32, _mm512_i32gather_epi64,
18259 _mm512_mask_i32gather_epi64, _mm512_i64gather_epi32,
18260 _mm512_mask_i64gather_epi32, _mm512_i64gather_epi64,
18261 _mm512_mask_i64gather_epi64, _mm512_i32scatter_ps,
18262 _mm512_mask_i32scatter_ps, _mm512_i32scatter_pd,
18263 _mm512_mask_i32scatter_pd, _mm512_i64scatter_ps,
18264 _mm512_mask_i64scatter_ps, _mm512_i64scatter_pd,
18265 _mm512_mask_i64scatter_pd, _mm512_i32scatter_epi32,
18266 _mm512_mask_i32scatter_epi32, _mm512_i32scatter_epi64,
18267 _mm512_mask_i32scatter_epi64, _mm512_i64scatter_epi32,
18268 _mm512_mask_i64scatter_epi32, _mm512_i64scatter_epi64,
18269 _mm512_mask_i64scatter_epi64): Surround macro parameter uses with
18271 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
18272 _mm512_prefetch_i32gather_ps, _mm512_mask_prefetch_i32gather_pd,
18273 _mm512_mask_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
18274 _mm512_prefetch_i64gather_ps, _mm512_mask_prefetch_i64gather_pd,
18275 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
18276 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
18277 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
18278 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
18279 _mm512_mask_prefetch_i64scatter_ps): Likewise.
18280 * config/i386/avx512vlintrin.h (_mm256_mmask_i32gather_ps,
18281 _mm_mmask_i32gather_ps, _mm256_mmask_i32gather_pd,
18282 _mm_mmask_i32gather_pd, _mm256_mmask_i64gather_ps,
18283 _mm_mmask_i64gather_ps, _mm256_mmask_i64gather_pd,
18284 _mm_mmask_i64gather_pd, _mm256_mmask_i32gather_epi32,
18285 _mm_mmask_i32gather_epi32, _mm256_mmask_i32gather_epi64,
18286 _mm_mmask_i32gather_epi64, _mm256_mmask_i64gather_epi32,
18287 _mm_mmask_i64gather_epi32, _mm256_mmask_i64gather_epi64,
18288 _mm_mmask_i64gather_epi64, _mm256_i32scatter_ps,
18289 _mm256_mask_i32scatter_ps, _mm_i32scatter_ps, _mm_mask_i32scatter_ps,
18290 _mm256_i32scatter_pd, _mm256_mask_i32scatter_pd, _mm_i32scatter_pd,
18291 _mm_mask_i32scatter_pd, _mm256_i64scatter_ps,
18292 _mm256_mask_i64scatter_ps, _mm_i64scatter_ps, _mm_mask_i64scatter_ps,
18293 _mm256_i64scatter_pd, _mm256_mask_i64scatter_pd, _mm_i64scatter_pd,
18294 _mm_mask_i64scatter_pd, _mm256_i32scatter_epi32,
18295 _mm256_mask_i32scatter_epi32, _mm_i32scatter_epi32,
18296 _mm_mask_i32scatter_epi32, _mm256_i32scatter_epi64,
18297 _mm256_mask_i32scatter_epi64, _mm_i32scatter_epi64,
18298 _mm_mask_i32scatter_epi64, _mm256_i64scatter_epi32,
18299 _mm256_mask_i64scatter_epi32, _mm_i64scatter_epi32,
18300 _mm_mask_i64scatter_epi32, _mm256_i64scatter_epi64,
18301 _mm256_mask_i64scatter_epi64, _mm_i64scatter_epi64,
18302 _mm_mask_i64scatter_epi64): Likewise.
18304 2020-04-29 Jeff Law <law@redhat.com>
18306 * config/h8300/h8300.md (H8/SX div patterns): All H8/SX specific
18307 division instructions are 4 bytes long.
18309 2020-04-29 Jakub Jelinek <jakub@redhat.com>
18312 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Use
18313 TARGET_EXPR instead of MODIFY_EXPR for first assignment to
18314 fenv_var, fenv_clear and old_fenv variables. For fenv_addr
18315 take address of TARGET_EXPR of fenv_var with void_node initializer.
18318 2020-04-29 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18320 PR tree-optimization/94774
18321 * gimple-ssa-sprintf.c (try_substitute_return_value): Initialize
18324 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18326 * calls.h (cxx17_empty_base_field_p): Turn into a function declaration.
18327 * calls.c (cxx17_empty_base_field_p): New function. Check
18328 DECL_ARTIFICIAL and RECORD_OR_UNION_TYPE_P in addition to the
18331 2020-04-29 H.J. Lu <hongjiu.lu@intel.com>
18334 * config/i386/i386-options.c (ix86_set_indirect_branch_type):
18335 Allow -fcf-protection with -mindirect-branch=thunk-extern and
18336 -mfunction-return=thunk-extern.
18337 * doc/invoke.texi: Update notes for -fcf-protection=branch with
18338 -mindirect-branch=thunk-extern and -mindirect-return=thunk-extern.
18340 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18342 * doc/sourcebuild.texi: Add missing arm_arch_v8a_hard_ok anchor.
18344 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18346 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Use
18347 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
18348 fenv_var and new_fenv_var.
18350 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18352 * doc/sourcebuild.texi (arm_arch_v8a_hard_ok): Document new
18353 effective-target keyword.
18354 (arm_arch_v8a_hard_multilib): Likewise.
18355 (arm_arch_v8a_hard): Document new dg-add-options keyword.
18356 * config/arm/arm.c (arm_return_in_memory): Note that the APCS
18357 code is deprecated and has not been updated to handle
18358 DECL_FIELD_ABI_IGNORED.
18359 (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
18360 (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
18361 (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
18362 avoid_cxx17_empty_base with a pointer to a bitmask. Ignore fields
18363 whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
18364 something actually is a HFA or HVA. Record whether we see a
18365 [[no_unique_address]] field that previous GCCs would not have
18366 ignored in this way.
18367 (aapcs_vfp_is_call_or_return_candidate): Update the calls to
18368 aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
18369 [[no_unique_address]] case. Use TYPE_MAIN_VARIANT in the
18370 diagnostic messages.
18371 (arm_needs_doubleword_align): Add a comment explaining why we
18372 consider even zero-sized fields.
18374 2020-04-29 Richard Biener <rguenther@suse.de>
18375 Li Zekun <lizekun1@huawei.com>
18378 * tree.c (component_ref_size): Guard against error_mark_node
18379 DECL_INITIAL as it happens with LTO.
18381 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18383 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add a
18384 comment explaining why we consider even zero-sized fields.
18385 (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
18386 (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
18387 (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
18388 avoid_cxx17_empty_base with a pointer to a bitmask. Ignore fields
18389 whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
18390 something actually is a HFA or HVA. Record whether we see a
18391 [[no_unique_address]] field that previous GCCs would not have
18392 ignored in this way.
18393 (aarch64_vfp_is_call_or_return_candidate): Add a parameter to say
18394 whether diagnostics should be suppressed. Update the calls to
18395 aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
18396 [[no_unique_address]] case.
18397 (aarch64_return_in_msb): Update call accordingly, never silencing
18399 (aarch64_function_value): Likewise.
18400 (aarch64_return_in_memory_1): Likewise.
18401 (aarch64_init_cumulative_args): Likewise.
18402 (aarch64_gimplify_va_arg_expr): Likewise.
18403 (aarch64_pass_by_reference_1): Take a CUMULATIVE_ARGS pointer and
18404 use it to decide whether arch64_vfp_is_call_or_return_candidate
18406 (aarch64_pass_by_reference): Update calls accordingly.
18407 (aarch64_vfp_is_call_candidate): Use the CUMULATIVE_ARGS argument
18408 to decide whether arch64_vfp_is_call_or_return_candidate should be
18411 2020-04-29 Haijian Zhang <z.zhanghaijian@huawei.com>
18414 * config/aarch64/aarch64-builtins.c
18415 (aarch64_atomic_assign_expand_fenv): Use TARGET_EXPR instead of
18416 MODIFY_EXPR for first assignment to fenv_cr, fenv_sr and
18419 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
18421 * configure.ac <$enable_offload_targets>: Do parsing as done
18423 * configure: Regenerate.
18425 * configure.ac <$enable_offload_targets>: 'amdgcn' is 'gcn'.
18426 * configure: Regenerate.
18429 * rtlanal.c (set_noop_p): Handle non-constant selectors.
18432 * common/config/gcn/gcn-common.c (gcn_except_unwind_info): New
18434 (TARGET_EXCEPT_UNWIND_INFO): Define.
18436 2020-04-29 Jakub Jelinek <jakub@redhat.com>
18439 * config/gcn/gcn.md (*mov<mode>_insn): Use
18440 'reg_overlap_mentioned_p' to check for overlap.
18443 * config/ia64/ia64.c (hfa_element_mode): Use DECL_FIELD_ABI_IGNORED
18444 instead of cxx17_empty_base_field_p.
18447 * tree-core.h (tree_decl_common): Note decl_flag_0 used for
18448 DECL_FIELD_ABI_IGNORED.
18449 * tree.h (DECL_FIELD_ABI_IGNORED): Define.
18450 * calls.h (cxx17_empty_base_field_p): Change into a temporary
18451 macro, check DECL_FIELD_ABI_IGNORED flag with no "no_unique_address"
18453 * calls.c (cxx17_empty_base_field_p): Remove.
18454 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Handle
18455 DECL_FIELD_ABI_IGNORED.
18456 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
18457 * lto-streamer-out.c (hash_tree): Likewise.
18458 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Rename
18459 cxx17_empty_base_seen to empty_base_seen, change type to int *,
18460 adjust recursive calls, use DECL_FIELD_ABI_IGNORED instead of
18461 cxx17_empty_base_field_p, if "no_unique_address" attribute is
18462 present, propagate that to the caller too.
18463 (rs6000_discover_homogeneous_aggregate): Adjust
18464 rs6000_aggregate_candidate caller, emit different diagnostics
18465 when c++17 empty base fields are present and when empty
18466 [[no_unique_address]] fields are present.
18467 * config/rs6000/rs6000.c (rs6000_special_round_type_align,
18468 darwin_rs6000_special_round_type_align): Skip DECL_FIELD_ABI_IGNORED
18471 2020-04-29 Richard Biener <rguenther@suse.de>
18473 * tree-ssa-loop-im.c (ref_always_accessed::operator ()):
18474 Just check whether the stmt stores.
18476 2020-04-28 Alexandre Oliva <oliva@adacore.com>
18479 * config/rs6000/rs6000.md (rs6000_mffsl): Copy result to
18480 output operand in emulation. Don't overwrite pseudos.
18482 2020-04-28 Jeff Law <law@redhat.com>
18484 * config/h8300/h8300.md (H8/SX mult patterns): All H8/SX specific
18485 multiply patterns are 4 bytes long.
18487 2020-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18489 * config/arm/arm-cpus.in (cortex-m55): Remove +nofp option.
18490 * doc/invoke.texi (Arm Options): Remove -mcpu=cortex-m55 from +nofp option.
18492 2020-04-28 Matthew Malcomson <matthew.malcomson@arm.com>
18493 Jakub Jelinek <jakub@redhat.com>
18496 * config/arm/arm.c (aapcs_vfp_sub_candidate): Account for C++17 empty
18497 base class artificial fields.
18498 (aapcs_vfp_is_call_or_return_candidate): Warn when PCS ABI
18499 decision is different after this fix.
18501 2020-04-28 David Malcolm <dmalcolm@redhat.com>
18507 * doc/invoke.texi (Static Analyzer Options): Remove
18508 -Wanalyzer-use-of-uninitialized-value.
18509 (-Wno-analyzer-use-of-uninitialized-value): Remove item.
18511 2020-04-28 Jakub Jelinek <jakub@redhat.com>
18513 PR tree-optimization/94809
18514 * tree.c (build_call_expr_internal_loc_array): Call
18515 process_call_operands.
18517 2020-04-27 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
18519 * config/aarch64/aarch64-cores.def (thunderx3t110): Add the chip name.
18520 * config/aarch64/aarch64-tune.md: Regenerate.
18521 * config/aarch64/aarch64.c (thunderx3t110_addrcost_table): Define.
18522 (thunderx3t110_regmove_cost): Likewise.
18523 (thunderx3t110_vector_cost): Likewise.
18524 (thunderx3t110_prefetch_tune): Likewise.
18525 (thunderx3t110_tunings): Likewise.
18526 * config/aarch64/aarch64-cost-tables.h (thunderx3t110_extra_costs):
18528 * config/aarch64/thunderx3t110.md: New file.
18529 * config/aarch64/aarch64.md: Include thunderx3t110.md.
18530 * doc/invoke.texi (AArch64 options): Add thunderx3t110.
18532 2020-04-28 Jakub Jelinek <jakub@redhat.com>
18535 * config/s390/s390.c (s390_function_arg_vector,
18536 s390_function_arg_float): Emit -Wpsabi diagnostics if the ABI changed.
18538 2020-04-28 Richard Sandiford <richard.sandiford@arm.com>
18540 PR tree-optimization/94727
18541 * tree-vect-stmts.c (vect_is_simple_cond): If both comparison
18542 operands are invariant booleans, use the mask type associated with the
18543 STMT_VINFO_VECTYPE. Use !slp_node instead of !vectype to exclude SLP.
18544 (vectorizable_condition): Pass vectype unconditionally to
18545 vect_is_simple_cond.
18547 2020-04-27 Jakub Jelinek <jakub@redhat.com>
18550 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Use
18551 TARGET_EXPR instead of MODIFY_EXPR for first assignment to
18552 sw_var, exceptions_var, mxcsr_orig_var and mxcsr_mod_var.
18554 2020-04-27 David Malcolm <dmalcolm@redhat.com>
18557 * configure.ac (DOCUMENTATION_ROOT_URL): Drop trailing "gcc/" from
18558 default value, so that it can by supplied by get_option_html_page.
18559 * configure: Regenerate.
18560 * opts.c: Include "selftest.h".
18561 (get_option_html_page): New function.
18562 (get_option_url): Use it. Reformat to place comments next to the
18563 expressions they refer to.
18564 (selftest::test_get_option_html_page): New.
18565 (selftest::opts_c_tests): New.
18566 * selftest-run-tests.c (selftest::run_tests): Call
18567 selftest::opts_c_tests.
18568 * selftest.h (selftest::opts_c_tests): New decl.
18570 2020-04-27 Richard Sandiford <richard.sandiford@arm.com>
18572 * config/arm/arm-builtins.c (arm_expand_builtin_args): Only apply
18573 UINTVAL to CONST_INTs.
18575 2020-04-27 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18577 * config/arm/constraints.md (e): Remove constraint.
18578 (Te): Define constraint.
18579 * config/arm/mve.md (vaddvq_<supf><mode>): Modify constraint in
18580 operand 0 from "e" to "Te".
18581 (vaddvaq_<supf><mode>): Likewise.
18582 (vaddvq_p_<supf><mode>): Likewise.
18583 (vmladavq_<supf><mode>): Likewise.
18584 (vmladavxq_s<mode>): Likewise.
18585 (vmlsdavq_s<mode>): Likewise.
18586 (vmlsdavxq_s<mode>): Likewise.
18587 (vaddvaq_p_<supf><mode>): Likewise.
18588 (vmladavaq_<supf><mode>): Likewise.
18589 (vmladavq_p_<supf><mode>): Likewise.
18590 (vmladavxq_p_s<mode>): Likewise.
18591 (vmlsdavq_p_s<mode>): Likewise.
18592 (vmlsdavxq_p_s<mode>): Likewise.
18593 (vmlsdavaxq_s<mode>): Likewise.
18594 (vmlsdavaq_s<mode>): Likewise.
18595 (vmladavaxq_s<mode>): Likewise.
18596 (vmladavaq_p_<supf><mode>): Likewise.
18597 (vmladavaxq_p_s<mode>): Likewise.
18598 (vmlsdavaq_p_s<mode>): Likewise.
18599 (vmlsdavaxq_p_s<mode>): Likewise.
18601 2020-04-27 Andre Vieira <andre.simoesdiasvieira@arm.com>
18603 * config/arm/arm.c (output_move_neon): Only get the first operand if
18606 2020-04-27 Felix Yang <felix.yang@huawei.com>
18608 PR tree-optimization/94784
18609 * tree-ssa-forwprop.c (simplify_vector_constructor): Flip the
18610 assert around so that it checks that the two vectors have equal
18611 TYPE_VECTOR_SUBPARTS and that converting the corresponding element
18612 types is a useless_type_conversion_p.
18614 2020-04-27 Szabolcs Nagy <szabolcs.nagy@arm.com>
18617 * dwarf2cfi.c (struct GTY): Add ra_mangled.
18618 (cfi_row_equal_p): Check ra_mangled.
18619 (dwarf2out_frame_debug_cfa_window_save): Remove the argument,
18620 this only handles the sparc logic now.
18621 (dwarf2out_frame_debug_cfa_toggle_ra_mangle): New function for
18622 the aarch64 specific logic.
18623 (dwarf2out_frame_debug): Update to use the new subroutines.
18624 (change_cfi_row): Check ra_mangled.
18626 2020-04-27 Jakub Jelinek <jakub@redhat.com>
18629 * config/s390/s390.c (s390_function_arg_vector,
18630 s390_function_arg_float): Ignore cxx17_empty_base_field_p fields.
18632 2020-04-27 Jiufu Guo <guojiufu@cn.ibm.com>
18634 * common/config/rs6000/rs6000-common.c
18635 (rs6000_option_optimization_table) [OPT_LEVELS_ALL]: Remove turn off
18637 * config/rs6000/rs6000.c (rs6000_option_override_internal): Avoid to
18640 2020-04-27 Martin Liska <mliska@suse.cz>
18643 * cgraph.h (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
18644 Do not remove ifunc_resolvers in remove unreachable nodes in LTO.
18646 2020-04-27 Xiong Hu Luo <luoxhu@linux.ibm.com>
18649 * config/rs6000/rs6000-logue.c (frame_pointer_needed_indeed):
18651 (rs6000_emit_prologue_components):
18652 Check with frame_pointer_needed_indeed.
18653 (rs6000_emit_epilogue_components): Likewise.
18654 (rs6000_emit_prologue): Likewise.
18655 (rs6000_emit_epilogue): Set frame_pointer_needed_indeed.
18657 2020-04-25 David Edelsohn <dje.gcc@gmail.com>
18659 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Don't push a
18660 stack frame when debugging and flag_compare_debug is enabled.
18662 2020-04-25 Michael Meissner <meissner@linux.ibm.com>
18664 * config/rs6000/linux64.h (PCREL_SUPPORTED_BY_OS): Define to
18665 enable PC-relative addressing for -mcpu=future.
18666 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Move
18667 after OTHER_FUTURE_MASKS. Use OTHER_FUTURE_MASKS.
18668 * config/rs6000/rs6000.c (PCREL_SUPPORTED_BY_OS): If not defined,
18669 suppress PC-relative addressing.
18670 (rs6000_option_override_internal): Split up error messages
18671 checking for -mprefixed and -mpcrel. Enable -mpcrel if the target
18672 system supports it.
18674 2020-04-25 Jakub Jelinek <jakub@redhat.com>
18675 Richard Biener <rguenther@suse.de>
18677 PR tree-optimization/94734
18678 PR tree-optimization/89430
18679 * tree-ssa-phiopt.c: Include tree-eh.h.
18680 (cond_store_replacement): Return false if an automatic variable
18681 access could trap. If -fstore-data-races, don't return false
18682 just because an automatic variable is addressable.
18684 2020-04-24 Andrew Stubbs <ams@codesourcery.com>
18686 * config/gcn/gcn-valu.md (add<mode>_zext_dup2_exec): Fix merge
18688 (add<mode>_sext_dup2_exec): Likewise.
18690 2020-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18693 * config/rs6000/vector.md (vec_shr_<mode> for VEC_L): Correct little
18694 endian byteshift_val calculation.
18696 2020-04-24 Andrew Stubbs <ams@codesourcery.com>
18698 * config/gcn/gcn.md (*mov<mode>_insn): Only split post-reload.
18700 2020-04-24 Richard Sandiford <richard.sandiford@arm.com>
18702 * config/aarch64/arm_sve.h: Add a comment.
18704 2020-04-24 Haijian Zhang <z.zhanghaijian@huawei.com>
18706 PR rtl-optimization/94708
18707 * combine.c (simplify_if_then_else): Add check for
18708 !HONOR_NANS (mode) && !HONOR_SIGNED_ZEROS (mode).
18710 2020-04-23 Martin Sebor <msebor@redhat.com>
18713 * common.opt (-Wno-frame-larger-than): New option.
18714 (-Wno-larger-than, -Wno-stack-usage): Same.
18716 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
18718 * config/gcn/gcn-valu.md (mov<mode>_exec): Swap the numbers on operands
18720 (mov<mode>_exec): Likewise.
18721 (trunc<vndi><mode>2_exec): Swap parameters to gen_mov<mode>_exec.
18722 (<convop><mode><vndi>2_exec): Likewise.
18724 2019-04-23 Eric Botcazou <ebotcazou@adacore.com>
18726 PR tree-optimization/94717
18727 * gimple-ssa-store-merging.c (try_coalesce_bswap): Return false if one
18728 of the stores doesn't have the same landing pad number as the first.
18729 (coalesce_immediate_stores): Do not try to coalesce the store using
18730 bswap if it doesn't have the same landing pad number as the first.
18732 2020-04-23 Bill Schmidt <wschmidt@linux.ibm.com>
18734 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18735 Replace outdated link to ELFv2 ABI.
18737 2020-04-23 Jakub Jelinek <jakub@redhat.com>
18740 * optabs.c (expand_vec_perm_const): For shift_amt const0_rtx
18743 PR middle-end/94724
18744 * tree.c (get_narrower): Instead of creating COMPOUND_EXPRs
18745 temporarily with non-final second operand and updating it later,
18746 push COMPOUND_EXPRs into a vector and process it in reverse,
18747 creating COMPOUND_EXPRs with the final operands.
18749 2020-04-23 Szabolcs Nagy <szabolcs.nagy@arm.com>
18752 * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Swap
18753 bti c and bti j handling.
18755 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
18756 Thomas Schwinge <thomas@codesourcery.com>
18758 PR middle-end/93488
18760 * omp-expand.c (expand_omp_target): Use force_gimple_operand_gsi on
18761 t_async and the wait arguments.
18763 2020-04-23 Richard Sandiford <richard.sandiford@arm.com>
18765 PR tree-optimization/94727
18766 * tree-vect-stmts.c (vectorizable_comparison): Use mask_type when
18767 comparing invariant scalar booleans.
18769 2020-04-23 Matthew Malcomson <matthew.malcomson@arm.com>
18770 Jakub Jelinek <jakub@redhat.com>
18773 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Account for C++17
18774 empty base class artificial fields.
18775 (aarch64_vfp_is_call_or_return_candidate): Warn when ABI PCS decision is
18776 different after this fix.
18778 2020-04-23 Jakub Jelinek <jakub@redhat.com>
18781 * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
18782 Use TYPE_UID (TYPE_MAIN_VARIANT (type)) instead of type to check
18783 if the same type has been diagnosed most recently already.
18785 2020-04-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18787 * config/arm/arm_mve.h (__arm_vbicq_n_u16): Modify function parameter's
18789 (__arm_vbicq_n_s16): Likewise.
18790 (__arm_vbicq_n_u32): Likewise.
18791 (__arm_vbicq_n_s32): Likewise.
18792 (__arm_vbicq): Likewise.
18793 (__arm_vbicq_n_s16): Modify MVE polymorphic variant argument's datatype.
18794 (__arm_vbicq_n_s32): Likewise.
18795 (__arm_vbicq_n_u16): Likewise.
18796 (__arm_vbicq_n_u32): Likewise.
18797 (__arm_vdupq_m_n_s8): Likewise.
18798 (__arm_vdupq_m_n_s16): Likewise.
18799 (__arm_vdupq_m_n_s32): Likewise.
18800 (__arm_vdupq_m_n_u8): Likewise.
18801 (__arm_vdupq_m_n_u16): Likewise.
18802 (__arm_vdupq_m_n_u32): Likewise.
18803 (__arm_vdupq_m_n_f16): Likewise.
18804 (__arm_vdupq_m_n_f32): Likewise.
18805 (__arm_vldrhq_gather_offset_s16): Likewise.
18806 (__arm_vldrhq_gather_offset_s32): Likewise.
18807 (__arm_vldrhq_gather_offset_u16): Likewise.
18808 (__arm_vldrhq_gather_offset_u32): Likewise.
18809 (__arm_vldrhq_gather_offset_f16): Likewise.
18810 (__arm_vldrhq_gather_offset_z_s16): Likewise.
18811 (__arm_vldrhq_gather_offset_z_s32): Likewise.
18812 (__arm_vldrhq_gather_offset_z_u16): Likewise.
18813 (__arm_vldrhq_gather_offset_z_u32): Likewise.
18814 (__arm_vldrhq_gather_offset_z_f16): Likewise.
18815 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
18816 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
18817 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
18818 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
18819 (__arm_vldrhq_gather_shifted_offset_f16): Likewise.
18820 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
18821 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
18822 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
18823 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
18824 (__arm_vldrhq_gather_shifted_offset_z_f16): Likewise.
18825 (__arm_vldrwq_gather_offset_s32): Likewise.
18826 (__arm_vldrwq_gather_offset_u32): Likewise.
18827 (__arm_vldrwq_gather_offset_f32): Likewise.
18828 (__arm_vldrwq_gather_offset_z_s32): Likewise.
18829 (__arm_vldrwq_gather_offset_z_u32): Likewise.
18830 (__arm_vldrwq_gather_offset_z_f32): Likewise.
18831 (__arm_vldrwq_gather_shifted_offset_s32): Likewise.
18832 (__arm_vldrwq_gather_shifted_offset_u32): Likewise.
18833 (__arm_vldrwq_gather_shifted_offset_f32): Likewise.
18834 (__arm_vldrwq_gather_shifted_offset_z_s32): Likewise.
18835 (__arm_vldrwq_gather_shifted_offset_z_u32): Likewise.
18836 (__arm_vldrwq_gather_shifted_offset_z_f32): Likewise.
18837 (__arm_vdwdupq_x_n_u8): Likewise.
18838 (__arm_vdwdupq_x_n_u16): Likewise.
18839 (__arm_vdwdupq_x_n_u32): Likewise.
18840 (__arm_viwdupq_x_n_u8): Likewise.
18841 (__arm_viwdupq_x_n_u16): Likewise.
18842 (__arm_viwdupq_x_n_u32): Likewise.
18843 (__arm_vidupq_x_n_u8): Likewise.
18844 (__arm_vddupq_x_n_u8): Likewise.
18845 (__arm_vidupq_x_n_u16): Likewise.
18846 (__arm_vddupq_x_n_u16): Likewise.
18847 (__arm_vidupq_x_n_u32): Likewise.
18848 (__arm_vddupq_x_n_u32): Likewise.
18849 (__arm_vldrdq_gather_offset_s64): Likewise.
18850 (__arm_vldrdq_gather_offset_u64): Likewise.
18851 (__arm_vldrdq_gather_offset_z_s64): Likewise.
18852 (__arm_vldrdq_gather_offset_z_u64): Likewise.
18853 (__arm_vldrdq_gather_shifted_offset_s64): Likewise.
18854 (__arm_vldrdq_gather_shifted_offset_u64): Likewise.
18855 (__arm_vldrdq_gather_shifted_offset_z_s64): Likewise.
18856 (__arm_vldrdq_gather_shifted_offset_z_u64): Likewise.
18857 (__arm_vidupq_m_n_u8): Likewise.
18858 (__arm_vidupq_m_n_u16): Likewise.
18859 (__arm_vidupq_m_n_u32): Likewise.
18860 (__arm_vddupq_m_n_u8): Likewise.
18861 (__arm_vddupq_m_n_u16): Likewise.
18862 (__arm_vddupq_m_n_u32): Likewise.
18863 (__arm_vidupq_n_u16): Likewise.
18864 (__arm_vidupq_n_u32): Likewise.
18865 (__arm_vidupq_n_u8): Likewise.
18866 (__arm_vddupq_n_u16): Likewise.
18867 (__arm_vddupq_n_u32): Likewise.
18868 (__arm_vddupq_n_u8): Likewise.
18870 2020-04-23 Iain Buclaw <ibuclaw@gdcproject.org>
18872 * doc/install.texi (D-Specific Options): Document
18873 --enable-libphobos-checking and --with-libphobos-druntime-only.
18875 2020-04-23 Jakub Jelinek <jakub@redhat.com>
18878 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Add
18879 cxx17_empty_base_seen argument. Pass it to recursive calls.
18880 Ignore cxx17_empty_base_field_p fields after setting
18881 *cxx17_empty_base_seen to true.
18882 (rs6000_discover_homogeneous_aggregate): Adjust
18883 rs6000_aggregate_candidate caller. With -Wpsabi, diagnose homogeneous
18884 aggregates with C++17 empty base fields.
18887 * attribs.c (decl_attribute): Don't diagnose attribute exclusions
18888 if last_decl is error_mark_node or has such a TREE_TYPE.
18891 * attribs.c (decl_attribute): Don't diagnose attribute exclusions
18892 if last_decl is error_mark_node or has such a TREE_TYPE.
18894 2020-04-22 Felix Yang <felix.yang@huawei.com>
18897 * config/aarch64/aarch64.h (TARGET_SVE):
18898 Add && !TARGET_GENERAL_REGS_ONLY.
18899 (TARGET_SVE2): Add && TARGET_SVE.
18900 (TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3,
18901 TARGET_SVE2_SM4): Add && TARGET_SVE2.
18902 * config/aarch64/aarch64-sve-builtins.h
18903 (sve_switcher::m_old_general_regs_only): New member.
18904 * config/aarch64/aarch64-sve-builtins.cc (check_required_registers):
18906 (reported_missing_registers_p): New variable.
18907 (check_required_extensions): Call check_required_registers before
18908 return if all required extenstions are present.
18909 (sve_switcher::sve_switcher): Save TARGET_GENERAL_REGS_ONLY in
18910 m_old_general_regs_only and clear MASK_GENERAL_REGS_ONLY in
18911 global_options.x_target_flags.
18912 (sve_switcher::~sve_switcher): Set MASK_GENERAL_REGS_ONLY in
18913 global_options.x_target_flags if m_old_general_regs_only is true.
18915 2020-04-22 Zackery Spytz <zspytz@gmail.com>
18917 * doc/extend.exi: Add "free" to list of other builtin functions
18920 2020-04-20 Aaron Sawdey <acsawdey@linux.ibm.com>
18923 * config/rs6000/sync.md (load_quadpti): Add attr "prefixed"
18924 if TARGET_PREFIXED.
18925 (store_quadpti): Ditto.
18926 (atomic_load<mode>): Do not swap doublewords if TARGET_PREFIXED as
18927 plq will be used and doesn't need it.
18928 (atomic_store<mode>): Ditto, for pstq.
18930 2020-04-22 Erick Ochoa <erick.ochoa@theobroma-systems.com>
18932 * doc/invoke.texi: Update flags turned on by -O3.
18934 2020-04-22 Jakub Jelinek <jakub@redhat.com>
18937 * config/ia64/ia64.c (hfa_element_mode): Ignore
18938 cxx17_empty_base_field_p fields.
18941 * calls.h (cxx17_empty_base_field_p): Declare.
18942 * calls.c (cxx17_empty_base_field_p): Define.
18944 2020-04-22 Christophe Lyon <christophe.lyon@linaro.org>
18946 * doc/sourcebuild.texi (arm_softfp_ok, arm_hard_ok): Document.
18948 2020-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18949 Andre Vieira <andre.simoesdiasvieira@arm.com>
18950 Mihail Ionescu <mihail.ionescu@arm.com>
18952 * config/arm/arm.c (arm_file_start): Handle isa_bit_quirk_no_asmcpu.
18953 * config/arm/arm-cpus.in (quirk_no_asmcpu): Define.
18954 (ALL_QUIRKS): Add quirk_no_asmcpu.
18955 (cortex-m55): Define new cpu.
18956 * config/arm/arm-tables.opt: Regenerate.
18957 * config/arm/arm-tune.md: Likewise.
18958 * doc/invoke.texi (Arm Options): Document -mcpu=cortex-m55.
18960 2020-04-22 Richard Sandiford <richard.sandiford@arm.com>
18962 PR tree-optimization/94700
18963 * tree-ssa-forwprop.c (simplify_vector_constructor): When processing
18964 an identity constructor, use a VIEW_CONVERT_EXPR to handle mixtures
18965 of similarly-structured but distinct vector types.
18967 2020-04-21 Martin Sebor <msebor@redhat.com>
18969 PR middle-end/94647
18970 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Correct
18971 the computation of the lower bound of the source access size.
18972 (builtin_access::generic_overlap): Remove a hack for setting ranges
18973 of overlap offsets.
18975 2020-04-21 John David Anglin <danglin@gcc.gnu.org>
18977 * config/pa/som.h (ASM_WEAKEN_LABEL): Delete.
18978 (ASM_WEAKEN_DECL): New define.
18979 (HAVE_GAS_WEAKREF): Undefine.
18981 2020-04-21 Richard Sandiford <richard.sandiford@arm.com>
18983 PR tree-optimization/94683
18984 * tree-ssa-forwprop.c (simplify_vector_constructor): Use a
18985 VIEW_CONVERT_EXPR to handle mixtures of similarly-structured
18986 but distinct vector types.
18988 2020-04-21 Jakub Jelinek <jakub@redhat.com>
18991 * stor-layout.c (place_field, finalize_record_size): Don't emit
18992 -Wpadded warning on TYPE_ARTIFICIAL rli->t.
18993 * ubsan.c (ubsan_get_type_descriptor_type,
18994 ubsan_get_source_location_type, ubsan_create_data): Set
18996 * asan.c (asan_global_struct): Likewise.
18998 2020-04-21 Duan bo <duanbo3@huawei.com>
19001 * config/aarch64/aarch64.c: Add an error message for option conflict.
19002 * doc/invoke.texi (-mcmodel=large): Mention that -mcmodel=large is
19003 incompatible with -fpic, -fPIC and -mabi=ilp32.
19005 2020-04-21 Frederik Harwath <frederik@codesourcery.com>
19008 * omp-low.c (new_omp_context): Remove assignments to
19009 ctx->outer_reduction_clauses and ctx->local_reduction_clauses.
19011 2020-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
19013 * config/s390/vector.md ("popcountv8hi2_vx", "popcountv4si2_vx")
19014 ("popcountv2di2_vx"): Use simplify_gen_subreg.
19016 2020-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
19019 * config/s390/s390-builtin-types.def: Add 3 new function modes.
19020 * config/s390/s390-builtins.def: Add mode dependent low-level
19021 builtin and map the overloaded builtins to these.
19022 * config/s390/vx-builtins.md ("vec_selV_HW"): Rename to ...
19023 ("vsel<V_HW"): ... this and rewrite the pattern with bitops.
19025 2020-04-20 Richard Sandiford <richard.sandiford@arm.com>
19027 * tree-vect-loop.c (vect_better_loop_vinfo_p): If old_loop_vinfo
19028 has a variable VF, prefer new_loop_vinfo if it is cheaper for the
19029 estimated VF and is no worse at double the estimated VF.
19031 2020-04-20 Richard Sandiford <richard.sandiford@arm.com>
19034 * config/aarch64/aarch64.c (aarch64_sve_expand_vector_init): Fix
19035 order of arguments to rtx_vector_builder.
19036 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
19037 When extending the trailing constants to a full vector, replace any
19038 variables with zeros.
19040 2020-04-20 Jan Hubicka <hubicka@ucw.cz>
19043 * tree-inline.c (optimize_inline_calls): Recompute calls_comdat_local
19046 2020-04-20 Martin Liska <mliska@suse.cz>
19048 * symtab.c (symtab_node::dump_references): Add space after
19050 (symtab_node::dump_referring): Likewise.
19052 2020-04-18 Jeff Law <law@redhat.com>
19055 * regrename.c (check_new_reg_p): Ignore DEBUG_INSNs when walking
19058 2020-04-18 Iain Buclaw <ibuclaw@gdcproject.org>
19060 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
19061 attributes): Document d_runtime_has_std_library.
19063 2020-04-17 Jeff Law <law@redhat.com>
19065 PR rtl-optimization/90275
19066 * cse.c (cse_insn): Avoid recording nop sets in multi-set parallels
19067 when the destination has a REG_UNUSED note.
19069 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
19071 PR middle-end/94635
19072 * gimplify.c (gimplify_scan_omp_clauses): Turn MAP_TO_PSET to
19075 2020-04-17 Richard Sandiford <richard.sandiford@arm.com>
19077 * config/aarch64/aarch64.c (aarch64_advsimd_ldp_stp_p): New function.
19078 (aarch64_sve_adjust_stmt_cost): Add a vectype parameter. Double the
19079 cost of load and store insns if one loop iteration has enough scalar
19080 elements to use an Advanced SIMD LDP or STP.
19081 (aarch64_add_stmt_cost): Update call accordingly.
19083 2020-04-17 Jakub Jelinek <jakub@redhat.com>
19084 Jeff Law <law@redhat.com>
19087 * config/i386/i386.md (*testqi_ext_3): Use CCZmode rather than
19088 CCNOmode in ix86_match_ccmode if len is equal to <MODE>mode precision,
19089 or pos + len >= 32, or pos + len is equal to operands[2] precision
19090 and operands[2] is not a register operand. During splitting perform
19091 SImode AND if operands[0] doesn't have CCZmode and pos + len is
19092 equal to mode precision.
19094 2020-04-17 Richard Biener <rguenther@suse.de>
19097 * cgraphclones.c (cgraph_node::create_clone): Remove duplicate
19099 * dwarf2out.c (dw_val_equal_p): Fix pasto in
19100 dw_val_class_vms_delta comparison.
19101 * optabs.c (expand_binop_directly): Fix pasto in commutation
19103 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Fix pasto in
19106 2020-04-17 Jakub Jelinek <jakub@redhat.com>
19108 PR rtl-optimization/94618
19109 * cfgrtl.c (delete_insn_and_edges): Set purge not just when
19110 insn is the BB_END of its block, but also when it is only followed
19111 by DEBUG_INSNs in its block.
19113 PR tree-optimization/94621
19114 * tree-inline.c (remap_type_1): Don't dereference NULL TYPE_DOMAIN.
19115 Move id->adjust_array_error_bounds check first in the condition.
19117 2020-04-17 Martin Liska <mliska@suse.cz>
19118 Jonathan Yong <10walls@gmail.com>
19120 PR gcov-profile/94570
19121 * coverage.c (coverage_init): Use separator properly.
19123 2020-04-16 Peter Bergner <bergner@linux.ibm.com>
19125 PR rtl-optimization/93974
19126 * config/rs6000/rs6000.c (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
19127 (rs6000_cannot_substitute_mem_equiv_p): New function.
19129 2020-04-16 Martin Jambor <mjambor@suse.cz>
19132 * ipa-inline.h (ipa_saved_clone_sources): Declare.
19133 * ipa-inline-transform.c (ipa_saved_clone_sources): New variable.
19134 (save_inline_function_body): Link the new body holder with the
19136 * cgraph.c: Include ipa-inline.h.
19137 (cgraph_edge::redirect_call_stmt_to_callee): Try to find the decl from
19138 the statement in ipa_saved_clone_sources.
19139 * cgraphunit.c: Include ipa-inline.h.
19140 (expand_all_functions): Free ipa_saved_clone_sources.
19142 2020-04-16 Richard Sandiford <richard.sandiford@arm.com>
19145 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor): Take
19146 the VNx16BI lowpart of the recursively-generated constant.
19148 2020-04-16 Martin Liska <mliska@suse.cz>
19149 Jakub Jelinek <jakub@redhat.com>
19152 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
19153 DECL_IS_REPLACEABLE_OPERATOR during cloning.
19154 * tree-ssa-dce.c (valid_new_delete_pair_p): New function.
19155 (propagate_necessity): Check operator names.
19157 2020-04-16 Richard Sandiford <richard.sandiford@arm.com>
19159 PR rtl-optimization/94605
19160 * early-remat.c (early_remat::process_block): Handle insns that
19161 set multiple candidate registers.
19162 2020-04-16 Jan Hubicka <hubicka@ucw.cz>
19164 PR gcov-profile/93401
19165 * common.opt (profile-prefix-path): New option.
19166 * coverae.c: Include diagnostics.h.
19167 (coverage_init): Strip profile prefix path.
19168 * doc/invoke.texi (-fprofile-prefix-path): Document.
19170 2020-04-16 Richard Biener <rguenther@suse.de>
19172 PR middle-end/94614
19173 * expr.c (emit_move_multi_word): Do not generate code when
19174 the destination part is undefined_operand_subword_p.
19175 * lower-subreg.c (resolve_clobber): Look through a paradoxica
19178 2020-04-16 Martin Jambor <mjambor@suse.cz>
19180 PR tree-optimization/94598
19181 * tree-sra.c (verify_sra_access_forest): Fix verification of total
19182 scalarization accesses under access to one-element arrays.
19184 2020-04-16 Jakub Jelinek <jakub@redhat.com>
19187 * function.c (assign_parm_find_data_types): Add workaround for
19188 BROKEN_VALUE_INITIALIZATION compilers.
19190 2020-04-16 Richard Biener <rguenther@suse.de>
19192 * gdbhooks.py (TreePrinter): Print SSA_NAME_VERSION of SSA_NAME
19195 2020-04-15 Uroš Bizjak <ubizjak@gmail.com>
19198 * config/i386/i386-builtin.def (__builtin_ia32_movq128):
19199 Require OPTION_MASK_ISA_SSE2.
19201 2020-04-15 Gustavo Romero <gromero@linux.ibm.com>
19204 * dumpfile.c (selftest::temp_dump_context::temp_dump_context):
19205 Don't construct a dump_context temporary to call static method.
19207 2020-04-15 Andrea Corallo <andrea.corallo@arm.com>
19209 * config/aarch64/falkor-tag-collision-avoidance.c
19210 (valid_src_p): Check for aarch64_address_info type before
19211 accessing base field.
19213 2020-04-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
19215 * config/arm/mve.md (mve_vec_duplicate<mode>): New pattern.
19216 (V_sz_elem2): Remove unused mode attribute.
19218 2020-04-15 Matthew Malcomson <matthew.malcomson@arm.com>
19220 * config/arm/arm.md (arm_movdi): Disallow for MVE.
19222 2020-04-15 Richard Biener <rguenther@suse.de>
19224 PR middle-end/94539
19225 * tree-ssa-alias.c (same_type_for_tbaa): Defer to
19226 alias_sets_conflict_p for pointers.
19228 2020-04-14 Max Filippov <jcmvbkbc@gmail.com>
19231 * config/xtensa/xtensa.md (zero_extendhisi2, zero_extendqisi2)
19232 (extendhisi2_internal): Add %v1 before the load instructions.
19234 2020-04-14 Aaron Sawdey <acsawdey@linux.ibm.com>
19237 * config/rs6000/rs6000.c (address_to_insn_form): Do not attempt to
19238 use PC-relative addressing for TLS references.
19240 2020-04-14 Martin Jambor <mjambor@suse.cz>
19243 * ipa-sra.c: Include internal-fn.h.
19244 (enum isra_scan_context): Update comment.
19245 (scan_function): Treat calls to internal_functions like loads or stores.
19247 2020-04-14 Yang Yang <yangyang305@huawei.com>
19249 PR tree-optimization/94574
19250 * tree-ssa.c (non_rewritable_lvalue_p): Add size check when analyzing
19251 whether a vector-insert is rewritable using a BIT_INSERT_EXPR.
19253 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
19256 * config/i386/i386.c (ix86_get_ssemov): Remove mode size check.
19258 2020-04-13 Martin Sebor <msebor@redhat.com>
19260 * doc/extend.texi (-Wall): Mention -Wformat-overflow and
19261 -Wformat-truncation. Move -Wzero-length-bounds last.
19262 (-Wrestrict): Document positive form of option enabled by -Wall.
19264 2020-04-13 Zachary Spytz <zspytz@gmail.com>
19266 * doc/extend.texi: Add realloc to list of built-in functions
19267 are recognized by the compiler.
19269 2020-04-13 H.J. Lu <hongjiu.lu@intel.com>
19272 * config/i386/i386.c (ix86_expand_epilogue): Restore the frame
19273 pointer in word_mode for eh_return epilogues.
19275 2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19277 * config/msp430/msp430.c (msp430_print_operand): Don't add offsets to
19278 memory references in %B, %C and %D operand selectors when the inner
19279 operand is a post increment address.
19281 2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19283 * config/msp430/msp430.c (msp430_print_operand): Offset a %C memory
19284 reference by 4 bytes, and %D memory reference by 6 bytes.
19286 2020-04-11 Uroš Bizjak <ubizjak@gmail.com>
19289 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE2
19290 condition for V4SI, V8HI and V16QI modes.
19292 2020-04-11 Jakub Jelinek <jakub@redhat.com>
19296 * cselib.c (cselib_record_sp_cfa_base_equiv): Set PRESERVED_VALUE_P on
19299 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
19301 PR middle-end/89433
19302 PR middle-end/93465
19303 * omp-general.c (oacc_verify_routine_clauses): Diagnose if
19304 "#pragma omp declare target" has also been applied.
19306 2020-04-09 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19308 * config/msp430/msp430.c (msp430_expand_epilogue): Use emit_jump_insn
19309 when to emit the epilogue_helper insn.
19310 * config/msp430/msp430.md (epilogue_helper): Add a return insn to the
19313 2020-04-09 Jakub Jelinek <jakub@redhat.com>
19316 * cselib.h (cselib_record_sp_cfa_base_equiv,
19317 cselib_sp_derived_value_p): Declare.
19318 * cselib.c (cselib_record_sp_cfa_base_equiv,
19319 cselib_sp_derived_value_p): New functions.
19320 * var-tracking.c (add_stores): Don't record MO_VAL_SET for
19321 cselib_sp_derived_value_p values.
19322 (vt_initialize): Call cselib_record_sp_cfa_base_equiv at the
19323 start of extended basic blocks other than the first one
19324 for !frame_pointer_needed functions.
19326 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
19328 * doc/sourcebuild.texi (aarch64_sve_hw, aarch64_sve128_hw)
19329 (aarch64_sve256_hw, aarch64_sve512_hw, aarch64_sve1024_hw)
19330 (aarch64_sve2048_hw): Document.
19331 * config/aarch64/aarch64-protos.h
19332 (aarch64_sve::handle_arm_sve_vector_bits_attribute): Declare.
19333 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
19334 __ARM_FEATURE_SVE_VECTOR_OPERATIONS when SVE is enabled.
19335 * config/aarch64/aarch64-sve-builtins.cc (matches_type_p): New
19337 (find_type_suffix_for_scalar_type): Use it instead of comparing
19338 TYPE_MAIN_VARIANTs.
19339 (function_resolver::infer_vector_or_tuple_type): Likewise.
19340 (function_resolver::require_vector_type): Likewise.
19341 (handle_arm_sve_vector_bits_attribute): New function.
19342 * config/aarch64/aarch64.c (pure_scalable_type_info): New class.
19343 (aarch64_attribute_table): Add arm_sve_vector_bits.
19344 (aarch64_return_in_memory_1):
19345 (pure_scalable_type_info::piece::get_rtx): New function.
19346 (pure_scalable_type_info::num_zr): Likewise.
19347 (pure_scalable_type_info::num_pr): Likewise.
19348 (pure_scalable_type_info::get_rtx): Likewise.
19349 (pure_scalable_type_info::analyze): Likewise.
19350 (pure_scalable_type_info::analyze_registers): Likewise.
19351 (pure_scalable_type_info::analyze_array): Likewise.
19352 (pure_scalable_type_info::analyze_record): Likewise.
19353 (pure_scalable_type_info::add_piece): Likewise.
19354 (aarch64_some_values_include_pst_objects_p): Likewise.
19355 (aarch64_returns_value_in_sve_regs_p): Use pure_scalable_type_info
19356 to analyze whether the type is returned in SVE registers.
19357 (aarch64_takes_arguments_in_sve_regs_p): Likwise whether the type
19358 is passed in SVE registers.
19359 (aarch64_pass_by_reference_1): New function, extracted from...
19360 (aarch64_pass_by_reference): ...here. Use pure_scalable_type_info
19361 to analyze whether the type is a pure scalable type and, if so,
19362 whether it should be passed by reference.
19363 (aarch64_return_in_msb): Return false for pure scalable types.
19364 (aarch64_function_value_1): Fold back into...
19365 (aarch64_function_value): ...this function. Use
19366 pure_scalable_type_info to analyze whether the type is a pure
19367 scalable type and, if so, which registers it should use. Handle
19368 types that include pure scalable types but are not themselves
19369 pure scalable types.
19370 (aarch64_return_in_memory_1): New function, split out from...
19371 (aarch64_return_in_memory): ...here. Use pure_scalable_type_info
19372 to analyze whether the type is a pure scalable type and, if so,
19373 whether it should be returned by reference.
19374 (aarch64_layout_arg): Remove orig_mode argument. Use
19375 pure_scalable_type_info to analyze whether the type is a pure
19376 scalable type and, if so, which registers it should use. Handle
19377 types that include pure scalable types but are not themselves
19378 pure scalable types.
19379 (aarch64_function_arg): Update call accordingly.
19380 (aarch64_function_arg_advance): Likewise.
19381 (aarch64_pad_reg_upward): On big-endian targets, return false for
19382 pure scalable types that are smaller than 16 bytes.
19383 (aarch64_member_type_forces_blk): New function.
19384 (aapcs_vfp_sub_candidate): Exit early for built-in SVE types.
19385 (aarch64_short_vector_p): Return false for VECTOR_TYPEs that
19386 correspond to built-in SVE types. Do not rely on a vector mode
19387 if the type includes an pure scalable type. When returning true,
19388 assert that the mode is not an SVE mode.
19389 (aarch64_vfp_is_call_or_return_candidate): Do not check for SVE
19390 built-in types here. When returning true, assert that the type
19391 does not have an SVE mode.
19392 (aarch64_can_change_mode_class): Don't allow anything to change
19393 between a predicate mode and a non-predicate mode. Also don't
19394 allow changes between SVE vector modes and other modes that
19395 might be bigger than 128 bits.
19396 (aarch64_invalid_binary_op): Reject binary operations that mix
19397 SVE and GNU vector types.
19398 (TARGET_MEMBER_TYPE_FORCES_BLK): Define.
19400 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
19402 * config/aarch64/aarch64.c (aarch64_attribute_table): Add
19403 "SVE sizeless type".
19404 * config/aarch64/aarch64-sve-builtins.cc (make_type_sizeless)
19405 (sizeless_type_p): New functions.
19406 (register_builtin_types): Apply make_type_sizeless to the type.
19407 (register_tuple_type): Likewise.
19408 (verify_type_context): Use sizeless_type_p instead of builin_type_p.
19410 2020-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
19412 * config/arm/arm_cde.h: Remove `extern "C"` when compiling for
19415 2020-04-09 Martin Jambor <mjambor@suse.cz>
19416 Richard Biener <rguenther@suse.de>
19418 PR tree-optimization/94482
19419 * tree-sra.c (create_access_replacement): Dump new replacement with
19421 (sra_modify_expr): Fix handling of cases when the original EXPR writes
19422 to only part of the replacement.
19423 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly verify
19424 the first operand of combinations into REAL/IMAGPART_EXPR and
19427 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
19429 * doc/sourcebuild.texi (check-function-bodies): Treat the third
19430 parameter as a list of option regexps and require each regexp
19433 2020-04-09 Andrea Corallo <andrea.corallo@arm.com>
19436 * config/aarch64/falkor-tag-collision-avoidance.c
19437 (valid_src_p): Fix missing rtx type check.
19439 2020-04-09 Bin Cheng <bin.cheng@linux.alibaba.com>
19440 Richard Biener <rguenther@suse.de>
19442 PR tree-optimization/93674
19443 * tree-ssa-loop-ivopts.c (langhooks.h): New include.
19444 (add_iv_candidate_for_use): For iv_use of non integer or pointer type,
19445 or non-mode precision type, add candidate in unsigned type with the
19448 2020-04-08 Clement Chigot <clement.chigot@atos.net>
19450 * config/rs6000/aix61.h (LIB_SPEC): Add -lc128 with -mlong-double-128.
19451 * config/rs6000/aix71.h (LIB_SPEC): Likewise.
19452 * config/rs6000/aix72.h (LIB_SPEC): Likewise.
19454 2020-04-08 Jakub Jelinek <jakub@redhat.com>
19456 PR middle-end/94526
19457 * cselib.c (autoinc_split): Handle e->val_rtx being SP_DERIVED_VALUE_P
19459 * reload1.c (eliminate_regs_1): Avoid creating
19460 (plus (reg) (const_int 0)) in DEBUG_INSNs.
19462 PR tree-optimization/94524
19463 * tree-vect-generic.c (expand_vector_divmod): If any elt of op1 is
19464 negative for signed TRUNC_MOD_EXPR, multiply with absolute value of
19465 op1 rather than op1 itself at the end. Punt for signed modulo by
19466 most negative constant.
19467 * tree-vect-patterns.c (vect_recog_divmod_pattern): Punt for signed
19468 modulo by most negative constant.
19470 2020-04-08 Richard Biener <rguenther@suse.de>
19472 PR rtl-optimization/93946
19473 * cse.c (cse_insn): Record the tabled expression in
19474 src_related. Verify a redundant store removal is valid.
19476 2020-04-08 H.J. Lu <hongjiu.lu@intel.com>
19479 * config/i386/i386-features.c (rest_of_insert_endbranch): Insert
19480 ENDBR at function entry if function will be called indirectly.
19482 2020-04-08 Jakub Jelinek <jakub@redhat.com>
19485 * config/i386/i386.c (ix86_get_mask_mode): Only use int mask for elem_size
19488 2020-04-08 Martin Liska <mliska@suse.cz>
19491 * gimple.c (gimple_call_operator_delete_p): Rename to...
19492 (gimple_call_replaceable_operator_delete_p): ... this.
19493 Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
19494 * gimple.h (gimple_call_operator_delete_p): Rename to ...
19495 (gimple_call_replaceable_operator_delete_p): ... this.
19496 * tree-core.h (tree_function_decl): Add replaceable_operator
19498 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1):
19499 Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
19500 (propagate_necessity): Use gimple_call_replaceable_operator_delete_p.
19501 (eliminate_unnecessary_stmts): Likewise.
19502 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19503 Pack DECL_IS_REPLACEABLE_OPERATOR.
19504 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19505 Unpack the field here.
19506 * tree.h (DECL_IS_REPLACEABLE_OPERATOR): New.
19507 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): New.
19508 (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): New.
19509 * cgraph.c (cgraph_node::dump): Dump if an operator is replaceable.
19510 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Compare
19511 replaceable operator flags.
19513 2020-04-08 Dennis Zhang <dennis.zhang@arm.com>
19514 Matthew Malcomson <matthew.malcomson@arm.com>
19516 * config/arm/arm-builtins.c (CX_IMM_QUALIFIERS): New macro.
19517 (CX_UNARY_QUALIFIERS, CX_BINARY_QUALIFIERS): Likewise.
19518 (CX_TERNARY_QUALIFIERS): Likewise.
19519 (ARM_BUILTIN_CDE_PATTERN_START): Likewise.
19520 (ARM_BUILTIN_CDE_PATTERN_END): Likewise.
19521 (arm_init_acle_builtins): Initialize CDE builtins.
19522 (arm_expand_acle_builtin): Check CDE constant operands.
19523 * config/arm/arm.h (ARM_CDE_CONST_COPROC): New macro to set the range
19524 of CDE constant operand.
19525 * config/arm/arm.c (arm_hard_regno_mode_ok): Support DImode for
19527 (ARM_VCDE_CONST_1, ARM_VCDE_CONST_2, ARM_VCDE_CONST_3): Likewise.
19528 * config/arm/arm_cde.h (__arm_vcx1_u32): New macro of ACLE interface.
19529 (__arm_vcx1a_u32, __arm_vcx2_u32, __arm_vcx2a_u32): Likewise.
19530 (__arm_vcx3_u32, __arm_vcx3a_u32, __arm_vcx1d_u64): Likewise.
19531 (__arm_vcx1da_u64, __arm_vcx2d_u64, __arm_vcx2da_u64): Likewise.
19532 (__arm_vcx3d_u64, __arm_vcx3da_u64): Likewise.
19533 * config/arm/arm_cde_builtins.def: New file.
19534 * config/arm/iterators.md (V_reg): New attribute of SI.
19535 * config/arm/predicates.md (const_int_coproc_operand): New.
19536 (const_int_vcde1_operand, const_int_vcde2_operand): New.
19537 (const_int_vcde3_operand): New.
19538 * config/arm/unspecs.md (UNSPEC_VCDE, UNSPEC_VCDEA): New.
19539 * config/arm/vfp.md (arm_vcx1<mode>): New entry.
19540 (arm_vcx1a<mode>, arm_vcx2<mode>, arm_vcx2a<mode>): Likewise.
19541 (arm_vcx3<mode>, arm_vcx3a<mode>): Likewise.
19543 2020-04-08 Dennis Zhang <dennis.zhang@arm.com>
19545 * config.gcc: Add arm_cde.h.
19546 * config/arm/arm-c.c (arm_cpu_builtins): Define or undefine
19547 __ARM_FEATURE_CDE and __ARM_FEATURE_CDE_COPROC.
19548 * config/arm/arm-cpus.in (cdecp0, cdecp1, ..., cdecp7): New options.
19549 * config/arm/arm.c (arm_option_reconfigure_globals): Configure
19550 arm_arch_cde and arm_arch_cde_coproc to store the feature bits.
19551 * config/arm/arm.h (TARGET_CDE): New macro.
19552 * config/arm/arm_cde.h: New file.
19553 * doc/invoke.texi: Document CDE options +cdecp[0-7].
19554 * doc/sourcebuild.texi (arm_v8m_main_cde_ok): Document new target
19556 (arm_v8m_main_cde_fp, arm_v8_1m_main_cde_mve): Likewise.
19558 2020-04-08 Jakub Jelinek <jakub@redhat.com>
19560 PR rtl-optimization/94516
19561 * postreload.c: Include rtl-iter.h.
19562 (reload_cse_move2add): Handle SP autoinc here by FOR_EACH_SUBRTX_VAR
19563 looking for all MEMs with RTX_AUTOINC operand.
19564 (move2add_note_store): Remove {PRE,POST}_{INC,DEC} handling.
19566 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
19568 * omp-grid.c (grid_eliminate_combined_simd_part): Use
19569 OMP_CLAUSE_CODE to access the omp clause code.
19571 2020-04-07 Jeff Law <law@redhat.com>
19573 PR rtl-optimization/92264
19574 * config/h8300/h8300.md (mov;add peephole2): Avoid applying when
19575 the destination is the stack pointer.
19577 2020-04-07 Jakub Jelinek <jakub@redhat.com>
19579 PR rtl-optimization/94291
19580 PR rtl-optimization/84169
19581 * combine.c (try_combine): For split_i2i3, don't assume SET_DEST
19582 must be a REG or SUBREG of REG; if it is not one of these, don't
19585 2020-04-07 Richard Biener <rguenther@suse.de>
19587 PR middle-end/94479
19588 * gimplify.c (gimplify_addr_expr): Also consider generated
19591 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19593 * config/arm/arm_mve.h: Add C++ polymorphism and fix preserve MACROs.
19595 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19597 * config/arm/arm_mve.h: Cast some pointers to expected types.
19599 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19601 * config/arm/arm_mve.h: Replace all uses of vuninitializedq_* with the
19602 same with '__arm_' prefix.
19604 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19606 * config/arm/mve.md (mve_vec_extract*): Allow memory operands in set.
19608 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19610 * config/arm/arm.c (arm_mve_immediate_check): Removed.
19611 * config/arm/mve.md (MVE_pred2, MVE_constraint2): Added FP types.
19612 (mve_vcvtq_n_to_f_*, mve_vcvtq_n_from_f_*, mve_vqshrnbq_n_*,
19613 mve_vqshrntq_n_*, mve_vqshrunbq_n_s*, mve_vqshruntq_n_s*,
19614 mve_vcvtq_m_n_from_f_*, mve_vcvtq_m_n_to_f_*, mve_vqshrnbq_m_n_*,
19615 mve_vqrshruntq_m_n_s*, mve_vqshrunbq_m_n_s*,
19616 mve_vqshruntq_m_n_s*): Fixed immediate constraints.
19618 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19620 * config/arm/arm.d (ashldi3): Don't use lsll for constant 32-bit shifts.
19622 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19624 * config/arm/arm_mve.h: Fix v[id]wdup intrinsics.
19625 * config/arm/mve/md: Fix v[id]wdup patterns.
19627 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19629 * config/arm/arm.c (output_move_neon): Deal with label + offset cases.
19630 * config/arm/mve.md (*mve_mov<mode>): Handle const vectors.
19632 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19634 * config/arm/arm_mve.h: Remove use of typeof for addr pointer parameters
19635 and remove const_ptr enums.
19637 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19639 * config/arm/arm_mve.h (vsubq_n): Merge with...
19641 (vmulq_n): Merge with...
19643 (__ARM_mve_typeid): Simplify scalar and constant detection.
19645 2020-04-07 Jakub Jelinek <jakub@redhat.com>
19648 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Fix the check
19649 for inter-lane permutation for 64-byte modes.
19652 * config/aarch64/aarch64-simd.md (ashl<mode>3, lshr<mode>3,
19653 ashr<mode>3): Force operands[2] into reg whenever it is not CONST_INT.
19654 Assume it is a REG after that instead of testing it and doing FAIL
19655 otherwise. Formatting fix.
19657 2020-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
19659 * config/rs6000/t-rtems: Delete mcpu=8540 multilib.
19661 2020-04-07 Jakub Jelinek <jakub@redhat.com>
19664 * config/i386/i386-expand.c (emit_reduc_half): For V{64QI,32HI}mode
19665 handle i < 64 using avx512bw_lshrv4ti3. Formatting fixes.
19667 2020-04-06 Jakub Jelinek <jakub@redhat.com>
19669 * cselib.c (cselib_subst_to_values): For SP_DERIVED_VALUE_P
19670 + const0_rtx return the SP_DERIVED_VALUE_P.
19672 2020-04-06 Richard Sandiford <richard.sandiford@arm.com>
19674 PR rtl-optimization/92989
19675 * lra-lives.c (process_bb_lives): Do not treat eh_return data
19676 registers as being live at the beginning of the EH receiver.
19678 2020-04-05 Zachary Spytz <zspytz@gmail.com>
19680 * extend.texi: Add free to list of ISO C90 functions that
19681 are recognized by the compiler.
19683 2020-04-05 Nagaraju Mekala <nmekala@xilix.com>
19685 * config/microblaze/microblaze.c (microblaze_must_save_register): Check
19686 for fast_interrupt.
19688 * config/microblaze/microblaze.md (trap): Update output pattern.
19690 2020-04-04 Hannes Domani <ssbssa@yahoo.de>
19691 Jakub Jelinek <jakub@redhat.com>
19694 * dwarf2out.c (gen_subprogram_die): Look through references, pointers,
19695 arrays, pointer-to-members, function types and qualifiers when
19696 checking if in-class DIE had an 'auto' or 'decltype(auto)' return type
19697 to emit type again on definition.
19699 2020-04-04 Jan Hubicka <hubicka@ucw.cz>
19702 * ipa-fnsummary.c (vrp_will_run_p): New function.
19703 (fre_will_run_p): New function.
19704 (evaluate_properties_for_edge): Use it.
19705 * ipa-inline.c (can_inline_edge_by_limits_p): Do not inline
19706 !optimize_debug to optimize_debug.
19708 2020-04-04 Jakub Jelinek <jakub@redhat.com>
19710 PR rtl-optimization/94468
19711 * cselib.c (references_value_p): Formatting fix.
19712 (cselib_useless_value_p): New function.
19713 (discard_useless_locs, discard_useless_values,
19714 cselib_invalidate_regno_val, cselib_invalidate_mem,
19715 cselib_record_set): Use it instead of
19716 v->locs == 0 && !PRESERVED_VALUE_P (v->val_rtx).
19719 * tree-iterator.h (expr_single): Declare.
19720 * tree-iterator.c (expr_single): New function.
19721 * tree.h (protected_set_expr_location_if_unset): Declare.
19722 * tree.c (protected_set_expr_location): Use expr_single.
19723 (protected_set_expr_location_if_unset): New function.
19725 2020-04-03 Jeff Law <law@redhat.com>
19727 PR rtl-optimization/92264
19728 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Handle
19729 reloading of auto-increment addressing modes.
19731 2020-04-03 H.J. Lu <hongjiu.lu@intel.com>
19734 * config/i386/sse.md (ssse3_pshufbv8qi3): Mark scratch operand
19737 2020-04-03 Jeff Law <law@redhat.com>
19739 PR rtl-optimization/92264
19740 * config/m32r/m32r.c (m32r_output_block_move): Properly account for
19741 post-increment addressing of source operands as well as residuals
19742 when computing any adjustments to the input pointer.
19744 2020-04-03 Jakub Jelinek <jakub@redhat.com>
19747 * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
19748 avx2_ph<plusminus_mnemonic>dv8si3): Fix up RTL pattern to do
19749 second half of first lane from first lane of second operand and
19750 first half of second lane from second lane of first operand.
19752 2020-04-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
19754 * config/arm/arm_mve.h: Condition the header file on __ARM_FEATURE_MVE.
19756 2020-04-03 Tamar Christina <tamar.christina@arm.com>
19759 * common/config/aarch64/aarch64-common.c
19760 (aarch64_get_extension_string_for_isa_flags): Handle default flags.
19762 2020-04-03 Richard Biener <rguenther@suse.de>
19764 PR middle-end/94465
19765 * tree.c (array_ref_low_bound): Deal with released SSA names
19768 2020-04-03 Kwok Cheung Yeung <kcy@codesourcery.com>
19770 * config/gcn/gcn.c (print_operand): Handle unordered comparison
19772 * config/gcn/predicates.md (gcn_fp_compare_operator): Add unordered
19773 comparison operators.
19775 2020-04-03 Kewen Lin <linkw@gcc.gnu.org>
19777 PR tree-optimization/94443
19778 * tree-vect-loop.c (vectorizable_live_operation): Use
19779 gsi_insert_seq_before to replace gsi_insert_before.
19781 2020-04-03 Martin Liska <mliska@suse.cz>
19784 * ipa-icf-gimple.c (func_checker::compare_gimple_call):
19785 Compare type attributes for gimple_call_fntypes.
19787 2020-04-02 Sandra Loosemore <sandra@codesourcery.com>
19789 * alias.c (get_alias_set): Fix comment typos.
19791 2020-04-02 Fritz Reese <foreese@gcc.gnu.org>
19794 * fortran/decl.c (match_attr_spec): Lump COMP_STRUCTURE/COMP_MAP into
19795 attribute checking used by TYPE.
19797 2020-04-02 Martin Jambor <mjambor@suse.cz>
19800 * ipa-sra.c (struct caller_issues): New fields candidate and
19801 call_from_outside_comdat.
19802 (check_for_caller_issues): Check for calls from outsied of
19803 candidate's same_comdat_group.
19804 (check_all_callers_for_issues): Set up issues.candidate, check result
19806 (mark_callers_calls_comdat_local): New function.
19807 (process_isra_node_results): Set calls_comdat_local of callers if
19810 2020-04-02 Richard Biener <rguenther@suse.de>
19813 * common.opt (ffinite-loops): Initialize to zero.
19814 * opts.c (default_options_table): Remove OPT_ffinite_loops
19816 * cfgloop.h (loop::finite_p): New member.
19817 * cfgloopmanip.c (copy_loop_info): Copy finite_p.
19818 * ipa-icf-gimple.c (func_checker::compare_loops): Compare
19820 * lto-streamer-in.c (input_cfg): Stream finite_p.
19821 * lto-streamer-out.c (output_cfg): Likewise.
19822 * tree-cfg.c (replace_loop_annotate): Initialize finite_p
19823 from flag_finite_loops at CFG build time.
19824 * tree-ssa-loop-niter.c (finite_loop_p): Check the loops
19825 finite_p flag instead of flag_finite_loops.
19826 * doc/invoke.texi (ffinite-loops): Adjust documentation of
19829 2020-04-02 Richard Biener <rguenther@suse.de>
19832 * dwarf2out.c (dwarf2out_early_finish): Remove code emitting
19833 DW_TAG_imported_unit.
19835 2020-04-02 Maciej W. Rozycki <macro@wdc.com>
19837 * doc/install.texi (Specific) <riscv32-*-elf, riscv32-*-linux>
19838 <riscv64-*-elf, riscv64-*-linux>: Update binutils requirement to
19841 2020-04-02 Kewen Lin <linkw@gcc.gnu.org>
19843 PR tree-optimization/94401
19844 * tree-vect-loop.c (vectorizable_load): Handle VMAT_CONTIGUOUS_REVERSE
19845 access type when loading halves of vector to avoid peeling for gaps.
19847 2020-04-02 Jakub Jelinek <jakub@redhat.com>
19849 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add a space in
19850 between a string literal and MIPS_SYSVERSION_SPEC macro.
19852 2020-04-02 Martin Jambor <mjambor@suse.cz>
19854 * doc/invoke.texi (Optimize Options): Document sra-max-propagations.
19856 2020-04-02 Jakub Jelinek <jakub@redhat.com>
19858 PR rtl-optimization/92264
19859 * params.opt (-param=max-find-base-term-values=): Decrease default
19862 PR rtl-optimization/92264
19863 * rtl.h (struct rtx_def): Mention that call bit is used as
19864 SP_DERIVED_VALUE_P in cselib.c.
19865 * cselib.c (SP_DERIVED_VALUE_P): Define.
19866 (PRESERVED_VALUE_P, SP_BASED_VALUE_P): Move definitions earlier.
19867 (cselib_hasher::equal): Handle equality between SP_DERIVED_VALUE_P
19868 val_rtx and sp based expression where offsets cancel each other.
19869 (preserve_constants_and_equivs): Formatting fix.
19870 (cselib_reset_table): Add reverse op loc to SP_DERIVED_VALUE_P
19871 locs list for cfa_base_preserved_val if needed. Formatting fix.
19872 (autoinc_split): If the to be returned value is a REG, MEM or
19873 VALUE which has SP_DERIVED_VALUE_P + CONST_INT as one of its
19874 locs, return the SP_DERIVED_VALUE_P VALUE and adjust *off.
19875 (rtx_equal_for_cselib_1): Call autoinc_split even if both
19876 expressions are PLUS in Pmode with CONST_INT second operands.
19877 Handle SP_DERIVED_VALUE_P cases.
19878 (cselib_hash_plus_const_int): New function.
19879 (cselib_hash_rtx): Use it for PLUS in Pmode with CONST_INT
19880 second operand, as well as for PRE_DEC etc. that ought to be
19881 hashed the same way.
19882 (cselib_subst_to_values): Substitute PLUS with Pmode and
19883 CONST_INT operand if the first operand is a VALUE which has
19884 SP_DERIVED_VALUE_P + CONST_INT as one of its locs for the
19885 SP_DERIVED_VALUE_P + adjusted offset.
19886 (cselib_lookup_1): When creating a new VALUE for stack_pointer_rtx,
19887 set SP_DERIVED_VALUE_P on it. Set PRESERVED_VALUE_P when adding
19888 SP_DERIVED_VALUE_P PRESERVED_VALUE_P subseted VALUE location.
19889 * var-tracking.c (vt_initialize): Call cselib_add_permanent_equiv
19890 on the sp value before calling cselib_add_permanent_equiv on the
19892 * dse.c (check_for_inc_dec_1, check_for_inc_dec): Punt on RTX_AUTOINC
19893 in the insn without REG_INC note.
19894 (replace_read): Punt on RTX_AUTOINC in the *loc being replaced.
19895 Punt on invalid insns added by copy_to_mode_reg. Formatting fixes.
19898 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): For
19899 y_mode E_[QH]Imode and y being a CONST_INT, change y_mode to SImode.
19901 2020-04-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19904 * config/arm/arm-builtins.c (LDRGBWBXU_QUALIFIERS): Define.
19905 (LDRGBWBXU_Z_QUALIFIERS): Likewise.
19906 * config/arm/arm_mve.h (__arm_vldrdq_gather_base_wb_s64): Modify
19907 intrinsic defintion by adding a new builtin call to writeback into base
19909 (__arm_vldrdq_gather_base_wb_u64): Likewise.
19910 (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
19911 (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
19912 (__arm_vldrwq_gather_base_wb_s32): Likewise.
19913 (__arm_vldrwq_gather_base_wb_u32): Likewise.
19914 (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
19915 (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
19916 (__arm_vldrwq_gather_base_wb_f32): Likewise.
19917 (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
19918 * config/arm/arm_mve_builtins.def (vldrwq_gather_base_wb_z_u): Modify
19919 builtin's qualifier.
19920 (vldrdq_gather_base_wb_z_u): Likewise.
19921 (vldrwq_gather_base_wb_u): Likewise.
19922 (vldrdq_gather_base_wb_u): Likewise.
19923 (vldrwq_gather_base_wb_z_s): Likewise.
19924 (vldrwq_gather_base_wb_z_f): Likewise.
19925 (vldrdq_gather_base_wb_z_s): Likewise.
19926 (vldrwq_gather_base_wb_s): Likewise.
19927 (vldrwq_gather_base_wb_f): Likewise.
19928 (vldrdq_gather_base_wb_s): Likewise.
19929 (vldrwq_gather_base_nowb_z_u): Define builtin.
19930 (vldrdq_gather_base_nowb_z_u): Likewise.
19931 (vldrwq_gather_base_nowb_u): Likewise.
19932 (vldrdq_gather_base_nowb_u): Likewise.
19933 (vldrwq_gather_base_nowb_z_s): Likewise.
19934 (vldrwq_gather_base_nowb_z_f): Likewise.
19935 (vldrdq_gather_base_nowb_z_s): Likewise.
19936 (vldrwq_gather_base_nowb_s): Likewise.
19937 (vldrwq_gather_base_nowb_f): Likewise.
19938 (vldrdq_gather_base_nowb_s): Likewise.
19939 * config/arm/mve.md (mve_vldrwq_gather_base_nowb_<supf>v4si): Define RTL
19941 (mve_vldrwq_gather_base_wb_<supf>v4si): Modify RTL pattern.
19942 (mve_vldrwq_gather_base_nowb_z_<supf>v4si): Define RTL pattern.
19943 (mve_vldrwq_gather_base_wb_z_<supf>v4si): Modify RTL pattern.
19944 (mve_vldrwq_gather_base_wb_fv4sf): Modify RTL pattern.
19945 (mve_vldrwq_gather_base_nowb_fv4sf): Define RTL pattern.
19946 (mve_vldrwq_gather_base_wb_z_fv4sf): Modify RTL pattern.
19947 (mve_vldrwq_gather_base_nowb_z_fv4sf): Define RTL pattern.
19948 (mve_vldrdq_gather_base_nowb_<supf>v4di): Define RTL pattern.
19949 (mve_vldrdq_gather_base_wb_<supf>v4di): Modify RTL pattern.
19950 (mve_vldrdq_gather_base_nowb_z_<supf>v4di): Define RTL pattern.
19951 (mve_vldrdq_gather_base_wb_z_<supf>v4di): Modify RTL pattern.
19953 2020-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19955 * config/s390/vector.md ("<ti*>add<mode>3", "mul<mode>3")
19956 ("and<mode>3", "notand<mode>3", "ior<mode>3", "ior_not<mode>3")
19957 ("xor<mode>3", "notxor<mode>3", "smin<mode>3", "smax<mode>3")
19958 ("umin<mode>3", "umax<mode>3", "vec_widen_smult_even_<mode>")
19959 ("vec_widen_umult_even_<mode>", "vec_widen_smult_odd_<mode>")
19960 ("vec_widen_umult_odd_<mode>", "add<mode>3", "sub<mode>3")
19961 ("mul<mode>3", "fma<mode>4", "fms<mode>4", "neg_fma<mode>4")
19962 ("neg_fms<mode>4", "*smax<mode>3_vxe", "*smaxv2df3_vx")
19963 ("*smin<mode>3_vxe", "*sminv2df3_vx"): Remove % constraint
19965 ("vec_widen_umult_lo_<mode>", "vec_widen_umult_hi_<mode>")
19966 ("vec_widen_smult_lo_<mode>", "vec_widen_smult_hi_<mode>"):
19967 Remove constraints from expander.
19968 * config/s390/vx-builtins.md ("vacc<bhfgq>_<mode>", "vacq")
19969 ("vacccq", "vec_avg<mode>", "vec_avgu<mode>", "vec_vmal<mode>")
19970 ("vec_vmah<mode>", "vec_vmalh<mode>", "vec_vmae<mode>")
19971 ("vec_vmale<mode>", "vec_vmao<mode>", "vec_vmalo<mode>")
19972 ("vec_smulh<mode>", "vec_umulh<mode>", "vec_nor<mode>3")
19973 ("vfmin<mode>", "vfmax<mode>"): Remove % constraint modifier.
19975 2020-04-01 Peter Bergner <bergner@linux.ibm.com>
19977 PR rtl-optimization/94123
19978 * lower-subreg.c (pass_lower_subreg3::gate): Remove test for
19979 flag_split_wide_types_early.
19981 2020-04-01 Joerg Sonnenberger <joerg@bec.de>
19983 * doc/extend.texi (Common Function Attributes): Fix typo.
19985 2020-04-01 Segher Boessenkool <segher@kernel.crashing.org>
19988 * config/rs6000/rs6000.md (*tocref<mode> for P): Add insn condition
19991 2020-04-01 Zackery Spytz <zspytz@gmail.com>
19993 * doc/extend.texi: Fix a typo in the documentation of the
19994 copy function attribute.
19996 2020-04-01 Jakub Jelinek <jakub@redhat.com>
19998 PR middle-end/94423
19999 * tree-object-size.c (pass_object_sizes::execute): Don't call
20000 replace_uses_by for SSA_NAME_OCCURS_IN_ABNORMAL_PHI lhs, instead
20001 call replace_call_with_value.
20003 2020-04-01 Kewen Lin <linkw@gcc.gnu.org>
20005 PR tree-optimization/94043
20006 * tree-vect-loop.c (vectorizable_live_operation): Generate loop-closed
20007 phi for vec_lhs and use it for lane extraction.
20009 2020-03-31 Felix Yang <felix.yang@huawei.com>
20011 PR tree-optimization/94398
20012 * tree-vect-stmts.c (vectorizable_store): Instead of calling
20013 vect_supportable_dr_alignment, set alignment_support_scheme to
20014 dr_unaligned_supported for gather-scatter accesses.
20015 (vectorizable_load): Likewise.
20017 2020-03-31 Andrew Stubbs <ams@codesourcery.com>
20019 * config/gcn/gcn-valu.md (V_QI, V_HI, V_HF, V_SI, V_SF, V_DI, V_DF):
20020 New mode iterators.
20021 (vnsi, VnSI, vndi, VnDI): New mode attributes.
20022 (mov<mode>): Use <VnDI> in place of V64DI.
20023 (mov<mode>_exec): Likewise.
20024 (mov<mode>_sgprbase): Likewise.
20025 (reload_out<mode>): Likewise.
20026 (*vec_set<mode>_1): Use GET_MODE_NUNITS instead of constant 64.
20027 (gather_load<mode>v64si): Rename to ...
20028 (gather_load<mode><vnsi>): ... this, and use <VnSI> in place of V64SI,
20029 and <VnDI> in place of V64DI.
20030 (gather<mode>_insn_1offset<exec>): Use <VnDI> in place of V64DI.
20031 (gather<mode>_insn_1offset_ds<exec>): Use <VnSI> in place of V64SI.
20032 (gather<mode>_insn_2offsets<exec>): Use <VnSI> and <VnDI>.
20033 (scatter_store<mode>v64si): Rename to ...
20034 (scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
20035 (scatter<mode>_expr<exec_scatter>): Use <VnSI> and <VnDI>.
20036 (scatter<mode>_insn_1offset<exec_scatter>): Likewise.
20037 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
20038 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
20039 (ds_bpermute<mode>): Use <VnSI>.
20040 (addv64si3_vcc<exec_vcc>): Rename to ...
20041 (add<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
20042 (addv64si3_vcc_dup<exec_vcc>): Rename to ...
20043 (add<mode>3_vcc_dup<exec_vcc>): ... this, and use V_SI.
20044 (addcv64si3<exec_vcc>): Rename to ...
20045 (addc<mode>3<exec_vcc>): ... this, and use V_SI.
20046 (subv64si3_vcc<exec_vcc>): Rename to ...
20047 (sub<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
20048 (subcv64si3<exec_vcc>): Rename to ...
20049 (subc<mode>3<exec_vcc>): ... this, and use V_SI.
20050 (addv64di3): Rename to ...
20051 (add<mode>3): ... this, and use V_DI.
20052 (addv64di3_exec): Rename to ...
20053 (add<mode>3_exec): ... this, and use V_DI.
20054 (subv64di3): Rename to ...
20055 (sub<mode>3): ... this, and use V_DI.
20056 (subv64di3_exec): Rename to ...
20057 (sub<mode>3_exec): ... this, and use V_DI.
20058 (addv64di3_zext): Rename to ...
20059 (add<mode>3_zext): ... this, and use V_DI and <VnSI>.
20060 (addv64di3_zext_exec): Rename to ...
20061 (add<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
20062 (addv64di3_zext_dup): Rename to ...
20063 (add<mode>3_zext_dup): ... this, and use V_DI and <VnSI>.
20064 (addv64di3_zext_dup_exec): Rename to ...
20065 (add<mode>3_zext_dup_exec): ... this, and use V_DI and <VnSI>.
20066 (addv64di3_zext_dup2): Rename to ...
20067 (add<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
20068 (addv64di3_zext_dup2_exec): Rename to ...
20069 (add<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
20070 (addv64di3_sext_dup2): Rename to ...
20071 (add<mode>3_sext_dup2): ... this, and use V_DI and <VnSI>.
20072 (addv64di3_sext_dup2_exec): Rename to ...
20073 (add<mode>3_sext_dup2_exec): ... this, and use V_DI and <VnSI>.
20074 (<su>mulv64si3_highpart<exec>): Rename to ...
20075 (<su>mul<mode>3_highpart<exec>): ... this and use V_SI and <VnDI>.
20076 (mulv64di3): Rename to ...
20077 (mul<mode>3): ... this, and use V_DI and <VnSI>.
20078 (mulv64di3_exec): Rename to ...
20079 (mul<mode>3_exec): ... this, and use V_DI and <VnSI>.
20080 (mulv64di3_zext): Rename to ...
20081 (mul<mode>3_zext): ... this, and use V_DI and <VnSI>.
20082 (mulv64di3_zext_exec): Rename to ...
20083 (mul<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
20084 (mulv64di3_zext_dup2): Rename to ...
20085 (mul<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
20086 (mulv64di3_zext_dup2_exec): Rename to ...
20087 (mul<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
20088 (<expander>v64di3): Rename to ...
20089 (<expander><mode>3): ... this, and use V_DI and <VnSI>.
20090 (<expander>v64di3_exec): Rename to ...
20091 (<expander><mode>3_exec): ... this, and use V_DI and <VnSI>.
20092 (<expander>v64si3<exec>): Rename to ...
20093 (<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
20094 (v<expander>v64si3<exec>): Rename to ...
20095 (v<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
20096 (<expander>v64si3<exec>): Rename to ...
20097 (<expander><vnsi>3<exec>): ... this, and use V_SI.
20098 (subv64df3<exec>): Rename to ...
20099 (sub<mode>3<exec>): ... this, and use V_DF.
20100 (truncv64di<mode>2): Rename to ...
20101 (trunc<vndi><mode>2): ... this, and use <VnDI>.
20102 (truncv64di<mode>2_exec): Rename to ...
20103 (trunc<vndi><mode>2_exec): ... this, and use <VnDI>.
20104 (<convop><mode>v64di2): Rename to ...
20105 (<convop><mode><vndi>2): ... this, and use <VnDI>.
20106 (<convop><mode>v64di2_exec): Rename to ...
20107 (<convop><mode><vndi>2_exec): ... this, and use <VnDI>.
20108 (vec_cmp<u>v64qidi): Rename to ...
20109 (vec_cmp<u><mode>di): ... this, and use <VnSI>.
20110 (vec_cmp<u>v64qidi_exec): Rename to ...
20111 (vec_cmp<u><mode>di_exec): ... this, and use <VnSI>.
20112 (vcond_mask_<mode>di): Use <VnDI>.
20113 (maskload<mode>di): Likewise.
20114 (maskstore<mode>di): Likewise.
20115 (mask_gather_load<mode>v64si): Rename to ...
20116 (mask_gather_load<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
20117 (mask_scatter_store<mode>v64si): Rename to ...
20118 (mask_scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
20119 (*<reduc_op>_dpp_shr_v64di): Rename to ...
20120 (*<reduc_op>_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
20121 (*plus_carry_in_dpp_shr_v64si): Rename to ...
20122 (*plus_carry_in_dpp_shr_<mode>): ... this, and use V_SI.
20123 (*plus_carry_dpp_shr_v64di): Rename to ...
20124 (*plus_carry_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
20125 (vec_seriesv64si): Rename to ...
20126 (vec_series<mode>): ... this, and use V_SI.
20127 (vec_seriesv64di): Rename to ...
20128 (vec_series<mode>): ... this, and use V_DI.
20130 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
20132 * config/arc/arc.c (arc_print_operand): Use
20133 HOST_WIDE_INT_PRINT_DEC macro.
20135 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
20137 * config/arc/arc.h (ASM_FORMAT_PRIVATE_NAME): Fix it.
20139 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20141 * config/arm/arm_mve.h (vbicq): Define MVE intrinsic polymorphic
20143 (__arm_vbicq): Likewise.
20145 2020-03-31 Vineet Gupta <vgupta@synopsys.com>
20147 * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700.
20149 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20151 * config/arm/arm_mve.h (vaddlvq): Move the polymorphic variant to the
20152 common section of both MVE Integer and MVE Floating Point.
20153 (vaddvq): Likewise.
20154 (vaddlvq_p): Likewise.
20155 (vaddvaq): Likewise.
20156 (vaddvq_p): Likewise.
20157 (vcmpcsq): Likewise.
20158 (vmlsdavxq): Likewise.
20159 (vmlsdavq): Likewise.
20160 (vmladavxq): Likewise.
20161 (vmladavq): Likewise.
20162 (vminvq): Likewise.
20163 (vminavq): Likewise.
20164 (vmaxvq): Likewise.
20165 (vmaxavq): Likewise.
20166 (vmlaldavq): Likewise.
20167 (vcmphiq): Likewise.
20168 (vaddlvaq): Likewise.
20169 (vrmlaldavhq): Likewise.
20170 (vrmlaldavhxq): Likewise.
20171 (vrmlsldavhq): Likewise.
20172 (vrmlsldavhxq): Likewise.
20173 (vmlsldavxq): Likewise.
20174 (vmlsldavq): Likewise.
20175 (vabavq): Likewise.
20176 (vrmlaldavhaq): Likewise.
20177 (vcmpgeq_m_n): Likewise.
20178 (vmlsdavxq_p): Likewise.
20179 (vmlsdavq_p): Likewise.
20180 (vmlsdavaxq): Likewise.
20181 (vmlsdavaq): Likewise.
20182 (vaddvaq_p): Likewise.
20183 (vcmpcsq_m_n): Likewise.
20184 (vcmpcsq_m): Likewise.
20185 (vmladavxq_p): Likewise.
20186 (vmladavq_p): Likewise.
20187 (vmladavaxq): Likewise.
20188 (vmladavaq): Likewise.
20189 (vminvq_p): Likewise.
20190 (vminavq_p): Likewise.
20191 (vmaxvq_p): Likewise.
20192 (vmaxavq_p): Likewise.
20193 (vcmphiq_m): Likewise.
20194 (vaddlvaq_p): Likewise.
20195 (vmlaldavaq): Likewise.
20196 (vmlaldavaxq): Likewise.
20197 (vmlaldavq_p): Likewise.
20198 (vmlaldavxq_p): Likewise.
20199 (vmlsldavaq): Likewise.
20200 (vmlsldavaxq): Likewise.
20201 (vmlsldavq_p): Likewise.
20202 (vmlsldavxq_p): Likewise.
20203 (vrmlaldavhaxq): Likewise.
20204 (vrmlaldavhq_p): Likewise.
20205 (vrmlaldavhxq_p): Likewise.
20206 (vrmlsldavhaq): Likewise.
20207 (vrmlsldavhaxq): Likewise.
20208 (vrmlsldavhq_p): Likewise.
20209 (vrmlsldavhxq_p): Likewise.
20210 (vabavq_p): Likewise.
20211 (vmladavaq_p): Likewise.
20212 (vstrbq_scatter_offset): Likewise.
20213 (vstrbq_p): Likewise.
20214 (vstrbq_scatter_offset_p): Likewise.
20215 (vstrdq_scatter_base_p): Likewise.
20216 (vstrdq_scatter_base): Likewise.
20217 (vstrdq_scatter_offset_p): Likewise.
20218 (vstrdq_scatter_offset): Likewise.
20219 (vstrdq_scatter_shifted_offset_p): Likewise.
20220 (vstrdq_scatter_shifted_offset): Likewise.
20221 (vmaxq_x): Likewise.
20222 (vminq_x): Likewise.
20223 (vmovlbq_x): Likewise.
20224 (vmovltq_x): Likewise.
20225 (vmulhq_x): Likewise.
20226 (vmullbq_int_x): Likewise.
20227 (vmullbq_poly_x): Likewise.
20228 (vmulltq_int_x): Likewise.
20229 (vmulltq_poly_x): Likewise.
20230 (vstrbq): Likewise.
20232 2020-03-31 Jakub Jelinek <jakub@redhat.com>
20235 * config/aarch64/constraints.md (Uph): New constraint.
20236 * config/aarch64/atomics.md (cas_short_expected_imm): New mode attr.
20237 (@aarch64_compare_and_swap<mode>): Use it instead of n in operand 2's
20240 2020-03-31 Marc Glisse <marc.glisse@inria.fr>
20241 Jakub Jelinek <jakub@redhat.com>
20243 PR middle-end/94412
20244 * fold-const.c (fold_binary_loc) <case TRUNC_DIV_EXPR>: Use
20245 ANY_INTEGRAL_TYPE_P instead of INTEGRAL_TYPE_P.
20247 2020-03-31 Jakub Jelinek <jakub@redhat.com>
20249 PR tree-optimization/94403
20250 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Allow also
20251 ENUMERAL_TYPE lhs_type.
20253 PR rtl-optimization/94344
20254 * tree-ssa-forwprop.c (simplify_rotate): Handle also same precision
20255 conversions, either on both operands of |^+ or just one. Handle
20256 also extra same precision conversion on RSHIFT_EXPR first operand
20257 provided RSHIFT_EXPR is performed in unsigned type.
20259 2020-03-30 David Malcolm <dmalcolm@redhat.com>
20261 * lra.c (finish_insn_code_data_once): Set the array elements
20262 to NULL after freeing them.
20264 2020-03-30 Andreas Schwab <schwab@suse.de>
20266 * config/host-linux.c (TRY_EMPTY_VM_SPACE) [__riscv && __LP64__]:
20269 2020-03-30 Will Schmidt <will_schmidt@vnet.ibm.com>
20271 * config/rs6000/rs6000-call.c altivec_init_builtins(): Remove code
20272 to skip defining builtins based on builtin_mask.
20274 2020-03-30 Jakub Jelinek <jakub@redhat.com>
20277 * config/i386/sse.md (<mask_codefor>one_cmpl<mode>2<mask_name>): If
20278 !TARGET_AVX512VL, use 512-bit vpternlog and make sure the input
20279 operand is a register. Don't enable masked variants for V*[QH]Imode.
20282 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Use
20283 <store_mask_constraint> instead of m in output operand constraint.
20284 (vec_extract_hi_<mode><mask_name>): Use <mask_operand2> instead of
20287 2020-03-30 Alan Modra <amodra@gmail.com>
20289 * config/rs6000/rs6000.c (rs6000_call_aix): Emit cookie to pattern.
20290 (rs6000_indirect_call_template_1): Adjust to suit.
20291 * config/rs6000/rs6000.md (call_local): Merge call_local32,
20292 call_local64, and call_local_aix.
20293 (call_value_local): Simlarly.
20294 (call_nonlocal_aix, call_value_nonlocal_aix): Adjust rtl to suit,
20295 and disable pattern when CALL_LONG.
20296 (call_indirect_aix, call_value_indirect_aix): Adjust rtl.
20297 (call_indirect_elfv2, call_indirect_pcrel): Likewise.
20298 (call_value_indirect_elfv2, call_value_indirect_pcrel): Likewise.
20300 2020-03-29 H.J. Lu <hongjiu.lu@intel.com>
20303 * doc/invoke.texi: Update -falign-functions, -falign-loops and
20304 -falign-jumps documentation.
20306 2020-03-29 Martin Liska <mliska@suse.cz>
20309 * cgraphunit.c (process_function_and_variable_attributes): Remove
20310 double 'attribute' words.
20312 2020-03-29 John David Anglin <dave.anglin@bell.net>
20314 * config/pa/pa.c (pa_asm_output_aligned_bss): Delete duplicate
20317 2020-03-28 Jakub Jelinek <jakub@redhat.com>
20320 * c-decl.c (grokdeclarator): After issuing errors, set size_int_const
20321 to true after setting size to integer_one_node.
20323 PR tree-optimization/94329
20324 * tree-ssa-reassoc.c (reassociate_bb): When calling reassoc_remove_stmt
20325 on the last stmt in a bb, make sure gsi_prev isn't done immediately
20328 2020-03-27 Alan Modra <amodra@gmail.com>
20331 * config/rs6000/rs6000.c (rs6000_longcall_ref): Use unspec_volatile
20332 for PLT16_LO and PLT_PCREL.
20333 * config/rs6000/rs6000.md (UNSPEC_PLT16_LO, UNSPEC_PLT_PCREL): Remove.
20334 (UNSPECV_PLT16_LO, UNSPECV_PLT_PCREL): Define.
20335 (pltseq_plt16_lo_, pltseq_plt_pcrel): Use unspec_volatile.
20337 2020-03-27 Martin Sebor <msebor@redhat.com>
20340 * calls.c (init_attr_rdwr_indices): Iterate over all access attributes.
20342 2020-03-27 Andrew Stubbs <ams@codesourcery.com>
20344 * config/gcn/gcn-valu.md:
20345 (VEC_SUBDWORD_MODE): Rename to V_QIHI throughout.
20346 (VEC_1REG_MODE): Delete.
20347 (VEC_1REG_ALT): Delete.
20348 (VEC_ALL1REG_MODE): Rename to V_1REG throughout.
20349 (VEC_1REG_INT_MODE): Delete.
20350 (VEC_ALL1REG_INT_MODE): Rename to V_INT_1REG throughout.
20351 (VEC_ALL1REG_INT_ALT): Rename to V_INT_1REG_ALT throughout.
20352 (VEC_2REG_MODE): Rename to V_2REG throughout.
20353 (VEC_REG_MODE): Rename to V_noHI throughout.
20354 (VEC_ALLREG_MODE): Rename to V_ALL throughout.
20355 (VEC_ALLREG_ALT): Rename to V_ALL_ALT throughout.
20356 (VEC_ALLREG_INT_MODE): Rename to V_INT throughout.
20357 (VEC_INT_MODE): Delete.
20358 (VEC_FP_MODE): Rename to V_FP throughout and move to top.
20359 (VEC_FP_1REG_MODE): Rename to V_FP_1REG throughout and move to top.
20360 (FP_MODE): Delete and replace with FP throughout.
20361 (FP_1REG_MODE): Delete and replace with FP_1REG throughout.
20362 (VCMP_MODE): Rename to V_noQI throughout and move to top.
20363 (VCMP_MODE_INT): Rename to V_INT_noQI throughout and move to top.
20364 * config/gcn/gcn.md (FP): New mode iterator.
20365 (FP_1REG): New mode iterator.
20367 2020-03-27 David Malcolm <dmalcolm@redhat.com>
20369 * doc/invoke.texi (-fdump-analyzer-supergraph): Document that this
20370 now emits two .dot files.
20371 * graphviz.cc (graphviz_out::begin_tr): Only emit a TR, not a TD.
20372 (graphviz_out::end_tr): Only close a TR, not a TD.
20373 (graphviz_out::begin_td): New.
20374 (graphviz_out::end_td): New.
20375 (graphviz_out::begin_trtd): New, replacing the old implementation
20376 of graphviz_out::begin_tr.
20377 (graphviz_out::end_tdtr): New, replacing the old implementation
20378 of graphviz_out::end_tr.
20379 * graphviz.h (graphviz_out::begin_td): New decl.
20380 (graphviz_out::end_td): New decl.
20381 (graphviz_out::begin_trtd): New decl.
20382 (graphviz_out::end_tdtr): New decl.
20384 2020-03-27 Richard Biener <rguenther@suse.de>
20387 * dwarf2out.c (should_emit_struct_debug): Return false for
20390 2020-03-27 Richard Biener <rguenther@suse.de>
20392 PR tree-optimization/94352
20393 * tree-ssa-propagate.c (ssa_prop_init): Move seeding of the
20395 (ssa_propagation_engine::ssa_propagate): ... here after
20396 initializing curr_order.
20398 2020-03-27 Kewen Lin <linkw@gcc.gnu.org>
20400 PR tree-optimization/90332
20401 * tree-vect-stmts.c (vector_vector_composition_type): New function.
20402 (get_group_load_store_type): Adjust to call
20403 vector_vector_composition_type, extend it to construct with scalar
20405 (vectorizable_load): Likewise.
20407 2020-03-27 Roman Zhuykov <zhroma@ispras.ru>
20409 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove assertions.
20410 (create_ddg_dep_no_link): Likewise.
20411 (add_cross_iteration_register_deps): Move debug instruction check.
20412 Other minor refactoring.
20413 (add_intra_loop_mem_dep): Do not check for debug instructions.
20414 (add_inter_loop_mem_dep): Likewise.
20415 (build_intra_loop_deps): Likewise.
20416 (create_ddg): Do not include debug insns into the graph.
20417 * ddg.h (struct ddg): Remove num_debug field.
20418 * modulo-sched.c (doloop_register_get): Adjust condition.
20419 (res_MII): Remove DDG num_debug field usage.
20420 (sms_schedule_by_order): Use assertion against debug insns.
20421 (ps_has_conflicts): Drop debug insn check.
20423 2020-03-26 Jakub Jelinek <jakub@redhat.com>
20426 * tree.c (protected_set_expr_location): Recurse on STATEMENT_LIST
20427 that contains exactly one non-DEBUG_BEGIN_STMT statement.
20430 * gimple.h (gimple_seq_first_nondebug_stmt): New function.
20431 (gimple_seq_last_nondebug_stmt): Don't return NULL if seq contains
20432 a single non-debug stmt followed by one or more debug stmts.
20433 * gimplify.c (gimplify_body): Use gimple_seq_first_nondebug_stmt
20434 instead of gimple_seq_first_stmt, use gimple_seq_first_nondebug_stmt
20435 and gimple_seq_last_nondebug_stmt instead of gimple_seq_first and
20436 gimple_seq_last to check if outer_stmt gbind could be reused and
20437 if yes and it is surrounded by any debug stmts, move them into the
20440 PR rtl-optimization/92264
20441 * var-tracking.c (add_stores): Call cselib_set_value_sp_based even
20442 for sp based values in !frame_pointer_needed
20443 && !ACCUMULATE_OUTGOING_ARGS functions.
20445 2020-03-26 Felix Yang <felix.yang@huawei.com>
20447 PR tree-optimization/94269
20448 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Restrict
20450 operation to single basic block.
20452 2020-03-25 Jeff Law <law@redhat.com>
20454 PR rtl-optimization/90275
20455 * config/sh/sh.md (mov_neg_si_t): Clobber the T register in the
20458 2020-03-25 Jakub Jelinek <jakub@redhat.com>
20461 * config/arm/arm.c (arm_gen_dicompare_reg): Set mode of COMPARE to
20462 mode rather than VOIDmode.
20464 2020-03-25 Martin Sebor <msebor@redhat.com>
20466 PR middle-end/94004
20467 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Issue warnings
20468 even for alloca calls resulting from system macro expansion.
20469 Include inlining context in all warnings.
20471 2020-03-25 Richard Sandiford <richard.sandiford@arm.com>
20474 * config/rs6000/rs6000.c (rs6000_can_change_mode_class): Allow
20475 FPRs to change between SDmode and DDmode.
20477 2020-03-25 Martin Sebor <msebor@redhat.com>
20479 PR tree-optimization/94131
20480 * gimple-fold.c (get_range_strlen_tree): Fail for variable-length
20482 * tree-ssa-strlen.c (get_range_strlen_dynamic): Avoid assuming
20483 types have constant sizes.
20485 2020-03-25 Martin Liska <mliska@suse.cz>
20488 * configure.ac: Report error only when --with-zstd
20490 * configure: Regenerate.
20492 2020-03-25 Jakub Jelinek <jakub@redhat.com>
20495 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Set
20496 INSN_CODE (insn) to -1 when changing the pattern.
20498 2020-03-25 Martin Liska <mliska@suse.cz>
20502 * config/i386/i386-features.c (make_resolver_func): Drop
20503 public flag for resolver.
20504 * config/rs6000/rs6000.c (make_resolver_func): Add comdat
20505 group for resolver and drop public flag if possible.
20506 * multiple_target.c (create_dispatcher_calls): Drop unique_name
20507 and resolution as we want to enable LTO privatization of the default
20510 2020-03-25 Martin Liska <mliska@suse.cz>
20513 * configure.ac: Respect --without-zstd and report
20514 error when we can't find header file with --with-zstd.
20515 * configure: Regenerate.
20517 2020-03-25 Jakub Jelinek <jakub@redhat.com>
20519 PR middle-end/94303
20520 * varasm.c (output_constructor_array_range): If local->index
20521 RANGE_EXPR doesn't start at the current location in the constructor,
20522 skip needed number of bytes using assemble_zeros or assert we don't
20526 * langhooks.c (lhd_set_decl_assembler_name): Use a static ulong
20527 counter instead of DECL_UID.
20529 PR tree-optimization/94300
20530 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): If pd.offset
20531 is positive, make sure that off + size isn't larger than needed_len.
20533 2020-03-25 Richard Biener <rguenther@suse.de>
20534 Jakub Jelinek <jakub@redhat.com>
20537 * tree-if-conv.c (ifcvt_local_dce): Delete dead statements backwards.
20539 2020-03-24 Christophe Lyon <christophe.lyon@linaro.org>
20541 * doc/sourcebuild.texi (ARM-specific attributes): Add
20543 (Features for dg-add-options): Add arm_fp_dp.
20545 2020-03-24 John David Anglin <danglin@gcc.gnu.org>
20548 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Define __BIG_ENDIAN__.
20550 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
20553 * omp-offload.c (omp_finish_file): Fix target-link handling if
20554 targetm_common.have_named_sections is false.
20556 2020-03-24 Jakub Jelinek <jakub@redhat.com>
20559 * config/arm/arm.md (subvdi4, usubvsi4, usubvdi4): Use gen_int_mode
20560 instead of GEN_INT.
20563 * tree-ssa-loop-manip.c (create_iv): If after, set stmt location to
20564 e->goto_locus even if gsi_bb (*incr_pos) contains only debug stmts.
20565 If not after and at *incr_pos is a debug stmt, set stmt location to
20566 location of next non-debug stmt after it if any.
20569 * tree-if-conv.c (ifcvt_local_dce): For gimple debug stmts, just set
20570 GF_PLF_2, but don't add them to worklist. Don't add an assigment to
20571 worklist or set GF_PLF_2 just because it is used in a debug stmt in
20572 another bb. Formatting improvements.
20575 * cgraphunit.c (check_global_declaration): For DECL_EXTERNAL and
20576 non-TREE_PUBLIC non-DECL_ARTIFICIAL FUNCTION_DECLs, set TREE_PUBLIC
20577 regardless of whether TREE_NO_WARNING is set on it or whether
20578 warn_unused_function is true or not.
20580 2020-03-23 Jeff Law <law@redhat.com>
20582 PR rtl-optimization/90275
20585 * simplify-rtx.c (comparison_code_valid_for_mode): New function.
20586 (simplify_logical_relational_operation): Use it.
20588 2020-03-23 Jakub Jelinek <jakub@redhat.com>
20591 * tree.c (get_narrower): Handle COMPOUND_EXPR by recursing on
20592 ultimate rhs and if returned something different, reconstructing
20593 the COMPOUND_EXPRs.
20595 2020-03-23 Lewis Hyatt <lhyatt@gmail.com>
20597 * opts.c (print_filtered_help): Improve the help text for alias options.
20599 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20600 Andre Vieira <andre.simoesdiasvieira@arm.com>
20601 Mihail Ionescu <mihail.ionescu@arm.com>
20603 * config/arm/arm_mve.h (vshlcq_m_s8): Define macro.
20604 (vshlcq_m_u8): Likewise.
20605 (vshlcq_m_s16): Likewise.
20606 (vshlcq_m_u16): Likewise.
20607 (vshlcq_m_s32): Likewise.
20608 (vshlcq_m_u32): Likewise.
20609 (__arm_vshlcq_m_s8): Define intrinsic.
20610 (__arm_vshlcq_m_u8): Likewise.
20611 (__arm_vshlcq_m_s16): Likewise.
20612 (__arm_vshlcq_m_u16): Likewise.
20613 (__arm_vshlcq_m_s32): Likewise.
20614 (__arm_vshlcq_m_u32): Likewise.
20615 (vshlcq_m): Define polymorphic variant.
20616 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_UNONE_IMM_UNONE):
20617 Use builtin qualifier.
20618 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
20619 * config/arm/mve.md (mve_vshlcq_m_vec_<supf><mode>): Define RTL pattern.
20620 (mve_vshlcq_m_carry_<supf><mode>): Likewise.
20621 (mve_vshlcq_m_<supf><mode>): Likewise.
20623 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20625 * config/arm/arm-builtins.c (LSLL_QUALIFIERS): Define builtin qualifier.
20626 (UQSHL_QUALIFIERS): Likewise.
20627 (ASRL_QUALIFIERS): Likewise.
20628 (SQSHL_QUALIFIERS): Likewise.
20629 * config/arm/arm_mve.h (__ARM_BIG_ENDIAN): Check to not support MVE in
20631 (sqrshr): Define macro.
20632 (sqrshrl): Likewise.
20633 (sqrshrl_sat48): Likewise.
20635 (sqshll): Likewise.
20637 (srshrl): Likewise.
20638 (uqrshl): Likewise.
20639 (uqrshll): Likewise.
20640 (uqrshll_sat48): Likewise.
20642 (uqshll): Likewise.
20644 (urshrl): Likewise.
20647 (__arm_lsll): Define intrinsic.
20648 (__arm_asrl): Likewise.
20649 (__arm_uqrshll): Likewise.
20650 (__arm_uqrshll_sat48): Likewise.
20651 (__arm_sqrshrl): Likewise.
20652 (__arm_sqrshrl_sat48): Likewise.
20653 (__arm_uqshll): Likewise.
20654 (__arm_urshrl): Likewise.
20655 (__arm_srshrl): Likewise.
20656 (__arm_sqshll): Likewise.
20657 (__arm_uqrshl): Likewise.
20658 (__arm_sqrshr): Likewise.
20659 (__arm_uqshl): Likewise.
20660 (__arm_urshr): Likewise.
20661 (__arm_sqshl): Likewise.
20662 (__arm_srshr): Likewise.
20663 * config/arm/arm_mve_builtins.def (LSLL_QUALIFIERS): Use builtin
20665 (UQSHL_QUALIFIERS): Likewise.
20666 (ASRL_QUALIFIERS): Likewise.
20667 (SQSHL_QUALIFIERS): Likewise.
20668 * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Define RTL pattern.
20669 (mve_sqrshrl_sat<supf>_di): Likewise.
20670 (mve_uqrshl_si): Likewise.
20671 (mve_sqrshr_si): Likewise.
20672 (mve_uqshll_di): Likewise.
20673 (mve_urshrl_di): Likewise.
20674 (mve_uqshl_si): Likewise.
20675 (mve_urshr_si): Likewise.
20676 (mve_sqshl_si): Likewise.
20677 (mve_srshr_si): Likewise.
20678 (mve_srshrl_di): Likewise.
20679 (mve_sqshll_di): Likewise.
20681 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20682 Andre Vieira <andre.simoesdiasvieira@arm.com>
20683 Mihail Ionescu <mihail.ionescu@arm.com>
20685 * config/arm/arm_mve.h (vsetq_lane_f16): Define macro.
20686 (vsetq_lane_f32): Likewise.
20687 (vsetq_lane_s16): Likewise.
20688 (vsetq_lane_s32): Likewise.
20689 (vsetq_lane_s8): Likewise.
20690 (vsetq_lane_s64): Likewise.
20691 (vsetq_lane_u8): Likewise.
20692 (vsetq_lane_u16): Likewise.
20693 (vsetq_lane_u32): Likewise.
20694 (vsetq_lane_u64): Likewise.
20695 (vgetq_lane_f16): Likewise.
20696 (vgetq_lane_f32): Likewise.
20697 (vgetq_lane_s16): Likewise.
20698 (vgetq_lane_s32): Likewise.
20699 (vgetq_lane_s8): Likewise.
20700 (vgetq_lane_s64): Likewise.
20701 (vgetq_lane_u8): Likewise.
20702 (vgetq_lane_u16): Likewise.
20703 (vgetq_lane_u32): Likewise.
20704 (vgetq_lane_u64): Likewise.
20705 (__ARM_NUM_LANES): Likewise.
20706 (__ARM_LANEQ): Likewise.
20707 (__ARM_CHECK_LANEQ): Likewise.
20708 (__arm_vsetq_lane_s16): Define intrinsic.
20709 (__arm_vsetq_lane_s32): Likewise.
20710 (__arm_vsetq_lane_s8): Likewise.
20711 (__arm_vsetq_lane_s64): Likewise.
20712 (__arm_vsetq_lane_u8): Likewise.
20713 (__arm_vsetq_lane_u16): Likewise.
20714 (__arm_vsetq_lane_u32): Likewise.
20715 (__arm_vsetq_lane_u64): Likewise.
20716 (__arm_vgetq_lane_s16): Likewise.
20717 (__arm_vgetq_lane_s32): Likewise.
20718 (__arm_vgetq_lane_s8): Likewise.
20719 (__arm_vgetq_lane_s64): Likewise.
20720 (__arm_vgetq_lane_u8): Likewise.
20721 (__arm_vgetq_lane_u16): Likewise.
20722 (__arm_vgetq_lane_u32): Likewise.
20723 (__arm_vgetq_lane_u64): Likewise.
20724 (__arm_vsetq_lane_f16): Likewise.
20725 (__arm_vsetq_lane_f32): Likewise.
20726 (__arm_vgetq_lane_f16): Likewise.
20727 (__arm_vgetq_lane_f32): Likewise.
20728 (vgetq_lane): Define polymorphic variant.
20729 (vsetq_lane): Likewise.
20730 * config/arm/mve.md (mve_vec_extract<mode><V_elem_l>): Define RTL
20732 (mve_vec_extractv2didi): Likewise.
20733 (mve_vec_extract_sext_internal<mode>): Likewise.
20734 (mve_vec_extract_zext_internal<mode>): Likewise.
20735 (mve_vec_set<mode>_internal): Likewise.
20736 (mve_vec_setv2di_internal): Likewise.
20737 * config/arm/neon.md (vec_set<mode>): Move RTL pattern to vec-common.md
20739 (vec_extract<mode><V_elem_l>): Rename to
20740 "neon_vec_extract<mode><V_elem_l>".
20741 (vec_extractv2didi): Rename to "neon_vec_extractv2didi".
20742 * config/arm/vec-common.md (vec_extract<mode><V_elem_l>): Define RTL
20743 pattern common for MVE and NEON.
20744 (vec_set<mode>): Move RTL pattern from neon.md and modify to accept both
20747 2020-03-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
20749 * config/arm/mve.md (earlyclobber_32): New mode attribute.
20750 (mve_vrev64q_*, mve_vcaddq*, mve_vhcaddq_*, mve_vcmulq_*,
20751 mve_vmull[bt]q_*, mve_vqdmull[bt]q_*): Add appropriate early clobbers.
20753 2020-03-23 Richard Biener <rguenther@suse.de>
20755 PR tree-optimization/94261
20756 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
20757 IL operand swapping code.
20758 (vect_slp_rearrange_stmts): Do not arrange isomorphic
20759 nodes that would need operation code adjustments.
20761 2020-03-23 Tobias Burnus <tobias@codesourcery.com>
20763 * doc/install.texi (amdgcn-*-amdhsa): Renamed
20764 from amdgcn-unknown-amdhsa; change
20765 amdgcn-unknown-amdhsa to amdgcn-amdhsa.
20767 2020-03-23 Richard Biener <rguenther@suse.de>
20770 * ipa-prop.c (ipa_read_jump_function): Build the ADDR_EXRP
20771 directly rather than also folding it via build_fold_addr_expr.
20773 2020-03-23 Richard Biener <rguenther@suse.de>
20775 PR tree-optimization/94266
20776 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not propagate
20777 addresses of TARGET_MEM_REFs.
20779 2020-03-23 Martin Liska <mliska@suse.cz>
20782 * symtab.c (symtab_node::clone_references): Save speculative_id
20783 as ref may be overwritten by create_reference.
20784 (symtab_node::clone_referring): Likewise.
20785 (symtab_node::clone_reference): Likewise.
20787 2020-03-22 Iain Sandoe <iain@sandoe.co.uk>
20789 * config/i386/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Remove
20790 references to Darwin.
20791 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION): Define this
20792 unconditionally and comment on why.
20794 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
20796 * config/darwin.c (darwin_mergeable_constant_section): Collect
20797 section anchor checks into the caller.
20798 (machopic_select_section): Collect section anchor checks into
20799 the determination of 'effective zero-size' objects. When the
20800 size is unknown, assume it is non-zero, and thus return the
20801 'generic' section for the DECL.
20803 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
20806 * config/darwin.opt: Amend options descriptions.
20808 2020-03-21 Richard Sandiford <richard.sandiford@arm.com>
20810 PR rtl-optimization/94052
20811 * lra-constraints.c (simplify_operand_subreg): Reload the inner
20812 register of a paradoxical subreg if simplify_subreg_regno fails
20813 to give a valid hard register for the outer mode.
20815 2020-03-20 Martin Jambor <mjambor@suse.cz>
20817 PR tree-optimization/93435
20818 * params.opt (sra-max-propagations): New parameter.
20819 * tree-sra.c (propagation_budget): New variable.
20820 (budget_for_propagation_access): New function.
20821 (propagate_subaccesses_from_rhs): Use it.
20822 (propagate_subaccesses_from_lhs): Likewise.
20823 (propagate_all_subaccesses): Set up and destroy propagation_budget.
20825 2020-03-20 Carl Love <cel@us.ibm.com>
20828 * config/rs6000/rs6000.c (rs6000_option_override_internal):
20829 Add check for TARGET_FPRND for Power 7 or newer.
20831 2020-03-20 Jan Hubicka <hubicka@ucw.cz>
20834 * cgraph.c (symbol_table::create_edge): Update calls_comdat_local flag.
20835 (cgraph_edge::redirect_callee): Move here; likewise.
20836 (cgraph_node::remove_callees): Update calls_comdat_local flag.
20837 (cgraph_node::verify_node): Verify that calls_comdat_local flag match
20839 (cgraph_node::check_calls_comdat_local_p): New member function.
20840 * cgraph.h (cgraph_node::check_calls_comdat_local_p): Declare.
20841 (cgraph_edge::redirect_callee): Move offline.
20842 * ipa-fnsummary.c (compute_fn_summary): Do not compute
20843 calls_comdat_local flag here.
20844 * ipa-inline-transform.c (inline_call): Fix updating of
20845 calls_comdat_local flag.
20846 * ipa-split.c (split_function): Use true instead of 1 to set the flag.
20847 * symtab.c (symtab_node::add_to_same_comdat_group): Update
20848 calls_comdat_local flag.
20850 2020-03-20 Richard Biener <rguenther@suse.de>
20852 * tree-vect-slp.c (vect_analyze_slp_instance): Dump SLP tree
20853 from the possibly modified root.
20855 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20856 Andre Vieira <andre.simoesdiasvieira@arm.com>
20857 Mihail Ionescu <mihail.ionescu@arm.com>
20859 * config/arm/arm_mve.h (vst1q_p_u8): Define macro.
20860 (vst1q_p_s8): Likewise.
20861 (vst2q_s8): Likewise.
20862 (vst2q_u8): Likewise.
20863 (vld1q_z_u8): Likewise.
20864 (vld1q_z_s8): Likewise.
20865 (vld2q_s8): Likewise.
20866 (vld2q_u8): Likewise.
20867 (vld4q_s8): Likewise.
20868 (vld4q_u8): Likewise.
20869 (vst1q_p_u16): Likewise.
20870 (vst1q_p_s16): Likewise.
20871 (vst2q_s16): Likewise.
20872 (vst2q_u16): Likewise.
20873 (vld1q_z_u16): Likewise.
20874 (vld1q_z_s16): Likewise.
20875 (vld2q_s16): Likewise.
20876 (vld2q_u16): Likewise.
20877 (vld4q_s16): Likewise.
20878 (vld4q_u16): Likewise.
20879 (vst1q_p_u32): Likewise.
20880 (vst1q_p_s32): Likewise.
20881 (vst2q_s32): Likewise.
20882 (vst2q_u32): Likewise.
20883 (vld1q_z_u32): Likewise.
20884 (vld1q_z_s32): Likewise.
20885 (vld2q_s32): Likewise.
20886 (vld2q_u32): Likewise.
20887 (vld4q_s32): Likewise.
20888 (vld4q_u32): Likewise.
20889 (vld4q_f16): Likewise.
20890 (vld2q_f16): Likewise.
20891 (vld1q_z_f16): Likewise.
20892 (vst2q_f16): Likewise.
20893 (vst1q_p_f16): Likewise.
20894 (vld4q_f32): Likewise.
20895 (vld2q_f32): Likewise.
20896 (vld1q_z_f32): Likewise.
20897 (vst2q_f32): Likewise.
20898 (vst1q_p_f32): Likewise.
20899 (__arm_vst1q_p_u8): Define intrinsic.
20900 (__arm_vst1q_p_s8): Likewise.
20901 (__arm_vst2q_s8): Likewise.
20902 (__arm_vst2q_u8): Likewise.
20903 (__arm_vld1q_z_u8): Likewise.
20904 (__arm_vld1q_z_s8): Likewise.
20905 (__arm_vld2q_s8): Likewise.
20906 (__arm_vld2q_u8): Likewise.
20907 (__arm_vld4q_s8): Likewise.
20908 (__arm_vld4q_u8): Likewise.
20909 (__arm_vst1q_p_u16): Likewise.
20910 (__arm_vst1q_p_s16): Likewise.
20911 (__arm_vst2q_s16): Likewise.
20912 (__arm_vst2q_u16): Likewise.
20913 (__arm_vld1q_z_u16): Likewise.
20914 (__arm_vld1q_z_s16): Likewise.
20915 (__arm_vld2q_s16): Likewise.
20916 (__arm_vld2q_u16): Likewise.
20917 (__arm_vld4q_s16): Likewise.
20918 (__arm_vld4q_u16): Likewise.
20919 (__arm_vst1q_p_u32): Likewise.
20920 (__arm_vst1q_p_s32): Likewise.
20921 (__arm_vst2q_s32): Likewise.
20922 (__arm_vst2q_u32): Likewise.
20923 (__arm_vld1q_z_u32): Likewise.
20924 (__arm_vld1q_z_s32): Likewise.
20925 (__arm_vld2q_s32): Likewise.
20926 (__arm_vld2q_u32): Likewise.
20927 (__arm_vld4q_s32): Likewise.
20928 (__arm_vld4q_u32): Likewise.
20929 (__arm_vld4q_f16): Likewise.
20930 (__arm_vld2q_f16): Likewise.
20931 (__arm_vld1q_z_f16): Likewise.
20932 (__arm_vst2q_f16): Likewise.
20933 (__arm_vst1q_p_f16): Likewise.
20934 (__arm_vld4q_f32): Likewise.
20935 (__arm_vld2q_f32): Likewise.
20936 (__arm_vld1q_z_f32): Likewise.
20937 (__arm_vst2q_f32): Likewise.
20938 (__arm_vst1q_p_f32): Likewise.
20939 (vld1q_z): Define polymorphic variant.
20942 (vst1q_p): Likewise.
20944 * config/arm/arm_mve_builtins.def (STORE1): Use builtin qualifier.
20946 * config/arm/mve.md (mve_vst2q<mode>): Define RTL pattern.
20947 (mve_vld2q<mode>): Likewise.
20948 (mve_vld4q<mode>): Likewise.
20950 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20951 Andre Vieira <andre.simoesdiasvieira@arm.com>
20952 Mihail Ionescu <mihail.ionescu@arm.com>
20954 * config/arm/arm-builtins.c (ARM_BUILTIN_GET_FPSCR_NZCVQC): Define.
20955 (ARM_BUILTIN_SET_FPSCR_NZCVQC): Likewise.
20956 (arm_init_mve_builtins): Add "__builtin_arm_get_fpscr_nzcvqc" and
20957 "__builtin_arm_set_fpscr_nzcvqc" to arm_builtin_decls array.
20958 (arm_expand_builtin): Define case ARM_BUILTIN_GET_FPSCR_NZCVQC
20959 and ARM_BUILTIN_SET_FPSCR_NZCVQC.
20960 * config/arm/arm_mve.h (vadciq_s32): Define macro.
20961 (vadciq_u32): Likewise.
20962 (vadciq_m_s32): Likewise.
20963 (vadciq_m_u32): Likewise.
20964 (vadcq_s32): Likewise.
20965 (vadcq_u32): Likewise.
20966 (vadcq_m_s32): Likewise.
20967 (vadcq_m_u32): Likewise.
20968 (vsbciq_s32): Likewise.
20969 (vsbciq_u32): Likewise.
20970 (vsbciq_m_s32): Likewise.
20971 (vsbciq_m_u32): Likewise.
20972 (vsbcq_s32): Likewise.
20973 (vsbcq_u32): Likewise.
20974 (vsbcq_m_s32): Likewise.
20975 (vsbcq_m_u32): Likewise.
20976 (__arm_vadciq_s32): Define intrinsic.
20977 (__arm_vadciq_u32): Likewise.
20978 (__arm_vadciq_m_s32): Likewise.
20979 (__arm_vadciq_m_u32): Likewise.
20980 (__arm_vadcq_s32): Likewise.
20981 (__arm_vadcq_u32): Likewise.
20982 (__arm_vadcq_m_s32): Likewise.
20983 (__arm_vadcq_m_u32): Likewise.
20984 (__arm_vsbciq_s32): Likewise.
20985 (__arm_vsbciq_u32): Likewise.
20986 (__arm_vsbciq_m_s32): Likewise.
20987 (__arm_vsbciq_m_u32): Likewise.
20988 (__arm_vsbcq_s32): Likewise.
20989 (__arm_vsbcq_u32): Likewise.
20990 (__arm_vsbcq_m_s32): Likewise.
20991 (__arm_vsbcq_m_u32): Likewise.
20992 (vadciq_m): Define polymorphic variant.
20993 (vadciq): Likewise.
20994 (vadcq_m): Likewise.
20996 (vsbciq_m): Likewise.
20997 (vsbciq): Likewise.
20998 (vsbcq_m): Likewise.
21000 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE): Use builtin
21002 (BINOP_UNONE_UNONE_UNONE): Likewise.
21003 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
21004 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
21005 * config/arm/mve.md (VADCIQ): Define iterator.
21006 (VADCIQ_M): Likewise.
21008 (VSBCQ_M): Likewise.
21009 (VSBCIQ): Likewise.
21010 (VSBCIQ_M): Likewise.
21012 (VADCQ_M): Likewise.
21013 (mve_vadciq_m_<supf>v4si): Define RTL pattern.
21014 (mve_vadciq_<supf>v4si): Likewise.
21015 (mve_vadcq_m_<supf>v4si): Likewise.
21016 (mve_vadcq_<supf>v4si): Likewise.
21017 (mve_vsbciq_m_<supf>v4si): Likewise.
21018 (mve_vsbciq_<supf>v4si): Likewise.
21019 (mve_vsbcq_m_<supf>v4si): Likewise.
21020 (mve_vsbcq_<supf>v4si): Likewise.
21021 (get_fpscr_nzcvqc): Define isns.
21022 (set_fpscr_nzcvqc): Define isns.
21023 * config/arm/unspecs.md (UNSPEC_GET_FPSCR_NZCVQC): Define.
21024 (UNSPEC_SET_FPSCR_NZCVQC): Define.
21026 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21028 * config/arm/arm_mve.h (vddupq_x_n_u8): Define macro.
21029 (vddupq_x_n_u16): Likewise.
21030 (vddupq_x_n_u32): Likewise.
21031 (vddupq_x_wb_u8): Likewise.
21032 (vddupq_x_wb_u16): Likewise.
21033 (vddupq_x_wb_u32): Likewise.
21034 (vdwdupq_x_n_u8): Likewise.
21035 (vdwdupq_x_n_u16): Likewise.
21036 (vdwdupq_x_n_u32): Likewise.
21037 (vdwdupq_x_wb_u8): Likewise.
21038 (vdwdupq_x_wb_u16): Likewise.
21039 (vdwdupq_x_wb_u32): Likewise.
21040 (vidupq_x_n_u8): Likewise.
21041 (vidupq_x_n_u16): Likewise.
21042 (vidupq_x_n_u32): Likewise.
21043 (vidupq_x_wb_u8): Likewise.
21044 (vidupq_x_wb_u16): Likewise.
21045 (vidupq_x_wb_u32): Likewise.
21046 (viwdupq_x_n_u8): Likewise.
21047 (viwdupq_x_n_u16): Likewise.
21048 (viwdupq_x_n_u32): Likewise.
21049 (viwdupq_x_wb_u8): Likewise.
21050 (viwdupq_x_wb_u16): Likewise.
21051 (viwdupq_x_wb_u32): Likewise.
21052 (vdupq_x_n_s8): Likewise.
21053 (vdupq_x_n_s16): Likewise.
21054 (vdupq_x_n_s32): Likewise.
21055 (vdupq_x_n_u8): Likewise.
21056 (vdupq_x_n_u16): Likewise.
21057 (vdupq_x_n_u32): Likewise.
21058 (vminq_x_s8): Likewise.
21059 (vminq_x_s16): Likewise.
21060 (vminq_x_s32): Likewise.
21061 (vminq_x_u8): Likewise.
21062 (vminq_x_u16): Likewise.
21063 (vminq_x_u32): Likewise.
21064 (vmaxq_x_s8): Likewise.
21065 (vmaxq_x_s16): Likewise.
21066 (vmaxq_x_s32): Likewise.
21067 (vmaxq_x_u8): Likewise.
21068 (vmaxq_x_u16): Likewise.
21069 (vmaxq_x_u32): Likewise.
21070 (vabdq_x_s8): Likewise.
21071 (vabdq_x_s16): Likewise.
21072 (vabdq_x_s32): Likewise.
21073 (vabdq_x_u8): Likewise.
21074 (vabdq_x_u16): Likewise.
21075 (vabdq_x_u32): Likewise.
21076 (vabsq_x_s8): Likewise.
21077 (vabsq_x_s16): Likewise.
21078 (vabsq_x_s32): Likewise.
21079 (vaddq_x_s8): Likewise.
21080 (vaddq_x_s16): Likewise.
21081 (vaddq_x_s32): Likewise.
21082 (vaddq_x_n_s8): Likewise.
21083 (vaddq_x_n_s16): Likewise.
21084 (vaddq_x_n_s32): Likewise.
21085 (vaddq_x_u8): Likewise.
21086 (vaddq_x_u16): Likewise.
21087 (vaddq_x_u32): Likewise.
21088 (vaddq_x_n_u8): Likewise.
21089 (vaddq_x_n_u16): Likewise.
21090 (vaddq_x_n_u32): Likewise.
21091 (vclsq_x_s8): Likewise.
21092 (vclsq_x_s16): Likewise.
21093 (vclsq_x_s32): Likewise.
21094 (vclzq_x_s8): Likewise.
21095 (vclzq_x_s16): Likewise.
21096 (vclzq_x_s32): Likewise.
21097 (vclzq_x_u8): Likewise.
21098 (vclzq_x_u16): Likewise.
21099 (vclzq_x_u32): Likewise.
21100 (vnegq_x_s8): Likewise.
21101 (vnegq_x_s16): Likewise.
21102 (vnegq_x_s32): Likewise.
21103 (vmulhq_x_s8): Likewise.
21104 (vmulhq_x_s16): Likewise.
21105 (vmulhq_x_s32): Likewise.
21106 (vmulhq_x_u8): Likewise.
21107 (vmulhq_x_u16): Likewise.
21108 (vmulhq_x_u32): Likewise.
21109 (vmullbq_poly_x_p8): Likewise.
21110 (vmullbq_poly_x_p16): Likewise.
21111 (vmullbq_int_x_s8): Likewise.
21112 (vmullbq_int_x_s16): Likewise.
21113 (vmullbq_int_x_s32): Likewise.
21114 (vmullbq_int_x_u8): Likewise.
21115 (vmullbq_int_x_u16): Likewise.
21116 (vmullbq_int_x_u32): Likewise.
21117 (vmulltq_poly_x_p8): Likewise.
21118 (vmulltq_poly_x_p16): Likewise.
21119 (vmulltq_int_x_s8): Likewise.
21120 (vmulltq_int_x_s16): Likewise.
21121 (vmulltq_int_x_s32): Likewise.
21122 (vmulltq_int_x_u8): Likewise.
21123 (vmulltq_int_x_u16): Likewise.
21124 (vmulltq_int_x_u32): Likewise.
21125 (vmulq_x_s8): Likewise.
21126 (vmulq_x_s16): Likewise.
21127 (vmulq_x_s32): Likewise.
21128 (vmulq_x_n_s8): Likewise.
21129 (vmulq_x_n_s16): Likewise.
21130 (vmulq_x_n_s32): Likewise.
21131 (vmulq_x_u8): Likewise.
21132 (vmulq_x_u16): Likewise.
21133 (vmulq_x_u32): Likewise.
21134 (vmulq_x_n_u8): Likewise.
21135 (vmulq_x_n_u16): Likewise.
21136 (vmulq_x_n_u32): Likewise.
21137 (vsubq_x_s8): Likewise.
21138 (vsubq_x_s16): Likewise.
21139 (vsubq_x_s32): Likewise.
21140 (vsubq_x_n_s8): Likewise.
21141 (vsubq_x_n_s16): Likewise.
21142 (vsubq_x_n_s32): Likewise.
21143 (vsubq_x_u8): Likewise.
21144 (vsubq_x_u16): Likewise.
21145 (vsubq_x_u32): Likewise.
21146 (vsubq_x_n_u8): Likewise.
21147 (vsubq_x_n_u16): Likewise.
21148 (vsubq_x_n_u32): Likewise.
21149 (vcaddq_rot90_x_s8): Likewise.
21150 (vcaddq_rot90_x_s16): Likewise.
21151 (vcaddq_rot90_x_s32): Likewise.
21152 (vcaddq_rot90_x_u8): Likewise.
21153 (vcaddq_rot90_x_u16): Likewise.
21154 (vcaddq_rot90_x_u32): Likewise.
21155 (vcaddq_rot270_x_s8): Likewise.
21156 (vcaddq_rot270_x_s16): Likewise.
21157 (vcaddq_rot270_x_s32): Likewise.
21158 (vcaddq_rot270_x_u8): Likewise.
21159 (vcaddq_rot270_x_u16): Likewise.
21160 (vcaddq_rot270_x_u32): Likewise.
21161 (vhaddq_x_n_s8): Likewise.
21162 (vhaddq_x_n_s16): Likewise.
21163 (vhaddq_x_n_s32): Likewise.
21164 (vhaddq_x_n_u8): Likewise.
21165 (vhaddq_x_n_u16): Likewise.
21166 (vhaddq_x_n_u32): Likewise.
21167 (vhaddq_x_s8): Likewise.
21168 (vhaddq_x_s16): Likewise.
21169 (vhaddq_x_s32): Likewise.
21170 (vhaddq_x_u8): Likewise.
21171 (vhaddq_x_u16): Likewise.
21172 (vhaddq_x_u32): Likewise.
21173 (vhcaddq_rot90_x_s8): Likewise.
21174 (vhcaddq_rot90_x_s16): Likewise.
21175 (vhcaddq_rot90_x_s32): Likewise.
21176 (vhcaddq_rot270_x_s8): Likewise.
21177 (vhcaddq_rot270_x_s16): Likewise.
21178 (vhcaddq_rot270_x_s32): Likewise.
21179 (vhsubq_x_n_s8): Likewise.
21180 (vhsubq_x_n_s16): Likewise.
21181 (vhsubq_x_n_s32): Likewise.
21182 (vhsubq_x_n_u8): Likewise.
21183 (vhsubq_x_n_u16): Likewise.
21184 (vhsubq_x_n_u32): Likewise.
21185 (vhsubq_x_s8): Likewise.
21186 (vhsubq_x_s16): Likewise.
21187 (vhsubq_x_s32): Likewise.
21188 (vhsubq_x_u8): Likewise.
21189 (vhsubq_x_u16): Likewise.
21190 (vhsubq_x_u32): Likewise.
21191 (vrhaddq_x_s8): Likewise.
21192 (vrhaddq_x_s16): Likewise.
21193 (vrhaddq_x_s32): Likewise.
21194 (vrhaddq_x_u8): Likewise.
21195 (vrhaddq_x_u16): Likewise.
21196 (vrhaddq_x_u32): Likewise.
21197 (vrmulhq_x_s8): Likewise.
21198 (vrmulhq_x_s16): Likewise.
21199 (vrmulhq_x_s32): Likewise.
21200 (vrmulhq_x_u8): Likewise.
21201 (vrmulhq_x_u16): Likewise.
21202 (vrmulhq_x_u32): Likewise.
21203 (vandq_x_s8): Likewise.
21204 (vandq_x_s16): Likewise.
21205 (vandq_x_s32): Likewise.
21206 (vandq_x_u8): Likewise.
21207 (vandq_x_u16): Likewise.
21208 (vandq_x_u32): Likewise.
21209 (vbicq_x_s8): Likewise.
21210 (vbicq_x_s16): Likewise.
21211 (vbicq_x_s32): Likewise.
21212 (vbicq_x_u8): Likewise.
21213 (vbicq_x_u16): Likewise.
21214 (vbicq_x_u32): Likewise.
21215 (vbrsrq_x_n_s8): Likewise.
21216 (vbrsrq_x_n_s16): Likewise.
21217 (vbrsrq_x_n_s32): Likewise.
21218 (vbrsrq_x_n_u8): Likewise.
21219 (vbrsrq_x_n_u16): Likewise.
21220 (vbrsrq_x_n_u32): Likewise.
21221 (veorq_x_s8): Likewise.
21222 (veorq_x_s16): Likewise.
21223 (veorq_x_s32): Likewise.
21224 (veorq_x_u8): Likewise.
21225 (veorq_x_u16): Likewise.
21226 (veorq_x_u32): Likewise.
21227 (vmovlbq_x_s8): Likewise.
21228 (vmovlbq_x_s16): Likewise.
21229 (vmovlbq_x_u8): Likewise.
21230 (vmovlbq_x_u16): Likewise.
21231 (vmovltq_x_s8): Likewise.
21232 (vmovltq_x_s16): Likewise.
21233 (vmovltq_x_u8): Likewise.
21234 (vmovltq_x_u16): Likewise.
21235 (vmvnq_x_s8): Likewise.
21236 (vmvnq_x_s16): Likewise.
21237 (vmvnq_x_s32): Likewise.
21238 (vmvnq_x_u8): Likewise.
21239 (vmvnq_x_u16): Likewise.
21240 (vmvnq_x_u32): Likewise.
21241 (vmvnq_x_n_s16): Likewise.
21242 (vmvnq_x_n_s32): Likewise.
21243 (vmvnq_x_n_u16): Likewise.
21244 (vmvnq_x_n_u32): Likewise.
21245 (vornq_x_s8): Likewise.
21246 (vornq_x_s16): Likewise.
21247 (vornq_x_s32): Likewise.
21248 (vornq_x_u8): Likewise.
21249 (vornq_x_u16): Likewise.
21250 (vornq_x_u32): Likewise.
21251 (vorrq_x_s8): Likewise.
21252 (vorrq_x_s16): Likewise.
21253 (vorrq_x_s32): Likewise.
21254 (vorrq_x_u8): Likewise.
21255 (vorrq_x_u16): Likewise.
21256 (vorrq_x_u32): Likewise.
21257 (vrev16q_x_s8): Likewise.
21258 (vrev16q_x_u8): Likewise.
21259 (vrev32q_x_s8): Likewise.
21260 (vrev32q_x_s16): Likewise.
21261 (vrev32q_x_u8): Likewise.
21262 (vrev32q_x_u16): Likewise.
21263 (vrev64q_x_s8): Likewise.
21264 (vrev64q_x_s16): Likewise.
21265 (vrev64q_x_s32): Likewise.
21266 (vrev64q_x_u8): Likewise.
21267 (vrev64q_x_u16): Likewise.
21268 (vrev64q_x_u32): Likewise.
21269 (vrshlq_x_s8): Likewise.
21270 (vrshlq_x_s16): Likewise.
21271 (vrshlq_x_s32): Likewise.
21272 (vrshlq_x_u8): Likewise.
21273 (vrshlq_x_u16): Likewise.
21274 (vrshlq_x_u32): Likewise.
21275 (vshllbq_x_n_s8): Likewise.
21276 (vshllbq_x_n_s16): Likewise.
21277 (vshllbq_x_n_u8): Likewise.
21278 (vshllbq_x_n_u16): Likewise.
21279 (vshlltq_x_n_s8): Likewise.
21280 (vshlltq_x_n_s16): Likewise.
21281 (vshlltq_x_n_u8): Likewise.
21282 (vshlltq_x_n_u16): Likewise.
21283 (vshlq_x_s8): Likewise.
21284 (vshlq_x_s16): Likewise.
21285 (vshlq_x_s32): Likewise.
21286 (vshlq_x_u8): Likewise.
21287 (vshlq_x_u16): Likewise.
21288 (vshlq_x_u32): Likewise.
21289 (vshlq_x_n_s8): Likewise.
21290 (vshlq_x_n_s16): Likewise.
21291 (vshlq_x_n_s32): Likewise.
21292 (vshlq_x_n_u8): Likewise.
21293 (vshlq_x_n_u16): Likewise.
21294 (vshlq_x_n_u32): Likewise.
21295 (vrshrq_x_n_s8): Likewise.
21296 (vrshrq_x_n_s16): Likewise.
21297 (vrshrq_x_n_s32): Likewise.
21298 (vrshrq_x_n_u8): Likewise.
21299 (vrshrq_x_n_u16): Likewise.
21300 (vrshrq_x_n_u32): Likewise.
21301 (vshrq_x_n_s8): Likewise.
21302 (vshrq_x_n_s16): Likewise.
21303 (vshrq_x_n_s32): Likewise.
21304 (vshrq_x_n_u8): Likewise.
21305 (vshrq_x_n_u16): Likewise.
21306 (vshrq_x_n_u32): Likewise.
21307 (vdupq_x_n_f16): Likewise.
21308 (vdupq_x_n_f32): Likewise.
21309 (vminnmq_x_f16): Likewise.
21310 (vminnmq_x_f32): Likewise.
21311 (vmaxnmq_x_f16): Likewise.
21312 (vmaxnmq_x_f32): Likewise.
21313 (vabdq_x_f16): Likewise.
21314 (vabdq_x_f32): Likewise.
21315 (vabsq_x_f16): Likewise.
21316 (vabsq_x_f32): Likewise.
21317 (vaddq_x_f16): Likewise.
21318 (vaddq_x_f32): Likewise.
21319 (vaddq_x_n_f16): Likewise.
21320 (vaddq_x_n_f32): Likewise.
21321 (vnegq_x_f16): Likewise.
21322 (vnegq_x_f32): Likewise.
21323 (vmulq_x_f16): Likewise.
21324 (vmulq_x_f32): Likewise.
21325 (vmulq_x_n_f16): Likewise.
21326 (vmulq_x_n_f32): Likewise.
21327 (vsubq_x_f16): Likewise.
21328 (vsubq_x_f32): Likewise.
21329 (vsubq_x_n_f16): Likewise.
21330 (vsubq_x_n_f32): Likewise.
21331 (vcaddq_rot90_x_f16): Likewise.
21332 (vcaddq_rot90_x_f32): Likewise.
21333 (vcaddq_rot270_x_f16): Likewise.
21334 (vcaddq_rot270_x_f32): Likewise.
21335 (vcmulq_x_f16): Likewise.
21336 (vcmulq_x_f32): Likewise.
21337 (vcmulq_rot90_x_f16): Likewise.
21338 (vcmulq_rot90_x_f32): Likewise.
21339 (vcmulq_rot180_x_f16): Likewise.
21340 (vcmulq_rot180_x_f32): Likewise.
21341 (vcmulq_rot270_x_f16): Likewise.
21342 (vcmulq_rot270_x_f32): Likewise.
21343 (vcvtaq_x_s16_f16): Likewise.
21344 (vcvtaq_x_s32_f32): Likewise.
21345 (vcvtaq_x_u16_f16): Likewise.
21346 (vcvtaq_x_u32_f32): Likewise.
21347 (vcvtnq_x_s16_f16): Likewise.
21348 (vcvtnq_x_s32_f32): Likewise.
21349 (vcvtnq_x_u16_f16): Likewise.
21350 (vcvtnq_x_u32_f32): Likewise.
21351 (vcvtpq_x_s16_f16): Likewise.
21352 (vcvtpq_x_s32_f32): Likewise.
21353 (vcvtpq_x_u16_f16): Likewise.
21354 (vcvtpq_x_u32_f32): Likewise.
21355 (vcvtmq_x_s16_f16): Likewise.
21356 (vcvtmq_x_s32_f32): Likewise.
21357 (vcvtmq_x_u16_f16): Likewise.
21358 (vcvtmq_x_u32_f32): Likewise.
21359 (vcvtbq_x_f32_f16): Likewise.
21360 (vcvttq_x_f32_f16): Likewise.
21361 (vcvtq_x_f16_u16): Likewise.
21362 (vcvtq_x_f16_s16): Likewise.
21363 (vcvtq_x_f32_s32): Likewise.
21364 (vcvtq_x_f32_u32): Likewise.
21365 (vcvtq_x_n_f16_s16): Likewise.
21366 (vcvtq_x_n_f16_u16): Likewise.
21367 (vcvtq_x_n_f32_s32): Likewise.
21368 (vcvtq_x_n_f32_u32): Likewise.
21369 (vcvtq_x_s16_f16): Likewise.
21370 (vcvtq_x_s32_f32): Likewise.
21371 (vcvtq_x_u16_f16): Likewise.
21372 (vcvtq_x_u32_f32): Likewise.
21373 (vcvtq_x_n_s16_f16): Likewise.
21374 (vcvtq_x_n_s32_f32): Likewise.
21375 (vcvtq_x_n_u16_f16): Likewise.
21376 (vcvtq_x_n_u32_f32): Likewise.
21377 (vrndq_x_f16): Likewise.
21378 (vrndq_x_f32): Likewise.
21379 (vrndnq_x_f16): Likewise.
21380 (vrndnq_x_f32): Likewise.
21381 (vrndmq_x_f16): Likewise.
21382 (vrndmq_x_f32): Likewise.
21383 (vrndpq_x_f16): Likewise.
21384 (vrndpq_x_f32): Likewise.
21385 (vrndaq_x_f16): Likewise.
21386 (vrndaq_x_f32): Likewise.
21387 (vrndxq_x_f16): Likewise.
21388 (vrndxq_x_f32): Likewise.
21389 (vandq_x_f16): Likewise.
21390 (vandq_x_f32): Likewise.
21391 (vbicq_x_f16): Likewise.
21392 (vbicq_x_f32): Likewise.
21393 (vbrsrq_x_n_f16): Likewise.
21394 (vbrsrq_x_n_f32): Likewise.
21395 (veorq_x_f16): Likewise.
21396 (veorq_x_f32): Likewise.
21397 (vornq_x_f16): Likewise.
21398 (vornq_x_f32): Likewise.
21399 (vorrq_x_f16): Likewise.
21400 (vorrq_x_f32): Likewise.
21401 (vrev32q_x_f16): Likewise.
21402 (vrev64q_x_f16): Likewise.
21403 (vrev64q_x_f32): Likewise.
21404 (__arm_vddupq_x_n_u8): Define intrinsic.
21405 (__arm_vddupq_x_n_u16): Likewise.
21406 (__arm_vddupq_x_n_u32): Likewise.
21407 (__arm_vddupq_x_wb_u8): Likewise.
21408 (__arm_vddupq_x_wb_u16): Likewise.
21409 (__arm_vddupq_x_wb_u32): Likewise.
21410 (__arm_vdwdupq_x_n_u8): Likewise.
21411 (__arm_vdwdupq_x_n_u16): Likewise.
21412 (__arm_vdwdupq_x_n_u32): Likewise.
21413 (__arm_vdwdupq_x_wb_u8): Likewise.
21414 (__arm_vdwdupq_x_wb_u16): Likewise.
21415 (__arm_vdwdupq_x_wb_u32): Likewise.
21416 (__arm_vidupq_x_n_u8): Likewise.
21417 (__arm_vidupq_x_n_u16): Likewise.
21418 (__arm_vidupq_x_n_u32): Likewise.
21419 (__arm_vidupq_x_wb_u8): Likewise.
21420 (__arm_vidupq_x_wb_u16): Likewise.
21421 (__arm_vidupq_x_wb_u32): Likewise.
21422 (__arm_viwdupq_x_n_u8): Likewise.
21423 (__arm_viwdupq_x_n_u16): Likewise.
21424 (__arm_viwdupq_x_n_u32): Likewise.
21425 (__arm_viwdupq_x_wb_u8): Likewise.
21426 (__arm_viwdupq_x_wb_u16): Likewise.
21427 (__arm_viwdupq_x_wb_u32): Likewise.
21428 (__arm_vdupq_x_n_s8): Likewise.
21429 (__arm_vdupq_x_n_s16): Likewise.
21430 (__arm_vdupq_x_n_s32): Likewise.
21431 (__arm_vdupq_x_n_u8): Likewise.
21432 (__arm_vdupq_x_n_u16): Likewise.
21433 (__arm_vdupq_x_n_u32): Likewise.
21434 (__arm_vminq_x_s8): Likewise.
21435 (__arm_vminq_x_s16): Likewise.
21436 (__arm_vminq_x_s32): Likewise.
21437 (__arm_vminq_x_u8): Likewise.
21438 (__arm_vminq_x_u16): Likewise.
21439 (__arm_vminq_x_u32): Likewise.
21440 (__arm_vmaxq_x_s8): Likewise.
21441 (__arm_vmaxq_x_s16): Likewise.
21442 (__arm_vmaxq_x_s32): Likewise.
21443 (__arm_vmaxq_x_u8): Likewise.
21444 (__arm_vmaxq_x_u16): Likewise.
21445 (__arm_vmaxq_x_u32): Likewise.
21446 (__arm_vabdq_x_s8): Likewise.
21447 (__arm_vabdq_x_s16): Likewise.
21448 (__arm_vabdq_x_s32): Likewise.
21449 (__arm_vabdq_x_u8): Likewise.
21450 (__arm_vabdq_x_u16): Likewise.
21451 (__arm_vabdq_x_u32): Likewise.
21452 (__arm_vabsq_x_s8): Likewise.
21453 (__arm_vabsq_x_s16): Likewise.
21454 (__arm_vabsq_x_s32): Likewise.
21455 (__arm_vaddq_x_s8): Likewise.
21456 (__arm_vaddq_x_s16): Likewise.
21457 (__arm_vaddq_x_s32): Likewise.
21458 (__arm_vaddq_x_n_s8): Likewise.
21459 (__arm_vaddq_x_n_s16): Likewise.
21460 (__arm_vaddq_x_n_s32): Likewise.
21461 (__arm_vaddq_x_u8): Likewise.
21462 (__arm_vaddq_x_u16): Likewise.
21463 (__arm_vaddq_x_u32): Likewise.
21464 (__arm_vaddq_x_n_u8): Likewise.
21465 (__arm_vaddq_x_n_u16): Likewise.
21466 (__arm_vaddq_x_n_u32): Likewise.
21467 (__arm_vclsq_x_s8): Likewise.
21468 (__arm_vclsq_x_s16): Likewise.
21469 (__arm_vclsq_x_s32): Likewise.
21470 (__arm_vclzq_x_s8): Likewise.
21471 (__arm_vclzq_x_s16): Likewise.
21472 (__arm_vclzq_x_s32): Likewise.
21473 (__arm_vclzq_x_u8): Likewise.
21474 (__arm_vclzq_x_u16): Likewise.
21475 (__arm_vclzq_x_u32): Likewise.
21476 (__arm_vnegq_x_s8): Likewise.
21477 (__arm_vnegq_x_s16): Likewise.
21478 (__arm_vnegq_x_s32): Likewise.
21479 (__arm_vmulhq_x_s8): Likewise.
21480 (__arm_vmulhq_x_s16): Likewise.
21481 (__arm_vmulhq_x_s32): Likewise.
21482 (__arm_vmulhq_x_u8): Likewise.
21483 (__arm_vmulhq_x_u16): Likewise.
21484 (__arm_vmulhq_x_u32): Likewise.
21485 (__arm_vmullbq_poly_x_p8): Likewise.
21486 (__arm_vmullbq_poly_x_p16): Likewise.
21487 (__arm_vmullbq_int_x_s8): Likewise.
21488 (__arm_vmullbq_int_x_s16): Likewise.
21489 (__arm_vmullbq_int_x_s32): Likewise.
21490 (__arm_vmullbq_int_x_u8): Likewise.
21491 (__arm_vmullbq_int_x_u16): Likewise.
21492 (__arm_vmullbq_int_x_u32): Likewise.
21493 (__arm_vmulltq_poly_x_p8): Likewise.
21494 (__arm_vmulltq_poly_x_p16): Likewise.
21495 (__arm_vmulltq_int_x_s8): Likewise.
21496 (__arm_vmulltq_int_x_s16): Likewise.
21497 (__arm_vmulltq_int_x_s32): Likewise.
21498 (__arm_vmulltq_int_x_u8): Likewise.
21499 (__arm_vmulltq_int_x_u16): Likewise.
21500 (__arm_vmulltq_int_x_u32): Likewise.
21501 (__arm_vmulq_x_s8): Likewise.
21502 (__arm_vmulq_x_s16): Likewise.
21503 (__arm_vmulq_x_s32): Likewise.
21504 (__arm_vmulq_x_n_s8): Likewise.
21505 (__arm_vmulq_x_n_s16): Likewise.
21506 (__arm_vmulq_x_n_s32): Likewise.
21507 (__arm_vmulq_x_u8): Likewise.
21508 (__arm_vmulq_x_u16): Likewise.
21509 (__arm_vmulq_x_u32): Likewise.
21510 (__arm_vmulq_x_n_u8): Likewise.
21511 (__arm_vmulq_x_n_u16): Likewise.
21512 (__arm_vmulq_x_n_u32): Likewise.
21513 (__arm_vsubq_x_s8): Likewise.
21514 (__arm_vsubq_x_s16): Likewise.
21515 (__arm_vsubq_x_s32): Likewise.
21516 (__arm_vsubq_x_n_s8): Likewise.
21517 (__arm_vsubq_x_n_s16): Likewise.
21518 (__arm_vsubq_x_n_s32): Likewise.
21519 (__arm_vsubq_x_u8): Likewise.
21520 (__arm_vsubq_x_u16): Likewise.
21521 (__arm_vsubq_x_u32): Likewise.
21522 (__arm_vsubq_x_n_u8): Likewise.
21523 (__arm_vsubq_x_n_u16): Likewise.
21524 (__arm_vsubq_x_n_u32): Likewise.
21525 (__arm_vcaddq_rot90_x_s8): Likewise.
21526 (__arm_vcaddq_rot90_x_s16): Likewise.
21527 (__arm_vcaddq_rot90_x_s32): Likewise.
21528 (__arm_vcaddq_rot90_x_u8): Likewise.
21529 (__arm_vcaddq_rot90_x_u16): Likewise.
21530 (__arm_vcaddq_rot90_x_u32): Likewise.
21531 (__arm_vcaddq_rot270_x_s8): Likewise.
21532 (__arm_vcaddq_rot270_x_s16): Likewise.
21533 (__arm_vcaddq_rot270_x_s32): Likewise.
21534 (__arm_vcaddq_rot270_x_u8): Likewise.
21535 (__arm_vcaddq_rot270_x_u16): Likewise.
21536 (__arm_vcaddq_rot270_x_u32): Likewise.
21537 (__arm_vhaddq_x_n_s8): Likewise.
21538 (__arm_vhaddq_x_n_s16): Likewise.
21539 (__arm_vhaddq_x_n_s32): Likewise.
21540 (__arm_vhaddq_x_n_u8): Likewise.
21541 (__arm_vhaddq_x_n_u16): Likewise.
21542 (__arm_vhaddq_x_n_u32): Likewise.
21543 (__arm_vhaddq_x_s8): Likewise.
21544 (__arm_vhaddq_x_s16): Likewise.
21545 (__arm_vhaddq_x_s32): Likewise.
21546 (__arm_vhaddq_x_u8): Likewise.
21547 (__arm_vhaddq_x_u16): Likewise.
21548 (__arm_vhaddq_x_u32): Likewise.
21549 (__arm_vhcaddq_rot90_x_s8): Likewise.
21550 (__arm_vhcaddq_rot90_x_s16): Likewise.
21551 (__arm_vhcaddq_rot90_x_s32): Likewise.
21552 (__arm_vhcaddq_rot270_x_s8): Likewise.
21553 (__arm_vhcaddq_rot270_x_s16): Likewise.
21554 (__arm_vhcaddq_rot270_x_s32): Likewise.
21555 (__arm_vhsubq_x_n_s8): Likewise.
21556 (__arm_vhsubq_x_n_s16): Likewise.
21557 (__arm_vhsubq_x_n_s32): Likewise.
21558 (__arm_vhsubq_x_n_u8): Likewise.
21559 (__arm_vhsubq_x_n_u16): Likewise.
21560 (__arm_vhsubq_x_n_u32): Likewise.
21561 (__arm_vhsubq_x_s8): Likewise.
21562 (__arm_vhsubq_x_s16): Likewise.
21563 (__arm_vhsubq_x_s32): Likewise.
21564 (__arm_vhsubq_x_u8): Likewise.
21565 (__arm_vhsubq_x_u16): Likewise.
21566 (__arm_vhsubq_x_u32): Likewise.
21567 (__arm_vrhaddq_x_s8): Likewise.
21568 (__arm_vrhaddq_x_s16): Likewise.
21569 (__arm_vrhaddq_x_s32): Likewise.
21570 (__arm_vrhaddq_x_u8): Likewise.
21571 (__arm_vrhaddq_x_u16): Likewise.
21572 (__arm_vrhaddq_x_u32): Likewise.
21573 (__arm_vrmulhq_x_s8): Likewise.
21574 (__arm_vrmulhq_x_s16): Likewise.
21575 (__arm_vrmulhq_x_s32): Likewise.
21576 (__arm_vrmulhq_x_u8): Likewise.
21577 (__arm_vrmulhq_x_u16): Likewise.
21578 (__arm_vrmulhq_x_u32): Likewise.
21579 (__arm_vandq_x_s8): Likewise.
21580 (__arm_vandq_x_s16): Likewise.
21581 (__arm_vandq_x_s32): Likewise.
21582 (__arm_vandq_x_u8): Likewise.
21583 (__arm_vandq_x_u16): Likewise.
21584 (__arm_vandq_x_u32): Likewise.
21585 (__arm_vbicq_x_s8): Likewise.
21586 (__arm_vbicq_x_s16): Likewise.
21587 (__arm_vbicq_x_s32): Likewise.
21588 (__arm_vbicq_x_u8): Likewise.
21589 (__arm_vbicq_x_u16): Likewise.
21590 (__arm_vbicq_x_u32): Likewise.
21591 (__arm_vbrsrq_x_n_s8): Likewise.
21592 (__arm_vbrsrq_x_n_s16): Likewise.
21593 (__arm_vbrsrq_x_n_s32): Likewise.
21594 (__arm_vbrsrq_x_n_u8): Likewise.
21595 (__arm_vbrsrq_x_n_u16): Likewise.
21596 (__arm_vbrsrq_x_n_u32): Likewise.
21597 (__arm_veorq_x_s8): Likewise.
21598 (__arm_veorq_x_s16): Likewise.
21599 (__arm_veorq_x_s32): Likewise.
21600 (__arm_veorq_x_u8): Likewise.
21601 (__arm_veorq_x_u16): Likewise.
21602 (__arm_veorq_x_u32): Likewise.
21603 (__arm_vmovlbq_x_s8): Likewise.
21604 (__arm_vmovlbq_x_s16): Likewise.
21605 (__arm_vmovlbq_x_u8): Likewise.
21606 (__arm_vmovlbq_x_u16): Likewise.
21607 (__arm_vmovltq_x_s8): Likewise.
21608 (__arm_vmovltq_x_s16): Likewise.
21609 (__arm_vmovltq_x_u8): Likewise.
21610 (__arm_vmovltq_x_u16): Likewise.
21611 (__arm_vmvnq_x_s8): Likewise.
21612 (__arm_vmvnq_x_s16): Likewise.
21613 (__arm_vmvnq_x_s32): Likewise.
21614 (__arm_vmvnq_x_u8): Likewise.
21615 (__arm_vmvnq_x_u16): Likewise.
21616 (__arm_vmvnq_x_u32): Likewise.
21617 (__arm_vmvnq_x_n_s16): Likewise.
21618 (__arm_vmvnq_x_n_s32): Likewise.
21619 (__arm_vmvnq_x_n_u16): Likewise.
21620 (__arm_vmvnq_x_n_u32): Likewise.
21621 (__arm_vornq_x_s8): Likewise.
21622 (__arm_vornq_x_s16): Likewise.
21623 (__arm_vornq_x_s32): Likewise.
21624 (__arm_vornq_x_u8): Likewise.
21625 (__arm_vornq_x_u16): Likewise.
21626 (__arm_vornq_x_u32): Likewise.
21627 (__arm_vorrq_x_s8): Likewise.
21628 (__arm_vorrq_x_s16): Likewise.
21629 (__arm_vorrq_x_s32): Likewise.
21630 (__arm_vorrq_x_u8): Likewise.
21631 (__arm_vorrq_x_u16): Likewise.
21632 (__arm_vorrq_x_u32): Likewise.
21633 (__arm_vrev16q_x_s8): Likewise.
21634 (__arm_vrev16q_x_u8): Likewise.
21635 (__arm_vrev32q_x_s8): Likewise.
21636 (__arm_vrev32q_x_s16): Likewise.
21637 (__arm_vrev32q_x_u8): Likewise.
21638 (__arm_vrev32q_x_u16): Likewise.
21639 (__arm_vrev64q_x_s8): Likewise.
21640 (__arm_vrev64q_x_s16): Likewise.
21641 (__arm_vrev64q_x_s32): Likewise.
21642 (__arm_vrev64q_x_u8): Likewise.
21643 (__arm_vrev64q_x_u16): Likewise.
21644 (__arm_vrev64q_x_u32): Likewise.
21645 (__arm_vrshlq_x_s8): Likewise.
21646 (__arm_vrshlq_x_s16): Likewise.
21647 (__arm_vrshlq_x_s32): Likewise.
21648 (__arm_vrshlq_x_u8): Likewise.
21649 (__arm_vrshlq_x_u16): Likewise.
21650 (__arm_vrshlq_x_u32): Likewise.
21651 (__arm_vshllbq_x_n_s8): Likewise.
21652 (__arm_vshllbq_x_n_s16): Likewise.
21653 (__arm_vshllbq_x_n_u8): Likewise.
21654 (__arm_vshllbq_x_n_u16): Likewise.
21655 (__arm_vshlltq_x_n_s8): Likewise.
21656 (__arm_vshlltq_x_n_s16): Likewise.
21657 (__arm_vshlltq_x_n_u8): Likewise.
21658 (__arm_vshlltq_x_n_u16): Likewise.
21659 (__arm_vshlq_x_s8): Likewise.
21660 (__arm_vshlq_x_s16): Likewise.
21661 (__arm_vshlq_x_s32): Likewise.
21662 (__arm_vshlq_x_u8): Likewise.
21663 (__arm_vshlq_x_u16): Likewise.
21664 (__arm_vshlq_x_u32): Likewise.
21665 (__arm_vshlq_x_n_s8): Likewise.
21666 (__arm_vshlq_x_n_s16): Likewise.
21667 (__arm_vshlq_x_n_s32): Likewise.
21668 (__arm_vshlq_x_n_u8): Likewise.
21669 (__arm_vshlq_x_n_u16): Likewise.
21670 (__arm_vshlq_x_n_u32): Likewise.
21671 (__arm_vrshrq_x_n_s8): Likewise.
21672 (__arm_vrshrq_x_n_s16): Likewise.
21673 (__arm_vrshrq_x_n_s32): Likewise.
21674 (__arm_vrshrq_x_n_u8): Likewise.
21675 (__arm_vrshrq_x_n_u16): Likewise.
21676 (__arm_vrshrq_x_n_u32): Likewise.
21677 (__arm_vshrq_x_n_s8): Likewise.
21678 (__arm_vshrq_x_n_s16): Likewise.
21679 (__arm_vshrq_x_n_s32): Likewise.
21680 (__arm_vshrq_x_n_u8): Likewise.
21681 (__arm_vshrq_x_n_u16): Likewise.
21682 (__arm_vshrq_x_n_u32): Likewise.
21683 (__arm_vdupq_x_n_f16): Likewise.
21684 (__arm_vdupq_x_n_f32): Likewise.
21685 (__arm_vminnmq_x_f16): Likewise.
21686 (__arm_vminnmq_x_f32): Likewise.
21687 (__arm_vmaxnmq_x_f16): Likewise.
21688 (__arm_vmaxnmq_x_f32): Likewise.
21689 (__arm_vabdq_x_f16): Likewise.
21690 (__arm_vabdq_x_f32): Likewise.
21691 (__arm_vabsq_x_f16): Likewise.
21692 (__arm_vabsq_x_f32): Likewise.
21693 (__arm_vaddq_x_f16): Likewise.
21694 (__arm_vaddq_x_f32): Likewise.
21695 (__arm_vaddq_x_n_f16): Likewise.
21696 (__arm_vaddq_x_n_f32): Likewise.
21697 (__arm_vnegq_x_f16): Likewise.
21698 (__arm_vnegq_x_f32): Likewise.
21699 (__arm_vmulq_x_f16): Likewise.
21700 (__arm_vmulq_x_f32): Likewise.
21701 (__arm_vmulq_x_n_f16): Likewise.
21702 (__arm_vmulq_x_n_f32): Likewise.
21703 (__arm_vsubq_x_f16): Likewise.
21704 (__arm_vsubq_x_f32): Likewise.
21705 (__arm_vsubq_x_n_f16): Likewise.
21706 (__arm_vsubq_x_n_f32): Likewise.
21707 (__arm_vcaddq_rot90_x_f16): Likewise.
21708 (__arm_vcaddq_rot90_x_f32): Likewise.
21709 (__arm_vcaddq_rot270_x_f16): Likewise.
21710 (__arm_vcaddq_rot270_x_f32): Likewise.
21711 (__arm_vcmulq_x_f16): Likewise.
21712 (__arm_vcmulq_x_f32): Likewise.
21713 (__arm_vcmulq_rot90_x_f16): Likewise.
21714 (__arm_vcmulq_rot90_x_f32): Likewise.
21715 (__arm_vcmulq_rot180_x_f16): Likewise.
21716 (__arm_vcmulq_rot180_x_f32): Likewise.
21717 (__arm_vcmulq_rot270_x_f16): Likewise.
21718 (__arm_vcmulq_rot270_x_f32): Likewise.
21719 (__arm_vcvtaq_x_s16_f16): Likewise.
21720 (__arm_vcvtaq_x_s32_f32): Likewise.
21721 (__arm_vcvtaq_x_u16_f16): Likewise.
21722 (__arm_vcvtaq_x_u32_f32): Likewise.
21723 (__arm_vcvtnq_x_s16_f16): Likewise.
21724 (__arm_vcvtnq_x_s32_f32): Likewise.
21725 (__arm_vcvtnq_x_u16_f16): Likewise.
21726 (__arm_vcvtnq_x_u32_f32): Likewise.
21727 (__arm_vcvtpq_x_s16_f16): Likewise.
21728 (__arm_vcvtpq_x_s32_f32): Likewise.
21729 (__arm_vcvtpq_x_u16_f16): Likewise.
21730 (__arm_vcvtpq_x_u32_f32): Likewise.
21731 (__arm_vcvtmq_x_s16_f16): Likewise.
21732 (__arm_vcvtmq_x_s32_f32): Likewise.
21733 (__arm_vcvtmq_x_u16_f16): Likewise.
21734 (__arm_vcvtmq_x_u32_f32): Likewise.
21735 (__arm_vcvtbq_x_f32_f16): Likewise.
21736 (__arm_vcvttq_x_f32_f16): Likewise.
21737 (__arm_vcvtq_x_f16_u16): Likewise.
21738 (__arm_vcvtq_x_f16_s16): Likewise.
21739 (__arm_vcvtq_x_f32_s32): Likewise.
21740 (__arm_vcvtq_x_f32_u32): Likewise.
21741 (__arm_vcvtq_x_n_f16_s16): Likewise.
21742 (__arm_vcvtq_x_n_f16_u16): Likewise.
21743 (__arm_vcvtq_x_n_f32_s32): Likewise.
21744 (__arm_vcvtq_x_n_f32_u32): Likewise.
21745 (__arm_vcvtq_x_s16_f16): Likewise.
21746 (__arm_vcvtq_x_s32_f32): Likewise.
21747 (__arm_vcvtq_x_u16_f16): Likewise.
21748 (__arm_vcvtq_x_u32_f32): Likewise.
21749 (__arm_vcvtq_x_n_s16_f16): Likewise.
21750 (__arm_vcvtq_x_n_s32_f32): Likewise.
21751 (__arm_vcvtq_x_n_u16_f16): Likewise.
21752 (__arm_vcvtq_x_n_u32_f32): Likewise.
21753 (__arm_vrndq_x_f16): Likewise.
21754 (__arm_vrndq_x_f32): Likewise.
21755 (__arm_vrndnq_x_f16): Likewise.
21756 (__arm_vrndnq_x_f32): Likewise.
21757 (__arm_vrndmq_x_f16): Likewise.
21758 (__arm_vrndmq_x_f32): Likewise.
21759 (__arm_vrndpq_x_f16): Likewise.
21760 (__arm_vrndpq_x_f32): Likewise.
21761 (__arm_vrndaq_x_f16): Likewise.
21762 (__arm_vrndaq_x_f32): Likewise.
21763 (__arm_vrndxq_x_f16): Likewise.
21764 (__arm_vrndxq_x_f32): Likewise.
21765 (__arm_vandq_x_f16): Likewise.
21766 (__arm_vandq_x_f32): Likewise.
21767 (__arm_vbicq_x_f16): Likewise.
21768 (__arm_vbicq_x_f32): Likewise.
21769 (__arm_vbrsrq_x_n_f16): Likewise.
21770 (__arm_vbrsrq_x_n_f32): Likewise.
21771 (__arm_veorq_x_f16): Likewise.
21772 (__arm_veorq_x_f32): Likewise.
21773 (__arm_vornq_x_f16): Likewise.
21774 (__arm_vornq_x_f32): Likewise.
21775 (__arm_vorrq_x_f16): Likewise.
21776 (__arm_vorrq_x_f32): Likewise.
21777 (__arm_vrev32q_x_f16): Likewise.
21778 (__arm_vrev64q_x_f16): Likewise.
21779 (__arm_vrev64q_x_f32): Likewise.
21780 (vabdq_x): Define polymorphic variant.
21781 (vabsq_x): Likewise.
21782 (vaddq_x): Likewise.
21783 (vandq_x): Likewise.
21784 (vbicq_x): Likewise.
21785 (vbrsrq_x): Likewise.
21786 (vcaddq_rot270_x): Likewise.
21787 (vcaddq_rot90_x): Likewise.
21788 (vcmulq_rot180_x): Likewise.
21789 (vcmulq_rot270_x): Likewise.
21790 (vcmulq_x): Likewise.
21791 (vcvtq_x): Likewise.
21792 (vcvtq_x_n): Likewise.
21793 (vcvtnq_m): Likewise.
21794 (veorq_x): Likewise.
21795 (vmaxnmq_x): Likewise.
21796 (vminnmq_x): Likewise.
21797 (vmulq_x): Likewise.
21798 (vnegq_x): Likewise.
21799 (vornq_x): Likewise.
21800 (vorrq_x): Likewise.
21801 (vrev32q_x): Likewise.
21802 (vrev64q_x): Likewise.
21803 (vrndaq_x): Likewise.
21804 (vrndmq_x): Likewise.
21805 (vrndnq_x): Likewise.
21806 (vrndpq_x): Likewise.
21807 (vrndq_x): Likewise.
21808 (vrndxq_x): Likewise.
21809 (vsubq_x): Likewise.
21810 (vcmulq_rot90_x): Likewise.
21811 (vadciq): Likewise.
21812 (vclsq_x): Likewise.
21813 (vclzq_x): Likewise.
21814 (vhaddq_x): Likewise.
21815 (vhcaddq_rot270_x): Likewise.
21816 (vhcaddq_rot90_x): Likewise.
21817 (vhsubq_x): Likewise.
21818 (vmaxq_x): Likewise.
21819 (vminq_x): Likewise.
21820 (vmovlbq_x): Likewise.
21821 (vmovltq_x): Likewise.
21822 (vmulhq_x): Likewise.
21823 (vmullbq_int_x): Likewise.
21824 (vmullbq_poly_x): Likewise.
21825 (vmulltq_int_x): Likewise.
21826 (vmulltq_poly_x): Likewise.
21827 (vmvnq_x): Likewise.
21828 (vrev16q_x): Likewise.
21829 (vrhaddq_x): Likewise.
21830 (vrmulhq_x): Likewise.
21831 (vrshlq_x): Likewise.
21832 (vrshrq_x): Likewise.
21833 (vshllbq_x): Likewise.
21834 (vshlltq_x): Likewise.
21835 (vshlq_x_n): Likewise.
21836 (vshlq_x): Likewise.
21837 (vdwdupq_x_u8): Likewise.
21838 (vdwdupq_x_u16): Likewise.
21839 (vdwdupq_x_u32): Likewise.
21840 (viwdupq_x_u8): Likewise.
21841 (viwdupq_x_u16): Likewise.
21842 (viwdupq_x_u32): Likewise.
21843 (vidupq_x_u8): Likewise.
21844 (vddupq_x_u8): Likewise.
21845 (vidupq_x_u16): Likewise.
21846 (vddupq_x_u16): Likewise.
21847 (vidupq_x_u32): Likewise.
21848 (vddupq_x_u32): Likewise.
21849 (vshrq_x): Likewise.
21851 2020-03-20 Richard Biener <rguenther@suse.de>
21853 * tree-vect-slp.c (vect_analyze_slp_instance): Push the stmts
21854 to vectorize for CTOR defs.
21856 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21857 Andre Vieira <andre.simoesdiasvieira@arm.com>
21858 Mihail Ionescu <mihail.ionescu@arm.com>
21860 * config/arm/arm-builtins.c (LDRGBWBS_QUALIFIERS): Define builtin
21862 (LDRGBWBU_QUALIFIERS): Likewise.
21863 (LDRGBWBS_Z_QUALIFIERS): Likewise.
21864 (LDRGBWBU_Z_QUALIFIERS): Likewise.
21865 (STRSBWBS_QUALIFIERS): Likewise.
21866 (STRSBWBU_QUALIFIERS): Likewise.
21867 (STRSBWBS_P_QUALIFIERS): Likewise.
21868 (STRSBWBU_P_QUALIFIERS): Likewise.
21869 * config/arm/arm_mve.h (vldrdq_gather_base_wb_s64): Define macro.
21870 (vldrdq_gather_base_wb_u64): Likewise.
21871 (vldrdq_gather_base_wb_z_s64): Likewise.
21872 (vldrdq_gather_base_wb_z_u64): Likewise.
21873 (vldrwq_gather_base_wb_f32): Likewise.
21874 (vldrwq_gather_base_wb_s32): Likewise.
21875 (vldrwq_gather_base_wb_u32): Likewise.
21876 (vldrwq_gather_base_wb_z_f32): Likewise.
21877 (vldrwq_gather_base_wb_z_s32): Likewise.
21878 (vldrwq_gather_base_wb_z_u32): Likewise.
21879 (vstrdq_scatter_base_wb_p_s64): Likewise.
21880 (vstrdq_scatter_base_wb_p_u64): Likewise.
21881 (vstrdq_scatter_base_wb_s64): Likewise.
21882 (vstrdq_scatter_base_wb_u64): Likewise.
21883 (vstrwq_scatter_base_wb_p_s32): Likewise.
21884 (vstrwq_scatter_base_wb_p_f32): Likewise.
21885 (vstrwq_scatter_base_wb_p_u32): Likewise.
21886 (vstrwq_scatter_base_wb_s32): Likewise.
21887 (vstrwq_scatter_base_wb_u32): Likewise.
21888 (vstrwq_scatter_base_wb_f32): Likewise.
21889 (__arm_vldrdq_gather_base_wb_s64): Define intrinsic.
21890 (__arm_vldrdq_gather_base_wb_u64): Likewise.
21891 (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
21892 (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
21893 (__arm_vldrwq_gather_base_wb_s32): Likewise.
21894 (__arm_vldrwq_gather_base_wb_u32): Likewise.
21895 (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
21896 (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
21897 (__arm_vstrdq_scatter_base_wb_s64): Likewise.
21898 (__arm_vstrdq_scatter_base_wb_u64): Likewise.
21899 (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
21900 (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
21901 (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
21902 (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
21903 (__arm_vstrwq_scatter_base_wb_s32): Likewise.
21904 (__arm_vstrwq_scatter_base_wb_u32): Likewise.
21905 (__arm_vldrwq_gather_base_wb_f32): Likewise.
21906 (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
21907 (__arm_vstrwq_scatter_base_wb_f32): Likewise.
21908 (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
21909 (vstrwq_scatter_base_wb): Define polymorphic variant.
21910 (vstrwq_scatter_base_wb_p): Likewise.
21911 (vstrdq_scatter_base_wb_p): Likewise.
21912 (vstrdq_scatter_base_wb): Likewise.
21913 * config/arm/arm_mve_builtins.def (LDRGBWBS_QUALIFIERS): Use builtin
21915 * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Define RTL
21917 (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
21918 (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Likewise.
21919 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Likewise.
21920 (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
21921 (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Likewise.
21922 (mve_vstrwq_scatter_base_wb_fv4sf): Likewise.
21923 (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
21924 (mve_vstrwq_scatter_base_wb_fv4sf_insn): Likewise.
21925 (mve_vstrwq_scatter_base_wb_p_fv4sf): Likewise.
21926 (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
21927 (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Likewise.
21928 (mve_vstrdq_scatter_base_wb_<supf>v2di): Likewise.
21929 (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
21930 (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Likewise.
21931 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Likewise.
21932 (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
21933 (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Likewise.
21934 (mve_vldrwq_gather_base_wb_<supf>v4si): Likewise.
21935 (mve_vldrwq_gather_base_wb_<supf>v4si_insn): Likewise.
21936 (mve_vldrwq_gather_base_wb_z_<supf>v4si): Likewise.
21937 (mve_vldrwq_gather_base_wb_z_<supf>v4si_insn): Likewise.
21938 (mve_vldrwq_gather_base_wb_fv4sf): Likewise.
21939 (mve_vldrwq_gather_base_wb_fv4sf_insn): Likewise.
21940 (mve_vldrwq_gather_base_wb_z_fv4sf): Likewise.
21941 (mve_vldrwq_gather_base_wb_z_fv4sf_insn): Likewise.
21942 (mve_vldrdq_gather_base_wb_<supf>v2di): Likewise.
21943 (mve_vldrdq_gather_base_wb_<supf>v2di_insn): Likewise.
21944 (mve_vldrdq_gather_base_wb_z_<supf>v2di): Likewise.
21945 (mve_vldrdq_gather_base_wb_z_<supf>v2di_insn): Likewise.
21947 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21948 Andre Vieira <andre.simoesdiasvieira@arm.com>
21949 Mihail Ionescu <mihail.ionescu@arm.com>
21951 * config/arm/arm-builtins.c
21952 (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Define quinary
21954 * config/arm/arm_mve.h (vddupq_m_n_u8): Define macro.
21955 (vddupq_m_n_u32): Likewise.
21956 (vddupq_m_n_u16): Likewise.
21957 (vddupq_m_wb_u8): Likewise.
21958 (vddupq_m_wb_u16): Likewise.
21959 (vddupq_m_wb_u32): Likewise.
21960 (vddupq_n_u8): Likewise.
21961 (vddupq_n_u32): Likewise.
21962 (vddupq_n_u16): Likewise.
21963 (vddupq_wb_u8): Likewise.
21964 (vddupq_wb_u16): Likewise.
21965 (vddupq_wb_u32): Likewise.
21966 (vdwdupq_m_n_u8): Likewise.
21967 (vdwdupq_m_n_u32): Likewise.
21968 (vdwdupq_m_n_u16): Likewise.
21969 (vdwdupq_m_wb_u8): Likewise.
21970 (vdwdupq_m_wb_u32): Likewise.
21971 (vdwdupq_m_wb_u16): Likewise.
21972 (vdwdupq_n_u8): Likewise.
21973 (vdwdupq_n_u32): Likewise.
21974 (vdwdupq_n_u16): Likewise.
21975 (vdwdupq_wb_u8): Likewise.
21976 (vdwdupq_wb_u32): Likewise.
21977 (vdwdupq_wb_u16): Likewise.
21978 (vidupq_m_n_u8): Likewise.
21979 (vidupq_m_n_u32): Likewise.
21980 (vidupq_m_n_u16): Likewise.
21981 (vidupq_m_wb_u8): Likewise.
21982 (vidupq_m_wb_u16): Likewise.
21983 (vidupq_m_wb_u32): Likewise.
21984 (vidupq_n_u8): Likewise.
21985 (vidupq_n_u32): Likewise.
21986 (vidupq_n_u16): Likewise.
21987 (vidupq_wb_u8): Likewise.
21988 (vidupq_wb_u16): Likewise.
21989 (vidupq_wb_u32): Likewise.
21990 (viwdupq_m_n_u8): Likewise.
21991 (viwdupq_m_n_u32): Likewise.
21992 (viwdupq_m_n_u16): Likewise.
21993 (viwdupq_m_wb_u8): Likewise.
21994 (viwdupq_m_wb_u32): Likewise.
21995 (viwdupq_m_wb_u16): Likewise.
21996 (viwdupq_n_u8): Likewise.
21997 (viwdupq_n_u32): Likewise.
21998 (viwdupq_n_u16): Likewise.
21999 (viwdupq_wb_u8): Likewise.
22000 (viwdupq_wb_u32): Likewise.
22001 (viwdupq_wb_u16): Likewise.
22002 (__arm_vddupq_m_n_u8): Define intrinsic.
22003 (__arm_vddupq_m_n_u32): Likewise.
22004 (__arm_vddupq_m_n_u16): Likewise.
22005 (__arm_vddupq_m_wb_u8): Likewise.
22006 (__arm_vddupq_m_wb_u16): Likewise.
22007 (__arm_vddupq_m_wb_u32): Likewise.
22008 (__arm_vddupq_n_u8): Likewise.
22009 (__arm_vddupq_n_u32): Likewise.
22010 (__arm_vddupq_n_u16): Likewise.
22011 (__arm_vdwdupq_m_n_u8): Likewise.
22012 (__arm_vdwdupq_m_n_u32): Likewise.
22013 (__arm_vdwdupq_m_n_u16): Likewise.
22014 (__arm_vdwdupq_m_wb_u8): Likewise.
22015 (__arm_vdwdupq_m_wb_u32): Likewise.
22016 (__arm_vdwdupq_m_wb_u16): Likewise.
22017 (__arm_vdwdupq_n_u8): Likewise.
22018 (__arm_vdwdupq_n_u32): Likewise.
22019 (__arm_vdwdupq_n_u16): Likewise.
22020 (__arm_vdwdupq_wb_u8): Likewise.
22021 (__arm_vdwdupq_wb_u32): Likewise.
22022 (__arm_vdwdupq_wb_u16): Likewise.
22023 (__arm_vidupq_m_n_u8): Likewise.
22024 (__arm_vidupq_m_n_u32): Likewise.
22025 (__arm_vidupq_m_n_u16): Likewise.
22026 (__arm_vidupq_n_u8): Likewise.
22027 (__arm_vidupq_m_wb_u8): Likewise.
22028 (__arm_vidupq_m_wb_u16): Likewise.
22029 (__arm_vidupq_m_wb_u32): Likewise.
22030 (__arm_vidupq_n_u32): Likewise.
22031 (__arm_vidupq_n_u16): Likewise.
22032 (__arm_vidupq_wb_u8): Likewise.
22033 (__arm_vidupq_wb_u16): Likewise.
22034 (__arm_vidupq_wb_u32): Likewise.
22035 (__arm_vddupq_wb_u8): Likewise.
22036 (__arm_vddupq_wb_u16): Likewise.
22037 (__arm_vddupq_wb_u32): Likewise.
22038 (__arm_viwdupq_m_n_u8): Likewise.
22039 (__arm_viwdupq_m_n_u32): Likewise.
22040 (__arm_viwdupq_m_n_u16): Likewise.
22041 (__arm_viwdupq_m_wb_u8): Likewise.
22042 (__arm_viwdupq_m_wb_u32): Likewise.
22043 (__arm_viwdupq_m_wb_u16): Likewise.
22044 (__arm_viwdupq_n_u8): Likewise.
22045 (__arm_viwdupq_n_u32): Likewise.
22046 (__arm_viwdupq_n_u16): Likewise.
22047 (__arm_viwdupq_wb_u8): Likewise.
22048 (__arm_viwdupq_wb_u32): Likewise.
22049 (__arm_viwdupq_wb_u16): Likewise.
22050 (vidupq_m): Define polymorphic variant.
22051 (vddupq_m): Likewise.
22052 (vidupq_u16): Likewise.
22053 (vidupq_u32): Likewise.
22054 (vidupq_u8): Likewise.
22055 (vddupq_u16): Likewise.
22056 (vddupq_u32): Likewise.
22057 (vddupq_u8): Likewise.
22058 (viwdupq_m): Likewise.
22059 (viwdupq_u16): Likewise.
22060 (viwdupq_u32): Likewise.
22061 (viwdupq_u8): Likewise.
22062 (vdwdupq_m): Likewise.
22063 (vdwdupq_u16): Likewise.
22064 (vdwdupq_u32): Likewise.
22065 (vdwdupq_u8): Likewise.
22066 * config/arm/arm_mve_builtins.def
22067 (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Use builtin
22069 * config/arm/mve.md (mve_vidupq_n_u<mode>): Define RTL pattern.
22070 (mve_vidupq_u<mode>_insn): Likewise.
22071 (mve_vidupq_m_n_u<mode>): Likewise.
22072 (mve_vidupq_m_wb_u<mode>_insn): Likewise.
22073 (mve_vddupq_n_u<mode>): Likewise.
22074 (mve_vddupq_u<mode>_insn): Likewise.
22075 (mve_vddupq_m_n_u<mode>): Likewise.
22076 (mve_vddupq_m_wb_u<mode>_insn): Likewise.
22077 (mve_vdwdupq_n_u<mode>): Likewise.
22078 (mve_vdwdupq_wb_u<mode>): Likewise.
22079 (mve_vdwdupq_wb_u<mode>_insn): Likewise.
22080 (mve_vdwdupq_m_n_u<mode>): Likewise.
22081 (mve_vdwdupq_m_wb_u<mode>): Likewise.
22082 (mve_vdwdupq_m_wb_u<mode>_insn): Likewise.
22083 (mve_viwdupq_n_u<mode>): Likewise.
22084 (mve_viwdupq_wb_u<mode>): Likewise.
22085 (mve_viwdupq_wb_u<mode>_insn): Likewise.
22086 (mve_viwdupq_m_n_u<mode>): Likewise.
22087 (mve_viwdupq_m_wb_u<mode>): Likewise.
22088 (mve_viwdupq_m_wb_u<mode>_insn): Likewise.
22090 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22092 * config/arm/arm_mve.h (vreinterpretq_s16_s32): Define macro.
22093 (vreinterpretq_s16_s64): Likewise.
22094 (vreinterpretq_s16_s8): Likewise.
22095 (vreinterpretq_s16_u16): Likewise.
22096 (vreinterpretq_s16_u32): Likewise.
22097 (vreinterpretq_s16_u64): Likewise.
22098 (vreinterpretq_s16_u8): Likewise.
22099 (vreinterpretq_s32_s16): Likewise.
22100 (vreinterpretq_s32_s64): Likewise.
22101 (vreinterpretq_s32_s8): Likewise.
22102 (vreinterpretq_s32_u16): Likewise.
22103 (vreinterpretq_s32_u32): Likewise.
22104 (vreinterpretq_s32_u64): Likewise.
22105 (vreinterpretq_s32_u8): Likewise.
22106 (vreinterpretq_s64_s16): Likewise.
22107 (vreinterpretq_s64_s32): Likewise.
22108 (vreinterpretq_s64_s8): Likewise.
22109 (vreinterpretq_s64_u16): Likewise.
22110 (vreinterpretq_s64_u32): Likewise.
22111 (vreinterpretq_s64_u64): Likewise.
22112 (vreinterpretq_s64_u8): Likewise.
22113 (vreinterpretq_s8_s16): Likewise.
22114 (vreinterpretq_s8_s32): Likewise.
22115 (vreinterpretq_s8_s64): Likewise.
22116 (vreinterpretq_s8_u16): Likewise.
22117 (vreinterpretq_s8_u32): Likewise.
22118 (vreinterpretq_s8_u64): Likewise.
22119 (vreinterpretq_s8_u8): Likewise.
22120 (vreinterpretq_u16_s16): Likewise.
22121 (vreinterpretq_u16_s32): Likewise.
22122 (vreinterpretq_u16_s64): Likewise.
22123 (vreinterpretq_u16_s8): Likewise.
22124 (vreinterpretq_u16_u32): Likewise.
22125 (vreinterpretq_u16_u64): Likewise.
22126 (vreinterpretq_u16_u8): Likewise.
22127 (vreinterpretq_u32_s16): Likewise.
22128 (vreinterpretq_u32_s32): Likewise.
22129 (vreinterpretq_u32_s64): Likewise.
22130 (vreinterpretq_u32_s8): Likewise.
22131 (vreinterpretq_u32_u16): Likewise.
22132 (vreinterpretq_u32_u64): Likewise.
22133 (vreinterpretq_u32_u8): Likewise.
22134 (vreinterpretq_u64_s16): Likewise.
22135 (vreinterpretq_u64_s32): Likewise.
22136 (vreinterpretq_u64_s64): Likewise.
22137 (vreinterpretq_u64_s8): Likewise.
22138 (vreinterpretq_u64_u16): Likewise.
22139 (vreinterpretq_u64_u32): Likewise.
22140 (vreinterpretq_u64_u8): Likewise.
22141 (vreinterpretq_u8_s16): Likewise.
22142 (vreinterpretq_u8_s32): Likewise.
22143 (vreinterpretq_u8_s64): Likewise.
22144 (vreinterpretq_u8_s8): Likewise.
22145 (vreinterpretq_u8_u16): Likewise.
22146 (vreinterpretq_u8_u32): Likewise.
22147 (vreinterpretq_u8_u64): Likewise.
22148 (vreinterpretq_s32_f16): Likewise.
22149 (vreinterpretq_s32_f32): Likewise.
22150 (vreinterpretq_u16_f16): Likewise.
22151 (vreinterpretq_u16_f32): Likewise.
22152 (vreinterpretq_u32_f16): Likewise.
22153 (vreinterpretq_u32_f32): Likewise.
22154 (vreinterpretq_u64_f16): Likewise.
22155 (vreinterpretq_u64_f32): Likewise.
22156 (vreinterpretq_u8_f16): Likewise.
22157 (vreinterpretq_u8_f32): Likewise.
22158 (vreinterpretq_f16_f32): Likewise.
22159 (vreinterpretq_f16_s16): Likewise.
22160 (vreinterpretq_f16_s32): Likewise.
22161 (vreinterpretq_f16_s64): Likewise.
22162 (vreinterpretq_f16_s8): Likewise.
22163 (vreinterpretq_f16_u16): Likewise.
22164 (vreinterpretq_f16_u32): Likewise.
22165 (vreinterpretq_f16_u64): Likewise.
22166 (vreinterpretq_f16_u8): Likewise.
22167 (vreinterpretq_f32_f16): Likewise.
22168 (vreinterpretq_f32_s16): Likewise.
22169 (vreinterpretq_f32_s32): Likewise.
22170 (vreinterpretq_f32_s64): Likewise.
22171 (vreinterpretq_f32_s8): Likewise.
22172 (vreinterpretq_f32_u16): Likewise.
22173 (vreinterpretq_f32_u32): Likewise.
22174 (vreinterpretq_f32_u64): Likewise.
22175 (vreinterpretq_f32_u8): Likewise.
22176 (vreinterpretq_s16_f16): Likewise.
22177 (vreinterpretq_s16_f32): Likewise.
22178 (vreinterpretq_s64_f16): Likewise.
22179 (vreinterpretq_s64_f32): Likewise.
22180 (vreinterpretq_s8_f16): Likewise.
22181 (vreinterpretq_s8_f32): Likewise.
22182 (vuninitializedq_u8): Likewise.
22183 (vuninitializedq_u16): Likewise.
22184 (vuninitializedq_u32): Likewise.
22185 (vuninitializedq_u64): Likewise.
22186 (vuninitializedq_s8): Likewise.
22187 (vuninitializedq_s16): Likewise.
22188 (vuninitializedq_s32): Likewise.
22189 (vuninitializedq_s64): Likewise.
22190 (vuninitializedq_f16): Likewise.
22191 (vuninitializedq_f32): Likewise.
22192 (__arm_vuninitializedq_u8): Define intrinsic.
22193 (__arm_vuninitializedq_u16): Likewise.
22194 (__arm_vuninitializedq_u32): Likewise.
22195 (__arm_vuninitializedq_u64): Likewise.
22196 (__arm_vuninitializedq_s8): Likewise.
22197 (__arm_vuninitializedq_s16): Likewise.
22198 (__arm_vuninitializedq_s32): Likewise.
22199 (__arm_vuninitializedq_s64): Likewise.
22200 (__arm_vreinterpretq_s16_s32): Likewise.
22201 (__arm_vreinterpretq_s16_s64): Likewise.
22202 (__arm_vreinterpretq_s16_s8): Likewise.
22203 (__arm_vreinterpretq_s16_u16): Likewise.
22204 (__arm_vreinterpretq_s16_u32): Likewise.
22205 (__arm_vreinterpretq_s16_u64): Likewise.
22206 (__arm_vreinterpretq_s16_u8): Likewise.
22207 (__arm_vreinterpretq_s32_s16): Likewise.
22208 (__arm_vreinterpretq_s32_s64): Likewise.
22209 (__arm_vreinterpretq_s32_s8): Likewise.
22210 (__arm_vreinterpretq_s32_u16): Likewise.
22211 (__arm_vreinterpretq_s32_u32): Likewise.
22212 (__arm_vreinterpretq_s32_u64): Likewise.
22213 (__arm_vreinterpretq_s32_u8): Likewise.
22214 (__arm_vreinterpretq_s64_s16): Likewise.
22215 (__arm_vreinterpretq_s64_s32): Likewise.
22216 (__arm_vreinterpretq_s64_s8): Likewise.
22217 (__arm_vreinterpretq_s64_u16): Likewise.
22218 (__arm_vreinterpretq_s64_u32): Likewise.
22219 (__arm_vreinterpretq_s64_u64): Likewise.
22220 (__arm_vreinterpretq_s64_u8): Likewise.
22221 (__arm_vreinterpretq_s8_s16): Likewise.
22222 (__arm_vreinterpretq_s8_s32): Likewise.
22223 (__arm_vreinterpretq_s8_s64): Likewise.
22224 (__arm_vreinterpretq_s8_u16): Likewise.
22225 (__arm_vreinterpretq_s8_u32): Likewise.
22226 (__arm_vreinterpretq_s8_u64): Likewise.
22227 (__arm_vreinterpretq_s8_u8): Likewise.
22228 (__arm_vreinterpretq_u16_s16): Likewise.
22229 (__arm_vreinterpretq_u16_s32): Likewise.
22230 (__arm_vreinterpretq_u16_s64): Likewise.
22231 (__arm_vreinterpretq_u16_s8): Likewise.
22232 (__arm_vreinterpretq_u16_u32): Likewise.
22233 (__arm_vreinterpretq_u16_u64): Likewise.
22234 (__arm_vreinterpretq_u16_u8): Likewise.
22235 (__arm_vreinterpretq_u32_s16): Likewise.
22236 (__arm_vreinterpretq_u32_s32): Likewise.
22237 (__arm_vreinterpretq_u32_s64): Likewise.
22238 (__arm_vreinterpretq_u32_s8): Likewise.
22239 (__arm_vreinterpretq_u32_u16): Likewise.
22240 (__arm_vreinterpretq_u32_u64): Likewise.
22241 (__arm_vreinterpretq_u32_u8): Likewise.
22242 (__arm_vreinterpretq_u64_s16): Likewise.
22243 (__arm_vreinterpretq_u64_s32): Likewise.
22244 (__arm_vreinterpretq_u64_s64): Likewise.
22245 (__arm_vreinterpretq_u64_s8): Likewise.
22246 (__arm_vreinterpretq_u64_u16): Likewise.
22247 (__arm_vreinterpretq_u64_u32): Likewise.
22248 (__arm_vreinterpretq_u64_u8): Likewise.
22249 (__arm_vreinterpretq_u8_s16): Likewise.
22250 (__arm_vreinterpretq_u8_s32): Likewise.
22251 (__arm_vreinterpretq_u8_s64): Likewise.
22252 (__arm_vreinterpretq_u8_s8): Likewise.
22253 (__arm_vreinterpretq_u8_u16): Likewise.
22254 (__arm_vreinterpretq_u8_u32): Likewise.
22255 (__arm_vreinterpretq_u8_u64): Likewise.
22256 (__arm_vuninitializedq_f16): Likewise.
22257 (__arm_vuninitializedq_f32): Likewise.
22258 (__arm_vreinterpretq_s32_f16): Likewise.
22259 (__arm_vreinterpretq_s32_f32): Likewise.
22260 (__arm_vreinterpretq_s16_f16): Likewise.
22261 (__arm_vreinterpretq_s16_f32): Likewise.
22262 (__arm_vreinterpretq_s64_f16): Likewise.
22263 (__arm_vreinterpretq_s64_f32): Likewise.
22264 (__arm_vreinterpretq_s8_f16): Likewise.
22265 (__arm_vreinterpretq_s8_f32): Likewise.
22266 (__arm_vreinterpretq_u16_f16): Likewise.
22267 (__arm_vreinterpretq_u16_f32): Likewise.
22268 (__arm_vreinterpretq_u32_f16): Likewise.
22269 (__arm_vreinterpretq_u32_f32): Likewise.
22270 (__arm_vreinterpretq_u64_f16): Likewise.
22271 (__arm_vreinterpretq_u64_f32): Likewise.
22272 (__arm_vreinterpretq_u8_f16): Likewise.
22273 (__arm_vreinterpretq_u8_f32): Likewise.
22274 (__arm_vreinterpretq_f16_f32): Likewise.
22275 (__arm_vreinterpretq_f16_s16): Likewise.
22276 (__arm_vreinterpretq_f16_s32): Likewise.
22277 (__arm_vreinterpretq_f16_s64): Likewise.
22278 (__arm_vreinterpretq_f16_s8): Likewise.
22279 (__arm_vreinterpretq_f16_u16): Likewise.
22280 (__arm_vreinterpretq_f16_u32): Likewise.
22281 (__arm_vreinterpretq_f16_u64): Likewise.
22282 (__arm_vreinterpretq_f16_u8): Likewise.
22283 (__arm_vreinterpretq_f32_f16): Likewise.
22284 (__arm_vreinterpretq_f32_s16): Likewise.
22285 (__arm_vreinterpretq_f32_s32): Likewise.
22286 (__arm_vreinterpretq_f32_s64): Likewise.
22287 (__arm_vreinterpretq_f32_s8): Likewise.
22288 (__arm_vreinterpretq_f32_u16): Likewise.
22289 (__arm_vreinterpretq_f32_u32): Likewise.
22290 (__arm_vreinterpretq_f32_u64): Likewise.
22291 (__arm_vreinterpretq_f32_u8): Likewise.
22292 (vuninitializedq): Define polymorphic variant.
22293 (vreinterpretq_f16): Likewise.
22294 (vreinterpretq_f32): Likewise.
22295 (vreinterpretq_s16): Likewise.
22296 (vreinterpretq_s32): Likewise.
22297 (vreinterpretq_s64): Likewise.
22298 (vreinterpretq_s8): Likewise.
22299 (vreinterpretq_u16): Likewise.
22300 (vreinterpretq_u32): Likewise.
22301 (vreinterpretq_u64): Likewise.
22302 (vreinterpretq_u8): Likewise.
22304 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22305 Andre Vieira <andre.simoesdiasvieira@arm.com>
22306 Mihail Ionescu <mihail.ionescu@arm.com>
22308 * config/arm/arm_mve.h (vaddq_s8): Define macro.
22309 (vaddq_s16): Likewise.
22310 (vaddq_s32): Likewise.
22311 (vaddq_u8): Likewise.
22312 (vaddq_u16): Likewise.
22313 (vaddq_u32): Likewise.
22314 (vaddq_f16): Likewise.
22315 (vaddq_f32): Likewise.
22316 (__arm_vaddq_s8): Define intrinsic.
22317 (__arm_vaddq_s16): Likewise.
22318 (__arm_vaddq_s32): Likewise.
22319 (__arm_vaddq_u8): Likewise.
22320 (__arm_vaddq_u16): Likewise.
22321 (__arm_vaddq_u32): Likewise.
22322 (__arm_vaddq_f16): Likewise.
22323 (__arm_vaddq_f32): Likewise.
22324 (vaddq): Define polymorphic variant.
22325 * config/arm/iterators.md (VNIM): Define mode iterator for common types
22326 Neon, IWMMXT and MVE.
22327 (VNINOTM): Likewise.
22328 * config/arm/mve.md (mve_vaddq<mode>): Define RTL pattern.
22329 (mve_vaddq_f<mode>): Define RTL pattern.
22330 * config/arm/neon.md (add<mode>3): Rename to addv4hf3 RTL pattern.
22331 (addv8hf3_neon): Define RTL pattern.
22332 * config/arm/vec-common.md (add<mode>3): Modify standard add RTL pattern
22334 (addv8hf3): Define standard RTL pattern for MVE and Neon.
22335 (add<mode>3): Modify existing standard add RTL pattern for Neon and IWMMXT.
22337 2020-03-20 Martin Liska <mliska@suse.cz>
22340 * ipa-cp.c (ipa_get_jf_ancestor_result): Use offset in bytes. Previously
22341 build_ref_for_offset function was used and it transforms off to bytes
22344 2020-03-20 Richard Biener <rguenther@suse.de>
22346 PR tree-optimization/94266
22347 * gimple-ssa-sprintf.c (get_origin_and_offset): Use the
22348 type of the underlying object to adjust for the containing
22349 field if available.
22351 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22353 * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Rename this to ...
22354 (VUNSPEC_GET_FPSCR): ... this, and move it to vunspec.
22355 * config/arm/vfp.md: (get_fpscr, set_fpscr): Revert to old patterns.
22357 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22359 * config/arm/mve.md (mve_mov<mode>): Fix R->R case.
22361 2020-03-20 Jakub Jelinek <jakub@redhat.com>
22363 PR tree-optimization/94224
22364 * gimple-ssa-store-merging.c
22365 (imm_store_chain_info::coalesce_immediate): Don't consider overlapping
22366 or adjacent INTEGER_CST rhs_code stores as mergeable if they have
22369 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22371 * config/arm/arm.md (define_attr "conds"): Fix logic for neon and mve.
22373 2020-03-19 Jan Hubicka <hubicka@ucw.cz>
22376 * cgraph.c (cgraph_node::function_symbol): Fix availability computation.
22377 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
22379 2020-03-19 Jan Hubicka <hubicka@ucw.cz>
22382 * cgraphunit.c (process_function_and_variable_attributes): warn
22383 for flatten attribute on alias.
22384 * ipa-inline.c (ipa_inline): Do not ICE on flatten attribute on alias.
22386 2020-03-19 Martin Liska <mliska@suse.cz>
22388 * lto-section-in.c: Add ext_symtab.
22389 * lto-streamer-out.c (write_symbol_extension_info): New.
22390 (produce_symtab_extension): New.
22391 (produce_asm_for_decls): Stream also produce_symtab_extension.
22392 * lto-streamer.h (enum lto_section_type): New section.
22394 2020-03-19 Jakub Jelinek <jakub@redhat.com>
22396 PR tree-optimization/94211
22397 * tree-ssa-phiopt.c (value_replacement): Use estimate_num_insns_seq
22398 instead of estimate_num_insns for bb_seq (middle_bb). Rename
22399 emtpy_or_with_defined_p variable to empty_or_with_defined_p, adjust
22402 2020-03-19 Richard Biener <rguenther@suse.de>
22405 * ipa-cp.c (ipa_get_jf_ancestor_result): Avoid build_fold_addr_expr
22406 and build_ref_for_offset.
22408 2020-03-19 Richard Biener <rguenther@suse.de>
22410 PR middle-end/94216
22411 * fold-const.c (fold_binary_loc): Avoid using
22412 build_fold_addr_expr when we really want an ADDR_EXPR.
22414 2020-03-18 Segher Boessenkool <segher@kernel.crashing.org>
22416 * config/rs6000/constraints.md (wd, wf, wi, ws, ww): New undocumented
22419 2020-03-12 Richard Sandiford <richard.sandiford@arm.com>
22421 PR rtl-optimization/90275
22422 * cse.c (cse_insn): Delete no-op register moves too.
22424 2020-03-18 Martin Sebor <msebor@redhat.com>
22427 * cgraphunit.c (process_function_and_variable_attributes): Also
22428 complain about weakref function definitions and drop all effects
22431 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
22432 Mihail Ionescu <mihail.ionescu@arm.com>
22433 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22435 * config/arm/arm_mve.h (vstrdq_scatter_base_p_s64): Define macro.
22436 (vstrdq_scatter_base_p_u64): Likewise.
22437 (vstrdq_scatter_base_s64): Likewise.
22438 (vstrdq_scatter_base_u64): Likewise.
22439 (vstrdq_scatter_offset_p_s64): Likewise.
22440 (vstrdq_scatter_offset_p_u64): Likewise.
22441 (vstrdq_scatter_offset_s64): Likewise.
22442 (vstrdq_scatter_offset_u64): Likewise.
22443 (vstrdq_scatter_shifted_offset_p_s64): Likewise.
22444 (vstrdq_scatter_shifted_offset_p_u64): Likewise.
22445 (vstrdq_scatter_shifted_offset_s64): Likewise.
22446 (vstrdq_scatter_shifted_offset_u64): Likewise.
22447 (vstrhq_scatter_offset_f16): Likewise.
22448 (vstrhq_scatter_offset_p_f16): Likewise.
22449 (vstrhq_scatter_shifted_offset_f16): Likewise.
22450 (vstrhq_scatter_shifted_offset_p_f16): Likewise.
22451 (vstrwq_scatter_base_f32): Likewise.
22452 (vstrwq_scatter_base_p_f32): Likewise.
22453 (vstrwq_scatter_offset_f32): Likewise.
22454 (vstrwq_scatter_offset_p_f32): Likewise.
22455 (vstrwq_scatter_offset_p_s32): Likewise.
22456 (vstrwq_scatter_offset_p_u32): Likewise.
22457 (vstrwq_scatter_offset_s32): Likewise.
22458 (vstrwq_scatter_offset_u32): Likewise.
22459 (vstrwq_scatter_shifted_offset_f32): Likewise.
22460 (vstrwq_scatter_shifted_offset_p_f32): Likewise.
22461 (vstrwq_scatter_shifted_offset_p_s32): Likewise.
22462 (vstrwq_scatter_shifted_offset_p_u32): Likewise.
22463 (vstrwq_scatter_shifted_offset_s32): Likewise.
22464 (vstrwq_scatter_shifted_offset_u32): Likewise.
22465 (__arm_vstrdq_scatter_base_p_s64): Define intrinsic.
22466 (__arm_vstrdq_scatter_base_p_u64): Likewise.
22467 (__arm_vstrdq_scatter_base_s64): Likewise.
22468 (__arm_vstrdq_scatter_base_u64): Likewise.
22469 (__arm_vstrdq_scatter_offset_p_s64): Likewise.
22470 (__arm_vstrdq_scatter_offset_p_u64): Likewise.
22471 (__arm_vstrdq_scatter_offset_s64): Likewise.
22472 (__arm_vstrdq_scatter_offset_u64): Likewise.
22473 (__arm_vstrdq_scatter_shifted_offset_p_s64): Likewise.
22474 (__arm_vstrdq_scatter_shifted_offset_p_u64): Likewise.
22475 (__arm_vstrdq_scatter_shifted_offset_s64): Likewise.
22476 (__arm_vstrdq_scatter_shifted_offset_u64): Likewise.
22477 (__arm_vstrwq_scatter_offset_p_s32): Likewise.
22478 (__arm_vstrwq_scatter_offset_p_u32): Likewise.
22479 (__arm_vstrwq_scatter_offset_s32): Likewise.
22480 (__arm_vstrwq_scatter_offset_u32): Likewise.
22481 (__arm_vstrwq_scatter_shifted_offset_p_s32): Likewise.
22482 (__arm_vstrwq_scatter_shifted_offset_p_u32): Likewise.
22483 (__arm_vstrwq_scatter_shifted_offset_s32): Likewise.
22484 (__arm_vstrwq_scatter_shifted_offset_u32): Likewise.
22485 (__arm_vstrhq_scatter_offset_f16): Likewise.
22486 (__arm_vstrhq_scatter_offset_p_f16): Likewise.
22487 (__arm_vstrhq_scatter_shifted_offset_f16): Likewise.
22488 (__arm_vstrhq_scatter_shifted_offset_p_f16): Likewise.
22489 (__arm_vstrwq_scatter_base_f32): Likewise.
22490 (__arm_vstrwq_scatter_base_p_f32): Likewise.
22491 (__arm_vstrwq_scatter_offset_f32): Likewise.
22492 (__arm_vstrwq_scatter_offset_p_f32): Likewise.
22493 (__arm_vstrwq_scatter_shifted_offset_f32): Likewise.
22494 (__arm_vstrwq_scatter_shifted_offset_p_f32): Likewise.
22495 (vstrhq_scatter_offset): Define polymorphic variant.
22496 (vstrhq_scatter_offset_p): Likewise.
22497 (vstrhq_scatter_shifted_offset): Likewise.
22498 (vstrhq_scatter_shifted_offset_p): Likewise.
22499 (vstrwq_scatter_base): Likewise.
22500 (vstrwq_scatter_base_p): Likewise.
22501 (vstrwq_scatter_offset): Likewise.
22502 (vstrwq_scatter_offset_p): Likewise.
22503 (vstrwq_scatter_shifted_offset): Likewise.
22504 (vstrwq_scatter_shifted_offset_p): Likewise.
22505 (vstrdq_scatter_base_p): Likewise.
22506 (vstrdq_scatter_base): Likewise.
22507 (vstrdq_scatter_offset_p): Likewise.
22508 (vstrdq_scatter_offset): Likewise.
22509 (vstrdq_scatter_shifted_offset_p): Likewise.
22510 (vstrdq_scatter_shifted_offset): Likewise.
22511 * config/arm/arm_mve_builtins.def (STRSBS): Use builtin qualifier.
22512 (STRSBS_P): Likewise.
22513 (STRSBU): Likewise.
22514 (STRSBU_P): Likewise.
22516 (STRSS_P): Likewise.
22518 (STRSU_P): Likewise.
22519 * config/arm/constraints.md (Ri): Define.
22520 * config/arm/mve.md (VSTRDSBQ): Define iterator.
22521 (VSTRDSOQ): Likewise.
22522 (VSTRDSSOQ): Likewise.
22523 (VSTRWSOQ): Likewise.
22524 (VSTRWSSOQ): Likewise.
22525 (mve_vstrdq_scatter_base_p_<supf>v2di): Define RTL pattern.
22526 (mve_vstrdq_scatter_base_<supf>v2di): Likewise.
22527 (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
22528 (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
22529 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
22530 (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
22531 (mve_vstrhq_scatter_offset_fv8hf): Likewise.
22532 (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
22533 (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
22534 (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
22535 (mve_vstrwq_scatter_base_fv4sf): Likewise.
22536 (mve_vstrwq_scatter_base_p_fv4sf): Likewise.
22537 (mve_vstrwq_scatter_offset_fv4sf): Likewise.
22538 (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
22539 (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
22540 (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
22541 (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
22542 (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
22543 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
22544 (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
22545 * config/arm/predicates.md (Ri): Define predicate to check immediate
22546 is the range +/-1016 and multiple of 8.
22548 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
22549 Mihail Ionescu <mihail.ionescu@arm.com>
22550 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22552 * config/arm/arm_mve.h (vst1q_f32): Define macro.
22553 (vst1q_f16): Likewise.
22554 (vst1q_s8): Likewise.
22555 (vst1q_s32): Likewise.
22556 (vst1q_s16): Likewise.
22557 (vst1q_u8): Likewise.
22558 (vst1q_u32): Likewise.
22559 (vst1q_u16): Likewise.
22560 (vstrhq_f16): Likewise.
22561 (vstrhq_scatter_offset_s32): Likewise.
22562 (vstrhq_scatter_offset_s16): Likewise.
22563 (vstrhq_scatter_offset_u32): Likewise.
22564 (vstrhq_scatter_offset_u16): Likewise.
22565 (vstrhq_scatter_offset_p_s32): Likewise.
22566 (vstrhq_scatter_offset_p_s16): Likewise.
22567 (vstrhq_scatter_offset_p_u32): Likewise.
22568 (vstrhq_scatter_offset_p_u16): Likewise.
22569 (vstrhq_scatter_shifted_offset_s32): Likewise.
22570 (vstrhq_scatter_shifted_offset_s16): Likewise.
22571 (vstrhq_scatter_shifted_offset_u32): Likewise.
22572 (vstrhq_scatter_shifted_offset_u16): Likewise.
22573 (vstrhq_scatter_shifted_offset_p_s32): Likewise.
22574 (vstrhq_scatter_shifted_offset_p_s16): Likewise.
22575 (vstrhq_scatter_shifted_offset_p_u32): Likewise.
22576 (vstrhq_scatter_shifted_offset_p_u16): Likewise.
22577 (vstrhq_s32): Likewise.
22578 (vstrhq_s16): Likewise.
22579 (vstrhq_u32): Likewise.
22580 (vstrhq_u16): Likewise.
22581 (vstrhq_p_f16): Likewise.
22582 (vstrhq_p_s32): Likewise.
22583 (vstrhq_p_s16): Likewise.
22584 (vstrhq_p_u32): Likewise.
22585 (vstrhq_p_u16): Likewise.
22586 (vstrwq_f32): Likewise.
22587 (vstrwq_s32): Likewise.
22588 (vstrwq_u32): Likewise.
22589 (vstrwq_p_f32): Likewise.
22590 (vstrwq_p_s32): Likewise.
22591 (vstrwq_p_u32): Likewise.
22592 (__arm_vst1q_s8): Define intrinsic.
22593 (__arm_vst1q_s32): Likewise.
22594 (__arm_vst1q_s16): Likewise.
22595 (__arm_vst1q_u8): Likewise.
22596 (__arm_vst1q_u32): Likewise.
22597 (__arm_vst1q_u16): Likewise.
22598 (__arm_vstrhq_scatter_offset_s32): Likewise.
22599 (__arm_vstrhq_scatter_offset_s16): Likewise.
22600 (__arm_vstrhq_scatter_offset_u32): Likewise.
22601 (__arm_vstrhq_scatter_offset_u16): Likewise.
22602 (__arm_vstrhq_scatter_offset_p_s32): Likewise.
22603 (__arm_vstrhq_scatter_offset_p_s16): Likewise.
22604 (__arm_vstrhq_scatter_offset_p_u32): Likewise.
22605 (__arm_vstrhq_scatter_offset_p_u16): Likewise.
22606 (__arm_vstrhq_scatter_shifted_offset_s32): Likewise.
22607 (__arm_vstrhq_scatter_shifted_offset_s16): Likewise.
22608 (__arm_vstrhq_scatter_shifted_offset_u32): Likewise.
22609 (__arm_vstrhq_scatter_shifted_offset_u16): Likewise.
22610 (__arm_vstrhq_scatter_shifted_offset_p_s32): Likewise.
22611 (__arm_vstrhq_scatter_shifted_offset_p_s16): Likewise.
22612 (__arm_vstrhq_scatter_shifted_offset_p_u32): Likewise.
22613 (__arm_vstrhq_scatter_shifted_offset_p_u16): Likewise.
22614 (__arm_vstrhq_s32): Likewise.
22615 (__arm_vstrhq_s16): Likewise.
22616 (__arm_vstrhq_u32): Likewise.
22617 (__arm_vstrhq_u16): Likewise.
22618 (__arm_vstrhq_p_s32): Likewise.
22619 (__arm_vstrhq_p_s16): Likewise.
22620 (__arm_vstrhq_p_u32): Likewise.
22621 (__arm_vstrhq_p_u16): Likewise.
22622 (__arm_vstrwq_s32): Likewise.
22623 (__arm_vstrwq_u32): Likewise.
22624 (__arm_vstrwq_p_s32): Likewise.
22625 (__arm_vstrwq_p_u32): Likewise.
22626 (__arm_vstrwq_p_f32): Likewise.
22627 (__arm_vstrwq_f32): Likewise.
22628 (__arm_vst1q_f32): Likewise.
22629 (__arm_vst1q_f16): Likewise.
22630 (__arm_vstrhq_f16): Likewise.
22631 (__arm_vstrhq_p_f16): Likewise.
22632 (vst1q): Define polymorphic variant.
22633 (vstrhq): Likewise.
22634 (vstrhq_p): Likewise.
22635 (vstrhq_scatter_offset_p): Likewise.
22636 (vstrhq_scatter_offset): Likewise.
22637 (vstrhq_scatter_shifted_offset_p): Likewise.
22638 (vstrhq_scatter_shifted_offset): Likewise.
22639 (vstrwq_p): Likewise.
22640 (vstrwq): Likewise.
22641 * config/arm/arm_mve_builtins.def (STRS): Use builtin qualifier.
22642 (STRS_P): Likewise.
22644 (STRSS_P): Likewise.
22646 (STRSU_P): Likewise.
22648 (STRU_P): Likewise.
22649 * config/arm/mve.md (VST1Q): Define iterator.
22650 (VSTRHSOQ): Likewise.
22651 (VSTRHSSOQ): Likewise.
22652 (VSTRHQ): Likewise.
22653 (VSTRWQ): Likewise.
22654 (mve_vstrhq_fv8hf): Define RTL pattern.
22655 (mve_vstrhq_p_fv8hf): Likewise.
22656 (mve_vstrhq_p_<supf><mode>): Likewise.
22657 (mve_vstrhq_scatter_offset_p_<supf><mode>): Likewise.
22658 (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
22659 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
22660 (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
22661 (mve_vstrhq_<supf><mode>): Likewise.
22662 (mve_vstrwq_fv4sf): Likewise.
22663 (mve_vstrwq_p_fv4sf): Likewise.
22664 (mve_vstrwq_p_<supf>v4si): Likewise.
22665 (mve_vstrwq_<supf>v4si): Likewise.
22666 (mve_vst1q_f<mode>): Define expand.
22667 (mve_vst1q_<supf><mode>): Likewise.
22669 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
22670 Mihail Ionescu <mihail.ionescu@arm.com>
22671 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22673 * config/arm/arm_mve.h (vld1q_s8): Define macro.
22674 (vld1q_s32): Likewise.
22675 (vld1q_s16): Likewise.
22676 (vld1q_u8): Likewise.
22677 (vld1q_u32): Likewise.
22678 (vld1q_u16): Likewise.
22679 (vldrhq_gather_offset_s32): Likewise.
22680 (vldrhq_gather_offset_s16): Likewise.
22681 (vldrhq_gather_offset_u32): Likewise.
22682 (vldrhq_gather_offset_u16): Likewise.
22683 (vldrhq_gather_offset_z_s32): Likewise.
22684 (vldrhq_gather_offset_z_s16): Likewise.
22685 (vldrhq_gather_offset_z_u32): Likewise.
22686 (vldrhq_gather_offset_z_u16): Likewise.
22687 (vldrhq_gather_shifted_offset_s32): Likewise.
22688 (vldrhq_gather_shifted_offset_s16): Likewise.
22689 (vldrhq_gather_shifted_offset_u32): Likewise.
22690 (vldrhq_gather_shifted_offset_u16): Likewise.
22691 (vldrhq_gather_shifted_offset_z_s32): Likewise.
22692 (vldrhq_gather_shifted_offset_z_s16): Likewise.
22693 (vldrhq_gather_shifted_offset_z_u32): Likewise.
22694 (vldrhq_gather_shifted_offset_z_u16): Likewise.
22695 (vldrhq_s32): Likewise.
22696 (vldrhq_s16): Likewise.
22697 (vldrhq_u32): Likewise.
22698 (vldrhq_u16): Likewise.
22699 (vldrhq_z_s32): Likewise.
22700 (vldrhq_z_s16): Likewise.
22701 (vldrhq_z_u32): Likewise.
22702 (vldrhq_z_u16): Likewise.
22703 (vldrwq_s32): Likewise.
22704 (vldrwq_u32): Likewise.
22705 (vldrwq_z_s32): Likewise.
22706 (vldrwq_z_u32): Likewise.
22707 (vld1q_f32): Likewise.
22708 (vld1q_f16): Likewise.
22709 (vldrhq_f16): Likewise.
22710 (vldrhq_z_f16): Likewise.
22711 (vldrwq_f32): Likewise.
22712 (vldrwq_z_f32): Likewise.
22713 (__arm_vld1q_s8): Define intrinsic.
22714 (__arm_vld1q_s32): Likewise.
22715 (__arm_vld1q_s16): Likewise.
22716 (__arm_vld1q_u8): Likewise.
22717 (__arm_vld1q_u32): Likewise.
22718 (__arm_vld1q_u16): Likewise.
22719 (__arm_vldrhq_gather_offset_s32): Likewise.
22720 (__arm_vldrhq_gather_offset_s16): Likewise.
22721 (__arm_vldrhq_gather_offset_u32): Likewise.
22722 (__arm_vldrhq_gather_offset_u16): Likewise.
22723 (__arm_vldrhq_gather_offset_z_s32): Likewise.
22724 (__arm_vldrhq_gather_offset_z_s16): Likewise.
22725 (__arm_vldrhq_gather_offset_z_u32): Likewise.
22726 (__arm_vldrhq_gather_offset_z_u16): Likewise.
22727 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
22728 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
22729 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
22730 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
22731 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
22732 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
22733 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
22734 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
22735 (__arm_vldrhq_s32): Likewise.
22736 (__arm_vldrhq_s16): Likewise.
22737 (__arm_vldrhq_u32): Likewise.
22738 (__arm_vldrhq_u16): Likewise.
22739 (__arm_vldrhq_z_s32): Likewise.
22740 (__arm_vldrhq_z_s16): Likewise.
22741 (__arm_vldrhq_z_u32): Likewise.
22742 (__arm_vldrhq_z_u16): Likewise.
22743 (__arm_vldrwq_s32): Likewise.
22744 (__arm_vldrwq_u32): Likewise.
22745 (__arm_vldrwq_z_s32): Likewise.
22746 (__arm_vldrwq_z_u32): Likewise.
22747 (__arm_vld1q_f32): Likewise.
22748 (__arm_vld1q_f16): Likewise.
22749 (__arm_vldrwq_f32): Likewise.
22750 (__arm_vldrwq_z_f32): Likewise.
22751 (__arm_vldrhq_z_f16): Likewise.
22752 (__arm_vldrhq_f16): Likewise.
22753 (vld1q): Define polymorphic variant.
22754 (vldrhq_gather_offset): Likewise.
22755 (vldrhq_gather_offset_z): Likewise.
22756 (vldrhq_gather_shifted_offset): Likewise.
22757 (vldrhq_gather_shifted_offset_z): Likewise.
22758 * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
22760 (LDRU_Z): Likewise.
22761 (LDRS_Z): Likewise.
22762 (LDRGU_Z): Likewise.
22764 (LDRGS_Z): Likewise.
22766 * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
22767 (V_sz_elem1): Likewise.
22768 (VLD1Q): Define iterator.
22769 (VLDRHGOQ): Likewise.
22770 (VLDRHGSOQ): Likewise.
22771 (VLDRHQ): Likewise.
22772 (VLDRWQ): Likewise.
22773 (mve_vldrhq_fv8hf): Define RTL pattern.
22774 (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
22775 (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
22776 (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
22777 (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
22778 (mve_vldrhq_<supf><mode>): Likewise.
22779 (mve_vldrhq_z_fv8hf): Likewise.
22780 (mve_vldrhq_z_<supf><mode>): Likewise.
22781 (mve_vldrwq_fv4sf): Likewise.
22782 (mve_vldrwq_<supf>v4si): Likewise.
22783 (mve_vldrwq_z_fv4sf): Likewise.
22784 (mve_vldrwq_z_<supf>v4si): Likewise.
22785 (mve_vld1q_f<mode>): Define RTL expand pattern.
22786 (mve_vld1q_<supf><mode>): Likewise.
22788 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
22789 Mihail Ionescu <mihail.ionescu@arm.com>
22790 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22792 * config/arm/arm_mve.h (vld1q_s8): Define macro.
22793 (vld1q_s32): Likewise.
22794 (vld1q_s16): Likewise.
22795 (vld1q_u8): Likewise.
22796 (vld1q_u32): Likewise.
22797 (vld1q_u16): Likewise.
22798 (vldrhq_gather_offset_s32): Likewise.
22799 (vldrhq_gather_offset_s16): Likewise.
22800 (vldrhq_gather_offset_u32): Likewise.
22801 (vldrhq_gather_offset_u16): Likewise.
22802 (vldrhq_gather_offset_z_s32): Likewise.
22803 (vldrhq_gather_offset_z_s16): Likewise.
22804 (vldrhq_gather_offset_z_u32): Likewise.
22805 (vldrhq_gather_offset_z_u16): Likewise.
22806 (vldrhq_gather_shifted_offset_s32): Likewise.
22807 (vldrhq_gather_shifted_offset_s16): Likewise.
22808 (vldrhq_gather_shifted_offset_u32): Likewise.
22809 (vldrhq_gather_shifted_offset_u16): Likewise.
22810 (vldrhq_gather_shifted_offset_z_s32): Likewise.
22811 (vldrhq_gather_shifted_offset_z_s16): Likewise.
22812 (vldrhq_gather_shifted_offset_z_u32): Likewise.
22813 (vldrhq_gather_shifted_offset_z_u16): Likewise.
22814 (vldrhq_s32): Likewise.
22815 (vldrhq_s16): Likewise.
22816 (vldrhq_u32): Likewise.
22817 (vldrhq_u16): Likewise.
22818 (vldrhq_z_s32): Likewise.
22819 (vldrhq_z_s16): Likewise.
22820 (vldrhq_z_u32): Likewise.
22821 (vldrhq_z_u16): Likewise.
22822 (vldrwq_s32): Likewise.
22823 (vldrwq_u32): Likewise.
22824 (vldrwq_z_s32): Likewise.
22825 (vldrwq_z_u32): Likewise.
22826 (vld1q_f32): Likewise.
22827 (vld1q_f16): Likewise.
22828 (vldrhq_f16): Likewise.
22829 (vldrhq_z_f16): Likewise.
22830 (vldrwq_f32): Likewise.
22831 (vldrwq_z_f32): Likewise.
22832 (__arm_vld1q_s8): Define intrinsic.
22833 (__arm_vld1q_s32): Likewise.
22834 (__arm_vld1q_s16): Likewise.
22835 (__arm_vld1q_u8): Likewise.
22836 (__arm_vld1q_u32): Likewise.
22837 (__arm_vld1q_u16): Likewise.
22838 (__arm_vldrhq_gather_offset_s32): Likewise.
22839 (__arm_vldrhq_gather_offset_s16): Likewise.
22840 (__arm_vldrhq_gather_offset_u32): Likewise.
22841 (__arm_vldrhq_gather_offset_u16): Likewise.
22842 (__arm_vldrhq_gather_offset_z_s32): Likewise.
22843 (__arm_vldrhq_gather_offset_z_s16): Likewise.
22844 (__arm_vldrhq_gather_offset_z_u32): Likewise.
22845 (__arm_vldrhq_gather_offset_z_u16): Likewise.
22846 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
22847 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
22848 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
22849 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
22850 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
22851 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
22852 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
22853 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
22854 (__arm_vldrhq_s32): Likewise.
22855 (__arm_vldrhq_s16): Likewise.
22856 (__arm_vldrhq_u32): Likewise.
22857 (__arm_vldrhq_u16): Likewise.
22858 (__arm_vldrhq_z_s32): Likewise.
22859 (__arm_vldrhq_z_s16): Likewise.
22860 (__arm_vldrhq_z_u32): Likewise.
22861 (__arm_vldrhq_z_u16): Likewise.
22862 (__arm_vldrwq_s32): Likewise.
22863 (__arm_vldrwq_u32): Likewise.
22864 (__arm_vldrwq_z_s32): Likewise.
22865 (__arm_vldrwq_z_u32): Likewise.
22866 (__arm_vld1q_f32): Likewise.
22867 (__arm_vld1q_f16): Likewise.
22868 (__arm_vldrwq_f32): Likewise.
22869 (__arm_vldrwq_z_f32): Likewise.
22870 (__arm_vldrhq_z_f16): Likewise.
22871 (__arm_vldrhq_f16): Likewise.
22872 (vld1q): Define polymorphic variant.
22873 (vldrhq_gather_offset): Likewise.
22874 (vldrhq_gather_offset_z): Likewise.
22875 (vldrhq_gather_shifted_offset): Likewise.
22876 (vldrhq_gather_shifted_offset_z): Likewise.
22877 * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
22879 (LDRU_Z): Likewise.
22880 (LDRS_Z): Likewise.
22881 (LDRGU_Z): Likewise.
22883 (LDRGS_Z): Likewise.
22885 * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
22886 (V_sz_elem1): Likewise.
22887 (VLD1Q): Define iterator.
22888 (VLDRHGOQ): Likewise.
22889 (VLDRHGSOQ): Likewise.
22890 (VLDRHQ): Likewise.
22891 (VLDRWQ): Likewise.
22892 (mve_vldrhq_fv8hf): Define RTL pattern.
22893 (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
22894 (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
22895 (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
22896 (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
22897 (mve_vldrhq_<supf><mode>): Likewise.
22898 (mve_vldrhq_z_fv8hf): Likewise.
22899 (mve_vldrhq_z_<supf><mode>): Likewise.
22900 (mve_vldrwq_fv4sf): Likewise.
22901 (mve_vldrwq_<supf>v4si): Likewise.
22902 (mve_vldrwq_z_fv4sf): Likewise.
22903 (mve_vldrwq_z_<supf>v4si): Likewise.
22904 (mve_vld1q_f<mode>): Define RTL expand pattern.
22905 (mve_vld1q_<supf><mode>): Likewise.
22907 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
22908 Mihail Ionescu <mihail.ionescu@arm.com>
22909 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22911 * config/arm/arm-builtins.c (LDRGBS_Z_QUALIFIERS): Define builtin
22913 (LDRGBU_Z_QUALIFIERS): Likewise.
22914 (LDRGS_Z_QUALIFIERS): Likewise.
22915 (LDRGU_Z_QUALIFIERS): Likewise.
22916 (LDRS_Z_QUALIFIERS): Likewise.
22917 (LDRU_Z_QUALIFIERS): Likewise.
22918 * config/arm/arm_mve.h (vldrbq_gather_offset_z_s16): Define macro.
22919 (vldrbq_gather_offset_z_u8): Likewise.
22920 (vldrbq_gather_offset_z_s32): Likewise.
22921 (vldrbq_gather_offset_z_u16): Likewise.
22922 (vldrbq_gather_offset_z_u32): Likewise.
22923 (vldrbq_gather_offset_z_s8): Likewise.
22924 (vldrbq_z_s16): Likewise.
22925 (vldrbq_z_u8): Likewise.
22926 (vldrbq_z_s8): Likewise.
22927 (vldrbq_z_s32): Likewise.
22928 (vldrbq_z_u16): Likewise.
22929 (vldrbq_z_u32): Likewise.
22930 (vldrwq_gather_base_z_u32): Likewise.
22931 (vldrwq_gather_base_z_s32): Likewise.
22932 (__arm_vldrbq_gather_offset_z_s8): Define intrinsic.
22933 (__arm_vldrbq_gather_offset_z_s32): Likewise.
22934 (__arm_vldrbq_gather_offset_z_s16): Likewise.
22935 (__arm_vldrbq_gather_offset_z_u8): Likewise.
22936 (__arm_vldrbq_gather_offset_z_u32): Likewise.
22937 (__arm_vldrbq_gather_offset_z_u16): Likewise.
22938 (__arm_vldrbq_z_s8): Likewise.
22939 (__arm_vldrbq_z_s32): Likewise.
22940 (__arm_vldrbq_z_s16): Likewise.
22941 (__arm_vldrbq_z_u8): Likewise.
22942 (__arm_vldrbq_z_u32): Likewise.
22943 (__arm_vldrbq_z_u16): Likewise.
22944 (__arm_vldrwq_gather_base_z_s32): Likewise.
22945 (__arm_vldrwq_gather_base_z_u32): Likewise.
22946 (vldrbq_gather_offset_z): Define polymorphic variant.
22947 * config/arm/arm_mve_builtins.def (LDRGBS_Z_QUALIFIERS): Use builtin
22949 (LDRGBU_Z_QUALIFIERS): Likewise.
22950 (LDRGS_Z_QUALIFIERS): Likewise.
22951 (LDRGU_Z_QUALIFIERS): Likewise.
22952 (LDRS_Z_QUALIFIERS): Likewise.
22953 (LDRU_Z_QUALIFIERS): Likewise.
22954 * config/arm/mve.md (mve_vldrbq_gather_offset_z_<supf><mode>): Define
22956 (mve_vldrbq_z_<supf><mode>): Likewise.
22957 (mve_vldrwq_gather_base_z_<supf>v4si): Likewise.
22959 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
22960 Mihail Ionescu <mihail.ionescu@arm.com>
22961 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22963 * config/arm/arm-builtins.c (STRS_P_QUALIFIERS): Define builtin
22965 (STRU_P_QUALIFIERS): Likewise.
22966 (STRSU_P_QUALIFIERS): Likewise.
22967 (STRSS_P_QUALIFIERS): Likewise.
22968 (STRSBS_P_QUALIFIERS): Likewise.
22969 (STRSBU_P_QUALIFIERS): Likewise.
22970 * config/arm/arm_mve.h (vstrbq_p_s8): Define macro.
22971 (vstrbq_p_s32): Likewise.
22972 (vstrbq_p_s16): Likewise.
22973 (vstrbq_p_u8): Likewise.
22974 (vstrbq_p_u32): Likewise.
22975 (vstrbq_p_u16): Likewise.
22976 (vstrbq_scatter_offset_p_s8): Likewise.
22977 (vstrbq_scatter_offset_p_s32): Likewise.
22978 (vstrbq_scatter_offset_p_s16): Likewise.
22979 (vstrbq_scatter_offset_p_u8): Likewise.
22980 (vstrbq_scatter_offset_p_u32): Likewise.
22981 (vstrbq_scatter_offset_p_u16): Likewise.
22982 (vstrwq_scatter_base_p_s32): Likewise.
22983 (vstrwq_scatter_base_p_u32): Likewise.
22984 (__arm_vstrbq_p_s8): Define intrinsic.
22985 (__arm_vstrbq_p_s32): Likewise.
22986 (__arm_vstrbq_p_s16): Likewise.
22987 (__arm_vstrbq_p_u8): Likewise.
22988 (__arm_vstrbq_p_u32): Likewise.
22989 (__arm_vstrbq_p_u16): Likewise.
22990 (__arm_vstrbq_scatter_offset_p_s8): Likewise.
22991 (__arm_vstrbq_scatter_offset_p_s32): Likewise.
22992 (__arm_vstrbq_scatter_offset_p_s16): Likewise.
22993 (__arm_vstrbq_scatter_offset_p_u8): Likewise.
22994 (__arm_vstrbq_scatter_offset_p_u32): Likewise.
22995 (__arm_vstrbq_scatter_offset_p_u16): Likewise.
22996 (__arm_vstrwq_scatter_base_p_s32): Likewise.
22997 (__arm_vstrwq_scatter_base_p_u32): Likewise.
22998 (vstrbq_p): Define polymorphic variant.
22999 (vstrbq_scatter_offset_p): Likewise.
23000 (vstrwq_scatter_base_p): Likewise.
23001 * config/arm/arm_mve_builtins.def (STRS_P_QUALIFIERS): Use builtin
23003 (STRU_P_QUALIFIERS): Likewise.
23004 (STRSU_P_QUALIFIERS): Likewise.
23005 (STRSS_P_QUALIFIERS): Likewise.
23006 (STRSBS_P_QUALIFIERS): Likewise.
23007 (STRSBU_P_QUALIFIERS): Likewise.
23008 * config/arm/mve.md (mve_vstrbq_scatter_offset_p_<supf><mode>): Define
23010 (mve_vstrwq_scatter_base_p_<supf>v4si): Likewise.
23011 (mve_vstrbq_p_<supf><mode>): Likewise.
23013 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23014 Mihail Ionescu <mihail.ionescu@arm.com>
23015 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23017 * config/arm/arm-builtins.c (LDRGU_QUALIFIERS): Define builtin
23019 (LDRGS_QUALIFIERS): Likewise.
23020 (LDRS_QUALIFIERS): Likewise.
23021 (LDRU_QUALIFIERS): Likewise.
23022 (LDRGBS_QUALIFIERS): Likewise.
23023 (LDRGBU_QUALIFIERS): Likewise.
23024 * config/arm/arm_mve.h (vldrbq_gather_offset_u8): Define macro.
23025 (vldrbq_gather_offset_s8): Likewise.
23026 (vldrbq_s8): Likewise.
23027 (vldrbq_u8): Likewise.
23028 (vldrbq_gather_offset_u16): Likewise.
23029 (vldrbq_gather_offset_s16): Likewise.
23030 (vldrbq_s16): Likewise.
23031 (vldrbq_u16): Likewise.
23032 (vldrbq_gather_offset_u32): Likewise.
23033 (vldrbq_gather_offset_s32): Likewise.
23034 (vldrbq_s32): Likewise.
23035 (vldrbq_u32): Likewise.
23036 (vldrwq_gather_base_s32): Likewise.
23037 (vldrwq_gather_base_u32): Likewise.
23038 (__arm_vldrbq_gather_offset_u8): Define intrinsic.
23039 (__arm_vldrbq_gather_offset_s8): Likewise.
23040 (__arm_vldrbq_s8): Likewise.
23041 (__arm_vldrbq_u8): Likewise.
23042 (__arm_vldrbq_gather_offset_u16): Likewise.
23043 (__arm_vldrbq_gather_offset_s16): Likewise.
23044 (__arm_vldrbq_s16): Likewise.
23045 (__arm_vldrbq_u16): Likewise.
23046 (__arm_vldrbq_gather_offset_u32): Likewise.
23047 (__arm_vldrbq_gather_offset_s32): Likewise.
23048 (__arm_vldrbq_s32): Likewise.
23049 (__arm_vldrbq_u32): Likewise.
23050 (__arm_vldrwq_gather_base_s32): Likewise.
23051 (__arm_vldrwq_gather_base_u32): Likewise.
23052 (vldrbq_gather_offset): Define polymorphic variant.
23053 * config/arm/arm_mve_builtins.def (LDRGU_QUALIFIERS): Use builtin
23055 (LDRGS_QUALIFIERS): Likewise.
23056 (LDRS_QUALIFIERS): Likewise.
23057 (LDRU_QUALIFIERS): Likewise.
23058 (LDRGBS_QUALIFIERS): Likewise.
23059 (LDRGBU_QUALIFIERS): Likewise.
23060 * config/arm/mve.md (VLDRBGOQ): Define iterator.
23061 (VLDRBQ): Likewise.
23062 (VLDRWGBQ): Likewise.
23063 (mve_vldrbq_gather_offset_<supf><mode>): Define RTL pattern.
23064 (mve_vldrbq_<supf><mode>): Likewise.
23065 (mve_vldrwq_gather_base_<supf>v4si): Likewise.
23067 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23068 Mihail Ionescu <mihail.ionescu@arm.com>
23069 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23071 * config/arm/arm-builtins.c (STRS_QUALIFIERS): Define builtin qualifier.
23072 (STRU_QUALIFIERS): Likewise.
23073 (STRSS_QUALIFIERS): Likewise.
23074 (STRSU_QUALIFIERS): Likewise.
23075 (STRSBS_QUALIFIERS): Likewise.
23076 (STRSBU_QUALIFIERS): Likewise.
23077 * config/arm/arm_mve.h (vstrbq_s8): Define macro.
23078 (vstrbq_u8): Likewise.
23079 (vstrbq_u16): Likewise.
23080 (vstrbq_scatter_offset_s8): Likewise.
23081 (vstrbq_scatter_offset_u8): Likewise.
23082 (vstrbq_scatter_offset_u16): Likewise.
23083 (vstrbq_s16): Likewise.
23084 (vstrbq_u32): Likewise.
23085 (vstrbq_scatter_offset_s16): Likewise.
23086 (vstrbq_scatter_offset_u32): Likewise.
23087 (vstrbq_s32): Likewise.
23088 (vstrbq_scatter_offset_s32): Likewise.
23089 (vstrwq_scatter_base_s32): Likewise.
23090 (vstrwq_scatter_base_u32): Likewise.
23091 (__arm_vstrbq_scatter_offset_s8): Define intrinsic.
23092 (__arm_vstrbq_scatter_offset_s32): Likewise.
23093 (__arm_vstrbq_scatter_offset_s16): Likewise.
23094 (__arm_vstrbq_scatter_offset_u8): Likewise.
23095 (__arm_vstrbq_scatter_offset_u32): Likewise.
23096 (__arm_vstrbq_scatter_offset_u16): Likewise.
23097 (__arm_vstrbq_s8): Likewise.
23098 (__arm_vstrbq_s32): Likewise.
23099 (__arm_vstrbq_s16): Likewise.
23100 (__arm_vstrbq_u8): Likewise.
23101 (__arm_vstrbq_u32): Likewise.
23102 (__arm_vstrbq_u16): Likewise.
23103 (__arm_vstrwq_scatter_base_s32): Likewise.
23104 (__arm_vstrwq_scatter_base_u32): Likewise.
23105 (vstrbq): Define polymorphic variant.
23106 (vstrbq_scatter_offset): Likewise.
23107 (vstrwq_scatter_base): Likewise.
23108 * config/arm/arm_mve_builtins.def (STRS_QUALIFIERS): Use builtin
23110 (STRU_QUALIFIERS): Likewise.
23111 (STRSS_QUALIFIERS): Likewise.
23112 (STRSU_QUALIFIERS): Likewise.
23113 (STRSBS_QUALIFIERS): Likewise.
23114 (STRSBU_QUALIFIERS): Likewise.
23115 * config/arm/mve.md (MVE_B_ELEM): Define mode attribute iterator.
23116 (VSTRWSBQ): Define iterators.
23117 (VSTRBSOQ): Likewise.
23118 (VSTRBQ): Likewise.
23119 (mve_vstrbq_<supf><mode>): Define RTL pattern.
23120 (mve_vstrbq_scatter_offset_<supf><mode>): Likewise.
23121 (mve_vstrwq_scatter_base_<supf>v4si): Likewise.
23123 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23124 Mihail Ionescu <mihail.ionescu@arm.com>
23125 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23127 * config/arm/arm_mve.h (vabdq_m_f32): Define macro.
23128 (vabdq_m_f16): Likewise.
23129 (vaddq_m_f32): Likewise.
23130 (vaddq_m_f16): Likewise.
23131 (vaddq_m_n_f32): Likewise.
23132 (vaddq_m_n_f16): Likewise.
23133 (vandq_m_f32): Likewise.
23134 (vandq_m_f16): Likewise.
23135 (vbicq_m_f32): Likewise.
23136 (vbicq_m_f16): Likewise.
23137 (vbrsrq_m_n_f32): Likewise.
23138 (vbrsrq_m_n_f16): Likewise.
23139 (vcaddq_rot270_m_f32): Likewise.
23140 (vcaddq_rot270_m_f16): Likewise.
23141 (vcaddq_rot90_m_f32): Likewise.
23142 (vcaddq_rot90_m_f16): Likewise.
23143 (vcmlaq_m_f32): Likewise.
23144 (vcmlaq_m_f16): Likewise.
23145 (vcmlaq_rot180_m_f32): Likewise.
23146 (vcmlaq_rot180_m_f16): Likewise.
23147 (vcmlaq_rot270_m_f32): Likewise.
23148 (vcmlaq_rot270_m_f16): Likewise.
23149 (vcmlaq_rot90_m_f32): Likewise.
23150 (vcmlaq_rot90_m_f16): Likewise.
23151 (vcmulq_m_f32): Likewise.
23152 (vcmulq_m_f16): Likewise.
23153 (vcmulq_rot180_m_f32): Likewise.
23154 (vcmulq_rot180_m_f16): Likewise.
23155 (vcmulq_rot270_m_f32): Likewise.
23156 (vcmulq_rot270_m_f16): Likewise.
23157 (vcmulq_rot90_m_f32): Likewise.
23158 (vcmulq_rot90_m_f16): Likewise.
23159 (vcvtq_m_n_s32_f32): Likewise.
23160 (vcvtq_m_n_s16_f16): Likewise.
23161 (vcvtq_m_n_u32_f32): Likewise.
23162 (vcvtq_m_n_u16_f16): Likewise.
23163 (veorq_m_f32): Likewise.
23164 (veorq_m_f16): Likewise.
23165 (vfmaq_m_f32): Likewise.
23166 (vfmaq_m_f16): Likewise.
23167 (vfmaq_m_n_f32): Likewise.
23168 (vfmaq_m_n_f16): Likewise.
23169 (vfmasq_m_n_f32): Likewise.
23170 (vfmasq_m_n_f16): Likewise.
23171 (vfmsq_m_f32): Likewise.
23172 (vfmsq_m_f16): Likewise.
23173 (vmaxnmq_m_f32): Likewise.
23174 (vmaxnmq_m_f16): Likewise.
23175 (vminnmq_m_f32): Likewise.
23176 (vminnmq_m_f16): Likewise.
23177 (vmulq_m_f32): Likewise.
23178 (vmulq_m_f16): Likewise.
23179 (vmulq_m_n_f32): Likewise.
23180 (vmulq_m_n_f16): Likewise.
23181 (vornq_m_f32): Likewise.
23182 (vornq_m_f16): Likewise.
23183 (vorrq_m_f32): Likewise.
23184 (vorrq_m_f16): Likewise.
23185 (vsubq_m_f32): Likewise.
23186 (vsubq_m_f16): Likewise.
23187 (vsubq_m_n_f32): Likewise.
23188 (vsubq_m_n_f16): Likewise.
23189 (__attribute__): Likewise.
23190 (__arm_vabdq_m_f32): Likewise.
23191 (__arm_vabdq_m_f16): Likewise.
23192 (__arm_vaddq_m_f32): Likewise.
23193 (__arm_vaddq_m_f16): Likewise.
23194 (__arm_vaddq_m_n_f32): Likewise.
23195 (__arm_vaddq_m_n_f16): Likewise.
23196 (__arm_vandq_m_f32): Likewise.
23197 (__arm_vandq_m_f16): Likewise.
23198 (__arm_vbicq_m_f32): Likewise.
23199 (__arm_vbicq_m_f16): Likewise.
23200 (__arm_vbrsrq_m_n_f32): Likewise.
23201 (__arm_vbrsrq_m_n_f16): Likewise.
23202 (__arm_vcaddq_rot270_m_f32): Likewise.
23203 (__arm_vcaddq_rot270_m_f16): Likewise.
23204 (__arm_vcaddq_rot90_m_f32): Likewise.
23205 (__arm_vcaddq_rot90_m_f16): Likewise.
23206 (__arm_vcmlaq_m_f32): Likewise.
23207 (__arm_vcmlaq_m_f16): Likewise.
23208 (__arm_vcmlaq_rot180_m_f32): Likewise.
23209 (__arm_vcmlaq_rot180_m_f16): Likewise.
23210 (__arm_vcmlaq_rot270_m_f32): Likewise.
23211 (__arm_vcmlaq_rot270_m_f16): Likewise.
23212 (__arm_vcmlaq_rot90_m_f32): Likewise.
23213 (__arm_vcmlaq_rot90_m_f16): Likewise.
23214 (__arm_vcmulq_m_f32): Likewise.
23215 (__arm_vcmulq_m_f16): Likewise.
23216 (__arm_vcmulq_rot180_m_f32): Define intrinsic.
23217 (__arm_vcmulq_rot180_m_f16): Likewise.
23218 (__arm_vcmulq_rot270_m_f32): Likewise.
23219 (__arm_vcmulq_rot270_m_f16): Likewise.
23220 (__arm_vcmulq_rot90_m_f32): Likewise.
23221 (__arm_vcmulq_rot90_m_f16): Likewise.
23222 (__arm_vcvtq_m_n_s32_f32): Likewise.
23223 (__arm_vcvtq_m_n_s16_f16): Likewise.
23224 (__arm_vcvtq_m_n_u32_f32): Likewise.
23225 (__arm_vcvtq_m_n_u16_f16): Likewise.
23226 (__arm_veorq_m_f32): Likewise.
23227 (__arm_veorq_m_f16): Likewise.
23228 (__arm_vfmaq_m_f32): Likewise.
23229 (__arm_vfmaq_m_f16): Likewise.
23230 (__arm_vfmaq_m_n_f32): Likewise.
23231 (__arm_vfmaq_m_n_f16): Likewise.
23232 (__arm_vfmasq_m_n_f32): Likewise.
23233 (__arm_vfmasq_m_n_f16): Likewise.
23234 (__arm_vfmsq_m_f32): Likewise.
23235 (__arm_vfmsq_m_f16): Likewise.
23236 (__arm_vmaxnmq_m_f32): Likewise.
23237 (__arm_vmaxnmq_m_f16): Likewise.
23238 (__arm_vminnmq_m_f32): Likewise.
23239 (__arm_vminnmq_m_f16): Likewise.
23240 (__arm_vmulq_m_f32): Likewise.
23241 (__arm_vmulq_m_f16): Likewise.
23242 (__arm_vmulq_m_n_f32): Likewise.
23243 (__arm_vmulq_m_n_f16): Likewise.
23244 (__arm_vornq_m_f32): Likewise.
23245 (__arm_vornq_m_f16): Likewise.
23246 (__arm_vorrq_m_f32): Likewise.
23247 (__arm_vorrq_m_f16): Likewise.
23248 (__arm_vsubq_m_f32): Likewise.
23249 (__arm_vsubq_m_f16): Likewise.
23250 (__arm_vsubq_m_n_f32): Likewise.
23251 (__arm_vsubq_m_n_f16): Likewise.
23252 (vabdq_m): Define polymorphic variant.
23253 (vaddq_m): Likewise.
23254 (vaddq_m_n): Likewise.
23255 (vandq_m): Likewise.
23256 (vbicq_m): Likewise.
23257 (vbrsrq_m_n): Likewise.
23258 (vcaddq_rot270_m): Likewise.
23259 (vcaddq_rot90_m): Likewise.
23260 (vcmlaq_m): Likewise.
23261 (vcmlaq_rot180_m): Likewise.
23262 (vcmlaq_rot270_m): Likewise.
23263 (vcmlaq_rot90_m): Likewise.
23264 (vcmulq_m): Likewise.
23265 (vcmulq_rot180_m): Likewise.
23266 (vcmulq_rot270_m): Likewise.
23267 (vcmulq_rot90_m): Likewise.
23268 (veorq_m): Likewise.
23269 (vfmaq_m): Likewise.
23270 (vfmaq_m_n): Likewise.
23271 (vfmasq_m_n): Likewise.
23272 (vfmsq_m): Likewise.
23273 (vmaxnmq_m): Likewise.
23274 (vminnmq_m): Likewise.
23275 (vmulq_m): Likewise.
23276 (vmulq_m_n): Likewise.
23277 (vornq_m): Likewise.
23278 (vsubq_m): Likewise.
23279 (vsubq_m_n): Likewise.
23280 (vorrq_m): Likewise.
23281 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
23283 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
23284 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
23285 * config/arm/mve.md (mve_vabdq_m_f<mode>): Define RTL pattern.
23286 (mve_vaddq_m_f<mode>): Likewise.
23287 (mve_vaddq_m_n_f<mode>): Likewise.
23288 (mve_vandq_m_f<mode>): Likewise.
23289 (mve_vbicq_m_f<mode>): Likewise.
23290 (mve_vbrsrq_m_n_f<mode>): Likewise.
23291 (mve_vcaddq_rot270_m_f<mode>): Likewise.
23292 (mve_vcaddq_rot90_m_f<mode>): Likewise.
23293 (mve_vcmlaq_m_f<mode>): Likewise.
23294 (mve_vcmlaq_rot180_m_f<mode>): Likewise.
23295 (mve_vcmlaq_rot270_m_f<mode>): Likewise.
23296 (mve_vcmlaq_rot90_m_f<mode>): Likewise.
23297 (mve_vcmulq_m_f<mode>): Likewise.
23298 (mve_vcmulq_rot180_m_f<mode>): Likewise.
23299 (mve_vcmulq_rot270_m_f<mode>): Likewise.
23300 (mve_vcmulq_rot90_m_f<mode>): Likewise.
23301 (mve_veorq_m_f<mode>): Likewise.
23302 (mve_vfmaq_m_f<mode>): Likewise.
23303 (mve_vfmaq_m_n_f<mode>): Likewise.
23304 (mve_vfmasq_m_n_f<mode>): Likewise.
23305 (mve_vfmsq_m_f<mode>): Likewise.
23306 (mve_vmaxnmq_m_f<mode>): Likewise.
23307 (mve_vminnmq_m_f<mode>): Likewise.
23308 (mve_vmulq_m_f<mode>): Likewise.
23309 (mve_vmulq_m_n_f<mode>): Likewise.
23310 (mve_vornq_m_f<mode>): Likewise.
23311 (mve_vorrq_m_f<mode>): Likewise.
23312 (mve_vsubq_m_f<mode>): Likewise.
23313 (mve_vsubq_m_n_f<mode>): Likewise.
23315 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23316 Mihail Ionescu <mihail.ionescu@arm.com>
23317 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23319 * config/arm/arm-protos.h (arm_mve_immediate_check):
23320 * config/arm/arm.c (arm_mve_immediate_check): Define fuction to check
23321 mode and interger value.
23322 * config/arm/arm_mve.h (vmlaldavaq_p_s32): Define macro.
23323 (vmlaldavaq_p_s16): Likewise.
23324 (vmlaldavaq_p_u32): Likewise.
23325 (vmlaldavaq_p_u16): Likewise.
23326 (vmlaldavaxq_p_s32): Likewise.
23327 (vmlaldavaxq_p_s16): Likewise.
23328 (vmlaldavaxq_p_u32): Likewise.
23329 (vmlaldavaxq_p_u16): Likewise.
23330 (vmlsldavaq_p_s32): Likewise.
23331 (vmlsldavaq_p_s16): Likewise.
23332 (vmlsldavaxq_p_s32): Likewise.
23333 (vmlsldavaxq_p_s16): Likewise.
23334 (vmullbq_poly_m_p8): Likewise.
23335 (vmullbq_poly_m_p16): Likewise.
23336 (vmulltq_poly_m_p8): Likewise.
23337 (vmulltq_poly_m_p16): Likewise.
23338 (vqdmullbq_m_n_s32): Likewise.
23339 (vqdmullbq_m_n_s16): Likewise.
23340 (vqdmullbq_m_s32): Likewise.
23341 (vqdmullbq_m_s16): Likewise.
23342 (vqdmulltq_m_n_s32): Likewise.
23343 (vqdmulltq_m_n_s16): Likewise.
23344 (vqdmulltq_m_s32): Likewise.
23345 (vqdmulltq_m_s16): Likewise.
23346 (vqrshrnbq_m_n_s32): Likewise.
23347 (vqrshrnbq_m_n_s16): Likewise.
23348 (vqrshrnbq_m_n_u32): Likewise.
23349 (vqrshrnbq_m_n_u16): Likewise.
23350 (vqrshrntq_m_n_s32): Likewise.
23351 (vqrshrntq_m_n_s16): Likewise.
23352 (vqrshrntq_m_n_u32): Likewise.
23353 (vqrshrntq_m_n_u16): Likewise.
23354 (vqrshrunbq_m_n_s32): Likewise.
23355 (vqrshrunbq_m_n_s16): Likewise.
23356 (vqrshruntq_m_n_s32): Likewise.
23357 (vqrshruntq_m_n_s16): Likewise.
23358 (vqshrnbq_m_n_s32): Likewise.
23359 (vqshrnbq_m_n_s16): Likewise.
23360 (vqshrnbq_m_n_u32): Likewise.
23361 (vqshrnbq_m_n_u16): Likewise.
23362 (vqshrntq_m_n_s32): Likewise.
23363 (vqshrntq_m_n_s16): Likewise.
23364 (vqshrntq_m_n_u32): Likewise.
23365 (vqshrntq_m_n_u16): Likewise.
23366 (vqshrunbq_m_n_s32): Likewise.
23367 (vqshrunbq_m_n_s16): Likewise.
23368 (vqshruntq_m_n_s32): Likewise.
23369 (vqshruntq_m_n_s16): Likewise.
23370 (vrmlaldavhaq_p_s32): Likewise.
23371 (vrmlaldavhaq_p_u32): Likewise.
23372 (vrmlaldavhaxq_p_s32): Likewise.
23373 (vrmlsldavhaq_p_s32): Likewise.
23374 (vrmlsldavhaxq_p_s32): Likewise.
23375 (vrshrnbq_m_n_s32): Likewise.
23376 (vrshrnbq_m_n_s16): Likewise.
23377 (vrshrnbq_m_n_u32): Likewise.
23378 (vrshrnbq_m_n_u16): Likewise.
23379 (vrshrntq_m_n_s32): Likewise.
23380 (vrshrntq_m_n_s16): Likewise.
23381 (vrshrntq_m_n_u32): Likewise.
23382 (vrshrntq_m_n_u16): Likewise.
23383 (vshllbq_m_n_s8): Likewise.
23384 (vshllbq_m_n_s16): Likewise.
23385 (vshllbq_m_n_u8): Likewise.
23386 (vshllbq_m_n_u16): Likewise.
23387 (vshlltq_m_n_s8): Likewise.
23388 (vshlltq_m_n_s16): Likewise.
23389 (vshlltq_m_n_u8): Likewise.
23390 (vshlltq_m_n_u16): Likewise.
23391 (vshrnbq_m_n_s32): Likewise.
23392 (vshrnbq_m_n_s16): Likewise.
23393 (vshrnbq_m_n_u32): Likewise.
23394 (vshrnbq_m_n_u16): Likewise.
23395 (vshrntq_m_n_s32): Likewise.
23396 (vshrntq_m_n_s16): Likewise.
23397 (vshrntq_m_n_u32): Likewise.
23398 (vshrntq_m_n_u16): Likewise.
23399 (__arm_vmlaldavaq_p_s32): Define intrinsic.
23400 (__arm_vmlaldavaq_p_s16): Likewise.
23401 (__arm_vmlaldavaq_p_u32): Likewise.
23402 (__arm_vmlaldavaq_p_u16): Likewise.
23403 (__arm_vmlaldavaxq_p_s32): Likewise.
23404 (__arm_vmlaldavaxq_p_s16): Likewise.
23405 (__arm_vmlaldavaxq_p_u32): Likewise.
23406 (__arm_vmlaldavaxq_p_u16): Likewise.
23407 (__arm_vmlsldavaq_p_s32): Likewise.
23408 (__arm_vmlsldavaq_p_s16): Likewise.
23409 (__arm_vmlsldavaxq_p_s32): Likewise.
23410 (__arm_vmlsldavaxq_p_s16): Likewise.
23411 (__arm_vmullbq_poly_m_p8): Likewise.
23412 (__arm_vmullbq_poly_m_p16): Likewise.
23413 (__arm_vmulltq_poly_m_p8): Likewise.
23414 (__arm_vmulltq_poly_m_p16): Likewise.
23415 (__arm_vqdmullbq_m_n_s32): Likewise.
23416 (__arm_vqdmullbq_m_n_s16): Likewise.
23417 (__arm_vqdmullbq_m_s32): Likewise.
23418 (__arm_vqdmullbq_m_s16): Likewise.
23419 (__arm_vqdmulltq_m_n_s32): Likewise.
23420 (__arm_vqdmulltq_m_n_s16): Likewise.
23421 (__arm_vqdmulltq_m_s32): Likewise.
23422 (__arm_vqdmulltq_m_s16): Likewise.
23423 (__arm_vqrshrnbq_m_n_s32): Likewise.
23424 (__arm_vqrshrnbq_m_n_s16): Likewise.
23425 (__arm_vqrshrnbq_m_n_u32): Likewise.
23426 (__arm_vqrshrnbq_m_n_u16): Likewise.
23427 (__arm_vqrshrntq_m_n_s32): Likewise.
23428 (__arm_vqrshrntq_m_n_s16): Likewise.
23429 (__arm_vqrshrntq_m_n_u32): Likewise.
23430 (__arm_vqrshrntq_m_n_u16): Likewise.
23431 (__arm_vqrshrunbq_m_n_s32): Likewise.
23432 (__arm_vqrshrunbq_m_n_s16): Likewise.
23433 (__arm_vqrshruntq_m_n_s32): Likewise.
23434 (__arm_vqrshruntq_m_n_s16): Likewise.
23435 (__arm_vqshrnbq_m_n_s32): Likewise.
23436 (__arm_vqshrnbq_m_n_s16): Likewise.
23437 (__arm_vqshrnbq_m_n_u32): Likewise.
23438 (__arm_vqshrnbq_m_n_u16): Likewise.
23439 (__arm_vqshrntq_m_n_s32): Likewise.
23440 (__arm_vqshrntq_m_n_s16): Likewise.
23441 (__arm_vqshrntq_m_n_u32): Likewise.
23442 (__arm_vqshrntq_m_n_u16): Likewise.
23443 (__arm_vqshrunbq_m_n_s32): Likewise.
23444 (__arm_vqshrunbq_m_n_s16): Likewise.
23445 (__arm_vqshruntq_m_n_s32): Likewise.
23446 (__arm_vqshruntq_m_n_s16): Likewise.
23447 (__arm_vrmlaldavhaq_p_s32): Likewise.
23448 (__arm_vrmlaldavhaq_p_u32): Likewise.
23449 (__arm_vrmlaldavhaxq_p_s32): Likewise.
23450 (__arm_vrmlsldavhaq_p_s32): Likewise.
23451 (__arm_vrmlsldavhaxq_p_s32): Likewise.
23452 (__arm_vrshrnbq_m_n_s32): Likewise.
23453 (__arm_vrshrnbq_m_n_s16): Likewise.
23454 (__arm_vrshrnbq_m_n_u32): Likewise.
23455 (__arm_vrshrnbq_m_n_u16): Likewise.
23456 (__arm_vrshrntq_m_n_s32): Likewise.
23457 (__arm_vrshrntq_m_n_s16): Likewise.
23458 (__arm_vrshrntq_m_n_u32): Likewise.
23459 (__arm_vrshrntq_m_n_u16): Likewise.
23460 (__arm_vshllbq_m_n_s8): Likewise.
23461 (__arm_vshllbq_m_n_s16): Likewise.
23462 (__arm_vshllbq_m_n_u8): Likewise.
23463 (__arm_vshllbq_m_n_u16): Likewise.
23464 (__arm_vshlltq_m_n_s8): Likewise.
23465 (__arm_vshlltq_m_n_s16): Likewise.
23466 (__arm_vshlltq_m_n_u8): Likewise.
23467 (__arm_vshlltq_m_n_u16): Likewise.
23468 (__arm_vshrnbq_m_n_s32): Likewise.
23469 (__arm_vshrnbq_m_n_s16): Likewise.
23470 (__arm_vshrnbq_m_n_u32): Likewise.
23471 (__arm_vshrnbq_m_n_u16): Likewise.
23472 (__arm_vshrntq_m_n_s32): Likewise.
23473 (__arm_vshrntq_m_n_s16): Likewise.
23474 (__arm_vshrntq_m_n_u32): Likewise.
23475 (__arm_vshrntq_m_n_u16): Likewise.
23476 (vmullbq_poly_m): Define polymorphic variant.
23477 (vmulltq_poly_m): Likewise.
23478 (vshllbq_m): Likewise.
23479 (vshrntq_m_n): Likewise.
23480 (vshrnbq_m_n): Likewise.
23481 (vshlltq_m_n): Likewise.
23482 (vshllbq_m_n): Likewise.
23483 (vrshrntq_m_n): Likewise.
23484 (vrshrnbq_m_n): Likewise.
23485 (vqshruntq_m_n): Likewise.
23486 (vqshrunbq_m_n): Likewise.
23487 (vqdmullbq_m_n): Likewise.
23488 (vqdmullbq_m): Likewise.
23489 (vqdmulltq_m_n): Likewise.
23490 (vqdmulltq_m): Likewise.
23491 (vqrshrnbq_m_n): Likewise.
23492 (vqrshrntq_m_n): Likewise.
23493 (vqrshrunbq_m_n): Likewise.
23494 (vqrshruntq_m_n): Likewise.
23495 (vqshrnbq_m_n): Likewise.
23496 (vqshrntq_m_n): Likewise.
23497 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
23498 builtin qualifiers.
23499 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
23500 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
23501 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
23502 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
23503 * config/arm/mve.md (VMLALDAVAQ_P): Define iterator.
23504 (VMLALDAVAXQ_P): Likewise.
23505 (VQRSHRNBQ_M_N): Likewise.
23506 (VQRSHRNTQ_M_N): Likewise.
23507 (VQSHRNBQ_M_N): Likewise.
23508 (VQSHRNTQ_M_N): Likewise.
23509 (VRSHRNBQ_M_N): Likewise.
23510 (VRSHRNTQ_M_N): Likewise.
23511 (VSHLLBQ_M_N): Likewise.
23512 (VSHLLTQ_M_N): Likewise.
23513 (VSHRNBQ_M_N): Likewise.
23514 (VSHRNTQ_M_N): Likewise.
23515 (mve_vmlaldavaq_p_<supf><mode>): Define RTL pattern.
23516 (mve_vmlaldavaxq_p_<supf><mode>): Likewise.
23517 (mve_vqrshrnbq_m_n_<supf><mode>): Likewise.
23518 (mve_vqrshrntq_m_n_<supf><mode>): Likewise.
23519 (mve_vqshrnbq_m_n_<supf><mode>): Likewise.
23520 (mve_vqshrntq_m_n_<supf><mode>): Likewise.
23521 (mve_vrmlaldavhaq_p_sv4si): Likewise.
23522 (mve_vrshrnbq_m_n_<supf><mode>): Likewise.
23523 (mve_vrshrntq_m_n_<supf><mode>): Likewise.
23524 (mve_vshllbq_m_n_<supf><mode>): Likewise.
23525 (mve_vshlltq_m_n_<supf><mode>): Likewise.
23526 (mve_vshrnbq_m_n_<supf><mode>): Likewise.
23527 (mve_vshrntq_m_n_<supf><mode>): Likewise.
23528 (mve_vmlsldavaq_p_s<mode>): Likewise.
23529 (mve_vmlsldavaxq_p_s<mode>): Likewise.
23530 (mve_vmullbq_poly_m_p<mode>): Likewise.
23531 (mve_vmulltq_poly_m_p<mode>): Likewise.
23532 (mve_vqdmullbq_m_n_s<mode>): Likewise.
23533 (mve_vqdmullbq_m_s<mode>): Likewise.
23534 (mve_vqdmulltq_m_n_s<mode>): Likewise.
23535 (mve_vqdmulltq_m_s<mode>): Likewise.
23536 (mve_vqrshrunbq_m_n_s<mode>): Likewise.
23537 (mve_vqrshruntq_m_n_s<mode>): Likewise.
23538 (mve_vqshrunbq_m_n_s<mode>): Likewise.
23539 (mve_vqshruntq_m_n_s<mode>): Likewise.
23540 (mve_vrmlaldavhaq_p_uv4si): Likewise.
23541 (mve_vrmlaldavhaxq_p_sv4si): Likewise.
23542 (mve_vrmlsldavhaq_p_sv4si): Likewise.
23543 (mve_vrmlsldavhaxq_p_sv4si): Likewise.
23545 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23546 Mihail Ionescu <mihail.ionescu@arm.com>
23547 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23549 * config/arm/arm_mve.h (vabdq_m_s8): Define macro.
23550 (vabdq_m_s32): Likewise.
23551 (vabdq_m_s16): Likewise.
23552 (vabdq_m_u8): Likewise.
23553 (vabdq_m_u32): Likewise.
23554 (vabdq_m_u16): Likewise.
23555 (vaddq_m_n_s8): Likewise.
23556 (vaddq_m_n_s32): Likewise.
23557 (vaddq_m_n_s16): Likewise.
23558 (vaddq_m_n_u8): Likewise.
23559 (vaddq_m_n_u32): Likewise.
23560 (vaddq_m_n_u16): Likewise.
23561 (vaddq_m_s8): Likewise.
23562 (vaddq_m_s32): Likewise.
23563 (vaddq_m_s16): Likewise.
23564 (vaddq_m_u8): Likewise.
23565 (vaddq_m_u32): Likewise.
23566 (vaddq_m_u16): Likewise.
23567 (vandq_m_s8): Likewise.
23568 (vandq_m_s32): Likewise.
23569 (vandq_m_s16): Likewise.
23570 (vandq_m_u8): Likewise.
23571 (vandq_m_u32): Likewise.
23572 (vandq_m_u16): Likewise.
23573 (vbicq_m_s8): Likewise.
23574 (vbicq_m_s32): Likewise.
23575 (vbicq_m_s16): Likewise.
23576 (vbicq_m_u8): Likewise.
23577 (vbicq_m_u32): Likewise.
23578 (vbicq_m_u16): Likewise.
23579 (vbrsrq_m_n_s8): Likewise.
23580 (vbrsrq_m_n_s32): Likewise.
23581 (vbrsrq_m_n_s16): Likewise.
23582 (vbrsrq_m_n_u8): Likewise.
23583 (vbrsrq_m_n_u32): Likewise.
23584 (vbrsrq_m_n_u16): Likewise.
23585 (vcaddq_rot270_m_s8): Likewise.
23586 (vcaddq_rot270_m_s32): Likewise.
23587 (vcaddq_rot270_m_s16): Likewise.
23588 (vcaddq_rot270_m_u8): Likewise.
23589 (vcaddq_rot270_m_u32): Likewise.
23590 (vcaddq_rot270_m_u16): Likewise.
23591 (vcaddq_rot90_m_s8): Likewise.
23592 (vcaddq_rot90_m_s32): Likewise.
23593 (vcaddq_rot90_m_s16): Likewise.
23594 (vcaddq_rot90_m_u8): Likewise.
23595 (vcaddq_rot90_m_u32): Likewise.
23596 (vcaddq_rot90_m_u16): Likewise.
23597 (veorq_m_s8): Likewise.
23598 (veorq_m_s32): Likewise.
23599 (veorq_m_s16): Likewise.
23600 (veorq_m_u8): Likewise.
23601 (veorq_m_u32): Likewise.
23602 (veorq_m_u16): Likewise.
23603 (vhaddq_m_n_s8): Likewise.
23604 (vhaddq_m_n_s32): Likewise.
23605 (vhaddq_m_n_s16): Likewise.
23606 (vhaddq_m_n_u8): Likewise.
23607 (vhaddq_m_n_u32): Likewise.
23608 (vhaddq_m_n_u16): Likewise.
23609 (vhaddq_m_s8): Likewise.
23610 (vhaddq_m_s32): Likewise.
23611 (vhaddq_m_s16): Likewise.
23612 (vhaddq_m_u8): Likewise.
23613 (vhaddq_m_u32): Likewise.
23614 (vhaddq_m_u16): Likewise.
23615 (vhcaddq_rot270_m_s8): Likewise.
23616 (vhcaddq_rot270_m_s32): Likewise.
23617 (vhcaddq_rot270_m_s16): Likewise.
23618 (vhcaddq_rot90_m_s8): Likewise.
23619 (vhcaddq_rot90_m_s32): Likewise.
23620 (vhcaddq_rot90_m_s16): Likewise.
23621 (vhsubq_m_n_s8): Likewise.
23622 (vhsubq_m_n_s32): Likewise.
23623 (vhsubq_m_n_s16): Likewise.
23624 (vhsubq_m_n_u8): Likewise.
23625 (vhsubq_m_n_u32): Likewise.
23626 (vhsubq_m_n_u16): Likewise.
23627 (vhsubq_m_s8): Likewise.
23628 (vhsubq_m_s32): Likewise.
23629 (vhsubq_m_s16): Likewise.
23630 (vhsubq_m_u8): Likewise.
23631 (vhsubq_m_u32): Likewise.
23632 (vhsubq_m_u16): Likewise.
23633 (vmaxq_m_s8): Likewise.
23634 (vmaxq_m_s32): Likewise.
23635 (vmaxq_m_s16): Likewise.
23636 (vmaxq_m_u8): Likewise.
23637 (vmaxq_m_u32): Likewise.
23638 (vmaxq_m_u16): Likewise.
23639 (vminq_m_s8): Likewise.
23640 (vminq_m_s32): Likewise.
23641 (vminq_m_s16): Likewise.
23642 (vminq_m_u8): Likewise.
23643 (vminq_m_u32): Likewise.
23644 (vminq_m_u16): Likewise.
23645 (vmladavaq_p_s8): Likewise.
23646 (vmladavaq_p_s32): Likewise.
23647 (vmladavaq_p_s16): Likewise.
23648 (vmladavaq_p_u8): Likewise.
23649 (vmladavaq_p_u32): Likewise.
23650 (vmladavaq_p_u16): Likewise.
23651 (vmladavaxq_p_s8): Likewise.
23652 (vmladavaxq_p_s32): Likewise.
23653 (vmladavaxq_p_s16): Likewise.
23654 (vmlaq_m_n_s8): Likewise.
23655 (vmlaq_m_n_s32): Likewise.
23656 (vmlaq_m_n_s16): Likewise.
23657 (vmlaq_m_n_u8): Likewise.
23658 (vmlaq_m_n_u32): Likewise.
23659 (vmlaq_m_n_u16): Likewise.
23660 (vmlasq_m_n_s8): Likewise.
23661 (vmlasq_m_n_s32): Likewise.
23662 (vmlasq_m_n_s16): Likewise.
23663 (vmlasq_m_n_u8): Likewise.
23664 (vmlasq_m_n_u32): Likewise.
23665 (vmlasq_m_n_u16): Likewise.
23666 (vmlsdavaq_p_s8): Likewise.
23667 (vmlsdavaq_p_s32): Likewise.
23668 (vmlsdavaq_p_s16): Likewise.
23669 (vmlsdavaxq_p_s8): Likewise.
23670 (vmlsdavaxq_p_s32): Likewise.
23671 (vmlsdavaxq_p_s16): Likewise.
23672 (vmulhq_m_s8): Likewise.
23673 (vmulhq_m_s32): Likewise.
23674 (vmulhq_m_s16): Likewise.
23675 (vmulhq_m_u8): Likewise.
23676 (vmulhq_m_u32): Likewise.
23677 (vmulhq_m_u16): Likewise.
23678 (vmullbq_int_m_s8): Likewise.
23679 (vmullbq_int_m_s32): Likewise.
23680 (vmullbq_int_m_s16): Likewise.
23681 (vmullbq_int_m_u8): Likewise.
23682 (vmullbq_int_m_u32): Likewise.
23683 (vmullbq_int_m_u16): Likewise.
23684 (vmulltq_int_m_s8): Likewise.
23685 (vmulltq_int_m_s32): Likewise.
23686 (vmulltq_int_m_s16): Likewise.
23687 (vmulltq_int_m_u8): Likewise.
23688 (vmulltq_int_m_u32): Likewise.
23689 (vmulltq_int_m_u16): Likewise.
23690 (vmulq_m_n_s8): Likewise.
23691 (vmulq_m_n_s32): Likewise.
23692 (vmulq_m_n_s16): Likewise.
23693 (vmulq_m_n_u8): Likewise.
23694 (vmulq_m_n_u32): Likewise.
23695 (vmulq_m_n_u16): Likewise.
23696 (vmulq_m_s8): Likewise.
23697 (vmulq_m_s32): Likewise.
23698 (vmulq_m_s16): Likewise.
23699 (vmulq_m_u8): Likewise.
23700 (vmulq_m_u32): Likewise.
23701 (vmulq_m_u16): Likewise.
23702 (vornq_m_s8): Likewise.
23703 (vornq_m_s32): Likewise.
23704 (vornq_m_s16): Likewise.
23705 (vornq_m_u8): Likewise.
23706 (vornq_m_u32): Likewise.
23707 (vornq_m_u16): Likewise.
23708 (vorrq_m_s8): Likewise.
23709 (vorrq_m_s32): Likewise.
23710 (vorrq_m_s16): Likewise.
23711 (vorrq_m_u8): Likewise.
23712 (vorrq_m_u32): Likewise.
23713 (vorrq_m_u16): Likewise.
23714 (vqaddq_m_n_s8): Likewise.
23715 (vqaddq_m_n_s32): Likewise.
23716 (vqaddq_m_n_s16): Likewise.
23717 (vqaddq_m_n_u8): Likewise.
23718 (vqaddq_m_n_u32): Likewise.
23719 (vqaddq_m_n_u16): Likewise.
23720 (vqaddq_m_s8): Likewise.
23721 (vqaddq_m_s32): Likewise.
23722 (vqaddq_m_s16): Likewise.
23723 (vqaddq_m_u8): Likewise.
23724 (vqaddq_m_u32): Likewise.
23725 (vqaddq_m_u16): Likewise.
23726 (vqdmladhq_m_s8): Likewise.
23727 (vqdmladhq_m_s32): Likewise.
23728 (vqdmladhq_m_s16): Likewise.
23729 (vqdmladhxq_m_s8): Likewise.
23730 (vqdmladhxq_m_s32): Likewise.
23731 (vqdmladhxq_m_s16): Likewise.
23732 (vqdmlahq_m_n_s8): Likewise.
23733 (vqdmlahq_m_n_s32): Likewise.
23734 (vqdmlahq_m_n_s16): Likewise.
23735 (vqdmlahq_m_n_u8): Likewise.
23736 (vqdmlahq_m_n_u32): Likewise.
23737 (vqdmlahq_m_n_u16): Likewise.
23738 (vqdmlsdhq_m_s8): Likewise.
23739 (vqdmlsdhq_m_s32): Likewise.
23740 (vqdmlsdhq_m_s16): Likewise.
23741 (vqdmlsdhxq_m_s8): Likewise.
23742 (vqdmlsdhxq_m_s32): Likewise.
23743 (vqdmlsdhxq_m_s16): Likewise.
23744 (vqdmulhq_m_n_s8): Likewise.
23745 (vqdmulhq_m_n_s32): Likewise.
23746 (vqdmulhq_m_n_s16): Likewise.
23747 (vqdmulhq_m_s8): Likewise.
23748 (vqdmulhq_m_s32): Likewise.
23749 (vqdmulhq_m_s16): Likewise.
23750 (vqrdmladhq_m_s8): Likewise.
23751 (vqrdmladhq_m_s32): Likewise.
23752 (vqrdmladhq_m_s16): Likewise.
23753 (vqrdmladhxq_m_s8): Likewise.
23754 (vqrdmladhxq_m_s32): Likewise.
23755 (vqrdmladhxq_m_s16): Likewise.
23756 (vqrdmlahq_m_n_s8): Likewise.
23757 (vqrdmlahq_m_n_s32): Likewise.
23758 (vqrdmlahq_m_n_s16): Likewise.
23759 (vqrdmlahq_m_n_u8): Likewise.
23760 (vqrdmlahq_m_n_u32): Likewise.
23761 (vqrdmlahq_m_n_u16): Likewise.
23762 (vqrdmlashq_m_n_s8): Likewise.
23763 (vqrdmlashq_m_n_s32): Likewise.
23764 (vqrdmlashq_m_n_s16): Likewise.
23765 (vqrdmlashq_m_n_u8): Likewise.
23766 (vqrdmlashq_m_n_u32): Likewise.
23767 (vqrdmlashq_m_n_u16): Likewise.
23768 (vqrdmlsdhq_m_s8): Likewise.
23769 (vqrdmlsdhq_m_s32): Likewise.
23770 (vqrdmlsdhq_m_s16): Likewise.
23771 (vqrdmlsdhxq_m_s8): Likewise.
23772 (vqrdmlsdhxq_m_s32): Likewise.
23773 (vqrdmlsdhxq_m_s16): Likewise.
23774 (vqrdmulhq_m_n_s8): Likewise.
23775 (vqrdmulhq_m_n_s32): Likewise.
23776 (vqrdmulhq_m_n_s16): Likewise.
23777 (vqrdmulhq_m_s8): Likewise.
23778 (vqrdmulhq_m_s32): Likewise.
23779 (vqrdmulhq_m_s16): Likewise.
23780 (vqrshlq_m_s8): Likewise.
23781 (vqrshlq_m_s32): Likewise.
23782 (vqrshlq_m_s16): Likewise.
23783 (vqrshlq_m_u8): Likewise.
23784 (vqrshlq_m_u32): Likewise.
23785 (vqrshlq_m_u16): Likewise.
23786 (vqshlq_m_n_s8): Likewise.
23787 (vqshlq_m_n_s32): Likewise.
23788 (vqshlq_m_n_s16): Likewise.
23789 (vqshlq_m_n_u8): Likewise.
23790 (vqshlq_m_n_u32): Likewise.
23791 (vqshlq_m_n_u16): Likewise.
23792 (vqshlq_m_s8): Likewise.
23793 (vqshlq_m_s32): Likewise.
23794 (vqshlq_m_s16): Likewise.
23795 (vqshlq_m_u8): Likewise.
23796 (vqshlq_m_u32): Likewise.
23797 (vqshlq_m_u16): Likewise.
23798 (vqsubq_m_n_s8): Likewise.
23799 (vqsubq_m_n_s32): Likewise.
23800 (vqsubq_m_n_s16): Likewise.
23801 (vqsubq_m_n_u8): Likewise.
23802 (vqsubq_m_n_u32): Likewise.
23803 (vqsubq_m_n_u16): Likewise.
23804 (vqsubq_m_s8): Likewise.
23805 (vqsubq_m_s32): Likewise.
23806 (vqsubq_m_s16): Likewise.
23807 (vqsubq_m_u8): Likewise.
23808 (vqsubq_m_u32): Likewise.
23809 (vqsubq_m_u16): Likewise.
23810 (vrhaddq_m_s8): Likewise.
23811 (vrhaddq_m_s32): Likewise.
23812 (vrhaddq_m_s16): Likewise.
23813 (vrhaddq_m_u8): Likewise.
23814 (vrhaddq_m_u32): Likewise.
23815 (vrhaddq_m_u16): Likewise.
23816 (vrmulhq_m_s8): Likewise.
23817 (vrmulhq_m_s32): Likewise.
23818 (vrmulhq_m_s16): Likewise.
23819 (vrmulhq_m_u8): Likewise.
23820 (vrmulhq_m_u32): Likewise.
23821 (vrmulhq_m_u16): Likewise.
23822 (vrshlq_m_s8): Likewise.
23823 (vrshlq_m_s32): Likewise.
23824 (vrshlq_m_s16): Likewise.
23825 (vrshlq_m_u8): Likewise.
23826 (vrshlq_m_u32): Likewise.
23827 (vrshlq_m_u16): Likewise.
23828 (vrshrq_m_n_s8): Likewise.
23829 (vrshrq_m_n_s32): Likewise.
23830 (vrshrq_m_n_s16): Likewise.
23831 (vrshrq_m_n_u8): Likewise.
23832 (vrshrq_m_n_u32): Likewise.
23833 (vrshrq_m_n_u16): Likewise.
23834 (vshlq_m_n_s8): Likewise.
23835 (vshlq_m_n_s32): Likewise.
23836 (vshlq_m_n_s16): Likewise.
23837 (vshlq_m_n_u8): Likewise.
23838 (vshlq_m_n_u32): Likewise.
23839 (vshlq_m_n_u16): Likewise.
23840 (vshrq_m_n_s8): Likewise.
23841 (vshrq_m_n_s32): Likewise.
23842 (vshrq_m_n_s16): Likewise.
23843 (vshrq_m_n_u8): Likewise.
23844 (vshrq_m_n_u32): Likewise.
23845 (vshrq_m_n_u16): Likewise.
23846 (vsliq_m_n_s8): Likewise.
23847 (vsliq_m_n_s32): Likewise.
23848 (vsliq_m_n_s16): Likewise.
23849 (vsliq_m_n_u8): Likewise.
23850 (vsliq_m_n_u32): Likewise.
23851 (vsliq_m_n_u16): Likewise.
23852 (vsubq_m_n_s8): Likewise.
23853 (vsubq_m_n_s32): Likewise.
23854 (vsubq_m_n_s16): Likewise.
23855 (vsubq_m_n_u8): Likewise.
23856 (vsubq_m_n_u32): Likewise.
23857 (vsubq_m_n_u16): Likewise.
23858 (__arm_vabdq_m_s8): Define intrinsic.
23859 (__arm_vabdq_m_s32): Likewise.
23860 (__arm_vabdq_m_s16): Likewise.
23861 (__arm_vabdq_m_u8): Likewise.
23862 (__arm_vabdq_m_u32): Likewise.
23863 (__arm_vabdq_m_u16): Likewise.
23864 (__arm_vaddq_m_n_s8): Likewise.
23865 (__arm_vaddq_m_n_s32): Likewise.
23866 (__arm_vaddq_m_n_s16): Likewise.
23867 (__arm_vaddq_m_n_u8): Likewise.
23868 (__arm_vaddq_m_n_u32): Likewise.
23869 (__arm_vaddq_m_n_u16): Likewise.
23870 (__arm_vaddq_m_s8): Likewise.
23871 (__arm_vaddq_m_s32): Likewise.
23872 (__arm_vaddq_m_s16): Likewise.
23873 (__arm_vaddq_m_u8): Likewise.
23874 (__arm_vaddq_m_u32): Likewise.
23875 (__arm_vaddq_m_u16): Likewise.
23876 (__arm_vandq_m_s8): Likewise.
23877 (__arm_vandq_m_s32): Likewise.
23878 (__arm_vandq_m_s16): Likewise.
23879 (__arm_vandq_m_u8): Likewise.
23880 (__arm_vandq_m_u32): Likewise.
23881 (__arm_vandq_m_u16): Likewise.
23882 (__arm_vbicq_m_s8): Likewise.
23883 (__arm_vbicq_m_s32): Likewise.
23884 (__arm_vbicq_m_s16): Likewise.
23885 (__arm_vbicq_m_u8): Likewise.
23886 (__arm_vbicq_m_u32): Likewise.
23887 (__arm_vbicq_m_u16): Likewise.
23888 (__arm_vbrsrq_m_n_s8): Likewise.
23889 (__arm_vbrsrq_m_n_s32): Likewise.
23890 (__arm_vbrsrq_m_n_s16): Likewise.
23891 (__arm_vbrsrq_m_n_u8): Likewise.
23892 (__arm_vbrsrq_m_n_u32): Likewise.
23893 (__arm_vbrsrq_m_n_u16): Likewise.
23894 (__arm_vcaddq_rot270_m_s8): Likewise.
23895 (__arm_vcaddq_rot270_m_s32): Likewise.
23896 (__arm_vcaddq_rot270_m_s16): Likewise.
23897 (__arm_vcaddq_rot270_m_u8): Likewise.
23898 (__arm_vcaddq_rot270_m_u32): Likewise.
23899 (__arm_vcaddq_rot270_m_u16): Likewise.
23900 (__arm_vcaddq_rot90_m_s8): Likewise.
23901 (__arm_vcaddq_rot90_m_s32): Likewise.
23902 (__arm_vcaddq_rot90_m_s16): Likewise.
23903 (__arm_vcaddq_rot90_m_u8): Likewise.
23904 (__arm_vcaddq_rot90_m_u32): Likewise.
23905 (__arm_vcaddq_rot90_m_u16): Likewise.
23906 (__arm_veorq_m_s8): Likewise.
23907 (__arm_veorq_m_s32): Likewise.
23908 (__arm_veorq_m_s16): Likewise.
23909 (__arm_veorq_m_u8): Likewise.
23910 (__arm_veorq_m_u32): Likewise.
23911 (__arm_veorq_m_u16): Likewise.
23912 (__arm_vhaddq_m_n_s8): Likewise.
23913 (__arm_vhaddq_m_n_s32): Likewise.
23914 (__arm_vhaddq_m_n_s16): Likewise.
23915 (__arm_vhaddq_m_n_u8): Likewise.
23916 (__arm_vhaddq_m_n_u32): Likewise.
23917 (__arm_vhaddq_m_n_u16): Likewise.
23918 (__arm_vhaddq_m_s8): Likewise.
23919 (__arm_vhaddq_m_s32): Likewise.
23920 (__arm_vhaddq_m_s16): Likewise.
23921 (__arm_vhaddq_m_u8): Likewise.
23922 (__arm_vhaddq_m_u32): Likewise.
23923 (__arm_vhaddq_m_u16): Likewise.
23924 (__arm_vhcaddq_rot270_m_s8): Likewise.
23925 (__arm_vhcaddq_rot270_m_s32): Likewise.
23926 (__arm_vhcaddq_rot270_m_s16): Likewise.
23927 (__arm_vhcaddq_rot90_m_s8): Likewise.
23928 (__arm_vhcaddq_rot90_m_s32): Likewise.
23929 (__arm_vhcaddq_rot90_m_s16): Likewise.
23930 (__arm_vhsubq_m_n_s8): Likewise.
23931 (__arm_vhsubq_m_n_s32): Likewise.
23932 (__arm_vhsubq_m_n_s16): Likewise.
23933 (__arm_vhsubq_m_n_u8): Likewise.
23934 (__arm_vhsubq_m_n_u32): Likewise.
23935 (__arm_vhsubq_m_n_u16): Likewise.
23936 (__arm_vhsubq_m_s8): Likewise.
23937 (__arm_vhsubq_m_s32): Likewise.
23938 (__arm_vhsubq_m_s16): Likewise.
23939 (__arm_vhsubq_m_u8): Likewise.
23940 (__arm_vhsubq_m_u32): Likewise.
23941 (__arm_vhsubq_m_u16): Likewise.
23942 (__arm_vmaxq_m_s8): Likewise.
23943 (__arm_vmaxq_m_s32): Likewise.
23944 (__arm_vmaxq_m_s16): Likewise.
23945 (__arm_vmaxq_m_u8): Likewise.
23946 (__arm_vmaxq_m_u32): Likewise.
23947 (__arm_vmaxq_m_u16): Likewise.
23948 (__arm_vminq_m_s8): Likewise.
23949 (__arm_vminq_m_s32): Likewise.
23950 (__arm_vminq_m_s16): Likewise.
23951 (__arm_vminq_m_u8): Likewise.
23952 (__arm_vminq_m_u32): Likewise.
23953 (__arm_vminq_m_u16): Likewise.
23954 (__arm_vmladavaq_p_s8): Likewise.
23955 (__arm_vmladavaq_p_s32): Likewise.
23956 (__arm_vmladavaq_p_s16): Likewise.
23957 (__arm_vmladavaq_p_u8): Likewise.
23958 (__arm_vmladavaq_p_u32): Likewise.
23959 (__arm_vmladavaq_p_u16): Likewise.
23960 (__arm_vmladavaxq_p_s8): Likewise.
23961 (__arm_vmladavaxq_p_s32): Likewise.
23962 (__arm_vmladavaxq_p_s16): Likewise.
23963 (__arm_vmlaq_m_n_s8): Likewise.
23964 (__arm_vmlaq_m_n_s32): Likewise.
23965 (__arm_vmlaq_m_n_s16): Likewise.
23966 (__arm_vmlaq_m_n_u8): Likewise.
23967 (__arm_vmlaq_m_n_u32): Likewise.
23968 (__arm_vmlaq_m_n_u16): Likewise.
23969 (__arm_vmlasq_m_n_s8): Likewise.
23970 (__arm_vmlasq_m_n_s32): Likewise.
23971 (__arm_vmlasq_m_n_s16): Likewise.
23972 (__arm_vmlasq_m_n_u8): Likewise.
23973 (__arm_vmlasq_m_n_u32): Likewise.
23974 (__arm_vmlasq_m_n_u16): Likewise.
23975 (__arm_vmlsdavaq_p_s8): Likewise.
23976 (__arm_vmlsdavaq_p_s32): Likewise.
23977 (__arm_vmlsdavaq_p_s16): Likewise.
23978 (__arm_vmlsdavaxq_p_s8): Likewise.
23979 (__arm_vmlsdavaxq_p_s32): Likewise.
23980 (__arm_vmlsdavaxq_p_s16): Likewise.
23981 (__arm_vmulhq_m_s8): Likewise.
23982 (__arm_vmulhq_m_s32): Likewise.
23983 (__arm_vmulhq_m_s16): Likewise.
23984 (__arm_vmulhq_m_u8): Likewise.
23985 (__arm_vmulhq_m_u32): Likewise.
23986 (__arm_vmulhq_m_u16): Likewise.
23987 (__arm_vmullbq_int_m_s8): Likewise.
23988 (__arm_vmullbq_int_m_s32): Likewise.
23989 (__arm_vmullbq_int_m_s16): Likewise.
23990 (__arm_vmullbq_int_m_u8): Likewise.
23991 (__arm_vmullbq_int_m_u32): Likewise.
23992 (__arm_vmullbq_int_m_u16): Likewise.
23993 (__arm_vmulltq_int_m_s8): Likewise.
23994 (__arm_vmulltq_int_m_s32): Likewise.
23995 (__arm_vmulltq_int_m_s16): Likewise.
23996 (__arm_vmulltq_int_m_u8): Likewise.
23997 (__arm_vmulltq_int_m_u32): Likewise.
23998 (__arm_vmulltq_int_m_u16): Likewise.
23999 (__arm_vmulq_m_n_s8): Likewise.
24000 (__arm_vmulq_m_n_s32): Likewise.
24001 (__arm_vmulq_m_n_s16): Likewise.
24002 (__arm_vmulq_m_n_u8): Likewise.
24003 (__arm_vmulq_m_n_u32): Likewise.
24004 (__arm_vmulq_m_n_u16): Likewise.
24005 (__arm_vmulq_m_s8): Likewise.
24006 (__arm_vmulq_m_s32): Likewise.
24007 (__arm_vmulq_m_s16): Likewise.
24008 (__arm_vmulq_m_u8): Likewise.
24009 (__arm_vmulq_m_u32): Likewise.
24010 (__arm_vmulq_m_u16): Likewise.
24011 (__arm_vornq_m_s8): Likewise.
24012 (__arm_vornq_m_s32): Likewise.
24013 (__arm_vornq_m_s16): Likewise.
24014 (__arm_vornq_m_u8): Likewise.
24015 (__arm_vornq_m_u32): Likewise.
24016 (__arm_vornq_m_u16): Likewise.
24017 (__arm_vorrq_m_s8): Likewise.
24018 (__arm_vorrq_m_s32): Likewise.
24019 (__arm_vorrq_m_s16): Likewise.
24020 (__arm_vorrq_m_u8): Likewise.
24021 (__arm_vorrq_m_u32): Likewise.
24022 (__arm_vorrq_m_u16): Likewise.
24023 (__arm_vqaddq_m_n_s8): Likewise.
24024 (__arm_vqaddq_m_n_s32): Likewise.
24025 (__arm_vqaddq_m_n_s16): Likewise.
24026 (__arm_vqaddq_m_n_u8): Likewise.
24027 (__arm_vqaddq_m_n_u32): Likewise.
24028 (__arm_vqaddq_m_n_u16): Likewise.
24029 (__arm_vqaddq_m_s8): Likewise.
24030 (__arm_vqaddq_m_s32): Likewise.
24031 (__arm_vqaddq_m_s16): Likewise.
24032 (__arm_vqaddq_m_u8): Likewise.
24033 (__arm_vqaddq_m_u32): Likewise.
24034 (__arm_vqaddq_m_u16): Likewise.
24035 (__arm_vqdmladhq_m_s8): Likewise.
24036 (__arm_vqdmladhq_m_s32): Likewise.
24037 (__arm_vqdmladhq_m_s16): Likewise.
24038 (__arm_vqdmladhxq_m_s8): Likewise.
24039 (__arm_vqdmladhxq_m_s32): Likewise.
24040 (__arm_vqdmladhxq_m_s16): Likewise.
24041 (__arm_vqdmlahq_m_n_s8): Likewise.
24042 (__arm_vqdmlahq_m_n_s32): Likewise.
24043 (__arm_vqdmlahq_m_n_s16): Likewise.
24044 (__arm_vqdmlahq_m_n_u8): Likewise.
24045 (__arm_vqdmlahq_m_n_u32): Likewise.
24046 (__arm_vqdmlahq_m_n_u16): Likewise.
24047 (__arm_vqdmlsdhq_m_s8): Likewise.
24048 (__arm_vqdmlsdhq_m_s32): Likewise.
24049 (__arm_vqdmlsdhq_m_s16): Likewise.
24050 (__arm_vqdmlsdhxq_m_s8): Likewise.
24051 (__arm_vqdmlsdhxq_m_s32): Likewise.
24052 (__arm_vqdmlsdhxq_m_s16): Likewise.
24053 (__arm_vqdmulhq_m_n_s8): Likewise.
24054 (__arm_vqdmulhq_m_n_s32): Likewise.
24055 (__arm_vqdmulhq_m_n_s16): Likewise.
24056 (__arm_vqdmulhq_m_s8): Likewise.
24057 (__arm_vqdmulhq_m_s32): Likewise.
24058 (__arm_vqdmulhq_m_s16): Likewise.
24059 (__arm_vqrdmladhq_m_s8): Likewise.
24060 (__arm_vqrdmladhq_m_s32): Likewise.
24061 (__arm_vqrdmladhq_m_s16): Likewise.
24062 (__arm_vqrdmladhxq_m_s8): Likewise.
24063 (__arm_vqrdmladhxq_m_s32): Likewise.
24064 (__arm_vqrdmladhxq_m_s16): Likewise.
24065 (__arm_vqrdmlahq_m_n_s8): Likewise.
24066 (__arm_vqrdmlahq_m_n_s32): Likewise.
24067 (__arm_vqrdmlahq_m_n_s16): Likewise.
24068 (__arm_vqrdmlahq_m_n_u8): Likewise.
24069 (__arm_vqrdmlahq_m_n_u32): Likewise.
24070 (__arm_vqrdmlahq_m_n_u16): Likewise.
24071 (__arm_vqrdmlashq_m_n_s8): Likewise.
24072 (__arm_vqrdmlashq_m_n_s32): Likewise.
24073 (__arm_vqrdmlashq_m_n_s16): Likewise.
24074 (__arm_vqrdmlashq_m_n_u8): Likewise.
24075 (__arm_vqrdmlashq_m_n_u32): Likewise.
24076 (__arm_vqrdmlashq_m_n_u16): Likewise.
24077 (__arm_vqrdmlsdhq_m_s8): Likewise.
24078 (__arm_vqrdmlsdhq_m_s32): Likewise.
24079 (__arm_vqrdmlsdhq_m_s16): Likewise.
24080 (__arm_vqrdmlsdhxq_m_s8): Likewise.
24081 (__arm_vqrdmlsdhxq_m_s32): Likewise.
24082 (__arm_vqrdmlsdhxq_m_s16): Likewise.
24083 (__arm_vqrdmulhq_m_n_s8): Likewise.
24084 (__arm_vqrdmulhq_m_n_s32): Likewise.
24085 (__arm_vqrdmulhq_m_n_s16): Likewise.
24086 (__arm_vqrdmulhq_m_s8): Likewise.
24087 (__arm_vqrdmulhq_m_s32): Likewise.
24088 (__arm_vqrdmulhq_m_s16): Likewise.
24089 (__arm_vqrshlq_m_s8): Likewise.
24090 (__arm_vqrshlq_m_s32): Likewise.
24091 (__arm_vqrshlq_m_s16): Likewise.
24092 (__arm_vqrshlq_m_u8): Likewise.
24093 (__arm_vqrshlq_m_u32): Likewise.
24094 (__arm_vqrshlq_m_u16): Likewise.
24095 (__arm_vqshlq_m_n_s8): Likewise.
24096 (__arm_vqshlq_m_n_s32): Likewise.
24097 (__arm_vqshlq_m_n_s16): Likewise.
24098 (__arm_vqshlq_m_n_u8): Likewise.
24099 (__arm_vqshlq_m_n_u32): Likewise.
24100 (__arm_vqshlq_m_n_u16): Likewise.
24101 (__arm_vqshlq_m_s8): Likewise.
24102 (__arm_vqshlq_m_s32): Likewise.
24103 (__arm_vqshlq_m_s16): Likewise.
24104 (__arm_vqshlq_m_u8): Likewise.
24105 (__arm_vqshlq_m_u32): Likewise.
24106 (__arm_vqshlq_m_u16): Likewise.
24107 (__arm_vqsubq_m_n_s8): Likewise.
24108 (__arm_vqsubq_m_n_s32): Likewise.
24109 (__arm_vqsubq_m_n_s16): Likewise.
24110 (__arm_vqsubq_m_n_u8): Likewise.
24111 (__arm_vqsubq_m_n_u32): Likewise.
24112 (__arm_vqsubq_m_n_u16): Likewise.
24113 (__arm_vqsubq_m_s8): Likewise.
24114 (__arm_vqsubq_m_s32): Likewise.
24115 (__arm_vqsubq_m_s16): Likewise.
24116 (__arm_vqsubq_m_u8): Likewise.
24117 (__arm_vqsubq_m_u32): Likewise.
24118 (__arm_vqsubq_m_u16): Likewise.
24119 (__arm_vrhaddq_m_s8): Likewise.
24120 (__arm_vrhaddq_m_s32): Likewise.
24121 (__arm_vrhaddq_m_s16): Likewise.
24122 (__arm_vrhaddq_m_u8): Likewise.
24123 (__arm_vrhaddq_m_u32): Likewise.
24124 (__arm_vrhaddq_m_u16): Likewise.
24125 (__arm_vrmulhq_m_s8): Likewise.
24126 (__arm_vrmulhq_m_s32): Likewise.
24127 (__arm_vrmulhq_m_s16): Likewise.
24128 (__arm_vrmulhq_m_u8): Likewise.
24129 (__arm_vrmulhq_m_u32): Likewise.
24130 (__arm_vrmulhq_m_u16): Likewise.
24131 (__arm_vrshlq_m_s8): Likewise.
24132 (__arm_vrshlq_m_s32): Likewise.
24133 (__arm_vrshlq_m_s16): Likewise.
24134 (__arm_vrshlq_m_u8): Likewise.
24135 (__arm_vrshlq_m_u32): Likewise.
24136 (__arm_vrshlq_m_u16): Likewise.
24137 (__arm_vrshrq_m_n_s8): Likewise.
24138 (__arm_vrshrq_m_n_s32): Likewise.
24139 (__arm_vrshrq_m_n_s16): Likewise.
24140 (__arm_vrshrq_m_n_u8): Likewise.
24141 (__arm_vrshrq_m_n_u32): Likewise.
24142 (__arm_vrshrq_m_n_u16): Likewise.
24143 (__arm_vshlq_m_n_s8): Likewise.
24144 (__arm_vshlq_m_n_s32): Likewise.
24145 (__arm_vshlq_m_n_s16): Likewise.
24146 (__arm_vshlq_m_n_u8): Likewise.
24147 (__arm_vshlq_m_n_u32): Likewise.
24148 (__arm_vshlq_m_n_u16): Likewise.
24149 (__arm_vshrq_m_n_s8): Likewise.
24150 (__arm_vshrq_m_n_s32): Likewise.
24151 (__arm_vshrq_m_n_s16): Likewise.
24152 (__arm_vshrq_m_n_u8): Likewise.
24153 (__arm_vshrq_m_n_u32): Likewise.
24154 (__arm_vshrq_m_n_u16): Likewise.
24155 (__arm_vsliq_m_n_s8): Likewise.
24156 (__arm_vsliq_m_n_s32): Likewise.
24157 (__arm_vsliq_m_n_s16): Likewise.
24158 (__arm_vsliq_m_n_u8): Likewise.
24159 (__arm_vsliq_m_n_u32): Likewise.
24160 (__arm_vsliq_m_n_u16): Likewise.
24161 (__arm_vsubq_m_n_s8): Likewise.
24162 (__arm_vsubq_m_n_s32): Likewise.
24163 (__arm_vsubq_m_n_s16): Likewise.
24164 (__arm_vsubq_m_n_u8): Likewise.
24165 (__arm_vsubq_m_n_u32): Likewise.
24166 (__arm_vsubq_m_n_u16): Likewise.
24167 (vqdmladhq_m): Define polymorphic variant.
24168 (vqdmladhxq_m): Likewise.
24169 (vqdmlsdhq_m): Likewise.
24170 (vqdmlsdhxq_m): Likewise.
24171 (vabdq_m): Likewise.
24172 (vandq_m): Likewise.
24173 (vbicq_m): Likewise.
24174 (vbrsrq_m_n): Likewise.
24175 (vcaddq_rot270_m): Likewise.
24176 (vcaddq_rot90_m): Likewise.
24177 (veorq_m): Likewise.
24178 (vmaxq_m): Likewise.
24179 (vminq_m): Likewise.
24180 (vmladavaq_p): Likewise.
24181 (vmlaq_m_n): Likewise.
24182 (vmlasq_m_n): Likewise.
24183 (vmulhq_m): Likewise.
24184 (vmullbq_int_m): Likewise.
24185 (vmulltq_int_m): Likewise.
24186 (vornq_m): Likewise.
24187 (vorrq_m): Likewise.
24188 (vqdmlahq_m_n): Likewise.
24189 (vqrdmlahq_m_n): Likewise.
24190 (vqrdmlashq_m_n): Likewise.
24191 (vqrshlq_m): Likewise.
24192 (vqshlq_m_n): Likewise.
24193 (vqshlq_m): Likewise.
24194 (vrhaddq_m): Likewise.
24195 (vrmulhq_m): Likewise.
24196 (vrshlq_m): Likewise.
24197 (vrshrq_m_n): Likewise.
24198 (vshlq_m_n): Likewise.
24199 (vshrq_m_n): Likewise.
24200 (vsliq_m): Likewise.
24201 (vaddq_m_n): Likewise.
24202 (vaddq_m): Likewise.
24203 (vhaddq_m_n): Likewise.
24204 (vhaddq_m): Likewise.
24205 (vhcaddq_rot270_m): Likewise.
24206 (vhcaddq_rot90_m): Likewise.
24207 (vhsubq_m): Likewise.
24208 (vhsubq_m_n): Likewise.
24209 (vmulq_m_n): Likewise.
24210 (vmulq_m): Likewise.
24211 (vqaddq_m_n): Likewise.
24212 (vqaddq_m): Likewise.
24213 (vqdmulhq_m_n): Likewise.
24214 (vqdmulhq_m): Likewise.
24215 (vsubq_m_n): Likewise.
24216 (vsliq_m_n): Likewise.
24217 (vqsubq_m_n): Likewise.
24218 (vqsubq_m): Likewise.
24219 (vqrdmulhq_m): Likewise.
24220 (vqrdmulhq_m_n): Likewise.
24221 (vqrdmlsdhxq_m): Likewise.
24222 (vqrdmlsdhq_m): Likewise.
24223 (vqrdmladhq_m): Likewise.
24224 (vqrdmladhxq_m): Likewise.
24225 (vmlsdavaxq_p): Likewise.
24226 (vmlsdavaq_p): Likewise.
24227 (vmladavaxq_p): Likewise.
24228 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
24230 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
24231 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
24232 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE): Likewise.
24233 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
24234 * config/arm/mve.md (VHSUBQ_M): Define iterators.
24235 (VSLIQ_M_N): Likewise.
24236 (VQRDMLAHQ_M_N): Likewise.
24237 (VRSHLQ_M): Likewise.
24238 (VMINQ_M): Likewise.
24239 (VMULLBQ_INT_M): Likewise.
24240 (VMULHQ_M): Likewise.
24241 (VMULQ_M): Likewise.
24242 (VHSUBQ_M_N): Likewise.
24243 (VHADDQ_M_N): Likewise.
24244 (VORRQ_M): Likewise.
24245 (VRMULHQ_M): Likewise.
24246 (VQADDQ_M): Likewise.
24247 (VRSHRQ_M_N): Likewise.
24248 (VQSUBQ_M_N): Likewise.
24249 (VADDQ_M): Likewise.
24250 (VORNQ_M): Likewise.
24251 (VQDMLAHQ_M_N): Likewise.
24252 (VRHADDQ_M): Likewise.
24253 (VQSHLQ_M): Likewise.
24254 (VANDQ_M): Likewise.
24255 (VBICQ_M): Likewise.
24256 (VSHLQ_M_N): Likewise.
24257 (VCADDQ_ROT270_M): Likewise.
24258 (VQRSHLQ_M): Likewise.
24259 (VQADDQ_M_N): Likewise.
24260 (VADDQ_M_N): Likewise.
24261 (VMAXQ_M): Likewise.
24262 (VQSUBQ_M): Likewise.
24263 (VMLASQ_M_N): Likewise.
24264 (VMLADAVAQ_P): Likewise.
24265 (VBRSRQ_M_N): Likewise.
24266 (VMULQ_M_N): Likewise.
24267 (VCADDQ_ROT90_M): Likewise.
24268 (VMULLTQ_INT_M): Likewise.
24269 (VEORQ_M): Likewise.
24270 (VSHRQ_M_N): Likewise.
24271 (VSUBQ_M_N): Likewise.
24272 (VHADDQ_M): Likewise.
24273 (VABDQ_M): Likewise.
24274 (VQRDMLASHQ_M_N): Likewise.
24275 (VMLAQ_M_N): Likewise.
24276 (VQSHLQ_M_N): Likewise.
24277 (mve_vabdq_m_<supf><mode>): Define RTL pattern.
24278 (mve_vaddq_m_n_<supf><mode>): Likewise.
24279 (mve_vaddq_m_<supf><mode>): Likewise.
24280 (mve_vandq_m_<supf><mode>): Likewise.
24281 (mve_vbicq_m_<supf><mode>): Likewise.
24282 (mve_vbrsrq_m_n_<supf><mode>): Likewise.
24283 (mve_vcaddq_rot270_m_<supf><mode>): Likewise.
24284 (mve_vcaddq_rot90_m_<supf><mode>): Likewise.
24285 (mve_veorq_m_<supf><mode>): Likewise.
24286 (mve_vhaddq_m_n_<supf><mode>): Likewise.
24287 (mve_vhaddq_m_<supf><mode>): Likewise.
24288 (mve_vhsubq_m_n_<supf><mode>): Likewise.
24289 (mve_vhsubq_m_<supf><mode>): Likewise.
24290 (mve_vmaxq_m_<supf><mode>): Likewise.
24291 (mve_vminq_m_<supf><mode>): Likewise.
24292 (mve_vmladavaq_p_<supf><mode>): Likewise.
24293 (mve_vmlaq_m_n_<supf><mode>): Likewise.
24294 (mve_vmlasq_m_n_<supf><mode>): Likewise.
24295 (mve_vmulhq_m_<supf><mode>): Likewise.
24296 (mve_vmullbq_int_m_<supf><mode>): Likewise.
24297 (mve_vmulltq_int_m_<supf><mode>): Likewise.
24298 (mve_vmulq_m_n_<supf><mode>): Likewise.
24299 (mve_vmulq_m_<supf><mode>): Likewise.
24300 (mve_vornq_m_<supf><mode>): Likewise.
24301 (mve_vorrq_m_<supf><mode>): Likewise.
24302 (mve_vqaddq_m_n_<supf><mode>): Likewise.
24303 (mve_vqaddq_m_<supf><mode>): Likewise.
24304 (mve_vqdmlahq_m_n_<supf><mode>): Likewise.
24305 (mve_vqrdmlahq_m_n_<supf><mode>): Likewise.
24306 (mve_vqrdmlashq_m_n_<supf><mode>): Likewise.
24307 (mve_vqrshlq_m_<supf><mode>): Likewise.
24308 (mve_vqshlq_m_n_<supf><mode>): Likewise.
24309 (mve_vqshlq_m_<supf><mode>): Likewise.
24310 (mve_vqsubq_m_n_<supf><mode>): Likewise.
24311 (mve_vqsubq_m_<supf><mode>): Likewise.
24312 (mve_vrhaddq_m_<supf><mode>): Likewise.
24313 (mve_vrmulhq_m_<supf><mode>): Likewise.
24314 (mve_vrshlq_m_<supf><mode>): Likewise.
24315 (mve_vrshrq_m_n_<supf><mode>): Likewise.
24316 (mve_vshlq_m_n_<supf><mode>): Likewise.
24317 (mve_vshrq_m_n_<supf><mode>): Likewise.
24318 (mve_vsliq_m_n_<supf><mode>): Likewise.
24319 (mve_vsubq_m_n_<supf><mode>): Likewise.
24320 (mve_vhcaddq_rot270_m_s<mode>): Likewise.
24321 (mve_vhcaddq_rot90_m_s<mode>): Likewise.
24322 (mve_vmladavaxq_p_s<mode>): Likewise.
24323 (mve_vmlsdavaq_p_s<mode>): Likewise.
24324 (mve_vmlsdavaxq_p_s<mode>): Likewise.
24325 (mve_vqdmladhq_m_s<mode>): Likewise.
24326 (mve_vqdmladhxq_m_s<mode>): Likewise.
24327 (mve_vqdmlsdhq_m_s<mode>): Likewise.
24328 (mve_vqdmlsdhxq_m_s<mode>): Likewise.
24329 (mve_vqdmulhq_m_n_s<mode>): Likewise.
24330 (mve_vqdmulhq_m_s<mode>): Likewise.
24331 (mve_vqrdmladhq_m_s<mode>): Likewise.
24332 (mve_vqrdmladhxq_m_s<mode>): Likewise.
24333 (mve_vqrdmlsdhq_m_s<mode>): Likewise.
24334 (mve_vqrdmlsdhxq_m_s<mode>): Likewise.
24335 (mve_vqrdmulhq_m_n_s<mode>): Likewise.
24336 (mve_vqrdmulhq_m_s<mode>): Likewise.
24338 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
24339 Mihail Ionescu <mihail.ionescu@arm.com>
24340 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24342 * config/arm/arm-builtins.c (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS):
24343 Define builtin qualifier.
24344 (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
24345 (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
24346 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
24347 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
24348 (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
24349 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
24350 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
24351 * config/arm/arm_mve.h (vsriq_m_n_s8): Define macro.
24352 (vsubq_m_s8): Likewise.
24353 (vcvtq_m_n_f16_u16): Likewise.
24354 (vqshluq_m_n_s8): Likewise.
24355 (vabavq_p_s8): Likewise.
24356 (vsriq_m_n_u8): Likewise.
24357 (vshlq_m_u8): Likewise.
24358 (vsubq_m_u8): Likewise.
24359 (vabavq_p_u8): Likewise.
24360 (vshlq_m_s8): Likewise.
24361 (vcvtq_m_n_f16_s16): Likewise.
24362 (vsriq_m_n_s16): Likewise.
24363 (vsubq_m_s16): Likewise.
24364 (vcvtq_m_n_f32_u32): Likewise.
24365 (vqshluq_m_n_s16): Likewise.
24366 (vabavq_p_s16): Likewise.
24367 (vsriq_m_n_u16): Likewise.
24368 (vshlq_m_u16): Likewise.
24369 (vsubq_m_u16): Likewise.
24370 (vabavq_p_u16): Likewise.
24371 (vshlq_m_s16): Likewise.
24372 (vcvtq_m_n_f32_s32): Likewise.
24373 (vsriq_m_n_s32): Likewise.
24374 (vsubq_m_s32): Likewise.
24375 (vqshluq_m_n_s32): Likewise.
24376 (vabavq_p_s32): Likewise.
24377 (vsriq_m_n_u32): Likewise.
24378 (vshlq_m_u32): Likewise.
24379 (vsubq_m_u32): Likewise.
24380 (vabavq_p_u32): Likewise.
24381 (vshlq_m_s32): Likewise.
24382 (__arm_vsriq_m_n_s8): Define intrinsic.
24383 (__arm_vsubq_m_s8): Likewise.
24384 (__arm_vqshluq_m_n_s8): Likewise.
24385 (__arm_vabavq_p_s8): Likewise.
24386 (__arm_vsriq_m_n_u8): Likewise.
24387 (__arm_vshlq_m_u8): Likewise.
24388 (__arm_vsubq_m_u8): Likewise.
24389 (__arm_vabavq_p_u8): Likewise.
24390 (__arm_vshlq_m_s8): Likewise.
24391 (__arm_vsriq_m_n_s16): Likewise.
24392 (__arm_vsubq_m_s16): Likewise.
24393 (__arm_vqshluq_m_n_s16): Likewise.
24394 (__arm_vabavq_p_s16): Likewise.
24395 (__arm_vsriq_m_n_u16): Likewise.
24396 (__arm_vshlq_m_u16): Likewise.
24397 (__arm_vsubq_m_u16): Likewise.
24398 (__arm_vabavq_p_u16): Likewise.
24399 (__arm_vshlq_m_s16): Likewise.
24400 (__arm_vsriq_m_n_s32): Likewise.
24401 (__arm_vsubq_m_s32): Likewise.
24402 (__arm_vqshluq_m_n_s32): Likewise.
24403 (__arm_vabavq_p_s32): Likewise.
24404 (__arm_vsriq_m_n_u32): Likewise.
24405 (__arm_vshlq_m_u32): Likewise.
24406 (__arm_vsubq_m_u32): Likewise.
24407 (__arm_vabavq_p_u32): Likewise.
24408 (__arm_vshlq_m_s32): Likewise.
24409 (__arm_vcvtq_m_n_f16_u16): Likewise.
24410 (__arm_vcvtq_m_n_f16_s16): Likewise.
24411 (__arm_vcvtq_m_n_f32_u32): Likewise.
24412 (__arm_vcvtq_m_n_f32_s32): Likewise.
24413 (vcvtq_m_n): Define polymorphic variant.
24414 (vqshluq_m_n): Likewise.
24415 (vshlq_m): Likewise.
24416 (vsriq_m_n): Likewise.
24417 (vsubq_m): Likewise.
24418 (vabavq_p): Likewise.
24419 * config/arm/arm_mve_builtins.def
24420 (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS): Use builtin qualifier.
24421 (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
24422 (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
24423 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
24424 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
24425 (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
24426 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
24427 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
24428 * config/arm/mve.md (VABAVQ_P): Define iterator.
24429 (VSHLQ_M): Likewise.
24430 (VSRIQ_M_N): Likewise.
24431 (VSUBQ_M): Likewise.
24432 (VCVTQ_M_N_TO_F): Likewise.
24433 (mve_vabavq_p_<supf><mode>): Define RTL pattern.
24434 (mve_vqshluq_m_n_s<mode>): Likewise.
24435 (mve_vshlq_m_<supf><mode>): Likewise.
24436 (mve_vsriq_m_n_<supf><mode>): Likewise.
24437 (mve_vsubq_m_<supf><mode>): Likewise.
24438 (mve_vcvtq_m_n_to_f_<supf><mode>): Likewise.
24440 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
24441 Mihail Ionescu <mihail.ionescu@arm.com>
24442 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24444 * config/arm/arm_mve.h (vrmlaldavhaxq_s32): Define macro.
24445 (vrmlsldavhaq_s32): Likewise.
24446 (vrmlsldavhaxq_s32): Likewise.
24447 (vaddlvaq_p_s32): Likewise.
24448 (vcvtbq_m_f16_f32): Likewise.
24449 (vcvtbq_m_f32_f16): Likewise.
24450 (vcvttq_m_f16_f32): Likewise.
24451 (vcvttq_m_f32_f16): Likewise.
24452 (vrev16q_m_s8): Likewise.
24453 (vrev32q_m_f16): Likewise.
24454 (vrmlaldavhq_p_s32): Likewise.
24455 (vrmlaldavhxq_p_s32): Likewise.
24456 (vrmlsldavhq_p_s32): Likewise.
24457 (vrmlsldavhxq_p_s32): Likewise.
24458 (vaddlvaq_p_u32): Likewise.
24459 (vrev16q_m_u8): Likewise.
24460 (vrmlaldavhq_p_u32): Likewise.
24461 (vmvnq_m_n_s16): Likewise.
24462 (vorrq_m_n_s16): Likewise.
24463 (vqrshrntq_n_s16): Likewise.
24464 (vqshrnbq_n_s16): Likewise.
24465 (vqshrntq_n_s16): Likewise.
24466 (vrshrnbq_n_s16): Likewise.
24467 (vrshrntq_n_s16): Likewise.
24468 (vshrnbq_n_s16): Likewise.
24469 (vshrntq_n_s16): Likewise.
24470 (vcmlaq_f16): Likewise.
24471 (vcmlaq_rot180_f16): Likewise.
24472 (vcmlaq_rot270_f16): Likewise.
24473 (vcmlaq_rot90_f16): Likewise.
24474 (vfmaq_f16): Likewise.
24475 (vfmaq_n_f16): Likewise.
24476 (vfmasq_n_f16): Likewise.
24477 (vfmsq_f16): Likewise.
24478 (vmlaldavaq_s16): Likewise.
24479 (vmlaldavaxq_s16): Likewise.
24480 (vmlsldavaq_s16): Likewise.
24481 (vmlsldavaxq_s16): Likewise.
24482 (vabsq_m_f16): Likewise.
24483 (vcvtmq_m_s16_f16): Likewise.
24484 (vcvtnq_m_s16_f16): Likewise.
24485 (vcvtpq_m_s16_f16): Likewise.
24486 (vcvtq_m_s16_f16): Likewise.
24487 (vdupq_m_n_f16): Likewise.
24488 (vmaxnmaq_m_f16): Likewise.
24489 (vmaxnmavq_p_f16): Likewise.
24490 (vmaxnmvq_p_f16): Likewise.
24491 (vminnmaq_m_f16): Likewise.
24492 (vminnmavq_p_f16): Likewise.
24493 (vminnmvq_p_f16): Likewise.
24494 (vmlaldavq_p_s16): Likewise.
24495 (vmlaldavxq_p_s16): Likewise.
24496 (vmlsldavq_p_s16): Likewise.
24497 (vmlsldavxq_p_s16): Likewise.
24498 (vmovlbq_m_s8): Likewise.
24499 (vmovltq_m_s8): Likewise.
24500 (vmovnbq_m_s16): Likewise.
24501 (vmovntq_m_s16): Likewise.
24502 (vnegq_m_f16): Likewise.
24503 (vpselq_f16): Likewise.
24504 (vqmovnbq_m_s16): Likewise.
24505 (vqmovntq_m_s16): Likewise.
24506 (vrev32q_m_s8): Likewise.
24507 (vrev64q_m_f16): Likewise.
24508 (vrndaq_m_f16): Likewise.
24509 (vrndmq_m_f16): Likewise.
24510 (vrndnq_m_f16): Likewise.
24511 (vrndpq_m_f16): Likewise.
24512 (vrndq_m_f16): Likewise.
24513 (vrndxq_m_f16): Likewise.
24514 (vcmpeqq_m_n_f16): Likewise.
24515 (vcmpgeq_m_f16): Likewise.
24516 (vcmpgeq_m_n_f16): Likewise.
24517 (vcmpgtq_m_f16): Likewise.
24518 (vcmpgtq_m_n_f16): Likewise.
24519 (vcmpleq_m_f16): Likewise.
24520 (vcmpleq_m_n_f16): Likewise.
24521 (vcmpltq_m_f16): Likewise.
24522 (vcmpltq_m_n_f16): Likewise.
24523 (vcmpneq_m_f16): Likewise.
24524 (vcmpneq_m_n_f16): Likewise.
24525 (vmvnq_m_n_u16): Likewise.
24526 (vorrq_m_n_u16): Likewise.
24527 (vqrshruntq_n_s16): Likewise.
24528 (vqshrunbq_n_s16): Likewise.
24529 (vqshruntq_n_s16): Likewise.
24530 (vcvtmq_m_u16_f16): Likewise.
24531 (vcvtnq_m_u16_f16): Likewise.
24532 (vcvtpq_m_u16_f16): Likewise.
24533 (vcvtq_m_u16_f16): Likewise.
24534 (vqmovunbq_m_s16): Likewise.
24535 (vqmovuntq_m_s16): Likewise.
24536 (vqrshrntq_n_u16): Likewise.
24537 (vqshrnbq_n_u16): Likewise.
24538 (vqshrntq_n_u16): Likewise.
24539 (vrshrnbq_n_u16): Likewise.
24540 (vrshrntq_n_u16): Likewise.
24541 (vshrnbq_n_u16): Likewise.
24542 (vshrntq_n_u16): Likewise.
24543 (vmlaldavaq_u16): Likewise.
24544 (vmlaldavaxq_u16): Likewise.
24545 (vmlaldavq_p_u16): Likewise.
24546 (vmlaldavxq_p_u16): Likewise.
24547 (vmovlbq_m_u8): Likewise.
24548 (vmovltq_m_u8): Likewise.
24549 (vmovnbq_m_u16): Likewise.
24550 (vmovntq_m_u16): Likewise.
24551 (vqmovnbq_m_u16): Likewise.
24552 (vqmovntq_m_u16): Likewise.
24553 (vrev32q_m_u8): Likewise.
24554 (vmvnq_m_n_s32): Likewise.
24555 (vorrq_m_n_s32): Likewise.
24556 (vqrshrntq_n_s32): Likewise.
24557 (vqshrnbq_n_s32): Likewise.
24558 (vqshrntq_n_s32): Likewise.
24559 (vrshrnbq_n_s32): Likewise.
24560 (vrshrntq_n_s32): Likewise.
24561 (vshrnbq_n_s32): Likewise.
24562 (vshrntq_n_s32): Likewise.
24563 (vcmlaq_f32): Likewise.
24564 (vcmlaq_rot180_f32): Likewise.
24565 (vcmlaq_rot270_f32): Likewise.
24566 (vcmlaq_rot90_f32): Likewise.
24567 (vfmaq_f32): Likewise.
24568 (vfmaq_n_f32): Likewise.
24569 (vfmasq_n_f32): Likewise.
24570 (vfmsq_f32): Likewise.
24571 (vmlaldavaq_s32): Likewise.
24572 (vmlaldavaxq_s32): Likewise.
24573 (vmlsldavaq_s32): Likewise.
24574 (vmlsldavaxq_s32): Likewise.
24575 (vabsq_m_f32): Likewise.
24576 (vcvtmq_m_s32_f32): Likewise.
24577 (vcvtnq_m_s32_f32): Likewise.
24578 (vcvtpq_m_s32_f32): Likewise.
24579 (vcvtq_m_s32_f32): Likewise.
24580 (vdupq_m_n_f32): Likewise.
24581 (vmaxnmaq_m_f32): Likewise.
24582 (vmaxnmavq_p_f32): Likewise.
24583 (vmaxnmvq_p_f32): Likewise.
24584 (vminnmaq_m_f32): Likewise.
24585 (vminnmavq_p_f32): Likewise.
24586 (vminnmvq_p_f32): Likewise.
24587 (vmlaldavq_p_s32): Likewise.
24588 (vmlaldavxq_p_s32): Likewise.
24589 (vmlsldavq_p_s32): Likewise.
24590 (vmlsldavxq_p_s32): Likewise.
24591 (vmovlbq_m_s16): Likewise.
24592 (vmovltq_m_s16): Likewise.
24593 (vmovnbq_m_s32): Likewise.
24594 (vmovntq_m_s32): Likewise.
24595 (vnegq_m_f32): Likewise.
24596 (vpselq_f32): Likewise.
24597 (vqmovnbq_m_s32): Likewise.
24598 (vqmovntq_m_s32): Likewise.
24599 (vrev32q_m_s16): Likewise.
24600 (vrev64q_m_f32): Likewise.
24601 (vrndaq_m_f32): Likewise.
24602 (vrndmq_m_f32): Likewise.
24603 (vrndnq_m_f32): Likewise.
24604 (vrndpq_m_f32): Likewise.
24605 (vrndq_m_f32): Likewise.
24606 (vrndxq_m_f32): Likewise.
24607 (vcmpeqq_m_n_f32): Likewise.
24608 (vcmpgeq_m_f32): Likewise.
24609 (vcmpgeq_m_n_f32): Likewise.
24610 (vcmpgtq_m_f32): Likewise.
24611 (vcmpgtq_m_n_f32): Likewise.
24612 (vcmpleq_m_f32): Likewise.
24613 (vcmpleq_m_n_f32): Likewise.
24614 (vcmpltq_m_f32): Likewise.
24615 (vcmpltq_m_n_f32): Likewise.
24616 (vcmpneq_m_f32): Likewise.
24617 (vcmpneq_m_n_f32): Likewise.
24618 (vmvnq_m_n_u32): Likewise.
24619 (vorrq_m_n_u32): Likewise.
24620 (vqrshruntq_n_s32): Likewise.
24621 (vqshrunbq_n_s32): Likewise.
24622 (vqshruntq_n_s32): Likewise.
24623 (vcvtmq_m_u32_f32): Likewise.
24624 (vcvtnq_m_u32_f32): Likewise.
24625 (vcvtpq_m_u32_f32): Likewise.
24626 (vcvtq_m_u32_f32): Likewise.
24627 (vqmovunbq_m_s32): Likewise.
24628 (vqmovuntq_m_s32): Likewise.
24629 (vqrshrntq_n_u32): Likewise.
24630 (vqshrnbq_n_u32): Likewise.
24631 (vqshrntq_n_u32): Likewise.
24632 (vrshrnbq_n_u32): Likewise.
24633 (vrshrntq_n_u32): Likewise.
24634 (vshrnbq_n_u32): Likewise.
24635 (vshrntq_n_u32): Likewise.
24636 (vmlaldavaq_u32): Likewise.
24637 (vmlaldavaxq_u32): Likewise.
24638 (vmlaldavq_p_u32): Likewise.
24639 (vmlaldavxq_p_u32): Likewise.
24640 (vmovlbq_m_u16): Likewise.
24641 (vmovltq_m_u16): Likewise.
24642 (vmovnbq_m_u32): Likewise.
24643 (vmovntq_m_u32): Likewise.
24644 (vqmovnbq_m_u32): Likewise.
24645 (vqmovntq_m_u32): Likewise.
24646 (vrev32q_m_u16): Likewise.
24647 (__arm_vrmlaldavhaxq_s32): Define intrinsic.
24648 (__arm_vrmlsldavhaq_s32): Likewise.
24649 (__arm_vrmlsldavhaxq_s32): Likewise.
24650 (__arm_vaddlvaq_p_s32): Likewise.
24651 (__arm_vrev16q_m_s8): Likewise.
24652 (__arm_vrmlaldavhq_p_s32): Likewise.
24653 (__arm_vrmlaldavhxq_p_s32): Likewise.
24654 (__arm_vrmlsldavhq_p_s32): Likewise.
24655 (__arm_vrmlsldavhxq_p_s32): Likewise.
24656 (__arm_vaddlvaq_p_u32): Likewise.
24657 (__arm_vrev16q_m_u8): Likewise.
24658 (__arm_vrmlaldavhq_p_u32): Likewise.
24659 (__arm_vmvnq_m_n_s16): Likewise.
24660 (__arm_vorrq_m_n_s16): Likewise.
24661 (__arm_vqrshrntq_n_s16): Likewise.
24662 (__arm_vqshrnbq_n_s16): Likewise.
24663 (__arm_vqshrntq_n_s16): Likewise.
24664 (__arm_vrshrnbq_n_s16): Likewise.
24665 (__arm_vrshrntq_n_s16): Likewise.
24666 (__arm_vshrnbq_n_s16): Likewise.
24667 (__arm_vshrntq_n_s16): Likewise.
24668 (__arm_vmlaldavaq_s16): Likewise.
24669 (__arm_vmlaldavaxq_s16): Likewise.
24670 (__arm_vmlsldavaq_s16): Likewise.
24671 (__arm_vmlsldavaxq_s16): Likewise.
24672 (__arm_vmlaldavq_p_s16): Likewise.
24673 (__arm_vmlaldavxq_p_s16): Likewise.
24674 (__arm_vmlsldavq_p_s16): Likewise.
24675 (__arm_vmlsldavxq_p_s16): Likewise.
24676 (__arm_vmovlbq_m_s8): Likewise.
24677 (__arm_vmovltq_m_s8): Likewise.
24678 (__arm_vmovnbq_m_s16): Likewise.
24679 (__arm_vmovntq_m_s16): Likewise.
24680 (__arm_vqmovnbq_m_s16): Likewise.
24681 (__arm_vqmovntq_m_s16): Likewise.
24682 (__arm_vrev32q_m_s8): Likewise.
24683 (__arm_vmvnq_m_n_u16): Likewise.
24684 (__arm_vorrq_m_n_u16): Likewise.
24685 (__arm_vqrshruntq_n_s16): Likewise.
24686 (__arm_vqshrunbq_n_s16): Likewise.
24687 (__arm_vqshruntq_n_s16): Likewise.
24688 (__arm_vqmovunbq_m_s16): Likewise.
24689 (__arm_vqmovuntq_m_s16): Likewise.
24690 (__arm_vqrshrntq_n_u16): Likewise.
24691 (__arm_vqshrnbq_n_u16): Likewise.
24692 (__arm_vqshrntq_n_u16): Likewise.
24693 (__arm_vrshrnbq_n_u16): Likewise.
24694 (__arm_vrshrntq_n_u16): Likewise.
24695 (__arm_vshrnbq_n_u16): Likewise.
24696 (__arm_vshrntq_n_u16): Likewise.
24697 (__arm_vmlaldavaq_u16): Likewise.
24698 (__arm_vmlaldavaxq_u16): Likewise.
24699 (__arm_vmlaldavq_p_u16): Likewise.
24700 (__arm_vmlaldavxq_p_u16): Likewise.
24701 (__arm_vmovlbq_m_u8): Likewise.
24702 (__arm_vmovltq_m_u8): Likewise.
24703 (__arm_vmovnbq_m_u16): Likewise.
24704 (__arm_vmovntq_m_u16): Likewise.
24705 (__arm_vqmovnbq_m_u16): Likewise.
24706 (__arm_vqmovntq_m_u16): Likewise.
24707 (__arm_vrev32q_m_u8): Likewise.
24708 (__arm_vmvnq_m_n_s32): Likewise.
24709 (__arm_vorrq_m_n_s32): Likewise.
24710 (__arm_vqrshrntq_n_s32): Likewise.
24711 (__arm_vqshrnbq_n_s32): Likewise.
24712 (__arm_vqshrntq_n_s32): Likewise.
24713 (__arm_vrshrnbq_n_s32): Likewise.
24714 (__arm_vrshrntq_n_s32): Likewise.
24715 (__arm_vshrnbq_n_s32): Likewise.
24716 (__arm_vshrntq_n_s32): Likewise.
24717 (__arm_vmlaldavaq_s32): Likewise.
24718 (__arm_vmlaldavaxq_s32): Likewise.
24719 (__arm_vmlsldavaq_s32): Likewise.
24720 (__arm_vmlsldavaxq_s32): Likewise.
24721 (__arm_vmlaldavq_p_s32): Likewise.
24722 (__arm_vmlaldavxq_p_s32): Likewise.
24723 (__arm_vmlsldavq_p_s32): Likewise.
24724 (__arm_vmlsldavxq_p_s32): Likewise.
24725 (__arm_vmovlbq_m_s16): Likewise.
24726 (__arm_vmovltq_m_s16): Likewise.
24727 (__arm_vmovnbq_m_s32): Likewise.
24728 (__arm_vmovntq_m_s32): Likewise.
24729 (__arm_vqmovnbq_m_s32): Likewise.
24730 (__arm_vqmovntq_m_s32): Likewise.
24731 (__arm_vrev32q_m_s16): Likewise.
24732 (__arm_vmvnq_m_n_u32): Likewise.
24733 (__arm_vorrq_m_n_u32): Likewise.
24734 (__arm_vqrshruntq_n_s32): Likewise.
24735 (__arm_vqshrunbq_n_s32): Likewise.
24736 (__arm_vqshruntq_n_s32): Likewise.
24737 (__arm_vqmovunbq_m_s32): Likewise.
24738 (__arm_vqmovuntq_m_s32): Likewise.
24739 (__arm_vqrshrntq_n_u32): Likewise.
24740 (__arm_vqshrnbq_n_u32): Likewise.
24741 (__arm_vqshrntq_n_u32): Likewise.
24742 (__arm_vrshrnbq_n_u32): Likewise.
24743 (__arm_vrshrntq_n_u32): Likewise.
24744 (__arm_vshrnbq_n_u32): Likewise.
24745 (__arm_vshrntq_n_u32): Likewise.
24746 (__arm_vmlaldavaq_u32): Likewise.
24747 (__arm_vmlaldavaxq_u32): Likewise.
24748 (__arm_vmlaldavq_p_u32): Likewise.
24749 (__arm_vmlaldavxq_p_u32): Likewise.
24750 (__arm_vmovlbq_m_u16): Likewise.
24751 (__arm_vmovltq_m_u16): Likewise.
24752 (__arm_vmovnbq_m_u32): Likewise.
24753 (__arm_vmovntq_m_u32): Likewise.
24754 (__arm_vqmovnbq_m_u32): Likewise.
24755 (__arm_vqmovntq_m_u32): Likewise.
24756 (__arm_vrev32q_m_u16): Likewise.
24757 (__arm_vcvtbq_m_f16_f32): Likewise.
24758 (__arm_vcvtbq_m_f32_f16): Likewise.
24759 (__arm_vcvttq_m_f16_f32): Likewise.
24760 (__arm_vcvttq_m_f32_f16): Likewise.
24761 (__arm_vrev32q_m_f16): Likewise.
24762 (__arm_vcmlaq_f16): Likewise.
24763 (__arm_vcmlaq_rot180_f16): Likewise.
24764 (__arm_vcmlaq_rot270_f16): Likewise.
24765 (__arm_vcmlaq_rot90_f16): Likewise.
24766 (__arm_vfmaq_f16): Likewise.
24767 (__arm_vfmaq_n_f16): Likewise.
24768 (__arm_vfmasq_n_f16): Likewise.
24769 (__arm_vfmsq_f16): Likewise.
24770 (__arm_vabsq_m_f16): Likewise.
24771 (__arm_vcvtmq_m_s16_f16): Likewise.
24772 (__arm_vcvtnq_m_s16_f16): Likewise.
24773 (__arm_vcvtpq_m_s16_f16): Likewise.
24774 (__arm_vcvtq_m_s16_f16): Likewise.
24775 (__arm_vdupq_m_n_f16): Likewise.
24776 (__arm_vmaxnmaq_m_f16): Likewise.
24777 (__arm_vmaxnmavq_p_f16): Likewise.
24778 (__arm_vmaxnmvq_p_f16): Likewise.
24779 (__arm_vminnmaq_m_f16): Likewise.
24780 (__arm_vminnmavq_p_f16): Likewise.
24781 (__arm_vminnmvq_p_f16): Likewise.
24782 (__arm_vnegq_m_f16): Likewise.
24783 (__arm_vpselq_f16): Likewise.
24784 (__arm_vrev64q_m_f16): Likewise.
24785 (__arm_vrndaq_m_f16): Likewise.
24786 (__arm_vrndmq_m_f16): Likewise.
24787 (__arm_vrndnq_m_f16): Likewise.
24788 (__arm_vrndpq_m_f16): Likewise.
24789 (__arm_vrndq_m_f16): Likewise.
24790 (__arm_vrndxq_m_f16): Likewise.
24791 (__arm_vcmpeqq_m_n_f16): Likewise.
24792 (__arm_vcmpgeq_m_f16): Likewise.
24793 (__arm_vcmpgeq_m_n_f16): Likewise.
24794 (__arm_vcmpgtq_m_f16): Likewise.
24795 (__arm_vcmpgtq_m_n_f16): Likewise.
24796 (__arm_vcmpleq_m_f16): Likewise.
24797 (__arm_vcmpleq_m_n_f16): Likewise.
24798 (__arm_vcmpltq_m_f16): Likewise.
24799 (__arm_vcmpltq_m_n_f16): Likewise.
24800 (__arm_vcmpneq_m_f16): Likewise.
24801 (__arm_vcmpneq_m_n_f16): Likewise.
24802 (__arm_vcvtmq_m_u16_f16): Likewise.
24803 (__arm_vcvtnq_m_u16_f16): Likewise.
24804 (__arm_vcvtpq_m_u16_f16): Likewise.
24805 (__arm_vcvtq_m_u16_f16): Likewise.
24806 (__arm_vcmlaq_f32): Likewise.
24807 (__arm_vcmlaq_rot180_f32): Likewise.
24808 (__arm_vcmlaq_rot270_f32): Likewise.
24809 (__arm_vcmlaq_rot90_f32): Likewise.
24810 (__arm_vfmaq_f32): Likewise.
24811 (__arm_vfmaq_n_f32): Likewise.
24812 (__arm_vfmasq_n_f32): Likewise.
24813 (__arm_vfmsq_f32): Likewise.
24814 (__arm_vabsq_m_f32): Likewise.
24815 (__arm_vcvtmq_m_s32_f32): Likewise.
24816 (__arm_vcvtnq_m_s32_f32): Likewise.
24817 (__arm_vcvtpq_m_s32_f32): Likewise.
24818 (__arm_vcvtq_m_s32_f32): Likewise.
24819 (__arm_vdupq_m_n_f32): Likewise.
24820 (__arm_vmaxnmaq_m_f32): Likewise.
24821 (__arm_vmaxnmavq_p_f32): Likewise.
24822 (__arm_vmaxnmvq_p_f32): Likewise.
24823 (__arm_vminnmaq_m_f32): Likewise.
24824 (__arm_vminnmavq_p_f32): Likewise.
24825 (__arm_vminnmvq_p_f32): Likewise.
24826 (__arm_vnegq_m_f32): Likewise.
24827 (__arm_vpselq_f32): Likewise.
24828 (__arm_vrev64q_m_f32): Likewise.
24829 (__arm_vrndaq_m_f32): Likewise.
24830 (__arm_vrndmq_m_f32): Likewise.
24831 (__arm_vrndnq_m_f32): Likewise.
24832 (__arm_vrndpq_m_f32): Likewise.
24833 (__arm_vrndq_m_f32): Likewise.
24834 (__arm_vrndxq_m_f32): Likewise.
24835 (__arm_vcmpeqq_m_n_f32): Likewise.
24836 (__arm_vcmpgeq_m_f32): Likewise.
24837 (__arm_vcmpgeq_m_n_f32): Likewise.
24838 (__arm_vcmpgtq_m_f32): Likewise.
24839 (__arm_vcmpgtq_m_n_f32): Likewise.
24840 (__arm_vcmpleq_m_f32): Likewise.
24841 (__arm_vcmpleq_m_n_f32): Likewise.
24842 (__arm_vcmpltq_m_f32): Likewise.
24843 (__arm_vcmpltq_m_n_f32): Likewise.
24844 (__arm_vcmpneq_m_f32): Likewise.
24845 (__arm_vcmpneq_m_n_f32): Likewise.
24846 (__arm_vcvtmq_m_u32_f32): Likewise.
24847 (__arm_vcvtnq_m_u32_f32): Likewise.
24848 (__arm_vcvtpq_m_u32_f32): Likewise.
24849 (__arm_vcvtq_m_u32_f32): Likewise.
24850 (vcvtq_m): Define polymorphic variant.
24851 (vabsq_m): Likewise.
24852 (vcmlaq): Likewise.
24853 (vcmlaq_rot180): Likewise.
24854 (vcmlaq_rot270): Likewise.
24855 (vcmlaq_rot90): Likewise.
24856 (vcmpeqq_m_n): Likewise.
24857 (vcmpgeq_m_n): Likewise.
24858 (vrndxq_m): Likewise.
24859 (vrndq_m): Likewise.
24860 (vrndpq_m): Likewise.
24861 (vcmpgtq_m_n): Likewise.
24862 (vcmpgtq_m): Likewise.
24863 (vcmpleq_m): Likewise.
24864 (vcmpleq_m_n): Likewise.
24865 (vcmpltq_m_n): Likewise.
24866 (vcmpltq_m): Likewise.
24867 (vcmpneq_m): Likewise.
24868 (vcmpneq_m_n): Likewise.
24869 (vcvtbq_m): Likewise.
24870 (vcvttq_m): Likewise.
24871 (vcvtmq_m): Likewise.
24872 (vcvtnq_m): Likewise.
24873 (vcvtpq_m): Likewise.
24874 (vdupq_m_n): Likewise.
24875 (vfmaq_n): Likewise.
24877 (vfmasq_n): Likewise.
24879 (vmaxnmaq_m): Likewise.
24880 (vmaxnmavq_m): Likewise.
24881 (vmaxnmvq_m): Likewise.
24882 (vmaxnmavq_p): Likewise.
24883 (vmaxnmvq_p): Likewise.
24884 (vminnmaq_m): Likewise.
24885 (vminnmavq_p): Likewise.
24886 (vminnmvq_p): Likewise.
24887 (vrndnq_m): Likewise.
24888 (vrndaq_m): Likewise.
24889 (vrndmq_m): Likewise.
24890 (vrev64q_m): Likewise.
24891 (vrev32q_m): Likewise.
24892 (vpselq): Likewise.
24893 (vnegq_m): Likewise.
24894 (vcmpgeq_m): Likewise.
24895 (vshrntq_n): Likewise.
24896 (vrshrntq_n): Likewise.
24897 (vmovlbq_m): Likewise.
24898 (vmovnbq_m): Likewise.
24899 (vmovntq_m): Likewise.
24900 (vmvnq_m_n): Likewise.
24901 (vmvnq_m): Likewise.
24902 (vshrnbq_n): Likewise.
24903 (vrshrnbq_n): Likewise.
24904 (vqshruntq_n): Likewise.
24905 (vrev16q_m): Likewise.
24906 (vqshrunbq_n): Likewise.
24907 (vqshrntq_n): Likewise.
24908 (vqrshruntq_n): Likewise.
24909 (vqrshrntq_n): Likewise.
24910 (vqshrnbq_n): Likewise.
24911 (vqmovuntq_m): Likewise.
24912 (vqmovntq_m): Likewise.
24913 (vqmovnbq_m): Likewise.
24914 (vorrq_m_n): Likewise.
24915 (vmovltq_m): Likewise.
24916 (vqmovunbq_m): Likewise.
24917 (vaddlvaq_p): Likewise.
24918 (vmlaldavaq): Likewise.
24919 (vmlaldavaxq): Likewise.
24920 (vmlaldavq_p): Likewise.
24921 (vmlaldavxq_p): Likewise.
24922 (vmlsldavaq): Likewise.
24923 (vmlsldavaxq): Likewise.
24924 (vmlsldavq_p): Likewise.
24925 (vmlsldavxq_p): Likewise.
24926 (vrmlaldavhaxq): Likewise.
24927 (vrmlaldavhq_p): Likewise.
24928 (vrmlaldavhxq_p): Likewise.
24929 (vrmlsldavhaq): Likewise.
24930 (vrmlsldavhaxq): Likewise.
24931 (vrmlsldavhq_p): Likewise.
24932 (vrmlsldavhxq_p): Likewise.
24933 * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_IMM_UNONE): Use
24935 (TERNOP_NONE_NONE_NONE_IMM): Likewise.
24936 (TERNOP_NONE_NONE_NONE_NONE): Likewise.
24937 (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
24938 (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
24939 (TERNOP_UNONE_UNONE_IMM_UNONE): Likewise.
24940 (TERNOP_UNONE_UNONE_NONE_IMM): Likewise.
24941 (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
24942 (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
24943 (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
24944 * config/arm/mve.md (MVE_constraint3): Define mode attribute iterator.
24945 (MVE_pred3): Likewise.
24946 (MVE_constraint1): Likewise.
24947 (MVE_pred1): Likewise.
24948 (VMLALDAVQ_P): Define iterator.
24949 (VQMOVNBQ_M): Likewise.
24950 (VMOVLTQ_M): Likewise.
24951 (VMOVNBQ_M): Likewise.
24952 (VRSHRNTQ_N): Likewise.
24953 (VORRQ_M_N): Likewise.
24954 (VREV32Q_M): Likewise.
24955 (VREV16Q_M): Likewise.
24956 (VQRSHRNTQ_N): Likewise.
24957 (VMOVNTQ_M): Likewise.
24958 (VMOVLBQ_M): Likewise.
24959 (VMLALDAVAQ): Likewise.
24960 (VQSHRNBQ_N): Likewise.
24961 (VSHRNBQ_N): Likewise.
24962 (VRSHRNBQ_N): Likewise.
24963 (VMLALDAVXQ_P): Likewise.
24964 (VQMOVNTQ_M): Likewise.
24965 (VMVNQ_M_N): Likewise.
24966 (VQSHRNTQ_N): Likewise.
24967 (VMLALDAVAXQ): Likewise.
24968 (VSHRNTQ_N): Likewise.
24969 (VCVTMQ_M): Likewise.
24970 (VCVTNQ_M): Likewise.
24971 (VCVTPQ_M): Likewise.
24972 (VCVTQ_M_N_FROM_F): Likewise.
24973 (VCVTQ_M_FROM_F): Likewise.
24974 (VRMLALDAVHQ_P): Likewise.
24975 (VADDLVAQ_P): Likewise.
24976 (mve_vrndq_m_f<mode>): Define RTL pattern.
24977 (mve_vabsq_m_f<mode>): Likewise.
24978 (mve_vaddlvaq_p_<supf>v4si): Likewise.
24979 (mve_vcmlaq_f<mode>): Likewise.
24980 (mve_vcmlaq_rot180_f<mode>): Likewise.
24981 (mve_vcmlaq_rot270_f<mode>): Likewise.
24982 (mve_vcmlaq_rot90_f<mode>): Likewise.
24983 (mve_vcmpeqq_m_n_f<mode>): Likewise.
24984 (mve_vcmpgeq_m_f<mode>): Likewise.
24985 (mve_vcmpgeq_m_n_f<mode>): Likewise.
24986 (mve_vcmpgtq_m_f<mode>): Likewise.
24987 (mve_vcmpgtq_m_n_f<mode>): Likewise.
24988 (mve_vcmpleq_m_f<mode>): Likewise.
24989 (mve_vcmpleq_m_n_f<mode>): Likewise.
24990 (mve_vcmpltq_m_f<mode>): Likewise.
24991 (mve_vcmpltq_m_n_f<mode>): Likewise.
24992 (mve_vcmpneq_m_f<mode>): Likewise.
24993 (mve_vcmpneq_m_n_f<mode>): Likewise.
24994 (mve_vcvtbq_m_f16_f32v8hf): Likewise.
24995 (mve_vcvtbq_m_f32_f16v4sf): Likewise.
24996 (mve_vcvttq_m_f16_f32v8hf): Likewise.
24997 (mve_vcvttq_m_f32_f16v4sf): Likewise.
24998 (mve_vdupq_m_n_f<mode>): Likewise.
24999 (mve_vfmaq_f<mode>): Likewise.
25000 (mve_vfmaq_n_f<mode>): Likewise.
25001 (mve_vfmasq_n_f<mode>): Likewise.
25002 (mve_vfmsq_f<mode>): Likewise.
25003 (mve_vmaxnmaq_m_f<mode>): Likewise.
25004 (mve_vmaxnmavq_p_f<mode>): Likewise.
25005 (mve_vmaxnmvq_p_f<mode>): Likewise.
25006 (mve_vminnmaq_m_f<mode>): Likewise.
25007 (mve_vminnmavq_p_f<mode>): Likewise.
25008 (mve_vminnmvq_p_f<mode>): Likewise.
25009 (mve_vmlaldavaq_<supf><mode>): Likewise.
25010 (mve_vmlaldavaxq_<supf><mode>): Likewise.
25011 (mve_vmlaldavq_p_<supf><mode>): Likewise.
25012 (mve_vmlaldavxq_p_<supf><mode>): Likewise.
25013 (mve_vmlsldavaq_s<mode>): Likewise.
25014 (mve_vmlsldavaxq_s<mode>): Likewise.
25015 (mve_vmlsldavq_p_s<mode>): Likewise.
25016 (mve_vmlsldavxq_p_s<mode>): Likewise.
25017 (mve_vmovlbq_m_<supf><mode>): Likewise.
25018 (mve_vmovltq_m_<supf><mode>): Likewise.
25019 (mve_vmovnbq_m_<supf><mode>): Likewise.
25020 (mve_vmovntq_m_<supf><mode>): Likewise.
25021 (mve_vmvnq_m_n_<supf><mode>): Likewise.
25022 (mve_vnegq_m_f<mode>): Likewise.
25023 (mve_vorrq_m_n_<supf><mode>): Likewise.
25024 (mve_vpselq_f<mode>): Likewise.
25025 (mve_vqmovnbq_m_<supf><mode>): Likewise.
25026 (mve_vqmovntq_m_<supf><mode>): Likewise.
25027 (mve_vqmovunbq_m_s<mode>): Likewise.
25028 (mve_vqmovuntq_m_s<mode>): Likewise.
25029 (mve_vqrshrntq_n_<supf><mode>): Likewise.
25030 (mve_vqrshruntq_n_s<mode>): Likewise.
25031 (mve_vqshrnbq_n_<supf><mode>): Likewise.
25032 (mve_vqshrntq_n_<supf><mode>): Likewise.
25033 (mve_vqshrunbq_n_s<mode>): Likewise.
25034 (mve_vqshruntq_n_s<mode>): Likewise.
25035 (mve_vrev32q_m_fv8hf): Likewise.
25036 (mve_vrev32q_m_<supf><mode>): Likewise.
25037 (mve_vrev64q_m_f<mode>): Likewise.
25038 (mve_vrmlaldavhaxq_sv4si): Likewise.
25039 (mve_vrmlaldavhxq_p_sv4si): Likewise.
25040 (mve_vrmlsldavhaxq_sv4si): Likewise.
25041 (mve_vrmlsldavhq_p_sv4si): Likewise.
25042 (mve_vrmlsldavhxq_p_sv4si): Likewise.
25043 (mve_vrndaq_m_f<mode>): Likewise.
25044 (mve_vrndmq_m_f<mode>): Likewise.
25045 (mve_vrndnq_m_f<mode>): Likewise.
25046 (mve_vrndpq_m_f<mode>): Likewise.
25047 (mve_vrndxq_m_f<mode>): Likewise.
25048 (mve_vrshrnbq_n_<supf><mode>): Likewise.
25049 (mve_vrshrntq_n_<supf><mode>): Likewise.
25050 (mve_vshrnbq_n_<supf><mode>): Likewise.
25051 (mve_vshrntq_n_<supf><mode>): Likewise.
25052 (mve_vcvtmq_m_<supf><mode>): Likewise.
25053 (mve_vcvtpq_m_<supf><mode>): Likewise.
25054 (mve_vcvtnq_m_<supf><mode>): Likewise.
25055 (mve_vcvtq_m_n_from_f_<supf><mode>): Likewise.
25056 (mve_vrev16q_m_<supf>v16qi): Likewise.
25057 (mve_vcvtq_m_from_f_<supf><mode>): Likewise.
25058 (mve_vrmlaldavhq_p_<supf>v4si): Likewise.
25059 (mve_vrmlsldavhaq_sv4si): Likewise.
25061 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
25062 Mihail Ionescu <mihail.ionescu@arm.com>
25063 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
25065 * config/arm/arm_mve.h (vpselq_u8): Define macro.
25066 (vpselq_s8): Likewise.
25067 (vrev64q_m_u8): Likewise.
25068 (vqrdmlashq_n_u8): Likewise.
25069 (vqrdmlahq_n_u8): Likewise.
25070 (vqdmlahq_n_u8): Likewise.
25071 (vmvnq_m_u8): Likewise.
25072 (vmlasq_n_u8): Likewise.
25073 (vmlaq_n_u8): Likewise.
25074 (vmladavq_p_u8): Likewise.
25075 (vmladavaq_u8): Likewise.
25076 (vminvq_p_u8): Likewise.
25077 (vmaxvq_p_u8): Likewise.
25078 (vdupq_m_n_u8): Likewise.
25079 (vcmpneq_m_u8): Likewise.
25080 (vcmpneq_m_n_u8): Likewise.
25081 (vcmphiq_m_u8): Likewise.
25082 (vcmphiq_m_n_u8): Likewise.
25083 (vcmpeqq_m_u8): Likewise.
25084 (vcmpeqq_m_n_u8): Likewise.
25085 (vcmpcsq_m_u8): Likewise.
25086 (vcmpcsq_m_n_u8): Likewise.
25087 (vclzq_m_u8): Likewise.
25088 (vaddvaq_p_u8): Likewise.
25089 (vsriq_n_u8): Likewise.
25090 (vsliq_n_u8): Likewise.
25091 (vshlq_m_r_u8): Likewise.
25092 (vrshlq_m_n_u8): Likewise.
25093 (vqshlq_m_r_u8): Likewise.
25094 (vqrshlq_m_n_u8): Likewise.
25095 (vminavq_p_s8): Likewise.
25096 (vminaq_m_s8): Likewise.
25097 (vmaxavq_p_s8): Likewise.
25098 (vmaxaq_m_s8): Likewise.
25099 (vcmpneq_m_s8): Likewise.
25100 (vcmpneq_m_n_s8): Likewise.
25101 (vcmpltq_m_s8): Likewise.
25102 (vcmpltq_m_n_s8): Likewise.
25103 (vcmpleq_m_s8): Likewise.
25104 (vcmpleq_m_n_s8): Likewise.
25105 (vcmpgtq_m_s8): Likewise.
25106 (vcmpgtq_m_n_s8): Likewise.
25107 (vcmpgeq_m_s8): Likewise.
25108 (vcmpgeq_m_n_s8): Likewise.
25109 (vcmpeqq_m_s8): Likewise.
25110 (vcmpeqq_m_n_s8): Likewise.
25111 (vshlq_m_r_s8): Likewise.
25112 (vrshlq_m_n_s8): Likewise.
25113 (vrev64q_m_s8): Likewise.
25114 (vqshlq_m_r_s8): Likewise.
25115 (vqrshlq_m_n_s8): Likewise.
25116 (vqnegq_m_s8): Likewise.
25117 (vqabsq_m_s8): Likewise.
25118 (vnegq_m_s8): Likewise.
25119 (vmvnq_m_s8): Likewise.
25120 (vmlsdavxq_p_s8): Likewise.
25121 (vmlsdavq_p_s8): Likewise.
25122 (vmladavxq_p_s8): Likewise.
25123 (vmladavq_p_s8): Likewise.
25124 (vminvq_p_s8): Likewise.
25125 (vmaxvq_p_s8): Likewise.
25126 (vdupq_m_n_s8): Likewise.
25127 (vclzq_m_s8): Likewise.
25128 (vclsq_m_s8): Likewise.
25129 (vaddvaq_p_s8): Likewise.
25130 (vabsq_m_s8): Likewise.
25131 (vqrdmlsdhxq_s8): Likewise.
25132 (vqrdmlsdhq_s8): Likewise.
25133 (vqrdmlashq_n_s8): Likewise.
25134 (vqrdmlahq_n_s8): Likewise.
25135 (vqrdmladhxq_s8): Likewise.
25136 (vqrdmladhq_s8): Likewise.
25137 (vqdmlsdhxq_s8): Likewise.
25138 (vqdmlsdhq_s8): Likewise.
25139 (vqdmlahq_n_s8): Likewise.
25140 (vqdmladhxq_s8): Likewise.
25141 (vqdmladhq_s8): Likewise.
25142 (vmlsdavaxq_s8): Likewise.
25143 (vmlsdavaq_s8): Likewise.
25144 (vmlasq_n_s8): Likewise.
25145 (vmlaq_n_s8): Likewise.
25146 (vmladavaxq_s8): Likewise.
25147 (vmladavaq_s8): Likewise.
25148 (vsriq_n_s8): Likewise.
25149 (vsliq_n_s8): Likewise.
25150 (vpselq_u16): Likewise.
25151 (vpselq_s16): Likewise.
25152 (vrev64q_m_u16): Likewise.
25153 (vqrdmlashq_n_u16): Likewise.
25154 (vqrdmlahq_n_u16): Likewise.
25155 (vqdmlahq_n_u16): Likewise.
25156 (vmvnq_m_u16): Likewise.
25157 (vmlasq_n_u16): Likewise.
25158 (vmlaq_n_u16): Likewise.
25159 (vmladavq_p_u16): Likewise.
25160 (vmladavaq_u16): Likewise.
25161 (vminvq_p_u16): Likewise.
25162 (vmaxvq_p_u16): Likewise.
25163 (vdupq_m_n_u16): Likewise.
25164 (vcmpneq_m_u16): Likewise.
25165 (vcmpneq_m_n_u16): Likewise.
25166 (vcmphiq_m_u16): Likewise.
25167 (vcmphiq_m_n_u16): Likewise.
25168 (vcmpeqq_m_u16): Likewise.
25169 (vcmpeqq_m_n_u16): Likewise.
25170 (vcmpcsq_m_u16): Likewise.
25171 (vcmpcsq_m_n_u16): Likewise.
25172 (vclzq_m_u16): Likewise.
25173 (vaddvaq_p_u16): Likewise.
25174 (vsriq_n_u16): Likewise.
25175 (vsliq_n_u16): Likewise.
25176 (vshlq_m_r_u16): Likewise.
25177 (vrshlq_m_n_u16): Likewise.
25178 (vqshlq_m_r_u16): Likewise.
25179 (vqrshlq_m_n_u16): Likewise.
25180 (vminavq_p_s16): Likewise.
25181 (vminaq_m_s16): Likewise.
25182 (vmaxavq_p_s16): Likewise.
25183 (vmaxaq_m_s16): Likewise.
25184 (vcmpneq_m_s16): Likewise.
25185 (vcmpneq_m_n_s16): Likewise.
25186 (vcmpltq_m_s16): Likewise.
25187 (vcmpltq_m_n_s16): Likewise.
25188 (vcmpleq_m_s16): Likewise.
25189 (vcmpleq_m_n_s16): Likewise.
25190 (vcmpgtq_m_s16): Likewise.
25191 (vcmpgtq_m_n_s16): Likewise.
25192 (vcmpgeq_m_s16): Likewise.
25193 (vcmpgeq_m_n_s16): Likewise.
25194 (vcmpeqq_m_s16): Likewise.
25195 (vcmpeqq_m_n_s16): Likewise.
25196 (vshlq_m_r_s16): Likewise.
25197 (vrshlq_m_n_s16): Likewise.
25198 (vrev64q_m_s16): Likewise.
25199 (vqshlq_m_r_s16): Likewise.
25200 (vqrshlq_m_n_s16): Likewise.
25201 (vqnegq_m_s16): Likewise.
25202 (vqabsq_m_s16): Likewise.
25203 (vnegq_m_s16): Likewise.
25204 (vmvnq_m_s16): Likewise.
25205 (vmlsdavxq_p_s16): Likewise.
25206 (vmlsdavq_p_s16): Likewise.
25207 (vmladavxq_p_s16): Likewise.
25208 (vmladavq_p_s16): Likewise.
25209 (vminvq_p_s16): Likewise.
25210 (vmaxvq_p_s16): Likewise.
25211 (vdupq_m_n_s16): Likewise.
25212 (vclzq_m_s16): Likewise.
25213 (vclsq_m_s16): Likewise.
25214 (vaddvaq_p_s16): Likewise.
25215 (vabsq_m_s16): Likewise.
25216 (vqrdmlsdhxq_s16): Likewise.
25217 (vqrdmlsdhq_s16): Likewise.
25218 (vqrdmlashq_n_s16): Likewise.
25219 (vqrdmlahq_n_s16): Likewise.
25220 (vqrdmladhxq_s16): Likewise.
25221 (vqrdmladhq_s16): Likewise.
25222 (vqdmlsdhxq_s16): Likewise.
25223 (vqdmlsdhq_s16): Likewise.
25224 (vqdmlahq_n_s16): Likewise.
25225 (vqdmladhxq_s16): Likewise.
25226 (vqdmladhq_s16): Likewise.
25227 (vmlsdavaxq_s16): Likewise.
25228 (vmlsdavaq_s16): Likewise.
25229 (vmlasq_n_s16): Likewise.
25230 (vmlaq_n_s16): Likewise.
25231 (vmladavaxq_s16): Likewise.
25232 (vmladavaq_s16): Likewise.
25233 (vsriq_n_s16): Likewise.
25234 (vsliq_n_s16): Likewise.
25235 (vpselq_u32): Likewise.
25236 (vpselq_s32): Likewise.
25237 (vrev64q_m_u32): Likewise.
25238 (vqrdmlashq_n_u32): Likewise.
25239 (vqrdmlahq_n_u32): Likewise.
25240 (vqdmlahq_n_u32): Likewise.
25241 (vmvnq_m_u32): Likewise.
25242 (vmlasq_n_u32): Likewise.
25243 (vmlaq_n_u32): Likewise.
25244 (vmladavq_p_u32): Likewise.
25245 (vmladavaq_u32): Likewise.
25246 (vminvq_p_u32): Likewise.
25247 (vmaxvq_p_u32): Likewise.
25248 (vdupq_m_n_u32): Likewise.
25249 (vcmpneq_m_u32): Likewise.
25250 (vcmpneq_m_n_u32): Likewise.
25251 (vcmphiq_m_u32): Likewise.
25252 (vcmphiq_m_n_u32): Likewise.
25253 (vcmpeqq_m_u32): Likewise.
25254 (vcmpeqq_m_n_u32): Likewise.
25255 (vcmpcsq_m_u32): Likewise.
25256 (vcmpcsq_m_n_u32): Likewise.
25257 (vclzq_m_u32): Likewise.
25258 (vaddvaq_p_u32): Likewise.
25259 (vsriq_n_u32): Likewise.
25260 (vsliq_n_u32): Likewise.
25261 (vshlq_m_r_u32): Likewise.
25262 (vrshlq_m_n_u32): Likewise.
25263 (vqshlq_m_r_u32): Likewise.
25264 (vqrshlq_m_n_u32): Likewise.
25265 (vminavq_p_s32): Likewise.
25266 (vminaq_m_s32): Likewise.
25267 (vmaxavq_p_s32): Likewise.
25268 (vmaxaq_m_s32): Likewise.
25269 (vcmpneq_m_s32): Likewise.
25270 (vcmpneq_m_n_s32): Likewise.
25271 (vcmpltq_m_s32): Likewise.
25272 (vcmpltq_m_n_s32): Likewise.
25273 (vcmpleq_m_s32): Likewise.
25274 (vcmpleq_m_n_s32): Likewise.
25275 (vcmpgtq_m_s32): Likewise.
25276 (vcmpgtq_m_n_s32): Likewise.
25277 (vcmpgeq_m_s32): Likewise.
25278 (vcmpgeq_m_n_s32): Likewise.
25279 (vcmpeqq_m_s32): Likewise.
25280 (vcmpeqq_m_n_s32): Likewise.
25281 (vshlq_m_r_s32): Likewise.
25282 (vrshlq_m_n_s32): Likewise.
25283 (vrev64q_m_s32): Likewise.
25284 (vqshlq_m_r_s32): Likewise.
25285 (vqrshlq_m_n_s32): Likewise.
25286 (vqnegq_m_s32): Likewise.
25287 (vqabsq_m_s32): Likewise.
25288 (vnegq_m_s32): Likewise.
25289 (vmvnq_m_s32): Likewise.
25290 (vmlsdavxq_p_s32): Likewise.
25291 (vmlsdavq_p_s32): Likewise.
25292 (vmladavxq_p_s32): Likewise.
25293 (vmladavq_p_s32): Likewise.
25294 (vminvq_p_s32): Likewise.
25295 (vmaxvq_p_s32): Likewise.
25296 (vdupq_m_n_s32): Likewise.
25297 (vclzq_m_s32): Likewise.
25298 (vclsq_m_s32): Likewise.
25299 (vaddvaq_p_s32): Likewise.
25300 (vabsq_m_s32): Likewise.
25301 (vqrdmlsdhxq_s32): Likewise.
25302 (vqrdmlsdhq_s32): Likewise.
25303 (vqrdmlashq_n_s32): Likewise.
25304 (vqrdmlahq_n_s32): Likewise.
25305 (vqrdmladhxq_s32): Likewise.
25306 (vqrdmladhq_s32): Likewise.
25307 (vqdmlsdhxq_s32): Likewise.
25308 (vqdmlsdhq_s32): Likewise.
25309 (vqdmlahq_n_s32): Likewise.
25310 (vqdmladhxq_s32): Likewise.
25311 (vqdmladhq_s32): Likewise.
25312 (vmlsdavaxq_s32): Likewise.
25313 (vmlsdavaq_s32): Likewise.
25314 (vmlasq_n_s32): Likewise.
25315 (vmlaq_n_s32): Likewise.
25316 (vmladavaxq_s32): Likewise.
25317 (vmladavaq_s32): Likewise.
25318 (vsriq_n_s32): Likewise.
25319 (vsliq_n_s32): Likewise.
25320 (vpselq_u64): Likewise.
25321 (vpselq_s64): Likewise.
25322 (__arm_vpselq_u8): Define intrinsic.
25323 (__arm_vpselq_s8): Likewise.
25324 (__arm_vrev64q_m_u8): Likewise.
25325 (__arm_vqrdmlashq_n_u8): Likewise.
25326 (__arm_vqrdmlahq_n_u8): Likewise.
25327 (__arm_vqdmlahq_n_u8): Likewise.
25328 (__arm_vmvnq_m_u8): Likewise.
25329 (__arm_vmlasq_n_u8): Likewise.
25330 (__arm_vmlaq_n_u8): Likewise.
25331 (__arm_vmladavq_p_u8): Likewise.
25332 (__arm_vmladavaq_u8): Likewise.
25333 (__arm_vminvq_p_u8): Likewise.
25334 (__arm_vmaxvq_p_u8): Likewise.
25335 (__arm_vdupq_m_n_u8): Likewise.
25336 (__arm_vcmpneq_m_u8): Likewise.
25337 (__arm_vcmpneq_m_n_u8): Likewise.
25338 (__arm_vcmphiq_m_u8): Likewise.
25339 (__arm_vcmphiq_m_n_u8): Likewise.
25340 (__arm_vcmpeqq_m_u8): Likewise.
25341 (__arm_vcmpeqq_m_n_u8): Likewise.
25342 (__arm_vcmpcsq_m_u8): Likewise.
25343 (__arm_vcmpcsq_m_n_u8): Likewise.
25344 (__arm_vclzq_m_u8): Likewise.
25345 (__arm_vaddvaq_p_u8): Likewise.
25346 (__arm_vsriq_n_u8): Likewise.
25347 (__arm_vsliq_n_u8): Likewise.
25348 (__arm_vshlq_m_r_u8): Likewise.
25349 (__arm_vrshlq_m_n_u8): Likewise.
25350 (__arm_vqshlq_m_r_u8): Likewise.
25351 (__arm_vqrshlq_m_n_u8): Likewise.
25352 (__arm_vminavq_p_s8): Likewise.
25353 (__arm_vminaq_m_s8): Likewise.
25354 (__arm_vmaxavq_p_s8): Likewise.
25355 (__arm_vmaxaq_m_s8): Likewise.
25356 (__arm_vcmpneq_m_s8): Likewise.
25357 (__arm_vcmpneq_m_n_s8): Likewise.
25358 (__arm_vcmpltq_m_s8): Likewise.
25359 (__arm_vcmpltq_m_n_s8): Likewise.
25360 (__arm_vcmpleq_m_s8): Likewise.
25361 (__arm_vcmpleq_m_n_s8): Likewise.
25362 (__arm_vcmpgtq_m_s8): Likewise.
25363 (__arm_vcmpgtq_m_n_s8): Likewise.
25364 (__arm_vcmpgeq_m_s8): Likewise.
25365 (__arm_vcmpgeq_m_n_s8): Likewise.
25366 (__arm_vcmpeqq_m_s8): Likewise.
25367 (__arm_vcmpeqq_m_n_s8): Likewise.
25368 (__arm_vshlq_m_r_s8): Likewise.
25369 (__arm_vrshlq_m_n_s8): Likewise.
25370 (__arm_vrev64q_m_s8): Likewise.
25371 (__arm_vqshlq_m_r_s8): Likewise.
25372 (__arm_vqrshlq_m_n_s8): Likewise.
25373 (__arm_vqnegq_m_s8): Likewise.
25374 (__arm_vqabsq_m_s8): Likewise.
25375 (__arm_vnegq_m_s8): Likewise.
25376 (__arm_vmvnq_m_s8): Likewise.
25377 (__arm_vmlsdavxq_p_s8): Likewise.
25378 (__arm_vmlsdavq_p_s8): Likewise.
25379 (__arm_vmladavxq_p_s8): Likewise.
25380 (__arm_vmladavq_p_s8): Likewise.
25381 (__arm_vminvq_p_s8): Likewise.
25382 (__arm_vmaxvq_p_s8): Likewise.
25383 (__arm_vdupq_m_n_s8): Likewise.
25384 (__arm_vclzq_m_s8): Likewise.
25385 (__arm_vclsq_m_s8): Likewise.
25386 (__arm_vaddvaq_p_s8): Likewise.
25387 (__arm_vabsq_m_s8): Likewise.
25388 (__arm_vqrdmlsdhxq_s8): Likewise.
25389 (__arm_vqrdmlsdhq_s8): Likewise.
25390 (__arm_vqrdmlashq_n_s8): Likewise.
25391 (__arm_vqrdmlahq_n_s8): Likewise.
25392 (__arm_vqrdmladhxq_s8): Likewise.
25393 (__arm_vqrdmladhq_s8): Likewise.
25394 (__arm_vqdmlsdhxq_s8): Likewise.
25395 (__arm_vqdmlsdhq_s8): Likewise.
25396 (__arm_vqdmlahq_n_s8): Likewise.
25397 (__arm_vqdmladhxq_s8): Likewise.
25398 (__arm_vqdmladhq_s8): Likewise.
25399 (__arm_vmlsdavaxq_s8): Likewise.
25400 (__arm_vmlsdavaq_s8): Likewise.
25401 (__arm_vmlasq_n_s8): Likewise.
25402 (__arm_vmlaq_n_s8): Likewise.
25403 (__arm_vmladavaxq_s8): Likewise.
25404 (__arm_vmladavaq_s8): Likewise.
25405 (__arm_vsriq_n_s8): Likewise.
25406 (__arm_vsliq_n_s8): Likewise.
25407 (__arm_vpselq_u16): Likewise.
25408 (__arm_vpselq_s16): Likewise.
25409 (__arm_vrev64q_m_u16): Likewise.
25410 (__arm_vqrdmlashq_n_u16): Likewise.
25411 (__arm_vqrdmlahq_n_u16): Likewise.
25412 (__arm_vqdmlahq_n_u16): Likewise.
25413 (__arm_vmvnq_m_u16): Likewise.
25414 (__arm_vmlasq_n_u16): Likewise.
25415 (__arm_vmlaq_n_u16): Likewise.
25416 (__arm_vmladavq_p_u16): Likewise.
25417 (__arm_vmladavaq_u16): Likewise.
25418 (__arm_vminvq_p_u16): Likewise.
25419 (__arm_vmaxvq_p_u16): Likewise.
25420 (__arm_vdupq_m_n_u16): Likewise.
25421 (__arm_vcmpneq_m_u16): Likewise.
25422 (__arm_vcmpneq_m_n_u16): Likewise.
25423 (__arm_vcmphiq_m_u16): Likewise.
25424 (__arm_vcmphiq_m_n_u16): Likewise.
25425 (__arm_vcmpeqq_m_u16): Likewise.
25426 (__arm_vcmpeqq_m_n_u16): Likewise.
25427 (__arm_vcmpcsq_m_u16): Likewise.
25428 (__arm_vcmpcsq_m_n_u16): Likewise.
25429 (__arm_vclzq_m_u16): Likewise.
25430 (__arm_vaddvaq_p_u16): Likewise.
25431 (__arm_vsriq_n_u16): Likewise.
25432 (__arm_vsliq_n_u16): Likewise.
25433 (__arm_vshlq_m_r_u16): Likewise.
25434 (__arm_vrshlq_m_n_u16): Likewise.
25435 (__arm_vqshlq_m_r_u16): Likewise.
25436 (__arm_vqrshlq_m_n_u16): Likewise.
25437 (__arm_vminavq_p_s16): Likewise.
25438 (__arm_vminaq_m_s16): Likewise.
25439 (__arm_vmaxavq_p_s16): Likewise.
25440 (__arm_vmaxaq_m_s16): Likewise.
25441 (__arm_vcmpneq_m_s16): Likewise.
25442 (__arm_vcmpneq_m_n_s16): Likewise.
25443 (__arm_vcmpltq_m_s16): Likewise.
25444 (__arm_vcmpltq_m_n_s16): Likewise.
25445 (__arm_vcmpleq_m_s16): Likewise.
25446 (__arm_vcmpleq_m_n_s16): Likewise.
25447 (__arm_vcmpgtq_m_s16): Likewise.
25448 (__arm_vcmpgtq_m_n_s16): Likewise.
25449 (__arm_vcmpgeq_m_s16): Likewise.
25450 (__arm_vcmpgeq_m_n_s16): Likewise.
25451 (__arm_vcmpeqq_m_s16): Likewise.
25452 (__arm_vcmpeqq_m_n_s16): Likewise.
25453 (__arm_vshlq_m_r_s16): Likewise.
25454 (__arm_vrshlq_m_n_s16): Likewise.
25455 (__arm_vrev64q_m_s16): Likewise.
25456 (__arm_vqshlq_m_r_s16): Likewise.
25457 (__arm_vqrshlq_m_n_s16): Likewise.
25458 (__arm_vqnegq_m_s16): Likewise.
25459 (__arm_vqabsq_m_s16): Likewise.
25460 (__arm_vnegq_m_s16): Likewise.
25461 (__arm_vmvnq_m_s16): Likewise.
25462 (__arm_vmlsdavxq_p_s16): Likewise.
25463 (__arm_vmlsdavq_p_s16): Likewise.
25464 (__arm_vmladavxq_p_s16): Likewise.
25465 (__arm_vmladavq_p_s16): Likewise.
25466 (__arm_vminvq_p_s16): Likewise.
25467 (__arm_vmaxvq_p_s16): Likewise.
25468 (__arm_vdupq_m_n_s16): Likewise.
25469 (__arm_vclzq_m_s16): Likewise.
25470 (__arm_vclsq_m_s16): Likewise.
25471 (__arm_vaddvaq_p_s16): Likewise.
25472 (__arm_vabsq_m_s16): Likewise.
25473 (__arm_vqrdmlsdhxq_s16): Likewise.
25474 (__arm_vqrdmlsdhq_s16): Likewise.
25475 (__arm_vqrdmlashq_n_s16): Likewise.
25476 (__arm_vqrdmlahq_n_s16): Likewise.
25477 (__arm_vqrdmladhxq_s16): Likewise.
25478 (__arm_vqrdmladhq_s16): Likewise.
25479 (__arm_vqdmlsdhxq_s16): Likewise.
25480 (__arm_vqdmlsdhq_s16): Likewise.
25481 (__arm_vqdmlahq_n_s16): Likewise.
25482 (__arm_vqdmladhxq_s16): Likewise.
25483 (__arm_vqdmladhq_s16): Likewise.
25484 (__arm_vmlsdavaxq_s16): Likewise.
25485 (__arm_vmlsdavaq_s16): Likewise.
25486 (__arm_vmlasq_n_s16): Likewise.
25487 (__arm_vmlaq_n_s16): Likewise.
25488 (__arm_vmladavaxq_s16): Likewise.
25489 (__arm_vmladavaq_s16): Likewise.
25490 (__arm_vsriq_n_s16): Likewise.
25491 (__arm_vsliq_n_s16): Likewise.
25492 (__arm_vpselq_u32): Likewise.
25493 (__arm_vpselq_s32): Likewise.
25494 (__arm_vrev64q_m_u32): Likewise.
25495 (__arm_vqrdmlashq_n_u32): Likewise.
25496 (__arm_vqrdmlahq_n_u32): Likewise.
25497 (__arm_vqdmlahq_n_u32): Likewise.
25498 (__arm_vmvnq_m_u32): Likewise.
25499 (__arm_vmlasq_n_u32): Likewise.
25500 (__arm_vmlaq_n_u32): Likewise.
25501 (__arm_vmladavq_p_u32): Likewise.
25502 (__arm_vmladavaq_u32): Likewise.
25503 (__arm_vminvq_p_u32): Likewise.
25504 (__arm_vmaxvq_p_u32): Likewise.
25505 (__arm_vdupq_m_n_u32): Likewise.
25506 (__arm_vcmpneq_m_u32): Likewise.
25507 (__arm_vcmpneq_m_n_u32): Likewise.
25508 (__arm_vcmphiq_m_u32): Likewise.
25509 (__arm_vcmphiq_m_n_u32): Likewise.
25510 (__arm_vcmpeqq_m_u32): Likewise.
25511 (__arm_vcmpeqq_m_n_u32): Likewise.
25512 (__arm_vcmpcsq_m_u32): Likewise.
25513 (__arm_vcmpcsq_m_n_u32): Likewise.
25514 (__arm_vclzq_m_u32): Likewise.
25515 (__arm_vaddvaq_p_u32): Likewise.
25516 (__arm_vsriq_n_u32): Likewise.
25517 (__arm_vsliq_n_u32): Likewise.
25518 (__arm_vshlq_m_r_u32): Likewise.
25519 (__arm_vrshlq_m_n_u32): Likewise.
25520 (__arm_vqshlq_m_r_u32): Likewise.
25521 (__arm_vqrshlq_m_n_u32): Likewise.
25522 (__arm_vminavq_p_s32): Likewise.
25523 (__arm_vminaq_m_s32): Likewise.
25524 (__arm_vmaxavq_p_s32): Likewise.
25525 (__arm_vmaxaq_m_s32): Likewise.
25526 (__arm_vcmpneq_m_s32): Likewise.
25527 (__arm_vcmpneq_m_n_s32): Likewise.
25528 (__arm_vcmpltq_m_s32): Likewise.
25529 (__arm_vcmpltq_m_n_s32): Likewise.
25530 (__arm_vcmpleq_m_s32): Likewise.
25531 (__arm_vcmpleq_m_n_s32): Likewise.
25532 (__arm_vcmpgtq_m_s32): Likewise.
25533 (__arm_vcmpgtq_m_n_s32): Likewise.
25534 (__arm_vcmpgeq_m_s32): Likewise.
25535 (__arm_vcmpgeq_m_n_s32): Likewise.
25536 (__arm_vcmpeqq_m_s32): Likewise.
25537 (__arm_vcmpeqq_m_n_s32): Likewise.
25538 (__arm_vshlq_m_r_s32): Likewise.
25539 (__arm_vrshlq_m_n_s32): Likewise.
25540 (__arm_vrev64q_m_s32): Likewise.
25541 (__arm_vqshlq_m_r_s32): Likewise.
25542 (__arm_vqrshlq_m_n_s32): Likewise.
25543 (__arm_vqnegq_m_s32): Likewise.
25544 (__arm_vqabsq_m_s32): Likewise.
25545 (__arm_vnegq_m_s32): Likewise.
25546 (__arm_vmvnq_m_s32): Likewise.
25547 (__arm_vmlsdavxq_p_s32): Likewise.
25548 (__arm_vmlsdavq_p_s32): Likewise.
25549 (__arm_vmladavxq_p_s32): Likewise.
25550 (__arm_vmladavq_p_s32): Likewise.
25551 (__arm_vminvq_p_s32): Likewise.
25552 (__arm_vmaxvq_p_s32): Likewise.
25553 (__arm_vdupq_m_n_s32): Likewise.
25554 (__arm_vclzq_m_s32): Likewise.
25555 (__arm_vclsq_m_s32): Likewise.
25556 (__arm_vaddvaq_p_s32): Likewise.
25557 (__arm_vabsq_m_s32): Likewise.
25558 (__arm_vqrdmlsdhxq_s32): Likewise.
25559 (__arm_vqrdmlsdhq_s32): Likewise.
25560 (__arm_vqrdmlashq_n_s32): Likewise.
25561 (__arm_vqrdmlahq_n_s32): Likewise.
25562 (__arm_vqrdmladhxq_s32): Likewise.
25563 (__arm_vqrdmladhq_s32): Likewise.
25564 (__arm_vqdmlsdhxq_s32): Likewise.
25565 (__arm_vqdmlsdhq_s32): Likewise.
25566 (__arm_vqdmlahq_n_s32): Likewise.
25567 (__arm_vqdmladhxq_s32): Likewise.
25568 (__arm_vqdmladhq_s32): Likewise.
25569 (__arm_vmlsdavaxq_s32): Likewise.
25570 (__arm_vmlsdavaq_s32): Likewise.
25571 (__arm_vmlasq_n_s32): Likewise.
25572 (__arm_vmlaq_n_s32): Likewise.
25573 (__arm_vmladavaxq_s32): Likewise.
25574 (__arm_vmladavaq_s32): Likewise.
25575 (__arm_vsriq_n_s32): Likewise.
25576 (__arm_vsliq_n_s32): Likewise.
25577 (__arm_vpselq_u64): Likewise.
25578 (__arm_vpselq_s64): Likewise.
25579 (vcmpneq_m_n): Define polymorphic variant.
25580 (vcmpneq_m): Likewise.
25581 (vqrdmlsdhq): Likewise.
25582 (vqrdmlsdhxq): Likewise.
25583 (vqrshlq_m_n): Likewise.
25584 (vqshlq_m_r): Likewise.
25585 (vrev64q_m): Likewise.
25586 (vrshlq_m_n): Likewise.
25587 (vshlq_m_r): Likewise.
25588 (vsliq_n): Likewise.
25589 (vsriq_n): Likewise.
25590 (vqrdmlashq_n): Likewise.
25591 (vqrdmlahq): Likewise.
25592 (vqrdmladhxq): Likewise.
25593 (vqrdmladhq): Likewise.
25594 (vqnegq_m): Likewise.
25595 (vqdmlsdhxq): Likewise.
25596 (vabsq_m): Likewise.
25597 (vclsq_m): Likewise.
25598 (vclzq_m): Likewise.
25599 (vcmpgeq_m): Likewise.
25600 (vcmpgeq_m_n): Likewise.
25601 (vdupq_m_n): Likewise.
25602 (vmaxaq_m): Likewise.
25603 (vmlaq_n): Likewise.
25604 (vmlasq_n): Likewise.
25605 (vmvnq_m): Likewise.
25606 (vnegq_m): Likewise.
25607 (vpselq): Likewise.
25608 (vqdmlahq_n): Likewise.
25609 (vqrdmlahq_n): Likewise.
25610 (vqdmlsdhq): Likewise.
25611 (vqdmladhq): Likewise.
25612 (vqabsq_m): Likewise.
25613 (vminaq_m): Likewise.
25614 (vrmlaldavhaq): Likewise.
25615 (vmlsdavxq_p): Likewise.
25616 (vmlsdavq_p): Likewise.
25617 (vmlsdavaxq): Likewise.
25618 (vmlsdavaq): Likewise.
25619 (vaddvaq_p): Likewise.
25620 (vcmpcsq_m_n): Likewise.
25621 (vcmpcsq_m): Likewise.
25622 (vcmpeqq_m_n): Likewise.
25623 (vcmpeqq_m): Likewise.
25624 (vmladavxq_p): Likewise.
25625 (vmladavq_p): Likewise.
25626 (vmladavaxq): Likewise.
25627 (vmladavaq): Likewise.
25628 (vminvq_p): Likewise.
25629 (vminavq_p): Likewise.
25630 (vmaxvq_p): Likewise.
25631 (vmaxavq_p): Likewise.
25632 (vcmpltq_m_n): Likewise.
25633 (vcmpltq_m): Likewise.
25634 (vcmpleq_m): Likewise.
25635 (vcmpleq_m_n): Likewise.
25636 (vcmphiq_m_n): Likewise.
25637 (vcmphiq_m): Likewise.
25638 (vcmpgtq_m_n): Likewise.
25639 (vcmpgtq_m): Likewise.
25640 * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_NONE_IMM): Use
25642 (TERNOP_NONE_NONE_NONE_NONE): Likewise.
25643 (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
25644 (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
25645 (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
25646 (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
25647 (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
25648 * config/arm/constraints.md (Rc): Define constraint to check constant is
25649 in the range of 0 to 15.
25650 (Re): Define constraint to check constant is in the range of 0 to 31.
25651 * config/arm/mve.md (VADDVAQ_P): Define iterator.
25652 (VCLZQ_M): Likewise.
25653 (VCMPEQQ_M_N): Likewise.
25654 (VCMPEQQ_M): Likewise.
25655 (VCMPNEQ_M_N): Likewise.
25656 (VCMPNEQ_M): Likewise.
25657 (VDUPQ_M_N): Likewise.
25658 (VMAXVQ_P): Likewise.
25659 (VMINVQ_P): Likewise.
25660 (VMLADAVAQ): Likewise.
25661 (VMLADAVQ_P): Likewise.
25662 (VMLAQ_N): Likewise.
25663 (VMLASQ_N): Likewise.
25664 (VMVNQ_M): Likewise.
25665 (VPSELQ): Likewise.
25666 (VQDMLAHQ_N): Likewise.
25667 (VQRDMLAHQ_N): Likewise.
25668 (VQRDMLASHQ_N): Likewise.
25669 (VQRSHLQ_M_N): Likewise.
25670 (VQSHLQ_M_R): Likewise.
25671 (VREV64Q_M): Likewise.
25672 (VRSHLQ_M_N): Likewise.
25673 (VSHLQ_M_R): Likewise.
25674 (VSLIQ_N): Likewise.
25675 (VSRIQ_N): Likewise.
25676 (mve_vabsq_m_s<mode>): Define RTL pattern.
25677 (mve_vaddvaq_p_<supf><mode>): Likewise.
25678 (mve_vclsq_m_s<mode>): Likewise.
25679 (mve_vclzq_m_<supf><mode>): Likewise.
25680 (mve_vcmpcsq_m_n_u<mode>): Likewise.
25681 (mve_vcmpcsq_m_u<mode>): Likewise.
25682 (mve_vcmpeqq_m_n_<supf><mode>): Likewise.
25683 (mve_vcmpeqq_m_<supf><mode>): Likewise.
25684 (mve_vcmpgeq_m_n_s<mode>): Likewise.
25685 (mve_vcmpgeq_m_s<mode>): Likewise.
25686 (mve_vcmpgtq_m_n_s<mode>): Likewise.
25687 (mve_vcmpgtq_m_s<mode>): Likewise.
25688 (mve_vcmphiq_m_n_u<mode>): Likewise.
25689 (mve_vcmphiq_m_u<mode>): Likewise.
25690 (mve_vcmpleq_m_n_s<mode>): Likewise.
25691 (mve_vcmpleq_m_s<mode>): Likewise.
25692 (mve_vcmpltq_m_n_s<mode>): Likewise.
25693 (mve_vcmpltq_m_s<mode>): Likewise.
25694 (mve_vcmpneq_m_n_<supf><mode>): Likewise.
25695 (mve_vcmpneq_m_<supf><mode>): Likewise.
25696 (mve_vdupq_m_n_<supf><mode>): Likewise.
25697 (mve_vmaxaq_m_s<mode>): Likewise.
25698 (mve_vmaxavq_p_s<mode>): Likewise.
25699 (mve_vmaxvq_p_<supf><mode>): Likewise.
25700 (mve_vminaq_m_s<mode>): Likewise.
25701 (mve_vminavq_p_s<mode>): Likewise.
25702 (mve_vminvq_p_<supf><mode>): Likewise.
25703 (mve_vmladavaq_<supf><mode>): Likewise.
25704 (mve_vmladavq_p_<supf><mode>): Likewise.
25705 (mve_vmladavxq_p_s<mode>): Likewise.
25706 (mve_vmlaq_n_<supf><mode>): Likewise.
25707 (mve_vmlasq_n_<supf><mode>): Likewise.
25708 (mve_vmlsdavq_p_s<mode>): Likewise.
25709 (mve_vmlsdavxq_p_s<mode>): Likewise.
25710 (mve_vmvnq_m_<supf><mode>): Likewise.
25711 (mve_vnegq_m_s<mode>): Likewise.
25712 (mve_vpselq_<supf><mode>): Likewise.
25713 (mve_vqabsq_m_s<mode>): Likewise.
25714 (mve_vqdmlahq_n_<supf><mode>): Likewise.
25715 (mve_vqnegq_m_s<mode>): Likewise.
25716 (mve_vqrdmladhq_s<mode>): Likewise.
25717 (mve_vqrdmladhxq_s<mode>): Likewise.
25718 (mve_vqrdmlahq_n_<supf><mode>): Likewise.
25719 (mve_vqrdmlashq_n_<supf><mode>): Likewise.
25720 (mve_vqrdmlsdhq_s<mode>): Likewise.
25721 (mve_vqrdmlsdhxq_s<mode>): Likewise.
25722 (mve_vqrshlq_m_n_<supf><mode>): Likewise.
25723 (mve_vqshlq_m_r_<supf><mode>): Likewise.
25724 (mve_vrev64q_m_<supf><mode>): Likewise.
25725 (mve_vrshlq_m_n_<supf><mode>): Likewise.
25726 (mve_vshlq_m_r_<supf><mode>): Likewise.
25727 (mve_vsliq_n_<supf><mode>): Likewise.
25728 (mve_vsriq_n_<supf><mode>): Likewise.
25729 (mve_vqdmlsdhxq_s<mode>): Likewise.
25730 (mve_vqdmlsdhq_s<mode>): Likewise.
25731 (mve_vqdmladhxq_s<mode>): Likewise.
25732 (mve_vqdmladhq_s<mode>): Likewise.
25733 (mve_vmlsdavaxq_s<mode>): Likewise.
25734 (mve_vmlsdavaq_s<mode>): Likewise.
25735 (mve_vmladavaxq_s<mode>): Likewise.
25736 * config/arm/predicates.md (mve_imm_15):Define predicate to check the
25737 matching constraint Rc.
25738 (mve_imm_31): Define predicate to check the matching constraint Re.
25740 2020-03-18 Andrew Stubbs <ams@codesourcery.com>
25742 * config/gcn/gcn-valu.md (vec_cmp<mode>di): Set operand 1 to DImode.
25743 (vec_cmp<mode>di_dup): Likewise.
25744 * config/gcn/gcn.h (STORE_FLAG_VALUE): Set to -1.
25746 2020-03-18 Andrew Stubbs <ams@codesourcery.com>
25748 * config/gcn/gcn-valu.md (COND_MODE): Delete.
25749 (COND_INT_MODE): Delete.
25750 (cond_op): Add "mult".
25751 (cond_<expander><mode>): Use VEC_ALLREG_MODE.
25752 (cond_<expander><mode>): Use VEC_ALLREG_INT_MODE.
25754 2020-03-18 Richard Biener <rguenther@suse.de>
25756 PR middle-end/94206
25757 * gimple-fold.c (gimple_fold_builtin_memset): Avoid using
25758 partial int modes or not mode-precision integer types for
25761 2020-03-18 Jakub Jelinek <jakub@redhat.com>
25763 * asan.c (get_mem_refs_of_builtin_call): Fix up duplicated word issue
25765 * config/arc/arc.c (frame_stack_add): Likewise.
25766 * gimple-loop-versioning.cc (loop_versioning::analyze_arbitrary_term):
25768 * ipa-predicate.c (predicate::remap_after_inlining): Likewise.
25769 * tree-ssa-strlen.h (handle_printf_call): Likewise.
25770 * tree-ssa-strlen.c (is_strlen_related_p): Likewise.
25771 * optinfo-emit-json.cc (optrecord_json_writer::add_record): Likewise.
25773 2020-03-18 Duan bo <duanbo3@huawei.com>
25776 * config/aarch64/aarch64.md (ldr_got_tiny): Delete.
25777 (@ldr_got_tiny_<mode>): New pattern.
25778 (ldr_got_tiny_sidi): Likewise.
25779 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Use
25780 them to handle SYMBOL_TINY_GOT for ILP32.
25782 2020-03-18 Richard Sandiford <richard.sandiford@arm.com>
25784 * config/aarch64/aarch64.c (aarch64_sve_abi): Treat p12-p15 as
25785 call-preserved for SVE PCS functions.
25786 (aarch64_layout_frame): Cope with up to 12 predicate save slots.
25787 Optimize the case in which there are no following vector save slots.
25789 2020-03-18 Richard Biener <rguenther@suse.de>
25791 PR middle-end/94188
25792 * fold-const.c (build_fold_addr_expr): Convert address to
25794 * asan.c (maybe_create_ssa_name): Strip useless type conversions.
25795 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use build1
25796 to build the ADDR_EXPR which we don't really want to simplify.
25797 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
25798 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Likewise.
25799 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
25800 (simplify_builtin_call): Strip useless type conversions.
25801 * tree-ssa-strlen.c (new_strinfo): Likewise.
25803 2020-03-17 Alexey Neyman <stilor@att.net>
25806 * dwarf2out.c (gen_decl_die): Proceed to generating the DIE if
25807 the debug level is terse and the declaration is public. Do not
25808 generate type info.
25809 (dwarf2out_decl): Same.
25810 (add_type_attribute): Return immediately if debug level is
25813 2020-03-17 Richard Sandiford <richard.sandiford@arm.com>
25815 * config/aarch64/iterators.md (Vmtype): Handle V4BF and V8BF.
25817 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
25818 Mihail Ionescu <mihail.ionescu@arm.com>
25819 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
25821 * config/arm/arm-builtins.c (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS):
25822 Define qualifier for ternary operands.
25823 (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
25824 (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
25825 (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
25826 (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
25827 (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
25828 (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
25829 (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
25830 (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
25831 (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
25832 (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
25833 (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
25834 (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
25835 (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
25836 * config/arm/arm_mve.h (vabavq_s8): Define macro.
25837 (vabavq_s16): Likewise.
25838 (vabavq_s32): Likewise.
25839 (vbicq_m_n_s16): Likewise.
25840 (vbicq_m_n_s32): Likewise.
25841 (vbicq_m_n_u16): Likewise.
25842 (vbicq_m_n_u32): Likewise.
25843 (vcmpeqq_m_f16): Likewise.
25844 (vcmpeqq_m_f32): Likewise.
25845 (vcvtaq_m_s16_f16): Likewise.
25846 (vcvtaq_m_u16_f16): Likewise.
25847 (vcvtaq_m_s32_f32): Likewise.
25848 (vcvtaq_m_u32_f32): Likewise.
25849 (vcvtq_m_f16_s16): Likewise.
25850 (vcvtq_m_f16_u16): Likewise.
25851 (vcvtq_m_f32_s32): Likewise.
25852 (vcvtq_m_f32_u32): Likewise.
25853 (vqrshrnbq_n_s16): Likewise.
25854 (vqrshrnbq_n_u16): Likewise.
25855 (vqrshrnbq_n_s32): Likewise.
25856 (vqrshrnbq_n_u32): Likewise.
25857 (vqrshrunbq_n_s16): Likewise.
25858 (vqrshrunbq_n_s32): Likewise.
25859 (vrmlaldavhaq_s32): Likewise.
25860 (vrmlaldavhaq_u32): Likewise.
25861 (vshlcq_s8): Likewise.
25862 (vshlcq_u8): Likewise.
25863 (vshlcq_s16): Likewise.
25864 (vshlcq_u16): Likewise.
25865 (vshlcq_s32): Likewise.
25866 (vshlcq_u32): Likewise.
25867 (vabavq_u8): Likewise.
25868 (vabavq_u16): Likewise.
25869 (vabavq_u32): Likewise.
25870 (__arm_vabavq_s8): Define intrinsic.
25871 (__arm_vabavq_s16): Likewise.
25872 (__arm_vabavq_s32): Likewise.
25873 (__arm_vabavq_u8): Likewise.
25874 (__arm_vabavq_u16): Likewise.
25875 (__arm_vabavq_u32): Likewise.
25876 (__arm_vbicq_m_n_s16): Likewise.
25877 (__arm_vbicq_m_n_s32): Likewise.
25878 (__arm_vbicq_m_n_u16): Likewise.
25879 (__arm_vbicq_m_n_u32): Likewise.
25880 (__arm_vqrshrnbq_n_s16): Likewise.
25881 (__arm_vqrshrnbq_n_u16): Likewise.
25882 (__arm_vqrshrnbq_n_s32): Likewise.
25883 (__arm_vqrshrnbq_n_u32): Likewise.
25884 (__arm_vqrshrunbq_n_s16): Likewise.
25885 (__arm_vqrshrunbq_n_s32): Likewise.
25886 (__arm_vrmlaldavhaq_s32): Likewise.
25887 (__arm_vrmlaldavhaq_u32): Likewise.
25888 (__arm_vshlcq_s8): Likewise.
25889 (__arm_vshlcq_u8): Likewise.
25890 (__arm_vshlcq_s16): Likewise.
25891 (__arm_vshlcq_u16): Likewise.
25892 (__arm_vshlcq_s32): Likewise.
25893 (__arm_vshlcq_u32): Likewise.
25894 (__arm_vcmpeqq_m_f16): Likewise.
25895 (__arm_vcmpeqq_m_f32): Likewise.
25896 (__arm_vcvtaq_m_s16_f16): Likewise.
25897 (__arm_vcvtaq_m_u16_f16): Likewise.
25898 (__arm_vcvtaq_m_s32_f32): Likewise.
25899 (__arm_vcvtaq_m_u32_f32): Likewise.
25900 (__arm_vcvtq_m_f16_s16): Likewise.
25901 (__arm_vcvtq_m_f16_u16): Likewise.
25902 (__arm_vcvtq_m_f32_s32): Likewise.
25903 (__arm_vcvtq_m_f32_u32): Likewise.
25904 (vcvtaq_m): Define polymorphic variant.
25905 (vcvtq_m): Likewise.
25906 (vabavq): Likewise.
25907 (vshlcq): Likewise.
25908 (vbicq_m_n): Likewise.
25909 (vqrshrnbq_n): Likewise.
25910 (vqrshrunbq_n): Likewise.
25911 * config/arm/arm_mve_builtins.def
25912 (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS): Use the builtin qualifer.
25913 (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
25914 (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
25915 (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
25916 (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
25917 (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
25918 (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
25919 (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
25920 (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
25921 (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
25922 (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
25923 (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
25924 (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
25925 (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
25926 * config/arm/mve.md (VBICQ_M_N): Define iterator.
25927 (VCVTAQ_M): Likewise.
25928 (VCVTQ_M_TO_F): Likewise.
25929 (VQRSHRNBQ_N): Likewise.
25930 (VABAVQ): Likewise.
25931 (VSHLCQ): Likewise.
25932 (VRMLALDAVHAQ): Likewise.
25933 (mve_vbicq_m_n_<supf><mode>): Define RTL pattern.
25934 (mve_vcmpeqq_m_f<mode>): Likewise.
25935 (mve_vcvtaq_m_<supf><mode>): Likewise.
25936 (mve_vcvtq_m_to_f_<supf><mode>): Likewise.
25937 (mve_vqrshrnbq_n_<supf><mode>): Likewise.
25938 (mve_vqrshrunbq_n_s<mode>): Likewise.
25939 (mve_vrmlaldavhaq_<supf>v4si): Likewise.
25940 (mve_vabavq_<supf><mode>): Likewise.
25941 (mve_vshlcq_<supf><mode>): Likewise.
25942 (mve_vshlcq_<supf><mode>): Likewise.
25943 (mve_vshlcq_vec_<supf><mode>): Define RTL expand.
25944 (mve_vshlcq_carry_<supf><mode>): Likewise.
25946 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
25947 Mihail Ionescu <mihail.ionescu@arm.com>
25948 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
25950 * config/arm/arm_mve.h (vqmovntq_u16): Define macro.
25951 (vqmovnbq_u16): Likewise.
25952 (vmulltq_poly_p8): Likewise.
25953 (vmullbq_poly_p8): Likewise.
25954 (vmovntq_u16): Likewise.
25955 (vmovnbq_u16): Likewise.
25956 (vmlaldavxq_u16): Likewise.
25957 (vmlaldavq_u16): Likewise.
25958 (vqmovuntq_s16): Likewise.
25959 (vqmovunbq_s16): Likewise.
25960 (vshlltq_n_u8): Likewise.
25961 (vshllbq_n_u8): Likewise.
25962 (vorrq_n_u16): Likewise.
25963 (vbicq_n_u16): Likewise.
25964 (vcmpneq_n_f16): Likewise.
25965 (vcmpneq_f16): Likewise.
25966 (vcmpltq_n_f16): Likewise.
25967 (vcmpltq_f16): Likewise.
25968 (vcmpleq_n_f16): Likewise.
25969 (vcmpleq_f16): Likewise.
25970 (vcmpgtq_n_f16): Likewise.
25971 (vcmpgtq_f16): Likewise.
25972 (vcmpgeq_n_f16): Likewise.
25973 (vcmpgeq_f16): Likewise.
25974 (vcmpeqq_n_f16): Likewise.
25975 (vcmpeqq_f16): Likewise.
25976 (vsubq_f16): Likewise.
25977 (vqmovntq_s16): Likewise.
25978 (vqmovnbq_s16): Likewise.
25979 (vqdmulltq_s16): Likewise.
25980 (vqdmulltq_n_s16): Likewise.
25981 (vqdmullbq_s16): Likewise.
25982 (vqdmullbq_n_s16): Likewise.
25983 (vorrq_f16): Likewise.
25984 (vornq_f16): Likewise.
25985 (vmulq_n_f16): Likewise.
25986 (vmulq_f16): Likewise.
25987 (vmovntq_s16): Likewise.
25988 (vmovnbq_s16): Likewise.
25989 (vmlsldavxq_s16): Likewise.
25990 (vmlsldavq_s16): Likewise.
25991 (vmlaldavxq_s16): Likewise.
25992 (vmlaldavq_s16): Likewise.
25993 (vminnmvq_f16): Likewise.
25994 (vminnmq_f16): Likewise.
25995 (vminnmavq_f16): Likewise.
25996 (vminnmaq_f16): Likewise.
25997 (vmaxnmvq_f16): Likewise.
25998 (vmaxnmq_f16): Likewise.
25999 (vmaxnmavq_f16): Likewise.
26000 (vmaxnmaq_f16): Likewise.
26001 (veorq_f16): Likewise.
26002 (vcmulq_rot90_f16): Likewise.
26003 (vcmulq_rot270_f16): Likewise.
26004 (vcmulq_rot180_f16): Likewise.
26005 (vcmulq_f16): Likewise.
26006 (vcaddq_rot90_f16): Likewise.
26007 (vcaddq_rot270_f16): Likewise.
26008 (vbicq_f16): Likewise.
26009 (vandq_f16): Likewise.
26010 (vaddq_n_f16): Likewise.
26011 (vabdq_f16): Likewise.
26012 (vshlltq_n_s8): Likewise.
26013 (vshllbq_n_s8): Likewise.
26014 (vorrq_n_s16): Likewise.
26015 (vbicq_n_s16): Likewise.
26016 (vqmovntq_u32): Likewise.
26017 (vqmovnbq_u32): Likewise.
26018 (vmulltq_poly_p16): Likewise.
26019 (vmullbq_poly_p16): Likewise.
26020 (vmovntq_u32): Likewise.
26021 (vmovnbq_u32): Likewise.
26022 (vmlaldavxq_u32): Likewise.
26023 (vmlaldavq_u32): Likewise.
26024 (vqmovuntq_s32): Likewise.
26025 (vqmovunbq_s32): Likewise.
26026 (vshlltq_n_u16): Likewise.
26027 (vshllbq_n_u16): Likewise.
26028 (vorrq_n_u32): Likewise.
26029 (vbicq_n_u32): Likewise.
26030 (vcmpneq_n_f32): Likewise.
26031 (vcmpneq_f32): Likewise.
26032 (vcmpltq_n_f32): Likewise.
26033 (vcmpltq_f32): Likewise.
26034 (vcmpleq_n_f32): Likewise.
26035 (vcmpleq_f32): Likewise.
26036 (vcmpgtq_n_f32): Likewise.
26037 (vcmpgtq_f32): Likewise.
26038 (vcmpgeq_n_f32): Likewise.
26039 (vcmpgeq_f32): Likewise.
26040 (vcmpeqq_n_f32): Likewise.
26041 (vcmpeqq_f32): Likewise.
26042 (vsubq_f32): Likewise.
26043 (vqmovntq_s32): Likewise.
26044 (vqmovnbq_s32): Likewise.
26045 (vqdmulltq_s32): Likewise.
26046 (vqdmulltq_n_s32): Likewise.
26047 (vqdmullbq_s32): Likewise.
26048 (vqdmullbq_n_s32): Likewise.
26049 (vorrq_f32): Likewise.
26050 (vornq_f32): Likewise.
26051 (vmulq_n_f32): Likewise.
26052 (vmulq_f32): Likewise.
26053 (vmovntq_s32): Likewise.
26054 (vmovnbq_s32): Likewise.
26055 (vmlsldavxq_s32): Likewise.
26056 (vmlsldavq_s32): Likewise.
26057 (vmlaldavxq_s32): Likewise.
26058 (vmlaldavq_s32): Likewise.
26059 (vminnmvq_f32): Likewise.
26060 (vminnmq_f32): Likewise.
26061 (vminnmavq_f32): Likewise.
26062 (vminnmaq_f32): Likewise.
26063 (vmaxnmvq_f32): Likewise.
26064 (vmaxnmq_f32): Likewise.
26065 (vmaxnmavq_f32): Likewise.
26066 (vmaxnmaq_f32): Likewise.
26067 (veorq_f32): Likewise.
26068 (vcmulq_rot90_f32): Likewise.
26069 (vcmulq_rot270_f32): Likewise.
26070 (vcmulq_rot180_f32): Likewise.
26071 (vcmulq_f32): Likewise.
26072 (vcaddq_rot90_f32): Likewise.
26073 (vcaddq_rot270_f32): Likewise.
26074 (vbicq_f32): Likewise.
26075 (vandq_f32): Likewise.
26076 (vaddq_n_f32): Likewise.
26077 (vabdq_f32): Likewise.
26078 (vshlltq_n_s16): Likewise.
26079 (vshllbq_n_s16): Likewise.
26080 (vorrq_n_s32): Likewise.
26081 (vbicq_n_s32): Likewise.
26082 (vrmlaldavhq_u32): Likewise.
26083 (vctp8q_m): Likewise.
26084 (vctp64q_m): Likewise.
26085 (vctp32q_m): Likewise.
26086 (vctp16q_m): Likewise.
26087 (vaddlvaq_u32): Likewise.
26088 (vrmlsldavhxq_s32): Likewise.
26089 (vrmlsldavhq_s32): Likewise.
26090 (vrmlaldavhxq_s32): Likewise.
26091 (vrmlaldavhq_s32): Likewise.
26092 (vcvttq_f16_f32): Likewise.
26093 (vcvtbq_f16_f32): Likewise.
26094 (vaddlvaq_s32): Likewise.
26095 (__arm_vqmovntq_u16): Define intrinsic.
26096 (__arm_vqmovnbq_u16): Likewise.
26097 (__arm_vmulltq_poly_p8): Likewise.
26098 (__arm_vmullbq_poly_p8): Likewise.
26099 (__arm_vmovntq_u16): Likewise.
26100 (__arm_vmovnbq_u16): Likewise.
26101 (__arm_vmlaldavxq_u16): Likewise.
26102 (__arm_vmlaldavq_u16): Likewise.
26103 (__arm_vqmovuntq_s16): Likewise.
26104 (__arm_vqmovunbq_s16): Likewise.
26105 (__arm_vshlltq_n_u8): Likewise.
26106 (__arm_vshllbq_n_u8): Likewise.
26107 (__arm_vorrq_n_u16): Likewise.
26108 (__arm_vbicq_n_u16): Likewise.
26109 (__arm_vcmpneq_n_f16): Likewise.
26110 (__arm_vcmpneq_f16): Likewise.
26111 (__arm_vcmpltq_n_f16): Likewise.
26112 (__arm_vcmpltq_f16): Likewise.
26113 (__arm_vcmpleq_n_f16): Likewise.
26114 (__arm_vcmpleq_f16): Likewise.
26115 (__arm_vcmpgtq_n_f16): Likewise.
26116 (__arm_vcmpgtq_f16): Likewise.
26117 (__arm_vcmpgeq_n_f16): Likewise.
26118 (__arm_vcmpgeq_f16): Likewise.
26119 (__arm_vcmpeqq_n_f16): Likewise.
26120 (__arm_vcmpeqq_f16): Likewise.
26121 (__arm_vsubq_f16): Likewise.
26122 (__arm_vqmovntq_s16): Likewise.
26123 (__arm_vqmovnbq_s16): Likewise.
26124 (__arm_vqdmulltq_s16): Likewise.
26125 (__arm_vqdmulltq_n_s16): Likewise.
26126 (__arm_vqdmullbq_s16): Likewise.
26127 (__arm_vqdmullbq_n_s16): Likewise.
26128 (__arm_vorrq_f16): Likewise.
26129 (__arm_vornq_f16): Likewise.
26130 (__arm_vmulq_n_f16): Likewise.
26131 (__arm_vmulq_f16): Likewise.
26132 (__arm_vmovntq_s16): Likewise.
26133 (__arm_vmovnbq_s16): Likewise.
26134 (__arm_vmlsldavxq_s16): Likewise.
26135 (__arm_vmlsldavq_s16): Likewise.
26136 (__arm_vmlaldavxq_s16): Likewise.
26137 (__arm_vmlaldavq_s16): Likewise.
26138 (__arm_vminnmvq_f16): Likewise.
26139 (__arm_vminnmq_f16): Likewise.
26140 (__arm_vminnmavq_f16): Likewise.
26141 (__arm_vminnmaq_f16): Likewise.
26142 (__arm_vmaxnmvq_f16): Likewise.
26143 (__arm_vmaxnmq_f16): Likewise.
26144 (__arm_vmaxnmavq_f16): Likewise.
26145 (__arm_vmaxnmaq_f16): Likewise.
26146 (__arm_veorq_f16): Likewise.
26147 (__arm_vcmulq_rot90_f16): Likewise.
26148 (__arm_vcmulq_rot270_f16): Likewise.
26149 (__arm_vcmulq_rot180_f16): Likewise.
26150 (__arm_vcmulq_f16): Likewise.
26151 (__arm_vcaddq_rot90_f16): Likewise.
26152 (__arm_vcaddq_rot270_f16): Likewise.
26153 (__arm_vbicq_f16): Likewise.
26154 (__arm_vandq_f16): Likewise.
26155 (__arm_vaddq_n_f16): Likewise.
26156 (__arm_vabdq_f16): Likewise.
26157 (__arm_vshlltq_n_s8): Likewise.
26158 (__arm_vshllbq_n_s8): Likewise.
26159 (__arm_vorrq_n_s16): Likewise.
26160 (__arm_vbicq_n_s16): Likewise.
26161 (__arm_vqmovntq_u32): Likewise.
26162 (__arm_vqmovnbq_u32): Likewise.
26163 (__arm_vmulltq_poly_p16): Likewise.
26164 (__arm_vmullbq_poly_p16): Likewise.
26165 (__arm_vmovntq_u32): Likewise.
26166 (__arm_vmovnbq_u32): Likewise.
26167 (__arm_vmlaldavxq_u32): Likewise.
26168 (__arm_vmlaldavq_u32): Likewise.
26169 (__arm_vqmovuntq_s32): Likewise.
26170 (__arm_vqmovunbq_s32): Likewise.
26171 (__arm_vshlltq_n_u16): Likewise.
26172 (__arm_vshllbq_n_u16): Likewise.
26173 (__arm_vorrq_n_u32): Likewise.
26174 (__arm_vbicq_n_u32): Likewise.
26175 (__arm_vcmpneq_n_f32): Likewise.
26176 (__arm_vcmpneq_f32): Likewise.
26177 (__arm_vcmpltq_n_f32): Likewise.
26178 (__arm_vcmpltq_f32): Likewise.
26179 (__arm_vcmpleq_n_f32): Likewise.
26180 (__arm_vcmpleq_f32): Likewise.
26181 (__arm_vcmpgtq_n_f32): Likewise.
26182 (__arm_vcmpgtq_f32): Likewise.
26183 (__arm_vcmpgeq_n_f32): Likewise.
26184 (__arm_vcmpgeq_f32): Likewise.
26185 (__arm_vcmpeqq_n_f32): Likewise.
26186 (__arm_vcmpeqq_f32): Likewise.
26187 (__arm_vsubq_f32): Likewise.
26188 (__arm_vqmovntq_s32): Likewise.
26189 (__arm_vqmovnbq_s32): Likewise.
26190 (__arm_vqdmulltq_s32): Likewise.
26191 (__arm_vqdmulltq_n_s32): Likewise.
26192 (__arm_vqdmullbq_s32): Likewise.
26193 (__arm_vqdmullbq_n_s32): Likewise.
26194 (__arm_vorrq_f32): Likewise.
26195 (__arm_vornq_f32): Likewise.
26196 (__arm_vmulq_n_f32): Likewise.
26197 (__arm_vmulq_f32): Likewise.
26198 (__arm_vmovntq_s32): Likewise.
26199 (__arm_vmovnbq_s32): Likewise.
26200 (__arm_vmlsldavxq_s32): Likewise.
26201 (__arm_vmlsldavq_s32): Likewise.
26202 (__arm_vmlaldavxq_s32): Likewise.
26203 (__arm_vmlaldavq_s32): Likewise.
26204 (__arm_vminnmvq_f32): Likewise.
26205 (__arm_vminnmq_f32): Likewise.
26206 (__arm_vminnmavq_f32): Likewise.
26207 (__arm_vminnmaq_f32): Likewise.
26208 (__arm_vmaxnmvq_f32): Likewise.
26209 (__arm_vmaxnmq_f32): Likewise.
26210 (__arm_vmaxnmavq_f32): Likewise.
26211 (__arm_vmaxnmaq_f32): Likewise.
26212 (__arm_veorq_f32): Likewise.
26213 (__arm_vcmulq_rot90_f32): Likewise.
26214 (__arm_vcmulq_rot270_f32): Likewise.
26215 (__arm_vcmulq_rot180_f32): Likewise.
26216 (__arm_vcmulq_f32): Likewise.
26217 (__arm_vcaddq_rot90_f32): Likewise.
26218 (__arm_vcaddq_rot270_f32): Likewise.
26219 (__arm_vbicq_f32): Likewise.
26220 (__arm_vandq_f32): Likewise.
26221 (__arm_vaddq_n_f32): Likewise.
26222 (__arm_vabdq_f32): Likewise.
26223 (__arm_vshlltq_n_s16): Likewise.
26224 (__arm_vshllbq_n_s16): Likewise.
26225 (__arm_vorrq_n_s32): Likewise.
26226 (__arm_vbicq_n_s32): Likewise.
26227 (__arm_vrmlaldavhq_u32): Likewise.
26228 (__arm_vctp8q_m): Likewise.
26229 (__arm_vctp64q_m): Likewise.
26230 (__arm_vctp32q_m): Likewise.
26231 (__arm_vctp16q_m): Likewise.
26232 (__arm_vaddlvaq_u32): Likewise.
26233 (__arm_vrmlsldavhxq_s32): Likewise.
26234 (__arm_vrmlsldavhq_s32): Likewise.
26235 (__arm_vrmlaldavhxq_s32): Likewise.
26236 (__arm_vrmlaldavhq_s32): Likewise.
26237 (__arm_vcvttq_f16_f32): Likewise.
26238 (__arm_vcvtbq_f16_f32): Likewise.
26239 (__arm_vaddlvaq_s32): Likewise.
26240 (vst4q): Define polymorphic variant.
26241 (vrndxq): Likewise.
26243 (vrndpq): Likewise.
26244 (vrndnq): Likewise.
26245 (vrndmq): Likewise.
26246 (vrndaq): Likewise.
26247 (vrev64q): Likewise.
26249 (vdupq_n): Likewise.
26251 (vrev32q): Likewise.
26252 (vcvtbq_f32): Likewise.
26253 (vcvttq_f32): Likewise.
26255 (vsubq_n): Likewise.
26256 (vbrsrq_n): Likewise.
26257 (vcvtq_n): Likewise.
26261 (vaddq_n): Likewise.
26265 (vmulq_n): Likewise.
26267 (vcaddq_rot270): Likewise.
26268 (vcmpeqq_n): Likewise.
26269 (vcmpeqq): Likewise.
26270 (vcaddq_rot90): Likewise.
26271 (vcmpgeq_n): Likewise.
26272 (vcmpgeq): Likewise.
26273 (vcmpgtq_n): Likewise.
26274 (vcmpgtq): Likewise.
26275 (vcmpgtq): Likewise.
26276 (vcmpleq_n): Likewise.
26277 (vcmpleq_n): Likewise.
26278 (vcmpleq): Likewise.
26279 (vcmpleq): Likewise.
26280 (vcmpltq_n): Likewise.
26281 (vcmpltq_n): Likewise.
26282 (vcmpltq): Likewise.
26283 (vcmpltq): Likewise.
26284 (vcmpneq_n): Likewise.
26285 (vcmpneq_n): Likewise.
26286 (vcmpneq): Likewise.
26287 (vcmpneq): Likewise.
26288 (vcmulq): Likewise.
26289 (vcmulq): Likewise.
26290 (vcmulq_rot180): Likewise.
26291 (vcmulq_rot180): Likewise.
26292 (vcmulq_rot270): Likewise.
26293 (vcmulq_rot270): Likewise.
26294 (vcmulq_rot90): Likewise.
26295 (vcmulq_rot90): Likewise.
26298 (vmaxnmaq): Likewise.
26299 (vmaxnmaq): Likewise.
26300 (vmaxnmavq): Likewise.
26301 (vmaxnmavq): Likewise.
26302 (vmaxnmq): Likewise.
26303 (vmaxnmq): Likewise.
26304 (vmaxnmvq): Likewise.
26305 (vmaxnmvq): Likewise.
26306 (vminnmaq): Likewise.
26307 (vminnmaq): Likewise.
26308 (vminnmavq): Likewise.
26309 (vminnmavq): Likewise.
26310 (vminnmq): Likewise.
26311 (vminnmq): Likewise.
26312 (vminnmvq): Likewise.
26313 (vminnmvq): Likewise.
26314 (vbicq_n): Likewise.
26315 (vqmovntq): Likewise.
26316 (vqmovntq): Likewise.
26317 (vqmovnbq): Likewise.
26318 (vqmovnbq): Likewise.
26319 (vmulltq_poly): Likewise.
26320 (vmulltq_poly): Likewise.
26321 (vmullbq_poly): Likewise.
26322 (vmullbq_poly): Likewise.
26323 (vmovntq): Likewise.
26324 (vmovntq): Likewise.
26325 (vmovnbq): Likewise.
26326 (vmovnbq): Likewise.
26327 (vmlaldavxq): Likewise.
26328 (vmlaldavxq): Likewise.
26329 (vqmovuntq): Likewise.
26330 (vqmovuntq): Likewise.
26331 (vshlltq_n): Likewise.
26332 (vshlltq_n): Likewise.
26333 (vshllbq_n): Likewise.
26334 (vshllbq_n): Likewise.
26335 (vorrq_n): Likewise.
26336 (vorrq_n): Likewise.
26337 (vmlaldavq): Likewise.
26338 (vmlaldavq): Likewise.
26339 (vqmovunbq): Likewise.
26340 (vqmovunbq): Likewise.
26341 (vqdmulltq_n): Likewise.
26342 (vqdmulltq_n): Likewise.
26343 (vqdmulltq): Likewise.
26344 (vqdmulltq): Likewise.
26345 (vqdmullbq_n): Likewise.
26346 (vqdmullbq_n): Likewise.
26347 (vqdmullbq): Likewise.
26348 (vqdmullbq): Likewise.
26349 (vaddlvaq): Likewise.
26350 (vaddlvaq): Likewise.
26351 (vrmlaldavhq): Likewise.
26352 (vrmlaldavhq): Likewise.
26353 (vrmlaldavhxq): Likewise.
26354 (vrmlaldavhxq): Likewise.
26355 (vrmlsldavhq): Likewise.
26356 (vrmlsldavhq): Likewise.
26357 (vrmlsldavhxq): Likewise.
26358 (vrmlsldavhxq): Likewise.
26359 (vmlsldavxq): Likewise.
26360 (vmlsldavxq): Likewise.
26361 (vmlsldavq): Likewise.
26362 (vmlsldavq): Likewise.
26363 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
26364 (BINOP_NONE_NONE_NONE): Likewise.
26365 (BINOP_UNONE_NONE_NONE): Likewise.
26366 (BINOP_UNONE_UNONE_IMM): Likewise.
26367 (BINOP_UNONE_UNONE_NONE): Likewise.
26368 (BINOP_UNONE_UNONE_UNONE): Likewise.
26369 * config/arm/mve.md (mve_vabdq_f<mode>): Define RTL pattern.
26370 (mve_vaddlvaq_<supf>v4si): Likewise.
26371 (mve_vaddq_n_f<mode>): Likewise.
26372 (mve_vandq_f<mode>): Likewise.
26373 (mve_vbicq_f<mode>): Likewise.
26374 (mve_vbicq_n_<supf><mode>): Likewise.
26375 (mve_vcaddq_rot270_f<mode>): Likewise.
26376 (mve_vcaddq_rot90_f<mode>): Likewise.
26377 (mve_vcmpeqq_f<mode>): Likewise.
26378 (mve_vcmpeqq_n_f<mode>): Likewise.
26379 (mve_vcmpgeq_f<mode>): Likewise.
26380 (mve_vcmpgeq_n_f<mode>): Likewise.
26381 (mve_vcmpgtq_f<mode>): Likewise.
26382 (mve_vcmpgtq_n_f<mode>): Likewise.
26383 (mve_vcmpleq_f<mode>): Likewise.
26384 (mve_vcmpleq_n_f<mode>): Likewise.
26385 (mve_vcmpltq_f<mode>): Likewise.
26386 (mve_vcmpltq_n_f<mode>): Likewise.
26387 (mve_vcmpneq_f<mode>): Likewise.
26388 (mve_vcmpneq_n_f<mode>): Likewise.
26389 (mve_vcmulq_f<mode>): Likewise.
26390 (mve_vcmulq_rot180_f<mode>): Likewise.
26391 (mve_vcmulq_rot270_f<mode>): Likewise.
26392 (mve_vcmulq_rot90_f<mode>): Likewise.
26393 (mve_vctp<mode1>q_mhi): Likewise.
26394 (mve_vcvtbq_f16_f32v8hf): Likewise.
26395 (mve_vcvttq_f16_f32v8hf): Likewise.
26396 (mve_veorq_f<mode>): Likewise.
26397 (mve_vmaxnmaq_f<mode>): Likewise.
26398 (mve_vmaxnmavq_f<mode>): Likewise.
26399 (mve_vmaxnmq_f<mode>): Likewise.
26400 (mve_vmaxnmvq_f<mode>): Likewise.
26401 (mve_vminnmaq_f<mode>): Likewise.
26402 (mve_vminnmavq_f<mode>): Likewise.
26403 (mve_vminnmq_f<mode>): Likewise.
26404 (mve_vminnmvq_f<mode>): Likewise.
26405 (mve_vmlaldavq_<supf><mode>): Likewise.
26406 (mve_vmlaldavxq_<supf><mode>): Likewise.
26407 (mve_vmlsldavq_s<mode>): Likewise.
26408 (mve_vmlsldavxq_s<mode>): Likewise.
26409 (mve_vmovnbq_<supf><mode>): Likewise.
26410 (mve_vmovntq_<supf><mode>): Likewise.
26411 (mve_vmulq_f<mode>): Likewise.
26412 (mve_vmulq_n_f<mode>): Likewise.
26413 (mve_vornq_f<mode>): Likewise.
26414 (mve_vorrq_f<mode>): Likewise.
26415 (mve_vorrq_n_<supf><mode>): Likewise.
26416 (mve_vqdmullbq_n_s<mode>): Likewise.
26417 (mve_vqdmullbq_s<mode>): Likewise.
26418 (mve_vqdmulltq_n_s<mode>): Likewise.
26419 (mve_vqdmulltq_s<mode>): Likewise.
26420 (mve_vqmovnbq_<supf><mode>): Likewise.
26421 (mve_vqmovntq_<supf><mode>): Likewise.
26422 (mve_vqmovunbq_s<mode>): Likewise.
26423 (mve_vqmovuntq_s<mode>): Likewise.
26424 (mve_vrmlaldavhxq_sv4si): Likewise.
26425 (mve_vrmlsldavhq_sv4si): Likewise.
26426 (mve_vrmlsldavhxq_sv4si): Likewise.
26427 (mve_vshllbq_n_<supf><mode>): Likewise.
26428 (mve_vshlltq_n_<supf><mode>): Likewise.
26429 (mve_vsubq_f<mode>): Likewise.
26430 (mve_vmulltq_poly_p<mode>): Likewise.
26431 (mve_vmullbq_poly_p<mode>): Likewise.
26432 (mve_vrmlaldavhq_<supf>v4si): Likewise.
26434 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
26435 Mihail Ionescu <mihail.ionescu@arm.com>
26436 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
26438 * config/arm/arm_mve.h (vsubq_u8): Define macro.
26439 (vsubq_n_u8): Likewise.
26440 (vrmulhq_u8): Likewise.
26441 (vrhaddq_u8): Likewise.
26442 (vqsubq_u8): Likewise.
26443 (vqsubq_n_u8): Likewise.
26444 (vqaddq_u8): Likewise.
26445 (vqaddq_n_u8): Likewise.
26446 (vorrq_u8): Likewise.
26447 (vornq_u8): Likewise.
26448 (vmulq_u8): Likewise.
26449 (vmulq_n_u8): Likewise.
26450 (vmulltq_int_u8): Likewise.
26451 (vmullbq_int_u8): Likewise.
26452 (vmulhq_u8): Likewise.
26453 (vmladavq_u8): Likewise.
26454 (vminvq_u8): Likewise.
26455 (vminq_u8): Likewise.
26456 (vmaxvq_u8): Likewise.
26457 (vmaxq_u8): Likewise.
26458 (vhsubq_u8): Likewise.
26459 (vhsubq_n_u8): Likewise.
26460 (vhaddq_u8): Likewise.
26461 (vhaddq_n_u8): Likewise.
26462 (veorq_u8): Likewise.
26463 (vcmpneq_n_u8): Likewise.
26464 (vcmphiq_u8): Likewise.
26465 (vcmphiq_n_u8): Likewise.
26466 (vcmpeqq_u8): Likewise.
26467 (vcmpeqq_n_u8): Likewise.
26468 (vcmpcsq_u8): Likewise.
26469 (vcmpcsq_n_u8): Likewise.
26470 (vcaddq_rot90_u8): Likewise.
26471 (vcaddq_rot270_u8): Likewise.
26472 (vbicq_u8): Likewise.
26473 (vandq_u8): Likewise.
26474 (vaddvq_p_u8): Likewise.
26475 (vaddvaq_u8): Likewise.
26476 (vaddq_n_u8): Likewise.
26477 (vabdq_u8): Likewise.
26478 (vshlq_r_u8): Likewise.
26479 (vrshlq_u8): Likewise.
26480 (vrshlq_n_u8): Likewise.
26481 (vqshlq_u8): Likewise.
26482 (vqshlq_r_u8): Likewise.
26483 (vqrshlq_u8): Likewise.
26484 (vqrshlq_n_u8): Likewise.
26485 (vminavq_s8): Likewise.
26486 (vminaq_s8): Likewise.
26487 (vmaxavq_s8): Likewise.
26488 (vmaxaq_s8): Likewise.
26489 (vbrsrq_n_u8): Likewise.
26490 (vshlq_n_u8): Likewise.
26491 (vrshrq_n_u8): Likewise.
26492 (vqshlq_n_u8): Likewise.
26493 (vcmpneq_n_s8): Likewise.
26494 (vcmpltq_s8): Likewise.
26495 (vcmpltq_n_s8): Likewise.
26496 (vcmpleq_s8): Likewise.
26497 (vcmpleq_n_s8): Likewise.
26498 (vcmpgtq_s8): Likewise.
26499 (vcmpgtq_n_s8): Likewise.
26500 (vcmpgeq_s8): Likewise.
26501 (vcmpgeq_n_s8): Likewise.
26502 (vcmpeqq_s8): Likewise.
26503 (vcmpeqq_n_s8): Likewise.
26504 (vqshluq_n_s8): Likewise.
26505 (vaddvq_p_s8): Likewise.
26506 (vsubq_s8): Likewise.
26507 (vsubq_n_s8): Likewise.
26508 (vshlq_r_s8): Likewise.
26509 (vrshlq_s8): Likewise.
26510 (vrshlq_n_s8): Likewise.
26511 (vrmulhq_s8): Likewise.
26512 (vrhaddq_s8): Likewise.
26513 (vqsubq_s8): Likewise.
26514 (vqsubq_n_s8): Likewise.
26515 (vqshlq_s8): Likewise.
26516 (vqshlq_r_s8): Likewise.
26517 (vqrshlq_s8): Likewise.
26518 (vqrshlq_n_s8): Likewise.
26519 (vqrdmulhq_s8): Likewise.
26520 (vqrdmulhq_n_s8): Likewise.
26521 (vqdmulhq_s8): Likewise.
26522 (vqdmulhq_n_s8): Likewise.
26523 (vqaddq_s8): Likewise.
26524 (vqaddq_n_s8): Likewise.
26525 (vorrq_s8): Likewise.
26526 (vornq_s8): Likewise.
26527 (vmulq_s8): Likewise.
26528 (vmulq_n_s8): Likewise.
26529 (vmulltq_int_s8): Likewise.
26530 (vmullbq_int_s8): Likewise.
26531 (vmulhq_s8): Likewise.
26532 (vmlsdavxq_s8): Likewise.
26533 (vmlsdavq_s8): Likewise.
26534 (vmladavxq_s8): Likewise.
26535 (vmladavq_s8): Likewise.
26536 (vminvq_s8): Likewise.
26537 (vminq_s8): Likewise.
26538 (vmaxvq_s8): Likewise.
26539 (vmaxq_s8): Likewise.
26540 (vhsubq_s8): Likewise.
26541 (vhsubq_n_s8): Likewise.
26542 (vhcaddq_rot90_s8): Likewise.
26543 (vhcaddq_rot270_s8): Likewise.
26544 (vhaddq_s8): Likewise.
26545 (vhaddq_n_s8): Likewise.
26546 (veorq_s8): Likewise.
26547 (vcaddq_rot90_s8): Likewise.
26548 (vcaddq_rot270_s8): Likewise.
26549 (vbrsrq_n_s8): Likewise.
26550 (vbicq_s8): Likewise.
26551 (vandq_s8): Likewise.
26552 (vaddvaq_s8): Likewise.
26553 (vaddq_n_s8): Likewise.
26554 (vabdq_s8): Likewise.
26555 (vshlq_n_s8): Likewise.
26556 (vrshrq_n_s8): Likewise.
26557 (vqshlq_n_s8): Likewise.
26558 (vsubq_u16): Likewise.
26559 (vsubq_n_u16): Likewise.
26560 (vrmulhq_u16): Likewise.
26561 (vrhaddq_u16): Likewise.
26562 (vqsubq_u16): Likewise.
26563 (vqsubq_n_u16): Likewise.
26564 (vqaddq_u16): Likewise.
26565 (vqaddq_n_u16): Likewise.
26566 (vorrq_u16): Likewise.
26567 (vornq_u16): Likewise.
26568 (vmulq_u16): Likewise.
26569 (vmulq_n_u16): Likewise.
26570 (vmulltq_int_u16): Likewise.
26571 (vmullbq_int_u16): Likewise.
26572 (vmulhq_u16): Likewise.
26573 (vmladavq_u16): Likewise.
26574 (vminvq_u16): Likewise.
26575 (vminq_u16): Likewise.
26576 (vmaxvq_u16): Likewise.
26577 (vmaxq_u16): Likewise.
26578 (vhsubq_u16): Likewise.
26579 (vhsubq_n_u16): Likewise.
26580 (vhaddq_u16): Likewise.
26581 (vhaddq_n_u16): Likewise.
26582 (veorq_u16): Likewise.
26583 (vcmpneq_n_u16): Likewise.
26584 (vcmphiq_u16): Likewise.
26585 (vcmphiq_n_u16): Likewise.
26586 (vcmpeqq_u16): Likewise.
26587 (vcmpeqq_n_u16): Likewise.
26588 (vcmpcsq_u16): Likewise.
26589 (vcmpcsq_n_u16): Likewise.
26590 (vcaddq_rot90_u16): Likewise.
26591 (vcaddq_rot270_u16): Likewise.
26592 (vbicq_u16): Likewise.
26593 (vandq_u16): Likewise.
26594 (vaddvq_p_u16): Likewise.
26595 (vaddvaq_u16): Likewise.
26596 (vaddq_n_u16): Likewise.
26597 (vabdq_u16): Likewise.
26598 (vshlq_r_u16): Likewise.
26599 (vrshlq_u16): Likewise.
26600 (vrshlq_n_u16): Likewise.
26601 (vqshlq_u16): Likewise.
26602 (vqshlq_r_u16): Likewise.
26603 (vqrshlq_u16): Likewise.
26604 (vqrshlq_n_u16): Likewise.
26605 (vminavq_s16): Likewise.
26606 (vminaq_s16): Likewise.
26607 (vmaxavq_s16): Likewise.
26608 (vmaxaq_s16): Likewise.
26609 (vbrsrq_n_u16): Likewise.
26610 (vshlq_n_u16): Likewise.
26611 (vrshrq_n_u16): Likewise.
26612 (vqshlq_n_u16): Likewise.
26613 (vcmpneq_n_s16): Likewise.
26614 (vcmpltq_s16): Likewise.
26615 (vcmpltq_n_s16): Likewise.
26616 (vcmpleq_s16): Likewise.
26617 (vcmpleq_n_s16): Likewise.
26618 (vcmpgtq_s16): Likewise.
26619 (vcmpgtq_n_s16): Likewise.
26620 (vcmpgeq_s16): Likewise.
26621 (vcmpgeq_n_s16): Likewise.
26622 (vcmpeqq_s16): Likewise.
26623 (vcmpeqq_n_s16): Likewise.
26624 (vqshluq_n_s16): Likewise.
26625 (vaddvq_p_s16): Likewise.
26626 (vsubq_s16): Likewise.
26627 (vsubq_n_s16): Likewise.
26628 (vshlq_r_s16): Likewise.
26629 (vrshlq_s16): Likewise.
26630 (vrshlq_n_s16): Likewise.
26631 (vrmulhq_s16): Likewise.
26632 (vrhaddq_s16): Likewise.
26633 (vqsubq_s16): Likewise.
26634 (vqsubq_n_s16): Likewise.
26635 (vqshlq_s16): Likewise.
26636 (vqshlq_r_s16): Likewise.
26637 (vqrshlq_s16): Likewise.
26638 (vqrshlq_n_s16): Likewise.
26639 (vqrdmulhq_s16): Likewise.
26640 (vqrdmulhq_n_s16): Likewise.
26641 (vqdmulhq_s16): Likewise.
26642 (vqdmulhq_n_s16): Likewise.
26643 (vqaddq_s16): Likewise.
26644 (vqaddq_n_s16): Likewise.
26645 (vorrq_s16): Likewise.
26646 (vornq_s16): Likewise.
26647 (vmulq_s16): Likewise.
26648 (vmulq_n_s16): Likewise.
26649 (vmulltq_int_s16): Likewise.
26650 (vmullbq_int_s16): Likewise.
26651 (vmulhq_s16): Likewise.
26652 (vmlsdavxq_s16): Likewise.
26653 (vmlsdavq_s16): Likewise.
26654 (vmladavxq_s16): Likewise.
26655 (vmladavq_s16): Likewise.
26656 (vminvq_s16): Likewise.
26657 (vminq_s16): Likewise.
26658 (vmaxvq_s16): Likewise.
26659 (vmaxq_s16): Likewise.
26660 (vhsubq_s16): Likewise.
26661 (vhsubq_n_s16): Likewise.
26662 (vhcaddq_rot90_s16): Likewise.
26663 (vhcaddq_rot270_s16): Likewise.
26664 (vhaddq_s16): Likewise.
26665 (vhaddq_n_s16): Likewise.
26666 (veorq_s16): Likewise.
26667 (vcaddq_rot90_s16): Likewise.
26668 (vcaddq_rot270_s16): Likewise.
26669 (vbrsrq_n_s16): Likewise.
26670 (vbicq_s16): Likewise.
26671 (vandq_s16): Likewise.
26672 (vaddvaq_s16): Likewise.
26673 (vaddq_n_s16): Likewise.
26674 (vabdq_s16): Likewise.
26675 (vshlq_n_s16): Likewise.
26676 (vrshrq_n_s16): Likewise.
26677 (vqshlq_n_s16): Likewise.
26678 (vsubq_u32): Likewise.
26679 (vsubq_n_u32): Likewise.
26680 (vrmulhq_u32): Likewise.
26681 (vrhaddq_u32): Likewise.
26682 (vqsubq_u32): Likewise.
26683 (vqsubq_n_u32): Likewise.
26684 (vqaddq_u32): Likewise.
26685 (vqaddq_n_u32): Likewise.
26686 (vorrq_u32): Likewise.
26687 (vornq_u32): Likewise.
26688 (vmulq_u32): Likewise.
26689 (vmulq_n_u32): Likewise.
26690 (vmulltq_int_u32): Likewise.
26691 (vmullbq_int_u32): Likewise.
26692 (vmulhq_u32): Likewise.
26693 (vmladavq_u32): Likewise.
26694 (vminvq_u32): Likewise.
26695 (vminq_u32): Likewise.
26696 (vmaxvq_u32): Likewise.
26697 (vmaxq_u32): Likewise.
26698 (vhsubq_u32): Likewise.
26699 (vhsubq_n_u32): Likewise.
26700 (vhaddq_u32): Likewise.
26701 (vhaddq_n_u32): Likewise.
26702 (veorq_u32): Likewise.
26703 (vcmpneq_n_u32): Likewise.
26704 (vcmphiq_u32): Likewise.
26705 (vcmphiq_n_u32): Likewise.
26706 (vcmpeqq_u32): Likewise.
26707 (vcmpeqq_n_u32): Likewise.
26708 (vcmpcsq_u32): Likewise.
26709 (vcmpcsq_n_u32): Likewise.
26710 (vcaddq_rot90_u32): Likewise.
26711 (vcaddq_rot270_u32): Likewise.
26712 (vbicq_u32): Likewise.
26713 (vandq_u32): Likewise.
26714 (vaddvq_p_u32): Likewise.
26715 (vaddvaq_u32): Likewise.
26716 (vaddq_n_u32): Likewise.
26717 (vabdq_u32): Likewise.
26718 (vshlq_r_u32): Likewise.
26719 (vrshlq_u32): Likewise.
26720 (vrshlq_n_u32): Likewise.
26721 (vqshlq_u32): Likewise.
26722 (vqshlq_r_u32): Likewise.
26723 (vqrshlq_u32): Likewise.
26724 (vqrshlq_n_u32): Likewise.
26725 (vminavq_s32): Likewise.
26726 (vminaq_s32): Likewise.
26727 (vmaxavq_s32): Likewise.
26728 (vmaxaq_s32): Likewise.
26729 (vbrsrq_n_u32): Likewise.
26730 (vshlq_n_u32): Likewise.
26731 (vrshrq_n_u32): Likewise.
26732 (vqshlq_n_u32): Likewise.
26733 (vcmpneq_n_s32): Likewise.
26734 (vcmpltq_s32): Likewise.
26735 (vcmpltq_n_s32): Likewise.
26736 (vcmpleq_s32): Likewise.
26737 (vcmpleq_n_s32): Likewise.
26738 (vcmpgtq_s32): Likewise.
26739 (vcmpgtq_n_s32): Likewise.
26740 (vcmpgeq_s32): Likewise.
26741 (vcmpgeq_n_s32): Likewise.
26742 (vcmpeqq_s32): Likewise.
26743 (vcmpeqq_n_s32): Likewise.
26744 (vqshluq_n_s32): Likewise.
26745 (vaddvq_p_s32): Likewise.
26746 (vsubq_s32): Likewise.
26747 (vsubq_n_s32): Likewise.
26748 (vshlq_r_s32): Likewise.
26749 (vrshlq_s32): Likewise.
26750 (vrshlq_n_s32): Likewise.
26751 (vrmulhq_s32): Likewise.
26752 (vrhaddq_s32): Likewise.
26753 (vqsubq_s32): Likewise.
26754 (vqsubq_n_s32): Likewise.
26755 (vqshlq_s32): Likewise.
26756 (vqshlq_r_s32): Likewise.
26757 (vqrshlq_s32): Likewise.
26758 (vqrshlq_n_s32): Likewise.
26759 (vqrdmulhq_s32): Likewise.
26760 (vqrdmulhq_n_s32): Likewise.
26761 (vqdmulhq_s32): Likewise.
26762 (vqdmulhq_n_s32): Likewise.
26763 (vqaddq_s32): Likewise.
26764 (vqaddq_n_s32): Likewise.
26765 (vorrq_s32): Likewise.
26766 (vornq_s32): Likewise.
26767 (vmulq_s32): Likewise.
26768 (vmulq_n_s32): Likewise.
26769 (vmulltq_int_s32): Likewise.
26770 (vmullbq_int_s32): Likewise.
26771 (vmulhq_s32): Likewise.
26772 (vmlsdavxq_s32): Likewise.
26773 (vmlsdavq_s32): Likewise.
26774 (vmladavxq_s32): Likewise.
26775 (vmladavq_s32): Likewise.
26776 (vminvq_s32): Likewise.
26777 (vminq_s32): Likewise.
26778 (vmaxvq_s32): Likewise.
26779 (vmaxq_s32): Likewise.
26780 (vhsubq_s32): Likewise.
26781 (vhsubq_n_s32): Likewise.
26782 (vhcaddq_rot90_s32): Likewise.
26783 (vhcaddq_rot270_s32): Likewise.
26784 (vhaddq_s32): Likewise.
26785 (vhaddq_n_s32): Likewise.
26786 (veorq_s32): Likewise.
26787 (vcaddq_rot90_s32): Likewise.
26788 (vcaddq_rot270_s32): Likewise.
26789 (vbrsrq_n_s32): Likewise.
26790 (vbicq_s32): Likewise.
26791 (vandq_s32): Likewise.
26792 (vaddvaq_s32): Likewise.
26793 (vaddq_n_s32): Likewise.
26794 (vabdq_s32): Likewise.
26795 (vshlq_n_s32): Likewise.
26796 (vrshrq_n_s32): Likewise.
26797 (vqshlq_n_s32): Likewise.
26798 (__arm_vsubq_u8): Define intrinsic.
26799 (__arm_vsubq_n_u8): Likewise.
26800 (__arm_vrmulhq_u8): Likewise.
26801 (__arm_vrhaddq_u8): Likewise.
26802 (__arm_vqsubq_u8): Likewise.
26803 (__arm_vqsubq_n_u8): Likewise.
26804 (__arm_vqaddq_u8): Likewise.
26805 (__arm_vqaddq_n_u8): Likewise.
26806 (__arm_vorrq_u8): Likewise.
26807 (__arm_vornq_u8): Likewise.
26808 (__arm_vmulq_u8): Likewise.
26809 (__arm_vmulq_n_u8): Likewise.
26810 (__arm_vmulltq_int_u8): Likewise.
26811 (__arm_vmullbq_int_u8): Likewise.
26812 (__arm_vmulhq_u8): Likewise.
26813 (__arm_vmladavq_u8): Likewise.
26814 (__arm_vminvq_u8): Likewise.
26815 (__arm_vminq_u8): Likewise.
26816 (__arm_vmaxvq_u8): Likewise.
26817 (__arm_vmaxq_u8): Likewise.
26818 (__arm_vhsubq_u8): Likewise.
26819 (__arm_vhsubq_n_u8): Likewise.
26820 (__arm_vhaddq_u8): Likewise.
26821 (__arm_vhaddq_n_u8): Likewise.
26822 (__arm_veorq_u8): Likewise.
26823 (__arm_vcmpneq_n_u8): Likewise.
26824 (__arm_vcmphiq_u8): Likewise.
26825 (__arm_vcmphiq_n_u8): Likewise.
26826 (__arm_vcmpeqq_u8): Likewise.
26827 (__arm_vcmpeqq_n_u8): Likewise.
26828 (__arm_vcmpcsq_u8): Likewise.
26829 (__arm_vcmpcsq_n_u8): Likewise.
26830 (__arm_vcaddq_rot90_u8): Likewise.
26831 (__arm_vcaddq_rot270_u8): Likewise.
26832 (__arm_vbicq_u8): Likewise.
26833 (__arm_vandq_u8): Likewise.
26834 (__arm_vaddvq_p_u8): Likewise.
26835 (__arm_vaddvaq_u8): Likewise.
26836 (__arm_vaddq_n_u8): Likewise.
26837 (__arm_vabdq_u8): Likewise.
26838 (__arm_vshlq_r_u8): Likewise.
26839 (__arm_vrshlq_u8): Likewise.
26840 (__arm_vrshlq_n_u8): Likewise.
26841 (__arm_vqshlq_u8): Likewise.
26842 (__arm_vqshlq_r_u8): Likewise.
26843 (__arm_vqrshlq_u8): Likewise.
26844 (__arm_vqrshlq_n_u8): Likewise.
26845 (__arm_vminavq_s8): Likewise.
26846 (__arm_vminaq_s8): Likewise.
26847 (__arm_vmaxavq_s8): Likewise.
26848 (__arm_vmaxaq_s8): Likewise.
26849 (__arm_vbrsrq_n_u8): Likewise.
26850 (__arm_vshlq_n_u8): Likewise.
26851 (__arm_vrshrq_n_u8): Likewise.
26852 (__arm_vqshlq_n_u8): Likewise.
26853 (__arm_vcmpneq_n_s8): Likewise.
26854 (__arm_vcmpltq_s8): Likewise.
26855 (__arm_vcmpltq_n_s8): Likewise.
26856 (__arm_vcmpleq_s8): Likewise.
26857 (__arm_vcmpleq_n_s8): Likewise.
26858 (__arm_vcmpgtq_s8): Likewise.
26859 (__arm_vcmpgtq_n_s8): Likewise.
26860 (__arm_vcmpgeq_s8): Likewise.
26861 (__arm_vcmpgeq_n_s8): Likewise.
26862 (__arm_vcmpeqq_s8): Likewise.
26863 (__arm_vcmpeqq_n_s8): Likewise.
26864 (__arm_vqshluq_n_s8): Likewise.
26865 (__arm_vaddvq_p_s8): Likewise.
26866 (__arm_vsubq_s8): Likewise.
26867 (__arm_vsubq_n_s8): Likewise.
26868 (__arm_vshlq_r_s8): Likewise.
26869 (__arm_vrshlq_s8): Likewise.
26870 (__arm_vrshlq_n_s8): Likewise.
26871 (__arm_vrmulhq_s8): Likewise.
26872 (__arm_vrhaddq_s8): Likewise.
26873 (__arm_vqsubq_s8): Likewise.
26874 (__arm_vqsubq_n_s8): Likewise.
26875 (__arm_vqshlq_s8): Likewise.
26876 (__arm_vqshlq_r_s8): Likewise.
26877 (__arm_vqrshlq_s8): Likewise.
26878 (__arm_vqrshlq_n_s8): Likewise.
26879 (__arm_vqrdmulhq_s8): Likewise.
26880 (__arm_vqrdmulhq_n_s8): Likewise.
26881 (__arm_vqdmulhq_s8): Likewise.
26882 (__arm_vqdmulhq_n_s8): Likewise.
26883 (__arm_vqaddq_s8): Likewise.
26884 (__arm_vqaddq_n_s8): Likewise.
26885 (__arm_vorrq_s8): Likewise.
26886 (__arm_vornq_s8): Likewise.
26887 (__arm_vmulq_s8): Likewise.
26888 (__arm_vmulq_n_s8): Likewise.
26889 (__arm_vmulltq_int_s8): Likewise.
26890 (__arm_vmullbq_int_s8): Likewise.
26891 (__arm_vmulhq_s8): Likewise.
26892 (__arm_vmlsdavxq_s8): Likewise.
26893 (__arm_vmlsdavq_s8): Likewise.
26894 (__arm_vmladavxq_s8): Likewise.
26895 (__arm_vmladavq_s8): Likewise.
26896 (__arm_vminvq_s8): Likewise.
26897 (__arm_vminq_s8): Likewise.
26898 (__arm_vmaxvq_s8): Likewise.
26899 (__arm_vmaxq_s8): Likewise.
26900 (__arm_vhsubq_s8): Likewise.
26901 (__arm_vhsubq_n_s8): Likewise.
26902 (__arm_vhcaddq_rot90_s8): Likewise.
26903 (__arm_vhcaddq_rot270_s8): Likewise.
26904 (__arm_vhaddq_s8): Likewise.
26905 (__arm_vhaddq_n_s8): Likewise.
26906 (__arm_veorq_s8): Likewise.
26907 (__arm_vcaddq_rot90_s8): Likewise.
26908 (__arm_vcaddq_rot270_s8): Likewise.
26909 (__arm_vbrsrq_n_s8): Likewise.
26910 (__arm_vbicq_s8): Likewise.
26911 (__arm_vandq_s8): Likewise.
26912 (__arm_vaddvaq_s8): Likewise.
26913 (__arm_vaddq_n_s8): Likewise.
26914 (__arm_vabdq_s8): Likewise.
26915 (__arm_vshlq_n_s8): Likewise.
26916 (__arm_vrshrq_n_s8): Likewise.
26917 (__arm_vqshlq_n_s8): Likewise.
26918 (__arm_vsubq_u16): Likewise.
26919 (__arm_vsubq_n_u16): Likewise.
26920 (__arm_vrmulhq_u16): Likewise.
26921 (__arm_vrhaddq_u16): Likewise.
26922 (__arm_vqsubq_u16): Likewise.
26923 (__arm_vqsubq_n_u16): Likewise.
26924 (__arm_vqaddq_u16): Likewise.
26925 (__arm_vqaddq_n_u16): Likewise.
26926 (__arm_vorrq_u16): Likewise.
26927 (__arm_vornq_u16): Likewise.
26928 (__arm_vmulq_u16): Likewise.
26929 (__arm_vmulq_n_u16): Likewise.
26930 (__arm_vmulltq_int_u16): Likewise.
26931 (__arm_vmullbq_int_u16): Likewise.
26932 (__arm_vmulhq_u16): Likewise.
26933 (__arm_vmladavq_u16): Likewise.
26934 (__arm_vminvq_u16): Likewise.
26935 (__arm_vminq_u16): Likewise.
26936 (__arm_vmaxvq_u16): Likewise.
26937 (__arm_vmaxq_u16): Likewise.
26938 (__arm_vhsubq_u16): Likewise.
26939 (__arm_vhsubq_n_u16): Likewise.
26940 (__arm_vhaddq_u16): Likewise.
26941 (__arm_vhaddq_n_u16): Likewise.
26942 (__arm_veorq_u16): Likewise.
26943 (__arm_vcmpneq_n_u16): Likewise.
26944 (__arm_vcmphiq_u16): Likewise.
26945 (__arm_vcmphiq_n_u16): Likewise.
26946 (__arm_vcmpeqq_u16): Likewise.
26947 (__arm_vcmpeqq_n_u16): Likewise.
26948 (__arm_vcmpcsq_u16): Likewise.
26949 (__arm_vcmpcsq_n_u16): Likewise.
26950 (__arm_vcaddq_rot90_u16): Likewise.
26951 (__arm_vcaddq_rot270_u16): Likewise.
26952 (__arm_vbicq_u16): Likewise.
26953 (__arm_vandq_u16): Likewise.
26954 (__arm_vaddvq_p_u16): Likewise.
26955 (__arm_vaddvaq_u16): Likewise.
26956 (__arm_vaddq_n_u16): Likewise.
26957 (__arm_vabdq_u16): Likewise.
26958 (__arm_vshlq_r_u16): Likewise.
26959 (__arm_vrshlq_u16): Likewise.
26960 (__arm_vrshlq_n_u16): Likewise.
26961 (__arm_vqshlq_u16): Likewise.
26962 (__arm_vqshlq_r_u16): Likewise.
26963 (__arm_vqrshlq_u16): Likewise.
26964 (__arm_vqrshlq_n_u16): Likewise.
26965 (__arm_vminavq_s16): Likewise.
26966 (__arm_vminaq_s16): Likewise.
26967 (__arm_vmaxavq_s16): Likewise.
26968 (__arm_vmaxaq_s16): Likewise.
26969 (__arm_vbrsrq_n_u16): Likewise.
26970 (__arm_vshlq_n_u16): Likewise.
26971 (__arm_vrshrq_n_u16): Likewise.
26972 (__arm_vqshlq_n_u16): Likewise.
26973 (__arm_vcmpneq_n_s16): Likewise.
26974 (__arm_vcmpltq_s16): Likewise.
26975 (__arm_vcmpltq_n_s16): Likewise.
26976 (__arm_vcmpleq_s16): Likewise.
26977 (__arm_vcmpleq_n_s16): Likewise.
26978 (__arm_vcmpgtq_s16): Likewise.
26979 (__arm_vcmpgtq_n_s16): Likewise.
26980 (__arm_vcmpgeq_s16): Likewise.
26981 (__arm_vcmpgeq_n_s16): Likewise.
26982 (__arm_vcmpeqq_s16): Likewise.
26983 (__arm_vcmpeqq_n_s16): Likewise.
26984 (__arm_vqshluq_n_s16): Likewise.
26985 (__arm_vaddvq_p_s16): Likewise.
26986 (__arm_vsubq_s16): Likewise.
26987 (__arm_vsubq_n_s16): Likewise.
26988 (__arm_vshlq_r_s16): Likewise.
26989 (__arm_vrshlq_s16): Likewise.
26990 (__arm_vrshlq_n_s16): Likewise.
26991 (__arm_vrmulhq_s16): Likewise.
26992 (__arm_vrhaddq_s16): Likewise.
26993 (__arm_vqsubq_s16): Likewise.
26994 (__arm_vqsubq_n_s16): Likewise.
26995 (__arm_vqshlq_s16): Likewise.
26996 (__arm_vqshlq_r_s16): Likewise.
26997 (__arm_vqrshlq_s16): Likewise.
26998 (__arm_vqrshlq_n_s16): Likewise.
26999 (__arm_vqrdmulhq_s16): Likewise.
27000 (__arm_vqrdmulhq_n_s16): Likewise.
27001 (__arm_vqdmulhq_s16): Likewise.
27002 (__arm_vqdmulhq_n_s16): Likewise.
27003 (__arm_vqaddq_s16): Likewise.
27004 (__arm_vqaddq_n_s16): Likewise.
27005 (__arm_vorrq_s16): Likewise.
27006 (__arm_vornq_s16): Likewise.
27007 (__arm_vmulq_s16): Likewise.
27008 (__arm_vmulq_n_s16): Likewise.
27009 (__arm_vmulltq_int_s16): Likewise.
27010 (__arm_vmullbq_int_s16): Likewise.
27011 (__arm_vmulhq_s16): Likewise.
27012 (__arm_vmlsdavxq_s16): Likewise.
27013 (__arm_vmlsdavq_s16): Likewise.
27014 (__arm_vmladavxq_s16): Likewise.
27015 (__arm_vmladavq_s16): Likewise.
27016 (__arm_vminvq_s16): Likewise.
27017 (__arm_vminq_s16): Likewise.
27018 (__arm_vmaxvq_s16): Likewise.
27019 (__arm_vmaxq_s16): Likewise.
27020 (__arm_vhsubq_s16): Likewise.
27021 (__arm_vhsubq_n_s16): Likewise.
27022 (__arm_vhcaddq_rot90_s16): Likewise.
27023 (__arm_vhcaddq_rot270_s16): Likewise.
27024 (__arm_vhaddq_s16): Likewise.
27025 (__arm_vhaddq_n_s16): Likewise.
27026 (__arm_veorq_s16): Likewise.
27027 (__arm_vcaddq_rot90_s16): Likewise.
27028 (__arm_vcaddq_rot270_s16): Likewise.
27029 (__arm_vbrsrq_n_s16): Likewise.
27030 (__arm_vbicq_s16): Likewise.
27031 (__arm_vandq_s16): Likewise.
27032 (__arm_vaddvaq_s16): Likewise.
27033 (__arm_vaddq_n_s16): Likewise.
27034 (__arm_vabdq_s16): Likewise.
27035 (__arm_vshlq_n_s16): Likewise.
27036 (__arm_vrshrq_n_s16): Likewise.
27037 (__arm_vqshlq_n_s16): Likewise.
27038 (__arm_vsubq_u32): Likewise.
27039 (__arm_vsubq_n_u32): Likewise.
27040 (__arm_vrmulhq_u32): Likewise.
27041 (__arm_vrhaddq_u32): Likewise.
27042 (__arm_vqsubq_u32): Likewise.
27043 (__arm_vqsubq_n_u32): Likewise.
27044 (__arm_vqaddq_u32): Likewise.
27045 (__arm_vqaddq_n_u32): Likewise.
27046 (__arm_vorrq_u32): Likewise.
27047 (__arm_vornq_u32): Likewise.
27048 (__arm_vmulq_u32): Likewise.
27049 (__arm_vmulq_n_u32): Likewise.
27050 (__arm_vmulltq_int_u32): Likewise.
27051 (__arm_vmullbq_int_u32): Likewise.
27052 (__arm_vmulhq_u32): Likewise.
27053 (__arm_vmladavq_u32): Likewise.
27054 (__arm_vminvq_u32): Likewise.
27055 (__arm_vminq_u32): Likewise.
27056 (__arm_vmaxvq_u32): Likewise.
27057 (__arm_vmaxq_u32): Likewise.
27058 (__arm_vhsubq_u32): Likewise.
27059 (__arm_vhsubq_n_u32): Likewise.
27060 (__arm_vhaddq_u32): Likewise.
27061 (__arm_vhaddq_n_u32): Likewise.
27062 (__arm_veorq_u32): Likewise.
27063 (__arm_vcmpneq_n_u32): Likewise.
27064 (__arm_vcmphiq_u32): Likewise.
27065 (__arm_vcmphiq_n_u32): Likewise.
27066 (__arm_vcmpeqq_u32): Likewise.
27067 (__arm_vcmpeqq_n_u32): Likewise.
27068 (__arm_vcmpcsq_u32): Likewise.
27069 (__arm_vcmpcsq_n_u32): Likewise.
27070 (__arm_vcaddq_rot90_u32): Likewise.
27071 (__arm_vcaddq_rot270_u32): Likewise.
27072 (__arm_vbicq_u32): Likewise.
27073 (__arm_vandq_u32): Likewise.
27074 (__arm_vaddvq_p_u32): Likewise.
27075 (__arm_vaddvaq_u32): Likewise.
27076 (__arm_vaddq_n_u32): Likewise.
27077 (__arm_vabdq_u32): Likewise.
27078 (__arm_vshlq_r_u32): Likewise.
27079 (__arm_vrshlq_u32): Likewise.
27080 (__arm_vrshlq_n_u32): Likewise.
27081 (__arm_vqshlq_u32): Likewise.
27082 (__arm_vqshlq_r_u32): Likewise.
27083 (__arm_vqrshlq_u32): Likewise.
27084 (__arm_vqrshlq_n_u32): Likewise.
27085 (__arm_vminavq_s32): Likewise.
27086 (__arm_vminaq_s32): Likewise.
27087 (__arm_vmaxavq_s32): Likewise.
27088 (__arm_vmaxaq_s32): Likewise.
27089 (__arm_vbrsrq_n_u32): Likewise.
27090 (__arm_vshlq_n_u32): Likewise.
27091 (__arm_vrshrq_n_u32): Likewise.
27092 (__arm_vqshlq_n_u32): Likewise.
27093 (__arm_vcmpneq_n_s32): Likewise.
27094 (__arm_vcmpltq_s32): Likewise.
27095 (__arm_vcmpltq_n_s32): Likewise.
27096 (__arm_vcmpleq_s32): Likewise.
27097 (__arm_vcmpleq_n_s32): Likewise.
27098 (__arm_vcmpgtq_s32): Likewise.
27099 (__arm_vcmpgtq_n_s32): Likewise.
27100 (__arm_vcmpgeq_s32): Likewise.
27101 (__arm_vcmpgeq_n_s32): Likewise.
27102 (__arm_vcmpeqq_s32): Likewise.
27103 (__arm_vcmpeqq_n_s32): Likewise.
27104 (__arm_vqshluq_n_s32): Likewise.
27105 (__arm_vaddvq_p_s32): Likewise.
27106 (__arm_vsubq_s32): Likewise.
27107 (__arm_vsubq_n_s32): Likewise.
27108 (__arm_vshlq_r_s32): Likewise.
27109 (__arm_vrshlq_s32): Likewise.
27110 (__arm_vrshlq_n_s32): Likewise.
27111 (__arm_vrmulhq_s32): Likewise.
27112 (__arm_vrhaddq_s32): Likewise.
27113 (__arm_vqsubq_s32): Likewise.
27114 (__arm_vqsubq_n_s32): Likewise.
27115 (__arm_vqshlq_s32): Likewise.
27116 (__arm_vqshlq_r_s32): Likewise.
27117 (__arm_vqrshlq_s32): Likewise.
27118 (__arm_vqrshlq_n_s32): Likewise.
27119 (__arm_vqrdmulhq_s32): Likewise.
27120 (__arm_vqrdmulhq_n_s32): Likewise.
27121 (__arm_vqdmulhq_s32): Likewise.
27122 (__arm_vqdmulhq_n_s32): Likewise.
27123 (__arm_vqaddq_s32): Likewise.
27124 (__arm_vqaddq_n_s32): Likewise.
27125 (__arm_vorrq_s32): Likewise.
27126 (__arm_vornq_s32): Likewise.
27127 (__arm_vmulq_s32): Likewise.
27128 (__arm_vmulq_n_s32): Likewise.
27129 (__arm_vmulltq_int_s32): Likewise.
27130 (__arm_vmullbq_int_s32): Likewise.
27131 (__arm_vmulhq_s32): Likewise.
27132 (__arm_vmlsdavxq_s32): Likewise.
27133 (__arm_vmlsdavq_s32): Likewise.
27134 (__arm_vmladavxq_s32): Likewise.
27135 (__arm_vmladavq_s32): Likewise.
27136 (__arm_vminvq_s32): Likewise.
27137 (__arm_vminq_s32): Likewise.
27138 (__arm_vmaxvq_s32): Likewise.
27139 (__arm_vmaxq_s32): Likewise.
27140 (__arm_vhsubq_s32): Likewise.
27141 (__arm_vhsubq_n_s32): Likewise.
27142 (__arm_vhcaddq_rot90_s32): Likewise.
27143 (__arm_vhcaddq_rot270_s32): Likewise.
27144 (__arm_vhaddq_s32): Likewise.
27145 (__arm_vhaddq_n_s32): Likewise.
27146 (__arm_veorq_s32): Likewise.
27147 (__arm_vcaddq_rot90_s32): Likewise.
27148 (__arm_vcaddq_rot270_s32): Likewise.
27149 (__arm_vbrsrq_n_s32): Likewise.
27150 (__arm_vbicq_s32): Likewise.
27151 (__arm_vandq_s32): Likewise.
27152 (__arm_vaddvaq_s32): Likewise.
27153 (__arm_vaddq_n_s32): Likewise.
27154 (__arm_vabdq_s32): Likewise.
27155 (__arm_vshlq_n_s32): Likewise.
27156 (__arm_vrshrq_n_s32): Likewise.
27157 (__arm_vqshlq_n_s32): Likewise.
27158 (vsubq): Define polymorphic variant.
27159 (vsubq_n): Likewise.
27160 (vshlq_r): Likewise.
27161 (vrshlq_n): Likewise.
27162 (vrshlq): Likewise.
27163 (vrmulhq): Likewise.
27164 (vrhaddq): Likewise.
27165 (vqsubq_n): Likewise.
27166 (vqsubq): Likewise.
27167 (vqshlq): Likewise.
27168 (vqshlq_r): Likewise.
27169 (vqshluq): Likewise.
27170 (vrshrq_n): Likewise.
27171 (vshlq_n): Likewise.
27172 (vqshluq_n): Likewise.
27173 (vqshlq_n): Likewise.
27174 (vqrshlq_n): Likewise.
27175 (vqrshlq): Likewise.
27176 (vqrdmulhq_n): Likewise.
27177 (vqrdmulhq): Likewise.
27178 (vqdmulhq_n): Likewise.
27179 (vqdmulhq): Likewise.
27180 (vqaddq_n): Likewise.
27181 (vqaddq): Likewise.
27182 (vorrq_n): Likewise.
27185 (vmulq_n): Likewise.
27187 (vmulltq_int): Likewise.
27188 (vmullbq_int): Likewise.
27189 (vmulhq): Likewise.
27191 (vminaq): Likewise.
27193 (vmaxaq): Likewise.
27194 (vhsubq_n): Likewise.
27195 (vhsubq): Likewise.
27196 (vhcaddq_rot90): Likewise.
27197 (vhcaddq_rot270): Likewise.
27198 (vhaddq_n): Likewise.
27199 (vhaddq): Likewise.
27201 (vcaddq_rot90): Likewise.
27202 (vcaddq_rot270): Likewise.
27203 (vbrsrq_n): Likewise.
27204 (vbicq_n): Likewise.
27207 (vaddq_n): Likewise.
27210 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
27211 (BINOP_NONE_NONE_NONE): Likewise.
27212 (BINOP_NONE_NONE_UNONE): Likewise.
27213 (BINOP_UNONE_NONE_IMM): Likewise.
27214 (BINOP_UNONE_NONE_NONE): Likewise.
27215 (BINOP_UNONE_UNONE_IMM): Likewise.
27216 (BINOP_UNONE_UNONE_NONE): Likewise.
27217 (BINOP_UNONE_UNONE_UNONE): Likewise.
27218 * config/arm/constraints.md (Ra): Define constraint to check constant is
27219 in the range of 0 to 7.
27220 (Rg): Define constriant to check the constant is one among 1, 2, 4
27222 * config/arm/mve.md (mve_vabdq_<supf>): Define RTL pattern.
27223 (mve_vaddq_n_<supf>): Likewise.
27224 (mve_vaddvaq_<supf>): Likewise.
27225 (mve_vaddvq_p_<supf>): Likewise.
27226 (mve_vandq_<supf>): Likewise.
27227 (mve_vbicq_<supf>): Likewise.
27228 (mve_vbrsrq_n_<supf>): Likewise.
27229 (mve_vcaddq_rot270_<supf>): Likewise.
27230 (mve_vcaddq_rot90_<supf>): Likewise.
27231 (mve_vcmpcsq_n_u): Likewise.
27232 (mve_vcmpcsq_u): Likewise.
27233 (mve_vcmpeqq_n_<supf>): Likewise.
27234 (mve_vcmpeqq_<supf>): Likewise.
27235 (mve_vcmpgeq_n_s): Likewise.
27236 (mve_vcmpgeq_s): Likewise.
27237 (mve_vcmpgtq_n_s): Likewise.
27238 (mve_vcmpgtq_s): Likewise.
27239 (mve_vcmphiq_n_u): Likewise.
27240 (mve_vcmphiq_u): Likewise.
27241 (mve_vcmpleq_n_s): Likewise.
27242 (mve_vcmpleq_s): Likewise.
27243 (mve_vcmpltq_n_s): Likewise.
27244 (mve_vcmpltq_s): Likewise.
27245 (mve_vcmpneq_n_<supf>): Likewise.
27246 (mve_vddupq_n_u): Likewise.
27247 (mve_veorq_<supf>): Likewise.
27248 (mve_vhaddq_n_<supf>): Likewise.
27249 (mve_vhaddq_<supf>): Likewise.
27250 (mve_vhcaddq_rot270_s): Likewise.
27251 (mve_vhcaddq_rot90_s): Likewise.
27252 (mve_vhsubq_n_<supf>): Likewise.
27253 (mve_vhsubq_<supf>): Likewise.
27254 (mve_vidupq_n_u): Likewise.
27255 (mve_vmaxaq_s): Likewise.
27256 (mve_vmaxavq_s): Likewise.
27257 (mve_vmaxq_<supf>): Likewise.
27258 (mve_vmaxvq_<supf>): Likewise.
27259 (mve_vminaq_s): Likewise.
27260 (mve_vminavq_s): Likewise.
27261 (mve_vminq_<supf>): Likewise.
27262 (mve_vminvq_<supf>): Likewise.
27263 (mve_vmladavq_<supf>): Likewise.
27264 (mve_vmladavxq_s): Likewise.
27265 (mve_vmlsdavq_s): Likewise.
27266 (mve_vmlsdavxq_s): Likewise.
27267 (mve_vmulhq_<supf>): Likewise.
27268 (mve_vmullbq_int_<supf>): Likewise.
27269 (mve_vmulltq_int_<supf>): Likewise.
27270 (mve_vmulq_n_<supf>): Likewise.
27271 (mve_vmulq_<supf>): Likewise.
27272 (mve_vornq_<supf>): Likewise.
27273 (mve_vorrq_<supf>): Likewise.
27274 (mve_vqaddq_n_<supf>): Likewise.
27275 (mve_vqaddq_<supf>): Likewise.
27276 (mve_vqdmulhq_n_s): Likewise.
27277 (mve_vqdmulhq_s): Likewise.
27278 (mve_vqrdmulhq_n_s): Likewise.
27279 (mve_vqrdmulhq_s): Likewise.
27280 (mve_vqrshlq_n_<supf>): Likewise.
27281 (mve_vqrshlq_<supf>): Likewise.
27282 (mve_vqshlq_n_<supf>): Likewise.
27283 (mve_vqshlq_r_<supf>): Likewise.
27284 (mve_vqshlq_<supf>): Likewise.
27285 (mve_vqshluq_n_s): Likewise.
27286 (mve_vqsubq_n_<supf>): Likewise.
27287 (mve_vqsubq_<supf>): Likewise.
27288 (mve_vrhaddq_<supf>): Likewise.
27289 (mve_vrmulhq_<supf>): Likewise.
27290 (mve_vrshlq_n_<supf>): Likewise.
27291 (mve_vrshlq_<supf>): Likewise.
27292 (mve_vrshrq_n_<supf>): Likewise.
27293 (mve_vshlq_n_<supf>): Likewise.
27294 (mve_vshlq_r_<supf>): Likewise.
27295 (mve_vsubq_n_<supf>): Likewise.
27296 (mve_vsubq_<supf>): Likewise.
27297 * config/arm/predicates.md (mve_imm_7): Define predicate to check
27298 the matching constraint Ra.
27299 (mve_imm_selective_upto_8): Define predicate to check the matching
27302 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27303 Mihail Ionescu <mihail.ionescu@arm.com>
27304 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27306 * config/arm/arm-builtins.c (BINOP_NONE_NONE_UNONE_QUALIFIERS): Define
27307 qualifier for binary operands.
27308 (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
27309 (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
27310 * config/arm/arm_mve.h (vaddlvq_p_s32): Define macro.
27311 (vaddlvq_p_u32): Likewise.
27312 (vcmpneq_s8): Likewise.
27313 (vcmpneq_s16): Likewise.
27314 (vcmpneq_s32): Likewise.
27315 (vcmpneq_u8): Likewise.
27316 (vcmpneq_u16): Likewise.
27317 (vcmpneq_u32): Likewise.
27318 (vshlq_s8): Likewise.
27319 (vshlq_s16): Likewise.
27320 (vshlq_s32): Likewise.
27321 (vshlq_u8): Likewise.
27322 (vshlq_u16): Likewise.
27323 (vshlq_u32): Likewise.
27324 (__arm_vaddlvq_p_s32): Define intrinsic.
27325 (__arm_vaddlvq_p_u32): Likewise.
27326 (__arm_vcmpneq_s8): Likewise.
27327 (__arm_vcmpneq_s16): Likewise.
27328 (__arm_vcmpneq_s32): Likewise.
27329 (__arm_vcmpneq_u8): Likewise.
27330 (__arm_vcmpneq_u16): Likewise.
27331 (__arm_vcmpneq_u32): Likewise.
27332 (__arm_vshlq_s8): Likewise.
27333 (__arm_vshlq_s16): Likewise.
27334 (__arm_vshlq_s32): Likewise.
27335 (__arm_vshlq_u8): Likewise.
27336 (__arm_vshlq_u16): Likewise.
27337 (__arm_vshlq_u32): Likewise.
27338 (vaddlvq_p): Define polymorphic variant.
27339 (vcmpneq): Likewise.
27341 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_UNONE_QUALIFIERS):
27343 (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
27344 (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
27345 * config/arm/mve.md (mve_vaddlvq_p_<supf>v4si): Define RTL pattern.
27346 (mve_vcmpneq_<supf><mode>): Likewise.
27347 (mve_vshlq_<supf><mode>): Likewise.
27349 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27350 Mihail Ionescu <mihail.ionescu@arm.com>
27351 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27353 * config/arm/arm-builtins.c (BINOP_UNONE_UNONE_IMM_QUALIFIERS): Define
27354 qualifier for binary operands.
27355 (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
27356 (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
27357 * config/arm/arm_mve.h (vcvtq_n_s16_f16): Define macro.
27358 (vcvtq_n_s32_f32): Likewise.
27359 (vcvtq_n_u16_f16): Likewise.
27360 (vcvtq_n_u32_f32): Likewise.
27361 (vcreateq_u8): Likewise.
27362 (vcreateq_u16): Likewise.
27363 (vcreateq_u32): Likewise.
27364 (vcreateq_u64): Likewise.
27365 (vcreateq_s8): Likewise.
27366 (vcreateq_s16): Likewise.
27367 (vcreateq_s32): Likewise.
27368 (vcreateq_s64): Likewise.
27369 (vshrq_n_s8): Likewise.
27370 (vshrq_n_s16): Likewise.
27371 (vshrq_n_s32): Likewise.
27372 (vshrq_n_u8): Likewise.
27373 (vshrq_n_u16): Likewise.
27374 (vshrq_n_u32): Likewise.
27375 (__arm_vcreateq_u8): Define intrinsic.
27376 (__arm_vcreateq_u16): Likewise.
27377 (__arm_vcreateq_u32): Likewise.
27378 (__arm_vcreateq_u64): Likewise.
27379 (__arm_vcreateq_s8): Likewise.
27380 (__arm_vcreateq_s16): Likewise.
27381 (__arm_vcreateq_s32): Likewise.
27382 (__arm_vcreateq_s64): Likewise.
27383 (__arm_vshrq_n_s8): Likewise.
27384 (__arm_vshrq_n_s16): Likewise.
27385 (__arm_vshrq_n_s32): Likewise.
27386 (__arm_vshrq_n_u8): Likewise.
27387 (__arm_vshrq_n_u16): Likewise.
27388 (__arm_vshrq_n_u32): Likewise.
27389 (__arm_vcvtq_n_s16_f16): Likewise.
27390 (__arm_vcvtq_n_s32_f32): Likewise.
27391 (__arm_vcvtq_n_u16_f16): Likewise.
27392 (__arm_vcvtq_n_u32_f32): Likewise.
27393 (vshrq_n): Define polymorphic variant.
27394 * config/arm/arm_mve_builtins.def (BINOP_UNONE_UNONE_IMM_QUALIFIERS):
27396 (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
27397 (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
27398 * config/arm/constraints.md (Rb): Define constraint to check constant is
27399 in the range of 1 to 8.
27400 (Rf): Define constraint to check constant is in the range of 1 to 32.
27401 * config/arm/mve.md (mve_vcreateq_<supf><mode>): Define RTL pattern.
27402 (mve_vshrq_n_<supf><mode>): Likewise.
27403 (mve_vcvtq_n_from_f_<supf><mode>): Likewise.
27404 * config/arm/predicates.md (mve_imm_8): Define predicate to check
27405 the matching constraint Rb.
27406 (mve_imm_32): Define predicate to check the matching constraint Rf.
27408 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27409 Mihail Ionescu <mihail.ionescu@arm.com>
27410 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27412 * config/arm/arm-builtins.c (BINOP_NONE_NONE_NONE_QUALIFIERS): Define
27413 qualifier for binary operands.
27414 (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
27415 (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
27416 (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
27417 * config/arm/arm_mve.h (vsubq_n_f16): Define macro.
27418 (vsubq_n_f32): Likewise.
27419 (vbrsrq_n_f16): Likewise.
27420 (vbrsrq_n_f32): Likewise.
27421 (vcvtq_n_f16_s16): Likewise.
27422 (vcvtq_n_f32_s32): Likewise.
27423 (vcvtq_n_f16_u16): Likewise.
27424 (vcvtq_n_f32_u32): Likewise.
27425 (vcreateq_f16): Likewise.
27426 (vcreateq_f32): Likewise.
27427 (__arm_vsubq_n_f16): Define intrinsic.
27428 (__arm_vsubq_n_f32): Likewise.
27429 (__arm_vbrsrq_n_f16): Likewise.
27430 (__arm_vbrsrq_n_f32): Likewise.
27431 (__arm_vcvtq_n_f16_s16): Likewise.
27432 (__arm_vcvtq_n_f32_s32): Likewise.
27433 (__arm_vcvtq_n_f16_u16): Likewise.
27434 (__arm_vcvtq_n_f32_u32): Likewise.
27435 (__arm_vcreateq_f16): Likewise.
27436 (__arm_vcreateq_f32): Likewise.
27437 (vsubq): Define polymorphic variant.
27438 (vbrsrq): Likewise.
27439 (vcvtq_n): Likewise.
27440 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE_QUALIFIERS): Use
27442 (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
27443 (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
27444 (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
27445 * config/arm/constraints.md (Rd): Define constraint to check constant is
27446 in the range of 1 to 16.
27447 * config/arm/mve.md (mve_vsubq_n_f<mode>): Define RTL pattern.
27448 mve_vbrsrq_n_f<mode>: Likewise.
27449 mve_vcvtq_n_to_f_<supf><mode>: Likewise.
27450 mve_vcreateq_f<mode>: Likewise.
27451 * config/arm/predicates.md (mve_imm_16): Define predicate to check
27452 the matching constraint Rd.
27454 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27455 Mihail Ionescu <mihail.ionescu@arm.com>
27456 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27458 * config/arm/arm-builtins.c (hi_UP): Define mode.
27459 * config/arm/arm.h (IS_VPR_REGNUM): Move.
27460 * config/arm/arm.md (VPR_REGNUM): Define before APSRQ_REGNUM.
27461 (APSRQ_REGNUM): Modify.
27462 (APSRGE_REGNUM): Modify.
27463 * config/arm/arm_mve.h (vctp16q): Define macro.
27464 (vctp32q): Likewise.
27465 (vctp64q): Likewise.
27466 (vctp8q): Likewise.
27468 (__arm_vctp16q): Define intrinsic.
27469 (__arm_vctp32q): Likewise.
27470 (__arm_vctp64q): Likewise.
27471 (__arm_vctp8q): Likewise.
27472 (__arm_vpnot): Likewise.
27473 * config/arm/arm_mve_builtins.def (UNOP_UNONE_UNONE): Use builtin
27475 * config/arm/mve.md (mve_vctp<mode1>qhi): Define RTL pattern.
27476 (mve_vpnothi): Likewise.
27478 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27479 Mihail Ionescu <mihail.ionescu@arm.com>
27480 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27482 * config/arm/arm.h (enum reg_class): Define new class EVEN_REGS.
27483 * config/arm/arm_mve.h (vdupq_n_s8): Define macro.
27484 (vdupq_n_s16): Likewise.
27485 (vdupq_n_s32): Likewise.
27486 (vabsq_s8): Likewise.
27487 (vabsq_s16): Likewise.
27488 (vabsq_s32): Likewise.
27489 (vclsq_s8): Likewise.
27490 (vclsq_s16): Likewise.
27491 (vclsq_s32): Likewise.
27492 (vclzq_s8): Likewise.
27493 (vclzq_s16): Likewise.
27494 (vclzq_s32): Likewise.
27495 (vnegq_s8): Likewise.
27496 (vnegq_s16): Likewise.
27497 (vnegq_s32): Likewise.
27498 (vaddlvq_s32): Likewise.
27499 (vaddvq_s8): Likewise.
27500 (vaddvq_s16): Likewise.
27501 (vaddvq_s32): Likewise.
27502 (vmovlbq_s8): Likewise.
27503 (vmovlbq_s16): Likewise.
27504 (vmovltq_s8): Likewise.
27505 (vmovltq_s16): Likewise.
27506 (vmvnq_s8): Likewise.
27507 (vmvnq_s16): Likewise.
27508 (vmvnq_s32): Likewise.
27509 (vrev16q_s8): Likewise.
27510 (vrev32q_s8): Likewise.
27511 (vrev32q_s16): Likewise.
27512 (vqabsq_s8): Likewise.
27513 (vqabsq_s16): Likewise.
27514 (vqabsq_s32): Likewise.
27515 (vqnegq_s8): Likewise.
27516 (vqnegq_s16): Likewise.
27517 (vqnegq_s32): Likewise.
27518 (vcvtaq_s16_f16): Likewise.
27519 (vcvtaq_s32_f32): Likewise.
27520 (vcvtnq_s16_f16): Likewise.
27521 (vcvtnq_s32_f32): Likewise.
27522 (vcvtpq_s16_f16): Likewise.
27523 (vcvtpq_s32_f32): Likewise.
27524 (vcvtmq_s16_f16): Likewise.
27525 (vcvtmq_s32_f32): Likewise.
27526 (vmvnq_u8): Likewise.
27527 (vmvnq_u16): Likewise.
27528 (vmvnq_u32): Likewise.
27529 (vdupq_n_u8): Likewise.
27530 (vdupq_n_u16): Likewise.
27531 (vdupq_n_u32): Likewise.
27532 (vclzq_u8): Likewise.
27533 (vclzq_u16): Likewise.
27534 (vclzq_u32): Likewise.
27535 (vaddvq_u8): Likewise.
27536 (vaddvq_u16): Likewise.
27537 (vaddvq_u32): Likewise.
27538 (vrev32q_u8): Likewise.
27539 (vrev32q_u16): Likewise.
27540 (vmovltq_u8): Likewise.
27541 (vmovltq_u16): Likewise.
27542 (vmovlbq_u8): Likewise.
27543 (vmovlbq_u16): Likewise.
27544 (vrev16q_u8): Likewise.
27545 (vaddlvq_u32): Likewise.
27546 (vcvtpq_u16_f16): Likewise.
27547 (vcvtpq_u32_f32): Likewise.
27548 (vcvtnq_u16_f16): Likewise.
27549 (vcvtmq_u16_f16): Likewise.
27550 (vcvtmq_u32_f32): Likewise.
27551 (vcvtaq_u16_f16): Likewise.
27552 (vcvtaq_u32_f32): Likewise.
27553 (__arm_vdupq_n_s8): Define intrinsic.
27554 (__arm_vdupq_n_s16): Likewise.
27555 (__arm_vdupq_n_s32): Likewise.
27556 (__arm_vabsq_s8): Likewise.
27557 (__arm_vabsq_s16): Likewise.
27558 (__arm_vabsq_s32): Likewise.
27559 (__arm_vclsq_s8): Likewise.
27560 (__arm_vclsq_s16): Likewise.
27561 (__arm_vclsq_s32): Likewise.
27562 (__arm_vclzq_s8): Likewise.
27563 (__arm_vclzq_s16): Likewise.
27564 (__arm_vclzq_s32): Likewise.
27565 (__arm_vnegq_s8): Likewise.
27566 (__arm_vnegq_s16): Likewise.
27567 (__arm_vnegq_s32): Likewise.
27568 (__arm_vaddlvq_s32): Likewise.
27569 (__arm_vaddvq_s8): Likewise.
27570 (__arm_vaddvq_s16): Likewise.
27571 (__arm_vaddvq_s32): Likewise.
27572 (__arm_vmovlbq_s8): Likewise.
27573 (__arm_vmovlbq_s16): Likewise.
27574 (__arm_vmovltq_s8): Likewise.
27575 (__arm_vmovltq_s16): Likewise.
27576 (__arm_vmvnq_s8): Likewise.
27577 (__arm_vmvnq_s16): Likewise.
27578 (__arm_vmvnq_s32): Likewise.
27579 (__arm_vrev16q_s8): Likewise.
27580 (__arm_vrev32q_s8): Likewise.
27581 (__arm_vrev32q_s16): Likewise.
27582 (__arm_vqabsq_s8): Likewise.
27583 (__arm_vqabsq_s16): Likewise.
27584 (__arm_vqabsq_s32): Likewise.
27585 (__arm_vqnegq_s8): Likewise.
27586 (__arm_vqnegq_s16): Likewise.
27587 (__arm_vqnegq_s32): Likewise.
27588 (__arm_vmvnq_u8): Likewise.
27589 (__arm_vmvnq_u16): Likewise.
27590 (__arm_vmvnq_u32): Likewise.
27591 (__arm_vdupq_n_u8): Likewise.
27592 (__arm_vdupq_n_u16): Likewise.
27593 (__arm_vdupq_n_u32): Likewise.
27594 (__arm_vclzq_u8): Likewise.
27595 (__arm_vclzq_u16): Likewise.
27596 (__arm_vclzq_u32): Likewise.
27597 (__arm_vaddvq_u8): Likewise.
27598 (__arm_vaddvq_u16): Likewise.
27599 (__arm_vaddvq_u32): Likewise.
27600 (__arm_vrev32q_u8): Likewise.
27601 (__arm_vrev32q_u16): Likewise.
27602 (__arm_vmovltq_u8): Likewise.
27603 (__arm_vmovltq_u16): Likewise.
27604 (__arm_vmovlbq_u8): Likewise.
27605 (__arm_vmovlbq_u16): Likewise.
27606 (__arm_vrev16q_u8): Likewise.
27607 (__arm_vaddlvq_u32): Likewise.
27608 (__arm_vcvtpq_u16_f16): Likewise.
27609 (__arm_vcvtpq_u32_f32): Likewise.
27610 (__arm_vcvtnq_u16_f16): Likewise.
27611 (__arm_vcvtmq_u16_f16): Likewise.
27612 (__arm_vcvtmq_u32_f32): Likewise.
27613 (__arm_vcvtaq_u16_f16): Likewise.
27614 (__arm_vcvtaq_u32_f32): Likewise.
27615 (__arm_vcvtaq_s16_f16): Likewise.
27616 (__arm_vcvtaq_s32_f32): Likewise.
27617 (__arm_vcvtnq_s16_f16): Likewise.
27618 (__arm_vcvtnq_s32_f32): Likewise.
27619 (__arm_vcvtpq_s16_f16): Likewise.
27620 (__arm_vcvtpq_s32_f32): Likewise.
27621 (__arm_vcvtmq_s16_f16): Likewise.
27622 (__arm_vcvtmq_s32_f32): Likewise.
27623 (vdupq_n): Define polymorphic variant.
27628 (vaddlvq): Likewise.
27629 (vaddvq): Likewise.
27630 (vmovlbq): Likewise.
27631 (vmovltq): Likewise.
27633 (vrev16q): Likewise.
27634 (vrev32q): Likewise.
27635 (vqabsq): Likewise.
27636 (vqnegq): Likewise.
27637 * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
27638 (UNOP_SNONE_NONE): Likewise.
27639 (UNOP_UNONE_UNONE): Likewise.
27640 (UNOP_UNONE_NONE): Likewise.
27641 * config/arm/constraints.md (e): Define new constriant to allow only
27643 * config/arm/mve.md (mve_vqabsq_s<mode>): Define RTL pattern.
27644 (mve_vnegq_s<mode>): Likewise.
27645 (mve_vmvnq_<supf><mode>): Likewise.
27646 (mve_vdupq_n_<supf><mode>): Likewise.
27647 (mve_vclzq_<supf><mode>): Likewise.
27648 (mve_vclsq_s<mode>): Likewise.
27649 (mve_vaddvq_<supf><mode>): Likewise.
27650 (mve_vabsq_s<mode>): Likewise.
27651 (mve_vrev32q_<supf><mode>): Likewise.
27652 (mve_vmovltq_<supf><mode>): Likewise.
27653 (mve_vmovlbq_<supf><mode>): Likewise.
27654 (mve_vcvtpq_<supf><mode>): Likewise.
27655 (mve_vcvtnq_<supf><mode>): Likewise.
27656 (mve_vcvtmq_<supf><mode>): Likewise.
27657 (mve_vcvtaq_<supf><mode>): Likewise.
27658 (mve_vrev16q_<supf>v16qi): Likewise.
27659 (mve_vaddlvq_<supf>v4si): Likewise.
27661 2020-03-17 Jakub Jelinek <jakub@redhat.com>
27663 * lra-spills.c (remove_pseudos): Fix up duplicated word issue in
27665 * tree-sra.c (create_access_replacement): Fix up duplicated word issue
27667 * read-rtl-function.c (find_param_by_name,
27668 function_reader::parse_enum_value, function_reader::get_insn_by_uid):
27670 * spellcheck.c (get_edit_distance_cutoff): Likewise.
27671 * tree-data-ref.c (create_ifn_alias_checks): Likewise.
27672 * tree.def (SWITCH_EXPR): Likewise.
27673 * selftest.c (assert_str_contains): Likewise.
27674 * ipa-param-manipulation.h (class ipa_param_body_adjustments):
27676 * tree-ssa-math-opts.c (convert_expand_mult_copysign): Likewise.
27677 * tree-ssa-loop-split.c (find_vdef_in_loop): Likewise.
27678 * langhooks.h (struct lang_hooks_for_decls): Likewise.
27679 * ipa-prop.h (struct ipa_param_descriptor): Likewise.
27680 * tree-ssa-strlen.c (handle_builtin_string_cmp, handle_store):
27682 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
27683 * tree-ssa-reassoc.c (reassociate_bb): Likewise.
27684 * tree.c (component_ref_size): Likewise.
27685 * hsa-common.c (hsa_init_compilation_unit_data): Likewise.
27686 * gimple-ssa-sprintf.c (get_string_length, format_string,
27687 format_directive): Likewise.
27688 * omp-grid.c (grid_process_kernel_body_copy): Likewise.
27689 * input.c (string_concat_db::get_string_concatenation,
27690 test_lexer_string_locations_ucn4): Likewise.
27691 * cfgexpand.c (pass_expand::execute): Likewise.
27692 * gimple-ssa-warn-restrict.c (builtin_memref::offset_out_of_bounds,
27693 maybe_diag_overlap): Likewise.
27694 * rtl.c (RTX_CODE_HWINT_P_1): Likewise.
27695 * shrink-wrap.c (spread_components): Likewise.
27696 * tree-ssa-dse.c (initialize_ao_ref_for_dse, valid_ao_ref_for_dse):
27698 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
27700 * dwarf2out.c (dwarf2out_early_finish): Likewise.
27701 * gimple-ssa-store-merging.c: Likewise.
27702 * ira-costs.c (record_operand_costs): Likewise.
27703 * tree-vect-loop.c (vectorizable_reduction): Likewise.
27704 * target.def (dispatch): Likewise.
27705 (validate_dims, gen_ccmp_first): Fix up duplicated word issue
27706 in documentation text.
27707 * doc/tm.texi: Regenerated.
27708 * config/i386/x86-tune.def (X86_TUNE_PARTIAL_FLAG_REG_STALL): Fix up
27709 duplicated word issue in a comment.
27710 * config/i386/i386.c (ix86_test_loading_unspec): Likewise.
27711 * config/i386/i386-features.c (remove_partial_avx_dependency):
27713 * config/msp430/msp430.c (msp430_select_section): Likewise.
27714 * config/gcn/gcn-run.c (load_image): Likewise.
27715 * config/aarch64/aarch64-sve.md (sve_ld1r<mode>): Likewise.
27716 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Likewise.
27717 * config/aarch64/falkor-tag-collision-avoidance.c
27718 (single_dest_per_chain): Likewise.
27719 * config/nvptx/nvptx.c (nvptx_record_fndecl): Likewise.
27720 * config/fr30/fr30.c (fr30_arg_partial_bytes): Likewise.
27721 * config/rs6000/rs6000-string.c (expand_cmp_vec_sequence): Likewise.
27722 * config/rs6000/rs6000-p8swap.c (replace_swapped_load_constant):
27724 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
27725 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
27726 * config/rs6000/rs6000-logue.c
27727 (rs6000_emit_probe_stack_range_stack_clash): Likewise.
27728 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Likewise.
27729 Fix various other issues in the comment.
27731 2020-03-17 Mihail Ionescu <mihail.ionescu@arm.com>
27733 * config/arm/t-rmprofile: create new multilib for
27734 armv8.1-m.main+mve hard float and reuse v8-m.main ones for
27737 2020-03-17 Jakub Jelinek <jakub@redhat.com>
27739 PR tree-optimization/94015
27740 * tree-ssa-strlen.c (count_nonzero_bytes): Split portions of the
27741 function where EXP is address of the bytes being stored rather than
27742 the bytes themselves into count_nonzero_bytes_addr. Punt on zero
27743 sized MEM_REF. Use VAR_P macro and handle CONST_DECL like VAR_DECLs.
27744 Use ctor_for_folding instead of looking at DECL_INITIAL. Punt before
27745 calling native_encode_expr if host or target doesn't have 8-bit
27746 chars. Formatting fixes.
27747 (count_nonzero_bytes_addr): New function.
27749 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27750 Mihail Ionescu <mihail.ionescu@arm.com>
27751 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27753 * config/arm/arm-builtins.c (UNOP_SNONE_SNONE_QUALIFIERS): Define.
27754 (UNOP_SNONE_NONE_QUALIFIERS): Likewise.
27755 (UNOP_SNONE_IMM_QUALIFIERS): Likewise.
27756 (UNOP_UNONE_NONE_QUALIFIERS): Likewise.
27757 (UNOP_UNONE_UNONE_QUALIFIERS): Likewise.
27758 (UNOP_UNONE_IMM_QUALIFIERS): Likewise.
27759 * config/arm/arm_mve.h (vmvnq_n_s16): Define macro.
27760 (vmvnq_n_s32): Likewise.
27761 (vrev64q_s8): Likewise.
27762 (vrev64q_s16): Likewise.
27763 (vrev64q_s32): Likewise.
27764 (vcvtq_s16_f16): Likewise.
27765 (vcvtq_s32_f32): Likewise.
27766 (vrev64q_u8): Likewise.
27767 (vrev64q_u16): Likewise.
27768 (vrev64q_u32): Likewise.
27769 (vmvnq_n_u16): Likewise.
27770 (vmvnq_n_u32): Likewise.
27771 (vcvtq_u16_f16): Likewise.
27772 (vcvtq_u32_f32): Likewise.
27773 (__arm_vmvnq_n_s16): Define intrinsic.
27774 (__arm_vmvnq_n_s32): Likewise.
27775 (__arm_vrev64q_s8): Likewise.
27776 (__arm_vrev64q_s16): Likewise.
27777 (__arm_vrev64q_s32): Likewise.
27778 (__arm_vrev64q_u8): Likewise.
27779 (__arm_vrev64q_u16): Likewise.
27780 (__arm_vrev64q_u32): Likewise.
27781 (__arm_vmvnq_n_u16): Likewise.
27782 (__arm_vmvnq_n_u32): Likewise.
27783 (__arm_vcvtq_s16_f16): Likewise.
27784 (__arm_vcvtq_s32_f32): Likewise.
27785 (__arm_vcvtq_u16_f16): Likewise.
27786 (__arm_vcvtq_u32_f32): Likewise.
27787 (vrev64q): Define polymorphic variant.
27788 * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
27789 (UNOP_SNONE_NONE): Likewise.
27790 (UNOP_SNONE_IMM): Likewise.
27791 (UNOP_UNONE_UNONE): Likewise.
27792 (UNOP_UNONE_NONE): Likewise.
27793 (UNOP_UNONE_IMM): Likewise.
27794 * config/arm/mve.md (mve_vrev64q_<supf><mode>): Define RTL pattern.
27795 (mve_vcvtq_from_f_<supf><mode>): Likewise.
27796 (mve_vmvnq_n_<supf><mode>): Likewise.
27798 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27799 Mihail Ionescu <mihail.ionescu@arm.com>
27800 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27802 * config/arm/arm-builtins.c (UNOP_NONE_NONE_QUALIFIERS): Define macro.
27803 (UNOP_NONE_SNONE_QUALIFIERS): Likewise.
27804 (UNOP_NONE_UNONE_QUALIFIERS): Likewise.
27805 * config/arm/arm_mve.h (vrndxq_f16): Define macro.
27806 (vrndxq_f32): Likewise.
27807 (vrndq_f16) Likewise.
27808 (vrndq_f32): Likewise.
27809 (vrndpq_f16): Likewise.
27810 (vrndpq_f32): Likewise.
27811 (vrndnq_f16): Likewise.
27812 (vrndnq_f32): Likewise.
27813 (vrndmq_f16): Likewise.
27814 (vrndmq_f32): Likewise.
27815 (vrndaq_f16): Likewise.
27816 (vrndaq_f32): Likewise.
27817 (vrev64q_f16): Likewise.
27818 (vrev64q_f32): Likewise.
27819 (vnegq_f16): Likewise.
27820 (vnegq_f32): Likewise.
27821 (vdupq_n_f16): Likewise.
27822 (vdupq_n_f32): Likewise.
27823 (vabsq_f16): Likewise.
27824 (vabsq_f32): Likewise.
27825 (vrev32q_f16): Likewise.
27826 (vcvttq_f32_f16): Likewise.
27827 (vcvtbq_f32_f16): Likewise.
27828 (vcvtq_f16_s16): Likewise.
27829 (vcvtq_f32_s32): Likewise.
27830 (vcvtq_f16_u16): Likewise.
27831 (vcvtq_f32_u32): Likewise.
27832 (__arm_vrndxq_f16): Define intrinsic.
27833 (__arm_vrndxq_f32): Likewise.
27834 (__arm_vrndq_f16): Likewise.
27835 (__arm_vrndq_f32): Likewise.
27836 (__arm_vrndpq_f16): Likewise.
27837 (__arm_vrndpq_f32): Likewise.
27838 (__arm_vrndnq_f16): Likewise.
27839 (__arm_vrndnq_f32): Likewise.
27840 (__arm_vrndmq_f16): Likewise.
27841 (__arm_vrndmq_f32): Likewise.
27842 (__arm_vrndaq_f16): Likewise.
27843 (__arm_vrndaq_f32): Likewise.
27844 (__arm_vrev64q_f16): Likewise.
27845 (__arm_vrev64q_f32): Likewise.
27846 (__arm_vnegq_f16): Likewise.
27847 (__arm_vnegq_f32): Likewise.
27848 (__arm_vdupq_n_f16): Likewise.
27849 (__arm_vdupq_n_f32): Likewise.
27850 (__arm_vabsq_f16): Likewise.
27851 (__arm_vabsq_f32): Likewise.
27852 (__arm_vrev32q_f16): Likewise.
27853 (__arm_vcvttq_f32_f16): Likewise.
27854 (__arm_vcvtbq_f32_f16): Likewise.
27855 (__arm_vcvtq_f16_s16): Likewise.
27856 (__arm_vcvtq_f32_s32): Likewise.
27857 (__arm_vcvtq_f16_u16): Likewise.
27858 (__arm_vcvtq_f32_u32): Likewise.
27859 (vrndxq): Define polymorphic variants.
27861 (vrndpq): Likewise.
27862 (vrndnq): Likewise.
27863 (vrndmq): Likewise.
27864 (vrndaq): Likewise.
27865 (vrev64q): Likewise.
27868 (vrev32q): Likewise.
27869 (vcvtbq_f32): Likewise.
27870 (vcvttq_f32): Likewise.
27872 * config/arm/arm_mve_builtins.def (VAR2): Define.
27874 * config/arm/mve.md (mve_vrndxq_f<mode>): Add RTL pattern.
27875 (mve_vrndq_f<mode>): Likewise.
27876 (mve_vrndpq_f<mode>): Likewise.
27877 (mve_vrndnq_f<mode>): Likewise.
27878 (mve_vrndmq_f<mode>): Likewise.
27879 (mve_vrndaq_f<mode>): Likewise.
27880 (mve_vrev64q_f<mode>): Likewise.
27881 (mve_vnegq_f<mode>): Likewise.
27882 (mve_vdupq_n_f<mode>): Likewise.
27883 (mve_vabsq_f<mode>): Likewise.
27884 (mve_vrev32q_fv8hf): Likewise.
27885 (mve_vcvttq_f32_f16v4sf): Likewise.
27886 (mve_vcvtbq_f32_f16v4sf): Likewise.
27887 (mve_vcvtq_to_f_<supf><mode>): Likewise.
27889 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
27890 Mihail Ionescu <mihail.ionescu@arm.com>
27891 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27893 * config/arm/arm-builtins.c (CF): Define mve_builtin_data.
27895 (ARM_BUILTIN_MVE_PATTERN_START): Define.
27896 (arm_init_mve_builtins): Define function.
27897 (arm_init_builtins): Add TARGET_HAVE_MVE check.
27898 (arm_expand_builtin_1): Check the range of fcode.
27899 (arm_expand_mve_builtin): Define function to expand MVE builtins.
27900 (arm_expand_builtin): Check the range of fcode.
27901 * config/arm/arm_mve.h (__ARM_FEATURE_MVE): Define MVE floating point
27903 (__ARM_MVE_PRESERVE_USER_NAMESPACE): Define to protect user namespace.
27904 (vst4q_s8): Define macro.
27905 (vst4q_s16): Likewise.
27906 (vst4q_s32): Likewise.
27907 (vst4q_u8): Likewise.
27908 (vst4q_u16): Likewise.
27909 (vst4q_u32): Likewise.
27910 (vst4q_f16): Likewise.
27911 (vst4q_f32): Likewise.
27912 (__arm_vst4q_s8): Define inline builtin.
27913 (__arm_vst4q_s16): Likewise.
27914 (__arm_vst4q_s32): Likewise.
27915 (__arm_vst4q_u8): Likewise.
27916 (__arm_vst4q_u16): Likewise.
27917 (__arm_vst4q_u32): Likewise.
27918 (__arm_vst4q_f16): Likewise.
27919 (__arm_vst4q_f32): Likewise.
27920 (__ARM_mve_typeid): Define macro with MVE types.
27921 (__ARM_mve_coerce): Define macro with _Generic feature.
27922 (vst4q): Define polymorphic variant for different vst4q builtins.
27923 * config/arm/arm_mve_builtins.def: New file.
27924 * config/arm/iterators.md (VSTRUCT): Modify to allow XI and OI
27926 * config/arm/mve.md (MVE_VLD_ST): Define iterator.
27927 (unspec): Define unspec.
27928 (mve_vst4q<mode>): Define RTL pattern.
27929 * config/arm/neon.md (mov<mode>): Modify expand to allow XI and OI
27931 (neon_mov<mode>): Modify RTL define_insn to allow XI and OI modes
27933 (define_split): Allow OI mode split for MVE after reload.
27934 (define_split): Allow XI mode split for MVE after reload.
27935 * config/arm/t-arm (arm.o): Add entry for arm_mve_builtins.def.
27936 (arm-builtins.o): Likewise.
27938 2020-03-17 Christophe Lyon <christophe.lyon@linaro.org>
27940 * c-typeck.c (process_init_element): Handle constructor_type with
27941 type size represented by POLY_INT_CST.
27943 2020-03-17 Jakub Jelinek <jakub@redhat.com>
27945 PR tree-optimization/94187
27946 * tree-ssa-strlen.c (count_nonzero_bytes): Punt if
27947 nchars - offset < nbytes.
27949 PR middle-end/94189
27950 * builtins.c (expand_builtin_strnlen): Do return NULL_RTX if we would
27951 emit a warning if it was enabled and don't depend on TREE_NO_WARNING
27952 for code-generation.
27954 2020-03-16 Vladimir Makarov <vmakarov@redhat.com>
27957 * lra-spills.c (remove_pseudos): Do not reuse insn alternative
27958 after changing memory subreg.
27960 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
27961 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27963 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Modify function to add
27964 emulator calls for dobule precision arithmetic operations for MVE.
27966 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
27967 Mihail Ionescu <mihail.ionescu@arm.com>
27968 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27970 * common/config/arm/arm-common.c (arm_asm_auto_mfpu): When vfp_base
27971 feature bit is on and -mfpu=auto is passed as compiler option, do not
27972 generate error on not finding any matching fpu. Because in this case
27973 fpu is not required.
27974 * config/arm/arm-cpus.in (vfp_base): Define feature bit, this bit is
27975 enabled for MVE and also for all VFP extensions.
27976 (VFPv2): Modify fgroup to enable vfp_base feature bit when ever VFPv2
27978 (MVE): Define fgroup to enable feature bits mve, vfp_base and armv7em.
27979 (MVE_FP): Define fgroup to enable feature bits is fgroup MVE and FPv5
27980 along with feature bits mve_float.
27981 (mve): Modify add options in armv8.1-m.main arch for MVE.
27982 (mve.fp): Modify add options in armv8.1-m.main arch for MVE with
27984 * config/arm/arm.c (use_return_insn): Replace the
27985 check with TARGET_VFP_BASE.
27986 (thumb2_legitimate_index_p): Replace TARGET_HARD_FLOAT with
27988 (arm_rtx_costs_internal): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
27989 with TARGET_VFP_BASE, to allow cost calculations for copies in MVE as
27991 (arm_get_vfp_saved_size): Replace TARGET_HARD_FLOAT with
27992 TARGET_VFP_BASE, to allow space calculation for VFP registers in MVE
27994 (arm_compute_frame_layout): Likewise.
27995 (arm_save_coproc_regs): Likewise.
27996 (arm_fixed_condition_code_regs): Modify to enable using VFPCC_REGNUM
27998 (arm_hard_regno_mode_ok): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
27999 with equivalent macro TARGET_VFP_BASE.
28000 (arm_expand_epilogue_apcs_frame): Likewise.
28001 (arm_expand_epilogue): Likewise.
28002 (arm_conditional_register_usage): Likewise.
28003 (arm_declare_function_name): Add check to skip printing .fpu directive
28004 in assembly file when TARGET_VFP_BASE is enabled and fpu_to_print is
28006 * config/arm/arm.h (TARGET_VFP_BASE): Define.
28007 * config/arm/arm.md (arch): Add "mve" to arch.
28008 (eq_attr "arch" "mve"): Enable on TARGET_HAVE_MVE is true.
28009 (vfp_pop_multiple_with_writeback): Replace "TARGET_HARD_FLOAT
28010 || TARGET_HAVE_MVE" with equivalent macro TARGET_VFP_BASE.
28011 * config/arm/constraints.md (Uf): Define to allow modification to FPCCR
28013 * config/arm/thumb2.md (thumb2_movsfcc_soft_insn): Modify target guard
28014 to not allow for MVE.
28015 * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Move to volatile unspecs
28017 (VUNSPEC_GET_FPSCR): Define.
28018 * config/arm/vfp.md (thumb2_movhi_vfp): Add support for VMSR and VMRS
28019 instructions which move to general-purpose Register from Floating-point
28020 Special register and vice-versa.
28021 (thumb2_movhi_fp16): Likewise.
28022 (thumb2_movsi_vfp): Add support for VMSR and VMRS instructions along
28023 with MCR and MRC instructions which set and get Floating-point Status
28024 and Control Register (FPSCR).
28025 (movdi_vfp): Modify pattern to enable Single-precision scalar float move
28027 (thumb2_movdf_vfp): Modify pattern to enable Double-precision scalar
28028 float move patterns in MVE.
28029 (thumb2_movsfcc_vfp): Modify pattern to enable single float conditional
28030 code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
28031 (thumb2_movdfcc_vfp): Modify pattern to enable double float conditional
28032 code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
28033 (push_multi_vfp): Add support to use VFP VPUSH pattern for MVE by adding
28034 TARGET_VFP_BASE check.
28035 (set_fpscr): Add support to set FPSCR register for MVE. Modify pattern
28036 using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
28038 (get_fpscr): Add support to get FPSCR register for MVE. Modify pattern
28039 using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
28043 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
28044 Mihail Ionescu <mihail.ionescu@arm.com>
28045 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28047 * config.gcc (arm_mve.h): Include mve intrinsics header file.
28048 * config/arm/aout.h (p0): Add new register name for MVE predicated
28050 * config/arm-builtins.c (ARM_BUILTIN_SIMD_LANE_CHECK): Define macro
28051 common to Neon and MVE.
28052 (ARM_BUILTIN_NEON_LANE_CHECK): Renamed to ARM_BUILTIN_SIMD_LANE_CHECK.
28053 (arm_init_simd_builtin_types): Disable poly types for MVE.
28054 (arm_init_neon_builtins): Move a check to arm_init_builtins function.
28055 (arm_init_builtins): Use ARM_BUILTIN_SIMD_LANE_CHECK instead of
28056 ARM_BUILTIN_NEON_LANE_CHECK.
28057 (mve_dereference_pointer): Add function.
28058 (arm_expand_builtin_args): Call to mve_dereference_pointer when MVE is
28060 (arm_expand_neon_builtin): Moved to arm_expand_builtin function.
28061 (arm_expand_builtin): Moved from arm_expand_neon_builtin function.
28062 * config/arm/arm-c.c (__ARM_FEATURE_MVE): Define macro for MVE and MVE
28063 with floating point enabled.
28064 * config/arm/arm-protos.h (neon_immediate_valid_for_move): Renamed to
28065 simd_immediate_valid_for_move.
28066 (simd_immediate_valid_for_move): Renamed from
28067 neon_immediate_valid_for_move function.
28068 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Generate
28069 error if vfpv2 feature bit is disabled and mve feature bit is also
28070 disabled for HARD_FLOAT_ABI.
28071 (use_return_insn): Check to not push VFP regs for MVE.
28072 (aapcs_vfp_allocate): Add MVE check to have same Procedure Call Standard
28074 (aapcs_vfp_allocate_return_reg): Likewise.
28075 (thumb2_legitimate_address_p): Check to return 0 on valid Thumb-2
28076 address operand for MVE.
28077 (arm_rtx_costs_internal): MVE check to determine cost of rtx.
28078 (neon_valid_immediate): Rename to simd_valid_immediate.
28079 (simd_valid_immediate): Rename from neon_valid_immediate.
28080 (simd_valid_immediate): MVE check on size of vector is 128 bits.
28081 (neon_immediate_valid_for_move): Rename to
28082 simd_immediate_valid_for_move.
28083 (simd_immediate_valid_for_move): Rename from
28084 neon_immediate_valid_for_move.
28085 (neon_immediate_valid_for_logic): Modify call to neon_valid_immediate
28087 (neon_make_constant): Modify call to neon_valid_immediate function.
28088 (neon_vector_mem_operand): Return VFP register for POST_INC or PRE_DEC
28090 (output_move_neon): Add MVE check to generate vldm/vstm instrcutions.
28091 (arm_compute_frame_layout): Calculate space for saved VFP registers for
28093 (arm_save_coproc_regs): Save coproc registers for MVE.
28094 (arm_print_operand): Add case 'E' to print memory operands for MVE.
28095 (arm_print_operand_address): Check to print register number for MVE.
28096 (arm_hard_regno_mode_ok): Check for arm hard regno mode ok for MVE.
28097 (arm_modes_tieable_p): Check to allow structure mode for MVE.
28098 (arm_regno_class): Add VPR_REGNUM check.
28099 (arm_expand_epilogue_apcs_frame): MVE check to calculate epilogue code
28101 (arm_expand_epilogue): MVE check for enabling pop instructions in
28103 (arm_print_asm_arch_directives): Modify function to disable print of
28104 .arch_extension "mve" and "fp" for cases where MVE is enabled with
28106 (arm_vector_mode_supported_p): Check for modes available in MVE interger
28107 and MVE floating point.
28108 (arm_array_mode_supported_p): Add TARGET_HAVE_MVE check for array mode
28110 (arm_conditional_register_usage): Enable usage of conditional regsiter
28112 (fixed_regs[VPR_REGNUM]): Enable VPR_REG for MVE.
28113 (arm_declare_function_name): Modify function to disable print of
28114 .arch_extension "mve" and "fp" for cases where MVE is enabled with
28116 * config/arm/arm.h (TARGET_HAVE_MVE): Disable for soft float abi and
28117 when target general registers are required.
28118 (TARGET_HAVE_MVE_FLOAT): Likewise.
28119 (FIXED_REGISTERS): Add bit for VFP_REG class which is enabled in arm.c
28121 (CALL_USED_REGISTERS): Set bit for VFP_REG class in CALL_USED_REGISTERS
28122 which indicate this is not available for across function calls.
28123 (FIRST_PSEUDO_REGISTER): Modify.
28124 (VALID_MVE_MODE): Define valid MVE mode.
28125 (VALID_MVE_SI_MODE): Define valid MVE SI mode.
28126 (VALID_MVE_SF_MODE): Define valid MVE SF mode.
28127 (VALID_MVE_STRUCT_MODE): Define valid MVE struct mode.
28128 (VPR_REGNUM): Add Vector Predication Register in arm_regs_in_sequence
28130 (IS_VPR_REGNUM): Macro to check for VPR_REG register.
28131 (REG_ALLOC_ORDER): Add VPR_REGNUM entry.
28132 (enum reg_class): Add VPR_REG entry.
28133 (REG_CLASS_NAMES): Add VPR_REG entry.
28134 * config/arm/arm.md (VPR_REGNUM): Define.
28135 (conds): Check is_mve_type attrbiute to differentiate "conditional" and
28136 "unconditional" instructions.
28137 (arm_movsf_soft_insn): Modify RTL to not allow for MVE.
28138 (movdf_soft_insn): Modify RTL to not allow for MVE.
28139 (vfp_pop_multiple_with_writeback): Enable for MVE.
28140 (include "mve.md"): Include mve.md file.
28141 * config/arm/arm_mve.h: Add MVE intrinsics head file.
28142 * config/arm/constraints.md (Up): Constraint to enable "p0" register in MVE
28143 for vector predicated operands.
28144 * config/arm/iterators.md (VNIM1): Define.
28145 (VNINOTM1): Define.
28146 (VHFBF_split): Define
28147 * config/arm/mve.md: New file.
28148 (mve_mov<mode>): Define RTL for move, store and load in MVE.
28149 (mve_mov<mode>): Define move RTL pattern with vec_duplicate operator for
28151 * config/arm/neon.md (neon_immediate_valid_for_move): Rename with
28152 simd_immediate_valid_for_move.
28153 (neon_mov<mode>): Split pattern and move expand pattern "movv8hf" which
28154 is common to MVE and NEON to vec-common.md file.
28155 (vec_init<mode><V_elem_l>): Add TARGET_HAVE_MVE check.
28156 * config/arm/predicates.md (vpr_register_operand): Define.
28157 * config/arm/t-arm: Add mve.md file.
28158 * config/arm/types.md (mve_move): Add MVE instructions mve_move to
28160 (mve_store): Add MVE instructions mve_store to attribute "type".
28161 (mve_load): Add MVE instructions mve_load to attribute "type".
28162 (is_mve_type): Define attribute.
28163 * config/arm/vec-common.md (mov<mode>): Modify RTL expand to support
28164 standard move patterns in MVE along with NEON and IWMMXT with mode
28166 (mov<mode>): Modify RTL expand to support standard move patterns in NEON
28167 and IWMMXT with mode iterator V8HF.
28168 (movv8hf): Define RTL expand to support standard "movv8hf" pattern in
28170 * config/arm/vfp.md (neon_immediate_valid_for_move): Rename to
28171 simd_immediate_valid_for_move.
28174 2020-03-16 H.J. Lu <hongjiu.lu@intel.com>
28177 * config/i386/i386.md (*movsi_internal): Call ix86_output_ssemov
28178 for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL
28180 * config/i386/predicates.md (ext_sse_reg_operand): Removed.
28182 2020-03-16 Jakub Jelinek <jakub@redhat.com>
28185 * tree-inline.c (insert_init_stmt): Don't gimple_regimplify_operands
28188 PR tree-optimization/94166
28189 * tree-ssa-reassoc.c (sort_by_mach_mode): Use SSA_NAME_VERSION
28190 as secondary comparison key.
28192 2020-03-16 Bin Cheng <bin.cheng@linux.alibaba.com>
28194 PR tree-optimization/94125
28195 * tree-loop-distribution.c
28196 (loop_distribution::break_alias_scc_partitions): Update post order
28197 number for merged scc.
28199 2020-03-15 H.J. Lu <hongjiu.lu@intel.com>
28202 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_SI and
28204 * config/i386/i386.md (*movsf_internal): Call ix86_output_ssemov
28205 for TYPE_SSEMOV. Remove TARGET_PREFER_AVX256, TARGET_AVX512VL
28206 and ext_sse_reg_operand check.
28208 2020-03-15 Lewis Hyatt <lhyatt@gmail.com>
28210 * common.opt: Avoid redundancy in the help text.
28211 * config/arc/arc.opt: Likewise.
28212 * config/cr16/cr16.opt: Likewise.
28214 2020-03-14 Jakub Jelinek <jakub@redhat.com>
28216 PR middle-end/93566
28217 * tree-nested.c (convert_nonlocal_omp_clauses,
28218 convert_local_omp_clauses): Handle {,in_,task_}reduction clauses
28219 with C/C++ array sections.
28221 2020-03-14 H.J. Lu <hongjiu.lu@intel.com>
28224 * config/i386/i386.md (*movdi_internal): Call ix86_output_ssemov
28225 for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL
28228 2020-03-14 Jakub Jelinek <jakub@redhat.com>
28230 * gimple-fold.c (gimple_fold_builtin_strncpy): Change
28231 "a an" to "an" in a comment.
28232 * hsa-common.h (is_a_helper): Likewise.
28233 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.
28234 * config/arc/arc.c (arc600_corereg_hazard): Likewise.
28235 * config/s390/s390.c (s390_indirect_branch_via_thunk): Likewise.
28237 2020-03-13 Aaron Sawdey <acsawdey@linux.ibm.com>
28240 * config/rs6000/rs6000.c (num_insns_constant_multi): Don't shift a
28241 64-bit value by 64 bits (UB).
28243 2020-03-13 Vladimir Makarov <vmakarov@redhat.com>
28245 PR rtl-optimization/92303
28246 * lra-spills.c (remove_pseudos): Try to simplify memory subreg.
28248 2020-03-13 Segher Boessenkool <segher@kernel.crashing.org>
28250 PR rtl-optimization/94148
28251 PR rtl-optimization/94042
28252 * df-core.c (BB_LAST_CHANGE_AGE): Delete.
28253 (df_worklist_propagate_forward): New parameter last_change_age, use
28254 that instead of bb->aux.
28255 (df_worklist_propagate_backward): Ditto.
28256 (df_worklist_dataflow_doublequeue): Use a local array last_change_age.
28258 2020-03-13 Richard Biener <rguenther@suse.de>
28260 PR tree-optimization/94163
28261 * tree-ssa-pre.c (create_expression_by_pieces): Check
28262 whether alignment would be zero.
28264 2020-03-13 Martin Liska <mliska@suse.cz>
28267 * lto-wrapper.c (run_gcc): Use concat for appending
28268 to collect_gcc_options.
28270 2020-03-13 Jakub Jelinek <jakub@redhat.com>
28273 * config/aarch64/aarch64.c (aarch64_add_offset_1): Use gen_int_mode
28274 instead of GEN_INT.
28276 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
28279 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DF.
28280 * config/i386/i386.md (*movdf_internal): Call ix86_output_ssemov
28281 for TYPE_SSEMOV. Remove TARGET_AVX512F, TARGET_PREFER_AVX256,
28282 TARGET_AVX512VL and ext_sse_reg_operand check.
28284 2020-03-13 Bu Le <bule1@huawei.com>
28287 * config/aarch64/aarch64.opt (-param=aarch64-float-recp-precision=)
28288 (-param=aarch64-double-recp-precision=): New options.
28289 * doc/invoke.texi: Document them.
28290 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Use them
28291 instead of hard-coding the choice of 1 for float and 2 for double.
28293 2020-03-13 Eric Botcazou <ebotcazou@adacore.com>
28295 PR rtl-optimization/94119
28296 * resource.h (clear_hashed_info_until_next_barrier): Declare.
28297 * resource.c (clear_hashed_info_until_next_barrier): New function.
28298 * reorg.c (add_to_delay_list): Fix formatting.
28299 (relax_delay_slots): Call clear_hashed_info_until_next_barrier on
28300 the next instruction after removing a BARRIER.
28302 2020-03-13 Eric Botcazou <ebotcazou@adacore.com>
28304 PR middle-end/92071
28305 * expmed.c (store_integral_bit_field): For fields larger than a word,
28306 call extract_bit_field on the value if the mode is BLKmode. Remove
28307 specific path for big-endian targets and tidy things up a little bit.
28309 2020-03-12 Richard Sandiford <richard.sandiford@arm.com>
28311 PR rtl-optimization/90275
28312 * cse.c (cse_insn): Delete no-op register moves too.
28314 2020-03-12 Darius Galis <darius.galis@cyberthorstudios.com>
28316 * config/rx/rx.md (CTRLREG_CPEN): Remove.
28317 * config/rx/rx.c (rx_print_operand): Remove CTRLREG_CPEN support.
28319 2020-03-12 Richard Biener <rguenther@suse.de>
28321 PR tree-optimization/94103
28322 * tree-ssa-sccvn.c (visit_reference_op_load): Avoid type
28323 punning when the mode precision is not sufficient.
28325 2020-03-12 H.J. Lu <hongjiu.lu@intel.com>
28328 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DI,
28329 MODE_V1DF and MODE_V2SF.
28330 * config/i386/mmx.md (MMXMODE:*mov<mode>_internal): Call
28331 ix86_output_ssemov for TYPE_SSEMOV. Remove ext_sse_reg_operand
28334 2020-03-12 Jakub Jelinek <jakub@redhat.com>
28336 * doc/tm.texi.in (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change
28337 ASM_OUTPUT_ALIGNED_DECL in description to ASM_OUTPUT_ALIGNED_LOCAL
28338 and ASM_OUTPUT_DECL to ASM_OUTPUT_LOCAL.
28339 * doc/tm.texi: Regenerated.
28341 PR tree-optimization/94130
28342 * tree-ssa-dse.c: Include gimplify.h.
28343 (increment_start_addr): If stmt has lhs, drop the lhs from call and
28344 set it after the call to the original value of the first argument.
28346 (decrement_count): Formatting fix.
28348 2020-03-11 Delia Burduv <delia.burduv@arm.com>
28350 * config/arm/arm-builtins.c
28351 (arm_init_simd_builtin_scalar_types): New.
28352 * config/arm/arm_neon.h (vld2_bf16): Used new builtin type.
28353 (vld2q_bf16): Used new builtin type.
28354 (vld3_bf16): Used new builtin type.
28355 (vld3q_bf16): Used new builtin type.
28356 (vld4_bf16): Used new builtin type.
28357 (vld4q_bf16): Used new builtin type.
28358 (vld2_dup_bf16): Used new builtin type.
28359 (vld2q_dup_bf16): Used new builtin type.
28360 (vld3_dup_bf16): Used new builtin type.
28361 (vld3q_dup_bf16): Used new builtin type.
28362 (vld4_dup_bf16): Used new builtin type.
28363 (vld4q_dup_bf16): Used new builtin type.
28365 2020-03-11 Jakub Jelinek <jakub@redhat.com>
28368 * config/pdp11/pdp11.c (pdp11_asm_output_var): Call switch_to_section
28369 at the start to switch to data section. Don't print extra newline if
28370 .globl directive has not been emitted.
28372 2020-03-11 Richard Biener <rguenther@suse.de>
28374 * match.pd ((T *)(ptr - ptr-cst) -> &MEM[ptr + -ptr-cst]):
28377 2020-03-11 Eric Botcazou <ebotcazou@adacore.com>
28379 PR middle-end/93961
28380 * tree.c (variably_modified_type_p) <RECORD_TYPE>: Recurse into fields
28381 whose type is a qualified union.
28383 2020-03-11 Jakub Jelinek <jakub@redhat.com>
28386 * config/aarch64/aarch64.c (aarch64_add_offset_1): Use absu_hwi
28387 instead of abs_hwi, change moffset type to unsigned HOST_WIDE_INT.
28390 * value-prof.c (dump_histogram_value): Use abs_hwi instead of
28392 (get_nth_most_common_value): Use abs_hwi instead of abs.
28394 PR middle-end/94111
28395 * dfp.c (decimal_to_binary): Only use decimal128ToString if from->cl
28396 is rvc_normal, otherwise use real_to_decimal to print the number to
28399 PR tree-optimization/94114
28400 * tree-loop-distribution.c (generate_memset_builtin): Call
28401 rewrite_to_non_trapping_overflow even on mem.
28402 (generate_memcpy_builtin): Call rewrite_to_non_trapping_overflow even
28405 2020-03-10 Jeff Law <law@redhat.com>
28407 * config/bfin/bfin.md (movsi_insv): Add length attribute.
28409 2020-03-10 Jiufu Guo <guojiufu@linux.ibm.com>
28412 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): Check
28413 NAN and SIGNED_ZEROR for smax/smin.
28415 2020-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
28418 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
28419 clause to handle P9V_BUILTIN_VEC_LXVL with const arguments.
28421 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
28423 * loop-iv.c (find_simple_exit): Make it static.
28424 * cfgloop.h: Remove the corresponding prototype.
28426 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
28428 * ddg.c (create_ddg): Fix intendation.
28429 (set_recurrence_length): Likewise.
28430 (create_ddg_all_sccs): Likewise.
28432 2020-03-10 Jakub Jelinek <jakub@redhat.com>
28435 * config/i386/i386.md (*testqi_ext_3): Call ix86_match_ccmode with
28436 CCZmode instead of CCNOmode if operands[2] has DImode and pos + len
28439 2020-03-09 Jason Merrill <jason@redhat.com>
28441 * gdbinit.in (pgs): Fix typo in documentation.
28443 2020-03-09 Vladimir Makarov <vmakarov@redhat.com>
28447 2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
28449 PR rtl-optimization/93564
28450 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
28451 do not honor reg alloc order.
28453 2020-03-09 Andrew Pinski <apinski@marvell.com>
28455 PR inline-asm/94095
28456 * doc/extend.texi (x86 Operand Modifiers): Fix column
28459 2020-03-09 Martin Liska <mliska@suse.cz>
28462 * config/rs6000/rs6000.c (rs6000_option_override_internal):
28463 Remove set of str_align_loops and str_align_jumps as these
28464 should be set in previous 2 conditions in the function.
28466 2020-03-09 Jakub Jelinek <jakub@redhat.com>
28468 PR rtl-optimization/94045
28469 * params.opt (-param=max-find-base-term-values=): New option.
28470 * alias.c (find_base_term): Add cut-off for number of visited VALUEs
28471 in a single toplevel find_base_term call.
28473 2020-03-06 Wilco Dijkstra <wdijkstr@arm.com>
28476 * config/aarch64/aarch64-builtins.c (TYPES_TERNOPU_LANE): Add define.
28477 * config/aarch64/aarch64-simd.md
28478 (aarch64_vec_<su>mult_lane<Qlane>): Add new insn for widening lane mul.
28479 (aarch64_vec_<su>mlal_lane<Qlane>): Likewise.
28480 * config/aarch64/aarch64-simd-builtins.def: Add intrinsics.
28481 * config/aarch64/arm_neon.h:
28482 (vmlal_lane_s16): Expand using intrinsics rather than inline asm.
28483 (vmlal_lane_u16): Likewise.
28484 (vmlal_lane_s32): Likewise.
28485 (vmlal_lane_u32): Likewise.
28486 (vmlal_laneq_s16): Likewise.
28487 (vmlal_laneq_u16): Likewise.
28488 (vmlal_laneq_s32): Likewise.
28489 (vmlal_laneq_u32): Likewise.
28490 (vmull_lane_s16): Likewise.
28491 (vmull_lane_u16): Likewise.
28492 (vmull_lane_s32): Likewise.
28493 (vmull_lane_u32): Likewise.
28494 (vmull_laneq_s16): Likewise.
28495 (vmull_laneq_u16): Likewise.
28496 (vmull_laneq_s32): Likewise.
28497 (vmull_laneq_u32): Likewise.
28498 * config/aarch64/iterators.md (Vcondtype): New iterator for lane mul.
28501 2020-03-06 Wilco Dijkstra <wdijkstr@arm.com>
28503 * aarch64/aarch64-simd.md (aarch64_mla_elt<mode>): Correct lane syntax.
28504 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
28505 (aarch64_mls_elt<mode>): Likewise.
28506 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
28507 (aarch64_fma4_elt<mode>): Likewise.
28508 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
28509 (aarch64_fma4_elt_to_64v2df): Likewise.
28510 (aarch64_fnma4_elt<mode>): Likewise.
28511 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
28512 (aarch64_fnma4_elt_to_64v2df): Likewise.
28514 2020-03-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28516 * config/aarch64/aarch64-sve2.md (@aarch64_sve_<sve_int_op><mode>:
28517 Specify movprfx attribute.
28518 (@aarch64_sve_<sve_int_op>_lane_<mode>): Likewise.
28520 2020-03-06 David Edelsohn <dje.gcc@gmail.com>
28523 * config/rs6000/aix61.h (TARGET_NO_SUM_IN_TOC): Set to 1 for
28525 (TARGET_NO_FP_IN_TOC): Same.
28526 * config/rs6000/aix71.h: Same.
28527 * config/rs6000/aix72.h: Same.
28529 2020-03-06 Andrew Pinski <apinski@marvell.com>
28530 Jeff Law <law@redhat.com>
28532 PR rtl-optimization/93996
28533 * haifa-sched.c (remove_notes): Be more careful when adding
28536 2020-03-06 Delia Burduv <delia.burduv@arm.com>
28538 * config/arm/arm_neon.h (vld2_bf16): New.
28544 (vld2_dup_bf16): New.
28545 (vld2q_dup_bf16): New.
28546 (vld3_dup_bf16): New.
28547 (vld3q_dup_bf16): New.
28548 (vld4_dup_bf16): New.
28549 (vld4q_dup_bf16): New.
28550 * config/arm/arm_neon_builtins.def
28551 (vld2): Changed to VAR13 and added v4bf, v8bf
28552 (vld2_dup): Changed to VAR8 and added v4bf, v8bf
28553 (vld3): Changed to VAR13 and added v4bf, v8bf
28554 (vld3_dup): Changed to VAR8 and added v4bf, v8bf
28555 (vld4): Changed to VAR13 and added v4bf, v8bf
28556 (vld4_dup): Changed to VAR8 and added v4bf, v8bf
28557 * config/arm/iterators.md (VDXBF2): New iterator.
28558 *config/arm/neon.md (neon_vld2): Use new iterators.
28559 (neon_vld2_dup<mode): Use new iterators.
28560 (neon_vld3<mode>): Likewise.
28561 (neon_vld3qa<mode>): Likewise.
28562 (neon_vld3qb<mode>): Likewise.
28563 (neon_vld3_dup<mode>): Likewise.
28564 (neon_vld4<mode>): Likewise.
28565 (neon_vld4qa<mode>): Likewise.
28566 (neon_vld4qb<mode>): Likewise.
28567 (neon_vld4_dup<mode>): Likewise.
28568 (neon_vld2_dupv8bf): New.
28569 (neon_vld3_dupv8bf): Likewise.
28570 (neon_vld4_dupv8bf): Likewise.
28572 2020-03-06 Delia Burduv <delia.burduv@arm.com>
28574 * config/arm/arm_neon.h (bfloat16x4x2_t): New typedef.
28575 (bfloat16x8x2_t): New typedef.
28576 (bfloat16x4x3_t): New typedef.
28577 (bfloat16x8x3_t): New typedef.
28578 (bfloat16x4x4_t): New typedef.
28579 (bfloat16x8x4_t): New typedef.
28586 * config/arm/arm-builtins.c (v2bf_UP): Define.
28588 (arm_init_simd_builtin_types): Init Bfloat16x2_t eltype.
28589 * config/arm/arm-modes.def (V2BF): New mode.
28590 * config/arm/arm-simd-builtin-types.def
28591 (Bfloat16x2_t): New entry.
28592 * config/arm/arm_neon_builtins.def
28593 (vst2): Changed to VAR13 and added v4bf, v8bf
28594 (vst3): Changed to VAR13 and added v4bf, v8bf
28595 (vst4): Changed to VAR13 and added v4bf, v8bf
28596 * config/arm/iterators.md (VDXBF): New iterator.
28597 (VQ2BF): New iterator.
28598 *config/arm/neon.md (neon_vst2<mode>): Used new iterators.
28599 (neon_vst2<mode>): Used new iterators.
28600 (neon_vst3<mode>): Used new iterators.
28601 (neon_vst3<mode>): Used new iterators.
28602 (neon_vst3qa<mode>): Used new iterators.
28603 (neon_vst3qb<mode>): Used new iterators.
28604 (neon_vst4<mode>): Used new iterators.
28605 (neon_vst4<mode>): Used new iterators.
28606 (neon_vst4qa<mode>): Used new iterators.
28607 (neon_vst4qb<mode>): Used new iterators.
28609 2020-03-06 Delia Burduv <delia.burduv@arm.com>
28611 * config/aarch64/aarch64-simd-builtins.def
28612 (bfcvtn): New built-in function.
28613 (bfcvtn_q): New built-in function.
28614 (bfcvtn2): New built-in function.
28615 (bfcvt): New built-in function.
28616 * config/aarch64/aarch64-simd.md
28617 (aarch64_bfcvtn<q><mode>): New pattern.
28618 (aarch64_bfcvtn2v8bf): New pattern.
28619 (aarch64_bfcvtbf): New pattern.
28620 * config/aarch64/arm_bf16.h (float32_t): New typedef.
28621 (vcvth_bf16_f32): New intrinsic.
28622 * config/aarch64/arm_bf16.h (vcvt_bf16_f32): New intrinsic.
28623 (vcvtq_low_bf16_f32): New intrinsic.
28624 (vcvtq_high_bf16_f32): New intrinsic.
28625 * config/aarch64/iterators.md (V4SF_TO_BF): New mode iterator.
28626 (UNSPEC_BFCVTN): New UNSPEC.
28627 (UNSPEC_BFCVTN2): New UNSPEC.
28628 (UNSPEC_BFCVT): New UNSPEC.
28629 * config/arm/types.md (bf_cvt): New type.
28631 2020-03-06 Andreas Krebbel <krebbel@linux.ibm.com>
28633 * config/s390/s390.md ("tabort"): Get rid of two consecutive
28634 blanks in format string.
28636 2020-03-05 H.J. Lu <hongjiu.lu@intel.com>
28640 * config/i386/i386-protos.h (ix86_output_ssemov): New prototype.
28641 * config/i386/i386.c (ix86_get_ssemov): New function.
28642 (ix86_output_ssemov): Likewise.
28643 * config/i386/sse.md (VMOVE:mov<mode>_internal): Call
28644 ix86_output_ssemov for TYPE_SSEMOV. Remove TARGET_AVX512VL
28646 (*movxi_internal_avx512f): Call ix86_output_ssemov for TYPE_SSEMOV.
28647 (*movoi_internal_avx): Call ix86_output_ssemov for TYPE_SSEMOV.
28648 Remove ext_sse_reg_operand and TARGET_AVX512VL check.
28649 (*movti_internal): Likewise.
28650 (*movtf_internal): Call ix86_output_ssemov for TYPE_SSEMOV.
28652 2020-03-05 Jeff Law <law@redhat.com>
28654 PR tree-optimization/91890
28655 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Remove LOC argument.
28656 Use gimple_or_expr_nonartificial_location.
28657 (check_bounds_overlap): Drop LOC argument to maybe_diag_access_bounds.
28658 Use gimple_or_expr_nonartificial_location.
28659 * gimple.c (gimple_or_expr_nonartificial_location): New function.
28660 * gimple.h (gimple_or_expr_nonartificial_location): Declare it.
28661 * tree-ssa-strlen.c (maybe_warn_overflow): Use
28662 gimple_or_expr_nonartificial_location.
28663 (maybe_diag_stxncpy_trunc, handle_builtin_stxncpy_strncat): Likewise.
28664 (maybe_warn_pointless_strcmp): Likewise.
28666 2020-03-05 Jakub Jelinek <jakub@redhat.com>
28669 * config/i386/avx2intrin.h (_mm_mask_i32gather_ps): Fix first cast of
28670 SRC and MASK arguments to __m128 from __m128d.
28671 (_mm256_mask_i32gather_ps): Fix first cast of MASK argument to __m256
28673 (_mm_mask_i64gather_ps): Fix first cast of MASK argument to __m128
28675 * config/i386/xopintrin.h (_mm_permute2_pd): Fix first cast of C
28676 argument to __m128i from __m128d.
28677 (_mm256_permute2_pd): Fix first cast of C argument to __m256i from
28679 (_mm_permute2_ps): Fix first cast of C argument to __m128i from __m128.
28680 (_mm256_permute2_ps): Fix first cast of C argument to __m256i from
28683 2020-03-05 Delia Burduv <delia.burduv@arm.com>
28685 * config/arm/arm_neon.h (vbfmmlaq_f32): New.
28686 (vbfmlalbq_f32): New.
28687 (vbfmlaltq_f32): New.
28688 (vbfmlalbq_lane_f32): New.
28689 (vbfmlaltq_lane_f32): New.
28690 (vbfmlalbq_laneq_f32): New.
28691 (vbfmlaltq_laneq_f32): New.
28692 * config/arm/arm_neon_builtins.def (vmmla): New.
28697 (vfmab_laneq): New.
28698 (vfmat_laneq): New.
28699 * config/arm/iterators.md (BF_MA): New int iterator.
28700 (bt): New int attribute.
28701 (VQXBF): Copy of VQX with V8BF.
28702 * config/arm/neon.md (neon_vmmlav8bf): New insn.
28703 (neon_vfma<bt>v8bf): New insn.
28704 (neon_vfma<bt>_lanev8bf): New insn.
28705 (neon_vfma<bt>_laneqv8bf): New expand.
28706 (neon_vget_high<mode>): Changed iterator to VQXBF.
28707 * config/arm/unspecs.md (UNSPEC_BFMMLA): New UNSPEC.
28708 (UNSPEC_BFMAB): New UNSPEC.
28709 (UNSPEC_BFMAT): New UNSPEC.
28711 2020-03-05 Jakub Jelinek <jakub@redhat.com>
28713 PR middle-end/93399
28714 * tree-pretty-print.h (pretty_print_string): Declare.
28715 * tree-pretty-print.c (pretty_print_string): Remove forward
28716 declaration, no longer static. Change nbytes parameter type
28717 from unsigned to size_t.
28718 * print-rtl.c (print_value) <case CONST_STRING>: Use
28719 pretty_print_string and for shrink way too long strings.
28721 2020-03-05 Richard Biener <rguenther@suse.de>
28722 Jakub Jelinek <jakub@redhat.com>
28724 PR tree-optimization/93582
28725 * tree-ssa-sccvn.c (vn_reference_lookup_3): Treat POINTER_PLUS_EXPR
28726 last operand as signed when looking for memset offset. Formatting
28729 2020-03-04 Andrew Pinski <apinski@marvell.com>
28732 * value-prof.c (dump_histogram_value): Use std::abs.
28734 2020-03-04 Martin Sebor <msebor@redhat.com>
28736 PR tree-optimization/93986
28737 * tree-ssa-strlen.c (maybe_warn_overflow): Convert all wide_int
28738 operands to the same precision widest_int to avoid ICEs.
28740 2020-03-04 Bill Schmidt <wschmidt@linux.ibm.com>
28743 * rs6000-cpus.def (OTHER_ALTIVEC_MASKS): New #define.
28744 * rs6000.c (rs6000_disable_incompatible_switches): Add table entry
28745 for OPTION_MASK_ALTIVEC.
28747 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
28749 * config.gcc: Include the glibc-stdint.h header for zTPF.
28751 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
28753 * config/s390/s390.c (s390_secondary_memory_needed): Disallow
28754 direct FPR-GPR copies.
28755 (s390_register_info_gprtofpr): Disallow GPR content to be saved in
28758 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
28760 * config/s390/s390.c (s390_emit_prologue): Specify the 2 new
28761 operands to the prologue_tpf expander.
28762 (s390_emit_epilogue): Likewise.
28763 (s390_option_override_internal): Do error checking and setup for
28765 * config/s390/tpf.h (TPF_TRACE_PROLOGUE_CHECK)
28766 (TPF_TRACE_EPILOGUE_CHECK, TPF_TRACE_PROLOGUE_TARGET)
28767 (TPF_TRACE_EPILOGUE_TARGET, TPF_TRACE_PROLOGUE_SKIP_TARGET)
28768 (TPF_TRACE_EPILOGUE_SKIP_TARGET): New macro definitions.
28769 * config/s390/tpf.md ("prologue_tpf", "epilogue_tpf"): Add two new
28770 operands for the check flag and the branch target.
28771 * config/s390/tpf.opt ("mtpf-trace-hook-prologue-check")
28772 ("mtpf-trace-hook-prologue-target")
28773 ("mtpf-trace-hook-epilogue-check")
28774 ("mtpf-trace-hook-epilogue-target", "mtpf-trace-skip"): New
28776 * doc/invoke.texi: Document -mtpf-trace-skip option. The other
28777 options are for debugging purposes and will not be documented
28780 2020-03-04 Jakub Jelinek <jakub@redhat.com>
28783 * tree-inline.c (copy_decl_to_var): Copy DECL_BY_REFERENCE flag.
28785 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Add offseti
28786 argument. Change pd argument so that it can be modified. Turn
28787 constant non-CONSTRUCTOR store into non-constant if it is too large.
28788 Adjust offset and size of CONSTRUCTOR or non-constant store to avoid
28790 (vn_walk_cb_data::vn_walk_cb_data, vn_reference_lookup_3): Adjust
28793 2020-02-04 Richard Biener <rguenther@suse.de>
28795 PR tree-optimization/93964
28796 * graphite-isl-ast-to-gimple.c
28797 (gcc_expression_from_isl_ast_expr_id): Add intermediate
28798 conversion for pointer to integer converts.
28799 * graphite-scop-detection.c (assign_parameter_index_in_region):
28802 2020-03-04 Martin Liska <mliska@suse.cz>
28806 * doc/invoke.texi: Clarify --help=language and --help=common
28809 2020-03-04 Jakub Jelinek <jakub@redhat.com>
28811 PR tree-optimization/94001
28812 * tree-tailcall.c (process_assignment): Before comparing op1 to
28813 *ass_var, verify *ass_var is non-NULL.
28815 2020-03-04 Kito Cheng <kito.cheng@sifive.com>
28818 * config/riscv/riscv.c (riscv_emit_float_compare): Using NE to compare
28821 2020-03-03 Dennis Zhang <dennis.zhang@arm.com>
28823 * config/arm/arm_bf16.h (vcvtah_f32_bf16, vcvth_bf16_f32): New.
28824 * config/arm/arm_neon.h (vcvt_f32_bf16, vcvtq_low_f32_bf16): New.
28825 (vcvtq_high_f32_bf16, vcvt_bf16_f32): New.
28826 (vcvtq_low_bf16_f32, vcvtq_high_bf16_f32): New.
28827 * config/arm/arm_neon_builtins.def (vbfcvt, vbfcvt_high): New entries.
28828 (vbfcvtv4sf, vbfcvtv4sf_high): Likewise.
28829 * config/arm/iterators.md (VBFCVT, VBFCVTM): New mode iterators.
28830 (V_bf_low, V_bf_cvt_m): New mode attributes.
28831 * config/arm/neon.md (neon_vbfcvtv4sf<VBFCVT:mode>): New.
28832 (neon_vbfcvtv4sf_highv8bf, neon_vbfcvtsf): New.
28833 (neon_vbfcvt<VBFCVT:mode>, neon_vbfcvt_highv8bf): New.
28834 (neon_vbfcvtbf_cvtmode<mode>, neon_vbfcvtbf): New
28835 * config/arm/unspecs.md (UNSPEC_BFCVT, UNSPEC_BFCVT_HIG): New.
28837 2020-03-03 Jakub Jelinek <jakub@redhat.com>
28839 PR tree-optimization/93582
28840 * tree-ssa-sccvn.h (vn_reference_lookup): Add mask argument.
28841 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add mask and masked_result
28842 members, initialize them in the constructor and if mask is non-NULL,
28843 artificially push_partial_def {} for the portions of the mask that
28845 (vn_walk_cb_data::finish): If mask is non-NULL, set masked_result to
28846 val and return (void *)-1. Formatting fix.
28847 (vn_reference_lookup_pieces): Adjust vn_walk_cb_data initialization.
28849 (vn_reference_lookup): Add mask argument. If non-NULL, don't call
28850 fully_constant_vn_reference_p nor vn_reference_lookup_1 and return
28852 (visit_nary_op): Handle BIT_AND_EXPR of a memory load and INTEGER_CST
28854 (visit_stmt): Formatting fix.
28856 2020-03-03 Richard Biener <rguenther@suse.de>
28858 PR tree-optimization/93946
28859 * alias.h (refs_same_for_tbaa_p): Declare.
28860 * alias.c (refs_same_for_tbaa_p): New function.
28861 * tree-ssa-alias.c (ao_ref_alias_set): For a NULL ref return
28863 * tree-ssa-scopedtables.h
28864 (avail_exprs_stack::lookup_avail_expr): Add output argument
28865 giving access to the hashtable entry.
28866 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
28868 * tree-ssa-dom.c: Include alias.h.
28869 (dom_opt_dom_walker::optimize_stmt): Validate TBAA state before
28870 removing redundant store.
28871 * tree-ssa-sccvn.h (vn_reference_s::base_set): New member.
28872 (ao_ref_init_from_vn_reference): Adjust prototype.
28873 (vn_reference_lookup_pieces): Likewise.
28874 (vn_reference_insert_pieces): Likewise.
28875 * tree-ssa-sccvn.c: Track base alias set in addition to alias
28877 (eliminate_dom_walker::eliminate_stmt): Also check base alias
28878 set when removing redundant stores.
28879 (visit_reference_op_store): Likewise.
28880 * dse.c (record_store): Adjust valdity check for redundant
28883 2020-03-03 Jakub Jelinek <jakub@redhat.com>
28886 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Reorder.
28888 PR rtl-optimization/94002
28889 * explow.c (plus_constant): Punt if cst has VOIDmode and
28890 get_pool_mode is different from mode.
28892 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
28894 * config/arc/arc.c (leigitimate_small_data_address_p): Check if an
28895 address has an offset which fits the scalling constraint for a
28896 load/store operation.
28897 (legitimate_scaled_address_p): Update use
28898 leigitimate_small_data_address_p.
28899 (arc_print_operand): Likewise.
28900 (arc_legitimate_address_p): Likewise.
28901 (legitimate_small_data_address_p): Likewise.
28903 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
28905 * config/arc/arc.md (fmasf4_fpu): Use accl_operand predicate.
28906 (fnmasf4_fpu): Likewise.
28908 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
28910 * config/arc/arc.md (adddi3): Early expand the 64bit operation into
28912 (subdi3): Likewise.
28913 (adddi3_i): Remove pattern.
28914 (subdi3_i): Likewise.
28916 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
28918 * config/arc/arc.md (eh_return): Add length info.
28920 2020-03-02 David Malcolm <dmalcolm@redhat.com>
28922 * doc/invoke.texi (-fanalyzer-show-duplicate-count): New.
28924 2020-03-02 David Malcolm <dmalcolm@redhat.com>
28926 * doc/invoke.texi (Static Analyzer Options): Add
28927 -Wanalyzer-stale-setjmp-buffer to the list of options enabled
28930 2020-03-02 Uroš Bizjak <ubizjak@gmail.com>
28933 * config/i386/i386.md (movstrict<mode>): Allow only
28934 registers with VALID_INT_MODE_P modes.
28936 2020-03-02 Andrew Stubbs <ams@codesourcery.com>
28938 * config/gcn/gcn-valu.md (dpp_move<mode>): New.
28939 (reduc_insn): Use 'U' and 'B' operand codes.
28940 (reduc_<reduc_op>_scal_<mode>): Allow all types.
28941 (reduc_<reduc_op>_scal_v64di): Delete.
28942 (*<reduc_op>_dpp_shr_<mode>): Allow all 1reg types.
28943 (*plus_carry_dpp_shr_v64si): Change to ...
28944 (*plus_carry_dpp_shr_<mode>): ... this and allow all 1reg int types.
28945 (mov_from_lane63_v64di): Change to ...
28946 (mov_from_lane63_<mode>): ... this, and allow all 64-bit modes.
28947 * config/gcn/gcn.c (gcn_expand_dpp_shr_insn): Increase buffer size.
28948 Support UNSPEC_MOV_DPP_SHR output formats.
28949 (gcn_expand_reduc_scalar): Add "use_moves" reductions.
28950 Add "use_extends" reductions.
28951 (print_operand_address): Add 'I' and 'U' codes.
28952 * config/gcn/gcn.md (unspec): Add UNSPEC_MOV_DPP_SHR.
28954 2020-03-02 Martin Liska <mliska@suse.cz>
28956 * lto-wrapper.c: Fix typo in comment about
28957 C++ standard version.
28959 2020-03-01 Martin Sebor <msebor@redhat.com>
28962 * calls.c (init_attr_rdwr_indices): Correctly handle attribute.
28964 2020-03-01 Martin Sebor <msebor@redhat.com>
28966 PR middle-end/93829
28967 * tree-ssa-strlen.c (count_nonzero_bytes): Set the size to that
28968 of a pointer in the outermost ADDR_EXPRs.
28970 2020-02-28 Jeff Law <law@redhat.com>
28972 * config/v850/v850.h (STATIC_CHAIN_REGNUM): Change to r19.
28973 * config/v850/v850.c (v850_asm_trampoline_template): Update
28976 2020-02-28 Michael Meissner <meissner@linux.ibm.com>
28979 * config/rs6000/vsx.md (vsx_extract_<mode>_<VS_scalar>mode_var):
28982 2020-02-28 Martin Liska <mliska@suse.cz>
28985 * configure.ac: Improve detection of ld_date by requiring
28986 either two dashes or none.
28987 * configure: Regenerate.
28989 2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
28991 PR rtl-optimization/93564
28992 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
28993 do not honor reg alloc order.
28995 2020-02-27 Joel Hutton <Joel.Hutton@arm.com>
28998 * config/aarch64/aarch64.c (aarch64_override_options): Fix
28999 misleading warning string.
29001 2020-02-27 Martin Sebor <msebor@redhat.com>
29003 * doc/invoke.texi (-Wbuiltin-declaration-mismatch): Fix a typo.
29005 2020-02-27 Michael Meissner <meissner@linux.ibm.com>
29008 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
29009 Split the insn into two parts. This insn only does variable
29010 extract from a register.
29011 (vsx_extract_<mode>_var_load, VSX_D iterator): New insn, do
29012 variable extract from memory.
29013 (vsx_extract_v4sf_var): Split the insn into two parts. This insn
29014 only does variable extract from a register.
29015 (vsx_extract_v4sf_var_load): New insn, do variable extract from
29017 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Split the insn
29018 into two parts. This insn only does variable extract from a
29020 (vsx_extract_<mode>_var_load, VSX_EXTRACT_I iterator): New insn,
29021 do variable extract from memory.
29023 2020-02-27 Martin Jambor <mjambor@suse.cz>
29024 Feng Xue <fxue@os.amperecomputing.com>
29027 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): Replaced with
29028 new function calls_same_node_or_its_all_contexts_clone_p.
29029 (cgraph_edge_brings_value_p): Use it.
29030 (cgraph_edge_brings_value_p): Likewise.
29031 (self_recursive_pass_through_p): Return false if caller is a clone.
29032 (self_recursive_agg_pass_through_p): Likewise.
29034 2020-02-27 Jan Hubicka <hubicka@ucw.cz>
29036 PR middle-end/92152
29037 * alias.c (ends_tbaa_access_path_p): Break out from ...
29038 (component_uses_parent_alias_set_from): ... here.
29039 * alias.h (ends_tbaa_access_path_p): Declare.
29040 * tree-ssa-alias.c (access_path_may_continue_p): Break out from ...;
29041 handle trailing arrays past end of tbaa access path.
29042 (aliasing_component_refs_p): ... here; likewise.
29043 (nonoverlapping_refs_since_match_p): Track TBAA segment of the access
29044 path; disambiguate also past end of it.
29045 (nonoverlapping_component_refs_p): Use only TBAA segment of the access
29048 2020-02-27 Mihail Ionescu <mihail.ionescu@arm.com>
29050 * (__ARM_NUM_LANES, __arm_lane, __arm_lane_q): Move to the
29051 beginning of the file.
29052 (vcreate_bf16, vcombine_bf16): New.
29053 (vdup_n_bf16, vdupq_n_bf16): New.
29054 (vdup_lane_bf16, vdup_laneq_bf16): New.
29055 (vdupq_lane_bf16, vdupq_laneq_bf16): New.
29056 (vduph_lane_bf16, vduph_laneq_bf16): New.
29057 (vset_lane_bf16, vsetq_lane_bf16): New.
29058 (vget_lane_bf16, vgetq_lane_bf16): New.
29059 (vget_high_bf16, vget_low_bf16): New.
29060 (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
29061 (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
29062 (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
29063 (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
29064 (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
29065 (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
29066 (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
29067 (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
29068 (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
29069 (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
29070 (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New.
29071 (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
29072 (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
29073 (vreinterpretq_bf16_p128): New.
29074 (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
29075 (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
29076 (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
29077 (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
29078 (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
29079 (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
29080 (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
29081 (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
29082 (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
29083 (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
29084 (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
29085 (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
29086 (vreinterpretq_p128_bf16): New.
29087 * config/arm/arm_neon_builtins.def (VDX): Add V4BF.
29088 (V_elem): Likewise.
29089 (V_elem_l): Likewise.
29090 (VD_LANE): Likewise.
29092 (V_DOUBLE): Likewise.
29093 (VDQX): Add V4BF and V8BF.
29094 (V_two_elem, V_three_elem, V_four_elem): Likewise.
29096 (V_HALF): Likewise.
29097 (V_double_vector_mode): Likewise.
29098 (V_cmp_result): Likewise.
29099 (V_uf_sclr): Likewise.
29100 (V_sz_elem): Likewise.
29101 (Is_d_reg): Likewise.
29102 (V_mode_nunits): Likewise.
29103 * config/arm/neon.md (neon_vdup_lane): Enable for BFloat16.
29105 2020-02-27 Andrew Stubbs <ams@codesourcery.com>
29107 * config/gcn/gcn-valu.md (VEC_SUBDWORD_MODE): New mode iterator.
29108 (<expander><mode>2<exec>): Change modes to VEC_ALL1REG_INT_MODE.
29109 (<expander><mode>3<exec>): Likewise.
29110 (<expander><mode>3): New.
29111 (v<expander><mode>3): New.
29112 (<expander><mode>3): New.
29113 (<expander><mode>3<exec>): Rename to ...
29114 (<expander>v64si3<exec>): ... this, and change modes to V64SI.
29115 * config/gcn/gcn.md (mnemonic): Use '%B' for not.
29117 2020-02-27 Alexandre Oliva <oliva@adacore.com>
29119 * config/vx-common.h (NO_DOLLAR_IN_LABEL, NO_DOT_IN_LABEL): Leave
29122 2020-02-27 Richard Biener <rguenther@suse.de>
29124 PR tree-optimization/93508
29125 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle _CHK like
29126 non-_CHK variants. Valueize their length arguments.
29128 2020-02-27 Richard Biener <rguenther@suse.de>
29130 PR tree-optimization/93953
29131 * tree-vect-slp.c (slp_copy_subtree): Avoid keeping a reference
29132 to the hash-map entry.
29134 2020-02-27 Andrew Stubbs <ams@codesourcery.com>
29136 * config/gcn/gcn.md (mov<mode>): Add transformations for BI subregs.
29138 2020-02-27 Mark Williams <mwilliams@fb.com>
29140 * dwarf2out.c (file_name_acquire): Call remap_debug_filename.
29141 * lto-opts.c (lto_write_options): Drop -fdebug-prefix-map,
29142 -ffile-prefix-map and -fmacro-prefix-map.
29143 * lto-streamer-out.c: Include file-prefix-map.h.
29144 (lto_output_location): Remap the file part of locations.
29146 2020-02-27 Jakub Jelinek <jakub@redhat.com>
29149 * gimplify.c (gimplify_init_constructor): Don't promote readonly
29150 DECL_REGISTER variables to TREE_STATIC.
29152 PR tree-optimization/93582
29153 PR tree-optimization/93945
29154 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle memset with
29155 non-zero INTEGER_CST second argument and ref->offset or ref->size
29156 not a multiple of BITS_PER_UNIT.
29158 2020-02-27 Jonathan Wakely <jwakely@redhat.com>
29160 * doc/install.texi (Binaries): Update description of BullFreeware.
29162 2020-02-26 Sandra Loosemore <sandra@codesourcery.com>
29166 * doc/invoke.texi (Option Summary): Re-alphabetize warnings in
29167 C++ Language Options, Warning Options, and Static Analyzer
29168 Options lists. Document negative form of options enabled by
29169 default. Move some things around to more accurately sort
29170 warnings by category.
29171 (C++ Dialect Options, Warning Options, Static Analyzer
29172 Options): Document negative form of options when enabled by
29173 default. Move some things around to more accurately sort
29174 warnings by category. Add some missing index entries.
29175 Light copy-editing.
29177 2020-02-26 Carl Love <cel@us.ibm.com>
29180 * doc/extend.texi (PowerPC AltiVec Built-in Functions available on
29181 ISA 2.07): The builtin-function name __builtin_crypto_vpmsumb is only
29182 for the vector unsigned short arguments. It is also listed as the
29183 name of the built-in for arguments vector unsigned short,
29184 vector unsigned int and vector unsigned long long built-ins. The
29185 name of the builtins for these arguments should be:
29186 __builtin_crypto_vpmsumh, __builtin_crypto_vpmsumw and
29187 __builtin_crypto_vpmsumd respectively.
29189 2020-02-26 Richard Biener <rguenther@suse.de>
29191 * tree-vect-slp.c (vect_print_slp_tree): Also dump ref count
29192 and load permutation.
29194 2020-02-26 Richard Sandiford <richard.sandiford@arm.com>
29196 PR middle-end/93843
29197 * optabs-tree.c (supportable_convert_operation): Reject types with
29200 2020-02-26 David Malcolm <dmalcolm@redhat.com>
29202 * Makefile.in (ANALYZER_OBJS): Add analyzer/bar-chart.o.
29204 2020-02-26 Jakub Jelinek <jakub@redhat.com>
29206 PR tree-optimization/93820
29207 * gimple-ssa-store-merging.c (check_no_overlap): Change RHS_CODE
29208 argument to ALL_INTEGER_CST_P boolean.
29209 (imm_store_chain_info::try_coalesce_bswap): Adjust caller.
29210 (imm_store_chain_info::coalesce_immediate_stores): Likewise. Handle
29211 adjacent INTEGER_CST store into merged_store->only_constants like
29214 2020-02-25 Jakub Jelinek <jakub@redhat.com>
29217 * config/sh/sh.c (expand_cbranchdi4): Fix comment typo, probablity
29219 * cfghooks.c (verify_flow_info): Likewise.
29220 * predict.c (combine_predictions_for_bb): Likewise.
29221 * bb-reorder.c (connect_better_edge_p): Likewise. Fix comment typo,
29222 sucessor -> successor.
29223 (find_traces_1_round): Fix comment typo, destinarion -> destination.
29224 * omp-expand.c (expand_oacc_for): Fix comment typo, sucessors ->
29226 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Fix dump
29227 message typo, sucessors -> successors.
29229 2020-02-25 Martin Sebor <msebor@redhat.com>
29231 * doc/extend.texi (attribute access): Correct an example.
29233 2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
29235 * config/aarch64/aarch64-builtins.c (aarch64_scalar_builtin_types):
29237 (aarch64_init_simd_builtin_scalar_types): Register simd_bf.
29238 (VAR15, VAR16): New.
29239 * config/aarch64/iterators.md (VALLDIF): Enable for V4BF and V8BF.
29240 (VD): Enable for V4BF.
29242 (VQ): Enable for V8BF.
29244 (VQ_NO2E): Likewise.
29245 (VDBL, Vdbl): Add V4BF.
29246 (V_INT_EQUIV, v_int_equiv): Add V4BF and V8BF.
29247 * config/aarch64/arm_neon.h (bfloat16x4x2_t): New typedef.
29248 (bfloat16x8x2_t): Likewise.
29249 (bfloat16x4x3_t): Likewise.
29250 (bfloat16x8x3_t): Likewise.
29251 (bfloat16x4x4_t): Likewise.
29252 (bfloat16x8x4_t): Likewise.
29253 (vcombine_bf16): New.
29254 (vld1_bf16, vld1_bf16_x2): New.
29255 (vld1_bf16_x3, vld1_bf16_x4): New.
29256 (vld1q_bf16, vld1q_bf16_x2): New.
29257 (vld1q_bf16_x3, vld1q_bf16_x4): New.
29258 (vld1_lane_bf16): New.
29259 (vld1q_lane_bf16): New.
29260 (vld1_dup_bf16): New.
29261 (vld1q_dup_bf16): New.
29264 (vld2_dup_bf16): New.
29265 (vld2q_dup_bf16): New.
29268 (vld3_dup_bf16): New.
29269 (vld3q_dup_bf16): New.
29272 (vld4_dup_bf16): New.
29273 (vld4q_dup_bf16): New.
29274 (vst1_bf16, vst1_bf16_x2): New.
29275 (vst1_bf16_x3, vst1_bf16_x4): New.
29276 (vst1q_bf16, vst1q_bf16_x2): New.
29277 (vst1q_bf16_x3, vst1q_bf16_x4): New.
29278 (vst1_lane_bf16): New.
29279 (vst1q_lane_bf16): New.
29287 2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
29289 * config/aarch64/iterators.md (VDQF_F16) Add V4BF and V8BF.
29290 (VALL_F16): Likewise.
29291 (VALLDI_F16): Likewise.
29293 (Vetype): Likewise.
29294 (vswap_width_name): Likewise.
29295 (VSWAP_WIDTH): Likewise.
29299 * config/aarch64/arm_neon.h (vset_lane_bf16, vsetq_lane_bf16): New.
29300 (vget_lane_bf16, vgetq_lane_bf16): New.
29301 (vcreate_bf16): New.
29302 (vdup_n_bf16, vdupq_n_bf16): New.
29303 (vdup_lane_bf16, vdup_laneq_bf16): New.
29304 (vdupq_lane_bf16, vdupq_laneq_bf16): New.
29305 (vduph_lane_bf16, vduph_laneq_bf16): New.
29306 (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
29307 (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
29308 (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
29309 (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
29310 (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
29311 (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
29312 (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
29313 (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
29314 (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
29315 (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
29316 (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New
29317 (vreinterpret_bf16_f16, vreinterpretq_bf16_f16): New
29318 (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
29319 (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
29320 (vreinterpretq_bf16_p128): New.
29321 (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
29322 (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
29323 (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
29324 (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
29325 (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
29326 (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
29327 (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
29328 (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
29329 (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
29330 (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
29331 (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
29332 (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
29333 (vreinterpret_f64_bf16,vreinterpretq_f64_bf16): New.
29334 (vreinterpret_f16_bf16,vreinterpretq_f16_bf16): New.
29335 (vreinterpretq_p128_bf16): New.
29337 2020-02-25 Dennis Zhang <dennis.zhang@arm.com>
29339 * config/arm/arm_neon.h (vbfdot_f32, vbfdotq_f32): New
29340 (vbfdot_lane_f32, vbfdotq_laneq_f32): New.
29341 (vbfdot_laneq_f32, vbfdotq_lane_f32): New.
29342 * config/arm/arm_neon_builtins.def (vbfdot): New entry.
29343 (vbfdot_lanev4bf, vbfdot_lanev8bf): Likewise.
29344 * config/arm/iterators.md (VSF2BF): New attribute.
29345 * config/arm/neon.md (neon_vbfdot<VCVTF:mode>): New entry.
29346 (neon_vbfdot_lanev4bf<VCVTF:mode>): Likewise.
29347 (neon_vbfdot_lanev8bf<VCVTF:mode>): Likewise.
29349 2020-02-25 Christophe Lyon <christophe.lyon@linaro.org>
29351 * config/arm/arm.md (required_for_purecode): New attribute.
29352 (enabled): Handle required_for_purecode.
29353 * config/arm/thumb1.md (thumb1_movsi_insn): Add alternative to
29354 work with -mpure-code.
29356 2020-02-25 Jakub Jelinek <jakub@redhat.com>
29358 PR rtl-optimization/93908
29359 * combine.c (find_split_point): For store into ZERO_EXTRACT, and src
29362 2019-02-25 Eric Botcazou <ebotcazou@adacore.com>
29364 * dwarf2out.c (dwarf2out_size_function): Run in early-DWARF mode.
29366 2020-02-25 Roman Zhuykov <zhroma@ispras.ru>
29368 * doc/install.texi (--enable-checking): Adjust wording.
29370 2020-02-25 Richard Biener <rguenther@suse.de>
29372 PR tree-optimization/93868
29373 * tree-vect-slp.c (slp_copy_subtree): New function.
29374 (vect_attempt_slp_rearrange_stmts): Copy the SLP tree before
29375 re-arranging stmts in it.
29377 2020-02-25 Jakub Jelinek <jakub@redhat.com>
29379 PR middle-end/93874
29380 * passes.c (pass_manager::dump_passes): Create a cgraph node for the
29381 dummy function and remove it at the end.
29383 PR translation/93864
29384 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Fix comment typo
29385 paramter -> parameter.
29386 * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Likewise.
29387 * ipa-prop.h (struct ipa_agg_replacement_value): Likewise.
29389 2020-02-24 Roman Zhuykov <zhroma@ispras.ru>
29391 * doc/install.texi (--enable-checking): Properly document current
29393 (--enable-stage1-checking): Minor clarification about bootstrap.
29395 2020-02-24 David Malcolm <dmalcolm@redhat.com>
29398 * doc/invoke.texi (-Wnanalyzer-tainted-array-index): Note that
29399 -fanalyzer-checker=taint is also required.
29400 (-fanalyzer-checker=): Note that providing this option enables the
29401 given checker, and doing so may be required for checkers that are
29402 disabled by default.
29404 2020-02-24 David Malcolm <dmalcolm@redhat.com>
29406 * doc/invoke.texi (-fanalyzer-verbosity=): "2" only shows
29407 significant control flow events; add a "3" which shows all
29408 control flow events; the old "3" becomes "4".
29410 2020-02-24 Jakub Jelinek <jakub@redhat.com>
29412 PR tree-optimization/93582
29413 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Consider
29414 pd.offset and pd.size to be counted in bits rather than bytes, add
29415 support for maxsizei that is not a multiple of BITS_PER_UNIT and
29416 handle bitfield stores and loads.
29417 (vn_reference_lookup_3): Don't call ranges_known_overlap_p with
29418 uncomparable quantities - bytes vs. bits. Allow push_partial_def
29419 on offsets/sizes that aren't multiple of BITS_PER_UNIT and adjust
29420 pd.offset/pd.size to be counted in bits rather than bytes.
29421 Formatting fix. Rename shadowed len variable to buflen.
29423 2020-02-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29424 Kugan Vivekandarajah <kugan.vivekanandarajah@linaro.org>
29427 * gcc.c (putenv_COLLECT_AS_OPTIONS): New function.
29428 (driver::main): Call putenv_COLLECT_AS_OPTIONS.
29429 * opts-common.c (parse_options_from_collect_gcc_options): New function.
29430 (prepend_xassembler_to_collect_as_options): Likewise.
29431 * opts.h (parse_options_from_collect_gcc_options): Declare prototype.
29432 (prepend_xassembler_to_collect_as_options): Likewise.
29433 * lto-opts.c (lto_write_options): Stream assembler options
29434 in COLLECT_AS_OPTIONS.
29435 * lto-wrapper.c (xassembler_options_error): New static variable.
29436 (get_options_from_collect_gcc_options): Move parsing options code to
29437 parse_options_from_collect_gcc_options and call it.
29438 (merge_and_complain): Validate -Xassembler options.
29439 (append_compiler_options): Handle OPT_Xassembler.
29440 (run_gcc): Append command line -Xassembler options to
29441 collect_gcc_options.
29442 * doc/invoke.texi: Add documentation about using Xassembler
29445 2020-02-24 Kito Cheng <kito.cheng@sifive.com>
29447 * config/riscv/riscv.c (riscv_emit_float_compare): Change the code gen
29449 (riscv_rtx_costs): Update cost model for LTGT.
29451 2020-02-23 Vladimir Makarov <vmakarov@redhat.com>
29453 PR rtl-optimization/93564
29454 * ira-color.c (struct update_cost_queue_elem): New member start.
29455 (queue_update_cost, get_next_update_cost): Add new arg start.
29456 (allocnos_conflict_p): New function.
29457 (update_costs_from_allocno): Add new arg conflict_cost_update_p.
29458 Add checking conflicts with allocnos_conflict_p.
29459 (update_costs_from_prefs, restore_costs_from_copies): Adjust
29460 update_costs_from_allocno calls.
29461 (update_conflict_hard_regno_costs): Add checking conflicts with
29462 allocnos_conflict_p. Adjust calls of queue_update_cost and
29463 get_next_update_cost.
29464 (assign_hard_reg): Adjust calls of queue_update_cost. Add
29466 (bucket_allocno_compare_func): Restore previous version.
29468 2020-02-21 John David Anglin <danglin@gcc.gnu.org>
29470 * config/pa/pa.c (pa_function_value): Fix check for word and
29471 double-word size when handling aggregate return values.
29472 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Fix to indicate
29473 that homogeneous SFmode and DFmode aggregates are passed and returned
29474 in general registers.
29476 2020-02-21 Jakub Jelinek <jakub@redhat.com>
29478 PR translation/93759
29479 * opts.c (print_filtered_help): Translate help before appending
29480 messages to it rather than after that.
29482 2020-02-19 Richard Sandiford <richard.sandiford@arm.com>
29484 PR rtl-optimization/PR92989
29485 * lra-lives.c (process_bb_lives): Restore the original order
29486 of the bb liveness update. Call make_hard_regno_dead for each
29487 register clobbered at the start of an EH receiver.
29489 2020-02-18 Feng Xue <fxue@os.amperecomputing.com>
29492 * ipa-cp.c (self_recursively_generated_p): Mark self-dependent value as
29493 self-recursively generated.
29495 2020-02-21 Iain Sandoe <iain@sandoe.co.uk>
29498 * config/darwin-c.c (pop_field_alignment): Adjust quoting of
29501 2020-02-21 Mihail Ionescu <mihail.ionescu@arm.com>
29503 * doc/sourcebuild.texi (arm_v8_1m_mve_ok):
29504 Document new target supports option.
29506 2020-02-21 Dennis Zhang <dennis.zhang@arm.com>
29508 * config/arm/arm_neon.h (vmmlaq_s32, vmmlaq_u32, vusmmlaq_s32): New.
29509 * config/arm/arm_neon_builtins.def (smmla, ummla, usmmla): New.
29510 * config/arm/iterators.md (MATMUL): New iterator.
29511 (sup): Add UNSPEC_MATMUL_S, UNSPEC_MATMUL_U, and UNSPEC_MATMUL_US.
29512 (mmla_sfx): New attribute.
29513 * config/arm/neon.md (neon_<sup>mmlav16qi): New.
29514 * config/arm/unspecs.md (UNSPEC_MATMUL_S, UNSPEC_MATMUL_U): New.
29515 (UNSPEC_MATMUL_US): New.
29517 2020-02-21 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29519 * config/arm/arm.md: Prevent scalar shifts from being used when big
29522 2020-02-21 Jan Hubicka <hubicka@ucw.cz>
29523 Richard Biener <rguenther@suse.de>
29525 PR tree-optimization/93586
29526 * tree-ssa-alias.c (nonoverlapping_array_refs_p): Finish array walk
29527 after mismatched array refs; do not sure type size information to
29528 recover from unmatched referneces with !flag_strict_aliasing_p.
29530 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
29532 * config/gcn/gcn-valu.md (gather_load<mode>): Rename to ...
29533 (gather_load<mode>v64si): ... this and set operand 2 to V64SI.
29534 (scatter_store<mode>): Rename to ...
29535 (scatter_store<mode>v64si): ... this and set operand 1 to V64SI.
29536 (scatter<mode>_exec): Delete. Move contents ...
29537 (mask_scatter_store<mode>): ... here, and rename that to ...
29538 (mask_gather_load<mode>v64si): ... this. Set operand 2 to V64SI.
29539 Remove mode conversion.
29540 (mask_gather_load<mode>): Rename to ...
29541 (mask_scatter_store<mode>v64si): ... this. Set operand 1 to V64SI.
29542 Remove mode conversion.
29543 * config/gcn/gcn.c (gcn_expand_scaled_offsets): Remove mode conversion.
29545 2020-02-21 Martin Jambor <mjambor@suse.cz>
29547 PR tree-optimization/93845
29548 * tree-sra.c (verify_sra_access_forest): Only test access size of
29551 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
29553 * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align VGPR pairs.
29554 * config/gcn/gcn-valu.md (addv64di3): Remove early-clobber.
29555 (addv64di3_exec): Likewise.
29556 (subv64di3): Likewise.
29557 (subv64di3_exec): Likewise.
29558 (addv64di3_zext): Likewise.
29559 (addv64di3_zext_exec): Likewise.
29560 (addv64di3_zext_dup): Likewise.
29561 (addv64di3_zext_dup_exec): Likewise.
29562 (addv64di3_zext_dup2): Likewise.
29563 (addv64di3_zext_dup2_exec): Likewise.
29564 (addv64di3_sext_dup2): Likewise.
29565 (addv64di3_sext_dup2_exec): Likewise.
29566 (<expander>v64di3): Likewise.
29567 (<expander>v64di3_exec): Likewise.
29568 (*<reduc_op>_dpp_shr_v64di): Likewise.
29569 (*plus_carry_dpp_shr_v64di): Likewise.
29570 * config/gcn/gcn.md (adddi3): Likewise.
29571 (addptrdi3): Likewise.
29572 (<expander>di3): Likewise.
29574 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
29576 * config/gcn/gcn-valu.md (vec_seriesv64di): Use gen_vec_duplicatev64di.
29578 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
29580 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Add SVE
29581 support. Use aarch64_emit_mult instead of emitting multiplication
29582 instructions directly.
29583 * config/aarch64/aarch64-sve.md (sqrt<mode>2, rsqrt<mode>2)
29584 (@aarch64_rsqrte<mode>, @aarch64_rsqrts<mode>): New expanders.
29586 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
29588 * config/aarch64/aarch64.c (aarch64_emit_mult): New function.
29589 (aarch64_emit_approx_div): Add SVE support. Use aarch64_emit_mult
29590 instead of emitting multiplication instructions directly.
29591 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_OPTAB): New iterator.
29592 * config/aarch64/aarch64-sve.md (div<mode>3, @aarch64_frecpe<mode>)
29593 (@aarch64_frecps<mode>): New expanders.
29595 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
29597 * config/aarch64/aarch64-protos.h (AARCH64_APPROX_MODE): Operate
29598 on and produce uint64_ts rather than ints.
29599 (AARCH64_APPROX_NONE, AARCH64_APPROX_ALL): Change to uint64_ts.
29600 (cpu_approx_modes): Change the fields from unsigned int to uint64_t.
29602 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
29604 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Don't create
29605 an unused xmsk register when handling approximate rsqrt.
29607 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
29609 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Fix inverted
29610 flag_finite_math_only condition.
29612 2020-02-20 Uroš Bizjak <ubizjak@gmail.com>
29615 * config/i386/mmx.md (*vec_extractv2sf_1): Match source operand
29616 to destination operand for shufps alternative.
29617 (*vec_extractv2si_1): Ditto.
29619 2020-02-20 Peter Bergner <bergner@linux.ibm.com>
29622 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Handle VSX
29625 2020-02-20 Martin Liska <mliska@suse.cz>
29627 PR translation/93831
29628 * config/darwin.c (darwin_override_options): Change 64b to 64-bit mode.
29630 2020-02-20 Martin Liska <mliska@suse.cz>
29632 PR translation/93830
29633 * common/config/avr/avr-common.c: Remote trailing "|".
29635 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
29637 * collect2.c (maybe_run_lto_and_relink): Fix typo in
29640 2020-02-19 Richard Sandiford <richard.sandiford@arm.com>
29642 PR tree-optimization/93767
29643 * tree-vect-data-refs.c (vect_compile_time_alias): Remove the
29644 access-size bias from the offset calculations for negative strides.
29646 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
29648 * collect2.c (c_file, o_file): Make const again.
29649 (ldout,lderrout, dump_ld_file): Remove.
29650 (tool_cleanup): Avoid calling not signal-safe functions.
29651 (maybe_run_lto_and_relink): Avoid possible signal handler
29652 access to unintialzed memory (lto_o_files).
29653 (main): Avoid leaking temp files in $TMPDIR.
29654 Initialize c_file/o_file with concat, which avoids exposing
29655 uninitialized memory to signal handler, which calls unlink(!).
29656 Avoid calling maybe_unlink when the main function returns,
29657 since the atexit handler is already doing this.
29658 * collect2.h (dump_ld_file, ldout, lderrout): Remove.
29660 2020-02-19 Martin Jambor <mjambor@suse.cz>
29662 PR tree-optimization/93776
29663 * tree-sra.c (create_access): Do not create zero size accesses.
29664 (get_access_for_expr): Do not search for zero sized accesses.
29666 2020-02-19 Martin Jambor <mjambor@suse.cz>
29668 PR tree-optimization/93667
29669 * tree-sra.c (scalarizable_type_p): Return false if record fields
29670 do not follow wach other.
29672 2020-01-21 Kito Cheng <kito.cheng@sifive.com>
29674 * config/riscv/riscv.c (riscv_output_move) Using fmv.x.w/fmv.w.x
29675 rather than fmv.x.s/fmv.s.x.
29677 2020-02-18 James Greenhalgh <james.greenhalgh@arm.com>
29679 * config/aarch64/aarch64-simd-builtins.def
29680 (intrinsic_vec_smult_lo_): New.
29681 (intrinsic_vec_umult_lo_): Likewise.
29682 (vec_widen_smult_hi_): Likewise.
29683 (vec_widen_umult_hi_): Likewise.
29684 * config/aarch64/aarch64-simd.md
29685 (aarch64_intrinsic_vec_<su>mult_lo_<mode>): New.
29686 * config/aarch64/arm_neon.h (vmull_high_s8): Use intrinsics.
29687 (vmull_high_s16): Likewise.
29688 (vmull_high_s32): Likewise.
29689 (vmull_high_u8): Likewise.
29690 (vmull_high_u16): Likewise.
29691 (vmull_high_u32): Likewise.
29692 (vmull_s8): Likewise.
29693 (vmull_s16): Likewise.
29694 (vmull_s32): Likewise.
29695 (vmull_u8): Likewise.
29696 (vmull_u16): Likewise.
29697 (vmull_u32): Likewise.
29699 2020-02-18 Martin Liska <mliska@suse.cz>
29701 * value-prof.c (stream_out_histogram_value): Restore LTO PGO
29702 bootstrap by missing removal of invalid sanity check.
29704 2020-02-18 Martin Liska <mliska@suse.cz>
29707 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
29708 Always compare LHS of gimple_assign.
29710 2020-02-18 Martin Liska <mliska@suse.cz>
29713 * cgraph.c (cgraph_node::verify_node): Verify MALLOC attribute
29714 and return type of functions.
29715 * ipa-param-manipulation.c (ipa_param_adjustments::adjust_decl):
29716 Drop MALLOC attribute for void functions.
29717 * ipa-pure-const.c (funct_state_summary_t::duplicate): Drop
29718 malloc_state for a new VOID clone.
29720 2020-02-18 Martin Liska <mliska@suse.cz>
29723 * common.opt: Add -fprofile-reproducibility.
29724 * doc/invoke.texi: Document it.
29725 * value-prof.c (dump_histogram_value):
29726 Document and support behavior for counters[0]
29727 being a negative value.
29728 (get_nth_most_common_value): Handle negative
29729 counters[0] in respect to flag_profile_reproducible.
29731 2020-02-18 Jakub Jelinek <jakub@redhat.com>
29734 * cgraph.c (verify_speculative_call): Use speculative_id instead of
29735 speculative_uid in messages. Remove trailing whitespace from error
29736 message. Use num_speculative_call_targets instead of
29737 num_speculative_targets in a message.
29738 (cgraph_node::verify_node): Use call_stmt instead of cal_stmt in
29739 edge messages and stmt instead of cal_stmt in reference message.
29741 PR tree-optimization/93780
29742 * tree-ssa.c (non_rewritable_lvalue_p): Check valid_vector_subparts_p
29743 before calling build_vector_type.
29744 (execute_update_addresses_taken): Likewise.
29747 * params.opt (-param=ipa-max-switch-predicate-bounds=): Fix help
29748 typo, functoin -> function.
29749 * tree.c (free_lang_data_in_decl): Fix comment typo,
29750 functoin -> function.
29751 * ipa-visibility.c (cgraph_externally_visible_p): Likewise.
29753 2020-02-17 David Malcolm <dmalcolm@redhat.com>
29755 * diagnostic.c (print_any_cwe): Don't call get_cwe_url if URLs
29757 (print_option_information): Don't call get_option_url if URLs
29760 2020-02-17 Alexandre Oliva <oliva@adacore.com>
29762 * tree-emutls.c (new_emutls_decl, emutls_common_1): Complete
29763 handling of register_common-less targets.
29765 2020-02-17 Martin Liska <mliska@suse.cz>
29768 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar.
29770 2020-02-17 Martin Liska <mliska@suse.cz>
29772 PR translation/93755
29773 * config/rs6000/rs6000.c (rs6000_option_override_internal):
29776 2020-02-17 Martin Liska <mliska@suse.cz>
29779 * config/rx/elf.opt: Fix typo.
29781 2020-02-17 Richard Biener <rguenther@suse.de>
29784 * opts-global.c (print_ignored_options): Use inform and
29787 2020-02-17 Jiufu Guo <guojiufu@linux.ibm.com>
29790 * config/rs6000/rs6000.md (untyped_call): Add emit_clobber.
29792 2020-02-16 Uroš Bizjak <ubizjak@gmail.com>
29795 * config/i386/i386.md (atan2xf3): Swap operands 1 and 2.
29796 (atan2<mode>3): Update operand order in the call to gen_atan2xf3.
29798 2020-02-15 Jason Merrill <jason@redhat.com>
29800 * doc/invoke.texi (C Dialect Options): Add -std=c++20.
29802 2020-02-15 Jakub Jelinek <jakub@redhat.com>
29804 PR tree-optimization/93744
29805 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0,
29806 A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
29807 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): For GENERIC, make
29808 sure @2 in the first and @1 in the other patterns has no side-effects.
29810 2020-02-15 David Malcolm <dmalcolm@redhat.com>
29811 Bernd Edlinger <bernd.edlinger@hotmail.de>
29815 * config.in (DIAGNOSTICS_URLS_DEFAULT): New define.
29816 * configure.ac (--with-diagnostics-urls): New configuration
29817 option, based on --with-diagnostics-color.
29818 (DIAGNOSTICS_URLS_DEFAULT): New define.
29819 * config.h: Regenerate.
29820 * configure: Regenerate.
29821 * diagnostic.c (diagnostic_urls_init): Handle -1 for
29822 DIAGNOSTICS_URLS_DEFAULT from configure-time
29823 --with-diagnostics-urls=auto-if-env by querying for a GCC_URLS
29824 and TERM_URLS environment variable.
29825 * diagnostic-url.h (diagnostic_url_format): New enum type.
29826 (diagnostic_urls_enabled_p): rename to...
29827 (determine_url_format): ... this, and change return type.
29828 * diagnostic-color.c (parse_env_vars_for_urls): New helper function.
29829 (auto_enable_urls): Disable URLs on xfce4-terminal, gnome-terminal,
29830 the linux console, and mingw.
29831 (diagnostic_urls_enabled_p): rename to...
29832 (determine_url_format): ... this, and adjust.
29833 * pretty-print.h (pretty_printer::show_urls): rename to...
29834 (pretty_printer::url_format): ... this, and change to enum.
29835 * pretty-print.c (pretty_printer::pretty_printer,
29836 pp_begin_url, pp_end_url, test_urls): Adjust.
29837 * doc/install.texi (--with-diagnostics-urls): Document the new
29838 configuration option.
29839 (--with-diagnostics-color): Document the existing interaction
29840 with GCC_COLORS better.
29841 * doc/invoke.texi (-fdiagnostics-urls): Add GCC_URLS and TERM_URLS
29842 vindex reference. Update description of defaults based on the above.
29843 (-fdiagnostics-color): Update description of how -fdiagnostics-color
29844 interacts with GCC_COLORS.
29846 2020-02-14 Eric Botcazou <ebotcazou@adacore.com>
29849 * config/sparc/sparc.c (eligible_for_call_delay): Test HAVE_GNU_LD in
29850 conjunction with TARGET_GNU_TLS in early return.
29852 2020-02-14 Alexander Monakov <amonakov@ispras.ru>
29854 * rtlanal.c (rtx_cost): Handle a SET up front. Avoid division if
29855 the mode is not wider than UNITS_PER_WORD.
29857 2020-02-14 Martin Jambor <mjambor@suse.cz>
29859 PR tree-optimization/93516
29860 * tree-sra.c (propagate_subaccesses_from_rhs): Do not create
29861 access of the same type as the parent.
29862 (propagate_subaccesses_from_lhs): Likewise.
29864 2020-02-14 Hongtao Liu <hongtao.liu@intel.com>
29867 * config/i386/avx512vbmi2intrin.h
29868 (_mm512_shrdi_epi16, _mm512_mask_shrdi_epi16,
29869 _mm512_maskz_shrdi_epi16, _mm512_shrdi_epi32,
29870 _mm512_mask_shrdi_epi32, _mm512_maskz_shrdi_epi32,
29871 _m512_shrdi_epi64, _m512_mask_shrdi_epi64,
29872 _m512_maskz_shrdi_epi64, _mm512_shldi_epi16,
29873 _mm512_mask_shldi_epi16, _mm512_maskz_shldi_epi16,
29874 _mm512_shldi_epi32, _mm512_mask_shldi_epi32,
29875 _mm512_maskz_shldi_epi32, _mm512_shldi_epi64,
29876 _mm512_mask_shldi_epi64, _mm512_maskz_shldi_epi64): Fix typo
29877 of lacking a closing parenthesis.
29878 * config/i386/avx512vbmi2vlintrin.h
29879 (_mm256_shrdi_epi16, _mm256_mask_shrdi_epi16,
29880 _mm256_maskz_shrdi_epi16, _mm256_shrdi_epi32,
29881 _mm256_mask_shrdi_epi32, _mm256_maskz_shrdi_epi32,
29882 _m256_shrdi_epi64, _m256_mask_shrdi_epi64,
29883 _m256_maskz_shrdi_epi64, _mm256_shldi_epi16,
29884 _mm256_mask_shldi_epi16, _mm256_maskz_shldi_epi16,
29885 _mm256_shldi_epi32, _mm256_mask_shldi_epi32,
29886 _mm256_maskz_shldi_epi32, _mm256_shldi_epi64,
29887 _mm256_mask_shldi_epi64, _mm256_maskz_shldi_epi64,
29888 _mm_shrdi_epi16, _mm_mask_shrdi_epi16,
29889 _mm_maskz_shrdi_epi16, _mm_shrdi_epi32,
29890 _mm_mask_shrdi_epi32, _mm_maskz_shrdi_epi32,
29891 _mm_shrdi_epi64, _mm_mask_shrdi_epi64,
29892 _m_maskz_shrdi_epi64, _mm_shldi_epi16,
29893 _mm_mask_shldi_epi16, _mm_maskz_shldi_epi16,
29894 _mm_shldi_epi32, _mm_mask_shldi_epi32,
29895 _mm_maskz_shldi_epi32, _mm_shldi_epi64,
29896 _mm_mask_shldi_epi64, _mm_maskz_shldi_epi64): Ditto.
29898 2020-02-13 H.J. Lu <hongjiu.lu@intel.com>
29901 * config/i386/i386.c (ix86_trampoline_init): Skip ENDBR32 at
29902 the target function entry.
29904 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
29906 * common/config/arc/arc-common.c (arc_option_optimization_table):
29907 Disable if-conversion step when optimized for size.
29909 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
29911 * config/arc/arc.c (arc_conditional_register_usage): R0-R3 and
29912 R12-R15 are always in ARCOMPACT16_REGS register class.
29913 * config/arc/arc.opt (mq-class): Deprecate.
29914 * config/arc/constraint.md ("q"): Remove dependency on mq-class
29916 * doc/invoke.texi (mq-class): Update text.
29917 * common/config/arc/arc-common.c (arc_option_optimization_table):
29920 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
29922 * config/arc/arc.c (arc_insn_cost): New function.
29923 (TARGET_INSN_COST): Define.
29924 * config/arc/arc.md (cost): New attribute.
29925 (add_n): Use arc_nonmemory_operand.
29926 (ashlsi3_insn): Likewise, also update constraints.
29927 (ashrsi3_insn): Likewise.
29928 (rotrsi3): Likewise.
29929 (add_shift): Likewise.
29930 * config/arc/predicates.md (arc_nonmemory_operand): New predicate.
29932 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
29934 * config/arc/arc.md (mulsidi_600): Correctly select mlo/mhi
29936 (umulsidi_600): Likewise.
29938 2020-02-13 Jakub Jelinek <jakub@redhat.com>
29941 * config/i386/avx512bitalgintrin.h (_mm512_mask_popcnt_epi8,
29942 _mm512_mask_popcnt_epi16, _mm256_mask_popcnt_epi8,
29943 _mm256_mask_popcnt_epi16, _mm_mask_popcnt_epi8,
29944 _mm_mask_popcnt_epi16): Rename __B argument to __A and __A to __W,
29945 pass __A to the builtin followed by __W instead of __A followed by
29947 * config/i386/avx512vpopcntdqintrin.h (_mm512_mask_popcnt_epi32,
29948 _mm512_mask_popcnt_epi64): Likewise.
29949 * config/i386/avx512vpopcntdqvlintrin.h (_mm_mask_popcnt_epi32,
29950 _mm256_mask_popcnt_epi32, _mm_mask_popcnt_epi64,
29951 _mm256_mask_popcnt_epi64): Likewise.
29953 PR tree-optimization/93582
29954 * fold-const.h (shift_bytes_in_array_left,
29955 shift_bytes_in_array_right): Declare.
29956 * fold-const.c (shift_bytes_in_array_left,
29957 shift_bytes_in_array_right): New function, moved from
29958 gimple-ssa-store-merging.c, no longer static.
29959 * gimple-ssa-store-merging.c (shift_bytes_in_array): Move
29960 to gimple-ssa-store-merging.c and rename to shift_bytes_in_array_left.
29961 (shift_bytes_in_array_right): Move to gimple-ssa-store-merging.c.
29962 (encode_tree_to_bitpos): Use shift_bytes_in_array_left instead of
29963 shift_bytes_in_array.
29964 (verify_shift_bytes_in_array): Rename to ...
29965 (verify_shift_bytes_in_array_left): ... this. Use
29966 shift_bytes_in_array_left instead of shift_bytes_in_array.
29967 (store_merging_c_tests): Call verify_shift_bytes_in_array_left
29968 instead of verify_shift_bytes_in_array.
29969 * tree-ssa-sccvn.c (vn_reference_lookup_3): For native_encode_expr
29970 / native_interpret_expr where the store covers all needed bits,
29971 punt on PDP-endian, otherwise allow all involved offsets and sizes
29972 not to be byte-aligned.
29975 * config/i386/sse.md (k<code><mode>): Drop mode from last operand and
29976 use const_0_to_255_operand predicate instead of immediate_operand.
29977 (avx512dq_fpclass<mode><mask_scalar_merge_name>,
29978 avx512dq_vmfpclass<mode><mask_scalar_merge_name>,
29979 vgf2p8affineinvqb_<mode><mask_name>,
29980 vgf2p8affineqb_<mode><mask_name>): Drop mode from
29981 const_0_to_255_operand predicated operands.
29983 2020-02-12 Jeff Law <law@redhat.com>
29985 * config/h8300/h8300.md (comparison shortening peepholes): Use
29986 a mode iterator to merge the HImode and SImode peepholes.
29988 2020-02-12 Jakub Jelinek <jakub@redhat.com>
29990 PR middle-end/93663
29991 * real.c (is_even): Make static. Function comment fix.
29992 (is_halfway_below): Make static, don't assert R is not inf/nan,
29993 instead return false for those. Small formatting fixes.
29995 2020-02-12 Martin Sebor <msebor@redhat.com>
29997 PR middle-end/93646
29998 * tree-ssa-strlen.c (handle_builtin_stxncpy): Rename...
29999 (handle_builtin_stxncpy_strncat): ...to this. Change first argument.
30000 Issue only -Wstringop-overflow strncat, never -Wstringop-truncation.
30001 (strlen_check_and_optimize_call): Adjust callee name.
30003 2020-02-12 Jeff Law <law@redhat.com>
30005 * config/h8300/h8300.md (comparison shortening peepholes): Drop
30006 (and (xor)) variant. Combine other two into single peephole.
30008 2020-02-12 Wilco Dijkstra <wdijkstr@arm.com>
30010 PR rtl-optimization/93565
30011 * config/aarch64/aarch64.c (aarch64_rtx_costs): Add CTZ costs.
30013 2020-02-12 Wilco Dijkstra <wdijkstr@arm.com>
30015 * config/aarch64/aarch64-simd.md
30016 (aarch64_zero_extend<GPI:mode>_reduc_plus_<VDQV_E:mode>): New pattern.
30017 * config/aarch64/aarch64.md (popcount<mode>2): Use it instead of
30018 generating separate ADDV and zero_extend patterns.
30019 * config/aarch64/iterators.md (VDQV_E): New iterator.
30021 2020-02-12 Jeff Law <law@redhat.com>
30023 * config/h8300/h8300.md (cpymemsi, movmd): Remove dead patterns,
30024 expanders, splits, etc.
30025 (movmd_internal_<mode>, movmd splitter, movstr, movsd): Likewise.
30026 (stpcpy_internal_<mode>, stpcpy splitter): Likewise.
30027 (peepholes to convert QI/HI mode pushes to SI mode pushes): Likewise.
30028 * config/h8300/h8300.c (h8300_swap_into_er6): Remove unused function.
30029 (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise
30030 * config/h8300/h8300-protos.h (h8300_swap_into_er6): Remove unused
30031 function prototype.
30032 (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise.
30034 2020-02-12 Jakub Jelinek <jakub@redhat.com>
30037 * config/i386/sse.md (VI48F_256_DQ): New mode iterator.
30038 (avx512vl_vextractf128<mode>): Use it instead of VI48F_256. Remove
30039 TARGET_AVX512DQ from condition.
30040 (vec_extract_lo_<mode><mask_name>): Use <mask_avx512dq_condition>
30041 instead of <mask_mode512bit_condition> in condition. If
30042 TARGET_AVX512DQ is false, emit vextract*64x4 instead of
30044 (vec_extract_lo_<mode><mask_name>): Drop <mask_avx512dq_condition>
30047 2020-02-12 Kewen Lin <linkw@gcc.gnu.org>
30050 * ira.c (combine_and_move_insns): Skip multiple_sets def_insn.
30052 2020-02-12 Segher Boessenkool <segher@kernel.crashing.org>
30054 * config/rs6000/rs6000.c (rs6000_debug_print_mode): Don't use sizeof
30055 where strlen is more legible.
30056 (rs6000_builtin_vectorized_libmass): Ditto.
30057 (rs6000_print_options_internal): Ditto.
30059 2020-02-11 Martin Sebor <msebor@redhat.com>
30061 PR tree-optimization/93683
30062 * tree-ssa-alias.c (stmt_kills_ref_p): Avoid using LHS when not set.
30064 2020-02-11 Michael Meissner <meissner@linux.ibm.com>
30066 * config/rs6000/predicates.md (cint34_operand): Rename the
30067 -mprefixed-addr option to be -mprefixed.
30068 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Rename
30069 the -mprefixed-addr option to be -mprefixed.
30070 (OTHER_FUTURE_MASKS): Likewise.
30071 (POWERPC_MASKS): Likewise.
30072 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
30073 the -mprefixed-addr option to be -mprefixed. Change error
30074 messages to refer to -mprefixed.
30075 (num_insns_constant_gpr): Rename the -mprefixed-addr option to be
30077 (rs6000_legitimate_offset_address_p): Likewise.
30078 (rs6000_mode_dependent_address): Likewise.
30079 (rs6000_opt_masks): Change the spelling of "-mprefixed-addr" to be
30080 "-mprefixed" for target attributes and pragmas.
30081 (address_to_insn_form): Rename the -mprefixed-addr option to be
30083 (rs6000_adjust_insn_length): Likewise.
30084 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Rename the
30085 -mprefixed-addr option to be -mprefixed.
30086 (ASM_OUTPUT_OPCODE): Likewise.
30087 * config/rs6000/rs6000.md (prefixed insn attribute): Rename the
30088 -mprefixed-addr option to be -mprefixed.
30089 * config/rs6000/rs6000.opt (-mprefixed): Rename the
30090 -mprefixed-addr option to be prefixed. Change the option from
30091 being undocumented to being documented.
30092 * doc/invoke.texi (RS/6000 and PowerPC Options): Document the
30093 -mprefixed option. Update the -mpcrel documentation to mention
30096 2020-02-11 Hans-Peter Nilsson <hp@axis.com>
30098 * ira-conflicts.c (print_hard_reg_set): Correct output for sets
30099 including FIRST_PSEUDO_REGISTER - 1.
30100 * ira-color.c (print_hard_reg_set): Ditto.
30102 2020-02-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
30104 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
30105 (USTERNOP_QUALIFIERS): New define.
30106 (USMAC_LANE_QUADTUP_QUALIFIERS): New define.
30107 (SUMAC_LANE_QUADTUP_QUALIFIERS): New define.
30108 (arm_expand_builtin_args): Add case ARG_BUILTIN_LANE_QUADTUP_INDEX.
30109 (arm_expand_builtin_1): Add qualifier_lane_quadtup_index.
30110 * config/arm/arm_neon.h (vusdot_s32): New.
30111 (vusdot_lane_s32): New.
30112 (vusdotq_lane_s32): New.
30113 (vsudot_lane_s32): New.
30114 (vsudotq_lane_s32): New.
30115 * config/arm/arm_neon_builtins.def (usdot, usdot_lane,sudot_lane): New.
30116 * config/arm/iterators.md (DOTPROD_I8MM): New.
30117 (sup, opsuffix): Add <us/su>.
30118 * config/arm/neon.md (neon_usdot, <us/su>dot_lane: New.
30119 * config/arm/unspecs.md (UNSPEC_DOT_US, UNSPEC_DOT_SU): New.
30121 2020-02-11 Richard Biener <rguenther@suse.de>
30123 PR tree-optimization/93661
30124 PR tree-optimization/93662
30125 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
30126 tree_to_poly_int64.
30127 * tree-sra.c (get_access_for_expr): Likewise.
30129 2020-02-10 Jakub Jelinek <jakub@redhat.com>
30132 * config/i386/sse.md (VI_256_AVX2): New mode iterator.
30133 (vcond_mask_<mode><sseintvecmodelower>): Use it instead of VI_256.
30134 Change condition from TARGET_AVX2 to TARGET_AVX.
30136 2020-02-10 Iain Sandoe <iain@sandoe.co.uk>
30139 * config/darwin-c.c (darwin_cfstring_ref_p): Fix up last
30140 argument of strncmp.
30142 2020-02-10 Hans-Peter Nilsson <hp@axis.com>
30144 Try to generate zero-based comparisons.
30145 * config/cris/cris.c (cris_reduce_compare): New function.
30146 * config/cris/cris-protos.h (cris_reduce_compare): Add prototype.
30147 * config/cris/cris.md ("cbranch<mode>4", "cbranchdi4", "cstoredi4")
30148 (cstore<mode>4"): Apply cris_reduce_compare in expanders.
30150 2020-02-10 Richard Earnshaw <rearnsha@arm.com>
30153 * config/arm/arm.md (movsi_compare0): Allow SP as a source register
30154 in Thumb state and also as a destination in Arm state. Add T16
30157 2020-02-10 Hans-Peter Nilsson <hp@axis.com>
30159 * md.texi (Define Subst): Match closing paren in example.
30161 2020-02-10 Jakub Jelinek <jakub@redhat.com>
30165 * config/i386/i386.c (x86_64_elf_section_type_flags): Fix up last
30166 arguments of strncmp.
30168 2020-02-10 Feng Xue <fxue@os.amperecomputing.com>
30171 * ipa-cp.c (ipcp_lattice::add_value): Add source with same call edge
30172 but different source value.
30173 (adjust_callers_for_value_intersection): New function.
30174 (gather_edges_for_value): Adjust order of callers to let a
30175 non-self-recursive caller be the first element.
30176 (self_recursive_pass_through_p): Add a new parameter "simple", and
30177 check generalized self-recursive pass-through jump function.
30178 (self_recursive_agg_pass_through_p): Likewise.
30179 (find_more_scalar_values_for_callers_subset): Compute value from
30180 pass-through jump function for self-recursive.
30181 (intersect_with_plats): Cleanup previous implementation code for value
30182 itersection with self-recursive call edge.
30183 (intersect_with_agg_replacements): Likewise.
30184 (intersect_aggregates_with_edge): Deduce value from pass-through jump
30185 function for self-recursive call edge. Cleanup previous implementation
30186 code for value intersection with self-recursive call edge.
30187 (decide_whether_version_node): Remove dead callers and adjust order
30188 to let a non-self-recursive caller be the first element.
30190 2020-02-09 Uroš Bizjak <ubizjak@gmail.com>
30192 * recog.c: Move pass_split_before_sched2 code in front of
30193 pass_split_before_regstack.
30194 (pass_data_split_before_sched2): Rename pass to split3 from split4.
30195 (pass_data_split_before_regstack): Rename pass to split4 from split3.
30196 (rest_of_handle_split_before_sched2): Remove.
30197 (pass_split_before_sched2::execute): Unconditionally call
30199 (enable_split_before_sched2): New function.
30200 (pass_split_before_sched2::gate): Use enable_split_before_sched2.
30201 (pass_split_before_regstack::gate): Ditto.
30202 * config/nds32/nds32.c (nds32_split_double_word_load_store_p):
30203 Update name check for renamed split4 pass.
30204 * config/sh/sh.c (register_sh_passes): Update pass insertion
30205 point for renamed split4 pass.
30207 2020-02-09 Jakub Jelinek <jakub@redhat.com>
30209 * gimplify.c (gimplify_adjust_omp_clauses_1): Promote
30210 DECL_IN_CONSTANT_POOL variables into "omp declare target" to avoid
30211 copying them around between host and target.
30213 2020-02-08 Andrew Pinski <apinski@marvell.com>
30216 * config/aarch64/aarch64-simd.md (movmisalign<mode>): Check
30217 STRICT_ALIGNMENT also.
30219 2020-02-08 Jim Wilson <jimw@sifive.com>
30222 * config/riscv/riscv.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
30224 2020-02-08 Uroš Bizjak <ubizjak@gmail.com>
30225 Jakub Jelinek <jakub@redhat.com>
30228 * config/i386/i386.h (CALL_USED_REGISTERS): Make
30229 xmm16-xmm31 call-used even in 64-bit ms-abi.
30231 2020-02-07 Dennis Zhang <dennis.zhang@arm.com>
30233 * config/aarch64/aarch64-simd-builtins.def (simd_smmla): New entry.
30234 (simd_ummla, simd_usmmla): Likewise.
30235 * config/aarch64/aarch64-simd.md (aarch64_simd_<sur>mmlav16qi): New.
30236 * config/aarch64/arm_neon.h (vmmlaq_s32, vmmlaq_u32): New.
30237 (vusmmlaq_s32): New.
30239 2020-02-07 Richard Biener <rguenther@suse.de>
30241 PR middle-end/93519
30242 * tree-inline.c (fold_marked_statements): Do a PRE walk,
30243 skipping unreachable regions.
30244 (optimize_inline_calls): Skip folding stmts when we didn't
30247 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
30250 * config/i386/i386.c (function_arg_ms_64): Add a type argument.
30251 Don't return aggregates with only SFmode and DFmode in SSE
30253 (ix86_function_arg): Pass arg.type to function_arg_ms_64.
30255 2020-02-07 Jakub Jelinek <jakub@redhat.com>
30258 * config/rs6000/rs6000-logue.c
30259 (rs6000_emit_probe_stack_range_stack_clash): Always use gen_add3_insn,
30260 if it fails, move rs into end_addr and retry. Add
30261 REG_FRAME_RELATED_EXPR note whenever it returns more than one insn or
30262 the insn pattern doesn't describe well what exactly happens to
30266 * config/i386/predicates.md (avx_identity_operand): Remove.
30267 * config/i386/sse.md (*avx_vec_concat<mode>_1): Remove.
30268 (avx_<castmode><avxsizesuffix>_<castmode>,
30269 avx512f_<castmode><avxsizesuffix>_256<castmode>): Change patterns to
30270 a VEC_CONCAT of the operand and UNSPEC_CAST.
30271 (avx512f_<castmode><avxsizesuffix>_<castmode>): Change pattern to
30272 a VEC_CONCAT of VEC_CONCAT of the operand and UNSPEC_CAST with
30276 * config/i386/i386.c (ix86_lea_outperforms): Make sure to clear
30277 recog_data.insn if distance_non_agu_define changed it.
30279 2020-02-06 Michael Meissner <meissner@linux.ibm.com>
30282 * config/rs6000/rs6000.c (reg_to_non_prefixed): Before ISA 3.0
30283 we only had X-FORM (reg+reg) addressing for vectors. Also before
30284 ISA 3.0, we only had X-FORM addressing for scalars in the
30285 traditional Altivec registers.
30287 2020-02-06 <zhongyunde@huawei.com>
30288 Vladimir Makarov <vmakarov@redhat.com>
30290 PR rtl-optimization/93561
30291 * lra-assigns.c (spill_for): Check that tested hard regno is not out of
30292 hard register range.
30294 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
30296 * config/aarch64/aarch64.md (aarch64_movk<mode>): Add a type
30299 2020-02-06 Segher Boessenkool <segher@kernel.crashing.org>
30301 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Handle the case
30302 where the low and the high 32 bits are equal to each other specially,
30303 with an rldimi instruction.
30305 2020-02-06 Mihail Ionescu <mihail.ionescu@arm.com>
30307 * config/arm/arm-cpus.in: Set profile M for armv8.1-m.main.
30309 2020-02-06 Mihail Ionescu <mihail.ionescu@arm.com>
30311 * config/arm/arm-tables.opt: Regenerate.
30313 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
30316 * config/aarch64/aarch64-protos.h (aarch64_movk_shift): Declare.
30317 * config/aarch64/aarch64.c (aarch64_movk_shift): New function.
30318 * config/aarch64/aarch64.md (aarch64_movk<mode>): New pattern.
30320 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
30322 PR rtl-optimization/87763
30323 * config/aarch64/aarch64.md (*ashiftsi_extvdi_bfiz): New pattern.
30325 2020-02-06 Delia Burduv <delia.burduv@arm.com>
30327 * config/aarch64/aarch64-simd-builtins.def
30328 (bfmlaq): New built-in function.
30329 (bfmlalb): New built-in function.
30330 (bfmlalt): New built-in function.
30331 (bfmlalb_lane): New built-in function.
30332 (bfmlalt_lane): New built-in function.
30333 * config/aarch64/aarch64-simd.md
30334 (aarch64_bfmmlaqv4sf): New pattern.
30335 (aarch64_bfmlal<bt>v4sf): New pattern.
30336 (aarch64_bfmlal<bt>_lane<q>v4sf): New pattern.
30337 * config/aarch64/arm_neon.h (vbfmmlaq_f32): New intrinsic.
30338 (vbfmlalbq_f32): New intrinsic.
30339 (vbfmlaltq_f32): New intrinsic.
30340 (vbfmlalbq_lane_f32): New intrinsic.
30341 (vbfmlaltq_lane_f32): New intrinsic.
30342 (vbfmlalbq_laneq_f32): New intrinsic.
30343 (vbfmlaltq_laneq_f32): New intrinsic.
30344 * config/aarch64/iterators.md (BF_MLA): New int iterator.
30345 (bt): New int attribute.
30347 2020-02-06 Uroš Bizjak <ubizjak@gmail.com>
30349 * config/i386/i386.md (*pushtf): Emit "#" instead of
30350 calling gcc_unreachable in insn output.
30353 (*pushsf_rex64): Ditto for alternatives other than 1.
30354 (*pushsf): Ditto for alternatives other than 1.
30356 2020-02-06 Martin Liska <mliska@suse.cz>
30358 PR gcov-profile/91971
30359 PR gcov-profile/93466
30360 * coverage.c (coverage_init): Revert mangling of
30361 path into filename. It can lead to huge filename length.
30362 Creation of subfolders seem more natural.
30364 2020-02-06 Stam Markianos-Wright <stam.markianos-wright@arm.com>
30367 * config/arm/arm.c (arm_block_arith_comp_libfuncs_for_mode): New.
30368 (arm_init_libfuncs): Add BFmode support to block spurious BF libfuncs.
30369 Use arm_block_arith_comp_libfuncs_for_mode for HFmode.
30371 2020-02-06 Jakub Jelinek <jakub@redhat.com>
30374 * config/i386/predicates.md (avx_identity_operand): New predicate.
30375 * config/i386/sse.md (*avx_vec_concat<mode>_1): New
30376 define_insn_and_split.
30379 * omp-low.c (use_pointer_for_field): For nested constructs, also
30380 look for map clauses on target construct.
30381 (scan_omp_1_stmt) <case GIMPLE_OMP_TARGET>: Bump temporarily
30382 taskreg_nesting_level.
30385 * gimplify.c (gimplify_scan_omp_clauses) <do_notice>: If adding
30386 shared clause, call omp_notice_variable on outer context if any.
30388 2020-02-05 Jason Merrill <jason@redhat.com>
30391 * symtab.c (symtab_node::nonzero_address): A DECL_COMDAT decl has
30392 non-zero address even if weak and not yet defined.
30394 2020-02-05 Martin Sebor <msebor@redhat.com>
30396 PR tree-optimization/92765
30397 * gimple-fold.c (get_range_strlen_tree): Handle MEM_REF and PARM_DECL.
30398 * tree-ssa-strlen.c (compute_string_length): Remove.
30399 (determine_min_objsize): Remove.
30400 (get_len_or_size): Add an argument. Call get_range_strlen_dynamic.
30401 Avoid using type size as the upper bound on string length.
30402 (handle_builtin_string_cmp): Add an argument. Adjust.
30403 (strlen_check_and_optimize_call): Pass additional argument to
30404 handle_builtin_string_cmp.
30406 2020-02-05 Uroš Bizjak <ubizjak@gmail.com>
30408 * config/i386/i386.md (*pushdi2_rex64 peephole2): Remove.
30409 (*pushdi2_rex64 peephole2): Unconditionally split after
30410 epilogue_completed.
30411 (*ashl<mode>3_doubleword): Ditto.
30412 (*<shift_insn><mode>3_doubleword): Ditto.
30414 2020-02-05 Michael Meissner <meissner@linux.ibm.com>
30417 * config/rs6000/rs6000.c (get_vector_offset): Fix
30419 2020-02-05 Andrew Stubbs <ams@codesourcery.com>
30421 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Use / not space.
30423 2020-02-05 David Malcolm <dmalcolm@redhat.com>
30425 * doc/analyzer.texi
30426 (Special Functions for Debugging the Analyzer): Update description
30427 of __analyzer_dump_exploded_nodes.
30429 2020-02-05 Jakub Jelinek <jakub@redhat.com>
30432 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Only
30433 include sets and not clobbers in the vzeroupper pattern.
30434 * config/i386/sse.md (*avx_vzeroupper): Require in insn condition that
30435 the parallel has 17 (64-bit) or 9 (32-bit) elts.
30436 (*avx_vzeroupper_1): New define_insn_and_split.
30439 * recog.c (pass_split_after_reload::gate): For STACK_REGS targets,
30440 don't run when !optimize.
30441 (pass_split_before_regstack::gate): For STACK_REGS targets, run even
30444 2020-02-05 Richard Biener <rguenther@suse.de>
30446 PR middle-end/90648
30447 * genmatch.c (dt_node::gen_kids_1): Emit number of argument
30448 checks before matching calls.
30450 2020-02-05 Jakub Jelinek <jakub@redhat.com>
30452 * tree-ssa-alias.c (aliasing_matching_component_refs_p): Fix up
30453 function comment typo.
30455 PR middle-end/93555
30456 * omp-simd-clone.c (expand_simd_clones): If simd_clone_mangle or
30457 simd_clone_create failed when i == 0, adjust clone->nargs by
30460 2020-02-05 Martin Liska <mliska@suse.cz>
30463 * doc/invoke.texi: Document that one should
30464 not combine ASLR and -fpch.
30466 2020-02-04 Richard Biener <rguenther@suse.de>
30468 PR tree-optimization/93538
30469 * match.pd (addr EQ/NE ptr): Amend to handle &ptr->x EQ/NE ptr.
30471 2020-02-04 Richard Biener <rguenther@suse.de>
30473 PR tree-optimization/91123
30474 * tree-ssa-sccvn.c (vn_walk_cb_data::finish): New method.
30475 (vn_walk_cb_data::last_vuse): New member.
30476 (vn_walk_cb_data::saved_operands): Likewsie.
30477 (vn_walk_cb_data::~vn_walk_cb_data): Release saved_operands.
30478 (vn_walk_cb_data::push_partial_def): Use finish.
30479 (vn_reference_lookup_2): Update last_vuse and use finish if
30480 we've saved operands.
30481 (vn_reference_lookup_3): Use finish and update calls to
30482 push_partial_defs everywhere. When translating through
30483 memcpy or aggregate copies save off operands and alias-set.
30484 (eliminate_dom_walker::eliminate_stmt): Restore VN_WALKREWRITE
30485 operation for redundant store removal.
30487 2020-02-04 Richard Biener <rguenther@suse.de>
30489 PR tree-optimization/92819
30490 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
30491 generating more stmts than before.
30493 2020-02-04 Martin Liska <mliska@suse.cz>
30495 * config/arm/arm.c (arm_gen_far_branch): Move the function
30496 outside of selftests.
30498 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
30500 * config/rs6000/rs6000.c (adjust_vec_address_pcrel): New helper
30501 function to adjust PC-relative vector addresses.
30502 (rs6000_adjust_vec_address): Call adjust_vec_address_pcrel to
30503 handle vectors with PC-relative addresses.
30505 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
30507 * config/rs6000/rs6000.c (reg_to_non_prefixed): Add forward
30509 (hard_reg_and_mode_to_addr_mask): Delete.
30510 (rs6000_adjust_vec_address): If the original vector address
30511 was REG+REG or REG+OFFSET and the element is not zero, do the add
30512 of the elements in the original address before adding the offset
30513 for the vector element. Use address_to_insn_form to validate the
30514 address using the register being loaded, rather than guessing
30515 whether the address is a DS-FORM or DQ-FORM address.
30517 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
30519 * config/rs6000/rs6000.c (get_vector_offset): New helper function
30520 to calculate the offset in memory from the start of a vector of a
30521 particular element. Add code to keep the element number in
30522 bounds if the element number is variable.
30523 (rs6000_adjust_vec_address): Move calculation of offset of the
30524 vector element to get_vector_offset.
30525 (rs6000_split_vec_extract_var): Do not do the initial AND of
30526 element here, move the code to get_vector_offset.
30528 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
30530 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add some
30533 2020-02-03 Segher Boessenkool <segher@kernel.crashing.org>
30535 * config/rs6000/constraints.md: Improve documentation.
30537 2020-02-03 Richard Earnshaw <rearnsha@arm.com>
30540 * config/arm/t-arm: ($(srcdir)/config/arm/arm-tune.md)
30541 ($(srcdir)/config/arm/arm-tables.opt): Use move-if-change.
30543 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
30545 * config.gcc: Remove "carrizo" support.
30546 * config/gcn/gcn-opts.h (processor_type): Likewise.
30547 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Likewise.
30548 * config/gcn/gcn.opt (gpu_type): Likewise.
30549 * config/gcn/t-omp-device: Likewise.
30551 2020-02-03 Stam Markianos-Wright <stam.markianos-wright@arm.com>
30554 * config/arm/arm-protos.h: New function arm_gen_far_branch prototype.
30555 * config/arm/arm.c (arm_gen_far_branch): New function
30556 arm_gen_far_branch.
30557 * config/arm/arm.md: Update b<cond> for Thumb2 range checks.
30559 2020-02-03 Julian Brown <julian@codesourcery.com>
30560 Tobias Burnus <tobias@codesourcery.com>
30562 * doc/invoke.texi: Update mention of OpenACC version to 2.6.
30564 2020-02-03 Jakub Jelinek <jakub@redhat.com>
30567 * config/s390/s390.md (popcounthi2_z196): Fix up expander to emit
30568 valid RTL to sum up the lowest and second lowest bytes of the popcnt
30571 2020-02-02 Vladimir Makarov <vmakarov@redhat.com>
30573 PR rtl-optimization/91333
30574 * ira-color.c (struct allocno_color_data): Add member
30576 (init_allocno_threads): Set the member up.
30577 (bucket_allocno_compare_func): Add compare hard reg
30580 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
30582 nios2: Support for GOT-relative DW_EH_PE_datarel encoding.
30584 * configure.ac [nios2-*-*]: Check HAVE_AS_NIOS2_GOTOFF_RELOCATION.
30585 * config.in: Regenerated.
30586 * configure: Regenerated.
30587 * config/nios2/nios2.h (ASM_PREFERRED_EH_DATA_FORMAT): Fix handling
30588 for PIC when HAVE_AS_NIOS2_GOTOFF_RELOCATION.
30589 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New.
30591 2020-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
30593 * configure: Regenerate.
30595 2020-01-31 Vladimir Makarov <vmakarov@redhat.com>
30597 PR rtl-optimization/91333
30598 * ira-color.c (bucket_allocno_compare_func): Move conflict hard
30599 reg preferences comparison up.
30601 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
30603 * config/aarch64/aarch64.h (TARGET_SVE_BF16): New macro.
30604 * config/aarch64/aarch64-sve-builtins-sve2.h (svcvtnt): Move to
30605 aarch64-sve-builtins-base.h.
30606 * config/aarch64/aarch64-sve-builtins-sve2.cc (svcvtnt): Move to
30607 aarch64-sve-builtins-base.cc.
30608 * config/aarch64/aarch64-sve-builtins-base.h (svbfdot, svbfdot_lane)
30609 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
30610 (svcvtnt): Declare.
30611 * config/aarch64/aarch64-sve-builtins-base.cc (svbfdot, svbfdot_lane)
30612 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
30613 (svcvtnt): New functions.
30614 * config/aarch64/aarch64-sve-builtins-base.def (svbfdot, svbfdot_lane)
30615 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
30616 (svcvtnt): New functions.
30617 (svcvt): Add a form that converts f32 to bf16.
30618 * config/aarch64/aarch64-sve-builtins-shapes.h (ternary_bfloat)
30619 (ternary_bfloat_lane, ternary_bfloat_lanex2, ternary_bfloat_opt_n):
30621 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_element_type):
30622 Treat B as bfloat16_t.
30623 (ternary_bfloat_lane_base): New class.
30624 (ternary_bfloat_def): Likewise.
30625 (ternary_bfloat): New shape.
30626 (ternary_bfloat_lane_def): New class.
30627 (ternary_bfloat_lane): New shape.
30628 (ternary_bfloat_lanex2_def): New class.
30629 (ternary_bfloat_lanex2): New shape.
30630 (ternary_bfloat_opt_n_def): New class.
30631 (ternary_bfloat_opt_n): New shape.
30632 * config/aarch64/aarch64-sve-builtins.cc (TYPES_cvt_bfloat): New macro.
30633 * config/aarch64/aarch64-sve.md (@aarch64_sve_<sve_fp_op>vnx4sf)
30634 (@aarch64_sve_<sve_fp_op>_lanevnx4sf): New patterns.
30635 (@aarch64_sve_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>)
30636 (@cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
30637 (*cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
30638 (@aarch64_sve_cvtnt<VNx8BF_ONLY:mode>): Likewise.
30639 * config/aarch64/aarch64-sve2.md (@aarch64_sve2_cvtnt<mode>): Key
30640 the pattern off the narrow mode instead of the wider one.
30641 * config/aarch64/iterators.md (VNx8BF_ONLY): New mode iterator.
30642 (UNSPEC_BFMLALB, UNSPEC_BFMLALT, UNSPEC_BFMMLA): New unspecs.
30643 (sve_fp_op): Handle them.
30644 (SVE_BFLOAT_TERNARY_LONG): New int itertor.
30645 (SVE_BFLOAT_TERNARY_LONG_LANE): Likewise.
30647 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
30649 * config/aarch64/arm_sve.h: Include arm_bf16.h.
30650 * config/aarch64/aarch64-modes.def (BF): Move definition before
30651 VECTOR_MODES. Remove separate VECTOR_MODES for V4BF and V8BF.
30652 (SVE_MODES): Handle BF modes.
30653 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle
30655 (aarch64_full_sve_mode): Likewise.
30656 * config/aarch64/iterators.md (SVE_STRUCT): Add VNx16BF, VNx24BF
30658 (SVE_FULL, SVE_FULL_HSD, SVE_ALL): Add VNx8BF.
30659 (Vetype, Vesize, Vctype, VEL, Vel, VEL_INT, V128, v128, vwcore)
30660 (V_INT_EQUIV, v_int_equiv, V_FP_EQUIV, v_fp_equiv, vector_count)
30661 (insn_length, VSINGLE, vsingle, VPRED, vpred, VDOUBLE): Handle the
30663 * config/aarch64/aarch64-sve-builtins.h (TYPE_bfloat): New
30665 * config/aarch64/aarch64-sve-builtins.cc (TYPES_all_arith): New macro.
30666 (TYPES_all_data): Add bf16.
30667 (TYPES_reinterpret1, TYPES_reinterpret): Likewise.
30668 (register_tuple_type): Increase buffer size.
30669 * config/aarch64/aarch64-sve-builtins.def (svbfloat16_t): New type.
30670 (bf16): New type suffix.
30671 * config/aarch64/aarch64-sve-builtins-base.def (svabd, svadd, svaddv)
30672 (svcmpeq, svcmpge, svcmpgt, svcmple, svcmplt, svcmpne, svmad, svmax)
30673 (svmaxv, svmin, svminv, svmla, svmls, svmsb, svmul, svsub, svsubr):
30674 Change type from all_data to all_arith.
30675 * config/aarch64/aarch64-sve-builtins-sve2.def (svaddp, svmaxp)
30676 (svminp): Likewise.
30678 2020-01-31 Dennis Zhang <dennis.zhang@arm.com>
30679 Matthew Malcomson <matthew.malcomson@arm.com>
30680 Richard Sandiford <richard.sandiford@arm.com>
30682 * doc/invoke.texi (f32mm): Document new AArch64 -march= extension.
30683 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
30684 __ARM_FEATURE_SVE_MATMUL_INT8, __ARM_FEATURE_SVE_MATMUL_FP32 and
30685 __ARM_FEATURE_SVE_MATMUL_FP64 as appropriate. Don't define
30686 __ARM_FEATURE_MATMUL_FP64.
30687 * config/aarch64/aarch64-option-extensions.def (fp, simd, fp16)
30688 (sve): Add AARCH64_FL_F32MM to the list of extensions that should
30689 be disabled at the same time.
30690 (f32mm): New extension.
30691 * config/aarch64/aarch64.h (AARCH64_FL_F32MM): New macro.
30692 (AARCH64_FL_F64MM): Bump to the next bit up.
30693 (AARCH64_ISA_F32MM, TARGET_SVE_I8MM, TARGET_F32MM, TARGET_SVE_F32MM)
30694 (TARGET_SVE_F64MM): New macros.
30695 * config/aarch64/iterators.md (SVE_MATMULF): New mode iterator.
30696 (UNSPEC_FMMLA, UNSPEC_SMATMUL, UNSPEC_UMATMUL, UNSPEC_USMATMUL)
30697 (UNSPEC_TRN1Q, UNSPEC_TRN2Q, UNSPEC_UZP1Q, UNSPEC_UZP2Q, UNSPEC_ZIP1Q)
30698 (UNSPEC_ZIP2Q): New unspeccs.
30699 (DOTPROD_US_ONLY, PERMUTEQ, MATMUL, FMMLA): New int iterators.
30700 (optab, sur, perm_insn): Handle the new unspecs.
30701 (sve_fp_op): Handle UNSPEC_FMMLA. Resort.
30702 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use
30703 TARGET_SVE_F64MM instead of separate tests.
30704 (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod<vsi2qi>): New pattern.
30705 (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod_lane<vsi2qi>): Likewise.
30706 (@aarch64_sve_add_<MATMUL:optab><vsi2qi>): Likewise.
30707 (@aarch64_sve_<FMMLA:sve_fp_op><mode>): Likewise.
30708 (@aarch64_sve_<PERMUTEQ:optab><mode>): Likewise.
30709 * config/aarch64/aarch64-sve-builtins.cc (TYPES_s_float): New macro.
30710 (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): Use it.
30711 (TYPES_s_signed): New macro.
30712 (TYPES_s_integer): Use it.
30713 (TYPES_d_float): New macro.
30714 (TYPES_d_data): Use it.
30715 * config/aarch64/aarch64-sve-builtins-shapes.h (mmla): Declare.
30716 (ternary_intq_uintq_lane, ternary_intq_uintq_opt_n, ternary_uintq_intq)
30717 (ternary_uintq_intq_lane, ternary_uintq_intq_opt_n): Likewise.
30718 * config/aarch64/aarch64-sve-builtins-shapes.cc (mmla_def): New class.
30719 (svmmla): New shape.
30720 (ternary_resize2_opt_n_base): Add TYPE_CLASS2 and TYPE_CLASS3
30721 template parameters.
30722 (ternary_resize2_lane_base): Likewise.
30723 (ternary_resize2_base): New class.
30724 (ternary_qq_lane_base): Likewise.
30725 (ternary_intq_uintq_lane_def): Likewise.
30726 (ternary_intq_uintq_lane): New shape.
30727 (ternary_intq_uintq_opt_n_def): New class
30728 (ternary_intq_uintq_opt_n): New shape.
30729 (ternary_qq_lane_def): Inherit from ternary_qq_lane_base.
30730 (ternary_uintq_intq_def): New class.
30731 (ternary_uintq_intq): New shape.
30732 (ternary_uintq_intq_lane_def): New class.
30733 (ternary_uintq_intq_lane): New shape.
30734 (ternary_uintq_intq_opt_n_def): New class.
30735 (ternary_uintq_intq_opt_n): New shape.
30736 * config/aarch64/aarch64-sve-builtins-base.h (svmmla, svsudot)
30737 (svsudot_lane, svtrn1q, svtrn2q, svusdot, svusdot_lane, svusmmla)
30738 (svuzp1q, svuzp2q, svzip1q, svzip2q): Declare.
30739 * config/aarch64/aarch64-sve-builtins-base.cc (svdot_lane_impl):
30741 (svdotprod_lane_impl): ...this new class.
30742 (svmmla_impl, svusdot_impl): New classes.
30743 (svdot_lane): Update to use svdotprod_lane_impl.
30744 (svmmla, svsudot, svsudot_lane, svtrn1q, svtrn2q, svusdot)
30745 (svusdot_lane, svusmmla, svuzp1q, svuzp2q, svzip1q, svzip2q): New
30747 * config/aarch64/aarch64-sve-builtins-base.def (svmmla): New base
30748 function, with no types defined.
30749 (svmmla, svusmmla, svsudot, svsudot_lane, svusdot, svusdot_lane): New
30750 AARCH64_FL_I8MM functions.
30751 (svmmla): New AARCH64_FL_F32MM function.
30752 (svld1ro): Depend only on AARCH64_FL_F64MM, not on AARCH64_FL_V8_6.
30753 (svmmla, svtrn1q, svtrn2q, svuz1q, svuz2q, svzip1q, svzip2q): New
30754 AARCH64_FL_F64MM function.
30755 (REQUIRED_EXTENSIONS):
30757 2020-01-31 Andrew Stubbs <ams@codesourcery.com>
30759 * config/gcn/gcn-valu.md (addv64di3_exec): Allow one '0' in each
30762 2020-01-31 Uroš Bizjak <ubizjak@gmail.com>
30764 * config/i386/i386.md (*movoi_internal_avx): Do not check for
30765 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. Remove MODE_V8SF handling.
30766 (*movti_internal): Do not check for
30767 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
30768 (*movtf_internal): Move check for TARGET_SSE2 and size optimization
30769 just after check for TARGET_AVX.
30770 (*movdf_internal): Ditto.
30771 * config/i386/mmx.md (*mov<mode>_internal): Do not check for
30772 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
30773 * config/i386/sse.md (mov<mode>_internal): Only check
30774 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL with V2DFmode. Move check
30775 for TARGET_SSE2 and size optimization just after check for TARGET_AVX.
30776 (<sse>_andnot<mode>3<mask_name>): Move check for
30777 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL after check for TARGET_AVX.
30778 (<code><mode>3<mask_name>): Ditto.
30779 (*andnot<mode>3): Ditto.
30780 (*andnottf3): Ditto.
30781 (*<code><mode>3): Ditto.
30782 (*<code>tf3): Ditto.
30783 (*andnot<VI:mode>3): Remove
30784 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling.
30785 (<mask_codefor><code><VI48_AVX_AVX512F:mode>3<mask_name>): Ditto.
30786 (*<code><VI12_AVX_AVX512F:mode>3): Ditto.
30787 (sse4_1_blendv<ssemodesuffix>): Ditto.
30788 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL):
30789 Explain that tune applies to 128bit instructions only.
30791 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
30793 * config/gcn/mkoffload.c (process_asm): Add sgpr_count and vgpr_count
30794 to definition of hsa_kernel_description. Parse assembly to find SGPR
30795 and VGPR count of kernel and store in hsa_kernel_description.
30797 2020-01-31 Tamar Christina <tamar.christina@arm.com>
30799 PR rtl-optimization/91838
30800 * simplify-rtx.c (simplify_binary_operation_1): Update LSHIFTRT case
30801 to truncate if allowed or reject combination.
30803 2020-01-31 Andrew Stubbs <ams@codesourcery.com>
30805 * tree-ssa-loop-ivopts.c (get_iv): Use sizetype for zero-step.
30806 (find_inv_vars_cb): Likewise.
30808 2020-01-31 David Malcolm <dmalcolm@redhat.com>
30810 * calls.c (special_function_p): Split out the check for DECL_NAME
30811 being non-NULL and fndecl being extern at file scope into a
30812 new maybe_special_function_p and call it. Drop check for fndecl
30813 being non-NULL that was after a usage of DECL_NAME (fndecl).
30814 * tree.h (maybe_special_function_p): New inline function.
30816 2020-01-30 Andrew Stubbs <ams@codesourcery.com>
30818 * config/gcn/gcn-valu.md (gather<mode>_exec): Move contents ...
30819 (mask_gather_load<mode>): ... here, and zero-initialize the
30821 (maskload<mode>di): Zero-initialize the destination.
30822 * config/gcn/gcn.c:
30824 2020-01-30 David Malcolm <dmalcolm@redhat.com>
30827 * doc/analyzer.texi (Limitations): Note that constraints on
30828 floating-point values are currently ignored.
30830 2020-01-30 Jakub Jelinek <jakub@redhat.com>
30833 * symtab.c (symtab_node::noninterposable_alias): If localalias
30834 already exists, but is not usable, append numbers after it until
30835 a unique name is found. Formatting fix.
30837 PR middle-end/93505
30838 * combine.c (simplify_comparison) <case ROTATE>: Punt on out of range
30841 2020-01-30 Andrew Stubbs <ams@codesourcery.com>
30843 * config/gcn/gcn.c (print_operand): Handle LTGT.
30844 * config/gcn/predicates.md (gcn_fp_compare_operator): Allow ltgt.
30846 2020-01-30 Richard Biener <rguenther@suse.de>
30848 * tree-pretty-print.c (dump_generic_node): Wrap VECTOR_CST
30849 and CONSTRUCTOR in _Literal (type) with TDF_GIMPLE.
30851 2020-01-30 John David Anglin <danglin@gcc.gnu.org>
30853 * config/pa/pa.c (pa_elf_select_rtx_section): Place function pointers
30854 without a DECL in .data.rel.ro.local.
30856 2020-01-30 Jakub Jelinek <jakub@redhat.com>
30859 * config/arm/arm.md (uaddvdi4): Actually emit what gen_uaddvsi4
30863 * config/i386/sse.md
30864 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext): Renamed to ...
30865 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext): ... this. Use
30866 any_extend code iterator instead of always zero_extend.
30867 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_lt): Renamed to ...
30868 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_lt): ... this.
30869 Use any_extend code iterator instead of always zero_extend.
30870 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_shift): Renamed to ...
30871 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_shift): ... this.
30872 Use any_extend code iterator instead of always zero_extend.
30873 (*sse2_pmovmskb_ext): New define_insn.
30874 (*sse2_pmovmskb_ext_lt): New define_insn_and_split.
30877 * config/i386/i386.md (*popcountsi2_zext): New define_insn_and_split.
30878 (*popcountsi2_zext_falsedep): New define_insn.
30880 2020-01-30 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
30882 * config.in: Regenerated.
30883 * configure: Regenerated.
30885 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
30888 * config/gcn/gcn-hsa.h (ASM_SPEC): Add -mattr=-code-object-v3 as
30889 LLVM's assembler changed the default in version 9.
30891 2020-01-24 Jeff Law <law@redhat.com>
30893 PR tree-optimization/89689
30894 * builtins.def (BUILT_IN_OBJECT_SIZE): Make it const rather than pure.
30896 2020-01-29 Richard Sandiford <richard.sandiford@arm.com>
30900 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
30902 PR rtl-optimization/87763
30903 * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
30904 simplification to handle subregs as well as bare regs.
30905 * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
30907 2020-01-29 Joel Hutton <Joel.Hutton@arm.com>
30910 * ira.c (ira): Revert use of simplified LRA algorithm.
30912 2020-01-29 Martin Jambor <mjambor@suse.cz>
30914 PR tree-optimization/92706
30915 * tree-sra.c (struct access): Fields first_link, last_link,
30916 next_queued and grp_queued renamed to first_rhs_link, last_rhs_link,
30917 next_rhs_queued and grp_rhs_queued respectively, new fields
30918 first_lhs_link, last_lhs_link, next_lhs_queued and grp_lhs_queued.
30919 (struct assign_link): Field next renamed to next_rhs, new field
30920 next_lhs. Updated comment.
30921 (work_queue_head): Renamed to rhs_work_queue_head.
30922 (lhs_work_queue_head): New variable.
30923 (add_link_to_lhs): New function.
30924 (relink_to_new_repr): Also relink LHS lists.
30925 (add_access_to_work_queue): Renamed to add_access_to_rhs_work_queue.
30926 (add_access_to_lhs_work_queue): New function.
30927 (pop_access_from_work_queue): Renamed to
30928 pop_access_from_rhs_work_queue.
30929 (pop_access_from_lhs_work_queue): New function.
30930 (build_accesses_from_assign): Also add links to LHS lists and to LHS
30932 (child_would_conflict_in_lacc): Renamed to
30933 child_would_conflict_in_acc. Adjusted parameter names.
30934 (create_artificial_child_access): New parameter set_grp_read, use it.
30935 (subtree_mark_written_and_enqueue): Renamed to
30936 subtree_mark_written_and_rhs_enqueue.
30937 (propagate_subaccesses_across_link): Renamed to
30938 propagate_subaccesses_from_rhs.
30939 (propagate_subaccesses_from_lhs): New function.
30940 (propagate_all_subaccesses): Also propagate subaccesses from LHSs to
30943 2020-01-29 Martin Jambor <mjambor@suse.cz>
30945 PR tree-optimization/92706
30946 * tree-sra.c (struct access): Adjust comment of
30947 grp_total_scalarization.
30948 (find_access_in_subtree): Look for single children spanning an entire
30950 (scalarizable_type_p): Allow register accesses, adjust callers.
30951 (completely_scalarize): Remove function.
30952 (scalarize_elem): Likewise.
30953 (create_total_scalarization_access): Likewise.
30954 (sort_and_splice_var_accesses): Do not track total scalarization
30956 (analyze_access_subtree): New parameter totally, adjust to new meaning
30957 of grp_total_scalarization.
30958 (analyze_access_trees): Pass new parameter to analyze_access_subtree.
30959 (can_totally_scalarize_forest_p): New function.
30960 (create_total_scalarization_access): Likewise.
30961 (create_total_access_and_reshape): Likewise.
30962 (total_should_skip_creating_access): Likewise.
30963 (totally_scalarize_subtree): Likewise.
30964 (analyze_all_variable_accesses): Perform total scalarization after
30965 subaccess propagation using the new functions above.
30966 (initialize_constant_pool_replacements): Output initializers by
30967 traversing the access tree.
30969 2020-01-29 Martin Jambor <mjambor@suse.cz>
30971 * tree-sra.c (verify_sra_access_forest): New function.
30972 (verify_all_sra_access_forests): Likewise.
30973 (create_artificial_child_access): Set parent.
30974 (analyze_all_variable_accesses): Call the verifier.
30976 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
30978 * cgraph.c (cgraph_edge::resolve_speculation): Only lookup direct edge
30979 if called on indirect edge.
30980 (cgraph_edge::redirect_call_stmt_to_callee): Lookup indirect edge of
30981 speculative call if needed.
30983 2020-01-29 Richard Biener <rguenther@suse.de>
30985 PR tree-optimization/93428
30986 * tree-vect-slp.c (vect_build_slp_tree_2): Compute the load
30987 permutation when the load node is created.
30988 (vect_analyze_slp_instance): Re-use it here.
30990 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
30992 * ipa-prop.c (update_indirect_edges_after_inlining): Fix warning.
30994 2020-01-28 Vladimir Makarov <vmakarov@redhat.com>
30996 PR rtl-optimization/93272
30997 * ira-lives.c (process_out_of_region_eh_regs): New function.
30998 (process_bb_node_lives): Call it.
31000 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31002 * coverage.c (read_counts_file): Make error message lowercase.
31004 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31006 * profile-count.c (profile_quality_display_names): Fix ordering.
31008 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31011 * cgraph.c (cgraph_add_edge_to_call_site_hash): Update call site
31012 hash only when edge is first within the sequence.
31013 (cgraph_edge::set_call_stmt): Update handling of speculative calls.
31014 (symbol_table::create_edge): Do not set target_prob.
31015 (cgraph_edge::remove_caller): Watch for speculative calls when updating
31016 the call site hash.
31017 (cgraph_edge::make_speculative): Drop target_prob parameter.
31018 (cgraph_edge::speculative_call_info): Remove.
31019 (cgraph_edge::first_speculative_call_target): New member function.
31020 (update_call_stmt_hash_for_removing_direct_edge): New function.
31021 (cgraph_edge::resolve_speculation): Rewrite to new API.
31022 (cgraph_edge::speculative_call_for_target): New member function.
31023 (cgraph_edge::make_direct): Rewrite to new API; fix handling of
31024 multiple speculation targets.
31025 (cgraph_edge::redirect_call_stmt_to_callee): Likewise; fix updating
31027 (verify_speculative_call): Verify that targets form an interval.
31028 * cgraph.h (cgraph_edge::speculative_call_info): Remove.
31029 (cgraph_edge::first_speculative_call_target): New member function.
31030 (cgraph_edge::next_speculative_call_target): New member function.
31031 (cgraph_edge::speculative_call_target_ref): New member function.
31032 (cgraph_edge;:speculative_call_indirect_edge): New member funtion.
31033 (cgraph_edge): Remove target_prob.
31034 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
31035 Fix handling of speculative calls.
31036 * ipa-devirt.c (ipa_devirt): Fix handling of speculative cals.
31037 * ipa-fnsummary.c (analyze_function_body): Likewise.
31038 * ipa-inline.c (speculation_useful_p): Use new speculative call API.
31039 * ipa-profile.c (dump_histogram): Fix formating.
31040 (ipa_profile_generate_summary): Watch for overflows.
31041 (ipa_profile): Do not require probablity to be 1/2; update to new API.
31042 * ipa-prop.c (ipa_make_edge_direct_to_target): Update to new API.
31043 (update_indirect_edges_after_inlining): Update to new API.
31044 * ipa-utils.c (ipa_merge_profiles): Rewrite merging of speculative call
31046 * profile-count.h: (profile_probability::adjusted): New.
31047 * tree-inline.c (copy_bb): Update to new speculative call API; fix
31048 updating of profile.
31049 * value-prof.c (gimple_ic_transform): Rename to ...
31050 (dump_ic_profile): ... this one; update dumping.
31051 (stream_in_histogram_value): Fix formating.
31052 (gimple_value_profile_transformations): Update.
31054 2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
31057 * config/i386/i386.md (*movoi_internal_avx): Remove
31058 TARGET_SSE_TYPELESS_STORES check.
31059 (*movti_internal): Prefer TARGET_AVX over
31060 TARGET_SSE_TYPELESS_STORES.
31061 (*movtf_internal): Likewise.
31062 * config/i386/sse.md (mov<mode>_internal): Prefer TARGET_AVX over
31063 TARGET_SSE_TYPELESS_STORES. Remove "<MODE_SIZE> == 16" check
31064 from TARGET_SSE_TYPELESS_STORES.
31066 2020-01-28 David Malcolm <dmalcolm@redhat.com>
31068 * diagnostic-core.h (warning_at): Rename overload to...
31069 (warning_meta): ...this.
31070 (emit_diagnostic_valist): Delete decl of overload taking
31071 diagnostic_metadata.
31072 * diagnostic.c (emit_diagnostic_valist): Likewise for defn.
31073 (warning_at): Rename overload taking diagnostic_metadata to...
31074 (warning_meta): ...this.
31076 2020-01-28 Richard Biener <rguenther@suse.de>
31078 PR tree-optimization/93439
31079 * tree-parloops.c (create_loop_fn): Move clique bookkeeping...
31080 * tree-cfg.c (move_sese_region_to_fn): ... here.
31081 (verify_types_in_gimple_reference): Verify used cliques are
31084 2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
31087 * config/i386/i386-options.c (set_ix86_tune_features): Add an
31088 argument of a pointer to struct gcc_options and pass it to
31089 parse_mtune_ctrl_str.
31090 (ix86_function_specific_restore): Pass opts to
31091 set_ix86_tune_features.
31092 (ix86_option_override_internal): Likewise.
31093 (parse_mtune_ctrl_str): Add an argument of a pointer to struct
31094 gcc_options and use it for x_ix86_tune_ctrl_string.
31096 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31098 PR rtl-optimization/87763
31099 * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
31100 simplification to handle subregs as well as bare regs.
31101 * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
31103 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31105 * tree-vect-loop.c (vectorizable_reduction): Fail gracefully
31106 for reduction chains that (now) include a call.
31108 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31110 PR tree-optimization/92822
31111 * tree-ssa-forwprop.c (simplify_vector_constructor): When filling
31112 out the don't-care elements of a vector whose significant elements
31113 are duplicates, make the don't-care elements duplicates too.
31115 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31117 PR tree-optimization/93434
31118 * tree-predcom.c (split_data_refs_to_components): Record which
31119 components have had aliasing loads removed. Prevent store-store
31120 commoning for all such components.
31122 2020-01-28 Jakub Jelinek <jakub@redhat.com>
31125 * config/i386/i386.c (ix86_fold_builtin) <do_shift>: If mask is not
31126 -1 or is_vshift is true, use new_vector with number of elts npatterns
31127 rather than new_unary_operation.
31129 PR tree-optimization/93454
31130 * gimple-fold.c (fold_array_ctor_reference): Perform
31131 elt_size.to_uhwi () just once, instead of calling it in every
31132 iteration. Punt if that value is above size of the temporary
31133 buffer. Decrease third native_encode_expr argument when
31134 bufoff + elt_sz is above size of buf.
31136 2020-01-27 Joseph Myers <joseph@codesourcery.com>
31138 * config/mips/mips.c (mips_declare_object_name)
31139 [USE_GNU_UNIQUE_OBJECT]: Support use of gnu_unique_object.
31141 2020-01-27 Martin Liska <mliska@suse.cz>
31143 PR gcov-profile/93403
31144 * tree-profile.c (gimple_init_gcov_profiler): Generate
31145 both __gcov_indirect_call_profiler_v4 and
31146 __gcov_indirect_call_profiler_v4_atomic.
31148 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31151 * config/aarch64/aarch64-simd.md (aarch64_get_half<mode>): New
31153 (@aarch64_split_simd_mov<mode>): Use it.
31154 (aarch64_simd_mov_from_<mode>low): Add a GPR alternative.
31155 Leave the vec_extract patterns to handle 2-element vectors.
31156 (aarch64_simd_mov_from_<mode>high): Likewise.
31157 (vec_extract<VQMOV_NO2E:mode><Vhalf>): New expander.
31158 (vec_extractv2dfv1df): Likewise.
31160 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31162 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Match
31163 jump conditions for *compare_condjump<GPI:mode>.
31165 2020-01-27 David Malcolm <dmalcolm@redhat.com>
31168 * digraph.cc (test_edge::test_edge): Specify template for base
31171 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31173 * config/arc/arc.c (arc_rtx_costs): Update mul64 cost.
31175 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31177 * config/arc/arc-protos.h (gen_mlo): Remove.
31178 (gen_mhi): Likewise.
31179 * config/arc/arc.c (AUX_MULHI): Define.
31180 (arc_must_save_reister): Special handling for r58/59.
31181 (arc_compute_frame_size): Consider mlo/mhi registers.
31182 (arc_save_callee_saves): Emit fp/sp move only when emit_move
31184 (arc_conditional_register_usage): Remove TARGET_BIG_ENDIAN from
31185 mlo/mhi name selection.
31186 (arc_restore_callee_saves): Don't early restore blink when ISR.
31187 (arc_expand_prologue): Add mlo/mhi saving.
31188 (arc_expand_epilogue): Add mlo/mhi restoring.
31191 * config/arc/arc.h (DBX_REGISTER_NUMBER): Correct register
31192 numbering when MUL64 option is used.
31193 (DWARF2_FRAME_REG_OUT): Define.
31194 * config/arc/arc.md (arc600_stall): New pattern.
31195 (VUNSPEC_ARC_ARC600_STALL): Define.
31196 (mulsi64): Use correct mlo/mhi registers.
31197 (mulsi_600): Clean it up.
31198 * config/arc/predicates.md (mlo_operand): Remove any dependency on
31200 (mhi_operand): Likewise.
31202 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31203 Petro Karashchenko <petro.karashchenko@ring.com>
31205 * config/arc/arc.c (arc_is_uncached_mem_p): Check struct
31206 attributes if needed.
31207 (prepare_move_operands): Generate special unspec instruction for
31209 (arc_isuncached_mem_p): Propagate uncached attribute to each
31211 * config/arc/arc.md (VUNSPEC_ARC_LDDI): Define.
31212 (VUNSPEC_ARC_STDI): Likewise.
31213 (ALLI): New mode iterator.
31214 (mALLI): New mode attribute.
31215 (lddi): New instruction pattern.
31217 (stdidi_split): Split instruction for architectures which are not
31218 supporting ll64 option.
31219 (lddidi_split): Likewise.
31221 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31223 PR rtl-optimization/92989
31224 * lra-lives.c (process_bb_lives): Update the live-in set before
31225 processing additional clobbers.
31227 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31229 PR rtl-optimization/93170
31230 * cselib.c (cselib_invalidate_regno_val): New function, split out
31232 (cselib_invalidate_regno): ...here.
31233 (cselib_invalidated_by_call_p): New function.
31234 (cselib_process_insn): Iterate over all the hard-register entries in
31235 REG_VALUES and invalidate any that cross call-clobbered registers.
31237 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31239 * dojump.c (split_comparison): Use HONOR_NANS rather than
31240 HONOR_SNANS when splitting LTGT.
31242 2020-01-27 Martin Liska <mliska@suse.cz>
31245 * opts.c (print_filtered_help): Exclude language-specific
31246 options from --help=common unless enabled in all FEs.
31248 2020-01-27 Martin Liska <mliska@suse.cz>
31250 * opts.c (print_help): Exclude params from
31251 all except --help=param.
31253 2020-01-27 Martin Liska <mliska@suse.cz>
31256 * config/i386/i386-features.c (make_resolver_func):
31257 Align the code with ppc64 target implementation.
31258 Do not generate a unique name for resolver function.
31260 2020-01-27 Richard Biener <rguenther@suse.de>
31262 PR tree-optimization/93397
31263 * tree-vect-slp.c (vect_analyze_slp_instance): Delay
31264 converted reduction chain SLP graph adjustment.
31266 2020-01-26 Marek Polacek <polacek@redhat.com>
31269 * sanopt.c (sanitize_rewrite_addressable_params): Avoid crash on
31272 2020-01-26 Jason Merrill <jason@redhat.com>
31275 * tree.c (verify_type_variant): Only verify TYPE_NEEDS_CONSTRUCTING
31278 2020-01-26 Darius Galis <darius.galis@cyberthorstudios.com>
31280 * config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint
31281 (rx_setmem): Likewise.
31283 2020-01-26 Jakub Jelinek <jakub@redhat.com>
31286 * config/i386/i386.md (*addv<dwi>4_doubleword, *subv<dwi>4_doubleword):
31287 Use nonimmediate_operand instead of x86_64_hilo_general_operand and
31288 drop <di> from constraint of last operand.
31291 * config/i386/sse.md (*avx_vperm_broadcast_<mode>): Disallow for
31292 TARGET_AVX2 and V4DFmode not in the split condition, but in the
31293 pattern condition, though allow { 0, 0, 0, 0 } broadcast always.
31295 2020-01-25 Feng Xue <fxue@os.amperecomputing.com>
31298 * ipa-cp.c (get_info_about_necessary_edges): Remove value
31301 2020-01-24 Jeff Law <law@redhat.com>
31303 PR tree-optimization/92788
31304 * tree-ssa-threadedge.c (thread_across_edge): Check EDGE_COMPLEX
31307 2020-01-24 Jakub Jelinek <jakub@redhat.com>
31310 * config/i386/sse.md (*avx_vperm_broadcast_v4sf,
31311 *avx_vperm_broadcast_<mode>,
31312 <sse2_avx_avx512f>_vpermil<mode><mask_name>,
31313 *<sse2_avx_avx512f>_vpermilp<mode><mask_name>):
31314 Move before avx2_perm<mode>/avx512f_perm<mode>.
31317 * simplify-rtx.c (simplify_const_unary_operation,
31318 simplify_const_binary_operation): Punt for mode precision above
31319 MAX_BITSIZE_MODE_ANY_INT.
31321 2020-01-24 Andrew Pinski <apinski@marvell.com>
31323 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Change
31324 alu.shift_reg to 0.
31326 2020-01-24 Jeff Law <law@redhat.com>
31329 * config/h8300/h8300.c (h8300_print_operand): Only call byte_reg
31330 for REGs. Call output_operand_lossage to get more reasonable
31333 2020-01-24 Andrew Stubbs <ams@codesourcery.com>
31335 * config/gcn/gcn-valu.md (vec_cmp<mode>di): Use
31336 gcn_fp_compare_operator.
31337 (vec_cmpu<mode>di): Use gcn_compare_operator.
31338 (vec_cmp<u>v64qidi): Use gcn_compare_operator.
31339 (vec_cmp<mode>di_exec): Use gcn_fp_compare_operator.
31340 (vec_cmpu<mode>di_exec): Use gcn_compare_operator.
31341 (vec_cmp<u>v64qidi_exec): Use gcn_compare_operator.
31342 (vec_cmp<mode>di_dup): Use gcn_fp_compare_operator.
31343 (vec_cmp<mode>di_dup_exec): Use gcn_fp_compare_operator.
31344 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): Use
31345 gcn_fp_compare_operator.
31346 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): Use
31347 gcn_fp_compare_operator.
31348 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): Use
31349 gcn_fp_compare_operator.
31350 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): Use
31351 gcn_fp_compare_operator.
31353 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
31355 * doc/install.texi (Cross-Compiler-Specific Options): Document
31356 `--with-toolexeclibdir' option.
31358 2020-01-24 Hans-Peter Nilsson <hp@axis.com>
31360 * target.def (flags_regnum): Also mention effect on delay slot filling.
31361 * doc/tm.texi: Regenerate.
31363 2020-01-23 Jeff Law <law@redhat.com>
31365 PR translation/90162
31366 * config/h8300/h8300.c (h8300_option_override): Fix diagnostic text.
31368 2020-01-23 Mikael Tillenius <mti-1@tillenius.com>
31371 * config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of
31374 2020-01-23 Jakub Jelinek <jakub@redhat.com>
31376 PR rtl-optimization/93402
31377 * postreload.c (reload_combine_recognize_pattern): Don't try to adjust
31380 2020-01-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
31382 * config.in: Regenerated.
31383 * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to 1
31384 for TARGET_LIBC_GNUSTACK.
31385 * configure: Regenerated.
31386 * configure.ac: Define TARGET_LIBC_GNUSTACK if glibc version is
31387 found to be 2.31 or greater.
31389 2020-01-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
31391 * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to
31393 * config/mips/mips.c (TARGET_ASM_FILE_END): Define to ...
31394 (mips_asm_file_end): New function. Delegate to
31395 file_end_indicate_exec_stack if NEED_INDICATE_EXEC_STACK is true.
31396 * config/mips/mips.h (NEED_INDICATE_EXEC_STACK): Define to 0.
31398 2020-01-23 Jakub Jelinek <jakub@redhat.com>
31401 * config/i386/i386-modes.def (POImode): New mode.
31402 (MAX_BITSIZE_MODE_ANY_INT): Change from 128 to 160.
31403 * config/i386/i386.md (DPWI): New mode attribute.
31404 (addv<mode>4, subv<mode>4): Use <DPWI> instead of <DWI>.
31405 (QWI): Rename to...
31406 (QPWI): ... this. Use POI instead of OI for TImode.
31407 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1,
31408 *subv<dwi>4_doubleword, *subv<dwi>4_doubleword_1): Use <QPWI>
31411 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
31414 * config/aarch64/aarch64.md (UNSPEC_SPECULATION_TRACKER_REV): New
31416 (speculation_tracker_rev): New pattern.
31417 * config/aarch64/aarch64-speculation.cc (aarch64_do_track_speculation):
31418 Use speculation_tracker_rev to track the inverse condition.
31420 2020-01-23 Richard Biener <rguenther@suse.de>
31422 PR tree-optimization/93381
31423 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Take
31424 alias-set of the def as argument and record the first one.
31425 (vn_walk_cb_data::first_set): New member.
31426 (vn_reference_lookup_3): Pass the alias-set of the current def
31427 to push_partial_def. Fix alias-set used in the aggregate copy
31429 (vn_reference_lookup): Consistently set *last_vuse_ptr.
31430 * real.c (clear_significand_below): Fix out-of-bound access.
31432 2020-01-23 Jakub Jelinek <jakub@redhat.com>
31435 * config/i386/i386.md (*bmi2_bzhi_<mode>3_2, *bmi2_bzhi_<mode>3_3):
31436 New define_insn patterns.
31438 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
31440 * doc/sourcebuild.texi (check-function-bodies): Add an
31441 optional target/xfail selector.
31443 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
31445 PR rtl-optimization/93124
31446 * auto-inc-dec.c (merge_in_block): Don't add auto inc/decs to
31447 bare USE and CLOBBER insns.
31449 2020-01-22 Andrew Pinski <apinski@marvell.com>
31451 * config/arc/arc.c (output_short_suffix): Check insn for nullness.
31453 2020-01-22 David Malcolm <dmalcolm@redhat.com>
31456 * gdbinit.in (break-on-saved-diagnostic): Update for move of
31457 diagnostic_manager into "ana" namespace.
31458 * selftest-run-tests.c (selftest::run_tests): Update for move of
31459 selftest::run_analyzer_selftests to
31460 ana::selftest::run_analyzer_selftests.
31462 2020-01-22 Richard Sandiford <richard.sandiford@arm.com>
31464 * cfgexpand.c (union_stack_vars): Update the size.
31466 2020-01-22 Richard Biener <rguenther@suse.de>
31468 PR tree-optimization/93381
31469 * tree-ssa-structalias.c (find_func_aliases): Assume offsetting
31470 throughout, handle all conversions the same.
31472 2020-01-22 Jakub Jelinek <jakub@redhat.com>
31475 * config/aarch64/aarch64.c (aarch64_expand_subvti): Only use
31476 gen_subdi3_compare1_imm if low_in2 satisfies aarch64_plus_immediate
31477 predicate, not whenever it is CONST_INT. Otherwise, force_reg it.
31478 Call force_reg on high_in2 unconditionally.
31480 2020-01-22 Martin Liska <mliska@suse.cz>
31482 PR tree-optimization/92924
31483 * profile.c (compute_value_histograms): Divide
31484 all counter values.
31486 2020-01-22 Jakub Jelinek <jakub@redhat.com>
31489 * output.h (assemble_name_resolve): Declare.
31490 * varasm.c (assemble_name_resolve): New function.
31491 (assemble_name): Use it.
31492 * config/i386/i386.h (ASM_OUTPUT_SYMBOL_REF): Define.
31494 2020-01-22 Joseph Myers <joseph@codesourcery.com>
31496 * doc/sourcebuild.texi (Texinfo Manuals, Front End): Refer to
31497 update_web_docs_git instead of update_web_docs_svn.
31499 2020-01-21 Andrew Pinski <apinski@marvell.com>
31502 * config/aarch64/aarch64.md (tlsgd_small_<mode>): Have operand 0
31503 as PTR mode. Have operand 1 as being modeless, it can be P mode.
31504 (*tlsgd_small_<mode>): Likewise.
31505 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately)
31506 <case SYMBOL_SMALL_TLSGD>: Call gen_tlsgd_small_* with a ptr_mode
31507 register. Convert that register back to dest using convert_mode.
31509 2020-01-21 Jim Wilson <jimw@sifive.com>
31511 * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Use INTVAL
31514 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
31515 Uros Bizjak <ubizjak@gmail.com>
31518 * config/i386/i386.c (ix86_tls_module_base): Replace Pmode
31520 (legitimize_tls_address): Do GNU2 TLS address computation in
31521 ptr_mode and zero-extend result to Pmode.
31522 * config/i386/i386.md (@tls_dynamic_gnu2_64_<mode>): Replace
31523 :P with :PTR and Pmode with ptr_mode.
31524 (*tls_dynamic_gnu2_lea_64_<mode>): Likewise.
31525 (*tls_dynamic_gnu2_call_64_<mode>): Likewise.
31526 (*tls_dynamic_gnu2_combine_64_<mode>): Likewise.
31528 2020-01-21 Jakub Jelinek <jakub@redhat.com>
31531 * config/riscv/riscv.c (riscv_rtx_costs) <case ZERO_EXTRACT>: Verify
31532 the last two operands are CONST_INT_P before using them as such.
31534 2020-01-21 Richard Sandiford <richard.sandiford@arm.com>
31536 * config/aarch64/aarch64-sve-builtins.def: Use get_typenode_from_name
31537 to get the integer element types.
31539 2020-01-21 Richard Sandiford <richard.sandiford@arm.com>
31541 * config/aarch64/aarch64-sve-builtins.h
31542 (function_expander::convert_to_pmode): Declare.
31543 * config/aarch64/aarch64-sve-builtins.cc
31544 (function_expander::convert_to_pmode): New function.
31545 (function_expander::get_contiguous_base): Use it.
31546 (function_expander::prepare_gather_address_operands): Likewise.
31547 * config/aarch64/aarch64-sve-builtins-sve2.cc
31548 (svwhilerw_svwhilewr_impl::expand): Likewise.
31550 2020-01-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
31553 * config/aarch64/aarch64.c (aarch64_declare_function_name): Set
31554 cfun->machine->label_is_assembled.
31555 (aarch64_print_patchable_function_entry): New.
31556 (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): Define.
31557 * config/aarch64/aarch64.h (struct machine_function): New field,
31558 label_is_assembled.
31560 2020-01-21 David Malcolm <dmalcolm@redhat.com>
31563 * ipa-profile.c (ipa_profile): Delete call_sums and set it to
31566 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
31569 * cgraph.c (cgraph_edge::resolve_speculation,
31570 cgraph_edge::redirect_call_stmt_to_callee): Fix update of
31571 call_stmt_site_hash.
31573 2020-01-21 Martin Liska <mliska@suse.cz>
31575 * config/rs6000/rs6000.c (common_mode_defined): Remove
31578 2020-01-21 Richard Biener <rguenther@suse.de>
31580 PR tree-optimization/92328
31581 * tree-ssa-sccvn.c (vn_reference_lookup_3): Preserve
31582 type when value-numbering same-sized store by inserting a
31584 (eliminate_dom_walker::eliminate_stmt): When eliminating
31585 a redundant store handle bit-reinterpretation of the same value.
31587 2020-01-21 Andrew Pinski <apinski@marvel.com>
31590 * tree-into-ssa.c (prepare_block_for_update_1): Split out
31592 (prepare_block_for_update): This. Use a worklist instead of
31595 2020-01-21 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
31597 * config/arm/arm.c (clear_operation_p):
31598 Initialise last_regno, skip first iteration
31599 based on the first_set value and use ints instead
31600 of the unnecessary HOST_WIDE_INTs.
31602 2020-01-21 Jakub Jelinek <jakub@redhat.com>
31605 * config/rs6000/rs6000.c (rs6000_emit_cmove): If using fsel, punt for
31606 compare_mode other than SFmode or DFmode.
31608 2020-01-21 Kito Cheng <kito.cheng@sifive.com>
31611 * config/riscv/riscv-protos.h (riscv_hard_regno_rename_ok): New.
31612 * config/riscv/riscv.c (riscv_hard_regno_rename_ok): New.
31613 * config/riscv/riscv.h (HARD_REGNO_RENAME_OK): Defined.
31615 2020-01-20 Wilco Dijkstra <wdijkstr@arm.com>
31617 * config/aarch64/aarch64.c (neoversen1_tunings): Set jump_align to 4.
31619 2020-01-20 Andrew Pinski <apinski@marvell.com>
31621 PR middle-end/93242
31622 * targhooks.c (default_print_patchable_function_entry): Use
31623 output_asm_insn to emit the nop instruction.
31625 2020-01-20 Fangrui Song <maskray@google.com>
31627 PR middle-end/93194
31628 * targhooks.c (default_print_patchable_function_entry): Align to
31631 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
31634 * config/i386/i386.c (legitimize_tls_address): Pass Pmode to
31635 gen_tls_dynamic_gnu2_64. Compute GNU2 TLS address in ptr_mode.
31636 * config/i386/i386.md (tls_dynamic_gnu2_64): Renamed to ...
31637 (@tls_dynamic_gnu2_64_<mode>): This. Replace DI with P.
31638 (*tls_dynamic_gnu2_lea_64): Renamed to ...
31639 (*tls_dynamic_gnu2_lea_64_<mode>): This. Replace DI with P.
31640 Remove the {q} suffix from lea.
31641 (*tls_dynamic_gnu2_call_64): Renamed to ...
31642 (*tls_dynamic_gnu2_call_64_<mode>): This. Replace DI with P.
31643 (*tls_dynamic_gnu2_combine_64): Renamed to ...
31644 (*tls_dynamic_gnu2_combine_64_<mode>): This. Replace DI with P.
31645 Pass Pmode to gen_tls_dynamic_gnu2_64.
31647 2020-01-20 Wilco Dijkstra <wdijkstr@arm.com>
31649 * config/aarch64/aarch64.h (SLOW_BYTE_ACCESS): Set to 1.
31651 2020-01-20 Richard Sandiford <richard.sandiford@arm.com>
31653 * config/aarch64/aarch64-sve-builtins-base.cc
31654 (svld1ro_impl::memory_vector_mode): Remove parameter name.
31656 2020-01-20 Richard Biener <rguenther@suse.de>
31659 * dwarf2out.c (prune_unused_types): Unconditionally mark
31660 called function DIEs.
31662 2020-01-20 Martin Liska <mliska@suse.cz>
31664 PR tree-optimization/93199
31665 * tree-eh.c (struct leh_state): Add
31666 new field outer_non_cleanup.
31667 (cleanup_is_dead_in): Pass leh_state instead
31668 of eh_region. Add a checking that state->outer_non_cleanup
31669 points to outer non-clean up region.
31670 (lower_try_finally): Record outer_non_cleanup
31672 (lower_catch): Likewise.
31673 (lower_eh_filter): Likewise.
31674 (lower_eh_must_not_throw): Likewise.
31675 (lower_cleanup): Likewise.
31677 2020-01-20 Richard Biener <rguenther@suse.de>
31679 PR tree-optimization/93094
31680 * tree-vectorizer.h (vect_loop_versioning): Adjust.
31681 (vect_transform_loop): Likewise.
31682 * tree-vectorizer.c (try_vectorize_loop_1): Pass down
31683 loop_vectorized_call to vect_transform_loop.
31684 * tree-vect-loop.c (vect_transform_loop): Pass down
31685 loop_vectorized_call to vect_loop_versioning.
31686 * tree-vect-loop-manip.c (vect_loop_versioning): Use
31687 the earlier discovered loop_vectorized_call.
31689 2020-01-19 Eric S. Raymond <esr@thyrsus.com>
31691 * doc/contribute.texi: Update for SVN -> Git transition.
31692 * doc/install.texi: Likewise.
31694 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
31697 * cgraph.c (cgraph_edge::make_speculative): Increase number of
31698 speculative targets.
31699 (verify_speculative_call): New function
31700 (cgraph_node::verify_node): Use it.
31701 * ipa-profile.c (ipa_profile): Fix formating; do not set number of
31704 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
31707 * cgraph.c (cgraph_edge::resolve_speculation): Fix foramting.
31708 (cgraph_edge::make_direct): Remove all indirect targets.
31709 (cgraph_edge::redirect_call_stmt_to_callee): Use make_direct..
31710 (cgraph_node::verify_node): Verify that only one call_stmt or
31711 lto_stmt_uid is set.
31712 * cgraphclones.c (cgraph_edge::clone): Set only one call_stmt or
31714 * lto-cgraph.c (lto_output_edge): Simplify streaming of stmt.
31715 (lto_output_ref): Simplify streaming of stmt.
31716 * lto-streamer-in.c (fixup_call_stmt_edges_1): Clear lto_stmt_uid.
31718 2020-01-18 Tamar Christina <tamar.christina@arm.com>
31720 * config/aarch64/aarch64-sve-builtins-base.cc (memory_vector_mode):
31721 Mark parameter unused.
31723 2020-01-18 Hans-Peter Nilsson <hp@axis.com>
31725 * config.gcc <obsolete targets>: Add crisv32-*-* and cris-*-linux*
31727 2019-01-18 Gerald Pfeifer <gerald@pfeifer.com>
31729 * varpool.c (ctor_useable_for_folding_p): Fix grammar.
31731 2020-01-18 Iain Sandoe <iain@sandoe.co.uk>
31733 * Makefile.in: Add coroutine-passes.o.
31734 * builtin-types.def (BT_CONST_SIZE): New.
31735 (BT_FN_BOOL_PTR): New.
31736 (BT_FN_PTR_PTR_CONST_SIZE_BOOL): New.
31737 * builtins.def (DEF_COROUTINE_BUILTIN): New.
31738 * coroutine-builtins.def: New file.
31739 * coroutine-passes.cc: New file.
31740 * function.h (struct GTY function): Add a bit to indicate that the
31741 function is a coroutine component.
31742 * internal-fn.c (expand_CO_FRAME): New.
31743 (expand_CO_YIELD): New.
31744 (expand_CO_SUSPN): New.
31745 (expand_CO_ACTOR): New.
31746 * internal-fn.def (CO_ACTOR): New.
31750 * passes.def: Add pass_coroutine_lower_builtins,
31751 pass_coroutine_early_expand_ifns.
31752 * tree-pass.h (make_pass_coroutine_lower_builtins): New.
31753 (make_pass_coroutine_early_expand_ifns): New.
31754 * doc/invoke.texi: Document the fcoroutines command line
31757 2020-01-18 Jakub Jelinek <jakub@redhat.com>
31759 * config/arm/vfp.md (*clear_vfp_multiple): Remove unused variable.
31762 * config/arm/arm.c (clear_operation_p): Don't use REGNO until
31763 after checking the argument is a REG. Don't use REGNO (reg)
31764 again to set last_regno, reuse regno variable instead.
31766 2020-01-17 David Malcolm <dmalcolm@redhat.com>
31768 * doc/analyzer.texi (Limitations): Add note about NaN.
31770 2020-01-17 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
31771 Sudakshina Das <sudi.das@arm.com>
31773 * config/arm/arm.md (ashldi3): Generate thumb2_lsll for both reg
31774 and valid immediate.
31775 (ashrdi3): Generate thumb2_asrl for both reg and valid immediate.
31776 (lshrdi3): Generate thumb2_lsrl for valid immediates.
31777 * config/arm/constraints.md (Pg): New.
31778 * config/arm/predicates.md (long_shift_imm): New.
31779 (arm_reg_or_long_shift_imm): Likewise.
31780 * config/arm/thumb2.md (thumb2_asrl): New immediate alternative.
31781 (thumb2_lsll): Likewise.
31782 (thumb2_lsrl): New.
31784 2020-01-17 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
31785 Sudakshina Das <sudi.das@arm.com>
31787 * config/arm/arm.md (ashldi3): Generate thumb2_lsll for TARGET_HAVE_MVE.
31788 (ashrdi3): Generate thumb2_asrl for TARGET_HAVE_MVE.
31789 * config/arm/arm.c (arm_hard_regno_mode_ok): Allocate even odd
31790 register pairs for doubleword quantities for ARMv8.1M-Mainline.
31791 * config/arm/thumb2.md (thumb2_asrl): New.
31792 (thumb2_lsll): Likewise.
31794 2020-01-17 Jakub Jelinek <jakub@redhat.com>
31796 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear): Remove
31799 2020-01-17 Alexander Monakov <amonakov@ispras.ru>
31801 * gdbinit.in (help-gcc-hooks): New command.
31802 (pp, pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, ptc, pdn, ptn, pdd, prc,
31803 pi, pbm, pel, trt): Take $arg0 instead of $ if supplied. Update
31806 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
31808 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use the
31809 correct target macro.
31811 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
31813 * config/aarch64/aarch64-protos.h
31814 (aarch64_sve_ld1ro_operand_p): New.
31815 * config/aarch64/aarch64-sve-builtins-base.cc
31816 (class load_replicate): New.
31817 (class svld1ro_impl): New.
31818 (class svld1rq_impl): Change to inherit from load_replicate.
31819 (svld1ro): New sve intrinsic function base.
31820 * config/aarch64/aarch64-sve-builtins-base.def (svld1ro):
31821 New DEF_SVE_FUNCTION.
31822 * config/aarch64/aarch64-sve-builtins-base.h
31823 (svld1ro): New decl.
31824 * config/aarch64/aarch64-sve-builtins.cc
31825 (function_expander::add_mem_operand): Modify assert to allow
31827 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): New
31829 * config/aarch64/aarch64.c
31830 (aarch64_sve_ld1rq_operand_p): Implement in terms of ...
31831 (aarch64_sve_ld1rq_ld1ro_operand_p): This.
31832 (aarch64_sve_ld1ro_operand_p): New.
31833 * config/aarch64/aarch64.md (UNSPEC_LD1RO): New unspec.
31834 * config/aarch64/constraints.md (UOb,UOh,UOw,UOd): New.
31835 * config/aarch64/predicates.md
31836 (aarch64_sve_ld1ro_operand_{b,h,w,d}): New.
31838 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
31840 * config/aarch64/aarch64-c.c (_ARM_FEATURE_MATMUL_FLOAT64):
31841 Introduce this ACLE specified predefined macro.
31842 * config/aarch64/aarch64-option-extensions.def (f64mm): New.
31843 (fp): Disabling this disables f64mm.
31844 (simd): Disabling this disables f64mm.
31845 (fp16): Disabling this disables f64mm.
31846 (sve): Disabling this disables f64mm.
31847 * config/aarch64/aarch64.h (AARCH64_FL_F64MM): New.
31848 (AARCH64_ISA_F64MM): New.
31849 (TARGET_F64MM): New.
31850 * doc/invoke.texi (f64mm): Document new option.
31852 2020-01-17 Wilco Dijkstra <wdijkstr@arm.com>
31854 * config/aarch64/aarch64.c (generic_tunings): Add branch fusion.
31855 (neoversen1_tunings): Likewise.
31857 2020-01-17 Wilco Dijkstra <wdijkstr@arm.com>
31860 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap)
31861 Add assert to ensure prolog has been emitted.
31862 (aarch64_split_atomic_op): Likewise.
31863 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>)
31864 Use epilogue_completed rather than reload_completed.
31865 (aarch64_atomic_exchange<mode>): Likewise.
31866 (aarch64_atomic_<atomic_optab><mode>): Likewise.
31867 (atomic_nand<mode>): Likewise.
31868 (aarch64_atomic_fetch_<atomic_optab><mode>): Likewise.
31869 (atomic_fetch_nand<mode>): Likewise.
31870 (aarch64_atomic_<atomic_optab>_fetch<mode>): Likewise.
31871 (atomic_nand_fetch<mode>): Likewise.
31873 2020-01-17 Richard Sandiford <richard.sandiford@arm.com>
31876 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Return false
31878 (REVERSE_CONDITION): Delete.
31879 * config/aarch64/iterators.md (CC_ONLY): New mode iterator.
31880 (CCFP_CCFPE): Likewise.
31881 (e): New mode attribute.
31882 * config/aarch64/aarch64.md (ccmp<GPI:mode>): Rename to...
31883 (@ccmp<CC_ONLY:mode><GPI:mode>): ...this, using CC_ONLY instead of CC.
31884 (fccmp<GPF:mode>, fccmpe<GPF:mode>): Merge into...
31885 (@ccmp<CCFP_CCFPE:mode><GPF:mode>): ...this combined pattern.
31886 (@ccmp<CC_ONLY:mode><GPI:mode>_rev): New pattern.
31887 (@ccmp<CCFP_CCFPE:mode><GPF:mode>_rev): Likewise.
31888 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Update
31889 name of generator from gen_ccmpdi to gen_ccmpccdi.
31890 (aarch64_gen_ccmp_next): Use code_for_ccmp. If we want to reverse
31891 the previous comparison but aren't able to, use the new ccmp_rev
31894 2020-01-17 Richard Sandiford <richard.sandiford@arm.com>
31896 * gimplify.c (gimplify_return_expr): Use poly_int_tree_p rather
31897 than testing directly for INTEGER_CST.
31898 (gimplify_target_expr, gimplify_omp_depend): Likewise.
31900 2020-01-17 Jakub Jelinek <jakub@redhat.com>
31902 PR tree-optimization/93292
31903 * tree-vect-stmts.c (vectorizable_comparison): Punt also if
31904 get_vectype_for_scalar_type returns NULL.
31906 2020-01-16 Jan Hubicka <hubicka@ucw.cz>
31908 * params.opt (-param=max-predicted-iterations): Increase range from 0.
31909 * predict.c (estimate_loops): Add 1 to param_max_predicted_iterations.
31911 2020-01-16 Jan Hubicka <hubicka@ucw.cz>
31913 * ipa-fnsummary.c (estimate_calls_size_and_time): Fix formating of
31915 * params.opt: (max-predicted-iterations): Set bounds.
31916 * predict.c (real_almost_one, real_br_prob_base,
31917 real_inv_br_prob_base, real_one_half, real_bb_freq_max): Remove.
31918 (propagate_freq): Add max_cyclic_prob parameter; cap cyclic
31919 probabilities; do not truncate to reg_br_prob_bases.
31920 (estimate_loops_at_level): Pass max_cyclic_prob.
31921 (estimate_loops): Compute max_cyclic_prob.
31922 (estimate_bb_frequencies): Do not initialize real_*; update calculation
31924 * profile-count.c (profile_probability::to_sreal): New.
31925 * profile-count.h (class sreal): Move up in file.
31926 (profile_probability::to_sreal): Declare.
31928 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
31931 (arm_invalid_conversion): New function for target hook.
31932 (arm_invalid_unary_op): New function for target hook.
31933 (arm_invalid_binary_op): New function for target hook.
31935 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
31937 * config.gcc: Add arm_bf16.h.
31938 * config/arm/arm-builtins.c (arm_mangle_builtin_type): Fix comment.
31939 (arm_simd_builtin_std_type): Add BFmode.
31940 (arm_init_simd_builtin_types): Define element types for vector types.
31941 (arm_init_bf16_types): New function.
31942 (arm_init_builtins): Add arm_init_bf16_types function call.
31943 * config/arm/arm-modes.def: Add BFmode and V4BF, V8BF vector modes.
31944 * config/arm/arm-simd-builtin-types.def: Add V4BF, V8BF.
31945 * config/arm/arm.c (aapcs_vfp_sub_candidate): Add BFmode.
31946 (arm_hard_regno_mode_ok): Add BFmode and tidy up statements.
31947 (arm_vector_mode_supported_p): Add V4BF, V8BF.
31948 (arm_mangle_type): Add __bf16.
31949 * config/arm/arm.h: Add V4BF, V8BF to VALID_NEON_DREG_MODE,
31950 VALID_NEON_QREG_MODE respectively. Add export arm_bf16_type_node,
31951 arm_bf16_ptr_type_node.
31952 * config/arm/arm.md: Add BFmode to movhf expand, mov pattern and
31953 define_split between ARM registers.
31954 * config/arm/arm_bf16.h: New file.
31955 * config/arm/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
31956 * config/arm/iterators.md: (ANY64_BF, VDXMOV, VHFBF, HFBF, fporbf): New.
31957 (VQXMOV): Add V8BF.
31958 * config/arm/neon.md: Add BF vector types to movhf NEON move patterns.
31959 * config/arm/vfp.md: Add BFmode to movhf patterns.
31961 2020-01-16 Mihail Ionescu <mihail.ionescu@arm.com>
31962 Andre Vieira <andre.simoesdiasvieira@arm.com>
31964 * config/arm/arm-cpus.in (mve, mve_float): New features.
31965 (dsp, mve, mve.fp): New options.
31966 * config/arm/arm.h (TARGET_HAVE_MVE, TARGET_HAVE_MVE_FLOAT): Define.
31967 * config/arm/t-rmprofile: Map v8.1-M multilibs to v8-M.
31968 * doc/invoke.texi: Document the armv8.1-m mve and dps options.
31970 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
31971 Thomas Preud'homme <thomas.preudhomme@arm.com>
31973 * config/arm/arm-cpus.in (ARMv8_1m_main): Redefine as an extension to
31975 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Remove
31976 error for using -mcmse when targeting Armv8.1-M Mainline.
31978 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
31979 Thomas Preud'homme <thomas.preudhomme@arm.com>
31981 * config/arm/arm.md (nonsecure_call_internal): Do not force memory
31982 address in r4 when targeting Armv8.1-M Mainline.
31983 (nonsecure_call_value_internal): Likewise.
31984 * config/arm/thumb2.md (nonsecure_call_reg_thumb2): Make memory address
31985 a register match_operand again. Emit BLXNS when targeting
31986 Armv8.1-M Mainline.
31987 (nonsecure_call_value_reg_thumb2): Likewise.
31989 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
31990 Thomas Preud'homme <thomas.preudhomme@arm.com>
31992 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): Declare early.
31993 (cmse_nonsecure_call_inline_register_clear): Define new lazy_fpclear
31994 variable as true when floating-point ABI is not hard. Replace
31995 check against TARGET_HARD_FLOAT_ABI by checks against lazy_fpclear.
31996 Generate VLSTM and VLLDM instruction respectively before and
31997 after a function call to cmse_nonsecure_call function.
31998 * config/arm/unspecs.md (VUNSPEC_VLSTM): Define unspec.
31999 (VUNSPEC_VLLDM): Likewise.
32000 * config/arm/vfp.md (lazy_store_multiple_insn): New define_insn.
32001 (lazy_load_multiple_insn): Likewise.
32003 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32004 Thomas Preud'homme <thomas.preudhomme@arm.com>
32006 * config/arm/arm.c (vfp_emit_fstmd): Declare early.
32007 (arm_emit_vfp_multi_reg_pop): Likewise.
32008 (cmse_nonsecure_call_inline_register_clear): Abstract number of VFP
32009 registers to clear in max_fp_regno. Emit VPUSH and VPOP to save and
32010 restore callee-saved VFP registers.
32012 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32013 Thomas Preud'homme <thomas.preudhomme@arm.com>
32015 * config/arm/arm.c (arm_emit_multi_reg_pop): Declare early.
32016 (cmse_nonsecure_call_clear_caller_saved): Rename into ...
32017 (cmse_nonsecure_call_inline_register_clear): This. Save and clear
32018 callee-saved GPRs as well as clear ip register before doing a nonsecure
32019 call then restore callee-saved GPRs after it when targeting
32020 Armv8.1-M Mainline.
32021 (arm_reorg): Adapt to function rename.
32023 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32024 Thomas Preud'homme <thomas.preudhomme@arm.com>
32026 * config/arm/arm-protos.h (clear_operation_p): Adapt prototype.
32027 * config/arm/arm.c (clear_operation_p): Extend to be able to check a
32028 clear_vfp_multiple pattern based on a new vfp parameter.
32029 (cmse_clear_registers): Generate VSCCLRM to clear VFP registers when
32030 targeting Armv8.1-M Mainline.
32031 (cmse_nonsecure_entry_clear_before_return): Clear VFP registers
32032 unconditionally when targeting Armv8.1-M Mainline architecture. Check
32033 whether VFP registers are available before looking call_used_regs for a
32035 * config/arm/predicates.md (clear_multiple_operation): Adapt to change
32036 of prototype of clear_operation_p.
32037 (clear_vfp_multiple_operation): New predicate.
32038 * config/arm/unspecs.md (VUNSPEC_VSCCLRM_VPR): New volatile unspec.
32039 * config/arm/vfp.md (clear_vfp_multiple): New define_insn.
32041 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32042 Thomas Preud'homme <thomas.preudhomme@arm.com>
32044 * config/arm/arm-protos.h (clear_operation_p): Declare.
32045 * config/arm/arm.c (clear_operation_p): New function.
32046 (cmse_clear_registers): Generate clear_multiple instruction pattern if
32047 targeting Armv8.1-M Mainline or successor.
32048 (output_return_instruction): Only output APSR register clearing if
32049 Armv8.1-M Mainline instructions not available.
32050 (thumb_exit): Likewise.
32051 * config/arm/predicates.md (clear_multiple_operation): New predicate.
32052 * config/arm/thumb2.md (clear_apsr): New define_insn.
32053 (clear_multiple): Likewise.
32054 * config/arm/unspecs.md (VUNSPEC_CLRM_APSR): New volatile unspec.
32056 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32057 Thomas Preud'homme <thomas.preudhomme@arm.com>
32059 * config/arm/arm.c (fp_sysreg_names): Declare and define.
32060 (use_return_insn): Also return false for Armv8.1-M Mainline.
32061 (output_return_instruction): Skip FPSCR clearing if Armv8.1-M
32062 Mainline instructions are available.
32063 (arm_compute_frame_layout): Allocate space in frame for FPCXTNS
32064 when targeting Armv8.1-M Mainline Security Extensions.
32065 (arm_expand_prologue): Save FPCXTNS if this is an Armv8.1-M
32066 Mainline entry function.
32067 (cmse_nonsecure_entry_clear_before_return): Clear IP and r4 if
32068 targeting Armv8.1-M Mainline or successor.
32069 (arm_expand_epilogue): Fix indentation of caller-saved register
32070 clearing. Restore FPCXTNS if this is an Armv8.1-M Mainline
32072 * config/arm/arm.h (TARGET_HAVE_FP_CMSE): New macro.
32073 (FP_SYSREGS): Likewise.
32074 (enum vfp_sysregs_encoding): Define enum.
32075 (fp_sysreg_names): Declare.
32076 * config/arm/unspecs.md (VUNSPEC_VSTR_VLDR): New volatile unspec.
32077 * config/arm/vfp.md (push_fpsysreg_insn): New define_insn.
32078 (pop_fpsysreg_insn): Likewise.
32080 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32081 Thomas Preud'homme <thomas.preudhomme@arm.com>
32083 * config/arm/arm-cpus.in (armv8_1m_main): New feature.
32084 (ARMv4, ARMv4t, ARMv5t, ARMv5te, ARMv5tej, ARMv6, ARMv6j, ARMv6k,
32085 ARMv6z, ARMv6kz, ARMv6zk, ARMv6t2, ARMv6m, ARMv7, ARMv7a, ARMv7ve,
32086 ARMv7r, ARMv7m, ARMv7em, ARMv8a, ARMv8_1a, ARMv8_2a, ARMv8_3a,
32087 ARMv8_4a, ARMv8_5a, ARMv8m_base, ARMv8m_main, ARMv8r): Reindent.
32088 (ARMv8_1m_main): New feature group.
32089 (armv8.1-m.main): New architecture.
32090 * config/arm/arm-tables.opt: Regenerate.
32091 * config/arm/arm.c (arm_arch8_1m_main): Define and default initialize.
32092 (arm_option_reconfigure_globals): Initialize arm_arch8_1m_main.
32093 (arm_options_perform_arch_sanity_checks): Error out when targeting
32094 Armv8.1-M Mainline Security Extensions.
32095 * config/arm/arm.h (arm_arch8_1m_main): Declare.
32097 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32099 * config/aarch64/aarch64-simd-builtins.def (aarch64_bfdot,
32100 aarch64_bfdot_lane, aarch64_bfdot_laneq): New.
32101 * config/aarch64/aarch64-simd.md (aarch64_bfdot, aarch64_bfdot_lane,
32102 aarch64_bfdot_laneq): New.
32103 * config/aarch64/arm_bf16.h (vbfdot_f32, vbfdotq_f32,
32104 vbfdot_lane_f32, vbfdotq_lane_f32, vbfdot_laneq_f32,
32105 vbfdotq_laneq_f32): New.
32106 * config/aarch64/iterators.md (UNSPEC_BFDOT, Vbfdottype,
32107 VBFMLA_W, VBF): New.
32108 (isquadop): Add V4BF, V8BF.
32110 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32112 * config/aarch64/aarch64-builtins.c: (enum aarch64_type_qualifiers):
32113 New qualifier_lane_quadtup_index, TYPES_TERNOP_SSUS,
32114 TYPES_QUADOPSSUS_LANE_QUADTUP, TYPES_QUADOPSSSU_LANE_QUADTUP.
32115 (aarch64_simd_expand_args): Add case SIMD_ARG_LANE_QUADTUP_INDEX.
32116 (aarch64_simd_expand_builtin): Add qualifier_lane_quadtup_index.
32117 * config/aarch64/aarch64-simd-builtins.def (usdot, usdot_lane,
32118 usdot_laneq, sudot_lane,sudot_laneq): New.
32119 * config/aarch64/aarch64-simd.md (aarch64_usdot): New.
32120 (aarch64_<sur>dot_lane): New.
32121 * config/aarch64/arm_neon.h (vusdot_s32): New.
32122 (vusdotq_s32): New.
32123 (vusdot_lane_s32): New.
32124 (vsudot_lane_s32): New.
32125 * config/aarch64/iterators.md (DOTPROD_I8MM): New iterator.
32126 (UNSPEC_USDOT, UNSPEC_SUDOT): New unspecs.
32128 2020-01-16 Martin Liska <mliska@suse.cz>
32130 * value-prof.c (dump_histogram_value): Fix
32131 obvious spacing issue.
32133 2020-01-16 Andrew Pinski <apinski@marvell.com>
32135 * tree-ssa-sccvn.c(vn_reference_lookup_3): Check lhs for
32136 !storage_order_barrier_p.
32138 2020-01-16 Andrew Pinski <apinski@marvell.com>
32140 * sched-int.h (_dep): Add unused bit-field field for the padding.
32141 * sched-deps.c (init_dep_1): Init unused field.
32143 2020-01-16 Andrew Pinski <apinski@marvell.com>
32145 * optabs.h (create_expand_operand): Initialize target field also.
32147 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
32149 PR tree-optimization/92429
32150 * tree-ssa-loop-niter.h (simplify_replace_tree): Add parameter.
32151 * tree-ssa-loop-niter.c (simplify_replace_tree): Add parameter to
32153 * tree-vect-loop.c (update_epilogue_vinfo): Do not fold when replacing
32156 2020-01-16 Richard Sandiford <richard.sandiford@arm.com>
32158 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move): Apply
32159 aarch64_sve_int_mode to each mode.
32161 2020-01-15 David Malcolm <dmalcolm@redhat.com>
32163 * doc/analyzer.texi (Overview): Add note about
32164 -fdump-ipa-analyzer.
32166 2020-01-15 Wilco Dijkstra <wdijkstr@arm.com>
32168 PR tree-optimization/93231
32169 * tree-ssa-forwprop.c (optimize_count_trailing_zeroes): Check
32170 input_type is unsigned. Use tree_to_shwi for shift constant.
32171 Check CST_STRING element size is CHAR_TYPE_SIZE bits.
32172 (simplify_count_trailing_zeroes): Add test to handle known non-zero
32173 inputs more efficiently.
32175 2020-01-15 Uroš Bizjak <ubizjak@gmail.com>
32177 * config/i386/i386.md (*movsf_internal): Do not require
32178 SSE2 ISA for alternatives 14 and 15.
32180 2020-01-15 Richard Biener <rguenther@suse.de>
32182 PR middle-end/93273
32183 * tree-eh.c (sink_clobbers): If we already visited the destination
32184 block do not defer insertion.
32185 (pass_lower_eh_dispatch::execute): Maintain BB_VISITED for
32186 the purpose of defered insertion.
32188 2020-01-15 Jakub Jelinek <jakub@redhat.com>
32190 * BASE-VER: Bump to 10.0.1.
32192 2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
32194 PR tree-optimization/93247
32195 * tree-vect-loop.c (update_epilogue_loop_vinfo): Check the access
32196 type of the stmt that we're going to vectorize.
32198 2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
32200 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Use a
32201 VIEW_CONVERT_EXPR if the vectorized constructor has a diffeent
32204 2020-01-15 Martin Liska <mliska@suse.cz>
32206 * ipa-profile.c (ipa_profile_read_edge_summary): Do not allow
32207 2 calls of streamer_read_hwi in a function call.
32209 2020-01-15 Richard Biener <rguenther@suse.de>
32211 * alias.c (record_alias_subset): Avoid redundant work when
32212 subset is already recorded.
32214 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32216 * doc/invoke.texi (-fdiagnostics-show-cwe): Add note that some of
32217 the analyzer options provide CWE identifiers.
32219 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32221 * tree-diagnostic-path.cc (path_summary::event_range::print):
32222 When testing for UNKNOWN_LOCATION, look through ad-hoc wrappers
32223 using get_pure_location.
32225 2020-01-15 Jakub Jelinek <jakub@redhat.com>
32227 PR tree-optimization/93262
32228 * tree-ssa-dse.c (maybe_trim_memstar_call): For *_chk builtins,
32229 perform head trimming only if the last argument is constant,
32230 either all ones, or larger or equal to head trim, in the latter
32231 case decrease the last argument by head_trim.
32233 PR tree-optimization/93249
32234 * tree-ssa-dse.c: Include builtins.h and gimple-fold.h.
32235 (maybe_trim_memstar_call): Move head_trim and tail_trim vars to
32236 function body scope, reindent. For BUILTIN_IN_STRNCPY*, don't
32237 perform head trim unless we can prove there are no '\0' chars
32238 from the source among the first head_trim chars.
32240 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32242 * Makefile.in (ANALYZER_OBJS): Add analyzer/function-set.o.
32244 2020-01-15 Jakub Jelinek <jakub@redhat.com>
32247 * config/i386/sse.md
32248 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1,
32249 *<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1,
32250 *<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1,
32251 *<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Use
32252 just a single alternative instead of two, make operands 1 and 2
32255 2020-01-14 Jan Hubicka <hubicka@ucw.cz>
32258 * ipa-devirt.c (odr_types_equivalent_p): Compare TREE_ADDRESSABLE and
32261 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32263 * Makefile.in (lang_opt_files): Add analyzer.opt.
32264 (ANALYZER_OBJS): New.
32265 (OBJS): Add digraph.o, graphviz.o, ordered-hash-map-tests.o,
32266 tristate.o and ANALYZER_OBJS.
32267 (TEXI_GCCINT_FILES): Add analyzer.texi.
32268 * common.opt (-fanalyzer): New driver option.
32269 * config.in: Regenerate.
32270 * configure: Regenerate.
32271 * configure.ac (--disable-analyzer, ENABLE_ANALYZER): New option.
32272 (gccdepdir): Also create depdir for "analyzer" subdir.
32273 * digraph.cc: New file.
32274 * digraph.h: New file.
32275 * doc/analyzer.texi: New file.
32276 * doc/gccint.texi ("Static Analyzer") New menu item.
32277 (analyzer.texi): Include it.
32278 * doc/invoke.texi ("Static Analyzer Options"): New list and new section.
32279 ("Warning Options"): Add static analysis warnings to the list.
32280 (-Wno-analyzer-double-fclose): New option.
32281 (-Wno-analyzer-double-free): New option.
32282 (-Wno-analyzer-exposure-through-output-file): New option.
32283 (-Wno-analyzer-file-leak): New option.
32284 (-Wno-analyzer-free-of-non-heap): New option.
32285 (-Wno-analyzer-malloc-leak): New option.
32286 (-Wno-analyzer-possible-null-argument): New option.
32287 (-Wno-analyzer-possible-null-dereference): New option.
32288 (-Wno-analyzer-null-argument): New option.
32289 (-Wno-analyzer-null-dereference): New option.
32290 (-Wno-analyzer-stale-setjmp-buffer): New option.
32291 (-Wno-analyzer-tainted-array-index): New option.
32292 (-Wno-analyzer-use-after-free): New option.
32293 (-Wno-analyzer-use-of-pointer-in-stale-stack-frame): New option.
32294 (-Wno-analyzer-use-of-uninitialized-value): New option.
32295 (-Wanalyzer-too-complex): New option.
32296 (-fanalyzer-call-summaries): New warning.
32297 (-fanalyzer-checker=): New warning.
32298 (-fanalyzer-fine-grained): New warning.
32299 (-fno-analyzer-state-merge): New warning.
32300 (-fno-analyzer-state-purge): New warning.
32301 (-fanalyzer-transitivity): New warning.
32302 (-fanalyzer-verbose-edges): New warning.
32303 (-fanalyzer-verbose-state-changes): New warning.
32304 (-fanalyzer-verbosity=): New warning.
32305 (-fdump-analyzer): New warning.
32306 (-fdump-analyzer-callgraph): New warning.
32307 (-fdump-analyzer-exploded-graph): New warning.
32308 (-fdump-analyzer-exploded-nodes): New warning.
32309 (-fdump-analyzer-exploded-nodes-2): New warning.
32310 (-fdump-analyzer-exploded-nodes-3): New warning.
32311 (-fdump-analyzer-supergraph): New warning.
32312 * doc/sourcebuild.texi (dg-require-dot): New.
32313 (dg-check-dot): New.
32314 * gdbinit.in (break-on-saved-diagnostic): New command.
32315 * graphviz.cc: New file.
32316 * graphviz.h: New file.
32317 * ordered-hash-map-tests.cc: New file.
32318 * ordered-hash-map.h: New file.
32319 * passes.def (pass_analyzer): Add before
32320 pass_ipa_whole_program_visibility.
32321 * selftest-run-tests.c (selftest::run_tests): Call
32322 selftest::ordered_hash_map_tests_cc_tests.
32323 * selftest.h (selftest::ordered_hash_map_tests_cc_tests): New
32325 * shortest-paths.h: New file.
32326 * timevar.def (TV_ANALYZER): New timevar.
32327 (TV_ANALYZER_SUPERGRAPH): Likewise.
32328 (TV_ANALYZER_STATE_PURGE): Likewise.
32329 (TV_ANALYZER_PLAN): Likewise.
32330 (TV_ANALYZER_SCC): Likewise.
32331 (TV_ANALYZER_WORKLIST): Likewise.
32332 (TV_ANALYZER_DUMP): Likewise.
32333 (TV_ANALYZER_DIAGNOSTICS): Likewise.
32334 (TV_ANALYZER_SHORTEST_PATHS): Likewise.
32335 * tree-pass.h (make_pass_analyzer): New decl.
32336 * tristate.cc: New file.
32337 * tristate.h: New file.
32339 2020-01-14 Uroš Bizjak <ubizjak@gmail.com>
32342 * config/i386/i386.md (*movsf_internal): Require SSE2 ISA for
32343 alternatives 9 and 10.
32345 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32347 * attribs.c (excl_hash_traits::empty_zero_p): New static constant.
32348 * gcov.c (function_start_pair_hash::empty_zero_p): Likewise.
32349 * graphite.c (struct sese_scev_hash::empty_zero_p): Likewise.
32350 * hash-map-tests.c (selftest::test_nonzero_empty_key): New selftest.
32351 (selftest::hash_map_tests_c_tests): Call it.
32352 * hash-map-traits.h (simple_hashmap_traits::empty_zero_p):
32353 New static constant, using the value of = H::empty_zero_p.
32354 (unbounded_hashmap_traits::empty_zero_p): Likewise, using the value
32355 from default_hash_traits <Value>.
32356 * hash-map.h (hash_map::empty_zero_p): Likewise, using the value
32358 * hash-set-tests.c (value_hash_traits::empty_zero_p): Likewise.
32359 * hash-table.h (hash_table::alloc_entries): Guard the loop of
32360 calls to mark_empty with !Descriptor::empty_zero_p.
32361 (hash_table::empty_slow): Conditionalize the memset call with a
32362 check that Descriptor::empty_zero_p; otherwise, loop through the
32363 entries calling mark_empty on them.
32364 * hash-traits.h (int_hash::empty_zero_p): New static constant.
32365 (pointer_hash::empty_zero_p): Likewise.
32366 (pair_hash::empty_zero_p): Likewise.
32367 * ipa-devirt.c (default_hash_traits <type_pair>::empty_zero_p):
32369 * ipa-prop.c (ipa_bit_ggc_hash_traits::empty_zero_p): Likewise.
32370 (ipa_vr_ggc_hash_traits::empty_zero_p): Likewise.
32371 * profile.c (location_triplet_hash::empty_zero_p): Likewise.
32372 * sanopt.c (sanopt_tree_triplet_hash::empty_zero_p): Likewise.
32373 (sanopt_tree_couple_hash::empty_zero_p): Likewise.
32374 * tree-hasher.h (int_tree_hasher::empty_zero_p): Likewise.
32375 * tree-ssa-sccvn.c (vn_ssa_aux_hasher::empty_zero_p): Likewise.
32376 * tree-vect-slp.c (bst_traits::empty_zero_p): Likewise.
32377 * tree-vectorizer.h
32378 (default_hash_traits<scalar_cond_masked_key>::empty_zero_p):
32381 2020-01-14 Kewen Lin <linkw@gcc.gnu.org>
32383 * cfgloopanal.c (average_num_loop_insns): Free bbs when early return,
32384 fix typo on return value.
32386 2020-01-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
32389 * cgraph.c (symbol_table::create_edge): Init speculative_id and
32391 (cgraph_edge::make_speculative): Add param for setting speculative_id
32393 (cgraph_edge::speculative_call_info): Update comments and find reference
32394 by speculative_id for multiple indirect targets.
32395 (cgraph_edge::resolve_speculation): Decrease the speculations
32396 for indirect edge, drop it's speculative if not direct target
32397 left. Update comments.
32398 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
32399 (cgraph_node::dump): Print num_speculative_call_targets.
32400 (cgraph_node::verify_node): Don't report error if speculative
32401 edge not include statement.
32402 (cgraph_edge::num_speculative_call_targets_p): New function.
32403 * cgraph.h (int common_target_id): Remove.
32404 (int common_target_probability): Remove.
32405 (num_speculative_call_targets): New variable.
32406 (make_speculative): Add param for setting speculative_id.
32407 (cgraph_edge::num_speculative_call_targets_p): New declare.
32408 (target_prob): New variable.
32409 (speculative_id): New variable.
32410 * ipa-fnsummary.c (analyze_function_body): Create and duplicate
32411 call summaries for multiple speculative call targets.
32412 * cgraphclones.c (cgraph_node::create_clone): Clone speculative_id.
32413 * ipa-profile.c (struct speculative_call_target): New struct.
32414 (class speculative_call_summary): New class.
32415 (class speculative_call_summaries): New class.
32416 (call_sums): New variable.
32417 (ipa_profile_generate_summary): Generate indirect multiple targets summaries.
32418 (ipa_profile_write_edge_summary): New function.
32419 (ipa_profile_write_summary): Stream out indirect multiple targets summaries.
32420 (ipa_profile_dump_all_summaries): New function.
32421 (ipa_profile_read_edge_summary): New function.
32422 (ipa_profile_read_summary_section): New function.
32423 (ipa_profile_read_summary): Stream in indirect multiple targets summaries.
32424 (ipa_profile): Generate num_speculative_call_targets from
32426 * ipa-ref.h (speculative_id): New variable.
32427 * ipa-utils.c (ipa_merge_profiles): Update with target_prob.
32428 * lto-cgraph.c (lto_output_edge): Remove indirect common_target_id and
32429 common_target_probability. Stream out speculative_id and
32430 num_speculative_call_targets.
32431 (input_edge): Likewise.
32432 * predict.c (dump_prediction): Remove edges count assert to be
32434 * symtab.c (symtab_node::create_reference): Init speculative_id.
32435 (symtab_node::clone_references): Clone speculative_id.
32436 (symtab_node::clone_referring): Clone speculative_id.
32437 (symtab_node::clone_reference): Clone speculative_id.
32438 (symtab_node::clear_stmts_in_references): Clear speculative_id.
32439 * tree-inline.c (copy_bb): Duplicate all the speculative edges
32440 if indirect call contains multiple speculative targets.
32441 * value-prof.h (check_ic_target): Remove.
32442 * value-prof.c (gimple_value_profile_transformations):
32443 Use void function gimple_ic_transform.
32444 * value-prof.c (gimple_ic_transform): Handle topn case.
32445 Fix comment typos. Change it to a void function.
32447 2020-01-13 Andrew Pinski <apinski@marvell.com>
32449 * config/aarch64/aarch64-cores.def (octeontx2): New define.
32450 (octeontx2t98): New define.
32451 (octeontx2t96): New define.
32452 (octeontx2t93): New define.
32453 (octeontx2f95): New define.
32454 (octeontx2f95n): New define.
32455 (octeontx2f95mm): New define.
32456 * config/aarch64/aarch64-tune.md: Regenerate.
32457 * doc/invoke.texi (-mcpu=): Document the new cpu types.
32459 2020-01-13 Jason Merrill <jason@redhat.com>
32461 PR c++/33799 - destroy return value if local cleanup throws.
32462 * gimplify.c (gimplify_return_expr): Handle COMPOUND_EXPR.
32464 2020-01-13 Martin Liska <mliska@suse.cz>
32466 * ipa-cp.c (get_max_overall_size): Use newly
32467 renamed param param_ipa_cp_unit_growth.
32468 * params.opt: Remove legacy param name.
32470 2020-01-13 Martin Sebor <msebor@redhat.com>
32472 PR tree-optimization/93213
32473 * tree-ssa-strlen.c (handle_store): Only allow single-byte nul-over-nul
32474 stores to be eliminated.
32476 2020-01-13 Martin Liska <mliska@suse.cz>
32478 * opts.c (print_help): Do not print CL_PARAM
32479 and CL_WARNING for CL_OPTIMIZATION.
32481 2020-01-13 Jonathan Wakely <jwakely@redhat.com>
32484 * doc/invoke.texi (Warning Options): Add caveat about some warnings
32485 depending on optimization settings.
32487 2020-01-13 Jakub Jelinek <jakub@redhat.com>
32489 PR tree-optimization/90838
32490 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
32491 SCALAR_INT_TYPE_MODE directly in CTZ_DEFINED_VALUE_AT_ZERO macro
32492 argument rather than to initialize temporary for targets that
32493 don't use the mode argument at all. Initialize ctzval to avoid
32496 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
32498 * tree.h (OMP_CLAUSE_USE_DEVICE_PTR_IF_PRESENT): New definition.
32499 * tree-core.h: Document it.
32500 * gimplify.c (gimplify_omp_workshare): Set it.
32501 * omp-low.c (lower_omp_target): Use it.
32502 * tree-pretty-print.c (dump_omp_clause): Print it.
32504 * omp-low.c (lower_omp_target) <OMP_CLAUSE_USE_DEVICE_PTR etc.>:
32505 Assert that for OpenACC we always have 'GOMP_MAP_USE_DEVICE_PTR'.
32507 2020-01-10 David Malcolm <dmalcolm@redhat.com>
32509 * Makefile.in (OBJS): Add tree-diagnostic-path.o.
32510 * common.opt (fdiagnostics-path-format=): New option.
32511 (diagnostic_path_format): New enum.
32512 (fdiagnostics-show-path-depths): New option.
32513 * coretypes.h (diagnostic_event_id_t): New forward decl.
32514 * diagnostic-color.c (color_dict): Add "path".
32515 * diagnostic-event-id.h: New file.
32516 * diagnostic-format-json.cc (json_from_expanded_location): Make
32518 (json_end_diagnostic): Call context->make_json_for_path if it
32519 exists and the diagnostic has a path.
32520 (diagnostic_output_format_init): Clear context->print_path.
32521 * diagnostic-path.h: New file.
32522 * diagnostic-show-locus.c (colorizer::set_range): Special-case
32523 when printing a run of events in a diagnostic_path so that they
32524 all get the same color.
32525 (layout::m_diagnostic_path_p): New field.
32526 (layout::layout): Initialize it.
32527 (layout::print_any_labels): Don't colorize the label text for an
32528 event in a diagnostic_path.
32529 (gcc_rich_location::add_location_if_nearby): Add
32530 "restrict_to_current_line_spans" and "label" params. Pass the
32531 former to layout.maybe_add_location_range; pass the latter
32532 when calling add_range.
32533 * diagnostic.c: Include "diagnostic-path.h".
32534 (diagnostic_initialize): Initialize context->path_format and
32535 context->show_path_depths.
32536 (diagnostic_show_any_path): New function.
32537 (diagnostic_path::interprocedural_p): New function.
32538 (diagnostic_report_diagnostic): Call diagnostic_show_any_path.
32539 (simple_diagnostic_path::num_events): New function.
32540 (simple_diagnostic_path::get_event): New function.
32541 (simple_diagnostic_path::add_event): New function.
32542 (simple_diagnostic_event::simple_diagnostic_event): New ctor.
32543 (simple_diagnostic_event::~simple_diagnostic_event): New dtor.
32544 (debug): New overload taking a diagnostic_path *.
32545 * diagnostic.def (DK_DIAGNOSTIC_PATH): New.
32546 * diagnostic.h (enum diagnostic_path_format): New enum.
32547 (json::value): New forward decl.
32548 (diagnostic_context::path_format): New field.
32549 (diagnostic_context::show_path_depths): New field.
32550 (diagnostic_context::print_path): New callback field.
32551 (diagnostic_context::make_json_for_path): New callback field.
32552 (diagnostic_show_any_path): New decl.
32553 (json_from_expanded_location): New decl.
32554 * doc/invoke.texi (-fdiagnostics-path-format=): New option.
32555 (-fdiagnostics-show-path-depths): New option.
32556 (-fdiagnostics-color): Add "path" to description of default
32557 GCC_COLORS; describe it.
32558 (-fdiagnostics-format=json): Document how diagnostic paths are
32559 represented in the JSON output format.
32560 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
32561 Add optional params "restrict_to_current_line_spans" and "label".
32562 * opts.c (common_handle_option): Handle
32563 OPT_fdiagnostics_path_format_ and
32564 OPT_fdiagnostics_show_path_depths.
32565 * pretty-print.c: Include "diagnostic-event-id.h".
32566 (pp_format): Implement "%@" format code for printing
32567 diagnostic_event_id_t *.
32568 (selftest::test_pp_format): Add tests for "%@".
32569 * selftest-run-tests.c (selftest::run_tests): Call
32570 selftest::tree_diagnostic_path_cc_tests.
32571 * selftest.h (selftest::tree_diagnostic_path_cc_tests): New decl.
32572 * toplev.c (general_init): Initialize global_dc->path_format and
32573 global_dc->show_path_depths.
32574 * tree-diagnostic-path.cc: New file.
32575 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Make
32576 non-static. Drop "diagnostic" param in favor of storing the
32577 original value of "where" and re-using it.
32578 (virt_loc_aware_diagnostic_finalizer): Update for dropped param of
32579 maybe_unwind_expanded_macro_loc.
32580 (tree_diagnostics_defaults): Initialize context->print_path and
32581 context->make_json_for_path.
32582 * tree-diagnostic.h (default_tree_diagnostic_path_printer): New
32584 (default_tree_make_json_for_path): New decl.
32585 (maybe_unwind_expanded_macro_loc): New decl.
32587 2020-01-10 Jakub Jelinek <jakub@redhat.com>
32589 PR tree-optimization/93210
32590 * fold-const.h (native_encode_initializer,
32591 can_native_interpret_type_p): Declare.
32592 * fold-const.c (native_encode_string): Fix up handling with off != -1,
32594 (native_encode_initializer): New function, moved from dwarf2out.c.
32595 Adjust to native_encode_expr compatible arguments, including dry-run
32596 and partial extraction modes. Don't handle STRING_CST.
32597 (can_native_interpret_type_p): No longer static.
32598 * gimple-fold.c (fold_ctor_reference): For native_encode_expr, verify
32599 offset / BITS_PER_UNIT fits into int and don't call it if
32600 can_native_interpret_type_p fails. If suboff is NULL and for
32601 CONSTRUCTOR fold_{,non}array_ctor_reference returns NULL, retry with
32602 native_encode_initializer.
32603 (fold_const_aggregate_ref_1): Formatting fix.
32604 * dwarf2out.c (native_encode_initializer): Moved to fold-const.c.
32605 (tree_add_const_value_attribute): Adjust caller.
32607 PR tree-optimization/90838
32608 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
32609 SCALAR_INT_TYPE_MODE instead of TYPE_MODE as operand of
32610 CTZ_DEFINED_VALUE_AT_ZERO.
32612 2020-01-10 Vladimir Makarov <vmakarov@redhat.com>
32614 PR inline-asm/93027
32615 * lra-constraints.c (match_reload): Permit input operands have the
32616 same mode as output while other input operands have a different
32619 2020-01-10 Wilco Dijkstra <wdijkstr@arm.com>
32621 PR tree-optimization/90838
32622 * tree-ssa-forwprop.c (check_ctz_array): Add new function.
32623 (check_ctz_string): Likewise.
32624 (optimize_count_trailing_zeroes): Likewise.
32625 (simplify_count_trailing_zeroes): Likewise.
32626 (pass_forwprop::execute): Try ctz simplification.
32627 * match.pd: Add matching for ctz idioms.
32629 2020-01-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32631 * config/aarch64/aarch64.c (aarch64_invalid_conversion): New function
32633 (aarch64_invalid_unary_op): New function for target hook.
32634 (aarch64_invalid_binary_op): New function for target hook.
32636 2020-01-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32638 * config.gcc: Add arm_bf16.h.
32639 * config/aarch64/aarch64-builtins.c
32640 (aarch64_simd_builtin_std_type): Add BFmode.
32641 (aarch64_init_simd_builtin_types): Define element types for vector
32643 (aarch64_init_bf16_types): New function.
32644 (aarch64_general_init_builtins): Add arm_init_bf16_types function call.
32645 * config/aarch64/aarch64-modes.def: Add BFmode and V4BF, V8BF vector
32647 * config/aarch64/aarch64-simd-builtin-types.def: Add BF SIMD types.
32648 * config/aarch64/aarch64-simd.md: Add BF vector types to NEON move
32650 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): Add V4BF.
32651 (AARCH64_VALID_SIMD_QREG_MODE): Add V8BF.
32652 * config/aarch64/aarch64.c
32653 (aarch64_classify_vector_mode): Add support for BF types.
32654 (aarch64_gimplify_va_arg_expr): Add support for BF types.
32655 (aarch64_vq_mode): Add support for BF types.
32656 (aarch64_simd_container_mode): Add support for BF types.
32657 (aarch64_mangle_type): Add support for BF scalar type.
32658 * config/aarch64/aarch64.md: Add BFmode to movhf pattern.
32659 * config/aarch64/arm_bf16.h: New file.
32660 * config/aarch64/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
32661 * config/aarch64/iterators.md: Add BF types to mode attributes.
32662 (HFBF, GPF_TF_F16_MOV, VDMOV, VQMOV, VQMOV_NO2Em VALL_F16MOV): New.
32664 2020-01-10 Jason Merrill <jason@redhat.com>
32666 PR c++/93173 - incorrect tree sharing.
32667 * gimplify.c (copy_if_shared): No longer static.
32668 * gimplify.h: Declare it.
32670 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
32672 * doc/invoke.texi (-msve-vector-bits=): Document that
32673 -msve-vector-bits=128 now generates VL-specific code for
32674 little-endian targets.
32675 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types): Use
32676 build_vector_type_for_mode to construct the data vector types.
32677 * config/aarch64/aarch64.c (aarch64_convert_sve_vector_bits): Generate
32678 VL-specific code for -msve-vector-bits=128 on little-endian targets.
32679 (aarch64_simd_container_mode): Always prefer Advanced SIMD modes
32680 for 128-bit vectors.
32682 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
32684 * config/aarch64/aarch64.c (aarch64_evpc_sel): Fix gen_vcond_mask
32687 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
32689 * config/aarch64/aarch64-builtins.c
32690 (aarch64_builtin_vectorized_function): Check for specific vector modes,
32691 rather than checking the number of elements and the element mode.
32693 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
32695 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
32696 get_related_vectype_for_scalar_type rather than build_vector_type
32697 to create the index type for a conditional reduction.
32699 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
32701 * tree-vect-loop.c (update_epilogue_loop_vinfo): Update DR_REF
32702 for any type of gather or scatter, including strided accesses.
32704 2020-01-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
32706 * tree-vectorizer.h (get_dr_vinfo_offset): Add missing function
32709 2020-01-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
32711 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Use
32712 get_dr_vinfo_offset
32713 * tree-vect-loop.c (update_epilogue_loop_vinfo): Remove orig_drs_init
32714 parameter and its use to reset DR_OFFSET's.
32715 (vect_transform_loop): Remove orig_drs_init argument.
32716 * tree-vect-loop-manip.c (vect_update_init_of_dr): Update the offset
32717 member of dr_vec_info rather than the offset of the associated
32718 data_reference's innermost_loop_behavior.
32719 (vect_update_init_of_dr): Pass dr_vec_info instead of data_reference.
32720 (vect_do_peeling): Remove orig_drs_init parameter and its construction.
32721 * tree-vect-stmts.c (check_scan_store): Replace use of DR_OFFSET with
32722 get_dr_vinfo_offset.
32723 (vectorizable_store): Likewise.
32724 (vectorizable_load): Likewise.
32726 2020-01-10 Richard Biener <rguenther@suse.de>
32728 * gimple-ssa-store-merging
32729 (pass_store_merging::terminate_all_aliasing_chains): Cache alias info.
32731 2020-01-10 Martin Liska <mliska@suse.cz>
32734 * ipa-inline-analysis.c (offline_size): Make proper parenthesis
32735 encapsulation that was there before r280040.
32737 2020-01-10 Richard Biener <rguenther@suse.de>
32739 PR middle-end/93199
32740 * tree-eh.c (sink_clobbers): Move clobbers to out-of-IL
32741 sequences to avoid walking them again for secondary opportunities.
32742 (pass_lower_eh_dispatch::execute): Instead actually insert
32745 2020-01-10 Richard Biener <rguenther@suse.de>
32747 PR middle-end/93199
32748 * tree-eh.c (redirect_eh_edge_1): Avoid some work if possible.
32749 (cleanup_all_empty_eh): Walk landing pads in reverse order to
32750 avoid quadraticness.
32752 2020-01-10 Martin Jambor <mjambor@suse.cz>
32754 * params.opt (param_ipa_sra_max_replacements): Mark as Optimization.
32755 * ipa-sra.c (pull_accesses_from_callee): New parameter caller, use it
32756 to get param_ipa_sra_max_replacements.
32757 (param_splitting_across_edge): Pass the caller to
32758 pull_accesses_from_callee.
32760 2020-01-10 Martin Jambor <mjambor@suse.cz>
32762 * params.opt (param_ipcp_unit_growth): Mark as Optimization.
32763 * ipa-cp.c (max_new_size): Removed.
32764 (orig_overall_size): New variable.
32765 (get_max_overall_size): New function.
32766 (estimate_local_effects): Use it. Adjust dump.
32767 (decide_about_value): Likewise.
32768 (ipcp_propagate_stage): Do not calculate max_new_size, just store
32769 orig_overall_size. Adjust dump.
32770 (ipa_cp_c_finalize): Clear orig_overall_size instead of max_new_size.
32772 2020-01-10 Martin Jambor <mjambor@suse.cz>
32774 * params.opt (param_ipa_max_agg_items): Mark as Optimization
32775 * ipa-cp.c (merge_agg_lats_step): New parameter max_agg_items, use
32776 instead of param_ipa_max_agg_items.
32777 (merge_aggregate_lattices): Extract param_ipa_max_agg_items from
32778 optimization info for the callee.
32780 2020-01-09 Kwok Cheung Yeung <kcy@codesourcery.com>
32782 * lto-streamer-in.c (input_function): Remove streamed-in inline debug
32783 markers if debug_inline_points is false.
32785 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
32787 * config.gcc (aarch64*-*-*): Add aarch64-sve-builtins-sve2.o to
32789 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): Depend on
32790 aarch64-sve-builtins-base.def, aarch64-sve-builtins-sve2.def and
32791 aarch64-sve-builtins-sve2.h.
32792 (aarch64-sve-builtins-sve2.o): New rule.
32793 * config/aarch64/aarch64.h (AARCH64_ISA_SVE2_AES): New macro.
32794 (AARCH64_ISA_SVE2_BITPERM, AARCH64_ISA_SVE2_SHA3): Likewise.
32795 (AARCH64_ISA_SVE2_SM4, TARGET_SVE2_AES, TARGET_SVE2_BITPERM): Likewise.
32796 (TARGET_SVE2_SHA, TARGET_SVE2_SM4): Likewise.
32797 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Handle
32798 TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3 and
32800 * config/aarch64/aarch64-sve.md: Update comments with SVE2
32801 instructions that are handled here.
32802 (@cond_asrd<mode>): Generalize to...
32803 (@cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>): ...this.
32804 (*cond_asrd<mode>_2): Generalize to...
32805 (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_2): ...this.
32806 (*cond_asrd<mode>_z): Generalize to...
32807 (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_z): ...this.
32808 * config/aarch64/aarch64.md (UNSPEC_LDNT1_GATHER): New unspec.
32809 (UNSPEC_STNT1_SCATTER, UNSPEC_WHILEGE, UNSPEC_WHILEGT): Likewise.
32810 (UNSPEC_WHILEHI, UNSPEC_WHILEHS): Likewise.
32811 * config/aarch64/aarch64-sve2.md (@aarch64_gather_ldnt<mode>): New
32813 (@aarch64_gather_ldnt_<ANY_EXTEND:optab><SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
32814 (@aarch64_scatter_stnt<mode>): Likewise.
32815 (@aarch64_scatter_stnt_<SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
32816 (@aarch64_mul_lane_<mode>): Likewise.
32817 (@aarch64_sve_suqadd<mode>_const): Likewise.
32818 (*<sur>h<addsub><mode>): Generalize to...
32819 (@aarch64_pred_<SVE2_COND_INT_BINARY_REV:sve_int_op><mode>): ...this
32821 (@cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>): New expander.
32822 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_2): New pattern.
32823 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_3): Likewise.
32824 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_any): Likewise.
32825 (*cond_<SVE2_COND_INT_BINARY_NOREV:sve_int_op><mode>_z): Likewise.
32826 (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op><mode>):: Likewise.
32827 (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op>_lane_<mode>): Likewise.
32828 (@aarch64_pred_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): Likewise.
32829 (@cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): New expander.
32830 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_2): New pattern.
32831 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_3): Likewise.
32832 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_any): Likewise.
32833 (@aarch64_sve_<SVE2_INT_TERNARY:sve_int_op><mode>): Likewise.
32834 (@aarch64_sve_<SVE2_INT_TERNARY_LANE:sve_int_op>_lane_<mode>)
32835 (@aarch64_sve_add_mul_lane_<mode>): Likewise.
32836 (@aarch64_sve_sub_mul_lane_<mode>): Likewise.
32837 (@aarch64_sve2_xar<mode>): Likewise.
32838 (@aarch64_sve2_bcax<mode>): Likewise.
32839 (*aarch64_sve2_eor3<mode>): Rename to...
32840 (@aarch64_sve2_eor3<mode>): ...this.
32841 (@aarch64_sve2_bsl<mode>): New expander.
32842 (@aarch64_sve2_nbsl<mode>): Likewise.
32843 (@aarch64_sve2_bsl1n<mode>): Likewise.
32844 (@aarch64_sve2_bsl2n<mode>): Likewise.
32845 (@aarch64_sve_add_<SHIFTRT:sve_int_op><mode>): Likewise.
32846 (*aarch64_sve2_sra<mode>): Add MOVPRFX support.
32847 (@aarch64_sve_add_<VRSHR_N:sve_int_op><mode>): New pattern.
32848 (@aarch64_sve_<SVE2_INT_SHIFT_INSERT:sve_int_op><mode>): Likewise.
32849 (@aarch64_sve2_<USMAX:su>aba<mode>): New expander.
32850 (*aarch64_sve2_<USMAX:su>aba<mode>): New pattern.
32851 (@aarch64_sve_<SVE2_INT_BINARY_WIDE:sve_int_op><mode>): Likewise.
32852 (<su>mull<bt><Vwide>): Generalize to...
32853 (@aarch64_sve_<SVE2_INT_BINARY_LONG:sve_int_op><mode>): ...this new
32855 (@aarch64_sve_<SVE2_INT_BINARY_LONG_lANE:sve_int_op>_lane_<mode>)
32856 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_LONG:sve_int_op><mode>)
32857 (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG:sve_int_op><mode>)
32858 (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
32859 (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG:sve_int_op><mode>)
32860 (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
32861 (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG:sve_int_op><mode>)
32862 (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
32863 (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG:sve_int_op><mode>)
32864 (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
32865 (@aarch64_sve_<SVE2_FP_TERNARY_LONG:sve_fp_op><mode>): New patterns.
32866 (@aarch64_<SVE2_FP_TERNARY_LONG_LANE:sve_fp_op>_lane_<mode>)
32867 (@aarch64_sve_<SVE2_INT_UNARY_NARROWB:sve_int_op><mode>): Likewise.
32868 (@aarch64_sve_<SVE2_INT_UNARY_NARROWT:sve_int_op><mode>): Likewise.
32869 (@aarch64_sve_<SVE2_INT_BINARY_NARROWB:sve_int_op><mode>): Likewise.
32870 (@aarch64_sve_<SVE2_INT_BINARY_NARROWT:sve_int_op><mode>): Likewise.
32871 (<SHRNB:r>shrnb<mode>): Generalize to...
32872 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWB:sve_int_op><mode>): ...this
32874 (<SHRNT:r>shrnt<mode>): Generalize to...
32875 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWT:sve_int_op><mode>): ...this
32877 (@aarch64_pred_<SVE2_INT_BINARY_PAIR:sve_int_op><mode>): New pattern.
32878 (@aarch64_pred_<SVE2_FP_BINARY_PAIR:sve_fp_op><mode>): Likewise.
32879 (@cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>): New expander.
32880 (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_2): New pattern.
32881 (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_z): Likewise.
32882 (@aarch64_sve_<SVE2_INT_CADD:optab><mode>): Likewise.
32883 (@aarch64_sve_<SVE2_INT_CMLA:optab><mode>): Likewise.
32884 (@aarch64_<SVE2_INT_CMLA:optab>_lane_<mode>): Likewise.
32885 (@aarch64_sve_<SVE2_INT_CDOT:optab><mode>): Likewise.
32886 (@aarch64_<SVE2_INT_CDOT:optab>_lane_<mode>): Likewise.
32887 (@aarch64_pred_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): Likewise.
32888 (@cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New expander.
32889 (*cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New pattern.
32890 (@aarch64_sve2_cvtnt<mode>): Likewise.
32891 (@aarch64_pred_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): Likewise.
32892 (@cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): New expander.
32893 (*cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>_any): New pattern.
32894 (@aarch64_sve2_cvtxnt<mode>): Likewise.
32895 (@aarch64_pred_<SVE2_U32_UNARY:sve_int_op><mode>): Likewise.
32896 (@cond_<SVE2_U32_UNARY:sve_int_op><mode>): New expander.
32897 (*cond_<SVE2_U32_UNARY:sve_int_op><mode>): New pattern.
32898 (@aarch64_pred_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): Likewise.
32899 (@cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New expander.
32900 (*cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New pattern.
32901 (@aarch64_sve2_pmul<mode>): Likewise.
32902 (@aarch64_sve_<SVE2_PMULL:optab><mode>): Likewise.
32903 (@aarch64_sve_<SVE2_PMULL_PAIR:optab><mode>): Likewise.
32904 (@aarch64_sve2_tbl2<mode>): Likewise.
32905 (@aarch64_sve2_tbx<mode>): Likewise.
32906 (@aarch64_sve_<SVE2_INT_BITPERM:sve_int_op><mode>): Likewise.
32907 (@aarch64_sve2_histcnt<mode>): Likewise.
32908 (@aarch64_sve2_histseg<mode>): Likewise.
32909 (@aarch64_pred_<SVE2_MATCH:sve_int_op><mode>): Likewise.
32910 (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_cc): Likewise.
32911 (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_ptest): Likewise.
32912 (aarch64_sve2_aes<CRYPTO_AES:aes_op>): Likewise.
32913 (aarch64_sve2_aes<CRYPTO_AESMC:aesmc_op>): Likewise.
32914 (*aarch64_sve2_aese_fused, *aarch64_sve2_aesd_fused): Likewise.
32915 (aarch64_sve2_rax1, aarch64_sve2_sm4e, aarch64_sve2_sm4ekey): Likewise.
32916 (<su>mulh<r>s<mode>3): Update after above pattern name changes.
32917 * config/aarch64/iterators.md (VNx16QI_ONLY, VNx4SF_ONLY)
32918 (SVE_STRUCT2, SVE_FULL_BHI, SVE_FULL_HSI, SVE_FULL_HDI)
32919 (SVE2_PMULL_PAIR_I): New mode iterators.
32920 (UNSPEC_ADCLB, UNSPEC_ADCLT, UNSPEC_ADDHNB, UNSPEC_ADDHNT, UNSPEC_BDEP)
32921 (UNSPEC_BEXT, UNSPEC_BGRP, UNSPEC_CADD90, UNSPEC_CADD270, UNSPEC_CDOT)
32922 (UNSPEC_CDOT90, UNSPEC_CDOT180, UNSPEC_CDOT270, UNSPEC_CMLA)
32923 (UNSPEC_CMLA90, UNSPEC_CMLA180, UNSPEC_CMLA270, UNSPEC_COND_FCVTLT)
32924 (UNSPEC_COND_FCVTNT, UNSPEC_COND_FCVTX, UNSPEC_COND_FCVTXNT)
32925 (UNSPEC_COND_FLOGB, UNSPEC_EORBT, UNSPEC_EORTB, UNSPEC_FADDP)
32926 (UNSPEC_FMAXP, UNSPEC_FMAXNMP, UNSPEC_FMLALB, UNSPEC_FMLALT)
32927 (UNSPEC_FMLSLB, UNSPEC_FMLSLT, UNSPEC_FMINP, UNSPEC_FMINNMP)
32928 (UNSPEC_HISTCNT, UNSPEC_HISTSEG, UNSPEC_MATCH, UNSPEC_NMATCH)
32929 (UNSPEC_PMULLB, UNSPEC_PMULLB_PAIR, UNSPEC_PMULLT, UNSPEC_PMULLT_PAIR)
32930 (UNSPEC_RADDHNB, UNSPEC_RADDHNT, UNSPEC_RSUBHNB, UNSPEC_RSUBHNT)
32931 (UNSPEC_SLI, UNSPEC_SRI, UNSPEC_SABDLB, UNSPEC_SABDLT, UNSPEC_SADDLB)
32932 (UNSPEC_SADDLBT, UNSPEC_SADDLT, UNSPEC_SADDWB, UNSPEC_SADDWT)
32933 (UNSPEC_SBCLB, UNSPEC_SBCLT, UNSPEC_SMAXP, UNSPEC_SMINP)
32934 (UNSPEC_SQCADD90, UNSPEC_SQCADD270, UNSPEC_SQDMULLB, UNSPEC_SQDMULLBT)
32935 (UNSPEC_SQDMULLT, UNSPEC_SQRDCMLAH, UNSPEC_SQRDCMLAH90)
32936 (UNSPEC_SQRDCMLAH180, UNSPEC_SQRDCMLAH270, UNSPEC_SQRSHRNB)
32937 (UNSPEC_SQRSHRNT, UNSPEC_SQRSHRUNB, UNSPEC_SQRSHRUNT, UNSPEC_SQSHRNB)
32938 (UNSPEC_SQSHRNT, UNSPEC_SQSHRUNB, UNSPEC_SQSHRUNT, UNSPEC_SQXTNB)
32939 (UNSPEC_SQXTNT, UNSPEC_SQXTUNB, UNSPEC_SQXTUNT, UNSPEC_SSHLLB)
32940 (UNSPEC_SSHLLT, UNSPEC_SSUBLB, UNSPEC_SSUBLBT, UNSPEC_SSUBLT)
32941 (UNSPEC_SSUBLTB, UNSPEC_SSUBWB, UNSPEC_SSUBWT, UNSPEC_SUBHNB)
32942 (UNSPEC_SUBHNT, UNSPEC_TBL2, UNSPEC_UABDLB, UNSPEC_UABDLT)
32943 (UNSPEC_UADDLB, UNSPEC_UADDLT, UNSPEC_UADDWB, UNSPEC_UADDWT)
32944 (UNSPEC_UMAXP, UNSPEC_UMINP, UNSPEC_UQRSHRNB, UNSPEC_UQRSHRNT)
32945 (UNSPEC_UQSHRNB, UNSPEC_UQSHRNT, UNSPEC_UQXTNB, UNSPEC_UQXTNT)
32946 (UNSPEC_USHLLB, UNSPEC_USHLLT, UNSPEC_USUBLB, UNSPEC_USUBLT)
32947 (UNSPEC_USUBWB, UNSPEC_USUBWT): New unspecs.
32948 (UNSPEC_SMULLB, UNSPEC_SMULLT, UNSPEC_UMULLB, UNSPEC_UMULLT)
32949 (UNSPEC_SMULHS, UNSPEC_SMULHRS, UNSPEC_UMULHS, UNSPEC_UMULHRS)
32950 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SHRNB, UNSPEC_SHRNT): Move
32952 (VNARROW, Ventype): New mode attributes.
32953 (Vewtype): Handle VNx2DI. Fix typo in comment.
32954 (VDOUBLE): New mode attribute.
32955 (sve_lane_con): Handle VNx8HI.
32956 (SVE_INT_UNARY): Include ss_abs and ss_neg for TARGET_SVE2.
32957 (SVE_INT_BINARY): Likewise ss_plus, us_plus, ss_minus and us_minus.
32958 (sve_int_op, sve_int_op_rev): Handle the above codes.
32959 (sve_pred_int_rhs2_operand): Likewise.
32960 (MULLBT, SHRNB, SHRNT): Delete.
32961 (SVE_INT_SHIFT_IMM): New int iterator.
32962 (SVE_WHILE): Add UNSPEC_WHILEGE, UNSPEC_WHILEGT, UNSPEC_WHILEHI
32963 and UNSPEC_WHILEHS for TARGET_SVE2.
32964 (SVE2_U32_UNARY, SVE2_INT_UNARY_NARROWB, SVE2_INT_UNARY_NARROWT)
32965 (SVE2_INT_BINARY, SVE2_INT_BINARY_LANE, SVE2_INT_BINARY_LONG)
32966 (SVE2_INT_BINARY_LONG_LANE, SVE2_INT_BINARY_NARROWB)
32967 (SVE2_INT_BINARY_NARROWT, SVE2_INT_BINARY_PAIR, SVE2_FP_BINARY_PAIR)
32968 (SVE2_INT_BINARY_PAIR_LONG, SVE2_INT_BINARY_WIDE): New int iterators.
32969 (SVE2_INT_SHIFT_IMM_LONG, SVE2_INT_SHIFT_IMM_NARROWB): Likewise.
32970 (SVE2_INT_SHIFT_IMM_NARROWT, SVE2_INT_SHIFT_INSERT, SVE2_INT_CADD)
32971 (SVE2_INT_BITPERM, SVE2_INT_TERNARY, SVE2_INT_TERNARY_LANE): Likewise.
32972 (SVE2_FP_TERNARY_LONG, SVE2_FP_TERNARY_LONG_LANE, SVE2_INT_CMLA)
32973 (SVE2_INT_CDOT, SVE2_INT_ADD_BINARY_LONG, SVE2_INT_QADD_BINARY_LONG)
32974 (SVE2_INT_SUB_BINARY_LONG, SVE2_INT_QSUB_BINARY_LONG): Likewise.
32975 (SVE2_INT_ADD_BINARY_LONG_LANE, SVE2_INT_QADD_BINARY_LONG_LANE)
32976 (SVE2_INT_SUB_BINARY_LONG_LANE, SVE2_INT_QSUB_BINARY_LONG_LANE)
32977 (SVE2_COND_INT_UNARY_FP, SVE2_COND_FP_UNARY_LONG): Likewise.
32978 (SVE2_COND_FP_UNARY_NARROWB, SVE2_COND_INT_BINARY): Likewise.
32979 (SVE2_COND_INT_BINARY_NOREV, SVE2_COND_INT_BINARY_REV): Likewise.
32980 (SVE2_COND_INT_SHIFT, SVE2_MATCH, SVE2_PMULL): Likewise.
32981 (optab): Handle the new unspecs.
32982 (su, r): Remove entries for UNSPEC_SHRNB, UNSPEC_SHRNT, UNSPEC_RSHRNB
32984 (lr): Handle the new unspecs.
32986 (cmp_op, while_optab_cmp, sve_int_op): Handle the new unspecs.
32987 (sve_int_op_rev, sve_int_add_op, sve_int_qadd_op, sve_int_sub_op)
32988 (sve_int_qsub_op): New int attributes.
32989 (sve_fp_op, rot): Handle the new unspecs.
32990 * config/aarch64/aarch64-sve-builtins.h
32991 (function_resolver::require_matching_pointer_type): Declare.
32992 (function_resolver::resolve_unary): Add an optional boolean argument.
32993 (function_resolver::finish_opt_n_resolution): Add an optional
32994 type_suffix_index argument.
32995 (gimple_folder::redirect_call): Declare.
32996 (gimple_expander::prepare_gather_address_operands): Add an optional
32998 * config/aarch64/aarch64-sve-builtins.cc: Include
32999 aarch64-sve-builtins-sve2.h.
33000 (TYPES_b_unsigned, TYPES_b_integer, TYPES_bh_integer): New macros.
33001 (TYPES_bs_unsigned, TYPES_hs_signed, TYPES_hs_integer): Likewise.
33002 (TYPES_hd_unsigned, TYPES_hsd_signed): Likewise.
33003 (TYPES_hsd_integer): Use TYPES_hsd_signed.
33004 (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): New macros.
33005 (TYPES_s_unsigned): Likewise.
33006 (TYPES_s_integer): Use TYPES_s_unsigned.
33007 (TYPES_sd_signed, TYPES_sd_unsigned): New macros.
33008 (TYPES_sd_integer): Use them.
33009 (TYPES_d_unsigned): New macro.
33010 (TYPES_d_integer): Use it.
33011 (TYPES_d_data, TYPES_cvt_long, TYPES_cvt_narrow_s): New macros.
33012 (TYPES_cvt_narrow): Likewise.
33013 (DEF_SVE_TYPES_ARRAY): Include the new types macros above.
33014 (preds_mx): New variable.
33015 (function_builder::add_overloaded_function): Allow the new feature
33016 set to be more restrictive than the original one.
33017 (function_resolver::infer_pointer_type): Remove qualifiers from
33018 the pointer type before printing it.
33019 (function_resolver::require_matching_pointer_type): New function.
33020 (function_resolver::resolve_sv_displacement): Handle functions
33021 that don't support 32-bit vector indices or svint32_t vector offsets.
33022 (function_resolver::finish_opt_n_resolution): Take the inferred type
33023 as a separate argument.
33024 (function_resolver::resolve_unary): Optionally treat all forms in
33025 the same way as normal merging functions.
33026 (gimple_folder::redirect_call): New function.
33027 (function_expander::prepare_gather_address_operands): Add an argument
33028 that says whether scaled forms are available. If they aren't,
33029 handle scaling of vector indices and don't add the extension and
33031 (function_expander::map_to_unspecs): If aarch64_sve isn't available,
33032 fall back to using cond_* instead.
33033 * config/aarch64/aarch64-sve-builtins-functions.h (rtx_code_function):
33034 Split out the member variables into...
33035 (rtx_code_function_base): ...this new base class.
33036 (rtx_code_function_rotated): Inherit rtx_code_function_base.
33037 (unspec_based_function): Split out the member variables into...
33038 (unspec_based_function_base): ...this new base class.
33039 (unspec_based_function_rotated): Inherit unspec_based_function_base.
33040 (unspec_based_function_exact_insn): New class.
33041 (unspec_based_add_function, unspec_based_add_lane_function)
33042 (unspec_based_lane_function, unspec_based_pred_function)
33043 (unspec_based_qadd_function, unspec_based_qadd_lane_function)
33044 (unspec_based_qsub_function, unspec_based_qsub_lane_function)
33045 (unspec_based_sub_function, unspec_based_sub_lane_function): New
33047 (unspec_based_fused_function): New class.
33048 (unspec_based_mla_function, unspec_based_mls_function): New typedefs.
33049 (unspec_based_fused_lane_function): New class.
33050 (unspec_based_mla_lane_function, unspec_based_mls_lane_function): New
33052 (CODE_FOR_MODE1): New macro.
33053 (fixed_insn_function): New class.
33054 (while_comparison): Likewise.
33055 * config/aarch64/aarch64-sve-builtins-shapes.h (binary_long_lane)
33056 (binary_long_opt_n, binary_narrowb_opt_n, binary_narrowt_opt_n)
33057 (binary_to_uint, binary_wide, binary_wide_opt_n, compare, compare_ptr)
33058 (load_ext_gather_index_restricted, load_ext_gather_offset_restricted)
33059 (load_gather_sv_restricted, shift_left_imm_long): Declare.
33060 (shift_left_imm_to_uint, shift_right_imm_narrowb): Likewise.
33061 (shift_right_imm_narrowt, shift_right_imm_narrowb_to_uint): Likewise.
33062 (shift_right_imm_narrowt_to_uint, store_scatter_index_restricted)
33063 (store_scatter_offset_restricted, tbl_tuple, ternary_long_lane)
33064 (ternary_long_opt_n, ternary_qq_lane_rotate, ternary_qq_rotate)
33065 (ternary_shift_left_imm, ternary_shift_right_imm, ternary_uint)
33066 (unary_convert_narrowt, unary_long, unary_narrowb, unary_narrowt)
33067 (unary_narrowb_to_uint, unary_narrowt_to_uint, unary_to_int): Likewise.
33068 * config/aarch64/aarch64-sve-builtins-shapes.cc (apply_predication):
33069 Also add an initial argument for unary_convert_narrowt, regardless
33070 of the predication type.
33071 (build_32_64): Allow loads and stores to specify MODE_none.
33072 (build_sv_index64, build_sv_uint_offset): New functions.
33073 (long_type_suffix): New function.
33074 (binary_imm_narrowb_base, binary_imm_narrowt_base): New classes.
33075 (binary_imm_long_base, load_gather_sv_base): Likewise.
33076 (shift_right_imm_narrow_wrapper, ternary_shift_imm_base): Likewise.
33077 (ternary_resize2_opt_n_base, ternary_resize2_lane_base): Likewise.
33078 (unary_narrowb_base, unary_narrowt_base): Likewise.
33079 (binary_long_lane_def, binary_long_lane): New shape.
33080 (binary_long_opt_n_def, binary_long_opt_n): Likewise.
33081 (binary_narrowb_opt_n_def, binary_narrowb_opt_n): Likewise.
33082 (binary_narrowt_opt_n_def, binary_narrowt_opt_n): Likewise.
33083 (binary_to_uint_def, binary_to_uint): Likewise.
33084 (binary_wide_def, binary_wide): Likewise.
33085 (binary_wide_opt_n_def, binary_wide_opt_n): Likewise.
33086 (compare_def, compare): Likewise.
33087 (compare_ptr_def, compare_ptr): Likewise.
33088 (load_ext_gather_index_restricted_def,
33089 load_ext_gather_index_restricted): Likewise.
33090 (load_ext_gather_offset_restricted_def,
33091 load_ext_gather_offset_restricted): Likewise.
33092 (load_gather_sv_def): Inherit from load_gather_sv_base.
33093 (load_gather_sv_restricted_def, load_gather_sv_restricted): New shape.
33094 (shift_left_imm_def, shift_left_imm): Likewise.
33095 (shift_left_imm_long_def, shift_left_imm_long): Likewise.
33096 (shift_left_imm_to_uint_def, shift_left_imm_to_uint): Likewise.
33097 (store_scatter_index_restricted_def,
33098 store_scatter_index_restricted): Likewise.
33099 (store_scatter_offset_restricted_def,
33100 store_scatter_offset_restricted): Likewise.
33101 (tbl_tuple_def, tbl_tuple): Likewise.
33102 (ternary_long_lane_def, ternary_long_lane): Likewise.
33103 (ternary_long_opt_n_def, ternary_long_opt_n): Likewise.
33104 (ternary_qq_lane_def): Inherit from ternary_resize2_lane_base.
33105 (ternary_qq_lane_rotate_def, ternary_qq_lane_rotate): New shape
33106 (ternary_qq_opt_n_def): Inherit from ternary_resize2_opt_n_base.
33107 (ternary_qq_rotate_def, ternary_qq_rotate): New shape.
33108 (ternary_shift_left_imm_def, ternary_shift_left_imm): Likewise.
33109 (ternary_shift_right_imm_def, ternary_shift_right_imm): Likewise.
33110 (ternary_uint_def, ternary_uint): Likewise.
33111 (unary_convert): Fix typo in comment.
33112 (unary_convert_narrowt_def, unary_convert_narrowt): New shape.
33113 (unary_long_def, unary_long): Likewise.
33114 (unary_narrowb_def, unary_narrowb): Likewise.
33115 (unary_narrowt_def, unary_narrowt): Likewise.
33116 (unary_narrowb_to_uint_def, unary_narrowb_to_uint): Likewise.
33117 (unary_narrowt_to_uint_def, unary_narrowt_to_uint): Likewise.
33118 (unary_to_int_def, unary_to_int): Likewise.
33119 * config/aarch64/aarch64-sve-builtins-base.cc (unspec_cmla)
33120 (unspec_fcmla, unspec_cond_fcmla, expand_mla_mls_lane): New functions.
33121 (svasrd_impl): Delete.
33122 (svcadd_impl::expand): Handle integer operations too.
33123 (svcmla_impl::expand, svcmla_lane::expand): Likewise, using the
33124 new functions to derive the unspec numbers.
33125 (svmla_svmls_lane_impl): Replace with...
33126 (svmla_lane_impl, svmls_lane_impl): ...these new classes. Handle
33127 integer operations too.
33128 (svwhile_impl): Rename to...
33129 (svwhilelx_impl): ...this and inherit from while_comparison.
33130 (svasrd): Use unspec_based_function.
33131 (svmla_lane): Use svmla_lane_impl.
33132 (svmls_lane): Use svmls_lane_impl.
33133 (svrecpe, svrsqrte): Handle unsigned integer operations too.
33134 (svwhilele, svwhilelt): Use svwhilelx_impl.
33135 * config/aarch64/aarch64-sve-builtins-sve2.h: New file.
33136 * config/aarch64/aarch64-sve-builtins-sve2.cc: Likewise.
33137 * config/aarch64/aarch64-sve-builtins-sve2.def: Likewise.
33138 * config/aarch64/aarch64-sve-builtins.def: Include
33139 aarch64-sve-builtins-sve2.def.
33141 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33143 * config/aarch64/aarch64-protos.h (aarch64_sve_arith_immediate_p)
33144 (aarch64_sve_sqadd_sqsub_immediate_p): Add a machine_mode argument.
33145 * config/aarch64/aarch64.c (aarch64_sve_arith_immediate_p)
33146 (aarch64_sve_sqadd_sqsub_immediate_p): Likewise. Handle scalar
33147 immediates as well as vector ones.
33148 * config/aarch64/predicates.md (aarch64_sve_arith_immediate)
33149 (aarch64_sve_sub_arith_immediate, aarch64_sve_qadd_immediate)
33150 (aarch64_sve_qsub_immediate): Update calls accordingly.
33152 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33154 * config/aarch64/aarch64-sve2.md: Add banner comments.
33155 (<su>mulh<r>s<mode>3): Move further up file.
33156 (<su>mull<bt><Vwide>, <r>shrnb<mode>, <r>shrnt<mode>)
33157 (*aarch64_sve2_sra<mode>): Move further down file.
33158 * config/aarch64/t-aarch64 (s-check-sve-md): Check aarch64-sve2.md too.
33160 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33162 * config/aarch64/iterators.md (SVE_WHILE): Add UNSPEC_WHILERW
33163 and UNSPEC_WHILEWR.
33164 (while_optab_cmp): Handle them.
33165 * config/aarch64/aarch64-sve.md
33166 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): Make public
33167 and add a "@" marker.
33168 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): Use it
33169 instead of gen_aarch64_sve2_while_ptest.
33170 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): Delete.
33172 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33174 * config/aarch64/aarch64.md (UNSPEC_WHILE_LE): Rename to...
33175 (UNSPEC_WHILELE): ...this.
33176 (UNSPEC_WHILE_LO): Rename to...
33177 (UNSPEC_WHILELO): ...this.
33178 (UNSPEC_WHILE_LS): Rename to...
33179 (UNSPEC_WHILELS): ...this.
33180 (UNSPEC_WHILE_LT): Rename to...
33181 (UNSPEC_WHILELT): ...this.
33182 * config/aarch64/iterators.md (SVE_WHILE): Update accordingly.
33183 (cmp_op, while_optab_cmp): Likewise.
33184 * config/aarch64/aarch64.c (aarch64_sve_move_pred_via_while): Likewise.
33185 * config/aarch64/aarch64-sve-builtins-base.cc (svwhilele): Likewise.
33186 (svwhilelt): Likewise.
33188 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33190 * config/aarch64/aarch64-sve-builtins-shapes.h (unary_count): Delete.
33191 (unary_to_uint): Define.
33192 * config/aarch64/aarch64-sve-builtins-shapes.cc (unary_count_def)
33193 (unary_count): Rename to...
33194 (unary_to_uint_def, unary_to_uint): ...this.
33195 * config/aarch64/aarch64-sve-builtins-base.def: Update accordingly.
33197 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33199 * config/aarch64/aarch64-sve-builtins-functions.h
33200 (code_for_mode_function): New class.
33201 (CODE_FOR_MODE0, QUIET_CODE_FOR_MODE0): New macros.
33202 * config/aarch64/aarch64-sve-builtins-base.cc (svcompact_impl)
33203 (svext_impl, svmul_lane_impl, svsplice_impl, svtmad_impl): Delete.
33204 (svcompact, svext, svsplice): Use QUIET_CODE_FOR_MODE0.
33205 (svmul_lane, svtmad): Use CODE_FOR_MODE0.
33207 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33209 * config/aarch64/iterators.md (addsub): New code attribute.
33210 * config/aarch64/aarch64-simd.md (aarch64_<su_optab><optab><mode>):
33212 (aarch64_<su_optab>q<addsub><mode>): ...this, making the same change
33213 in the asm string and attributes. Fix indentation.
33214 * config/aarch64/aarch64-sve.md (@aarch64_<su_optab><optab><mode>):
33216 (@aarch64_sve_<optab><mode>): ...this.
33217 * config/aarch64/aarch64-sve-builtins.h
33218 (function_expander::expand_signed_unpred_op): Delete.
33219 * config/aarch64/aarch64-sve-builtins.cc
33220 (function_expander::expand_signed_unpred_op): Likewise.
33221 (function_expander::map_to_rtx_codes): If the optab isn't defined,
33222 try using code_for_aarch64_sve instead.
33223 * config/aarch64/aarch64-sve-builtins-base.cc (svqadd_impl): Delete.
33224 (svqsub_impl): Likewise.
33225 (svqadd, svqsub): Use rtx_code_function instead.
33227 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33229 * config/aarch64/iterators.md (SRHSUB, URHSUB): Delete.
33230 (HADDSUB, sur, addsub): Remove them.
33232 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33234 * tree-nrv.c (pass_return_slot::execute): Handle all internal
33235 functions the same way, rather than singling out those that
33236 aren't mapped directly to optabs.
33238 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33240 * target.def (compatible_vector_types_p): New target hook.
33241 * hooks.h (hook_bool_const_tree_const_tree_true): Declare.
33242 * hooks.c (hook_bool_const_tree_const_tree_true): New function.
33243 * doc/tm.texi.in (TARGET_COMPATIBLE_VECTOR_TYPES_P): New hook.
33244 * doc/tm.texi: Regenerate.
33245 * gimple-expr.c: Include target.h.
33246 (useless_type_conversion_p): Use targetm.compatible_vector_types_p.
33247 * config/aarch64/aarch64.c (aarch64_compatible_vector_types_p): New
33249 (TARGET_COMPATIBLE_VECTOR_TYPES_P): Define.
33250 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
33251 Use the original predicate if it already has a suitable type.
33253 2020-01-09 Martin Jambor <mjambor@suse.cz>
33255 * cgraph.h (cgraph_edge): Make remove, set_call_stmt, make_direct,
33256 resolve_speculation and redirect_call_stmt_to_callee static. Change
33257 return type of set_call_stmt to cgraph_edge *.
33258 * auto-profile.c (afdo_indirect_call): Adjust call to
33259 redirect_call_stmt_to_callee.
33260 * cgraph.c (cgraph_edge::set_call_stmt): Make return cgraph-edge *,
33261 make the this pointer explicit, adjust self-recursive calls and the
33262 call top make_direct. Return the resulting edge.
33263 (cgraph_edge::remove): Make this pointer explicit.
33264 (cgraph_edge::resolve_speculation): Likewise, adjust call to remove.
33265 (cgraph_edge::make_direct): Likewise, adjust call to
33266 resolve_speculation.
33267 (cgraph_edge::redirect_call_stmt_to_callee): Likewise, also adjust
33268 call to set_call_stmt.
33269 (cgraph_update_edges_for_call_stmt_node): Update call to
33270 set_call_stmt and remove.
33271 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
33272 Renamed edge to master_edge. Adjusted calls to set_call_stmt.
33273 (cgraph_node::create_edge_including_clones): Moved "first" definition
33274 of edge to the block where it was used. Adjusted calls to
33276 (cgraph_node::remove_symbol_and_inline_clones): Adjust call to
33277 cgraph_edge::remove.
33278 * cgraphunit.c (walk_polymorphic_call_targets): Adjusted calls to
33279 make_direct and redirect_call_stmt_to_callee.
33280 * ipa-fnsummary.c (redirect_to_unreachable): Adjust calls to
33281 resolve_speculation and make_direct.
33282 * ipa-inline-transform.c (inline_transform): Adjust call to
33283 redirect_call_stmt_to_callee.
33284 (check_speculations_1):: Adjust call to resolve_speculation.
33285 * ipa-inline.c (resolve_noninline_speculation): Adjust call to
33286 resolve-speculation.
33287 (inline_small_functions): Adjust call to resolve_speculation.
33288 (ipa_inline): Likewise.
33289 * ipa-prop.c (ipa_make_edge_direct_to_target): Adjust call to
33291 * ipa-visibility.c (function_and_variable_visibility): Make iteration
33292 safe with regards to edge removal, adjust calls to
33293 redirect_call_stmt_to_callee.
33294 * ipa.c (walk_polymorphic_call_targets): Adjust calls to make_direct
33295 and redirect_call_stmt_to_callee.
33296 * multiple_target.c (create_dispatcher_calls): Adjust call to
33297 redirect_call_stmt_to_callee
33298 (redirect_to_specific_clone): Likewise.
33299 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33300 Adjust calls to cgraph_edge::remove.
33301 * tree-inline.c (copy_bb): Adjust call to set_call_stmt.
33302 (redirect_all_calls): Adjust call to redirect_call_stmt_to_callee.
33303 (expand_call_inline): Adjust call to cgraph_edge::remove.
33305 2020-01-09 Martin Liska <mliska@suse.cz>
33307 * params.opt: Set Optimization for
33308 param_max_speculative_devirt_maydefs.
33310 2020-01-09 Martin Sebor <msebor@redhat.com>
33312 PR middle-end/93200
33314 * builtins.c (compute_objsize): Avoid handling MEM_REFs of vector type.
33316 2020-01-09 Martin Liska <mliska@suse.cz>
33318 * auto-profile.c (auto_profile): Use opt_for_fn
33320 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
33321 (propagate_vals_across_arith_jfunc): Likewise.
33322 (hint_time_bonus): Likewise.
33323 (incorporate_penalties): Likewise.
33324 (good_cloning_opportunity_p): Likewise.
33325 (perform_estimation_of_a_value): Likewise.
33326 (estimate_local_effects): Likewise.
33327 (ipcp_propagate_stage): Likewise.
33328 * ipa-fnsummary.c (decompose_param_expr): Likewise.
33329 (set_switch_stmt_execution_predicate): Likewise.
33330 (analyze_function_body): Likewise.
33331 * ipa-inline-analysis.c (offline_size): Likewise.
33332 * ipa-inline.c (early_inliner): Likewise.
33333 * ipa-prop.c (ipa_analyze_node): Likewise.
33334 (ipcp_transform_function): Likewise.
33335 * ipa-sra.c (process_scan_results): Likewise.
33336 (ipa_sra_summarize_function): Likewise.
33337 * params.opt: Rename ipcp-unit-growth to
33338 ipa-cp-unit-growth. Add Optimization for various
33339 IPA-related parameters.
33341 2020-01-09 Richard Biener <rguenther@suse.de>
33343 PR middle-end/93054
33344 * gimplify.c (gimplify_expr): Deal with NOP definitions.
33346 2020-01-09 Richard Biener <rguenther@suse.de>
33348 PR tree-optimization/93040
33349 * gimple-ssa-store-merging.c (find_bswap_or_nop): Raise search limit.
33351 2020-01-09 Georg-Johann Lay <avr@gjlay.de>
33353 * common/config/avr/avr-common.c (avr_option_optimization_table)
33354 [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
33356 2020-01-09 Martin Liska <mliska@suse.cz>
33358 * cgraphclones.c (symbol_table::materialize_all_clones):
33359 Use cgraph_node::dump_name.
33361 2020-01-09 Jakub Jelinek <jakub@redhat.com>
33363 PR inline-asm/93202
33364 * config/riscv/riscv.c (riscv_print_operand_reloc): Use
33365 output_operand_lossage instead of gcc_unreachable.
33366 * doc/md.texi (riscv f constraint): Fix typo.
33369 * config/i386/i386.md (subv<mode>4): Use SWIDWI iterator instead of
33370 SWI. Use <general_hilo_operand> instead of <general_operand>. Use
33371 CONST_SCALAR_INT_P instead of CONST_INT_P.
33372 (*subv<mode>4_1): Rename to ...
33373 (subv<mode>4_1): ... this.
33374 (*subv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
33375 define_insn_and_split patterns.
33376 (*subv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
33379 2020-01-08 David Malcolm <dmalcolm@redhat.com>
33381 * vec.c (class selftest::count_dtor): New class.
33382 (selftest::test_auto_delete_vec): New test.
33383 (selftest::vec_c_tests): Call it.
33384 * vec.h (class auto_delete_vec): New class template.
33385 (auto_delete_vec<T>::~auto_delete_vec): New dtor.
33387 2020-01-08 David Malcolm <dmalcolm@redhat.com>
33389 * sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
33391 2020-01-08 Jim Wilson <jimw@sifive.com>
33393 * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out
33394 use of TLS_MODEL_LOCAL_EXEC when not pic.
33396 2020-01-08 David Malcolm <dmalcolm@redhat.com>
33398 * hash-map-tests.c (selftest::test_map_of_strings_to_int): Fix
33401 2020-01-08 Jakub Jelinek <jakub@redhat.com>
33404 * config/i386/i386.md (*stack_protect_set_2_<mode> peephole2,
33405 *stack_protect_set_3 peephole2): Also check that the second
33406 insns source is general_operand.
33409 * config/i386/i386.md (addcarry<mode>_0): Use nonimmediate_operand
33410 predicate for output operand instead of register_operand.
33411 (addcarry<mode>, addcarry<mode>_1): Likewise. Add alternative with
33412 memory destination and non-memory operands[2].
33414 2020-01-08 Martin Liska <mliska@suse.cz>
33416 * cgraph.c (cgraph_node::dump): Use ::dump_name or
33417 ::dump_asm_name instead of (::name or ::asm_name).
33418 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
33419 * cgraphunit.c (walk_polymorphic_call_targets): Likewise.
33420 (analyze_functions): Likewise.
33421 (expand_all_functions): Likewise.
33422 * ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
33423 (propagate_bits_across_jump_function): Likewise.
33424 (dump_profile_updates): Likewise.
33425 (ipcp_store_bits_results): Likewise.
33426 (ipcp_store_vr_results): Likewise.
33427 * ipa-devirt.c (dump_targets): Likewise.
33428 * ipa-fnsummary.c (analyze_function_body): Likewise.
33429 * ipa-hsa.c (check_warn_node_versionable): Likewise.
33430 (process_hsa_functions): Likewise.
33431 * ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
33432 (set_alias_uids): Likewise.
33433 * ipa-inline-transform.c (save_inline_function_body): Likewise.
33434 * ipa-inline.c (recursive_inlining): Likewise.
33435 (inline_to_all_callers_1): Likewise.
33436 (ipa_inline): Likewise.
33437 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
33438 (ipa_propagate_frequency): Likewise.
33439 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
33440 (remove_described_reference): Likewise.
33441 * ipa-pure-const.c (worse_state): Likewise.
33442 (check_retval_uses): Likewise.
33443 (analyze_function): Likewise.
33444 (propagate_pure_const): Likewise.
33445 (propagate_nothrow): Likewise.
33446 (dump_malloc_lattice): Likewise.
33447 (propagate_malloc): Likewise.
33448 (pass_local_pure_const::execute): Likewise.
33449 * ipa-visibility.c (optimize_weakref): Likewise.
33450 (function_and_variable_visibility): Likewise.
33451 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
33452 (ipa_discover_variable_flags): Likewise.
33453 * lto-streamer-out.c (output_function): Likewise.
33454 (output_constructor): Likewise.
33455 * tree-inline.c (copy_bb): Likewise.
33456 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
33457 * varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
33459 2020-01-08 Richard Biener <rguenther@suse.de>
33461 PR middle-end/93199
33462 * tree-eh.c (sink_clobbers): Update virtual operands for
33463 the first and last stmt only. Add a dry-run capability.
33464 (pass_lower_eh_dispatch::execute): Perform clobber sinking
33465 after CFG manipulations and in RPO order to catch all
33466 secondary opportunities reliably.
33468 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
33471 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
33473 2019-01-08 Richard Biener <rguenther@suse.de>
33475 PR middle-end/93199
33476 * gimple-fold.c (rewrite_to_defined_overflow): Mark stmt modified.
33477 * tree-ssa-loop-im.c (move_computations_worker): Properly adjust
33478 virtual operand, also updating SSA use.
33479 * gimple-loop-interchange.cc (loop_cand::undo_simple_reduction):
33480 Update stmt after resetting virtual operand.
33481 (tree_loop_interchange::move_code_to_inner_loop): Likewise.
33482 * gimple-iterator.c (gsi_remove): When not removing the stmt
33483 permanently do not delink immediate uses or mark the stmt modified.
33485 2020-01-08 Martin Liska <mliska@suse.cz>
33487 * ipa-fnsummary.c (dump_ipa_call_summary): Use symtab_node::dump_name.
33488 (ipa_call_context::estimate_size_and_time): Likewise.
33489 (inline_analyze_function): Likewise.
33491 2020-01-08 Martin Liska <mliska@suse.cz>
33493 * cgraph.c (cgraph_node::dump): Use systematically
33496 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
33498 Add -nodevicespecs option for avr.
33501 * config/avr/avr.opt (-nodevicespecs): New driver option.
33502 * config/avr/driver-avr.c (avr_devicespecs_file): Only issue
33503 "-specs=device-specs/..." if that option is not set.
33504 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
33506 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
33508 Implement 64-bit double functions for avr.
33511 * config.gcc (tm_defines) [target=avr]: Support --with-libf7,
33512 --with-double-comparison.
33513 * doc/install.texi: Document them.
33514 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
33515 <WITH_LIBF7_LIBGCC, WITH_LIBF7_MATH, WITH_LIBF7_MATH_SYMBOLS>
33516 <WITH_DOUBLE_COMPARISON>: New built-in defines.
33517 * doc/invoke.texi (AVR Built-in Macros): Document them.
33518 * config/avr/avr-protos.h (avr_float_lib_compare_returns_bool): New.
33519 * config/avr/avr.c (avr_float_lib_compare_returns_bool): New function.
33520 * config/avr/avr.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): New macro.
33522 2020-01-08 Richard Earnshaw <rearnsha@arm.com>
33525 * config/arm/t-multilib (MULTILIB_MATCHES): Add rules to match
33526 armv7-a{+mp,+sec,+mp+sec} to appropriate armv7 multilib variants
33527 when only building rm-profile multilibs.
33529 2020-01-08 Feng Xue <fxue@os.amperecomputing.com>
33532 * ipa-cp.c (self_recursively_generated_p): Find matched aggregate
33533 lattice for a value to check.
33534 (propagate_vals_across_arith_jfunc): Add an assertion to ensure
33535 finite propagation in self-recursive scc.
33537 2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com>
33539 * ipa-inline.c (caller_growth_limits): Restore the AND.
33541 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
33543 * config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator.
33544 (VEC_ALLREG_ALT): New iterator.
33545 (VEC_ALLREG_INT_MODE): New iterator.
33546 (VCMP_MODE): New iterator.
33547 (VCMP_MODE_INT): New iterator.
33548 (vec_cmpu<mode>di): Use VCMP_MODE_INT.
33549 (vec_cmp<u>v64qidi): New define_expand.
33550 (vec_cmp<mode>di_exec): Use VCMP_MODE.
33551 (vec_cmpu<mode>di_exec): New define_expand.
33552 (vec_cmp<u>v64qidi_exec): New define_expand.
33553 (vec_cmp<mode>di_dup): Use VCMP_MODE.
33554 (vec_cmp<mode>di_dup_exec): Use VCMP_MODE.
33555 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>): Rename ...
33556 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): ... to this.
33557 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Rename ...
33558 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): ... to this.
33559 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Rename ...
33560 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): ... to this.
33561 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Rename ...
33562 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): ... to
33564 * config/gcn/gcn.c (print_operand): Fix 8 and 16 bit suffixes.
33565 * config/gcn/gcn.md (expander): Add sign_extend and zero_extend.
33567 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
33569 * config/gcn/constraints.md (DA): Update description and match.
33571 (Db): New constraint.
33572 * config/gcn/gcn-protos.h (gcn_inline_constant64_p): Add second
33574 * config/gcn/gcn.c (gcn_inline_constant64_p): Add 'mixed' parameter.
33575 Implement 'Db' mixed immediate type.
33576 * config/gcn/gcn-valu.md (addcv64si3<exec_vcc>): Rework constraints.
33577 (addcv64si3_dup<exec_vcc>): Delete.
33578 (subcv64si3<exec_vcc>): Rework constraints.
33579 (addv64di3): Rework constraints.
33580 (addv64di3_exec): Rework constraints.
33581 (subv64di3): Rework constraints.
33582 (addv64di3_dup): Delete.
33583 (addv64di3_dup_exec): Delete.
33584 (addv64di3_zext): Rework constraints.
33585 (addv64di3_zext_exec): Rework constraints.
33586 (addv64di3_zext_dup): Rework constraints.
33587 (addv64di3_zext_dup_exec): Rework constraints.
33588 (addv64di3_zext_dup2): Rework constraints.
33589 (addv64di3_zext_dup2_exec): Rework constraints.
33590 (addv64di3_sext_dup2): Rework constraints.
33591 (addv64di3_sext_dup2_exec): Rework constraints.
33593 2020-01-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
33595 * doc/sourcebuild.texi (arm_little_endian, arm_nothumb): Documented
33596 existing target checks.
33598 2020-01-07 Richard Biener <rguenther@suse.de>
33600 * doc/install.texi: Bump minimal supported MPC version.
33602 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
33604 * langhooks-def.h (lhd_simulate_enum_decl): Declare.
33605 (LANG_HOOKS_SIMULATE_ENUM_DECL): Use it.
33606 * langhooks.c: Include stor-layout.h.
33607 (lhd_simulate_enum_decl): New function.
33608 * config/aarch64/aarch64-sve-builtins.cc (init_builtins): Call
33609 handle_arm_sve_h for the LTO frontend.
33610 (register_vector_type): Cope with null returns from pushdecl.
33612 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
33614 * config/aarch64/aarch64-protos.h (aarch64_sve::svbool_type_p)
33615 (aarch64_sve::nvectors_if_data_type): Replace with...
33616 (aarch64_sve::builtin_type_p): ...this.
33617 * config/aarch64/aarch64-sve-builtins.cc: Include attribs.h.
33618 (find_vector_type): Delete.
33619 (add_sve_type_attribute): New function.
33620 (lookup_sve_type_attribute): Likewise.
33621 (register_builtin_types): Add an "SVE type" attribute to each type.
33622 (register_tuple_type): Likewise.
33623 (svbool_type_p, nvectors_if_data_type): Delete.
33624 (mangle_builtin_type): Use lookup_sve_type_attribute.
33625 (builtin_type_p): Likewise. Add an overload that returns the
33626 number of constituent vector and predicate registers.
33627 * config/aarch64/aarch64.c (aarch64_sve_argument_p): Delete.
33628 (aarch64_returns_value_in_sve_regs_p): Use aarch64_sve::builtin_type_p
33629 instead of aarch64_sve_argument_p.
33630 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
33631 (aarch64_pass_by_reference): Likewise.
33632 (aarch64_function_value_1): Likewise.
33633 (aarch64_return_in_memory): Likewise.
33634 (aarch64_layout_arg): Likewise.
33636 2020-01-07 Jakub Jelinek <jakub@redhat.com>
33638 PR tree-optimization/93156
33639 * tree-ssa-ccp.c (bit_value_binop): For x * x note that the second
33640 least significant bit is always clear.
33642 PR tree-optimization/93118
33643 * match.pd ((x >> c) << c -> x & (-1<<c)): Add nop_convert?. Add new
33644 simplifier with two intermediate conversions.
33646 2020-01-07 Martin Liska <mliska@suse.cz>
33648 * params.opt: Add Optimization for various parameters.
33650 2020-01-07 Martin Liska <mliska@suse.cz>
33653 * doc/extend.texi: Explain cloning for target_clone
33656 2020-01-07 Martin Liska <mliska@suse.cz>
33658 PR tree-optimization/92860
33659 * common.opt: Make in Optimization option
33660 as it is affected by -O0, which is an Optimization
33662 * tree-inline.c (tree_inlinable_function_p):
33663 Use opt_for_fn for warn_inline.
33664 (expand_call_inline): Likewise.
33666 2020-01-07 Martin Liska <mliska@suse.cz>
33668 PR tree-optimization/92860
33669 * common.opt: Make flag_ree as optimization
33672 2020-01-07 Martin Liska <mliska@suse.cz>
33674 PR optimization/92860
33675 * params.opt: Mark param_min_crossjump_insns with Optimization
33678 2020-01-07 Luo Xiong Hu <luoxhu@linux.ibm.com>
33680 * ipa-inline-analysis.c (estimate_growth): Fix typo.
33681 * ipa-inline.c (caller_growth_limits): Use OR instead of AND.
33683 2020-01-06 Michael Meissner <meissner@linux.ibm.com>
33685 * config/rs6000/rs6000.c (hard_reg_and_mode_to_addr_mask): New
33686 helper function to return the valid addressing formats for a given
33687 hard register and mode.
33688 (rs6000_adjust_vec_address): Call hard_reg_and_mode_to_addr_mask.
33690 * config/rs6000/constraints.md (Q constraint): Update
33692 * doc/md.texi (RS/6000 constraints): Update 'Q' cosntraint
33695 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
33696 Use 'Q' for doing vector extract from memory.
33697 (vsx_extract_v4sf_var): Use 'Q' for doing vector extract from
33699 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Use 'Q' for
33700 doing vector extract from memory.
33701 (vsx_extract_<mode>_<VS_scalar>mode_var): Use 'Q' for doing vector
33702 extract from memory.
33704 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add support
33705 for the offset being 34-bits when -mcpu=future is used.
33707 2020-01-06 John David Anglin <danglin@gcc.gnu.org>
33709 * config/pa/pa.md: Revert change to use ordered_comparison_operator
33710 instead of cmpib_comparison_operator in cmpib patterns.
33711 * config/pa/predicates.md (cmpib_comparison_operator): Revert removal
33712 of cmpib_comparison_operator. Revise comment.
33714 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
33716 * tree-vect-slp.c (vect_build_slp_tree_1): Require all shifts
33717 in an IFN_DIV_POW2 node to be equal.
33719 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
33721 * tree-vect-stmts.c (vect_check_load_store_mask): Rename to...
33722 (vect_check_scalar_mask): ...this.
33723 (vectorizable_store, vectorizable_load): Update call accordingly.
33724 (vectorizable_call): Use vect_check_scalar_mask to check the mask
33725 argument in calls to conditional internal functions.
33727 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
33729 * config/gcn/gcn-valu.md (subv64di3): Use separate alternatives for
33730 '0' matching inputs.
33731 (subv64di3_exec): Likewise.
33733 2020-01-06 Bryan Stenson <bryan@siliconvortex.com>
33735 * config/mips/mips.c (vr4130_align_insns): Fix typo.
33736 * doc/md.texi (movstr): Likewise.
33738 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
33740 * config/gcn/gcn-valu.md (vec_extract<mode><scalar_mode>): Add early
33743 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
33745 * config/aarch64/t-aarch64 ($(srcdir)/config/aarch64/aarch64-tune.md):
33747 (s-aarch64-tune-md): ...this new stamp file. Pipe the new contents
33748 to a temporary file and use move-if-change to update the real
33749 file where necessary.
33751 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
33753 * config/aarch64/aarch64-sve.md (@aarch64_sel_dup<mode>): Use Upl
33754 rather than Upa for CPY /M.
33756 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
33758 * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
33761 2020-01-06 Martin Liska <mliska@suse.cz>
33763 PR tree-optimization/92860
33764 * params.opt: Mark param_max_combine_insns with Optimization
33767 2020-01-05 Jakub Jelinek <jakub@redhat.com>
33770 * config/i386/i386.md (SWIDWI): New mode iterator.
33771 (DWI, dwi): Add TImode variants.
33772 (addv<mode>4): Use SWIDWI iterator instead of SWI. Use
33773 <general_hilo_operand> instead of <general_operand>. Use
33774 CONST_SCALAR_INT_P instead of CONST_INT_P.
33775 (*addv<mode>4_1): Rename to ...
33776 (addv<mode>4_1): ... this.
33777 (QWI): New mode attribute.
33778 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
33779 define_insn_and_split patterns.
33780 (*addv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
33782 (uaddv<mode>4): Use SWIDWI iterator instead of SWI. Use
33783 <general_hilo_operand> instead of <general_operand>.
33784 (*addcarry<mode>_1): New define_insn.
33785 (*add<dwi>3_doubleword_cc_overflow_1): New define_insn_and_split.
33787 2020-01-03 Konstantin Kharlamov <Hi-Angel@yandex.ru>
33789 * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm):
33790 Use "call" instead of "set".
33792 2020-01-03 Martin Jambor <mjambor@suse.cz>
33795 * ipa-cp.c (print_all_lattices): Skip functions without info.
33797 2020-01-03 Jakub Jelinek <jakub@redhat.com>
33800 * config/i386/i386-options.c (ix86_simd_clone_adjust): If
33801 TARGET_PREFER_AVX128, use prefer-vector-width=256 for 'c' and 'd'
33802 simd clones. If TARGET_PREFER_AVX256, use prefer-vector-width=512
33803 for 'e' simd clones.
33806 * config/i386/i386.opt (x_prefer_vector_width_type): Remove TargetSave
33808 (mprefer-vector-width=): Add Save.
33809 * config/i386/i386-options.c (ix86_target_string): Add PVW argument, print
33810 -mprefer-vector-width= if non-zero. Fix up -mfpmath= comment.
33811 (ix86_debug_options, ix86_function_specific_print): Adjust
33812 ix86_target_string callers.
33813 (ix86_valid_target_attribute_inner_p): Handle prefer-vector-width=.
33814 (ix86_valid_target_attribute_tree): Likewise.
33815 * config/i386/i386-options.h (ix86_target_string): Add PVW argument.
33816 * config/i386/i386-expand.c (ix86_expand_builtin): Adjust
33817 ix86_target_string caller.
33820 * config/i386/i386.md (abs<mode>2): Use expand_simple_binop instead of
33821 emitting ASHIFTRT, XOR and MINUS by hand. Use gen_int_mode with QImode
33822 instead of gen_int_shift_amount + convert_modes.
33824 PR rtl-optimization/93088
33825 * loop-iv.c (find_single_def_src): Punt after looking through
33826 128 reg copies for regs with single definitions. Move definitions
33829 2020-01-02 Dennis Zhang <dennis.zhang@arm.com>
33831 * config/arm/arm-c.c (arm_cpu_builtins): Define
33832 __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC,
33833 __ARM_FEATURE_BF16_SCALAR_ARITHMETIC, and
33834 __ARM_BF16_FORMAT_ALTERNATIVE when enabled.
33835 * config/arm/arm-cpus.in (armv8_6, i8mm, bf16): New features.
33836 * config/arm/arm-tables.opt: Regenerated.
33837 * config/arm/arm.c (arm_option_reconfigure_globals): Initialize
33838 arm_arch_i8mm and arm_arch_bf16 when enabled.
33839 * config/arm/arm.h (TARGET_I8MM): New macro.
33840 (TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
33841 * config/arm/t-aprofile: Add matching rules for -march=armv8.6-a.
33842 * config/arm/t-arm-elf (all_v8_archs): Add armv8.6-a.
33843 * config/arm/t-multilib: Add matching rules for -march=armv8.6-a.
33844 (v8_6_a_simd_variants): New.
33845 (v8_*_a_simd_variants): Add i8mm and bf16.
33846 * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options.
33848 2020-01-02 Jakub Jelinek <jakub@redhat.com>
33851 * predict.c (compute_function_frequency): Don't call
33852 warn_function_cold on functions that already have cold attribute.
33854 2020-01-01 John David Anglin <danglin@gcc.gnu.org>
33857 * config/pa/pa.c (pa_elf_select_rtx_section): New. Put references to
33858 COMDAT group function labels in .data.rel.ro.local section.
33859 * config/pa/pa32-linux.h (TARGET_ASM_SELECT_RTX_SECTION): Define.
33862 * config/pa/pa.md (scc): Use ordered_comparison_operator instead of
33863 comparison_operator in B and S integer comparisons. Likewise, use
33864 ordered_comparison_operator instead of cmpib_comparison_operator in
33866 * config/pa/predicates.md (cmpib_comparison_operator): Remove.
33868 2020-01-01 Jakub Jelinek <jakub@redhat.com>
33870 Update copyright years.
33872 * gcc.c (process_command): Update copyright notice dates.
33873 * gcov-dump.c (print_version): Ditto.
33874 * gcov.c (print_version): Ditto.
33875 * gcov-tool.c (print_version): Ditto.
33876 * gengtype.c (create_file): Ditto.
33877 * doc/cpp.texi: Bump @copying's copyright year.
33878 * doc/cppinternals.texi: Ditto.
33879 * doc/gcc.texi: Ditto.
33880 * doc/gccint.texi: Ditto.
33881 * doc/gcov.texi: Ditto.
33882 * doc/install.texi: Ditto.
33883 * doc/invoke.texi: Ditto.
33885 2020-01-01 Jan Hubicka <hubicka@ucw.cz>
33887 * ipa.c (walk_polymorphic_call_targets): Fix updating of overall
33890 2020-01-01 Jakub Jelinek <jakub@redhat.com>
33892 PR tree-optimization/93098
33893 * match.pd (popcount): For shift amounts, use integer_onep
33894 or wi::to_widest () == cst instead of tree_to_uhwi () == cst
33895 tests. Make sure that precision is power of two larger than or equal
33896 to 16. Ensure shift is never negative. Use HOST_WIDE_INT_UC macro
33897 instead of ULL suffixed constants. Formatting fixes.
33899 Copyright (C) 2020 Free Software Foundation, Inc.
33901 Copying and distribution of this file, with or without modification,
33902 are permitted in any medium without royalty provided the copyright
33903 notice and this notice are preserved.