Fix PR ada/97504 on hppa*-*-hpux*.
[official-gcc.git] / gcc / ChangeLog
blob2b87342b2720a9380cc8538359665460bfa86fe1
1 2020-11-28  Eric Botcazou  <ebotcazou@adacore.com>
3         PR target/97939
4         * config/sparc/predicates.md (arith_double_add_operand): Comment.
5         * config/sparc/sparc.md (uaddvdi4): Use arith_double_operand.
6         (addvdi4): Use arith_double_add_operand.
7         (addsi3): Remove useless attributes.
8         (addvsi4): Use arith_add_operand.
9         (*cmp_ccv_plus): Likewise and add second alternative accordingly.
10         (*cmp_ccxv_plus): Likewise.
11         (*cmp_ccv_plus_set): Likewise.
12         (*cmp_ccxv_plus_set): Likewise.
13         (*cmp_ccv_plus_sltu_set): Likewise.
14         (usubvdi4): Use arith_double_operand.
15         (subvdi4): Use arith_double_add_operand.
16         (subsi3): Remove useless attributes.
17         (subvsi4): Use arith_add_operand.
18         (*cmp_ccv_minus): Likewise and add second alternative accordingly.
19         (*cmp_ccxv_minus): Likewise.
20         (*cmp_ccv_minus_set): Likewise.
21         (*cmp_ccxv_minus_set): Likewise.
22         (*cmp_ccv_minus_sltu_set): Likewise.
23         (negsi2): Use register_operand.
24         (unegvsi3): Likewise.
25         (negvsi3) Likewise.
26         (*cmp_ccnz_neg): Likewise.
27         (*cmp_ccxnz_neg): Likewise.
28         (*cmp_ccnz_neg_set): Likewise.
29         (*cmp_ccxnz_neg_set): Likewise.
30         (*cmp_ccc_neg_set): Likewise.
31         (*cmp_ccxc_neg_set): Likewise.
32         (*cmp_ccc_neg_sltu_set): Likewise.
33         (*cmp_ccv_neg): Likewise.
34         (*cmp_ccxv_neg): Likewise.
35         (*cmp_ccv_neg_set): Likewise.
36         (*cmp_ccxv_neg_set): Likewise.
37         (*cmp_ccv_neg_sltu_set): Likewise.
39 2020-11-27  H.J. Lu  <hjl.tools@gmail.com>
41         PR other/98027
42         * doc/install.texi: Default to --enable-cet=auto.
44 2020-11-27  Thomas Schwinge  <thomas@codesourcery.com>
46         * omp-oacc-kernels-decompose.cc (flatten_binds): Don't choke on
47         empty GIMPLE sequence, and examine all statements contained in
48         inner 'GIMPLE_BIND'.
50 2020-11-27  Richard Biener  <rguenther@suse.de>
52         PR tree-optimization/98024
53         * tree-ssa-pre.c (insert): Fix successor RPO order check.
54         (do_pre_regular_insertion): When inserting an assignment
55         in place of an all-same-value PHI still record that into
56         PHI_GEN.
58 2020-11-27  Jakub Jelinek  <jakub@redhat.com>
60         * tree-ssanames.c (get_range_info): Handle INTEGER_CST by returning
61         VR_RANGE with both *min and *max set to the wide_int value of the
62         INTEGER_CST.  Return VR_VARYING for non-SSA_NAMEs.
63         * match.pd ((t * 2) / 2) -> t): Handle also @0 being INTEGER_CST.
64         Simplify by calling get_range_info on everything.
65         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Simplify by calling
66         get_range_info on everything.
67         * tree-scalar-evolution.c (iv_can_overflow_p): Likewise.
69 2020-11-27  Jakub Jelinek  <jakub@redhat.com>
71         PR libstdc++/88101
72         * gimple-fold.c (clear_padding_type): Ignore fields with is_empty_type
73         types.
75 2020-11-27  Tobias Burnus  <tobias@codesourcery.com>
77         PR c/97880
78         * omp-expand.c (expand_oacc_collapse_init, expand_oacc_collapse_vars):
79         Use now passed diff_type.
80         (expand_oacc_for): Take largest type for diff_type, taking tiling
81         and collapsing into account.
83 2020-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
85         * config/aarch64/aarch64.opt
86         (-param=aarch64-autovec-preference): Define.
87         * config/aarch64/aarch64.c (aarch64_override_options_internal):
88         Set aarch64_sve_compare_costs to 0 when preferring only Advanced
89         SIMD.
90         (aarch64_cmp_autovec_modes): Define.
91         (aarch64_preferred_simd_mode): Adjust to use the above.
92         (aarch64_autovectorize_vector_modes): Likewise.
93         * doc/invoke.texi: Document aarch64-autovec-preference param.
95 2020-11-27  Xionghu Luo  <luoxhu@linux.ibm.com>
97         * config/rs6000/rs6000-call.c (altivec_expand_vec_set_builtin):
98         Change call param 2 from type int to rtx.
99         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_set):
100         Likewise.
101         * config/rs6000/rs6000.c (rs6000_expand_vector_init):
102         Change call param 2 from type int to rtx.
103         (rs6000_expand_vector_set): Likewise.
104         * config/rs6000/vector.md (vec_set<mode>): Support both constant
105         and variable index vec_set.
107 2020-11-27  Haochen Gui  <guihaoc@gcc.gnu.org>
109         * config/rs6000/rs6000-protos.h (rs6000_output_addr_vec_elt): Declare.
110         * config/rs6000/rs6000.c (TARGET_ASM_GENERATE_PIC_ADDR_DIFF_VEC):
111         Define.
112         (rs6000_gen_pic_addr_diff_vec, rs6000_output_addr_vec_elt): Implement.
113         * config/rs6000/rs6000.h (CASE_VECTOR_PC_RELATIVE,
114         CASE_VECTOR_MODE, ASM_OUTPUT_ADDR_VEC_ELT): Define.
115         * config/rs6000/rs6000.md (tablejump<mode>_absolute,
116         tablejump<mode>_absolute_nospec): New expanders.
117         * config/rs6000/rs6000.opt (mrelative-jumptables): New.
119 2020-11-26  Eric Botcazou  <ebotcazou@adacore.com>
121         PR target/96607
122         * config/sparc/sparc-protos.h (eligible_for_call_delay): Delete.
123         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
124         * config/sparc/sparc.md (in_call_delay): Likewise.
125         (tls_delay_slot): New attribute.
126         (define_delay [call]): Use in_branch_delay.
127         (tgd_call<P:mode>): Set type to call_no_delay_slot when
128         tls_delay_slot is false.
129         (tldm_call<P:mode>): Likewise.
131 2020-11-26  Jakub Jelinek  <jakub@redhat.com>
133         PR tree-optimization/97997
134         * match.pd ((t * 2) / 2) -> t): Optimize even for defined
135         overflow if ranges prove there is no overflow.
137 2020-11-26  Richard Biener  <rguenther@suse.de>
139         PR tree-optimization/97953
140         * gimple-ssa-evrp-analyze.c
141         (evrp_range_analyzer::record_ranges_from_incoming_edge): Make
142         sure the condition post-dominates the SSA definition before
143         recording into SSA_NAME_RANGE_INFO.
145 2020-11-26  Richard Biener  <rguenther@suse.de>
147         * gimple-isel.cc (gimple_expand_vec_cond_expr): Only
148         lower VECTOR_BOOLEAN_TYPE_P VEC_COND_EXPRs.
150 2020-11-26  Andrew Stubbs  <ams@codesourcery.com>
152         * config/gcn/mkoffload.c (copy_early_debug_info): Don't wipe
153         relocation symbols.
155 2020-11-26  Uroš Bizjak  <ubizjak@gmail.com>
157         * config/i386/i386-expand.c (ix86_expand_multi_arg_builtin):
158         Remove args array of structs, declare rtx xops array instead.
159         Update all uses.
160         (ix86_expand_args_builtin): Ditto.
161         (ix86_expand_round_builtin): Ditto.
162         (ix86_expand_special_args_builtin): Ditto.
164 2020-11-26  Martin Liska  <mliska@suse.cz>
166         * dwarf2out.c (gen_compile_unit_die): Fix missing == 0 in a
167         strcmp.
169 2020-11-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
171         * config/sol2.h (TIME_LIBRARY): Remove.
173 2020-11-26  Kewen Lin  <linkw@linux.ibm.com>
175         * config/rs6000/rs6000.c (rs6000_option_override_internal):
176         Set param_vect_partial_vector_usage as 1 for Power10 and up
177         by default.
179 2020-11-26  Jakub Jelinek  <jakub@redhat.com>
181         * gimple-fold.c (clear_padding_union): Ignore DECL_PADDING_P
182         fields.
183         (clear_padding_type): Ignore DECL_PADDING_P fields, rather than
184         DECL_BIT_FIELD with NULL DECL_NAME.
186 2020-11-26  Jakub Jelinek  <jakub@redhat.com>
188         PR tree-optimization/97979
189         * match.pd ((X {&,^,|} C2) << C1 into (X << C1) {&,^,|} (C2 << C1)):
190         Only optimize if int_const_binop returned non-NULL.
192 2020-11-26  liuhongt  <hongtao.liu@intel.com>
194         * config/i386/i386-expand.c
195         (ix86_expand_special_args_builtin): Delete last_arg_constant
196         and match.
198 2020-11-26  Uroš Bizjak  <ubizjak@gmail.com>
200         PR target/97873
201         * config/i386/i386.md (abs<mode>2): Use SDWIM mode iterator.
202         (*abs<mode>2_1): Use SWI mode iterator.
203         (<maxmin:code><mode>3): Use SDWIM mode iterator.
204         (*<maxmin:code><mode>3_1): Use SWI mode iterator.
206 2020-11-26  Jakub Jelinek  <jakub@redhat.com>
208         PR target/96906
209         * config/i386/sse.md (VI12_AVX2): Remove V64QI/V32HI modes.
210         (VI12_AVX2_AVX512BW): New mode iterator.
211         (<sse2_avx2>_<plusminus_insn><mode>3<mask_name>,
212         uavg<mode>3_ceil, <sse2_avx2>_uavg<mode>3<mask_name>): Use
213         VI12_AVX2_AVX512BW iterator instead of VI12_AVX2.
214         (*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>): Likewise.
215         (*<sse2_avx2>_uavg<mode>3<mask_name>): Likewise.
216         (*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>): Add a new
217         define_split after this insn.
219 2020-11-26  Martin Uecker  <muecker@gwdg.de>
221         PR c/65455
222         PR c/92935
223         * ginclude/stdatomic.h: Use comma operator to drop qualifiers.
225 2020-11-26  Vladimir Makarov  <vmakarov@redhat.com>
227         PR bootstrap/97983
228         * lra.c (lra_process_new_insns): Use emit_insn_before_noloc or
229         emit_insn_after_noloc with the destination BB.
231 2020-11-25  Martin Sebor  <msebor@redhat.com>
233         PR bootstrap/97622
234         PR bootstrap/94982
235         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
236         Avoid -Wformat-diag.
237         * digraph.cc (struct test_edge): Same.
238         * dumpfile.c (dump_loc): Same.
239         (dump_context::begin_scope): Same.
240         * edit-context.c (edited_file::print_diff): Same.
241         (edited_file::print_diff_hunk): Same.
242         * json.cc (object::print): Same.
243         * lto-wrapper.c (merge_and_complain): Same.
244         * reload.c (find_reloads): Same.
245         * tree-diagnostic-path.cc (print_path_summary_as_text): Same.
246         * ubsan.c (ubsan_type_descriptor): Same.
248 2020-11-25  Jan Hubicka  <jh@suse.cz>
250         * gimple.c (gimple_call_arg_flags): Also imply EAF_NODIRECTESCAPE.
251         * tree-core.h (EAF_NODRECTESCAPE): New flag.
252         * tree-ssa-structalias.c (make_indirect_escape_constraint): New
253         function.
254         (handle_rhs_call): Hanlde EAF_NODIRECTESCAPE.
255         * ipa-modref.c (dump_eaf_flags): Print EAF_NODIRECTESCAPE.
256         (deref_flags): Dereference is always EAF_NODIRECTESCAPE.
257         (modref_lattice::init): Also set EAF_NODIRECTESCAPE.
258         (analyze_ssa_name_flags): Pure functions do not affect
259         EAF_NODIRECTESCAPE.
260         (analyze_params): Likewise.
261         (ipa_merge_modref_summary_after_inlining): Likewise.
262         (modref_merge_call_site_flags): Likewise.
264 2020-11-25  Jan Hubicka  <jh@suse.cz>
266         * ipa-modref.c (modref_summaries::duplicate,
267         modref_summaries_lto::duplicate): Copy arg_flags.
268         (remap_arg_flags): Fix remapping of arg_flags.
270 2020-11-25  Martin Sebor  <msebor@redhat.com>
272         PR middle-end/97956
273         * gimple-fold.c (gimple_fold_builtin_memchr): Use sizetype for pointer
274         offsets.
276 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
278         * asan.c (asan_instrument_reads): New.
279         (asan_instrument_writes): New.
280         (asan_memintrin): New.
281         (handle_builtin_stack_restore): Account for HWASAN.
282         (handle_builtin_alloca): Account for HWASAN.
283         (get_mem_refs_of_builtin_call): Special case strlen for HWASAN.
284         (hwasan_instrument_reads): New.
285         (hwasan_instrument_writes): New.
286         (hwasan_memintrin): New.
287         (report_error_func): Assert not HWASAN.
288         (build_check_stmt): Make HWASAN_CHECK instead of ASAN_CHECK.
289         (instrument_derefs): HWASAN does not tag globals.
290         (instrument_builtin_call): Use new helper functions.
291         (maybe_instrument_call): Don't instrument `noreturn` functions.
292         (initialize_sanitizer_builtins): Add new type.
293         (asan_expand_mark_ifn): Account for HWASAN.
294         (asan_expand_check_ifn): Assert never called by HWASAN.
295         (asan_expand_poison_ifn): Account for HWASAN.
296         (asan_instrument): Branch based on whether using HWASAN or ASAN.
297         (pass_asan::gate): Return true if sanitizing HWASAN.
298         (pass_asan_O0::gate): Return true if sanitizing HWASAN.
299         (hwasan_check_func): New.
300         (hwasan_expand_check_ifn): New.
301         (hwasan_expand_mark_ifn): New.
302         (gate_hwasan): New.
303         * asan.h (hwasan_expand_check_ifn): New decl.
304         (hwasan_expand_mark_ifn): New decl.
305         (gate_hwasan): New decl.
306         (asan_intercepted_p): Always false for hwasan.
307         (asan_sanitize_use_after_scope): Account for HWASAN.
308         * builtin-types.def (BT_FN_PTR_CONST_PTR_UINT8): New.
309         * gimple-fold.c (gimple_build): New overload for building function
310         calls without arguments.
311         (gimple_build_round_up): New.
312         * gimple-fold.h (gimple_build): New decl.
313         (gimple_build): New inline function.
314         (gimple_build_round_up): New decl.
315         (gimple_build_round_up): New inline function.
316         * gimple-pretty-print.c (dump_gimple_call_args): Account for
317         HWASAN.
318         * gimplify.c (asan_poison_variable): Account for HWASAN.
319         (gimplify_function_tree): Remove requirement of
320         SANITIZE_ADDRESS, requiring asan or hwasan is accounted for in
321         `asan_sanitize_use_after_scope`.
322         * internal-fn.c (expand_HWASAN_CHECK): New.
323         (expand_HWASAN_ALLOCA_UNPOISON): New.
324         (expand_HWASAN_CHOOSE_TAG): New.
325         (expand_HWASAN_MARK): New.
326         (expand_HWASAN_SET_TAG): New.
327         * internal-fn.def (HWASAN_ALLOCA_UNPOISON): New.
328         (HWASAN_CHOOSE_TAG): New.
329         (HWASAN_CHECK): New.
330         (HWASAN_MARK): New.
331         (HWASAN_SET_TAG): New.
332         * sanitizer.def (BUILT_IN_HWASAN_LOAD1): New.
333         (BUILT_IN_HWASAN_LOAD2): New.
334         (BUILT_IN_HWASAN_LOAD4): New.
335         (BUILT_IN_HWASAN_LOAD8): New.
336         (BUILT_IN_HWASAN_LOAD16): New.
337         (BUILT_IN_HWASAN_LOADN): New.
338         (BUILT_IN_HWASAN_STORE1): New.
339         (BUILT_IN_HWASAN_STORE2): New.
340         (BUILT_IN_HWASAN_STORE4): New.
341         (BUILT_IN_HWASAN_STORE8): New.
342         (BUILT_IN_HWASAN_STORE16): New.
343         (BUILT_IN_HWASAN_STOREN): New.
344         (BUILT_IN_HWASAN_LOAD1_NOABORT): New.
345         (BUILT_IN_HWASAN_LOAD2_NOABORT): New.
346         (BUILT_IN_HWASAN_LOAD4_NOABORT): New.
347         (BUILT_IN_HWASAN_LOAD8_NOABORT): New.
348         (BUILT_IN_HWASAN_LOAD16_NOABORT): New.
349         (BUILT_IN_HWASAN_LOADN_NOABORT): New.
350         (BUILT_IN_HWASAN_STORE1_NOABORT): New.
351         (BUILT_IN_HWASAN_STORE2_NOABORT): New.
352         (BUILT_IN_HWASAN_STORE4_NOABORT): New.
353         (BUILT_IN_HWASAN_STORE8_NOABORT): New.
354         (BUILT_IN_HWASAN_STORE16_NOABORT): New.
355         (BUILT_IN_HWASAN_STOREN_NOABORT): New.
356         (BUILT_IN_HWASAN_TAG_MISMATCH4): New.
357         (BUILT_IN_HWASAN_HANDLE_LONGJMP): New.
358         (BUILT_IN_HWASAN_TAG_PTR): New.
359         * sanopt.c (sanopt_optimize_walker): Act for hwasan.
360         (pass_sanopt::execute): Act for hwasan.
361         * toplev.c (compile_file): Use `gate_hwasan` function.
363 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
365         * asan.c (struct hwasan_stack_var): New.
366         (hwasan_sanitize_p): New.
367         (hwasan_sanitize_stack_p): New.
368         (hwasan_sanitize_allocas_p): New.
369         (initialize_sanitizer_builtins): Define new builtins.
370         (ATTR_NOTHROW_LIST): New macro.
371         (hwasan_current_frame_tag): New.
372         (hwasan_frame_base): New.
373         (stack_vars_base_reg_p): New.
374         (hwasan_maybe_init_frame_base_init): New.
375         (hwasan_record_stack_var): New.
376         (hwasan_get_frame_extent): New.
377         (hwasan_increment_frame_tag): New.
378         (hwasan_record_frame_init): New.
379         (hwasan_emit_prologue): New.
380         (hwasan_emit_untag_frame): New.
381         (hwasan_finish_file): New.
382         (hwasan_truncate_to_tag_size): New.
383         * asan.h (hwasan_record_frame_init): New declaration.
384         (hwasan_record_stack_var): New declaration.
385         (hwasan_emit_prologue): New declaration.
386         (hwasan_emit_untag_frame): New declaration.
387         (hwasan_get_frame_extent): New declaration.
388         (hwasan_maybe_enit_frame_base_init): New declaration.
389         (hwasan_frame_base): New declaration.
390         (stack_vars_base_reg_p): New declaration.
391         (hwasan_current_frame_tag): New declaration.
392         (hwasan_increment_frame_tag): New declaration.
393         (hwasan_truncate_to_tag_size): New declaration.
394         (hwasan_finish_file): New declaration.
395         (hwasan_sanitize_p): New declaration.
396         (hwasan_sanitize_stack_p): New declaration.
397         (hwasan_sanitize_allocas_p): New declaration.
398         (HWASAN_TAG_SIZE): New macro.
399         (HWASAN_TAG_GRANULE_SIZE): New macro.
400         (HWASAN_STACK_BACKGROUND): New macro.
401         * builtin-types.def (BT_FN_VOID_PTR_UINT8_PTRMODE): New.
402         * builtins.def (DEF_SANITIZER_BUILTIN): Enable for HWASAN.
403         * cfgexpand.c (align_local_variable): When using hwasan ensure
404         alignment to tag granule.
405         (align_frame_offset): New.
406         (expand_one_stack_var_at): For hwasan use tag offset.
407         (expand_stack_vars): Record stack objects for hwasan.
408         (expand_one_stack_var_1): Record stack objects for hwasan.
409         (init_vars_expansion): Initialise hwasan state.
410         (expand_used_vars): Emit hwasan prologue and generate hwasan epilogue.
411         (pass_expand::execute): Emit hwasan base initialization if needed.
412         * doc/tm.texi (TARGET_MEMTAG_TAG_SIZE,TARGET_MEMTAG_GRANULE_SIZE,
413         TARGET_MEMTAG_INSERT_RANDOM_TAG,TARGET_MEMTAG_ADD_TAG,
414         TARGET_MEMTAG_SET_TAG,TARGET_MEMTAG_EXTRACT_TAG,
415         TARGET_MEMTAG_UNTAGGED_POINTER): Document new hooks.
416         * doc/tm.texi.in (TARGET_MEMTAG_TAG_SIZE,TARGET_MEMTAG_GRANULE_SIZE,
417         TARGET_MEMTAG_INSERT_RANDOM_TAG,TARGET_MEMTAG_ADD_TAG,
418         TARGET_MEMTAG_SET_TAG,TARGET_MEMTAG_EXTRACT_TAG,
419         TARGET_MEMTAG_UNTAGGED_POINTER): Document new hooks.
420         * explow.c (get_dynamic_stack_base): Take new `base` argument.
421         * explow.h (get_dynamic_stack_base): Take new `base` argument.
422         * sanitizer.def (BUILT_IN_HWASAN_INIT): New.
423         (BUILT_IN_HWASAN_TAG_MEM): New.
424         * target.def (target_memtag_tag_size,target_memtag_granule_size,
425         target_memtag_insert_random_tag,target_memtag_add_tag,
426         target_memtag_set_tag,target_memtag_extract_tag,
427         target_memtag_untagged_pointer): New hooks.
428         * targhooks.c (HWASAN_SHIFT): New.
429         (HWASAN_SHIFT_RTX): New.
430         (default_memtag_tag_size): New default hook.
431         (default_memtag_granule_size): New default hook.
432         (default_memtag_insert_random_tag): New default hook.
433         (default_memtag_add_tag): New default hook.
434         (default_memtag_set_tag): New default hook.
435         (default_memtag_extract_tag): New default hook.
436         (default_memtag_untagged_pointer): New default hook.
437         * targhooks.h (default_memtag_tag_size): New default hook.
438         (default_memtag_granule_size): New default hook.
439         (default_memtag_insert_random_tag): New default hook.
440         (default_memtag_add_tag): New default hook.
441         (default_memtag_set_tag): New default hook.
442         (default_memtag_extract_tag): New default hook.
443         (default_memtag_untagged_pointer): New default hook.
444         * toplev.c (compile_file): Call hwasan_finish_file when finished.
446 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
448         * common.opt (flag_sanitize_recover): Default for kernel
449         hwaddress.
450         (static-libhwasan): New cli option.
451         * config/aarch64/aarch64.c (aarch64_can_tag_addresses): New.
452         (TARGET_MEMTAG_CAN_TAG_ADDRESSES): New.
453         * config/gnu-user.h (LIBHWASAN_EARLY_SPEC): hwasan equivalent of
454         asan command line flags.
455         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
456         Add hwasan equivalent of __SANITIZE_ADDRESS__.
457         * doc/invoke.texi: Document hwasan command line flags.
458         * doc/tm.texi: Document new hook.
459         * doc/tm.texi.in: Document new hook.
460         * flag-types.h (enum sanitize_code): New sanitizer values.
461         * gcc.c (STATIC_LIBHWASAN_LIBS): New macro.
462         (LIBHWASAN_SPEC): New macro.
463         (LIBHWASAN_EARLY_SPEC): New macro.
464         (SANITIZER_EARLY_SPEC): Update to include hwasan.
465         (SANITIZER_SPEC): Update to include hwasan.
466         (sanitize_spec_function): Use hwasan options.
467         * opts.c (finish_options): Describe conflicts between address
468         sanitizers.
469         (find_sanitizer_argument): New.
470         (report_conflicting_sanitizer_options): New.
471         (sanitizer_opts): Introduce new sanitizer flags.
472         (common_handle_option): Add defaults for kernel sanitizer.
473         * params.opt (hwasan--instrument-stack): New
474         (hwasan-random-frame-tag): New
475         (hwasan-instrument-allocas): New
476         (hwasan-instrument-reads): New
477         (hwasan-instrument-writes): New
478         (hwasan-instrument-mem-intrinsics): New
479         * target.def (HOOK_PREFIX): Add new hook.
480         (can_tag_addresses): Add new hook under memtag prefix.
481         * targhooks.c (default_memtag_can_tag_addresses): New.
482         * targhooks.h (default_memtag_can_tag_addresses): New decl.
483         * toplev.c (process_options): Ensure hwasan only on
484         architectures that advertise the possibility.
486 2020-11-25  Matthew Malcomson  <matthew.malcomson@arm.com>
488         * doc/install.texi: Document new option.
490 2020-11-25  Richard Sandiford  <richard.sandiford@arm.com>
492         * config/aarch64/aarch64.c (aarch64_maybe_expand_sve_subreg_move):
493         Do not optimize LRA subregs.
494         * config/aarch64/aarch64-sve.md
495         (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): Tie the input to the
496         output.
497         (@aarch64_sve_revbhw_<SVE_ALL:mode><PRED_HSD:mode>): Likewise.
498         (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
499         (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
500         (*cnot<mode>): Likewise.
501         (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): Likewise.
502         (@aarch64_sve_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>):
503         Likewise.
504         (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
505         Likewise.
506         (@aarch64_sve_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>):
507         Likewise.
508         (@aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
509         Likewise.
510         (@aarch64_sve_<optab>_trunc<SVE_FULL_SDF:mode><SVE_FULL_HSF:mode>):
511         Likewise.
512         (@aarch64_sve_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>):
513         Likewise.
514         (@aarch64_sve_<optab>_nontrunc<SVE_FULL_HSF:mode><SVE_FULL_SDF:mode>):
515         Likewise.
516         * config/aarch64/aarch64-sve2.md
517         (@aarch64_pred_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): Likewise.
518         (@aarch64_pred_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): Likewise.
519         (@aarch64_pred_<SVE2_U32_UNARY:sve_int_op><mode>): Likewise.
520         (@aarch64_pred_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): Likewise.
522 2020-11-25  Jakub Jelinek  <jakub@redhat.com>
524         PR rtl-optimization/95862
525         * internal-fn.c (get_min_precision): For narrowing conversion, recurse
526         on the operand and if the operand precision is smaller than the
527         current one, return that smaller precision.
528         (expand_mul_overflow): For s1 * u2 -> ur and s1 * s2 -> ur cases
529         if the sum of minimum precisions of both operands is smaller or equal
530         to the result precision, just perform normal multiplication and
531         set overflow to the sign bit of the multiplication result.  For
532         u1 * u2 -> sr if both arguments have the MSB known zero, use
533         normal s1 * s2 -> sr expansion.
535 2020-11-25  Jan Hubicka  <jh@suse.cz>
537         * cfg.c (free_block): New function.
538         (clear_edges): Rename to ....
539         (free_cfg): ... this one; also free BBs and vectors.
540         (expunge_block): Update comment.
541         * cfg.h (clear_edges): Rename to ...
542         (free_cfg): ... this one.
543         * cgraph.c (release_function_body): Use free_cfg.
545 2020-11-25  Richard Biener  <rguenther@suse.de>
547         PR middle-end/97579
548         * gimple-isel.cc (gimple_expand_vec_cond_expr): Lower
549         VECTOR_BOOLEAN_TYPE_P, non-vector mode VEC_COND_EXPRs.
551 2020-11-25  Jakub Jelinek  <jakub@redhat.com>
553         PR middle-end/97943
554         * gimple-fold.c (clear_padding_union, clear_padding_type): Error on and
555         ignore flexible array member fields.  Ignore fields with
556         error_mark_node type.
558 2020-11-24  Ulrich Weigand  <ulrich.weigand@de.ibm.com>
560         Revert:
561         2020-11-24  Ulrich Weigand  <uweigand@de.ibm.com>
563         * doc/invoke.texi (-ffast-math): Remove mention of -fno-signaling-nans.
564         Clarify conditions when __FAST_MATH__ preprocessor macro is defined.
565         * opts.c (common_handle_option): Pass OPTS_SET to set_fast_math_flags
566         and set_unsafe_math_optimizations_flags.
567         (set_fast_math_flags): Add OPTS_SET argument, and use it to avoid
568         setting flags already explicitly set on the command line.  In the !set
569         case, also reset x_flag_cx_limited_range and x_flag_excess_precision.
570         Never reset x_flag_signaling_nans or x_flag_rounding_math.
571         (set_unsafe_math_optimizations_flags): Add OPTS_SET argument, and use
572         it to avoid setting flags already explicitly set on the command line.
573         (fast_math_flags_set_p): Also test x_flag_cx_limited_range,
574         x_flag_associative_math, x_flag_reciprocal_math, and
575         x_flag_rounding_math.
577 2020-11-24  Vladimir Makarov  <vmakarov@redhat.com>
579         PR bootstrap/97933
580         * lra.c (lra_process_new_insns): Stop on the first real insn after
581         head of e->dest.
583 2020-11-24  Richard Earnshaw  <rearnsha@arm.com>
585         PR target/97534
586         * config/arm/arm.c (arm_split_atomic_op): Use gen_int_mode when
587         negating a const_int.
589 2020-11-24  Ilya Leoshkevich  <iii@linux.ibm.com>
591         * config/s390/vector.md: Use vcond_comparison_operator
592         predicate.
594 2020-11-24  Ulrich Weigand  <uweigand@de.ibm.com>
596         * doc/invoke.texi (-ffast-math): Remove mention of -fno-signaling-nans.
597         Clarify conditions when __FAST_MATH__ preprocessor macro is defined.
598         * opts.c (common_handle_option): Pass OPTS_SET to set_fast_math_flags
599         and set_unsafe_math_optimizations_flags.
600         (set_fast_math_flags): Add OPTS_SET argument, and use it to avoid
601         setting flags already explicitly set on the command line.  In the !set
602         case, also reset x_flag_cx_limited_range and x_flag_excess_precision.
603         Never reset x_flag_signaling_nans or x_flag_rounding_math.
604         (set_unsafe_math_optimizations_flags): Add OPTS_SET argument, and use
605         it to avoid setting flags already explicitly set on the command line.
606         (fast_math_flags_set_p): Also test x_flag_cx_limited_range,
607         x_flag_associative_math, x_flag_reciprocal_math, and
608         x_flag_rounding_math.
610 2020-11-24  Jakub Jelinek  <jakub@redhat.com>
612         PR target/97950
613         * config/i386/i386.md (*setcc_si_1_and): Macroize into...
614         (*setcc_<mode>_1_and): New define_insn_and_split with SWI24 iterator.
615         (*setcc_si_1_movzbl): Macroize into...
616         (*setcc_<mode>_1_movzbl): New define_insn_and_split with SWI24
617         iterator.
619 2020-11-24  Jakub Jelinek  <jakub@redhat.com>
621         * gimple-fold.c (clear_padding_flush): If a word contains only 0
622         or 0xff bytes of padding other than all set, all clear, all set
623         followed by all clear or all clear followed by all set, don't emit
624         a RMW operation on the whole word or parts of it, but instead
625         clear the individual bytes of padding.  For paddings of one byte
626         size, don't use char[1] and {}, but instead just char and 0.
628 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
630         * omp-expand.c (expand_oacc_for): More explicit checking of which
631         OMP constructs we're expecting.
633 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
635         * doc/install.texi (Prerequisites) <Tcl>: Add comment.
637 2020-11-24  Jakub Jelinek  <jakub@redhat.com>
639         PR tree-optimization/96929
640         * fold-const.c (wide_int_binop) <case LSHIFT_EXPR, case RSHIFT_EXPR>:
641         Return false on negative second argument rather than trying to handle
642         it as shift in the other direction.
643         * tree-ssa-ccp.c (bit_value_binop) <case LSHIFT_EXPR,
644         case RSHIFT_EXPR>: Punt on negative shift count rather than trying
645         to handle it as shift in the other direction.
646         * match.pd (-1 >> x to -1): Remove tree_expr_nonnegative_p check.
648 2020-11-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
650         PR tree-optimization/97849
651         * tree-if-conv.c (tree_if_conversion): Move ssa_name
652         replacement code from ifcvt_local_dce to this function
653         before calling do_rpo_vn.
655 2020-11-24  Martin Sebor  <msebor@redhat.com>
657         * tree-cfg.c (dump_function_to_file): Print type attributes
658         and return type.
660 2020-11-23  Martin Jambor  <mjambor@suse.cz>
662         * ipa-prop.h (ipa_pass_through_data): Expand comment describing
663         operation.
664         * ipa-prop.c (analyze_agg_content_value): Detect new special case and
665         encode it as ASSERT_EXPR.
666         * ipa-cp.c (values_equal_for_ipcp_p): Move before
667         ipa_get_jf_arith_result.
668         (ipa_get_jf_arith_result): Special case ASSERT_EXPR.
670 2020-11-23  Jeff Law  <law@redhat.com>
672         * config/h8300/h8300.c (h8300_rtx_costs): Handle the various
673         comparison rtx codes too.
675 2020-11-23  Jan Hubicka  <jh@suse.cz>
677         * ipa-prop.c (build_agg_jump_func_from_list,
678         ipa_read_jump_function): Reserve agg.items precisely.
679         * ipa-prop.h (ipa_node_params::~ipa_node_params): Release descriptors
680         (ipa_edge_args::~ipa_edge_args): Release agg.items.
682 2020-11-23  Jan Hubicka  <jh@suse.cz>
684         * lto-streamer-in.c (input_cfg): Do not init ssa operands.
685         (input_function): Do not init tree_ssa and set in_ssa_p.
686         (input_ssa_names): Do it here.
687         * tree-ssa.c (init_tree_ssa): Add additional SIZE parameter, default
688         to 0
689         * tree-ssanames.c (init_ssanames): Do not round size up to 50, allocate
690         precisely.
691         * tree-ssa.h (init_tree_ssa): Update prototype.
693 2020-11-23  Nathan Sidwell  <nathan@acm.org>
695         * diagnostic.c (diagnostic_report_current_module): Adjust for C++
696         module importation.
698 2020-11-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
700         * config/msp430/msp430.c (msp430_section_attr): Don't warn for "lower"
701         attribute used with "noinit" or "persistent" attributes.
702         (msp430_persist_attr): Remove.
703         (attr_lower_exclusions): Remove ATTR_PERSIST exclusion.
704         (attr_upper_exclusions): Likewise.
705         (attr_either_exclusions): Likewise.
706         (attr_persist_exclusions): Remove.
707         (msp430_attribute_table): Remove ATTR_PERSIST handling.
708         (msp430_handle_generic_attribute): Remove ATTR_PERSIST section conflict
709         handling.
710         (TARGET_ASM_INIT_SECTIONS): Remove.
711         (msp430_init_sections): Remove.
712         (msp430_select_section): Use default_elf_select_section for decls with
713         the "persistent" attribute.
714         (msp430_section_type_flags): Remove ".persistent" section handling.
715         * doc/extend.texi (MSP430 Variable Attributes): Remove "noinit" and
716         "persistent" documentation.
718 2020-11-23  Richard Biener  <rguenther@suse.de>
720         * tree-vect-slp.c (maybe_push_to_hybrid_worklist): Skip
721         debug stmts.
723 2020-11-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
725         * doc/extend.texi (Common Variable Attributes): Document the
726         "persistent" variable attribute.
727         * doc/sourcebuild.texi (Effective-Target Keywords): Document
728         the "persistent" effective target keyword.
729         * tree.h (DECL_PERSISTENT_P): Define.
730         * varasm.c (bss_initializer_p): Return false for a
731         DECL_PERSISTENT_P decl initialized to zero.
732         (default_section_type_flags): Handle the ".persistent" section.
733         (default_elf_select_section): Likewise.
734         (default_unique_section): Likewise.
736 2020-11-23  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
738         * tree.h (DECL_NOINIT_P): Define.
739         * varasm.c (DECL_NOINIT_P): Check DECL_NOINIT_P before using
740         unnamed bss/lcomm sections for bss_initializer variables.
741         (default_elf_select_section): Use DECL_NOINIT_P instead of
742         looking up attribute for .noinit section selection.
743         (default_unique_section): Check DECL_NOINIT_P for .noinit
744         section selection.
746 2020-11-23  Matthew Malcomson  <matthew.malcomson@arm.com>
748         * doc/install.texi: Document bootstrap-asan option.
750 2020-11-22  Uroš Bizjak  <ubizjak@gmail.com>
752         PR target/97873
753         * config/i386/i386.md (abs<mode>2): Use SWI48DWI mode iterator.
754         (*abs<dwi>2_doubleword): Use DWIH mode iterator.
755         (<maxmin:code><mode>3): Use SWI48DWI mode iterator.
756         (*<maxmin:code><dwi>3_doubleword): Use DWIH mode iterator.
758 2020-11-22  Austin Law  <austinklaw@gmail.com>
760         * config/h8300/addsub.md: Turn existing patterns into
761         define_insn_and_split style patterns where the splitter
762         adds a clobber of the condition code register.  Drop "cc"
763         attribute.  Add _clobber_flags patterns to match output of
764         the splitters.
765         (add<mod>3_incdec): Remove pattern
766         (adds/subs splitter): Only run before reload.
767         * config/h8300/bitfield.md: Turn existing patterns into
768         define_insn_and_split style patterns where the splitter
769         adds a clobber of the condition code register.  Drop "cc"
770         attribute.  Add _clobber_flags patterns to match output
771         of the splitters.
772         (cstoreqi4, cstorehi4, cstoresi4): Comment out
773         (*bstzhireg, *cmpstz, *bstz, *bistz, *cmpcondset): Likewise
774         (*condbset, *cmpcondbclr, *condbclr): Likewise.
775         (*cmpcondbsetreg, *condbsetreg, *cmpcondbclrreg): Likewise.
776         (*condbclrreg): Likewise.
777         * config/h8300/combiner.md: Turn existing patterns into
778         define_insn_and_split style patterns where the splitter
779         adds a clobber of the condition code register.  Drop "cc"
780         attribute.  Add _clobber_flags patterns to match output of
781         the splitters.  Add appropriate CC register clobbers to
782         existing splitters.
783         (*addsi3_and_r_1): Disable for now.
784         (*addsi3_and_not_r_1, bit-test branches): Likewise.
785         * config/h8300/divmod.md: Turn existing patterns into
786         define_insn_and_split style patterns where the splitter
787         adds a clobber of the condition code register.  Drop "cc"
788         attribute.  Add _clobber_flags patterns to match output of
789         the splitters.
790         * config/h8300/extensions.md: Turn existing patterns into
791         define_insn_and_split style patterns where the splitter
792         adds a clobber of the condition code register.  Drop "cc"
793         attribute.  Add _clobber_flags patterns to match output of
794         the splitters.
795         * config/h8300/genmova.sh: Drop "cc" attribute from patterns.
796         * config/h8300/mova.md: Drop "cc" attribute from patterns.
797         * config/h8300/h8300-modes.def: Add CCZN and CCZNV modes.
798         * config/h8300/h8300-protos.h (output_plussi): Update prototype.
799         (compute_plussi_length): Likewise.
800         (h8300_select_cc_mode): Add prototype.
801         (compute_a_shift_cc): Remove prototype
802         (cmpute_logical_op_cc): Likewise.
803         * config/h8300/h8300.c (names_big): Add "cc" register.
804         (names_extended, names_upper_extended): Likewise.
805         (h8300_emit_stack_adjustment): Be more selective about setting
806         RTX_FRAME_RELATED_P.
807         (h8300_print_operand): Handle CCZN mode
808         (h8300_select_cc_mode): New function.
809         (notice_update_cc): if-0 out.  Only kept for reference purposes.
810         (h8300_expand_store): Likewise.
811         (h8300_binary_length): Handle new insn forms.
812         (output_plussi): Add argument for NEED_FLAGS and handle that case.
813         (compute_plussi_length): Likewise.
814         (compute_logical_op_cc): Return integer.
815         (TARGET_FLAGS_REGNUM): Define.
816         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Bump for cc register.
817         (FIXED_REGISTERS, CALL_USED_REGISTERS): Handle cc register.
818         (REG_ALLOC_ORDER, REGISTER_NAMES): Likewise.
819         (SELECT_CC_MODE): Define.
820         * config/h8300/h8300.md: Add CC_REG.
821         Do not include peepholes.md for now.
822         * config/h8300/jumpcall.md (cbranchqi4): Consolidate into
823         cbranch<mode>4.
824         (cbranchhi4, cbranchsi4): Likewise.
825         (cbranch<mode>4): New expander.
826         (branch): New define_insn_and_split for use before reload.
827         (branch_1, branch_1_false): New patterns to match splitter output.
828         Remove code to manage cc_status.flags.
829         * config/h8300/logical.md: Turn existing patterns into
830         define_insn_and_split style patterns where the splitter
831         adds a clobber of the condition code register.  Drop "cc"
832         attribute.  Add _clobber_flags patterns to match output of
833         the splitters.  Move various peepholes into this file.
834         * config/h8300/movepush.md: Turn existing patterns into
835         define_insn_and_split style patterns where the splitter
836         adds a clobber of the condition code register.  Drop "cc"
837         attribute.  Add _clobber_flags patterns to match output of
838         the splitters.
839         * config/h8300/multiply.md: Turn existing patterns into
840         define_insn_and_split style patterns where the splitter
841         adds a clobber of the condition code register.  Drop "cc"
842         attribute.  Add _clobber_flags patterns to match output of
843         the splitters.
844         * config/h8300/other.md: Turn existing patterns into
845         define_insn_and_split style patterns where the splitter
846         adds a clobber of the condition code register.  Drop "cc"
847         attribute.  Add _clobber_flags patterns to match output of
848         the splitters.
849         * config/h8300/peepholes.md: Remove peepholes that were moved
850         elsewhere.
851         * config/h8300/predicates.md (simple_memory_operand): New.
852         * config/h8300/proepi.md: Drop "cc" attribute setting.
853         * config/h8300/shiftrotate.md: Turn existing patterns into
854         define_insn_and_split style patterns where the splitter
855         adds a clobber of the condition code register.  Drop "cc"
856         attribute.  Add _clobber_flags patterns to match output of
857         the splitters.
858         * config/h8300/testcompare.md: Turn existing patterns into
859         define_insn_and_split style patterns where the splitter
860         adds a clobber of the condition code register.  Drop "cc"
861         attribute.  Add _clobber_flags patterns to match output of
862         the splitters.  Disable various patterns for now.
863         Move some peepholes that were previously in peepholes.md here.
864         * config/h8300/save.md: New file.
866 2020-11-22  Jakub Jelinek  <jakub@redhat.com>
868         PR tree-optimization/95853
869         * tree-ssa-math-opts.c (uaddsub_overflow_check_p): Add maxval
870         argument, if non-NULL, instead look for r > maxval or r <= maxval
871         comparisons.
872         (match_uaddsub_overflow): Pattern recognize even other forms of
873         __builtin_add_overflow, in particular when addition is performed
874         in a wider type and result compared to maximum of the narrower
875         type.
877 2020-11-22  Jeff Law  <law@redhat.com>
879         * config/h8300/jumpcall.md (branch_true, branch_false): Revert
880         recent change.  Ensure operand[0] is always the target label.
882 2020-11-22  Iain Sandoe  <iain@sandoe.co.uk>
884         * config/darwin-c.c (struct f_align_stack): Rename
885         to type from align_stack to f_align_stack.
886         (push_field_alignment): Likewise.
887         (pop_field_alignment): Likewise.
889 2020-11-21  Marek Polacek  <polacek@redhat.com>
891         PR c++/94695
892         * doc/invoke.texi: Update the -Wrange-loop-construct description.
894 2020-11-21  Jan Hubicka  <jh@suse.cz>
896         * tree-ssa-alias.c (ao_compare::compare_ao_refs,
897         ao_compare::hash_ao_ref): Use OEP_MATCH_SIDE_EFFECTS.
899 2020-11-21  Jan Hubicka  <jh@suse.cz>
901         * ipa-icf.c (sem_function::equals_wpa): Do not compare ODR type with
902         -fno-devirtualize.
903         (sem_item_optimizer::update_hash_by_addr_refs): Hash anonymous ODR
904         types by TYPE_UID of their main variant.
906 2020-11-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
908         * config/rs6000/rs6000.c (rs6000_option_override_internal):
909         Enable vector pair memcpy/memmove expansion.
911 2020-11-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
913         * config/rs6000/mma.md (unspec): Add assemble/extract UNSPECs.
914         (movoi): Change to movoo.
915         (*movpoi): Change to *movoo.
916         (movxi): Change to movxo.
917         (*movpxi): Change to *movxo.
918         (mma_assemble_pair): Change to OO mode.
919         (*mma_assemble_pair): New define_insn_and_split.
920         (mma_disassemble_pair): New define_expand.
921         (*mma_disassemble_pair): New define_insn_and_split.
922         (mma_assemble_acc): Change to XO mode.
923         (*mma_assemble_acc): Change to XO mode.
924         (mma_disassemble_acc): New define_expand.
925         (*mma_disassemble_acc): New define_insn_and_split.
926         (mma_<acc>): Change to XO mode.
927         (mma_<vv>): Change to XO mode.
928         (mma_<avv>): Change to XO mode.
929         (mma_<pv>): Change to OO mode.
930         (mma_<apv>): Change to XO/OO mode.
931         (mma_<vvi4i4i8>): Change to XO mode.
932         (mma_<avvi4i4i8>): Change to XO mode.
933         (mma_<vvi4i4i2>): Change to XO mode.
934         (mma_<avvi4i4i2>): Change to XO mode.
935         (mma_<vvi4i4>): Change to XO mode.
936         (mma_<avvi4i4>): Change to XO mode.
937         (mma_<pvi4i2>): Change to XO/OO mode.
938         (mma_<apvi4i2>): Change to XO/OO mode.
939         (mma_<vvi4i4i4>): Change to XO mode.
940         (mma_<avvi4i4i4>): Change to XO mode.
941         * config/rs6000/predicates.md (input_operand): Allow opaque.
942         (mma_disassemble_output_operand): New predicate.
943         * config/rs6000/rs6000-builtin.def:
944         Changes to disassemble builtins.
945         * config/rs6000/rs6000-call.c (rs6000_return_in_memory):
946         Disallow __vector_pair/__vector_quad as return types.
947         (rs6000_promote_function_mode): Remove function return type
948         check because we can't test it here any more.
949         (rs6000_function_arg): Do not allow __vector_pair/__vector_quad
950         as as function arguments.
951         (rs6000_gimple_fold_mma_builtin):
952         Handle mma_disassemble_* builtins.
953         (rs6000_init_builtins): Create types for XO/OO modes.
954         * config/rs6000/rs6000-modes.def: DElete OI, XI,
955         POI, and PXI modes, and create XO and OO modes.
956         * config/rs6000/rs6000-string.c (expand_block_move):
957         Update to OO mode.
958         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_uncached):
959         Update for XO/OO modes.
960         (rs6000_rtx_costs): Make UNSPEC_MMA_XXSETACCZ cost 0.
961         (rs6000_modes_tieable_p): Update for XO/OO modes.
962         (rs6000_debug_reg_global): Update for XO/OO modes.
963         (rs6000_setup_reg_addr_masks): Update for XO/OO modes.
964         (rs6000_init_hard_regno_mode_ok): Update for XO/OO modes.
965         (reg_offset_addressing_ok_p): Update for XO/OO modes.
966         (rs6000_emit_move): Update for XO/OO modes.
967         (rs6000_preferred_reload_class): Update for XO/OO modes.
968         (rs6000_split_multireg_move): Update for XO/OO modes.
969         (rs6000_mangle_type): Update for opaque types.
970         (rs6000_invalid_conversion): Update for XO/OO modes.
971         * config/rs6000/rs6000.h (VECTOR_ALIGNMENT_P):
972         Update for XO/OO modes.
973         * config/rs6000/rs6000.md (RELOAD): Update for XO/OO modes.
975 2020-11-21  Aaron Sawdey  <acsawdey@linux.ibm.com>
977         * typeclass.h: Add opaque_type_class.
978         * builtins.c (type_to_class): Identify opaque type class.
979         * dwarf2out.c (is_base_type): Handle opaque types.
980         (gen_type_die_with_usage): Handle opaque types.
981         * expr.c (count_type_elements): Opaque types should
982         never have initializers.
983         * ipa-devirt.c (odr_types_equivalent_p): No type-specific handling
984         for opaque types is needed as it eventually checks the underlying
985         mode which is what is important.
986         * tree-streamer.c (record_common_node): Handle opaque types.
987         * tree.c (type_contains_placeholder_1): Handle opaque types.
988         (type_cache_hasher::equal): No additional comparison needed for
989         opaque types.
991 2020-11-20  Michael Meissner  <meissner@linux.ibm.com>
993         * config/rs6000/rs6000-call.c (rs6000_expand_builtin): Add missing
994         XSCMP* cases for IEEE 128-bit long double.
996 2020-11-20  Jason Merrill  <jason@redhat.com>
998         PR c++/97918
999         * dwarf2out.c (dwarf2out_early_finish): flush_limbo_die_list
1000         after gen_scheduled_generic_parms_dies.
1002 2020-11-20  Martin Sebor  <msebor@redhat.com>
1004         PR middle-end/97879
1005         * tree-core.h (enum attribute_flags): Add ATTR_FLAG_INTERNAL.
1007 2020-11-20  Jan Hubicka  <jh@suse.cz>
1009         * ipa-icf-gimple.c (func_checker::hash_operand): Improve hashing of
1010         decls.
1012 2020-11-20  Jan Hubicka  <jh@suse.cz>
1014         * ipa-icf-gimple.c (func_checker::compare_decl): Do not compare types
1015         of local variables.
1017 2020-11-20  Nathan Sidwell  <nathan@acm.org>
1019         * doc/invoke.texi: Replace a couple of @code with @command
1021 2020-11-20  Tamar Christina  <tamar.christina@arm.com>
1023         * tree-vect-slp.c (vectorizable_slp_permutation): Update types on nodes
1024         when needed.
1026 2020-11-20  Richard Biener  <rguenther@suse.de>
1028         * tree-vect-slp.c (maybe_push_to_hybrid_worklist): New function.
1029         (vect_detect_hybrid_slp): Use it.  Perform a backward walk
1030         over the IL.
1032 2020-11-20  Richard Biener  <rguenther@suse.de>
1034         * tree-vect-slp.c (vect_print_slp_tree): Also dump
1035         SLP_TREE_REPRESENTATIVE.
1037 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
1039         PR libstdc++/88101
1040         * builtins.def (BUILT_IN_CLEAR_PADDING): New built-in function.
1041         * gimplify.c (gimplify_call_expr): Rewrite single argument
1042         BUILT_IN_CLEAR_PADDING into two-argument variant.
1043         * gimple-fold.c (clear_padding_unit, clear_padding_buf_size): New
1044         const variables.
1045         (struct clear_padding_struct): New type.
1046         (clear_padding_flush, clear_padding_add_padding,
1047         clear_padding_emit_loop, clear_padding_type,
1048         clear_padding_union, clear_padding_real_needs_padding_p,
1049         clear_padding_type_may_have_padding_p,
1050         gimple_fold_builtin_clear_padding): New functions.
1051         (gimple_fold_builtin): Handle BUILT_IN_CLEAR_PADDING.
1052         * doc/extend.texi (__builtin_clear_padding): Document.
1054 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
1056         PR target/97528
1057         * config/arm/arm.c (neon_vector_mem_operand): For POST_MODIFY, require
1058         first POST_MODIFY operand is a REG and is equal to the first operand
1059         of PLUS.
1061 2020-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1063         * gimple-ssa-store-merging.c (struct merged_store_group): Add
1064         new 'consecutive' field.
1065         (merged_store_group): Set it to true.
1066         (do_merge): Set it to false if the store is not consecutive and
1067         set string_concatenation to false in this case.
1068         (merge_into): Call do_merge on entry.
1069         (merge_overlapping): Likewise.
1071 2020-11-20  Jan Hubicka  <jh@suse.cz>
1073         * ipa-icf-gimple.c (func_checker::operand_equal_p): Fix comment.
1075 2020-11-20  Jan Hubicka  <jh@suse.cz>
1077         * ipa-icf-gimple.c (func_checker::hash_operand): Hash gimple clobber.
1078         (func_checker::operand_equal_p): Special case gimple clobber.
1080 2020-11-20  Uroš Bizjak  <ubizjak@gmail.com>
1082         PR target/97873
1083         * config/i386/i386.md (*neg<mode>2_2): Rename from
1084         "*neg<mode>2_cmpz".  Use CCGOCmode instead of CCZmode.
1085         (*negsi2_zext): Rename from *negsi2_cmpz_zext.
1086         Use CCGOCmode instead of CCZmode.
1087         (*neg<mode>_ccc_1): New insn pattern.
1088         (*neg<dwi>2_doubleword): Use *neg<mode>_ccc_1.
1089         (abs<mode>2): Add FLAGS_REG clobber.
1090         Use TARGET_CMOVE insn predicate.
1091         (*abs<mode>2_1): New insn_and_split pattern.
1092         (*absdi2_doubleword): Ditto.
1093         (<maxmin:code><mode>3): Use SWI48x mode iterator.
1094         (*<maxmin:code><mode>3): Use SWI48 mode iterator.
1095         * config/i386/i386-features.c
1096         (general_scalar_chain::compute_convert_gain): Handle ABS code.
1097         (general_scalar_chain::convert_insn): Ditto.
1098         (general_scalar_to_vector_candidate_p): Ditto.
1100 2020-11-20  Jakub Jelinek  <jakub@redhat.com>
1102         PR other/97911
1103         * configure.ac: In SERIAL_LIST use lang words without .serial
1104         suffix.  Change $lang.prev from a target to variable and instead
1105         of depending on *.serial expand to the *.serial variable if
1106         the word is in the SERIAL_LIST at all, otherwise to nothing.
1107         * configure: Regenerated.
1109 2020-11-20  Kewen Lin  <linkw@linux.ibm.com>
1111         * config/rs6000/rs6000.md (p8_mtvsrd_df): Fix insn type.
1113 2020-11-20  Martin Uecker  <muecker@gwdg.de>
1115         * gimplify.c (gimplify_modify_expr_rhs): Optimizie
1116         NOP_EXPRs that contain compound literals.
1118 2020-11-19  Jakub Jelinek  <jakub@redhat.com>
1120         PR tree-optimization/91029
1121         * range-op.cc (operator_trunc_mod::op1_range): Don't require signed
1122         types, nor require that op2 >= 0.  Implement (a % b) >= x && x > 0
1123         implies a >= x and (a % b) <= x && x < 0 implies a <= x.
1124         (operator_trunc_mod::op2_range): New method.
1126 2020-11-19  Andrew MacLeod  <amacleod@redhat.com>
1128         PR tree-optimization/93781
1129         * range-op.cc (get_shift_range): Rename from
1130         undefined_shift_range_check and now return valid shift ranges.
1131         (operator_lshift::fold_range): Use result from get_shift_range.
1132         (operator_rshift::fold_range): Ditto.
1134 2020-11-19  Jan Hubicka  <jh@suse.cz>
1136         * fold-const.c (operand_compare::operand_equal_p): Fix thinko in
1137         COMPONENT_REF handling and guard types_same_for_odr by
1138         virtual_method_call_p.
1139         (operand_compare::hash_operand): Likewise.
1141 2020-11-19  Jakub Jelinek  <jakub@redhat.com>
1143         PR c/97860
1144         * tree.c (array_type_nelts): For complete arrays with zero min
1145         and NULL max and zero size return -1.
1147 2020-11-19  Nathan Sidwell  <nathan@acm.org>
1149         * configure.ac: Add tests for fstatat, sighandler_t, O_CLOEXEC,
1150         unix-domain and ipv6 sockets.
1151         * config.in: Rebuilt.
1152         * configure: Rebuilt.
1154 2020-11-19  Dimitar Dimitrov  <dimitar@dinux.eu>
1156         * config/pru/alu-zext.md: Add lmbd patterns for zero_extend
1157         variants.
1158         * config/pru/pru.c (enum pru_builtin): Add HALT and LMBD.
1159         (pru_init_builtins): Ditto.
1160         (pru_builtin_decl): Ditto.
1161         (pru_expand_builtin): Ditto.
1162         * config/pru/pru.h (CLZ_DEFINED_VALUE_AT_ZERO): Define PRU
1163         value for CLZ with zero value parameter.
1164         * config/pru/pru.md: Add halt, lmbd and clz patterns.
1165         * doc/extend.texi: Document PRU builtins.
1167 2020-11-19  Richard Sandiford  <richard.sandiford@arm.com>
1169         * doc/invoke.texi (-fvect-cost-model): Add a very-cheap model.
1170         * common.opt (fvect-cost-model=): Add very-cheap as a possible option.
1171         (fsimd-cost-model=): Likewise.
1172         (vect_cost_model): Add very-cheap.
1173         * flag-types.h (vect_cost_model): Add VECT_COST_MODEL_VERY_CHEAP.
1174         Put the values in order of increasing aggressiveness.
1175         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use
1176         range checks when comparing against VECT_COST_MODEL_CHEAP.
1177         (vect_prune_runtime_alias_test_list): Do not allow any alias
1178         checks for the very-cheap cost model.
1179         * tree-vect-loop.c (vect_analyze_loop_costing): Do not allow
1180         any peeling for the very-cheap cost model.  Also require one
1181         iteration of the vector loop to pay for itself.
1183 2020-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
1185         * config/aarch64/aarch64.c (neoversen1_tunings): Use new
1186         cortexa76_extra_costs.
1187         (neoversev1_tunings): Likewise.
1188         (neoversen2_tunines): Likewise.
1189         * config/arm/aarch-cost-tables.h (cortexa76_extra_costs):
1190         add new costs.
1192 2020-11-19  Wilco Dijkstra  <wdijkstr@arm.com>
1194         * config/aarch64/aarch64.c (aarch64_expand_cpymem): Cleanup code and
1195         comments, tweak expansion decisions and improve tail expansion.
1197 2020-11-19  Richard Biener  <rguenther@suse.de>
1199         * fold-const.c (operand_compare::hash_operand): Fix typo.
1201 2020-11-19  Richard Biener  <rguenther@suse.de>
1203         * tree-ssa-reassoc.c (get_rank): Refactor to consistently
1204         use the cache and dump ranks assigned.
1206 2020-11-19  Jan Hubicka  <jh@suse.cz>
1208         * fold-const.c (operand_compare::operand_equal_p): More OBJ_TYPE_REF
1209         matching to correct place; drop OEP_ADDRESS_OF for TOKEN, OBJECT and
1210         class.
1211         (operand_compare::hash_operand): Hash ODR type for OBJ_TYPE_REF.
1213 2020-11-19  Joel Hutton  <joel.hutton@arm.com>
1215         * config/aarch64/aarch64-simd.md: Add vec_widen_lshift_hi/lo<mode>
1216         patterns.
1217         * tree-vect-stmts.c (vectorizable_conversion): Fix for widen_lshift
1218         case.
1220 2020-11-19  Joel Hutton  <joel.hutton@arm.com>
1222         * doc/generic.texi: Document new widen_plus/minus_lo/hi tree codes.
1223         * doc/md.texi: Document new widenening add/subtract hi/lo optabs.
1224         * expr.c (expand_expr_real_2): Add widen_add, widen_subtract cases.
1225         * optabs-tree.c (optab_for_tree_code): Add case for widening optabs.
1226         * optabs.def (OPTAB_D): Define vectorized widen add, subtracts.
1227         * tree-cfg.c (verify_gimple_assign_binary): Add case for widening adds,
1228         subtracts.
1229         * tree-inline.c (estimate_operator_cost): Add case for widening adds,
1230         subtracts.
1231         * tree-vect-generic.c (expand_vector_operations_1): Add case for
1232         widening adds, subtracts
1233         * tree-vect-patterns.c (vect_recog_widen_add_pattern): New recog
1234         pattern.
1235         (vect_recog_widen_sub_pattern): New recog pattern.
1236         (vect_recog_average_pattern): Update widened add code.
1237         (vect_recog_average_pattern): Update widened add code.
1238         * tree-vect-stmts.c (vectorizable_conversion): Add case for widened add,
1239         subtract.
1240         (supportable_widening_operation): Add case for widened add, subtract.
1241         * tree.def
1242         (WIDEN_PLUS_EXPR): New tree code.
1243         (WIDEN_MINUS_EXPR): New tree code.
1244         (VEC_WIDEN_ADD_HI_EXPR): New tree code.
1245         (VEC_WIDEN_PLUS_LO_EXPR): New tree code.
1246         (VEC_WIDEN_MINUS_HI_EXPR): New tree code.
1247         (VEC_WIDEN_MINUS_LO_EXPR): New tree code.
1249 2020-11-19  Joel Hutton  <joel.hutton@arm.com>
1251         * config/aarch64/aarch64-simd.md: New patterns
1252         vec_widen_saddl_lo/hi_<mode>.
1254 2020-11-19  Richard Biener  <rguenther@suse.de>
1256         PR tree-optimization/97901
1257         * tree-ssa-propagate.c (clean_up_loop_closed_phi): Compute
1258         dominators and use replace_uses_by.
1260 2020-11-19  Eric Botcazou  <ebotcazou@adacore.com>
1262         * dwarf2out.h (struct fixed_point_type_info) <scale_factor>: Turn
1263         numerator and denominator into a tree.
1264         * dwarf2out.c (base_type_die): In the case of a fixed-point type
1265         with arbitrary scale factor, call add_scalar_info on numerator and
1266         denominator to emit the appropriate attributes.
1268 2020-11-19  Richard Biener  <rguenther@suse.de>
1270         PR tree-optimization/97897
1271         * tree-complex.c (complex_propagate::visit_stmt): Make sure
1272         abnormally used SSA names are VARYING.
1273         (complex_propagate::visit_phi): Likewise.
1274         * tree-ssa.c (verify_phi_args): Verify PHI arguments on abnormal
1275         edges are SSA names.
1277 2020-11-19  Uroš Bizjak  <ubizjak@gmail.com>
1279         * config/i386/i386.md (*<absneg:code><mode>2_i387_1):
1280         Disable for TARGET_SSE_MATH modes.
1282 2020-11-19  Jeff Law  <law@redhat.com>
1284         * config/h8300/constraints.md (R constraint): Add argument to call
1285         to h8300_shift_needs_scratch_p.
1286         (S and T constraints): Similary.
1287         * config/h8300/h8300-protos.h: Update h8300_shift_needs_scratch_p
1288         prototype.
1289         * config/h8300/h8300.c (expand_a_shift): Emit a different pattern
1290         if the shift does not require a scratch register.
1291         (h8300_shift_needs_scratch_p): Refine to be more accurate.
1292         * config/h8300/shiftrotate.md (shiftqi_noscratch): New pattern.
1293         (shifthi_noscratch, shiftsi_noscratch): Similarly.
1295 2020-11-18  Roger Sayle  <roger@nextmovesoftware.com>
1297         PR middle-end/85811
1298         * fold-const.c (tree_expr_finite_p): New function to test whether
1299         a tree expression must be finite, i.e. not a FP NaN or infinity.
1300         (tree_expr_infinite_p):  New function to test whether a tree
1301         expression must be infinite, i.e. a FP infinity.
1302         (tree_expr_maybe_infinite_p): New function to test whether a tree
1303         expression may be infinite, i.e. a FP infinity.
1304         (tree_expr_signaling_nan_p): New function to test whether a tree
1305         expression must evaluate to a signaling NaN (sNaN).
1306         (tree_expr_maybe_signaling_nan_p): New function to test whether a
1307         tree expression may be a signaling NaN (sNaN).
1308         (tree_expr_nan_p): New function to test whether a tree expression
1309         must evaluate to a (quiet or signaling) NaN.
1310         (tree_expr_maybe_nan_p): New function to test whether a tree
1311         expression me be a (quiet or signaling) NaN.
1312         (tree_binary_nonnegative_warnv_p) [MAX_EXPR]: In the presence
1313         of NaNs, MAX_EXPR is only guaranteed to be non-negative, if both
1314         operands are non-negative.
1315         (tree_call_nonnegative_warnv_p) [CASE_CFN_FMAX,CASE_CFN_FMAX_FN]:
1316         In the presence of signaling NaNs, fmax is only guaranteed to be
1317         non-negative if both operands are negative.  In the presence of
1318         quiet NaNs, fmax is non-negative if either operand is non-negative
1319         and not a qNaN, or both operands are non-negative.
1320         * fold-const.h (tree_expr_finite_p, tree_expr_infinite_p,
1321         tree_expr_maybe_infinite_p, tree_expr_signaling_nan_p,
1322         tree_expr_maybe_signaling_nan_p, tree_expr_nan_p,
1323         tree_expr_maybe_nan_p): Prototype new functions here.
1324         * builtins.c (fold_builtin_classify) [BUILT_IN_ISINF]: Fold to
1325         a constant if argument is known to be (or not to be) an Infinity.
1326         [BUILT_IN_ISFINITE]: Fold to a constant if argument is known to
1327         be (or not to be) finite.
1328         [BUILT_IN_ISNAN]: Fold to a constant if argument is known to be
1329         (or not to be) a NaN.
1330         (fold_builtin_fpclassify): Check tree_expr_maybe_infinite_p and
1331         tree_expr_maybe_nan_p instead of HONOR_INFINITIES and HONOR_NANS
1332         respectively.
1333         (fold_builtin_unordered_cmp): Fold UNORDERED_EXPR to a constant
1334         when its arguments are known to be (or not be) NaNs.  Check
1335         tree_expr_maybe_nan_p instead of HONOR_NANS when choosing between
1336         unordered and regular forms of comparison operators.
1337         * match.pd (ordered(x,y)->true/false): Constant fold ORDERED_EXPR
1338         if its operands are known to be (or not to be) NaNs.
1339         (unordered(x,y)->true/false): Constant fold UNORDERED_EXPR if its
1340         operands are known to be (or not to be) NaNs.
1341         (sqrt(x)*sqrt(x)->x): Check tree_expr_maybe_signaling_nan_p instead
1342         of HONOR_SNANS.
1344 2020-11-18  Jakub Jelinek  <jakub@redhat.com>
1346         PR tree-optimization/91029
1347         PR tree-optimization/97888
1348         * range-op.cc (operator_trunc_mod::op1_range): Only set op1
1349         range to >= 0 if lhs is > 0, rather than >= 0.  Fix up comments.
1351 2020-11-18  Jakub Jelinek  <jakub@redhat.com>
1353         * opts.h (struct cl_var): New type.
1354         (cl_vars): Declare.
1355         * optc-gen.awk: Generate cl_vars array.
1357 2020-11-18  Eugene Rozenfeld  <Eugene.Rozenfeld@microsoft.com>
1359         PR tree-optimization/96671
1360         * match.pd (three xor patterns): New patterns.
1362 2020-11-18  Jakub Jelinek  <jakub@redhat.com>
1364         * optc-save-gen.awk: Initialize var_opt_init.  In
1365         cl_optimization_stream_out for params with default values larger than
1366         10, xor the default value with the actual parameter value.  In
1367         cl_optimization_stream_in repeat the above xor.
1369 2020-11-18  Jakub Jelinek  <jakub@redhat.com>
1371         * configure.ac: Add $lang.prev rules, INDEX.$lang and SERIAL_LIST and
1372         SERIAL_COUNT variables to Make-hooks.
1373         (--enable-link-serialization): New configure option.
1374         * Makefile.in (DO_LINK_SERIALIZATION, LINK_PROGRESS): New variables.
1375         * doc/install.texi (--enable-link-serialization): Document.
1376         * configure: Regenerated.
1378 2020-11-18  Vladimir Makarov  <vmakarov@redhat.com>
1380         PR target/97870
1381         * lra-constraints.c (curr_insn_transform): Do not delete asm goto
1382         with wrong constraints.  Nullify it saving CFG.
1384 2020-11-18  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1386         * config/msp430/msp430.md (mulhi3): New.
1387         (mulsi3): New.
1388         (mulsidi3): Rename to *mulsidi3_inline.
1389         (umulsidi3): Rename to *umulsidi3_inline.
1390         (mulsidi3): New define_expand.
1391         (umulsidi3): New define_expand.
1393 2020-11-18  Richard Biener  <rguenther@suse.de>
1395         PR tree-optimization/97886
1396         * tree-vect-loop.c (vectorizable_lc_phi): Properly assign
1397         vector types to invariants for SLP.
1399 2020-11-18  Iain Buclaw  <ibuclaw@gdcproject.org>
1401         * config.gcc (*-*-dragonfly*): Add dragonfly-d.o and t-dragonfly.
1402         * config/dragonfly-d.c: New file.
1403         * config/t-dragonfly: New file.
1405 2020-11-18  Jakub Jelinek  <jakub@redhat.com>
1407         PR middle-end/97862
1408         * omp-expand.c (expand_omp_for_init_vars): Don't use the sqrt path
1409         if number of iterations is constant 0.
1411 2020-11-18  Kito Cheng  <kito.cheng@sifive.com>
1413         * common/config/riscv/riscv-common.c (riscv_ext_version): New.
1414         (riscv_ext_version_table): Ditto.
1415         (get_default_version): Ditto.
1416         (riscv_subset_t::implied_p): New field.
1417         (riscv_subset_t::riscv_subset_t): Init implied_p.
1418         (riscv_subset_list::add): New.
1419         (riscv_subset_list::handle_implied_ext): Pass riscv_subset_t
1420         instead of separated argument.
1421         (riscv_subset_list::to_string): Handle zifencei and zicsr, and
1422         omit version if version is unknown.
1423         (riscv_subset_list::parsing_subset_version): New argument `ext`,
1424         remove default_major_version and default_minor_version, get
1425         default version info via get_default_version.
1426         (riscv_subset_list::parse_std_ext): Update argument for
1427         parsing_subset_version calls.
1428         Handle 2.2 ISA spec, always enable zicsr and zifencei, they are
1429         included in baseline ISA in that time.
1430         (riscv_subset_list::parse_multiletter_ext): Update argument for
1431         `parsing_subset_version` and `add` calls.
1432         (riscv_subset_list::parse): Adjust argument for
1433         riscv_subset_list::handle_implied_ext call.
1434         * config.gcc (riscv*-*-*): Handle --with-isa-spec=.
1435         * config.in (HAVE_AS_MISA_SPEC): New.
1436         (HAVE_AS_MARCH_ZIFENCEI): Ditto.
1437         * config/riscv/riscv-opts.h (riscv_isa_spec_class): New.
1438         (riscv_isa_spec): Ditto.
1439         * config/riscv/riscv.h (HAVE_AS_MISA_SPEC): New.
1440         (ASM_SPEC): Pass -misa-spec if gas supported.
1441         * config/riscv/riscv.opt (riscv_isa_spec_class) New.
1442         * configure.ac (HAVE_AS_MARCH_ZIFENCEI): New test.
1443         (HAVE_AS_MISA_SPEC): Ditto.
1444         * configure: Regen.
1446 2020-11-18  Kito Cheng  <kito.cheng@sifive.com>
1448         * common/config/riscv/riscv-common.c (riscv_implied_info):
1449         d and f implied zicsr.
1450         (riscv_ext_flag_table): Handle zicsr and zifencei.
1451         * config/riscv/riscv-opts.h (MASK_ZICSR): New.
1452         (MASK_ZIFENCEI): Ditto.
1453         (TARGET_ZICSR): Ditto.
1454         (TARGET_ZIFENCEI): Ditto.
1455         * config/riscv/riscv.md (clear_cache): Check TARGET_ZIFENCEI.
1456         (fence_i): Ditto.
1457         * config/riscv/riscv.opt (riscv_zi_subext): New.
1459 2020-11-18  Kito Cheng  <kito.cheng@sifive.com>
1461         * common/config/riscv/riscv-common.c (single_letter_subset_rank): New.
1462         (multi_letter_subset_rank): Ditto.
1463         (subset_cmp): Ditto.
1464         (riscv_subset_list::add): Insert subext in canonical ordering.
1465         (riscv_subset_list::parse_std_ext): Move handle_implied_ext to ...
1466         (riscv_subset_list::parse): ... here.
1468 2020-11-18  Jiufu Guo   <guojiufu@linux.ibm.com>
1470         * cfgloop.h (loop_optimizer_finalize): Add flag argument.
1471         * loop-init.c (loop_optimizer_finalize): Call clean_up_loop_closed_phi.
1472         * tree-cfgcleanup.h (clean_up_loop_closed_phi): New declare.
1473         * tree-ssa-loop.c (tree_ssa_loop_done): Call loop_optimizer_finalize
1474         with flag argument.
1475         * tree-ssa-propagate.c (clean_up_loop_closed_phi): New function.
1477 2020-11-17  Sebastian Pop  <spop@amazon.com>
1479         * config.gcc: add configure flags --with-{cpu,arch,tune}-{32,64}
1480         as alias flags for --with-{cpu,arch,tune} on AArch64.
1481         * doc/install.texi: Document new flags for aarch64.
1483 2020-11-17  Sebastian Pop  <spop@amazon.com>
1485         * config.gcc: Add --with-tune to AArch64 configure flags.
1487 2020-11-17  Andrew MacLeod  <amacleod@redhat.com>
1489         PR tree-optimization/91029
1490         * range-op.cc (operator_trunc_mod::op1_range): New.
1492 2020-11-17  Jan Hubicka  <jh@suse.cz>
1494         * ipa-icf.c (sem_function::hash_stmt): Fix conditional on
1495         variably_modified_type_p.
1497 2020-11-17  Nathan Sidwell  <nathan@acm.org>
1499         * tree.h (cache_integer_cst): Add defaulted might_duplicate parm.
1500         * tree.c (cache_integer_cst): Return the integer cst, add
1501         might_duplicate parm to permit finding a small duplicate.
1503 2020-11-17  Andrew MacLeod  <amacleod@redhat.com>
1505         PR tree-optimization/83072
1506         * range-op.cc (wi_optimize_and_or): Remove zero from IOR range when
1507         mask is non-zero.
1509 2020-11-17  Joseph Myers  <joseph@codesourcery.com>
1511         * ginclude/float.h (CR_DECIMAL_DIG): Also define for
1512         [__STDC_WANT_IEC_60559_EXT__].
1514 2020-11-17  Joseph Myers  <joseph@codesourcery.com>
1516         * ginclude/float.h [__STDC_VERSION__ > 201710L] (FLT_IS_IEC_60559,
1517         DBL_IS_IEC_60559, LDBL_IS_IEC_60559): New macros.
1519 2020-11-17  Aaron Sawdey  <acsawdey@linux.ibm.com>
1521         PR target/96791
1522         * mode-classes.def: Add MODE_OPAQUE.
1523         * machmode.def: Add OPAQUE_MODE.
1524         * tree.def: Add OPAQUE_TYPE for types that will use
1525         MODE_OPAQUE.
1526         * doc/generic.texi: Document OPAQUE_TYPE.
1527         * doc/rtl.texi: Document MODE_OPAQUE.
1528         * machmode.h: Add OPAQUE_MODE_P().
1529         * genmodes.c (complete_mode): Add MODE_OPAQUE.
1530         (opaque_mode): New function.
1531         * tree.c (tree_code_size): Add OPAQUE_TYPE.
1532         * tree.h: Add OPAQUE_TYPE_P().
1533         * stor-layout.c (int_mode_for_mode): Treat MODE_OPAQUE modes
1534         like BLKmode.
1535         * ira.c (find_moveable_pseudos): Treat MODE_OPAQUE modes more
1536         like integer/float modes here.
1537         * dbxout.c (dbxout_type): Treat OPAQUE_TYPE like VOID_TYPE.
1538         * tree-pretty-print.c (dump_generic_node): Treat OPAQUE_TYPE
1539         like like other types.
1541 2020-11-17  Jan Hubicka  <hubicka@ucw.cz>
1542             Martin Liska  <mliska@suse.cz>
1544         * ipa-icf.c: Include data-streamer.h and alias.h.
1545         (sem_function::sem_function): Initialize memory_access_types
1546         and m_alias_sets_hash.
1547         (sem_function::hash_stmt): For memory accesses and when going to
1548         do lto streaming add base and ref types into memory_access_types.
1549         (sem_item_optimizer::write_summary): Stream memory access types.
1550         (sem_item_optimizer::read_section): Likewise and also iniitalize
1551         m_alias_sets_hash.
1552         (sem_item_optimizer::execute): Call
1553         sem_item_optimizer::update_hash_by_memory_access_type.
1554         (sem_item_optimizer::update_hash_by_memory_access_type): Updat.
1555         * ipa-icf.h (sem_function): Add memory_access_types and
1556         m_alias_sets_hash.
1558 2020-11-17  Jan Hubicka  <jh@suse.cz>
1560         PR bootstrap/97857
1561         * ipa-devirt.c (odr_based_tbaa_p): Do not ICE when
1562         odr_hash is not initialized
1563         * ipa-utils.h (type_with_linkage_p): Do not sanity check
1564         CXX_ODR_P.
1565         * tree-streamer-out.c (pack_ts_type_common_value_fields): Set
1566         CXX_ODR_P according to the canonical type.
1568 2020-11-17  Nathan Sidwell  <nathan@acm.org>
1570         * langhooks-def.h (LANG_HOOKS_PREPROCESS_MAIN_FILE)
1571         (LANG_HOOKS_PREPROCESS_OPTIONS, LANG_HOOKS_PREPROCESS_UNDEF)
1572         (LANG_HOOKS_PREPROCESS_TOKEN): New.
1573         (LANG_HOOKS_INITIALIZER): Add them.
1574         * langhooks.h (struct lang_hooks): Add preprocess_main_file,
1575         preprocess_options, preprocess_undef, preprocess_token hooks.  Add
1576         enum PT_flags.
1578 2020-11-17  Richard Sandiford  <richard.sandiford@arm.com>
1580         PR tree-optimization/97693
1581         * tree-vect-stmts.c (vectorizable_call): Pass the required vectype
1582         to vect_get_vec_defs_for_operand.
1584 2020-11-17  Liu Hao  <lh_mouse@126.com>
1586         * config/i386/msformat-c.c: Add more length modifiers.
1588 2020-11-17  Tamar Christina  <tamar.christina@arm.com>
1590         PR driver/97574
1591         * gcc.c (convert_filename): Don't add suffix to things that are
1592         not files.
1593         (not_actual_file_p): Use supplied argument.
1595 2020-11-17  Haochen Gui  <guihaoc@gcc.gnu.org>
1597         * final.c (final_scan_insn_1): Set jump table relocatable as the
1598         second argument of targetm.asm_out.function_rodata_section.
1599         * output.h (default_function_rodata_section,
1600         default_no_function_rodata_section): Add the second argument to the
1601         declarations.
1602         * target.def (function_rodata_section): Change the doc and add
1603         the second argument.
1604         * doc/tm.texi: Regenerate.
1605         * varasm.c (jumptable_relocatable): Implement.
1606         (default_function_rodata_section): Add the second argument
1607         and the support for relocatable read only sections.
1608         (default_no_function_rodata_section): Add the second argument.
1609         (function_mergeable_rodata_prefix): Set the second argument to false.
1610         * config/mips/mips.c (mips_function_rodata_section): Add the second
1611         arugment and set it to false.
1612         * config/s390/s390.c (targetm.asm_out.function_rodata_section): Set
1613         the second argument to false.
1614         * config/s390/s390.md: Likewise.
1616 2020-11-17  liuhongt  <hongtao.liu@intel.com>
1618         PR target/97194
1619         * config/i386/i386-expand.c (ix86_expand_vector_set_var): New function.
1620         * config/i386/i386-protos.h (ix86_expand_vector_set_var): New Decl.
1621         * config/i386/predicates.md (vec_setm_operand): New predicate,
1622         true for const_int_operand or register_operand under TARGET_AVX2.
1623         * config/i386/sse.md (vec_set<mode>): Support both constant
1624         and variable index vec_set.
1626 2020-11-17  Martin Sebor  <msebor@redhat.com>
1628         * tree-ssa-uninit.c (maybe_warn_operand): Call is_empty_type.
1629         * tree.c (default_is_empty_type): Rename...
1630         (is_empty_type): ...to this.
1631         * tree.h (is_empty_type): Declare.
1633 2020-11-17  Martin Sebor  <msebor@redhat.com>
1635         PR middle-end/95673
1636         * tree-ssa-strlen.c (used_only_for_zero_equality): Rename...
1637         (use_in_zero_equality): ...to this.  Add a default argument.
1638         (handle_builtin_memcmp): Adjust to the name change above.
1639         (handle_builtin_string_cmp): Same.
1640         (maybe_warn_pointless_strcmp): Same.  Pass in an explicit argument.
1642 2020-11-17  Joseph Myers  <joseph@codesourcery.com>
1644         * ginclude/float.h (DEC32_SNAN, DEC64_SNAN, DEC128_SNAN): New C2x
1645         macros.
1647 2020-11-17  Joseph Myers  <joseph@codesourcery.com>
1649         * ginclude/float.h (INFINITY, NAN, FLT_SNAN, DBL_SNAN, LDBL_SNAN)
1650         (FLT16_SNAN, FLT32_SNAN, FLT64_SNAN, FLT128_SNAN, FLT32X_SNAN)
1651         (FLT64X_SNAN, FLT128X_SNAN, DEC_INFINITY, DEC_NAN): New C2x
1652         macros.
1653         * doc/sourcebuild.texi (Effective-Target Keywords): Document inff.
1655 2020-11-17  Armin Brauns via Gcc-patches  <gcc-patches@gcc.gnu.org>
1657         * gcc.c: Document %T spec file directive.
1658         * doc/invoke.texi: Remove %p, %P spec file directives.
1659         Add %M, %R, %V, %nSTR, %>S, %<S*, %{%:function(args):X}, %@{...} spec
1660         file directives add sanitize, version-compare, include, gt and
1661         debug-level-gt spec functions.
1663 2020-11-16  Roger Sayle  <roger@nextmovesoftware.com>
1665         PR rtl-optimization/92180
1666         * config/i386/i386.c (ix86_hardreg_mov_ok): New function to
1667         determine whether (set DST SRC) should be allowed at this point.
1668         * config/i386/i386-protos.h (ix86_hardreg_mov_ok): Prototype here.
1669         * config/i386/i386-expand.c (ix86_expand_move): Check whether
1670         this is a complex set of a likely spilled hard register, and if
1671         so place the value in a pseudo, and load the hard reg from it.
1672         * config/i386/i386.md (*movdi_internal, *movsi_internal)
1673         (*movhi_internal, *movqi_internal): Make these instructions
1674         conditional on ix86_hardreg_mov_ok.
1675         (*lea<mode>): Make this define_insn_and_split conditional on
1676         ix86_hardreg_mov_ok.
1678 2020-11-16  Martin Liska  <mliska@suse.cz>
1680         * params.opt: Add missing dot.
1682 2020-11-16  Jan Hubicka  <jh@suse.cz>
1684         * ipa-modref.c (escape_point): New type.
1685         (modref_lattice): New type.
1686         (escape_entry): New type.
1687         (escape_summary): New type.
1688         (escape_summaries_t): New type.
1689         (escape_summaries): New static variable.
1690         (eaf_flags_useful_p): New function.
1691         (modref_summary::useful_p): Add new check_flags
1692         attribute; check eaf_flags for usefulness.
1693         (modref_summary_lto): Add arg_flags.
1694         (modref_summary_lto::useful_p): Add new check_flags
1695         attribute; check eaf_flags for usefulness.
1696         (dump_modref_edge_summaries): New function.
1697         (remove_modref_edge_summaries): New function.
1698         (ignore_retval_p): New predicate.
1699         (ignore_stores_p): Also ignore for const.
1700         (remove_summary): Call remove_modref_edge_summaries.
1701         (modref_lattice::init): New member function.
1702         (modref_lattice::release): New member unction.
1703         (modref_lattice::dump): New member function.
1704         (modref_lattice::add_escape_point): New member function.
1705         (modref_lattice::merge): Two new member functions.
1706         (modref_lattice::merge_deref): New member functions.
1707         (modref_lattice::merge_direct_load): New member function.
1708         (modref_lattice::merge_direct_store): New member function.
1709         (call_lhs_flags): Rename to ...
1710         (merge_call_lhs_flags): ... this one; reimplement using
1711         modreflattice.
1712         (analyze_ssa_name_flags): Replace KNOWN_FLAGS param by LATTICE;
1713         add IPA parametr; use modref_lattice.
1714         (analyze_parms): New parameter IPA and SUMMARY_LTO; update for
1715         modref_lattice; initialize escape_summary.
1716         (analyze_function): Allocate escape_summaries; update uses of useful_p.
1717         (modref_write_escape_summary): New function.
1718         (modref_read_escape_summary): New function.
1719         (modref_write): Write escape summary.
1720         (read_section): Read escape summary.
1721         (modref_read): Initialie escape_summaries.
1722         (remap_arg_flags): New function.
1723         (update_signature): Use it.
1724         (escape_map): New structure.
1725         (update_escape_summary_1, update_escape_summary): New functions.
1726         (ipa_merge_modref_summary_after_inlining): Merge escape summaries.
1727         (propagate_unknown_call): Do not remove useless summaries.
1728         (remove_useless_summaries): Remove them here.
1729         (modref_propagate_in_scc): Update; do not dump scc.
1730         (modref_propagate_dump_scc): New function.
1731         (modref_merge_call_site_flags): New function.
1732         (modref_propagate_flags_in_scc): New function.
1733         (pass_ipa_modref::execute): Use modref_propagate_flags_in_scc
1734         and modref_propagate_dump_scc; delete escape_summaries.
1735         (ipa_modref_c_finalize):  Remove escape_summaries.
1736         * ipa-modref.h (modref_summary): Update prototype of useful_p.
1737         * params.opt (param=modref-max-escape-points): New param.
1738         * doc/invoke.texi (modref-max-escape-points): Document.
1740 2020-11-16  Jan Hubicka  <jh@suse.cz>
1742         PR middle-end/97840
1743         * ipa-modref.c (analyze_ssa_name_flags): Skip clobbers if inlining
1744         is done.
1745         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Make stmt gcall;
1746         skip const calls and unused arguments.
1747         (warn_uninitialized_vars): Update prototype.
1749 2020-11-16  Richard Biener  <rguenther@suse.de>
1751         * tree-vectorizer.h (vect_gather_slp_loads): Declare.
1752         * tree-vect-loop.c (vect_analyze_loop_2): Call
1753         vect_gather_slp_loads.
1754         * tree-vect-slp.c (vect_build_slp_instance): Do not gather
1755         SLP loads here.
1756         (vect_gather_slp_loads): Remove wrapper, new function.
1757         (vect_slp_analyze_bb_1): Call it.
1759 2020-11-16   Richard Biener  <rguenther@suse.de>
1761         * tree-ssa-loop-im.c (analyze_memory_references): Add
1762         store_motion parameter and elide unnecessary work.
1763         (tree_ssa_lim_initialize): Likewise.
1764         (loop_invariant_motion_in_fun): Pass down store_motion.
1766 2020-11-16  Martin Liska  <mliska@suse.cz>
1768         * params.opt: All modref parameters miss Optimization and Param
1769         keyword as seen in testsuite failure.
1771 2020-11-16  Jan Hubicka  <jh@suse.cz>
1773         * params.opt (-param=modref-max-depth=): Add missing full stop.
1775 2020-11-16  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1777         * common.opt (fprofile-info-section): New.
1778         * coverage.c (build_gcov_info_var_registration): New.
1779         (coverage_obj_init): Evaluate profile_info_section and use
1780         build_gcov_info_var_registration().
1781         * doc/invoke.texi (fprofile-info-section): Document.
1782         * opts.c (common_handle_option): Process fprofile-info-section
1783         option.
1785 2020-11-16  Richard Biener  <rguenther@suse.de>
1787         PR tree-optimization/97838
1788         * tree-vect-slp.c (vect_slp_build_vertices): Properly handle
1789         not backwards reachable cycles.
1790         (vect_optimize_slp): Check a node is leaf before marking it
1791         visited.
1793 2020-11-16  Martin Liska  <mliska@suse.cz>
1795         PR tree-optimization/97736
1796         * tree-switch-conversion.c (switch_decision_tree::analyze_switch_statement):
1797         Prefer bit tests.
1799 2020-11-16  Richard Biener  <rguenther@suse.de>
1801         PR tree-optimization/97835
1802         * tree-vect-loop.c (vectorizable_induction): Convert step
1803         scalars rather than step vector.
1805 2020-11-16  Richard Biener  <rguenther@suse.de>
1807         PR tree-optimization/97830
1808         * tree-ssa-sccvn.c (vn_reference_eq): Check for incomplete
1809         types before comparing TYPE_SIZE.
1811 2020-11-16  Cui,Lili  <lili.cui@intel.com>
1813         * config/i386/i386.h: Add PREFETCHW to march=broadwell.
1814         * doc/invoke.texi: Put PREFETCHW back to relation arch.
1816 2020-11-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1818         * config/msp430/msp430.c (msp430_output_labelref): Don't process mspabi
1819         hwmult library function names into GCC-style names.
1821 2020-11-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1823         * config/msp430/msp430.c (msp430_use_16bit_hwmult): New.
1824         (use_32bit_hwmult): Rename to..
1825         (msp430_use_32bit_hwmult): ..this.
1826         (msp430_muldiv_costs): Use msp430_use_16bit_hwmult and
1827         msp430_use_32bit_hwmult.
1828         (msp430_expand_helper): Use msp430_use_16bit_hwmult and
1829         msp430_use_32bit_hwmult.
1830         (msp430_output_labelref): Use msp430_use_32bit_hwmult.
1832 2020-11-15  Maciej W. Rozycki  <macro@linux-mips.org>
1834         * config/vax/vax.c (vax_rtx_costs): Use `rtx_code' rather than
1835         `int' for `code'.
1837 2020-11-15  Maciej W. Rozycki  <macro@linux-mips.org>
1839         * config/vax/vax.c (vax_output_int_add) <E_DImode>: Fix a typo
1840         in NO_EXTERNAL_INDIRECT_ADDRESS.
1842 2020-11-15  Maciej W. Rozycki  <macro@linux-mips.org>
1844         * config/vax/vax.c (vax_output_int_add) <E_SImode>: Also check
1845         `operands[2]' for being symbolic with PIC rather than checking
1846         `operands[1]' twice.
1848 2020-11-15  Aldy Hernandez  <aldyh@redhat.com>
1850         * vr-values.c (vr_values::extract_range_builtin): Rename to...
1851         (vr_values::extract_range_from_ubsan_builtin): ...this.
1852         Remove everything but UBSAN code.
1853         (vr_values::extract_range_basic): Call ranger version for
1854         everything except UBSAN built-ins.
1855         * vr-values.h (class vr_values): Rename extract_range_builtin to
1856         extract_range_from_ubsan_builtin.
1858 2020-11-15  Vladimir N. Makarov  <vmakarov@redhat.com>
1860         * lra.c (lra_process_new_insns): Don't put reload insns in the
1861         last empty BB.
1863 2020-11-15  Jan Hubicka  <jh@suse.cz>
1865         * ipa-modref.c (analyze_ssa_name_flags): Make return to clear
1866         EAF_UNUSED flag.
1868 2020-11-14  Jan Hubicka  <jh@suse.cz>
1870         * gimple.c: Include ipa-modref-tree.h and ipa-modref.h.
1871         (gimple_call_arg_flags): Use modref to determine flags.
1872         * ipa-modref.c: Include gimple-ssa.h, tree-phinodes.h,
1873         tree-ssa-operands.h, stringpool.h and tree-ssanames.h.
1874         (analyze_ssa_name_flags): Declare.
1875         (modref_summary::useful_p): Summary is also useful if arg flags are
1876         known.
1877         (dump_eaf_flags): New function.
1878         (modref_summary::dump): Use it.
1879         (get_modref_function_summary): Be read for current_function_decl
1880         being NULL.
1881         (memory_access_to): New function.
1882         (deref_flags): New function.
1883         (call_lhs_flags): New function.
1884         (analyze_parms): New function.
1885         (analyze_function): Use it.
1886         * ipa-modref.h (struct modref_summary): Add arg_flags.
1887         * doc/invoke.texi (ipa-modref-max-depth): Document.
1888         * params.opt (ipa-modref-max-depth): New param.
1890 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
1892         PR debug/97599
1893         * dwarf2out.c (gen_subprogram_die): Call
1894         gen_unspecified_parameters_die even if not early dwarf, but only
1895         if subr_die is a newly created DIE.
1897 2020-11-14  Monk Chiang  <monk.chiang@sifive.com>
1899         PR target/97682
1900         * config/riscv/riscv.h (RISCV_PROLOGUE_TEMP_REGNUM): Change register
1901         to t0.
1902         (RISCV_CALL_ADDRESS_TEMP_REGNUM): New Marco, define t1 register.
1903         (RISCV_CALL_ADDRESS_TEMP): Use it for call instructions.
1904         * config/riscv/riscv.c (riscv_legitimize_call_address): Use
1905         RISCV_CALL_ADDRESS_TEMP.
1906         (riscv_compute_frame_info): Change temporary register to t0 form t1.
1907         (riscv_trampoline_init): Adjust comment.
1909 2020-11-14  Jim Wilson  <jimw@sifive.com>
1910             cooper.joshua  <cooper.joshua@linux.alibaba.com>
1912         * config/riscv/riscv.c (riscv_asan_shadow_offset): New.
1913         (TARGET_ASAN_SHADOW_OFFSET): New.
1914         * doc/tm.texi: Regenerated.
1915         * target.def (asan_shadow_offset); Mention that it can return zero.
1916         * toplev.c (process_options): Check for and handle zero return from
1917         targetm.asan_shadow_offset call.
1919 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
1921         * gimplify.c (gimplify_omp_for): Add OMP_CLAUSE_ALLOCATE_ALLOCATOR
1922         decls as firstprivate on task clauses even when allocate clause
1923         decl is not lastprivate.
1924         * omp-low.c (install_var_field): Don't dereference omp_is_reference
1925         types if mask is 33 rather than 1.
1926         (scan_sharing_clauses): Populate allocate_map even for task
1927         constructs.  For now remove it back for variables mentioned in
1928         reduction and in_reduction clauses on task/taskloop constructs
1929         or on VLA task firstprivates.  For firstprivate on task construct,
1930         install the var field into field_map with by_ref and 33 instead
1931         of false and 1 if mentioned in allocate clause.
1932         (lower_private_allocate): Set TREE_THIS_NOTRAP on the created
1933         MEM_REF.
1934         (lower_rec_input_clauses): Handle allocate for task firstprivatized
1935         non-VLA variables.
1936         (create_task_copyfn): Likewise.
1938 2020-11-13  Jan Hubicka  <jh@suse.cz>
1940         * tree-ssa-alias.c (ao_ref_base_alias_ptr_type): Remove accidental
1941         commit.
1942         (ao_ref_alias_ptr_type): Remove accidental commit.
1944 2020-11-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
1946         * omp-oacc-kernels-decompose.cc (maybe_build_inner_data_region):
1947         Use langhook instead of accessing language-specific decl
1948         information.
1950 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
1951             Thomas Schwinge  <thomas@codesourcery.com>
1953         * omp-oacc-kernels-decompose.cc: New.
1954         * Makefile.in (OBJS): Add it.
1955         * passes.def: Instantiate it.
1956         * tree-pass.h (make_pass_omp_oacc_kernels_decompose): Declare.
1957         * flag-types.h (enum openacc_kernels): Add.
1958         * doc/invoke.texi (-fopenacc-kernels): Document.
1959         * gimple.h (enum gf_mask): Add
1960         'GF_OMP_TARGET_KIND_OACC_PARALLEL_KERNELS_PARALLELIZED',
1961         'GF_OMP_TARGET_KIND_OACC_PARALLEL_KERNELS_GANG_SINGLE',
1962         'GF_OMP_TARGET_KIND_OACC_DATA_KERNELS'.
1963         (is_gimple_omp_oacc, is_gimple_omp_offloaded): Handle these.
1964         * gimple-pretty-print.c (dump_gimple_omp_target): Likewise.
1965         * omp-expand.c (expand_omp_target, build_omp_regions_1)
1966         (omp_make_gimple_edges): Likewise.
1967         * omp-low.c (scan_sharing_clauses, scan_omp_for)
1968         (check_omp_nesting_restrictions, lower_oacc_reductions)
1969         (lower_oacc_head_mark, lower_omp_target): Likewise.
1970         * omp-offload.c (execute_oacc_device_lower): Likewise.
1972 2020-11-13  Thomas Schwinge  <thomas@codesourcery.com>
1974         * omp-low.c (scan_sharing_clauses, scan_omp_for)
1975         (lower_oacc_reductions, lower_omp_target): More explicit checking
1976         of which OMP constructs we're expecting.
1978 2020-11-13  Thomas Schwinge  <thomas@codesourcery.com>
1980         * omp-expand.c (expand_omp_target): Attach an attribute to all
1981         outlined OpenACC compute regions.
1982         * omp-offload.c (execute_oacc_device_lower): Adjust.
1984 2020-11-13  Jan Hubicka  <jh@suse.cz>
1986         * ipa-modref.c (modref_summaries::insert,
1987         modref_summaries_lto::insert): Remove summary if ipa-modref is disabled.
1989 2020-11-13  Jan Hubicka  <jh@suse.cz>
1991         * attr-fnspec.h (attr_fnspec::arg_readonly_p): Accept '1'...'9'.
1993 2020-11-13  Peter Jones  <pjones@redhat.com>
1995         * doc/extend.texi: Clarify the documentation for the ms_abi
1996         function attribute.
1998 2020-11-13  Andrew MacLeod  <amacleod@redhat.com>
2000         * gimple-range.h (gimple_range_handler): Cast to gimple stmt
2001         kinds before asking for code and type.
2002         * gimple.h (gimple_expr_code): Call gassign and gcond routines
2003         to get their expr_code.
2005 2020-11-13  Jason Merrill  <jason@redhat.com>
2007         * dwarf2out.c (gen_enumeration_type_die): Call
2008         equate_decl_number_to_die for enumerators.
2009         (gen_member_die): Don't move enumerators to their
2010         enclosing class.
2011         (dwarf2out_imported_module_or_decl_1): Allow importing
2012         individual enumerators.
2013         (force_decl_die): Handle CONST_DECL.
2015 2020-11-13  Vladimir N. Makarov  <vmakarov@redhat.com>
2017         * cfgexpand.c (expand_asm_stmt): Output asm goto with outputs too.
2018         Place insns after asm goto on edges.
2019         * doc/extend.texi: Reflect the changes in asm goto documentation.
2020         * gimple.c (gimple_build_asm_1): Remove an assert checking output
2021         absence for asm goto.
2022         * gimple.h (gimple_asm_label_op, gimple_asm_set_label_op): Take
2023         possible asm goto outputs into account.
2024         * ira.c (ira): Remove critical edges for potential asm goto output
2025         reloads.
2026         (ira_nullify_asm_goto): New function.
2027         * ira.h (ira_nullify_asm_goto): New prototype.
2028         * lra-assigns.c (lra_split_hard_reg_for): Use ira_nullify_asm_goto.
2029         Check that splitting is done inside a basic block.
2030         * lra-constraints.c (curr_insn_transform): Permit output reloads
2031         for any jump insn.
2032         * lra-spills.c (lra_final_code_change): Remove USEs added in ira
2033         for asm gotos.
2034         * lra.c (lra_process_new_insns): Place output reload insns after
2035         jumps in the beginning of destination BBs.
2036         * reload.c (find_reloads): Report error for asm gotos with
2037         outputs.  Modify them to keep CFG consistency to avoid crashes.
2038         * tree-into-ssa.c (rewrite_stmt): Don't put debug stmt after asm
2039         goto.
2041 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
2043         * omp-low.c (scan_sharing_clauses): For now remove for reduction
2044         clauses with inscan or task modifiers decl from allocate_map.
2045         (lower_private_allocate): Handle TYPE_P (new_var).
2046         (lower_rec_input_clauses): Handle allocate clause for C/C++ array
2047         reductions.
2049 2020-11-13  Martin Jambor  <mjambor@suse.cz>
2051         PR ipa/97816
2052         * ipa-cp.c (value_topo_info<valtype>::propagate_effects): Use
2053         safe_add instead of a simple addition.
2055 2020-11-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
2057         * config/msp430/msp430.c (TARGET_INSN_COST): Define.
2058         (msp430_insn_cost): New function.
2059         * config/msp430/msp430.h (BRANCH_COST): Define.
2060         (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
2062 2020-11-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
2064         * config/msp430/msp430-protos.h (msp430x_extendhisi): Return int
2065         instead of char *.
2066         (msp430_output_asm_shift_insns): Likewise.
2067         Add new return_length argument.
2068         (msp430x_insn_required): Add prototype.
2069         * config/msp430/msp430.c (msp430_output_asm_shift_insns): Return the
2070         total length, in bytes, of the emitted instructions.
2071         (msp430x_insn_required): New function.
2072         (msp430x_extendhisi): Return the total length, in bytes, of the
2073         emitted instructions.
2074         * config/msp430/msp430.h (ADJUST_INSN_LENGTH): Define.
2075         * config/msp430/msp430.md: New define_attr "type".
2076         New define_attr "extension".
2077         New define_attr "length_multiplier".
2078         New define_attr "extra_length".
2079         Rewrite define_attr "length".
2080         Set type, extension, length, length_multiplier or extra_length insn
2081         attributes on all insns, as appropriate.
2082         (andneghi3): Rewrite using constraints instead of C code to decide
2083         output insns.
2084         * config/msp430/predicates.md (msp430_cheap_operand): New predicate.
2085         (msp430_high_memory_operand): New predicate.
2087 2020-11-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
2089         * config/msp430/msp430.c (use_helper_for_const_shift): Add forward
2090         declaration.
2091         Remove unused argument.
2092         (struct msp430_multlib_costs): New struct.
2093         (msp430_is_mem_indirect): New function.
2094         (msp430_costs): Likewise.
2095         (msp430_shift_costs): Likewise.
2096         (msp430_muldiv_costs): Likewise.
2097         (msp430_get_inner_dest_code): Likewise.
2098         (msp430_single_op_cost): Likewise.
2099         (msp430_rtx_costs): Rewrite from scratch.
2100         (msp430_expand_shift): Adjust use_helper_for_const_shift call.
2102 2020-11-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
2104         * config/msp430/msp430.c (struct single_op_cost): New struct.
2105         (struct double_op_cost): Likewise.
2106         (TARGET_REGISTER_MOVE_COST): Don't define but add comment.
2107         (TARGET_MEMORY_MOVE_COST): Define to...
2108         (msp430_memory_move_cost): New function.
2109         (BRANCH_COST): Don't define but add comment.
2111 2020-11-13  Jan Hubicka  <jh@suse.cz>
2113         * ipa-icf-gimple.c: Include tree-ssa-alias-compare.h.
2114         (find_checker::func_checker): Initialize m_tbaa.
2115         (func_checker::hash_operand): Use hash_ao_ref for memory accesses.
2116         (func_checker::compare_operand): Use compare_ao_refs for memory
2117         accesses.
2118         (func_checker::cmopare_gimple_assign): Do not check LHS types
2119         of memory stores.
2120         * ipa-icf-gimple.h (func_checker): Derive from ao_compare;
2121         add m_tbaa.
2122         * ipa-icf.c: Include tree-ssa-alias-compare.h.
2123         (sem_function::equals_private): Update call of
2124         func_checker::func_checker.
2125         * ipa-utils.h (lto_streaming_expected_p): New inline
2126         predicate.
2127         * tree-ssa-alias-compare.h: New file.
2128         * tree-ssa-alias.c: Include tree-ssa-alias-compare.h
2129         and bultins.h
2130         (view_converted_memref_p): New function.
2131         (types_equal_for_same_type_for_tbaa_p): New function.
2132         (ao_ref_alias_ptr_type, ao_ref_base_alias_ptr_type): New functions.
2133         (ao_compare::compare_ao_refs): New member function.
2134         (ao_compare::hash_ao_ref): New function
2135         * tree-ssa-alias.h (ao_ref_base_alias_ptr_type,
2136         ao_ref_alias_ptr_type): Declare.
2138 2020-11-13  Jan Hubicka  <jh@suse.cz>
2140         * ipa-icf-gimple.c: Include gimple-walk.h.
2141         (func_checker::compare_ssa_name): Update call of compare_operand.
2142         (func_checker::hash_operand): Fix comment and add variant taking
2143         operand_access_type parameter.
2144         (func_checker::compare_operand): Add operand_access_type parameter.
2145         (func_checker::compare_asm_inputs_outputs): Add
2146         operand_access_type_map parameter; update use of
2147         func_checker::compare_operand.
2148         (func_checker::compare_gimple_call): Update use of
2149         func_checker::compare_operand.
2150         (func_checker::compare_gimple_assign): Likewise.
2151         (func_checker::compare_gimple_cond): Likewise.
2152         (func_checker::compare_gimple_switch): Likewise.
2153         (func_checker::compare_gimple_return): Likewise.
2154         (func_checker::compare_gimple_goto): Likewise.
2155         (func_checker::compare_gimple_asm): Likewise.
2156         (visit_load_store): New static functio.
2157         (func_checker::classify_operands): New member function.
2158         (func_checker::get_operand_access_type): New member function.
2159         * ipa-icf-gimple.h (func_checker::operand_access_type): New enum
2160         (func_checker::operand_access_type_map): New typedef.
2161         (func_checker::compare_operand): Update prototype.
2162         (func_checker::compare_asm_inputs_outputs): Likewise.
2163         (func_checker::cleassify_operands): Declare.
2164         (func_checker::get_operand_access_type): Declare.
2165         (func_checker::hash_operand): New variant with operand_access_type.
2166         * ipa-icf.c (sem_function::hash_stmt): Update uses of hash_operand.
2167         (sem_function::compare_phi_node): Update use of compare_operand.
2169 2020-11-13  Andrea Corallo  <andrea.corallo@arm.com>
2171         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Use
2172         RTL predicates where possible.
2173         * config/arm/arm.c (legitimate_pic_operand_p)
2174         (legitimize_pic_address, arm_is_segment_info_known)
2175         (can_avoid_literal_pool_for_label_p)
2176         (thumb1_legitimate_address_p, arm_legitimize_address)
2177         (arm_tls_referenced_p, thumb_legitimate_constant_p)
2178         (REG_OR_SUBREG_REG, thumb1_rtx_costs, thumb1_size_rtx_costs)
2179         (arm_adjust_cost, arm_coproc_mem_operand_wb)
2180         (neon_vector_mem_operand, neon_struct_mem_operand)
2181         (symbol_mentioned_p, label_mentioned_p, )
2182         (load_multiple_sequence, store_multiple_sequence)
2183         (arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi)
2184         (mem_ok_for_ldrd_strd, arm_emit_call_insn, output_move_neon)
2185         (arm_attr_length_move_neon, arm_assemble_integer)
2186         (arm_emit_coreregs_64bit_shift, arm_valid_symbolic_address_p)
2187         (extract_base_offset_in_addr, fusion_load_store): Likewise.
2189 2020-11-13  Andrew MacLeod  <amacleod@redhat.com>
2191         * gimple-range.cc: (gimple_ranger::range_of_range_op): Check for
2192         ADDR_EXPR and call range_of_address.
2193         (gimple_ranger::range_of_address): Rename from
2194         range_of_non_trivial_assignment and match vrp_stmt_computes_nonzero.
2195         * gimple-range.h: (range_of_address): Renamed.
2196         * range-op.cc: (pointer_table): Add INTEGER_CST handler.
2198 2020-11-13  Martin Jambor  <mjambor@suse.cz>
2200         PR tree-optimization/94406
2201         * tree-ssa-loop-im.c (tree_ssa_lim): Renamed to
2202         loop_invariant_motion_in_fun, added a parameter to control store
2203         motion.
2204         (pass_lim::execute): Adjust call to tree_ssa_lim, now
2205         loop_invariant_motion_in_fun.
2206         * tree-ssa-loop-manip.h (loop_invariant_motion_in_fun): Declare.
2207         * gimple-loop-interchange.cc (pass_linterchange::execute): Call
2208         loop_invariant_motion_in_fun if any interchange has been done.
2210 2020-11-13  Richard Biener  <rguenther@suse.de>
2212         * tree-ssa-sccvn.c (vn_phi_compute_hash): Always hash the
2213         number of predecessors.  Hash the block number also for
2214         loop header PHIs.
2215         (expressions_equal_p): Short-cut SSA name compares, remove
2216         test for NULL operands.
2217         (vn_phi_eq): Cache number of predecessors, change inlined
2218         test from expressions_equal_p.
2220 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
2222         * doc/extend.texi: Don't try to line-wrap an @r command.
2224 2020-11-13  Richard Biener  <rguenther@suse.de>
2226         PR tree-optimization/97812
2227         * tree-vrp.c (register_edge_assert_for_2): Extend the range
2228         according to its sign before seeing whether it fits.
2230 2020-11-13  Andrea Corallo  <andrea.corallo@arm.com>
2232         * config/aarch64/aarch64.c (tls_symbolic_operand_type)
2233         (aarch64_load_symref_appropriately, aarch64_mov128_immediate)
2234         (aarch64_expand_mov_immediate)
2235         (aarch64_maybe_expand_sve_subreg_move)
2236         (aarch64_tls_referenced_p, aarch64_cannot_force_const_mem)
2237         (aarch64_base_register_rtx_p, aarch64_classify_index)
2238         (aarch64_classify_address, aarch64_symbolic_address_p)
2239         (aarch64_reinterpret_float_as_int, aarch64_float_const_rtx_p)
2240         (aarch64_can_const_movi_rtx_p, aarch64_select_cc_mode)
2241         (aarch64_print_operand, aarch64_label_mentioned_p)
2242         (aarch64_secondary_reload, aarch64_preferred_reload_class)
2243         (aarch64_address_cost, aarch64_tls_symbol_p)
2244         (aarch64_classify_symbol, aarch64_legitimate_pic_operand_p)
2245         (aarch64_legitimate_constant_p)
2246         (aarch64_sve_float_arith_immediate_p)
2247         (aarch64_sve_float_mul_immediate_p, aarch64_mov_operand_p)
2248         (fusion_load_store): Use RTL operands where possible.
2250 2020-11-13  Sudakshina Das  <sudi.das@arm.com>
2252         * config/aarch64/aarch64-protos.h (aarch64_expand_setmem): New
2253         declaration.
2254         * config/aarch64/aarch64.c (aarch64_gen_store_pair): Add case for
2255         E_V16QImode.
2256         (aarch64_set_one_block_and_progress_pointer): New helper for
2257         aarch64_expand_setmem.
2258         (aarch64_expand_setmem): Define the expansion for memset.
2259         * config/aarch64/aarch64.h (CLEAR_RATIO): Tweak to favor
2260         aarch64_expand_setmem when allowed and profitable.
2261         (SET_RATIO): Likewise.
2262         * config/aarch64/aarch64.md: Define pattern for setmemdi.
2264 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
2266         PR objc/90707
2267         * doc/extend.texi: Document the objc_nullability attribute.
2269 2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
2271         PR objc/77404
2272         * doc/extend.texi: Document the objc_root_class attribute.
2273         * doc/invoke.texi: Document -Wobjc-root-class.
2275 2020-11-13  Richard Biener  <rguenther@suse.de>
2277         * cfgexpand.c (gimple_assign_rhs_to_tree): Use
2278         gimple_assign_rhs_class.
2279         (expand_gimple_stmt_1): Likewise.
2280         * gimplify-me.c (gimple_regimplify_operands): Use
2281         gimple_assign_single_p.
2282         * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2283         Remove redundant compare.
2284         (func_checker::compare_gimple_cond): Use gimple_cond_code.
2285         * tree-ssa-tail-merge.c (gimple_equal_p): Likewise.
2286         * predict.c (predict_loops): Use gimple_assign_rhs_code.
2288 2020-11-13  Aldy Hernandez  <aldyh@redhat.com>
2290         * tree-vrp.c (class vrp_folder): Make visit_stmt, visit_phi,
2291         and m_vr_values private.
2292         (vrp_folder::vrp_evaluate_conditional): Remove.
2293         (vrp_folder::vrp_simplify_stmt_using_ranges): Remove.
2294         (vrp_folder::fold_predicate_in): Inline
2295         vrp_evaluate_conditional and vrp_simplify_stmt_using_ranges.
2296         (vrp_folder::fold_stmt): Same.
2298 2020-11-13  Aldy Hernandez  <aldyh@redhat.com>
2300         * tree-vrp.c (class vrp_prop): Rename vr_values to m_vr_values.
2301         (vrp_prop::vrp_prop): New.
2302         (vrp_prop::initialize): Rename vr_values to m_vr_values.
2303         (vrp_prop::visit_stmt): Same.
2304         (vrp_prop::visit_phi): Same.
2305         (vrp_prop::finalize): Same.
2306         (execute_vrp): Instantiate vrp_vr_values and pass it to folder
2307         and propagator.
2309 2020-11-13  Aldy Hernandez  <aldyh@redhat.com>
2311         * tree-vrp.c (class vrp_prop): Move entire class...
2312         (class vrp_folder): ...before here.
2314 2020-11-13  Aldy Hernandez  <aldyh@redhat.com>
2316         * tree-vrp.c (identify_jump_threads): Refactor to..
2317         (vrp_jump_threader::vrp_jump_threader): ...here
2318         (vrp_jump_threader::~vrp_jump_threader): ...and here.
2319         (vrp_jump_threader::after_dom_children): Rename vr_values to
2320         m_vr_values.
2321         (execute_vrp): Use vrp_jump_threader.
2323 2020-11-13  Aldy Hernandez  <aldyh@redhat.com>
2325         * tree-vrp.c (struct assert_locus): Move.
2326         (class vrp_insert): Rename to vrp_asserts.
2327         (vrp_insert::build_assert_expr_for): Move to vrp_asserts.
2328         (fp_predicate): Same.
2329         (vrp_insert::dump): Same.
2330         (vrp_insert::register_new_assert_for): Same.
2331         (extract_code_and_val_from_cond_with_ops): Move.
2332         (vrp_insert::finish_register_edge_assert_for): Move to vrp_asserts.
2333         (maybe_set_nonzero_bits): Move.
2334         (vrp_insert::find_conditional_asserts): Move to vrp_asserts.
2335         (stmt_interesting_for_vrp): Move.
2336         (struct case_info): Move.
2337         (compare_case_labels): Move.
2338         (lhs_of_dominating_assert): Move.
2339         (find_case_label_index): Move.
2340         (find_case_label_range): Move.
2341         (class vrp_asserts): New.
2342         (vrp_asserts::build_assert_expr_for): Rename from vrp_insert.
2343         (vrp_asserts::dump): Same.
2344         (vrp_asserts::register_new_assert_for): Same.
2345         (vrp_asserts::finish_register_edge_assert_for): Same.
2346         (vrp_asserts::find_conditional_asserts): Same.
2347         (vrp_asserts::compare_case_labels): Same.
2348         (vrp_asserts::find_switch_asserts): Same.
2349         (vrp_asserts::find_assert_locations_in_bb): Same.
2350         (vrp_asserts::find_assert_locations): Same.
2351         (vrp_asserts::process_assert_insertions_for): Same.
2352         (vrp_asserts::compare_assert_loc): Same.
2353         (vrp_asserts::process_assert_insertions): Same.
2354         (vrp_asserts::insert_range_assertions): Same.
2355         (vrp_asserts::all_imm_uses_in_stmt_or_feed_cond): Same.
2356         (vrp_asserts::remove_range_assertions): Same.
2357         (class vrp_prop): Move.
2358         (all_imm_uses_in_stmt_or_feed_cond): Move.
2359         (vrp_prop::vrp_initialize): Move.
2360         (class vrp_folder): Move.
2361         (vrp_folder::fold_predicate_in): Move.
2362         (vrp_folder::fold_stmt): Move.
2363         (vrp_prop::initialize): Move.
2364         (vrp_prop::visit_stmt): Move.
2365         (enum ssa_prop_result): Move.
2366         (vrp_prop::visit_phi): Move.
2367         (vrp_prop::finalize): Move.
2368         (class vrp_dom_walker): Rename to...
2369         (class vrp_jump_threader): ...this.
2370         (vrp_jump_threader::before_dom_children): Rename from
2371         vrp_dom_walker.
2372         (simplify_stmt_for_jump_threading): Rename to...
2373         (vrp_jump_threader::simplify_stmt): ...here.
2374         (vrp_jump_threader::after_dom_children): Same.
2375         (identify_jump_threads): Move.
2376         (vrp_prop::vrp_finalize): Move array bounds setup code to...
2377         (execute_vrp): ...here.
2379 2020-11-13  Andrew MacLeod  <amacleod@redhat.com>
2381         * gimple-range.h (gimple_range_handler): Use gimple_assign and
2382         gimple_cond routines to get type and code.
2383         * range-op.cc (range_op_handler): Check for integral types.
2385 2020-11-12  Nelson Chu  <nelson.chu@sifive.com>
2387         * configure: Regenerated.
2388         * configure.ac: If ifunc was supported in the binutils for
2389         linux toolchain, then set enable_gnu_indirect_function to yes.
2391 2020-11-12  Joseph Myers  <joseph@codesourcery.com>
2393         * doc/cpp.texi (__has_attribute): Document when scopes are allowed
2394         for C.
2395         (__has_c_attribute): New.
2397 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
2399         * builtin-types.def (BT_FN_PTR_SIZE_SIZE_PTRMODE): New function type.
2400         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): Move earlier.
2401         (BUILT_IN_GOMP_ALLOC, BUILT_IN_GOMP_FREE): New builtins.
2402         * gimplify.c (gimplify_scan_omp_clauses): Force allocator into a
2403         decl if it is not NULL, INTEGER_CST or decl.
2404         (gimplify_adjust_omp_clauses): Clear GOVD_EXPLICIT on explicit clauses
2405         which are being removed.  Remove allocate clauses for variables not seen
2406         if they are private, firstprivate or linear too.  Call
2407         omp_notice_variable on the allocator otherwise.
2408         (gimplify_omp_for): Handle iterator vars mentioned in allocate clauses
2409         similarly to non-is_gimple_reg iterators.
2410         * omp-low.c (struct omp_context): Add allocate_map field.
2411         (delete_omp_context): Delete it.
2412         (scan_sharing_clauses): Fill it from allocate clauses.  Remove it
2413         if mentioned also in shared clause.
2414         (lower_private_allocate): New function.
2415         (lower_rec_input_clauses): Handle allocate clause for privatized
2416         variables, except for task/taskloop, C/C++ array reductions for now
2417         and task/inscan variables.
2418         (lower_send_shared_vars): Don't consider variables in allocate_map
2419         as shared.
2420         * omp-expand.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
2421         expand_omp_for_static_chunk): Use expand_omp_build_assign instead of
2422         gimple_build_assign + gsi_insert_after.
2423         * builtins.c (builtin_fnspec): Handle BUILTIN_GOMP_ALLOC and
2424         BUILTIN_GOMP_FREE.
2425         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILTIN_GOMP_ALLOC.
2426         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
2427         BUILTIN_GOMP_ALLOC.
2428         (mark_all_reaching_defs_necessary_1): Handle BUILTIN_GOMP_ALLOC
2429         and BUILTIN_GOMP_FREE.
2430         (propagate_necessity): Likewise.
2432 2020-11-12  Martin Jambor  <mjambor@suse.cz>
2434         * cgraphclones.c (cgraph_node::materialize_clone): Check that clone
2435         info is not NULL before attempting to dump it.
2437 2020-11-12  Martin Jambor  <mjambor@suse.cz>
2439         * ipa-cp.c (class ipcp_value_base): Change the type of
2440         local_time_benefit and prop_time_benefit to sreal.  Adjust the
2441         constructor initializer.
2442         (ipcp_lattice::print): Dump sreals.
2443         (struct caller_statistics): Change the type of freq_sum to sreal.
2444         (gather_caller_stats): Work with sreal freq_sum.
2445         (incorporate_penalties): Work with sreal evaluation.
2446         (good_cloning_opportunity_p): Adjusted for sreal sreal time_benefit
2447         and freq_sum.  Bail out if size_cost is INT_MAX.
2448         (perform_estimation_of_a_value): Work with sreal time_benefit.  Avoid
2449         unnecessary capping.
2450         (estimate_local_effects): Pass sreal time benefit to
2451         good_cloning_opportunity_p without capping it.  Adjust dumping.
2452         (safe_add): If there can be overflow, return INT_MAX.
2453         (propagate_effects): Work with sreal times.
2454         (get_info_about_necessary_edges): Work with sreal frequencies.
2455         (decide_about_value): Likewise and with sreal time benefits.
2457 2020-11-12  Marek Polacek  <polacek@redhat.com>
2459         * system.h (WARN_UNUSED_RESULT): Define for GCC >= 3.4.
2460         * tree.h (maybe_wrap_with_location): Add WARN_UNUSED_RESULT.
2462 2020-11-12  Jan Hubicka  <jh@suse.cz>
2464         * fold-const.c (operand_compare::operand_equal_p): Compare field
2465         offsets in operand_equal_p and OEP_ADDRESS_OF.
2466         (operand_compare::hash_operand): Update.
2468 2020-11-12  Richard Biener  <rguenther@suse.de>
2470         * bitmap.c (bitmap_list_view): Restore head->current.
2471         * tree-ssa-pre.c (pre_expr_DFS): Elide expr_visited bitmap.
2472         Special-case value expression bitmaps with one element.
2473         (bitmap_find_leader): Likewise.
2474         (sorted_array_from_bitmap_set): Elide expr_visited bitmap.
2476 2020-11-12  Jan Hubicka  <jh@suse.cz>
2478         * attr-fnspec.h: Update topleve comment.
2479         (attr_fnspec::arg_direct_p): Accept 1...9.
2480         (attr_fnspec::arg_maybe_written_p): Reject 1...9.
2481         (attr_fnspec::arg_copied_to_arg_p): New member function.
2482         * builtins.c (builtin_fnspec): Update fnspec of block copy.
2483         * tree-ssa-alias.c (attr_fnspec::verify): Update.
2485 2020-11-12  Richard Biener  <rguenther@suse.de>
2487         * tree-ssa-pre.c (bitmap_value_replace_in_set): Return
2488         whether we have changed anything.
2489         (do_pre_regular_insertion): Get topologically sorted array
2490         of expressions from caller.
2491         (do_pre_partial_partial_insertion): Likewise.
2492         (insert): Compute topologically sorted arrays of expressions
2493         here and locally iterate actual insertion.  Iterate only
2494         when AVAIL_OUT of an already visited block source changed.
2496 2020-11-12  Alex Coplan  <alex.coplan@arm.com>
2498         PR target/97730
2499         * config/aarch64/aarch64-sve2.md (@aarch64_sve2_bcax<mode>):
2500         Change to define_expand, add missing (trivially-predicated) not
2501         rtx to fix wrong code bug.
2502         (*aarch64_sve2_bcax<mode>): New.
2504 2020-11-12  Richard Biener  <rguenther@suse.de>
2506         PR tree-optimization/97806
2507         * tree-ssa-pre.c (pre_expr_DFS): New overload for visiting
2508         values, visiting all leaders for a value.  Use a bitmap
2509         for visited values.
2510         (sorted_array_from_bitmap_set): Walk over values and adjust.
2512 2020-11-12  Andreas Krebbel  <krebbel@linux.ibm.com>
2514         PR target/97326
2515         * config/s390/vector.md: Support vector floating point modes in
2516         vec_cmp.
2518 2020-11-12  Andreas Krebbel  <krebbel@linux.ibm.com>
2520         * config/s390/vector.md: Rename tointvec to TOINTVEC.
2521         * config/s390/vx-builtins.md: Likewise.
2523 2020-11-12  Jason Merrill  <jason@redhat.com>
2525         PR debug/97060
2526         * dwarf2out.c (gen_subprogram_die): It's a declaration
2527         if DECL_INITIAL isn't set.
2529 2020-11-12  David Malcolm  <dmalcolm@redhat.com>
2531         PR tree-optimization/97424
2532         * doc/invoke.texi (Static Analyzer Options): Add
2533         -Wno-analyzer-shift-count-negative and
2534         -Wno-analyzer-shift-count-overflow.
2535         (-Wno-analyzer-shift-count-negative): New.
2536         (-Wno-analyzer-shift-count-overflow): New.
2538 2020-11-11  Iain Sandoe  <iain@sandoe.co.uk>
2540         * config/darwin-protos.h (darwin_make_eh_symbol_indirect): New.
2541         * config/darwin.c (darwin_make_eh_symbol_indirect): New. Use
2542         Mach-O semantics for personality and ldsa indirections.
2543         * config/darwin.h (TARGET_ASM_MAKE_EH_SYMBOL_INDIRECT): New.
2544         * doc/tm.texi: Regenerate.
2545         * doc/tm.texi.in: Add TARGET_ASM_MAKE_EH_SYMBOL_INDIRECT hook.
2546         * dwarf2out.c (dwarf2out_do_cfi_startproc): If the target defines
2547         a hook for indirecting personality and ldsa references, use that
2548         otherwise default to ELF semantics.
2549         * target.def (make_eh_symbol_indirect): New target hook.
2551 2020-11-11  Patrick Palka  <ppalka@redhat.com>
2553         PR c++/88115
2554         * common.opt (-fabi-version): Document =15.
2555         * doc/invoke.texi (C++ Dialect Options): Likewise.
2557 2020-11-11  Marek Polacek  <polacek@redhat.com>
2559         PR c++/97518
2560         * tree.c (maybe_wrap_with_location): Don't add a location
2561         wrapper around an artificial and ignored decl.
2563 2020-11-11  Richard Biener  <rguenther@suse.de>
2565         PR tree-optimization/97623
2566         * tree-ssa-pre.c (create_expression_by_pieces): Guard
2567         NEW_SETS access.
2568         (insert_into_preds_of_block): Likewise.
2570 2020-11-11  Richard Biener  <rguenther@suse.de>
2572         * tree-ssa-pre.c (pre_expr_DFS): New function.
2573         (sorted_array_from_bitmap_set): Use it to properly
2574         topologically sort the expression set.
2575         (clean): Verify we've cleaned everything we should.
2577 2020-11-11  Richard Biener  <rguenther@suse.de>
2579         PR tree-optimization/97623
2580         * params.opt (-param=max-pre-hoist-insert-iterations): Remove
2581         again.
2582         * doc/invoke.texi (max-pre-hoist-insert-iterations): Likewise.
2583         * tree-ssa-pre.c (insert): Move hoist insertion after PRE
2584         insertion iteration and do not iterate it.
2586 2020-11-11  Richard Sandiford  <richard.sandiford@arm.com>
2588         * config/aarch64/aarch64-sve.md (@vcond_mask_<mode><vpred>): Extend
2589         from SVE_FULL to SVE_ALL.
2590         (*vcond_mask_<mode><vpred>): Likewise.
2591         (@aarch64_sel_dup<mode>): Likewise.
2592         (vcond<SVE_FULL:mode><v_int_equiv>): Extend to...
2593         (vcond<SVE_ALL:mode><SVE_I:mode>): ...this, but requiring the
2594         sizes of the container modes to match.
2595         (vcondu<SVE_FULL:mode><v_int_equiv>): Extend to...
2596         (vcondu<SVE_ALL:mode><SVE_I:mode>): ...this.
2597         (vec_cmp<SVE_FULL_I:mode><vpred>): Extend to...
2598         (vec_cmp<SVE_I:mode><vpred>): ...this.
2599         (vec_cmpu<SVE_FULL_I:mode><vpred>): Extend to...
2600         (vec_cmpu<SVE_I:mode><vpred>): ...this.
2601         (@aarch64_pred_cmp<cmp_op><SVE_FULL_I:mode>): Extend to...
2602         (@aarch64_pred_cmp<cmp_op><SVE_I:mode>): ...this.
2603         (*cmp<cmp_op><SVE_FULL_I:mode>_cc): Extend to...
2604         (*cmp<cmp_op><SVE_I:mode>_cc): ...this.
2605         (*cmp<cmp_op><SVE_FULL_I:mode>_ptest): Extend to...
2606         (*cmp<cmp_op><SVE_I:mode>_ptest): ...this.
2607         (*cmp<cmp_op><SVE_FULL_I:mode>_and): Extend to...
2608         (*cmp<cmp_op><SVE_I:mode>_and): ...this.
2610 2020-11-11  Richard Sandiford  <richard.sandiford@arm.com>
2612         * optabs-tree.c (expand_vec_cond_expr_p): Allow the compared values
2613         and the selected values to have different mode sizes.
2614         * gimple-isel.cc (gimple_expand_vec_cond_expr): Likewise.
2616 2020-11-11  Hongtao Liu  <hongtao.liu@intel.com>
2617             Hongyu Wang  <hongyu.wang@intel.com>
2619         * common/config/i386/cpuinfo.h (get_available_features):
2620         Detect AVXVNNI.
2621         * common/config/i386/i386-common.c
2622         (OPTION_MASK_ISA2_AVXVNNI_SET,
2623         OPTION_MASK_ISA2_AVXVNNI_UNSET): New.
2624         (OPTION_MASK_ISA2_AVX2_UNSET): Add AVXVNNI.
2625         (ix86_hanlde_option): Handle -mavxvnni, unset avxvnni when
2626         avx2 is disabled.
2627         * common/config/i386/i386-cpuinfo.h (enum processor_features):
2628         Add FEATURE_AVXVNNI.
2629         * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
2630         for avxvnni.
2631         * config.gcc: Add avxvnniintrin.h.
2632         * config/i386/avx512vnnivlintrin.h: Reimplement 128/256 bit non-mask
2633         intrinsics with macros to support unified interface.
2634         * config/i386/avxvnniintrin.h: New header file.
2635         * config/i386/cpuid.h (bit_AVXVNNI): New.
2636         * config/i386/i386-builtins.c (def_builtin): Handle AVXVNNI mask
2637         for unified builtin.
2638         * config/i386/i386-builtin.def (BDESC): Adjust AVX512VNNI
2639         builtins for AVXVNNI.
2640         * config/i386/i386-c.c (ix86_target_macros_internal): Define
2641         __AVXVNNI__.
2642         * config/i386/i386-expand.c (ix86_expand_builtin): Handle bisa
2643         for AVXVNNI to support unified intrinsic name, since there is no
2644         dependency between AVX512VNNI and AVXVNNI.
2645         * config/i386/i386-options.c (isa2_opts): Add -mavxvnni.
2646         (ix86_valid_target_attribute_inner_p): Handle avxnnni.
2647         (ix86_option_override_internal): Ditto.
2648         * config/i386/i386.h (TARGET_AVXVNNI, TARGET_AVXVNNI_P,
2649         TARGET_AVXVNNI_P, PTA_AVXVNNI): New.
2650         (PTA_SAPPHIRERAPIDS): Add AVX_VNNI.
2651         (PTA_ALDERLAKE): Likewise.
2652         * config/i386/i386.md ("isa"): Add avxvnni, avx512vnnivl.
2653         ("enabled"): Adjust for avxvnni and avx512vnnivl.
2654         * config/i386/i386.opt: Add option -mavxvnni.
2655         * config/i386/immintrin.h: Include avxvnniintrin.h.
2656         * config/i386/sse.md (vpdpbusd_<mode>): Adjust for AVXVNNI.
2657         (vpdpbusds_<mode>): Likewise.
2658         (vpdpwssd_<mode>): Likewise.
2659         (vpdpwssds_<mode>): Likewise.
2660         (vpdpbusd_v16si): New.
2661         (vpdpbusds_v16si): Likewise.
2662         (vpdpwssd_v16si): Likewise.
2663         (vpdpwssds_v16si): Likewise.
2664         * doc/invoke.texi: Document -mavxvnni.
2665         * doc/extend.texi: Document avxvnni.
2666         * doc/sourcebuild.texi: Document target avxvnni.
2668 2020-11-11  Martin Liska  <mliska@suse.cz>
2670         * tree.c (copy_node): Fix spelling.
2672 2020-11-11  Richard Biener  <rguenther@suse.de>
2674         * tree-ssa-pre.c (phi_translate_set): Do not sort the
2675         expression set topologically.
2677 2020-11-11  Aldy Hernandez  <aldyh@redhat.com>
2679         * value-range.cc (irange::set): Early exit on VR_VARYING.
2681 2020-11-11  Zhiheng Xie  <xiezhiheng@huawei.com>
2682             Nannan Zheng  <zhengnannan@huawei.com>
2684         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
2685         for arithmetic operation intrinsics.
2687 2020-11-11  Strager Neds  <strager.nds@gmail.com>
2689         * cgraph.h (symtab_node::set_section_for_node): Declare new
2690         overload.
2691         (symtab_node::set_section_from_string): Rename from set_section.
2692         (symtab_node::set_section_from_node): Declare.
2693         * symtab.c (symtab_node::set_section_for_node): Define new
2694         overload.
2695         (symtab_node::set_section_from_string): Rename from set_section.
2696         (symtab_node::set_section_from_node): Define.
2697         (symtab_node::set_section): Call renamed set_section_from_string.
2698         (symtab_node::set_section): Call new set_section_from_node.
2700 2020-11-11  Strager Neds  <strager.nds@gmail.com>
2702         * symtab.c (symtab_node::set_section_for_node): Extract reference
2703         counting logic into ...
2704         (retain_section_hash_entry): ... here (new function) and ...
2705         (release_section_hash_entry): ... here (new function).
2707 2020-11-11  liuhongt  <hongtao.liu@intel.com>
2709         * config/i386/i386.h (PTA_MOVDIRI, PTA_MOVDIR64B,
2710         PTA_AMX_TILE, PTA_AMX_INT8, PTA_AMX_BF16, PTA_HRESET):
2711         Formatting.
2713 2020-11-11  Ilya Leoshkevich  <iii@linux.ibm.com>
2715         * config/s390/s390.h (HAVE_TF): Use opaque value when
2716         GENERATOR_FILE is defined.
2718 2020-11-10  Strager Neds  <strager.nds@gmail.com>
2720         * cgraph.h (symtab_node::get_section): Constify.
2721         (symtab_node::set_section): Declare new overload.
2722         * symtab.c (symtab_node::set_section): Define new overload.
2723         (symtab_node::copy_visibility_from): Use new overload of
2724         symtab_node::set_section.
2725         (symtab_node::resolve_alias): Same.
2726         * tree.h (set_decl_section_name): Declare new overload.
2727         * tree.c (set_decl_section_name): Define new overload.
2728         * tree-emutls.c (get_emutls_init_templ_addr): Same.
2729         * cgraphclones.c (cgraph_node::create_virtual_clone): Use new
2730         overload of symtab_node::set_section.
2731         (cgraph_node::create_version_clone_with_body): Same.
2732         * trans-mem.c (ipa_tm_create_version): Same.
2734 2020-11-10  Aldy Hernandez  <aldyh@redhat.com>
2736         * value-range.cc (irange::set): Early exit for poly ints.
2738 2020-11-10  Tobias Burnus  <tobias@codesourcery.com>
2740         * gimplify.c (gimplify_scan_omp_clauses, gimplify_omp_loop): Use 'do'
2741         instead of 'for' in error messages for Fortran.
2742         * omp-low.c (check_omp_nesting_restrictions): Likewise
2744 2020-11-10  Matthew Malcomson  <matthew.malcomson@arm.com>
2746         * opts.c (control_options_for_live_patching): Reform 'is incompatible
2747         with' error messages to use a standard message with differing format
2748         arguments.
2749         (finish_options): Likewise.
2751 2020-11-10  Richard Biener  <rguenther@suse.de>
2753         PR tree-optimization/97769
2754         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2755         Remove assert.
2757 2020-11-10  Richard Biener  <rguenther@suse.de>
2759         PR tree-optimization/97780
2760         * tree-ssa-pre.c (fini_pre): Deal with added basic blocks
2761         when freeing PHI_TRANS_TABLE.
2763 2020-11-10  Zhiheng Xie  <xiezhiheng@huawei.com>
2764             Nannan Zheng  <zhengnannan@huawei.com>
2766         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
2767         for tbl/tbx intrinsics.
2769 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
2771         * gimplify.c (is_or_contains_p): New static helper function.
2772         (omp_target_reorder_clauses): New function.
2773         (gimplify_scan_omp_clauses): Add use of omp_target_reorder_clauses to
2774         reorder clause list according to OpenMP 5.0 rules. Add handling of
2775         GOMP_MAP_ATTACH_DETACH for OpenMP cases.
2776         * omp-low.c (is_omp_target): New static helper function.
2777         (scan_sharing_clauses): Add scan phase handling of GOMP_MAP_ATTACH/DETACH
2778         for OpenMP cases.
2779         (lower_omp_target): Add lowering handling of GOMP_MAP_ATTACH/DETACH for
2780         OpenMP cases.
2782 2020-11-10  Ilya Leoshkevich  <iii@linux.ibm.com>
2784         * config/s390/s390-modes.def (FPRX2): New mode.
2785         * config/s390/s390-protos.h (s390_fma_allowed_p): New function.
2786         * config/s390/s390.c (s390_fma_allowed_p): Likewise.
2787         (s390_build_signbit_mask): Support 128-bit masks.
2788         (print_operand): Support printing the second word of a TFmode
2789         operand as vector register.
2790         (constant_modes): Add FPRX2mode.
2791         (s390_class_max_nregs): Return 1 for TFmode on z14+.
2792         (s390_is_fpr128): New function.
2793         (s390_is_vr128): Likewise.
2794         (s390_can_change_mode_class): Use s390_is_fpr128 and
2795         s390_is_vr128 in order to determine whether mode refers to a FPR
2796         pair or to a VR.
2797         (s390_emit_compare): Force TFmode operands into registers on
2798         z14+.
2799         * config/s390/s390.h (HAVE_TF): New macro.
2800         (EXPAND_MOVTF): New macro.
2801         (EXPAND_TF): Likewise.
2802         * config/s390/s390.md (PFPO_OP_TYPE_FPRX2): PFPO_OP_TYPE_TF
2803         alias.
2804         (ALL): Add FPRX2.
2805         (FP_ALL): Add FPRX2 for z14+, restrict TFmode to z13-.
2806         (FP): Likewise.
2807         (FP_ANYTF): New mode iterator.
2808         (BFP): Add FPRX2 for z14+, restrict TFmode to z13-.
2809         (TD_TF): Likewise.
2810         (xde): Add FPRX2.
2811         (nBFP): Likewise.
2812         (nDFP): Likewise.
2813         (DSF): Likewise.
2814         (DFDI): Likewise.
2815         (SFSI): Likewise.
2816         (DF): Likewise.
2817         (SF): Likewise.
2818         (fT0): Likewise.
2819         (bt): Likewise.
2820         (_d): Likewise.
2821         (HALF_TMODE): Likewise.
2822         (tf_fpr): New mode_attr.
2823         (type): New mode_attr.
2824         (*cmp<mode>_ccz_0): Use type instead of mode with fsimp.
2825         (*cmp<mode>_ccs_0_fastmath): Likewise.
2826         (*cmptf_ccs): New pattern for wfcxb.
2827         (*cmptf_ccsfps): New pattern for wfkxb.
2828         (mov<mode>): Rename to mov<mode><tf_fpr>.
2829         (signbit<mode>2): Rename to signbit<mode>2<tf_fpr>.
2830         (isinf<mode>2): Renamed to isinf<mode>2<tf_fpr>.
2831         (*TDC_insn_<mode>): Use type instead of mode with fsimp.
2832         (fixuns_trunc<FP:mode><GPR:mode>2): Rename to
2833         fixuns_trunc<FP:mode><GPR:mode>2<FP:tf_fpr>.
2834         (fix_trunctf<mode>2): Rename to fix_trunctf<mode>2_fpr.
2835         (floatdi<mode>2): Rename to floatdi<mode>2<tf_fpr>, use type
2836         instead of mode with itof.
2837         (floatsi<mode>2): Rename to floatsi<mode>2<tf_fpr>, use type
2838         instead of mode with itof.
2839         (*floatuns<GPR:mode><FP:mode>2): Use type instead of mode for
2840         itof.
2841         (floatuns<GPR:mode><FP:mode>2): Rename to
2842         floatuns<GPR:mode><FP:mode>2<tf_fpr>.
2843         (trunctf<mode>2): Rename to trunctf<mode>2_fpr, use type instead
2844         of mode with fsimp.
2845         (extend<DSF:mode><BFP:mode>2): Rename to
2846         extend<DSF:mode><BFP:mode>2<BFP:tf_fpr>.
2847         (<FPINT:fpint_name><BFP:mode>2): Rename to
2848         <FPINT:fpint_name><BFP:mode>2<BFP:tf_fpr>, use type instead of
2849         mode with fsimp.
2850         (rint<BFP:mode>2): Rename to rint<BFP:mode>2<BFP:tf_fpr>, use
2851         type instead of mode with fsimp.
2852         (<FPINT:fpint_name><DFP:mode>2): Use type instead of mode for
2853         fsimp.
2854         (rint<DFP:mode>2): Likewise.
2855         (trunc<BFP:mode><DFP_ALL:mode>2): Rename to
2856         trunc<BFP:mode><DFP_ALL:mode>2<BFP:tf_fpr>.
2857         (trunc<DFP_ALL:mode><BFP:mode>2): Rename to
2858         trunc<DFP_ALL:mode><BFP:mode>2<BFP:tf_fpr>.
2859         (extend<BFP:mode><DFP_ALL:mode>2): Rename to
2860         extend<BFP:mode><DFP_ALL:mode>2<BFP:tf_fpr>.
2861         (extend<DFP_ALL:mode><BFP:mode>2): Rename to
2862         extend<DFP_ALL:mode><BFP:mode>2<BFP:tf_fpr>.
2863         (add<mode>3): Rename to add<mode>3<tf_fpr>, use type instead of
2864         mode with fsimp.
2865         (*add<mode>3_cc): Use type instead of mode with fsimp.
2866         (*add<mode>3_cconly): Likewise.
2867         (sub<mode>3): Rename to sub<mode>3<tf_fpr>, use type instead of
2868         mode with fsimp.
2869         (*sub<mode>3_cc): Use type instead of mode with fsimp.
2870         (*sub<mode>3_cconly): Likewise.
2871         (mul<mode>3): Rename to mul<mode>3<tf_fpr>, use type instead of
2872         mode with fsimp.
2873         (fma<mode>4): Restrict using s390_fma_allowed_p.
2874         (fms<mode>4): Restrict using s390_fma_allowed_p.
2875         (div<mode>3): Rename to div<mode>3<tf_fpr>, use type instead of
2876         mode with fdiv.
2877         (neg<mode>2): Rename to neg<mode>2<tf_fpr>.
2878         (*neg<mode>2_cc): Use type instead of mode with fsimp.
2879         (*neg<mode>2_cconly): Likewise.
2880         (*neg<mode>2_nocc): Likewise.
2881         (*neg<mode>2): Likeiwse.
2882         (abs<mode>2): Rename to abs<mode>2<tf_fpr>, use type instead of
2883         mode with fdiv.
2884         (*abs<mode>2_cc): Use type instead of mode with fsimp.
2885         (*abs<mode>2_cconly): Likewise.
2886         (*abs<mode>2_nocc): Likewise.
2887         (*abs<mode>2): Likewise.
2888         (*negabs<mode>2_cc): Likewise.
2889         (*negabs<mode>2_cconly): Likewise.
2890         (*negabs<mode>2_nocc): Likewise.
2891         (*negabs<mode>2): Likewise.
2892         (sqrt<mode>2): Rename to sqrt<mode>2<tf_fpr>, use type instead
2893         of mode with fsqrt.
2894         (cbranch<mode>4): Use FP_ANYTF instead of FP.
2895         (copysign<mode>3): Rename to copysign<mode>3<tf_fpr>, use type
2896         instead of mode with fsimp.
2897         * config/s390/s390.opt (flag_vx_long_double_fma): New
2898         undocumented option.
2899         * config/s390/vector.md (V_HW): Add TF for z14+.
2900         (V_HW2): Likewise.
2901         (VFT): Likewise.
2902         (VF_HW): Likewise.
2903         (V_128): Likewise.
2904         (tf_vr): New mode_attr.
2905         (tointvec): Add TF.
2906         (mov<mode>): Rename to mov<mode><tf_vr>.
2907         (movetf): New dispatcher.
2908         (*vec_tf_to_v1tf): Rename to *vec_tf_to_v1tf_fpr, restrict to
2909         z13-.
2910         (*vec_tf_to_v1tf_vr): New pattern for z14+.
2911         (*fprx2_to_tf): Likewise.
2912         (*mov_tf_to_fprx2_0): Likewise.
2913         (*mov_tf_to_fprx2_1): Likewise.
2914         (add<mode>3): Rename to add<mode>3<tf_vr>.
2915         (addtf3): New dispatcher.
2916         (sub<mode>3): Rename to sub<mode>3<tf_vr>.
2917         (subtf3): New dispatcher.
2918         (mul<mode>3): Rename to mul<mode>3<tf_vr>.
2919         (multf3): New dispatcher.
2920         (div<mode>3): Rename to div<mode>3<tf_vr>.
2921         (divtf3): New dispatcher.
2922         (sqrt<mode>2): Rename to sqrt<mode>2<tf_vr>.
2923         (sqrttf2): New dispatcher.
2924         (fma<mode>4): Restrict using s390_fma_allowed_p.
2925         (fms<mode>4): Likewise.
2926         (neg_fma<mode>4): Likewise.
2927         (neg_fms<mode>4): Likewise.
2928         (neg<mode>2): Rename to neg<mode>2<tf_vr>.
2929         (negtf2): New dispatcher.
2930         (abs<mode>2): Rename to abs<mode>2<tf_vr>.
2931         (abstf2): New dispatcher.
2932         (float<mode>tf2_vr): New forwarder.
2933         (float<mode>tf2): New dispatcher.
2934         (floatuns<mode>tf2_vr): New forwarder.
2935         (floatuns<mode>tf2): New dispatcher.
2936         (fix_trunctf<mode>2_vr): New forwarder.
2937         (fix_trunctf<mode>2): New dispatcher.
2938         (fixuns_trunctf<mode>2_vr): New forwarder.
2939         (fixuns_trunctf<mode>2): New dispatcher.
2940         (<FPINT:fpint_name><VF_HW:mode>2<VF_HW:tf_vr>): New pattern.
2941         (<FPINT:fpint_name>tf2): New forwarder.
2942         (rint<mode>2<tf_vr>): New pattern.
2943         (rinttf2): New forwarder.
2944         (*trunctfdf2_vr): New pattern.
2945         (trunctfdf2_vr): New forwarder.
2946         (trunctfdf2): New dispatcher.
2947         (trunctfsf2_vr): New forwarder.
2948         (trunctfsf2): New dispatcher.
2949         (extenddftf2_vr): New pattern.
2950         (extenddftf2): New dispatcher.
2951         (extendsftf2_vr): New forwarder.
2952         (extendsftf2): New dispatcher.
2953         (signbittf2_vr): New forwarder.
2954         (signbittf2): New dispatchers.
2955         (isinftf2_vr): New forwarder.
2956         (isinftf2): New dispatcher.
2957         * config/s390/vx-builtins.md (*vftci<mode>_cconly): Use VF_HW
2958         instead of VECF_HW, add missing constraint, add vw support.
2959         (vftci<mode>_intcconly): Use VF_HW instead of VECF_HW.
2960         (*vftci<mode>): Rename to vftci<mode>, use VF_HW instead of
2961         VECF_HW, and vw support.
2962         (vftci<mode>_intcc): Use VF_HW instead of VECF_HW.
2964 2020-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2966         * range-op.cc (operator_logical_not::fold_range): Tidy up.
2967         (operator_logical_not::op1_range): Call above method.
2968         (operator_bitwise_not::fold_range): If the type is compatible
2969         with boolean, call op_logical_not.fold_range.
2970         (operator_bitwise_not::op1_range): If the type is compatible
2971         with boolean, call op_logical_not.op1_range.
2973 2020-11-10  Richard Biener  <rguenther@suse.de>
2975         * tree-ssa-pre.c (pre_expr_d::value_id): Add.
2976         (constant_value_expressions): Turn into an array of pre_expr.
2977         (get_or_alloc_expr_for_nary): New function.
2978         (get_or_alloc_expr_for_reference): Likewise.
2979         (add_to_value): For constant values only ever add a single
2980         CONSTANT.
2981         (get_expr_value_id): Return the new value_id member.
2982         (vn_valnum_from_value_id): Split out and simplify constant
2983         value id handling.
2984         (get_or_alloc_expr_for_constant): Set the value_id member.
2985         (phi_translate_1): Use get_or_alloc_expr_for_*.
2986         (compute_avail): Likewise.
2987         (bitmap_find_leader): Simplify constant value id handling.
2989 2020-11-10  Alex Coplan  <alex.coplan@arm.com>
2991         * doc/md.texi (Modifiers): Fix grammar in description of
2992         earlyclobber constraint modifier.
2994 2020-11-10  Jakub Jelinek  <jakub@redhat.com>
2996         PR tree-optimization/97764
2997         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): For
2998         little-endian stores with negative pd.offset, subtract
2999         BITS_PER_UNIT - amnt from size if amnt is non-zero.
3001 2020-11-10  Richard Biener  <rguenther@suse.de>
3003         PR tree-optimization/97760
3004         * tree-vect-loop.c (check_reduction_path): Reject
3005         reduction paths we do not handle in epilogue generation.
3007 2020-11-10  Aldy Hernandez  <aldyh@redhat.com>
3009         PR tree-optimization/97767
3010         * value-range.cc (dump_bound_with_infinite_markers): Use
3011         wi::min_value and wi::max_value.
3012         (range_tests_strict_enum): New.
3013         (range_tests): Call range_tests_strict_enum.
3014         * value-range.h (irange::varying_p): Use wi::min_value
3015         and wi::max_value.
3016         (irange::set_varying): Same.
3017         (irange::normalize_min_max): Remove comment.
3019 2020-11-10  Andrew MacLeod  <amacleod@redhat.com>
3021         PR tree-optimization/97567
3022         * gimple-range-gori.cc: (gori_compute::logical_combine): False
3023         OR operations should intersect the 2 results.
3024         (gori_compute::compute_logical_operands_in_chain): If def chains
3025         are outside the current basic block, don't follow them.
3027 2020-11-09  Claudiu Zissulescu  <claziss@synopsys.com>
3029         * config/arc/arc.c (arc_split_move): Recognize vadd2 instructions.
3030         * config/arc/arc.md (movdi_insn): Update pattern to use vadd2
3031         instructions.
3032         (movdf_insn): Likewise.
3033         (maddhisi4): New pattern.
3034         (umaddhisi4): Likewise.
3035         * config/arc/simdext.md (mov<mode>_int): Update pattern to use
3036         vadd2.
3037         (sdot_prodv4hi): New pattern.
3038         (udot_prodv4hi): Likewise.
3039         (arc_vec_<V_US>mac_hi_v4hi): Update/renamed to
3040         arc_vec_<V_US>mac_v2hiv2si.
3041         (arc_vec_<V_US>mac_v2hiv2si_zero): New pattern.
3042         * config/arc/constraints.md (Ral): Accumulator register
3043         constraint.
3045 2020-11-09  Aldy Hernandez  <aldyh@redhat.com>
3047         * function-tests.c (test_ranges): Call range_op_tests.
3048         * range-op.cc (build_range3): Move to value-range.cc.
3049         (range3_tests): Same.
3050         (int_range_max_tests): Same.
3051         (multi_precision_range_tests): Same.
3052         (range_tests): Same.
3053         (operator_tests): Split up...
3054         (range_op_tests): Split up...
3055         (range_op_cast_tests): ...here.
3056         (range_op_lshift_tests): ...here.
3057         (range_op_rshift_tests): ...here.
3058         (range_op_bitwise_and_tests): ...here.
3059         * selftest.h (range_op_tests): New.
3060         * value-range.cc (build_range3): New.
3061         (range_tests_irange3): New.
3062         (range_tests_int_range_max): New.
3063         (range_tests_legacy): New.
3064         (range_tests_misc): New.
3065         (range_tests): New.
3067 2020-11-09  Richard Biener  <rguenther@suse.de>
3069         PR tree-optimization/97761
3070         * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Remove
3071         premature end of DFS walk.
3073 2020-11-09  Aldy Hernandez  <aldyh@redhat.com>
3075         * value-range.cc (irange::swap_out_of_order_endpoints): Rewrite
3076         into static function.
3077         (irange::set): Cleanup redundant manipulations.
3078         * value-range.h (irange::normalize_min_max): Modify object
3079         in-place instead of modifying arguments.
3081 2020-11-09  Andrea Corallo  <andrea.corallo@arm.com>
3083         * config/aarch64/aarch64-builtins.c
3084         (aarch64_expand_fcmla_builtin): Do not alter force_reg returned
3085         register.
3087 2020-11-09  Richard Biener  <rguenther@suse.de>
3089         PR tree-optimization/97753
3090         * tree-vect-loop.c (vectorizable_induction): Fill vec_steps
3091         when CSEing inside the group.
3093 2020-11-09  Richard Biener  <rguenther@suse.de>
3095         PR tree-optimization/97746
3096         * tree-vect-patterns.c (vect_determine_precisions): First walk PHIs.
3098 2020-11-09  Richard Biener  <rguenther@suse.de>
3100         * tree-ssa-pre.c (get_representative_for): CSE VN_INFO calls.
3101         (create_expression_by_pieces): Likewise.
3102         (insert_into_preds_of_block): Likewsie.
3103         (do_pre_regular_insertion): Likewsie.
3104         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_insert):
3105         Likewise.
3106         (eliminate_dom_walker::eliminate_stmt): Likewise.
3108 2020-11-09  Richard Biener  <rguenther@suse.de>
3110         PR tree-optimization/97765
3111         * tree-ssa-pre.c (bb_bitmap_sets::phi_translate_table): Add.
3112         (PHI_TRANS_TABLE): New macro.
3113         (phi_translate_table): Remove.
3114         (expr_pred_trans_d::pred): Remove.
3115         (expr_pred_trans_d::hash): Simplify.
3116         (expr_pred_trans_d::equal): Likewise.
3117         (phi_trans_add): Adjust.
3118         (phi_translate): Likewise.  Remove hash-table expansion
3119         detection and optimization.
3120         (phi_translate_set): Allocate PHI_TRANS_TABLE here.
3121         (init_pre): Adjsust.
3122         (fini_pre): Free PHI_TRANS_TABLE.
3124 2020-11-09  Lili Cui  <lili.cui@intel.com>
3126         PR target/97685
3127         * config/i386/i386.h:
3128         (PTA_BROADWELL): Delete PTA_PRFCHW.
3129         (PTA_SILVERMONT): Add PTA_PRFCHW.
3130         (PTA_KNL): Add PTA_PREFETCHWT1.
3131         (PTA_TREMONT): Add PTA_MOVDIRI, PTA_MOVDIR64B, PTA_CLDEMOTE and PTA_WAITPKG.
3132         * doc/invoke.texi: Delete PREFETCHW for broadwell, skylake, knl, knm,
3133         skylake-avx512, cannonlake, icelake-client, icelake-server, cascadelake,
3134         cooperlake, tigerlake and sapphirerapids.
3135         Add PREFETCHW for silvermont, goldmont, goldmont-plus and tremont.
3136         Add XSAVEC and XSAVES for goldmont, goldmont-plus and tremont.
3137         Add MOVDIRI, MOVDIR64B, CLDEMOTE and WAITPKG for tremont.
3138         Add KEYLOCKER and HREST for alderlake.
3139         Add AMX-BF16, AMX-TILE, AMX-INT8 and UINTR for sapphirerapids.
3140         Add KEYLOCKER for tigerlake.
3142 2020-11-09  Kewen Lin  <linkw@linux.ibm.com>
3144         PR rtl-optimization/97705
3145         * ira.c (ira): Refactor some regstat free/init/compute invocation
3146         into lambda function regstat_recompute_for_max_regno, and call it
3147         when max_regno increases as remove_scratches succeeds.
3149 2020-11-08  David Edelsohn  <dje.gcc@gmail.com>
3151         * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Change
3152         DECL_IS_BUILTIN -> DECL_IS_UNDECLARED_BUILTIN.
3154 2020-11-07  Martin Uecker  <muecker@gwdg.de>
3156         * doc/extend.texi: Document mixing labels and code.
3157         * doc/invoke.texi: Likewise.
3159 2020-11-06  Segher Boessenkool  <segher@kernel.crashing.org>
3161         * config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't abuse
3162         operands[].
3163         (@tablejump<mode>_nospec): Ditto.
3165 2020-11-06  Peter Bergner  <bergner@linux.ibm.com>
3167         * config/rs6000/rs6000.h (BIGGEST_ALIGNMENT): Revert previous commit
3168         so as not to break the ABI.
3169         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Set the ABI
3170         mandated alignment for __vector_pair and __vector_quad types.
3172 2020-11-06  Jeff Law  <law@torsion.usersys.redhat.com>
3174         PR target/91489
3175         * config/i386/i386.md (simple_return): Also check
3176         for ms_hook_prologue function attribute.
3177         * config/i386/i386.c (ix86_can_use_return_insn_p):
3178         Also check for ms_hook_prologue function attribute.
3179         * config/i386/i386-protos.h (ix86_function_ms_hook_prologue): Declare.
3181 2020-11-06  Segher Boessenkool  <segher@kernel.crashing.org>
3183         PR target/96933
3184         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
3185         TARGET_POWERPC64 instead of TARGET_64BIT.
3187 2020-11-06  Joseph Myers  <joseph@codesourcery.com>
3189         * builtins.def (BUILT_IN_NANSD32, BUILT_IN_NANSD64)
3190         (BUILT_IN_NANSD128): New built-in functions.
3191         * fold-const-call.c (fold_const_call): Handle the new built-in
3192         functions.
3193         * doc/extend.texi (__builtin_nansd32, __builtin_nansd64)
3194         (__builtin_nansd128): Document.
3195         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3196         fenv_exceptions_dfp.
3198 2020-11-06  Bin Cheng  <bin.cheng@linux.alibaba.com>
3200         * tree-ssa-uninit.c (find_var_cmp_const): New function.
3201         (use_pred_not_overlap_with_undef_path_pred): Call above.
3203 2020-11-06  Iain Sandoe  <iain@sandoe.co.uk>
3205         * config/darwin-c.c: Allow for Darwin20 to correspond to macOS 11.
3206         * config/darwin-driver.c: Likewise.
3208 2020-11-06  Richard Biener  <rguenther@suse.de>
3210         * tree-ssa-pre.c (expr_pred_trans_d): Modify so elements
3211         are embedded rather than allocated.  Remove hashval member,
3212         make all members integers.
3213         (phi_trans_add): Adjust accordingly.
3214         (phi_translate): Likewise.  Deal with re-allocation
3215         of the table.
3217 2020-11-06  Andrew MacLeod  <amacleod@redhat.com>
3219         PR tree-optimization/97737
3220         PR tree-optimization/97741
3221         * gimple-range.cc: (gimple_ranger::range_of_stmt): Intersect newly
3222         calculated ranges with the existing known global range.
3224 2020-11-06  Darius Galis  <darius.galis@cyberthorstudios.com>
3226         * config/rx/rx.md (CTRLREG_PC): Add.
3227         * config/rx/rx.c (CTRLREG_PC): Add
3228         (rx_expand_builtin_mvtc): Add warning: PC register cannot
3229         be used as dest.
3231 2020-11-06  Nathan Sidwell  <nathan@acm.org>
3233         * tree.h (DECL_IS_BUILTIN): Rename to ...
3234         (DECL_IS_UNDECLARED_BUILTIN): ... here.  No need to use SOURCE_LOCUS.
3235         * calls.c (maybe_warn_alloc_args_overflow): Adjust for rename.
3236         * cfgexpand.c (pass_expand::execute): Likewise.
3237         * dwarf2out.c (base_type_die, is_naming_typedef_decl): Likewise.
3238         * godump.c (go_decl, go_type_decl): Likewise.
3239         * print-tree.c (print_decl_identifier): Likewise.
3240         * tree-pretty-print.c (dump_generic_node): Likewise.
3241         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Likewise.
3242         * xcoffout.c (xcoff_assign_fundamental_type_number): Likewise.
3244 2020-11-06  David Candler  <david.candler@arm.com>
3246         * config/aarch64/aarch64-builtins.c
3247         (TYPES_SHIFT2IMM): Add define.
3248         (TYPES_SHIFT2IMM_UUSS): Add define.
3249         (TYPES_USHIFT2IMM): Add define.
3250         * config/aarch64/aarch64-simd.md
3251         (aarch64_<sur>q<r>shr<u>n2_n<mode>): Add new insn for upper saturating shift right.
3252         * config/aarch64/aarch64-simd-builtins.def: Add intrinsics.
3253         * config/aarch64/arm_neon.h:
3254         (vqrshrn_high_n_s16): Expand using intrinsic rather than inline asm.
3255         (vqrshrn_high_n_s32): Likewise.
3256         (vqrshrn_high_n_s64): Likewise.
3257         (vqrshrn_high_n_u16): Likewise.
3258         (vqrshrn_high_n_u32): Likewise.
3259         (vqrshrn_high_n_u64): Likewise.
3260         (vqrshrun_high_n_s16): Likewise.
3261         (vqrshrun_high_n_s32): Likewise.
3262         (vqrshrun_high_n_s64): Likewise.
3263         (vqshrn_high_n_s16): Likewise.
3264         (vqshrn_high_n_s32): Likewise.
3265         (vqshrn_high_n_s64): Likewise.
3266         (vqshrn_high_n_u16): Likewise.
3267         (vqshrn_high_n_u32): Likewise.
3268         (vqshrn_high_n_u64): Likewise.
3269         (vqshrun_high_n_s16): Likewise.
3270         (vqshrun_high_n_s32): Likewise.
3271         (vqshrun_high_n_s64): Likewise.
3273 2020-11-06  Richard Sandiford  <richard.sandiford@arm.com>
3275         * config/aarch64/aarch64-modes.def (VNx2BF, VNx4BF): Adjust nunits
3276         and alignment based on the current VG.
3277         * config/aarch64/iterators.md (SVE_ALL, SVE_24, SVE_2, SVE_4): Add
3278         partial SVE BF modes.
3279         (UNSPEC_REVBHW): New unspec.
3280         (Vetype, Vesize, Vctype, VEL, Vel, vwcore, V_INT_CONTAINER)
3281         (v_int_container, VPRED, vpred): Handle partial SVE BF modes.
3282         (container_bits, Vcwtype): New mode attributes.
3283         * config/aarch64/aarch64-sve.md
3284         (@aarch64_sve_revbhw_<SVE_ALL:mode><PRED_HSD:mode>): New pattern.
3285         (@aarch64_sve_dup_lane<mode>): Extended from SVE_FULL to SVE_ALL.
3286         (@aarch64_sve_rev<mode>, @aarch64_sve_<perm_insn><mode>): Likewise.
3287         (@aarch64_sve_ext<mode>): Likewise.
3288         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle
3289         E_VNx2BFmode and E_VNx4BFmode.
3290         (aarch64_evpc_rev_local): Base the analysis on the container size
3291         instead of the element size.  Use the new aarch64_sve_revbhw
3292         patterns for SVE.
3293         (aarch64_evpc_dup): Handle partial SVE data modes.  Use the
3294         container size instead of the element size when applying the
3295         SVE immediate limit.  Fix a previously incorrect bounds check.
3296         (aarch64_expand_vec_perm_const_1): Handle partial SVE data modes.
3298 2020-11-06  Martin Liska  <mliska@suse.cz>
3300         * common.opt: Add new -fbit-tests option.
3301         * doc/invoke.texi: Document the option.
3302         * tree-switch-conversion.c (bit_test_cluster::find_bit_tests):
3303         Use the option.
3304         * tree-switch-conversion.h (is_enabled): New function.
3306 2020-11-06  Richard Biener  <rguenther@suse.de>
3308         * tree-ssa-sccvn.h (get_max_constant_value_id): Declare.
3309         (get_next_constant_value_id): Likewise.
3310         (value_id_constant_p): Inline and simplify.
3311         * tree-ssa-sccvn.c (constant_value_ids): Remove.
3312         (next_constant_value_id): Add.
3313         (get_or_alloc_constant_value_id): Adjust.
3314         (value_id_constant_p): Remove definition.
3315         (get_max_constant_value_id): Define.
3316         (get_next_value_id): Add assert for overflow.
3317         (get_next_constant_value_id): Define.
3318         (run_rpo_vn): Adjust.
3319         (free_rpo_vn): Likewise.
3320         (do_rpo_vn): Initialize next_constant_value_id.
3321         * tree-ssa-pre.c (constant_value_expressions): New.
3322         (add_to_value): Split into constant/non-constant value
3323         handling.  Avoid exact re-allocation.
3324         (vn_valnum_from_value_id): Adjust.
3325         (phi_translate_1): Remove spurious exact re-allocation.
3326         (bitmap_find_leader): Adjust.  Make sure we return
3327         a CONSTANT value for a constant value id.
3328         (do_pre_regular_insertion): Use 2 auto-elements for avail.
3329         (do_pre_partial_partial_insertion): Likewise.
3330         (init_pre): Allocate constant_value_expressions.
3331         (fini_pre): Release constant_value_expressions.
3333 2020-11-06  Richard Biener  <rguenther@suse.de>
3335         PR tree-optimization/97706
3336         * tree-vect-patterns.c (possible_vector_mask_operation_p):
3337         PHIs are possible mask operations.
3338         (vect_determine_mask_precision): Handle PHIs.
3339         (vect_determine_precisions): Walk PHIs in BB analysis.
3341 2020-11-06  Richard Biener  <rguenther@suse.de>
3343         * tree-vect-slp.c (vect_analyze_slp): Pass down the
3344         SLP graph entry kind.
3345         (vect_analyze_slp_instance): Simplify.
3346         (vect_build_slp_instance): Adjust.
3347         (vect_slp_check_for_constructors): Perform more
3348         eligibility checks here.
3350 2020-11-06  Jan Hubicka  <jh@suse.cz>
3352         * ipa-ref.h (enum ipa_ref_use): Remove GTY marker.
3353         (struct ipa_ref): Remove GTY marker; reorder for better packing.
3354         (struct ipa_ref_list): Remove GTY marker; turn references
3355         nad referring to va_heap, vl_ptr vectors; update accesors.
3356         * cgraph.h (symtab_node::iterate_reference): Update.
3357         * ipa-ref.c (ipa_ref::remove_reference): Update.
3358         * symtab.c (symtab_node::create_reference): Update.
3359         (symtab_node::remove_all_references): Update.
3360         (symtab_node::resolve_alias): Update.
3362 2020-11-06  Jakub Jelinek  <jakub@redhat.com>
3364         * ipa-modref-tree.h: Fix comment typos.
3365         * ipa-modref.c: Likewise.
3367 2020-11-06  Andreas Krebbel  <krebbel@linux.ibm.com>
3369         * config/s390/s390.c (s390_option_override_internal): Remove
3370         override of inline params.
3372 2020-11-06  Richard Biener  <rguenther@suse.de>
3374         PR tree-optimization/97706
3375         * tree-vect-patterns.c (vect_determine_mask_precision):
3376         Remove worklist operation.
3377         (vect_determine_stmt_precisions): Do not call
3378         vect_determine_mask_precision here.
3379         (vect_determine_precisions): Compute mask precision
3380         in a forward walk.
3382 2020-11-06  Richard Biener  <rguenther@suse.de>
3384         PR tree-optimization/97732
3385         * tree-vect-loop.c (vectorizable_induction): Convert the
3386         init elements to the vector component type.
3387         * gimple-fold.c (gimple_build_vector): Use CONSTANT_CLASS_P
3388         rather than TREE_CONSTANT to determine if elements are
3389         eligible for VECTOR_CSTs.
3391 2020-11-06  Jan Hubicka  <jh@suse.cz>
3393         * attr-fnspec.h (attr_fnspec::get_str): New accessor
3394         * ipa-fnsummary.c (read_ipa_call_summary): Store also parm info
3395         for builtins.
3396         * ipa-modref.c (class fnspec_summary): New type.
3397         (class fnspec_summaries_t): New type.
3398         (modref_summary::modref_summary): Initialize writes_errno.
3399         (struct modref_summary_lto): Add writes_errno.
3400         (modref_summary_lto::modref_summary_lto): Initialize writes_errno.
3401         (modref_summary::dump): Check for NULL pointers.
3402         (modref_summary_lto::dump): Dump writes_errno.
3403         (collapse_loads): Move up in source file.
3404         (collapse_stores): New function.
3405         (process_fnspec): Handle also internal calls.
3406         (analyze_call): Likewise.
3407         (analyze_stmt): Store fnspec string if needed.
3408         (analyze_function): Initialize fnspec_sumarries.
3409         (modref_summaries_lto::duplicate): Copy writes_errno.
3410         (modref_write): Store writes_errno and fnspec summaries.
3411         (read_section): Read writes_errno and fnspec summaries.
3412         (modref_read): Initialize fnspec summaries.
3413         (update_signature): Fix formating.
3414         (compute_parm_map): Return true if sucessful.
3415         (get_parm_type): New function.
3416         (get_access_for_fnspec): New function.
3417         (propagate_unknown_call): New function.
3418         (modref_propagate_in_scc): Use it.
3419         (pass_ipa_modref::execute): Delete fnspec_summaries.
3420         (ipa_modref_c_finalize): Delete fnspec_summaries.
3421         * ipa-prop.c: Include attr-fnspec.h.
3422         (ipa_compute_jump_functions_for_bb):  Also compute jump functions
3423         for functions with fnspecs.
3424         (ipa_read_edge_info): Read jump functions for builtins.
3426 2020-11-06  Jan Hubicka  <jh@suse.cz>
3428         * ipa-fnsummary.h (class size_time_entry): Do not GTY annotate.
3429         (class ipa_fnsummary): Turn size_time_table to auto_vec and
3430         call_size_time_table to effecient vec; update constructors.
3431         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Update.
3432         (ipa_fn_summary::~ipa_fn_summary): Update.
3433         (ipa_fn_summary_t::duplicate): Update.
3434         (ipa_dump_fn_summary): Update.
3435         (set_switch_stmt_execution_predicate): Update.
3436         (analyze_function_body): Update.
3437         (estimate_calls_size_and_time): Update.
3438         (ipa_call_context::estimate_size_and_time): Update.
3439         (ipa_merge_fn_summary_after_inlining): Update.
3440         (ipa_update_overall_fn_summary): Update.
3441         (inline_read_section): Update.
3442         (ipa_fn_summary_write): Update.
3444 2020-11-06  Richard Biener  <rguenther@suse.de>
3446         PR tree-optimization/97733
3447         * tree-vect-slp.c (vect_analyze_slp_instance): If less
3448         than two reductions were relevant or live do nothing.
3450 2020-11-06  Jeff Law  <law@redhat.com>
3452         PR tree-optimization/97223
3453         * match.pd (overflow detection and optimization): Handle conversions.
3455 2020-11-06  Eugene Rozenfeld  <erozen@microsoft.com>
3457         * match.pd (x >> x): New pattern.
3459 2020-11-06  Kito Cheng  <kito.cheng@sifive.com>
3461         * common/config/riscv/riscv-common.c (riscv_implied_info):
3462         Add static and const.
3463         (riscv_subset_list::handle_implied_ext): Add const due to
3464         riscv_implied_info changed to const.
3466 2020-11-06  Kito Cheng  <kito.cheng@sifive.com>
3468         PR target/96307
3469         * toplev.c (process_options): Remove param_asan_stack checking for kasan
3470         option checking.
3472 2020-11-05  Marek Polacek  <polacek@redhat.com>
3474         PR c++/97675
3475         * doc/invoke.texi: Document -Wexceptions.
3477 2020-11-05  Marek Polacek  <polacek@redhat.com>
3479         PR c++/25814
3480         * doc/invoke.texi: Document -Wvexing-parse.
3482 2020-11-05  Andrew MacLeod  <amacleod@redhat.com>
3484         PR tree-optimization/97725
3485         * range-op.cc (operator_equal::fold_range): Use new tmp value.
3486         (operator_not_equal::fold_range): Ditto.
3487         * value-query.cc (range_query::value_of_expr): Use int_range_max
3488         not a value_range.
3489         (range_query::value_on_edge): Ditto.
3490         (range_query::value_of_stmt): Ditto.
3492 2020-11-05  Olivier Hainque  <hainque@adacore.com>
3494         * config/aarch64/aarch64-vxworks.h (TARGET_OS_USES_R18):
3495         Remove definition.
3496         (STATIC_CHAIN_REGNUM): Redefine to 9.
3498 2020-11-05  Olivier Hainque  <hainque@adacore.com>
3500         * config/aarch64/aarch64.md: Define PROBE_STACK_FIRST_REGNUM
3501         and PROBE_STACK_SECOND_REGNUM constants, designating r10/r11.
3502         Replacements for the PROBE_STACK_FIRST/SECOND_REG constants in
3503         aarch64.c.
3504         * config/aarch64/aarch64.c (PROBE_STACK_FIRST_REG): Remove.
3505         (PROBE_STACK_SECOND_REG): Remove.
3506         (aarch64_emit_probe_stack_range): Adjust to the _REG -> _REGNUM
3507         suffix update for PROBE_STACK register numbers.
3509 2020-11-05  Jan Hubicka  <jh@suse.cz>
3511         * gimple.c (gimple_call_fnspec): Handle C++ new and delete.
3512         * gimple.h (gimple_call_from_new_or_delete): Constify parameter.
3514 2020-11-05  Aldy Hernandez  <aldyh@redhat.com>
3516         PR tree-optimization/97721
3517         * gimple-range.cc (get_tree_range): Drop overflow from constants.
3519 2020-11-05  David Malcolm  <dmalcolm@redhat.com>
3521         * tree-diagnostic-path.cc (struct path_summary::event_range): Move
3522         out of path_summary to...
3523         (struct event_range): ...here.
3524         (class path_summary): Convert to...
3525         (struct path_summary): ...this.
3526         (path_summary::m_ranges): Drop "private".
3527         (path_summary::print): Convert to...
3528         (print_path_summary_as_text): ...this, passing in the path_summary
3529         explicitly.
3530         (default_tree_diagnostic_path_printer): Update for above change.
3531         (selftest::test_empty_path): Likewise.
3532         (selftest::test_intraprocedural_path): Likewise.
3533         (selftest::test_interprocedural_path_1): Likewise.
3534         (selftest::test_interprocedural_path_2): Likewise.
3535         (selftest::test_recursion): Likewise.
3537 2020-11-05  qing zhao  <qinzhao@gcc.gnu.org>
3539         PR target/97715
3540         * config/i386/i386.c (zero_all_st_registers): Return
3541         earlier when the FPU is disabled.
3543 2020-11-05  Jan Hubicka  <jh@suse.cz>
3545         * ipa-modref.c (parm_map_for_arg): Initialize parm_offset and
3546         parm_offset_knonw.
3547         (read_section): Set writes_errno to false.
3549 2020-11-05  Richard Biener  <rguenther@suse.de>
3551         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
3552         Use the original stmts.
3553         (vect_slp_analyze_node_alignment): Use the pattern stmt.
3554         * tree-vect-slp.c (vect_fixup_store_groups_with_patterns):
3555         New function.
3556         (vect_slp_analyze_bb_1): Call it.
3558 2020-11-05  Tamar Christina  <tamar.christina@arm.com>
3560         * tree-vect-slp.c (vect_slp_tree_permute_noop_p): New.
3561         (vect_optimize_slp): Optimize permutes.
3562         (vectorizable_slp_permutation): Fix typo.
3564 2020-11-05  Richard Biener  <rguenther@suse.de>
3566         PR debug/97718
3567         * dwarf2out.c (add_abstract_origin_attribute): Make sure to
3568         point to the abstract instance.
3570 2020-11-05  Tamar Christina  <tamar.christina@arm.com>
3572         * tree-vect-loop.c (vect_analyze_loop_2): Check kind.
3573         * tree-vect-slp.c (vect_build_slp_instance): New.
3574         (enum slp_instance_kind): Move to...
3575         * tree-vectorizer.h (enum slp_instance_kind): .. Here
3576         (SLP_INSTANCE_KIND): New.
3578 2020-11-05  Kewen Lin  <linkw@linux.ibm.com>
3580         PR target/96933
3581         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use direct move
3582         instructions for vector construction with char/short types.
3583         * config/rs6000/rs6000.md (p8_mtvsrwz_v16qisi2): New define_insn.
3584         (p8_mtvsrd_v16qidi2): Likewise.
3586 2020-11-04  Tamar Christina  <tamar.christina@arm.com>
3588         * tree-vect-slp.c (vect_analyze_slp_instance): Moved load/store lanes
3589         check to ...
3590         * tree-vect-loop.c (vect_analyze_loop_2): ..Here
3592 2020-11-04  Ilya Leoshkevich  <iii@linux.ibm.com>
3594         * config/s390/s390.c (NR_C_MODES): Unhardcode.
3595         (s390_alloc_pool): Use size_t for iterating from 0 to
3596         NR_C_MODES.
3597         (s390_add_constant): Likewise.
3598         (s390_find_constant): Likewise.
3599         (s390_dump_pool): Likewise.
3600         (s390_free_pool): Likewise.
3602 2020-11-04  Ilya Leoshkevich  <iii@linux.ibm.com>
3604         * config/s390/s390.md (RRe): Remove.
3605         (RXe): Remove.
3607 2020-11-04  Andrew MacLeod  <amacleod@redhat.com>
3609         PR tree-optimization/97515
3610         * gimple-range-cache.h (class ranger_cache): New prototypes plus
3611         temporal cache pointer.
3612         * gimple-range-cache.cc (struct range_timestamp): New.
3613         (class temporal_cache): New.
3614         (temporal_cache::temporal_cache): New.
3615         (temporal_cache::~temporal_cache): New.
3616         (temporal_cache::get_timestamp): New.
3617         (temporal_cache::set_dependency): New.
3618         (temporal_cache::temporal_value): New.
3619         (temporal_cache::current_p): New.
3620         (temporal_cache::set_timestamp): New.
3621         (temporal_cache::set_always_current): New.
3622         (ranger_cache::ranger_cache): Allocate the temporal cache.
3623         (ranger_cache::~ranger_cache): Free temporal cache.
3624         (ranger_cache::get_non_stale_global_range): New.
3625         (ranger_cache::set_global_range): Add a timestamp.
3626         (ranger_cache::register_dependency): New.  Add timestamp dependency.
3627         * gimple-range.cc (gimple_ranger::range_of_range_op): Add operand
3628         dependencies.
3629         (gimple_ranger::range_of_phi): Ditto.
3630         (gimple_ranger::range_of_stmt): Check if global range is stale, and
3631         recalculate if so.
3633 2020-11-04  Tobias Burnus  <tobias@codesourcery.com>
3635         * targhooks.c (default_zero_call_used_regs): Fix flag-name typo
3636         in sorry.
3638 2020-11-04  Richard Biener  <rguenther@suse.de>
3640         * tree-vectorizer.h (vectorizable_phi): Adjust prototype.
3641         * tree-vect-stmts.c (vect_transform_stmt): Adjust.
3642         (vect_analyze_stmt): Pass cost_vec to vectorizable_phi.
3643         * tree-vect-loop.c (vectorizable_phi): Do costing.
3645 2020-11-04  Richard Biener  <rguenther@suse.de>
3647         PR tree-optimization/97709
3648         * tree-vect-loop.c (vectorizable_live_operation): Set
3649         SSA_NAME_OCCURS_IN_ABNORMAL_PHI when necessary.
3651 2020-11-04  Jakub Jelinek  <jakub@redhat.com>
3653         PR tree-optimization/97690
3654         * tree-ssa-phiopt.c (conditional_replacement): Also optimize
3655         cond ? pow2p_cst : 0 as ((type) cond) << cst.
3657 2020-11-04  Richard Biener  <rguenther@suse.de>
3659         * tree-vect-loop.c (vectorizable_induction): Re-instantiate
3660         previously removed CSE of SLP IVs.
3662 2020-11-04  Uroš Bizjak  <ubizjak@gmail.com>
3664         * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3665         Fix Intel MCU psABI comment w.r.t DEFAULT_PCC_STRUCT_RETURN.
3667 2020-11-04  Richard Biener  <rguenther@suse.de>
3669         PR bootstrap/97666
3670         * tree-vect-slp.c (vect_build_slp_tree_2): Revert previous
3671         fix and instead adjust the memset.
3673 2020-11-04  Pat Bernardi  <bernardi@adacore.com>
3675         * config/i386/i386elf.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
3676         (ASM_OUTPUT_ASCII): Likewise.
3677         (DEFAULT_PCC_STRUCT_RETURN): Define.
3678         * config/i386/i386.c (ix86_return_in_memory): Remove
3679         SUBTARGET_RETURN_IN_MEMORY.
3681 2020-11-04  liuhongt  <hongtao.liu@intel.com>
3683         PR target/97540
3684         * ira.c: (ira_setup_alts): Extract memory from operand only
3685         for special memory constraint.
3686         * recog.c (asm_operand_ok): Ditto.
3687         * lra-constraints.c (process_alt_operands): MEM_P is
3688         required for normal memory constraint.
3690 2020-11-04  liuhongt  <hongtao.liu@intel.com>
3692         PR target/97532
3693         * lra-constraints.c (valid_address_p): Handle operand of
3694         special memory constraint.
3695         (process_address_1): Ditto.
3697 2020-11-03  Jan Hubicka  <hubicka@ucw.cz>
3699         PR ipa/97695
3700         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Fix ICE with
3701         in dumping code.
3702         (cgraph_node::remove): Save clone info before releasing it and pass it
3703         to unregister.
3704         * cgraph.h (symtab_node::unregister): Add clone_info parameter.
3705         (cgraph_clone::unregister): Likewise.
3706         * cgraphclones.c (cgraph_node::find_replacement): Copy clone info
3707         * symtab-clones.cc (clone_infos_t::duplicate): Remove.
3708         (clone_info::get_create): Simplify.
3709         * symtab.c (symtab_node::unregister): Pass around clone info.
3710         * varpool.c (varpool_node::remove): Update.
3712 2020-11-03  Thomas Schwinge  <thomas@codesourcery.com>
3714         * omp-low.c (scan_omp_for) <OpenACC>: Use proper location to
3715         'inform' of enclosing parent compute construct.
3717 2020-11-03  Jan Hubicka  <hubicka@ucw.cz>
3719         PR ipa/97698
3720         * cgraphclones.c (duplicate_thunk_for_node): Check that info is
3721         non-NULL.
3723 2020-11-03  Uroš Bizjak  <ubizjak@gmail.com>
3725         * config/i386/i386.c (ix86_function_arg_regno_p): Use up to
3726         SSE_REGPARM_MAX registers to pass function parameters
3727         for 32bit Mach-O targets.
3728         * config/i386/i386.h (X86_32_MMX_REGPARM_MAX): New macro.
3729         (MMX_REGPARM_MAX): Use it.
3731 2020-11-03  Dennis Zhang  <dennis.zhang@arm.com>
3733         * config/aarch64/aarch64-simd-builtins.def (vget_lo_half): New entry.
3734         (vget_hi_half): Likewise.
3735         * config/aarch64/aarch64-simd.md (aarch64_vget_lo_halfv8bf): New entry.
3736         (aarch64_vget_hi_halfv8bf): Likewise.
3737         * config/aarch64/arm_neon.h (vget_low_bf16): New intrinsic.
3738         (vget_high_bf16): Likewise.
3740 2020-11-03  Yang Yang  <yangyang305@huawei.com>
3742         * cgraph.h (struct cgraph_simd_clone): Change field "simdlen" of
3743         struct cgraph_simd_clone from unsigned int to poly_uint64.
3744         * config/aarch64/aarch64.c
3745         (aarch64_simd_clone_compute_vecsize_and_simdlen): adaptation of
3746         operations on "simdlen".
3747         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3748         Printf formats update.
3749         * gengtype.c (main): Handle poly_uint64.
3750         * omp-simd-clone.c (simd_clone_mangle): Likewise.Re
3751         (simd_clone_adjust_return_type): Likewise.
3752         (create_tmp_simd_array): Likewise.
3753         (simd_clone_adjust_argument_types): Likewise.
3754         (simd_clone_init_simd_arrays): Likewise.
3755         (ipa_simd_modify_function_body): Likewise.
3756         (simd_clone_adjust): Likewise.
3757         (expand_simd_clones): Likewise.
3758         * poly-int-types.h (vector_unroll_factor): New macro.
3759         * poly-int.h (constant_multiple_p): Add two-argument versions.
3760         * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
3762 2020-11-03  Richard Biener  <rguenther@suse.de>
3764         PR tree-optimization/97623
3765         * params.opt (-param=max-pre-hoist-insert-iterations): New.
3766         * doc/invoke.texi (max-pre-hoist-insert-iterations): Document.
3767         * tree-ssa-pre.c (insert): Do at most max-pre-hoist-insert-iterations
3768         hoist insert iterations.
3770 2020-11-03  Richard Biener  <rguenther@suse.de>
3772         PR middle-end/97579
3773         * gimple-isel.cc (gimple_expand_vec_cond_expr): Use
3774         the correct types for the vcond_mask/vec_cmp optab queries.
3776 2020-11-03  Andrew MacLeod  <amacleod@redhat.com>
3778         * gimple-range-cache.cc (ssa_global_cache::get_global_range): Return
3779         true if there was a previous range set.
3780         (ranger_cache::ranger_cache): Take a gimple_ranger parameter.
3781         (ranger_cache::set_global_range): Propagate the value if updating.
3782         (ranger_cache::propagate_cache): Renamed from iterative_cache_update.
3783         (ranger_cache::propagate_updated_value): New.  Split from:
3784         (ranger_cache::fill_block_cache): Split out value propagator.
3785         * gimple-range-cache.h (ssa_global_cache): Update prototypes.
3786         (ranger_cache): Update prototypes.
3788 2020-11-03  Andrew MacLeod  <amacleod@redhat.com>
3790         * gimple-range-cache.h (block_range_cache): Add new entry point.
3791         (ranger_cache): Privatize global abnd block cache members.
3792         * gimple-range-cache.cc (ssa_block_ranges::set_bb_range): Add bounds
3793         check.
3794         (ssa_block_ranges::set_bb_varying): Ditto.
3795         (ssa_block_ranges::get_bb_range): Ditto.
3796         (ssa_block_ranges::bb_range_p): Ditto.
3797         (block_range_cache::get_block_ranges): Fix formatting.
3798         (block_range_cache::query_block_ranges): New.
3799         (block_range_cache::get_bb_range): Use Query_block_ranges.
3800         (block_range_cache::bb_range_p): Ditto.
3801         (ranger_cache::dump): New.
3802         (ranger_cache::get_global_range): New.
3803         (ranger_cache::set_global_range): New.
3804         * gimple-range.cc (gimple_ranger::range_of_expr): Use new API.
3805         (gimple_ranger::range_of_stmt): Ditto.
3806         (gimple_ranger::export_global_ranges): Ditto.
3807         (gimple_ranger::dump): Ditto.
3809 2020-11-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3811         * fold-const.c (getbyterep): Remove duplicated statement.
3813 2020-11-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3815         PR target/97205
3816         * cfgexpand.c (align_local_variable): Make SSA_NAMEs
3817         at least MODE_ALIGNED.
3818         (expand_one_stack_var_at): Increase MEM_ALIGN for SSA_NAMEs.
3820 2020-11-03  Zhiheng Xie  <xiezhiheng@huawei.com>
3821             Nannan Zheng  <zhengnannan@huawei.com>
3823         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
3824         for AES/SHA/SM3/SM4 intrinsics.
3826 2020-11-03  Zhiheng Xie  <xiezhiheng@huawei.com>
3827             Nannan Zheng  <zhengnannan@huawei.com>
3829         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
3830         for compare intrinsics.
3832 2020-11-03  Richard Biener  <rguenther@suse.de>
3834         * dwarf2out.c (maybe_create_die_with_external_ref): Remove
3835         hashtable entry.
3837 2020-11-03  Andrea Corallo  <andrea.corallo@arm.com>
3839         * config/arm/arm_neon.h (vst2_lane_bf16, vst2q_lane_bf16)
3840         (vst3_lane_bf16, vst3q_lane_bf16, vst4_lane_bf16)
3841         (vst4q_lane_bf16): New intrinsics.
3842         * config/arm/arm_neon_builtins.def: Touch it for:
3843         __builtin_neon_vst2_lanev4bf, __builtin_neon_vst2_lanev8bf,
3844         __builtin_neon_vst3_lanev4bf, __builtin_neon_vst3_lanev8bf,
3845         __builtin_neon_vst4_lanev4bf,__builtin_neon_vst4_lanev8bf.
3847 2020-11-03  Andrea Corallo  <andrea.corallo@arm.com>
3849         * config/arm/arm_neon.h (vld2_lane_bf16, vld2q_lane_bf16)
3850         (vld3_lane_bf16, vld3q_lane_bf16, vld4_lane_bf16)
3851         (vld4q_lane_bf16): Add intrinsics.
3852         * config/arm/arm_neon_builtins.def: Touch for:
3853         __builtin_neon_vld2_lanev4bf, __builtin_neon_vld2_lanev8bf,
3854         __builtin_neon_vld3_lanev4bf, __builtin_neon_vld3_lanev8bf,
3855         __builtin_neon_vld4_lanev4bf, __builtin_neon_vld4_lanev8bf.
3856         * config/arm/iterators.md (VQ_HS): Add V8BF to the iterator.
3858 2020-11-03  Andrea Corallo  <andrea.corallo@arm.com>
3860         * config/arm/arm_neon.h (vst1_bf16, vst1q_bf16): Add intrinsics.
3861         * config/arm/arm_neon_builtins.def : Touch for:
3862         __builtin_neon_vst1v4bf, __builtin_neon_vst1v8bf.
3864 2020-11-03  Andrea Corallo  <andrea.corallo@arm.com>
3866         * config/arm/arm-builtins.c (VAR14): Define macro.
3867         * config/arm/arm_neon_builtins.def: Touch for:
3868         __builtin_neon_vld1v4bf, __builtin_neon_vld1v8bf.
3869         * config/arm/arm_neon.h (vld1_bf16, vld1q_bf16): Add intrinsics.
3871 2020-11-03  Andrea Corallo  <andrea.corallo@arm.com>
3873         * config/arm/arm_neon.h (vst1_lane_bf16, vst1q_lane_bf16): Add
3874         intrinsics.
3875         * config/arm/arm_neon_builtins.def (STORE1LANE): Add v4bf, v8bf.
3877 2020-11-03  Andrea Corallo  <andrea.corallo@arm.com>
3879         * config/arm/arm_neon_builtins.def: Add to LOAD1LANE v4bf, v8bf.
3880         * config/arm/arm_neon.h (vld1_lane_bf16, vld1q_lane_bf16): Add
3881         intrinsics.
3883 2020-11-03  Richard Biener  <rguenther@suse.de>
3885         PR bootstrap/97666
3886         * tree-vect-slp.c (vect_build_slp_tree_2): Scale
3887         allocation of skip_args by sizeof (bool).
3889 2020-11-03  Richard Biener  <rguenther@suse.de>
3891         PR tree-optimization/80928
3892         * tree-vect-loop.c (vectorizable_induction): SLP vectorize
3893         nested inductions.
3895 2020-11-03  Jan Hubicka  <hubicka@ucw.cz>
3897         PR ipa/97578
3898         * ipa-inline-transform.c (maybe_materialize_called_clones): New
3899         function.
3900         (inline_transform): Use it.
3902 2020-11-03  Richard Biener  <rguenther@suse.de>
3904         PR tree-optimization/97678
3905         * tree-vect-slp.c (vect_build_slp_tree_2): Do not track
3906         the initial values of inductions when not nested.
3907         * tree-vect-loop.c (vectorizable_induction): Look at
3908         PHI node initial values again for SLP and not nested
3909         inductions.  Handle LOOP_VINFO_MASK_SKIP_NITERS and cost
3910         invariants.
3912 2020-11-03  Uroš Bizjak  <ubizjak@gmail.com>
3914         * config/i386/sse.md (aes<aeswideklvariant>u8):
3915         Do not use xmm_regs array.  Fix whitespace.
3917 2020-11-03  Uroš Bizjak  <ubizjak@gmail.com>
3919         * config/i386/i386-expand.c (ix86_expand_builtin): Fix comment.
3921 2020-11-03  Thomas Schwinge  <thomas@codesourcery.com>
3923         * omp-low.c (scan_omp_for) <OpenACC>: Move earlier inconsistent
3924         nested 'reduction' clauses checking.
3926 2020-11-03  Thomas Schwinge  <thomas@codesourcery.com>
3928         * omp-low.c (scan_omp_for) <OpenACC>: More precise diagnostics for
3929         'gang', 'worker', 'vector' clauses with arguments only allowed in
3930         'kernels' regions.
3932 2020-11-03  Kewen Lin  <linkw@gcc.gnu.org>
3934         PR tree-optimization/96789
3935         * function.h (struct function): New member unsigned pending_TODOs.
3936         * passes.c (class pass_pre_slp_scalar_cleanup): New class.
3937         (make_pass_pre_slp_scalar_cleanup): New function.
3938         (pass_data_pre_slp_scalar_cleanup): New pass data.
3939         * passes.def: (pass_pre_slp_scalar_cleanup): New pass, add
3940         pass_fre and pass_dse as its children.
3941         * timevar.def (TV_SCALAR_CLEANUP): New timevar.
3942         * tree-pass.h (PENDING_TODO_force_next_scalar_cleanup): New
3943         pending TODO flag.
3944         (make_pass_pre_slp_scalar_cleanup): New declare.
3945         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1):
3946         Once any outermost loop gets unrolled, flag cfun pending_TODOs
3947         PENDING_TODO_force_next_scalar_cleanup on.
3949 2020-11-02  Alan Modra  <amodra@gmail.com>
3951         PR middle-end/97267
3952         * calls.h (maybe_complain_about_tail_call): Declare.
3953         * calls.c (maybe_complain_about_tail_call): Make global.
3954         (can_implement_as_sibling_call_p): Delete reg_parm_stack_space
3955         param.  Adjust caller.  Move REG_PARM_STACK_SPACE check to..
3956         * config/i386/i386.c (ix86_function_ok_for_sibcall): ..here.
3958 2020-11-02  Vladimir N. Makarov  <vmakarov@redhat.com>
3960         * ira.c (ira_remove_scratches): Rename to remove_scratches.  Make
3961         it static and returning flag of any change.
3962         (ira.c): Call ira_expand_reg_equiv in case of removing scratches.
3964 2020-11-02  H.J. Lu  <hjl.tools@gmail.com>
3966         PR target/97140
3967         * config/i386/i386-expand.c (ix86_expand_builtin): Require MMX
3968         for __builtin_ia32_maskmovq.
3970 2020-11-02  Martin Sebor  <msebor@redhat.com>
3972         * doc/invoke.texi (-Wstringop-overflow): Correct default setting.
3973         (-Wstringop-overread): Move past -Wstringop-overflow.
3975 2020-11-02  François-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3977         PR bootstrap/57076
3978         * Makefile.in (gcc-vers.texi): Quote @, { and }.
3980 2020-11-02  Carl Love  <cel@us.ibm.com>
3982         PR target/93449
3983         * config/rs6000/altivec.h (__builtin_bcdadd, __builtin_bcdadd_lt,
3984         __builtin_bcdadd_eq, __builtin_bcdadd_gt, __builtin_bcdadd_ofl,
3985         __builtin_bcdadd_ov, __builtin_bcdsub, __builtin_bcdsub_lt,
3986         __builtin_bcdsub_eq, __builtin_bcdsub_gt, __builtin_bcdsub_ofl,
3987         __builtin_bcdsub_ov, __builtin_bcdinvalid, __builtin_bcdmul10,
3988         __builtin_bcddiv10, __builtin_bcd2dfp, __builtin_bcdcmpeq,
3989         __builtin_bcdcmpgt, __builtin_bcdcmplt, __builtin_bcdcmpge,
3990         __builtin_bcdcmple): Add defines.
3991         * config/rs6000/altivec.md: Add UNSPEC_BCDSHIFT.
3992         (BCD_TEST): Add le, ge to code iterator.
3993         Add VBCD mode iterator.
3994         (bcd<bcd_add_sub>_test, *bcd<bcd_add_sub>_test2,
3995         bcd<bcd_add_sub>_<code>, bcd<bcd_add_sub>_<code>): Add mode to name.
3996         Change iterator from V1TI to VBCD.
3997         (*bcdinvalid_<mode>, bcdshift_v16qi): New define_insn.
3998         (bcdinvalid_<mode>, bcdmul10_v16qi, bcddiv10_v16qi): New define.
3999         * config/rs6000/dfp.md (dfp_denbcd_v16qi_inst): New define_insn.
4000         (dfp_denbcd_v16qi): New define_expand.
4001         * config/rs6000/rs6000-builtin.def (BU_P8V_MISC_1): New define.
4002         (BCDADD): Replaced with BCDADD_V1TI and BCDADD_V16QI.
4003         (BCDADD_LT): Replaced with BCDADD_LT_V1TI and BCDADD_LT_V16QI.
4004         (BCDADD_EQ): Replaced with BCDADD_EQ_V1TI and BCDADD_EQ_V16QI.
4005         (BCDADD_GT): Replaced with BCDADD_GT_V1TI and BCDADD_GT_V16QI.
4006         (BCDADD_OV): Replaced with BCDADD_OV_V1TI and BCDADD_OV_V16QI.
4007         (BCDSUB_V1TI, BCDSUB_V16QI, BCDSUB_LT_V1TI, BCDSUB_LT_V16QI,
4008         BCDSUB_LE_V1TI, BCDSUB_LE_V16QI, BCDSUB_EQ_V1TI, BCDSUB_EQ_V16QI,
4009         BCDSUB_GT_V1TI, BCDSUB_GT_V16QI, BCDSUB_GE_V1TI, BCDSUB_GE_V16QI,
4010         BCDSUB_OV_V1TI, BCDSUB_OV_V16QI, BCDINVALID_V1TI, BCDINVALID_V16QI,
4011         BCDMUL10_V16QI, BCDDIV10_V16QI, DENBCD_V16QI): New builtin definitions.
4012         (BCDADD, BCDADD_LT, BCDADD_EQ, BCDADD_GT, BCDADD_OV, BCDSUB, BCDSUB_LT,
4013         BCDSUB_LE, BCDSUB_EQ, BCDSUB_GT, BCDSUB_GE, BCDSUB_OV, BCDINVALID,
4014         BCDMUL10, BCDDIV10, DENBCD): New overload definitions.
4015         * config/rs6000/rs6000-call.c (P8V_BUILTIN_VEC_BCDADD, P8V_BUILTIN_VEC_BCDADD_LT,
4016         P8V_BUILTIN_VEC_BCDADD_EQ, P8V_BUILTIN_VEC_BCDADD_GT, P8V_BUILTIN_VEC_BCDADD_OV,
4017         P8V_BUILTIN_VEC_BCDINVALID, P9V_BUILTIN_VEC_BCDMUL10, P8V_BUILTIN_VEC_DENBCD.
4018         P8V_BUILTIN_VEC_BCDSUB, P8V_BUILTIN_VEC_BCDSUB_LT, P8V_BUILTIN_VEC_BCDSUB_LE,
4019         P8V_BUILTIN_VEC_BCDSUB_EQ, P8V_BUILTIN_VEC_BCDSUB_GT, P8V_BUILTIN_VEC_BCDSUB_GE,
4020         P8V_BUILTIN_VEC_BCDSUB_OV): New overloaded specifications.
4021         (CODE_FOR_bcdadd): Replaced with CODE_FOR_bcdadd_v16qi and CODE_FOR_bcdadd_v1ti.
4022         (CODE_FOR_bcdadd_lt): Replaced with CODE_FOR_bcdadd_lt_v16qi and CODE_FOR_bcdadd_lt_v1ti.
4023         (CODE_FOR_bcdadd_eq): Replaced with CODE_FOR_bcdadd_eq_v16qi and CODE_FOR_bcdadd_eq_v1ti.
4024         (CODE_FOR_bcdadd_gt): Replaced with CODE_FOR_bcdadd_gt_v16qi and CODE_FOR_bcdadd_gt_v1ti.
4025         (CODE_FOR_bcdsub): Replaced with CODE_FOR_bcdsub_v16qi and CODE_FOR_bcdsub_v1ti.
4026         (CODE_FOR_bcdsub_lt): Replaced with CODE_FOR_bcdsub_lt_v16qi and CODE_FOR_bcdsub_lt_v1ti.
4027         (CODE_FOR_bcdsub_eq): Replaced with CODE_FOR_bcdsub_eq_v16qi and CODE_FOR_bcdsub_eq_v1ti.
4028         (CODE_FOR_bcdsub_gt): Replaced with CODE_FOR_bcdsub_gt_v16qi and CODE_FOR_bcdsub_gt_v1ti.
4029         (rs6000_expand_ternop_builtin):  Add CODE_FOR_dfp_denbcd_v16qi to else if.
4030         * doc/extend.texi: Add documentation for new builtins.
4032 2020-11-02  Nathan Sidwell  <nathan@acm.org>
4034         * tree.c (cache_integer_cst): Fixup pointer caching to match
4035         wide_int_to_type_1's expectations.  Add comment.
4037 2020-11-02  Nathan Sidwell  <nathan@acm.org>
4039         * tree.h (id_equal): Call the symetric predicate with swapped
4040         arguments.
4042 2020-11-02  Nathan Sidwell  <nathan@acm.org>
4044         * print-tree.c (print_node): Display all the operands of a call
4045         expr.
4047 2020-11-02  Vladimir N. Makarov  <vmakarov@redhat.com>
4049         * config/rs6000/vsx.md (*vsx_extract_<mode>_store_p9): Add hint *
4050         to 2nd alternative of the 1st scratch.
4052 2020-11-02  Sudakshina Das  <sudi.das@arm.com>
4054         PR target/97638
4055         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Update
4056         return value on INSN_P check.
4058 2020-11-02  Richard Biener  <rguenther@suse.de>
4060         * tree.h (build_real_from_wide): Declare.
4061         * tree.c (build_real_from_wide): New function.
4062         * tree-vect-slp.c (vect_build_slp_tree_2): Remove
4063         restriction on induction vectorization, represent
4064         the initial value.
4065         * tree-vect-loop.c (vect_model_induction_cost): Inline ...
4066         (vectorizable_induction): ... here.  Rewrite SLP
4067         code generation.
4069 2020-11-02  Martin Jambor  <mjambor@suse.cz>
4071         * dbgcnt.def (ipa_cp_values): New counter.
4072         (ipa_cp_vr): Likewise.
4073         * ipa-cp.c (decide_about_value): Check and bump ipa_cp_values debug
4074         counter.
4075         (decide_whether_version_node): Likewise.
4076         (ipcp_store_vr_results):Check and bump ipa_cp_vr debug counter.
4078 2020-11-02  Christophe Lyon  <christophe.lyon@linaro.org>
4080         * config/arm/arm.c (arm_thumb1_mi_thunk): Build mi_delta in r3 and
4081         do not emit function address and delta when -mpure-code is used.
4083 2020-11-02  Christophe Lyon  <christophe.lyon@linaro.org>
4085         * config/arm/thumb1.md (thumb1_movsi_insn): Call
4086         thumb1_gen_const_int_print.
4087         * config/arm/arm-protos.h (thumb1_gen_const_int_print): Add
4088         prototype.
4089         * config/arm/arm.c (thumb1_gen_const_int_print): New.
4091 2020-11-02  Christophe Lyon  <christophe.lyon@linaro.org>
4093         * config/arm/arm.c (thumb1_const_rtl, thumb1_const_print): New
4094         classes.
4095         (thumb1_gen_const_int): Rename to ...
4096         (thumb1_gen_const_int_1): ... New helper function. Add capability
4097         to emit either RTL or asm, improve generated code.
4098         (thumb1_gen_const_int_rtl): New function.
4099         * config/arm/arm-protos.h (thumb1_gen_const_int): Rename to
4100         thumb1_gen_const_int_rtl.
4101         * config/arm/thumb1.md: Call thumb1_gen_const_int_rtl instead
4102         of thumb1_gen_const_int.
4104 2020-11-02  Richard Biener  <rguenther@suse.de>
4106         PR tree-optimization/97558
4107         * tree-vect-loop.c (vectorizable_reduction): For nested SLP
4108         cycles compute invariant operands vector type.
4110 2020-11-02  Richard Biener  <rguenther@suse.de>
4112         PR tree-optimization/97558
4113         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns):
4114         Check for any mismatch in pattern vs. non-pattern and dissolve
4115         the group if there is one.
4116         * tree-vect-slp.c (vect_analyze_slp_instance): Avoid
4117         analyzing not relevant reductions.
4118         (vect_analyze_slp): Avoid analyzing not relevant reduction
4119         groups.
4121 2020-11-02  Richard Biener  <rguenther@suse.de>
4123         PR tree-optimization/97650
4124         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check
4125         for SSA_NAME before checking SSA_NAME_IS_DEFAULT_DEF.
4127 2020-11-02  Kito Cheng  <kito.cheng@sifive.com>
4129         * common/config/riscv/riscv-common.c
4130         (riscv_subset_list::parse_multiletter_ext): Checking multiletter
4131         extension has more than 1 letter.
4133 2020-11-02  Kito Cheng  <kito.cheng@sifive.com>
4135         * config.gcc (riscv*-*-*): Handle --with-multilib-generator.
4136         * configure: Regen.
4137         * configure.ac: Add --with-multilib-generator.
4138         * config/riscv/multilib-generator: Exit when parsing arch string error.
4139         * config/riscv/t-withmultilib-generator: New.
4140         * doc/install.texi: Document --with-multilib-generator.
4142 2020-11-02  Christophe Lyon  <christophe.lyon@linaro.org>
4144         PR target/96770
4145         * config/arm/arm.c (thumb_legitimate_constant_p): Accept
4146         (symbol_ref + addend) when literal pool is disabled.
4147         (arm_valid_symbolic_address_p): Add support for thumb-1 without
4148         MOVT/MOVW.
4149         * config/arm/thumb1.md (*thumb1_movsi_insn): Accept (symbol_ref +
4150         addend) in the pure-code alternative.
4152 2020-11-02  Christophe Lyon  <christophe.lyon@linaro.org>
4154         PR target/96967
4155         * config/arm/arm.c (thumb_legitimate_constant_p): Add support for
4156         disabled literal pool in thumb-1.
4157         * config/arm/thumb1.md (thumb1_movsi_symbol_ref): Remove.
4158         (*thumb1_movsi_insn): Add support for SYMBOL_REF with -mpure-code.
4160 2020-11-01  Iain Sandoe  <iain@sandoe.co.uk>
4162         * config/host-darwin.c: Align pch_address_space to 16384.
4164 2020-11-01  Pat Bernardi  <bernardi@adacore.com>
4166         * config/i386/i386.c (ix86_expand_prologue): Set the stack usage to 0
4167         for naked functions.
4169 2020-11-01  Iain Buclaw  <ibuclaw@gdcproject.org>
4171         PR ipa/97660
4172         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't call
4173         clone_info::get when cgraph_node::get returns NULL.
4175 2020-10-31  Jan Hubicka  <jh@suse.cz>
4177         * Makefile.in: (OBJS): Add symtab-clones.o
4178         (GTFILES): Add symtab-clones.h
4179         * cgraph.c: Include symtab-clones.h.
4180         (cgraph_edge::resolve_speculation): Fix formating
4181         (cgraph_edge::redirect_call_stmt_to_callee): Update.
4182         (cgraph_update_edges_for_call_stmt): Update
4183         (release_function_body): Fix formating.
4184         (cgraph_node::remove): Fix formating.
4185         (cgraph_node::dump): Fix formating.
4186         (cgraph_node::get_availability): Fix formating.
4187         (cgraph_node::call_for_symbol_thunks_and_aliases): Fix formating.
4188         (set_const_flag_1): Fix formating.
4189         (set_pure_flag_1): Fix formating.
4190         (cgraph_node::can_remove_if_no_direct_calls_p): Fix formating.
4191         (collect_callers_of_node_1): Fix formating.
4192         (clone_of_p): Update.
4193         (cgraph_node::verify_node): Update.
4194         (cgraph_c_finalize): Call clone_info::release ().
4195         * cgraph.h (struct cgraph_clone_info): Move to symtab-clones.h.
4196         (cgraph_node): Remove clone_info.
4197         (symbol_table): Add m_clones.
4198         * cgraphclones.c: Include symtab-clone.h.
4199         (duplicate_thunk_for_node): Update.
4200         (cgraph_node::create_clone): Update.
4201         (cgraph_node::create_virtual_clone): Update.
4202         (cgraph_node::find_replacement): Update.
4203         (cgraph_node::materialize_clone): Update.
4204         * gengtype.c (open_base_files): Include symtab-clones.h.
4205         * ipa-cp.c: Include symtab-clones.h.
4206         (initialize_node_lattices): Update.
4207         (want_remove_some_param_p): Update.
4208         (create_specialized_node): Update.
4209         * ipa-fnsummary.c: Include symtab-clones.h.
4210         (ipa_fn_summary_t::duplicate): Update.
4211         * ipa-modref.c: Include symtab-clones.h.
4212         (update_signature): Update.
4213         * ipa-param-manipulation.c: Include symtab-clones.h.
4214         (ipa_param_body_adjustments::common_initialization): Update.
4215         * ipa-prop.c: Include symtab-clones.h.
4216         (adjust_agg_replacement_values): Update.
4217         (ipcp_get_parm_bits): Update.
4218         (ipcp_update_bits): Update.
4219         (ipcp_update_vr): Update.
4220         * ipa-sra.c: Include symtab-clones.h.
4221         (process_isra_node_results): Update.
4222         (disable_unavailable_parameters): Update.
4223         * lto-cgraph.c: Include symtab-clone.h.
4224         (output_cgraph_opt_summary_p): Update.
4225         (output_node_opt_summary): Update.
4226         (input_node_opt_summary): Update.
4227         * symtab-clones.cc: New file.
4228         * symtab-clones.h: New file.
4229         * tree-inline.c (expand_call_inline): Update.
4230         (update_clone_info): Update.
4231         (tree_function_versioning): Update.
4233 2020-10-31  Jan Hubicka  <jh@suse.cz>
4235         * ipa-modref.c (modref_summary::dump): Dump writes_errno.
4236         (parm_map_for_arg): Break out from ...
4237         (merge_call_side_effects): ... here.
4238         (get_access_for_fnspec): New function.
4239         (process_fnspec): New function.
4240         (analyze_call): Use it.
4241         (analyze_stmt): Update.
4242         (analyze_function): Initialize writes_errno.
4243         (modref_summaries::duplicate): Duplicate writes_errno.
4244         * ipa-modref.h (struct modref_summary): Add writes_errno.
4245         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Check errno.
4247 2020-10-30  Michael Meissner  <meissner@linux.ibm.com>
4249         * config/rs6000/rs6000.c (glibc_supports_ieee_128bit): New helper
4250         function.
4251         (rs6000_option_override_internal): Call it.
4253 2020-10-30  Qing Zhao  <qing.zhao@oracle.com>
4254             H.J.Lu  <hjl.tools@gmail.com>
4256         * common.opt: Add new option -fzero-call-used-regs
4257         * config/i386/i386.c (zero_call_used_regno_p): New function.
4258         (zero_call_used_regno_mode): Likewise.
4259         (zero_all_vector_registers): Likewise.
4260         (zero_all_st_registers): Likewise.
4261         (zero_all_mm_registers): Likewise.
4262         (ix86_zero_call_used_regs): Likewise.
4263         (TARGET_ZERO_CALL_USED_REGS): Define.
4264         * df-scan.c (df_epilogue_uses_p): New function.
4265         (df_get_exit_block_use_set): Replace EPILOGUE_USES with
4266         df_epilogue_uses_p.
4267         * df.h (df_epilogue_uses_p): Declare.
4268         * doc/extend.texi: Document the new zero_call_used_regs attribute.
4269         * doc/invoke.texi: Document the new -fzero-call-used-regs option.
4270         * doc/tm.texi: Regenerate.
4271         * doc/tm.texi.in (TARGET_ZERO_CALL_USED_REGS): New hook.
4272         * emit-rtl.h (struct rtl_data): New field must_be_zero_on_return.
4273         * flag-types.h (namespace zero_regs_flags): New namespace.
4274         * function.c (gen_call_used_regs_seq): New function.
4275         (class pass_zero_call_used_regs): New class.
4276         (pass_zero_call_used_regs::execute): New function.
4277         (make_pass_zero_call_used_regs): New function.
4278         * optabs.c (expand_asm_reg_clobber_mem_blockage): New function.
4279         * optabs.h (expand_asm_reg_clobber_mem_blockage): Declare.
4280         * opts.c (zero_call_used_regs_opts): New structure array
4281         initialization.
4282         (parse_zero_call_used_regs_options): New function.
4283         (common_handle_option): Handle -fzero-call-used-regs.
4284         * opts.h (zero_call_used_regs_opts): New structure array.
4285         * passes.def: Add new pass pass_zero_call_used_regs.
4286         * recog.c (valid_insn_p): New function.
4287         * recog.h (valid_insn_p): Declare.
4288         * resource.c (init_resource_info): Replace EPILOGUE_USES with
4289         df_epilogue_uses_p.
4290         * target.def (zero_call_used_regs): New hook.
4291         * targhooks.c (default_zero_call_used_regs): New function.
4292         * targhooks.h (default_zero_call_used_regs): Declare.
4293         * tree-pass.h (make_pass_zero_call_used_regs): Declare.
4295 2020-10-30  Vladimir N. Makarov  <vmakarov@redhat.com>
4297         * lra.c (get_scratch_reg): New function.
4298         (remove_scratches_1): Rename remove_insn_scratches.  Use
4299         ira_remove_insn_scratches and get_scratch_reg.
4300         (remove_scratches): Do not
4301         initialize scratches, scratch_bitmap, and scratch_operand_bitmap.
4302         (lra): Call ira_restore_scratches instead of restore_scratches.
4303         (struct sloc, sloc_t, scratches, scratch_bitmap)
4304         (scratch_operand_bitmap, lra_former_scratch_p)
4305         (lra_former_scratch_operand_p, lra_register_new_scratch_op)
4306         (restore_scratches): Move them to ...
4307         * ira.c: ... here.
4308         (former_scratch_p, former_scratch_operand_p): Rename to
4309         ira_former_scratch_p and ira_former_scratch_operand_p.
4310         (contains_X_constraint_p): New function.
4311         (register_new_scratch_op): Rename to ira_register_new_scratch_op.
4312         Change it to work for IRA and LRA.
4313         (restore_scratches): Rename to ira_restore_scratches.
4314         (get_scratch_reg, ira_remove_insn_scratches): New functions.
4315         (ira): Call ira_remove_scratches if we use LRA.
4316         * ira.h (ira_former_scratch_p, ira_former_scratch_operand_p): New
4317         prototypes.
4318         (ira_register_new_scratch_op, ira_restore_scratches): New prototypes.
4319         (ira_remove_insn_scratches): New prototype.
4320         * lra-int.h (lra_former_scratch_p, lra_former_scratch_operand_p):
4321         Remove prototypes.
4322         (lra_register_new_scratch_op): Ditto.
4323         * lra-constraints.c: Rename lra_former_scratch_p and
4324         lra_former_scratch_p to ira_former_scratch_p and to
4325         ira_former_scratch_p.
4326         * lra-remat.c: Ditto.
4327         * lra-spills.c: Rename lra_former_scratch_p to ira_former_scratch_p.
4329 2020-10-30  Martin Sebor  <msebor@redhat.com>
4331         PR middle-end/97556
4332         * builtins.c (access_ref::add_offset): Cap offset lower bound
4333         to at most the the upper bound.
4335 2020-10-30  Jan Hubicka  <jh@suse.cz>
4337         PR pch/97593
4338         * cgraph.c (cgraph_node::create_thunk): Register thunk as early during
4339         parsing.
4340         * cgraphunit.c (analyze_functions): Call
4341         thunk_info::process_early_thunks.
4342         * symtab-thunks.cc (struct unprocessed_thunk): New struct.
4343         (thunks): New static variable.
4344         (thunk_info::register_early): New member function.
4345         (thunk_info::process_early_thunks): New member function.
4346         * symtab-thunks.h (thunk_info::register_early): Declare.
4347         (thunk_info::process_early_thunks): Declare.
4349 2020-10-30  Richard Biener  <rguenther@suse.de>
4351         PR tree-optimization/97623
4352         * tree-ssa-pre.c (insert): First do hoist insertion in
4353         a backward walk.
4355 2020-10-30  Richard Biener  <rguenther@suse.de>
4357         PR tree-optimization/97626
4358         * tree-vect-slp.c (vect_slp_analyze_node_operations):
4359         Exchange the lvisited hash-set for a vector, roll back
4360         recursive adds to visited when analysis failed.
4361         (vect_slp_analyze_operations): Likewise.
4363 2020-10-30  Zhiheng Xie  <xiezhiheng@huawei.com>
4364             Nannan Zheng  <zhengnannan@huawei.com>
4366         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
4367         for conversion intrinsics.
4369 2020-10-30  Richard Biener  <rguenther@suse.de>
4371         PR tree-optimization/97633
4372         * tree-vect-slp.c (): Update backedges in single-node cycles.
4373         Optimize processing of externals.
4375 2020-10-30  Alex Coplan  <alex.coplan@arm.com>
4377         PR target/96998
4378         * combine.c (make_extraction): Also handle shifts written as
4379         (mult x 2^n), avoid creating an extract rtx for these.
4380         * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Delete.
4381         (aarch64_classify_index): Remove extract-based address handling.
4382         (aarch64_strip_extend): Likewise.
4383         (aarch64_rtx_arith_op_extract_p): Likewise, remove now-unused parameter.
4384         Update callers...
4385         (aarch64_rtx_costs): ... here.
4387 2020-10-30  Olivier Hainque  <hainque@adacore.com>
4389         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Also
4390         builtin_define __ppc and __ppc__ for VxWorks 7.
4392 2020-10-30  Olivier Hainque  <hainque@adacore.com>
4393             Douglas Rupp  <rupp@adacore.com>
4394             Pat Bernardi  <bernardi@adacore.com>
4396         * config.gcc: Adjust the ix86/x86_64-wrs-vxworks filters
4397         to apply to VxWorks 7 as well.
4398         * config/i386/t-vxworks (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
4399         Remove the fPIC multilib and add one for the large code model
4400         on x86_64.
4401         * config/i386/vxworks.h: Separate sections for TARGET_VXWORKS7,
4402         other variants and common bits.
4403         (TARGET_OS_CPP_BUILTINS): Augment to support a range of CPU
4404         families. Leverage VX_CPU_PREFIX.
4405         (CC1_SPEC): Add definition.
4406         (STACK_CHECK_PROTECT): Use conditional expression instead of
4407         heavier to read conditioned macro definitions.
4409 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
4411         * gimplify.c (gimplify_scan_omp_clauses): Force
4412         OMP_CLAUSE_ALLOCATE_ALLOCATOR into a temporary if it is non-NULL and
4413         non-constant.
4414         (gimplify_omp_for): Only put allocate on inner taskloop if lastprivate
4415         for the same variable is going to be put there, and in that case
4416         if the OMP_CLAUSE_ALLOCATE_ALLOCATOR is non-NULL non-constant, make
4417         the allocator firstprivate on task.
4419 2020-10-30  Michael Meissner  <meissner@linux.ibm.com>
4421         * config/rs6000/rs6000.c (rs6000_option_override_internal): Allow
4422         long double type to be changed for C/C++ if glibc 2.32 or newer.
4423         (rs6000_invalid_binary_op): Update error messages about mixing IBM
4424         long double and IEEE 128-bit.
4426 2020-10-29  Richard Biener  <rguenther@suse.de>
4428         * tree-ssa-pre.c (compute_avail): Free operands consistently.
4429         * tree-vect-loop.c (vectorizable_phi): Make sure all operand
4430         defs vectors are released.
4432 2020-10-29  Jan Hubicka  <jh@suse.cz>
4434         * vec.h (vec<T, va_heap, vl_ptr>::copy): Pass mem stat info.
4436 2020-10-29  Jan Hubicka  <jh@suse.cz>
4438         * wide-int.h (trailing_wide_ints <N>): Turn len to array of structures
4439         so it does not imply typeless storage.
4440         (trailing_wide_ints <N>::operator): update
4441         (trailing_wide_ints <N>::operator []): Update.
4443 2020-10-29  Joseph Myers  <joseph@codesourcery.com>
4445         * ginclude/stdbool.h [__STDC_VERSION__ > 201710L] (true, false):
4446         Define with type _Bool.
4448 2020-10-29  Aldy Hernandez  <aldyh@redhat.com>
4450         PR tree-optimization/97505
4451         * vr-values.c (vr_values::extract_range_basic): Enable
4452         trap again for everything except UBSAN builtins.
4454 2020-10-29  Richard Sandiford  <richard.sandiford@arm.com>
4456         * tree-vectorizer.h (vect_transform_slp_perm_load): Take an
4457         optional extra parameter.
4458         * tree-vect-slp.c (vect_transform_slp_perm_load): Calculate
4459         the number of loads as well as the number of permutes, taking
4460         the counting loop from...
4461         * tree-vect-stmts.c (vect_model_load_cost): ...here.  Use the
4462         value computed by vect_transform_slp_perm_load for ncopies.
4464 2020-10-29  Martin Liska  <mliska@suse.cz>
4466         PR lto/97508
4467         * langhooks.c (lhd_begin_section): Call get_section with
4468         not_existing = true.
4469         * output.h (get_section): Add new argument.
4470         * varasm.c (get_section): Fail when NOT_EXISTING is true
4471         and a section already exists.
4472         * ipa-cp.c (ipcp_write_summary): Remove.
4473         (ipcp_read_summary): Likewise.
4474         * ipa-fnsummary.c (ipa_fn_summary_read): Always read jump
4475         functions summary.
4476         (ipa_fn_summary_write): Always stream it.
4478 2020-10-29  Richard Biener  <rguenther@suse.de>
4480         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Pass
4481         SLP_TREE_VECTYPE to record_stmt_cost.
4483 2020-10-29  Martin Liska  <mliska@suse.cz>
4485         * optc-gen.awk: Check that params start with -param=.
4486         * params.opt: Fix ipa-jump-function-lookups.
4488 2020-10-29  Alexandre Oliva  <oliva@adacore.com>
4490         * tree-ssa-math-opts.c (sincos_stats): Add conv_removed.
4491         (execute_cse_conv_1): New.
4492         (execute_cse_sincos_1): Call it.  Fix return within
4493         FOR_EACH_IMM_USE_STMT.
4494         (pass_cse_sincos::execute): Report conv_inserted.
4496 2020-10-29  Xuepeng Guo  <xuepeng.guo@intel.com>
4497             Hongyu Wang  <hongyu.wang@intel.com>
4498             Hongtao Liu  <hongtao.liu@intel.com>
4500         * common/config/i386/cpuinfo.h (get_available_features):
4501         Detect KL, AESKLE and WIDEKL features.
4502         * common/config/i386/i386-common.c
4503         (OPTION_MASK_ISA_KL_SET): New.
4504         (OPTION_MASK_ISA_WIDEKL_SET): Likewise.
4505         (OPTION_MASK_ISA_KL_UNSET): Likewise.
4506         (OPTION_MASK_ISA_WIDEKL_UNSET): Likewise.
4507         (OPTION_MASK_ISA2_AVX2_UNSET): Likewise.
4508         (OPTION_MASK_ISA2_AVX_UNSET): Likewise.
4509         (OPTION_MASK_ISA2_SSE4_2_UNSET): Likewise.
4510         (OPTION_MASK_ISA2_SSE4_1_UNSET): Likewise.
4511         (OPTION_MASK_ISA2_SSE4_UNSET): Likewise.
4512         (OPTION_MASK_ISA2_SSSE3_UNSET): Likewise.
4513         (OPTION_MASK_ISA2_SSE3_UNSET): Likewise.
4514         (OPTION_MASK_ISA2_SSE2_UNSET): Likewise.
4515         (OPTION_MASK_ISA2_SSE_UNSET): Likewise.
4516         (ix86_handle_option): Handle kl and widekl, add dependency chain
4517         for KL and SSE2.
4518         * common/config/i386/i386-cpuinfo.h (enum processor_features):
4519         (FEATURE_KL, FEATURE_AESKLE, FEATURE_WIDEKL): New.
4520         * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
4521         for KL, AESKLE and WIDEKL.
4522         * config.gcc: Add keylockerintrin.h.
4523         * doc/invoke.texi: Document new option -mkl and -mwidekl.
4524         * doc/extend.texi: Document kl and widekl.
4525         * config/i386/cpuid.h (bit_KL, bit_AESKLE, bit_WIDEKL): New.
4526         * config/i386/i386-builtin-types.def ((UINT, UINT, V2DI, V2DI, PVOID),
4527         (UINT, UINT, V2DI, PVOID), (VOID, V2DI, V2DI, V2DI, UINT),
4528         (UINT8, PV2DI, V2DI, PCVOID), (UINT8, PV2DI, PCV2DI, PCVOID)): New
4529         function types.
4530         * config/i386/i386-builtin.def: Add
4531         __builtin_ia32_loadiwkey,
4532         __builtin_ia32_aesdec128kl_u8,
4533         __builtin_ia32_aesdec256kl_u8,
4534         __builtin_ia32_aesenc128kl_u8,
4535         __builtin_ia32_aesenc256kl_u8,
4536         __builtin_ia32_aesdecwide128kl_u8,
4537         __builtin_ia32_aesdecwide256kl_u8,
4538         __builtin_ia32_aesencwide128kl_u8,
4539         __builtin_ia32_aesencwide256kl_u8,
4540         __builtin_ia32_encodekey128_u32,
4541         __builtin_ia32_encodekey256_u32.
4542         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4543         kl and widekl.
4544         * config/i386/i386-options.c (isa2_opts): Add -mkl and -mwidekl.
4545         (ix86_option_override_internal): Handle KL and WIDEKL.
4546         (ix86_valid_target_attribute_inner_p): Add attribute for kl and widekl.
4547         * config/i386/i386-expand.c
4548         (ix86_expand_builtin): Expand Keylocker Builtins.
4549         * config/i386/i386.h (TARGET_KL): New.
4550         (TARGET_KL_P): Likewise.
4551         (TARGET_WIDEKL): Likewise.
4552         (TARGET_WIDEKL_P): Likewise.
4553         (PTA_KL): Likewise.
4554         (PTA_WIDEKL): Likewise.
4555         (PTA_TIGERLAKE): Add PTA_KL, PTA_WIDEKL.
4556         (PTA_ALDERLAKE): Likewise.
4557         * config/i386/i386.opt: Add new option mkl and mwidekl.
4558         * config/i386/keylockerintrin.h: New header file for Keylocker.
4559         * config/i386/immintrin.h: Include keylockerintrin.h.
4560         * config/i386/predicates.md (encodekey128_operation): New
4561         predicate.
4562         (encodekey256_operation): Likewise.
4563         (aeswidekl_operation): Likewise.
4564         * config/i386/sse.md (UNSPECV_LOADIWKEY): New.
4565         (UNSPECV_AESDEC128KLU8): Likewise.
4566         (UNSPECV_AESENC128KLU8): Likewise.
4567         (UNSPECV_AESDEC256KLU8): Likewise.
4568         (UNSPECV_AESENC256KLU8): Likewise.
4569         (UNSPECV_AESDECWIDE128KLU8): Likewise.
4570         (UNSPECV_AESENCWIDE128KLU8): Likewise.
4571         (UNSPECV_AESDECWIDE256KLU8): Likewise.
4572         (UNSPECV_AESENCWIDE256KLU8): Likewise.
4573         (UNSPECV_ENCODEKEY128U32): Likewise.
4574         (UNSPECV_ENCODEKEY256U32): Likewise.
4575         (encodekey128u32): New expander.
4576         (encodekey256u32): Likewise.
4577         (aes<aeswideklvariant>u8): Likewise.
4578         (loadiwkey): New insn pattern.
4579         (*encodekey128u32): Likewise.
4580         (*encodekey256u32): Likewise.
4581         (aes<aesklvariant>u8): Likewise.
4582         (*aes<aeswideklvariant>u8): Likewise.
4584 2020-10-29  Richard Biener  <rguenther@suse.de>
4586         * tree-vect-slp.c (vect_build_slp_tree_2): Allow splatting
4587         not vectorizable loads.
4588         (vect_build_slp_instance): Amend dumping with address.
4589         (vect_slp_convert_to_external): Likewise.
4591 2020-10-29  Andrew MacLeod  <amacleod@redhat.com>
4593         PR tree-optimization/97609
4594         * gimple-range-cache.cc (non_null_ref::process_name): Call
4595         infer_nonnull_range directly instead of infer_value_range.
4597 2020-10-29  David Malcolm  <dmalcolm@redhat.com>
4599         * Makefile.in (ANALYZER_OBJS): Add analyzer/complexity.o.
4601 2020-10-28  Marek Polacek  <polacek@redhat.com>
4603         PR c++/97573
4604         * doc/invoke.texi: Document -Wdeprecated-enum-enum-conversion
4605         and -Wdeprecated-enum-float-conversion.  -Wenum-conversion is
4606         no longer C/ObjC only.
4608 2020-10-28  Richard Sandiford  <richard.sandiford@arm.com>
4610         PR tree-optimization/97457
4611         * value-range.cc (irange::set): Don't decay POLY_INT_CST ranges
4612         to integer ranges.
4614 2020-10-28  Carl Love  <cel@us.ibm.com>
4616         * config/rs6000/vsx.md(xxgenpcvm_<mode>_internal): Remove TARGET_64BIT.
4618 2020-10-28  Richard Biener  <rguenther@suse.de>
4620         * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Dump
4621         when shared vectype update fails.
4623 2020-10-28  Richard Biener  <rguenther@suse.de>
4625         * tree-vect-slp.c (vect_get_and_check_slp_defs): For skipped
4626         args just push NULLs and vect_uninitialized_def.
4627         (vect_build_slp_tree_2): Allocate skip_args for all ops
4628         and pass it down to vect_get_and_check_slp_defs.
4630 2020-10-28  Richard Biener  <rguenther@suse.de>
4632         PR tree-optimization/97615
4633         * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
4634         an external from pattern defs.
4636 2020-10-28  Richard Biener  <rguenther@suse.de>
4638         * tree-vect-slp.c (vect_optimize_slp): Fix iteration over
4639         all loads.
4641 2020-10-28  Richard Biener  <rguenther@suse.de>
4643         * tree-vect-slp.c (vect_build_slp_instance): Split the store
4644         group at the failure boundary and also re-analyze a large enough
4645         matching rest.
4647 2020-10-28  Richard Biener  <rguenther@suse.de>
4649         * tree-vect-data-refs.c (vect_slp_analyze_node_alignment):
4650         Dump when vect_update_shared_vectype fails.
4652 2020-10-28  Andrea Corallo  <andrea.corallo@arm.com>
4654         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC, __ST3_LANE_FUNC)
4655         (__ST4_LANE_FUNC): Rename the macro generating the 'q' variants
4656         into __ST2Q_LANE_FUNC, __ST2Q_LANE_FUNC, __ST2Q_LANE_FUNC so they
4657         all can be undefed at the and of the file.
4658         (vst2_lane_bf16, vst2q_lane_bf16, vst3_lane_bf16, vst3q_lane_bf16)
4659         (vst4_lane_bf16, vst4q_lane_bf16): Add new intrinsics.
4661 2020-10-28  Andrea Corallo  <andrea.corallo@arm.com>
4663         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC, __LD3_LANE_FUNC)
4664         (__LD4_LANE_FUNC): Rename the macro generating the 'q' variants
4665         into __LD2Q_LANE_FUNC, __LD2Q_LANE_FUNC, __LD2Q_LANE_FUNC so they
4666         all can be undefed at the and of the file.
4667         (vld2_lane_bf16, vld2q_lane_bf16, vld3_lane_bf16, vld3q_lane_bf16)
4668         (vld4_lane_bf16, vld4q_lane_bf16): Add new intrinsics.
4670 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
4672         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ALLOCATE.
4673         * tree.h (OMP_CLAUSE_ALLOCATE_ALLOCATOR,
4674         OMP_CLAUSE_ALLOCATE_COMBINED): Define.
4675         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add allocate
4676         clause.
4677         (walk_tree_1): Handle OMP_CLAUSE_ALLOCATE.
4678         * tree-pretty-print.c (dump_omp_clause): Likewise.
4679         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses,
4680         gimplify_omp_for): Likewise.
4681         * tree-nested.c (convert_nonlocal_omp_clauses,
4682         convert_local_omp_clauses): Likewise.
4683         * omp-low.c (scan_sharing_clauses): Likewise.
4685 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
4687         * omp-offload.c (omp_declare_target_tgt_fn_r): Handle direct calls to
4688         declare variant base functions.
4690 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
4692         PR lto/96680
4693         * lto-streamer.h (omp_lto_output_declare_variant_alt,
4694         omp_lto_input_declare_variant_alt): Declare variant.
4695         * symtab.c (symtab_node::get_partitioning_class): Return
4696         SYMBOL_DUPLICATE for declare_variant_alt nodes.
4697         * passes.c (ipa_write_summaries): Add declare_variant_alt to
4698         partition.
4699         * lto-cgraph.c (output_refs): Call omp_lto_output_declare_variant_alt
4700         on declare_variant_alt nodes.
4701         (input_refs): Call omp_lto_input_declare_variant_alt on
4702         declare_variant_alt nodes.
4703         * lto-streamer-out.c (output_function): Don't call
4704         collect_block_tree_leafs if DECL_INITIAL is error_mark_node.
4705         (lto_output): Call output_function even for declare_variant_alt
4706         nodes.
4707         * omp-general.c (omp_lto_output_declare_variant_alt,
4708         omp_lto_input_declare_variant_alt): New functions.
4710 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
4712         * wide-int.cc (wi::set_bit_large): Call canonize unless setting
4713         msb bit and clearing bits above it.
4715 2020-10-28  Andrew MacLeod  <amacleod@redhat.com>
4717         * gimple-range-gori.cc (gori_compute_cache::cache_stmt): Accumulate
4718         return values and only set cache when everything returned true.
4719         * gimple-range.cc (get_tree_range): Set the return range to UNDEFINED
4720         when the range isn't supported.
4721         (gimple_ranger::calc_stmt): Return varying if the type is supported,
4722         even if the stmt processing failed.  False otherwise.
4723         (range_of_builtin_ubsan_call): Don't use gcc_assert.
4724         (range_of_builtin_call): Ditto.
4725         (gimple_ranger::range_of_cond_expr): Ditto.
4726         (gimple_ranger::range_of_expr): Ditto
4727         (gimple_ranger::range_on_entry): Ditto.
4728         (gimple_ranger::range_on_exit): Ditto.
4729         (gimple_ranger::range_on_edge): DItto.
4730         (gimple_ranger::range_of_stmt): Don't use gcc_assert, and initialize
4731         return value to UNDEFINED.
4733 2020-10-27  Andreas Krebbel  <krebbel@linux.ibm.com>
4735         PR rtl-optimization/97497
4736         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Do not
4737         return true for r12 when -fpic is used.
4739 2020-10-27  Tamar Christina  <tamar.christina@arm.com>
4741         PR target/97535
4742         * config/aarch64/aarch64.c (aarch64_expand_cpymem): Use unsigned
4743         arithmetic in check.
4745 2020-10-27  Andrea Corallo  <andrea.corallo@arm.com>
4747         * config/aarch64/arm_neon.h (vcopy_lane_bf16, vcopyq_lane_bf16)
4748         (vcopyq_laneq_bf16, vcopy_laneq_bf16): New intrinsics.
4750 2020-10-27  Olivier Hainque  <hainque@adacore.com>
4752         * config/vxworks.h (VX_CPU_PREFIX): #define here.
4753         * config/rs6000/vxworks.h: Remove #definition.
4755 2020-10-27  Olivier Hainque  <hainque@adacore.com>
4757         * config/rs6000/vxworks.h (CPP_SPEC): Fix macro definition
4758         for -mcpu=e6500.
4760 2020-10-27  Richard Biener  <rguenther@suse.de>
4762         * tree-vect-slp.c (vect_build_slp_instance): Use ceil_log2
4763         to compute maximum group-size.
4765 2020-10-27  Jan Hubicka  <jh@suse.cz>
4767         PR ipa/97586
4768         * ipa-modref-tree.h (modref_tree::remap_params): New member function.
4769         * ipa-modref.c (modref_summaries_lto::duplicate): Check that
4770         optimization summaries are not duplicated.
4771         (remap_arguments): Remove.
4772         (modref_transform): Rename to ...
4773         (update_signature): ... this one; handle also lto summary.
4774         (pass_ipa_modref::execute): Update signatures here rather
4775         than in transform hook.
4777 2020-10-27  Richard Biener  <rguenther@suse.de>
4779         * tree-vect-slp.c (vect_slp_bbs): Remove no-op
4780         slp-max-insns-in-bb check.
4781         (vect_slp_function): Dump when splitting the function.
4782         Adjust the split condition for control altering stmts.
4783         * params.opt (-param=slp-max-insns-in-bb): Remove.
4784         * doc/invoke.texi (-param=slp-max-insns-in-bb): Likewise.
4786 2020-10-27  Richard Biener  <rguenther@suse.de>
4788         * gimple.h (gimple_expr_type): For PHIs return the type
4789         of the result.
4790         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4791         Make sure edge order into copied loop headers line up with the
4792         originals.
4793         * tree-vect-loop.c (vect_transform_cycle_phi): Handle nested
4794         loops with SLP.
4795         (vectorizable_phi): New function.
4796         (vectorizable_live_operation): For BB vectorization compute insert
4797         location here.
4798         * tree-vect-slp.c (vect_free_slp_tree): Deal with NULL
4799         SLP_TREE_CHILDREN entries.
4800         (vect_create_new_slp_node): Add overloads with pre-existing node
4801         argument.
4802         (vect_print_slp_graph): Likewise.
4803         (vect_mark_slp_stmts): Likewise.
4804         (vect_mark_slp_stmts_relevant): Likewise.
4805         (vect_gather_slp_loads): Likewise.
4806         (vect_optimize_slp): Likewise.
4807         (vect_slp_analyze_node_operations): Likewise.
4808         (vect_bb_slp_scalar_cost): Likewise.
4809         (vect_remove_slp_scalar_calls): Likewise.
4810         (vect_get_and_check_slp_defs): Handle PHIs.
4811         (vect_build_slp_tree_1): Handle PHIs.
4812         (vect_build_slp_tree_2): Continue SLP build, following PHI
4813         arguments.  Fix memory leak.
4814         (vect_build_slp_tree): Put stub node into the hash-map so
4815         we can discover cycles directly.
4816         (vect_build_slp_instance): Set the backedge SLP def for
4817         reduction chains.
4818         (vect_analyze_slp_backedges): Remove.
4819         (vect_analyze_slp): Do not call it.
4820         (vect_slp_convert_to_external): Release SLP_TREE_LOAD_PERMUTATION.
4821         (vect_slp_analyze_node_operations): Handle stray failed
4822         backedge defs by failing.
4823         (vect_slp_build_vertices): Adjust leaf condition.
4824         (vect_bb_slp_mark_live_stmts): Handle PHIs, use visited
4825         hash-set to handle cycles.
4826         (vect_slp_analyze_operations): Adjust.
4827         (vect_bb_partition_graph_r): Likewise.
4828         (vect_slp_function): Adjust split condition to allow CFG
4829         merges.
4830         (vect_schedule_slp_instance): Rename to ...
4831         (vect_schedule_slp_node): ... this.  Move DFS walk to ...
4832         (vect_schedule_scc): ... this new function.
4833         (vect_schedule_slp): Call it.  Remove ad-hoc vectorized
4834         backedge fill code.
4835         * tree-vect-stmts.c (vect_analyze_stmt): Call
4836         vectorizable_phi.
4837         (vect_transform_stmt): Likewise.
4838         (vect_is_simple_use): Handle vect_backedge_def.
4839         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Only
4840         set loop header PHIs to vect_unknown_def_type for loop
4841         vectorization.
4842         * tree-vectorizer.h (enum vect_def_type): Add vect_backedge_def.
4843         (enum stmt_vec_info_type): Add phi_info_type.
4844         (vectorizable_phi): Declare.
4846 2020-10-27  Richard Biener  <rguenther@suse.de>
4848         * tree-vect-slp.c (vect_build_slp_tree_2): When vectorizing
4849         BBs splat uniform operands and stop SLP discovery.
4851 2020-10-27  Iain Buclaw  <ibuclaw@gdcproject.org>
4853         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_D_CRITSEC_SIZE):
4854         Remove.
4855         * config/glibc-d.c (glibc_d_critsec_size): Likewise.
4856         (TARGET_D_CRITSEC_SIZE): Likewise.
4857         * config/i386/linux-common.h (GNU_USER_TARGET_D_CRITSEC_SIZE):
4858         Likewise.
4859         * config/sol2-d.c (solaris_d_critsec_size): Likewise.
4860         (TARGET_D_CRITSEC_SIZE):  Likewise.
4861         * doc/tm.texi.in (TARGET_D_CRITSEC_SIZE): Likewise.
4862         * doc/tm.texi: Regenerate.
4864 2020-10-27  Martin Liska  <mliska@suse.cz>
4866         PR gcov-profile/97461
4867         * gcov-io.h (GCOV_PREALLOCATED_KVP): Pre-allocate 64
4868         static counters.
4870 2020-10-27  Jan Hubicka  <jh@suse.cz>
4872         * tree-ssa-alias.c (attr_fnspec::verify): Re-enabl checking.
4874 2020-10-27  Jan Hubicka  <jh@suse.cz>
4876         * builtin-attrs.def (STRERRNOC): New macro.
4877         (STRERRNOP): New macro.
4878         (ATTR_ERRNOCONST_NOTHROW_LEAF_LIST): New attr list.
4879         (ATTR_ERRNOPURE_NOTHROW_LEAF_LIST): New attr list.
4880         * builtins.def (ATTR_MATHFN_ERRNO): Use
4881         ATTR_ERRNOCONST_NOTHROW_LEAF_LIST.
4882         (ATTR_MATHFN_FPROUNDING_ERRNO): Use ATTR_ERRNOCONST_NOTHROW_LEAF_LIST
4883         or ATTR_ERRNOPURE_NOTHROW_LEAF_LIST.
4885 2020-10-27  Kito Cheng  <kito.cheng@sifive.com>
4887         * common/config/riscv/riscv-common.c (opt_var_ref_t): New.
4888         (riscv_ext_flag_table_t): New.
4889         (riscv_ext_flag_table): New.
4890         (riscv_parse_arch_string): Pass gcc_options* instead of
4891         &opts->x_target_flags only, and using riscv_arch_option_table to
4892         setup flags.
4893         (riscv_handle_option): Update argument for riscv_parse_arch_string.
4894         (riscv_expand_arch): Ditto.
4895         (riscv_expand_arch_from_cpu): Ditto.
4897 2020-10-27  Jan Hubicka  <jh@suse.cz>
4899         * tree-ssa-ccp.c (evaluate_stmt): Use EAF_RETURN_ARG; do not handle
4900         string buitings specially.
4902 2020-10-27  Jan Hubicka  <jh@suse.cz>
4904         * tree.c (set_call_expr_flags): Fix string for ECF_RET1.
4905         (build_common_builtin_nodes): Do not set ECF_RET1 for memcpy, memmove,
4906         and memset. They are handled by builtin_fnspec.
4908 2020-10-27  Jan Hubicka  <jh@suse.cz>
4910         * builtins.c (builtin_fnspec): Add bzero, memcmp, memcmp_eq, bcmp,
4911         strncmp, strncmp_eq, strncasecmp, rindex, strlen, strlnen, strcasecmp,
4912         strcspn, strspn, strcmp, strcmp_eq.
4914 2020-10-27  Richard Biener  <rguenther@suse.de>
4916         * tree-vectorizer.h (slp_tree_pool): Declare.
4917         (_slp_tree::operator new): Likewise.
4918         (_slp_tree::operator delete): Likewise.
4919         * tree-vectorizer.c (vectorize_loops): Allocate and free the
4920         slp_tree_pool.
4921         (pass_slp_vectorize::execute): Likewise.
4922         * tree-vect-slp.c (slp_tree_pool): Define.
4923         (_slp_tree::operator new): Likewise.
4924         (_slp_tree::operator delete): Likewise.
4926 2020-10-27  Martin Liska  <mliska@suse.cz>
4928         * lto-wrapper.c (run_gcc): Do not use sub-make when jobserver is
4929         not detected properly.
4931 2020-10-27  Martin Liska  <mliska@suse.cz>
4933         * symbol-summary.h (call_summary_base): Pass symtab hooks to
4934         base and register (or unregister) hooks directly.
4936 2020-10-27  Martin Liska  <mliska@suse.cz>
4938         * symbol-summary.h (function_summary_base::unregister_hooks):
4939         Call disable_insertion_hook and disable_duplication_hook.
4940         (function_summary_base::symtab_insertion): New field.
4941         (function_summary_base::symtab_removal): Likewise.
4942         (function_summary_base::symtab_duplication): Likewise.
4943         Register hooks in function_summary_base and directly register
4944         (or unregister) hooks.
4946 2020-10-26  Andrew MacLeod  <amacleod@redhat.com>
4948         PR tree-optimization/97567
4949         * gimple-range-gori.cc (gori_compute::logical_combine): Union the
4950         ranges of operand1 and operand2, not intersect.
4952 2020-10-26  Jan Hubicka  <jh@suse.cz>
4954         * attr-fnspec.h: Update toplevel comment.
4955         (attr_fnspec::attr_fnspec): New constructor.
4956         (attr_fnspec::arg_read_p,
4957         attr_fnspec::arg_written_p,
4958         attr_fnspec::arg_access_size_given_by_arg_p,
4959         attr_fnspec::arg_single_access_p
4960         attr_fnspec::loads_known_p
4961         attr_fnspec::stores_known_p,
4962         attr_fnspec::clobbers_errno_p): New member functions.
4963         (gimple_call_fnspec): Declare.
4964         (builtin_fnspec): Declare.
4965         * builtins.c: Include attr-fnspec.h
4966         (builtin_fnspec): New function.
4967         * builtins.def (BUILT_IN_MEMCPY): Do not specify RET1 fnspec.
4968         (BUILT_IN_MEMMOVE): Do not specify RET1 fnspec.
4969         (BUILT_IN_MEMSET): Do not specify RET1 fnspec.
4970         (BUILT_IN_STRCAT): Do not specify RET1 fnspec.
4971         (BUILT_IN_STRCPY): Do not specify RET1 fnspec.
4972         (BUILT_IN_STRNCAT): Do not specify RET1 fnspec.
4973         (BUILT_IN_STRNCPY): Do not specify RET1 fnspec.
4974         (BUILT_IN_MEMCPY_CHK): Do not specify RET1 fnspec.
4975         (BUILT_IN_MEMMOVE_CHK): Do not specify RET1 fnspec.
4976         (BUILT_IN_MEMSET_CHK): Do not specify RET1 fnspec.
4977         (BUILT_IN_STRCAT_CHK): Do not specify RET1 fnspec.
4978         (BUILT_IN_STRCPY_CHK): Do not specify RET1 fnspec.
4979         (BUILT_IN_STRNCAT_CHK): Do not specify RET1 fnspec.
4980         (BUILT_IN_STRNCPY_CHK): Do not specify RET1 fnspec.
4981         * gimple.c (gimple_call_fnspec): Return attr_fnspec.
4982         (gimple_call_arg_flags): Update.
4983         (gimple_call_return_flags): Update.
4984         * tree-ssa-alias.c (check_fnspec): New function.
4985         (ref_maybe_used_by_call_p_1): Use fnspec for builtin handling.
4986         (call_may_clobber_ref_p_1): Likewise.
4987         (attr_fnspec::verify): Update verifier.
4988         * calls.c (decl_fnspec): New function.
4989         (decl_return_flags): Use it.
4991 2020-10-26  Aldy Hernandez  <aldyh@redhat.com>
4993         PR tree-optimization/97555
4994         * range-op.cc (range_tests): Test 1-bit signed invert.
4995         * value-range.cc (subtract_one): Adjust comment.
4996         (add_one): New.
4997         (irange::invert): Call add_one.
4999 2020-10-26  Jan Hubicka  <jh@suse.cz>
5001         * cgraph.h (cgraph_node::optimize_for_size_p): Return
5002         optimize_size_level.
5003         (cgraph_node::optimize_for_size_p): Update.
5004         * coretypes.h (enum optimize_size_level): New enum.
5005         * predict.c (unlikely_executed_edge_p): Microoptimize.
5006         (optimize_function_for_size_p): Return optimize_size_level.
5007         (optimize_bb_for_size_p): Likewise.
5008         (optimize_edge_for_size_p): Likewise.
5009         (optimize_insn_for_size_p): Likewise.
5010         (optimize_loop_nest_for_size_p): Likewise.
5011         * predict.h (optimize_function_for_size_p): Update declaration.
5012         (optimize_bb_for_size_p): Update declaration.
5013         (optimize_edge_for_size_p): Update declaration.
5014         (optimize_insn_for_size_p): Update declaration.
5015         (optimize_loop_for_size_p): Update declaration.
5016         (optimize_loop_nest_for_size_p): Update declaration.
5018 2020-10-26  Richard Biener  <rguenther@suse.de>
5020         * tree-vect-slp.c (enum slp_instance_kind): New.
5021         (vect_build_slp_instance): Split out from...
5022         (vect_analyze_slp_instance): ... this.
5024 2020-10-26  Andrew MacLeod  <amacleod@redhat.com>
5026         * gimple-range.cc (range_of_builtin_call): Initialize zerov to 0.
5028 2020-10-26  Jan Hubicka  <jh@suse.cz>
5030         PR ipa/97576
5031         * cgraphclones.c (cgraph_node::materialize_clone): Clear stmt
5032         references.
5033         * cgraphunit.c (mark_functions_to_output): Do not clear them here.
5034         * ipa-inline-transform.c (inline_transform): Clear stmt references.
5035         * symtab.c (symtab_node::clear_stmts_in_references): Make recursive
5036         for clones.
5037         * tree-ssa-structalias.c (ipa_pta_execute): Do not clear references.
5039 2020-10-26  Zhiheng Xie  <xiezhiheng@huawei.com>
5040             Nannan Zheng  <zhengnannan@huawei.com>
5042         * config/aarch64/aarch64-builtins.c: Add FLAG STORE.
5043         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
5044         for store intrinsics.
5046 2020-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5048         PR tree-optimization/97546
5049         * gimple-ssa-store-merging.c (find_bswap_or_nop): Return NULL if
5050         type is not INTEGER_CST.
5052 2020-10-26  Richard Biener  <rguenther@suse.de>
5054         PR middle-end/97521
5055         * expr.c (const_scalar_mask_from_tree): Remove.
5056         (expand_expr_real_1): Always VIEW_CONVERT integer mode
5057         vector constants to an integer type.
5058         * tree.c (build_truth_vector_type_for_mode): Use a single-bit
5059         boolean component type for non-vector-mode mask_mode.
5061 2020-10-26  H.J. Lu  <hjl.tools@gmail.com>
5063         PR target/95458
5064         * config/i386/i386-expand.c (ix86_expand_cmpstrn_or_cmpmem):
5065         Return false for -mno-inline-all-stringops.
5067 2020-10-26  H.J. Lu  <hjl.tools@gmail.com>
5069         PR target/95151
5070         * config/i386/i386-expand.c (ix86_expand_cmpstrn_or_cmpmem): New
5071         function.
5072         * config/i386/i386-protos.h (ix86_expand_cmpstrn_or_cmpmem): New
5073         prototype.
5074         * config/i386/i386.md (cmpmemsi): New pattern.
5076 2020-10-26  Andreas Krebbel  <krebbel@linux.ibm.com>
5078         * config/s390/vector.md ("vcond_mask_<mode><mode>"): New expander.
5080 2020-10-26  Richard Biener  <rguenther@suse.de>
5082         * sbitmap.c (sbitmap_vector_alloc): Use size_t for byte
5083         quantities to avoid overflow.
5085 2020-10-26  Richard Biener  <rguenther@suse.de>
5087         PR tree-optimization/97539
5088         * tree-vect-loop-manip.c (vect_do_peeling): Reset out-of-loop
5089         debug uses before peeling.
5091 2020-10-26  Jan Hubicka  <hubicka@ucw.cz>
5093         * cgraph.h (struct cgraph_node): Make ipa_transforms_to_apply vl_ptr.
5094         * ipa-inline-analysis.c (initialize_growth_caches): Disable insertion
5095         and duplication hooks.
5096         * ipa-inline-transform.c (clone_inlined_nodes): Clear
5097         ipa_transforms_to_apply.
5098         (save_inline_function_body): Disable insertion hoook for
5099         ipa_saved_clone_sources.
5100         * ipa-prop.c (ipcp_transformation_initialize): Disable insertion hook.
5101         * ipa-prop.h (ipa_node_params_t): Disable insertion hook.
5102         * ipa-reference.c (propagate): Disable insertion hoook.
5103         * ipa-sra.c (ipa_sra_summarize_function): Move out of anonymous
5104         namespace.
5105         (ipa_sra_function_summaries::insert): New virtual function.
5106         * passes.c (execute_one_pass): Do not add transforms to inline clones.
5107         * symbol-summary.h (function_summary_base): Make insert and duplicate
5108         hooks fail instead of silently producing empty summaries; add way to
5109         disable duplication hooks
5110         (call_summary_base): Likewise.
5111         * tree-nested.c (nested_function_info::get_create): Disable insertion
5112         hooks
5113         (maybe_record_nested_function): Likewise.
5115 2020-10-26  Xionghu Luo  <luoxhu@linux.ibm.com>
5117         * cfg.c (debug_bb): New overloaded function.
5118         (debug_bb_n): New overloaded function.
5119         * cfg.h (debug_bb): New declaration.
5120         (debug_bb_n): New declaration.
5121         * print-rtl.c (debug_bb_slim): Call debug_bb with flags.
5123 2020-10-24  H.J. Lu  <hjl.tools@gmail.com>
5125         PR bootstrap/97451
5126         * configure.ac (HAVE_AS_WORKING_DWARF_4_FLAG): Renamed to ...
5127         (HAVE_AS_WORKING_DWARF_N_FLAG): This.  Don't define if there is
5128         an extra assembly input file in debug info.  Replace success
5129         with dwarf4_success in the 32-bit --gdwarf-4 check.
5130         * dwarf2out.c (asm_outputs_debug_line_str): Check
5131         HAVE_AS_WORKING_DWARF_N_FLAG instead of
5132         HAVE_AS_WORKING_DWARF_4_FLAG.
5133         * gcc.c (ASM_DEBUG_SPEC): Likewise.
5134         (ASM_DEBUG_OPTION_SPEC): Likewise.
5135         * config.in: Regenerated.
5136         * configure: Likewise.
5138 2020-10-24  Aldy Hernandez  <aldyh@redhat.com>
5140         PR tree-optimization/97538
5141         * calls.c (get_size_range): Handle undefined ranges.
5143 2020-10-24  Martin Liska  <mliska@suse.cz>
5145         * cgraph.c (cgraph_node::former_thunk_p): Move out of CHECKING_P
5146         macro.
5148 2020-10-24  Alan Modra  <amodra@gmail.com>
5150         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Limit
5151         AND addressing to just lvx/stvx style addresses.
5153 2020-10-24  Alan Modra  <amodra@gmail.com>
5155         * config/rs6000/rs6000.md (cstore<mode>4): Don't call
5156         rs6000_emit_int_cmove for power10 when -mno-isel.
5158 2020-10-23  Jan Hubicka  <hubicka@ucw.cz>
5160         * Makefile.in: Add symtab-thunks.o
5161         (GTFILES): Add symtab-thunks.h and symtab-thunks.cc; remove cgraphunit.c
5162         * cgraph.c: Include symtab-thunks.h.
5163         (cgraph_node::create_thunk): Update
5164         (symbol_table::create_edge): Update
5165         (cgraph_node::dump): Update
5166         (cgraph_node::call_for_symbol_thunks_and_aliases): Update
5167         (set_nothrow_flag_1): Update
5168         (set_malloc_flag_1): Update
5169         (set_const_flag_1): Update
5170         (collect_callers_of_node_1): Update
5171         (clone_of_p): Update
5172         (cgraph_node::verify_node): Update
5173         (cgraph_node::function_symbol): Update
5174         (cgraph_c_finalize): Call thunk_info::release.
5175         (cgraph_node::has_thunk_p): Update
5176         (cgraph_node::former_thunk_p): Move here from cgraph.h; reimplement.
5177         * cgraph.h (struct cgraph_thunk_info): Rename to symtab-thunks.h.
5178         (cgraph_node): Remove thunk field; add thunk bitfield.
5179         (cgraph_node::expand_thunk): Move to symtab-thunks.h
5180         (symtab_thunks_cc_finalize): Declare.
5181         (cgraph_node::has_gimple_body_p): Update.
5182         (cgraph_node::former_thunk_p): Update.
5183         * cgraphclones.c: Include symtab-thunks.h.
5184         (duplicate_thunk_for_node): Update.
5185         (cgraph_edge::redirect_callee_duplicating_thunks): Update.
5186         (cgraph_node::expand_all_artificial_thunks): Update.
5187         (cgraph_node::create_edge_including_clones): Update.
5188         * cgraphunit.c: Include symtab-thunks.h.
5189         (vtable_entry_type): Move to symtab-thunks.c.
5190         (cgraph_node::analyze): Update.
5191         (analyze_functions): Update.
5192         (mark_functions_to_output): Update.
5193         (thunk_adjust): Move to symtab-thunks.c
5194         (cgraph_node::expand_thunk): Move to symtab-thunks.c
5195         (cgraph_node::assemble_thunks_and_aliases): Update.
5196         (output_in_order): Update.
5197         (cgraphunit_c_finalize): Do not clear vtable_entry_type.
5198         (cgraph_node::create_wrapper): Update.
5199         * gengtype.c (open_base_files): Add symtab-thunks.h
5200         * ipa-comdats.c (propagate_comdat_group): UPdate.
5201         (ipa_comdats): Update.
5202         * ipa-cp.c (determine_versionability): UPdate.
5203         (gather_caller_stats): Update.
5204         (count_callers): Update
5205         (set_single_call_flag): Update
5206         (initialize_node_lattices): Update
5207         (call_passes_through_thunk_p): Update
5208         (call_passes_through_thunk): Update
5209         (propagate_constants_across_call): Update
5210         (find_more_scalar_values_for_callers_subset): Update
5211         (has_undead_caller_from_outside_scc_p): Update
5212         * ipa-fnsummary.c (evaluate_properties_for_edge): Update.
5213         (compute_fn_summary): Update.
5214         (inline_analyze_function): Update.
5215         * ipa-icf.c: Include symtab-thunks.h.
5216         (sem_function::equals_wpa): Update.
5217         (redirect_all_callers): Update.
5218         (sem_function::init): Update.
5219         (sem_function::parse): Update.
5220         * ipa-inline-transform.c: Include symtab-thunks.h.
5221         (inline_call): Update.
5222         (save_inline_function_body): Update.
5223         (preserve_function_body_p): Update.
5224         * ipa-inline.c (inline_small_functions): Update.
5225         * ipa-polymorphic-call.c: Include alloc-pool.h, symbol-summary.h,
5226         symtab-thunks.h
5227         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Update.
5228         * ipa-pure-const.c: Include symtab-thunks.h.
5229         (analyze_function): Update.
5230         * ipa-sra.c (check_for_caller_issues): Update.
5231         * ipa-utils.c (ipa_reverse_postorder): Update.
5232         (ipa_merge_profiles): Update.
5233         * ipa-visibility.c (non_local_p): Update.
5234         (cgraph_node::local_p): Update.
5235         (function_and_variable_visibility): Update.
5236         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
5237         * lto-cgraph.c: Include alloc-pool.h, symbol-summary.h and
5238         symtab-thunks.h
5239         (lto_output_edge): Update.
5240         (lto_output_node): Update.
5241         (compute_ltrans_boundary): Update.
5242         (output_symtab): Update.
5243         (verify_node_partition): Update.
5244         (input_overwrite_node): Update.
5245         (input_node): Update.
5246         * lto-streamer-in.c (fixup_call_stmt_edges): Update.
5247         * symtab-thunks.cc: New file.
5248         * symtab-thunks.h: New file.
5249         * toplev.c (toplev::finalize): Call symtab_thunks_cc_finalize.
5250         * trans-mem.c (ipa_tm_mayenterirr_function): Update.
5251         (ipa_tm_execute): Update.
5252         * tree-inline.c (expand_call_inline): Update.
5253         * tree-nested.c (create_nesting_tree): Update.
5254         (convert_all_function_calls): Update.
5255         (gimplify_all_functions): Update.
5256         * tree-profile.c (tree_profiling): Update.
5257         * tree-ssa-structalias.c (associate_varinfo_to_alias): Update.
5258         * tree.c (free_lang_data_in_decl): Update.
5259         * value-prof.c (init_node_map): Update.
5261 2020-10-23  Marek Polacek  <polacek@redhat.com>
5263         PR c++/91741
5264         * doc/invoke.texi: Document -Wsizeof-array-div.
5266 2020-10-23  Martin Sebor  <msebor@redhat.com>
5268         PR middle-end/97552
5269         * attribs.c (init_attr_rdwr_indices): Handle static VLA parameters.
5271 2020-10-23  Douglas Rupp  <rupp@adacore.com>
5273         * config/vxworks.h (VXWORKS_NET_LIBS_RTP): Use -lrtnet if
5274         rtnetStackLib.h is available,fallback to -lnet otherwise.
5276 2020-10-23  Douglas Rupp  <rupp@adacore.com>
5278         * gcc.c (if-exists-then-else): New built-in spec function.
5279         * doc/invoke.texi: Document it.
5281 2020-10-23  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
5283         * doc/extend.texi (PowerPC Built-in Functions): Replace
5284         extraneous characters with whitespace.
5286 2020-10-23  Martin Liska  <mliska@suse.cz>
5288         * gcov.c (read_count_file): Never call gcov_sync with a negative
5289         value.
5291 2020-10-23  Jakub Jelinek  <jakub@redhat.com>
5293         * Makefile.in (PLUGIN_HEADERS): Add gomp-constants.h and $(EXPR_H).
5294         (s-header-vars): Accept not just spaces but also tabs between *_H name
5295         and =.  Handle common/config/ headers similarly to config.  Don't
5296         throw away everything from first ... to last / on the remaining
5297         string, instead skip just ... to corresponding last / without
5298         intervening spaces and tabs.
5299         (install-plugin): Treat common/config headers like config headers.
5300         * config/i386/t-i386 (TM_H): Add
5301         $(srcdir)/common/config/i386/i386-cpuinfo.h.
5303 2020-10-23  Jakub Jelinek  <jakub@redhat.com>
5305         PR tree-optimization/97164
5306         * stor-layout.c (layout_type): Also reject arrays where element size
5307         is constant, but not a multiple of element alignment.
5309 2020-10-23  Eric Botcazou  <ebotcazou@adacore.com>
5311         * tree-ssa-loop-ivopts.c (analyze_and_mark_doloop_use): Bail out if
5312         the loop is subject to a pragma Unroll with no specific count.
5314 2020-10-23  Dennis Zhang  <dennis.zhang@arm.com>
5316         * config/arm/mve.md (mve_vsubq<mode>): New entry for vsub instruction
5317         using expression 'minus'.
5318         (mve_vsubq_f<mode>): Use minus instead of VSUBQ_F unspec.
5319         * config/arm/neon.md (sub<mode>3, sub<mode>3_fp16): Removed.
5320         (neon_vsub<mode>): Use gen_sub<mode>3 instead of gen_sub<mode>3_fp16.
5321         * config/arm/vec-common.md (sub<mode>3): Use the new mode macros
5322         ARM_HAVE_<MODE>_ARITH. Use iterator VDQ instead of VALL.
5324 2020-10-23  Martin Liska  <mliska@suse.cz>
5326         PR lto/97524
5327         * lto-wrapper.c (make_exists): New function.
5328         (run_gcc): Use it to check that make is present and working
5329         for parallel execution.
5331 2020-10-23  Richard Biener  <rguenther@suse.de>
5333         Revert:
5334         2020-10-22  Richard Biener  <rguenther@suse.de>
5336         PR middle-end/97521
5337         * expr.c (expand_expr_real_1): Be more careful when
5338         expanding a VECTOR_BOOLEAN_TYPE_P VECTOR_CSTs.
5340 2020-10-23  Kewen Lin  <linkw@linux.ibm.com>
5342         * tree-vect-loop.c (vect_transform_loop): Remove the redundant
5343         LOOP_VINFO_FULLY_MASKED_P check.
5345 2020-10-23  Dennis Zhang  <dennis.zhang@arm.com>
5347         * config/arm/mve.md (mve_vsubq<mode>): New entry for vsub instruction
5348         using expression 'minus'.
5349         (mve_vsubq_f<mode>): Use minus instead of VSUBQ_F unspec.
5350         * config/arm/neon.md (sub<mode>3, sub<mode>3_fp16): Removed.
5351         (neon_vsub<mode>): Use gen_sub<mode>3 instead of gen_sub<mode>3_fp16.
5352         * config/arm/vec-common.md (sub<mode>3): Use the new mode macros
5353         ARM_HAVE_<MODE>_ARITH. Use iterator VDQ instead of VALL.
5355 2020-10-22  Alan Modra  <amodra@gmail.com>
5357         * config/rs6000/rs6000.c (rs6000_emit_xxspltidp_v2df): Delete
5358         debug printf.  Remove trailing ".\n" from inform message.
5359         Break long line.
5361 2020-10-22  Andrew MacLeod  <amacleod@redhat.com>
5363         * gimple-range-gori.cc (is_gimple_logical_p): Use types_compatible_p
5364         for logical compatibility.
5365         (logical_stmt_cache::cacheable_p): Ditto.
5367 2020-10-22  Jan Hubicka  <hubicka@ucw.cz>
5369         * cgraph.c (cgraph_node::get_untransformed_body): Perform lazy
5370         clone materialization.
5371         * cgraph.h (cgraph_node::materialize_clone): Declare.
5372         (symbol_table::materialize_all_clones): Remove.
5373         * cgraphclones.c (cgraph_materialize_clone): Turn to ...
5374         (cgraph_node::materialize_clone): .. this one; move here
5375         dumping from symbol_table::materialize_all_clones.
5376         (symbol_table::materialize_all_clones): Remove.
5377         * cgraphunit.c (mark_functions_to_output): Clear stmt references.
5378         (cgraph_node::expand): Initialize bitmaps early;
5379         do not call execute_all_ipa_transforms if there are no transforms.
5380         * ipa-inline-transform.c (save_inline_function_body): Fix formating.
5381         (inline_transform): Materialize all clones before function is modified.
5382         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
5383         Materialize clone if needed.
5384         * ipa.c (class pass_materialize_all_clones): Remove.
5385         (make_pass_materialize_all_clones): Remove.
5386         * passes.c (execute_all_ipa_transforms): Materialize all clones.
5387         * passes.def: Remove pass_materialize_all_clones.
5388         * tree-pass.h (make_pass_materialize_all_clones): Remove.
5389         * tree-ssa-structalias.c (ipa_pta_execute): Clear refs.
5391 2020-10-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
5393         * config/rs6000/altivec.h (vec_xl_zext, vec_xl_sext, vec_xst_trunc):
5394         New defines.
5395         * config/rs6000/rs6000-builtin.def (BU_P10V_OVERLOAD_X): New builtin
5396         macro.
5397         (BU_P10V_AV_X): New builtin macro.
5398         (se_lxvrhbx, se_lxrbhx, se_lxvrwx, se_lxvrdx): Define internal names
5399         for load and sign extend vector element.
5400         (ze_lxvrbx, ze_lxvrhx, ze_lxvrwx, ze_lxvrdx): Define internal names
5401         for load and zero extend vector element.
5402         (tr_stxvrbx, tr_stxvrhx, tr_stxvrwx, tr_stxvrdx): Define internal names
5403         for truncate and store vector element.
5404         (se_lxvrx, ze_lxvrx, tr_stxvrx): Define internal names for overloaded
5405         load/store rightmost element.
5406         * config/rs6000/rs6000-call.c (altivec_builtin_types): Define the
5407         internal monomorphs P10_BUILTIN_SE_LXVRBX, P10_BUILTIN_SE_LXVRHX,
5408         P10_BUILTIN_SE_LXVRWX, P10_BUILTIN_SE_LXVRDX,
5409         P10_BUILTIN_ZE_LXVRBX, P10_BUILTIN_ZE_LXVRHX, P10_BUILTIN_ZE_LXVRWX,
5410         P10_BUILTIN_ZE_LXVRDX,
5411         P10_BUILTIN_TR_STXVRBX, P10_BUILTIN_TR_STXVRHX, P10_BUILTIN_TR_STXVRWX,
5412         P10_BUILTIN_TR_STXVRDX,
5413         (altivec_expand_lxvr_builtin): New expansion for load element builtins.
5414         (altivec_expand_stv_builtin): Update to for truncate and store builtins.
5415         (altivec_expand_builtin): Add clases for load/store rightmost builtins.
5416         (altivec_init_builtins): Add def_builtin entries for
5417         __builtin_altivec_se_lxvrbx, __builtin_altivec_se_lxvrhx,
5418         __builtin_altivec_se_lxvrwx, __builtin_altivec_se_lxvrdx,
5419         __builtin_altivec_ze_lxvrbx, __builtin_altivec_ze_lxvrhx,
5420         __builtin_altivec_ze_lxvrwx, __builtin_altivec_ze_lxvrdx,
5421         __builtin_altivec_tr_stxvrbx, __builtin_altivec_tr_stxvrhx,
5422         __builtin_altivec_tr_stxvrwx, __builtin_altivec_tr_stxvrdx,
5423         __builtin_vec_se_lxvrx, __builtin_vec_ze_lxvrx, __builtin_vec_tr_stxvrx.
5424         * config/rs6000/vsx.md (vsx_lxvr<wd>x, vsx_stxvr<wd>x, vsx_stxvr<wd>x):
5425         New define_insn entries.
5426         * doc/extend.texi:  Add documentation for vsx_xl_sext, vsx_xl_zext,
5427         and vec_xst_trunc.
5429 2020-10-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
5431         * config/rs6000/vsx.md (enum unspec): Add
5432         UNSPEC_EXTENDDITI2 and UNSPEC_MTVSRD_DITI_W1 entries.
5433         (mtvsrdd_diti_w1, extendditi2_vector): New define_insns.
5434         (extendditi2): New define_expand.
5436 2020-10-22  Alexandre Oliva  <oliva@adacore.com>
5438         * config/i386/mingw-w64.h (TARGET_LIBC_HAS_FUNCTION): Enable
5439         sincos optimization.
5441 2020-10-22  Alan Modra  <amodra@gmail.com>
5443         * config/rs6000/vsx.md (vec_cntmb_<mode>, vec_extract_<mode>),
5444         (vec_expand_<mode>): Replace <VSX_MM_SUFFIX> with <wd>.
5446 2020-10-22  Richard Biener  <rguenther@suse.de>
5448         * tree-vect-slp.c (vect_analyze_slp_instance): Refactor so
5449         computing a vector type early is not needed, for store group
5450         splitting compute a new vector type based on the desired
5451         group size.
5453 2020-10-22  Richard Biener  <rguenther@suse.de>
5455         PR middle-end/97521
5456         * expr.c (expand_expr_real_1): Be more careful when
5457         expanding a VECTOR_BOOLEAN_TYPE_P VECTOR_CSTs.
5459 2020-10-22  David Malcolm  <dmalcolm@redhat.com>
5461         * ipa-modref-tree.c (selftest::test_insert_search_collapse): Fix
5462         leak.
5463         (selftest::test_merge): Fix leaks.
5465 2020-10-22  Andreas Krebbel  <krebbel@linux.ibm.com>
5467         PR target/97502
5468         * config/s390/vector.md ("vec_cmp<VI_HW:mode><VI_HW:mode>")
5469         ("vec_cmpu<VI_HW:mode><VI_HW:mode>"): New expanders.
5471 2020-10-22  Andreas Krebbel  <krebbel@linux.ibm.com>
5473         PR rtl-optimization/97439
5474         * dfp.c (decimal_real_maxval): Set the sign flag in the
5475         generated number.
5477 2020-10-22  Martin Liska  <mliska@suse.cz>
5479         PR c/94722
5480         * cfgexpand.c (stack_protect_decl_phase):
5481         Guard with lookup_attribute("no_stack_protector") at
5482         various places.
5483         (expand_used_vars): Likewise here.
5484         * doc/extend.texi: Document no_stack_protector attribute.
5486 2020-10-22  Martin Liska  <mliska@suse.cz>
5488         * cfgexpand.c: Move the enum to ...
5489         * coretypes.h (enum stack_protector): ... here.
5490         * function.c (assign_parm_adjust_stack_rtl): Use the stack_protector
5491         enum.
5493 2020-10-22  Kito Cheng  <kito.cheng@sifive.com>
5495         * config/riscv/multilib-generator: Add TODO, import itertools
5496         and functools.reduce.
5497         Handle expantion operator.
5498         (LONG_EXT_PREFIXES): New.
5499         (arch_canonicalize): Update comment and improve python3
5500         debuggability/compatibility.
5501         (add_underline_prefix): New.
5502         (_expand_combination): Ditto.
5503         (unique): Ditto.
5504         (expand_combination): Ditto.
5506 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5508         * tree-ssa-phiopt.c (cond_removal_in_popcount_clz_ctz_pattern):
5509         For CLZ and CTZ tests, use type temporary instead of mode.
5511 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
5513         * config.gcc (x86_archs): Add samuel-2, nehemiah, c7 and esther.
5514         (x86_64_archs): Add eden-x2, nano, nano-1000, nano-2000, nano-3000,
5515         nano-x2, eden-x4, nano-x4, x86-64-v2, x86-64-v3 and x86-64-v4.
5516         (i[34567]86-*-* | x86_64-*-*): Only allow x86-64-v* as argument
5517         to --with-arch_64=.
5519 2020-10-22  Jan Hubicka  <jh@suse.cz>
5521         * ipa-pure-const.c (funct_state_summary_t::insert): Free stale
5522         summaries.
5524 2020-10-22  Jan Hubicka  <hubicka@ucw.cz>
5526         * cgraph.c: Include tree-nested.h
5527         (cgraph_node::create): Call maybe_record_nested_function.
5528         (cgraph_node::remove): Do not remove function from nested function
5529         infos.
5530         (cgraph_node::dump): Update.
5531         (cgraph_node::unnest): Move to tree-nested.c
5532         (cgraph_node::verify_node): Update.
5533         (cgraph_c_finalize): Call nested_function_info::release.
5534         * cgraph.h (struct symtab_node): Remove nested function info.
5535         * cgraphclones.c (cgraph_node::create_clone): Do not clone nested
5536         function info.
5537         * cgraphunit.c (cgraph_node::analyze): Update.
5538         (cgraph_node::expand): Do not worry about nested functions; they are
5539         lowered.
5540         (symbol_table::finalize_compilation_unit): Call
5541         nested_function_info::release.
5542         * gimplify.c: Include tree-nested.h
5543         (unshare_body): Update.
5544         (unvisit_body): Update.
5545         * omp-offload.c (omp_discover_implicit_declare_target): Update.
5546         * tree-nested.c: Include alloc-pool.h, tree-nested.h, symbol-summary.h
5547         (nested_function_sum): New static variable.
5548         (nested_function_info::get): New member function.
5549         (nested_function_info::get_create): New member function.
5550         (unnest_function): New function.
5551         (nested_function_info::~nested_function_info): New member function.
5552         (nested_function_info::release): New function.
5553         (maybe_record_nested_function): New function.
5554         (lookup_element_for_decl): Update.
5555         (check_for_nested_with_variably_modified): Update.
5556         (create_nesting_tree): Update.
5557         (unnest_nesting_tree_1): Update.
5558         (gimplify_all_functions): Update.
5559         (lower_nested_functions): Update.
5560         * tree-nested.h (class nested_function_info): New class.
5561         (maybe_record_nested_function): Declare.
5562         (unnest_function): Declare.
5563         (first_nested_function): New inline function.
5564         (next_nested_function): New inline function.
5565         (nested_function_origin): New inline function.
5567 2020-10-22  liuhongt  <hongtao.liu@intel.com>
5569         PR rtl-optimization/97249
5570         * simplify-rtx.c (simplify_binary_operation_1): Simplify
5571         vec_select of a subreg of X to a vec_select of X.
5573 2020-10-22  liuhongt  <hongtao.liu@intel.com>
5575         PR target/87767
5576         * config/i386/constraints.md ("Br"): New special memory
5577         constraint.
5578         * config/i386/i386-expand.c (ix86_binary_operator_ok): Both
5579         source operand cannot be in memory or bcst_memory_operand.
5580         * config/i386/i386.c (ix86_print_operand): Print bcst_mem_operand.
5581         * config/i386/i386.h (VALID_BCST_MODE_P): New.
5582         * config/i386/predicates.md (bcst_mem_operand): New predicate
5583         for AVX512 embedding broadcast memory operand.
5584         (bcst_vector_operand): New predicate, vector_operand or
5585         bcst_mem_operand.
5586         * config/i386/sse.md
5587         (*<plusminus_insn><mode>3<mask_name><round_name>): Extend
5588         predicate and constraints to handle bcst_mem_operand.
5589         (*mul<mode>3<mask_name><round_name>): Ditto.
5590         (<sse>_div<mode>3<mask_name><round_name>): Ditto.
5591         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
5592         Ditto.
5593         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
5594         Ditto.
5595         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
5596         Ditto.
5597         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
5598         Ditto.
5599         (*<plusminus_insn><mode>3): Ditto.
5600         (avx512dq_mul<mode>3<mask_name>): Ditto.
5601         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5602         (*andnot<mode>3): Ditto.
5603         (<mask_codefor><code><mode>3<mask_name>): Ditto.
5604         (*sub<mode>3<mask_name>_bcst): Removed.
5605         (*add<mode>3<mask_name>_bcst): Ditto.
5606         (*mul<mode>3<mask_name>_bcst): Ditto.
5607         (*<avx512>_div<mode>3<mask_name>_bcst): Ditto.
5608         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1):
5609         Ditto.
5610         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2):
5611         Ditto.
5612         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3):
5613         Ditto.
5614         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1):
5615         Ditto.
5616         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2):
5617         Ditto.
5618         (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3):
5619         Ditto.
5620         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1):
5621         Ditto.
5622         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2):
5623         Ditto.
5624         (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3):
5625         Ditto.
5626         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1):
5627         Ditto.
5628         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2):
5629         Ditto.
5630         (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3):
5631         Ditto.
5632         (*sub<mode>3_bcst): Ditto.
5633         (*add<mode>3_bcst): Ditto.
5634         (*avx512dq_mul<mode>3<mask_name>_bcst): Ditto.
5635         (*avx512f_mul<mode>3<mask_name>_bcst): Ditto.
5636         (*andnot<mode>3_bcst): Ditto.
5637         (*<code><mode>3_bcst): Ditto.
5638         * config/i386/subst.md (bcst_round_constraint): New subst
5639         attribute.
5640         (bcst_round_nimm_predicate): Ditto.
5641         (bcst_mask_prefix3): Ditto.
5642         (bcst_mask_prefix4): Ditto.
5644 2020-10-22  liuhongt  <hongtao.liu@intel.com>
5646         PR target/87767
5647         * ira-costs.c (record_operand_costs): Extract memory operand
5648         from recog_data.operand[i] for record_address_regs.
5649         (record_reg_classes): Extract memory operand from OP for
5650         conditional judgement MEM_P.
5651         * ira.c (ira_setup_alts): Ditto.
5652         * lra-constraints.c (extract_mem_from_operand): New function.
5653         (satisfies_memory_constraint_p): Extract memory operand from
5654         OP for decompose_mem_address, return false when there's no
5655         memory operand inside OP.
5656         (process_alt_operands): Remove MEM_P (op) since it would be
5657         judged in satisfies_memory_constraint_p.
5658         * recog.c (asm_operand_ok): Extract memory operand from OP for
5659         judgement of memory_operand (OP, VOIDmode).
5660         (constrain_operands): Don't unwrapper unary operator when
5661         there's memory operand inside.
5662         * rtl.h (extract_mem_from_operand): New decl.
5664 2020-10-22  Dennis Zhang  <dennis.zhang@arm.com>
5666         * config/arm/mve.md (mve_vmaxq_<supf><mode>): Replace with ...
5667         (mve_vmaxq_s<mode>, mve_vmaxq_u<mode>): ... these new insns to
5668         use smax/umax instead of VMAXQ.
5669         (mve_vminq_<supf><mode>): Replace with ...
5670         (mve_vminq_s<mode>, mve_vminq_u<mode>): ... these new insns to
5671         use smin/umin instead of VMINQ.
5672         (mve_vmaxnmq_f<mode>): Use smax instead of VMAXNMQ_F.
5673         (mve_vminnmq_f<mode>): Use smin instead of VMINNMQ_F.
5674         * config/arm/vec-common.md (smin<mode>3): Use the new mode macros
5675         ARM_HAVE_<MODE>_ARITH.
5676         (umin<mode>3, smax<mode>3, umax<mode>3): Likewise.
5678 2020-10-22  Andrew MacLeod  <amacleod@redhat.com>
5680         PR tree-optimization/97520
5681         * gimple-range.cc (range_of_non_trivial_assignment): Handle x = &a
5682         by returning a non-zero range.
5684 2020-10-22  Dennis Zhang  <dennis.zhang@arm.com>
5686         * config/arm/mve.md (mve_vmulq<mode>): New entry for vmul instruction
5687         using expression 'mult'.
5688         (mve_vmulq_f<mode>): Use mult instead of VMULQ_F.
5689         * config/arm/neon.md (mul<mode>3): Removed.
5690         * config/arm/vec-common.md (mul<mode>3): Use the new mode macros
5691         ARM_HAVE_<MODE>_ARITH. Use mode iterator VDQWH instead of VALLW.
5693 2020-10-22  Andrew MacLeod  <amacleod@redhat.com>
5695         PR tree-optimization/97515
5696         * value-query.cc (range_query::value_of_expr): If the result is
5697         UNDEFINED, check to see if the global value is a constant.
5698         (range_query::value_on_edge): Ditto.
5700 2020-10-21  Jan Hubicka  <hubicka@ucw.cz>
5702         PR ipa/97445
5703         * ipa-inline.c (inline_insns_single): Add hint2 parameter.
5704         (inline_insns_auto): Add hint2 parameter.
5705         (can_inline_edge_by_limits_p): Update.
5706         (want_inline_small_function_p): Update.
5707         (wrapper_heuristics_may_apply): Update.
5709 2020-10-21  Richard Biener  <rguenther@suse.de>
5710             Andrew MacLeod  <amacleod@redhat.com>
5711             Martin Liska  <mliska@suse.cz>
5713         PR target/97360
5714         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove call to
5715         build_distinct_type_copy().
5717 2020-10-21  Jan Hubicka  <jh@suse.cz>
5719         PR ipa/97445
5720         * ipa-fnsummary.c (ipa_dump_hints): Add INLINE_HINT_builtin_constant_p.
5721         (ipa_fn_summary::~ipa_fn_summary): Free builtin_constant_p_parms.
5722         (ipa_fn_summary_t::duplicate): Duplicate builtin_constant_p_parms.
5723         (ipa_dump_fn_summary): Dump builtin_constant_p_parms.
5724         (add_builtin_constant_p_parm): New function
5725         (set_cond_stmt_execution_predicate): Update builtin_constant_p_parms.
5726         (ipa_call_context::estimate_size_and_time): Set
5727         INLINE_HINT_builtin_constant_p..
5728         (ipa_merge_fn_summary_after_inlining): Merge builtin_constant_p_parms.
5729         (inline_read_section): Read builtin_constant_p_parms.
5730         (ipa_fn_summary_write): Write builtin_constant_p_parms.
5731         * ipa-fnsummary.h (enum ipa_hints_vals): Add
5732         INLINE_HINT_builtin_constant_p.
5733         * ipa-inline.c (want_inline_small_function_p): Use
5734         INLINE_HINT_builtin_constant_p.
5735         (edge_badness): Use INLINE_HINT_builtin_constant_p.
5737 2020-10-21  Douglas Rupp  <rupp@adacore.com>
5739         * config/vx-common.h (LINK_SPEC, LIB_SPEC): Remove #undef.
5741 2020-10-21  Douglas Rupp  <rupp@adacore.com>
5742             Olivier Hainque  <hainque@adacore.com>
5744         * config.gcc (powerpc*-wrs-vxworks7r*): New case.
5745         * config/rs6000/vxworks.h: Rework to handle VxWorks7.
5746         Refactor as common bits + vx6 vs vx7 ones. For the
5747         latter, rely essentially on the Linux configuration
5748         and adjust CPU to _VX_CPU in CPP_SPEC. Add a case
5749         for e6500. Use SUB3TARGET_OVERRIDE_OPTIONS for specifics
5750         to preserve the Linux SUBSUBTARGET_OVERRIDE_OPTIONS
5751         for vx7.
5753 2020-10-21  Richard Biener  <rguenther@suse.de>
5755         PR tree-optimization/97500
5756         * tree-vect-slp.c (vect_analyze_slp_backedges): Do not
5757         fill backedges for inductions.
5759 2020-10-21  liuhongt  <hongtao.liu@intel.com>
5761         PR target/97506
5762         * config/i386/i386-expand.c (ix86_expand_sse_movcc): Move
5763         op_true to dest directly when op_true equals op_false.
5765 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
5767         PR tree-optimization/97503
5768         * tree-ssa-phiopt.c: Include internal-fn.h.
5769         (cond_removal_in_popcount_pattern): Rename to ...
5770         (cond_removal_in_popcount_clz_ctz_pattern): ... this.  Handle not just
5771         popcount, but also clz and ctz if it has C?Z_DEFINED_VALUE_AT_ZERO 2.
5773 2020-10-21  Richard Biener  <rguenther@suse.de>
5775         * cfg.c (htab_bb_copy_original_entry): Remove.
5776         (bb_copy_hasher): Likewise.
5777         (bb_original, bb_copy, loop_copy): Use
5778         hash_map<int_hash<int, -1, -2>, int>.
5779         (original_copy_bb_pool): Remove.
5780         (initialize_original_copy_tables): Adjust.
5781         (reset_original_copy_tables): Likewise.
5782         (free_original_copy_tables): Likewise.
5783         (original_copy_tables_initialized_p): Likewise.
5784         (copy_original_table_clear): Simplify.
5785         (copy_original_table_set): Likewise.
5786         (get_bb_original): Likewise.
5787         (get_bb_copy): Likewise.
5788         (get_loop_copy): Likewise.
5790 2020-10-21  Richard Biener  <rguenther@suse.de>
5792         * cfghooks.c (copy_bbs): Split out loop computing new_edges.
5794 2020-10-21  Aldy Hernandez  <aldyh@redhat.com>
5796         * gimple-range.cc (gimple_ranger::range_of_ssa_name_with_loop_info):
5797         Remove TREE_OVERFLOW special case.
5798         * vr-values.c (bounds_of_var_in_loop): Adjust overflow for
5799         invariants.
5801 2020-10-21  Aldy Hernandez  <aldyh@redhat.com>
5803         * vr-values.h: Remove simplify_cond_using_ranges_2.
5804         (range_fits_type_p): New.
5805         * vr-values.c (range_fits_type_p): Remove static qualifier.
5806         (vrp_simplify_cond_using_ranges): Move...
5807         * tree-vrp.c (vrp_simplify_cond_using_ranges): ...to here.
5809 2020-10-20  Andrew MacLeod  <amacleod@redhat.com>
5811         PR tree-optimization/97505
5812         * vr-values.c (vr_values::extract_range_basic): Trap if
5813         vr_values version disagrees with range_of_builtin_call.
5815 2020-10-20  David Edelsohn  <dje.gcc@gmail.com>
5817         * config/rs6000/rs6000.c (rs6000_option_override_internal):
5818         Don't implcitly enable Altivec ABI if set on the command line.
5820 2020-10-20  Aldy Hernandez  <aldyh@redhat.com>
5822         * calls.c (get_size_range): Adjust to work with ranger.
5823         * calls.h (get_size_range): Add ranger argument to prototype.
5824         * gimple-ssa-warn-restrict.c (class wrestrict_dom_walker): Remove.
5825         (check_call): Pull out of wrestrict_dom_walker into a
5826         static function.
5827         (wrestrict_dom_walker::before_dom_children): Rename to...
5828         (wrestrict_walk): ...this.
5829         (pass_wrestrict::execute): Instantiate ranger.
5830         (class builtin_memref): Add stmt and query fields.
5831         (builtin_access::builtin_access): Add range_query field.
5832         (builtin_memref::builtin_memref): Same.
5833         (builtin_memref::extend_offset_range): Same.
5834         (builtin_access::builtin_access): Make work with ranger.
5835         (wrestrict_dom_walker::check_call): Pull out into...
5836         (check_call): ...here.
5837         (check_bounds_or_overlap): Add range_query argument.
5838         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap):
5839         Add range_query and gimple stmt arguments.
5841 2020-10-20  Aldy Hernandez  <aldyh@redhat.com>
5843         * gimple-ssa-warn-alloca.c (enum alloca_type): Remove
5844         ALLOCA_BOUND_UNKNOWN and ALLOCA_CAST_FROM_SIGNED.
5845         (warn_limit_specified_p): New.
5846         (alloca_call_type_by_arg): Remove.
5847         (cast_from_signed_p): Remove.
5848         (is_max): Remove.
5849         (alloca_call_type): Remove heuristics and replace with call into
5850         ranger.
5851         (pass_walloca::execute): Instantiate ranger.
5853 2020-10-20  Tobias Burnus  <tobias@codesourcery.com>
5855         * lto-wrapper.c (run_gcc): Use proper variable for
5856         %u.ltrans_args dump suffix.
5858 2020-10-20  Zhiheng Xie  <xiezhiheng@huawei.com>
5859             Nannan Zheng  <zhengnannan@huawei.com>
5861         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
5862         for get/set reg intrinsics.
5864 2020-10-20  Aldy Hernandez  <aldyh@redhat.com>
5866         * gimple-range.cc (gimple_ranger::range_of_builtin_ubsan_call):
5867         Make externally visble...
5868         (range_of_builtin_ubsan_call): ...here.  Add range_query argument.
5869         (gimple_ranger::range_of_builtin_call): Make externally visible...
5870         (range_of_builtin_call): ...here.  Add range_query argument.
5871         * gimple-range.h (range_of_builtin_call): Move out from class and
5872         make externally visible.
5873         * vr-values.c (vr_values::extract_range_basic): Abstract out
5874         builtin handling to...
5875         (vr_values::range_of_expr): Handle non SSAs.
5876         (vr_values::extract_range_builtin): ...here.
5877         * vr-values.h (class vr_values): Add extract_range_builtin.
5878         (range_of_expr): Rename NAME to EXPR.
5880 2020-10-20  Aldy Hernandez  <aldyh@redhat.com>
5882         PR tree-optimization/97501
5883         * gimple-range.cc (gimple_ranger::range_of_ssa_name_with_loop_info):
5884         Saturate overflows returned from SCEV.
5886 2020-10-20  Aldy Hernandez  <aldyh@redhat.com>
5888         * value-range.cc (irange::operator=): Split up call to
5889         copy_legacy_range into...
5890         (irange::copy_to_legacy): ...this.
5891         (irange::copy_legacy_to_multi_range): ...and this.
5892         (irange::copy_legacy_range): Remove.
5893         * value-range.h: Remove copoy_legacy_range.
5894         Add copy_legacy_to_multi_range and copy_to_legacy.
5896 2020-10-20  Tobias Burnus  <tobias@codesourcery.com>
5898         * doc/invoke.texi (NVPTX options): Use @item not @itemx.
5900 2020-10-20  Richard Biener  <rguenther@suse.de>
5902         * tree-cfg.c (reinstall_phi_args): Remove.
5903         (gimple_split_edge): Remove PHIs around the edge redirection
5904         to avoid touching them at all.
5906 2020-10-20  Richard Biener  <rguenther@suse.de>
5908         * tree-vect-loop.c (vectorizable_reduction): Use the correct
5909         loops latch edge for the PHI arg lookup.
5911 2020-10-20  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5913         * config/msp430/msp430.md (andneghi3): Allow general operand for
5914         op1 and update output assembler template.
5916 2020-10-20  Tobias Burnus  <tobias@codesourcery.com>
5918         * collect-utils.c (collect_execute, fork_execute): Add at-file suffix
5919         argument.
5920         * collect-utils.h (collect_execute, fork_execute): Update prototype.
5921         * collect2.c (maybe_run_lto_and_relink, do_link, main, do_dsymutil):
5922         Update calls by passing NULL.
5923         * config/i386/intelmic-mkoffload.c (compile_for_target,
5924         generate_host_descr_file, prepare_target_image, main): Likewise.
5925         * config/gcn/mkoffload.c (compile_native, main): Pass at-file suffix.
5926         * config/nvptx/mkoffload.c (compile_native, main): Likewise.
5927         * lto-wrapper.c (compile_offload_image): Likewise.
5929 2020-10-20  Aldy Hernandez  <aldyh@redhat.com>
5931         * range-op.cc (operator_rshift::op1_range): Special case
5932         shifting by zero.
5934 2020-10-20  Richard Biener  <rguenther@suse.de>
5936         PR tree-optimization/97496
5937         * tree-vect-slp.c (vect_get_and_check_slp_defs): Guard extern
5938         promotion with not in pattern.
5940 2020-10-20  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
5942         * config/s390/s390.c (s390_expand_vec_strlen): Add alignment
5943         for memory access inside loop.
5945 2020-10-19  Andrew MacLeod  <amacleod@redhat.com>
5947         PR tree-optimization/97360
5948         * gimple-range.h (range_compatible_p): New.
5949         * gimple-range-gori.cc (is_gimple_logical_p): Use range_compatible_p.
5950         (range_is_either_true_or_false): Ditto.
5951         (gori_compute::outgoing_edge_range_p): Cast result to the correct
5952         type if necessary.
5953         (logical_stmt_cache::cacheable_p): Use range_compatible_p.
5954         * gimple-range.cc (gimple_ranger::calc_stmt): Check range_compatible_p
5955         before casting the range.
5956         (gimple_ranger::range_on_exit): Use range_compatible_p.
5957         (gimple_ranger::range_on_edge): Ditto.
5959 2020-10-19  Martin Jambor  <mjambor@suse.cz>
5961         PR tree-optimization/97456
5962         * tree-complex.c (set_component_ssa_name): Do not replace ignored decl
5963         default definitions with new component vars.  Reorder if conditions.
5965 2020-10-19  David Edelsohn  <dje.gcc@gmail.com>
5967         * config/rs6000/vsx.md (vextract_fp_from_shorth):  Fix vals_be.
5968         (vextract_fp_from_shortl) Same.
5970 2020-10-19  Aldy Hernandez  <aldyh@redhat.com>
5972         PR tree-optimization/97488
5973         * range-op.cc (operator_lshift::op1_range): Handle large right shifts.
5975 2020-10-19  Martin Liska  <mliska@suse.cz>
5977         * ipa-modref.c (compute_parm_map): Clear vector.
5979 2020-10-19  Richard Biener  <rguenther@suse.de>
5981         PR tree-optimization/97486
5982         * tree-vect-slp.c (vect_slp_function): Split after stmts
5983         ending a BB.
5985 2020-10-19  Jonathan Wakely  <jwakely@redhat.com>
5987         * doc/invoke.texi (OPptimize Options): Add missing closing
5988         parenthesis.
5990 2020-10-19  Aldy Hernandez  <aldyh@redhat.com>
5992         PR tree-optimization/97467
5993         * range-op.cc (operator_lshift::op1_range): Handle shifts by 0.
5995 2020-10-19  Richard Biener  <rguenther@suse.de>
5997         PR tree-optimization/97466
5998         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5999         spurious assert, re-indent.
6001 2020-10-19  Li Jia He  <helijia@gcc.gnu.org>
6003         PR tree-optimization/66552
6004         * match.pd (x << (n % C) -> x << (n & C-1)): New simplification.
6006 2020-10-19  Richard Biener  <rguenther@suse.de>
6008         * tree-cfg.c (verify_gimple_comparison): Drop special-case
6009         for pointer comparison.
6011 2020-10-16  Andrew MacLeod  <amacleod@redhat.com>
6013         * vr-values.c (dump_all_value_ranges): Only dump names which are
6014         still active.
6016 2020-10-16  Andrew MacLeod  <amacleod@redhat.com>
6018         * range-op.cc (pointer_plus_operator::wi_fold): Make pointer_plus
6019         [0, 0] + const return a [const, const] range.
6021 2020-10-16  Andrew MacLeod  <amacleod@redhat.com>
6023         * gimple-ssa-evrp.c (hybrid_folder::value_on_edge): Call
6024         evrp_folder::value_of_expr directly.
6025         (hybrid_folder::value_of_stmt): Ditto.
6027 2020-10-16  Andrew MacLeod  <amacleod@redhat.com>
6029         PR tree-optimization/97462
6030         * range-op.cc (operator_lshift::op1_range): Don't trap on negative
6031         shifts.
6033 2020-10-16  Olivier Hainque  <hainque@adacore.com>
6035         * config/vxworks.h (VX_CRTBEGIN_SPEC): Likewise.
6037 2020-10-16  Olivier Hainque  <hainque@adacore.com>
6039         * config/vxworks/_vxworks-versions.h: Only include
6040         version.h if _WRS_VXWORKS_MAJOR is not defined.
6041         Provide a default _WRS_VXWORKS_MINOR (0).
6043 2020-10-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
6045         PR target/97327
6046         * config/arm/arm.c (fp_bitlist): Add isa_bit_mve_float to FP bits array.
6048 2020-10-16  Richard Biener  <rguenther@suse.de>
6050         * tree-vect-slp.c (vect_get_and_check_slp_defs): For BB
6051         vectorization swap operands only if it helps, demote mismatches to
6052         external.
6054 2020-10-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
6056         PR target/97291
6057         * config/arm/arm-builtins.c (arm_strsbwbs_qualifiers): Modify array.
6058         (arm_strsbwbu_qualifiers): Likewise.
6059         (arm_strsbwbs_p_qualifiers): Likewise.
6060         (arm_strsbwbu_p_qualifiers): Likewise.
6061         * config/arm/arm_mve.h (__arm_vstrdq_scatter_base_wb_s64): Modify
6062         function definition.
6063         (__arm_vstrdq_scatter_base_wb_u64): Likewise.
6064         (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
6065         (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
6066         (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
6067         (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
6068         (__arm_vstrwq_scatter_base_wb_s32): Likewise.
6069         (__arm_vstrwq_scatter_base_wb_u32): Likewise.
6070         (__arm_vstrwq_scatter_base_wb_f32): Likewise.
6071         (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
6072         * config/arm/arm_mve_builtins.def (vstrwq_scatter_base_wb_add_u): Remove
6073         expansion for the builtin.
6074         (vstrwq_scatter_base_wb_add_s): Likewise.
6075         (vstrwq_scatter_base_wb_add_f): Likewise.
6076         (vstrdq_scatter_base_wb_add_u): Likewise.
6077         (vstrdq_scatter_base_wb_add_s): Likewise.
6078         (vstrwq_scatter_base_wb_p_add_u): Likewise.
6079         (vstrwq_scatter_base_wb_p_add_s): Likewise.
6080         (vstrwq_scatter_base_wb_p_add_f): Likewise.
6081         (vstrdq_scatter_base_wb_p_add_u): Likewise.
6082         (vstrdq_scatter_base_wb_p_add_s): Likewise.
6083         * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Remove
6084         expand.
6085         (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
6086         (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Rename pattern to ...
6087         (mve_vstrwq_scatter_base_wb_<supf>v4si): This.
6088         (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Remove expand.
6089         (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
6090         (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Rename pattern to ...
6091         (mve_vstrwq_scatter_base_wb_p_<supf>v4si): This.
6092         (mve_vstrwq_scatter_base_wb_fv4sf): Remove expand.
6093         (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
6094         (mve_vstrwq_scatter_base_wb_fv4sf_insn): Rename pattern to ...
6095         (mve_vstrwq_scatter_base_wb_fv4sf): This.
6096         (mve_vstrwq_scatter_base_wb_p_fv4sf): Remove expand.
6097         (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
6098         (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Rename pattern to ...
6099         (mve_vstrwq_scatter_base_wb_p_fv4sf): This.
6100         (mve_vstrdq_scatter_base_wb_<supf>v2di): Remove expand.
6101         (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
6102         (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Rename pattern to ...
6103         (mve_vstrdq_scatter_base_wb_<supf>v2di): This.
6104         (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Remove expand.
6105         (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
6106         (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Rename pattern to ...
6107         (mve_vstrdq_scatter_base_wb_p_<supf>v2di): This.
6109 2020-10-16  Kito Cheng  <kito.cheng@sifive.com>
6111         * config/riscv/multilib-generator (IMPLIED_EXT): New.
6112         (arch_canonicalize): Update comment and handle implied extensions.
6114 2020-10-16  Richard Biener  <rguenther@suse.de>
6116         * tree-vect-slp.c (vect_get_and_check_slp_defs): First analyze
6117         all operands and fill in the def_stmts and ops entries.
6118         (vect_def_types_match): New helper.
6120 2020-10-16  Martin Liska  <mliska@suse.cz>
6122         PR ipa/97404
6123         * ipa-prop.c (struct ipa_vr_ggc_hash_traits):
6124         Compare types of VRP as we can merge ranges of different types.
6126 2020-10-16  Richard Biener  <rguenther@suse.de>
6128         PR tree-optimization/97428
6129         * tree-vect-slp.c (vect_analyze_slp_instance): Split store
6130         groups also for loop vectorization.
6132 2020-10-15  Tom de Vries  <tdevries@suse.de>
6134         PR target/97436
6135         * config/nvptx/nvptx.opt (m32): Comment out.
6136         * doc/invoke.texi (NVPTX options): Remove -m32.
6138 2020-10-15  Jan Hubicka  <hubicka@ucw.cz>
6139             Richard Biener  <rguenther@suse.de>
6141         * attr-fnspec.h: Fix toplevel comment.
6143 2020-10-15  Richard Biener  <rguenther@suse.de>
6145         * tree-pretty-print.c (dump_mem_ref): Print constant offset
6146         also for TARGET_MEM_REF.
6148 2020-10-15  Jan Hubicka  <jh@suse.cz>
6150         * symtab.c (symtab_node::binds_to_current_def_p): Also accept symbols
6151         defined in other partition.
6153 2020-10-15  Richard Biener  <rguenther@suse.de>
6155         * tree-vect-loop.c (vectorizable_live_operation): Adjust
6156         dominance query.
6158 2020-10-15  Richard Biener  <rguenther@suse.de>
6160         PR tree-optimization/97482
6161         * tree-data-ref.c (split_constant_offset_1): Handle
6162         trivial conversions better.
6163         * fold-const.c (convert_to_ptrofftype_loc): Elide conversion
6164         if the offset is already ptrofftype_p.
6166 2020-10-15  Martin Liska  <mliska@suse.cz>
6168         PR ipa/97295
6169         * profile-count.c (profile_count::to_frequency): Move part of
6170         gcc_assert to STATIC_ASSERT.
6171         * regs.h (REG_FREQ_FROM_BB): Do not use count.to_frequency for
6172         a function that does not have count_max initialized.
6174 2020-10-15  Jakub Jelinek  <jakub@redhat.com>
6176         * params.opt (-param-ipa-jump-function-lookups=): Add full stop at
6177         the end of the parameter description.
6179 2020-10-15  Kito Cheng  <kito.cheng@sifive.com>
6181         * common/config/riscv/riscv-common.c (riscv_cpu_tables): New.
6182         (riscv_arch_str): Return empty string if current_subset_list
6183         is NULL.
6184         (riscv_find_cpu): New.
6185         (riscv_handle_option): Verify option value of -mcpu.
6186         (riscv_expand_arch): Using std::string.
6187         (riscv_default_mtune): New.
6188         (riscv_expand_arch_from_cpu): Ditto.
6189         * config/riscv/riscv-cores.def: New.
6190         * config/riscv/riscv-protos.h (riscv_find_cpu): New.
6191         (riscv_cpu_info): New.
6192         * config/riscv/riscv.c (riscv_tune_info): Rename ...
6193         (riscv_tune_param): ... to this.
6194         (riscv_cpu_info): Rename ...
6195         (riscv_tune_info): ... to this.
6196         (tune_info): Rename ...
6197         (tune_param): ... to this.
6198         (rocket_tune_info): Update data type name.
6199         (sifive_7_tune_info): Ditto.
6200         (optimize_size_tune_info): Ditto.
6201         (riscv_cpu_info_table): Rename ...
6202         (riscv_tune_info_table): ... to this.
6203         (riscv_parse_cpu): Rename ...
6204         (riscv_parse_tune): ... to this, and translate valid -mcpu option to
6205         -mtune option.
6206         (riscv_rtx_costs): Rename tune_info to tune_param.
6207         (riscv_class_max_nregs): Ditto.
6208         (riscv_memory_move_cost): Ditto.
6209         (riscv_init_machine_status): Use value of -mcpu if -mtune is not
6210         given, and rename tune_info to tune_param.
6211         * config/riscv/riscv.h (riscv_expand_arch_from_cpu): New.
6212         (riscv_default_mtune): Ditto.
6213         (EXTRA_SPEC_FUNCTIONS): Add riscv_expand_arch_from_cpu and
6214         riscv_default_mtune.
6215         (OPTION_DEFAULT_SPECS): Handle default value of -march/-mabi.
6216         (DRIVER_SELF_SPECS): Expand -march from -mcpu if -march is not
6217         given.
6218         * config/riscv/riscv.opt (-mcpu): New option.
6219         * config/riscv/t-riscv ($(common_out_file)): Add
6220         riscv-cores.def to dependency.
6221         * doc/invoke.texi (RISC-V Option): Add -mcpu, and update the
6222         description of default value for -mtune and -march.
6224 2020-10-15  Hongyu Wang  <hongyu.wang@intel.com>
6226         * common/config/i386/cpuinfo.h (get_available_features):
6227         Detect HRESET.
6228         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_HRESET_SET,
6229         OPTION_MASK_ISA2_HRESET_UNSET): New macros.
6230         (ix86_handle_option): Handle -mhreset.
6231         * common/config/i386/i386-cpuinfo.h (enum processor_features):
6232         Add FEATURE_HRESET.
6233         * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
6234         for hreset.
6235         * config.gcc: Add hresetintrin.h
6236         * config/i386/hresetintrin.h: New header file.
6237         * config/i386/x86gprintrin.h: Include hresetintrin.h.
6238         * config/i386/cpuid.h (bit_HRESET): New.
6239         * config/i386/i386-builtin.def: Add new builtin.
6240         * config/i386/i386-expand.c (ix86_expand_builtin):
6241         Handle new builtin.
6242         * config/i386/i386-c.c (ix86_target_macros_internal): Define
6243         __HRESET__.
6244         * config/i386/i386-options.c (isa2_opts): Add -mhreset.
6245         (ix86_valid_target_attribute_inner_p): Handle hreset.
6246         * config/i386/i386.h (TARGET_HRESET, TARGET_HRESET_P,
6247         PTA_HRESET): New.
6248         (PTA_ALDERLAKE): Add PTA_HRESET.
6249         * config/i386/i386.opt: Add option -mhreset.
6250         * config/i386/i386.md (UNSPECV_HRESET): New unspec.
6251         (hreset): New define_insn.
6252         * doc/invoke.texi: Document -mhreset.
6253         * doc/extend.texi: Document hreset.
6255 2020-10-15  Hongtao Liu  <hongtao.liu@intel.com>
6257         * common/config/i386/cpuinfo.h (get_available_features):
6258         Detect UINTR.
6259         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_UINTR_SET
6260         OPTION_MASK_ISA2_UINTR_UNSET): New.
6261         (ix86_handle_option): Handle -muintr.
6262         * common/config/i386/i386-cpuinfo.h (enum processor_features):
6263         Add FEATURE_UINTR.
6264         * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
6265         for uintr.
6266         * config.gcc: Add uintrintrin.h to extra_headers.
6267         * config/i386/uintrintrin.h: New.
6268         * config/i386/cpuid.h (bit_UINTR): New.
6269         * config/i386/i386-builtin-types.def: Add new types.
6270         * config/i386/i386-builtin.def: Add new builtins.
6271         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins): Add
6272         __builtin_ia32_testui.
6273         * config/i386/i386-builtins.h (ix86_builtins): Add
6274         IX86_BUILTIN_TESTUI.
6275         * config/i386/i386-c.c (ix86_target_macros_internal): Define
6276         __UINTR__.
6277         * config/i386/i386-expand.c (ix86_expand_special_args_builtin):
6278         Handle UINT8_FTYPE_VOID.
6279         (ix86_expand_builtin): Handle IX86_BUILTIN_TESTUI.
6280         * config/i386/i386-options.c (isa2_opts): Add -muintr.
6281         (ix86_valid_target_attribute_inner_p): Handle UINTR.
6282         (ix86_option_override_internal): Add TARGET_64BIT check for UINTR.
6283         * config/i386/i386.h (TARGET_UINTR, TARGET_UINTR_P, PTA_UINTR): New.
6284         (PTA_SAPPHIRRAPIDS): Add PTA_UINTR.
6285         * config/i386/i386.opt: Add -muintr.
6286         * config/i386/i386.md
6287         (define_int_iterator UINTR_UNSPECV): New.
6288         (define_int_attr uintr_unspecv): New.
6289         (uintr_<uintr_unspecv>, uintr_senduipi, testui):
6290         New define_insn patterns.
6291         * config/i386/x86gprintrin.h: Include uintrintrin.h
6292         * doc/invoke.texi: Document -muintr.
6293         * doc/extend.texi: Document uintr.
6295 2020-10-14  Martin Sebor  <msebor@redhat.com>
6297         PR middle-end/97391
6298         * builtins.c (gimple_parm_array_size): Peel off one less layer
6299         of array types.
6301 2020-10-14  Martin Sebor  <msebor@redhat.com>
6303         PR c/97413
6304         * attribs.c (init_attr_rdwr_indices): Unwrap extra list layer.
6306 2020-10-14  Sunil K Pandey  <skpgkp2@gmail.com>
6308         PR target/95483
6309         * config/i386/avx2intrin.h (_mm_broadcastsi128_si256): New intrinsics.
6310         (_mm_broadcastsd_pd): Ditto.
6311         * config/i386/avx512bwintrin.h (_mm512_loadu_epi16): New intrinsics.
6312         (_mm512_storeu_epi16): Ditto.
6313         (_mm512_loadu_epi8): Ditto.
6314         (_mm512_storeu_epi8): Ditto.
6315         * config/i386/avx512dqintrin.h (_mm_reduce_round_sd): New intrinsics.
6316         (_mm_mask_reduce_round_sd): Ditto.
6317         (_mm_maskz_reduce_round_sd): Ditto.
6318         (_mm_reduce_round_ss): Ditto.
6319         (_mm_mask_reduce_round_ss): Ditto.
6320         (_mm_maskz_reduce_round_ss): Ditto.
6321         (_mm512_reduce_round_pd): Ditto.
6322         (_mm512_mask_reduce_round_pd): Ditto.
6323         (_mm512_maskz_reduce_round_pd): Ditto.
6324         (_mm512_reduce_round_ps): Ditto.
6325         (_mm512_mask_reduce_round_ps): Ditto.
6326         (_mm512_maskz_reduce_round_ps): Ditto.
6327         * config/i386/avx512erintrin.h
6328         (_mm_mask_rcp28_round_sd): New intrinsics.
6329         (_mm_maskz_rcp28_round_sd): Ditto.
6330         (_mm_mask_rcp28_round_ss): Ditto.
6331         (_mm_maskz_rcp28_round_ss): Ditto.
6332         (_mm_mask_rsqrt28_round_sd): Ditto.
6333         (_mm_maskz_rsqrt28_round_sd): Ditto.
6334         (_mm_mask_rsqrt28_round_ss): Ditto.
6335         (_mm_maskz_rsqrt28_round_ss): Ditto.
6336         (_mm_mask_rcp28_sd): Ditto.
6337         (_mm_maskz_rcp28_sd): Ditto.
6338         (_mm_mask_rcp28_ss): Ditto.
6339         (_mm_maskz_rcp28_ss): Ditto.
6340         (_mm_mask_rsqrt28_sd): Ditto.
6341         (_mm_maskz_rsqrt28_sd): Ditto.
6342         (_mm_mask_rsqrt28_ss): Ditto.
6343         (_mm_maskz_rsqrt28_ss): Ditto.
6344         * config/i386/avx512fintrin.h (_mm_mask_sqrt_sd): New intrinsics.
6345         (_mm_maskz_sqrt_sd): Ditto.
6346         (_mm_mask_sqrt_ss): Ditto.
6347         (_mm_maskz_sqrt_ss): Ditto.
6348         (_mm_mask_scalef_sd): Ditto.
6349         (_mm_maskz_scalef_sd): Ditto.
6350         (_mm_mask_scalef_ss): Ditto.
6351         (_mm_maskz_scalef_ss): Ditto.
6352         (_mm_mask_cvt_roundsd_ss): Ditto.
6353         (_mm_maskz_cvt_roundsd_ss): Ditto.
6354         (_mm_mask_cvt_roundss_sd): Ditto.
6355         (_mm_maskz_cvt_roundss_sd): Ditto.
6356         (_mm_mask_cvtss_sd): Ditto.
6357         (_mm_maskz_cvtss_sd): Ditto.
6358         (_mm_mask_cvtsd_ss): Ditto.
6359         (_mm_maskz_cvtsd_ss): Ditto.
6360         (_mm512_cvtsi512_si32): Ditto.
6361         (_mm_cvtsd_i32): Ditto.
6362         (_mm_cvtss_i32): Ditto.
6363         (_mm_cvti32_sd): Ditto.
6364         (_mm_cvti32_ss): Ditto.
6365         (_mm_cvtsd_i64): Ditto.
6366         (_mm_cvtss_i64): Ditto.
6367         (_mm_cvti64_sd): Ditto.
6368         (_mm_cvti64_ss): Ditto.
6369         * config/i386/avx512vlbwintrin.h (_mm256_storeu_epi8): New intrinsics.
6370         (_mm_storeu_epi8): Ditto.
6371         (_mm256_loadu_epi16): Ditto.
6372         (_mm_loadu_epi16): Ditto.
6373         (_mm256_loadu_epi8): Ditto.
6374         (_mm_loadu_epi8): Ditto.
6375         (_mm256_storeu_epi16): Ditto.
6376         (_mm_storeu_epi16): Ditto.
6377         * config/i386/avx512vlintrin.h (_mm256_load_epi64): New intrinsics.
6378         (_mm_load_epi64): Ditto.
6379         (_mm256_load_epi32): Ditto.
6380         (_mm_load_epi32): Ditto.
6381         (_mm256_store_epi32): Ditto.
6382         (_mm_store_epi32): Ditto.
6383         (_mm256_loadu_epi64): Ditto.
6384         (_mm_loadu_epi64): Ditto.
6385         (_mm256_loadu_epi32): Ditto.
6386         (_mm_loadu_epi32): Ditto.
6387         (_mm256_mask_cvt_roundps_ph): Ditto.
6388         (_mm256_maskz_cvt_roundps_ph): Ditto.
6389         (_mm_mask_cvt_roundps_ph): Ditto.
6390         (_mm_maskz_cvt_roundps_ph): Ditto.
6391         * config/i386/avxintrin.h (_mm256_cvtsi256_si32): New intrinsics.
6392         * config/i386/emmintrin.h (_mm_loadu_si32): New intrinsics.
6393         (_mm_loadu_si16): Ditto.
6394         (_mm_storeu_si32): Ditto.
6395         (_mm_storeu_si16): Ditto.
6396         * config/i386/i386-builtin-types.def
6397         (V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT): Add new type.
6398         (V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT): Ditto.
6399         (V4SF_FTYPE_V4SF_V2DF_V4SF_UQI_INT): Ditto.
6400         (V2DF_FTYPE_V2DF_V4SF_V2DF_UQI_INT): Ditto.
6401         * config/i386/i386-builtin.def
6402         (__builtin_ia32_cvtsd2ss_mask_round): New builtin.
6403         (__builtin_ia32_cvtss2sd_mask_round): Ditto.
6404         (__builtin_ia32_rcp28sd_mask_round): Ditto.
6405         (__builtin_ia32_rcp28ss_mask_round): Ditto.
6406         (__builtin_ia32_rsqrt28sd_mask_round): Ditto.
6407         (__builtin_ia32_rsqrt28ss_mask_round): Ditto.
6408         (__builtin_ia32_reducepd512_mask_round): Ditto.
6409         (__builtin_ia32_reduceps512_mask_round): Ditto.
6410         (__builtin_ia32_reducesd_mask_round): Ditto.
6411         (__builtin_ia32_reducess_mask_round): Ditto.
6412         * config/i386/i386-expand.c
6413         (ix86_expand_round_builtin): Expand round builtin for new type.
6414         (V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT)
6415         (V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT)
6416         (V4SF_FTYPE_V4SF_V2DF_V4SF_UQI_INT)
6417         (V2DF_FTYPE_V2DF_V4SF_V2DF_UQI_INT)
6418         * config/i386/mmintrin.h ()
6419         Define datatype __m32 and __m16.
6420         Define datatype __m32_u and __m16_u.
6421         * config/i386/sse.md: Adjust pattern.
6422         (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>): Adjust.
6423         (reduces<mode><mask_scalar_name><round_saeonly_scalar_name>): Ditto.
6424         (sse2_cvtsd2ss<mask_name><round_name>): Ditto.
6425         (sse2_cvtss2sd<mask_name><round_saeonly_name>): Ditto.
6426         (avx512er_vmrcp28<mode><mask_name><round_saeonly_name>): Ditto.
6427         (avx512er_vmrsqrt28<mode><mask_name><round_saeonly_name>): Ditto.
6429 2020-10-14  Olivier Hainque  <hainque@adacore.com>
6431         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Fix
6432         the VX_CPU selection for -mcpu=xscale on arm-vxworks.
6434 2020-10-14  Olivier Hainque  <hainque@adacore.com>
6436         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Accommodate
6437         expectations from different versions of VxWorks, for 32 or 64bit
6438         configurations.
6440 2020-10-14  Olivier Hainque  <hainque@adacore.com>
6442         * config/vxworks.h: #undef CPLUSPLUS_CPP_SPEC.
6444 2020-10-14  Olivier Hainque  <hainque@adacore.com>
6446         * config/t-vxworks: Adjust the VxWorks alternative LIMITS_H guard
6447         for glimits.h, make it both closer to the previous one and easier to
6448         search for.
6450 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
6452         PR target/97387
6453         * config/i386/i386.md (CC_CCC): New mode iterator.
6454         (*setcc_qi_addqi3_cconly_overflow_1_<mode>): New
6455         define_insn_and_split.
6456         * config/i386/i386.c (ix86_cc_mode): Return CCCmode
6457         for *setcc_qi_addqi3_cconly_overflow_1_<mode> pattern operands.
6458         (ix86_rtx_costs): Return true and *total = 0;
6459         for *setcc_qi_addqi3_cconly_overflow_1_<mode> pattern.  Use op0 and
6460         op1 temporaries to simplify COMPARE checks.
6462 2020-10-14  Aldy Hernandez  <aldyh@redhat.com>
6464         PR tree-optimization/97396
6465         * gimple-range.cc (gimple_ranger::range_of_phi): Do not call
6466         range_of_ssa_name_with_loop_info with the loop tree root.
6468 2020-10-14  Richard Biener  <rguenther@suse.de>
6470         * tree-vect-slp.c (vect_get_and_check_slp_defs): Split out
6471         test for compatible operand types.
6473 2020-10-14  Olivier Hainque  <hainque@adacore.com>
6475         * config/vxworks.c (vxworks_override_options): Guard pic checks with
6476         flag_pic > 0 instead of just flag_pic.
6478 2020-10-14  Jan Hubicka  <hubicka@ucw.cz>
6480         * ipa-fnsummary.c (remap_edge_summaries): Make offset_map HOST_WIDE_INT.
6481         (remap_freqcounting_predicate): Likewise.
6482         (ipa_merge_fn_summary_after_inlining): Likewise.
6483         * ipa-predicate.c (predicate::remap_after_inlining): Likewise
6484         * ipa-predicate.h (remap_after_inlining): Update.
6486 2020-10-14  Jan Hubicka  <jh@suse.cz>
6488         * ipa-modref.c (compute_parm_map): Handle POINTER_PLUS_EXPR in
6489         PASSTHROUGH.
6491 2020-10-14  Richard Biener  <rguenther@suse.de>
6493         * tree-vect-slp.c (vect_get_and_check_slp_defs): Move
6494         check for duplicate/interleave of variable size constants
6495         to a place done once and early.
6496         (vect_build_slp_tree_2): Adjust heuristics when to build
6497         a BB SLP node from scalars.
6499 2020-10-14  Tom de Vries  <tdevries@suse.de>
6501         * tracer.c (cached_can_duplicate_bb_p, analyze_bb): Use
6502         can_duplicate_block_p.
6503         (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
6504         (can_duplicate_bb_p): Move and merge ...
6505         * tree-cfg.c (gimple_can_duplicate_bb_p): ... here.
6507 2020-10-14  Jan Hubicka  <hubicka@ucw.cz>
6509         * doc/invoke.texi: (ipa-jump-function-lookups): Document param.
6510         * ipa-modref.c (merge_call_side_effects): Use
6511         unadjusted_ptr_and_unit_offset.
6512         * ipa-prop.c (unadjusted_ptr_and_unit_offset): New function.
6513         * ipa-prop.h (unadjusted_ptr_and_unit_offset): Declare.
6514         * params.opt: (-param-ipa-jump-function-lookups): New.
6516 2020-10-14  Jan Hubicka  <jh@suse.cz>
6518         PR bootstrap/97350
6519         * ipa-modref.c (ignore_edge): Do not ignore inlined edes.
6520         (ipa_merge_modref_summary_after_inlining): Improve debug output and
6521         fix parameter of ignore_stores_p.
6523 2020-10-14  Kito Cheng  <kito.cheng@sifive.com>
6525         PR target/96759
6526         * expr.c (expand_assignment): Handle misaligned stores with PARALLEL
6527         value.
6529 2020-10-13  Jakub Jelinek  <jakub@redhat.com>
6531         PR rtl-optimization/97386
6532         * combine.c (simplify_shift_const_1): Don't optimize nested ROTATEs if
6533         they have different modes.
6535 2020-10-13  Aldy Hernandez  <aldyh@redhat.com>
6537         PR tree-optimization/97379
6538         * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Do
6539         not save hash slot across calls to hash_table<>::get_or_insert.
6541 2020-10-13  Tobias Burnus  <tobias@codesourcery.com>
6543         * lto-wrapper.c (find_crtoffloadtable): Fix last commit
6544         by adding NULL as last argument to concat.
6546 2020-10-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6548         * config/aarch64/aarch64.c (neoversen2_tunings): Define.
6549         * config/aarch64/aarch64-cores.def (neoverse-n2): Use it.
6551 2020-10-13  Tobias Burnus  <tobias@codesourcery.com>
6553         * lto-wrapper.c (find_crtoffloadtable): With -save-temps,
6554         use non-temp file name utilizing the dump prefix.
6555         (run_gcc): Update call.
6557 2020-10-13  Richard Biener  <rguenther@suse.de>
6559         PR tree-optimization/97382
6560         * tree-vectorizer.h (_stmt_vec_info::same_align_refs): Remove.
6561         (STMT_VINFO_SAME_ALIGN_REFS): Likewise.
6562         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
6563         allocate STMT_VINFO_SAME_ALIGN_REFS.
6564         (vec_info::free_stmt_vec_info): Do not release
6565         STMT_VINFO_SAME_ALIGN_REFS.
6566         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6567         Do not compute self and read-read dependences.
6568         (vect_dr_aligned_if_related_peeled_dr_is): New helper.
6569         (vect_dr_aligned_if_peeled_dr_is): Likewise.
6570         (vect_update_misalignment_for_peel): Use it instead of
6571         iterating over STMT_VINFO_SAME_ALIGN_REFS.
6572         (dr_align_group_sort_cmp): New function.
6573         (vect_enhance_data_refs_alignment): Count the number of
6574         same aligned refs here and elide uses of STMT_VINFO_SAME_ALIGN_REFS.
6575         (vect_find_same_alignment_drs): Remove.
6576         (vect_analyze_data_refs_alignment): Do not call it.
6577         * vec.h (auto_vec<T, 0>::auto_vec): Adjust CTOR to take
6578         a vec<>&&, assert it isn't using auto storage.
6579         (auto_vec& operator=): Apply a similar change.
6581 2020-10-13  Tobias Burnus  <tobias@codesourcery.com>
6583         * config/nvptx/mkoffload.c (main): Add missing fclose (in).
6585 2020-10-13  Zhiheng Xie  <xiezhiheng@huawei.com>
6586             Nannan Zheng  <zhengnannan@huawei.com>
6588         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
6589         for mul/mla/mls intrinsics.
6591 2020-10-13  Jakub Jelinek  <jakub@redhat.com>
6593         * omp-low.c (add_taskreg_looptemp_clauses): For triangular loops
6594         with non-constant number of iterations add another 4 _looptemp_
6595         clauses before the (optional) one for lastprivate.
6596         (lower_omp_for_lastprivate): Skip those clauses when looking for
6597         the lastprivate clause.
6598         (lower_omp_for): For triangular loops with non-constant number of
6599         iterations add another 4 _looptemp_ clauses.
6600         * omp-expand.c (expand_omp_for_init_counts): For triangular loops
6601         with non-constant number of iterations set counts[0],
6602         fd->first_inner_iterations, fd->factor and fd->adjn1 from the newly
6603         added _looptemp_ clauses.
6604         (expand_omp_for_init_vars): Initialize the newly added _looptemp_
6605         clauses.
6606         (find_lastprivate_looptemp): New function.
6607         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
6608         expand_omp_taskloop_for_outer): Use it instead of manually skipping
6609         _looptemp_ clauses.
6611 2020-10-13  Jan Hubicka  <hubicka@ucw.cz>
6613         PR ipa/97389
6614         * ipa-modref.c (dump_lto_records): Fix formating of dump file.
6615         (modref_summary::dump): Do not check loads to be non-null.
6616         (modref_summary_lto::dump): Do not check loads to be non-null.
6617         (merge_call_side_effects): Improve debug output.
6618         (analyze_call): Crash when cur_summary->loads is NULL.
6619         (analyze_function): Update.
6620         (modref_summaries::insert): Insert only into summaries, not
6621         optimization_summaries.
6622         (modref_summaries::duplicate): Likewise; crash when load or sotres
6623         are NULL.
6624         (modref_summaries_lto::duplicate): Crash when loads or stores are NULL.
6625         (write_modref_records): param_index is signed.
6626         (read_modref_records): param_index is signed.
6627         (modref_write): Crash when loads or stores are NULL.
6628         (read_section): Compensate previous change.
6629         (pass_modref::execute): Do not check optimization_summaries t be
6630         non-NULL.
6631         (ignore_edge): Fix.
6632         (compute_parm_map): Fix formating.
6633         (modref_propagate_in_scc): Do not expect loads/stores to be NULL.
6635 2020-10-12  Alexandre Oliva  <oliva@adacore.com>
6637         * builtins.c (mathfn_built_in_type): Use CFN_ enumerators.
6639 2020-10-12  Andrew MacLeod  <amacleod@redhat.com>
6641         PR tree-optimization/97381
6642         * gimple-range-gori.cc (gori_compute::compute_operand2_range): If a range cannot be
6643         calculated through operand 2, return false.
6645 2020-10-12  Aldy Hernandez  <aldyh@redhat.com>
6647         PR tree-optimization/97378
6648         * range-op.cc (operator_trunc_mod::wi_fold): Return VARYING for mod by zero.
6650 2020-10-12  David Malcolm  <dmalcolm@redhat.com>
6652         * doc/invoke.texi: Document -Wanalyzer-write-to-const and
6653         -Wanalyzer-write-to-string-literal.
6655 2020-10-12  Martin Sebor  <msebor@redhat.com>
6657         PR middle-end/97342
6658         PR middle-end/97023
6659         PR middle-end/96384
6660         * builtins.c (access_ref::access_ref): Initialize new member.  Use
6661         new enum.
6662         (access_ref::size_remaining): Define new member function.
6663         (inform_access): Handle expressions referencing objects.
6664         (gimple_call_alloc_size): Call get_size_range instead of get_range.
6665         (gimple_call_return_array): New function.
6666         (get_range): Rename...
6667         (get_offset_range): ...to this.  Improve detection of ranges from
6668         types of expressions.
6669         (gimple_call_return_array): Adjust calls to get_range per above.
6670         (compute_objsize): Same.  Set maximum size or offset instead of
6671         failing for unknown objects and handle more kinds of expressions.
6672         (compute_objsize): Call access_ref::size_remaining.
6673         (compute_objsize): Have transitional wrapper fail for pointers
6674         into unknown objects.
6675         (expand_builtin_strncmp): Call access_ref::size_remaining and
6676         handle new cases.
6677         * builtins.h (access_ref::size_remaining): Declare new member function.
6678         (access_ref::set_max_size_range): Define new member function.
6679         (access_ref::add_ofset, access_ref::add_max_ofset): Same.
6680         (access_ref::add_base0): New data member.
6681         * calls.c (get_size_range): Change argument type.  Handle new
6682         condition.
6683         * calls.h (get_size_range): Adjust signature.
6684         (enum size_range_flags): Define new type.
6685         * gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Correct
6686         argument to get_size_range.
6687         * tree-ssa-strlen.c (get_range): Handle anti-ranges.
6688         (maybe_warn_overflow): Check DECL_P before assuming it's one.
6690 2020-10-12  Martin Sebor  <msebor@redhat.com>
6692         PR c++/96511
6693         PR middle-end/96384
6694         * builtins.c (get_range): Return full range of type when neither
6695         value nor its range is available.  Fail for ranges inverted due
6696         to the signedness of offsets.
6697         (compute_objsize): Handle more special array members.  Handle
6698         POINTER_PLUS_EXPR and VIEW_CONVERT_EXPR that come up in front end
6699         code.
6700         (access_ref::offset_bounded): Define new member function.
6701         * builtins.h (access_ref::eval): New data member.
6702         (access_ref::offset_bounded): New member function.
6703         (access_ref::offset_zero): New member function.
6704         (compute_objsize): Declare a new overload.
6705         * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Use
6706         enum special_array_member.
6707         * tree.c (component_ref_size): Use special_array_member.
6708         * tree.h (special_array_member): Define a new type.
6709         (component_ref_size): Change signature.
6711 2020-10-12  Jan Hubicka  <hubicka@ucw.cz>
6713         * ipa-modref.c (modref_summaries): Remove field IPA.
6714         (class modref_summary_lto): New global variable.
6715         (class modref_summaries_lto): New.
6716         (modref_summary::modref_summary): Remove loads_lto and stores_lto.
6717         (modref_summary::~modref_summary): Remove loads_lto and stores_lto.
6718         (modref_summary::useful_p): Do not use lto_useful.
6719         (modref_records_lto): New typedef.
6720         (struct modref_summary_lto): New type.
6721         (modref_summary_lto::modref_summary_lto): New member function.
6722         (modref_summary_lto::~modref_summary_lto): New member function.
6723         (modref_summary_lto::useful_p): New member function.
6724         (modref_summary::dump): Do not handle lto.
6725         (modref_summary_lto::dump): New member function.
6726         (get_modref_function_summary): Use optimization_summary.
6727         (merge_call_side_effects): Use optimization_summary.
6728         (analyze_call): Use optimization_summary.
6729         (struct summary_ptrs): New struture.
6730         (analyze_load): Update to handle separate lto and non-lto summaries.
6731         (analyze_store): Likewise.
6732         (analyze_stmt): Likewise.
6733         (remove_summary): Break out from ...
6734         (analyze_function): ... here; update to handle seprated summaries.
6735         (modref_summaries::insert): Do not handle lto summary.
6736         (modref_summaries_lto::insert): New member function.
6737         (modref_summaries::duplicate): Do not handle lto summary.
6738         (modref_summaries_lto::duplicate): New member function.
6739         (read_modref_records): Expect nolto_ret or lto_ret to be NULL>
6740         (modref_write): Write lto summary.
6741         (read_section): Handle separated summaries.
6742         (modref_read): Initialize separated summaries.
6743         (modref_transform): Handle separated summaries.
6744         (pass_modref::execute): Turn summary to optimization_summary; handle
6745         separate summaries.
6746         (ignore_edge): Handle separate summaries.
6747         (ipa_merge_modref_summary_after_inlining): Likewise.
6748         (collapse_loads): Likewise.
6749         (modref_propagate_in_scc): Likewise.
6750         (pass_ipa_modref::execute): Likewise.
6751         (ipa_modref_c_finalize): Likewise.
6752         * ipa-modref.h (modref_records_lto): Remove typedef.
6753         (struct modref_summary): Remove stores_lto, loads_lto and finished
6754         fields; remove lto_useful_p member function.
6756 2020-10-12  Richard Biener  <rguenther@suse.de>
6758         * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
6759         Use SLP_TREE_REPRESENTATIVE.
6760         * tree-vectorizer.h (_slp_tree::vertex): New member used
6761         for graphds interfacing.
6762         * tree-vect-slp.c (vect_build_slp_tree_2): Allocate space
6763         for PHI SLP children.
6764         (vect_analyze_slp_backedges): New function filling in SLP
6765         node children for PHIs that correspond to backedge values.
6766         (vect_analyze_slp): Call vect_analyze_slp_backedges for the
6767         graph.
6768         (vect_slp_analyze_node_operations): Deal with a cyclic graph.
6769         (vect_schedule_slp_instance): Likewise.
6770         (vect_schedule_slp): Likewise.
6771         (slp_copy_subtree): Remove.
6772         (vect_slp_rearrange_stmts): Likewise.
6773         (vect_attempt_slp_rearrange_stmts): Likewise.
6774         (vect_slp_build_vertices): New functions.
6775         (vect_slp_permute): Likewise.
6776         (vect_slp_perms_eq): Likewise.
6777         (vect_optimize_slp): Remove special code to elide
6778         permutations with SLP reductions.  Implement generic
6779         permute optimization.
6781 2020-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
6783         * config/arm/arm.c (arm_preferred_simd_mode): Use E_FOOmode
6784         instead of FOOmode.
6786 2020-10-12  Martin Liska  <mliska@suse.cz>
6788         PR tree-optimization/97079
6789         * internal-fn.c (internal_fn_stored_value_index): Handle also
6790         .MASK_STORE_LANES.
6791         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Bail
6792         out for unsupported TREE_TYPE.
6794 2020-10-12  Richard Biener  <rguenther@suse.de>
6796         * tree-vect-slp.c (vect_bb_partition_graph_r): Use visited
6797         hash-map.
6798         (vect_bb_partition_graph): Likewise.
6800 2020-10-12  Duan bo  <duanbo3@huawei.com>
6802         PR target/96757
6803         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Add
6804         the identification and handling of the dropped situation in the
6805         cond expression processing phase.
6807 2020-10-12  Tobias Burnus  <tobias@codesourcery.com>
6809         * doc/invoke.texi (nvptx's -misa): Update default to sm_35.
6811 2020-10-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6813         PR target/97349
6814         * config/aarch64/arm_neon.h (vdupq_n_p8, vdupq_n_p16,
6815         vdupq_n_p64, vdupq_n_s8, vdupq_n_s16, vdupq_n_u8, vdupq_n_u16):
6816         Fix argument type.
6818 2020-10-12  Ilya Leoshkevich  <iii@linux.ibm.com>
6820         * config/s390/s390-protos.h (s390_build_signbit_mask): New
6821         function.
6822         * config/s390/s390.c (s390_contiguous_bitmask_vector_p):
6823         Bitcast the argument to an integral mode.
6824         (s390_expand_vec_init): Do not call
6825         s390_contiguous_bitmask_vector_p with a scalar argument.
6826         (s390_build_signbit_mask): New function.
6827         * config/s390/vector.md (copysign<mode>3): Use bitwise
6828         operations.
6830 2020-10-12  Aldy Hernandez  <aldyh@redhat.com>
6832         PR tree-optimization/97371
6833         * range-op.cc (operator_rshift::op1_range): Ignore shifts larger than
6834         or equal to type precision.
6836 2020-10-12  Martin Liska  <mliska@suse.cz>
6838         * ipa-modref.c (merge_call_side_effects): Clear modref_parm_map
6839         fields in the vector.
6841 2020-10-12  Richard Biener  <rguenther@suse.de>
6843         * tree-vect-slp.c (vect_analyze_slp_instance): Set matches to true
6844         after successful discovery but forced split.
6846 2020-10-12  Tom de Vries  <tdevries@suse.de>
6848         * config/nvptx/nvptx.opt (-msoft-stack-reserve-local): Rename to ...
6849         (-msoft-stack-reserve-local=): ... this.
6851 2020-10-12  Richard Biener  <rguenther@suse.de>
6853         PR tree-optimization/97357
6854         * tree-ssa-loop-split.c (ssa_semi_invariant_p): Abnormal
6855         SSA names are not semi invariant.
6857 2020-10-11  Iain Sandoe  <iain@sandoe.co.uk>
6859         * config/darwin.c (darwin_globalize_label): Make a subset of
6860         metadate symbols global.
6861         (darwin_label_is_anonymous_local_objc_name): Make a subset of
6862         metadata symbols linker-visible.
6863         (darwin_override_options): Track more target OS versions, make
6864         the next_runtime version track this (unless it's set to 0 for
6865         GNU runtime).
6867 2020-10-11  Iain Sandoe  <iain@sandoe.co.uk>
6869         * config/darwin.c (darwin_globalize_label): Add protocol
6870         meta-data labels to the set that are global.
6871         (darwin_label_is_anonymous_local_objc_name): Arrange for meta-
6872         data start labels to be linker-visible.
6874 2020-10-11  Iain Sandoe  <iain@sandoe.co.uk>
6876         * config/darwin.c (darwin_objc2_section): Allow for
6877         values > 1 to represent the next runtime.
6878         (darwin_objc1_section): Likewise.
6879         * config/darwin.h (NEXT_OBJC_RUNTIME): Set the default
6880         next runtime value to be 10.5.8.
6882 2020-10-10  Jan Hubicka  <jh@suse.cz>
6884         * ipa-modref.c (modref_transform): Fix parameter map computation.
6886 2020-10-10  Tom de Vries  <tdevries@suse.de>
6888         PR target/97318
6889         * config/nvptx/nvptx.c (nvptx_replace_dot): New function.
6890         (write_fn_proto, write_fn_proto_from_insn, nvptx_output_call_insn):
6891         Use nvptx_replace_dot.
6893 2020-10-10  Tom de Vries  <tdevries@suse.de>
6895         * config/nvptx/nvptx.c (write_fn_proto_1): New function, factored out
6896         of ...
6897         (write_fn_proto): ... here.  Return void.
6899 2020-10-10  Jan Hubicka  <jh@suse.cz>
6901         * ipa-modref.c (remap_arguments): Check range in map access.
6903 2020-10-10  Jan Hubicka  <jh@suse.cz>
6905         * ipa-modref.c (modref_transform): Use reserve instead of safe_grow.
6907 2020-10-10  Jan Hubicka  <jh@suse.cz>
6909         * ipa-modref.c (modref_transform): Check that summaries are allocated.
6911 2020-10-10  Jan Hubicka  <jh@suse.cz>
6913         * ipa-modref-tree.h (struct modref_tree): Revert prevoius change.
6914         * ipa-modref.c (analyze_function): Dump original summary.
6915         (modref_read): Only set IPA if streaming summary (not optimization
6916         summary).
6917         (remap_arguments): New function.
6918         (modref_transform): New function.
6919         (compute_parm_map): Fix offset calculation.
6920         (ipa_merge_modref_summary_after_inlining): Do not merge stores when
6921         they can be ignored.
6923 2020-10-10  Jan Hubicka  <jh@suse.cz>
6925         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Improve debug dumps.
6926         (call_may_clobber_ref_p_1): Improve debug dumps.
6928 2020-10-10  Iain Sandoe  <iain@sandoe.co.uk>
6930         * config/darwin.c (output_objc_section_asm_op): Avoid extra
6931         objective-c section switches unless the linker needs them.
6933 2020-10-10  Iain Sandoe  <iain@sandoe.co.uk>
6935         * config/darwin-sections.def (objc2_data_section): New.
6936         (objc2_ivar_section): New.
6937         * config/darwin.c (darwin_objc2_section): Act on Protocol and
6938         ivar refs.
6940 2020-10-10  Iain Sandoe  <iain@sandoe.co.uk>
6942         * config/darwin-sections.def (objc2_class_names_section,
6943         objc2_method_names_section, objc2_method_types_section): New
6944         * config/darwin.c (output_objc_section_asm_op): Output new
6945         sections.  (darwin_objc2_section): Select new sections where
6946         used.
6948 2020-10-10  Iain Sandoe  <iain@sandoe.co.uk>
6950         * config/darwin.c (darwin_emit_local_bss): Amend section names to
6951         match system tools. (darwin_output_aligned_bss): Likewise.
6953 2020-10-10  Aldy Hernandez  <aldyh@redhat.com>
6955         PR tree-optimization/97359
6956         * gimple-range-gori.cc (logical_stmt_cache::cacheable_p): Only
6957         handle ANDs and ORs.
6958         (gori_compute_cache::cache_stmt): Adjust comment.
6960 2020-10-09  Vladimir Makarov  <vmakarov@redhat.com>
6962         PR rtl-optimization/97313
6963         * lra-constraints.c (match_reload): Don't keep strict_low_part in
6964         reloads for non-registers.
6966 2020-10-09  H.J. Lu  <hjl.tools@gmail.com>
6968         PR target/97148
6969         * config.gcc (extra_headers): Add x86gprintrin.h.
6970         * config/i386/adxintrin.h: Check _X86GPRINTRIN_H_INCLUDED for
6971         <x86gprintrin.h>.
6972         * config/i386/bmi2intrin.h: Likewise.
6973         * config/i386/bmiintrin.h: Likewise.
6974         * config/i386/cetintrin.h: Likewise.
6975         * config/i386/cldemoteintrin.h: Likewise.
6976         * config/i386/clflushoptintrin.h: Likewise.
6977         * config/i386/clwbintrin.h: Likewise.
6978         * config/i386/enqcmdintrin.h: Likewise.
6979         * config/i386/fxsrintrin.h: Likewise.
6980         * config/i386/ia32intrin.h: Likewise.
6981         * config/i386/lwpintrin.h: Likewise.
6982         * config/i386/lzcntintrin.h: Likewise.
6983         * config/i386/movdirintrin.h: Likewise.
6984         * config/i386/pconfigintrin.h: Likewise.
6985         * config/i386/pkuintrin.h: Likewise.
6986         * config/i386/rdseedintrin.h: Likewise.
6987         * config/i386/rtmintrin.h: Likewise.
6988         * config/i386/serializeintrin.h: Likewise.
6989         * config/i386/tbmintrin.h: Likewise.
6990         * config/i386/tsxldtrkintrin.h: Likewise.
6991         * config/i386/waitpkgintrin.h: Likewise.
6992         * config/i386/wbnoinvdintrin.h: Likewise.
6993         * config/i386/xsavecintrin.h: Likewise.
6994         * config/i386/xsaveintrin.h: Likewise.
6995         * config/i386/xsaveoptintrin.h: Likewise.
6996         * config/i386/xsavesintrin.h: Likewise.
6997         * config/i386/xtestintrin.h: Likewise.
6998         * config/i386/immintrin.h: Include <x86gprintrin.h> instead of
6999         <fxsrintrin.h>, <xsaveintrin.h>, <xsaveoptintrin.h>,
7000         <xsavesintrin.h>, <xsavecintrin.h>, <lzcntintrin.h>,
7001         <bmiintrin.h>, <bmi2intrin.h>, <xtestintrin.h>, <cetintrin.h>,
7002         <movdirintrin.h>, <sgxintrin.h, <pconfigintrin.h>,
7003         <waitpkgintrin.h>, <cldemoteintrin.h>, <enqcmdintrin.h>,
7004         <serializeintrin.h>, <tsxldtrkintrin.h>, <adxintrin.h>,
7005         <clwbintrin.h>, <clflushoptintrin.h>, <wbnoinvdintrin.h> and
7006         <pkuintrin.h>.
7007         (_wbinvd): Moved to config/i386/x86gprintrin.h.
7008         (_rdrand16_step): Likewise.
7009         (_rdrand32_step): Likewise.
7010         (_rdpid_u32): Likewise.
7011         (_readfsbase_u32): Likewise.
7012         (_readfsbase_u64): Likewise.
7013         (_readgsbase_u32): Likewise.
7014         (_readgsbase_u64): Likewise.
7015         (_writefsbase_u32): Likewise.
7016         (_writefsbase_u64): Likewise.
7017         (_writegsbase_u32): Likewise.
7018         (_writegsbase_u64): Likewise.
7019         (_rdrand64_step): Likewise.
7020         (_ptwrite64): Likewise.
7021         (_ptwrite32): Likewise.
7022         * config/i386/x86gprintrin.h: New file.
7023         * config/i386/x86intrin.h: Include <x86gprintrin.h>.  Don't
7024         include <ia32intrin.h>, <lwpintrin.h>, <tbmintrin.h>,
7025         <popcntintrin.h>, <mwaitxintrin.h> and <clzerointrin.h>.
7027 2020-10-09  Tom de Vries  <tdevries@suse.de>
7029         PR target/97348
7030         * config/nvptx/nvptx.h (ASM_SPEC): Also pass -m to nvptx-as if
7031         default is used.
7032         * config/nvptx/nvptx.opt (misa): Init with PTX_ISA_SM35.
7034 2020-10-09  Richard Biener  <rguenther@suse.de>
7036         * doc/sourcebuild.texi (vect_masked_load): Document.
7038 2020-10-09  Richard Biener  <rguenther@suse.de>
7040         PR tree-optimization/97334
7041         * tree-vect-slp.c (vect_build_slp_tree_1): Do not fatally
7042         fail lanes other than zero when BB vectorizing.
7044 2020-10-09  Jan Hubicka  <jh@suse.cz>
7046         PR ipa/97292
7047         PR ipa/97335
7048         * ipa-modref-tree.h (copy_from): Drop summary in a
7049         clone.
7051 2020-10-09  Richard Biener  <rguenther@suse.de>
7053         PR tree-optimization/97347
7054         * tree-vect-slp.c (vect_create_constant_vectors): Use
7055         edge insertion when inserting on the fallthru edge,
7056         appropriately insert at the start of BBs when inserting
7057         after PHIs.
7059 2020-10-09  Andrew MacLeod  <amacleod@redhat.com>
7061         PR tree-optimization/97317
7062         * range-op.cc (operator_cast::op1_range): Handle casts where the precision
7063         of the RHS is only 1 greater than the precision of the LHS.
7065 2020-10-09  Richard Biener  <rguenther@suse.de>
7067         * cgraphunit.c (expand_all_functions): Free tp_first_run_order.
7068         * ipa-modref.c (pass_ipa_modref::execute): Free order.
7069         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Free
7070         loop body.
7071         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Free
7072         data references upon failure.
7073         * tree-vect-loop.c (update_epilogue_loop_vinfo): Free BBs
7074         array of the original loop.
7075         * tree-vect-slp.c (vect_slp_bbs): Use an auto_vec for
7076         dataref_groups to release its memory.
7078 2020-10-09  Jakub Jelinek  <jakub@redhat.com>
7080         PR tree-optimization/94801
7081         PR target/97312
7082         * vr-values.c (vr_values::extract_range_basic) <CASE_CFN_CLZ,
7083         CASE_CFN_CTZ>: When stmt is not an internal-fn call or
7084         C?Z_DEFINED_VALUE_AT_ZERO is not 2, assume argument is not zero
7085         and thus use [0, prec-1] range unless it can be further improved.
7086         For CTZ, don't update maxi from upper bound if it was previously prec.
7087         * gimple-range.cc (gimple_ranger::range_of_builtin_call) <CASE_CFN_CLZ,
7088         CASE_CFN_CTZ>: Likewise.
7090 2020-10-09  Jakub Jelinek  <jakub@redhat.com>
7092         PR tree-optimization/97325
7093         * match.pd (FFS(nonzero) -> CTZ(nonzero) + 1): Cast argument to
7094         corresponding unsigned type.
7096 2020-10-09  Richard Biener  <rguenther@suse.de>
7098         * tree-vect-slp.c (vect_create_constant_vectors): Properly insert
7099         after PHIs.
7101 2020-10-08  Alexandre Oliva  <oliva@adacore.com>
7103         * builtins.c (mathfn_built_in_type): New.
7104         * builtins.h (mathfn_built_in_type): Declare.
7105         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use it to
7106         obtain the type expected by the intrinsic.
7108 2020-10-08  Will Schmidt  <will_schmidt@vnet.ibm.com>
7110         * config/rs6000/rs6000-builtin.def (BU_P10_MISC_2): Rename
7111         to BU_P10_POWERPC64_MISC_2.
7112         CFUGED, CNTLZDM, CNTTZDM, PDEPD, PEXTD): Call renamed macro.
7114 2020-10-08  Jan Hubicka  <jh@suse.cz>
7116         * tree-nrv.c (dest_safe_for_nrv_p): Disable tbaa in
7117         call_may_clobber_ref_p and ref_maybe_used_by_stmt_p.
7118         * tree-tailcall.c (find_tail_calls): Likewise.
7119         * tree-ssa-alias.c (call_may_clobber_ref_p): Add tbaa_p parameter.
7120         * tree-ssa-alias.h (call_may_clobber_ref_p): Update prototype.
7121         * tree-ssa-sccvn.c (vn_reference_lookup_3): Pass data->tbaa_p
7122         to call_may_clobber_ref_p_1.
7124 2020-10-08  Mark Wielaard  <mark@klomp.org>
7126         * dwarf2out.c (dwarf2out_finish): Emit .file 0 entry when
7127         generating DWARF5 .debug_line table through gas.
7129 2020-10-08  John Henning  <john.henning@oracle.com>
7131         PR other/97309
7132         * doc/invoke.texi: Improve documentation of
7133         -fallow-store-data-races.
7135 2020-10-08  Christophe Lyon  <christophe.lyon@linaro.org>
7137         PR target/96914
7138         * config/arm/arm_mve.h (__arm_vcvtnq_u32_f32): New.
7140 2020-10-08  Martin Liska  <mliska@suse.cz>
7141             Richard Biener  <rguenther@suse.de>
7143         * tree-vectorizer.h (_bb_vec_info::const_iterator): Remove.
7144         (_bb_vec_info::const_reverse_iterator): Likewise.
7145         (_bb_vec_info::region_stmts): Likewise.
7146         (_bb_vec_info::reverse_region_stmts): Likewise.
7147         (_bb_vec_info::_bb_vec_info): Adjust.
7148         (_bb_vec_info::bb): Remove.
7149         (_bb_vec_info::region_begin): Remove.
7150         (_bb_vec_info::region_end): Remove.
7151         (_bb_vec_info::bbs): New vector of BBs.
7152         (vect_slp_function): Declare.
7153         * tree-vect-patterns.c (vect_determine_precisions): Use
7154         regular stmt iteration.
7155         (vect_pattern_recog): Likewise.
7156         * tree-vect-slp.c: Include cfganal.h, tree-eh.h and tree-cfg.h.
7157         (vect_build_slp_tree_1): Properly refuse to vectorize
7158         volatile and throwing stmts.
7159         (vect_build_slp_tree_2): Pass group-size down to
7160         get_vectype_for_scalar_type.
7161         (_bb_vec_info::_bb_vec_info): Use regular stmt iteration,
7162         adjust for changed region specification.
7163         (_bb_vec_info::~_bb_vec_info): Likewise.
7164         (vect_slp_check_for_constructors): Likewise.
7165         (vect_slp_region): Likewise.
7166         (vect_slp_bbs): New worker operating on a vector of BBs.
7167         (vect_slp_bb): Wrap it.
7168         (vect_slp_function): New function splitting the function
7169         into multi-BB regions.
7170         (vect_create_constant_vectors): Handle the case of inserting
7171         after a throwing def.
7172         (vect_schedule_slp_instance): Adjust.
7173         * tree-vectorizer.c (vec_info::remove_stmt): Simplify again.
7174         (vec_info::insert_seq_on_entry): Adjust.
7175         (pass_slp_vectorize::execute): Also init PHIs.  Call
7176         vect_slp_function.
7178 2020-10-08  Richard Biener  <rguenther@suse.de>
7180         PR tree-optimization/97330
7181         * tree-ssa-sink.c (statement_sink_location): Avoid skipping
7182         PHIs when they dominate the insert location.
7184 2020-10-08  Jan Hubicka  <jh@suse.cz>
7186         * ipa-modref.c (get_access): Fix handling of offsets.
7187         * tree-ssa-alias.c (modref_may_conflict): Watch for overflows.
7189 2020-10-08  Martin Liska  <mliska@suse.cz>
7191         * dbgcnt.def (DEBUG_COUNTER): Add ipa_mod_ref debug counter.
7192         * tree-ssa-alias.c (modref_may_conflict): Handle the counter.
7194 2020-10-08  Richard Biener  <rguenther@suse.de>
7196         * tree-vectorizer.c (try_vectorize_loop_1): Do not dump
7197         "basic block vectorized".
7198         (pass_slp_vectorize::execute): Likewise.
7199         * tree-vect-slp.c (vect_analyze_slp_instance): Avoid
7200         re-analyzing split single stmts.
7202 2020-10-08  Christophe Lyon  <christophe.lyon@linaro.org>
7204         PR target/96914
7205         * config/arm/arm_mve.h (vqrdmlashq_n_u8, vqrdmlashq_n_u16)
7206         (vqrdmlashq_n_u32, vqrdmlahq_n_u8, vqrdmlahq_n_u16)
7207         (vqrdmlahq_n_u32, vqdmlahq_n_u8, vqdmlahq_n_u16, vqdmlahq_n_u32)
7208         (vmlaldavaxq_p_u16, vmlaldavaxq_p_u32): Remove.
7209         * config/arm/arm_mve_builtins.def (vqrdmlashq_n_u, vqrdmlahq_n_u)
7210         (vqdmlahq_n_u, vmlaldavaxq_p_u): Remove.
7211         * config/arm/unspecs.md (VQDMLAHQ_N_U, VQRDMLAHQ_N_U)
7212         (VQRDMLASHQ_N_U)
7213         (VMLALDAVAXQ_P_U): Remove unspecs.
7214         * config/arm/iterators.md (VQDMLAHQ_N_U, VQRDMLAHQ_N_U)
7215         (VQRDMLASHQ_N_U, VMLALDAVAXQ_P_U): Remove attributes.
7216         (VQDMLAHQ_N, VQRDMLAHQ_N, VQRDMLASHQ_N, VMLALDAVAXQ_P): Remove
7217         unsigned variants from iterators.
7218         * config/arm/mve.md (mve_vqdmlahq_n_<supf><mode>)
7219         (mve_vqrdmlahq_n_<supf><mode>)
7220         (mve_vqrdmlashq_n_<supf><mode>, mve_vmlaldavaxq_p_<supf><mode>):
7221         Update comment.
7223 2020-10-08  Christophe Lyon  <christophe.lyon@linaro.org>
7225         PR target/96914
7226         * config/arm/arm_mve.h (vqdmlashq, vqdmlashq_m): Define.
7227         * config/arm/arm_mve_builtins.def (vqdmlashq_n_s)
7228         (vqdmlashq_m_n_s,): New.
7229         * config/arm/unspecs.md (VQDMLASHQ_N_S, VQDMLASHQ_M_N_S): New
7230         unspecs.
7231         * config/arm/iterators.md (VQDMLASHQ_N_S, VQDMLASHQ_M_N_S): New
7232         attributes.
7233         (VQDMLASHQ_N): New iterator.
7234         * config/arm/mve.md (mve_vqdmlashq_n_, mve_vqdmlashq_m_n_s): New
7235         patterns.
7237 2020-10-08  Jakub Jelinek  <jakub@redhat.com>
7239         PR target/97322
7240         * config/arm/arm.c (arm_expand_divmod_libfunc): Pass mode instead of
7241         GET_MODE (op0) or GET_MODE (op1) to emit_library_call_value.
7243 2020-10-08  Aldy Hernandez  <aldyh@redhat.com>
7245         PR tree-optimization/97325
7246         * gimple-range.cc (gimple_ranger::range_of_builtin_call): Handle
7247         negative numbers in __builtin_ffs and __builtin_popcount.
7249 2020-10-08  Aldy Hernandez  <aldyh@redhat.com>
7251         PR tree-optimization/97315
7252         * range-op.cc (value_range_with_overflow): Change any
7253         non-overflow calculation in which both bounds are
7254         overflow/underflow to be undefined.
7256 2020-10-08  Aldy Hernandez  <aldyh@redhat.com>
7258         PR tree-optimization/97315
7259         * gimple-ssa-evrp.c (hybrid_folder::choose_value): Removes the
7260         trap and instead annotates the listing.
7262 2020-10-08  Jakub Jelinek  <jakub@redhat.com>
7264         PR sanitizer/97294
7265         * tree-cfg.c (move_block_to_fn): Call notice_special_calls on
7266         call stmts being moved into dest_cfun.
7267         * omp-low.c (lower_rec_input_clauses): Set cfun->calls_alloca when
7268         adding __builtin_alloca_with_align call without gimplification.
7270 2020-10-07  Aldy Hernandez  <aldyh@redhat.com>
7272         * common.opt (-fevrp-mode): Rename and move...
7273         * params.opt (--param=evrp-mode): ...here.
7274         * gimple-range.h (DEBUG_RANGE_CACHE): Use param_evrp_mode instead
7275         of flag_evrp_mode.
7276         * gimple-ssa-evrp.c (rvrp_folder): Same.
7277         (hybrid_folder): Same.
7278         (execute_early_vrp): Same.
7280 2020-10-07  Richard Biener  <rguenther@suse.de>
7282         PR tree-optimization/97307
7283         * tree-ssa-sink.c (statement_sink_location): Change heuristic
7284         for not skipping stores to look for virtual definitions
7285         rather than uses.
7287 2020-10-07  Andrew MacLeod  <amacleod@redhat.com>
7289         * value-range.h (irange_allocator::allocate): Allocate in two hunks
7290         instead of using the variably-sized trailing array approach.
7292 2020-10-07  David Malcolm  <dmalcolm@redhat.com>
7294         * doc/invoke.texi (-fdiagnostics-plain-output): Add
7295         -fdiagnostics-path-format=separate-events to list of
7296         options injected by -fdiagnostics-plain-output.
7297         * opts-common.c (decode_cmdline_options_to_array): Likewise.
7299 2020-10-07  Martin Jambor  <mjambor@suse.cz>
7301         PR ipa/96394
7302         * ipa-prop.c (update_indirect_edges_after_inlining): Do not add
7303         resolved speculation edges to vector of new direct edges even in
7304         presence of multiple speculative direct edges for a single call.
7306 2020-10-07  Andrew Stubbs  <ams@codesourcery.com>
7308         * config/gcn/gcn.md (unspec): Add UNSPEC_ADDPTR.
7309         (addptrdi3): Add SGPR alternative.
7311 2020-10-07  Mark Wielaard  <mark@klomp.org>
7313         * dwarf2out.c (add_filepath_AT_string): New function.
7314         (asm_outputs_debug_line_str): Likewise.
7315         (add_filename_attribute): Likewise.
7316         (add_comp_dir_attribute): Call add_filepath_AT_string.
7317         (gen_compile_unit_die): Call add_filename_attribute for name.
7318         (init_sections_and_labels): Init debug_line_str_section when
7319         asm_outputs_debug_line_str return true.
7320         (dwarf2out_early_finish): Remove DW_AT_name and DW_AT_comp_dir
7321         hack and call add_filename_attribute for the remap_debug_filename.
7323 2020-10-07  Jakub Jelinek  <jakub@redhat.com>
7325         * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG,
7326         HAVE_AS_WORKING_DWARF_4_FLAG): New tests.
7327         * gcc.c (ASM_DEBUG_DWARF_OPTION): Define.
7328         (ASM_DEBUG_SPEC): Use ASM_DEBUG_DWARF_OPTION instead of
7329         "--gdwarf2".  Use %{cond:opt1;:opt2} style.
7330         (ASM_DEBUG_OPTION_DWARF_OPT): Define.
7331         (ASM_DEBUG_OPTION_SPEC): Define.
7332         (asm_debug_option): New variable.
7333         (asm_options): Add "%(asm_debug_option)".
7334         (static_specs): Add asm_debug_option entry.
7335         (static_spec_functions): Add dwarf-version-gt.
7336         (debug_level_greater_than_spec_func): New function.
7337         * config/darwin.h (ASM_DEBUG_OPTION_SPEC): Define.
7338         * config/darwin9.h (ASM_DEBUG_OPTION_SPEC): Redefine.
7339         * config.in: Regenerated.
7340         * configure: Regenerated.
7342 2020-10-07  Jakub Jelinek  <jakub@redhat.com>
7344         PR bootstrap/97305
7345         * optc-save-gen.awk: Don't declare mask variable if explicit_mask
7346         array is not present.
7348 2020-10-07  Jakub Jelinek  <jakub@redhat.com>
7350         * omp-expand.c (expand_omp_simd): Don't emit MIN_EXPR and PLUS_EXPR
7351         at the end of entry_bb and innermost init_bb, instead force arguments
7352         for MIN_EXPR into temporaries in both cases and jump to a new bb that
7353         performs MIN_EXPR and PLUS_EXPR.
7355 2020-10-07  Tom de Vries  <tdevries@suse.de>
7357         * tree-ssa-loop-ch.c (ch_base::copy_headers): Add missing NULL test
7358         for dump_file.
7360 2020-10-06  Andrew MacLeod  <amacleod@redhat.com>
7362         * flag-types.h (enum evrp_mode): New enumerated type EVRP_MODE_*.
7363         * common.opt (fevrp-mode): New undocumented flag.
7364         * gimple-ssa-evrp.c: Include gimple-range.h
7365         (class rvrp_folder): EVRP folding using ranger exclusively.
7366         (rvrp_folder::rvrp_folder): New.
7367         (rvrp_folder::~rvrp_folder): New.
7368         (rvrp_folder::value_of_expr): New.  Use rangers value_of_expr.
7369         (rvrp_folder::value_on_edge): New.  Use rangers value_on_edge.
7370         (rvrp_folder::value_of_Stmt): New.  Use rangers value_of_stmt.
7371         (rvrp_folder::fold_stmt): New.  Call the simplifier.
7372         (class hybrid_folder): EVRP folding using both engines.
7373         (hybrid_folder::hybrid_folder): New.
7374         (hybrid_folder::~hybrid_folder): New.
7375         (hybrid_folder::fold_stmt): New.  Simplify with one engne, then the
7376         other.
7377         (hybrid_folder::value_of_expr): New.  Use both value routines.
7378         (hybrid_folder::value_on_edge): New.  Use both value routines.
7379         (hybrid_folder::value_of_stmt): New.  Use both value routines.
7380         (hybrid_folder::choose_value): New.  Choose between range_analzyer and
7381         rangers values.
7382         (execute_early_vrp): Choose a folder based on flag_evrp_mode.
7383         * vr-values.c (simplify_using_ranges::fold_cond): Try range_of_stmt
7384         first to see if it returns a value.
7385         (simplify_using_ranges::simplify_switch_using_ranges): Return true if
7386         any changes were made to the switch.
7388 2020-10-06  Andrew MacLeod  <amacleod@redhat.com>
7390         * Makefile.in (OBJS): Add gimple-range*.o.
7391         * gimple-range.h: New file.
7392         * gimple-range.cc: New file.
7393         * gimple-range-cache.h: New file.
7394         * gimple-range-cache.cc: New file.
7395         * gimple-range-edge.h: New file.
7396         * gimple-range-edge.cc: New file.
7397         * gimple-range-gori.h: New file.
7398         * gimple-range-gori.cc: New file.
7400 2020-10-06  Dennis Zhang  <dennis.zhang@arm.com>
7402         * config/arm/arm.c (arm_preferred_simd_mode): Enable MVE SIMD modes.
7404 2020-10-06  Tom de Vries  <tdevries@suse.de>
7406         PR middle-end/90861
7407         * gimplify.c (gimplify_bind_expr): Handle lookup in
7408         oacc_declare_returns using key with decl-expr.
7410 2020-10-06  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
7412         * config/arm/iterators.md (MVE_types): Move mode iterator from mve.md to
7413         iterators.md.
7414         (MVE_VLD_ST): Likewise.
7415         (MVE_0): Likewise.
7416         (MVE_1): Likewise.
7417         (MVE_3): Likewise.
7418         (MVE_2): Likewise.
7419         (MVE_5): Likewise.
7420         (MVE_6): Likewise.
7421         (MVE_CNVT): Move mode attribute iterator from mve.md to iterators.md.
7422         (MVE_LANES): Likewise.
7423         (MVE_constraint): Likewise.
7424         (MVE_constraint1): Likewise.
7425         (MVE_constraint2): Likewise.
7426         (MVE_constraint3): Likewise.
7427         (MVE_pred): Likewise.
7428         (MVE_pred1): Likewise.
7429         (MVE_pred2): Likewise.
7430         (MVE_pred3): Likewise.
7431         (MVE_B_ELEM): Likewise.
7432         (MVE_H_ELEM): Likewise.
7433         (V_sz_elem1): Likewise.
7434         (V_extr_elem): Likewise.
7435         (earlyclobber_32): Likewise.
7436         (supf): Move int attribute from mve.md to iterators.md.
7437         (mode1): Likewise.
7438         (VCVTQ_TO_F): Move int iterator from mve.md to iterators.md.
7439         (VMVNQ_N): Likewise.
7440         (VREV64Q): Likewise.
7441         (VCVTQ_FROM_F): Likewise.
7442         (VREV16Q): Likewise.
7443         (VCVTAQ): Likewise.
7444         (VMVNQ): Likewise.
7445         (VDUPQ_N): Likewise.
7446         (VCLZQ): Likewise.
7447         (VADDVQ): Likewise.
7448         (VREV32Q): Likewise.
7449         (VMOVLBQ): Likewise.
7450         (VMOVLTQ): Likewise.
7451         (VCVTPQ): Likewise.
7452         (VCVTNQ): Likewise.
7453         (VCVTMQ): Likewise.
7454         (VADDLVQ): Likewise.
7455         (VCTPQ): Likewise.
7456         (VCTPQ_M): Likewise.
7457         (VCVTQ_N_TO_F): Likewise.
7458         (VCREATEQ): Likewise.
7459         (VSHRQ_N): Likewise.
7460         (VCVTQ_N_FROM_F): Likewise.
7461         (VADDLVQ_P): Likewise.
7462         (VCMPNEQ): Likewise.
7463         (VSHLQ): Likewise.
7464         (VABDQ): Likewise.
7465         (VADDQ_N): Likewise.
7466         (VADDVAQ): Likewise.
7467         (VADDVQ_P): Likewise.
7468         (VANDQ): Likewise.
7469         (VBICQ): Likewise.
7470         (VBRSRQ_N): Likewise.
7471         (VCADDQ_ROT270): Likewise.
7472         (VCADDQ_ROT90): Likewise.
7473         (VCMPEQQ): Likewise.
7474         (VCMPEQQ_N): Likewise.
7475         (VCMPNEQ_N): Likewise.
7476         (VEORQ): Likewise.
7477         (VHADDQ): Likewise.
7478         (VHADDQ_N): Likewise.
7479         (VHSUBQ): Likewise.
7480         (VHSUBQ_N): Likewise.
7481         (VMAXQ): Likewise.
7482         (VMAXVQ): Likewise.
7483         (VMINQ): Likewise.
7484         (VMINVQ): Likewise.
7485         (VMLADAVQ): Likewise.
7486         (VMULHQ): Likewise.
7487         (VMULLBQ_INT): Likewise.
7488         (VMULLTQ_INT): Likewise.
7489         (VMULQ): Likewise.
7490         (VMULQ_N): Likewise.
7491         (VORNQ): Likewise.
7492         (VORRQ): Likewise.
7493         (VQADDQ): Likewise.
7494         (VQADDQ_N): Likewise.
7495         (VQRSHLQ): Likewise.
7496         (VQRSHLQ_N): Likewise.
7497         (VQSHLQ): Likewise.
7498         (VQSHLQ_N): Likewise.
7499         (VQSHLQ_R): Likewise.
7500         (VQSUBQ): Likewise.
7501         (VQSUBQ_N): Likewise.
7502         (VRHADDQ): Likewise.
7503         (VRMULHQ): Likewise.
7504         (VRSHLQ): Likewise.
7505         (VRSHLQ_N): Likewise.
7506         (VRSHRQ_N): Likewise.
7507         (VSHLQ_N): Likewise.
7508         (VSHLQ_R): Likewise.
7509         (VSUBQ): Likewise.
7510         (VSUBQ_N): Likewise.
7511         (VADDLVAQ): Likewise.
7512         (VBICQ_N): Likewise.
7513         (VMLALDAVQ): Likewise.
7514         (VMLALDAVXQ): Likewise.
7515         (VMOVNBQ): Likewise.
7516         (VMOVNTQ): Likewise.
7517         (VORRQ_N): Likewise.
7518         (VQMOVNBQ): Likewise.
7519         (VQMOVNTQ): Likewise.
7520         (VSHLLBQ_N): Likewise.
7521         (VSHLLTQ_N): Likewise.
7522         (VRMLALDAVHQ): Likewise.
7523         (VBICQ_M_N): Likewise.
7524         (VCVTAQ_M): Likewise.
7525         (VCVTQ_M_TO_F): Likewise.
7526         (VQRSHRNBQ_N): Likewise.
7527         (VABAVQ): Likewise.
7528         (VSHLCQ): Likewise.
7529         (VRMLALDAVHAQ): Likewise.
7530         (VADDVAQ_P): Likewise.
7531         (VCLZQ_M): Likewise.
7532         (VCMPEQQ_M_N): Likewise.
7533         (VCMPEQQ_M): Likewise.
7534         (VCMPNEQ_M_N): Likewise.
7535         (VCMPNEQ_M): Likewise.
7536         (VDUPQ_M_N): Likewise.
7537         (VMAXVQ_P): Likewise.
7538         (VMINVQ_P): Likewise.
7539         (VMLADAVAQ): Likewise.
7540         (VMLADAVQ_P): Likewise.
7541         (VMLAQ_N): Likewise.
7542         (VMLASQ_N): Likewise.
7543         (VMVNQ_M): Likewise.
7544         (VPSELQ): Likewise.
7545         (VQDMLAHQ_N): Likewise.
7546         (VQRDMLAHQ_N): Likewise.
7547         (VQRDMLASHQ_N): Likewise.
7548         (VQRSHLQ_M_N): Likewise.
7549         (VQSHLQ_M_R): Likewise.
7550         (VREV64Q_M): Likewise.
7551         (VRSHLQ_M_N): Likewise.
7552         (VSHLQ_M_R): Likewise.
7553         (VSLIQ_N): Likewise.
7554         (VSRIQ_N): Likewise.
7555         (VMLALDAVQ_P): Likewise.
7556         (VQMOVNBQ_M): Likewise.
7557         (VMOVLTQ_M): Likewise.
7558         (VMOVNBQ_M): Likewise.
7559         (VRSHRNTQ_N): Likewise.
7560         (VORRQ_M_N): Likewise.
7561         (VREV32Q_M): Likewise.
7562         (VREV16Q_M): Likewise.
7563         (VQRSHRNTQ_N): Likewise.
7564         (VMOVNTQ_M): Likewise.
7565         (VMOVLBQ_M): Likewise.
7566         (VMLALDAVAQ): Likewise.
7567         (VQSHRNBQ_N): Likewise.
7568         (VSHRNBQ_N): Likewise.
7569         (VRSHRNBQ_N): Likewise.
7570         (VMLALDAVXQ_P): Likewise.
7571         (VQMOVNTQ_M): Likewise.
7572         (VMVNQ_M_N): Likewise.
7573         (VQSHRNTQ_N): Likewise.
7574         (VMLALDAVAXQ): Likewise.
7575         (VSHRNTQ_N): Likewise.
7576         (VCVTMQ_M): Likewise.
7577         (VCVTNQ_M): Likewise.
7578         (VCVTPQ_M): Likewise.
7579         (VCVTQ_M_N_FROM_F): Likewise.
7580         (VCVTQ_M_FROM_F): Likewise.
7581         (VRMLALDAVHQ_P): Likewise.
7582         (VADDLVAQ_P): Likewise.
7583         (VABAVQ_P): Likewise.
7584         (VSHLQ_M): Likewise.
7585         (VSRIQ_M_N): Likewise.
7586         (VSUBQ_M): Likewise.
7587         (VCVTQ_M_N_TO_F): Likewise.
7588         (VHSUBQ_M): Likewise.
7589         (VSLIQ_M_N): Likewise.
7590         (VRSHLQ_M): Likewise.
7591         (VMINQ_M): Likewise.
7592         (VMULLBQ_INT_M): Likewise.
7593         (VMULHQ_M): Likewise.
7594         (VMULQ_M): Likewise.
7595         (VHSUBQ_M_N): Likewise.
7596         (VHADDQ_M_N): Likewise.
7597         (VORRQ_M): Likewise.
7598         (VRMULHQ_M): Likewise.
7599         (VQADDQ_M): Likewise.
7600         (VRSHRQ_M_N): Likewise.
7601         (VQSUBQ_M_N): Likewise.
7602         (VADDQ_M): Likewise.
7603         (VORNQ_M): Likewise.
7604         (VRHADDQ_M): Likewise.
7605         (VQSHLQ_M): Likewise.
7606         (VANDQ_M): Likewise.
7607         (VBICQ_M): Likewise.
7608         (VSHLQ_M_N): Likewise.
7609         (VCADDQ_ROT270_M): Likewise.
7610         (VQRSHLQ_M): Likewise.
7611         (VQADDQ_M_N): Likewise.
7612         (VADDQ_M_N): Likewise.
7613         (VMAXQ_M): Likewise.
7614         (VQSUBQ_M): Likewise.
7615         (VMLASQ_M_N): Likewise.
7616         (VMLADAVAQ_P): Likewise.
7617         (VBRSRQ_M_N): Likewise.
7618         (VMULQ_M_N): Likewise.
7619         (VCADDQ_ROT90_M): Likewise.
7620         (VMULLTQ_INT_M): Likewise.
7621         (VEORQ_M): Likewise.
7622         (VSHRQ_M_N): Likewise.
7623         (VSUBQ_M_N): Likewise.
7624         (VHADDQ_M): Likewise.
7625         (VABDQ_M): Likewise.
7626         (VMLAQ_M_N): Likewise.
7627         (VQSHLQ_M_N): Likewise.
7628         (VMLALDAVAQ_P): Likewise.
7629         (VMLALDAVAXQ_P): Likewise.
7630         (VQRSHRNBQ_M_N): Likewise.
7631         (VQRSHRNTQ_M_N): Likewise.
7632         (VQSHRNBQ_M_N): Likewise.
7633         (VQSHRNTQ_M_N): Likewise.
7634         (VRSHRNBQ_M_N): Likewise.
7635         (VRSHRNTQ_M_N): Likewise.
7636         (VSHLLBQ_M_N): Likewise.
7637         (VSHLLTQ_M_N): Likewise.
7638         (VSHRNBQ_M_N): Likewise.
7639         (VSHRNTQ_M_N): Likewise.
7640         (VSTRWSBQ): Likewise.
7641         (VSTRBSOQ): Likewise.
7642         (VSTRBQ): Likewise.
7643         (VLDRBGOQ): Likewise.
7644         (VLDRBQ): Likewise.
7645         (VLDRWGBQ): Likewise.
7646         (VLD1Q): Likewise.
7647         (VLDRHGOQ): Likewise.
7648         (VLDRHGSOQ): Likewise.
7649         (VLDRHQ): Likewise.
7650         (VLDRWQ): Likewise.
7651         (VLDRDGBQ): Likewise.
7652         (VLDRDGOQ): Likewise.
7653         (VLDRDGSOQ): Likewise.
7654         (VLDRWGOQ): Likewise.
7655         (VLDRWGSOQ): Likewise.
7656         (VST1Q): Likewise.
7657         (VSTRHSOQ): Likewise.
7658         (VSTRHSSOQ): Likewise.
7659         (VSTRHQ): Likewise.
7660         (VSTRWQ): Likewise.
7661         (VSTRDSBQ): Likewise.
7662         (VSTRDSOQ): Likewise.
7663         (VSTRDSSOQ): Likewise.
7664         (VSTRWSOQ): Likewise.
7665         (VSTRWSSOQ): Likewise.
7666         (VSTRWSBWBQ): Likewise.
7667         (VLDRWGBWBQ): Likewise.
7668         (VSTRDSBWBQ): Likewise.
7669         (VLDRDGBWBQ): Likewise.
7670         (VADCIQ): Likewise.
7671         (VADCIQ_M): Likewise.
7672         (VSBCQ): Likewise.
7673         (VSBCQ_M): Likewise.
7674         (VSBCIQ): Likewise.
7675         (VSBCIQ_M): Likewise.
7676         (VADCQ): Likewise.
7677         (VADCQ_M): Likewise.
7678         (UQRSHLLQ): Likewise.
7679         (SQRSHRLQ): Likewise.
7680         (VSHLCQ_M): Likewise.
7681         * config/arm/mve.md (MVE_types): Move mode iterator to iterators.md from mve.md.
7682         (MVE_VLD_ST): Likewise.
7683         (MVE_0): Likewise.
7684         (MVE_1): Likewise.
7685         (MVE_3): Likewise.
7686         (MVE_2): Likewise.
7687         (MVE_5): Likewise.
7688         (MVE_6): Likewise.
7689         (MVE_CNVT): Move mode attribute iterator to iterators.md from mve.md.
7690         (MVE_LANES): Likewise.
7691         (MVE_constraint): Likewise.
7692         (MVE_constraint1): Likewise.
7693         (MVE_constraint2): Likewise.
7694         (MVE_constraint3): Likewise.
7695         (MVE_pred): Likewise.
7696         (MVE_pred1): Likewise.
7697         (MVE_pred2): Likewise.
7698         (MVE_pred3): Likewise.
7699         (MVE_B_ELEM): Likewise.
7700         (MVE_H_ELEM): Likewise.
7701         (V_sz_elem1): Likewise.
7702         (V_extr_elem): Likewise.
7703         (earlyclobber_32): Likewise.
7704         (supf): Move int attribute to iterators.md from mve.md.
7705         (mode1): Likewise.
7706         (VCVTQ_TO_F): Move int iterator to iterators.md from mve.md.
7707         (VMVNQ_N): Likewise.
7708         (VREV64Q): Likewise.
7709         (VCVTQ_FROM_F): Likewise.
7710         (VREV16Q): Likewise.
7711         (VCVTAQ): Likewise.
7712         (VMVNQ): Likewise.
7713         (VDUPQ_N): Likewise.
7714         (VCLZQ): Likewise.
7715         (VADDVQ): Likewise.
7716         (VREV32Q): Likewise.
7717         (VMOVLBQ): Likewise.
7718         (VMOVLTQ): Likewise.
7719         (VCVTPQ): Likewise.
7720         (VCVTNQ): Likewise.
7721         (VCVTMQ): Likewise.
7722         (VADDLVQ): Likewise.
7723         (VCTPQ): Likewise.
7724         (VCTPQ_M): Likewise.
7725         (VCVTQ_N_TO_F): Likewise.
7726         (VCREATEQ): Likewise.
7727         (VSHRQ_N): Likewise.
7728         (VCVTQ_N_FROM_F): Likewise.
7729         (VADDLVQ_P): Likewise.
7730         (VCMPNEQ): Likewise.
7731         (VSHLQ): Likewise.
7732         (VABDQ): Likewise.
7733         (VADDQ_N): Likewise.
7734         (VADDVAQ): Likewise.
7735         (VADDVQ_P): Likewise.
7736         (VANDQ): Likewise.
7737         (VBICQ): Likewise.
7738         (VBRSRQ_N): Likewise.
7739         (VCADDQ_ROT270): Likewise.
7740         (VCADDQ_ROT90): Likewise.
7741         (VCMPEQQ): Likewise.
7742         (VCMPEQQ_N): Likewise.
7743         (VCMPNEQ_N): Likewise.
7744         (VEORQ): Likewise.
7745         (VHADDQ): Likewise.
7746         (VHADDQ_N): Likewise.
7747         (VHSUBQ): Likewise.
7748         (VHSUBQ_N): Likewise.
7749         (VMAXQ): Likewise.
7750         (VMAXVQ): Likewise.
7751         (VMINQ): Likewise.
7752         (VMINVQ): Likewise.
7753         (VMLADAVQ): Likewise.
7754         (VMULHQ): Likewise.
7755         (VMULLBQ_INT): Likewise.
7756         (VMULLTQ_INT): Likewise.
7757         (VMULQ): Likewise.
7758         (VMULQ_N): Likewise.
7759         (VORNQ): Likewise.
7760         (VORRQ): Likewise.
7761         (VQADDQ): Likewise.
7762         (VQADDQ_N): Likewise.
7763         (VQRSHLQ): Likewise.
7764         (VQRSHLQ_N): Likewise.
7765         (VQSHLQ): Likewise.
7766         (VQSHLQ_N): Likewise.
7767         (VQSHLQ_R): Likewise.
7768         (VQSUBQ): Likewise.
7769         (VQSUBQ_N): Likewise.
7770         (VRHADDQ): Likewise.
7771         (VRMULHQ): Likewise.
7772         (VRSHLQ): Likewise.
7773         (VRSHLQ_N): Likewise.
7774         (VRSHRQ_N): Likewise.
7775         (VSHLQ_N): Likewise.
7776         (VSHLQ_R): Likewise.
7777         (VSUBQ): Likewise.
7778         (VSUBQ_N): Likewise.
7779         (VADDLVAQ): Likewise.
7780         (VBICQ_N): Likewise.
7781         (VMLALDAVQ): Likewise.
7782         (VMLALDAVXQ): Likewise.
7783         (VMOVNBQ): Likewise.
7784         (VMOVNTQ): Likewise.
7785         (VORRQ_N): Likewise.
7786         (VQMOVNBQ): Likewise.
7787         (VQMOVNTQ): Likewise.
7788         (VSHLLBQ_N): Likewise.
7789         (VSHLLTQ_N): Likewise.
7790         (VRMLALDAVHQ): Likewise.
7791         (VBICQ_M_N): Likewise.
7792         (VCVTAQ_M): Likewise.
7793         (VCVTQ_M_TO_F): Likewise.
7794         (VQRSHRNBQ_N): Likewise.
7795         (VABAVQ): Likewise.
7796         (VSHLCQ): Likewise.
7797         (VRMLALDAVHAQ): Likewise.
7798         (VADDVAQ_P): Likewise.
7799         (VCLZQ_M): Likewise.
7800         (VCMPEQQ_M_N): Likewise.
7801         (VCMPEQQ_M): Likewise.
7802         (VCMPNEQ_M_N): Likewise.
7803         (VCMPNEQ_M): Likewise.
7804         (VDUPQ_M_N): Likewise.
7805         (VMAXVQ_P): Likewise.
7806         (VMINVQ_P): Likewise.
7807         (VMLADAVAQ): Likewise.
7808         (VMLADAVQ_P): Likewise.
7809         (VMLAQ_N): Likewise.
7810         (VMLASQ_N): Likewise.
7811         (VMVNQ_M): Likewise.
7812         (VPSELQ): Likewise.
7813         (VQDMLAHQ_N): Likewise.
7814         (VQRDMLAHQ_N): Likewise.
7815         (VQRDMLASHQ_N): Likewise.
7816         (VQRSHLQ_M_N): Likewise.
7817         (VQSHLQ_M_R): Likewise.
7818         (VREV64Q_M): Likewise.
7819         (VRSHLQ_M_N): Likewise.
7820         (VSHLQ_M_R): Likewise.
7821         (VSLIQ_N): Likewise.
7822         (VSRIQ_N): Likewise.
7823         (VMLALDAVQ_P): Likewise.
7824         (VQMOVNBQ_M): Likewise.
7825         (VMOVLTQ_M): Likewise.
7826         (VMOVNBQ_M): Likewise.
7827         (VRSHRNTQ_N): Likewise.
7828         (VORRQ_M_N): Likewise.
7829         (VREV32Q_M): Likewise.
7830         (VREV16Q_M): Likewise.
7831         (VQRSHRNTQ_N): Likewise.
7832         (VMOVNTQ_M): Likewise.
7833         (VMOVLBQ_M): Likewise.
7834         (VMLALDAVAQ): Likewise.
7835         (VQSHRNBQ_N): Likewise.
7836         (VSHRNBQ_N): Likewise.
7837         (VRSHRNBQ_N): Likewise.
7838         (VMLALDAVXQ_P): Likewise.
7839         (VQMOVNTQ_M): Likewise.
7840         (VMVNQ_M_N): Likewise.
7841         (VQSHRNTQ_N): Likewise.
7842         (VMLALDAVAXQ): Likewise.
7843         (VSHRNTQ_N): Likewise.
7844         (VCVTMQ_M): Likewise.
7845         (VCVTNQ_M): Likewise.
7846         (VCVTPQ_M): Likewise.
7847         (VCVTQ_M_N_FROM_F): Likewise.
7848         (VCVTQ_M_FROM_F): Likewise.
7849         (VRMLALDAVHQ_P): Likewise.
7850         (VADDLVAQ_P): Likewise.
7851         (VABAVQ_P): Likewise.
7852         (VSHLQ_M): Likewise.
7853         (VSRIQ_M_N): Likewise.
7854         (VSUBQ_M): Likewise.
7855         (VCVTQ_M_N_TO_F): Likewise.
7856         (VHSUBQ_M): Likewise.
7857         (VSLIQ_M_N): Likewise.
7858         (VRSHLQ_M): Likewise.
7859         (VMINQ_M): Likewise.
7860         (VMULLBQ_INT_M): Likewise.
7861         (VMULHQ_M): Likewise.
7862         (VMULQ_M): Likewise.
7863         (VHSUBQ_M_N): Likewise.
7864         (VHADDQ_M_N): Likewise.
7865         (VORRQ_M): Likewise.
7866         (VRMULHQ_M): Likewise.
7867         (VQADDQ_M): Likewise.
7868         (VRSHRQ_M_N): Likewise.
7869         (VQSUBQ_M_N): Likewise.
7870         (VADDQ_M): Likewise.
7871         (VORNQ_M): Likewise.
7872         (VRHADDQ_M): Likewise.
7873         (VQSHLQ_M): Likewise.
7874         (VANDQ_M): Likewise.
7875         (VBICQ_M): Likewise.
7876         (VSHLQ_M_N): Likewise.
7877         (VCADDQ_ROT270_M): Likewise.
7878         (VQRSHLQ_M): Likewise.
7879         (VQADDQ_M_N): Likewise.
7880         (VADDQ_M_N): Likewise.
7881         (VMAXQ_M): Likewise.
7882         (VQSUBQ_M): Likewise.
7883         (VMLASQ_M_N): Likewise.
7884         (VMLADAVAQ_P): Likewise.
7885         (VBRSRQ_M_N): Likewise.
7886         (VMULQ_M_N): Likewise.
7887         (VCADDQ_ROT90_M): Likewise.
7888         (VMULLTQ_INT_M): Likewise.
7889         (VEORQ_M): Likewise.
7890         (VSHRQ_M_N): Likewise.
7891         (VSUBQ_M_N): Likewise.
7892         (VHADDQ_M): Likewise.
7893         (VABDQ_M): Likewise.
7894         (VMLAQ_M_N): Likewise.
7895         (VQSHLQ_M_N): Likewise.
7896         (VMLALDAVAQ_P): Likewise.
7897         (VMLALDAVAXQ_P): Likewise.
7898         (VQRSHRNBQ_M_N): Likewise.
7899         (VQRSHRNTQ_M_N): Likewise.
7900         (VQSHRNBQ_M_N): Likewise.
7901         (VQSHRNTQ_M_N): Likewise.
7902         (VRSHRNBQ_M_N): Likewise.
7903         (VRSHRNTQ_M_N): Likewise.
7904         (VSHLLBQ_M_N): Likewise.
7905         (VSHLLTQ_M_N): Likewise.
7906         (VSHRNBQ_M_N): Likewise.
7907         (VSHRNTQ_M_N): Likewise.
7908         (VSTRWSBQ): Likewise.
7909         (VSTRBSOQ): Likewise.
7910         (VSTRBQ): Likewise.
7911         (VLDRBGOQ): Likewise.
7912         (VLDRBQ): Likewise.
7913         (VLDRWGBQ): Likewise.
7914         (VLD1Q): Likewise.
7915         (VLDRHGOQ): Likewise.
7916         (VLDRHGSOQ): Likewise.
7917         (VLDRHQ): Likewise.
7918         (VLDRWQ): Likewise.
7919         (VLDRDGBQ): Likewise.
7920         (VLDRDGOQ): Likewise.
7921         (VLDRDGSOQ): Likewise.
7922         (VLDRWGOQ): Likewise.
7923         (VLDRWGSOQ): Likewise.
7924         (VST1Q): Likewise.
7925         (VSTRHSOQ): Likewise.
7926         (VSTRHSSOQ): Likewise.
7927         (VSTRHQ): Likewise.
7928         (VSTRWQ): Likewise.
7929         (VSTRDSBQ): Likewise.
7930         (VSTRDSOQ): Likewise.
7931         (VSTRDSSOQ): Likewise.
7932         (VSTRWSOQ): Likewise.
7933         (VSTRWSSOQ): Likewise.
7934         (VSTRWSBWBQ): Likewise.
7935         (VLDRWGBWBQ): Likewise.
7936         (VSTRDSBWBQ): Likewise.
7937         (VLDRDGBWBQ): Likewise.
7938         (VADCIQ): Likewise.
7939         (VADCIQ_M): Likewise.
7940         (VSBCQ): Likewise.
7941         (VSBCQ_M): Likewise.
7942         (VSBCIQ): Likewise.
7943         (VSBCIQ_M): Likewise.
7944         (VADCQ): Likewise.
7945         (VADCQ_M): Likewise.
7946         (UQRSHLLQ): Likewise.
7947         (SQRSHRLQ): Likewise.
7948         (VSHLCQ_M): Likewise.
7949         (define_c_enum "unspec"): Move MVE enumerator to unspecs.md from mve.md.
7950         * config/arm/unspecs.md (define_c_enum "unspec"): Move MVE enumerator from
7951         mve.md to unspecs.md.
7953 2020-10-06  Martin Liska  <mliska@suse.cz>
7955         * common.opt: Remove -fdbg-cnt-list from deferred options.
7956         * dbgcnt.c (dbg_cnt_set_limit_by_index): Make a copy
7957         to original_limits.
7958         (dbg_cnt_list_all_counters): Print also current counter value
7959         and print to stderr.
7960         * opts-global.c (handle_common_deferred_options): Do not handle
7961         -fdbg-cnt-list.
7962         * opts.c (common_handle_option): Likewise.
7963         * toplev.c (finalize): Handle it after compilation here.
7965 2020-10-06  Martin Liska  <mliska@suse.cz>
7967         * dbgcnt.c (dbg_cnt): Report also upper limit.
7969 2020-10-06  Tom de Vries  <tdevries@suse.de>
7971         * tracer.c (count_insns): Rename to ...
7972         (analyze_bb): ... this.
7973         (cache_can_duplicate_bb_p, cached_can_duplicate_bb_p): New function.
7974         (ignore_bb_p): Use cached_can_duplicate_bb_p.
7975         (tail_duplicate): Call cache_can_duplicate_bb_p.
7977 2020-10-06  Tom de Vries  <tdevries@suse.de>
7979         * tracer.c (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
7980         (can_duplicate_bb_p): New function, factored out of ...
7981         (ignore_bb_p): ... here.
7983 2020-10-06  Jakub Jelinek  <jakub@redhat.com>
7985         PR rtl-optimization/97282
7986         * tree-ssa-math-opts.c (divmod_candidate_p): Don't return false for
7987         constant op2 if it is not a power of two and the type has precision
7988         larger than HOST_BITS_PER_WIDE_INT or BITS_PER_WORD.
7989         * internal-fn.c (contains_call_div_mod): New function.
7990         (expand_DIVMOD): If last argument is a constant, try to expand it as
7991         TRUNC_DIV_EXPR followed by TRUNC_MOD_EXPR, but if the sequence
7992         contains any calls or {,U}{DIV,MOD} rtxes, throw it away and use
7993         divmod optab or divmod libfunc.
7995 2020-10-06  Aldy Hernandez  <aldyh@redhat.com>
7997         * value-range.h (irange_allocator::allocate): Increase
7998         newir storage by one.
8000 2020-10-06  Jakub Jelinek  <jakub@redhat.com>
8002         PR middle-end/97289
8003         * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Only follow
8004         node->alias_target if it is a FUNCTION_DECL.
8006 2020-10-06  Joe Ramsay  <joe.ramsay@arm.com>
8008         * config/arm/arm-cpus.in:
8009         (ALL_FPU_INTERNAL): Remove vfp_base.
8010         (VFPv2): Remove vfp_base.
8011         (MVE): Remove vfp_base.
8012         (vfp_base): Redefine as implied bit dependent on MVE or FP
8013         (cortex-m55): Add flags to disable MVE, MVE FP, FP and DSP extensions.
8014         * config/arm/arm.c (arm_configure_build_target): Add implied bits to ISA.
8015         * config/arm/parsecpu.awk:
8016         (gen_isa): Print implied bits and their dependencies to ISA header.
8017         (gen_data): Add parsing for implied feature bits.
8019 2020-10-06  Andreas Krebbel  <krebbel@linux.ibm.com>
8021         * doc/invoke.texi: Add z15/arch13 to the list of documented
8022         -march/-mtune options.
8024 2020-10-05  Aldy Hernandez  <aldyh@redhat.com>
8026         * value-range.cc (irange::legacy_intersect): Only handle
8027         legacy ranges.
8028         (irange::legacy_union): Same.
8029         (irange::union_): When unioning legacy with non-legacy,
8030         first convert to legacy and do everything in legacy mode.
8031         (irange::intersect): Same, but for intersect.
8032         * range-op.cc (range_tests): Adjust for above changes.
8034 2020-10-05  Aldy Hernandez  <aldyh@redhat.com>
8036         * range-op.cc (operator_div::wi_fold): Return varying for
8037         division by zero.
8038         (class operator_rshift): Move class up.
8039         (operator_abs::wi_fold): Return [-MIN,-MIN] for ABS([-MIN,-MIN]).
8040         (operator_tests): Adjust tests.
8042 2020-10-05  Tom de Vries  <tdevries@suse.de>
8044         * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_XCHG_*.
8046 2020-10-05  Alex Coplan  <alex.coplan@arm.com>
8048         * config/arm/arm-cpus.in (neoverse-v1): Add missing vendor and
8049         part numbers.
8051 2020-10-05  Tom de Vries  <tdevries@suse.de>
8053         * tracer.c (ignore_bb_p): Remove incorrect suggestion.
8055 2020-10-05  Jakub Jelinek  <jakub@redhat.com>
8057         * opth-gen.awk: Don't emit explicit_mask array if n_target_explicit
8058         is equal to n_target_explicit_mask.
8059         * optc-save-gen.awk: Compute has_target_explicit_mask and if false,
8060         don't emit code iterating over explicit_mask array elements.  Stream
8061         also explicit_mask_* target members.
8063 2020-10-05  Jakub Jelinek  <jakub@redhat.com>
8065         * gimple-ssa-store-merging.c
8066         (imm_store_chain_info::output_merged_store): Use ~0U instead of ~0 in
8067         unsigned int array initializer.
8069 2020-10-05  Tom de Vries  <tdevries@suse.de>
8071         PR fortran/95654
8072         * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_ENTER_ALLOC,
8073         GOMP_SIMT_VOTE_ANY and GOMP_SIMT_EXIT.
8075 2020-10-03  Jakub Jelinek  <jakub@redhat.com>
8077         * opth-gen.awk: For variables referenced in Mask and InverseMask,
8078         don't use the explicit_mask bitmask array, but add separate
8079         explicit_mask_* members with the same types as the variables.
8080         * optc-save-gen.awk: Save, restore, compare and hash the separate
8081         explicit_mask_* members.
8083 2020-10-03  Jan Hubicka  <hubicka@ucw.cz>
8085         * ipa-modref-tree.c (test_insert_search_collapse): Update andling
8086         of accesses.
8087         (test_merge): Likewise.
8088         * ipa-modref-tree.h (struct modref_access_node): Add offset, size,
8089         max_size, parm_offset and parm_offset_known.
8090         (modref_access_node::useful_p): Constify.
8091         (modref_access_node::range_info_useful_p): New predicate.
8092         (modref_access_node::operator==): New.
8093         (struct modref_parm_map): New structure.
8094         (modref_tree::merge): Update for racking parameters)
8095         * ipa-modref.c (dump_access): Dump new fields.
8096         (get_access): Fill in new fields.
8097         (merge_call_side_effects): Update handling of parm map.
8098         (write_modref_records): Stream new fields.
8099         (read_modref_records): Stream new fields.
8100         (compute_parm_map): Update for new parm map.
8101         (ipa_merge_modref_summary_after_inlining): Update.
8102         (modref_propagate_in_scc): Update.
8103         * tree-ssa-alias.c (modref_may_conflict): Handle known ranges.
8105 2020-10-03  H.J. Lu  <hjl.tools@gmail.com>
8107         PR other/97280
8108         * doc/extend.texi: Replace roudnevenl with roundevenl
8110 2020-10-02  David Edelsohn  <dje.gcc@gmail.com>
8111             Andrew MacLeod  <amacleod@redhat.com>
8113         * config/rs6000/rs6000.c: Include ssa.h. Reorder some headers.
8114         * config/rs6000/rs6000-call.c: Same.
8116 2020-10-02  Martin Jambor  <mjambor@suse.cz>
8118         * params.opt (ipa-cp-large-unit-insns): New parameter.
8119         * ipa-cp.c (get_max_overall_size): Use the new parameter.
8121 2020-10-02  Martin Jambor  <mjambor@suse.cz>
8123         * ipa-cp.c (estimate_local_effects): Add overeall_size to dumped
8124         string.
8125         (decide_about_value): Add dumping new overall_size.
8127 2020-10-02  Martin Jambor  <mjambor@suse.cz>
8129         * ipa-fnsummary.h (ipa_freqcounting_predicate): New type.
8130         (ipa_fn_summary): Change the type of loop_iterations and loop_strides
8131         to vectors of ipa_freqcounting_predicate.
8132         (ipa_fn_summary::ipa_fn_summary): Construct the new vectors.
8133         (ipa_call_estimates): New fields loops_with_known_iterations and
8134         loops_with_known_strides.
8135         * ipa-cp.c (hint_time_bonus): Multiply param_ipa_cp_loop_hint_bonus
8136         with the expected frequencies of loops with known iteration count or
8137         stride.
8138         * ipa-fnsummary.c (add_freqcounting_predicate): New function.
8139         (ipa_fn_summary::~ipa_fn_summary): Release the new vectors instead of
8140         just two predicates.
8141         (remap_hint_predicate_after_duplication): Replace with function
8142         remap_freqcounting_preds_after_dup.
8143         (ipa_fn_summary_t::duplicate): Use it or duplicate new vectors.
8144         (ipa_dump_fn_summary): Dump the new vectors.
8145         (analyze_function_body): Compute the loop property vectors.
8146         (ipa_call_context::estimate_size_and_time): Calculate also
8147         loops_with_known_iterations and loops_with_known_strides.  Adjusted
8148         dumping accordinly.
8149         (remap_hint_predicate): Replace with function
8150         remap_freqcounting_predicate.
8151         (ipa_merge_fn_summary_after_inlining): Use it.
8152         (inline_read_section): Stream loopcounting vectors instead of two
8153         simple predicates.
8154         (ipa_fn_summary_write): Likewise.
8155         * params.opt (ipa-max-loop-predicates): New parameter.
8156         * doc/invoke.texi (ipa-max-loop-predicates): Document new param.
8158 2020-10-02  Martin Jambor  <mjambor@suse.cz>
8160         * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to use
8161         ipa_call_estimates.
8162         (do_estimate_edge_size): Likewise.
8163         (do_estimate_edge_hints): Likewise.
8164         * ipa-fnsummary.h (struct ipa_call_estimates): New type.
8165         (ipa_call_context::estimate_size_and_time): Adjusted declaration.
8166         (estimate_ipcp_clone_size_and_time): Likewise.
8167         * ipa-cp.c (hint_time_bonus): Changed the type of the second argument
8168         to ipa_call_estimates.
8169         (perform_estimation_of_a_value): Adjusted to use ipa_call_estimates.
8170         (estimate_local_effects): Likewise.
8171         * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Adjusted
8172         to return estimates in a single ipa_call_estimates parameter.
8173         (estimate_ipcp_clone_size_and_time): Likewise.
8175 2020-10-02  Martin Jambor  <mjambor@suse.cz>
8177         * ipa-fnsummary.h (ipa_cached_call_context): New forward declaration
8178         and class.
8179         (class ipa_call_context): Make friend ipa_cached_call_context.  Moved
8180         methods duplicate_from and release to it too.
8181         * ipa-fnsummary.c (ipa_call_context::duplicate_from): Moved to class
8182         ipa_cached_call_context.
8183         (ipa_call_context::release): Likewise, removed the parameter.
8184         * ipa-inline-analysis.c (node_context_cache_entry): Change the type of
8185         ctx to ipa_cached_call_context.
8186         (do_estimate_edge_time): Remove parameter from the call to
8187         ipa_cached_call_context::release.
8189 2020-10-02  Martin Jambor  <mjambor@suse.cz>
8191         * ipa-prop.h (ipa_auto_call_arg_values): New type.
8192         (class ipa_call_arg_values): Likewise.
8193         (ipa_get_indirect_edge_target): Replaced vector arguments with
8194         ipa_call_arg_values in declaration.  Added an overload for
8195         ipa_auto_call_arg_values.
8196         * ipa-fnsummary.h (ipa_call_context): Removed members m_known_vals,
8197         m_known_contexts, m_known_aggs, duplicate_from, release and equal_to,
8198         new members m_avals, store_to_cache and equivalent_to_p.  Adjusted
8199         construcotr arguments.
8200         (estimate_ipcp_clone_size_and_time): Replaced vector arguments
8201         with ipa_auto_call_arg_values in declaration.
8202         (evaluate_properties_for_edge): Likewise.
8203         * ipa-cp.c (ipa_get_indirect_edge_target): Adjusted to work on
8204         ipa_call_arg_values rather than on separate vectors.  Added an
8205         overload for ipa_auto_call_arg_values.
8206         (devirtualization_time_bonus): Adjusted to work on
8207         ipa_auto_call_arg_values rather than on separate vectors.
8208         (gather_context_independent_values): Adjusted to work on
8209         ipa_auto_call_arg_values rather than on separate vectors.
8210         (perform_estimation_of_a_value): Likewise.
8211         (estimate_local_effects): Likewise.
8212         (modify_known_vectors_with_val): Adjusted both variants to work on
8213         ipa_auto_call_arg_values and rename them to
8214         copy_known_vectors_add_val.
8215         (decide_about_value): Adjusted to work on ipa_call_arg_values rather
8216         than on separate vectors.
8217         (decide_whether_version_node): Likewise.
8218         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Likewise.
8219         (evaluate_properties_for_edge): Likewise.
8220         (ipa_fn_summary_t::duplicate): Likewise.
8221         (estimate_edge_devirt_benefit): Adjusted to work on
8222         ipa_call_arg_values rather than on separate vectors.
8223         (estimate_edge_size_and_time): Likewise.
8224         (estimate_calls_size_and_time_1): Likewise.
8225         (summarize_calls_size_and_time): Adjusted calls to
8226         estimate_edge_size_and_time.
8227         (estimate_calls_size_and_time): Adjusted to work on
8228         ipa_call_arg_values rather than on separate vectors.
8229         (ipa_call_context::ipa_call_context): Construct from a pointer to
8230         ipa_auto_call_arg_values instead of inividual vectors.
8231         (ipa_call_context::duplicate_from): Adjusted to access vectors within
8232         m_avals.
8233         (ipa_call_context::release): Likewise.
8234         (ipa_call_context::equal_to): Likewise.
8235         (ipa_call_context::estimate_size_and_time): Adjusted to work on
8236         ipa_call_arg_values rather than on separate vectors.
8237         (estimate_ipcp_clone_size_and_time): Adjusted to work with
8238         ipa_auto_call_arg_values rather than on separate vectors.
8239         (ipa_merge_fn_summary_after_inlining): Likewise.  Adjusted call to
8240         estimate_edge_size_and_time.
8241         (ipa_update_overall_fn_summary): Adjusted call to
8242         estimate_edge_size_and_time.
8243         * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to work with
8244         ipa_auto_call_arg_values rather than with separate vectors.
8245         (do_estimate_edge_size): Likewise.
8246         (do_estimate_edge_hints): Likewise.
8247         * ipa-prop.c (ipa_auto_call_arg_values::~ipa_auto_call_arg_values):
8248         New destructor.
8250 2020-10-02  Joe Ramsay  <joe.ramsay@arm.com>
8252         * config/arm/arm_mve.h (__arm_vmaxnmavq): Remove coercion of scalar
8253         argument.
8254         (__arm_vmaxnmvq): Likewise.
8255         (__arm_vminnmavq): Likewise.
8256         (__arm_vminnmvq): Likewise.
8257         (__arm_vmaxnmavq_p): Likewise.
8258         (__arm_vmaxnmvq_p): Likewise (and delete duplicate definition).
8259         (__arm_vminnmavq_p): Likewise.
8260         (__arm_vminnmvq_p): Likewise.
8261         (__arm_vmaxavq): Likewise.
8262         (__arm_vmaxavq_p): Likewise.
8263         (__arm_vmaxvq): Likewise.
8264         (__arm_vmaxvq_p): Likewise.
8265         (__arm_vminavq): Likewise.
8266         (__arm_vminavq_p): Likewise.
8267         (__arm_vminvq): Likewise.
8268         (__arm_vminvq_p): Likewise.
8270 2020-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8272         * config/aarch64/aarch64.c (neoversev1_tunings): Define.
8273         * config/aarch64/aarch64-cores.def (zeus): Use it.
8274         (neoverse-v1): Likewise.
8276 2020-10-02  Jan Hubicka  <hubicka@ucw.cz>
8278         * attr-fnspec.h: Update documentation.
8279         (attr_fnsec::return_desc_size): Set to 2
8280         (attr_fnsec::arg_desc_size): Set to 2
8281         * builtin-attrs.def (STR1): Update fnspec.
8282         * internal-fn.def (UBSAN_NULL): Update fnspec.
8283         (UBSAN_VPTR): Update fnspec.
8284         (UBSAN_PTR): Update fnspec.
8285         (ASAN_CHECK): Update fnspec.
8286         (GOACC_DIM_SIZE): Remove fnspec.
8287         (GOACC_DIM_POS): Remove fnspec.
8288         * tree-ssa-alias.c (attr_fnspec::verify): Update verification.
8290 2020-10-02  Jan Hubicka  <jh@suse.cz>
8292         * attr-fnspec.h: New file.
8293         * calls.c (decl_return_flags): Use attr_fnspec.
8294         * gimple.c (gimple_call_arg_flags): Use attr_fnspec.
8295         (gimple_call_return_flags): Use attr_fnspec.
8296         * tree-into-ssa.c (pass_build_ssa::execute): Use attr_fnspec.
8297         * tree-ssa-alias.c (attr_fnspec::verify): New member fuction.
8299 2020-10-02  Jan Hubicka  <jh@suse.cz>
8301         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_range): Break out from ...
8302         (ao_ref_init_from_ptr_and_size): ... here.
8304 2020-10-02  Jan Hubicka  <hubicka@ucw.cz>
8306         * data-streamer-in.c (streamer_read_poly_int64): New function.
8307         * data-streamer-out.c (streamer_write_poly_int64): New function.
8308         * data-streamer.h (streamer_write_poly_int64): Declare.
8309         (streamer_read_poly_int64): Declare.
8311 2020-10-02  Richard Sandiford  <richard.sandiford@arm.com>
8313         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
8314         Delete.
8315         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): Likewise.
8316         * config/aarch64/aarch64-sve.md: Add banner comment describing
8317         how merging predicated FP operations are represented.
8318         (*cond_<SVE_COND_FP_UNARY:optab><mode>_2): Split into...
8319         (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_relaxed): ...this and...
8320         (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_strict): ...this.
8321         (*cond_<SVE_COND_FP_UNARY:optab><mode>_any): Split into...
8322         (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_relaxed): ...this and...
8323         (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_strict): ...this.
8324         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): Split into...
8325         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_relaxed): ...this and...
8326         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_strict): ...this.
8327         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Split into...
8328         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_relaxed): ...this
8329         and...
8330         (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_strict): ...this.
8331         (*cond_<SVE_COND_FP_BINARY:optab><mode>_2): Split into...
8332         (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_relaxed): ...this and...
8333         (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_strict): ...this.
8334         (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const): Split into...
8335         (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_relaxed): ...this
8336         and...
8337         (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_strict): ...this.
8338         (*cond_<SVE_COND_FP_BINARY:optab><mode>_3): Split into...
8339         (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_relaxed): ...this and...
8340         (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_strict): ...this.
8341         (*cond_<SVE_COND_FP_BINARY:optab><mode>_any): Split into...
8342         (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_relaxed): ...this and...
8343         (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_strict): ...this.
8344         (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const): Split into...
8345         (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_relaxed): ...this
8346         and...
8347         (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_strict): ...this.
8348         (*cond_add<mode>_2_const): Split into...
8349         (*cond_add<mode>_2_const_relaxed): ...this and...
8350         (*cond_add<mode>_2_const_strict): ...this.
8351         (*cond_add<mode>_any_const): Split into...
8352         (*cond_add<mode>_any_const_relaxed): ...this and...
8353         (*cond_add<mode>_any_const_strict): ...this.
8354         (*cond_<SVE_COND_FCADD:optab><mode>_2): Split into...
8355         (*cond_<SVE_COND_FCADD:optab><mode>_2_relaxed): ...this and...
8356         (*cond_<SVE_COND_FCADD:optab><mode>_2_strict): ...this.
8357         (*cond_<SVE_COND_FCADD:optab><mode>_any): Split into...
8358         (*cond_<SVE_COND_FCADD:optab><mode>_any_relaxed): ...this and...
8359         (*cond_<SVE_COND_FCADD:optab><mode>_any_strict): ...this.
8360         (*cond_sub<mode>_3_const): Split into...
8361         (*cond_sub<mode>_3_const_relaxed): ...this and...
8362         (*cond_sub<mode>_3_const_strict): ...this.
8363         (*aarch64_pred_abd<mode>): Split into...
8364         (*aarch64_pred_abd<mode>_relaxed): ...this and...
8365         (*aarch64_pred_abd<mode>_strict): ...this.
8366         (*aarch64_cond_abd<mode>_2): Split into...
8367         (*aarch64_cond_abd<mode>_2_relaxed): ...this and...
8368         (*aarch64_cond_abd<mode>_2_strict): ...this.
8369         (*aarch64_cond_abd<mode>_3): Split into...
8370         (*aarch64_cond_abd<mode>_3_relaxed): ...this and...
8371         (*aarch64_cond_abd<mode>_3_strict): ...this.
8372         (*aarch64_cond_abd<mode>_any): Split into...
8373         (*aarch64_cond_abd<mode>_any_relaxed): ...this and...
8374         (*aarch64_cond_abd<mode>_any_strict): ...this.
8375         (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2): Split into...
8376         (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_relaxed): ...this and...
8377         (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_strict): ...this.
8378         (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4): Split into...
8379         (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_relaxed): ...this and...
8380         (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_strict): ...this.
8381         (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any): Split into...
8382         (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_relaxed): ...this and...
8383         (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_strict): ...this.
8384         (*cond_<SVE_COND_FCMLA:optab><mode>_4): Split into...
8385         (*cond_<SVE_COND_FCMLA:optab><mode>_4_relaxed): ...this and...
8386         (*cond_<SVE_COND_FCMLA:optab><mode>_4_strict): ...this.
8387         (*cond_<SVE_COND_FCMLA:optab><mode>_any): Split into...
8388         (*cond_<SVE_COND_FCMLA:optab><mode>_any_relaxed): ...this and...
8389         (*cond_<SVE_COND_FCMLA:optab><mode>_any_strict): ...this.
8390         (*aarch64_pred_fac<cmp_op><mode>): Split into...
8391         (*aarch64_pred_fac<cmp_op><mode>_relaxed): ...this and...
8392         (*aarch64_pred_fac<cmp_op><mode>_strict): ...this.
8393         (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>): Split
8394         into...
8395         (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_relaxed):
8396         ...this and...
8397         (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_strict):
8398         ...this.
8399         (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>): Split
8400         into...
8401         (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_relaxed):
8402         ...this and...
8403         (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_strict):
8404         ...this.
8405         * config/aarch64/aarch64-sve2.md
8406         (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>): Split into...
8407         (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_relaxed): ...this and...
8408         (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_strict): ...this.
8409         (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any): Split into...
8410         (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_relaxed): ...this
8411         and...
8412         (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_strict): ...this.
8413         (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>): Split into...
8414         (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_relaxed): ...this and...
8415         (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_strict): ...this.
8417 2020-10-02  Richard Sandiford  <richard.sandiford@arm.com>
8419         * config/arm/neon.md (*sub<VDQ:mode>3_neon): Use the new mode macros
8420         for the insn condition.
8421         (sub<VH:mode>3, *mul<VDQW:mode>3_neon): Likewise.
8422         (mul<VDQW:mode>3add<VDQW:mode>_neon): Likewise.
8423         (mul<VH:mode>3add<VH:mode>_neon): Likewise.
8424         (mul<VDQW:mode>3neg<VDQW:mode>add<VDQW:mode>_neon): Likewise.
8425         (fma<VCVTF:mode>4, fma<VH:mode>4, *fmsub<VCVTF:mode>4): Likewise.
8426         (quad_halves_<code>v4sf, reduc_plus_scal_<VD:mode>): Likewise.
8427         (reduc_plus_scal_<VQ:mode>, reduc_smin_scal_<VD:mode>): Likewise.
8428         (reduc_smin_scal_<VQ:mode>, reduc_smax_scal_<VD:mode>): Likewise.
8429         (reduc_smax_scal_<VQ:mode>, mul<VH:mode>3): Likewise.
8430         (neon_vabd<VF:mode>_2, neon_vabd<VF:mode>_3): Likewise.
8431         (fma<VH:mode>4_intrinsic): Delete.
8432         (neon_vadd<VCVTF:mode>): Use the new mode macros to decide which
8433         form of instruction to generate.
8434         (neon_vmla<VDQW:mode>, neon_vmls<VDQW:mode>): Likewise.
8435         (neon_vsub<VCVTF:mode>): Likewise.
8436         (neon_vfma<VH:mode>): Generate the main fma<mode>4 form instead
8437         of using fma<mode>4_intrinsic.
8439 2020-10-02  Martin Liska  <mliska@suse.cz>
8441         PR gcov-profile/97193
8442         * coverage.c (coverage_init): GCDA note files should not be
8443         mangled and should end in output directory.
8445 2020-10-02  Jason Merril  <jason@redhat.com>
8447         * gimple.h (gimple_call_operator_delete_p): Rename from
8448         gimple_call_replaceable_operator_delete_p.
8449         * gimple.c (gimple_call_operator_delete_p): Likewise.
8450         * tree.h (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): Remove.
8451         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Adjust.
8452         (propagate_necessity): Likewise.
8453         (eliminate_unnecessary_stmts): Likewise.
8454         * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
8456 2020-10-02  Richard Biener  <rguenther@suse.de>
8458         * gimple.h (GF_CALL_FROM_NEW_OR_DELETE): New call flag.
8459         (gimple_call_set_from_new_or_delete): New.
8460         (gimple_call_from_new_or_delete): Likewise.
8461         * gimple.c (gimple_build_call_from_tree): Set
8462         GF_CALL_FROM_NEW_OR_DELETE appropriately.
8463         * ipa-icf-gimple.c (func_checker::compare_gimple_call):
8464         Compare gimple_call_from_new_or_delete.
8465         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Make
8466         sure to only consider new/delete calls from new or delete
8467         expressions.
8468         (propagate_necessity): Likewise.
8469         (eliminate_unnecessary_stmts): Likewise.
8470         * tree-ssa-structalias.c (find_func_aliases_for_call):
8471         Likewise.
8473 2020-10-02  Jason Merril  <jason@redhat.com>
8475         * tree.h (CALL_FROM_NEW_OR_DELETE_P): Move from cp-tree.h.
8476         * tree-core.h: Document new usage of protected_flag.
8478 2020-10-02  Aldy Hernandez  <aldyh@redhat.com>
8480         * value-range.h (irange::fits_p): New.
8482 2020-10-01  Alan Modra  <amodra@gmail.com>
8484         * config/rs6000/rs6000.c (rs6000_legitimize_address): Use
8485         gen_int_mode for high part of address constant.
8487 2020-10-01  Alan Modra  <amodra@gmail.com>
8489         * config/rs6000/rs6000.c (rs6000_linux64_override_options):
8490         Formatting.  Correct setting of TARGET_NO_FP_IN_TOC and
8491         TARGET_NO_SUM_IN_TOC.
8493 2020-10-01  Alan Modra  <amodra@gmail.com>
8495         * config/rs6000/freebsd64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
8496         rs6000_linux64_override_options.
8497         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Break
8498         out to..
8499         * config/rs6000/rs6000.c (rs6000_linux64_override_options): ..this,
8500         new function.  Tweak non-biarch test and clearing of
8501         profile_kernel to work with freebsd64.h.
8503 2020-10-01  Martin Liska  <mliska@suse.cz>
8505         * config/rs6000/rs6000-call.c: Include value-range.h.
8506         * config/rs6000/rs6000.c: Likewise.
8508 2020-10-01  Tom de Vries  <tdevries@suse.de>
8510         PR target/80845
8511         * config/nvptx/nvptx.md (define_insn "truncsi<QHIM>2"): Emit mov.u32
8512         instead of cvt.u32.u32.
8514 2020-10-01  Richard Sandiford  <richard.sandiford@arm.com>
8516         PR target/96528
8517         PR target/97288
8518         * config/arm/arm-protos.h (arm_expand_vector_compare): Declare.
8519         (arm_expand_vcond): Likewise.
8520         * config/arm/arm.c (arm_expand_vector_compare): New function.
8521         (arm_expand_vcond): Likewise.
8522         * config/arm/neon.md (vec_cmp<VDQW:mode><v_cmp_result>): New pattern.
8523         (vec_cmpu<VDQW:mode><VDQW:mode>): Likewise.
8524         (vcond<VDQW:mode><VDQW:mode>): Require operand 5 to be a register
8525         or zero.  Use arm_expand_vcond.
8526         (vcond<V_cvtto><V32:mode>): New pattern.
8527         (vcondu<VDQIW:mode><VDQIW:mode>): Generalize to...
8528         (vcondu<VDQW:mode><v_cmp_result): ...this.  Require operand 5
8529         to be a register or zero.  Use arm_expand_vcond.
8530         (vcond_mask_<VDQW:mode><v_cmp_result>): New pattern.
8531         (neon_vc<cmp_op><mode>, neon_vc<cmp_op><mode>_insn): Add "@" marker.
8532         (neon_vbsl<mode>): Likewise.
8533         (neon_vc<cmp_op>u<mode>): Reexpress as...
8534         (@neon_vc<code><mode>): ...this.
8536 2020-10-01  Michael Davidsaver  <mdavidsaver@gmail.com>
8538         * config/i386/t-rtems: Change from mtune to march when building
8539         multilibs.  The mtune argument tunes or optimizes for a specific
8540         CPU model but does not ensure the generated code is appropriate
8541         for the CPU model. Prior to this patch, i386 compatible code
8542         was always generated but tuned for later models.
8544 2020-10-01  Aldy Hernandez  <aldyh@redhat.com>
8546         * builtins.c (compute_objsize): Replace vr_values with range_query.
8547         (get_range): Same.
8548         (gimple_call_alloc_size): Same.
8549         * builtins.h (class vr_values):  Remove.
8550         (gimple_call_alloc_size): Replace vr_values with range_query.
8551         * gimple-ssa-sprintf.c (get_int_range): Same.
8552         (struct directive): Pass gimple context to fmtfunc callback.
8553         (directive::set_width): Replace inline with out-of-line version.
8554         (directive::set_precision): Same.
8555         (format_none): New gimple argument.
8556         (format_percent): New gimple argument.
8557         (format_integer): New gimple argument.
8558         (format_floating): New gimple argument.
8559         (get_string_length): Use range_query API.
8560         (format_character): New gimple argument.
8561         (format_string): New gimple argument.
8562         (format_plain): New gimple argument.
8563         (format_directive): New gimple argument.
8564         (parse_directive): Replace vr_values with range_query.
8565         (compute_format_length): Same.
8566         (handle_printf_call): Same.  Adjust for range_query API.
8567         * tree-ssa-strlen.c (get_range): Same.
8568         (compare_nonzero_chars): Same.
8569         (get_addr_stridx) Replace vr_values with range_query.
8570         (get_stridx): Same.
8571         (dump_strlen_info): Same.
8572         (get_range_strlen_dynamic): Adjust for range_query API.
8573         (set_strlen_range): Same
8574         (maybe_warn_overflow): Replace vr_values with range_query.
8575         (handle_builtin_strcpy): Same.
8576         (maybe_diag_stxncpy_trunc): Add FIXME comment.
8577         (handle_builtin_memcpy): Replace vr_values with range_query.
8578         (handle_builtin_memset): Same.
8579         (get_len_or_size): Same.
8580         (strxcmp_eqz_result): Same.
8581         (handle_builtin_string_cmp): Same.
8582         (count_nonzero_bytes_addr): Same, plus adjust for range_query API.
8583         (count_nonzero_bytes): Replace vr_values with range_query.
8584         (handle_store): Same.
8585         (strlen_check_and_optimize_call): Same.
8586         (handle_integral_assign): Same.
8587         (check_and_optimize_stmt): Same.
8588         * tree-ssa-strlen.h (class vr_values): Remove.
8589         (get_range): Replace vr_values with range_query.
8590         (get_range_strlen_dynamic): Same.
8591         (handle_printf_call): Same.
8593 2020-10-01  Aldy Hernandez  <aldyh@redhat.com>
8595         * gimple-loop-versioning.cc (lv_dom_walker::before_dom_children):
8596         Pass m_range_analyzer instead of get_vr_values.
8597         (loop_versioning::name_prop::get_value): Rename to...
8598         (loop_versioning::name_prop::value_of_expr): ...this.
8599         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::evrp_range_analyzer):
8600         Adjust for evrp_range_analyzer
8601         inheriting from vr_values.
8602         (evrp_range_analyzer::try_find_new_range): Same.
8603         (evrp_range_analyzer::record_ranges_from_incoming_edge): Same.
8604         (evrp_range_analyzer::record_ranges_from_phis): Same.
8605         (evrp_range_analyzer::record_ranges_from_stmt): Same.
8606         (evrp_range_analyzer::push_value_range): Same.
8607         (evrp_range_analyzer::pop_value_range): Same.
8608         * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Inherit from
8609         vr_values.  Adjust accordingly.
8610         * gimple-ssa-evrp.c: Adjust for evrp_range_analyzer inheriting from
8611         vr_values.
8612         (evrp_folder::value_of_evrp): Rename from get_value.
8613         * tree-ssa-ccp.c (class ccp_folder): Rename get_value to
8614         value_of_expr.
8615         (ccp_folder::get_value): Rename to...
8616         (ccp_folder::value_of_expr): ...this.
8617         * tree-ssa-copy.c (class copy_folder): Rename get_value to
8618         value_of_expr.
8619         (copy_folder::get_value): Rename to...
8620         (copy_folder::value_of_expr): ...this.
8621         * tree-ssa-dom.c (dom_opt_dom_walker::after_dom_children): Adjust
8622         for evrp_range_analyzer inheriting from vr_values.
8623         (dom_opt_dom_walker::optimize_stmt): Same.
8624         * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
8625         Call value_of_* instead of get_value.
8626         (substitute_and_fold_engine::replace_phi_args_in): Same.
8627         (substitute_and_fold_engine::propagate_into_phi_args): Same.
8628         (substitute_and_fold_dom_walker::before_dom_children): Same.
8629         * tree-ssa-propagate.h: Include value-query.h.
8630         (class substitute_and_fold_engine): Inherit from value_query.
8631         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children):
8632         Adjust for evrp_range_analyzer inheriting from vr_values.
8633         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
8634         Same.
8635         * tree-vrp.c (class vrp_folder): Same.
8636         (vrp_folder::get_value): Rename to value_of_expr.
8637         * vr-values.c (vr_values::get_lattice_entry): Adjust for
8638         vr_values inheriting from range_query.
8639         (vr_values::range_of_expr): New.
8640         (vr_values::value_of_expr): New.
8641         (vr_values::value_on_edge): New.
8642         (vr_values::value_of_stmt): New.
8643         (simplify_using_ranges::op_with_boolean_value_range_p): Call
8644         get_value_range through query.
8645         (check_for_binary_op_overflow): Rename store to query.
8646         (vr_values::vr_values): Remove vrp_value_range_pool.
8647         (vr_values::~vr_values): Same.
8648         (simplify_using_ranges::get_vr_for_comparison): Call get_value_range
8649         through query.
8650         (simplify_using_ranges::compare_names): Same.
8651         (simplify_using_ranges::vrp_evaluate_conditional): Same.
8652         (simplify_using_ranges::vrp_visit_cond_stmt): Same.
8653         (simplify_using_ranges::simplify_abs_using_ranges): Same.
8654         (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
8655         (simplify_cond_using_ranges_2): Same.
8656         (simplify_using_ranges::simplify_switch_using_ranges): Same.
8657         (simplify_using_ranges::two_valued_val_range_p): Same.
8658         (simplify_using_ranges::simplify_using_ranges): Rename store to query.
8659         (simplify_using_ranges::simplify): Assert that we have a query.
8660         * vr-values.h (class range_query): Remove.
8661         (class simplify_using_ranges): Remove inheritance of range_query.
8662         (class vr_values): Add virtuals for range_of_expr, value_of_expr,
8663         value_on_edge, value_of_stmt, and get_value_range.
8664         Call range_query allocator instead of using vrp_value_range_pool.
8665         Remove vrp_value_range_pool.
8666         (simplify_using_ranges::get_value_range): Remove.
8668 2020-10-01  Richard Biener  <rguenther@suse.de>
8670         PR tree-optimization/97236
8671         * tree-vect-stmts.c (get_group_load_store_type): Keep
8672         VMAT_ELEMENTWISE for single-element vectors.
8674 2020-10-01  Jan Hubicka  <jh@suse.cz>
8676         * ipa-modref.c (compute_parm_map): Be ready for callee_pi to be NULL.
8678 2020-10-01  Jan Hubicka  <jh@suse.cz>
8680         PR ipa/97244
8681         * ipa-fnsummary.c (pass_free_fnsummary::execute): Free
8682         also indirect inlining datastructure.
8683         * ipa-modref.c (pass_ipa_modref::execute): Do not free them here.
8684         * ipa-prop.c (ipa_free_all_node_params): Do not crash when info does
8685         not exist.
8686         (ipa_unregister_cgraph_hooks): Likewise.
8688 2020-10-01  Jan Hubicka  <jh@suse.cz>
8690         * internal-fn.c (DEF_INTERNAL_FN): Fix handling of fnspec
8692 2020-10-01  Aldy Hernandez  <aldyh@redhat.com>
8694         * Makefile.in: Add value-query.o.
8695         * value-query.cc: New file.
8696         * value-query.h: New file.
8698 2020-10-01  Alex Coplan  <alex.coplan@arm.com>
8700         * config/arm/arm-cpus.in: Fix ordering, move Neoverse N2 down.
8701         * config/arm/arm-tables.opt: Regenerate.
8702         * config/arm/arm-tune.md: Regenerate.
8704 2020-10-01  Jakub Jelinek  <jakub@redhat.com>
8706         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
8707         TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
8708         fenv_var and old_fpc.  Formatting fixes.
8710 2020-10-01  Richard Biener  <rguenther@suse.de>
8712         * tree-vect-patterns.c (vect_recog_bool_pattern): Also handle
8713         VIEW_CONVERT_EXPR.
8715 2020-10-01  Florian Weimer  <fweimer@redhat.com>
8717         PR target/97250
8718         * config/i386/i386.h (PTA_NO_TUNE, PTA_X86_64_BASELINE)
8719         (PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4): New.
8720         * common/config/i386/i386-common.c (processor_alias_table):
8721         Add "x86-64-v2", "x86-64-v3", "x86-64-v4".
8722         * config/i386/i386-options.c (ix86_option_override_internal):
8723         Handle new PTA_NO_TUNE processor table entries.
8724         * doc/invoke.texi (x86 Options): Document new -march values.
8726 2020-10-01  Alan Modra  <amodra@gmail.com>
8728         * config/rs6000/ppc-asm.h: Support __PCREL__ code.
8730 2020-10-01  Alan Modra  <amodra@gmail.com>
8732         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
8733         set -mcmodel=small for -mno-minimal-toc when pcrel.
8735 2020-09-30  Martin Sebor  <msebor@redhat.com>
8737         PR middle-end/97189
8738         * attribs.c (attr_access::array_as_string): Avoid assuming a VLA
8739         access specification string contains a closing bracket.
8741 2020-09-30  Martin Sebor  <msebor@redhat.com>
8743         PR c/97206
8744         * attribs.c (attr_access::array_as_string): Avoid modifying a shared
8745         type in place and use build_type_attribute_qual_variant instead.
8747 2020-09-30  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
8749         * config/arm/arm-cpus.in: Add Cortex-A78 and Cortex-A78AE cores.
8750         * config/arm/arm-tables.opt: Regenerate.
8751         * config/arm/arm-tune.md: Regenerate.
8752         * doc/invoke.texi: Update docs.
8754 2020-09-30  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
8756         * config/aarch64/aarch64-cores.def: Add Cortex-A78 and Cortex-A78AE cores.
8757         * config/aarch64/aarch64-tune.md: Regenerate.
8758         * doc/invoke.texi: Add -mtune=cortex-a78 and -mtune=cortex-a78ae.
8760 2020-09-30  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
8762         PR target/96795
8763         * config/arm/arm_mve.h (__ARM_mve_coerce2): Define.
8764         (__arm_vaddq): Correct the scalar argument.
8765         (__arm_vaddq_m): Likewise.
8766         (__arm_vaddq_x): Likewise.
8767         (__arm_vcmpeqq_m): Likewise.
8768         (__arm_vcmpeqq): Likewise.
8769         (__arm_vcmpgeq_m): Likewise.
8770         (__arm_vcmpgeq): Likewise.
8771         (__arm_vcmpgtq_m): Likewise.
8772         (__arm_vcmpgtq): Likewise.
8773         (__arm_vcmpleq_m): Likewise.
8774         (__arm_vcmpleq): Likewise.
8775         (__arm_vcmpltq_m): Likewise.
8776         (__arm_vcmpltq): Likewise.
8777         (__arm_vcmpneq_m): Likewise.
8778         (__arm_vcmpneq): Likewise.
8779         (__arm_vfmaq_m): Likewise.
8780         (__arm_vfmaq): Likewise.
8781         (__arm_vfmasq_m): Likewise.
8782         (__arm_vfmasq): Likewise.
8783         (__arm_vmaxnmavq): Likewise.
8784         (__arm_vmaxnmavq_p): Likewise.
8785         (__arm_vmaxnmvq): Likewise.
8786         (__arm_vmaxnmvq_p): Likewise.
8787         (__arm_vminnmavq): Likewise.
8788         (__arm_vminnmavq_p): Likewise.
8789         (__arm_vminnmvq): Likewise.
8790         (__arm_vminnmvq_p): Likewise.
8791         (__arm_vmulq_m): Likewise.
8792         (__arm_vmulq): Likewise.
8793         (__arm_vmulq_x): Likewise.
8794         (__arm_vsetq_lane): Likewise.
8795         (__arm_vsubq_m): Likewise.
8796         (__arm_vsubq): Likewise.
8797         (__arm_vsubq_x): Likewise.
8799 2020-09-30  Joel Hutton  <joel.hutton@arm.com>
8801         PR target/96837
8802         * tree-vect-slp.c (vect_analyze_slp): Do not call
8803         vect_attempt_slp_rearrange_stmts for vector constructors.
8805 2020-09-30  Tamar Christina  <tamar.christina@arm.com>
8807         * tree-vectorizer.h (SLP_TREE_REF_COUNT): New.
8808         * tree-vect-slp.c (_slp_tree::_slp_tree, _slp_tree::~_slp_tree,
8809         vect_free_slp_tree, vect_build_slp_tree, vect_print_slp_tree,
8810         slp_copy_subtree, vect_attempt_slp_rearrange_stmts): Use it.
8812 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
8814         * omp-offload.c (omp_discover_implicit_declare_target): Also
8815         handled nested functions.
8817 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
8818             Tom de Vries  <tdevries@suse.de>
8820         * builtins.c (expand_builtin_cexpi, fold_builtin_sincos): Update
8821         targetm.libc_has_function call.
8822         * builtins.def (DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C11_BUILTIN):
8823         (DEF_C2X_BUILTIN, DEF_C99_COMPL_BUILTIN, DEF_C99_C90RES_BUILTIN):
8824         Same.
8825         * config/darwin-protos.h (darwin_libc_has_function): Update prototype.
8826         * config/darwin.c (darwin_libc_has_function): Add arg.
8827         * config/linux-protos.h (linux_libc_has_function): Update prototype.
8828         * config/linux.c (linux_libc_has_function): Add arg.
8829         * config/i386/i386.c (ix86_libc_has_function): Update
8830         targetm.libc_has_function call.
8831         * config/nvptx/nvptx.c (nvptx_libc_has_function): New function.
8832         (TARGET_LIBC_HAS_FUNCTION): Redefine to nvptx_libc_has_function.
8833         * convert.c (convert_to_integer_1): Update targetm.libc_has_function
8834         call.
8835         * match.pd: Same.
8836         * target.def (libc_has_function): Add arg.
8837         * doc/tm.texi: Regenerate.
8838         * targhooks.c (default_libc_has_function, gnu_libc_has_function)
8839         (no_c99_libc_has_function): Add arg.
8840         * targhooks.h (default_libc_has_function, no_c99_libc_has_function)
8841         (gnu_libc_has_function): Update prototype.
8842         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Update
8843         targetm.libc_has_function call.
8845 2020-09-30  H.J. Lu  <hjl.tools@gmail.com>
8847         PR target/97184
8848         * config/i386/i386.md (UNSPECV_MOVDIRI): Renamed to ...
8849         (UNSPEC_MOVDIRI): This.
8850         (UNSPECV_MOVDIR64B): Renamed to ...
8851         (UNSPEC_MOVDIR64B): This.
8852         (movdiri<mode>): Use SET operation.
8853         (@movdir64b_<mode>): Likewise.
8855 2020-09-30  Florian Weimer  <fweimer@redhat.com>
8857         * config/i386/i386-c.c (ix86_target_macros_internal): Define
8858         __LAHF_SAHF__ and __MOVBE__ based on ISA flags.
8860 2020-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8862         PR target/97150
8863         * config/aarch64/arm_neon.h (vqrshlb_u8): Make second argument
8864         signed.
8865         (vqrshlh_u16): Likewise.
8866         (vqrshls_u32): Likewise.
8867         (vqrshld_u64): Likewise.
8868         (vqshlb_u8): Likewise.
8869         (vqshlh_u16): Likewise.
8870         (vqshls_u32): Likewise.
8871         (vqshld_u64): Likewise.
8872         (vshld_u64): Likewise.
8874 2020-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8876         PR target/96313
8877         * config/aarch64/aarch64-simd-builtins.def (sqmovun): Use UNOPUS
8878         qualifiers.
8879         * config/aarch64/arm_neon.h (vqmovun_s16): Adjust builtin call.
8880         Remove unnecessary result cast.
8881         (vqmovun_s32): Likewise.
8882         (vqmovun_s64): Likewise.
8883         (vqmovunh_s16): Likewise.  Fix return type.
8884         (vqmovuns_s32): Likewise.
8885         (vqmovund_s64): Likewise.
8887 2020-09-30  Richard Sandiford  <richard.sandiford@arm.com>
8889         * config/aarch64/aarch64.c (aarch64_split_128bit_move_p): Add a
8890         function comment.  Tighten check for FP moves.
8891         * config/aarch64/aarch64.md (*movti_aarch64): Add a w<-Z alternative.
8892         (*movtf_aarch64): Handle r<-Y like r<-r.  Remove unnecessary
8893         earlyclobber.  Change splitter predicate from aarch64_reg_or_imm
8894         to nonmemory_operand.
8896 2020-09-30  Alex Coplan  <alex.coplan@arm.com>
8898         PR target/97251
8899         * config/arm/arm.md (movsf): Relax TARGET_HARD_FLOAT to
8900         TARGET_VFP_BASE.
8901         (movdf): Likewise.
8902         * config/arm/vfp.md (no_literal_pool_df_immediate): Likewise.
8903         (no_literal_pool_sf_immediate): Likewise.
8905 2020-09-30  Alan Modra  <amodra@gmail.com>
8907         * configure.ac (--with-long-double-format): Typo fix.
8908         * configure: Regenerate.
8910 2020-09-30  Alan Modra  <amodra@gmail.com>
8912         * config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't use
8913         non-existent operands[].
8914         (@tablejump<mode>_nospec): Likewise.
8916 2020-09-30  Segher Boessenkool  <segher@kernel.crashing.org>
8918         * config/rs6000/rs6000.md (tablejump): Simplify.
8919         (tablejumpsi): Merge this ...
8920         (tablejumpdi): ... and this ...
8921         (@tablejump<mode>_normal): ... into this.
8922         (tablejumpsi_nospec): Merge this ...
8923         (tablejumpdi_nospec): ... and this ...
8924         (@tablejump<mode>_nospec): ... into this.
8925         (*tablejump<mode>_internal1): Delete, rename to ...
8926         (@tablejump<mode>_insn_normal): ... this.
8927         (*tablejump<mode>_internal1_nospec): Delete, rename to ...
8928         (@tablejump<mode>_insn_nospec): ... this.
8930 2020-09-29  Martin Sebor  <msebor@redhat.com>
8932         PR middle-end/97188
8933         * calls.c (maybe_warn_rdwr_sizes): Simplify warning messages.
8934         Correct handling of VLA argumments.
8936 2020-09-29  Marek Polacek  <polacek@redhat.com>
8938         PR c++/94695
8939         * doc/invoke.texi: Document -Wrange-loop-construct.
8941 2020-09-29  Jim Wilson  <jimw@sifive.com>
8943         PR bootstrap/97183
8944         * configure.ac (gcc_cv_header_zstd_h): Check ZSTD_VERISON_NUMBER.
8945         * configure: Regenerated.
8947 2020-09-29  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
8949         * config/arm/arm-cpus.in: Add Cortex-X1 core.
8950         * config/arm/arm-tables.opt: Regenerate.
8951         * config/arm/arm-tune.md: Regenerate.
8952         * doc/invoke.texi: Update docs.
8954 2020-09-29  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
8956         * config/aarch64/aarch64-cores.def: Add Cortex-X1 Arm core.
8957         * config/aarch64/aarch64-tune.md: Regenerate.
8958         * doc/invoke.texi: Add -mtune=cortex-x1 docs.
8960 2020-09-29  H.J. Lu  <hjl.tools@gmail.com>
8962         PR target/97247
8963         * config/i386/enqcmdintrin.h: Replace <enqcmdntrin.h> with
8964         <enqcmdintrin.h>.  Replace _ENQCMDNTRIN_H_INCLUDED with
8965         _ENQCMDINTRIN_H_INCLUDED.
8967 2020-09-29  Richard Biener  <rguenther@suse.de>
8969         PR tree-optimization/97241
8970         * tree-vect-loop.c (vectorizable_reduction): Move finding
8971         the SLP node for the reduction stmt to a better place.
8973 2020-09-29  Richard Biener  <rguenther@suse.de>
8975         * tree-vect-slp.c (vect_analyze_slp): Move SLP reduction
8976         re-arrangement and SLP graph load gathering...
8977         (vect_optimize_slp): ... here.
8978         * tree-vectorizer.h (vec_info::slp_loads): Remove.
8980 2020-09-29  Hongyu Wang  <hongyu.wang@intel.com>
8982         PR target/97231
8983         * config/i386/amxbf16intrin.h: Add FSF copyright notes.
8984         * config/i386/amxint8intrin.h: Ditto.
8985         * config/i386/amxtileintrin.h: Ditto.
8986         * config/i386/avx512vp2intersectintrin.h: Ditto.
8987         * config/i386/avx512vp2intersectvlintrin.h: Ditto.
8988         * config/i386/pconfigintrin.h: Ditto.
8989         * config/i386/tsxldtrkintrin.h: Ditto.
8990         * config/i386/wbnoinvdintrin.h: Ditto.
8992 2020-09-29  Richard Biener  <rguenther@suse.de>
8994         PR tree-optimization/97238
8995         * tree-ssa-reassoc.c (ovce_extract_ops): Fix typo.
8997 2020-09-29  Richard Sandiford  <richard.sandiford@arm.com>
8999         * config/arm/arm.h (ARM_HAVE_NEON_V8QI_ARITH, ARM_HAVE_NEON_V4HI_ARITH)
9000         (ARM_HAVE_NEON_V2SI_ARITH, ARM_HAVE_NEON_V16QI_ARITH): New macros.
9001         (ARM_HAVE_NEON_V8HI_ARITH, ARM_HAVE_NEON_V4SI_ARITH): Likewise.
9002         (ARM_HAVE_NEON_V2DI_ARITH, ARM_HAVE_NEON_V4HF_ARITH): Likewise.
9003         (ARM_HAVE_NEON_V8HF_ARITH, ARM_HAVE_NEON_V2SF_ARITH): Likewise.
9004         (ARM_HAVE_NEON_V4SF_ARITH, ARM_HAVE_V8QI_ARITH, ARM_HAVE_V4HI_ARITH)
9005         (ARM_HAVE_V2SI_ARITH, ARM_HAVE_V16QI_ARITH, ARM_HAVE_V8HI_ARITH)
9006         (ARM_HAVE_V4SI_ARITH, ARM_HAVE_V2DI_ARITH, ARM_HAVE_V4HF_ARITH)
9007         (ARM_HAVE_V2SF_ARITH, ARM_HAVE_V8HF_ARITH, ARM_HAVE_V4SF_ARITH):
9008         Likewise.
9009         * config/arm/iterators.md (VNIM, VNINOTM): Delete.
9010         * config/arm/vec-common.md (add<VNIM:mode>3, addv8hf3)
9011         (add<VNINOTM:mode>3): Replace with...
9012         (add<VDQ:mode>3): ...this new expander.
9013         * config/arm/neon.md (*add<VDQ:mode>3_neon): Use the new
9014         ARM_HAVE_NEON_<MODE>_ARITH macros as the C condition.
9015         (addv8hf3_neon, addv4hf3, add<VFH:mode>3_fp16): Delete in
9016         favor of the above.
9017         (neon_vadd<VH:mode>): Use gen_add<mode>3 instead of
9018         gen_add<mode>3_fp16.
9020 2020-09-29  Kito Cheng  <kito.cheng@sifive.com>
9022         * config/riscv/riscv-c.c (riscv_cpu_cpp_builtins): Define
9023         __riscv_cmodel_medany when PIC mode.
9025 2020-09-29  Alex Coplan  <alex.coplan@arm.com>
9027         * config/aarch64/aarch64-cores.def: Move neoverse-n2 after saphira.
9028         * config/aarch64/aarch64-tune.md: Regenerate.
9030 2020-09-29  Martin Liska  <mliska@suse.cz>
9032         PR tree-optimization/96979
9033         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9034         Make a fast bail out.
9035         (bit_test_cluster::can_be_handled): Likewise here.
9036         * tree-switch-conversion.h (get_range): Use wi::to_wide instead
9037         of a folding.
9039 2020-09-29  Martin Liska  <mliska@suse.cz>
9041         Revert:
9042         2020-09-22  Martin Liska  <mliska@suse.cz>
9044         PR tree-optimization/96979
9045         * doc/invoke.texi: Document new param max-switch-clustering-attempts.
9046         * params.opt: Add new parameter.
9047         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
9048         Limit number of attempts.
9049         (bit_test_cluster::find_bit_tests): Likewise.
9051 2020-09-28  Aldy Hernandez  <aldyh@redhat.com>
9053         * value-range.h (class irange): Add irange_allocator friend.
9054         (class irange_allocator): New.
9056 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
9058         PR middle-end/96390
9059         * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Handle
9060         alias nodes.
9062 2020-09-28  Paul A. Clarke  <pc@us.ibm.com>
9064         * config/rs6000/smmintrin.h (_mm_insert_epi8): New.
9065         (_mm_insert_epi32): New.
9066         (_mm_insert_epi64): New.
9068 2020-09-28  liuhongt  <hongtao.liu@intel.com>
9070         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_AMX_TILE_SET,
9071         OPTION_MASK_ISA2_AMX_INT8_SET, OPTION_MASK_ISA2_AMX_BF16_SET,
9072         OPTION_MASK_ISA2_AMX_TILE_UNSET, OPTION_MASK_ISA2_AMX_INT8_UNSET,
9073         OPTION_MASK_ISA2_AMX_BF16_UNSET, OPTION_MASK_ISA2_XSAVE_UNSET):
9074         New marcos.
9075         (ix86_handle_option): Hanlde -mamx-tile, -mamx-int8, -mamx-bf16.
9076         * common/config/i386/i386-cpuinfo.h (processor_types): Add
9077         FEATURE_AMX_TILE, FEATURE_AMX_INT8, FEATURE_AMX_BF16.
9078         * common/config/i386/cpuinfo.h (XSTATE_TILECFG,
9079         XSTATE_TILEDATA, XCR_AMX_ENABLED_MASK): New macro.
9080         (get_available_features): Enable AMX features only if
9081         their states are suoorited by OSXSAVE.
9082         * common/config/i386/i386-isas.h: Add ISA_NAME_TABLE_ENTRY
9083         for amx-tile, amx-int8, amx-bf16.
9084         * config.gcc: Add amxtileintrin.h, amxint8intrin.h,
9085         amxbf16intrin.h to extra headers.
9086         * config/i386/amxbf16intrin.h: New file.
9087         * config/i386/amxint8intrin.h: Ditto.
9088         * config/i386/amxtileintrin.h: Ditto.
9089         * config/i386/cpuid.h (bit_AMX_BF16, bit_AMX_TILE, bit_AMX_INT8):
9090         New macro.
9091         * config/i386/i386-c.c (ix86_target_macros_internal): Define
9092         __AMX_TILE__, __AMX_INT8__, AMX_BF16__.
9093         * config/i386/i386-options.c (ix86_target_string): Add
9094         -mamx-tile, -mamx-int8, -mamx-bf16.
9095         (ix86_option_override_internal): Handle AMX-TILE,
9096         AMX-INT8, AMX-BF16.
9097         * config/i386/i386.h (TARGET_AMX_TILE, TARGET_AMX_TILE_P,
9098         TARGET_AMX_INT8, TARGET_AMX_INT8_P, TARGET_AMX_BF16_P,
9099         PTA_AMX_TILE, PTA_AMX_INT8, PTA_AMX_BF16): New macros.
9100         * config/i386/i386.opt: Add -mamx-tile, -mamx-int8, -mamx-bf16.
9101         * config/i386/immintrin.h: Include amxtileintrin.h,
9102         amxint8intrin.h, amxbf16intrin.h.
9103         * doc/invoke.texi: Document -mamx-tile, -mamx-int8, -mamx-bf16.
9104         * doc/extend.texi: Document amx-tile, amx-int8, amx-bf16.
9105         * doc/sourcebuild.texi ((Effective-Target Keywords, Other
9106         hardware attributes): Document amx_int8, amx_tile, amx_bf16.
9108 2020-09-28  Andrea Corallo  <andrea.corallo@arm.com>
9110         * config/aarch64/aarch64-builtins.c
9111         (aarch64_general_expand_builtin): Do not alter value on a
9112         force_reg returned rtx.
9114 2020-09-28  Eric Botcazou  <ebotcazou@adacore.com>
9116         * tree-eh.c (lower_try_finally_dup_block): Revert latest change.
9118 2020-09-27  Jan Hubicka  <jh@suse.cz>
9120         * ipa-modref.c (modref_summary::useful_p): Fix testing of stores.
9122 2020-09-27  Jakub Jelinek  <jakub@redhat.com>
9124         PR middle-end/97073
9125         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
9126         expand_copysign_bit): Check reg_overlap_mentioned_p between target
9127         and operand(s) and if it returns true, force a pseudo as target.
9129 2020-09-27  Xionghu Luo  <luoxhu@linux.ibm.com>
9131         * gimple-isel.cc (gimple_expand_vec_set_expr): New function.
9132         (gimple_expand_vec_cond_exprs): Rename to ...
9133         (gimple_expand_vec_exprs): ... this and call
9134         gimple_expand_vec_set_expr.
9135         * internal-fn.c (vec_set_direct): New define.
9136         (expand_vec_set_optab_fn): New function.
9137         (direct_vec_set_optab_supported_p): New define.
9138         * internal-fn.def (VEC_SET): New DEF_INTERNAL_OPTAB_FN.
9139         * optabs.c (can_vec_set_var_idx_p): New function.
9140         * optabs.h (can_vec_set_var_idx_p): New declaration.
9142 2020-09-26  Jan Hubicka  <jh@suse.cz>
9144         * ipa-modref.c (analyze_stmt): Do not skip clobbers in early pass.
9145         * ipa-pure-const.c (analyze_stmt): Update comment.
9147 2020-09-26  David Edelsohn  <dje.gcc@gmail.com>
9148             Clement Chigot  <clement.chigot@atos.com>
9150         * collect2.c (visibility_flag): New.
9151         (main): Detect -fvisibility.
9152         (write_c_file_stat): Push and pop default visibility.
9154 2020-09-26  Jan Hubicka  <hubicka@ucw.cz>
9156         * ipa-inline-transform.c: Include ipa-modref-tree.h and ipa-modref.h.
9157         (inline_call): Call ipa_merge_modref_summary_after_inlining.
9158         * ipa-inline.c (ipa_inline): Do not free summaries.
9159         * ipa-modref.c (dump_records): Fix formating.
9160         (merge_call_side_effects): Break out from ...
9161         (analyze_call): ... here; record recursive calls.
9162         (analyze_stmt): Add new parameter RECURSIVE_CALLS.
9163         (analyze_function): Do iterative dataflow on recursive calls.
9164         (compute_parm_map): New function.
9165         (ipa_merge_modref_summary_after_inlining): New function.
9166         (collapse_loads): New function.
9167         (modref_propagate_in_scc): Break out from ...
9168         (pass_ipa_modref::execute): ... here; Do iterative dataflow.
9169         * ipa-modref.h (ipa_merge_modref_summary_after_inlining): Declare.
9171 2020-09-26  Jakub Jelinek  <jakub@redhat.com>
9173         * omp-expand.c (expand_omp_simd): Help vectorizer for the collapse == 1
9174         and non-composite collapse > 1 case with non-constant innermost loop
9175         step by precomputing number of iterations before loop and using an
9176         alternate IV from 0 to number of iterations - 1 with step of 1.
9178 2020-09-26  Jan Hubicka  <jh@suse.cz>
9180         * ipa-fnsummary.c (dump_ipa_call_summary): Dump
9181         points_to_local_or_readonly_memory flag.
9182         (analyze_function_body): Compute points_to_local_or_readonly_memory
9183         flag.
9184         (remap_edge_change_prob): Rename to ...
9185         (remap_edge_params): ... this one; update
9186         points_to_local_or_readonly_memory.
9187         (remap_edge_summaries): Update.
9188         (read_ipa_call_summary): Stream the new flag.
9189         (write_ipa_call_summary): Likewise.
9190         * ipa-predicate.h (struct inline_param_summary): Add
9191         points_to_local_or_readonly_memory.
9192         (inline_param_summary::equal_to): Update.
9193         (inline_param_summary::useless_p): Update.
9195 2020-09-26  Jan Hubicka  <hubicka@ucw.cz>
9197         * ipa-modref-tree.h (modref_ref_node::insert_access): Track if something
9198         changed.
9199         (modref_base_node::insert_ref): Likewise (and add a new optional
9200         argument)
9201         (modref_tree::insert): Likewise.
9202         (modref_tree::merge): Rewrite
9204 2020-09-25  Jan Hubicka  <hubicka@ucw.cz>
9206         * doc/invoke.texi: Add -fno-ipa-modref to flags disabled by
9207         -flive-patching.
9208         * opts.c (control_options_for_live_patching): Disable ipa-modref.
9210 2020-09-25  Jan Hubicka  <hubicka@ucw.cz>
9212         * ipa-modref.c (analyze_stmt): Fix return value for gimple_clobber.
9214 2020-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9216         * config/aarch64/aarch64-option-extensions.def (rng): Add
9217         cpuinfo string.
9219 2020-09-25  Alex Coplan  <alex.coplan@arm.com>
9221         * config/arm/arm-cpus.in (neoverse-v1): Add FP16.
9223 2020-09-25  Martin Liska  <mliska@suse.cz>
9225         PR gcov-profile/64636
9226         * value-prof.c (stream_out_histogram_value): Allow negative
9227         values for HIST_TYPE_IOR.
9229 2020-09-25  Tom de Vries  <tdevries@suse.de>
9231         * config/nvptx/nvptx.c (nvptx_assemble_integer, nvptx_print_operand):
9232         Use gcc_fallthrough ().
9234 2020-09-25  Richard Biener  <rguenther@suse.de>
9236         PR middle-end/96814
9237         * expr.c (store_constructor): Handle VECTOR_BOOLEAN_TYPE_P
9238         CTORs correctly.
9240 2020-09-25  Richard Biener  <rguenther@suse.de>
9242         PR middle-end/97207
9243         * vec.h (auto_vec<T>::operator=(auto_vec<T>&&)): Implement.
9245 2020-09-25  Richard Sandiford  <richard.sandiford@arm.com>
9247         * config/arm/arm-protos.h (arm_mve_mode_and_operands_type_check):
9248         Delete.
9249         * config/arm/arm.c (arm_coproc_mem_operand_wb): Use a scale factor
9250         of 2 rather than 4 for 16-bit modes.
9251         (arm_mve_mode_and_operands_type_check): Delete.
9252         * config/arm/constraints.md (Uj): Allow writeback for Neon,
9253         but continue to disallow it for MVE.
9254         * config/arm/arm.md (*arm32_mov<HFBF:mode>): Add !TARGET_HAVE_MVE.
9255         * config/arm/vfp.md (*mov_load_vfp_hf16, *mov_store_vfp_hf16): Fold
9256         back into...
9257         (*mov<mode>_vfp_<mode>16): ...here but use Uj for the FPR memory
9258         constraints.  Use for base MVE too.
9260 2020-09-25  Richard Biener  <rguenther@suse.de>
9262         PR tree-optimization/97199
9263         * tree-if-conv.c (combine_blocks): Remove edges only
9264         after looking at virtual PHI args.
9266 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
9268         * omp-low.c (scan_omp_1_stmt): Don't call scan_omp_simd for
9269         collapse > 1 loops as simt doesn't support collapsed loops yet.
9270         * omp-expand.c (expand_omp_for_init_counts, expand_omp_for_init_vars):
9271         Small tweaks to function comment.
9272         (expand_omp_simd): Rewritten collapse > 1 support to only attempt
9273         to vectorize the innermost loop and emit set of outer loops around it.
9274         For non-composite simd with collapse > 1 without broken loop don't
9275         even try to compute number of iterations first.  Add support for
9276         non-rectangular simd loops.
9277         (expand_omp_for): Don't sorry_at on non-rectangular simd loops.
9279 2020-09-25  Martin Liska  <mliska@suse.cz>
9281         * cgraph.c (cgraph_edge::debug): New.
9282         * cgraph.h (cgraph_edge::debug): New.
9284 2020-09-25  Martin Liska  <mliska@suse.cz>
9286         * cgraph.c (cgraph_node::dump): Always print space at the end
9287         of a message.  Remove one extra space.
9289 2020-09-24  Alex Coplan  <alex.coplan@arm.com>
9291         * config/arm/arm-cpus.in (neoverse-n2): New.
9292         * config/arm/arm-tables.opt: Regenerate.
9293         * config/arm/arm-tune.md: Regenerate.
9294         * doc/invoke.texi: Document support for Neoverse N2.
9296 2020-09-24  Alex Coplan  <alex.coplan@arm.com>
9298         * config/aarch64/aarch64-cores.def: Add Neoverse N2.
9299         * config/aarch64/aarch64-tune.md: Regenerate.
9300         * doc/invoke.texi: Document AArch64 support for Neoverse N2.
9302 2020-09-24  Richard Biener  <rguenther@suse.de>
9304         * vec.h (auto_vec<T, 0>::auto_vec (auto_vec &&)): New move CTOR.
9305         (auto_vec<T, 0>::operator=(auto_vec &&)): Delete.
9306         * hash-table.h (hash_table::expand): Use std::move when expanding.
9307         * cfgloop.h (get_loop_exit_edges): Return auto_vec<edge>.
9308         * cfgloop.c (get_loop_exit_edges): Adjust.
9309         * cfgloopmanip.c (fix_loop_placement): Likewise.
9310         * ipa-fnsummary.c (analyze_function_body): Likewise.
9311         * ira-build.c (create_loop_tree_nodes): Likewise.
9312         (create_loop_tree_node_allocnos): Likewise.
9313         (loop_with_complex_edge_p): Likewise.
9314         * ira-color.c (ira_loop_edge_freq): Likewise.
9315         * loop-unroll.c (analyze_insns_in_loop): Likewise.
9316         * predict.c (predict_loops): Likewise.
9317         * tree-predcom.c (last_always_executed_block): Likewise.
9318         * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
9319         * tree-ssa-loop-im.c (store_motion_loop): Likewise.
9320         * tree-ssa-loop-ivcanon.c (loop_edge_to_cancel): Likewise.
9321         (canonicalize_loop_induction_variables): Likewise.
9322         * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
9323         * tree-ssa-loop-niter.c (find_loop_niter): Likewise.
9324         (finite_loop_p): Likewise.
9325         (find_loop_niter_by_eval): Likewise.
9326         (estimate_numbers_of_iterations): Likewise.
9327         * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
9328         (may_use_storent_in_loop_p): Likewise.
9330 2020-09-24  Jan Hubicka  <jh@suse.cz>
9332         * doc/invoke.texi: Document -fipa-modref, ipa-modref-max-bases,
9333         ipa-modref-max-refs, ipa-modref-max-accesses, ipa-modref-max-tests.
9334         * ipa-modref-tree.c (test_insert_search_collapse): Update.
9335         (test_merge): Update.
9336         (gt_ggc_mx): New function.
9337         * ipa-modref-tree.h (struct modref_access_node): New structure.
9338         (struct modref_ref_node): Add every_access and accesses array.
9339         (modref_ref_node::modref_ref_node): Update ctor.
9340         (modref_ref_node::search): New member function.
9341         (modref_ref_node::collapse): New member function.
9342         (modref_ref_node::insert_access): New member function.
9343         (modref_base_node::insert_ref): Do not collapse base if ref is 0.
9344         (modref_base_node::collapse): Copllapse also refs.
9345         (modref_tree): Add accesses.
9346         (modref_tree::modref_tree): Initialize max_accesses.
9347         (modref_tree::insert): Add access parameter.
9348         (modref_tree::cleanup): New member function.
9349         (modref_tree::merge): Add parm_map; merge accesses.
9350         (modref_tree::copy_from): New member function.
9351         (modref_tree::create_ggc): Add max_accesses.
9352         * ipa-modref.c (dump_access): New function.
9353         (dump_records): Dump accesses.
9354         (dump_lto_records): Dump accesses.
9355         (get_access): New function.
9356         (record_access): Record access.
9357         (record_access_lto): Record access.
9358         (analyze_call): Compute parm_map.
9359         (analyze_function): Update construction of modref records.
9360         (modref_summaries::duplicate): Likewise; use copy_from.
9361         (write_modref_records): Stream accesses.
9362         (read_modref_records): Sream accesses.
9363         (pass_ipa_modref::execute): Update call of merge.
9364         * params.opt (-param=modref-max-accesses): New.
9365         * tree-ssa-alias.c (alias_stats): Add modref_baseptr_tests.
9366         (dump_alias_stats): Update.
9367         (base_may_alias_with_dereference_p): New function.
9368         (modref_may_conflict): Check accesses.
9369         (ref_maybe_used_by_call_p_1): Update call to modref_may_conflict.
9370         (call_may_clobber_ref_p_1): Update call to modref_may_conflict.
9372 2020-09-24  Richard Sandiford  <richard.sandiford@arm.com>
9374         * config/arm/arm.md (*stack_protect_combined_set_insn): For non-PIC,
9375         load the address of the canary rather than the address of the
9376         constant pool entry that points to it.
9377         (*stack_protect_combined_test_insn): Likewise.
9379 2020-09-24  Richard Biener  <rguenther@suse.de>
9381         PR tree-optimization/97085
9382         * match.pd (mask ? { false,..} : { true, ..} -> ~mask): New.
9384 2020-09-24  Jan Hubicka  <hubicka@ucw.cz>
9386         * ipa-modref-tree.h (modref_base::collapse): Release memory.
9387         (modref_tree::create_ggc): New member function.
9388         (modref_tree::colapse): Release memory.
9389         (modref_tree::~modref_tree): New destructor.
9390         * ipa-modref.c (modref_summaries::create_ggc): New function.
9391         (analyze_function): Use create_ggc.
9392         (modref_summaries::duplicate): Likewise.
9393         (read_modref_records): Likewise.
9394         (modref_read): Likewise.
9396 2020-09-24  Alan Modra  <amodra@gmail.com>
9398         * config/rs6000/rs6000.c (rs6000_rtx_costs): Pass mode to
9399         reg_or_add_cint_operand and reg_or_sub_cint_operand.
9401 2020-09-24  Alan Modra  <amodra@gmail.com>
9403         PR target/93012
9404         * config/rs6000/rs6000.c (num_insns_constant_gpr): Count rldimi
9405         constants correctly.
9407 2020-09-24  Alan Modra  <amodra@gmail.com>
9409         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
9410         Conditionally define __PCREL__.
9412 2020-09-24  Alan Modra  <amodra@gmail.com>
9414         PR target/97107
9415         * config/rs6000/rs6000-internal.h (struct rs6000_stack): Improve
9416         calls_p comment.
9417         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Likewise.
9418         (rs6000_expand_split_stack_prologue): Emit the prologue for
9419         functions that make a sibling call.
9421 2020-09-24  David Malcolm  <dmalcolm@redhat.com>
9423         * doc/analyzer.texi (Analyzer Paths): Add note about
9424         -fno-analyzer-feasibility.
9425         * doc/invoke.texi (Static Analyzer Options): Add
9426         -fno-analyzer-feasibility.
9428 2020-09-24  Paul A. Clarke  <pc@us.ibm.com>
9430         * doc/extend.texi: Add 'd' for doubleword variant of
9431         vector insert instruction.
9433 2020-09-23  Martin Sebor  <msebor@redhat.com>
9435         * gimple-array-bounds.cc (build_zero_elt_array_type): New function.
9436         (array_bounds_checker::check_mem_ref): Call it.
9438 2020-09-23  Martin Sebor  <msebor@redhat.com>
9440         PR middle-end/97175
9441         * builtins.c (maybe_warn_for_bound): Handle both DECLs and EXPRESSIONs
9442         in pad->dst.ref, same is pad->src.ref.
9444 2020-09-23  Jan Hubicka  <jh@suse.cz>
9446         * ipa-fnsummary.c (refs_local_or_readonly_memory_p): New function.
9447         (points_to_local_or_readonly_memory_p): New function.
9448         * ipa-fnsummary.h (refs_local_or_readonly_memory_p): Declare.
9449         (points_to_local_or_readonly_memory_p): Declare.
9450         * ipa-modref.c (record_access_p): Use refs_local_or_readonly_memory_p.
9451         * ipa-pure-const.c (check_op): Likewise.
9453 2020-09-23  Tom de Vries  <tdevries@suse.de>
9455         * config/nvptx/nvptx.md: Don't allow operand containing sum of
9456         function ref and const.
9458 2020-09-23  Richard Sandiford  <richard.sandiford@arm.com>
9460         * config/aarch64/aarch64-protos.h (aarch64_salt_type): New enum.
9461         (aarch64_stack_protect_canary_mem): Declare.
9462         * config/aarch64/aarch64.md (UNSPEC_SALT_ADDR): New unspec.
9463         (stack_protect_set): Forward to stack_protect_combined_set.
9464         (stack_protect_combined_set): New pattern.  Use
9465         aarch64_stack_protect_canary_mem.
9466         (reg_stack_protect_address_<mode>): Add a salt operand.
9467         (stack_protect_test): Forward to stack_protect_combined_test.
9468         (stack_protect_combined_test): New pattern.  Use
9469         aarch64_stack_protect_canary_mem.
9470         * config/aarch64/aarch64.c (strip_salt): New function.
9471         (strip_offset_and_salt): Likewise.
9472         (tls_symbolic_operand_type): Use strip_offset_and_salt.
9473         (aarch64_stack_protect_canary_mem): New function.
9474         (aarch64_cannot_force_const_mem): Use strip_offset_and_salt.
9475         (aarch64_classify_address): Likewise.
9476         (aarch64_symbolic_address_p): Likewise.
9477         (aarch64_print_operand): Likewise.
9478         (aarch64_output_addr_const_extra): New function.
9479         (aarch64_tls_symbol_p): Use strip_salt.
9480         (aarch64_classify_symbol): Likewise.
9481         (aarch64_legitimate_pic_operand_p): Use strip_offset_and_salt.
9482         (aarch64_legitimate_constant_p): Likewise.
9483         (aarch64_mov_operand_p): Use strip_salt.
9484         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Override.
9486 2020-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9488         PR target/71233
9489         * config/aarch64/arm_neon.h (vreinterpretq_f64_p128,
9490         vreinterpretq_p128_f64): Define.
9492 2020-09-23  Alex Coplan  <alex.coplan@arm.com>
9494         * config/arm/arm-cpus.in (neoverse-v1): New.
9495         * config/arm/arm-tables.opt: Regenerate.
9496         * config/arm/arm-tune.md: Regenerate.
9497         * doc/invoke.texi: Document support for Neoverse V1.
9499 2020-09-23  Alex Coplan  <alex.coplan@arm.com>
9501         * config/aarch64/aarch64-cores.def: Add Neoverse V1.
9502         * config/aarch64/aarch64-tune.md: Regenerate.
9503         * doc/invoke.texi: Document support for Neoverse V1.
9505 2020-09-23  Richard Biener  <rguenther@suse.de>
9507         PR middle-end/96453
9508         * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove
9509         LT_EXPR -> NE_EXPR verification and also apply it for
9510         non-constant masks.
9512 2020-09-23  Jan Hubicka  <hubicka@ucw.cz>
9514         * ipa-modref.c (modref_summary::lto_useful_p): New member function.
9515         (modref_summary::useful_p): New member function.
9516         (analyze_function): Drop useless summaries.
9517         (modref_write): Skip useless summaries.
9518         (pass_ipa_modref::execute): Drop useless summaries.
9519         * ipa-modref.h (struct GTY): Declare useful_p and lto_useful_p.
9520         * tree-ssa-alias.c (dump_alias_stats): Fix.
9521         (modref_may_conflict): Fix stats.
9523 2020-09-23  Richard Biener  <rguenther@suse.de>
9525         PR middle-end/96466
9526         * internal-fn.c (expand_vect_cond_mask_optab_fn): Use
9527         appropriate mode for force_reg.
9528         * tree.c (build_truth_vector_type_for): Pass VOIDmode to
9529         make_vector_type.
9531 2020-09-23  Richard Sandiford  <richard.sandiford@arm.com>
9533         * tree-vectorizer.h (determine_peel_for_niter): Delete in favor of...
9534         (vect_determine_partial_vectors_and_peeling): ...this new function.
9535         * tree-vect-loop-manip.c (vect_update_epilogue_niters): New function.
9536         Reject using vector epilogue loops for single iterations.  Install
9537         the constant number of epilogue loop iterations in the associated
9538         loop_vinfo.  Rely on vect_determine_partial_vectors_and_peeling
9539         to do the main part of the test.
9540         (vect_do_peeling): Use vect_update_epilogue_niters to handle
9541         epilogue loops with a known number of iterations.  Skip recomputing
9542         the number of iterations later in that case.  Otherwise, use
9543         vect_determine_partial_vectors_and_peeling to decide whether the
9544         epilogue loop needs to use partial vectors or peeling.
9545         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Set the
9546         default can_use_partial_vectors_p to false if partial-vector-usage=0.
9547         (determine_peel_for_niter): Remove in favor of...
9548         (vect_determine_partial_vectors_and_peeling): ...this new function,
9549         split out from...
9550         (vect_analyze_loop_2): ...here.  Reflect the vect_verify_full_masking
9551         and vect_verify_loop_lens results in CAN_USE_PARTIAL_VECTORS_P
9552         rather than USING_PARTIAL_VECTORS_P.
9554 2020-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9556         PR target/71233
9557         * config/aarch64/aarch64-simd-builtins.def (frintn): Use BUILTIN_VHSDF_HSDF
9558         for modes.  Remove explicit hf instantiation.
9559         * config/aarch64/arm_neon.h (vrndns_f32): Define.
9561 2020-09-23  Richard Biener  <rguenther@suse.de>
9563         PR tree-optimization/97173
9564         * tree-vect-loop.c (vectorizable_live_operation): Extend
9565         assert to also conver element conversions.
9567 2020-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9569         PR target/71233
9570         * config/aarch64/arm_neon.h (vtrn1q_p64, vtrn2q_p64, vuzp1q_p64,
9571         vuzp2q_p64, vzip1q_p64, vzip2q_p64): Define.
9573 2020-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9575         PR target/71233
9576         * config/aarch64/arm_neon.h (vldrq_p128): Define.
9578 2020-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9580         PR target/71233
9581         * config/aarch64/arm_neon.h (vstrq_p128): Define.
9583 2020-09-23  Richard Biener  <rguenther@suse.de>
9585         PR tree-optimization/97151
9586         * tree-ssa-structalias.c (find_func_aliases_for_call):
9587         DECL_IS_REPLACEABLE_OPERATOR_DELETE_P has no effect on
9588         arguments.
9590 2020-09-23  Richard Biener  <rguenther@suse.de>
9592         PR middle-end/97162
9593         * alias.c (compare_base_decls): Use DECL_HARD_REGISTER
9594         and guard with VAR_P.
9596 2020-09-23  Martin Liska  <mliska@suse.cz>
9598         PR gcov-profile/97069
9599         * profile.c (branch_prob): Line number must be at least 1.
9601 2020-09-23  Tom de Vries  <tdevries@suse.de>
9603         PR target/97158
9604         * config/nvptx/nvptx.c (nvptx_output_mov_insn): Handle move from
9605         DF subreg to DF reg.
9607 2020-09-23  David Malcolm  <dmalcolm@redhat.com>
9609         * Makefile.in: Add $(ZLIBINC) to CFLAGS-analyzer/engine.o.
9611 2020-09-22  Jan Hubicka  <jh@suse.cz>
9613         * ipa-modref.c (analyze_stmt): Ignore gimple clobber.
9615 2020-09-22  Jan Hubicka  <jh@suse.cz>
9617         * ipa-modref-tree.c: Add namespace selftest.
9618         (modref_tree_c_tests): Rename to ...
9619         (ipa_modref_tree_c_tests): ... this.
9620         * ipa-modref.c (pass_modref): Remove destructor.
9621         (ipa_modref_c_finalize): New function.
9622         * ipa-modref.h (ipa_modref_c_finalize): Declare.
9623         * selftest-run-tests.c (selftest::run_tests): Call
9624         ipa_modref_c_finalize.
9625         * selftest.h (ipa_modref_tree_c_tests): Declare.
9626         * toplev.c: Include ipa-modref-tree.h and ipa-modref.h
9627         (toplev::finalize): Call ipa_modref_c_finalize.
9629 2020-09-22  David Malcolm  <dmalcolm@redhat.com>
9631         * doc/analyzer.texi (Other Debugging Techniques): Mention
9632         -fdump-analyzer-json.
9633         * doc/invoke.texi (Static Analyzer Options): Add
9634         -fdump-analyzer-json.
9636 2020-09-22  David Faust  <david.faust@oracle.com>
9638         * config/bpf/bpf.md: Add defines for signed div and mod operators.
9640 2020-09-22  Martin Liska  <mliska@suse.cz>
9642         PR tree-optimization/96979
9643         * doc/invoke.texi: Document new param max-switch-clustering-attempts.
9644         * params.opt: Add new parameter.
9645         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
9646         Limit number of attempts.
9647         (bit_test_cluster::find_bit_tests): Likewise.
9649 2020-09-22  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
9651         * config/s390/s390.md ("*cmp<mode>_ccs_0", "*cmp<mode>_ccz_0",
9652         "*cmp<mode>_ccs_0_fastmath"): Basically change "*cmp<mode>_ccs_0" into
9653         "*cmp<mode>_ccz_0" and for fast math add "*cmp<mode>_ccs_0_fastmath".
9655 2020-09-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9657         PR target/71233
9658         * config/aarch64/arm_neon.h (vcls_u8, vcls_u16, vcls_u32,
9659         vclsq_u8, vclsq_u16, vclsq_u32): Define.
9661 2020-09-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9663         PR target/71233
9664         * config/aarch64/arm_neon.h (vceqq_p64, vceqz_p64, vceqzq_p64): Define.
9666 2020-09-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9668         PR target/71233
9669         * config/aarch64/arm_neon.h (vadd_p8, vadd_p16, vadd_p64, vaddq_p8,
9670         vaddq_p16, vaddq_p64, vaddq_p128): Define.
9672 2020-09-22  Jakub Jelinek  <jakub@redhat.com>
9674         * params.opt (--param=modref-max-tests=): Fix typo in help text:
9675         perofmed -> performed.
9676         * common.opt: Fix typo: incrmeental -> incremental.
9677         * ipa-modref.c: Fix typos: recroding -> recording, becaue -> because,
9678         analsis -> analysis.
9679         (class modref_summaries): Fix typo: betweehn -> between.
9680         (analyze_call): Fix typo: calle -> callee.
9681         (read_modref_records): Fix typo: expcted -> expected.
9682         (pass_ipa_modref::execute): Fix typo: calle -> callee.
9684 2020-09-22  Jakub Jelinek  <jakub@redhat.com>
9686         * common.opt (-fipa-modref): Add dot at the end of option help.
9687         * params.opt (--param=modref-max-tests=): Likewise.
9689 2020-09-21  Marek Polacek  <polacek@redhat.com>
9691         * doc/invoke.texi: Document -Wctad-maybe-unsupported.
9693 2020-09-21  Richard Biener  <rguenther@suse.de>
9695         PR tree-optimization/97139
9696         * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Only mark the
9697         pattern root, track visited vectorized stmts.
9699 2020-09-21  Jakub Jelinek  <jakub@redhat.com>
9701         * configure.ac: Use mallinfo mallinfo2 as first operand of
9702         gcc_AC_CHECK_DECLS rather than [mallinfo, mallinfo2].
9703         * configure: Regenerated.
9704         * config.in: Regenerated.
9706 2020-09-21  Andrea Corallo  <andrea.corallo@arm.com>
9708         * config/aarch64/aarch64-builtins.c
9709         (aarch64_general_expand_builtin): Use expand machinery not to
9710         alter the value of an rtx returned by force_reg.
9712 2020-09-21  Richard Biener  <rguenther@suse.de>
9714         PR tree-optimization/97135
9715         * tree-ssa-loop-im.c (sm_seq_push_down): Do not ignore
9716         self-dependences.
9718 2020-09-21  Martin Liska  <mliska@suse.cz>
9720         PR tree-optimization/96915
9721         * tree-switch-conversion.c (switch_conversion::expand): Accept
9722         also integer constants.
9724 2020-09-21  Martin Liska  <mliska@suse.cz>
9726         * print-tree.c (print_node): Remove extra space.
9728 2020-09-21  Andrea Corallo  <andrea.corallo@arm.com>
9730         PR target/96968
9731         * config/aarch64/aarch64-builtins.c
9732         (aarch64_expand_fpsr_fpcr_setter): Fix comment nit.
9733         (aarch64_expand_fpsr_fpcr_getter): New function, expand these
9734         getters using expand_insn machinery.
9735         (aarch64_general_expand_builtin): Make use of.
9737 2020-09-21  Martin Liska  <mliska@suse.cz>
9739         * ggc-common.c (ggc_rlimit_bound): Use ONE_? macro.
9740         (ggc_min_expand_heuristic): Likewise.
9741         (ggc_min_heapsize_heuristic): Likewise.
9742         * ggc-page.c (ggc_collect): Likewise.
9743         * system.h (ONE_G): Likewise.
9745 2020-09-21  Martin Liska  <mliska@suse.cz>
9747         * ggc-common.c (ggc_prune_overhead_list): Use SIZE_AMOUNT.
9748         * ggc-page.c (release_pages): Likewise.
9749         (ggc_collect): Likewise.
9750         (ggc_trim): Likewise.
9751         (ggc_grow): Likewise.
9752         * timevar.c (timer::print): Likewise.
9754 2020-09-21  Martin Liska  <mliska@suse.cz>
9756         * config.in: Regenerate.
9757         * configure: Likewise.
9758         * configure.ac: Detect for mallinfo2.
9759         * ggc-common.c (defined): Use it.
9760         * system.h: Handle also HAVE_MALLINFO2.
9762 2020-09-20  John David Anglin  < danglin@gcc.gnu.org>
9764         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Delete.
9765         * config/pa/pa64-hpux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
9766         (ENDFILE_SPEC): Link with libgcc_stub.a and mill.a.
9767         * config/pa/pa32-linux.h (ENDFILE_SPEC): Link with libgcc.a.
9769 2020-09-20  Jan Hubicka  <hubicka@ucw.cz>
9771         * ipa-modref.c (dump_lto_records): Fix ICE.
9773 2020-09-20  David Cepelik  <d@dcepelik.cz>
9774             Jan Hubicka  <hubicka@ucw.cz>
9776         * Makefile.in: Add ipa-modref.c and ipa-modref-tree.c.
9777         * alias.c: (reference_alias_ptr_type_1): Export.
9778         * alias.h (reference_alias_ptr_type_1): Declare.
9779         * common.opt (fipa-modref): New.
9780         * gengtype.c (open_base_files): Add ipa-modref-tree.h and ipa-modref.h
9781         * ipa-modref-tree.c: New file.
9782         * ipa-modref-tree.h: New file.
9783         * ipa-modref.c: New file.
9784         * ipa-modref.h: New file.
9785         * lto-section-in.c (lto_section_name): Add ipa_modref.
9786         * lto-streamer.h (enum lto_section_type): Add LTO_section_ipa_modref.
9787         * opts.c (default_options_table): Enable ipa-modref at -O1+.
9788         * params.opt (-param=modref-max-bases, -param=modref-max-refs,
9789         -param=modref-max-tests): New params.
9790         * passes.def: Schedule pass_modref and pass_ipa_modref.
9791         * timevar.def (TV_IPA_MODREF): New timevar.
9792         (TV_TREE_MODREF): New timevar.
9793         * tree-pass.h (make_pass_modref): Declare.
9794         (make_pass_ipa_modref): Declare.
9795         * tree-ssa-alias.c (dump_alias_stats): Include ipa-modref-tree.h
9796         and ipa-modref.h
9797         (alias_stats): Add modref_use_may_alias, modref_use_no_alias,
9798         modref_clobber_may_alias, modref_clobber_no_alias, modref_tests.
9799         (dump_alias_stats): Dump new stats.
9800         (nonoverlapping_array_refs_p): Fix formating.
9801         (modref_may_conflict): New function.
9802         (ref_maybe_used_by_call_p_1): Use it.
9803         (call_may_clobber_ref_p_1): Use it.
9804         (call_may_clobber_ref_p): Update.
9805         (stmt_may_clobber_ref_p_1): Update.
9806         * tree-ssa-alias.h (call_may_clobber_ref_p_1): Update.
9808 2020-09-19  Martin Sebor  <msebor@redhat.com>
9810         PR middle-end/82608
9811         PR middle-end/94195
9812         PR c/50584
9813         PR middle-end/84051
9814         * gimple-array-bounds.cc (get_base_decl): New function.
9815         (get_ref_size): New function.
9816         (trailing_array): New function.
9817         (array_bounds_checker::check_array_ref): Call them.  Handle arrays
9818         declared in function parameters.
9819         (array_bounds_checker::check_mem_ref):  Same.  Handle references to
9820         dynamically allocated arrays.
9822 2020-09-19  Martin Sebor  <msebor@redhat.com>
9824         PR c/50584
9825         * builtins.c (warn_for_access): Add argument.  Distinguish between
9826         reads and writes.
9827         (check_access): Add argument.  Distinguish between reads and writes.
9828         (gimple_call_alloc_size): Set range even on failure.
9829         (gimple_parm_array_size): New function.
9830         (compute_objsize): Call it.
9831         (check_memop_access): Pass check_access an additional argument.
9832         (expand_builtin_memchr, expand_builtin_strcat): Same.
9833         (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
9834         (expand_builtin_stpncpy, check_strncat_sizes): Same.
9835         (expand_builtin_strncat, expand_builtin_strncpy): Same.
9836         (expand_builtin_memcmp): Same.
9837         * builtins.h (compute_objsize): Declare a new overload.
9838         (gimple_parm_array_size): Declare.
9839         (check_access): Add argument.
9840         * calls.c (append_attrname): Simplify.
9841         (maybe_warn_rdwr_sizes): Handle internal attribute access.
9842         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid adding
9843         quotes.
9845 2020-09-19  Martin Sebor  <msebor@redhat.com>
9847         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Handle attribute
9848         access internal representation of arrays.
9850 2020-09-19  Martin Sebor  <msebor@redhat.com>
9852         PR c/50584
9853         * attribs.c (decl_attributes): Also pass decl along with type
9854         attributes to handlers.
9855         (init_attr_rdwr_indices): Change second argument to attribute chain.
9856         Handle internal attribute representation in addition to external.
9857         (get_parm_access): New function.
9858         (attr_access::to_internal_string): Define new member function.
9859         (attr_access::to_external_string): Define new member function.
9860         (attr_access::vla_bounds): Define new member function.
9861         * attribs.h (struct attr_access): Declare new members.
9862         (attr_access::from_mode_char): Define new member function.
9863         (get_parm_access): Declare new function.
9864         * calls.c (initialize_argument_information): Pass function type
9865         attributes to init_attr_rdwr_indices.
9866         * doc/invoke.texi (-Warray-parameter, -Wvla-parameter): Document.
9867         * tree-pretty-print.c (dump_generic_node): Correct handling of
9868         qualifiers.
9869         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Same.
9870         * tree.h (access_mode): Add new enumerator.
9872 2020-09-19  Sandra Loosemore  <sandra@codesourcery.com>
9874         * doc/generic.texi (Basic Statements): Document SWITCH_EXPR here,
9875         not SWITCH_STMT.
9876         (Statements for C and C++): Rename node to reflect what
9877         the introduction already says about sharing between C and C++
9878         front ends.  Copy-edit and correct documentation for structured
9879         loops and switch.
9881 2020-09-19  liuhongt  <hongtao.liu@intel.com>
9883         PR target/96861
9884         * config/i386/x86-tune-costs.h (skylake_cost): increase rtx
9885         cost of sse_to_integer from 2 to 6.
9887 2020-09-18  Sudi Das  <sudi.das@arm.com>
9888             Omar Tahir  <omar.tahir@arm.com>
9890         * config/arm/thumb2.md (*thumb2_csneg): New.
9891         (*thumb2_negscc): Don't match if TARGET_COND_ARITH.
9892         * config/arm/arm.md (*if_neg_move): Don't match if TARGET_COND_ARITH.
9894 2020-09-18  Sudi Das  <sudi.das@arm.com>
9895             Omar Tahir  <omar.tahir@arm.com>
9897         * config/arm/thumb2.md (*thumb2_csinc): New.
9898         (*thumb2_cond_arith): Generate CINC where possible.
9900 2020-09-18  Sudi Das  <sudi.das@arm.com>
9901             Omar Tahir  <omar.tahir@arm.com>
9903         * config/arm/arm.h (TARGET_COND_ARITH): New macro.
9904         * config/arm/arm.c (arm_have_conditional_execution): Return false if
9905         TARGET_COND_ARITH before reload.
9906         * config/arm/predicates.md (arm_comparison_operation): Returns true if
9907         comparing CC_REGNUM with constant zero.
9908         * config/arm/thumb2.md (*thumb2_csinv): New.
9909         (*thumb2_movcond): Don't match if TARGET_COND_ARITH.
9911 2020-09-18  Richard Sandiford  <richard.sandiford@arm.com>
9913         PR middle-end/91957
9914         * ira.c (ira_setup_eliminable_regset): Skip the special elimination
9915         handling of the hard frame pointer if the hard frame pointer is fixed.
9917 2020-09-18  Richard Biener  <rguenther@suse.de>
9919         PR tree-optimization/97081
9920         * tree-vect-patterns.c (vect_recog_rotate_pattern): Use the
9921         precision of the shifted operand to determine the mask.
9923 2020-09-18  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9925         * config/msp430/msp430.c (msp430_print_operand): Update comment.
9926         Cast to long when printing values formatted as long.
9927         Support 'd', 'e', 'f' and 'g' modifiers.
9928         Extract operand value with a single operation for all modifiers.
9929         * doc/extend.texi (msp430Operandmodifiers): New.
9931 2020-09-18  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9933         * config/msp430/msp430.c (increment_stack): Mark insns which increment
9934         the stack as frame_related.
9935         (msp430_expand_prologue): Add comments.
9936         (msp430_expand_epilogue): Mark insns which decrement
9937         the stack as frame_related.
9938         Add reg_note to stack pop insns describing position of register
9939         variables on the stack.
9941 2020-09-18  Andrew Stubbs  <ams@codesourcery.com>
9943         * config/gcn/gcn-tree.c (execute_omp_gcn): Delete.
9944         (make_pass_omp_gcn): Delete.
9945         * config/gcn/t-gcn-hsa (PASSES_EXTRA): Delete.
9946         * config/gcn/gcn-passes.def: Removed.
9948 2020-09-18  Alex Coplan  <alex.coplan@arm.com>
9950         * cfgloop.h (nb_iter_bound): Reword comment describing is_exit.
9952 2020-09-18  Richard Biener  <rguenther@suse.de>
9954         PR tree-optimization/97095
9955         * tree-vect-loop.c (vectorizable_live_operation): Get
9956         the SLP vector type from the correct object.
9958 2020-09-18  Richard Biener  <rguenther@suse.de>
9960         PR tree-optimization/97089
9961         * tree-ssa-sccvn.c (visit_nary_op): Do not replace unsigned
9962         divisions.
9964 2020-09-18  Richard Biener  <rguenther@suse.de>
9966         PR tree-optimization/97098
9967         * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Do not
9968         recurse to children when all stmts were already visited.
9970 2020-09-17  Sergei Trofimovich  <siarheit@google.com>
9972         * profile.c (sort_hist_values): Clarify hist format:
9973         start with a value, not counter.
9975 2020-09-17  Yeting Kuo  <fakepaper56@gmail.com>
9977         * config/riscv/riscv.h (CSW_MAX_OFFSET): Fix typo.
9979 2020-09-17  Patrick Palka  <ppalka@redhat.com>
9981         PR c/80076
9982         * gensupport.c (alter_attrs_for_subst_insn) <case SET_ATTR>:
9983         Reduce indentation of misleadingly indented code fragment.
9984         * lra-constraints.c (multi_block_pseudo_p): Likewise.
9985         * sel-sched-ir.c (merge_fences): Likewise.
9987 2020-09-17  Martin Sebor  <msebor@redhat.com>
9989         * doc/invoke.texi (-Wuninitialized): Document -Wuninitialized for
9990         allocated objects.
9991          (-Wmaybe-uninitialized): Same.
9993 2020-09-17  Richard Biener  <rguenther@suse.de>
9995         * tree-ssa-sccvn.c (visit_nary_op): Value-number multiplications
9996         and divisions to negates of available negated forms.
9998 2020-09-17  Eric Botcazou  <ebotcazou@adacore.com>
10000         PR middle-end/97078
10001         * function.c (use_register_for_decl): Test cfun->tail_call_marked
10002         for a parameter here instead of...
10003         (assign_parm_setup_reg): ...here.
10005 2020-09-17  Aldy Hernandez  <aldyh@redhat.com>
10007         * range-op.cc (multi_precision_range_tests): Normalize symbolics when copying to a
10008         multi-range.
10009         * value-range.cc (irange::copy_legacy_range): Add test.
10011 2020-09-17  Jan Hubicka  <jh@suse.cz>
10013         * cgraph.c (cgraph_node::get_availability): Fix availability of
10014         functions in other partitions
10015         * varpool.c (varpool_node::get_availability): Likewise.
10017 2020-09-17  Jojo R  <jiejie_rong@c-sky.com>
10019         * config/csky/csky.opt (msim): New.
10020         * doc/invoke.texi (C-SKY Options): Document -msim.
10021         * config/csky/csky-elf.h (LIB_SPEC): Add simulator runtime.
10023 2020-09-17  Sergei Trofimovich  <siarheit@google.com>
10025         * doc/cppenv.texi: Use @code{} instead of @samp{@command{}}
10026         around 'date %s'.
10028 2020-09-17  liuhongt  <hongtao.liu@intel.com>
10030         * common/config/i386/i386-common.c
10031         (OPTION_MASK_ISA_AVX_UNSET): Remove OPTION_MASK_ISA_XSAVE_UNSET.
10032         (OPTION_MASK_ISA_XSAVE_UNSET): Add OPTION_MASK_ISA_AVX_UNSET.
10034 2020-09-16  Alexandre Oliva  <oliva@adacore.com>
10036         * config/rs6000/rs6000.c (have_compare_and_set_mask): Use
10037         E_*mode in cases.
10039 2020-09-16  Bill Schmidt  <wschmidt@linux.ibm.com>
10041         * config/rs6000/predicates.md (current_file_function_operand):
10042         Remove argument from rs6000_pcrel_p call.
10043         * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
10044         Likewise.
10045         (rs6000_global_entry_point_prologue_needed_p): Likewise.
10046         (rs6000_output_function_prologue): Likewise.
10047         * config/rs6000/rs6000-protos.h (rs6000_function_pcrel_p): New
10048         prototype.
10049         (rs6000_pcrel_p): Remove argument.
10050         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
10051         argument from rs6000_pcrel_p call.
10052         (rs6000_call_template_1): Likewise.
10053         (rs6000_indirect_call_template_1): Likewise.
10054         (rs6000_longcall_ref): Likewise.
10055         (rs6000_call_aix): Likewise.
10056         (rs6000_sibcall_aix): Likewise.
10057         (rs6000_function_pcrel_p): Rename from rs6000_pcrel_p.
10058         (rs6000_pcrel_p): Rewrite.
10059         * config/rs6000/rs6000.md (*pltseq_plt_pcrel<mode>): Remove
10060         argument from rs6000_pcrel_p call.
10061         (*call_local<mode>): Likewise.
10062         (*call_value_local<mode>): Likewise.
10063         (*call_nonlocal_aix<mode>): Likewise.
10064         (*call_value_nonlocal_aix<mode>): Likewise.
10065         (*call_indirect_pcrel<mode>): Likewise.
10066         (*call_value_indirect_pcrel<mode>): Likewise.
10068 2020-09-16  Marek Polacek  <polacek@redhat.com>
10070         PR preprocessor/96935
10071         * input.c (get_substring_ranges_for_loc): Return if start.column
10072         is less than 1.
10074 2020-09-16  Martin Sebor  <msebor@redhat.com>
10076         PR middle-end/96295
10077         * tree-ssa-uninit.c (maybe_warn_operand): Work harder to avoid
10078         warning for objects of empty structs
10080 2020-09-16  Eric Botcazou  <ebotcazou@adacore.com>
10082         * tree-eh.c (lower_try_finally_dup_block): Backward propagate slocs
10083         to stack restore builtin calls.
10084         (cleanup_all_empty_eh): Do again a post-order traversal of the EH
10085         region tree.
10087 2020-09-16  Andrea Corallo  <andrea.corallo@arm.com>
10089         * tree-vect-loop.c (vect_need_peeling_or_partial_vectors_p): New
10090         function.
10091         (vect_analyze_loop_2): Make use of it not to select partial
10092         vectors if no peel is required.
10093         (determine_peel_for_niter): Move out some logic into
10094         'vect_need_peeling_or_partial_vectors_p'.
10096 2020-09-16  H.J. Lu  <hjl.tools@gmail.com>
10098         PR target/97032
10099         * cfgexpand.c (asm_clobber_reg_kind): Set sp_is_clobbered_by_asm
10100         to true if the stack pointer is clobbered by asm statement.
10101         * emit-rtl.h (rtl_data): Add sp_is_clobbered_by_asm.
10102         * config/i386/i386.c (ix86_get_drap_rtx): Set need_drap to true
10103         if the stack pointer is clobbered by asm statement.
10105 2020-09-16  Ilya Leoshkevich  <iii@linux.ibm.com>
10107         * config/s390/vector.md(*vec_tf_to_v1tf): Use "f" instead of "v"
10108           for the source operand.
10110 2020-09-16  Jojo R  <jiejie_rong@c-sky.com>
10112         * config.gcc (C-SKY): Set use_gcc_stdint=wrap for elf target.
10114 2020-09-16  Richard Biener  <rguenther@suse.de>
10116         * tree-vectorizer.h (_stmt_vec_info::num_slp_uses): Remove.
10117         (STMT_VINFO_NUM_SLP_USES): Likewise.
10118         (vect_free_slp_instance): Adjust.
10119         (vect_update_shared_vectype): Declare.
10120         * tree-vectorizer.c (vec_info::~vec_info): Adjust.
10121         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10122         (vectorizable_live_operation): Use vector type from
10123         SLP_TREE_REPRESENTATIVE.
10124         (vect_transform_loop): Adjust.
10125         * tree-vect-data-refs.c (vect_slp_analyze_node_alignment):
10126         Set the shared vector type.
10127         * tree-vect-slp.c (vect_free_slp_tree): Remove final_p
10128         parameter, remove STMT_VINFO_NUM_SLP_USES updating.
10129         (vect_free_slp_instance): Adjust.
10130         (vect_create_new_slp_node): Remove STMT_VINFO_NUM_SLP_USES
10131         updating.
10132         (vect_update_shared_vectype): Always compare with the
10133         present vector type, update if NULL.
10134         (vect_build_slp_tree_1): Do not update the shared vector
10135         type here.
10136         (vect_build_slp_tree_2): Adjust.
10137         (slp_copy_subtree): Likewise.
10138         (vect_attempt_slp_rearrange_stmts): Likewise.
10139         (vect_analyze_slp_instance): Likewise.
10140         (vect_analyze_slp): Likewise.
10141         (vect_slp_analyze_node_operations_1): Update the shared
10142         vector type.
10143         (vect_slp_analyze_operations): Adjust.
10144         (vect_slp_analyze_bb_1): Likewise.
10146 2020-09-16  Jojo R  <jiejie_rong@c-sky.com>
10148         * config/csky/t-csky-linux (CSKY_MULTILIB_OSDIRNAMES): Use mfloat-abi.
10149         (MULTILIB_OPTIONS): Likewise.
10150         * config/csky/t-csky-elf (MULTILIB_OPTIONS): Likewise.
10151         (MULTILIB_EXCEPTIONS): Likewise.
10153 2020-09-16  Jakub Jelinek  <jakub@redhat.com>
10155         * config/arm/arm.c (arm_option_restore): Comment out opts argument
10156         name to avoid unused parameter warnings.
10158 2020-09-16  Jakub Jelinek  <jakub@redhat.com>
10160         * optc-save-gen.awk: In cl_optimization_stream_out use
10161         bp_pack_var_len_{int,unsigned} instead of bp_pack_value.  In
10162         cl_optimization_stream_in use bp_unpack_var_len_{int,unsigned}
10163         instead of bp_unpack_value.  Formatting fix.
10165 2020-09-16  Jakub Jelinek  <jakub@redhat.com>
10167         PR tree-optimization/97053
10168         * gimple-ssa-store-merging.c (check_no_overlap): Add FIRST_ORDER,
10169         START, FIRST_EARLIER and LAST_EARLIER arguments.  Return false if
10170         any stores between FIRST_EARLIER inclusive and LAST_EARLIER exclusive
10171         has order in between FIRST_ORDER and LAST_ORDER and overlaps the to
10172         be merged store.
10173         (imm_store_chain_info::try_coalesce_bswap): Add FIRST_EARLIER argument.
10174         Adjust check_no_overlap caller.
10175         (imm_store_chain_info::coalesce_immediate_stores): Add first_earlier
10176         and last_earlier variables, adjust them during iterations.  Adjust
10177         check_no_overlap callers, call check_no_overlap even when extending
10178         overlapping stores by extra INTEGER_CST stores.
10180 2020-09-16  Jojo R  <jiejie_rong@c-sky.com>
10182         * config/csky/csky-linux-elf.h (GLIBC_DYNAMIC_LINKER): Use mfloat-abi.
10184 2020-09-16  Kewen Lin  <linkw@linux.ibm.com>
10186         PR target/97019
10187         * config/rs6000/rs6000-p8swap.c (find_alignment_op): Adjust to
10188         support multiple defintions which are all AND operations with
10189         the mask -16B.
10190         (recombine_lvx_pattern): Adjust to handle multiple AND operations
10191         from find_alignment_op.
10192         (recombine_stvx_pattern): Likewise.
10194 2020-09-16  Jojo R  <jiejie_rong@c-sky.com>
10196         * config/csky/csky.md (CSKY_NPARM_FREGS): New.
10197         (call_value_internal_vs/d): New.
10198         (untyped_call): New.
10199         * config/csky/csky.h (TARGET_SINGLE_FPU): New.
10200         (TARGET_DOUBLE_FPU): New.
10201         (FUNCTION_VARG_REGNO_P): New.
10202         (CSKY_VREG_MODE_P): New.
10203         (FUNCTION_VARG_MODE_P): New.
10204         (CUMULATIVE_ARGS): Add extra regs info.
10205         (INIT_CUMULATIVE_ARGS): Use csky_init_cumulative_args.
10206         (FUNCTION_ARG_REGNO_P): Use FUNCTION_VARG_REGNO_P.
10207         * config/csky/csky-protos.h (csky_init_cumulative_args): Extern.
10208         * config/csky/csky.c (csky_cpu_cpp_builtins): Support TARGET_HARD_FLOAT_ABI.
10209         (csky_function_arg): Likewise.
10210         (csky_num_arg_regs): Likewise.
10211         (csky_function_arg_advance): Likewise.
10212         (csky_function_value): Likewise.
10213         (csky_libcall_value): Likewise.
10214         (csky_function_value_regno_p): Likewise.
10215         (csky_arg_partial_bytes): Likewise.
10216         (csky_setup_incoming_varargs): Likewise.
10217         (csky_init_cumulative_args): New.
10219 2020-09-16  Bill Schmidt  <wschmidt@linux.ibm.com>
10221         * config/rs6000/rs6000-call.c (altivec_init_builtins): Fix name
10222         of __builtin_altivec_xst_len_r.
10224 2020-09-15  Ilya Leoshkevich  <iii@linux.ibm.com>
10226         * rtlanal.c (set_noop_p): Treat subregs of registers in
10227         different modes conservatively.
10229 2020-09-15  Richard Biener  <rguenther@suse.de>
10231         * tree-vect-slp.c (vect_get_and_check_slp_defs): Make swap
10232         argument by-value and do not change it.
10233         (vect_build_slp_tree_2): Adjust, set swap to NULL after last
10234         use.
10236 2020-09-15  Feng Xue  <fxue@os.amperecomputing.com>
10238         PR tree-optimization/94234
10239         * match.pd (T)(A) +- (T)(B) -> (T)(A +- B): New simplification.
10241 2020-09-15  Segher Boessenkool  <segher@kernel.crashing.org>
10243         PR rtl-optimization/96475
10244         * bb-reorder.c (duplicate_computed_gotos): If we did anything, run
10245         cleanup_cfg.
10247 2020-09-15  Richard Biener  <rguenther@suse.de>
10249         * tree-vect-slp.c (vect_build_slp_tree_2): Also consider
10250         building an operand from scalars when building it did not
10251         fail fatally but avoid messing with the upcall splitting
10252         of groups.
10254 2020-09-15  Andre Vieira  <andre.simoesdiasvieira@arm.com>
10256         * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Do not
10257         check +D32 for CMSE if -mfloat-abi=soft
10259 2020-09-15  liuhongt  <hongtao.liu@intel.com>
10261         PR target/96744
10262         * config/i386/x86-tune-costs.h (struct processor_costs):
10263         Increase mask <-> integer cost for non AVX512 target to avoid
10264         spill gpr to mask. Also retune mask <-> integer and
10265         mask_load/store for skylake_cost.
10267 2020-09-15  Jakub Jelinek  <jakub@redhat.com>
10269         PR target/97028
10270         * config/i386/sse.md (mul<mode>3<mask_name>_bcs,
10271         <avx512>_div<mode>3<mask_name>_bcst): Use <avx512bcst> instead of
10272         <<avx512bcst>>.
10274 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
10276         PR fortran/96668
10277         * gimplify.c (gimplify_omp_for): Add 'bool openacc' argument;
10278         update omp_finish_clause calls.
10279         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses,
10280         gimplify_expr, gimplify_omp_loop): Update omp_finish_clause
10281         and/or gimplify_for calls.
10282         * langhooks-def.h (lhd_omp_finish_clause): Add bool openacc arg.
10283         * langhooks.c (lhd_omp_finish_clause): Likewise.
10284         * langhooks.h (lhd_omp_finish_clause): Likewise.
10285         * omp-low.c (scan_sharing_clauses): Keep GOMP_MAP_TO_PSET cause for
10286         'declare target' vars.
10288 2020-09-15  Feng Xue  <fxue@os.amperecomputing.com>
10290         PR tree-optimization/94234
10291         * genmatch.c (dt_simplify::gen_1): Emit check on final simplification
10292         result when "!" is specified on toplevel output expr.
10293         * match.pd ((A * C) +- (B * C) -> (A +- B) * C): Allow folding on expr
10294         with multi-use operands if final result is a simple gimple value.
10296 2020-09-14  Sergei Trofimovich  <siarheit@google.com>
10298         * doc/invoke.texi: fix '-fprofile-reproducibility' option
10299         spelling in manual.
10301 2020-09-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
10303         * config/bpf/bpf.md ("nop"): Re-define as `ja 0'.
10305 2020-09-14  Eric Botcazou  <ebotcazou@adacore.com>
10307         * cgraphunit.c (cgraph_node::expand_thunk): Make sure to set
10308         cfun->tail_call_marked when forcing a tail call.
10309         * function.c (assign_parm_setup_reg): Always use a register to
10310         load a parameter passed by reference if cfun->tail_call_marked.
10312 2020-09-14  Pat Haugen  <pthaugen@linux.ibm.com>
10314         * config/rs6000/power10.md (power10-mffgpr, power10-mftgpr): Rename to
10315         power10-mtvsr/power10-mfvsr.
10316         * config/rs6000/power6.md (X2F_power6, power6-mftgpr, power6-mffgpr):
10317         Remove.
10318         * config/rs6000/power8.md (power8-mffgpr, power8-mftgpr): Rename to
10319         power8-mtvsr/power8-mfvsr.
10320         * config/rs6000/power9.md (power9-mffgpr, power9-mftgpr): Rename to
10321         power9-mtvsr/power9-mfvsr.
10322         * config/rs6000/rs6000.c (rs6000_adjust_cost): Remove Power6
10323         TYPE_MFFGPR cases.
10324         * config/rs6000/rs6000.md (mffgpr, mftgpr, zero_extendsi<mode>2,
10325         extendsi<mode>2, @signbit<mode>2_dm, lfiwax, lfiwzx, *movsi_internal1,
10326         movsi_from_sf, *movdi_from_sf_zero_ext, *mov<mode>_internal,
10327         movsd_hardfloat, movsf_from_si, *mov<mode>_hardfloat64, p8_mtvsrwz,
10328         p8_mtvsrd_df, p8_mtvsrd_sf, p8_mfvsrd_3_<mode>, *movdi_internal64,
10329         unpack<mode>_dm): Rename mffgpr/mftgpr to mtvsr/mfvsr.
10330         * config/rs6000/vsx.md (vsx_mov<mode>_64bit, vsx_extract_<mode>,
10331         vsx_extract_si, *vsx_extract_<mode>_p8): Likewise.
10333 2020-09-14  Jakub Jelinek  <jakub@redhat.com>
10335         * config/arm/arm.opt (x_arm_arch_string, x_arm_cpu_string,
10336         x_arm_tune_string): Remove TargetSave entries.
10337         (march=, mcpu=, mtune=): Add Save keyword.
10338         * config/arm/arm.c (arm_option_save): Remove.
10339         (TARGET_OPTION_SAVE): Don't redefine.
10340         (arm_option_restore): Don't restore x_arm_*_string here.
10342 2020-09-14  Jakub Jelinek  <jakub@redhat.com>
10344         * opt-read.awk: Also initialize extra_target_var_types array.
10345         * opth-gen.awk: Emit explicit_mask arrays to struct cl_optimization
10346         and cl_target_option.  Adjust cl_optimization_save,
10347         cl_optimization_restore, cl_target_option_save and
10348         cl_target_option_restore declarations.
10349         * optc-save-gen.awk: Add opts_set argument to cl_optimization_save,
10350         cl_optimization_restore, cl_target_option_save and
10351         cl_target_option_restore functions and save or restore opts_set
10352         next to the opts values into or from explicit_mask arrays.
10353         In cl_target_option_eq and cl_optimization_option_eq compare
10354         explicit_mask arrays, in cl_target_option_hash and cl_optimization_hash
10355         hash them and in cl_target_option_stream_out,
10356         cl_target_option_stream_in, cl_optimization_stream_out and
10357         cl_optimization_stream_in stream them.
10358         * tree.h (build_optimization_node, build_target_option_node): Add
10359         opts_set argument.
10360         * tree.c (build_optimization_node): Add opts_set argument, pass it
10361         to cl_optimization_save.
10362         (build_target_option_node): Add opts_set argument, pass it to
10363         cl_target_option_save.
10364         * function.c (invoke_set_current_function_hook): Adjust
10365         cl_optimization_restore caller.
10366         * ipa-inline-transform.c (inline_call): Adjust cl_optimization_restore
10367         and build_optimization_node callers.
10368         * target.def (TARGET_OPTION_SAVE, TARGET_OPTION_RESTORE): Add opts_set
10369         argument.
10370         * target-globals.c (save_target_globals_default_opts): Adjust
10371         cl_optimization_restore callers.
10372         * toplev.c (process_options): Adjust build_optimization_node and
10373         cl_optimization_restore callers.
10374         (target_reinit): Adjust cl_optimization_restore caller.
10375         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
10376         Adjust build_optimization_node and cl_optimization_restore callers.
10377         * doc/tm.texi: Updated.
10378         * config/aarch64/aarch64.c (aarch64_override_options): Adjust
10379         build_target_option_node caller.
10380         (aarch64_option_save, aarch64_option_restore): Add opts_set argument.
10381         (aarch64_set_current_function): Adjust cl_target_option_restore
10382         caller.
10383         (aarch64_option_valid_attribute_p): Adjust cl_target_option_save,
10384         cl_target_option_restore, cl_optimization_restore,
10385         build_optimization_node and build_target_option_node callers.
10386         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Adjust
10387         cl_target_option_restore and build_target_option_node callers.
10388         * config/arm/arm.c (arm_option_save, arm_option_restore): Add
10389         opts_set argument.
10390         (arm_option_override): Adjust cl_target_option_save,
10391         build_optimization_node and build_target_option_node callers.
10392         (arm_set_current_function): Adjust cl_target_option_restore caller.
10393         (arm_valid_target_attribute_tree): Adjust build_target_option_node
10394         caller.
10395         (add_attribute): Formatting fix.
10396         (arm_valid_target_attribute_p): Adjust cl_optimization_restore,
10397         cl_target_option_restore, arm_valid_target_attribute_tree and
10398         build_optimization_node callers.
10399         * config/arm/arm-c.c (arm_pragma_target_parse): Adjust
10400         cl_target_option_restore callers.
10401         * config/csky/csky.c (csky_option_override): Adjust
10402         build_target_option_node and cl_target_option_save callers.
10403         * config/gcn/gcn.c (gcn_fixup_accel_lto_options): Adjust
10404         build_optimization_node and cl_optimization_restore callers.
10405         * config/i386/i386-builtins.c (get_builtin_code_for_version):
10406         Adjust cl_target_option_save and cl_target_option_restore
10407         callers.
10408         * config/i386/i386-c.c (ix86_pragma_target_parse): Adjust
10409         build_target_option_node and cl_target_option_restore callers.
10410         * config/i386/i386-options.c (ix86_function_specific_save,
10411         ix86_function_specific_restore): Add opts_set arguments.
10412         (ix86_valid_target_attribute_tree): Adjust build_target_option_node
10413         caller.
10414         (ix86_valid_target_attribute_p): Adjust build_optimization_node,
10415         cl_optimization_restore, cl_target_option_restore,
10416         ix86_valid_target_attribute_tree and build_optimization_node callers.
10417         (ix86_option_override_internal): Adjust build_target_option_node
10418         caller.
10419         (ix86_reset_previous_fndecl, ix86_set_current_function): Adjust
10420         cl_target_option_restore callers.
10421         * config/i386/i386-options.h (ix86_function_specific_save,
10422         ix86_function_specific_restore): Add opts_set argument.
10423         * config/nios2/nios2.c (nios2_option_override): Adjust
10424         build_target_option_node caller.
10425         (nios2_option_save, nios2_option_restore): Add opts_set argument.
10426         (nios2_valid_target_attribute_tree): Adjust build_target_option_node
10427         caller.
10428         (nios2_valid_target_attribute_p): Adjust build_optimization_node,
10429         cl_optimization_restore, cl_target_option_save and
10430         cl_target_option_restore callers.
10431         (nios2_set_current_function, nios2_pragma_target_parse): Adjust
10432         cl_target_option_restore callers.
10433         * config/pru/pru.c (pru_option_override): Adjust
10434         build_target_option_node caller.
10435         (pru_set_current_function): Adjust cl_target_option_restore
10436         callers.
10437         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust
10438         cl_target_option_save caller.
10439         (rs6000_option_override_internal): Adjust build_target_option_node
10440         caller.
10441         (rs6000_valid_attribute_p): Adjust build_optimization_node,
10442         cl_optimization_restore, cl_target_option_save,
10443         cl_target_option_restore and build_target_option_node callers.
10444         (rs6000_pragma_target_parse): Adjust cl_target_option_restore and
10445         build_target_option_node callers.
10446         (rs6000_activate_target_options): Adjust cl_target_option_restore
10447         callers.
10448         (rs6000_function_specific_save, rs6000_function_specific_restore):
10449         Add opts_set argument.
10450         * config/s390/s390.c (s390_function_specific_restore): Likewise.
10451         (s390_option_override_internal): Adjust s390_function_specific_restore
10452         caller.
10453         (s390_option_override, s390_valid_target_attribute_tree): Adjust
10454         build_target_option_node caller.
10455         (s390_valid_target_attribute_p): Adjust build_optimization_node,
10456         cl_optimization_restore and cl_target_option_restore callers.
10457         (s390_activate_target_options): Adjust cl_target_option_restore
10458         caller.
10459         * config/s390/s390-c.c (s390_cpu_cpp_builtins): Adjust
10460         cl_target_option_save caller.
10461         (s390_pragma_target_parse): Adjust build_target_option_node and
10462         cl_target_option_restore callers.
10464 2020-09-13  Roger Sayle  <roger@nextmovesoftware.com>
10466         * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
10467         Provide accurate costs for DImode shifts of integer constants.
10469 2020-09-12  Roger Sayle  <roger@nextmovesoftware.com>
10470             John David Anglin  <danglin@gcc.gnu.org>
10472         * config/pa/pa.md (shrpsi4_1, shrpsi4_2): New define_insns split
10473         out from previous shrpsi4 providing two commutitive variants using
10474         plus_xor_ior_operator as a predicate.
10475         (shrpdi4_1, shrpdi4_2, shrpdi_3, shrpdi_4): Likewise DImode versions
10476         where _1 and _2 take register shifts, and _3 and _4 for integers.
10477         (rotlsi3_internal): Name this anonymous instruction.
10478         (rotrdi3): New DImode insn copied from rotrsi3.
10479         (rotldi3): New DImode expander copied from rotlsi3.
10480         (rotldi4_internal): New DImode insn copied from rotsi3_internal.
10482 2020-09-11  Michael Meissner  <meissner@linux.ibm.com>
10484         * config/rs6000/rs6000.c (rs6000_maybe_emit_maxc_minc): Rename
10485         from rs6000_emit_p9_fp_minmax.  Change return type to bool.  Add
10486         comments to document NaN/signed zero behavior.
10487         (rs6000_maybe_emit_fp_cmove): Rename from rs6000_emit_p9_fp_cmove.
10488         (have_compare_and_set_mask): New helper function.
10489         (rs6000_emit_cmove): Update calls to new names and the new helper
10490         function.
10492 2020-09-11  Nathan Sidwell  <nathan@acm.org>
10494         * config/i386/sse.md (mov<mode>): Fix operand indices.
10496 2020-09-11  Martin Sebor  <msebor@redhat.com>
10498         PR middle-end/96903
10499         * builtins.c (compute_objsize): Remove incorrect offset adjustment.
10500         (compute_objsize): Adjust offset range here instead.
10502 2020-09-11  Richard Biener  <rguenther@suse.de>
10504         PR tree-optimization/97020
10505         * tree-vect-slp.c (vect_slp_analyze_operations): Apply
10506         SLP costs when doing loop vectorization.
10508 2020-09-11  Tom de Vries  <tdevries@suse.de>
10510         PR target/96964
10511         * config/nvptx/nvptx.md (define_expand "atomic_test_and_set"): New
10512         expansion.
10514 2020-09-11  Andrew Stubbs  <ams@codesourcery.com>
10516         * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align TImode registers.
10517         * config/gcn/gcn.md: Assert that TImode registers do not early clobber.
10519 2020-09-11  Richard Biener  <rguenther@suse.de>
10521         * tree-vectorizer.h (_slp_instance::location): New method.
10522         (vect_schedule_slp): Adjust prototype.
10523         * tree-vectorizer.c (vec_info::remove_stmt): Adjust
10524         the BB region begin if we removed the stmt it points to.
10525         * tree-vect-loop.c (vect_transform_loop): Adjust.
10526         * tree-vect-slp.c (_slp_instance::location): Implement.
10527         (vect_analyze_slp_instance): For BB vectorization set
10528         vect_location to that of the instance.
10529         (vect_slp_analyze_operations): Likewise.
10530         (vect_bb_vectorization_profitable_p): Remove wrapper.
10531         (vect_slp_analyze_bb_1): Remove cost check here.
10532         (vect_slp_region): Cost check and code generate subgraphs separately,
10533         report optimized locations and missed optimizations due to
10534         profitability for each of them.
10535         (vect_schedule_slp): Get the vector of SLP graph entries to
10536         vectorize as argument.
10538 2020-09-11  Richard Biener  <rguenther@suse.de>
10540         PR tree-optimization/97013
10541         * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove duplicate dumping.
10543 2020-09-11  Richard Biener  <rguenther@suse.de>
10545         * tree-vect-slp.c (vect_build_slp_tree_1): Check vector
10546         types for all lanes are compatible.
10547         (vect_analyze_slp_instance): Appropriately check for stores.
10548         (vect_schedule_slp): Likewise.
10550 2020-09-11  Tom de Vries  <tdevries@suse.de>
10552         * config/nvptx/nvptx.c (nvptx_assemble_value): Fix undefined
10553         behaviour.
10555 2020-09-11  Tom de Vries  <tdevries@suse.de>
10557         * config/nvptx/nvptx.c (nvptx_assemble_value): Handle negative
10558         __int128.
10560 2020-09-11  Aaron Sawdey  <acsawdey@linux.ibm.com>
10562         * config/rs6000/rs6000.c (rs6000_option_override_internal):
10563         Change default.
10565 2020-09-10  Michael Meissner  <meissner@linux.ibm.com>
10567         * config/rs6000/rs6000-protos.h (rs6000_emit_cmove): Change return
10568         type to bool.
10569         (rs6000_emit_int_cmove): Change return type to bool.
10570         * config/rs6000/rs6000.c (rs6000_emit_cmove): Change return type
10571         to bool.
10572         (rs6000_emit_int_cmove): Change return type to bool.
10574 2020-09-10  Tom de Vries  <tdevries@suse.de>
10576         PR target/97004
10577         * config/nvptx/nvptx.c (nvptx_assemble_value): Handle shift by
10578         number of bits in shift operand.
10580 2020-09-10  Jakub Jelinek  <jakub@redhat.com>
10582         * lto-streamer-out.c (collect_block_tree_leafs): Recurse on
10583         root rather than BLOCK_SUBBLOCKS (root).
10585 2020-09-10  Alex Coplan  <alex.coplan@arm.com>
10587         * config/aarch64/aarch64-cores.def: Add Cortex-R82.
10588         * config/aarch64/aarch64-tune.md: Regenerate.
10589         * doc/invoke.texi: Add entry for Cortex-R82.
10591 2020-09-10  Alex Coplan  <alex.coplan@arm.com>
10593         * common/config/aarch64/aarch64-common.c
10594         (aarch64_get_extension_string_for_isa_flags): Don't force +crc for
10595         Armv8-R.
10596         * config/aarch64/aarch64-arches.def: Add entry for Armv8-R.
10597         * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros): Set
10598         __ARM_ARCH_PROFILE correctly for Armv8-R.
10599         * config/aarch64/aarch64.h (AARCH64_FL_V8_R): New.
10600         (AARCH64_FL_FOR_ARCH8_R): New.
10601         (AARCH64_ISA_V8_R): New.
10602         * doc/invoke.texi: Add Armv8-R to architecture table.
10604 2020-09-10  Jakub Jelinek  <jakub@redhat.com>
10606         * config/arm/arm.c (arm_override_options_after_change_1): Add opts_set
10607         argument, test opts_set->x_str_align_functions rather than
10608         opts->x_str_align_functions.
10609         (arm_override_options_after_change, arm_option_override_internal,
10610         arm_set_current_function): Adjust callers.
10612 2020-09-10  Jakub Jelinek  <jakub@redhat.com>
10614         PR target/96939
10615         * config/arm/arm.c (arm_override_options_after_change): Don't call
10616         arm_configure_build_target here.
10617         (arm_set_current_function): Call arm_override_options_after_change_1
10618         at the end.
10620 2020-09-10  Pat Haugen  <pthaugen@linux.ibm.com>
10622         * config/rs6000/rs6000.md
10623         (lfiwzx, floatunssi<mode>2_lfiwzx, p8_mtvsrwz, p8_mtvsrd_sf): Fix insn
10624         type.
10625         * config/rs6000/vsx.md
10626         (vsx_concat_<mode>, vsx_splat_<mode>_reg, vsx_splat_v4sf): Likewise.
10628 2020-09-10  Jonathan Yong  <10walls@gmail.com>
10630         * config.host: Adjust plugin name for Windows.
10632 2020-09-10  Tom de Vries  <tdevries@suse.de>
10634         PR tree-optimization/97000
10635         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): Don't clear
10636         flag for IFN_UNIQUE.
10638 2020-09-10  Jakub Jelinek  <jakub@redhat.com>
10640         PR debug/93865
10641         * lto-streamer.h (struct output_block): Add emit_pwd member.
10642         * lto-streamer-out.c: Include toplev.h.
10643         (clear_line_info): Set emit_pwd.
10644         (lto_output_location_1): Encode the ob->current_file != xloc.file
10645         bit directly into the location number.  If changing file, emit
10646         additionally a bit whether pwd is emitted and emit it before the
10647         first relative pathname since clear_line_info.
10648         (output_function, output_constructor): Don't call clear_line_info
10649         here.
10650         * lto-streamer-in.c (struct string_pair_map): New type.
10651         (struct string_pair_map_hasher): New type.
10652         (string_pair_map_hasher::hash): New method.
10653         (string_pair_map_hasher::equal): New method.
10654         (path_name_pair_hash_table, string_pair_map_allocator): New variables.
10655         (relative_path_prefix, canon_relative_path_prefix,
10656         canon_relative_file_name): New functions.
10657         (canon_file_name): Add relative_prefix argument, if non-NULL
10658         and string is a relative path, return canon_relative_file_name.
10659         (lto_location_cache::input_location_and_block): Decode file change
10660         bit from the location number.  If changing file, unpack bit whether
10661         pwd is streamed and stream in pwd.  Adjust canon_file_name caller.
10662         (lto_free_file_name_hash): Delete path_name_pair_hash_table
10663         and string_pair_map_allocator.
10665 2020-09-10  Richard Biener  <rguenther@suse.de>
10667         PR tree-optimization/96043
10668         * tree-vectorizer.h (_slp_instance::cost_vec): New.
10669         (_slp_instance::subgraph_entries): Likewise.
10670         (BB_VINFO_TARGET_COST_DATA): Remove.
10671         * tree-vect-slp.c (vect_free_slp_instance): Free
10672         cost_vec and subgraph_entries.
10673         (vect_analyze_slp_instance): Initialize them.
10674         (vect_slp_analyze_operations): Defer passing costs to
10675         the target, instead record them in the SLP graph entry.
10676         (get_ultimate_leader): New helper for graph partitioning.
10677         (vect_bb_partition_graph_r): Likewise.
10678         (vect_bb_partition_graph): New function to partition the
10679         SLP graph into independently costable parts.
10680         (vect_bb_vectorization_profitable_p): Adjust to work on
10681         a subgraph.
10682         (vect_bb_vectorization_profitable_p): New wrapper,
10683         discarding non-profitable vectorization of subgraphs.
10684         (vect_slp_analyze_bb_1): Call vect_bb_partition_graph before
10685         costing.
10687 2020-09-09  David Malcolm  <dmalcolm@redhat.com>
10689         PR analyzer/94355
10690         * doc/invoke.texi: Document -Wanalyzer-mismatching-deallocation.
10692 2020-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
10694         PR rtl-optimization/96475
10695         * bb-reorder.c (maybe_duplicate_computed_goto): Remove single_pred_p
10696         micro-optimization.
10698 2020-09-09  Tom de Vries  <tdevries@suse.de>
10700         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Fix Wformat
10701         warning.
10703 2020-09-09  Richard Biener  <rguenther@suse.de>
10705         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
10706         nothing when the permutation doesn't permute.
10708 2020-09-09  Tom de Vries  <tdevries@suse.de>
10710         PR target/96991
10711         * config/nvptx/nvptx.c (write_fn_proto): Fix boolean type check.
10713 2020-09-09  Richard Biener  <rguenther@suse.de>
10715         * tree-vect-stmts.c (vectorizable_comparison): Allow
10716         STMT_VINFO_LIVE_P stmts.
10718 2020-09-09  Richard Biener  <rguenther@suse.de>
10720         * tree-vect-stmts.c (vectorizable_condition): Allow
10721         STMT_VINFO_LIVE_P stmts.
10723 2020-09-09  Richard Biener  <rguenther@suse.de>
10725         PR tree-optimization/96978
10726         * tree-vect-stmts.c (vectorizable_condition): Do not
10727         look at STMT_VINFO_LIVE_P for BB vectorization.
10728         (vectorizable_comparison): Likewise.
10730 2020-09-09  liuhongt  <hongtao.liu@intel.com>
10732         PR target/96955
10733         * config/i386/i386.md (get_thread_pointer<mode>): New
10734         expander.
10736 2020-09-08  Julian Brown  <julian@codesourcery.com>
10738         * config/gcn/gcn-valu.md (scatter<mode>_insn_1offset_ds<exec_scatter>):
10739         Add waitcnt.
10740         * config/gcn/gcn.md (*mov<mode>_insn, *movti_insn): Add waitcnt to
10741         ds_write alternatives.
10743 2020-09-08  Julian Brown  <julian@codesourcery.com>
10745         * config/gcn/mkoffload.c (process_asm): Initialise regcount.  Update
10746         scanning for SGPR/VGPR usage for HSACO v3.
10748 2020-09-08  Aldy Hernandez  <aldyh@redhat.com>
10750         PR tree-optimization/96967
10751         * tree-vrp.c (find_case_label_range): Cast label range to
10752         type of switch operand.
10754 2020-09-08  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10756         * config/msp430/msp430.c (msp430_file_end): Fix jumbled
10757         HAVE_AS_MSPABI_ATTRIBUTE and HAVE_AS_GNU_ATTRIBUTE checks.
10758         * configure: Regenerate.
10759         * configure.ac: Use ".mspabi_attribute 4,2" to check for assembler
10760         support for this object attribute directive.
10762 2020-09-08  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10764         * common/config/msp430/msp430-common.c (msp430_handle_option): Remove
10765         OPT_mcpu_ handling.
10766         Set target_cpu value to new enum values when parsing certain -mmcu=
10767         values.
10768         * config/msp430/msp430-opts.h (enum msp430_cpu_types): New.
10769         * config/msp430/msp430.c (msp430_option_override): Handle new
10770         target_cpu enum values.
10771         Set target_cpu using extracted value for given MCU when -mcpu=
10772         option is not passed by the user.
10773         * config/msp430/msp430.opt: Handle -mcpu= values using enums.
10775 2020-09-07  Richard Sandiford  <richard.sandiford@arm.com>
10777         PR rtl-optimization/96796
10778         * lra-constraints.c (in_class_p): Add a default-false
10779         allow_all_reload_class_changes_p parameter.  Do not treat
10780         reload moves specially when the parameter is true.
10781         (get_reload_reg): Try to narrow the class of an existing OP_OUT
10782         reload if we're reloading a reload pseudo in a reload instruction.
10784 2020-09-07  Andrea Corallo  <andrea.corallo@arm.com>
10786         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Revert
10787         dead-code removal introduced by 09fa6acd8d9 + add a comment to
10788         clarify.
10790 2020-09-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10792         * doc/rtl.texi (subreg): Fix documentation to state there is a known
10793         number of undefined bits in regs and subregs of MODE_PARTIAL_INT modes.
10795 2020-09-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
10797         * config/msp430/msp430.c (msp430_option_override): Don't set the
10798         ISA to 430 when the MCU is unrecognized.
10800 2020-09-07  Iain Sandoe  <iain@sandoe.co.uk>
10802         * config/darwin.c (darwin_libc_has_function): Report sincos
10803         available from 10.9.
10805 2020-09-07  Alex Coplan  <alex.coplan@arm.com>
10807         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): Delete.
10808         (*subs_mul_imm_<mode>): Delete.
10809         (*adds_<optab><mode>_multp2): Delete.
10810         (*subs_<optab><mode>_multp2): Delete.
10811         (*add_mul_imm_<mode>): Delete.
10812         (*add_<optab><ALLX:mode>_mult_<GPI:mode>): Delete.
10813         (*add_<optab><SHORT:mode>_mult_si_uxtw): Delete.
10814         (*add_<optab><mode>_multp2): Delete.
10815         (*add_<optab>si_multp2_uxtw): Delete.
10816         (*add_uxt<mode>_multp2): Delete.
10817         (*add_uxtsi_multp2_uxtw): Delete.
10818         (*sub_mul_imm_<mode>): Delete.
10819         (*sub_mul_imm_si_uxtw): Delete.
10820         (*sub_<optab><mode>_multp2): Delete.
10821         (*sub_<optab>si_multp2_uxtw): Delete.
10822         (*sub_uxt<mode>_multp2): Delete.
10823         (*sub_uxtsi_multp2_uxtw): Delete.
10824         (*neg_mul_imm_<mode>2): Delete.
10825         (*neg_mul_imm_si2_uxtw): Delete.
10826         * config/aarch64/predicates.md (aarch64_pwr_imm3): Delete.
10827         (aarch64_pwr_2_si): Delete.
10828         (aarch64_pwr_2_di): Delete.
10830 2020-09-07  Alex Coplan  <alex.coplan@arm.com>
10832         * config/aarch64/aarch64.md
10833         (*adds_<optab><ALLX:mode>_<GPI:mode>): Ensure extended operand
10834         agrees with width of extension specifier.
10835         (*subs_<optab><ALLX:mode>_<GPI:mode>): Likewise.
10836         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
10837         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
10838         (*add_<optab><ALLX:mode>_<GPI:mode>): Likewise.
10839         (*add_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
10840         (*add_uxt<mode>_shift2): Likewise.
10841         (*sub_<optab><ALLX:mode>_<GPI:mode>): Likewise.
10842         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
10843         (*sub_uxt<mode>_shift2): Likewise.
10844         (*cmp_swp_<optab><ALLX:mode>_reg<GPI:mode>): Likewise.
10845         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
10847 2020-09-07  Richard Biener  <rguenther@suse.de>
10849         * tree-vect-slp.c (vect_analyze_slp_instance): Dump
10850         stmts we start SLP analysis from, failure and splitting.
10851         (vect_schedule_slp): Dump SLP graph entry and root stmt
10852         we are about to emit code for.
10854 2020-09-07  Martin Storsjö  <martin@martin.st>
10856         * dwarf2out.c (file_name_acquire): Make a strchr return value
10857         pointer to const.
10859 2020-09-07  Jakub Jelinek  <jakub@redhat.com>
10861         PR debug/94235
10862         * lto-streamer-out.c (output_cfg): Also stream goto_locus for edges.
10863         Use bp_pack_var_len_unsigned instead of streamer_write_uhwi to stream
10864         e->dest->index and e->flags.
10865         (output_function): Call output_cfg before output_ssa_name, rather than
10866         after streaming all bbs.
10867         * lto-streamer-in.c (input_cfg): Stream in goto_locus for edges.
10868         Use bp_unpack_var_len_unsigned instead of streamer_read_uhwi to stream
10869         in dest_index and edge_flags.
10871 2020-09-07  Richard Biener  <rguenther@suse.de>
10873         * tree-vectorizer.h (vectorizable_live_operation): Adjust.
10874         * tree-vect-loop.c (vectorizable_live_operation): Vectorize
10875         live lanes out of basic-block vectorization nodes.
10876         * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): New function.
10877         (vect_slp_analyze_operations): Analyze live lanes and their
10878         vectorization possibility after the whole SLP graph is final.
10879         (vect_bb_slp_scalar_cost): Adjust for vectorized live lanes.
10880         * tree-vect-stmts.c (can_vectorize_live_stmts): Adjust.
10881         (vect_transform_stmt): Call can_vectorize_live_stmts also for
10882         basic-block vectorization.
10884 2020-09-04  Richard Biener  <rguenther@suse.de>
10886         PR tree-optimization/96698
10887         PR tree-optimization/96920
10888         * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): Remove.
10889         (loop_vec_info::reduc_latch_slp_defs): Likewise.
10890         * tree-vect-stmts.c (vect_transform_stmt): Remove vectorized
10891         cycle PHI latch code.
10892         * tree-vect-loop.c (maybe_set_vectorized_backedge_value): New
10893         helper to set vectorized cycle PHI latch values.
10894         (vect_transform_loop): Walk over all PHIs again after
10895         vectorizing them, calling maybe_set_vectorized_backedge_value.
10896         Call maybe_set_vectorized_backedge_value for each vectorized
10897         stmt.  Remove delayed update code.
10898         * tree-vect-slp.c (vect_analyze_slp_instance): Initialize
10899         SLP instance reduc_phis member.
10900         (vect_schedule_slp): Set vectorized cycle PHI latch values.
10902 2020-09-04  Andrea Corallo  <andrea.corallo@arm.com>
10904         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Remove
10905         dead code as LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) is
10906         always verified.
10908 2020-09-04  Christophe Lyon  <christophe.lyon@linaro.org>
10910         PR target/96769
10911         * config/arm/thumb1.md: Move movsi splitter for
10912         arm_disable_literal_pool after the other movsi splitters.
10914 2020-09-04  Aldy Hernandez  <aldyh@redhat.com>
10916         * range-op.cc (range_operator::fold_range): Rename widest_irange
10917         to int_range_max.
10918         (operator_div::wi_fold): Same.
10919         (operator_lshift::op1_range): Same.
10920         (operator_rshift::op1_range): Same.
10921         (operator_cast::fold_range): Same.
10922         (operator_cast::op1_range): Same.
10923         (operator_bitwise_and::remove_impossible_ranges): Same.
10924         (operator_bitwise_and::op1_range): Same.
10925         (operator_abs::op1_range): Same.
10926         (range_cast): Same.
10927         (widest_irange_tests): Same.
10928         (range3_tests): Rename irange3 to int_range3.
10929         (int_range_max_tests): Rename from widest_irange_tests.
10930         Rename widest_irange to int_range_max.
10931         (operator_tests): Rename widest_irange to int_range_max.
10932         (range_tests): Same.
10933         * tree-vrp.c (find_case_label_range): Same.
10934         * value-range.cc (irange::irange_intersect): Same.
10935         (irange::invert): Same.
10936         * value-range.h: Same.
10938 2020-09-04  Richard Biener  <rguenther@suse.de>
10940         PR tree-optimization/96931
10941         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): If
10942         there's a fallthru edge and no abnormal edge the call is
10943         no longer control-altering.
10944         (cleanup_control_flow_bb): Pass down the BB to
10945         cleanup_call_ctrl_altering_flag.
10947 2020-09-04  Jakub Jelinek  <jakub@redhat.com>
10949         * lto-streamer.h (stream_input_location_now): Remove declaration.
10950         * lto-streamer-in.c (stream_input_location_now): Remove.
10951         (input_eh_region, input_struct_function_base): Use
10952         stream_input_location instead of stream_input_location_now.
10954 2020-09-04  Jakub Jelinek  <jakub@redhat.com>
10956         * lto-streamer.h (struct output_block): Add reset_locus member.
10957         * lto-streamer-out.c (clear_line_info): Set reset_locus to true.
10958         (lto_output_location_1): If reset_locus, clear it and ensure
10959         current_{file,line,col} is different from xloc members.
10961 2020-09-04  David Faust  <david.faust@oracle.com>
10963         * config/bpf/bpf.h (ASM_SPEC): Pass -mxbpf to gas, if specified.
10964         * config/bpf/bpf.c (bpf_output_call): Support indirect calls in xBPF.
10966 2020-09-03  Martin Jambor  <mjambor@suse.cz>
10968         PR tree-optimization/96820
10969         * tree-sra.c (create_access): Disqualify candidates with accesses
10970         beyond the end of the original aggregate.
10971         (maybe_add_sra_candidate): Check that candidate type size fits
10972         signed uhwi for the sake of consistency.
10974 2020-09-03  Will Schmidt  <will_schmidt@vnet.ibm.com>
10976         * config/rs6000/rs6000-call.c (rs6000_init_builtin): Update V2DI_type_node
10977         and unsigned_V2DI_type_node definitions.
10979 2020-09-03  Jakub Jelinek  <jakub@redhat.com>
10981         PR c++/96901
10982         * tree.h (struct decl_tree_traits): New type.
10983         (decl_tree_map): New typedef.
10985 2020-09-03  Jakub Jelinek  <jakub@redhat.com>
10987         PR lto/94311
10988         * gimple.h (gimple_location_ptr, gimple_phi_arg_location_ptr): New
10989         functions.
10990         * streamer-hooks.h (struct streamer_hooks): Add
10991         output_location_and_block callback.  Fix up formatting for
10992         output_location.
10993         (stream_output_location_and_block): Define.
10994         * lto-streamer.h (class lto_location_cache): Fix comment typo.  Add
10995         current_block member.
10996         (lto_location_cache::input_location_and_block): New method.
10997         (lto_location_cache::lto_location_cache): Initialize current_block.
10998         (lto_location_cache::cached_location): Add block member.
10999         (struct output_block): Add current_block member.
11000         (lto_output_location): Formatting fix.
11001         (lto_output_location_and_block): Declare.
11002         * lto-streamer.c (lto_streamer_hooks_init): Initialize
11003         streamer_hooks.output_location_and_block.
11004         * lto-streamer-in.c (lto_location_cache::cmp_loc): Also compare
11005         block members.
11006         (lto_location_cache::apply_location_cache): Handle blocks.
11007         (lto_location_cache::accept_location_cache,
11008         lto_location_cache::revert_location_cache): Fix up function comments.
11009         (lto_location_cache::input_location_and_block): New method.
11010         (lto_location_cache::input_location): Implement using
11011         input_location_and_block.
11012         (input_function): Invoke apply_location_cache after streaming in all
11013         bbs.
11014         * lto-streamer-out.c (clear_line_info): Set current_block.
11015         (lto_output_location_1): New function, moved from lto_output_location,
11016         added block handling.
11017         (lto_output_location): Implement using lto_output_location_1.
11018         (lto_output_location_and_block): New function.
11019         * gimple-streamer-in.c (input_phi): Use input_location_and_block
11020         to input and cache both location and block.
11021         (input_gimple_stmt): Likewise.
11022         * gimple-streamer-out.c (output_phi): Use
11023         stream_output_location_and_block.
11024         (output_gimple_stmt): Likewise.
11026 2020-09-03  Richard Biener  <rguenther@suse.de>
11028         * tree-vect-generic.c (tree_vec_extract): Remove odd
11029         special-casing of boolean vectors.
11030         * fold-const.c (fold_ternary_loc): Handle boolean vector
11031         type BIT_FIELD_REFs.
11033 2020-09-03  Hongtao Liu  <hongtao.liu@intel.com>
11035         PR target/87767
11036         * config/i386/i386-features.c
11037         (replace_constant_pool_with_broadcast): New function.
11038         (constant_pool_broadcast): Ditto.
11039         (class pass_constant_pool_broadcast): New pass.
11040         (make_pass_constant_pool_broadcast): Ditto.
11041         (remove_partial_avx_dependency): Call
11042         replace_constant_pool_with_broadcast under TARGET_AVX512F, it
11043         would save compile time when both pass rpad and cpb are
11044         available.
11045         (remove_partial_avx_dependency_gate): New function.
11046         (class pass_remove_partial_avx_dependency::gate): Call
11047         remove_partial_avx_dependency_gate.
11048         * config/i386/i386-passes.def: Insert new pass after combine.
11049         * config/i386/i386-protos.h
11050         (make_pass_constant_pool_broadcast): Declare.
11051         * config/i386/sse.md (*avx512dq_mul<mode>3<mask_name>_bcst):
11052         New define_insn.
11053         (*avx512f_mul<mode>3<mask_name>_bcst): Ditto.
11054         * config/i386/avx512fintrin.h (_mm512_set1_ps,
11055         _mm512_set1_pd,_mm512_set1_epi32, _mm512_set1_epi64): Adjusted.
11057 2020-09-02  Jonathan Wakely  <jwakely@redhat.com>
11059         PR c++/60304
11060         * ginclude/stdbool.h (bool, false, true): Never define for C++.
11062 2020-09-02  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
11064         * doc/invoke.texi (MSP430 options): Fix -mlarge description to
11065         indicate size_t is a 20-bit type.
11067 2020-09-02  Roger Sayle  <roger@nextmovesoftware.com>
11069         * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
11070         Provide accurate costs for shifts of integer constants.
11072 2020-09-02  Jose E. Marchesi  <jose.marchesi@oracle.com>
11074         * config/bpf/bpf.c (bpf_asm_named_section): Delete.
11075         (TARGET_ASM_NAMED_SECTION): Likewise.
11077 2020-09-02  Jose E. Marchesi  <jemarch@gnu.org>
11079         * config.gcc: Use elfos.h in bpf-*-* targets.
11080         * config/bpf/bpf.h (MAX_OFILE_ALIGNMENT): Remove definition.
11081         (COMMON_ASM_OP): Likewise.
11082         (INIT_SECTION_ASM_OP): Likewise.
11083         (FINI_SECTION_ASM_OP): Likewise.
11084         (ASM_OUTPUT_SKIP): Likewise.
11085         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11086         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
11088 2020-09-01  Martin Sebor  <msebor@redhat.com>
11090         * builtins.c (compute_objsize):  Only replace the upper bound
11091         of a POINTER_PLUS offset when it's less than the lower bound.
11093 2020-09-01  Peter Bergner  <bergner@linux.ibm.com>
11095         PR target/96808
11096         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Do not
11097         reuse accumulator memory reference for source and destination accesses.
11099 2020-09-01  Martin Liska  <mliska@suse.cz>
11101         * cfgrtl.c (rtl_create_basic_block): Use default value for
11102         growth vector function.
11103         * gimple.c (gimple_set_bb): Likewise.
11104         * symbol-summary.h: Likewise.
11105         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
11106         (build_gimple_cfg): Likewise.
11107         (create_bb): Likewise.
11108         (move_block_to_fn): Likewise.
11110 2020-09-01  Martin Liska  <mliska@suse.cz>
11112         * vec.h (vec_safe_grow): Change default of exact to false.
11113         (vec_safe_grow_cleared): Likewise.
11115 2020-09-01  Roger Sayle  <roger@nextmovesoftware.com>
11117         PR middle-end/90597
11118         * targhooks.c (default_vector_alignment): Return at least the
11119         GET_MODE_ALIGNMENT for the type's mode.
11121 2020-09-01  Richard Biener  <rguenther@suse.de>
11123         PR rtl-optimization/96812
11124         * tree-ssa-address.c (copy_ref_info): Also copy dependence info.
11125         * cfgrtl.h (duplicate_insn_chain): Adjust prototype.
11126         * cfgrtl.c (duplicate_insn_chain): Remap dependence info
11127         if requested.
11128         (cfg_layout_duplicate_bb): Make sure we remap dependence info.
11129         * modulo-sched.c (duplicate_insns_of_cycles): Remap dependence
11130         info.
11131         (generate_prolog_epilog): Adjust.
11132         * config/c6x/c6x.c (hwloop_optimize): Remap dependence info.
11134 2020-09-01  Kewen Lin  <linkw@gcc.gnu.org>
11136         * doc/sourcebuild.texi (has_arch_pwr5, has_arch_pwr6, has_arch_pwr7,
11137         has_arch_pwr8, has_arch_pwr9): Document.
11139 2020-08-31  Carl Love  <cel@us.ibm.com>
11141         PR target/85830
11142         * config/rs6000/altivec.h (vec_popcntb, vec_popcnth, vec_popcntw,
11143         vec_popcntd): Remove defines.
11145 2020-08-31  Marek Polacek  <polacek@redhat.com>
11146             Jason Merrill  <jason@redhat.com>
11148         PR c++/93529
11149         * tree.c (build_constructor_from_vec): New.
11150         * tree.h (build_constructor_from_vec): Declare.
11152 2020-08-31  Aldy Hernandez  <aldyh@redhat.com>
11154         PR tree-optimization/96818
11155         * tree-vrp.c (find_case_label_range): Cast label range to
11156         type of switch operand.
11158 2020-08-31  liuhongt  <hongtao.liu@intel.com>
11160         PR target/96551
11161         * config/i386/sse.md (vec_unpacku_float_hi_v16si): For vector
11162         compare to integer mask, don't use gen_rtx_LT, use
11163         ix86_expand_mask_vec_cmp instead.
11164         (vec_unpacku_float_hi_v16si): Ditto.
11166 2020-08-31  Jakub Jelinek  <jakub@redhat.com>
11168         * tree-cfg.c (verify_gimple_switch): If the first non-default case
11169         label has CASE_HIGH, verify it has the same type as CASE_LOW.
11171 2020-08-31  Feng Xue  <fxue@os.amperecomputing.com>
11173         PR ipa/96806
11174         * ipa-cp.c (decide_about_value): Use safe_add to avoid cost addition
11175         overflow.
11177 2020-08-31  Jakub Jelinek  <jakub@redhat.com>
11179         PR middle-end/54201
11180         * varasm.c: Include alloc-pool.h.
11181         (output_constant_pool_contents): Emit desc->mark < 0 entries as
11182         aliases.
11183         (struct constant_descriptor_rtx_data): New type.
11184         (constant_descriptor_rtx_data_cmp): New function.
11185         (struct const_rtx_data_hasher): New type.
11186         (const_rtx_data_hasher::hash, const_rtx_data_hasher::equal): New
11187         methods.
11188         (optimize_constant_pool): New function.
11189         (output_shared_constant_pool): Call it if TARGET_SUPPORTS_ALIASES.
11191 2020-08-31  Kewen Lin  <linkw@gcc.gnu.org>
11193         * doc/sourcebuild.texi (vect_len_load_store,
11194         vect_partial_vectors_usage_1, vect_partial_vectors_usage_2,
11195         vect_partial_vectors): Document.
11197 2020-08-30  Martin Sebor  <msebor@redhat.com>
11199         * builtins.c (access_ref::access_ref): Call get_size_range instead
11200         of get_range.
11202 2020-08-30  Jakub Jelinek  <jakub@redhat.com>
11204         * config/i386/sse.md (ssse3_pshufbv8qi): Use gen_int_mode instead of
11205         GEN_INT, and ix86_build_const_vector instead of gen_rtvec and
11206         gen_rtx_CONT_VECTOR.
11208 2020-08-29  Bill Schmidt  <wschmidt@linux.ibm.com>
11210         * config/rs6000/rs6000-builtin.def (MASK_FOR_STORE): Remove.
11211         * config/rs6000/rs6000-call.c (rs6000_expand_builtin): Remove
11212         all logic for ALTIVEC_BUILTIN_MASK_FOR_STORE.
11214 2020-08-28  Martin Sebor  <msebor@redhat.com>
11216         * attribs.c (init_attr_rdwr_indices): Use global access_mode.
11217         * attribs.h (struct attr_access): Same.
11218         * builtins.c (fold_builtin_strlen): Add argument.
11219         (compute_objsize): Declare.
11220         (get_range): Declare.
11221         (check_read_access): New function.
11222         (access_ref::access_ref): Define ctor.
11223         (warn_string_no_nul): Add arguments.  Handle -Wstrintop-overread.
11224         (check_nul_terminated_array): Handle source strings of different
11225         ranges of sizes.
11226         (expand_builtin_strlen): Remove warning code, call check_read_access
11227         instead.  Declare locals closer to their initialization.
11228         (expand_builtin_strnlen): Same.
11229         (maybe_warn_for_bound): New function.
11230         (warn_for_access): Remove argument.  Handle -Wstrintop-overread.
11231         (inform_access): Change argument type.
11232         (get_size_range): New function.
11233         (check_access): Remove unused arguments.  Add new arguments.  Handle
11234         -Wstrintop-overread.  Move warning code to helpers and call them.
11235         Call check_nul_terminated_array.
11236         (check_memop_access): Remove unnecessary and provide additional
11237         arguments in calls.
11238         (expand_builtin_memchr): Call check_read_access.
11239         (expand_builtin_strcat): Remove unnecessary and provide additional
11240         arguments in calls.
11241         (expand_builtin_strcpy): Same.
11242         (expand_builtin_strcpy_args): Same.  Avoid testing no-warning bit.
11243         (expand_builtin_stpcpy_1): Remove unnecessary and provide additional
11244         arguments in calls.
11245         (expand_builtin_stpncpy): Same.
11246         (check_strncat_sizes): Same.
11247         (expand_builtin_strncat): Remove unnecessary and provide additional
11248         arguments in calls.  Adjust comments.
11249         (expand_builtin_strncpy): Remove unnecessary and provide additional
11250         arguments in calls.
11251         (expand_builtin_memcmp): Remove warning code.  Call check_access.
11252         (expand_builtin_strcmp): Call check_access instead of
11253         check_nul_terminated_array.
11254         (expand_builtin_strncmp): Handle -Wstrintop-overread.
11255         (expand_builtin_fork_or_exec): Call check_access instead of
11256         check_nul_terminated_array.
11257         (expand_builtin): Same.
11258         (fold_builtin_1): Pass additional argument.
11259         (fold_builtin_n): Same.
11260         (fold_builtin_strpbrk): Remove calls to check_nul_terminated_array.
11261         (expand_builtin_memory_chk): Add comments.
11262         (maybe_emit_chk_warning): Remove unnecessary and provide additional
11263         arguments in calls.
11264         (maybe_emit_sprintf_chk_warning): Same.  Adjust comments.
11265         * builtins.h (warn_string_no_nul): Add arguments.
11266         (struct access_ref): Add member and ctor argument.
11267         (struct access_data): Add members and ctor.
11268         (check_access): Adjust signature.
11269         * calls.c (maybe_warn_nonstring_arg): Return an indication of
11270         whether a warning was issued.  Issue -Wstrintop-overread instead
11271         of -Wstringop-overflow.
11272         (append_attrname): Adjust to naming changes.
11273         (maybe_warn_rdwr_sizes): Same.  Remove unnecessary and provide
11274         additional arguments in calls.
11275         * calls.h (maybe_warn_nonstring_arg): Return bool.
11276         * doc/invoke.texi (-Wstringop-overread): Document new option.
11277         * gimple-fold.c (gimple_fold_builtin_strcpy): Provide an additional
11278         argument in call.
11279         (gimple_fold_builtin_stpcpy): Same.
11280         * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Adjust to naming
11281         changes.
11282         * tree.h (enum access_mode): New type.
11284 2020-08-28  Bill Schmidt  <wschmidt@linux.ibm.com>
11286         * config/rs6000/rs6000.c (rs6000_call_aix): Remove test for r12.
11287         (rs6000_sibcall_aix): Likewise.
11289 2020-08-28  Andrew Stubbs  <ams@codesourcery.com>
11291         * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Add "true"
11292         parameter to vec_safe_grow_cleared.
11294 2020-08-28  Martin Sebor  <msebor@redhat.com>
11296         * ggc-common.c (gt_pch_save): Add argument to a call.
11298 2020-08-28  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
11300         PR target/96357
11301         * config/aarch64/aarch64-sve.md
11302         (cond_sub<mode>_relaxed_const): Updated and renamed from
11303         cond_sub<mode>_any_const pattern.
11304         (cond_sub<mode>_strict_const): New pattern.
11306 2020-08-28  Wei Wentao  <weiwt.fnst@cn.fujitsu.com>
11308         * doc/rtl.texi: Fix typo.
11310 2020-08-28  Uros Bizjak    <ubizjak@gmail.com>
11312         PR target/96744
11313         * config/i386/i386-expand.c (split_double_mode): Also handle
11314         E_P2HImode and E_P2QImode.
11315         * config/i386/sse.md (MASK_DWI): New define_mode_iterator.
11316         (mov<mode>): New expander for P2HI,P2QI.
11317         (*mov<mode>_internal): New define_insn_and_split to split
11318         movement of P2QI/P2HI to 2 movqi/movhi patterns after reload.
11320 2020-08-28  liuhongt  <hongtao.liu@intel.com>
11322         * common/config/i386/i386-common.c (ix86_handle_option): Set
11323         AVX512DQ when AVX512VP2INTERSECT exists.
11325 2020-08-27  Jakub Jelinek  <jakub@redhat.com>
11327         PR target/65146
11328         * config/i386/i386.c (iamcu_alignment): Don't decrease alignment
11329         for TYPE_ATOMIC types.
11330         (ix86_local_alignment): Likewise.
11331         (ix86_minimum_alignment): Likewise.
11332         (x86_field_alignment): Likewise, and emit a -Wpsabi diagnostic
11333         for it.
11335 2020-08-27  Bill Schmidt  <wschmidt@linux.ibm.com>
11337         PR target/96787
11338         * config/rs6000/rs6000.c (rs6000_sibcall_aix): Support
11339         indirect call for ELFv2.
11341 2020-08-27  Richard Biener  <rguenther@suse.de>
11343         PR tree-optimization/96522
11344         * tree-ssa-address.c (copy_ref_info): Reset flow-sensitive
11345         info of the copied points-to.  Transfer bigger alignment
11346         via the access type.
11347         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
11348         Reset all flow-sensitive info.
11350 2020-08-27  Martin Liska  <mliska@suse.cz>
11352         * alias.c (init_alias_analysis): Set exact argument of a vector
11353         growth function to true.
11354         * calls.c (internal_arg_pointer_based_exp_scan): Likewise.
11355         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
11356         * cfgexpand.c (expand_asm_stmt): Likewise.
11357         * cfgrtl.c (rtl_create_basic_block): Likewise.
11358         * combine.c (combine_split_insns): Likewise.
11359         (combine_instructions): Likewise.
11360         * config/aarch64/aarch64-sve-builtins.cc (function_expander::add_output_operand): Likewise.
11361         (function_expander::add_input_operand): Likewise.
11362         (function_expander::add_integer_operand): Likewise.
11363         (function_expander::add_address_operand): Likewise.
11364         (function_expander::add_fixed_operand): Likewise.
11365         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
11366         * dwarf2cfi.c (update_row_reg_save): Likewise.
11367         * early-remat.c (early_remat::init_block_info): Likewise.
11368         (early_remat::finalize_candidate_indices): Likewise.
11369         * except.c (sjlj_build_landing_pads): Likewise.
11370         * final.c (compute_alignments): Likewise.
11371         (grow_label_align): Likewise.
11372         * function.c (temp_slots_at_level): Likewise.
11373         * fwprop.c (build_single_def_use_links): Likewise.
11374         (update_uses): Likewise.
11375         * gcc.c (insert_wrapper): Likewise.
11376         * genautomata.c (create_state_ainsn_table): Likewise.
11377         (add_vect): Likewise.
11378         (output_dead_lock_vect): Likewise.
11379         * genmatch.c (capture_info::capture_info): Likewise.
11380         (parser::finish_match_operand): Likewise.
11381         * genrecog.c (optimize_subroutine_group): Likewise.
11382         (merge_pattern_info::merge_pattern_info): Likewise.
11383         (merge_into_decision): Likewise.
11384         (print_subroutine_start): Likewise.
11385         (main): Likewise.
11386         * gimple-loop-versioning.cc (loop_versioning::loop_versioning): Likewise.
11387         * gimple.c (gimple_set_bb): Likewise.
11388         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user): Likewise.
11389         * haifa-sched.c (sched_extend_luids): Likewise.
11390         (extend_h_i_d): Likewise.
11391         * insn-addr.h (insn_addresses_new): Likewise.
11392         * ipa-cp.c (gather_context_independent_values): Likewise.
11393         (find_more_contexts_for_caller_subset): Likewise.
11394         * ipa-devirt.c (final_warning_record::grow_type_warnings): Likewise.
11395         (ipa_odr_read_section): Likewise.
11396         * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
11397         (ipa_fn_summary_t::duplicate): Likewise.
11398         (analyze_function_body): Likewise.
11399         (ipa_merge_fn_summary_after_inlining): Likewise.
11400         (read_ipa_call_summary): Likewise.
11401         * ipa-icf.c (sem_function::bb_dict_test): Likewise.
11402         * ipa-prop.c (ipa_alloc_node_params): Likewise.
11403         (parm_bb_aa_status_for_bb): Likewise.
11404         (ipa_compute_jump_functions_for_edge): Likewise.
11405         (ipa_analyze_node): Likewise.
11406         (update_jump_functions_after_inlining): Likewise.
11407         (ipa_read_edge_info): Likewise.
11408         (read_ipcp_transformation_info): Likewise.
11409         (ipcp_transform_function): Likewise.
11410         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
11411         * ipa-split.c (execute_split_functions): Likewise.
11412         * ira.c (find_moveable_pseudos): Likewise.
11413         * lower-subreg.c (decompose_multiword_subregs): Likewise.
11414         * lto-streamer-in.c (input_eh_regions): Likewise.
11415         (input_cfg): Likewise.
11416         (input_struct_function_base): Likewise.
11417         (input_function): Likewise.
11418         * modulo-sched.c (set_node_sched_params): Likewise.
11419         (extend_node_sched_params): Likewise.
11420         (schedule_reg_moves): Likewise.
11421         * omp-general.c (omp_construct_simd_compare): Likewise.
11422         * passes.c (pass_manager::create_pass_tab): Likewise.
11423         (enable_disable_pass): Likewise.
11424         * predict.c (determine_unlikely_bbs): Likewise.
11425         * profile.c (compute_branch_probabilities): Likewise.
11426         * read-rtl-function.c (function_reader::parse_block): Likewise.
11427         * read-rtl.c (rtx_reader::read_rtx_code): Likewise.
11428         * reg-stack.c (stack_regs_mentioned): Likewise.
11429         * regrename.c (regrename_init): Likewise.
11430         * rtlanal.c (T>::add_single_to_queue): Likewise.
11431         * sched-deps.c (init_deps_data_vector): Likewise.
11432         * sel-sched-ir.c (sel_extend_global_bb_info): Likewise.
11433         (extend_region_bb_info): Likewise.
11434         (extend_insn_data): Likewise.
11435         * symtab.c (symtab_node::create_reference): Likewise.
11436         * tracer.c (tail_duplicate): Likewise.
11437         * trans-mem.c (tm_region_init): Likewise.
11438         (get_bb_regions_instrumented): Likewise.
11439         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
11440         (build_gimple_cfg): Likewise.
11441         (create_bb): Likewise.
11442         (move_block_to_fn): Likewise.
11443         * tree-complex.c (tree_lower_complex): Likewise.
11444         * tree-if-conv.c (predicate_rhs_code): Likewise.
11445         * tree-inline.c (copy_bb): Likewise.
11446         * tree-into-ssa.c (get_ssa_name_ann): Likewise.
11447         (mark_phi_for_rewrite): Likewise.
11448         * tree-object-size.c (compute_builtin_object_size): Likewise.
11449         (init_object_sizes): Likewise.
11450         * tree-predcom.c (initialize_root_vars_store_elim_1): Likewise.
11451         (initialize_root_vars_store_elim_2): Likewise.
11452         (prepare_initializers_chain_store_elim): Likewise.
11453         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
11454         (multiplier_allowed_in_address_p): Likewise.
11455         * tree-ssa-coalesce.c (ssa_conflicts_new): Likewise.
11456         * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
11457         * tree-ssa-loop-ivopts.c (addr_offset_valid_p): Likewise.
11458         (get_address_cost_ainc): Likewise.
11459         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Likewise.
11460         * tree-ssa-pre.c (add_to_value): Likewise.
11461         (phi_translate_1): Likewise.
11462         (do_pre_regular_insertion): Likewise.
11463         (do_pre_partial_partial_insertion): Likewise.
11464         (init_pre): Likewise.
11465         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
11466         (update_call_from_tree): Likewise.
11467         * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Likewise.
11468         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
11469         (vn_reference_lookup_pieces): Likewise.
11470         (eliminate_dom_walker::eliminate_push_avail): Likewise.
11471         * tree-ssa-strlen.c (set_strinfo): Likewise.
11472         (get_stridx_plus_constant): Likewise.
11473         (zero_length_string): Likewise.
11474         (find_equal_ptrs): Likewise.
11475         (printf_strlen_execute): Likewise.
11476         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
11477         * tree-ssanames.c (make_ssa_name_fn): Likewise.
11478         * tree-streamer-in.c (streamer_read_tree_bitfields): Likewise.
11479         * tree-vect-loop.c (vect_record_loop_mask): Likewise.
11480         (vect_get_loop_mask): Likewise.
11481         (vect_record_loop_len): Likewise.
11482         (vect_get_loop_len): Likewise.
11483         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
11484         * tree-vect-slp.c (vect_slp_convert_to_external): Likewise.
11485         (vect_bb_slp_scalar_cost): Likewise.
11486         (vect_bb_vectorization_profitable_p): Likewise.
11487         (vectorizable_slp_permutation): Likewise.
11488         * tree-vect-stmts.c (vectorizable_call): Likewise.
11489         (vectorizable_simd_clone_call): Likewise.
11490         (scan_store_can_perm_p): Likewise.
11491         (vectorizable_store): Likewise.
11492         * expr.c: Likewise.
11493         * vec.c (test_safe_grow_cleared): Likewise.
11494         * vec.h (vec_safe_grow): Likewise.
11495         (vec_safe_grow_cleared): Likewise.
11496         (vl_ptr>::safe_grow): Likewise.
11497         (vl_ptr>::safe_grow_cleared): Likewise.
11498         * config/c6x/c6x.c (insn_set_clock): Likewise.
11500 2020-08-27  Richard Biener  <rguenther@suse.de>
11502         * tree-pretty-print.c (dump_mem_ref): Handle TARGET_MEM_REFs.
11503         (dump_generic_node): Use dump_mem_ref also for TARGET_MEM_REF.
11505 2020-08-27  Alex Coplan  <alex.coplan@arm.com>
11507         * lra-constraints.c (canonicalize_reload_addr): New.
11508         (curr_insn_transform): Use canonicalize_reload_addr to ensure we
11509         generate canonical RTL for an address reload.
11511 2020-08-27  Zhiheng Xie  <xiezhiheng@huawei.com>
11513         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
11514         for rounding intrinsics.
11516 2020-08-27  Zhiheng Xie  <xiezhiheng@huawei.com>
11518         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
11519         for min/max intrinsics.
11521 2020-08-27  Richard Biener  <rguenther@suse.de>
11523         PR tree-optimization/96579
11524         * tree-ssa-reassoc.c (linearize_expr_tree): If we expand
11525         rhs via special ops make sure to swap operands.
11527 2020-08-27  Richard Biener  <rguenther@suse.de>
11529         PR tree-optimization/96565
11530         * tree-ssa-dse.c (dse_classify_store): Remove defs with
11531         no uses from further processing.
11533 2020-08-26  Göran Uddeborg  <goeran@uddeborg.se>
11535         PR gcov-profile/96285
11536         * common.opt, doc/invoke.texi: Clarify wording of
11537         -fprofile-exclude-files and adjust -fprofile-filter-files to
11538         match.
11540 2020-08-26  H.J. Lu  <hjl.tools@gmail.com>
11542         PR target/96802
11543         * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
11544         Reject target("no-general-regs-only").
11546 2020-08-26  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
11548         * config/msp430/constraints.md (K): Change unused constraint to
11549         constraint to a const_int between 1 and 19.
11550         (P): New constraint.
11551         * config/msp430/msp430-protos.h (msp430x_logical_shift_right): Remove.
11552         (msp430_expand_shift): New.
11553         (msp430_output_asm_shift_insns): New.
11554         * config/msp430/msp430.c (msp430_rtx_costs): Remove shift costs.
11555         (CSH): Remove.
11556         (msp430_expand_helper): Remove hard-coded generation of some inline
11557         shift insns.
11558         (use_helper_for_const_shift): New.
11559         (msp430_expand_shift): New.
11560         (msp430_output_asm_shift_insns): New.
11561         (msp430_print_operand): Add new 'W' operand selector.
11562         (msp430x_logical_shift_right): Remove.
11563         * config/msp430/msp430.md (HPSI): New define_mode_iterator.
11564         (HDI): Likewise.
11565         (any_shift): New define_code_iterator.
11566         (shift_insn): New define_code_attr.
11567         Adjust unnamed insn patterns searched for by combine.
11568         (ashlhi3): Remove.
11569         (slli_1): Remove.
11570         (430x_shift_left): Remove.
11571         (slll_1): Remove.
11572         (slll_2): Remove.
11573         (ashlsi3): Remove.
11574         (ashldi3): Remove.
11575         (ashrhi3): Remove.
11576         (srai_1): Remove.
11577         (430x_arithmetic_shift_right): Remove.
11578         (srap_1): Remove.
11579         (srap_2): Remove.
11580         (sral_1): Remove.
11581         (sral_2): Remove.
11582         (ashrsi3): Remove.
11583         (ashrdi3): Remove.
11584         (lshrhi3): Remove.
11585         (srli_1): Remove.
11586         (430x_logical_shift_right): Remove.
11587         (srlp_1): Remove.
11588         (srll_1): Remove.
11589         (srll_2x): Remove.
11590         (lshrsi3): Remove.
11591         (lshrdi3): Remove.
11592         (<shift_insn><mode>3): New define_expand.
11593         (<shift_insn>hi3_430): New define_insn.
11594         (<shift_insn>si3_const): Likewise.
11595         (ashl<mode>3_430x): Likewise.
11596         (ashr<mode>3_430x): Likewise.
11597         (lshr<mode>3_430x): Likewise.
11598         (*bitbranch<mode>4_z): Replace renamed predicate msp430_bitpos with
11599         const_0_to_15_operand.
11600         * config/msp430/msp430.opt: New option -mmax-inline-shift=.
11601         * config/msp430/predicates.md (const_1_to_8_operand): New predicate.
11602         (const_0_to_15_operand): Rename msp430_bitpos predicate.
11603         (const_1_to_19_operand): New predicate.
11604         * doc/invoke.texi: Document -mmax-inline-shift=.
11606 2020-08-26  Aldy Hernandez  <aldyh@redhat.com>
11608         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Abstract code out to...
11609         * tree-vrp.c (find_case_label_range): ...here.  Rewrite for to use irange
11610         API.
11611         (simplify_stmt_for_jump_threading): Call find_case_label_range instead of
11612         duplicating the code in simplify_stmt_for_jump_threading.
11613         * tree-vrp.h (find_case_label_range): New prototype.
11615 2020-08-26  Richard Biener  <rguenther@suse.de>
11617         PR tree-optimization/96698
11618         * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): New.
11619         (loop_vec_info::reduc_latch_slp_defs): Likewise.
11620         * tree-vect-stmts.c (vect_transform_stmt): Only record
11621         stmts to update PHI latches from, perform the update ...
11622         * tree-vect-loop.c (vect_transform_loop): ... here after
11623         vectorizing those PHIs.
11624         (info_for_reduction): Properly handle non-reduction PHIs.
11626 2020-08-26  Martin Liska  <mliska@suse.cz>
11628         * cgraphunit.c (process_symver_attribute): Match only symver
11629         TREE_PURPOSE.
11631 2020-08-26  Richard Biener  <rguenther@suse.de>
11633         PR tree-optimization/96783
11634         * tree-vect-stmts.c (get_group_load_store_type): Use
11635         VMAT_ELEMENTWISE for negative strides when we cannot
11636         use VMAT_STRIDED_SLP.
11638 2020-08-26  Martin Liska  <mliska@suse.cz>
11640         * doc/invoke.texi: Document how are pie and pic options merged.
11642 2020-08-26  Zhiheng Xie  <xiezhiheng@huawei.com>
11644         * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
11645         for add/sub arithmetic intrinsics.
11647 2020-08-26  Jakub Jelinek  <jakub@redhat.com>
11649         PR debug/96729
11650         * dwarf2out.c (dwarf2out_next_real_insn): Adjust function comment.
11651         (dwarf2out_var_location): Look for next_note only if next_real is
11652         non-NULL, in that case look for the first non-deleted
11653         NOTE_INSN_VAR_LOCATION between loc_note and next_real, if any.
11655 2020-08-26  Iain Buclaw  <ibuclaw@gdcproject.org>
11657         * config/tilepro/gen-mul-tables.cc (main): Define IN_TARGET_CODE to 1
11658         in the target file.
11660 2020-08-26  Martin Liska  <mliska@suse.cz>
11662         * cgraphunit.c (process_symver_attribute): Allow multiple
11663         symver attributes for one symbol.
11664         * doc/extend.texi: Document the change.
11666 2020-08-25  H.J. Lu  <hjl.tools@gmail.com>
11668         PR target/95863
11669         * config/i386/i386.h (CTZ_DEFINED_VALUE_AT_ZERO): Return 0/2.
11670         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
11672 2020-08-25  Roger Sayle  <roger@nextmovesoftware.com>
11674         PR middle-end/87256
11675         * config/pa/pa.c (hppa_rtx_costs_shadd_p): New helper function
11676         to check for coefficients supported by shNadd and shladd,l.
11677         (hppa_rtx_costs):  Rewrite to avoid using estimates based upon
11678         FACTOR and enable recursing deeper into RTL expressions.
11680 2020-08-25  Roger Sayle  <roger@nextmovesoftware.com>
11682         * config/pa/pa.md (ashldi3): Additionally, on !TARGET_64BIT
11683         generate a two instruction shd/zdep sequence when shifting
11684         registers by suitable constants.
11685         (shd_internal): New define_expand to provide gen_shd_internal.
11687 2020-08-25  Richard Sandiford  <richard.sandiford@arm.com>
11689         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Rename
11690         __ARM_FEATURE_SVE_VECTOR_OPERATIONS to
11691         __ARM_FEATURE_SVE_VECTOR_OPERATORS.
11693 2020-08-25  Richard Sandiford  <richard.sandiford@arm.com>
11695         * config/aarch64/aarch64-sve-builtins.cc (add_sve_type_attribute):
11696         Take the ACLE name of the type as a parameter and add it as fourth
11697         argument to the "SVE type" attribute.
11698         (register_builtin_types): Update call accordingly.
11699         (register_tuple_type): Likewise.  Construct the name of the type
11700         earlier in order to do this.
11701         (get_arm_sve_vector_bits_attributes): New function.
11702         (handle_arm_sve_vector_bits_attribute): Report a more sensible
11703         error message if the attribute is applied to an SVE tuple type.
11704         Don't allow the attribute to be applied to an existing fixed-length
11705         SVE type.  Mangle the new type as __SVE_VLS<type, vector-bits>.
11706         Add a dummy TYPE_DECL to the new type.
11708 2020-08-25  Richard Sandiford  <richard.sandiford@arm.com>
11710         * config/aarch64/aarch64-sve-builtins.cc (DEF_SVE_TYPE): Add a
11711         leading "u" to each mangled name.
11713 2020-08-25  Richard Biener  <rguenther@suse.de>
11715         PR tree-optimization/96548
11716         PR tree-optimization/96760
11717         * tree-ssa-loop-im.c (tree_ssa_lim): Recompute RPO after
11718         store-motion.
11720 2020-08-25  Jakub Jelinek  <jakub@redhat.com>
11722         PR tree-optimization/96722
11723         * gimple.c (infer_nonnull_range): Formatting fix.
11724         (infer_nonnull_range_by_dereference): Return false for clobber stmts.
11726 2020-08-25  Jakub Jelinek  <jakub@redhat.com>
11728         PR tree-optimization/96758
11729         * tree-ssa-strlen.c (handle_builtin_string_cmp): If both cstlen1
11730         and cstlen2 are set, set cmpsiz to their minimum, otherwise use the
11731         one that is set.  If bound is used and smaller than cmpsiz, set cmpsiz
11732         to bound.  If both cstlen1 and cstlen2 are set, perform the optimization.
11734 2020-08-25  Martin Jambor  <mjambor@suse.cz>
11736         PR tree-optimization/96730
11737         * tree-sra.c (create_access): Disqualify any aggregate with negative
11738         offset access.
11739         (build_ref_for_model): Add assert that offset is non-negative.
11741 2020-08-25  Wei Wentao  <weiwt.fnst@cn.fujitsu.com>
11743         * rtl.def: Fix typo in comment.
11745 2020-08-25  Roger Sayle  <roger@nextmovesoftware.com>
11747         PR tree-optimization/21137
11748         * fold-const.c (fold_binary_loc) [NE_EXPR/EQ_EXPR]: Call
11749         STRIP_NOPS when checking whether to simplify ((x>>C1)&C2) != 0.
11751 2020-08-25  Andrew Pinski  <apinski@marvell.com>
11753         PR middle-end/64242
11754         * config/mips/mips.md (builtin_longjmp): Restore the frame
11755         pointer and stack pointer and gp.
11757 2020-08-25  Richard Biener  <rguenther@suse.de>
11759         PR debug/96690
11760         * dwarf2out.c (reference_to_unused): Make FUNCTION_DECL
11761         processing more consistent with respect to
11762         symtab->global_info_ready.
11763         (tree_add_const_value_attribute): Unconditionally call
11764         rtl_for_decl_init to do all mangling early but throw
11765         away the result if early_dwarf.
11767 2020-08-25  Hongtao Liu  <hongtao.liu@intel.com>
11769         PR target/96755
11770         * config/i386/sse.md: Correct the mode of NOT operands to
11771         SImode.
11773 2020-08-25  Jakub Jelinek  <jakub@redhat.com>
11775         PR tree-optimization/96715
11776         * match.pd (copysign(x,-x) -> -x): New simplification.
11778 2020-08-25  Jakub Jelinek  <jakub@redhat.com>
11780         PR target/95450
11781         * fold-const.c (native_interpret_real): For MODE_COMPOSITE_P modes
11782         punt if the to be returned REAL_CST does not encode to the bitwise
11783         same representation.
11785 2020-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
11787         * doc/install.texi (Configuration): Switch valgrind.com to https.
11789 2020-08-24  Christophe Lyon  <christophe.lyon@linaro.org>
11791         PR target/94538
11792         PR target/94538
11793         * config/arm/thumb1.md: Disable set-constant splitter when
11794         TARGET_HAVE_MOVT.
11795         (thumb1_movsi_insn): Fix -mpure-code
11796         alternative.
11798 2020-08-24  Martin Liska  <mliska@suse.cz>
11800         * tree-vect-data-refs.c (dr_group_sort_cmp): Work on
11801         data_ref_pair.
11802         (vect_analyze_data_ref_accesses): Work on groups.
11803         (vect_find_stmt_data_reference): Add group_id argument and fill
11804         up dataref_groups vector.
11805         * tree-vect-loop.c (vect_get_datarefs_in_loop): Pass new
11806         arguments.
11807         (vect_analyze_loop_2): Likewise.
11808         * tree-vect-slp.c (vect_slp_analyze_bb_1): Pass argument.
11809         (vect_slp_bb_region): Likewise.
11810         (vect_slp_region): Likewise.
11811         (vect_slp_bb):Work on the entire BB.
11812         * tree-vectorizer.h (vect_analyze_data_ref_accesses): Add new
11813         argument.
11814         (vect_find_stmt_data_reference): Likewise.
11816 2020-08-24  Martin Liska  <mliska@suse.cz>
11818         PR tree-optimization/96597
11819         * tree-ssa-sccvn.c (vn_reference_lookup_call): Add missing
11820         initialization of ::punned.
11821         (vn_reference_insert): Use consistently false instead of 0.
11822         (vn_reference_insert_pieces): Likewise.
11824 2020-08-24  Hans-Peter Nilsson  <hp@axis.com>
11826         PR target/93372
11827         * reorg.c (fill_slots_from_thread): Allow trial insns that clobber
11828         TARGET_FLAGS_REGNUM as delay-slot fillers.
11830 2020-08-23  H.J. Lu  <hjl.tools@gmail.com>
11832         PR target/96744
11833         * config/i386/i386-options.c (IX86_ATTR_IX86_YES): New.
11834         (IX86_ATTR_IX86_NO): Likewise.
11835         (ix86_opt_type): Add ix86_opt_ix86_yes and ix86_opt_ix86_no.
11836         (ix86_valid_target_attribute_inner_p): Handle general-regs-only,
11837         ix86_opt_ix86_yes and ix86_opt_ix86_no.
11838         (ix86_option_override_internal): Check opts->x_ix86_target_flags
11839         instead of opts->x_ix86_target_flags.
11840         * doc/extend.texi: Document target("general-regs-only") function
11841         attribute.
11843 2020-08-21  Richard Sandiford  <richard.sandiford@arm.com>
11845         * doc/extend.texi: Update links to Arm docs.
11846         * doc/invoke.texi: Likewise.
11848 2020-08-21  Hongtao Liu  <hongtao.liu@intel.com>
11850         PR target/96262
11851         * config/i386/i386-expand.c
11852         (ix86_expand_vec_shift_qihi_constant): Refine.
11854 2020-08-21  Alex Coplan  <alex.coplan@arm.com>
11856         PR jit/63854
11857         * gcc.c (set_static_spec): New.
11858         (set_static_spec_owned): New.
11859         (set_static_spec_shared): New.
11860         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Use
11861         set_static_spec_owned() to take ownership of lto_wrapper_file
11862         such that it gets freed in driver::finalize.
11863         (driver::maybe_run_linker): Use set_static_spec_shared() to
11864         ensure that we don't try and free() the static string "ld",
11865         also ensuring that any previously-allocated string in
11866         linker_name_spec is freed. Likewise with argv0.
11867         (driver::finalize): Use set_static_spec_shared() when resetting
11868         specs that previously had allocated strings; remove if(0)
11869         around call to free().
11871 2020-08-21  Senthil Kumar Selvaraj  <saaadhu@gcc.gnu.org>
11873         * emit-rtl.c (try_split): Call copy_frame_info_to_split_insn
11874         to split certain RTX_FRAME_RELATED_P insns.
11875         * recog.c (copy_frame_info_to_split_insn): New function.
11876         (peep2_attempt): Split copying of frame related info of
11877         RTX_FRAME_RELATED_P insns into above function and call it.
11878         * recog.h (copy_frame_info_to_split_insn): Declare it.
11880 2020-08-21  liuhongt  <hongtao.liu@intel.com>
11882         PR target/88808
11883         * config/i386/i386.c (ix86_preferred_reload_class): Allow
11884         QImode data go into mask registers.
11885         * config/i386/i386.md: (*movhi_internal): Adjust constraints
11886         for mask registers.
11887         (*movqi_internal): Ditto.
11888         (*anddi_1): Support mask register operations
11889         (*and<mode>_1): Ditto.
11890         (*andqi_1): Ditto.
11891         (*andn<mode>_1): Ditto.
11892         (*<code><mode>_1): Ditto.
11893         (*<code>qi_1): Ditto.
11894         (*one_cmpl<mode>2_1): Ditto.
11895         (*one_cmplsi2_1_zext): Ditto.
11896         (*one_cmplqi2_1): Ditto.
11897         (define_peephole2): Move constant 0/-1 directly into mask
11898         registers.
11899         * config/i386/predicates.md (mask_reg_operand): New predicate.
11900         * config/i386/sse.md (define_split): Add post-reload splitters
11901         that would convert "generic" patterns to mask patterns.
11902         (*knotsi_1_zext): New define_insn.
11904 2020-08-21  liuhongt  <hongtao.liu@intel.com>
11906         * config/i386/x86-tune-costs.h (skylake_cost): Adjust cost
11907         model.
11909 2020-08-21  liuhongt  <hongtao.liu@intel.com>
11911         * config/i386/i386.c (inline_secondary_memory_needed):
11912         No memory is needed between mask regs and gpr.
11913         (ix86_hard_regno_mode_ok): Add condition TARGET_AVX512F for
11914         mask regno.
11915         * config/i386/i386.h (enum reg_class): Add INT_MASK_REGS.
11916         (REG_CLASS_NAMES): Ditto.
11917         (REG_CLASS_CONTENTS): Ditto.
11918         * config/i386/i386.md: Exclude mask register in
11919         define_peephole2 which is avaiable only for gpr.
11921 2020-08-21  H.J. Lu  <hjl.tools@gmail.com>
11923         PR target/71453
11924         * config/i386/i386.h (struct processor_costs): Add member
11925         mask_to_integer, integer_to_mask, mask_load[3], mask_store[3],
11926         mask_move.
11927         * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
11928         i386_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
11929         geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
11930         bdver_cost, znver1_cost, znver2_cost, skylake_cost,
11931         btver1_cost, btver2_cost, pentium4_cost, nocona_cost,
11932         atom_cost, slm_cost, intel_cost, generic_cost, core_cost):
11933         Initialize mask_load[3], mask_store[3], mask_move,
11934         integer_to_mask, mask_to_integer for all target costs.
11935         * config/i386/i386.c (ix86_register_move_cost): Using cost
11936         model of mask registers.
11937         (inline_memory_move_cost): Ditto.
11938         (ix86_register_move_cost): Ditto.
11940 2020-08-20  Iain Buclaw  <ibuclaw@gdcproject.org>
11942         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Don't include
11943         VxWorks header files if -fself-test is used.
11944         (STARTFILE_PREFIX_SPEC): Avoid using VSB_DIR if -fself-test is used.
11946 2020-08-20  Joe Ramsay  <Joe.Ramsay@arm.com>
11948         PR target/96683
11949         * config/arm/mve.md (mve_vst1q_f<mode>): Require MVE memory operand for
11950         destination.
11951         (mve_vst1q_<supf><mode>): Likewise.
11953 2020-08-19  2020-08-19  Carl Love  <cel@us.ibm.com>
11955         * config/rs6000/rs6000-builtin.def (BU_P10V_0, BU_P10V_1,
11956         BU_P10V_2, BU_P10V_3): Rename BU_P10V_VSX_0, BU_P10V_VSX_1,
11957         BU_P10V_VSX_2, BU_P10V_VSX_3 respectively.
11958         (BU_P10V_4): Remove.
11959         (BU_P10V_AV_0, BU_P10V_AV_1, BU_P10V_AV_2, BU_P10V_AV_3, BU_P10V_AV_4):
11960         New definitions for Power 10 Altivec macros.
11961         (VSTRIBR, VSTRIHR, VSTRIBL, VSTRIHL, VSTRIBR_P, VSTRIHR_P,
11962         VSTRIBL_P, VSTRIHL_P, MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM,
11963         VEXPANDMB, VEXPANDMH, VEXPANDMW, VEXPANDMD, VEXPANDMQ, VEXTRACTMB,
11964         VEXTRACTMH, VEXTRACTMW, VEXTRACTMD, VEXTRACTMQ): Replace macro
11965         expansion BU_P10V_1 with BU_P10V_AV_1.
11966         (VCLRLB, VCLRRB, VCFUGED, VCLZDM, VCTZDM, VPDEPD, VPEXTD, VGNB,
11967         VCNTMBB, VCNTMBH, VCNTMBW, VCNTMBD): Replace macro expansion
11968         BU_P10V_2 with  BU_P10V_AV_2.
11969         (VEXTRACTBL, VEXTRACTHL, VEXTRACTWL, VEXTRACTDL, VEXTRACTBR, VEXTRACTHR,
11970         VEXTRACTWR, VEXTRACTDR, VINSERTGPRBL, VINSERTGPRHL, VINSERTGPRWL,
11971         VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL, VINSERTGPRBR,
11972         VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR, VINSERTVPRHR,
11973         VINSERTVPRWR, VREPLACE_ELT_V4SI, VREPLACE_ELT_UV4SI, VREPLACE_ELT_V2DF,
11974         VREPLACE_ELT_V4SF, VREPLACE_ELT_V2DI, VREPLACE_ELT_UV2DI, VREPLACE_UN_V4SI,
11975         VREPLACE_UN_UV4SI, VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
11976         VREPLACE_UN_V2DF, VSLDB_V16QI, VSLDB_V8HI, VSLDB_V4SI, VSLDB_V2DI,
11977         VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI, VSRDB_V2DI): Replace macro expansion
11978         BU_P10V_3 with BU_P10V_AV_3.
11979         (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF, VXXSPLTID): Replace macro expansion
11980         BU_P10V_1 with BU_P10V_AV_1.
11981         (XXGENPCVM_V16QI, XXGENPCVM_V8HI, XXGENPCVM_V4SI, XXGENPCVM_V2DI):
11982         Replace macro expansion BU_P10V_2 with BU_P10V_VSX_2.
11983         (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF, VXXBLEND_V16QI, VXXBLEND_V8HI,
11984         VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): Replace macor
11985         expansion BU_P10V_3 with BU_P10V_VSX_3.
11986         (XXEVAL, VXXPERMX): Replace macro expansion BU_P10V_4 with BU_P10V_VSX_4.
11987         (XVCVBF16SP, XVCVSPBF16): Replace macro expansion BU_VSX_1 with
11988         BU_P10V_VSX_1. Also change MISC to CONST.
11989         * config/rs6000/rs6000-c.c: (P10_BUILTIN_VXXPERMX): Replace with
11990         P10V_BUILTIN_VXXPERMX.
11991         (P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRRB,
11992         P10_BUILTIN_VGNB, P10_BUILTIN_XXEVAL, P10_BUILTIN_VXXPERMX,
11993         P10_BUILTIN_VEXTRACTBL, P10_BUILTIN_VEXTRACTHL, P10_BUILTIN_VEXTRACTWL,
11994         P10_BUILTIN_VEXTRACTDL, P10_BUILTIN_VINSERTGPRHL,
11995         P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
11996         P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
11997         P10_BUILTIN_VEXTRACTBR, P10_BUILTIN_VEXTRACTHR,
11998         P10_BUILTIN_VEXTRACTWR, P10_BUILTIN_VEXTRACTDR,
11999         P10_BUILTIN_VINSERTGPRBR, P10_BUILTIN_VINSERTGPRHR,
12000         P10_BUILTIN_VINSERTGPRWR, P10_BUILTIN_VINSERTGPRDR,
12001         P10_BUILTIN_VINSERTVPRBR, P10_BUILTIN_VINSERTVPRHR,
12002         P10_BUILTIN_VINSERTVPRWR, P10_BUILTIN_VREPLACE_ELT_UV4SI,
12003         P10_BUILTIN_VREPLACE_ELT_V4SI, P10_BUILTIN_VREPLACE_ELT_UV2DI,
12004         P10_BUILTIN_VREPLACE_ELT_V2DI, P10_BUILTIN_VREPLACE_ELT_V2DF,
12005         P10_BUILTIN_VREPLACE_UN_UV4SI, P10_BUILTIN_VREPLACE_UN_V4SI,
12006         P10_BUILTIN_VREPLACE_UN_V4SF, P10_BUILTIN_VREPLACE_UN_UV2DI,
12007         P10_BUILTIN_VREPLACE_UN_V2DI, P10_BUILTIN_VREPLACE_UN_V2DF,
12008         P10_BUILTIN_VSLDB_V16QI, P10_BUILTIN_VSLDB_V16QI,
12009         P10_BUILTIN_VSLDB_V8HI, P10_BUILTIN_VSLDB_V4SI,
12010         P10_BUILTIN_VSLDB_V2DI, P10_BUILTIN_VXXSPLTIW_V4SI,
12011         P10_BUILTIN_VXXSPLTIW_V4SF, P10_BUILTIN_VXXSPLTID,
12012         P10_BUILTIN_VXXSPLTI32DX_V4SI, P10_BUILTIN_VXXSPLTI32DX_V4SF,
12013         P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
12014         P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI,
12015         P10_BUILTIN_VXXBLEND_V4SF, P10_BUILTIN_VXXBLEND_V2DF,
12016         P10_BUILTIN_VSRDB_V16QI, P10_BUILTIN_VSRDB_V8HI,
12017         P10_BUILTIN_VSRDB_V4SI, P10_BUILTIN_VSRDB_V2DI,
12018         P10_BUILTIN_VSTRIBL, P10_BUILTIN_VSTRIHL,
12019         P10_BUILTIN_VSTRIBL_P, P10_BUILTIN_VSTRIHL_P,
12020         P10_BUILTIN_VSTRIBR, P10_BUILTIN_VSTRIHR,
12021         P10_BUILTIN_VSTRIBR_P, P10_BUILTIN_VSTRIHR_P,
12022         P10_BUILTIN_MTVSRBM, P10_BUILTIN_MTVSRHM,
12023         P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
12024         P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB,
12025         P10_BUILTIN_VCNTMBH, P10_BUILTIN_VCNTMBW,
12026         P10_BUILTIN_VCNTMBD, P10_BUILTIN_VEXPANDMB,
12027         P10_BUILTIN_VEXPANDMH, P10_BUILTIN_VEXPANDMW,
12028         P10_BUILTIN_VEXPANDMD, P10_BUILTIN_VEXPANDMQ,
12029         P10_BUILTIN_VEXTRACTMB, P10_BUILTIN_VEXTRACTMH,
12030         P10_BUILTIN_VEXTRACTMW, P10_BUILTIN_VEXTRACTMD,
12031         P10_BUILTIN_VEXTRACTMQ, P10_BUILTIN_XVTLSBB_ZEROS,
12032         P10_BUILTIN_XVTLSBB_ONES): Replace with
12033         P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRRB,
12034         P10V_BUILTIN_VGNB, P10V_BUILTIN_XXEVAL, P10V_BUILTIN_VXXPERMX,
12035         P10V_BUILTIN_VEXTRACTBL, P10V_BUILTIN_VEXTRACTHL, P10V_BUILTIN_VEXTRACTWL,
12036         P10V_BUILTIN_VEXTRACTDL, P10V_BUILTIN_VINSERTGPRHL,
12037         P10V_BUILTIN_VINSERTGPRWL, P10V_BUILTIN_VINSERTGPRDL,
12038         P10V_BUILTIN_VINSERTVPRBL,P10V_BUILTIN_VINSERTVPRHL,
12039         P10V_BUILTIN_VEXTRACTBR, P10V_BUILTIN_VEXTRACTHR
12040         P10V_BUILTIN_VEXTRACTWR, P10V_BUILTIN_VEXTRACTDR,
12041         P10V_BUILTIN_VINSERTGPRBR, P10V_BUILTIN_VINSERTGPRHR,
12042         P10V_BUILTIN_VINSERTGPRWR, P10V_BUILTIN_VINSERTGPRDR,
12043         P10V_BUILTIN_VINSERTVPRBR, P10V_BUILTIN_VINSERTVPRHR,
12044         P10V_BUILTIN_VINSERTVPRWR, P10V_BUILTIN_VREPLACE_ELT_UV4SI,
12045         P10V_BUILTIN_VREPLACE_ELT_V4SI, P10V_BUILTIN_VREPLACE_ELT_UV2DI,
12046         P10V_BUILTIN_VREPLACE_ELT_V2DI, P10V_BUILTIN_VREPLACE_ELT_V2DF,
12047         P10V_BUILTIN_VREPLACE_UN_UV4SI, P10V_BUILTIN_VREPLACE_UN_V4SI,
12048         P10V_BUILTIN_VREPLACE_UN_V4SF, P10V_BUILTIN_VREPLACE_UN_UV2DI,
12049         P10V_BUILTIN_VREPLACE_UN_V2DI, P10V_BUILTIN_VREPLACE_UN_V2DF,
12050         P10V_BUILTIN_VSLDB_V16QI, P10V_BUILTIN_VSLDB_V16QI,
12051         P10V_BUILTIN_VSLDB_V8HI, P10V_BUILTIN_VSLDB_V4SI,
12052         P10V_BUILTIN_VSLDB_V2DI, P10V_BUILTIN_VXXSPLTIW_V4SI,
12053         P10V_BUILTIN_VXXSPLTIW_V4SF, P10V_BUILTIN_VXXSPLTID,
12054         P10V_BUILTIN_VXXSPLTI32DX_V4SI, P10V_BUILTIN_VXXSPLTI32DX_V4SF,
12055         P10V_BUILTIN_VXXBLEND_V16QI, P10V_BUILTIN_VXXBLEND_V8HI,
12056         P10V_BUILTIN_VXXBLEND_V4SI, P10V_BUILTIN_VXXBLEND_V2DI,
12057         P10V_BUILTIN_VXXBLEND_V4SF, P10V_BUILTIN_VXXBLEND_V2DF,
12058         P10V_BUILTIN_VSRDB_V16QI, P10V_BUILTIN_VSRDB_V8HI,
12059         P10V_BUILTIN_VSRDB_V4SI, P10V_BUILTIN_VSRDB_V2DI,
12060         P10V_BUILTIN_VSTRIBL, P10V_BUILTIN_VSTRIHL,
12061         P10V_BUILTIN_VSTRIBL_P, P10V_BUILTIN_VSTRIHL_P,
12062         P10V_BUILTIN_VSTRIBR, P10V_BUILTIN_VSTRIHR,
12063         P10V_BUILTIN_VSTRIBR_P, P10V_BUILTIN_VSTRIHR_P,
12064         P10V_BUILTIN_MTVSRBM, P10V_BUILTIN_MTVSRHM,
12065         P10V_BUILTIN_MTVSRWM, P10V_BUILTIN_MTVSRDM,
12066         P10V_BUILTIN_MTVSRQM, P10V_BUILTIN_VCNTMBB,
12067         P10V_BUILTIN_VCNTMBH, P10V_BUILTIN_VCNTMBW,
12068         P10V_BUILTIN_VCNTMBD, P10V_BUILTIN_VEXPANDMB,
12069         P10V_BUILTIN_VEXPANDMH, P10V_BUILTIN_VEXPANDMW,
12070         P10V_BUILTIN_VEXPANDMD, P10V_BUILTIN_VEXPANDMQ,
12071         P10V_BUILTIN_VEXTRACTMB, P10V_BUILTIN_VEXTRACTMH,
12072         P10V_BUILTIN_VEXTRACTMW, P10V_BUILTIN_VEXTRACTMD,
12073         P10V_BUILTIN_VEXTRACTMQ, P10V_BUILTIN_XVTLSBB_ZEROS,
12074         P10V_BUILTIN_XVTLSBB_ONES respectively.
12075         * config/rs6000/rs6000-call.c: Ditto above, change P10_BUILTIN_name to
12076         P10V_BUILTIN_name.
12077         (P10_BUILTIN_XVCVSPBF16, P10_BUILTIN_XVCVBF16SP): Change to
12078         P10V_BUILTIN_XVCVSPBF16, P10V_BUILTIN_XVCVBF16SP respectively.
12080 2020-08-19  Bill Schmidt  <wschmidt@linux.ibm.com>
12082         * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
12083         Sibcalls are always legal when the caller doesn't preserve r2.
12085 2020-08-19  Uroš Bizjak  <ubizjak@gmail.com>
12087         * config/i386/i386-expand.c (ix86_expand_builtin)
12088         [case IX86_BUILTIN_ENQCMD, case IX86_BUILTIN_ENQCMDS]:
12089         Rewrite expansion to use code_for_enqcmd.
12090         [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]:
12091         Rewrite expansion to use code_for_wrss.
12092         [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
12093         Rewrite expansion to use code_for_wrss.
12095 2020-08-19  Feng Xue  <fxue@os.amperecomputing.com>
12097         PR tree-optimization/94234
12098         * match.pd ((PTR_A + OFF) - (PTR_B + OFF)) -> (PTR_A - PTR_B): New
12099         simplification.
12101 2020-08-19  H.J. Lu  <hjl.tools@gmail.com>
12103         * common/config/i386/cpuinfo.h (get_intel_cpu): Detect Rocket
12104         Lake and Alder Lake.
12106 2020-08-19  Peixin Qiao  <qiaopeixin@huawei.com>
12108         * config/aarch64/aarch64.c (aarch64_init_cumulative_args): Remove
12109         "fndecl && TREE_PUBLIC (fndecl)" check since it prevents the funtion
12110         type check when calling via a function pointer or when calling a static
12111         function.
12113 2020-08-19  Kewen Lin  <linkw@linux.ibm.com>
12115         * opts-global.c (decode_options): Call target_option_override_hook
12116         before it prints for --help=*.
12118 2020-08-18  Peter Bergner  <bergner@linux.ibm.com>
12120         * config/rs6000/rs6000-builtin.def (BU_VSX_1): Rename xvcvbf16sp to
12121         xvcvbf16spn.
12122         * config/rs6000/rs6000-call.c (builtin_function_type): Likewise.
12123         * config/rs6000/vsx.md: Likewise.
12124         * doc/extend.texi: Likewise.
12126 2020-08-18  Aaron Sawdey  <acsawdey@linux.ibm.com>
12128         * config/rs6000/rs6000-string.c (gen_lxvl_stxvl_move):
12129         Helper function.
12130         (expand_block_move): Add lxvl/stxvl, vector pair, and
12131         unaligned VSX.
12132         * config/rs6000/rs6000.c (rs6000_option_override_internal):
12133         Default value for -mblock-ops-vector-pair.
12134         * config/rs6000/rs6000.opt: Add -mblock-ops-vector-pair.
12136 2020-08-18  Aldy Hernandez  <aldyh@redhat.com>
12138         * vr-values.c (check_for_binary_op_overflow): Change type of store
12139         to range_query.
12140         (vr_values::adjust_range_with_scev): Abstract most of the code...
12141         (range_of_var_in_loop): ...here.  Remove value_range_equiv uses.
12142         (simplify_using_ranges::simplify_using_ranges): Change type of store
12143         to range_query.
12144         * vr-values.h (class range_query): New.
12145         (class simplify_using_ranges): Use range_query.
12146         (class vr_values): Add OVERRIDE to get_value_range.
12147         (range_of_var_in_loop): New.
12149 2020-08-18  Martin Sebor  <msebor@redhat.com>
12151         PR middle-end/96665
12152         PR middle-end/78257
12153         * expr.c (convert_to_bytes): Replace statically allocated buffer with
12154         a dynamically allocated one of sufficient size.
12156 2020-08-18  Martin Sebor  <msebor@redhat.com>
12158         PR tree-optimization/96670
12159         PR middle-end/78257
12160         * gimple-fold.c (gimple_fold_builtin_memchr): Call byte_representation
12161         to get it, not string_constant.
12163 2020-08-18  Hu Jiangping  <hujiangping@cn.fujitsu.com>
12165         * doc/gimple.texi (gimple_debug_begin_stmt_p): Add return type.
12166         (gimple_debug_inline_entry_p, gimple_debug_nonbind_marker_p): Likewise.
12168 2020-08-18  Martin Sebor  <msebor@redhat.com>
12170         * fold-const.c (native_encode_expr): Update comment.
12172 2020-08-18  Uroš Bizjak  <ubizjak@gmail.com>
12174         PR target/96536
12175         * config/i386/i386.md (restore_stack_nonlocal): Add missing compare
12176         RTX.  Rewrite expander to use high-level functions in RTL construction.
12178 2020-08-18  liuhongt  <hongtao.liu@intel.com>
12180         PR target/96562
12181         PR target/93897
12182         * config/i386/i386-expand.c (ix86_expand_pinsr): Don't use
12183         pinsr for TImode.
12184         (ix86_expand_pextr): Don't use pextr for TImode.
12186 2020-08-17  Uroš Bizjak  <ubizjak@gmail.com>
12188         * config/i386/i386-builtin.def (__builtin_ia32_bextri_u32)
12189         (__builtin_ia32_bextri_u64): Use CODE_FOR_nothing.
12190         * config/i386/i386.md (@tbm_bextri_<mode>):
12191         Implement as parametrized name pattern.
12192         (@rdrand<mode>): Ditto.
12193         (@rdseed<mode>): Ditto.
12194         * config/i386/i386-expand.c (ix86_expand_builtin)
12195         [case IX86_BUILTIN_BEXTRI32, case IX86_BUILTIN_BEXTRI64]:
12196         Update for parameterized name patterns.
12197         [case IX86_BUILTIN_RDRAND16_STEP, case IX86_BUILTIN_RDRAND32_STEP]
12198         [case IX86_BUILTIN_RDRAND64_STEP]: Ditto.
12199         [case IX86_BUILTIN_RDSEED16_STEP, case IX86_BUILTIN_RDSEED32_STEP]
12200         [case IX86_BUILTIN_RDSEED64_STEP]: Ditto.
12202 2020-08-17  Aldy Hernandez  <aldyh@redhat.com>
12204         * vr-values.c (vr_values::get_value_range): Add stmt param.
12205         (vr_values::extract_range_from_comparison): Same.
12206         (vr_values::extract_range_from_assignment): Pass stmt to
12207         extract_range_from_comparison.
12208         (vr_values::adjust_range_with_scev): Pass stmt to get_value_range.
12209         (simplify_using_ranges::vrp_evaluate_conditional): Add stmt param.
12210         Pass stmt to get_value_range.
12211         (simplify_using_ranges::vrp_visit_cond_stmt): Pass stmt to
12212         get_value_range.
12213         (simplify_using_ranges::simplify_abs_using_ranges): Same.
12214         (simplify_using_ranges::simplify_div_or_mod_using_ranges): Same.
12215         (simplify_using_ranges::simplify_bit_ops_using_ranges): Same.
12216         (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
12217         (simplify_using_ranges::simplify_switch_using_ranges): Same.
12218         (simplify_using_ranges::simplify_float_conversion_using_ranges): Same.
12219         * vr-values.h (class vr_values): Add stmt arg to
12220         vrp_evaluate_conditional_warnv_with_ops.
12221         Add stmt arg to extract_range_from_comparison and get_value_range.
12222         (simplify_using_ranges::get_value_range): Add stmt arg.
12224 2020-08-17  liuhongt  <hongtao.liu@intel.com>
12226         PR target/96350
12227         * config/i386/i386.c (ix86_legitimate_constant_p): Return
12228         false for ENDBR immediate.
12229         (ix86_legitimate_address_p): Ditto.
12230         * config/i386/predicates.md
12231         (x86_64_immediate_operand): Exclude ENDBR immediate.
12232         (x86_64_zext_immediate_operand): Ditto.
12233         (x86_64_dwzext_immediate_operand): Ditto.
12234         (ix86_endbr_immediate_operand): New predicate.
12236 2020-08-16  Roger Sayle  <roger@nextmovesoftware.com>
12238         * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
12239         Simplify (sign_extend:M (truncate:N (lshiftrt:M x C))) to
12240         (ashiftrt:M x C) when the shift sets the high bits appropriately.
12242 2020-08-14  Martin Sebor  <msebor@redhat.com>
12244         PR middle-end/78257
12245         * builtins.c (expand_builtin_memory_copy_args): Rename called function.
12246         (expand_builtin_stpcpy_1): Remove argument from call.
12247         (expand_builtin_memcmp): Rename called function.
12248         (inline_expand_builtin_bytecmp): Same.
12249         * expr.c (convert_to_bytes): New function.
12250         (constant_byte_string): New function (formerly string_constant).
12251         (string_constant): Call constant_byte_string.
12252         (byte_representation): New function.
12253         * expr.h (byte_representation): Declare.
12254         * fold-const-call.c (fold_const_call): Rename called function.
12255         * fold-const.c (c_getstr): Remove an argument.
12256         (getbyterep): Define a new function.
12257         * fold-const.h (c_getstr): Remove an argument.
12258         (getbyterep): Declare a new function.
12259         * gimple-fold.c (gimple_fold_builtin_memory_op): Rename callee.
12260         (gimple_fold_builtin_string_compare): Same.
12261         (gimple_fold_builtin_memchr): Same.
12263 2020-08-14  David Malcolm  <dmalcolm@redhat.com>
12265         * doc/analyzer.texi (Overview): Add tip about how to get a
12266         gimple dump if the analyzer ICEs.
12268 2020-08-14  Uroš Bizjak  <ubizjak@gmail.com>
12270         * config/i386/i386-builtin.def (__builtin_ia32_llwpcb)
12271         (__builtin_ia32_slwpcb, __builtin_ia32_lwpval32)
12272         (__builtin_ia32_lwpval64, __builtin_ia32_lwpins32)
12273         (__builtin_ia32_lwpins64): Use CODE_FOR_nothing.
12274         * config/i386/i386.md (@lwp_llwpcb<mode>):
12275         Implement as parametrized name pattern.
12276         (@lwp_slwpcb<mode>): Ditto.
12277         (@lwp_lwpval<mode>): Ditto.
12278         (@lwp_lwpins<mode>): Ditto.
12279         * config/i386/i386-expand.c (ix86_expand_special_args_builtin)
12280         [case VOID_FTYPE_UINT_UINT_UINT, case VOID_FTYPE_UINT64_UINT_UINT]
12281         [case UCHAR_FTYPE_UINT_UINT_UINT, case UCHAR_FTYPE_UINT64_UINT_UINT]:
12282         Remove.
12283         (ix86_expand_builtin)
12284         [ case IX86_BUILTIN_LLWPCB, case IX86_BUILTIN_LLWPCB]:
12285         Update for parameterized name patterns.
12286         [case IX86_BUILTIN_LWPVAL32, case IX86_BUILTIN_LWPVAL64]
12287         [case IX86_BUILTIN_LWPINS32, case IX86_BUILTIN_LWPINS64]: Expand here.
12289 2020-08-14  Lewis Hyatt  <lhyatt@gmail.com>
12291         * common.opt: Add new option -fdiagnostics-plain-output.
12292         * doc/invoke.texi: Document it.
12293         * opts-common.c (decode_cmdline_options_to_array): Implement it.
12294         (decode_cmdline_option): Add missing const qualifier to argv.
12296 2020-08-14  Jakub Jelinek  <jakub@redhat.com>
12297             Jonathan Wakely  <jwakely@redhat.com>
12298             Jonathan Wakely   <jwakely@redhat.com>
12300         * system.h: Include type_traits.
12301         * vec.h (vec<T, A, vl_embed>::embedded_size): Use offsetof and asserts
12302         on vec_stdlayout, which is conditionally a vec (for standard layout T)
12303         and otherwise vec_embedded.
12305 2020-08-14  Jojo R  <jiejie_rong@c-sky.com>
12307         * config/csky/csky-elf.h (ASM_SPEC): Use mfloat-abi.
12308         * config/csky/csky-linux-elf.h (ASM_SPEC): mfloat-abi.
12310 2020-08-13  David Malcolm  <dmalcolm@redhat.com>
12312         PR analyzer/93032
12313         PR analyzer/93938
12314         PR analyzer/94011
12315         PR analyzer/94099
12316         PR analyzer/94399
12317         PR analyzer/94458
12318         PR analyzer/94503
12319         PR analyzer/94640
12320         PR analyzer/94688
12321         PR analyzer/94689
12322         PR analyzer/94839
12323         PR analyzer/95026
12324         PR analyzer/95042
12325         PR analyzer/95240
12326         * Makefile.in (ANALYZER_OBJS): Add analyzer/region.o,
12327         analyzer/region-model-impl-calls.o,
12328         analyzer/region-model-manager.o,
12329         analyzer/region-model-reachability.o, analyzer/store.o, and
12330         analyzer/svalue.o.
12331         * doc/analyzer.texi: Update for changes to analyzer
12332         implementation.
12333         * tristate.h (tristate::get_value): New accessor.
12335 2020-08-13  Uroš Bizjak  <ubizjak@gmail.com>
12337         * config/i386/i386-builtin.def (CET_NORMAL): Merge to CET BDESC array.
12338         (__builtin_ia32_rddspd, __builtin_ia32_rddspq, __builtin_ia32_incsspd)
12339         (__builtin_ia32_incsspq, __builtin_ia32_wrssd, __builtin_ia32_wrssq)
12340         (__builtin_ia32_wrussd, __builtin_ia32_wrussq): Use CODE_FOR_nothing.
12341         * config/i386/i386-builtins.c: Remove handling of CET_NORMAL builtins.
12342         * config/i386/i386.md (@rdssp<mode>): Implement as parametrized
12343         name pattern.  Use SWI48 mode iterator.  Introduce input operand
12344         and remove explicit XOR zeroing from insn template.
12345         (@incssp<mode>): Implement as parametrized name pattern.
12346         Use SWI48 mode iterator.
12347         (@wrss<mode>): Ditto.
12348         (@wruss<mode>): Ditto.
12349         (rstorssp): Remove expander.  Rename insn pattern from *rstorssp<mode>.
12350         Use DImode memory operand.
12351         (clrssbsy): Remove expander.  Rename insn pattern from *clrssbsy<mode>.
12352         Use DImode memory operand.
12353         (save_stack_nonlocal): Update for parametrized name patterns.
12354         Use cleared register as an argument to gen_rddsp.
12355         (restore_stack_nonlocal): Update for parametrized name patterns.
12356         * config/i386/i386-expand.c (ix86_expand_builtin):
12357         [case IX86_BUILTIN_RDSSPD, case IX86_BUILTIN_RDSSPQ]: Expand here.
12358         [case IX86_BUILTIN_INCSSPD, case IX86_BUILTIN_INCSSPQ]: Ditto.
12359         [case IX86_BUILTIN_RSTORSSP, case IX86_BUILTIN_CLRSSBSY]:
12360         Generate DImode memory operand.
12361         [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]
12362         [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
12363         Update for parameterized name patterns.
12365 2020-08-13  Peter Bergner  <bergner@linux.ibm.com>
12367         PR target/96506
12368         * config/rs6000/rs6000-call.c (rs6000_promote_function_mode): Disallow
12369         MMA types as return values.
12370         (rs6000_function_arg): Disallow MMA types as function arguments.
12372 2020-08-13  Richard Sandiford  <richard.sandiford@arm.com>
12374         Revert:
12375         2020-08-12  Peixin Qiao  <qiaopeixin@huawei.com>
12377         * config/aarch64/aarch64.c (aarch64_function_value): Add if
12378         condition to check ag_mode after entering if condition of
12379         aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
12380         set as false by -mgeneral-regs-only, report the diagnostic
12381         information of -mgeneral-regs-only imcompatible with the use
12382         of fp/simd register(s).
12384 2020-08-13  Martin Liska  <mliska@suse.cz>
12386         PR ipa/96482
12387         * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Mask m_value
12388         with m_mask.
12390 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
12392         * gimplify.c (gimplify_omp_taskloop_expr): New function.
12393         (gimplify_omp_for): Use it.  For OMP_FOR_NON_RECTANGULAR
12394         loops adjust in outer taskloop the var-outer decls.
12395         * omp-expand.c (expand_omp_taskloop_for_inner): Handle non-rectangular
12396         loops.
12397         (expand_omp_for): Don't reject non-rectangular taskloop.
12398         * omp-general.c (omp_extract_for_data): Don't assert that
12399         non-rectangular loops have static schedule, instead treat loop->m1
12400         or loop->m2 as if loop->n1 or loop->n2 is non-constant.
12402 2020-08-13  Hongtao Liu  <hongtao.liu@intel.com>
12404         PR target/96246
12405         * config/i386/sse.md (<avx512>_load<mode>_mask,
12406         <avx512>_load<mode>_mask): Extend to generate blendm
12407         instructions.
12408         (<avx512>_blendm<mode>, <avx512>_blendm<mode>): Change
12409         define_insn to define_expand.
12411 2020-08-12  Roger Sayle  <roger@nextmovesoftware.com>
12412             Uroš Bizjak  <ubizjak@gmail.com>
12414         PR target/96558
12415         * config/i386/i386.md (peephole2): Only reorder register clearing
12416         instructions to allow use of xor for general registers.
12418 2020-08-12  Martin Liska  <mliska@suse.cz>
12420         PR ipa/96482
12421         * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Drop value bits
12422         for bits that are unknown.
12423         (ipcp_bits_lattice::set_to_constant): Likewise.
12424         * tree-ssa-ccp.c (get_default_value): Add sanity check that
12425         IPA CP bit info has all bits set to zero in bits that
12426         are unknown.
12428 2020-08-12  Peixin Qiao  <qiaopeixin@huawei.com>
12430         * config/aarch64/aarch64.c (aarch64_function_value): Add if
12431         condition to check ag_mode after entering if condition of
12432         aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
12433         set as false by -mgeneral-regs-only, report the diagnostic
12434         information of -mgeneral-regs-only imcompatible with the use
12435         of fp/simd register(s).
12437 2020-08-12  Jakub Jelinek  <jakub@redhat.com>
12439         PR tree-optimization/96535
12440         * toplev.c (process_options): Move flag_unroll_loops and
12441         flag_cunroll_grow_size handling from here to ...
12442         * opts.c (finish_options): ... here.  For flag_cunroll_grow_size,
12443         don't check for AUTODETECT_VALUE, but instead check
12444         opts_set->x_flag_cunroll_grow_size.
12445         * common.opt (funroll-completely-grow-size): Default to 0.
12446         * config/rs6000/rs6000.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
12447         Redefine.
12448         (rs6000_override_options_after_change): New function.
12449         (rs6000_option_override_internal): Call it.  Move there the
12450         flag_cunroll_grow_size, unroll_only_small_loops and
12451         flag_rename_registers handling.
12453 2020-08-12  Tom de Vries  <tdevries@suse.de>
12455         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Make elt_size an
12456         unsigned HOST_WIDE_INT.  Print init_frag.remaining using
12457         HOST_WIDE_INT_PRINT_UNSIGNED.
12459 2020-08-12  Roger Sayle  <roger@nextmovesoftware.com>
12460             Uroš Bizjak  <ubizjak@gmail.com>
12462         * config/i386/i386.md (peephole2): Reduce unnecessary
12463         register shuffling produced by register allocation.
12465 2020-08-12  Aldy Hernandez  <aldyh@redhat.com>
12467         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use vec<>
12468         instead of std::vector<>.
12469         (evaluate_properties_for_edge): Same.
12470         (ipa_fn_summary_t::duplicate): Same.
12471         (estimate_ipcp_clone_size_and_time): Same.
12472         * vec.h (<T, A, vl_embed>::embedded_size): Change vec_embedded
12473         type to contain a char[].
12475 2020-08-12  Andreas Krebbel  <krebbel@linux.ibm.com>
12477         PR target/96308
12478         * config/s390/s390.c (s390_cannot_force_const_mem): Reject an
12479         unary minus for everything not being a numeric constant.
12480         (legitimize_tls_address): Move a NEG out of the CONST rtx.
12482 2020-08-12  Andreas Krebbel  <krebbel@linux.ibm.com>
12484         PR target/96456
12485         * config/s390/s390.h (TARGET_NONSIGNALING_VECTOR_COMPARE_OK): New
12486         macro.
12487         * config/s390/vector.md (vcond_comparison_operator): Use new macro
12488         for the check.
12490 2020-08-11  Jakub Jelinek  <jakub@redhat.com>
12492         PR rtl-optimization/96539
12493         * expr.c (emit_block_move_hints): Don't copy anything if x and y
12494         are the same and neither is MEM_VOLATILE_P.
12496 2020-08-11  Jakub Jelinek  <jakub@redhat.com>
12498         PR c/96549
12499         * tree.c (get_narrower): Use TREE_TYPE (ret) instead of
12500         TREE_TYPE (win) for COMPOUND_EXPRs.
12502 2020-08-11  Jan Hubicka  <hubicka@ucw.cz>
12504         * predict.c (not_loop_guard_equal_edge_p): New function.
12505         (maybe_predict_edge): New function.
12506         (predict_paths_for_bb): Use it.
12507         (predict_paths_leading_to_edge): Use it.
12509 2020-08-11  Martin Liska  <mliska@suse.cz>
12511         * dbgcnt.def (DEBUG_COUNTER): Add ipa_cp_bits.
12512         * ipa-cp.c (ipcp_store_bits_results): Use it when we store known
12513         bits for parameters.
12515 2020-08-10  Marek Polacek  <polacek@redhat.com>
12517         * doc/sourcebuild.texi: Document dg-ice.
12519 2020-08-10  Roger Sayle  <roger@nextmovesoftware.com>
12521         * config/i386/i386-expand.c (ix86_expand_int_movcc): Expand
12522         signed MIN_EXPR against zero as "x < 0 ? x : 0" instead of
12523         "x <= 0 ? x : 0" to enable sign_bit_compare_p optimizations.
12525 2020-08-10  Aldy Hernandez  <aldyh@redhat.com>
12527         * value-range.h (gt_ggc_mx): Declare inline.
12528         (gt_pch_nx): Same.
12530 2020-08-10  Marc Glisse  <marc.glisse@inria.fr>
12532         PR tree-optimization/95433
12533         * match.pd (X * C1 == C2): Handle wrapping overflow.
12534         * expr.c (maybe_optimize_mod_cmp): Qualify call to mod_inv.
12535         (mod_inv): Move...
12536         * wide-int.cc (mod_inv): ... here.
12537         * wide-int.h (mod_inv): Declare it.
12539 2020-08-10  Jan Hubicka  <hubicka@ucw.cz>
12541         * predict.c (filter_predictions): Document semantics of filter.
12542         (equal_edge_p): Rename to ...
12543         (not_equal_edge_p): ... this; reverse semantics.
12544         (remove_predictions_associated_with_edge): Fix.
12546 2020-08-10  Hongtao Liu  <hongtao.liu@intel.com>
12548         PR target/96243
12549         * config/i386/i386-expand.c (ix86_expand_sse_cmp): Refine for
12550         maskcmp.
12551         (ix86_expand_mask_vec_cmp): Change prototype.
12552         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): Change prototype.
12553         * config/i386/i386.c (ix86_print_operand): Remove operand
12554         modifier 'I'.
12555         * config/i386/sse.md
12556         (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>): Deleted.
12557         (*<avx512>_cmp<mode>3<mask_scalar_merge_name>): Ditto.
12558         (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
12559         (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
12560         avx512f_maskcmp<mode>3): Ditto.
12562 2020-08-09  Roger Sayle  <roger@nextmovesoftware.com>
12564         * expmed.c (init_expmed_one_conv): Restore all->reg's mode.
12565         (init_expmed_one_mode): Set all->reg to desired mode.
12567 2020-08-08  Peter Bergner  <bergner@linux.ibm.com>
12569         PR target/96530
12570         * config/rs6000/rs6000.c (rs6000_invalid_conversion): Use canonical
12571         types for type comparisons.  Refactor code to simplify it.
12573 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
12575         PR fortran/93553
12576         * tree-nested.c (convert_nonlocal_omp_clauses): For
12577         OMP_CLAUSE_REDUCTION, OMP_CLAUSE_LASTPRIVATE and OMP_CLAUSE_LINEAR
12578         save info->new_local_var_chain around walks of the clause gimple
12579         sequences and declare_vars if needed into the sequence.
12581 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
12583         PR tree-optimization/96424
12584         * omp-expand.c: Include tree-eh.h.
12585         (expand_omp_for_init_vars): Handle -fexceptions -fnon-call-exceptions
12586         by forcing floating point comparison into a bool temporary.
12588 2020-08-07  Marc Glisse  <marc.glisse@inria.fr>
12590         * generic-match-head.c (optimize_vectors_before_lowering_p): New
12591         function.
12592         * gimple-match-head.c (optimize_vectors_before_lowering_p):
12593         Likewise.
12594         * match.pd ((v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): Use it.
12596 2020-08-07  Richard Biener  <rguenther@suse.de>
12598         PR tree-optimization/96514
12599         * tree-if-conv.c (if_convertible_bb_p): If the last stmt
12600         is a call that is control-altering, fail.
12602 2020-08-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
12604         * config/bpf/bpf.md: Remove trailing whitespaces.
12605         * config/bpf/constraints.md: Likewise.
12606         * config/bpf/predicates.md: Likewise.
12608 2020-08-07  Michael Meissner  <meissner@linux.ibm.com>
12610         * config/rs6000/rs6000.md (bswaphi2_reg): Add ISA 3.1 support.
12611         (bswapsi2_reg): Add ISA 3.1 support.
12612         (bswapdi2): Rename bswapdi2_xxbrd to bswapdi2_brd.
12613         (bswapdi2_brd,bswapdi2_xxbrd): Rename.  Add ISA 3.1 support.
12615 2020-08-07  Alan Modra  <amodra@gmail.com>
12617         PR target/96493
12618         * config/rs6000/predicates.md (current_file_function_operand): Don't
12619         accept functions that differ in r2 usage.
12621 2020-08-06  Hans-Peter Nilsson  <hp@bitrange.com>
12623         * config/mmix/mmix.md (MM): New mode_iterator.
12624         ("mov<mode>"): New expander to expand for all MM-modes.
12625         ("*movqi_expanded", "*movhi_expanded", "*movsi_expanded")
12626         ("*movsf_expanded", "*movdf_expanded"): Rename from the
12627         corresponding mov<M> named pattern.  Add to the condition that
12628         either operand must be a register_operand.
12629         ("*movdi_expanded"): Similar, but also allow STCO in the condition.
12631 2020-08-06  Richard Sandiford  <richard.sandiford@arm.com>
12633         PR target/96191
12634         * config/arm/arm.md (arm_stack_protect_test_insn): Zero out
12635         operand 2 after use.
12636         * config/arm/thumb1.md (thumb1_stack_protect_test_insn): Likewise.
12638 2020-08-06  Peter Bergner  <bergner@linux.ibm.com>
12640         PR target/96446
12641         * config/rs6000/mma.md (*movpxi): Add xxsetaccz generation.
12642         Disable split for zero constant source operand.
12643         (mma_xxsetaccz): Change to define_expand.  Call gen_movpxi.
12645 2020-08-06  Jakub Jelinek  <jakub@redhat.com>
12647         PR tree-optimization/96480
12648         * tree-ssa-reassoc.c (suitable_cond_bb): Add TEST_SWAPPED_P argument.
12649         If TEST_BB ends in cond and has one edge to *OTHER_BB and another
12650         through an empty bb to that block too, if PHI args don't match, retry
12651         them through the other path from TEST_BB.
12652         (maybe_optimize_range_tests): Adjust callers.  Handle such LAST_BB
12653         through inversion of the condition.
12655 2020-08-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
12657         * config/bpf/bpf-helpers.h (KERNEL_HELPER): Define.
12658         (KERNEL_VERSION): Remove.
12659         * config/bpf/bpf-helpers.def: Delete.
12660         * config/bpf/bpf.c (bpf_handle_fndecl_attribute): New function.
12661         (bpf_attribute_table): Define.
12662         (bpf_helper_names): Delete.
12663         (bpf_helper_code): Likewise.
12664         (enum bpf_builtins): Adjust to new helpers mechanism.
12665         (bpf_output_call): Likewise.
12666         (bpf_init_builtins): Likewise.
12667         (bpf_init_builtins): Likewise.
12668         * doc/extend.texi (BPF Function Attributes): New section.
12669         (BPF Kernel Helpers): Delete section.
12671 2020-08-06  Richard Biener  <rguenther@suse.de>
12673         PR tree-optimization/96491
12674         * tree-ssa-sink.c (sink_common_stores_to_bb): Avoid
12675         sinking across abnormal edges.
12677 2020-08-06  Richard Biener  <rguenther@suse.de>
12679         PR tree-optimization/96483
12680         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
12681         POLY_INT_CST.
12683 2020-08-06  Richard Biener  <rguenther@suse.de>
12685         * graphite-isl-ast-to-gimple.c (ivs_params): Use hash_map instead
12686         of std::map.
12687         (ivs_params_clear): Adjust.
12688         (gcc_expression_from_isl_ast_expr_id): Likewise.
12689         (graphite_create_new_loop): Likewise.
12690         (add_parameters_to_ivs_params): Likewise.
12692 2020-08-06  Roger Sayle  <roger@nextmovesoftware.com>
12693             Uroš Bizjak  <ubizjak@gmail.com>
12695         * config/i386/i386.md (MAXMIN_IMODE): No longer needed.
12696         (<maxmin><mode>3):  Support SWI248 and general_operand for
12697         second operand, when TARGET_CMOVE.
12698         (<maxmin><mode>3_1 splitter): Optimize comparisons against
12699         0, 1 and -1 to use "test" instead of "cmp".
12700         (*<maxmin>di3_doubleword): Likewise, allow general_operand
12701         and enable on TARGET_CMOVE.
12702         (peephole2): Convert clearing a register after a flag setting
12703         instruction into an xor followed by the original flag setter.
12705 2020-08-06  Gerald Pfeifer  <gerald@pfeifer.com>
12707         * ipa-fnsummary.c (INCLUDE_VECTOR): Define.
12708         Remove direct inclusion of <vector>.
12710 2020-08-06  Kewen Lin  <linkw@gcc.gnu.org>
12712         * config/rs6000/rs6000.c (rs6000_adjust_vect_cost_per_loop): New
12713         function.
12714         (rs6000_finish_cost): Call rs6000_adjust_vect_cost_per_loop.
12715         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Add cost
12716         modeling for vector with length.
12717         (vect_rgroup_iv_might_wrap_p): New function, factored out from...
12718         * tree-vect-loop-manip.c (vect_set_loop_controls_directly): ...this.
12719         Update function comment.
12720         * tree-vect-stmts.c (vect_gen_len): Update function comment.
12721         * tree-vectorizer.h (vect_rgroup_iv_might_wrap_p): New declare.
12723 2020-08-06  Kewen Lin  <linkw@linux.ibm.com>
12725         * tree-vectorizer.c (try_vectorize_loop_1): Skip the epilogue loops
12726         for dbgcnt check.
12728 2020-08-05  Marc Glisse  <marc.glisse@inria.fr>
12730         PR tree-optimization/95906
12731         PR target/70314
12732         * match.pd ((c ? a : b) op d, (c ? a : b) op (c ? d : e),
12733         (v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): New transformations.
12734         (op (c ? a : b)): Update to match the new transformations.
12736 2020-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12738         PR target/96191
12739         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Set the
12740         CC register directly, instead of a GPR.  Replace the original GPR
12741         destination with an extra scratch register.  Zero out operand 3
12742         after use.
12743         (stack_protect_test): Update accordingly.
12745 2020-08-05  Richard Sandiford  <richard.sandiford@arm.com>
12747         * config/aarch64/aarch64.md (load_pair_sw_<SX:mode><SX2:mode>)
12748         (load_pair_dw_<DX:mode><DX2:mode>, load_pair_dw_tftf)
12749         (store_pair_sw_<SX:mode><SX2:mode>)
12750         (store_pair_dw_<DX:mode><DX2:mode>, store_pair_dw_tftf)
12751         (*load_pair_extendsidi2_aarch64)
12752         (*load_pair_zero_extendsidi2_aarch64): Use %z for the memory operand.
12753         * config/aarch64/aarch64-simd.md (load_pair<DREG:mode><DREG2:mode>)
12754         (vec_store_pair<DREG:mode><DREG2:mode>, load_pair<VQ:mode><VQ2:mode>)
12755         (vec_store_pair<VQ:mode><VQ2:mode>): Likewise.
12757 2020-08-05  Richard Biener  <rguenther@suse.de>
12759         * tree-ssa-loop-im.c (invariantness_dom_walker): Remove.
12760         (invariantness_dom_walker::before_dom_children): Move to ...
12761         (compute_invariantness): ... this function.
12762         (move_computations): Inline ...
12763         (tree_ssa_lim): ... here, share RPO order and avoid some
12764         cfun references.
12765         (analyze_memory_references): Remove sorting of location
12766         lists, instead assert they are sorted already when checking.
12767         (prev_flag_edges): Remove.
12768         (execute_sm_if_changed): Pass down and adjust prev edge state.
12769         (execute_sm_exit): Likewise.
12770         (hoist_memory_references): Likewise.  Commit edge insertions
12771         of each processed exit.
12772         (store_motion_loop): Do not commit edge insertions on all
12773         edges in the function.
12774         (tree_ssa_lim_initialize): Do not call alloc_aux_for_edges.
12775         (tree_ssa_lim_finalize): Do not call free_aux_for_edges.
12777 2020-08-05  Richard Biener  <rguenther@suse.de>
12779         * genmatch.c (fail_label): New global.
12780         (expr::gen_transform): Branch to fail_label instead of
12781         returning.  Fix indent of call argument checking.
12782         (dt_simplify::gen_1): Compute and emit fail_label, branch
12783         to it instead of returning early.
12785 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
12787         * omp-expand.c (expand_omp_for): Don't disallow combined non-rectangular
12788         loops.
12790 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
12792         PR middle-end/96459
12793         * omp-low.c (lower_omp_taskreg): Call lower_reduction_clauses even in
12794         for host teams.
12796 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
12798         * omp-expand.c (expand_omp_for_init_counts): Remember
12799         first_inner_iterations, factor and n1o from the number of iterations
12800         computation in *fd.
12801         (expand_omp_for_init_vars): Use more efficient logical iteration number
12802         to actual iterator values computation even for non-rectangular loops
12803         where number of loop iterations could not be computed at compile time.
12805 2020-08-05  2020-08-04  Carl Love  <cel@us.ibm.com>
12807         * config/rs6000/altivec.h (vec_blendv, vec_permx): Add define.
12808         * config/rs6000/altivec.md (UNSPEC_XXBLEND, UNSPEC_XXPERMX.): New
12809         unspecs.
12810         (VM3): New define_mode.
12811         (VM3_char): New define_attr.
12812         (xxblend_<mode> mode VM3): New define_insn.
12813         (xxpermx): New define_expand.
12814         (xxpermx_inst): New define_insn.
12815         * config/rs6000/rs6000-builtin.def (VXXBLEND_V16QI, VXXBLEND_V8HI,
12816         VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): New
12817         BU_P10V_3 definitions.
12818         (XXBLEND): New BU_P10_OVERLOAD_3 definition.
12819         (XXPERMX): New BU_P10_OVERLOAD_4 definition.
12820         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12821         (P10_BUILTIN_VXXPERMX): Add if statement.
12822         * config/rs6000/rs6000-call.c (P10_BUILTIN_VXXBLEND_V16QI,
12823         P10_BUILTIN_VXXBLEND_V8HI, P10_BUILTIN_VXXBLEND_V4SI,
12824         P10_BUILTIN_VXXBLEND_V2DI, P10_BUILTIN_VXXBLEND_V4SF,
12825         P10_BUILTIN_VXXBLEND_V2DF, P10_BUILTIN_VXXPERMX): Define
12826         overloaded arguments.
12827         (rs6000_expand_quaternop_builtin): Add if case for CODE_FOR_xxpermx.
12828         (builtin_quaternary_function_type): Add v16uqi_type and xxpermx_type
12829         variables, add case statement for P10_BUILTIN_VXXPERMX.
12830         (builtin_function_type): Add case statements for
12831         P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
12832         P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI.
12833         * doc/extend.texi: Add documentation for vec_blendv and vec_permx.
12835 2020-08-05  2020-08-04  Carl Love  <cel@us.ibm.com>
12837         * config/rs6000/altivec.h (vec_splati, vec_splatid, vec_splati_ins):
12838         Add defines.
12839         * config/rs6000/altivec.md (UNSPEC_XXSPLTIW, UNSPEC_XXSPLTID,
12840         UNSPEC_XXSPLTI32DX): New.
12841         (vxxspltiw_v4si, vxxspltiw_v4sf_inst, vxxspltidp_v2df_inst,
12842         vxxsplti32dx_v4si_inst, vxxsplti32dx_v4sf_inst): New define_insn.
12843         (vxxspltiw_v4sf, vxxspltidp_v2df, vxxsplti32dx_v4si,
12844         vxxsplti32dx_v4sf.): New define_expands.
12845         * config/rs6000/predicates.md (u1bit_cint_operand,
12846         s32bit_cint_operand, c32bit_cint_operand): New predicates.
12847         * config/rs6000/rs6000-builtin.def (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF,
12848         VXXSPLTID): New definitions.
12849         (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF): New BU_P10V_3
12850         definitions.
12851         (XXSPLTIW, XXSPLTID): New definitions.
12852         (XXSPLTI32DX): Add definitions.
12853         * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XXSPLTIW,
12854         P10_BUILTIN_VEC_XXSPLTID, P10_BUILTIN_VEC_XXSPLTI32DX):
12855         New definitions.
12856         * config/rs6000/rs6000-protos.h (rs6000_constF32toI32): New extern
12857         declaration.
12858         * config/rs6000/rs6000.c (rs6000_constF32toI32): New function.
12859         * doc/extend.texi: Add documentation for vec_splati,
12860         vec_splatid, and vec_splati_ins.
12862 2020-08-05  2020-08-04  Carl Love  <cel@us.ibm.com>
12864         * config/rs6000/altivec.h (vec_sldb, vec_srdb): New defines.
12865         * config/rs6000/altivec.md (UNSPEC_SLDB, UNSPEC_SRDB): New.
12866         (SLDB_lr): New attribute.
12867         (VSHIFT_DBL_LR): New iterator.
12868         (vs<SLDB_lr>db_<mode>): New define_insn.
12869         * config/rs6000/rs6000-builtin.def (VSLDB_V16QI, VSLDB_V8HI,
12870         VSLDB_V4SI, VSLDB_V2DI, VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI,
12871         VSRDB_V2DI): New BU_P10V_3 definitions.
12872         (SLDB, SRDB): New BU_P10_OVERLOAD_3 definitions.
12873         * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_SLDB,
12874         P10_BUILTIN_VEC_SRDB): New definitions.
12875         (rs6000_expand_ternop_builtin) [CODE_FOR_vsldb_v16qi,
12876         CODE_FOR_vsldb_v8hi, CODE_FOR_vsldb_v4si, CODE_FOR_vsldb_v2di,
12877         CODE_FOR_vsrdb_v16qi, CODE_FOR_vsrdb_v8hi, CODE_FOR_vsrdb_v4si,
12878         CODE_FOR_vsrdb_v2di]: Add clauses.
12879         * doc/extend.texi: Add description for vec_sldb and vec_srdb.
12881 2020-08-05  2020-08-04 Carl Love  <cel@us.ibm.com>
12883         * config/rs6000/altivec.h: Add define for vec_replace_elt and
12884         vec_replace_unaligned.
12885         * config/rs6000/vsx.md (UNSPEC_REPLACE_ELT, UNSPEC_REPLACE_UN): New
12886         unspecs.
12887         (REPLACE_ELT): New mode iterator.
12888         (REPLACE_ELT_char, REPLACE_ELT_sh, REPLACE_ELT_max): New mode attributes.
12889         (vreplace_un_<mode>, vreplace_elt_<mode>_inst): New.
12890         * config/rs6000/rs6000-builtin.def (VREPLACE_ELT_V4SI,
12891         VREPLACE_ELT_UV4SI, VREPLACE_ELT_V4SF, VREPLACE_ELT_UV2DI,
12892         VREPLACE_ELT_V2DF, VREPLACE_UN_V4SI, VREPLACE_UN_UV4SI,
12893         VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
12894         VREPLACE_UN_V2DF, (REPLACE_ELT, REPLACE_UN, VREPLACE_ELT_V2DI): New builtin
12895         entries.
12896         * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_REPLACE_ELT,
12897         P10_BUILTIN_VEC_REPLACE_UN): New builtin argument definitions.
12898         (rs6000_expand_quaternop_builtin): Add 3rd argument checks for
12899         CODE_FOR_vreplace_elt_v4si, CODE_FOR_vreplace_elt_v4sf,
12900         CODE_FOR_vreplace_un_v4si, CODE_FOR_vreplace_un_v4sf.
12901         (builtin_function_type) [P10_BUILTIN_VREPLACE_ELT_UV4SI,
12902         P10_BUILTIN_VREPLACE_ELT_UV2DI, P10_BUILTIN_VREPLACE_UN_UV4SI,
12903         P10_BUILTIN_VREPLACE_UN_UV2DI]: New cases.
12904         * doc/extend.texi: Add description for vec_replace_elt and
12905         vec_replace_unaligned builtins.
12907 2020-08-05  2020-08-04  Carl Love  <cel@us.ibm.com>
12909         * config/rs6000/altivec.h (vec_insertl, vec_inserth): New defines.
12910         * config/rs6000/rs6000-builtin.def (VINSERTGPRBL, VINSERTGPRHL,
12911         VINSERTGPRWL, VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL,
12912         VINSERTGPRBR, VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR,
12913         VINSERTVPRHR, VINSERTVPRWR): New builtins.
12914         (INSERTL, INSERTH): New builtins.
12915         * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_INSERTL,
12916         P10_BUILTIN_VEC_INSERTH): New overloaded definitions.
12917         (P10_BUILTIN_VINSERTGPRBL, P10_BUILTIN_VINSERTGPRHL,
12918         P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
12919         P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
12920         P10_BUILTIN_VINSERTVPRWL): Add case entries.
12921         * config/rs6000/vsx.md (define_c_enum): Add UNSPEC_INSERTL,
12922         UNSPEC_INSERTR.
12923         (define_expand): Add vinsertvl_<mode>, vinsertvr_<mode>,
12924         vinsertgl_<mode>, vinsertgr_<mode>, mode is VI2.
12925         (define_ins): vinsertvl_internal_<mode>, vinsertvr_internal_<mode>,
12926         vinsertgl_internal_<mode>, vinsertgr_internal_<mode>, mode VEC_I.
12927         * doc/extend.texi: Add documentation for vec_insertl, vec_inserth.
12929 2020-08-05  2020-08-04  Carl Love  <cel@us.ibm.com>
12931         * config/rs6000/altivec.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
12932         (vextractl<mode>, vextractr<mode>)
12933         (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
12934         (VI2): Move to ...
12935         * config/rs6000/vsx.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
12936         (vextractl<mode>, vextractr<mode>)
12937         (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
12938         (VI2):  ..here.
12939         * doc/extend.texi: Update documentation for vec_extractl.
12940         Replace builtin name vec_extractr with vec_extracth.  Update
12941         description of vec_extracth.
12943 2020-08-04  Jim Wilson  <jimw@sifive.com>
12945         * doc/invoke.texi (AArch64 Options): Delete duplicate
12946         -mstack-protector-guard docs.
12948 2020-08-04  Roger Sayle  <roger@nextmovesoftware.com>
12950         * config/nvptx/nvptx.md (smulhi3_highpart, smulsi3_highpart)
12951         (umulhi3_highpart, umulsi3_highpart): New instructions.
12953 2020-08-04  Andrew Stubbs  <ams@codesourcery.com>
12955         * config/gcn/gcn-run.c (R_AMDGPU_NONE): Delete.
12956         (R_AMDGPU_ABS32_LO): Delete.
12957         (R_AMDGPU_ABS32_HI): Delete.
12958         (R_AMDGPU_ABS64): Delete.
12959         (R_AMDGPU_REL32): Delete.
12960         (R_AMDGPU_REL64): Delete.
12961         (R_AMDGPU_ABS32): Delete.
12962         (R_AMDGPU_GOTPCREL): Delete.
12963         (R_AMDGPU_GOTPCREL32_LO): Delete.
12964         (R_AMDGPU_GOTPCREL32_HI): Delete.
12965         (R_AMDGPU_REL32_LO): Delete.
12966         (R_AMDGPU_REL32_HI): Delete.
12967         (reserved): Delete.
12968         (R_AMDGPU_RELATIVE64): Delete.
12970 2020-08-04  Omar Tahir  <omar.tahir@arm.com>
12972         * config/arm/arm-cpus.in (armv8.1-m.main): Tune for Cortex-M55.
12974 2020-08-04  Hu Jiangping  <hujiangping@cn.fujitsu.com>
12976         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Delete
12977         redundant extra_cost variable.
12979 2020-08-04  Zhiheng Xie  <xiezhiheng@huawei.com>
12981         * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
12982         Use FLOAT_MODE_P macro instead of enumerating all floating-point
12983         modes and add global flag FLAG_AUTO_FP.
12985 2020-08-04  Jakub Jelinek  <jakub@redhat.com>
12987         * doc/extend.texi (symver): Add @cindex for symver function attribute.
12989 2020-08-04  Marc Glisse  <marc.glisse@inria.fr>
12991         PR tree-optimization/95433
12992         * match.pd (X * C1 == C2): New transformation.
12994 2020-08-04  Aldy Hernandez  <aldyh@redhat.com>
12996         * gimple-ssa-sprintf.c (get_int_range): Adjust for irange API.
12997         (format_integer): Same.
12998         (handle_printf_call): Same.
13000 2020-08-04  Andrew Stubbs  <ams@codesourcery.com>
13002         * config/gcn/gcn.md ("<expander>ti3"): New.
13004 2020-08-04  Richard Biener  <rguenther@suse.de>
13006         PR tree-optimization/88240
13007         * tree-ssa-sccvn.h (vn_reference_s::punned): New flag.
13008         * tree-ssa-sccvn.c (vn_reference_insert): Initialize punned.
13009         (vn_reference_insert_pieces): Likewise.
13010         (visit_reference_op_call): Likewise.
13011         (visit_reference_op_load): Track whether a ref was punned.
13012         * tree-ssa-pre.c (do_hoist_insertion): Refuse to perform hoist
13013         insertion on punned floating point loads.
13015 2020-08-04  Sudakshina Das  <sudi.das@arm.com>
13017         * config/aarch64/aarch64.c (aarch64_gen_store_pair): Add case
13018         for E_V4SImode.
13019         (aarch64_gen_load_pair): Likewise.
13020         (aarch64_copy_one_block_and_progress_pointers): Handle 256 bit copy.
13021         (aarch64_expand_cpymem): Expand copy_limit to 256bits where
13022         appropriate.
13024 2020-08-04  Andrea Corallo  <andrea.corallo@arm.com>
13026         * config/aarch64/aarch64.md (aarch64_fjcvtzs): Add missing
13027         clobber.
13028         * doc/sourcebuild.texi (aarch64_fjcvtzs_hw) Document new
13029         target supports option.
13031 2020-08-04  Tom de Vries  <tdevries@suse.de>
13033         PR target/96428
13034         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Handle V2SI/V2DI.
13036 2020-08-04  Jakub Jelinek  <jakub@redhat.com>
13038         PR middle-end/96426
13039         * tree-vect-generic.c (expand_vector_conversion): Replace .VEC_CONVERT
13040         call with GIMPLE_NOP if there is no lhs.
13042 2020-08-04  Jakub Jelinek  <jakub@redhat.com>
13044         PR debug/96354
13045         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Add IS_DEBUG
13046         argument.  Return false instead of gcc_unreachable if it is true and
13047         get_addr_base_and_unit_offset returns NULL.
13048         (fold_stmt_1) <case GIMPLE_DEBUG>: Adjust caller.
13050 2020-08-04  Aldy Hernandez  <aldyh@redhat.com>
13052         * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional):
13053         Call is_gimple_min_invariant dropped from previous patch.
13055 2020-08-04  Jakub Jelinek  <jakub@redhat.com>
13057         * omp-expand.c (expand_omp_for_init_counts): For triangular loops
13058         compute number of iterations at runtime more efficiently.
13059         (expand_omp_for_init_vars): Adjust immediate dominators.
13060         (extract_omp_for_update_vars): Likewise.
13062 2020-08-04  Aldy Hernandez  <aldyh@redhat.com>
13064         * vr-values.c (simplify_using_ranges::two_valued_val_range_p):
13065         Use irange API.
13067 2020-08-04  Aldy Hernandez  <aldyh@redhat.com>
13069         * vr-values.c (simplify_conversion_using_ranges): Convert to irange API.
13071 2020-08-04  Aldy Hernandez  <aldyh@redhat.com>
13073         * vr-values.c (test_for_singularity): Use irange API.
13074         (simplify_using_ranges::simplify_cond_using_ranges_1): Do not
13075         special case VR_RANGE.
13077 2020-08-04  Aldy Hernandez  <aldyh@redhat.com>
13079         * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional): Adjust
13080         for irange API.
13082 2020-08-04  Aldy Hernandez  <aldyh@redhat.com>
13084         * vr-values.c (simplify_using_ranges::op_with_boolean_value_range_p): Adjust
13085         for irange API.
13087 2020-08-04  Aldy Hernandez  <aldyh@redhat.com>
13089         * tree-ssanames.c (get_range_info): Use irange instead of value_range.
13090         * tree-ssanames.h (get_range_info): Same.
13092 2020-08-04  Aldy Hernandez  <aldyh@redhat.com>
13094         * fold-const.c (expr_not_equal_to): Adjust for irange API.
13096 2020-08-04  Aldy Hernandez  <aldyh@redhat.com>
13098         * builtins.c (determine_block_size): Remove ad-hoc range canonicalization.
13100 2020-08-04  Xionghu Luo  <luoxhu@linux.ibm.com>
13102         PR rtl-optimization/71309
13103         * dse.c (find_shift_sequence): Use subreg of shifted from high part
13104         register to avoid loading from address.
13106 2020-08-03  Jonathan Wakely  <jwakely@redhat.com>
13108         * doc/cpp.texi (Variadic Macros): Use the exact ... token in
13109         code examples.
13111 2020-08-03  Nathan Sidwell  <nathan@acm.org>
13113         * doc/invoke.texi: Refer to c++20
13115 2020-08-03  Julian Brown  <julian@codesourcery.com>
13116             Thomas Schwinge  <thomas@codesourcery.com>
13118         * gimplify.c (gimplify_omp_target_update): Allow GOMP_MAP_TO_PSET
13119         without a preceding data-movement mapping.
13121 2020-08-03  Iain Sandoe  <iain@sandoe.co.uk>
13123         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): UNDEF before
13124         use.
13125         (DEF_MIN_OSX_VERSION): Only define if there's no existing
13126         def.
13128 2020-08-03  Iain Sandoe  <iain@sandoe.co.uk>
13130         * config/darwin.c (IN_TARGET_CODE): Remove.
13131         (darwin_mergeable_constant_section): Handle poly-int machine modes.
13132         (machopic_select_rtx_section): Likewise.
13134 2020-08-03  Aldy Hernandez  <aldyh@redhat.com>
13136         PR tree-optimization/96430
13137         * range-op.cc (operator_tests): Do not shift by 31 on targets with
13138         integer's smaller than 32 bits.
13140 2020-08-03  Martin Jambor  <mjambor@suse.cz>
13142         * hsa-brig-format.h: Moved to brig/brigfrontend.
13143         * hsa-brig.c: Removed.
13144         * hsa-builtins.def: Likewise.
13145         * hsa-common.c: Likewise.
13146         * hsa-common.h: Likewise.
13147         * hsa-dump.c: Likewise.
13148         * hsa-gen.c: Likewise.
13149         * hsa-regalloc.c: Likewise.
13150         * ipa-hsa.c: Likewise.
13151         * omp-grid.c: Likewise.
13152         * omp-grid.h: Likewise.
13153         * Makefile.in (BUILTINS_DEF): Remove hsa-builtins.def.
13154         (OBJS): Remove hsa-common.o, hsa-gen.o, hsa-regalloc.o, hsa-brig.o,
13155         hsa-dump.o, ipa-hsa.c and omp-grid.o.
13156         (GTFILES): Removed hsa-common.c and omp-expand.c.
13157         * builtins.def: Remove processing of hsa-builtins.def.
13158         (DEF_HSA_BUILTIN): Remove.
13159         * common.opt (flag_disable_hsa): Remove.
13160         (-Whsa): Ignore.
13161         * config.in (ENABLE_HSA): Removed.
13162         * configure.ac: Removed handling configuration for hsa offloading.
13163         (ENABLE_HSA): Removed.
13164         * configure: Regenerated.
13165         * doc/install.texi (--enable-offload-targets): Remove hsa from the
13166         example.
13167         (--with-hsa-runtime): Reword to reference any HSA run-time, not
13168         specifically HSA offloading.
13169         * doc/invoke.texi (Option Summary): Remove -Whsa.
13170         (Warning Options): Likewise.
13171         (Optimize Options): Remove hsa-gen-debug-stores.
13172         * doc/passes.texi (Regular IPA passes): Remove section on IPA HSA
13173         pass.
13174         * gimple-low.c (lower_stmt): Remove GIMPLE_OMP_GRID_BODY case.
13175         * gimple-pretty-print.c (dump_gimple_omp_for): Likewise.
13176         (dump_gimple_omp_block): Likewise.
13177         (pp_gimple_stmt_1): Likewise.
13178         * gimple-walk.c (walk_gimple_stmt): Likewise.
13179         * gimple.c (gimple_build_omp_grid_body): Removed function.
13180         (gimple_copy): Remove GIMPLE_OMP_GRID_BODY case.
13181         * gimple.def (GIMPLE_OMP_GRID_BODY): Removed.
13182         * gimple.h (gf_mask): Removed GF_OMP_PARALLEL_GRID_PHONY,
13183         OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY,
13184         GF_OMP_FOR_GRID_INTRA_GROUP, GF_OMP_FOR_GRID_GROUP_ITER and
13185         GF_OMP_TEAMS_GRID_PHONY.  Renumbered GF_OMP_FOR_KIND_SIMD and
13186         GF_OMP_TEAMS_HOST.
13187         (gimple_build_omp_grid_body): Removed declaration.
13188         (gimple_has_substatements): Remove GIMPLE_OMP_GRID_BODY case.
13189         (gimple_omp_for_grid_phony): Removed.
13190         (gimple_omp_for_set_grid_phony): Likewise.
13191         (gimple_omp_for_grid_intra_group): Likewise.
13192         (gimple_omp_for_grid_intra_group): Likewise.
13193         (gimple_omp_for_grid_group_iter): Likewise.
13194         (gimple_omp_for_set_grid_group_iter): Likewise.
13195         (gimple_omp_parallel_grid_phony): Likewise.
13196         (gimple_omp_parallel_set_grid_phony): Likewise.
13197         (gimple_omp_teams_grid_phony): Likewise.
13198         (gimple_omp_teams_set_grid_phony): Likewise.
13199         (CASE_GIMPLE_OMP): Remove GIMPLE_OMP_GRID_BODY case.
13200         * lto-section-in.c (lto_section_name): Removed hsa.
13201         * lto-streamer.h (lto_section_type): Removed LTO_section_ipa_hsa.
13202         * lto-wrapper.c (compile_images_for_offload_targets): Remove special
13203         handling of hsa.
13204         * omp-expand.c: Do not include hsa-common.h and gt-omp-expand.h.
13205         (parallel_needs_hsa_kernel_p): Removed.
13206         (grid_launch_attributes_trees): Likewise.
13207         (grid_launch_attributes_trees): Likewise.
13208         (grid_create_kernel_launch_attr_types): Likewise.
13209         (grid_insert_store_range_dim): Likewise.
13210         (grid_get_kernel_launch_attributes): Likewise.
13211         (get_target_arguments): Remove code passing HSA grid sizes.
13212         (grid_expand_omp_for_loop): Remove.
13213         (grid_arg_decl_map): Likewise.
13214         (grid_remap_kernel_arg_accesses): Likewise.
13215         (grid_expand_target_grid_body): Likewise.
13216         (expand_omp): Remove call to grid_expand_target_grid_body.
13217         (omp_make_gimple_edges): Remove GIMPLE_OMP_GRID_BODY case.
13218         * omp-general.c: Do not include hsa-common.h.
13219         (omp_maybe_offloaded): Do not check for HSA offloading.
13220         (omp_context_selector_matches): Likewise.
13221         * omp-low.c: Do not include hsa-common.h and omp-grid.h.
13222         (build_outer_var_ref): Remove handling of GIMPLE_OMP_GRID_BODY.
13223         (scan_sharing_clauses): Remove handling of OMP_CLAUSE__GRIDDIM_.
13224         (scan_omp_parallel): Remove handling of the phoney variant.
13225         (check_omp_nesting_restrictions): Remove handling of
13226         GIMPLE_OMP_GRID_BODY and GF_OMP_FOR_KIND_GRID_LOOP.
13227         (scan_omp_1_stmt): Remove handling of GIMPLE_OMP_GRID_BODY.
13228         (lower_omp_for_lastprivate): Remove handling of gridified loops.
13229         (lower_omp_for): Remove phony loop handling.
13230         (lower_omp_taskreg): Remove phony construct handling.
13231         (lower_omp_teams): Likewise.
13232         (lower_omp_grid_body): Removed.
13233         (lower_omp_1): Remove GIMPLE_OMP_GRID_BODY case.
13234         (execute_lower_omp): Do not call omp_grid_gridify_all_targets.
13235         * opts.c (common_handle_option): Do not handle hsa when processing
13236         OPT_foffload_.
13237         * params.opt (hsa-gen-debug-stores): Remove.
13238         * passes.def: Remove pass_ipa_hsa and pass_gen_hsail.
13239         * timevar.def: Remove TV_IPA_HSA.
13240         * toplev.c: Do not include hsa-common.h.
13241         (compile_file): Do not call hsa_output_brig.
13242         * tree-core.h (enum omp_clause_code): Remove OMP_CLAUSE__GRIDDIM_.
13243         (tree_omp_clause): Remove union field dimension.
13244         * tree-nested.c (convert_nonlocal_omp_clauses): Remove the
13245         OMP_CLAUSE__GRIDDIM_ case.
13246         (convert_local_omp_clauses): Likewise.
13247         * tree-pass.h (make_pass_gen_hsail): Remove declaration.
13248         (make_pass_ipa_hsa): Likewise.
13249         * tree-pretty-print.c (dump_omp_clause): Remove GIMPLE_OMP_GRID_BODY
13250         case.
13251         * tree.c (omp_clause_num_ops): Remove the element corresponding to
13252         OMP_CLAUSE__GRIDDIM_.
13253         (omp_clause_code_name): Likewise.
13254         (walk_tree_1): Remove GIMPLE_OMP_GRID_BODY case.
13255         * tree.h (OMP_CLAUSE__GRIDDIM__DIMENSION): Remove.
13256         (OMP_CLAUSE__GRIDDIM__SIZE): Likewise.
13257         (OMP_CLAUSE__GRIDDIM__GROUP): Likewise.
13259 2020-08-03  Bu Le  <bule1@huawei.com>
13261         * config/aarch64/aarch64-sve.md (sub<mode>3): Add support for
13262         unpacked vectors.
13264 2020-08-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13266         * config/msp430/msp430.h (ASM_SPEC): Don't pass on "-md" option.
13268 2020-08-03  Yunde Zhong  <zhongyunde@huawei.com>
13270         PR rtl-optimization/95696
13271         * regrename.c (regrename_analyze): New param include_all_block_p
13272         with default value TRUE.  If set to false, avoid disrupting SMS
13273         schedule.
13274         * regrename.h (regrename_analyze): Adjust prototype.
13276 2020-08-03  Wei Wentao  <weiwt.fnst@cn.fujitsu.com>
13278         * doc/tm.texi.in (VECTOR_STORE_FLAG_VALUE): Fix a typo.
13279         * doc/tm.texi: Regenerate.
13281 2020-08-03  Richard Sandiford  <richard.sandiford@arm.com>
13283         * doc/invoke.texi: Add missing comma after octeontx2f95mm entry.
13285 2020-08-03  Qian jianhua  <qianjh@cn.fujitsu.com>
13287         * config/aarch64/aarch64-cores.def (a64fx): New core.
13288         * config/aarch64/aarch64-tune.md: Regenerated.
13289         * config/aarch64/aarch64.c (a64fx_prefetch_tune, a64fx_tunings): New.
13290         * doc/invoke.texi: Add a64fx to the list.
13292 2020-08-03  Roger Sayle  <roger@nextmovesoftware.com>
13294         PR rtl-optimization/61494
13295         * simplify-rtx.c (simplify_binary_operation_1) [MINUS]: Don't
13296         simplify x - 0.0 with -fsignaling-nans.
13298 2020-08-03  Roger Sayle  <roger@nextmovesoftware.com>
13300         * genmatch.c (decision_tree::gen): Emit stub functions for
13301         tree code operand counts that have no simplifications.
13302         (main): Correct comment typo.
13304 2020-08-03  Jonathan Wakely  <jwakely@redhat.com>
13306         * gimple-ssa-sprintf.c: Fix typos in comments.
13308 2020-08-03  Tamar Christina  <tamar.christina@arm.com>
13310         * config/aarch64/driver-aarch64.c (readline): Check return value fgets.
13312 2020-08-03  Richard Biener  <rguenther@suse.de>
13314         * doc/match-and-simplify.texi: Amend accordingly.
13316 2020-08-03  Richard Biener  <rguenther@suse.de>
13318         * genmatch.c (parser::gimple): New.
13319         (parser::parser): Initialize gimple flag member.
13320         (parser::parse_expr): Error on ! operator modifier when
13321         not targeting GIMPLE.
13322         (main): Pass down gimple flag to parser ctor.
13324 2020-08-03  Aldy Hernandez  <aldyh@redhat.com>
13326         * Makefile.in (GTFILES): Move value-range.h up.
13327         * gengtype-lex.l: Set yylval to handle GTY markers on templates.
13328         * ipa-cp.c (initialize_node_lattices): Call value_range
13329         constructor.
13330         (ipcp_propagate_stage): Use in-place new so value_range construct
13331         is called.
13332         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use std
13333         vec instead of GCC's vec<>.
13334         (evaluate_properties_for_edge): Adjust for std vec.
13335         (ipa_fn_summary_t::duplicate): Same.
13336         (estimate_ipcp_clone_size_and_time): Same.
13337         * ipa-prop.c (ipa_get_value_range): Use in-place new for
13338         value_range.
13339         * ipa-prop.h (struct GTY): Remove class keyword for m_vr.
13340         * range-op.cc (empty_range_check): Rename to...
13341         (empty_range_varying): ...this and adjust for varying.
13342         (undefined_shift_range_check): Adjust for irange.
13343         (range_operator::wi_fold): Same.
13344         (range_operator::fold_range): Adjust for irange.  Special case
13345         single pairs for performance.
13346         (range_operator::op1_range): Adjust for irange.
13347         (range_operator::op2_range): Same.
13348         (value_range_from_overflowed_bounds): Same.
13349         (value_range_with_overflow): Same.
13350         (create_possibly_reversed_range): Same.
13351         (range_true): Same.
13352         (range_false): Same.
13353         (range_true_and_false): Same.
13354         (get_bool_state):  Adjust for irange and tweak for performance.
13355         (operator_equal::fold_range): Adjust for irange.
13356         (operator_equal::op1_range): Same.
13357         (operator_equal::op2_range): Same.
13358         (operator_not_equal::fold_range): Same.
13359         (operator_not_equal::op1_range): Same.
13360         (operator_not_equal::op2_range): Same.
13361         (build_lt): Same.
13362         (build_le): Same.
13363         (build_gt): Same.
13364         (build_ge): Same.
13365         (operator_lt::fold_range): Same.
13366         (operator_lt::op1_range): Same.
13367         (operator_lt::op2_range): Same.
13368         (operator_le::fold_range): Same.
13369         (operator_le::op1_range): Same.
13370         (operator_le::op2_range): Same.
13371         (operator_gt::fold_range): Same.
13372         (operator_gt::op1_range): Same.
13373         (operator_gt::op2_range): Same.
13374         (operator_ge::fold_range): Same.
13375         (operator_ge::op1_range): Same.
13376         (operator_ge::op2_range): Same.
13377         (operator_plus::wi_fold): Same.
13378         (operator_plus::op1_range): Same.
13379         (operator_plus::op2_range): Same.
13380         (operator_minus::wi_fold): Same.
13381         (operator_minus::op1_range): Same.
13382         (operator_minus::op2_range): Same.
13383         (operator_min::wi_fold): Same.
13384         (operator_max::wi_fold): Same.
13385         (cross_product_operator::wi_cross_product): Same.
13386         (operator_mult::op1_range): New.
13387         (operator_mult::op2_range): New.
13388         (operator_mult::wi_fold): Adjust for irange.
13389         (operator_div::wi_fold): Same.
13390         (operator_exact_divide::op1_range): Same.
13391         (operator_lshift::fold_range): Same.
13392         (operator_lshift::wi_fold): Same.
13393         (operator_lshift::op1_range): New.
13394         (operator_rshift::op1_range): New.
13395         (operator_rshift::fold_range): Adjust for irange.
13396         (operator_rshift::wi_fold): Same.
13397         (operator_cast::truncating_cast_p): Abstract out from
13398         operator_cast::fold_range.
13399         (operator_cast::fold_range): Adjust for irange and tweak for
13400         performance.
13401         (operator_cast::inside_domain_p): Abstract out from fold_range.
13402         (operator_cast::fold_pair): Same.
13403         (operator_cast::op1_range): Use abstracted methods above.  Adjust
13404         for irange and tweak for performance.
13405         (operator_logical_and::fold_range): Adjust for irange.
13406         (operator_logical_and::op1_range): Same.
13407         (operator_logical_and::op2_range): Same.
13408         (unsigned_singleton_p): New.
13409         (operator_bitwise_and::remove_impossible_ranges): New.
13410         (operator_bitwise_and::fold_range): New.
13411         (wi_optimize_and_or):  Adjust for irange.
13412         (operator_bitwise_and::wi_fold): Same.
13413         (set_nonzero_range_from_mask): New.
13414         (operator_bitwise_and::simple_op1_range_solver): New.
13415         (operator_bitwise_and::op1_range): Adjust for irange.
13416         (operator_bitwise_and::op2_range): Same.
13417         (operator_logical_or::fold_range): Same.
13418         (operator_logical_or::op1_range): Same.
13419         (operator_logical_or::op2_range): Same.
13420         (operator_bitwise_or::wi_fold): Same.
13421         (operator_bitwise_or::op1_range): Same.
13422         (operator_bitwise_or::op2_range): Same.
13423         (operator_bitwise_xor::wi_fold): Same.
13424         (operator_bitwise_xor::op1_range): New.
13425         (operator_bitwise_xor::op2_range): New.
13426         (operator_trunc_mod::wi_fold):  Adjust for irange.
13427         (operator_logical_not::fold_range): Same.
13428         (operator_logical_not::op1_range): Same.
13429         (operator_bitwise_not::fold_range): Same.
13430         (operator_bitwise_not::op1_range): Same.
13431         (operator_cst::fold_range): Same.
13432         (operator_identity::fold_range): Same.
13433         (operator_identity::op1_range): Same.
13434         (class operator_unknown): New.
13435         (operator_unknown::fold_range): New.
13436         (class operator_abs): Adjust for irange.
13437         (operator_abs::wi_fold): Same.
13438         (operator_abs::op1_range): Same.
13439         (operator_absu::wi_fold): Same.
13440         (class operator_negate): Same.
13441         (operator_negate::fold_range): Same.
13442         (operator_negate::op1_range): Same.
13443         (operator_addr_expr::fold_range): Same.
13444         (operator_addr_expr::op1_range): Same.
13445         (pointer_plus_operator::wi_fold): Same.
13446         (pointer_min_max_operator::wi_fold): Same.
13447         (pointer_and_operator::wi_fold): Same.
13448         (pointer_or_operator::op1_range): New.
13449         (pointer_or_operator::op2_range): New.
13450         (pointer_or_operator::wi_fold):  Adjust for irange.
13451         (integral_table::integral_table): Add entries for IMAGPART_EXPR
13452         and POINTER_DIFF_EXPR.
13453         (range_cast):  Adjust for irange.
13454         (build_range3): New.
13455         (range3_tests): New.
13456         (widest_irange_tests): New.
13457         (multi_precision_range_tests): New.
13458         (operator_tests): New.
13459         (range_tests): New.
13460         * range-op.h (class range_operator): Adjust for irange.
13461         (range_cast): Same.
13462         * tree-vrp.c (range_fold_binary_symbolics_p): Adjust for irange and
13463         tweak for performance.
13464         (range_fold_binary_expr): Same.
13465         (masked_increment): Change to extern.
13466         * tree-vrp.h (masked_increment): New.
13467         * tree.c (cache_wide_int_in_type_cache): New function abstracted
13468         out from wide_int_to_tree_1.
13469         (wide_int_to_tree_1): Cache 0, 1, and MAX for pointers.
13470         * value-range-equiv.cc (value_range_equiv::deep_copy): Use kind
13471         method.
13472         (value_range_equiv::move): Same.
13473         (value_range_equiv::check): Adjust for irange.
13474         (value_range_equiv::intersect): Same.
13475         (value_range_equiv::union_): Same.
13476         (value_range_equiv::dump): Same.
13477         * value-range.cc (irange::operator=): Same.
13478         (irange::maybe_anti_range): New.
13479         (irange::copy_legacy_range): New.
13480         (irange::set_undefined): Adjust for irange.
13481         (irange::swap_out_of_order_endpoints): Abstract out from set().
13482         (irange::set_varying): Adjust for irange.
13483         (irange::irange_set): New.
13484         (irange::irange_set_anti_range): New.
13485         (irange::set): Adjust for irange.
13486         (value_range::set_nonzero): Move to header file.
13487         (value_range::set_zero): Move to header file.
13488         (value_range::check): Rename to...
13489         (irange::verify_range): ...this.
13490         (value_range::num_pairs): Rename to...
13491         (irange::legacy_num_pairs): ...this, and adjust for irange.
13492         (value_range::lower_bound): Rename to...
13493         (irange::legacy_lower_bound): ...this, and adjust for irange.
13494         (value_range::upper_bound): Rename to...
13495         (irange::legacy_upper_bound): ...this, and adjust for irange.
13496         (value_range::equal_p): Rename to...
13497         (irange::legacy_equal_p): ...this.
13498         (value_range::operator==): Move to header file.
13499         (irange::equal_p): New.
13500         (irange::symbolic_p): Adjust for irange.
13501         (irange::constant_p): Same.
13502         (irange::singleton_p): Same.
13503         (irange::value_inside_range): Same.
13504         (irange::may_contain_p): Same.
13505         (irange::contains_p): Same.
13506         (irange::normalize_addresses): Same.
13507         (irange::normalize_symbolics): Same.
13508         (irange::legacy_intersect): Same.
13509         (irange::legacy_union): Same.
13510         (irange::union_): Same.
13511         (irange::intersect): Same.
13512         (irange::irange_union): New.
13513         (irange::irange_intersect): New.
13514         (subtract_one): New.
13515         (irange::invert): Adjust for irange.
13516         (dump_bound_with_infinite_markers): New.
13517         (irange::dump): Adjust for irange.
13518         (debug): Add irange versions.
13519         (range_has_numeric_bounds_p): Adjust for irange.
13520         (vrp_val_max): Move to header file.
13521         (vrp_val_min): Move to header file.
13522         (DEFINE_INT_RANGE_GC_STUBS): New.
13523         (DEFINE_INT_RANGE_INSTANCE): New.
13524         * value-range.h (class irange): New.
13525         (class int_range): New.
13526         (class value_range): Rename to a instantiation of int_range.
13527         (irange::legacy_mode_p): New.
13528         (value_range::value_range): Remove.
13529         (irange::kind): New.
13530         (irange::num_pairs): Adjust for irange.
13531         (irange::type): Adjust for irange.
13532         (irange::tree_lower_bound): New.
13533         (irange::tree_upper_bound): New.
13534         (irange::type): Adjust for irange.
13535         (irange::min): Same.
13536         (irange::max): Same.
13537         (irange::varying_p): Same.
13538         (irange::undefined_p): Same.
13539         (irange::zero_p): Same.
13540         (irange::nonzero_p): Same.
13541         (irange::supports_type_p): Same.
13542         (range_includes_zero_p): Same.
13543         (gt_ggc_mx): New.
13544         (gt_pch_nx): New.
13545         (irange::irange): New.
13546         (int_range::int_range): New.
13547         (int_range::operator=): New.
13548         (irange::set): Moved from value-range.cc and adjusted for irange.
13549         (irange::set_undefined): Same.
13550         (irange::set_varying): Same.
13551         (irange::operator==): Same.
13552         (irange::lower_bound): Same.
13553         (irange::upper_bound): Same.
13554         (irange::union_): Same.
13555         (irange::intersect): Same.
13556         (irange::set_nonzero): Same.
13557         (irange::set_zero): Same.
13558         (irange::normalize_min_max): New.
13559         (vrp_val_max): Move from value-range.cc.
13560         (vrp_val_min): Same.
13561         * vr-values.c (vr_values::get_lattice_entry): Call value_range
13562         constructor.
13564 2020-08-02  Sergei Trofimovich  <siarheit@google.com>
13566         PR bootstrap/96404
13567         * var-tracking.c (vt_find_locations): Fully initialize
13568         all 'in_pending' bits.
13570 2020-08-01  Jan Hubicka  <jh@suse.cz>
13572         * symtab.c (symtab_node::verify_base): Verify order.
13573         (symtab_node::verify_symtab_nodes): Verify order.
13575 2020-08-01  Jan Hubicka  <jh@suse.cz>
13577         * predict.c (estimate_bb_frequencies): Cap recursive calls by 90%.
13579 2020-08-01  Jojo R  <jiejie_rong@c-sky.com>
13581         * config/csky/csky_opts.h (float_abi_type): New.
13582         * config/csky/csky.h (TARGET_SOFT_FLOAT): New.
13583         (TARGET_HARD_FLOAT): New.
13584         (TARGET_HARD_FLOAT_ABI): New.
13585         (OPTION_DEFAULT_SPECS): Use mfloat-abi.
13586         * config/csky/csky.opt (mfloat-abi): New.
13587         * doc/invoke.texi (C-SKY Options): Document -mfloat-abi=.
13589 2020-08-01  Cooper Qu  <cooper.qu@linux.alibaba.com>
13591         * config/csky/t-csky-linux: Delete big endian CPUs' multilib.
13593 2020-07-31  Roger Sayle  <roger@nextmovesoftware.com>
13594             Tom de Vries  <tdevries@suse.de>
13596         PR target/90928
13597         * config/nvptx/nvptx.c (nvptx_truly_noop_truncation): Implement.
13598         (TARGET_TRULY_NOOP_TRUNCATION): Define.
13600 2020-07-31  Richard Biener  <rguenther@suse.de>
13602         PR debug/96383
13603         * langhooks-def.h (lhd_finalize_early_debug): Declare.
13604         (LANG_HOOKS_FINALIZE_EARLY_DEBUG): Define.
13605         (LANG_HOOKS_INITIALIZER): Amend.
13606         * langhooks.c: Include cgraph.h and debug.h.
13607         (lhd_finalize_early_debug): Default implementation from
13608         former code in finalize_compilation_unit.
13609         * langhooks.h (lang_hooks::finalize_early_debug): Add.
13610         * cgraphunit.c (symbol_table::finalize_compilation_unit):
13611         Call the finalize_early_debug langhook.
13613 2020-07-31  Richard Biener  <rguenther@suse.de>
13615         * genmatch.c (expr::force_leaf): Add and initialize.
13616         (expr::gen_transform): Honor force_leaf by passing
13617         NULL as sequence argument to maybe_push_res_to_seq.
13618         (parser::parse_expr): Allow ! marker on result expression
13619         operations.
13620         * doc/match-and-simplify.texi: Amend.
13622 2020-07-31  Kewen Lin  <linkw@linux.ibm.com>
13624         * tree-vect-loop.c (vect_get_known_peeling_cost): Don't consider branch
13625         taken costs for prologue and epilogue if they don't exist.
13626         (vect_estimate_min_profitable_iters): Likewise.
13628 2020-07-31  Martin Liska  <mliska@suse.cz>
13630         * cgraph.h: Remove leading empty lines.
13631         * cgraphunit.c (enum cgraph_order_sort_kind): Remove
13632         ORDER_UNDEFINED.
13633         (struct cgraph_order_sort): Add constructors.
13634         (cgraph_order_sort::process): New.
13635         (cgraph_order_cmp): New.
13636         (output_in_order): Simplify and push nodes to vector.
13638 2020-07-31  Richard Biener  <rguenther@suse.de>
13640         PR middle-end/96369
13641         * fold-const.c (fold_range_test): Special-case constant
13642         LHS for short-circuiting operations.
13644 2020-07-31  Martin Liska  <mliska@suse.cz>
13646         * gcov-io.h (GCOV_PREALLOCATED_KVP): New.
13648 2020-07-31  Zhiheng Xie  <xiezhiheng@huawei.com>
13650         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
13651         Add new argument ATTRS.
13652         (aarch64_call_properties): New function.
13653         (aarch64_modifies_global_state_p): Likewise.
13654         (aarch64_reads_global_state_p): Likewise.
13655         (aarch64_could_trap_p): Likewise.
13656         (aarch64_add_attribute): Likewise.
13657         (aarch64_get_attributes): Likewise.
13658         (aarch64_init_simd_builtins): Add attributes for each built-in function.
13660 2020-07-31  Richard Biener  <rguenther@suse.de>
13662         PR debug/78288
13663         * var-tracking.c (vt_find_locations): Use
13664         rev_post_order_and_mark_dfs_back_seme and separately iterate
13665         over toplevel SCCs.
13667 2020-07-31  Richard Biener  <rguenther@suse.de>
13669         * cfganal.h (rev_post_order_and_mark_dfs_back_seme): Adjust
13670         prototype.
13671         * cfganal.c (rpoamdbs_bb_data): New struct with pre BB data.
13672         (tag_header): New helper.
13673         (cmp_edge_dest_pre): Likewise.
13674         (rev_post_order_and_mark_dfs_back_seme): Compute SCCs,
13675         find SCC exits and perform a DFS walk with extra edges to
13676         compute a RPO with adjacent SCC members when requesting an
13677         iteration optimized order and populate the toplevel SCC array.
13678         * tree-ssa-sccvn.c (do_rpo_vn): Remove ad-hoc computation
13679         of max_rpo and fill it in from SCC extent info instead.
13681 2020-07-30  Will Schmidt  <will_schmidt@vnet.ibm.com>
13683         * config/rs6000/altivec.h (vec_test_lsbb_all_ones): New define.
13684         (vec_test_lsbb_all_zeros): New define.
13685         * config/rs6000/rs6000-builtin.def (BU_P10_VSX_1): New built-in
13686         handling macro.
13687         (XVTLSBB_ZEROS, XVTLSBB_ONES): New builtin defines.
13688         (xvtlsbb_all_zeros, xvtlsbb_all_ones): New builtin overloads.
13689         * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XVTLSBB_ZEROS,
13690         P10_BUILTIN_VEC_XVTLSBB_ONES): New altivec_builtin_types entries.
13691         * config/rs6000/rs6000.md (UNSPEC_XVTLSBB):  New unspec.
13692         * config/rs6000/vsx.md (*xvtlsbb_internal): New instruction define.
13693         (xvtlsbbo, xvtlsbbz): New instruction expands.
13695 2020-07-30  Cooper Qu  <cooper.qu@linux.alibaba.com>
13697         * config/riscv/riscv-opts.h (stack_protector_guard): New enum.
13698         * config/riscv/riscv.c (riscv_option_override): Handle
13699         the new options.
13700         * config/riscv/riscv.md (stack_protect_set): New pattern to handle
13701         flexible stack protector guard settings.
13702         (stack_protect_set_<mode>): Ditto.
13703         (stack_protect_test): Ditto.
13704         (stack_protect_test_<mode>): Ditto.
13705         * config/riscv/riscv.opt (mstack-protector-guard=,
13706         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
13707         options.
13708         * doc/invoke.texi (Option Summary) [RISC-V Options]:
13709         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
13710         -mstack-protector-guard-offset=.
13711         (RISC-V Options): Ditto.
13713 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
13715         PR bootstrap/96202
13716         * configure: Regenerated.
13718 2020-07-30  Richard Biener  <rguenther@suse.de>
13720         PR tree-optimization/96370
13721         * tree-ssa-reassoc.c (rewrite_expr_tree): Add operation
13722         code parameter and use it instead of picking it up from
13723         the stmt that is being rewritten.
13724         (reassociate_bb): Pass down the operation code.
13726 2020-07-30  Roger Sayle  <roger@nextmovesoftware.com>
13727             Tom de Vries  <tdevries@suse.de>
13729         * config/nvptx/nvptx.md (nvptx_vector_index_operand): New predicate.
13730         (VECELEM): New mode attribute for a vector's uppercase element mode.
13731         (Vecelem): New mode attribute for a vector's lowercase element mode.
13732         (*vec_set<mode>_0, *vec_set<mode>_1, *vec_set<mode>_2)
13733         (*vec_set<mode>_3): New instructions.
13734         (vec_set<mode>): New expander to generate one of the above insns.
13735         (vec_extract<mode><Vecelem>): New instruction.
13737 2020-07-30  Martin Liska  <mliska@suse.cz>
13739         PR target/95435
13740         * config/i386/x86-tune-costs.h: Use libcall for large sizes for
13741         -m32. Start using libcall from 128+ bytes.
13743 2020-07-30  Martin Liska  <mliska@suse.cz>
13745         * config/i386/x86-tune-costs.h: Change code formatting.
13747 2020-07-29  Roger Sayle  <roger@nextmovesoftware.com>
13749         * config/nvptx/nvptx.md (recip<mode>2): New instruction.
13751 2020-07-29  Fangrui Song  <maskray@google.com>
13753         PR debug/95096
13754         * opts.c (common_handle_option): Don't make -gsplit-dwarf imply -g.
13755         * doc/invoke.texi (-gsplit-dwarf): Update documentation.
13757 2020-07-29  Joe Ramsay  <joe.ramsay@arm.com>
13759         * config/arm/arm-protos.h (arm_coproc_mem_operand_no_writeback):
13760         Declare prototype.
13761         (arm_mve_mode_and_operands_type_check): Declare prototype.
13762         * config/arm/arm.c (arm_coproc_mem_operand): Refactor to use
13763         _arm_coproc_mem_operand.
13764         (arm_coproc_mem_operand_wb): New function to cover full, limited
13765         and no writeback.
13766         (arm_coproc_mem_operand_no_writeback): New constraint for memory
13767         operand with no writeback.
13768         (arm_print_operand): Extend 'E' specifier for memory operand
13769         that does not support writeback.
13770         (arm_mve_mode_and_operands_type_check): New constraint check for
13771         MVE memory operands.
13772         * config/arm/constraints.md: Add Uj constraint for VFP vldr.16
13773         and vstr.16.
13774         * config/arm/vfp.md (*mov_load_vfp_hf16): New pattern for
13775         vldr.16.
13776         (*mov_store_vfp_hf16): New pattern for vstr.16.
13777         (*mov<mode>_vfp_<mode>16): Remove MVE moves.
13779 2020-07-29  Richard Biener  <rguenther@suse.de>
13781         PR tree-optimization/96349
13782         * tree-ssa-loop-split.c (stmt_semi_invariant_p_1): When the
13783         condition runs into a loop PHI with an abnormal entry value give up.
13785 2020-07-29  Richard Biener  <rguenther@suse.de>
13787         * tree-vectorizer.c (vectorize_loops): Reset the SCEV
13788         cache if we removed any SIMD UID SSA defs.
13789         * gimple-loop-interchange.cc (pass_linterchange::execute):
13790         Reset the scev cache if we interchanged a loop.
13792 2020-07-29  Richard Biener  <rguenther@suse.de>
13794         PR tree-optimization/95679
13795         * tree-ssa-propagate.h
13796         (substitute_and_fold_engine::propagate_into_phi_args): Return
13797         whether anything changed.
13798         * tree-ssa-propagate.c
13799         (substitute_and_fold_engine::propagate_into_phi_args): Likewise.
13800         (substitute_and_fold_dom_walker::before_dom_children): Update
13801         something_changed.
13803 2020-07-29  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
13805         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13806         Ensure that loop variable npeel_tmp advances in each iteration.
13808 2020-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
13810         * config/mmix/mmix.h (NO_FUNCTION_CSE): Define to 1.
13812 2020-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
13814         * config/mmix/mmix.h (ASM_OUTPUT_EXTERNAL): Define to
13815         default_elf_asm_output_external.
13817 2020-07-28  Sergei Trofimovich  <siarheit@google.com>
13819         PR ipa/96291
13820         * ipa-cp.c (has_undead_caller_from_outside_scc_p): Consider
13821         unoptimized callers as undead.
13823 2020-07-28  Roger Sayle  <roger@nextmovesoftware.com>
13824             Richard Biener  <rguenther@suse.de>
13826         * match.pd (popcount(x)&1 -> parity(x)): New simplification.
13827         (parity(~x) -> parity(x)): New simplification.
13828         (parity(x)^parity(y) -> parity(x^y)): New simplification.
13829         (parity(x&1) -> x&1): New simplification.
13830         (popcount(x) -> x>>C): New simplification.
13832 2020-07-28  Roger Sayle  <roger@nextmovesoftware.com>
13833             Tom de Vries  <tdevries@suse.de>
13835         * config/nvptx/nvptx.md (extendqihi2): New instruction.
13836         (ashl<mode>3, ashr<mode>3, lshr<mode>3): Support HImode.
13838 2020-07-28  Jakub Jelinek  <jakub@redhat.com>
13840         PR middle-end/96335
13841         * calls.c (maybe_warn_rdwr_sizes): Add FNDECL and FNTYPE arguments,
13842         instead of trying to rediscover them in the body.
13843         (initialize_argument_information): Adjust caller.
13845 2020-07-28  Kewen Lin  <linkw@linux.ibm.com>
13847         * tree-vect-loop.c (vect_get_known_peeling_cost): Factor out some code
13848         to determine peel_iters_epilogue to...
13849         (vect_get_peel_iters_epilogue): ...this new function.
13850         (vect_estimate_min_profitable_iters): Refactor cost calculation on
13851         peel_iters_prologue and peel_iters_epilogue.
13853 2020-07-27  Martin Sebor  <msebor@redhat.com>
13855         PR tree-optimization/84079
13856         * gimple-array-bounds.cc (array_bounds_checker::check_addr_expr):
13857         Only allow just-past-the-end references for the most significant
13858         array bound.
13860 2020-07-27  Hu Jiangping  <hujiangping@cn.fujitsu.com>
13862         PR driver/96247
13863         * opts.c (check_alignment_argument): Set the -falign-Name
13864         on/off flag on and set the -falign-Name string value null,
13865         when the command-line specified argument is zero.
13867 2020-07-27  Martin Liska  <mliska@suse.cz>
13869         PR tree-optimization/96058
13870         * expr.c (string_constant): Build string_constant only
13871         for a type that has same precision as char_type_node
13872         and is an integral type.
13874 2020-07-27  Richard Biener  <rguenther@suse.de>
13876         * var-tracking.c (variable_tracking_main_1): Remove call
13877         to mark_dfs_back_edges.
13879 2020-07-27  Martin Liska  <mliska@suse.cz>
13881         PR tree-optimization/96128
13882         * tree-vect-generic.c (expand_vector_comparison): Do not expand
13883         vector comparison with VEC_COND_EXPR.
13885 2020-07-27  H.J. Lu  <hjl.tools@gmail.com>
13887         PR bootstrap/96203
13888         * common.opt: Add -fcf-protection=check.
13889         * flag-types.h (cf_protection_level): Add CF_CHECK.
13890         * lto-wrapper.c (merge_and_complain): Issue an error for
13891         mismatching -fcf-protection values with -fcf-protection=check.
13892         Otherwise, merge -fcf-protection values.
13893         * doc/invoke.texi: Document -fcf-protection=check.
13895 2020-07-27  Martin Liska  <mliska@suse.cz>
13897         PR lto/45375
13898         * symbol-summary.h: Call vec_safe_reserve before grow is called
13899         in order to grow to a reasonable size.
13900         * vec.h (vec_safe_reserve): Add missing function for vl_ptr
13901         type.
13903 2020-07-26  Hans-Peter Nilsson  <hp@bitrange.com>
13905         * configure.ac (out-of-tree linker .hidden support): Don't turn off
13906         for mmix-knuth-mmixware.
13907         * configure: Regenerate.
13909 2020-07-26  Aaron Sawdey  <acsawdey@linux.ibm.com>
13911         * config/rs6000/rs6000.c (rs6000_option_override_internal):
13912         Set the default value for -mblock-ops-unaligned-vsx.
13913         * config/rs6000/rs6000.opt: Add -mblock-ops-unaligned-vsx.
13914         * doc/invoke.texi: Document -mblock-ops-unaligned-vsx.
13916 2020-07-25  Hans-Peter Nilsson  <hp@bitrange.com>
13918         * config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override the default
13919         with default_asm_output_ident_directive.
13921 2020-07-25  Andrew Stubbs  <ams@codesourcery.com>
13923         * config/gcn/gcn.c (gcn_scalar_mode_supported_p): New function.
13924         (TARGET_SCALAR_MODE_SUPPORTED_P): New define.
13926 2020-07-24  David Edelsohn  <dje.gcc@gmail.com>
13927             Clement Chigot  <clement.chigot@atos.net>
13929         * config.gcc (powerpc-ibm-aix7.1): Use t-aix64 and biarch64 for
13930         cpu_is_64bit.
13931         * config/rs6000/aix71.h (ASM_SPEC): Remove aix64 option.
13932         (ASM_SPEC32): New.
13933         (ASM_SPEC64): New.
13934         (ASM_CPU_SPEC): Remove vsx and altivec options.
13935         (CPP_SPEC_COMMON): Rename from CPP_SPEC.
13936         (CPP_SPEC32): New.
13937         (CPP_SPEC64): New.
13938         (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
13939         (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
13940         (LIB_SPEC_COMMON): Rename from LIB_SPEC.
13941         (LIB_SPEC32): New.
13942         (LIB_SPEC64): New.
13943         (LINK_SPEC_COMMON): Rename from LINK_SPEC.
13944         (LINK_SPEC32): New.
13945         (LINK_SPEC64): New.
13946         (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
13947         (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
13948         (CPP_SPEC): Same.
13949         (CPLUSPLUS_CPP_SPEC): Same.
13950         (LIB_SPEC): Same.
13951         (LINK_SPEC): Same.
13952         (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
13953         * config/rs6000/aix72.h (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
13954         * config/rs6000/defaultaix64.h: Delete.
13956 2020-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
13958         * config/rs6000/rs6000.opt: Delete -mpower10.
13960 2020-07-24  Alexandre Oliva  <oliva@adacore.com>
13962         * config/i386/intelmic-mkoffload.c
13963         (generate_target_descr_file): Use dumppfx for save_temps
13964         files.  Pass -dumpbase et al down to the compiler.
13965         (generate_target_offloadend_file): Likewise.
13966         (generate_host_descr_file): Likewise.
13967         (prepare_target_image): Likewise.  Move out_obj_filename
13968         setting...
13969         (main): ... here.  Detect -dumpbase, set dumppfx too.
13971 2020-07-24  Alexandre Oliva  <oliva@adacore.com>
13973         PR driver/96230
13974         * gcc.c (process_command): Adjust and document conditions to
13975         reset dumpbase_ext.
13977 2020-07-24  Matthias Klose  <doko@ubuntu.com>
13979         * config/aarch64/aarch64.c (+aarch64_offload_options,
13980         TARGET_OFFLOAD_OPTIONS): New.
13982 2020-07-24  Uroš Bizjak  <ubizjak@gmail.com>
13984         PR target/95750
13985         * config/i386/sync.md (mmem_thread_fence): Emit mfence_sse2 for -Os.
13987 2020-07-23  Roger Sayle  <roger@nextmovesoftware.com>
13989         PR rtl-optimization/96298
13990         * simplify-rtx.c (simplify_binary_operation_1) [XOR]: Xor doesn't
13991         distribute over xor, so (a^b)^(c^b) is not the same as (a^c)^b.
13993 2020-07-23  Dong JianQiang  <dongjianqiang2@huawei.com>
13995         PR gcov-profile/96267
13996         * gcov-io.c (gcov_open): enable if IN_GCOV_TOOL.
13998 2020-07-23  Kewen Lin  <linkw@linux.ibm.com>
14000         * config/rs6000/rs6000.c (adjust_vectorization_cost): Renamed to ...
14001         (rs6000_adjust_vect_cost_per_stmt): ... here.
14002         (rs6000_add_stmt_cost): Rename adjust_vectorization_cost to
14003         rs6000_adjust_vect_cost_per_stmt.
14005 2020-07-23  Kewen Lin  <linkw@linux.ibm.com>
14007         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
14008         IFN_LEN_LOAD and IFN_LEN_STORE.
14009         (get_alias_ptr_type_for_ptr_address): Likewise.
14011 2020-07-23  Kito Cheng  <kito.cheng@sifive.com>
14013         PR target/96260
14014         * asan.c (asan_shadow_offset_set_p): New.
14015         * asan.h (asan_shadow_offset_set_p): Ditto.
14016         * toplev.c (process_options): Allow -fsanitize=kernel-address
14017         even TARGET_ASAN_SHADOW_OFFSET not implemented, only check when
14018         asan stack protection is enabled.
14020 2020-07-22  Peter Bergner  <bergner@linux.ibm.com>
14022         PR target/96236
14023         * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Handle
14024         little-endian memory ordering.
14026 2020-07-22  Nathan Sidwell  <nathan@acm.org>
14028         * dumpfile.c (parse_dump_option): Deal with filenames
14029         containing '-'
14031 2020-07-22  Nathan Sidwell  <nathan@acm.org>
14033         * incpath.c (add_path): Avoid multiple strlen calls.
14035 2020-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14037         * expmed.c (expand_sdiv_pow2): Check return value from emit_store_flag
14038         is not NULL_RTX before use.
14040 2020-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14042         * expr.c (convert_modes): Allow a constant integer to be converted to
14043         any scalar int mode.
14045 2020-07-22  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
14047         * config/aarch64/aarch64-ldpstp.md: Add two peepholes for adjusted vector
14048         V2SI, V2SF, V2DI, V2DF load pair and store pair modes.
14049         * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
14050         Change mode parameter to machine_mode.
14051         (aarch64_operands_adjust_ok_for_ldpstp): Change mode parameter to
14052         machine_mode.
14053         * config/aarch64/aarch64.c (aarch64_operands_adjust_ok_for_ldpstp):
14054         Change mode parameter to machine_mode.
14055         (aarch64_gen_adjusted_ldpstp): Change mode parameter to machine_mode.
14056         * config/aarch64/iterators.md (VP_2E): New iterator for 2 element vectors.
14058 2020-07-22  Wei Wentao  <weiwt.fnst@cn.fujitsu.com>
14060         * doc/languages.texi: Fix “then”/“than” typo.
14062 2020-07-21  Sunil K Pandey  <skpgkp2@gmail.com>
14064         PR target/95237
14065         * config/i386/i386-protos.h (ix86_local_alignment): Add
14066         another function parameter may_lower alignment. Default is
14067         false.
14068         * config/i386/i386.c (ix86_lower_local_decl_alignment): New
14069         function.
14070         (ix86_local_alignment): Amend ix86_local_alignment to accept
14071         another parameter may_lower. If may_lower is true, new align
14072         may be lower than incoming alignment. If may_lower is false,
14073         new align will be greater or equal to incoming alignment.
14074         (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): Define.
14075         * doc/tm.texi: Regenerate.
14076         * doc/tm.texi.in (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): New
14077         hook.
14078         * target.def (lower_local_decl_alignment): New hook.
14080 2020-07-21  Uroš Bizjak  <ubizjak@gmail.com>
14082         PR target/95750
14083         * config/i386/sync.md (mfence_sse2): Enable for
14084         TARGET_64BIT and TARGET_SSE2.
14085         (mfence_nosse): Always enable.
14087 2020-07-21  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14089         * config/msp430/msp430-protos.h (msp430_do_not_relax_short_jumps):
14090         Remove.
14091         * config/msp430/msp430.c (msp430_do_not_relax_short_jumps): Likewise.
14092         * config/msp430/msp430.md (cbranchhi4_real): Remove special case for
14093         msp430_do_not_relax_short_jumps.
14095 2020-07-21  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14097         * config/msp430/msp430.md: New "extendqipsi2" define_insn.
14099 2020-07-21  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14101         * config/msp430/msp430.h (NO_FUNCTION_CSE): Set to true at -O2 and
14102         above.
14104 2020-07-21  Xionghu Luo  <luoxhu@linux.ibm.com>
14106         PR rtl-optimization/89310
14107         * config/rs6000/rs6000.md (movsf_from_si2): New define_insn_and_split.
14109 2020-07-20  Hans-Peter Nilsson  <hp@bitrange.com>
14111         * config/mmix/mmix.c (mmix_expand_prologue): Calculate the total
14112         allocated size and set current_function_static_stack_size, if
14113         flag_stack_usage_info.
14115 2020-07-20  Sergei Trofimovich  <siarheit@google.com>
14117         PR target/96190
14118         * config/sparc/linux.h (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14119         to get crtendS.o for !no-pie mode.
14120         * config/sparc/linux64.h (ENDFILE_SPEC): Ditto.
14122 2020-07-20  Yang Yang  <yangyang305@huawei.com>
14124         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
14125         VIEW_CONVERT_EXPRs if the arguments types and return type
14126         of simd clone function are distinct with the vectype of stmt.
14128 2020-07-20  Uroš Bizjak  <ubizjak@gmail.com>
14130         PR target/95750
14131         * config/i386/i386.h (TARGET_AVOID_MFENCE):
14132         Rename from TARGET_USE_XCHG_FOR_ATOMIC_STORE.
14133         * config/i386/sync.md (mfence_sse2): Disable for TARGET_AVOID_MFENCE.
14134         (mfence_nosse): Enable also for TARGET_AVOID_MFENCE. Emit stack
14135         referred memory in word_mode.
14136         (mem_thread_fence): Do not generate mfence_sse2 pattern when
14137         TARGET_AVOID_MFENCE is true.
14138         (atomic_store<mode>): Update for rename.
14139         * config/i386/x86-tune.def (X86_TUNE_AVOID_MFENCE):
14140         Rename from X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE.
14142 2020-07-20  Martin Sebor  <msebor@redhat.com>
14144         PR middle-end/95189
14145         PR middle-end/95886
14146         * builtins.c (inline_expand_builtin_string_cmp): Rename...
14147         (inline_expand_builtin_bytecmp): ...to this.
14148         (builtin_memcpy_read_str): Don't expect data to be nul-terminated.
14149         (expand_builtin_memory_copy_args): Handle object representations
14150         with embedded nul bytes.
14151         (expand_builtin_memcmp): Same.
14152         (expand_builtin_strcmp): Adjust call to naming change.
14153         (expand_builtin_strncmp): Same.
14154         * expr.c (string_constant): Create empty strings with nonzero size.
14155         * fold-const.c (c_getstr): Rename locals and update comments.
14156         * tree.c (build_string): Accept null pointer argument.
14157         (build_string_literal): Same.
14158         * tree.h (build_string): Provide a default.
14159         (build_string_literal): Same.
14161 2020-07-20  Richard Biener  <rguenther@suse.de>
14163         * cfganal.c (rev_post_order_and_mark_dfs_back_seme): Remove
14164         write-only post array.
14166 2020-07-20  Jakub Jelinek  <jakub@redhat.com>
14168         PR libstdc++/93121
14169         * gimple-fold.c (fold_const_aggregate_ref_1): For COMPONENT_REF
14170         of a bitfield not aligned on byte boundaries try to
14171         fold_ctor_reference DECL_BIT_FIELD_REPRESENTATIVE if any and
14172         adjust it depending on endianity.
14174 2020-07-20  Jakub Jelinek  <jakub@redhat.com>
14176         PR libstdc++/93121
14177         * fold-const.c (native_encode_initializer): Handle bit-fields.
14179 2020-07-20  Kewen Lin  <linkw@linux.ibm.com>
14181         * config/rs6000/rs6000.c (rs6000_option_override_internal):
14182         Set param_vect_partial_vector_usage to 0 explicitly.
14183         * doc/invoke.texi (vect-partial-vector-usage): Document new option.
14184         * optabs-query.c (get_len_load_store_mode): New function.
14185         * optabs-query.h (get_len_load_store_mode): New declare.
14186         * params.opt (vect-partial-vector-usage): New.
14187         * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Add the
14188         handlings for vectorization using length-based partial vectors, call
14189         vect_gen_len for length generation, and rename some variables with
14190         items instead of scalars.
14191         (vect_set_loop_condition_partial_vectors): Add the handlings for
14192         vectorization using length-based partial vectors.
14193         (vect_do_peeling): Allow remaining eiters less than epilogue vf for
14194         LOOP_VINFO_USING_PARTIAL_VECTORS_P.
14195         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Init
14196         epil_using_partial_vectors_p.
14197         (_loop_vec_info::~_loop_vec_info): Call release_vec_loop_controls
14198         for lengths destruction.
14199         (vect_verify_loop_lens): New function.
14200         (vect_analyze_loop): Add handlings for epilogue of loop when it's
14201         marked to use vectorization using partial vectors.
14202         (vect_analyze_loop_2): Add the check to allow only one vectorization
14203         approach using partial vectorization at the same time.  Check param
14204         vect-partial-vector-usage for partial vectors decision.  Mark
14205         LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P if the epilogue is
14206         considerable to use partial vectors.  Call release_vec_loop_controls
14207         for lengths destruction.
14208         (vect_estimate_min_profitable_iters): Adjust for loop vectorization
14209         using length-based partial vectors.
14210         (vect_record_loop_mask): Init factor to 1 for vectorization using
14211         mask-based partial vectors.
14212         (vect_record_loop_len): New function.
14213         (vect_get_loop_len): Likewise.
14214         * tree-vect-stmts.c (check_load_store_for_partial_vectors): Add
14215         checks for vectorization using length-based partial vectors.  Factor
14216         some code to lambda function get_valid_nvectors.
14217         (vectorizable_store): Add handlings when using length-based partial
14218         vectors.
14219         (vectorizable_load): Likewise.
14220         (vect_gen_len): New function.
14221         * tree-vectorizer.h (struct rgroup_controls): Add field factor
14222         mainly for length-based partial vectors.
14223         (vec_loop_lens): New typedef.
14224         (_loop_vec_info): Add lens and epil_using_partial_vectors_p.
14225         (LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P): New macro.
14226         (LOOP_VINFO_LENS): Likewise.
14227         (LOOP_VINFO_FULLY_WITH_LENGTH_P): Likewise.
14228         (vect_record_loop_len): New declare.
14229         (vect_get_loop_len): Likewise.
14230         (vect_gen_len): Likewise.
14232 2020-07-20  Hans-Peter Nilsson  <hp@bitrange.com>
14234         * config/mmix/mmix.c (mmix_option_override): Reinstate default
14235         integer-emitting targetm.asm_out pseudos when dumping detailed
14236         assembly-code.
14237         (mmix_assemble_integer): Update comment.
14239 2020-07-19  H.J. Lu  <hjl.tools@gmail.com>
14241         PR target/95973
14242         PR target/96238
14243         * config/i386/cpuid.h: Add include guard.
14244         (__cpuidex): New.
14246 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
14248         PR target/95620
14249         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
14251 2020-07-18  Peter Bergner  <bergner@linux.ibm.com>
14253         PR target/92488
14254         * config/rs6000/dfp.md (trunctdsd2): New define_insn.
14255         * config/rs6000/rs6000.md (define_attr "isa"): Add p9.
14256         (define_attr "enabled"): Handle p9.
14258 2020-07-17  Roger Sayle  <roger@nextmovesoftware.com>
14260         * function.c (assign_parm_setup_block): Use the macro
14261         TRULY_NOOP_TRUNCATION_MODES_P instead of calling
14262         targetm.truly_noop_truncation directly.
14264 2020-07-17  H.J. Lu  <hjl.tools@gmail.com>
14266         PR target/96186
14267         PR target/88713
14268         * config/i386/sse.md (VF_AVX512VL_VF1_128_256): Renamed to ...
14269         (VF1_AVX512ER_128_256): This.  Drop DF vector modes.
14270         (rsqrt<mode>2): Replace VF_AVX512VL_VF1_128_256 with
14271         VF1_AVX512ER_128_256.
14273 2020-07-17  Tamar Christina  <tamar.christina@arm.com>
14275         * doc/sourcebuild.texi (dg-set-compiler-env-var,
14276         dg-set-target-env-var): Document.
14278 2020-07-17  Tamar Christina  <tamar.christina@arm.com>
14280         * config/arm/driver-arm.c (host_detect_local_cpu): Add GCC_CPUINFO.
14282 2020-07-17  Tamar Christina  <tamar.christina@arm.com>
14284         * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
14285         Add GCC_CPUINFO.
14287 2020-07-17  Tamar Christina  <tamar.christina@arm.com>
14289         * config/aarch64/driver-aarch64.c (INCLUDE_SET): New.
14290         (parse_field): Use std::string.
14291         (split_words, readline, find_field): New.
14292         (host_detect_local_cpu): Fix truncation issues.
14294 2020-07-17  Andrew Stubbs  <ams@codesourcery.com>
14296         * config/gcn/mkoffload.c (EM_AMDGPU): Undefine before defining.
14297         (ELFOSABI_AMDGPU_HSA): Likewise.
14298         (ELFABIVERSION_AMDGPU_HSA): Likewise.
14299         (EF_AMDGPU_MACH_AMDGCN_GFX803): Likewise.
14300         (EF_AMDGPU_MACH_AMDGCN_GFX900): Likewise.
14301         (EF_AMDGPU_MACH_AMDGCN_GFX906): Likewise.
14302         (reserved): Delete.
14304 2020-07-17  Andrew Pinski  <apinksi@marvell.com>
14305             Dmitrij Pochepko  <dmitrij.pochepko@bell-sw.com>
14307         PR target/93720
14308         * config/aarch64/aarch64.c (aarch64_evpc_ins): New function.
14309         (aarch64_expand_vec_perm_const_1): Call it.
14310         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_copy_lane): Make
14311         public, and add a "@" prefix.
14313 2020-07-17  Andrew Pinski  <apinksi@marvell.com>
14314             Dmitrij Pochepko  <dmitrij.pochepko@bell-sw.com>
14316         PR target/82199
14317         * config/aarch64/aarch64.c (aarch64_evpc_reencode): New function.
14318         (aarch64_expand_vec_perm_const_1): Call it.
14320 2020-07-17  Zhiheng Xie  <xiezhiheng@huawei.com>
14322         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
14323         Add new field flags.
14324         (VAR1): Add new field FLAG in macro.
14325         (VAR2): Likewise.
14326         (VAR3): Likewise.
14327         (VAR4): Likewise.
14328         (VAR5): Likewise.
14329         (VAR6): Likewise.
14330         (VAR7): Likewise.
14331         (VAR8): Likewise.
14332         (VAR9): Likewise.
14333         (VAR10): Likewise.
14334         (VAR11): Likewise.
14335         (VAR12): Likewise.
14336         (VAR13): Likewise.
14337         (VAR14): Likewise.
14338         (VAR15): Likewise.
14339         (VAR16): Likewise.
14340         (aarch64_general_fold_builtin): Likewise.
14341         (aarch64_general_gimple_fold_builtin): Likewise.
14342         * config/aarch64/aarch64-simd-builtins.def: Add default flag for
14343         each built-in function.
14344         * config/aarch64/geniterators.sh: Add new field in BUILTIN macro.
14346 2020-07-17  Andreas Krebbel  <krebbel@linux.ibm.com>
14348         PR target/96127
14349         * config/s390/s390.c (s390_expand_insv): Invoke the movstrict
14350         expanders to generate the pattern.
14351         * config/s390/s390.md ("*movstricthi", "*movstrictqi"): Remove the
14352         '*' to have callable expanders.
14354 2020-07-16  Hans-Peter Nilsson  <hp@axis.com>
14355             Segher Boessenkool  <segher@kernel.crashing.org>
14357         PR target/93372
14358         * combine.c (is_just_move): Take an rtx_insn* as argument.  Use
14359         single_set on it.
14361 2020-07-16  Uroš Bizjak  <ubizjak@gmail.com>
14363         PR target/96189
14364         * config/i386/sync.md
14365         (peephole2 to remove unneded compare after CMPXCHG):
14366         New pattern, also handle XOR zeroing and load of -1 by OR.
14368 2020-07-16  Eric Botcazou  <ebotcazou@adacore.com>
14370         * config/i386/i386.c (ix86_compute_frame_layout): Minor tweak.
14371         (ix86_adjust_stack_and_probe): Delete.
14372         (ix86_adjust_stack_and_probe_stack_clash): Rename to above and add
14373         PROTECTION_AREA parameter.  If it is true, probe PROBE_INTERVAL plus
14374         a small dope beyond SIZE bytes.
14375         (ix86_emit_probe_stack_range): Use local variable.
14376         (ix86_expand_prologue): Adjust calls to ix86_adjust_stack_and_probe
14377         and tidy up the stack checking code.
14378         * explow.c (get_stack_check_protect): Fix head comment.
14379         (anti_adjust_stack_and_probe_stack_clash): Likewise.
14380         (allocate_dynamic_stack_space): Add comment.
14381         * tree-nested.c (lookup_field_for_decl): Set the DECL_IGNORED_P and
14382         TREE_NO_WARNING but not TREE_ADDRESSABLE flags on the field.
14384 2020-07-16  Andrew Stubbs  <ams@codesourcery.com>
14386         * config/gcn/mkoffload.c: Include simple-object.h and elf.h.
14387         (EM_AMDGPU): New macro.
14388         (ELFOSABI_AMDGPU_HSA): New macro.
14389         (ELFABIVERSION_AMDGPU_HSA): New macro.
14390         (EF_AMDGPU_MACH_AMDGCN_GFX803): New macro.
14391         (EF_AMDGPU_MACH_AMDGCN_GFX900): New macro.
14392         (EF_AMDGPU_MACH_AMDGCN_GFX906): New macro.
14393         (R_AMDGPU_NONE): New macro.
14394         (R_AMDGPU_ABS32_LO): New macro.
14395         (R_AMDGPU_ABS32_HI): New macro.
14396         (R_AMDGPU_ABS64): New macro.
14397         (R_AMDGPU_REL32): New macro.
14398         (R_AMDGPU_REL64): New macro.
14399         (R_AMDGPU_ABS32): New macro.
14400         (R_AMDGPU_GOTPCREL): New macro.
14401         (R_AMDGPU_GOTPCREL32_LO): New macro.
14402         (R_AMDGPU_GOTPCREL32_HI): New macro.
14403         (R_AMDGPU_REL32_LO): New macro.
14404         (R_AMDGPU_REL32_HI): New macro.
14405         (reserved): New macro.
14406         (R_AMDGPU_RELATIVE64): New macro.
14407         (gcn_s1_name): Delete global variable.
14408         (gcn_s2_name): Delete global variable.
14409         (gcn_o_name): Delete global variable.
14410         (gcn_cfile_name): Delete global variable.
14411         (files_to_cleanup): New global variable.
14412         (offload_abi): New global variable.
14413         (tool_cleanup): Use files_to_cleanup, not explicit list.
14414         (copy_early_debug_info): New function.
14415         (main): New local variables gcn_s1_name, gcn_s2_name, gcn_o_name,
14416         gcn_cfile_name.
14417         Create files_to_cleanup obstack.
14418         Recognize -march options.
14419         Copy early debug info from input .o files.
14421 2020-07-16  Andrea Corallo  <andrea.corallo@arm.com>
14423         * Makefile.in (TAGS): Remove 'params.def'.
14425 2020-07-16  Roger Sayle  <roger@nextmovesoftware.com>
14427         * target.def (TARGET_TRULY_NOOP_TRUNCATION): Clarify that
14428         targets that return false, indicating SUBREGs shouldn't be
14429         used, also need to provide a trunc?i?i2 optab that performs this
14430         truncation.
14431         * doc/tm.texi: Regenerate.
14433 2020-07-15  Uroš Bizjak  <ubizjak@gmail.com>
14435         PR target/96189
14436         * config/i386/sync.md
14437         (peephole2 to remove unneded compare after CMPXCHG): New pattern.
14439 2020-07-15  Jakub Jelinek  <jakub@redhat.com>
14441         PR libgomp/96198
14442         * omp-general.h (struct omp_for_data): Rename min_inner_iterations
14443         member to first_inner_iterations, adjust comment.
14444         * omp-general.c (omp_extract_for_data): Adjust for the above change.
14445         Always use n1first and n2first to compute it, rather than depending
14446         on single_nonrect_cond_code.  Similarly, always compute factor
14447         as (m2 - m1) * outer_step / inner_step rather than sometimes m1 - m2
14448         depending on single_nonrect_cond_code.
14449         * omp-expand.c (expand_omp_for_init_vars): Rename min_inner_iterations
14450         to first_inner_iterations and min_inner_iterationsd to
14451         first_inner_iterationsd.
14453 2020-07-15  Jakub Jelinek  <jakub@redhat.com>
14455         PR target/96174
14456         * config/i386/avx512fintrin.h (_mm512_cmpeq_pd_mask,
14457         _mm512_mask_cmpeq_pd_mask, _mm512_cmplt_pd_mask,
14458         _mm512_mask_cmplt_pd_mask, _mm512_cmple_pd_mask,
14459         _mm512_mask_cmple_pd_mask, _mm512_cmpunord_pd_mask,
14460         _mm512_mask_cmpunord_pd_mask, _mm512_cmpneq_pd_mask,
14461         _mm512_mask_cmpneq_pd_mask, _mm512_cmpnlt_pd_mask,
14462         _mm512_mask_cmpnlt_pd_mask, _mm512_cmpnle_pd_mask,
14463         _mm512_mask_cmpnle_pd_mask, _mm512_cmpord_pd_mask,
14464         _mm512_mask_cmpord_pd_mask, _mm512_cmpeq_ps_mask,
14465         _mm512_mask_cmpeq_ps_mask, _mm512_cmplt_ps_mask,
14466         _mm512_mask_cmplt_ps_mask, _mm512_cmple_ps_mask,
14467         _mm512_mask_cmple_ps_mask, _mm512_cmpunord_ps_mask,
14468         _mm512_mask_cmpunord_ps_mask, _mm512_cmpneq_ps_mask,
14469         _mm512_mask_cmpneq_ps_mask, _mm512_cmpnlt_ps_mask,
14470         _mm512_mask_cmpnlt_ps_mask, _mm512_cmpnle_ps_mask,
14471         _mm512_mask_cmpnle_ps_mask, _mm512_cmpord_ps_mask,
14472         _mm512_mask_cmpord_ps_mask): Move outside of __OPTIMIZE__ guarded
14473         section.
14475 2020-07-15  Jakub Jelinek  <jakub@redhat.com>
14477         PR target/96176
14478         * builtins.c: Include gimple-ssa.h, tree-ssa-live.h and
14479         tree-outof-ssa.h.
14480         (expand_expr_force_mode): If exp is a SSA_NAME with different mode
14481         from MODE and get_gimple_for_ssa_name is a cast from MODE, use the
14482         cast's rhs.
14484 2020-07-15  Jiufu Guo   <guojiufu@cn.ibm.com>
14486         * config/rs6000/rs6000.c (rs6000_loop_unroll_adjust): Refine hook.
14488 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
14490         * config/rs6000/rs6000.md (rotldi3_insert_sf): Add TARGET_POWERPC64
14491         condition.
14492         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add
14493         TARGET_POWERPC64 requirement to TARGET_P8_VECTOR case.
14495 2020-07-14  Lewis Hyatt  <lhyatt@gmail.com>
14497         PR preprocessor/49973
14498         PR other/86904
14499         * common.opt: Handle -ftabstop here instead of in c-family
14500         options.  Add -fdiagnostics-column-unit= and
14501         -fdiagnostics-column-origin= options.
14502         * opts.c (common_handle_option): Handle the new options.
14503         * diagnostic-format-json.cc (json_from_expanded_location): Add
14504         diagnostic_context argument.  Use it to convert column numbers as per
14505         the new options.
14506         (json_from_location_range): Likewise.
14507         (json_from_fixit_hint): Likewise.
14508         (json_end_diagnostic): Pass the new context argument to helper
14509         functions above.  Add "column-origin" field to the output.
14510         (test_unknown_location): Add the new context argument to calls to
14511         helper functions.
14512         (test_bad_endpoints): Likewise.
14513         * diagnostic-show-locus.c
14514         (exploc_with_display_col::exploc_with_display_col): Support
14515         tabstop parameter.
14516         (layout_point::layout_point): Make use of class
14517         exploc_with_display_col.
14518         (layout_range::layout_range): Likewise.
14519         (struct line_bounds): Clarify that the units are now always
14520         display columns.  Rename members accordingly.  Add constructor.
14521         (layout::print_source_line): Add support for tab expansion.
14522         (make_range): Adapt to class layout_range changes.
14523         (layout::maybe_add_location_range): Likewise.
14524         (layout::layout): Adapt to class exploc_with_display_col changes.
14525         (layout::calculate_x_offset_display): Support tabstop parameter.
14526         (layout::print_annotation_line): Adapt to struct line_bounds changes.
14527         (layout::print_line): Likewise.
14528         (line_label::line_label): Add diagnostic_context argument.
14529         (get_affected_range): Likewise.
14530         (get_printed_columns): Likewise.
14531         (layout::print_any_labels): Adapt to struct line_label changes.
14532         (class correction): Add m_tabstop member.
14533         (correction::correction): Add tabstop argument.
14534         (correction::compute_display_cols): Use m_tabstop.
14535         (class line_corrections): Add m_context member.
14536         (line_corrections::line_corrections): Add diagnostic_context argument.
14537         (line_corrections::add_hint): Use m_context to handle tabstops.
14538         (layout::print_trailing_fixits): Adapt to class line_corrections
14539         changes.
14540         (test_layout_x_offset_display_utf8): Support tabstop parameter.
14541         (test_layout_x_offset_display_tab): New selftest.
14542         (test_one_liner_colorized_utf8): Likewise.
14543         (test_tab_expansion): Likewise.
14544         (test_diagnostic_show_locus_one_liner_utf8): Call the new tests.
14545         (diagnostic_show_locus_c_tests): Likewise.
14546         (test_overlapped_fixit_printing): Adapt to helper class and
14547         function changes.
14548         (test_overlapped_fixit_printing_utf8): Likewise.
14549         (test_overlapped_fixit_printing_2): Likewise.
14550         * diagnostic.h (enum diagnostics_column_unit): New enum.
14551         (struct diagnostic_context): Add members for the new options.
14552         (diagnostic_converted_column): Declare.
14553         (json_from_expanded_location): Add new context argument.
14554         * diagnostic.c (diagnostic_initialize): Initialize new members.
14555         (diagnostic_converted_column): New function.
14556         (maybe_line_and_column): Be willing to output a column of 0.
14557         (diagnostic_get_location_text): Convert column number as per the new
14558         options.
14559         (diagnostic_report_current_module): Likewise.
14560         (assert_location_text): Add origin and column_unit arguments for
14561         testing the new functionality.
14562         (test_diagnostic_get_location_text): Test the new functionality.
14563         * doc/invoke.texi: Document the new options and behavior.
14564         * input.h (location_compute_display_column): Add tabstop argument.
14565         * input.c (location_compute_display_column): Likewise.
14566         (test_cpp_utf8): Add selftests for tab expansion.
14567         * tree-diagnostic-path.cc (default_tree_make_json_for_path): Pass the
14568         new context argument to json_from_expanded_location().
14570 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
14572         PR middle-end/96194
14573         * expr.c (expand_constructor): Don't create temporary for store to
14574         volatile MEM if exp has an addressable type.
14576 2020-07-14  Nathan Sidwell  <nathan@acm.org>
14578         * hash-map.h (hash_map::get): Note it is a pointer to value.
14579         * incpath.h (incpath_kind): Align comments.
14581 2020-07-14  Nathan Sidwell  <nathan@acm.org>
14583         * tree-core.h (tree_decl_with_vis, tree_function_decl):
14584         Note additional padding on 64-bits
14585         * tree.c (cache_integer_cst): Note why no caching of enum literals.
14586         (get_tree_code_name): Robustify error case.
14588 2020-07-14  Nathan Sidwell  <nathan@acm.org>
14590         * doc/gty.texi: Fic gt_cleare_cache name.
14591         * doc/invoke.texi: Remove duplicate opindex Wabi-tag.
14593 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
14595         * omp-general.h (struct omp_for_data): Add adjn1 member.
14596         * omp-general.c (omp_extract_for_data): For non-rect loop, punt on
14597         count computing if n1, n2 or step are not INTEGER_CST earlier.
14598         Narrow the outer iterator range if needed so that non-rect loop
14599         has at least one iteration for each outer range iteration.  Compute
14600         adjn1.
14601         * omp-expand.c (expand_omp_for_init_vars): Use adjn1 if non-NULL
14602         instead of the outer loop's n1.
14604 2020-07-14  Matthias Klose  <doko@ubuntu.com>
14606         PR lto/95604
14607         * lto-wrapper.c (merge_and_complain): Add decoded options as parameter,
14608         error on different values for -fcf-protection.
14609         (append_compiler_options): Pass -fcf-protection option.
14610         (find_and_merge_options): Add decoded options as parameter,
14611         pass decoded_options to merge_and_complain.
14612         (run_gcc): Pass decoded options to find_and_merge_options.
14613         * lto-opts.c (lto_write_options): Pass -fcf-protection option.
14615 2020-07-13  Alan Modra  <amodra@gmail.com>
14617         * config/rs6000/rs6000.md (sibcall_local): Merge sibcall_local32
14618         and sibcall_local64.
14619         (sibcall_value_local): Similarly.
14621 2020-07-13  Nathan Sidwell  <nathan@acm.org>
14623         * Makefile.in (distclean): Remove long gone cxxmain.c
14625 2020-07-13  H.J. Lu  <hjl.tools@gmail.com>
14627         PR target/95443
14628         * config/i386/i386.md (cmpstrnsi): Pass a copy of the string
14629         length to cmpstrnqi patterns.
14631 2020-07-13  Jakub Jelinek  <jakub@redhat.com>
14633         PR ipa/96130
14634         * ipa-fnsummary.c (analyze_function_body): Treat NULL bb->aux
14635         as false predicate.
14637 2020-07-13  Richard Biener  <rguenther@suse.de>
14639         PR tree-optimization/96163
14640         * tree-vect-slp.c (vect_schedule_slp_instance): Put new stmts
14641         at least after region begin.
14643 2020-07-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14645         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
14646         __ARM_FEATURE_PAC_DEFAULT support.
14648 2020-07-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14650         PR target/94891
14651         * doc/extend.texi: Update the text for  __builtin_return_address.
14653 2020-07-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14655         PR target/94891
14656         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
14657         Disable return address signing if __builtin_eh_return is used.
14659 2020-07-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14661         PR target/94891
14662         PR target/94791
14663         * config/aarch64/aarch64-protos.h (aarch64_return_addr_rtx): Declare.
14664         * config/aarch64/aarch64.c (aarch64_return_addr_rtx): New.
14665         (aarch64_return_addr): Use aarch64_return_addr_rtx.
14666         * config/aarch64/aarch64.h (PROFILE_HOOK): Likewise.
14668 2020-07-13  Richard Sandiford  <richard.sandiford@arm.com>
14670         PR middle-end/95114
14671         * tree.h (virtual_method_call_p): Add a default-false parameter
14672         that indicates whether the function is being called from dump
14673         routines.
14674         (obj_type_ref_class): Likewise.
14675         * tree.c (virtual_method_call_p): Likewise.
14676         * ipa-devirt.c (obj_type_ref_class): Likewise.  Lazily add ODR
14677         type information for the type when the parameter is false.
14678         * tree-pretty-print.c (dump_generic_node): Update calls to
14679         virtual_method_call_p and obj_type_ref_class accordingly.
14681 2020-07-13  Julian Brown  <julian@codesourcery.com>
14682             Thomas Schwinge  <thomas@codesourcery.com>
14684         * gimplify.c (gimplify_scan_omp_clauses): Do not strip
14685         GOMP_MAP_TO_PSET/GOMP_MAP_POINTER for OpenACC enter/exit data
14686         directives (see also PR92929).
14688 2020-07-13  Roger Sayle  <roger@nextmovesoftware.com>
14690         * convert.c (convert_to_integer_1): Narrow integer operations
14691         even on targets that require explicit truncation instructions.
14693 2020-07-13  Hans-Peter Nilsson  <hp@axis.com>
14695         PR target/93372
14696         * config/cris/cris-passes.def: New file.
14697         * config/cris/t-cris (PASSES_EXTRA): Add cris-passes.def.
14698         * config/cris/cris.c: Add infrastructure bits and pass execute
14699         function cris_postdbr_cmpelim.
14700         * config/cris/cris-protos.h (make_pass_cris_postdbr_cmpelim): Declare.
14702 2020-07-13  Hans-Peter Nilsson  <hp@axis.com>
14704         * config/cris/t-cris: Remove gt-cris.h-related excessive cargo.
14706 2020-07-13  Hans-Peter Nilsson  <hp@axis.com>
14708         PR target/93372
14709         * config/cris/cris.md ("*add<mode>3_addi"): New splitter.
14710         ("*addi_b_<mode>"): New pattern.
14711         ("*addsi3<setnz>"): Remove stale %-related comment.
14713 2020-07-13  Hans-Peter Nilsson  <hp@axis.com>
14715         * config/cris/cris.md ("setnz_subst", "setnz_subst", "setcc_subst"):
14716         Use match_dup in output template, not match_operand.
14718 2020-07-13  Richard Biener  <rguenther@suse.de>
14720         * var-tracking.c (bb_heap_node_t): Remove unused typedef.
14721         (vt_find_locations): Eliminate visited bitmap in favor of
14722         RPO order check.  Dump statistics about the number of
14723         local BB dataflow computes.
14725 2020-07-13  Richard Biener  <rguenther@suse.de>
14727         PR middle-end/94600
14728         * expr.c (expand_constructor): Make a temporary also if we're
14729         storing to volatile memory.
14731 2020-07-13  Xionghu Luo  <luoxhu@linux.ibm.com>
14733         * config/rs6000/rs6000.md (rotl_unspec): New
14734         define_insn_and_split.
14736 2020-07-13  Xionghu Luo  <luoxhu@linux.ibm.com>
14738         * config/rs6000/rs6000.c (rs6000_expand_vector_init):
14739         Move V4SF to V4SI, init vector like V4SI and move to V4SF back.
14741 2020-07-11  Roger Sayle  <roger@nextmovesoftware.com>
14743         * internal-fn.c (expand_mul_overflow): When checking for signed
14744         overflow from a widening multiplication, we access the truncated
14745         lowpart RES twice, so keep this value in a pseudo register.
14747 2020-07-11  Richard Sandiford  <richard.sandiford@arm.com>
14749         PR tree-optimization/96146
14750         * value-range.cc (value_range::set): Only decompose POLY_INT_CST
14751         bounds to integers for VR_RANGE.  Decay to VR_VARYING for anti-ranges
14752         involving POLY_INT_CSTs.
14754 2020-07-10  David Edelsohn  <dje.gcc@gmail.com>
14756         PR target/77373
14757         * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Only
14758         create named section for VAR_DECL or FUNCTION_DECL.
14760 2020-07-10  Joseph Myers  <joseph@codesourcery.com>
14762         * glimits.h [__STDC_VERSION__ > 201710L] (BOOL_MAX, BOOL_WIDTH):
14763         New macros.
14765 2020-07-10  Alexander Popov  <alex.popov@linux.com>
14767         * shrink-wrap.c (try_shrink_wrapping): Improve debug output.
14769 2020-07-10  Richard Sandiford  <richard.sandiford@arm.com>
14771         PR middle-end/96151
14772         * expr.c (expand_expr_real_2): When reducing bit fields,
14773         clear the target if it has a different mode from the expression.
14774         (reduce_to_bit_field_precision): Don't do that here.  Instead
14775         assert that the target already has the correct mode.
14777 2020-07-10  Richard Sandiford  <richard.sandiford@arm.com>
14779         PR target/92789
14780         PR target/95726
14781         * config/arm/arm.c (arm_attribute_table): Add
14782         "Advanced SIMD type".
14783         (arm_comp_type_attributes): Check that the "Advanced SIMD type"
14784         attributes are equal.
14785         * config/arm/arm-builtins.c: Include stringpool.h and
14786         attribs.h.
14787         (arm_mangle_builtin_vector_type): Use the mangling recorded
14788         in the "Advanced SIMD type" attribute.
14789         (arm_init_simd_builtin_types): Add an "Advanced SIMD type"
14790         attribute to each Advanced SIMD type, using the mangled type
14791         as the attribute's single argument.
14793 2020-07-10  Carl Love  <cel@us.ibm.com>
14795         * config/rs6000/vsx.md  (VSX_MM): New define_mode_iterator.
14796         (VSX_MM4): New define_mode_iterator.
14797         (vec_mtvsrbmi): New define_insn.
14798         (vec_mtvsr_<mode>): New define_insn.
14799         (vec_cntmb_<mode>): New define_insn.
14800         (vec_extract_<mode>): New define_insn.
14801         (vec_expand_<mode>): New define_insn.
14802         (define_c_enum unspec): Add entries UNSPEC_MTVSBM, UNSPEC_VCNTMB,
14803         UNSPEC_VEXTRACT, UNSPEC_VEXPAND.
14804         * config/rs6000/altivec.h ( vec_genbm, vec_genhm, vec_genwm,
14805         vec_gendm, vec_genqm, vec_cntm, vec_expandm, vec_extractm): Add
14806         defines.
14807         * config/rs6000/rs6000-builtin.def: Add defines BU_P10_2, BU_P10_1.
14808         (BU_P10_1): Add definitions for mtvsrbm, mtvsrhm, mtvsrwm,
14809         mtvsrdm, mtvsrqm, vexpandmb, vexpandmh, vexpandmw, vexpandmd,
14810         vexpandmq, vextractmb, vextractmh, vextractmw, vextractmd, vextractmq.
14811         (BU_P10_2): Add definitions for cntmbb, cntmbh, cntmbw, cntmbd.
14812         (BU_P10_OVERLOAD_1): Add definitions for mtvsrbm, mtvsrhm,
14813         mtvsrwm, mtvsrdm, mtvsrqm, vexpandm, vextractm.
14814         (BU_P10_OVERLOAD_2): Add defition for cntm.
14815         * config/rs6000/rs6000-call.c (rs6000_expand_binop_builtin): Add
14816         checks for CODE_FOR_vec_cntmbb_v16qi, CODE_FOR_vec_cntmb_v8hi,
14817         CODE_FOR_vec_cntmb_v4si, CODE_FOR_vec_cntmb_v2di.
14818         (altivec_overloaded_builtins): Add overloaded argument entries for
14819         P10_BUILTIN_VEC_MTVSRBM, P10_BUILTIN_VEC_MTVSRHM,
14820         P10_BUILTIN_VEC_MTVSRWM, P10_BUILTIN_VEC_MTVSRDM,
14821         P10_BUILTIN_VEC_MTVSRQM, P10_BUILTIN_VEC_VCNTMBB,
14822         P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
14823         P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
14824         P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
14825         P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
14826         P10_BUILTIN_VEXPANDMQ, P10_BUILTIN_VEXTRACTMB,
14827         P10_BUILTIN_VEXTRACTMH, P10_BUILTIN_VEXTRACTMW,
14828         P10_BUILTIN_VEXTRACTMD, P10_BUILTIN_VEXTRACTMQ.
14829         (builtin_function_type): Add case entries for P10_BUILTIN_MTVSRBM,
14830         P10_BUILTIN_MTVSRHM, P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
14831         P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
14832         P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
14833         P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
14834         P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
14835         P10_BUILTIN_VEXPANDMQ.
14836         * config/rs6000/rs6000-builtin.def (altivec_overloaded_builtins): Add
14837         entries for MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM, VCNTM,
14838         VEXPANDM, VEXTRACTM.
14840 2020-07-10  Bill Seurer, 507-253-3502, seurer@us.ibm.com  <(no_default)>
14842         PR target/95581
14843         * config/rs6000/rs6000-call.c: Add new type v16qi_ftype_pcvoid.
14844         (altivec_init_builtins) Change __builtin_altivec_mask_for_load to use
14845         v16qi_ftype_pcvoid with correct number of parameters.
14847 2020-07-10  H.J. Lu  <hjl.tools@gmail.com>
14849         PR target/96144
14850         * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Check
14851         TARGET_AVX512VL when enabling FMA.
14853 2020-07-10  Andrea Corallo  <andrea.corallo@arm.com>
14854             Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
14855             Iain Apreotesei  <iain.apreotesei@arm.com>
14857         * config/arm/arm-protos.h (arm_target_insn_ok_for_lob): New
14858         prototype.
14859         * config/arm/arm.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
14860         (arm_invalid_within_doloop): Implement invalid_within_doloop hook.
14861         (arm_target_insn_ok_for_lob): New function.
14862         * config/arm/arm.h (TARGET_HAVE_LOB): Define macro.
14863         * config/arm/thumb2.md (*doloop_end_internal, doloop_begin)
14864         (dls_insn): Add new patterns.
14865         (doloop_end): Modify to select LR when LOB is available.
14866         * config/arm/unspecs.md: Add new unspec.
14867         * doc/sourcebuild.texi (arm_v8_1_lob_ok)
14868         (arm_thumb2_ok_no_arm_v8_1_lob): Document new target supports
14869         options.
14871 2020-07-10  Richard Biener  <rguenther@suse.de>
14873         PR tree-optimization/96133
14874         * gimple-fold.c (fold_array_ctor_reference): Do not
14875         recurse to folding a CTOR that does not fully cover the
14876         asked for object.
14878 2020-07-10  Cui,Lili  <lili.cui@intel.com>
14880         * common/config/i386/cpuinfo.h
14881         (get_intel_cpu): Handle sapphirerapids.
14882         * common/config/i386/i386-common.c
14883         (processor_names): Add sapphirerapids and alderlake.
14884         (processor_alias_table): Add sapphirerapids and alderlake.
14885         * common/config/i386/i386-cpuinfo.h
14886         (processor_subtypes): Add INTEL_COREI7_ALDERLAKE and
14887         INTEL_COREI7_ALDERLAKE.
14888         * config.gcc: Add -march=sapphirerapids and alderlake.
14889         * config/i386/driver-i386.c
14890         (host_detect_local_cpu) Handle sapphirerapids and alderlake.
14891         * config/i386/i386-c.c
14892         (ix86_target_macros_internal): Handle sapphirerapids and alderlake.
14893         * config/i386/i386-options.c
14894         (m_SAPPHIRERAPIDS) : Define.
14895         (m_ALDERLAKE): Ditto.
14896         (m_CORE_AVX512) : Add m_SAPPHIRERAPIDS.
14897         (processor_cost_table): Add sapphirerapids and alderlake.
14898         (ix86_option_override_internal) Handle PTA_WAITPKG, PTA_ENQCMD,
14899         PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK.
14900         * config/i386/i386.h
14901         (ix86_size_cost) : Define SAPPHIRERAPIDS and ALDERLAKE.
14902         (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
14903         PROCESSOR_ALDERLAKE.
14904         (PTA_ENQCMD): New.
14905         (PTA_CLDEMOTE): Ditto.
14906         (PTA_SERIALIZE): Ditto.
14907         (PTA_TSXLDTRK): New.
14908         (PTA_SAPPHIRERAPIDS): Ditto.
14909         (PTA_ALDERLAKE): Ditto.
14910         (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
14911         PROCESSOR_ALDERLAKE.
14912         * doc/extend.texi: Add sapphirerapids and alderlake.
14913         * doc/invoke.texi: Add sapphirerapids and alderlake.
14915 2020-07-10  Martin Liska  <mliska@suse.cz>
14917         * dumpfile.c [profile-report]: Add new profile dump.
14918         * dumpfile.h (enum tree_dump_index): Ad TDI_profile_report.
14919         * passes.c (pass_manager::dump_profile_report): Change stderr
14920         to dump_file.
14922 2020-07-10  Kewen Lin  <linkw@linux.ibm.com>
14924         * tree-vect-loop.c (vect_transform_loop): Use LOOP_VINFO_NITERS which
14925         is adjusted by considering peeled prologue for non
14926         vect_use_loop_mask_for_alignment_p cases.
14928 2020-07-09  Peter Bergner  <bergner@linux.ibm.com>
14930         PR target/96125
14931         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Define the MMA
14932         specific types __vector_quad and __vector_pair, and initialize the
14933         MMA built-ins if TARGET_EXTRA_BUILTINS is set.
14934         (mma_init_builtins): Don't test for mask set in rs6000_builtin_mask.
14935         Remove now unneeded mask variable.
14936         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add the
14937         OPTION_MASK_MMA flag for power10 if not already set.
14939 2020-07-09  Richard Biener  <rguenther@suse.de>
14941         PR tree-optimization/96133
14942         * tree-vect-slp.c (vect_build_slp_tree_1): Compare load_p
14943         status between stmts.
14945 2020-07-09  H.J. Lu  <hjl.tools@gmail.com>
14947         PR target/88713
14948         * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Enable FMA.
14949         * config/i386/sse.md (VF_AVX512VL_VF1_128_256): New.
14950         (rsqrt<mode>2): Replace VF1_128_256 with VF_AVX512VL_VF1_128_256.
14951         (rsqrtv16sf2): Removed.
14953 2020-07-09  Richard Biener  <rguenther@suse.de>
14955         * tree-vectorizer.h (vect_verify_datarefs_alignment): Remove.
14956         (vect_slp_analyze_and_verify_instance_alignment): Rename to ...
14957         (vect_slp_analyze_instance_alignment): ... this.
14958         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove.
14959         (vect_verify_datarefs_alignment): Likewise.
14960         (vect_enhance_data_refs_alignment): Do not call
14961         vect_verify_datarefs_alignment.
14962         (vect_slp_analyze_node_alignment): Rename from
14963         vect_slp_analyze_and_verify_node_alignment and do not
14964         call verify_data_ref_alignment.
14965         (vect_slp_analyze_instance_alignment): Rename from
14966         vect_slp_analyze_and_verify_instance_alignment.
14967         * tree-vect-stmts.c (vectorizable_store): Dump when
14968         we vectorize an unaligned access.
14969         (vectorizable_load): Likewise.
14970         * tree-vect-loop.c (vect_analyze_loop_2): Do not call
14971         vect_verify_datarefs_alignment.
14972         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust.
14974 2020-07-09  Bin Cheng  <bin.cheng@linux.alibaba.com>
14976         PR tree-optimization/95804
14977         * tree-loop-distribution.c (break_alias_scc_partitions): Force
14978         negative post order to reduction partition.
14980 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
14982         * omp-general.h (struct omp_for_data): Add min_inner_iterations
14983         and factor members.
14984         * omp-general.c (omp_extract_for_data): Initialize them and remember
14985         them in OMP_CLAUSE_COLLAPSE_COUNT if needed and restore from there.
14986         * omp-expand.c (expand_omp_for_init_counts): Fix up computation of
14987         counts[fd->last_nonrect] if fd->loop.n2 is INTEGER_CST.
14988         (expand_omp_for_init_vars): For
14989         fd->first_nonrect + 1 == fd->last_nonrect loops with for now
14990         INTEGER_CST fd->loop.n2 find quadratic equation roots instead of
14991         using fallback method when possible.
14993 2020-07-09  Omar Tahir  <omar.tahir@arm.com>
14995         * ira.c (move_unallocated_pseudos): Zero first_moveable_pseudo and
14996         last_moveable_pseudo before returning.
14998 2020-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15000         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
15001         __ARM_FEATURE_BTI_DEFAULT support.
15003 2020-07-09  Matthew Malcomson  <matthew.malcomson@arm.com>
15005         * config/aarch64/aarch64-protos.h (aarch64_indirect_call_asm):
15006         New declaration.
15007         * config/aarch64/aarch64.c (aarch64_regno_regclass): Handle new
15008         stub registers class.
15009         (aarch64_class_max_nregs): Likewise.
15010         (aarch64_register_move_cost): Likewise.
15011         (aarch64_sls_shared_thunks): Global array to store stub labels.
15012         (aarch64_sls_emit_function_stub): New.
15013         (aarch64_create_blr_label): New.
15014         (aarch64_sls_emit_blr_function_thunks): New.
15015         (aarch64_sls_emit_shared_blr_thunks): New.
15016         (aarch64_asm_file_end): New.
15017         (aarch64_indirect_call_asm): New.
15018         (TARGET_ASM_FILE_END): Use aarch64_asm_file_end.
15019         (TARGET_ASM_FUNCTION_EPILOGUE): Use
15020         aarch64_sls_emit_blr_function_thunks.
15021         * config/aarch64/aarch64.h (STB_REGNUM_P): New.
15022         (enum reg_class): Add STUB_REGS class.
15023         (machine_function): Introduce `call_via` array for
15024         function-local stub labels.
15025         * config/aarch64/aarch64.md (*call_insn, *call_value_insn): Use
15026         aarch64_indirect_call_asm to emit code when hardening BLR
15027         instructions.
15028         * config/aarch64/constraints.md (Ucr): New constraint
15029         representing registers for indirect calls.  Is GENERAL_REGS
15030         usually, and STUB_REGS when hardening BLR instruction against
15031         SLS.
15032         * config/aarch64/predicates.md (aarch64_general_reg): STUB_REGS class
15033         is also a general register.
15035 2020-07-09  Matthew Malcomson  <matthew.malcomson@arm.com>
15037         * config/aarch64/aarch64-protos.h (aarch64_sls_barrier): New.
15038         * config/aarch64/aarch64.c (aarch64_output_casesi): Emit
15039         speculation barrier after BR instruction if needs be.
15040         (aarch64_trampoline_init): Handle ptr_mode value & adjust size
15041         of code copied.
15042         (aarch64_sls_barrier): New.
15043         (aarch64_asm_trampoline_template): Add needed barriers.
15044         * config/aarch64/aarch64.h (AARCH64_ISA_SB): New.
15045         (TARGET_SB): New.
15046         (TRAMPOLINE_SIZE): Account for barrier.
15047         * config/aarch64/aarch64.md (indirect_jump, *casesi_dispatch,
15048         simple_return, *do_return, *sibcall_insn, *sibcall_value_insn):
15049         Emit barrier if needs be, also account for possible barrier using
15050         "sls_length" attribute.
15051         (sls_length): New attribute.
15052         (length): Determine default using any non-default sls_length
15053         value.
15055 2020-07-09  Matthew Malcomson  <matthew.malcomson@arm.com>
15057         * config/aarch64/aarch64-protos.h (aarch64_harden_sls_retbr_p):
15058         New.
15059         (aarch64_harden_sls_blr_p): New.
15060         * config/aarch64/aarch64.c (enum aarch64_sls_hardening_type):
15061         New.
15062         (aarch64_harden_sls_retbr_p): New.
15063         (aarch64_harden_sls_blr_p): New.
15064         (aarch64_validate_sls_mitigation): New.
15065         (aarch64_override_options): Parse options for SLS mitigation.
15066         * config/aarch64/aarch64.opt (-mharden-sls): New option.
15067         * doc/invoke.texi: Document new option.
15069 2020-07-09  Kewen Lin  <linkw@linux.ibm.com>
15071         * tree-vect-stmts.c (vectorizable_condition): Prohibit vectorization
15072         with partial vectors explicitly excepting for EXTRACT_LAST_REDUCTION
15073         or nested-cycle reduction.
15075 2020-07-09  Kewen Lin  <linkw@linux.ibm.com>
15077         * tree-vect-loop.c (vect_analyze_loop_2): Update dumping string
15078         for fully masking to be more common.
15080 2020-07-09  Kito Cheng  <kito.cheng@sifive.com>
15082         * config/riscv/riscv.md (get_thread_pointer<mode>): New.
15083         (TP_REGNUM): Ditto.
15084         * doc/extend.texi (Target Builtins): Add RISC-V built-in section.
15085         Document __builtin_thread_pointer.
15087 2020-07-09  Kito Cheng  <kito.cheng@sifive.com>
15089         * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
15090         Abort if any arguments on stack.
15092 2020-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15094         * gimple-fold.c (gimple_fold_builtin_memory_op): Do not fold if
15095         either type has reverse scalar storage order.
15096         * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not propagate through
15097         a memory copy if either type has reverse scalar storage order.
15099 2020-07-08  Tobias Burnus  <tobias@codesourcery.com>
15101         * config/gcn/mkoffload.c (compile_native, main): Pass -fPIC/-fpic
15102         on to the native compiler, if used.
15103         * config/nvptx/mkoffload.c (compile_native, main): Likewise.
15105 2020-07-08  Will Schmidt  <will_schmidt@vnet.ibm.com>
15107         * config/rs6000/altivec.h (vec_vmsumudm): New define.
15108         * config/rs6000/altivec.md (UNSPEC_VMSUMUDM): New unspec.
15109           (altivec_vmsumudm): New define_insn.
15110         * config/rs6000/rs6000-builtin.def (altivec_vmsumudm): New BU_ALTIVEC_3
15111           entry. (vmsumudm): New BU_ALTIVEC_OVERLOAD_3 entry.
15112         * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add entries for
15113           ALTIVEC_BUILTIN_VMSUMUDM variants of vec_msum.
15114         * doc/extend.texi: Add document for vmsumudm behind vmsum.
15116 2020-07-08  Richard Biener  <rguenther@suse.de>
15118         * tree-vect-stmts.c (get_group_load_store_type): Pass
15119         in the SLP node and the alignment support scheme output.
15120         Set that.
15121         (get_load_store_type): Likewise.
15122         (vectorizable_store): Adjust.
15123         (vectorizable_load): Likewise.
15125 2020-07-08  Richard Sandiford  <richard.sandiford@arm.com>
15127         PR middle-end/95694
15128         * expr.c (expand_expr_real_2): Get the mode from the type rather
15129         than the rtx, and assert that it is consistent with the mode of
15130         the rtx (where known).  Optimize all constant integers, not just
15131         those that can be represented in poly_int64.
15133 2020-07-08  Kewen Lin  <linkw@linux.ibm.com>
15135         * config/rs6000/vsx.md (len_load_v16qi): New define_expand.
15136         (len_store_v16qi): Likewise.
15138 2020-07-08  Kewen Lin  <linkw@linux.ibm.com>
15140         * doc/md.texi (len_load_@var{m}): Document.
15141         (len_store_@var{m}): Likewise.
15142         * internal-fn.c (len_load_direct): New macro.
15143         (len_store_direct): Likewise.
15144         (expand_len_load_optab_fn): Likewise.
15145         (expand_len_store_optab_fn): Likewise.
15146         (direct_len_load_optab_supported_p): Likewise.
15147         (direct_len_store_optab_supported_p): Likewise.
15148         (expand_mask_load_optab_fn): New macro.  Original renamed to ...
15149         (expand_partial_load_optab_fn): ... here.  Add handlings for
15150         len_load_optab.
15151         (expand_mask_store_optab_fn): New macro.  Original renamed to ...
15152         (expand_partial_store_optab_fn): ... here. Add handlings for
15153         len_store_optab.
15154         (internal_load_fn_p): Handle IFN_LEN_LOAD.
15155         (internal_store_fn_p): Handle IFN_LEN_STORE.
15156         (internal_fn_stored_value_index): Handle IFN_LEN_STORE.
15157         * internal-fn.def (LEN_LOAD): New internal function.
15158         (LEN_STORE): Likewise.
15159         * optabs.def (len_load_optab, len_store_optab): New optab.
15161 2020-07-07  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
15163         * config/aarch64/aarch64.c (thunderx2t99_regmove_cost,
15164         thunderx2t99_vector_cost): Likewise.
15166 2020-07-07  Richard Biener  <rguenther@suse.de>
15168         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Fix
15169         group overlap condition to allow negative step DR groups.
15170         * tree-vect-stmts.c (get_group_load_store_type): For
15171         multi element SLP groups force VMAT_STRIDED_SLP when the step
15172         is negative.
15174 2020-07-07  Qian Jianhua  <qianjh@cn.fujitsu.com>
15176         * doc/generic.texi: Fix typo.
15178 2020-07-07  Richard Biener  <rguenther@suse.de>
15180         * lto-streamer-out.c (cmp_symbol_files): Use the computed
15181         order map to sort symbols from the same sub-file together.
15182         (lto_output): Compute a map of sub-file to an order number
15183         it appears in the symbol output array.
15185 2020-07-06  Richard Biener  <rguenther@suse.de>
15187         PR tree-optimization/96075
15188         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
15189         TYPE_SIZE_UNIT of the vector component type instead of DR_STEP
15190         for the misalignment calculation for negative step.
15192 2020-07-06  Roger Sayle  <roger@nextmovesoftware.com>
15194         * config/nvptx/nvptx.md (*vadd_addsi4): New instruction.
15195         (*vsub_addsi4): New instruction.
15197 2020-07-06  Hans-Peter Nilsson  <hp@axis.com>
15199         * config/cris/cris.md (movulsr): New peephole2.
15201 2020-07-06  Hans-Peter Nilsson  <hp@axis.com>
15203         * config/cris/sync.md ("cris_atomic_fetch_<atomic_op_name><mode>_1"):
15204         Correct gcc_assert of overlapping operands.
15206 2020-07-05  Hans-Peter Nilsson  <hp@axis.com>
15208         * config/cris/cris.c (cris_select_cc_mode): Always return
15209         CC_NZmode for matching comparisons.  Clarify comments.
15210         * config/cris/cris-modes.def: Clarify mode comment.
15211         * config/cris/cris.md (plusminus, plusminusumin, plusumin): New
15212         code iterators.
15213         (addsub, addsubbo, nd): New code iterator attributes.
15214         ("*<addsub><su>qihi"): Rename from "*extopqihi".  Use code
15215         iterator constructs instead of match_operator constructs.
15216         ("*<addsubbo><su><nd><mode>si<setnz>"): Similar from
15217         "*extop<mode>si<setnz>".
15218         ("*add<su>qihi_swap"): Similar from "*addxqihi_swap".
15219         ("*<addsubbo><su><nd><mode>si<setnz>_swap"): Similar from
15220         "*extop<mode>si<setnz>_swap".
15222 2020-07-05  Hans-Peter Nilsson  <hp@axis.com>
15224         * config/cris/cris.md ("*extopqihi", "*extop<mode>si<setnz>_swap")
15225         ("*extop<mode>si<setnz>", "*addxqihi_swap"): Reinstate.
15227 2020-07-03  Eric Botcazou  <ebotcazou@adacore.com>
15229         * gimple-fold.c (gimple_fold_builtin_memory_op): Fold calls that
15230         were initially created for the assignment of a variable-sized
15231         object and whose source is now a string constant.
15232         * gimple-ssa-store-merging.c (struct merged_store_group): Document
15233         STRING_CST for rhs_code field.
15234         Add string_concatenation boolean field.
15235         (merged_store_group::merged_store_group): Initialize it as well as
15236         bit_insertion here.
15237         (merged_store_group::do_merge): Set it upon seeing a STRING_CST.
15238         Also set bit_insertion here upon seeing a BIT_INSERT_EXPR.
15239         (merged_store_group::apply_stores): Clear it for small regions.
15240         Do not create a power-of-2-sized buffer if it is still true.
15241         And do not set bit_insertion here again.
15242         (encode_tree_to_bitpos): Deal with BLKmode for the expression.
15243         (merged_store_group::can_be_merged_into): Deal with STRING_CST.
15244         (imm_store_chain_info::coalesce_immediate_stores): Set bit_insertion
15245         to true after changing MEM_REF stores into BIT_INSERT_EXPR stores.
15246         (count_multiple_uses): Return 0 for STRING_CST.
15247         (split_group): Do not split the group for a string concatenation.
15248         (imm_store_chain_info::output_merged_store): Constify and rename
15249         some local variables.  Build an array type as destination type
15250         for a string concatenation, as well as a zero mask, and call
15251         build_string to build the source.
15252         (lhs_valid_for_store_merging_p): Return true for VIEW_CONVERT_EXPR.
15253         (pass_store_merging::process_store): Accept STRING_CST on the RHS.
15254         * gimple.h (gimple_call_alloca_for_var_p): New accessor function.
15255         * gimplify.c (gimplify_modify_expr_to_memcpy): Set alloca_for_var.
15256         * tree.h (CALL_ALLOCA_FOR_VAR_P): Document it for BUILT_IN_MEMCPY.
15258 2020-07-03  Martin Jambor  <mjambor@suse.cz>
15260         PR ipa/96040
15261         * ipa-sra.c (all_callee_accesses_present_p): Do not accept type
15262         mismatched accesses.
15264 2020-07-03  Roger Sayle  <roger@nextmovesoftware.com>
15266         * config/nvptx/nvptx.md (popcount<mode>2): New instructions.
15267         (mulhishi3, mulsidi3, umulhisi3, umulsidi3): New instructions.
15269 2020-07-03  Martin Liska  <mliska@suse.cz>
15270             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15272         PR bootstrap/96046
15273         * gcov-dump.c (tag_function): Use gcov_position_t
15274         type.
15276 2020-07-03  Richard Biener  <rguenther@suse.de>
15278         PR tree-optimization/96037
15279         * tree-vect-stmts.c (vect_is_simple_use): Initialize *slp_def.
15281 2020-07-03  Richard Biener  <rguenther@suse.de>
15283         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Cost the
15284         original non-pattern stmts, look at the pattern stmt
15285         vectorization status.
15287 2020-07-03  Andrew Stubbs  <ams@codesourcery.com>
15289         * config/gcn/gcn-valu.md (fold_left_plus_<mode>): New.
15291 2020-07-03  Richard Biener  <rguenther@suse.de>
15293         * tree-vectorizer.h (vec_info::insert_on_entry): New.
15294         (vec_info::insert_seq_on_entry): Likewise.
15295         * tree-vectorizer.c (vec_info::insert_on_entry): Implement.
15296         (vec_info::insert_seq_on_entry): Likewise.
15297         * tree-vect-stmts.c (vect_init_vector_1): Use
15298         vec_info::insert_on_entry.
15299         (vect_finish_stmt_generation): Set modified bit after
15300         adjusting VUSE.
15301         * tree-vect-slp.c (vect_create_constant_vectors): Simplify
15302         by using vec_info::insert_seq_on_entry and bypassing
15303         vec_init_vector.
15304         (vect_schedule_slp_instance): Deal with all-constant
15305         children later.
15307 2020-07-03  Roger Sayle  <roger@nextmovesoftware.com>
15308             Tom de Vries  <tdevries@suse.de>
15310         PR target/90932
15311         * config/nvptx/nvptx.c (nvptx_vector_alignment): Use tree_to_uhwi
15312         to access TYPE_SIZE (type).  Return at least the mode's alignment.
15314 2020-07-02  Richard Biener  <rguenther@suse.de>
15316         PR tree-optimization/96028
15317         * tree-vect-slp.c (vect_slp_convert_to_external): Make sure
15318         we have scalar stmts to use.
15319         (vect_slp_analyze_node_operations): When analyzing a child
15320         failed try externalizing the parent node.
15322 2020-07-02  Martin Jambor  <mjambor@suse.cz>
15324         PR debug/95343
15325         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Adjust
15326         argument index if necessary.
15328 2020-07-02  Martin Liska  <mliska@suse.cz>
15330         PR middle-end/95830
15331         * tree-vect-generic.c (expand_vector_condition): Forward declaration.
15332         (expand_vector_comparison): Do not expand a comparison if all
15333         uses are consumed by a VEC_COND_EXPR.
15334         (expand_vector_operation): Change void return type to bool.
15335         (expand_vector_operations_1): Pass dce_ssa_names.
15337 2020-07-02  Ilya Leoshkevich  <iii@linux.ibm.com>
15339         PR bootstrap/95700
15340         * system.h (NULL): Redefine to nullptr.
15342 2020-07-02  Jakub Jelinek  <jakub@redhat.com>
15344         PR tree-optimization/95857
15345         * tree-cfg.c (group_case_labels_stmt): When removing an unreachable
15346         base_bb, remember all forced and non-local labels on it and later
15347         treat those as if they have NULL label_to_block.  Formatting fix.
15348         Fix a comment typo.
15350 2020-07-02  Richard Biener  <rguenther@suse.de>
15352         PR tree-optimization/96022
15353         * tree-vect-stmts.c (vectorizable_shift): Only use the
15354         first vector stmt when extracting the scalar shift amount.
15355         * tree-vect-slp.c (vect_build_slp_tree_2): Also build unary
15356         nodes with all-scalar children from scalars but not stores.
15357         (vect_analyze_slp_instance): Mark the node not failed.
15359 2020-07-02  Felix Yang  <felix.yang@huawei.com>
15361         PR tree-optimization/95961
15362         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use the
15363         number of scalars instead of the number of vectors as an upper bound
15364         for the loop saving info about DR in the hash table.  Remove unused
15365         local variables.
15367 2020-07-02  Jakub Jelinek  <jakub@redhat.com>
15369         * omp-expand.c (expand_omp_for): Diagnose non-rectangular loops with
15370         invalid steps - ((m2 - m1) * incr_outer) % incr must be 0 in valid
15371         OpenMP non-rectangular loops.  Use XALLOCAVEC.
15373 2020-07-02  Martin Liska  <mliska@suse.cz>
15375         PR gcov-profile/95348
15376         * coverage.c (read_counts_file): Read only COUNTERS that are
15377         not all-zero.
15378         * gcov-dump.c (tag_function): Change signature from unsigned to
15379         signed integer.
15380         (tag_blocks): Likewise.
15381         (tag_arcs): Likewise.
15382         (tag_lines): Likewise.
15383         (tag_counters): Likewise.
15384         (tag_summary): Likewise.
15385         * gcov.c (read_count_file): Read all non-zero counters
15386         sensitively.
15388 2020-07-02  Kito Cheng  <kito.cheng@sifive.com>
15390         * config/riscv/multilib-generator (arch_canonicalize): Handle
15391         multi-letter extension.
15392         Using underline as separator between different extensions.
15394 2020-07-01  Pip Cet  <pipcet@gmail.com>
15396         * spellcheck.c (test_data): Add problematic strings.
15397         (test_metric_conditions): Don't test the triangle inequality
15398         condition, which our distance function does not satisfy.
15400 2020-07-01  Omar Tahir  <omar.tahir@arm.com>
15402         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Always
15403         generate a BTI instruction.
15405 2020-07-01  Jeff Law  <law@redhat.com>
15407         PR tree-optimization/94882
15408         * match.pd (x & y) - (x | y) - 1 -> ~(x ^ y): New simplification.
15410 2020-07-01  Jeff Law  <law@redhat.com>
15412         * config/m68k/m68k.c (m68k_output_btst): Drop "register" keyword.
15413         (emit_move_sequence, output_iorsi3, output_xorsi3): Likewise.
15415 2020-07-01  Andrea Corallo  <andrea.corallo@arm.com>
15417         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add enums
15418         for 64bits fpsr/fpcr getter setters builtin variants.
15419         (aarch64_init_fpsr_fpcr_builtins): New function.
15420         (aarch64_general_init_builtins): Modify to make use of the later.
15421         (aarch64_expand_fpsr_fpcr_setter): New function.
15422         (aarch64_general_expand_builtin): Modify to make use of the later.
15423         * config/aarch64/aarch64.md (@aarch64_set_<fpscr_name><GPI:mode>)
15424         (@aarch64_get_<fpscr_name><GPI:mode>): New patterns replacing and
15425         generalizing 'get_fpcr', 'set_fpsr'.
15426         * config/aarch64/iterators.md (GET_FPSCR, SET_FPSCR): New int
15427         iterators.
15428         (fpscr_name): New int attribute.
15429         * doc/extend.texi (__builtin_aarch64_get_fpcr64)
15430         (__builtin_aarch64_set_fpcr64, __builtin_aarch64_get_fpsr64)
15431         (__builtin_aarch64_set_fpsr64): Add into AArch64 Built-in
15432         Functions.
15434 2020-07-01  Martin Liska  <mliska@suse.cz>
15436         * gcov.c (print_usage): Avoid trailing space for -j option.
15438 2020-07-01  Richard Biener  <rguenther@suse.de>
15440         PR tree-optimization/95839
15441         * tree-vect-slp.c (vect_slp_tree_uniform_p): Pre-existing
15442         vectors are not uniform.
15443         (vect_build_slp_tree_1): Handle BIT_FIELD_REFs of
15444         vector registers.
15445         (vect_build_slp_tree_2): For groups of lane extracts
15446         from a vector register generate a permute node
15447         with a special child representing the pre-existing vector.
15448         (vect_prologue_cost_for_slp): Pre-existing vectors cost nothing.
15449         (vect_slp_analyze_node_operations): Use SLP_TREE_LANES.
15450         (vectorizable_slp_permutation): Do not generate or cost identity
15451         permutes.
15452         (vect_schedule_slp_instance): Handle pre-existing vector
15453         that are function arguments.
15455 2020-07-01  Richard Biener  <rguenther@suse.de>
15457         * system.h (INCLUDE_ISL): New guarded include.
15458         * graphite-dependences.c: Use it.
15459         * graphite-isl-ast-to-gimple.c: Likewise.
15460         * graphite-optimize-isl.c: Likewise.
15461         * graphite-poly.c: Likewise.
15462         * graphite-scop-detection.c: Likewise.
15463         * graphite-sese-to-poly.c: Likewise.
15464         * graphite.c: Likewise.
15465         * graphite.h: Drop the includes here.
15467 2020-07-01  Martin Liska  <mliska@suse.cz>
15469         * gcov.c (print_usage): Shorted option description for -j
15470         option.
15472 2020-07-01  Martin Liska  <mliska@suse.cz>
15474         * doc/gcov.texi: Rename 2 options.
15475         * gcov.c (print_usage): Rename -i,--json-format to
15476         -j,--json-format and -j,--human-readable to -H,--human-readable.
15477         (process_args): Fix up parsing.  Document obsolete options and
15478         how are they changed.
15480 2020-07-01  Jeff Law  <law@redhat.com>
15482         * config/pa/pa.c (pa_emit_move_sequence): Drop register keyword.
15483         (pa_output_ascii): Likewise.
15485 2020-07-01  Kito Cheng  <kito.cheng@sifive.com>
15487         * common/config/riscv/riscv-common.c (riscv_subset_t): New field
15488         added.
15489         (riscv_subset_list::parsing_subset_version): Add parameter for
15490         indicate explicitly version, and handle explicitly version.
15491         (riscv_subset_list::handle_implied_ext): Ditto.
15492         (riscv_subset_list::add): Ditto.
15493         (riscv_subset_t::riscv_subset_t): Init new field.
15494         (riscv_subset_list::to_string): Always output version info if version
15495         explicitly specified.
15496         (riscv_subset_list::parsing_subset_version): Handle explicitly
15497         arch version.
15498         (riscv_subset_list::parse_std_ext): Ditto.
15499         (riscv_subset_list::parse_multiletter_ext): Ditto.
15501 2020-06-30  Richard Sandiford  <richard.sandiford@arm.com>
15503         PR target/92789
15504         PR target/95726
15505         * config/aarch64/aarch64.c (aarch64_attribute_table): Add
15506         "Advanced SIMD type".
15507         (aarch64_comp_type_attributes): Check that the "Advanced SIMD type"
15508         attributes are equal.
15509         * config/aarch64/aarch64-builtins.c: Include stringpool.h and
15510         attribs.h.
15511         (aarch64_mangle_builtin_vector_type): Use the mangling recorded
15512         in the "Advanced SIMD type" attribute.
15513         (aarch64_init_simd_builtin_types): Add an "Advanced SIMD type"
15514         attribute to each Advanced SIMD type, using the mangled type
15515         as the attribute's single argument.
15517 2020-06-30  Christophe Lyon  <christophe.lyon@linaro.org>
15519         PR target/94743
15520         * config/arm/arm.c (arm_handle_isr_attribute): Warn if
15521         -mgeneral-regs-only is not used.
15523 2020-06-30  Yang Yang  <yangyang305@huawei.com>
15525         PR tree-optimization/95855
15526         * gimple-ssa-split-paths.c (is_feasible_trace): Add extra
15527         checks to recognize a missed if-conversion opportunity when
15528         judging whether to duplicate a block.
15530 2020-06-29  Segher Boessenkool  <segher@kernel.crashing.org>
15532         * doc/extend.texi: Change references to "future architecture" to
15533         "ISA 3.1", "-mcpu=future" to "-mcpu=power10", and remove vaguer
15534         references to "future" (because the future is now).
15536 2020-06-29  Segher Boessenkool  <segher@kernel.crashing.org>
15538         * config/rs6000/rs6000.md (isa): Rename "fut" to "p10".
15540 2020-06-29  Roger Sayle  <roger@nextmovesoftware.com>
15542         * simplify-rtx.c (simplify_distributive_operation): New function
15543         to un-distribute a binary operation of two binary operations.
15544         (X & C) ^ (Y & C) to (X ^ Y) & C, when C is simple (i.e. a constant).
15545         (simplify_binary_operation_1) <IOR, XOR, AND>: Call it from here
15546         when appropriate.
15547         (test_scalar_int_ops): New function for unit self-testing
15548         scalar integer transformations in simplify-rtx.c.
15549         (test_scalar_ops): Call test_scalar_int_ops for each integer mode.
15550         (simplify_rtx_c_tests): Call test_scalar_ops.
15552 2020-06-29  Richard Biener  <rguenther@suse.de>
15554         PR tree-optimization/95916
15555         * tree-vect-slp.c (vect_schedule_slp_instance): Explicitely handle
15556         the case of not vectorized externals.
15558 2020-06-29  Richard Biener  <rguenther@suse.de>
15560         * tree-vectorizer.h: Do not include <utility>.
15562 2020-06-29  Martin Liska  <mliska@suse.cz>
15564         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Use gsi_bb
15565         instead of gimple_stmt_iterator::bb.
15566         * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
15567         * tree-vectorizer.h: Likewise.
15569 2020-06-29  Andrew Stubbs  <ams@codesourcery.com>
15571         * config/gcn/gcn-hsa.h (DBX_REGISTER_NUMBER): New macro.
15572         * config/gcn/gcn-protos.h (gcn_dwarf_register_number): New prototype.
15573         * config/gcn/gcn.c (gcn_expand_prologue): Add RTX_FRAME_RELATED_P
15574         and REG_FRAME_RELATED_EXPR to stack and frame pointer adjustments.
15575         (gcn_dwarf_register_number): New function.
15576         (gcn_dwarf_register_span): New function.
15577         (TARGET_DWARF_REGISTER_SPAN): New hook macro.
15579 2020-06-29  Kaipeng Zhou  <zhoukaipeng3@huawei.com>
15581         PR tree-optimization/95854
15582         * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Return NULL
15583         if operand 1 or 2 of a BIT_FIELD_REF cannot be converted to
15584         unsigned HOST_WIDE_INT.
15586 2020-06-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15588         * config/sparc/sparc.c (epilogue_renumber): Remove register.
15589         (sparc_print_operand_address): Likewise.
15590         (sparc_type_code): Likewise.
15591         (set_extends): Likewise.
15593 2020-06-29  Martin Liska  <mliska@suse.cz>
15595         PR tree-optimization/92860
15596         * optc-save-gen.awk: Add exceptions for arc target.
15598 2020-06-29  Frederik Harwath  <frederik@codesourcery.com>
15600         * doc/sourcebuild.texi: Describe globbing of the
15601         dump file scanning commands "suffix" argument.
15603 2020-06-28  Martin Sebor  <msebor@redhat.com>
15605         PR c++/86568
15606         * calls.c (maybe_warn_rdwr_sizes): Use location of argument if
15607         available.
15608         * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same.  Adjust
15609         indentation.
15610         * tree.c (get_nonnull_args): Consider the this pointer implicitly
15611         nonnull.
15612         * var-tracking.c (deps_vec): New type.
15613         (var_loc_dep_vec): New function.
15614         (VAR_LOC_DEP_VEC): Use it.
15616 2020-06-28  Kewen Lin  <linkw@linux.ibm.com>
15618         * internal-fn.c (direct_mask_load_optab_supported_p): Use
15619         convert_optab_supported_p instead of direct_optab_supported_p.
15620         (direct_mask_store_optab_supported_p): Likewise.
15622 2020-06-27  Aldy Hernandez  <aldyh@redhat.com>
15624         * gimple-ssa-evrp-analyze.h (vrp_visit_cond_stmt): Use
15625         simplify_using_ranges class.
15626         * gimple-ssa-evrp.c (class evrp_folder): New simplify_using_ranges
15627         field.  Adjust all methods to use new field.
15628         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Use
15629         simplify_using_ranges class.
15630         * tree-vrp.c (class vrp_folder): New simplify_using_ranges
15631         field.  Adjust all methods to use new field.
15632         (simplify_stmt_for_jump_threading): Use simplify_using_ranges class.
15633         (vrp_prop::vrp_finalize): New vrp_folder argument.
15634         (execute_vrp): Pass folder to vrp_finalize.  Use
15635         simplify_using_ranges class.
15636         Remove cleanup_edges_and_switches call.
15637         * vr-values.c (vr_values::op_with_boolean_value_range_p): Change
15638         value_range_equiv uses to value_range.
15639         (simplify_using_ranges::op_with_boolean_value_range_p): Use
15640         simplify_using_ranges class.
15641         (check_for_binary_op_overflow): Make static.
15642         (vr_values::extract_range_basic): Pass this to
15643         check_for_binary_op_overflow.
15644         (compare_range_with_value): Change value_range_equiv uses to
15645         value_range.
15646         (vr_values::vr_values): Initialize simplifier field.
15647         Remove uses of to_remove_edges and to_update_switch_stmts.
15648         (vr_values::~vr_values): Remove uses of to_remove_edges and
15649         to_update_switch_stmts.
15650         (vr_values::get_vr_for_comparison): Move to simplify_using_ranges
15651         class.
15652         (vr_values::compare_name_with_value): Same.
15653         (vr_values::compare_names): Same.
15654         (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
15655         (vr_values::vrp_evaluate_conditional): Same.
15656         (vr_values::vrp_visit_cond_stmt): Same.
15657         (find_case_label_ranges): Change value_range_equiv uses to
15658         value_range.
15659         (vr_values::extract_range_from_stmt): Use simplify_using_ranges class.
15660         (vr_values::simplify_truth_ops_using_ranges): Move to
15661         simplify_using_ranges class.
15662         (vr_values::simplify_div_or_mod_using_ranges): Same.
15663         (vr_values::simplify_min_or_max_using_ranges): Same.
15664         (vr_values::simplify_abs_using_ranges): Same.
15665         (vr_values::simplify_bit_ops_using_ranges): Same.
15666         (test_for_singularity): Change value_range_equiv uses to
15667         value_range.
15668         (range_fits_type_p): Same.
15669         (vr_values::simplify_cond_using_ranges_1): Same.
15670         (vr_values::simplify_cond_using_ranges_2): Make extern.
15671         (vr_values::fold_cond): Move to simplify_using_ranges class.
15672         (vr_values::simplify_switch_using_ranges): Same.
15673         (vr_values::cleanup_edges_and_switches): Same.
15674         (vr_values::simplify_float_conversion_using_ranges): Same.
15675         (vr_values::simplify_internal_call_using_ranges): Same.
15676         (vr_values::two_valued_val_range_p): Same.
15677         (vr_values::simplify_stmt_using_ranges): Move to...
15678         (simplify_using_ranges::simplify): ...here.
15679         * vr-values.h (class vr_values): Move all the simplification of
15680         statements using ranges methods and code from here...
15681         (class simplify_using_ranges): ...to here.
15682         (simplify_cond_using_ranges_2): New extern prototype.
15684 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
15686         * omp-general.h (struct omp_for_data_loop): Add non_rect_referenced
15687         member, move outer member.
15688         (struct omp_for_data): Add first_nonrect and last_nonrect members.
15689         * omp-general.c (omp_extract_for_data): Initialize first_nonrect,
15690         last_nonrect and non_rect_referenced members.
15691         * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
15692         loops.
15693         (expand_omp_for_init_vars): Add nonrect_bounds parameter.  Handle
15694         non-rectangular loops.
15695         (extract_omp_for_update_vars): Likewise.
15696         (expand_omp_for_generic, expand_omp_for_static_nochunk,
15697         expand_omp_for_static_chunk, expand_omp_simd,
15698         expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): Adjust
15699         expand_omp_for_init_vars and extract_omp_for_update_vars callers.
15700         (expand_omp_for): Don't sorry on non-composite worksharing-loop or
15701         distribute.
15703 2020-06-26  H.J. Lu  <hjl.tools@gmail.com>
15705         PR target/95655
15706         * config/i386/gnu-user.h (SUBTARGET_FRAME_POINTER_REQUIRED):
15707         Removed.
15708         * config/i386/i386.c (ix86_frame_pointer_required): Update
15709         comments.
15711 2020-06-26  Yichao Yu  <yyc1992@gmail.com>
15713         * multiple_target.c (redirect_to_specific_clone): Fix tests
15714         to check individual attribute rather than an attribute list.
15716 2020-06-26  Peter Bergner  <bergner@linux.ibm.com>
15718         * config/rs6000/rs6000-call.c (cpu_is_info) <power10>: New.
15719         * doc/extend.texi (PowerPC Built-in Functions): Document power10,
15720         arch_3_1 and mma.
15722 2020-06-26  Marek Polacek  <polacek@redhat.com>
15724         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
15725         * doc/standards.texi (C Language): Correct the default dialect.
15726         (C++ Language): Update the default for C++ to gnu++17.
15728 2020-06-26  Eric Botcazou  <ebotcazou@adacore.com>
15730         * tree-ssa-reassoc.c (dump_range_entry): New function.
15731         (debug_range_entry): New debug function.
15732         (update_range_test): Invoke dump_range_entry for dumping.
15733         (optimize_range_tests_to_bit_test): Merge the entry test in the
15734         bit test when possible and lower the profitability threshold.
15736 2020-06-26  Richard Biener  <rguenther@suse.de>
15738         PR tree-optimization/95897
15739         * tree-vectorizer.h (vectorizable_induction): Remove
15740         unused gimple_stmt_iterator * parameter.
15741         * tree-vect-loop.c (vectorizable_induction): Likewise.
15742         (vect_analyze_loop_operations): Adjust.
15743         * tree-vect-stmts.c (vect_analyze_stmt): Likewise.
15744         (vect_transform_stmt): Likewise.
15745         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust
15746         for fold-left reductions, clarify existing reduction case.
15748 2020-06-25  Nick Clifton  <nickc@redhat.com>
15750         * config/m32r/m32r.md (movsicc): Disable pattern.
15752 2020-06-25  Richard Biener  <rguenther@suse.de>
15754         PR tree-optimization/95839
15755         * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove premature
15756         check on the number of datarefs.
15758 2020-06-25  Iain Sandoe  <iain@sandoe.co.uk>
15760         * config/rs6000/rs6000-call.c (mma_init_builtins): Cast
15761         the insn_data n_operands value to unsigned.
15763 2020-06-25  Richard Biener  <rguenther@suse.de>
15765         * tree-vect-slp.c (vect_schedule_slp_instance): Always use
15766         vector defs to determine insertion place.
15768 2020-06-25  H.J. Lu  <hjl.tools@gmail.com>
15770         PR target/95874
15771         * config/i386/i386.h (PTA_ICELAKE_CLIENT): Remove PTA_CLWB.
15772         (PTA_ICELAKE_SERVER): Add PTA_CLWB.
15773         (PTA_TIGERLAKE): Add PTA_CLWB.
15775 2020-06-25  Richard Biener  <rguenther@suse.de>
15777         PR tree-optimization/95866
15778         * tree-vect-stmts.c (vectorizable_shift): Reject incompatible
15779         vectorized shift operands.  For scalar shifts use lane zero
15780         of a vectorized shift operand.
15782 2020-06-25  Martin Liska  <mliska@suse.cz>
15784         PR tree-optimization/95745
15785         PR middle-end/95830
15786         * gimple-isel.cc (gimple_expand_vec_cond_exprs): Delete dead
15787         SSA_NAMEs used as the first argument of a VEC_COND_EXPR.  Always
15788         return 0.
15789         * tree-vect-generic.c (expand_vector_condition): Remove dead
15790         SSA_NAMEs used as the first argument of a VEC_COND_EXPR.
15792 2020-06-24  Will Schmidt  <will_schmidt@vnet.ibm.com>
15794         PR target/94954
15795         * config/rs6000/altivec.h (vec_pack_to_short_fp32): Update.
15796         * config/rs6000/altivec.md (UNSPEC_CONVERT_4F32_8F16): New unspec.
15797         (convert_4f32_8f16): New define_expand
15798         * config/rs6000/rs6000-builtin.def (convert_4f32_8f16): New builtin define
15799         and overload.
15800         * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_CONVERT_4F32_8F16): New
15801         overloaded builtin entry.
15802         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPHP): New unspec.
15803         (vsx_xvcvsphp): New define_insn.
15805 2020-06-24  Roger Sayle  <roger@nextmovesoftware.com>
15806             Segher Boessenkool  <segher@kernel.crashing.org>
15808         * simplify-rtx.c (simplify_unary_operation_1): Simplify rotates by 0.
15810 2020-06-24  Roger Sayle  <roger@nextmovesoftware.com>
15812         * simplify-rtx.c (simplify_unary_operation_1): Simplify
15813         (parity (parity x)) as (parity x), i.e. PARITY is idempotent.
15815 2020-06-24  Richard Biener  <rguenther@suse.de>
15817         PR tree-optimization/95866
15818         * tree-vect-slp.c (vect_slp_tree_uniform_p): New.
15819         (vect_build_slp_tree_2): Properly reset matches[0],
15820         ignore uniform constants.
15822 2020-06-24  H.J. Lu  <hjl.tools@gmail.com>
15824         PR target/95660
15825         * common/config/i386/cpuinfo.h (get_intel_cpu): Remove brand_id.
15826         (cpu_indicator_init): Likewise.
15827         * config/i386/driver-i386.c (host_detect_local_cpu): Updated.
15829 2020-06-24  H.J. Lu  <hjl.tools@gmail.com>
15831         PR target/95774
15832         * common/config/i386/cpuinfo.h (get_intel_cpu): Add Cooper Lake
15833         detection with AVX512BF16.
15835 2020-06-24  H.J. Lu  <hjl.tools@gmail.com>
15837         PR target/95843
15838         * common/config/i386/i386-isas.h: New file.  Extracted from
15839         gcc/config/i386/i386-builtins.c.
15840         (_isa_names_table): Add option.
15841         (ISA_NAMES_TABLE_START): New.
15842         (ISA_NAMES_TABLE_END): Likewise.
15843         (ISA_NAMES_TABLE_ENTRY): Likewise.
15844         (isa_names_table): Defined with ISA_NAMES_TABLE_START,
15845         ISA_NAMES_TABLE_END and ISA_NAMES_TABLE_ENTRY.  Add more ISAs
15846         from enum processor_features.
15847         * config/i386/driver-i386.c: Include
15848         "common/config/i386/cpuinfo.h" and
15849         "common/config/i386/i386-isas.h".
15850         (has_feature): New macro.
15851         (host_detect_local_cpu): Call cpu_indicator_init to get CPU
15852         features.  Use has_feature to detect processor features.  Call
15853         Call get_intel_cpu to get the newer Intel CPU name.  Use
15854         isa_names_table to generate command-line options.
15855         * config/i386/i386-builtins.c: Include
15856         "common/config/i386/i386-isas.h".
15857         (_arch_names_table): Removed.
15858         (isa_names_table): Likewise.
15860 2020-06-24  H.J. Lu  <hjl.tools@gmail.com>
15862         PR target/95259
15863         * common/config/i386/cpuinfo.h: New file.
15864         (__processor_model): Moved from libgcc/config/i386/cpuinfo.h.
15865         (__processor_model2): New.
15866         (CHECK___builtin_cpu_is): New.  Defined as empty if not defined.
15867         (has_cpu_feature): New function.
15868         (set_cpu_feature): Likewise.
15869         (get_amd_cpu): Moved from libgcc/config/i386/cpuinfo.c.  Use
15870         CHECK___builtin_cpu_is.  Return AMD CPU name.
15871         (get_intel_cpu): Moved from libgcc/config/i386/cpuinfo.c.  Use
15872         Use CHECK___builtin_cpu_is.  Return Intel CPU name.
15873         (get_available_features): Moved from libgcc/config/i386/cpuinfo.c.
15874         Also check FEATURE_3DNOW, FEATURE_3DNOWP, FEATURE_ADX,
15875         FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT, FEATURE_CLWB,
15876         FEATURE_CLZERO, FEATURE_CMPXCHG16B, FEATURE_CMPXCHG8B,
15877         FEATURE_ENQCMD, FEATURE_F16C, FEATURE_FSGSBASE, FEATURE_FXSAVE,
15878         FEATURE_HLE, FEATURE_IBT, FEATURE_LAHF_LM, FEATURE_LM,
15879         FEATURE_LWP, FEATURE_LZCNT, FEATURE_MOVBE, FEATURE_MOVDIR64B,
15880         FEATURE_MOVDIRI, FEATURE_MWAITX, FEATURE_OSXSAVE,
15881         FEATURE_PCONFIG, FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
15882         FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
15883         FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
15884         FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
15885         FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
15886         FEATURE_XSAVEOPT and FEATURE_XSAVES
15887         (cpu_indicator_init): Moved from libgcc/config/i386/cpuinfo.c.
15888         Also update cpu_model2.
15889         * common/config/i386/i386-cpuinfo.h (processor_vendor): Add
15890         Add VENDOR_CENTAUR, VENDOR_CYRIX and VENDOR_NSC.
15891         (processor_features): Moved from gcc/config/i386/i386-builtins.c.
15892         Renamed F_XXX to FEATURE_XXX.  Add FEATURE_3DNOW, FEATURE_3DNOWP,
15893         FEATURE_ADX, FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT,
15894         FEATURE_CLWB, FEATURE_CLZERO, FEATURE_CMPXCHG16B,
15895         FEATURE_CMPXCHG8B, FEATURE_ENQCMD, FEATURE_F16C,
15896         FEATURE_FSGSBASE, FEATURE_FXSAVE, FEATURE_HLE, FEATURE_IBT,
15897         FEATURE_LAHF_LM, FEATURE_LM, FEATURE_LWP, FEATURE_LZCNT,
15898         FEATURE_MOVBE, FEATURE_MOVDIR64B, FEATURE_MOVDIRI,
15899         FEATURE_MWAITX, FEATURE_OSXSAVE, FEATURE_PCONFIG,
15900         FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
15901         FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
15902         FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
15903         FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
15904         FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
15905         FEATURE_XSAVEOPT, FEATURE_XSAVES and CPU_FEATURE_MAX.
15906         (SIZE_OF_CPU_FEATURES): New.
15907         * config/i386/i386-builtins.c (processor_features): Removed.
15908         (isa_names_table): Replace F_XXX with FEATURE_XXX.
15909         (fold_builtin_cpu): Change __cpu_features2 to an array.
15911 2020-06-24  H.J. Lu  <hjl.tools@gmail.com>
15913         PR target/95842
15914         * common/config/i386/i386-common.c (processor_alias_table): Add
15915         processor model and priority to each entry.
15916         (pta_size): Updated with -6.
15917         (num_arch_names): New.
15918         * common/config/i386/i386-cpuinfo.h: New file.
15919         * config/i386/i386-builtins.c (feature_priority): Removed.
15920         (processor_model): Likewise.
15921         (_arch_names_table): Likewise.
15922         (arch_names_table): Likewise.
15923         (_isa_names_table): Replace P_ZERO with P_NONE.
15924         (get_builtin_code_for_version): Replace P_ZERO with P_NONE.  Use
15925         processor_alias_table.
15926         (fold_builtin_cpu): Replace arch_names_table with
15927         processor_alias_table.
15928         * config/i386/i386.h: Include "common/config/i386/i386-cpuinfo.h".
15929         (pta): Add model and priority.
15930         (num_arch_names): New.
15932 2020-06-24  Richard Biener  <rguenther@suse.de>
15934         * tree-vectorizer.h (vect_find_first_scalar_stmt_in_slp):
15935         Declare.
15936         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
15937         Simplify for new position of vectorized SLP loads.
15938         (vect_slp_analyze_node_dependences): Adjust for it.
15939         (vect_slp_analyze_and_verify_node_alignment): Compute alignment
15940         for the first stmts dataref.
15941         * tree-vect-slp.c (vect_find_first_scalar_stmt_in_slp): New.
15942         (vect_schedule_slp_instance): Emit loads before the
15943         first scalar stmt.
15944         * tree-vect-stmts.c (vectorizable_load): Do what the comment
15945         says and use vect_find_first_scalar_stmt_in_slp.
15947 2020-06-24  Richard Biener  <rguenther@suse.de>
15949         PR tree-optimization/95856
15950         * tree-vectorizer.c (vect_stmt_dominates_stmt_p): Honor
15951         region marker -1u.
15953 2020-06-24  Jakub Jelinek  <jakub@redhat.com>
15955         PR middle-end/95810
15956         * fold-const.c (fold_cond_expr_with_comparison): Optimize
15957         A <= 0 ? A : -A into (type)-absu(A) rather than -abs(A).
15959 2020-06-24  Jakub Jelinek  <jakub@redhat.com>
15961         * omp-low.c (lower_omp_for): Fix two pastos.
15963 2020-06-24  Martin Liska  <mliska@suse.cz>
15965         * optc-save-gen.awk: Compare string options in cl_optimization_compare
15966         by strcmp.
15968 2020-06-23  Aaron Sawdey  <acsawdey@linux.ibm.com>
15970         * config.gcc: Identify power10 as a 64-bit processor and as valid
15971         for --with-cpu and --with-tune.
15973 2020-06-23  David Edelsohn  <dje.gcc@gmail.com>
15975         * Makefile.in (LANG_MAKEFRAGS): Same.
15976         (tmake_file): Use -include.
15977         (xmake_file): Same.
15979 2020-06-23  Michael Meissner  <meissner@linux.ibm.com>
15981         * REVISION: Delete file meant for a private branch.
15983 2020-06-23  Andre Vieira  <andre.simoesdiasvieira@arm.com>
15985         PR target/95646
15986         * config/arm/arm.c: (cmse_nonsecure_entry_clear_before_return): Use
15987         'callee_saved_reg_p' instead of 'calL_used_or_fixed_reg_p'.
15989 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
15991         * collect-utils.h (dumppfx): New.
15992         * collect-utils.c (dumppfx): Likewise.
15993         * lto-wrapper.c (run_gcc): Set global dumppfx.
15994         (compile_offload_image): Pass a -dumpbase on to mkoffload.
15995         * config/nvptx/mkoffload.c (ptx_dumpbase): New.
15996         (main): Handle incoming -dumpbase.  Set ptx_dumpbase.  Obey
15997         save_temps.
15998         (compile_native): Pass -dumpbase et al to compiler.
15999         * config/gcn/mkoffload.c (gcn_dumpbase): New.
16000         (main): Handle incoming -dumpbase.  Set gcn_dumpbase.  Obey
16001         save_temps.  Pass -dumpbase et al to offload target compiler.
16002         (compile_native): Pass -dumpbase et al to compiler.
16004 2020-06-23  Michael Meissner  <meissner@linux.ibm.com>
16006         * REVISION: New file.
16008 2020-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
16010         * config/rs6000/altivec.h: Use _ARCH_PWR10, not _ARCH_PWR_FUTURE.
16011         Update comment for ISA 3.1.
16012         * config/rs6000/altivec.md: Use TARGET_POWER10, not TARGET_FUTURE.
16013         * config/rs6000/driver-rs6000.c (asm_names): Use -mpwr10 for power10
16014         on AIX, and -mpower10 elsewhere.
16015         * config/rs6000/future.md: Delete.
16016         * config/rs6000/linux64.h: Update comments.  Use TARGET_POWER10, not
16017         TARGET_FUTURE.
16018         * config/rs6000/power10.md: New file.
16019         * config/rs6000/ppc-auxv.h: Use PPC_PLATFORM_POWER10, not
16020         PPC_PLATFORM_FUTURE.
16021         * config/rs6000/rs6000-builtin.def: Update comments.  Use BU_P10V_*
16022         names instead of BU_FUTURE_V_* names.  Use RS6000_BTM_P10 instead of
16023         RS6000_BTM_FUTURE.  Use P10_BUILTIN_* instead of FUTURE_BUILTIN_*.
16024         Use BU_P10_* instead of BU_FUTURE_*.
16025         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
16026         _ARCH_PWR10 instead of _ARCH_PWR_FUTURE.
16027         (altivec_resolve_overloaded_builtin): Use P10_BUILTIN_VEC_XXEVAL, not
16028         FUTURE_BUILTIN_VEC_XXEVAL.
16029         * config/rs6000/rs6000-call.c: Use P10_BUILTIN_*, not FUTURE_BUILTIN_*.
16030         Update compiler messages.
16031         * config/rs6000/rs6000-cpus.def: Update comments.  Use ISA_3_1_*, not
16032         ISA_FUTURE_*.  Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE.
16033         * config/rs6000/rs6000-opts.h: Use PROCESSOR_POWER10, not
16034         PROCESSOR_FUTURE.
16035         * config/rs6000/rs6000-string.c: Ditto.
16036         * config/rs6000/rs6000-tables.opt (rs6000_cpu_opt_value): Use "power10"
16037         instead of "future", reorder it to right after "power9".
16038         * config/rs6000/rs6000.c: Update comments.  Use OPTION_MASK_POWER10,
16039         not OPTION_MASK_FUTURE.  Use TARGET_POWER10, not TARGET_FUTURE.  Use
16040         RS6000_BTM_P10, not RS6000_BTM_FUTURE.  Update compiler messages.
16041         Use PROCESSOR_POWER10, not PROCESSOR_FUTURE.  Use ISA_3_1_MASKS_SERVER,
16042         not ISA_FUTURE_MASKS_SERVER.
16043         (rs6000_opt_masks): Use "power10" instead of "future".
16044         (rs6000_builtin_mask_names): Ditto.
16045         (rs6000_disable_incompatible_switches): Ditto.
16046         * config/rs6000/rs6000.h: Use -mpower10, not -mfuture.  Use
16047         -mcpu=power10, not -mcpu=future.  Use MASK_POWER10, not MASK_FUTURE.
16048         Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE.  Use RS6000_BTM_P10,
16049         not RS6000_BTM_FUTURE.
16050         * config/rs6000/rs6000.md: Use "power10", not "future".  Use
16051         TARGET_POWER10, not TARGET_FUTURE.  Include "power10.md", not
16052         "future.md".
16053         * config/rs6000/rs6000.opt (mfuture): Delete.
16054         (mpower10): New.
16055         * config/rs6000/t-rs6000: Use "power10.md", not "future.md".
16056         * config/rs6000/vsx.md: Use TARGET_POWER10, not TARGET_FUTURE.
16058 2020-06-22  Richard Sandiford  <richard.sandiford@arm.com>
16060         * coretypes.h (first_type): Delete.
16061         * recog.h (insn_gen_fn::operator()): Go back to using a decltype.
16063 2020-06-22  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
16065         * doc/sourcebuild.texi (arm_v8_1m_mve_fp_ok): Add item.
16066         (arm_mve_hw): Likewise.
16068 2020-06-22  H.J. Lu  <hjl.tools@gmail.com>
16070         PR target/95791
16071         * config/i386/i386.c (ix86_dirflag_mode_needed): Skip
16072         EXT_REX_SSE_REG_P.
16074 2020-06-22  Richard Biener  <rguenther@suse.de>
16076         PR tree-optimization/95770
16077         * tree-vect-slp.c (vect_schedule_slp_instance): Also consider
16078         external defs.
16080 2020-06-22  Andrew Stubbs  <ams@codesourcery.com>
16082         * config/gcn/gcn.c (gcn_function_arg): Disallow vector arguments.
16083         (gcn_return_in_memory): Return vectors in memory.
16085 2020-06-22  Jakub Jelinek  <jakub@redhat.com>
16087         * omp-general.c (omp_extract_for_data): For triangular loops with
16088         all loop invariant expressions constant where the innermost loop is
16089         executed at least once compute number of iterations at compile time.
16091 2020-06-22  Kito Cheng  <kito.cheng@sifive.com>
16093         * config/riscv/riscv.h (ASM_SPEC): Remove riscv_expand_arch call.
16094         (DRIVER_SELF_SPECS): New.
16096 2020-06-22  Kito Cheng  <kito.cheng@sifive.com>
16098         * config/riscv/riscv-builtins.c (RISCV_FTYPE_NAME0): New.
16099         (RISCV_FTYPE_ATYPES0): New.
16100         (riscv_builtins): Using RISCV_USI_FTYPE for frflags.
16101         * config/riscv/riscv-ftypes.def: Remove VOID argument.
16103 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
16105         * config.gcc: Use t-aix64, biarch64 and default64 for cpu_is_64bit.
16106         * config/rs6000/aix72.h (ASM_SPEC): Remove aix64 option.
16107         (ASM_SPEC32): New.
16108         (ASM_SPEC64): New.
16109         (ASM_CPU_SPEC): Remove vsx and altivec options.
16110         (CPP_SPEC_COMMON): Rename from CPP_SPEC.
16111         (CPP_SPEC32): New.
16112         (CPP_SPEC64): New.
16113         (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
16114         (TARGET_DEFAULT): Only define if not BIARCH.
16115         (LIB_SPEC_COMMON): Rename from LIB_SPEC.
16116         (LIB_SPEC32): New.
16117         (LIB_SPEC64): New.
16118         (LINK_SPEC_COMMON): Rename from LINK_SPEC.
16119         (LINK_SPEC32): New.
16120         (LINK_SPEC64): New.
16121         (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
16122         (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
16123         (CPP_SPEC): Same.
16124         (CPLUSPLUS_CPP_SPEC): Same.
16125         (LIB_SPEC): Same.
16126         (LINK_SPEC): Same.
16127         (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
16128         * config/rs6000/defaultaix64.h: New file.
16129         * config/rs6000/t-aix64: New file.
16131 2020-06-21  Peter Bergner  <bergner@linux.ibm.com>
16133         * config/rs6000/predicates.md (mma_assemble_input_operand): New.
16134         * config/rs6000/rs6000-builtin.def (BU_MMA_1, BU_MMA_V2, BU_MMA_3,
16135         BU_MMA_5, BU_MMA_6, BU_VSX_1): Add support macros for defining MMA
16136         built-in functions.
16137         (ASSEMBLE_ACC, ASSEMBLE_PAIR, DISASSEMBLE_ACC, DISASSEMBLE_PAIR,
16138         PMXVBF16GER2, PMXVBF16GER2NN, PMXVBF16GER2NP, PMXVBF16GER2PN,
16139         PMXVBF16GER2PP, PMXVF16GER2, PMXVF16GER2NN, PMXVF16GER2NP,
16140         PMXVF16GER2PN, PMXVF16GER2PP, PMXVF32GER, PMXVF32GERNN,
16141         PMXVF32GERNP, PMXVF32GERPN, PMXVF32GERPP, PMXVF64GER, PMXVF64GERNN,
16142         PMXVF64GERNP, PMXVF64GERPN, PMXVF64GERPP, PMXVI16GER2, PMXVI16GER2PP,
16143         PMXVI16GER2S, PMXVI16GER2SPP, PMXVI4GER8, PMXVI4GER8PP, PMXVI8GER4,
16144         PMXVI8GER4PP, PMXVI8GER4SPP, XVBF16GER2, XVBF16GER2NN, XVBF16GER2NP,
16145         XVBF16GER2PN, XVBF16GER2PP, XVCVBF16SP, XVCVSPBF16, XVF16GER2,
16146         XVF16GER2NN, XVF16GER2NP, XVF16GER2PN, XVF16GER2PP, XVF32GER,
16147         XVF32GERNN, XVF32GERNP, XVF32GERPN, XVF32GERPP, XVF64GER, XVF64GERNN,
16148         XVF64GERNP, XVF64GERPN, XVF64GERPP, XVI16GER2, XVI16GER2PP, XVI16GER2S,
16149         XVI16GER2SPP, XVI4GER8, XVI4GER8PP, XVI8GER4, XVI8GER4PP, XVI8GER4SPP,
16150         XXMFACC, XXMTACC, XXSETACCZ): Add MMA built-ins.
16151         * config/rs6000/rs6000.c (rs6000_emit_move): Use CONST_INT_P.
16152         Allow zero constants.
16153         (print_operand) <case 'A'>: New output modifier.
16154         (rs6000_split_multireg_move): Add support for inserting accumulator
16155         priming and depriming instructions.  Add support for splitting an
16156         assemble accumulator pattern.
16157         * config/rs6000/rs6000-call.c (mma_init_builtins, mma_expand_builtin,
16158         rs6000_gimple_fold_mma_builtin): New functions.
16159         (RS6000_BUILTIN_M): New macro.
16160         (def_builtin): Handle RS6000_BTC_QUAD and RS6000_BTC_PAIR attributes.
16161         (bdesc_mma): Add new MMA built-in support.
16162         (htm_expand_builtin): Use RS6000_BTC_OPND_MASK.
16163         (rs6000_invalid_builtin): Add handling of RS6000_BTM_FUTURE and
16164         RS6000_BTM_MMA.
16165         (rs6000_builtin_valid_without_lhs): Handle RS6000_BTC_VOID attribute.
16166         (rs6000_gimple_fold_builtin): Call rs6000_builtin_is_supported_p
16167         and rs6000_gimple_fold_mma_builtin.
16168         (rs6000_expand_builtin): Call mma_expand_builtin.
16169         Use RS6000_BTC_OPND_MASK.
16170         (rs6000_init_builtins): Adjust comment.  Call mma_init_builtins.
16171         (htm_init_builtins): Use RS6000_BTC_OPND_MASK.
16172         (builtin_function_type): Handle VSX_BUILTIN_XVCVSPBF16 and
16173         VSX_BUILTIN_XVCVBF16SP.
16174         * config/rs6000/rs6000.h (RS6000_BTC_QUINARY, RS6000_BTC_SENARY,
16175         RS6000_BTC_OPND_MASK, RS6000_BTC_QUAD, RS6000_BTC_PAIR,
16176         RS6000_BTC_QUADPAIR, RS6000_BTC_GIMPLE): New defines.
16177         (RS6000_BTC_PREDICATE, RS6000_BTC_ABS, RS6000_BTC_DST,
16178         RS6000_BTC_TYPE_MASK, RS6000_BTC_ATTR_MASK): Adjust values.
16179         * config/rs6000/mma.md (MAX_MMA_OPERANDS): New define_constant.
16180         (UNSPEC_MMA_ASSEMBLE_ACC, UNSPEC_MMA_PMXVBF16GER2,
16181         UNSPEC_MMA_PMXVBF16GER2NN, UNSPEC_MMA_PMXVBF16GER2NP,
16182         UNSPEC_MMA_PMXVBF16GER2PN, UNSPEC_MMA_PMXVBF16GER2PP,
16183         UNSPEC_MMA_PMXVF16GER2, UNSPEC_MMA_PMXVF16GER2NN,
16184         UNSPEC_MMA_PMXVF16GER2NP, UNSPEC_MMA_PMXVF16GER2PN,
16185         UNSPEC_MMA_PMXVF16GER2PP, UNSPEC_MMA_PMXVF32GER,
16186         UNSPEC_MMA_PMXVF32GERNN, UNSPEC_MMA_PMXVF32GERNP,
16187         UNSPEC_MMA_PMXVF32GERPN, UNSPEC_MMA_PMXVF32GERPP,
16188         UNSPEC_MMA_PMXVF64GER, UNSPEC_MMA_PMXVF64GERNN,
16189         UNSPEC_MMA_PMXVF64GERNP, UNSPEC_MMA_PMXVF64GERPN,
16190         UNSPEC_MMA_PMXVF64GERPP, UNSPEC_MMA_PMXVI16GER2,
16191         UNSPEC_MMA_PMXVI16GER2PP, UNSPEC_MMA_PMXVI16GER2S,
16192         UNSPEC_MMA_PMXVI16GER2SPP, UNSPEC_MMA_PMXVI4GER8,
16193         UNSPEC_MMA_PMXVI4GER8PP, UNSPEC_MMA_PMXVI8GER4,
16194         UNSPEC_MMA_PMXVI8GER4PP, UNSPEC_MMA_PMXVI8GER4SPP,
16195         UNSPEC_MMA_XVBF16GER2, UNSPEC_MMA_XVBF16GER2NN,
16196         UNSPEC_MMA_XVBF16GER2NP, UNSPEC_MMA_XVBF16GER2PN,
16197         UNSPEC_MMA_XVBF16GER2PP, UNSPEC_MMA_XVF16GER2, UNSPEC_MMA_XVF16GER2NN,
16198         UNSPEC_MMA_XVF16GER2NP, UNSPEC_MMA_XVF16GER2PN, UNSPEC_MMA_XVF16GER2PP,
16199         UNSPEC_MMA_XVF32GER, UNSPEC_MMA_XVF32GERNN, UNSPEC_MMA_XVF32GERNP,
16200         UNSPEC_MMA_XVF32GERPN, UNSPEC_MMA_XVF32GERPP, UNSPEC_MMA_XVF64GER,
16201         UNSPEC_MMA_XVF64GERNN, UNSPEC_MMA_XVF64GERNP, UNSPEC_MMA_XVF64GERPN,
16202         UNSPEC_MMA_XVF64GERPP, UNSPEC_MMA_XVI16GER2, UNSPEC_MMA_XVI16GER2PP,
16203         UNSPEC_MMA_XVI16GER2S, UNSPEC_MMA_XVI16GER2SPP, UNSPEC_MMA_XVI4GER8,
16204         UNSPEC_MMA_XVI4GER8PP, UNSPEC_MMA_XVI8GER4, UNSPEC_MMA_XVI8GER4PP,
16205         UNSPEC_MMA_XVI8GER4SPP, UNSPEC_MMA_XXMFACC, UNSPEC_MMA_XXMTACC): New.
16206         (MMA_ACC, MMA_VV, MMA_AVV, MMA_PV, MMA_APV, MMA_VVI4I4I8,
16207         MMA_AVVI4I4I8, MMA_VVI4I4I2, MMA_AVVI4I4I2, MMA_VVI4I4,
16208         MMA_AVVI4I4, MMA_PVI4I2, MMA_APVI4I2, MMA_VVI4I4I4,
16209         MMA_AVVI4I4I4): New define_int_iterator.
16210         (acc, vv, avv, pv, apv, vvi4i4i8, avvi4i4i8, vvi4i4i2,
16211         avvi4i4i2, vvi4i4, avvi4i4, pvi4i2, apvi4i2, vvi4i4i4,
16212         avvi4i4i4): New define_int_attr.
16213         (*movpxi): Add zero constant alternative.
16214         (mma_assemble_pair, mma_assemble_acc): New define_expand.
16215         (*mma_assemble_acc): New define_insn_and_split.
16216         (mma_<acc>, mma_xxsetaccz, mma_<vv>, mma_<avv>, mma_<pv>, mma_<apv>,
16217         mma_<vvi4i4i8>, mma_<avvi4i4i8>, mma_<vvi4i4i2>, mma_<avvi4i4i2>,
16218         mma_<vvi4i4>, mma_<avvi4i4>, mma_<pvi4i2>, mma_<apvi4i2>,
16219         mma_<vvi4i4i4>, mma_<avvi4i4i4>): New define_insn.
16220         * config/rs6000/rs6000.md (define_attr "type"): New type mma.
16221         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVBF16SP): New.
16222         (UNSPEC_VSX_XVCVSPBF16): Likewise.
16223         (XVCVBF16): New define_int_iterator.
16224         (xvcvbf16): New define_int_attr.
16225         (vsx_<xvcvbf16>): New define_insn.
16226         * doc/extend.texi: Document the mma built-ins.
16228 2020-06-21  Peter Bergner  <bergner@linux.ibm.com>
16229             Michael Meissner  <meissner@linux.ibm.com>
16231         * config/rs6000/mma.md: New file.
16232         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
16233         __MMA__ for mma.
16234         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Add support
16235         for __vector_pair and __vector_quad types.
16236         * config/rs6000/rs6000-cpus.def (OTHER_FUTURE_MASKS): Add
16237         OPTION_MASK_MMA.
16238         (POWERPC_MASKS): Likewise.
16239         * config/rs6000/rs6000-modes.def (OI, XI): New integer modes.
16240         (POI, PXI): New partial integer modes.
16241         * config/rs6000/rs6000.c (TARGET_INVALID_CONVERSION): Define.
16242         (rs6000_hard_regno_nregs_internal): Use VECTOR_ALIGNMENT_P.
16243         (rs6000_hard_regno_mode_ok_uncached): Likewise.
16244         Add support for POImode being allowed in VSX registers and PXImode
16245         being allowed in FP registers.
16246         (rs6000_modes_tieable_p): Adjust comment.
16247         Add support for POImode and PXImode.
16248         (rs6000_debug_reg_global) <print_tieable_modes>: Add OImode, POImode
16249         XImode, PXImode, V2SImode, V2SFmode and CCFPmode..
16250         (rs6000_setup_reg_addr_masks): Use VECTOR_ALIGNMENT_P.
16251         Set up appropriate addr_masks for vector pair and vector quad addresses.
16252         (rs6000_init_hard_regno_mode_ok): Add support for vector pair and
16253         vector quad registers.  Setup reload handlers for POImode and PXImode.
16254         (rs6000_builtin_mask_calculate): Add support for RS6000_BTM_MMA.
16255         (rs6000_option_override_internal): Error if -mmma is specified
16256         without -mcpu=future.
16257         (rs6000_slow_unaligned_access): Use VECTOR_ALIGNMENT_P.
16258         (quad_address_p): Change size test to less than 16 bytes.
16259         (reg_offset_addressing_ok_p): Add support for ISA 3.1 vector pair
16260         and vector quad instructions.
16261         (avoiding_indexed_address_p): Likewise.
16262         (rs6000_emit_move): Disallow POImode and PXImode moves involving
16263         constants.
16264         (rs6000_preferred_reload_class): Prefer VSX registers for POImode
16265         and FP registers for PXImode.
16266         (rs6000_split_multireg_move): Support splitting POImode and PXImode
16267         move instructions.
16268         (rs6000_mangle_type): Adjust comment.  Add support for mangling
16269         __vector_pair and __vector_quad types.
16270         (rs6000_opt_masks): Add entry for mma.
16271         (rs6000_builtin_mask_names): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
16272         (rs6000_function_value): Use VECTOR_ALIGNMENT_P.
16273         (address_to_insn_form): Likewise.
16274         (reg_to_non_prefixed): Likewise.
16275         (rs6000_invalid_conversion): New function.
16276         * config/rs6000/rs6000.h (MASK_MMA): Define.
16277         (BIGGEST_ALIGNMENT): Set to 512 if MMA support is enabled.
16278         (VECTOR_ALIGNMENT_P): New helper macro.
16279         (ALTIVEC_VECTOR_MODE): Use VECTOR_ALIGNMENT_P.
16280         (RS6000_BTM_MMA): Define.
16281         (RS6000_BTM_COMMON): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
16282         (rs6000_builtin_type_index): Add RS6000_BTI_vector_pair and
16283         RS6000_BTI_vector_quad.
16284         (vector_pair_type_node): New.
16285         (vector_quad_type_node): New.
16286         * config/rs6000/rs6000.md: Include mma.md.
16287         (define_mode_iterator RELOAD): Add POI and PXI.
16288         * config/rs6000/t-rs6000 (MD_INCLUDES): Add mma.md.
16289         * config/rs6000/rs6000.opt (-mmma): New.
16290         * doc/invoke.texi: Document -mmma.
16292 2020-06-20  Bin Cheng  <bin.cheng@linux.alibaba.com>
16294         PR tree-optimization/95638
16295         * tree-loop-distribution.c (pg_edge_callback_data): New field.
16296         (loop_distribution::break_alias_scc_partitions): Record and restore
16297         postorder information.  Fix memory leak.
16299 2020-06-19  Tobias Burnus  <tobias@codesourcery.com>
16301         * config/gcn/gcn.c (gcn_related_vector_mode): Add ARG_UNUSED.
16302         (output_file_start): Use const 'char *'.
16304 2020-06-19  Przemyslaw Wirkus  <Przemyslaw.Wirkus@arm.com>
16306         PR tree-optimization/94880
16307         * match.pd (A | B) - B -> (A & ~B): New simplification.
16309 2020-06-19  Richard Biener  <rguenther@suse.de>
16311         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Adjust
16312         for lane permutations.
16314 2020-06-19  Richard Biener  <rguenther@suse.de>
16316         PR tree-optimization/95761
16317         * tree-vect-slp.c (vect_schedule_slp_instance): Walk all
16318         vectorized stmts for finding the last one.
16320 2020-06-18  Felix Yang  <felix.yang@huawei.com>
16322         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Call
16323         vect_relevant_for_alignment_p to filter out data references in
16324         the loop whose alignment is irrelevant when trying loop peeling
16325         to force alignment.
16327 2020-06-18  Uroš Bizjak  <ubizjak@gmail.com>
16329         * config/i386/i386.md (*cmpqi_ext<mode>_1): Use SWI248 mode
16330         iterator instead of SImode for ZERO_EXTRACT RTX.  Use SWI248
16331         mode iterator for the first operand of ZERO_EXTRACT RTX.
16332         Change ext_register_operand predicate to register_operand.
16333         Rename from *cmpqi_ext_1.
16334         (*cmpqi_ext<mode>_2): Ditto.  Rename from *cmpqi_ext_2.
16335         (*cmpqi_ext<mode>_3): Ditto.  Rename from *cmpqi_ext_3.
16336         (*cmpqi_ext<mode>_4): Ditto.  Rename from *cmpqi_ext_4.
16337         (cmpi_ext_3): Use HImode instead of SImode for ZERO_EXTRACT RTX.
16338         (*extv<mode>): Use SWI24 mode iterator for the first operand
16339         of ZERO_EXTRACT RTX.  Change ext_register_operand predicate
16340         to register_operand.
16341         (*extzv<mode>): Use SWI248 mode iterator for the first operand
16342         of ZERO_EXTRACT RTX.  Change ext_register_operand predicate
16343         to register_operand.
16344         (*extzvqi): Use SWI248 mode iterator instead of SImode for
16345         ZERO_EXTRACT RTX.  Use SWI248 mode iterator for the first operand
16346         of ZERO_EXTRACT RTX.  Change ext_register_operand predicate to
16347         register_operand.
16348         (*extzvqi_mem_rex64 and corresponding peephole2):  Use SWI248 mode
16349         iterator instead of SImode for ZERO_EXTRACT RTX.  Use SWI248
16350         mode iterator for the first operand of ZERO_EXTRACT RTX.
16351         Change ext_register_operand predicate to register_operand.
16352         (@insv<mode>_1): Use SWI248 mode iterator for the first operand
16353         of ZERO_EXTRACT RTX.  Change ext_register_operand predicate to
16354         register_operand.
16355         (*insvqi_1): Use SWI248 mode iterator instead of SImode
16356         for ZERO_EXTRACT RTX.  Use SWI248 mode iterator for the
16357         first operand of ZERO_EXTRACT RTX.  Change ext_register_operand
16358         predicate to register_operand.
16359         (*insvqi_2): Ditto.
16360         (*insvqi_3): Ditto.
16361         (*insvqi_1_mem_rex64 and corresponding peephole2):  Use SWI248 mode
16362         iterator instead of SImode for ZERO_EXTRACT RTX.  Use SWI248
16363         mode iterator for the first operand of ZERO_EXTRACT RTX.
16364         Change ext_register_operand predicate to register_operand.
16365         (addqi_ext_1): New expander.
16366         (*addqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
16367         for ZERO_EXTRACT RTX.  Use SWI248 mode iterator for the first
16368         operand of ZERO_EXTRACT RTX.  Change ext_register_operand predicate
16369         to register_operand.  Rename from *addqi_ext_1.
16370         (*addqi_ext<mode>_2): Ditto. Rename from *addqi_ext_2.
16371         (divmodqi4): Use HImode instead of SImode for ZERO_EXTRACT RTX.
16372         (udivmodqi4): Ditto.
16373         (testqi_ext_1): Use HImode instead of SImode for ZERO_EXTRACT RTX.
16374         (*testqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
16375         for ZERO_EXTRACT RTX.  Use SWI248 mode iterator for the first
16376         operand of ZERO_EXTRACT RTX.  Change ext_register_operand predicate
16377         to register_operand.  Rename from *testqi_ext_1.
16378         (*testqi_ext<mode>_2): Ditto.  Rename from *testqi_ext_2.
16379         (andqi_ext_1): New expander.
16380         (*andqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
16381         for ZERO_EXTRACT RTX.  Use SWI248 mode iterator for the first
16382         operand of ZERO_EXTRACT RTX.  Change ext_register_operand predicate
16383         to register_operand.  Rename from andqi_ext_1.
16384         (*andqi_ext<mode>_1_cc): Ditto.  Rename from *andqi_ext_1_cc.
16385         (*andqi_ext<mode>_2): Ditto.  Rename from *andqi_ext_2.
16386         (*<code>qi_ext<mode>_1): Ditto.  Rename from *<code>qi_ext_1.
16387         (*<code>qi_ext<mode>_2): Ditto.  Rename from *<code>qi_ext_2.
16388         (xorqi_ext_1_cc): Use HImode instead of SImode for ZERO_EXTRACT RTX.
16389         (*xorqi_ext<mode>_1_cc):  Use SWI248 mode iterator instead of SImode
16390         for ZERO_EXTRACT RTX.  Use SWI248 mode iterator for the first
16391         operand of ZERO_EXTRACT RTX.  Change ext_register_operand predicate
16392         to register_operand.  Rename from *xorqi_ext_1_cc.
16393         * config/i386/i386-expand.c (ix86_split_idivmod): Emit ZERO_EXTRACT
16394         in mode, matching its first operand.
16395         (promote_duplicated_reg): Update for renamed insv<mode>_1.
16396         * config/i386/predicates.md (ext_register_operand): Remove predicate.
16398 2020-06-18  Martin Sebor  <msebor@redhat.com>
16400         PR middle-end/95667
16401         PR middle-end/92814
16402         * builtins.c (compute_objsize): Remove call to
16403         compute_builtin_object_size and instead compute conservative sizes
16404         directly here.
16406 2020-06-18  Martin Liska  <mliska@suse.cz>
16408         * coretypes.h (struct iterator_range): New type.
16409         * tree-vect-patterns.c (vect_determine_precisions): Use
16410         range-based iterator.
16411         (vect_pattern_recog): Likewise.
16412         * tree-vect-slp.c (_bb_vec_info):  Likewise.
16413         (_bb_vec_info::~_bb_vec_info): Likewise.
16414         (vect_slp_check_for_constructors): Likewise.
16415         * tree-vectorizer.h:Add new iterators
16416         and functions that use it.
16418 2020-06-18  Martin Liska  <mliska@suse.cz>
16420         * config/rs6000/rs6000-call.c (fold_build_vec_cmp):
16421         Since 502d63b6d6141597bb18fd23c87736a1b384cf8f, first argument
16422         of a VEC_COND_EXPR cannot be tcc_comparison and so that
16423         a SSA_NAME needs to be created before we use it for the first
16424         argument of the VEC_COND_EXPR.
16425         (fold_compare_helper): Pass gsi to fold_build_vec_cmp.
16427 2020-06-18  Richard Biener  <rguenther@suse.de>
16429         PR middle-end/95739
16430         * internal-fn.c (expand_vect_cond_optab_fn): Move the result
16431         to the target if necessary.
16432         (expand_vect_cond_mask_optab_fn): Likewise.
16434 2020-06-18  Martin Liska  <mliska@suse.cz>
16436         * tree-ssa-reassoc.c (ovce_extract_ops): Replace *vcond with
16437         vcond as we check for NULL pointer.
16439 2020-06-18  Tobias Burnus  <tobias@codesourcery.com>
16441         * gimple-pretty-print.c (dump_binary_rhs): Use braces to
16442         silence empty-body warning with gcc_fallthrough.
16444 2020-06-18  Jakub Jelinek  <jakub@redhat.com>
16446         PR tree-optimization/95699
16447         * tree-ssa-phiopt.c (minmax_replacement): Treat (signed int)x < 0
16448         as x > INT_MAX and (signed int)x >= 0 as x <= INT_MAX.  Move variable
16449         declarations to the statements that set them where possible.
16451 2020-06-18  Jakub Jelinek  <jakub@redhat.com>
16453         PR target/95713
16454         * tree-ssa-forwprop.c (simplify_vector_constructor): Don't allow
16455         scalar mode halfvectype other than vector boolean for
16456         VEC_PACK_TRUNC_EXPR.
16458 2020-06-18  Richard Biener  <rguenther@suse.de>
16460         * varasm.c (assemble_variable): Make sure to not
16461         defer output when outputting addressed constants.
16462         (output_constant_def_contents): Likewise.
16463         (add_constant_to_table): Take and pass on whether to
16464         defer output.
16465         (output_addressed_constants): Likewise.
16466         (output_constant_def): Pass on whether to defer output
16467         to add_constant_to_table.
16468         (tree_output_constant_def): Defer output of constants.
16470 2020-06-18  Richard Biener  <rguenther@suse.de>
16472         * tree-vectorizer.h (_slp_tree::two_operators): Remove.
16473         (_slp_tree::lane_permutation): New member.
16474         (_slp_tree::code): Likewise.
16475         (SLP_TREE_TWO_OPERATORS): Remove.
16476         (SLP_TREE_LANE_PERMUTATION): New.
16477         (SLP_TREE_CODE): Likewise.
16478         (vect_stmt_dominates_stmt_p): Declare.
16479         * tree-vectorizer.c (vect_stmt_dominates_stmt_p): New function.
16480         * tree-vect-stmts.c (vect_model_simple_cost): Remove
16481         SLP_TREE_TWO_OPERATORS handling.
16482         * tree-vect-slp.c (_slp_tree::_slp_tree): Amend.
16483         (_slp_tree::~_slp_tree): Likewise.
16484         (vect_two_operations_perm_ok_p): Remove.
16485         (vect_build_slp_tree_1): Remove verification of two-operator
16486         permutation here.
16487         (vect_build_slp_tree_2): When we have two different operators
16488         build two computation SLP nodes and a blend.
16489         (vect_print_slp_tree): Print the lane permutation if it exists.
16490         (slp_copy_subtree): Copy it.
16491         (vect_slp_rearrange_stmts): Re-arrange it.
16492         (vect_slp_analyze_node_operations_1): Handle SLP_TREE_CODE
16493         VEC_PERM_EXPR explicitely.
16494         (vect_schedule_slp_instance): Likewise.  Remove old
16495         SLP_TREE_TWO_OPERATORS code.
16496         (vectorizable_slp_permutation): New function.
16498 2020-06-18  Martin Liska  <mliska@suse.cz>
16500         * tree-vect-generic.c (expand_vector_condition): Check
16501         for gassign before inspecting RHS.
16503 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
16505         * gimplify.c (omp_notice_threadprivate_variable)
16506         (omp_default_clause, omp_notice_variable): 'inform' after 'error'
16507         diagnostic.  Adjust all users.
16509 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
16511         * hsa-gen.c (gen_hsa_insns_for_call): Move 'function_decl ==
16512         NULL_TREE' check earlier.
16514 2020-06-17  Forrest Timour  <forrest.timour@gmail.com>
16516         * doc/extend.texi (attribute access): Fix a typo.
16518 2020-06-17  Bin Cheng  <bin.cheng@linux.alibaba.com>
16519             Kaipeng Zhou  <zhoukaipeng3@huawei.com>
16521         PR tree-optimization/95199
16522         * tree-vect-stmts.c: Eliminate common stmts for bump and offset in
16523         strided load/store operations and remove redundant code.
16525 2020-06-17  Richard Sandiford  <richard.sandiford@arm.com>
16527         * coretypes.h (first_type): New alias template.
16528         * recog.h (insn_gen_fn::operator()): Use it instead of a decltype.
16529         Remove spurious “...” and split the function type out into a typedef.
16531 2020-06-17  Andreas Krebbel  <krebbel@linux.ibm.com>
16533         * config/s390/s390.c (s390_fix_long_loop_prediction): Exit early
16534         for PARALLELs.
16536 2020-06-17  Richard Biener  <rguenther@suse.de>
16538         * tree-vect-slp.c (vect_build_slp_tree_1): Set the passed
16539         in *vectype parameter.
16540         (vect_build_slp_tree_2): Set SLP_TREE_VECTYPE from what
16541         vect_build_slp_tree_1 computed.
16542         (vect_analyze_slp_instance): Set SLP_TREE_VECTYPE.
16543         (vect_slp_analyze_node_operations_1): Use the SLP node vector type.
16544         (vect_schedule_slp_instance): Likewise.
16545         * tree-vect-stmts.c (vect_is_simple_use): Take the vector type
16546         from SLP_TREE_VECTYPE.
16548 2020-06-17  Richard Biener  <rguenther@suse.de>
16550         PR tree-optimization/95717
16551         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
16552         Move BB SSA updating before exit/latch PHI current def copying.
16554 2020-06-17  Martin Liska  <mliska@suse.cz>
16556         * Makefile.in: Add new file.
16557         * expr.c (expand_expr_real_2): Add gcc_unreachable as we should
16558         not meet this condition.
16559         (do_store_flag): Likewise.
16560         * gimplify.c (gimplify_expr): Gimplify first argument of
16561         VEC_COND_EXPR to be a SSA name.
16562         * internal-fn.c (vec_cond_mask_direct): New.
16563         (vec_cond_direct): Likewise.
16564         (vec_condu_direct): Likewise.
16565         (vec_condeq_direct): Likewise.
16566         (expand_vect_cond_optab_fn):  New.
16567         (expand_vec_cond_optab_fn): Likewise.
16568         (expand_vec_condu_optab_fn): Likewise.
16569         (expand_vec_condeq_optab_fn): Likewise.
16570         (expand_vect_cond_mask_optab_fn): Likewise.
16571         (expand_vec_cond_mask_optab_fn): Likewise.
16572         (direct_vec_cond_mask_optab_supported_p): Likewise.
16573         (direct_vec_cond_optab_supported_p): Likewise.
16574         (direct_vec_condu_optab_supported_p): Likewise.
16575         (direct_vec_condeq_optab_supported_p): Likewise.
16576         * internal-fn.def (VCOND): New OPTAB.
16577         (VCONDU): Likewise.
16578         (VCONDEQ): Likewise.
16579         (VCOND_MASK): Likewise.
16580         * optabs.c (get_rtx_code): Make it global.
16581         (expand_vec_cond_mask_expr): Removed.
16582         (expand_vec_cond_expr): Removed.
16583         * optabs.h (expand_vec_cond_expr): Likewise.
16584         (vector_compare_rtx): Make it global.
16585         * passes.def: Add new pass_gimple_isel pass.
16586         * tree-cfg.c (verify_gimple_assign_ternary): Add check
16587         for VEC_COND_EXPR about first argument.
16588         * tree-pass.h (make_pass_gimple_isel): New.
16589         * tree-ssa-forwprop.c (pass_forwprop::execute): Prevent
16590         propagation of the first argument of a VEC_COND_EXPR.
16591         * tree-ssa-reassoc.c (ovce_extract_ops): Support SSA_NAME as
16592         first argument of a VEC_COND_EXPR.
16593         (optimize_vec_cond_expr): Likewise.
16594         * tree-vect-generic.c (expand_vector_divmod): Make SSA_NAME
16595         for a first argument of created VEC_COND_EXPR.
16596         (expand_vector_condition): Fix coding style.
16597         * tree-vect-stmts.c (vectorizable_condition): Gimplify
16598         first argument.
16599         * gimple-isel.cc: New file.
16601 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
16603         * config/gcn/gcn-hsa.h (TEXT_SECTION_ASM_OP): Use ".text".
16604         (BSS_SECTION_ASM_OP): Use ".bss".
16605         (ASM_SPEC): Remove "-mattr=-code-object-v3".
16606         (LINK_SPEC): Add "--export-dynamic".
16607         * config/gcn/gcn-opts.h (processor_type): Replace PROCESSOR_VEGA with
16608         PROCESSOR_VEGA10 and PROCESSOR_VEGA20.
16609         * config/gcn/gcn-run.c (HSA_RUNTIME_LIB): Use ".so.1" variant.
16610         (load_image): Remove obsolete relocation handling.
16611         Add ".kd" suffix to the symbol names.
16612         * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT): Set to 62.
16613         (gcn_option_override): Update gcn_isa test.
16614         (gcn_kernel_arg_types): Update all the assembler directives.
16615         Remove the obsolete options.
16616         (gcn_conditional_register_usage): Update MAX_NORMAL_SGPR_COUNT usage.
16617         (gcn_omp_device_kind_arch_isa): Handle PROCESSOR_VEGA10 and
16618         PROCESSOR_VEGA20.
16619         (output_file_start): Rework assembler file header.
16620         (gcn_hsa_declare_function_name): Rework kernel metadata.
16621         * config/gcn/gcn.h (GCN_KERNEL_ARG_TYPES): Set to 16.
16622         * config/gcn/gcn.opt (PROCESSOR_VEGA): Remove enum.
16623         (PROCESSOR_VEGA10): New enum value.
16624         (PROCESSOR_VEGA20): New enum value.
16626 2020-06-17  Martin Liska  <mliska@suse.cz>
16628         * gcov-dump.c (print_version): Collapse lisence header to 2 lines
16629         in --version.
16630         * gcov-tool.c (print_version): Likewise.
16631         * gcov.c (print_version): Likewise.
16633 2020-06-17  liuhongt  <hongtao.liu@intel.com>
16635         PR target/95524
16636         * config/i386/i386-expand.c
16637         (ix86_expand_vec_shift_qihi_constant): New function.
16638         * config/i386/i386-protos.h
16639         (ix86_expand_vec_shift_qihi_constant): Declare.
16640         * config/i386/sse.md (<shift_insn><mode>3): Optimize shift
16641         V*QImode by constant.
16643 2020-06-16  Aldy Hernandez  <aldyh@redhat.com>
16645         PR tree-optimization/95649
16646         * tree-ssa-propagate.c (propagate_into_phi_args): Do not propagate unless
16647         value is a constant.
16649 2020-06-16  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
16651         * config.in: Regenerate.
16652         * config/s390/s390.c (print_operand): Emit vector alignment hints
16653         for target z13, if AS accepts them.  For other targets the logic
16654         stays the same.
16655         * config/s390/s390.h (TARGET_VECTOR_LOADSTORE_ALIGNMENT_HINTS): Define
16656         macro.
16657         * configure: Regenerate.
16658         * configure.ac: Check HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13.
16660 2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
16662         * config/arm/arm_mve.h (__arm_vaddq_m_n_s8): Correct the intrinsic
16663         arguments.
16664         (__arm_vaddq_m_n_s32): Likewise.
16665         (__arm_vaddq_m_n_s16): Likewise.
16666         (__arm_vaddq_m_n_u8): Likewise.
16667         (__arm_vaddq_m_n_u32): Likewise.
16668         (__arm_vaddq_m_n_u16): Likewise.
16669         (__arm_vaddq_m): Modify polymorphic variant.
16671 2020-06-16  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
16673         * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Correct the predicate
16674         and constraint of all the operands.
16675         (mve_sqrshrl_sat<supf>_di): Likewise.
16676         (mve_uqrshl_si): Likewise.
16677         (mve_sqrshr_si): Likewise.
16678         (mve_uqshll_di): Likewise.
16679         (mve_urshrl_di): Likewise.
16680         (mve_uqshl_si): Likewise.
16681         (mve_urshr_si): Likewise.
16682         (mve_sqshl_si): Likewise.
16683         (mve_srshr_si): Likewise.
16684         (mve_srshrl_di): Likewise.
16685         (mve_sqshll_di): Likewise.
16686         * config/arm/predicates.md (arm_low_register_operand): Define.
16688 2020-06-16  Jakub Jelinek  <jakub@redhat.com>
16690         * tree.h (OMP_FOR_NON_RECTANGULAR): Define.
16691         * gimplify.c (gimplify_omp_for): Diagnose schedule, ordered
16692         or dist_schedule clause on non-rectangular loops.  Handle
16693         gimplification of non-rectangular lb/b expressions.  When changing
16694         iteration variable, adjust also non-rectangular lb/b expressions
16695         referencing that.
16696         * omp-general.h (struct omp_for_data_loop): Add m1, m2 and outer
16697         members.
16698         (struct omp_for_data): Add non_rect member.
16699         * omp-general.c (omp_extract_for_data): Handle non-rectangular
16700         loops.  Fill in non_rect, m1, m2 and outer.
16701         * omp-low.c (lower_omp_for): Handle non-rectangular lb/b expressions.
16702         * omp-expand.c (expand_omp_for): Emit sorry_at for unsupported
16703         non-rectangular loop cases and assert for cases that can't be
16704         non-rectangular.
16705         * tree-pretty-print.c (dump_mem_ref): Formatting fix.
16706         (dump_omp_loop_non_rect_expr): New function.
16707         (dump_generic_node): Handle non-rectangular OpenMP loops.
16708         * tree-pretty-print.h (dump_omp_loop_non_rect_expr): Declare.
16709         * gimple-pretty-print.c (dump_gimple_omp_for): Handle non-rectangular
16710         OpenMP loops.
16712 2020-06-16  Richard Biener  <rguenther@suse.de>
16714         PR middle-end/95690
16715         * varasm.c (build_constant_desc): Remove set_mem_attributes call.
16717 2020-06-16  Kito Cheng  <kito.cheng@sifive.com>
16719         PR target/95683
16720         * config/riscv/riscv.c (riscv_gpr_save_operation_p): Remove
16721         assertion and turn it into a early exit check.
16723 2020-06-15  Eric Botcazou  <ebotcazou@adacore.com>
16725         * gimplify.c (gimplify_init_constructor) <AGGREGATE_TYPE>: Declare
16726         new ENSURE_SINGLE_ACCESS constant and move variables down.  If it is
16727         true and all elements are zero, then always clear.  Return GS_ERROR
16728         if a temporary would be created for it and NOTIFY_TEMP_CREATION set.
16729         (gimplify_modify_expr_rhs) <VAR_DECL>: If the target is volatile but
16730         the type is aggregate non-addressable, ask gimplify_init_constructor
16731         whether it can generate a single access to the target.
16733 2020-06-15  Eric Botcazou  <ebotcazou@adacore.com>
16735         * tree-sra.c (propagate_subaccesses_from_rhs): When a non-scalar
16736         access on the LHS is replaced with a scalar access, propagate the
16737         TYPE_REVERSE_STORAGE_ORDER flag of the type of the original access.
16739 2020-06-15  Max Filippov  <jcmvbkbc@gmail.com>
16741         * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Remove
16742         TARGET_THREADPTR reference.
16743         (xtensa_tls_symbol_p, xtensa_tls_referenced_p): Use
16744         targetm.have_tls instead of TARGET_HAVE_TLS.
16745         (xtensa_option_override): Set targetm.have_tls to false in
16746         configurations without THREADPTR.
16748 2020-06-15  Max Filippov  <jcmvbkbc@gmail.com>
16750         * config/xtensa/elf.h (ASM_SPEC, LINK_SPEC): Pass ABI switch to
16751         assembler/linker.
16752         * config/xtensa/linux.h (ASM_SPEC, LINK_SPEC): Ditto.
16753         * config/xtensa/uclinux.h (ASM_SPEC, LINK_SPEC): Ditto.
16754         * config/xtensa/xtensa.c (xtensa_option_override): Initialize
16755         xtensa_windowed_abi if needed.
16756         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI_DEFAULT): New
16757         macro.
16758         (TARGET_WINDOWED_ABI): Redefine to xtensa_windowed_abi.
16759         * config/xtensa/xtensa.opt (xtensa_windowed_abi): New target
16760         option variable.
16761         (mabi=call0, mabi=windowed): New options.
16762         * doc/invoke.texi: Document new -mabi= Xtensa-specific options.
16764 2020-06-15  Max Filippov  <jcmvbkbc@gmail.com>
16766         * config/xtensa/xtensa.c (xtensa_can_eliminate): New function.
16767         (TARGET_CAN_ELIMINATE): New macro.
16768         * config/xtensa/xtensa.h
16769         (XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM)
16770         (XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM): New macros.
16771         (HARD_FRAME_POINTER_REGNUM): Define using
16772         XTENSA_*_HARD_FRAME_POINTER_REGNUM.
16773         (ELIMINABLE_REGS): Replace lines with HARD_FRAME_POINTER_REGNUM
16774         by lines with XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM and
16775         XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM.
16777 2020-06-15  Felix Yang  <felix.yang@huawei.com>
16779         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Rename
16780         parameter to loop_vinfo and update uses.  Use LOOP_VINFO_DATAREFS
16781         when possible.
16782         (vect_analyze_data_refs_alignment): Likewise, and use LOOP_VINFO_DDRS
16783         when possible.
16784         * tree-vect-loop.c (vect_dissolve_slp_only_groups): Use
16785         LOOP_VINFO_DATAREFS when possible.
16786         (update_epilogue_loop_vinfo): Likewise.
16788 2020-06-15  Kito Cheng  <kito.cheng@sifive.com>
16790         * config/riscv/riscv.c (riscv_gen_gpr_save_insn): Change type to
16791         unsigned for i.
16792         (riscv_gpr_save_operation_p): Change type to unsigned for i and
16793         len.
16795 2020-06-15   Hongtao Liu  <hongtao.liu@intel.com>
16797         PR target/95488
16798         * config/i386/i386-expand.c (ix86_expand_vecmul_qihi): New
16799         function.
16800         * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Declare.
16801         * config/i386/sse.md (mul<mode>3): Drop mask_name since
16802         there's no real simd int8 multiplication instruction with
16803         mask. Also optimize it under TARGET_AVX512BW.
16804         (mulv8qi3): New expander.
16806 2020-06-12  Marco Elver  <elver@google.com>
16808         * gimplify.c (gimplify_function_tree): Optimize and do not emit
16809         IFN_TSAN_FUNC_EXIT in a finally block if we do not need it.
16810         * params.opt: Add --param=tsan-instrument-func-entry-exit=.
16811         * tsan.c (instrument_memory_accesses): Make
16812         fentry_exit_instrument bool depend on new param.
16814 2020-06-12  Felix Yang  <felix.yang@huawei.com>
16816         PR tree-optimization/95570
16817         * tree-vect-data-refs.c (vect_relevant_for_alignment_p): New function.
16818         (vect_verify_datarefs_alignment): Call it to filter out data references
16819         in the loop whose alignment is irrelevant.
16820         (vect_get_peeling_costs_all_drs): Likewise.
16821         (vect_peeling_supportable): Likewise.
16822         (vect_enhance_data_refs_alignment): Likewise.
16824 2020-06-12  Richard Biener  <rguenther@suse.de>
16826         PR tree-optimization/95633
16827         * tree-vect-stmts.c (vectorizable_condition): Properly
16828         guard the vec_else_clause access with EXTRACT_LAST_REDUCTION.
16830 2020-06-12  Martin Liška  <mliska@suse.cz>
16832         * cgraphunit.c (process_symver_attribute): Wrap weakref keyword.
16833         * dbgcnt.c (dbg_cnt_set_limit_by_index): Do not print extra new
16834         line.
16835         * lto-wrapper.c (merge_and_complain): Wrap option names.
16837 2020-06-12  Kewen Lin  <linkw@gcc.gnu.org>
16839         * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Rename
16840         LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE.  Rename
16841         LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
16842         (vect_set_loop_condition_masked): Renamed to ...
16843         (vect_set_loop_condition_partial_vectors): ... this.  Rename
16844         LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE.  Rename
16845         vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
16846         (vect_set_loop_condition_unmasked): Renamed to ...
16847         (vect_set_loop_condition_normal): ... this.
16848         (vect_set_loop_condition): Rename vect_set_loop_condition_unmasked to
16849         vect_set_loop_condition_normal.  Rename vect_set_loop_condition_masked
16850         to vect_set_loop_condition_partial_vectors.
16851         (vect_prepare_for_masked_peels): Rename LOOP_VINFO_MASK_COMPARE_TYPE
16852         to LOOP_VINFO_RGROUP_COMPARE_TYPE.
16853         * tree-vect-loop.c (vect_known_niters_smaller_than_vf): New, factored
16854         out from ...
16855         (vect_analyze_loop_costing): ... this.
16856         (_loop_vec_info::_loop_vec_info): Rename mask_compare_type to
16857         compare_type.
16858         (vect_min_prec_for_max_niters): New, factored out from ...
16859         (vect_verify_full_masking): ... this.  Rename
16860         vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
16861         Rename LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE.
16862         Rename LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
16863         (vectorizable_reduction): Update some dumpings with partial
16864         vectors instead of fully-masked.
16865         (vectorizable_live_operation): Likewise.
16866         (vect_iv_limit_for_full_masking): Renamed to ...
16867         (vect_iv_limit_for_partial_vectors): ... this.
16868         * tree-vect-stmts.c (check_load_store_masking): Renamed to ...
16869         (check_load_store_for_partial_vectors): ... this.  Update some
16870         dumpings with partial vectors instead of fully-masked.
16871         (vectorizable_store): Rename check_load_store_masking to
16872         check_load_store_for_partial_vectors.
16873         (vectorizable_load): Likewise.
16874         * tree-vectorizer.h (LOOP_VINFO_MASK_COMPARE_TYPE): Renamed to ...
16875         (LOOP_VINFO_RGROUP_COMPARE_TYPE): ... this.
16876         (LOOP_VINFO_MASK_IV_TYPE): Renamed to ...
16877         (LOOP_VINFO_RGROUP_IV_TYPE): ... this.
16878         (vect_iv_limit_for_full_masking): Renamed to ...
16879         (vect_iv_limit_for_partial_vectors): this.
16880         (_loop_vec_info): Rename mask_compare_type to rgroup_compare_type.
16881         Rename iv_type to rgroup_iv_type.
16883 2020-06-12  Richard Sandiford  <richard.sandiford@arm.com>
16885         * recog.h (insn_gen_fn::f0, insn_gen_fn::f1, insn_gen_fn::f2)
16886         (insn_gen_fn::f3, insn_gen_fn::f4, insn_gen_fn::f5, insn_gen_fn::f6)
16887         (insn_gen_fn::f7, insn_gen_fn::f8, insn_gen_fn::f9, insn_gen_fn::f10)
16888         (insn_gen_fn::f11, insn_gen_fn::f12, insn_gen_fn::f13)
16889         (insn_gen_fn::f14, insn_gen_fn::f15, insn_gen_fn::f16): Delete.
16890         (insn_gen_fn::operator()): Replace overloaded definitions with
16891         a parameter-pack version.
16893 2020-06-12  H.J. Lu  <hjl.tools@gmail.com>
16895         PR target/93492
16896         * config/i386/i386-features.c (rest_of_insert_endbranch):
16897         Renamed to ...
16898         (rest_of_insert_endbr_and_patchable_area): Change return type
16899         to void. Add need_endbr and patchable_area_size arguments.
16900         Don't call timevar_push nor timevar_pop.  Replace
16901         endbr_queued_at_entrance with insn_queued_at_entrance.  Insert
16902         UNSPECV_PATCHABLE_AREA for patchable area.
16903         (pass_data_insert_endbranch): Renamed to ...
16904         (pass_data_insert_endbr_and_patchable_area): This.  Change
16905         pass name to endbr_and_patchable_area.
16906         (pass_insert_endbranch): Renamed to ...
16907         (pass_insert_endbr_and_patchable_area): This.  Add need_endbr
16908         and patchable_area_size;.
16909         (pass_insert_endbr_and_patchable_area::gate): Set and check
16910         need_endbr and patchable_area_size.
16911         (pass_insert_endbr_and_patchable_area::execute): Call
16912         timevar_push and timevar_pop.  Pass need_endbr and
16913         patchable_area_size to rest_of_insert_endbr_and_patchable_area.
16914         (make_pass_insert_endbranch): Renamed to ...
16915         (make_pass_insert_endbr_and_patchable_area): This.
16916         * config/i386/i386-passes.def: Replace pass_insert_endbranch
16917         with pass_insert_endbr_and_patchable_area.
16918         * config/i386/i386-protos.h (ix86_output_patchable_area): New.
16919         (make_pass_insert_endbranch): Renamed to ...
16920         (make_pass_insert_endbr_and_patchable_area): This.
16921         * config/i386/i386.c (ix86_asm_output_function_label): Set
16922         function_label_emitted to true.
16923         (ix86_print_patchable_function_entry): New function.
16924         (ix86_output_patchable_area): Likewise.
16925         (x86_function_profiler): Replace endbr_queued_at_entrance with
16926         insn_queued_at_entrance.  Generate ENDBR only for TYPE_ENDBR.
16927         Call ix86_output_patchable_area to generate patchable area if
16928         needed.
16929         (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): New.
16930         * config/i386/i386.h (queued_insn_type): New.
16931         (machine_function): Add function_label_emitted.  Replace
16932         endbr_queued_at_entrance with insn_queued_at_entrance.
16933         * config/i386/i386.md (UNSPECV_PATCHABLE_AREA): New.
16934         (patchable_area): New.
16936 2020-06-11  Martin Liska  <mliska@suse.cz>
16938         * config/rs6000/rs6000.c (rs6000_density_test): Fix GNU coding
16939         style.
16941 2020-06-11  Martin Liska  <mliska@suse.cz>
16943         PR target/95627
16944         * config/rs6000/rs6000.c (rs6000_density_test): Skip debug
16945         statements.
16947 2020-06-11  Martin Liska  <mliska@suse.cz>
16948             Jakub Jelinek  <jakub@redhat.com>
16950         PR sanitizer/95634
16951         * asan.c (asan_emit_stack_protection): Fix emission for ilp32
16952         by using Pmode instead of ptr_mode.
16954 2020-06-11  Kewen Lin  <linkw@gcc.gnu.org>
16956         * tree-vect-loop-manip.c (vect_set_loop_mask): Renamed to ...
16957         (vect_set_loop_control): ... this.
16958         (vect_maybe_permute_loop_masks): Rename rgroup_masks related things.
16959         (vect_set_loop_masks_directly): Renamed to ...
16960         (vect_set_loop_controls_directly): ... this.  Also rename some
16961         variables with ctrl instead of mask.  Rename vect_set_loop_mask to
16962         vect_set_loop_control.
16963         (vect_set_loop_condition_masked): Rename rgroup_masks related things.
16964         Also rename some variables with ctrl instead of mask.
16965         * tree-vect-loop.c (release_vec_loop_masks): Renamed to ...
16966         (release_vec_loop_controls): ... this.  Rename rgroup_masks related
16967         things.
16968         (_loop_vec_info::~_loop_vec_info): Rename release_vec_loop_masks to
16969         release_vec_loop_controls.
16970         (can_produce_all_loop_masks_p): Rename rgroup_masks related things.
16971         (vect_get_max_nscalars_per_iter): Likewise.
16972         (vect_estimate_min_profitable_iters): Likewise.
16973         (vect_record_loop_mask): Likewise.
16974         (vect_get_loop_mask): Likewise.
16975         * tree-vectorizer.h (struct rgroup_masks): Renamed to ...
16976         (struct rgroup_controls): ... this.  Also rename mask_type
16977         to type and rename masks to controls.
16979 2020-06-11  Kewen Lin  <linkw@gcc.gnu.org>
16981         * tree-vect-loop-manip.c (vect_set_loop_condition): Rename
16982         LOOP_VINFO_FULLY_MASKED_P to LOOP_VINFO_USING_PARTIAL_VECTORS_P.
16983         (vect_gen_vector_loop_niters): Likewise.
16984         (vect_do_peeling): Likewise.
16985         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
16986         fully_masked_p to using_partial_vectors_p.
16987         (vect_analyze_loop_costing): Rename LOOP_VINFO_FULLY_MASKED_P to
16988         LOOP_VINFO_USING_PARTIAL_VECTORS_P.
16989         (determine_peel_for_niter): Likewise.
16990         (vect_estimate_min_profitable_iters): Likewise.
16991         (vect_transform_loop): Likewise.
16992         * tree-vectorizer.h (LOOP_VINFO_FULLY_MASKED_P): Updated.
16993         (LOOP_VINFO_USING_PARTIAL_VECTORS_P): New macro.
16995 2020-06-11  Kewen Lin  <linkw@gcc.gnu.org>
16997         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
16998         can_fully_mask_p to can_use_partial_vectors_p.
16999         (vect_analyze_loop_2): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
17000         LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P.  Rename saved_can_fully_mask_p
17001         to saved_can_use_partial_vectors_p.
17002         (vectorizable_reduction): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
17003         LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P.
17004         (vectorizable_live_operation): Likewise.
17005         * tree-vect-stmts.c (permute_vec_elements): Likewise.
17006         (check_load_store_masking): Likewise.
17007         (vectorizable_operation): Likewise.
17008         (vectorizable_store): Likewise.
17009         (vectorizable_load): Likewise.
17010         (vectorizable_condition): Likewise.
17011         * tree-vectorizer.h (LOOP_VINFO_CAN_FULLY_MASK_P): Renamed to ...
17012         (LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P): ... this.
17013         (_loop_vec_info): Rename can_fully_mask_p to can_use_partial_vectors_p.
17015 2020-06-11  Martin Liska  <mliska@suse.cz>
17017         * optc-save-gen.awk: Quote error string.
17019 2020-06-11  Alexandre Oliva  <oliva@adacore.com>
17021         * print-rtl.c (print_mem_expr): Enable TDF_SLIM in dump_flags.
17023 2020-06-11  Kito Cheng  <kito.cheng@sifive.com>
17025         * config/riscv/riscv-protos.h (riscv_output_gpr_save): Remove.
17026         * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Update
17027         value.
17028         * config/riscv/riscv.c (riscv_output_gpr_save): Remove.
17029         * config/riscv/riscv.md (gpr_save): Update output asm pattern.
17031 2020-06-11  Kito Cheng  <kito.cheng@sifive.com>
17033         * config/riscv/predicates.md (gpr_save_operation): New.
17034         * config/riscv/riscv-protos.h (riscv_gen_gpr_save_insn): New.
17035         (riscv_gpr_save_operation_p): Ditto.
17036         * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
17037         Ignore USEs for gpr_save patter.
17038         * config/riscv/riscv.c (gpr_save_reg_order): New.
17039         (riscv_expand_prologue): Use riscv_gen_gpr_save_insn to gen gpr_save.
17040         (riscv_gen_gpr_save_insn): New.
17041         (riscv_gpr_save_operation_p): Ditto.
17042         * config/riscv/riscv.md (S3_REGNUM): New.
17043         (S4_REGNUM): Ditto.
17044         (S5_REGNUM): Ditto.
17045         (S6_REGNUM): Ditto.
17046         (S7_REGNUM): Ditto.
17047         (S8_REGNUM): Ditto.
17048         (S9_REGNUM): Ditto.
17049         (S10_REGNUM): Ditto.
17050         (S11_REGNUM): Ditto.
17051         (gpr_save): Model USEs correctly.
17053 2020-06-10  Martin Sebor  <msebor@redhat.com>
17055         PR middle-end/95353
17056         PR middle-end/92939
17057         * builtins.c (inform_access): New function.
17058         (check_access): Call it.  Add argument.
17059         (addr_decl_size): Remove.
17060         (get_range): New function.
17061         (compute_objsize): New overload.  Only use compute_builtin_object_size
17062         with raw memory function.
17063         (check_memop_access): Pass new argument to compute_objsize and
17064         check_access.
17065         (expand_builtin_memchr, expand_builtin_strcat): Same.
17066         (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
17067         (expand_builtin_stpncpy, check_strncat_sizes): Same.
17068         (expand_builtin_strncat, expand_builtin_strncpy): Same.
17069         (expand_builtin_memcmp): Same.
17070         * builtins.h (check_nul_terminated_array): Declare extern.
17071         (check_access): Add argument.
17072         (struct access_ref, struct access_data): New structs.
17073         * gimple-ssa-warn-restrict.c (clamp_offset): New helper.
17074         (builtin_access::overlap): Call it.
17075         * tree-object-size.c (decl_init_size): Declare extern.
17076         (addr_object_size): Correct offset computation.
17077         * tree-object-size.h (decl_init_size): Declare.
17078         * tree-ssa-strlen.c (handle_integral_assign): Remove a call
17079         to maybe_warn_overflow when assigning to an SSA_NAME.
17081 2020-06-10  Richard Biener  <rguenther@suse.de>
17083         * tree-vect-loop.c (vect_determine_vectorization_factor):
17084         Skip debug stmts.
17085         (_loop_vec_info::_loop_vec_info): Likewise.
17086         (vect_update_vf_for_slp): Likewise.
17087         (vect_analyze_loop_operations): Likewise.
17088         (update_epilogue_loop_vinfo): Likewise.
17089         * tree-vect-patterns.c (vect_determine_precisions): Likewise.
17090         (vect_pattern_recog): Likewise.
17091         * tree-vect-slp.c (vect_detect_hybrid_slp): Likewise.
17092         (_bb_vec_info::_bb_vec_info): Likewise.
17093         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized):
17094         Likewise.
17096 2020-06-10  Richard Biener  <rguenther@suse.de>
17098         PR tree-optimization/95576
17099         * tree-vect-slp.c (vect_slp_bb): Skip leading debug stmts.
17101 2020-06-10  Haijian Zhang  <z.zhanghaijian@huawei.com>
17103         PR target/95523
17104         * config/aarch64/aarch64-sve-builtins.h
17105         (sve_switcher::m_old_maximum_field_alignment): New member.
17106         * config/aarch64/aarch64-sve-builtins.cc
17107         (sve_switcher::sve_switcher): Save maximum_field_alignment in
17108         m_old_maximum_field_alignment and clear maximum_field_alignment.
17109         (sve_switcher::~sve_switcher): Restore maximum_field_alignment.
17111 2020-06-10  Richard Biener  <rguenther@suse.de>
17113         * tree-vectorizer.h (_slp_tree::vec_stmts): Make it a vector
17114         of gimple * stmts.
17115         (_stmt_vec_info::vec_stmts): Likewise.
17116         (vec_info::stmt_vec_info_ro): New flag.
17117         (vect_finish_replace_stmt): Adjust declaration.
17118         (vect_finish_stmt_generation): Likewise.
17119         (vectorizable_induction): Likewise.
17120         (vect_transform_reduction): Likewise.
17121         (vectorizable_lc_phi): Likewise.
17122         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Do not
17123         allocate stmt infos for increments.
17124         (vect_record_grouped_load_vectors): Adjust.
17125         * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
17126         (vectorize_fold_left_reduction): Likewise.
17127         (vect_transform_reduction): Likewise.
17128         (vect_transform_cycle_phi): Likewise.
17129         (vectorizable_lc_phi): Likewise.
17130         (vectorizable_induction): Likewise.
17131         (vectorizable_live_operation): Likewise.
17132         (vect_transform_loop): Likewise.
17133         * tree-vect-patterns.c (vect_pattern_recog): Set stmt_vec_info_ro.
17134         * tree-vect-slp.c (vect_get_slp_vect_def): Adjust.
17135         (vect_get_slp_defs): Likewise.
17136         (vect_transform_slp_perm_load): Likewise.
17137         (vect_schedule_slp_instance): Likewise.
17138         (vectorize_slp_instance_root_stmt): Likewise.
17139         * tree-vect-stmts.c (vect_get_vec_defs_for_operand): Likewise.
17140         (vect_finish_stmt_generation_1): Do not allocate a stmt info.
17141         (vect_finish_replace_stmt): Do not return anything.
17142         (vect_finish_stmt_generation): Likewise.
17143         (vect_build_gather_load_calls): Adjust.
17144         (vectorizable_bswap): Likewise.
17145         (vectorizable_call): Likewise.
17146         (vectorizable_simd_clone_call): Likewise.
17147         (vect_create_vectorized_demotion_stmts): Likewise.
17148         (vectorizable_conversion): Likewise.
17149         (vectorizable_assignment): Likewise.
17150         (vectorizable_shift): Likewise.
17151         (vectorizable_operation): Likewise.
17152         (vectorizable_scan_store): Likewise.
17153         (vectorizable_store): Likewise.
17154         (vectorizable_load): Likewise.
17155         (vectorizable_condition): Likewise.
17156         (vectorizable_comparison): Likewise.
17157         (vect_transform_stmt): Likewise.
17158         * tree-vectorizer.c (vec_info::vec_info): Initialize
17159         stmt_vec_info_ro.
17160         (vec_info::replace_stmt): Copy over stmt UID rather than
17161         unsetting/setting a stmt info allocating a new UID.
17162         (vec_info::set_vinfo_for_stmt): Assert !stmt_vec_info_ro.
17164 2020-06-10  Aldy Hernandez  <aldyh@redhat.com>
17166         * gimple-loop-versioning.cc (loop_versioning::name_prop::get_value):
17167         Add stmt parameter.
17168         * gimple-ssa-evrp.c (class evrp_folder): New.
17169         (class evrp_dom_walker): Remove.
17170         (execute_early_vrp): Use evrp_folder instead of evrp_dom_walker.
17171         * tree-ssa-ccp.c (ccp_folder::get_value): Add stmt parameter.
17172         * tree-ssa-copy.c (copy_folder::get_value): Same.
17173         * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
17174         Pass stmt to get_value.
17175         (substitute_and_fold_engine::replace_phi_args_in): Same.
17176         (substitute_and_fold_dom_walker::after_dom_children): Call
17177         post_fold_bb.
17178         (substitute_and_fold_dom_walker::foreach_new_stmt_in_bb): New.
17179         (substitute_and_fold_dom_walker::propagate_into_phi_args): New.
17180         (substitute_and_fold_dom_walker::before_dom_children): Adjust to
17181         call virtual functions for folding, pre_folding, and post folding.
17182         Call get_value with PHI.  Tweak dump.
17183         * tree-ssa-propagate.h (class substitute_and_fold_engine):
17184         New argument to get_value.
17185         New virtual function pre_fold_bb.
17186         New virtual function post_fold_bb.
17187         New virtual function pre_fold_stmt.
17188         New virtual function post_new_stmt.
17189         New function propagate_into_phi_args.
17190         * tree-vrp.c (vrp_folder::get_value): Add stmt argument.
17191         * vr-values.c (vr_values::extract_range_from_stmt): Adjust dump
17192         output.
17193         (vr_values::fold_cond): New.
17194         (vr_values::simplify_cond_using_ranges_1): Call fold_cond.
17195         * vr-values.h (class vr_values): Add
17196         simplify_cond_using_ranges_when_edge_is_known.
17198 2020-06-10  Martin Liska  <mliska@suse.cz>
17200         PR sanitizer/94910
17201         * asan.c (asan_emit_stack_protection): Emit
17202         also **SavedFlagPtr(FakeStack, class_id) = 0 in order to release
17203         a stack frame.
17205 2020-06-10  Tamar Christina  <tamar.christina@arm.com>
17207         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Adjust costs for mul.
17209 2020-06-10  Richard Biener  <rguenther@suse.de>
17211         * tree-vect-data-refs.c (vect_vfa_access_size): Adjust.
17212         (vect_record_grouped_load_vectors): Likewise.
17213         * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
17214         (vectorize_fold_left_reduction): Likewise.
17215         (vect_transform_reduction): Likewise.
17216         (vect_transform_cycle_phi): Likewise.
17217         (vectorizable_lc_phi): Likewise.
17218         (vectorizable_induction): Likewise.
17219         (vectorizable_live_operation): Likewise.
17220         (vect_transform_loop): Likewise.
17221         * tree-vect-slp.c (vect_get_slp_defs): New function, split out
17222         from overload.
17223         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Remove.
17224         (vect_get_vec_def_for_operand): Likewise.
17225         (vect_get_vec_def_for_stmt_copy): Likewise.
17226         (vect_get_vec_defs_for_stmt_copy): Likewise.
17227         (vect_get_vec_defs_for_operand): New function.
17228         (vect_get_vec_defs): Likewise.
17229         (vect_build_gather_load_calls): Adjust.
17230         (vect_get_gather_scatter_ops): Likewise.
17231         (vectorizable_bswap): Likewise.
17232         (vectorizable_call): Likewise.
17233         (vectorizable_simd_clone_call): Likewise.
17234         (vect_get_loop_based_defs): Remove.
17235         (vect_create_vectorized_demotion_stmts): Adjust.
17236         (vectorizable_conversion): Likewise.
17237         (vectorizable_assignment): Likewise.
17238         (vectorizable_shift): Likewise.
17239         (vectorizable_operation): Likewise.
17240         (vectorizable_scan_store): Likewise.
17241         (vectorizable_store): Likewise.
17242         (vectorizable_load): Likewise.
17243         (vectorizable_condition): Likewise.
17244         (vectorizable_comparison): Likewise.
17245         (vect_transform_stmt): Adjust and remove no longer applicable
17246         sanity checks.
17247         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
17248         STMT_VINFO_VEC_STMTS.
17249         (vec_info::free_stmt_vec_info): Relase it.
17250         * tree-vectorizer.h (_stmt_vec_info::vectorized_stmt): Remove.
17251         (_stmt_vec_info::vec_stmts): Add.
17252         (STMT_VINFO_VEC_STMT): Remove.
17253         (STMT_VINFO_VEC_STMTS): New.
17254         (vect_get_vec_def_for_operand_1): Remove.
17255         (vect_get_vec_def_for_operand): Likewise.
17256         (vect_get_vec_defs_for_stmt_copy): Likewise.
17257         (vect_get_vec_def_for_stmt_copy): Likewise.
17258         (vect_get_vec_defs): New overloads.
17259         (vect_get_vec_defs_for_operand): New.
17260         (vect_get_slp_defs): Declare.
17262 2020-06-10  Qian Chao  <qianchao9@huawei.com>
17264         PR tree-optimization/95569
17265         * trans-mem.c (expand_assign_tm): Ensure that rtmp is marked TREE_ADDRESSABLE.
17267 2020-06-10  Martin Liska  <mliska@suse.cz>
17269         PR tree-optimization/92860
17270         * optc-save-gen.awk: Generate new function cl_optimization_compare.
17271         * opth-gen.awk: Generate declaration of the function.
17273 2020-06-09  Michael Meissner  <meissner@linux.ibm.com>
17275         * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
17276         'future' PowerPC platform.
17277         (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
17278         (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
17279         * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
17280         MMA HWCAP2 bits.
17281         * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
17282         (rs6000_clone_map): Add 'future' system target_clones support.
17284 2020-06-09  Michael Kuhn  <gcc@ikkoku.de>
17286         * Makefile.in (ZSTD_INC): Define.
17287         (ZSTD_LIB): Include ZSTD_LDFLAGS.
17288         (CFLAGS-lto-compress.o): Add ZSTD_INC.
17289         * configure.ac (ZSTD_CPPFLAGS, ZSTD_LDFLAGS): New variables for
17290         AC_SUBST.
17291         * configure: Rebuilt.
17293 2020-06-09  Jason Merrill  <jason@redhat.com>
17295         PR c++/95552
17296         * tree.c (walk_tree_1): Call func on the TYPE_DECL of a DECL_EXPR.
17298 2020-06-09  Marco Elver  <elver@google.com>
17300         * params.opt: Define --param=tsan-distinguish-volatile=[0,1].
17301         * sanitizer.def (BUILT_IN_TSAN_VOLATILE_READ1): Define new
17302         builtin for volatile instrumentation of reads/writes.
17303         (BUILT_IN_TSAN_VOLATILE_READ2): Likewise.
17304         (BUILT_IN_TSAN_VOLATILE_READ4): Likewise.
17305         (BUILT_IN_TSAN_VOLATILE_READ8): Likewise.
17306         (BUILT_IN_TSAN_VOLATILE_READ16): Likewise.
17307         (BUILT_IN_TSAN_VOLATILE_WRITE1): Likewise.
17308         (BUILT_IN_TSAN_VOLATILE_WRITE2): Likewise.
17309         (BUILT_IN_TSAN_VOLATILE_WRITE4): Likewise.
17310         (BUILT_IN_TSAN_VOLATILE_WRITE8): Likewise.
17311         (BUILT_IN_TSAN_VOLATILE_WRITE16): Likewise.
17312         * tsan.c (get_memory_access_decl): Argument if access is
17313         volatile. If param tsan-distinguish-volatile is non-zero, and
17314         access if volatile, return volatile instrumentation decl.
17315         (instrument_expr): Check if access is volatile.
17317 2020-06-09  Richard Biener  <rguenther@suse.de>
17319         * tree-vect-loop.c (vectorizable_induction): Remove dead code.
17321 2020-06-09  Tobias Burnus  <tobias@codesourcery.com>
17323         * omp-offload.c (add_decls_addresses_to_decl_constructor,
17324         omp_finish_file): With in_lto_p, stream out all offload-table
17325         items even if the symtab_node does not exist.
17327 2020-06-09  Richard Biener  <rguenther@suse.de>
17329         * tree-vect-stmts.c (vect_transform_stmt): Remove dead code.
17331 2020-06-09  Martin Liska  <mliska@suse.cz>
17333         * gcov-dump.c (print_usage): Fix spacing for --raw option
17334         in --help.
17336 2020-06-09  Martin Liska  <mliska@suse.cz>
17338         * cif-code.def (ATTRIBUTE_MISMATCH): Rename to...
17339         (SANITIZE_ATTRIBUTE_MISMATCH): ...this.
17340         * ipa-inline.c (sanitize_attrs_match_for_inline_p):
17341         Handle all sanitizer options.
17342         (can_inline_edge_p): Use renamed CIF_* enum value.
17344 2020-06-09  Joe Ramsay  <joe.ramsay@arm.com>
17346         * config/aarch64/aarch64-sve.md (<optab><mode>2): Add support for
17347         unpacked vectors.
17348         (@aarch64_pred_<optab><mode>): Add support for unpacked vectors.
17349         (@aarch64_bic<mode>): Enable unpacked BIC.
17350         (*bic<mode>3): Enable unpacked BIC.
17352 2020-06-09  Martin Liska  <mliska@suse.cz>
17354         PR gcov-profile/95365
17355         * doc/gcov.texi: Compile and link one example in 2 steps.
17357 2020-06-09  Jakub Jelinek  <jakub@redhat.com>
17359         PR tree-optimization/95527
17360         * match.pd (__builtin_ffs (X) cmp CST): New optimizations.
17362 2020-06-09  Michael Meissner  <meissner@linux.ibm.com>
17364         * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
17365         'future' PowerPC platform.
17366         (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
17367         (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
17368         * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
17369         MMA HWCAP2 bits.
17370         * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
17371         (rs6000_clone_map): Add 'future' system target_clones support.
17373 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
17375         PR lto/94848
17376         PR middle-end/95551
17377         * omp-offload.c (add_decls_addresses_to_decl_constructor,
17378         omp_finish_file): Skip removed items.
17379         * lto-cgraph.c (output_offload_tables): Likewise; set force_output
17380         to this node for variables and functions.
17382 2020-06-08  Jason Merrill  <jason@redhat.com>
17384         * aclocal.m4: Remove ax_cxx_compile_stdcxx.m4.
17385         * configure.ac: Remove AX_CXX_COMPILE_STDCXX.
17386         * configure: Regenerate.
17388 2020-06-08  Martin Sebor  <msebor@redhat.com>
17390         * postreload.c (reload_cse_simplify_operands): Clear first array element
17391         before using it.  Assert a precondition.
17393 2020-06-08  Jakub Jelinek  <jakub@redhat.com>
17395         PR target/95528
17396         * tree-ssa-forwprop.c (simplify_vector_constructor): Don't use
17397         VEC_UNPACK*_EXPR or VEC_PACK_TRUNC_EXPR with scalar modes unless the
17398         type is vector boolean.
17400 2020-06-08  Tamar Christina  <tamar.christina@arm.com>
17402         * config/aarch64/aarch64.c (aarch64_layout_frame): Expand comments.
17404 2020-06-08  Christophe Lyon  <christophe.lyon@linaro.org>
17406         * config/arm/predicates.md (vfp_register_operand): Use VFP_HI_REGS
17407         instead of VFP_REGS.
17409 2020-06-08  Martin Liska  <mliska@suse.cz>
17411         * config/rs6000/vector.md: Replace FAIL with gcc_unreachable
17412         in all vcond* patterns.
17414 2020-06-08  Christophe Lyon  <christophe.lyon@linaro.org>
17416         * common/config/arm/arm-common.c (INCLUDE_ALGORITHM):
17417         Define. No longer include <algorithm>.
17419 2020-06-07  Roger Sayle  <roger@nextmovesoftware.com>
17421         * config/i386/i386.md (paritydi2, paritysi2): Expand reduction
17422         via shift and xor to an USPEC PARITY matching a parityhi2_cmp.
17423         (paritydi2_cmp, paritysi2_cmp): Delete these define_insn_and_split.
17424         (parityhi2, parityqi2): New expanders.
17425         (parityhi2_cmp): Implement set parity flag with xorb insn.
17426         (parityqi2_cmp): Implement set parity flag with testb insn.
17427         New peephole2s to use these insns (UNSPEC PARITY) when appropriate.
17429 2020-06-07  Jiufu Guo  <guojiufu@linux.ibm.com>
17431         PR target/95018
17432         * config/rs6000/rs6000.c (rs6000_option_override_internal):
17433         Override flag_cunroll_grow_size.
17435 2020-06-07  Jiufu Guo  <guojiufu@linux.ibm.com>
17437         * common.opt (flag_cunroll_grow_size): New flag.
17438         * toplev.c (process_options): Set flag_cunroll_grow_size.
17439         * tree-ssa-loop-ivcanon.c (pass_complete_unroll::execute):
17440         Use flag_cunroll_grow_size.
17442 2020-06-06  Jan Hubicka  <hubicka@ucw.cz>
17444         PR lto/95548
17445         * ipa-devirt.c (struct odr_enum_val): Turn values to wide_int.
17446         (ipa_odr_summary_write): Update streaming.
17447         (ipa_odr_read_section): Update streaming.
17449 2020-06-06  Alexandre Oliva  <oliva@adacore.com>
17451         PR driver/95456
17452         * gcc.c (do_spec_1): Don't call memcpy (_, NULL, 0).
17454 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
17455             Julian Brown  <julian@codesourcery.com>
17457         * gimplify.c (gimplify_adjust_omp_clauses): Remove
17458         'GOMP_MAP_STRUCT' mapping from OpenACC 'exit data' directives.
17460 2020-06-05  Richard Biener  <rguenther@suse.de>
17462         PR tree-optimization/95539
17463         * tree-vect-data-refs.c
17464         (vect_slp_analyze_and_verify_instance_alignment): Use
17465         SLP_TREE_REPRESENTATIVE for the data-ref check.
17466         * tree-vect-stmts.c (vectorizable_load): Reset stmt_info
17467         back to the first scalar stmt rather than the
17468         SLP_TREE_REPRESENTATIVE to match previous behavior.
17470 2020-06-05  Felix Yang  <felix.yang@huawei.com>
17472         PR target/95254
17473         * expr.c (emit_move_insn): Check src and dest of the copy to see
17474         if one or both of them are subregs, try to remove the subregs when
17475         innermode and outermode are equal in size and the mode change involves
17476         an implicit round trip through memory.
17478 2020-06-05  Jakub Jelinek  <jakub@redhat.com>
17480         PR target/95535
17481         * config/i386/i386.md (*ctzsi2_zext, *clzsi2_lzcnt_zext): New
17482         define_insn_and_split patterns.
17483         (*ctzsi2_zext_falsedep, *clzsi2_lzcnt_zext_falsedep): New
17484         define_insn patterns.
17486 2020-06-05  Jonathan Wakely  <jwakely@redhat.com>
17488         * alloc-pool.h (object_allocator::remove_raw): New.
17489         * tree-ssa-math-opts.c (struct occurrence): Use NSMDI.
17490         (occurrence::occurrence): Add.
17491         (occurrence::~occurrence): Likewise.
17492         (occurrence::new): Likewise.
17493         (occurrence::delete): Likewise.
17494         (occ_new): Remove.
17495         (insert_bb): Use new occurence (...) instead of occ_new.
17496         (register_division_in): Likewise.
17497         (free_bb): Use delete occ instead of manually removing
17498         from the pool.
17500 2020-06-05  Richard Biener  <rguenther@suse.de>
17502         PR middle-end/95493
17503         * cfgexpand.c (expand_debug_expr): Avoid calling
17504         set_mem_attributes_minus_bitpos when we were expanding
17505         an SSA name.
17506         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
17507         ARRAY_REF special-casing, add CONSTRUCTOR to the set of
17508         special-cases we do not want MEM_EXPRs for.  Assert
17509         we end up with reasonable MEM_EXPRs.
17511 2020-06-05  Lili Cui  <lili.cui@intel.com>
17513         PR target/95525
17514         * config/i386/i386.h (PTA_WAITPKG): Change bitmask value.
17516 2020-06-04  Martin Sebor  <msebor@redhat.com>
17518         PR middle-end/10138
17519         PR middle-end/95136
17520         * attribs.c (init_attr_rdwr_indices): Move function here.
17521         * attribs.h (rdwr_access_hash, rdwr_map): Define.
17522         (attr_access): Add 'none'.
17523         (init_attr_rdwr_indices): Declared function.
17524         * builtins.c (warn_for_access)): New function.
17525         (check_access): Call it.
17526         * builtins.h (checK-access): Add an optional argument.
17527         * calls.c (rdwr_access_hash, rdwr_map): Move to attribs.h.
17528         (init_attr_rdwr_indices): Declare extern.
17529         (append_attrname): Handle attr_access::none.
17530         (maybe_warn_rdwr_sizes): Same.
17531         (initialize_argument_information): Update comments.
17532         * doc/extend.texi (attribute access): Document 'none'.
17533         * tree-ssa-uninit.c (struct wlimits): New.
17534         (maybe_warn_operand): New function.
17535         (maybe_warn_pass_by_reference): Same.
17536         (warn_uninitialized_vars): Refactor code into maybe_warn_operand.
17537         Also call for function calls.
17538         (pass_late_warn_uninitialized::execute): Adjust comments.
17539         (execute_early_warn_uninitialized): Same.
17541 2020-06-04  Vladimir Makarov  <vmakarov@redhat.com>
17543         PR middle-end/95464
17544         * lra.c (lra_emit_move): Add processing STRICT_LOW_PART.
17545         * lra-constraints.c (match_reload): Use STRICT_LOW_PART in output
17546         reload if the original insn has it too.
17548 2020-06-04  Richard Biener  <rguenther@suse.de>
17550         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr):
17551         Ensure that tmp_ha is marked TREE_ADDRESSABLE.
17553 2020-06-04  Martin Jambor  <mjambor@suse.cz>
17555         PR ipa/95113
17556         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move non-call
17557         exceptions check to...
17558         * tree-eh.c (stmt_unremovable_because_of_non_call_eh_p): ...this
17559         new function.
17560         * tree-eh.h (stmt_unremovable_because_of_non_call_eh_p): Declare it.
17561         * ipa-sra.c (isra_track_scalar_value_uses): Use it.  New parameter
17562         fun.
17564 2020-06-04  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
17566         PR target/94735
17567         * config/arm/predicates.md (mve_scatter_memory): Define to
17568         match (mem (reg)) for scatter store memory.
17569         * config/arm/mve.md (mve_vstrbq_scatter_offset_<supf><mode>): Modify
17570         define_insn to define_expand.
17571         (mve_vstrbq_scatter_offset_p_<supf><mode>): Likewise.
17572         (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
17573         (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
17574         (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
17575         (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
17576         (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
17577         (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
17578         (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
17579         (mve_vstrhq_scatter_offset_fv8hf): Likewise.
17580         (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
17581         (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
17582         (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
17583         (mve_vstrwq_scatter_offset_fv4sf): Likewise.
17584         (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
17585         (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
17586         (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
17587         (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
17588         (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
17589         (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
17590         (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
17591         (mve_vstrbq_scatter_offset_<supf><mode>_insn): Define insn for scatter
17592         stores.
17593         (mve_vstrbq_scatter_offset_p_<supf><mode>_insn): Likewise.
17594         (mve_vstrhq_scatter_offset_<supf><mode>_insn): Likewise.
17595         (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>_insn): Likewise.
17596         (mve_vstrhq_scatter_shifted_offset_<supf><mode>_insn): Likewise.
17597         (mve_vstrdq_scatter_offset_p_<supf>v2di_insn): Likewise.
17598         (mve_vstrdq_scatter_offset_<supf>v2di_insn): Likewise.
17599         (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di_insn): Likewise.
17600         (mve_vstrdq_scatter_shifted_offset_<supf>v2di_insn): Likewise.
17601         (mve_vstrhq_scatter_offset_fv8hf_insn): Likewise.
17602         (mve_vstrhq_scatter_offset_p_fv8hf_insn): Likewise.
17603         (mve_vstrhq_scatter_shifted_offset_fv8hf_insn): Likewise.
17604         (mve_vstrhq_scatter_shifted_offset_p_fv8hf_insn): Likewise.
17605         (mve_vstrwq_scatter_offset_fv4sf_insn): Likewise.
17606         (mve_vstrwq_scatter_offset_p_fv4sf_insn): Likewise.
17607         (mve_vstrwq_scatter_offset_p_<supf>v4si_insn): Likewise.
17608         (mve_vstrwq_scatter_offset_<supf>v4si_insn): Likewise.
17609         (mve_vstrwq_scatter_shifted_offset_fv4sf_insn): Likewise.
17610         (mve_vstrwq_scatter_shifted_offset_p_fv4sf_insn): Likewise.
17611         (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si_insn): Likewise.
17612         (mve_vstrwq_scatter_shifted_offset_<supf>v4si_insn): Likewise.
17614 2020-06-04  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
17616         * config/arm/arm_mve.h (__arm_vbicq_n_u16): Correct the intrinsic
17617         arguments.
17618         (__arm_vbicq_n_s16): Likewise.
17619         (__arm_vbicq_n_u32): Likewise.
17620         (__arm_vbicq_n_s32): Likewise.
17621         (__arm_vbicq): Modify polymorphic variant.
17623 2020-06-04  Richard Biener  <rguenther@suse.de>
17625         * tree-vectorizer.h (vect_get_slp_vect_def): Declare.
17626         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
17627         * tree-vect-stmts.c (vect_transform_stmt): Likewise.
17628         (vect_is_simple_use): Use SLP_TREE_REPRESENTATIVE.
17629         * tree-vect-slp.c (vect_get_slp_vect_defs): Fold into single
17630         use ...
17631         (vect_get_slp_defs): ... here.
17632         (vect_get_slp_vect_def): New function.
17634 2020-06-04  Richard Biener  <rguenther@suse.de>
17636         * tree-vectorizer.h (_slp_tree::lanes): New.
17637         (SLP_TREE_LANES): Likewise.
17638         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
17639         (vectorizable_reduction): Likewise.
17640         (vect_transform_cycle_phi): Likewise.
17641         (vectorizable_induction): Likewise.
17642         (vectorizable_live_operation): Likewise.
17643         * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize lanes.
17644         (vect_create_new_slp_node): Likewise.
17645         (slp_copy_subtree): Copy it.
17646         (vect_optimize_slp): Use it.
17647         (vect_slp_analyze_node_operations_1): Likewise.
17648         (vect_slp_convert_to_external): Likewise.
17649         (vect_bb_vectorization_profitable_p): Likewise.
17650         * tree-vect-stmts.c (vectorizable_load): Likewise.
17651         (get_vectype_for_scalar_type): Likewise.
17653 2020-06-04  Richard Biener  <rguenther@suse.de>
17655         * tree-vect-slp.c (vect_update_all_shared_vectypes): Remove.
17656         (vect_build_slp_tree_2): Simplify building all external op
17657         nodes from scalars.
17658         (vect_slp_analyze_node_operations): Remove push/pop of
17659         STMT_VINFO_DEF_TYPE.
17660         (vect_schedule_slp_instance): Likewise.
17661         * tree-vect-stmts.c (ect_check_store_rhs): Pass in the
17662         stmt_info, use the vect_is_simple_use overload combining
17663         SLP and stmt_info analysis.
17664         (vect_is_simple_cond): Likewise.
17665         (vectorizable_store): Adjust.
17666         (vectorizable_condition): Likewise.
17667         (vect_is_simple_use): Fully handle invariant SLP nodes
17668         here.  Amend stmt_info operand extraction with COND_EXPR
17669         and masked stores.
17670         * tree-vect-loop.c (vectorizable_reduction): Deal with
17671         COND_EXPR representation ugliness.
17673 2020-06-04  Hongtao Liu  <hongtao.liu@inte.com>
17675         PR target/95254
17676         * config/i386/sse.md (*vcvtps2ph_store<merge_mask_name>):
17677         Refine from *vcvtps2ph_store<mask_name>.
17678         (vcvtps2ph256<mask_name>): Refine constraint from vm to v.
17679         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
17680         (*vcvtps2ph256<merge_mask_name>): New define_insn.
17681         (*avx512f_vcvtps2ph512<merge_mask_name>): Ditto.
17682         * config/i386/subst.md (merge_mask): New define_subst.
17683         (merge_mask_name): New define_subst_attr.
17684         (merge_mask_operand3): Ditto.
17686 2020-06-04  Hao Liu  <hliu@os.amperecomputing.com>
17688         PR tree-optimization/89430
17689         * tree-ssa-phiopt.c
17690         (struct name_to_bb): Rename to ref_to_bb; add a new field exp;
17691         remove ssa_name_ver, store, offset fields.
17692         (struct ssa_names_hasher): Rename to refs_hasher; update functions.
17693         (class nontrapping_dom_walker): Rename m_seen_ssa_names to m_seen_refs.
17694         (nontrapping_dom_walker::add_or_mark_expr): Extend to support ARRAY_REFs
17695         and COMPONENT_REFs.
17697 2020-06-04  Andreas Schwab  <schwab@suse.de>
17699         PR target/95154
17700         * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Call assemble_external.
17702 2020-06-04  Hongtao.liu  <hongtao.liu@intel.com>
17704         * config/i386/sse.md (pmov_dst_3_lower): New mode attribute.
17705         (trunc<mode><pmov_dst_3_lower>2): Refine from
17706         trunc<mode><pmov_dst_3>2.
17708 2020-06-03  Vitor Guidi  <vitor.guidi@usp.br>
17710         * match.pd (tanh/sinh -> 1/cosh): New simplification.
17712 2020-06-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
17714         PR target/95347
17715         * config/rs6000/rs6000.c (is_stfs_insn): Rename to
17716         is_lfs_stfs_insn and make it recognize lfs as well.
17717         (prefixed_store_p): Use is_lfs_stfs_insn().
17718         (prefixed_load_p): Use is_lfs_stfs_insn() to recognize lfs.
17720 2020-06-03  Jan Hubicka  <hubicka@ucw.cz>
17722         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
17723         streamer-hooks.h.
17724         (odr_enums): New static var.
17725         (struct odr_enum_val): New struct.
17726         (class odr_enum): New struct.
17727         (odr_enum_map): New hashtable.
17728         (odr_types_equivalent_p): Drop code testing TYPE_VALUES.
17729         (add_type_duplicate): Likewise.
17730         (free_odr_warning_data): Do not free TYPE_VALUES.
17731         (register_odr_enum): New function.
17732         (ipa_odr_summary_write): New function.
17733         (ipa_odr_read_section): New function.
17734         (ipa_odr_summary_read): New function.
17735         (class pass_ipa_odr): New pass.
17736         (make_pass_ipa_odr): New function.
17737         * ipa-utils.h (register_odr_enum): Declare.
17738         * lto-section-in.c: (lto_section_name): Add odr_types section.
17739         * lto-streamer.h (enum lto_section_type): Add odr_types section.
17740         * passes.def: Add odr_types pass.
17741         * lto-streamer-out.c (DFS::DFS_write_tree_body): Do not stream
17742         TYPE_VALUES.
17743         (hash_tree): Likewise.
17744         * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
17745         Likewise.
17746         * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
17747         Likewise.
17748         * timevar.def (TV_IPA_ODR): New timervar.
17749         * tree-pass.h (make_pass_ipa_odr): Declare.
17750         * tree.c (free_lang_data_in_type): Regiser ODR types.
17752 2020-06-03  Romain Naour  <romain.naour@gmail.com>
17754         * Makefile.in (SELFTEST_DEPS): Move before including language makefile
17755         fragments.
17757 2020-06-03  Richard Biener  <rguenther@suse.de>
17759         PR tree-optimization/95487
17760         * tree-vect-stmts.c (vectorizable_store): Use a truth type
17761         for the scatter mask.
17763 2020-06-03  Richard Biener  <rguenther@suse.de>
17765         PR tree-optimization/95495
17766         * tree-vect-slp.c (vect_slp_analyze_node_operations): Use
17767         SLP_TREE_REPRESENTATIVE in the shift assertion.
17769 2020-06-03  Tom Tromey  <tromey@adacore.com>
17771         * spellcheck.c (CASE_COST): New define.
17772         (BASE_COST): New define.
17773         (get_edit_distance): Recognize case changes.
17774         (get_edit_distance_cutoff): Update.
17775         (test_edit_distances): Update.
17776         (get_old_cutoff): Update.
17777         (test_find_closest_string): Add case sensitivity test.
17779 2020-06-03  Richard Biener  <rguenther@suse.de>
17781         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Loop over
17782         the cost vector to unset the visited flag on stmts.
17784 2020-06-03  Tobias Burnus  <tobias@codesourcery.com>
17786         * gimplify.c (omp_notice_variable): Use new hook.
17787         * langhooks-def.h (lhd_omp_predetermined_mapping): Declare.
17788         (LANG_HOOKS_OMP_PREDETERMINED_MAPPING): Define
17789         (LANG_HOOKS_DECLS): Add it.
17790         * langhooks.c (lhd_omp_predetermined_sharing): Remove bogus unused attr.
17791         (lhd_omp_predetermined_mapping): New.
17792         * langhooks.h (struct lang_hooks_for_decls): Add new hook.
17794 2020-06-03  Jan Hubicka  <jh@suse.cz>
17796         * lto-streamer.h (LTO_tags): Reorder so frequent tags has small indexes;
17797         add LTO_first_tree_tag and LTO_first_gimple_tag.
17798         (lto_tag_is_tree_code_p): Update.
17799         (lto_tag_is_gimple_code_p): Update.
17800         (lto_gimple_code_to_tag): Update.
17801         (lto_tag_to_gimple_code): Update.
17802         (lto_tree_code_to_tag): Update.
17803         (lto_tag_to_tree_code): Update.
17805 2020-06-02  Felix Yang  <felix.yang@huawei.com>
17807         PR target/95459
17808         * config/aarch64/aarch64.c (aarch64_short_vector_p):
17809         Leave later code to report an error if SVE is disabled.
17811 2020-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17813         * config/aarch64/aarch64-cores.def (zeus): Define.
17814         * config/aarch64/aarch64-tune.md: Regenerate.
17815         * doc/invoke.texi (AArch64 Options): Document zeus -mcpu option.
17817 2020-06-02  Aaron Sawdey  <acsawdey@linux.ibm.com>
17819         PR target/95347
17820         * config/rs6000/rs6000.c (prefixed_store_p): Add special case
17821         for stfs.
17822         (is_stfs_insn): New helper function.
17824 2020-06-02  Jan Hubicka  <jh@suse.cz>
17826         * lto-streamer-in.c (stream_read_tree_ref): Simplify streaming of
17827         references.
17828         * lto-streamer-out.c (stream_write_tree_ref): Likewise.
17830 2020-06-02  Andrew Stubbs  <ams@codesourcery.com>
17832         * config/gcn/gcn-hsa.h (CC1_SPEC): Delete.
17833         * config/gcn/gcn.opt (-mlocal-symbol-id): Delete.
17834         * config/gcn/mkoffload.c (main): Don't use -mlocal-symbol-id.
17836 2020-06-02  Eric Botcazou  <ebotcazou@adacore.com>
17838         PR middle-end/95395
17839         * optabs.c (expand_unop): Fix bits/bytes confusion in latest change.
17840         * tree-pretty-print.c (dump_generic_node) <ARRAY_TYPE>: Print quals.
17842 2020-06-02  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
17844         * config/s390/s390.c (print_operand): Emit vector alignment
17845         hints for z13.
17847 2020-06-02  Martin Liska  <mliska@suse.cz>
17849         * coverage.c (get_coverage_counts): Skip sanity check for TOP N counters
17850         as they have variable number of counters.
17851         * gcov-dump.c (main): Add new option -r.
17852         (print_usage): Likewise.
17853         (tag_counters): All new raw format.
17854         * gcov-io.h (struct gcov_kvp): New.
17855         (GCOV_TOPN_VALUES): Remove.
17856         (GCOV_TOPN_VALUES_COUNTERS): Likewise.
17857         (GCOV_TOPN_MEM_COUNTERS): New.
17858         (GCOV_TOPN_DISK_COUNTERS): Likewise.
17859         (GCOV_TOPN_MAXIMUM_TRACKED_VALUES): Likewise.
17860         * ipa-profile.c (ipa_profile_generate_summary): Use
17861         GCOV_TOPN_MAXIMUM_TRACKED_VALUES.
17862         (ipa_profile_write_edge_summary): Likewise.
17863         (ipa_profile_read_edge_summary): Likewise.
17864         (ipa_profile): Remove usage of GCOV_TOPN_VALUES.
17865         * profile.c (sort_hist_values): Sort variable number
17866         of counters.
17867         (compute_value_histograms): Special case for TOP N counters
17868         that have dynamic number of key-value pairs.
17869         * value-prof.c (dump_histogram_value): Dump variable number
17870         of key-value pairs.
17871         (stream_in_histogram_value): Stream in variable number
17872         of key-value pairs for TOP N counter.
17873         (get_nth_most_common_value): Deal with variable number
17874         of key-value pairs.
17875         (dump_ic_profile): Use GCOV_TOPN_MAXIMUM_TRACKED_VALUES
17876         for loop iteration.
17877         (gimple_find_values_to_profile): Set GCOV_TOPN_MEM_COUNTERS
17878         to n_counters.
17879         * doc/gcov-dump.texi: Document new -r option.
17881 2020-06-02  Iain Buclaw  <ibuclaw@gdcproject.org>
17883         PR target/95420
17884         * config.gcc (arm-wrs-vxworks7*): Set default cpu to generic-armv7-a.
17886 2020-06-01  Jeff Law  <law@torsion.usersys.redhat.com>
17888         * lower-subreg.c (resolve_simple_move): If simplify_gen_subreg_concatn
17889         returns (const_int 0) for the destination, then emit nothing.
17891 2020-06-01  Jan Hubicka  <hubicka@ucw.cz>
17893         * lto-streamer.h (enum LTO_tags): Remove LTO_field_decl_ref,
17894         LTO_function_decl_ref, LTO_label_decl_ref, LTO_namespace_decl_ref,
17895         LTO_result_decl_ref, LTO_type_decl_ref, LTO_type_ref,
17896         LTO_const_decl_ref, LTO_imported_decl_ref,
17897         LTO_translation_unit_decl_ref, LTO_global_decl_ref and
17898         LTO_namelist_decl_ref; add LTO_global_stream_ref.
17899         * lto-streamer-in.c (lto_input_tree_ref): Simplify.
17900         (lto_input_scc): Update.
17901         (lto_input_tree_1): Update.
17902         * lto-streamer-out.c (lto_indexable_tree_ref): Simlify.
17903         * lto-streamer.c (lto_tag_name): Update.
17905 2020-06-01  Jan Hubicka  <hubicka@ucw.cz>
17907         * ipa-reference.c (stream_out_bitmap): Use lto_output_var_decl_ref.
17908         (ipa_reference_read_optimization_summary): Use lto_intput_var_decl_ref.
17909         * lto-cgraph.c (lto_output_node): Likewise.
17910         (lto_output_varpool_node): Likewise.
17911         (output_offload_tables): Likewise.
17912         (input_node): Likewise.
17913         (input_varpool_node): Likewise.
17914         (input_offload_tables): Likewise.
17915         * lto-streamer-in.c (lto_input_tree_ref): Declare.
17916         (lto_input_var_decl_ref): Declare.
17917         (lto_input_fn_decl_ref): Declare.
17918         * lto-streamer-out.c (lto_indexable_tree_ref): Use only one decl stream.
17919         (lto_output_var_decl_index): Rename to ..
17920         (lto_output_var_decl_ref): ... this.
17921         (lto_output_fn_decl_index): Rename to ...
17922         (lto_output_fn_decl_ref): ... this.
17923         * lto-streamer.h (enum lto_decl_stream_e_t): Remove per-type streams.
17924         (DEFINE_DECL_STREAM_FUNCS): Remove.
17925         (lto_output_var_decl_index): Remove.
17926         (lto_output_fn_decl_index): Remove.
17927         (lto_output_var_decl_ref): Declare.
17928         (lto_output_fn_decl_ref): Declare.
17929         (lto_input_var_decl_ref): Declare.
17930         (lto_input_fn_decl_ref): Declare.
17932 2020-06-01  Feng Xue  <fxue@os.amperecomputing.com>
17934         * cgraphclones.c (materialize_all_clones): Adjust replace map dump.
17935         * ipa-param-manipulation.c (ipa_dump_adjusted_parameters): Do not
17936         dump infomation if there is no adjusted parameter.
17937         * (ipa_param_adjustments::dump): Adjust prefix spaces for dump string.
17939 2020-06-01  Aldy Hernandez  <aldyh@redhat.com>
17941         * Makefile.in (gimple-array-bounds.o): New.
17942         * tree-vrp.c: Move array bounds code...
17943         * gimple-array-bounds.cc: ...here...
17944         * gimple-array-bounds.h: ...and here.
17946 2020-06-01  Aldy Hernandez  <aldyh@redhat.com>
17948         * Makefile.in (OBJS): Add value-range-equiv.o.
17949         * tree-vrp.c (*value_range_equiv*): Move to...
17950         * value-range-equiv.cc: ...here.
17951         * tree-vrp.h (class value_range_equiv): Move to...
17952         * value-range-equiv.h: ...here.
17953         * vr-values.h: Include value-range-equiv.h.
17955 2020-06-01  Feng Xue  <fxue@os.amperecomputing.com>
17957         PR ipa/93429
17958         * ipa-cp.c (propagate_aggs_across_jump_function): Check aggregate
17959         lattice for simple pass-through by-ref argument.
17961 2020-05-31  Jeff Law  <law@redhat.com>
17963         * lra.c (add_auto_inc_notes): Remove function.
17964         * reload1.c (add_auto_inc_notes): Similarly.  Move into...
17965         * rtlanal.c (add_auto_inc_notes): New function.
17966         * rtl.h (add_auto_inc_notes): Add prototype.
17967         * recog.c (peep2_attempt): Scan and add REG_INC notes to new insns
17968         as needed.
17970 2020-05-31  Jan Hubicka  <jh@suse.cz>
17972         * lto-section-out.c (lto_output_decl_index): Remove.
17973         (lto_output_field_decl_index): Move to lto-streamer-out.c
17974         (lto_output_fn_decl_index): Move to lto-streamer-out.c
17975         (lto_output_namespace_decl_index): Remove.
17976         (lto_output_var_decl_index): Remove.
17977         (lto_output_type_decl_index): Remove.
17978         (lto_output_type_ref_index): Remove.
17979         * lto-streamer-out.c (output_type_ref): Remove.
17980         (lto_get_index): New function.
17981         (lto_output_tree_ref): Remove.
17982         (lto_indexable_tree_ref): New function.
17983         (lto_output_var_decl_index): Move here from lto-section-out.c; simplify.
17984         (lto_output_fn_decl_index): Move here from lto-section-out.c; simplify.
17985         (stream_write_tree_ref): Update.
17986         (lto_output_tree): Update.
17987         * lto-streamer.h (lto_output_decl_index): Remove prototype.
17988         (lto_output_field_decl_index): Remove prototype.
17989         (lto_output_namespace_decl_index): Remove prototype.
17990         (lto_output_type_decl_index): Remove prototype.
17991         (lto_output_type_ref_index): Remove prototype.
17992         (lto_output_var_decl_index): Move.
17993         (lto_output_fn_decl_index): Move
17995 2020-05-31  Jakub Jelinek  <jakub@redhat.com>
17997         PR middle-end/95052
17998         * expr.c (store_expr): For shortedned_string_cst, ensure temp has
17999         BLKmode.
18001 2020-05-31  Jeff Law  <law@redhat.com>
18003         * config/h8300/jumpcall.md (brabs, brabc): Disable patterns.
18005 2020-05-31  Jim Wilson  <jimw@sifive.com>
18007         * config/riscv/riscv.md (zero_extendsidi2_shifted): New.
18009 2020-05-30  Jonathan Yong  <10walls@gmail.com>
18011         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Insert -lkernel32
18012         after -lmsvcrt. This is necessary as libmsvcrt.a is not a pure
18013         import library, but also contains some functions that invoke
18014         others in KERNEL32.DLL.
18016 2020-05-29  Segher Boessenkool  <segher@kernel.crashing.org>
18018         * config/rs6000/altivec.md (altivec_vmrghw_direct): Prefer VSX form.
18019         (altivec_vmrglw_direct): Ditto.
18020         (altivec_vperm_<mode>_direct): Ditto.
18021         (altivec_vperm_v8hiv16qi): Ditto.
18022         (*altivec_vperm_<mode>_uns_internal): Ditto.
18023         (*altivec_vpermr_<mode>_internal): Ditto.
18024         (vperm_v8hiv4si): Ditto.
18025         (vperm_v16qiv8hi): Ditto.
18027 2020-05-29  Jan Hubicka  <jh@suse.cz>
18029         * lto-streamer-in.c (streamer_read_chain): Move here from
18030         tree-streamer-in.c.
18031         (stream_read_tree_ref): New.
18032         (lto_input_tree_1): Simplify.
18033         * lto-streamer-out.c (stream_write_tree_ref): New.
18034         (lto_write_tree_1): Simplify.
18035         (lto_output_tree_1): Simplify.
18036         (DFS::DFS_write_tree): Simplify.
18037         (streamer_write_chain): Move here from tree-stremaer-out.c.
18038         * lto-streamer.h (lto_output_tree_ref): Update prototype.
18039         (stream_read_tree_ref): Declare
18040         (stream_write_tree_ref): Declare
18041         * tree-streamer-in.c (streamer_read_chain): Update to use
18042         stream_read_tree_ref.
18043         (lto_input_ts_common_tree_pointers): Likewise.
18044         (lto_input_ts_vector_tree_pointers): Likewise.
18045         (lto_input_ts_poly_tree_pointers): Likewise.
18046         (lto_input_ts_complex_tree_pointers): Likewise.
18047         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
18048         (lto_input_ts_decl_common_tree_pointers): Likewise.
18049         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
18050         (lto_input_ts_field_decl_tree_pointers): Likewise.
18051         (lto_input_ts_function_decl_tree_pointers): Likewise.
18052         (lto_input_ts_type_common_tree_pointers): Likewise.
18053         (lto_input_ts_type_non_common_tree_pointers): Likewise.
18054         (lto_input_ts_list_tree_pointers): Likewise.
18055         (lto_input_ts_vec_tree_pointers): Likewise.
18056         (lto_input_ts_exp_tree_pointers): Likewise.
18057         (lto_input_ts_block_tree_pointers): Likewise.
18058         (lto_input_ts_binfo_tree_pointers): Likewise.
18059         (lto_input_ts_constructor_tree_pointers): Likewise.
18060         (lto_input_ts_omp_clause_tree_pointers): Likewise.
18061         * tree-streamer-out.c (streamer_write_chain): Update to use
18062         stream_write_tree_ref.
18063         (write_ts_common_tree_pointers): Likewise.
18064         (write_ts_vector_tree_pointers): Likewise.
18065         (write_ts_poly_tree_pointers): Likewise.
18066         (write_ts_complex_tree_pointers): Likewise.
18067         (write_ts_decl_minimal_tree_pointers): Likewise.
18068         (write_ts_decl_common_tree_pointers): Likewise.
18069         (write_ts_decl_non_common_tree_pointers): Likewise.
18070         (write_ts_decl_with_vis_tree_pointers): Likewise.
18071         (write_ts_field_decl_tree_pointers): Likewise.
18072         (write_ts_function_decl_tree_pointers): Likewise.
18073         (write_ts_type_common_tree_pointers): Likewise.
18074         (write_ts_type_non_common_tree_pointers): Likewise.
18075         (write_ts_list_tree_pointers): Likewise.
18076         (write_ts_vec_tree_pointers): Likewise.
18077         (write_ts_exp_tree_pointers): Likewise.
18078         (write_ts_block_tree_pointers): Likewise.
18079         (write_ts_binfo_tree_pointers): Likewise.
18080         (write_ts_constructor_tree_pointers): Likewise.
18081         (write_ts_omp_clause_tree_pointers): Likewise.
18082         (streamer_write_tree_body): Likewise.
18083         (streamer_write_integer_cst): Likewise.
18084         * tree-streamer.h (streamer_read_chain):Declare.
18085         (streamer_write_chain):Declare.
18086         (streamer_write_tree_body): Update prototype.
18087         (streamer_write_integer_cst): Update prototype.
18089 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
18091         PR bootstrap/95413
18092         * configure: Regenerated.
18094 2020-05-29  Andrew Stubbs  <ams@codesourcery.com>
18096         * config/gcn/gcn-valu.md (add<mode>3_vcc_zext_dup): Add early clobber.
18097         (add<mode>3_vcc_zext_dup_exec): Likewise.
18098         (add<mode>3_vcc_zext_dup2): Likewise.
18099         (add<mode>3_vcc_zext_dup2_exec): Likewise.
18101 2020-05-29  Richard Biener  <rguenther@suse.de>
18103         PR tree-optimization/95272
18104         * tree-vectorizer.h (_slp_tree::representative): Add.
18105         (SLP_TREE_REPRESENTATIVE): Likewise.
18106         * tree-vect-loop.c (vectorizable_reduction): Adjust SLP
18107         node gathering.
18108         (vectorizable_live_operation): Use the representative to
18109         attach the reduction info to.
18110         * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
18111         SLP_TREE_REPRESENTATIVE.
18112         (vect_create_new_slp_node): Likewise.
18113         (slp_copy_subtree): Copy it.
18114         (vect_slp_rearrange_stmts): Re-arrange even COND_EXPR stmts.
18115         (vect_slp_analyze_node_operations_1): Pass the representative
18116         to vect_analyze_stmt.
18117         (vect_schedule_slp_instance): Pass the representative to
18118         vect_transform_stmt.
18120 2020-05-29  Richard Biener  <rguenther@suse.de>
18122         PR tree-optimization/95356
18123         * tree-vect-stmts.c (vectorizable_shift): Do in-place SLP
18124         node hacking during analysis.
18126 2020-05-29  Jan Hubicka  <hubicka@ucw.cz>
18128         PR lto/95362
18129         * lto-streamer-out.c (lto_output_tree): Disable redundant streaming.
18131 2020-05-29  Richard Biener  <rguenther@suse.de>
18133         PR tree-optimization/95403
18134         * tree-vect-stmts.c (vect_init_vector_1): Guard against NULL
18135         stmt_vinfo.
18137 2020-05-29  Jakub Jelinek  <jakub@redhat.com>
18139         PR middle-end/95315
18140         * omp-general.c (omp_resolve_declare_variant): Fix up addition of
18141         declare variant cgraph node removal callback.
18143 2020-05-29  Jakub Jelinek  <jakub@redhat.com>
18145         PR middle-end/95052
18146         * expr.c (store_expr): If expr_size is constant and significantly
18147         larger than TREE_STRING_LENGTH, set temp to just the
18148         TREE_STRING_LENGTH portion of the STRING_CST.
18150 2020-05-29  Richard Biener  <rguenther@suse.de>
18152         PR tree-optimization/95393
18153         * tree-ssa-phiopt.c (minmax_replacement): Use gimple_build
18154         to build the min/max expression so we simplify cases like
18155         MAX(0, s) immediately.
18157 2020-05-29  Joe Ramsay  <joe.ramsay@arm.com>
18159         * config/aarch64/aarch64-sve.md (<LOGICAL:optab><mode>3): Add support
18160         for unpacked EOR, ORR, AND.
18162 2020-05-28  Nicolas Bértolo  <nicolasbertolo@gmail.com>
18164         * Makefile.in: don't look for libiberty in the "pic" subdirectory
18165         when building for Mingw. Add dependency on xgcc with the proper
18166         extension.
18168 2020-05-28  Jeff Law  <law@redhat.com>
18170         * config/h8300/logical.md (bclrhi_msx): Remove pattern.
18172 2020-05-28  Jeff Law  <law@redhat.com>
18174         * config/h8300/logical.md (HImode H8/SX bit-and splitter): Don't
18175         make a nonzero adjustment to the memory offset.
18176         (b<ior,xor>hi_msx): Turn into a splitter.
18178 2020-05-28  Eric Botcazou  <ebotcazou@adacore.com>
18180         * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
18181         Fix off-by-one error.
18183 2020-05-28  Richard Sandiford  <richard.sandiford@arm.com>
18185         * config/aarch64/aarch64.h (aarch64_frame): Add a comment above
18186         wb_candidate1 and wb_candidate2.
18187         * config/aarch64/aarch64.c (aarch64_layout_frame): Invalidate
18188         wb_candidate1 and wb_candidate2 if we decided not to use them.
18190 2020-05-28  Richard Sandiford  <richard.sandiford@arm.com>
18192         PR testsuite/95361
18193         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Assert that
18194         we have at least some CFI operations when using a frame pointer.
18195         Only redefine the CFA if we have CFI operations.
18197 2020-05-28  Richard Biener  <rguenther@suse.de>
18199         * tree-vect-slp.c (vect_prologue_cost_for_slp): Remove
18200         case for !SLP_TREE_VECTYPE.
18201         (vect_slp_analyze_node_operations): Adjust.
18203 2020-05-28  Richard Biener  <rguenther@suse.de>
18205         * tree-vectorizer.h (_slp_tree::vec_defs): Add.
18206         (SLP_TREE_VEC_DEFS): Likewise.
18207         * tree-vect-slp.c (_slp_tree::_slp_tree): Adjust.
18208         (_slp_tree::~_slp_tree): Likewise.
18209         (vect_mask_constant_operand_p): Remove unused function.
18210         (vect_get_constant_vectors): Rename to...
18211         (vect_create_constant_vectors): ... this.  Take the
18212         invariant node as argument and code generate it.  Remove
18213         dead code, remove temporary asserts.  Pass a NULL stmt_info
18214         to vect_init_vector.
18215         (vect_get_slp_defs): Simplify.
18216         (vect_schedule_slp_instance): Code-generate externals and
18217         invariants using vect_create_constant_vectors.
18219 2020-05-28  Richard Biener  <rguenther@suse.de>
18221         * tree-vect-stmts.c (vect_finish_stmt_generation_1):
18222         Conditionalize stmt_info use, assert the new stmt cannot throw
18223         when not specified.
18224         (vect_finish_stmt_generation): Adjust assert.
18226 2020-05-28  Richard Biener  <rguenther@suse.de>
18228         PR tree-optimization/95273
18229         PR tree-optimization/95356
18230         * tree-vect-stmts.c (vectorizable_shift): Adjust when and to
18231         what we set the vector type of the shift operand SLP node
18232         again.
18234 2020-05-28  Andrea Corallo  <andrea.corallo@arm.com>
18236         * config/arm/arm.c (mve_vector_mem_operand): Fix unwanted
18237         fall-throughs.
18239 2020-05-28  Martin Liska  <mliska@suse.cz>
18241         PR web/95380
18242         * doc/invoke.texi: Add missing params, remove max-once-peeled-insns and
18243         rename ipcp-unit-growth to ipa-cp-unit-growth.
18245 2020-05-28  Hongtao Liu  <hongtao.liu@intel.com>
18247         * config/i386/sse.md (*avx512vl_<code>v2div2qi2_store_1): Rename
18248         from *avx512vl_<code>v2div2qi_store and refine memory size of
18249         the pattern.
18250         (*avx512vl_<code>v2div2qi2_mask_store_1): Ditto.
18251         (*avx512vl_<code><mode>v4qi2_store_1): Ditto.
18252         (*avx512vl_<code><mode>v4qi2_mask_store_1): Ditto.
18253         (*avx512vl_<code><mode>v8qi2_store_1): Ditto.
18254         (*avx512vl_<code><mode>v8qi2_mask_store_1): Ditto.
18255         (*avx512vl_<code><mode>v4hi2_store_1): Ditto.
18256         (*avx512vl_<code><mode>v4hi2_mask_store_1): Ditto.
18257         (*avx512vl_<code>v2div2hi2_store_1): Ditto.
18258         (*avx512vl_<code>v2div2hi2_mask_store_1): Ditto.
18259         (*avx512vl_<code>v2div2si2_store_1): Ditto.
18260         (*avx512vl_<code>v2div2si2_mask_store_1): Ditto.
18261         (*avx512f_<code>v8div16qi2_store_1): Ditto.
18262         (*avx512f_<code>v8div16qi2_mask_store_1): Ditto.
18263         (*avx512vl_<code>v2div2qi2_store_2): New define_insn_and_split.
18264         (*avx512vl_<code>v2div2qi2_mask_store_2): Ditto.
18265         (*avx512vl_<code><mode>v4qi2_store_2): Ditto.
18266         (*avx512vl_<code><mode>v4qi2_mask_store_2): Ditto.
18267         (*avx512vl_<code><mode>v8qi2_store_2): Ditto.
18268         (*avx512vl_<code><mode>v8qi2_mask_store_2): Ditto.
18269         (*avx512vl_<code><mode>v4hi2_store_2): Ditto.
18270         (*avx512vl_<code><mode>v4hi2_mask_store_2): Ditto.
18271         (*avx512vl_<code>v2div2hi2_store_2): Ditto.
18272         (*avx512vl_<code>v2div2hi2_mask_store_2): Ditto.
18273         (*avx512vl_<code>v2div2si2_store_2): Ditto.
18274         (*avx512vl_<code>v2div2si2_mask_store_2): Ditto.
18275         (*avx512f_<code>v8div16qi2_store_2): Ditto.
18276         (*avx512f_<code>v8div16qi2_mask_store_2): Ditto.
18277         * config/i386/i386-builtin-types.def: Adjust builtin type.
18278         * config/i386/i386-expand.c: Ditto.
18279         * config/i386/i386-builtin.def: Adjust builtin.
18280         * config/i386/avx512fintrin.h: Ditto.
18281         * config/i386/avx512vlbwintrin.h: Ditto.
18282         * config/i386/avx512vlintrin.h: Ditto.
18284 2020-05-28  Dong JianQiang  <dongjianqiang2@huawei.com>
18286         PR gcov-profile/95332
18287         * gcov-io.c (gcov_var::endian): Move field.
18288         (from_file): Add IN_GCOV_TOOL check.
18289         * gcov-io.h (gcov_magic): Ditto.
18291 2020-05-28  Max Filippov  <jcmvbkbc@gmail.com>
18293         * config/xtensa/xtensa.c (xtensa_delegitimize_address): New
18294         function.
18295         (TARGET_DELEGITIMIZE_ADDRESS): New macro.
18297 2020-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18299         * builtin-types.def (BT_UINT128): New primitive type.
18300         (BT_FN_UINT128_UINT128): New function type.
18301         * builtins.def (BUILT_IN_BSWAP128): New GCC builtin.
18302         * doc/extend.texi (__builtin_bswap128): Document it.
18303         * builtins.c (expand_builtin): Deal with BUILT_IN_BSWAP128.
18304         (is_inexpensive_builtin): Likewise.
18305         * fold-const-call.c (fold_const_call_ss): Likewise.
18306         * fold-const.c (tree_call_nonnegative_warnv_p): Likewise.
18307         * tree-ssa-ccp.c (evaluate_stmt): Likewise.
18308         * tree-vect-stmts.c (vect_get_data_ptr_increment): Likewise.
18309         (vectorizable_call): Likewise.
18310         * optabs.c (expand_unop): Always use the double word path for it.
18311         * tree-core.h (enum tree_index): Add TI_UINT128_TYPE.
18312         * tree.h (uint128_type_node): New global type.
18313         * tree.c (build_common_tree_nodes): Build it if TImode is supported.
18315 2020-05-27  Uroš Bizjak  <ubizjak@gmail.com>
18317         * config/i386/mmx.md (*mmx_haddv2sf3): Remove SSE alternatives.
18318         (mmx_hsubv2sf3): Ditto.
18319         (mmx_haddsubv2sf3): New expander.
18320         (*mmx_haddsubv2sf3): Rename from mmx_addsubv2sf3. Correct
18321         RTL template to model horizontal subtraction and addition.
18322         * config/i386/i386-builtin.def (IX86_BUILTIN_PFPNACC):
18323         Update for rename.
18325 2020-05-27  Uroš Bizjak  <ubizjak@gmail.com>
18327         PR target/95355
18328         * config/i386/sse.md
18329         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>):
18330         Remove %q operand modifier from insn template.
18331         (avx512f_<code>v8hiv8di2<mask_name>): Ditto.
18333 2020-05-27  Uroš Bizjak  <ubizjak@gmail.com>
18335         * config/i386/mmx.md (mmx_pswapdsf2): Add SSE alternatives.
18336         Enable insn pattern for TARGET_MMX_WITH_SSE.
18337         (*mmx_movshdup): New insn pattern.
18338         (*mmx_movsldup): Ditto.
18339         (*mmx_movss): Ditto.
18340         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
18341         Handle E_V2SFmode.
18342         (expand_vec_perm_movs): Handle E_V2SFmode.
18343         (expand_vec_perm_even_odd): Ditto.
18344         (expand_vec_perm_broadcast_1): Assert that E_V2SFmode
18345         is already handled by standard shuffle patterns.
18347 2020-05-27  Richard Biener  <rguenther@suse.de>
18349         PR tree-optimization/95295
18350         * tree-ssa-loop-im.c (sm_seq_valid_bb): Fix sinking after
18351         merging stores from paths.
18353 2020-05-27  Richard Biener  <rguenther@suse.de>
18355         PR tree-optimization/95356
18356         * tree-vect-stmts.c (vectorizable_shift): Adjust vector
18357         type for the shift operand.
18359 2020-05-27  Richard Biener  <rguenther@suse.de>
18361         PR tree-optimization/95335
18362         * tree-vect-slp.c (vect_slp_analyze_node_operations): Reset
18363         lvisited for nodes made external.
18365 2020-05-27  Richard Biener  <rguenther@suse.de>
18367         * dump-context.h (debug_dump_context): New class.
18368         (dump_context): Make it friend.
18369         * dumpfile.c (debug_dump_context::debug_dump_context):
18370         Implement.
18371         (debug_dump_context::~debug_dump_context): Likewise.
18372         * tree-vect-slp.c: Include dump-context.h.
18373         (vect_print_slp_tree): Dump a single SLP node.
18374         (debug): New overload for slp_tree.
18375         (vect_print_slp_graph): Rename from vect_print_slp_tree and
18376         use that.
18377         (vect_analyze_slp_instance): Adjust.
18379 2020-05-27  Jakub Jelinek  <jakub@redhat.com>
18381         PR middle-end/95315
18382         * omp-general.c (omp_declare_variant_remove_hook): New function.
18383         (omp_resolve_declare_variant): Always return base if it is already
18384         declare_variant_alt magic decl itself.  Register
18385         omp_declare_variant_remove_hook as cgraph node removal hook.
18387 2020-05-27  Jeff Law  <law@redhat.com>
18389         * config/h8300/testcompare.md (tst_extzv_1_n): Do not accept constants
18390         for the primary input operand.
18391         (tstsi_variable_bit_qi): Similarly.
18393 2020-05-26  Uroš Bizjak  <ubizjak@gmail.com>
18395         * config/i386/mmx.md (mmx_pswapdv2si2): Add SSE2 alternative.
18397 2020-05-26  Tobias Burnus  <tobias@codesourcery.com>
18399         PR ipa/95320
18400         * ipa-utils.h (odr_type_p): Also permit calls with
18401         only flag_generate_offload set.
18403 2020-05-26  Alexandre Oliva  <oliva@adacore.com>
18405         * gcc.c (validate_switches): Add braced parameter.  Adjust all
18406         callers.  Expected and skip trailing brace only if braced.
18407         Return after handling one atom otherwise.
18408         (DUMPS_OPTIONS): New.
18409         (cpp_debug_options): Define in terms of it.
18411 2020-05-26  Richard Biener  <rguenther@suse.de>
18413         PR tree-optimization/95327
18414         * tree-vect-stmts.c (vectorizable_shift): Compute op1_vectype
18415         when we are not using a scalar shift.
18417 2020-05-26  Uroš Bizjak  <ubizjak@gmail.com>
18419         * config/i386/mmx.md (*mmx_pshufd_1): New insn pattern.
18420         * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
18421         Handle E_V2SImode and E_V4HImode.
18422         (expand_vec_perm_even_odd_1): Handle E_V4HImode.
18423         Assert that E_V2SImode is already handled.
18424         (expand_vec_perm_broadcast_1): Assert that E_V2SImode
18425         is already handled by standard shuffle patterns.
18427 2020-05-26  Jan Hubicka  <jh@suse.cz>
18429         * tree.c (free_lang_data_in_type): Simpify types of TYPE_VALUES in
18430         enumeral types.
18432 2020-05-26  Jakub Jelinek  <jakub@redhat.com>
18434         PR c++/95197
18435         * gimplify.c (find_combined_omp_for): Move to omp-general.c.
18436         * omp-general.h (find_combined_omp_for): Declare.
18437         * omp-general.c: Include tree-iterator.h.
18438         (find_combined_omp_for): New function, moved from gimplify.c.
18440 2020-05-26  Alexandre Oliva  <oliva@adacore.com>
18442         * common.opt (aux_base_name): Define.
18443         (dumpbase, dumpdir): Mark as Driver options.
18444         (-dumpbase, -dumpdir): Likewise.
18445         (dumpbase-ext, -dumpbase-ext): New.
18446         (auxbase, auxbase-strip): Drop.
18447         * doc/invoke.texi (-dumpbase, -dumpbase-ext, -dumpdir):
18448         Document.
18449         (-o): Introduce the notion of primary output, mention it
18450         influences auxiliary and dump output names as well, add
18451         examples.
18452         (-save-temps): Adjust, move examples into -dump*.
18453         (-save-temps=cwd, -save-temps=obj): Likewise.
18454         (-fdump-final-insns): Adjust.
18455         * dwarf2out.c (gen_producer_string): Drop auxbase and
18456         auxbase_strip; add dumpbase_ext.
18457         * gcc.c (enum save_temps): Add SAVE_TEMPS_DUMP.
18458         (save_temps_prefix, save_temps_length): Drop.
18459         (save_temps_overrides_dumpdir): New.
18460         (dumpdir, dumpbase, dumpbase_ext): New.
18461         (dumpdir_length, dumpdir_trailing_dash_added): New.
18462         (outbase, outbase_length): New.
18463         (The Specs Language): Introduce %".  Adjust %b and %B.
18464         (ASM_FINAL_SPEC): Use %b.dwo for an aux output name always.
18465         Precede object file with %w when it's the primary output.
18466         (cpp_debug_options): Do not pass on incoming -dumpdir,
18467         -dumpbase and -dumpbase-ext options; recompute them with
18468         %:dumps.
18469         (cc1_options): Drop auxbase with and without compare-debug;
18470         use cpp_debug_options instead of dumpbase.  Mark asm output
18471         with %w when it's the primary output.
18472         (static_spec_functions): Drop %:compare-debug-auxbase-opt and
18473         %:replace-exception.  Add %:dumps.
18474         (driver_handle_option): Implement -save-temps=*/-dumpdir
18475         mutual overriding logic.  Save dumpdir, dumpbase and
18476         dumpbase-ext options.  Do not save output_file in
18477         save_temps_prefix.
18478         (adds_single_suffix_p): New.
18479         (single_input_file_index): New.
18480         (process_command): Combine output dir, output base name, and
18481         dumpbase into dumpdir and outbase.
18482         (set_collect_gcc_options): Pass a possibly-adjusted -dumpdir.
18483         (do_spec_1): Optionally dumpdir instead of save_temps_prefix,
18484         and outbase instead of input_basename in %b, %B and in
18485         -save-temps aux files.  Handle empty argument %".
18486         (driver::maybe_run_linker): Adjust dumpdir and auxbase.
18487         (compare_debug_dump_opt_spec_function): Adjust gkd dump file
18488         naming.  Spec-quote the computed -fdump-final-insns file name.
18489         (debug_auxbase_opt): Drop.
18490         (compare_debug_self_opt_spec_function): Drop auxbase-strip
18491         computation.
18492         (compare_debug_auxbase_opt_spec_function): Drop.
18493         (not_actual_file_p): New.
18494         (replace_extension_spec_func): Drop.
18495         (dumps_spec_func): New.
18496         (convert_white_space): Split-out parts into...
18497         (quote_string, whitespace_to_convert_p): ... these.  New.
18498         (quote_spec_char_p, quote_spec, quote_spec_arg): New.
18499         (driver::finalize): Release and reset new variables; drop
18500         removed ones.
18501         * lto-wrapper.c (HAVE_TARGET_EXECUTABLE_SUFFIX): Define if...
18502         (TARGET_EXECUTABLE_SUFFIX): ... is defined; define this to the
18503         empty string otherwise.
18504         (DUMPBASE_SUFFIX): Drop leading period.
18505         (debug_objcopy): Use concat.
18506         (run_gcc): Recognize -save-temps=* as -save-temps too.  Obey
18507         -dumpdir.  Pass on empty dumpdir and dumpbase with a directory
18508         component.  Simplify temp file names.
18509         * opts.c (finish_options): Drop aux base name handling.
18510         (common_handle_option): Drop auxbase-strip handling.
18511         * toplev.c (print_switch_values): Drop auxbase, add
18512         dumpbase-ext.
18513         (process_options): Derive aux_base_name from dump_base_name
18514         and dump_base_ext.
18515         (lang_dependent_init): Compute dump_base_ext along with
18516         dump_base_name.  Disable stack usage and callgraph-info during
18517         lto generation and compare-debug recompilation.
18519 2020-05-26  Hongtao Liu  <hongtao.liu@intel.com>
18520             Uroš Bizjak  <ubizjak@gmail.com>
18522         PR target/95211
18523         PR target/95256
18524         * config/i386/sse.md (<floatunssuffix>v2div2sf2): New expander.
18525         (fix<fixunssuffix>_truncv2sfv2di2): Ditto.
18526         (avx512dq_float<floatunssuffix>v2div2sf2): Renaming from
18527         float<floatunssuffix>v2div2sf2.
18528         (avx512dq_fix<fixunssuffix>_truncv2sfv2di2<mask_name>):
18529         Renaming from fix<fixunssuffix>_truncv2sfv2di2<mask_name>.
18530         (vec_pack<floatprefix>_float_<mode>): Adjust icode name.
18531         (vec_unpack_<fixprefix>fix_trunc_lo_<mode>): Ditto.
18532         (vec_unpack_<fixprefix>fix_trunc_hi_<mode>): Ditto.
18533         * config/i386/i386-builtin.def: Ditto.
18534         * emit-rtl.c (validate_subreg): Allow use of *paradoxical* vector
18535         subregs when both omode and imode are vector mode and
18536         have the same inner mode.
18538 2020-05-25  Eric Botcazou  <ebotcazou@adacore.com>
18540         * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
18541         Only turn MEM_REFs into bit-field stores for small bit-field regions.
18542         (imm_store_chain_info::output_merged_store): Be prepared for sources
18543         with non-integral type in the bit-field insertion case.
18544         (pass_store_merging::process_store): Use MAX_BITSIZE_MODE_ANY_INT as
18545         the largest size for the bit-field case.
18547 2020-05-25  Uroš Bizjak  <ubizjak@gmail.com>
18549         * config/i386/mmx.md (*vec_dupv2sf): Redefine as define_insn.
18550         (mmx_pshufw_1): Change Yv constraint to xYw.  Correct type attribute.
18551         (*vec_dupv4hi): Redefine as define_insn.
18552         Remove alternative with general register input.
18553         (*vec_dupv2si): Ditto.
18555 2020-05-25  Richard Biener  <rguenther@suse.de>
18557         PR tree-optimization/95309
18558         * tree-vect-slp.c (vect_get_constant_vectors): Move number
18559         of vector computation ...
18560         (vect_slp_analyze_node_operations): ... to analysis phase.
18562 2020-05-25  Jan Hubicka  <hubicka@ucw.cz>
18564         * lto-streamer-out.c (lto_output_tree): Add streamer_debugging check.
18565         * lto-streamer.h (streamer_debugging): New constant
18566         * tree-streamer-in.c (streamer_read_tree_bitfields): Add
18567         streamer_debugging check.
18568         (streamer_get_pickled_tree): Likewise.
18569         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
18571 2020-05-25  Richard Biener  <rguenther@suse.de>
18573         PR tree-optimization/95308
18574         * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize
18575         test for TARGET_MEM_REFs.
18577 2020-05-25  Richard Biener  <rguenther@suse.de>
18579         PR tree-optimization/95295
18580         * tree-ssa-loop-im.c (sm_seq_valid_bb): Compare remat stores
18581         RHSes and drop to full sm_other if they are not equal.
18583 2020-05-25  Richard Biener  <rguenther@suse.de>
18585         PR tree-optimization/95271
18586         * tree-vect-stmts.c (vectorizable_bswap): Update invariant SLP
18587         children vector type.
18588         (vectorizable_call): Pass down slp ops.
18590 2020-05-25  Richard Biener  <rguenther@suse.de>
18592         PR tree-optimization/95297
18593         * tree-vect-stmts.c (vectorizable_shift): For scalar_shift_arg
18594         skip updating operand 1 vector type.
18596 2020-05-25  Richard Biener  <rguenther@suse.de>
18598         PR tree-optimization/95284
18599         * tree-ssa-sink.c (sink_common_stores_to_bb): Amend previous
18600         fix.
18602 2020-05-25  Hongtao Liu  <hongtao.liu@intel.com>
18604         PR target/95125
18605         * config/i386/sse.md (sf2dfmode_lower): New mode attribute.
18606         (trunc<mode><sf2dfmode_lower>2) New expander.
18607         (extend<sf2dfmode_lower><mode>2): Ditto.
18609 2020-05-23 Iain Sandoe <iain@sandoe.co.uk>
18611         * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make
18612         ubsan_{data,type},ASAN symbols linker-visible.
18614 2020-05-22  Jan Hubicka  <hubicka@ucw.cz>
18616         * lto-streamer-out.c (DFS::DFS): Silence warning.
18618 2020-05-22  Uroš Bizjak  <ubizjak@gmail.com>
18620         PR target/95255
18621         * config/i386/i386.md (<rounding_insn><mode>2): Do not try to
18622         expand non-sse4 ROUND_ROUNDEVEN rounding via SSE support routines.
18624 2020-05-22  Jan Hubicka  <hubicka@ucw.cz>
18626         * lto-streamer-out.c (lto_output_tree): Do not stream final ref if
18627         it is not needed.
18629 2020-05-22  Jan Hubicka  <hubicka@ucw.cz>
18631         * lto-section-out.c (lto_output_decl_index): Adjust dump indentation.
18632         * lto-streamer-out.c (create_output_block): Fix whitespace
18633         (lto_write_tree_1): Add (debug) dump.
18634         (DFS::DFS): Add dump.
18635         (DFS::DFS_write_tree_body): Do not dump here.
18636         (lto_output_tree): Improve dumping; do not stream ref when not needed.
18637         (produce_asm_for_decls): Fix whitespace.
18638         * tree-streamer-out.c (streamer_write_tree_header): Add dump.
18639         * tree-streamer-out.c (streamer_write_integer_cst): Add debug dump.
18641 2020-05-22  Hongtao.liu  <hongtao.liu@intel.com>
18643         PR target/92658
18644         * config/i386/sse.md (trunc<pmov_src_lower><mode>2): New expander
18645         (truncv32hiv32qi2): Ditto.
18646         (trunc<ssedoublemodelower><mode>2): Ditto.
18647         (trunc<mode><pmov_dst_3>2): Ditto.
18648         (trunc<mode><pmov_dst_mode_4>2): Ditto.
18649         (truncv2div2si2): Ditto.
18650         (truncv8div8qi2): Ditto.
18651         (avx512f_<code>v8div16qi2): Renaming from *avx512f_<code>v8div16qi2.
18652         (avx512vl_<code>v2div2si): Renaming from *avx512vl_<code>v2div2si2.
18653         (avx512vl_<code><mode>v2<ssecakarnum>qi2): Renaming from
18654         *avx512vl_<code><mode>v<ssescalarnum>qi2.
18656 2020-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18658         PR target/95258
18659         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18660         AVX512VPOPCNTDQ.
18662 2020-05-22  Richard Biener  <rguenther@suse.de>
18664         PR tree-optimization/95268
18665         * tree-ssa-sink.c (sink_common_stores_to_bb): Handle clobbers
18666         properly.
18668 2020-05-22  Jan Hubicka  <hubicka@ucw.cz>
18670         * tree-streamer.c (record_common_node): Fix hash value of pre-streamed
18671         nodes.
18673 2020-05-22  Jan Hubicka  <hubicka@ucw.cz>
18675         * lto-streamer-in.c (lto_read_tree): Do not stream end markers.
18676         (lto_input_scc): Optimize streaming of entry lengths.
18677         * lto-streamer-out.c (lto_write_tree): Do not stream end markers
18678         (DFS::DFS): Optimize stremaing of entry lengths
18680 2020-05-22  Richard Biener  <rguenther@suse.de>
18682         PR lto/95190
18683         * doc/invoke.texi (flto): Document behavior of diagnostic
18684         options.
18686 2020-05-22  Richard Biener  <rguenther@suse.de>
18688         * tree-vectorizer.h (vect_is_simple_use): New overload.
18689         (vect_maybe_update_slp_op_vectype): New.
18690         * tree-vect-stmts.c (vect_is_simple_use): New overload
18691         accessing operands of SLP vs. non-SLP operation transparently.
18692         (vect_maybe_update_slp_op_vectype): New function updating
18693         the possibly shared SLP operands vector type.
18694         (vectorizable_operation): Be a bit more SLP vs non-SLP agnostic
18695         using the new vect_is_simple_use overload;  update SLP invariant
18696         operand nodes vector type.
18697         (vectorizable_comparison): Likewise.
18698         (vectorizable_call): Likewise.
18699         (vectorizable_conversion): Likewise.
18700         (vectorizable_shift): Likewise.
18701         (vectorizable_store): Likewise.
18702         (vectorizable_condition): Likewise.
18703         (vectorizable_assignment): Likewise.
18704         * tree-vect-loop.c (vectorizable_reduction): Likewise.
18705         * tree-vect-slp.c (vect_get_constant_vectors): Enforce
18706         present SLP_TREE_VECTYPE and check it matches previous
18707         behavior.
18709 2020-05-22  Richard Biener  <rguenther@suse.de>
18711         PR tree-optimization/95248
18712         * tree-ssa-loop-im.c (sm_seq_valid_bb): Remove bogus early out.
18714 2020-05-22  Richard Biener  <rguenther@suse.de>
18716         * tree-vectorizer.h (_slp_tree::_slp_tree): New.
18717         (_slp_tree::~_slp_tree): Likewise.
18718         * tree-vect-slp.c (_slp_tree::_slp_tree): Factor out code
18719         from allocators.
18720         (_slp_tree::~_slp_tree): Implement.
18721         (vect_free_slp_tree): Simplify.
18722         (vect_create_new_slp_node): Likewise.  Add nops parameter.
18723         (vect_build_slp_tree_2): Adjust.
18724         (vect_analyze_slp_instance): Likewise.
18726 2020-05-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18728         * adjust-alignment.c: Include memmodel.h.
18730 2020-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18732         PR target/95260
18733         * config/i386/cpuid.h: Use hexadecimal in comments.
18735 2020-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18737         PR target/95212
18738         * config/i386/i386-builtins.c (processor_features): Move
18739         F_AVX512VP2INTERSECT after F_AVX512BF16.
18740         (isa_names_table): Likewise.
18742 2020-05-21  Martin Liska  <mliska@suse.cz>
18744         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18745         Handle OPT_moutline_atomics.
18746         * config/aarch64/aarch64.c: Add outline-atomics to
18747         aarch64_attributes.
18748         * doc/extend.texi: Document the newly added target attribute.
18750 2020-05-21  Uroš Bizjak  <ubizjak@gmail.com>
18752         PR target/95218
18754         * config/i386/mmx.md (*mmx_<code>v2sf): Do not mark
18755         operands 1 and 2 commutative.  Manually swap operands.
18756         (*mmx_nabsv2sf2): Ditto.
18758         Partially revert:
18759         2020-05-18  Uroš Bizjak  <ubizjak@gmail.com>
18761         * config/i386/i386.md (*<code>tf2_1):
18762         Mark operands 1 and 2 commutative.
18763         (*nabstf2_1): Ditto.
18764         * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
18765         commutative.  Do not swap operands.
18766         (*nabs<mode>2): Ditto.
18768 2020-05-20  Uroš Bizjak  <ubizjak@gmail.com>
18770         PR target/95229
18771         * config/i386/sse.md (<code>v8qiv8hi2): Use
18772         simplify_gen_subreg instead of simplify_subreg.
18773         (<code>v8qiv8si2): Ditto.
18774         (<code>v4qiv4si2): Ditto.
18775         (<code>v4hiv4si2): Ditto.
18776         (<code>v8qiv8di2): Ditto.
18777         (<code>v4qiv4di2): Ditto.
18778         (<code>v2qiv2di2): Ditto.
18779         (<code>v4hiv4di2): Ditto.
18780         (<code>v2hiv2di2): Ditto.
18781         (<code>v2siv2di2): Ditto.
18783 2020-05-20  Uroš Bizjak  <ubizjak@gmail.com>
18785         PR target/95238
18786         * config/i386/i386.md (*pushsi2_rex64):
18787         Use "e" constraint instead of "i".
18789 2020-05-20  Jan Hubicka  <hubicka@ucw.cz>
18791         * lto-streamer-in.c (lto_input_scc): Add SHARED_SCC parameter.
18792         (lto_input_tree_1): Strenghten sanity check.
18793         (lto_input_tree): Update call of lto_input_scc.
18794         * lto-streamer-out.c: Include ipa-utils.h
18795         (create_output_block): Initialize local_trees if merigng is going
18796         to happen.
18797         (destroy_output_block): Destroy local_trees.
18798         (DFS): Add max_local_entry.
18799         (local_tree_p): New function.
18800         (DFS::DFS): Initialize and maintain it.
18801         (DFS::DFS_write_tree): Decide on streaming format.
18802         (lto_output_tree): Stream inline singleton SCCs
18803         * lto-streamer.h (enum LTO_tags): Add LTO_trees.
18804         (struct output_block): Add local_trees.
18805         (lto_input_scc): Update prototype.
18807 2020-05-20  Patrick Palka  <ppalka@redhat.com>
18809         PR c++/95223
18810         * hash-table.h (hash_table::find_with_hash): Move up the call to
18811         hash_table::verify.
18813 2020-05-20  Martin Liska  <mliska@suse.cz>
18815         * lto-compress.c (lto_compression_zstd): Fill up
18816         num_compressed_il_bytes.
18817         (lto_uncompression_zstd): Likewise for num_uncompressed_il_bytes here.
18819 2020-05-20  Richard Biener  <rguenther@suse.de>
18821         PR tree-optimization/95219
18822         * tree-vect-loop.c (vectorizable_induction): Reduce
18823         group_size before computing the number of required IVs.
18825 2020-05-20  Richard Biener  <rguenther@suse.de>
18827         PR middle-end/95231
18828         * tree-inline.c (remap_gimple_stmt): Revert adjusting
18829         COND_EXPR and VEC_COND_EXPR for a -fnon-call-exception boundary.
18831 2020-05-20  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
18832             Andre Vieira  <andre.simoesdiasvieira@arm.com>
18834         PR target/94959
18835         * config/arm/arm-protos.h (arm_mode_base_reg_class): Function
18836         declaration.
18837         (mve_vector_mem_operand): Likewise.
18838         * config/arm/arm.c (thumb2_legitimate_address_p): For MVE target check
18839         the load from memory to a core register is legitimate for give mode.
18840         (mve_vector_mem_operand): Define function.
18841         (arm_print_operand): Modify comment.
18842         (arm_mode_base_reg_class): Define.
18843         * config/arm/arm.h (MODE_BASE_REG_CLASS): Modify to add check for
18844         TARGET_HAVE_MVE and expand to arm_mode_base_reg_class on TRUE.
18845         * config/arm/constraints.md (Ux): Likewise.
18846         (Ul): Likewise.
18847         * config/arm/mve.md (mve_mov): Replace constraint Us with Ux and also
18848         add support for missing Vector Store Register and Vector Load Register.
18849         Add a new alternative to support load from memory to PC (or label) in
18850         vector store/load.
18851         (mve_vstrbq_<supf><mode>): Modify constraint Us to Ux.
18852         (mve_vldrbq_<supf><mode>): Modify constriant Us to Ux, predicate to
18853         mve_memory_operand and also modify the MVE instructions to emit.
18854         (mve_vldrbq_z_<supf><mode>): Modify constraint Us to Ux.
18855         (mve_vldrhq_fv8hf): Modify constriant Us to Ux, predicate to
18856         mve_memory_operand and also modify the MVE instructions to emit.
18857         (mve_vldrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
18858         mve_memory_operand and also modify the MVE instructions to emit.
18859         (mve_vldrhq_z_fv8hf): Likewise.
18860         (mve_vldrhq_z_<supf><mode>): Likewise.
18861         (mve_vldrwq_fv4sf): Likewise.
18862         (mve_vldrwq_<supf>v4si): Likewise.
18863         (mve_vldrwq_z_fv4sf): Likewise.
18864         (mve_vldrwq_z_<supf>v4si): Likewise.
18865         (mve_vld1q_f<mode>): Modify constriant Us to Ux.
18866         (mve_vld1q_<supf><mode>): Likewise.
18867         (mve_vstrhq_fv8hf): Modify constriant Us to Ux, predicate to
18868         mve_memory_operand.
18869         (mve_vstrhq_p_fv8hf): Modify constriant Us to Ux, predicate to
18870         mve_memory_operand and also modify the MVE instructions to emit.
18871         (mve_vstrhq_p_<supf><mode>): Likewise.
18872         (mve_vstrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
18873         mve_memory_operand.
18874         (mve_vstrwq_fv4sf): Modify constriant Us to Ux.
18875         (mve_vstrwq_p_fv4sf): Modify constriant Us to Ux and also modify the MVE
18876         instructions to emit.
18877         (mve_vstrwq_p_<supf>v4si): Likewise.
18878         (mve_vstrwq_<supf>v4si): Likewise.Modify constriant Us to Ux.
18879         * config/arm/predicates.md (mve_memory_operand): Define.
18881 2020-05-30  Richard Biener  <rguenther@suse.de>
18883         PR c/95141
18884         * c-fold.c (c_fully_fold_internal): Enhance guard on
18885         overflow_warning.
18887 2020-05-20  Kito Cheng  <kito.cheng@sifive.com>
18889         PR target/90811
18890         * Makefile.in (OBJS): Add adjust-alignment.o.
18891         * adjust-alignment.c (pass_data_adjust_alignment): New.
18892         (pass_adjust_alignment): New.
18893         (pass_adjust_alignment::execute): New.
18894         (make_pass_adjust_alignment): New.
18895         * tree-pass.h (make_pass_adjust_alignment): New.
18896         * passes.def: Add pass_adjust_alignment.
18898 2020-05-19  Alex Coplan  <alex.coplan@arm.com>
18900         PR target/94591
18901         * config/aarch64/aarch64.c (aarch64_evpc_rev_local): Don't match
18902         identity permutation.
18904 2020-05-19  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
18906         * doc/sourcebuild.texi: Document new short_eq_int, ptr_eq_short,
18907         msp430_small, msp430_large and size24plus DejaGNU effective
18908         targets.
18909         Improve grammar in descriptions for size20plus and size32plus effective
18910         targets.
18912 2020-05-19  Jose E. Marchesi  <jose.marchesi@oracle.com>
18914         * config/bpf/bpf.c (bpf_compute_frame_layout): Include space for
18915         callee saved registers only in xBPF.
18916         (bpf_expand_prologue): Save callee saved registers only in xBPF.
18917         (bpf_expand_epilogue): Likewise for restoring.
18918         * doc/invoke.texi (eBPF Options): Document this is activated by
18919         -mxbpf.
18921 2020-05-19  Jose E. Marchesi  <jose.marchesi@oracle.com>
18923         * config/bpf/bpf.opt (mxbpf): New option.
18924         * doc/invoke.texi (Option Summary): Add -mxbpf.
18925         (eBPF Options): Document -mxbbpf.
18927 2020-05-19  Uroš Bizjak  <ubizjak@gmail.com>
18929         PR target/92658
18930         * config/i386/sse.md (<code>v16qiv16hi2): New expander.
18931         (<code>v32qiv32hi2): Ditto.
18932         (<code>v8qiv8hi2): Ditto.
18933         (<code>v16qiv16si2): Ditto.
18934         (<code>v8qiv8si2): Ditto.
18935         (<code>v4qiv4si2): Ditto.
18936         (<code>v16hiv16si2): Ditto.
18937         (<code>v8hiv8si2): Ditto.
18938         (<code>v4hiv4si2): Ditto.
18939         (<code>v8qiv8di2): Ditto.
18940         (<code>v4qiv4di2): Ditto.
18941         (<code>v2qiv2di2): Ditto.
18942         (<code>v8hiv8di2): Ditto.
18943         (<code>v4hiv4di2): Ditto.
18944         (<code>v2hiv2di2): Ditto.
18945         (<code>v8siv8di2): Ditto.
18946         (<code>v4siv4di2): Ditto.
18947         (<code>v2siv2di2): Ditto.
18949 2020-05-19  Kito Cheng  <kito.cheng@sifive.com>
18951         * common/config/riscv/riscv-common.c (riscv_implied_info_t): New.
18952         (riscv_implied_info): New.
18953         (riscv_subset_list): Add handle_implied_ext.
18954         (riscv_subset_list::to_string): New parameter version_p to
18955         control output format.
18956         (riscv_subset_list::handle_implied_ext): New.
18957         (riscv_subset_list::parse_std_ext): Call handle_implied_ext.
18958         (riscv_arch_str): New parameter version_p to control output format.
18959         (riscv_expand_arch): New.
18960         * config/riscv/riscv-protos.h (riscv_arch_str): New parameter,
18961         version_p.
18962         * config/riscv/riscv.h (riscv_expand_arch): New,
18963         (EXTRA_SPEC_FUNCTIONS): Define.
18964         (ASM_SPEC): Transform -march= via riscv_expand_arch.
18966 2020-05-19  Kito Cheng  <kito.cheng@sifive.com>
18968         * riscv-common.c (parse_sv_or_non_std_ext): Rename to
18969         parse_multiletter_ext.
18970         (parse_multiletter_ext): Add parsing `h` and `z`, drop `sx`,
18971         adjust parsing order for 's' and 'x'.
18973 2020-05-19  Richard Biener  <rguenther@suse.de>
18975         * tree-vectorizer.h (_slp_tree::vectype): Add field.
18976         (SLP_TREE_VECTYPE): New.
18977         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
18978         SLP_TREE_VECTYPE.
18979         (vect_create_new_slp_node): Likewise.
18980         (vect_prologue_cost_for_slp): Move here from tree-vect-stmts.c
18981         and simplify.
18982         (vect_slp_analyze_node_operations): Walk nodes children for
18983         invariant costing.
18984         (vect_get_constant_vectors): Use local scope op variable.
18985         * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Remove here.
18986         (vect_model_simple_cost): Adjust.
18987         (vect_model_store_cost): Likewise.
18988         (vectorizable_store): Likewise.
18990 2020-05-18  Martin Sebor  <msebor@redhat.com>
18992         PR middle-end/92815
18993         * tree-object-size.c (decl_init_size): New function.
18994         (addr_object_size): Call it.
18995         * tree.h (last_field): Declare.
18996         (first_field): Add attribute nonnull.
18998 2020-05-18  Martin Sebor  <msebor@redhat.com>
19000         PR middle-end/94940
19001         * tree-vrp.c (vrp_prop::check_mem_ref): Remove unreachable code.
19002         * tree.c (component_ref_size): Correct the handling or array members
19003         of unions.
19004         Drop a pointless test.
19005         Rename a local variable.
19007 2020-05-18  Jason Merrill  <jason@redhat.com>
19009         * aclocal.m4: Add ax_cxx_compile_stdcxx.m4.
19010         * configure.ac: Use AX_CXX_COMPILE_STDCXX(11).
19012 2020-05-14  Jason Merrill  <jason@redhat.com>
19014         * doc/install.texi (Prerequisites): Update boostrap compiler
19015         requirement to C++11/GCC 4.8.
19017 2020-05-18  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
19019         PR tree-optimization/94952
19020         * gimple-ssa-store-merging.c (pass_store_merging::process_store):
19021         Initialize variables bitpos, bitregion_start, and bitregion_end in
19022         order to silence warnings about use of uninitialized variables.
19024 2020-05-18  Carl Love  <cel@us.ibm.com>
19026         PR target/94833
19027         * config/rs6000/vsx.md (define_expand): Fix instruction generation for
19028         first_match_index_<mode>.
19029         * testsuite/gcc.target/powerpc/builtins-8-p9-runnable.c (main): Add
19030         additional test cases with zero vector elements.
19032 2020-05-18  Uroš Bizjak  <ubizjak@gmail.com>
19034         PR target/95169
19035         * config/i386/i386-expand.c (ix86_expand_int_movcc):
19036          Avoid reversing a non-trapping comparison to a trapping one.
19038 2020-05-18  Alex Coplan  <alex.coplan@arm.com>
19040         * config/arm/arm.c (output_move_double): Fix codegen when loading into
19041         a register pair with an odd base register.
19043 2020-05-18  Uroš Bizjak  <ubizjak@gmail.com>
19045         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
19046         Do not emit FLAGS_REG clobber for TFmode.
19047         * config/i386/i386.md (*<code>tf2_1): Rewrite as
19048         define_insn_and_split.  Mark operands 1 and 2 commutative.
19049         (*nabstf2_1): Ditto.
19050         (absneg SSE splitter): Use MODEF mode iterator instead of SSEMODEF.
19051         Do not swap memory operands.  Simplify RTX generation.
19052         (neg abs SSE splitter): Ditto.
19053         * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
19054         commutative.  Do not swap operands.  Simplify RTX generation.
19055         (*nabs<mode>2): Ditto.
19057 2020-05-18  Richard Biener  <rguenther@suse.de>
19059         * tree-vect-slp.c (vect_slp_bb): Start after labels.
19060         (vect_get_constant_vectors): Really place init stmt after scalar defs.
19061         * tree-vect-stmts.c (vect_init_vector_1): Insert before
19062         region begin.
19064 2020-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19066         * config/i386/driver-i386.c (host_detect_local_cpu): Support
19067         Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
19068         processor families.
19070 2020-05-18  Richard Biener  <rguenther@suse.de>
19072         PR middle-end/95171
19073         * tree-inline.c (remap_gimple_stmt): Split out trapping compares
19074         when inlining into a non-call EH function.
19076 2020-05-18  Richard Biener  <rguenther@suse.de>
19078         PR tree-optimization/95172
19079         * tree-ssa-loop-im.c (execute_sm): Get flag whether we
19080         eventually need the conditional processing.
19081         (execute_sm_exit): When processing an orderd sequence
19082         avoid doing any conditional processing.
19083         (hoist_memory_references): Pass down whether all edges
19084         have ordered processing for a ref to execute_sm.
19086 2020-05-17 Jeff Law  <law@redhat.com>
19088         * config/h8300/predicates.md (pc_or_label_operand): New predicate.
19089         * config/h8300/jumpcall.md (branch_true, branch_false): Consolidate
19090         into a single pattern using pc_or_label_operand.
19091         * config/h8300/combiner.md (bit branch patterns): Likewise.
19092         * config/h8300/peepholes.md (HImode and SImode branches): Likewise.
19094 2020-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19096         PR target/95021
19097         * config/i386/i386-features.c (has_non_address_hard_reg):
19098         Renamed to ...
19099         (pseudo_reg_set): This.  Return the SET expression.  Ignore
19100         pseudo register push.
19101         (general_scalar_to_vector_candidate_p): Combine single_set and
19102         has_non_address_hard_reg calls to pseudo_reg_set.
19103         (timode_scalar_to_vector_candidate_p): Likewise.
19104         * config/i386/i386.md (*pushv1ti2): New pattern.
19106 2020-05-17  Aldy Hernandez  <aldyh@redhat.com>
19108         Revert:
19109         2020-05-17  Aldy Hernandez  <aldyh@redhat.com>
19111         * tree-vrp.c (operand_less_p): Move to...
19112         * vr-values.c (operand_less_p): ...here.
19113         * tree-vrp.h (operand_less_p): Remove.
19115 2020-05-17  Aldy Hernandez  <aldyh@redhat.com>
19117         * tree-vrp.c (operand_less_p): Move to...
19118         * vr-values.c (operand_less_p): ...here.
19119         * tree-vrp.h (operand_less_p): Remove.
19121 2020-05-17  Aldy Hernandez  <aldyh@redhat.com>
19123         * tree-vrp.c (class vrp_insert): Remove prototype for
19124         live_on_edge.
19126 2020-05-17  Aldy Hernandez  <aldyh@redhat.com>
19128         * tree-vrp.c (class live_names): New.
19129         (live_on_edge): Move into live_names.
19130         (build_assert_expr_for): Move into vrp_insert.
19131         (find_assert_locations_in_bb): Rename from
19132         find_assert_locations_1.
19133         (process_assert_insertions_for): Move into vrp_insert.
19134         (compare_assert_loc): Same.
19135         (remove_range_assertions): Same.
19136         (dump_asserts_for): Rename to vrp_insert::dump.
19137         (debug_asserts_for): Rename to vrp_insert::debug.
19138         (dump_all_asserts): Rename to vrp_insert::dump.
19139         (debug_all_asserts): Rename to vrp_insert::debug.
19141 2020-05-17  Aldy Hernandez  <aldyh@redhat.com>
19143         * tree-vrp.c (class vrp_prop): Move check_all_array_refs,
19144         check_array_ref, check_mem_ref, and search_for_addr_array
19145         into new class...
19146         (class array_bounds_checker): ...here.
19147         (class check_array_bounds_dom_walker): Adjust to use
19148         array_bounds_checker.
19149         (check_all_array_refs): Move into array_bounds_checker and rename
19150         to check.
19151         (class vrp_folder): Make fold_predicate_in private.
19153 2020-05-15 Jeff Law  <law@redhat.com>
19155         * config/h8300/h8300.md (SFI iterator): New iterator for
19156         SFmode and SImode.
19157         * config/h8300/peepholes.md (memory comparison): Use mode
19158         iterator to consolidate 3 patterns into one.
19159         (stack allocation and stack store): Handle SFmode.  Handle
19160         8 byte allocations.
19162 2020-05-15  Segher Boessenkool  <segher@kernel.crashing.org>
19164         * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_2): Also require
19165         RS6000_BTM_POWERPC64.
19167 2020-05-15  Uroš Bizjak  <ubizjak@gmail.com>
19169         * config/i386/i386.md (SWI48DWI): New mode iterator.
19170         (*push<mode>2): Allow XMM registers.
19171         (*pushdi2_rex64): Ditto.
19172         (*pushsi2_rex64): Ditto.
19173         (*pushsi2): Ditto.
19174         (push XMM reg splitter): New splitter
19176         (*pushdf) Change "x" operand constraint to "v".
19177         (*pushsf_rex64): Ditto.
19178         (*pushsf): Ditto.
19180 2020-05-15  Richard Biener  <rguenther@suse.de>
19182         PR tree-optimization/92260
19183         * tree-vect-slp.c (vect_get_constant_vectors): Compute
19184         the number of vector stmts in a canonical way.
19186 2020-05-15  Martin Liska  <mliska@suse.cz>
19188         * hsa-gen.c (get_symbol_for_decl): Fix misleading indentation
19189         warning.
19191 2020-05-15  Andrew Stubbs  <ams@codesourcery.com>
19193         * config/gcn/gcn-valu.md (v<expander><mode>3): Fix unsignedp.
19195 2020-05-15  Richard Biener  <rguenther@suse.de>
19197         PR tree-optimization/95133
19198         * gimple-ssa-split-paths.c
19199         (find_block_to_duplicate_for_splitting_paths): Check for
19200         normal edges.
19202 2020-05-15  Christophe Lyon  <christophe.lyon@linaro.org>
19204         * config/arm/arm.c (reg_needs_saving_p): Add support for interrupt
19205         routines.
19206         (arm_compute_save_reg0_reg12_mask): Use reg_needs_saving_p.
19208 2020-05-15  Tobias Burnus  <tobias@codesourcery.com>
19210         PR middle-end/94635
19211         * gimplify.c (gimplify_scan_omp_clauses): For MAP_TO_PSET with
19212         OMP_TARGET_EXIT_DATA, use 'release:' unless the associated
19213         item is 'delete:'.
19215 2020-05-15  Uroš Bizjak  <ubizjak@gmail.com>
19217         PR target/95046
19218         * config/i386/i386.md (isa): Add sse3_noavx.
19219         (enabled): Handle sse3_noavx.
19221         * config/i386/mmx.md (mmx_haddv2sf3): New expander.
19222         (*mmx_haddv2sf3): Rename from mmx_haddv2sf3.  Add SSE/AVX
19223         alternatives.  Match commutative vec_select selector operands.
19224         (*mmx_haddv2sf3_low): New insn pattern.
19226         (*mmx_hsubv2sf3): Add SSE/AVX alternatives.
19227         (*mmx_hsubv2sf3_low): New insn pattern.
19229 2020-05-15  Richard Biener  <rguenther@suse.de>
19231         PR tree-optimization/33315
19232         * tree-ssa-sink.c: Include tree-eh.h.
19233         (sink_stats): Add commoned member.
19234         (sink_common_stores_to_bb): New function implementing store
19235         commoning by sinking to the successor.
19236         (sink_code_in_bb): Call it, pass down TODO_cleanup_cfg returned.
19237         (pass_sink_code::execute): Likewise.  Record commoned stores
19238         in statistics.
19240 2020-05-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
19242         PR rtl-optimization/37451, part of PR target/61837
19243         * loop-doloop.c (doloop_simplify_count): New function.  Simplify
19244         (add -1; zero_ext; add +1) to zero_ext when not wrapping.
19245         (doloop_modify): Call doloop_simplify_count.
19247 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19249         PR jit/94778
19250         * doc/sourcebuild.texi: Document effective target lgccjit.
19252 2020-05-14  Andrew Stubbs  <ams@codesourcery.com>
19254         * config/gcn/gcn-valu.md (add<mode>3_zext_dup): Change to a
19255         define_expand, and rename the original to ...
19256         (add<mode>3_vcc_zext_dup): ... this, and add a custom VCC operand.
19257         (add<mode>3_zext_dup_exec): Likewise, with ...
19258         (add<mode>3_vcc_zext_dup_exec): ... this.
19259         (add<mode>3_zext_dup2): Likewise, with ...
19260         (add<mode>3_zext_dup_exec): ... this.
19261         (add<mode>3_zext_dup2_exec): Likewise, with ...
19262         (add<mode>3_zext_dup2): ... this.
19263         * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address): Switch
19264         addv64di3_zext* calls to use addv64di3_vcc_zext*.
19266 2020-05-14  Uroš Bizjak  <ubizjak@gmail.com>
19268         PR target/95046
19269         * config/i386/sse.md (truncv2dfv2df2): New insn pattern.
19270         (extendv2sfv2df2): Ditto.
19272 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19274         * configure: Regenerated.
19276 2020-05-14  Christophe Lyon  <christophe.lyon@linaro.org>
19278         * config/arm/arm.c (reg_needs_saving_p): New function.
19279         (use_return_insn): Use reg_needs_saving_p.
19280         (arm_get_vfp_saved_size): Likewise.
19281         (arm_compute_frame_layout): Likewise.
19282         (arm_save_coproc_regs): Likewise.
19283         (thumb1_expand_epilogue): Likewise.
19284         (arm_expand_epilogue_apcs_frame): Likewise.
19285         (arm_expand_epilogue): Likewise.
19287 2020-05-14  Christophe Lyon  <christophe.lyon@linaro.org>
19289         * config/arm/arm.c (thumb1_expand_prologue): Update error message.
19291 2020-05-14  Uroš Bizjak  <ubizjak@gmail.com>
19293         PR target/95046
19294         * config/i386/sse.md (sse2_cvtpi2pd): Add memory to alternative 1.
19296         (floatv2siv2df2): New expander.
19297         (floatunsv2siv2df2): New insn pattern.
19299         (fix_truncv2dfv2si2): New expander.
19300         (fixuns_truncv2dfv2si2): New insn pattern.
19302 2020-05-14  Richard Sandiford  <richard.sandiford@arm.com>
19304         PR target/95105
19305         * config/aarch64/aarch64-sve-builtins.cc
19306         (handle_arm_sve_vector_bits_attribute): Create a copy of the
19307         original type's TYPE_MAIN_VARIANT, then reapply all the differences
19308         between the original type and its main variant.
19310 2020-05-14  Richard Biener  <rguenther@suse.de>
19312         PR middle-end/95118
19313         * real.c (real_to_decimal_for_mode): Make sure we handle
19314         a zero with nonzero exponent.
19316 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
19318         * Makefile.in (GTFILES): Add omp-general.c.
19319         * cgraph.h (struct cgraph_node): Add declare_variant_alt and
19320         calls_declare_variant_alt members and initialize them in the
19321         ctor.
19322         * ipa.c (symbol_table::remove_unreachable_nodes): Handle direct
19323         calls to declare_variant_alt nodes.
19324         * lto-cgraph.c (lto_output_node): Write declare_variant_alt
19325         and calls_declare_variant_alt.
19326         (input_overwrite_node): Read them back.
19327         * omp-simd-clone.c (simd_clone_create): Copy calls_declare_variant_alt
19328         bit.
19329         * tree-inline.c (expand_call_inline): Or in calls_declare_variant_alt
19330         bit.
19331         (tree_function_versioning): Copy calls_declare_variant_alt bit.
19332         * omp-offload.c (execute_omp_device_lower): Call
19333         omp_resolve_declare_variant on direct function calls.
19334         (pass_omp_device_lower::gate): Also enable for
19335         calls_declare_variant_alt functions.
19336         * omp-general.c (omp_maybe_offloaded): Return false after inlining.
19337         (omp_context_selector_matches): Handle the case when
19338         cfun->curr_properties has PROP_gimple_any bit set.
19339         (struct omp_declare_variant_entry): New type.
19340         (struct omp_declare_variant_base_entry): New type.
19341         (struct omp_declare_variant_hasher): New type.
19342         (omp_declare_variant_hasher::hash, omp_declare_variant_hasher::equal):
19343         New methods.
19344         (omp_declare_variants): New variable.
19345         (struct omp_declare_variant_alt_hasher): New type.
19346         (omp_declare_variant_alt_hasher::hash,
19347         omp_declare_variant_alt_hasher::equal): New methods.
19348         (omp_declare_variant_alt): New variables.
19349         (omp_resolve_late_declare_variant): New function.
19350         (omp_resolve_declare_variant): Call omp_resolve_late_declare_variant
19351         when called late.  Create a magic declare_variant_alt fndecl and
19352         cgraph node and return that if decision needs to be deferred until
19353         after gimplification.
19354         * cgraph.c (symbol_table::create_edge): Or in calls_declare_variant_alt
19355         bit.
19357         PR middle-end/95108
19358         * omp-simd-clone.c (struct modify_stmt_info): Add after_stmt member.
19359         (ipa_simd_modify_stmt_ops): For PHIs, only add before first stmt in
19360         entry block if info->after_stmt is NULL, otherwise add after that stmt
19361         and update it after adding each stmt.
19362         (ipa_simd_modify_function_body): Initialize info.after_stmt.
19364         * function.h (struct function): Add has_omp_target bit.
19365         * omp-offload.c (omp_discover_declare_target_fn_r): New function,
19366         old renamed to ...
19367         (omp_discover_declare_target_tgt_fn_r): ... this.
19368         (omp_discover_declare_target_var_r): Call
19369         omp_discover_declare_target_tgt_fn_r instead of
19370         omp_discover_declare_target_fn_r.
19371         (omp_discover_implicit_declare_target): Also queue functions with
19372         has_omp_target bit set, for those walk with
19373         omp_discover_declare_target_fn_r, for declare target to functions
19374         walk with omp_discover_declare_target_tgt_fn_r.
19376 2020-05-14  Uroš Bizjak  <ubizjak@gmail.com>
19378         PR target/95046
19379         * config/i386/mmx.md (mmx_fix_truncv2sfv2si2): Rename from mmx_pf2id.
19380         Add SSE/AVX alternative.  Change operand predicates from
19381         nonimmediate_operand to register_mmxmem_operand.
19382         Enable instruction pattern for TARGET_MMX_WITH_SSE.
19383         (fix_truncv2sfv2si2): New expander.
19384         (fixuns_truncv2sfv2si2): New insn pattern.
19386         (mmx_floatv2siv2sf2): rename from mmx_floatv2si2.
19387         Add SSE/AVX alternative.  Change operand predicates from
19388         nonimmediate_operand to register_mmxmem_operand.
19389         Enable instruction pattern for TARGET_MMX_WITH_SSE.
19390         (floatv2siv2sf2): New expander.
19391         (floatunsv2siv2sf2): New insn pattern.
19393         * config/i386/i386-builtin.def (IX86_BUILTIN_PF2ID):
19394         Update for rename.
19395         (IX86_BUILTIN_PI2FD): Ditto.
19397 2020-05-14  Andreas Krebbel  <krebbel@linux.ibm.com>
19399         * config/s390/s390.c (s390_emit_stack_probe): Call the probe_stack
19400         expander.
19401         * config/s390/s390.md ("@probe_stack2<mode>", "probe_stack"): New
19402         expanders.
19404 2020-05-14  Andreas Krebbel  <krebbel@linux.ibm.com>
19406         * config/s390/s390.c (allocate_stack_space): Add missing updates
19407         of last_probe_offset.
19409 2020-05-14  Andreas Krebbel  <krebbel@linux.ibm.com>
19411         * config/s390/s390.md ("allocate_stack"): Call
19412         anti_adjust_stack_and_probe_stack_clash when stack clash
19413         protection is enabled.
19414         * explow.c (anti_adjust_stack_and_probe_stack_clash): Remove
19415         prototype. Remove static.
19416         * explow.h (anti_adjust_stack_and_probe_stack_clash): Add
19417         prototype.
19419 2020-05-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19421         * config/rs6000/altivec.h (vec_extractl): New #define.
19422         (vec_extracth): Likewise.
19423         * config/rs6000/altivec.md (UNSPEC_EXTRACTL): New constant.
19424         (UNSPEC_EXTRACTR): Likewise.
19425         (vextractl<mode>): New expansion.
19426         (vextractl<mode>_internal): New insn.
19427         (vextractr<mode>): New expansion.
19428         (vextractr<mode>_internal): New insn.
19429         * config/rs6000/rs6000-builtin.def (__builtin_altivec_vextdubvlx):
19430         New built-in function.
19431         (__builtin_altivec_vextduhvlx): Likewise.
19432         (__builtin_altivec_vextduwvlx): Likewise.
19433         (__builtin_altivec_vextddvlx): Likewise.
19434         (__builtin_altivec_vextdubvhx): Likewise.
19435         (__builtin_altivec_vextduhvhx): Likewise.
19436         (__builtin_altivec_vextduwvhx): Likewise.
19437         (__builtin_altivec_vextddvhx): Likewise.
19438         (__builtin_vec_extractl): New overloaded built-in function.
19439         (__builtin_vec_extracth): Likewise.
19440         * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
19441         Define overloaded forms of __builtin_vec_extractl and
19442         __builtin_vec_extracth.
19443         (builtin_function_type): Add cases to mark arguments of new
19444         built-in functions as unsigned.
19445         (rs6000_common_init_builtins): Add
19446         opaque_ftype_opaque_opaque_opaque_opaque.
19447         * config/rs6000/rs6000.md (du_or_d): New mode attribute.
19448         * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
19449         for a Future Architecture): Add description of vec_extractl and
19450         vec_extractr built-in functions.
19452 2020-05-13  Richard Biener  <rguenther@suse.de>
19454         * target.def (add_stmt_cost): Add new vectype parameter.
19455         * targhooks.c (default_add_stmt_cost): Adjust.
19456         * targhooks.h (default_add_stmt_cost): Likewise.
19457         * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Take new
19458         vectype parameter.
19459         * config/arm/arm.c (arm_add_stmt_cost): Likewise.
19460         * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
19461         * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
19463         * tree-vectorizer.h (stmt_info_for_cost::vectype): Add.
19464         (dump_stmt_cost): Add new vectype parameter.
19465         (add_stmt_cost): Likewise.
19466         (record_stmt_cost): Likewise.
19467         (record_stmt_cost): Add overload with old signature.
19468         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
19469         Adjust.
19470         (vect_get_known_peeling_cost): Likewise.
19471         (vect_estimate_min_profitable_iters): Likewise.
19472         * tree-vectorizer.c (dump_stmt_cost): Add new vectype parameter.
19473         * tree-vect-stmts.c (record_stmt_cost): Likewise.
19474         (vect_prologue_cost_for_slp_op): Remove stmt_vec_info parameter
19475         and pass down correct vectype and NULL stmt_info.
19476         (vect_model_simple_cost): Adjust.
19477         (vect_model_store_cost): Likewise.
19479 2020-05-13  Richard Biener  <rguenther@suse.de>
19481         * tree-vectorizer.h (SLP_INSTANCE_GROUP_SIZE): Remove.
19482         (_slp_instance::group_size): Likewise.
19483         * tree-vect-loop.c (vectorizable_reduction): The group size
19484         is the number of lanes in the node.
19485         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
19486         (vect_analyze_slp_instance): Do not set SLP_INSTANCE_GROUP_SIZE,
19487         verify it matches the instance trees number of lanes.
19488         (vect_slp_analyze_node_operations_1): Use the numer of lanes
19489         in the node as group size.
19490         (vect_bb_vectorization_profitable_p): Use the instance root
19491         number of lanes for the size of life.
19492         (vect_schedule_slp_instance): Use the number of lanes as
19493         group_size.
19494         * tree-vect-stmts.c (vectorizable_load): Remove SLP instance
19495         parameter.  Use the number of lanes of the load for the group
19496         size in the gap adjustment code.
19497         (vect_analyze_stmt): Adjust.
19498         (vect_transform_stmt): Likewise.
19500 2020-05-13  Jakub Jelinek  <jakub@redhat.com>
19502         PR debug/95080
19503         * cfgrtl.c (purge_dead_edges): Skip over debug and note insns even
19504         if the last insn is a note.
19506         PR tree-optimization/95060
19507         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Fold a NEGATE_EXPR
19508         if it is the single use of the FMA internal builtin.
19510 2020-05-13  Bin Cheng  <bin.cheng@linux.alibaba.com>
19512         PR tree-optimization/94969
19513         * tree-data-dependence.c (constant_access_functions): Rename to...
19514         (invariant_access_functions): ...this.  Add parameter.  Check for
19515         invariant access function, rather than constant.
19516         (build_classic_dist_vector): Call above function.
19517         * tree-loop-distribution.c (pg_add_dependence_edges): Add comment.
19519 2020-05-13  Hongtao Liu  <hongtao.liu@intel.com>
19521         PR target/94118
19522         * doc/extend.texi (x86Operandmodifiers): Document more x86
19523         operand modifier.
19524         * gcc/config/i386/i386.c: Add comment for operand modifier N and I.
19526 2020-05-12  Giuliano Belinassi  <giuliano.belinassi@usp.br>
19528         * tree-vrp.c (class vrp_insert): New.
19529         (insert_range_assertions): Move to class vrp_insert.
19530         (dump_all_asserts): Same as above.
19531         (dump_asserts_for): Same as above.
19532         (live): Same as above.
19533         (need_assert_for): Same as above.
19534         (live_on_edge): Same as above.
19535         (finish_register_edge_assert_for): Same as above.
19536         (find_switch_asserts): Same as above.
19537         (find_assert_locations): Same as above.
19538         (find_assert_locations_1): Same as above.
19539         (find_conditional_asserts): Same as above.
19540         (process_assert_insertions): Same as above.
19541         (register_new_assert_for): Same as above.
19542         (vrp_prop): New variable fun.
19543         (vrp_initialize): New parameter.
19544         (identify_jump_threads): Same as above.
19545         (execute_vrp): Same as above.
19548 2020-05-12  Keith Packard  <keith.packard@sifive.com>
19550         * config/riscv/riscv.c (riscv_unique_section): New.
19551         (TARGET_ASM_UNIQUE_SECTION): New.
19553 2020-05-12  Craig Blackmore  <craig.blackmore@embecosm.com>
19555         * config.gcc:  Add riscv-shorten-memrefs.o to extra_objs for riscv.
19556         * config/riscv/riscv-passes.def: New file.
19557         * config/riscv/riscv-protos.h (make_pass_shorten_memrefs): Declare.
19558         * config/riscv/riscv-shorten-memrefs.c: New file.
19559         * config/riscv/riscv.c (tree-pass.h): New include.
19560         (riscv_compressed_reg_p): New Function
19561         (riscv_compressed_lw_offset_p): Likewise.
19562         (riscv_compressed_lw_address_p): Likewise.
19563         (riscv_shorten_lw_offset): Likewise.
19564         (riscv_legitimize_address): Attempt to convert base + large_offset
19565         to compressible new_base + small_offset.
19566         (riscv_address_cost): Make anticipated compressed load/stores
19567         cheaper for code size than uncompressed load/stores.
19568         (riscv_register_priority): Move compressed register check to
19569         riscv_compressed_reg_p.
19570         * config/riscv/riscv.h (C_S_BITS): Define.
19571         (CSW_MAX_OFFSET): Define.
19572         * config/riscv/riscv.opt (mshorten-memefs): New option.
19573         * config/riscv/t-riscv (riscv-shorten-memrefs.o): New rule.
19574         (PASSES_EXTRA): Add riscv-passes.def.
19575         * doc/invoke.texi: Document -mshorten-memrefs.
19577         * config/riscv/riscv.c (riscv_new_address_profitable_p): New function.
19578         (TARGET_NEW_ADDRESS_PROFITABLE_P): Define.
19579         * doc/tm.texi: Regenerate.
19580         * doc/tm.texi.in (TARGET_NEW_ADDRESS_PROFITABLE_P):  New hook.
19581         * sched-deps.c (attempt_change): Use old address if it is cheaper than
19582         new address.
19583         * target.def (new_address_profitable_p): New hook.
19584         * targhooks.c (default_new_address_profitable_p): New function.
19585         * targhooks.h (default_new_address_profitable_p): Declare.
19587 2020-05-12  Uroš Bizjak  <ubizjak@gmail.com>
19589         PR target/95046
19590         * config/i386/mmx.md (copysignv2sf3): New expander.
19591         (xorsignv2sf3): Ditto.
19592         (signbitv2sf3): Ditto.
19594 2020-05-12  Uroš Bizjak  <ubizjak@gmail.com>
19596         PR target/95046
19597         * config/i386/mmx.md (fmav2sf4): New insn pattern.
19598         (fmsv2sf4): Ditto.
19599         (fnmav2sf4): Ditto.
19600         (fnmsv2sf4): Ditto.
19602 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
19604         * Makefile.in (CET_HOST_FLAGS): New.
19605         (COMPILER): Add $(CET_HOST_FLAGS).
19606         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
19607         AC_SUBST(CET_HOST_FLAGS).  Clear CET_HOST_FLAGS if jit isn't
19608         enabled.
19609         * aclocal.m4: Regenerated.
19610         * configure: Likewise.
19612 2020-05-12  Uroš Bizjak  <ubizjak@gmail.com>
19614         PR target/95046
19615         * config/i386/mmx.md (<code>v2sf2): New insn pattern.
19616         (*mmx_<code>v2sf2): New insn_and_split pattern.
19617         (*mmx_nabsv2sf2): Ditto.
19618         (*mmx_andnotv2sf3): New insn pattern.
19619         (*mmx_<code>v2sf3): Ditto.
19620         * config/i386/i386.md (absneg_op): New code attribute.
19621         * config/i386/i386.c (ix86_build_const_vector): Handle V2SFmode.
19622         (ix86_build_signbit_mask): Ditto.
19624 2020-05-12  Richard Biener  <rguenther@suse.de>
19626         * tree-ssa-live.c (remove_unused_locals): Remove dead debug
19627         bind resets.
19629 2020-05-12  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
19631         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
19632         Update prototype to include "local" argument.
19633         * config/msp430/msp430.c (msp430_output_aligned_decl_common): Add
19634         "local" argument.  Handle local common decls.
19635         * config/msp430/msp430.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Adjust
19636         msp430_output_aligned_decl_common call with 0 for "local" argument.
19637         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
19639 2020-05-12  Richard Biener  <rguenther@suse.de>
19641         * cfghooks.c (split_edge): Preserve EDGE_DFS_BACK if set.
19643 2020-05-12  Martin Liska  <mliska@suse.cz>
19645         PR sanitizer/95033
19646         PR sanitizer/95051
19647         * sanopt.c (sanitize_rewrite_addressable_params):
19648         Clear DECL_NOT_GIMPLE_REG_P for argument.
19650 2020-05-12  Richard Sandiford  <richard.sandiford@arm.com>
19652         PR tree-optimization/94980
19653         * tree-vect-generic.c (expand_vector_comparison): Use
19654         vector_element_bits_tree to get the element size in bits,
19655         rather than using TYPE_SIZE.
19656         (expand_vector_condition, vector_element): Likewise.
19658 2020-05-12  Richard Sandiford  <richard.sandiford@arm.com>
19660         PR tree-optimization/94980
19661         * tree-vect-generic.c (build_replicated_const): Take the number
19662         of bits as a parameter, instead of the type of the elements.
19663         (do_plus_minus): Update accordingly, using vector_element_bits
19664         to calculate the correct number of bits.
19665         (do_negate): Likewise.
19667 2020-05-12  Richard Sandiford  <richard.sandiford@arm.com>
19669         PR tree-optimization/94980
19670         * tree.h (vector_element_bits, vector_element_bits_tree): Declare.
19671         * tree.c (vector_element_bits, vector_element_bits_tree): New.
19672         * match.pd: Use the new functions instead of determining the
19673         vector element size directly from TYPE_SIZE(_UNIT).
19674         * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
19675         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
19676         * tree-vect-stmts.c (vect_is_simple_cond): Likewise.
19677         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
19678         (expand_vector_conversion): Likewise.
19679         (expand_vector_addition): Likewise for a TYPE_SIZE_UNIT used as
19680         a divisor.  Convert the dividend to bits to compensate.
19681         * tree-vect-loop.c (vectorizable_live_operation): Call
19682         vector_element_bits instead of open-coding it.
19684 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
19686         * omp-offload.h (omp_discover_implicit_declare_target): Declare.
19687         * omp-offload.c: Include context.h.
19688         (omp_declare_target_fn_p, omp_declare_target_var_p,
19689         omp_discover_declare_target_fn_r, omp_discover_declare_target_var_r,
19690         omp_discover_implicit_declare_target): New functions.
19691         * cgraphunit.c (analyze_functions): Call
19692         omp_discover_implicit_declare_target.
19694 2020-05-12  Richard Biener  <rguenther@suse.de>
19696         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Canonicalize
19697         literal constant &MEM[..] to a constant literal.
19699 2020-05-12  Richard Biener  <rguenther@suse.de>
19701         PR tree-optimization/95045
19702         * dbgcnt.def (lim): Add debug-counter.
19703         * tree-ssa-loop-im.c: Include dbgcnt.h.
19704         (find_refs_for_sm): Use lim debug counter for store motion
19705         candidates.
19706         (do_store_motion): Rename form store_motion.  Commit edge
19707         insertions...
19708         (store_motion_loop): ... here.
19709         (tree_ssa_lim): Adjust.
19711 2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19713         * config/rs6000/altivec.h (vec_clzm): Rename to vec_cntlzm.
19714         (vec_ctzm): Rename to vec_cnttzm.
19715         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19716         Change fourth operand for vec_ternarylogic to require
19717         compatibility with unsigned SImode rather than unsigned QImode.
19718         * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
19719         Remove overloaded forms of vec_gnb that are no longer needed.
19720         * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
19721         for a Future Architecture): Replace vec_clzm with vec_cntlzm;
19722         replace vec_ctzm with vec_cntlzm; remove four unwanted forms of
19723         vec_gnb; move vec_ternarylogic documentation into this section
19724         and replace const unsigned char with const unsigned int as its
19725         fourth argument.
19727 2020-05-11  Carl Love  <cel@us.ibm.com>
19729         * config/rs6000/altivec.h (vec_genpcvm): New #define.
19730         * config/rs6000/rs6000-builtin.def (XXGENPCVM_V16QI): New built-in
19731         instantiation.
19732         (XXGENPCVM_V8HI): Likewise.
19733         (XXGENPCVM_V4SI): Likewise.
19734         (XXGENPCVM_V2DI): Likewise.
19735         (XXGENPCVM): New overloaded built-in instantiation.
19736         * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add
19737         entries for FUTURE_BUILTIN_VEC_XXGENPCVM.
19738         (altivec_expand_builtin): Add special handling for
19739         FUTURE_BUILTIN_VEC_XXGENPCVM.
19740         (builtin_function_type): Add handling for
19741         FUTURE_BUILTIN_XXGENPCVM_{V16QI,V8HI,V4SI,V2DI}.
19742         * config/rs6000/vsx.md (VSX_EXTRACT_I4): New mode iterator.
19743         (UNSPEC_XXGENPCV): New constant.
19744         (xxgenpcvm_<mode>_internal): New insn.
19745         (xxgenpcvm_<mode>): New expansion.
19746         * doc/extend.texi: Add documentation for vec_genpcvm built-ins.
19748 2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19750         * config/rs6000/altivec.h (vec_strir): New #define.
19751         (vec_stril): Likewise.
19752         (vec_strir_p): Likewise.
19753         (vec_stril_p): Likewise.
19754         * config/rs6000/altivec.md (UNSPEC_VSTRIR): New constant.
19755         (UNSPEC_VSTRIL): Likewise.
19756         (vstrir_<mode>): New expansion.
19757         (vstrir_code_<mode>): New insn.
19758         (vstrir_p_<mode>): New expansion.
19759         (vstrir_p_code_<mode>): New insn.
19760         (vstril_<mode>): New expansion.
19761         (vstril_code_<mode>): New insn.
19762         (vstril_p_<mode>): New expansion.
19763         (vstril_p_code_<mode>): New insn.
19764         * config/rs6000/rs6000-builtin.def (__builtin_altivec_vstribr):
19765         New built-in function.
19766         (__builtin_altivec_vstrihr): Likewise.
19767         (__builtin_altivec_vstribl): Likewise.
19768         (__builtin_altivec_vstrihl): Likewise.
19769         (__builtin_altivec_vstribr_p): Likewise.
19770         (__builtin_altivec_vstrihr_p): Likewise.
19771         (__builtin_altivec_vstribl_p): Likewise.
19772         (__builtin_altivec_vstrihl_p): Likewise.
19773         (__builtin_vec_strir): New overloaded built-in function.
19774         (__builtin_vec_stril): Likewise.
19775         (__builtin_vec_strir_p): Likewise.
19776         (__builtin_vec_stril_p): Likewise.
19777         * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
19778         Define overloaded forms of __builtin_vec_strir,
19779         __builtin_vec_stril, __builtin_vec_strir_p, and
19780         __builtin_vec_stril_p.
19781         * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
19782         for a Future Architecture): Add description of vec_stril,
19783         vec_stril_p, vec_strir, and vec_strir_p built-in functions.
19785 2020-05-11  Kelvin Nilsen  <wschmidt@linux.ibm.com>
19787         * config/rs6000/altivec.h (vec_ternarylogic): New #define.
19788         * config/rs6000/altivec.md (UNSPEC_XXEVAL): New constant.
19789         (xxeval): New insn.
19790         * config/rs6000/predicates.md (u8bit_cint_operand): New predicate.
19791         * config/rs6000/rs6000-builtin.def: Add handling of new macro
19792         RS6000_BUILTIN_4.
19793         (BU_FUTURE_V_4): New macro. Use it.
19794         (BU_FUTURE_OVERLOAD_4): Likewise.
19795         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Add
19796         handling for quaternary built-in functions.
19797         (altivec_resolve_overloaded_builtin): Add special-case handling
19798         for __builtin_vec_xxeval.
19799         * config/rs6000/rs6000-call.c: Add handling of new macro
19800         RS6000_BUILTIN_4 in initialization of rs6000_builtin_info,
19801         bdesc0_arg, bdesc1_arg, bdesc2_arg, bdesc_3arg,
19802         bdesc_altivec_preds, bdesc_abs, and bdesc_htm arrays.
19803         (altivec_overloaded_builtins): Add definitions for
19804         FUTURE_BUILTIN_VEC_XXEVAL.
19805         (bdesc_4arg): New array.
19806         (htm_expand_builtin): Add handling for quaternary built-in
19807         functions.
19808         (rs6000_expand_quaternop_builtin): New function.
19809         (rs6000_expand_builtin): Add handling for quaternary built-in
19810         functions.
19811         (rs6000_init_builtins): Initialize builtin_mode_to_type entries
19812         for unsigned QImode and unsigned HImode.
19813         (builtin_quaternary_function_type): New function.
19814         (rs6000_common_init_builtins): Add handling of quaternary
19815         operations.
19816         * config/rs6000/rs6000.h (RS6000_BTC_QUATERNARY): New defined
19817         constant.
19818         (RS6000_BTC_PREDICATE): Change value of constant.
19819         (RS6000_BTC_ABS): Likewise.
19820         (rs6000_builtins): Add support for new macro RS6000_BUILTIN_4.
19821         * doc/extend.texi (PowerPC AltiVec Built-In Functions Available
19822         for a Future Architecture): Add description of vec_ternarylogic
19823         built-in function.
19825 2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19827         * config/rs6000/rs6000-builtin.def (__builtin_pdepd): New built-in
19828         function.
19829         (__builtin_pextd): Likewise.
19830         * config/rs6000/rs6000.md (UNSPEC_PDEPD): New constant.
19831         (UNSPEC_PEXTD): Likewise.
19832         (pdepd): New insn.
19833         (pextd): Likewise.
19834         * doc/extend.texi (Basic PowerPC Built-in Functions Available for
19835         a Future Architecture): Add descriptions of __builtin_pdepd and
19836         __builtin_pextd functions.
19838 2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19840         * config/rs6000/altivec.h (vec_clrl): New #define.
19841         (vec_clrr): Likewise.
19842         * config/rs6000/altivec.md (UNSPEC_VCLRLB): New constant.
19843         (UNSPEC_VCLRRB): Likewise.
19844         (vclrlb): New insn.
19845         (vclrrb): Likewise.
19846         * config/rs6000/rs6000-builtin.def (__builtin_altivec_vclrlb): New
19847         built-in function.
19848         (__builtin_altivec_vclrrb): Likewise.
19849         (__builtin_vec_clrl): New overloaded built-in function.
19850         (__builtin_vec_clrr): Likewise.
19851         * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
19852         Define overloaded forms of __builtin_vec_clrl and
19853         __builtin_vec_clrr.
19854         * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
19855         for a Future Architecture): Add descriptions of vec_clrl and
19856         vec_clrr.
19858 2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19860         * config/rs6000/rs6000-builtin.def (__builtin_cntlzdm): New
19861         built-in function definition.
19862         (__builtin_cnttzdm): Likewise.
19863         * config/rs6000/rs6000.md (UNSPEC_CNTLZDM): New constant.
19864         (UNSPEC_CNTTZDM): Likewise.
19865         (cntlzdm): New insn.
19866         (cnttzdm): Likewise.
19867         * doc/extend.texi (Basic PowerPC Built-in Functions available for
19868         a Future Architecture): Add descriptions of __builtin_cntlzdm and
19869         __builtin_cnttzdm functions.
19871 2020-05-11  Uroš Bizjak  <ubizjak@gmail.com>
19873         PR target/95046
19874         * config/i386/mmx.md (sqrtv2sf2): New insn pattern.
19876 2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19878         * config/rs6000/altivec.h (vec_cfuge): New #define.
19879         * config/rs6000/altivec.md (UNSPEC_VCFUGED): New constant.
19880         (vcfuged): New insn.
19881         * config/rs6000/rs6000-builtin.def (__builtin_altivec_vcfuged):
19882         New built-in function.
19883         * config/rs6000/rs6000-call.c (builtin_function_type): Add
19884         handling for FUTURE_BUILTIN_VCFUGED case.
19885         * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
19886         for a Future Architecture): Add description of vec_cfuge built-in
19887         function.
19889 2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19891         * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_0): New
19892         #define.
19893         (BU_FUTURE_MISC_1): Likewise.
19894         (BU_FUTURE_MISC_2): Likewise.
19895         (BU_FUTURE_MISC_3): Likewise.
19896         (__builtin_cfuged): New built-in function definition.
19897         * config/rs6000/rs6000.md (UNSPEC_CFUGED): New constant.
19898         (cfuged): New insn.
19899         * doc/extend.texi (Basic PowerPC Built-in Functions Available for
19900         a Future Architecture): New subsubsection.
19902 2020-05-11  Richard Biener  <rguenther@suse.de>
19904         PR tree-optimization/95049
19905         * tree-ssa-sccvn.c (set_ssa_val_to): Reject lattice transition
19906         between different constants.
19908 2020-05-11  Richard Sandiford  <richard.sandiford@arm.com>
19910         * tree-pretty-print.c (dump_generic_node): Handle BOOLEAN_TYPEs.
19912 2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19913             Bill Schmidt  <wschmidt@linux.ibm.com>
19915         * config/rs6000/altivec.h (vec_gnb): New #define.
19916         * config/rs6000/altivec.md (UNSPEC_VGNB): New constant.
19917         (vgnb): New insn.
19918         * config/rs6000/rs6000-builtin.def (BU_FUTURE_OVERLOAD_1): New
19919         #define.
19920         (BU_FUTURE_OVERLOAD_2): Likewise.
19921         (BU_FUTURE_OVERLOAD_3): Likewise.
19922         (__builtin_altivec_gnb): New built-in function.
19923         (__buiiltin_vec_gnb): New overloaded built-in function.
19924         * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
19925         Define overloaded forms of __builtin_vec_gnb.
19926         (rs6000_expand_binop_builtin): Add error checking for 2nd argument
19927         of __builtin_vec_gnb.
19928         (builtin_function_type): Mark return value and arguments unsigned
19929         for FUTURE_BUILTIN_VGNB.
19930         * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
19931         for a Future Architecture): Add description of vec_gnb built-in
19932         function.
19934 2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19935             Bill Schmidt  <wschmidt@linux.ibm.com>
19937         * config/rs6000/altivec.h (vec_pdep): New macro implementing new
19938         built-in function.
19939         (vec_pext): Likewise.
19940         * config/rs6000/altivec.md (UNSPEC_VPDEPD): New constant.
19941         (UNSPEC_VPEXTD): Likewise.
19942         (vpdepd): New insn.
19943         (vpextd): Likewise.
19944         * config/rs6000/rs6000-builtin.def (__builtin_altivec_vpdepd): New
19945         built-in function.
19946         (__builtin_altivec_vpextd): Likewise.
19947         * config/rs6000/rs6000-call.c (builtin_function_type): Add
19948         handling for FUTURE_BUILTIN_VPDEPD and FUTURE_BUILTIN_VPEXTD
19949         cases.
19950         * doc/extend.texi (PowerPC Altivec Built-in Functions Available
19951         for a Future Architecture): Add description of vec_pdep and
19952         vec_pext built-in functions.
19954 2020-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19955             Bill Schmidt  <wschmidt@linux.ibm.com>
19957         * config/rs6000/altivec.h (vec_clzm): New macro.
19958         (vec_ctzm): Likewise.
19959         * config/rs6000/altivec.md (UNSPEC_VCLZDM): New constant.
19960         (UNSPEC_VCTZDM): Likewise.
19961         (vclzdm): New insn.
19962         (vctzdm): Likewise.
19963         * config/rs6000/rs6000-builtin.def (BU_FUTURE_V_0): New macro.
19964         (BU_FUTURE_V_1): Likewise.
19965         (BU_FUTURE_V_2): Likewise.
19966         (BU_FUTURE_V_3): Likewise.
19967         (__builtin_altivec_vclzdm): New builtin definition.
19968         (__builtin_altivec_vctzdm): Likewise.
19969         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Cause
19970         _ARCH_PWR_FUTURE macro to be defined if OPTION_MASK_FUTURE flag is
19971         set.
19972         * config/rs6000/rs6000-call.c (builtin_function_type): Set return
19973         value and parameter types to be unsigned for VCLZDM and VCTZDM.
19974         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
19975         support for TARGET_FUTURE flag.
19976         * config/rs6000/rs6000.h (RS6000_BTM_FUTURE): New macro constant.
19977         * doc/extend.texi (PowerPC Altivec Built-in Functions Available
19978         for a Future Architecture): New subsubsection.
19980 2020-05-11  Richard Biener  <rguenther@suse.de>
19982         PR tree-optimization/94988
19983         PR tree-optimization/95025
19984         * tree-ssa-loop-im.c (seq_entry): Make a struct, add from.
19985         (sm_seq_push_down): Take extra parameter denoting where we
19986         moved the ref to.
19987         (execute_sm_exit): Re-issue sm_other stores in the correct
19988         order.
19989         (sm_seq_valid_bb): When always executed, allow sm_other to
19990         prevail inbetween sm_ord and record their stored value.
19991         (hoist_memory_references): Adjust refs_not_supported propagation
19992         and prune sm_other from the end of the ordered sequences.
19994 2020-05-11  Felix Yang  <felix.yang@huawei.com>
19996         PR target/94991
19997         * config/aarch64/aarch64.md (mov<mode>):
19998         Bitcasts to the equivalent integer mode using gen_lowpart
19999         instead of doing FAIL for scalar floating point move.
20001 2020-05-11  Alex Coplan  <alex.coplan@arm.com>
20003         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Add case
20004         to correctly calculate cost for new pattern (*csinv3_uxtw_insn3).
20005         * config/aarch64/aarch64.md (*csinv3_utxw_insn1): New.
20006         (*csinv3_uxtw_insn2): New.
20007         (*csinv3_uxtw_insn3): New.
20008         * config/aarch64/iterators.md (neg_not_cs): New.
20010 2020-05-11  Uroš Bizjak  <ubizjak@gmail.com>
20012         PR target/95046
20013         * config/i386/mmx.md (mmx_addv2sf3): Use "v" constraint
20014         instead of "Yv" for AVX alternatives.  Add "prefix" attribute.
20015         (*mmx_addv2sf3): Ditto.
20016         (*mmx_subv2sf3): Ditto.
20017         (*mmx_mulv2sf3): Ditto.
20018         (*mmx_<code>v2sf3): Ditto.
20019         (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
20021 2020-05-11  Uroš Bizjak  <ubizjak@gmail.com>
20023         PR target/95046
20024         * config/i386/i386.c (ix86_vector_mode_supported_p):
20025         Vectorize 3dNOW! vector modes for TARGET_MMX_WITH_SSE.
20026         * config/i386/mmx.md (*mov<mode>_internal): Do not set
20027         mode of alternative 13 to V2SF for TARGET_MMX_WITH_SSE.
20029         (mmx_addv2sf3): Change operand predicates from
20030         nonimmediate_operand to register_mmxmem_operand.
20031         (addv2sf3): New expander.
20032         (*mmx_addv2sf3): Add SSE/AVX alternatives.  Change operand
20033         predicates from nonimmediate_operand to register_mmxmem_operand.
20034         Enable instruction pattern for TARGET_MMX_WITH_SSE.
20036         (mmx_subv2sf3): Change operand predicate from
20037         nonimmediate_operand to register_mmxmem_operand.
20038         (mmx_subrv2sf3): Ditto.
20039         (subv2sf3): New expander.
20040         (*mmx_subv2sf3): Add SSE/AVX alternatives.  Change operand
20041         predicates from nonimmediate_operand to register_mmxmem_operand.
20042         Enable instruction pattern for TARGET_MMX_WITH_SSE.
20044         (mmx_mulv2sf3): Change operand predicates from
20045         nonimmediate_operand to register_mmxmem_operand.
20046         (mulv2sf3): New expander.
20047         (*mmx_mulv2sf3): Add SSE/AVX alternatives.  Change operand
20048         predicates from nonimmediate_operand to register_mmxmem_operand.
20049         Enable instruction pattern for TARGET_MMX_WITH_SSE.
20051         (mmx_<code>v2sf3): Change operand predicates from
20052         nonimmediate_operand to register_mmxmem_operand.
20053         (<code>v2sf3): New expander.
20054         (*mmx_<code>v2sf3): Add SSE/AVX alternatives.  Change operand
20055         predicates from nonimmediate_operand to register_mmxmem_operand.
20056         Enable instruction pattern for TARGET_MMX_WITH_SSE.
20057         (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
20059 2020-05-11  Martin Liska  <mliska@suse.cz>
20061         PR c/95040
20062         * common.opt: Fix typo in option description.
20064 2020-05-11  Martin Liska  <mliska@suse.cz>
20066         PR gcov-profile/94928
20067         * gcov-io.h: Add caveat about coverage format parsing and
20068         possible outdated documentation.
20070 2020-05-11  Xiong Hu Luo  <luoxhu@linux.ibm.com>
20072         PR tree-optimization/83403
20073         * tree-affine.c (expr_to_aff_combination): Replace SSA_NAME with
20074         determine_value_range, Add fold conversion of MULT_EXPR, fix the
20075         previous PLUS_EXPR.
20077 2020-05-10  Gerald Pfeifer  <gerald@pfeifer.com>
20079         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and
20080         __ILP32__ for 32-bit targets.
20082 2020-05-09  Eric Botcazou  <ebotcazou@adacore.com>
20084         * tree.h (expr_align): Delete.
20085         * tree.c (expr_align): Likewise.
20087 2020-05-09  Hans-Peter Nilsson  <hp@axis.com>
20089         * resource.c (init_resource_info): Filter-out TARGET_FLAGS_REGNUM
20090         from end_of_function_needs.
20092         * config.gcc: Remove support for crisv32-*-* and cris-*-linux*.
20093         * config/cris/t-linux, config/cris/linux.h, config/cris/linux.opt:
20094         Remove.
20095         * config/cris/t-elfmulti: Remove crisv32 multilib.
20096         * config/cris: Remove shared-library and CRIS v32 support.
20098         Move trivially from cc0 to reg:CC model, removing most optimizations.
20099         * config/cris/cris.md: Remove all side-effect patterns and their
20100         splitters.  Remove most peepholes.  Add clobbers of CRIS_CC0_REGNUM
20101         to all but post-reload control-flow and movem insns.  Remove
20102         constraints on all modified expanders.  Remove obsoleted cc0-related
20103         references.
20104         (attr "cc"): Remove alternative "rev".
20105         (mode_iterator BWDD, DI_, SI_): New.
20106         (mode_attr sCC_destc, cmp_op1c, cmp_op2c): New.
20107         ("tst<mode>"): Remove; fold as "M" alternative into compare insn.
20108         ("mstep_shift", "mstep_mul"): Remove patterns.
20109         ("s<rcond>", "s<ocond>", "s<ncond>"): Anonymize.
20110         * config/cris/cris.c: Change all non-condition-code,
20111         non-control-flow emitted insns to add a parallel with clobber of
20112         CRIS_CC0_REGNUM, mostly by changing from gen_rtx_SET with
20113         emit_insn to use of emit_move_insn, gen_add2_insn or
20114         cris_emit_insn, as convenient.
20115         (cris_reg_overlap_mentioned_p)
20116         (cris_normal_notice_update_cc, cris_notice_update_cc): Remove.
20117         (cris_movem_load_rest_p): Don't assume all elements in a
20118         PARALLEL are SETs.
20119         (cris_store_multiple_op_p): Ditto.
20120         (cris_emit_insn): New function.
20121         * cris/cris-protos.h (cris_emit_insn): Declare.
20123         PR target/93372
20124         * config/cris/cris.md (zcond): New code_iterator.
20125         ("*cbranch<mode>4_btstq<CC>"): New insn_and_split.
20127         * config/cris/cris.c (TARGET_FLAGS_REGNUM): Define.
20129         * config/cris/cris.h (REVERSIBLE_CC_MODE): Define to true.
20131         * config/cris/cris.md ("movsi"): For memory destination
20132         post-reload, generate clobberless variant.  Similarly for a
20133         zero-source post-reload.
20134         ("*mov_tomem<mode>_split"): New split.
20135         ("*mov_tomem<mode>"): New insn.
20136         ("enabled", mov_tomem_enabled): Define and use to exclude "x" ->
20137         "Q>m" for less-than-SImode.
20138         ("*mov_fromzero<mode>_split"): New split.
20139         ("*mov_fromzero<mode>"): New insn.
20141         Prepare for cmpelim pass to eliminate redundant compare insns.
20142         * config/cris/cris-modes.def: New file.
20143         * config/cris/cris-protos.h (cris_select_cc_mode): Declare.
20144         (cris_notice_update_cc): Remove left-over declaration.
20145         * config/cris/cris.c (TARGET_CC_MODES_COMPATIBLE): Define.
20146         (cris_select_cc_mode, cris_cc_modes_compatible): New functions.
20147         * config/cris/cris.h (SELECT_CC_MODE): Define.
20148         * config/cris/cris.md (NZSET, NZUSE, NZVCSET, NZVCUSE): New
20149         mode_iterators.
20150         (cond): New code_iterator.
20151         (nzcond): Replacement for incorrect ncond.  All callers changed.
20152         (nzvccond): Replacement for ocond.  All callers changed.
20153         (rnzcond): Replacement for rcond.  All callers changed.
20154         (xCC): New code_attr.
20155         (cmp_op1c, cmp_op0c): Renumber from cmp_op1c and cmp_op2c.  All
20156         users changed.
20157         ("*cmpdi<NZVCSET:mode>"): Rename from "*cmpdi".  Replace
20158         CCmode with iteration over NZVCSET.
20159         ("*cmp_ext<BW:mode><NZVCSET:mode>"): Similarly; rename from
20160         "*cmp_ext<mode>".
20161         ("*cmpsi<NZVCSET:mode>"): Similarly, from "*cmpsi".
20162         ("*cmp<BW:mode><NZVCSET:mode>"): Similarly from "*cmp<mode>".
20163         ("*btst<mode>"): Similarly, from "*btst".
20164         ("*cbranch<mode><code>4"): Rename from "*cbranch<mode>4",
20165         iterating over cond instead of matching the comparison with
20166         ordered_comparison_operator.
20167         ("*cbranch<mode>4_btstq<CC>"): Correct label operand number.
20168         ("b<zcond:code><mode>"): Rename from "b<ncond:code>", iterating
20169         over NZUSE.
20170         ("b<nzvccond:code><mode>"): Similarly from "b<ocond:code>", over
20171         NZVCUSE.  Remove FIXME.
20172         ("*b<nzcond:code>_reversed<mode>"): Similarly from
20173         "*b<ncond:code>_reversed", over NZUSE.
20174         ("*b<nzvccond:code>_reversed<mode>"): Similarly from
20175         "*b<ocond:code>_reversed", over NZVCUSE.  Remove FIXME.
20176         ("b<rnzcond:code><mode>"): Similarly from "b<rcond:code>",
20177         over NZUSE.  Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
20178         depending on CC_NZmode vs. CCmode.  Remove FIXME.
20179         ("*b<rnzcond:code>_reversed<mode>"): Similarly from
20180         "*b<rcond:code>_reversed", over NZUSE.
20181         ("*cstore<mode><code>4"): Rename from "*cstore<mode>4",
20182         iterating over cond instead of matching the comparison with
20183         ordered_comparison_operator.
20184         ("*s<nzcond:code><mode>"): Rename from "*s<ncond:code>",
20185         iterating over NZUSE.
20186         ("*s<rnzcond:code><mode>"): Similar from "*s<rcond:code>", over
20187         NZUSE.  Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
20188         depending on CC_NZmode vs. CCmode.
20189         ("*s<nzvccond:code><mode>"): Simlar from "*s<ocond:code>", over
20190         NZVCUSE.  Remove FIXME.
20191         ("cc"): Comment on new use.
20192         ("cc_enabled"): New attribute.
20193         ("enabled"): Make default fall back to cc_enabled.
20194         ("setnz", "ccnz", "setnzvc", "ccnzvc", "setcc", "cccc"): New
20195         default_subst_attrs.
20196         ("setnz_subst", "setnzvc_subst", "setcc_subst"): New default_subst.
20197         ("*movsi_internal<setcc><setnz><setnzvc>"): Rename from
20198         "*movsi_internal".  Correct contents of, and rename attribute
20199         "cc" to "cc<cccc><ccnz><ccnzvc>".
20200         ("anz", "anzvc", "acc"): New define_subst_attrs.
20201         ("<acc><anz><anzvc>movhi<setcc><setnz><setnzvc>"): Rename from
20202         "movhi".  Rename "cc" attribute to "cc<cccc><ccnz><ccnzvc>".
20203         ("<acc><anz><anzvc>movqi<setcc><setnz><setnzvc>"): Similar from
20204         "movqi".  Correct contents of, and rename "cc" attribute to
20205         "cc<cccc><ccnz><ccnzvc>".
20206         ("*b<zcond:code><mode>"): Rename from "b<zcond:code><mode>".
20207         ("*b<nzvccond:code><mode>"): Rename from "b<nzvccond:code><mode>".
20208         ("*b<rnzcond:code><mode>"): Rename from "*b<rnzcond:code><mode>".
20209         ("<acc><anz><anzvc>extend<mode>si2<setcc><setnz><setnzvc>"):
20210         Rename from "extend<mode>si2".
20211         ("<acc><anz><anzvc>zero_extend<mode>si2<setcc><setnz><setnzvc>"):
20212         Similar, from "zero_extend<mode>si2".
20213         ("*adddi3<setnz>"): Rename from "*adddi3".
20214         ("*subdi3<setnz>"): Similarly from "*subdi3".
20215         ("*addsi3<setnz>"): Similarly from "*addsi3".
20216         ("*subsi3<setnz>"): Similarly from "*subsi3".
20217         ("*addhi3<setnz>"): Similarly from "*addhi3" and decorate the
20218         "cc" attribute to "cc<ccnz>".
20219         ("*addqi3<setnz>"): Similarly from "*addqi3".
20220         ("*sub<mode>3<setnz>"): Similarly from "*sub<mode>3".
20221         ("*expanded_andsi<setcc><setnz><setnzvc>"): Rename from
20222         "*expanded_andsi".
20223         ("*iorsi3<setcc><setnz><setnzvc>"): Similar from "*iorsi3".
20224         Decorate "cc" attribute to make "cc<cccc><ccnz><ccnzvc>".
20225         ("*iorhi3<setcc><setnz><setnzvc>"): Similar from "*iorhi3".
20226         ("*iorqi3<setcc><setnz><setnzvc>"): Similar from "*iorqi3".
20227         ("*expanded_andhi<setcc><setnz><setnzvc>"): Similar from
20228         "*expanded_andhi".  Add quick cc-setting alternative for 0..31.
20229         ("*andqi3<setcc><setnz><setnzvc>"): Similar from "*andqi3".
20230         ("<acc><anz><anzvc>xorsi3<setcc><setnz><setnzvc>"): Rename
20231         from "xorsi3".
20232         ("<acc><anz><anzvc>one_cmplsi2<setcc><setnz><setnzvc>"): Rename
20233         from "one_cmplsi2".
20234         ("<acc><anz><anzvc><shlr>si3<setcc><setnz><setnzvc>"): Rename
20235         from "<shlr>si3".
20236         ("<acc><anz><anzvc>clzsi2<setcc><setnz><setnzvc>"): Rename
20237         from "clzsi2".
20238         ("<acc><anz><anzvc>bswapsi2<setcc><setnz><setnzvc>"): Rename
20239         from "bswapsi2".
20240         ("*uminsi3<setcc><setnz><setnzvc>"): Rename from "*uminsi3".
20242         * config/cris/cris-modes.def (CC_ZnN): New CC_MODE.
20243         * config/cris/cris.c (cris_rtx_costs): Handle pre-split bit-test
20244         * config/cris/cris.md (ZnNNZSET, ZnNNZUSE): New mode_iterators.
20245         (znnCC, rznnCC): New code_attrs.
20246         ("*btst<mode>"): Iterator over ZnNNZSET instead of NZVCSET.  Remove
20247         obseolete comment.  Add belt-and-suspenders mode-test to condition.
20248         Add fixme regarding remaining matched-but-not-generated case.
20249         ("*cbranch<mode>4_btstrq1_<CC>"): New insn_and_split.
20250         ("*cbranch<mode>4_btstqb0_<CC>"): Rename from
20251         "*cbranch<mode>4_btstq<CC>".  Split to CC_NZ instead of CC.
20252         ("*b<zcond:code><mode>"): Iterate over ZnNNZUSE instead of NZUSE.
20253         Handle output of CC_ZnNmode.
20254         ("*b<nzcond:code>_reversed<mode>"): Ditto.
20256         * config/cris/cris.c (cris_select_cc_mode): Return CC_NZmode for
20257         NEG too.  Correct comment.
20258         * config/cris/cris.md ("<anz>neg<mode>2<setnz>"): Rename from
20259         "neg<mode>2".
20261 2020-05-08  Vladimir Makarov  <vmakarov@redhat.com>
20263         * ira-color.c (update_costs_from_allocno): Remove
20264         conflict_cost_update_p argument.  Propagate costs only along
20265         threads. Always do conflict cost update.  Add printing debugging
20266         info.
20267         (update_costs_from_copies): Add printing debugging info.
20268         (restore_costs_from_copies): Ditto.
20269         (assign_hard_reg): Improve debug info.
20270         (push_only_colorable): Ditto. Call update_costs_from_prefs.
20271         (color_allocnos): Remove update_costs_from_prefs.
20273 2020-05-08  Richard Biener  <rguenther@suse.de>
20275         * tree-vectorizer.h (vec_info::slp_loads): New.
20276         (vect_optimize_slp): Declare.
20277         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts):  Do
20278         nothing when there are no loads.
20279         (vect_gather_slp_loads): Gather loads into a vector.
20280         (vect_supported_load_permutation_p): Remove.
20281         (vect_analyze_slp_instance): Do not verify permutation
20282         validity here.
20283         (vect_analyze_slp): Optimize permutations of reductions
20284         after all SLP instances have been gathered and gather
20285         all loads.
20286         (vect_optimize_slp): New function split out from
20287         vect_supported_load_permutation_p.  Elide some permutations.
20288         (vect_slp_analyze_bb_1): Call vect_optimize_slp.
20289         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
20290         * tree-vect-stmts.c (vectorizable_load): Check whether
20291         the load can be permuted.  When generating code assert we can.
20293 2020-05-08  Richard Biener  <rguenther@suse.de>
20295         * tree-ssa-sccvn.c (rpo_avail): Change type to
20296         eliminate_dom_walker *.
20297         (eliminate_with_rpo_vn): Adjust rpo_avail to make vn_valueize
20298         use the DOM walker availability.
20299         (vn_reference_fold_indirect): Use get_addr_base_and_unit_offset_1
20300         with vn_valueize as valueization callback.
20301         (vn_reference_maybe_forwprop_address): Likewise.
20302         * tree-dfa.c (get_addr_base_and_unit_offset_1): Also valueize
20303         array_ref_low_bound.
20305 2020-05-08  Jakub Jelinek  <jakub@redhat.com>
20307         PR tree-optimization/94786
20308         * match.pd (A ^ ((A ^ B) & -(C cmp D)) -> (C cmp D) ? B : A): New
20309         simplification.
20311         PR target/94857
20312         * config/i386/i386.md (peephole2 after *add<mode>3_cc_overflow_1): New
20313         define_peephole2.
20315         PR middle-end/94724
20316         * tree.c (get_narrower): Reuse the op temporary instead of
20317         shadowing it.
20319         PR tree-optimization/94783
20320         * match.pd ((X + (X >> (prec - 1))) ^ (X >> (prec - 1)) to abs (X)):
20321         New simplification.
20323         PR tree-optimization/94956
20324         * match.pd (FFS): Optimize __builtin_ffs* of non-zero argument into
20325         __builtin_ctz* + 1 if direct IFN_CTZ is supported.
20327         PR tree-optimization/94913
20328         * match.pd (A - B + -1 >= A to B >= A): New simplification.
20329         (A - B > A to A < B): Don't test TYPE_OVERFLOW_WRAPS which is always
20330         true for TYPE_UNSIGNED integral types.
20332         PR bootstrap/94961
20333         PR rtl-optimization/94516
20334         * rtl.h (remove_reg_equal_equiv_notes): Add a bool argument defaulted
20335         to false.
20336         * rtlanal.c (remove_reg_equal_equiv_notes): Add no_rescan argument.
20337         Call df_notes_rescan if that argument is not true and returning true.
20338         * combine.c (adjust_for_new_dest): Pass true as second argument to
20339         remove_reg_equal_equiv_notes.
20340         * postreload.c (reload_combine_recognize_pattern): Don't call
20341         df_notes_rescan.
20343 2020-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
20345         * config/rs6000/rs6000.md (*setnbc_<un>signed_<GPR:mode>): New
20346         define_insn.
20347         (*setnbcr_<un>signed_<GPR:mode>): New define_insn.
20348         (*neg_eq_<mode>): Avoid for TARGET_FUTURE; add missing && 1.
20349         (*neg_ne_<mode>): Likewise.
20351 2020-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
20353         * config/rs6000/rs6000.md (setbc_<un>signed_<GPR:mode>): New
20354         define_insn.
20355         (*setbcr_<un>signed_<GPR:mode>): Likewise.
20356         (cstore<mode>4): Use setbc[r] if available.
20357         (<code><GPR:mode><GPR2:mode>2_isel): Avoid for TARGET_FUTURE.
20358         (eq<mode>3): Use setbc for TARGET_FUTURE.
20359         (*eq<mode>3): Avoid for TARGET_FUTURE.
20360         (ne<mode>3): Replace :P with :GPR; use setbc for TARGET_FUTURE;
20361         else for non-Pmode, use gen_eq and gen_xor.
20362         (*ne<mode>3): Avoid for TARGET_FUTURE.
20363         (*eqsi3_ext<mode>): Avoid for TARGET_FUTURE; fix missing && 1.
20365 2020-05-07 Jeff Law  <law@redhat.com>
20367         * config/h8300/h8300.md: Move expanders and patterns into
20368         files based on functionality.
20369         * config/h8300/addsub.md: New file.
20370         * config/h8300/bitfield.md: New file
20371         * config/h8300/combiner.md: New file
20372         * config/h8300/divmod.md: New file
20373         * config/h8300/extensions.md: New file
20374         * config/h8300/jumpcall.md: New file
20375         * config/h8300/logical.md: New file
20376         * config/h8300/movepush.md: New file
20377         * config/h8300/multiply.md: New file
20378         * config/h8300/other.md: New file
20379         * config/h8300/proepi.md: New file
20380         * config/h8300/shiftrotate.md: New file
20381         * config/h8300/testcompare.md: New file
20383         * config/h8300/h8300.md (adds/subs splitters): Merge into single
20384         splitter.
20385         (negation expanders and patterns): Simplify and combine using
20386         iterators.
20387         (one_cmpl expanders and patterns): Likewise.
20388         (tablejump, indirect_jump patterns ): Likewise.
20389         (shift and rotate expanders and patterns): Likewise.
20390         (absolute value expander and pattern): Drop expander, rename pattern
20391         to just "abssf2"
20392         (peephole2 patterns): Move into...
20393         * config/h8300/peepholes.md: New file.
20394         
20395         * config/h8300/constraints.md (L and N): Simplify now that we're not
20396         longer supporting the original H8/300 chip.
20397         * config/h8300/elf.h (LINK_SPEC): Likewise.  Default to H8/300H.
20398         * config/h8300/h8300.c (shift_alg_qi): Drop H8/300 support.
20399         (shift_alg_hi, shift_alg_si): Similarly.
20400         (h8300_option_overrides): Similarly.  Default to H8/300H.  If
20401         compiling for H8/S, then turn off H8/300H.  Do not update the
20402         shift_alg tables for H8/300 port.
20403         (h8300_emit_stack_adjustment): Remove support for H8/300.  Simplify
20404         where possible.
20405         (push, split_adds_subs, h8300_rtx_costs): Likewise.
20406         (h8300_print_operand, compute_mov_length): Likewise.
20407         (output_plussi, compute_plussi_length): Likewise.
20408         (compute_plussi_cc, output_logical_op): Likewise.
20409         (compute_logical_op_length, compute_logical_op_cc): Likewise.
20410         (get_shift_alg, h8300_shift_needs_scratch): Likewise.
20411         (output_a_shift, compute_a_shift_length): Likewise.
20412         (output_a_rotate, compute_a_rotate_length): Likewise.
20413         (output_simode_bld, h8300_hard_regno_mode_ok): Likewise.
20414         (h8300_modes_tieable_p, h8300_return_in_memory): Likewise.
20415         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
20416         (attr_cpu, TARGET_H8300): Remove.
20417         (TARGET_DEFAULT): Update.
20418         (UNITS_PER_WORD, PARM_BOUNDARY): Simplify where possible.
20419         (BIGGEST_ALIGNMENT, STACK_BOUNDARY): Likewise.
20420         (CONSTANT_ADDRESS_P, MOVE_MAX, Pmode): Likewise.
20421         (SIZE_TYPE, POINTER_SIZE, ASM_WORD_OP): Likewise.
20422         * config/h8300/h8300.md: Simplify patterns throughout.
20423         * config/h8300/t-h8300: Update multilib configuration.
20424         
20425         * config/h8300/h8300.h (LINK_SPEC): Remove.
20426         (USER_LABEL_PREFIX): Likewise.
20428         * config/h8300/h8300.c (h8300_asm_named_section): Remove.
20429         (h8300_option_override): Remove remnants of COFF support.
20431 2020-05-07  Alan Modra  <amodra@gmail.com>
20433         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Replace
20434         set_rtx_cost with set_src_cost.
20435         * tree-switch-conversion.c (bit_test_cluster::emit): Likewise.
20437 2020-05-07  Kewen Lin  <linkw@gcc.gnu.org>
20439         * tree-vect-stmts.c (vectorizable_load): Check alignment to avoid
20440         redundant half vector handlings for no peeling gaps.
20442 2020-05-07  Giuliano Belinassi  <giuliano.belinassi@usp.br>
20444         * tree-ssa-operands.c (operands_scanner): New class.
20445         (operands_bitmap_obstack): Remove.
20446         (n_initialized): Remove.
20447         (build_uses): Move to operands_scanner class.
20448         (build_vuse): Same as above.
20449         (build_vdef): Same as above.
20450         (verify_ssa_operands): Same as above.
20451         (finalize_ssa_uses): Same as above.
20452         (cleanup_build_arrays): Same as above.
20453         (finalize_ssa_stmt_operands): Same as above.
20454         (start_ssa_stmt_operands): Same as above.
20455         (append_use): Same as above.
20456         (append_vdef): Same as above.
20457         (add_virtual_operand): Same as above.
20458         (add_stmt_operand): Same as above.
20459         (get_mem_ref_operands): Same as above.
20460         (get_tmr_operands): Same as above.
20461         (maybe_add_call_vops): Same as above.
20462         (get_asm_stmt_operands): Same as above.
20463         (get_expr_operands): Same as above.
20464         (parse_ssa_operands): Same as above.
20465         (finalize_ssa_defs): Same as above.
20466         (build_ssa_operands): Same as above, plus create a C-like wrapper.
20467         (update_stmt_operands): Create an instance of operands_scanner.
20469 2020-05-07  Richard Biener  <rguenther@suse.de>
20471         PR ipa/94947
20472         * tree-ssa-structalias.c (refered_from_nonlocal_fn): Use
20473         DECL_EXTERNAL || TREE_PUBLIC instead of externally_visible.
20474         (refered_from_nonlocal_var): Likewise.
20475         (ipa_pta_execute): Likewise.
20477 2020-05-07  Erick Ochoa <erick.ochoa@theobroma-systems.com>
20479         * gcc/tree-ssa-struct-alias.c: Fix comments
20481 2020-05-07  Martin Liska  <mliska@suse.cz>
20483         * doc/invoke.texi: Fix 2 optindex entries.
20485 2020-05-07  Richard Biener  <rguenther@suse.de>
20487         PR middle-end/94703
20488         * tree-core.h (tree_decl_common::gimple_reg_flag): Rename ...
20489         (tree_decl_common::not_gimple_reg_flag): ... to this.
20490         * tree.h (DECL_GIMPLE_REG_P): Rename ...
20491         (DECL_NOT_GIMPLE_REG_P): ... to this.
20492         * gimple-expr.c (copy_var_decl): Copy DECL_NOT_GIMPLE_REG_P.
20493         (create_tmp_reg): Simplify.
20494         (create_tmp_reg_fn): Likewise.
20495         (is_gimple_reg): Check DECL_NOT_GIMPLE_REG_P for all regs.
20496         * gimplify.c (create_tmp_from_val): Simplify.
20497         (gimplify_bind_expr): Likewise.
20498         (gimplify_compound_literal_expr): Likewise.
20499         (gimplify_function_tree): Likewise.
20500         (prepare_gimple_addressable): Set DECL_NOT_GIMPLE_REG_P.
20501         * asan.c (create_odr_indicator): Do not clear DECL_GIMPLE_REG_P.
20502         (asan_add_global): Copy it.
20503         * cgraphunit.c (cgraph_node::expand_thunk): Force args
20504         to be GIMPLE regs.
20505         * function.c (gimplify_parameters): Copy
20506         DECL_NOT_GIMPLE_REG_P.
20507         * ipa-param-manipulation.c
20508         (ipa_param_body_adjustments::common_initialization): Simplify.
20509         (ipa_param_body_adjustments::reset_debug_stmts): Copy
20510         DECL_NOT_GIMPLE_REG_P.
20511         * omp-low.c (lower_omp_for_scan): Do not set DECL_GIMPLE_REG_P.
20512         * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
20513         * tree-cfg.c (make_blocks_1): Simplify.
20514         (verify_address): Do not verify DECL_GIMPLE_REG_P setting.
20515         * tree-eh.c (lower_eh_constructs_2): Simplify.
20516         * tree-inline.c (declare_return_variable): Adjust and
20517         generalize.
20518         (copy_decl_to_var): Copy DECL_NOT_GIMPLE_REG_P.
20519         (copy_result_decl_to_var): Likewise.
20520         * tree-into-ssa.c (pass_build_ssa::execute): Adjust comment.
20521         * tree-nested.c (create_tmp_var_for): Simplify.
20522         * tree-parloops.c (separate_decls_in_region_name): Copy
20523         DECL_NOT_GIMPLE_REG_P.
20524         * tree-sra.c (create_access_replacement): Adjust and
20525         generalize partial def support.
20526         * tree-ssa-forwprop.c (pass_forwprop::execute): Set
20527         DECL_NOT_GIMPLE_REG_P on decls we introduce partial defs on.
20528         * tree-ssa.c (maybe_optimize_var): Handle clearing of
20529         TREE_ADDRESSABLE and setting/clearing DECL_NOT_GIMPLE_REG_P
20530         independently.
20531         * lto-streamer-out.c (hash_tree): Hash DECL_NOT_GIMPLE_REG_P.
20532         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream
20533         DECL_NOT_GIMPLE_REG_P.
20534         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
20535         * cfgexpand.c (avoid_type_punning_on_regs): New.
20536         (discover_nonconstant_array_refs): Call
20537         avoid_type_punning_on_regs to avoid unsupported mode punning.
20539 2020-05-07  Alex Coplan  <alex.coplan@arm.com>
20541         * config/arm/arm.c (arm_add_stmt_cost): Fix declaration, remove class
20542         from definition.
20544 2020-05-07  Richard Biener  <rguenther@suse.de>
20546         PR tree-optimization/57359
20547         * tree-ssa-loop-im.c (im_mem_ref::indep_loop): Remove.
20548         (in_mem_ref::dep_loop): Repurpose.
20549         (LOOP_DEP_BIT): Remove.
20550         (enum dep_kind): New.
20551         (enum dep_state): Likewise.
20552         (record_loop_dependence): New function to populate the
20553         dependence cache.
20554         (query_loop_dependence): New function to query the dependence
20555         cache.
20556         (memory_accesses::refs_in_loop): Rename to ...
20557         (memory_accesses::refs_loaded_in_loop): ... this and change to
20558         only record loads.
20559         (outermost_indep_loop): Adjust.
20560         (mem_ref_alloc): Likewise.
20561         (gather_mem_refs_stmt): Likewise.
20562         (mem_refs_may_alias_p): Add tbaa_p parameter and pass it down.
20563         (struct sm_aux): New.
20564         (execute_sm): Split code generation on exits, record state
20565         into new hash-map.
20566         (enum sm_kind): New.
20567         (execute_sm_exit): Exit code generation part.
20568         (sm_seq_push_down): Helper for sm_seq_valid_bb performing
20569         dependence checking on stores reached from exits.
20570         (sm_seq_valid_bb): New function gathering SM stores on exits.
20571         (hoist_memory_references): Re-implement.
20572         (refs_independent_p): Add tbaa_p parameter and pass it down.
20573         (record_dep_loop): Remove.
20574         (ref_indep_loop_p_1): Fold into ...
20575         (ref_indep_loop_p): ... this and generalize for three kinds
20576         of dependence queries.
20577         (can_sm_ref_p): Adjust according to hoist_memory_references
20578         changes.
20579         (store_motion_loop): Don't do anything if the set of SM
20580         candidates is empty.
20581         (tree_ssa_lim_initialize): Adjust.
20582         (tree_ssa_lim_finalize): Likewise.
20584 2020-05-07  Eric Botcazou  <ebotcazou@adacore.com>
20585             Pierre-Marie de Rodat  <derodat@adacore.com>
20587         * dwarf2out.c (add_data_member_location_attribute): Take into account
20588         the variant part offset in the computation of the data bit offset.
20589         (add_bit_offset_attribute): Remove CTX parameter.  Pass a new context
20590         in the call to field_byte_offset.
20591         (gen_field_die): Adjust call to add_bit_offset_attribute and remove
20592         confusing assertion.
20593         (analyze_variant_discr): Deal with boolean subtypes.
20595 2020-05-07  Martin Liska  <mliska@suse.cz>
20597         * lto-wrapper.c: Split arguments of MAKE environment
20598         variable.
20600 2020-05-07  Uroš Bizjak  <ubizjak@gmail.com>
20602         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
20603         TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
20604         fenv_var and new_fenv_var.
20606 2020-05-06  Jakub Jelinek  <jakub@redhat.com>
20608         PR target/93069
20609         * config/i386/subst.md (store_mask_constraint, store_mask_predicate):
20610         Remove.
20611         (avx512dq_vextract<shuffletype>64x2_1_maskm,
20612         avx512f_vextract<shuffletype>32x4_1_maskm,
20613         vec_extract_lo_<mode>_maskm, vec_extract_hi_<mode>_maskm): Remove.
20614         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>): Split
20615         into ...
20616         (*avx512dq_vextract<shuffletype>64x2_1,
20617         avx512dq_vextract<shuffletype>64x2_1_mask): ... these new
20618         define_insns.  Even in the masked variant allow memory output but in
20619         that case use 0 rather than 0C constraint on the source of masked-out
20620         elts.
20621         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Split
20622         into ...
20623         (*avx512f_vextract<shuffletype>32x4_1,
20624         avx512f_vextract<shuffletype>32x4_1_mask): ... these new define_insns.
20625         Even in the masked variant allow memory output but in that case use
20626         0 rather than 0C constraint on the source of masked-out elts.
20627         (vec_extract_lo_<mode><mask_name>): Split into ...
20628         (vec_extract_lo_<mode>, vec_extract_lo_<mode>_mask): ... these new
20629         define_insns.  Even in the masked variant allow memory output but in
20630         that case use 0 rather than 0C constraint on the source of masked-out
20631         elts.
20632         (vec_extract_hi_<mode><mask_name>): Split into ...
20633         (vec_extract_hi_<mode>, vec_extract_hi_<mode>_mask): ... these new
20634         define_insns.  Even in the masked variant allow memory output but in
20635         that case use 0 rather than 0C constraint on the source of masked-out
20636         elts.
20638 2020-05-06  qing zhao  <qing.zhao@oracle.com>
20640         PR c/94230
20641         * common.opt: Add -flarge-source-files.
20642         * doc/invoke.texi: Document it.
20643         * toplev.c (process_options): set line_table->default_range_bits
20644         to 0 when flag_large_source_files is true.
20646 2020-05-06  Uroš Bizjak  <ubizjak@gmail.com>
20648         PR target/94913
20649         * config/i386/predicates.md (add_comparison_operator): New predicate.
20650         * config/i386/i386.md (compare->add splitter): New splitters.
20652 2020-05-06  Richard Biener  <rguenther@suse.de>
20654         * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
20655         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
20656         Remove slp_instance parameter, just iterate over all scalar stmts.
20657         (vect_slp_analyze_instance_dependence): Adjust and likewise.
20658         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Remove unused BB
20659         parameter.
20660         (vect_schedule_slp): Just iterate over all scalar stmts.
20661         (vect_supported_load_permutation_p): Adjust.
20662         (vect_transform_slp_perm_load): Remove slp_instance parameter,
20663         instead use the number of lanes in the node as group size.
20664         * tree-vect-stmts.c (vect_model_load_cost): Get vectorization
20665         factor instead of slp_instance as parameter.
20666         (vectorizable_load): Adjust.
20668 2020-05-06  Andreas Schwab  <schwab@suse.de>
20670         * config/aarch64/driver-aarch64.c: Include "aarch64-protos.h".
20671         (aarch64_get_extension_string_for_isa_flags): Don't declare.
20673 2020-05-06  Richard Biener  <rguenther@suse.de>
20675         PR middle-end/94964
20676         * cfgloopmanip.c (create_preheader): Require non-complex
20677         preheader edge for CP_SIMPLE_PREHEADERS.
20679 2020-05-06  Richard Biener  <rguenther@suse.de>
20681         PR tree-optimization/94963
20682         * tree-ssa-loop-im.c (execute_sm_if_changed): Remove
20683         no-warning marking of the conditional store.
20684         (execute_sm): Instead mark the uninitialized state
20685         on loop entry to be not warned about.
20687 2020-05-06  Hongtao Liu  <hongtao.liu@intel.com>
20689         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_TSXLDTRK_SET,
20690         OPTION_MASK_ISA2_TSXLDTRK_UNSET): New macros.
20691         * config.gcc: Add tsxldtrkintrin.h to extra_headers.
20692         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20693         TSXLDTRK.
20694         * config/i386/i386-builtin.def: Add new builtins.
20695         * config/i386/i386-c.c (ix86_target_macros_internal): Define
20696         __TSXLDTRK__.
20697         * config/i386/i386-options.c (ix86_target_string): Add
20698         -mtsxldtrk.
20699         (ix86_valid_target_attribute_inner_p): Add attribute tsxldtrk.
20700         * config/i386/i386.h (TARGET_TSXLDTRK, TARGET_TSXLDTRK_P):
20701         New.
20702         * config/i386/i386.md (define_c_enum "unspec"): Add
20703         UNSPECV_SUSLDTRK, UNSPECV_RESLDTRK.
20704         (TSXLDTRK): New define_int_iterator.
20705         ("<tsxldtrk>"): New define_insn.
20706         * config/i386/i386.opt: Add -mtsxldtrk.
20707         * config/i386/immintrin.h: Include tsxldtrkintrin.h.
20708         * config/i386/tsxldtrkintrin.h: New.
20709         * doc/invoke.texi: Document -mtsxldtrk.
20711 2020-05-06  Jakub Jelinek  <jakub@redhat.com>
20713         PR tree-optimization/94921
20714         * match.pd (~(~X - Y) -> X + Y, ~(~X + Y) -> X - Y): New
20715         simplifications.
20717 2020-05-06  Richard Biener  <rguenther@suse.de>
20719         PR tree-optimization/94965
20720         * tree-vect-stmts.c (vectorizable_load): Fix typo.
20722 2020-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20724         * doc/install.texi: Replace Sun with Solaris as appropriate.
20725         (Tools/packages necessary for building GCC, Perl version between
20726         5.6.1 and 5.6.24): Remove Solaris 8 reference.
20727         (Installing GCC: Binaries, Solaris 2 (SPARC, Intel)): Remove
20728         TGCware reference.
20729         (Specific, i?86-*-solaris2*): Update version references for
20730         Solaris 11.3 and later.  Remove gas 2.26 caveat.
20731         (Specific, *-*-solaris2*): Update version references for
20732         Solaris 11.3 and later.  Remove boehm-gc reference.
20733         Document GMP, MPFR caveats on Solaris 11.3.
20734         (Specific, sparc-sun-solaris2*): Update Solaris 9 references.
20735         (Specific, sparc64-*-solaris2*): Likewise.
20736         Document --build requirement.
20738 2020-05-06  Jakub Jelinek  <jakub@redhat.com>
20740         PR target/94950
20741         * config/riscv/riscv-builtins.c (riscv_atomic_assign_expand_fenv): Use
20742         TARGET_EXPR instead of MODIFY_EXPR for first assignment to old_flags.
20744         PR rtl-optimization/94873
20745         * combine.c (combine_instructions): Don't optimize using REG_EQUAL
20746         note if SET_SRC (set) has side-effects.
20748 2020-05-06  Hongtao Liu  <hongtao.liu@intel.com>
20749             Wei Xiao  <wei3.xiao@intel.com>
20751         * common/config/i386/i386-common.c (OPTION_MASK_ISA2_SERIALIZE_SET,
20752         OPTION_MASK_ISA2_SERIALIZE_UNSET): New macros.
20753         (ix86_handle_option): Handle -mserialize.
20754         * config.gcc (serializeintrin.h): New header file.
20755         * config/i386/cpuid.h (bit_SERIALIZE): New bit.
20756         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20757         -mserialize.
20758         * config/i386/i386-builtin.def: Add new builtin.
20759         * config/i386/i386-c.c (__SERIALIZE__): New macro.
20760         * config/i386/i386-options.c (ix86_target_opts_isa2_opts):
20761           Add -mserialize.
20762         * (ix86_valid_target_attribute_inner_p): Add target attribute
20763         * for serialize.
20764         * config/i386/i386.h (TARGET_SERIALIZE, TARGET_SERIALIZE_P):
20765           New macros.
20766         * config/i386/i386.md (UNSPECV_SERIALIZE): New unspec.
20767           (serialize): New define_insn.
20768         * config/i386/i386.opt (mserialize): New option
20769         * config/i386/immintrin.h: Include serailizeintrin.h.
20770         * config/i386/serializeintrin.h: New header file.
20771         * doc/invoke.texi: Add documents for -mserialize.
20773 2020-05-06  Richard Biener  <rguenther@suse.de>
20775         * tree-cfg.c (verify_gimple_assign_unary): Adjust integer
20776         to/from pointer conversion checking.
20778 2020-05-05  Michael Meissner  <meissner@linux.ibm.com>
20780         * config/rs6000/rs6000-builtin.def: Delete changes meant for a
20781         private branch.
20782         * config/rs6000/rs6000-c.c: Likewise.
20783         * config/rs6000/rs6000-call.c: Likewise.
20784         * config/rs6000/rs6000.c: Likewise.
20786 2020-05-05  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20788         * config/rtems.h (RTEMS_STARTFILE_SPEC): Define if undefined.
20789         (RTEMS_ENDFILE_SPEC): Likewise.
20790         (STARTFILE_SPEC): Update comment.  Add RTEMS_STARTFILE_SPEC.
20791         (ENDFILE_SPEC): Add RTEMS_ENDFILE_SPEC.
20792         (LIB_SPECS): Support -nodefaultlibs option.
20793         * config/or1k/rtems.h (RTEMS_STARTFILE_SPEC): Define.
20794         (RTEMS_ENDFILE_SPEC): Likewise.
20795         * config/rs6000/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
20796         (RTEMS_ENDFILE_SPEC): Likewise.
20797         * config/v850/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
20798         (RTEMS_ENDFILE_SPEC): Likewise.
20800 2020-05-05  Dimitar Dimitrov  <dimitar@dinux.eu>
20802         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Remove.
20803         (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Remove.
20805 2020-05-05  Dimitar Dimitrov  <dimitar@dinux.eu>
20807         * config/pru/pru.h: Mark R3.w0 as caller saved.
20809 2020-05-05  Dimitar Dimitrov  <dimitar@dinux.eu>
20811         * config/pru/pru.c (pru_emit_doloop): Use new gen_doloop_end_internal
20812         and gen_doloop_begin_internal.
20813         (pru_reorg_loop): Use gen_pruloop with mode.
20814         * config/pru/pru.md: Use new @insn syntax.
20816 2020-05-05  Dimitar Dimitrov  <dimitar@dinux.eu>
20818         * config/pru/pru.c (pru_print_operand): Fix fall through comment.
20820 2020-05-05  Uroš Bizjak  <ubizjak@gmail.com>
20822         * config/i386/i386.md (fixuns_trunc<mode>si2): Use
20823         "clobber (scratch:M)" instad of "clobber (match_scratch:M N)".
20824         (addqi3_cconly_overflow): Ditto.
20825         (umulv<mode>4): Ditto.
20826         (<s>mul<mode>3_highpart): Ditto.
20827         (tls_global_dynamic_32): Ditto.
20828         (tls_local_dynamic_base_32): Ditto.
20829         (atanxf2): Ditto.
20830         (asinxf2): Ditto.
20831         (acosxf2): Ditto.
20832         (logxf2): Ditto.
20833         (log10xf2): Ditto.
20834         (log2xf2): Ditto.
20835         (*adddi_4): Remove "m" constraint from scratch operand.
20836         (*add<mode>_4): Ditto.
20838 2020-05-05  Jakub Jelinek  <jakub@redhat.com>
20840         PR rtl-optimization/94516
20841         * postreload.c (reload_cse_simplify): When replacing sp = sp + const
20842         with sp = reg, add REG_EQUAL note with sp + const.
20843         * combine-stack-adj.c (try_apply_stack_adjustment): Change return
20844         type from int to bool.  Add LIVE and OTHER_INSN arguments.  Undo
20845         postreload sp = sp + const to sp = reg optimization if needed and
20846         possible.
20847         (combine_stack_adjustments_for_block): Add LIVE argument.  Handle
20848         reg = sp insn with sp + const REG_EQUAL note.  Adjust
20849         try_apply_stack_adjustment caller, call
20850         df_simulate_initialize_forwards and df_simulate_one_insn_forwards.
20851         (combine_stack_adjustments): Allocate and free LIVE bitmap,
20852         adjust combine_stack_adjustments_for_block caller.
20854 2020-05-05  Martin Liska  <mliska@suse.cz>
20856         PR gcov-profile/93623
20857         * tree-cfg.c (stmt_can_terminate_bb_p): Update comment to reflect
20858         reality.
20860 2020-05-05  Martin Liska  <mliska@suse.cz>
20862         * opt-functions.awk (opt_args_non_empty): New function.
20863         * opt-read.awk: Use the function for various option arguments.
20865 2020-05-05  Martin Liska  <mliska@suse.cz>
20867         PR driver/94330
20868         * lto-wrapper.c (run_gcc): When using -flto=jobserver,
20869         report warning when the jobserver is not detected.
20871 2020-05-05  Martin Liska  <mliska@suse.cz>
20873         PR gcov-profile/94636
20874         * gcov.c (main): Print total lines summary at the end.
20875         (generate_results): Expect file_name always being non-null.
20876         Print newline after intermediate file is printed in order to align with
20877         what we do for normal files.
20879 2020-05-05  Martin Liska  <mliska@suse.cz>
20881         * dumpfile.c (dump_switch_p): Change return type
20882         and print option suggestion.
20883         * dumpfile.h: Change return type.
20884         * opts-global.c (handle_common_deferred_options):
20885         Move error into dump_switch_p function.
20887 2020-05-05  Martin Liska  <mliska@suse.cz>
20889         PR c/92472
20890         * alloc-pool.h: Use const for some arguments.
20891         * bitmap.h: Likewise.
20892         * mem-stats.h: Likewise.
20893         * sese.h (get_entry_bb): Likewise.
20894         (get_exit_bb): Likewise.
20896 2020-05-05  Richard Biener  <rguenther@suse.de>
20898         * tree-vect-slp.c (struct vdhs_data): New.
20899         (vect_detect_hybrid_slp): New walker.
20900         (vect_detect_hybrid_slp): Rewrite.
20902 2020-05-05  Richard Biener  <rguenther@suse.de>
20904         PR ipa/94947
20905         * tree-ssa-structalias.c (ipa_pta_execute): Use
20906         varpool_node::externally_visible_p ().
20907         (refered_from_nonlocal_var): Likewise.
20909 2020-05-05  Eric Botcazou  <ebotcazou@adacore.com>
20911         * gcc.c (LTO_PLUGIN_SPEC): Define if not already.
20912         (LINK_PLUGIN_SPEC): Execute LTO_PLUGIN_SPEC.
20913         * config/vxworks.h (LTO_PLUGIN_SPEC): Define.
20915 2020-05-05  Eric Botcazou  <ebotcazou@adacore.com>
20917         * gimplify.c (gimplify_init_constructor): Do not put the constructor
20918         into static memory if it is not complete.
20920 2020-05-05  Richard Biener  <rguenther@suse.de>
20922         PR tree-optimization/94949
20923         * tree-ssa-loop-im.c (execute_sm): Check whether we use
20924         the multithreaded model or always compute the stored value
20925         before eliding a load.
20927 2020-05-05  Alex Coplan  <alex.coplan@arm.com>
20929         * config/aarch64/aarch64.md (*one_cmpl_zero_extend): New.
20931 2020-05-05  Jakub Jelinek  <jakub@redhat.com>
20933         PR tree-optimization/94800
20934         * match.pd (X + (X << C) to X * (1 + (1 << C)),
20935         (X << C1) + (X << C2) to X * ((1 << C1) + (1 << C2))): New
20936         canonicalizations.
20938         PR target/94942
20939         * config/i386/mmx.md (*vec_dupv4hi): Use xYw constraints instead of Yv.
20941         PR tree-optimization/94914
20942         * match.pd ((((type)A * B) >> prec) != 0 to .MUL_OVERFLOW(A, B) != 0):
20943         New simplification.
20945 2020-05-05  Uroš Bizjak  <ubizjak@gmail.com>
20947         * config/i386/i386.md (*testqi_ext_3): Use
20948         int_nonimmediate_operand instead of manual mode checks.
20949         (*x86_mov<SWI48:mode>cc_0_m1_neg_leu<SWI:mode>):
20950         Use int_nonimmediate_operand predicate.  Rewrite
20951         define_insn_and_split pattern to a combine pass splitter.
20953 2020-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20955         * configure.ac <i[34567]86-*-*>: Add --32 to tls_as_opt on Solaris.
20956         * configure: Regenerate.
20958 2020-05-05  Jakub Jelinek  <jakub@redhat.com>
20960         PR target/94460
20961         * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
20962         ssse3_ph<plusminus_mnemonic>wv8hi3, ssse3_ph<plusminus_mnemonic>wv4hi3,
20963         avx2_ph<plusminus_mnemonic>dv8si3, ssse3_ph<plusminus_mnemonic>dv4si3,
20964         ssse3_ph<plusminus_mnemonic>dv2si3): Simplify RTL patterns.
20966 2020-05-04  Clement Chigot  <clement.chigot@atos.net>
20967             David Edelsohn  <dje.gcc@gmail.com>
20969         * config/rs6000/rs6000-call.c (rs6000_init_builtins): Override explicit
20970         for fmodl, frexpl, ldexpl and modfl builtins.
20972 2020-05-04  Richard Sandiford  <richard.sandiford@arm.com>
20974         PR middle-end/94941
20975         * internal-fn.c (expand_load_lanes_optab_fn): Emit a move if the
20976         chosen lhs is different from the gcall lhs.
20977         (expand_mask_load_optab_fn): Likewise.
20978         (expand_gather_load_optab_fn): Likewise.
20980 2020-05-04  Uroš Bizjak  <ubizjak@gmail.com>
20982         PR target/94795
20983         * config/i386/i386.md (*neg<mode>_ccc): New insn pattern.
20984         (EQ compare->LTU compare splitter): New splitter.
20985         (NE compare->NEG splitter): Ditto.
20987 2020-05-04  Marek Polacek  <polacek@redhat.com>
20989         Revert:
20990         2020-04-30  Marek Polacek  <polacek@redhat.com>
20992         PR c++/94775
20993         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
20994         (check_aligned_type): Check if TYPE_USER_ALIGN match.
20996 2020-05-04  Richard Biener  <rguenther@suse.de>
20998         PR tree-optimization/93891
20999         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fall back to
21000         the original reference tree for assessing access alignment.
21002 2020-05-04  Richard Biener  <rguenther@suse.de>
21004         PR tree-optimization/39612
21005         * tree-ssa-loop-im.c (im_mem_ref::loaded): New member.
21006         (set_ref_loaded_in_loop): New.
21007         (mark_ref_loaded): Likewise.
21008         (gather_mem_refs_stmt): Call mark_ref_loaded for loads.
21009         (execute_sm): Avoid issueing a load when it was not there.
21010         (execute_sm_if_changed): Avoid issueing warnings for the
21011         conditional store.
21013 2020-05-04  Martin Jambor  <mjambor@suse.cz>
21015         PR ipa/93385
21016         * tree-inline.c (tree_function_versioning): Leave any type conversion
21017         of replacements to setup_one_parameter and its friend
21018         force_value_to_type.
21020 2020-05-04  Uroš Bizjak  <ubizjak@gmail.com>
21022         PR target/94650
21023         * config/i386/predicates.md (shr_comparison_operator): New predicate.
21024         * config/i386/i386.md (compare->shr splitter): New splitters.
21026 2020-05-04  Jakub Jelinek  <jakub@redhat.com>
21028         PR tree-optimization/94718
21029         * match.pd ((X < 0) != (Y < 0) into (X ^ Y) < 0): New simplification.
21031         PR tree-optimization/94718
21032         * match.pd (bitop (convert @0) (convert? @1)): For GIMPLE, if we can,
21033         replace two nop conversions on bit_{and,ior,xor} argument
21034         and result with just one conversion on the result or another argument.
21036         PR tree-optimization/94718
21037         * fold-const.c (fold_binary_loc): Move (X & C) eqne (Y & C)
21038         -> (X ^ Y) & C eqne 0 optimization to ...
21039         * match.pd ((X & C) op (Y & C) into (X ^ Y) & C op 0): ... here.
21041         * opts.c (get_option_html_page): Instead of hardcoding a list of
21042         options common between C/C++ and Fortran only use gfortran/
21043         documentation for warnings that have CL_Fortran set but not
21044         CL_C or CL_CXX.
21046 2020-05-03  Uroš Bizjak  <ubizjak@gmail.com>
21048         * config/i386/i386-expand.c (ix86_expand_int_movcc):
21049         Use plus_constant instead of gen_rtx_PLUS with GEN_INT.
21050         (emit_memmov): Ditto.
21051         (emit_memset): Ditto.
21052         (ix86_expand_strlensi_unroll_1): Ditto.
21053         (release_scratch_register_on_entry): Ditto.
21054         (gen_frame_set): Ditto.
21055         (ix86_emit_restore_reg_using_pop): Ditto.
21056         (ix86_emit_outlined_ms2sysv_restore): Ditto.
21057         (ix86_expand_epilogue): Ditto.
21058         (ix86_expand_split_stack_prologue): Ditto.
21059         * config/i386/i386.md (push immediate splitter): Ditto.
21060         (strmov): Ditto.
21061         (strset): Ditto.
21063 2020-05-02  Iain Sandoe  <iain@sandoe.co.uk>
21065         PR translation/93861
21066         * config/darwin-driver.c (darwin_driver_init): Adjust spelling in
21067         a warning.
21069 2020-05-02  Jakub Jelinek  <jakub@redhat.com>
21071         * config/tilegx/tilegx.md
21072         (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Use <I124MODE:n>
21073         rather than just <n>.
21075 2020-05-01  H.J. Lu  <hongjiu.lu@intel.com>
21077         PR target/93492
21078         * cfgexpand.c (pass_expand::execute): Set crtl->patch_area_size
21079         and crtl->patch_area_entry.
21080         * emit-rtl.h (rtl_data): Add patch_area_size and patch_area_entry.
21081         * opts.c (common_handle_option): Limit
21082         function_entry_patch_area_size and function_entry_patch_area_start
21083         to USHRT_MAX.  Fix a typo in error message.
21084         * varasm.c (assemble_start_function): Use crtl->patch_area_size
21085         and crtl->patch_area_entry.
21086         * doc/invoke.texi: Document the maximum value for
21087         -fpatchable-function-entry.
21089 2020-05-01  Iain Sandoe  <iain@sandoe.co.uk>
21091         * config/i386/darwin.h: Repair SUBTARGET_INIT_BUILTINS.
21092         Override SUBTARGET_SHADOW_OFFSET macro.
21094 2020-05-01  Andreas Tobler  <andreast@gcc.gnu.org>
21096         * config/i386/i386.h: Define a new macro: SUBTARGET_SHADOW_OFFSET.
21097         * config/i386/i386.c (ix86_asan_shadow_offset): Use this macro.
21098         * config/i386/darwin.h: Override the SUBTARGET_SHADOW_OFFSET macro.
21099         * config/i386/freebsd.h: Likewise.
21100         * config/freebsd.h (LIBASAN_EARLY_SPEC): Define.
21101         LIBTSAN_EARLY_SPEC): Likewise. (LIBLSAN_EARLY_SPEC): Likewise.
21103 2020-04-30  Alexandre Oliva <oliva@adacore.com>
21105         * doc/sourcebuild.texi (Effective-Target Keywords): Document
21106         the newly-introduced fileio effective target.
21108 2020-04-30  Richard Sandiford  <richard.sandiford@arm.com>
21110         PR rtl-optimization/94740
21111         * cse.c (cse_process_notes_1): Replace with...
21112         (cse_process_note_1): ...this new function, acting as a
21113         simplify_replace_fn_rtx callback to process_note.  Handle only
21114         REGs and MEMs directly.  Validate the MEM if cse_process_note
21115         changes its address.
21116         (cse_process_notes): Replace with...
21117         (cse_process_note): ...this new function.
21118         (cse_extended_basic_block): Update accordingly, iterating over
21119         the register notes and passing individual notes to cse_process_note.
21121 2020-04-30  Carl Love  <cel@us.ibm.com>
21123         * config/rs6000/emmintrin.h (_mm_movemask_epi8): Fix comment.
21125 2020-04-30  Martin Jambor  <mjambor@suse.cz>
21127         PR ipa/94856
21128         * cgraph.c (clone_of_p): Also consider thunks whih had their bodies
21129         saved by the inliner and thunks which had their call inlined.
21130         * ipa-inline-transform.c (save_inline_function_body): Fill in
21131         former_clone_of of new body holders.
21133 2020-04-30  Jakub Jelinek  <jakub@redhat.com>
21135         * BASE-VER: Set to 11.0.0.
21137 2020-04-30  Jonathan Wakely  <jwakely@redhat.com>
21139         * pretty-print.c (pp_take_prefix): Fix spelling in comment.
21141 2020-04-30  Marek Polacek  <polacek@redhat.com>
21143         PR c++/94775
21144         * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
21145         (check_aligned_type): Check if TYPE_USER_ALIGN match.
21147 2020-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21149         * config/aarch64/aarch64.h (TARGET_OUTLINE_ATOMICS): Define.
21150         * config/aarch64/aarch64.opt (moutline-atomics): Change to Int variable.
21151         * doc/invoke.texi (moutline-atomics): Document as on by default.
21153 2020-04-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21155         PR target/94748
21156         * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Remove
21157         the check for NOTE_INSN_DELETED_LABEL.
21159 2020-04-30  Jakub Jelinek  <jakub@redhat.com>
21161         * configure.ac (--with-documentation-root-url,
21162         --with-changes-root-url): Diagnose URL not ending with /,
21163         use AC_DEFINE_UNQUOTED instead of AC_SUBST.
21164         * opts.h (get_changes_url): Remove.
21165         * opts.c (get_changes_url): Remove.
21166         * Makefile.in (CFLAGS-opts.o): Don't add -DDOCUMENTATION_ROOT_URL
21167         or -DCHANGES_ROOT_URL.
21168         * doc/install.texi (--with-documentation-root-url,
21169         --with-changes-root-url): Document.
21170         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Don't call
21171         get_changes_url and free, change url variable type to const char * and
21172         set it to CHANGES_ROOT_URL "gcc-10/changes.html#empty_base".
21173         * config/s390/s390.c (s390_function_arg_vector,
21174         s390_function_arg_float): Likewise.
21175         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
21176         Likewise.
21177         * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
21178         Likewise.
21179         * config.in: Regenerate.
21180         * configure: Regenerate.
21182 2020-04-30  Christophe Lyon  <christophe.lyon@linaro.org>
21184         PR target/57002
21185         * config/arm/arm.c (isr_attribute_args): Remove duplicate entries.
21187 2020-04-30  Andreas Krebbel  <krebbel@linux.ibm.com>
21189         * config/s390/constraints.md ("j>f", "jb4"): New constraints.
21190         * config/s390/vecintrin.h (vec_load_len_r, vec_store_len_r): Fix
21191         macro definitions.
21192         * config/s390/vx-builtins.md ("vlrlrv16qi", "vstrlrv16qi"): Add a
21193         separate expander.
21194         ("*vlrlrv16qi", "*vstrlrv16qi"): Add alternative for vl/vst.
21195         Change constraint for vlrl/vstrl to jb4.
21197 2020-04-30  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
21199         * var-tracking.c (vt_initialize): Move variables pre and post
21200         into inner block and initialize both in order to fix warning
21201         about uninitialized use.  Remove unnecessary checks for
21202         frame_pointer_needed.
21204 2020-04-30  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
21206         * toplev.c (output_stack_usage_1): Ensure that first
21207         argument to fprintf is not null.
21209 2020-04-29  Jakub Jelinek  <jakub@redhat.com>
21211         * configure.ac (-with-changes-root-url): New configure option,
21212         defaulting to https://gcc.gnu.org/.
21213         * Makefile.in (CFLAGS-opts.o): Define CHANGES_ROOT_URL for
21214         opts.c.
21215         * pretty-print.c (get_end_url_string): New function.
21216         (pp_format): Handle %{ and %} for URLs.
21217         (pp_begin_url): Use pp_string instead of pp_printf.
21218         (pp_end_url): Use get_end_url_string.
21219         * opts.h (get_changes_url): Declare.
21220         * opts.c (get_changes_url): New function.
21221         * config/rs6000/rs6000-call.c: Include opts.h.
21222         (rs6000_discover_homogeneous_aggregate): Use %{in GCC 10.1%} instead
21223         of just in GCC 10.1 in diagnostics and add URL.
21224         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Likewise.
21225         * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
21226         Likewise.
21227         * config/s390/s390.c (s390_function_arg_vector,
21228         s390_function_arg_float): Likewise.
21229         * configure: Regenerated.
21231         PR target/94704
21232         * config/s390/s390.c (s390_function_arg_vector,
21233         s390_function_arg_float): Use DECL_FIELD_ABI_IGNORED instead of
21234         cxx17_empty_base_field_p.  In -Wpsabi diagnostics use the type
21235         passed to the function rather than the type of the single element.
21236         Rename cxx17_empty_base_seen variable to empty_base_seen, change
21237         type to int, and adjust diagnostics depending on if the field
21238         has [[no_unique_attribute]] or not.
21240         PR target/94832
21241         * config/i386/avx512bwintrin.h (_mm512_alignr_epi8,
21242         _mm512_mask_alignr_epi8, _mm512_maskz_alignr_epi8): Wrap macro operands
21243         used in casts into parens.
21244         * config/i386/avx512fintrin.h (_mm512_cvt_roundps_ph, _mm512_cvtps_ph,
21245         _mm512_mask_cvt_roundps_ph, _mm512_mask_cvtps_ph,
21246         _mm512_maskz_cvt_roundps_ph, _mm512_maskz_cvtps_ph,
21247         _mm512_mask_cmp_epi64_mask, _mm512_mask_cmp_epi32_mask,
21248         _mm512_mask_cmp_epu64_mask, _mm512_mask_cmp_epu32_mask,
21249         _mm512_mask_cmp_round_pd_mask, _mm512_mask_cmp_round_ps_mask,
21250         _mm512_mask_cmp_pd_mask, _mm512_mask_cmp_ps_mask): Likewise.
21251         * config/i386/avx512vlbwintrin.h (_mm256_mask_alignr_epi8,
21252         _mm256_maskz_alignr_epi8, _mm_mask_alignr_epi8, _mm_maskz_alignr_epi8,
21253         _mm256_mask_cmp_epu8_mask): Likewise.
21254         * config/i386/avx512vlintrin.h (_mm_mask_cvtps_ph, _mm_maskz_cvtps_ph,
21255         _mm256_mask_cvtps_ph, _mm256_maskz_cvtps_ph): Likewise.
21256         * config/i386/f16cintrin.h (_mm_cvtps_ph, _mm256_cvtps_ph): Likewise.
21257         * config/i386/shaintrin.h (_mm_sha1rnds4_epu32): Likewise.
21259         PR target/94832
21260         * config/i386/avx2intrin.h (_mm_mask_i32gather_pd,
21261         _mm256_mask_i32gather_pd, _mm_mask_i64gather_pd,
21262         _mm256_mask_i64gather_pd, _mm_mask_i32gather_ps,
21263         _mm256_mask_i32gather_ps, _mm_mask_i64gather_ps,
21264         _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
21265         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
21266         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
21267         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
21268         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
21269         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
21270         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
21271         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
21272         _mm256_mask_i64gather_epi32): Surround macro parameter uses with
21273         parens.
21274         (_mm_i32gather_pd, _mm256_i32gather_pd, _mm_i64gather_pd,
21275         _mm256_i64gather_pd, _mm_i32gather_ps, _mm256_i32gather_ps,
21276         _mm_i64gather_ps, _mm256_i64gather_ps): Likewise.  Don't use
21277         as mask vector containing -1.0 or -1.0f elts, but instead vector
21278         with all bits set using _mm*_cmpeq_p? with zero operands.
21279         * config/i386/avx512fintrin.h (_mm512_i32gather_ps,
21280         _mm512_mask_i32gather_ps, _mm512_i32gather_pd,
21281         _mm512_mask_i32gather_pd, _mm512_i64gather_ps,
21282         _mm512_mask_i64gather_ps, _mm512_i64gather_pd,
21283         _mm512_mask_i64gather_pd, _mm512_i32gather_epi32,
21284         _mm512_mask_i32gather_epi32, _mm512_i32gather_epi64,
21285         _mm512_mask_i32gather_epi64, _mm512_i64gather_epi32,
21286         _mm512_mask_i64gather_epi32, _mm512_i64gather_epi64,
21287         _mm512_mask_i64gather_epi64, _mm512_i32scatter_ps,
21288         _mm512_mask_i32scatter_ps, _mm512_i32scatter_pd,
21289         _mm512_mask_i32scatter_pd, _mm512_i64scatter_ps,
21290         _mm512_mask_i64scatter_ps, _mm512_i64scatter_pd,
21291         _mm512_mask_i64scatter_pd, _mm512_i32scatter_epi32,
21292         _mm512_mask_i32scatter_epi32, _mm512_i32scatter_epi64,
21293         _mm512_mask_i32scatter_epi64, _mm512_i64scatter_epi32,
21294         _mm512_mask_i64scatter_epi32, _mm512_i64scatter_epi64,
21295         _mm512_mask_i64scatter_epi64): Surround macro parameter uses with
21296         parens.
21297         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
21298         _mm512_prefetch_i32gather_ps, _mm512_mask_prefetch_i32gather_pd,
21299         _mm512_mask_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
21300         _mm512_prefetch_i64gather_ps, _mm512_mask_prefetch_i64gather_pd,
21301         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
21302         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
21303         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
21304         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
21305         _mm512_mask_prefetch_i64scatter_ps): Likewise.
21306         * config/i386/avx512vlintrin.h (_mm256_mmask_i32gather_ps,
21307         _mm_mmask_i32gather_ps, _mm256_mmask_i32gather_pd,
21308         _mm_mmask_i32gather_pd, _mm256_mmask_i64gather_ps,
21309         _mm_mmask_i64gather_ps, _mm256_mmask_i64gather_pd,
21310         _mm_mmask_i64gather_pd, _mm256_mmask_i32gather_epi32,
21311         _mm_mmask_i32gather_epi32, _mm256_mmask_i32gather_epi64,
21312         _mm_mmask_i32gather_epi64, _mm256_mmask_i64gather_epi32,
21313         _mm_mmask_i64gather_epi32, _mm256_mmask_i64gather_epi64,
21314         _mm_mmask_i64gather_epi64, _mm256_i32scatter_ps,
21315         _mm256_mask_i32scatter_ps, _mm_i32scatter_ps, _mm_mask_i32scatter_ps,
21316         _mm256_i32scatter_pd, _mm256_mask_i32scatter_pd, _mm_i32scatter_pd,
21317         _mm_mask_i32scatter_pd, _mm256_i64scatter_ps,
21318         _mm256_mask_i64scatter_ps, _mm_i64scatter_ps, _mm_mask_i64scatter_ps,
21319         _mm256_i64scatter_pd, _mm256_mask_i64scatter_pd, _mm_i64scatter_pd,
21320         _mm_mask_i64scatter_pd, _mm256_i32scatter_epi32,
21321         _mm256_mask_i32scatter_epi32, _mm_i32scatter_epi32,
21322         _mm_mask_i32scatter_epi32, _mm256_i32scatter_epi64,
21323         _mm256_mask_i32scatter_epi64, _mm_i32scatter_epi64,
21324         _mm_mask_i32scatter_epi64, _mm256_i64scatter_epi32,
21325         _mm256_mask_i64scatter_epi32, _mm_i64scatter_epi32,
21326         _mm_mask_i64scatter_epi32, _mm256_i64scatter_epi64,
21327         _mm256_mask_i64scatter_epi64, _mm_i64scatter_epi64,
21328         _mm_mask_i64scatter_epi64): Likewise.
21330 2020-04-29  Jeff Law  <law@redhat.com>
21332         * config/h8300/h8300.md (H8/SX div patterns): All H8/SX specific
21333         division instructions are 4 bytes long.
21335 2020-04-29  Jakub Jelinek  <jakub@redhat.com>
21337         PR target/94826
21338         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Use
21339         TARGET_EXPR instead of MODIFY_EXPR for first assignment to
21340         fenv_var, fenv_clear and old_fenv variables.  For fenv_addr
21341         take address of TARGET_EXPR of fenv_var with void_node initializer.
21342         Formatting fixes.
21344 2020-04-29  Stefan Schulze Frielinghaus  <stefansf@linux.ibm.com>
21346         PR tree-optimization/94774
21347         * gimple-ssa-sprintf.c (try_substitute_return_value): Initialize
21348         variable retval.
21350 2020-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21352         * calls.h (cxx17_empty_base_field_p): Turn into a function declaration.
21353         * calls.c (cxx17_empty_base_field_p): New function.  Check
21354         DECL_ARTIFICIAL and RECORD_OR_UNION_TYPE_P in addition to the
21355         previous checks.
21357 2020-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21359         PR target/93654
21360         * config/i386/i386-options.c (ix86_set_indirect_branch_type):
21361         Allow -fcf-protection with -mindirect-branch=thunk-extern and
21362         -mfunction-return=thunk-extern.
21363         * doc/invoke.texi: Update notes for -fcf-protection=branch with
21364         -mindirect-branch=thunk-extern and -mindirect-return=thunk-extern.
21366 2020-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21368         * doc/sourcebuild.texi: Add missing arm_arch_v8a_hard_ok anchor.
21370 2020-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21372         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Use
21373         TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
21374         fenv_var and new_fenv_var.
21376 2020-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21378         * doc/sourcebuild.texi (arm_arch_v8a_hard_ok): Document new
21379         effective-target keyword.
21380         (arm_arch_v8a_hard_multilib): Likewise.
21381         (arm_arch_v8a_hard): Document new dg-add-options keyword.
21382         * config/arm/arm.c (arm_return_in_memory): Note that the APCS
21383         code is deprecated and has not been updated to handle
21384         DECL_FIELD_ABI_IGNORED.
21385         (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
21386         (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
21387         (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
21388         avoid_cxx17_empty_base with a pointer to a bitmask.  Ignore fields
21389         whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
21390         something actually is a HFA or HVA.  Record whether we see a
21391         [[no_unique_address]] field that previous GCCs would not have
21392         ignored in this way.
21393         (aapcs_vfp_is_call_or_return_candidate): Update the calls to
21394         aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
21395         [[no_unique_address]] case.  Use TYPE_MAIN_VARIANT in the
21396         diagnostic messages.
21397         (arm_needs_doubleword_align): Add a comment explaining why we
21398         consider even zero-sized fields.
21400 2020-04-29  Richard Biener  <rguenther@suse.de>
21401             Li Zekun  <lizekun1@huawei.com>
21403         PR lto/94822
21404         * tree.c (component_ref_size): Guard against error_mark_node
21405         DECL_INITIAL as it happens with LTO.
21407 2020-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21409         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add a
21410         comment explaining why we consider even zero-sized fields.
21411         (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
21412         (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
21413         (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
21414         avoid_cxx17_empty_base with a pointer to a bitmask.  Ignore fields
21415         whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
21416         something actually is a HFA or HVA.  Record whether we see a
21417         [[no_unique_address]] field that previous GCCs would not have
21418         ignored in this way.
21419         (aarch64_vfp_is_call_or_return_candidate): Add a parameter to say
21420         whether diagnostics should be suppressed.  Update the calls to
21421         aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
21422         [[no_unique_address]] case.
21423         (aarch64_return_in_msb): Update call accordingly, never silencing
21424         diagnostics.
21425         (aarch64_function_value): Likewise.
21426         (aarch64_return_in_memory_1): Likewise.
21427         (aarch64_init_cumulative_args): Likewise.
21428         (aarch64_gimplify_va_arg_expr): Likewise.
21429         (aarch64_pass_by_reference_1): Take a CUMULATIVE_ARGS pointer and
21430         use it to decide whether arch64_vfp_is_call_or_return_candidate
21431         should be silent.
21432         (aarch64_pass_by_reference): Update calls accordingly.
21433         (aarch64_vfp_is_call_candidate): Use the CUMULATIVE_ARGS argument
21434         to decide whether arch64_vfp_is_call_or_return_candidate should be
21435         silent.
21437 2020-04-29  Haijian Zhang  <z.zhanghaijian@huawei.com>
21439         PR target/94820
21440         * config/aarch64/aarch64-builtins.c
21441         (aarch64_atomic_assign_expand_fenv): Use TARGET_EXPR instead of
21442         MODIFY_EXPR for first assignment to fenv_cr, fenv_sr and
21443         new_fenv_var.
21445 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
21447         * configure.ac <$enable_offload_targets>: Do parsing as done
21448         elsewhere.
21449         * configure: Regenerate.
21451         * configure.ac <$enable_offload_targets>: 'amdgcn' is 'gcn'.
21452         * configure: Regenerate.
21454         PR target/94279
21455         * rtlanal.c (set_noop_p): Handle non-constant selectors.
21457         PR target/94282
21458         * common/config/gcn/gcn-common.c (gcn_except_unwind_info): New
21459         function.
21460         (TARGET_EXCEPT_UNWIND_INFO): Define.
21462 2020-04-29  Jakub Jelinek  <jakub@redhat.com>
21464         PR target/94248
21465         * config/gcn/gcn.md (*mov<mode>_insn): Use
21466         'reg_overlap_mentioned_p' to check for overlap.
21468         PR target/94706
21469         * config/ia64/ia64.c (hfa_element_mode): Use DECL_FIELD_ABI_IGNORED
21470         instead of cxx17_empty_base_field_p.
21472         PR target/94707
21473         * tree-core.h (tree_decl_common): Note decl_flag_0 used for
21474         DECL_FIELD_ABI_IGNORED.
21475         * tree.h (DECL_FIELD_ABI_IGNORED): Define.
21476         * calls.h (cxx17_empty_base_field_p): Change into a temporary
21477         macro, check DECL_FIELD_ABI_IGNORED flag with no "no_unique_address"
21478         attribute.
21479         * calls.c (cxx17_empty_base_field_p): Remove.
21480         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Handle
21481         DECL_FIELD_ABI_IGNORED.
21482         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
21483         * lto-streamer-out.c (hash_tree): Likewise.
21484         * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Rename
21485         cxx17_empty_base_seen to empty_base_seen, change type to int *,
21486         adjust recursive calls, use DECL_FIELD_ABI_IGNORED instead of
21487         cxx17_empty_base_field_p, if "no_unique_address" attribute is
21488         present, propagate that to the caller too.
21489         (rs6000_discover_homogeneous_aggregate): Adjust
21490         rs6000_aggregate_candidate caller, emit different diagnostics
21491         when c++17 empty base fields are present and when empty
21492         [[no_unique_address]] fields are present.
21493         * config/rs6000/rs6000.c (rs6000_special_round_type_align,
21494         darwin_rs6000_special_round_type_align): Skip DECL_FIELD_ABI_IGNORED
21495         fields.
21497 2020-04-29  Richard Biener  <rguenther@suse.de>
21499         * tree-ssa-loop-im.c (ref_always_accessed::operator ()):
21500         Just check whether the stmt stores.
21502 2020-04-28  Alexandre Oliva <oliva@adacore.com>
21504         PR target/94812
21505         * config/rs6000/rs6000.md (rs6000_mffsl): Copy result to
21506         output operand in emulation.  Don't overwrite pseudos.
21508 2020-04-28  Jeff Law  <law@redhat.com>
21510         * config/h8300/h8300.md (H8/SX mult patterns): All H8/SX specific
21511         multiply patterns are 4 bytes long.
21513 2020-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21515         * config/arm/arm-cpus.in (cortex-m55): Remove +nofp option.
21516         * doc/invoke.texi (Arm Options): Remove -mcpu=cortex-m55 from +nofp option.
21518 2020-04-28  Matthew Malcomson  <matthew.malcomson@arm.com>
21519             Jakub Jelinek  <jakub@redhat.com>
21521         PR target/94711
21522         * config/arm/arm.c (aapcs_vfp_sub_candidate): Account for C++17 empty
21523         base class artificial fields.
21524         (aapcs_vfp_is_call_or_return_candidate): Warn when PCS ABI
21525         decision is different after this fix.
21527 2020-04-28  David Malcolm  <dmalcolm@redhat.com>
21529         PR analyzer/94447
21530         PR analyzer/94639
21531         PR analyzer/94732
21532         PR analyzer/94754
21533         * doc/invoke.texi (Static Analyzer Options): Remove
21534         -Wanalyzer-use-of-uninitialized-value.
21535         (-Wno-analyzer-use-of-uninitialized-value): Remove item.
21537 2020-04-28  Jakub Jelinek  <jakub@redhat.com>
21539         PR tree-optimization/94809
21540         * tree.c (build_call_expr_internal_loc_array): Call
21541         process_call_operands.
21543 2020-04-27  Anton Youdkevitch  <anton.youdkevitch@bell-sw.com>
21545         * config/aarch64/aarch64-cores.def (thunderx3t110): Add the chip name.
21546         * config/aarch64/aarch64-tune.md: Regenerate.
21547         * config/aarch64/aarch64.c (thunderx3t110_addrcost_table): Define.
21548         (thunderx3t110_regmove_cost): Likewise.
21549         (thunderx3t110_vector_cost): Likewise.
21550         (thunderx3t110_prefetch_tune): Likewise.
21551         (thunderx3t110_tunings): Likewise.
21552         * config/aarch64/aarch64-cost-tables.h (thunderx3t110_extra_costs):
21553         Define.
21554         * config/aarch64/thunderx3t110.md: New file.
21555         * config/aarch64/aarch64.md: Include thunderx3t110.md.
21556         * doc/invoke.texi (AArch64 options): Add thunderx3t110.
21558 2020-04-28  Jakub Jelinek  <jakub@redhat.com>
21560         PR target/94704
21561         * config/s390/s390.c (s390_function_arg_vector,
21562         s390_function_arg_float): Emit -Wpsabi diagnostics if the ABI changed.
21564 2020-04-28  Richard Sandiford  <richard.sandiford@arm.com>
21566         PR tree-optimization/94727
21567         * tree-vect-stmts.c (vect_is_simple_cond): If both comparison
21568         operands are invariant booleans, use the mask type associated with the
21569         STMT_VINFO_VECTYPE.  Use !slp_node instead of !vectype to exclude SLP.
21570         (vectorizable_condition): Pass vectype unconditionally to
21571         vect_is_simple_cond.
21573 2020-04-27  Jakub Jelinek  <jakub@redhat.com>
21575         PR target/94780
21576         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Use
21577         TARGET_EXPR instead of MODIFY_EXPR for first assignment to
21578         sw_var, exceptions_var, mxcsr_orig_var and mxcsr_mod_var.
21580 2020-04-27  David Malcolm  <dmalcolm@redhat.com>
21582         PR 92830
21583         * configure.ac (DOCUMENTATION_ROOT_URL): Drop trailing "gcc/" from
21584         default value, so that it can by supplied by get_option_html_page.
21585         * configure: Regenerate.
21586         * opts.c: Include "selftest.h".
21587         (get_option_html_page): New function.
21588         (get_option_url): Use it.  Reformat to place comments next to the
21589         expressions they refer to.
21590         (selftest::test_get_option_html_page): New.
21591         (selftest::opts_c_tests): New.
21592         * selftest-run-tests.c (selftest::run_tests): Call
21593         selftest::opts_c_tests.
21594         * selftest.h (selftest::opts_c_tests): New decl.
21596 2020-04-27  Richard Sandiford  <richard.sandiford@arm.com>
21598         * config/arm/arm-builtins.c (arm_expand_builtin_args): Only apply
21599         UINTVAL to CONST_INTs.
21601 2020-04-27  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
21603         * config/arm/constraints.md (e): Remove constraint.
21604         (Te): Define constraint.
21605         * config/arm/mve.md (vaddvq_<supf><mode>): Modify constraint in
21606         operand 0 from "e" to "Te".
21607         (vaddvaq_<supf><mode>): Likewise.
21608         (vaddvq_p_<supf><mode>): Likewise.
21609         (vmladavq_<supf><mode>): Likewise.
21610         (vmladavxq_s<mode>): Likewise.
21611         (vmlsdavq_s<mode>): Likewise.
21612         (vmlsdavxq_s<mode>): Likewise.
21613         (vaddvaq_p_<supf><mode>): Likewise.
21614         (vmladavaq_<supf><mode>): Likewise.
21615         (vmladavq_p_<supf><mode>): Likewise.
21616         (vmladavxq_p_s<mode>): Likewise.
21617         (vmlsdavq_p_s<mode>): Likewise.
21618         (vmlsdavxq_p_s<mode>): Likewise.
21619         (vmlsdavaxq_s<mode>): Likewise.
21620         (vmlsdavaq_s<mode>): Likewise.
21621         (vmladavaxq_s<mode>): Likewise.
21622         (vmladavaq_p_<supf><mode>): Likewise.
21623         (vmladavaxq_p_s<mode>): Likewise.
21624         (vmlsdavaq_p_s<mode>): Likewise.
21625         (vmlsdavaxq_p_s<mode>): Likewise.
21627 2020-04-27  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21629         * config/arm/arm.c (output_move_neon): Only get the first operand if
21630         addr is PLUS.
21632 2020-04-27  Felix Yang  <felix.yang@huawei.com>
21634         PR tree-optimization/94784
21635         * tree-ssa-forwprop.c (simplify_vector_constructor): Flip the
21636         assert around so that it checks that the two vectors have equal
21637         TYPE_VECTOR_SUBPARTS and that converting the corresponding element
21638         types is a useless_type_conversion_p.
21640 2020-04-27  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21642         PR target/94515
21643         * dwarf2cfi.c (struct GTY): Add ra_mangled.
21644         (cfi_row_equal_p): Check ra_mangled.
21645         (dwarf2out_frame_debug_cfa_window_save): Remove the argument,
21646         this only handles the sparc logic now.
21647         (dwarf2out_frame_debug_cfa_toggle_ra_mangle): New function for
21648         the aarch64 specific logic.
21649         (dwarf2out_frame_debug): Update to use the new subroutines.
21650         (change_cfi_row): Check ra_mangled.
21652 2020-04-27  Jakub Jelinek  <jakub@redhat.com>
21654         PR target/94704
21655         * config/s390/s390.c (s390_function_arg_vector,
21656         s390_function_arg_float): Ignore cxx17_empty_base_field_p fields.
21658 2020-04-27  Jiufu Guo   <guojiufu@cn.ibm.com>
21660         * common/config/rs6000/rs6000-common.c
21661         (rs6000_option_optimization_table) [OPT_LEVELS_ALL]: Remove turn off
21662         -fweb.
21663         * config/rs6000/rs6000.c (rs6000_option_override_internal): Avoid to
21664         set flag_web.
21666 2020-04-27  Martin Liska  <mliska@suse.cz>
21668         PR lto/94659
21669         * cgraph.h (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
21670         Do not remove ifunc_resolvers in remove unreachable nodes in LTO.
21672 2020-04-27  Xiong Hu Luo  <luoxhu@linux.ibm.com>
21674         PR target/91518
21675         * config/rs6000/rs6000-logue.c (frame_pointer_needed_indeed):
21676         New variable.
21677         (rs6000_emit_prologue_components):
21678         Check with frame_pointer_needed_indeed.
21679         (rs6000_emit_epilogue_components): Likewise.
21680         (rs6000_emit_prologue): Likewise.
21681         (rs6000_emit_epilogue): Set frame_pointer_needed_indeed.
21683 2020-04-25  David Edelsohn  <dje.gcc@gmail.com>
21685         * config/rs6000/rs6000-logue.c (rs6000_stack_info): Don't push a
21686         stack frame when debugging and flag_compare_debug is enabled.
21688 2020-04-25  Michael Meissner  <meissner@linux.ibm.com>
21690         * config/rs6000/linux64.h (PCREL_SUPPORTED_BY_OS): Define to
21691         enable PC-relative addressing for -mcpu=future.
21692         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Move
21693         after OTHER_FUTURE_MASKS.  Use OTHER_FUTURE_MASKS.
21694         * config/rs6000/rs6000.c (PCREL_SUPPORTED_BY_OS): If not defined,
21695         suppress PC-relative addressing.
21696         (rs6000_option_override_internal): Split up error messages
21697         checking for -mprefixed and -mpcrel.  Enable -mpcrel if the target
21698         system supports it.
21700 2020-04-25  Jakub Jelinek  <jakub@redhat.com>
21701             Richard Biener  <rguenther@suse.de>
21703         PR tree-optimization/94734
21704         PR tree-optimization/89430
21705         * tree-ssa-phiopt.c: Include tree-eh.h.
21706         (cond_store_replacement): Return false if an automatic variable
21707         access could trap.  If -fstore-data-races, don't return false
21708         just because an automatic variable is addressable.
21710 2020-04-24  Andrew Stubbs  <ams@codesourcery.com>
21712         * config/gcn/gcn-valu.md (add<mode>_zext_dup2_exec): Fix merge
21713         of high-part.
21714         (add<mode>_sext_dup2_exec): Likewise.
21716 2020-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
21718         PR target/94710
21719         * config/rs6000/vector.md (vec_shr_<mode> for VEC_L): Correct little
21720         endian byteshift_val calculation.
21722 2020-04-24  Andrew Stubbs  <ams@codesourcery.com>
21724         * config/gcn/gcn.md (*mov<mode>_insn): Only split post-reload.
21726 2020-04-24  Richard Sandiford  <richard.sandiford@arm.com>
21728         * config/aarch64/arm_sve.h: Add a comment.
21730 2020-04-24  Haijian Zhang <z.zhanghaijian@huawei.com>
21732         PR rtl-optimization/94708
21733         * combine.c (simplify_if_then_else): Add check for
21734         !HONOR_NANS (mode) && !HONOR_SIGNED_ZEROS (mode).
21736 2020-04-23  Martin Sebor  <msebor@redhat.com>
21738         PR driver/90983
21739         * common.opt (-Wno-frame-larger-than): New option.
21740         (-Wno-larger-than, -Wno-stack-usage): Same.
21742 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
21744         * config/gcn/gcn-valu.md (mov<mode>_exec): Swap the numbers on operands
21745         2 and 3.
21746         (mov<mode>_exec): Likewise.
21747         (trunc<vndi><mode>2_exec): Swap parameters to gen_mov<mode>_exec.
21748         (<convop><mode><vndi>2_exec): Likewise.
21750 2019-04-23  Eric Botcazou  <ebotcazou@adacore.com>
21752         PR tree-optimization/94717
21753         * gimple-ssa-store-merging.c (try_coalesce_bswap): Return false if one
21754         of the stores doesn't have the same landing pad number as the first.
21755         (coalesce_immediate_stores): Do not try to coalesce the store using
21756         bswap if it doesn't have the same landing pad number as the first.
21758 2020-04-23  Bill Schmidt  <wschmidt@linux.ibm.com>
21760         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21761         Replace outdated link to ELFv2 ABI.
21763 2020-04-23  Jakub Jelinek  <jakub@redhat.com>
21765         PR target/94710
21766         * optabs.c (expand_vec_perm_const): For shift_amt const0_rtx
21767         just return v2.
21769         PR middle-end/94724
21770         * tree.c (get_narrower): Instead of creating COMPOUND_EXPRs
21771         temporarily with non-final second operand and updating it later,
21772         push COMPOUND_EXPRs into a vector and process it in reverse,
21773         creating COMPOUND_EXPRs with the final operands.
21775 2020-04-23  Szabolcs Nagy  <szabolcs.nagy@arm.com>
21777         PR target/94697
21778         * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Swap
21779         bti c and bti j handling.
21781 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
21782             Thomas Schwinge  <thomas@codesourcery.com>
21784         PR middle-end/93488
21786         * omp-expand.c (expand_omp_target): Use force_gimple_operand_gsi on
21787         t_async and the wait arguments.
21789 2020-04-23  Richard Sandiford  <richard.sandiford@arm.com>
21791         PR tree-optimization/94727
21792         * tree-vect-stmts.c (vectorizable_comparison): Use mask_type when
21793         comparing invariant scalar booleans.
21795 2020-04-23  Matthew Malcomson  <matthew.malcomson@arm.com>
21796             Jakub Jelinek  <jakub@redhat.com>
21798         PR target/94383
21799         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Account for C++17
21800         empty base class artificial fields.
21801         (aarch64_vfp_is_call_or_return_candidate): Warn when ABI PCS decision is
21802         different after this fix.
21804 2020-04-23  Jakub Jelinek  <jakub@redhat.com>
21806         PR target/94707
21807         * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
21808         Use TYPE_UID (TYPE_MAIN_VARIANT (type)) instead of type to check
21809         if the same type has been diagnosed most recently already.
21811 2020-04-23  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
21813         * config/arm/arm_mve.h (__arm_vbicq_n_u16): Modify function parameter's
21814         datatype.
21815         (__arm_vbicq_n_s16): Likewise.
21816         (__arm_vbicq_n_u32): Likewise.
21817         (__arm_vbicq_n_s32): Likewise.
21818         (__arm_vbicq): Likewise.
21819         (__arm_vbicq_n_s16): Modify MVE polymorphic variant argument's datatype.
21820         (__arm_vbicq_n_s32): Likewise.
21821         (__arm_vbicq_n_u16): Likewise.
21822         (__arm_vbicq_n_u32): Likewise.
21823         (__arm_vdupq_m_n_s8): Likewise.
21824         (__arm_vdupq_m_n_s16): Likewise.
21825         (__arm_vdupq_m_n_s32): Likewise.
21826         (__arm_vdupq_m_n_u8): Likewise.
21827         (__arm_vdupq_m_n_u16): Likewise.
21828         (__arm_vdupq_m_n_u32): Likewise.
21829         (__arm_vdupq_m_n_f16): Likewise.
21830         (__arm_vdupq_m_n_f32): Likewise.
21831         (__arm_vldrhq_gather_offset_s16): Likewise.
21832         (__arm_vldrhq_gather_offset_s32): Likewise.
21833         (__arm_vldrhq_gather_offset_u16): Likewise.
21834         (__arm_vldrhq_gather_offset_u32): Likewise.
21835         (__arm_vldrhq_gather_offset_f16): Likewise.
21836         (__arm_vldrhq_gather_offset_z_s16): Likewise.
21837         (__arm_vldrhq_gather_offset_z_s32): Likewise.
21838         (__arm_vldrhq_gather_offset_z_u16): Likewise.
21839         (__arm_vldrhq_gather_offset_z_u32): Likewise.
21840         (__arm_vldrhq_gather_offset_z_f16): Likewise.
21841         (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
21842         (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
21843         (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
21844         (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
21845         (__arm_vldrhq_gather_shifted_offset_f16): Likewise.
21846         (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
21847         (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
21848         (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
21849         (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
21850         (__arm_vldrhq_gather_shifted_offset_z_f16): Likewise.
21851         (__arm_vldrwq_gather_offset_s32): Likewise.
21852         (__arm_vldrwq_gather_offset_u32): Likewise.
21853         (__arm_vldrwq_gather_offset_f32): Likewise.
21854         (__arm_vldrwq_gather_offset_z_s32): Likewise.
21855         (__arm_vldrwq_gather_offset_z_u32): Likewise.
21856         (__arm_vldrwq_gather_offset_z_f32): Likewise.
21857         (__arm_vldrwq_gather_shifted_offset_s32): Likewise.
21858         (__arm_vldrwq_gather_shifted_offset_u32): Likewise.
21859         (__arm_vldrwq_gather_shifted_offset_f32): Likewise.
21860         (__arm_vldrwq_gather_shifted_offset_z_s32): Likewise.
21861         (__arm_vldrwq_gather_shifted_offset_z_u32): Likewise.
21862         (__arm_vldrwq_gather_shifted_offset_z_f32): Likewise.
21863         (__arm_vdwdupq_x_n_u8): Likewise.
21864         (__arm_vdwdupq_x_n_u16): Likewise.
21865         (__arm_vdwdupq_x_n_u32): Likewise.
21866         (__arm_viwdupq_x_n_u8): Likewise.
21867         (__arm_viwdupq_x_n_u16): Likewise.
21868         (__arm_viwdupq_x_n_u32): Likewise.
21869         (__arm_vidupq_x_n_u8): Likewise.
21870         (__arm_vddupq_x_n_u8): Likewise.
21871         (__arm_vidupq_x_n_u16): Likewise.
21872         (__arm_vddupq_x_n_u16): Likewise.
21873         (__arm_vidupq_x_n_u32): Likewise.
21874         (__arm_vddupq_x_n_u32): Likewise.
21875         (__arm_vldrdq_gather_offset_s64): Likewise.
21876         (__arm_vldrdq_gather_offset_u64): Likewise.
21877         (__arm_vldrdq_gather_offset_z_s64): Likewise.
21878         (__arm_vldrdq_gather_offset_z_u64): Likewise.
21879         (__arm_vldrdq_gather_shifted_offset_s64): Likewise.
21880         (__arm_vldrdq_gather_shifted_offset_u64): Likewise.
21881         (__arm_vldrdq_gather_shifted_offset_z_s64): Likewise.
21882         (__arm_vldrdq_gather_shifted_offset_z_u64): Likewise.
21883         (__arm_vidupq_m_n_u8): Likewise.
21884         (__arm_vidupq_m_n_u16): Likewise.
21885         (__arm_vidupq_m_n_u32): Likewise.
21886         (__arm_vddupq_m_n_u8): Likewise.
21887         (__arm_vddupq_m_n_u16): Likewise.
21888         (__arm_vddupq_m_n_u32): Likewise.
21889         (__arm_vidupq_n_u16): Likewise.
21890         (__arm_vidupq_n_u32): Likewise.
21891         (__arm_vidupq_n_u8): Likewise.
21892         (__arm_vddupq_n_u16): Likewise.
21893         (__arm_vddupq_n_u32): Likewise.
21894         (__arm_vddupq_n_u8): Likewise.
21896 2020-04-23  Iain Buclaw  <ibuclaw@gdcproject.org>
21898         * doc/install.texi (D-Specific Options): Document
21899         --enable-libphobos-checking and --with-libphobos-druntime-only.
21901 2020-04-23  Jakub Jelinek  <jakub@redhat.com>
21903         PR target/94707
21904         * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Add
21905         cxx17_empty_base_seen argument.  Pass it to recursive calls.
21906         Ignore cxx17_empty_base_field_p fields after setting
21907         *cxx17_empty_base_seen to true.
21908         (rs6000_discover_homogeneous_aggregate): Adjust
21909         rs6000_aggregate_candidate caller.  With -Wpsabi, diagnose homogeneous
21910         aggregates with C++17 empty base fields.
21912         PR c/94705
21913         * attribs.c (decl_attribute): Don't diagnose attribute exclusions
21914         if last_decl is error_mark_node or has such a TREE_TYPE.
21916         PR c/94705
21917         * attribs.c (decl_attribute): Don't diagnose attribute exclusions
21918         if last_decl is error_mark_node or has such a TREE_TYPE.
21920 2020-04-22  Felix Yang  <felix.yang@huawei.com>
21922         PR target/94678
21923         * config/aarch64/aarch64.h (TARGET_SVE):
21924         Add && !TARGET_GENERAL_REGS_ONLY.
21925         (TARGET_SVE2): Add && TARGET_SVE.
21926         (TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3,
21927         TARGET_SVE2_SM4): Add && TARGET_SVE2.
21928         * config/aarch64/aarch64-sve-builtins.h
21929         (sve_switcher::m_old_general_regs_only): New member.
21930         * config/aarch64/aarch64-sve-builtins.cc (check_required_registers):
21931         New function.
21932         (reported_missing_registers_p): New variable.
21933         (check_required_extensions): Call check_required_registers before
21934         return if all required extenstions are present.
21935         (sve_switcher::sve_switcher): Save TARGET_GENERAL_REGS_ONLY in
21936         m_old_general_regs_only and clear MASK_GENERAL_REGS_ONLY in
21937         global_options.x_target_flags.
21938         (sve_switcher::~sve_switcher): Set MASK_GENERAL_REGS_ONLY in
21939         global_options.x_target_flags if m_old_general_regs_only is true.
21941 2020-04-22  Zackery Spytz  <zspytz@gmail.com>
21943         * doc/extend.exi: Add "free" to list of other builtin functions
21944         supported by GCC.
21946 2020-04-20  Aaron Sawdey  <acsawdey@linux.ibm.com>
21948         PR target/94622
21949         * config/rs6000/sync.md (load_quadpti): Add attr "prefixed"
21950         if TARGET_PREFIXED.
21951         (store_quadpti): Ditto.
21952         (atomic_load<mode>): Do not swap doublewords if TARGET_PREFIXED as
21953         plq will be used and doesn't need it.
21954         (atomic_store<mode>): Ditto, for pstq.
21956 2020-04-22  Erick Ochoa  <erick.ochoa@theobroma-systems.com>
21958         * doc/invoke.texi: Update flags turned on by -O3.
21960 2020-04-22  Jakub Jelinek  <jakub@redhat.com>
21962         PR target/94706
21963         * config/ia64/ia64.c (hfa_element_mode): Ignore
21964         cxx17_empty_base_field_p fields.
21966         PR target/94383
21967         * calls.h (cxx17_empty_base_field_p): Declare.
21968         * calls.c (cxx17_empty_base_field_p): Define.
21970 2020-04-22  Christophe Lyon  <christophe.lyon@linaro.org>
21972         * doc/sourcebuild.texi (arm_softfp_ok, arm_hard_ok): Document.
21974 2020-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21975             Andre Vieira  <andre.simoesdiasvieira@arm.com>
21976             Mihail Ionescu  <mihail.ionescu@arm.com>
21978         * config/arm/arm.c (arm_file_start): Handle isa_bit_quirk_no_asmcpu.
21979         * config/arm/arm-cpus.in (quirk_no_asmcpu): Define.
21980         (ALL_QUIRKS): Add quirk_no_asmcpu.
21981         (cortex-m55): Define new cpu.
21982         * config/arm/arm-tables.opt: Regenerate.
21983         * config/arm/arm-tune.md: Likewise.
21984         * doc/invoke.texi (Arm Options): Document -mcpu=cortex-m55.
21986 2020-04-22  Richard Sandiford  <richard.sandiford@arm.com>
21988         PR tree-optimization/94700
21989         * tree-ssa-forwprop.c (simplify_vector_constructor): When processing
21990         an identity constructor, use a VIEW_CONVERT_EXPR to handle mixtures
21991         of similarly-structured but distinct vector types.
21993 2020-04-21  Martin Sebor  <msebor@redhat.com>
21995         PR middle-end/94647
21996         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Correct
21997         the computation of the lower bound of the source access size.
21998         (builtin_access::generic_overlap): Remove a hack for setting ranges
21999         of overlap offsets.
22001 2020-04-21  John David Anglin  <danglin@gcc.gnu.org>
22003         * config/pa/som.h (ASM_WEAKEN_LABEL): Delete.
22004         (ASM_WEAKEN_DECL): New define.
22005         (HAVE_GAS_WEAKREF): Undefine.
22007 2020-04-21  Richard Sandiford  <richard.sandiford@arm.com>
22009         PR tree-optimization/94683
22010         * tree-ssa-forwprop.c (simplify_vector_constructor): Use a
22011         VIEW_CONVERT_EXPR to handle mixtures of similarly-structured
22012         but distinct vector types.
22014 2020-04-21  Jakub Jelinek  <jakub@redhat.com>
22016         PR c/94641
22017         * stor-layout.c (place_field, finalize_record_size): Don't emit
22018         -Wpadded warning on TYPE_ARTIFICIAL rli->t.
22019         * ubsan.c (ubsan_get_type_descriptor_type,
22020         ubsan_get_source_location_type, ubsan_create_data): Set
22021         TYPE_ARTIFICIAL.
22022         * asan.c (asan_global_struct): Likewise.
22024 2020-04-21  Duan bo  <duanbo3@huawei.com>
22026         PR target/94577
22027         * config/aarch64/aarch64.c: Add an error message for option conflict.
22028         * doc/invoke.texi (-mcmodel=large): Mention that -mcmodel=large is
22029         incompatible with -fpic, -fPIC and -mabi=ilp32.
22031 2020-04-21  Frederik Harwath  <frederik@codesourcery.com>
22033         PR other/94629
22034         * omp-low.c (new_omp_context): Remove assignments to
22035         ctx->outer_reduction_clauses and ctx->local_reduction_clauses.
22037 2020-04-20  Andreas Krebbel  <krebbel@linux.ibm.com>
22039         * config/s390/vector.md ("popcountv8hi2_vx", "popcountv4si2_vx")
22040         ("popcountv2di2_vx"): Use simplify_gen_subreg.
22042 2020-04-20  Andreas Krebbel  <krebbel@linux.ibm.com>
22044         PR target/94613
22045         * config/s390/s390-builtin-types.def: Add 3 new function modes.
22046         * config/s390/s390-builtins.def: Add mode dependent low-level
22047         builtin and map the overloaded builtins to these.
22048         * config/s390/vx-builtins.md ("vec_selV_HW"): Rename to ...
22049         ("vsel<V_HW"): ... this and rewrite the pattern with bitops.
22051 2020-04-20  Richard Sandiford  <richard.sandiford@arm.com>
22053         * tree-vect-loop.c (vect_better_loop_vinfo_p): If old_loop_vinfo
22054         has a variable VF, prefer new_loop_vinfo if it is cheaper for the
22055         estimated VF and is no worse at double the estimated VF.
22057 2020-04-20  Richard Sandiford  <richard.sandiford@arm.com>
22059         PR target/94668
22060         * config/aarch64/aarch64.c (aarch64_sve_expand_vector_init): Fix
22061         order of arguments to rtx_vector_builder.
22062         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
22063         When extending the trailing constants to a full vector, replace any
22064         variables with zeros.
22066 2020-04-20  Jan Hubicka  <hubicka@ucw.cz>
22068         PR ipa/94582
22069         * tree-inline.c (optimize_inline_calls): Recompute calls_comdat_local
22070         flag.
22072 2020-04-20  Martin Liska  <mliska@suse.cz>
22074         * symtab.c (symtab_node::dump_references): Add space after
22075         one entry.
22076         (symtab_node::dump_referring): Likewise.
22078 2020-04-18  Jeff Law  <law@redhat.com>
22080         PR debug/94439
22081         * regrename.c (check_new_reg_p): Ignore DEBUG_INSNs when walking
22082         the chain.
22084 2020-04-18  Iain Buclaw  <ibuclaw@gdcproject.org>
22086         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
22087         attributes): Document d_runtime_has_std_library.
22089 2020-04-17  Jeff Law  <law@redhat.com>
22091         PR rtl-optimization/90275
22092         * cse.c (cse_insn): Avoid recording nop sets in multi-set parallels
22093         when the destination has a REG_UNUSED note.
22095 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
22097         PR middle-end/94635
22098         * gimplify.c (gimplify_scan_omp_clauses): Turn MAP_TO_PSET to
22099         MAP_DELETE.
22101 2020-04-17  Richard Sandiford  <richard.sandiford@arm.com>
22103         * config/aarch64/aarch64.c (aarch64_advsimd_ldp_stp_p): New function.
22104         (aarch64_sve_adjust_stmt_cost): Add a vectype parameter.  Double the
22105         cost of load and store insns if one loop iteration has enough scalar
22106         elements to use an Advanced SIMD LDP or STP.
22107         (aarch64_add_stmt_cost): Update call accordingly.
22109 2020-04-17  Jakub Jelinek  <jakub@redhat.com>
22110             Jeff Law  <law@redhat.com>
22112         PR target/94567
22113         * config/i386/i386.md (*testqi_ext_3): Use CCZmode rather than
22114         CCNOmode in ix86_match_ccmode if len is equal to <MODE>mode precision,
22115         or pos + len >= 32, or pos + len is equal to operands[2] precision
22116         and operands[2] is not a register operand.  During splitting perform
22117         SImode AND if operands[0] doesn't have CCZmode and pos + len is
22118         equal to mode precision.
22120 2020-04-17  Richard Biener  <rguenther@suse.de>
22122         PR other/94629
22123         * cgraphclones.c (cgraph_node::create_clone): Remove duplicate
22124         initialization.
22125         * dwarf2out.c (dw_val_equal_p): Fix pasto in
22126         dw_val_class_vms_delta comparison.
22127         * optabs.c (expand_binop_directly): Fix pasto in commutation
22128         check.
22129         * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Fix pasto in
22130         initialization.
22132 2020-04-17  Jakub Jelinek  <jakub@redhat.com>
22134         PR rtl-optimization/94618
22135         * cfgrtl.c (delete_insn_and_edges): Set purge not just when
22136         insn is the BB_END of its block, but also when it is only followed
22137         by DEBUG_INSNs in its block.
22139         PR tree-optimization/94621
22140         * tree-inline.c (remap_type_1): Don't dereference NULL TYPE_DOMAIN.
22141         Move id->adjust_array_error_bounds check first in the condition.
22143 2020-04-17  Martin Liska  <mliska@suse.cz>
22144             Jonathan Yong <10walls@gmail.com>
22146         PR gcov-profile/94570
22147         * coverage.c (coverage_init): Use separator properly.
22149 2020-04-16  Peter Bergner  <bergner@linux.ibm.com>
22151         PR rtl-optimization/93974
22152         * config/rs6000/rs6000.c (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
22153         (rs6000_cannot_substitute_mem_equiv_p): New function.
22155 2020-04-16  Martin Jambor  <mjambor@suse.cz>
22157         PR ipa/93621
22158         * ipa-inline.h (ipa_saved_clone_sources): Declare.
22159         * ipa-inline-transform.c (ipa_saved_clone_sources): New variable.
22160         (save_inline_function_body): Link the new body holder with the
22161         previous one.
22162         * cgraph.c: Include ipa-inline.h.
22163         (cgraph_edge::redirect_call_stmt_to_callee): Try to find the decl from
22164         the statement in ipa_saved_clone_sources.
22165         * cgraphunit.c: Include ipa-inline.h.
22166         (expand_all_functions): Free ipa_saved_clone_sources.
22168 2020-04-16  Richard Sandiford  <richard.sandiford@arm.com>
22170         PR target/94606
22171         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor): Take
22172         the VNx16BI lowpart of the recursively-generated constant.
22174 2020-04-16  Martin Liska  <mliska@suse.cz>
22175             Jakub Jelinek  <jakub@redhat.com>
22177         PR c++/94314
22178         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
22179         DECL_IS_REPLACEABLE_OPERATOR during cloning.
22180         * tree-ssa-dce.c (valid_new_delete_pair_p): New function.
22181         (propagate_necessity): Check operator names.
22183 2020-04-16  Richard Sandiford  <richard.sandiford@arm.com>
22185         PR rtl-optimization/94605
22186         * early-remat.c (early_remat::process_block): Handle insns that
22187         set multiple candidate registers.
22188 2020-04-16  Jan Hubicka  <hubicka@ucw.cz>
22189         
22190         PR gcov-profile/93401
22191         * common.opt (profile-prefix-path): New option.
22192         * coverae.c: Include diagnostics.h.
22193         (coverage_init): Strip profile prefix path.
22194         * doc/invoke.texi (-fprofile-prefix-path): Document.
22196 2020-04-16  Richard Biener  <rguenther@suse.de>
22198         PR middle-end/94614
22199         * expr.c (emit_move_multi_word): Do not generate code when
22200         the destination part is undefined_operand_subword_p.
22201         * lower-subreg.c (resolve_clobber): Look through a paradoxica
22202         subreg.
22204 2020-04-16  Martin Jambor  <mjambor@suse.cz>
22206         PR tree-optimization/94598
22207         * tree-sra.c (verify_sra_access_forest): Fix verification of total
22208         scalarization accesses under access to one-element arrays.
22210 2020-04-16  Jakub Jelinek  <jakub@redhat.com>
22212         PR bootstrap/89494
22213         * function.c (assign_parm_find_data_types): Add workaround for
22214         BROKEN_VALUE_INITIALIZATION compilers.
22216 2020-04-16  Richard Biener  <rguenther@suse.de>
22218         * gdbhooks.py (TreePrinter): Print SSA_NAME_VERSION of SSA_NAME
22219         nodes.
22221 2020-04-15  Uroš Bizjak  <ubizjak@gmail.com>
22223         PR target/94603
22224         * config/i386/i386-builtin.def (__builtin_ia32_movq128):
22225         Require OPTION_MASK_ISA_SSE2.
22227 2020-04-15  Gustavo Romero  <gromero@linux.ibm.com>
22229         PR bootstrap/89494
22230         * dumpfile.c (selftest::temp_dump_context::temp_dump_context):
22231         Don't construct a dump_context temporary to call static method.
22233 2020-04-15  Andrea Corallo  <andrea.corallo@arm.com>
22235         * config/aarch64/falkor-tag-collision-avoidance.c
22236         (valid_src_p): Check for aarch64_address_info type before
22237         accessing base field.
22239 2020-04-15  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22241         * config/arm/mve.md (mve_vec_duplicate<mode>): New pattern.
22242         (V_sz_elem2): Remove unused mode attribute.
22244 2020-04-15  Matthew Malcomson  <matthew.malcomson@arm.com>
22246         * config/arm/arm.md (arm_movdi): Disallow for MVE.
22248 2020-04-15  Richard Biener  <rguenther@suse.de>
22250         PR middle-end/94539
22251         * tree-ssa-alias.c (same_type_for_tbaa): Defer to
22252         alias_sets_conflict_p for pointers.
22254 2020-04-14  Max Filippov  <jcmvbkbc@gmail.com>
22256         PR target/94584
22257         * config/xtensa/xtensa.md (zero_extendhisi2, zero_extendqisi2)
22258         (extendhisi2_internal): Add %v1 before the load instructions.
22260 2020-04-14  Aaron Sawdey  <acsawdey@linux.ibm.com>
22262         PR target/94542
22263         * config/rs6000/rs6000.c (address_to_insn_form): Do not attempt to
22264         use PC-relative addressing for TLS references.
22266 2020-04-14  Martin Jambor  <mjambor@suse.cz>
22268         PR ipa/94434
22269         * ipa-sra.c: Include internal-fn.h.
22270         (enum isra_scan_context): Update comment.
22271         (scan_function): Treat calls to internal_functions like loads or stores.
22273 2020-04-14  Yang Yang <yangyang305@huawei.com>
22275         PR tree-optimization/94574
22276         * tree-ssa.c (non_rewritable_lvalue_p): Add size check when analyzing
22277         whether a vector-insert is rewritable using a BIT_INSERT_EXPR.
22279 2020-04-14  H.J. Lu  <hongjiu.lu@intel.com>
22281         PR target/94561
22282         * config/i386/i386.c (ix86_get_ssemov): Remove mode size check.
22284 2020-04-13  Martin Sebor  <msebor@redhat.com>
22286         * doc/extend.texi (-Wall): Mention -Wformat-overflow and
22287         -Wformat-truncation.  Move -Wzero-length-bounds last.
22288         (-Wrestrict): Document positive form of option enabled by -Wall.
22290 2020-04-13 Zachary Spytz  <zspytz@gmail.com>
22292         * doc/extend.texi: Add realloc to list of built-in functions
22293         are recognized by the compiler.
22295 2020-04-13  H.J. Lu  <hongjiu.lu@intel.com>
22297         PR target/94556
22298         * config/i386/i386.c (ix86_expand_epilogue): Restore the frame
22299         pointer in word_mode for eh_return epilogues.
22301 2020-04-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
22303         * config/msp430/msp430.c (msp430_print_operand): Don't add offsets to
22304         memory references in %B, %C and %D operand selectors when the inner
22305         operand is a post increment address.
22307 2020-04-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
22309         * config/msp430/msp430.c (msp430_print_operand): Offset a %C memory
22310         reference by 4 bytes, and %D memory reference by 6 bytes.
22312 2020-04-11  Uroš Bizjak  <ubizjak@gmail.com>
22314         PR target/94494
22315         * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE2
22316         condition for V4SI, V8HI and V16QI modes.
22318 2020-04-11  Jakub Jelinek  <jakub@redhat.com>
22320         PR debug/94495
22321         PR target/94551
22322         * cselib.c (cselib_record_sp_cfa_base_equiv): Set PRESERVED_VALUE_P on
22323         val->val_rtx.
22325 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
22327         PR middle-end/89433
22328         PR middle-end/93465
22329         * omp-general.c (oacc_verify_routine_clauses): Diagnose if
22330         "#pragma omp declare target" has also been applied.
22332 2020-04-09  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
22334         * config/msp430/msp430.c (msp430_expand_epilogue): Use emit_jump_insn
22335         when to emit the epilogue_helper insn.
22336         * config/msp430/msp430.md (epilogue_helper): Add a return insn to the
22337         RTL pattern.
22339 2020-04-09  Jakub Jelinek  <jakub@redhat.com>
22341         PR debug/94495
22342         * cselib.h (cselib_record_sp_cfa_base_equiv,
22343         cselib_sp_derived_value_p): Declare.
22344         * cselib.c (cselib_record_sp_cfa_base_equiv,
22345         cselib_sp_derived_value_p): New functions.
22346         * var-tracking.c (add_stores): Don't record MO_VAL_SET for
22347         cselib_sp_derived_value_p values.
22348         (vt_initialize): Call cselib_record_sp_cfa_base_equiv at the
22349         start of extended basic blocks other than the first one
22350         for !frame_pointer_needed functions.
22352 2020-04-09  Richard Sandiford  <richard.sandiford@arm.com>
22354         * doc/sourcebuild.texi (aarch64_sve_hw, aarch64_sve128_hw)
22355         (aarch64_sve256_hw, aarch64_sve512_hw, aarch64_sve1024_hw)
22356         (aarch64_sve2048_hw): Document.
22357         * config/aarch64/aarch64-protos.h
22358         (aarch64_sve::handle_arm_sve_vector_bits_attribute): Declare.
22359         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
22360         __ARM_FEATURE_SVE_VECTOR_OPERATIONS when SVE is enabled.
22361         * config/aarch64/aarch64-sve-builtins.cc (matches_type_p): New
22362         function.
22363         (find_type_suffix_for_scalar_type): Use it instead of comparing
22364         TYPE_MAIN_VARIANTs.
22365         (function_resolver::infer_vector_or_tuple_type): Likewise.
22366         (function_resolver::require_vector_type): Likewise.
22367         (handle_arm_sve_vector_bits_attribute): New function.
22368         * config/aarch64/aarch64.c (pure_scalable_type_info): New class.
22369         (aarch64_attribute_table): Add arm_sve_vector_bits.
22370         (aarch64_return_in_memory_1):
22371         (pure_scalable_type_info::piece::get_rtx): New function.
22372         (pure_scalable_type_info::num_zr): Likewise.
22373         (pure_scalable_type_info::num_pr): Likewise.
22374         (pure_scalable_type_info::get_rtx): Likewise.
22375         (pure_scalable_type_info::analyze): Likewise.
22376         (pure_scalable_type_info::analyze_registers): Likewise.
22377         (pure_scalable_type_info::analyze_array): Likewise.
22378         (pure_scalable_type_info::analyze_record): Likewise.
22379         (pure_scalable_type_info::add_piece): Likewise.
22380         (aarch64_some_values_include_pst_objects_p): Likewise.
22381         (aarch64_returns_value_in_sve_regs_p): Use pure_scalable_type_info
22382         to analyze whether the type is returned in SVE registers.
22383         (aarch64_takes_arguments_in_sve_regs_p): Likwise whether the type
22384         is passed in SVE registers.
22385         (aarch64_pass_by_reference_1): New function, extracted from...
22386         (aarch64_pass_by_reference): ...here.  Use pure_scalable_type_info
22387         to analyze whether the type is a pure scalable type and, if so,
22388         whether it should be passed by reference.
22389         (aarch64_return_in_msb): Return false for pure scalable types.
22390         (aarch64_function_value_1): Fold back into...
22391         (aarch64_function_value): ...this function.  Use
22392         pure_scalable_type_info to analyze whether the type is a pure
22393         scalable type and, if so, which registers it should use.  Handle
22394         types that include pure scalable types but are not themselves
22395         pure scalable types.
22396         (aarch64_return_in_memory_1): New function, split out from...
22397         (aarch64_return_in_memory): ...here.  Use pure_scalable_type_info
22398         to analyze whether the type is a pure scalable type and, if so,
22399         whether it should be returned by reference.
22400         (aarch64_layout_arg): Remove orig_mode argument.  Use
22401         pure_scalable_type_info to analyze whether the type is a pure
22402         scalable type and, if so, which registers it should use.  Handle
22403         types that include pure scalable types but are not themselves
22404         pure scalable types.
22405         (aarch64_function_arg): Update call accordingly.
22406         (aarch64_function_arg_advance): Likewise.
22407         (aarch64_pad_reg_upward): On big-endian targets, return false for
22408         pure scalable types that are smaller than 16 bytes.
22409         (aarch64_member_type_forces_blk): New function.
22410         (aapcs_vfp_sub_candidate): Exit early for built-in SVE types.
22411         (aarch64_short_vector_p): Return false for VECTOR_TYPEs that
22412         correspond to built-in SVE types.  Do not rely on a vector mode
22413         if the type includes an pure scalable type.  When returning true,
22414         assert that the mode is not an SVE mode.
22415         (aarch64_vfp_is_call_or_return_candidate): Do not check for SVE
22416         built-in types here.  When returning true, assert that the type
22417         does not have an SVE mode.
22418         (aarch64_can_change_mode_class): Don't allow anything to change
22419         between a predicate mode and a non-predicate mode.  Also don't
22420         allow changes between SVE vector modes and other modes that
22421         might be bigger than 128 bits.
22422         (aarch64_invalid_binary_op): Reject binary operations that mix
22423         SVE and GNU vector types.
22424         (TARGET_MEMBER_TYPE_FORCES_BLK): Define.
22426 2020-04-09  Richard Sandiford  <richard.sandiford@arm.com>
22428         * config/aarch64/aarch64.c (aarch64_attribute_table): Add
22429         "SVE sizeless type".
22430         * config/aarch64/aarch64-sve-builtins.cc (make_type_sizeless)
22431         (sizeless_type_p): New functions.
22432         (register_builtin_types): Apply make_type_sizeless to the type.
22433         (register_tuple_type): Likewise.
22434         (verify_type_context): Use sizeless_type_p instead of builin_type_p.
22436 2020-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
22438         * config/arm/arm_cde.h: Remove `extern "C"` when compiling for
22439         C++.
22441 2020-04-09  Martin Jambor  <mjambor@suse.cz>
22442             Richard Biener  <rguenther@suse.de>
22444         PR tree-optimization/94482
22445         * tree-sra.c (create_access_replacement): Dump new replacement with
22446         TDF_UID.
22447         (sra_modify_expr): Fix handling of cases when the original EXPR writes
22448         to only part of the replacement.
22449         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly verify
22450         the first operand of combinations into REAL/IMAGPART_EXPR and
22451         BIT_FIELD_REF.
22453 2020-04-09  Richard Sandiford  <richard.sandiford@arm.com>
22455         * doc/sourcebuild.texi (check-function-bodies): Treat the third
22456         parameter as a list of option regexps and require each regexp
22457         to match.
22459 2020-04-09  Andrea Corallo  <andrea.corallo@arm.com>
22461         PR target/94530
22462         * config/aarch64/falkor-tag-collision-avoidance.c
22463         (valid_src_p): Fix missing rtx type check.
22465 2020-04-09  Bin Cheng  <bin.cheng@linux.alibaba.com>
22466             Richard Biener  <rguenther@suse.de>
22468         PR tree-optimization/93674
22469         * tree-ssa-loop-ivopts.c (langhooks.h): New include.
22470         (add_iv_candidate_for_use): For iv_use of non integer or pointer type,
22471         or non-mode precision type, add candidate in unsigned type with the
22472         same precision.
22474 2020-04-08  Clement Chigot  <clement.chigot@atos.net>
22476         * config/rs6000/aix61.h (LIB_SPEC): Add -lc128 with -mlong-double-128.
22477         * config/rs6000/aix71.h (LIB_SPEC): Likewise.
22478         * config/rs6000/aix72.h (LIB_SPEC): Likewise.
22480 2020-04-08  Jakub Jelinek  <jakub@redhat.com>
22482         PR middle-end/94526
22483         * cselib.c (autoinc_split): Handle e->val_rtx being SP_DERIVED_VALUE_P
22484         with zero offset.
22485         * reload1.c (eliminate_regs_1): Avoid creating
22486         (plus (reg) (const_int 0)) in DEBUG_INSNs.
22488         PR tree-optimization/94524
22489         * tree-vect-generic.c (expand_vector_divmod): If any elt of op1 is
22490         negative for signed TRUNC_MOD_EXPR, multiply with absolute value of
22491         op1 rather than op1 itself at the end.  Punt for signed modulo by
22492         most negative constant.
22493         * tree-vect-patterns.c (vect_recog_divmod_pattern): Punt for signed
22494         modulo by most negative constant.
22496 2020-04-08  Richard Biener  <rguenther@suse.de>
22498         PR rtl-optimization/93946
22499         * cse.c (cse_insn): Record the tabled expression in
22500         src_related.  Verify a redundant store removal is valid.
22502 2020-04-08  H.J. Lu  <hongjiu.lu@intel.com>
22504         PR target/94417
22505         * config/i386/i386-features.c (rest_of_insert_endbranch): Insert
22506         ENDBR at function entry if function will be called indirectly.
22508 2020-04-08  Jakub Jelinek  <jakub@redhat.com>
22510         PR target/94438
22511         * config/i386/i386.c (ix86_get_mask_mode): Only use int mask for elem_size
22512         1, 2, 4 and 8.
22514 2020-04-08  Martin Liska  <mliska@suse.cz>
22516         PR c++/94314
22517         * gimple.c (gimple_call_operator_delete_p): Rename to...
22518         (gimple_call_replaceable_operator_delete_p): ... this.
22519         Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
22520         * gimple.h (gimple_call_operator_delete_p): Rename to ...
22521         (gimple_call_replaceable_operator_delete_p): ... this.
22522         * tree-core.h (tree_function_decl): Add replaceable_operator
22523         flag.
22524         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1):
22525         Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
22526         (propagate_necessity): Use gimple_call_replaceable_operator_delete_p.
22527         (eliminate_unnecessary_stmts): Likewise.
22528         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
22529         Pack DECL_IS_REPLACEABLE_OPERATOR.
22530         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
22531         Unpack the field here.
22532         * tree.h (DECL_IS_REPLACEABLE_OPERATOR): New.
22533         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): New.
22534         (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): New.
22535         * cgraph.c (cgraph_node::dump): Dump if an operator is replaceable.
22536         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Compare
22537         replaceable operator flags.
22539 2020-04-08  Dennis Zhang  <dennis.zhang@arm.com>
22540             Matthew Malcomson  <matthew.malcomson@arm.com>
22542         * config/arm/arm-builtins.c (CX_IMM_QUALIFIERS): New macro.
22543         (CX_UNARY_QUALIFIERS, CX_BINARY_QUALIFIERS): Likewise.
22544         (CX_TERNARY_QUALIFIERS): Likewise.
22545         (ARM_BUILTIN_CDE_PATTERN_START): Likewise.
22546         (ARM_BUILTIN_CDE_PATTERN_END): Likewise.
22547         (arm_init_acle_builtins): Initialize CDE builtins.
22548         (arm_expand_acle_builtin): Check CDE constant operands.
22549         * config/arm/arm.h (ARM_CDE_CONST_COPROC): New macro to set the range
22550         of CDE constant operand.
22551         * config/arm/arm.c (arm_hard_regno_mode_ok): Support DImode for
22552         TARGET_VFP_BASE.
22553         (ARM_VCDE_CONST_1, ARM_VCDE_CONST_2, ARM_VCDE_CONST_3): Likewise.
22554         * config/arm/arm_cde.h (__arm_vcx1_u32): New macro of ACLE interface.
22555         (__arm_vcx1a_u32, __arm_vcx2_u32, __arm_vcx2a_u32): Likewise.
22556         (__arm_vcx3_u32, __arm_vcx3a_u32, __arm_vcx1d_u64): Likewise.
22557         (__arm_vcx1da_u64, __arm_vcx2d_u64, __arm_vcx2da_u64): Likewise.
22558         (__arm_vcx3d_u64, __arm_vcx3da_u64): Likewise.
22559         * config/arm/arm_cde_builtins.def: New file.
22560         * config/arm/iterators.md (V_reg): New attribute of SI.
22561         * config/arm/predicates.md (const_int_coproc_operand): New.
22562         (const_int_vcde1_operand, const_int_vcde2_operand): New.
22563         (const_int_vcde3_operand): New.
22564         * config/arm/unspecs.md (UNSPEC_VCDE, UNSPEC_VCDEA): New.
22565         * config/arm/vfp.md (arm_vcx1<mode>): New entry.
22566         (arm_vcx1a<mode>, arm_vcx2<mode>, arm_vcx2a<mode>): Likewise.
22567         (arm_vcx3<mode>, arm_vcx3a<mode>): Likewise.
22569 2020-04-08  Dennis Zhang  <dennis.zhang@arm.com>
22571         * config.gcc: Add arm_cde.h.
22572         * config/arm/arm-c.c (arm_cpu_builtins): Define or undefine
22573         __ARM_FEATURE_CDE and __ARM_FEATURE_CDE_COPROC.
22574         * config/arm/arm-cpus.in (cdecp0, cdecp1, ..., cdecp7): New options.
22575         * config/arm/arm.c (arm_option_reconfigure_globals): Configure
22576         arm_arch_cde and arm_arch_cde_coproc to store the feature bits.
22577         * config/arm/arm.h (TARGET_CDE): New macro.
22578         * config/arm/arm_cde.h: New file.
22579         * doc/invoke.texi: Document CDE options +cdecp[0-7].
22580         * doc/sourcebuild.texi (arm_v8m_main_cde_ok): Document new target
22581         supports option.
22582         (arm_v8m_main_cde_fp, arm_v8_1m_main_cde_mve): Likewise.
22584 2020-04-08  Jakub Jelinek  <jakub@redhat.com>
22586         PR rtl-optimization/94516
22587         * postreload.c: Include rtl-iter.h.
22588         (reload_cse_move2add): Handle SP autoinc here by FOR_EACH_SUBRTX_VAR
22589         looking for all MEMs with RTX_AUTOINC operand.
22590         (move2add_note_store): Remove {PRE,POST}_{INC,DEC} handling.
22592 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
22594         * omp-grid.c (grid_eliminate_combined_simd_part): Use
22595         OMP_CLAUSE_CODE to access the omp clause code.
22597 2020-04-07  Jeff Law  <law@redhat.com>
22599         PR rtl-optimization/92264
22600         * config/h8300/h8300.md (mov;add peephole2): Avoid applying when
22601         the destination is the stack pointer.
22603 2020-04-07  Jakub Jelinek  <jakub@redhat.com>
22605         PR rtl-optimization/94291
22606         PR rtl-optimization/84169
22607         * combine.c (try_combine): For split_i2i3, don't assume SET_DEST
22608         must be a REG or SUBREG of REG; if it is not one of these, don't
22609         update LOG_LINKs.
22611 2020-04-07  Richard Biener  <rguenther@suse.de>
22613         PR middle-end/94479
22614         * gimplify.c (gimplify_addr_expr): Also consider generated
22615         MEM_REFs.
22617 2020-04-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22619         * config/arm/arm_mve.h: Add C++ polymorphism and fix preserve MACROs.
22621 2020-04-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22623         * config/arm/arm_mve.h: Cast some pointers to expected types.
22625 2020-04-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22627         * config/arm/arm_mve.h: Replace all uses of vuninitializedq_* with the
22628         same with '__arm_' prefix.
22630 2020-04-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22632         * config/arm/mve.md (mve_vec_extract*): Allow memory operands in set.
22634 2020-04-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22636         * config/arm/arm.c (arm_mve_immediate_check): Removed.
22637         * config/arm/mve.md (MVE_pred2, MVE_constraint2): Added FP types.
22638         (mve_vcvtq_n_to_f_*, mve_vcvtq_n_from_f_*, mve_vqshrnbq_n_*,
22639          mve_vqshrntq_n_*, mve_vqshrunbq_n_s*, mve_vqshruntq_n_s*,
22640          mve_vcvtq_m_n_from_f_*, mve_vcvtq_m_n_to_f_*, mve_vqshrnbq_m_n_*,
22641          mve_vqrshruntq_m_n_s*, mve_vqshrunbq_m_n_s*,
22642          mve_vqshruntq_m_n_s*): Fixed immediate constraints.
22644 2020-04-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22646         * config/arm/arm.d (ashldi3): Don't use lsll for constant 32-bit shifts.
22648 2020-04-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22650         * config/arm/arm_mve.h: Fix v[id]wdup intrinsics.
22651         * config/arm/mve/md: Fix v[id]wdup patterns.
22653 2020-04-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22655         * config/arm/arm.c (output_move_neon): Deal with label + offset cases.
22656         * config/arm/mve.md (*mve_mov<mode>): Handle const vectors.
22658 2020-04-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22660         * config/arm/arm_mve.h: Remove use of typeof for addr pointer parameters
22661         and remove const_ptr enums.
22663 2020-04-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22665         * config/arm/arm_mve.h (vsubq_n): Merge with...
22666         (vsubq): ... this.
22667         (vmulq_n): Merge with...
22668         (vmulq): ... this.
22669         (__ARM_mve_typeid): Simplify scalar and constant detection.
22671 2020-04-07  Jakub Jelinek  <jakub@redhat.com>
22673         PR target/94509
22674         * config/i386/i386-expand.c (expand_vec_perm_pshufb): Fix the check
22675         for inter-lane permutation for 64-byte modes.
22677         PR target/94488
22678         * config/aarch64/aarch64-simd.md (ashl<mode>3, lshr<mode>3,
22679         ashr<mode>3): Force operands[2] into reg whenever it is not CONST_INT.
22680         Assume it is a REG after that instead of testing it and doing FAIL
22681         otherwise.  Formatting fix.
22683 2020-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
22685         * config/rs6000/t-rtems: Delete mcpu=8540 multilib.
22687 2020-04-07  Jakub Jelinek  <jakub@redhat.com>
22689         PR target/94500
22690         * config/i386/i386-expand.c (emit_reduc_half): For V{64QI,32HI}mode
22691         handle i < 64 using avx512bw_lshrv4ti3.  Formatting fixes.
22693 2020-04-06  Jakub Jelinek  <jakub@redhat.com>
22695         * cselib.c (cselib_subst_to_values): For SP_DERIVED_VALUE_P
22696         + const0_rtx return the SP_DERIVED_VALUE_P.
22698 2020-04-06  Richard Sandiford  <richard.sandiford@arm.com>
22700         PR rtl-optimization/92989
22701         * lra-lives.c (process_bb_lives): Do not treat eh_return data
22702         registers as being live at the beginning of the EH receiver.
22704 2020-04-05 Zachary Spytz  <zspytz@gmail.com>
22706         * extend.texi: Add free to list of ISO C90 functions that
22707         are recognized by the compiler.
22709 2020-04-05 Nagaraju Mekala <nmekala@xilix.com>
22711         * config/microblaze/microblaze.c (microblaze_must_save_register): Check
22712         for fast_interrupt.
22714         * config/microblaze/microblaze.md (trap): Update output pattern.
22716 2020-04-04  Hannes Domani  <ssbssa@yahoo.de>
22717             Jakub Jelinek  <jakub@redhat.com>
22719         PR debug/94459
22720         * dwarf2out.c (gen_subprogram_die): Look through references, pointers,
22721         arrays, pointer-to-members, function types and qualifiers when
22722         checking if in-class DIE had an 'auto' or 'decltype(auto)' return type
22723         to emit type again on definition.
22725 2020-04-04  Jan Hubicka  <hubicka@ucw.cz>
22727         PR ipa/93940
22728         * ipa-fnsummary.c (vrp_will_run_p): New function.
22729         (fre_will_run_p): New function.
22730         (evaluate_properties_for_edge): Use it.
22731         * ipa-inline.c (can_inline_edge_by_limits_p): Do not inline
22732         !optimize_debug to optimize_debug.
22734 2020-04-04  Jakub Jelinek  <jakub@redhat.com>
22736         PR rtl-optimization/94468
22737         * cselib.c (references_value_p): Formatting fix.
22738         (cselib_useless_value_p): New function.
22739         (discard_useless_locs, discard_useless_values,
22740         cselib_invalidate_regno_val, cselib_invalidate_mem,
22741         cselib_record_set): Use it instead of
22742         v->locs == 0 && !PRESERVED_VALUE_P (v->val_rtx).
22744         PR debug/94441
22745         * tree-iterator.h (expr_single): Declare.
22746         * tree-iterator.c (expr_single): New function.
22747         * tree.h (protected_set_expr_location_if_unset): Declare.
22748         * tree.c (protected_set_expr_location): Use expr_single.
22749         (protected_set_expr_location_if_unset): New function.
22751 2020-04-03  Jeff Law  <law@redhat.com>
22753         PR rtl-optimization/92264
22754         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Handle
22755         reloading of auto-increment addressing modes.
22757 2020-04-03  H.J. Lu  <hongjiu.lu@intel.com>
22759         PR target/94467
22760         * config/i386/sse.md (ssse3_pshufbv8qi3): Mark scratch operand
22761         as earlyclobber.
22763 2020-04-03  Jeff Law  <law@redhat.com>
22765         PR rtl-optimization/92264
22766         * config/m32r/m32r.c (m32r_output_block_move): Properly account for
22767         post-increment addressing of source operands as well as residuals
22768         when computing any adjustments to the input pointer.
22770 2020-04-03  Jakub Jelinek  <jakub@redhat.com>
22772         PR target/94460
22773         * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
22774         avx2_ph<plusminus_mnemonic>dv8si3): Fix up RTL pattern to do
22775         second half of first lane from first lane of second operand and
22776         first half of second lane from second lane of first operand.
22778 2020-04-03  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22780         * config/arm/arm_mve.h: Condition the header file on __ARM_FEATURE_MVE.
22782 2020-04-03  Tamar Christina  <tamar.christina@arm.com>
22784         PR target/94396
22785         * common/config/aarch64/aarch64-common.c
22786         (aarch64_get_extension_string_for_isa_flags): Handle default flags.
22788 2020-04-03  Richard Biener  <rguenther@suse.de>
22790         PR middle-end/94465
22791         * tree.c (array_ref_low_bound): Deal with released SSA names
22792         in index position.
22794 2020-04-03  Kwok Cheung Yeung  <kcy@codesourcery.com>
22796         * config/gcn/gcn.c (print_operand): Handle unordered comparison
22797         operators.
22798         * config/gcn/predicates.md (gcn_fp_compare_operator): Add unordered
22799         comparison operators.
22801 2020-04-03  Kewen Lin  <linkw@gcc.gnu.org>
22803         PR tree-optimization/94443
22804         * tree-vect-loop.c (vectorizable_live_operation): Use
22805         gsi_insert_seq_before to replace gsi_insert_before.
22807 2020-04-03  Martin Liska  <mliska@suse.cz>
22809         PR ipa/94445
22810         * ipa-icf-gimple.c (func_checker::compare_gimple_call):
22811           Compare type attributes for gimple_call_fntypes.
22813 2020-04-02  Sandra Loosemore  <sandra@codesourcery.com>
22815         * alias.c (get_alias_set): Fix comment typos.
22817 2020-04-02  Fritz Reese  <foreese@gcc.gnu.org>
22819         PR fortran/85982
22820         * fortran/decl.c (match_attr_spec): Lump COMP_STRUCTURE/COMP_MAP into
22821         attribute checking used by TYPE.
22823 2020-04-02  Martin Jambor  <mjambor@suse.cz>
22825         PR ipa/92676
22826         * ipa-sra.c (struct caller_issues): New fields candidate and
22827         call_from_outside_comdat.
22828         (check_for_caller_issues): Check for calls from outsied of
22829         candidate's same_comdat_group.
22830         (check_all_callers_for_issues): Set up issues.candidate, check result
22831         of the new check.
22832         (mark_callers_calls_comdat_local): New function.
22833         (process_isra_node_results): Set calls_comdat_local of callers if
22834         appropriate.
22836 2020-04-02  Richard Biener  <rguenther@suse.de>
22838         PR c/94392
22839         * common.opt (ffinite-loops): Initialize to zero.
22840         * opts.c (default_options_table): Remove OPT_ffinite_loops
22841         entry.
22842         * cfgloop.h (loop::finite_p): New member.
22843         * cfgloopmanip.c (copy_loop_info): Copy finite_p.
22844         * ipa-icf-gimple.c (func_checker::compare_loops): Compare
22845         finite_p.
22846         * lto-streamer-in.c (input_cfg): Stream finite_p.
22847         * lto-streamer-out.c (output_cfg): Likewise.
22848         * tree-cfg.c (replace_loop_annotate): Initialize finite_p
22849         from flag_finite_loops at CFG build time.
22850         * tree-ssa-loop-niter.c (finite_loop_p): Check the loops
22851         finite_p flag instead of flag_finite_loops.
22852         * doc/invoke.texi (ffinite-loops): Adjust documentation of
22853         default setting.
22855 2020-04-02  Richard Biener  <rguenther@suse.de>
22857         PR debug/94450
22858         * dwarf2out.c (dwarf2out_early_finish): Remove code emitting
22859         DW_TAG_imported_unit.
22861 2020-04-02  Maciej W. Rozycki  <macro@wdc.com>
22863         * doc/install.texi (Specific) <riscv32-*-elf, riscv32-*-linux>
22864         <riscv64-*-elf, riscv64-*-linux>: Update binutils requirement to
22865         2.30.
22867 2020-04-02  Kewen Lin  <linkw@gcc.gnu.org>
22869         PR tree-optimization/94401
22870         * tree-vect-loop.c (vectorizable_load): Handle VMAT_CONTIGUOUS_REVERSE
22871         access type when loading halves of vector to avoid peeling for gaps.
22873 2020-04-02  Jakub Jelinek  <jakub@redhat.com>
22875         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add a space in
22876         between a string literal and MIPS_SYSVERSION_SPEC macro.
22878 2020-04-02  Martin Jambor  <mjambor@suse.cz>
22880         * doc/invoke.texi (Optimize Options): Document sra-max-propagations.
22882 2020-04-02  Jakub Jelinek  <jakub@redhat.com>
22884         PR rtl-optimization/92264
22885         * params.opt (-param=max-find-base-term-values=): Decrease default
22886         from 2000 to 200.
22888         PR rtl-optimization/92264
22889         * rtl.h (struct rtx_def): Mention that call bit is used as
22890         SP_DERIVED_VALUE_P in cselib.c.
22891         * cselib.c (SP_DERIVED_VALUE_P): Define.
22892         (PRESERVED_VALUE_P, SP_BASED_VALUE_P): Move definitions earlier.
22893         (cselib_hasher::equal): Handle equality between SP_DERIVED_VALUE_P
22894         val_rtx and sp based expression where offsets cancel each other.
22895         (preserve_constants_and_equivs): Formatting fix.
22896         (cselib_reset_table): Add reverse op loc to SP_DERIVED_VALUE_P
22897         locs list for cfa_base_preserved_val if needed.  Formatting fix.
22898         (autoinc_split): If the to be returned value is a REG, MEM or
22899         VALUE which has SP_DERIVED_VALUE_P + CONST_INT as one of its
22900         locs, return the SP_DERIVED_VALUE_P VALUE and adjust *off.
22901         (rtx_equal_for_cselib_1): Call autoinc_split even if both
22902         expressions are PLUS in Pmode with CONST_INT second operands.
22903         Handle SP_DERIVED_VALUE_P cases.
22904         (cselib_hash_plus_const_int): New function.
22905         (cselib_hash_rtx): Use it for PLUS in Pmode with CONST_INT
22906         second operand, as well as for PRE_DEC etc. that ought to be
22907         hashed the same way.
22908         (cselib_subst_to_values): Substitute PLUS with Pmode and
22909         CONST_INT operand if the first operand is a VALUE which has
22910         SP_DERIVED_VALUE_P + CONST_INT as one of its locs for the
22911         SP_DERIVED_VALUE_P + adjusted offset.
22912         (cselib_lookup_1): When creating a new VALUE for stack_pointer_rtx,
22913         set SP_DERIVED_VALUE_P on it.  Set PRESERVED_VALUE_P when adding
22914         SP_DERIVED_VALUE_P PRESERVED_VALUE_P subseted VALUE location.
22915         * var-tracking.c (vt_initialize): Call cselib_add_permanent_equiv
22916         on the sp value before calling cselib_add_permanent_equiv on the
22917         cfa_base value.
22918         * dse.c (check_for_inc_dec_1, check_for_inc_dec): Punt on RTX_AUTOINC
22919         in the insn without REG_INC note.
22920         (replace_read): Punt on RTX_AUTOINC in the *loc being replaced.
22921         Punt on invalid insns added by copy_to_mode_reg.  Formatting fixes.
22923         PR target/94435
22924         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): For
22925         y_mode E_[QH]Imode and y being a CONST_INT, change y_mode to SImode.
22927 2020-04-02  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
22929         PR target/94317
22930         * config/arm/arm-builtins.c (LDRGBWBXU_QUALIFIERS): Define.
22931         (LDRGBWBXU_Z_QUALIFIERS): Likewise.
22932         * config/arm/arm_mve.h (__arm_vldrdq_gather_base_wb_s64): Modify
22933         intrinsic defintion by adding a new builtin call to writeback into base
22934         address.
22935         (__arm_vldrdq_gather_base_wb_u64): Likewise.
22936         (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
22937         (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
22938         (__arm_vldrwq_gather_base_wb_s32): Likewise.
22939         (__arm_vldrwq_gather_base_wb_u32): Likewise.
22940         (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
22941         (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
22942         (__arm_vldrwq_gather_base_wb_f32): Likewise.
22943         (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
22944         * config/arm/arm_mve_builtins.def (vldrwq_gather_base_wb_z_u): Modify
22945         builtin's qualifier.
22946         (vldrdq_gather_base_wb_z_u): Likewise.
22947         (vldrwq_gather_base_wb_u): Likewise.
22948         (vldrdq_gather_base_wb_u): Likewise.
22949         (vldrwq_gather_base_wb_z_s): Likewise.
22950         (vldrwq_gather_base_wb_z_f): Likewise.
22951         (vldrdq_gather_base_wb_z_s): Likewise.
22952         (vldrwq_gather_base_wb_s): Likewise.
22953         (vldrwq_gather_base_wb_f): Likewise.
22954         (vldrdq_gather_base_wb_s): Likewise.
22955         (vldrwq_gather_base_nowb_z_u): Define builtin.
22956         (vldrdq_gather_base_nowb_z_u): Likewise.
22957         (vldrwq_gather_base_nowb_u): Likewise.
22958         (vldrdq_gather_base_nowb_u): Likewise.
22959         (vldrwq_gather_base_nowb_z_s): Likewise.
22960         (vldrwq_gather_base_nowb_z_f): Likewise.
22961         (vldrdq_gather_base_nowb_z_s): Likewise.
22962         (vldrwq_gather_base_nowb_s): Likewise.
22963         (vldrwq_gather_base_nowb_f): Likewise.
22964         (vldrdq_gather_base_nowb_s): Likewise.
22965         * config/arm/mve.md (mve_vldrwq_gather_base_nowb_<supf>v4si): Define RTL
22966         pattern.
22967         (mve_vldrwq_gather_base_wb_<supf>v4si): Modify RTL pattern.
22968         (mve_vldrwq_gather_base_nowb_z_<supf>v4si): Define RTL pattern.
22969         (mve_vldrwq_gather_base_wb_z_<supf>v4si): Modify RTL pattern.
22970         (mve_vldrwq_gather_base_wb_fv4sf): Modify RTL pattern.
22971         (mve_vldrwq_gather_base_nowb_fv4sf): Define RTL pattern.
22972         (mve_vldrwq_gather_base_wb_z_fv4sf): Modify RTL pattern.
22973         (mve_vldrwq_gather_base_nowb_z_fv4sf): Define RTL pattern.
22974         (mve_vldrdq_gather_base_nowb_<supf>v4di): Define RTL pattern.
22975         (mve_vldrdq_gather_base_wb_<supf>v4di):  Modify RTL pattern.
22976         (mve_vldrdq_gather_base_nowb_z_<supf>v4di): Define RTL pattern.
22977         (mve_vldrdq_gather_base_wb_z_<supf>v4di):  Modify RTL pattern.
22979 2020-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
22981         * config/s390/vector.md ("<ti*>add<mode>3", "mul<mode>3")
22982         ("and<mode>3", "notand<mode>3", "ior<mode>3", "ior_not<mode>3")
22983         ("xor<mode>3", "notxor<mode>3", "smin<mode>3", "smax<mode>3")
22984         ("umin<mode>3", "umax<mode>3", "vec_widen_smult_even_<mode>")
22985         ("vec_widen_umult_even_<mode>", "vec_widen_smult_odd_<mode>")
22986         ("vec_widen_umult_odd_<mode>", "add<mode>3", "sub<mode>3")
22987         ("mul<mode>3", "fma<mode>4", "fms<mode>4", "neg_fma<mode>4")
22988         ("neg_fms<mode>4", "*smax<mode>3_vxe", "*smaxv2df3_vx")
22989         ("*smin<mode>3_vxe", "*sminv2df3_vx"): Remove % constraint
22990         modifier.
22991         ("vec_widen_umult_lo_<mode>", "vec_widen_umult_hi_<mode>")
22992         ("vec_widen_smult_lo_<mode>", "vec_widen_smult_hi_<mode>"):
22993         Remove constraints from expander.
22994         * config/s390/vx-builtins.md ("vacc<bhfgq>_<mode>", "vacq")
22995         ("vacccq", "vec_avg<mode>", "vec_avgu<mode>", "vec_vmal<mode>")
22996         ("vec_vmah<mode>", "vec_vmalh<mode>", "vec_vmae<mode>")
22997         ("vec_vmale<mode>", "vec_vmao<mode>", "vec_vmalo<mode>")
22998         ("vec_smulh<mode>", "vec_umulh<mode>", "vec_nor<mode>3")
22999         ("vfmin<mode>", "vfmax<mode>"): Remove % constraint modifier.
23001 2020-04-01  Peter Bergner  <bergner@linux.ibm.com>
23003         PR rtl-optimization/94123
23004         * lower-subreg.c (pass_lower_subreg3::gate): Remove test for
23005         flag_split_wide_types_early.
23007 2020-04-01  Joerg Sonnenberger  <joerg@bec.de>
23009         * doc/extend.texi (Common Function Attributes): Fix typo.
23011 2020-04-01  Segher Boessenkool  <segher@kernel.crashing.org>
23013         PR target/94420
23014         * config/rs6000/rs6000.md (*tocref<mode> for P): Add insn condition
23015         on operands[1].
23017 2020-04-01  Zackery Spytz  <zspytz@gmail.com>
23019         * doc/extend.texi: Fix a typo in the documentation of the
23020         copy function attribute.
23022 2020-04-01  Jakub Jelinek  <jakub@redhat.com>
23024         PR middle-end/94423
23025         * tree-object-size.c (pass_object_sizes::execute): Don't call
23026         replace_uses_by for SSA_NAME_OCCURS_IN_ABNORMAL_PHI lhs, instead
23027         call replace_call_with_value.
23029 2020-04-01  Kewen Lin  <linkw@gcc.gnu.org>
23031         PR tree-optimization/94043
23032         * tree-vect-loop.c (vectorizable_live_operation): Generate loop-closed
23033         phi for vec_lhs and use it for lane extraction.
23035 2020-03-31  Felix Yang  <felix.yang@huawei.com>
23037         PR tree-optimization/94398
23038         * tree-vect-stmts.c (vectorizable_store): Instead of calling
23039         vect_supportable_dr_alignment, set alignment_support_scheme to
23040         dr_unaligned_supported for gather-scatter accesses.
23041         (vectorizable_load): Likewise.
23043 2020-03-31  Andrew Stubbs  <ams@codesourcery.com>
23045         * config/gcn/gcn-valu.md (V_QI, V_HI, V_HF, V_SI, V_SF, V_DI, V_DF):
23046         New mode iterators.
23047         (vnsi, VnSI, vndi, VnDI): New mode attributes.
23048         (mov<mode>): Use <VnDI> in place of V64DI.
23049         (mov<mode>_exec): Likewise.
23050         (mov<mode>_sgprbase): Likewise.
23051         (reload_out<mode>): Likewise.
23052         (*vec_set<mode>_1): Use GET_MODE_NUNITS instead of constant 64.
23053         (gather_load<mode>v64si): Rename to ...
23054         (gather_load<mode><vnsi>): ... this, and use <VnSI> in place of V64SI,
23055         and <VnDI> in place of V64DI.
23056         (gather<mode>_insn_1offset<exec>): Use <VnDI> in place of V64DI.
23057         (gather<mode>_insn_1offset_ds<exec>): Use <VnSI> in place of V64SI.
23058         (gather<mode>_insn_2offsets<exec>): Use <VnSI> and <VnDI>.
23059         (scatter_store<mode>v64si): Rename to ...
23060         (scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
23061         (scatter<mode>_expr<exec_scatter>): Use <VnSI> and <VnDI>.
23062         (scatter<mode>_insn_1offset<exec_scatter>): Likewise.
23063         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
23064         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
23065         (ds_bpermute<mode>): Use <VnSI>.
23066         (addv64si3_vcc<exec_vcc>): Rename to ...
23067         (add<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
23068         (addv64si3_vcc_dup<exec_vcc>): Rename to ...
23069         (add<mode>3_vcc_dup<exec_vcc>): ... this, and use V_SI.
23070         (addcv64si3<exec_vcc>): Rename to ...
23071         (addc<mode>3<exec_vcc>): ... this, and use V_SI.
23072         (subv64si3_vcc<exec_vcc>): Rename to ...
23073         (sub<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
23074         (subcv64si3<exec_vcc>): Rename to ...
23075         (subc<mode>3<exec_vcc>): ... this, and use V_SI.
23076         (addv64di3): Rename to ...
23077         (add<mode>3): ... this, and use V_DI.
23078         (addv64di3_exec): Rename to ...
23079         (add<mode>3_exec): ... this, and use V_DI.
23080         (subv64di3): Rename to ...
23081         (sub<mode>3): ... this, and use V_DI.
23082         (subv64di3_exec): Rename to ...
23083         (sub<mode>3_exec): ... this, and use V_DI.
23084         (addv64di3_zext): Rename to ...
23085         (add<mode>3_zext): ... this, and use V_DI and <VnSI>.
23086         (addv64di3_zext_exec): Rename to ...
23087         (add<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
23088         (addv64di3_zext_dup): Rename to ...
23089         (add<mode>3_zext_dup): ... this, and use V_DI and <VnSI>.
23090         (addv64di3_zext_dup_exec): Rename to ...
23091         (add<mode>3_zext_dup_exec): ... this, and use V_DI and <VnSI>.
23092         (addv64di3_zext_dup2): Rename to ...
23093         (add<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
23094         (addv64di3_zext_dup2_exec): Rename to ...
23095         (add<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
23096         (addv64di3_sext_dup2): Rename to ...
23097         (add<mode>3_sext_dup2): ... this, and use V_DI and <VnSI>.
23098         (addv64di3_sext_dup2_exec): Rename to ...
23099         (add<mode>3_sext_dup2_exec): ... this, and use V_DI and <VnSI>.
23100         (<su>mulv64si3_highpart<exec>): Rename to ...
23101         (<su>mul<mode>3_highpart<exec>): ... this and use V_SI and <VnDI>.
23102         (mulv64di3): Rename to ...
23103         (mul<mode>3): ... this, and use V_DI and <VnSI>.
23104         (mulv64di3_exec): Rename to ...
23105         (mul<mode>3_exec): ... this, and use V_DI and <VnSI>.
23106         (mulv64di3_zext): Rename to ...
23107         (mul<mode>3_zext): ... this, and use V_DI and <VnSI>.
23108         (mulv64di3_zext_exec): Rename to ...
23109         (mul<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
23110         (mulv64di3_zext_dup2): Rename to ...
23111         (mul<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
23112         (mulv64di3_zext_dup2_exec): Rename to ...
23113         (mul<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
23114         (<expander>v64di3): Rename to ...
23115         (<expander><mode>3): ... this, and use V_DI and <VnSI>.
23116         (<expander>v64di3_exec): Rename to ...
23117         (<expander><mode>3_exec): ... this, and use V_DI and <VnSI>.
23118         (<expander>v64si3<exec>): Rename to ...
23119         (<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
23120         (v<expander>v64si3<exec>): Rename to ...
23121         (v<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
23122         (<expander>v64si3<exec>): Rename to ...
23123         (<expander><vnsi>3<exec>): ... this, and use V_SI.
23124         (subv64df3<exec>): Rename to ...
23125         (sub<mode>3<exec>): ... this, and use V_DF.
23126         (truncv64di<mode>2): Rename to ...
23127         (trunc<vndi><mode>2): ... this, and use <VnDI>.
23128         (truncv64di<mode>2_exec): Rename to ...
23129         (trunc<vndi><mode>2_exec): ... this, and use <VnDI>.
23130         (<convop><mode>v64di2): Rename to ...
23131         (<convop><mode><vndi>2): ... this, and use <VnDI>.
23132         (<convop><mode>v64di2_exec): Rename to ...
23133         (<convop><mode><vndi>2_exec): ... this, and use <VnDI>.
23134         (vec_cmp<u>v64qidi): Rename to ...
23135         (vec_cmp<u><mode>di): ... this, and use <VnSI>.
23136         (vec_cmp<u>v64qidi_exec): Rename to ...
23137         (vec_cmp<u><mode>di_exec): ... this, and use <VnSI>.
23138         (vcond_mask_<mode>di): Use <VnDI>.
23139         (maskload<mode>di): Likewise.
23140         (maskstore<mode>di): Likewise.
23141         (mask_gather_load<mode>v64si): Rename to ...
23142         (mask_gather_load<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
23143         (mask_scatter_store<mode>v64si): Rename to ...
23144         (mask_scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
23145         (*<reduc_op>_dpp_shr_v64di): Rename to ...
23146         (*<reduc_op>_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
23147         (*plus_carry_in_dpp_shr_v64si): Rename to ...
23148         (*plus_carry_in_dpp_shr_<mode>): ... this, and use V_SI.
23149         (*plus_carry_dpp_shr_v64di): Rename to ...
23150         (*plus_carry_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
23151         (vec_seriesv64si): Rename to ...
23152         (vec_series<mode>): ... this, and use V_SI.
23153         (vec_seriesv64di): Rename to ...
23154         (vec_series<mode>): ... this, and use V_DI.
23156 2020-03-31  Claudiu Zissulescu  <claziss@synopsys.com>
23158         * config/arc/arc.c (arc_print_operand): Use
23159         HOST_WIDE_INT_PRINT_DEC macro.
23161 2020-03-31  Claudiu Zissulescu  <claziss@synopsys.com>
23163         * config/arc/arc.h (ASM_FORMAT_PRIVATE_NAME): Fix it.
23165 2020-03-31  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
23167         * config/arm/arm_mve.h (vbicq): Define MVE intrinsic polymorphic
23168         variant.
23169         (__arm_vbicq): Likewise.
23171 2020-03-31  Vineet Gupta <vgupta@synopsys.com>
23173         * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700.
23175 2020-03-31  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
23177         * config/arm/arm_mve.h (vaddlvq): Move the polymorphic variant to the
23178         common section of both MVE Integer and MVE Floating Point.
23179         (vaddvq): Likewise.
23180         (vaddlvq_p): Likewise.
23181         (vaddvaq): Likewise.
23182         (vaddvq_p): Likewise.
23183         (vcmpcsq): Likewise.
23184         (vmlsdavxq): Likewise.
23185         (vmlsdavq): Likewise.
23186         (vmladavxq): Likewise.
23187         (vmladavq): Likewise.
23188         (vminvq): Likewise.
23189         (vminavq): Likewise.
23190         (vmaxvq): Likewise.
23191         (vmaxavq): Likewise.
23192         (vmlaldavq): Likewise.
23193         (vcmphiq): Likewise.
23194         (vaddlvaq): Likewise.
23195         (vrmlaldavhq): Likewise.
23196         (vrmlaldavhxq): Likewise.
23197         (vrmlsldavhq): Likewise.
23198         (vrmlsldavhxq): Likewise.
23199         (vmlsldavxq): Likewise.
23200         (vmlsldavq): Likewise.
23201         (vabavq): Likewise.
23202         (vrmlaldavhaq): Likewise.
23203         (vcmpgeq_m_n): Likewise.
23204         (vmlsdavxq_p): Likewise.
23205         (vmlsdavq_p): Likewise.
23206         (vmlsdavaxq): Likewise.
23207         (vmlsdavaq): Likewise.
23208         (vaddvaq_p): Likewise.
23209         (vcmpcsq_m_n): Likewise.
23210         (vcmpcsq_m): Likewise.
23211         (vmladavxq_p): Likewise.
23212         (vmladavq_p): Likewise.
23213         (vmladavaxq): Likewise.
23214         (vmladavaq): Likewise.
23215         (vminvq_p): Likewise.
23216         (vminavq_p): Likewise.
23217         (vmaxvq_p): Likewise.
23218         (vmaxavq_p): Likewise.
23219         (vcmphiq_m): Likewise.
23220         (vaddlvaq_p): Likewise.
23221         (vmlaldavaq): Likewise.
23222         (vmlaldavaxq): Likewise.
23223         (vmlaldavq_p): Likewise.
23224         (vmlaldavxq_p): Likewise.
23225         (vmlsldavaq): Likewise.
23226         (vmlsldavaxq): Likewise.
23227         (vmlsldavq_p): Likewise.
23228         (vmlsldavxq_p): Likewise.
23229         (vrmlaldavhaxq): Likewise.
23230         (vrmlaldavhq_p): Likewise.
23231         (vrmlaldavhxq_p): Likewise.
23232         (vrmlsldavhaq): Likewise.
23233         (vrmlsldavhaxq): Likewise.
23234         (vrmlsldavhq_p): Likewise.
23235         (vrmlsldavhxq_p): Likewise.
23236         (vabavq_p): Likewise.
23237         (vmladavaq_p): Likewise.
23238         (vstrbq_scatter_offset): Likewise.
23239         (vstrbq_p): Likewise.
23240         (vstrbq_scatter_offset_p): Likewise.
23241         (vstrdq_scatter_base_p): Likewise.
23242         (vstrdq_scatter_base): Likewise.
23243         (vstrdq_scatter_offset_p): Likewise.
23244         (vstrdq_scatter_offset): Likewise.
23245         (vstrdq_scatter_shifted_offset_p): Likewise.
23246         (vstrdq_scatter_shifted_offset): Likewise.
23247         (vmaxq_x): Likewise.
23248         (vminq_x): Likewise.
23249         (vmovlbq_x): Likewise.
23250         (vmovltq_x): Likewise.
23251         (vmulhq_x): Likewise.
23252         (vmullbq_int_x): Likewise.
23253         (vmullbq_poly_x): Likewise.
23254         (vmulltq_int_x): Likewise.
23255         (vmulltq_poly_x): Likewise.
23256         (vstrbq): Likewise.
23258 2020-03-31  Jakub Jelinek  <jakub@redhat.com>
23260         PR target/94368
23261         * config/aarch64/constraints.md (Uph): New constraint.
23262         * config/aarch64/atomics.md (cas_short_expected_imm): New mode attr.
23263         (@aarch64_compare_and_swap<mode>): Use it instead of n in operand 2's
23264         constraint.
23266 2020-03-31  Marc Glisse  <marc.glisse@inria.fr>
23267             Jakub Jelinek  <jakub@redhat.com>
23269         PR middle-end/94412
23270         * fold-const.c (fold_binary_loc) <case TRUNC_DIV_EXPR>: Use
23271         ANY_INTEGRAL_TYPE_P instead of INTEGRAL_TYPE_P.
23273 2020-03-31  Jakub Jelinek  <jakub@redhat.com>
23275         PR tree-optimization/94403
23276         * gimple-ssa-store-merging.c (verify_symbolic_number_p): Allow also
23277         ENUMERAL_TYPE lhs_type.
23279         PR rtl-optimization/94344
23280         * tree-ssa-forwprop.c (simplify_rotate): Handle also same precision
23281         conversions, either on both operands of |^+ or just one.  Handle
23282         also extra same precision conversion on RSHIFT_EXPR first operand
23283         provided RSHIFT_EXPR is performed in unsigned type.
23285 2020-03-30  David Malcolm  <dmalcolm@redhat.com>
23287         * lra.c (finish_insn_code_data_once): Set the array elements
23288         to NULL after freeing them.
23290 2020-03-30  Andreas Schwab  <schwab@suse.de>
23292         * config/host-linux.c (TRY_EMPTY_VM_SPACE) [__riscv && __LP64__]:
23293         Define.
23295 2020-03-30  Will Schmidt  <will_schmidt@vnet.ibm.com>
23297         * config/rs6000/rs6000-call.c altivec_init_builtins(): Remove code
23298         to skip defining builtins based on builtin_mask.
23300 2020-03-30  Jakub Jelinek  <jakub@redhat.com>
23302         PR target/94343
23303         * config/i386/sse.md (<mask_codefor>one_cmpl<mode>2<mask_name>): If
23304         !TARGET_AVX512VL, use 512-bit vpternlog and make sure the input
23305         operand is a register.  Don't enable masked variants for V*[QH]Imode.
23307         PR target/93069
23308         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Use
23309         <store_mask_constraint> instead of m in output operand constraint.
23310         (vec_extract_hi_<mode><mask_name>): Use <mask_operand2> instead of
23311         %{%3%}.
23313 2020-03-30  Alan Modra  <amodra@gmail.com>
23315         * config/rs6000/rs6000.c (rs6000_call_aix): Emit cookie to pattern.
23316         (rs6000_indirect_call_template_1): Adjust to suit.
23317         * config/rs6000/rs6000.md (call_local): Merge call_local32,
23318         call_local64, and call_local_aix.
23319         (call_value_local): Simlarly.
23320         (call_nonlocal_aix, call_value_nonlocal_aix): Adjust rtl to suit,
23321         and disable pattern when CALL_LONG.
23322         (call_indirect_aix, call_value_indirect_aix): Adjust rtl.
23323         (call_indirect_elfv2, call_indirect_pcrel): Likewise.
23324         (call_value_indirect_elfv2, call_value_indirect_pcrel): Likewise.
23326 2020-03-29  H.J. Lu  <hongjiu.lu@intel.com>
23328         PR driver/94381
23329         * doc/invoke.texi: Update -falign-functions, -falign-loops and
23330         -falign-jumps documentation.
23332 2020-03-29  Martin Liska  <mliska@suse.cz>
23334         PR ipa/94363
23335         * cgraphunit.c (process_function_and_variable_attributes): Remove
23336         double 'attribute' words.
23338 2020-03-29  John David Anglin  <dave.anglin@bell.net>
23340         * config/pa/pa.c (pa_asm_output_aligned_bss): Delete duplicate
23341         .align output.
23343 2020-03-28  Jakub Jelinek  <jakub@redhat.com>
23345         PR c/93573
23346         * c-decl.c (grokdeclarator): After issuing errors, set size_int_const
23347         to true after setting size to integer_one_node.
23349         PR tree-optimization/94329
23350         * tree-ssa-reassoc.c (reassociate_bb): When calling reassoc_remove_stmt
23351         on the last stmt in a bb, make sure gsi_prev isn't done immediately
23352         after gsi_last_bb.
23354 2020-03-27  Alan Modra  <amodra@gmail.com>
23356         PR target/94145
23357         * config/rs6000/rs6000.c (rs6000_longcall_ref): Use unspec_volatile
23358         for PLT16_LO and PLT_PCREL.
23359         * config/rs6000/rs6000.md (UNSPEC_PLT16_LO, UNSPEC_PLT_PCREL): Remove.
23360         (UNSPECV_PLT16_LO, UNSPECV_PLT_PCREL): Define.
23361         (pltseq_plt16_lo_, pltseq_plt_pcrel): Use unspec_volatile.
23363 2020-03-27  Martin Sebor  <msebor@redhat.com>
23365         PR c++/94098
23366         * calls.c (init_attr_rdwr_indices): Iterate over all access attributes.
23368 2020-03-27  Andrew Stubbs  <ams@codesourcery.com>
23370         * config/gcn/gcn-valu.md:
23371         (VEC_SUBDWORD_MODE): Rename to V_QIHI throughout.
23372         (VEC_1REG_MODE): Delete.
23373         (VEC_1REG_ALT): Delete.
23374         (VEC_ALL1REG_MODE): Rename to V_1REG throughout.
23375         (VEC_1REG_INT_MODE): Delete.
23376         (VEC_ALL1REG_INT_MODE): Rename to V_INT_1REG throughout.
23377         (VEC_ALL1REG_INT_ALT): Rename to V_INT_1REG_ALT throughout.
23378         (VEC_2REG_MODE): Rename to V_2REG throughout.
23379         (VEC_REG_MODE): Rename to V_noHI throughout.
23380         (VEC_ALLREG_MODE): Rename to V_ALL throughout.
23381         (VEC_ALLREG_ALT):  Rename to V_ALL_ALT throughout.
23382         (VEC_ALLREG_INT_MODE): Rename to V_INT throughout.
23383         (VEC_INT_MODE): Delete.
23384         (VEC_FP_MODE): Rename to V_FP throughout and move to top.
23385         (VEC_FP_1REG_MODE): Rename to V_FP_1REG throughout and move to top.
23386         (FP_MODE): Delete and replace with FP throughout.
23387         (FP_1REG_MODE): Delete and replace with FP_1REG throughout.
23388         (VCMP_MODE): Rename to V_noQI throughout and move to top.
23389         (VCMP_MODE_INT): Rename to V_INT_noQI throughout and move to top.
23390         * config/gcn/gcn.md (FP): New mode iterator.
23391         (FP_1REG): New mode iterator.
23393 2020-03-27  David Malcolm  <dmalcolm@redhat.com>
23395         * doc/invoke.texi (-fdump-analyzer-supergraph): Document that this
23396         now emits two .dot files.
23397         * graphviz.cc (graphviz_out::begin_tr): Only emit a TR, not a TD.
23398         (graphviz_out::end_tr): Only close a TR, not a TD.
23399         (graphviz_out::begin_td): New.
23400         (graphviz_out::end_td): New.
23401         (graphviz_out::begin_trtd): New, replacing the old implementation
23402         of graphviz_out::begin_tr.
23403         (graphviz_out::end_tdtr): New, replacing the old implementation
23404         of graphviz_out::end_tr.
23405         * graphviz.h (graphviz_out::begin_td): New decl.
23406         (graphviz_out::end_td): New decl.
23407         (graphviz_out::begin_trtd): New decl.
23408         (graphviz_out::end_tdtr): New decl.
23410 2020-03-27  Richard Biener  <rguenther@suse.de>
23412         PR debug/94273
23413         * dwarf2out.c (should_emit_struct_debug): Return false for
23414         DINFO_LEVEL_TERSE.
23416 2020-03-27  Richard Biener  <rguenther@suse.de>
23418         PR tree-optimization/94352
23419         * tree-ssa-propagate.c (ssa_prop_init): Move seeding of the
23420         worklist ...
23421         (ssa_propagation_engine::ssa_propagate): ... here after
23422         initializing curr_order.
23424 2020-03-27  Kewen Lin  <linkw@gcc.gnu.org>
23426         PR tree-optimization/90332
23427         * tree-vect-stmts.c (vector_vector_composition_type): New function.
23428         (get_group_load_store_type): Adjust to call
23429         vector_vector_composition_type, extend it to construct with scalar
23430         types.
23431         (vectorizable_load): Likewise.
23433 2020-03-27  Roman Zhuykov  <zhroma@ispras.ru>
23435         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove assertions.
23436         (create_ddg_dep_no_link): Likewise.
23437         (add_cross_iteration_register_deps): Move debug instruction check.
23438         Other minor refactoring.
23439         (add_intra_loop_mem_dep): Do not check for debug instructions.
23440         (add_inter_loop_mem_dep): Likewise.
23441         (build_intra_loop_deps): Likewise.
23442         (create_ddg): Do not include debug insns into the graph.
23443         * ddg.h (struct ddg): Remove num_debug field.
23444         * modulo-sched.c (doloop_register_get): Adjust condition.
23445         (res_MII): Remove DDG num_debug field usage.
23446         (sms_schedule_by_order): Use assertion against debug insns.
23447         (ps_has_conflicts): Drop debug insn check.
23449 2020-03-26  Jakub Jelinek  <jakub@redhat.com>
23451         PR debug/94323
23452         * tree.c (protected_set_expr_location): Recurse on STATEMENT_LIST
23453         that contains exactly one non-DEBUG_BEGIN_STMT statement.
23455         PR debug/94281
23456         * gimple.h (gimple_seq_first_nondebug_stmt): New function.
23457         (gimple_seq_last_nondebug_stmt): Don't return NULL if seq contains
23458         a single non-debug stmt followed by one or more debug stmts.
23459         * gimplify.c (gimplify_body): Use gimple_seq_first_nondebug_stmt
23460         instead of gimple_seq_first_stmt, use gimple_seq_first_nondebug_stmt
23461         and gimple_seq_last_nondebug_stmt instead of gimple_seq_first and
23462         gimple_seq_last to check if outer_stmt gbind could be reused and
23463         if yes and it is surrounded by any debug stmts, move them into the
23464         gbind body.
23466         PR rtl-optimization/92264
23467         * var-tracking.c (add_stores): Call cselib_set_value_sp_based even
23468         for sp based values in !frame_pointer_needed
23469         && !ACCUMULATE_OUTGOING_ARGS functions.
23471 2020-03-26  Felix Yang  <felix.yang@huawei.com>
23473         PR tree-optimization/94269
23474         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Restrict
23475         this
23476         operation to single basic block.
23478 2020-03-25  Jeff Law  <law@redhat.com>
23480         PR rtl-optimization/90275
23481         * config/sh/sh.md (mov_neg_si_t): Clobber the T register in the
23482         pattern.
23484 2020-03-25  Jakub Jelinek  <jakub@redhat.com>
23486         PR target/94292
23487         * config/arm/arm.c (arm_gen_dicompare_reg): Set mode of COMPARE to
23488         mode rather than VOIDmode.
23490 2020-03-25  Martin Sebor  <msebor@redhat.com>
23492         PR middle-end/94004
23493         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Issue warnings
23494         even for alloca calls resulting from system macro expansion.
23495         Include inlining context in all warnings.
23497 2020-03-25  Richard Sandiford  <richard.sandiford@arm.com>
23499         PR target/94254
23500         * config/rs6000/rs6000.c (rs6000_can_change_mode_class): Allow
23501         FPRs to change between SDmode and DDmode.
23503 2020-03-25  Martin Sebor  <msebor@redhat.com>
23505         PR tree-optimization/94131
23506         * gimple-fold.c (get_range_strlen_tree): Fail for variable-length
23507         types and decls.
23508         * tree-ssa-strlen.c (get_range_strlen_dynamic): Avoid assuming
23509         types have constant sizes.
23511 2020-03-25  Martin Liska  <mliska@suse.cz>
23513         PR lto/94259
23514         * configure.ac: Report error only when --with-zstd
23515         is used.
23516         * configure: Regenerate.
23518 2020-03-25  Jakub Jelinek  <jakub@redhat.com>
23520         PR target/94308
23521         * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Set
23522         INSN_CODE (insn) to -1 when changing the pattern.
23524 2020-03-25  Martin Liska  <mliska@suse.cz>
23526         PR target/93274
23527         PR ipa/94271
23528         * config/i386/i386-features.c (make_resolver_func): Drop
23529         public flag for resolver.
23530         * config/rs6000/rs6000.c (make_resolver_func): Add comdat
23531         group for resolver and drop public flag if possible.
23532         * multiple_target.c (create_dispatcher_calls): Drop unique_name
23533         and resolution as we want to enable LTO privatization of the default
23534         symbol.
23536 2020-03-25  Martin Liska  <mliska@suse.cz>
23538         PR lto/94259
23539         * configure.ac: Respect --without-zstd and report
23540         error when we can't find header file with --with-zstd.
23541         * configure: Regenerate.
23543 2020-03-25  Jakub Jelinek  <jakub@redhat.com>
23545         PR middle-end/94303
23546         * varasm.c (output_constructor_array_range): If local->index
23547         RANGE_EXPR doesn't start at the current location in the constructor,
23548         skip needed number of bytes using assemble_zeros or assert we don't
23549         go backwards.
23551         PR c++/94223
23552         * langhooks.c (lhd_set_decl_assembler_name): Use a static ulong
23553         counter instead of DECL_UID.
23555         PR tree-optimization/94300
23556         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): If pd.offset
23557         is positive, make sure that off + size isn't larger than needed_len.
23559 2020-03-25  Richard Biener  <rguenther@suse.de>
23560             Jakub Jelinek  <jakub@redhat.com>
23562         PR debug/94283
23563         * tree-if-conv.c (ifcvt_local_dce): Delete dead statements backwards.
23565 2020-03-24  Christophe Lyon  <christophe.lyon@linaro.org>
23567         * doc/sourcebuild.texi (ARM-specific attributes): Add
23568         arm_fp_dp_ok.
23569         (Features for dg-add-options): Add arm_fp_dp.
23571 2020-03-24  John David Anglin  <danglin@gcc.gnu.org>
23573         PR lto/94249
23574         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Define __BIG_ENDIAN__.
23576 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
23578         PR libgomp/81689
23579         * omp-offload.c (omp_finish_file): Fix target-link handling if
23580         targetm_common.have_named_sections is false.
23582 2020-03-24  Jakub Jelinek  <jakub@redhat.com>
23584         PR target/94286
23585         * config/arm/arm.md (subvdi4, usubvsi4, usubvdi4): Use gen_int_mode
23586         instead of GEN_INT.
23588         PR debug/94285
23589         * tree-ssa-loop-manip.c (create_iv): If after, set stmt location to
23590         e->goto_locus even if gsi_bb (*incr_pos) contains only debug stmts.
23591         If not after and at *incr_pos is a debug stmt, set stmt location to
23592         location of next non-debug stmt after it if any.
23594         PR debug/94283
23595         * tree-if-conv.c (ifcvt_local_dce): For gimple debug stmts, just set
23596         GF_PLF_2, but don't add them to worklist.  Don't add an assigment to
23597         worklist or set GF_PLF_2 just because it is used in a debug stmt in
23598         another bb.  Formatting improvements.
23600         PR debug/94277
23601         * cgraphunit.c (check_global_declaration): For DECL_EXTERNAL and
23602         non-TREE_PUBLIC non-DECL_ARTIFICIAL FUNCTION_DECLs, set TREE_PUBLIC
23603         regardless of whether TREE_NO_WARNING is set on it or whether
23604         warn_unused_function is true or not.
23606 2020-03-23  Jeff Law  <law@redhat.com>
23608         PR rtl-optimization/90275
23609         PR target/94238
23610         PR target/94144
23611         * simplify-rtx.c (comparison_code_valid_for_mode): New function.
23612         (simplify_logical_relational_operation): Use it.
23614 2020-03-23  Jakub Jelinek  <jakub@redhat.com>
23616         PR c++/91993
23617         * tree.c (get_narrower): Handle COMPOUND_EXPR by recursing on
23618         ultimate rhs and if returned something different, reconstructing
23619         the COMPOUND_EXPRs.
23621 2020-03-23  Lewis Hyatt  <lhyatt@gmail.com>
23623         * opts.c (print_filtered_help): Improve the help text for alias options.
23625 2020-03-23  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
23626             Andre Vieira  <andre.simoesdiasvieira@arm.com>
23627             Mihail Ionescu  <mihail.ionescu@arm.com>
23629         * config/arm/arm_mve.h (vshlcq_m_s8): Define macro.
23630         (vshlcq_m_u8): Likewise.
23631         (vshlcq_m_s16): Likewise.
23632         (vshlcq_m_u16): Likewise.
23633         (vshlcq_m_s32): Likewise.
23634         (vshlcq_m_u32): Likewise.
23635         (__arm_vshlcq_m_s8): Define intrinsic.
23636         (__arm_vshlcq_m_u8): Likewise.
23637         (__arm_vshlcq_m_s16): Likewise.
23638         (__arm_vshlcq_m_u16): Likewise.
23639         (__arm_vshlcq_m_s32): Likewise.
23640         (__arm_vshlcq_m_u32): Likewise.
23641         (vshlcq_m): Define polymorphic variant.
23642         * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_UNONE_IMM_UNONE):
23643         Use builtin qualifier.
23644         (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
23645         * config/arm/mve.md (mve_vshlcq_m_vec_<supf><mode>): Define RTL pattern.
23646         (mve_vshlcq_m_carry_<supf><mode>): Likewise.
23647         (mve_vshlcq_m_<supf><mode>): Likewise.
23649 2020-03-23  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
23651         * config/arm/arm-builtins.c (LSLL_QUALIFIERS): Define builtin qualifier.
23652         (UQSHL_QUALIFIERS): Likewise.
23653         (ASRL_QUALIFIERS): Likewise.
23654         (SQSHL_QUALIFIERS): Likewise.
23655         * config/arm/arm_mve.h (__ARM_BIG_ENDIAN): Check to not support MVE in
23656         Big-Endian Mode.
23657         (sqrshr): Define macro.
23658         (sqrshrl): Likewise.
23659         (sqrshrl_sat48): Likewise.
23660         (sqshl): Likewise.
23661         (sqshll): Likewise.
23662         (srshr): Likewise.
23663         (srshrl): Likewise.
23664         (uqrshl): Likewise.
23665         (uqrshll): Likewise.
23666         (uqrshll_sat48): Likewise.
23667         (uqshl): Likewise.
23668         (uqshll): Likewise.
23669         (urshr): Likewise.
23670         (urshrl): Likewise.
23671         (lsll): Likewise.
23672         (asrl): Likewise.
23673         (__arm_lsll): Define intrinsic.
23674         (__arm_asrl): Likewise.
23675         (__arm_uqrshll): Likewise.
23676         (__arm_uqrshll_sat48): Likewise.
23677         (__arm_sqrshrl): Likewise.
23678         (__arm_sqrshrl_sat48): Likewise.
23679         (__arm_uqshll): Likewise.
23680         (__arm_urshrl): Likewise.
23681         (__arm_srshrl): Likewise.
23682         (__arm_sqshll): Likewise.
23683         (__arm_uqrshl): Likewise.
23684         (__arm_sqrshr): Likewise.
23685         (__arm_uqshl): Likewise.
23686         (__arm_urshr): Likewise.
23687         (__arm_sqshl): Likewise.
23688         (__arm_srshr): Likewise.
23689         * config/arm/arm_mve_builtins.def (LSLL_QUALIFIERS): Use builtin
23690         qualifier.
23691         (UQSHL_QUALIFIERS): Likewise.
23692         (ASRL_QUALIFIERS): Likewise.
23693         (SQSHL_QUALIFIERS): Likewise.
23694         * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Define RTL pattern.
23695         (mve_sqrshrl_sat<supf>_di): Likewise.
23696         (mve_uqrshl_si): Likewise.
23697         (mve_sqrshr_si): Likewise.
23698         (mve_uqshll_di): Likewise.
23699         (mve_urshrl_di): Likewise.
23700         (mve_uqshl_si): Likewise.
23701         (mve_urshr_si): Likewise.
23702         (mve_sqshl_si): Likewise.
23703         (mve_srshr_si): Likewise.
23704         (mve_srshrl_di): Likewise.
23705         (mve_sqshll_di): Likewise.
23707 2020-03-23  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
23708             Andre Vieira  <andre.simoesdiasvieira@arm.com>
23709             Mihail Ionescu  <mihail.ionescu@arm.com>
23711         * config/arm/arm_mve.h (vsetq_lane_f16): Define macro.
23712         (vsetq_lane_f32): Likewise.
23713         (vsetq_lane_s16): Likewise.
23714         (vsetq_lane_s32): Likewise.
23715         (vsetq_lane_s8): Likewise.
23716         (vsetq_lane_s64): Likewise.
23717         (vsetq_lane_u8): Likewise.
23718         (vsetq_lane_u16): Likewise.
23719         (vsetq_lane_u32): Likewise.
23720         (vsetq_lane_u64): Likewise.
23721         (vgetq_lane_f16): Likewise.
23722         (vgetq_lane_f32): Likewise.
23723         (vgetq_lane_s16): Likewise.
23724         (vgetq_lane_s32): Likewise.
23725         (vgetq_lane_s8): Likewise.
23726         (vgetq_lane_s64): Likewise.
23727         (vgetq_lane_u8): Likewise.
23728         (vgetq_lane_u16): Likewise.
23729         (vgetq_lane_u32): Likewise.
23730         (vgetq_lane_u64): Likewise.
23731         (__ARM_NUM_LANES): Likewise.
23732         (__ARM_LANEQ): Likewise.
23733         (__ARM_CHECK_LANEQ): Likewise.
23734         (__arm_vsetq_lane_s16): Define intrinsic.
23735         (__arm_vsetq_lane_s32): Likewise.
23736         (__arm_vsetq_lane_s8): Likewise.
23737         (__arm_vsetq_lane_s64): Likewise.
23738         (__arm_vsetq_lane_u8): Likewise.
23739         (__arm_vsetq_lane_u16): Likewise.
23740         (__arm_vsetq_lane_u32): Likewise.
23741         (__arm_vsetq_lane_u64): Likewise.
23742         (__arm_vgetq_lane_s16): Likewise.
23743         (__arm_vgetq_lane_s32): Likewise.
23744         (__arm_vgetq_lane_s8): Likewise.
23745         (__arm_vgetq_lane_s64): Likewise.
23746         (__arm_vgetq_lane_u8): Likewise.
23747         (__arm_vgetq_lane_u16): Likewise.
23748         (__arm_vgetq_lane_u32): Likewise.
23749         (__arm_vgetq_lane_u64): Likewise.
23750         (__arm_vsetq_lane_f16): Likewise.
23751         (__arm_vsetq_lane_f32): Likewise.
23752         (__arm_vgetq_lane_f16): Likewise.
23753         (__arm_vgetq_lane_f32): Likewise.
23754         (vgetq_lane): Define polymorphic variant.
23755         (vsetq_lane): Likewise.
23756         * config/arm/mve.md (mve_vec_extract<mode><V_elem_l>): Define RTL
23757         pattern.
23758         (mve_vec_extractv2didi): Likewise.
23759         (mve_vec_extract_sext_internal<mode>): Likewise.
23760         (mve_vec_extract_zext_internal<mode>): Likewise.
23761         (mve_vec_set<mode>_internal): Likewise.
23762         (mve_vec_setv2di_internal): Likewise.
23763         * config/arm/neon.md (vec_set<mode>): Move RTL pattern to vec-common.md
23764         file.
23765         (vec_extract<mode><V_elem_l>): Rename to
23766         "neon_vec_extract<mode><V_elem_l>".
23767         (vec_extractv2didi): Rename to "neon_vec_extractv2didi".
23768         * config/arm/vec-common.md (vec_extract<mode><V_elem_l>): Define RTL
23769         pattern common for MVE and NEON.
23770         (vec_set<mode>): Move RTL pattern from neon.md and modify to accept both
23771         MVE and NEON.
23773 2020-03-23  Andre Vieira  <andre.simoesdiasvieira@arm.com>
23775         * config/arm/mve.md (earlyclobber_32): New mode attribute.
23776         (mve_vrev64q_*, mve_vcaddq*, mve_vhcaddq_*, mve_vcmulq_*,
23777          mve_vmull[bt]q_*, mve_vqdmull[bt]q_*): Add appropriate early clobbers.
23779 2020-03-23  Richard Biener  <rguenther@suse.de>
23781         PR tree-optimization/94261
23782         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
23783         IL operand swapping code.
23784         (vect_slp_rearrange_stmts): Do not arrange isomorphic
23785         nodes that would need operation code adjustments.
23787 2020-03-23  Tobias Burnus  <tobias@codesourcery.com>
23789         * doc/install.texi (amdgcn-*-amdhsa): Renamed
23790         from amdgcn-unknown-amdhsa; change
23791         amdgcn-unknown-amdhsa to amdgcn-amdhsa.
23793 2020-03-23  Richard Biener  <rguenther@suse.de>
23795         PR ipa/94245
23796         * ipa-prop.c (ipa_read_jump_function): Build the ADDR_EXRP
23797         directly rather than also folding it via build_fold_addr_expr.
23799 2020-03-23  Richard Biener  <rguenther@suse.de>
23801         PR tree-optimization/94266
23802         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not propagate
23803         addresses of TARGET_MEM_REFs.
23805 2020-03-23  Martin Liska  <mliska@suse.cz>
23807         PR ipa/94250
23808         * symtab.c (symtab_node::clone_references): Save speculative_id
23809         as ref may be overwritten by create_reference.
23810         (symtab_node::clone_referring): Likewise.
23811         (symtab_node::clone_reference): Likewise.
23813 2020-03-22  Iain Sandoe  <iain@sandoe.co.uk>
23815         * config/i386/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Remove
23816         references to Darwin.
23817         * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION): Define this
23818         unconditionally and comment on why.
23820 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
23822         * config/darwin.c (darwin_mergeable_constant_section): Collect
23823         section anchor checks into the caller.
23824         (machopic_select_section): Collect section anchor checks into
23825         the determination of 'effective zero-size' objects. When the
23826         size is unknown, assume it is non-zero, and thus return the
23827         'generic' section for the DECL.
23829 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
23831         PR target/93694
23832         * config/darwin.opt: Amend options descriptions.
23834 2020-03-21  Richard Sandiford  <richard.sandiford@arm.com>
23836         PR rtl-optimization/94052
23837         * lra-constraints.c (simplify_operand_subreg): Reload the inner
23838         register of a paradoxical subreg if simplify_subreg_regno fails
23839         to give a valid hard register for the outer mode.
23841 2020-03-20  Martin Jambor  <mjambor@suse.cz>
23843         PR tree-optimization/93435
23844         * params.opt (sra-max-propagations): New parameter.
23845         * tree-sra.c (propagation_budget): New variable.
23846         (budget_for_propagation_access): New function.
23847         (propagate_subaccesses_from_rhs): Use it.
23848         (propagate_subaccesses_from_lhs): Likewise.
23849         (propagate_all_subaccesses): Set up and destroy propagation_budget.
23851 2020-03-20  Carl Love  <cel@us.ibm.com>
23853         PR/target 87583
23854         * config/rs6000/rs6000.c (rs6000_option_override_internal):
23855         Add check for TARGET_FPRND for Power 7 or newer.
23857 2020-03-20  Jan Hubicka  <hubicka@ucw.cz>
23859         PR ipa/93347
23860         * cgraph.c (symbol_table::create_edge): Update calls_comdat_local flag.
23861         (cgraph_edge::redirect_callee): Move here; likewise.
23862         (cgraph_node::remove_callees): Update calls_comdat_local flag.
23863         (cgraph_node::verify_node): Verify that calls_comdat_local flag match
23864         reality.
23865         (cgraph_node::check_calls_comdat_local_p): New member function.
23866         * cgraph.h (cgraph_node::check_calls_comdat_local_p): Declare.
23867         (cgraph_edge::redirect_callee): Move offline.
23868         * ipa-fnsummary.c (compute_fn_summary): Do not compute
23869         calls_comdat_local flag here.
23870         * ipa-inline-transform.c (inline_call): Fix updating of
23871         calls_comdat_local flag.
23872         * ipa-split.c (split_function): Use true instead of 1 to set the flag.
23873         * symtab.c (symtab_node::add_to_same_comdat_group): Update
23874         calls_comdat_local flag.
23876 2020-03-20  Richard Biener  <rguenther@suse.de>
23878         * tree-vect-slp.c (vect_analyze_slp_instance): Dump SLP tree
23879         from the possibly modified root.
23881 2020-03-20  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
23882             Andre Vieira  <andre.simoesdiasvieira@arm.com>
23883             Mihail Ionescu  <mihail.ionescu@arm.com>
23885         * config/arm/arm_mve.h (vst1q_p_u8): Define macro.
23886         (vst1q_p_s8): Likewise.
23887         (vst2q_s8): Likewise.
23888         (vst2q_u8): Likewise.
23889         (vld1q_z_u8): Likewise.
23890         (vld1q_z_s8): Likewise.
23891         (vld2q_s8): Likewise.
23892         (vld2q_u8): Likewise.
23893         (vld4q_s8): Likewise.
23894         (vld4q_u8): Likewise.
23895         (vst1q_p_u16): Likewise.
23896         (vst1q_p_s16): Likewise.
23897         (vst2q_s16): Likewise.
23898         (vst2q_u16): Likewise.
23899         (vld1q_z_u16): Likewise.
23900         (vld1q_z_s16): Likewise.
23901         (vld2q_s16): Likewise.
23902         (vld2q_u16): Likewise.
23903         (vld4q_s16): Likewise.
23904         (vld4q_u16): Likewise.
23905         (vst1q_p_u32): Likewise.
23906         (vst1q_p_s32): Likewise.
23907         (vst2q_s32): Likewise.
23908         (vst2q_u32): Likewise.
23909         (vld1q_z_u32): Likewise.
23910         (vld1q_z_s32): Likewise.
23911         (vld2q_s32): Likewise.
23912         (vld2q_u32): Likewise.
23913         (vld4q_s32): Likewise.
23914         (vld4q_u32): Likewise.
23915         (vld4q_f16): Likewise.
23916         (vld2q_f16): Likewise.
23917         (vld1q_z_f16): Likewise.
23918         (vst2q_f16): Likewise.
23919         (vst1q_p_f16): Likewise.
23920         (vld4q_f32): Likewise.
23921         (vld2q_f32): Likewise.
23922         (vld1q_z_f32): Likewise.
23923         (vst2q_f32): Likewise.
23924         (vst1q_p_f32): Likewise.
23925         (__arm_vst1q_p_u8): Define intrinsic.
23926         (__arm_vst1q_p_s8): Likewise.
23927         (__arm_vst2q_s8): Likewise.
23928         (__arm_vst2q_u8): Likewise.
23929         (__arm_vld1q_z_u8): Likewise.
23930         (__arm_vld1q_z_s8): Likewise.
23931         (__arm_vld2q_s8): Likewise.
23932         (__arm_vld2q_u8): Likewise.
23933         (__arm_vld4q_s8): Likewise.
23934         (__arm_vld4q_u8): Likewise.
23935         (__arm_vst1q_p_u16): Likewise.
23936         (__arm_vst1q_p_s16): Likewise.
23937         (__arm_vst2q_s16): Likewise.
23938         (__arm_vst2q_u16): Likewise.
23939         (__arm_vld1q_z_u16): Likewise.
23940         (__arm_vld1q_z_s16): Likewise.
23941         (__arm_vld2q_s16): Likewise.
23942         (__arm_vld2q_u16): Likewise.
23943         (__arm_vld4q_s16): Likewise.
23944         (__arm_vld4q_u16): Likewise.
23945         (__arm_vst1q_p_u32): Likewise.
23946         (__arm_vst1q_p_s32): Likewise.
23947         (__arm_vst2q_s32): Likewise.
23948         (__arm_vst2q_u32): Likewise.
23949         (__arm_vld1q_z_u32): Likewise.
23950         (__arm_vld1q_z_s32): Likewise.
23951         (__arm_vld2q_s32): Likewise.
23952         (__arm_vld2q_u32): Likewise.
23953         (__arm_vld4q_s32): Likewise.
23954         (__arm_vld4q_u32): Likewise.
23955         (__arm_vld4q_f16): Likewise.
23956         (__arm_vld2q_f16): Likewise.
23957         (__arm_vld1q_z_f16): Likewise.
23958         (__arm_vst2q_f16): Likewise.
23959         (__arm_vst1q_p_f16): Likewise.
23960         (__arm_vld4q_f32): Likewise.
23961         (__arm_vld2q_f32): Likewise.
23962         (__arm_vld1q_z_f32): Likewise.
23963         (__arm_vst2q_f32): Likewise.
23964         (__arm_vst1q_p_f32): Likewise.
23965         (vld1q_z): Define polymorphic variant.
23966         (vld2q): Likewise.
23967         (vld4q): Likewise.
23968         (vst1q_p): Likewise.
23969         (vst2q): Likewise.
23970         * config/arm/arm_mve_builtins.def (STORE1): Use builtin qualifier.
23971         (LOAD1): Likewise.
23972         * config/arm/mve.md (mve_vst2q<mode>): Define RTL pattern.
23973         (mve_vld2q<mode>): Likewise.
23974         (mve_vld4q<mode>): Likewise.
23976 2020-03-20  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
23977             Andre Vieira  <andre.simoesdiasvieira@arm.com>
23978             Mihail Ionescu  <mihail.ionescu@arm.com>
23980         * config/arm/arm-builtins.c (ARM_BUILTIN_GET_FPSCR_NZCVQC): Define.
23981         (ARM_BUILTIN_SET_FPSCR_NZCVQC): Likewise.       
23982         (arm_init_mve_builtins): Add "__builtin_arm_get_fpscr_nzcvqc" and
23983         "__builtin_arm_set_fpscr_nzcvqc" to arm_builtin_decls array. 
23984         (arm_expand_builtin): Define case ARM_BUILTIN_GET_FPSCR_NZCVQC
23985         and ARM_BUILTIN_SET_FPSCR_NZCVQC.
23986         * config/arm/arm_mve.h (vadciq_s32): Define macro.
23987         (vadciq_u32): Likewise.
23988         (vadciq_m_s32): Likewise.
23989         (vadciq_m_u32): Likewise.
23990         (vadcq_s32): Likewise.
23991         (vadcq_u32): Likewise.
23992         (vadcq_m_s32): Likewise.
23993         (vadcq_m_u32): Likewise.
23994         (vsbciq_s32): Likewise.
23995         (vsbciq_u32): Likewise.
23996         (vsbciq_m_s32): Likewise.
23997         (vsbciq_m_u32): Likewise.
23998         (vsbcq_s32): Likewise.
23999         (vsbcq_u32): Likewise.
24000         (vsbcq_m_s32): Likewise.
24001         (vsbcq_m_u32): Likewise.
24002         (__arm_vadciq_s32): Define intrinsic.
24003         (__arm_vadciq_u32): Likewise.
24004         (__arm_vadciq_m_s32): Likewise.
24005         (__arm_vadciq_m_u32): Likewise.
24006         (__arm_vadcq_s32): Likewise.
24007         (__arm_vadcq_u32): Likewise.
24008         (__arm_vadcq_m_s32): Likewise.
24009         (__arm_vadcq_m_u32): Likewise.
24010         (__arm_vsbciq_s32): Likewise.
24011         (__arm_vsbciq_u32): Likewise.
24012         (__arm_vsbciq_m_s32): Likewise.
24013         (__arm_vsbciq_m_u32): Likewise.
24014         (__arm_vsbcq_s32): Likewise.
24015         (__arm_vsbcq_u32): Likewise.
24016         (__arm_vsbcq_m_s32): Likewise.
24017         (__arm_vsbcq_m_u32): Likewise.
24018         (vadciq_m): Define polymorphic variant.
24019         (vadciq): Likewise.
24020         (vadcq_m): Likewise.
24021         (vadcq): Likewise.
24022         (vsbciq_m): Likewise.
24023         (vsbciq): Likewise.
24024         (vsbcq_m): Likewise.
24025         (vsbcq): Likewise.
24026         * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE): Use builtin
24027         qualifier.
24028         (BINOP_UNONE_UNONE_UNONE): Likewise.
24029         (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
24030         (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
24031         * config/arm/mve.md (VADCIQ): Define iterator.
24032         (VADCIQ_M): Likewise.
24033         (VSBCQ): Likewise.
24034         (VSBCQ_M): Likewise.
24035         (VSBCIQ): Likewise.
24036         (VSBCIQ_M): Likewise.
24037         (VADCQ): Likewise.
24038         (VADCQ_M): Likewise.
24039         (mve_vadciq_m_<supf>v4si): Define RTL pattern.
24040         (mve_vadciq_<supf>v4si): Likewise.
24041         (mve_vadcq_m_<supf>v4si): Likewise.
24042         (mve_vadcq_<supf>v4si): Likewise.
24043         (mve_vsbciq_m_<supf>v4si): Likewise.
24044         (mve_vsbciq_<supf>v4si): Likewise.
24045         (mve_vsbcq_m_<supf>v4si): Likewise.
24046         (mve_vsbcq_<supf>v4si): Likewise.
24047         (get_fpscr_nzcvqc): Define isns.
24048         (set_fpscr_nzcvqc): Define isns.
24049         * config/arm/unspecs.md (UNSPEC_GET_FPSCR_NZCVQC): Define.
24050         (UNSPEC_SET_FPSCR_NZCVQC): Define.
24052 2020-03-20  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
24054         * config/arm/arm_mve.h (vddupq_x_n_u8): Define macro.
24055         (vddupq_x_n_u16): Likewise.
24056         (vddupq_x_n_u32): Likewise.
24057         (vddupq_x_wb_u8): Likewise.
24058         (vddupq_x_wb_u16): Likewise.
24059         (vddupq_x_wb_u32): Likewise.
24060         (vdwdupq_x_n_u8): Likewise.
24061         (vdwdupq_x_n_u16): Likewise.
24062         (vdwdupq_x_n_u32): Likewise.
24063         (vdwdupq_x_wb_u8): Likewise.
24064         (vdwdupq_x_wb_u16): Likewise.
24065         (vdwdupq_x_wb_u32): Likewise.
24066         (vidupq_x_n_u8): Likewise.
24067         (vidupq_x_n_u16): Likewise.
24068         (vidupq_x_n_u32): Likewise.
24069         (vidupq_x_wb_u8): Likewise.
24070         (vidupq_x_wb_u16): Likewise.
24071         (vidupq_x_wb_u32): Likewise.
24072         (viwdupq_x_n_u8): Likewise.
24073         (viwdupq_x_n_u16): Likewise.
24074         (viwdupq_x_n_u32): Likewise.
24075         (viwdupq_x_wb_u8): Likewise.
24076         (viwdupq_x_wb_u16): Likewise.
24077         (viwdupq_x_wb_u32): Likewise.
24078         (vdupq_x_n_s8): Likewise.
24079         (vdupq_x_n_s16): Likewise.
24080         (vdupq_x_n_s32): Likewise.
24081         (vdupq_x_n_u8): Likewise.
24082         (vdupq_x_n_u16): Likewise.
24083         (vdupq_x_n_u32): Likewise.
24084         (vminq_x_s8): Likewise.
24085         (vminq_x_s16): Likewise.
24086         (vminq_x_s32): Likewise.
24087         (vminq_x_u8): Likewise.
24088         (vminq_x_u16): Likewise.
24089         (vminq_x_u32): Likewise.
24090         (vmaxq_x_s8): Likewise.
24091         (vmaxq_x_s16): Likewise.
24092         (vmaxq_x_s32): Likewise.
24093         (vmaxq_x_u8): Likewise.
24094         (vmaxq_x_u16): Likewise.
24095         (vmaxq_x_u32): Likewise.
24096         (vabdq_x_s8): Likewise.
24097         (vabdq_x_s16): Likewise.
24098         (vabdq_x_s32): Likewise.
24099         (vabdq_x_u8): Likewise.
24100         (vabdq_x_u16): Likewise.
24101         (vabdq_x_u32): Likewise.
24102         (vabsq_x_s8): Likewise.
24103         (vabsq_x_s16): Likewise.
24104         (vabsq_x_s32): Likewise.
24105         (vaddq_x_s8): Likewise.
24106         (vaddq_x_s16): Likewise.
24107         (vaddq_x_s32): Likewise.
24108         (vaddq_x_n_s8): Likewise.
24109         (vaddq_x_n_s16): Likewise.
24110         (vaddq_x_n_s32): Likewise.
24111         (vaddq_x_u8): Likewise.
24112         (vaddq_x_u16): Likewise.
24113         (vaddq_x_u32): Likewise.
24114         (vaddq_x_n_u8): Likewise.
24115         (vaddq_x_n_u16): Likewise.
24116         (vaddq_x_n_u32): Likewise.
24117         (vclsq_x_s8): Likewise.
24118         (vclsq_x_s16): Likewise.
24119         (vclsq_x_s32): Likewise.
24120         (vclzq_x_s8): Likewise.
24121         (vclzq_x_s16): Likewise.
24122         (vclzq_x_s32): Likewise.
24123         (vclzq_x_u8): Likewise.
24124         (vclzq_x_u16): Likewise.
24125         (vclzq_x_u32): Likewise.
24126         (vnegq_x_s8): Likewise.
24127         (vnegq_x_s16): Likewise.
24128         (vnegq_x_s32): Likewise.
24129         (vmulhq_x_s8): Likewise.
24130         (vmulhq_x_s16): Likewise.
24131         (vmulhq_x_s32): Likewise.
24132         (vmulhq_x_u8): Likewise.
24133         (vmulhq_x_u16): Likewise.
24134         (vmulhq_x_u32): Likewise.
24135         (vmullbq_poly_x_p8): Likewise.
24136         (vmullbq_poly_x_p16): Likewise.
24137         (vmullbq_int_x_s8): Likewise.
24138         (vmullbq_int_x_s16): Likewise.
24139         (vmullbq_int_x_s32): Likewise.
24140         (vmullbq_int_x_u8): Likewise.
24141         (vmullbq_int_x_u16): Likewise.
24142         (vmullbq_int_x_u32): Likewise.
24143         (vmulltq_poly_x_p8): Likewise.
24144         (vmulltq_poly_x_p16): Likewise.
24145         (vmulltq_int_x_s8): Likewise.
24146         (vmulltq_int_x_s16): Likewise.
24147         (vmulltq_int_x_s32): Likewise.
24148         (vmulltq_int_x_u8): Likewise.
24149         (vmulltq_int_x_u16): Likewise.
24150         (vmulltq_int_x_u32): Likewise.
24151         (vmulq_x_s8): Likewise.
24152         (vmulq_x_s16): Likewise.
24153         (vmulq_x_s32): Likewise.
24154         (vmulq_x_n_s8): Likewise.
24155         (vmulq_x_n_s16): Likewise.
24156         (vmulq_x_n_s32): Likewise.
24157         (vmulq_x_u8): Likewise.
24158         (vmulq_x_u16): Likewise.
24159         (vmulq_x_u32): Likewise.
24160         (vmulq_x_n_u8): Likewise.
24161         (vmulq_x_n_u16): Likewise.
24162         (vmulq_x_n_u32): Likewise.
24163         (vsubq_x_s8): Likewise.
24164         (vsubq_x_s16): Likewise.
24165         (vsubq_x_s32): Likewise.
24166         (vsubq_x_n_s8): Likewise.
24167         (vsubq_x_n_s16): Likewise.
24168         (vsubq_x_n_s32): Likewise.
24169         (vsubq_x_u8): Likewise.
24170         (vsubq_x_u16): Likewise.
24171         (vsubq_x_u32): Likewise.
24172         (vsubq_x_n_u8): Likewise.
24173         (vsubq_x_n_u16): Likewise.
24174         (vsubq_x_n_u32): Likewise.
24175         (vcaddq_rot90_x_s8): Likewise.
24176         (vcaddq_rot90_x_s16): Likewise.
24177         (vcaddq_rot90_x_s32): Likewise.
24178         (vcaddq_rot90_x_u8): Likewise.
24179         (vcaddq_rot90_x_u16): Likewise.
24180         (vcaddq_rot90_x_u32): Likewise.
24181         (vcaddq_rot270_x_s8): Likewise.
24182         (vcaddq_rot270_x_s16): Likewise.
24183         (vcaddq_rot270_x_s32): Likewise.
24184         (vcaddq_rot270_x_u8): Likewise.
24185         (vcaddq_rot270_x_u16): Likewise.
24186         (vcaddq_rot270_x_u32): Likewise.
24187         (vhaddq_x_n_s8): Likewise.
24188         (vhaddq_x_n_s16): Likewise.
24189         (vhaddq_x_n_s32): Likewise.
24190         (vhaddq_x_n_u8): Likewise.
24191         (vhaddq_x_n_u16): Likewise.
24192         (vhaddq_x_n_u32): Likewise.
24193         (vhaddq_x_s8): Likewise.
24194         (vhaddq_x_s16): Likewise.
24195         (vhaddq_x_s32): Likewise.
24196         (vhaddq_x_u8): Likewise.
24197         (vhaddq_x_u16): Likewise.
24198         (vhaddq_x_u32): Likewise.
24199         (vhcaddq_rot90_x_s8): Likewise.
24200         (vhcaddq_rot90_x_s16): Likewise.
24201         (vhcaddq_rot90_x_s32): Likewise.
24202         (vhcaddq_rot270_x_s8): Likewise.
24203         (vhcaddq_rot270_x_s16): Likewise.
24204         (vhcaddq_rot270_x_s32): Likewise.
24205         (vhsubq_x_n_s8): Likewise.
24206         (vhsubq_x_n_s16): Likewise.
24207         (vhsubq_x_n_s32): Likewise.
24208         (vhsubq_x_n_u8): Likewise.
24209         (vhsubq_x_n_u16): Likewise.
24210         (vhsubq_x_n_u32): Likewise.
24211         (vhsubq_x_s8): Likewise.
24212         (vhsubq_x_s16): Likewise.
24213         (vhsubq_x_s32): Likewise.
24214         (vhsubq_x_u8): Likewise.
24215         (vhsubq_x_u16): Likewise.
24216         (vhsubq_x_u32): Likewise.
24217         (vrhaddq_x_s8): Likewise.
24218         (vrhaddq_x_s16): Likewise.
24219         (vrhaddq_x_s32): Likewise.
24220         (vrhaddq_x_u8): Likewise.
24221         (vrhaddq_x_u16): Likewise.
24222         (vrhaddq_x_u32): Likewise.
24223         (vrmulhq_x_s8): Likewise.
24224         (vrmulhq_x_s16): Likewise.
24225         (vrmulhq_x_s32): Likewise.
24226         (vrmulhq_x_u8): Likewise.
24227         (vrmulhq_x_u16): Likewise.
24228         (vrmulhq_x_u32): Likewise.
24229         (vandq_x_s8): Likewise.
24230         (vandq_x_s16): Likewise.
24231         (vandq_x_s32): Likewise.
24232         (vandq_x_u8): Likewise.
24233         (vandq_x_u16): Likewise.
24234         (vandq_x_u32): Likewise.
24235         (vbicq_x_s8): Likewise.
24236         (vbicq_x_s16): Likewise.
24237         (vbicq_x_s32): Likewise.
24238         (vbicq_x_u8): Likewise.
24239         (vbicq_x_u16): Likewise.
24240         (vbicq_x_u32): Likewise.
24241         (vbrsrq_x_n_s8): Likewise.
24242         (vbrsrq_x_n_s16): Likewise.
24243         (vbrsrq_x_n_s32): Likewise.
24244         (vbrsrq_x_n_u8): Likewise.
24245         (vbrsrq_x_n_u16): Likewise.
24246         (vbrsrq_x_n_u32): Likewise.
24247         (veorq_x_s8): Likewise.
24248         (veorq_x_s16): Likewise.
24249         (veorq_x_s32): Likewise.
24250         (veorq_x_u8): Likewise.
24251         (veorq_x_u16): Likewise.
24252         (veorq_x_u32): Likewise.
24253         (vmovlbq_x_s8): Likewise.
24254         (vmovlbq_x_s16): Likewise.
24255         (vmovlbq_x_u8): Likewise.
24256         (vmovlbq_x_u16): Likewise.
24257         (vmovltq_x_s8): Likewise.
24258         (vmovltq_x_s16): Likewise.
24259         (vmovltq_x_u8): Likewise.
24260         (vmovltq_x_u16): Likewise.
24261         (vmvnq_x_s8): Likewise.
24262         (vmvnq_x_s16): Likewise.
24263         (vmvnq_x_s32): Likewise.
24264         (vmvnq_x_u8): Likewise.
24265         (vmvnq_x_u16): Likewise.
24266         (vmvnq_x_u32): Likewise.
24267         (vmvnq_x_n_s16): Likewise.
24268         (vmvnq_x_n_s32): Likewise.
24269         (vmvnq_x_n_u16): Likewise.
24270         (vmvnq_x_n_u32): Likewise.
24271         (vornq_x_s8): Likewise.
24272         (vornq_x_s16): Likewise.
24273         (vornq_x_s32): Likewise.
24274         (vornq_x_u8): Likewise.
24275         (vornq_x_u16): Likewise.
24276         (vornq_x_u32): Likewise.
24277         (vorrq_x_s8): Likewise.
24278         (vorrq_x_s16): Likewise.
24279         (vorrq_x_s32): Likewise.
24280         (vorrq_x_u8): Likewise.
24281         (vorrq_x_u16): Likewise.
24282         (vorrq_x_u32): Likewise.
24283         (vrev16q_x_s8): Likewise.
24284         (vrev16q_x_u8): Likewise.
24285         (vrev32q_x_s8): Likewise.
24286         (vrev32q_x_s16): Likewise.
24287         (vrev32q_x_u8): Likewise.
24288         (vrev32q_x_u16): Likewise.
24289         (vrev64q_x_s8): Likewise.
24290         (vrev64q_x_s16): Likewise.
24291         (vrev64q_x_s32): Likewise.
24292         (vrev64q_x_u8): Likewise.
24293         (vrev64q_x_u16): Likewise.
24294         (vrev64q_x_u32): Likewise.
24295         (vrshlq_x_s8): Likewise.
24296         (vrshlq_x_s16): Likewise.
24297         (vrshlq_x_s32): Likewise.
24298         (vrshlq_x_u8): Likewise.
24299         (vrshlq_x_u16): Likewise.
24300         (vrshlq_x_u32): Likewise.
24301         (vshllbq_x_n_s8): Likewise.
24302         (vshllbq_x_n_s16): Likewise.
24303         (vshllbq_x_n_u8): Likewise.
24304         (vshllbq_x_n_u16): Likewise.
24305         (vshlltq_x_n_s8): Likewise.
24306         (vshlltq_x_n_s16): Likewise.
24307         (vshlltq_x_n_u8): Likewise.
24308         (vshlltq_x_n_u16): Likewise.
24309         (vshlq_x_s8): Likewise.
24310         (vshlq_x_s16): Likewise.
24311         (vshlq_x_s32): Likewise.
24312         (vshlq_x_u8): Likewise.
24313         (vshlq_x_u16): Likewise.
24314         (vshlq_x_u32): Likewise.
24315         (vshlq_x_n_s8): Likewise.
24316         (vshlq_x_n_s16): Likewise.
24317         (vshlq_x_n_s32): Likewise.
24318         (vshlq_x_n_u8): Likewise.
24319         (vshlq_x_n_u16): Likewise.
24320         (vshlq_x_n_u32): Likewise.
24321         (vrshrq_x_n_s8): Likewise.
24322         (vrshrq_x_n_s16): Likewise.
24323         (vrshrq_x_n_s32): Likewise.
24324         (vrshrq_x_n_u8): Likewise.
24325         (vrshrq_x_n_u16): Likewise.
24326         (vrshrq_x_n_u32): Likewise.
24327         (vshrq_x_n_s8): Likewise.
24328         (vshrq_x_n_s16): Likewise.
24329         (vshrq_x_n_s32): Likewise.
24330         (vshrq_x_n_u8): Likewise.
24331         (vshrq_x_n_u16): Likewise.
24332         (vshrq_x_n_u32): Likewise.
24333         (vdupq_x_n_f16): Likewise.
24334         (vdupq_x_n_f32): Likewise.
24335         (vminnmq_x_f16): Likewise.
24336         (vminnmq_x_f32): Likewise.
24337         (vmaxnmq_x_f16): Likewise.
24338         (vmaxnmq_x_f32): Likewise.
24339         (vabdq_x_f16): Likewise.
24340         (vabdq_x_f32): Likewise.
24341         (vabsq_x_f16): Likewise.
24342         (vabsq_x_f32): Likewise.
24343         (vaddq_x_f16): Likewise.
24344         (vaddq_x_f32): Likewise.
24345         (vaddq_x_n_f16): Likewise.
24346         (vaddq_x_n_f32): Likewise.
24347         (vnegq_x_f16): Likewise.
24348         (vnegq_x_f32): Likewise.
24349         (vmulq_x_f16): Likewise.
24350         (vmulq_x_f32): Likewise.
24351         (vmulq_x_n_f16): Likewise.
24352         (vmulq_x_n_f32): Likewise.
24353         (vsubq_x_f16): Likewise.
24354         (vsubq_x_f32): Likewise.
24355         (vsubq_x_n_f16): Likewise.
24356         (vsubq_x_n_f32): Likewise.
24357         (vcaddq_rot90_x_f16): Likewise.
24358         (vcaddq_rot90_x_f32): Likewise.
24359         (vcaddq_rot270_x_f16): Likewise.
24360         (vcaddq_rot270_x_f32): Likewise.
24361         (vcmulq_x_f16): Likewise.
24362         (vcmulq_x_f32): Likewise.
24363         (vcmulq_rot90_x_f16): Likewise.
24364         (vcmulq_rot90_x_f32): Likewise.
24365         (vcmulq_rot180_x_f16): Likewise.
24366         (vcmulq_rot180_x_f32): Likewise.
24367         (vcmulq_rot270_x_f16): Likewise.
24368         (vcmulq_rot270_x_f32): Likewise.
24369         (vcvtaq_x_s16_f16): Likewise.
24370         (vcvtaq_x_s32_f32): Likewise.
24371         (vcvtaq_x_u16_f16): Likewise.
24372         (vcvtaq_x_u32_f32): Likewise.
24373         (vcvtnq_x_s16_f16): Likewise.
24374         (vcvtnq_x_s32_f32): Likewise.
24375         (vcvtnq_x_u16_f16): Likewise.
24376         (vcvtnq_x_u32_f32): Likewise.
24377         (vcvtpq_x_s16_f16): Likewise.
24378         (vcvtpq_x_s32_f32): Likewise.
24379         (vcvtpq_x_u16_f16): Likewise.
24380         (vcvtpq_x_u32_f32): Likewise.
24381         (vcvtmq_x_s16_f16): Likewise.
24382         (vcvtmq_x_s32_f32): Likewise.
24383         (vcvtmq_x_u16_f16): Likewise.
24384         (vcvtmq_x_u32_f32): Likewise.
24385         (vcvtbq_x_f32_f16): Likewise.
24386         (vcvttq_x_f32_f16): Likewise.
24387         (vcvtq_x_f16_u16): Likewise.
24388         (vcvtq_x_f16_s16): Likewise.
24389         (vcvtq_x_f32_s32): Likewise.
24390         (vcvtq_x_f32_u32): Likewise.
24391         (vcvtq_x_n_f16_s16): Likewise.
24392         (vcvtq_x_n_f16_u16): Likewise.
24393         (vcvtq_x_n_f32_s32): Likewise.
24394         (vcvtq_x_n_f32_u32): Likewise.
24395         (vcvtq_x_s16_f16): Likewise.
24396         (vcvtq_x_s32_f32): Likewise.
24397         (vcvtq_x_u16_f16): Likewise.
24398         (vcvtq_x_u32_f32): Likewise.
24399         (vcvtq_x_n_s16_f16): Likewise.
24400         (vcvtq_x_n_s32_f32): Likewise.
24401         (vcvtq_x_n_u16_f16): Likewise.
24402         (vcvtq_x_n_u32_f32): Likewise.
24403         (vrndq_x_f16): Likewise.
24404         (vrndq_x_f32): Likewise.
24405         (vrndnq_x_f16): Likewise.
24406         (vrndnq_x_f32): Likewise.
24407         (vrndmq_x_f16): Likewise.
24408         (vrndmq_x_f32): Likewise.
24409         (vrndpq_x_f16): Likewise.
24410         (vrndpq_x_f32): Likewise.
24411         (vrndaq_x_f16): Likewise.
24412         (vrndaq_x_f32): Likewise.
24413         (vrndxq_x_f16): Likewise.
24414         (vrndxq_x_f32): Likewise.
24415         (vandq_x_f16): Likewise.
24416         (vandq_x_f32): Likewise.
24417         (vbicq_x_f16): Likewise.
24418         (vbicq_x_f32): Likewise.
24419         (vbrsrq_x_n_f16): Likewise.
24420         (vbrsrq_x_n_f32): Likewise.
24421         (veorq_x_f16): Likewise.
24422         (veorq_x_f32): Likewise.
24423         (vornq_x_f16): Likewise.
24424         (vornq_x_f32): Likewise.
24425         (vorrq_x_f16): Likewise.
24426         (vorrq_x_f32): Likewise.
24427         (vrev32q_x_f16): Likewise.
24428         (vrev64q_x_f16): Likewise.
24429         (vrev64q_x_f32): Likewise.
24430         (__arm_vddupq_x_n_u8): Define intrinsic.
24431         (__arm_vddupq_x_n_u16): Likewise.
24432         (__arm_vddupq_x_n_u32): Likewise.
24433         (__arm_vddupq_x_wb_u8): Likewise.
24434         (__arm_vddupq_x_wb_u16): Likewise.
24435         (__arm_vddupq_x_wb_u32): Likewise.
24436         (__arm_vdwdupq_x_n_u8): Likewise.
24437         (__arm_vdwdupq_x_n_u16): Likewise.
24438         (__arm_vdwdupq_x_n_u32): Likewise.
24439         (__arm_vdwdupq_x_wb_u8): Likewise.
24440         (__arm_vdwdupq_x_wb_u16): Likewise.
24441         (__arm_vdwdupq_x_wb_u32): Likewise.
24442         (__arm_vidupq_x_n_u8): Likewise.
24443         (__arm_vidupq_x_n_u16): Likewise.
24444         (__arm_vidupq_x_n_u32): Likewise.
24445         (__arm_vidupq_x_wb_u8): Likewise.
24446         (__arm_vidupq_x_wb_u16): Likewise.
24447         (__arm_vidupq_x_wb_u32): Likewise.
24448         (__arm_viwdupq_x_n_u8): Likewise.
24449         (__arm_viwdupq_x_n_u16): Likewise.
24450         (__arm_viwdupq_x_n_u32): Likewise.
24451         (__arm_viwdupq_x_wb_u8): Likewise.
24452         (__arm_viwdupq_x_wb_u16): Likewise.
24453         (__arm_viwdupq_x_wb_u32): Likewise.
24454         (__arm_vdupq_x_n_s8): Likewise.
24455         (__arm_vdupq_x_n_s16): Likewise.
24456         (__arm_vdupq_x_n_s32): Likewise.
24457         (__arm_vdupq_x_n_u8): Likewise.
24458         (__arm_vdupq_x_n_u16): Likewise.
24459         (__arm_vdupq_x_n_u32): Likewise.
24460         (__arm_vminq_x_s8): Likewise.
24461         (__arm_vminq_x_s16): Likewise.
24462         (__arm_vminq_x_s32): Likewise.
24463         (__arm_vminq_x_u8): Likewise.
24464         (__arm_vminq_x_u16): Likewise.
24465         (__arm_vminq_x_u32): Likewise.
24466         (__arm_vmaxq_x_s8): Likewise.
24467         (__arm_vmaxq_x_s16): Likewise.
24468         (__arm_vmaxq_x_s32): Likewise.
24469         (__arm_vmaxq_x_u8): Likewise.
24470         (__arm_vmaxq_x_u16): Likewise.
24471         (__arm_vmaxq_x_u32): Likewise.
24472         (__arm_vabdq_x_s8): Likewise.
24473         (__arm_vabdq_x_s16): Likewise.
24474         (__arm_vabdq_x_s32): Likewise.
24475         (__arm_vabdq_x_u8): Likewise.
24476         (__arm_vabdq_x_u16): Likewise.
24477         (__arm_vabdq_x_u32): Likewise.
24478         (__arm_vabsq_x_s8): Likewise.
24479         (__arm_vabsq_x_s16): Likewise.
24480         (__arm_vabsq_x_s32): Likewise.
24481         (__arm_vaddq_x_s8): Likewise.
24482         (__arm_vaddq_x_s16): Likewise.
24483         (__arm_vaddq_x_s32): Likewise.
24484         (__arm_vaddq_x_n_s8): Likewise.
24485         (__arm_vaddq_x_n_s16): Likewise.
24486         (__arm_vaddq_x_n_s32): Likewise.
24487         (__arm_vaddq_x_u8): Likewise.
24488         (__arm_vaddq_x_u16): Likewise.
24489         (__arm_vaddq_x_u32): Likewise.
24490         (__arm_vaddq_x_n_u8): Likewise.
24491         (__arm_vaddq_x_n_u16): Likewise.
24492         (__arm_vaddq_x_n_u32): Likewise.
24493         (__arm_vclsq_x_s8): Likewise.
24494         (__arm_vclsq_x_s16): Likewise.
24495         (__arm_vclsq_x_s32): Likewise.
24496         (__arm_vclzq_x_s8): Likewise.
24497         (__arm_vclzq_x_s16): Likewise.
24498         (__arm_vclzq_x_s32): Likewise.
24499         (__arm_vclzq_x_u8): Likewise.
24500         (__arm_vclzq_x_u16): Likewise.
24501         (__arm_vclzq_x_u32): Likewise.
24502         (__arm_vnegq_x_s8): Likewise.
24503         (__arm_vnegq_x_s16): Likewise.
24504         (__arm_vnegq_x_s32): Likewise.
24505         (__arm_vmulhq_x_s8): Likewise.
24506         (__arm_vmulhq_x_s16): Likewise.
24507         (__arm_vmulhq_x_s32): Likewise.
24508         (__arm_vmulhq_x_u8): Likewise.
24509         (__arm_vmulhq_x_u16): Likewise.
24510         (__arm_vmulhq_x_u32): Likewise.
24511         (__arm_vmullbq_poly_x_p8): Likewise.
24512         (__arm_vmullbq_poly_x_p16): Likewise.
24513         (__arm_vmullbq_int_x_s8): Likewise.
24514         (__arm_vmullbq_int_x_s16): Likewise.
24515         (__arm_vmullbq_int_x_s32): Likewise.
24516         (__arm_vmullbq_int_x_u8): Likewise.
24517         (__arm_vmullbq_int_x_u16): Likewise.
24518         (__arm_vmullbq_int_x_u32): Likewise.
24519         (__arm_vmulltq_poly_x_p8): Likewise.
24520         (__arm_vmulltq_poly_x_p16): Likewise.
24521         (__arm_vmulltq_int_x_s8): Likewise.
24522         (__arm_vmulltq_int_x_s16): Likewise.
24523         (__arm_vmulltq_int_x_s32): Likewise.
24524         (__arm_vmulltq_int_x_u8): Likewise.
24525         (__arm_vmulltq_int_x_u16): Likewise.
24526         (__arm_vmulltq_int_x_u32): Likewise.
24527         (__arm_vmulq_x_s8): Likewise.
24528         (__arm_vmulq_x_s16): Likewise.
24529         (__arm_vmulq_x_s32): Likewise.
24530         (__arm_vmulq_x_n_s8): Likewise.
24531         (__arm_vmulq_x_n_s16): Likewise.
24532         (__arm_vmulq_x_n_s32): Likewise.
24533         (__arm_vmulq_x_u8): Likewise.
24534         (__arm_vmulq_x_u16): Likewise.
24535         (__arm_vmulq_x_u32): Likewise.
24536         (__arm_vmulq_x_n_u8): Likewise.
24537         (__arm_vmulq_x_n_u16): Likewise.
24538         (__arm_vmulq_x_n_u32): Likewise.
24539         (__arm_vsubq_x_s8): Likewise.
24540         (__arm_vsubq_x_s16): Likewise.
24541         (__arm_vsubq_x_s32): Likewise.
24542         (__arm_vsubq_x_n_s8): Likewise.
24543         (__arm_vsubq_x_n_s16): Likewise.
24544         (__arm_vsubq_x_n_s32): Likewise.
24545         (__arm_vsubq_x_u8): Likewise.
24546         (__arm_vsubq_x_u16): Likewise.
24547         (__arm_vsubq_x_u32): Likewise.
24548         (__arm_vsubq_x_n_u8): Likewise.
24549         (__arm_vsubq_x_n_u16): Likewise.
24550         (__arm_vsubq_x_n_u32): Likewise.
24551         (__arm_vcaddq_rot90_x_s8): Likewise.
24552         (__arm_vcaddq_rot90_x_s16): Likewise.
24553         (__arm_vcaddq_rot90_x_s32): Likewise.
24554         (__arm_vcaddq_rot90_x_u8): Likewise.
24555         (__arm_vcaddq_rot90_x_u16): Likewise.
24556         (__arm_vcaddq_rot90_x_u32): Likewise.
24557         (__arm_vcaddq_rot270_x_s8): Likewise.
24558         (__arm_vcaddq_rot270_x_s16): Likewise.
24559         (__arm_vcaddq_rot270_x_s32): Likewise.
24560         (__arm_vcaddq_rot270_x_u8): Likewise.
24561         (__arm_vcaddq_rot270_x_u16): Likewise.
24562         (__arm_vcaddq_rot270_x_u32): Likewise.
24563         (__arm_vhaddq_x_n_s8): Likewise.
24564         (__arm_vhaddq_x_n_s16): Likewise.
24565         (__arm_vhaddq_x_n_s32): Likewise.
24566         (__arm_vhaddq_x_n_u8): Likewise.
24567         (__arm_vhaddq_x_n_u16): Likewise.
24568         (__arm_vhaddq_x_n_u32): Likewise.
24569         (__arm_vhaddq_x_s8): Likewise.
24570         (__arm_vhaddq_x_s16): Likewise.
24571         (__arm_vhaddq_x_s32): Likewise.
24572         (__arm_vhaddq_x_u8): Likewise.
24573         (__arm_vhaddq_x_u16): Likewise.
24574         (__arm_vhaddq_x_u32): Likewise.
24575         (__arm_vhcaddq_rot90_x_s8): Likewise.
24576         (__arm_vhcaddq_rot90_x_s16): Likewise.
24577         (__arm_vhcaddq_rot90_x_s32): Likewise.
24578         (__arm_vhcaddq_rot270_x_s8): Likewise.
24579         (__arm_vhcaddq_rot270_x_s16): Likewise.
24580         (__arm_vhcaddq_rot270_x_s32): Likewise.
24581         (__arm_vhsubq_x_n_s8): Likewise.
24582         (__arm_vhsubq_x_n_s16): Likewise.
24583         (__arm_vhsubq_x_n_s32): Likewise.
24584         (__arm_vhsubq_x_n_u8): Likewise.
24585         (__arm_vhsubq_x_n_u16): Likewise.
24586         (__arm_vhsubq_x_n_u32): Likewise.
24587         (__arm_vhsubq_x_s8): Likewise.
24588         (__arm_vhsubq_x_s16): Likewise.
24589         (__arm_vhsubq_x_s32): Likewise.
24590         (__arm_vhsubq_x_u8): Likewise.
24591         (__arm_vhsubq_x_u16): Likewise.
24592         (__arm_vhsubq_x_u32): Likewise.
24593         (__arm_vrhaddq_x_s8): Likewise.
24594         (__arm_vrhaddq_x_s16): Likewise.
24595         (__arm_vrhaddq_x_s32): Likewise.
24596         (__arm_vrhaddq_x_u8): Likewise.
24597         (__arm_vrhaddq_x_u16): Likewise.
24598         (__arm_vrhaddq_x_u32): Likewise.
24599         (__arm_vrmulhq_x_s8): Likewise.
24600         (__arm_vrmulhq_x_s16): Likewise.
24601         (__arm_vrmulhq_x_s32): Likewise.
24602         (__arm_vrmulhq_x_u8): Likewise.
24603         (__arm_vrmulhq_x_u16): Likewise.
24604         (__arm_vrmulhq_x_u32): Likewise.
24605         (__arm_vandq_x_s8): Likewise.
24606         (__arm_vandq_x_s16): Likewise.
24607         (__arm_vandq_x_s32): Likewise.
24608         (__arm_vandq_x_u8): Likewise.
24609         (__arm_vandq_x_u16): Likewise.
24610         (__arm_vandq_x_u32): Likewise.
24611         (__arm_vbicq_x_s8): Likewise.
24612         (__arm_vbicq_x_s16): Likewise.
24613         (__arm_vbicq_x_s32): Likewise.
24614         (__arm_vbicq_x_u8): Likewise.
24615         (__arm_vbicq_x_u16): Likewise.
24616         (__arm_vbicq_x_u32): Likewise.
24617         (__arm_vbrsrq_x_n_s8): Likewise.
24618         (__arm_vbrsrq_x_n_s16): Likewise.
24619         (__arm_vbrsrq_x_n_s32): Likewise.
24620         (__arm_vbrsrq_x_n_u8): Likewise.
24621         (__arm_vbrsrq_x_n_u16): Likewise.
24622         (__arm_vbrsrq_x_n_u32): Likewise.
24623         (__arm_veorq_x_s8): Likewise.
24624         (__arm_veorq_x_s16): Likewise.
24625         (__arm_veorq_x_s32): Likewise.
24626         (__arm_veorq_x_u8): Likewise.
24627         (__arm_veorq_x_u16): Likewise.
24628         (__arm_veorq_x_u32): Likewise.
24629         (__arm_vmovlbq_x_s8): Likewise.
24630         (__arm_vmovlbq_x_s16): Likewise.
24631         (__arm_vmovlbq_x_u8): Likewise.
24632         (__arm_vmovlbq_x_u16): Likewise.
24633         (__arm_vmovltq_x_s8): Likewise.
24634         (__arm_vmovltq_x_s16): Likewise.
24635         (__arm_vmovltq_x_u8): Likewise.
24636         (__arm_vmovltq_x_u16): Likewise.
24637         (__arm_vmvnq_x_s8): Likewise.
24638         (__arm_vmvnq_x_s16): Likewise.
24639         (__arm_vmvnq_x_s32): Likewise.
24640         (__arm_vmvnq_x_u8): Likewise.
24641         (__arm_vmvnq_x_u16): Likewise.
24642         (__arm_vmvnq_x_u32): Likewise.
24643         (__arm_vmvnq_x_n_s16): Likewise.
24644         (__arm_vmvnq_x_n_s32): Likewise.
24645         (__arm_vmvnq_x_n_u16): Likewise.
24646         (__arm_vmvnq_x_n_u32): Likewise.
24647         (__arm_vornq_x_s8): Likewise.
24648         (__arm_vornq_x_s16): Likewise.
24649         (__arm_vornq_x_s32): Likewise.
24650         (__arm_vornq_x_u8): Likewise.
24651         (__arm_vornq_x_u16): Likewise.
24652         (__arm_vornq_x_u32): Likewise.
24653         (__arm_vorrq_x_s8): Likewise.
24654         (__arm_vorrq_x_s16): Likewise.
24655         (__arm_vorrq_x_s32): Likewise.
24656         (__arm_vorrq_x_u8): Likewise.
24657         (__arm_vorrq_x_u16): Likewise.
24658         (__arm_vorrq_x_u32): Likewise.
24659         (__arm_vrev16q_x_s8): Likewise.
24660         (__arm_vrev16q_x_u8): Likewise.
24661         (__arm_vrev32q_x_s8): Likewise.
24662         (__arm_vrev32q_x_s16): Likewise.
24663         (__arm_vrev32q_x_u8): Likewise.
24664         (__arm_vrev32q_x_u16): Likewise.
24665         (__arm_vrev64q_x_s8): Likewise.
24666         (__arm_vrev64q_x_s16): Likewise.
24667         (__arm_vrev64q_x_s32): Likewise.
24668         (__arm_vrev64q_x_u8): Likewise.
24669         (__arm_vrev64q_x_u16): Likewise.
24670         (__arm_vrev64q_x_u32): Likewise.
24671         (__arm_vrshlq_x_s8): Likewise.
24672         (__arm_vrshlq_x_s16): Likewise.
24673         (__arm_vrshlq_x_s32): Likewise.
24674         (__arm_vrshlq_x_u8): Likewise.
24675         (__arm_vrshlq_x_u16): Likewise.
24676         (__arm_vrshlq_x_u32): Likewise.
24677         (__arm_vshllbq_x_n_s8): Likewise.
24678         (__arm_vshllbq_x_n_s16): Likewise.
24679         (__arm_vshllbq_x_n_u8): Likewise.
24680         (__arm_vshllbq_x_n_u16): Likewise.
24681         (__arm_vshlltq_x_n_s8): Likewise.
24682         (__arm_vshlltq_x_n_s16): Likewise.
24683         (__arm_vshlltq_x_n_u8): Likewise.
24684         (__arm_vshlltq_x_n_u16): Likewise.
24685         (__arm_vshlq_x_s8): Likewise.
24686         (__arm_vshlq_x_s16): Likewise.
24687         (__arm_vshlq_x_s32): Likewise.
24688         (__arm_vshlq_x_u8): Likewise.
24689         (__arm_vshlq_x_u16): Likewise.
24690         (__arm_vshlq_x_u32): Likewise.
24691         (__arm_vshlq_x_n_s8): Likewise.
24692         (__arm_vshlq_x_n_s16): Likewise.
24693         (__arm_vshlq_x_n_s32): Likewise.
24694         (__arm_vshlq_x_n_u8): Likewise.
24695         (__arm_vshlq_x_n_u16): Likewise.
24696         (__arm_vshlq_x_n_u32): Likewise.
24697         (__arm_vrshrq_x_n_s8): Likewise.
24698         (__arm_vrshrq_x_n_s16): Likewise.
24699         (__arm_vrshrq_x_n_s32): Likewise.
24700         (__arm_vrshrq_x_n_u8): Likewise.
24701         (__arm_vrshrq_x_n_u16): Likewise.
24702         (__arm_vrshrq_x_n_u32): Likewise.
24703         (__arm_vshrq_x_n_s8): Likewise.
24704         (__arm_vshrq_x_n_s16): Likewise.
24705         (__arm_vshrq_x_n_s32): Likewise.
24706         (__arm_vshrq_x_n_u8): Likewise.
24707         (__arm_vshrq_x_n_u16): Likewise.
24708         (__arm_vshrq_x_n_u32): Likewise.
24709         (__arm_vdupq_x_n_f16): Likewise.
24710         (__arm_vdupq_x_n_f32): Likewise.
24711         (__arm_vminnmq_x_f16): Likewise.
24712         (__arm_vminnmq_x_f32): Likewise.
24713         (__arm_vmaxnmq_x_f16): Likewise.
24714         (__arm_vmaxnmq_x_f32): Likewise.
24715         (__arm_vabdq_x_f16): Likewise.
24716         (__arm_vabdq_x_f32): Likewise.
24717         (__arm_vabsq_x_f16): Likewise.
24718         (__arm_vabsq_x_f32): Likewise.
24719         (__arm_vaddq_x_f16): Likewise.
24720         (__arm_vaddq_x_f32): Likewise.
24721         (__arm_vaddq_x_n_f16): Likewise.
24722         (__arm_vaddq_x_n_f32): Likewise.
24723         (__arm_vnegq_x_f16): Likewise.
24724         (__arm_vnegq_x_f32): Likewise.
24725         (__arm_vmulq_x_f16): Likewise.
24726         (__arm_vmulq_x_f32): Likewise.
24727         (__arm_vmulq_x_n_f16): Likewise.
24728         (__arm_vmulq_x_n_f32): Likewise.
24729         (__arm_vsubq_x_f16): Likewise.
24730         (__arm_vsubq_x_f32): Likewise.
24731         (__arm_vsubq_x_n_f16): Likewise.
24732         (__arm_vsubq_x_n_f32): Likewise.
24733         (__arm_vcaddq_rot90_x_f16): Likewise.
24734         (__arm_vcaddq_rot90_x_f32): Likewise.
24735         (__arm_vcaddq_rot270_x_f16): Likewise.
24736         (__arm_vcaddq_rot270_x_f32): Likewise.
24737         (__arm_vcmulq_x_f16): Likewise.
24738         (__arm_vcmulq_x_f32): Likewise.
24739         (__arm_vcmulq_rot90_x_f16): Likewise.
24740         (__arm_vcmulq_rot90_x_f32): Likewise.
24741         (__arm_vcmulq_rot180_x_f16): Likewise.
24742         (__arm_vcmulq_rot180_x_f32): Likewise.
24743         (__arm_vcmulq_rot270_x_f16): Likewise.
24744         (__arm_vcmulq_rot270_x_f32): Likewise.
24745         (__arm_vcvtaq_x_s16_f16): Likewise.
24746         (__arm_vcvtaq_x_s32_f32): Likewise.
24747         (__arm_vcvtaq_x_u16_f16): Likewise.
24748         (__arm_vcvtaq_x_u32_f32): Likewise.
24749         (__arm_vcvtnq_x_s16_f16): Likewise.
24750         (__arm_vcvtnq_x_s32_f32): Likewise.
24751         (__arm_vcvtnq_x_u16_f16): Likewise.
24752         (__arm_vcvtnq_x_u32_f32): Likewise.
24753         (__arm_vcvtpq_x_s16_f16): Likewise.
24754         (__arm_vcvtpq_x_s32_f32): Likewise.
24755         (__arm_vcvtpq_x_u16_f16): Likewise.
24756         (__arm_vcvtpq_x_u32_f32): Likewise.
24757         (__arm_vcvtmq_x_s16_f16): Likewise.
24758         (__arm_vcvtmq_x_s32_f32): Likewise.
24759         (__arm_vcvtmq_x_u16_f16): Likewise.
24760         (__arm_vcvtmq_x_u32_f32): Likewise.
24761         (__arm_vcvtbq_x_f32_f16): Likewise.
24762         (__arm_vcvttq_x_f32_f16): Likewise.
24763         (__arm_vcvtq_x_f16_u16): Likewise.
24764         (__arm_vcvtq_x_f16_s16): Likewise.
24765         (__arm_vcvtq_x_f32_s32): Likewise.
24766         (__arm_vcvtq_x_f32_u32): Likewise.
24767         (__arm_vcvtq_x_n_f16_s16): Likewise.
24768         (__arm_vcvtq_x_n_f16_u16): Likewise.
24769         (__arm_vcvtq_x_n_f32_s32): Likewise.
24770         (__arm_vcvtq_x_n_f32_u32): Likewise.
24771         (__arm_vcvtq_x_s16_f16): Likewise.
24772         (__arm_vcvtq_x_s32_f32): Likewise.
24773         (__arm_vcvtq_x_u16_f16): Likewise.
24774         (__arm_vcvtq_x_u32_f32): Likewise.
24775         (__arm_vcvtq_x_n_s16_f16): Likewise.
24776         (__arm_vcvtq_x_n_s32_f32): Likewise.
24777         (__arm_vcvtq_x_n_u16_f16): Likewise.
24778         (__arm_vcvtq_x_n_u32_f32): Likewise.
24779         (__arm_vrndq_x_f16): Likewise.
24780         (__arm_vrndq_x_f32): Likewise.
24781         (__arm_vrndnq_x_f16): Likewise.
24782         (__arm_vrndnq_x_f32): Likewise.
24783         (__arm_vrndmq_x_f16): Likewise.
24784         (__arm_vrndmq_x_f32): Likewise.
24785         (__arm_vrndpq_x_f16): Likewise.
24786         (__arm_vrndpq_x_f32): Likewise.
24787         (__arm_vrndaq_x_f16): Likewise.
24788         (__arm_vrndaq_x_f32): Likewise.
24789         (__arm_vrndxq_x_f16): Likewise.
24790         (__arm_vrndxq_x_f32): Likewise.
24791         (__arm_vandq_x_f16): Likewise.
24792         (__arm_vandq_x_f32): Likewise.
24793         (__arm_vbicq_x_f16): Likewise.
24794         (__arm_vbicq_x_f32): Likewise.
24795         (__arm_vbrsrq_x_n_f16): Likewise.
24796         (__arm_vbrsrq_x_n_f32): Likewise.
24797         (__arm_veorq_x_f16): Likewise.
24798         (__arm_veorq_x_f32): Likewise.
24799         (__arm_vornq_x_f16): Likewise.
24800         (__arm_vornq_x_f32): Likewise.
24801         (__arm_vorrq_x_f16): Likewise.
24802         (__arm_vorrq_x_f32): Likewise.
24803         (__arm_vrev32q_x_f16): Likewise.
24804         (__arm_vrev64q_x_f16): Likewise.
24805         (__arm_vrev64q_x_f32): Likewise.
24806         (vabdq_x): Define polymorphic variant.
24807         (vabsq_x): Likewise.
24808         (vaddq_x): Likewise.
24809         (vandq_x): Likewise.
24810         (vbicq_x): Likewise.
24811         (vbrsrq_x): Likewise.
24812         (vcaddq_rot270_x): Likewise.
24813         (vcaddq_rot90_x): Likewise.
24814         (vcmulq_rot180_x): Likewise.
24815         (vcmulq_rot270_x): Likewise.
24816         (vcmulq_x): Likewise.
24817         (vcvtq_x): Likewise.
24818         (vcvtq_x_n): Likewise.
24819         (vcvtnq_m): Likewise.
24820         (veorq_x): Likewise.
24821         (vmaxnmq_x): Likewise.
24822         (vminnmq_x): Likewise.
24823         (vmulq_x): Likewise.
24824         (vnegq_x): Likewise.
24825         (vornq_x): Likewise.
24826         (vorrq_x): Likewise.
24827         (vrev32q_x): Likewise.
24828         (vrev64q_x): Likewise.
24829         (vrndaq_x): Likewise.
24830         (vrndmq_x): Likewise.
24831         (vrndnq_x): Likewise.
24832         (vrndpq_x): Likewise.
24833         (vrndq_x): Likewise.
24834         (vrndxq_x): Likewise.
24835         (vsubq_x): Likewise.
24836         (vcmulq_rot90_x): Likewise.
24837         (vadciq): Likewise.
24838         (vclsq_x): Likewise.
24839         (vclzq_x): Likewise.
24840         (vhaddq_x): Likewise.
24841         (vhcaddq_rot270_x): Likewise.
24842         (vhcaddq_rot90_x): Likewise.
24843         (vhsubq_x): Likewise.
24844         (vmaxq_x): Likewise.
24845         (vminq_x): Likewise.
24846         (vmovlbq_x): Likewise.
24847         (vmovltq_x): Likewise.
24848         (vmulhq_x): Likewise.
24849         (vmullbq_int_x): Likewise.
24850         (vmullbq_poly_x): Likewise.
24851         (vmulltq_int_x): Likewise.
24852         (vmulltq_poly_x): Likewise.
24853         (vmvnq_x): Likewise.
24854         (vrev16q_x): Likewise.
24855         (vrhaddq_x): Likewise.
24856         (vrmulhq_x): Likewise.
24857         (vrshlq_x): Likewise.
24858         (vrshrq_x): Likewise.
24859         (vshllbq_x): Likewise.
24860         (vshlltq_x): Likewise.
24861         (vshlq_x_n): Likewise.
24862         (vshlq_x): Likewise.
24863         (vdwdupq_x_u8): Likewise.
24864         (vdwdupq_x_u16): Likewise.
24865         (vdwdupq_x_u32): Likewise.
24866         (viwdupq_x_u8): Likewise.
24867         (viwdupq_x_u16): Likewise.
24868         (viwdupq_x_u32): Likewise.
24869         (vidupq_x_u8): Likewise.
24870         (vddupq_x_u8): Likewise.
24871         (vidupq_x_u16): Likewise.
24872         (vddupq_x_u16): Likewise.
24873         (vidupq_x_u32): Likewise.
24874         (vddupq_x_u32): Likewise.
24875         (vshrq_x): Likewise.
24877 2020-03-20  Richard Biener  <rguenther@suse.de>
24879         * tree-vect-slp.c (vect_analyze_slp_instance): Push the stmts
24880         to vectorize for CTOR defs.
24882 2020-03-20  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
24883             Andre Vieira  <andre.simoesdiasvieira@arm.com>
24884             Mihail Ionescu  <mihail.ionescu@arm.com>
24886         * config/arm/arm-builtins.c (LDRGBWBS_QUALIFIERS): Define builtin
24887         qualifier.
24888         (LDRGBWBU_QUALIFIERS): Likewise.
24889         (LDRGBWBS_Z_QUALIFIERS): Likewise.
24890         (LDRGBWBU_Z_QUALIFIERS): Likewise.
24891         (STRSBWBS_QUALIFIERS): Likewise.
24892         (STRSBWBU_QUALIFIERS): Likewise.
24893         (STRSBWBS_P_QUALIFIERS): Likewise.
24894         (STRSBWBU_P_QUALIFIERS): Likewise.
24895         * config/arm/arm_mve.h (vldrdq_gather_base_wb_s64): Define macro.
24896         (vldrdq_gather_base_wb_u64): Likewise.
24897         (vldrdq_gather_base_wb_z_s64): Likewise.
24898         (vldrdq_gather_base_wb_z_u64): Likewise.
24899         (vldrwq_gather_base_wb_f32): Likewise.
24900         (vldrwq_gather_base_wb_s32): Likewise.
24901         (vldrwq_gather_base_wb_u32): Likewise.
24902         (vldrwq_gather_base_wb_z_f32): Likewise.
24903         (vldrwq_gather_base_wb_z_s32): Likewise.
24904         (vldrwq_gather_base_wb_z_u32): Likewise.
24905         (vstrdq_scatter_base_wb_p_s64): Likewise.
24906         (vstrdq_scatter_base_wb_p_u64): Likewise.
24907         (vstrdq_scatter_base_wb_s64): Likewise.
24908         (vstrdq_scatter_base_wb_u64): Likewise.
24909         (vstrwq_scatter_base_wb_p_s32): Likewise.
24910         (vstrwq_scatter_base_wb_p_f32): Likewise.
24911         (vstrwq_scatter_base_wb_p_u32): Likewise.
24912         (vstrwq_scatter_base_wb_s32): Likewise.
24913         (vstrwq_scatter_base_wb_u32): Likewise.
24914         (vstrwq_scatter_base_wb_f32): Likewise.
24915         (__arm_vldrdq_gather_base_wb_s64): Define intrinsic.
24916         (__arm_vldrdq_gather_base_wb_u64): Likewise.
24917         (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
24918         (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
24919         (__arm_vldrwq_gather_base_wb_s32): Likewise.
24920         (__arm_vldrwq_gather_base_wb_u32): Likewise.
24921         (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
24922         (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
24923         (__arm_vstrdq_scatter_base_wb_s64): Likewise.
24924         (__arm_vstrdq_scatter_base_wb_u64): Likewise.
24925         (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
24926         (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
24927         (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
24928         (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
24929         (__arm_vstrwq_scatter_base_wb_s32): Likewise.
24930         (__arm_vstrwq_scatter_base_wb_u32): Likewise.
24931         (__arm_vldrwq_gather_base_wb_f32): Likewise.
24932         (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
24933         (__arm_vstrwq_scatter_base_wb_f32): Likewise.
24934         (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
24935         (vstrwq_scatter_base_wb): Define polymorphic variant.
24936         (vstrwq_scatter_base_wb_p): Likewise.
24937         (vstrdq_scatter_base_wb_p): Likewise.
24938         (vstrdq_scatter_base_wb): Likewise.
24939         * config/arm/arm_mve_builtins.def (LDRGBWBS_QUALIFIERS): Use builtin
24940         qualifier.
24941         * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Define RTL
24942         pattern.
24943         (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
24944         (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Likewise.
24945         (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Likewise.
24946         (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
24947         (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Likewise.
24948         (mve_vstrwq_scatter_base_wb_fv4sf): Likewise.
24949         (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
24950         (mve_vstrwq_scatter_base_wb_fv4sf_insn): Likewise.
24951         (mve_vstrwq_scatter_base_wb_p_fv4sf): Likewise.
24952         (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
24953         (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Likewise.
24954         (mve_vstrdq_scatter_base_wb_<supf>v2di): Likewise.
24955         (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
24956         (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Likewise.
24957         (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Likewise.
24958         (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
24959         (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Likewise.
24960         (mve_vldrwq_gather_base_wb_<supf>v4si): Likewise.
24961         (mve_vldrwq_gather_base_wb_<supf>v4si_insn): Likewise.
24962         (mve_vldrwq_gather_base_wb_z_<supf>v4si): Likewise.
24963         (mve_vldrwq_gather_base_wb_z_<supf>v4si_insn): Likewise.
24964         (mve_vldrwq_gather_base_wb_fv4sf): Likewise.
24965         (mve_vldrwq_gather_base_wb_fv4sf_insn): Likewise.
24966         (mve_vldrwq_gather_base_wb_z_fv4sf): Likewise.
24967         (mve_vldrwq_gather_base_wb_z_fv4sf_insn): Likewise.
24968         (mve_vldrdq_gather_base_wb_<supf>v2di): Likewise.
24969         (mve_vldrdq_gather_base_wb_<supf>v2di_insn): Likewise.
24970         (mve_vldrdq_gather_base_wb_z_<supf>v2di): Likewise.
24971         (mve_vldrdq_gather_base_wb_z_<supf>v2di_insn): Likewise.
24973 2020-03-20  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
24974             Andre Vieira  <andre.simoesdiasvieira@arm.com>
24975             Mihail Ionescu  <mihail.ionescu@arm.com>
24977         * config/arm/arm-builtins.c
24978         (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Define quinary
24979         builtin qualifier.
24980         * config/arm/arm_mve.h (vddupq_m_n_u8): Define macro.
24981         (vddupq_m_n_u32): Likewise.
24982         (vddupq_m_n_u16): Likewise.
24983         (vddupq_m_wb_u8): Likewise.
24984         (vddupq_m_wb_u16): Likewise.
24985         (vddupq_m_wb_u32): Likewise.
24986         (vddupq_n_u8): Likewise.
24987         (vddupq_n_u32): Likewise.
24988         (vddupq_n_u16): Likewise.
24989         (vddupq_wb_u8): Likewise.
24990         (vddupq_wb_u16): Likewise.
24991         (vddupq_wb_u32): Likewise.
24992         (vdwdupq_m_n_u8): Likewise.
24993         (vdwdupq_m_n_u32): Likewise.
24994         (vdwdupq_m_n_u16): Likewise.
24995         (vdwdupq_m_wb_u8): Likewise.
24996         (vdwdupq_m_wb_u32): Likewise.
24997         (vdwdupq_m_wb_u16): Likewise.
24998         (vdwdupq_n_u8): Likewise.
24999         (vdwdupq_n_u32): Likewise.
25000         (vdwdupq_n_u16): Likewise.
25001         (vdwdupq_wb_u8): Likewise.
25002         (vdwdupq_wb_u32): Likewise.
25003         (vdwdupq_wb_u16): Likewise.
25004         (vidupq_m_n_u8): Likewise.
25005         (vidupq_m_n_u32): Likewise.
25006         (vidupq_m_n_u16): Likewise.
25007         (vidupq_m_wb_u8): Likewise.
25008         (vidupq_m_wb_u16): Likewise.
25009         (vidupq_m_wb_u32): Likewise.
25010         (vidupq_n_u8): Likewise.
25011         (vidupq_n_u32): Likewise.
25012         (vidupq_n_u16): Likewise.
25013         (vidupq_wb_u8): Likewise.
25014         (vidupq_wb_u16): Likewise.
25015         (vidupq_wb_u32): Likewise.
25016         (viwdupq_m_n_u8): Likewise.
25017         (viwdupq_m_n_u32): Likewise.
25018         (viwdupq_m_n_u16): Likewise.
25019         (viwdupq_m_wb_u8): Likewise.
25020         (viwdupq_m_wb_u32): Likewise.
25021         (viwdupq_m_wb_u16): Likewise.
25022         (viwdupq_n_u8): Likewise.
25023         (viwdupq_n_u32): Likewise.
25024         (viwdupq_n_u16): Likewise.
25025         (viwdupq_wb_u8): Likewise.
25026         (viwdupq_wb_u32): Likewise.
25027         (viwdupq_wb_u16): Likewise.
25028         (__arm_vddupq_m_n_u8): Define intrinsic.
25029         (__arm_vddupq_m_n_u32): Likewise.
25030         (__arm_vddupq_m_n_u16): Likewise.
25031         (__arm_vddupq_m_wb_u8): Likewise.
25032         (__arm_vddupq_m_wb_u16): Likewise.
25033         (__arm_vddupq_m_wb_u32): Likewise.
25034         (__arm_vddupq_n_u8): Likewise.
25035         (__arm_vddupq_n_u32): Likewise.
25036         (__arm_vddupq_n_u16): Likewise.
25037         (__arm_vdwdupq_m_n_u8): Likewise.
25038         (__arm_vdwdupq_m_n_u32): Likewise.
25039         (__arm_vdwdupq_m_n_u16): Likewise.
25040         (__arm_vdwdupq_m_wb_u8): Likewise.
25041         (__arm_vdwdupq_m_wb_u32): Likewise.
25042         (__arm_vdwdupq_m_wb_u16): Likewise.
25043         (__arm_vdwdupq_n_u8): Likewise.
25044         (__arm_vdwdupq_n_u32): Likewise.
25045         (__arm_vdwdupq_n_u16): Likewise.
25046         (__arm_vdwdupq_wb_u8): Likewise.
25047         (__arm_vdwdupq_wb_u32): Likewise.
25048         (__arm_vdwdupq_wb_u16): Likewise.
25049         (__arm_vidupq_m_n_u8): Likewise.
25050         (__arm_vidupq_m_n_u32): Likewise.
25051         (__arm_vidupq_m_n_u16): Likewise.
25052         (__arm_vidupq_n_u8): Likewise.
25053         (__arm_vidupq_m_wb_u8): Likewise.
25054         (__arm_vidupq_m_wb_u16): Likewise.
25055         (__arm_vidupq_m_wb_u32): Likewise.
25056         (__arm_vidupq_n_u32): Likewise.
25057         (__arm_vidupq_n_u16): Likewise.
25058         (__arm_vidupq_wb_u8): Likewise.
25059         (__arm_vidupq_wb_u16): Likewise.
25060         (__arm_vidupq_wb_u32): Likewise.
25061         (__arm_vddupq_wb_u8): Likewise.
25062         (__arm_vddupq_wb_u16): Likewise.
25063         (__arm_vddupq_wb_u32): Likewise.
25064         (__arm_viwdupq_m_n_u8): Likewise.
25065         (__arm_viwdupq_m_n_u32): Likewise.
25066         (__arm_viwdupq_m_n_u16): Likewise.
25067         (__arm_viwdupq_m_wb_u8): Likewise.
25068         (__arm_viwdupq_m_wb_u32): Likewise.
25069         (__arm_viwdupq_m_wb_u16): Likewise.
25070         (__arm_viwdupq_n_u8): Likewise.
25071         (__arm_viwdupq_n_u32): Likewise.
25072         (__arm_viwdupq_n_u16): Likewise.
25073         (__arm_viwdupq_wb_u8): Likewise.
25074         (__arm_viwdupq_wb_u32): Likewise.
25075         (__arm_viwdupq_wb_u16): Likewise.
25076         (vidupq_m): Define polymorphic variant.
25077         (vddupq_m): Likewise.
25078         (vidupq_u16): Likewise.
25079         (vidupq_u32): Likewise.
25080         (vidupq_u8): Likewise.
25081         (vddupq_u16): Likewise.
25082         (vddupq_u32): Likewise.
25083         (vddupq_u8): Likewise.
25084         (viwdupq_m): Likewise.
25085         (viwdupq_u16): Likewise.
25086         (viwdupq_u32): Likewise.
25087         (viwdupq_u8): Likewise.
25088         (vdwdupq_m): Likewise.
25089         (vdwdupq_u16): Likewise.
25090         (vdwdupq_u32): Likewise.
25091         (vdwdupq_u8): Likewise.
25092         * config/arm/arm_mve_builtins.def
25093         (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Use builtin
25094         qualifier.
25095         * config/arm/mve.md (mve_vidupq_n_u<mode>): Define RTL pattern.
25096         (mve_vidupq_u<mode>_insn): Likewise.
25097         (mve_vidupq_m_n_u<mode>): Likewise.
25098         (mve_vidupq_m_wb_u<mode>_insn): Likewise.
25099         (mve_vddupq_n_u<mode>): Likewise.
25100         (mve_vddupq_u<mode>_insn): Likewise.
25101         (mve_vddupq_m_n_u<mode>): Likewise.
25102         (mve_vddupq_m_wb_u<mode>_insn): Likewise.
25103         (mve_vdwdupq_n_u<mode>): Likewise.
25104         (mve_vdwdupq_wb_u<mode>): Likewise.
25105         (mve_vdwdupq_wb_u<mode>_insn): Likewise.
25106         (mve_vdwdupq_m_n_u<mode>): Likewise.
25107         (mve_vdwdupq_m_wb_u<mode>): Likewise.
25108         (mve_vdwdupq_m_wb_u<mode>_insn): Likewise.
25109         (mve_viwdupq_n_u<mode>): Likewise.
25110         (mve_viwdupq_wb_u<mode>): Likewise.
25111         (mve_viwdupq_wb_u<mode>_insn): Likewise.
25112         (mve_viwdupq_m_n_u<mode>): Likewise.
25113         (mve_viwdupq_m_wb_u<mode>): Likewise.
25114         (mve_viwdupq_m_wb_u<mode>_insn): Likewise.
25116 2020-03-20  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
25118         * config/arm/arm_mve.h (vreinterpretq_s16_s32): Define macro.
25119         (vreinterpretq_s16_s64): Likewise.
25120         (vreinterpretq_s16_s8): Likewise.
25121         (vreinterpretq_s16_u16): Likewise.
25122         (vreinterpretq_s16_u32): Likewise.
25123         (vreinterpretq_s16_u64): Likewise.
25124         (vreinterpretq_s16_u8): Likewise.
25125         (vreinterpretq_s32_s16): Likewise.
25126         (vreinterpretq_s32_s64): Likewise.
25127         (vreinterpretq_s32_s8): Likewise.
25128         (vreinterpretq_s32_u16): Likewise.
25129         (vreinterpretq_s32_u32): Likewise.
25130         (vreinterpretq_s32_u64): Likewise.
25131         (vreinterpretq_s32_u8): Likewise.
25132         (vreinterpretq_s64_s16): Likewise.
25133         (vreinterpretq_s64_s32): Likewise.
25134         (vreinterpretq_s64_s8): Likewise.
25135         (vreinterpretq_s64_u16): Likewise.
25136         (vreinterpretq_s64_u32): Likewise.
25137         (vreinterpretq_s64_u64): Likewise.
25138         (vreinterpretq_s64_u8): Likewise.
25139         (vreinterpretq_s8_s16): Likewise.
25140         (vreinterpretq_s8_s32): Likewise.
25141         (vreinterpretq_s8_s64): Likewise.
25142         (vreinterpretq_s8_u16): Likewise.
25143         (vreinterpretq_s8_u32): Likewise.
25144         (vreinterpretq_s8_u64): Likewise.
25145         (vreinterpretq_s8_u8): Likewise.
25146         (vreinterpretq_u16_s16): Likewise.
25147         (vreinterpretq_u16_s32): Likewise.
25148         (vreinterpretq_u16_s64): Likewise.
25149         (vreinterpretq_u16_s8): Likewise.
25150         (vreinterpretq_u16_u32): Likewise.
25151         (vreinterpretq_u16_u64): Likewise.
25152         (vreinterpretq_u16_u8): Likewise.
25153         (vreinterpretq_u32_s16): Likewise.
25154         (vreinterpretq_u32_s32): Likewise.
25155         (vreinterpretq_u32_s64): Likewise.
25156         (vreinterpretq_u32_s8): Likewise.
25157         (vreinterpretq_u32_u16): Likewise.
25158         (vreinterpretq_u32_u64): Likewise.
25159         (vreinterpretq_u32_u8): Likewise.
25160         (vreinterpretq_u64_s16): Likewise.
25161         (vreinterpretq_u64_s32): Likewise.
25162         (vreinterpretq_u64_s64): Likewise.
25163         (vreinterpretq_u64_s8): Likewise.
25164         (vreinterpretq_u64_u16): Likewise.
25165         (vreinterpretq_u64_u32): Likewise.
25166         (vreinterpretq_u64_u8): Likewise.
25167         (vreinterpretq_u8_s16): Likewise.
25168         (vreinterpretq_u8_s32): Likewise.
25169         (vreinterpretq_u8_s64): Likewise.
25170         (vreinterpretq_u8_s8): Likewise.
25171         (vreinterpretq_u8_u16): Likewise.
25172         (vreinterpretq_u8_u32): Likewise.
25173         (vreinterpretq_u8_u64): Likewise.
25174         (vreinterpretq_s32_f16): Likewise.
25175         (vreinterpretq_s32_f32): Likewise.
25176         (vreinterpretq_u16_f16): Likewise.
25177         (vreinterpretq_u16_f32): Likewise.
25178         (vreinterpretq_u32_f16): Likewise.
25179         (vreinterpretq_u32_f32): Likewise.
25180         (vreinterpretq_u64_f16): Likewise.
25181         (vreinterpretq_u64_f32): Likewise.
25182         (vreinterpretq_u8_f16): Likewise.
25183         (vreinterpretq_u8_f32): Likewise.
25184         (vreinterpretq_f16_f32): Likewise.
25185         (vreinterpretq_f16_s16): Likewise.
25186         (vreinterpretq_f16_s32): Likewise.
25187         (vreinterpretq_f16_s64): Likewise.
25188         (vreinterpretq_f16_s8): Likewise.
25189         (vreinterpretq_f16_u16): Likewise.
25190         (vreinterpretq_f16_u32): Likewise.
25191         (vreinterpretq_f16_u64): Likewise.
25192         (vreinterpretq_f16_u8): Likewise.
25193         (vreinterpretq_f32_f16): Likewise.
25194         (vreinterpretq_f32_s16): Likewise.
25195         (vreinterpretq_f32_s32): Likewise.
25196         (vreinterpretq_f32_s64): Likewise.
25197         (vreinterpretq_f32_s8): Likewise.
25198         (vreinterpretq_f32_u16): Likewise.
25199         (vreinterpretq_f32_u32): Likewise.
25200         (vreinterpretq_f32_u64): Likewise.
25201         (vreinterpretq_f32_u8): Likewise.
25202         (vreinterpretq_s16_f16): Likewise.
25203         (vreinterpretq_s16_f32): Likewise.
25204         (vreinterpretq_s64_f16): Likewise.
25205         (vreinterpretq_s64_f32): Likewise.
25206         (vreinterpretq_s8_f16): Likewise.
25207         (vreinterpretq_s8_f32): Likewise.
25208         (vuninitializedq_u8): Likewise.
25209         (vuninitializedq_u16): Likewise.
25210         (vuninitializedq_u32): Likewise.
25211         (vuninitializedq_u64): Likewise.
25212         (vuninitializedq_s8): Likewise.
25213         (vuninitializedq_s16): Likewise.
25214         (vuninitializedq_s32): Likewise.
25215         (vuninitializedq_s64): Likewise.
25216         (vuninitializedq_f16): Likewise.
25217         (vuninitializedq_f32): Likewise.
25218         (__arm_vuninitializedq_u8): Define intrinsic.
25219         (__arm_vuninitializedq_u16): Likewise.
25220         (__arm_vuninitializedq_u32): Likewise.
25221         (__arm_vuninitializedq_u64): Likewise.
25222         (__arm_vuninitializedq_s8): Likewise.
25223         (__arm_vuninitializedq_s16): Likewise.
25224         (__arm_vuninitializedq_s32): Likewise.
25225         (__arm_vuninitializedq_s64): Likewise.
25226         (__arm_vreinterpretq_s16_s32): Likewise.
25227         (__arm_vreinterpretq_s16_s64): Likewise.
25228         (__arm_vreinterpretq_s16_s8): Likewise.
25229         (__arm_vreinterpretq_s16_u16): Likewise.
25230         (__arm_vreinterpretq_s16_u32): Likewise.
25231         (__arm_vreinterpretq_s16_u64): Likewise.
25232         (__arm_vreinterpretq_s16_u8): Likewise.
25233         (__arm_vreinterpretq_s32_s16): Likewise.
25234         (__arm_vreinterpretq_s32_s64): Likewise.
25235         (__arm_vreinterpretq_s32_s8): Likewise.
25236         (__arm_vreinterpretq_s32_u16): Likewise.
25237         (__arm_vreinterpretq_s32_u32): Likewise.
25238         (__arm_vreinterpretq_s32_u64): Likewise.
25239         (__arm_vreinterpretq_s32_u8): Likewise.
25240         (__arm_vreinterpretq_s64_s16): Likewise.
25241         (__arm_vreinterpretq_s64_s32): Likewise.
25242         (__arm_vreinterpretq_s64_s8): Likewise.
25243         (__arm_vreinterpretq_s64_u16): Likewise.
25244         (__arm_vreinterpretq_s64_u32): Likewise.
25245         (__arm_vreinterpretq_s64_u64): Likewise.
25246         (__arm_vreinterpretq_s64_u8): Likewise.
25247         (__arm_vreinterpretq_s8_s16): Likewise.
25248         (__arm_vreinterpretq_s8_s32): Likewise.
25249         (__arm_vreinterpretq_s8_s64): Likewise.
25250         (__arm_vreinterpretq_s8_u16): Likewise.
25251         (__arm_vreinterpretq_s8_u32): Likewise.
25252         (__arm_vreinterpretq_s8_u64): Likewise.
25253         (__arm_vreinterpretq_s8_u8): Likewise.
25254         (__arm_vreinterpretq_u16_s16): Likewise.
25255         (__arm_vreinterpretq_u16_s32): Likewise.
25256         (__arm_vreinterpretq_u16_s64): Likewise.
25257         (__arm_vreinterpretq_u16_s8): Likewise.
25258         (__arm_vreinterpretq_u16_u32): Likewise.
25259         (__arm_vreinterpretq_u16_u64): Likewise.
25260         (__arm_vreinterpretq_u16_u8): Likewise.
25261         (__arm_vreinterpretq_u32_s16): Likewise.
25262         (__arm_vreinterpretq_u32_s32): Likewise.
25263         (__arm_vreinterpretq_u32_s64): Likewise.
25264         (__arm_vreinterpretq_u32_s8): Likewise.
25265         (__arm_vreinterpretq_u32_u16): Likewise.
25266         (__arm_vreinterpretq_u32_u64): Likewise.
25267         (__arm_vreinterpretq_u32_u8): Likewise.
25268         (__arm_vreinterpretq_u64_s16): Likewise.
25269         (__arm_vreinterpretq_u64_s32): Likewise.
25270         (__arm_vreinterpretq_u64_s64): Likewise.
25271         (__arm_vreinterpretq_u64_s8): Likewise.
25272         (__arm_vreinterpretq_u64_u16): Likewise.
25273         (__arm_vreinterpretq_u64_u32): Likewise.
25274         (__arm_vreinterpretq_u64_u8): Likewise.
25275         (__arm_vreinterpretq_u8_s16): Likewise.
25276         (__arm_vreinterpretq_u8_s32): Likewise.
25277         (__arm_vreinterpretq_u8_s64): Likewise.
25278         (__arm_vreinterpretq_u8_s8): Likewise.
25279         (__arm_vreinterpretq_u8_u16): Likewise.
25280         (__arm_vreinterpretq_u8_u32): Likewise.
25281         (__arm_vreinterpretq_u8_u64): Likewise.
25282         (__arm_vuninitializedq_f16): Likewise.
25283         (__arm_vuninitializedq_f32): Likewise.
25284         (__arm_vreinterpretq_s32_f16): Likewise.
25285         (__arm_vreinterpretq_s32_f32): Likewise.
25286         (__arm_vreinterpretq_s16_f16): Likewise.
25287         (__arm_vreinterpretq_s16_f32): Likewise.
25288         (__arm_vreinterpretq_s64_f16): Likewise.
25289         (__arm_vreinterpretq_s64_f32): Likewise.
25290         (__arm_vreinterpretq_s8_f16): Likewise.
25291         (__arm_vreinterpretq_s8_f32): Likewise.
25292         (__arm_vreinterpretq_u16_f16): Likewise.
25293         (__arm_vreinterpretq_u16_f32): Likewise.
25294         (__arm_vreinterpretq_u32_f16): Likewise.
25295         (__arm_vreinterpretq_u32_f32): Likewise.
25296         (__arm_vreinterpretq_u64_f16): Likewise.
25297         (__arm_vreinterpretq_u64_f32): Likewise.
25298         (__arm_vreinterpretq_u8_f16): Likewise.
25299         (__arm_vreinterpretq_u8_f32): Likewise.
25300         (__arm_vreinterpretq_f16_f32): Likewise.
25301         (__arm_vreinterpretq_f16_s16): Likewise.
25302         (__arm_vreinterpretq_f16_s32): Likewise.
25303         (__arm_vreinterpretq_f16_s64): Likewise.
25304         (__arm_vreinterpretq_f16_s8): Likewise.
25305         (__arm_vreinterpretq_f16_u16): Likewise.
25306         (__arm_vreinterpretq_f16_u32): Likewise.
25307         (__arm_vreinterpretq_f16_u64): Likewise.
25308         (__arm_vreinterpretq_f16_u8): Likewise.
25309         (__arm_vreinterpretq_f32_f16): Likewise.
25310         (__arm_vreinterpretq_f32_s16): Likewise.
25311         (__arm_vreinterpretq_f32_s32): Likewise.
25312         (__arm_vreinterpretq_f32_s64): Likewise.
25313         (__arm_vreinterpretq_f32_s8): Likewise.
25314         (__arm_vreinterpretq_f32_u16): Likewise.
25315         (__arm_vreinterpretq_f32_u32): Likewise.
25316         (__arm_vreinterpretq_f32_u64): Likewise.
25317         (__arm_vreinterpretq_f32_u8): Likewise.
25318         (vuninitializedq): Define polymorphic variant.
25319         (vreinterpretq_f16): Likewise.
25320         (vreinterpretq_f32): Likewise.
25321         (vreinterpretq_s16): Likewise.
25322         (vreinterpretq_s32): Likewise.
25323         (vreinterpretq_s64): Likewise.
25324         (vreinterpretq_s8): Likewise.
25325         (vreinterpretq_u16): Likewise.
25326         (vreinterpretq_u32): Likewise.
25327         (vreinterpretq_u64): Likewise.
25328         (vreinterpretq_u8): Likewise.
25330 2020-03-20  Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
25331             Andre Vieira  <andre.simoesdiasvieira@arm.com>
25332             Mihail Ionescu  <mihail.ionescu@arm.com>
25334         * config/arm/arm_mve.h (vaddq_s8): Define macro.
25335         (vaddq_s16): Likewise.
25336         (vaddq_s32): Likewise.
25337         (vaddq_u8): Likewise.
25338         (vaddq_u16): Likewise.
25339         (vaddq_u32): Likewise.
25340         (vaddq_f16): Likewise.
25341         (vaddq_f32): Likewise.
25342         (__arm_vaddq_s8): Define intrinsic.
25343         (__arm_vaddq_s16): Likewise.
25344         (__arm_vaddq_s32): Likewise.
25345         (__arm_vaddq_u8): Likewise.
25346         (__arm_vaddq_u16): Likewise.
25347         (__arm_vaddq_u32): Likewise.
25348         (__arm_vaddq_f16): Likewise.
25349         (__arm_vaddq_f32): Likewise.
25350         (vaddq): Define polymorphic variant.
25351         * config/arm/iterators.md (VNIM): Define mode iterator for common types
25352         Neon, IWMMXT and MVE.
25353         (VNINOTM): Likewise.
25354         * config/arm/mve.md (mve_vaddq<mode>): Define RTL pattern.
25355         (mve_vaddq_f<mode>): Define RTL pattern.
25356         * config/arm/neon.md (add<mode>3): Rename to addv4hf3 RTL pattern.
25357         (addv8hf3_neon): Define RTL pattern.
25358         * config/arm/vec-common.md (add<mode>3): Modify standard add RTL pattern
25359         to support MVE.
25360         (addv8hf3): Define standard RTL pattern for MVE and Neon.
25361         (add<mode>3): Modify existing standard add RTL pattern for Neon and IWMMXT.
25363 2020-03-20  Martin Liska  <mliska@suse.cz>
25365         PR ipa/94232
25366         * ipa-cp.c (ipa_get_jf_ancestor_result): Use offset in bytes. Previously
25367         build_ref_for_offset function was used and it transforms off to bytes
25368         from bits.
25370 2020-03-20  Richard Biener  <rguenther@suse.de>
25372         PR tree-optimization/94266
25373         * gimple-ssa-sprintf.c (get_origin_and_offset): Use the
25374         type of the underlying object to adjust for the containing
25375         field if available.
25377 2020-03-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
25379         * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Rename this to ...
25380         (VUNSPEC_GET_FPSCR): ... this, and move it to vunspec.
25381         * config/arm/vfp.md: (get_fpscr, set_fpscr): Revert to old patterns.
25383 2020-03-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
25385         * config/arm/mve.md (mve_mov<mode>): Fix R->R case.
25387 2020-03-20  Jakub Jelinek  <jakub@redhat.com>
25389         PR tree-optimization/94224
25390         * gimple-ssa-store-merging.c
25391         (imm_store_chain_info::coalesce_immediate): Don't consider overlapping
25392         or adjacent INTEGER_CST rhs_code stores as mergeable if they have
25393         different lp_nr.
25395 2020-03-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
25397         * config/arm/arm.md (define_attr "conds"): Fix logic for neon and mve.
25399 2020-03-19  Jan Hubicka  <hubicka@ucw.cz>
25401         PR ipa/94202
25402         * cgraph.c (cgraph_node::function_symbol): Fix availability computation.
25403         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
25405 2020-03-19  Jan Hubicka  <hubicka@ucw.cz>
25407         PR ipa/92372
25408         * cgraphunit.c (process_function_and_variable_attributes): warn
25409         for flatten attribute on alias.
25410         * ipa-inline.c (ipa_inline): Do not ICE on flatten attribute on alias.
25412 2020-03-19  Martin Liska  <mliska@suse.cz>
25414         * lto-section-in.c: Add ext_symtab.
25415         * lto-streamer-out.c (write_symbol_extension_info): New.
25416         (produce_symtab_extension): New.
25417         (produce_asm_for_decls): Stream also produce_symtab_extension.
25418         * lto-streamer.h (enum lto_section_type): New section.
25420 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
25422         PR tree-optimization/94211
25423         * tree-ssa-phiopt.c (value_replacement): Use estimate_num_insns_seq
25424         instead of estimate_num_insns for bb_seq (middle_bb).  Rename
25425         emtpy_or_with_defined_p variable to empty_or_with_defined_p, adjust
25426         all uses.
25428 2020-03-19  Richard Biener  <rguenther@suse.de>
25430         PR ipa/94217
25431         * ipa-cp.c (ipa_get_jf_ancestor_result): Avoid build_fold_addr_expr
25432         and build_ref_for_offset.
25434 2020-03-19  Richard Biener  <rguenther@suse.de>
25436         PR middle-end/94216
25437         * fold-const.c (fold_binary_loc): Avoid using
25438         build_fold_addr_expr when we really want an ADDR_EXPR.
25440 2020-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
25442         * config/rs6000/constraints.md (wd, wf, wi, ws, ww): New undocumented
25443         aliases for "wa".
25445 2020-03-12  Richard Sandiford  <richard.sandiford@arm.com>
25447         PR rtl-optimization/90275
25448         * cse.c (cse_insn): Delete no-op register moves too.
25450 2020-03-18  Martin Sebor  <msebor@redhat.com>
25452         PR ipa/92799
25453         * cgraphunit.c (process_function_and_variable_attributes): Also
25454         complain about weakref function definitions and drop all effects
25455         of the attribute.
25457 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
25458             Mihail Ionescu  <mihail.ionescu@arm.com>
25459             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
25461         * config/arm/arm_mve.h (vstrdq_scatter_base_p_s64): Define macro.
25462         (vstrdq_scatter_base_p_u64): Likewise.
25463         (vstrdq_scatter_base_s64): Likewise.
25464         (vstrdq_scatter_base_u64): Likewise.
25465         (vstrdq_scatter_offset_p_s64): Likewise.
25466         (vstrdq_scatter_offset_p_u64): Likewise.
25467         (vstrdq_scatter_offset_s64): Likewise.
25468         (vstrdq_scatter_offset_u64): Likewise.
25469         (vstrdq_scatter_shifted_offset_p_s64): Likewise.
25470         (vstrdq_scatter_shifted_offset_p_u64): Likewise.
25471         (vstrdq_scatter_shifted_offset_s64): Likewise.
25472         (vstrdq_scatter_shifted_offset_u64): Likewise.
25473         (vstrhq_scatter_offset_f16): Likewise.
25474         (vstrhq_scatter_offset_p_f16): Likewise.
25475         (vstrhq_scatter_shifted_offset_f16): Likewise.
25476         (vstrhq_scatter_shifted_offset_p_f16): Likewise.
25477         (vstrwq_scatter_base_f32): Likewise.
25478         (vstrwq_scatter_base_p_f32): Likewise.
25479         (vstrwq_scatter_offset_f32): Likewise.
25480         (vstrwq_scatter_offset_p_f32): Likewise.
25481         (vstrwq_scatter_offset_p_s32): Likewise.
25482         (vstrwq_scatter_offset_p_u32): Likewise.
25483         (vstrwq_scatter_offset_s32): Likewise.
25484         (vstrwq_scatter_offset_u32): Likewise.
25485         (vstrwq_scatter_shifted_offset_f32): Likewise.
25486         (vstrwq_scatter_shifted_offset_p_f32): Likewise.
25487         (vstrwq_scatter_shifted_offset_p_s32): Likewise.
25488         (vstrwq_scatter_shifted_offset_p_u32): Likewise.
25489         (vstrwq_scatter_shifted_offset_s32): Likewise.
25490         (vstrwq_scatter_shifted_offset_u32): Likewise.
25491         (__arm_vstrdq_scatter_base_p_s64): Define intrinsic.
25492         (__arm_vstrdq_scatter_base_p_u64): Likewise.
25493         (__arm_vstrdq_scatter_base_s64): Likewise.
25494         (__arm_vstrdq_scatter_base_u64): Likewise.
25495         (__arm_vstrdq_scatter_offset_p_s64): Likewise.
25496         (__arm_vstrdq_scatter_offset_p_u64): Likewise.
25497         (__arm_vstrdq_scatter_offset_s64): Likewise.
25498         (__arm_vstrdq_scatter_offset_u64): Likewise.
25499         (__arm_vstrdq_scatter_shifted_offset_p_s64): Likewise.
25500         (__arm_vstrdq_scatter_shifted_offset_p_u64): Likewise.
25501         (__arm_vstrdq_scatter_shifted_offset_s64): Likewise.
25502         (__arm_vstrdq_scatter_shifted_offset_u64): Likewise.
25503         (__arm_vstrwq_scatter_offset_p_s32): Likewise.
25504         (__arm_vstrwq_scatter_offset_p_u32): Likewise.
25505         (__arm_vstrwq_scatter_offset_s32): Likewise.
25506         (__arm_vstrwq_scatter_offset_u32): Likewise.
25507         (__arm_vstrwq_scatter_shifted_offset_p_s32): Likewise.
25508         (__arm_vstrwq_scatter_shifted_offset_p_u32): Likewise.
25509         (__arm_vstrwq_scatter_shifted_offset_s32): Likewise.
25510         (__arm_vstrwq_scatter_shifted_offset_u32): Likewise.
25511         (__arm_vstrhq_scatter_offset_f16): Likewise.
25512         (__arm_vstrhq_scatter_offset_p_f16): Likewise.
25513         (__arm_vstrhq_scatter_shifted_offset_f16): Likewise.
25514         (__arm_vstrhq_scatter_shifted_offset_p_f16): Likewise.
25515         (__arm_vstrwq_scatter_base_f32): Likewise.
25516         (__arm_vstrwq_scatter_base_p_f32): Likewise.
25517         (__arm_vstrwq_scatter_offset_f32): Likewise.
25518         (__arm_vstrwq_scatter_offset_p_f32): Likewise.
25519         (__arm_vstrwq_scatter_shifted_offset_f32): Likewise.
25520         (__arm_vstrwq_scatter_shifted_offset_p_f32): Likewise.
25521         (vstrhq_scatter_offset): Define polymorphic variant.
25522         (vstrhq_scatter_offset_p): Likewise.
25523         (vstrhq_scatter_shifted_offset): Likewise.
25524         (vstrhq_scatter_shifted_offset_p): Likewise.
25525         (vstrwq_scatter_base): Likewise.
25526         (vstrwq_scatter_base_p): Likewise.
25527         (vstrwq_scatter_offset): Likewise.
25528         (vstrwq_scatter_offset_p): Likewise.
25529         (vstrwq_scatter_shifted_offset): Likewise.
25530         (vstrwq_scatter_shifted_offset_p): Likewise.
25531         (vstrdq_scatter_base_p): Likewise.
25532         (vstrdq_scatter_base): Likewise.
25533         (vstrdq_scatter_offset_p): Likewise.
25534         (vstrdq_scatter_offset): Likewise.
25535         (vstrdq_scatter_shifted_offset_p): Likewise.
25536         (vstrdq_scatter_shifted_offset): Likewise.
25537         * config/arm/arm_mve_builtins.def (STRSBS): Use builtin qualifier.
25538         (STRSBS_P): Likewise.
25539         (STRSBU): Likewise.
25540         (STRSBU_P): Likewise.
25541         (STRSS): Likewise.
25542         (STRSS_P): Likewise.
25543         (STRSU): Likewise.
25544         (STRSU_P): Likewise.
25545         * config/arm/constraints.md (Ri): Define.
25546         * config/arm/mve.md (VSTRDSBQ): Define iterator.
25547         (VSTRDSOQ): Likewise.
25548         (VSTRDSSOQ): Likewise.
25549         (VSTRWSOQ): Likewise.
25550         (VSTRWSSOQ): Likewise.
25551         (mve_vstrdq_scatter_base_p_<supf>v2di): Define RTL pattern.
25552         (mve_vstrdq_scatter_base_<supf>v2di): Likewise.
25553         (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
25554         (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
25555         (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
25556         (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
25557         (mve_vstrhq_scatter_offset_fv8hf): Likewise.
25558         (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
25559         (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
25560         (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
25561         (mve_vstrwq_scatter_base_fv4sf): Likewise.
25562         (mve_vstrwq_scatter_base_p_fv4sf): Likewise.
25563         (mve_vstrwq_scatter_offset_fv4sf): Likewise.
25564         (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
25565         (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
25566         (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
25567         (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
25568         (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
25569         (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
25570         (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
25571         * config/arm/predicates.md (Ri): Define predicate to check immediate
25572         is the range +/-1016 and multiple of 8.
25574 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
25575             Mihail Ionescu  <mihail.ionescu@arm.com>
25576             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
25578         * config/arm/arm_mve.h (vst1q_f32): Define macro.
25579         (vst1q_f16): Likewise.
25580         (vst1q_s8): Likewise.
25581         (vst1q_s32): Likewise.
25582         (vst1q_s16): Likewise.
25583         (vst1q_u8): Likewise.
25584         (vst1q_u32): Likewise.
25585         (vst1q_u16): Likewise.
25586         (vstrhq_f16): Likewise.
25587         (vstrhq_scatter_offset_s32): Likewise.
25588         (vstrhq_scatter_offset_s16): Likewise.
25589         (vstrhq_scatter_offset_u32): Likewise.
25590         (vstrhq_scatter_offset_u16): Likewise.
25591         (vstrhq_scatter_offset_p_s32): Likewise.
25592         (vstrhq_scatter_offset_p_s16): Likewise.
25593         (vstrhq_scatter_offset_p_u32): Likewise.
25594         (vstrhq_scatter_offset_p_u16): Likewise.
25595         (vstrhq_scatter_shifted_offset_s32): Likewise.
25596         (vstrhq_scatter_shifted_offset_s16): Likewise.
25597         (vstrhq_scatter_shifted_offset_u32): Likewise.
25598         (vstrhq_scatter_shifted_offset_u16): Likewise.
25599         (vstrhq_scatter_shifted_offset_p_s32): Likewise.
25600         (vstrhq_scatter_shifted_offset_p_s16): Likewise.
25601         (vstrhq_scatter_shifted_offset_p_u32): Likewise.
25602         (vstrhq_scatter_shifted_offset_p_u16): Likewise.
25603         (vstrhq_s32): Likewise.
25604         (vstrhq_s16): Likewise.
25605         (vstrhq_u32): Likewise.
25606         (vstrhq_u16): Likewise.
25607         (vstrhq_p_f16): Likewise.
25608         (vstrhq_p_s32): Likewise.
25609         (vstrhq_p_s16): Likewise.
25610         (vstrhq_p_u32): Likewise.
25611         (vstrhq_p_u16): Likewise.
25612         (vstrwq_f32): Likewise.
25613         (vstrwq_s32): Likewise.
25614         (vstrwq_u32): Likewise.
25615         (vstrwq_p_f32): Likewise.
25616         (vstrwq_p_s32): Likewise.
25617         (vstrwq_p_u32): Likewise.
25618         (__arm_vst1q_s8): Define intrinsic.
25619         (__arm_vst1q_s32): Likewise.
25620         (__arm_vst1q_s16): Likewise.
25621         (__arm_vst1q_u8): Likewise.
25622         (__arm_vst1q_u32): Likewise.
25623         (__arm_vst1q_u16): Likewise.
25624         (__arm_vstrhq_scatter_offset_s32): Likewise.
25625         (__arm_vstrhq_scatter_offset_s16): Likewise.
25626         (__arm_vstrhq_scatter_offset_u32): Likewise.
25627         (__arm_vstrhq_scatter_offset_u16): Likewise.
25628         (__arm_vstrhq_scatter_offset_p_s32): Likewise.
25629         (__arm_vstrhq_scatter_offset_p_s16): Likewise.
25630         (__arm_vstrhq_scatter_offset_p_u32): Likewise.
25631         (__arm_vstrhq_scatter_offset_p_u16): Likewise.
25632         (__arm_vstrhq_scatter_shifted_offset_s32): Likewise.
25633         (__arm_vstrhq_scatter_shifted_offset_s16): Likewise.
25634         (__arm_vstrhq_scatter_shifted_offset_u32): Likewise.
25635         (__arm_vstrhq_scatter_shifted_offset_u16): Likewise.
25636         (__arm_vstrhq_scatter_shifted_offset_p_s32): Likewise.
25637         (__arm_vstrhq_scatter_shifted_offset_p_s16): Likewise.
25638         (__arm_vstrhq_scatter_shifted_offset_p_u32): Likewise.
25639         (__arm_vstrhq_scatter_shifted_offset_p_u16): Likewise.
25640         (__arm_vstrhq_s32): Likewise.
25641         (__arm_vstrhq_s16): Likewise.
25642         (__arm_vstrhq_u32): Likewise.
25643         (__arm_vstrhq_u16): Likewise.
25644         (__arm_vstrhq_p_s32): Likewise.
25645         (__arm_vstrhq_p_s16): Likewise.
25646         (__arm_vstrhq_p_u32): Likewise.
25647         (__arm_vstrhq_p_u16): Likewise.
25648         (__arm_vstrwq_s32): Likewise.
25649         (__arm_vstrwq_u32): Likewise.
25650         (__arm_vstrwq_p_s32): Likewise.
25651         (__arm_vstrwq_p_u32): Likewise.
25652         (__arm_vstrwq_p_f32): Likewise.
25653         (__arm_vstrwq_f32): Likewise.
25654         (__arm_vst1q_f32): Likewise.
25655         (__arm_vst1q_f16): Likewise.
25656         (__arm_vstrhq_f16): Likewise.
25657         (__arm_vstrhq_p_f16): Likewise.
25658         (vst1q): Define polymorphic variant.
25659         (vstrhq): Likewise.
25660         (vstrhq_p): Likewise.
25661         (vstrhq_scatter_offset_p): Likewise.
25662         (vstrhq_scatter_offset): Likewise.
25663         (vstrhq_scatter_shifted_offset_p): Likewise.
25664         (vstrhq_scatter_shifted_offset): Likewise.
25665         (vstrwq_p): Likewise.
25666         (vstrwq): Likewise.
25667         * config/arm/arm_mve_builtins.def (STRS): Use builtin qualifier.
25668         (STRS_P): Likewise.
25669         (STRSS): Likewise.
25670         (STRSS_P): Likewise.
25671         (STRSU): Likewise.
25672         (STRSU_P): Likewise.
25673         (STRU): Likewise.
25674         (STRU_P): Likewise.
25675         * config/arm/mve.md (VST1Q): Define iterator.
25676         (VSTRHSOQ): Likewise.
25677         (VSTRHSSOQ): Likewise.
25678         (VSTRHQ): Likewise.
25679         (VSTRWQ): Likewise.
25680         (mve_vstrhq_fv8hf): Define RTL pattern.
25681         (mve_vstrhq_p_fv8hf): Likewise.
25682         (mve_vstrhq_p_<supf><mode>): Likewise.
25683         (mve_vstrhq_scatter_offset_p_<supf><mode>): Likewise.
25684         (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
25685         (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
25686         (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
25687         (mve_vstrhq_<supf><mode>): Likewise.
25688         (mve_vstrwq_fv4sf): Likewise.
25689         (mve_vstrwq_p_fv4sf): Likewise.
25690         (mve_vstrwq_p_<supf>v4si): Likewise.
25691         (mve_vstrwq_<supf>v4si): Likewise.
25692         (mve_vst1q_f<mode>): Define expand.
25693         (mve_vst1q_<supf><mode>): Likewise.
25695 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
25696             Mihail Ionescu  <mihail.ionescu@arm.com>
25697             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
25699         * config/arm/arm_mve.h (vld1q_s8): Define macro.
25700         (vld1q_s32): Likewise.
25701         (vld1q_s16): Likewise.
25702         (vld1q_u8): Likewise.
25703         (vld1q_u32): Likewise.
25704         (vld1q_u16): Likewise.
25705         (vldrhq_gather_offset_s32): Likewise.
25706         (vldrhq_gather_offset_s16): Likewise.
25707         (vldrhq_gather_offset_u32): Likewise.
25708         (vldrhq_gather_offset_u16): Likewise.
25709         (vldrhq_gather_offset_z_s32): Likewise.
25710         (vldrhq_gather_offset_z_s16): Likewise.
25711         (vldrhq_gather_offset_z_u32): Likewise.
25712         (vldrhq_gather_offset_z_u16): Likewise.
25713         (vldrhq_gather_shifted_offset_s32): Likewise.
25714         (vldrhq_gather_shifted_offset_s16): Likewise.
25715         (vldrhq_gather_shifted_offset_u32): Likewise.
25716         (vldrhq_gather_shifted_offset_u16): Likewise.
25717         (vldrhq_gather_shifted_offset_z_s32): Likewise.
25718         (vldrhq_gather_shifted_offset_z_s16): Likewise.
25719         (vldrhq_gather_shifted_offset_z_u32): Likewise.
25720         (vldrhq_gather_shifted_offset_z_u16): Likewise.
25721         (vldrhq_s32): Likewise.
25722         (vldrhq_s16): Likewise.
25723         (vldrhq_u32): Likewise.
25724         (vldrhq_u16): Likewise.
25725         (vldrhq_z_s32): Likewise.
25726         (vldrhq_z_s16): Likewise.
25727         (vldrhq_z_u32): Likewise.
25728         (vldrhq_z_u16): Likewise.
25729         (vldrwq_s32): Likewise.
25730         (vldrwq_u32): Likewise.
25731         (vldrwq_z_s32): Likewise.
25732         (vldrwq_z_u32): Likewise.
25733         (vld1q_f32): Likewise.
25734         (vld1q_f16): Likewise.
25735         (vldrhq_f16): Likewise.
25736         (vldrhq_z_f16): Likewise.
25737         (vldrwq_f32): Likewise.
25738         (vldrwq_z_f32): Likewise.
25739         (__arm_vld1q_s8): Define intrinsic.
25740         (__arm_vld1q_s32): Likewise.
25741         (__arm_vld1q_s16): Likewise.
25742         (__arm_vld1q_u8): Likewise.
25743         (__arm_vld1q_u32): Likewise.
25744         (__arm_vld1q_u16): Likewise.
25745         (__arm_vldrhq_gather_offset_s32): Likewise.
25746         (__arm_vldrhq_gather_offset_s16): Likewise.
25747         (__arm_vldrhq_gather_offset_u32): Likewise.
25748         (__arm_vldrhq_gather_offset_u16): Likewise.
25749         (__arm_vldrhq_gather_offset_z_s32): Likewise.
25750         (__arm_vldrhq_gather_offset_z_s16): Likewise.
25751         (__arm_vldrhq_gather_offset_z_u32): Likewise.
25752         (__arm_vldrhq_gather_offset_z_u16): Likewise.
25753         (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
25754         (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
25755         (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
25756         (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
25757         (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
25758         (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
25759         (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
25760         (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
25761         (__arm_vldrhq_s32): Likewise.
25762         (__arm_vldrhq_s16): Likewise.
25763         (__arm_vldrhq_u32): Likewise.
25764         (__arm_vldrhq_u16): Likewise.
25765         (__arm_vldrhq_z_s32): Likewise.
25766         (__arm_vldrhq_z_s16): Likewise.
25767         (__arm_vldrhq_z_u32): Likewise.
25768         (__arm_vldrhq_z_u16): Likewise.
25769         (__arm_vldrwq_s32): Likewise.
25770         (__arm_vldrwq_u32): Likewise.
25771         (__arm_vldrwq_z_s32): Likewise.
25772         (__arm_vldrwq_z_u32): Likewise.
25773         (__arm_vld1q_f32): Likewise.
25774         (__arm_vld1q_f16): Likewise.
25775         (__arm_vldrwq_f32): Likewise.
25776         (__arm_vldrwq_z_f32): Likewise.
25777         (__arm_vldrhq_z_f16): Likewise.
25778         (__arm_vldrhq_f16): Likewise.
25779         (vld1q): Define polymorphic variant.
25780         (vldrhq_gather_offset): Likewise.
25781         (vldrhq_gather_offset_z): Likewise.
25782         (vldrhq_gather_shifted_offset): Likewise.
25783         (vldrhq_gather_shifted_offset_z): Likewise.
25784         * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
25785         (LDRS): Likewise.
25786         (LDRU_Z): Likewise.
25787         (LDRS_Z): Likewise.
25788         (LDRGU_Z): Likewise.
25789         (LDRGU): Likewise.
25790         (LDRGS_Z): Likewise.
25791         (LDRGS): Likewise.
25792         * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
25793         (V_sz_elem1): Likewise.
25794         (VLD1Q): Define iterator.
25795         (VLDRHGOQ): Likewise.
25796         (VLDRHGSOQ): Likewise.
25797         (VLDRHQ): Likewise.
25798         (VLDRWQ): Likewise.
25799         (mve_vldrhq_fv8hf): Define RTL pattern.
25800         (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
25801         (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
25802         (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
25803         (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
25804         (mve_vldrhq_<supf><mode>): Likewise.
25805         (mve_vldrhq_z_fv8hf): Likewise.
25806         (mve_vldrhq_z_<supf><mode>): Likewise.
25807         (mve_vldrwq_fv4sf): Likewise.
25808         (mve_vldrwq_<supf>v4si): Likewise.
25809         (mve_vldrwq_z_fv4sf): Likewise.
25810         (mve_vldrwq_z_<supf>v4si): Likewise.
25811         (mve_vld1q_f<mode>): Define RTL expand pattern.
25812         (mve_vld1q_<supf><mode>): Likewise.
25814 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
25815             Mihail Ionescu  <mihail.ionescu@arm.com>
25816             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
25818         * config/arm/arm_mve.h (vld1q_s8): Define macro.
25819         (vld1q_s32): Likewise.
25820         (vld1q_s16): Likewise.
25821         (vld1q_u8): Likewise.
25822         (vld1q_u32): Likewise.
25823         (vld1q_u16): Likewise.
25824         (vldrhq_gather_offset_s32): Likewise.
25825         (vldrhq_gather_offset_s16): Likewise.
25826         (vldrhq_gather_offset_u32): Likewise.
25827         (vldrhq_gather_offset_u16): Likewise.
25828         (vldrhq_gather_offset_z_s32): Likewise.
25829         (vldrhq_gather_offset_z_s16): Likewise.
25830         (vldrhq_gather_offset_z_u32): Likewise.
25831         (vldrhq_gather_offset_z_u16): Likewise.
25832         (vldrhq_gather_shifted_offset_s32): Likewise.
25833         (vldrhq_gather_shifted_offset_s16): Likewise.
25834         (vldrhq_gather_shifted_offset_u32): Likewise.
25835         (vldrhq_gather_shifted_offset_u16): Likewise.
25836         (vldrhq_gather_shifted_offset_z_s32): Likewise.
25837         (vldrhq_gather_shifted_offset_z_s16): Likewise.
25838         (vldrhq_gather_shifted_offset_z_u32): Likewise.
25839         (vldrhq_gather_shifted_offset_z_u16): Likewise.
25840         (vldrhq_s32): Likewise.
25841         (vldrhq_s16): Likewise.
25842         (vldrhq_u32): Likewise.
25843         (vldrhq_u16): Likewise.
25844         (vldrhq_z_s32): Likewise.
25845         (vldrhq_z_s16): Likewise.
25846         (vldrhq_z_u32): Likewise.
25847         (vldrhq_z_u16): Likewise.
25848         (vldrwq_s32): Likewise.
25849         (vldrwq_u32): Likewise.
25850         (vldrwq_z_s32): Likewise.
25851         (vldrwq_z_u32): Likewise.
25852         (vld1q_f32): Likewise.
25853         (vld1q_f16): Likewise.
25854         (vldrhq_f16): Likewise.
25855         (vldrhq_z_f16): Likewise.
25856         (vldrwq_f32): Likewise.
25857         (vldrwq_z_f32): Likewise.
25858         (__arm_vld1q_s8): Define intrinsic.
25859         (__arm_vld1q_s32): Likewise.
25860         (__arm_vld1q_s16): Likewise.
25861         (__arm_vld1q_u8): Likewise.
25862         (__arm_vld1q_u32): Likewise.
25863         (__arm_vld1q_u16): Likewise.
25864         (__arm_vldrhq_gather_offset_s32): Likewise.
25865         (__arm_vldrhq_gather_offset_s16): Likewise.
25866         (__arm_vldrhq_gather_offset_u32): Likewise.
25867         (__arm_vldrhq_gather_offset_u16): Likewise.
25868         (__arm_vldrhq_gather_offset_z_s32): Likewise.
25869         (__arm_vldrhq_gather_offset_z_s16): Likewise.
25870         (__arm_vldrhq_gather_offset_z_u32): Likewise.
25871         (__arm_vldrhq_gather_offset_z_u16): Likewise.
25872         (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
25873         (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
25874         (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
25875         (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
25876         (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
25877         (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
25878         (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
25879         (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
25880         (__arm_vldrhq_s32): Likewise.
25881         (__arm_vldrhq_s16): Likewise.
25882         (__arm_vldrhq_u32): Likewise.
25883         (__arm_vldrhq_u16): Likewise.
25884         (__arm_vldrhq_z_s32): Likewise.
25885         (__arm_vldrhq_z_s16): Likewise.
25886         (__arm_vldrhq_z_u32): Likewise.
25887         (__arm_vldrhq_z_u16): Likewise.
25888         (__arm_vldrwq_s32): Likewise.
25889         (__arm_vldrwq_u32): Likewise.
25890         (__arm_vldrwq_z_s32): Likewise.
25891         (__arm_vldrwq_z_u32): Likewise.
25892         (__arm_vld1q_f32): Likewise.
25893         (__arm_vld1q_f16): Likewise.
25894         (__arm_vldrwq_f32): Likewise.
25895         (__arm_vldrwq_z_f32): Likewise.
25896         (__arm_vldrhq_z_f16): Likewise.
25897         (__arm_vldrhq_f16): Likewise.
25898         (vld1q): Define polymorphic variant.
25899         (vldrhq_gather_offset): Likewise.
25900         (vldrhq_gather_offset_z): Likewise.
25901         (vldrhq_gather_shifted_offset): Likewise.
25902         (vldrhq_gather_shifted_offset_z): Likewise.
25903         * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
25904         (LDRS): Likewise.
25905         (LDRU_Z): Likewise.
25906         (LDRS_Z): Likewise.
25907         (LDRGU_Z): Likewise.
25908         (LDRGU): Likewise.
25909         (LDRGS_Z): Likewise.
25910         (LDRGS): Likewise.
25911         * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
25912         (V_sz_elem1): Likewise.
25913         (VLD1Q): Define iterator.
25914         (VLDRHGOQ): Likewise.
25915         (VLDRHGSOQ): Likewise.
25916         (VLDRHQ): Likewise.
25917         (VLDRWQ): Likewise.
25918         (mve_vldrhq_fv8hf): Define RTL pattern.
25919         (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
25920         (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
25921         (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
25922         (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
25923         (mve_vldrhq_<supf><mode>): Likewise.
25924         (mve_vldrhq_z_fv8hf): Likewise.
25925         (mve_vldrhq_z_<supf><mode>): Likewise.
25926         (mve_vldrwq_fv4sf): Likewise.
25927         (mve_vldrwq_<supf>v4si): Likewise.
25928         (mve_vldrwq_z_fv4sf): Likewise.
25929         (mve_vldrwq_z_<supf>v4si): Likewise.
25930         (mve_vld1q_f<mode>): Define RTL expand pattern.
25931         (mve_vld1q_<supf><mode>): Likewise.
25933 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
25934             Mihail Ionescu  <mihail.ionescu@arm.com>
25935             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
25937         * config/arm/arm-builtins.c (LDRGBS_Z_QUALIFIERS): Define builtin
25938         qualifier.
25939         (LDRGBU_Z_QUALIFIERS): Likewise.
25940         (LDRGS_Z_QUALIFIERS): Likewise.
25941         (LDRGU_Z_QUALIFIERS): Likewise.
25942         (LDRS_Z_QUALIFIERS): Likewise.
25943         (LDRU_Z_QUALIFIERS): Likewise.
25944         * config/arm/arm_mve.h (vldrbq_gather_offset_z_s16): Define macro.
25945         (vldrbq_gather_offset_z_u8): Likewise.
25946         (vldrbq_gather_offset_z_s32): Likewise.
25947         (vldrbq_gather_offset_z_u16): Likewise.
25948         (vldrbq_gather_offset_z_u32): Likewise.
25949         (vldrbq_gather_offset_z_s8): Likewise.
25950         (vldrbq_z_s16): Likewise.
25951         (vldrbq_z_u8): Likewise.
25952         (vldrbq_z_s8): Likewise.
25953         (vldrbq_z_s32): Likewise.
25954         (vldrbq_z_u16): Likewise.
25955         (vldrbq_z_u32): Likewise.
25956         (vldrwq_gather_base_z_u32): Likewise.
25957         (vldrwq_gather_base_z_s32): Likewise.
25958         (__arm_vldrbq_gather_offset_z_s8): Define intrinsic.
25959         (__arm_vldrbq_gather_offset_z_s32): Likewise.
25960         (__arm_vldrbq_gather_offset_z_s16): Likewise.
25961         (__arm_vldrbq_gather_offset_z_u8): Likewise.
25962         (__arm_vldrbq_gather_offset_z_u32): Likewise.
25963         (__arm_vldrbq_gather_offset_z_u16): Likewise.
25964         (__arm_vldrbq_z_s8): Likewise.
25965         (__arm_vldrbq_z_s32): Likewise.
25966         (__arm_vldrbq_z_s16): Likewise.
25967         (__arm_vldrbq_z_u8): Likewise.
25968         (__arm_vldrbq_z_u32): Likewise.
25969         (__arm_vldrbq_z_u16): Likewise.
25970         (__arm_vldrwq_gather_base_z_s32): Likewise.
25971         (__arm_vldrwq_gather_base_z_u32): Likewise.
25972         (vldrbq_gather_offset_z): Define polymorphic variant.
25973         * config/arm/arm_mve_builtins.def (LDRGBS_Z_QUALIFIERS): Use builtin
25974         qualifier.
25975         (LDRGBU_Z_QUALIFIERS): Likewise.
25976         (LDRGS_Z_QUALIFIERS): Likewise.
25977         (LDRGU_Z_QUALIFIERS): Likewise.
25978         (LDRS_Z_QUALIFIERS): Likewise.
25979         (LDRU_Z_QUALIFIERS): Likewise.
25980         * config/arm/mve.md (mve_vldrbq_gather_offset_z_<supf><mode>): Define
25981         RTL pattern.
25982         (mve_vldrbq_z_<supf><mode>): Likewise.
25983         (mve_vldrwq_gather_base_z_<supf>v4si): Likewise.
25985 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
25986             Mihail Ionescu  <mihail.ionescu@arm.com>
25987             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
25989         * config/arm/arm-builtins.c (STRS_P_QUALIFIERS): Define builtin
25990         qualifier.
25991         (STRU_P_QUALIFIERS): Likewise.
25992         (STRSU_P_QUALIFIERS): Likewise.
25993         (STRSS_P_QUALIFIERS): Likewise.
25994         (STRSBS_P_QUALIFIERS): Likewise.
25995         (STRSBU_P_QUALIFIERS): Likewise.
25996         * config/arm/arm_mve.h (vstrbq_p_s8): Define macro.
25997         (vstrbq_p_s32): Likewise.
25998         (vstrbq_p_s16): Likewise.
25999         (vstrbq_p_u8): Likewise.
26000         (vstrbq_p_u32): Likewise.
26001         (vstrbq_p_u16): Likewise.
26002         (vstrbq_scatter_offset_p_s8): Likewise.
26003         (vstrbq_scatter_offset_p_s32): Likewise.
26004         (vstrbq_scatter_offset_p_s16): Likewise.
26005         (vstrbq_scatter_offset_p_u8): Likewise.
26006         (vstrbq_scatter_offset_p_u32): Likewise.
26007         (vstrbq_scatter_offset_p_u16): Likewise.
26008         (vstrwq_scatter_base_p_s32): Likewise.
26009         (vstrwq_scatter_base_p_u32): Likewise.
26010         (__arm_vstrbq_p_s8): Define intrinsic.
26011         (__arm_vstrbq_p_s32): Likewise.
26012         (__arm_vstrbq_p_s16): Likewise.
26013         (__arm_vstrbq_p_u8): Likewise.
26014         (__arm_vstrbq_p_u32): Likewise.
26015         (__arm_vstrbq_p_u16): Likewise.
26016         (__arm_vstrbq_scatter_offset_p_s8): Likewise.
26017         (__arm_vstrbq_scatter_offset_p_s32): Likewise.
26018         (__arm_vstrbq_scatter_offset_p_s16): Likewise.
26019         (__arm_vstrbq_scatter_offset_p_u8): Likewise.
26020         (__arm_vstrbq_scatter_offset_p_u32): Likewise.
26021         (__arm_vstrbq_scatter_offset_p_u16): Likewise.
26022         (__arm_vstrwq_scatter_base_p_s32): Likewise.
26023         (__arm_vstrwq_scatter_base_p_u32): Likewise.
26024         (vstrbq_p): Define polymorphic variant.
26025         (vstrbq_scatter_offset_p): Likewise.
26026         (vstrwq_scatter_base_p): Likewise.
26027         * config/arm/arm_mve_builtins.def (STRS_P_QUALIFIERS): Use builtin
26028         qualifier.
26029         (STRU_P_QUALIFIERS): Likewise.
26030         (STRSU_P_QUALIFIERS): Likewise.
26031         (STRSS_P_QUALIFIERS): Likewise.
26032         (STRSBS_P_QUALIFIERS): Likewise.
26033         (STRSBU_P_QUALIFIERS): Likewise.
26034         * config/arm/mve.md (mve_vstrbq_scatter_offset_p_<supf><mode>): Define
26035         RTL pattern.
26036         (mve_vstrwq_scatter_base_p_<supf>v4si): Likewise.
26037         (mve_vstrbq_p_<supf><mode>): Likewise.
26039 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
26040             Mihail Ionescu  <mihail.ionescu@arm.com>
26041             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
26043         * config/arm/arm-builtins.c (LDRGU_QUALIFIERS): Define builtin
26044         qualifier.
26045         (LDRGS_QUALIFIERS): Likewise.
26046         (LDRS_QUALIFIERS): Likewise.
26047         (LDRU_QUALIFIERS): Likewise.
26048         (LDRGBS_QUALIFIERS): Likewise.
26049         (LDRGBU_QUALIFIERS): Likewise.
26050         * config/arm/arm_mve.h (vldrbq_gather_offset_u8): Define macro.
26051         (vldrbq_gather_offset_s8): Likewise.
26052         (vldrbq_s8): Likewise.
26053         (vldrbq_u8): Likewise.
26054         (vldrbq_gather_offset_u16): Likewise.
26055         (vldrbq_gather_offset_s16): Likewise.
26056         (vldrbq_s16): Likewise.
26057         (vldrbq_u16): Likewise.
26058         (vldrbq_gather_offset_u32): Likewise.
26059         (vldrbq_gather_offset_s32): Likewise.
26060         (vldrbq_s32): Likewise.
26061         (vldrbq_u32): Likewise.
26062         (vldrwq_gather_base_s32): Likewise.
26063         (vldrwq_gather_base_u32): Likewise.
26064         (__arm_vldrbq_gather_offset_u8): Define intrinsic.
26065         (__arm_vldrbq_gather_offset_s8): Likewise.
26066         (__arm_vldrbq_s8): Likewise.
26067         (__arm_vldrbq_u8): Likewise.
26068         (__arm_vldrbq_gather_offset_u16): Likewise.
26069         (__arm_vldrbq_gather_offset_s16): Likewise.
26070         (__arm_vldrbq_s16): Likewise.
26071         (__arm_vldrbq_u16): Likewise.
26072         (__arm_vldrbq_gather_offset_u32): Likewise.
26073         (__arm_vldrbq_gather_offset_s32): Likewise.
26074         (__arm_vldrbq_s32): Likewise.
26075         (__arm_vldrbq_u32): Likewise.
26076         (__arm_vldrwq_gather_base_s32): Likewise.
26077         (__arm_vldrwq_gather_base_u32): Likewise.
26078         (vldrbq_gather_offset): Define polymorphic variant.
26079         * config/arm/arm_mve_builtins.def (LDRGU_QUALIFIERS): Use builtin
26080         qualifier.
26081         (LDRGS_QUALIFIERS): Likewise.
26082         (LDRS_QUALIFIERS): Likewise.
26083         (LDRU_QUALIFIERS): Likewise.
26084         (LDRGBS_QUALIFIERS): Likewise.
26085         (LDRGBU_QUALIFIERS): Likewise.
26086         * config/arm/mve.md (VLDRBGOQ): Define iterator.
26087         (VLDRBQ): Likewise. 
26088         (VLDRWGBQ): Likewise.
26089         (mve_vldrbq_gather_offset_<supf><mode>): Define RTL pattern.
26090         (mve_vldrbq_<supf><mode>): Likewise.
26091         (mve_vldrwq_gather_base_<supf>v4si): Likewise.
26093 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
26094             Mihail Ionescu  <mihail.ionescu@arm.com>
26095             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
26097         * config/arm/arm-builtins.c (STRS_QUALIFIERS): Define builtin qualifier.
26098         (STRU_QUALIFIERS): Likewise.
26099         (STRSS_QUALIFIERS): Likewise.
26100         (STRSU_QUALIFIERS): Likewise.
26101         (STRSBS_QUALIFIERS): Likewise.
26102         (STRSBU_QUALIFIERS): Likewise.
26103         * config/arm/arm_mve.h (vstrbq_s8): Define macro.
26104         (vstrbq_u8): Likewise.
26105         (vstrbq_u16): Likewise.
26106         (vstrbq_scatter_offset_s8): Likewise.
26107         (vstrbq_scatter_offset_u8): Likewise.
26108         (vstrbq_scatter_offset_u16): Likewise.
26109         (vstrbq_s16): Likewise.
26110         (vstrbq_u32): Likewise.
26111         (vstrbq_scatter_offset_s16): Likewise.
26112         (vstrbq_scatter_offset_u32): Likewise.
26113         (vstrbq_s32): Likewise.
26114         (vstrbq_scatter_offset_s32): Likewise.
26115         (vstrwq_scatter_base_s32): Likewise.
26116         (vstrwq_scatter_base_u32): Likewise.
26117         (__arm_vstrbq_scatter_offset_s8): Define intrinsic.
26118         (__arm_vstrbq_scatter_offset_s32): Likewise.
26119         (__arm_vstrbq_scatter_offset_s16): Likewise.
26120         (__arm_vstrbq_scatter_offset_u8): Likewise.
26121         (__arm_vstrbq_scatter_offset_u32): Likewise.
26122         (__arm_vstrbq_scatter_offset_u16): Likewise.
26123         (__arm_vstrbq_s8): Likewise.
26124         (__arm_vstrbq_s32): Likewise.
26125         (__arm_vstrbq_s16): Likewise.
26126         (__arm_vstrbq_u8): Likewise.
26127         (__arm_vstrbq_u32): Likewise.
26128         (__arm_vstrbq_u16): Likewise.
26129         (__arm_vstrwq_scatter_base_s32): Likewise.
26130         (__arm_vstrwq_scatter_base_u32): Likewise.
26131         (vstrbq): Define polymorphic variant.
26132         (vstrbq_scatter_offset): Likewise.
26133         (vstrwq_scatter_base): Likewise.
26134         * config/arm/arm_mve_builtins.def (STRS_QUALIFIERS): Use builtin
26135         qualifier.
26136         (STRU_QUALIFIERS): Likewise.
26137         (STRSS_QUALIFIERS): Likewise.
26138         (STRSU_QUALIFIERS): Likewise.
26139         (STRSBS_QUALIFIERS): Likewise.
26140         (STRSBU_QUALIFIERS): Likewise.
26141         * config/arm/mve.md (MVE_B_ELEM): Define mode attribute iterator.
26142         (VSTRWSBQ): Define iterators.
26143         (VSTRBSOQ): Likewise. 
26144         (VSTRBQ): Likewise.
26145         (mve_vstrbq_<supf><mode>): Define RTL pattern.
26146         (mve_vstrbq_scatter_offset_<supf><mode>): Likewise.
26147         (mve_vstrwq_scatter_base_<supf>v4si): Likewise.
26149 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
26150             Mihail Ionescu  <mihail.ionescu@arm.com>
26151             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
26153         * config/arm/arm_mve.h (vabdq_m_f32): Define macro.
26154         (vabdq_m_f16): Likewise.
26155         (vaddq_m_f32): Likewise.
26156         (vaddq_m_f16): Likewise.
26157         (vaddq_m_n_f32): Likewise.
26158         (vaddq_m_n_f16): Likewise.
26159         (vandq_m_f32): Likewise.
26160         (vandq_m_f16): Likewise.
26161         (vbicq_m_f32): Likewise.
26162         (vbicq_m_f16): Likewise.
26163         (vbrsrq_m_n_f32): Likewise.
26164         (vbrsrq_m_n_f16): Likewise.
26165         (vcaddq_rot270_m_f32): Likewise.
26166         (vcaddq_rot270_m_f16): Likewise.
26167         (vcaddq_rot90_m_f32): Likewise.
26168         (vcaddq_rot90_m_f16): Likewise.
26169         (vcmlaq_m_f32): Likewise.
26170         (vcmlaq_m_f16): Likewise.
26171         (vcmlaq_rot180_m_f32): Likewise.
26172         (vcmlaq_rot180_m_f16): Likewise.
26173         (vcmlaq_rot270_m_f32): Likewise.
26174         (vcmlaq_rot270_m_f16): Likewise.
26175         (vcmlaq_rot90_m_f32): Likewise.
26176         (vcmlaq_rot90_m_f16): Likewise.
26177         (vcmulq_m_f32): Likewise.
26178         (vcmulq_m_f16): Likewise.
26179         (vcmulq_rot180_m_f32): Likewise.
26180         (vcmulq_rot180_m_f16): Likewise.
26181         (vcmulq_rot270_m_f32): Likewise.
26182         (vcmulq_rot270_m_f16): Likewise.
26183         (vcmulq_rot90_m_f32): Likewise.
26184         (vcmulq_rot90_m_f16): Likewise.
26185         (vcvtq_m_n_s32_f32): Likewise.
26186         (vcvtq_m_n_s16_f16): Likewise.
26187         (vcvtq_m_n_u32_f32): Likewise.
26188         (vcvtq_m_n_u16_f16): Likewise.
26189         (veorq_m_f32): Likewise.
26190         (veorq_m_f16): Likewise.
26191         (vfmaq_m_f32): Likewise.
26192         (vfmaq_m_f16): Likewise.
26193         (vfmaq_m_n_f32): Likewise.
26194         (vfmaq_m_n_f16): Likewise.
26195         (vfmasq_m_n_f32): Likewise.
26196         (vfmasq_m_n_f16): Likewise.
26197         (vfmsq_m_f32): Likewise.
26198         (vfmsq_m_f16): Likewise.
26199         (vmaxnmq_m_f32): Likewise.
26200         (vmaxnmq_m_f16): Likewise.
26201         (vminnmq_m_f32): Likewise.
26202         (vminnmq_m_f16): Likewise.
26203         (vmulq_m_f32): Likewise.
26204         (vmulq_m_f16): Likewise.
26205         (vmulq_m_n_f32): Likewise.
26206         (vmulq_m_n_f16): Likewise.
26207         (vornq_m_f32): Likewise.
26208         (vornq_m_f16): Likewise.
26209         (vorrq_m_f32): Likewise.
26210         (vorrq_m_f16): Likewise.
26211         (vsubq_m_f32): Likewise.
26212         (vsubq_m_f16): Likewise.
26213         (vsubq_m_n_f32): Likewise.
26214         (vsubq_m_n_f16): Likewise.
26215         (__attribute__): Likewise.
26216         (__arm_vabdq_m_f32): Likewise.
26217         (__arm_vabdq_m_f16): Likewise.
26218         (__arm_vaddq_m_f32): Likewise.
26219         (__arm_vaddq_m_f16): Likewise.
26220         (__arm_vaddq_m_n_f32): Likewise.
26221         (__arm_vaddq_m_n_f16): Likewise.
26222         (__arm_vandq_m_f32): Likewise.
26223         (__arm_vandq_m_f16): Likewise.
26224         (__arm_vbicq_m_f32): Likewise.
26225         (__arm_vbicq_m_f16): Likewise.
26226         (__arm_vbrsrq_m_n_f32): Likewise.
26227         (__arm_vbrsrq_m_n_f16): Likewise.
26228         (__arm_vcaddq_rot270_m_f32): Likewise.
26229         (__arm_vcaddq_rot270_m_f16): Likewise.
26230         (__arm_vcaddq_rot90_m_f32): Likewise.
26231         (__arm_vcaddq_rot90_m_f16): Likewise.
26232         (__arm_vcmlaq_m_f32): Likewise.
26233         (__arm_vcmlaq_m_f16): Likewise.
26234         (__arm_vcmlaq_rot180_m_f32): Likewise.
26235         (__arm_vcmlaq_rot180_m_f16): Likewise.
26236         (__arm_vcmlaq_rot270_m_f32): Likewise.
26237         (__arm_vcmlaq_rot270_m_f16): Likewise.
26238         (__arm_vcmlaq_rot90_m_f32): Likewise.
26239         (__arm_vcmlaq_rot90_m_f16): Likewise.
26240         (__arm_vcmulq_m_f32): Likewise.
26241         (__arm_vcmulq_m_f16): Likewise.
26242         (__arm_vcmulq_rot180_m_f32): Define intrinsic.
26243         (__arm_vcmulq_rot180_m_f16): Likewise.
26244         (__arm_vcmulq_rot270_m_f32): Likewise.
26245         (__arm_vcmulq_rot270_m_f16): Likewise.
26246         (__arm_vcmulq_rot90_m_f32): Likewise.
26247         (__arm_vcmulq_rot90_m_f16): Likewise.
26248         (__arm_vcvtq_m_n_s32_f32): Likewise.
26249         (__arm_vcvtq_m_n_s16_f16): Likewise.
26250         (__arm_vcvtq_m_n_u32_f32): Likewise.
26251         (__arm_vcvtq_m_n_u16_f16): Likewise.
26252         (__arm_veorq_m_f32): Likewise.
26253         (__arm_veorq_m_f16): Likewise.
26254         (__arm_vfmaq_m_f32): Likewise.
26255         (__arm_vfmaq_m_f16): Likewise.
26256         (__arm_vfmaq_m_n_f32): Likewise.
26257         (__arm_vfmaq_m_n_f16): Likewise.
26258         (__arm_vfmasq_m_n_f32): Likewise.
26259         (__arm_vfmasq_m_n_f16): Likewise.
26260         (__arm_vfmsq_m_f32): Likewise.
26261         (__arm_vfmsq_m_f16): Likewise.
26262         (__arm_vmaxnmq_m_f32): Likewise.
26263         (__arm_vmaxnmq_m_f16): Likewise.
26264         (__arm_vminnmq_m_f32): Likewise.
26265         (__arm_vminnmq_m_f16): Likewise.
26266         (__arm_vmulq_m_f32): Likewise.
26267         (__arm_vmulq_m_f16): Likewise.
26268         (__arm_vmulq_m_n_f32): Likewise.
26269         (__arm_vmulq_m_n_f16): Likewise.
26270         (__arm_vornq_m_f32): Likewise.
26271         (__arm_vornq_m_f16): Likewise.
26272         (__arm_vorrq_m_f32): Likewise.
26273         (__arm_vorrq_m_f16): Likewise.
26274         (__arm_vsubq_m_f32): Likewise.
26275         (__arm_vsubq_m_f16): Likewise.
26276         (__arm_vsubq_m_n_f32): Likewise.
26277         (__arm_vsubq_m_n_f16): Likewise.
26278         (vabdq_m): Define polymorphic variant.
26279         (vaddq_m): Likewise.
26280         (vaddq_m_n): Likewise.
26281         (vandq_m): Likewise.
26282         (vbicq_m): Likewise.
26283         (vbrsrq_m_n): Likewise.
26284         (vcaddq_rot270_m): Likewise.
26285         (vcaddq_rot90_m): Likewise.
26286         (vcmlaq_m): Likewise.
26287         (vcmlaq_rot180_m): Likewise.
26288         (vcmlaq_rot270_m): Likewise.
26289         (vcmlaq_rot90_m): Likewise.
26290         (vcmulq_m): Likewise.
26291         (vcmulq_rot180_m): Likewise.
26292         (vcmulq_rot270_m): Likewise.
26293         (vcmulq_rot90_m): Likewise.
26294         (veorq_m): Likewise.
26295         (vfmaq_m): Likewise.
26296         (vfmaq_m_n): Likewise.
26297         (vfmasq_m_n): Likewise.
26298         (vfmsq_m): Likewise.
26299         (vmaxnmq_m): Likewise.
26300         (vminnmq_m): Likewise.
26301         (vmulq_m): Likewise.
26302         (vmulq_m_n): Likewise.
26303         (vornq_m): Likewise.
26304         (vsubq_m): Likewise.
26305         (vsubq_m_n): Likewise.
26306         (vorrq_m): Likewise.
26307         * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
26308         builtin qualifier.
26309         (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
26310         (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
26311         * config/arm/mve.md (mve_vabdq_m_f<mode>): Define RTL pattern.
26312         (mve_vaddq_m_f<mode>): Likewise.
26313         (mve_vaddq_m_n_f<mode>): Likewise.
26314         (mve_vandq_m_f<mode>): Likewise.
26315         (mve_vbicq_m_f<mode>): Likewise.
26316         (mve_vbrsrq_m_n_f<mode>): Likewise.
26317         (mve_vcaddq_rot270_m_f<mode>): Likewise.
26318         (mve_vcaddq_rot90_m_f<mode>): Likewise.
26319         (mve_vcmlaq_m_f<mode>): Likewise.
26320         (mve_vcmlaq_rot180_m_f<mode>): Likewise.
26321         (mve_vcmlaq_rot270_m_f<mode>): Likewise.
26322         (mve_vcmlaq_rot90_m_f<mode>): Likewise.
26323         (mve_vcmulq_m_f<mode>): Likewise.
26324         (mve_vcmulq_rot180_m_f<mode>): Likewise.
26325         (mve_vcmulq_rot270_m_f<mode>): Likewise.
26326         (mve_vcmulq_rot90_m_f<mode>): Likewise.
26327         (mve_veorq_m_f<mode>): Likewise.
26328         (mve_vfmaq_m_f<mode>): Likewise.
26329         (mve_vfmaq_m_n_f<mode>): Likewise.
26330         (mve_vfmasq_m_n_f<mode>): Likewise.
26331         (mve_vfmsq_m_f<mode>): Likewise.
26332         (mve_vmaxnmq_m_f<mode>): Likewise.
26333         (mve_vminnmq_m_f<mode>): Likewise.
26334         (mve_vmulq_m_f<mode>): Likewise.
26335         (mve_vmulq_m_n_f<mode>): Likewise.
26336         (mve_vornq_m_f<mode>): Likewise.
26337         (mve_vorrq_m_f<mode>): Likewise.
26338         (mve_vsubq_m_f<mode>): Likewise.
26339         (mve_vsubq_m_n_f<mode>): Likewise.
26341 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
26342             Mihail Ionescu  <mihail.ionescu@arm.com>
26343             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
26345         * config/arm/arm-protos.h (arm_mve_immediate_check): 
26346         * config/arm/arm.c (arm_mve_immediate_check): Define fuction to check
26347         mode and interger value.
26348         * config/arm/arm_mve.h (vmlaldavaq_p_s32): Define macro.
26349         (vmlaldavaq_p_s16): Likewise.
26350         (vmlaldavaq_p_u32): Likewise.
26351         (vmlaldavaq_p_u16): Likewise.
26352         (vmlaldavaxq_p_s32): Likewise.
26353         (vmlaldavaxq_p_s16): Likewise.
26354         (vmlaldavaxq_p_u32): Likewise.
26355         (vmlaldavaxq_p_u16): Likewise.
26356         (vmlsldavaq_p_s32): Likewise.
26357         (vmlsldavaq_p_s16): Likewise.
26358         (vmlsldavaxq_p_s32): Likewise.
26359         (vmlsldavaxq_p_s16): Likewise.
26360         (vmullbq_poly_m_p8): Likewise.
26361         (vmullbq_poly_m_p16): Likewise.
26362         (vmulltq_poly_m_p8): Likewise.
26363         (vmulltq_poly_m_p16): Likewise.
26364         (vqdmullbq_m_n_s32): Likewise.
26365         (vqdmullbq_m_n_s16): Likewise.
26366         (vqdmullbq_m_s32): Likewise.
26367         (vqdmullbq_m_s16): Likewise.
26368         (vqdmulltq_m_n_s32): Likewise.
26369         (vqdmulltq_m_n_s16): Likewise.
26370         (vqdmulltq_m_s32): Likewise.
26371         (vqdmulltq_m_s16): Likewise.
26372         (vqrshrnbq_m_n_s32): Likewise.
26373         (vqrshrnbq_m_n_s16): Likewise.
26374         (vqrshrnbq_m_n_u32): Likewise.
26375         (vqrshrnbq_m_n_u16): Likewise.
26376         (vqrshrntq_m_n_s32): Likewise.
26377         (vqrshrntq_m_n_s16): Likewise.
26378         (vqrshrntq_m_n_u32): Likewise.
26379         (vqrshrntq_m_n_u16): Likewise.
26380         (vqrshrunbq_m_n_s32): Likewise.
26381         (vqrshrunbq_m_n_s16): Likewise.
26382         (vqrshruntq_m_n_s32): Likewise.
26383         (vqrshruntq_m_n_s16): Likewise.
26384         (vqshrnbq_m_n_s32): Likewise.
26385         (vqshrnbq_m_n_s16): Likewise.
26386         (vqshrnbq_m_n_u32): Likewise.
26387         (vqshrnbq_m_n_u16): Likewise.
26388         (vqshrntq_m_n_s32): Likewise.
26389         (vqshrntq_m_n_s16): Likewise.
26390         (vqshrntq_m_n_u32): Likewise.
26391         (vqshrntq_m_n_u16): Likewise.
26392         (vqshrunbq_m_n_s32): Likewise.
26393         (vqshrunbq_m_n_s16): Likewise.
26394         (vqshruntq_m_n_s32): Likewise.
26395         (vqshruntq_m_n_s16): Likewise.
26396         (vrmlaldavhaq_p_s32): Likewise.
26397         (vrmlaldavhaq_p_u32): Likewise.
26398         (vrmlaldavhaxq_p_s32): Likewise.
26399         (vrmlsldavhaq_p_s32): Likewise.
26400         (vrmlsldavhaxq_p_s32): Likewise.
26401         (vrshrnbq_m_n_s32): Likewise.
26402         (vrshrnbq_m_n_s16): Likewise.
26403         (vrshrnbq_m_n_u32): Likewise.
26404         (vrshrnbq_m_n_u16): Likewise.
26405         (vrshrntq_m_n_s32): Likewise.
26406         (vrshrntq_m_n_s16): Likewise.
26407         (vrshrntq_m_n_u32): Likewise.
26408         (vrshrntq_m_n_u16): Likewise.
26409         (vshllbq_m_n_s8): Likewise.
26410         (vshllbq_m_n_s16): Likewise.
26411         (vshllbq_m_n_u8): Likewise.
26412         (vshllbq_m_n_u16): Likewise.
26413         (vshlltq_m_n_s8): Likewise.
26414         (vshlltq_m_n_s16): Likewise.
26415         (vshlltq_m_n_u8): Likewise.
26416         (vshlltq_m_n_u16): Likewise.
26417         (vshrnbq_m_n_s32): Likewise.
26418         (vshrnbq_m_n_s16): Likewise.
26419         (vshrnbq_m_n_u32): Likewise.
26420         (vshrnbq_m_n_u16): Likewise.
26421         (vshrntq_m_n_s32): Likewise.
26422         (vshrntq_m_n_s16): Likewise.
26423         (vshrntq_m_n_u32): Likewise.
26424         (vshrntq_m_n_u16): Likewise.
26425         (__arm_vmlaldavaq_p_s32): Define intrinsic.
26426         (__arm_vmlaldavaq_p_s16): Likewise.
26427         (__arm_vmlaldavaq_p_u32): Likewise.
26428         (__arm_vmlaldavaq_p_u16): Likewise.
26429         (__arm_vmlaldavaxq_p_s32): Likewise.
26430         (__arm_vmlaldavaxq_p_s16): Likewise.
26431         (__arm_vmlaldavaxq_p_u32): Likewise.
26432         (__arm_vmlaldavaxq_p_u16): Likewise.
26433         (__arm_vmlsldavaq_p_s32): Likewise.
26434         (__arm_vmlsldavaq_p_s16): Likewise.
26435         (__arm_vmlsldavaxq_p_s32): Likewise.
26436         (__arm_vmlsldavaxq_p_s16): Likewise.
26437         (__arm_vmullbq_poly_m_p8): Likewise.
26438         (__arm_vmullbq_poly_m_p16): Likewise.
26439         (__arm_vmulltq_poly_m_p8): Likewise.
26440         (__arm_vmulltq_poly_m_p16): Likewise.
26441         (__arm_vqdmullbq_m_n_s32): Likewise.
26442         (__arm_vqdmullbq_m_n_s16): Likewise.
26443         (__arm_vqdmullbq_m_s32): Likewise.
26444         (__arm_vqdmullbq_m_s16): Likewise.
26445         (__arm_vqdmulltq_m_n_s32): Likewise.
26446         (__arm_vqdmulltq_m_n_s16): Likewise.
26447         (__arm_vqdmulltq_m_s32): Likewise.
26448         (__arm_vqdmulltq_m_s16): Likewise.
26449         (__arm_vqrshrnbq_m_n_s32): Likewise.
26450         (__arm_vqrshrnbq_m_n_s16): Likewise.
26451         (__arm_vqrshrnbq_m_n_u32): Likewise.
26452         (__arm_vqrshrnbq_m_n_u16): Likewise.
26453         (__arm_vqrshrntq_m_n_s32): Likewise.
26454         (__arm_vqrshrntq_m_n_s16): Likewise.
26455         (__arm_vqrshrntq_m_n_u32): Likewise.
26456         (__arm_vqrshrntq_m_n_u16): Likewise.
26457         (__arm_vqrshrunbq_m_n_s32): Likewise.
26458         (__arm_vqrshrunbq_m_n_s16): Likewise.
26459         (__arm_vqrshruntq_m_n_s32): Likewise.
26460         (__arm_vqrshruntq_m_n_s16): Likewise.
26461         (__arm_vqshrnbq_m_n_s32): Likewise.
26462         (__arm_vqshrnbq_m_n_s16): Likewise.
26463         (__arm_vqshrnbq_m_n_u32): Likewise.
26464         (__arm_vqshrnbq_m_n_u16): Likewise.
26465         (__arm_vqshrntq_m_n_s32): Likewise.
26466         (__arm_vqshrntq_m_n_s16): Likewise.
26467         (__arm_vqshrntq_m_n_u32): Likewise.
26468         (__arm_vqshrntq_m_n_u16): Likewise.
26469         (__arm_vqshrunbq_m_n_s32): Likewise.
26470         (__arm_vqshrunbq_m_n_s16): Likewise.
26471         (__arm_vqshruntq_m_n_s32): Likewise.
26472         (__arm_vqshruntq_m_n_s16): Likewise.
26473         (__arm_vrmlaldavhaq_p_s32): Likewise.
26474         (__arm_vrmlaldavhaq_p_u32): Likewise.
26475         (__arm_vrmlaldavhaxq_p_s32): Likewise.
26476         (__arm_vrmlsldavhaq_p_s32): Likewise.
26477         (__arm_vrmlsldavhaxq_p_s32): Likewise.
26478         (__arm_vrshrnbq_m_n_s32): Likewise.
26479         (__arm_vrshrnbq_m_n_s16): Likewise.
26480         (__arm_vrshrnbq_m_n_u32): Likewise.
26481         (__arm_vrshrnbq_m_n_u16): Likewise.
26482         (__arm_vrshrntq_m_n_s32): Likewise.
26483         (__arm_vrshrntq_m_n_s16): Likewise.
26484         (__arm_vrshrntq_m_n_u32): Likewise.
26485         (__arm_vrshrntq_m_n_u16): Likewise.
26486         (__arm_vshllbq_m_n_s8): Likewise.
26487         (__arm_vshllbq_m_n_s16): Likewise.
26488         (__arm_vshllbq_m_n_u8): Likewise.
26489         (__arm_vshllbq_m_n_u16): Likewise.
26490         (__arm_vshlltq_m_n_s8): Likewise.
26491         (__arm_vshlltq_m_n_s16): Likewise.
26492         (__arm_vshlltq_m_n_u8): Likewise.
26493         (__arm_vshlltq_m_n_u16): Likewise.
26494         (__arm_vshrnbq_m_n_s32): Likewise.
26495         (__arm_vshrnbq_m_n_s16): Likewise.
26496         (__arm_vshrnbq_m_n_u32): Likewise.
26497         (__arm_vshrnbq_m_n_u16): Likewise.
26498         (__arm_vshrntq_m_n_s32): Likewise.
26499         (__arm_vshrntq_m_n_s16): Likewise.
26500         (__arm_vshrntq_m_n_u32): Likewise.
26501         (__arm_vshrntq_m_n_u16): Likewise.
26502         (vmullbq_poly_m): Define polymorphic variant.
26503         (vmulltq_poly_m): Likewise.
26504         (vshllbq_m): Likewise.
26505         (vshrntq_m_n): Likewise.
26506         (vshrnbq_m_n): Likewise.
26507         (vshlltq_m_n): Likewise.
26508         (vshllbq_m_n): Likewise.
26509         (vrshrntq_m_n): Likewise.
26510         (vrshrnbq_m_n): Likewise.
26511         (vqshruntq_m_n): Likewise.
26512         (vqshrunbq_m_n): Likewise.
26513         (vqdmullbq_m_n): Likewise.
26514         (vqdmullbq_m): Likewise.
26515         (vqdmulltq_m_n): Likewise.
26516         (vqdmulltq_m): Likewise.
26517         (vqrshrnbq_m_n): Likewise.
26518         (vqrshrntq_m_n): Likewise.
26519         (vqrshrunbq_m_n): Likewise.
26520         (vqrshruntq_m_n): Likewise.
26521         (vqshrnbq_m_n): Likewise.
26522         (vqshrntq_m_n): Likewise.
26523         * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
26524         builtin qualifiers.
26525         (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
26526         (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
26527         (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
26528         (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
26529         * config/arm/mve.md (VMLALDAVAQ_P): Define iterator.
26530         (VMLALDAVAXQ_P): Likewise.
26531         (VQRSHRNBQ_M_N): Likewise.
26532         (VQRSHRNTQ_M_N): Likewise.
26533         (VQSHRNBQ_M_N): Likewise.
26534         (VQSHRNTQ_M_N): Likewise.
26535         (VRSHRNBQ_M_N): Likewise.
26536         (VRSHRNTQ_M_N): Likewise.
26537         (VSHLLBQ_M_N): Likewise.
26538         (VSHLLTQ_M_N): Likewise.
26539         (VSHRNBQ_M_N): Likewise.
26540         (VSHRNTQ_M_N): Likewise.
26541         (mve_vmlaldavaq_p_<supf><mode>): Define RTL pattern.
26542         (mve_vmlaldavaxq_p_<supf><mode>): Likewise.
26543         (mve_vqrshrnbq_m_n_<supf><mode>): Likewise.
26544         (mve_vqrshrntq_m_n_<supf><mode>): Likewise.
26545         (mve_vqshrnbq_m_n_<supf><mode>): Likewise.
26546         (mve_vqshrntq_m_n_<supf><mode>): Likewise.
26547         (mve_vrmlaldavhaq_p_sv4si): Likewise.
26548         (mve_vrshrnbq_m_n_<supf><mode>): Likewise.
26549         (mve_vrshrntq_m_n_<supf><mode>): Likewise.
26550         (mve_vshllbq_m_n_<supf><mode>): Likewise.
26551         (mve_vshlltq_m_n_<supf><mode>): Likewise.
26552         (mve_vshrnbq_m_n_<supf><mode>): Likewise.
26553         (mve_vshrntq_m_n_<supf><mode>): Likewise.
26554         (mve_vmlsldavaq_p_s<mode>): Likewise.
26555         (mve_vmlsldavaxq_p_s<mode>): Likewise.
26556         (mve_vmullbq_poly_m_p<mode>): Likewise.
26557         (mve_vmulltq_poly_m_p<mode>): Likewise.
26558         (mve_vqdmullbq_m_n_s<mode>): Likewise.
26559         (mve_vqdmullbq_m_s<mode>): Likewise.
26560         (mve_vqdmulltq_m_n_s<mode>): Likewise.
26561         (mve_vqdmulltq_m_s<mode>): Likewise.
26562         (mve_vqrshrunbq_m_n_s<mode>): Likewise.
26563         (mve_vqrshruntq_m_n_s<mode>): Likewise.
26564         (mve_vqshrunbq_m_n_s<mode>): Likewise.
26565         (mve_vqshruntq_m_n_s<mode>): Likewise.
26566         (mve_vrmlaldavhaq_p_uv4si): Likewise.
26567         (mve_vrmlaldavhaxq_p_sv4si): Likewise.
26568         (mve_vrmlsldavhaq_p_sv4si): Likewise.
26569         (mve_vrmlsldavhaxq_p_sv4si): Likewise.
26571 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
26572             Mihail Ionescu  <mihail.ionescu@arm.com>
26573             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
26574         
26575         * config/arm/arm_mve.h (vabdq_m_s8): Define macro.
26576         (vabdq_m_s32): Likewise.
26577         (vabdq_m_s16): Likewise.
26578         (vabdq_m_u8): Likewise.
26579         (vabdq_m_u32): Likewise.
26580         (vabdq_m_u16): Likewise.
26581         (vaddq_m_n_s8): Likewise.
26582         (vaddq_m_n_s32): Likewise.
26583         (vaddq_m_n_s16): Likewise.
26584         (vaddq_m_n_u8): Likewise.
26585         (vaddq_m_n_u32): Likewise.
26586         (vaddq_m_n_u16): Likewise.
26587         (vaddq_m_s8): Likewise.
26588         (vaddq_m_s32): Likewise.
26589         (vaddq_m_s16): Likewise.
26590         (vaddq_m_u8): Likewise.
26591         (vaddq_m_u32): Likewise.
26592         (vaddq_m_u16): Likewise.
26593         (vandq_m_s8): Likewise.
26594         (vandq_m_s32): Likewise.
26595         (vandq_m_s16): Likewise.
26596         (vandq_m_u8): Likewise.
26597         (vandq_m_u32): Likewise.
26598         (vandq_m_u16): Likewise.
26599         (vbicq_m_s8): Likewise.
26600         (vbicq_m_s32): Likewise.
26601         (vbicq_m_s16): Likewise.
26602         (vbicq_m_u8): Likewise.
26603         (vbicq_m_u32): Likewise.
26604         (vbicq_m_u16): Likewise.
26605         (vbrsrq_m_n_s8): Likewise.
26606         (vbrsrq_m_n_s32): Likewise.
26607         (vbrsrq_m_n_s16): Likewise.
26608         (vbrsrq_m_n_u8): Likewise.
26609         (vbrsrq_m_n_u32): Likewise.
26610         (vbrsrq_m_n_u16): Likewise.
26611         (vcaddq_rot270_m_s8): Likewise.
26612         (vcaddq_rot270_m_s32): Likewise.
26613         (vcaddq_rot270_m_s16): Likewise.
26614         (vcaddq_rot270_m_u8): Likewise.
26615         (vcaddq_rot270_m_u32): Likewise.
26616         (vcaddq_rot270_m_u16): Likewise.
26617         (vcaddq_rot90_m_s8): Likewise.
26618         (vcaddq_rot90_m_s32): Likewise.
26619         (vcaddq_rot90_m_s16): Likewise.
26620         (vcaddq_rot90_m_u8): Likewise.
26621         (vcaddq_rot90_m_u32): Likewise.
26622         (vcaddq_rot90_m_u16): Likewise.
26623         (veorq_m_s8): Likewise.
26624         (veorq_m_s32): Likewise.
26625         (veorq_m_s16): Likewise.
26626         (veorq_m_u8): Likewise.
26627         (veorq_m_u32): Likewise.
26628         (veorq_m_u16): Likewise.
26629         (vhaddq_m_n_s8): Likewise.
26630         (vhaddq_m_n_s32): Likewise.
26631         (vhaddq_m_n_s16): Likewise.
26632         (vhaddq_m_n_u8): Likewise.
26633         (vhaddq_m_n_u32): Likewise.
26634         (vhaddq_m_n_u16): Likewise.
26635         (vhaddq_m_s8): Likewise.
26636         (vhaddq_m_s32): Likewise.
26637         (vhaddq_m_s16): Likewise.
26638         (vhaddq_m_u8): Likewise.
26639         (vhaddq_m_u32): Likewise.
26640         (vhaddq_m_u16): Likewise.
26641         (vhcaddq_rot270_m_s8): Likewise.
26642         (vhcaddq_rot270_m_s32): Likewise.
26643         (vhcaddq_rot270_m_s16): Likewise.
26644         (vhcaddq_rot90_m_s8): Likewise.
26645         (vhcaddq_rot90_m_s32): Likewise.
26646         (vhcaddq_rot90_m_s16): Likewise.
26647         (vhsubq_m_n_s8): Likewise.
26648         (vhsubq_m_n_s32): Likewise.
26649         (vhsubq_m_n_s16): Likewise.
26650         (vhsubq_m_n_u8): Likewise.
26651         (vhsubq_m_n_u32): Likewise.
26652         (vhsubq_m_n_u16): Likewise.
26653         (vhsubq_m_s8): Likewise.
26654         (vhsubq_m_s32): Likewise.
26655         (vhsubq_m_s16): Likewise.
26656         (vhsubq_m_u8): Likewise.
26657         (vhsubq_m_u32): Likewise.
26658         (vhsubq_m_u16): Likewise.
26659         (vmaxq_m_s8): Likewise.
26660         (vmaxq_m_s32): Likewise.
26661         (vmaxq_m_s16): Likewise.
26662         (vmaxq_m_u8): Likewise.
26663         (vmaxq_m_u32): Likewise.
26664         (vmaxq_m_u16): Likewise.
26665         (vminq_m_s8): Likewise.
26666         (vminq_m_s32): Likewise.
26667         (vminq_m_s16): Likewise.
26668         (vminq_m_u8): Likewise.
26669         (vminq_m_u32): Likewise.
26670         (vminq_m_u16): Likewise.
26671         (vmladavaq_p_s8): Likewise.
26672         (vmladavaq_p_s32): Likewise.
26673         (vmladavaq_p_s16): Likewise.
26674         (vmladavaq_p_u8): Likewise.
26675         (vmladavaq_p_u32): Likewise.
26676         (vmladavaq_p_u16): Likewise.
26677         (vmladavaxq_p_s8): Likewise.
26678         (vmladavaxq_p_s32): Likewise.
26679         (vmladavaxq_p_s16): Likewise.
26680         (vmlaq_m_n_s8): Likewise.
26681         (vmlaq_m_n_s32): Likewise.
26682         (vmlaq_m_n_s16): Likewise.
26683         (vmlaq_m_n_u8): Likewise.
26684         (vmlaq_m_n_u32): Likewise.
26685         (vmlaq_m_n_u16): Likewise.
26686         (vmlasq_m_n_s8): Likewise.
26687         (vmlasq_m_n_s32): Likewise.
26688         (vmlasq_m_n_s16): Likewise.
26689         (vmlasq_m_n_u8): Likewise.
26690         (vmlasq_m_n_u32): Likewise.
26691         (vmlasq_m_n_u16): Likewise.
26692         (vmlsdavaq_p_s8): Likewise.
26693         (vmlsdavaq_p_s32): Likewise.
26694         (vmlsdavaq_p_s16): Likewise.
26695         (vmlsdavaxq_p_s8): Likewise.
26696         (vmlsdavaxq_p_s32): Likewise.
26697         (vmlsdavaxq_p_s16): Likewise.
26698         (vmulhq_m_s8): Likewise.
26699         (vmulhq_m_s32): Likewise.
26700         (vmulhq_m_s16): Likewise.
26701         (vmulhq_m_u8): Likewise.
26702         (vmulhq_m_u32): Likewise.
26703         (vmulhq_m_u16): Likewise.
26704         (vmullbq_int_m_s8): Likewise.
26705         (vmullbq_int_m_s32): Likewise.
26706         (vmullbq_int_m_s16): Likewise.
26707         (vmullbq_int_m_u8): Likewise.
26708         (vmullbq_int_m_u32): Likewise.
26709         (vmullbq_int_m_u16): Likewise.
26710         (vmulltq_int_m_s8): Likewise.
26711         (vmulltq_int_m_s32): Likewise.
26712         (vmulltq_int_m_s16): Likewise.
26713         (vmulltq_int_m_u8): Likewise.
26714         (vmulltq_int_m_u32): Likewise.
26715         (vmulltq_int_m_u16): Likewise.
26716         (vmulq_m_n_s8): Likewise.
26717         (vmulq_m_n_s32): Likewise.
26718         (vmulq_m_n_s16): Likewise.
26719         (vmulq_m_n_u8): Likewise.
26720         (vmulq_m_n_u32): Likewise.
26721         (vmulq_m_n_u16): Likewise.
26722         (vmulq_m_s8): Likewise.
26723         (vmulq_m_s32): Likewise.
26724         (vmulq_m_s16): Likewise.
26725         (vmulq_m_u8): Likewise.
26726         (vmulq_m_u32): Likewise.
26727         (vmulq_m_u16): Likewise.
26728         (vornq_m_s8): Likewise.
26729         (vornq_m_s32): Likewise.
26730         (vornq_m_s16): Likewise.
26731         (vornq_m_u8): Likewise.
26732         (vornq_m_u32): Likewise.
26733         (vornq_m_u16): Likewise.
26734         (vorrq_m_s8): Likewise.
26735         (vorrq_m_s32): Likewise.
26736         (vorrq_m_s16): Likewise.
26737         (vorrq_m_u8): Likewise.
26738         (vorrq_m_u32): Likewise.
26739         (vorrq_m_u16): Likewise.
26740         (vqaddq_m_n_s8): Likewise.
26741         (vqaddq_m_n_s32): Likewise.
26742         (vqaddq_m_n_s16): Likewise.
26743         (vqaddq_m_n_u8): Likewise.
26744         (vqaddq_m_n_u32): Likewise.
26745         (vqaddq_m_n_u16): Likewise.
26746         (vqaddq_m_s8): Likewise.
26747         (vqaddq_m_s32): Likewise.
26748         (vqaddq_m_s16): Likewise.
26749         (vqaddq_m_u8): Likewise.
26750         (vqaddq_m_u32): Likewise.
26751         (vqaddq_m_u16): Likewise.
26752         (vqdmladhq_m_s8): Likewise.
26753         (vqdmladhq_m_s32): Likewise.
26754         (vqdmladhq_m_s16): Likewise.
26755         (vqdmladhxq_m_s8): Likewise.
26756         (vqdmladhxq_m_s32): Likewise.
26757         (vqdmladhxq_m_s16): Likewise.
26758         (vqdmlahq_m_n_s8): Likewise.
26759         (vqdmlahq_m_n_s32): Likewise.
26760         (vqdmlahq_m_n_s16): Likewise.
26761         (vqdmlahq_m_n_u8): Likewise.
26762         (vqdmlahq_m_n_u32): Likewise.
26763         (vqdmlahq_m_n_u16): Likewise.
26764         (vqdmlsdhq_m_s8): Likewise.
26765         (vqdmlsdhq_m_s32): Likewise.
26766         (vqdmlsdhq_m_s16): Likewise.
26767         (vqdmlsdhxq_m_s8): Likewise.
26768         (vqdmlsdhxq_m_s32): Likewise.
26769         (vqdmlsdhxq_m_s16): Likewise.
26770         (vqdmulhq_m_n_s8): Likewise.
26771         (vqdmulhq_m_n_s32): Likewise.
26772         (vqdmulhq_m_n_s16): Likewise.
26773         (vqdmulhq_m_s8): Likewise.
26774         (vqdmulhq_m_s32): Likewise.
26775         (vqdmulhq_m_s16): Likewise.
26776         (vqrdmladhq_m_s8): Likewise.
26777         (vqrdmladhq_m_s32): Likewise.
26778         (vqrdmladhq_m_s16): Likewise.
26779         (vqrdmladhxq_m_s8): Likewise.
26780         (vqrdmladhxq_m_s32): Likewise.
26781         (vqrdmladhxq_m_s16): Likewise.
26782         (vqrdmlahq_m_n_s8): Likewise.
26783         (vqrdmlahq_m_n_s32): Likewise.
26784         (vqrdmlahq_m_n_s16): Likewise.
26785         (vqrdmlahq_m_n_u8): Likewise.
26786         (vqrdmlahq_m_n_u32): Likewise.
26787         (vqrdmlahq_m_n_u16): Likewise.
26788         (vqrdmlashq_m_n_s8): Likewise.
26789         (vqrdmlashq_m_n_s32): Likewise.
26790         (vqrdmlashq_m_n_s16): Likewise.
26791         (vqrdmlashq_m_n_u8): Likewise.
26792         (vqrdmlashq_m_n_u32): Likewise.
26793         (vqrdmlashq_m_n_u16): Likewise.
26794         (vqrdmlsdhq_m_s8): Likewise.
26795         (vqrdmlsdhq_m_s32): Likewise.
26796         (vqrdmlsdhq_m_s16): Likewise.
26797         (vqrdmlsdhxq_m_s8): Likewise.
26798         (vqrdmlsdhxq_m_s32): Likewise.
26799         (vqrdmlsdhxq_m_s16): Likewise.
26800         (vqrdmulhq_m_n_s8): Likewise.
26801         (vqrdmulhq_m_n_s32): Likewise.
26802         (vqrdmulhq_m_n_s16): Likewise.
26803         (vqrdmulhq_m_s8): Likewise.
26804         (vqrdmulhq_m_s32): Likewise.
26805         (vqrdmulhq_m_s16): Likewise.
26806         (vqrshlq_m_s8): Likewise.
26807         (vqrshlq_m_s32): Likewise.
26808         (vqrshlq_m_s16): Likewise.
26809         (vqrshlq_m_u8): Likewise.
26810         (vqrshlq_m_u32): Likewise.
26811         (vqrshlq_m_u16): Likewise.
26812         (vqshlq_m_n_s8): Likewise.
26813         (vqshlq_m_n_s32): Likewise.
26814         (vqshlq_m_n_s16): Likewise.
26815         (vqshlq_m_n_u8): Likewise.
26816         (vqshlq_m_n_u32): Likewise.
26817         (vqshlq_m_n_u16): Likewise.
26818         (vqshlq_m_s8): Likewise.
26819         (vqshlq_m_s32): Likewise.
26820         (vqshlq_m_s16): Likewise.
26821         (vqshlq_m_u8): Likewise.
26822         (vqshlq_m_u32): Likewise.
26823         (vqshlq_m_u16): Likewise.
26824         (vqsubq_m_n_s8): Likewise.
26825         (vqsubq_m_n_s32): Likewise.
26826         (vqsubq_m_n_s16): Likewise.
26827         (vqsubq_m_n_u8): Likewise.
26828         (vqsubq_m_n_u32): Likewise.
26829         (vqsubq_m_n_u16): Likewise.
26830         (vqsubq_m_s8): Likewise.
26831         (vqsubq_m_s32): Likewise.
26832         (vqsubq_m_s16): Likewise.
26833         (vqsubq_m_u8): Likewise.
26834         (vqsubq_m_u32): Likewise.
26835         (vqsubq_m_u16): Likewise.
26836         (vrhaddq_m_s8): Likewise.
26837         (vrhaddq_m_s32): Likewise.
26838         (vrhaddq_m_s16): Likewise.
26839         (vrhaddq_m_u8): Likewise.
26840         (vrhaddq_m_u32): Likewise.
26841         (vrhaddq_m_u16): Likewise.
26842         (vrmulhq_m_s8): Likewise.
26843         (vrmulhq_m_s32): Likewise.
26844         (vrmulhq_m_s16): Likewise.
26845         (vrmulhq_m_u8): Likewise.
26846         (vrmulhq_m_u32): Likewise.
26847         (vrmulhq_m_u16): Likewise.
26848         (vrshlq_m_s8): Likewise.
26849         (vrshlq_m_s32): Likewise.
26850         (vrshlq_m_s16): Likewise.
26851         (vrshlq_m_u8): Likewise.
26852         (vrshlq_m_u32): Likewise.
26853         (vrshlq_m_u16): Likewise.
26854         (vrshrq_m_n_s8): Likewise.
26855         (vrshrq_m_n_s32): Likewise.
26856         (vrshrq_m_n_s16): Likewise.
26857         (vrshrq_m_n_u8): Likewise.
26858         (vrshrq_m_n_u32): Likewise.
26859         (vrshrq_m_n_u16): Likewise.
26860         (vshlq_m_n_s8): Likewise.
26861         (vshlq_m_n_s32): Likewise.
26862         (vshlq_m_n_s16): Likewise.
26863         (vshlq_m_n_u8): Likewise.
26864         (vshlq_m_n_u32): Likewise.
26865         (vshlq_m_n_u16): Likewise.
26866         (vshrq_m_n_s8): Likewise.
26867         (vshrq_m_n_s32): Likewise.
26868         (vshrq_m_n_s16): Likewise.
26869         (vshrq_m_n_u8): Likewise.
26870         (vshrq_m_n_u32): Likewise.
26871         (vshrq_m_n_u16): Likewise.
26872         (vsliq_m_n_s8): Likewise.
26873         (vsliq_m_n_s32): Likewise.
26874         (vsliq_m_n_s16): Likewise.
26875         (vsliq_m_n_u8): Likewise.
26876         (vsliq_m_n_u32): Likewise.
26877         (vsliq_m_n_u16): Likewise.
26878         (vsubq_m_n_s8): Likewise.
26879         (vsubq_m_n_s32): Likewise.
26880         (vsubq_m_n_s16): Likewise.
26881         (vsubq_m_n_u8): Likewise.
26882         (vsubq_m_n_u32): Likewise.
26883         (vsubq_m_n_u16): Likewise.
26884         (__arm_vabdq_m_s8): Define intrinsic.
26885         (__arm_vabdq_m_s32): Likewise.
26886         (__arm_vabdq_m_s16): Likewise.
26887         (__arm_vabdq_m_u8): Likewise.
26888         (__arm_vabdq_m_u32): Likewise.
26889         (__arm_vabdq_m_u16): Likewise.
26890         (__arm_vaddq_m_n_s8): Likewise.
26891         (__arm_vaddq_m_n_s32): Likewise.
26892         (__arm_vaddq_m_n_s16): Likewise.
26893         (__arm_vaddq_m_n_u8): Likewise.
26894         (__arm_vaddq_m_n_u32): Likewise.
26895         (__arm_vaddq_m_n_u16): Likewise.
26896         (__arm_vaddq_m_s8): Likewise.
26897         (__arm_vaddq_m_s32): Likewise.
26898         (__arm_vaddq_m_s16): Likewise.
26899         (__arm_vaddq_m_u8): Likewise.
26900         (__arm_vaddq_m_u32): Likewise.
26901         (__arm_vaddq_m_u16): Likewise.
26902         (__arm_vandq_m_s8): Likewise.
26903         (__arm_vandq_m_s32): Likewise.
26904         (__arm_vandq_m_s16): Likewise.
26905         (__arm_vandq_m_u8): Likewise.
26906         (__arm_vandq_m_u32): Likewise.
26907         (__arm_vandq_m_u16): Likewise.
26908         (__arm_vbicq_m_s8): Likewise.
26909         (__arm_vbicq_m_s32): Likewise.
26910         (__arm_vbicq_m_s16): Likewise.
26911         (__arm_vbicq_m_u8): Likewise.
26912         (__arm_vbicq_m_u32): Likewise.
26913         (__arm_vbicq_m_u16): Likewise.
26914         (__arm_vbrsrq_m_n_s8): Likewise.
26915         (__arm_vbrsrq_m_n_s32): Likewise.
26916         (__arm_vbrsrq_m_n_s16): Likewise.
26917         (__arm_vbrsrq_m_n_u8): Likewise.
26918         (__arm_vbrsrq_m_n_u32): Likewise.
26919         (__arm_vbrsrq_m_n_u16): Likewise.
26920         (__arm_vcaddq_rot270_m_s8): Likewise.
26921         (__arm_vcaddq_rot270_m_s32): Likewise.
26922         (__arm_vcaddq_rot270_m_s16): Likewise.
26923         (__arm_vcaddq_rot270_m_u8): Likewise.
26924         (__arm_vcaddq_rot270_m_u32): Likewise.
26925         (__arm_vcaddq_rot270_m_u16): Likewise.
26926         (__arm_vcaddq_rot90_m_s8): Likewise.
26927         (__arm_vcaddq_rot90_m_s32): Likewise.
26928         (__arm_vcaddq_rot90_m_s16): Likewise.
26929         (__arm_vcaddq_rot90_m_u8): Likewise.
26930         (__arm_vcaddq_rot90_m_u32): Likewise.
26931         (__arm_vcaddq_rot90_m_u16): Likewise.
26932         (__arm_veorq_m_s8): Likewise.
26933         (__arm_veorq_m_s32): Likewise.
26934         (__arm_veorq_m_s16): Likewise.
26935         (__arm_veorq_m_u8): Likewise.
26936         (__arm_veorq_m_u32): Likewise.
26937         (__arm_veorq_m_u16): Likewise.
26938         (__arm_vhaddq_m_n_s8): Likewise.
26939         (__arm_vhaddq_m_n_s32): Likewise.
26940         (__arm_vhaddq_m_n_s16): Likewise.
26941         (__arm_vhaddq_m_n_u8): Likewise.
26942         (__arm_vhaddq_m_n_u32): Likewise.
26943         (__arm_vhaddq_m_n_u16): Likewise.
26944         (__arm_vhaddq_m_s8): Likewise.
26945         (__arm_vhaddq_m_s32): Likewise.
26946         (__arm_vhaddq_m_s16): Likewise.
26947         (__arm_vhaddq_m_u8): Likewise.
26948         (__arm_vhaddq_m_u32): Likewise.
26949         (__arm_vhaddq_m_u16): Likewise.
26950         (__arm_vhcaddq_rot270_m_s8): Likewise.
26951         (__arm_vhcaddq_rot270_m_s32): Likewise.
26952         (__arm_vhcaddq_rot270_m_s16): Likewise.
26953         (__arm_vhcaddq_rot90_m_s8): Likewise.
26954         (__arm_vhcaddq_rot90_m_s32): Likewise.
26955         (__arm_vhcaddq_rot90_m_s16): Likewise.
26956         (__arm_vhsubq_m_n_s8): Likewise.
26957         (__arm_vhsubq_m_n_s32): Likewise.
26958         (__arm_vhsubq_m_n_s16): Likewise.
26959         (__arm_vhsubq_m_n_u8): Likewise.
26960         (__arm_vhsubq_m_n_u32): Likewise.
26961         (__arm_vhsubq_m_n_u16): Likewise.
26962         (__arm_vhsubq_m_s8): Likewise.
26963         (__arm_vhsubq_m_s32): Likewise.
26964         (__arm_vhsubq_m_s16): Likewise.
26965         (__arm_vhsubq_m_u8): Likewise.
26966         (__arm_vhsubq_m_u32): Likewise.
26967         (__arm_vhsubq_m_u16): Likewise.
26968         (__arm_vmaxq_m_s8): Likewise.
26969         (__arm_vmaxq_m_s32): Likewise.
26970         (__arm_vmaxq_m_s16): Likewise.
26971         (__arm_vmaxq_m_u8): Likewise.
26972         (__arm_vmaxq_m_u32): Likewise.
26973         (__arm_vmaxq_m_u16): Likewise.
26974         (__arm_vminq_m_s8): Likewise.
26975         (__arm_vminq_m_s32): Likewise.
26976         (__arm_vminq_m_s16): Likewise.
26977         (__arm_vminq_m_u8): Likewise.
26978         (__arm_vminq_m_u32): Likewise.
26979         (__arm_vminq_m_u16): Likewise.
26980         (__arm_vmladavaq_p_s8): Likewise.
26981         (__arm_vmladavaq_p_s32): Likewise.
26982         (__arm_vmladavaq_p_s16): Likewise.
26983         (__arm_vmladavaq_p_u8): Likewise.
26984         (__arm_vmladavaq_p_u32): Likewise.
26985         (__arm_vmladavaq_p_u16): Likewise.
26986         (__arm_vmladavaxq_p_s8): Likewise.
26987         (__arm_vmladavaxq_p_s32): Likewise.
26988         (__arm_vmladavaxq_p_s16): Likewise.
26989         (__arm_vmlaq_m_n_s8): Likewise.
26990         (__arm_vmlaq_m_n_s32): Likewise.
26991         (__arm_vmlaq_m_n_s16): Likewise.
26992         (__arm_vmlaq_m_n_u8): Likewise.
26993         (__arm_vmlaq_m_n_u32): Likewise.
26994         (__arm_vmlaq_m_n_u16): Likewise.
26995         (__arm_vmlasq_m_n_s8): Likewise.
26996         (__arm_vmlasq_m_n_s32): Likewise.
26997         (__arm_vmlasq_m_n_s16): Likewise.
26998         (__arm_vmlasq_m_n_u8): Likewise.
26999         (__arm_vmlasq_m_n_u32): Likewise.
27000         (__arm_vmlasq_m_n_u16): Likewise.
27001         (__arm_vmlsdavaq_p_s8): Likewise.
27002         (__arm_vmlsdavaq_p_s32): Likewise.
27003         (__arm_vmlsdavaq_p_s16): Likewise.
27004         (__arm_vmlsdavaxq_p_s8): Likewise.
27005         (__arm_vmlsdavaxq_p_s32): Likewise.
27006         (__arm_vmlsdavaxq_p_s16): Likewise.
27007         (__arm_vmulhq_m_s8): Likewise.
27008         (__arm_vmulhq_m_s32): Likewise.
27009         (__arm_vmulhq_m_s16): Likewise.
27010         (__arm_vmulhq_m_u8): Likewise.
27011         (__arm_vmulhq_m_u32): Likewise.
27012         (__arm_vmulhq_m_u16): Likewise.
27013         (__arm_vmullbq_int_m_s8): Likewise.
27014         (__arm_vmullbq_int_m_s32): Likewise.
27015         (__arm_vmullbq_int_m_s16): Likewise.
27016         (__arm_vmullbq_int_m_u8): Likewise.
27017         (__arm_vmullbq_int_m_u32): Likewise.
27018         (__arm_vmullbq_int_m_u16): Likewise.
27019         (__arm_vmulltq_int_m_s8): Likewise.
27020         (__arm_vmulltq_int_m_s32): Likewise.
27021         (__arm_vmulltq_int_m_s16): Likewise.
27022         (__arm_vmulltq_int_m_u8): Likewise.
27023         (__arm_vmulltq_int_m_u32): Likewise.
27024         (__arm_vmulltq_int_m_u16): Likewise.
27025         (__arm_vmulq_m_n_s8): Likewise.
27026         (__arm_vmulq_m_n_s32): Likewise.
27027         (__arm_vmulq_m_n_s16): Likewise.
27028         (__arm_vmulq_m_n_u8): Likewise.
27029         (__arm_vmulq_m_n_u32): Likewise.
27030         (__arm_vmulq_m_n_u16): Likewise.
27031         (__arm_vmulq_m_s8): Likewise.
27032         (__arm_vmulq_m_s32): Likewise.
27033         (__arm_vmulq_m_s16): Likewise.
27034         (__arm_vmulq_m_u8): Likewise.
27035         (__arm_vmulq_m_u32): Likewise.
27036         (__arm_vmulq_m_u16): Likewise.
27037         (__arm_vornq_m_s8): Likewise.
27038         (__arm_vornq_m_s32): Likewise.
27039         (__arm_vornq_m_s16): Likewise.
27040         (__arm_vornq_m_u8): Likewise.
27041         (__arm_vornq_m_u32): Likewise.
27042         (__arm_vornq_m_u16): Likewise.
27043         (__arm_vorrq_m_s8): Likewise.
27044         (__arm_vorrq_m_s32): Likewise.
27045         (__arm_vorrq_m_s16): Likewise.
27046         (__arm_vorrq_m_u8): Likewise.
27047         (__arm_vorrq_m_u32): Likewise.
27048         (__arm_vorrq_m_u16): Likewise.
27049         (__arm_vqaddq_m_n_s8): Likewise.
27050         (__arm_vqaddq_m_n_s32): Likewise.
27051         (__arm_vqaddq_m_n_s16): Likewise.
27052         (__arm_vqaddq_m_n_u8): Likewise.
27053         (__arm_vqaddq_m_n_u32): Likewise.
27054         (__arm_vqaddq_m_n_u16): Likewise.
27055         (__arm_vqaddq_m_s8): Likewise.
27056         (__arm_vqaddq_m_s32): Likewise.
27057         (__arm_vqaddq_m_s16): Likewise.
27058         (__arm_vqaddq_m_u8): Likewise.
27059         (__arm_vqaddq_m_u32): Likewise.
27060         (__arm_vqaddq_m_u16): Likewise.
27061         (__arm_vqdmladhq_m_s8): Likewise.
27062         (__arm_vqdmladhq_m_s32): Likewise.
27063         (__arm_vqdmladhq_m_s16): Likewise.
27064         (__arm_vqdmladhxq_m_s8): Likewise.
27065         (__arm_vqdmladhxq_m_s32): Likewise.
27066         (__arm_vqdmladhxq_m_s16): Likewise.
27067         (__arm_vqdmlahq_m_n_s8): Likewise.
27068         (__arm_vqdmlahq_m_n_s32): Likewise.
27069         (__arm_vqdmlahq_m_n_s16): Likewise.
27070         (__arm_vqdmlahq_m_n_u8): Likewise.
27071         (__arm_vqdmlahq_m_n_u32): Likewise.
27072         (__arm_vqdmlahq_m_n_u16): Likewise.
27073         (__arm_vqdmlsdhq_m_s8): Likewise.
27074         (__arm_vqdmlsdhq_m_s32): Likewise.
27075         (__arm_vqdmlsdhq_m_s16): Likewise.
27076         (__arm_vqdmlsdhxq_m_s8): Likewise.
27077         (__arm_vqdmlsdhxq_m_s32): Likewise.
27078         (__arm_vqdmlsdhxq_m_s16): Likewise.
27079         (__arm_vqdmulhq_m_n_s8): Likewise.
27080         (__arm_vqdmulhq_m_n_s32): Likewise.
27081         (__arm_vqdmulhq_m_n_s16): Likewise.
27082         (__arm_vqdmulhq_m_s8): Likewise.
27083         (__arm_vqdmulhq_m_s32): Likewise.
27084         (__arm_vqdmulhq_m_s16): Likewise.
27085         (__arm_vqrdmladhq_m_s8): Likewise.
27086         (__arm_vqrdmladhq_m_s32): Likewise.
27087         (__arm_vqrdmladhq_m_s16): Likewise.
27088         (__arm_vqrdmladhxq_m_s8): Likewise.
27089         (__arm_vqrdmladhxq_m_s32): Likewise.
27090         (__arm_vqrdmladhxq_m_s16): Likewise.
27091         (__arm_vqrdmlahq_m_n_s8): Likewise.
27092         (__arm_vqrdmlahq_m_n_s32): Likewise.
27093         (__arm_vqrdmlahq_m_n_s16): Likewise.
27094         (__arm_vqrdmlahq_m_n_u8): Likewise.
27095         (__arm_vqrdmlahq_m_n_u32): Likewise.
27096         (__arm_vqrdmlahq_m_n_u16): Likewise.
27097         (__arm_vqrdmlashq_m_n_s8): Likewise.
27098         (__arm_vqrdmlashq_m_n_s32): Likewise.
27099         (__arm_vqrdmlashq_m_n_s16): Likewise.
27100         (__arm_vqrdmlashq_m_n_u8): Likewise.
27101         (__arm_vqrdmlashq_m_n_u32): Likewise.
27102         (__arm_vqrdmlashq_m_n_u16): Likewise.
27103         (__arm_vqrdmlsdhq_m_s8): Likewise.
27104         (__arm_vqrdmlsdhq_m_s32): Likewise.
27105         (__arm_vqrdmlsdhq_m_s16): Likewise.
27106         (__arm_vqrdmlsdhxq_m_s8): Likewise.
27107         (__arm_vqrdmlsdhxq_m_s32): Likewise.
27108         (__arm_vqrdmlsdhxq_m_s16): Likewise.
27109         (__arm_vqrdmulhq_m_n_s8): Likewise.
27110         (__arm_vqrdmulhq_m_n_s32): Likewise.
27111         (__arm_vqrdmulhq_m_n_s16): Likewise.
27112         (__arm_vqrdmulhq_m_s8): Likewise.
27113         (__arm_vqrdmulhq_m_s32): Likewise.
27114         (__arm_vqrdmulhq_m_s16): Likewise.
27115         (__arm_vqrshlq_m_s8): Likewise.
27116         (__arm_vqrshlq_m_s32): Likewise.
27117         (__arm_vqrshlq_m_s16): Likewise.
27118         (__arm_vqrshlq_m_u8): Likewise.
27119         (__arm_vqrshlq_m_u32): Likewise.
27120         (__arm_vqrshlq_m_u16): Likewise.
27121         (__arm_vqshlq_m_n_s8): Likewise.
27122         (__arm_vqshlq_m_n_s32): Likewise.
27123         (__arm_vqshlq_m_n_s16): Likewise.
27124         (__arm_vqshlq_m_n_u8): Likewise.
27125         (__arm_vqshlq_m_n_u32): Likewise.
27126         (__arm_vqshlq_m_n_u16): Likewise.
27127         (__arm_vqshlq_m_s8): Likewise.
27128         (__arm_vqshlq_m_s32): Likewise.
27129         (__arm_vqshlq_m_s16): Likewise.
27130         (__arm_vqshlq_m_u8): Likewise.
27131         (__arm_vqshlq_m_u32): Likewise.
27132         (__arm_vqshlq_m_u16): Likewise.
27133         (__arm_vqsubq_m_n_s8): Likewise.
27134         (__arm_vqsubq_m_n_s32): Likewise.
27135         (__arm_vqsubq_m_n_s16): Likewise.
27136         (__arm_vqsubq_m_n_u8): Likewise.
27137         (__arm_vqsubq_m_n_u32): Likewise.
27138         (__arm_vqsubq_m_n_u16): Likewise.
27139         (__arm_vqsubq_m_s8): Likewise.
27140         (__arm_vqsubq_m_s32): Likewise.
27141         (__arm_vqsubq_m_s16): Likewise.
27142         (__arm_vqsubq_m_u8): Likewise.
27143         (__arm_vqsubq_m_u32): Likewise.
27144         (__arm_vqsubq_m_u16): Likewise.
27145         (__arm_vrhaddq_m_s8): Likewise.
27146         (__arm_vrhaddq_m_s32): Likewise.
27147         (__arm_vrhaddq_m_s16): Likewise.
27148         (__arm_vrhaddq_m_u8): Likewise.
27149         (__arm_vrhaddq_m_u32): Likewise.
27150         (__arm_vrhaddq_m_u16): Likewise.
27151         (__arm_vrmulhq_m_s8): Likewise.
27152         (__arm_vrmulhq_m_s32): Likewise.
27153         (__arm_vrmulhq_m_s16): Likewise.
27154         (__arm_vrmulhq_m_u8): Likewise.
27155         (__arm_vrmulhq_m_u32): Likewise.
27156         (__arm_vrmulhq_m_u16): Likewise.
27157         (__arm_vrshlq_m_s8): Likewise.
27158         (__arm_vrshlq_m_s32): Likewise.
27159         (__arm_vrshlq_m_s16): Likewise.
27160         (__arm_vrshlq_m_u8): Likewise.
27161         (__arm_vrshlq_m_u32): Likewise.
27162         (__arm_vrshlq_m_u16): Likewise.
27163         (__arm_vrshrq_m_n_s8): Likewise.
27164         (__arm_vrshrq_m_n_s32): Likewise.
27165         (__arm_vrshrq_m_n_s16): Likewise.
27166         (__arm_vrshrq_m_n_u8): Likewise.
27167         (__arm_vrshrq_m_n_u32): Likewise.
27168         (__arm_vrshrq_m_n_u16): Likewise.
27169         (__arm_vshlq_m_n_s8): Likewise.
27170         (__arm_vshlq_m_n_s32): Likewise.
27171         (__arm_vshlq_m_n_s16): Likewise.
27172         (__arm_vshlq_m_n_u8): Likewise.
27173         (__arm_vshlq_m_n_u32): Likewise.
27174         (__arm_vshlq_m_n_u16): Likewise.
27175         (__arm_vshrq_m_n_s8): Likewise.
27176         (__arm_vshrq_m_n_s32): Likewise.
27177         (__arm_vshrq_m_n_s16): Likewise.
27178         (__arm_vshrq_m_n_u8): Likewise.
27179         (__arm_vshrq_m_n_u32): Likewise.
27180         (__arm_vshrq_m_n_u16): Likewise.
27181         (__arm_vsliq_m_n_s8): Likewise.
27182         (__arm_vsliq_m_n_s32): Likewise.
27183         (__arm_vsliq_m_n_s16): Likewise.
27184         (__arm_vsliq_m_n_u8): Likewise.
27185         (__arm_vsliq_m_n_u32): Likewise.
27186         (__arm_vsliq_m_n_u16): Likewise.
27187         (__arm_vsubq_m_n_s8): Likewise.
27188         (__arm_vsubq_m_n_s32): Likewise.
27189         (__arm_vsubq_m_n_s16): Likewise.
27190         (__arm_vsubq_m_n_u8): Likewise.
27191         (__arm_vsubq_m_n_u32): Likewise.
27192         (__arm_vsubq_m_n_u16): Likewise.
27193         (vqdmladhq_m): Define polymorphic variant.
27194         (vqdmladhxq_m): Likewise.
27195         (vqdmlsdhq_m): Likewise.
27196         (vqdmlsdhxq_m): Likewise.
27197         (vabdq_m): Likewise.
27198         (vandq_m): Likewise.
27199         (vbicq_m): Likewise.
27200         (vbrsrq_m_n): Likewise.
27201         (vcaddq_rot270_m): Likewise.
27202         (vcaddq_rot90_m): Likewise.
27203         (veorq_m): Likewise.
27204         (vmaxq_m): Likewise.
27205         (vminq_m): Likewise.
27206         (vmladavaq_p): Likewise.
27207         (vmlaq_m_n): Likewise.
27208         (vmlasq_m_n): Likewise.
27209         (vmulhq_m): Likewise.
27210         (vmullbq_int_m): Likewise.
27211         (vmulltq_int_m): Likewise.
27212         (vornq_m): Likewise.
27213         (vorrq_m): Likewise.
27214         (vqdmlahq_m_n): Likewise.
27215         (vqrdmlahq_m_n): Likewise.
27216         (vqrdmlashq_m_n): Likewise.
27217         (vqrshlq_m): Likewise.
27218         (vqshlq_m_n): Likewise.
27219         (vqshlq_m): Likewise.
27220         (vrhaddq_m): Likewise.
27221         (vrmulhq_m): Likewise.
27222         (vrshlq_m): Likewise.
27223         (vrshrq_m_n): Likewise.
27224         (vshlq_m_n): Likewise.
27225         (vshrq_m_n): Likewise.
27226         (vsliq_m): Likewise.
27227         (vaddq_m_n): Likewise.
27228         (vaddq_m): Likewise.
27229         (vhaddq_m_n): Likewise.
27230         (vhaddq_m): Likewise.
27231         (vhcaddq_rot270_m): Likewise.
27232         (vhcaddq_rot90_m): Likewise.
27233         (vhsubq_m): Likewise.
27234         (vhsubq_m_n): Likewise.
27235         (vmulq_m_n): Likewise.
27236         (vmulq_m): Likewise.
27237         (vqaddq_m_n): Likewise.
27238         (vqaddq_m): Likewise.
27239         (vqdmulhq_m_n): Likewise.
27240         (vqdmulhq_m): Likewise.
27241         (vsubq_m_n): Likewise.
27242         (vsliq_m_n): Likewise.
27243         (vqsubq_m_n): Likewise.
27244         (vqsubq_m): Likewise.
27245         (vqrdmulhq_m): Likewise.
27246         (vqrdmulhq_m_n): Likewise.
27247         (vqrdmlsdhxq_m): Likewise.
27248         (vqrdmlsdhq_m): Likewise.
27249         (vqrdmladhq_m): Likewise.
27250         (vqrdmladhxq_m): Likewise.
27251         (vmlsdavaxq_p): Likewise.
27252         (vmlsdavaq_p): Likewise.
27253         (vmladavaxq_p): Likewise.
27254         * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
27255         builtin qualifier.
27256         (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
27257         (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
27258         (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE): Likewise.
27259         (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
27260         * config/arm/mve.md (VHSUBQ_M): Define iterators.
27261         (VSLIQ_M_N): Likewise.
27262         (VQRDMLAHQ_M_N): Likewise.
27263         (VRSHLQ_M): Likewise.
27264         (VMINQ_M): Likewise.
27265         (VMULLBQ_INT_M): Likewise.
27266         (VMULHQ_M): Likewise.
27267         (VMULQ_M): Likewise.
27268         (VHSUBQ_M_N): Likewise.
27269         (VHADDQ_M_N): Likewise.
27270         (VORRQ_M): Likewise.
27271         (VRMULHQ_M): Likewise.
27272         (VQADDQ_M): Likewise.
27273         (VRSHRQ_M_N): Likewise.
27274         (VQSUBQ_M_N): Likewise.
27275         (VADDQ_M): Likewise.
27276         (VORNQ_M): Likewise.
27277         (VQDMLAHQ_M_N): Likewise.
27278         (VRHADDQ_M): Likewise.
27279         (VQSHLQ_M): Likewise.
27280         (VANDQ_M): Likewise.
27281         (VBICQ_M): Likewise.
27282         (VSHLQ_M_N): Likewise.
27283         (VCADDQ_ROT270_M): Likewise.
27284         (VQRSHLQ_M): Likewise.
27285         (VQADDQ_M_N): Likewise.
27286         (VADDQ_M_N): Likewise.
27287         (VMAXQ_M): Likewise.
27288         (VQSUBQ_M): Likewise.
27289         (VMLASQ_M_N): Likewise.
27290         (VMLADAVAQ_P): Likewise.
27291         (VBRSRQ_M_N): Likewise.
27292         (VMULQ_M_N): Likewise.
27293         (VCADDQ_ROT90_M): Likewise.
27294         (VMULLTQ_INT_M): Likewise.
27295         (VEORQ_M): Likewise.
27296         (VSHRQ_M_N): Likewise.
27297         (VSUBQ_M_N): Likewise.
27298         (VHADDQ_M): Likewise.
27299         (VABDQ_M): Likewise.
27300         (VQRDMLASHQ_M_N): Likewise.
27301         (VMLAQ_M_N): Likewise.
27302         (VQSHLQ_M_N): Likewise.
27303         (mve_vabdq_m_<supf><mode>): Define RTL pattern.
27304         (mve_vaddq_m_n_<supf><mode>): Likewise.
27305         (mve_vaddq_m_<supf><mode>): Likewise.
27306         (mve_vandq_m_<supf><mode>): Likewise.
27307         (mve_vbicq_m_<supf><mode>): Likewise.
27308         (mve_vbrsrq_m_n_<supf><mode>): Likewise.
27309         (mve_vcaddq_rot270_m_<supf><mode>): Likewise.
27310         (mve_vcaddq_rot90_m_<supf><mode>): Likewise.
27311         (mve_veorq_m_<supf><mode>): Likewise.
27312         (mve_vhaddq_m_n_<supf><mode>): Likewise.
27313         (mve_vhaddq_m_<supf><mode>): Likewise.
27314         (mve_vhsubq_m_n_<supf><mode>): Likewise.
27315         (mve_vhsubq_m_<supf><mode>): Likewise.
27316         (mve_vmaxq_m_<supf><mode>): Likewise.
27317         (mve_vminq_m_<supf><mode>): Likewise.
27318         (mve_vmladavaq_p_<supf><mode>): Likewise.
27319         (mve_vmlaq_m_n_<supf><mode>): Likewise.
27320         (mve_vmlasq_m_n_<supf><mode>): Likewise.
27321         (mve_vmulhq_m_<supf><mode>): Likewise.
27322         (mve_vmullbq_int_m_<supf><mode>): Likewise.
27323         (mve_vmulltq_int_m_<supf><mode>): Likewise.
27324         (mve_vmulq_m_n_<supf><mode>): Likewise.
27325         (mve_vmulq_m_<supf><mode>): Likewise.
27326         (mve_vornq_m_<supf><mode>): Likewise.
27327         (mve_vorrq_m_<supf><mode>): Likewise.
27328         (mve_vqaddq_m_n_<supf><mode>): Likewise.
27329         (mve_vqaddq_m_<supf><mode>): Likewise.
27330         (mve_vqdmlahq_m_n_<supf><mode>): Likewise.
27331         (mve_vqrdmlahq_m_n_<supf><mode>): Likewise.
27332         (mve_vqrdmlashq_m_n_<supf><mode>): Likewise.
27333         (mve_vqrshlq_m_<supf><mode>): Likewise.
27334         (mve_vqshlq_m_n_<supf><mode>): Likewise.
27335         (mve_vqshlq_m_<supf><mode>): Likewise.
27336         (mve_vqsubq_m_n_<supf><mode>): Likewise.
27337         (mve_vqsubq_m_<supf><mode>): Likewise.
27338         (mve_vrhaddq_m_<supf><mode>): Likewise.
27339         (mve_vrmulhq_m_<supf><mode>): Likewise.
27340         (mve_vrshlq_m_<supf><mode>): Likewise.
27341         (mve_vrshrq_m_n_<supf><mode>): Likewise.
27342         (mve_vshlq_m_n_<supf><mode>): Likewise.
27343         (mve_vshrq_m_n_<supf><mode>): Likewise.
27344         (mve_vsliq_m_n_<supf><mode>): Likewise.
27345         (mve_vsubq_m_n_<supf><mode>): Likewise.
27346         (mve_vhcaddq_rot270_m_s<mode>): Likewise.
27347         (mve_vhcaddq_rot90_m_s<mode>): Likewise.
27348         (mve_vmladavaxq_p_s<mode>): Likewise.
27349         (mve_vmlsdavaq_p_s<mode>): Likewise.
27350         (mve_vmlsdavaxq_p_s<mode>): Likewise.
27351         (mve_vqdmladhq_m_s<mode>): Likewise.
27352         (mve_vqdmladhxq_m_s<mode>): Likewise.
27353         (mve_vqdmlsdhq_m_s<mode>): Likewise.
27354         (mve_vqdmlsdhxq_m_s<mode>): Likewise.
27355         (mve_vqdmulhq_m_n_s<mode>): Likewise.
27356         (mve_vqdmulhq_m_s<mode>): Likewise.
27357         (mve_vqrdmladhq_m_s<mode>): Likewise.
27358         (mve_vqrdmladhxq_m_s<mode>): Likewise.
27359         (mve_vqrdmlsdhq_m_s<mode>): Likewise.
27360         (mve_vqrdmlsdhxq_m_s<mode>): Likewise.
27361         (mve_vqrdmulhq_m_n_s<mode>): Likewise.
27362         (mve_vqrdmulhq_m_s<mode>): Likewise.
27364 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
27365             Mihail Ionescu  <mihail.ionescu@arm.com>
27366             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
27368         * config/arm/arm-builtins.c (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS):
27369         Define builtin qualifier.
27370         (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
27371         (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
27372         (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
27373         (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
27374         (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
27375         (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
27376         (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
27377         * config/arm/arm_mve.h (vsriq_m_n_s8): Define macro.
27378         (vsubq_m_s8): Likewise.
27379         (vcvtq_m_n_f16_u16): Likewise.
27380         (vqshluq_m_n_s8): Likewise.
27381         (vabavq_p_s8): Likewise.
27382         (vsriq_m_n_u8): Likewise.
27383         (vshlq_m_u8): Likewise.
27384         (vsubq_m_u8): Likewise.
27385         (vabavq_p_u8): Likewise.
27386         (vshlq_m_s8): Likewise.
27387         (vcvtq_m_n_f16_s16): Likewise.
27388         (vsriq_m_n_s16): Likewise.
27389         (vsubq_m_s16): Likewise.
27390         (vcvtq_m_n_f32_u32): Likewise.
27391         (vqshluq_m_n_s16): Likewise.
27392         (vabavq_p_s16): Likewise.
27393         (vsriq_m_n_u16): Likewise.
27394         (vshlq_m_u16): Likewise.
27395         (vsubq_m_u16): Likewise.
27396         (vabavq_p_u16): Likewise.
27397         (vshlq_m_s16): Likewise.
27398         (vcvtq_m_n_f32_s32): Likewise.
27399         (vsriq_m_n_s32): Likewise.
27400         (vsubq_m_s32): Likewise.
27401         (vqshluq_m_n_s32): Likewise.
27402         (vabavq_p_s32): Likewise.
27403         (vsriq_m_n_u32): Likewise.
27404         (vshlq_m_u32): Likewise.
27405         (vsubq_m_u32): Likewise.
27406         (vabavq_p_u32): Likewise.
27407         (vshlq_m_s32): Likewise.
27408         (__arm_vsriq_m_n_s8): Define intrinsic.
27409         (__arm_vsubq_m_s8): Likewise.
27410         (__arm_vqshluq_m_n_s8): Likewise.
27411         (__arm_vabavq_p_s8): Likewise.
27412         (__arm_vsriq_m_n_u8): Likewise.
27413         (__arm_vshlq_m_u8): Likewise.
27414         (__arm_vsubq_m_u8): Likewise.
27415         (__arm_vabavq_p_u8): Likewise.
27416         (__arm_vshlq_m_s8): Likewise.
27417         (__arm_vsriq_m_n_s16): Likewise.
27418         (__arm_vsubq_m_s16): Likewise.
27419         (__arm_vqshluq_m_n_s16): Likewise.
27420         (__arm_vabavq_p_s16): Likewise.
27421         (__arm_vsriq_m_n_u16): Likewise.
27422         (__arm_vshlq_m_u16): Likewise.
27423         (__arm_vsubq_m_u16): Likewise.
27424         (__arm_vabavq_p_u16): Likewise.
27425         (__arm_vshlq_m_s16): Likewise.
27426         (__arm_vsriq_m_n_s32): Likewise.
27427         (__arm_vsubq_m_s32): Likewise.
27428         (__arm_vqshluq_m_n_s32): Likewise.
27429         (__arm_vabavq_p_s32): Likewise.
27430         (__arm_vsriq_m_n_u32): Likewise.
27431         (__arm_vshlq_m_u32): Likewise.
27432         (__arm_vsubq_m_u32): Likewise.
27433         (__arm_vabavq_p_u32): Likewise.
27434         (__arm_vshlq_m_s32): Likewise.
27435         (__arm_vcvtq_m_n_f16_u16): Likewise.
27436         (__arm_vcvtq_m_n_f16_s16): Likewise.
27437         (__arm_vcvtq_m_n_f32_u32): Likewise.
27438         (__arm_vcvtq_m_n_f32_s32): Likewise.
27439         (vcvtq_m_n): Define polymorphic variant.
27440         (vqshluq_m_n): Likewise.
27441         (vshlq_m): Likewise.
27442         (vsriq_m_n): Likewise.
27443         (vsubq_m): Likewise.
27444         (vabavq_p): Likewise.
27445         * config/arm/arm_mve_builtins.def
27446         (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS): Use builtin qualifier.
27447         (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
27448         (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
27449         (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
27450         (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
27451         (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
27452         (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
27453         (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
27454         * config/arm/mve.md (VABAVQ_P): Define iterator.
27455         (VSHLQ_M): Likewise.
27456         (VSRIQ_M_N): Likewise.
27457         (VSUBQ_M): Likewise.
27458         (VCVTQ_M_N_TO_F): Likewise.
27459         (mve_vabavq_p_<supf><mode>): Define RTL pattern.
27460         (mve_vqshluq_m_n_s<mode>): Likewise.
27461         (mve_vshlq_m_<supf><mode>): Likewise.
27462         (mve_vsriq_m_n_<supf><mode>): Likewise.
27463         (mve_vsubq_m_<supf><mode>): Likewise.
27464         (mve_vcvtq_m_n_to_f_<supf><mode>): Likewise.
27466 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
27467             Mihail Ionescu  <mihail.ionescu@arm.com>
27468             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
27470         * config/arm/arm_mve.h (vrmlaldavhaxq_s32): Define macro.
27471         (vrmlsldavhaq_s32): Likewise.
27472         (vrmlsldavhaxq_s32): Likewise.
27473         (vaddlvaq_p_s32): Likewise.
27474         (vcvtbq_m_f16_f32): Likewise.
27475         (vcvtbq_m_f32_f16): Likewise.
27476         (vcvttq_m_f16_f32): Likewise.
27477         (vcvttq_m_f32_f16): Likewise.
27478         (vrev16q_m_s8): Likewise.
27479         (vrev32q_m_f16): Likewise.
27480         (vrmlaldavhq_p_s32): Likewise.
27481         (vrmlaldavhxq_p_s32): Likewise.
27482         (vrmlsldavhq_p_s32): Likewise.
27483         (vrmlsldavhxq_p_s32): Likewise.
27484         (vaddlvaq_p_u32): Likewise.
27485         (vrev16q_m_u8): Likewise.
27486         (vrmlaldavhq_p_u32): Likewise.
27487         (vmvnq_m_n_s16): Likewise.
27488         (vorrq_m_n_s16): Likewise.
27489         (vqrshrntq_n_s16): Likewise.
27490         (vqshrnbq_n_s16): Likewise.
27491         (vqshrntq_n_s16): Likewise.
27492         (vrshrnbq_n_s16): Likewise.
27493         (vrshrntq_n_s16): Likewise.
27494         (vshrnbq_n_s16): Likewise.
27495         (vshrntq_n_s16): Likewise.
27496         (vcmlaq_f16): Likewise.
27497         (vcmlaq_rot180_f16): Likewise.
27498         (vcmlaq_rot270_f16): Likewise.
27499         (vcmlaq_rot90_f16): Likewise.
27500         (vfmaq_f16): Likewise.
27501         (vfmaq_n_f16): Likewise.
27502         (vfmasq_n_f16): Likewise.
27503         (vfmsq_f16): Likewise.
27504         (vmlaldavaq_s16): Likewise.
27505         (vmlaldavaxq_s16): Likewise.
27506         (vmlsldavaq_s16): Likewise.
27507         (vmlsldavaxq_s16): Likewise.
27508         (vabsq_m_f16): Likewise.
27509         (vcvtmq_m_s16_f16): Likewise.
27510         (vcvtnq_m_s16_f16): Likewise.
27511         (vcvtpq_m_s16_f16): Likewise.
27512         (vcvtq_m_s16_f16): Likewise.
27513         (vdupq_m_n_f16): Likewise.
27514         (vmaxnmaq_m_f16): Likewise.
27515         (vmaxnmavq_p_f16): Likewise.
27516         (vmaxnmvq_p_f16): Likewise.
27517         (vminnmaq_m_f16): Likewise.
27518         (vminnmavq_p_f16): Likewise.
27519         (vminnmvq_p_f16): Likewise.
27520         (vmlaldavq_p_s16): Likewise.
27521         (vmlaldavxq_p_s16): Likewise.
27522         (vmlsldavq_p_s16): Likewise.
27523         (vmlsldavxq_p_s16): Likewise.
27524         (vmovlbq_m_s8): Likewise.
27525         (vmovltq_m_s8): Likewise.
27526         (vmovnbq_m_s16): Likewise.
27527         (vmovntq_m_s16): Likewise.
27528         (vnegq_m_f16): Likewise.
27529         (vpselq_f16): Likewise.
27530         (vqmovnbq_m_s16): Likewise.
27531         (vqmovntq_m_s16): Likewise.
27532         (vrev32q_m_s8): Likewise.
27533         (vrev64q_m_f16): Likewise.
27534         (vrndaq_m_f16): Likewise.
27535         (vrndmq_m_f16): Likewise.
27536         (vrndnq_m_f16): Likewise.
27537         (vrndpq_m_f16): Likewise.
27538         (vrndq_m_f16): Likewise.
27539         (vrndxq_m_f16): Likewise.
27540         (vcmpeqq_m_n_f16): Likewise.
27541         (vcmpgeq_m_f16): Likewise.
27542         (vcmpgeq_m_n_f16): Likewise.
27543         (vcmpgtq_m_f16): Likewise.
27544         (vcmpgtq_m_n_f16): Likewise.
27545         (vcmpleq_m_f16): Likewise.
27546         (vcmpleq_m_n_f16): Likewise.
27547         (vcmpltq_m_f16): Likewise.
27548         (vcmpltq_m_n_f16): Likewise.
27549         (vcmpneq_m_f16): Likewise.
27550         (vcmpneq_m_n_f16): Likewise.
27551         (vmvnq_m_n_u16): Likewise.
27552         (vorrq_m_n_u16): Likewise.
27553         (vqrshruntq_n_s16): Likewise.
27554         (vqshrunbq_n_s16): Likewise.
27555         (vqshruntq_n_s16): Likewise.
27556         (vcvtmq_m_u16_f16): Likewise.
27557         (vcvtnq_m_u16_f16): Likewise.
27558         (vcvtpq_m_u16_f16): Likewise.
27559         (vcvtq_m_u16_f16): Likewise.
27560         (vqmovunbq_m_s16): Likewise.
27561         (vqmovuntq_m_s16): Likewise.
27562         (vqrshrntq_n_u16): Likewise.
27563         (vqshrnbq_n_u16): Likewise.
27564         (vqshrntq_n_u16): Likewise.
27565         (vrshrnbq_n_u16): Likewise.
27566         (vrshrntq_n_u16): Likewise.
27567         (vshrnbq_n_u16): Likewise.
27568         (vshrntq_n_u16): Likewise.
27569         (vmlaldavaq_u16): Likewise.
27570         (vmlaldavaxq_u16): Likewise.
27571         (vmlaldavq_p_u16): Likewise.
27572         (vmlaldavxq_p_u16): Likewise.
27573         (vmovlbq_m_u8): Likewise.
27574         (vmovltq_m_u8): Likewise.
27575         (vmovnbq_m_u16): Likewise.
27576         (vmovntq_m_u16): Likewise.
27577         (vqmovnbq_m_u16): Likewise.
27578         (vqmovntq_m_u16): Likewise.
27579         (vrev32q_m_u8): Likewise.
27580         (vmvnq_m_n_s32): Likewise.
27581         (vorrq_m_n_s32): Likewise.
27582         (vqrshrntq_n_s32): Likewise.
27583         (vqshrnbq_n_s32): Likewise.
27584         (vqshrntq_n_s32): Likewise.
27585         (vrshrnbq_n_s32): Likewise.
27586         (vrshrntq_n_s32): Likewise.
27587         (vshrnbq_n_s32): Likewise.
27588         (vshrntq_n_s32): Likewise.
27589         (vcmlaq_f32): Likewise.
27590         (vcmlaq_rot180_f32): Likewise.
27591         (vcmlaq_rot270_f32): Likewise.
27592         (vcmlaq_rot90_f32): Likewise.
27593         (vfmaq_f32): Likewise.
27594         (vfmaq_n_f32): Likewise.
27595         (vfmasq_n_f32): Likewise.
27596         (vfmsq_f32): Likewise.
27597         (vmlaldavaq_s32): Likewise.
27598         (vmlaldavaxq_s32): Likewise.
27599         (vmlsldavaq_s32): Likewise.
27600         (vmlsldavaxq_s32): Likewise.
27601         (vabsq_m_f32): Likewise.
27602         (vcvtmq_m_s32_f32): Likewise.
27603         (vcvtnq_m_s32_f32): Likewise.
27604         (vcvtpq_m_s32_f32): Likewise.
27605         (vcvtq_m_s32_f32): Likewise.
27606         (vdupq_m_n_f32): Likewise.
27607         (vmaxnmaq_m_f32): Likewise.
27608         (vmaxnmavq_p_f32): Likewise.
27609         (vmaxnmvq_p_f32): Likewise.
27610         (vminnmaq_m_f32): Likewise.
27611         (vminnmavq_p_f32): Likewise.
27612         (vminnmvq_p_f32): Likewise.
27613         (vmlaldavq_p_s32): Likewise.
27614         (vmlaldavxq_p_s32): Likewise.
27615         (vmlsldavq_p_s32): Likewise.
27616         (vmlsldavxq_p_s32): Likewise.
27617         (vmovlbq_m_s16): Likewise.
27618         (vmovltq_m_s16): Likewise.
27619         (vmovnbq_m_s32): Likewise.
27620         (vmovntq_m_s32): Likewise.
27621         (vnegq_m_f32): Likewise.
27622         (vpselq_f32): Likewise.
27623         (vqmovnbq_m_s32): Likewise.
27624         (vqmovntq_m_s32): Likewise.
27625         (vrev32q_m_s16): Likewise.
27626         (vrev64q_m_f32): Likewise.
27627         (vrndaq_m_f32): Likewise.
27628         (vrndmq_m_f32): Likewise.
27629         (vrndnq_m_f32): Likewise.
27630         (vrndpq_m_f32): Likewise.
27631         (vrndq_m_f32): Likewise.
27632         (vrndxq_m_f32): Likewise.
27633         (vcmpeqq_m_n_f32): Likewise.
27634         (vcmpgeq_m_f32): Likewise.
27635         (vcmpgeq_m_n_f32): Likewise.
27636         (vcmpgtq_m_f32): Likewise.
27637         (vcmpgtq_m_n_f32): Likewise.
27638         (vcmpleq_m_f32): Likewise.
27639         (vcmpleq_m_n_f32): Likewise.
27640         (vcmpltq_m_f32): Likewise.
27641         (vcmpltq_m_n_f32): Likewise.
27642         (vcmpneq_m_f32): Likewise.
27643         (vcmpneq_m_n_f32): Likewise.
27644         (vmvnq_m_n_u32): Likewise.
27645         (vorrq_m_n_u32): Likewise.
27646         (vqrshruntq_n_s32): Likewise.
27647         (vqshrunbq_n_s32): Likewise.
27648         (vqshruntq_n_s32): Likewise.
27649         (vcvtmq_m_u32_f32): Likewise.
27650         (vcvtnq_m_u32_f32): Likewise.
27651         (vcvtpq_m_u32_f32): Likewise.
27652         (vcvtq_m_u32_f32): Likewise.
27653         (vqmovunbq_m_s32): Likewise.
27654         (vqmovuntq_m_s32): Likewise.
27655         (vqrshrntq_n_u32): Likewise.
27656         (vqshrnbq_n_u32): Likewise.
27657         (vqshrntq_n_u32): Likewise.
27658         (vrshrnbq_n_u32): Likewise.
27659         (vrshrntq_n_u32): Likewise.
27660         (vshrnbq_n_u32): Likewise.
27661         (vshrntq_n_u32): Likewise.
27662         (vmlaldavaq_u32): Likewise.
27663         (vmlaldavaxq_u32): Likewise.
27664         (vmlaldavq_p_u32): Likewise.
27665         (vmlaldavxq_p_u32): Likewise.
27666         (vmovlbq_m_u16): Likewise.
27667         (vmovltq_m_u16): Likewise.
27668         (vmovnbq_m_u32): Likewise.
27669         (vmovntq_m_u32): Likewise.
27670         (vqmovnbq_m_u32): Likewise.
27671         (vqmovntq_m_u32): Likewise.
27672         (vrev32q_m_u16): Likewise.
27673         (__arm_vrmlaldavhaxq_s32): Define intrinsic.
27674         (__arm_vrmlsldavhaq_s32): Likewise.
27675         (__arm_vrmlsldavhaxq_s32): Likewise.
27676         (__arm_vaddlvaq_p_s32): Likewise.
27677         (__arm_vrev16q_m_s8): Likewise.
27678         (__arm_vrmlaldavhq_p_s32): Likewise.
27679         (__arm_vrmlaldavhxq_p_s32): Likewise.
27680         (__arm_vrmlsldavhq_p_s32): Likewise.
27681         (__arm_vrmlsldavhxq_p_s32): Likewise.
27682         (__arm_vaddlvaq_p_u32): Likewise.
27683         (__arm_vrev16q_m_u8): Likewise.
27684         (__arm_vrmlaldavhq_p_u32): Likewise.
27685         (__arm_vmvnq_m_n_s16): Likewise.
27686         (__arm_vorrq_m_n_s16): Likewise.
27687         (__arm_vqrshrntq_n_s16): Likewise.
27688         (__arm_vqshrnbq_n_s16): Likewise.
27689         (__arm_vqshrntq_n_s16): Likewise.
27690         (__arm_vrshrnbq_n_s16): Likewise.
27691         (__arm_vrshrntq_n_s16): Likewise.
27692         (__arm_vshrnbq_n_s16): Likewise.
27693         (__arm_vshrntq_n_s16): Likewise.
27694         (__arm_vmlaldavaq_s16): Likewise.
27695         (__arm_vmlaldavaxq_s16): Likewise.
27696         (__arm_vmlsldavaq_s16): Likewise.
27697         (__arm_vmlsldavaxq_s16): Likewise.
27698         (__arm_vmlaldavq_p_s16): Likewise.
27699         (__arm_vmlaldavxq_p_s16): Likewise.
27700         (__arm_vmlsldavq_p_s16): Likewise.
27701         (__arm_vmlsldavxq_p_s16): Likewise.
27702         (__arm_vmovlbq_m_s8): Likewise.
27703         (__arm_vmovltq_m_s8): Likewise.
27704         (__arm_vmovnbq_m_s16): Likewise.
27705         (__arm_vmovntq_m_s16): Likewise.
27706         (__arm_vqmovnbq_m_s16): Likewise.
27707         (__arm_vqmovntq_m_s16): Likewise.
27708         (__arm_vrev32q_m_s8): Likewise.
27709         (__arm_vmvnq_m_n_u16): Likewise.
27710         (__arm_vorrq_m_n_u16): Likewise.
27711         (__arm_vqrshruntq_n_s16): Likewise.
27712         (__arm_vqshrunbq_n_s16): Likewise.
27713         (__arm_vqshruntq_n_s16): Likewise.
27714         (__arm_vqmovunbq_m_s16): Likewise.
27715         (__arm_vqmovuntq_m_s16): Likewise.
27716         (__arm_vqrshrntq_n_u16): Likewise.
27717         (__arm_vqshrnbq_n_u16): Likewise.
27718         (__arm_vqshrntq_n_u16): Likewise.
27719         (__arm_vrshrnbq_n_u16): Likewise.
27720         (__arm_vrshrntq_n_u16): Likewise.
27721         (__arm_vshrnbq_n_u16): Likewise.
27722         (__arm_vshrntq_n_u16): Likewise.
27723         (__arm_vmlaldavaq_u16): Likewise.
27724         (__arm_vmlaldavaxq_u16): Likewise.
27725         (__arm_vmlaldavq_p_u16): Likewise.
27726         (__arm_vmlaldavxq_p_u16): Likewise.
27727         (__arm_vmovlbq_m_u8): Likewise.
27728         (__arm_vmovltq_m_u8): Likewise.
27729         (__arm_vmovnbq_m_u16): Likewise.
27730         (__arm_vmovntq_m_u16): Likewise.
27731         (__arm_vqmovnbq_m_u16): Likewise.
27732         (__arm_vqmovntq_m_u16): Likewise.
27733         (__arm_vrev32q_m_u8): Likewise.
27734         (__arm_vmvnq_m_n_s32): Likewise.
27735         (__arm_vorrq_m_n_s32): Likewise.
27736         (__arm_vqrshrntq_n_s32): Likewise.
27737         (__arm_vqshrnbq_n_s32): Likewise.
27738         (__arm_vqshrntq_n_s32): Likewise.
27739         (__arm_vrshrnbq_n_s32): Likewise.
27740         (__arm_vrshrntq_n_s32): Likewise.
27741         (__arm_vshrnbq_n_s32): Likewise.
27742         (__arm_vshrntq_n_s32): Likewise.
27743         (__arm_vmlaldavaq_s32): Likewise.
27744         (__arm_vmlaldavaxq_s32): Likewise.
27745         (__arm_vmlsldavaq_s32): Likewise.
27746         (__arm_vmlsldavaxq_s32): Likewise.
27747         (__arm_vmlaldavq_p_s32): Likewise.
27748         (__arm_vmlaldavxq_p_s32): Likewise.
27749         (__arm_vmlsldavq_p_s32): Likewise.
27750         (__arm_vmlsldavxq_p_s32): Likewise.
27751         (__arm_vmovlbq_m_s16): Likewise.
27752         (__arm_vmovltq_m_s16): Likewise.
27753         (__arm_vmovnbq_m_s32): Likewise.
27754         (__arm_vmovntq_m_s32): Likewise.
27755         (__arm_vqmovnbq_m_s32): Likewise.
27756         (__arm_vqmovntq_m_s32): Likewise.
27757         (__arm_vrev32q_m_s16): Likewise.
27758         (__arm_vmvnq_m_n_u32): Likewise.
27759         (__arm_vorrq_m_n_u32): Likewise.
27760         (__arm_vqrshruntq_n_s32): Likewise.
27761         (__arm_vqshrunbq_n_s32): Likewise.
27762         (__arm_vqshruntq_n_s32): Likewise.
27763         (__arm_vqmovunbq_m_s32): Likewise.
27764         (__arm_vqmovuntq_m_s32): Likewise.
27765         (__arm_vqrshrntq_n_u32): Likewise.
27766         (__arm_vqshrnbq_n_u32): Likewise.
27767         (__arm_vqshrntq_n_u32): Likewise.
27768         (__arm_vrshrnbq_n_u32): Likewise.
27769         (__arm_vrshrntq_n_u32): Likewise.
27770         (__arm_vshrnbq_n_u32): Likewise.
27771         (__arm_vshrntq_n_u32): Likewise.
27772         (__arm_vmlaldavaq_u32): Likewise.
27773         (__arm_vmlaldavaxq_u32): Likewise.
27774         (__arm_vmlaldavq_p_u32): Likewise.
27775         (__arm_vmlaldavxq_p_u32): Likewise.
27776         (__arm_vmovlbq_m_u16): Likewise.
27777         (__arm_vmovltq_m_u16): Likewise.
27778         (__arm_vmovnbq_m_u32): Likewise.
27779         (__arm_vmovntq_m_u32): Likewise.
27780         (__arm_vqmovnbq_m_u32): Likewise.
27781         (__arm_vqmovntq_m_u32): Likewise.
27782         (__arm_vrev32q_m_u16): Likewise.
27783         (__arm_vcvtbq_m_f16_f32): Likewise.
27784         (__arm_vcvtbq_m_f32_f16): Likewise.
27785         (__arm_vcvttq_m_f16_f32): Likewise.
27786         (__arm_vcvttq_m_f32_f16): Likewise.
27787         (__arm_vrev32q_m_f16): Likewise.
27788         (__arm_vcmlaq_f16): Likewise.
27789         (__arm_vcmlaq_rot180_f16): Likewise.
27790         (__arm_vcmlaq_rot270_f16): Likewise.
27791         (__arm_vcmlaq_rot90_f16): Likewise.
27792         (__arm_vfmaq_f16): Likewise.
27793         (__arm_vfmaq_n_f16): Likewise.
27794         (__arm_vfmasq_n_f16): Likewise.
27795         (__arm_vfmsq_f16): Likewise.
27796         (__arm_vabsq_m_f16): Likewise.
27797         (__arm_vcvtmq_m_s16_f16): Likewise.
27798         (__arm_vcvtnq_m_s16_f16): Likewise.
27799         (__arm_vcvtpq_m_s16_f16): Likewise.
27800         (__arm_vcvtq_m_s16_f16): Likewise.
27801         (__arm_vdupq_m_n_f16): Likewise.
27802         (__arm_vmaxnmaq_m_f16): Likewise.
27803         (__arm_vmaxnmavq_p_f16): Likewise.
27804         (__arm_vmaxnmvq_p_f16): Likewise.
27805         (__arm_vminnmaq_m_f16): Likewise.
27806         (__arm_vminnmavq_p_f16): Likewise.
27807         (__arm_vminnmvq_p_f16): Likewise.
27808         (__arm_vnegq_m_f16): Likewise.
27809         (__arm_vpselq_f16): Likewise.
27810         (__arm_vrev64q_m_f16): Likewise.
27811         (__arm_vrndaq_m_f16): Likewise.
27812         (__arm_vrndmq_m_f16): Likewise.
27813         (__arm_vrndnq_m_f16): Likewise.
27814         (__arm_vrndpq_m_f16): Likewise.
27815         (__arm_vrndq_m_f16): Likewise.
27816         (__arm_vrndxq_m_f16): Likewise.
27817         (__arm_vcmpeqq_m_n_f16): Likewise.
27818         (__arm_vcmpgeq_m_f16): Likewise.
27819         (__arm_vcmpgeq_m_n_f16): Likewise.
27820         (__arm_vcmpgtq_m_f16): Likewise.
27821         (__arm_vcmpgtq_m_n_f16): Likewise.
27822         (__arm_vcmpleq_m_f16): Likewise.
27823         (__arm_vcmpleq_m_n_f16): Likewise.
27824         (__arm_vcmpltq_m_f16): Likewise.
27825         (__arm_vcmpltq_m_n_f16): Likewise.
27826         (__arm_vcmpneq_m_f16): Likewise.
27827         (__arm_vcmpneq_m_n_f16): Likewise.
27828         (__arm_vcvtmq_m_u16_f16): Likewise.
27829         (__arm_vcvtnq_m_u16_f16): Likewise.
27830         (__arm_vcvtpq_m_u16_f16): Likewise.
27831         (__arm_vcvtq_m_u16_f16): Likewise.
27832         (__arm_vcmlaq_f32): Likewise.
27833         (__arm_vcmlaq_rot180_f32): Likewise.
27834         (__arm_vcmlaq_rot270_f32): Likewise.
27835         (__arm_vcmlaq_rot90_f32): Likewise.
27836         (__arm_vfmaq_f32): Likewise.
27837         (__arm_vfmaq_n_f32): Likewise.
27838         (__arm_vfmasq_n_f32): Likewise.
27839         (__arm_vfmsq_f32): Likewise.
27840         (__arm_vabsq_m_f32): Likewise.
27841         (__arm_vcvtmq_m_s32_f32): Likewise.
27842         (__arm_vcvtnq_m_s32_f32): Likewise.
27843         (__arm_vcvtpq_m_s32_f32): Likewise.
27844         (__arm_vcvtq_m_s32_f32): Likewise.
27845         (__arm_vdupq_m_n_f32): Likewise.
27846         (__arm_vmaxnmaq_m_f32): Likewise.
27847         (__arm_vmaxnmavq_p_f32): Likewise.
27848         (__arm_vmaxnmvq_p_f32): Likewise.
27849         (__arm_vminnmaq_m_f32): Likewise.
27850         (__arm_vminnmavq_p_f32): Likewise.
27851         (__arm_vminnmvq_p_f32): Likewise.
27852         (__arm_vnegq_m_f32): Likewise.
27853         (__arm_vpselq_f32): Likewise.
27854         (__arm_vrev64q_m_f32): Likewise.
27855         (__arm_vrndaq_m_f32): Likewise.
27856         (__arm_vrndmq_m_f32): Likewise.
27857         (__arm_vrndnq_m_f32): Likewise.
27858         (__arm_vrndpq_m_f32): Likewise.
27859         (__arm_vrndq_m_f32): Likewise.
27860         (__arm_vrndxq_m_f32): Likewise.
27861         (__arm_vcmpeqq_m_n_f32): Likewise.
27862         (__arm_vcmpgeq_m_f32): Likewise.
27863         (__arm_vcmpgeq_m_n_f32): Likewise.
27864         (__arm_vcmpgtq_m_f32): Likewise.
27865         (__arm_vcmpgtq_m_n_f32): Likewise.
27866         (__arm_vcmpleq_m_f32): Likewise.
27867         (__arm_vcmpleq_m_n_f32): Likewise.
27868         (__arm_vcmpltq_m_f32): Likewise.
27869         (__arm_vcmpltq_m_n_f32): Likewise.
27870         (__arm_vcmpneq_m_f32): Likewise.
27871         (__arm_vcmpneq_m_n_f32): Likewise.
27872         (__arm_vcvtmq_m_u32_f32): Likewise.
27873         (__arm_vcvtnq_m_u32_f32): Likewise.
27874         (__arm_vcvtpq_m_u32_f32): Likewise.
27875         (__arm_vcvtq_m_u32_f32): Likewise.
27876         (vcvtq_m): Define polymorphic variant.
27877         (vabsq_m): Likewise.
27878         (vcmlaq): Likewise.
27879         (vcmlaq_rot180): Likewise.
27880         (vcmlaq_rot270): Likewise.
27881         (vcmlaq_rot90): Likewise.
27882         (vcmpeqq_m_n): Likewise.
27883         (vcmpgeq_m_n): Likewise.
27884         (vrndxq_m): Likewise.
27885         (vrndq_m): Likewise.
27886         (vrndpq_m): Likewise.
27887         (vcmpgtq_m_n): Likewise.
27888         (vcmpgtq_m): Likewise.
27889         (vcmpleq_m): Likewise.
27890         (vcmpleq_m_n): Likewise.
27891         (vcmpltq_m_n): Likewise.
27892         (vcmpltq_m): Likewise.
27893         (vcmpneq_m): Likewise.
27894         (vcmpneq_m_n): Likewise.
27895         (vcvtbq_m): Likewise.
27896         (vcvttq_m): Likewise.
27897         (vcvtmq_m): Likewise.
27898         (vcvtnq_m): Likewise.
27899         (vcvtpq_m): Likewise.
27900         (vdupq_m_n): Likewise.
27901         (vfmaq_n): Likewise.
27902         (vfmaq): Likewise.
27903         (vfmasq_n): Likewise.
27904         (vfmsq): Likewise.
27905         (vmaxnmaq_m): Likewise.
27906         (vmaxnmavq_m): Likewise.
27907         (vmaxnmvq_m): Likewise.
27908         (vmaxnmavq_p): Likewise.
27909         (vmaxnmvq_p): Likewise.
27910         (vminnmaq_m): Likewise.
27911         (vminnmavq_p): Likewise.
27912         (vminnmvq_p): Likewise.
27913         (vrndnq_m): Likewise.
27914         (vrndaq_m): Likewise.
27915         (vrndmq_m): Likewise.
27916         (vrev64q_m): Likewise.
27917         (vrev32q_m): Likewise.
27918         (vpselq): Likewise.
27919         (vnegq_m): Likewise.
27920         (vcmpgeq_m): Likewise.
27921         (vshrntq_n): Likewise.
27922         (vrshrntq_n): Likewise.
27923         (vmovlbq_m): Likewise.
27924         (vmovnbq_m): Likewise.
27925         (vmovntq_m): Likewise.
27926         (vmvnq_m_n): Likewise.
27927         (vmvnq_m): Likewise.
27928         (vshrnbq_n): Likewise.
27929         (vrshrnbq_n): Likewise.
27930         (vqshruntq_n): Likewise.
27931         (vrev16q_m): Likewise.
27932         (vqshrunbq_n): Likewise.
27933         (vqshrntq_n): Likewise.
27934         (vqrshruntq_n): Likewise.
27935         (vqrshrntq_n): Likewise.
27936         (vqshrnbq_n): Likewise.
27937         (vqmovuntq_m): Likewise.
27938         (vqmovntq_m): Likewise.
27939         (vqmovnbq_m): Likewise.
27940         (vorrq_m_n): Likewise.
27941         (vmovltq_m): Likewise.
27942         (vqmovunbq_m): Likewise.
27943         (vaddlvaq_p): Likewise.
27944         (vmlaldavaq): Likewise.
27945         (vmlaldavaxq): Likewise.
27946         (vmlaldavq_p): Likewise.
27947         (vmlaldavxq_p): Likewise.
27948         (vmlsldavaq): Likewise.
27949         (vmlsldavaxq): Likewise.
27950         (vmlsldavq_p): Likewise.
27951         (vmlsldavxq_p): Likewise.
27952         (vrmlaldavhaxq): Likewise.
27953         (vrmlaldavhq_p): Likewise.
27954         (vrmlaldavhxq_p): Likewise.
27955         (vrmlsldavhaq): Likewise.
27956         (vrmlsldavhaxq): Likewise.
27957         (vrmlsldavhq_p): Likewise.
27958         (vrmlsldavhxq_p): Likewise.
27959         * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_IMM_UNONE): Use
27960         builtin qualifier.
27961         (TERNOP_NONE_NONE_NONE_IMM): Likewise.
27962         (TERNOP_NONE_NONE_NONE_NONE): Likewise.
27963         (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
27964         (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
27965         (TERNOP_UNONE_UNONE_IMM_UNONE): Likewise.
27966         (TERNOP_UNONE_UNONE_NONE_IMM): Likewise.
27967         (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
27968         (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
27969         (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
27970         * config/arm/mve.md (MVE_constraint3): Define mode attribute iterator.
27971         (MVE_pred3): Likewise.
27972         (MVE_constraint1): Likewise.
27973         (MVE_pred1): Likewise.
27974         (VMLALDAVQ_P): Define iterator.
27975         (VQMOVNBQ_M): Likewise.
27976         (VMOVLTQ_M): Likewise.
27977         (VMOVNBQ_M): Likewise.
27978         (VRSHRNTQ_N): Likewise.
27979         (VORRQ_M_N): Likewise.
27980         (VREV32Q_M): Likewise.
27981         (VREV16Q_M): Likewise.
27982         (VQRSHRNTQ_N): Likewise.
27983         (VMOVNTQ_M): Likewise.
27984         (VMOVLBQ_M): Likewise.
27985         (VMLALDAVAQ): Likewise.
27986         (VQSHRNBQ_N): Likewise.
27987         (VSHRNBQ_N): Likewise.
27988         (VRSHRNBQ_N): Likewise.
27989         (VMLALDAVXQ_P): Likewise.
27990         (VQMOVNTQ_M): Likewise.
27991         (VMVNQ_M_N): Likewise.
27992         (VQSHRNTQ_N): Likewise.
27993         (VMLALDAVAXQ): Likewise.
27994         (VSHRNTQ_N): Likewise.
27995         (VCVTMQ_M): Likewise.
27996         (VCVTNQ_M): Likewise.
27997         (VCVTPQ_M): Likewise.
27998         (VCVTQ_M_N_FROM_F): Likewise.
27999         (VCVTQ_M_FROM_F): Likewise.
28000         (VRMLALDAVHQ_P): Likewise.
28001         (VADDLVAQ_P): Likewise.
28002         (mve_vrndq_m_f<mode>): Define RTL pattern.
28003         (mve_vabsq_m_f<mode>): Likewise.
28004         (mve_vaddlvaq_p_<supf>v4si): Likewise.
28005         (mve_vcmlaq_f<mode>): Likewise.
28006         (mve_vcmlaq_rot180_f<mode>): Likewise.
28007         (mve_vcmlaq_rot270_f<mode>): Likewise.
28008         (mve_vcmlaq_rot90_f<mode>): Likewise.
28009         (mve_vcmpeqq_m_n_f<mode>): Likewise.
28010         (mve_vcmpgeq_m_f<mode>): Likewise.
28011         (mve_vcmpgeq_m_n_f<mode>): Likewise.
28012         (mve_vcmpgtq_m_f<mode>): Likewise.
28013         (mve_vcmpgtq_m_n_f<mode>): Likewise.
28014         (mve_vcmpleq_m_f<mode>): Likewise.
28015         (mve_vcmpleq_m_n_f<mode>): Likewise.
28016         (mve_vcmpltq_m_f<mode>): Likewise.
28017         (mve_vcmpltq_m_n_f<mode>): Likewise.
28018         (mve_vcmpneq_m_f<mode>): Likewise.
28019         (mve_vcmpneq_m_n_f<mode>): Likewise.
28020         (mve_vcvtbq_m_f16_f32v8hf): Likewise.
28021         (mve_vcvtbq_m_f32_f16v4sf): Likewise.
28022         (mve_vcvttq_m_f16_f32v8hf): Likewise.
28023         (mve_vcvttq_m_f32_f16v4sf): Likewise.
28024         (mve_vdupq_m_n_f<mode>): Likewise.
28025         (mve_vfmaq_f<mode>): Likewise.
28026         (mve_vfmaq_n_f<mode>): Likewise.
28027         (mve_vfmasq_n_f<mode>): Likewise.
28028         (mve_vfmsq_f<mode>): Likewise.
28029         (mve_vmaxnmaq_m_f<mode>): Likewise.
28030         (mve_vmaxnmavq_p_f<mode>): Likewise.
28031         (mve_vmaxnmvq_p_f<mode>): Likewise.
28032         (mve_vminnmaq_m_f<mode>): Likewise.
28033         (mve_vminnmavq_p_f<mode>): Likewise.
28034         (mve_vminnmvq_p_f<mode>): Likewise.
28035         (mve_vmlaldavaq_<supf><mode>): Likewise.
28036         (mve_vmlaldavaxq_<supf><mode>): Likewise.
28037         (mve_vmlaldavq_p_<supf><mode>): Likewise.
28038         (mve_vmlaldavxq_p_<supf><mode>): Likewise.
28039         (mve_vmlsldavaq_s<mode>): Likewise.
28040         (mve_vmlsldavaxq_s<mode>): Likewise.
28041         (mve_vmlsldavq_p_s<mode>): Likewise.
28042         (mve_vmlsldavxq_p_s<mode>): Likewise.
28043         (mve_vmovlbq_m_<supf><mode>): Likewise.
28044         (mve_vmovltq_m_<supf><mode>): Likewise.
28045         (mve_vmovnbq_m_<supf><mode>): Likewise.
28046         (mve_vmovntq_m_<supf><mode>): Likewise.
28047         (mve_vmvnq_m_n_<supf><mode>): Likewise.
28048         (mve_vnegq_m_f<mode>): Likewise.
28049         (mve_vorrq_m_n_<supf><mode>): Likewise.
28050         (mve_vpselq_f<mode>): Likewise.
28051         (mve_vqmovnbq_m_<supf><mode>): Likewise.
28052         (mve_vqmovntq_m_<supf><mode>): Likewise.
28053         (mve_vqmovunbq_m_s<mode>): Likewise.
28054         (mve_vqmovuntq_m_s<mode>): Likewise.
28055         (mve_vqrshrntq_n_<supf><mode>): Likewise.
28056         (mve_vqrshruntq_n_s<mode>): Likewise.
28057         (mve_vqshrnbq_n_<supf><mode>): Likewise.
28058         (mve_vqshrntq_n_<supf><mode>): Likewise.
28059         (mve_vqshrunbq_n_s<mode>): Likewise.
28060         (mve_vqshruntq_n_s<mode>): Likewise.
28061         (mve_vrev32q_m_fv8hf): Likewise.
28062         (mve_vrev32q_m_<supf><mode>): Likewise.
28063         (mve_vrev64q_m_f<mode>): Likewise.
28064         (mve_vrmlaldavhaxq_sv4si): Likewise.
28065         (mve_vrmlaldavhxq_p_sv4si): Likewise.
28066         (mve_vrmlsldavhaxq_sv4si): Likewise.
28067         (mve_vrmlsldavhq_p_sv4si): Likewise.
28068         (mve_vrmlsldavhxq_p_sv4si): Likewise.
28069         (mve_vrndaq_m_f<mode>): Likewise.
28070         (mve_vrndmq_m_f<mode>): Likewise.
28071         (mve_vrndnq_m_f<mode>): Likewise.
28072         (mve_vrndpq_m_f<mode>): Likewise.
28073         (mve_vrndxq_m_f<mode>): Likewise.
28074         (mve_vrshrnbq_n_<supf><mode>): Likewise.
28075         (mve_vrshrntq_n_<supf><mode>): Likewise.
28076         (mve_vshrnbq_n_<supf><mode>): Likewise.
28077         (mve_vshrntq_n_<supf><mode>): Likewise.
28078         (mve_vcvtmq_m_<supf><mode>): Likewise.
28079         (mve_vcvtpq_m_<supf><mode>): Likewise.
28080         (mve_vcvtnq_m_<supf><mode>): Likewise.
28081         (mve_vcvtq_m_n_from_f_<supf><mode>): Likewise.
28082         (mve_vrev16q_m_<supf>v16qi): Likewise.
28083         (mve_vcvtq_m_from_f_<supf><mode>): Likewise.
28084         (mve_vrmlaldavhq_p_<supf>v4si): Likewise.
28085         (mve_vrmlsldavhaq_sv4si): Likewise.
28087 2020-03-18  Andre Vieira  <andre.simoesdiasvieira@arm.com>
28088             Mihail Ionescu  <mihail.ionescu@arm.com>
28089             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
28091         * config/arm/arm_mve.h (vpselq_u8): Define macro.
28092         (vpselq_s8): Likewise.
28093         (vrev64q_m_u8): Likewise.
28094         (vqrdmlashq_n_u8): Likewise.
28095         (vqrdmlahq_n_u8): Likewise.
28096         (vqdmlahq_n_u8): Likewise.
28097         (vmvnq_m_u8): Likewise.
28098         (vmlasq_n_u8): Likewise.
28099         (vmlaq_n_u8): Likewise.
28100         (vmladavq_p_u8): Likewise.
28101         (vmladavaq_u8): Likewise.
28102         (vminvq_p_u8): Likewise.
28103         (vmaxvq_p_u8): Likewise.
28104         (vdupq_m_n_u8): Likewise.
28105         (vcmpneq_m_u8): Likewise.
28106         (vcmpneq_m_n_u8): Likewise.
28107         (vcmphiq_m_u8): Likewise.
28108         (vcmphiq_m_n_u8): Likewise.
28109         (vcmpeqq_m_u8): Likewise.
28110         (vcmpeqq_m_n_u8): Likewise.
28111         (vcmpcsq_m_u8): Likewise.
28112         (vcmpcsq_m_n_u8): Likewise.
28113         (vclzq_m_u8): Likewise.
28114         (vaddvaq_p_u8): Likewise.
28115         (vsriq_n_u8): Likewise.
28116         (vsliq_n_u8): Likewise.
28117         (vshlq_m_r_u8): Likewise.
28118         (vrshlq_m_n_u8): Likewise.
28119         (vqshlq_m_r_u8): Likewise.
28120         (vqrshlq_m_n_u8): Likewise.
28121         (vminavq_p_s8): Likewise.
28122         (vminaq_m_s8): Likewise.
28123         (vmaxavq_p_s8): Likewise.
28124         (vmaxaq_m_s8): Likewise.
28125         (vcmpneq_m_s8): Likewise.
28126         (vcmpneq_m_n_s8): Likewise.
28127         (vcmpltq_m_s8): Likewise.
28128         (vcmpltq_m_n_s8): Likewise.
28129         (vcmpleq_m_s8): Likewise.
28130         (vcmpleq_m_n_s8): Likewise.
28131         (vcmpgtq_m_s8): Likewise.
28132         (vcmpgtq_m_n_s8): Likewise.
28133         (vcmpgeq_m_s8): Likewise.
28134         (vcmpgeq_m_n_s8): Likewise.
28135         (vcmpeqq_m_s8): Likewise.
28136         (vcmpeqq_m_n_s8): Likewise.
28137         (vshlq_m_r_s8): Likewise.
28138         (vrshlq_m_n_s8): Likewise.
28139         (vrev64q_m_s8): Likewise.
28140         (vqshlq_m_r_s8): Likewise.
28141         (vqrshlq_m_n_s8): Likewise.
28142         (vqnegq_m_s8): Likewise.
28143         (vqabsq_m_s8): Likewise.
28144         (vnegq_m_s8): Likewise.
28145         (vmvnq_m_s8): Likewise.
28146         (vmlsdavxq_p_s8): Likewise.
28147         (vmlsdavq_p_s8): Likewise.
28148         (vmladavxq_p_s8): Likewise.
28149         (vmladavq_p_s8): Likewise.
28150         (vminvq_p_s8): Likewise.
28151         (vmaxvq_p_s8): Likewise.
28152         (vdupq_m_n_s8): Likewise.
28153         (vclzq_m_s8): Likewise.
28154         (vclsq_m_s8): Likewise.
28155         (vaddvaq_p_s8): Likewise.
28156         (vabsq_m_s8): Likewise.
28157         (vqrdmlsdhxq_s8): Likewise.
28158         (vqrdmlsdhq_s8): Likewise.
28159         (vqrdmlashq_n_s8): Likewise.
28160         (vqrdmlahq_n_s8): Likewise.
28161         (vqrdmladhxq_s8): Likewise.
28162         (vqrdmladhq_s8): Likewise.
28163         (vqdmlsdhxq_s8): Likewise.
28164         (vqdmlsdhq_s8): Likewise.
28165         (vqdmlahq_n_s8): Likewise.
28166         (vqdmladhxq_s8): Likewise.
28167         (vqdmladhq_s8): Likewise.
28168         (vmlsdavaxq_s8): Likewise.
28169         (vmlsdavaq_s8): Likewise.
28170         (vmlasq_n_s8): Likewise.
28171         (vmlaq_n_s8): Likewise.
28172         (vmladavaxq_s8): Likewise.
28173         (vmladavaq_s8): Likewise.
28174         (vsriq_n_s8): Likewise.
28175         (vsliq_n_s8): Likewise.
28176         (vpselq_u16): Likewise.
28177         (vpselq_s16): Likewise.
28178         (vrev64q_m_u16): Likewise.
28179         (vqrdmlashq_n_u16): Likewise.
28180         (vqrdmlahq_n_u16): Likewise.
28181         (vqdmlahq_n_u16): Likewise.
28182         (vmvnq_m_u16): Likewise.
28183         (vmlasq_n_u16): Likewise.
28184         (vmlaq_n_u16): Likewise.
28185         (vmladavq_p_u16): Likewise.
28186         (vmladavaq_u16): Likewise.
28187         (vminvq_p_u16): Likewise.
28188         (vmaxvq_p_u16): Likewise.
28189         (vdupq_m_n_u16): Likewise.
28190         (vcmpneq_m_u16): Likewise.
28191         (vcmpneq_m_n_u16): Likewise.
28192         (vcmphiq_m_u16): Likewise.
28193         (vcmphiq_m_n_u16): Likewise.
28194         (vcmpeqq_m_u16): Likewise.
28195         (vcmpeqq_m_n_u16): Likewise.
28196         (vcmpcsq_m_u16): Likewise.
28197         (vcmpcsq_m_n_u16): Likewise.
28198         (vclzq_m_u16): Likewise.
28199         (vaddvaq_p_u16): Likewise.
28200         (vsriq_n_u16): Likewise.
28201         (vsliq_n_u16): Likewise.
28202         (vshlq_m_r_u16): Likewise.
28203         (vrshlq_m_n_u16): Likewise.
28204         (vqshlq_m_r_u16): Likewise.
28205         (vqrshlq_m_n_u16): Likewise.
28206         (vminavq_p_s16): Likewise.
28207         (vminaq_m_s16): Likewise.
28208         (vmaxavq_p_s16): Likewise.
28209         (vmaxaq_m_s16): Likewise.
28210         (vcmpneq_m_s16): Likewise.
28211         (vcmpneq_m_n_s16): Likewise.
28212         (vcmpltq_m_s16): Likewise.
28213         (vcmpltq_m_n_s16): Likewise.
28214         (vcmpleq_m_s16): Likewise.
28215         (vcmpleq_m_n_s16): Likewise.
28216         (vcmpgtq_m_s16): Likewise.
28217         (vcmpgtq_m_n_s16): Likewise.
28218         (vcmpgeq_m_s16): Likewise.
28219         (vcmpgeq_m_n_s16): Likewise.
28220         (vcmpeqq_m_s16): Likewise.
28221         (vcmpeqq_m_n_s16): Likewise.
28222         (vshlq_m_r_s16): Likewise.
28223         (vrshlq_m_n_s16): Likewise.
28224         (vrev64q_m_s16): Likewise.
28225         (vqshlq_m_r_s16): Likewise.
28226         (vqrshlq_m_n_s16): Likewise.
28227         (vqnegq_m_s16): Likewise.
28228         (vqabsq_m_s16): Likewise.
28229         (vnegq_m_s16): Likewise.
28230         (vmvnq_m_s16): Likewise.
28231         (vmlsdavxq_p_s16): Likewise.
28232         (vmlsdavq_p_s16): Likewise.
28233         (vmladavxq_p_s16): Likewise.
28234         (vmladavq_p_s16): Likewise.
28235         (vminvq_p_s16): Likewise.
28236         (vmaxvq_p_s16): Likewise.
28237         (vdupq_m_n_s16): Likewise.
28238         (vclzq_m_s16): Likewise.
28239         (vclsq_m_s16): Likewise.
28240         (vaddvaq_p_s16): Likewise.
28241         (vabsq_m_s16): Likewise.
28242         (vqrdmlsdhxq_s16): Likewise.
28243         (vqrdmlsdhq_s16): Likewise.
28244         (vqrdmlashq_n_s16): Likewise.
28245         (vqrdmlahq_n_s16): Likewise.
28246         (vqrdmladhxq_s16): Likewise.
28247         (vqrdmladhq_s16): Likewise.
28248         (vqdmlsdhxq_s16): Likewise.
28249         (vqdmlsdhq_s16): Likewise.
28250         (vqdmlahq_n_s16): Likewise.
28251         (vqdmladhxq_s16): Likewise.
28252         (vqdmladhq_s16): Likewise.
28253         (vmlsdavaxq_s16): Likewise.
28254         (vmlsdavaq_s16): Likewise.
28255         (vmlasq_n_s16): Likewise.
28256         (vmlaq_n_s16): Likewise.
28257         (vmladavaxq_s16): Likewise.
28258         (vmladavaq_s16): Likewise.
28259         (vsriq_n_s16): Likewise.
28260         (vsliq_n_s16): Likewise.
28261         (vpselq_u32): Likewise.
28262         (vpselq_s32): Likewise.
28263         (vrev64q_m_u32): Likewise.
28264         (vqrdmlashq_n_u32): Likewise.
28265         (vqrdmlahq_n_u32): Likewise.
28266         (vqdmlahq_n_u32): Likewise.
28267         (vmvnq_m_u32): Likewise.
28268         (vmlasq_n_u32): Likewise.
28269         (vmlaq_n_u32): Likewise.
28270         (vmladavq_p_u32): Likewise.
28271         (vmladavaq_u32): Likewise.
28272         (vminvq_p_u32): Likewise.
28273         (vmaxvq_p_u32): Likewise.
28274         (vdupq_m_n_u32): Likewise.
28275         (vcmpneq_m_u32): Likewise.
28276         (vcmpneq_m_n_u32): Likewise.
28277         (vcmphiq_m_u32): Likewise.
28278         (vcmphiq_m_n_u32): Likewise.
28279         (vcmpeqq_m_u32): Likewise.
28280         (vcmpeqq_m_n_u32): Likewise.
28281         (vcmpcsq_m_u32): Likewise.
28282         (vcmpcsq_m_n_u32): Likewise.
28283         (vclzq_m_u32): Likewise.
28284         (vaddvaq_p_u32): Likewise.
28285         (vsriq_n_u32): Likewise.
28286         (vsliq_n_u32): Likewise.
28287         (vshlq_m_r_u32): Likewise.
28288         (vrshlq_m_n_u32): Likewise.
28289         (vqshlq_m_r_u32): Likewise.
28290         (vqrshlq_m_n_u32): Likewise.
28291         (vminavq_p_s32): Likewise.
28292         (vminaq_m_s32): Likewise.
28293         (vmaxavq_p_s32): Likewise.
28294         (vmaxaq_m_s32): Likewise.
28295         (vcmpneq_m_s32): Likewise.
28296         (vcmpneq_m_n_s32): Likewise.
28297         (vcmpltq_m_s32): Likewise.
28298         (vcmpltq_m_n_s32): Likewise.
28299         (vcmpleq_m_s32): Likewise.
28300         (vcmpleq_m_n_s32): Likewise.
28301         (vcmpgtq_m_s32): Likewise.
28302         (vcmpgtq_m_n_s32): Likewise.
28303         (vcmpgeq_m_s32): Likewise.
28304         (vcmpgeq_m_n_s32): Likewise.
28305         (vcmpeqq_m_s32): Likewise.
28306         (vcmpeqq_m_n_s32): Likewise.
28307         (vshlq_m_r_s32): Likewise.
28308         (vrshlq_m_n_s32): Likewise.
28309         (vrev64q_m_s32): Likewise.
28310         (vqshlq_m_r_s32): Likewise.
28311         (vqrshlq_m_n_s32): Likewise.
28312         (vqnegq_m_s32): Likewise.
28313         (vqabsq_m_s32): Likewise.
28314         (vnegq_m_s32): Likewise.
28315         (vmvnq_m_s32): Likewise.
28316         (vmlsdavxq_p_s32): Likewise.
28317         (vmlsdavq_p_s32): Likewise.
28318         (vmladavxq_p_s32): Likewise.
28319         (vmladavq_p_s32): Likewise.
28320         (vminvq_p_s32): Likewise.
28321         (vmaxvq_p_s32): Likewise.
28322         (vdupq_m_n_s32): Likewise.
28323         (vclzq_m_s32): Likewise.
28324         (vclsq_m_s32): Likewise.
28325         (vaddvaq_p_s32): Likewise.
28326         (vabsq_m_s32): Likewise.
28327         (vqrdmlsdhxq_s32): Likewise.
28328         (vqrdmlsdhq_s32): Likewise.
28329         (vqrdmlashq_n_s32): Likewise.
28330         (vqrdmlahq_n_s32): Likewise.
28331         (vqrdmladhxq_s32): Likewise.
28332         (vqrdmladhq_s32): Likewise.
28333         (vqdmlsdhxq_s32): Likewise.
28334         (vqdmlsdhq_s32): Likewise.
28335         (vqdmlahq_n_s32): Likewise.
28336         (vqdmladhxq_s32): Likewise.
28337         (vqdmladhq_s32): Likewise.
28338         (vmlsdavaxq_s32): Likewise.
28339         (vmlsdavaq_s32): Likewise.
28340         (vmlasq_n_s32): Likewise.
28341         (vmlaq_n_s32): Likewise.
28342         (vmladavaxq_s32): Likewise.
28343         (vmladavaq_s32): Likewise.
28344         (vsriq_n_s32): Likewise.
28345         (vsliq_n_s32): Likewise.
28346         (vpselq_u64): Likewise.
28347         (vpselq_s64): Likewise.
28348         (__arm_vpselq_u8): Define intrinsic.
28349         (__arm_vpselq_s8): Likewise.
28350         (__arm_vrev64q_m_u8): Likewise.
28351         (__arm_vqrdmlashq_n_u8): Likewise.
28352         (__arm_vqrdmlahq_n_u8): Likewise.
28353         (__arm_vqdmlahq_n_u8): Likewise.
28354         (__arm_vmvnq_m_u8): Likewise.
28355         (__arm_vmlasq_n_u8): Likewise.
28356         (__arm_vmlaq_n_u8): Likewise.
28357         (__arm_vmladavq_p_u8): Likewise.
28358         (__arm_vmladavaq_u8): Likewise.
28359         (__arm_vminvq_p_u8): Likewise.
28360         (__arm_vmaxvq_p_u8): Likewise.
28361         (__arm_vdupq_m_n_u8): Likewise.
28362         (__arm_vcmpneq_m_u8): Likewise.
28363         (__arm_vcmpneq_m_n_u8): Likewise.
28364         (__arm_vcmphiq_m_u8): Likewise.
28365         (__arm_vcmphiq_m_n_u8): Likewise.
28366         (__arm_vcmpeqq_m_u8): Likewise.
28367         (__arm_vcmpeqq_m_n_u8): Likewise.
28368         (__arm_vcmpcsq_m_u8): Likewise.
28369         (__arm_vcmpcsq_m_n_u8): Likewise.
28370         (__arm_vclzq_m_u8): Likewise.
28371         (__arm_vaddvaq_p_u8): Likewise.
28372         (__arm_vsriq_n_u8): Likewise.
28373         (__arm_vsliq_n_u8): Likewise.
28374         (__arm_vshlq_m_r_u8): Likewise.
28375         (__arm_vrshlq_m_n_u8): Likewise.
28376         (__arm_vqshlq_m_r_u8): Likewise.
28377         (__arm_vqrshlq_m_n_u8): Likewise.
28378         (__arm_vminavq_p_s8): Likewise.
28379         (__arm_vminaq_m_s8): Likewise.
28380         (__arm_vmaxavq_p_s8): Likewise.
28381         (__arm_vmaxaq_m_s8): Likewise.
28382         (__arm_vcmpneq_m_s8): Likewise.
28383         (__arm_vcmpneq_m_n_s8): Likewise.
28384         (__arm_vcmpltq_m_s8): Likewise.
28385         (__arm_vcmpltq_m_n_s8): Likewise.
28386         (__arm_vcmpleq_m_s8): Likewise.
28387         (__arm_vcmpleq_m_n_s8): Likewise.
28388         (__arm_vcmpgtq_m_s8): Likewise.
28389         (__arm_vcmpgtq_m_n_s8): Likewise.
28390         (__arm_vcmpgeq_m_s8): Likewise.
28391         (__arm_vcmpgeq_m_n_s8): Likewise.
28392         (__arm_vcmpeqq_m_s8): Likewise.
28393         (__arm_vcmpeqq_m_n_s8): Likewise.
28394         (__arm_vshlq_m_r_s8): Likewise.
28395         (__arm_vrshlq_m_n_s8): Likewise.
28396         (__arm_vrev64q_m_s8): Likewise.
28397         (__arm_vqshlq_m_r_s8): Likewise.
28398         (__arm_vqrshlq_m_n_s8): Likewise.
28399         (__arm_vqnegq_m_s8): Likewise.
28400         (__arm_vqabsq_m_s8): Likewise.
28401         (__arm_vnegq_m_s8): Likewise.
28402         (__arm_vmvnq_m_s8): Likewise.
28403         (__arm_vmlsdavxq_p_s8): Likewise.
28404         (__arm_vmlsdavq_p_s8): Likewise.
28405         (__arm_vmladavxq_p_s8): Likewise.
28406         (__arm_vmladavq_p_s8): Likewise.
28407         (__arm_vminvq_p_s8): Likewise.
28408         (__arm_vmaxvq_p_s8): Likewise.
28409         (__arm_vdupq_m_n_s8): Likewise.
28410         (__arm_vclzq_m_s8): Likewise.
28411         (__arm_vclsq_m_s8): Likewise.
28412         (__arm_vaddvaq_p_s8): Likewise.
28413         (__arm_vabsq_m_s8): Likewise.
28414         (__arm_vqrdmlsdhxq_s8): Likewise.
28415         (__arm_vqrdmlsdhq_s8): Likewise.
28416         (__arm_vqrdmlashq_n_s8): Likewise.
28417         (__arm_vqrdmlahq_n_s8): Likewise.
28418         (__arm_vqrdmladhxq_s8): Likewise.
28419         (__arm_vqrdmladhq_s8): Likewise.
28420         (__arm_vqdmlsdhxq_s8): Likewise.
28421         (__arm_vqdmlsdhq_s8): Likewise.
28422         (__arm_vqdmlahq_n_s8): Likewise.
28423         (__arm_vqdmladhxq_s8): Likewise.
28424         (__arm_vqdmladhq_s8): Likewise.
28425         (__arm_vmlsdavaxq_s8): Likewise.
28426         (__arm_vmlsdavaq_s8): Likewise.
28427         (__arm_vmlasq_n_s8): Likewise.
28428         (__arm_vmlaq_n_s8): Likewise.
28429         (__arm_vmladavaxq_s8): Likewise.
28430         (__arm_vmladavaq_s8): Likewise.
28431         (__arm_vsriq_n_s8): Likewise.
28432         (__arm_vsliq_n_s8): Likewise.
28433         (__arm_vpselq_u16): Likewise.
28434         (__arm_vpselq_s16): Likewise.
28435         (__arm_vrev64q_m_u16): Likewise.
28436         (__arm_vqrdmlashq_n_u16): Likewise.
28437         (__arm_vqrdmlahq_n_u16): Likewise.
28438         (__arm_vqdmlahq_n_u16): Likewise.
28439         (__arm_vmvnq_m_u16): Likewise.
28440         (__arm_vmlasq_n_u16): Likewise.
28441         (__arm_vmlaq_n_u16): Likewise.
28442         (__arm_vmladavq_p_u16): Likewise.
28443         (__arm_vmladavaq_u16): Likewise.
28444         (__arm_vminvq_p_u16): Likewise.
28445         (__arm_vmaxvq_p_u16): Likewise.
28446         (__arm_vdupq_m_n_u16): Likewise.
28447         (__arm_vcmpneq_m_u16): Likewise.
28448         (__arm_vcmpneq_m_n_u16): Likewise.
28449         (__arm_vcmphiq_m_u16): Likewise.
28450         (__arm_vcmphiq_m_n_u16): Likewise.
28451         (__arm_vcmpeqq_m_u16): Likewise.
28452         (__arm_vcmpeqq_m_n_u16): Likewise.
28453         (__arm_vcmpcsq_m_u16): Likewise.
28454         (__arm_vcmpcsq_m_n_u16): Likewise.
28455         (__arm_vclzq_m_u16): Likewise.
28456         (__arm_vaddvaq_p_u16): Likewise.
28457         (__arm_vsriq_n_u16): Likewise.
28458         (__arm_vsliq_n_u16): Likewise.
28459         (__arm_vshlq_m_r_u16): Likewise.
28460         (__arm_vrshlq_m_n_u16): Likewise.
28461         (__arm_vqshlq_m_r_u16): Likewise.
28462         (__arm_vqrshlq_m_n_u16): Likewise.
28463         (__arm_vminavq_p_s16): Likewise.
28464         (__arm_vminaq_m_s16): Likewise.
28465         (__arm_vmaxavq_p_s16): Likewise.
28466         (__arm_vmaxaq_m_s16): Likewise.
28467         (__arm_vcmpneq_m_s16): Likewise.
28468         (__arm_vcmpneq_m_n_s16): Likewise.
28469         (__arm_vcmpltq_m_s16): Likewise.
28470         (__arm_vcmpltq_m_n_s16): Likewise.
28471         (__arm_vcmpleq_m_s16): Likewise.
28472         (__arm_vcmpleq_m_n_s16): Likewise.
28473         (__arm_vcmpgtq_m_s16): Likewise.
28474         (__arm_vcmpgtq_m_n_s16): Likewise.
28475         (__arm_vcmpgeq_m_s16): Likewise.
28476         (__arm_vcmpgeq_m_n_s16): Likewise.
28477         (__arm_vcmpeqq_m_s16): Likewise.
28478         (__arm_vcmpeqq_m_n_s16): Likewise.
28479         (__arm_vshlq_m_r_s16): Likewise.
28480         (__arm_vrshlq_m_n_s16): Likewise.
28481         (__arm_vrev64q_m_s16): Likewise.
28482         (__arm_vqshlq_m_r_s16): Likewise.
28483         (__arm_vqrshlq_m_n_s16): Likewise.
28484         (__arm_vqnegq_m_s16): Likewise.
28485         (__arm_vqabsq_m_s16): Likewise.
28486         (__arm_vnegq_m_s16): Likewise.
28487         (__arm_vmvnq_m_s16): Likewise.
28488         (__arm_vmlsdavxq_p_s16): Likewise.
28489         (__arm_vmlsdavq_p_s16): Likewise.
28490         (__arm_vmladavxq_p_s16): Likewise.
28491         (__arm_vmladavq_p_s16): Likewise.
28492         (__arm_vminvq_p_s16): Likewise.
28493         (__arm_vmaxvq_p_s16): Likewise.
28494         (__arm_vdupq_m_n_s16): Likewise.
28495         (__arm_vclzq_m_s16): Likewise.
28496         (__arm_vclsq_m_s16): Likewise.
28497         (__arm_vaddvaq_p_s16): Likewise.
28498         (__arm_vabsq_m_s16): Likewise.
28499         (__arm_vqrdmlsdhxq_s16): Likewise.
28500         (__arm_vqrdmlsdhq_s16): Likewise.
28501         (__arm_vqrdmlashq_n_s16): Likewise.
28502         (__arm_vqrdmlahq_n_s16): Likewise.
28503         (__arm_vqrdmladhxq_s16): Likewise.
28504         (__arm_vqrdmladhq_s16): Likewise.
28505         (__arm_vqdmlsdhxq_s16): Likewise.
28506         (__arm_vqdmlsdhq_s16): Likewise.
28507         (__arm_vqdmlahq_n_s16): Likewise.
28508         (__arm_vqdmladhxq_s16): Likewise.
28509         (__arm_vqdmladhq_s16): Likewise.
28510         (__arm_vmlsdavaxq_s16): Likewise.
28511         (__arm_vmlsdavaq_s16): Likewise.
28512         (__arm_vmlasq_n_s16): Likewise.
28513         (__arm_vmlaq_n_s16): Likewise.
28514         (__arm_vmladavaxq_s16): Likewise.
28515         (__arm_vmladavaq_s16): Likewise.
28516         (__arm_vsriq_n_s16): Likewise.
28517         (__arm_vsliq_n_s16): Likewise.
28518         (__arm_vpselq_u32): Likewise.
28519         (__arm_vpselq_s32): Likewise.
28520         (__arm_vrev64q_m_u32): Likewise.
28521         (__arm_vqrdmlashq_n_u32): Likewise.
28522         (__arm_vqrdmlahq_n_u32): Likewise.
28523         (__arm_vqdmlahq_n_u32): Likewise.
28524         (__arm_vmvnq_m_u32): Likewise.
28525         (__arm_vmlasq_n_u32): Likewise.
28526         (__arm_vmlaq_n_u32): Likewise.
28527         (__arm_vmladavq_p_u32): Likewise.
28528         (__arm_vmladavaq_u32): Likewise.
28529         (__arm_vminvq_p_u32): Likewise.
28530         (__arm_vmaxvq_p_u32): Likewise.
28531         (__arm_vdupq_m_n_u32): Likewise.
28532         (__arm_vcmpneq_m_u32): Likewise.
28533         (__arm_vcmpneq_m_n_u32): Likewise.
28534         (__arm_vcmphiq_m_u32): Likewise.
28535         (__arm_vcmphiq_m_n_u32): Likewise.
28536         (__arm_vcmpeqq_m_u32): Likewise.
28537         (__arm_vcmpeqq_m_n_u32): Likewise.
28538         (__arm_vcmpcsq_m_u32): Likewise.
28539         (__arm_vcmpcsq_m_n_u32): Likewise.
28540         (__arm_vclzq_m_u32): Likewise.
28541         (__arm_vaddvaq_p_u32): Likewise.
28542         (__arm_vsriq_n_u32): Likewise.
28543         (__arm_vsliq_n_u32): Likewise.
28544         (__arm_vshlq_m_r_u32): Likewise.
28545         (__arm_vrshlq_m_n_u32): Likewise.
28546         (__arm_vqshlq_m_r_u32): Likewise.
28547         (__arm_vqrshlq_m_n_u32): Likewise.
28548         (__arm_vminavq_p_s32): Likewise.
28549         (__arm_vminaq_m_s32): Likewise.
28550         (__arm_vmaxavq_p_s32): Likewise.
28551         (__arm_vmaxaq_m_s32): Likewise.
28552         (__arm_vcmpneq_m_s32): Likewise.
28553         (__arm_vcmpneq_m_n_s32): Likewise.
28554         (__arm_vcmpltq_m_s32): Likewise.
28555         (__arm_vcmpltq_m_n_s32): Likewise.
28556         (__arm_vcmpleq_m_s32): Likewise.
28557         (__arm_vcmpleq_m_n_s32): Likewise.
28558         (__arm_vcmpgtq_m_s32): Likewise.
28559         (__arm_vcmpgtq_m_n_s32): Likewise.
28560         (__arm_vcmpgeq_m_s32): Likewise.
28561         (__arm_vcmpgeq_m_n_s32): Likewise.
28562         (__arm_vcmpeqq_m_s32): Likewise.
28563         (__arm_vcmpeqq_m_n_s32): Likewise.
28564         (__arm_vshlq_m_r_s32): Likewise.
28565         (__arm_vrshlq_m_n_s32): Likewise.
28566         (__arm_vrev64q_m_s32): Likewise.
28567         (__arm_vqshlq_m_r_s32): Likewise.
28568         (__arm_vqrshlq_m_n_s32): Likewise.
28569         (__arm_vqnegq_m_s32): Likewise.
28570         (__arm_vqabsq_m_s32): Likewise.
28571         (__arm_vnegq_m_s32): Likewise.
28572         (__arm_vmvnq_m_s32): Likewise.
28573         (__arm_vmlsdavxq_p_s32): Likewise.
28574         (__arm_vmlsdavq_p_s32): Likewise.
28575         (__arm_vmladavxq_p_s32): Likewise.
28576         (__arm_vmladavq_p_s32): Likewise.
28577         (__arm_vminvq_p_s32): Likewise.
28578         (__arm_vmaxvq_p_s32): Likewise.
28579         (__arm_vdupq_m_n_s32): Likewise.
28580         (__arm_vclzq_m_s32): Likewise.
28581         (__arm_vclsq_m_s32): Likewise.
28582         (__arm_vaddvaq_p_s32): Likewise.
28583         (__arm_vabsq_m_s32): Likewise.
28584         (__arm_vqrdmlsdhxq_s32): Likewise.
28585         (__arm_vqrdmlsdhq_s32): Likewise.
28586         (__arm_vqrdmlashq_n_s32): Likewise.
28587         (__arm_vqrdmlahq_n_s32): Likewise.
28588         (__arm_vqrdmladhxq_s32): Likewise.
28589         (__arm_vqrdmladhq_s32): Likewise.
28590         (__arm_vqdmlsdhxq_s32): Likewise.
28591         (__arm_vqdmlsdhq_s32): Likewise.
28592         (__arm_vqdmlahq_n_s32): Likewise.
28593         (__arm_vqdmladhxq_s32): Likewise.
28594         (__arm_vqdmladhq_s32): Likewise.
28595         (__arm_vmlsdavaxq_s32): Likewise.
28596         (__arm_vmlsdavaq_s32): Likewise.
28597         (__arm_vmlasq_n_s32): Likewise.
28598         (__arm_vmlaq_n_s32): Likewise.
28599         (__arm_vmladavaxq_s32): Likewise.
28600         (__arm_vmladavaq_s32): Likewise.
28601         (__arm_vsriq_n_s32): Likewise.
28602         (__arm_vsliq_n_s32): Likewise.
28603         (__arm_vpselq_u64): Likewise.
28604         (__arm_vpselq_s64): Likewise.
28605         (vcmpneq_m_n): Define polymorphic variant.
28606         (vcmpneq_m): Likewise.
28607         (vqrdmlsdhq): Likewise.
28608         (vqrdmlsdhxq): Likewise.
28609         (vqrshlq_m_n): Likewise.
28610         (vqshlq_m_r): Likewise.
28611         (vrev64q_m): Likewise.
28612         (vrshlq_m_n): Likewise.
28613         (vshlq_m_r): Likewise.
28614         (vsliq_n): Likewise.
28615         (vsriq_n): Likewise.
28616         (vqrdmlashq_n): Likewise.
28617         (vqrdmlahq): Likewise.
28618         (vqrdmladhxq): Likewise.
28619         (vqrdmladhq): Likewise.
28620         (vqnegq_m): Likewise.
28621         (vqdmlsdhxq): Likewise.
28622         (vabsq_m): Likewise.
28623         (vclsq_m): Likewise.
28624         (vclzq_m): Likewise.
28625         (vcmpgeq_m): Likewise.
28626         (vcmpgeq_m_n): Likewise.
28627         (vdupq_m_n): Likewise.
28628         (vmaxaq_m): Likewise.
28629         (vmlaq_n): Likewise.
28630         (vmlasq_n): Likewise.
28631         (vmvnq_m): Likewise.
28632         (vnegq_m): Likewise.
28633         (vpselq): Likewise.
28634         (vqdmlahq_n): Likewise.
28635         (vqrdmlahq_n): Likewise.
28636         (vqdmlsdhq): Likewise.
28637         (vqdmladhq): Likewise.
28638         (vqabsq_m): Likewise.
28639         (vminaq_m): Likewise.
28640         (vrmlaldavhaq): Likewise.
28641         (vmlsdavxq_p): Likewise.
28642         (vmlsdavq_p): Likewise. 
28643         (vmlsdavaxq): Likewise. 
28644         (vmlsdavaq): Likewise.  
28645         (vaddvaq_p): Likewise.  
28646         (vcmpcsq_m_n): Likewise.        
28647         (vcmpcsq_m): Likewise.  
28648         (vcmpeqq_m_n): Likewise.        
28649         (vcmpeqq_m): Likewise.  
28650         (vmladavxq_p): Likewise.        
28651         (vmladavq_p): Likewise. 
28652         (vmladavaxq): Likewise. 
28653         (vmladavaq): Likewise.  
28654         (vminvq_p): Likewise.   
28655         (vminavq_p): Likewise.  
28656         (vmaxvq_p): Likewise.   
28657         (vmaxavq_p): Likewise.  
28658         (vcmpltq_m_n): Likewise.        
28659         (vcmpltq_m): Likewise.  
28660         (vcmpleq_m): Likewise.  
28661         (vcmpleq_m_n): Likewise.        
28662         (vcmphiq_m_n): Likewise.        
28663         (vcmphiq_m): Likewise.  
28664         (vcmpgtq_m_n): Likewise.        
28665         (vcmpgtq_m): Likewise.  
28666         * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_NONE_IMM): Use
28667         builtin qualifier.
28668         (TERNOP_NONE_NONE_NONE_NONE): Likewise.
28669         (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
28670         (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
28671         (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
28672         (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
28673         (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
28674         * config/arm/constraints.md (Rc): Define constraint to check constant is
28675         in the range of 0 to 15.
28676         (Re): Define constraint to check constant is in the range of 0 to 31.
28677         * config/arm/mve.md (VADDVAQ_P): Define iterator.
28678         (VCLZQ_M): Likewise.
28679         (VCMPEQQ_M_N): Likewise.
28680         (VCMPEQQ_M): Likewise.
28681         (VCMPNEQ_M_N): Likewise.
28682         (VCMPNEQ_M): Likewise.
28683         (VDUPQ_M_N): Likewise.
28684         (VMAXVQ_P): Likewise.
28685         (VMINVQ_P): Likewise.
28686         (VMLADAVAQ): Likewise.
28687         (VMLADAVQ_P): Likewise.
28688         (VMLAQ_N): Likewise.
28689         (VMLASQ_N): Likewise.
28690         (VMVNQ_M): Likewise.
28691         (VPSELQ): Likewise.
28692         (VQDMLAHQ_N): Likewise.
28693         (VQRDMLAHQ_N): Likewise.
28694         (VQRDMLASHQ_N): Likewise.
28695         (VQRSHLQ_M_N): Likewise.
28696         (VQSHLQ_M_R): Likewise.
28697         (VREV64Q_M): Likewise.
28698         (VRSHLQ_M_N): Likewise.
28699         (VSHLQ_M_R): Likewise.
28700         (VSLIQ_N): Likewise.
28701         (VSRIQ_N): Likewise.
28702         (mve_vabsq_m_s<mode>): Define RTL pattern.
28703         (mve_vaddvaq_p_<supf><mode>): Likewise.
28704         (mve_vclsq_m_s<mode>): Likewise.
28705         (mve_vclzq_m_<supf><mode>): Likewise.
28706         (mve_vcmpcsq_m_n_u<mode>): Likewise.
28707         (mve_vcmpcsq_m_u<mode>): Likewise.
28708         (mve_vcmpeqq_m_n_<supf><mode>): Likewise.
28709         (mve_vcmpeqq_m_<supf><mode>): Likewise.
28710         (mve_vcmpgeq_m_n_s<mode>): Likewise.
28711         (mve_vcmpgeq_m_s<mode>): Likewise.
28712         (mve_vcmpgtq_m_n_s<mode>): Likewise.
28713         (mve_vcmpgtq_m_s<mode>): Likewise.
28714         (mve_vcmphiq_m_n_u<mode>): Likewise.
28715         (mve_vcmphiq_m_u<mode>): Likewise.
28716         (mve_vcmpleq_m_n_s<mode>): Likewise.
28717         (mve_vcmpleq_m_s<mode>): Likewise.
28718         (mve_vcmpltq_m_n_s<mode>): Likewise.
28719         (mve_vcmpltq_m_s<mode>): Likewise.
28720         (mve_vcmpneq_m_n_<supf><mode>): Likewise.
28721         (mve_vcmpneq_m_<supf><mode>): Likewise.
28722         (mve_vdupq_m_n_<supf><mode>): Likewise.
28723         (mve_vmaxaq_m_s<mode>): Likewise.
28724         (mve_vmaxavq_p_s<mode>): Likewise.
28725         (mve_vmaxvq_p_<supf><mode>): Likewise.
28726         (mve_vminaq_m_s<mode>): Likewise.
28727         (mve_vminavq_p_s<mode>): Likewise.
28728         (mve_vminvq_p_<supf><mode>): Likewise.
28729         (mve_vmladavaq_<supf><mode>): Likewise.
28730         (mve_vmladavq_p_<supf><mode>): Likewise.
28731         (mve_vmladavxq_p_s<mode>): Likewise.
28732         (mve_vmlaq_n_<supf><mode>): Likewise.
28733         (mve_vmlasq_n_<supf><mode>): Likewise.
28734         (mve_vmlsdavq_p_s<mode>): Likewise.
28735         (mve_vmlsdavxq_p_s<mode>): Likewise.
28736         (mve_vmvnq_m_<supf><mode>): Likewise.
28737         (mve_vnegq_m_s<mode>): Likewise.
28738         (mve_vpselq_<supf><mode>): Likewise.
28739         (mve_vqabsq_m_s<mode>): Likewise.
28740         (mve_vqdmlahq_n_<supf><mode>): Likewise.
28741         (mve_vqnegq_m_s<mode>): Likewise.
28742         (mve_vqrdmladhq_s<mode>): Likewise.
28743         (mve_vqrdmladhxq_s<mode>): Likewise.
28744         (mve_vqrdmlahq_n_<supf><mode>): Likewise.
28745         (mve_vqrdmlashq_n_<supf><mode>): Likewise.
28746         (mve_vqrdmlsdhq_s<mode>): Likewise.
28747         (mve_vqrdmlsdhxq_s<mode>): Likewise.
28748         (mve_vqrshlq_m_n_<supf><mode>): Likewise.
28749         (mve_vqshlq_m_r_<supf><mode>): Likewise.
28750         (mve_vrev64q_m_<supf><mode>): Likewise.
28751         (mve_vrshlq_m_n_<supf><mode>): Likewise.
28752         (mve_vshlq_m_r_<supf><mode>): Likewise.
28753         (mve_vsliq_n_<supf><mode>): Likewise.
28754         (mve_vsriq_n_<supf><mode>): Likewise.
28755         (mve_vqdmlsdhxq_s<mode>): Likewise.
28756         (mve_vqdmlsdhq_s<mode>): Likewise.
28757         (mve_vqdmladhxq_s<mode>): Likewise.
28758         (mve_vqdmladhq_s<mode>): Likewise.
28759         (mve_vmlsdavaxq_s<mode>): Likewise.
28760         (mve_vmlsdavaq_s<mode>): Likewise.
28761         (mve_vmladavaxq_s<mode>): Likewise.
28762         * config/arm/predicates.md (mve_imm_15):Define predicate to check the
28763         matching constraint Rc.
28764         (mve_imm_31): Define predicate to check the matching constraint Re.
28766 2020-03-18  Andrew Stubbs  <ams@codesourcery.com>
28768         * config/gcn/gcn-valu.md (vec_cmp<mode>di): Set operand 1 to DImode.
28769         (vec_cmp<mode>di_dup): Likewise.
28770         * config/gcn/gcn.h (STORE_FLAG_VALUE): Set to -1.
28772 2020-03-18  Andrew Stubbs  <ams@codesourcery.com>
28774         * config/gcn/gcn-valu.md (COND_MODE): Delete.
28775         (COND_INT_MODE): Delete.
28776         (cond_op): Add "mult".
28777         (cond_<expander><mode>): Use VEC_ALLREG_MODE.
28778         (cond_<expander><mode>): Use VEC_ALLREG_INT_MODE.
28780 2020-03-18   Richard Biener  <rguenther@suse.de>
28782         PR middle-end/94206
28783         * gimple-fold.c (gimple_fold_builtin_memset): Avoid using
28784         partial int modes or not mode-precision integer types for
28785         the store.
28787 2020-03-18  Jakub Jelinek  <jakub@redhat.com>
28789         * asan.c (get_mem_refs_of_builtin_call): Fix up duplicated word issue
28790         in a comment.
28791         * config/arc/arc.c (frame_stack_add): Likewise.
28792         * gimple-loop-versioning.cc (loop_versioning::analyze_arbitrary_term):
28793         Likewise.
28794         * ipa-predicate.c (predicate::remap_after_inlining): Likewise.
28795         * tree-ssa-strlen.h (handle_printf_call): Likewise.
28796         * tree-ssa-strlen.c (is_strlen_related_p): Likewise.
28797         * optinfo-emit-json.cc (optrecord_json_writer::add_record): Likewise.
28799 2020-03-18  Duan bo  <duanbo3@huawei.com>
28801         PR target/94201
28802         * config/aarch64/aarch64.md (ldr_got_tiny): Delete.
28803         (@ldr_got_tiny_<mode>): New pattern.
28804         (ldr_got_tiny_sidi): Likewise.
28805         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Use
28806         them to handle SYMBOL_TINY_GOT for ILP32.
28808 2020-03-18  Richard Sandiford  <richard.sandiford@arm.com>
28810         * config/aarch64/aarch64.c (aarch64_sve_abi): Treat p12-p15 as
28811         call-preserved for SVE PCS functions.
28812         (aarch64_layout_frame): Cope with up to 12 predicate save slots.
28813         Optimize the case in which there are no following vector save slots.
28815 2020-03-18  Richard Biener  <rguenther@suse.de>
28817         PR middle-end/94188
28818         * fold-const.c (build_fold_addr_expr): Convert address to
28819         correct type.
28820         * asan.c (maybe_create_ssa_name): Strip useless type conversions.
28821         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use build1
28822         to build the ADDR_EXPR which we don't really want to simplify.
28823         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
28824         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Likewise.
28825         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
28826         (simplify_builtin_call): Strip useless type conversions.
28827         * tree-ssa-strlen.c (new_strinfo): Likewise.
28829 2020-03-17  Alexey Neyman  <stilor@att.net>
28831         PR debug/93751
28832         * dwarf2out.c (gen_decl_die): Proceed to generating the DIE if
28833         the debug level is terse and the declaration is public. Do not
28834         generate type info.
28835         (dwarf2out_decl): Same.
28836         (add_type_attribute): Return immediately if debug level is
28837         terse.
28839 2020-03-17  Richard Sandiford  <richard.sandiford@arm.com>
28841         * config/aarch64/iterators.md (Vmtype): Handle V4BF and V8BF.
28843 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
28844             Mihail Ionescu  <mihail.ionescu@arm.com>
28845             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
28847         * config/arm/arm-builtins.c (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS):
28848         Define qualifier for ternary operands.
28849         (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
28850         (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
28851         (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
28852         (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
28853         (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
28854         (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
28855         (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
28856         (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
28857         (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
28858         (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
28859         (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
28860         (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
28861         (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
28862         * config/arm/arm_mve.h (vabavq_s8): Define macro.
28863         (vabavq_s16): Likewise.
28864         (vabavq_s32): Likewise.
28865         (vbicq_m_n_s16): Likewise.
28866         (vbicq_m_n_s32): Likewise.
28867         (vbicq_m_n_u16): Likewise.
28868         (vbicq_m_n_u32): Likewise.
28869         (vcmpeqq_m_f16): Likewise.
28870         (vcmpeqq_m_f32): Likewise.
28871         (vcvtaq_m_s16_f16): Likewise.
28872         (vcvtaq_m_u16_f16): Likewise.
28873         (vcvtaq_m_s32_f32): Likewise.
28874         (vcvtaq_m_u32_f32): Likewise.
28875         (vcvtq_m_f16_s16): Likewise.
28876         (vcvtq_m_f16_u16): Likewise.
28877         (vcvtq_m_f32_s32): Likewise.
28878         (vcvtq_m_f32_u32): Likewise.
28879         (vqrshrnbq_n_s16): Likewise.
28880         (vqrshrnbq_n_u16): Likewise.
28881         (vqrshrnbq_n_s32): Likewise.
28882         (vqrshrnbq_n_u32): Likewise.
28883         (vqrshrunbq_n_s16): Likewise.
28884         (vqrshrunbq_n_s32): Likewise.
28885         (vrmlaldavhaq_s32): Likewise.
28886         (vrmlaldavhaq_u32): Likewise.
28887         (vshlcq_s8): Likewise.
28888         (vshlcq_u8): Likewise.
28889         (vshlcq_s16): Likewise.
28890         (vshlcq_u16): Likewise.
28891         (vshlcq_s32): Likewise.
28892         (vshlcq_u32): Likewise.
28893         (vabavq_u8): Likewise.
28894         (vabavq_u16): Likewise.
28895         (vabavq_u32): Likewise.
28896         (__arm_vabavq_s8): Define intrinsic.
28897         (__arm_vabavq_s16): Likewise.
28898         (__arm_vabavq_s32): Likewise.
28899         (__arm_vabavq_u8): Likewise.
28900         (__arm_vabavq_u16): Likewise.
28901         (__arm_vabavq_u32): Likewise.
28902         (__arm_vbicq_m_n_s16): Likewise.
28903         (__arm_vbicq_m_n_s32): Likewise.
28904         (__arm_vbicq_m_n_u16): Likewise.
28905         (__arm_vbicq_m_n_u32): Likewise.
28906         (__arm_vqrshrnbq_n_s16): Likewise.
28907         (__arm_vqrshrnbq_n_u16): Likewise.
28908         (__arm_vqrshrnbq_n_s32): Likewise.
28909         (__arm_vqrshrnbq_n_u32): Likewise.
28910         (__arm_vqrshrunbq_n_s16): Likewise.
28911         (__arm_vqrshrunbq_n_s32): Likewise.
28912         (__arm_vrmlaldavhaq_s32): Likewise.
28913         (__arm_vrmlaldavhaq_u32): Likewise.
28914         (__arm_vshlcq_s8): Likewise.
28915         (__arm_vshlcq_u8): Likewise.
28916         (__arm_vshlcq_s16): Likewise.
28917         (__arm_vshlcq_u16): Likewise.
28918         (__arm_vshlcq_s32): Likewise.
28919         (__arm_vshlcq_u32): Likewise.
28920         (__arm_vcmpeqq_m_f16): Likewise.
28921         (__arm_vcmpeqq_m_f32): Likewise.
28922         (__arm_vcvtaq_m_s16_f16): Likewise.
28923         (__arm_vcvtaq_m_u16_f16): Likewise.
28924         (__arm_vcvtaq_m_s32_f32): Likewise.
28925         (__arm_vcvtaq_m_u32_f32): Likewise.
28926         (__arm_vcvtq_m_f16_s16): Likewise.
28927         (__arm_vcvtq_m_f16_u16): Likewise.
28928         (__arm_vcvtq_m_f32_s32): Likewise.
28929         (__arm_vcvtq_m_f32_u32): Likewise.
28930         (vcvtaq_m): Define polymorphic variant.
28931         (vcvtq_m): Likewise.
28932         (vabavq): Likewise.
28933         (vshlcq): Likewise.
28934         (vbicq_m_n): Likewise.
28935         (vqrshrnbq_n): Likewise.
28936         (vqrshrunbq_n): Likewise.
28937         * config/arm/arm_mve_builtins.def
28938         (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS): Use the builtin qualifer.
28939         (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
28940         (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
28941         (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
28942         (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
28943         (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
28944         (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
28945         (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
28946         (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
28947         (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
28948         (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
28949         (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
28950         (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
28951         (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
28952         * config/arm/mve.md (VBICQ_M_N): Define iterator.
28953         (VCVTAQ_M): Likewise.
28954         (VCVTQ_M_TO_F): Likewise.
28955         (VQRSHRNBQ_N): Likewise.
28956         (VABAVQ): Likewise.
28957         (VSHLCQ): Likewise.
28958         (VRMLALDAVHAQ): Likewise.
28959         (mve_vbicq_m_n_<supf><mode>): Define RTL pattern.
28960         (mve_vcmpeqq_m_f<mode>): Likewise.
28961         (mve_vcvtaq_m_<supf><mode>): Likewise.
28962         (mve_vcvtq_m_to_f_<supf><mode>): Likewise.
28963         (mve_vqrshrnbq_n_<supf><mode>): Likewise.
28964         (mve_vqrshrunbq_n_s<mode>): Likewise.
28965         (mve_vrmlaldavhaq_<supf>v4si): Likewise.
28966         (mve_vabavq_<supf><mode>): Likewise.
28967         (mve_vshlcq_<supf><mode>): Likewise.
28968         (mve_vshlcq_<supf><mode>): Likewise.
28969         (mve_vshlcq_vec_<supf><mode>): Define RTL expand.
28970         (mve_vshlcq_carry_<supf><mode>): Likewise.
28972 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
28973             Mihail Ionescu  <mihail.ionescu@arm.com>
28974             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
28976         * config/arm/arm_mve.h (vqmovntq_u16): Define macro.
28977         (vqmovnbq_u16): Likewise.
28978         (vmulltq_poly_p8): Likewise.
28979         (vmullbq_poly_p8): Likewise.
28980         (vmovntq_u16): Likewise.
28981         (vmovnbq_u16): Likewise.
28982         (vmlaldavxq_u16): Likewise.
28983         (vmlaldavq_u16): Likewise.
28984         (vqmovuntq_s16): Likewise.
28985         (vqmovunbq_s16): Likewise.
28986         (vshlltq_n_u8): Likewise.
28987         (vshllbq_n_u8): Likewise.
28988         (vorrq_n_u16): Likewise.
28989         (vbicq_n_u16): Likewise.
28990         (vcmpneq_n_f16): Likewise.
28991         (vcmpneq_f16): Likewise.
28992         (vcmpltq_n_f16): Likewise.
28993         (vcmpltq_f16): Likewise.
28994         (vcmpleq_n_f16): Likewise.
28995         (vcmpleq_f16): Likewise.
28996         (vcmpgtq_n_f16): Likewise.
28997         (vcmpgtq_f16): Likewise.
28998         (vcmpgeq_n_f16): Likewise.
28999         (vcmpgeq_f16): Likewise.
29000         (vcmpeqq_n_f16): Likewise.
29001         (vcmpeqq_f16): Likewise.
29002         (vsubq_f16): Likewise.
29003         (vqmovntq_s16): Likewise.
29004         (vqmovnbq_s16): Likewise.
29005         (vqdmulltq_s16): Likewise.
29006         (vqdmulltq_n_s16): Likewise.
29007         (vqdmullbq_s16): Likewise.
29008         (vqdmullbq_n_s16): Likewise.
29009         (vorrq_f16): Likewise.
29010         (vornq_f16): Likewise.
29011         (vmulq_n_f16): Likewise.
29012         (vmulq_f16): Likewise.
29013         (vmovntq_s16): Likewise.
29014         (vmovnbq_s16): Likewise.
29015         (vmlsldavxq_s16): Likewise.
29016         (vmlsldavq_s16): Likewise.
29017         (vmlaldavxq_s16): Likewise.
29018         (vmlaldavq_s16): Likewise.
29019         (vminnmvq_f16): Likewise.
29020         (vminnmq_f16): Likewise.
29021         (vminnmavq_f16): Likewise.
29022         (vminnmaq_f16): Likewise.
29023         (vmaxnmvq_f16): Likewise.
29024         (vmaxnmq_f16): Likewise.
29025         (vmaxnmavq_f16): Likewise.
29026         (vmaxnmaq_f16): Likewise.
29027         (veorq_f16): Likewise.
29028         (vcmulq_rot90_f16): Likewise.
29029         (vcmulq_rot270_f16): Likewise.
29030         (vcmulq_rot180_f16): Likewise.
29031         (vcmulq_f16): Likewise.
29032         (vcaddq_rot90_f16): Likewise.
29033         (vcaddq_rot270_f16): Likewise.
29034         (vbicq_f16): Likewise.
29035         (vandq_f16): Likewise.
29036         (vaddq_n_f16): Likewise.
29037         (vabdq_f16): Likewise.
29038         (vshlltq_n_s8): Likewise.
29039         (vshllbq_n_s8): Likewise.
29040         (vorrq_n_s16): Likewise.
29041         (vbicq_n_s16): Likewise.
29042         (vqmovntq_u32): Likewise.
29043         (vqmovnbq_u32): Likewise.
29044         (vmulltq_poly_p16): Likewise.
29045         (vmullbq_poly_p16): Likewise.
29046         (vmovntq_u32): Likewise.
29047         (vmovnbq_u32): Likewise.
29048         (vmlaldavxq_u32): Likewise.
29049         (vmlaldavq_u32): Likewise.
29050         (vqmovuntq_s32): Likewise.
29051         (vqmovunbq_s32): Likewise.
29052         (vshlltq_n_u16): Likewise.
29053         (vshllbq_n_u16): Likewise.
29054         (vorrq_n_u32): Likewise.
29055         (vbicq_n_u32): Likewise.
29056         (vcmpneq_n_f32): Likewise.
29057         (vcmpneq_f32): Likewise.
29058         (vcmpltq_n_f32): Likewise.
29059         (vcmpltq_f32): Likewise.
29060         (vcmpleq_n_f32): Likewise.
29061         (vcmpleq_f32): Likewise.
29062         (vcmpgtq_n_f32): Likewise.
29063         (vcmpgtq_f32): Likewise.
29064         (vcmpgeq_n_f32): Likewise.
29065         (vcmpgeq_f32): Likewise.
29066         (vcmpeqq_n_f32): Likewise.
29067         (vcmpeqq_f32): Likewise.
29068         (vsubq_f32): Likewise.
29069         (vqmovntq_s32): Likewise.
29070         (vqmovnbq_s32): Likewise.
29071         (vqdmulltq_s32): Likewise.
29072         (vqdmulltq_n_s32): Likewise.
29073         (vqdmullbq_s32): Likewise.
29074         (vqdmullbq_n_s32): Likewise.
29075         (vorrq_f32): Likewise.
29076         (vornq_f32): Likewise.
29077         (vmulq_n_f32): Likewise.
29078         (vmulq_f32): Likewise.
29079         (vmovntq_s32): Likewise.
29080         (vmovnbq_s32): Likewise.
29081         (vmlsldavxq_s32): Likewise.
29082         (vmlsldavq_s32): Likewise.
29083         (vmlaldavxq_s32): Likewise.
29084         (vmlaldavq_s32): Likewise.
29085         (vminnmvq_f32): Likewise.
29086         (vminnmq_f32): Likewise.
29087         (vminnmavq_f32): Likewise.
29088         (vminnmaq_f32): Likewise.
29089         (vmaxnmvq_f32): Likewise.
29090         (vmaxnmq_f32): Likewise.
29091         (vmaxnmavq_f32): Likewise.
29092         (vmaxnmaq_f32): Likewise.
29093         (veorq_f32): Likewise.
29094         (vcmulq_rot90_f32): Likewise.
29095         (vcmulq_rot270_f32): Likewise.
29096         (vcmulq_rot180_f32): Likewise.
29097         (vcmulq_f32): Likewise.
29098         (vcaddq_rot90_f32): Likewise.
29099         (vcaddq_rot270_f32): Likewise.
29100         (vbicq_f32): Likewise.
29101         (vandq_f32): Likewise.
29102         (vaddq_n_f32): Likewise.
29103         (vabdq_f32): Likewise.
29104         (vshlltq_n_s16): Likewise.
29105         (vshllbq_n_s16): Likewise.
29106         (vorrq_n_s32): Likewise.
29107         (vbicq_n_s32): Likewise.
29108         (vrmlaldavhq_u32): Likewise.
29109         (vctp8q_m): Likewise.
29110         (vctp64q_m): Likewise.
29111         (vctp32q_m): Likewise.
29112         (vctp16q_m): Likewise.
29113         (vaddlvaq_u32): Likewise.
29114         (vrmlsldavhxq_s32): Likewise.
29115         (vrmlsldavhq_s32): Likewise.
29116         (vrmlaldavhxq_s32): Likewise.
29117         (vrmlaldavhq_s32): Likewise.
29118         (vcvttq_f16_f32): Likewise.
29119         (vcvtbq_f16_f32): Likewise.
29120         (vaddlvaq_s32): Likewise.
29121         (__arm_vqmovntq_u16): Define intrinsic.
29122         (__arm_vqmovnbq_u16): Likewise.
29123         (__arm_vmulltq_poly_p8): Likewise.
29124         (__arm_vmullbq_poly_p8): Likewise.
29125         (__arm_vmovntq_u16): Likewise.
29126         (__arm_vmovnbq_u16): Likewise.
29127         (__arm_vmlaldavxq_u16): Likewise.
29128         (__arm_vmlaldavq_u16): Likewise.
29129         (__arm_vqmovuntq_s16): Likewise.
29130         (__arm_vqmovunbq_s16): Likewise.
29131         (__arm_vshlltq_n_u8): Likewise.
29132         (__arm_vshllbq_n_u8): Likewise.
29133         (__arm_vorrq_n_u16): Likewise.
29134         (__arm_vbicq_n_u16): Likewise.
29135         (__arm_vcmpneq_n_f16): Likewise.
29136         (__arm_vcmpneq_f16): Likewise.
29137         (__arm_vcmpltq_n_f16): Likewise.
29138         (__arm_vcmpltq_f16): Likewise.
29139         (__arm_vcmpleq_n_f16): Likewise.
29140         (__arm_vcmpleq_f16): Likewise.
29141         (__arm_vcmpgtq_n_f16): Likewise.
29142         (__arm_vcmpgtq_f16): Likewise.
29143         (__arm_vcmpgeq_n_f16): Likewise.
29144         (__arm_vcmpgeq_f16): Likewise.
29145         (__arm_vcmpeqq_n_f16): Likewise.
29146         (__arm_vcmpeqq_f16): Likewise.
29147         (__arm_vsubq_f16): Likewise.
29148         (__arm_vqmovntq_s16): Likewise.
29149         (__arm_vqmovnbq_s16): Likewise.
29150         (__arm_vqdmulltq_s16): Likewise.
29151         (__arm_vqdmulltq_n_s16): Likewise.
29152         (__arm_vqdmullbq_s16): Likewise.
29153         (__arm_vqdmullbq_n_s16): Likewise.
29154         (__arm_vorrq_f16): Likewise.
29155         (__arm_vornq_f16): Likewise.
29156         (__arm_vmulq_n_f16): Likewise.
29157         (__arm_vmulq_f16): Likewise.
29158         (__arm_vmovntq_s16): Likewise.
29159         (__arm_vmovnbq_s16): Likewise.
29160         (__arm_vmlsldavxq_s16): Likewise.
29161         (__arm_vmlsldavq_s16): Likewise.
29162         (__arm_vmlaldavxq_s16): Likewise.
29163         (__arm_vmlaldavq_s16): Likewise.
29164         (__arm_vminnmvq_f16): Likewise.
29165         (__arm_vminnmq_f16): Likewise.
29166         (__arm_vminnmavq_f16): Likewise.
29167         (__arm_vminnmaq_f16): Likewise.
29168         (__arm_vmaxnmvq_f16): Likewise.
29169         (__arm_vmaxnmq_f16): Likewise.
29170         (__arm_vmaxnmavq_f16): Likewise.
29171         (__arm_vmaxnmaq_f16): Likewise.
29172         (__arm_veorq_f16): Likewise.
29173         (__arm_vcmulq_rot90_f16): Likewise.
29174         (__arm_vcmulq_rot270_f16): Likewise.
29175         (__arm_vcmulq_rot180_f16): Likewise.
29176         (__arm_vcmulq_f16): Likewise.
29177         (__arm_vcaddq_rot90_f16): Likewise.
29178         (__arm_vcaddq_rot270_f16): Likewise.
29179         (__arm_vbicq_f16): Likewise.
29180         (__arm_vandq_f16): Likewise.
29181         (__arm_vaddq_n_f16): Likewise.
29182         (__arm_vabdq_f16): Likewise.
29183         (__arm_vshlltq_n_s8): Likewise.
29184         (__arm_vshllbq_n_s8): Likewise.
29185         (__arm_vorrq_n_s16): Likewise.
29186         (__arm_vbicq_n_s16): Likewise.
29187         (__arm_vqmovntq_u32): Likewise.
29188         (__arm_vqmovnbq_u32): Likewise.
29189         (__arm_vmulltq_poly_p16): Likewise.
29190         (__arm_vmullbq_poly_p16): Likewise.
29191         (__arm_vmovntq_u32): Likewise.
29192         (__arm_vmovnbq_u32): Likewise.
29193         (__arm_vmlaldavxq_u32): Likewise.
29194         (__arm_vmlaldavq_u32): Likewise.
29195         (__arm_vqmovuntq_s32): Likewise.
29196         (__arm_vqmovunbq_s32): Likewise.
29197         (__arm_vshlltq_n_u16): Likewise.
29198         (__arm_vshllbq_n_u16): Likewise.
29199         (__arm_vorrq_n_u32): Likewise.
29200         (__arm_vbicq_n_u32): Likewise.
29201         (__arm_vcmpneq_n_f32): Likewise.
29202         (__arm_vcmpneq_f32): Likewise.
29203         (__arm_vcmpltq_n_f32): Likewise.
29204         (__arm_vcmpltq_f32): Likewise.
29205         (__arm_vcmpleq_n_f32): Likewise.
29206         (__arm_vcmpleq_f32): Likewise.
29207         (__arm_vcmpgtq_n_f32): Likewise.
29208         (__arm_vcmpgtq_f32): Likewise.
29209         (__arm_vcmpgeq_n_f32): Likewise.
29210         (__arm_vcmpgeq_f32): Likewise.
29211         (__arm_vcmpeqq_n_f32): Likewise.
29212         (__arm_vcmpeqq_f32): Likewise.
29213         (__arm_vsubq_f32): Likewise.
29214         (__arm_vqmovntq_s32): Likewise.
29215         (__arm_vqmovnbq_s32): Likewise.
29216         (__arm_vqdmulltq_s32): Likewise.
29217         (__arm_vqdmulltq_n_s32): Likewise.
29218         (__arm_vqdmullbq_s32): Likewise.
29219         (__arm_vqdmullbq_n_s32): Likewise.
29220         (__arm_vorrq_f32): Likewise.
29221         (__arm_vornq_f32): Likewise.
29222         (__arm_vmulq_n_f32): Likewise.
29223         (__arm_vmulq_f32): Likewise.
29224         (__arm_vmovntq_s32): Likewise.
29225         (__arm_vmovnbq_s32): Likewise.
29226         (__arm_vmlsldavxq_s32): Likewise.
29227         (__arm_vmlsldavq_s32): Likewise.
29228         (__arm_vmlaldavxq_s32): Likewise.
29229         (__arm_vmlaldavq_s32): Likewise.
29230         (__arm_vminnmvq_f32): Likewise.
29231         (__arm_vminnmq_f32): Likewise.
29232         (__arm_vminnmavq_f32): Likewise.
29233         (__arm_vminnmaq_f32): Likewise.
29234         (__arm_vmaxnmvq_f32): Likewise.
29235         (__arm_vmaxnmq_f32): Likewise.
29236         (__arm_vmaxnmavq_f32): Likewise.
29237         (__arm_vmaxnmaq_f32): Likewise.
29238         (__arm_veorq_f32): Likewise.
29239         (__arm_vcmulq_rot90_f32): Likewise.
29240         (__arm_vcmulq_rot270_f32): Likewise.
29241         (__arm_vcmulq_rot180_f32): Likewise.
29242         (__arm_vcmulq_f32): Likewise.
29243         (__arm_vcaddq_rot90_f32): Likewise.
29244         (__arm_vcaddq_rot270_f32): Likewise.
29245         (__arm_vbicq_f32): Likewise.
29246         (__arm_vandq_f32): Likewise.
29247         (__arm_vaddq_n_f32): Likewise.
29248         (__arm_vabdq_f32): Likewise.
29249         (__arm_vshlltq_n_s16): Likewise.
29250         (__arm_vshllbq_n_s16): Likewise.
29251         (__arm_vorrq_n_s32): Likewise.
29252         (__arm_vbicq_n_s32): Likewise.
29253         (__arm_vrmlaldavhq_u32): Likewise.
29254         (__arm_vctp8q_m): Likewise.
29255         (__arm_vctp64q_m): Likewise.
29256         (__arm_vctp32q_m): Likewise.
29257         (__arm_vctp16q_m): Likewise.
29258         (__arm_vaddlvaq_u32): Likewise.
29259         (__arm_vrmlsldavhxq_s32): Likewise.
29260         (__arm_vrmlsldavhq_s32): Likewise.
29261         (__arm_vrmlaldavhxq_s32): Likewise.
29262         (__arm_vrmlaldavhq_s32): Likewise.
29263         (__arm_vcvttq_f16_f32): Likewise.
29264         (__arm_vcvtbq_f16_f32): Likewise.
29265         (__arm_vaddlvaq_s32): Likewise.
29266         (vst4q): Define polymorphic variant.
29267         (vrndxq): Likewise.
29268         (vrndq): Likewise.
29269         (vrndpq): Likewise.
29270         (vrndnq): Likewise.
29271         (vrndmq): Likewise.
29272         (vrndaq): Likewise.
29273         (vrev64q): Likewise.
29274         (vnegq): Likewise.
29275         (vdupq_n): Likewise.
29276         (vabsq): Likewise.
29277         (vrev32q): Likewise.
29278         (vcvtbq_f32): Likewise.
29279         (vcvttq_f32): Likewise.
29280         (vcvtq): Likewise.
29281         (vsubq_n): Likewise.
29282         (vbrsrq_n): Likewise.
29283         (vcvtq_n): Likewise.
29284         (vsubq): Likewise.
29285         (vorrq): Likewise.
29286         (vabdq): Likewise.
29287         (vaddq_n): Likewise.
29288         (vandq): Likewise.
29289         (vbicq): Likewise.
29290         (vornq): Likewise.
29291         (vmulq_n): Likewise.
29292         (vmulq): Likewise.
29293         (vcaddq_rot270): Likewise.
29294         (vcmpeqq_n): Likewise.
29295         (vcmpeqq): Likewise.
29296         (vcaddq_rot90): Likewise.
29297         (vcmpgeq_n): Likewise.
29298         (vcmpgeq): Likewise.
29299         (vcmpgtq_n): Likewise.
29300         (vcmpgtq): Likewise.
29301         (vcmpgtq): Likewise.
29302         (vcmpleq_n): Likewise.
29303         (vcmpleq_n): Likewise.
29304         (vcmpleq): Likewise.
29305         (vcmpleq): Likewise.
29306         (vcmpltq_n): Likewise.
29307         (vcmpltq_n): Likewise.
29308         (vcmpltq): Likewise.
29309         (vcmpltq): Likewise.
29310         (vcmpneq_n): Likewise.
29311         (vcmpneq_n): Likewise.
29312         (vcmpneq): Likewise.
29313         (vcmpneq): Likewise.
29314         (vcmulq): Likewise.
29315         (vcmulq): Likewise.
29316         (vcmulq_rot180): Likewise.
29317         (vcmulq_rot180): Likewise.
29318         (vcmulq_rot270): Likewise.
29319         (vcmulq_rot270): Likewise.
29320         (vcmulq_rot90): Likewise.
29321         (vcmulq_rot90): Likewise.
29322         (veorq): Likewise.
29323         (veorq): Likewise.
29324         (vmaxnmaq): Likewise.
29325         (vmaxnmaq): Likewise.
29326         (vmaxnmavq): Likewise.
29327         (vmaxnmavq): Likewise.
29328         (vmaxnmq): Likewise.
29329         (vmaxnmq): Likewise.
29330         (vmaxnmvq): Likewise.
29331         (vmaxnmvq): Likewise.
29332         (vminnmaq): Likewise.
29333         (vminnmaq): Likewise.
29334         (vminnmavq): Likewise.
29335         (vminnmavq): Likewise.
29336         (vminnmq): Likewise.
29337         (vminnmq): Likewise.
29338         (vminnmvq): Likewise.
29339         (vminnmvq): Likewise.
29340         (vbicq_n): Likewise.
29341         (vqmovntq): Likewise.
29342         (vqmovntq): Likewise.
29343         (vqmovnbq): Likewise.
29344         (vqmovnbq): Likewise.
29345         (vmulltq_poly): Likewise.
29346         (vmulltq_poly): Likewise.
29347         (vmullbq_poly): Likewise.
29348         (vmullbq_poly): Likewise.
29349         (vmovntq): Likewise.
29350         (vmovntq): Likewise.
29351         (vmovnbq): Likewise.
29352         (vmovnbq): Likewise.
29353         (vmlaldavxq): Likewise.
29354         (vmlaldavxq): Likewise.
29355         (vqmovuntq): Likewise.
29356         (vqmovuntq): Likewise.
29357         (vshlltq_n): Likewise.
29358         (vshlltq_n): Likewise.
29359         (vshllbq_n): Likewise.
29360         (vshllbq_n): Likewise.
29361         (vorrq_n): Likewise.
29362         (vorrq_n): Likewise.
29363         (vmlaldavq): Likewise.
29364         (vmlaldavq): Likewise.
29365         (vqmovunbq): Likewise.
29366         (vqmovunbq): Likewise.
29367         (vqdmulltq_n): Likewise.
29368         (vqdmulltq_n): Likewise.
29369         (vqdmulltq): Likewise.
29370         (vqdmulltq): Likewise.
29371         (vqdmullbq_n): Likewise.
29372         (vqdmullbq_n): Likewise.
29373         (vqdmullbq): Likewise.
29374         (vqdmullbq): Likewise.
29375         (vaddlvaq): Likewise.
29376         (vaddlvaq): Likewise.
29377         (vrmlaldavhq): Likewise.
29378         (vrmlaldavhq): Likewise.
29379         (vrmlaldavhxq): Likewise.
29380         (vrmlaldavhxq): Likewise.
29381         (vrmlsldavhq): Likewise.
29382         (vrmlsldavhq): Likewise.
29383         (vrmlsldavhxq): Likewise.
29384         (vrmlsldavhxq): Likewise.
29385         (vmlsldavxq): Likewise.
29386         (vmlsldavxq): Likewise.
29387         (vmlsldavq): Likewise.
29388         (vmlsldavq): Likewise.
29389         * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
29390         (BINOP_NONE_NONE_NONE): Likewise.
29391         (BINOP_UNONE_NONE_NONE): Likewise.
29392         (BINOP_UNONE_UNONE_IMM): Likewise.
29393         (BINOP_UNONE_UNONE_NONE): Likewise.
29394         (BINOP_UNONE_UNONE_UNONE): Likewise.
29395         * config/arm/mve.md (mve_vabdq_f<mode>): Define RTL pattern.
29396         (mve_vaddlvaq_<supf>v4si): Likewise.
29397         (mve_vaddq_n_f<mode>): Likewise.
29398         (mve_vandq_f<mode>): Likewise.
29399         (mve_vbicq_f<mode>): Likewise.
29400         (mve_vbicq_n_<supf><mode>): Likewise.
29401         (mve_vcaddq_rot270_f<mode>): Likewise.
29402         (mve_vcaddq_rot90_f<mode>): Likewise.
29403         (mve_vcmpeqq_f<mode>): Likewise.
29404         (mve_vcmpeqq_n_f<mode>): Likewise.
29405         (mve_vcmpgeq_f<mode>): Likewise.
29406         (mve_vcmpgeq_n_f<mode>): Likewise.
29407         (mve_vcmpgtq_f<mode>): Likewise.
29408         (mve_vcmpgtq_n_f<mode>): Likewise.
29409         (mve_vcmpleq_f<mode>): Likewise.
29410         (mve_vcmpleq_n_f<mode>): Likewise.
29411         (mve_vcmpltq_f<mode>): Likewise.
29412         (mve_vcmpltq_n_f<mode>): Likewise.
29413         (mve_vcmpneq_f<mode>): Likewise.
29414         (mve_vcmpneq_n_f<mode>): Likewise.
29415         (mve_vcmulq_f<mode>): Likewise.
29416         (mve_vcmulq_rot180_f<mode>): Likewise.
29417         (mve_vcmulq_rot270_f<mode>): Likewise.
29418         (mve_vcmulq_rot90_f<mode>): Likewise.
29419         (mve_vctp<mode1>q_mhi): Likewise.
29420         (mve_vcvtbq_f16_f32v8hf): Likewise.
29421         (mve_vcvttq_f16_f32v8hf): Likewise.
29422         (mve_veorq_f<mode>): Likewise.
29423         (mve_vmaxnmaq_f<mode>): Likewise.
29424         (mve_vmaxnmavq_f<mode>): Likewise.
29425         (mve_vmaxnmq_f<mode>): Likewise.
29426         (mve_vmaxnmvq_f<mode>): Likewise.
29427         (mve_vminnmaq_f<mode>): Likewise.
29428         (mve_vminnmavq_f<mode>): Likewise.
29429         (mve_vminnmq_f<mode>): Likewise.
29430         (mve_vminnmvq_f<mode>): Likewise.
29431         (mve_vmlaldavq_<supf><mode>): Likewise.
29432         (mve_vmlaldavxq_<supf><mode>): Likewise.
29433         (mve_vmlsldavq_s<mode>): Likewise.
29434         (mve_vmlsldavxq_s<mode>): Likewise.
29435         (mve_vmovnbq_<supf><mode>): Likewise.
29436         (mve_vmovntq_<supf><mode>): Likewise.
29437         (mve_vmulq_f<mode>): Likewise.
29438         (mve_vmulq_n_f<mode>): Likewise.
29439         (mve_vornq_f<mode>): Likewise.
29440         (mve_vorrq_f<mode>): Likewise.
29441         (mve_vorrq_n_<supf><mode>): Likewise.
29442         (mve_vqdmullbq_n_s<mode>): Likewise.
29443         (mve_vqdmullbq_s<mode>): Likewise.
29444         (mve_vqdmulltq_n_s<mode>): Likewise.
29445         (mve_vqdmulltq_s<mode>): Likewise.
29446         (mve_vqmovnbq_<supf><mode>): Likewise.
29447         (mve_vqmovntq_<supf><mode>): Likewise.
29448         (mve_vqmovunbq_s<mode>): Likewise.
29449         (mve_vqmovuntq_s<mode>): Likewise.
29450         (mve_vrmlaldavhxq_sv4si): Likewise.
29451         (mve_vrmlsldavhq_sv4si): Likewise.
29452         (mve_vrmlsldavhxq_sv4si): Likewise.
29453         (mve_vshllbq_n_<supf><mode>): Likewise.
29454         (mve_vshlltq_n_<supf><mode>): Likewise.
29455         (mve_vsubq_f<mode>): Likewise.
29456         (mve_vmulltq_poly_p<mode>): Likewise.
29457         (mve_vmullbq_poly_p<mode>): Likewise.
29458         (mve_vrmlaldavhq_<supf>v4si): Likewise.
29460 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
29461             Mihail Ionescu  <mihail.ionescu@arm.com>
29462             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
29464         * config/arm/arm_mve.h (vsubq_u8): Define macro.
29465         (vsubq_n_u8): Likewise.
29466         (vrmulhq_u8): Likewise.
29467         (vrhaddq_u8): Likewise.
29468         (vqsubq_u8): Likewise.
29469         (vqsubq_n_u8): Likewise.
29470         (vqaddq_u8): Likewise.
29471         (vqaddq_n_u8): Likewise.
29472         (vorrq_u8): Likewise.
29473         (vornq_u8): Likewise.
29474         (vmulq_u8): Likewise.
29475         (vmulq_n_u8): Likewise.
29476         (vmulltq_int_u8): Likewise.
29477         (vmullbq_int_u8): Likewise.
29478         (vmulhq_u8): Likewise.
29479         (vmladavq_u8): Likewise.
29480         (vminvq_u8): Likewise.
29481         (vminq_u8): Likewise.
29482         (vmaxvq_u8): Likewise.
29483         (vmaxq_u8): Likewise.
29484         (vhsubq_u8): Likewise.
29485         (vhsubq_n_u8): Likewise.
29486         (vhaddq_u8): Likewise.
29487         (vhaddq_n_u8): Likewise.
29488         (veorq_u8): Likewise.
29489         (vcmpneq_n_u8): Likewise.
29490         (vcmphiq_u8): Likewise.
29491         (vcmphiq_n_u8): Likewise.
29492         (vcmpeqq_u8): Likewise.
29493         (vcmpeqq_n_u8): Likewise.
29494         (vcmpcsq_u8): Likewise.
29495         (vcmpcsq_n_u8): Likewise.
29496         (vcaddq_rot90_u8): Likewise.
29497         (vcaddq_rot270_u8): Likewise.
29498         (vbicq_u8): Likewise.
29499         (vandq_u8): Likewise.
29500         (vaddvq_p_u8): Likewise.
29501         (vaddvaq_u8): Likewise.
29502         (vaddq_n_u8): Likewise.
29503         (vabdq_u8): Likewise.
29504         (vshlq_r_u8): Likewise.
29505         (vrshlq_u8): Likewise.
29506         (vrshlq_n_u8): Likewise.
29507         (vqshlq_u8): Likewise.
29508         (vqshlq_r_u8): Likewise.
29509         (vqrshlq_u8): Likewise.
29510         (vqrshlq_n_u8): Likewise.
29511         (vminavq_s8): Likewise.
29512         (vminaq_s8): Likewise.
29513         (vmaxavq_s8): Likewise.
29514         (vmaxaq_s8): Likewise.
29515         (vbrsrq_n_u8): Likewise.
29516         (vshlq_n_u8): Likewise.
29517         (vrshrq_n_u8): Likewise.
29518         (vqshlq_n_u8): Likewise.
29519         (vcmpneq_n_s8): Likewise.
29520         (vcmpltq_s8): Likewise.
29521         (vcmpltq_n_s8): Likewise.
29522         (vcmpleq_s8): Likewise.
29523         (vcmpleq_n_s8): Likewise.
29524         (vcmpgtq_s8): Likewise.
29525         (vcmpgtq_n_s8): Likewise.
29526         (vcmpgeq_s8): Likewise.
29527         (vcmpgeq_n_s8): Likewise.
29528         (vcmpeqq_s8): Likewise.
29529         (vcmpeqq_n_s8): Likewise.
29530         (vqshluq_n_s8): Likewise.
29531         (vaddvq_p_s8): Likewise.
29532         (vsubq_s8): Likewise.
29533         (vsubq_n_s8): Likewise.
29534         (vshlq_r_s8): Likewise.
29535         (vrshlq_s8): Likewise.
29536         (vrshlq_n_s8): Likewise.
29537         (vrmulhq_s8): Likewise.
29538         (vrhaddq_s8): Likewise.
29539         (vqsubq_s8): Likewise.
29540         (vqsubq_n_s8): Likewise.
29541         (vqshlq_s8): Likewise.
29542         (vqshlq_r_s8): Likewise.
29543         (vqrshlq_s8): Likewise.
29544         (vqrshlq_n_s8): Likewise.
29545         (vqrdmulhq_s8): Likewise.
29546         (vqrdmulhq_n_s8): Likewise.
29547         (vqdmulhq_s8): Likewise.
29548         (vqdmulhq_n_s8): Likewise.
29549         (vqaddq_s8): Likewise.
29550         (vqaddq_n_s8): Likewise.
29551         (vorrq_s8): Likewise.
29552         (vornq_s8): Likewise.
29553         (vmulq_s8): Likewise.
29554         (vmulq_n_s8): Likewise.
29555         (vmulltq_int_s8): Likewise.
29556         (vmullbq_int_s8): Likewise.
29557         (vmulhq_s8): Likewise.
29558         (vmlsdavxq_s8): Likewise.
29559         (vmlsdavq_s8): Likewise.
29560         (vmladavxq_s8): Likewise.
29561         (vmladavq_s8): Likewise.
29562         (vminvq_s8): Likewise.
29563         (vminq_s8): Likewise.
29564         (vmaxvq_s8): Likewise.
29565         (vmaxq_s8): Likewise.
29566         (vhsubq_s8): Likewise.
29567         (vhsubq_n_s8): Likewise.
29568         (vhcaddq_rot90_s8): Likewise.
29569         (vhcaddq_rot270_s8): Likewise.
29570         (vhaddq_s8): Likewise.
29571         (vhaddq_n_s8): Likewise.
29572         (veorq_s8): Likewise.
29573         (vcaddq_rot90_s8): Likewise.
29574         (vcaddq_rot270_s8): Likewise.
29575         (vbrsrq_n_s8): Likewise.
29576         (vbicq_s8): Likewise.
29577         (vandq_s8): Likewise.
29578         (vaddvaq_s8): Likewise.
29579         (vaddq_n_s8): Likewise.
29580         (vabdq_s8): Likewise.
29581         (vshlq_n_s8): Likewise.
29582         (vrshrq_n_s8): Likewise.
29583         (vqshlq_n_s8): Likewise.
29584         (vsubq_u16): Likewise.
29585         (vsubq_n_u16): Likewise.
29586         (vrmulhq_u16): Likewise.
29587         (vrhaddq_u16): Likewise.
29588         (vqsubq_u16): Likewise.
29589         (vqsubq_n_u16): Likewise.
29590         (vqaddq_u16): Likewise.
29591         (vqaddq_n_u16): Likewise.
29592         (vorrq_u16): Likewise.
29593         (vornq_u16): Likewise.
29594         (vmulq_u16): Likewise.
29595         (vmulq_n_u16): Likewise.
29596         (vmulltq_int_u16): Likewise.
29597         (vmullbq_int_u16): Likewise.
29598         (vmulhq_u16): Likewise.
29599         (vmladavq_u16): Likewise.
29600         (vminvq_u16): Likewise.
29601         (vminq_u16): Likewise.
29602         (vmaxvq_u16): Likewise.
29603         (vmaxq_u16): Likewise.
29604         (vhsubq_u16): Likewise.
29605         (vhsubq_n_u16): Likewise.
29606         (vhaddq_u16): Likewise.
29607         (vhaddq_n_u16): Likewise.
29608         (veorq_u16): Likewise.
29609         (vcmpneq_n_u16): Likewise.
29610         (vcmphiq_u16): Likewise.
29611         (vcmphiq_n_u16): Likewise.
29612         (vcmpeqq_u16): Likewise.
29613         (vcmpeqq_n_u16): Likewise.
29614         (vcmpcsq_u16): Likewise.
29615         (vcmpcsq_n_u16): Likewise.
29616         (vcaddq_rot90_u16): Likewise.
29617         (vcaddq_rot270_u16): Likewise.
29618         (vbicq_u16): Likewise.
29619         (vandq_u16): Likewise.
29620         (vaddvq_p_u16): Likewise.
29621         (vaddvaq_u16): Likewise.
29622         (vaddq_n_u16): Likewise.
29623         (vabdq_u16): Likewise.
29624         (vshlq_r_u16): Likewise.
29625         (vrshlq_u16): Likewise.
29626         (vrshlq_n_u16): Likewise.
29627         (vqshlq_u16): Likewise.
29628         (vqshlq_r_u16): Likewise.
29629         (vqrshlq_u16): Likewise.
29630         (vqrshlq_n_u16): Likewise.
29631         (vminavq_s16): Likewise.
29632         (vminaq_s16): Likewise.
29633         (vmaxavq_s16): Likewise.
29634         (vmaxaq_s16): Likewise.
29635         (vbrsrq_n_u16): Likewise.
29636         (vshlq_n_u16): Likewise.
29637         (vrshrq_n_u16): Likewise.
29638         (vqshlq_n_u16): Likewise.
29639         (vcmpneq_n_s16): Likewise.
29640         (vcmpltq_s16): Likewise.
29641         (vcmpltq_n_s16): Likewise.
29642         (vcmpleq_s16): Likewise.
29643         (vcmpleq_n_s16): Likewise.
29644         (vcmpgtq_s16): Likewise.
29645         (vcmpgtq_n_s16): Likewise.
29646         (vcmpgeq_s16): Likewise.
29647         (vcmpgeq_n_s16): Likewise.
29648         (vcmpeqq_s16): Likewise.
29649         (vcmpeqq_n_s16): Likewise.
29650         (vqshluq_n_s16): Likewise.
29651         (vaddvq_p_s16): Likewise.
29652         (vsubq_s16): Likewise.
29653         (vsubq_n_s16): Likewise.
29654         (vshlq_r_s16): Likewise.
29655         (vrshlq_s16): Likewise.
29656         (vrshlq_n_s16): Likewise.
29657         (vrmulhq_s16): Likewise.
29658         (vrhaddq_s16): Likewise.
29659         (vqsubq_s16): Likewise.
29660         (vqsubq_n_s16): Likewise.
29661         (vqshlq_s16): Likewise.
29662         (vqshlq_r_s16): Likewise.
29663         (vqrshlq_s16): Likewise.
29664         (vqrshlq_n_s16): Likewise.
29665         (vqrdmulhq_s16): Likewise.
29666         (vqrdmulhq_n_s16): Likewise.
29667         (vqdmulhq_s16): Likewise.
29668         (vqdmulhq_n_s16): Likewise.
29669         (vqaddq_s16): Likewise.
29670         (vqaddq_n_s16): Likewise.
29671         (vorrq_s16): Likewise.
29672         (vornq_s16): Likewise.
29673         (vmulq_s16): Likewise.
29674         (vmulq_n_s16): Likewise.
29675         (vmulltq_int_s16): Likewise.
29676         (vmullbq_int_s16): Likewise.
29677         (vmulhq_s16): Likewise.
29678         (vmlsdavxq_s16): Likewise.
29679         (vmlsdavq_s16): Likewise.
29680         (vmladavxq_s16): Likewise.
29681         (vmladavq_s16): Likewise.
29682         (vminvq_s16): Likewise.
29683         (vminq_s16): Likewise.
29684         (vmaxvq_s16): Likewise.
29685         (vmaxq_s16): Likewise.
29686         (vhsubq_s16): Likewise.
29687         (vhsubq_n_s16): Likewise.
29688         (vhcaddq_rot90_s16): Likewise.
29689         (vhcaddq_rot270_s16): Likewise.
29690         (vhaddq_s16): Likewise.
29691         (vhaddq_n_s16): Likewise.
29692         (veorq_s16): Likewise.
29693         (vcaddq_rot90_s16): Likewise.
29694         (vcaddq_rot270_s16): Likewise.
29695         (vbrsrq_n_s16): Likewise.
29696         (vbicq_s16): Likewise.
29697         (vandq_s16): Likewise.
29698         (vaddvaq_s16): Likewise.
29699         (vaddq_n_s16): Likewise.
29700         (vabdq_s16): Likewise.
29701         (vshlq_n_s16): Likewise.
29702         (vrshrq_n_s16): Likewise.
29703         (vqshlq_n_s16): Likewise.
29704         (vsubq_u32): Likewise.
29705         (vsubq_n_u32): Likewise.
29706         (vrmulhq_u32): Likewise.
29707         (vrhaddq_u32): Likewise.
29708         (vqsubq_u32): Likewise.
29709         (vqsubq_n_u32): Likewise.
29710         (vqaddq_u32): Likewise.
29711         (vqaddq_n_u32): Likewise.
29712         (vorrq_u32): Likewise.
29713         (vornq_u32): Likewise.
29714         (vmulq_u32): Likewise.
29715         (vmulq_n_u32): Likewise.
29716         (vmulltq_int_u32): Likewise.
29717         (vmullbq_int_u32): Likewise.
29718         (vmulhq_u32): Likewise.
29719         (vmladavq_u32): Likewise.
29720         (vminvq_u32): Likewise.
29721         (vminq_u32): Likewise.
29722         (vmaxvq_u32): Likewise.
29723         (vmaxq_u32): Likewise.
29724         (vhsubq_u32): Likewise.
29725         (vhsubq_n_u32): Likewise.
29726         (vhaddq_u32): Likewise.
29727         (vhaddq_n_u32): Likewise.
29728         (veorq_u32): Likewise.
29729         (vcmpneq_n_u32): Likewise.
29730         (vcmphiq_u32): Likewise.
29731         (vcmphiq_n_u32): Likewise.
29732         (vcmpeqq_u32): Likewise.
29733         (vcmpeqq_n_u32): Likewise.
29734         (vcmpcsq_u32): Likewise.
29735         (vcmpcsq_n_u32): Likewise.
29736         (vcaddq_rot90_u32): Likewise.
29737         (vcaddq_rot270_u32): Likewise.
29738         (vbicq_u32): Likewise.
29739         (vandq_u32): Likewise.
29740         (vaddvq_p_u32): Likewise.
29741         (vaddvaq_u32): Likewise.
29742         (vaddq_n_u32): Likewise.
29743         (vabdq_u32): Likewise.
29744         (vshlq_r_u32): Likewise.
29745         (vrshlq_u32): Likewise.
29746         (vrshlq_n_u32): Likewise.
29747         (vqshlq_u32): Likewise.
29748         (vqshlq_r_u32): Likewise.
29749         (vqrshlq_u32): Likewise.
29750         (vqrshlq_n_u32): Likewise.
29751         (vminavq_s32): Likewise.
29752         (vminaq_s32): Likewise.
29753         (vmaxavq_s32): Likewise.
29754         (vmaxaq_s32): Likewise.
29755         (vbrsrq_n_u32): Likewise.
29756         (vshlq_n_u32): Likewise.
29757         (vrshrq_n_u32): Likewise.
29758         (vqshlq_n_u32): Likewise.
29759         (vcmpneq_n_s32): Likewise.
29760         (vcmpltq_s32): Likewise.
29761         (vcmpltq_n_s32): Likewise.
29762         (vcmpleq_s32): Likewise.
29763         (vcmpleq_n_s32): Likewise.
29764         (vcmpgtq_s32): Likewise.
29765         (vcmpgtq_n_s32): Likewise.
29766         (vcmpgeq_s32): Likewise.
29767         (vcmpgeq_n_s32): Likewise.
29768         (vcmpeqq_s32): Likewise.
29769         (vcmpeqq_n_s32): Likewise.
29770         (vqshluq_n_s32): Likewise.
29771         (vaddvq_p_s32): Likewise.
29772         (vsubq_s32): Likewise.
29773         (vsubq_n_s32): Likewise.
29774         (vshlq_r_s32): Likewise.
29775         (vrshlq_s32): Likewise.
29776         (vrshlq_n_s32): Likewise.
29777         (vrmulhq_s32): Likewise.
29778         (vrhaddq_s32): Likewise.
29779         (vqsubq_s32): Likewise.
29780         (vqsubq_n_s32): Likewise.
29781         (vqshlq_s32): Likewise.
29782         (vqshlq_r_s32): Likewise.
29783         (vqrshlq_s32): Likewise.
29784         (vqrshlq_n_s32): Likewise.
29785         (vqrdmulhq_s32): Likewise.
29786         (vqrdmulhq_n_s32): Likewise.
29787         (vqdmulhq_s32): Likewise.
29788         (vqdmulhq_n_s32): Likewise.
29789         (vqaddq_s32): Likewise.
29790         (vqaddq_n_s32): Likewise.
29791         (vorrq_s32): Likewise.
29792         (vornq_s32): Likewise.
29793         (vmulq_s32): Likewise.
29794         (vmulq_n_s32): Likewise.
29795         (vmulltq_int_s32): Likewise.
29796         (vmullbq_int_s32): Likewise.
29797         (vmulhq_s32): Likewise.
29798         (vmlsdavxq_s32): Likewise.
29799         (vmlsdavq_s32): Likewise.
29800         (vmladavxq_s32): Likewise.
29801         (vmladavq_s32): Likewise.
29802         (vminvq_s32): Likewise.
29803         (vminq_s32): Likewise.
29804         (vmaxvq_s32): Likewise.
29805         (vmaxq_s32): Likewise.
29806         (vhsubq_s32): Likewise.
29807         (vhsubq_n_s32): Likewise.
29808         (vhcaddq_rot90_s32): Likewise.
29809         (vhcaddq_rot270_s32): Likewise.
29810         (vhaddq_s32): Likewise.
29811         (vhaddq_n_s32): Likewise.
29812         (veorq_s32): Likewise.
29813         (vcaddq_rot90_s32): Likewise.
29814         (vcaddq_rot270_s32): Likewise.
29815         (vbrsrq_n_s32): Likewise.
29816         (vbicq_s32): Likewise.
29817         (vandq_s32): Likewise.
29818         (vaddvaq_s32): Likewise.
29819         (vaddq_n_s32): Likewise.
29820         (vabdq_s32): Likewise.
29821         (vshlq_n_s32): Likewise.
29822         (vrshrq_n_s32): Likewise.
29823         (vqshlq_n_s32): Likewise.
29824         (__arm_vsubq_u8): Define intrinsic.
29825         (__arm_vsubq_n_u8): Likewise.
29826         (__arm_vrmulhq_u8): Likewise.
29827         (__arm_vrhaddq_u8): Likewise.
29828         (__arm_vqsubq_u8): Likewise.
29829         (__arm_vqsubq_n_u8): Likewise.
29830         (__arm_vqaddq_u8): Likewise.
29831         (__arm_vqaddq_n_u8): Likewise.
29832         (__arm_vorrq_u8): Likewise.
29833         (__arm_vornq_u8): Likewise.
29834         (__arm_vmulq_u8): Likewise.
29835         (__arm_vmulq_n_u8): Likewise.
29836         (__arm_vmulltq_int_u8): Likewise.
29837         (__arm_vmullbq_int_u8): Likewise.
29838         (__arm_vmulhq_u8): Likewise.
29839         (__arm_vmladavq_u8): Likewise.
29840         (__arm_vminvq_u8): Likewise.
29841         (__arm_vminq_u8): Likewise.
29842         (__arm_vmaxvq_u8): Likewise.
29843         (__arm_vmaxq_u8): Likewise.
29844         (__arm_vhsubq_u8): Likewise.
29845         (__arm_vhsubq_n_u8): Likewise.
29846         (__arm_vhaddq_u8): Likewise.
29847         (__arm_vhaddq_n_u8): Likewise.
29848         (__arm_veorq_u8): Likewise.
29849         (__arm_vcmpneq_n_u8): Likewise.
29850         (__arm_vcmphiq_u8): Likewise.
29851         (__arm_vcmphiq_n_u8): Likewise.
29852         (__arm_vcmpeqq_u8): Likewise.
29853         (__arm_vcmpeqq_n_u8): Likewise.
29854         (__arm_vcmpcsq_u8): Likewise.
29855         (__arm_vcmpcsq_n_u8): Likewise.
29856         (__arm_vcaddq_rot90_u8): Likewise.
29857         (__arm_vcaddq_rot270_u8): Likewise.
29858         (__arm_vbicq_u8): Likewise.
29859         (__arm_vandq_u8): Likewise.
29860         (__arm_vaddvq_p_u8): Likewise.
29861         (__arm_vaddvaq_u8): Likewise.
29862         (__arm_vaddq_n_u8): Likewise.
29863         (__arm_vabdq_u8): Likewise.
29864         (__arm_vshlq_r_u8): Likewise.
29865         (__arm_vrshlq_u8): Likewise.
29866         (__arm_vrshlq_n_u8): Likewise.
29867         (__arm_vqshlq_u8): Likewise.
29868         (__arm_vqshlq_r_u8): Likewise.
29869         (__arm_vqrshlq_u8): Likewise.
29870         (__arm_vqrshlq_n_u8): Likewise.
29871         (__arm_vminavq_s8): Likewise.
29872         (__arm_vminaq_s8): Likewise.
29873         (__arm_vmaxavq_s8): Likewise.
29874         (__arm_vmaxaq_s8): Likewise.
29875         (__arm_vbrsrq_n_u8): Likewise.
29876         (__arm_vshlq_n_u8): Likewise.
29877         (__arm_vrshrq_n_u8): Likewise.
29878         (__arm_vqshlq_n_u8): Likewise.
29879         (__arm_vcmpneq_n_s8): Likewise.
29880         (__arm_vcmpltq_s8): Likewise.
29881         (__arm_vcmpltq_n_s8): Likewise.
29882         (__arm_vcmpleq_s8): Likewise.
29883         (__arm_vcmpleq_n_s8): Likewise.
29884         (__arm_vcmpgtq_s8): Likewise.
29885         (__arm_vcmpgtq_n_s8): Likewise.
29886         (__arm_vcmpgeq_s8): Likewise.
29887         (__arm_vcmpgeq_n_s8): Likewise.
29888         (__arm_vcmpeqq_s8): Likewise.
29889         (__arm_vcmpeqq_n_s8): Likewise.
29890         (__arm_vqshluq_n_s8): Likewise.
29891         (__arm_vaddvq_p_s8): Likewise.
29892         (__arm_vsubq_s8): Likewise.
29893         (__arm_vsubq_n_s8): Likewise.
29894         (__arm_vshlq_r_s8): Likewise.
29895         (__arm_vrshlq_s8): Likewise.
29896         (__arm_vrshlq_n_s8): Likewise.
29897         (__arm_vrmulhq_s8): Likewise.
29898         (__arm_vrhaddq_s8): Likewise.
29899         (__arm_vqsubq_s8): Likewise.
29900         (__arm_vqsubq_n_s8): Likewise.
29901         (__arm_vqshlq_s8): Likewise.
29902         (__arm_vqshlq_r_s8): Likewise.
29903         (__arm_vqrshlq_s8): Likewise.
29904         (__arm_vqrshlq_n_s8): Likewise.
29905         (__arm_vqrdmulhq_s8): Likewise.
29906         (__arm_vqrdmulhq_n_s8): Likewise.
29907         (__arm_vqdmulhq_s8): Likewise.
29908         (__arm_vqdmulhq_n_s8): Likewise.
29909         (__arm_vqaddq_s8): Likewise.
29910         (__arm_vqaddq_n_s8): Likewise.
29911         (__arm_vorrq_s8): Likewise.
29912         (__arm_vornq_s8): Likewise.
29913         (__arm_vmulq_s8): Likewise.
29914         (__arm_vmulq_n_s8): Likewise.
29915         (__arm_vmulltq_int_s8): Likewise.
29916         (__arm_vmullbq_int_s8): Likewise.
29917         (__arm_vmulhq_s8): Likewise.
29918         (__arm_vmlsdavxq_s8): Likewise.
29919         (__arm_vmlsdavq_s8): Likewise.
29920         (__arm_vmladavxq_s8): Likewise.
29921         (__arm_vmladavq_s8): Likewise.
29922         (__arm_vminvq_s8): Likewise.
29923         (__arm_vminq_s8): Likewise.
29924         (__arm_vmaxvq_s8): Likewise.
29925         (__arm_vmaxq_s8): Likewise.
29926         (__arm_vhsubq_s8): Likewise.
29927         (__arm_vhsubq_n_s8): Likewise.
29928         (__arm_vhcaddq_rot90_s8): Likewise.
29929         (__arm_vhcaddq_rot270_s8): Likewise.
29930         (__arm_vhaddq_s8): Likewise.
29931         (__arm_vhaddq_n_s8): Likewise.
29932         (__arm_veorq_s8): Likewise.
29933         (__arm_vcaddq_rot90_s8): Likewise.
29934         (__arm_vcaddq_rot270_s8): Likewise.
29935         (__arm_vbrsrq_n_s8): Likewise.
29936         (__arm_vbicq_s8): Likewise.
29937         (__arm_vandq_s8): Likewise.
29938         (__arm_vaddvaq_s8): Likewise.
29939         (__arm_vaddq_n_s8): Likewise.
29940         (__arm_vabdq_s8): Likewise.
29941         (__arm_vshlq_n_s8): Likewise.
29942         (__arm_vrshrq_n_s8): Likewise.
29943         (__arm_vqshlq_n_s8): Likewise.
29944         (__arm_vsubq_u16): Likewise.
29945         (__arm_vsubq_n_u16): Likewise.
29946         (__arm_vrmulhq_u16): Likewise.
29947         (__arm_vrhaddq_u16): Likewise.
29948         (__arm_vqsubq_u16): Likewise.
29949         (__arm_vqsubq_n_u16): Likewise.
29950         (__arm_vqaddq_u16): Likewise.
29951         (__arm_vqaddq_n_u16): Likewise.
29952         (__arm_vorrq_u16): Likewise.
29953         (__arm_vornq_u16): Likewise.
29954         (__arm_vmulq_u16): Likewise.
29955         (__arm_vmulq_n_u16): Likewise.
29956         (__arm_vmulltq_int_u16): Likewise.
29957         (__arm_vmullbq_int_u16): Likewise.
29958         (__arm_vmulhq_u16): Likewise.
29959         (__arm_vmladavq_u16): Likewise.
29960         (__arm_vminvq_u16): Likewise.
29961         (__arm_vminq_u16): Likewise.
29962         (__arm_vmaxvq_u16): Likewise.
29963         (__arm_vmaxq_u16): Likewise.
29964         (__arm_vhsubq_u16): Likewise.
29965         (__arm_vhsubq_n_u16): Likewise.
29966         (__arm_vhaddq_u16): Likewise.
29967         (__arm_vhaddq_n_u16): Likewise.
29968         (__arm_veorq_u16): Likewise.
29969         (__arm_vcmpneq_n_u16): Likewise.
29970         (__arm_vcmphiq_u16): Likewise.
29971         (__arm_vcmphiq_n_u16): Likewise.
29972         (__arm_vcmpeqq_u16): Likewise.
29973         (__arm_vcmpeqq_n_u16): Likewise.
29974         (__arm_vcmpcsq_u16): Likewise.
29975         (__arm_vcmpcsq_n_u16): Likewise.
29976         (__arm_vcaddq_rot90_u16): Likewise.
29977         (__arm_vcaddq_rot270_u16): Likewise.
29978         (__arm_vbicq_u16): Likewise.
29979         (__arm_vandq_u16): Likewise.
29980         (__arm_vaddvq_p_u16): Likewise.
29981         (__arm_vaddvaq_u16): Likewise.
29982         (__arm_vaddq_n_u16): Likewise.
29983         (__arm_vabdq_u16): Likewise.
29984         (__arm_vshlq_r_u16): Likewise.
29985         (__arm_vrshlq_u16): Likewise.
29986         (__arm_vrshlq_n_u16): Likewise.
29987         (__arm_vqshlq_u16): Likewise.
29988         (__arm_vqshlq_r_u16): Likewise.
29989         (__arm_vqrshlq_u16): Likewise.
29990         (__arm_vqrshlq_n_u16): Likewise.
29991         (__arm_vminavq_s16): Likewise.
29992         (__arm_vminaq_s16): Likewise.
29993         (__arm_vmaxavq_s16): Likewise.
29994         (__arm_vmaxaq_s16): Likewise.
29995         (__arm_vbrsrq_n_u16): Likewise.
29996         (__arm_vshlq_n_u16): Likewise.
29997         (__arm_vrshrq_n_u16): Likewise.
29998         (__arm_vqshlq_n_u16): Likewise.
29999         (__arm_vcmpneq_n_s16): Likewise.
30000         (__arm_vcmpltq_s16): Likewise.
30001         (__arm_vcmpltq_n_s16): Likewise.
30002         (__arm_vcmpleq_s16): Likewise.
30003         (__arm_vcmpleq_n_s16): Likewise.
30004         (__arm_vcmpgtq_s16): Likewise.
30005         (__arm_vcmpgtq_n_s16): Likewise.
30006         (__arm_vcmpgeq_s16): Likewise.
30007         (__arm_vcmpgeq_n_s16): Likewise.
30008         (__arm_vcmpeqq_s16): Likewise.
30009         (__arm_vcmpeqq_n_s16): Likewise.
30010         (__arm_vqshluq_n_s16): Likewise.
30011         (__arm_vaddvq_p_s16): Likewise.
30012         (__arm_vsubq_s16): Likewise.
30013         (__arm_vsubq_n_s16): Likewise.
30014         (__arm_vshlq_r_s16): Likewise.
30015         (__arm_vrshlq_s16): Likewise.
30016         (__arm_vrshlq_n_s16): Likewise.
30017         (__arm_vrmulhq_s16): Likewise.
30018         (__arm_vrhaddq_s16): Likewise.
30019         (__arm_vqsubq_s16): Likewise.
30020         (__arm_vqsubq_n_s16): Likewise.
30021         (__arm_vqshlq_s16): Likewise.
30022         (__arm_vqshlq_r_s16): Likewise.
30023         (__arm_vqrshlq_s16): Likewise.
30024         (__arm_vqrshlq_n_s16): Likewise.
30025         (__arm_vqrdmulhq_s16): Likewise.
30026         (__arm_vqrdmulhq_n_s16): Likewise.
30027         (__arm_vqdmulhq_s16): Likewise.
30028         (__arm_vqdmulhq_n_s16): Likewise.
30029         (__arm_vqaddq_s16): Likewise.
30030         (__arm_vqaddq_n_s16): Likewise.
30031         (__arm_vorrq_s16): Likewise.
30032         (__arm_vornq_s16): Likewise.
30033         (__arm_vmulq_s16): Likewise.
30034         (__arm_vmulq_n_s16): Likewise.
30035         (__arm_vmulltq_int_s16): Likewise.
30036         (__arm_vmullbq_int_s16): Likewise.
30037         (__arm_vmulhq_s16): Likewise.
30038         (__arm_vmlsdavxq_s16): Likewise.
30039         (__arm_vmlsdavq_s16): Likewise.
30040         (__arm_vmladavxq_s16): Likewise.
30041         (__arm_vmladavq_s16): Likewise.
30042         (__arm_vminvq_s16): Likewise.
30043         (__arm_vminq_s16): Likewise.
30044         (__arm_vmaxvq_s16): Likewise.
30045         (__arm_vmaxq_s16): Likewise.
30046         (__arm_vhsubq_s16): Likewise.
30047         (__arm_vhsubq_n_s16): Likewise.
30048         (__arm_vhcaddq_rot90_s16): Likewise.
30049         (__arm_vhcaddq_rot270_s16): Likewise.
30050         (__arm_vhaddq_s16): Likewise.
30051         (__arm_vhaddq_n_s16): Likewise.
30052         (__arm_veorq_s16): Likewise.
30053         (__arm_vcaddq_rot90_s16): Likewise.
30054         (__arm_vcaddq_rot270_s16): Likewise.
30055         (__arm_vbrsrq_n_s16): Likewise.
30056         (__arm_vbicq_s16): Likewise.
30057         (__arm_vandq_s16): Likewise.
30058         (__arm_vaddvaq_s16): Likewise.
30059         (__arm_vaddq_n_s16): Likewise.
30060         (__arm_vabdq_s16): Likewise.
30061         (__arm_vshlq_n_s16): Likewise.
30062         (__arm_vrshrq_n_s16): Likewise.
30063         (__arm_vqshlq_n_s16): Likewise.
30064         (__arm_vsubq_u32): Likewise.
30065         (__arm_vsubq_n_u32): Likewise.
30066         (__arm_vrmulhq_u32): Likewise.
30067         (__arm_vrhaddq_u32): Likewise.
30068         (__arm_vqsubq_u32): Likewise.
30069         (__arm_vqsubq_n_u32): Likewise.
30070         (__arm_vqaddq_u32): Likewise.
30071         (__arm_vqaddq_n_u32): Likewise.
30072         (__arm_vorrq_u32): Likewise.
30073         (__arm_vornq_u32): Likewise.
30074         (__arm_vmulq_u32): Likewise.
30075         (__arm_vmulq_n_u32): Likewise.
30076         (__arm_vmulltq_int_u32): Likewise.
30077         (__arm_vmullbq_int_u32): Likewise.
30078         (__arm_vmulhq_u32): Likewise.
30079         (__arm_vmladavq_u32): Likewise.
30080         (__arm_vminvq_u32): Likewise.
30081         (__arm_vminq_u32): Likewise.
30082         (__arm_vmaxvq_u32): Likewise.
30083         (__arm_vmaxq_u32): Likewise.
30084         (__arm_vhsubq_u32): Likewise.
30085         (__arm_vhsubq_n_u32): Likewise.
30086         (__arm_vhaddq_u32): Likewise.
30087         (__arm_vhaddq_n_u32): Likewise.
30088         (__arm_veorq_u32): Likewise.
30089         (__arm_vcmpneq_n_u32): Likewise.
30090         (__arm_vcmphiq_u32): Likewise.
30091         (__arm_vcmphiq_n_u32): Likewise.
30092         (__arm_vcmpeqq_u32): Likewise.
30093         (__arm_vcmpeqq_n_u32): Likewise.
30094         (__arm_vcmpcsq_u32): Likewise.
30095         (__arm_vcmpcsq_n_u32): Likewise.
30096         (__arm_vcaddq_rot90_u32): Likewise.
30097         (__arm_vcaddq_rot270_u32): Likewise.
30098         (__arm_vbicq_u32): Likewise.
30099         (__arm_vandq_u32): Likewise.
30100         (__arm_vaddvq_p_u32): Likewise.
30101         (__arm_vaddvaq_u32): Likewise.
30102         (__arm_vaddq_n_u32): Likewise.
30103         (__arm_vabdq_u32): Likewise.
30104         (__arm_vshlq_r_u32): Likewise.
30105         (__arm_vrshlq_u32): Likewise.
30106         (__arm_vrshlq_n_u32): Likewise.
30107         (__arm_vqshlq_u32): Likewise.
30108         (__arm_vqshlq_r_u32): Likewise.
30109         (__arm_vqrshlq_u32): Likewise.
30110         (__arm_vqrshlq_n_u32): Likewise.
30111         (__arm_vminavq_s32): Likewise.
30112         (__arm_vminaq_s32): Likewise.
30113         (__arm_vmaxavq_s32): Likewise.
30114         (__arm_vmaxaq_s32): Likewise.
30115         (__arm_vbrsrq_n_u32): Likewise.
30116         (__arm_vshlq_n_u32): Likewise.
30117         (__arm_vrshrq_n_u32): Likewise.
30118         (__arm_vqshlq_n_u32): Likewise.
30119         (__arm_vcmpneq_n_s32): Likewise.
30120         (__arm_vcmpltq_s32): Likewise.
30121         (__arm_vcmpltq_n_s32): Likewise.
30122         (__arm_vcmpleq_s32): Likewise.
30123         (__arm_vcmpleq_n_s32): Likewise.
30124         (__arm_vcmpgtq_s32): Likewise.
30125         (__arm_vcmpgtq_n_s32): Likewise.
30126         (__arm_vcmpgeq_s32): Likewise.
30127         (__arm_vcmpgeq_n_s32): Likewise.
30128         (__arm_vcmpeqq_s32): Likewise.
30129         (__arm_vcmpeqq_n_s32): Likewise.
30130         (__arm_vqshluq_n_s32): Likewise.
30131         (__arm_vaddvq_p_s32): Likewise.
30132         (__arm_vsubq_s32): Likewise.
30133         (__arm_vsubq_n_s32): Likewise.
30134         (__arm_vshlq_r_s32): Likewise.
30135         (__arm_vrshlq_s32): Likewise.
30136         (__arm_vrshlq_n_s32): Likewise.
30137         (__arm_vrmulhq_s32): Likewise.
30138         (__arm_vrhaddq_s32): Likewise.
30139         (__arm_vqsubq_s32): Likewise.
30140         (__arm_vqsubq_n_s32): Likewise.
30141         (__arm_vqshlq_s32): Likewise.
30142         (__arm_vqshlq_r_s32): Likewise.
30143         (__arm_vqrshlq_s32): Likewise.
30144         (__arm_vqrshlq_n_s32): Likewise.
30145         (__arm_vqrdmulhq_s32): Likewise.
30146         (__arm_vqrdmulhq_n_s32): Likewise.
30147         (__arm_vqdmulhq_s32): Likewise.
30148         (__arm_vqdmulhq_n_s32): Likewise.
30149         (__arm_vqaddq_s32): Likewise.
30150         (__arm_vqaddq_n_s32): Likewise.
30151         (__arm_vorrq_s32): Likewise.
30152         (__arm_vornq_s32): Likewise.
30153         (__arm_vmulq_s32): Likewise.
30154         (__arm_vmulq_n_s32): Likewise.
30155         (__arm_vmulltq_int_s32): Likewise.
30156         (__arm_vmullbq_int_s32): Likewise.
30157         (__arm_vmulhq_s32): Likewise.
30158         (__arm_vmlsdavxq_s32): Likewise.
30159         (__arm_vmlsdavq_s32): Likewise.
30160         (__arm_vmladavxq_s32): Likewise.
30161         (__arm_vmladavq_s32): Likewise.
30162         (__arm_vminvq_s32): Likewise.
30163         (__arm_vminq_s32): Likewise.
30164         (__arm_vmaxvq_s32): Likewise.
30165         (__arm_vmaxq_s32): Likewise.
30166         (__arm_vhsubq_s32): Likewise.
30167         (__arm_vhsubq_n_s32): Likewise.
30168         (__arm_vhcaddq_rot90_s32): Likewise.
30169         (__arm_vhcaddq_rot270_s32): Likewise.
30170         (__arm_vhaddq_s32): Likewise.
30171         (__arm_vhaddq_n_s32): Likewise.
30172         (__arm_veorq_s32): Likewise.
30173         (__arm_vcaddq_rot90_s32): Likewise.
30174         (__arm_vcaddq_rot270_s32): Likewise.
30175         (__arm_vbrsrq_n_s32): Likewise.
30176         (__arm_vbicq_s32): Likewise.
30177         (__arm_vandq_s32): Likewise.
30178         (__arm_vaddvaq_s32): Likewise.
30179         (__arm_vaddq_n_s32): Likewise.
30180         (__arm_vabdq_s32): Likewise.
30181         (__arm_vshlq_n_s32): Likewise.
30182         (__arm_vrshrq_n_s32): Likewise.
30183         (__arm_vqshlq_n_s32): Likewise.
30184         (vsubq): Define polymorphic variant.
30185         (vsubq_n): Likewise.
30186         (vshlq_r): Likewise.
30187         (vrshlq_n): Likewise.
30188         (vrshlq): Likewise.
30189         (vrmulhq): Likewise.
30190         (vrhaddq): Likewise.
30191         (vqsubq_n): Likewise.
30192         (vqsubq): Likewise.
30193         (vqshlq): Likewise.
30194         (vqshlq_r): Likewise.
30195         (vqshluq): Likewise.
30196         (vrshrq_n): Likewise.
30197         (vshlq_n): Likewise.
30198         (vqshluq_n): Likewise.
30199         (vqshlq_n): Likewise.
30200         (vqrshlq_n): Likewise.
30201         (vqrshlq): Likewise.
30202         (vqrdmulhq_n): Likewise.
30203         (vqrdmulhq): Likewise.
30204         (vqdmulhq_n): Likewise.
30205         (vqdmulhq): Likewise.
30206         (vqaddq_n): Likewise.
30207         (vqaddq): Likewise.
30208         (vorrq_n): Likewise.
30209         (vorrq): Likewise.
30210         (vornq): Likewise.
30211         (vmulq_n): Likewise.
30212         (vmulq): Likewise.
30213         (vmulltq_int): Likewise.
30214         (vmullbq_int): Likewise.
30215         (vmulhq): Likewise.
30216         (vminq): Likewise.
30217         (vminaq): Likewise.
30218         (vmaxq): Likewise.
30219         (vmaxaq): Likewise.
30220         (vhsubq_n): Likewise.
30221         (vhsubq): Likewise.
30222         (vhcaddq_rot90): Likewise.
30223         (vhcaddq_rot270): Likewise.
30224         (vhaddq_n): Likewise.
30225         (vhaddq): Likewise.
30226         (veorq): Likewise.
30227         (vcaddq_rot90): Likewise.
30228         (vcaddq_rot270): Likewise.
30229         (vbrsrq_n): Likewise.
30230         (vbicq_n): Likewise.
30231         (vbicq): Likewise.
30232         (vaddq): Likewise.
30233         (vaddq_n): Likewise.
30234         (vandq): Likewise.
30235         (vabdq): Likewise.
30236         * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
30237         (BINOP_NONE_NONE_NONE): Likewise.
30238         (BINOP_NONE_NONE_UNONE): Likewise.
30239         (BINOP_UNONE_NONE_IMM): Likewise.
30240         (BINOP_UNONE_NONE_NONE): Likewise.
30241         (BINOP_UNONE_UNONE_IMM): Likewise.
30242         (BINOP_UNONE_UNONE_NONE): Likewise.
30243         (BINOP_UNONE_UNONE_UNONE): Likewise.
30244         * config/arm/constraints.md (Ra): Define constraint to check constant is
30245         in the range of 0 to 7.
30246         (Rg): Define constriant to check the constant is one among 1, 2, 4
30247         and 8.
30248         * config/arm/mve.md (mve_vabdq_<supf>): Define RTL pattern.
30249         (mve_vaddq_n_<supf>): Likewise.
30250         (mve_vaddvaq_<supf>): Likewise.
30251         (mve_vaddvq_p_<supf>): Likewise.
30252         (mve_vandq_<supf>): Likewise.
30253         (mve_vbicq_<supf>): Likewise.
30254         (mve_vbrsrq_n_<supf>): Likewise.
30255         (mve_vcaddq_rot270_<supf>): Likewise.
30256         (mve_vcaddq_rot90_<supf>): Likewise.
30257         (mve_vcmpcsq_n_u): Likewise.
30258         (mve_vcmpcsq_u): Likewise.
30259         (mve_vcmpeqq_n_<supf>): Likewise.
30260         (mve_vcmpeqq_<supf>): Likewise.
30261         (mve_vcmpgeq_n_s): Likewise.
30262         (mve_vcmpgeq_s): Likewise.
30263         (mve_vcmpgtq_n_s): Likewise.
30264         (mve_vcmpgtq_s): Likewise.
30265         (mve_vcmphiq_n_u): Likewise.
30266         (mve_vcmphiq_u): Likewise.
30267         (mve_vcmpleq_n_s): Likewise.
30268         (mve_vcmpleq_s): Likewise.
30269         (mve_vcmpltq_n_s): Likewise.
30270         (mve_vcmpltq_s): Likewise.
30271         (mve_vcmpneq_n_<supf>): Likewise.
30272         (mve_vddupq_n_u): Likewise.
30273         (mve_veorq_<supf>): Likewise.
30274         (mve_vhaddq_n_<supf>): Likewise.
30275         (mve_vhaddq_<supf>): Likewise.
30276         (mve_vhcaddq_rot270_s): Likewise.
30277         (mve_vhcaddq_rot90_s): Likewise.
30278         (mve_vhsubq_n_<supf>): Likewise.
30279         (mve_vhsubq_<supf>): Likewise.
30280         (mve_vidupq_n_u): Likewise.
30281         (mve_vmaxaq_s): Likewise.
30282         (mve_vmaxavq_s): Likewise.
30283         (mve_vmaxq_<supf>): Likewise.
30284         (mve_vmaxvq_<supf>): Likewise.
30285         (mve_vminaq_s): Likewise.
30286         (mve_vminavq_s): Likewise.
30287         (mve_vminq_<supf>): Likewise.
30288         (mve_vminvq_<supf>): Likewise.
30289         (mve_vmladavq_<supf>): Likewise.
30290         (mve_vmladavxq_s): Likewise.
30291         (mve_vmlsdavq_s): Likewise.
30292         (mve_vmlsdavxq_s): Likewise.
30293         (mve_vmulhq_<supf>): Likewise.
30294         (mve_vmullbq_int_<supf>): Likewise.
30295         (mve_vmulltq_int_<supf>): Likewise.
30296         (mve_vmulq_n_<supf>): Likewise.
30297         (mve_vmulq_<supf>): Likewise.
30298         (mve_vornq_<supf>): Likewise.
30299         (mve_vorrq_<supf>): Likewise.
30300         (mve_vqaddq_n_<supf>): Likewise.
30301         (mve_vqaddq_<supf>): Likewise.
30302         (mve_vqdmulhq_n_s): Likewise.
30303         (mve_vqdmulhq_s): Likewise.
30304         (mve_vqrdmulhq_n_s): Likewise.
30305         (mve_vqrdmulhq_s): Likewise.
30306         (mve_vqrshlq_n_<supf>): Likewise.
30307         (mve_vqrshlq_<supf>): Likewise.
30308         (mve_vqshlq_n_<supf>): Likewise.
30309         (mve_vqshlq_r_<supf>): Likewise.
30310         (mve_vqshlq_<supf>): Likewise.
30311         (mve_vqshluq_n_s): Likewise.
30312         (mve_vqsubq_n_<supf>): Likewise.
30313         (mve_vqsubq_<supf>): Likewise.
30314         (mve_vrhaddq_<supf>): Likewise.
30315         (mve_vrmulhq_<supf>): Likewise.
30316         (mve_vrshlq_n_<supf>): Likewise.
30317         (mve_vrshlq_<supf>): Likewise.
30318         (mve_vrshrq_n_<supf>): Likewise.
30319         (mve_vshlq_n_<supf>): Likewise.
30320         (mve_vshlq_r_<supf>): Likewise.
30321         (mve_vsubq_n_<supf>): Likewise.
30322         (mve_vsubq_<supf>): Likewise.
30323         * config/arm/predicates.md (mve_imm_7): Define predicate to check
30324         the matching constraint Ra.
30325         (mve_imm_selective_upto_8): Define predicate to check the matching
30326         constraint Rg.
30328 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30329             Mihail Ionescu  <mihail.ionescu@arm.com>
30330             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
30332         * config/arm/arm-builtins.c (BINOP_NONE_NONE_UNONE_QUALIFIERS): Define
30333         qualifier for binary operands.
30334         (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
30335         (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
30336         * config/arm/arm_mve.h (vaddlvq_p_s32): Define macro.
30337         (vaddlvq_p_u32): Likewise.
30338         (vcmpneq_s8): Likewise.
30339         (vcmpneq_s16): Likewise.
30340         (vcmpneq_s32): Likewise.
30341         (vcmpneq_u8): Likewise.
30342         (vcmpneq_u16): Likewise.
30343         (vcmpneq_u32): Likewise.
30344         (vshlq_s8): Likewise.
30345         (vshlq_s16): Likewise.
30346         (vshlq_s32): Likewise.
30347         (vshlq_u8): Likewise.
30348         (vshlq_u16): Likewise.
30349         (vshlq_u32): Likewise.
30350         (__arm_vaddlvq_p_s32): Define intrinsic.
30351         (__arm_vaddlvq_p_u32): Likewise.
30352         (__arm_vcmpneq_s8): Likewise.
30353         (__arm_vcmpneq_s16): Likewise.
30354         (__arm_vcmpneq_s32): Likewise.
30355         (__arm_vcmpneq_u8): Likewise.
30356         (__arm_vcmpneq_u16): Likewise.
30357         (__arm_vcmpneq_u32): Likewise.
30358         (__arm_vshlq_s8): Likewise.
30359         (__arm_vshlq_s16): Likewise.
30360         (__arm_vshlq_s32): Likewise.
30361         (__arm_vshlq_u8): Likewise.
30362         (__arm_vshlq_u16): Likewise.
30363         (__arm_vshlq_u32): Likewise.
30364         (vaddlvq_p): Define polymorphic variant.
30365         (vcmpneq): Likewise.
30366         (vshlq): Likewise.
30367         * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_UNONE_QUALIFIERS):
30368         Use it.
30369         (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
30370         (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
30371         * config/arm/mve.md (mve_vaddlvq_p_<supf>v4si): Define RTL pattern.
30372         (mve_vcmpneq_<supf><mode>): Likewise.
30373         (mve_vshlq_<supf><mode>): Likewise.
30375 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30376             Mihail Ionescu  <mihail.ionescu@arm.com>
30377             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
30379         * config/arm/arm-builtins.c (BINOP_UNONE_UNONE_IMM_QUALIFIERS): Define
30380         qualifier for binary operands.
30381         (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
30382         (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
30383         * config/arm/arm_mve.h (vcvtq_n_s16_f16): Define macro.
30384         (vcvtq_n_s32_f32): Likewise.
30385         (vcvtq_n_u16_f16): Likewise.
30386         (vcvtq_n_u32_f32): Likewise.
30387         (vcreateq_u8): Likewise.
30388         (vcreateq_u16): Likewise.
30389         (vcreateq_u32): Likewise.
30390         (vcreateq_u64): Likewise.
30391         (vcreateq_s8): Likewise.
30392         (vcreateq_s16): Likewise.
30393         (vcreateq_s32): Likewise.
30394         (vcreateq_s64): Likewise.
30395         (vshrq_n_s8): Likewise.
30396         (vshrq_n_s16): Likewise.
30397         (vshrq_n_s32): Likewise.
30398         (vshrq_n_u8): Likewise.
30399         (vshrq_n_u16): Likewise.
30400         (vshrq_n_u32): Likewise.
30401         (__arm_vcreateq_u8): Define intrinsic.
30402         (__arm_vcreateq_u16): Likewise.
30403         (__arm_vcreateq_u32): Likewise.
30404         (__arm_vcreateq_u64): Likewise.
30405         (__arm_vcreateq_s8): Likewise.
30406         (__arm_vcreateq_s16): Likewise.
30407         (__arm_vcreateq_s32): Likewise.
30408         (__arm_vcreateq_s64): Likewise.
30409         (__arm_vshrq_n_s8): Likewise.
30410         (__arm_vshrq_n_s16): Likewise.
30411         (__arm_vshrq_n_s32): Likewise.
30412         (__arm_vshrq_n_u8): Likewise.
30413         (__arm_vshrq_n_u16): Likewise.
30414         (__arm_vshrq_n_u32): Likewise.
30415         (__arm_vcvtq_n_s16_f16): Likewise.
30416         (__arm_vcvtq_n_s32_f32): Likewise.
30417         (__arm_vcvtq_n_u16_f16): Likewise.
30418         (__arm_vcvtq_n_u32_f32): Likewise.
30419         (vshrq_n): Define polymorphic variant.
30420         * config/arm/arm_mve_builtins.def (BINOP_UNONE_UNONE_IMM_QUALIFIERS):
30421         Use it.
30422         (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
30423         (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
30424         * config/arm/constraints.md (Rb): Define constraint to check constant is
30425         in the range of 1 to 8.
30426         (Rf): Define constraint to check constant is in the range of 1 to 32.
30427         * config/arm/mve.md (mve_vcreateq_<supf><mode>): Define RTL pattern.
30428         (mve_vshrq_n_<supf><mode>): Likewise.
30429         (mve_vcvtq_n_from_f_<supf><mode>): Likewise.
30430         * config/arm/predicates.md (mve_imm_8): Define predicate to check
30431         the matching constraint Rb.
30432         (mve_imm_32): Define predicate to check the matching constraint Rf.
30434 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30435             Mihail Ionescu  <mihail.ionescu@arm.com>
30436             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
30438         * config/arm/arm-builtins.c (BINOP_NONE_NONE_NONE_QUALIFIERS): Define
30439         qualifier for binary operands.
30440         (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
30441         (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
30442         (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
30443         * config/arm/arm_mve.h (vsubq_n_f16): Define macro.
30444         (vsubq_n_f32): Likewise.
30445         (vbrsrq_n_f16): Likewise.
30446         (vbrsrq_n_f32): Likewise.
30447         (vcvtq_n_f16_s16): Likewise.
30448         (vcvtq_n_f32_s32): Likewise.
30449         (vcvtq_n_f16_u16): Likewise.
30450         (vcvtq_n_f32_u32): Likewise.
30451         (vcreateq_f16): Likewise.
30452         (vcreateq_f32): Likewise.
30453         (__arm_vsubq_n_f16): Define intrinsic.
30454         (__arm_vsubq_n_f32): Likewise.
30455         (__arm_vbrsrq_n_f16): Likewise.
30456         (__arm_vbrsrq_n_f32): Likewise.
30457         (__arm_vcvtq_n_f16_s16): Likewise.
30458         (__arm_vcvtq_n_f32_s32): Likewise.
30459         (__arm_vcvtq_n_f16_u16): Likewise.
30460         (__arm_vcvtq_n_f32_u32): Likewise.
30461         (__arm_vcreateq_f16): Likewise.
30462         (__arm_vcreateq_f32): Likewise.
30463         (vsubq): Define polymorphic variant.
30464         (vbrsrq): Likewise.
30465         (vcvtq_n): Likewise.
30466         * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE_QUALIFIERS): Use
30467         it.
30468         (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
30469         (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
30470         (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
30471         * config/arm/constraints.md (Rd): Define constraint to check constant is
30472         in the range of 1 to 16.
30473         * config/arm/mve.md (mve_vsubq_n_f<mode>): Define RTL pattern.
30474         mve_vbrsrq_n_f<mode>: Likewise.
30475         mve_vcvtq_n_to_f_<supf><mode>: Likewise.
30476         mve_vcreateq_f<mode>: Likewise.
30477         * config/arm/predicates.md (mve_imm_16): Define predicate to check
30478         the matching constraint Rd.
30480 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30481             Mihail Ionescu  <mihail.ionescu@arm.com>
30482             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
30484         * config/arm/arm-builtins.c (hi_UP): Define mode.
30485         * config/arm/arm.h (IS_VPR_REGNUM): Move.
30486         * config/arm/arm.md (VPR_REGNUM): Define before APSRQ_REGNUM.
30487         (APSRQ_REGNUM): Modify.
30488         (APSRGE_REGNUM): Modify.
30489         * config/arm/arm_mve.h (vctp16q): Define macro.
30490         (vctp32q): Likewise.
30491         (vctp64q): Likewise.
30492         (vctp8q): Likewise.
30493         (vpnot): Likewise.
30494         (__arm_vctp16q): Define intrinsic.
30495         (__arm_vctp32q): Likewise.
30496         (__arm_vctp64q): Likewise.
30497         (__arm_vctp8q): Likewise.
30498         (__arm_vpnot): Likewise.
30499         * config/arm/arm_mve_builtins.def (UNOP_UNONE_UNONE): Use builtin
30500         qualifier.
30501         * config/arm/mve.md (mve_vctp<mode1>qhi): Define RTL pattern.
30502         (mve_vpnothi): Likewise.
30504 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30505             Mihail Ionescu  <mihail.ionescu@arm.com>
30506             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
30508         * config/arm/arm.h (enum reg_class): Define new class EVEN_REGS.
30509         * config/arm/arm_mve.h (vdupq_n_s8): Define macro.
30510         (vdupq_n_s16): Likewise.
30511         (vdupq_n_s32): Likewise.
30512         (vabsq_s8): Likewise.
30513         (vabsq_s16): Likewise.
30514         (vabsq_s32): Likewise.
30515         (vclsq_s8): Likewise.
30516         (vclsq_s16): Likewise.
30517         (vclsq_s32): Likewise.
30518         (vclzq_s8): Likewise.
30519         (vclzq_s16): Likewise.
30520         (vclzq_s32): Likewise.
30521         (vnegq_s8): Likewise.
30522         (vnegq_s16): Likewise.
30523         (vnegq_s32): Likewise.
30524         (vaddlvq_s32): Likewise.
30525         (vaddvq_s8): Likewise.
30526         (vaddvq_s16): Likewise.
30527         (vaddvq_s32): Likewise.
30528         (vmovlbq_s8): Likewise.
30529         (vmovlbq_s16): Likewise.
30530         (vmovltq_s8): Likewise.
30531         (vmovltq_s16): Likewise.
30532         (vmvnq_s8): Likewise.
30533         (vmvnq_s16): Likewise.
30534         (vmvnq_s32): Likewise.
30535         (vrev16q_s8): Likewise.
30536         (vrev32q_s8): Likewise.
30537         (vrev32q_s16): Likewise.
30538         (vqabsq_s8): Likewise.
30539         (vqabsq_s16): Likewise.
30540         (vqabsq_s32): Likewise.
30541         (vqnegq_s8): Likewise.
30542         (vqnegq_s16): Likewise.
30543         (vqnegq_s32): Likewise.
30544         (vcvtaq_s16_f16): Likewise.
30545         (vcvtaq_s32_f32): Likewise.
30546         (vcvtnq_s16_f16): Likewise.
30547         (vcvtnq_s32_f32): Likewise.
30548         (vcvtpq_s16_f16): Likewise.
30549         (vcvtpq_s32_f32): Likewise.
30550         (vcvtmq_s16_f16): Likewise.
30551         (vcvtmq_s32_f32): Likewise.
30552         (vmvnq_u8): Likewise.
30553         (vmvnq_u16): Likewise.
30554         (vmvnq_u32): Likewise.
30555         (vdupq_n_u8): Likewise.
30556         (vdupq_n_u16): Likewise.
30557         (vdupq_n_u32): Likewise.
30558         (vclzq_u8): Likewise.
30559         (vclzq_u16): Likewise.
30560         (vclzq_u32): Likewise.
30561         (vaddvq_u8): Likewise.
30562         (vaddvq_u16): Likewise.
30563         (vaddvq_u32): Likewise.
30564         (vrev32q_u8): Likewise.
30565         (vrev32q_u16): Likewise.
30566         (vmovltq_u8): Likewise.
30567         (vmovltq_u16): Likewise.
30568         (vmovlbq_u8): Likewise.
30569         (vmovlbq_u16): Likewise.
30570         (vrev16q_u8): Likewise.
30571         (vaddlvq_u32): Likewise.
30572         (vcvtpq_u16_f16): Likewise.
30573         (vcvtpq_u32_f32): Likewise.
30574         (vcvtnq_u16_f16): Likewise.
30575         (vcvtmq_u16_f16): Likewise.
30576         (vcvtmq_u32_f32): Likewise.
30577         (vcvtaq_u16_f16): Likewise.
30578         (vcvtaq_u32_f32): Likewise.
30579         (__arm_vdupq_n_s8): Define intrinsic.
30580         (__arm_vdupq_n_s16): Likewise.
30581         (__arm_vdupq_n_s32): Likewise.
30582         (__arm_vabsq_s8): Likewise.
30583         (__arm_vabsq_s16): Likewise.
30584         (__arm_vabsq_s32): Likewise.
30585         (__arm_vclsq_s8): Likewise.
30586         (__arm_vclsq_s16): Likewise.
30587         (__arm_vclsq_s32): Likewise.
30588         (__arm_vclzq_s8): Likewise.
30589         (__arm_vclzq_s16): Likewise.
30590         (__arm_vclzq_s32): Likewise.
30591         (__arm_vnegq_s8): Likewise.
30592         (__arm_vnegq_s16): Likewise.
30593         (__arm_vnegq_s32): Likewise.
30594         (__arm_vaddlvq_s32): Likewise.
30595         (__arm_vaddvq_s8): Likewise.
30596         (__arm_vaddvq_s16): Likewise.
30597         (__arm_vaddvq_s32): Likewise.
30598         (__arm_vmovlbq_s8): Likewise.
30599         (__arm_vmovlbq_s16): Likewise.
30600         (__arm_vmovltq_s8): Likewise.
30601         (__arm_vmovltq_s16): Likewise.
30602         (__arm_vmvnq_s8): Likewise.
30603         (__arm_vmvnq_s16): Likewise.
30604         (__arm_vmvnq_s32): Likewise.
30605         (__arm_vrev16q_s8): Likewise.
30606         (__arm_vrev32q_s8): Likewise.
30607         (__arm_vrev32q_s16): Likewise.
30608         (__arm_vqabsq_s8): Likewise.
30609         (__arm_vqabsq_s16): Likewise.
30610         (__arm_vqabsq_s32): Likewise.
30611         (__arm_vqnegq_s8): Likewise.
30612         (__arm_vqnegq_s16): Likewise.
30613         (__arm_vqnegq_s32): Likewise.
30614         (__arm_vmvnq_u8): Likewise.
30615         (__arm_vmvnq_u16): Likewise.
30616         (__arm_vmvnq_u32): Likewise.
30617         (__arm_vdupq_n_u8): Likewise.
30618         (__arm_vdupq_n_u16): Likewise.
30619         (__arm_vdupq_n_u32): Likewise.
30620         (__arm_vclzq_u8): Likewise.
30621         (__arm_vclzq_u16): Likewise.
30622         (__arm_vclzq_u32): Likewise.
30623         (__arm_vaddvq_u8): Likewise.
30624         (__arm_vaddvq_u16): Likewise.
30625         (__arm_vaddvq_u32): Likewise.
30626         (__arm_vrev32q_u8): Likewise.
30627         (__arm_vrev32q_u16): Likewise.
30628         (__arm_vmovltq_u8): Likewise.
30629         (__arm_vmovltq_u16): Likewise.
30630         (__arm_vmovlbq_u8): Likewise.
30631         (__arm_vmovlbq_u16): Likewise.
30632         (__arm_vrev16q_u8): Likewise.
30633         (__arm_vaddlvq_u32): Likewise.
30634         (__arm_vcvtpq_u16_f16): Likewise.
30635         (__arm_vcvtpq_u32_f32): Likewise.
30636         (__arm_vcvtnq_u16_f16): Likewise.
30637         (__arm_vcvtmq_u16_f16): Likewise.
30638         (__arm_vcvtmq_u32_f32): Likewise.
30639         (__arm_vcvtaq_u16_f16): Likewise.
30640         (__arm_vcvtaq_u32_f32): Likewise.
30641         (__arm_vcvtaq_s16_f16): Likewise.
30642         (__arm_vcvtaq_s32_f32): Likewise.
30643         (__arm_vcvtnq_s16_f16): Likewise.
30644         (__arm_vcvtnq_s32_f32): Likewise.
30645         (__arm_vcvtpq_s16_f16): Likewise.
30646         (__arm_vcvtpq_s32_f32): Likewise.
30647         (__arm_vcvtmq_s16_f16): Likewise.
30648         (__arm_vcvtmq_s32_f32): Likewise.
30649         (vdupq_n): Define polymorphic variant.
30650         (vabsq): Likewise.
30651         (vclsq): Likewise.
30652         (vclzq): Likewise.
30653         (vnegq): Likewise.
30654         (vaddlvq): Likewise.
30655         (vaddvq): Likewise.
30656         (vmovlbq): Likewise.
30657         (vmovltq): Likewise.
30658         (vmvnq): Likewise.
30659         (vrev16q): Likewise.
30660         (vrev32q): Likewise.
30661         (vqabsq): Likewise.
30662         (vqnegq): Likewise.
30663         * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
30664         (UNOP_SNONE_NONE): Likewise.
30665         (UNOP_UNONE_UNONE): Likewise.
30666         (UNOP_UNONE_NONE): Likewise.
30667         * config/arm/constraints.md (e): Define new constriant to allow only
30668         even registers.
30669         * config/arm/mve.md (mve_vqabsq_s<mode>): Define RTL pattern.
30670         (mve_vnegq_s<mode>): Likewise.
30671         (mve_vmvnq_<supf><mode>): Likewise.
30672         (mve_vdupq_n_<supf><mode>): Likewise.
30673         (mve_vclzq_<supf><mode>): Likewise.
30674         (mve_vclsq_s<mode>): Likewise.
30675         (mve_vaddvq_<supf><mode>): Likewise.
30676         (mve_vabsq_s<mode>): Likewise.
30677         (mve_vrev32q_<supf><mode>): Likewise.
30678         (mve_vmovltq_<supf><mode>): Likewise.
30679         (mve_vmovlbq_<supf><mode>): Likewise.
30680         (mve_vcvtpq_<supf><mode>): Likewise.
30681         (mve_vcvtnq_<supf><mode>): Likewise.
30682         (mve_vcvtmq_<supf><mode>): Likewise.
30683         (mve_vcvtaq_<supf><mode>): Likewise.
30684         (mve_vrev16q_<supf>v16qi): Likewise.
30685         (mve_vaddlvq_<supf>v4si): Likewise.
30687 2020-03-17  Jakub Jelinek  <jakub@redhat.com>
30689         * lra-spills.c (remove_pseudos): Fix up duplicated word issue in
30690         a dump message.
30691         * tree-sra.c (create_access_replacement): Fix up duplicated word issue
30692         in a comment.
30693         * read-rtl-function.c (find_param_by_name,
30694         function_reader::parse_enum_value, function_reader::get_insn_by_uid):
30695         Likewise.
30696         * spellcheck.c (get_edit_distance_cutoff): Likewise.
30697         * tree-data-ref.c (create_ifn_alias_checks): Likewise.
30698         * tree.def (SWITCH_EXPR): Likewise.
30699         * selftest.c (assert_str_contains): Likewise.
30700         * ipa-param-manipulation.h (class ipa_param_body_adjustments):
30701         Likewise.
30702         * tree-ssa-math-opts.c (convert_expand_mult_copysign): Likewise.
30703         * tree-ssa-loop-split.c (find_vdef_in_loop): Likewise.
30704         * langhooks.h (struct lang_hooks_for_decls): Likewise.
30705         * ipa-prop.h (struct ipa_param_descriptor): Likewise.
30706         * tree-ssa-strlen.c (handle_builtin_string_cmp, handle_store):
30707         Likewise.
30708         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
30709         * tree-ssa-reassoc.c (reassociate_bb): Likewise.
30710         * tree.c (component_ref_size): Likewise.
30711         * hsa-common.c (hsa_init_compilation_unit_data): Likewise.
30712         * gimple-ssa-sprintf.c (get_string_length, format_string,
30713         format_directive): Likewise.
30714         * omp-grid.c (grid_process_kernel_body_copy): Likewise.
30715         * input.c (string_concat_db::get_string_concatenation,
30716         test_lexer_string_locations_ucn4): Likewise.
30717         * cfgexpand.c (pass_expand::execute): Likewise.
30718         * gimple-ssa-warn-restrict.c (builtin_memref::offset_out_of_bounds,
30719         maybe_diag_overlap): Likewise.
30720         * rtl.c (RTX_CODE_HWINT_P_1): Likewise.
30721         * shrink-wrap.c (spread_components): Likewise.
30722         * tree-ssa-dse.c (initialize_ao_ref_for_dse, valid_ao_ref_for_dse):
30723         Likewise.
30724         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
30725         Likewise.
30726         * dwarf2out.c (dwarf2out_early_finish): Likewise.
30727         * gimple-ssa-store-merging.c: Likewise.
30728         * ira-costs.c (record_operand_costs): Likewise.
30729         * tree-vect-loop.c (vectorizable_reduction): Likewise.
30730         * target.def (dispatch): Likewise.
30731         (validate_dims, gen_ccmp_first): Fix up duplicated word issue
30732         in documentation text.
30733         * doc/tm.texi: Regenerated.
30734         * config/i386/x86-tune.def (X86_TUNE_PARTIAL_FLAG_REG_STALL): Fix up
30735         duplicated word issue in a comment.
30736         * config/i386/i386.c (ix86_test_loading_unspec): Likewise.
30737         * config/i386/i386-features.c (remove_partial_avx_dependency):
30738         Likewise.
30739         * config/msp430/msp430.c (msp430_select_section): Likewise.
30740         * config/gcn/gcn-run.c (load_image): Likewise.
30741         * config/aarch64/aarch64-sve.md (sve_ld1r<mode>): Likewise.
30742         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Likewise.
30743         * config/aarch64/falkor-tag-collision-avoidance.c
30744         (single_dest_per_chain): Likewise.
30745         * config/nvptx/nvptx.c (nvptx_record_fndecl): Likewise.
30746         * config/fr30/fr30.c (fr30_arg_partial_bytes): Likewise.
30747         * config/rs6000/rs6000-string.c (expand_cmp_vec_sequence): Likewise.
30748         * config/rs6000/rs6000-p8swap.c (replace_swapped_load_constant):
30749         Likewise.
30750         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
30751         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30752         * config/rs6000/rs6000-logue.c
30753         (rs6000_emit_probe_stack_range_stack_clash): Likewise.
30754         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Likewise.
30755         Fix various other issues in the comment.
30757 2020-03-17  Mihail Ionescu  <mihail.ionescu@arm.com>
30759         * config/arm/t-rmprofile: create new multilib for
30760         armv8.1-m.main+mve hard float and reuse v8-m.main ones for
30761         v8.1-m.main+mve.
30763 2020-03-17  Jakub Jelinek  <jakub@redhat.com>
30765         PR tree-optimization/94015
30766         * tree-ssa-strlen.c (count_nonzero_bytes): Split portions of the
30767         function where EXP is address of the bytes being stored rather than
30768         the bytes themselves into count_nonzero_bytes_addr.  Punt on zero
30769         sized MEM_REF.  Use VAR_P macro and handle CONST_DECL like VAR_DECLs.
30770         Use ctor_for_folding instead of looking at DECL_INITIAL.  Punt before
30771         calling native_encode_expr if host or target doesn't have 8-bit
30772         chars.  Formatting fixes.
30773         (count_nonzero_bytes_addr): New function.
30775 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30776             Mihail Ionescu  <mihail.ionescu@arm.com>
30777             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
30779         * config/arm/arm-builtins.c (UNOP_SNONE_SNONE_QUALIFIERS): Define.
30780         (UNOP_SNONE_NONE_QUALIFIERS): Likewise.
30781         (UNOP_SNONE_IMM_QUALIFIERS): Likewise.
30782         (UNOP_UNONE_NONE_QUALIFIERS): Likewise.
30783         (UNOP_UNONE_UNONE_QUALIFIERS): Likewise.
30784         (UNOP_UNONE_IMM_QUALIFIERS): Likewise.
30785         * config/arm/arm_mve.h (vmvnq_n_s16): Define macro.
30786         (vmvnq_n_s32): Likewise.
30787         (vrev64q_s8): Likewise.
30788         (vrev64q_s16): Likewise.
30789         (vrev64q_s32): Likewise.
30790         (vcvtq_s16_f16): Likewise.
30791         (vcvtq_s32_f32): Likewise.
30792         (vrev64q_u8): Likewise.
30793         (vrev64q_u16): Likewise.
30794         (vrev64q_u32): Likewise.
30795         (vmvnq_n_u16): Likewise.
30796         (vmvnq_n_u32): Likewise.
30797         (vcvtq_u16_f16): Likewise.
30798         (vcvtq_u32_f32): Likewise.
30799         (__arm_vmvnq_n_s16): Define intrinsic.
30800         (__arm_vmvnq_n_s32): Likewise.
30801         (__arm_vrev64q_s8): Likewise.
30802         (__arm_vrev64q_s16): Likewise.
30803         (__arm_vrev64q_s32): Likewise.
30804         (__arm_vrev64q_u8): Likewise.
30805         (__arm_vrev64q_u16): Likewise.
30806         (__arm_vrev64q_u32): Likewise.
30807         (__arm_vmvnq_n_u16): Likewise.
30808         (__arm_vmvnq_n_u32): Likewise.
30809         (__arm_vcvtq_s16_f16): Likewise.
30810         (__arm_vcvtq_s32_f32): Likewise.
30811         (__arm_vcvtq_u16_f16): Likewise.
30812         (__arm_vcvtq_u32_f32): Likewise.
30813         (vrev64q): Define polymorphic variant.
30814         * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
30815         (UNOP_SNONE_NONE): Likewise.
30816         (UNOP_SNONE_IMM): Likewise.
30817         (UNOP_UNONE_UNONE): Likewise.
30818         (UNOP_UNONE_NONE): Likewise.
30819         (UNOP_UNONE_IMM): Likewise.
30820         * config/arm/mve.md (mve_vrev64q_<supf><mode>): Define RTL pattern.
30821         (mve_vcvtq_from_f_<supf><mode>): Likewise.
30822         (mve_vmvnq_n_<supf><mode>): Likewise.
30824 2020-03-17  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30825             Mihail Ionescu  <mihail.ionescu@arm.com>
30826             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
30828         * config/arm/arm-builtins.c (UNOP_NONE_NONE_QUALIFIERS): Define macro.
30829         (UNOP_NONE_SNONE_QUALIFIERS): Likewise.
30830         (UNOP_NONE_UNONE_QUALIFIERS): Likewise.
30831         * config/arm/arm_mve.h (vrndxq_f16): Define macro.
30832         (vrndxq_f32): Likewise.
30833         (vrndq_f16) Likewise.
30834         (vrndq_f32): Likewise.
30835         (vrndpq_f16): Likewise.
30836         (vrndpq_f32): Likewise.
30837         (vrndnq_f16): Likewise.
30838         (vrndnq_f32): Likewise.
30839         (vrndmq_f16): Likewise.
30840         (vrndmq_f32): Likewise. 
30841         (vrndaq_f16): Likewise.
30842         (vrndaq_f32): Likewise.
30843         (vrev64q_f16): Likewise.
30844         (vrev64q_f32): Likewise.
30845         (vnegq_f16): Likewise.
30846         (vnegq_f32): Likewise.
30847         (vdupq_n_f16): Likewise.
30848         (vdupq_n_f32): Likewise.
30849         (vabsq_f16): Likewise.
30850         (vabsq_f32): Likewise.
30851         (vrev32q_f16): Likewise.
30852         (vcvttq_f32_f16): Likewise.
30853         (vcvtbq_f32_f16): Likewise.
30854         (vcvtq_f16_s16): Likewise.
30855         (vcvtq_f32_s32): Likewise.
30856         (vcvtq_f16_u16): Likewise.
30857         (vcvtq_f32_u32): Likewise.
30858         (__arm_vrndxq_f16): Define intrinsic.
30859         (__arm_vrndxq_f32): Likewise.
30860         (__arm_vrndq_f16): Likewise.
30861         (__arm_vrndq_f32): Likewise.
30862         (__arm_vrndpq_f16): Likewise.
30863         (__arm_vrndpq_f32): Likewise.
30864         (__arm_vrndnq_f16): Likewise.
30865         (__arm_vrndnq_f32): Likewise.
30866         (__arm_vrndmq_f16): Likewise.
30867         (__arm_vrndmq_f32): Likewise.
30868         (__arm_vrndaq_f16): Likewise.
30869         (__arm_vrndaq_f32): Likewise.
30870         (__arm_vrev64q_f16): Likewise.
30871         (__arm_vrev64q_f32): Likewise.
30872         (__arm_vnegq_f16): Likewise.
30873         (__arm_vnegq_f32): Likewise.
30874         (__arm_vdupq_n_f16): Likewise.
30875         (__arm_vdupq_n_f32): Likewise.
30876         (__arm_vabsq_f16): Likewise.
30877         (__arm_vabsq_f32): Likewise.
30878         (__arm_vrev32q_f16): Likewise.
30879         (__arm_vcvttq_f32_f16): Likewise.
30880         (__arm_vcvtbq_f32_f16): Likewise.
30881         (__arm_vcvtq_f16_s16): Likewise.
30882         (__arm_vcvtq_f32_s32): Likewise.
30883         (__arm_vcvtq_f16_u16): Likewise.
30884         (__arm_vcvtq_f32_u32): Likewise.
30885         (vrndxq): Define polymorphic variants.
30886         (vrndq): Likewise.
30887         (vrndpq): Likewise.
30888         (vrndnq): Likewise.
30889         (vrndmq): Likewise.
30890         (vrndaq): Likewise.
30891         (vrev64q): Likewise.
30892         (vnegq): Likewise.
30893         (vabsq): Likewise.
30894         (vrev32q): Likewise.
30895         (vcvtbq_f32): Likewise.
30896         (vcvttq_f32): Likewise.
30897         (vcvtq): Likewise.
30898         * config/arm/arm_mve_builtins.def (VAR2): Define.
30899         (VAR1): Define.
30900         * config/arm/mve.md (mve_vrndxq_f<mode>): Add RTL pattern.
30901         (mve_vrndq_f<mode>): Likewise.
30902         (mve_vrndpq_f<mode>): Likewise.
30903         (mve_vrndnq_f<mode>): Likewise.
30904         (mve_vrndmq_f<mode>): Likewise.
30905         (mve_vrndaq_f<mode>): Likewise.
30906         (mve_vrev64q_f<mode>): Likewise.
30907         (mve_vnegq_f<mode>): Likewise.
30908         (mve_vdupq_n_f<mode>): Likewise.
30909         (mve_vabsq_f<mode>): Likewise.
30910         (mve_vrev32q_fv8hf): Likewise.
30911         (mve_vcvttq_f32_f16v4sf): Likewise.
30912         (mve_vcvtbq_f32_f16v4sf): Likewise.
30913         (mve_vcvtq_to_f_<supf><mode>): Likewise.
30915 2020-03-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30916             Mihail Ionescu  <mihail.ionescu@arm.com>
30917             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
30919         * config/arm/arm-builtins.c (CF): Define mve_builtin_data.
30920         (VAR1): Define.
30921         (ARM_BUILTIN_MVE_PATTERN_START): Define.
30922         (arm_init_mve_builtins): Define function.
30923         (arm_init_builtins): Add TARGET_HAVE_MVE check.
30924         (arm_expand_builtin_1): Check the range of fcode.
30925         (arm_expand_mve_builtin): Define function to expand MVE builtins.
30926         (arm_expand_builtin): Check the range of fcode.
30927         * config/arm/arm_mve.h (__ARM_FEATURE_MVE): Define MVE floating point
30928         types.
30929         (__ARM_MVE_PRESERVE_USER_NAMESPACE): Define to protect user namespace.
30930         (vst4q_s8): Define macro.
30931         (vst4q_s16): Likewise.
30932         (vst4q_s32): Likewise.
30933         (vst4q_u8): Likewise.
30934         (vst4q_u16): Likewise.
30935         (vst4q_u32): Likewise.
30936         (vst4q_f16): Likewise.
30937         (vst4q_f32): Likewise.
30938         (__arm_vst4q_s8): Define inline builtin.
30939         (__arm_vst4q_s16): Likewise.
30940         (__arm_vst4q_s32): Likewise.
30941         (__arm_vst4q_u8): Likewise.
30942         (__arm_vst4q_u16): Likewise.
30943         (__arm_vst4q_u32): Likewise.
30944         (__arm_vst4q_f16): Likewise.
30945         (__arm_vst4q_f32): Likewise.
30946         (__ARM_mve_typeid): Define macro with MVE types.
30947         (__ARM_mve_coerce): Define macro with _Generic feature.
30948         (vst4q): Define polymorphic variant for different vst4q builtins.
30949         * config/arm/arm_mve_builtins.def: New file.
30950         * config/arm/iterators.md (VSTRUCT): Modify to allow XI and OI
30951         modes in MVE.
30952         * config/arm/mve.md (MVE_VLD_ST): Define iterator.
30953         (unspec): Define unspec.
30954         (mve_vst4q<mode>): Define RTL pattern.
30955         * config/arm/neon.md (mov<mode>): Modify expand to allow XI and OI
30956         modes in MVE.
30957         (neon_mov<mode>): Modify RTL define_insn to allow XI and OI modes
30958         in MVE.
30959         (define_split): Allow OI mode split for MVE after reload.
30960         (define_split): Allow XI mode split for MVE after reload.
30961         * config/arm/t-arm (arm.o): Add entry for arm_mve_builtins.def.
30962         (arm-builtins.o): Likewise.
30964 2020-03-17  Christophe Lyon  <christophe.lyon@linaro.org>
30966         * c-typeck.c (process_init_element): Handle constructor_type with
30967         type size represented by POLY_INT_CST.
30969 2020-03-17  Jakub Jelinek  <jakub@redhat.com>
30971         PR tree-optimization/94187
30972         * tree-ssa-strlen.c (count_nonzero_bytes): Punt if
30973         nchars - offset < nbytes.
30975         PR middle-end/94189
30976         * builtins.c (expand_builtin_strnlen): Do return NULL_RTX if we would
30977         emit a warning if it was enabled and don't depend on TREE_NO_WARNING
30978         for code-generation.
30980 2020-03-16  Vladimir Makarov  <vmakarov@redhat.com>
30982         PR target/94185
30983         * lra-spills.c (remove_pseudos): Do not reuse insn alternative
30984         after changing memory subreg.
30986 2020-03-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30987             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
30989         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Modify function to add
30990         emulator calls for dobule precision arithmetic operations for MVE.
30992 2020-03-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
30993             Mihail Ionescu  <mihail.ionescu@arm.com>
30994             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
30996         * common/config/arm/arm-common.c (arm_asm_auto_mfpu): When vfp_base
30997         feature bit is on and -mfpu=auto is passed as compiler option, do not
30998         generate error on not finding any matching fpu. Because in this case
30999         fpu is not required.
31000         * config/arm/arm-cpus.in (vfp_base): Define feature bit, this bit is
31001         enabled for MVE and also for all VFP extensions.
31002         (VFPv2): Modify fgroup to enable vfp_base feature bit when ever VFPv2
31003         is enabled.
31004         (MVE): Define fgroup to enable feature bits mve, vfp_base and armv7em.
31005         (MVE_FP): Define fgroup to enable feature bits is fgroup MVE and FPv5
31006         along with feature bits mve_float.
31007         (mve): Modify add options in armv8.1-m.main arch for MVE.
31008         (mve.fp): Modify add options in armv8.1-m.main arch for MVE with
31009         floating point.
31010         * config/arm/arm.c (use_return_insn): Replace the
31011         check with TARGET_VFP_BASE.
31012         (thumb2_legitimate_index_p): Replace TARGET_HARD_FLOAT with
31013         TARGET_VFP_BASE.
31014         (arm_rtx_costs_internal): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
31015         with TARGET_VFP_BASE, to allow cost calculations for copies in MVE as
31016         well.
31017         (arm_get_vfp_saved_size): Replace TARGET_HARD_FLOAT with
31018         TARGET_VFP_BASE, to allow space calculation for VFP registers in MVE
31019         as well.
31020         (arm_compute_frame_layout): Likewise.
31021         (arm_save_coproc_regs): Likewise.
31022         (arm_fixed_condition_code_regs): Modify to enable using VFPCC_REGNUM
31023         in MVE as well.
31024         (arm_hard_regno_mode_ok): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
31025         with equivalent macro TARGET_VFP_BASE.
31026         (arm_expand_epilogue_apcs_frame): Likewise.
31027         (arm_expand_epilogue): Likewise.
31028         (arm_conditional_register_usage): Likewise.
31029         (arm_declare_function_name): Add check to skip printing .fpu directive
31030         in assembly file when TARGET_VFP_BASE is enabled and fpu_to_print is
31031         "softvfp".
31032         * config/arm/arm.h (TARGET_VFP_BASE): Define.
31033         * config/arm/arm.md (arch): Add "mve" to arch.
31034         (eq_attr "arch" "mve"): Enable on TARGET_HAVE_MVE is true.
31035         (vfp_pop_multiple_with_writeback): Replace "TARGET_HARD_FLOAT
31036         || TARGET_HAVE_MVE" with equivalent macro TARGET_VFP_BASE.
31037         * config/arm/constraints.md (Uf): Define to allow modification to FPCCR
31038         in MVE.
31039         * config/arm/thumb2.md (thumb2_movsfcc_soft_insn): Modify target guard
31040         to not allow for MVE.
31041         * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Move to volatile unspecs
31042         enum.
31043         (VUNSPEC_GET_FPSCR): Define.
31044         * config/arm/vfp.md (thumb2_movhi_vfp): Add support for VMSR and VMRS
31045         instructions which move to general-purpose Register from Floating-point
31046         Special register and vice-versa.
31047         (thumb2_movhi_fp16): Likewise.
31048         (thumb2_movsi_vfp): Add support for VMSR and VMRS instructions along
31049         with MCR and MRC instructions which set and get Floating-point Status
31050         and Control Register (FPSCR).
31051         (movdi_vfp): Modify pattern to enable Single-precision scalar float move
31052         in MVE.
31053         (thumb2_movdf_vfp): Modify pattern to enable Double-precision scalar
31054         float move patterns in MVE.
31055         (thumb2_movsfcc_vfp): Modify pattern to enable single float conditional
31056         code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
31057         (thumb2_movdfcc_vfp): Modify pattern to enable double float conditional
31058         code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
31059         (push_multi_vfp): Add support to use VFP VPUSH pattern for MVE by adding
31060         TARGET_VFP_BASE check.
31061         (set_fpscr): Add support to set FPSCR register for MVE. Modify pattern
31062         using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
31063         register.
31064         (get_fpscr): Add support to get FPSCR register for MVE. Modify pattern
31065         using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
31066         register.
31069 2020-03-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31070             Mihail Ionescu  <mihail.ionescu@arm.com>
31071             Srinath Parvathaneni  <srinath.parvathaneni@arm.com>
31073         * config.gcc (arm_mve.h): Include mve intrinsics header file.
31074         * config/arm/aout.h (p0): Add new register name for MVE predicated
31075         cases.
31076         * config/arm-builtins.c (ARM_BUILTIN_SIMD_LANE_CHECK): Define macro
31077         common to Neon and MVE.
31078         (ARM_BUILTIN_NEON_LANE_CHECK): Renamed to ARM_BUILTIN_SIMD_LANE_CHECK.
31079         (arm_init_simd_builtin_types): Disable poly types for MVE.
31080         (arm_init_neon_builtins): Move a check to arm_init_builtins function.
31081         (arm_init_builtins): Use ARM_BUILTIN_SIMD_LANE_CHECK instead of
31082         ARM_BUILTIN_NEON_LANE_CHECK.
31083         (mve_dereference_pointer): Add function.
31084         (arm_expand_builtin_args): Call to mve_dereference_pointer when MVE is
31085         enabled.
31086         (arm_expand_neon_builtin): Moved to arm_expand_builtin function.
31087         (arm_expand_builtin): Moved from arm_expand_neon_builtin function.
31088         * config/arm/arm-c.c (__ARM_FEATURE_MVE): Define macro for MVE and MVE
31089         with floating point enabled.
31090         * config/arm/arm-protos.h (neon_immediate_valid_for_move): Renamed to
31091         simd_immediate_valid_for_move.
31092         (simd_immediate_valid_for_move): Renamed from
31093         neon_immediate_valid_for_move function.
31094         * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Generate
31095         error if vfpv2 feature bit is disabled and mve feature bit is also
31096         disabled for HARD_FLOAT_ABI.
31097         (use_return_insn): Check to not push VFP regs for MVE.
31098         (aapcs_vfp_allocate): Add MVE check to have same Procedure Call Standard
31099         as Neon.
31100         (aapcs_vfp_allocate_return_reg): Likewise.
31101         (thumb2_legitimate_address_p): Check to return 0 on valid Thumb-2
31102         address operand for MVE.
31103         (arm_rtx_costs_internal): MVE check to determine cost of rtx.
31104         (neon_valid_immediate): Rename to simd_valid_immediate.
31105         (simd_valid_immediate): Rename from neon_valid_immediate.
31106         (simd_valid_immediate): MVE check on size of vector is 128 bits.
31107         (neon_immediate_valid_for_move): Rename to
31108         simd_immediate_valid_for_move.
31109         (simd_immediate_valid_for_move): Rename from
31110         neon_immediate_valid_for_move.
31111         (neon_immediate_valid_for_logic): Modify call to neon_valid_immediate
31112         function.
31113         (neon_make_constant): Modify call to neon_valid_immediate function.
31114         (neon_vector_mem_operand): Return VFP register for POST_INC or PRE_DEC
31115         for MVE.
31116         (output_move_neon): Add MVE check to generate vldm/vstm instrcutions.
31117         (arm_compute_frame_layout): Calculate space for saved VFP registers for
31118         MVE.
31119         (arm_save_coproc_regs): Save coproc registers for MVE.
31120         (arm_print_operand): Add case 'E' to print memory operands for MVE.
31121         (arm_print_operand_address): Check to print register number for MVE.
31122         (arm_hard_regno_mode_ok): Check for arm hard regno mode ok for MVE.
31123         (arm_modes_tieable_p): Check to allow structure mode for MVE.
31124         (arm_regno_class): Add VPR_REGNUM check.
31125         (arm_expand_epilogue_apcs_frame): MVE check to calculate epilogue code
31126         for APCS frame.
31127         (arm_expand_epilogue): MVE check for enabling pop instructions in
31128         epilogue.
31129         (arm_print_asm_arch_directives): Modify function to disable print of
31130         .arch_extension "mve" and "fp" for cases where MVE is enabled with
31131         "SOFT FLOAT ABI".
31132         (arm_vector_mode_supported_p): Check for modes available in MVE interger
31133         and MVE floating point.
31134         (arm_array_mode_supported_p): Add TARGET_HAVE_MVE check for array mode
31135         pointer support.
31136         (arm_conditional_register_usage): Enable usage of conditional regsiter
31137         for MVE.
31138         (fixed_regs[VPR_REGNUM]): Enable VPR_REG for MVE.
31139         (arm_declare_function_name): Modify function to disable print of
31140         .arch_extension "mve" and "fp" for cases where MVE is enabled with
31141         "SOFT FLOAT ABI".
31142         * config/arm/arm.h (TARGET_HAVE_MVE): Disable for soft float abi and
31143         when target general registers are required.
31144         (TARGET_HAVE_MVE_FLOAT): Likewise.
31145         (FIXED_REGISTERS): Add bit for VFP_REG class which is enabled in arm.c
31146         for MVE.
31147         (CALL_USED_REGISTERS): Set bit for VFP_REG class in CALL_USED_REGISTERS
31148         which indicate this is not available for across function calls.
31149         (FIRST_PSEUDO_REGISTER): Modify.
31150         (VALID_MVE_MODE): Define valid MVE mode.
31151         (VALID_MVE_SI_MODE): Define valid MVE SI mode.
31152         (VALID_MVE_SF_MODE): Define valid MVE SF mode.
31153         (VALID_MVE_STRUCT_MODE): Define valid MVE struct mode.
31154         (VPR_REGNUM): Add Vector Predication Register in arm_regs_in_sequence
31155         for MVE.
31156         (IS_VPR_REGNUM): Macro to check for VPR_REG register.
31157         (REG_ALLOC_ORDER): Add VPR_REGNUM entry.
31158         (enum reg_class): Add VPR_REG entry.
31159         (REG_CLASS_NAMES): Add VPR_REG entry.
31160         * config/arm/arm.md (VPR_REGNUM): Define.
31161         (conds): Check is_mve_type attrbiute to differentiate "conditional" and
31162         "unconditional" instructions.
31163         (arm_movsf_soft_insn): Modify RTL to not allow for MVE.
31164         (movdf_soft_insn): Modify RTL to not allow for MVE.
31165         (vfp_pop_multiple_with_writeback): Enable for MVE.
31166         (include "mve.md"): Include mve.md file.
31167         * config/arm/arm_mve.h: Add MVE intrinsics head file.
31168         * config/arm/constraints.md (Up): Constraint to enable "p0" register in MVE
31169         for vector predicated operands.
31170         * config/arm/iterators.md (VNIM1): Define.
31171         (VNINOTM1): Define.
31172         (VHFBF_split): Define
31173         * config/arm/mve.md: New file.
31174         (mve_mov<mode>): Define RTL for move, store and load in MVE.
31175         (mve_mov<mode>): Define move RTL pattern with vec_duplicate operator for
31176         second operand.
31177         * config/arm/neon.md (neon_immediate_valid_for_move): Rename with
31178         simd_immediate_valid_for_move.
31179         (neon_mov<mode>): Split pattern and move expand pattern "movv8hf" which
31180         is common to MVE and  NEON to vec-common.md file.
31181         (vec_init<mode><V_elem_l>): Add TARGET_HAVE_MVE check.
31182         * config/arm/predicates.md (vpr_register_operand): Define.
31183         * config/arm/t-arm: Add mve.md file.
31184         * config/arm/types.md (mve_move): Add MVE instructions mve_move to
31185         attribute "type".
31186         (mve_store): Add MVE instructions mve_store to attribute "type".
31187         (mve_load): Add MVE instructions mve_load to attribute "type".
31188         (is_mve_type): Define attribute.
31189         * config/arm/vec-common.md (mov<mode>): Modify RTL expand to support
31190         standard move patterns in MVE along with NEON and IWMMXT with mode
31191         iterator VNIM1.
31192         (mov<mode>): Modify RTL expand to support standard move patterns in NEON
31193         and IWMMXT with mode iterator V8HF.
31194         (movv8hf): Define RTL expand to support standard "movv8hf" pattern in
31195         NEON and MVE.
31196         * config/arm/vfp.md (neon_immediate_valid_for_move): Rename to
31197         simd_immediate_valid_for_move.
31200 2020-03-16  H.J. Lu  <hongjiu.lu@intel.com>
31202         PR target/89229
31203         * config/i386/i386.md (*movsi_internal): Call ix86_output_ssemov
31204         for TYPE_SSEMOV.  Remove ext_sse_reg_operand and TARGET_AVX512VL
31205         check.
31206         * config/i386/predicates.md (ext_sse_reg_operand): Removed.
31208 2020-03-16  Jakub Jelinek  <jakub@redhat.com>
31210         PR debug/94167
31211         * tree-inline.c (insert_init_stmt): Don't gimple_regimplify_operands
31212         DEBUG_STMTs.
31214         PR tree-optimization/94166
31215         * tree-ssa-reassoc.c (sort_by_mach_mode): Use SSA_NAME_VERSION
31216         as secondary comparison key.
31218 2020-03-16  Bin Cheng  <bin.cheng@linux.alibaba.com>
31220         PR tree-optimization/94125
31221         * tree-loop-distribution.c
31222         (loop_distribution::break_alias_scc_partitions): Update post order
31223         number for merged scc.
31225 2020-03-15  H.J. Lu  <hongjiu.lu@intel.com>
31227         PR target/89229
31228         * config/i386/i386.c (ix86_output_ssemov): Handle MODE_SI and
31229         MODE_SF.
31230         * config/i386/i386.md (*movsf_internal): Call ix86_output_ssemov
31231         for TYPE_SSEMOV.  Remove TARGET_PREFER_AVX256, TARGET_AVX512VL
31232         and ext_sse_reg_operand check.
31234 2020-03-15  Lewis Hyatt  <lhyatt@gmail.com>
31236         * common.opt: Avoid redundancy in the help text.
31237         * config/arc/arc.opt: Likewise.
31238         * config/cr16/cr16.opt: Likewise.
31240 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
31242         PR middle-end/93566
31243         * tree-nested.c (convert_nonlocal_omp_clauses,
31244         convert_local_omp_clauses): Handle {,in_,task_}reduction clauses
31245         with C/C++ array sections.
31247 2020-03-14  H.J. Lu  <hongjiu.lu@intel.com>
31249         PR target/89229
31250         * config/i386/i386.md (*movdi_internal): Call ix86_output_ssemov
31251         for TYPE_SSEMOV.  Remove ext_sse_reg_operand and TARGET_AVX512VL
31252         check.
31254 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
31256         * gimple-fold.c (gimple_fold_builtin_strncpy): Change
31257         "a an" to "an" in a comment.
31258         * hsa-common.h (is_a_helper): Likewise.
31259         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.
31260         * config/arc/arc.c (arc600_corereg_hazard): Likewise.
31261         * config/s390/s390.c (s390_indirect_branch_via_thunk): Likewise.
31263 2020-03-13  Aaron Sawdey  <acsawdey@linux.ibm.com>
31265         PR target/92379
31266         * config/rs6000/rs6000.c (num_insns_constant_multi): Don't shift a
31267         64-bit value by 64 bits (UB).
31269 2020-03-13  Vladimir Makarov  <vmakarov@redhat.com>
31271         PR rtl-optimization/92303
31272         * lra-spills.c (remove_pseudos): Try to simplify memory subreg.
31274 2020-03-13  Segher Boessenkool  <segher@kernel.crashing.org>
31276         PR rtl-optimization/94148
31277         PR rtl-optimization/94042
31278         * df-core.c (BB_LAST_CHANGE_AGE): Delete.
31279         (df_worklist_propagate_forward): New parameter last_change_age, use
31280         that instead of bb->aux.
31281         (df_worklist_propagate_backward): Ditto.
31282         (df_worklist_dataflow_doublequeue): Use a local array last_change_age.
31284 2020-03-13  Richard Biener  <rguenther@suse.de>
31286         PR tree-optimization/94163
31287         * tree-ssa-pre.c (create_expression_by_pieces): Check
31288         whether alignment would be zero.
31290 2020-03-13  Martin Liska  <mliska@suse.cz>
31292         PR lto/94157
31293         * lto-wrapper.c (run_gcc): Use concat for appending
31294         to collect_gcc_options.
31296 2020-03-13  Jakub Jelinek  <jakub@redhat.com>
31298         PR target/94121
31299         * config/aarch64/aarch64.c (aarch64_add_offset_1): Use gen_int_mode
31300         instead of GEN_INT.
31302 2020-03-13  H.J. Lu  <hongjiu.lu@intel.com>
31304         PR target/89229
31305         * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DF.
31306         * config/i386/i386.md (*movdf_internal): Call ix86_output_ssemov
31307         for TYPE_SSEMOV.  Remove TARGET_AVX512F, TARGET_PREFER_AVX256,
31308         TARGET_AVX512VL and ext_sse_reg_operand check.
31310 2020-03-13  Bu Le  <bule1@huawei.com>
31312         PR target/94154
31313         * config/aarch64/aarch64.opt (-param=aarch64-float-recp-precision=)
31314         (-param=aarch64-double-recp-precision=): New options.
31315         * doc/invoke.texi: Document them.
31316         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Use them
31317         instead of hard-coding the choice of 1 for float and 2 for double.
31319 2020-03-13  Eric Botcazou  <ebotcazou@adacore.com>
31321         PR rtl-optimization/94119
31322         * resource.h (clear_hashed_info_until_next_barrier): Declare.
31323         * resource.c (clear_hashed_info_until_next_barrier): New function.
31324         * reorg.c (add_to_delay_list): Fix formatting.
31325         (relax_delay_slots): Call clear_hashed_info_until_next_barrier on
31326         the next instruction after removing a BARRIER.
31328 2020-03-13  Eric Botcazou  <ebotcazou@adacore.com>
31330         PR middle-end/92071
31331         * expmed.c (store_integral_bit_field): For fields larger than a word,
31332         call extract_bit_field on the value if the mode is BLKmode.  Remove
31333         specific path for big-endian targets and tidy things up a little bit.
31335 2020-03-12  Richard Sandiford  <richard.sandiford@arm.com>
31337         PR rtl-optimization/90275
31338         * cse.c (cse_insn): Delete no-op register moves too.
31340 2020-03-12  Darius Galis  <darius.galis@cyberthorstudios.com>
31342         * config/rx/rx.md (CTRLREG_CPEN): Remove.
31343         * config/rx/rx.c (rx_print_operand): Remove CTRLREG_CPEN support.
31345 2020-03-12  Richard Biener  <rguenther@suse.de>
31347         PR tree-optimization/94103
31348         * tree-ssa-sccvn.c (visit_reference_op_load): Avoid type
31349         punning when the mode precision is not sufficient.
31351 2020-03-12  H.J. Lu  <hongjiu.lu@intel.com>
31353         PR target/89229
31354         * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DI,
31355         MODE_V1DF and MODE_V2SF.
31356         * config/i386/mmx.md (MMXMODE:*mov<mode>_internal): Call
31357         ix86_output_ssemov for TYPE_SSEMOV.  Remove ext_sse_reg_operand
31358         check.
31360 2020-03-12  Jakub Jelinek  <jakub@redhat.com>
31362         * doc/tm.texi.in (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change
31363         ASM_OUTPUT_ALIGNED_DECL in description to ASM_OUTPUT_ALIGNED_LOCAL
31364         and ASM_OUTPUT_DECL to ASM_OUTPUT_LOCAL.
31365         * doc/tm.texi: Regenerated.
31367         PR tree-optimization/94130
31368         * tree-ssa-dse.c: Include gimplify.h.
31369         (increment_start_addr): If stmt has lhs, drop the lhs from call and
31370         set it after the call to the original value of the first argument.
31371         Formatting fixes.
31372         (decrement_count): Formatting fix.
31374 2020-03-11  Delia Burduv  <delia.burduv@arm.com>
31376         * config/arm/arm-builtins.c
31377         (arm_init_simd_builtin_scalar_types): New.
31378         * config/arm/arm_neon.h (vld2_bf16): Used new builtin type.
31379         (vld2q_bf16): Used new builtin type.
31380         (vld3_bf16): Used new builtin type.
31381         (vld3q_bf16): Used new builtin type.
31382         (vld4_bf16): Used new builtin type.
31383         (vld4q_bf16): Used new builtin type.
31384         (vld2_dup_bf16): Used new builtin type.
31385         (vld2q_dup_bf16): Used new builtin type.
31386         (vld3_dup_bf16): Used new builtin type.
31387         (vld3q_dup_bf16): Used new builtin type.
31388         (vld4_dup_bf16): Used new builtin type.
31389         (vld4q_dup_bf16): Used new builtin type.
31391 2020-03-11  Jakub Jelinek  <jakub@redhat.com>
31393         PR target/94134
31394         * config/pdp11/pdp11.c (pdp11_asm_output_var): Call switch_to_section
31395         at the start to switch to data section.  Don't print extra newline if
31396         .globl directive has not been emitted.
31398 2020-03-11  Richard Biener  <rguenther@suse.de>
31400         * match.pd ((T *)(ptr - ptr-cst) -> &MEM[ptr + -ptr-cst]):
31401         New pattern.
31403 2020-03-11  Eric Botcazou  <ebotcazou@adacore.com>
31405         PR middle-end/93961
31406         * tree.c (variably_modified_type_p) <RECORD_TYPE>: Recurse into fields
31407         whose type is a qualified union.
31409 2020-03-11  Jakub Jelinek  <jakub@redhat.com>
31411         PR target/94121
31412         * config/aarch64/aarch64.c (aarch64_add_offset_1): Use absu_hwi
31413         instead of abs_hwi, change moffset type to unsigned HOST_WIDE_INT.
31415         PR bootstrap/93962
31416         * value-prof.c (dump_histogram_value): Use abs_hwi instead of
31417         std::abs.
31418         (get_nth_most_common_value): Use abs_hwi instead of abs.
31420         PR middle-end/94111
31421         * dfp.c (decimal_to_binary): Only use decimal128ToString if from->cl
31422         is rvc_normal, otherwise use real_to_decimal to print the number to
31423         string.
31425         PR tree-optimization/94114
31426         * tree-loop-distribution.c (generate_memset_builtin): Call
31427         rewrite_to_non_trapping_overflow even on mem.
31428         (generate_memcpy_builtin): Call rewrite_to_non_trapping_overflow even
31429         on dest and src.
31431 2020-03-10  Jeff Law  <law@redhat.com>
31433         * config/bfin/bfin.md (movsi_insv): Add length attribute.
31435 2020-03-10  Jiufu Guo  <guojiufu@linux.ibm.com>
31437         PR target/93709
31438         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): Check
31439         NAN and SIGNED_ZEROR for smax/smin.
31441 2020-03-10  Will Schmidt  <will_schmidt@vnet.ibm.com>
31443         PR target/90763
31444         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
31445         clause to handle P9V_BUILTIN_VEC_LXVL with const arguments.
31447 2020-03-10  Roman Zhuykov  <zhroma@ispras.ru>
31449         * loop-iv.c (find_simple_exit): Make it static.
31450         * cfgloop.h: Remove the corresponding prototype.
31452 2020-03-10  Roman Zhuykov  <zhroma@ispras.ru>
31454         * ddg.c (create_ddg): Fix intendation.
31455         (set_recurrence_length): Likewise.
31456         (create_ddg_all_sccs): Likewise.
31458 2020-03-10  Jakub Jelinek  <jakub@redhat.com>
31460         PR target/94088
31461         * config/i386/i386.md (*testqi_ext_3): Call ix86_match_ccmode with
31462         CCZmode instead of CCNOmode if operands[2] has DImode and pos + len
31463         is 32.
31465 2020-03-09  Jason Merrill  <jason@redhat.com>
31467         * gdbinit.in (pgs): Fix typo in documentation.
31469 2020-03-09  Vladimir Makarov  <vmakarov@redhat.com>
31471         Revert:
31473         2020-02-28  Vladimir Makarov  <vmakarov@redhat.com>
31475         PR rtl-optimization/93564
31476         * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
31477         do not honor reg alloc order.
31479 2020-03-09  Andrew Pinski  <apinski@marvell.com>
31481         PR inline-asm/94095
31482         * doc/extend.texi (x86 Operand Modifiers): Fix column
31483         for 'A' modifier.
31485 2020-03-09  Martin Liska  <mliska@suse.cz>
31487         PR target/93800
31488         * config/rs6000/rs6000.c (rs6000_option_override_internal):
31489         Remove set of str_align_loops and str_align_jumps as these
31490         should be set in previous 2 conditions in the function.
31492 2020-03-09  Jakub Jelinek  <jakub@redhat.com>
31494         PR rtl-optimization/94045
31495         * params.opt (-param=max-find-base-term-values=): New option.
31496         * alias.c (find_base_term): Add cut-off for number of visited VALUEs
31497         in a single toplevel find_base_term call.
31499 2020-03-06  Wilco Dijkstra  <wdijkstr@arm.com>
31501         PR target/91598
31502         * config/aarch64/aarch64-builtins.c (TYPES_TERNOPU_LANE): Add define.
31503         * config/aarch64/aarch64-simd.md
31504         (aarch64_vec_<su>mult_lane<Qlane>): Add new insn for widening lane mul.
31505         (aarch64_vec_<su>mlal_lane<Qlane>): Likewise.
31506         * config/aarch64/aarch64-simd-builtins.def: Add intrinsics.
31507         * config/aarch64/arm_neon.h:
31508         (vmlal_lane_s16): Expand using intrinsics rather than inline asm.
31509         (vmlal_lane_u16): Likewise.
31510         (vmlal_lane_s32): Likewise.
31511         (vmlal_lane_u32): Likewise.
31512         (vmlal_laneq_s16): Likewise.
31513         (vmlal_laneq_u16): Likewise.
31514         (vmlal_laneq_s32): Likewise.
31515         (vmlal_laneq_u32): Likewise.
31516         (vmull_lane_s16): Likewise.
31517         (vmull_lane_u16): Likewise.
31518         (vmull_lane_s32): Likewise.
31519         (vmull_lane_u32): Likewise.
31520         (vmull_laneq_s16): Likewise.
31521         (vmull_laneq_u16): Likewise.
31522         (vmull_laneq_s32): Likewise.
31523         (vmull_laneq_u32): Likewise.
31524         * config/aarch64/iterators.md (Vcondtype): New iterator for lane mul.
31525         (Qlane): Likewise.
31527 2020-03-06  Wilco Dijkstra  <wdijkstr@arm.com>
31529         * aarch64/aarch64-simd.md (aarch64_mla_elt<mode>): Correct lane syntax.
31530         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
31531         (aarch64_mls_elt<mode>): Likewise.
31532         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
31533         (aarch64_fma4_elt<mode>): Likewise.
31534         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
31535         (aarch64_fma4_elt_to_64v2df): Likewise.
31536         (aarch64_fnma4_elt<mode>): Likewise.
31537         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
31538         (aarch64_fnma4_elt_to_64v2df): Likewise.
31540 2020-03-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31542         * config/aarch64/aarch64-sve2.md (@aarch64_sve_<sve_int_op><mode>:
31543         Specify movprfx attribute.
31544         (@aarch64_sve_<sve_int_op>_lane_<mode>): Likewise.
31546 2020-03-06  David Edelsohn  <dje.gcc@gmail.com>
31548         PR target/94065
31549         * config/rs6000/aix61.h (TARGET_NO_SUM_IN_TOC): Set to 1 for
31550         cmodel=large.
31551         (TARGET_NO_FP_IN_TOC): Same.
31552         * config/rs6000/aix71.h: Same.
31553         * config/rs6000/aix72.h: Same.
31555 2020-03-06  Andrew Pinski  <apinski@marvell.com>
31556             Jeff Law  <law@redhat.com>
31558         PR rtl-optimization/93996
31559         * haifa-sched.c (remove_notes): Be more careful when adding
31560         REG_SAVE_NOTE.
31562 2020-03-06  Delia Burduv  <delia.burduv@arm.com>
31564         * config/arm/arm_neon.h (vld2_bf16): New.
31565         (vld2q_bf16): New.
31566         (vld3_bf16): New.
31567         (vld3q_bf16): New.
31568         (vld4_bf16): New.
31569         (vld4q_bf16): New.
31570         (vld2_dup_bf16): New.
31571         (vld2q_dup_bf16): New.
31572         (vld3_dup_bf16): New.
31573         (vld3q_dup_bf16): New.
31574         (vld4_dup_bf16): New.
31575         (vld4q_dup_bf16): New.
31576         * config/arm/arm_neon_builtins.def
31577         (vld2): Changed to VAR13 and added v4bf, v8bf
31578         (vld2_dup): Changed to VAR8 and added v4bf, v8bf
31579         (vld3): Changed to VAR13 and added v4bf, v8bf
31580         (vld3_dup): Changed to VAR8 and added v4bf, v8bf
31581         (vld4): Changed to VAR13 and added v4bf, v8bf
31582         (vld4_dup): Changed to VAR8 and added v4bf, v8bf
31583         * config/arm/iterators.md (VDXBF2): New iterator.
31584         *config/arm/neon.md (neon_vld2): Use new iterators.
31585         (neon_vld2_dup<mode): Use new iterators.
31586         (neon_vld3<mode>): Likewise.
31587         (neon_vld3qa<mode>): Likewise.
31588         (neon_vld3qb<mode>): Likewise.
31589         (neon_vld3_dup<mode>): Likewise.
31590         (neon_vld4<mode>): Likewise.
31591         (neon_vld4qa<mode>): Likewise.
31592         (neon_vld4qb<mode>): Likewise.
31593         (neon_vld4_dup<mode>): Likewise.
31594         (neon_vld2_dupv8bf): New.
31595         (neon_vld3_dupv8bf): Likewise.
31596         (neon_vld4_dupv8bf): Likewise.
31598 2020-03-06  Delia Burduv  <delia.burduv@arm.com>
31600         * config/arm/arm_neon.h (bfloat16x4x2_t): New typedef.
31601         (bfloat16x8x2_t): New typedef.
31602         (bfloat16x4x3_t): New typedef.
31603         (bfloat16x8x3_t): New typedef.
31604         (bfloat16x4x4_t): New typedef.
31605         (bfloat16x8x4_t): New typedef.
31606         (vst2_bf16): New.
31607         (vst2q_bf16): New.
31608         (vst3_bf16): New.
31609         (vst3q_bf16): New.
31610         (vst4_bf16): New.
31611         (vst4q_bf16): New.
31612         * config/arm/arm-builtins.c (v2bf_UP): Define.
31613         (VAR13): New.
31614         (arm_init_simd_builtin_types): Init Bfloat16x2_t eltype.
31615         * config/arm/arm-modes.def (V2BF): New mode.
31616         * config/arm/arm-simd-builtin-types.def
31617         (Bfloat16x2_t): New entry.
31618         * config/arm/arm_neon_builtins.def
31619         (vst2): Changed to VAR13 and added v4bf, v8bf
31620         (vst3): Changed to VAR13 and added v4bf, v8bf
31621         (vst4): Changed to VAR13 and added v4bf, v8bf
31622         * config/arm/iterators.md (VDXBF): New iterator.
31623         (VQ2BF): New iterator.
31624         *config/arm/neon.md (neon_vst2<mode>): Used new iterators.
31625         (neon_vst2<mode>): Used new iterators.
31626         (neon_vst3<mode>): Used new iterators.
31627         (neon_vst3<mode>): Used new iterators.
31628         (neon_vst3qa<mode>): Used new iterators.
31629         (neon_vst3qb<mode>): Used new iterators.
31630         (neon_vst4<mode>): Used new iterators.
31631         (neon_vst4<mode>): Used new iterators.
31632         (neon_vst4qa<mode>): Used new iterators.
31633         (neon_vst4qb<mode>): Used new iterators.
31635 2020-03-06  Delia Burduv  <delia.burduv@arm.com>
31637         * config/aarch64/aarch64-simd-builtins.def
31638         (bfcvtn): New built-in function.
31639         (bfcvtn_q): New built-in function.
31640         (bfcvtn2): New built-in function.
31641         (bfcvt): New built-in function.
31642         * config/aarch64/aarch64-simd.md
31643         (aarch64_bfcvtn<q><mode>): New pattern.
31644         (aarch64_bfcvtn2v8bf): New pattern.
31645         (aarch64_bfcvtbf): New pattern.
31646         * config/aarch64/arm_bf16.h (float32_t): New typedef.
31647         (vcvth_bf16_f32): New intrinsic.
31648         * config/aarch64/arm_bf16.h (vcvt_bf16_f32): New intrinsic.
31649         (vcvtq_low_bf16_f32): New intrinsic.
31650         (vcvtq_high_bf16_f32): New intrinsic.
31651         * config/aarch64/iterators.md (V4SF_TO_BF): New mode iterator.
31652         (UNSPEC_BFCVTN): New UNSPEC.
31653         (UNSPEC_BFCVTN2): New UNSPEC.
31654         (UNSPEC_BFCVT): New UNSPEC.
31655         * config/arm/types.md (bf_cvt): New type.
31657 2020-03-06  Andreas Krebbel  <krebbel@linux.ibm.com>
31659         * config/s390/s390.md ("tabort"): Get rid of two consecutive
31660         blanks in format string.
31662 2020-03-05  H.J. Lu  <hongjiu.lu@intel.com>
31664         PR target/89229
31665         PR target/89346
31666         * config/i386/i386-protos.h (ix86_output_ssemov): New prototype.
31667         * config/i386/i386.c (ix86_get_ssemov): New function.
31668         (ix86_output_ssemov): Likewise.
31669         * config/i386/sse.md (VMOVE:mov<mode>_internal): Call
31670         ix86_output_ssemov for TYPE_SSEMOV.  Remove TARGET_AVX512VL
31671         check.
31672         (*movxi_internal_avx512f): Call ix86_output_ssemov for TYPE_SSEMOV.
31673         (*movoi_internal_avx): Call ix86_output_ssemov for TYPE_SSEMOV.
31674         Remove ext_sse_reg_operand and TARGET_AVX512VL check.
31675         (*movti_internal): Likewise.
31676         (*movtf_internal): Call ix86_output_ssemov for TYPE_SSEMOV.
31678 2020-03-05  Jeff Law  <law@redhat.com>
31680         PR tree-optimization/91890
31681         * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Remove LOC argument.
31682         Use gimple_or_expr_nonartificial_location.
31683         (check_bounds_overlap): Drop LOC argument to maybe_diag_access_bounds.
31684         Use gimple_or_expr_nonartificial_location.
31685         * gimple.c (gimple_or_expr_nonartificial_location): New function.
31686         * gimple.h (gimple_or_expr_nonartificial_location): Declare it.
31687         * tree-ssa-strlen.c (maybe_warn_overflow): Use
31688         gimple_or_expr_nonartificial_location.
31689         (maybe_diag_stxncpy_trunc, handle_builtin_stxncpy_strncat): Likewise.
31690         (maybe_warn_pointless_strcmp): Likewise.
31692 2020-03-05  Jakub Jelinek  <jakub@redhat.com>
31694         PR target/94046
31695         * config/i386/avx2intrin.h (_mm_mask_i32gather_ps): Fix first cast of
31696         SRC and MASK arguments to __m128 from __m128d.
31697         (_mm256_mask_i32gather_ps): Fix first cast of MASK argument to __m256
31698         from __m256d.
31699         (_mm_mask_i64gather_ps): Fix first cast of MASK argument to __m128
31700         from __m128d.
31701         * config/i386/xopintrin.h (_mm_permute2_pd): Fix first cast of C
31702         argument to __m128i from __m128d.
31703         (_mm256_permute2_pd): Fix first cast of C argument to __m256i from
31704         __m256d.
31705         (_mm_permute2_ps): Fix first cast of C argument to __m128i from __m128.
31706         (_mm256_permute2_ps): Fix first cast of C argument to __m256i from
31707         __m256.
31709 2020-03-05  Delia Burduv  <delia.burduv@arm.com>
31711         * config/arm/arm_neon.h (vbfmmlaq_f32): New.
31712         (vbfmlalbq_f32): New.
31713         (vbfmlaltq_f32): New.
31714         (vbfmlalbq_lane_f32): New.
31715         (vbfmlaltq_lane_f32): New.
31716         (vbfmlalbq_laneq_f32): New.
31717         (vbfmlaltq_laneq_f32): New.
31718         * config/arm/arm_neon_builtins.def (vmmla): New.
31719         (vfmab): New.
31720         (vfmat): New.
31721         (vfmab_lane): New.
31722         (vfmat_lane): New.
31723         (vfmab_laneq): New.
31724         (vfmat_laneq): New.
31725         * config/arm/iterators.md (BF_MA): New int iterator.
31726         (bt): New int attribute.
31727         (VQXBF): Copy of VQX with V8BF.
31728         * config/arm/neon.md (neon_vmmlav8bf): New insn.
31729         (neon_vfma<bt>v8bf): New insn.
31730         (neon_vfma<bt>_lanev8bf): New insn.
31731         (neon_vfma<bt>_laneqv8bf): New expand.
31732         (neon_vget_high<mode>): Changed iterator to VQXBF.
31733         * config/arm/unspecs.md (UNSPEC_BFMMLA): New UNSPEC.
31734         (UNSPEC_BFMAB): New UNSPEC.
31735         (UNSPEC_BFMAT): New UNSPEC.
31737 2020-03-05  Jakub Jelinek  <jakub@redhat.com>
31739         PR middle-end/93399
31740         * tree-pretty-print.h (pretty_print_string): Declare.
31741         * tree-pretty-print.c (pretty_print_string): Remove forward
31742         declaration, no longer static.  Change nbytes parameter type
31743         from unsigned to size_t.
31744         * print-rtl.c (print_value) <case CONST_STRING>: Use
31745         pretty_print_string and for shrink way too long strings.
31747 2020-03-05  Richard Biener  <rguenther@suse.de>
31748             Jakub Jelinek  <jakub@redhat.com>
31750         PR tree-optimization/93582
31751         * tree-ssa-sccvn.c (vn_reference_lookup_3): Treat POINTER_PLUS_EXPR
31752         last operand as signed when looking for memset offset.  Formatting
31753         fix.
31755 2020-03-04  Andrew Pinski  <apinski@marvell.com>
31757         PR bootstrap/93962
31758         * value-prof.c (dump_histogram_value): Use std::abs.
31760 2020-03-04  Martin Sebor  <msebor@redhat.com>
31762         PR tree-optimization/93986
31763         * tree-ssa-strlen.c (maybe_warn_overflow): Convert all wide_int
31764         operands to the same precision widest_int to avoid ICEs.
31766 2020-03-04  Bill Schmidt  <wschmidt@linux.ibm.com>
31768         PR target/87560
31769         * rs6000-cpus.def (OTHER_ALTIVEC_MASKS): New #define.
31770         * rs6000.c (rs6000_disable_incompatible_switches): Add table entry
31771         for OPTION_MASK_ALTIVEC.
31773 2020-03-04  Andreas Krebbel  <krebbel@linux.ibm.com>
31775         * config.gcc: Include the glibc-stdint.h header for zTPF.
31777 2020-03-04  Andreas Krebbel  <krebbel@linux.ibm.com>
31779         * config/s390/s390.c (s390_secondary_memory_needed): Disallow
31780         direct FPR-GPR copies.
31781         (s390_register_info_gprtofpr): Disallow GPR content to be saved in
31782         FPRs.
31784 2020-03-04  Andreas Krebbel  <krebbel@linux.ibm.com>
31786         * config/s390/s390.c (s390_emit_prologue): Specify the 2 new
31787         operands to the prologue_tpf expander.
31788         (s390_emit_epilogue): Likewise.
31789         (s390_option_override_internal): Do error checking and setup for
31790         the new options.
31791         * config/s390/tpf.h (TPF_TRACE_PROLOGUE_CHECK)
31792         (TPF_TRACE_EPILOGUE_CHECK, TPF_TRACE_PROLOGUE_TARGET)
31793         (TPF_TRACE_EPILOGUE_TARGET, TPF_TRACE_PROLOGUE_SKIP_TARGET)
31794         (TPF_TRACE_EPILOGUE_SKIP_TARGET): New macro definitions.
31795         * config/s390/tpf.md ("prologue_tpf", "epilogue_tpf"): Add two new
31796         operands for the check flag and the branch target.
31797         * config/s390/tpf.opt ("mtpf-trace-hook-prologue-check")
31798         ("mtpf-trace-hook-prologue-target")
31799         ("mtpf-trace-hook-epilogue-check")
31800         ("mtpf-trace-hook-epilogue-target", "mtpf-trace-skip"): New
31801         options.
31802         * doc/invoke.texi: Document -mtpf-trace-skip option. The other
31803         options are for debugging purposes and will not be documented
31804         here.
31806 2020-03-04  Jakub Jelinek  <jakub@redhat.com>
31808         PR debug/93888
31809         * tree-inline.c (copy_decl_to_var): Copy DECL_BY_REFERENCE flag.
31811         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Add offseti
31812         argument.  Change pd argument so that it can be modified.  Turn
31813         constant non-CONSTRUCTOR store into non-constant if it is too large.
31814         Adjust offset and size of CONSTRUCTOR or non-constant store to avoid
31815         overflows.
31816         (vn_walk_cb_data::vn_walk_cb_data, vn_reference_lookup_3): Adjust
31817         callers.
31819 2020-02-04  Richard Biener  <rguenther@suse.de>
31821         PR tree-optimization/93964
31822         * graphite-isl-ast-to-gimple.c
31823         (gcc_expression_from_isl_ast_expr_id): Add intermediate
31824         conversion for pointer to integer converts.
31825         * graphite-scop-detection.c (assign_parameter_index_in_region):
31826         Relax assert.
31828 2020-03-04  Martin Liska  <mliska@suse.cz>
31830         PR c/93886
31831         PR c/93887
31832         * doc/invoke.texi: Clarify --help=language and --help=common
31833         interaction.
31835 2020-03-04  Jakub Jelinek  <jakub@redhat.com>
31837         PR tree-optimization/94001
31838         * tree-tailcall.c (process_assignment): Before comparing op1 to
31839         *ass_var, verify *ass_var is non-NULL.
31841 2020-03-04  Kito Cheng  <kito.cheng@sifive.com>
31843         PR target/93995
31844         * config/riscv/riscv.c (riscv_emit_float_compare): Using NE to compare
31845         the result of IOR.
31847 2020-03-03  Dennis Zhang  <dennis.zhang@arm.com>
31849         * config/arm/arm_bf16.h (vcvtah_f32_bf16, vcvth_bf16_f32): New.
31850         * config/arm/arm_neon.h (vcvt_f32_bf16, vcvtq_low_f32_bf16): New.
31851         (vcvtq_high_f32_bf16, vcvt_bf16_f32): New.
31852         (vcvtq_low_bf16_f32, vcvtq_high_bf16_f32): New.
31853         * config/arm/arm_neon_builtins.def (vbfcvt, vbfcvt_high): New entries.
31854         (vbfcvtv4sf, vbfcvtv4sf_high): Likewise.
31855         * config/arm/iterators.md (VBFCVT, VBFCVTM): New mode iterators.
31856         (V_bf_low, V_bf_cvt_m): New mode attributes.
31857         * config/arm/neon.md (neon_vbfcvtv4sf<VBFCVT:mode>): New.
31858         (neon_vbfcvtv4sf_highv8bf, neon_vbfcvtsf): New.
31859         (neon_vbfcvt<VBFCVT:mode>, neon_vbfcvt_highv8bf): New.
31860         (neon_vbfcvtbf_cvtmode<mode>, neon_vbfcvtbf): New
31861         * config/arm/unspecs.md (UNSPEC_BFCVT, UNSPEC_BFCVT_HIG): New.
31863 2020-03-03  Jakub Jelinek  <jakub@redhat.com>
31865         PR tree-optimization/93582
31866         * tree-ssa-sccvn.h (vn_reference_lookup): Add mask argument.
31867         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add mask and masked_result
31868         members, initialize them in the constructor and if mask is non-NULL,
31869         artificially push_partial_def {} for the portions of the mask that
31870         contain zeros.
31871         (vn_walk_cb_data::finish): If mask is non-NULL, set masked_result to
31872         val and return (void *)-1.  Formatting fix.
31873         (vn_reference_lookup_pieces): Adjust vn_walk_cb_data initialization.
31874         Formatting fix.
31875         (vn_reference_lookup): Add mask argument.  If non-NULL, don't call
31876         fully_constant_vn_reference_p nor vn_reference_lookup_1 and return
31877         data.mask_result.
31878         (visit_nary_op): Handle BIT_AND_EXPR of a memory load and INTEGER_CST
31879         mask.
31880         (visit_stmt): Formatting fix.
31882 2020-03-03  Richard Biener  <rguenther@suse.de>
31884         PR tree-optimization/93946
31885         * alias.h (refs_same_for_tbaa_p): Declare.
31886         * alias.c (refs_same_for_tbaa_p): New function.
31887         * tree-ssa-alias.c (ao_ref_alias_set): For a NULL ref return
31888         zero.
31889         * tree-ssa-scopedtables.h
31890         (avail_exprs_stack::lookup_avail_expr): Add output argument
31891         giving access to the hashtable entry.
31892         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
31893         Likewise.
31894         * tree-ssa-dom.c: Include alias.h.
31895         (dom_opt_dom_walker::optimize_stmt): Validate TBAA state before
31896         removing redundant store.
31897         * tree-ssa-sccvn.h (vn_reference_s::base_set): New member.
31898         (ao_ref_init_from_vn_reference): Adjust prototype.
31899         (vn_reference_lookup_pieces): Likewise.
31900         (vn_reference_insert_pieces): Likewise.
31901         * tree-ssa-sccvn.c: Track base alias set in addition to alias
31902         set everywhere.
31903         (eliminate_dom_walker::eliminate_stmt): Also check base alias
31904         set when removing redundant stores.
31905         (visit_reference_op_store): Likewise.
31906         * dse.c (record_store): Adjust valdity check for redundant
31907         store removal.
31909 2020-03-03  Jakub Jelinek  <jakub@redhat.com>
31911         PR target/26877
31912         * config/s390/s390.h (OPTION_DEFAULT_SPECS): Reorder.
31914         PR rtl-optimization/94002
31915         * explow.c (plus_constant): Punt if cst has VOIDmode and
31916         get_pool_mode is different from mode.
31918 2020-03-03  Claudiu Zissulescu  <claziss@synopsys.com>
31920         * config/arc/arc.c (leigitimate_small_data_address_p): Check if an
31921         address has an offset which fits the scalling constraint for a
31922         load/store operation.
31923         (legitimate_scaled_address_p): Update use
31924         leigitimate_small_data_address_p.
31925         (arc_print_operand): Likewise.
31926         (arc_legitimate_address_p): Likewise.
31927         (legitimate_small_data_address_p): Likewise.
31929 2020-03-03  Claudiu Zissulescu  <claziss@synopsys.com>
31931         * config/arc/arc.md (fmasf4_fpu): Use accl_operand predicate.
31932         (fnmasf4_fpu): Likewise.
31934 2020-03-03  Claudiu Zissulescu  <claziss@synopsys.com>
31936         * config/arc/arc.md (adddi3): Early expand the 64bit operation into
31937         32bit ops.
31938         (subdi3): Likewise.
31939         (adddi3_i): Remove pattern.
31940         (subdi3_i): Likewise.
31942 2020-03-03  Claudiu Zissulescu  <claziss@synopsys.com>
31944         * config/arc/arc.md (eh_return): Add length info.
31946 2020-03-02  David Malcolm  <dmalcolm@redhat.com>
31948         * doc/invoke.texi (-fanalyzer-show-duplicate-count): New.
31950 2020-03-02  David Malcolm  <dmalcolm@redhat.com>
31952         * doc/invoke.texi (Static Analyzer Options): Add
31953         -Wanalyzer-stale-setjmp-buffer to the list of options enabled
31954         by -fanalyzer.
31956 2020-03-02  Uroš Bizjak  <ubizjak@gmail.com>
31958         PR target/93997
31959         * config/i386/i386.md (movstrict<mode>): Allow only
31960         registers with VALID_INT_MODE_P modes.
31962 2020-03-02  Andrew Stubbs  <ams@codesourcery.com>
31964         * config/gcn/gcn-valu.md (dpp_move<mode>): New.
31965         (reduc_insn): Use 'U' and 'B' operand codes.
31966         (reduc_<reduc_op>_scal_<mode>): Allow all types.
31967         (reduc_<reduc_op>_scal_v64di): Delete.
31968         (*<reduc_op>_dpp_shr_<mode>): Allow all 1reg types.
31969         (*plus_carry_dpp_shr_v64si): Change to ...
31970         (*plus_carry_dpp_shr_<mode>): ... this and allow all 1reg int types.
31971         (mov_from_lane63_v64di): Change to ...
31972         (mov_from_lane63_<mode>): ... this, and allow all 64-bit modes.
31973         * config/gcn/gcn.c (gcn_expand_dpp_shr_insn): Increase buffer size.
31974         Support UNSPEC_MOV_DPP_SHR output formats.
31975         (gcn_expand_reduc_scalar): Add "use_moves" reductions.
31976         Add "use_extends" reductions.
31977         (print_operand_address): Add 'I' and 'U' codes.
31978         * config/gcn/gcn.md (unspec): Add UNSPEC_MOV_DPP_SHR.
31980 2020-03-02  Martin Liska  <mliska@suse.cz>
31982         * lto-wrapper.c: Fix typo in comment about
31983         C++ standard version.
31985 2020-03-01  Martin Sebor  <msebor@redhat.com>
31987         PR c++/92721
31988         * calls.c (init_attr_rdwr_indices): Correctly handle attribute.
31990 2020-03-01  Martin Sebor  <msebor@redhat.com>
31992         PR middle-end/93829
31993         * tree-ssa-strlen.c (count_nonzero_bytes): Set the size to that
31994           of a pointer in the outermost ADDR_EXPRs.
31996 2020-02-28  Jeff Law  <law@redhat.com>
31998         * config/v850/v850.h (STATIC_CHAIN_REGNUM): Change to r19.
31999         * config/v850/v850.c (v850_asm_trampoline_template): Update
32000         accordingly.
32002 2020-02-28  Michael Meissner  <meissner@linux.ibm.com>
32004         PR target/93937
32005         * config/rs6000/vsx.md (vsx_extract_<mode>_<VS_scalar>mode_var):
32006         Delete insn.
32008 2020-02-28  Martin Liska  <mliska@suse.cz>
32010         PR other/93965
32011         * configure.ac: Improve detection of ld_date by requiring
32012         either two dashes or none.
32013         * configure: Regenerate.
32015 2020-02-28  Vladimir Makarov  <vmakarov@redhat.com>
32017         PR rtl-optimization/93564
32018         * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
32019         do not honor reg alloc order.
32021 2020-02-27  Joel Hutton  <Joel.Hutton@arm.com>
32023         PR target/87612
32024         * config/aarch64/aarch64.c (aarch64_override_options): Fix
32025         misleading warning string.
32027 2020-02-27  Martin Sebor  <msebor@redhat.com>
32029         * doc/invoke.texi (-Wbuiltin-declaration-mismatch): Fix a typo.
32031 2020-02-27  Michael Meissner  <meissner@linux.ibm.com>
32033         PR target/93932
32034         * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
32035         Split the insn into two parts.  This insn only does variable
32036         extract from a register.
32037         (vsx_extract_<mode>_var_load, VSX_D iterator): New insn, do
32038         variable extract from memory.
32039         (vsx_extract_v4sf_var): Split the insn into two parts.  This insn
32040         only does variable extract from a register.
32041         (vsx_extract_v4sf_var_load): New insn, do variable extract from
32042         memory.
32043         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Split the insn
32044         into two parts.  This insn only does variable extract from a
32045         register.
32046         (vsx_extract_<mode>_var_load, VSX_EXTRACT_I iterator): New insn,
32047         do variable extract from memory.
32049 2020-02-27  Martin Jambor  <mjambor@suse.cz>
32050             Feng Xue  <fxue@os.amperecomputing.com>
32052         PR ipa/93707
32053         * ipa-cp.c (same_node_or_its_all_contexts_clone_p): Replaced with
32054         new function calls_same_node_or_its_all_contexts_clone_p.
32055         (cgraph_edge_brings_value_p): Use it.
32056         (cgraph_edge_brings_value_p): Likewise.
32057         (self_recursive_pass_through_p): Return false if caller is a clone.
32058         (self_recursive_agg_pass_through_p): Likewise.
32060 2020-02-27  Jan Hubicka  <hubicka@ucw.cz>
32062         PR middle-end/92152
32063         * alias.c (ends_tbaa_access_path_p): Break out from ...
32064         (component_uses_parent_alias_set_from): ... here.
32065         * alias.h (ends_tbaa_access_path_p): Declare.
32066         * tree-ssa-alias.c (access_path_may_continue_p): Break out from ...;
32067         handle trailing arrays past end of tbaa access path.
32068         (aliasing_component_refs_p): ... here; likewise.
32069         (nonoverlapping_refs_since_match_p): Track TBAA segment of the access
32070         path; disambiguate also past end of it.
32071         (nonoverlapping_component_refs_p): Use only TBAA segment of the access
32072         path.
32074 2020-02-27  Mihail Ionescu  <mihail.ionescu@arm.com>
32076         * (__ARM_NUM_LANES, __arm_lane, __arm_lane_q): Move to the
32077         beginning of the file.
32078         (vcreate_bf16, vcombine_bf16): New.
32079         (vdup_n_bf16, vdupq_n_bf16): New.
32080         (vdup_lane_bf16, vdup_laneq_bf16): New.
32081         (vdupq_lane_bf16, vdupq_laneq_bf16): New.
32082         (vduph_lane_bf16, vduph_laneq_bf16): New.
32083         (vset_lane_bf16, vsetq_lane_bf16): New.
32084         (vget_lane_bf16, vgetq_lane_bf16): New.
32085         (vget_high_bf16, vget_low_bf16): New.
32086         (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
32087         (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
32088         (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
32089         (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
32090         (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
32091         (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
32092         (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
32093         (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
32094         (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
32095         (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
32096         (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New.
32097         (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
32098         (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
32099         (vreinterpretq_bf16_p128): New.
32100         (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
32101         (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
32102         (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
32103         (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
32104         (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
32105         (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
32106         (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
32107         (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
32108         (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
32109         (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
32110         (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
32111         (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
32112         (vreinterpretq_p128_bf16): New.
32113         * config/arm/arm_neon_builtins.def (VDX): Add V4BF.
32114         (V_elem): Likewise.
32115         (V_elem_l): Likewise.
32116         (VD_LANE): Likewise.
32117         (VQX) Add V8BF.
32118         (V_DOUBLE): Likewise.
32119         (VDQX): Add V4BF and V8BF.
32120         (V_two_elem, V_three_elem, V_four_elem): Likewise.
32121         (V_reg): Likewise.
32122         (V_HALF): Likewise.
32123         (V_double_vector_mode): Likewise.
32124         (V_cmp_result): Likewise.
32125         (V_uf_sclr): Likewise.
32126         (V_sz_elem): Likewise.
32127         (Is_d_reg): Likewise.
32128         (V_mode_nunits): Likewise.
32129         * config/arm/neon.md (neon_vdup_lane): Enable for BFloat16.
32131 2020-02-27  Andrew Stubbs  <ams@codesourcery.com>
32133         * config/gcn/gcn-valu.md (VEC_SUBDWORD_MODE): New mode iterator.
32134         (<expander><mode>2<exec>): Change modes to VEC_ALL1REG_INT_MODE.
32135         (<expander><mode>3<exec>): Likewise.
32136         (<expander><mode>3): New.
32137         (v<expander><mode>3): New.
32138         (<expander><mode>3): New.
32139         (<expander><mode>3<exec>): Rename to ...
32140         (<expander>v64si3<exec>): ... this, and change modes to V64SI.
32141         * config/gcn/gcn.md (mnemonic): Use '%B' for not.
32143 2020-02-27  Alexandre Oliva <oliva@adacore.com>
32145         * config/vx-common.h (NO_DOLLAR_IN_LABEL, NO_DOT_IN_LABEL): Leave
32146         them alone on vx7.
32148 2020-02-27  Richard Biener  <rguenther@suse.de>
32150         PR tree-optimization/93508
32151         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle _CHK like
32152         non-_CHK variants.  Valueize their length arguments.
32154 2020-02-27  Richard Biener  <rguenther@suse.de>
32156         PR tree-optimization/93953
32157         * tree-vect-slp.c (slp_copy_subtree): Avoid keeping a reference
32158         to the hash-map entry.
32160 2020-02-27  Andrew Stubbs  <ams@codesourcery.com>
32162         * config/gcn/gcn.md (mov<mode>): Add transformations for BI subregs.
32164 2020-02-27  Mark Williams  <mwilliams@fb.com>
32166         * dwarf2out.c (file_name_acquire): Call remap_debug_filename.
32167         * lto-opts.c (lto_write_options): Drop -fdebug-prefix-map,
32168         -ffile-prefix-map and -fmacro-prefix-map.
32169         * lto-streamer-out.c: Include file-prefix-map.h.
32170         (lto_output_location): Remap the file part of locations.
32172 2020-02-27  Jakub Jelinek  <jakub@redhat.com>
32174         PR c/93949
32175         * gimplify.c (gimplify_init_constructor): Don't promote readonly
32176         DECL_REGISTER variables to TREE_STATIC.
32178         PR tree-optimization/93582
32179         PR tree-optimization/93945
32180         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle memset with
32181         non-zero INTEGER_CST second argument and ref->offset or ref->size
32182         not a multiple of BITS_PER_UNIT.
32184 2020-02-27  Jonathan Wakely  <jwakely@redhat.com>
32186         * doc/install.texi (Binaries): Update description of BullFreeware.
32188 2020-02-26  Sandra Loosemore  <sandra@codesourcery.com>
32190         PR c++/90467
32192         * doc/invoke.texi (Option Summary): Re-alphabetize warnings in
32193         C++ Language Options, Warning Options, and Static Analyzer
32194         Options lists.  Document negative form of options enabled by
32195         default.  Move some things around to more accurately sort
32196         warnings by category.
32197         (C++ Dialect Options, Warning Options, Static Analyzer
32198         Options): Document negative form of options when enabled by
32199         default.  Move some things around to more accurately sort
32200         warnings by category.  Add some missing index entries.
32201         Light copy-editing.
32203 2020-02-26  Carl Love  <cel@us.ibm.com>
32205         PR target/91276
32206         * doc/extend.texi (PowerPC AltiVec Built-in Functions available on
32207         ISA 2.07): The builtin-function name __builtin_crypto_vpmsumb is only
32208         for the vector unsigned short arguments.  It is also listed as the
32209         name of the built-in for arguments vector unsigned short,
32210         vector unsigned int and vector unsigned long long built-ins.  The
32211         name of the builtins for these arguments should be:
32212         __builtin_crypto_vpmsumh, __builtin_crypto_vpmsumw and
32213         __builtin_crypto_vpmsumd respectively.
32215 2020-02-26  Richard Biener  <rguenther@suse.de>
32217         * tree-vect-slp.c (vect_print_slp_tree): Also dump ref count
32218         and load permutation.
32220 2020-02-26  Richard Sandiford  <richard.sandiford@arm.com>
32222         PR middle-end/93843
32223         * optabs-tree.c (supportable_convert_operation): Reject types with
32224         scalar modes.
32226 2020-02-26  David Malcolm  <dmalcolm@redhat.com>
32228         * Makefile.in (ANALYZER_OBJS): Add analyzer/bar-chart.o.
32230 2020-02-26  Jakub Jelinek  <jakub@redhat.com>
32232         PR tree-optimization/93820
32233         * gimple-ssa-store-merging.c (check_no_overlap): Change RHS_CODE
32234         argument to ALL_INTEGER_CST_P boolean.
32235         (imm_store_chain_info::try_coalesce_bswap): Adjust caller.
32236         (imm_store_chain_info::coalesce_immediate_stores): Likewise.  Handle
32237         adjacent INTEGER_CST store into merged_store->only_constants like
32238         overlapping one.
32240 2020-02-25  Jakub Jelinek  <jakub@redhat.com>
32242         PR other/93912
32243         * config/sh/sh.c (expand_cbranchdi4): Fix comment typo, probablity
32244         -> probability.
32245         * cfghooks.c (verify_flow_info): Likewise.
32246         * predict.c (combine_predictions_for_bb): Likewise.
32247         * bb-reorder.c (connect_better_edge_p): Likewise.  Fix comment typo,
32248         sucessor -> successor.
32249         (find_traces_1_round): Fix comment typo, destinarion -> destination.
32250         * omp-expand.c (expand_oacc_for): Fix comment typo, sucessors ->
32251         successors.
32252         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Fix dump
32253         message typo, sucessors -> successors.
32255 2020-02-25  Martin Sebor  <msebor@redhat.com>
32257         * doc/extend.texi (attribute access): Correct an example.
32259 2020-02-25  Mihail Ionescu  <mihail.ionescu@arm.com>
32261         * config/aarch64/aarch64-builtins.c (aarch64_scalar_builtin_types):
32262         Add simd_bf.
32263         (aarch64_init_simd_builtin_scalar_types): Register simd_bf.
32264         (VAR15, VAR16): New.
32265         * config/aarch64/iterators.md (VALLDIF): Enable for V4BF and V8BF.
32266         (VD): Enable for V4BF.
32267         (VDC): Likewise.
32268         (VQ): Enable for V8BF.
32269         (VQ2): Likewise.
32270         (VQ_NO2E): Likewise.
32271         (VDBL, Vdbl): Add V4BF.
32272         (V_INT_EQUIV, v_int_equiv): Add V4BF and V8BF.
32273         * config/aarch64/arm_neon.h (bfloat16x4x2_t): New typedef.
32274         (bfloat16x8x2_t): Likewise.
32275         (bfloat16x4x3_t): Likewise.
32276         (bfloat16x8x3_t): Likewise.
32277         (bfloat16x4x4_t): Likewise.
32278         (bfloat16x8x4_t): Likewise.
32279         (vcombine_bf16): New.
32280         (vld1_bf16, vld1_bf16_x2): New.
32281         (vld1_bf16_x3, vld1_bf16_x4): New.
32282         (vld1q_bf16, vld1q_bf16_x2): New.
32283         (vld1q_bf16_x3, vld1q_bf16_x4): New.
32284         (vld1_lane_bf16): New.
32285         (vld1q_lane_bf16): New.
32286         (vld1_dup_bf16): New.
32287         (vld1q_dup_bf16): New.
32288         (vld2_bf16): New.
32289         (vld2q_bf16): New.
32290         (vld2_dup_bf16): New.
32291         (vld2q_dup_bf16): New.
32292         (vld3_bf16): New.
32293         (vld3q_bf16): New.
32294         (vld3_dup_bf16): New.
32295         (vld3q_dup_bf16): New.
32296         (vld4_bf16): New.
32297         (vld4q_bf16): New.
32298         (vld4_dup_bf16): New.
32299         (vld4q_dup_bf16): New.
32300         (vst1_bf16, vst1_bf16_x2): New.
32301         (vst1_bf16_x3, vst1_bf16_x4): New.
32302         (vst1q_bf16, vst1q_bf16_x2): New.
32303         (vst1q_bf16_x3, vst1q_bf16_x4): New.
32304         (vst1_lane_bf16): New.
32305         (vst1q_lane_bf16): New.
32306         (vst2_bf16): New.
32307         (vst2q_bf16): New.
32308         (vst3_bf16): New.
32309         (vst3q_bf16): New.
32310         (vst4_bf16): New.
32311         (vst4q_bf16): New.
32313 2020-02-25  Mihail Ionescu  <mihail.ionescu@arm.com>
32315         * config/aarch64/iterators.md (VDQF_F16) Add V4BF and V8BF.
32316         (VALL_F16): Likewise.
32317         (VALLDI_F16): Likewise.
32318         (Vtype): Likewise.
32319         (Vetype): Likewise.
32320         (vswap_width_name): Likewise.
32321         (VSWAP_WIDTH): Likewise.
32322         (Vel): Likewise.
32323         (VEL): Likewise.
32324         (q): Likewise.
32325         * config/aarch64/arm_neon.h (vset_lane_bf16, vsetq_lane_bf16): New.
32326         (vget_lane_bf16, vgetq_lane_bf16): New.
32327         (vcreate_bf16): New.
32328         (vdup_n_bf16, vdupq_n_bf16): New.
32329         (vdup_lane_bf16, vdup_laneq_bf16): New.
32330         (vdupq_lane_bf16, vdupq_laneq_bf16): New.
32331         (vduph_lane_bf16, vduph_laneq_bf16): New.
32332         (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
32333         (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
32334         (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
32335         (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
32336         (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
32337         (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
32338         (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
32339         (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
32340         (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
32341         (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
32342         (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New
32343         (vreinterpret_bf16_f16, vreinterpretq_bf16_f16): New
32344         (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
32345         (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
32346         (vreinterpretq_bf16_p128): New.
32347         (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
32348         (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
32349         (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
32350         (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
32351         (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
32352         (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
32353         (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
32354         (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
32355         (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
32356         (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
32357         (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
32358         (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
32359         (vreinterpret_f64_bf16,vreinterpretq_f64_bf16): New.
32360         (vreinterpret_f16_bf16,vreinterpretq_f16_bf16): New.
32361         (vreinterpretq_p128_bf16): New.
32363 2020-02-25  Dennis Zhang  <dennis.zhang@arm.com>
32365         * config/arm/arm_neon.h (vbfdot_f32, vbfdotq_f32): New
32366         (vbfdot_lane_f32, vbfdotq_laneq_f32): New.
32367         (vbfdot_laneq_f32, vbfdotq_lane_f32): New.
32368         * config/arm/arm_neon_builtins.def (vbfdot): New entry.
32369         (vbfdot_lanev4bf, vbfdot_lanev8bf): Likewise.
32370         * config/arm/iterators.md (VSF2BF): New attribute.
32371         * config/arm/neon.md (neon_vbfdot<VCVTF:mode>): New entry.
32372         (neon_vbfdot_lanev4bf<VCVTF:mode>): Likewise.
32373         (neon_vbfdot_lanev8bf<VCVTF:mode>): Likewise.
32375 2020-02-25  Christophe Lyon  <christophe.lyon@linaro.org>
32377         * config/arm/arm.md (required_for_purecode): New attribute.
32378         (enabled): Handle required_for_purecode.
32379         * config/arm/thumb1.md (thumb1_movsi_insn): Add alternative to
32380         work with -mpure-code.
32382 2020-02-25  Jakub Jelinek  <jakub@redhat.com>
32384         PR rtl-optimization/93908
32385         * combine.c (find_split_point): For store into ZERO_EXTRACT, and src
32386         with mask.
32388 2019-02-25  Eric Botcazou  <ebotcazou@adacore.com>
32390         * dwarf2out.c (dwarf2out_size_function): Run in early-DWARF mode.
32392 2020-02-25  Roman Zhuykov  <zhroma@ispras.ru>
32394         * doc/install.texi (--enable-checking): Adjust wording.
32396 2020-02-25  Richard Biener  <rguenther@suse.de>
32398         PR tree-optimization/93868
32399         * tree-vect-slp.c (slp_copy_subtree): New function.
32400         (vect_attempt_slp_rearrange_stmts): Copy the SLP tree before
32401         re-arranging stmts in it.
32403 2020-02-25  Jakub Jelinek  <jakub@redhat.com>
32405         PR middle-end/93874
32406         * passes.c (pass_manager::dump_passes): Create a cgraph node for the
32407         dummy function and remove it at the end.
32409         PR translation/93864
32410         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Fix comment typo
32411         paramter -> parameter.
32412         * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Likewise.
32413         * ipa-prop.h (struct ipa_agg_replacement_value): Likewise.
32415 2020-02-24  Roman Zhuykov  <zhroma@ispras.ru>
32417         * doc/install.texi (--enable-checking): Properly document current
32418         behavior.
32419         (--enable-stage1-checking): Minor clarification about bootstrap.
32421 2020-02-24  David Malcolm  <dmalcolm@redhat.com>
32423         PR analyzer/93032
32424         * doc/invoke.texi (-Wnanalyzer-tainted-array-index): Note that
32425         -fanalyzer-checker=taint is also required.
32426         (-fanalyzer-checker=): Note that providing this option enables the
32427         given checker, and doing so may be required for checkers that are
32428         disabled by default.
32430 2020-02-24  David Malcolm  <dmalcolm@redhat.com>
32432         * doc/invoke.texi (-fanalyzer-verbosity=): "2" only shows
32433         significant control flow events; add a "3" which shows all
32434         control flow events; the old "3" becomes "4".
32436 2020-02-24  Jakub Jelinek  <jakub@redhat.com>
32438         PR tree-optimization/93582
32439         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Consider
32440         pd.offset and pd.size to be counted in bits rather than bytes, add
32441         support for maxsizei that is not a multiple of BITS_PER_UNIT and
32442         handle bitfield stores and loads.
32443         (vn_reference_lookup_3): Don't call ranges_known_overlap_p with
32444         uncomparable quantities - bytes vs. bits.  Allow push_partial_def
32445         on offsets/sizes that aren't multiple of BITS_PER_UNIT and adjust
32446         pd.offset/pd.size to be counted in bits rather than bytes.
32447         Formatting fix.  Rename shadowed len variable to buflen.
32449 2020-02-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
32450             Kugan Vivekandarajah  <kugan.vivekanandarajah@linaro.org>
32452         PR driver/47785
32453         * gcc.c (putenv_COLLECT_AS_OPTIONS): New function.
32454         (driver::main): Call putenv_COLLECT_AS_OPTIONS.
32455         * opts-common.c (parse_options_from_collect_gcc_options): New function.
32456         (prepend_xassembler_to_collect_as_options): Likewise.
32457         * opts.h (parse_options_from_collect_gcc_options): Declare prototype.
32458         (prepend_xassembler_to_collect_as_options): Likewise.
32459         * lto-opts.c (lto_write_options): Stream assembler options
32460         in COLLECT_AS_OPTIONS.
32461         * lto-wrapper.c (xassembler_options_error): New static variable.
32462         (get_options_from_collect_gcc_options): Move parsing options code to
32463         parse_options_from_collect_gcc_options and call it.
32464         (merge_and_complain): Validate -Xassembler options.
32465         (append_compiler_options): Handle OPT_Xassembler.
32466         (run_gcc): Append command line -Xassembler options to
32467         collect_gcc_options.
32468         * doc/invoke.texi: Add documentation about using Xassembler
32469         options with LTO.
32471 2020-02-24  Kito Cheng  <kito.cheng@sifive.com>
32473         * config/riscv/riscv.c (riscv_emit_float_compare): Change the code gen
32474         for LTGT.
32475         (riscv_rtx_costs): Update cost model for LTGT.
32477 2020-02-23  Vladimir Makarov  <vmakarov@redhat.com>
32479         PR rtl-optimization/93564
32480         * ira-color.c (struct update_cost_queue_elem): New member start.
32481         (queue_update_cost, get_next_update_cost): Add new arg start.
32482         (allocnos_conflict_p): New function.
32483         (update_costs_from_allocno): Add new arg conflict_cost_update_p.
32484         Add checking conflicts with allocnos_conflict_p.
32485         (update_costs_from_prefs, restore_costs_from_copies): Adjust
32486         update_costs_from_allocno calls.
32487         (update_conflict_hard_regno_costs): Add checking conflicts with
32488         allocnos_conflict_p.  Adjust calls of queue_update_cost and
32489         get_next_update_cost.
32490         (assign_hard_reg): Adjust calls of queue_update_cost.  Add
32491         debugging print.
32492         (bucket_allocno_compare_func): Restore previous version.
32494 2020-02-21  John David Anglin  <danglin@gcc.gnu.org>
32496         * config/pa/pa.c (pa_function_value): Fix check for word and
32497         double-word size when handling aggregate return values.
32498         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Fix to indicate
32499         that homogeneous SFmode and DFmode aggregates are passed and returned
32500         in general registers.
32502 2020-02-21  Jakub Jelinek  <jakub@redhat.com>
32504         PR translation/93759
32505         * opts.c (print_filtered_help): Translate help before appending
32506         messages to it rather than after that.
32508 2020-02-19  Richard Sandiford  <richard.sandiford@arm.com>
32510         PR rtl-optimization/PR92989
32511         * lra-lives.c (process_bb_lives): Restore the original order
32512         of the bb liveness update.  Call make_hard_regno_dead for each
32513         register clobbered at the start of an EH receiver.
32515 2020-02-18  Feng Xue  <fxue@os.amperecomputing.com>
32517         PR ipa/93763
32518         * ipa-cp.c (self_recursively_generated_p): Mark self-dependent value as
32519         self-recursively generated.
32521 2020-02-21  Iain Sandoe  <iain@sandoe.co.uk>
32523         PR target/93860
32524         * config/darwin-c.c (pop_field_alignment): Adjust quoting of
32525         error string.
32527 2020-02-21  Mihail Ionescu  <mihail.ionescu@arm.com>
32529         * doc/sourcebuild.texi (arm_v8_1m_mve_ok):
32530         Document new target supports option.
32532 2020-02-21  Dennis Zhang  <dennis.zhang@arm.com>
32534         * config/arm/arm_neon.h (vmmlaq_s32, vmmlaq_u32, vusmmlaq_s32): New.
32535         * config/arm/arm_neon_builtins.def (smmla, ummla, usmmla): New.
32536         * config/arm/iterators.md (MATMUL): New iterator.
32537         (sup): Add UNSPEC_MATMUL_S, UNSPEC_MATMUL_U, and UNSPEC_MATMUL_US.
32538         (mmla_sfx): New attribute.
32539         * config/arm/neon.md (neon_<sup>mmlav16qi): New.
32540         * config/arm/unspecs.md (UNSPEC_MATMUL_S, UNSPEC_MATMUL_U): New.
32541         (UNSPEC_MATMUL_US): New.
32543 2020-02-21  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
32545         * config/arm/arm.md: Prevent scalar shifts from being used when big
32546         endian is enabled.
32548 2020-02-21  Jan Hubicka  <hubicka@ucw.cz>
32549             Richard Biener  <rguenther@suse.de>
32551         PR tree-optimization/93586
32552         * tree-ssa-alias.c (nonoverlapping_array_refs_p): Finish array walk
32553         after mismatched array refs; do not sure type size information to
32554         recover from unmatched referneces with !flag_strict_aliasing_p.
32556 2020-02-21  Andrew Stubbs  <ams@codesourcery.com>
32558         * config/gcn/gcn-valu.md (gather_load<mode>): Rename to ...
32559         (gather_load<mode>v64si): ... this and set operand 2 to V64SI.
32560         (scatter_store<mode>): Rename to ...
32561         (scatter_store<mode>v64si): ... this and set operand 1 to V64SI.
32562         (scatter<mode>_exec): Delete. Move contents ...
32563         (mask_scatter_store<mode>): ... here, and rename that to ...
32564         (mask_gather_load<mode>v64si): ... this. Set operand 2 to V64SI.
32565         Remove mode conversion.
32566         (mask_gather_load<mode>): Rename to ...
32567         (mask_scatter_store<mode>v64si): ... this. Set operand 1 to V64SI.
32568         Remove mode conversion.
32569         * config/gcn/gcn.c (gcn_expand_scaled_offsets): Remove mode conversion.
32571 2020-02-21  Martin Jambor  <mjambor@suse.cz>
32573         PR tree-optimization/93845
32574         * tree-sra.c (verify_sra_access_forest): Only test access size of
32575         scalar types.
32577 2020-02-21  Andrew Stubbs  <ams@codesourcery.com>
32579         * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align VGPR pairs.
32580         * config/gcn/gcn-valu.md (addv64di3): Remove early-clobber.
32581         (addv64di3_exec): Likewise.
32582         (subv64di3): Likewise.
32583         (subv64di3_exec): Likewise.
32584         (addv64di3_zext): Likewise.
32585         (addv64di3_zext_exec): Likewise.
32586         (addv64di3_zext_dup): Likewise.
32587         (addv64di3_zext_dup_exec): Likewise.
32588         (addv64di3_zext_dup2): Likewise.
32589         (addv64di3_zext_dup2_exec): Likewise.
32590         (addv64di3_sext_dup2): Likewise.
32591         (addv64di3_sext_dup2_exec): Likewise.
32592         (<expander>v64di3): Likewise.
32593         (<expander>v64di3_exec): Likewise.
32594         (*<reduc_op>_dpp_shr_v64di): Likewise.
32595         (*plus_carry_dpp_shr_v64di): Likewise.
32596         * config/gcn/gcn.md (adddi3): Likewise.
32597         (addptrdi3): Likewise.
32598         (<expander>di3): Likewise.
32600 2020-02-21  Andrew Stubbs  <ams@codesourcery.com>
32602         * config/gcn/gcn-valu.md (vec_seriesv64di): Use gen_vec_duplicatev64di.
32604 2020-02-21  Richard Sandiford  <richard.sandiford@arm.com>
32606         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Add SVE
32607         support.  Use aarch64_emit_mult instead of emitting multiplication
32608         instructions directly.
32609         * config/aarch64/aarch64-sve.md (sqrt<mode>2, rsqrt<mode>2)
32610         (@aarch64_rsqrte<mode>, @aarch64_rsqrts<mode>): New expanders.
32612 2020-02-21  Richard Sandiford  <richard.sandiford@arm.com>
32614         * config/aarch64/aarch64.c (aarch64_emit_mult): New function.
32615         (aarch64_emit_approx_div): Add SVE support.  Use aarch64_emit_mult
32616         instead of emitting multiplication instructions directly.
32617         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_OPTAB): New iterator.
32618         * config/aarch64/aarch64-sve.md (div<mode>3, @aarch64_frecpe<mode>)
32619         (@aarch64_frecps<mode>): New expanders.
32621 2020-02-21  Richard Sandiford  <richard.sandiford@arm.com>
32623         * config/aarch64/aarch64-protos.h (AARCH64_APPROX_MODE): Operate
32624         on and produce uint64_ts rather than ints.
32625         (AARCH64_APPROX_NONE, AARCH64_APPROX_ALL): Change to uint64_ts.
32626         (cpu_approx_modes): Change the fields from unsigned int to uint64_t.
32628 2020-02-21  Richard Sandiford  <richard.sandiford@arm.com>
32630         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Don't create
32631         an unused xmsk register when handling approximate rsqrt.
32633 2020-02-21  Richard Sandiford  <richard.sandiford@arm.com>
32635         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Fix inverted
32636         flag_finite_math_only condition.
32638 2020-02-20  Uroš Bizjak  <ubizjak@gmail.com>
32640         PR target/93828
32641         * config/i386/mmx.md (*vec_extractv2sf_1): Match source operand
32642         to destination operand for shufps alternative.
32643         (*vec_extractv2si_1): Ditto.
32645 2020-02-20  Peter Bergner  <bergner@linux.ibm.com>
32647         PR target/93658
32648         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Handle VSX
32649         vector modes.
32651 2020-02-20  Martin Liska  <mliska@suse.cz>
32653         PR translation/93831
32654         * config/darwin.c (darwin_override_options): Change 64b to 64-bit mode.
32656 2020-02-20  Martin Liska  <mliska@suse.cz>
32658         PR translation/93830
32659         * common/config/avr/avr-common.c: Remote trailing "|".
32661 2020-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32663         * collect2.c (maybe_run_lto_and_relink): Fix typo in
32664         comment.
32666 2020-02-19  Richard Sandiford  <richard.sandiford@arm.com>
32668         PR tree-optimization/93767
32669         * tree-vect-data-refs.c (vect_compile_time_alias): Remove the
32670         access-size bias from the offset calculations for negative strides.
32672 2020-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
32674         * collect2.c (c_file, o_file): Make const again.
32675         (ldout,lderrout, dump_ld_file): Remove.
32676         (tool_cleanup): Avoid calling not signal-safe functions.
32677         (maybe_run_lto_and_relink): Avoid possible signal handler
32678         access to unintialzed memory (lto_o_files).
32679         (main): Avoid leaking temp files in $TMPDIR.
32680         Initialize c_file/o_file with concat, which avoids exposing
32681         uninitialized memory to signal handler, which calls unlink(!).
32682         Avoid calling maybe_unlink when the main function returns,
32683         since the atexit handler is already doing this.
32684         * collect2.h (dump_ld_file, ldout, lderrout): Remove.
32686 2020-02-19  Martin Jambor  <mjambor@suse.cz>
32688         PR tree-optimization/93776
32689         * tree-sra.c (create_access): Do not create zero size accesses.
32690         (get_access_for_expr): Do not search for zero sized accesses.
32692 2020-02-19  Martin Jambor  <mjambor@suse.cz>
32694         PR tree-optimization/93667
32695         * tree-sra.c (scalarizable_type_p): Return false if record fields
32696         do not follow wach other.
32698 2020-01-21  Kito Cheng  <kito.cheng@sifive.com>
32700         * config/riscv/riscv.c (riscv_output_move) Using fmv.x.w/fmv.w.x
32701         rather than fmv.x.s/fmv.s.x.
32703 2020-02-18  James Greenhalgh  <james.greenhalgh@arm.com>
32705         * config/aarch64/aarch64-simd-builtins.def
32706         (intrinsic_vec_smult_lo_): New.
32707         (intrinsic_vec_umult_lo_): Likewise.
32708         (vec_widen_smult_hi_): Likewise.
32709         (vec_widen_umult_hi_): Likewise.
32710         * config/aarch64/aarch64-simd.md
32711         (aarch64_intrinsic_vec_<su>mult_lo_<mode>): New.
32712         * config/aarch64/arm_neon.h (vmull_high_s8): Use intrinsics.
32713         (vmull_high_s16): Likewise.
32714         (vmull_high_s32): Likewise.
32715         (vmull_high_u8): Likewise.
32716         (vmull_high_u16): Likewise.
32717         (vmull_high_u32): Likewise.
32718         (vmull_s8): Likewise.
32719         (vmull_s16): Likewise.
32720         (vmull_s32): Likewise.
32721         (vmull_u8): Likewise.
32722         (vmull_u16): Likewise.
32723         (vmull_u32): Likewise.
32725 2020-02-18  Martin Liska  <mliska@suse.cz>
32727         * value-prof.c (stream_out_histogram_value): Restore LTO PGO
32728         bootstrap by missing removal of invalid sanity check.
32730 2020-02-18  Martin Liska  <mliska@suse.cz>
32732         PR ipa/92518
32733         * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
32734         Always compare LHS of gimple_assign.
32736 2020-02-18  Martin Liska  <mliska@suse.cz>
32738         PR ipa/93583
32739         * cgraph.c (cgraph_node::verify_node): Verify MALLOC attribute
32740         and return type of functions.
32741         * ipa-param-manipulation.c (ipa_param_adjustments::adjust_decl):
32742         Drop MALLOC attribute for void functions.
32743         * ipa-pure-const.c (funct_state_summary_t::duplicate): Drop
32744         malloc_state for a new VOID clone.
32746 2020-02-18  Martin Liska  <mliska@suse.cz>
32748         PR ipa/92924
32749         * common.opt: Add -fprofile-reproducibility.
32750         * doc/invoke.texi: Document it.
32751         * value-prof.c (dump_histogram_value):
32752         Document and support behavior for counters[0]
32753         being a negative value.
32754         (get_nth_most_common_value): Handle negative
32755         counters[0] in respect to flag_profile_reproducible.
32757 2020-02-18  Jakub Jelinek  <jakub@redhat.com>
32759         PR ipa/93797
32760         * cgraph.c (verify_speculative_call): Use speculative_id instead of
32761         speculative_uid in messages.  Remove trailing whitespace from error
32762         message.  Use num_speculative_call_targets instead of
32763         num_speculative_targets in a message.
32764         (cgraph_node::verify_node): Use call_stmt instead of cal_stmt in
32765         edge messages and stmt instead of cal_stmt in reference message.
32767         PR tree-optimization/93780
32768         * tree-ssa.c (non_rewritable_lvalue_p): Check valid_vector_subparts_p
32769         before calling build_vector_type.
32770         (execute_update_addresses_taken): Likewise.
32772         PR driver/93796
32773         * params.opt (-param=ipa-max-switch-predicate-bounds=): Fix help
32774         typo, functoin -> function.
32775         * tree.c (free_lang_data_in_decl): Fix comment typo,
32776         functoin -> function.
32777         * ipa-visibility.c (cgraph_externally_visible_p): Likewise.
32779 2020-02-17  David Malcolm  <dmalcolm@redhat.com>
32781         * diagnostic.c (print_any_cwe): Don't call get_cwe_url if URLs
32782         won't be printed.
32783         (print_option_information): Don't call get_option_url if URLs
32784         won't be printed.
32786 2020-02-17  Alexandre Oliva  <oliva@adacore.com>
32788         * tree-emutls.c (new_emutls_decl, emutls_common_1): Complete
32789         handling of register_common-less targets.
32791 2020-02-17  Martin Liska  <mliska@suse.cz>
32793         PR ipa/93760
32794         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar.
32796 2020-02-17  Martin Liska  <mliska@suse.cz>
32798         PR translation/93755
32799         * config/rs6000/rs6000.c (rs6000_option_override_internal):
32800         Fix double quotes.
32802 2020-02-17  Martin Liska  <mliska@suse.cz>
32804         PR other/93756
32805         * config/rx/elf.opt: Fix typo.
32807 2020-02-17  Richard Biener  <rguenther@suse.de>
32809         PR c/86134
32810         * opts-global.c (print_ignored_options): Use inform and
32811         amend message.
32813 2020-02-17  Jiufu Guo  <guojiufu@linux.ibm.com>
32815         PR target/93047
32816         * config/rs6000/rs6000.md (untyped_call): Add emit_clobber.
32818 2020-02-16  Uroš Bizjak  <ubizjak@gmail.com>
32820         PR target/93743
32821         * config/i386/i386.md (atan2xf3): Swap operands 1 and 2.
32822         (atan2<mode>3): Update operand order in the call to gen_atan2xf3.
32824 2020-02-15  Jason Merrill  <jason@redhat.com>
32826         * doc/invoke.texi (C Dialect Options): Add -std=c++20.
32828 2020-02-15  Jakub Jelinek  <jakub@redhat.com>
32830         PR tree-optimization/93744
32831         * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0,
32832         A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
32833         A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): For GENERIC, make
32834         sure @2 in the first and @1 in the other patterns has no side-effects.
32836 2020-02-15  David Malcolm  <dmalcolm@redhat.com>
32837             Bernd Edlinger  <bernd.edlinger@hotmail.de>
32839         PR 87488
32840         PR other/93168
32841         * config.in (DIAGNOSTICS_URLS_DEFAULT): New define.
32842         * configure.ac (--with-diagnostics-urls): New configuration
32843         option, based on --with-diagnostics-color.
32844         (DIAGNOSTICS_URLS_DEFAULT): New define.
32845         * config.h: Regenerate.
32846         * configure: Regenerate.
32847         * diagnostic.c (diagnostic_urls_init): Handle -1 for
32848         DIAGNOSTICS_URLS_DEFAULT from configure-time
32849         --with-diagnostics-urls=auto-if-env by querying for a GCC_URLS
32850         and TERM_URLS environment variable.
32851         * diagnostic-url.h (diagnostic_url_format): New enum type.
32852         (diagnostic_urls_enabled_p): rename to...
32853         (determine_url_format): ... this, and change return type.
32854         * diagnostic-color.c (parse_env_vars_for_urls): New helper function.
32855         (auto_enable_urls): Disable URLs on xfce4-terminal, gnome-terminal,
32856         the linux console, and mingw.
32857         (diagnostic_urls_enabled_p): rename to...
32858         (determine_url_format): ... this, and adjust.
32859         * pretty-print.h (pretty_printer::show_urls): rename to...
32860         (pretty_printer::url_format): ... this, and change to enum.
32861         * pretty-print.c (pretty_printer::pretty_printer,
32862         pp_begin_url, pp_end_url, test_urls): Adjust.
32863         * doc/install.texi (--with-diagnostics-urls): Document the new
32864         configuration option.
32865         (--with-diagnostics-color): Document the existing interaction
32866         with GCC_COLORS better.
32867         * doc/invoke.texi (-fdiagnostics-urls): Add GCC_URLS and TERM_URLS
32868         vindex reference.  Update description of defaults based on the above.
32869         (-fdiagnostics-color): Update description of how -fdiagnostics-color
32870         interacts with GCC_COLORS.
32872 2020-02-14  Eric Botcazou  <ebotcazou@adacore.com>
32874         PR target/93704
32875         * config/sparc/sparc.c (eligible_for_call_delay): Test HAVE_GNU_LD in
32876         conjunction with TARGET_GNU_TLS in early return.
32878 2020-02-14  Alexander Monakov  <amonakov@ispras.ru>
32880         * rtlanal.c (rtx_cost): Handle a SET up front. Avoid division if
32881         the mode is not wider than UNITS_PER_WORD.
32883 2020-02-14  Martin Jambor  <mjambor@suse.cz>
32885         PR tree-optimization/93516
32886         * tree-sra.c (propagate_subaccesses_from_rhs): Do not create
32887         access of the same type as the parent.
32888         (propagate_subaccesses_from_lhs): Likewise.
32890 2020-02-14 Hongtao Liu  <hongtao.liu@intel.com>
32892         PR target/93724
32893         * config/i386/avx512vbmi2intrin.h
32894         (_mm512_shrdi_epi16, _mm512_mask_shrdi_epi16,
32895         _mm512_maskz_shrdi_epi16, _mm512_shrdi_epi32,
32896         _mm512_mask_shrdi_epi32, _mm512_maskz_shrdi_epi32,
32897         _m512_shrdi_epi64, _m512_mask_shrdi_epi64,
32898         _m512_maskz_shrdi_epi64, _mm512_shldi_epi16,
32899         _mm512_mask_shldi_epi16, _mm512_maskz_shldi_epi16,
32900         _mm512_shldi_epi32, _mm512_mask_shldi_epi32,
32901         _mm512_maskz_shldi_epi32, _mm512_shldi_epi64,
32902         _mm512_mask_shldi_epi64, _mm512_maskz_shldi_epi64): Fix typo
32903         of lacking a closing parenthesis.
32904         * config/i386/avx512vbmi2vlintrin.h
32905         (_mm256_shrdi_epi16, _mm256_mask_shrdi_epi16,
32906         _mm256_maskz_shrdi_epi16, _mm256_shrdi_epi32,
32907         _mm256_mask_shrdi_epi32, _mm256_maskz_shrdi_epi32,
32908         _m256_shrdi_epi64, _m256_mask_shrdi_epi64,
32909         _m256_maskz_shrdi_epi64, _mm256_shldi_epi16,
32910         _mm256_mask_shldi_epi16, _mm256_maskz_shldi_epi16,
32911         _mm256_shldi_epi32, _mm256_mask_shldi_epi32,
32912         _mm256_maskz_shldi_epi32, _mm256_shldi_epi64,
32913         _mm256_mask_shldi_epi64, _mm256_maskz_shldi_epi64,
32914         _mm_shrdi_epi16, _mm_mask_shrdi_epi16,
32915         _mm_maskz_shrdi_epi16, _mm_shrdi_epi32,
32916         _mm_mask_shrdi_epi32, _mm_maskz_shrdi_epi32,
32917         _mm_shrdi_epi64, _mm_mask_shrdi_epi64,
32918         _m_maskz_shrdi_epi64, _mm_shldi_epi16,
32919         _mm_mask_shldi_epi16, _mm_maskz_shldi_epi16,
32920         _mm_shldi_epi32, _mm_mask_shldi_epi32,
32921         _mm_maskz_shldi_epi32, _mm_shldi_epi64,
32922         _mm_mask_shldi_epi64, _mm_maskz_shldi_epi64): Ditto.
32924 2020-02-13  H.J. Lu  <hongjiu.lu@intel.com>
32926         PR target/93656
32927         * config/i386/i386.c (ix86_trampoline_init): Skip ENDBR32 at
32928         the target function entry.
32930 2020-02-13  Claudiu Zissulescu  <claziss@synopsys.com>
32932         * common/config/arc/arc-common.c (arc_option_optimization_table):
32933         Disable if-conversion step when optimized for size.
32935 2020-02-13  Claudiu Zissulescu  <claziss@synopsys.com>
32937         * config/arc/arc.c (arc_conditional_register_usage): R0-R3 and
32938         R12-R15 are always in ARCOMPACT16_REGS register class.
32939         * config/arc/arc.opt (mq-class): Deprecate.
32940         * config/arc/constraint.md ("q"): Remove dependency on mq-class
32941         option.
32942         * doc/invoke.texi (mq-class): Update text.
32943         * common/config/arc/arc-common.c (arc_option_optimization_table):
32944         Update list.
32946 2020-02-13  Claudiu Zissulescu  <claziss@synopsys.com>
32948         * config/arc/arc.c (arc_insn_cost): New function.
32949         (TARGET_INSN_COST): Define.
32950         * config/arc/arc.md (cost): New attribute.
32951         (add_n): Use arc_nonmemory_operand.
32952         (ashlsi3_insn): Likewise, also update constraints.
32953         (ashrsi3_insn): Likewise.
32954         (rotrsi3): Likewise.
32955         (add_shift): Likewise.
32956         * config/arc/predicates.md (arc_nonmemory_operand): New predicate.
32958 2020-02-13  Claudiu Zissulescu  <claziss@synopsys.com>
32960         * config/arc/arc.md (mulsidi_600): Correctly select mlo/mhi
32961         registers.
32962         (umulsidi_600): Likewise.
32964 2020-02-13  Jakub Jelinek  <jakub@redhat.com>
32966         PR target/93696
32967         * config/i386/avx512bitalgintrin.h (_mm512_mask_popcnt_epi8,
32968         _mm512_mask_popcnt_epi16, _mm256_mask_popcnt_epi8,
32969         _mm256_mask_popcnt_epi16, _mm_mask_popcnt_epi8,
32970         _mm_mask_popcnt_epi16): Rename __B argument to __A and __A to __W,
32971         pass __A to the builtin followed by __W instead of __A followed by
32972         __B.
32973         * config/i386/avx512vpopcntdqintrin.h (_mm512_mask_popcnt_epi32,
32974         _mm512_mask_popcnt_epi64): Likewise.
32975         * config/i386/avx512vpopcntdqvlintrin.h (_mm_mask_popcnt_epi32,
32976         _mm256_mask_popcnt_epi32, _mm_mask_popcnt_epi64,
32977         _mm256_mask_popcnt_epi64): Likewise.
32979         PR tree-optimization/93582
32980         * fold-const.h (shift_bytes_in_array_left,
32981         shift_bytes_in_array_right): Declare.
32982         * fold-const.c (shift_bytes_in_array_left,
32983         shift_bytes_in_array_right): New function, moved from
32984         gimple-ssa-store-merging.c, no longer static.
32985         * gimple-ssa-store-merging.c (shift_bytes_in_array): Move
32986         to gimple-ssa-store-merging.c and rename to shift_bytes_in_array_left.
32987         (shift_bytes_in_array_right): Move to gimple-ssa-store-merging.c.
32988         (encode_tree_to_bitpos): Use shift_bytes_in_array_left instead of
32989         shift_bytes_in_array.
32990         (verify_shift_bytes_in_array): Rename to ...
32991         (verify_shift_bytes_in_array_left): ... this.  Use
32992         shift_bytes_in_array_left instead of shift_bytes_in_array.
32993         (store_merging_c_tests): Call verify_shift_bytes_in_array_left
32994         instead of verify_shift_bytes_in_array.
32995         * tree-ssa-sccvn.c (vn_reference_lookup_3): For native_encode_expr
32996         / native_interpret_expr where the store covers all needed bits,
32997         punt on PDP-endian, otherwise allow all involved offsets and sizes
32998         not to be byte-aligned.
33000         PR target/93673
33001         * config/i386/sse.md (k<code><mode>): Drop mode from last operand and
33002         use const_0_to_255_operand predicate instead of immediate_operand.
33003         (avx512dq_fpclass<mode><mask_scalar_merge_name>,
33004         avx512dq_vmfpclass<mode><mask_scalar_merge_name>,
33005         vgf2p8affineinvqb_<mode><mask_name>,
33006         vgf2p8affineqb_<mode><mask_name>): Drop mode from
33007         const_0_to_255_operand predicated operands.
33009 2020-02-12  Jeff Law  <law@redhat.com>
33011         * config/h8300/h8300.md (comparison shortening peepholes): Use
33012         a mode iterator to merge the HImode and SImode peepholes.
33014 2020-02-12  Jakub Jelinek  <jakub@redhat.com>
33016         PR middle-end/93663
33017         * real.c (is_even): Make static.  Function comment fix.
33018         (is_halfway_below): Make static, don't assert R is not inf/nan,
33019         instead return false for those.  Small formatting fixes.
33021 2020-02-12  Martin Sebor  <msebor@redhat.com>
33023         PR middle-end/93646
33024         * tree-ssa-strlen.c (handle_builtin_stxncpy): Rename...
33025         (handle_builtin_stxncpy_strncat): ...to this.  Change first argument.
33026         Issue only -Wstringop-overflow strncat, never -Wstringop-truncation.
33027         (strlen_check_and_optimize_call): Adjust callee name.
33029 2020-02-12  Jeff Law  <law@redhat.com>
33031         * config/h8300/h8300.md (comparison shortening peepholes): Drop
33032         (and (xor)) variant.  Combine other two into single peephole.
33034 2020-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
33036         PR rtl-optimization/93565
33037         * config/aarch64/aarch64.c (aarch64_rtx_costs): Add CTZ costs.
33039 2020-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
33041         * config/aarch64/aarch64-simd.md
33042         (aarch64_zero_extend<GPI:mode>_reduc_plus_<VDQV_E:mode>): New pattern.
33043         * config/aarch64/aarch64.md (popcount<mode>2): Use it instead of
33044         generating separate ADDV and zero_extend patterns.
33045         * config/aarch64/iterators.md (VDQV_E): New iterator.
33047 2020-02-12  Jeff Law  <law@redhat.com>
33049         * config/h8300/h8300.md (cpymemsi, movmd): Remove dead patterns,
33050         expanders, splits, etc.
33051         (movmd_internal_<mode>, movmd splitter, movstr, movsd): Likewise.
33052         (stpcpy_internal_<mode>, stpcpy splitter): Likewise.
33053         (peepholes to convert QI/HI mode pushes to SI mode pushes): Likewise.
33054         * config/h8300/h8300.c (h8300_swap_into_er6): Remove unused function.
33055         (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise
33056         * config/h8300/h8300-protos.h (h8300_swap_into_er6): Remove unused
33057         function prototype.
33058         (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise.
33060 2020-02-12  Jakub Jelinek  <jakub@redhat.com>
33062         PR target/93670
33063         * config/i386/sse.md (VI48F_256_DQ): New mode iterator.
33064         (avx512vl_vextractf128<mode>): Use it instead of VI48F_256.  Remove
33065         TARGET_AVX512DQ from condition.
33066         (vec_extract_lo_<mode><mask_name>): Use <mask_avx512dq_condition>
33067         instead of <mask_mode512bit_condition> in condition.  If
33068         TARGET_AVX512DQ is false, emit vextract*64x4 instead of
33069         vextract*32x8.
33070         (vec_extract_lo_<mode><mask_name>): Drop <mask_avx512dq_condition>
33071         from condition.
33073 2020-02-12  Kewen Lin  <linkw@gcc.gnu.org>
33075         PR target/91052
33076         * ira.c (combine_and_move_insns): Skip multiple_sets def_insn.
33078 2020-02-12  Segher Boessenkool  <segher@kernel.crashing.org>
33080         * config/rs6000/rs6000.c (rs6000_debug_print_mode): Don't use sizeof
33081         where strlen is more legible.
33082         (rs6000_builtin_vectorized_libmass): Ditto.
33083         (rs6000_print_options_internal): Ditto.
33085 2020-02-11  Martin Sebor  <msebor@redhat.com>
33087         PR tree-optimization/93683
33088         * tree-ssa-alias.c (stmt_kills_ref_p): Avoid using LHS when not set.
33090 2020-02-11  Michael Meissner  <meissner@linux.ibm.com>
33092         * config/rs6000/predicates.md (cint34_operand): Rename the
33093         -mprefixed-addr option to be -mprefixed.
33094         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Rename
33095         the -mprefixed-addr option to be -mprefixed.
33096         (OTHER_FUTURE_MASKS): Likewise.
33097         (POWERPC_MASKS): Likewise.
33098         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
33099         the -mprefixed-addr option to be -mprefixed.  Change error
33100         messages to refer to -mprefixed.
33101         (num_insns_constant_gpr): Rename the -mprefixed-addr option to be
33102         -mprefixed.
33103         (rs6000_legitimate_offset_address_p): Likewise.
33104         (rs6000_mode_dependent_address): Likewise.
33105         (rs6000_opt_masks): Change the spelling of "-mprefixed-addr" to be
33106         "-mprefixed" for target attributes and pragmas.
33107         (address_to_insn_form): Rename the -mprefixed-addr option to be
33108         -mprefixed.
33109         (rs6000_adjust_insn_length): Likewise.
33110         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Rename the
33111         -mprefixed-addr option to be -mprefixed.
33112         (ASM_OUTPUT_OPCODE): Likewise.
33113         * config/rs6000/rs6000.md (prefixed insn attribute): Rename the
33114         -mprefixed-addr option to be -mprefixed.
33115         * config/rs6000/rs6000.opt (-mprefixed): Rename the
33116         -mprefixed-addr option to be prefixed.  Change the option from
33117         being undocumented to being documented.
33118         * doc/invoke.texi (RS/6000 and PowerPC Options): Document the
33119         -mprefixed option.  Update the -mpcrel documentation to mention
33120         -mprefixed.
33122 2020-02-11  Hans-Peter Nilsson  <hp@axis.com>
33124         * ira-conflicts.c (print_hard_reg_set): Correct output for sets
33125         including FIRST_PSEUDO_REGISTER - 1.
33126         * ira-color.c (print_hard_reg_set): Ditto.
33128 2020-02-11  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
33130         * config/arm/arm-builtins.c (enum arm_type_qualifiers): 
33131         (USTERNOP_QUALIFIERS): New define.
33132         (USMAC_LANE_QUADTUP_QUALIFIERS): New define.
33133         (SUMAC_LANE_QUADTUP_QUALIFIERS): New define.
33134         (arm_expand_builtin_args): Add case ARG_BUILTIN_LANE_QUADTUP_INDEX.
33135         (arm_expand_builtin_1): Add qualifier_lane_quadtup_index.
33136         * config/arm/arm_neon.h (vusdot_s32): New.
33137         (vusdot_lane_s32): New.
33138         (vusdotq_lane_s32): New.
33139         (vsudot_lane_s32): New.
33140         (vsudotq_lane_s32): New.
33141         * config/arm/arm_neon_builtins.def (usdot, usdot_lane,sudot_lane): New.
33142         * config/arm/iterators.md (DOTPROD_I8MM): New.
33143         (sup, opsuffix): Add <us/su>.
33144         * config/arm/neon.md (neon_usdot, <us/su>dot_lane: New.
33145         * config/arm/unspecs.md (UNSPEC_DOT_US, UNSPEC_DOT_SU): New.
33147 2020-02-11  Richard Biener  <rguenther@suse.de>
33149         PR tree-optimization/93661
33150         PR tree-optimization/93662
33151         * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
33152         tree_to_poly_int64.
33153         * tree-sra.c (get_access_for_expr): Likewise.
33155 2020-02-10  Jakub Jelinek  <jakub@redhat.com>
33157         PR target/93637
33158         * config/i386/sse.md (VI_256_AVX2): New mode iterator.
33159         (vcond_mask_<mode><sseintvecmodelower>): Use it instead of VI_256.
33160         Change condition from TARGET_AVX2 to TARGET_AVX.
33162 2020-02-10  Iain Sandoe  <iain@sandoe.co.uk>
33164         PR other/93641
33165         * config/darwin-c.c (darwin_cfstring_ref_p): Fix up last
33166         argument of strncmp.
33168 2020-02-10  Hans-Peter Nilsson  <hp@axis.com>
33170         Try to generate zero-based comparisons.
33171         * config/cris/cris.c (cris_reduce_compare): New function.
33172         * config/cris/cris-protos.h  (cris_reduce_compare): Add prototype.
33173         * config/cris/cris.md ("cbranch<mode>4", "cbranchdi4", "cstoredi4")
33174         (cstore<mode>4"): Apply cris_reduce_compare in expanders.
33176 2020-02-10  Richard Earnshaw  <rearnsha@arm.com>
33178         PR target/91913
33179         * config/arm/arm.md (movsi_compare0): Allow SP as a source register
33180         in Thumb state and also as a destination in Arm state.  Add T16
33181         variants.
33183 2020-02-10  Hans-Peter Nilsson  <hp@axis.com>
33185         * md.texi (Define Subst): Match closing paren in example.
33187 2020-02-10  Jakub Jelinek  <jakub@redhat.com>
33189         PR target/58218
33190         PR other/93641
33191         * config/i386/i386.c (x86_64_elf_section_type_flags): Fix up last
33192         arguments of strncmp.
33194 2020-02-10  Feng Xue  <fxue@os.amperecomputing.com>
33196         PR ipa/93203
33197         * ipa-cp.c (ipcp_lattice::add_value): Add source with same call edge
33198         but different source value.
33199         (adjust_callers_for_value_intersection): New function.
33200         (gather_edges_for_value): Adjust order of callers to let a
33201         non-self-recursive caller be the first element.
33202         (self_recursive_pass_through_p): Add a new parameter "simple", and
33203         check generalized self-recursive pass-through jump function.
33204         (self_recursive_agg_pass_through_p): Likewise.
33205         (find_more_scalar_values_for_callers_subset): Compute value from
33206         pass-through jump function for self-recursive.
33207         (intersect_with_plats): Cleanup previous implementation code for value
33208         itersection with self-recursive call edge.
33209         (intersect_with_agg_replacements): Likewise.
33210         (intersect_aggregates_with_edge): Deduce value from pass-through jump
33211         function for self-recursive call edge.  Cleanup previous implementation
33212         code for value intersection with self-recursive call edge.
33213         (decide_whether_version_node): Remove dead callers and adjust order
33214         to let a non-self-recursive caller be the first element.
33216 2020-02-09  Uroš Bizjak  <ubizjak@gmail.com>
33218         * recog.c: Move pass_split_before_sched2 code in front of
33219         pass_split_before_regstack.
33220         (pass_data_split_before_sched2): Rename pass to split3 from split4.
33221         (pass_data_split_before_regstack): Rename pass to split4 from split3.
33222         (rest_of_handle_split_before_sched2): Remove.
33223         (pass_split_before_sched2::execute): Unconditionally call
33224         split_all_insns.
33225         (enable_split_before_sched2): New function.
33226         (pass_split_before_sched2::gate): Use enable_split_before_sched2.
33227         (pass_split_before_regstack::gate): Ditto.
33228         * config/nds32/nds32.c (nds32_split_double_word_load_store_p):
33229         Update name check for renamed split4 pass.
33230         * config/sh/sh.c (register_sh_passes): Update pass insertion
33231         point for renamed split4 pass.
33233 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
33235         * gimplify.c (gimplify_adjust_omp_clauses_1): Promote
33236         DECL_IN_CONSTANT_POOL variables into "omp declare target" to avoid
33237         copying them around between host and target.
33239 2020-02-08  Andrew Pinski  <apinski@marvell.com>
33241         PR target/91927
33242         * config/aarch64/aarch64-simd.md (movmisalign<mode>): Check
33243         STRICT_ALIGNMENT also.
33245 2020-02-08  Jim Wilson  <jimw@sifive.com>
33247         PR target/93532
33248         * config/riscv/riscv.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
33250 2020-02-08  Uroš Bizjak  <ubizjak@gmail.com>
33251             Jakub Jelinek  <jakub@redhat.com>
33253         PR target/65782
33254         * config/i386/i386.h (CALL_USED_REGISTERS): Make
33255         xmm16-xmm31 call-used even in 64-bit ms-abi.
33257 2020-02-07  Dennis Zhang  <dennis.zhang@arm.com>
33259         * config/aarch64/aarch64-simd-builtins.def (simd_smmla): New entry.
33260         (simd_ummla, simd_usmmla): Likewise.
33261         * config/aarch64/aarch64-simd.md (aarch64_simd_<sur>mmlav16qi): New.
33262         * config/aarch64/arm_neon.h (vmmlaq_s32, vmmlaq_u32): New.
33263         (vusmmlaq_s32): New.
33265 2020-02-07  Richard Biener  <rguenther@suse.de>
33267         PR middle-end/93519
33268         * tree-inline.c (fold_marked_statements): Do a PRE walk,
33269         skipping unreachable regions.
33270         (optimize_inline_calls): Skip folding stmts when we didn't
33271         inline.
33273 2020-02-07  H.J. Lu  <hongjiu.lu@intel.com>
33275         PR target/85667
33276         * config/i386/i386.c (function_arg_ms_64): Add a type argument.
33277         Don't return aggregates with only SFmode and DFmode in SSE
33278         register.
33279         (ix86_function_arg): Pass arg.type to function_arg_ms_64.
33281 2020-02-07  Jakub Jelinek  <jakub@redhat.com>
33283         PR target/93122
33284         * config/rs6000/rs6000-logue.c
33285         (rs6000_emit_probe_stack_range_stack_clash): Always use gen_add3_insn,
33286         if it fails, move rs into end_addr and retry.  Add
33287         REG_FRAME_RELATED_EXPR note whenever it returns more than one insn or
33288         the insn pattern doesn't describe well what exactly happens to
33289         dwarf2cfi.c.
33291         PR target/93594
33292         * config/i386/predicates.md (avx_identity_operand): Remove.
33293         * config/i386/sse.md (*avx_vec_concat<mode>_1): Remove.
33294         (avx_<castmode><avxsizesuffix>_<castmode>,
33295         avx512f_<castmode><avxsizesuffix>_256<castmode>): Change patterns to
33296         a VEC_CONCAT of the operand and UNSPEC_CAST.
33297         (avx512f_<castmode><avxsizesuffix>_<castmode>): Change pattern to
33298         a VEC_CONCAT of VEC_CONCAT of the operand and UNSPEC_CAST with
33299         UNSPEC_CAST.
33301         PR target/93611
33302         * config/i386/i386.c (ix86_lea_outperforms): Make sure to clear
33303         recog_data.insn if distance_non_agu_define changed it.
33305 2020-02-06  Michael Meissner  <meissner@linux.ibm.com>
33307         PR target/93569
33308         * config/rs6000/rs6000.c (reg_to_non_prefixed): Before ISA 3.0
33309         we only had X-FORM (reg+reg) addressing for vectors.  Also before
33310         ISA 3.0, we only had X-FORM addressing for scalars in the
33311         traditional Altivec registers.
33313 2020-02-06  <zhongyunde@huawei.com>
33314             Vladimir Makarov  <vmakarov@redhat.com>
33316         PR rtl-optimization/93561
33317         * lra-assigns.c (spill_for): Check that tested hard regno is not out of
33318         hard register range.
33320 2020-02-06  Richard Sandiford  <richard.sandiford@arm.com>
33322         * config/aarch64/aarch64.md (aarch64_movk<mode>): Add a type
33323         attribute.
33325 2020-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
33327         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Handle the case
33328         where the low and the high 32 bits are equal to each other specially,
33329         with an rldimi instruction.
33331 2020-02-06  Mihail Ionescu  <mihail.ionescu@arm.com>
33333         * config/arm/arm-cpus.in: Set profile M for armv8.1-m.main.
33335 2020-02-06  Mihail Ionescu  <mihail.ionescu@arm.com>
33337         * config/arm/arm-tables.opt: Regenerate.
33339 2020-02-06  Richard Sandiford  <richard.sandiford@arm.com>
33341         PR target/87763
33342         * config/aarch64/aarch64-protos.h (aarch64_movk_shift): Declare.
33343         * config/aarch64/aarch64.c (aarch64_movk_shift): New function.
33344         * config/aarch64/aarch64.md (aarch64_movk<mode>): New pattern.
33346 2020-02-06  Richard Sandiford  <richard.sandiford@arm.com>
33348         PR rtl-optimization/87763
33349         * config/aarch64/aarch64.md (*ashiftsi_extvdi_bfiz): New pattern.
33351 2020-02-06  Delia Burduv  <delia.burduv@arm.com>
33353         * config/aarch64/aarch64-simd-builtins.def
33354         (bfmlaq): New built-in function.
33355         (bfmlalb): New built-in function.
33356         (bfmlalt): New built-in function.
33357         (bfmlalb_lane): New built-in function.
33358         (bfmlalt_lane): New built-in function.
33359         * config/aarch64/aarch64-simd.md
33360         (aarch64_bfmmlaqv4sf): New pattern.
33361         (aarch64_bfmlal<bt>v4sf): New pattern.
33362         (aarch64_bfmlal<bt>_lane<q>v4sf): New pattern.
33363         * config/aarch64/arm_neon.h (vbfmmlaq_f32): New intrinsic.
33364         (vbfmlalbq_f32): New intrinsic.
33365         (vbfmlaltq_f32): New intrinsic.
33366         (vbfmlalbq_lane_f32): New intrinsic.
33367         (vbfmlaltq_lane_f32): New intrinsic.
33368         (vbfmlalbq_laneq_f32): New intrinsic.
33369         (vbfmlaltq_laneq_f32): New intrinsic.
33370         * config/aarch64/iterators.md (BF_MLA): New int iterator.
33371         (bt): New int attribute.
33373 2020-02-06  Uroš Bizjak  <ubizjak@gmail.com>
33375         * config/i386/i386.md (*pushtf): Emit "#" instead of
33376         calling gcc_unreachable in insn output.
33377         (*pushxf): Ditto.
33378         (*pushdf): Ditto.
33379         (*pushsf_rex64): Ditto for alternatives other than 1.
33380         (*pushsf): Ditto for alternatives other than 1.
33382 2020-02-06  Martin Liska  <mliska@suse.cz>
33384         PR gcov-profile/91971
33385         PR gcov-profile/93466
33386         * coverage.c (coverage_init): Revert mangling of
33387         path into filename.  It can lead to huge filename length.
33388         Creation of subfolders seem more natural.
33390 2020-02-06  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
33392         PR target/93300
33393         * config/arm/arm.c (arm_block_arith_comp_libfuncs_for_mode): New.
33394         (arm_init_libfuncs): Add BFmode support to block spurious BF libfuncs.
33395         Use arm_block_arith_comp_libfuncs_for_mode for HFmode.
33397 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
33399         PR target/93594
33400         * config/i386/predicates.md (avx_identity_operand): New predicate.
33401         * config/i386/sse.md (*avx_vec_concat<mode>_1): New
33402         define_insn_and_split.
33404         PR libgomp/93515
33405         * omp-low.c (use_pointer_for_field): For nested constructs, also
33406         look for map clauses on target construct.
33407         (scan_omp_1_stmt) <case GIMPLE_OMP_TARGET>: Bump temporarily
33408         taskreg_nesting_level.
33410         PR libgomp/93515
33411         * gimplify.c (gimplify_scan_omp_clauses) <do_notice>: If adding
33412         shared clause, call omp_notice_variable on outer context if any.
33414 2020-02-05  Jason Merrill  <jason@redhat.com>
33416         PR c++/92003
33417         * symtab.c (symtab_node::nonzero_address): A DECL_COMDAT decl has
33418         non-zero address even if weak and not yet defined.
33420 2020-02-05  Martin Sebor  <msebor@redhat.com>
33422         PR tree-optimization/92765
33423         * gimple-fold.c (get_range_strlen_tree): Handle MEM_REF and PARM_DECL.
33424         * tree-ssa-strlen.c (compute_string_length): Remove.
33425         (determine_min_objsize): Remove.
33426         (get_len_or_size): Add an argument.  Call get_range_strlen_dynamic.
33427         Avoid using type size as the upper bound on string length.
33428         (handle_builtin_string_cmp): Add an argument.  Adjust.
33429         (strlen_check_and_optimize_call): Pass additional argument to
33430         handle_builtin_string_cmp.
33432 2020-02-05  Uroš Bizjak  <ubizjak@gmail.com>
33434         * config/i386/i386.md (*pushdi2_rex64 peephole2): Remove.
33435         (*pushdi2_rex64 peephole2): Unconditionally split after
33436         epilogue_completed.
33437         (*ashl<mode>3_doubleword): Ditto.
33438         (*<shift_insn><mode>3_doubleword): Ditto.
33440 2020-02-05  Michael Meissner  <meissner@linux.ibm.com>
33442         PR target/93568
33443         * config/rs6000/rs6000.c (get_vector_offset): Fix
33445 2020-02-05  Andrew Stubbs  <ams@codesourcery.com>
33447         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Use / not space.
33449 2020-02-05  David Malcolm  <dmalcolm@redhat.com>
33451         * doc/analyzer.texi
33452         (Special Functions for Debugging the Analyzer): Update description
33453         of __analyzer_dump_exploded_nodes.
33455 2020-02-05  Jakub Jelinek  <jakub@redhat.com>
33457         PR target/92190
33458         * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Only
33459         include sets and not clobbers in the vzeroupper pattern.
33460         * config/i386/sse.md (*avx_vzeroupper): Require in insn condition that
33461         the parallel has 17 (64-bit) or 9 (32-bit) elts.
33462         (*avx_vzeroupper_1): New define_insn_and_split.
33464         PR target/92190
33465         * recog.c (pass_split_after_reload::gate): For STACK_REGS targets,
33466         don't run when !optimize.
33467         (pass_split_before_regstack::gate): For STACK_REGS targets, run even
33468         when !optimize.
33470 2020-02-05  Richard Biener  <rguenther@suse.de>
33472         PR middle-end/90648
33473         * genmatch.c (dt_node::gen_kids_1): Emit number of argument
33474         checks before matching calls.
33476 2020-02-05  Jakub Jelinek  <jakub@redhat.com>
33478         * tree-ssa-alias.c (aliasing_matching_component_refs_p): Fix up
33479         function comment typo.
33481         PR middle-end/93555
33482         * omp-simd-clone.c (expand_simd_clones): If simd_clone_mangle or
33483         simd_clone_create failed when i == 0, adjust clone->nargs by
33484         clone->inbranch.
33486 2020-02-05  Martin Liska  <mliska@suse.cz>
33488         PR c++/92717
33489         * doc/invoke.texi: Document that one should
33490         not combine ASLR and -fpch.
33492 2020-02-04  Richard Biener  <rguenther@suse.de>
33494         PR tree-optimization/93538
33495         * match.pd (addr EQ/NE ptr): Amend to handle &ptr->x EQ/NE ptr.
33497 2020-02-04  Richard Biener  <rguenther@suse.de>
33499         PR tree-optimization/91123
33500         * tree-ssa-sccvn.c (vn_walk_cb_data::finish): New method.
33501         (vn_walk_cb_data::last_vuse): New member.
33502         (vn_walk_cb_data::saved_operands): Likewsie.
33503         (vn_walk_cb_data::~vn_walk_cb_data): Release saved_operands.
33504         (vn_walk_cb_data::push_partial_def): Use finish.
33505         (vn_reference_lookup_2): Update last_vuse and use finish if
33506         we've saved operands.
33507         (vn_reference_lookup_3): Use finish and update calls to
33508         push_partial_defs everywhere.  When translating through
33509         memcpy or aggregate copies save off operands and alias-set.
33510         (eliminate_dom_walker::eliminate_stmt): Restore VN_WALKREWRITE
33511         operation for redundant store removal.
33513 2020-02-04  Richard Biener  <rguenther@suse.de>
33515         PR tree-optimization/92819
33516         * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
33517         generating more stmts than before.
33519 2020-02-04  Martin Liska  <mliska@suse.cz>
33521         * config/arm/arm.c (arm_gen_far_branch): Move the function
33522         outside of selftests.
33524 2020-02-03  Michael Meissner  <meissner@linux.ibm.com>
33526         * config/rs6000/rs6000.c (adjust_vec_address_pcrel): New helper
33527         function to adjust PC-relative vector addresses.
33528         (rs6000_adjust_vec_address): Call adjust_vec_address_pcrel to
33529         handle vectors with PC-relative addresses.
33531 2020-02-03  Michael Meissner  <meissner@linux.ibm.com>
33533         * config/rs6000/rs6000.c (reg_to_non_prefixed): Add forward
33534         reference.
33535         (hard_reg_and_mode_to_addr_mask): Delete.
33536         (rs6000_adjust_vec_address): If the original vector address
33537         was REG+REG or REG+OFFSET and the element is not zero, do the add
33538         of the elements in the original address before adding the offset
33539         for the vector element.  Use address_to_insn_form to validate the
33540         address using the register being loaded, rather than guessing
33541         whether the address is a DS-FORM or DQ-FORM address.
33543 2020-02-03  Michael Meissner  <meissner@linux.ibm.com>
33545         * config/rs6000/rs6000.c (get_vector_offset): New helper function
33546         to calculate the offset in memory from the start of a vector of a
33547         particular element.  Add code to keep the element number in
33548         bounds if the element number is variable.
33549         (rs6000_adjust_vec_address): Move calculation of offset of the
33550         vector element to get_vector_offset.
33551         (rs6000_split_vec_extract_var): Do not do the initial AND of
33552         element here, move the code to get_vector_offset.
33554 2020-02-03  Michael Meissner  <meissner@linux.ibm.com>
33556         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add some
33557         gcc_asserts.
33559 2020-02-03  Segher Boessenkool  <segher@kernel.crashing.org>
33561         * config/rs6000/constraints.md: Improve documentation.
33563 2020-02-03  Richard Earnshaw  <rearnsha@arm.com>
33565         PR target/93548
33566         * config/arm/t-arm: ($(srcdir)/config/arm/arm-tune.md)
33567         ($(srcdir)/config/arm/arm-tables.opt): Use move-if-change.
33569 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
33571         * config.gcc: Remove "carrizo" support.
33572         * config/gcn/gcn-opts.h (processor_type): Likewise.
33573         * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Likewise.
33574         * config/gcn/gcn.opt (gpu_type): Likewise.
33575         * config/gcn/t-omp-device: Likewise.
33577 2020-02-03  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
33579         PR target/91816
33580         * config/arm/arm-protos.h: New function arm_gen_far_branch prototype.
33581         * config/arm/arm.c (arm_gen_far_branch): New function
33582         arm_gen_far_branch.
33583         * config/arm/arm.md: Update b<cond> for Thumb2 range checks.
33585 2020-02-03  Julian Brown  <julian@codesourcery.com>
33586             Tobias Burnus  <tobias@codesourcery.com>
33588         * doc/invoke.texi: Update mention of OpenACC version to 2.6.
33590 2020-02-03  Jakub Jelinek  <jakub@redhat.com>
33592         PR target/93533
33593         * config/s390/s390.md (popcounthi2_z196): Fix up expander to emit
33594         valid RTL to sum up the lowest and second lowest bytes of the popcnt
33595         result.
33597 2020-02-02  Vladimir Makarov  <vmakarov@redhat.com>
33599         PR rtl-optimization/91333
33600         * ira-color.c (struct allocno_color_data): Add member
33601         hard_reg_prefs.
33602         (init_allocno_threads): Set the member up.
33603         (bucket_allocno_compare_func): Add compare hard reg
33604         prefs.
33606 2020-01-31  Sandra Loosemore  <sandra@codesourcery.com>
33608         nios2: Support for GOT-relative DW_EH_PE_datarel encoding.
33610         * configure.ac [nios2-*-*]: Check HAVE_AS_NIOS2_GOTOFF_RELOCATION.
33611         * config.in: Regenerated.
33612         * configure: Regenerated.
33613         * config/nios2/nios2.h (ASM_PREFERRED_EH_DATA_FORMAT): Fix handling
33614         for PIC when HAVE_AS_NIOS2_GOTOFF_RELOCATION.
33615         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New.
33617 2020-02-01  Andrew Burgess  <andrew.burgess@embecosm.com>
33619         * configure: Regenerate.
33621 2020-01-31  Vladimir Makarov  <vmakarov@redhat.com>
33623         PR rtl-optimization/91333
33624         * ira-color.c (bucket_allocno_compare_func): Move conflict hard
33625         reg preferences comparison up.
33627 2020-01-31  Richard Sandiford  <richard.sandiford@arm.com>
33629         * config/aarch64/aarch64.h (TARGET_SVE_BF16): New macro.
33630         * config/aarch64/aarch64-sve-builtins-sve2.h (svcvtnt): Move to
33631         aarch64-sve-builtins-base.h.
33632         * config/aarch64/aarch64-sve-builtins-sve2.cc (svcvtnt): Move to
33633         aarch64-sve-builtins-base.cc.
33634         * config/aarch64/aarch64-sve-builtins-base.h (svbfdot, svbfdot_lane)
33635         (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
33636         (svcvtnt): Declare.
33637         * config/aarch64/aarch64-sve-builtins-base.cc (svbfdot, svbfdot_lane)
33638         (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
33639         (svcvtnt): New functions.
33640         * config/aarch64/aarch64-sve-builtins-base.def (svbfdot, svbfdot_lane)
33641         (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
33642         (svcvtnt): New functions.
33643         (svcvt): Add a form that converts f32 to bf16.
33644         * config/aarch64/aarch64-sve-builtins-shapes.h (ternary_bfloat)
33645         (ternary_bfloat_lane, ternary_bfloat_lanex2, ternary_bfloat_opt_n):
33646         Declare.
33647         * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_element_type):
33648         Treat B as bfloat16_t.
33649         (ternary_bfloat_lane_base): New class.
33650         (ternary_bfloat_def): Likewise.
33651         (ternary_bfloat): New shape.
33652         (ternary_bfloat_lane_def): New class.
33653         (ternary_bfloat_lane): New shape.
33654         (ternary_bfloat_lanex2_def): New class.
33655         (ternary_bfloat_lanex2): New shape.
33656         (ternary_bfloat_opt_n_def): New class.
33657         (ternary_bfloat_opt_n): New shape.
33658         * config/aarch64/aarch64-sve-builtins.cc (TYPES_cvt_bfloat): New macro.
33659         * config/aarch64/aarch64-sve.md (@aarch64_sve_<sve_fp_op>vnx4sf)
33660         (@aarch64_sve_<sve_fp_op>_lanevnx4sf): New patterns.
33661         (@aarch64_sve_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>)
33662         (@cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
33663         (*cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
33664         (@aarch64_sve_cvtnt<VNx8BF_ONLY:mode>): Likewise.
33665         * config/aarch64/aarch64-sve2.md (@aarch64_sve2_cvtnt<mode>): Key
33666         the pattern off the narrow mode instead of the wider one.
33667         * config/aarch64/iterators.md (VNx8BF_ONLY): New mode iterator.
33668         (UNSPEC_BFMLALB, UNSPEC_BFMLALT, UNSPEC_BFMMLA): New unspecs.
33669         (sve_fp_op): Handle them.
33670         (SVE_BFLOAT_TERNARY_LONG): New int itertor.
33671         (SVE_BFLOAT_TERNARY_LONG_LANE): Likewise.
33673 2020-01-31  Richard Sandiford  <richard.sandiford@arm.com>
33675         * config/aarch64/arm_sve.h: Include arm_bf16.h.
33676         * config/aarch64/aarch64-modes.def (BF): Move definition before
33677         VECTOR_MODES.  Remove separate VECTOR_MODES for V4BF and V8BF.
33678         (SVE_MODES): Handle BF modes.
33679         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle
33680         BF modes.
33681         (aarch64_full_sve_mode): Likewise.
33682         * config/aarch64/iterators.md (SVE_STRUCT): Add VNx16BF, VNx24BF
33683         and VNx32BF.
33684         (SVE_FULL, SVE_FULL_HSD, SVE_ALL): Add VNx8BF.
33685         (Vetype, Vesize, Vctype, VEL, Vel, VEL_INT, V128, v128, vwcore)
33686         (V_INT_EQUIV, v_int_equiv, V_FP_EQUIV, v_fp_equiv, vector_count)
33687         (insn_length, VSINGLE, vsingle, VPRED, vpred, VDOUBLE): Handle the
33688         new SVE BF modes.
33689         * config/aarch64/aarch64-sve-builtins.h (TYPE_bfloat): New
33690         type_class_index.
33691         * config/aarch64/aarch64-sve-builtins.cc (TYPES_all_arith): New macro.
33692         (TYPES_all_data): Add bf16.
33693         (TYPES_reinterpret1, TYPES_reinterpret): Likewise.
33694         (register_tuple_type): Increase buffer size.
33695         * config/aarch64/aarch64-sve-builtins.def (svbfloat16_t): New type.
33696         (bf16): New type suffix.
33697         * config/aarch64/aarch64-sve-builtins-base.def (svabd, svadd, svaddv)
33698         (svcmpeq, svcmpge, svcmpgt, svcmple, svcmplt, svcmpne, svmad, svmax)
33699         (svmaxv, svmin, svminv, svmla, svmls, svmsb, svmul, svsub, svsubr):
33700         Change type from all_data to all_arith.
33701         * config/aarch64/aarch64-sve-builtins-sve2.def (svaddp, svmaxp)
33702         (svminp): Likewise.
33704 2020-01-31  Dennis Zhang  <dennis.zhang@arm.com>
33705             Matthew Malcomson  <matthew.malcomson@arm.com>
33706             Richard Sandiford  <richard.sandiford@arm.com>
33708         * doc/invoke.texi (f32mm): Document new AArch64 -march= extension.
33709         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
33710         __ARM_FEATURE_SVE_MATMUL_INT8, __ARM_FEATURE_SVE_MATMUL_FP32 and
33711         __ARM_FEATURE_SVE_MATMUL_FP64 as appropriate.  Don't define
33712         __ARM_FEATURE_MATMUL_FP64.
33713         * config/aarch64/aarch64-option-extensions.def (fp, simd, fp16)
33714         (sve): Add AARCH64_FL_F32MM to the list of extensions that should
33715         be disabled at the same time.
33716         (f32mm): New extension.
33717         * config/aarch64/aarch64.h (AARCH64_FL_F32MM): New macro.
33718         (AARCH64_FL_F64MM): Bump to the next bit up.
33719         (AARCH64_ISA_F32MM, TARGET_SVE_I8MM, TARGET_F32MM, TARGET_SVE_F32MM)
33720         (TARGET_SVE_F64MM): New macros.
33721         * config/aarch64/iterators.md (SVE_MATMULF): New mode iterator.
33722         (UNSPEC_FMMLA, UNSPEC_SMATMUL, UNSPEC_UMATMUL, UNSPEC_USMATMUL)
33723         (UNSPEC_TRN1Q, UNSPEC_TRN2Q, UNSPEC_UZP1Q, UNSPEC_UZP2Q, UNSPEC_ZIP1Q)
33724         (UNSPEC_ZIP2Q): New unspeccs.
33725         (DOTPROD_US_ONLY, PERMUTEQ, MATMUL, FMMLA): New int iterators.
33726         (optab, sur, perm_insn): Handle the new unspecs.
33727         (sve_fp_op): Handle UNSPEC_FMMLA.  Resort.
33728         * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use
33729         TARGET_SVE_F64MM instead of separate tests.
33730         (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod<vsi2qi>): New pattern.
33731         (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod_lane<vsi2qi>): Likewise.
33732         (@aarch64_sve_add_<MATMUL:optab><vsi2qi>): Likewise.
33733         (@aarch64_sve_<FMMLA:sve_fp_op><mode>): Likewise.
33734         (@aarch64_sve_<PERMUTEQ:optab><mode>): Likewise.
33735         * config/aarch64/aarch64-sve-builtins.cc (TYPES_s_float): New macro.
33736         (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): Use it.
33737         (TYPES_s_signed): New macro.
33738         (TYPES_s_integer): Use it.
33739         (TYPES_d_float): New macro.
33740         (TYPES_d_data): Use it.
33741         * config/aarch64/aarch64-sve-builtins-shapes.h (mmla): Declare.
33742         (ternary_intq_uintq_lane, ternary_intq_uintq_opt_n, ternary_uintq_intq)
33743         (ternary_uintq_intq_lane, ternary_uintq_intq_opt_n): Likewise.
33744         * config/aarch64/aarch64-sve-builtins-shapes.cc (mmla_def): New class.
33745         (svmmla): New shape.
33746         (ternary_resize2_opt_n_base): Add TYPE_CLASS2 and TYPE_CLASS3
33747         template parameters.
33748         (ternary_resize2_lane_base): Likewise.
33749         (ternary_resize2_base): New class.
33750         (ternary_qq_lane_base): Likewise.
33751         (ternary_intq_uintq_lane_def): Likewise.
33752         (ternary_intq_uintq_lane): New shape.
33753         (ternary_intq_uintq_opt_n_def): New class
33754         (ternary_intq_uintq_opt_n): New shape.
33755         (ternary_qq_lane_def): Inherit from ternary_qq_lane_base.
33756         (ternary_uintq_intq_def): New class.
33757         (ternary_uintq_intq): New shape.
33758         (ternary_uintq_intq_lane_def): New class.
33759         (ternary_uintq_intq_lane): New shape.
33760         (ternary_uintq_intq_opt_n_def): New class.
33761         (ternary_uintq_intq_opt_n): New shape.
33762         * config/aarch64/aarch64-sve-builtins-base.h (svmmla, svsudot)
33763         (svsudot_lane, svtrn1q, svtrn2q, svusdot, svusdot_lane, svusmmla)
33764         (svuzp1q, svuzp2q, svzip1q, svzip2q): Declare.
33765         * config/aarch64/aarch64-sve-builtins-base.cc (svdot_lane_impl):
33766         Generalize to...
33767         (svdotprod_lane_impl): ...this new class.
33768         (svmmla_impl, svusdot_impl): New classes.
33769         (svdot_lane): Update to use svdotprod_lane_impl.
33770         (svmmla, svsudot, svsudot_lane, svtrn1q, svtrn2q, svusdot)
33771         (svusdot_lane, svusmmla, svuzp1q, svuzp2q, svzip1q, svzip2q): New
33772         functions.
33773         * config/aarch64/aarch64-sve-builtins-base.def (svmmla): New base
33774         function, with no types defined.
33775         (svmmla, svusmmla, svsudot, svsudot_lane, svusdot, svusdot_lane): New
33776         AARCH64_FL_I8MM functions.
33777         (svmmla): New AARCH64_FL_F32MM function.
33778         (svld1ro): Depend only on AARCH64_FL_F64MM, not on AARCH64_FL_V8_6.
33779         (svmmla, svtrn1q, svtrn2q, svuz1q, svuz2q, svzip1q, svzip2q): New
33780         AARCH64_FL_F64MM function.
33781         (REQUIRED_EXTENSIONS):
33783 2020-01-31  Andrew Stubbs  <ams@codesourcery.com>
33785         * config/gcn/gcn-valu.md (addv64di3_exec): Allow one '0' in each
33786         alternative only.
33788 2020-01-31  Uroš Bizjak  <ubizjak@gmail.com>
33790         * config/i386/i386.md (*movoi_internal_avx): Do not check for
33791         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.  Remove MODE_V8SF handling.
33792         (*movti_internal): Do not check for
33793         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
33794         (*movtf_internal): Move check for TARGET_SSE2 and size optimization
33795         just after check for TARGET_AVX.
33796         (*movdf_internal): Ditto.
33797         * config/i386/mmx.md (*mov<mode>_internal): Do not check for
33798         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
33799         * config/i386/sse.md (mov<mode>_internal): Only check
33800         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL with V2DFmode.  Move check
33801         for TARGET_SSE2 and size optimization just after check for TARGET_AVX.
33802         (<sse>_andnot<mode>3<mask_name>): Move check for
33803         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL after check for TARGET_AVX.
33804         (<code><mode>3<mask_name>): Ditto.
33805         (*andnot<mode>3): Ditto.
33806         (*andnottf3): Ditto.
33807         (*<code><mode>3): Ditto.
33808         (*<code>tf3): Ditto.
33809         (*andnot<VI:mode>3): Remove
33810         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling.
33811         (<mask_codefor><code><VI48_AVX_AVX512F:mode>3<mask_name>): Ditto.
33812         (*<code><VI12_AVX_AVX512F:mode>3): Ditto.
33813         (sse4_1_blendv<ssemodesuffix>): Ditto.
33814         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL):
33815         Explain that tune applies to 128bit instructions only.
33817 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
33819         * config/gcn/mkoffload.c (process_asm): Add sgpr_count and vgpr_count
33820         to definition of hsa_kernel_description.  Parse assembly to find SGPR
33821         and VGPR count of kernel and store in hsa_kernel_description.
33823 2020-01-31  Tamar Christina  <tamar.christina@arm.com>
33825         PR rtl-optimization/91838
33826         * simplify-rtx.c (simplify_binary_operation_1): Update LSHIFTRT case
33827         to truncate if allowed or reject combination.
33829 2020-01-31  Andrew Stubbs  <ams@codesourcery.com>
33831         * tree-ssa-loop-ivopts.c (get_iv): Use sizetype for zero-step.
33832         (find_inv_vars_cb): Likewise.
33834 2020-01-31  David Malcolm  <dmalcolm@redhat.com>
33836         * calls.c (special_function_p): Split out the check for DECL_NAME
33837         being non-NULL and fndecl being extern at file scope into a
33838         new maybe_special_function_p and call it.  Drop check for fndecl
33839         being non-NULL that was after a usage of DECL_NAME (fndecl).
33840         * tree.h (maybe_special_function_p): New inline function.
33842 2020-01-30  Andrew Stubbs  <ams@codesourcery.com>
33844         * config/gcn/gcn-valu.md (gather<mode>_exec): Move contents ...
33845         (mask_gather_load<mode>): ... here, and zero-initialize the
33846         destination.
33847         (maskload<mode>di): Zero-initialize the destination.
33848         * config/gcn/gcn.c:
33850 2020-01-30  David Malcolm  <dmalcolm@redhat.com>
33852         PR analyzer/93356
33853         * doc/analyzer.texi (Limitations): Note that constraints on
33854         floating-point values are currently ignored.
33856 2020-01-30  Jakub Jelinek  <jakub@redhat.com>
33858         PR lto/93384
33859         * symtab.c (symtab_node::noninterposable_alias): If localalias
33860         already exists, but is not usable, append numbers after it until
33861         a unique name is found.  Formatting fix.
33863         PR middle-end/93505
33864         * combine.c (simplify_comparison) <case ROTATE>: Punt on out of range
33865         rotate counts.
33867 2020-01-30  Andrew Stubbs  <ams@codesourcery.com>
33869         * config/gcn/gcn.c (print_operand): Handle LTGT.
33870         * config/gcn/predicates.md (gcn_fp_compare_operator): Allow ltgt.
33872 2020-01-30  Richard Biener  <rguenther@suse.de>
33874         * tree-pretty-print.c (dump_generic_node): Wrap VECTOR_CST
33875         and CONSTRUCTOR in _Literal (type) with TDF_GIMPLE.
33877 2020-01-30  John David Anglin  <danglin@gcc.gnu.org>
33879         * config/pa/pa.c (pa_elf_select_rtx_section): Place function pointers
33880         without a DECL in .data.rel.ro.local.
33882 2020-01-30  Jakub Jelinek  <jakub@redhat.com>
33884         PR target/93494
33885         * config/arm/arm.md (uaddvdi4): Actually emit what gen_uaddvsi4
33886         returned.
33888         PR target/91824
33889         * config/i386/sse.md
33890         (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext): Renamed to ...
33891         (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext): ... this.  Use
33892         any_extend code iterator instead of always zero_extend.
33893         (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_lt): Renamed to ...
33894         (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_lt): ... this.
33895         Use any_extend code iterator instead of always zero_extend.
33896         (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_shift): Renamed to ...
33897         (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_shift): ... this.
33898         Use any_extend code iterator instead of always zero_extend.
33899         (*sse2_pmovmskb_ext): New define_insn.
33900         (*sse2_pmovmskb_ext_lt): New define_insn_and_split.
33902         PR target/91824
33903         * config/i386/i386.md (*popcountsi2_zext): New define_insn_and_split.
33904         (*popcountsi2_zext_falsedep): New define_insn.
33906 2020-01-30  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
33908         * config.in: Regenerated.
33909         * configure: Regenerated.
33911 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
33913         PR bootstrap/93409
33914         * config/gcn/gcn-hsa.h (ASM_SPEC): Add -mattr=-code-object-v3 as
33915         LLVM's assembler changed the default in version 9.
33917 2020-01-24  Jeff Law  <law@redhat.com>
33919         PR tree-optimization/89689
33920         * builtins.def (BUILT_IN_OBJECT_SIZE): Make it const rather than pure.
33922 2020-01-29  Richard Sandiford  <richard.sandiford@arm.com>
33924         Revert:
33926         2020-01-28  Richard Sandiford  <richard.sandiford@arm.com>
33928         PR rtl-optimization/87763
33929         * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
33930         simplification to handle subregs as well as bare regs.
33931         * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
33933 2020-01-29  Joel Hutton  <Joel.Hutton@arm.com>
33935         PR target/93221
33936         * ira.c (ira): Revert use of simplified LRA algorithm.
33938 2020-01-29  Martin Jambor  <mjambor@suse.cz>
33940         PR tree-optimization/92706
33941         * tree-sra.c (struct access): Fields first_link, last_link,
33942         next_queued and grp_queued renamed to first_rhs_link, last_rhs_link,
33943         next_rhs_queued and grp_rhs_queued respectively, new fields
33944         first_lhs_link, last_lhs_link, next_lhs_queued and grp_lhs_queued.
33945         (struct assign_link): Field next renamed to next_rhs, new field
33946         next_lhs.  Updated comment.
33947         (work_queue_head): Renamed to rhs_work_queue_head.
33948         (lhs_work_queue_head): New variable.
33949         (add_link_to_lhs): New function.
33950         (relink_to_new_repr): Also relink LHS lists.
33951         (add_access_to_work_queue): Renamed to add_access_to_rhs_work_queue.
33952         (add_access_to_lhs_work_queue): New function.
33953         (pop_access_from_work_queue): Renamed to
33954         pop_access_from_rhs_work_queue.
33955         (pop_access_from_lhs_work_queue): New function.
33956         (build_accesses_from_assign): Also add links to LHS lists and to LHS
33957         work_queue.
33958         (child_would_conflict_in_lacc): Renamed to
33959         child_would_conflict_in_acc.  Adjusted parameter names.
33960         (create_artificial_child_access): New parameter set_grp_read, use it.
33961         (subtree_mark_written_and_enqueue): Renamed to
33962         subtree_mark_written_and_rhs_enqueue.
33963         (propagate_subaccesses_across_link): Renamed to
33964         propagate_subaccesses_from_rhs.
33965         (propagate_subaccesses_from_lhs): New function.
33966         (propagate_all_subaccesses): Also propagate subaccesses from LHSs to
33967         RHSs.
33969 2020-01-29  Martin Jambor  <mjambor@suse.cz>
33971         PR tree-optimization/92706
33972         * tree-sra.c (struct access): Adjust comment of
33973         grp_total_scalarization.
33974         (find_access_in_subtree): Look for single children spanning an entire
33975         access.
33976         (scalarizable_type_p): Allow register accesses, adjust callers.
33977         (completely_scalarize): Remove function.
33978         (scalarize_elem): Likewise.
33979         (create_total_scalarization_access): Likewise.
33980         (sort_and_splice_var_accesses): Do not track total scalarization
33981         flags.
33982         (analyze_access_subtree): New parameter totally, adjust to new meaning
33983         of grp_total_scalarization.
33984         (analyze_access_trees): Pass new parameter to analyze_access_subtree.
33985         (can_totally_scalarize_forest_p): New function.
33986         (create_total_scalarization_access): Likewise.
33987         (create_total_access_and_reshape): Likewise.
33988         (total_should_skip_creating_access): Likewise.
33989         (totally_scalarize_subtree): Likewise.
33990         (analyze_all_variable_accesses): Perform total scalarization after
33991         subaccess propagation using the new functions above.
33992         (initialize_constant_pool_replacements): Output initializers by
33993         traversing the access tree.
33995 2020-01-29  Martin Jambor  <mjambor@suse.cz>
33997         * tree-sra.c (verify_sra_access_forest): New function.
33998         (verify_all_sra_access_forests): Likewise.
33999         (create_artificial_child_access): Set parent.
34000         (analyze_all_variable_accesses): Call the verifier.
34002 2020-01-28  Jan Hubicka  <hubicka@ucw.cz>
34004         * cgraph.c (cgraph_edge::resolve_speculation): Only lookup direct edge
34005         if called on indirect edge.
34006         (cgraph_edge::redirect_call_stmt_to_callee): Lookup indirect edge of
34007         speculative call if needed.
34009 2020-01-29  Richard Biener  <rguenther@suse.de>
34011         PR tree-optimization/93428
34012         * tree-vect-slp.c (vect_build_slp_tree_2): Compute the load
34013         permutation when the load node is created.
34014         (vect_analyze_slp_instance): Re-use it here.
34016 2020-01-28  Jan Hubicka  <hubicka@ucw.cz>
34018         * ipa-prop.c (update_indirect_edges_after_inlining): Fix warning.
34020 2020-01-28  Vladimir Makarov  <vmakarov@redhat.com>
34022         PR rtl-optimization/93272
34023         * ira-lives.c (process_out_of_region_eh_regs): New function.
34024         (process_bb_node_lives): Call it.
34026 2020-01-28  Jan Hubicka  <hubicka@ucw.cz>
34028         * coverage.c (read_counts_file): Make error message lowercase.
34030 2020-01-28  Jan Hubicka  <hubicka@ucw.cz>
34032         * profile-count.c (profile_quality_display_names): Fix ordering.
34034 2020-01-28  Jan Hubicka  <hubicka@ucw.cz>
34036         PR lto/93318    
34037         * cgraph.c (cgraph_add_edge_to_call_site_hash): Update call site
34038         hash only when edge is first within the sequence.
34039         (cgraph_edge::set_call_stmt): Update handling of speculative calls.
34040         (symbol_table::create_edge): Do not set target_prob.
34041         (cgraph_edge::remove_caller): Watch for speculative calls when updating
34042         the call site hash.
34043         (cgraph_edge::make_speculative): Drop target_prob parameter.
34044         (cgraph_edge::speculative_call_info): Remove.
34045         (cgraph_edge::first_speculative_call_target): New member function.
34046         (update_call_stmt_hash_for_removing_direct_edge): New function.
34047         (cgraph_edge::resolve_speculation): Rewrite to new API.
34048         (cgraph_edge::speculative_call_for_target): New member function.
34049         (cgraph_edge::make_direct): Rewrite to new API; fix handling of
34050         multiple speculation targets.
34051         (cgraph_edge::redirect_call_stmt_to_callee): Likewise; fix updating
34052         of profile.
34053         (verify_speculative_call): Verify that targets form an interval.
34054         * cgraph.h (cgraph_edge::speculative_call_info): Remove.
34055         (cgraph_edge::first_speculative_call_target): New member function.
34056         (cgraph_edge::next_speculative_call_target): New member function.
34057         (cgraph_edge::speculative_call_target_ref): New member function.
34058         (cgraph_edge;:speculative_call_indirect_edge): New member funtion.
34059         (cgraph_edge): Remove target_prob.
34060         * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
34061         Fix handling of speculative calls.
34062         * ipa-devirt.c (ipa_devirt): Fix handling of speculative cals.
34063         * ipa-fnsummary.c (analyze_function_body): Likewise.
34064         * ipa-inline.c (speculation_useful_p): Use new speculative call API.
34065         * ipa-profile.c (dump_histogram): Fix formating.
34066         (ipa_profile_generate_summary): Watch for overflows.
34067         (ipa_profile): Do not require probablity to be 1/2; update to new API.
34068         * ipa-prop.c (ipa_make_edge_direct_to_target): Update to new API.
34069         (update_indirect_edges_after_inlining): Update to new API.
34070         * ipa-utils.c (ipa_merge_profiles): Rewrite merging of speculative call
34071         profiles.
34072         * profile-count.h: (profile_probability::adjusted): New.
34073         * tree-inline.c (copy_bb): Update to new speculative call API; fix
34074         updating of profile.
34075         * value-prof.c (gimple_ic_transform): Rename to ...
34076         (dump_ic_profile): ... this one; update dumping.
34077         (stream_in_histogram_value): Fix formating.
34078         (gimple_value_profile_transformations): Update.
34080 2020-01-28  H.J. Lu  <hongjiu.lu@intel.com>
34082         PR target/91461
34083         * config/i386/i386.md (*movoi_internal_avx): Remove
34084         TARGET_SSE_TYPELESS_STORES check.
34085         (*movti_internal): Prefer TARGET_AVX over
34086         TARGET_SSE_TYPELESS_STORES.
34087         (*movtf_internal): Likewise.
34088         * config/i386/sse.md (mov<mode>_internal): Prefer TARGET_AVX over
34089         TARGET_SSE_TYPELESS_STORES.  Remove "<MODE_SIZE> == 16" check
34090         from TARGET_SSE_TYPELESS_STORES.
34092 2020-01-28  David Malcolm  <dmalcolm@redhat.com>
34094         * diagnostic-core.h (warning_at): Rename overload to...
34095         (warning_meta): ...this.
34096         (emit_diagnostic_valist): Delete decl of overload taking
34097         diagnostic_metadata.
34098         * diagnostic.c (emit_diagnostic_valist): Likewise for defn.
34099         (warning_at): Rename overload taking diagnostic_metadata to...
34100         (warning_meta): ...this.
34102 2020-01-28  Richard Biener  <rguenther@suse.de>
34104         PR tree-optimization/93439
34105         * tree-parloops.c (create_loop_fn): Move clique bookkeeping...
34106         * tree-cfg.c (move_sese_region_to_fn): ... here.
34107         (verify_types_in_gimple_reference): Verify used cliques are
34108         tracked.
34110 2020-01-28  H.J. Lu  <hongjiu.lu@intel.com>
34112         PR target/91399
34113         * config/i386/i386-options.c (set_ix86_tune_features): Add an
34114         argument of a pointer to struct gcc_options and pass it to
34115         parse_mtune_ctrl_str.
34116         (ix86_function_specific_restore): Pass opts to
34117         set_ix86_tune_features.
34118         (ix86_option_override_internal): Likewise.
34119         (parse_mtune_ctrl_str): Add an argument of a pointer to struct
34120         gcc_options and use it for x_ix86_tune_ctrl_string.
34122 2020-01-28  Richard Sandiford  <richard.sandiford@arm.com>
34124         PR rtl-optimization/87763
34125         * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
34126         simplification to handle subregs as well as bare regs.
34127         * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
34129 2020-01-28  Richard Sandiford  <richard.sandiford@arm.com>
34131         * tree-vect-loop.c (vectorizable_reduction): Fail gracefully
34132         for reduction chains that (now) include a call.
34134 2020-01-28  Richard Sandiford  <richard.sandiford@arm.com>
34136         PR tree-optimization/92822
34137         * tree-ssa-forwprop.c (simplify_vector_constructor): When filling
34138         out the don't-care elements of a vector whose significant elements
34139         are duplicates, make the don't-care elements duplicates too.
34141 2020-01-28  Richard Sandiford  <richard.sandiford@arm.com>
34143         PR tree-optimization/93434
34144         * tree-predcom.c (split_data_refs_to_components): Record which
34145         components have had aliasing loads removed.  Prevent store-store
34146         commoning for all such components.
34148 2020-01-28  Jakub Jelinek  <jakub@redhat.com>
34150         PR target/93418
34151         * config/i386/i386.c (ix86_fold_builtin) <do_shift>: If mask is not
34152         -1 or is_vshift is true, use new_vector with number of elts npatterns
34153         rather than new_unary_operation.
34155         PR tree-optimization/93454
34156         * gimple-fold.c (fold_array_ctor_reference): Perform
34157         elt_size.to_uhwi () just once, instead of calling it in every
34158         iteration.  Punt if that value is above size of the temporary
34159         buffer.  Decrease third native_encode_expr argument when
34160         bufoff + elt_sz is above size of buf.
34162 2020-01-27  Joseph Myers  <joseph@codesourcery.com>
34164         * config/mips/mips.c (mips_declare_object_name)
34165         [USE_GNU_UNIQUE_OBJECT]: Support use of gnu_unique_object.
34167 2020-01-27  Martin Liska  <mliska@suse.cz>
34169         PR gcov-profile/93403
34170         * tree-profile.c (gimple_init_gcov_profiler): Generate
34171         both __gcov_indirect_call_profiler_v4 and
34172         __gcov_indirect_call_profiler_v4_atomic.
34174 2020-01-27  Richard Sandiford  <richard.sandiford@arm.com>
34176         PR target/92822
34177         * config/aarch64/aarch64-simd.md (aarch64_get_half<mode>): New
34178         expander.
34179         (@aarch64_split_simd_mov<mode>): Use it.
34180         (aarch64_simd_mov_from_<mode>low): Add a GPR alternative.
34181         Leave the vec_extract patterns to handle 2-element vectors.
34182         (aarch64_simd_mov_from_<mode>high): Likewise.
34183         (vec_extract<VQMOV_NO2E:mode><Vhalf>): New expander.
34184         (vec_extractv2dfv1df): Likewise.
34186 2020-01-27  Richard Sandiford  <richard.sandiford@arm.com>
34188         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Match
34189         jump conditions for *compare_condjump<GPI:mode>.
34191 2020-01-27  David Malcolm  <dmalcolm@redhat.com>
34193         PR analyzer/93276
34194         * digraph.cc (test_edge::test_edge): Specify template for base
34195         class initializer.
34197 2020-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
34199         * config/arc/arc.c (arc_rtx_costs): Update mul64 cost.
34201 2020-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
34203         * config/arc/arc-protos.h (gen_mlo): Remove.
34204         (gen_mhi): Likewise.
34205         * config/arc/arc.c (AUX_MULHI): Define.
34206         (arc_must_save_reister): Special handling for r58/59.
34207         (arc_compute_frame_size): Consider mlo/mhi registers.
34208         (arc_save_callee_saves): Emit fp/sp move only when emit_move
34209         paramter is true.
34210         (arc_conditional_register_usage): Remove TARGET_BIG_ENDIAN from
34211         mlo/mhi name selection.
34212         (arc_restore_callee_saves): Don't early restore blink when ISR.
34213         (arc_expand_prologue): Add mlo/mhi saving.
34214         (arc_expand_epilogue): Add mlo/mhi restoring.
34215         (gen_mlo): Remove.
34216         (gen_mhi): Remove.
34217         * config/arc/arc.h (DBX_REGISTER_NUMBER): Correct register
34218         numbering when MUL64 option is used.
34219         (DWARF2_FRAME_REG_OUT): Define.
34220         * config/arc/arc.md (arc600_stall): New pattern.
34221         (VUNSPEC_ARC_ARC600_STALL): Define.
34222         (mulsi64): Use correct mlo/mhi registers.
34223         (mulsi_600): Clean it up.
34224         * config/arc/predicates.md (mlo_operand): Remove any dependency on
34225         TARGET_BIG_ENDIAN.
34226         (mhi_operand): Likewise.
34228 2020-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
34229             Petro Karashchenko  <petro.karashchenko@ring.com>
34231         * config/arc/arc.c (arc_is_uncached_mem_p): Check struct
34232         attributes if needed.
34233         (prepare_move_operands): Generate special unspec instruction for
34234         direct access.
34235         (arc_isuncached_mem_p): Propagate uncached attribute to each
34236         structure member.
34237         * config/arc/arc.md (VUNSPEC_ARC_LDDI): Define.
34238         (VUNSPEC_ARC_STDI): Likewise.
34239         (ALLI): New mode iterator.
34240         (mALLI): New mode attribute.
34241         (lddi): New instruction pattern.
34242         (stdi): Likewise.
34243         (stdidi_split): Split instruction for architectures which are not
34244         supporting ll64 option.
34245         (lddidi_split): Likewise.
34247 2020-01-27  Richard Sandiford  <richard.sandiford@arm.com>
34249         PR rtl-optimization/92989
34250         * lra-lives.c (process_bb_lives): Update the live-in set before
34251         processing additional clobbers.
34253 2020-01-27  Richard Sandiford  <richard.sandiford@arm.com>
34255         PR rtl-optimization/93170
34256         * cselib.c (cselib_invalidate_regno_val): New function, split out
34257         from...
34258         (cselib_invalidate_regno): ...here.
34259         (cselib_invalidated_by_call_p): New function.
34260         (cselib_process_insn): Iterate over all the hard-register entries in
34261         REG_VALUES and invalidate any that cross call-clobbered registers.
34263 2020-01-27  Richard Sandiford  <richard.sandiford@arm.com>
34265         * dojump.c (split_comparison): Use HONOR_NANS rather than
34266         HONOR_SNANS when splitting LTGT.
34268 2020-01-27  Martin Liska  <mliska@suse.cz>
34270         PR driver/91220
34271         * opts.c (print_filtered_help): Exclude language-specific
34272         options from --help=common unless enabled in all FEs.
34274 2020-01-27  Martin Liska  <mliska@suse.cz>
34276         * opts.c (print_help): Exclude params from
34277         all except --help=param.
34279 2020-01-27  Martin Liska  <mliska@suse.cz>
34281         PR target/93274
34282         * config/i386/i386-features.c (make_resolver_func):
34283         Align the code with ppc64 target implementation.
34284         Do not generate a unique name for resolver function.
34286 2020-01-27  Richard Biener  <rguenther@suse.de>
34288         PR tree-optimization/93397
34289         * tree-vect-slp.c (vect_analyze_slp_instance): Delay
34290         converted reduction chain SLP graph adjustment.
34292 2020-01-26  Marek Polacek  <polacek@redhat.com>
34294         PR sanitizer/93436
34295         * sanopt.c (sanitize_rewrite_addressable_params): Avoid crash on
34296         null DECL_NAME.
34298 2020-01-26  Jason Merrill  <jason@redhat.com>
34300         PR c++/92601
34301         * tree.c (verify_type_variant): Only verify TYPE_NEEDS_CONSTRUCTING
34302         of complete types.
34304 2020-01-26  Darius Galis  <darius.galis@cyberthorstudios.com>
34306         * config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint
34307         (rx_setmem): Likewise.
34309 2020-01-26  Jakub Jelinek  <jakub@redhat.com>
34311         PR target/93412
34312         * config/i386/i386.md (*addv<dwi>4_doubleword, *subv<dwi>4_doubleword):
34313         Use nonimmediate_operand instead of x86_64_hilo_general_operand and
34314         drop <di> from constraint of last operand.
34316         PR target/93430
34317         * config/i386/sse.md (*avx_vperm_broadcast_<mode>): Disallow for
34318         TARGET_AVX2 and V4DFmode not in the split condition, but in the
34319         pattern condition, though allow { 0, 0, 0, 0 } broadcast always.
34321 2020-01-25  Feng Xue  <fxue@os.amperecomputing.com>
34323         PR ipa/93166
34324         * ipa-cp.c (get_info_about_necessary_edges): Remove value
34325         check assertion.
34327 2020-01-24  Jeff Law  <law@redhat.com>
34329         PR tree-optimization/92788
34330         * tree-ssa-threadedge.c (thread_across_edge): Check EDGE_COMPLEX
34331         not EDGE_ABNORMAL.
34333 2020-01-24  Jakub Jelinek  <jakub@redhat.com>
34335         PR target/93395
34336         * config/i386/sse.md (*avx_vperm_broadcast_v4sf,
34337         *avx_vperm_broadcast_<mode>,
34338         <sse2_avx_avx512f>_vpermil<mode><mask_name>,
34339         *<sse2_avx_avx512f>_vpermilp<mode><mask_name>):
34340         Move before avx2_perm<mode>/avx512f_perm<mode>.
34342         PR target/93376
34343         * simplify-rtx.c (simplify_const_unary_operation,
34344         simplify_const_binary_operation): Punt for mode precision above
34345         MAX_BITSIZE_MODE_ANY_INT.
34347 2020-01-24  Andrew Pinski  <apinski@marvell.com>
34349         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Change
34350         alu.shift_reg to 0.
34352 2020-01-24  Jeff Law  <law@redhat.com>
34354         PR target/13721
34355         * config/h8300/h8300.c (h8300_print_operand): Only call byte_reg
34356         for REGs.  Call output_operand_lossage to get more reasonable
34357         diagnostics.
34359 2020-01-24  Andrew Stubbs  <ams@codesourcery.com>
34361         * config/gcn/gcn-valu.md (vec_cmp<mode>di): Use
34362         gcn_fp_compare_operator.
34363         (vec_cmpu<mode>di): Use gcn_compare_operator.
34364         (vec_cmp<u>v64qidi): Use gcn_compare_operator.
34365         (vec_cmp<mode>di_exec): Use gcn_fp_compare_operator.
34366         (vec_cmpu<mode>di_exec): Use gcn_compare_operator.
34367         (vec_cmp<u>v64qidi_exec): Use gcn_compare_operator.
34368         (vec_cmp<mode>di_dup): Use gcn_fp_compare_operator.
34369         (vec_cmp<mode>di_dup_exec): Use gcn_fp_compare_operator.
34370         (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): Use
34371         gcn_fp_compare_operator.
34372         (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): Use
34373         gcn_fp_compare_operator.
34374         (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): Use
34375         gcn_fp_compare_operator.
34376         (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): Use
34377         gcn_fp_compare_operator.
34379 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
34381         * doc/install.texi (Cross-Compiler-Specific Options): Document
34382         `--with-toolexeclibdir' option.
34384 2020-01-24  Hans-Peter Nilsson  <hp@axis.com>
34386         * target.def (flags_regnum): Also mention effect on delay slot filling.
34387         * doc/tm.texi: Regenerate.
34389 2020-01-23  Jeff Law  <law@redhat.com>
34391         PR translation/90162
34392         * config/h8300/h8300.c (h8300_option_override): Fix diagnostic text.
34394 2020-01-23  Mikael Tillenius  <mti-1@tillenius.com>
34396         PR target/92269
34397         * config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of
34398         profiling label
34400 2020-01-23  Jakub Jelinek  <jakub@redhat.com>
34402         PR rtl-optimization/93402
34403         * postreload.c (reload_combine_recognize_pattern): Don't try to adjust
34404         USE insns.
34406 2020-01-23  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
34408         * config.in: Regenerated.
34409         * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to 1
34410         for TARGET_LIBC_GNUSTACK.
34411         * configure: Regenerated.
34412         * configure.ac: Define TARGET_LIBC_GNUSTACK if glibc version is
34413         found to be 2.31 or greater.
34415 2020-01-23  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
34417         * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to
34418         TARGET_SOFT_FLOAT.
34419         * config/mips/mips.c (TARGET_ASM_FILE_END): Define to ...
34420         (mips_asm_file_end): New function. Delegate to
34421         file_end_indicate_exec_stack if NEED_INDICATE_EXEC_STACK is true.
34422         * config/mips/mips.h (NEED_INDICATE_EXEC_STACK): Define to 0.
34424 2020-01-23  Jakub Jelinek  <jakub@redhat.com>
34426         PR target/93376
34427         * config/i386/i386-modes.def (POImode): New mode.
34428         (MAX_BITSIZE_MODE_ANY_INT): Change from 128 to 160.
34429         * config/i386/i386.md (DPWI): New mode attribute.
34430         (addv<mode>4, subv<mode>4): Use <DPWI> instead of <DWI>.
34431         (QWI): Rename to...
34432         (QPWI): ... this.  Use POI instead of OI for TImode.
34433         (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1,
34434         *subv<dwi>4_doubleword, *subv<dwi>4_doubleword_1): Use <QPWI>
34435         instead of <QWI>.
34437 2020-01-23  Richard Sandiford  <richard.sandiford@arm.com>
34439         PR target/93341
34440         * config/aarch64/aarch64.md (UNSPEC_SPECULATION_TRACKER_REV): New
34441         unspec.
34442         (speculation_tracker_rev): New pattern.
34443         * config/aarch64/aarch64-speculation.cc (aarch64_do_track_speculation):
34444         Use speculation_tracker_rev to track the inverse condition.
34446 2020-01-23  Richard Biener  <rguenther@suse.de>
34448         PR tree-optimization/93381
34449         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Take
34450         alias-set of the def as argument and record the first one.
34451         (vn_walk_cb_data::first_set): New member.
34452         (vn_reference_lookup_3): Pass the alias-set of the current def
34453         to push_partial_def.  Fix alias-set used in the aggregate copy
34454         case.
34455         (vn_reference_lookup): Consistently set *last_vuse_ptr.
34456         * real.c (clear_significand_below): Fix out-of-bound access.
34458 2020-01-23  Jakub Jelinek  <jakub@redhat.com>
34460         PR target/93346
34461         * config/i386/i386.md (*bmi2_bzhi_<mode>3_2, *bmi2_bzhi_<mode>3_3):
34462         New define_insn patterns.
34464 2020-01-23  Richard Sandiford  <richard.sandiford@arm.com>
34466         * doc/sourcebuild.texi (check-function-bodies): Add an
34467         optional target/xfail selector.
34469 2020-01-23  Richard Sandiford  <richard.sandiford@arm.com>
34471         PR rtl-optimization/93124
34472         * auto-inc-dec.c (merge_in_block): Don't add auto inc/decs to
34473         bare USE and CLOBBER insns.
34475 2020-01-22  Andrew Pinski  <apinski@marvell.com>
34477         * config/arc/arc.c (output_short_suffix): Check insn for nullness.
34479 2020-01-22  David Malcolm  <dmalcolm@redhat.com>
34481         PR analyzer/93307
34482         * gdbinit.in (break-on-saved-diagnostic): Update for move of
34483         diagnostic_manager into "ana" namespace.
34484         * selftest-run-tests.c (selftest::run_tests): Update for move of
34485         selftest::run_analyzer_selftests to
34486         ana::selftest::run_analyzer_selftests.
34488 2020-01-22  Richard Sandiford  <richard.sandiford@arm.com>
34490         * cfgexpand.c (union_stack_vars): Update the size.
34492 2020-01-22  Richard Biener  <rguenther@suse.de>
34494         PR tree-optimization/93381
34495         * tree-ssa-structalias.c (find_func_aliases): Assume offsetting
34496         throughout, handle all conversions the same.
34498 2020-01-22  Jakub Jelinek  <jakub@redhat.com>
34500         PR target/93335
34501         * config/aarch64/aarch64.c (aarch64_expand_subvti): Only use
34502         gen_subdi3_compare1_imm if low_in2 satisfies aarch64_plus_immediate
34503         predicate, not whenever it is CONST_INT.  Otherwise, force_reg it.
34504         Call force_reg on high_in2 unconditionally.
34506 2020-01-22  Martin Liska  <mliska@suse.cz>
34508         PR tree-optimization/92924
34509         * profile.c (compute_value_histograms): Divide
34510         all counter values.
34512 2020-01-22  Jakub Jelinek  <jakub@redhat.com>
34514         PR target/91298
34515         * output.h (assemble_name_resolve): Declare.
34516         * varasm.c (assemble_name_resolve): New function.
34517         (assemble_name): Use it.
34518         * config/i386/i386.h (ASM_OUTPUT_SYMBOL_REF): Define.
34520 2020-01-22  Joseph Myers  <joseph@codesourcery.com>
34522         * doc/sourcebuild.texi (Texinfo Manuals, Front End): Refer to
34523         update_web_docs_git instead of update_web_docs_svn.
34525 2020-01-21  Andrew Pinski  <apinski@marvell.com>
34527         PR target/9311
34528         * config/aarch64/aarch64.md (tlsgd_small_<mode>): Have operand 0
34529         as PTR mode. Have operand 1 as being modeless, it can be P mode.
34530         (*tlsgd_small_<mode>): Likewise.
34531         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately)
34532         <case SYMBOL_SMALL_TLSGD>: Call gen_tlsgd_small_* with a ptr_mode
34533         register.  Convert that register back to dest using convert_mode.
34535 2020-01-21  Jim Wilson  <jimw@sifive.com>
34537         * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Use INTVAL
34538         instead of XINT.
34540 2020-01-21  H.J. Lu  <hongjiu.lu@intel.com>
34541             Uros Bizjak    <ubizjak@gmail.com>
34543         PR target/93319
34544         * config/i386/i386.c (ix86_tls_module_base): Replace Pmode
34545         with ptr_mode.
34546         (legitimize_tls_address): Do GNU2 TLS address computation in
34547         ptr_mode and zero-extend result to Pmode.
34548         *  config/i386/i386.md (@tls_dynamic_gnu2_64_<mode>): Replace
34549         :P with :PTR and Pmode with ptr_mode.
34550         (*tls_dynamic_gnu2_lea_64_<mode>): Likewise.
34551         (*tls_dynamic_gnu2_call_64_<mode>): Likewise.
34552         (*tls_dynamic_gnu2_combine_64_<mode>): Likewise.
34554 2020-01-21  Jakub Jelinek  <jakub@redhat.com>
34556         PR target/93333
34557         * config/riscv/riscv.c (riscv_rtx_costs) <case ZERO_EXTRACT>: Verify
34558         the last two operands are CONST_INT_P before using them as such.
34560 2020-01-21  Richard Sandiford  <richard.sandiford@arm.com>
34562         * config/aarch64/aarch64-sve-builtins.def: Use get_typenode_from_name
34563         to get the integer element types.
34565 2020-01-21  Richard Sandiford  <richard.sandiford@arm.com>
34567         * config/aarch64/aarch64-sve-builtins.h
34568         (function_expander::convert_to_pmode): Declare.
34569         * config/aarch64/aarch64-sve-builtins.cc
34570         (function_expander::convert_to_pmode): New function.
34571         (function_expander::get_contiguous_base): Use it.
34572         (function_expander::prepare_gather_address_operands): Likewise.
34573         * config/aarch64/aarch64-sve-builtins-sve2.cc
34574         (svwhilerw_svwhilewr_impl::expand): Likewise.
34576 2020-01-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
34578         PR target/92424
34579         * config/aarch64/aarch64.c (aarch64_declare_function_name): Set
34580         cfun->machine->label_is_assembled.
34581         (aarch64_print_patchable_function_entry): New.
34582         (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): Define.
34583         * config/aarch64/aarch64.h (struct machine_function): New field,
34584         label_is_assembled.
34586 2020-01-21  David Malcolm  <dmalcolm@redhat.com>
34588         PR ipa/93315
34589         * ipa-profile.c (ipa_profile): Delete call_sums and set it to
34590         NULL on exit.
34592 2020-01-18  Jan Hubicka  <hubicka@ucw.cz>
34594         PR lto/93318    
34595         * cgraph.c (cgraph_edge::resolve_speculation,
34596         cgraph_edge::redirect_call_stmt_to_callee): Fix update of
34597         call_stmt_site_hash.
34599 2020-01-21  Martin Liska  <mliska@suse.cz>
34601         * config/rs6000/rs6000.c (common_mode_defined): Remove
34602         unused variable.
34604 2020-01-21  Richard Biener  <rguenther@suse.de>
34606         PR tree-optimization/92328
34607         * tree-ssa-sccvn.c (vn_reference_lookup_3): Preserve
34608         type when value-numbering same-sized store by inserting a
34609         VIEW_CONVERT_EXPR.
34610         (eliminate_dom_walker::eliminate_stmt): When eliminating
34611         a redundant store handle bit-reinterpretation of the same value.
34613 2020-01-21  Andrew Pinski  <apinski@marvel.com>
34615         PR tree-opt/93321
34616         * tree-into-ssa.c (prepare_block_for_update_1): Split out
34617         from ...
34618         (prepare_block_for_update): This.  Use a worklist instead of
34619         recursing.
34621 2020-01-21  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
34623         * config/arm/arm.c (clear_operation_p):
34624         Initialise last_regno, skip first iteration
34625         based on the first_set value and use ints instead
34626         of the unnecessary HOST_WIDE_INTs.
34628 2020-01-21  Jakub Jelinek  <jakub@redhat.com>
34630         PR target/93073
34631         * config/rs6000/rs6000.c (rs6000_emit_cmove): If using fsel, punt for
34632         compare_mode other than SFmode or DFmode.
34634 2020-01-21  Kito Cheng  <kito.cheng@sifive.com>
34636         PR target/93304
34637         * config/riscv/riscv-protos.h (riscv_hard_regno_rename_ok): New.
34638         * config/riscv/riscv.c (riscv_hard_regno_rename_ok): New.
34639         * config/riscv/riscv.h (HARD_REGNO_RENAME_OK): Defined.
34641 2020-01-20  Wilco Dijkstra  <wdijkstr@arm.com>
34643         * config/aarch64/aarch64.c (neoversen1_tunings): Set jump_align to 4.
34645 2020-01-20  Andrew Pinski  <apinski@marvell.com>
34647         PR middle-end/93242
34648         * targhooks.c (default_print_patchable_function_entry): Use
34649         output_asm_insn to emit the nop instruction.
34651 2020-01-20  Fangrui Song  <maskray@google.com>
34653         PR middle-end/93194
34654         * targhooks.c (default_print_patchable_function_entry): Align to
34655         POINTER_SIZE.
34657 2020-01-20  H.J. Lu  <hongjiu.lu@intel.com>
34659         PR target/93319
34660         * config/i386/i386.c (legitimize_tls_address): Pass Pmode to
34661         gen_tls_dynamic_gnu2_64.  Compute GNU2 TLS address in ptr_mode.
34662         * config/i386/i386.md (tls_dynamic_gnu2_64): Renamed to ...
34663         (@tls_dynamic_gnu2_64_<mode>): This.  Replace DI with P.
34664         (*tls_dynamic_gnu2_lea_64): Renamed to ...
34665         (*tls_dynamic_gnu2_lea_64_<mode>): This.  Replace DI with P.
34666         Remove the {q} suffix from lea.
34667         (*tls_dynamic_gnu2_call_64): Renamed to ...
34668         (*tls_dynamic_gnu2_call_64_<mode>): This.  Replace DI with P.
34669         (*tls_dynamic_gnu2_combine_64): Renamed to ...
34670         (*tls_dynamic_gnu2_combine_64_<mode>): This.  Replace DI with P.
34671         Pass Pmode to gen_tls_dynamic_gnu2_64.
34673 2020-01-20  Wilco Dijkstra  <wdijkstr@arm.com>
34675         * config/aarch64/aarch64.h (SLOW_BYTE_ACCESS): Set to 1.
34677 2020-01-20  Richard Sandiford  <richard.sandiford@arm.com>
34679         * config/aarch64/aarch64-sve-builtins-base.cc
34680         (svld1ro_impl::memory_vector_mode): Remove parameter name.
34682 2020-01-20  Richard Biener  <rguenther@suse.de>
34684         PR debug/92763
34685         * dwarf2out.c (prune_unused_types): Unconditionally mark
34686         called function DIEs.
34688 2020-01-20  Martin Liska  <mliska@suse.cz>
34690         PR tree-optimization/93199
34691         * tree-eh.c (struct leh_state): Add
34692         new field outer_non_cleanup.
34693         (cleanup_is_dead_in): Pass leh_state instead
34694         of eh_region.  Add a checking that state->outer_non_cleanup
34695         points to outer non-clean up region.
34696         (lower_try_finally): Record outer_non_cleanup
34697         for this_state.
34698         (lower_catch): Likewise.
34699         (lower_eh_filter): Likewise.
34700         (lower_eh_must_not_throw): Likewise.
34701         (lower_cleanup): Likewise.
34703 2020-01-20  Richard Biener  <rguenther@suse.de>
34705         PR tree-optimization/93094
34706         * tree-vectorizer.h (vect_loop_versioning): Adjust.
34707         (vect_transform_loop): Likewise.
34708         * tree-vectorizer.c (try_vectorize_loop_1): Pass down
34709         loop_vectorized_call to vect_transform_loop.
34710         * tree-vect-loop.c (vect_transform_loop): Pass down
34711         loop_vectorized_call to vect_loop_versioning.
34712         * tree-vect-loop-manip.c (vect_loop_versioning): Use
34713         the earlier discovered loop_vectorized_call.
34715 2020-01-19  Eric S. Raymond <esr@thyrsus.com>
34717         * doc/contribute.texi: Update for SVN -> Git transition.
34718         * doc/install.texi: Likewise.
34720 2020-01-18  Jan Hubicka  <hubicka@ucw.cz>
34722         PR lto/93318
34723         * cgraph.c (cgraph_edge::make_speculative): Increase number of
34724         speculative targets.
34725         (verify_speculative_call): New function
34726         (cgraph_node::verify_node): Use it.
34727         * ipa-profile.c (ipa_profile): Fix formating; do not set number of
34728         speculations.
34730 2020-01-18  Jan Hubicka  <hubicka@ucw.cz>
34732         PR lto/93318
34733         * cgraph.c (cgraph_edge::resolve_speculation): Fix foramting.
34734         (cgraph_edge::make_direct): Remove all indirect targets.
34735         (cgraph_edge::redirect_call_stmt_to_callee): Use make_direct..
34736         (cgraph_node::verify_node): Verify that only one call_stmt or
34737         lto_stmt_uid is set.
34738         * cgraphclones.c (cgraph_edge::clone): Set only one call_stmt or
34739         lto_stmt_uid.
34740         * lto-cgraph.c (lto_output_edge): Simplify streaming of stmt.
34741         (lto_output_ref): Simplify streaming of stmt.
34742         * lto-streamer-in.c (fixup_call_stmt_edges_1): Clear lto_stmt_uid.
34744 2020-01-18  Tamar Christina  <tamar.christina@arm.com>
34746         * config/aarch64/aarch64-sve-builtins-base.cc (memory_vector_mode):
34747         Mark parameter unused.
34749 2020-01-18  Hans-Peter Nilsson  <hp@axis.com>
34751         * config.gcc <obsolete targets>: Add crisv32-*-* and cris-*-linux*
34753 2019-01-18  Gerald Pfeifer  <gerald@pfeifer.com>
34755         * varpool.c (ctor_useable_for_folding_p): Fix grammar.
34757 2020-01-18  Iain Sandoe  <iain@sandoe.co.uk>
34759         * Makefile.in: Add coroutine-passes.o.
34760         * builtin-types.def (BT_CONST_SIZE): New.
34761         (BT_FN_BOOL_PTR): New.
34762         (BT_FN_PTR_PTR_CONST_SIZE_BOOL): New.
34763         * builtins.def (DEF_COROUTINE_BUILTIN): New.
34764         * coroutine-builtins.def: New file.
34765         * coroutine-passes.cc: New file.
34766         * function.h (struct GTY function): Add a bit to indicate that the
34767         function is a coroutine component.
34768         * internal-fn.c (expand_CO_FRAME): New.
34769         (expand_CO_YIELD): New.
34770         (expand_CO_SUSPN): New.
34771         (expand_CO_ACTOR): New.
34772         * internal-fn.def (CO_ACTOR): New.
34773         (CO_YIELD): New.
34774         (CO_SUSPN): New.
34775         (CO_FRAME): New.
34776         * passes.def: Add pass_coroutine_lower_builtins,
34777         pass_coroutine_early_expand_ifns.
34778         * tree-pass.h (make_pass_coroutine_lower_builtins): New.
34779         (make_pass_coroutine_early_expand_ifns): New.
34780         * doc/invoke.texi: Document the fcoroutines command line
34781         switch.
34783 2020-01-18  Jakub Jelinek  <jakub@redhat.com>
34785         * config/arm/vfp.md (*clear_vfp_multiple): Remove unused variable.
34787         PR target/93312
34788         * config/arm/arm.c (clear_operation_p): Don't use REGNO until
34789         after checking the argument is a REG.  Don't use REGNO (reg)
34790         again to set last_regno, reuse regno variable instead.
34792 2020-01-17  David Malcolm  <dmalcolm@redhat.com>
34794         * doc/analyzer.texi (Limitations): Add note about NaN.
34796 2020-01-17  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
34797             Sudakshina Das  <sudi.das@arm.com>
34799         * config/arm/arm.md (ashldi3): Generate thumb2_lsll for both reg
34800         and valid immediate.
34801         (ashrdi3): Generate thumb2_asrl for both reg and valid immediate.
34802         (lshrdi3): Generate thumb2_lsrl for valid immediates.
34803         * config/arm/constraints.md (Pg): New.
34804         * config/arm/predicates.md (long_shift_imm): New.
34805         (arm_reg_or_long_shift_imm): Likewise.
34806         * config/arm/thumb2.md (thumb2_asrl): New immediate alternative.
34807         (thumb2_lsll): Likewise.
34808         (thumb2_lsrl): New.
34810 2020-01-17  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
34811             Sudakshina Das  <sudi.das@arm.com>
34813         * config/arm/arm.md (ashldi3): Generate thumb2_lsll for TARGET_HAVE_MVE.
34814         (ashrdi3): Generate thumb2_asrl for TARGET_HAVE_MVE.
34815         * config/arm/arm.c (arm_hard_regno_mode_ok): Allocate even odd
34816         register pairs for doubleword quantities for ARMv8.1M-Mainline.
34817         * config/arm/thumb2.md (thumb2_asrl): New.
34818         (thumb2_lsll): Likewise.
34820 2020-01-17  Jakub Jelinek  <jakub@redhat.com>
34822         * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear): Remove
34823         unused variable.
34825 2020-01-17  Alexander Monakov  <amonakov@ispras.ru>
34827         * gdbinit.in (help-gcc-hooks): New command.
34828         (pp, pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, ptc, pdn, ptn, pdd, prc,
34829         pi, pbm, pel, trt): Take $arg0 instead of $ if supplied. Update
34830         documentation.
34832 2020-01-17  Matthew Malcomson  <matthew.malcomson@arm.com>
34834         * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use the
34835         correct target macro.
34837 2020-01-17  Matthew Malcomson  <matthew.malcomson@arm.com>
34839         * config/aarch64/aarch64-protos.h
34840         (aarch64_sve_ld1ro_operand_p): New.
34841         * config/aarch64/aarch64-sve-builtins-base.cc
34842         (class load_replicate): New.
34843         (class svld1ro_impl): New.
34844         (class svld1rq_impl): Change to inherit from load_replicate.
34845         (svld1ro): New sve intrinsic function base.
34846         * config/aarch64/aarch64-sve-builtins-base.def (svld1ro):
34847         New DEF_SVE_FUNCTION.
34848         * config/aarch64/aarch64-sve-builtins-base.h
34849         (svld1ro): New decl.
34850         * config/aarch64/aarch64-sve-builtins.cc
34851         (function_expander::add_mem_operand): Modify assert to allow
34852         OImode.
34853         * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): New
34854         pattern.
34855         * config/aarch64/aarch64.c
34856         (aarch64_sve_ld1rq_operand_p): Implement in terms of ...
34857         (aarch64_sve_ld1rq_ld1ro_operand_p): This.
34858         (aarch64_sve_ld1ro_operand_p): New.
34859         * config/aarch64/aarch64.md (UNSPEC_LD1RO): New unspec.
34860         * config/aarch64/constraints.md (UOb,UOh,UOw,UOd): New.
34861         * config/aarch64/predicates.md
34862         (aarch64_sve_ld1ro_operand_{b,h,w,d}): New.
34864 2020-01-17  Matthew Malcomson  <matthew.malcomson@arm.com>
34866         * config/aarch64/aarch64-c.c (_ARM_FEATURE_MATMUL_FLOAT64):
34867         Introduce this ACLE specified predefined macro.
34868         * config/aarch64/aarch64-option-extensions.def (f64mm): New.
34869         (fp): Disabling this disables f64mm.
34870         (simd): Disabling this disables f64mm.
34871         (fp16): Disabling this disables f64mm.
34872         (sve): Disabling this disables f64mm.
34873         * config/aarch64/aarch64.h (AARCH64_FL_F64MM): New.
34874         (AARCH64_ISA_F64MM): New.
34875         (TARGET_F64MM): New.
34876         * doc/invoke.texi (f64mm): Document new option.
34878 2020-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
34880         * config/aarch64/aarch64.c (generic_tunings): Add branch fusion.
34881         (neoversen1_tunings): Likewise.
34883 2020-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
34885         PR target/92692
34886         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap)
34887         Add assert to ensure prolog has been emitted.
34888         (aarch64_split_atomic_op): Likewise.
34889         * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>)
34890         Use epilogue_completed rather than reload_completed.
34891         (aarch64_atomic_exchange<mode>): Likewise.
34892         (aarch64_atomic_<atomic_optab><mode>): Likewise.
34893         (atomic_nand<mode>): Likewise.
34894         (aarch64_atomic_fetch_<atomic_optab><mode>): Likewise.
34895         (atomic_fetch_nand<mode>): Likewise.
34896         (aarch64_atomic_<atomic_optab>_fetch<mode>): Likewise.
34897         (atomic_nand_fetch<mode>): Likewise.
34899 2020-01-17  Richard Sandiford  <richard.sandiford@arm.com>
34901         PR target/93133
34902         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Return false
34903         for FP modes.
34904         (REVERSE_CONDITION): Delete.
34905         * config/aarch64/iterators.md (CC_ONLY): New mode iterator.
34906         (CCFP_CCFPE): Likewise.
34907         (e): New mode attribute.
34908         * config/aarch64/aarch64.md (ccmp<GPI:mode>): Rename to...
34909         (@ccmp<CC_ONLY:mode><GPI:mode>): ...this, using CC_ONLY instead of CC.
34910         (fccmp<GPF:mode>, fccmpe<GPF:mode>): Merge into...
34911         (@ccmp<CCFP_CCFPE:mode><GPF:mode>): ...this combined pattern.
34912         (@ccmp<CC_ONLY:mode><GPI:mode>_rev): New pattern.
34913         (@ccmp<CCFP_CCFPE:mode><GPF:mode>_rev): Likewise.
34914         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Update
34915         name of generator from gen_ccmpdi to gen_ccmpccdi.
34916         (aarch64_gen_ccmp_next): Use code_for_ccmp.  If we want to reverse
34917         the previous comparison but aren't able to, use the new ccmp_rev
34918         patterns instead.
34920 2020-01-17  Richard Sandiford  <richard.sandiford@arm.com>
34922         * gimplify.c (gimplify_return_expr): Use poly_int_tree_p rather
34923         than testing directly for INTEGER_CST.
34924         (gimplify_target_expr, gimplify_omp_depend): Likewise.
34926 2020-01-17  Jakub Jelinek  <jakub@redhat.com>
34928         PR tree-optimization/93292
34929         * tree-vect-stmts.c (vectorizable_comparison): Punt also if
34930         get_vectype_for_scalar_type returns NULL.
34932 2020-01-16  Jan Hubicka  <hubicka@ucw.cz>
34934         * params.opt (-param=max-predicted-iterations): Increase range from 0.
34935         * predict.c (estimate_loops): Add 1 to param_max_predicted_iterations.
34937 2020-01-16  Jan Hubicka  <hubicka@ucw.cz>
34939         * ipa-fnsummary.c (estimate_calls_size_and_time): Fix formating of
34940         dump.
34941         * params.opt: (max-predicted-iterations): Set bounds.
34942         * predict.c (real_almost_one, real_br_prob_base,
34943         real_inv_br_prob_base, real_one_half, real_bb_freq_max): Remove.
34944         (propagate_freq): Add max_cyclic_prob parameter; cap cyclic
34945         probabilities; do not truncate to reg_br_prob_bases.
34946         (estimate_loops_at_level): Pass max_cyclic_prob.
34947         (estimate_loops): Compute max_cyclic_prob.
34948         (estimate_bb_frequencies): Do not initialize real_*; update calculation
34949         of back edge prob.
34950         * profile-count.c (profile_probability::to_sreal): New.
34951         * profile-count.h (class sreal): Move up in file.
34952         (profile_probability::to_sreal): Declare.
34954 2020-01-16  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
34956         * config/arm/arm.c
34957         (arm_invalid_conversion): New function for target hook.
34958         (arm_invalid_unary_op): New function for target hook.
34959         (arm_invalid_binary_op): New function for target hook.
34961 2020-01-16  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
34963         * config.gcc: Add arm_bf16.h.
34964         * config/arm/arm-builtins.c (arm_mangle_builtin_type): Fix comment.
34965         (arm_simd_builtin_std_type): Add BFmode.
34966         (arm_init_simd_builtin_types): Define element types for vector types.
34967         (arm_init_bf16_types): New function.
34968         (arm_init_builtins): Add arm_init_bf16_types function call.
34969         * config/arm/arm-modes.def: Add BFmode and V4BF, V8BF vector modes.
34970         * config/arm/arm-simd-builtin-types.def: Add V4BF, V8BF.
34971         * config/arm/arm.c (aapcs_vfp_sub_candidate):  Add BFmode.
34972         (arm_hard_regno_mode_ok): Add BFmode and tidy up statements.
34973         (arm_vector_mode_supported_p): Add V4BF, V8BF.
34974         (arm_mangle_type):  Add __bf16.
34975         * config/arm/arm.h: Add V4BF, V8BF to VALID_NEON_DREG_MODE, 
34976         VALID_NEON_QREG_MODE respectively. Add export arm_bf16_type_node,
34977         arm_bf16_ptr_type_node.
34978         * config/arm/arm.md: Add BFmode to movhf expand, mov pattern and
34979         define_split between ARM registers.
34980         * config/arm/arm_bf16.h: New file.
34981         * config/arm/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
34982         * config/arm/iterators.md: (ANY64_BF, VDXMOV, VHFBF, HFBF, fporbf): New.
34983         (VQXMOV): Add V8BF.
34984         * config/arm/neon.md: Add BF vector types to movhf NEON move patterns.
34985         * config/arm/vfp.md: Add BFmode to movhf patterns.
34987 2020-01-16  Mihail Ionescu  <mihail.ionescu@arm.com>
34988             Andre Vieira  <andre.simoesdiasvieira@arm.com>
34990         * config/arm/arm-cpus.in (mve, mve_float): New features.
34991         (dsp, mve, mve.fp): New options.
34992         * config/arm/arm.h (TARGET_HAVE_MVE, TARGET_HAVE_MVE_FLOAT): Define.
34993         * config/arm/t-rmprofile: Map v8.1-M multilibs to v8-M.
34994         * doc/invoke.texi: Document the armv8.1-m mve and dps options.
34996 2020-01-16  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
34997             Thomas Preud'homme  <thomas.preudhomme@arm.com>
34999         * config/arm/arm-cpus.in (ARMv8_1m_main): Redefine as an extension to
35000         Armv8-M Mainline.
35001         * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Remove
35002         error for using -mcmse when targeting Armv8.1-M Mainline.
35004 2020-01-16  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
35005             Thomas Preud'homme  <thomas.preudhomme@arm.com>
35007         * config/arm/arm.md (nonsecure_call_internal): Do not force memory
35008         address in r4 when targeting Armv8.1-M Mainline.
35009         (nonsecure_call_value_internal): Likewise.
35010         * config/arm/thumb2.md (nonsecure_call_reg_thumb2): Make memory address
35011         a register match_operand again.  Emit BLXNS when targeting
35012         Armv8.1-M Mainline.
35013         (nonsecure_call_value_reg_thumb2): Likewise.
35015 2020-01-16  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
35016             Thomas Preud'homme  <thomas.preudhomme@arm.com>
35018         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): Declare early.
35019         (cmse_nonsecure_call_inline_register_clear): Define new lazy_fpclear
35020         variable as true when floating-point ABI is not hard.  Replace
35021         check against TARGET_HARD_FLOAT_ABI by checks against lazy_fpclear.
35022         Generate VLSTM and VLLDM instruction respectively before and
35023         after a function call to cmse_nonsecure_call function.
35024         * config/arm/unspecs.md (VUNSPEC_VLSTM): Define unspec.
35025         (VUNSPEC_VLLDM): Likewise.
35026         * config/arm/vfp.md (lazy_store_multiple_insn): New define_insn.
35027         (lazy_load_multiple_insn): Likewise.
35029 2020-01-16  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
35030             Thomas Preud'homme  <thomas.preudhomme@arm.com>
35032         * config/arm/arm.c (vfp_emit_fstmd): Declare early.
35033         (arm_emit_vfp_multi_reg_pop): Likewise.
35034         (cmse_nonsecure_call_inline_register_clear): Abstract number of VFP
35035         registers to clear in max_fp_regno.  Emit VPUSH and VPOP to save and
35036         restore callee-saved VFP registers.
35038 2020-01-16  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
35039             Thomas Preud'homme  <thomas.preudhomme@arm.com>
35041         * config/arm/arm.c (arm_emit_multi_reg_pop): Declare early.
35042         (cmse_nonsecure_call_clear_caller_saved): Rename into ...
35043         (cmse_nonsecure_call_inline_register_clear): This.  Save and clear
35044         callee-saved GPRs as well as clear ip register before doing a nonsecure
35045         call then restore callee-saved GPRs after it when targeting
35046         Armv8.1-M Mainline.
35047         (arm_reorg): Adapt to function rename.
35049 2020-01-16  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
35050             Thomas Preud'homme  <thomas.preudhomme@arm.com>
35052         * config/arm/arm-protos.h (clear_operation_p): Adapt prototype.
35053         * config/arm/arm.c (clear_operation_p): Extend to be able to check a
35054         clear_vfp_multiple pattern based on a new vfp parameter.
35055         (cmse_clear_registers): Generate VSCCLRM to clear VFP registers when
35056         targeting Armv8.1-M Mainline.
35057         (cmse_nonsecure_entry_clear_before_return): Clear VFP registers
35058         unconditionally when targeting Armv8.1-M Mainline architecture.  Check
35059         whether VFP registers are available before looking call_used_regs for a
35060         VFP register.
35061         * config/arm/predicates.md (clear_multiple_operation): Adapt to change
35062         of prototype of clear_operation_p.
35063         (clear_vfp_multiple_operation): New predicate.
35064         * config/arm/unspecs.md (VUNSPEC_VSCCLRM_VPR): New volatile unspec.
35065         * config/arm/vfp.md (clear_vfp_multiple): New define_insn.
35067 2020-01-16  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
35068             Thomas Preud'homme  <thomas.preudhomme@arm.com>
35070         * config/arm/arm-protos.h (clear_operation_p): Declare.
35071         * config/arm/arm.c (clear_operation_p): New function.
35072         (cmse_clear_registers): Generate clear_multiple instruction pattern if
35073         targeting Armv8.1-M Mainline or successor.
35074         (output_return_instruction): Only output APSR register clearing if
35075         Armv8.1-M Mainline instructions not available.
35076         (thumb_exit): Likewise.
35077         * config/arm/predicates.md (clear_multiple_operation): New predicate.
35078         * config/arm/thumb2.md (clear_apsr): New define_insn.
35079         (clear_multiple): Likewise.
35080         * config/arm/unspecs.md (VUNSPEC_CLRM_APSR): New volatile unspec.
35082 2020-01-16  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
35083             Thomas Preud'homme  <thomas.preudhomme@arm.com>
35085         * config/arm/arm.c (fp_sysreg_names): Declare and define.
35086         (use_return_insn): Also return false for Armv8.1-M Mainline.
35087         (output_return_instruction): Skip FPSCR clearing if Armv8.1-M
35088         Mainline instructions are available.
35089         (arm_compute_frame_layout): Allocate space in frame for FPCXTNS
35090         when targeting Armv8.1-M Mainline Security Extensions.
35091         (arm_expand_prologue): Save FPCXTNS if this is an Armv8.1-M
35092         Mainline entry function.
35093         (cmse_nonsecure_entry_clear_before_return): Clear IP and r4 if
35094         targeting Armv8.1-M Mainline or successor.
35095         (arm_expand_epilogue): Fix indentation of caller-saved register
35096         clearing.  Restore FPCXTNS if this is an Armv8.1-M Mainline
35097         entry function.
35098         * config/arm/arm.h (TARGET_HAVE_FP_CMSE): New macro.
35099         (FP_SYSREGS): Likewise.
35100         (enum vfp_sysregs_encoding): Define enum.
35101         (fp_sysreg_names): Declare.
35102         * config/arm/unspecs.md (VUNSPEC_VSTR_VLDR): New volatile unspec.
35103         * config/arm/vfp.md (push_fpsysreg_insn): New define_insn.
35104         (pop_fpsysreg_insn): Likewise.
35106 2020-01-16  Mihail-Calin Ionescu  <mihail.ionescu@arm.com>
35107             Thomas Preud'homme  <thomas.preudhomme@arm.com>
35109         * config/arm/arm-cpus.in (armv8_1m_main): New feature.
35110         (ARMv4, ARMv4t, ARMv5t, ARMv5te, ARMv5tej, ARMv6, ARMv6j, ARMv6k,
35111         ARMv6z, ARMv6kz, ARMv6zk, ARMv6t2, ARMv6m, ARMv7, ARMv7a, ARMv7ve,
35112         ARMv7r, ARMv7m, ARMv7em, ARMv8a, ARMv8_1a, ARMv8_2a, ARMv8_3a,
35113         ARMv8_4a, ARMv8_5a, ARMv8m_base, ARMv8m_main, ARMv8r): Reindent.
35114         (ARMv8_1m_main): New feature group.
35115         (armv8.1-m.main): New architecture.
35116         * config/arm/arm-tables.opt: Regenerate.
35117         * config/arm/arm.c (arm_arch8_1m_main): Define and default initialize.
35118         (arm_option_reconfigure_globals): Initialize arm_arch8_1m_main.
35119         (arm_options_perform_arch_sanity_checks): Error out when targeting
35120         Armv8.1-M Mainline Security Extensions.
35121         * config/arm/arm.h (arm_arch8_1m_main): Declare.
35123 2020-01-16  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
35125         * config/aarch64/aarch64-simd-builtins.def (aarch64_bfdot,
35126         aarch64_bfdot_lane, aarch64_bfdot_laneq): New.
35127         * config/aarch64/aarch64-simd.md (aarch64_bfdot, aarch64_bfdot_lane,
35128         aarch64_bfdot_laneq): New.
35129         * config/aarch64/arm_bf16.h (vbfdot_f32, vbfdotq_f32,
35130         vbfdot_lane_f32, vbfdotq_lane_f32, vbfdot_laneq_f32,
35131         vbfdotq_laneq_f32): New.
35132         * config/aarch64/iterators.md (UNSPEC_BFDOT, Vbfdottype,
35133         VBFMLA_W, VBF): New.
35134         (isquadop): Add V4BF, V8BF.
35136 2020-01-16  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
35138         * config/aarch64/aarch64-builtins.c: (enum aarch64_type_qualifiers):
35139         New qualifier_lane_quadtup_index, TYPES_TERNOP_SSUS,
35140         TYPES_QUADOPSSUS_LANE_QUADTUP, TYPES_QUADOPSSSU_LANE_QUADTUP.
35141         (aarch64_simd_expand_args): Add case SIMD_ARG_LANE_QUADTUP_INDEX.
35142         (aarch64_simd_expand_builtin): Add qualifier_lane_quadtup_index.
35143         * config/aarch64/aarch64-simd-builtins.def (usdot, usdot_lane,
35144         usdot_laneq, sudot_lane,sudot_laneq): New.
35145         * config/aarch64/aarch64-simd.md (aarch64_usdot): New.
35146         (aarch64_<sur>dot_lane): New.
35147         * config/aarch64/arm_neon.h (vusdot_s32): New.
35148         (vusdotq_s32): New.
35149         (vusdot_lane_s32): New.
35150         (vsudot_lane_s32): New.
35151         * config/aarch64/iterators.md (DOTPROD_I8MM): New iterator.
35152         (UNSPEC_USDOT, UNSPEC_SUDOT): New unspecs.
35154 2020-01-16  Martin Liska  <mliska@suse.cz>
35156         * value-prof.c (dump_histogram_value): Fix
35157         obvious spacing issue.
35159 2020-01-16  Andrew Pinski  <apinski@marvell.com>
35161         * tree-ssa-sccvn.c(vn_reference_lookup_3): Check lhs for
35162         !storage_order_barrier_p.
35164 2020-01-16  Andrew Pinski  <apinski@marvell.com>
35166         * sched-int.h (_dep): Add unused bit-field field for the padding.
35167         * sched-deps.c (init_dep_1): Init unused field.
35169 2020-01-16  Andrew Pinski  <apinski@marvell.com>
35171         * optabs.h (create_expand_operand): Initialize target field also.
35173 2020-01-16  Andre Vieira  <andre.simoesdiasvieira@arm.com>
35175         PR tree-optimization/92429
35176         * tree-ssa-loop-niter.h (simplify_replace_tree): Add parameter.
35177         * tree-ssa-loop-niter.c (simplify_replace_tree): Add parameter to
35178         control folding.
35179         * tree-vect-loop.c (update_epilogue_vinfo): Do not fold when replacing
35180         tree.
35182 2020-01-16  Richard Sandiford  <richard.sandiford@arm.com>
35184         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move): Apply
35185         aarch64_sve_int_mode to each mode.
35187 2020-01-15  David Malcolm  <dmalcolm@redhat.com>
35189         * doc/analyzer.texi (Overview): Add note about
35190         -fdump-ipa-analyzer.
35192 2020-01-15  Wilco Dijkstra  <wdijkstr@arm.com>
35194         PR tree-optimization/93231
35195         * tree-ssa-forwprop.c (optimize_count_trailing_zeroes): Check
35196         input_type is unsigned.  Use tree_to_shwi for shift constant.
35197         Check CST_STRING element size is CHAR_TYPE_SIZE bits.
35198         (simplify_count_trailing_zeroes): Add test to handle known non-zero
35199         inputs more efficiently.
35201 2020-01-15  Uroš Bizjak  <ubizjak@gmail.com>
35203         * config/i386/i386.md (*movsf_internal): Do not require
35204         SSE2 ISA for alternatives 14 and 15.
35206 2020-01-15  Richard Biener  <rguenther@suse.de>
35208         PR middle-end/93273
35209         * tree-eh.c (sink_clobbers): If we already visited the destination
35210         block do not defer insertion.
35211         (pass_lower_eh_dispatch::execute): Maintain BB_VISITED for
35212         the purpose of defered insertion.
35214 2020-01-15  Jakub Jelinek  <jakub@redhat.com>
35216         * BASE-VER: Bump to 10.0.1.
35218 2020-01-15  Richard Sandiford  <richard.sandiford@arm.com>
35220         PR tree-optimization/93247
35221         * tree-vect-loop.c (update_epilogue_loop_vinfo): Check the access
35222         type of the stmt that we're going to vectorize.
35224 2020-01-15  Richard Sandiford  <richard.sandiford@arm.com>
35226         * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Use a
35227         VIEW_CONVERT_EXPR if the vectorized constructor has a diffeent
35228         type from the lhs.
35230 2020-01-15  Martin Liska  <mliska@suse.cz>
35232         * ipa-profile.c (ipa_profile_read_edge_summary): Do not allow
35233         2 calls of streamer_read_hwi in a function call.
35235 2020-01-15  Richard Biener  <rguenther@suse.de>
35237         * alias.c (record_alias_subset): Avoid redundant work when
35238         subset is already recorded.
35240 2020-01-14  David Malcolm  <dmalcolm@redhat.com>
35242         * doc/invoke.texi (-fdiagnostics-show-cwe): Add note that some of
35243         the analyzer options provide CWE identifiers.
35245 2020-01-14  David Malcolm  <dmalcolm@redhat.com>
35247         * tree-diagnostic-path.cc (path_summary::event_range::print):
35248         When testing for UNKNOWN_LOCATION, look through ad-hoc wrappers
35249         using get_pure_location.
35251 2020-01-15  Jakub Jelinek  <jakub@redhat.com>
35253         PR tree-optimization/93262
35254         * tree-ssa-dse.c (maybe_trim_memstar_call): For *_chk builtins,
35255         perform head trimming only if the last argument is constant,
35256         either all ones, or larger or equal to head trim, in the latter
35257         case decrease the last argument by head_trim.
35259         PR tree-optimization/93249
35260         * tree-ssa-dse.c: Include builtins.h and gimple-fold.h.
35261         (maybe_trim_memstar_call): Move head_trim and tail_trim vars to
35262         function body scope, reindent.  For BUILTIN_IN_STRNCPY*, don't
35263         perform head trim unless we can prove there are no '\0' chars
35264         from the source among the first head_trim chars.
35266 2020-01-14  David Malcolm  <dmalcolm@redhat.com>
35268         * Makefile.in (ANALYZER_OBJS): Add analyzer/function-set.o.
35270 2020-01-15  Jakub Jelinek  <jakub@redhat.com>
35272         PR target/93009
35273         * config/i386/sse.md
35274         (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1,
35275         *<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1,
35276         *<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1,
35277         *<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Use
35278         just a single alternative instead of two, make operands 1 and 2
35279         commutative.
35281 2020-01-14  Jan Hubicka  <hubicka@ucw.cz>
35283         PR lto/91576
35284         * ipa-devirt.c (odr_types_equivalent_p): Compare TREE_ADDRESSABLE and
35285         TYPE_MODE.
35287 2020-01-14  David Malcolm  <dmalcolm@redhat.com>
35289         * Makefile.in (lang_opt_files): Add analyzer.opt.
35290         (ANALYZER_OBJS): New.
35291         (OBJS): Add digraph.o, graphviz.o, ordered-hash-map-tests.o,
35292         tristate.o and ANALYZER_OBJS.
35293         (TEXI_GCCINT_FILES): Add analyzer.texi.
35294         * common.opt (-fanalyzer): New driver option.
35295         * config.in: Regenerate.
35296         * configure: Regenerate.
35297         * configure.ac (--disable-analyzer, ENABLE_ANALYZER): New option.
35298         (gccdepdir): Also create depdir for "analyzer" subdir.
35299         * digraph.cc: New file.
35300         * digraph.h: New file.
35301         * doc/analyzer.texi: New file.
35302         * doc/gccint.texi ("Static Analyzer") New menu item.
35303         (analyzer.texi): Include it.
35304         * doc/invoke.texi ("Static Analyzer Options"): New list and new section.
35305         ("Warning Options"): Add static analysis warnings to the list.
35306         (-Wno-analyzer-double-fclose): New option.
35307         (-Wno-analyzer-double-free): New option.
35308         (-Wno-analyzer-exposure-through-output-file): New option.
35309         (-Wno-analyzer-file-leak): New option.
35310         (-Wno-analyzer-free-of-non-heap): New option.
35311         (-Wno-analyzer-malloc-leak): New option.
35312         (-Wno-analyzer-possible-null-argument): New option.
35313         (-Wno-analyzer-possible-null-dereference): New option.
35314         (-Wno-analyzer-null-argument): New option.
35315         (-Wno-analyzer-null-dereference): New option.
35316         (-Wno-analyzer-stale-setjmp-buffer): New option.
35317         (-Wno-analyzer-tainted-array-index): New option.
35318         (-Wno-analyzer-use-after-free): New option.
35319         (-Wno-analyzer-use-of-pointer-in-stale-stack-frame): New option.
35320         (-Wno-analyzer-use-of-uninitialized-value): New option.
35321         (-Wanalyzer-too-complex): New option.
35322         (-fanalyzer-call-summaries): New warning.
35323         (-fanalyzer-checker=): New warning.
35324         (-fanalyzer-fine-grained): New warning.
35325         (-fno-analyzer-state-merge): New warning.
35326         (-fno-analyzer-state-purge): New warning.
35327         (-fanalyzer-transitivity): New warning.
35328         (-fanalyzer-verbose-edges): New warning.
35329         (-fanalyzer-verbose-state-changes): New warning.
35330         (-fanalyzer-verbosity=): New warning.
35331         (-fdump-analyzer): New warning.
35332         (-fdump-analyzer-callgraph): New warning.
35333         (-fdump-analyzer-exploded-graph): New warning.
35334         (-fdump-analyzer-exploded-nodes): New warning.
35335         (-fdump-analyzer-exploded-nodes-2): New warning.
35336         (-fdump-analyzer-exploded-nodes-3): New warning.
35337         (-fdump-analyzer-supergraph): New warning.
35338         * doc/sourcebuild.texi (dg-require-dot): New.
35339         (dg-check-dot): New.
35340         * gdbinit.in (break-on-saved-diagnostic): New command.
35341         * graphviz.cc: New file.
35342         * graphviz.h: New file.
35343         * ordered-hash-map-tests.cc: New file.
35344         * ordered-hash-map.h: New file.
35345         * passes.def (pass_analyzer): Add before
35346         pass_ipa_whole_program_visibility.
35347         * selftest-run-tests.c (selftest::run_tests): Call
35348         selftest::ordered_hash_map_tests_cc_tests.
35349         * selftest.h (selftest::ordered_hash_map_tests_cc_tests): New
35350         decl.
35351         * shortest-paths.h: New file.
35352         * timevar.def (TV_ANALYZER): New timevar.
35353         (TV_ANALYZER_SUPERGRAPH): Likewise.
35354         (TV_ANALYZER_STATE_PURGE): Likewise.
35355         (TV_ANALYZER_PLAN): Likewise.
35356         (TV_ANALYZER_SCC): Likewise.
35357         (TV_ANALYZER_WORKLIST): Likewise.
35358         (TV_ANALYZER_DUMP): Likewise.
35359         (TV_ANALYZER_DIAGNOSTICS): Likewise.
35360         (TV_ANALYZER_SHORTEST_PATHS): Likewise.
35361         * tree-pass.h (make_pass_analyzer): New decl.
35362         * tristate.cc: New file.
35363         * tristate.h: New file.
35365 2020-01-14  Uroš Bizjak  <ubizjak@gmail.com>
35367         PR target/93254
35368         * config/i386/i386.md (*movsf_internal): Require SSE2 ISA for
35369         alternatives 9 and 10.
35371 2020-01-14  David Malcolm  <dmalcolm@redhat.com>
35373         * attribs.c (excl_hash_traits::empty_zero_p): New static constant.
35374         * gcov.c (function_start_pair_hash::empty_zero_p): Likewise.
35375         * graphite.c (struct sese_scev_hash::empty_zero_p): Likewise.
35376         * hash-map-tests.c (selftest::test_nonzero_empty_key): New selftest.
35377         (selftest::hash_map_tests_c_tests): Call it.
35378         * hash-map-traits.h (simple_hashmap_traits::empty_zero_p):
35379         New static constant, using the value of = H::empty_zero_p.
35380         (unbounded_hashmap_traits::empty_zero_p): Likewise, using the value
35381         from default_hash_traits <Value>.
35382         * hash-map.h (hash_map::empty_zero_p): Likewise, using the value
35383         from Traits.
35384         * hash-set-tests.c (value_hash_traits::empty_zero_p): Likewise.
35385         * hash-table.h (hash_table::alloc_entries): Guard the loop of
35386         calls to mark_empty with !Descriptor::empty_zero_p.
35387         (hash_table::empty_slow): Conditionalize the memset call with a
35388         check that Descriptor::empty_zero_p; otherwise, loop through the
35389         entries calling mark_empty on them.
35390         * hash-traits.h (int_hash::empty_zero_p): New static constant.
35391         (pointer_hash::empty_zero_p): Likewise.
35392         (pair_hash::empty_zero_p): Likewise.
35393         * ipa-devirt.c (default_hash_traits <type_pair>::empty_zero_p):
35394         Likewise.
35395         * ipa-prop.c (ipa_bit_ggc_hash_traits::empty_zero_p): Likewise.
35396         (ipa_vr_ggc_hash_traits::empty_zero_p): Likewise.
35397         * profile.c (location_triplet_hash::empty_zero_p): Likewise.
35398         * sanopt.c (sanopt_tree_triplet_hash::empty_zero_p): Likewise.
35399         (sanopt_tree_couple_hash::empty_zero_p): Likewise.
35400         * tree-hasher.h (int_tree_hasher::empty_zero_p): Likewise.
35401         * tree-ssa-sccvn.c (vn_ssa_aux_hasher::empty_zero_p): Likewise.
35402         * tree-vect-slp.c (bst_traits::empty_zero_p): Likewise.
35403         * tree-vectorizer.h
35404         (default_hash_traits<scalar_cond_masked_key>::empty_zero_p):
35405         Likewise.
35407 2020-01-14  Kewen Lin  <linkw@gcc.gnu.org>
35409         * cfgloopanal.c (average_num_loop_insns): Free bbs when early return,
35410         fix typo on return value.
35412 2020-01-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
35414         PR ipa/69678
35415         * cgraph.c (symbol_table::create_edge): Init speculative_id and
35416         target_prob.
35417         (cgraph_edge::make_speculative): Add param for setting speculative_id
35418         and target_prob.
35419         (cgraph_edge::speculative_call_info): Update comments and find reference
35420         by speculative_id for multiple indirect targets.
35421         (cgraph_edge::resolve_speculation): Decrease the speculations
35422         for indirect edge, drop it's speculative if not direct target
35423         left. Update comments.
35424         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
35425         (cgraph_node::dump): Print num_speculative_call_targets.
35426         (cgraph_node::verify_node): Don't report error if speculative
35427         edge not include statement.
35428         (cgraph_edge::num_speculative_call_targets_p): New function.
35429         * cgraph.h (int common_target_id): Remove.
35430         (int common_target_probability): Remove.
35431         (num_speculative_call_targets): New variable.
35432         (make_speculative): Add param for setting speculative_id.
35433         (cgraph_edge::num_speculative_call_targets_p): New declare.
35434         (target_prob): New variable.
35435         (speculative_id): New variable.
35436         * ipa-fnsummary.c (analyze_function_body): Create and duplicate
35437           call summaries for multiple speculative call targets.
35438         * cgraphclones.c (cgraph_node::create_clone): Clone speculative_id.
35439         * ipa-profile.c (struct speculative_call_target): New struct.
35440         (class speculative_call_summary): New class.
35441         (class speculative_call_summaries): New class.
35442         (call_sums): New variable.
35443         (ipa_profile_generate_summary): Generate indirect multiple targets summaries.
35444         (ipa_profile_write_edge_summary): New function.
35445         (ipa_profile_write_summary): Stream out indirect multiple targets summaries.
35446         (ipa_profile_dump_all_summaries): New function.
35447         (ipa_profile_read_edge_summary): New function.
35448         (ipa_profile_read_summary_section): New function.
35449         (ipa_profile_read_summary): Stream in indirect multiple targets summaries.
35450         (ipa_profile): Generate num_speculative_call_targets from
35451         profile summaries.
35452         * ipa-ref.h (speculative_id): New variable.
35453         * ipa-utils.c (ipa_merge_profiles): Update with target_prob.
35454         * lto-cgraph.c (lto_output_edge): Remove indirect common_target_id and
35455         common_target_probability.   Stream out speculative_id and
35456         num_speculative_call_targets.
35457         (input_edge): Likewise.
35458         * predict.c (dump_prediction): Remove edges count assert to be
35459         precise.
35460         * symtab.c (symtab_node::create_reference): Init speculative_id.
35461         (symtab_node::clone_references): Clone speculative_id.
35462         (symtab_node::clone_referring): Clone speculative_id.
35463         (symtab_node::clone_reference): Clone speculative_id.
35464         (symtab_node::clear_stmts_in_references): Clear speculative_id.
35465         * tree-inline.c (copy_bb): Duplicate all the speculative edges
35466         if indirect call contains multiple speculative targets.
35467         * value-prof.h  (check_ic_target): Remove.
35468         * value-prof.c  (gimple_value_profile_transformations):
35469         Use void function gimple_ic_transform.
35470         * value-prof.c  (gimple_ic_transform): Handle topn case.
35471         Fix comment typos.  Change it to a void function.
35473 2020-01-13  Andrew Pinski  <apinski@marvell.com>
35475         * config/aarch64/aarch64-cores.def (octeontx2): New define.
35476         (octeontx2t98): New define.
35477         (octeontx2t96): New define.
35478         (octeontx2t93): New define.
35479         (octeontx2f95): New define.
35480         (octeontx2f95n): New define.
35481         (octeontx2f95mm): New define.
35482         * config/aarch64/aarch64-tune.md: Regenerate.
35483         * doc/invoke.texi (-mcpu=): Document the new cpu types.
35485 2020-01-13  Jason Merrill  <jason@redhat.com>
35487         PR c++/33799 - destroy return value if local cleanup throws.
35488         * gimplify.c (gimplify_return_expr): Handle COMPOUND_EXPR.
35490 2020-01-13  Martin Liska  <mliska@suse.cz>
35492         * ipa-cp.c (get_max_overall_size): Use newly
35493         renamed param param_ipa_cp_unit_growth.
35494         * params.opt: Remove legacy param name.
35496 2020-01-13  Martin Sebor  <msebor@redhat.com>
35498         PR tree-optimization/93213
35499         * tree-ssa-strlen.c (handle_store): Only allow single-byte nul-over-nul
35500         stores to be eliminated.
35502 2020-01-13  Martin Liska  <mliska@suse.cz>
35504         * opts.c (print_help): Do not print CL_PARAM
35505         and CL_WARNING for CL_OPTIMIZATION.
35507 2020-01-13  Jonathan Wakely  <jwakely@redhat.com>
35509         PR driver/92757
35510         * doc/invoke.texi (Warning Options): Add caveat about some warnings
35511         depending on optimization settings.
35513 2020-01-13  Jakub Jelinek  <jakub@redhat.com>
35515         PR tree-optimization/90838
35516         * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
35517         SCALAR_INT_TYPE_MODE directly in CTZ_DEFINED_VALUE_AT_ZERO macro
35518         argument rather than to initialize temporary for targets that
35519         don't use the mode argument at all.  Initialize ctzval to avoid
35520         warning at -O0.
35522 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
35524         * tree.h (OMP_CLAUSE_USE_DEVICE_PTR_IF_PRESENT): New definition.
35525         * tree-core.h: Document it.
35526         * gimplify.c (gimplify_omp_workshare): Set it.
35527         * omp-low.c (lower_omp_target): Use it.
35528         * tree-pretty-print.c (dump_omp_clause): Print it.
35530         * omp-low.c (lower_omp_target) <OMP_CLAUSE_USE_DEVICE_PTR etc.>:
35531         Assert that for OpenACC we always have 'GOMP_MAP_USE_DEVICE_PTR'.
35533 2020-01-10  David Malcolm  <dmalcolm@redhat.com>
35535         * Makefile.in (OBJS): Add tree-diagnostic-path.o.
35536         * common.opt (fdiagnostics-path-format=): New option.
35537         (diagnostic_path_format): New enum.
35538         (fdiagnostics-show-path-depths): New option.
35539         * coretypes.h (diagnostic_event_id_t): New forward decl.
35540         * diagnostic-color.c (color_dict): Add "path".
35541         * diagnostic-event-id.h: New file.
35542         * diagnostic-format-json.cc (json_from_expanded_location): Make
35543         non-static.
35544         (json_end_diagnostic): Call context->make_json_for_path if it
35545         exists and the diagnostic has a path.
35546         (diagnostic_output_format_init): Clear context->print_path.
35547         * diagnostic-path.h: New file.
35548         * diagnostic-show-locus.c (colorizer::set_range): Special-case
35549         when printing a run of events in a diagnostic_path so that they
35550         all get the same color.
35551         (layout::m_diagnostic_path_p): New field.
35552         (layout::layout): Initialize it.
35553         (layout::print_any_labels): Don't colorize the label text for an
35554         event in a diagnostic_path.
35555         (gcc_rich_location::add_location_if_nearby): Add
35556         "restrict_to_current_line_spans" and "label" params.  Pass the
35557         former to layout.maybe_add_location_range; pass the latter
35558         when calling add_range.
35559         * diagnostic.c: Include "diagnostic-path.h".
35560         (diagnostic_initialize): Initialize context->path_format and
35561         context->show_path_depths.
35562         (diagnostic_show_any_path): New function.
35563         (diagnostic_path::interprocedural_p): New function.
35564         (diagnostic_report_diagnostic): Call diagnostic_show_any_path.
35565         (simple_diagnostic_path::num_events): New function.
35566         (simple_diagnostic_path::get_event): New function.
35567         (simple_diagnostic_path::add_event): New function.
35568         (simple_diagnostic_event::simple_diagnostic_event): New ctor.
35569         (simple_diagnostic_event::~simple_diagnostic_event): New dtor.
35570         (debug): New overload taking a diagnostic_path *.
35571         * diagnostic.def (DK_DIAGNOSTIC_PATH): New.
35572         * diagnostic.h (enum diagnostic_path_format): New enum.
35573         (json::value): New forward decl.
35574         (diagnostic_context::path_format): New field.
35575         (diagnostic_context::show_path_depths): New field.
35576         (diagnostic_context::print_path): New callback field.
35577         (diagnostic_context::make_json_for_path): New callback field.
35578         (diagnostic_show_any_path): New decl.
35579         (json_from_expanded_location): New decl.
35580         * doc/invoke.texi (-fdiagnostics-path-format=): New option.
35581         (-fdiagnostics-show-path-depths): New option.
35582         (-fdiagnostics-color): Add "path" to description of default
35583         GCC_COLORS; describe it.
35584         (-fdiagnostics-format=json): Document how diagnostic paths are
35585         represented in the JSON output format.
35586         * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
35587         Add optional params "restrict_to_current_line_spans" and "label".
35588         * opts.c (common_handle_option): Handle
35589         OPT_fdiagnostics_path_format_ and
35590         OPT_fdiagnostics_show_path_depths.
35591         * pretty-print.c: Include "diagnostic-event-id.h".
35592         (pp_format): Implement "%@" format code for printing
35593         diagnostic_event_id_t *.
35594         (selftest::test_pp_format): Add tests for "%@".
35595         * selftest-run-tests.c (selftest::run_tests): Call
35596         selftest::tree_diagnostic_path_cc_tests.
35597         * selftest.h (selftest::tree_diagnostic_path_cc_tests): New decl.
35598         * toplev.c (general_init): Initialize global_dc->path_format and
35599         global_dc->show_path_depths.
35600         * tree-diagnostic-path.cc: New file.
35601         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Make
35602         non-static.  Drop "diagnostic" param in favor of storing the
35603         original value of "where" and re-using it.
35604         (virt_loc_aware_diagnostic_finalizer): Update for dropped param of
35605         maybe_unwind_expanded_macro_loc.
35606         (tree_diagnostics_defaults): Initialize context->print_path and
35607         context->make_json_for_path.
35608         * tree-diagnostic.h (default_tree_diagnostic_path_printer): New
35609         decl.
35610         (default_tree_make_json_for_path): New decl.
35611         (maybe_unwind_expanded_macro_loc): New decl.
35613 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
35615         PR tree-optimization/93210
35616         * fold-const.h (native_encode_initializer,
35617         can_native_interpret_type_p): Declare.
35618         * fold-const.c (native_encode_string): Fix up handling with off != -1,
35619         simplify.
35620         (native_encode_initializer): New function, moved from dwarf2out.c.
35621         Adjust to native_encode_expr compatible arguments, including dry-run
35622         and partial extraction modes.  Don't handle STRING_CST.
35623         (can_native_interpret_type_p): No longer static.
35624         * gimple-fold.c (fold_ctor_reference): For native_encode_expr, verify
35625         offset / BITS_PER_UNIT fits into int and don't call it if
35626         can_native_interpret_type_p fails.  If suboff is NULL and for
35627         CONSTRUCTOR fold_{,non}array_ctor_reference returns NULL, retry with
35628         native_encode_initializer.
35629         (fold_const_aggregate_ref_1): Formatting fix.
35630         * dwarf2out.c (native_encode_initializer): Moved to fold-const.c.
35631         (tree_add_const_value_attribute): Adjust caller.
35633         PR tree-optimization/90838
35634         * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
35635         SCALAR_INT_TYPE_MODE instead of TYPE_MODE as operand of
35636         CTZ_DEFINED_VALUE_AT_ZERO.
35638 2020-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35640         PR inline-asm/93027
35641         * lra-constraints.c (match_reload): Permit input operands have the
35642         same mode as output while other input operands have a different
35643         mode.
35645 2020-01-10  Wilco Dijkstra  <wdijkstr@arm.com>
35647         PR tree-optimization/90838
35648         * tree-ssa-forwprop.c (check_ctz_array): Add new function.
35649         (check_ctz_string): Likewise.
35650         (optimize_count_trailing_zeroes): Likewise.
35651         (simplify_count_trailing_zeroes): Likewise.
35652         (pass_forwprop::execute): Try ctz simplification.
35653         * match.pd: Add matching for ctz idioms.
35655 2020-01-10  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
35657         * config/aarch64/aarch64.c (aarch64_invalid_conversion): New function
35658         for target hook.
35659         (aarch64_invalid_unary_op): New function for target hook.
35660         (aarch64_invalid_binary_op): New function for target hook.
35662 2020-01-10  Stam Markianos-Wright  <stam.markianos-wright@arm.com>
35664         * config.gcc: Add arm_bf16.h.
35665         * config/aarch64/aarch64-builtins.c
35666         (aarch64_simd_builtin_std_type): Add BFmode.
35667         (aarch64_init_simd_builtin_types): Define element types for vector
35668         types.
35669         (aarch64_init_bf16_types): New function.
35670         (aarch64_general_init_builtins): Add arm_init_bf16_types function call.
35671         * config/aarch64/aarch64-modes.def: Add BFmode and V4BF, V8BF vector
35672         modes.
35673         * config/aarch64/aarch64-simd-builtin-types.def: Add BF SIMD types.
35674         * config/aarch64/aarch64-simd.md: Add BF vector types to NEON move
35675         patterns.
35676         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): Add V4BF.
35677         (AARCH64_VALID_SIMD_QREG_MODE): Add V8BF.
35678         * config/aarch64/aarch64.c
35679         (aarch64_classify_vector_mode): Add support for BF types.
35680         (aarch64_gimplify_va_arg_expr): Add support for BF types.
35681         (aarch64_vq_mode): Add support for BF types.
35682         (aarch64_simd_container_mode): Add support for BF types.
35683         (aarch64_mangle_type): Add support for BF scalar type.
35684         * config/aarch64/aarch64.md: Add BFmode to movhf pattern.
35685         * config/aarch64/arm_bf16.h: New file.
35686         * config/aarch64/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
35687         * config/aarch64/iterators.md: Add BF types to mode attributes.
35688         (HFBF, GPF_TF_F16_MOV, VDMOV, VQMOV, VQMOV_NO2Em VALL_F16MOV): New.
35690 2020-01-10  Jason Merrill  <jason@redhat.com>
35692         PR c++/93173 - incorrect tree sharing.
35693         * gimplify.c (copy_if_shared): No longer static.
35694         * gimplify.h: Declare it.
35696 2020-01-10  Richard Sandiford  <richard.sandiford@arm.com>
35698         * doc/invoke.texi (-msve-vector-bits=): Document that
35699         -msve-vector-bits=128 now generates VL-specific code for
35700         little-endian targets.
35701         * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types): Use
35702         build_vector_type_for_mode to construct the data vector types.
35703         * config/aarch64/aarch64.c (aarch64_convert_sve_vector_bits): Generate
35704         VL-specific code for -msve-vector-bits=128 on little-endian targets.
35705         (aarch64_simd_container_mode): Always prefer Advanced SIMD modes
35706         for 128-bit vectors.
35708 2020-01-10  Richard Sandiford  <richard.sandiford@arm.com>
35710         * config/aarch64/aarch64.c (aarch64_evpc_sel): Fix gen_vcond_mask
35711         invocation.
35713 2020-01-10  Richard Sandiford  <richard.sandiford@arm.com>
35715         * config/aarch64/aarch64-builtins.c
35716         (aarch64_builtin_vectorized_function): Check for specific vector modes,
35717         rather than checking the number of elements and the element mode.
35719 2020-01-10  Richard Sandiford  <richard.sandiford@arm.com>
35721         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
35722         get_related_vectype_for_scalar_type rather than build_vector_type
35723         to create the index type for a conditional reduction.
35725 2020-01-10  Richard Sandiford  <richard.sandiford@arm.com>
35727         * tree-vect-loop.c (update_epilogue_loop_vinfo): Update DR_REF
35728         for any type of gather or scatter, including strided accesses.
35730 2020-01-10  Andre Vieira  <andre.simoesdiasvieira@arm.com>
35732         * tree-vectorizer.h (get_dr_vinfo_offset): Add missing function
35733          comment.
35735 2020-01-10  Andre Vieira  <andre.simoesdiasvieira@arm.com>
35737         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Use
35738         get_dr_vinfo_offset
35739         * tree-vect-loop.c (update_epilogue_loop_vinfo):  Remove orig_drs_init
35740         parameter and its use to reset DR_OFFSET's.
35741         (vect_transform_loop): Remove orig_drs_init argument.
35742         * tree-vect-loop-manip.c (vect_update_init_of_dr): Update the offset
35743         member of dr_vec_info rather than the offset of the associated
35744         data_reference's innermost_loop_behavior.
35745         (vect_update_init_of_dr): Pass dr_vec_info instead of data_reference.
35746         (vect_do_peeling): Remove orig_drs_init parameter and its construction.
35747         * tree-vect-stmts.c (check_scan_store): Replace use of DR_OFFSET with
35748         get_dr_vinfo_offset.
35749         (vectorizable_store): Likewise.
35750         (vectorizable_load): Likewise.
35752 2020-01-10  Richard Biener  <rguenther@suse.de>
35754         * gimple-ssa-store-merging
35755         (pass_store_merging::terminate_all_aliasing_chains): Cache alias info.
35757 2020-01-10  Martin Liska  <mliska@suse.cz>
35759         PR ipa/93217
35760         * ipa-inline-analysis.c (offline_size): Make proper parenthesis
35761         encapsulation that was there before r280040.
35763 2020-01-10  Richard Biener  <rguenther@suse.de>
35765         PR middle-end/93199
35766         * tree-eh.c (sink_clobbers): Move clobbers to out-of-IL
35767         sequences to avoid walking them again for secondary opportunities.
35768         (pass_lower_eh_dispatch::execute): Instead actually insert
35769         them here.
35771 2020-01-10  Richard Biener  <rguenther@suse.de>
35773         PR middle-end/93199
35774         * tree-eh.c (redirect_eh_edge_1): Avoid some work if possible.
35775         (cleanup_all_empty_eh): Walk landing pads in reverse order to
35776         avoid quadraticness.
35778 2020-01-10  Martin Jambor  <mjambor@suse.cz>
35780         * params.opt (param_ipa_sra_max_replacements): Mark as Optimization.
35781         * ipa-sra.c (pull_accesses_from_callee): New parameter caller, use it
35782         to get param_ipa_sra_max_replacements.
35783         (param_splitting_across_edge): Pass the caller to
35784         pull_accesses_from_callee.
35786 2020-01-10  Martin Jambor  <mjambor@suse.cz>
35788         * params.opt (param_ipcp_unit_growth): Mark as Optimization.
35789         * ipa-cp.c (max_new_size): Removed.
35790         (orig_overall_size): New variable.
35791         (get_max_overall_size): New function.
35792         (estimate_local_effects): Use it.  Adjust dump.
35793         (decide_about_value): Likewise.
35794         (ipcp_propagate_stage): Do not calculate max_new_size, just store
35795         orig_overall_size.  Adjust dump.
35796         (ipa_cp_c_finalize): Clear orig_overall_size instead of max_new_size.
35798 2020-01-10  Martin Jambor  <mjambor@suse.cz>
35800         * params.opt (param_ipa_max_agg_items): Mark as Optimization
35801         * ipa-cp.c (merge_agg_lats_step): New parameter max_agg_items, use
35802         instead of param_ipa_max_agg_items.
35803         (merge_aggregate_lattices): Extract param_ipa_max_agg_items from
35804         optimization info for the callee.
35806 2020-01-09  Kwok Cheung Yeung  <kcy@codesourcery.com>
35808         * lto-streamer-in.c (input_function): Remove streamed-in inline debug
35809         markers if debug_inline_points is false.
35811 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
35813         * config.gcc (aarch64*-*-*): Add aarch64-sve-builtins-sve2.o to
35814         extra_objs.
35815         * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): Depend on
35816         aarch64-sve-builtins-base.def, aarch64-sve-builtins-sve2.def and
35817         aarch64-sve-builtins-sve2.h.
35818         (aarch64-sve-builtins-sve2.o): New rule.
35819         * config/aarch64/aarch64.h (AARCH64_ISA_SVE2_AES): New macro.
35820         (AARCH64_ISA_SVE2_BITPERM, AARCH64_ISA_SVE2_SHA3): Likewise.
35821         (AARCH64_ISA_SVE2_SM4, TARGET_SVE2_AES, TARGET_SVE2_BITPERM): Likewise.
35822         (TARGET_SVE2_SHA, TARGET_SVE2_SM4): Likewise.
35823         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Handle
35824         TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3 and
35825         TARGET_SVE2_SM4.
35826         * config/aarch64/aarch64-sve.md: Update comments with SVE2
35827         instructions that are handled here.
35828         (@cond_asrd<mode>): Generalize to...
35829         (@cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>): ...this.
35830         (*cond_asrd<mode>_2): Generalize to...
35831         (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_2): ...this.
35832         (*cond_asrd<mode>_z): Generalize to...
35833         (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_z): ...this.
35834         * config/aarch64/aarch64.md (UNSPEC_LDNT1_GATHER): New unspec.
35835         (UNSPEC_STNT1_SCATTER, UNSPEC_WHILEGE, UNSPEC_WHILEGT): Likewise.
35836         (UNSPEC_WHILEHI, UNSPEC_WHILEHS): Likewise.
35837         * config/aarch64/aarch64-sve2.md (@aarch64_gather_ldnt<mode>): New
35838         pattern.
35839         (@aarch64_gather_ldnt_<ANY_EXTEND:optab><SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
35840         (@aarch64_scatter_stnt<mode>): Likewise.
35841         (@aarch64_scatter_stnt_<SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
35842         (@aarch64_mul_lane_<mode>): Likewise.
35843         (@aarch64_sve_suqadd<mode>_const): Likewise.
35844         (*<sur>h<addsub><mode>): Generalize to...
35845         (@aarch64_pred_<SVE2_COND_INT_BINARY_REV:sve_int_op><mode>): ...this
35846         new pattern.
35847         (@cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>): New expander.
35848         (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_2): New pattern.
35849         (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_3): Likewise.
35850         (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_any): Likewise.
35851         (*cond_<SVE2_COND_INT_BINARY_NOREV:sve_int_op><mode>_z): Likewise.
35852         (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op><mode>):: Likewise.
35853         (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op>_lane_<mode>): Likewise.
35854         (@aarch64_pred_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): Likewise.
35855         (@cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): New expander.
35856         (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_2): New pattern.
35857         (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_3): Likewise.
35858         (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_any): Likewise.
35859         (@aarch64_sve_<SVE2_INT_TERNARY:sve_int_op><mode>): Likewise.
35860         (@aarch64_sve_<SVE2_INT_TERNARY_LANE:sve_int_op>_lane_<mode>)
35861         (@aarch64_sve_add_mul_lane_<mode>): Likewise.
35862         (@aarch64_sve_sub_mul_lane_<mode>): Likewise.
35863         (@aarch64_sve2_xar<mode>): Likewise.
35864         (@aarch64_sve2_bcax<mode>): Likewise.
35865         (*aarch64_sve2_eor3<mode>): Rename to...
35866         (@aarch64_sve2_eor3<mode>): ...this.
35867         (@aarch64_sve2_bsl<mode>): New expander.
35868         (@aarch64_sve2_nbsl<mode>): Likewise.
35869         (@aarch64_sve2_bsl1n<mode>): Likewise.
35870         (@aarch64_sve2_bsl2n<mode>): Likewise.
35871         (@aarch64_sve_add_<SHIFTRT:sve_int_op><mode>): Likewise.
35872         (*aarch64_sve2_sra<mode>): Add MOVPRFX support.
35873         (@aarch64_sve_add_<VRSHR_N:sve_int_op><mode>): New pattern.
35874         (@aarch64_sve_<SVE2_INT_SHIFT_INSERT:sve_int_op><mode>): Likewise.
35875         (@aarch64_sve2_<USMAX:su>aba<mode>): New expander.
35876         (*aarch64_sve2_<USMAX:su>aba<mode>): New pattern.
35877         (@aarch64_sve_<SVE2_INT_BINARY_WIDE:sve_int_op><mode>): Likewise.
35878         (<su>mull<bt><Vwide>): Generalize to...
35879         (@aarch64_sve_<SVE2_INT_BINARY_LONG:sve_int_op><mode>): ...this new
35880         pattern.
35881         (@aarch64_sve_<SVE2_INT_BINARY_LONG_lANE:sve_int_op>_lane_<mode>)
35882         (@aarch64_sve_<SVE2_INT_SHIFT_IMM_LONG:sve_int_op><mode>)
35883         (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG:sve_int_op><mode>)
35884         (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
35885         (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG:sve_int_op><mode>)
35886         (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
35887         (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG:sve_int_op><mode>)
35888         (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
35889         (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG:sve_int_op><mode>)
35890         (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
35891         (@aarch64_sve_<SVE2_FP_TERNARY_LONG:sve_fp_op><mode>): New patterns.
35892         (@aarch64_<SVE2_FP_TERNARY_LONG_LANE:sve_fp_op>_lane_<mode>)
35893         (@aarch64_sve_<SVE2_INT_UNARY_NARROWB:sve_int_op><mode>): Likewise.
35894         (@aarch64_sve_<SVE2_INT_UNARY_NARROWT:sve_int_op><mode>): Likewise.
35895         (@aarch64_sve_<SVE2_INT_BINARY_NARROWB:sve_int_op><mode>): Likewise.
35896         (@aarch64_sve_<SVE2_INT_BINARY_NARROWT:sve_int_op><mode>): Likewise.
35897         (<SHRNB:r>shrnb<mode>): Generalize to...
35898         (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWB:sve_int_op><mode>): ...this
35899         new pattern.
35900         (<SHRNT:r>shrnt<mode>): Generalize to...
35901         (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWT:sve_int_op><mode>): ...this
35902         new pattern.
35903         (@aarch64_pred_<SVE2_INT_BINARY_PAIR:sve_int_op><mode>): New pattern.
35904         (@aarch64_pred_<SVE2_FP_BINARY_PAIR:sve_fp_op><mode>): Likewise.
35905         (@cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>): New expander.
35906         (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_2): New pattern.
35907         (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_z): Likewise.
35908         (@aarch64_sve_<SVE2_INT_CADD:optab><mode>): Likewise.
35909         (@aarch64_sve_<SVE2_INT_CMLA:optab><mode>): Likewise.
35910         (@aarch64_<SVE2_INT_CMLA:optab>_lane_<mode>): Likewise.
35911         (@aarch64_sve_<SVE2_INT_CDOT:optab><mode>): Likewise.
35912         (@aarch64_<SVE2_INT_CDOT:optab>_lane_<mode>): Likewise.
35913         (@aarch64_pred_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): Likewise.
35914         (@cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New expander.
35915         (*cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New pattern.
35916         (@aarch64_sve2_cvtnt<mode>): Likewise.
35917         (@aarch64_pred_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): Likewise.
35918         (@cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): New expander.
35919         (*cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>_any): New pattern.
35920         (@aarch64_sve2_cvtxnt<mode>): Likewise.
35921         (@aarch64_pred_<SVE2_U32_UNARY:sve_int_op><mode>): Likewise.
35922         (@cond_<SVE2_U32_UNARY:sve_int_op><mode>): New expander.
35923         (*cond_<SVE2_U32_UNARY:sve_int_op><mode>): New pattern.
35924         (@aarch64_pred_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): Likewise.
35925         (@cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New expander.
35926         (*cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New pattern.
35927         (@aarch64_sve2_pmul<mode>): Likewise.
35928         (@aarch64_sve_<SVE2_PMULL:optab><mode>): Likewise.
35929         (@aarch64_sve_<SVE2_PMULL_PAIR:optab><mode>): Likewise.
35930         (@aarch64_sve2_tbl2<mode>): Likewise.
35931         (@aarch64_sve2_tbx<mode>): Likewise.
35932         (@aarch64_sve_<SVE2_INT_BITPERM:sve_int_op><mode>): Likewise.
35933         (@aarch64_sve2_histcnt<mode>): Likewise.
35934         (@aarch64_sve2_histseg<mode>): Likewise.
35935         (@aarch64_pred_<SVE2_MATCH:sve_int_op><mode>): Likewise.
35936         (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_cc): Likewise.
35937         (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_ptest): Likewise.
35938         (aarch64_sve2_aes<CRYPTO_AES:aes_op>): Likewise.
35939         (aarch64_sve2_aes<CRYPTO_AESMC:aesmc_op>): Likewise.
35940         (*aarch64_sve2_aese_fused, *aarch64_sve2_aesd_fused): Likewise.
35941         (aarch64_sve2_rax1, aarch64_sve2_sm4e, aarch64_sve2_sm4ekey): Likewise.
35942         (<su>mulh<r>s<mode>3): Update after above pattern name changes.
35943         * config/aarch64/iterators.md (VNx16QI_ONLY, VNx4SF_ONLY)
35944         (SVE_STRUCT2, SVE_FULL_BHI, SVE_FULL_HSI, SVE_FULL_HDI)
35945         (SVE2_PMULL_PAIR_I): New mode iterators.
35946         (UNSPEC_ADCLB, UNSPEC_ADCLT, UNSPEC_ADDHNB, UNSPEC_ADDHNT, UNSPEC_BDEP)
35947         (UNSPEC_BEXT, UNSPEC_BGRP, UNSPEC_CADD90, UNSPEC_CADD270, UNSPEC_CDOT)
35948         (UNSPEC_CDOT90, UNSPEC_CDOT180, UNSPEC_CDOT270, UNSPEC_CMLA)
35949         (UNSPEC_CMLA90, UNSPEC_CMLA180, UNSPEC_CMLA270, UNSPEC_COND_FCVTLT)
35950         (UNSPEC_COND_FCVTNT, UNSPEC_COND_FCVTX, UNSPEC_COND_FCVTXNT)
35951         (UNSPEC_COND_FLOGB, UNSPEC_EORBT, UNSPEC_EORTB, UNSPEC_FADDP)
35952         (UNSPEC_FMAXP, UNSPEC_FMAXNMP, UNSPEC_FMLALB, UNSPEC_FMLALT)
35953         (UNSPEC_FMLSLB, UNSPEC_FMLSLT, UNSPEC_FMINP, UNSPEC_FMINNMP)
35954         (UNSPEC_HISTCNT, UNSPEC_HISTSEG, UNSPEC_MATCH, UNSPEC_NMATCH)
35955         (UNSPEC_PMULLB, UNSPEC_PMULLB_PAIR, UNSPEC_PMULLT, UNSPEC_PMULLT_PAIR)
35956         (UNSPEC_RADDHNB, UNSPEC_RADDHNT, UNSPEC_RSUBHNB, UNSPEC_RSUBHNT)
35957         (UNSPEC_SLI, UNSPEC_SRI, UNSPEC_SABDLB, UNSPEC_SABDLT, UNSPEC_SADDLB)
35958         (UNSPEC_SADDLBT, UNSPEC_SADDLT, UNSPEC_SADDWB, UNSPEC_SADDWT)
35959         (UNSPEC_SBCLB, UNSPEC_SBCLT, UNSPEC_SMAXP, UNSPEC_SMINP)
35960         (UNSPEC_SQCADD90, UNSPEC_SQCADD270, UNSPEC_SQDMULLB, UNSPEC_SQDMULLBT)
35961         (UNSPEC_SQDMULLT, UNSPEC_SQRDCMLAH, UNSPEC_SQRDCMLAH90)
35962         (UNSPEC_SQRDCMLAH180, UNSPEC_SQRDCMLAH270, UNSPEC_SQRSHRNB)
35963         (UNSPEC_SQRSHRNT, UNSPEC_SQRSHRUNB, UNSPEC_SQRSHRUNT, UNSPEC_SQSHRNB)
35964         (UNSPEC_SQSHRNT, UNSPEC_SQSHRUNB, UNSPEC_SQSHRUNT, UNSPEC_SQXTNB)
35965         (UNSPEC_SQXTNT, UNSPEC_SQXTUNB, UNSPEC_SQXTUNT, UNSPEC_SSHLLB)
35966         (UNSPEC_SSHLLT, UNSPEC_SSUBLB, UNSPEC_SSUBLBT, UNSPEC_SSUBLT)
35967         (UNSPEC_SSUBLTB, UNSPEC_SSUBWB, UNSPEC_SSUBWT, UNSPEC_SUBHNB)
35968         (UNSPEC_SUBHNT, UNSPEC_TBL2, UNSPEC_UABDLB, UNSPEC_UABDLT)
35969         (UNSPEC_UADDLB, UNSPEC_UADDLT, UNSPEC_UADDWB, UNSPEC_UADDWT)
35970         (UNSPEC_UMAXP, UNSPEC_UMINP, UNSPEC_UQRSHRNB, UNSPEC_UQRSHRNT)
35971         (UNSPEC_UQSHRNB, UNSPEC_UQSHRNT, UNSPEC_UQXTNB, UNSPEC_UQXTNT)
35972         (UNSPEC_USHLLB, UNSPEC_USHLLT, UNSPEC_USUBLB, UNSPEC_USUBLT)
35973         (UNSPEC_USUBWB, UNSPEC_USUBWT): New unspecs.
35974         (UNSPEC_SMULLB, UNSPEC_SMULLT, UNSPEC_UMULLB, UNSPEC_UMULLT)
35975         (UNSPEC_SMULHS, UNSPEC_SMULHRS, UNSPEC_UMULHS, UNSPEC_UMULHRS)
35976         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SHRNB, UNSPEC_SHRNT): Move
35977         further down file.
35978         (VNARROW, Ventype): New mode attributes.
35979         (Vewtype): Handle VNx2DI.  Fix typo in comment.
35980         (VDOUBLE): New mode attribute.
35981         (sve_lane_con): Handle VNx8HI.
35982         (SVE_INT_UNARY): Include ss_abs and ss_neg for TARGET_SVE2.
35983         (SVE_INT_BINARY): Likewise ss_plus, us_plus, ss_minus and us_minus.
35984         (sve_int_op, sve_int_op_rev): Handle the above codes.
35985         (sve_pred_int_rhs2_operand): Likewise.
35986         (MULLBT, SHRNB, SHRNT): Delete.
35987         (SVE_INT_SHIFT_IMM): New int iterator.
35988         (SVE_WHILE): Add UNSPEC_WHILEGE, UNSPEC_WHILEGT, UNSPEC_WHILEHI
35989         and UNSPEC_WHILEHS for TARGET_SVE2.
35990         (SVE2_U32_UNARY, SVE2_INT_UNARY_NARROWB, SVE2_INT_UNARY_NARROWT)
35991         (SVE2_INT_BINARY, SVE2_INT_BINARY_LANE, SVE2_INT_BINARY_LONG)
35992         (SVE2_INT_BINARY_LONG_LANE, SVE2_INT_BINARY_NARROWB)
35993         (SVE2_INT_BINARY_NARROWT, SVE2_INT_BINARY_PAIR, SVE2_FP_BINARY_PAIR)
35994         (SVE2_INT_BINARY_PAIR_LONG, SVE2_INT_BINARY_WIDE): New int iterators.
35995         (SVE2_INT_SHIFT_IMM_LONG, SVE2_INT_SHIFT_IMM_NARROWB): Likewise.
35996         (SVE2_INT_SHIFT_IMM_NARROWT, SVE2_INT_SHIFT_INSERT, SVE2_INT_CADD)
35997         (SVE2_INT_BITPERM, SVE2_INT_TERNARY, SVE2_INT_TERNARY_LANE): Likewise.
35998         (SVE2_FP_TERNARY_LONG, SVE2_FP_TERNARY_LONG_LANE, SVE2_INT_CMLA)
35999         (SVE2_INT_CDOT, SVE2_INT_ADD_BINARY_LONG, SVE2_INT_QADD_BINARY_LONG)
36000         (SVE2_INT_SUB_BINARY_LONG, SVE2_INT_QSUB_BINARY_LONG): Likewise.
36001         (SVE2_INT_ADD_BINARY_LONG_LANE, SVE2_INT_QADD_BINARY_LONG_LANE)
36002         (SVE2_INT_SUB_BINARY_LONG_LANE, SVE2_INT_QSUB_BINARY_LONG_LANE)
36003         (SVE2_COND_INT_UNARY_FP, SVE2_COND_FP_UNARY_LONG): Likewise.
36004         (SVE2_COND_FP_UNARY_NARROWB, SVE2_COND_INT_BINARY): Likewise.
36005         (SVE2_COND_INT_BINARY_NOREV, SVE2_COND_INT_BINARY_REV): Likewise.
36006         (SVE2_COND_INT_SHIFT, SVE2_MATCH, SVE2_PMULL): Likewise.
36007         (optab): Handle the new unspecs.
36008         (su, r): Remove entries for UNSPEC_SHRNB, UNSPEC_SHRNT, UNSPEC_RSHRNB
36009         and UNSPEC_RSHRNT.
36010         (lr): Handle the new unspecs.
36011         (bt): Delete.
36012         (cmp_op, while_optab_cmp, sve_int_op): Handle the new unspecs.
36013         (sve_int_op_rev, sve_int_add_op, sve_int_qadd_op, sve_int_sub_op)
36014         (sve_int_qsub_op): New int attributes.
36015         (sve_fp_op, rot): Handle the new unspecs.
36016         * config/aarch64/aarch64-sve-builtins.h
36017         (function_resolver::require_matching_pointer_type): Declare.
36018         (function_resolver::resolve_unary): Add an optional boolean argument.
36019         (function_resolver::finish_opt_n_resolution): Add an optional
36020         type_suffix_index argument.
36021         (gimple_folder::redirect_call): Declare.
36022         (gimple_expander::prepare_gather_address_operands): Add an optional
36023         bool parameter.
36024         * config/aarch64/aarch64-sve-builtins.cc: Include
36025         aarch64-sve-builtins-sve2.h.
36026         (TYPES_b_unsigned, TYPES_b_integer, TYPES_bh_integer): New macros.
36027         (TYPES_bs_unsigned, TYPES_hs_signed, TYPES_hs_integer): Likewise.
36028         (TYPES_hd_unsigned, TYPES_hsd_signed): Likewise.
36029         (TYPES_hsd_integer): Use TYPES_hsd_signed.
36030         (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): New macros.
36031         (TYPES_s_unsigned): Likewise.
36032         (TYPES_s_integer): Use TYPES_s_unsigned.
36033         (TYPES_sd_signed, TYPES_sd_unsigned): New macros.
36034         (TYPES_sd_integer): Use them.
36035         (TYPES_d_unsigned): New macro.
36036         (TYPES_d_integer): Use it.
36037         (TYPES_d_data, TYPES_cvt_long, TYPES_cvt_narrow_s): New macros.
36038         (TYPES_cvt_narrow): Likewise.
36039         (DEF_SVE_TYPES_ARRAY): Include the new types macros above.
36040         (preds_mx): New variable.
36041         (function_builder::add_overloaded_function): Allow the new feature
36042         set to be more restrictive than the original one.
36043         (function_resolver::infer_pointer_type): Remove qualifiers from
36044         the pointer type before printing it.
36045         (function_resolver::require_matching_pointer_type): New function.
36046         (function_resolver::resolve_sv_displacement): Handle functions
36047         that don't support 32-bit vector indices or svint32_t vector offsets.
36048         (function_resolver::finish_opt_n_resolution): Take the inferred type
36049         as a separate argument.
36050         (function_resolver::resolve_unary): Optionally treat all forms in
36051         the same way as normal merging functions.
36052         (gimple_folder::redirect_call): New function.
36053         (function_expander::prepare_gather_address_operands): Add an argument
36054         that says whether scaled forms are available.  If they aren't,
36055         handle scaling of vector indices and don't add the extension and
36056         scaling operands.
36057         (function_expander::map_to_unspecs): If aarch64_sve isn't available,
36058         fall back to using cond_* instead.
36059         * config/aarch64/aarch64-sve-builtins-functions.h (rtx_code_function):
36060         Split out the member variables into...
36061         (rtx_code_function_base): ...this new base class.
36062         (rtx_code_function_rotated): Inherit rtx_code_function_base.
36063         (unspec_based_function): Split out the member variables into...
36064         (unspec_based_function_base): ...this new base class.
36065         (unspec_based_function_rotated): Inherit unspec_based_function_base.
36066         (unspec_based_function_exact_insn): New class.
36067         (unspec_based_add_function, unspec_based_add_lane_function)
36068         (unspec_based_lane_function, unspec_based_pred_function)
36069         (unspec_based_qadd_function, unspec_based_qadd_lane_function)
36070         (unspec_based_qsub_function, unspec_based_qsub_lane_function)
36071         (unspec_based_sub_function, unspec_based_sub_lane_function): New
36072         typedefs.
36073         (unspec_based_fused_function): New class.
36074         (unspec_based_mla_function, unspec_based_mls_function): New typedefs.
36075         (unspec_based_fused_lane_function): New class.
36076         (unspec_based_mla_lane_function, unspec_based_mls_lane_function): New
36077         typedefs.
36078         (CODE_FOR_MODE1): New macro.
36079         (fixed_insn_function): New class.
36080         (while_comparison): Likewise.
36081         * config/aarch64/aarch64-sve-builtins-shapes.h (binary_long_lane)
36082         (binary_long_opt_n, binary_narrowb_opt_n, binary_narrowt_opt_n)
36083         (binary_to_uint, binary_wide, binary_wide_opt_n, compare, compare_ptr)
36084         (load_ext_gather_index_restricted, load_ext_gather_offset_restricted)
36085         (load_gather_sv_restricted, shift_left_imm_long): Declare.
36086         (shift_left_imm_to_uint, shift_right_imm_narrowb): Likewise.
36087         (shift_right_imm_narrowt, shift_right_imm_narrowb_to_uint): Likewise.
36088         (shift_right_imm_narrowt_to_uint, store_scatter_index_restricted)
36089         (store_scatter_offset_restricted, tbl_tuple, ternary_long_lane)
36090         (ternary_long_opt_n, ternary_qq_lane_rotate, ternary_qq_rotate)
36091         (ternary_shift_left_imm, ternary_shift_right_imm, ternary_uint)
36092         (unary_convert_narrowt, unary_long, unary_narrowb, unary_narrowt)
36093         (unary_narrowb_to_uint, unary_narrowt_to_uint, unary_to_int): Likewise.
36094         * config/aarch64/aarch64-sve-builtins-shapes.cc (apply_predication):
36095         Also add an initial argument for unary_convert_narrowt, regardless
36096         of the predication type.
36097         (build_32_64): Allow loads and stores to specify MODE_none.
36098         (build_sv_index64, build_sv_uint_offset): New functions.
36099         (long_type_suffix): New function.
36100         (binary_imm_narrowb_base, binary_imm_narrowt_base): New classes.
36101         (binary_imm_long_base, load_gather_sv_base): Likewise.
36102         (shift_right_imm_narrow_wrapper, ternary_shift_imm_base): Likewise.
36103         (ternary_resize2_opt_n_base, ternary_resize2_lane_base): Likewise.
36104         (unary_narrowb_base, unary_narrowt_base): Likewise.
36105         (binary_long_lane_def, binary_long_lane): New shape.
36106         (binary_long_opt_n_def, binary_long_opt_n): Likewise.
36107         (binary_narrowb_opt_n_def, binary_narrowb_opt_n): Likewise.
36108         (binary_narrowt_opt_n_def, binary_narrowt_opt_n): Likewise.
36109         (binary_to_uint_def, binary_to_uint): Likewise.
36110         (binary_wide_def, binary_wide): Likewise.
36111         (binary_wide_opt_n_def, binary_wide_opt_n): Likewise.
36112         (compare_def, compare): Likewise.
36113         (compare_ptr_def, compare_ptr): Likewise.
36114         (load_ext_gather_index_restricted_def,
36115         load_ext_gather_index_restricted): Likewise.
36116         (load_ext_gather_offset_restricted_def,
36117         load_ext_gather_offset_restricted): Likewise.
36118         (load_gather_sv_def): Inherit from load_gather_sv_base.
36119         (load_gather_sv_restricted_def, load_gather_sv_restricted): New shape.
36120         (shift_left_imm_def, shift_left_imm): Likewise.
36121         (shift_left_imm_long_def, shift_left_imm_long): Likewise.
36122         (shift_left_imm_to_uint_def, shift_left_imm_to_uint): Likewise.
36123         (store_scatter_index_restricted_def,
36124         store_scatter_index_restricted): Likewise.
36125         (store_scatter_offset_restricted_def,
36126         store_scatter_offset_restricted): Likewise.
36127         (tbl_tuple_def, tbl_tuple): Likewise.
36128         (ternary_long_lane_def, ternary_long_lane): Likewise.
36129         (ternary_long_opt_n_def, ternary_long_opt_n): Likewise.
36130         (ternary_qq_lane_def): Inherit from ternary_resize2_lane_base.
36131         (ternary_qq_lane_rotate_def, ternary_qq_lane_rotate): New shape
36132         (ternary_qq_opt_n_def): Inherit from ternary_resize2_opt_n_base.
36133         (ternary_qq_rotate_def, ternary_qq_rotate): New shape.
36134         (ternary_shift_left_imm_def, ternary_shift_left_imm): Likewise.
36135         (ternary_shift_right_imm_def, ternary_shift_right_imm): Likewise.
36136         (ternary_uint_def, ternary_uint): Likewise.
36137         (unary_convert): Fix typo in comment.
36138         (unary_convert_narrowt_def, unary_convert_narrowt): New shape.
36139         (unary_long_def, unary_long): Likewise.
36140         (unary_narrowb_def, unary_narrowb): Likewise.
36141         (unary_narrowt_def, unary_narrowt): Likewise.
36142         (unary_narrowb_to_uint_def, unary_narrowb_to_uint): Likewise.
36143         (unary_narrowt_to_uint_def, unary_narrowt_to_uint): Likewise.
36144         (unary_to_int_def, unary_to_int): Likewise.
36145         * config/aarch64/aarch64-sve-builtins-base.cc (unspec_cmla)
36146         (unspec_fcmla, unspec_cond_fcmla, expand_mla_mls_lane): New functions.
36147         (svasrd_impl): Delete.
36148         (svcadd_impl::expand): Handle integer operations too.
36149         (svcmla_impl::expand, svcmla_lane::expand): Likewise, using the
36150         new functions to derive the unspec numbers.
36151         (svmla_svmls_lane_impl): Replace with...
36152         (svmla_lane_impl, svmls_lane_impl): ...these new classes.  Handle
36153         integer operations too.
36154         (svwhile_impl): Rename to...
36155         (svwhilelx_impl): ...this and inherit from while_comparison.
36156         (svasrd): Use unspec_based_function.
36157         (svmla_lane): Use svmla_lane_impl.
36158         (svmls_lane): Use svmls_lane_impl.
36159         (svrecpe, svrsqrte): Handle unsigned integer operations too.
36160         (svwhilele, svwhilelt): Use svwhilelx_impl.
36161         * config/aarch64/aarch64-sve-builtins-sve2.h: New file.
36162         * config/aarch64/aarch64-sve-builtins-sve2.cc: Likewise.
36163         * config/aarch64/aarch64-sve-builtins-sve2.def: Likewise.
36164         * config/aarch64/aarch64-sve-builtins.def: Include
36165         aarch64-sve-builtins-sve2.def.
36167 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
36169         * config/aarch64/aarch64-protos.h (aarch64_sve_arith_immediate_p)
36170         (aarch64_sve_sqadd_sqsub_immediate_p): Add a machine_mode argument.
36171         * config/aarch64/aarch64.c (aarch64_sve_arith_immediate_p)
36172         (aarch64_sve_sqadd_sqsub_immediate_p): Likewise.  Handle scalar
36173         immediates as well as vector ones.
36174         * config/aarch64/predicates.md (aarch64_sve_arith_immediate)
36175         (aarch64_sve_sub_arith_immediate, aarch64_sve_qadd_immediate)
36176         (aarch64_sve_qsub_immediate): Update calls accordingly.
36178 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
36180         * config/aarch64/aarch64-sve2.md: Add banner comments.
36181         (<su>mulh<r>s<mode>3): Move further up file.
36182         (<su>mull<bt><Vwide>, <r>shrnb<mode>, <r>shrnt<mode>)
36183         (*aarch64_sve2_sra<mode>): Move further down file.
36184         * config/aarch64/t-aarch64 (s-check-sve-md): Check aarch64-sve2.md too.
36186 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
36188         * config/aarch64/iterators.md (SVE_WHILE): Add UNSPEC_WHILERW
36189         and UNSPEC_WHILEWR.
36190         (while_optab_cmp): Handle them.
36191         * config/aarch64/aarch64-sve.md
36192         (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): Make public
36193         and add a "@" marker.
36194         * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): Use it
36195         instead of gen_aarch64_sve2_while_ptest.
36196         (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): Delete.
36198 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
36200         * config/aarch64/aarch64.md (UNSPEC_WHILE_LE): Rename to...
36201         (UNSPEC_WHILELE): ...this.
36202         (UNSPEC_WHILE_LO): Rename to...
36203         (UNSPEC_WHILELO): ...this.
36204         (UNSPEC_WHILE_LS): Rename to...
36205         (UNSPEC_WHILELS): ...this.
36206         (UNSPEC_WHILE_LT): Rename to...
36207         (UNSPEC_WHILELT): ...this.
36208         * config/aarch64/iterators.md (SVE_WHILE): Update accordingly.
36209         (cmp_op, while_optab_cmp): Likewise.
36210         * config/aarch64/aarch64.c (aarch64_sve_move_pred_via_while): Likewise.
36211         * config/aarch64/aarch64-sve-builtins-base.cc (svwhilele): Likewise.
36212         (svwhilelt): Likewise.
36214 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
36216         * config/aarch64/aarch64-sve-builtins-shapes.h (unary_count): Delete.
36217         (unary_to_uint): Define.
36218         * config/aarch64/aarch64-sve-builtins-shapes.cc (unary_count_def)
36219         (unary_count): Rename to...
36220         (unary_to_uint_def, unary_to_uint): ...this.
36221         * config/aarch64/aarch64-sve-builtins-base.def: Update accordingly.
36223 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
36225         * config/aarch64/aarch64-sve-builtins-functions.h
36226         (code_for_mode_function): New class.
36227         (CODE_FOR_MODE0, QUIET_CODE_FOR_MODE0): New macros.
36228         * config/aarch64/aarch64-sve-builtins-base.cc (svcompact_impl)
36229         (svext_impl, svmul_lane_impl, svsplice_impl, svtmad_impl): Delete.
36230         (svcompact, svext, svsplice): Use QUIET_CODE_FOR_MODE0.
36231         (svmul_lane, svtmad): Use CODE_FOR_MODE0.
36233 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
36235         * config/aarch64/iterators.md (addsub): New code attribute.
36236         * config/aarch64/aarch64-simd.md (aarch64_<su_optab><optab><mode>):
36237         Re-express as...
36238         (aarch64_<su_optab>q<addsub><mode>): ...this, making the same change
36239         in the asm string and attributes.  Fix indentation.
36240         * config/aarch64/aarch64-sve.md (@aarch64_<su_optab><optab><mode>):
36241         Re-express as...
36242         (@aarch64_sve_<optab><mode>): ...this.
36243         * config/aarch64/aarch64-sve-builtins.h
36244         (function_expander::expand_signed_unpred_op): Delete.
36245         * config/aarch64/aarch64-sve-builtins.cc
36246         (function_expander::expand_signed_unpred_op): Likewise.
36247         (function_expander::map_to_rtx_codes): If the optab isn't defined,
36248         try using code_for_aarch64_sve instead.
36249         * config/aarch64/aarch64-sve-builtins-base.cc (svqadd_impl): Delete.
36250         (svqsub_impl): Likewise.
36251         (svqadd, svqsub): Use rtx_code_function instead.
36253 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
36255         * config/aarch64/iterators.md (SRHSUB, URHSUB): Delete.
36256         (HADDSUB, sur, addsub): Remove them.
36258 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
36260         * tree-nrv.c (pass_return_slot::execute): Handle all internal
36261         functions the same way, rather than singling out those that
36262         aren't mapped directly to optabs.
36264 2020-01-09  Richard Sandiford  <richard.sandiford@arm.com>
36266         * target.def (compatible_vector_types_p): New target hook.
36267         * hooks.h (hook_bool_const_tree_const_tree_true): Declare.
36268         * hooks.c (hook_bool_const_tree_const_tree_true): New function.
36269         * doc/tm.texi.in (TARGET_COMPATIBLE_VECTOR_TYPES_P): New hook.
36270         * doc/tm.texi: Regenerate.
36271         * gimple-expr.c: Include target.h.
36272         (useless_type_conversion_p): Use targetm.compatible_vector_types_p.
36273         * config/aarch64/aarch64.c (aarch64_compatible_vector_types_p): New
36274         function.
36275         (TARGET_COMPATIBLE_VECTOR_TYPES_P): Define.
36276         * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
36277         Use the original predicate if it already has a suitable type.
36279 2020-01-09  Martin Jambor  <mjambor@suse.cz>
36281         * cgraph.h (cgraph_edge): Make remove, set_call_stmt, make_direct,
36282         resolve_speculation and redirect_call_stmt_to_callee static.  Change
36283         return type of set_call_stmt to cgraph_edge *.
36284         * auto-profile.c (afdo_indirect_call): Adjust call to
36285         redirect_call_stmt_to_callee.
36286         * cgraph.c (cgraph_edge::set_call_stmt): Make return cgraph-edge *,
36287         make the this pointer explicit, adjust self-recursive calls and the
36288         call top make_direct.  Return the resulting edge.
36289         (cgraph_edge::remove): Make this pointer explicit.
36290         (cgraph_edge::resolve_speculation): Likewise, adjust call to remove.
36291         (cgraph_edge::make_direct): Likewise, adjust call to
36292         resolve_speculation.
36293         (cgraph_edge::redirect_call_stmt_to_callee): Likewise, also adjust
36294         call to set_call_stmt.
36295         (cgraph_update_edges_for_call_stmt_node): Update call to
36296         set_call_stmt and remove.
36297         * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
36298         Renamed edge to master_edge.  Adjusted calls to set_call_stmt.
36299         (cgraph_node::create_edge_including_clones): Moved "first" definition
36300         of edge to the block where it was used.  Adjusted calls to
36301         set_call_stmt.
36302         (cgraph_node::remove_symbol_and_inline_clones): Adjust call to
36303         cgraph_edge::remove.
36304         * cgraphunit.c (walk_polymorphic_call_targets): Adjusted calls to
36305         make_direct and redirect_call_stmt_to_callee.
36306         * ipa-fnsummary.c (redirect_to_unreachable): Adjust calls to
36307         resolve_speculation and make_direct.
36308         * ipa-inline-transform.c (inline_transform): Adjust call to
36309         redirect_call_stmt_to_callee.
36310         (check_speculations_1):: Adjust call to resolve_speculation.
36311         * ipa-inline.c (resolve_noninline_speculation): Adjust call to
36312         resolve-speculation.
36313         (inline_small_functions): Adjust call to resolve_speculation.
36314         (ipa_inline): Likewise.
36315         * ipa-prop.c (ipa_make_edge_direct_to_target): Adjust call to
36316         make_direct.
36317         * ipa-visibility.c (function_and_variable_visibility): Make iteration
36318         safe with regards to edge removal, adjust calls to
36319         redirect_call_stmt_to_callee.
36320         * ipa.c (walk_polymorphic_call_targets): Adjust calls to make_direct
36321         and redirect_call_stmt_to_callee.
36322         * multiple_target.c (create_dispatcher_calls): Adjust call to
36323         redirect_call_stmt_to_callee
36324         (redirect_to_specific_clone): Likewise.
36325         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
36326         Adjust calls to cgraph_edge::remove.
36327         * tree-inline.c (copy_bb): Adjust call to set_call_stmt.
36328         (redirect_all_calls): Adjust call to redirect_call_stmt_to_callee.
36329         (expand_call_inline): Adjust call to cgraph_edge::remove.
36331 2020-01-09  Martin Liska  <mliska@suse.cz>
36333         * params.opt: Set Optimization for
36334         param_max_speculative_devirt_maydefs.
36336 2020-01-09  Martin Sebor  <msebor@redhat.com>
36338         PR middle-end/93200
36339         PR fortran/92956
36340         * builtins.c (compute_objsize): Avoid handling MEM_REFs of vector type.
36342 2020-01-09  Martin Liska  <mliska@suse.cz>
36344         * auto-profile.c (auto_profile): Use opt_for_fn
36345         for a parameter.
36346         * ipa-cp.c (ipcp_lattice::add_value): Likewise.
36347         (propagate_vals_across_arith_jfunc): Likewise.
36348         (hint_time_bonus): Likewise.
36349         (incorporate_penalties): Likewise.
36350         (good_cloning_opportunity_p): Likewise.
36351         (perform_estimation_of_a_value): Likewise.
36352         (estimate_local_effects): Likewise.
36353         (ipcp_propagate_stage): Likewise.
36354         * ipa-fnsummary.c (decompose_param_expr): Likewise.
36355         (set_switch_stmt_execution_predicate): Likewise.
36356         (analyze_function_body): Likewise.
36357         * ipa-inline-analysis.c (offline_size): Likewise.
36358         * ipa-inline.c (early_inliner): Likewise.
36359         * ipa-prop.c (ipa_analyze_node): Likewise.
36360         (ipcp_transform_function): Likewise.
36361         * ipa-sra.c (process_scan_results): Likewise.
36362         (ipa_sra_summarize_function): Likewise.
36363         * params.opt: Rename ipcp-unit-growth to
36364         ipa-cp-unit-growth.  Add Optimization for various
36365         IPA-related parameters.
36367 2020-01-09  Richard Biener  <rguenther@suse.de>
36369         PR middle-end/93054
36370         * gimplify.c (gimplify_expr): Deal with NOP definitions.
36372 2020-01-09  Richard Biener  <rguenther@suse.de>
36374         PR tree-optimization/93040
36375         * gimple-ssa-store-merging.c (find_bswap_or_nop): Raise search limit.
36377 2020-01-09  Georg-Johann Lay  <avr@gjlay.de>
36379         * common/config/avr/avr-common.c (avr_option_optimization_table)
36380         [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
36382 2020-01-09  Martin Liska  <mliska@suse.cz>
36384         * cgraphclones.c (symbol_table::materialize_all_clones):
36385         Use cgraph_node::dump_name.
36387 2020-01-09  Jakub Jelinek  <jakub@redhat.com>
36389         PR inline-asm/93202
36390         * config/riscv/riscv.c (riscv_print_operand_reloc): Use
36391         output_operand_lossage instead of gcc_unreachable.
36392         * doc/md.texi (riscv f constraint): Fix typo.
36394         PR target/93141
36395         * config/i386/i386.md (subv<mode>4): Use SWIDWI iterator instead of
36396         SWI.  Use <general_hilo_operand> instead of <general_operand>.  Use
36397         CONST_SCALAR_INT_P instead of CONST_INT_P.
36398         (*subv<mode>4_1): Rename to ...
36399         (subv<mode>4_1): ... this.
36400         (*subv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
36401         define_insn_and_split patterns.
36402         (*subv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
36403         patterns.
36405 2020-01-08  David Malcolm  <dmalcolm@redhat.com>
36407         * vec.c (class selftest::count_dtor): New class.
36408         (selftest::test_auto_delete_vec): New test.
36409         (selftest::vec_c_tests): Call it.
36410         * vec.h (class auto_delete_vec): New class template.
36411         (auto_delete_vec<T>::~auto_delete_vec): New dtor.
36413 2020-01-08  David Malcolm  <dmalcolm@redhat.com>
36415         * sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
36417 2020-01-08  Jim Wilson  <jimw@sifive.com>
36419         * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out
36420         use of TLS_MODEL_LOCAL_EXEC when not pic.
36422 2020-01-08  David Malcolm  <dmalcolm@redhat.com>
36424         * hash-map-tests.c (selftest::test_map_of_strings_to_int): Fix
36425         memory leak.
36427 2020-01-08  Jakub Jelinek  <jakub@redhat.com>
36429         PR target/93187
36430         * config/i386/i386.md (*stack_protect_set_2_<mode> peephole2,
36431         *stack_protect_set_3 peephole2): Also check that the second
36432         insns source is general_operand.
36434         PR target/93174
36435         * config/i386/i386.md (addcarry<mode>_0): Use nonimmediate_operand
36436         predicate for output operand instead of register_operand.
36437         (addcarry<mode>, addcarry<mode>_1): Likewise.  Add alternative with
36438         memory destination and non-memory operands[2].
36440 2020-01-08  Martin Liska  <mliska@suse.cz>
36442         * cgraph.c (cgraph_node::dump): Use ::dump_name or
36443         ::dump_asm_name instead of (::name or ::asm_name).
36444         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
36445         * cgraphunit.c (walk_polymorphic_call_targets): Likewise.
36446         (analyze_functions): Likewise.
36447         (expand_all_functions): Likewise.
36448         * ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
36449         (propagate_bits_across_jump_function): Likewise.
36450         (dump_profile_updates): Likewise.
36451         (ipcp_store_bits_results): Likewise.
36452         (ipcp_store_vr_results): Likewise.
36453         * ipa-devirt.c (dump_targets): Likewise.
36454         * ipa-fnsummary.c (analyze_function_body): Likewise.
36455         * ipa-hsa.c (check_warn_node_versionable): Likewise.
36456         (process_hsa_functions): Likewise.
36457         * ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
36458         (set_alias_uids): Likewise.
36459         * ipa-inline-transform.c (save_inline_function_body): Likewise.
36460         * ipa-inline.c (recursive_inlining): Likewise.
36461         (inline_to_all_callers_1): Likewise.
36462         (ipa_inline): Likewise.
36463         * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
36464         (ipa_propagate_frequency): Likewise.
36465         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
36466         (remove_described_reference): Likewise.
36467         * ipa-pure-const.c (worse_state): Likewise.
36468         (check_retval_uses): Likewise.
36469         (analyze_function): Likewise.
36470         (propagate_pure_const): Likewise.
36471         (propagate_nothrow): Likewise.
36472         (dump_malloc_lattice): Likewise.
36473         (propagate_malloc): Likewise.
36474         (pass_local_pure_const::execute): Likewise.
36475         * ipa-visibility.c (optimize_weakref): Likewise.
36476         (function_and_variable_visibility): Likewise.
36477         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
36478         (ipa_discover_variable_flags): Likewise.
36479         * lto-streamer-out.c (output_function): Likewise.
36480         (output_constructor): Likewise.
36481         * tree-inline.c (copy_bb): Likewise.
36482         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
36483         * varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
36485 2020-01-08  Richard Biener  <rguenther@suse.de>
36487         PR middle-end/93199
36488         * tree-eh.c (sink_clobbers): Update virtual operands for
36489         the first and last stmt only.  Add a dry-run capability.
36490         (pass_lower_eh_dispatch::execute): Perform clobber sinking
36491         after CFG manipulations and in RPO order to catch all
36492         secondary opportunities reliably.
36494 2020-01-08  Georg-Johann Lay  <avr@gjlay.de>
36496         PR target/93182
36497         * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
36499 2019-01-08  Richard Biener  <rguenther@suse.de>
36501         PR middle-end/93199
36502         * gimple-fold.c (rewrite_to_defined_overflow): Mark stmt modified.
36503         * tree-ssa-loop-im.c (move_computations_worker): Properly adjust
36504         virtual operand, also updating SSA use.
36505         * gimple-loop-interchange.cc (loop_cand::undo_simple_reduction):
36506         Update stmt after resetting virtual operand.
36507         (tree_loop_interchange::move_code_to_inner_loop): Likewise.
36508         * gimple-iterator.c (gsi_remove): When not removing the stmt
36509         permanently do not delink immediate uses or mark the stmt modified.
36511 2020-01-08  Martin Liska  <mliska@suse.cz>
36513         * ipa-fnsummary.c (dump_ipa_call_summary): Use symtab_node::dump_name.
36514         (ipa_call_context::estimate_size_and_time): Likewise.
36515         (inline_analyze_function): Likewise.
36517 2020-01-08  Martin Liska  <mliska@suse.cz>
36519         * cgraph.c (cgraph_node::dump): Use systematically
36520         dump_asm_name.
36522 2020-01-08  Georg-Johann Lay  <avr@gjlay.de>
36524         Add -nodevicespecs option for avr.
36526         PR target/93182
36527         * config/avr/avr.opt (-nodevicespecs): New driver option.
36528         * config/avr/driver-avr.c (avr_devicespecs_file): Only issue
36529         "-specs=device-specs/..." if that option is not set.
36530         * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
36532 2020-01-08  Georg-Johann Lay  <avr@gjlay.de>
36534         Implement 64-bit double functions for avr.
36536         PR target/92055
36537         * config.gcc (tm_defines) [target=avr]: Support --with-libf7,
36538         --with-double-comparison.
36539         * doc/install.texi: Document them.
36540         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
36541         <WITH_LIBF7_LIBGCC, WITH_LIBF7_MATH, WITH_LIBF7_MATH_SYMBOLS>
36542         <WITH_DOUBLE_COMPARISON>: New built-in defines.
36543         * doc/invoke.texi (AVR Built-in Macros): Document them.
36544         * config/avr/avr-protos.h (avr_float_lib_compare_returns_bool): New.
36545         * config/avr/avr.c (avr_float_lib_compare_returns_bool): New function.
36546         * config/avr/avr.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): New macro.
36548 2020-01-08  Richard Earnshaw  <rearnsha@arm.com>
36550         PR target/93188
36551         * config/arm/t-multilib (MULTILIB_MATCHES): Add rules to match
36552         armv7-a{+mp,+sec,+mp+sec} to appropriate armv7 multilib variants
36553         when only building rm-profile multilibs.
36555 2020-01-08  Feng Xue  <fxue@os.amperecomputing.com>
36557         PR ipa/93084
36558         * ipa-cp.c (self_recursively_generated_p): Find matched aggregate
36559         lattice for a value to check.
36560         (propagate_vals_across_arith_jfunc): Add an assertion to ensure
36561         finite propagation in self-recursive scc.
36563 2020-01-08  Luo Xiong Hu  <luoxhu@linux.ibm.com>
36565         * ipa-inline.c (caller_growth_limits): Restore the AND.
36567 2020-01-07  Andrew Stubbs  <ams@codesourcery.com>
36569         * config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator.
36570         (VEC_ALLREG_ALT): New iterator.
36571         (VEC_ALLREG_INT_MODE): New iterator.
36572         (VCMP_MODE): New iterator.
36573         (VCMP_MODE_INT): New iterator.
36574         (vec_cmpu<mode>di): Use VCMP_MODE_INT.
36575         (vec_cmp<u>v64qidi): New define_expand.
36576         (vec_cmp<mode>di_exec): Use VCMP_MODE.
36577         (vec_cmpu<mode>di_exec): New define_expand.
36578         (vec_cmp<u>v64qidi_exec): New define_expand.
36579         (vec_cmp<mode>di_dup): Use VCMP_MODE.
36580         (vec_cmp<mode>di_dup_exec): Use VCMP_MODE.
36581         (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>): Rename ...
36582         (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): ... to this.
36583         (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Rename ...
36584         (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): ... to this.
36585         (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Rename ...
36586         (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): ... to this.
36587         (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Rename ...
36588         (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): ... to
36589         this.
36590         * config/gcn/gcn.c (print_operand): Fix 8 and 16 bit suffixes.
36591         * config/gcn/gcn.md (expander): Add sign_extend and zero_extend.
36593 2020-01-07  Andrew Stubbs  <ams@codesourcery.com>
36595         * config/gcn/constraints.md (DA): Update description and match.
36596         (DB): Likewise.
36597         (Db): New constraint.
36598         * config/gcn/gcn-protos.h (gcn_inline_constant64_p): Add second
36599         parameter.
36600         * config/gcn/gcn.c (gcn_inline_constant64_p): Add 'mixed' parameter.
36601         Implement 'Db' mixed immediate type.
36602         * config/gcn/gcn-valu.md (addcv64si3<exec_vcc>): Rework constraints.
36603         (addcv64si3_dup<exec_vcc>): Delete.
36604         (subcv64si3<exec_vcc>): Rework constraints.
36605         (addv64di3): Rework constraints.
36606         (addv64di3_exec): Rework constraints.
36607         (subv64di3): Rework constraints.
36608         (addv64di3_dup): Delete.
36609         (addv64di3_dup_exec): Delete.
36610         (addv64di3_zext): Rework constraints.
36611         (addv64di3_zext_exec): Rework constraints.
36612         (addv64di3_zext_dup): Rework constraints.
36613         (addv64di3_zext_dup_exec): Rework constraints.
36614         (addv64di3_zext_dup2): Rework constraints.
36615         (addv64di3_zext_dup2_exec): Rework constraints.
36616         (addv64di3_sext_dup2): Rework constraints.
36617         (addv64di3_sext_dup2_exec): Rework constraints.
36619 2020-01-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
36621         * doc/sourcebuild.texi (arm_little_endian, arm_nothumb): Documented
36622         existing target checks.
36624 2020-01-07  Richard Biener  <rguenther@suse.de>
36626         * doc/install.texi: Bump minimal supported MPC version.
36628 2020-01-07  Richard Sandiford  <richard.sandiford@arm.com>
36630         * langhooks-def.h (lhd_simulate_enum_decl): Declare.
36631         (LANG_HOOKS_SIMULATE_ENUM_DECL): Use it.
36632         * langhooks.c: Include stor-layout.h.
36633         (lhd_simulate_enum_decl): New function.
36634         * config/aarch64/aarch64-sve-builtins.cc (init_builtins): Call
36635         handle_arm_sve_h for the LTO frontend.
36636         (register_vector_type): Cope with null returns from pushdecl.
36638 2020-01-07  Richard Sandiford  <richard.sandiford@arm.com>
36640         * config/aarch64/aarch64-protos.h (aarch64_sve::svbool_type_p)
36641         (aarch64_sve::nvectors_if_data_type): Replace with...
36642         (aarch64_sve::builtin_type_p): ...this.
36643         * config/aarch64/aarch64-sve-builtins.cc: Include attribs.h.
36644         (find_vector_type): Delete.
36645         (add_sve_type_attribute): New function.
36646         (lookup_sve_type_attribute): Likewise.
36647         (register_builtin_types): Add an "SVE type" attribute to each type.
36648         (register_tuple_type): Likewise.
36649         (svbool_type_p, nvectors_if_data_type): Delete.
36650         (mangle_builtin_type): Use lookup_sve_type_attribute.
36651         (builtin_type_p): Likewise.  Add an overload that returns the
36652         number of constituent vector and predicate registers.
36653         * config/aarch64/aarch64.c (aarch64_sve_argument_p): Delete.
36654         (aarch64_returns_value_in_sve_regs_p): Use aarch64_sve::builtin_type_p
36655         instead of aarch64_sve_argument_p.
36656         (aarch64_takes_arguments_in_sve_regs_p): Likewise.
36657         (aarch64_pass_by_reference): Likewise.
36658         (aarch64_function_value_1): Likewise.
36659         (aarch64_return_in_memory): Likewise.
36660         (aarch64_layout_arg): Likewise.
36662 2020-01-07  Jakub Jelinek  <jakub@redhat.com>
36664         PR tree-optimization/93156
36665         * tree-ssa-ccp.c (bit_value_binop): For x * x note that the second
36666         least significant bit is always clear.
36668         PR tree-optimization/93118
36669         * match.pd ((x >> c) << c -> x & (-1<<c)): Add nop_convert?.  Add new
36670         simplifier with two intermediate conversions.
36672 2020-01-07  Martin Liska  <mliska@suse.cz>
36674         * params.opt: Add Optimization for various parameters.
36676 2020-01-07  Martin Liska  <mliska@suse.cz>
36678         PR ipa/83411
36679         * doc/extend.texi: Explain cloning for target_clone
36680         attribute.
36682 2020-01-07  Martin Liska  <mliska@suse.cz>
36684         PR tree-optimization/92860
36685         * common.opt: Make in Optimization option
36686         as it is affected by -O0, which is an Optimization
36687         option.
36688         * tree-inline.c (tree_inlinable_function_p):
36689         Use opt_for_fn for warn_inline.
36690         (expand_call_inline): Likewise.
36692 2020-01-07  Martin Liska  <mliska@suse.cz>
36694         PR tree-optimization/92860
36695         * common.opt: Make flag_ree as optimization
36696         attribute. 
36698 2020-01-07  Martin Liska  <mliska@suse.cz>
36700         PR optimization/92860
36701         * params.opt: Mark param_min_crossjump_insns with Optimization
36702         keyword.
36704 2020-01-07  Luo Xiong Hu  <luoxhu@linux.ibm.com>
36706         * ipa-inline-analysis.c (estimate_growth): Fix typo.
36707         * ipa-inline.c (caller_growth_limits): Use OR instead of AND.
36709 2020-01-06  Michael Meissner  <meissner@linux.ibm.com>
36711         * config/rs6000/rs6000.c (hard_reg_and_mode_to_addr_mask): New
36712         helper function to return the valid addressing formats for a given
36713         hard register and mode.
36714         (rs6000_adjust_vec_address): Call hard_reg_and_mode_to_addr_mask.
36716         * config/rs6000/constraints.md (Q constraint): Update
36717         documentation.
36718         * doc/md.texi (RS/6000 constraints): Update 'Q' cosntraint
36719         documentation.
36721         * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
36722         Use 'Q' for doing vector extract from memory.
36723         (vsx_extract_v4sf_var): Use 'Q' for doing vector extract from
36724         memory.
36725         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Use 'Q' for
36726         doing vector extract from memory.
36727         (vsx_extract_<mode>_<VS_scalar>mode_var): Use 'Q' for doing vector
36728         extract from memory.
36730         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add support
36731         for the offset being 34-bits when -mcpu=future is used.
36733 2020-01-06  John David Anglin  <danglin@gcc.gnu.org>
36735         * config/pa/pa.md: Revert change to use ordered_comparison_operator
36736         instead of cmpib_comparison_operator in cmpib patterns.
36737         * config/pa/predicates.md (cmpib_comparison_operator): Revert removal
36738         of cmpib_comparison_operator.  Revise comment.
36740 2020-01-06  Richard Sandiford  <richard.sandiford@arm.com>
36742         * tree-vect-slp.c (vect_build_slp_tree_1): Require all shifts
36743         in an IFN_DIV_POW2 node to be equal.
36745 2020-01-06  Richard Sandiford  <richard.sandiford@arm.com>
36747         * tree-vect-stmts.c (vect_check_load_store_mask): Rename to...
36748         (vect_check_scalar_mask): ...this.
36749         (vectorizable_store, vectorizable_load): Update call accordingly.
36750         (vectorizable_call): Use vect_check_scalar_mask to check the mask
36751         argument in calls to conditional internal functions.
36753 2020-01-06  Andrew Stubbs  <ams@codesourcery.com>
36755         * config/gcn/gcn-valu.md (subv64di3): Use separate alternatives for
36756         '0' matching inputs.
36757         (subv64di3_exec): Likewise.
36759 2020-01-06  Bryan Stenson  <bryan@siliconvortex.com>
36761         * config/mips/mips.c (vr4130_align_insns): Fix typo.
36762         * doc/md.texi (movstr): Likewise.
36764 2020-01-06  Andrew Stubbs  <ams@codesourcery.com>
36766         * config/gcn/gcn-valu.md (vec_extract<mode><scalar_mode>): Add early
36767         clobber.
36769 2020-01-06  Richard Sandiford  <richard.sandiford@arm.com>
36771         * config/aarch64/t-aarch64 ($(srcdir)/config/aarch64/aarch64-tune.md):
36772         Depend on...
36773         (s-aarch64-tune-md): ...this new stamp file.  Pipe the new contents
36774         to a temporary file and use move-if-change to update the real
36775         file where necessary.
36777 2020-01-06  Richard Sandiford  <richard.sandiford@arm.com>
36779         * config/aarch64/aarch64-sve.md (@aarch64_sel_dup<mode>): Use Upl
36780         rather than Upa for CPY /M.
36782 2020-01-06  Andrew Stubbs  <ams@codesourcery.com>
36784         * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
36785         immediate.
36787 2020-01-06  Martin Liska  <mliska@suse.cz>
36789     PR tree-optimization/92860
36790     * params.opt: Mark param_max_combine_insns with Optimization
36791     keyword. 
36793 2020-01-05  Jakub Jelinek  <jakub@redhat.com>
36795         PR target/93141
36796         * config/i386/i386.md (SWIDWI): New mode iterator.
36797         (DWI, dwi): Add TImode variants.
36798         (addv<mode>4): Use SWIDWI iterator instead of SWI.  Use
36799         <general_hilo_operand> instead of <general_operand>.  Use
36800         CONST_SCALAR_INT_P instead of CONST_INT_P.
36801         (*addv<mode>4_1): Rename to ...
36802         (addv<mode>4_1): ... this.
36803         (QWI): New mode attribute.
36804         (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
36805         define_insn_and_split patterns.
36806         (*addv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
36807         patterns.
36808         (uaddv<mode>4): Use SWIDWI iterator instead of SWI.  Use
36809         <general_hilo_operand> instead of <general_operand>.
36810         (*addcarry<mode>_1): New define_insn.
36811         (*add<dwi>3_doubleword_cc_overflow_1): New define_insn_and_split.
36813 2020-01-03  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
36815         * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm):
36816         Use "call" instead of "set".
36818 2020-01-03  Martin Jambor  <mjambor@suse.cz>
36820         PR ipa/92917
36821         * ipa-cp.c (print_all_lattices): Skip functions without info.
36823 2020-01-03  Jakub Jelinek  <jakub@redhat.com>
36825         PR target/93089
36826         * config/i386/i386-options.c (ix86_simd_clone_adjust): If
36827         TARGET_PREFER_AVX128, use prefer-vector-width=256 for 'c' and 'd'
36828         simd clones.  If TARGET_PREFER_AVX256, use prefer-vector-width=512
36829         for 'e' simd clones.
36831         PR target/93089
36832         * config/i386/i386.opt (x_prefer_vector_width_type): Remove TargetSave
36833         entry.
36834         (mprefer-vector-width=): Add Save.
36835         * config/i386/i386-options.c (ix86_target_string): Add PVW argument, print
36836         -mprefer-vector-width= if non-zero.  Fix up -mfpmath= comment.
36837         (ix86_debug_options, ix86_function_specific_print): Adjust
36838         ix86_target_string callers.
36839         (ix86_valid_target_attribute_inner_p): Handle prefer-vector-width=.
36840         (ix86_valid_target_attribute_tree): Likewise.
36841         * config/i386/i386-options.h (ix86_target_string): Add PVW argument.
36842         * config/i386/i386-expand.c (ix86_expand_builtin): Adjust
36843         ix86_target_string caller.
36845         PR target/93110
36846         * config/i386/i386.md (abs<mode>2): Use expand_simple_binop instead of
36847         emitting ASHIFTRT, XOR and MINUS by hand.  Use gen_int_mode with QImode
36848         instead of gen_int_shift_amount + convert_modes.
36850         PR rtl-optimization/93088
36851         * loop-iv.c (find_single_def_src): Punt after looking through
36852         128 reg copies for regs with single definitions.  Move definitions
36853         to first uses.
36855 2020-01-02  Dennis Zhang  <dennis.zhang@arm.com>
36857         * config/arm/arm-c.c (arm_cpu_builtins): Define
36858         __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC,
36859         __ARM_FEATURE_BF16_SCALAR_ARITHMETIC, and
36860         __ARM_BF16_FORMAT_ALTERNATIVE when enabled.
36861         * config/arm/arm-cpus.in (armv8_6, i8mm, bf16): New features.
36862         * config/arm/arm-tables.opt: Regenerated.
36863         * config/arm/arm.c (arm_option_reconfigure_globals): Initialize
36864         arm_arch_i8mm and arm_arch_bf16 when enabled.
36865         * config/arm/arm.h (TARGET_I8MM): New macro.
36866         (TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
36867         * config/arm/t-aprofile: Add matching rules for -march=armv8.6-a.
36868         * config/arm/t-arm-elf (all_v8_archs): Add armv8.6-a.
36869         * config/arm/t-multilib: Add matching rules for -march=armv8.6-a.
36870         (v8_6_a_simd_variants): New.
36871         (v8_*_a_simd_variants): Add i8mm and bf16.
36872         * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options.
36874 2020-01-02  Jakub Jelinek  <jakub@redhat.com>
36876         PR ipa/93087
36877         * predict.c (compute_function_frequency): Don't call
36878         warn_function_cold on functions that already have cold attribute.
36880 2020-01-01  John David Anglin  <danglin@gcc.gnu.org>
36882         PR target/67834
36883         * config/pa/pa.c (pa_elf_select_rtx_section): New.  Put references to
36884         COMDAT group function labels in .data.rel.ro.local section.
36885         * config/pa/pa32-linux.h (TARGET_ASM_SELECT_RTX_SECTION): Define.
36887         PR target/93111
36888         * config/pa/pa.md (scc): Use ordered_comparison_operator instead of
36889         comparison_operator in B and S integer comparisons.  Likewise, use
36890         ordered_comparison_operator instead of cmpib_comparison_operator in
36891         cmpib patterns.
36892         * config/pa/predicates.md (cmpib_comparison_operator): Remove.
36894 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
36896         Update copyright years.
36898         * gcc.c (process_command): Update copyright notice dates.
36899         * gcov-dump.c (print_version): Ditto.
36900         * gcov.c (print_version): Ditto.
36901         * gcov-tool.c (print_version): Ditto.
36902         * gengtype.c (create_file): Ditto.
36903         * doc/cpp.texi: Bump @copying's copyright year.
36904         * doc/cppinternals.texi: Ditto.
36905         * doc/gcc.texi: Ditto.
36906         * doc/gccint.texi: Ditto.
36907         * doc/gcov.texi: Ditto.
36908         * doc/install.texi: Ditto.
36909         * doc/invoke.texi: Ditto.
36911 2020-01-01  Jan Hubicka  <hubicka@ucw.cz>
36913         * ipa.c (walk_polymorphic_call_targets): Fix updating of overall
36914         summary.
36916 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
36918         PR tree-optimization/93098
36919         * match.pd (popcount): For shift amounts, use integer_onep
36920         or wi::to_widest () == cst instead of tree_to_uhwi () == cst
36921         tests.  Make sure that precision is power of two larger than or equal
36922         to 16.  Ensure shift is never negative.  Use HOST_WIDE_INT_UC macro
36923         instead of ULL suffixed constants.  Formatting fixes.
36925 Copyright (C) 2020 Free Software Foundation, Inc.
36927 Copying and distribution of this file, with or without modification,
36928 are permitted in any medium without royalty provided the copyright
36929 notice and this notice are preserved.