1 2020-11-12 Nelson Chu <nelson.chu@sifive.com>
3 * configure: Regenerated.
4 * configure.ac: If ifunc was supported in the binutils for
5 linux toolchain, then set enable_gnu_indirect_function to yes.
7 2020-11-12 Joseph Myers <joseph@codesourcery.com>
9 * doc/cpp.texi (__has_attribute): Document when scopes are allowed
11 (__has_c_attribute): New.
13 2020-11-12 Jakub Jelinek <jakub@redhat.com>
15 * builtin-types.def (BT_FN_PTR_SIZE_SIZE_PTRMODE): New function type.
16 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): Move earlier.
17 (BUILT_IN_GOMP_ALLOC, BUILT_IN_GOMP_FREE): New builtins.
18 * gimplify.c (gimplify_scan_omp_clauses): Force allocator into a
19 decl if it is not NULL, INTEGER_CST or decl.
20 (gimplify_adjust_omp_clauses): Clear GOVD_EXPLICIT on explicit clauses
21 which are being removed. Remove allocate clauses for variables not seen
22 if they are private, firstprivate or linear too. Call
23 omp_notice_variable on the allocator otherwise.
24 (gimplify_omp_for): Handle iterator vars mentioned in allocate clauses
25 similarly to non-is_gimple_reg iterators.
26 * omp-low.c (struct omp_context): Add allocate_map field.
27 (delete_omp_context): Delete it.
28 (scan_sharing_clauses): Fill it from allocate clauses. Remove it
29 if mentioned also in shared clause.
30 (lower_private_allocate): New function.
31 (lower_rec_input_clauses): Handle allocate clause for privatized
32 variables, except for task/taskloop, C/C++ array reductions for now
33 and task/inscan variables.
34 (lower_send_shared_vars): Don't consider variables in allocate_map
36 * omp-expand.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
37 expand_omp_for_static_chunk): Use expand_omp_build_assign instead of
38 gimple_build_assign + gsi_insert_after.
39 * builtins.c (builtin_fnspec): Handle BUILTIN_GOMP_ALLOC and
41 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILTIN_GOMP_ALLOC.
42 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
44 (mark_all_reaching_defs_necessary_1): Handle BUILTIN_GOMP_ALLOC
45 and BUILTIN_GOMP_FREE.
46 (propagate_necessity): Likewise.
48 2020-11-12 Martin Jambor <mjambor@suse.cz>
50 * cgraphclones.c (cgraph_node::materialize_clone): Check that clone
51 info is not NULL before attempting to dump it.
53 2020-11-12 Martin Jambor <mjambor@suse.cz>
55 * ipa-cp.c (class ipcp_value_base): Change the type of
56 local_time_benefit and prop_time_benefit to sreal. Adjust the
57 constructor initializer.
58 (ipcp_lattice::print): Dump sreals.
59 (struct caller_statistics): Change the type of freq_sum to sreal.
60 (gather_caller_stats): Work with sreal freq_sum.
61 (incorporate_penalties): Work with sreal evaluation.
62 (good_cloning_opportunity_p): Adjusted for sreal sreal time_benefit
63 and freq_sum. Bail out if size_cost is INT_MAX.
64 (perform_estimation_of_a_value): Work with sreal time_benefit. Avoid
66 (estimate_local_effects): Pass sreal time benefit to
67 good_cloning_opportunity_p without capping it. Adjust dumping.
68 (safe_add): If there can be overflow, return INT_MAX.
69 (propagate_effects): Work with sreal times.
70 (get_info_about_necessary_edges): Work with sreal frequencies.
71 (decide_about_value): Likewise and with sreal time benefits.
73 2020-11-12 Marek Polacek <polacek@redhat.com>
75 * system.h (WARN_UNUSED_RESULT): Define for GCC >= 3.4.
76 * tree.h (maybe_wrap_with_location): Add WARN_UNUSED_RESULT.
78 2020-11-12 Jan Hubicka <jh@suse.cz>
80 * fold-const.c (operand_compare::operand_equal_p): Compare field
81 offsets in operand_equal_p and OEP_ADDRESS_OF.
82 (operand_compare::hash_operand): Update.
84 2020-11-12 Richard Biener <rguenther@suse.de>
86 * bitmap.c (bitmap_list_view): Restore head->current.
87 * tree-ssa-pre.c (pre_expr_DFS): Elide expr_visited bitmap.
88 Special-case value expression bitmaps with one element.
89 (bitmap_find_leader): Likewise.
90 (sorted_array_from_bitmap_set): Elide expr_visited bitmap.
92 2020-11-12 Jan Hubicka <jh@suse.cz>
94 * attr-fnspec.h: Update topleve comment.
95 (attr_fnspec::arg_direct_p): Accept 1...9.
96 (attr_fnspec::arg_maybe_written_p): Reject 1...9.
97 (attr_fnspec::arg_copied_to_arg_p): New member function.
98 * builtins.c (builtin_fnspec): Update fnspec of block copy.
99 * tree-ssa-alias.c (attr_fnspec::verify): Update.
101 2020-11-12 Richard Biener <rguenther@suse.de>
103 * tree-ssa-pre.c (bitmap_value_replace_in_set): Return
104 whether we have changed anything.
105 (do_pre_regular_insertion): Get topologically sorted array
106 of expressions from caller.
107 (do_pre_partial_partial_insertion): Likewise.
108 (insert): Compute topologically sorted arrays of expressions
109 here and locally iterate actual insertion. Iterate only
110 when AVAIL_OUT of an already visited block source changed.
112 2020-11-12 Alex Coplan <alex.coplan@arm.com>
115 * config/aarch64/aarch64-sve2.md (@aarch64_sve2_bcax<mode>):
116 Change to define_expand, add missing (trivially-predicated) not
117 rtx to fix wrong code bug.
118 (*aarch64_sve2_bcax<mode>): New.
120 2020-11-12 Richard Biener <rguenther@suse.de>
122 PR tree-optimization/97806
123 * tree-ssa-pre.c (pre_expr_DFS): New overload for visiting
124 values, visiting all leaders for a value. Use a bitmap
126 (sorted_array_from_bitmap_set): Walk over values and adjust.
128 2020-11-12 Andreas Krebbel <krebbel@linux.ibm.com>
131 * config/s390/vector.md: Support vector floating point modes in
134 2020-11-12 Andreas Krebbel <krebbel@linux.ibm.com>
136 * config/s390/vector.md: Rename tointvec to TOINTVEC.
137 * config/s390/vx-builtins.md: Likewise.
139 2020-11-12 Jason Merrill <jason@redhat.com>
142 * dwarf2out.c (gen_subprogram_die): It's a declaration
143 if DECL_INITIAL isn't set.
145 2020-11-12 David Malcolm <dmalcolm@redhat.com>
147 PR tree-optimization/97424
148 * doc/invoke.texi (Static Analyzer Options): Add
149 -Wno-analyzer-shift-count-negative and
150 -Wno-analyzer-shift-count-overflow.
151 (-Wno-analyzer-shift-count-negative): New.
152 (-Wno-analyzer-shift-count-overflow): New.
154 2020-11-11 Iain Sandoe <iain@sandoe.co.uk>
156 * config/darwin-protos.h (darwin_make_eh_symbol_indirect): New.
157 * config/darwin.c (darwin_make_eh_symbol_indirect): New. Use
158 Mach-O semantics for personality and ldsa indirections.
159 * config/darwin.h (TARGET_ASM_MAKE_EH_SYMBOL_INDIRECT): New.
160 * doc/tm.texi: Regenerate.
161 * doc/tm.texi.in: Add TARGET_ASM_MAKE_EH_SYMBOL_INDIRECT hook.
162 * dwarf2out.c (dwarf2out_do_cfi_startproc): If the target defines
163 a hook for indirecting personality and ldsa references, use that
164 otherwise default to ELF semantics.
165 * target.def (make_eh_symbol_indirect): New target hook.
167 2020-11-11 Patrick Palka <ppalka@redhat.com>
170 * common.opt (-fabi-version): Document =15.
171 * doc/invoke.texi (C++ Dialect Options): Likewise.
173 2020-11-11 Marek Polacek <polacek@redhat.com>
176 * tree.c (maybe_wrap_with_location): Don't add a location
177 wrapper around an artificial and ignored decl.
179 2020-11-11 Richard Biener <rguenther@suse.de>
181 PR tree-optimization/97623
182 * tree-ssa-pre.c (create_expression_by_pieces): Guard
184 (insert_into_preds_of_block): Likewise.
186 2020-11-11 Richard Biener <rguenther@suse.de>
188 * tree-ssa-pre.c (pre_expr_DFS): New function.
189 (sorted_array_from_bitmap_set): Use it to properly
190 topologically sort the expression set.
191 (clean): Verify we've cleaned everything we should.
193 2020-11-11 Richard Biener <rguenther@suse.de>
195 PR tree-optimization/97623
196 * params.opt (-param=max-pre-hoist-insert-iterations): Remove
198 * doc/invoke.texi (max-pre-hoist-insert-iterations): Likewise.
199 * tree-ssa-pre.c (insert): Move hoist insertion after PRE
200 insertion iteration and do not iterate it.
202 2020-11-11 Richard Sandiford <richard.sandiford@arm.com>
204 * config/aarch64/aarch64-sve.md (@vcond_mask_<mode><vpred>): Extend
205 from SVE_FULL to SVE_ALL.
206 (*vcond_mask_<mode><vpred>): Likewise.
207 (@aarch64_sel_dup<mode>): Likewise.
208 (vcond<SVE_FULL:mode><v_int_equiv>): Extend to...
209 (vcond<SVE_ALL:mode><SVE_I:mode>): ...this, but requiring the
210 sizes of the container modes to match.
211 (vcondu<SVE_FULL:mode><v_int_equiv>): Extend to...
212 (vcondu<SVE_ALL:mode><SVE_I:mode>): ...this.
213 (vec_cmp<SVE_FULL_I:mode><vpred>): Extend to...
214 (vec_cmp<SVE_I:mode><vpred>): ...this.
215 (vec_cmpu<SVE_FULL_I:mode><vpred>): Extend to...
216 (vec_cmpu<SVE_I:mode><vpred>): ...this.
217 (@aarch64_pred_cmp<cmp_op><SVE_FULL_I:mode>): Extend to...
218 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>): ...this.
219 (*cmp<cmp_op><SVE_FULL_I:mode>_cc): Extend to...
220 (*cmp<cmp_op><SVE_I:mode>_cc): ...this.
221 (*cmp<cmp_op><SVE_FULL_I:mode>_ptest): Extend to...
222 (*cmp<cmp_op><SVE_I:mode>_ptest): ...this.
223 (*cmp<cmp_op><SVE_FULL_I:mode>_and): Extend to...
224 (*cmp<cmp_op><SVE_I:mode>_and): ...this.
226 2020-11-11 Richard Sandiford <richard.sandiford@arm.com>
228 * optabs-tree.c (expand_vec_cond_expr_p): Allow the compared values
229 and the selected values to have different mode sizes.
230 * gimple-isel.cc (gimple_expand_vec_cond_expr): Likewise.
232 2020-11-11 Hongtao Liu <hongtao.liu@intel.com>
233 Hongyu Wang <hongyu.wang@intel.com>
235 * common/config/i386/cpuinfo.h (get_available_features):
237 * common/config/i386/i386-common.c
238 (OPTION_MASK_ISA2_AVXVNNI_SET,
239 OPTION_MASK_ISA2_AVXVNNI_UNSET): New.
240 (OPTION_MASK_ISA2_AVX2_UNSET): Add AVXVNNI.
241 (ix86_hanlde_option): Handle -mavxvnni, unset avxvnni when
243 * common/config/i386/i386-cpuinfo.h (enum processor_features):
245 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
247 * config.gcc: Add avxvnniintrin.h.
248 * config/i386/avx512vnnivlintrin.h: Reimplement 128/256 bit non-mask
249 intrinsics with macros to support unified interface.
250 * config/i386/avxvnniintrin.h: New header file.
251 * config/i386/cpuid.h (bit_AVXVNNI): New.
252 * config/i386/i386-builtins.c (def_builtin): Handle AVXVNNI mask
254 * config/i386/i386-builtin.def (BDESC): Adjust AVX512VNNI
255 builtins for AVXVNNI.
256 * config/i386/i386-c.c (ix86_target_macros_internal): Define
258 * config/i386/i386-expand.c (ix86_expand_builtin): Handle bisa
259 for AVXVNNI to support unified intrinsic name, since there is no
260 dependency between AVX512VNNI and AVXVNNI.
261 * config/i386/i386-options.c (isa2_opts): Add -mavxvnni.
262 (ix86_valid_target_attribute_inner_p): Handle avxnnni.
263 (ix86_option_override_internal): Ditto.
264 * config/i386/i386.h (TARGET_AVXVNNI, TARGET_AVXVNNI_P,
265 TARGET_AVXVNNI_P, PTA_AVXVNNI): New.
266 (PTA_SAPPHIRERAPIDS): Add AVX_VNNI.
267 (PTA_ALDERLAKE): Likewise.
268 * config/i386/i386.md ("isa"): Add avxvnni, avx512vnnivl.
269 ("enabled"): Adjust for avxvnni and avx512vnnivl.
270 * config/i386/i386.opt: Add option -mavxvnni.
271 * config/i386/immintrin.h: Include avxvnniintrin.h.
272 * config/i386/sse.md (vpdpbusd_<mode>): Adjust for AVXVNNI.
273 (vpdpbusds_<mode>): Likewise.
274 (vpdpwssd_<mode>): Likewise.
275 (vpdpwssds_<mode>): Likewise.
276 (vpdpbusd_v16si): New.
277 (vpdpbusds_v16si): Likewise.
278 (vpdpwssd_v16si): Likewise.
279 (vpdpwssds_v16si): Likewise.
280 * doc/invoke.texi: Document -mavxvnni.
281 * doc/extend.texi: Document avxvnni.
282 * doc/sourcebuild.texi: Document target avxvnni.
284 2020-11-11 Martin Liska <mliska@suse.cz>
286 * tree.c (copy_node): Fix spelling.
288 2020-11-11 Richard Biener <rguenther@suse.de>
290 * tree-ssa-pre.c (phi_translate_set): Do not sort the
291 expression set topologically.
293 2020-11-11 Aldy Hernandez <aldyh@redhat.com>
295 * value-range.cc (irange::set): Early exit on VR_VARYING.
297 2020-11-11 Zhiheng Xie <xiezhiheng@huawei.com>
298 Nannan Zheng <zhengnannan@huawei.com>
300 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
301 for arithmetic operation intrinsics.
303 2020-11-11 Strager Neds <strager.nds@gmail.com>
305 * cgraph.h (symtab_node::set_section_for_node): Declare new
307 (symtab_node::set_section_from_string): Rename from set_section.
308 (symtab_node::set_section_from_node): Declare.
309 * symtab.c (symtab_node::set_section_for_node): Define new
311 (symtab_node::set_section_from_string): Rename from set_section.
312 (symtab_node::set_section_from_node): Define.
313 (symtab_node::set_section): Call renamed set_section_from_string.
314 (symtab_node::set_section): Call new set_section_from_node.
316 2020-11-11 Strager Neds <strager.nds@gmail.com>
318 * symtab.c (symtab_node::set_section_for_node): Extract reference
319 counting logic into ...
320 (retain_section_hash_entry): ... here (new function) and ...
321 (release_section_hash_entry): ... here (new function).
323 2020-11-11 liuhongt <hongtao.liu@intel.com>
325 * config/i386/i386.h (PTA_MOVDIRI, PTA_MOVDIR64B,
326 PTA_AMX_TILE, PTA_AMX_INT8, PTA_AMX_BF16, PTA_HRESET):
329 2020-11-11 Ilya Leoshkevich <iii@linux.ibm.com>
331 * config/s390/s390.h (HAVE_TF): Use opaque value when
332 GENERATOR_FILE is defined.
334 2020-11-10 Strager Neds <strager.nds@gmail.com>
336 * cgraph.h (symtab_node::get_section): Constify.
337 (symtab_node::set_section): Declare new overload.
338 * symtab.c (symtab_node::set_section): Define new overload.
339 (symtab_node::copy_visibility_from): Use new overload of
340 symtab_node::set_section.
341 (symtab_node::resolve_alias): Same.
342 * tree.h (set_decl_section_name): Declare new overload.
343 * tree.c (set_decl_section_name): Define new overload.
344 * tree-emutls.c (get_emutls_init_templ_addr): Same.
345 * cgraphclones.c (cgraph_node::create_virtual_clone): Use new
346 overload of symtab_node::set_section.
347 (cgraph_node::create_version_clone_with_body): Same.
348 * trans-mem.c (ipa_tm_create_version): Same.
350 2020-11-10 Aldy Hernandez <aldyh@redhat.com>
352 * value-range.cc (irange::set): Early exit for poly ints.
354 2020-11-10 Tobias Burnus <tobias@codesourcery.com>
356 * gimplify.c (gimplify_scan_omp_clauses, gimplify_omp_loop): Use 'do'
357 instead of 'for' in error messages for Fortran.
358 * omp-low.c (check_omp_nesting_restrictions): Likewise
360 2020-11-10 Matthew Malcomson <matthew.malcomson@arm.com>
362 * opts.c (control_options_for_live_patching): Reform 'is incompatible
363 with' error messages to use a standard message with differing format
365 (finish_options): Likewise.
367 2020-11-10 Richard Biener <rguenther@suse.de>
369 PR tree-optimization/97769
370 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
373 2020-11-10 Richard Biener <rguenther@suse.de>
375 PR tree-optimization/97780
376 * tree-ssa-pre.c (fini_pre): Deal with added basic blocks
377 when freeing PHI_TRANS_TABLE.
379 2020-11-10 Zhiheng Xie <xiezhiheng@huawei.com>
380 Nannan Zheng <zhengnannan@huawei.com>
382 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
383 for tbl/tbx intrinsics.
385 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
387 * gimplify.c (is_or_contains_p): New static helper function.
388 (omp_target_reorder_clauses): New function.
389 (gimplify_scan_omp_clauses): Add use of omp_target_reorder_clauses to
390 reorder clause list according to OpenMP 5.0 rules. Add handling of
391 GOMP_MAP_ATTACH_DETACH for OpenMP cases.
392 * omp-low.c (is_omp_target): New static helper function.
393 (scan_sharing_clauses): Add scan phase handling of GOMP_MAP_ATTACH/DETACH
395 (lower_omp_target): Add lowering handling of GOMP_MAP_ATTACH/DETACH for
398 2020-11-10 Ilya Leoshkevich <iii@linux.ibm.com>
400 * config/s390/s390-modes.def (FPRX2): New mode.
401 * config/s390/s390-protos.h (s390_fma_allowed_p): New function.
402 * config/s390/s390.c (s390_fma_allowed_p): Likewise.
403 (s390_build_signbit_mask): Support 128-bit masks.
404 (print_operand): Support printing the second word of a TFmode
405 operand as vector register.
406 (constant_modes): Add FPRX2mode.
407 (s390_class_max_nregs): Return 1 for TFmode on z14+.
408 (s390_is_fpr128): New function.
409 (s390_is_vr128): Likewise.
410 (s390_can_change_mode_class): Use s390_is_fpr128 and
411 s390_is_vr128 in order to determine whether mode refers to a FPR
413 (s390_emit_compare): Force TFmode operands into registers on
415 * config/s390/s390.h (HAVE_TF): New macro.
416 (EXPAND_MOVTF): New macro.
417 (EXPAND_TF): Likewise.
418 * config/s390/s390.md (PFPO_OP_TYPE_FPRX2): PFPO_OP_TYPE_TF
421 (FP_ALL): Add FPRX2 for z14+, restrict TFmode to z13-.
423 (FP_ANYTF): New mode iterator.
424 (BFP): Add FPRX2 for z14+, restrict TFmode to z13-.
437 (HALF_TMODE): Likewise.
438 (tf_fpr): New mode_attr.
439 (type): New mode_attr.
440 (*cmp<mode>_ccz_0): Use type instead of mode with fsimp.
441 (*cmp<mode>_ccs_0_fastmath): Likewise.
442 (*cmptf_ccs): New pattern for wfcxb.
443 (*cmptf_ccsfps): New pattern for wfkxb.
444 (mov<mode>): Rename to mov<mode><tf_fpr>.
445 (signbit<mode>2): Rename to signbit<mode>2<tf_fpr>.
446 (isinf<mode>2): Renamed to isinf<mode>2<tf_fpr>.
447 (*TDC_insn_<mode>): Use type instead of mode with fsimp.
448 (fixuns_trunc<FP:mode><GPR:mode>2): Rename to
449 fixuns_trunc<FP:mode><GPR:mode>2<FP:tf_fpr>.
450 (fix_trunctf<mode>2): Rename to fix_trunctf<mode>2_fpr.
451 (floatdi<mode>2): Rename to floatdi<mode>2<tf_fpr>, use type
452 instead of mode with itof.
453 (floatsi<mode>2): Rename to floatsi<mode>2<tf_fpr>, use type
454 instead of mode with itof.
455 (*floatuns<GPR:mode><FP:mode>2): Use type instead of mode for
457 (floatuns<GPR:mode><FP:mode>2): Rename to
458 floatuns<GPR:mode><FP:mode>2<tf_fpr>.
459 (trunctf<mode>2): Rename to trunctf<mode>2_fpr, use type instead
461 (extend<DSF:mode><BFP:mode>2): Rename to
462 extend<DSF:mode><BFP:mode>2<BFP:tf_fpr>.
463 (<FPINT:fpint_name><BFP:mode>2): Rename to
464 <FPINT:fpint_name><BFP:mode>2<BFP:tf_fpr>, use type instead of
466 (rint<BFP:mode>2): Rename to rint<BFP:mode>2<BFP:tf_fpr>, use
467 type instead of mode with fsimp.
468 (<FPINT:fpint_name><DFP:mode>2): Use type instead of mode for
470 (rint<DFP:mode>2): Likewise.
471 (trunc<BFP:mode><DFP_ALL:mode>2): Rename to
472 trunc<BFP:mode><DFP_ALL:mode>2<BFP:tf_fpr>.
473 (trunc<DFP_ALL:mode><BFP:mode>2): Rename to
474 trunc<DFP_ALL:mode><BFP:mode>2<BFP:tf_fpr>.
475 (extend<BFP:mode><DFP_ALL:mode>2): Rename to
476 extend<BFP:mode><DFP_ALL:mode>2<BFP:tf_fpr>.
477 (extend<DFP_ALL:mode><BFP:mode>2): Rename to
478 extend<DFP_ALL:mode><BFP:mode>2<BFP:tf_fpr>.
479 (add<mode>3): Rename to add<mode>3<tf_fpr>, use type instead of
481 (*add<mode>3_cc): Use type instead of mode with fsimp.
482 (*add<mode>3_cconly): Likewise.
483 (sub<mode>3): Rename to sub<mode>3<tf_fpr>, use type instead of
485 (*sub<mode>3_cc): Use type instead of mode with fsimp.
486 (*sub<mode>3_cconly): Likewise.
487 (mul<mode>3): Rename to mul<mode>3<tf_fpr>, use type instead of
489 (fma<mode>4): Restrict using s390_fma_allowed_p.
490 (fms<mode>4): Restrict using s390_fma_allowed_p.
491 (div<mode>3): Rename to div<mode>3<tf_fpr>, use type instead of
493 (neg<mode>2): Rename to neg<mode>2<tf_fpr>.
494 (*neg<mode>2_cc): Use type instead of mode with fsimp.
495 (*neg<mode>2_cconly): Likewise.
496 (*neg<mode>2_nocc): Likewise.
497 (*neg<mode>2): Likeiwse.
498 (abs<mode>2): Rename to abs<mode>2<tf_fpr>, use type instead of
500 (*abs<mode>2_cc): Use type instead of mode with fsimp.
501 (*abs<mode>2_cconly): Likewise.
502 (*abs<mode>2_nocc): Likewise.
503 (*abs<mode>2): Likewise.
504 (*negabs<mode>2_cc): Likewise.
505 (*negabs<mode>2_cconly): Likewise.
506 (*negabs<mode>2_nocc): Likewise.
507 (*negabs<mode>2): Likewise.
508 (sqrt<mode>2): Rename to sqrt<mode>2<tf_fpr>, use type instead
510 (cbranch<mode>4): Use FP_ANYTF instead of FP.
511 (copysign<mode>3): Rename to copysign<mode>3<tf_fpr>, use type
512 instead of mode with fsimp.
513 * config/s390/s390.opt (flag_vx_long_double_fma): New
515 * config/s390/vector.md (V_HW): Add TF for z14+.
520 (tf_vr): New mode_attr.
522 (mov<mode>): Rename to mov<mode><tf_vr>.
523 (movetf): New dispatcher.
524 (*vec_tf_to_v1tf): Rename to *vec_tf_to_v1tf_fpr, restrict to
526 (*vec_tf_to_v1tf_vr): New pattern for z14+.
527 (*fprx2_to_tf): Likewise.
528 (*mov_tf_to_fprx2_0): Likewise.
529 (*mov_tf_to_fprx2_1): Likewise.
530 (add<mode>3): Rename to add<mode>3<tf_vr>.
531 (addtf3): New dispatcher.
532 (sub<mode>3): Rename to sub<mode>3<tf_vr>.
533 (subtf3): New dispatcher.
534 (mul<mode>3): Rename to mul<mode>3<tf_vr>.
535 (multf3): New dispatcher.
536 (div<mode>3): Rename to div<mode>3<tf_vr>.
537 (divtf3): New dispatcher.
538 (sqrt<mode>2): Rename to sqrt<mode>2<tf_vr>.
539 (sqrttf2): New dispatcher.
540 (fma<mode>4): Restrict using s390_fma_allowed_p.
541 (fms<mode>4): Likewise.
542 (neg_fma<mode>4): Likewise.
543 (neg_fms<mode>4): Likewise.
544 (neg<mode>2): Rename to neg<mode>2<tf_vr>.
545 (negtf2): New dispatcher.
546 (abs<mode>2): Rename to abs<mode>2<tf_vr>.
547 (abstf2): New dispatcher.
548 (float<mode>tf2_vr): New forwarder.
549 (float<mode>tf2): New dispatcher.
550 (floatuns<mode>tf2_vr): New forwarder.
551 (floatuns<mode>tf2): New dispatcher.
552 (fix_trunctf<mode>2_vr): New forwarder.
553 (fix_trunctf<mode>2): New dispatcher.
554 (fixuns_trunctf<mode>2_vr): New forwarder.
555 (fixuns_trunctf<mode>2): New dispatcher.
556 (<FPINT:fpint_name><VF_HW:mode>2<VF_HW:tf_vr>): New pattern.
557 (<FPINT:fpint_name>tf2): New forwarder.
558 (rint<mode>2<tf_vr>): New pattern.
559 (rinttf2): New forwarder.
560 (*trunctfdf2_vr): New pattern.
561 (trunctfdf2_vr): New forwarder.
562 (trunctfdf2): New dispatcher.
563 (trunctfsf2_vr): New forwarder.
564 (trunctfsf2): New dispatcher.
565 (extenddftf2_vr): New pattern.
566 (extenddftf2): New dispatcher.
567 (extendsftf2_vr): New forwarder.
568 (extendsftf2): New dispatcher.
569 (signbittf2_vr): New forwarder.
570 (signbittf2): New dispatchers.
571 (isinftf2_vr): New forwarder.
572 (isinftf2): New dispatcher.
573 * config/s390/vx-builtins.md (*vftci<mode>_cconly): Use VF_HW
574 instead of VECF_HW, add missing constraint, add vw support.
575 (vftci<mode>_intcconly): Use VF_HW instead of VECF_HW.
576 (*vftci<mode>): Rename to vftci<mode>, use VF_HW instead of
577 VECF_HW, and vw support.
578 (vftci<mode>_intcc): Use VF_HW instead of VECF_HW.
580 2020-11-10 Eric Botcazou <ebotcazou@adacore.com>
582 * range-op.cc (operator_logical_not::fold_range): Tidy up.
583 (operator_logical_not::op1_range): Call above method.
584 (operator_bitwise_not::fold_range): If the type is compatible
585 with boolean, call op_logical_not.fold_range.
586 (operator_bitwise_not::op1_range): If the type is compatible
587 with boolean, call op_logical_not.op1_range.
589 2020-11-10 Richard Biener <rguenther@suse.de>
591 * tree-ssa-pre.c (pre_expr_d::value_id): Add.
592 (constant_value_expressions): Turn into an array of pre_expr.
593 (get_or_alloc_expr_for_nary): New function.
594 (get_or_alloc_expr_for_reference): Likewise.
595 (add_to_value): For constant values only ever add a single
597 (get_expr_value_id): Return the new value_id member.
598 (vn_valnum_from_value_id): Split out and simplify constant
600 (get_or_alloc_expr_for_constant): Set the value_id member.
601 (phi_translate_1): Use get_or_alloc_expr_for_*.
602 (compute_avail): Likewise.
603 (bitmap_find_leader): Simplify constant value id handling.
605 2020-11-10 Alex Coplan <alex.coplan@arm.com>
607 * doc/md.texi (Modifiers): Fix grammar in description of
608 earlyclobber constraint modifier.
610 2020-11-10 Jakub Jelinek <jakub@redhat.com>
612 PR tree-optimization/97764
613 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): For
614 little-endian stores with negative pd.offset, subtract
615 BITS_PER_UNIT - amnt from size if amnt is non-zero.
617 2020-11-10 Richard Biener <rguenther@suse.de>
619 PR tree-optimization/97760
620 * tree-vect-loop.c (check_reduction_path): Reject
621 reduction paths we do not handle in epilogue generation.
623 2020-11-10 Aldy Hernandez <aldyh@redhat.com>
625 PR tree-optimization/97767
626 * value-range.cc (dump_bound_with_infinite_markers): Use
627 wi::min_value and wi::max_value.
628 (range_tests_strict_enum): New.
629 (range_tests): Call range_tests_strict_enum.
630 * value-range.h (irange::varying_p): Use wi::min_value
632 (irange::set_varying): Same.
633 (irange::normalize_min_max): Remove comment.
635 2020-11-10 Andrew MacLeod <amacleod@redhat.com>
637 PR tree-optimization/97567
638 * gimple-range-gori.cc: (gori_compute::logical_combine): False
639 OR operations should intersect the 2 results.
640 (gori_compute::compute_logical_operands_in_chain): If def chains
641 are outside the current basic block, don't follow them.
643 2020-11-09 Claudiu Zissulescu <claziss@synopsys.com>
645 * config/arc/arc.c (arc_split_move): Recognize vadd2 instructions.
646 * config/arc/arc.md (movdi_insn): Update pattern to use vadd2
648 (movdf_insn): Likewise.
649 (maddhisi4): New pattern.
650 (umaddhisi4): Likewise.
651 * config/arc/simdext.md (mov<mode>_int): Update pattern to use
653 (sdot_prodv4hi): New pattern.
654 (udot_prodv4hi): Likewise.
655 (arc_vec_<V_US>mac_hi_v4hi): Update/renamed to
656 arc_vec_<V_US>mac_v2hiv2si.
657 (arc_vec_<V_US>mac_v2hiv2si_zero): New pattern.
658 * config/arc/constraints.md (Ral): Accumulator register
661 2020-11-09 Aldy Hernandez <aldyh@redhat.com>
663 * function-tests.c (test_ranges): Call range_op_tests.
664 * range-op.cc (build_range3): Move to value-range.cc.
665 (range3_tests): Same.
666 (int_range_max_tests): Same.
667 (multi_precision_range_tests): Same.
669 (operator_tests): Split up...
670 (range_op_tests): Split up...
671 (range_op_cast_tests): ...here.
672 (range_op_lshift_tests): ...here.
673 (range_op_rshift_tests): ...here.
674 (range_op_bitwise_and_tests): ...here.
675 * selftest.h (range_op_tests): New.
676 * value-range.cc (build_range3): New.
677 (range_tests_irange3): New.
678 (range_tests_int_range_max): New.
679 (range_tests_legacy): New.
680 (range_tests_misc): New.
683 2020-11-09 Richard Biener <rguenther@suse.de>
685 PR tree-optimization/97761
686 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Remove
687 premature end of DFS walk.
689 2020-11-09 Aldy Hernandez <aldyh@redhat.com>
691 * value-range.cc (irange::swap_out_of_order_endpoints): Rewrite
692 into static function.
693 (irange::set): Cleanup redundant manipulations.
694 * value-range.h (irange::normalize_min_max): Modify object
695 in-place instead of modifying arguments.
697 2020-11-09 Andrea Corallo <andrea.corallo@arm.com>
699 * config/aarch64/aarch64-builtins.c
700 (aarch64_expand_fcmla_builtin): Do not alter force_reg returned
703 2020-11-09 Richard Biener <rguenther@suse.de>
705 PR tree-optimization/97753
706 * tree-vect-loop.c (vectorizable_induction): Fill vec_steps
707 when CSEing inside the group.
709 2020-11-09 Richard Biener <rguenther@suse.de>
711 PR tree-optimization/97746
712 * tree-vect-patterns.c (vect_determine_precisions): First walk PHIs.
714 2020-11-09 Richard Biener <rguenther@suse.de>
716 * tree-ssa-pre.c (get_representative_for): CSE VN_INFO calls.
717 (create_expression_by_pieces): Likewise.
718 (insert_into_preds_of_block): Likewsie.
719 (do_pre_regular_insertion): Likewsie.
720 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_insert):
722 (eliminate_dom_walker::eliminate_stmt): Likewise.
724 2020-11-09 Richard Biener <rguenther@suse.de>
726 PR tree-optimization/97765
727 * tree-ssa-pre.c (bb_bitmap_sets::phi_translate_table): Add.
728 (PHI_TRANS_TABLE): New macro.
729 (phi_translate_table): Remove.
730 (expr_pred_trans_d::pred): Remove.
731 (expr_pred_trans_d::hash): Simplify.
732 (expr_pred_trans_d::equal): Likewise.
733 (phi_trans_add): Adjust.
734 (phi_translate): Likewise. Remove hash-table expansion
735 detection and optimization.
736 (phi_translate_set): Allocate PHI_TRANS_TABLE here.
738 (fini_pre): Free PHI_TRANS_TABLE.
740 2020-11-09 Lili Cui <lili.cui@intel.com>
743 * config/i386/i386.h:
744 (PTA_BROADWELL): Delete PTA_PRFCHW.
745 (PTA_SILVERMONT): Add PTA_PRFCHW.
746 (PTA_KNL): Add PTA_PREFETCHWT1.
747 (PTA_TREMONT): Add PTA_MOVDIRI, PTA_MOVDIR64B, PTA_CLDEMOTE and PTA_WAITPKG.
748 * doc/invoke.texi: Delete PREFETCHW for broadwell, skylake, knl, knm,
749 skylake-avx512, cannonlake, icelake-client, icelake-server, cascadelake,
750 cooperlake, tigerlake and sapphirerapids.
751 Add PREFETCHW for silvermont, goldmont, goldmont-plus and tremont.
752 Add XSAVEC and XSAVES for goldmont, goldmont-plus and tremont.
753 Add MOVDIRI, MOVDIR64B, CLDEMOTE and WAITPKG for tremont.
754 Add KEYLOCKER and HREST for alderlake.
755 Add AMX-BF16, AMX-TILE, AMX-INT8 and UINTR for sapphirerapids.
756 Add KEYLOCKER for tigerlake.
758 2020-11-09 Kewen Lin <linkw@linux.ibm.com>
760 PR rtl-optimization/97705
761 * ira.c (ira): Refactor some regstat free/init/compute invocation
762 into lambda function regstat_recompute_for_max_regno, and call it
763 when max_regno increases as remove_scratches succeeds.
765 2020-11-08 David Edelsohn <dje.gcc@gmail.com>
767 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Change
768 DECL_IS_BUILTIN -> DECL_IS_UNDECLARED_BUILTIN.
770 2020-11-07 Martin Uecker <muecker@gwdg.de>
772 * doc/extend.texi: Document mixing labels and code.
773 * doc/invoke.texi: Likewise.
775 2020-11-06 Segher Boessenkool <segher@kernel.crashing.org>
777 * config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't abuse
779 (@tablejump<mode>_nospec): Ditto.
781 2020-11-06 Peter Bergner <bergner@linux.ibm.com>
783 * config/rs6000/rs6000.h (BIGGEST_ALIGNMENT): Revert previous commit
784 so as not to break the ABI.
785 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Set the ABI
786 mandated alignment for __vector_pair and __vector_quad types.
788 2020-11-06 Jeff Law <law@torsion.usersys.redhat.com>
791 * config/i386/i386.md (simple_return): Also check
792 for ms_hook_prologue function attribute.
793 * config/i386/i386.c (ix86_can_use_return_insn_p):
794 Also check for ms_hook_prologue function attribute.
795 * config/i386/i386-protos.h (ix86_function_ms_hook_prologue): Declare.
797 2020-11-06 Segher Boessenkool <segher@kernel.crashing.org>
800 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
801 TARGET_POWERPC64 instead of TARGET_64BIT.
803 2020-11-06 Joseph Myers <joseph@codesourcery.com>
805 * builtins.def (BUILT_IN_NANSD32, BUILT_IN_NANSD64)
806 (BUILT_IN_NANSD128): New built-in functions.
807 * fold-const-call.c (fold_const_call): Handle the new built-in
809 * doc/extend.texi (__builtin_nansd32, __builtin_nansd64)
810 (__builtin_nansd128): Document.
811 * doc/sourcebuild.texi (Effective-Target Keywords): Document
814 2020-11-06 Bin Cheng <bin.cheng@linux.alibaba.com>
816 * tree-ssa-uninit.c (find_var_cmp_const): New function.
817 (use_pred_not_overlap_with_undef_path_pred): Call above.
819 2020-11-06 Iain Sandoe <iain@sandoe.co.uk>
821 * config/darwin-c.c: Allow for Darwin20 to correspond to macOS 11.
822 * config/darwin-driver.c: Likewise.
824 2020-11-06 Richard Biener <rguenther@suse.de>
826 * tree-ssa-pre.c (expr_pred_trans_d): Modify so elements
827 are embedded rather than allocated. Remove hashval member,
828 make all members integers.
829 (phi_trans_add): Adjust accordingly.
830 (phi_translate): Likewise. Deal with re-allocation
833 2020-11-06 Andrew MacLeod <amacleod@redhat.com>
835 PR tree-optimization/97737
836 PR tree-optimization/97741
837 * gimple-range.cc: (gimple_ranger::range_of_stmt): Intersect newly
838 calculated ranges with the existing known global range.
840 2020-11-06 Darius Galis <darius.galis@cyberthorstudios.com>
842 * config/rx/rx.md (CTRLREG_PC): Add.
843 * config/rx/rx.c (CTRLREG_PC): Add
844 (rx_expand_builtin_mvtc): Add warning: PC register cannot
847 2020-11-06 Nathan Sidwell <nathan@acm.org>
849 * tree.h (DECL_IS_BUILTIN): Rename to ...
850 (DECL_IS_UNDECLARED_BUILTIN): ... here. No need to use SOURCE_LOCUS.
851 * calls.c (maybe_warn_alloc_args_overflow): Adjust for rename.
852 * cfgexpand.c (pass_expand::execute): Likewise.
853 * dwarf2out.c (base_type_die, is_naming_typedef_decl): Likewise.
854 * godump.c (go_decl, go_type_decl): Likewise.
855 * print-tree.c (print_decl_identifier): Likewise.
856 * tree-pretty-print.c (dump_generic_node): Likewise.
857 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Likewise.
858 * xcoffout.c (xcoff_assign_fundamental_type_number): Likewise.
860 2020-11-06 David Candler <david.candler@arm.com>
862 * config/aarch64/aarch64-builtins.c
863 (TYPES_SHIFT2IMM): Add define.
864 (TYPES_SHIFT2IMM_UUSS): Add define.
865 (TYPES_USHIFT2IMM): Add define.
866 * config/aarch64/aarch64-simd.md
867 (aarch64_<sur>q<r>shr<u>n2_n<mode>): Add new insn for upper saturating shift right.
868 * config/aarch64/aarch64-simd-builtins.def: Add intrinsics.
869 * config/aarch64/arm_neon.h:
870 (vqrshrn_high_n_s16): Expand using intrinsic rather than inline asm.
871 (vqrshrn_high_n_s32): Likewise.
872 (vqrshrn_high_n_s64): Likewise.
873 (vqrshrn_high_n_u16): Likewise.
874 (vqrshrn_high_n_u32): Likewise.
875 (vqrshrn_high_n_u64): Likewise.
876 (vqrshrun_high_n_s16): Likewise.
877 (vqrshrun_high_n_s32): Likewise.
878 (vqrshrun_high_n_s64): Likewise.
879 (vqshrn_high_n_s16): Likewise.
880 (vqshrn_high_n_s32): Likewise.
881 (vqshrn_high_n_s64): Likewise.
882 (vqshrn_high_n_u16): Likewise.
883 (vqshrn_high_n_u32): Likewise.
884 (vqshrn_high_n_u64): Likewise.
885 (vqshrun_high_n_s16): Likewise.
886 (vqshrun_high_n_s32): Likewise.
887 (vqshrun_high_n_s64): Likewise.
889 2020-11-06 Richard Sandiford <richard.sandiford@arm.com>
891 * config/aarch64/aarch64-modes.def (VNx2BF, VNx4BF): Adjust nunits
892 and alignment based on the current VG.
893 * config/aarch64/iterators.md (SVE_ALL, SVE_24, SVE_2, SVE_4): Add
894 partial SVE BF modes.
895 (UNSPEC_REVBHW): New unspec.
896 (Vetype, Vesize, Vctype, VEL, Vel, vwcore, V_INT_CONTAINER)
897 (v_int_container, VPRED, vpred): Handle partial SVE BF modes.
898 (container_bits, Vcwtype): New mode attributes.
899 * config/aarch64/aarch64-sve.md
900 (@aarch64_sve_revbhw_<SVE_ALL:mode><PRED_HSD:mode>): New pattern.
901 (@aarch64_sve_dup_lane<mode>): Extended from SVE_FULL to SVE_ALL.
902 (@aarch64_sve_rev<mode>, @aarch64_sve_<perm_insn><mode>): Likewise.
903 (@aarch64_sve_ext<mode>): Likewise.
904 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle
905 E_VNx2BFmode and E_VNx4BFmode.
906 (aarch64_evpc_rev_local): Base the analysis on the container size
907 instead of the element size. Use the new aarch64_sve_revbhw
909 (aarch64_evpc_dup): Handle partial SVE data modes. Use the
910 container size instead of the element size when applying the
911 SVE immediate limit. Fix a previously incorrect bounds check.
912 (aarch64_expand_vec_perm_const_1): Handle partial SVE data modes.
914 2020-11-06 Martin Liska <mliska@suse.cz>
916 * common.opt: Add new -fbit-tests option.
917 * doc/invoke.texi: Document the option.
918 * tree-switch-conversion.c (bit_test_cluster::find_bit_tests):
920 * tree-switch-conversion.h (is_enabled): New function.
922 2020-11-06 Richard Biener <rguenther@suse.de>
924 * tree-ssa-sccvn.h (get_max_constant_value_id): Declare.
925 (get_next_constant_value_id): Likewise.
926 (value_id_constant_p): Inline and simplify.
927 * tree-ssa-sccvn.c (constant_value_ids): Remove.
928 (next_constant_value_id): Add.
929 (get_or_alloc_constant_value_id): Adjust.
930 (value_id_constant_p): Remove definition.
931 (get_max_constant_value_id): Define.
932 (get_next_value_id): Add assert for overflow.
933 (get_next_constant_value_id): Define.
934 (run_rpo_vn): Adjust.
935 (free_rpo_vn): Likewise.
936 (do_rpo_vn): Initialize next_constant_value_id.
937 * tree-ssa-pre.c (constant_value_expressions): New.
938 (add_to_value): Split into constant/non-constant value
939 handling. Avoid exact re-allocation.
940 (vn_valnum_from_value_id): Adjust.
941 (phi_translate_1): Remove spurious exact re-allocation.
942 (bitmap_find_leader): Adjust. Make sure we return
943 a CONSTANT value for a constant value id.
944 (do_pre_regular_insertion): Use 2 auto-elements for avail.
945 (do_pre_partial_partial_insertion): Likewise.
946 (init_pre): Allocate constant_value_expressions.
947 (fini_pre): Release constant_value_expressions.
949 2020-11-06 Richard Biener <rguenther@suse.de>
951 PR tree-optimization/97706
952 * tree-vect-patterns.c (possible_vector_mask_operation_p):
953 PHIs are possible mask operations.
954 (vect_determine_mask_precision): Handle PHIs.
955 (vect_determine_precisions): Walk PHIs in BB analysis.
957 2020-11-06 Richard Biener <rguenther@suse.de>
959 * tree-vect-slp.c (vect_analyze_slp): Pass down the
960 SLP graph entry kind.
961 (vect_analyze_slp_instance): Simplify.
962 (vect_build_slp_instance): Adjust.
963 (vect_slp_check_for_constructors): Perform more
964 eligibility checks here.
966 2020-11-06 Jan Hubicka <jh@suse.cz>
968 * ipa-ref.h (enum ipa_ref_use): Remove GTY marker.
969 (struct ipa_ref): Remove GTY marker; reorder for better packing.
970 (struct ipa_ref_list): Remove GTY marker; turn references
971 nad referring to va_heap, vl_ptr vectors; update accesors.
972 * cgraph.h (symtab_node::iterate_reference): Update.
973 * ipa-ref.c (ipa_ref::remove_reference): Update.
974 * symtab.c (symtab_node::create_reference): Update.
975 (symtab_node::remove_all_references): Update.
976 (symtab_node::resolve_alias): Update.
978 2020-11-06 Jakub Jelinek <jakub@redhat.com>
980 * ipa-modref-tree.h: Fix comment typos.
981 * ipa-modref.c: Likewise.
983 2020-11-06 Andreas Krebbel <krebbel@linux.ibm.com>
985 * config/s390/s390.c (s390_option_override_internal): Remove
986 override of inline params.
988 2020-11-06 Richard Biener <rguenther@suse.de>
990 PR tree-optimization/97706
991 * tree-vect-patterns.c (vect_determine_mask_precision):
992 Remove worklist operation.
993 (vect_determine_stmt_precisions): Do not call
994 vect_determine_mask_precision here.
995 (vect_determine_precisions): Compute mask precision
998 2020-11-06 Richard Biener <rguenther@suse.de>
1000 PR tree-optimization/97732
1001 * tree-vect-loop.c (vectorizable_induction): Convert the
1002 init elements to the vector component type.
1003 * gimple-fold.c (gimple_build_vector): Use CONSTANT_CLASS_P
1004 rather than TREE_CONSTANT to determine if elements are
1005 eligible for VECTOR_CSTs.
1007 2020-11-06 Jan Hubicka <jh@suse.cz>
1009 * attr-fnspec.h (attr_fnspec::get_str): New accessor
1010 * ipa-fnsummary.c (read_ipa_call_summary): Store also parm info
1012 * ipa-modref.c (class fnspec_summary): New type.
1013 (class fnspec_summaries_t): New type.
1014 (modref_summary::modref_summary): Initialize writes_errno.
1015 (struct modref_summary_lto): Add writes_errno.
1016 (modref_summary_lto::modref_summary_lto): Initialize writes_errno.
1017 (modref_summary::dump): Check for NULL pointers.
1018 (modref_summary_lto::dump): Dump writes_errno.
1019 (collapse_loads): Move up in source file.
1020 (collapse_stores): New function.
1021 (process_fnspec): Handle also internal calls.
1022 (analyze_call): Likewise.
1023 (analyze_stmt): Store fnspec string if needed.
1024 (analyze_function): Initialize fnspec_sumarries.
1025 (modref_summaries_lto::duplicate): Copy writes_errno.
1026 (modref_write): Store writes_errno and fnspec summaries.
1027 (read_section): Read writes_errno and fnspec summaries.
1028 (modref_read): Initialize fnspec summaries.
1029 (update_signature): Fix formating.
1030 (compute_parm_map): Return true if sucessful.
1031 (get_parm_type): New function.
1032 (get_access_for_fnspec): New function.
1033 (propagate_unknown_call): New function.
1034 (modref_propagate_in_scc): Use it.
1035 (pass_ipa_modref::execute): Delete fnspec_summaries.
1036 (ipa_modref_c_finalize): Delete fnspec_summaries.
1037 * ipa-prop.c: Include attr-fnspec.h.
1038 (ipa_compute_jump_functions_for_bb): Also compute jump functions
1039 for functions with fnspecs.
1040 (ipa_read_edge_info): Read jump functions for builtins.
1042 2020-11-06 Jan Hubicka <jh@suse.cz>
1044 * ipa-fnsummary.h (class size_time_entry): Do not GTY annotate.
1045 (class ipa_fnsummary): Turn size_time_table to auto_vec and
1046 call_size_time_table to effecient vec; update constructors.
1047 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Update.
1048 (ipa_fn_summary::~ipa_fn_summary): Update.
1049 (ipa_fn_summary_t::duplicate): Update.
1050 (ipa_dump_fn_summary): Update.
1051 (set_switch_stmt_execution_predicate): Update.
1052 (analyze_function_body): Update.
1053 (estimate_calls_size_and_time): Update.
1054 (ipa_call_context::estimate_size_and_time): Update.
1055 (ipa_merge_fn_summary_after_inlining): Update.
1056 (ipa_update_overall_fn_summary): Update.
1057 (inline_read_section): Update.
1058 (ipa_fn_summary_write): Update.
1060 2020-11-06 Richard Biener <rguenther@suse.de>
1062 PR tree-optimization/97733
1063 * tree-vect-slp.c (vect_analyze_slp_instance): If less
1064 than two reductions were relevant or live do nothing.
1066 2020-11-06 Jeff Law <law@redhat.com>
1068 PR tree-optimization/97223
1069 * match.pd (overflow detection and optimization): Handle conversions.
1071 2020-11-06 Eugene Rozenfeld <erozen@microsoft.com>
1073 * match.pd (x >> x): New pattern.
1075 2020-11-06 Kito Cheng <kito.cheng@sifive.com>
1077 * common/config/riscv/riscv-common.c (riscv_implied_info):
1078 Add static and const.
1079 (riscv_subset_list::handle_implied_ext): Add const due to
1080 riscv_implied_info changed to const.
1082 2020-11-06 Kito Cheng <kito.cheng@sifive.com>
1085 * toplev.c (process_options): Remove param_asan_stack checking for kasan
1088 2020-11-05 Marek Polacek <polacek@redhat.com>
1091 * doc/invoke.texi: Document -Wexceptions.
1093 2020-11-05 Marek Polacek <polacek@redhat.com>
1096 * doc/invoke.texi: Document -Wvexing-parse.
1098 2020-11-05 Andrew MacLeod <amacleod@redhat.com>
1100 PR tree-optimization/97725
1101 * range-op.cc (operator_equal::fold_range): Use new tmp value.
1102 (operator_not_equal::fold_range): Ditto.
1103 * value-query.cc (range_query::value_of_expr): Use int_range_max
1105 (range_query::value_on_edge): Ditto.
1106 (range_query::value_of_stmt): Ditto.
1108 2020-11-05 Olivier Hainque <hainque@adacore.com>
1110 * config/aarch64/aarch64-vxworks.h (TARGET_OS_USES_R18):
1112 (STATIC_CHAIN_REGNUM): Redefine to 9.
1114 2020-11-05 Olivier Hainque <hainque@adacore.com>
1116 * config/aarch64/aarch64.md: Define PROBE_STACK_FIRST_REGNUM
1117 and PROBE_STACK_SECOND_REGNUM constants, designating r10/r11.
1118 Replacements for the PROBE_STACK_FIRST/SECOND_REG constants in
1120 * config/aarch64/aarch64.c (PROBE_STACK_FIRST_REG): Remove.
1121 (PROBE_STACK_SECOND_REG): Remove.
1122 (aarch64_emit_probe_stack_range): Adjust to the _REG -> _REGNUM
1123 suffix update for PROBE_STACK register numbers.
1125 2020-11-05 Jan Hubicka <jh@suse.cz>
1127 * gimple.c (gimple_call_fnspec): Handle C++ new and delete.
1128 * gimple.h (gimple_call_from_new_or_delete): Constify parameter.
1130 2020-11-05 Aldy Hernandez <aldyh@redhat.com>
1132 PR tree-optimization/97721
1133 * gimple-range.cc (get_tree_range): Drop overflow from constants.
1135 2020-11-05 David Malcolm <dmalcolm@redhat.com>
1137 * tree-diagnostic-path.cc (struct path_summary::event_range): Move
1138 out of path_summary to...
1139 (struct event_range): ...here.
1140 (class path_summary): Convert to...
1141 (struct path_summary): ...this.
1142 (path_summary::m_ranges): Drop "private".
1143 (path_summary::print): Convert to...
1144 (print_path_summary_as_text): ...this, passing in the path_summary
1146 (default_tree_diagnostic_path_printer): Update for above change.
1147 (selftest::test_empty_path): Likewise.
1148 (selftest::test_intraprocedural_path): Likewise.
1149 (selftest::test_interprocedural_path_1): Likewise.
1150 (selftest::test_interprocedural_path_2): Likewise.
1151 (selftest::test_recursion): Likewise.
1153 2020-11-05 qing zhao <qinzhao@gcc.gnu.org>
1156 * config/i386/i386.c (zero_all_st_registers): Return
1157 earlier when the FPU is disabled.
1159 2020-11-05 Jan Hubicka <jh@suse.cz>
1161 * ipa-modref.c (parm_map_for_arg): Initialize parm_offset and
1163 (read_section): Set writes_errno to false.
1165 2020-11-05 Richard Biener <rguenther@suse.de>
1167 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
1168 Use the original stmts.
1169 (vect_slp_analyze_node_alignment): Use the pattern stmt.
1170 * tree-vect-slp.c (vect_fixup_store_groups_with_patterns):
1172 (vect_slp_analyze_bb_1): Call it.
1174 2020-11-05 Tamar Christina <tamar.christina@arm.com>
1176 * tree-vect-slp.c (vect_slp_tree_permute_noop_p): New.
1177 (vect_optimize_slp): Optimize permutes.
1178 (vectorizable_slp_permutation): Fix typo.
1180 2020-11-05 Richard Biener <rguenther@suse.de>
1183 * dwarf2out.c (add_abstract_origin_attribute): Make sure to
1184 point to the abstract instance.
1186 2020-11-05 Tamar Christina <tamar.christina@arm.com>
1188 * tree-vect-loop.c (vect_analyze_loop_2): Check kind.
1189 * tree-vect-slp.c (vect_build_slp_instance): New.
1190 (enum slp_instance_kind): Move to...
1191 * tree-vectorizer.h (enum slp_instance_kind): .. Here
1192 (SLP_INSTANCE_KIND): New.
1194 2020-11-05 Kewen Lin <linkw@linux.ibm.com>
1197 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use direct move
1198 instructions for vector construction with char/short types.
1199 * config/rs6000/rs6000.md (p8_mtvsrwz_v16qisi2): New define_insn.
1200 (p8_mtvsrd_v16qidi2): Likewise.
1202 2020-11-04 Tamar Christina <tamar.christina@arm.com>
1204 * tree-vect-slp.c (vect_analyze_slp_instance): Moved load/store lanes
1206 * tree-vect-loop.c (vect_analyze_loop_2): ..Here
1208 2020-11-04 Ilya Leoshkevich <iii@linux.ibm.com>
1210 * config/s390/s390.c (NR_C_MODES): Unhardcode.
1211 (s390_alloc_pool): Use size_t for iterating from 0 to
1213 (s390_add_constant): Likewise.
1214 (s390_find_constant): Likewise.
1215 (s390_dump_pool): Likewise.
1216 (s390_free_pool): Likewise.
1218 2020-11-04 Ilya Leoshkevich <iii@linux.ibm.com>
1220 * config/s390/s390.md (RRe): Remove.
1223 2020-11-04 Andrew MacLeod <amacleod@redhat.com>
1225 PR tree-optimization/97515
1226 * gimple-range-cache.h (class ranger_cache): New prototypes plus
1227 temporal cache pointer.
1228 * gimple-range-cache.cc (struct range_timestamp): New.
1229 (class temporal_cache): New.
1230 (temporal_cache::temporal_cache): New.
1231 (temporal_cache::~temporal_cache): New.
1232 (temporal_cache::get_timestamp): New.
1233 (temporal_cache::set_dependency): New.
1234 (temporal_cache::temporal_value): New.
1235 (temporal_cache::current_p): New.
1236 (temporal_cache::set_timestamp): New.
1237 (temporal_cache::set_always_current): New.
1238 (ranger_cache::ranger_cache): Allocate the temporal cache.
1239 (ranger_cache::~ranger_cache): Free temporal cache.
1240 (ranger_cache::get_non_stale_global_range): New.
1241 (ranger_cache::set_global_range): Add a timestamp.
1242 (ranger_cache::register_dependency): New. Add timestamp dependency.
1243 * gimple-range.cc (gimple_ranger::range_of_range_op): Add operand
1245 (gimple_ranger::range_of_phi): Ditto.
1246 (gimple_ranger::range_of_stmt): Check if global range is stale, and
1249 2020-11-04 Tobias Burnus <tobias@codesourcery.com>
1251 * targhooks.c (default_zero_call_used_regs): Fix flag-name typo
1254 2020-11-04 Richard Biener <rguenther@suse.de>
1256 * tree-vectorizer.h (vectorizable_phi): Adjust prototype.
1257 * tree-vect-stmts.c (vect_transform_stmt): Adjust.
1258 (vect_analyze_stmt): Pass cost_vec to vectorizable_phi.
1259 * tree-vect-loop.c (vectorizable_phi): Do costing.
1261 2020-11-04 Richard Biener <rguenther@suse.de>
1263 PR tree-optimization/97709
1264 * tree-vect-loop.c (vectorizable_live_operation): Set
1265 SSA_NAME_OCCURS_IN_ABNORMAL_PHI when necessary.
1267 2020-11-04 Jakub Jelinek <jakub@redhat.com>
1269 PR tree-optimization/97690
1270 * tree-ssa-phiopt.c (conditional_replacement): Also optimize
1271 cond ? pow2p_cst : 0 as ((type) cond) << cst.
1273 2020-11-04 Richard Biener <rguenther@suse.de>
1275 * tree-vect-loop.c (vectorizable_induction): Re-instantiate
1276 previously removed CSE of SLP IVs.
1278 2020-11-04 Uroš Bizjak <ubizjak@gmail.com>
1280 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
1281 Fix Intel MCU psABI comment w.r.t DEFAULT_PCC_STRUCT_RETURN.
1283 2020-11-04 Richard Biener <rguenther@suse.de>
1286 * tree-vect-slp.c (vect_build_slp_tree_2): Revert previous
1287 fix and instead adjust the memset.
1289 2020-11-04 Pat Bernardi <bernardi@adacore.com>
1291 * config/i386/i386elf.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1292 (ASM_OUTPUT_ASCII): Likewise.
1293 (DEFAULT_PCC_STRUCT_RETURN): Define.
1294 * config/i386/i386.c (ix86_return_in_memory): Remove
1295 SUBTARGET_RETURN_IN_MEMORY.
1297 2020-11-04 liuhongt <hongtao.liu@intel.com>
1300 * ira.c: (ira_setup_alts): Extract memory from operand only
1301 for special memory constraint.
1302 * recog.c (asm_operand_ok): Ditto.
1303 * lra-constraints.c (process_alt_operands): MEM_P is
1304 required for normal memory constraint.
1306 2020-11-04 liuhongt <hongtao.liu@intel.com>
1309 * lra-constraints.c (valid_address_p): Handle operand of
1310 special memory constraint.
1311 (process_address_1): Ditto.
1313 2020-11-03 Jan Hubicka <hubicka@ucw.cz>
1316 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Fix ICE with
1318 (cgraph_node::remove): Save clone info before releasing it and pass it
1320 * cgraph.h (symtab_node::unregister): Add clone_info parameter.
1321 (cgraph_clone::unregister): Likewise.
1322 * cgraphclones.c (cgraph_node::find_replacement): Copy clone info
1323 * symtab-clones.cc (clone_infos_t::duplicate): Remove.
1324 (clone_info::get_create): Simplify.
1325 * symtab.c (symtab_node::unregister): Pass around clone info.
1326 * varpool.c (varpool_node::remove): Update.
1328 2020-11-03 Thomas Schwinge <thomas@codesourcery.com>
1330 * omp-low.c (scan_omp_for) <OpenACC>: Use proper location to
1331 'inform' of enclosing parent compute construct.
1333 2020-11-03 Jan Hubicka <hubicka@ucw.cz>
1336 * cgraphclones.c (duplicate_thunk_for_node): Check that info is
1339 2020-11-03 Uroš Bizjak <ubizjak@gmail.com>
1341 * config/i386/i386.c (ix86_function_arg_regno_p): Use up to
1342 SSE_REGPARM_MAX registers to pass function parameters
1343 for 32bit Mach-O targets.
1344 * config/i386/i386.h (X86_32_MMX_REGPARM_MAX): New macro.
1345 (MMX_REGPARM_MAX): Use it.
1347 2020-11-03 Dennis Zhang <dennis.zhang@arm.com>
1349 * config/aarch64/aarch64-simd-builtins.def (vget_lo_half): New entry.
1350 (vget_hi_half): Likewise.
1351 * config/aarch64/aarch64-simd.md (aarch64_vget_lo_halfv8bf): New entry.
1352 (aarch64_vget_hi_halfv8bf): Likewise.
1353 * config/aarch64/arm_neon.h (vget_low_bf16): New intrinsic.
1354 (vget_high_bf16): Likewise.
1356 2020-11-03 Yang Yang <yangyang305@huawei.com>
1358 * cgraph.h (struct cgraph_simd_clone): Change field "simdlen" of
1359 struct cgraph_simd_clone from unsigned int to poly_uint64.
1360 * config/aarch64/aarch64.c
1361 (aarch64_simd_clone_compute_vecsize_and_simdlen): adaptation of
1362 operations on "simdlen".
1363 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1364 Printf formats update.
1365 * gengtype.c (main): Handle poly_uint64.
1366 * omp-simd-clone.c (simd_clone_mangle): Likewise.Re
1367 (simd_clone_adjust_return_type): Likewise.
1368 (create_tmp_simd_array): Likewise.
1369 (simd_clone_adjust_argument_types): Likewise.
1370 (simd_clone_init_simd_arrays): Likewise.
1371 (ipa_simd_modify_function_body): Likewise.
1372 (simd_clone_adjust): Likewise.
1373 (expand_simd_clones): Likewise.
1374 * poly-int-types.h (vector_unroll_factor): New macro.
1375 * poly-int.h (constant_multiple_p): Add two-argument versions.
1376 * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
1378 2020-11-03 Richard Biener <rguenther@suse.de>
1380 PR tree-optimization/97623
1381 * params.opt (-param=max-pre-hoist-insert-iterations): New.
1382 * doc/invoke.texi (max-pre-hoist-insert-iterations): Document.
1383 * tree-ssa-pre.c (insert): Do at most max-pre-hoist-insert-iterations
1384 hoist insert iterations.
1386 2020-11-03 Richard Biener <rguenther@suse.de>
1389 * gimple-isel.cc (gimple_expand_vec_cond_expr): Use
1390 the correct types for the vcond_mask/vec_cmp optab queries.
1392 2020-11-03 Andrew MacLeod <amacleod@redhat.com>
1394 * gimple-range-cache.cc (ssa_global_cache::get_global_range): Return
1395 true if there was a previous range set.
1396 (ranger_cache::ranger_cache): Take a gimple_ranger parameter.
1397 (ranger_cache::set_global_range): Propagate the value if updating.
1398 (ranger_cache::propagate_cache): Renamed from iterative_cache_update.
1399 (ranger_cache::propagate_updated_value): New. Split from:
1400 (ranger_cache::fill_block_cache): Split out value propagator.
1401 * gimple-range-cache.h (ssa_global_cache): Update prototypes.
1402 (ranger_cache): Update prototypes.
1404 2020-11-03 Andrew MacLeod <amacleod@redhat.com>
1406 * gimple-range-cache.h (block_range_cache): Add new entry point.
1407 (ranger_cache): Privatize global abnd block cache members.
1408 * gimple-range-cache.cc (ssa_block_ranges::set_bb_range): Add bounds
1410 (ssa_block_ranges::set_bb_varying): Ditto.
1411 (ssa_block_ranges::get_bb_range): Ditto.
1412 (ssa_block_ranges::bb_range_p): Ditto.
1413 (block_range_cache::get_block_ranges): Fix formatting.
1414 (block_range_cache::query_block_ranges): New.
1415 (block_range_cache::get_bb_range): Use Query_block_ranges.
1416 (block_range_cache::bb_range_p): Ditto.
1417 (ranger_cache::dump): New.
1418 (ranger_cache::get_global_range): New.
1419 (ranger_cache::set_global_range): New.
1420 * gimple-range.cc (gimple_ranger::range_of_expr): Use new API.
1421 (gimple_ranger::range_of_stmt): Ditto.
1422 (gimple_ranger::export_global_ranges): Ditto.
1423 (gimple_ranger::dump): Ditto.
1425 2020-11-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1427 * fold-const.c (getbyterep): Remove duplicated statement.
1429 2020-11-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1432 * cfgexpand.c (align_local_variable): Make SSA_NAMEs
1433 at least MODE_ALIGNED.
1434 (expand_one_stack_var_at): Increase MEM_ALIGN for SSA_NAMEs.
1436 2020-11-03 Zhiheng Xie <xiezhiheng@huawei.com>
1437 Nannan Zheng <zhengnannan@huawei.com>
1439 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
1440 for AES/SHA/SM3/SM4 intrinsics.
1442 2020-11-03 Zhiheng Xie <xiezhiheng@huawei.com>
1443 Nannan Zheng <zhengnannan@huawei.com>
1445 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
1446 for compare intrinsics.
1448 2020-11-03 Richard Biener <rguenther@suse.de>
1450 * dwarf2out.c (maybe_create_die_with_external_ref): Remove
1453 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1455 * config/arm/arm_neon.h (vst2_lane_bf16, vst2q_lane_bf16)
1456 (vst3_lane_bf16, vst3q_lane_bf16, vst4_lane_bf16)
1457 (vst4q_lane_bf16): New intrinsics.
1458 * config/arm/arm_neon_builtins.def: Touch it for:
1459 __builtin_neon_vst2_lanev4bf, __builtin_neon_vst2_lanev8bf,
1460 __builtin_neon_vst3_lanev4bf, __builtin_neon_vst3_lanev8bf,
1461 __builtin_neon_vst4_lanev4bf,__builtin_neon_vst4_lanev8bf.
1463 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1465 * config/arm/arm_neon.h (vld2_lane_bf16, vld2q_lane_bf16)
1466 (vld3_lane_bf16, vld3q_lane_bf16, vld4_lane_bf16)
1467 (vld4q_lane_bf16): Add intrinsics.
1468 * config/arm/arm_neon_builtins.def: Touch for:
1469 __builtin_neon_vld2_lanev4bf, __builtin_neon_vld2_lanev8bf,
1470 __builtin_neon_vld3_lanev4bf, __builtin_neon_vld3_lanev8bf,
1471 __builtin_neon_vld4_lanev4bf, __builtin_neon_vld4_lanev8bf.
1472 * config/arm/iterators.md (VQ_HS): Add V8BF to the iterator.
1474 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1476 * config/arm/arm_neon.h (vst1_bf16, vst1q_bf16): Add intrinsics.
1477 * config/arm/arm_neon_builtins.def : Touch for:
1478 __builtin_neon_vst1v4bf, __builtin_neon_vst1v8bf.
1480 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1482 * config/arm/arm-builtins.c (VAR14): Define macro.
1483 * config/arm/arm_neon_builtins.def: Touch for:
1484 __builtin_neon_vld1v4bf, __builtin_neon_vld1v8bf.
1485 * config/arm/arm_neon.h (vld1_bf16, vld1q_bf16): Add intrinsics.
1487 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1489 * config/arm/arm_neon.h (vst1_lane_bf16, vst1q_lane_bf16): Add
1491 * config/arm/arm_neon_builtins.def (STORE1LANE): Add v4bf, v8bf.
1493 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1495 * config/arm/arm_neon_builtins.def: Add to LOAD1LANE v4bf, v8bf.
1496 * config/arm/arm_neon.h (vld1_lane_bf16, vld1q_lane_bf16): Add
1499 2020-11-03 Richard Biener <rguenther@suse.de>
1502 * tree-vect-slp.c (vect_build_slp_tree_2): Scale
1503 allocation of skip_args by sizeof (bool).
1505 2020-11-03 Richard Biener <rguenther@suse.de>
1507 PR tree-optimization/80928
1508 * tree-vect-loop.c (vectorizable_induction): SLP vectorize
1511 2020-11-03 Jan Hubicka <hubicka@ucw.cz>
1514 * ipa-inline-transform.c (maybe_materialize_called_clones): New
1516 (inline_transform): Use it.
1518 2020-11-03 Richard Biener <rguenther@suse.de>
1520 PR tree-optimization/97678
1521 * tree-vect-slp.c (vect_build_slp_tree_2): Do not track
1522 the initial values of inductions when not nested.
1523 * tree-vect-loop.c (vectorizable_induction): Look at
1524 PHI node initial values again for SLP and not nested
1525 inductions. Handle LOOP_VINFO_MASK_SKIP_NITERS and cost
1528 2020-11-03 Uroš Bizjak <ubizjak@gmail.com>
1530 * config/i386/sse.md (aes<aeswideklvariant>u8):
1531 Do not use xmm_regs array. Fix whitespace.
1533 2020-11-03 Uroš Bizjak <ubizjak@gmail.com>
1535 * config/i386/i386-expand.c (ix86_expand_builtin): Fix comment.
1537 2020-11-03 Thomas Schwinge <thomas@codesourcery.com>
1539 * omp-low.c (scan_omp_for) <OpenACC>: Move earlier inconsistent
1540 nested 'reduction' clauses checking.
1542 2020-11-03 Thomas Schwinge <thomas@codesourcery.com>
1544 * omp-low.c (scan_omp_for) <OpenACC>: More precise diagnostics for
1545 'gang', 'worker', 'vector' clauses with arguments only allowed in
1548 2020-11-03 Kewen Lin <linkw@gcc.gnu.org>
1550 PR tree-optimization/96789
1551 * function.h (struct function): New member unsigned pending_TODOs.
1552 * passes.c (class pass_pre_slp_scalar_cleanup): New class.
1553 (make_pass_pre_slp_scalar_cleanup): New function.
1554 (pass_data_pre_slp_scalar_cleanup): New pass data.
1555 * passes.def: (pass_pre_slp_scalar_cleanup): New pass, add
1556 pass_fre and pass_dse as its children.
1557 * timevar.def (TV_SCALAR_CLEANUP): New timevar.
1558 * tree-pass.h (PENDING_TODO_force_next_scalar_cleanup): New
1560 (make_pass_pre_slp_scalar_cleanup): New declare.
1561 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1):
1562 Once any outermost loop gets unrolled, flag cfun pending_TODOs
1563 PENDING_TODO_force_next_scalar_cleanup on.
1565 2020-11-02 Alan Modra <amodra@gmail.com>
1568 * calls.h (maybe_complain_about_tail_call): Declare.
1569 * calls.c (maybe_complain_about_tail_call): Make global.
1570 (can_implement_as_sibling_call_p): Delete reg_parm_stack_space
1571 param. Adjust caller. Move REG_PARM_STACK_SPACE check to..
1572 * config/i386/i386.c (ix86_function_ok_for_sibcall): ..here.
1574 2020-11-02 Vladimir N. Makarov <vmakarov@redhat.com>
1576 * ira.c (ira_remove_scratches): Rename to remove_scratches. Make
1577 it static and returning flag of any change.
1578 (ira.c): Call ira_expand_reg_equiv in case of removing scratches.
1580 2020-11-02 H.J. Lu <hjl.tools@gmail.com>
1583 * config/i386/i386-expand.c (ix86_expand_builtin): Require MMX
1584 for __builtin_ia32_maskmovq.
1586 2020-11-02 Martin Sebor <msebor@redhat.com>
1588 * doc/invoke.texi (-Wstringop-overflow): Correct default setting.
1589 (-Wstringop-overread): Move past -Wstringop-overflow.
1591 2020-11-02 François-Xavier Coudert <fxcoudert@gcc.gnu.org>
1594 * Makefile.in (gcc-vers.texi): Quote @, { and }.
1596 2020-11-02 Carl Love <cel@us.ibm.com>
1599 * config/rs6000/altivec.h (__builtin_bcdadd, __builtin_bcdadd_lt,
1600 __builtin_bcdadd_eq, __builtin_bcdadd_gt, __builtin_bcdadd_ofl,
1601 __builtin_bcdadd_ov, __builtin_bcdsub, __builtin_bcdsub_lt,
1602 __builtin_bcdsub_eq, __builtin_bcdsub_gt, __builtin_bcdsub_ofl,
1603 __builtin_bcdsub_ov, __builtin_bcdinvalid, __builtin_bcdmul10,
1604 __builtin_bcddiv10, __builtin_bcd2dfp, __builtin_bcdcmpeq,
1605 __builtin_bcdcmpgt, __builtin_bcdcmplt, __builtin_bcdcmpge,
1606 __builtin_bcdcmple): Add defines.
1607 * config/rs6000/altivec.md: Add UNSPEC_BCDSHIFT.
1608 (BCD_TEST): Add le, ge to code iterator.
1609 Add VBCD mode iterator.
1610 (bcd<bcd_add_sub>_test, *bcd<bcd_add_sub>_test2,
1611 bcd<bcd_add_sub>_<code>, bcd<bcd_add_sub>_<code>): Add mode to name.
1612 Change iterator from V1TI to VBCD.
1613 (*bcdinvalid_<mode>, bcdshift_v16qi): New define_insn.
1614 (bcdinvalid_<mode>, bcdmul10_v16qi, bcddiv10_v16qi): New define.
1615 * config/rs6000/dfp.md (dfp_denbcd_v16qi_inst): New define_insn.
1616 (dfp_denbcd_v16qi): New define_expand.
1617 * config/rs6000/rs6000-builtin.def (BU_P8V_MISC_1): New define.
1618 (BCDADD): Replaced with BCDADD_V1TI and BCDADD_V16QI.
1619 (BCDADD_LT): Replaced with BCDADD_LT_V1TI and BCDADD_LT_V16QI.
1620 (BCDADD_EQ): Replaced with BCDADD_EQ_V1TI and BCDADD_EQ_V16QI.
1621 (BCDADD_GT): Replaced with BCDADD_GT_V1TI and BCDADD_GT_V16QI.
1622 (BCDADD_OV): Replaced with BCDADD_OV_V1TI and BCDADD_OV_V16QI.
1623 (BCDSUB_V1TI, BCDSUB_V16QI, BCDSUB_LT_V1TI, BCDSUB_LT_V16QI,
1624 BCDSUB_LE_V1TI, BCDSUB_LE_V16QI, BCDSUB_EQ_V1TI, BCDSUB_EQ_V16QI,
1625 BCDSUB_GT_V1TI, BCDSUB_GT_V16QI, BCDSUB_GE_V1TI, BCDSUB_GE_V16QI,
1626 BCDSUB_OV_V1TI, BCDSUB_OV_V16QI, BCDINVALID_V1TI, BCDINVALID_V16QI,
1627 BCDMUL10_V16QI, BCDDIV10_V16QI, DENBCD_V16QI): New builtin definitions.
1628 (BCDADD, BCDADD_LT, BCDADD_EQ, BCDADD_GT, BCDADD_OV, BCDSUB, BCDSUB_LT,
1629 BCDSUB_LE, BCDSUB_EQ, BCDSUB_GT, BCDSUB_GE, BCDSUB_OV, BCDINVALID,
1630 BCDMUL10, BCDDIV10, DENBCD): New overload definitions.
1631 * config/rs6000/rs6000-call.c (P8V_BUILTIN_VEC_BCDADD, P8V_BUILTIN_VEC_BCDADD_LT,
1632 P8V_BUILTIN_VEC_BCDADD_EQ, P8V_BUILTIN_VEC_BCDADD_GT, P8V_BUILTIN_VEC_BCDADD_OV,
1633 P8V_BUILTIN_VEC_BCDINVALID, P9V_BUILTIN_VEC_BCDMUL10, P8V_BUILTIN_VEC_DENBCD.
1634 P8V_BUILTIN_VEC_BCDSUB, P8V_BUILTIN_VEC_BCDSUB_LT, P8V_BUILTIN_VEC_BCDSUB_LE,
1635 P8V_BUILTIN_VEC_BCDSUB_EQ, P8V_BUILTIN_VEC_BCDSUB_GT, P8V_BUILTIN_VEC_BCDSUB_GE,
1636 P8V_BUILTIN_VEC_BCDSUB_OV): New overloaded specifications.
1637 (CODE_FOR_bcdadd): Replaced with CODE_FOR_bcdadd_v16qi and CODE_FOR_bcdadd_v1ti.
1638 (CODE_FOR_bcdadd_lt): Replaced with CODE_FOR_bcdadd_lt_v16qi and CODE_FOR_bcdadd_lt_v1ti.
1639 (CODE_FOR_bcdadd_eq): Replaced with CODE_FOR_bcdadd_eq_v16qi and CODE_FOR_bcdadd_eq_v1ti.
1640 (CODE_FOR_bcdadd_gt): Replaced with CODE_FOR_bcdadd_gt_v16qi and CODE_FOR_bcdadd_gt_v1ti.
1641 (CODE_FOR_bcdsub): Replaced with CODE_FOR_bcdsub_v16qi and CODE_FOR_bcdsub_v1ti.
1642 (CODE_FOR_bcdsub_lt): Replaced with CODE_FOR_bcdsub_lt_v16qi and CODE_FOR_bcdsub_lt_v1ti.
1643 (CODE_FOR_bcdsub_eq): Replaced with CODE_FOR_bcdsub_eq_v16qi and CODE_FOR_bcdsub_eq_v1ti.
1644 (CODE_FOR_bcdsub_gt): Replaced with CODE_FOR_bcdsub_gt_v16qi and CODE_FOR_bcdsub_gt_v1ti.
1645 (rs6000_expand_ternop_builtin): Add CODE_FOR_dfp_denbcd_v16qi to else if.
1646 * doc/extend.texi: Add documentation for new builtins.
1648 2020-11-02 Nathan Sidwell <nathan@acm.org>
1650 * tree.c (cache_integer_cst): Fixup pointer caching to match
1651 wide_int_to_type_1's expectations. Add comment.
1653 2020-11-02 Nathan Sidwell <nathan@acm.org>
1655 * tree.h (id_equal): Call the symetric predicate with swapped
1658 2020-11-02 Nathan Sidwell <nathan@acm.org>
1660 * print-tree.c (print_node): Display all the operands of a call
1663 2020-11-02 Vladimir N. Makarov <vmakarov@redhat.com>
1665 * config/rs6000/vsx.md (*vsx_extract_<mode>_store_p9): Add hint *
1666 to 2nd alternative of the 1st scratch.
1668 2020-11-02 Sudakshina Das <sudi.das@arm.com>
1671 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Update
1672 return value on INSN_P check.
1674 2020-11-02 Richard Biener <rguenther@suse.de>
1676 * tree.h (build_real_from_wide): Declare.
1677 * tree.c (build_real_from_wide): New function.
1678 * tree-vect-slp.c (vect_build_slp_tree_2): Remove
1679 restriction on induction vectorization, represent
1681 * tree-vect-loop.c (vect_model_induction_cost): Inline ...
1682 (vectorizable_induction): ... here. Rewrite SLP
1685 2020-11-02 Martin Jambor <mjambor@suse.cz>
1687 * dbgcnt.def (ipa_cp_values): New counter.
1688 (ipa_cp_vr): Likewise.
1689 * ipa-cp.c (decide_about_value): Check and bump ipa_cp_values debug
1691 (decide_whether_version_node): Likewise.
1692 (ipcp_store_vr_results):Check and bump ipa_cp_vr debug counter.
1694 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1696 * config/arm/arm.c (arm_thumb1_mi_thunk): Build mi_delta in r3 and
1697 do not emit function address and delta when -mpure-code is used.
1699 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1701 * config/arm/thumb1.md (thumb1_movsi_insn): Call
1702 thumb1_gen_const_int_print.
1703 * config/arm/arm-protos.h (thumb1_gen_const_int_print): Add
1705 * config/arm/arm.c (thumb1_gen_const_int_print): New.
1707 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1709 * config/arm/arm.c (thumb1_const_rtl, thumb1_const_print): New
1711 (thumb1_gen_const_int): Rename to ...
1712 (thumb1_gen_const_int_1): ... New helper function. Add capability
1713 to emit either RTL or asm, improve generated code.
1714 (thumb1_gen_const_int_rtl): New function.
1715 * config/arm/arm-protos.h (thumb1_gen_const_int): Rename to
1716 thumb1_gen_const_int_rtl.
1717 * config/arm/thumb1.md: Call thumb1_gen_const_int_rtl instead
1718 of thumb1_gen_const_int.
1720 2020-11-02 Richard Biener <rguenther@suse.de>
1722 PR tree-optimization/97558
1723 * tree-vect-loop.c (vectorizable_reduction): For nested SLP
1724 cycles compute invariant operands vector type.
1726 2020-11-02 Richard Biener <rguenther@suse.de>
1728 PR tree-optimization/97558
1729 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns):
1730 Check for any mismatch in pattern vs. non-pattern and dissolve
1731 the group if there is one.
1732 * tree-vect-slp.c (vect_analyze_slp_instance): Avoid
1733 analyzing not relevant reductions.
1734 (vect_analyze_slp): Avoid analyzing not relevant reduction
1737 2020-11-02 Richard Biener <rguenther@suse.de>
1739 PR tree-optimization/97650
1740 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check
1741 for SSA_NAME before checking SSA_NAME_IS_DEFAULT_DEF.
1743 2020-11-02 Kito Cheng <kito.cheng@sifive.com>
1745 * common/config/riscv/riscv-common.c
1746 (riscv_subset_list::parse_multiletter_ext): Checking multiletter
1747 extension has more than 1 letter.
1749 2020-11-02 Kito Cheng <kito.cheng@sifive.com>
1751 * config.gcc (riscv*-*-*): Handle --with-multilib-generator.
1753 * configure.ac: Add --with-multilib-generator.
1754 * config/riscv/multilib-generator: Exit when parsing arch string error.
1755 * config/riscv/t-withmultilib-generator: New.
1756 * doc/install.texi: Document --with-multilib-generator.
1758 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1761 * config/arm/arm.c (thumb_legitimate_constant_p): Accept
1762 (symbol_ref + addend) when literal pool is disabled.
1763 (arm_valid_symbolic_address_p): Add support for thumb-1 without
1765 * config/arm/thumb1.md (*thumb1_movsi_insn): Accept (symbol_ref +
1766 addend) in the pure-code alternative.
1768 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1771 * config/arm/arm.c (thumb_legitimate_constant_p): Add support for
1772 disabled literal pool in thumb-1.
1773 * config/arm/thumb1.md (thumb1_movsi_symbol_ref): Remove.
1774 (*thumb1_movsi_insn): Add support for SYMBOL_REF with -mpure-code.
1776 2020-11-01 Iain Sandoe <iain@sandoe.co.uk>
1778 * config/host-darwin.c: Align pch_address_space to 16384.
1780 2020-11-01 Pat Bernardi <bernardi@adacore.com>
1782 * config/i386/i386.c (ix86_expand_prologue): Set the stack usage to 0
1783 for naked functions.
1785 2020-11-01 Iain Buclaw <ibuclaw@gdcproject.org>
1788 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't call
1789 clone_info::get when cgraph_node::get returns NULL.
1791 2020-10-31 Jan Hubicka <jh@suse.cz>
1793 * Makefile.in: (OBJS): Add symtab-clones.o
1794 (GTFILES): Add symtab-clones.h
1795 * cgraph.c: Include symtab-clones.h.
1796 (cgraph_edge::resolve_speculation): Fix formating
1797 (cgraph_edge::redirect_call_stmt_to_callee): Update.
1798 (cgraph_update_edges_for_call_stmt): Update
1799 (release_function_body): Fix formating.
1800 (cgraph_node::remove): Fix formating.
1801 (cgraph_node::dump): Fix formating.
1802 (cgraph_node::get_availability): Fix formating.
1803 (cgraph_node::call_for_symbol_thunks_and_aliases): Fix formating.
1804 (set_const_flag_1): Fix formating.
1805 (set_pure_flag_1): Fix formating.
1806 (cgraph_node::can_remove_if_no_direct_calls_p): Fix formating.
1807 (collect_callers_of_node_1): Fix formating.
1808 (clone_of_p): Update.
1809 (cgraph_node::verify_node): Update.
1810 (cgraph_c_finalize): Call clone_info::release ().
1811 * cgraph.h (struct cgraph_clone_info): Move to symtab-clones.h.
1812 (cgraph_node): Remove clone_info.
1813 (symbol_table): Add m_clones.
1814 * cgraphclones.c: Include symtab-clone.h.
1815 (duplicate_thunk_for_node): Update.
1816 (cgraph_node::create_clone): Update.
1817 (cgraph_node::create_virtual_clone): Update.
1818 (cgraph_node::find_replacement): Update.
1819 (cgraph_node::materialize_clone): Update.
1820 * gengtype.c (open_base_files): Include symtab-clones.h.
1821 * ipa-cp.c: Include symtab-clones.h.
1822 (initialize_node_lattices): Update.
1823 (want_remove_some_param_p): Update.
1824 (create_specialized_node): Update.
1825 * ipa-fnsummary.c: Include symtab-clones.h.
1826 (ipa_fn_summary_t::duplicate): Update.
1827 * ipa-modref.c: Include symtab-clones.h.
1828 (update_signature): Update.
1829 * ipa-param-manipulation.c: Include symtab-clones.h.
1830 (ipa_param_body_adjustments::common_initialization): Update.
1831 * ipa-prop.c: Include symtab-clones.h.
1832 (adjust_agg_replacement_values): Update.
1833 (ipcp_get_parm_bits): Update.
1834 (ipcp_update_bits): Update.
1835 (ipcp_update_vr): Update.
1836 * ipa-sra.c: Include symtab-clones.h.
1837 (process_isra_node_results): Update.
1838 (disable_unavailable_parameters): Update.
1839 * lto-cgraph.c: Include symtab-clone.h.
1840 (output_cgraph_opt_summary_p): Update.
1841 (output_node_opt_summary): Update.
1842 (input_node_opt_summary): Update.
1843 * symtab-clones.cc: New file.
1844 * symtab-clones.h: New file.
1845 * tree-inline.c (expand_call_inline): Update.
1846 (update_clone_info): Update.
1847 (tree_function_versioning): Update.
1849 2020-10-31 Jan Hubicka <jh@suse.cz>
1851 * ipa-modref.c (modref_summary::dump): Dump writes_errno.
1852 (parm_map_for_arg): Break out from ...
1853 (merge_call_side_effects): ... here.
1854 (get_access_for_fnspec): New function.
1855 (process_fnspec): New function.
1856 (analyze_call): Use it.
1857 (analyze_stmt): Update.
1858 (analyze_function): Initialize writes_errno.
1859 (modref_summaries::duplicate): Duplicate writes_errno.
1860 * ipa-modref.h (struct modref_summary): Add writes_errno.
1861 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Check errno.
1863 2020-10-30 Michael Meissner <meissner@linux.ibm.com>
1865 * config/rs6000/rs6000.c (glibc_supports_ieee_128bit): New helper
1867 (rs6000_option_override_internal): Call it.
1869 2020-10-30 Qing Zhao <qing.zhao@oracle.com>
1870 H.J.Lu <hjl.tools@gmail.com>
1872 * common.opt: Add new option -fzero-call-used-regs
1873 * config/i386/i386.c (zero_call_used_regno_p): New function.
1874 (zero_call_used_regno_mode): Likewise.
1875 (zero_all_vector_registers): Likewise.
1876 (zero_all_st_registers): Likewise.
1877 (zero_all_mm_registers): Likewise.
1878 (ix86_zero_call_used_regs): Likewise.
1879 (TARGET_ZERO_CALL_USED_REGS): Define.
1880 * df-scan.c (df_epilogue_uses_p): New function.
1881 (df_get_exit_block_use_set): Replace EPILOGUE_USES with
1883 * df.h (df_epilogue_uses_p): Declare.
1884 * doc/extend.texi: Document the new zero_call_used_regs attribute.
1885 * doc/invoke.texi: Document the new -fzero-call-used-regs option.
1886 * doc/tm.texi: Regenerate.
1887 * doc/tm.texi.in (TARGET_ZERO_CALL_USED_REGS): New hook.
1888 * emit-rtl.h (struct rtl_data): New field must_be_zero_on_return.
1889 * flag-types.h (namespace zero_regs_flags): New namespace.
1890 * function.c (gen_call_used_regs_seq): New function.
1891 (class pass_zero_call_used_regs): New class.
1892 (pass_zero_call_used_regs::execute): New function.
1893 (make_pass_zero_call_used_regs): New function.
1894 * optabs.c (expand_asm_reg_clobber_mem_blockage): New function.
1895 * optabs.h (expand_asm_reg_clobber_mem_blockage): Declare.
1896 * opts.c (zero_call_used_regs_opts): New structure array
1898 (parse_zero_call_used_regs_options): New function.
1899 (common_handle_option): Handle -fzero-call-used-regs.
1900 * opts.h (zero_call_used_regs_opts): New structure array.
1901 * passes.def: Add new pass pass_zero_call_used_regs.
1902 * recog.c (valid_insn_p): New function.
1903 * recog.h (valid_insn_p): Declare.
1904 * resource.c (init_resource_info): Replace EPILOGUE_USES with
1906 * target.def (zero_call_used_regs): New hook.
1907 * targhooks.c (default_zero_call_used_regs): New function.
1908 * targhooks.h (default_zero_call_used_regs): Declare.
1909 * tree-pass.h (make_pass_zero_call_used_regs): Declare.
1911 2020-10-30 Vladimir N. Makarov <vmakarov@redhat.com>
1913 * lra.c (get_scratch_reg): New function.
1914 (remove_scratches_1): Rename remove_insn_scratches. Use
1915 ira_remove_insn_scratches and get_scratch_reg.
1916 (remove_scratches): Do not
1917 initialize scratches, scratch_bitmap, and scratch_operand_bitmap.
1918 (lra): Call ira_restore_scratches instead of restore_scratches.
1919 (struct sloc, sloc_t, scratches, scratch_bitmap)
1920 (scratch_operand_bitmap, lra_former_scratch_p)
1921 (lra_former_scratch_operand_p, lra_register_new_scratch_op)
1922 (restore_scratches): Move them to ...
1924 (former_scratch_p, former_scratch_operand_p): Rename to
1925 ira_former_scratch_p and ira_former_scratch_operand_p.
1926 (contains_X_constraint_p): New function.
1927 (register_new_scratch_op): Rename to ira_register_new_scratch_op.
1928 Change it to work for IRA and LRA.
1929 (restore_scratches): Rename to ira_restore_scratches.
1930 (get_scratch_reg, ira_remove_insn_scratches): New functions.
1931 (ira): Call ira_remove_scratches if we use LRA.
1932 * ira.h (ira_former_scratch_p, ira_former_scratch_operand_p): New
1934 (ira_register_new_scratch_op, ira_restore_scratches): New prototypes.
1935 (ira_remove_insn_scratches): New prototype.
1936 * lra-int.h (lra_former_scratch_p, lra_former_scratch_operand_p):
1938 (lra_register_new_scratch_op): Ditto.
1939 * lra-constraints.c: Rename lra_former_scratch_p and
1940 lra_former_scratch_p to ira_former_scratch_p and to
1941 ira_former_scratch_p.
1942 * lra-remat.c: Ditto.
1943 * lra-spills.c: Rename lra_former_scratch_p to ira_former_scratch_p.
1945 2020-10-30 Martin Sebor <msebor@redhat.com>
1948 * builtins.c (access_ref::add_offset): Cap offset lower bound
1949 to at most the the upper bound.
1951 2020-10-30 Jan Hubicka <jh@suse.cz>
1954 * cgraph.c (cgraph_node::create_thunk): Register thunk as early during
1956 * cgraphunit.c (analyze_functions): Call
1957 thunk_info::process_early_thunks.
1958 * symtab-thunks.cc (struct unprocessed_thunk): New struct.
1959 (thunks): New static variable.
1960 (thunk_info::register_early): New member function.
1961 (thunk_info::process_early_thunks): New member function.
1962 * symtab-thunks.h (thunk_info::register_early): Declare.
1963 (thunk_info::process_early_thunks): Declare.
1965 2020-10-30 Richard Biener <rguenther@suse.de>
1967 PR tree-optimization/97623
1968 * tree-ssa-pre.c (insert): First do hoist insertion in
1971 2020-10-30 Richard Biener <rguenther@suse.de>
1973 PR tree-optimization/97626
1974 * tree-vect-slp.c (vect_slp_analyze_node_operations):
1975 Exchange the lvisited hash-set for a vector, roll back
1976 recursive adds to visited when analysis failed.
1977 (vect_slp_analyze_operations): Likewise.
1979 2020-10-30 Zhiheng Xie <xiezhiheng@huawei.com>
1980 Nannan Zheng <zhengnannan@huawei.com>
1982 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
1983 for conversion intrinsics.
1985 2020-10-30 Richard Biener <rguenther@suse.de>
1987 PR tree-optimization/97633
1988 * tree-vect-slp.c (): Update backedges in single-node cycles.
1989 Optimize processing of externals.
1991 2020-10-30 Alex Coplan <alex.coplan@arm.com>
1994 * combine.c (make_extraction): Also handle shifts written as
1995 (mult x 2^n), avoid creating an extract rtx for these.
1996 * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Delete.
1997 (aarch64_classify_index): Remove extract-based address handling.
1998 (aarch64_strip_extend): Likewise.
1999 (aarch64_rtx_arith_op_extract_p): Likewise, remove now-unused parameter.
2001 (aarch64_rtx_costs): ... here.
2003 2020-10-30 Olivier Hainque <hainque@adacore.com>
2005 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Also
2006 builtin_define __ppc and __ppc__ for VxWorks 7.
2008 2020-10-30 Olivier Hainque <hainque@adacore.com>
2009 Douglas Rupp <rupp@adacore.com>
2010 Pat Bernardi <bernardi@adacore.com>
2012 * config.gcc: Adjust the ix86/x86_64-wrs-vxworks filters
2013 to apply to VxWorks 7 as well.
2014 * config/i386/t-vxworks (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2015 Remove the fPIC multilib and add one for the large code model
2017 * config/i386/vxworks.h: Separate sections for TARGET_VXWORKS7,
2018 other variants and common bits.
2019 (TARGET_OS_CPP_BUILTINS): Augment to support a range of CPU
2020 families. Leverage VX_CPU_PREFIX.
2021 (CC1_SPEC): Add definition.
2022 (STACK_CHECK_PROTECT): Use conditional expression instead of
2023 heavier to read conditioned macro definitions.
2025 2020-10-30 Jakub Jelinek <jakub@redhat.com>
2027 * gimplify.c (gimplify_scan_omp_clauses): Force
2028 OMP_CLAUSE_ALLOCATE_ALLOCATOR into a temporary if it is non-NULL and
2030 (gimplify_omp_for): Only put allocate on inner taskloop if lastprivate
2031 for the same variable is going to be put there, and in that case
2032 if the OMP_CLAUSE_ALLOCATE_ALLOCATOR is non-NULL non-constant, make
2033 the allocator firstprivate on task.
2035 2020-10-30 Michael Meissner <meissner@linux.ibm.com>
2037 * config/rs6000/rs6000.c (rs6000_option_override_internal): Allow
2038 long double type to be changed for C/C++ if glibc 2.32 or newer.
2039 (rs6000_invalid_binary_op): Update error messages about mixing IBM
2040 long double and IEEE 128-bit.
2042 2020-10-29 Richard Biener <rguenther@suse.de>
2044 * tree-ssa-pre.c (compute_avail): Free operands consistently.
2045 * tree-vect-loop.c (vectorizable_phi): Make sure all operand
2046 defs vectors are released.
2048 2020-10-29 Jan Hubicka <jh@suse.cz>
2050 * vec.h (vec<T, va_heap, vl_ptr>::copy): Pass mem stat info.
2052 2020-10-29 Jan Hubicka <jh@suse.cz>
2054 * wide-int.h (trailing_wide_ints <N>): Turn len to array of structures
2055 so it does not imply typeless storage.
2056 (trailing_wide_ints <N>::operator): update
2057 (trailing_wide_ints <N>::operator []): Update.
2059 2020-10-29 Joseph Myers <joseph@codesourcery.com>
2061 * ginclude/stdbool.h [__STDC_VERSION__ > 201710L] (true, false):
2062 Define with type _Bool.
2064 2020-10-29 Aldy Hernandez <aldyh@redhat.com>
2066 PR tree-optimization/97505
2067 * vr-values.c (vr_values::extract_range_basic): Enable
2068 trap again for everything except UBSAN builtins.
2070 2020-10-29 Richard Sandiford <richard.sandiford@arm.com>
2072 * tree-vectorizer.h (vect_transform_slp_perm_load): Take an
2073 optional extra parameter.
2074 * tree-vect-slp.c (vect_transform_slp_perm_load): Calculate
2075 the number of loads as well as the number of permutes, taking
2076 the counting loop from...
2077 * tree-vect-stmts.c (vect_model_load_cost): ...here. Use the
2078 value computed by vect_transform_slp_perm_load for ncopies.
2080 2020-10-29 Martin Liska <mliska@suse.cz>
2083 * langhooks.c (lhd_begin_section): Call get_section with
2084 not_existing = true.
2085 * output.h (get_section): Add new argument.
2086 * varasm.c (get_section): Fail when NOT_EXISTING is true
2087 and a section already exists.
2088 * ipa-cp.c (ipcp_write_summary): Remove.
2089 (ipcp_read_summary): Likewise.
2090 * ipa-fnsummary.c (ipa_fn_summary_read): Always read jump
2092 (ipa_fn_summary_write): Always stream it.
2094 2020-10-29 Richard Biener <rguenther@suse.de>
2096 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Pass
2097 SLP_TREE_VECTYPE to record_stmt_cost.
2099 2020-10-29 Martin Liska <mliska@suse.cz>
2101 * optc-gen.awk: Check that params start with -param=.
2102 * params.opt: Fix ipa-jump-function-lookups.
2104 2020-10-29 Alexandre Oliva <oliva@adacore.com>
2106 * tree-ssa-math-opts.c (sincos_stats): Add conv_removed.
2107 (execute_cse_conv_1): New.
2108 (execute_cse_sincos_1): Call it. Fix return within
2109 FOR_EACH_IMM_USE_STMT.
2110 (pass_cse_sincos::execute): Report conv_inserted.
2112 2020-10-29 Xuepeng Guo <xuepeng.guo@intel.com>
2113 Hongyu Wang <hongyu.wang@intel.com>
2114 Hongtao Liu <hongtao.liu@intel.com>
2116 * common/config/i386/cpuinfo.h (get_available_features):
2117 Detect KL, AESKLE and WIDEKL features.
2118 * common/config/i386/i386-common.c
2119 (OPTION_MASK_ISA_KL_SET): New.
2120 (OPTION_MASK_ISA_WIDEKL_SET): Likewise.
2121 (OPTION_MASK_ISA_KL_UNSET): Likewise.
2122 (OPTION_MASK_ISA_WIDEKL_UNSET): Likewise.
2123 (OPTION_MASK_ISA2_AVX2_UNSET): Likewise.
2124 (OPTION_MASK_ISA2_AVX_UNSET): Likewise.
2125 (OPTION_MASK_ISA2_SSE4_2_UNSET): Likewise.
2126 (OPTION_MASK_ISA2_SSE4_1_UNSET): Likewise.
2127 (OPTION_MASK_ISA2_SSE4_UNSET): Likewise.
2128 (OPTION_MASK_ISA2_SSSE3_UNSET): Likewise.
2129 (OPTION_MASK_ISA2_SSE3_UNSET): Likewise.
2130 (OPTION_MASK_ISA2_SSE2_UNSET): Likewise.
2131 (OPTION_MASK_ISA2_SSE_UNSET): Likewise.
2132 (ix86_handle_option): Handle kl and widekl, add dependency chain
2134 * common/config/i386/i386-cpuinfo.h (enum processor_features):
2135 (FEATURE_KL, FEATURE_AESKLE, FEATURE_WIDEKL): New.
2136 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
2137 for KL, AESKLE and WIDEKL.
2138 * config.gcc: Add keylockerintrin.h.
2139 * doc/invoke.texi: Document new option -mkl and -mwidekl.
2140 * doc/extend.texi: Document kl and widekl.
2141 * config/i386/cpuid.h (bit_KL, bit_AESKLE, bit_WIDEKL): New.
2142 * config/i386/i386-builtin-types.def ((UINT, UINT, V2DI, V2DI, PVOID),
2143 (UINT, UINT, V2DI, PVOID), (VOID, V2DI, V2DI, V2DI, UINT),
2144 (UINT8, PV2DI, V2DI, PCVOID), (UINT8, PV2DI, PCV2DI, PCVOID)): New
2146 * config/i386/i386-builtin.def: Add
2147 __builtin_ia32_loadiwkey,
2148 __builtin_ia32_aesdec128kl_u8,
2149 __builtin_ia32_aesdec256kl_u8,
2150 __builtin_ia32_aesenc128kl_u8,
2151 __builtin_ia32_aesenc256kl_u8,
2152 __builtin_ia32_aesdecwide128kl_u8,
2153 __builtin_ia32_aesdecwide256kl_u8,
2154 __builtin_ia32_aesencwide128kl_u8,
2155 __builtin_ia32_aesencwide256kl_u8,
2156 __builtin_ia32_encodekey128_u32,
2157 __builtin_ia32_encodekey256_u32.
2158 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2160 * config/i386/i386-options.c (isa2_opts): Add -mkl and -mwidekl.
2161 (ix86_option_override_internal): Handle KL and WIDEKL.
2162 (ix86_valid_target_attribute_inner_p): Add attribute for kl and widekl.
2163 * config/i386/i386-expand.c
2164 (ix86_expand_builtin): Expand Keylocker Builtins.
2165 * config/i386/i386.h (TARGET_KL): New.
2166 (TARGET_KL_P): Likewise.
2167 (TARGET_WIDEKL): Likewise.
2168 (TARGET_WIDEKL_P): Likewise.
2170 (PTA_WIDEKL): Likewise.
2171 (PTA_TIGERLAKE): Add PTA_KL, PTA_WIDEKL.
2172 (PTA_ALDERLAKE): Likewise.
2173 * config/i386/i386.opt: Add new option mkl and mwidekl.
2174 * config/i386/keylockerintrin.h: New header file for Keylocker.
2175 * config/i386/immintrin.h: Include keylockerintrin.h.
2176 * config/i386/predicates.md (encodekey128_operation): New
2178 (encodekey256_operation): Likewise.
2179 (aeswidekl_operation): Likewise.
2180 * config/i386/sse.md (UNSPECV_LOADIWKEY): New.
2181 (UNSPECV_AESDEC128KLU8): Likewise.
2182 (UNSPECV_AESENC128KLU8): Likewise.
2183 (UNSPECV_AESDEC256KLU8): Likewise.
2184 (UNSPECV_AESENC256KLU8): Likewise.
2185 (UNSPECV_AESDECWIDE128KLU8): Likewise.
2186 (UNSPECV_AESENCWIDE128KLU8): Likewise.
2187 (UNSPECV_AESDECWIDE256KLU8): Likewise.
2188 (UNSPECV_AESENCWIDE256KLU8): Likewise.
2189 (UNSPECV_ENCODEKEY128U32): Likewise.
2190 (UNSPECV_ENCODEKEY256U32): Likewise.
2191 (encodekey128u32): New expander.
2192 (encodekey256u32): Likewise.
2193 (aes<aeswideklvariant>u8): Likewise.
2194 (loadiwkey): New insn pattern.
2195 (*encodekey128u32): Likewise.
2196 (*encodekey256u32): Likewise.
2197 (aes<aesklvariant>u8): Likewise.
2198 (*aes<aeswideklvariant>u8): Likewise.
2200 2020-10-29 Richard Biener <rguenther@suse.de>
2202 * tree-vect-slp.c (vect_build_slp_tree_2): Allow splatting
2203 not vectorizable loads.
2204 (vect_build_slp_instance): Amend dumping with address.
2205 (vect_slp_convert_to_external): Likewise.
2207 2020-10-29 Andrew MacLeod <amacleod@redhat.com>
2209 PR tree-optimization/97609
2210 * gimple-range-cache.cc (non_null_ref::process_name): Call
2211 infer_nonnull_range directly instead of infer_value_range.
2213 2020-10-29 David Malcolm <dmalcolm@redhat.com>
2215 * Makefile.in (ANALYZER_OBJS): Add analyzer/complexity.o.
2217 2020-10-28 Marek Polacek <polacek@redhat.com>
2220 * doc/invoke.texi: Document -Wdeprecated-enum-enum-conversion
2221 and -Wdeprecated-enum-float-conversion. -Wenum-conversion is
2222 no longer C/ObjC only.
2224 2020-10-28 Richard Sandiford <richard.sandiford@arm.com>
2226 PR tree-optimization/97457
2227 * value-range.cc (irange::set): Don't decay POLY_INT_CST ranges
2230 2020-10-28 Carl Love <cel@us.ibm.com>
2232 * config/rs6000/vsx.md(xxgenpcvm_<mode>_internal): Remove TARGET_64BIT.
2234 2020-10-28 Richard Biener <rguenther@suse.de>
2236 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Dump
2237 when shared vectype update fails.
2239 2020-10-28 Richard Biener <rguenther@suse.de>
2241 * tree-vect-slp.c (vect_get_and_check_slp_defs): For skipped
2242 args just push NULLs and vect_uninitialized_def.
2243 (vect_build_slp_tree_2): Allocate skip_args for all ops
2244 and pass it down to vect_get_and_check_slp_defs.
2246 2020-10-28 Richard Biener <rguenther@suse.de>
2248 PR tree-optimization/97615
2249 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
2250 an external from pattern defs.
2252 2020-10-28 Richard Biener <rguenther@suse.de>
2254 * tree-vect-slp.c (vect_optimize_slp): Fix iteration over
2257 2020-10-28 Richard Biener <rguenther@suse.de>
2259 * tree-vect-slp.c (vect_build_slp_instance): Split the store
2260 group at the failure boundary and also re-analyze a large enough
2263 2020-10-28 Richard Biener <rguenther@suse.de>
2265 * tree-vect-data-refs.c (vect_slp_analyze_node_alignment):
2266 Dump when vect_update_shared_vectype fails.
2268 2020-10-28 Andrea Corallo <andrea.corallo@arm.com>
2270 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC, __ST3_LANE_FUNC)
2271 (__ST4_LANE_FUNC): Rename the macro generating the 'q' variants
2272 into __ST2Q_LANE_FUNC, __ST2Q_LANE_FUNC, __ST2Q_LANE_FUNC so they
2273 all can be undefed at the and of the file.
2274 (vst2_lane_bf16, vst2q_lane_bf16, vst3_lane_bf16, vst3q_lane_bf16)
2275 (vst4_lane_bf16, vst4q_lane_bf16): Add new intrinsics.
2277 2020-10-28 Andrea Corallo <andrea.corallo@arm.com>
2279 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC, __LD3_LANE_FUNC)
2280 (__LD4_LANE_FUNC): Rename the macro generating the 'q' variants
2281 into __LD2Q_LANE_FUNC, __LD2Q_LANE_FUNC, __LD2Q_LANE_FUNC so they
2282 all can be undefed at the and of the file.
2283 (vld2_lane_bf16, vld2q_lane_bf16, vld3_lane_bf16, vld3q_lane_bf16)
2284 (vld4_lane_bf16, vld4q_lane_bf16): Add new intrinsics.
2286 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2288 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ALLOCATE.
2289 * tree.h (OMP_CLAUSE_ALLOCATE_ALLOCATOR,
2290 OMP_CLAUSE_ALLOCATE_COMBINED): Define.
2291 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add allocate
2293 (walk_tree_1): Handle OMP_CLAUSE_ALLOCATE.
2294 * tree-pretty-print.c (dump_omp_clause): Likewise.
2295 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses,
2296 gimplify_omp_for): Likewise.
2297 * tree-nested.c (convert_nonlocal_omp_clauses,
2298 convert_local_omp_clauses): Likewise.
2299 * omp-low.c (scan_sharing_clauses): Likewise.
2301 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2303 * omp-offload.c (omp_declare_target_tgt_fn_r): Handle direct calls to
2304 declare variant base functions.
2306 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2309 * lto-streamer.h (omp_lto_output_declare_variant_alt,
2310 omp_lto_input_declare_variant_alt): Declare variant.
2311 * symtab.c (symtab_node::get_partitioning_class): Return
2312 SYMBOL_DUPLICATE for declare_variant_alt nodes.
2313 * passes.c (ipa_write_summaries): Add declare_variant_alt to
2315 * lto-cgraph.c (output_refs): Call omp_lto_output_declare_variant_alt
2316 on declare_variant_alt nodes.
2317 (input_refs): Call omp_lto_input_declare_variant_alt on
2318 declare_variant_alt nodes.
2319 * lto-streamer-out.c (output_function): Don't call
2320 collect_block_tree_leafs if DECL_INITIAL is error_mark_node.
2321 (lto_output): Call output_function even for declare_variant_alt
2323 * omp-general.c (omp_lto_output_declare_variant_alt,
2324 omp_lto_input_declare_variant_alt): New functions.
2326 2020-10-28 Jakub Jelinek <jakub@redhat.com>
2328 * wide-int.cc (wi::set_bit_large): Call canonize unless setting
2329 msb bit and clearing bits above it.
2331 2020-10-28 Andrew MacLeod <amacleod@redhat.com>
2333 * gimple-range-gori.cc (gori_compute_cache::cache_stmt): Accumulate
2334 return values and only set cache when everything returned true.
2335 * gimple-range.cc (get_tree_range): Set the return range to UNDEFINED
2336 when the range isn't supported.
2337 (gimple_ranger::calc_stmt): Return varying if the type is supported,
2338 even if the stmt processing failed. False otherwise.
2339 (range_of_builtin_ubsan_call): Don't use gcc_assert.
2340 (range_of_builtin_call): Ditto.
2341 (gimple_ranger::range_of_cond_expr): Ditto.
2342 (gimple_ranger::range_of_expr): Ditto
2343 (gimple_ranger::range_on_entry): Ditto.
2344 (gimple_ranger::range_on_exit): Ditto.
2345 (gimple_ranger::range_on_edge): DItto.
2346 (gimple_ranger::range_of_stmt): Don't use gcc_assert, and initialize
2347 return value to UNDEFINED.
2349 2020-10-27 Andreas Krebbel <krebbel@linux.ibm.com>
2351 PR rtl-optimization/97497
2352 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Do not
2353 return true for r12 when -fpic is used.
2355 2020-10-27 Tamar Christina <tamar.christina@arm.com>
2358 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Use unsigned
2359 arithmetic in check.
2361 2020-10-27 Andrea Corallo <andrea.corallo@arm.com>
2363 * config/aarch64/arm_neon.h (vcopy_lane_bf16, vcopyq_lane_bf16)
2364 (vcopyq_laneq_bf16, vcopy_laneq_bf16): New intrinsics.
2366 2020-10-27 Olivier Hainque <hainque@adacore.com>
2368 * config/vxworks.h (VX_CPU_PREFIX): #define here.
2369 * config/rs6000/vxworks.h: Remove #definition.
2371 2020-10-27 Olivier Hainque <hainque@adacore.com>
2373 * config/rs6000/vxworks.h (CPP_SPEC): Fix macro definition
2376 2020-10-27 Richard Biener <rguenther@suse.de>
2378 * tree-vect-slp.c (vect_build_slp_instance): Use ceil_log2
2379 to compute maximum group-size.
2381 2020-10-27 Jan Hubicka <jh@suse.cz>
2384 * ipa-modref-tree.h (modref_tree::remap_params): New member function.
2385 * ipa-modref.c (modref_summaries_lto::duplicate): Check that
2386 optimization summaries are not duplicated.
2387 (remap_arguments): Remove.
2388 (modref_transform): Rename to ...
2389 (update_signature): ... this one; handle also lto summary.
2390 (pass_ipa_modref::execute): Update signatures here rather
2391 than in transform hook.
2393 2020-10-27 Richard Biener <rguenther@suse.de>
2395 * tree-vect-slp.c (vect_slp_bbs): Remove no-op
2396 slp-max-insns-in-bb check.
2397 (vect_slp_function): Dump when splitting the function.
2398 Adjust the split condition for control altering stmts.
2399 * params.opt (-param=slp-max-insns-in-bb): Remove.
2400 * doc/invoke.texi (-param=slp-max-insns-in-bb): Likewise.
2402 2020-10-27 Richard Biener <rguenther@suse.de>
2404 * gimple.h (gimple_expr_type): For PHIs return the type
2406 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2407 Make sure edge order into copied loop headers line up with the
2409 * tree-vect-loop.c (vect_transform_cycle_phi): Handle nested
2411 (vectorizable_phi): New function.
2412 (vectorizable_live_operation): For BB vectorization compute insert
2414 * tree-vect-slp.c (vect_free_slp_tree): Deal with NULL
2415 SLP_TREE_CHILDREN entries.
2416 (vect_create_new_slp_node): Add overloads with pre-existing node
2418 (vect_print_slp_graph): Likewise.
2419 (vect_mark_slp_stmts): Likewise.
2420 (vect_mark_slp_stmts_relevant): Likewise.
2421 (vect_gather_slp_loads): Likewise.
2422 (vect_optimize_slp): Likewise.
2423 (vect_slp_analyze_node_operations): Likewise.
2424 (vect_bb_slp_scalar_cost): Likewise.
2425 (vect_remove_slp_scalar_calls): Likewise.
2426 (vect_get_and_check_slp_defs): Handle PHIs.
2427 (vect_build_slp_tree_1): Handle PHIs.
2428 (vect_build_slp_tree_2): Continue SLP build, following PHI
2429 arguments. Fix memory leak.
2430 (vect_build_slp_tree): Put stub node into the hash-map so
2431 we can discover cycles directly.
2432 (vect_build_slp_instance): Set the backedge SLP def for
2434 (vect_analyze_slp_backedges): Remove.
2435 (vect_analyze_slp): Do not call it.
2436 (vect_slp_convert_to_external): Release SLP_TREE_LOAD_PERMUTATION.
2437 (vect_slp_analyze_node_operations): Handle stray failed
2438 backedge defs by failing.
2439 (vect_slp_build_vertices): Adjust leaf condition.
2440 (vect_bb_slp_mark_live_stmts): Handle PHIs, use visited
2441 hash-set to handle cycles.
2442 (vect_slp_analyze_operations): Adjust.
2443 (vect_bb_partition_graph_r): Likewise.
2444 (vect_slp_function): Adjust split condition to allow CFG
2446 (vect_schedule_slp_instance): Rename to ...
2447 (vect_schedule_slp_node): ... this. Move DFS walk to ...
2448 (vect_schedule_scc): ... this new function.
2449 (vect_schedule_slp): Call it. Remove ad-hoc vectorized
2451 * tree-vect-stmts.c (vect_analyze_stmt): Call
2453 (vect_transform_stmt): Likewise.
2454 (vect_is_simple_use): Handle vect_backedge_def.
2455 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Only
2456 set loop header PHIs to vect_unknown_def_type for loop
2458 * tree-vectorizer.h (enum vect_def_type): Add vect_backedge_def.
2459 (enum stmt_vec_info_type): Add phi_info_type.
2460 (vectorizable_phi): Declare.
2462 2020-10-27 Richard Biener <rguenther@suse.de>
2464 * tree-vect-slp.c (vect_build_slp_tree_2): When vectorizing
2465 BBs splat uniform operands and stop SLP discovery.
2467 2020-10-27 Iain Buclaw <ibuclaw@gdcproject.org>
2469 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_D_CRITSEC_SIZE):
2471 * config/glibc-d.c (glibc_d_critsec_size): Likewise.
2472 (TARGET_D_CRITSEC_SIZE): Likewise.
2473 * config/i386/linux-common.h (GNU_USER_TARGET_D_CRITSEC_SIZE):
2475 * config/sol2-d.c (solaris_d_critsec_size): Likewise.
2476 (TARGET_D_CRITSEC_SIZE): Likewise.
2477 * doc/tm.texi.in (TARGET_D_CRITSEC_SIZE): Likewise.
2478 * doc/tm.texi: Regenerate.
2480 2020-10-27 Martin Liska <mliska@suse.cz>
2482 PR gcov-profile/97461
2483 * gcov-io.h (GCOV_PREALLOCATED_KVP): Pre-allocate 64
2486 2020-10-27 Jan Hubicka <jh@suse.cz>
2488 * tree-ssa-alias.c (attr_fnspec::verify): Re-enabl checking.
2490 2020-10-27 Jan Hubicka <jh@suse.cz>
2492 * builtin-attrs.def (STRERRNOC): New macro.
2493 (STRERRNOP): New macro.
2494 (ATTR_ERRNOCONST_NOTHROW_LEAF_LIST): New attr list.
2495 (ATTR_ERRNOPURE_NOTHROW_LEAF_LIST): New attr list.
2496 * builtins.def (ATTR_MATHFN_ERRNO): Use
2497 ATTR_ERRNOCONST_NOTHROW_LEAF_LIST.
2498 (ATTR_MATHFN_FPROUNDING_ERRNO): Use ATTR_ERRNOCONST_NOTHROW_LEAF_LIST
2499 or ATTR_ERRNOPURE_NOTHROW_LEAF_LIST.
2501 2020-10-27 Kito Cheng <kito.cheng@sifive.com>
2503 * common/config/riscv/riscv-common.c (opt_var_ref_t): New.
2504 (riscv_ext_flag_table_t): New.
2505 (riscv_ext_flag_table): New.
2506 (riscv_parse_arch_string): Pass gcc_options* instead of
2507 &opts->x_target_flags only, and using riscv_arch_option_table to
2509 (riscv_handle_option): Update argument for riscv_parse_arch_string.
2510 (riscv_expand_arch): Ditto.
2511 (riscv_expand_arch_from_cpu): Ditto.
2513 2020-10-27 Jan Hubicka <jh@suse.cz>
2515 * tree-ssa-ccp.c (evaluate_stmt): Use EAF_RETURN_ARG; do not handle
2516 string buitings specially.
2518 2020-10-27 Jan Hubicka <jh@suse.cz>
2520 * tree.c (set_call_expr_flags): Fix string for ECF_RET1.
2521 (build_common_builtin_nodes): Do not set ECF_RET1 for memcpy, memmove,
2522 and memset. They are handled by builtin_fnspec.
2524 2020-10-27 Jan Hubicka <jh@suse.cz>
2526 * builtins.c (builtin_fnspec): Add bzero, memcmp, memcmp_eq, bcmp,
2527 strncmp, strncmp_eq, strncasecmp, rindex, strlen, strlnen, strcasecmp,
2528 strcspn, strspn, strcmp, strcmp_eq.
2530 2020-10-27 Richard Biener <rguenther@suse.de>
2532 * tree-vectorizer.h (slp_tree_pool): Declare.
2533 (_slp_tree::operator new): Likewise.
2534 (_slp_tree::operator delete): Likewise.
2535 * tree-vectorizer.c (vectorize_loops): Allocate and free the
2537 (pass_slp_vectorize::execute): Likewise.
2538 * tree-vect-slp.c (slp_tree_pool): Define.
2539 (_slp_tree::operator new): Likewise.
2540 (_slp_tree::operator delete): Likewise.
2542 2020-10-27 Martin Liska <mliska@suse.cz>
2544 * lto-wrapper.c (run_gcc): Do not use sub-make when jobserver is
2545 not detected properly.
2547 2020-10-27 Martin Liska <mliska@suse.cz>
2549 * symbol-summary.h (call_summary_base): Pass symtab hooks to
2550 base and register (or unregister) hooks directly.
2552 2020-10-27 Martin Liska <mliska@suse.cz>
2554 * symbol-summary.h (function_summary_base::unregister_hooks):
2555 Call disable_insertion_hook and disable_duplication_hook.
2556 (function_summary_base::symtab_insertion): New field.
2557 (function_summary_base::symtab_removal): Likewise.
2558 (function_summary_base::symtab_duplication): Likewise.
2559 Register hooks in function_summary_base and directly register
2560 (or unregister) hooks.
2562 2020-10-26 Andrew MacLeod <amacleod@redhat.com>
2564 PR tree-optimization/97567
2565 * gimple-range-gori.cc (gori_compute::logical_combine): Union the
2566 ranges of operand1 and operand2, not intersect.
2568 2020-10-26 Jan Hubicka <jh@suse.cz>
2570 * attr-fnspec.h: Update toplevel comment.
2571 (attr_fnspec::attr_fnspec): New constructor.
2572 (attr_fnspec::arg_read_p,
2573 attr_fnspec::arg_written_p,
2574 attr_fnspec::arg_access_size_given_by_arg_p,
2575 attr_fnspec::arg_single_access_p
2576 attr_fnspec::loads_known_p
2577 attr_fnspec::stores_known_p,
2578 attr_fnspec::clobbers_errno_p): New member functions.
2579 (gimple_call_fnspec): Declare.
2580 (builtin_fnspec): Declare.
2581 * builtins.c: Include attr-fnspec.h
2582 (builtin_fnspec): New function.
2583 * builtins.def (BUILT_IN_MEMCPY): Do not specify RET1 fnspec.
2584 (BUILT_IN_MEMMOVE): Do not specify RET1 fnspec.
2585 (BUILT_IN_MEMSET): Do not specify RET1 fnspec.
2586 (BUILT_IN_STRCAT): Do not specify RET1 fnspec.
2587 (BUILT_IN_STRCPY): Do not specify RET1 fnspec.
2588 (BUILT_IN_STRNCAT): Do not specify RET1 fnspec.
2589 (BUILT_IN_STRNCPY): Do not specify RET1 fnspec.
2590 (BUILT_IN_MEMCPY_CHK): Do not specify RET1 fnspec.
2591 (BUILT_IN_MEMMOVE_CHK): Do not specify RET1 fnspec.
2592 (BUILT_IN_MEMSET_CHK): Do not specify RET1 fnspec.
2593 (BUILT_IN_STRCAT_CHK): Do not specify RET1 fnspec.
2594 (BUILT_IN_STRCPY_CHK): Do not specify RET1 fnspec.
2595 (BUILT_IN_STRNCAT_CHK): Do not specify RET1 fnspec.
2596 (BUILT_IN_STRNCPY_CHK): Do not specify RET1 fnspec.
2597 * gimple.c (gimple_call_fnspec): Return attr_fnspec.
2598 (gimple_call_arg_flags): Update.
2599 (gimple_call_return_flags): Update.
2600 * tree-ssa-alias.c (check_fnspec): New function.
2601 (ref_maybe_used_by_call_p_1): Use fnspec for builtin handling.
2602 (call_may_clobber_ref_p_1): Likewise.
2603 (attr_fnspec::verify): Update verifier.
2604 * calls.c (decl_fnspec): New function.
2605 (decl_return_flags): Use it.
2607 2020-10-26 Aldy Hernandez <aldyh@redhat.com>
2609 PR tree-optimization/97555
2610 * range-op.cc (range_tests): Test 1-bit signed invert.
2611 * value-range.cc (subtract_one): Adjust comment.
2613 (irange::invert): Call add_one.
2615 2020-10-26 Jan Hubicka <jh@suse.cz>
2617 * cgraph.h (cgraph_node::optimize_for_size_p): Return
2618 optimize_size_level.
2619 (cgraph_node::optimize_for_size_p): Update.
2620 * coretypes.h (enum optimize_size_level): New enum.
2621 * predict.c (unlikely_executed_edge_p): Microoptimize.
2622 (optimize_function_for_size_p): Return optimize_size_level.
2623 (optimize_bb_for_size_p): Likewise.
2624 (optimize_edge_for_size_p): Likewise.
2625 (optimize_insn_for_size_p): Likewise.
2626 (optimize_loop_nest_for_size_p): Likewise.
2627 * predict.h (optimize_function_for_size_p): Update declaration.
2628 (optimize_bb_for_size_p): Update declaration.
2629 (optimize_edge_for_size_p): Update declaration.
2630 (optimize_insn_for_size_p): Update declaration.
2631 (optimize_loop_for_size_p): Update declaration.
2632 (optimize_loop_nest_for_size_p): Update declaration.
2634 2020-10-26 Richard Biener <rguenther@suse.de>
2636 * tree-vect-slp.c (enum slp_instance_kind): New.
2637 (vect_build_slp_instance): Split out from...
2638 (vect_analyze_slp_instance): ... this.
2640 2020-10-26 Andrew MacLeod <amacleod@redhat.com>
2642 * gimple-range.cc (range_of_builtin_call): Initialize zerov to 0.
2644 2020-10-26 Jan Hubicka <jh@suse.cz>
2647 * cgraphclones.c (cgraph_node::materialize_clone): Clear stmt
2649 * cgraphunit.c (mark_functions_to_output): Do not clear them here.
2650 * ipa-inline-transform.c (inline_transform): Clear stmt references.
2651 * symtab.c (symtab_node::clear_stmts_in_references): Make recursive
2653 * tree-ssa-structalias.c (ipa_pta_execute): Do not clear references.
2655 2020-10-26 Zhiheng Xie <xiezhiheng@huawei.com>
2656 Nannan Zheng <zhengnannan@huawei.com>
2658 * config/aarch64/aarch64-builtins.c: Add FLAG STORE.
2659 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
2660 for store intrinsics.
2662 2020-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2664 PR tree-optimization/97546
2665 * gimple-ssa-store-merging.c (find_bswap_or_nop): Return NULL if
2666 type is not INTEGER_CST.
2668 2020-10-26 Richard Biener <rguenther@suse.de>
2671 * expr.c (const_scalar_mask_from_tree): Remove.
2672 (expand_expr_real_1): Always VIEW_CONVERT integer mode
2673 vector constants to an integer type.
2674 * tree.c (build_truth_vector_type_for_mode): Use a single-bit
2675 boolean component type for non-vector-mode mask_mode.
2677 2020-10-26 H.J. Lu <hjl.tools@gmail.com>
2680 * config/i386/i386-expand.c (ix86_expand_cmpstrn_or_cmpmem):
2681 Return false for -mno-inline-all-stringops.
2683 2020-10-26 H.J. Lu <hjl.tools@gmail.com>
2686 * config/i386/i386-expand.c (ix86_expand_cmpstrn_or_cmpmem): New
2688 * config/i386/i386-protos.h (ix86_expand_cmpstrn_or_cmpmem): New
2690 * config/i386/i386.md (cmpmemsi): New pattern.
2692 2020-10-26 Andreas Krebbel <krebbel@linux.ibm.com>
2694 * config/s390/vector.md ("vcond_mask_<mode><mode>"): New expander.
2696 2020-10-26 Richard Biener <rguenther@suse.de>
2698 * sbitmap.c (sbitmap_vector_alloc): Use size_t for byte
2699 quantities to avoid overflow.
2701 2020-10-26 Richard Biener <rguenther@suse.de>
2703 PR tree-optimization/97539
2704 * tree-vect-loop-manip.c (vect_do_peeling): Reset out-of-loop
2705 debug uses before peeling.
2707 2020-10-26 Jan Hubicka <hubicka@ucw.cz>
2709 * cgraph.h (struct cgraph_node): Make ipa_transforms_to_apply vl_ptr.
2710 * ipa-inline-analysis.c (initialize_growth_caches): Disable insertion
2711 and duplication hooks.
2712 * ipa-inline-transform.c (clone_inlined_nodes): Clear
2713 ipa_transforms_to_apply.
2714 (save_inline_function_body): Disable insertion hoook for
2715 ipa_saved_clone_sources.
2716 * ipa-prop.c (ipcp_transformation_initialize): Disable insertion hook.
2717 * ipa-prop.h (ipa_node_params_t): Disable insertion hook.
2718 * ipa-reference.c (propagate): Disable insertion hoook.
2719 * ipa-sra.c (ipa_sra_summarize_function): Move out of anonymous
2721 (ipa_sra_function_summaries::insert): New virtual function.
2722 * passes.c (execute_one_pass): Do not add transforms to inline clones.
2723 * symbol-summary.h (function_summary_base): Make insert and duplicate
2724 hooks fail instead of silently producing empty summaries; add way to
2725 disable duplication hooks
2726 (call_summary_base): Likewise.
2727 * tree-nested.c (nested_function_info::get_create): Disable insertion
2729 (maybe_record_nested_function): Likewise.
2731 2020-10-26 Xionghu Luo <luoxhu@linux.ibm.com>
2733 * cfg.c (debug_bb): New overloaded function.
2734 (debug_bb_n): New overloaded function.
2735 * cfg.h (debug_bb): New declaration.
2736 (debug_bb_n): New declaration.
2737 * print-rtl.c (debug_bb_slim): Call debug_bb with flags.
2739 2020-10-24 H.J. Lu <hjl.tools@gmail.com>
2742 * configure.ac (HAVE_AS_WORKING_DWARF_4_FLAG): Renamed to ...
2743 (HAVE_AS_WORKING_DWARF_N_FLAG): This. Don't define if there is
2744 an extra assembly input file in debug info. Replace success
2745 with dwarf4_success in the 32-bit --gdwarf-4 check.
2746 * dwarf2out.c (asm_outputs_debug_line_str): Check
2747 HAVE_AS_WORKING_DWARF_N_FLAG instead of
2748 HAVE_AS_WORKING_DWARF_4_FLAG.
2749 * gcc.c (ASM_DEBUG_SPEC): Likewise.
2750 (ASM_DEBUG_OPTION_SPEC): Likewise.
2751 * config.in: Regenerated.
2752 * configure: Likewise.
2754 2020-10-24 Aldy Hernandez <aldyh@redhat.com>
2756 PR tree-optimization/97538
2757 * calls.c (get_size_range): Handle undefined ranges.
2759 2020-10-24 Martin Liska <mliska@suse.cz>
2761 * cgraph.c (cgraph_node::former_thunk_p): Move out of CHECKING_P
2764 2020-10-24 Alan Modra <amodra@gmail.com>
2766 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Limit
2767 AND addressing to just lvx/stvx style addresses.
2769 2020-10-24 Alan Modra <amodra@gmail.com>
2771 * config/rs6000/rs6000.md (cstore<mode>4): Don't call
2772 rs6000_emit_int_cmove for power10 when -mno-isel.
2774 2020-10-23 Jan Hubicka <hubicka@ucw.cz>
2776 * Makefile.in: Add symtab-thunks.o
2777 (GTFILES): Add symtab-thunks.h and symtab-thunks.cc; remove cgraphunit.c
2778 * cgraph.c: Include symtab-thunks.h.
2779 (cgraph_node::create_thunk): Update
2780 (symbol_table::create_edge): Update
2781 (cgraph_node::dump): Update
2782 (cgraph_node::call_for_symbol_thunks_and_aliases): Update
2783 (set_nothrow_flag_1): Update
2784 (set_malloc_flag_1): Update
2785 (set_const_flag_1): Update
2786 (collect_callers_of_node_1): Update
2787 (clone_of_p): Update
2788 (cgraph_node::verify_node): Update
2789 (cgraph_node::function_symbol): Update
2790 (cgraph_c_finalize): Call thunk_info::release.
2791 (cgraph_node::has_thunk_p): Update
2792 (cgraph_node::former_thunk_p): Move here from cgraph.h; reimplement.
2793 * cgraph.h (struct cgraph_thunk_info): Rename to symtab-thunks.h.
2794 (cgraph_node): Remove thunk field; add thunk bitfield.
2795 (cgraph_node::expand_thunk): Move to symtab-thunks.h
2796 (symtab_thunks_cc_finalize): Declare.
2797 (cgraph_node::has_gimple_body_p): Update.
2798 (cgraph_node::former_thunk_p): Update.
2799 * cgraphclones.c: Include symtab-thunks.h.
2800 (duplicate_thunk_for_node): Update.
2801 (cgraph_edge::redirect_callee_duplicating_thunks): Update.
2802 (cgraph_node::expand_all_artificial_thunks): Update.
2803 (cgraph_node::create_edge_including_clones): Update.
2804 * cgraphunit.c: Include symtab-thunks.h.
2805 (vtable_entry_type): Move to symtab-thunks.c.
2806 (cgraph_node::analyze): Update.
2807 (analyze_functions): Update.
2808 (mark_functions_to_output): Update.
2809 (thunk_adjust): Move to symtab-thunks.c
2810 (cgraph_node::expand_thunk): Move to symtab-thunks.c
2811 (cgraph_node::assemble_thunks_and_aliases): Update.
2812 (output_in_order): Update.
2813 (cgraphunit_c_finalize): Do not clear vtable_entry_type.
2814 (cgraph_node::create_wrapper): Update.
2815 * gengtype.c (open_base_files): Add symtab-thunks.h
2816 * ipa-comdats.c (propagate_comdat_group): UPdate.
2817 (ipa_comdats): Update.
2818 * ipa-cp.c (determine_versionability): UPdate.
2819 (gather_caller_stats): Update.
2820 (count_callers): Update
2821 (set_single_call_flag): Update
2822 (initialize_node_lattices): Update
2823 (call_passes_through_thunk_p): Update
2824 (call_passes_through_thunk): Update
2825 (propagate_constants_across_call): Update
2826 (find_more_scalar_values_for_callers_subset): Update
2827 (has_undead_caller_from_outside_scc_p): Update
2828 * ipa-fnsummary.c (evaluate_properties_for_edge): Update.
2829 (compute_fn_summary): Update.
2830 (inline_analyze_function): Update.
2831 * ipa-icf.c: Include symtab-thunks.h.
2832 (sem_function::equals_wpa): Update.
2833 (redirect_all_callers): Update.
2834 (sem_function::init): Update.
2835 (sem_function::parse): Update.
2836 * ipa-inline-transform.c: Include symtab-thunks.h.
2837 (inline_call): Update.
2838 (save_inline_function_body): Update.
2839 (preserve_function_body_p): Update.
2840 * ipa-inline.c (inline_small_functions): Update.
2841 * ipa-polymorphic-call.c: Include alloc-pool.h, symbol-summary.h,
2843 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Update.
2844 * ipa-pure-const.c: Include symtab-thunks.h.
2845 (analyze_function): Update.
2846 * ipa-sra.c (check_for_caller_issues): Update.
2847 * ipa-utils.c (ipa_reverse_postorder): Update.
2848 (ipa_merge_profiles): Update.
2849 * ipa-visibility.c (non_local_p): Update.
2850 (cgraph_node::local_p): Update.
2851 (function_and_variable_visibility): Update.
2852 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
2853 * lto-cgraph.c: Include alloc-pool.h, symbol-summary.h and
2855 (lto_output_edge): Update.
2856 (lto_output_node): Update.
2857 (compute_ltrans_boundary): Update.
2858 (output_symtab): Update.
2859 (verify_node_partition): Update.
2860 (input_overwrite_node): Update.
2861 (input_node): Update.
2862 * lto-streamer-in.c (fixup_call_stmt_edges): Update.
2863 * symtab-thunks.cc: New file.
2864 * symtab-thunks.h: New file.
2865 * toplev.c (toplev::finalize): Call symtab_thunks_cc_finalize.
2866 * trans-mem.c (ipa_tm_mayenterirr_function): Update.
2867 (ipa_tm_execute): Update.
2868 * tree-inline.c (expand_call_inline): Update.
2869 * tree-nested.c (create_nesting_tree): Update.
2870 (convert_all_function_calls): Update.
2871 (gimplify_all_functions): Update.
2872 * tree-profile.c (tree_profiling): Update.
2873 * tree-ssa-structalias.c (associate_varinfo_to_alias): Update.
2874 * tree.c (free_lang_data_in_decl): Update.
2875 * value-prof.c (init_node_map): Update.
2877 2020-10-23 Marek Polacek <polacek@redhat.com>
2880 * doc/invoke.texi: Document -Wsizeof-array-div.
2882 2020-10-23 Martin Sebor <msebor@redhat.com>
2885 * attribs.c (init_attr_rdwr_indices): Handle static VLA parameters.
2887 2020-10-23 Douglas Rupp <rupp@adacore.com>
2889 * config/vxworks.h (VXWORKS_NET_LIBS_RTP): Use -lrtnet if
2890 rtnetStackLib.h is available,fallback to -lnet otherwise.
2892 2020-10-23 Douglas Rupp <rupp@adacore.com>
2894 * gcc.c (if-exists-then-else): New built-in spec function.
2895 * doc/invoke.texi: Document it.
2897 2020-10-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2899 * doc/extend.texi (PowerPC Built-in Functions): Replace
2900 extraneous characters with whitespace.
2902 2020-10-23 Martin Liska <mliska@suse.cz>
2904 * gcov.c (read_count_file): Never call gcov_sync with a negative
2907 2020-10-23 Jakub Jelinek <jakub@redhat.com>
2909 * Makefile.in (PLUGIN_HEADERS): Add gomp-constants.h and $(EXPR_H).
2910 (s-header-vars): Accept not just spaces but also tabs between *_H name
2911 and =. Handle common/config/ headers similarly to config. Don't
2912 throw away everything from first ... to last / on the remaining
2913 string, instead skip just ... to corresponding last / without
2914 intervening spaces and tabs.
2915 (install-plugin): Treat common/config headers like config headers.
2916 * config/i386/t-i386 (TM_H): Add
2917 $(srcdir)/common/config/i386/i386-cpuinfo.h.
2919 2020-10-23 Jakub Jelinek <jakub@redhat.com>
2921 PR tree-optimization/97164
2922 * stor-layout.c (layout_type): Also reject arrays where element size
2923 is constant, but not a multiple of element alignment.
2925 2020-10-23 Eric Botcazou <ebotcazou@adacore.com>
2927 * tree-ssa-loop-ivopts.c (analyze_and_mark_doloop_use): Bail out if
2928 the loop is subject to a pragma Unroll with no specific count.
2930 2020-10-23 Dennis Zhang <dennis.zhang@arm.com>
2932 * config/arm/mve.md (mve_vsubq<mode>): New entry for vsub instruction
2933 using expression 'minus'.
2934 (mve_vsubq_f<mode>): Use minus instead of VSUBQ_F unspec.
2935 * config/arm/neon.md (sub<mode>3, sub<mode>3_fp16): Removed.
2936 (neon_vsub<mode>): Use gen_sub<mode>3 instead of gen_sub<mode>3_fp16.
2937 * config/arm/vec-common.md (sub<mode>3): Use the new mode macros
2938 ARM_HAVE_<MODE>_ARITH. Use iterator VDQ instead of VALL.
2940 2020-10-23 Martin Liska <mliska@suse.cz>
2943 * lto-wrapper.c (make_exists): New function.
2944 (run_gcc): Use it to check that make is present and working
2945 for parallel execution.
2947 2020-10-23 Richard Biener <rguenther@suse.de>
2950 2020-10-22 Richard Biener <rguenther@suse.de>
2953 * expr.c (expand_expr_real_1): Be more careful when
2954 expanding a VECTOR_BOOLEAN_TYPE_P VECTOR_CSTs.
2956 2020-10-23 Kewen Lin <linkw@linux.ibm.com>
2958 * tree-vect-loop.c (vect_transform_loop): Remove the redundant
2959 LOOP_VINFO_FULLY_MASKED_P check.
2961 2020-10-23 Dennis Zhang <dennis.zhang@arm.com>
2963 * config/arm/mve.md (mve_vsubq<mode>): New entry for vsub instruction
2964 using expression 'minus'.
2965 (mve_vsubq_f<mode>): Use minus instead of VSUBQ_F unspec.
2966 * config/arm/neon.md (sub<mode>3, sub<mode>3_fp16): Removed.
2967 (neon_vsub<mode>): Use gen_sub<mode>3 instead of gen_sub<mode>3_fp16.
2968 * config/arm/vec-common.md (sub<mode>3): Use the new mode macros
2969 ARM_HAVE_<MODE>_ARITH. Use iterator VDQ instead of VALL.
2971 2020-10-22 Alan Modra <amodra@gmail.com>
2973 * config/rs6000/rs6000.c (rs6000_emit_xxspltidp_v2df): Delete
2974 debug printf. Remove trailing ".\n" from inform message.
2977 2020-10-22 Andrew MacLeod <amacleod@redhat.com>
2979 * gimple-range-gori.cc (is_gimple_logical_p): Use types_compatible_p
2980 for logical compatibility.
2981 (logical_stmt_cache::cacheable_p): Ditto.
2983 2020-10-22 Jan Hubicka <hubicka@ucw.cz>
2985 * cgraph.c (cgraph_node::get_untransformed_body): Perform lazy
2986 clone materialization.
2987 * cgraph.h (cgraph_node::materialize_clone): Declare.
2988 (symbol_table::materialize_all_clones): Remove.
2989 * cgraphclones.c (cgraph_materialize_clone): Turn to ...
2990 (cgraph_node::materialize_clone): .. this one; move here
2991 dumping from symbol_table::materialize_all_clones.
2992 (symbol_table::materialize_all_clones): Remove.
2993 * cgraphunit.c (mark_functions_to_output): Clear stmt references.
2994 (cgraph_node::expand): Initialize bitmaps early;
2995 do not call execute_all_ipa_transforms if there are no transforms.
2996 * ipa-inline-transform.c (save_inline_function_body): Fix formating.
2997 (inline_transform): Materialize all clones before function is modified.
2998 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
2999 Materialize clone if needed.
3000 * ipa.c (class pass_materialize_all_clones): Remove.
3001 (make_pass_materialize_all_clones): Remove.
3002 * passes.c (execute_all_ipa_transforms): Materialize all clones.
3003 * passes.def: Remove pass_materialize_all_clones.
3004 * tree-pass.h (make_pass_materialize_all_clones): Remove.
3005 * tree-ssa-structalias.c (ipa_pta_execute): Clear refs.
3007 2020-10-22 Will Schmidt <will_schmidt@vnet.ibm.com>
3009 * config/rs6000/altivec.h (vec_xl_zext, vec_xl_sext, vec_xst_trunc):
3011 * config/rs6000/rs6000-builtin.def (BU_P10V_OVERLOAD_X): New builtin
3013 (BU_P10V_AV_X): New builtin macro.
3014 (se_lxvrhbx, se_lxrbhx, se_lxvrwx, se_lxvrdx): Define internal names
3015 for load and sign extend vector element.
3016 (ze_lxvrbx, ze_lxvrhx, ze_lxvrwx, ze_lxvrdx): Define internal names
3017 for load and zero extend vector element.
3018 (tr_stxvrbx, tr_stxvrhx, tr_stxvrwx, tr_stxvrdx): Define internal names
3019 for truncate and store vector element.
3020 (se_lxvrx, ze_lxvrx, tr_stxvrx): Define internal names for overloaded
3021 load/store rightmost element.
3022 * config/rs6000/rs6000-call.c (altivec_builtin_types): Define the
3023 internal monomorphs P10_BUILTIN_SE_LXVRBX, P10_BUILTIN_SE_LXVRHX,
3024 P10_BUILTIN_SE_LXVRWX, P10_BUILTIN_SE_LXVRDX,
3025 P10_BUILTIN_ZE_LXVRBX, P10_BUILTIN_ZE_LXVRHX, P10_BUILTIN_ZE_LXVRWX,
3026 P10_BUILTIN_ZE_LXVRDX,
3027 P10_BUILTIN_TR_STXVRBX, P10_BUILTIN_TR_STXVRHX, P10_BUILTIN_TR_STXVRWX,
3028 P10_BUILTIN_TR_STXVRDX,
3029 (altivec_expand_lxvr_builtin): New expansion for load element builtins.
3030 (altivec_expand_stv_builtin): Update to for truncate and store builtins.
3031 (altivec_expand_builtin): Add clases for load/store rightmost builtins.
3032 (altivec_init_builtins): Add def_builtin entries for
3033 __builtin_altivec_se_lxvrbx, __builtin_altivec_se_lxvrhx,
3034 __builtin_altivec_se_lxvrwx, __builtin_altivec_se_lxvrdx,
3035 __builtin_altivec_ze_lxvrbx, __builtin_altivec_ze_lxvrhx,
3036 __builtin_altivec_ze_lxvrwx, __builtin_altivec_ze_lxvrdx,
3037 __builtin_altivec_tr_stxvrbx, __builtin_altivec_tr_stxvrhx,
3038 __builtin_altivec_tr_stxvrwx, __builtin_altivec_tr_stxvrdx,
3039 __builtin_vec_se_lxvrx, __builtin_vec_ze_lxvrx, __builtin_vec_tr_stxvrx.
3040 * config/rs6000/vsx.md (vsx_lxvr<wd>x, vsx_stxvr<wd>x, vsx_stxvr<wd>x):
3041 New define_insn entries.
3042 * doc/extend.texi: Add documentation for vsx_xl_sext, vsx_xl_zext,
3045 2020-10-22 Will Schmidt <will_schmidt@vnet.ibm.com>
3047 * config/rs6000/vsx.md (enum unspec): Add
3048 UNSPEC_EXTENDDITI2 and UNSPEC_MTVSRD_DITI_W1 entries.
3049 (mtvsrdd_diti_w1, extendditi2_vector): New define_insns.
3050 (extendditi2): New define_expand.
3052 2020-10-22 Alexandre Oliva <oliva@adacore.com>
3054 * config/i386/mingw-w64.h (TARGET_LIBC_HAS_FUNCTION): Enable
3055 sincos optimization.
3057 2020-10-22 Alan Modra <amodra@gmail.com>
3059 * config/rs6000/vsx.md (vec_cntmb_<mode>, vec_extract_<mode>),
3060 (vec_expand_<mode>): Replace <VSX_MM_SUFFIX> with <wd>.
3062 2020-10-22 Richard Biener <rguenther@suse.de>
3064 * tree-vect-slp.c (vect_analyze_slp_instance): Refactor so
3065 computing a vector type early is not needed, for store group
3066 splitting compute a new vector type based on the desired
3069 2020-10-22 Richard Biener <rguenther@suse.de>
3072 * expr.c (expand_expr_real_1): Be more careful when
3073 expanding a VECTOR_BOOLEAN_TYPE_P VECTOR_CSTs.
3075 2020-10-22 David Malcolm <dmalcolm@redhat.com>
3077 * ipa-modref-tree.c (selftest::test_insert_search_collapse): Fix
3079 (selftest::test_merge): Fix leaks.
3081 2020-10-22 Andreas Krebbel <krebbel@linux.ibm.com>
3084 * config/s390/vector.md ("vec_cmp<VI_HW:mode><VI_HW:mode>")
3085 ("vec_cmpu<VI_HW:mode><VI_HW:mode>"): New expanders.
3087 2020-10-22 Andreas Krebbel <krebbel@linux.ibm.com>
3089 PR rtl-optimization/97439
3090 * dfp.c (decimal_real_maxval): Set the sign flag in the
3093 2020-10-22 Martin Liska <mliska@suse.cz>
3096 * cfgexpand.c (stack_protect_decl_phase):
3097 Guard with lookup_attribute("no_stack_protector") at
3099 (expand_used_vars): Likewise here.
3100 * doc/extend.texi: Document no_stack_protector attribute.
3102 2020-10-22 Martin Liska <mliska@suse.cz>
3104 * cfgexpand.c: Move the enum to ...
3105 * coretypes.h (enum stack_protector): ... here.
3106 * function.c (assign_parm_adjust_stack_rtl): Use the stack_protector
3109 2020-10-22 Kito Cheng <kito.cheng@sifive.com>
3111 * config/riscv/multilib-generator: Add TODO, import itertools
3112 and functools.reduce.
3113 Handle expantion operator.
3114 (LONG_EXT_PREFIXES): New.
3115 (arch_canonicalize): Update comment and improve python3
3116 debuggability/compatibility.
3117 (add_underline_prefix): New.
3118 (_expand_combination): Ditto.
3120 (expand_combination): Ditto.
3122 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3124 * tree-ssa-phiopt.c (cond_removal_in_popcount_clz_ctz_pattern):
3125 For CLZ and CTZ tests, use type temporary instead of mode.
3127 2020-10-22 Jakub Jelinek <jakub@redhat.com>
3129 * config.gcc (x86_archs): Add samuel-2, nehemiah, c7 and esther.
3130 (x86_64_archs): Add eden-x2, nano, nano-1000, nano-2000, nano-3000,
3131 nano-x2, eden-x4, nano-x4, x86-64-v2, x86-64-v3 and x86-64-v4.
3132 (i[34567]86-*-* | x86_64-*-*): Only allow x86-64-v* as argument
3135 2020-10-22 Jan Hubicka <jh@suse.cz>
3137 * ipa-pure-const.c (funct_state_summary_t::insert): Free stale
3140 2020-10-22 Jan Hubicka <hubicka@ucw.cz>
3142 * cgraph.c: Include tree-nested.h
3143 (cgraph_node::create): Call maybe_record_nested_function.
3144 (cgraph_node::remove): Do not remove function from nested function
3146 (cgraph_node::dump): Update.
3147 (cgraph_node::unnest): Move to tree-nested.c
3148 (cgraph_node::verify_node): Update.
3149 (cgraph_c_finalize): Call nested_function_info::release.
3150 * cgraph.h (struct symtab_node): Remove nested function info.
3151 * cgraphclones.c (cgraph_node::create_clone): Do not clone nested
3153 * cgraphunit.c (cgraph_node::analyze): Update.
3154 (cgraph_node::expand): Do not worry about nested functions; they are
3156 (symbol_table::finalize_compilation_unit): Call
3157 nested_function_info::release.
3158 * gimplify.c: Include tree-nested.h
3159 (unshare_body): Update.
3160 (unvisit_body): Update.
3161 * omp-offload.c (omp_discover_implicit_declare_target): Update.
3162 * tree-nested.c: Include alloc-pool.h, tree-nested.h, symbol-summary.h
3163 (nested_function_sum): New static variable.
3164 (nested_function_info::get): New member function.
3165 (nested_function_info::get_create): New member function.
3166 (unnest_function): New function.
3167 (nested_function_info::~nested_function_info): New member function.
3168 (nested_function_info::release): New function.
3169 (maybe_record_nested_function): New function.
3170 (lookup_element_for_decl): Update.
3171 (check_for_nested_with_variably_modified): Update.
3172 (create_nesting_tree): Update.
3173 (unnest_nesting_tree_1): Update.
3174 (gimplify_all_functions): Update.
3175 (lower_nested_functions): Update.
3176 * tree-nested.h (class nested_function_info): New class.
3177 (maybe_record_nested_function): Declare.
3178 (unnest_function): Declare.
3179 (first_nested_function): New inline function.
3180 (next_nested_function): New inline function.
3181 (nested_function_origin): New inline function.
3183 2020-10-22 liuhongt <hongtao.liu@intel.com>
3185 PR rtl-optimization/97249
3186 * simplify-rtx.c (simplify_binary_operation_1): Simplify
3187 vec_select of a subreg of X to a vec_select of X.
3189 2020-10-22 liuhongt <hongtao.liu@intel.com>
3192 * config/i386/constraints.md ("Br"): New special memory
3194 * config/i386/i386-expand.c (ix86_binary_operator_ok): Both
3195 source operand cannot be in memory or bcst_memory_operand.
3196 * config/i386/i386.c (ix86_print_operand): Print bcst_mem_operand.
3197 * config/i386/i386.h (VALID_BCST_MODE_P): New.
3198 * config/i386/predicates.md (bcst_mem_operand): New predicate
3199 for AVX512 embedding broadcast memory operand.
3200 (bcst_vector_operand): New predicate, vector_operand or
3202 * config/i386/sse.md
3203 (*<plusminus_insn><mode>3<mask_name><round_name>): Extend
3204 predicate and constraints to handle bcst_mem_operand.
3205 (*mul<mode>3<mask_name><round_name>): Ditto.
3206 (<sse>_div<mode>3<mask_name><round_name>): Ditto.
3207 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
3209 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
3211 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
3213 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
3215 (*<plusminus_insn><mode>3): Ditto.
3216 (avx512dq_mul<mode>3<mask_name>): Ditto.
3217 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
3218 (*andnot<mode>3): Ditto.
3219 (<mask_codefor><code><mode>3<mask_name>): Ditto.
3220 (*sub<mode>3<mask_name>_bcst): Removed.
3221 (*add<mode>3<mask_name>_bcst): Ditto.
3222 (*mul<mode>3<mask_name>_bcst): Ditto.
3223 (*<avx512>_div<mode>3<mask_name>_bcst): Ditto.
3224 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1):
3226 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2):
3228 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3):
3230 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1):
3232 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2):
3234 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3):
3236 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1):
3238 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2):
3240 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3):
3242 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1):
3244 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2):
3246 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3):
3248 (*sub<mode>3_bcst): Ditto.
3249 (*add<mode>3_bcst): Ditto.
3250 (*avx512dq_mul<mode>3<mask_name>_bcst): Ditto.
3251 (*avx512f_mul<mode>3<mask_name>_bcst): Ditto.
3252 (*andnot<mode>3_bcst): Ditto.
3253 (*<code><mode>3_bcst): Ditto.
3254 * config/i386/subst.md (bcst_round_constraint): New subst
3256 (bcst_round_nimm_predicate): Ditto.
3257 (bcst_mask_prefix3): Ditto.
3258 (bcst_mask_prefix4): Ditto.
3260 2020-10-22 liuhongt <hongtao.liu@intel.com>
3263 * ira-costs.c (record_operand_costs): Extract memory operand
3264 from recog_data.operand[i] for record_address_regs.
3265 (record_reg_classes): Extract memory operand from OP for
3266 conditional judgement MEM_P.
3267 * ira.c (ira_setup_alts): Ditto.
3268 * lra-constraints.c (extract_mem_from_operand): New function.
3269 (satisfies_memory_constraint_p): Extract memory operand from
3270 OP for decompose_mem_address, return false when there's no
3271 memory operand inside OP.
3272 (process_alt_operands): Remove MEM_P (op) since it would be
3273 judged in satisfies_memory_constraint_p.
3274 * recog.c (asm_operand_ok): Extract memory operand from OP for
3275 judgement of memory_operand (OP, VOIDmode).
3276 (constrain_operands): Don't unwrapper unary operator when
3277 there's memory operand inside.
3278 * rtl.h (extract_mem_from_operand): New decl.
3280 2020-10-22 Dennis Zhang <dennis.zhang@arm.com>
3282 * config/arm/mve.md (mve_vmaxq_<supf><mode>): Replace with ...
3283 (mve_vmaxq_s<mode>, mve_vmaxq_u<mode>): ... these new insns to
3284 use smax/umax instead of VMAXQ.
3285 (mve_vminq_<supf><mode>): Replace with ...
3286 (mve_vminq_s<mode>, mve_vminq_u<mode>): ... these new insns to
3287 use smin/umin instead of VMINQ.
3288 (mve_vmaxnmq_f<mode>): Use smax instead of VMAXNMQ_F.
3289 (mve_vminnmq_f<mode>): Use smin instead of VMINNMQ_F.
3290 * config/arm/vec-common.md (smin<mode>3): Use the new mode macros
3291 ARM_HAVE_<MODE>_ARITH.
3292 (umin<mode>3, smax<mode>3, umax<mode>3): Likewise.
3294 2020-10-22 Andrew MacLeod <amacleod@redhat.com>
3296 PR tree-optimization/97520
3297 * gimple-range.cc (range_of_non_trivial_assignment): Handle x = &a
3298 by returning a non-zero range.
3300 2020-10-22 Dennis Zhang <dennis.zhang@arm.com>
3302 * config/arm/mve.md (mve_vmulq<mode>): New entry for vmul instruction
3303 using expression 'mult'.
3304 (mve_vmulq_f<mode>): Use mult instead of VMULQ_F.
3305 * config/arm/neon.md (mul<mode>3): Removed.
3306 * config/arm/vec-common.md (mul<mode>3): Use the new mode macros
3307 ARM_HAVE_<MODE>_ARITH. Use mode iterator VDQWH instead of VALLW.
3309 2020-10-22 Andrew MacLeod <amacleod@redhat.com>
3311 PR tree-optimization/97515
3312 * value-query.cc (range_query::value_of_expr): If the result is
3313 UNDEFINED, check to see if the global value is a constant.
3314 (range_query::value_on_edge): Ditto.
3316 2020-10-21 Jan Hubicka <hubicka@ucw.cz>
3319 * ipa-inline.c (inline_insns_single): Add hint2 parameter.
3320 (inline_insns_auto): Add hint2 parameter.
3321 (can_inline_edge_by_limits_p): Update.
3322 (want_inline_small_function_p): Update.
3323 (wrapper_heuristics_may_apply): Update.
3325 2020-10-21 Richard Biener <rguenther@suse.de>
3326 Andrew MacLeod <amacleod@redhat.com>
3327 Martin Liska <mliska@suse.cz>
3330 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove call to
3331 build_distinct_type_copy().
3333 2020-10-21 Jan Hubicka <jh@suse.cz>
3336 * ipa-fnsummary.c (ipa_dump_hints): Add INLINE_HINT_builtin_constant_p.
3337 (ipa_fn_summary::~ipa_fn_summary): Free builtin_constant_p_parms.
3338 (ipa_fn_summary_t::duplicate): Duplicate builtin_constant_p_parms.
3339 (ipa_dump_fn_summary): Dump builtin_constant_p_parms.
3340 (add_builtin_constant_p_parm): New function
3341 (set_cond_stmt_execution_predicate): Update builtin_constant_p_parms.
3342 (ipa_call_context::estimate_size_and_time): Set
3343 INLINE_HINT_builtin_constant_p..
3344 (ipa_merge_fn_summary_after_inlining): Merge builtin_constant_p_parms.
3345 (inline_read_section): Read builtin_constant_p_parms.
3346 (ipa_fn_summary_write): Write builtin_constant_p_parms.
3347 * ipa-fnsummary.h (enum ipa_hints_vals): Add
3348 INLINE_HINT_builtin_constant_p.
3349 * ipa-inline.c (want_inline_small_function_p): Use
3350 INLINE_HINT_builtin_constant_p.
3351 (edge_badness): Use INLINE_HINT_builtin_constant_p.
3353 2020-10-21 Douglas Rupp <rupp@adacore.com>
3355 * config/vx-common.h (LINK_SPEC, LIB_SPEC): Remove #undef.
3357 2020-10-21 Douglas Rupp <rupp@adacore.com>
3358 Olivier Hainque <hainque@adacore.com>
3360 * config.gcc (powerpc*-wrs-vxworks7r*): New case.
3361 * config/rs6000/vxworks.h: Rework to handle VxWorks7.
3362 Refactor as common bits + vx6 vs vx7 ones. For the
3363 latter, rely essentially on the Linux configuration
3364 and adjust CPU to _VX_CPU in CPP_SPEC. Add a case
3365 for e6500. Use SUB3TARGET_OVERRIDE_OPTIONS for specifics
3366 to preserve the Linux SUBSUBTARGET_OVERRIDE_OPTIONS
3369 2020-10-21 Richard Biener <rguenther@suse.de>
3371 PR tree-optimization/97500
3372 * tree-vect-slp.c (vect_analyze_slp_backedges): Do not
3373 fill backedges for inductions.
3375 2020-10-21 liuhongt <hongtao.liu@intel.com>
3378 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Move
3379 op_true to dest directly when op_true equals op_false.
3381 2020-10-21 Jakub Jelinek <jakub@redhat.com>
3383 PR tree-optimization/97503
3384 * tree-ssa-phiopt.c: Include internal-fn.h.
3385 (cond_removal_in_popcount_pattern): Rename to ...
3386 (cond_removal_in_popcount_clz_ctz_pattern): ... this. Handle not just
3387 popcount, but also clz and ctz if it has C?Z_DEFINED_VALUE_AT_ZERO 2.
3389 2020-10-21 Richard Biener <rguenther@suse.de>
3391 * cfg.c (htab_bb_copy_original_entry): Remove.
3392 (bb_copy_hasher): Likewise.
3393 (bb_original, bb_copy, loop_copy): Use
3394 hash_map<int_hash<int, -1, -2>, int>.
3395 (original_copy_bb_pool): Remove.
3396 (initialize_original_copy_tables): Adjust.
3397 (reset_original_copy_tables): Likewise.
3398 (free_original_copy_tables): Likewise.
3399 (original_copy_tables_initialized_p): Likewise.
3400 (copy_original_table_clear): Simplify.
3401 (copy_original_table_set): Likewise.
3402 (get_bb_original): Likewise.
3403 (get_bb_copy): Likewise.
3404 (get_loop_copy): Likewise.
3406 2020-10-21 Richard Biener <rguenther@suse.de>
3408 * cfghooks.c (copy_bbs): Split out loop computing new_edges.
3410 2020-10-21 Aldy Hernandez <aldyh@redhat.com>
3412 * gimple-range.cc (gimple_ranger::range_of_ssa_name_with_loop_info):
3413 Remove TREE_OVERFLOW special case.
3414 * vr-values.c (bounds_of_var_in_loop): Adjust overflow for
3417 2020-10-21 Aldy Hernandez <aldyh@redhat.com>
3419 * vr-values.h: Remove simplify_cond_using_ranges_2.
3420 (range_fits_type_p): New.
3421 * vr-values.c (range_fits_type_p): Remove static qualifier.
3422 (vrp_simplify_cond_using_ranges): Move...
3423 * tree-vrp.c (vrp_simplify_cond_using_ranges): ...to here.
3425 2020-10-20 Andrew MacLeod <amacleod@redhat.com>
3427 PR tree-optimization/97505
3428 * vr-values.c (vr_values::extract_range_basic): Trap if
3429 vr_values version disagrees with range_of_builtin_call.
3431 2020-10-20 David Edelsohn <dje.gcc@gmail.com>
3433 * config/rs6000/rs6000.c (rs6000_option_override_internal):
3434 Don't implcitly enable Altivec ABI if set on the command line.
3436 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3438 * calls.c (get_size_range): Adjust to work with ranger.
3439 * calls.h (get_size_range): Add ranger argument to prototype.
3440 * gimple-ssa-warn-restrict.c (class wrestrict_dom_walker): Remove.
3441 (check_call): Pull out of wrestrict_dom_walker into a
3443 (wrestrict_dom_walker::before_dom_children): Rename to...
3444 (wrestrict_walk): ...this.
3445 (pass_wrestrict::execute): Instantiate ranger.
3446 (class builtin_memref): Add stmt and query fields.
3447 (builtin_access::builtin_access): Add range_query field.
3448 (builtin_memref::builtin_memref): Same.
3449 (builtin_memref::extend_offset_range): Same.
3450 (builtin_access::builtin_access): Make work with ranger.
3451 (wrestrict_dom_walker::check_call): Pull out into...
3452 (check_call): ...here.
3453 (check_bounds_or_overlap): Add range_query argument.
3454 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap):
3455 Add range_query and gimple stmt arguments.
3457 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3459 * gimple-ssa-warn-alloca.c (enum alloca_type): Remove
3460 ALLOCA_BOUND_UNKNOWN and ALLOCA_CAST_FROM_SIGNED.
3461 (warn_limit_specified_p): New.
3462 (alloca_call_type_by_arg): Remove.
3463 (cast_from_signed_p): Remove.
3465 (alloca_call_type): Remove heuristics and replace with call into
3467 (pass_walloca::execute): Instantiate ranger.
3469 2020-10-20 Tobias Burnus <tobias@codesourcery.com>
3471 * lto-wrapper.c (run_gcc): Use proper variable for
3472 %u.ltrans_args dump suffix.
3474 2020-10-20 Zhiheng Xie <xiezhiheng@huawei.com>
3475 Nannan Zheng <zhengnannan@huawei.com>
3477 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
3478 for get/set reg intrinsics.
3480 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3482 * gimple-range.cc (gimple_ranger::range_of_builtin_ubsan_call):
3483 Make externally visble...
3484 (range_of_builtin_ubsan_call): ...here. Add range_query argument.
3485 (gimple_ranger::range_of_builtin_call): Make externally visible...
3486 (range_of_builtin_call): ...here. Add range_query argument.
3487 * gimple-range.h (range_of_builtin_call): Move out from class and
3488 make externally visible.
3489 * vr-values.c (vr_values::extract_range_basic): Abstract out
3490 builtin handling to...
3491 (vr_values::range_of_expr): Handle non SSAs.
3492 (vr_values::extract_range_builtin): ...here.
3493 * vr-values.h (class vr_values): Add extract_range_builtin.
3494 (range_of_expr): Rename NAME to EXPR.
3496 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3498 PR tree-optimization/97501
3499 * gimple-range.cc (gimple_ranger::range_of_ssa_name_with_loop_info):
3500 Saturate overflows returned from SCEV.
3502 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3504 * value-range.cc (irange::operator=): Split up call to
3505 copy_legacy_range into...
3506 (irange::copy_to_legacy): ...this.
3507 (irange::copy_legacy_to_multi_range): ...and this.
3508 (irange::copy_legacy_range): Remove.
3509 * value-range.h: Remove copoy_legacy_range.
3510 Add copy_legacy_to_multi_range and copy_to_legacy.
3512 2020-10-20 Tobias Burnus <tobias@codesourcery.com>
3514 * doc/invoke.texi (NVPTX options): Use @item not @itemx.
3516 2020-10-20 Richard Biener <rguenther@suse.de>
3518 * tree-cfg.c (reinstall_phi_args): Remove.
3519 (gimple_split_edge): Remove PHIs around the edge redirection
3520 to avoid touching them at all.
3522 2020-10-20 Richard Biener <rguenther@suse.de>
3524 * tree-vect-loop.c (vectorizable_reduction): Use the correct
3525 loops latch edge for the PHI arg lookup.
3527 2020-10-20 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3529 * config/msp430/msp430.md (andneghi3): Allow general operand for
3530 op1 and update output assembler template.
3532 2020-10-20 Tobias Burnus <tobias@codesourcery.com>
3534 * collect-utils.c (collect_execute, fork_execute): Add at-file suffix
3536 * collect-utils.h (collect_execute, fork_execute): Update prototype.
3537 * collect2.c (maybe_run_lto_and_relink, do_link, main, do_dsymutil):
3538 Update calls by passing NULL.
3539 * config/i386/intelmic-mkoffload.c (compile_for_target,
3540 generate_host_descr_file, prepare_target_image, main): Likewise.
3541 * config/gcn/mkoffload.c (compile_native, main): Pass at-file suffix.
3542 * config/nvptx/mkoffload.c (compile_native, main): Likewise.
3543 * lto-wrapper.c (compile_offload_image): Likewise.
3545 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3547 * range-op.cc (operator_rshift::op1_range): Special case
3550 2020-10-20 Richard Biener <rguenther@suse.de>
3552 PR tree-optimization/97496
3553 * tree-vect-slp.c (vect_get_and_check_slp_defs): Guard extern
3554 promotion with not in pattern.
3556 2020-10-20 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
3558 * config/s390/s390.c (s390_expand_vec_strlen): Add alignment
3559 for memory access inside loop.
3561 2020-10-19 Andrew MacLeod <amacleod@redhat.com>
3563 PR tree-optimization/97360
3564 * gimple-range.h (range_compatible_p): New.
3565 * gimple-range-gori.cc (is_gimple_logical_p): Use range_compatible_p.
3566 (range_is_either_true_or_false): Ditto.
3567 (gori_compute::outgoing_edge_range_p): Cast result to the correct
3569 (logical_stmt_cache::cacheable_p): Use range_compatible_p.
3570 * gimple-range.cc (gimple_ranger::calc_stmt): Check range_compatible_p
3571 before casting the range.
3572 (gimple_ranger::range_on_exit): Use range_compatible_p.
3573 (gimple_ranger::range_on_edge): Ditto.
3575 2020-10-19 Martin Jambor <mjambor@suse.cz>
3577 PR tree-optimization/97456
3578 * tree-complex.c (set_component_ssa_name): Do not replace ignored decl
3579 default definitions with new component vars. Reorder if conditions.
3581 2020-10-19 David Edelsohn <dje.gcc@gmail.com>
3583 * config/rs6000/vsx.md (vextract_fp_from_shorth): Fix vals_be.
3584 (vextract_fp_from_shortl) Same.
3586 2020-10-19 Aldy Hernandez <aldyh@redhat.com>
3588 PR tree-optimization/97488
3589 * range-op.cc (operator_lshift::op1_range): Handle large right shifts.
3591 2020-10-19 Martin Liska <mliska@suse.cz>
3593 * ipa-modref.c (compute_parm_map): Clear vector.
3595 2020-10-19 Richard Biener <rguenther@suse.de>
3597 PR tree-optimization/97486
3598 * tree-vect-slp.c (vect_slp_function): Split after stmts
3601 2020-10-19 Jonathan Wakely <jwakely@redhat.com>
3603 * doc/invoke.texi (OPptimize Options): Add missing closing
3606 2020-10-19 Aldy Hernandez <aldyh@redhat.com>
3608 PR tree-optimization/97467
3609 * range-op.cc (operator_lshift::op1_range): Handle shifts by 0.
3611 2020-10-19 Richard Biener <rguenther@suse.de>
3613 PR tree-optimization/97466
3614 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
3615 spurious assert, re-indent.
3617 2020-10-19 Li Jia He <helijia@gcc.gnu.org>
3619 PR tree-optimization/66552
3620 * match.pd (x << (n % C) -> x << (n & C-1)): New simplification.
3622 2020-10-19 Richard Biener <rguenther@suse.de>
3624 * tree-cfg.c (verify_gimple_comparison): Drop special-case
3625 for pointer comparison.
3627 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
3629 * vr-values.c (dump_all_value_ranges): Only dump names which are
3632 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
3634 * range-op.cc (pointer_plus_operator::wi_fold): Make pointer_plus
3635 [0, 0] + const return a [const, const] range.
3637 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
3639 * gimple-ssa-evrp.c (hybrid_folder::value_on_edge): Call
3640 evrp_folder::value_of_expr directly.
3641 (hybrid_folder::value_of_stmt): Ditto.
3643 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
3645 PR tree-optimization/97462
3646 * range-op.cc (operator_lshift::op1_range): Don't trap on negative
3649 2020-10-16 Olivier Hainque <hainque@adacore.com>
3651 * config/vxworks.h (VX_CRTBEGIN_SPEC): Likewise.
3653 2020-10-16 Olivier Hainque <hainque@adacore.com>
3655 * config/vxworks/_vxworks-versions.h: Only include
3656 version.h if _WRS_VXWORKS_MAJOR is not defined.
3657 Provide a default _WRS_VXWORKS_MINOR (0).
3659 2020-10-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3662 * config/arm/arm.c (fp_bitlist): Add isa_bit_mve_float to FP bits array.
3664 2020-10-16 Richard Biener <rguenther@suse.de>
3666 * tree-vect-slp.c (vect_get_and_check_slp_defs): For BB
3667 vectorization swap operands only if it helps, demote mismatches to
3670 2020-10-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3673 * config/arm/arm-builtins.c (arm_strsbwbs_qualifiers): Modify array.
3674 (arm_strsbwbu_qualifiers): Likewise.
3675 (arm_strsbwbs_p_qualifiers): Likewise.
3676 (arm_strsbwbu_p_qualifiers): Likewise.
3677 * config/arm/arm_mve.h (__arm_vstrdq_scatter_base_wb_s64): Modify
3678 function definition.
3679 (__arm_vstrdq_scatter_base_wb_u64): Likewise.
3680 (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
3681 (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
3682 (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
3683 (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
3684 (__arm_vstrwq_scatter_base_wb_s32): Likewise.
3685 (__arm_vstrwq_scatter_base_wb_u32): Likewise.
3686 (__arm_vstrwq_scatter_base_wb_f32): Likewise.
3687 (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
3688 * config/arm/arm_mve_builtins.def (vstrwq_scatter_base_wb_add_u): Remove
3689 expansion for the builtin.
3690 (vstrwq_scatter_base_wb_add_s): Likewise.
3691 (vstrwq_scatter_base_wb_add_f): Likewise.
3692 (vstrdq_scatter_base_wb_add_u): Likewise.
3693 (vstrdq_scatter_base_wb_add_s): Likewise.
3694 (vstrwq_scatter_base_wb_p_add_u): Likewise.
3695 (vstrwq_scatter_base_wb_p_add_s): Likewise.
3696 (vstrwq_scatter_base_wb_p_add_f): Likewise.
3697 (vstrdq_scatter_base_wb_p_add_u): Likewise.
3698 (vstrdq_scatter_base_wb_p_add_s): Likewise.
3699 * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Remove
3701 (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
3702 (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Rename pattern to ...
3703 (mve_vstrwq_scatter_base_wb_<supf>v4si): This.
3704 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Remove expand.
3705 (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
3706 (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Rename pattern to ...
3707 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): This.
3708 (mve_vstrwq_scatter_base_wb_fv4sf): Remove expand.
3709 (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
3710 (mve_vstrwq_scatter_base_wb_fv4sf_insn): Rename pattern to ...
3711 (mve_vstrwq_scatter_base_wb_fv4sf): This.
3712 (mve_vstrwq_scatter_base_wb_p_fv4sf): Remove expand.
3713 (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
3714 (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Rename pattern to ...
3715 (mve_vstrwq_scatter_base_wb_p_fv4sf): This.
3716 (mve_vstrdq_scatter_base_wb_<supf>v2di): Remove expand.
3717 (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
3718 (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Rename pattern to ...
3719 (mve_vstrdq_scatter_base_wb_<supf>v2di): This.
3720 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Remove expand.
3721 (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
3722 (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Rename pattern to ...
3723 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): This.
3725 2020-10-16 Kito Cheng <kito.cheng@sifive.com>
3727 * config/riscv/multilib-generator (IMPLIED_EXT): New.
3728 (arch_canonicalize): Update comment and handle implied extensions.
3730 2020-10-16 Richard Biener <rguenther@suse.de>
3732 * tree-vect-slp.c (vect_get_and_check_slp_defs): First analyze
3733 all operands and fill in the def_stmts and ops entries.
3734 (vect_def_types_match): New helper.
3736 2020-10-16 Martin Liska <mliska@suse.cz>
3739 * ipa-prop.c (struct ipa_vr_ggc_hash_traits):
3740 Compare types of VRP as we can merge ranges of different types.
3742 2020-10-16 Richard Biener <rguenther@suse.de>
3744 PR tree-optimization/97428
3745 * tree-vect-slp.c (vect_analyze_slp_instance): Split store
3746 groups also for loop vectorization.
3748 2020-10-15 Tom de Vries <tdevries@suse.de>
3751 * config/nvptx/nvptx.opt (m32): Comment out.
3752 * doc/invoke.texi (NVPTX options): Remove -m32.
3754 2020-10-15 Jan Hubicka <hubicka@ucw.cz>
3755 Richard Biener <rguenther@suse.de>
3757 * attr-fnspec.h: Fix toplevel comment.
3759 2020-10-15 Richard Biener <rguenther@suse.de>
3761 * tree-pretty-print.c (dump_mem_ref): Print constant offset
3762 also for TARGET_MEM_REF.
3764 2020-10-15 Jan Hubicka <jh@suse.cz>
3766 * symtab.c (symtab_node::binds_to_current_def_p): Also accept symbols
3767 defined in other partition.
3769 2020-10-15 Richard Biener <rguenther@suse.de>
3771 * tree-vect-loop.c (vectorizable_live_operation): Adjust
3774 2020-10-15 Richard Biener <rguenther@suse.de>
3776 PR tree-optimization/97482
3777 * tree-data-ref.c (split_constant_offset_1): Handle
3778 trivial conversions better.
3779 * fold-const.c (convert_to_ptrofftype_loc): Elide conversion
3780 if the offset is already ptrofftype_p.
3782 2020-10-15 Martin Liska <mliska@suse.cz>
3785 * profile-count.c (profile_count::to_frequency): Move part of
3786 gcc_assert to STATIC_ASSERT.
3787 * regs.h (REG_FREQ_FROM_BB): Do not use count.to_frequency for
3788 a function that does not have count_max initialized.
3790 2020-10-15 Jakub Jelinek <jakub@redhat.com>
3792 * params.opt (-param-ipa-jump-function-lookups=): Add full stop at
3793 the end of the parameter description.
3795 2020-10-15 Kito Cheng <kito.cheng@sifive.com>
3797 * common/config/riscv/riscv-common.c (riscv_cpu_tables): New.
3798 (riscv_arch_str): Return empty string if current_subset_list
3800 (riscv_find_cpu): New.
3801 (riscv_handle_option): Verify option value of -mcpu.
3802 (riscv_expand_arch): Using std::string.
3803 (riscv_default_mtune): New.
3804 (riscv_expand_arch_from_cpu): Ditto.
3805 * config/riscv/riscv-cores.def: New.
3806 * config/riscv/riscv-protos.h (riscv_find_cpu): New.
3807 (riscv_cpu_info): New.
3808 * config/riscv/riscv.c (riscv_tune_info): Rename ...
3809 (riscv_tune_param): ... to this.
3810 (riscv_cpu_info): Rename ...
3811 (riscv_tune_info): ... to this.
3812 (tune_info): Rename ...
3813 (tune_param): ... to this.
3814 (rocket_tune_info): Update data type name.
3815 (sifive_7_tune_info): Ditto.
3816 (optimize_size_tune_info): Ditto.
3817 (riscv_cpu_info_table): Rename ...
3818 (riscv_tune_info_table): ... to this.
3819 (riscv_parse_cpu): Rename ...
3820 (riscv_parse_tune): ... to this, and translate valid -mcpu option to
3822 (riscv_rtx_costs): Rename tune_info to tune_param.
3823 (riscv_class_max_nregs): Ditto.
3824 (riscv_memory_move_cost): Ditto.
3825 (riscv_init_machine_status): Use value of -mcpu if -mtune is not
3826 given, and rename tune_info to tune_param.
3827 * config/riscv/riscv.h (riscv_expand_arch_from_cpu): New.
3828 (riscv_default_mtune): Ditto.
3829 (EXTRA_SPEC_FUNCTIONS): Add riscv_expand_arch_from_cpu and
3830 riscv_default_mtune.
3831 (OPTION_DEFAULT_SPECS): Handle default value of -march/-mabi.
3832 (DRIVER_SELF_SPECS): Expand -march from -mcpu if -march is not
3834 * config/riscv/riscv.opt (-mcpu): New option.
3835 * config/riscv/t-riscv ($(common_out_file)): Add
3836 riscv-cores.def to dependency.
3837 * doc/invoke.texi (RISC-V Option): Add -mcpu, and update the
3838 description of default value for -mtune and -march.
3840 2020-10-15 Hongyu Wang <hongyu.wang@intel.com>
3842 * common/config/i386/cpuinfo.h (get_available_features):
3844 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_HRESET_SET,
3845 OPTION_MASK_ISA2_HRESET_UNSET): New macros.
3846 (ix86_handle_option): Handle -mhreset.
3847 * common/config/i386/i386-cpuinfo.h (enum processor_features):
3849 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
3851 * config.gcc: Add hresetintrin.h
3852 * config/i386/hresetintrin.h: New header file.
3853 * config/i386/x86gprintrin.h: Include hresetintrin.h.
3854 * config/i386/cpuid.h (bit_HRESET): New.
3855 * config/i386/i386-builtin.def: Add new builtin.
3856 * config/i386/i386-expand.c (ix86_expand_builtin):
3858 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3860 * config/i386/i386-options.c (isa2_opts): Add -mhreset.
3861 (ix86_valid_target_attribute_inner_p): Handle hreset.
3862 * config/i386/i386.h (TARGET_HRESET, TARGET_HRESET_P,
3864 (PTA_ALDERLAKE): Add PTA_HRESET.
3865 * config/i386/i386.opt: Add option -mhreset.
3866 * config/i386/i386.md (UNSPECV_HRESET): New unspec.
3867 (hreset): New define_insn.
3868 * doc/invoke.texi: Document -mhreset.
3869 * doc/extend.texi: Document hreset.
3871 2020-10-15 Hongtao Liu <hongtao.liu@intel.com>
3873 * common/config/i386/cpuinfo.h (get_available_features):
3875 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_UINTR_SET
3876 OPTION_MASK_ISA2_UINTR_UNSET): New.
3877 (ix86_handle_option): Handle -muintr.
3878 * common/config/i386/i386-cpuinfo.h (enum processor_features):
3880 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
3882 * config.gcc: Add uintrintrin.h to extra_headers.
3883 * config/i386/uintrintrin.h: New.
3884 * config/i386/cpuid.h (bit_UINTR): New.
3885 * config/i386/i386-builtin-types.def: Add new types.
3886 * config/i386/i386-builtin.def: Add new builtins.
3887 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins): Add
3888 __builtin_ia32_testui.
3889 * config/i386/i386-builtins.h (ix86_builtins): Add
3890 IX86_BUILTIN_TESTUI.
3891 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3893 * config/i386/i386-expand.c (ix86_expand_special_args_builtin):
3894 Handle UINT8_FTYPE_VOID.
3895 (ix86_expand_builtin): Handle IX86_BUILTIN_TESTUI.
3896 * config/i386/i386-options.c (isa2_opts): Add -muintr.
3897 (ix86_valid_target_attribute_inner_p): Handle UINTR.
3898 (ix86_option_override_internal): Add TARGET_64BIT check for UINTR.
3899 * config/i386/i386.h (TARGET_UINTR, TARGET_UINTR_P, PTA_UINTR): New.
3900 (PTA_SAPPHIRRAPIDS): Add PTA_UINTR.
3901 * config/i386/i386.opt: Add -muintr.
3902 * config/i386/i386.md
3903 (define_int_iterator UINTR_UNSPECV): New.
3904 (define_int_attr uintr_unspecv): New.
3905 (uintr_<uintr_unspecv>, uintr_senduipi, testui):
3906 New define_insn patterns.
3907 * config/i386/x86gprintrin.h: Include uintrintrin.h
3908 * doc/invoke.texi: Document -muintr.
3909 * doc/extend.texi: Document uintr.
3911 2020-10-14 Martin Sebor <msebor@redhat.com>
3914 * builtins.c (gimple_parm_array_size): Peel off one less layer
3917 2020-10-14 Martin Sebor <msebor@redhat.com>
3920 * attribs.c (init_attr_rdwr_indices): Unwrap extra list layer.
3922 2020-10-14 Sunil K Pandey <skpgkp2@gmail.com>
3925 * config/i386/avx2intrin.h (_mm_broadcastsi128_si256): New intrinsics.
3926 (_mm_broadcastsd_pd): Ditto.
3927 * config/i386/avx512bwintrin.h (_mm512_loadu_epi16): New intrinsics.
3928 (_mm512_storeu_epi16): Ditto.
3929 (_mm512_loadu_epi8): Ditto.
3930 (_mm512_storeu_epi8): Ditto.
3931 * config/i386/avx512dqintrin.h (_mm_reduce_round_sd): New intrinsics.
3932 (_mm_mask_reduce_round_sd): Ditto.
3933 (_mm_maskz_reduce_round_sd): Ditto.
3934 (_mm_reduce_round_ss): Ditto.
3935 (_mm_mask_reduce_round_ss): Ditto.
3936 (_mm_maskz_reduce_round_ss): Ditto.
3937 (_mm512_reduce_round_pd): Ditto.
3938 (_mm512_mask_reduce_round_pd): Ditto.
3939 (_mm512_maskz_reduce_round_pd): Ditto.
3940 (_mm512_reduce_round_ps): Ditto.
3941 (_mm512_mask_reduce_round_ps): Ditto.
3942 (_mm512_maskz_reduce_round_ps): Ditto.
3943 * config/i386/avx512erintrin.h
3944 (_mm_mask_rcp28_round_sd): New intrinsics.
3945 (_mm_maskz_rcp28_round_sd): Ditto.
3946 (_mm_mask_rcp28_round_ss): Ditto.
3947 (_mm_maskz_rcp28_round_ss): Ditto.
3948 (_mm_mask_rsqrt28_round_sd): Ditto.
3949 (_mm_maskz_rsqrt28_round_sd): Ditto.
3950 (_mm_mask_rsqrt28_round_ss): Ditto.
3951 (_mm_maskz_rsqrt28_round_ss): Ditto.
3952 (_mm_mask_rcp28_sd): Ditto.
3953 (_mm_maskz_rcp28_sd): Ditto.
3954 (_mm_mask_rcp28_ss): Ditto.
3955 (_mm_maskz_rcp28_ss): Ditto.
3956 (_mm_mask_rsqrt28_sd): Ditto.
3957 (_mm_maskz_rsqrt28_sd): Ditto.
3958 (_mm_mask_rsqrt28_ss): Ditto.
3959 (_mm_maskz_rsqrt28_ss): Ditto.
3960 * config/i386/avx512fintrin.h (_mm_mask_sqrt_sd): New intrinsics.
3961 (_mm_maskz_sqrt_sd): Ditto.
3962 (_mm_mask_sqrt_ss): Ditto.
3963 (_mm_maskz_sqrt_ss): Ditto.
3964 (_mm_mask_scalef_sd): Ditto.
3965 (_mm_maskz_scalef_sd): Ditto.
3966 (_mm_mask_scalef_ss): Ditto.
3967 (_mm_maskz_scalef_ss): Ditto.
3968 (_mm_mask_cvt_roundsd_ss): Ditto.
3969 (_mm_maskz_cvt_roundsd_ss): Ditto.
3970 (_mm_mask_cvt_roundss_sd): Ditto.
3971 (_mm_maskz_cvt_roundss_sd): Ditto.
3972 (_mm_mask_cvtss_sd): Ditto.
3973 (_mm_maskz_cvtss_sd): Ditto.
3974 (_mm_mask_cvtsd_ss): Ditto.
3975 (_mm_maskz_cvtsd_ss): Ditto.
3976 (_mm512_cvtsi512_si32): Ditto.
3977 (_mm_cvtsd_i32): Ditto.
3978 (_mm_cvtss_i32): Ditto.
3979 (_mm_cvti32_sd): Ditto.
3980 (_mm_cvti32_ss): Ditto.
3981 (_mm_cvtsd_i64): Ditto.
3982 (_mm_cvtss_i64): Ditto.
3983 (_mm_cvti64_sd): Ditto.
3984 (_mm_cvti64_ss): Ditto.
3985 * config/i386/avx512vlbwintrin.h (_mm256_storeu_epi8): New intrinsics.
3986 (_mm_storeu_epi8): Ditto.
3987 (_mm256_loadu_epi16): Ditto.
3988 (_mm_loadu_epi16): Ditto.
3989 (_mm256_loadu_epi8): Ditto.
3990 (_mm_loadu_epi8): Ditto.
3991 (_mm256_storeu_epi16): Ditto.
3992 (_mm_storeu_epi16): Ditto.
3993 * config/i386/avx512vlintrin.h (_mm256_load_epi64): New intrinsics.
3994 (_mm_load_epi64): Ditto.
3995 (_mm256_load_epi32): Ditto.
3996 (_mm_load_epi32): Ditto.
3997 (_mm256_store_epi32): Ditto.
3998 (_mm_store_epi32): Ditto.
3999 (_mm256_loadu_epi64): Ditto.
4000 (_mm_loadu_epi64): Ditto.
4001 (_mm256_loadu_epi32): Ditto.
4002 (_mm_loadu_epi32): Ditto.
4003 (_mm256_mask_cvt_roundps_ph): Ditto.
4004 (_mm256_maskz_cvt_roundps_ph): Ditto.
4005 (_mm_mask_cvt_roundps_ph): Ditto.
4006 (_mm_maskz_cvt_roundps_ph): Ditto.
4007 * config/i386/avxintrin.h (_mm256_cvtsi256_si32): New intrinsics.
4008 * config/i386/emmintrin.h (_mm_loadu_si32): New intrinsics.
4009 (_mm_loadu_si16): Ditto.
4010 (_mm_storeu_si32): Ditto.
4011 (_mm_storeu_si16): Ditto.
4012 * config/i386/i386-builtin-types.def
4013 (V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT): Add new type.
4014 (V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT): Ditto.
4015 (V4SF_FTYPE_V4SF_V2DF_V4SF_UQI_INT): Ditto.
4016 (V2DF_FTYPE_V2DF_V4SF_V2DF_UQI_INT): Ditto.
4017 * config/i386/i386-builtin.def
4018 (__builtin_ia32_cvtsd2ss_mask_round): New builtin.
4019 (__builtin_ia32_cvtss2sd_mask_round): Ditto.
4020 (__builtin_ia32_rcp28sd_mask_round): Ditto.
4021 (__builtin_ia32_rcp28ss_mask_round): Ditto.
4022 (__builtin_ia32_rsqrt28sd_mask_round): Ditto.
4023 (__builtin_ia32_rsqrt28ss_mask_round): Ditto.
4024 (__builtin_ia32_reducepd512_mask_round): Ditto.
4025 (__builtin_ia32_reduceps512_mask_round): Ditto.
4026 (__builtin_ia32_reducesd_mask_round): Ditto.
4027 (__builtin_ia32_reducess_mask_round): Ditto.
4028 * config/i386/i386-expand.c
4029 (ix86_expand_round_builtin): Expand round builtin for new type.
4030 (V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT)
4031 (V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT)
4032 (V4SF_FTYPE_V4SF_V2DF_V4SF_UQI_INT)
4033 (V2DF_FTYPE_V2DF_V4SF_V2DF_UQI_INT)
4034 * config/i386/mmintrin.h ()
4035 Define datatype __m32 and __m16.
4036 Define datatype __m32_u and __m16_u.
4037 * config/i386/sse.md: Adjust pattern.
4038 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>): Adjust.
4039 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name>): Ditto.
4040 (sse2_cvtsd2ss<mask_name><round_name>): Ditto.
4041 (sse2_cvtss2sd<mask_name><round_saeonly_name>): Ditto.
4042 (avx512er_vmrcp28<mode><mask_name><round_saeonly_name>): Ditto.
4043 (avx512er_vmrsqrt28<mode><mask_name><round_saeonly_name>): Ditto.
4045 2020-10-14 Olivier Hainque <hainque@adacore.com>
4047 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Fix
4048 the VX_CPU selection for -mcpu=xscale on arm-vxworks.
4050 2020-10-14 Olivier Hainque <hainque@adacore.com>
4052 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Accommodate
4053 expectations from different versions of VxWorks, for 32 or 64bit
4056 2020-10-14 Olivier Hainque <hainque@adacore.com>
4058 * config/vxworks.h: #undef CPLUSPLUS_CPP_SPEC.
4060 2020-10-14 Olivier Hainque <hainque@adacore.com>
4062 * config/t-vxworks: Adjust the VxWorks alternative LIMITS_H guard
4063 for glimits.h, make it both closer to the previous one and easier to
4066 2020-10-14 Jakub Jelinek <jakub@redhat.com>
4069 * config/i386/i386.md (CC_CCC): New mode iterator.
4070 (*setcc_qi_addqi3_cconly_overflow_1_<mode>): New
4071 define_insn_and_split.
4072 * config/i386/i386.c (ix86_cc_mode): Return CCCmode
4073 for *setcc_qi_addqi3_cconly_overflow_1_<mode> pattern operands.
4074 (ix86_rtx_costs): Return true and *total = 0;
4075 for *setcc_qi_addqi3_cconly_overflow_1_<mode> pattern. Use op0 and
4076 op1 temporaries to simplify COMPARE checks.
4078 2020-10-14 Aldy Hernandez <aldyh@redhat.com>
4080 PR tree-optimization/97396
4081 * gimple-range.cc (gimple_ranger::range_of_phi): Do not call
4082 range_of_ssa_name_with_loop_info with the loop tree root.
4084 2020-10-14 Richard Biener <rguenther@suse.de>
4086 * tree-vect-slp.c (vect_get_and_check_slp_defs): Split out
4087 test for compatible operand types.
4089 2020-10-14 Olivier Hainque <hainque@adacore.com>
4091 * config/vxworks.c (vxworks_override_options): Guard pic checks with
4092 flag_pic > 0 instead of just flag_pic.
4094 2020-10-14 Jan Hubicka <hubicka@ucw.cz>
4096 * ipa-fnsummary.c (remap_edge_summaries): Make offset_map HOST_WIDE_INT.
4097 (remap_freqcounting_predicate): Likewise.
4098 (ipa_merge_fn_summary_after_inlining): Likewise.
4099 * ipa-predicate.c (predicate::remap_after_inlining): Likewise
4100 * ipa-predicate.h (remap_after_inlining): Update.
4102 2020-10-14 Jan Hubicka <jh@suse.cz>
4104 * ipa-modref.c (compute_parm_map): Handle POINTER_PLUS_EXPR in
4107 2020-10-14 Richard Biener <rguenther@suse.de>
4109 * tree-vect-slp.c (vect_get_and_check_slp_defs): Move
4110 check for duplicate/interleave of variable size constants
4111 to a place done once and early.
4112 (vect_build_slp_tree_2): Adjust heuristics when to build
4113 a BB SLP node from scalars.
4115 2020-10-14 Tom de Vries <tdevries@suse.de>
4117 * tracer.c (cached_can_duplicate_bb_p, analyze_bb): Use
4118 can_duplicate_block_p.
4119 (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
4120 (can_duplicate_bb_p): Move and merge ...
4121 * tree-cfg.c (gimple_can_duplicate_bb_p): ... here.
4123 2020-10-14 Jan Hubicka <hubicka@ucw.cz>
4125 * doc/invoke.texi: (ipa-jump-function-lookups): Document param.
4126 * ipa-modref.c (merge_call_side_effects): Use
4127 unadjusted_ptr_and_unit_offset.
4128 * ipa-prop.c (unadjusted_ptr_and_unit_offset): New function.
4129 * ipa-prop.h (unadjusted_ptr_and_unit_offset): Declare.
4130 * params.opt: (-param-ipa-jump-function-lookups): New.
4132 2020-10-14 Jan Hubicka <jh@suse.cz>
4135 * ipa-modref.c (ignore_edge): Do not ignore inlined edes.
4136 (ipa_merge_modref_summary_after_inlining): Improve debug output and
4137 fix parameter of ignore_stores_p.
4139 2020-10-14 Kito Cheng <kito.cheng@sifive.com>
4142 * expr.c (expand_assignment): Handle misaligned stores with PARALLEL
4145 2020-10-13 Jakub Jelinek <jakub@redhat.com>
4147 PR rtl-optimization/97386
4148 * combine.c (simplify_shift_const_1): Don't optimize nested ROTATEs if
4149 they have different modes.
4151 2020-10-13 Aldy Hernandez <aldyh@redhat.com>
4153 PR tree-optimization/97379
4154 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Do
4155 not save hash slot across calls to hash_table<>::get_or_insert.
4157 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
4159 * lto-wrapper.c (find_crtoffloadtable): Fix last commit
4160 by adding NULL as last argument to concat.
4162 2020-10-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4164 * config/aarch64/aarch64.c (neoversen2_tunings): Define.
4165 * config/aarch64/aarch64-cores.def (neoverse-n2): Use it.
4167 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
4169 * lto-wrapper.c (find_crtoffloadtable): With -save-temps,
4170 use non-temp file name utilizing the dump prefix.
4171 (run_gcc): Update call.
4173 2020-10-13 Richard Biener <rguenther@suse.de>
4175 PR tree-optimization/97382
4176 * tree-vectorizer.h (_stmt_vec_info::same_align_refs): Remove.
4177 (STMT_VINFO_SAME_ALIGN_REFS): Likewise.
4178 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
4179 allocate STMT_VINFO_SAME_ALIGN_REFS.
4180 (vec_info::free_stmt_vec_info): Do not release
4181 STMT_VINFO_SAME_ALIGN_REFS.
4182 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
4183 Do not compute self and read-read dependences.
4184 (vect_dr_aligned_if_related_peeled_dr_is): New helper.
4185 (vect_dr_aligned_if_peeled_dr_is): Likewise.
4186 (vect_update_misalignment_for_peel): Use it instead of
4187 iterating over STMT_VINFO_SAME_ALIGN_REFS.
4188 (dr_align_group_sort_cmp): New function.
4189 (vect_enhance_data_refs_alignment): Count the number of
4190 same aligned refs here and elide uses of STMT_VINFO_SAME_ALIGN_REFS.
4191 (vect_find_same_alignment_drs): Remove.
4192 (vect_analyze_data_refs_alignment): Do not call it.
4193 * vec.h (auto_vec<T, 0>::auto_vec): Adjust CTOR to take
4194 a vec<>&&, assert it isn't using auto storage.
4195 (auto_vec& operator=): Apply a similar change.
4197 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
4199 * config/nvptx/mkoffload.c (main): Add missing fclose (in).
4201 2020-10-13 Zhiheng Xie <xiezhiheng@huawei.com>
4202 Nannan Zheng <zhengnannan@huawei.com>
4204 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
4205 for mul/mla/mls intrinsics.
4207 2020-10-13 Jakub Jelinek <jakub@redhat.com>
4209 * omp-low.c (add_taskreg_looptemp_clauses): For triangular loops
4210 with non-constant number of iterations add another 4 _looptemp_
4211 clauses before the (optional) one for lastprivate.
4212 (lower_omp_for_lastprivate): Skip those clauses when looking for
4213 the lastprivate clause.
4214 (lower_omp_for): For triangular loops with non-constant number of
4215 iterations add another 4 _looptemp_ clauses.
4216 * omp-expand.c (expand_omp_for_init_counts): For triangular loops
4217 with non-constant number of iterations set counts[0],
4218 fd->first_inner_iterations, fd->factor and fd->adjn1 from the newly
4219 added _looptemp_ clauses.
4220 (expand_omp_for_init_vars): Initialize the newly added _looptemp_
4222 (find_lastprivate_looptemp): New function.
4223 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
4224 expand_omp_taskloop_for_outer): Use it instead of manually skipping
4227 2020-10-13 Jan Hubicka <hubicka@ucw.cz>
4230 * ipa-modref.c (dump_lto_records): Fix formating of dump file.
4231 (modref_summary::dump): Do not check loads to be non-null.
4232 (modref_summary_lto::dump): Do not check loads to be non-null.
4233 (merge_call_side_effects): Improve debug output.
4234 (analyze_call): Crash when cur_summary->loads is NULL.
4235 (analyze_function): Update.
4236 (modref_summaries::insert): Insert only into summaries, not
4237 optimization_summaries.
4238 (modref_summaries::duplicate): Likewise; crash when load or sotres
4240 (modref_summaries_lto::duplicate): Crash when loads or stores are NULL.
4241 (write_modref_records): param_index is signed.
4242 (read_modref_records): param_index is signed.
4243 (modref_write): Crash when loads or stores are NULL.
4244 (read_section): Compensate previous change.
4245 (pass_modref::execute): Do not check optimization_summaries t be
4248 (compute_parm_map): Fix formating.
4249 (modref_propagate_in_scc): Do not expect loads/stores to be NULL.
4251 2020-10-12 Alexandre Oliva <oliva@adacore.com>
4253 * builtins.c (mathfn_built_in_type): Use CFN_ enumerators.
4255 2020-10-12 Andrew MacLeod <amacleod@redhat.com>
4257 PR tree-optimization/97381
4258 * gimple-range-gori.cc (gori_compute::compute_operand2_range): If a range cannot be
4259 calculated through operand 2, return false.
4261 2020-10-12 Aldy Hernandez <aldyh@redhat.com>
4263 PR tree-optimization/97378
4264 * range-op.cc (operator_trunc_mod::wi_fold): Return VARYING for mod by zero.
4266 2020-10-12 David Malcolm <dmalcolm@redhat.com>
4268 * doc/invoke.texi: Document -Wanalyzer-write-to-const and
4269 -Wanalyzer-write-to-string-literal.
4271 2020-10-12 Martin Sebor <msebor@redhat.com>
4276 * builtins.c (access_ref::access_ref): Initialize new member. Use
4278 (access_ref::size_remaining): Define new member function.
4279 (inform_access): Handle expressions referencing objects.
4280 (gimple_call_alloc_size): Call get_size_range instead of get_range.
4281 (gimple_call_return_array): New function.
4282 (get_range): Rename...
4283 (get_offset_range): ...to this. Improve detection of ranges from
4284 types of expressions.
4285 (gimple_call_return_array): Adjust calls to get_range per above.
4286 (compute_objsize): Same. Set maximum size or offset instead of
4287 failing for unknown objects and handle more kinds of expressions.
4288 (compute_objsize): Call access_ref::size_remaining.
4289 (compute_objsize): Have transitional wrapper fail for pointers
4290 into unknown objects.
4291 (expand_builtin_strncmp): Call access_ref::size_remaining and
4293 * builtins.h (access_ref::size_remaining): Declare new member function.
4294 (access_ref::set_max_size_range): Define new member function.
4295 (access_ref::add_ofset, access_ref::add_max_ofset): Same.
4296 (access_ref::add_base0): New data member.
4297 * calls.c (get_size_range): Change argument type. Handle new
4299 * calls.h (get_size_range): Adjust signature.
4300 (enum size_range_flags): Define new type.
4301 * gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Correct
4302 argument to get_size_range.
4303 * tree-ssa-strlen.c (get_range): Handle anti-ranges.
4304 (maybe_warn_overflow): Check DECL_P before assuming it's one.
4306 2020-10-12 Martin Sebor <msebor@redhat.com>
4310 * builtins.c (get_range): Return full range of type when neither
4311 value nor its range is available. Fail for ranges inverted due
4312 to the signedness of offsets.
4313 (compute_objsize): Handle more special array members. Handle
4314 POINTER_PLUS_EXPR and VIEW_CONVERT_EXPR that come up in front end
4316 (access_ref::offset_bounded): Define new member function.
4317 * builtins.h (access_ref::eval): New data member.
4318 (access_ref::offset_bounded): New member function.
4319 (access_ref::offset_zero): New member function.
4320 (compute_objsize): Declare a new overload.
4321 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Use
4322 enum special_array_member.
4323 * tree.c (component_ref_size): Use special_array_member.
4324 * tree.h (special_array_member): Define a new type.
4325 (component_ref_size): Change signature.
4327 2020-10-12 Jan Hubicka <hubicka@ucw.cz>
4329 * ipa-modref.c (modref_summaries): Remove field IPA.
4330 (class modref_summary_lto): New global variable.
4331 (class modref_summaries_lto): New.
4332 (modref_summary::modref_summary): Remove loads_lto and stores_lto.
4333 (modref_summary::~modref_summary): Remove loads_lto and stores_lto.
4334 (modref_summary::useful_p): Do not use lto_useful.
4335 (modref_records_lto): New typedef.
4336 (struct modref_summary_lto): New type.
4337 (modref_summary_lto::modref_summary_lto): New member function.
4338 (modref_summary_lto::~modref_summary_lto): New member function.
4339 (modref_summary_lto::useful_p): New member function.
4340 (modref_summary::dump): Do not handle lto.
4341 (modref_summary_lto::dump): New member function.
4342 (get_modref_function_summary): Use optimization_summary.
4343 (merge_call_side_effects): Use optimization_summary.
4344 (analyze_call): Use optimization_summary.
4345 (struct summary_ptrs): New struture.
4346 (analyze_load): Update to handle separate lto and non-lto summaries.
4347 (analyze_store): Likewise.
4348 (analyze_stmt): Likewise.
4349 (remove_summary): Break out from ...
4350 (analyze_function): ... here; update to handle seprated summaries.
4351 (modref_summaries::insert): Do not handle lto summary.
4352 (modref_summaries_lto::insert): New member function.
4353 (modref_summaries::duplicate): Do not handle lto summary.
4354 (modref_summaries_lto::duplicate): New member function.
4355 (read_modref_records): Expect nolto_ret or lto_ret to be NULL>
4356 (modref_write): Write lto summary.
4357 (read_section): Handle separated summaries.
4358 (modref_read): Initialize separated summaries.
4359 (modref_transform): Handle separated summaries.
4360 (pass_modref::execute): Turn summary to optimization_summary; handle
4362 (ignore_edge): Handle separate summaries.
4363 (ipa_merge_modref_summary_after_inlining): Likewise.
4364 (collapse_loads): Likewise.
4365 (modref_propagate_in_scc): Likewise.
4366 (pass_ipa_modref::execute): Likewise.
4367 (ipa_modref_c_finalize): Likewise.
4368 * ipa-modref.h (modref_records_lto): Remove typedef.
4369 (struct modref_summary): Remove stores_lto, loads_lto and finished
4370 fields; remove lto_useful_p member function.
4372 2020-10-12 Richard Biener <rguenther@suse.de>
4374 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
4375 Use SLP_TREE_REPRESENTATIVE.
4376 * tree-vectorizer.h (_slp_tree::vertex): New member used
4377 for graphds interfacing.
4378 * tree-vect-slp.c (vect_build_slp_tree_2): Allocate space
4379 for PHI SLP children.
4380 (vect_analyze_slp_backedges): New function filling in SLP
4381 node children for PHIs that correspond to backedge values.
4382 (vect_analyze_slp): Call vect_analyze_slp_backedges for the
4384 (vect_slp_analyze_node_operations): Deal with a cyclic graph.
4385 (vect_schedule_slp_instance): Likewise.
4386 (vect_schedule_slp): Likewise.
4387 (slp_copy_subtree): Remove.
4388 (vect_slp_rearrange_stmts): Likewise.
4389 (vect_attempt_slp_rearrange_stmts): Likewise.
4390 (vect_slp_build_vertices): New functions.
4391 (vect_slp_permute): Likewise.
4392 (vect_slp_perms_eq): Likewise.
4393 (vect_optimize_slp): Remove special code to elide
4394 permutations with SLP reductions. Implement generic
4395 permute optimization.
4397 2020-10-12 Christophe Lyon <christophe.lyon@linaro.org>
4399 * config/arm/arm.c (arm_preferred_simd_mode): Use E_FOOmode
4402 2020-10-12 Martin Liska <mliska@suse.cz>
4404 PR tree-optimization/97079
4405 * internal-fn.c (internal_fn_stored_value_index): Handle also
4407 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Bail
4408 out for unsupported TREE_TYPE.
4410 2020-10-12 Richard Biener <rguenther@suse.de>
4412 * tree-vect-slp.c (vect_bb_partition_graph_r): Use visited
4414 (vect_bb_partition_graph): Likewise.
4416 2020-10-12 Duan bo <duanbo3@huawei.com>
4419 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Add
4420 the identification and handling of the dropped situation in the
4421 cond expression processing phase.
4423 2020-10-12 Tobias Burnus <tobias@codesourcery.com>
4425 * doc/invoke.texi (nvptx's -misa): Update default to sm_35.
4427 2020-10-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4430 * config/aarch64/arm_neon.h (vdupq_n_p8, vdupq_n_p16,
4431 vdupq_n_p64, vdupq_n_s8, vdupq_n_s16, vdupq_n_u8, vdupq_n_u16):
4434 2020-10-12 Ilya Leoshkevich <iii@linux.ibm.com>
4436 * config/s390/s390-protos.h (s390_build_signbit_mask): New
4438 * config/s390/s390.c (s390_contiguous_bitmask_vector_p):
4439 Bitcast the argument to an integral mode.
4440 (s390_expand_vec_init): Do not call
4441 s390_contiguous_bitmask_vector_p with a scalar argument.
4442 (s390_build_signbit_mask): New function.
4443 * config/s390/vector.md (copysign<mode>3): Use bitwise
4446 2020-10-12 Aldy Hernandez <aldyh@redhat.com>
4448 PR tree-optimization/97371
4449 * range-op.cc (operator_rshift::op1_range): Ignore shifts larger than
4450 or equal to type precision.
4452 2020-10-12 Martin Liska <mliska@suse.cz>
4454 * ipa-modref.c (merge_call_side_effects): Clear modref_parm_map
4455 fields in the vector.
4457 2020-10-12 Richard Biener <rguenther@suse.de>
4459 * tree-vect-slp.c (vect_analyze_slp_instance): Set matches to true
4460 after successful discovery but forced split.
4462 2020-10-12 Tom de Vries <tdevries@suse.de>
4464 * config/nvptx/nvptx.opt (-msoft-stack-reserve-local): Rename to ...
4465 (-msoft-stack-reserve-local=): ... this.
4467 2020-10-12 Richard Biener <rguenther@suse.de>
4469 PR tree-optimization/97357
4470 * tree-ssa-loop-split.c (ssa_semi_invariant_p): Abnormal
4471 SSA names are not semi invariant.
4473 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
4475 * config/darwin.c (darwin_globalize_label): Make a subset of
4476 metadate symbols global.
4477 (darwin_label_is_anonymous_local_objc_name): Make a subset of
4478 metadata symbols linker-visible.
4479 (darwin_override_options): Track more target OS versions, make
4480 the next_runtime version track this (unless it's set to 0 for
4483 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
4485 * config/darwin.c (darwin_globalize_label): Add protocol
4486 meta-data labels to the set that are global.
4487 (darwin_label_is_anonymous_local_objc_name): Arrange for meta-
4488 data start labels to be linker-visible.
4490 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
4492 * config/darwin.c (darwin_objc2_section): Allow for
4493 values > 1 to represent the next runtime.
4494 (darwin_objc1_section): Likewise.
4495 * config/darwin.h (NEXT_OBJC_RUNTIME): Set the default
4496 next runtime value to be 10.5.8.
4498 2020-10-10 Jan Hubicka <jh@suse.cz>
4500 * ipa-modref.c (modref_transform): Fix parameter map computation.
4502 2020-10-10 Tom de Vries <tdevries@suse.de>
4505 * config/nvptx/nvptx.c (nvptx_replace_dot): New function.
4506 (write_fn_proto, write_fn_proto_from_insn, nvptx_output_call_insn):
4507 Use nvptx_replace_dot.
4509 2020-10-10 Tom de Vries <tdevries@suse.de>
4511 * config/nvptx/nvptx.c (write_fn_proto_1): New function, factored out
4513 (write_fn_proto): ... here. Return void.
4515 2020-10-10 Jan Hubicka <jh@suse.cz>
4517 * ipa-modref.c (remap_arguments): Check range in map access.
4519 2020-10-10 Jan Hubicka <jh@suse.cz>
4521 * ipa-modref.c (modref_transform): Use reserve instead of safe_grow.
4523 2020-10-10 Jan Hubicka <jh@suse.cz>
4525 * ipa-modref.c (modref_transform): Check that summaries are allocated.
4527 2020-10-10 Jan Hubicka <jh@suse.cz>
4529 * ipa-modref-tree.h (struct modref_tree): Revert prevoius change.
4530 * ipa-modref.c (analyze_function): Dump original summary.
4531 (modref_read): Only set IPA if streaming summary (not optimization
4533 (remap_arguments): New function.
4534 (modref_transform): New function.
4535 (compute_parm_map): Fix offset calculation.
4536 (ipa_merge_modref_summary_after_inlining): Do not merge stores when
4537 they can be ignored.
4539 2020-10-10 Jan Hubicka <jh@suse.cz>
4541 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Improve debug dumps.
4542 (call_may_clobber_ref_p_1): Improve debug dumps.
4544 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
4546 * config/darwin.c (output_objc_section_asm_op): Avoid extra
4547 objective-c section switches unless the linker needs them.
4549 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
4551 * config/darwin-sections.def (objc2_data_section): New.
4552 (objc2_ivar_section): New.
4553 * config/darwin.c (darwin_objc2_section): Act on Protocol and
4556 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
4558 * config/darwin-sections.def (objc2_class_names_section,
4559 objc2_method_names_section, objc2_method_types_section): New
4560 * config/darwin.c (output_objc_section_asm_op): Output new
4561 sections. (darwin_objc2_section): Select new sections where
4564 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
4566 * config/darwin.c (darwin_emit_local_bss): Amend section names to
4567 match system tools. (darwin_output_aligned_bss): Likewise.
4569 2020-10-10 Aldy Hernandez <aldyh@redhat.com>
4571 PR tree-optimization/97359
4572 * gimple-range-gori.cc (logical_stmt_cache::cacheable_p): Only
4573 handle ANDs and ORs.
4574 (gori_compute_cache::cache_stmt): Adjust comment.
4576 2020-10-09 Vladimir Makarov <vmakarov@redhat.com>
4578 PR rtl-optimization/97313
4579 * lra-constraints.c (match_reload): Don't keep strict_low_part in
4580 reloads for non-registers.
4582 2020-10-09 H.J. Lu <hjl.tools@gmail.com>
4585 * config.gcc (extra_headers): Add x86gprintrin.h.
4586 * config/i386/adxintrin.h: Check _X86GPRINTRIN_H_INCLUDED for
4588 * config/i386/bmi2intrin.h: Likewise.
4589 * config/i386/bmiintrin.h: Likewise.
4590 * config/i386/cetintrin.h: Likewise.
4591 * config/i386/cldemoteintrin.h: Likewise.
4592 * config/i386/clflushoptintrin.h: Likewise.
4593 * config/i386/clwbintrin.h: Likewise.
4594 * config/i386/enqcmdintrin.h: Likewise.
4595 * config/i386/fxsrintrin.h: Likewise.
4596 * config/i386/ia32intrin.h: Likewise.
4597 * config/i386/lwpintrin.h: Likewise.
4598 * config/i386/lzcntintrin.h: Likewise.
4599 * config/i386/movdirintrin.h: Likewise.
4600 * config/i386/pconfigintrin.h: Likewise.
4601 * config/i386/pkuintrin.h: Likewise.
4602 * config/i386/rdseedintrin.h: Likewise.
4603 * config/i386/rtmintrin.h: Likewise.
4604 * config/i386/serializeintrin.h: Likewise.
4605 * config/i386/tbmintrin.h: Likewise.
4606 * config/i386/tsxldtrkintrin.h: Likewise.
4607 * config/i386/waitpkgintrin.h: Likewise.
4608 * config/i386/wbnoinvdintrin.h: Likewise.
4609 * config/i386/xsavecintrin.h: Likewise.
4610 * config/i386/xsaveintrin.h: Likewise.
4611 * config/i386/xsaveoptintrin.h: Likewise.
4612 * config/i386/xsavesintrin.h: Likewise.
4613 * config/i386/xtestintrin.h: Likewise.
4614 * config/i386/immintrin.h: Include <x86gprintrin.h> instead of
4615 <fxsrintrin.h>, <xsaveintrin.h>, <xsaveoptintrin.h>,
4616 <xsavesintrin.h>, <xsavecintrin.h>, <lzcntintrin.h>,
4617 <bmiintrin.h>, <bmi2intrin.h>, <xtestintrin.h>, <cetintrin.h>,
4618 <movdirintrin.h>, <sgxintrin.h, <pconfigintrin.h>,
4619 <waitpkgintrin.h>, <cldemoteintrin.h>, <enqcmdintrin.h>,
4620 <serializeintrin.h>, <tsxldtrkintrin.h>, <adxintrin.h>,
4621 <clwbintrin.h>, <clflushoptintrin.h>, <wbnoinvdintrin.h> and
4623 (_wbinvd): Moved to config/i386/x86gprintrin.h.
4624 (_rdrand16_step): Likewise.
4625 (_rdrand32_step): Likewise.
4626 (_rdpid_u32): Likewise.
4627 (_readfsbase_u32): Likewise.
4628 (_readfsbase_u64): Likewise.
4629 (_readgsbase_u32): Likewise.
4630 (_readgsbase_u64): Likewise.
4631 (_writefsbase_u32): Likewise.
4632 (_writefsbase_u64): Likewise.
4633 (_writegsbase_u32): Likewise.
4634 (_writegsbase_u64): Likewise.
4635 (_rdrand64_step): Likewise.
4636 (_ptwrite64): Likewise.
4637 (_ptwrite32): Likewise.
4638 * config/i386/x86gprintrin.h: New file.
4639 * config/i386/x86intrin.h: Include <x86gprintrin.h>. Don't
4640 include <ia32intrin.h>, <lwpintrin.h>, <tbmintrin.h>,
4641 <popcntintrin.h>, <mwaitxintrin.h> and <clzerointrin.h>.
4643 2020-10-09 Tom de Vries <tdevries@suse.de>
4646 * config/nvptx/nvptx.h (ASM_SPEC): Also pass -m to nvptx-as if
4648 * config/nvptx/nvptx.opt (misa): Init with PTX_ISA_SM35.
4650 2020-10-09 Richard Biener <rguenther@suse.de>
4652 * doc/sourcebuild.texi (vect_masked_load): Document.
4654 2020-10-09 Richard Biener <rguenther@suse.de>
4656 PR tree-optimization/97334
4657 * tree-vect-slp.c (vect_build_slp_tree_1): Do not fatally
4658 fail lanes other than zero when BB vectorizing.
4660 2020-10-09 Jan Hubicka <jh@suse.cz>
4664 * ipa-modref-tree.h (copy_from): Drop summary in a
4667 2020-10-09 Richard Biener <rguenther@suse.de>
4669 PR tree-optimization/97347
4670 * tree-vect-slp.c (vect_create_constant_vectors): Use
4671 edge insertion when inserting on the fallthru edge,
4672 appropriately insert at the start of BBs when inserting
4675 2020-10-09 Andrew MacLeod <amacleod@redhat.com>
4677 PR tree-optimization/97317
4678 * range-op.cc (operator_cast::op1_range): Handle casts where the precision
4679 of the RHS is only 1 greater than the precision of the LHS.
4681 2020-10-09 Richard Biener <rguenther@suse.de>
4683 * cgraphunit.c (expand_all_functions): Free tp_first_run_order.
4684 * ipa-modref.c (pass_ipa_modref::execute): Free order.
4685 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Free
4687 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Free
4688 data references upon failure.
4689 * tree-vect-loop.c (update_epilogue_loop_vinfo): Free BBs
4690 array of the original loop.
4691 * tree-vect-slp.c (vect_slp_bbs): Use an auto_vec for
4692 dataref_groups to release its memory.
4694 2020-10-09 Jakub Jelinek <jakub@redhat.com>
4696 PR tree-optimization/94801
4698 * vr-values.c (vr_values::extract_range_basic) <CASE_CFN_CLZ,
4699 CASE_CFN_CTZ>: When stmt is not an internal-fn call or
4700 C?Z_DEFINED_VALUE_AT_ZERO is not 2, assume argument is not zero
4701 and thus use [0, prec-1] range unless it can be further improved.
4702 For CTZ, don't update maxi from upper bound if it was previously prec.
4703 * gimple-range.cc (gimple_ranger::range_of_builtin_call) <CASE_CFN_CLZ,
4704 CASE_CFN_CTZ>: Likewise.
4706 2020-10-09 Jakub Jelinek <jakub@redhat.com>
4708 PR tree-optimization/97325
4709 * match.pd (FFS(nonzero) -> CTZ(nonzero) + 1): Cast argument to
4710 corresponding unsigned type.
4712 2020-10-09 Richard Biener <rguenther@suse.de>
4714 * tree-vect-slp.c (vect_create_constant_vectors): Properly insert
4717 2020-10-08 Alexandre Oliva <oliva@adacore.com>
4719 * builtins.c (mathfn_built_in_type): New.
4720 * builtins.h (mathfn_built_in_type): Declare.
4721 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use it to
4722 obtain the type expected by the intrinsic.
4724 2020-10-08 Will Schmidt <will_schmidt@vnet.ibm.com>
4726 * config/rs6000/rs6000-builtin.def (BU_P10_MISC_2): Rename
4727 to BU_P10_POWERPC64_MISC_2.
4728 CFUGED, CNTLZDM, CNTTZDM, PDEPD, PEXTD): Call renamed macro.
4730 2020-10-08 Jan Hubicka <jh@suse.cz>
4732 * tree-nrv.c (dest_safe_for_nrv_p): Disable tbaa in
4733 call_may_clobber_ref_p and ref_maybe_used_by_stmt_p.
4734 * tree-tailcall.c (find_tail_calls): Likewise.
4735 * tree-ssa-alias.c (call_may_clobber_ref_p): Add tbaa_p parameter.
4736 * tree-ssa-alias.h (call_may_clobber_ref_p): Update prototype.
4737 * tree-ssa-sccvn.c (vn_reference_lookup_3): Pass data->tbaa_p
4738 to call_may_clobber_ref_p_1.
4740 2020-10-08 Mark Wielaard <mark@klomp.org>
4742 * dwarf2out.c (dwarf2out_finish): Emit .file 0 entry when
4743 generating DWARF5 .debug_line table through gas.
4745 2020-10-08 John Henning <john.henning@oracle.com>
4748 * doc/invoke.texi: Improve documentation of
4749 -fallow-store-data-races.
4751 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
4754 * config/arm/arm_mve.h (__arm_vcvtnq_u32_f32): New.
4756 2020-10-08 Martin Liska <mliska@suse.cz>
4757 Richard Biener <rguenther@suse.de>
4759 * tree-vectorizer.h (_bb_vec_info::const_iterator): Remove.
4760 (_bb_vec_info::const_reverse_iterator): Likewise.
4761 (_bb_vec_info::region_stmts): Likewise.
4762 (_bb_vec_info::reverse_region_stmts): Likewise.
4763 (_bb_vec_info::_bb_vec_info): Adjust.
4764 (_bb_vec_info::bb): Remove.
4765 (_bb_vec_info::region_begin): Remove.
4766 (_bb_vec_info::region_end): Remove.
4767 (_bb_vec_info::bbs): New vector of BBs.
4768 (vect_slp_function): Declare.
4769 * tree-vect-patterns.c (vect_determine_precisions): Use
4770 regular stmt iteration.
4771 (vect_pattern_recog): Likewise.
4772 * tree-vect-slp.c: Include cfganal.h, tree-eh.h and tree-cfg.h.
4773 (vect_build_slp_tree_1): Properly refuse to vectorize
4774 volatile and throwing stmts.
4775 (vect_build_slp_tree_2): Pass group-size down to
4776 get_vectype_for_scalar_type.
4777 (_bb_vec_info::_bb_vec_info): Use regular stmt iteration,
4778 adjust for changed region specification.
4779 (_bb_vec_info::~_bb_vec_info): Likewise.
4780 (vect_slp_check_for_constructors): Likewise.
4781 (vect_slp_region): Likewise.
4782 (vect_slp_bbs): New worker operating on a vector of BBs.
4783 (vect_slp_bb): Wrap it.
4784 (vect_slp_function): New function splitting the function
4785 into multi-BB regions.
4786 (vect_create_constant_vectors): Handle the case of inserting
4787 after a throwing def.
4788 (vect_schedule_slp_instance): Adjust.
4789 * tree-vectorizer.c (vec_info::remove_stmt): Simplify again.
4790 (vec_info::insert_seq_on_entry): Adjust.
4791 (pass_slp_vectorize::execute): Also init PHIs. Call
4794 2020-10-08 Richard Biener <rguenther@suse.de>
4796 PR tree-optimization/97330
4797 * tree-ssa-sink.c (statement_sink_location): Avoid skipping
4798 PHIs when they dominate the insert location.
4800 2020-10-08 Jan Hubicka <jh@suse.cz>
4802 * ipa-modref.c (get_access): Fix handling of offsets.
4803 * tree-ssa-alias.c (modref_may_conflict): Watch for overflows.
4805 2020-10-08 Martin Liska <mliska@suse.cz>
4807 * dbgcnt.def (DEBUG_COUNTER): Add ipa_mod_ref debug counter.
4808 * tree-ssa-alias.c (modref_may_conflict): Handle the counter.
4810 2020-10-08 Richard Biener <rguenther@suse.de>
4812 * tree-vectorizer.c (try_vectorize_loop_1): Do not dump
4813 "basic block vectorized".
4814 (pass_slp_vectorize::execute): Likewise.
4815 * tree-vect-slp.c (vect_analyze_slp_instance): Avoid
4816 re-analyzing split single stmts.
4818 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
4821 * config/arm/arm_mve.h (vqrdmlashq_n_u8, vqrdmlashq_n_u16)
4822 (vqrdmlashq_n_u32, vqrdmlahq_n_u8, vqrdmlahq_n_u16)
4823 (vqrdmlahq_n_u32, vqdmlahq_n_u8, vqdmlahq_n_u16, vqdmlahq_n_u32)
4824 (vmlaldavaxq_p_u16, vmlaldavaxq_p_u32): Remove.
4825 * config/arm/arm_mve_builtins.def (vqrdmlashq_n_u, vqrdmlahq_n_u)
4826 (vqdmlahq_n_u, vmlaldavaxq_p_u): Remove.
4827 * config/arm/unspecs.md (VQDMLAHQ_N_U, VQRDMLAHQ_N_U)
4829 (VMLALDAVAXQ_P_U): Remove unspecs.
4830 * config/arm/iterators.md (VQDMLAHQ_N_U, VQRDMLAHQ_N_U)
4831 (VQRDMLASHQ_N_U, VMLALDAVAXQ_P_U): Remove attributes.
4832 (VQDMLAHQ_N, VQRDMLAHQ_N, VQRDMLASHQ_N, VMLALDAVAXQ_P): Remove
4833 unsigned variants from iterators.
4834 * config/arm/mve.md (mve_vqdmlahq_n_<supf><mode>)
4835 (mve_vqrdmlahq_n_<supf><mode>)
4836 (mve_vqrdmlashq_n_<supf><mode>, mve_vmlaldavaxq_p_<supf><mode>):
4839 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
4842 * config/arm/arm_mve.h (vqdmlashq, vqdmlashq_m): Define.
4843 * config/arm/arm_mve_builtins.def (vqdmlashq_n_s)
4844 (vqdmlashq_m_n_s,): New.
4845 * config/arm/unspecs.md (VQDMLASHQ_N_S, VQDMLASHQ_M_N_S): New
4847 * config/arm/iterators.md (VQDMLASHQ_N_S, VQDMLASHQ_M_N_S): New
4849 (VQDMLASHQ_N): New iterator.
4850 * config/arm/mve.md (mve_vqdmlashq_n_, mve_vqdmlashq_m_n_s): New
4853 2020-10-08 Jakub Jelinek <jakub@redhat.com>
4856 * config/arm/arm.c (arm_expand_divmod_libfunc): Pass mode instead of
4857 GET_MODE (op0) or GET_MODE (op1) to emit_library_call_value.
4859 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
4861 PR tree-optimization/97325
4862 * gimple-range.cc (gimple_ranger::range_of_builtin_call): Handle
4863 negative numbers in __builtin_ffs and __builtin_popcount.
4865 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
4867 PR tree-optimization/97315
4868 * range-op.cc (value_range_with_overflow): Change any
4869 non-overflow calculation in which both bounds are
4870 overflow/underflow to be undefined.
4872 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
4874 PR tree-optimization/97315
4875 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Removes the
4876 trap and instead annotates the listing.
4878 2020-10-08 Jakub Jelinek <jakub@redhat.com>
4881 * tree-cfg.c (move_block_to_fn): Call notice_special_calls on
4882 call stmts being moved into dest_cfun.
4883 * omp-low.c (lower_rec_input_clauses): Set cfun->calls_alloca when
4884 adding __builtin_alloca_with_align call without gimplification.
4886 2020-10-07 Aldy Hernandez <aldyh@redhat.com>
4888 * common.opt (-fevrp-mode): Rename and move...
4889 * params.opt (--param=evrp-mode): ...here.
4890 * gimple-range.h (DEBUG_RANGE_CACHE): Use param_evrp_mode instead
4892 * gimple-ssa-evrp.c (rvrp_folder): Same.
4893 (hybrid_folder): Same.
4894 (execute_early_vrp): Same.
4896 2020-10-07 Richard Biener <rguenther@suse.de>
4898 PR tree-optimization/97307
4899 * tree-ssa-sink.c (statement_sink_location): Change heuristic
4900 for not skipping stores to look for virtual definitions
4903 2020-10-07 Andrew MacLeod <amacleod@redhat.com>
4905 * value-range.h (irange_allocator::allocate): Allocate in two hunks
4906 instead of using the variably-sized trailing array approach.
4908 2020-10-07 David Malcolm <dmalcolm@redhat.com>
4910 * doc/invoke.texi (-fdiagnostics-plain-output): Add
4911 -fdiagnostics-path-format=separate-events to list of
4912 options injected by -fdiagnostics-plain-output.
4913 * opts-common.c (decode_cmdline_options_to_array): Likewise.
4915 2020-10-07 Martin Jambor <mjambor@suse.cz>
4918 * ipa-prop.c (update_indirect_edges_after_inlining): Do not add
4919 resolved speculation edges to vector of new direct edges even in
4920 presence of multiple speculative direct edges for a single call.
4922 2020-10-07 Andrew Stubbs <ams@codesourcery.com>
4924 * config/gcn/gcn.md (unspec): Add UNSPEC_ADDPTR.
4925 (addptrdi3): Add SGPR alternative.
4927 2020-10-07 Mark Wielaard <mark@klomp.org>
4929 * dwarf2out.c (add_filepath_AT_string): New function.
4930 (asm_outputs_debug_line_str): Likewise.
4931 (add_filename_attribute): Likewise.
4932 (add_comp_dir_attribute): Call add_filepath_AT_string.
4933 (gen_compile_unit_die): Call add_filename_attribute for name.
4934 (init_sections_and_labels): Init debug_line_str_section when
4935 asm_outputs_debug_line_str return true.
4936 (dwarf2out_early_finish): Remove DW_AT_name and DW_AT_comp_dir
4937 hack and call add_filename_attribute for the remap_debug_filename.
4939 2020-10-07 Jakub Jelinek <jakub@redhat.com>
4941 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG,
4942 HAVE_AS_WORKING_DWARF_4_FLAG): New tests.
4943 * gcc.c (ASM_DEBUG_DWARF_OPTION): Define.
4944 (ASM_DEBUG_SPEC): Use ASM_DEBUG_DWARF_OPTION instead of
4945 "--gdwarf2". Use %{cond:opt1;:opt2} style.
4946 (ASM_DEBUG_OPTION_DWARF_OPT): Define.
4947 (ASM_DEBUG_OPTION_SPEC): Define.
4948 (asm_debug_option): New variable.
4949 (asm_options): Add "%(asm_debug_option)".
4950 (static_specs): Add asm_debug_option entry.
4951 (static_spec_functions): Add dwarf-version-gt.
4952 (debug_level_greater_than_spec_func): New function.
4953 * config/darwin.h (ASM_DEBUG_OPTION_SPEC): Define.
4954 * config/darwin9.h (ASM_DEBUG_OPTION_SPEC): Redefine.
4955 * config.in: Regenerated.
4956 * configure: Regenerated.
4958 2020-10-07 Jakub Jelinek <jakub@redhat.com>
4961 * optc-save-gen.awk: Don't declare mask variable if explicit_mask
4962 array is not present.
4964 2020-10-07 Jakub Jelinek <jakub@redhat.com>
4966 * omp-expand.c (expand_omp_simd): Don't emit MIN_EXPR and PLUS_EXPR
4967 at the end of entry_bb and innermost init_bb, instead force arguments
4968 for MIN_EXPR into temporaries in both cases and jump to a new bb that
4969 performs MIN_EXPR and PLUS_EXPR.
4971 2020-10-07 Tom de Vries <tdevries@suse.de>
4973 * tree-ssa-loop-ch.c (ch_base::copy_headers): Add missing NULL test
4976 2020-10-06 Andrew MacLeod <amacleod@redhat.com>
4978 * flag-types.h (enum evrp_mode): New enumerated type EVRP_MODE_*.
4979 * common.opt (fevrp-mode): New undocumented flag.
4980 * gimple-ssa-evrp.c: Include gimple-range.h
4981 (class rvrp_folder): EVRP folding using ranger exclusively.
4982 (rvrp_folder::rvrp_folder): New.
4983 (rvrp_folder::~rvrp_folder): New.
4984 (rvrp_folder::value_of_expr): New. Use rangers value_of_expr.
4985 (rvrp_folder::value_on_edge): New. Use rangers value_on_edge.
4986 (rvrp_folder::value_of_Stmt): New. Use rangers value_of_stmt.
4987 (rvrp_folder::fold_stmt): New. Call the simplifier.
4988 (class hybrid_folder): EVRP folding using both engines.
4989 (hybrid_folder::hybrid_folder): New.
4990 (hybrid_folder::~hybrid_folder): New.
4991 (hybrid_folder::fold_stmt): New. Simplify with one engne, then the
4993 (hybrid_folder::value_of_expr): New. Use both value routines.
4994 (hybrid_folder::value_on_edge): New. Use both value routines.
4995 (hybrid_folder::value_of_stmt): New. Use both value routines.
4996 (hybrid_folder::choose_value): New. Choose between range_analzyer and
4998 (execute_early_vrp): Choose a folder based on flag_evrp_mode.
4999 * vr-values.c (simplify_using_ranges::fold_cond): Try range_of_stmt
5000 first to see if it returns a value.
5001 (simplify_using_ranges::simplify_switch_using_ranges): Return true if
5002 any changes were made to the switch.
5004 2020-10-06 Andrew MacLeod <amacleod@redhat.com>
5006 * Makefile.in (OBJS): Add gimple-range*.o.
5007 * gimple-range.h: New file.
5008 * gimple-range.cc: New file.
5009 * gimple-range-cache.h: New file.
5010 * gimple-range-cache.cc: New file.
5011 * gimple-range-edge.h: New file.
5012 * gimple-range-edge.cc: New file.
5013 * gimple-range-gori.h: New file.
5014 * gimple-range-gori.cc: New file.
5016 2020-10-06 Dennis Zhang <dennis.zhang@arm.com>
5018 * config/arm/arm.c (arm_preferred_simd_mode): Enable MVE SIMD modes.
5020 2020-10-06 Tom de Vries <tdevries@suse.de>
5023 * gimplify.c (gimplify_bind_expr): Handle lookup in
5024 oacc_declare_returns using key with decl-expr.
5026 2020-10-06 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5028 * config/arm/iterators.md (MVE_types): Move mode iterator from mve.md to
5030 (MVE_VLD_ST): Likewise.
5037 (MVE_CNVT): Move mode attribute iterator from mve.md to iterators.md.
5038 (MVE_LANES): Likewise.
5039 (MVE_constraint): Likewise.
5040 (MVE_constraint1): Likewise.
5041 (MVE_constraint2): Likewise.
5042 (MVE_constraint3): Likewise.
5043 (MVE_pred): Likewise.
5044 (MVE_pred1): Likewise.
5045 (MVE_pred2): Likewise.
5046 (MVE_pred3): Likewise.
5047 (MVE_B_ELEM): Likewise.
5048 (MVE_H_ELEM): Likewise.
5049 (V_sz_elem1): Likewise.
5050 (V_extr_elem): Likewise.
5051 (earlyclobber_32): Likewise.
5052 (supf): Move int attribute from mve.md to iterators.md.
5054 (VCVTQ_TO_F): Move int iterator from mve.md to iterators.md.
5055 (VMVNQ_N): Likewise.
5056 (VREV64Q): Likewise.
5057 (VCVTQ_FROM_F): Likewise.
5058 (VREV16Q): Likewise.
5061 (VDUPQ_N): Likewise.
5064 (VREV32Q): Likewise.
5065 (VMOVLBQ): Likewise.
5066 (VMOVLTQ): Likewise.
5070 (VADDLVQ): Likewise.
5072 (VCTPQ_M): Likewise.
5073 (VCVTQ_N_TO_F): Likewise.
5074 (VCREATEQ): Likewise.
5075 (VSHRQ_N): Likewise.
5076 (VCVTQ_N_FROM_F): Likewise.
5077 (VADDLVQ_P): Likewise.
5078 (VCMPNEQ): Likewise.
5081 (VADDQ_N): Likewise.
5082 (VADDVAQ): Likewise.
5083 (VADDVQ_P): Likewise.
5086 (VBRSRQ_N): Likewise.
5087 (VCADDQ_ROT270): Likewise.
5088 (VCADDQ_ROT90): Likewise.
5089 (VCMPEQQ): Likewise.
5090 (VCMPEQQ_N): Likewise.
5091 (VCMPNEQ_N): Likewise.
5094 (VHADDQ_N): Likewise.
5096 (VHSUBQ_N): Likewise.
5101 (VMLADAVQ): Likewise.
5103 (VMULLBQ_INT): Likewise.
5104 (VMULLTQ_INT): Likewise.
5106 (VMULQ_N): Likewise.
5110 (VQADDQ_N): Likewise.
5111 (VQRSHLQ): Likewise.
5112 (VQRSHLQ_N): Likewise.
5114 (VQSHLQ_N): Likewise.
5115 (VQSHLQ_R): Likewise.
5117 (VQSUBQ_N): Likewise.
5118 (VRHADDQ): Likewise.
5119 (VRMULHQ): Likewise.
5121 (VRSHLQ_N): Likewise.
5122 (VRSHRQ_N): Likewise.
5123 (VSHLQ_N): Likewise.
5124 (VSHLQ_R): Likewise.
5126 (VSUBQ_N): Likewise.
5127 (VADDLVAQ): Likewise.
5128 (VBICQ_N): Likewise.
5129 (VMLALDAVQ): Likewise.
5130 (VMLALDAVXQ): Likewise.
5131 (VMOVNBQ): Likewise.
5132 (VMOVNTQ): Likewise.
5133 (VORRQ_N): Likewise.
5134 (VQMOVNBQ): Likewise.
5135 (VQMOVNTQ): Likewise.
5136 (VSHLLBQ_N): Likewise.
5137 (VSHLLTQ_N): Likewise.
5138 (VRMLALDAVHQ): Likewise.
5139 (VBICQ_M_N): Likewise.
5140 (VCVTAQ_M): Likewise.
5141 (VCVTQ_M_TO_F): Likewise.
5142 (VQRSHRNBQ_N): Likewise.
5145 (VRMLALDAVHAQ): Likewise.
5146 (VADDVAQ_P): Likewise.
5147 (VCLZQ_M): Likewise.
5148 (VCMPEQQ_M_N): Likewise.
5149 (VCMPEQQ_M): Likewise.
5150 (VCMPNEQ_M_N): Likewise.
5151 (VCMPNEQ_M): Likewise.
5152 (VDUPQ_M_N): Likewise.
5153 (VMAXVQ_P): Likewise.
5154 (VMINVQ_P): Likewise.
5155 (VMLADAVAQ): Likewise.
5156 (VMLADAVQ_P): Likewise.
5157 (VMLAQ_N): Likewise.
5158 (VMLASQ_N): Likewise.
5159 (VMVNQ_M): Likewise.
5161 (VQDMLAHQ_N): Likewise.
5162 (VQRDMLAHQ_N): Likewise.
5163 (VQRDMLASHQ_N): Likewise.
5164 (VQRSHLQ_M_N): Likewise.
5165 (VQSHLQ_M_R): Likewise.
5166 (VREV64Q_M): Likewise.
5167 (VRSHLQ_M_N): Likewise.
5168 (VSHLQ_M_R): Likewise.
5169 (VSLIQ_N): Likewise.
5170 (VSRIQ_N): Likewise.
5171 (VMLALDAVQ_P): Likewise.
5172 (VQMOVNBQ_M): Likewise.
5173 (VMOVLTQ_M): Likewise.
5174 (VMOVNBQ_M): Likewise.
5175 (VRSHRNTQ_N): Likewise.
5176 (VORRQ_M_N): Likewise.
5177 (VREV32Q_M): Likewise.
5178 (VREV16Q_M): Likewise.
5179 (VQRSHRNTQ_N): Likewise.
5180 (VMOVNTQ_M): Likewise.
5181 (VMOVLBQ_M): Likewise.
5182 (VMLALDAVAQ): Likewise.
5183 (VQSHRNBQ_N): Likewise.
5184 (VSHRNBQ_N): Likewise.
5185 (VRSHRNBQ_N): Likewise.
5186 (VMLALDAVXQ_P): Likewise.
5187 (VQMOVNTQ_M): Likewise.
5188 (VMVNQ_M_N): Likewise.
5189 (VQSHRNTQ_N): Likewise.
5190 (VMLALDAVAXQ): Likewise.
5191 (VSHRNTQ_N): Likewise.
5192 (VCVTMQ_M): Likewise.
5193 (VCVTNQ_M): Likewise.
5194 (VCVTPQ_M): Likewise.
5195 (VCVTQ_M_N_FROM_F): Likewise.
5196 (VCVTQ_M_FROM_F): Likewise.
5197 (VRMLALDAVHQ_P): Likewise.
5198 (VADDLVAQ_P): Likewise.
5199 (VABAVQ_P): Likewise.
5200 (VSHLQ_M): Likewise.
5201 (VSRIQ_M_N): Likewise.
5202 (VSUBQ_M): Likewise.
5203 (VCVTQ_M_N_TO_F): Likewise.
5204 (VHSUBQ_M): Likewise.
5205 (VSLIQ_M_N): Likewise.
5206 (VRSHLQ_M): Likewise.
5207 (VMINQ_M): Likewise.
5208 (VMULLBQ_INT_M): Likewise.
5209 (VMULHQ_M): Likewise.
5210 (VMULQ_M): Likewise.
5211 (VHSUBQ_M_N): Likewise.
5212 (VHADDQ_M_N): Likewise.
5213 (VORRQ_M): Likewise.
5214 (VRMULHQ_M): Likewise.
5215 (VQADDQ_M): Likewise.
5216 (VRSHRQ_M_N): Likewise.
5217 (VQSUBQ_M_N): Likewise.
5218 (VADDQ_M): Likewise.
5219 (VORNQ_M): Likewise.
5220 (VRHADDQ_M): Likewise.
5221 (VQSHLQ_M): Likewise.
5222 (VANDQ_M): Likewise.
5223 (VBICQ_M): Likewise.
5224 (VSHLQ_M_N): Likewise.
5225 (VCADDQ_ROT270_M): Likewise.
5226 (VQRSHLQ_M): Likewise.
5227 (VQADDQ_M_N): Likewise.
5228 (VADDQ_M_N): Likewise.
5229 (VMAXQ_M): Likewise.
5230 (VQSUBQ_M): Likewise.
5231 (VMLASQ_M_N): Likewise.
5232 (VMLADAVAQ_P): Likewise.
5233 (VBRSRQ_M_N): Likewise.
5234 (VMULQ_M_N): Likewise.
5235 (VCADDQ_ROT90_M): Likewise.
5236 (VMULLTQ_INT_M): Likewise.
5237 (VEORQ_M): Likewise.
5238 (VSHRQ_M_N): Likewise.
5239 (VSUBQ_M_N): Likewise.
5240 (VHADDQ_M): Likewise.
5241 (VABDQ_M): Likewise.
5242 (VMLAQ_M_N): Likewise.
5243 (VQSHLQ_M_N): Likewise.
5244 (VMLALDAVAQ_P): Likewise.
5245 (VMLALDAVAXQ_P): Likewise.
5246 (VQRSHRNBQ_M_N): Likewise.
5247 (VQRSHRNTQ_M_N): Likewise.
5248 (VQSHRNBQ_M_N): Likewise.
5249 (VQSHRNTQ_M_N): Likewise.
5250 (VRSHRNBQ_M_N): Likewise.
5251 (VRSHRNTQ_M_N): Likewise.
5252 (VSHLLBQ_M_N): Likewise.
5253 (VSHLLTQ_M_N): Likewise.
5254 (VSHRNBQ_M_N): Likewise.
5255 (VSHRNTQ_M_N): Likewise.
5256 (VSTRWSBQ): Likewise.
5257 (VSTRBSOQ): Likewise.
5259 (VLDRBGOQ): Likewise.
5261 (VLDRWGBQ): Likewise.
5263 (VLDRHGOQ): Likewise.
5264 (VLDRHGSOQ): Likewise.
5267 (VLDRDGBQ): Likewise.
5268 (VLDRDGOQ): Likewise.
5269 (VLDRDGSOQ): Likewise.
5270 (VLDRWGOQ): Likewise.
5271 (VLDRWGSOQ): Likewise.
5273 (VSTRHSOQ): Likewise.
5274 (VSTRHSSOQ): Likewise.
5277 (VSTRDSBQ): Likewise.
5278 (VSTRDSOQ): Likewise.
5279 (VSTRDSSOQ): Likewise.
5280 (VSTRWSOQ): Likewise.
5281 (VSTRWSSOQ): Likewise.
5282 (VSTRWSBWBQ): Likewise.
5283 (VLDRWGBWBQ): Likewise.
5284 (VSTRDSBWBQ): Likewise.
5285 (VLDRDGBWBQ): Likewise.
5287 (VADCIQ_M): Likewise.
5289 (VSBCQ_M): Likewise.
5291 (VSBCIQ_M): Likewise.
5293 (VADCQ_M): Likewise.
5294 (UQRSHLLQ): Likewise.
5295 (SQRSHRLQ): Likewise.
5296 (VSHLCQ_M): Likewise.
5297 * config/arm/mve.md (MVE_types): Move mode iterator to iterators.md from mve.md.
5298 (MVE_VLD_ST): Likewise.
5305 (MVE_CNVT): Move mode attribute iterator to iterators.md from mve.md.
5306 (MVE_LANES): Likewise.
5307 (MVE_constraint): Likewise.
5308 (MVE_constraint1): Likewise.
5309 (MVE_constraint2): Likewise.
5310 (MVE_constraint3): Likewise.
5311 (MVE_pred): Likewise.
5312 (MVE_pred1): Likewise.
5313 (MVE_pred2): Likewise.
5314 (MVE_pred3): Likewise.
5315 (MVE_B_ELEM): Likewise.
5316 (MVE_H_ELEM): Likewise.
5317 (V_sz_elem1): Likewise.
5318 (V_extr_elem): Likewise.
5319 (earlyclobber_32): Likewise.
5320 (supf): Move int attribute to iterators.md from mve.md.
5322 (VCVTQ_TO_F): Move int iterator to iterators.md from mve.md.
5323 (VMVNQ_N): Likewise.
5324 (VREV64Q): Likewise.
5325 (VCVTQ_FROM_F): Likewise.
5326 (VREV16Q): Likewise.
5329 (VDUPQ_N): Likewise.
5332 (VREV32Q): Likewise.
5333 (VMOVLBQ): Likewise.
5334 (VMOVLTQ): Likewise.
5338 (VADDLVQ): Likewise.
5340 (VCTPQ_M): Likewise.
5341 (VCVTQ_N_TO_F): Likewise.
5342 (VCREATEQ): Likewise.
5343 (VSHRQ_N): Likewise.
5344 (VCVTQ_N_FROM_F): Likewise.
5345 (VADDLVQ_P): Likewise.
5346 (VCMPNEQ): Likewise.
5349 (VADDQ_N): Likewise.
5350 (VADDVAQ): Likewise.
5351 (VADDVQ_P): Likewise.
5354 (VBRSRQ_N): Likewise.
5355 (VCADDQ_ROT270): Likewise.
5356 (VCADDQ_ROT90): Likewise.
5357 (VCMPEQQ): Likewise.
5358 (VCMPEQQ_N): Likewise.
5359 (VCMPNEQ_N): Likewise.
5362 (VHADDQ_N): Likewise.
5364 (VHSUBQ_N): Likewise.
5369 (VMLADAVQ): Likewise.
5371 (VMULLBQ_INT): Likewise.
5372 (VMULLTQ_INT): Likewise.
5374 (VMULQ_N): Likewise.
5378 (VQADDQ_N): Likewise.
5379 (VQRSHLQ): Likewise.
5380 (VQRSHLQ_N): Likewise.
5382 (VQSHLQ_N): Likewise.
5383 (VQSHLQ_R): Likewise.
5385 (VQSUBQ_N): Likewise.
5386 (VRHADDQ): Likewise.
5387 (VRMULHQ): Likewise.
5389 (VRSHLQ_N): Likewise.
5390 (VRSHRQ_N): Likewise.
5391 (VSHLQ_N): Likewise.
5392 (VSHLQ_R): Likewise.
5394 (VSUBQ_N): Likewise.
5395 (VADDLVAQ): Likewise.
5396 (VBICQ_N): Likewise.
5397 (VMLALDAVQ): Likewise.
5398 (VMLALDAVXQ): Likewise.
5399 (VMOVNBQ): Likewise.
5400 (VMOVNTQ): Likewise.
5401 (VORRQ_N): Likewise.
5402 (VQMOVNBQ): Likewise.
5403 (VQMOVNTQ): Likewise.
5404 (VSHLLBQ_N): Likewise.
5405 (VSHLLTQ_N): Likewise.
5406 (VRMLALDAVHQ): Likewise.
5407 (VBICQ_M_N): Likewise.
5408 (VCVTAQ_M): Likewise.
5409 (VCVTQ_M_TO_F): Likewise.
5410 (VQRSHRNBQ_N): Likewise.
5413 (VRMLALDAVHAQ): Likewise.
5414 (VADDVAQ_P): Likewise.
5415 (VCLZQ_M): Likewise.
5416 (VCMPEQQ_M_N): Likewise.
5417 (VCMPEQQ_M): Likewise.
5418 (VCMPNEQ_M_N): Likewise.
5419 (VCMPNEQ_M): Likewise.
5420 (VDUPQ_M_N): Likewise.
5421 (VMAXVQ_P): Likewise.
5422 (VMINVQ_P): Likewise.
5423 (VMLADAVAQ): Likewise.
5424 (VMLADAVQ_P): Likewise.
5425 (VMLAQ_N): Likewise.
5426 (VMLASQ_N): Likewise.
5427 (VMVNQ_M): Likewise.
5429 (VQDMLAHQ_N): Likewise.
5430 (VQRDMLAHQ_N): Likewise.
5431 (VQRDMLASHQ_N): Likewise.
5432 (VQRSHLQ_M_N): Likewise.
5433 (VQSHLQ_M_R): Likewise.
5434 (VREV64Q_M): Likewise.
5435 (VRSHLQ_M_N): Likewise.
5436 (VSHLQ_M_R): Likewise.
5437 (VSLIQ_N): Likewise.
5438 (VSRIQ_N): Likewise.
5439 (VMLALDAVQ_P): Likewise.
5440 (VQMOVNBQ_M): Likewise.
5441 (VMOVLTQ_M): Likewise.
5442 (VMOVNBQ_M): Likewise.
5443 (VRSHRNTQ_N): Likewise.
5444 (VORRQ_M_N): Likewise.
5445 (VREV32Q_M): Likewise.
5446 (VREV16Q_M): Likewise.
5447 (VQRSHRNTQ_N): Likewise.
5448 (VMOVNTQ_M): Likewise.
5449 (VMOVLBQ_M): Likewise.
5450 (VMLALDAVAQ): Likewise.
5451 (VQSHRNBQ_N): Likewise.
5452 (VSHRNBQ_N): Likewise.
5453 (VRSHRNBQ_N): Likewise.
5454 (VMLALDAVXQ_P): Likewise.
5455 (VQMOVNTQ_M): Likewise.
5456 (VMVNQ_M_N): Likewise.
5457 (VQSHRNTQ_N): Likewise.
5458 (VMLALDAVAXQ): Likewise.
5459 (VSHRNTQ_N): Likewise.
5460 (VCVTMQ_M): Likewise.
5461 (VCVTNQ_M): Likewise.
5462 (VCVTPQ_M): Likewise.
5463 (VCVTQ_M_N_FROM_F): Likewise.
5464 (VCVTQ_M_FROM_F): Likewise.
5465 (VRMLALDAVHQ_P): Likewise.
5466 (VADDLVAQ_P): Likewise.
5467 (VABAVQ_P): Likewise.
5468 (VSHLQ_M): Likewise.
5469 (VSRIQ_M_N): Likewise.
5470 (VSUBQ_M): Likewise.
5471 (VCVTQ_M_N_TO_F): Likewise.
5472 (VHSUBQ_M): Likewise.
5473 (VSLIQ_M_N): Likewise.
5474 (VRSHLQ_M): Likewise.
5475 (VMINQ_M): Likewise.
5476 (VMULLBQ_INT_M): Likewise.
5477 (VMULHQ_M): Likewise.
5478 (VMULQ_M): Likewise.
5479 (VHSUBQ_M_N): Likewise.
5480 (VHADDQ_M_N): Likewise.
5481 (VORRQ_M): Likewise.
5482 (VRMULHQ_M): Likewise.
5483 (VQADDQ_M): Likewise.
5484 (VRSHRQ_M_N): Likewise.
5485 (VQSUBQ_M_N): Likewise.
5486 (VADDQ_M): Likewise.
5487 (VORNQ_M): Likewise.
5488 (VRHADDQ_M): Likewise.
5489 (VQSHLQ_M): Likewise.
5490 (VANDQ_M): Likewise.
5491 (VBICQ_M): Likewise.
5492 (VSHLQ_M_N): Likewise.
5493 (VCADDQ_ROT270_M): Likewise.
5494 (VQRSHLQ_M): Likewise.
5495 (VQADDQ_M_N): Likewise.
5496 (VADDQ_M_N): Likewise.
5497 (VMAXQ_M): Likewise.
5498 (VQSUBQ_M): Likewise.
5499 (VMLASQ_M_N): Likewise.
5500 (VMLADAVAQ_P): Likewise.
5501 (VBRSRQ_M_N): Likewise.
5502 (VMULQ_M_N): Likewise.
5503 (VCADDQ_ROT90_M): Likewise.
5504 (VMULLTQ_INT_M): Likewise.
5505 (VEORQ_M): Likewise.
5506 (VSHRQ_M_N): Likewise.
5507 (VSUBQ_M_N): Likewise.
5508 (VHADDQ_M): Likewise.
5509 (VABDQ_M): Likewise.
5510 (VMLAQ_M_N): Likewise.
5511 (VQSHLQ_M_N): Likewise.
5512 (VMLALDAVAQ_P): Likewise.
5513 (VMLALDAVAXQ_P): Likewise.
5514 (VQRSHRNBQ_M_N): Likewise.
5515 (VQRSHRNTQ_M_N): Likewise.
5516 (VQSHRNBQ_M_N): Likewise.
5517 (VQSHRNTQ_M_N): Likewise.
5518 (VRSHRNBQ_M_N): Likewise.
5519 (VRSHRNTQ_M_N): Likewise.
5520 (VSHLLBQ_M_N): Likewise.
5521 (VSHLLTQ_M_N): Likewise.
5522 (VSHRNBQ_M_N): Likewise.
5523 (VSHRNTQ_M_N): Likewise.
5524 (VSTRWSBQ): Likewise.
5525 (VSTRBSOQ): Likewise.
5527 (VLDRBGOQ): Likewise.
5529 (VLDRWGBQ): Likewise.
5531 (VLDRHGOQ): Likewise.
5532 (VLDRHGSOQ): Likewise.
5535 (VLDRDGBQ): Likewise.
5536 (VLDRDGOQ): Likewise.
5537 (VLDRDGSOQ): Likewise.
5538 (VLDRWGOQ): Likewise.
5539 (VLDRWGSOQ): Likewise.
5541 (VSTRHSOQ): Likewise.
5542 (VSTRHSSOQ): Likewise.
5545 (VSTRDSBQ): Likewise.
5546 (VSTRDSOQ): Likewise.
5547 (VSTRDSSOQ): Likewise.
5548 (VSTRWSOQ): Likewise.
5549 (VSTRWSSOQ): Likewise.
5550 (VSTRWSBWBQ): Likewise.
5551 (VLDRWGBWBQ): Likewise.
5552 (VSTRDSBWBQ): Likewise.
5553 (VLDRDGBWBQ): Likewise.
5555 (VADCIQ_M): Likewise.
5557 (VSBCQ_M): Likewise.
5559 (VSBCIQ_M): Likewise.
5561 (VADCQ_M): Likewise.
5562 (UQRSHLLQ): Likewise.
5563 (SQRSHRLQ): Likewise.
5564 (VSHLCQ_M): Likewise.
5565 (define_c_enum "unspec"): Move MVE enumerator to unspecs.md from mve.md.
5566 * config/arm/unspecs.md (define_c_enum "unspec"): Move MVE enumerator from
5567 mve.md to unspecs.md.
5569 2020-10-06 Martin Liska <mliska@suse.cz>
5571 * common.opt: Remove -fdbg-cnt-list from deferred options.
5572 * dbgcnt.c (dbg_cnt_set_limit_by_index): Make a copy
5574 (dbg_cnt_list_all_counters): Print also current counter value
5575 and print to stderr.
5576 * opts-global.c (handle_common_deferred_options): Do not handle
5578 * opts.c (common_handle_option): Likewise.
5579 * toplev.c (finalize): Handle it after compilation here.
5581 2020-10-06 Martin Liska <mliska@suse.cz>
5583 * dbgcnt.c (dbg_cnt): Report also upper limit.
5585 2020-10-06 Tom de Vries <tdevries@suse.de>
5587 * tracer.c (count_insns): Rename to ...
5588 (analyze_bb): ... this.
5589 (cache_can_duplicate_bb_p, cached_can_duplicate_bb_p): New function.
5590 (ignore_bb_p): Use cached_can_duplicate_bb_p.
5591 (tail_duplicate): Call cache_can_duplicate_bb_p.
5593 2020-10-06 Tom de Vries <tdevries@suse.de>
5595 * tracer.c (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
5596 (can_duplicate_bb_p): New function, factored out of ...
5597 (ignore_bb_p): ... here.
5599 2020-10-06 Jakub Jelinek <jakub@redhat.com>
5601 PR rtl-optimization/97282
5602 * tree-ssa-math-opts.c (divmod_candidate_p): Don't return false for
5603 constant op2 if it is not a power of two and the type has precision
5604 larger than HOST_BITS_PER_WIDE_INT or BITS_PER_WORD.
5605 * internal-fn.c (contains_call_div_mod): New function.
5606 (expand_DIVMOD): If last argument is a constant, try to expand it as
5607 TRUNC_DIV_EXPR followed by TRUNC_MOD_EXPR, but if the sequence
5608 contains any calls or {,U}{DIV,MOD} rtxes, throw it away and use
5609 divmod optab or divmod libfunc.
5611 2020-10-06 Aldy Hernandez <aldyh@redhat.com>
5613 * value-range.h (irange_allocator::allocate): Increase
5614 newir storage by one.
5616 2020-10-06 Jakub Jelinek <jakub@redhat.com>
5619 * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Only follow
5620 node->alias_target if it is a FUNCTION_DECL.
5622 2020-10-06 Joe Ramsay <joe.ramsay@arm.com>
5624 * config/arm/arm-cpus.in:
5625 (ALL_FPU_INTERNAL): Remove vfp_base.
5626 (VFPv2): Remove vfp_base.
5627 (MVE): Remove vfp_base.
5628 (vfp_base): Redefine as implied bit dependent on MVE or FP
5629 (cortex-m55): Add flags to disable MVE, MVE FP, FP and DSP extensions.
5630 * config/arm/arm.c (arm_configure_build_target): Add implied bits to ISA.
5631 * config/arm/parsecpu.awk:
5632 (gen_isa): Print implied bits and their dependencies to ISA header.
5633 (gen_data): Add parsing for implied feature bits.
5635 2020-10-06 Andreas Krebbel <krebbel@linux.ibm.com>
5637 * doc/invoke.texi: Add z15/arch13 to the list of documented
5638 -march/-mtune options.
5640 2020-10-05 Aldy Hernandez <aldyh@redhat.com>
5642 * value-range.cc (irange::legacy_intersect): Only handle
5644 (irange::legacy_union): Same.
5645 (irange::union_): When unioning legacy with non-legacy,
5646 first convert to legacy and do everything in legacy mode.
5647 (irange::intersect): Same, but for intersect.
5648 * range-op.cc (range_tests): Adjust for above changes.
5650 2020-10-05 Aldy Hernandez <aldyh@redhat.com>
5652 * range-op.cc (operator_div::wi_fold): Return varying for
5654 (class operator_rshift): Move class up.
5655 (operator_abs::wi_fold): Return [-MIN,-MIN] for ABS([-MIN,-MIN]).
5656 (operator_tests): Adjust tests.
5658 2020-10-05 Tom de Vries <tdevries@suse.de>
5660 * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_XCHG_*.
5662 2020-10-05 Alex Coplan <alex.coplan@arm.com>
5664 * config/arm/arm-cpus.in (neoverse-v1): Add missing vendor and
5667 2020-10-05 Tom de Vries <tdevries@suse.de>
5669 * tracer.c (ignore_bb_p): Remove incorrect suggestion.
5671 2020-10-05 Jakub Jelinek <jakub@redhat.com>
5673 * opth-gen.awk: Don't emit explicit_mask array if n_target_explicit
5674 is equal to n_target_explicit_mask.
5675 * optc-save-gen.awk: Compute has_target_explicit_mask and if false,
5676 don't emit code iterating over explicit_mask array elements. Stream
5677 also explicit_mask_* target members.
5679 2020-10-05 Jakub Jelinek <jakub@redhat.com>
5681 * gimple-ssa-store-merging.c
5682 (imm_store_chain_info::output_merged_store): Use ~0U instead of ~0 in
5683 unsigned int array initializer.
5685 2020-10-05 Tom de Vries <tdevries@suse.de>
5688 * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_ENTER_ALLOC,
5689 GOMP_SIMT_VOTE_ANY and GOMP_SIMT_EXIT.
5691 2020-10-03 Jakub Jelinek <jakub@redhat.com>
5693 * opth-gen.awk: For variables referenced in Mask and InverseMask,
5694 don't use the explicit_mask bitmask array, but add separate
5695 explicit_mask_* members with the same types as the variables.
5696 * optc-save-gen.awk: Save, restore, compare and hash the separate
5697 explicit_mask_* members.
5699 2020-10-03 Jan Hubicka <hubicka@ucw.cz>
5701 * ipa-modref-tree.c (test_insert_search_collapse): Update andling
5703 (test_merge): Likewise.
5704 * ipa-modref-tree.h (struct modref_access_node): Add offset, size,
5705 max_size, parm_offset and parm_offset_known.
5706 (modref_access_node::useful_p): Constify.
5707 (modref_access_node::range_info_useful_p): New predicate.
5708 (modref_access_node::operator==): New.
5709 (struct modref_parm_map): New structure.
5710 (modref_tree::merge): Update for racking parameters)
5711 * ipa-modref.c (dump_access): Dump new fields.
5712 (get_access): Fill in new fields.
5713 (merge_call_side_effects): Update handling of parm map.
5714 (write_modref_records): Stream new fields.
5715 (read_modref_records): Stream new fields.
5716 (compute_parm_map): Update for new parm map.
5717 (ipa_merge_modref_summary_after_inlining): Update.
5718 (modref_propagate_in_scc): Update.
5719 * tree-ssa-alias.c (modref_may_conflict): Handle known ranges.
5721 2020-10-03 H.J. Lu <hjl.tools@gmail.com>
5724 * doc/extend.texi: Replace roudnevenl with roundevenl
5726 2020-10-02 David Edelsohn <dje.gcc@gmail.com>
5727 Andrew MacLeod <amacleod@redhat.com>
5729 * config/rs6000/rs6000.c: Include ssa.h. Reorder some headers.
5730 * config/rs6000/rs6000-call.c: Same.
5732 2020-10-02 Martin Jambor <mjambor@suse.cz>
5734 * params.opt (ipa-cp-large-unit-insns): New parameter.
5735 * ipa-cp.c (get_max_overall_size): Use the new parameter.
5737 2020-10-02 Martin Jambor <mjambor@suse.cz>
5739 * ipa-cp.c (estimate_local_effects): Add overeall_size to dumped
5741 (decide_about_value): Add dumping new overall_size.
5743 2020-10-02 Martin Jambor <mjambor@suse.cz>
5745 * ipa-fnsummary.h (ipa_freqcounting_predicate): New type.
5746 (ipa_fn_summary): Change the type of loop_iterations and loop_strides
5747 to vectors of ipa_freqcounting_predicate.
5748 (ipa_fn_summary::ipa_fn_summary): Construct the new vectors.
5749 (ipa_call_estimates): New fields loops_with_known_iterations and
5750 loops_with_known_strides.
5751 * ipa-cp.c (hint_time_bonus): Multiply param_ipa_cp_loop_hint_bonus
5752 with the expected frequencies of loops with known iteration count or
5754 * ipa-fnsummary.c (add_freqcounting_predicate): New function.
5755 (ipa_fn_summary::~ipa_fn_summary): Release the new vectors instead of
5756 just two predicates.
5757 (remap_hint_predicate_after_duplication): Replace with function
5758 remap_freqcounting_preds_after_dup.
5759 (ipa_fn_summary_t::duplicate): Use it or duplicate new vectors.
5760 (ipa_dump_fn_summary): Dump the new vectors.
5761 (analyze_function_body): Compute the loop property vectors.
5762 (ipa_call_context::estimate_size_and_time): Calculate also
5763 loops_with_known_iterations and loops_with_known_strides. Adjusted
5765 (remap_hint_predicate): Replace with function
5766 remap_freqcounting_predicate.
5767 (ipa_merge_fn_summary_after_inlining): Use it.
5768 (inline_read_section): Stream loopcounting vectors instead of two
5770 (ipa_fn_summary_write): Likewise.
5771 * params.opt (ipa-max-loop-predicates): New parameter.
5772 * doc/invoke.texi (ipa-max-loop-predicates): Document new param.
5774 2020-10-02 Martin Jambor <mjambor@suse.cz>
5776 * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to use
5778 (do_estimate_edge_size): Likewise.
5779 (do_estimate_edge_hints): Likewise.
5780 * ipa-fnsummary.h (struct ipa_call_estimates): New type.
5781 (ipa_call_context::estimate_size_and_time): Adjusted declaration.
5782 (estimate_ipcp_clone_size_and_time): Likewise.
5783 * ipa-cp.c (hint_time_bonus): Changed the type of the second argument
5784 to ipa_call_estimates.
5785 (perform_estimation_of_a_value): Adjusted to use ipa_call_estimates.
5786 (estimate_local_effects): Likewise.
5787 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Adjusted
5788 to return estimates in a single ipa_call_estimates parameter.
5789 (estimate_ipcp_clone_size_and_time): Likewise.
5791 2020-10-02 Martin Jambor <mjambor@suse.cz>
5793 * ipa-fnsummary.h (ipa_cached_call_context): New forward declaration
5795 (class ipa_call_context): Make friend ipa_cached_call_context. Moved
5796 methods duplicate_from and release to it too.
5797 * ipa-fnsummary.c (ipa_call_context::duplicate_from): Moved to class
5798 ipa_cached_call_context.
5799 (ipa_call_context::release): Likewise, removed the parameter.
5800 * ipa-inline-analysis.c (node_context_cache_entry): Change the type of
5801 ctx to ipa_cached_call_context.
5802 (do_estimate_edge_time): Remove parameter from the call to
5803 ipa_cached_call_context::release.
5805 2020-10-02 Martin Jambor <mjambor@suse.cz>
5807 * ipa-prop.h (ipa_auto_call_arg_values): New type.
5808 (class ipa_call_arg_values): Likewise.
5809 (ipa_get_indirect_edge_target): Replaced vector arguments with
5810 ipa_call_arg_values in declaration. Added an overload for
5811 ipa_auto_call_arg_values.
5812 * ipa-fnsummary.h (ipa_call_context): Removed members m_known_vals,
5813 m_known_contexts, m_known_aggs, duplicate_from, release and equal_to,
5814 new members m_avals, store_to_cache and equivalent_to_p. Adjusted
5815 construcotr arguments.
5816 (estimate_ipcp_clone_size_and_time): Replaced vector arguments
5817 with ipa_auto_call_arg_values in declaration.
5818 (evaluate_properties_for_edge): Likewise.
5819 * ipa-cp.c (ipa_get_indirect_edge_target): Adjusted to work on
5820 ipa_call_arg_values rather than on separate vectors. Added an
5821 overload for ipa_auto_call_arg_values.
5822 (devirtualization_time_bonus): Adjusted to work on
5823 ipa_auto_call_arg_values rather than on separate vectors.
5824 (gather_context_independent_values): Adjusted to work on
5825 ipa_auto_call_arg_values rather than on separate vectors.
5826 (perform_estimation_of_a_value): Likewise.
5827 (estimate_local_effects): Likewise.
5828 (modify_known_vectors_with_val): Adjusted both variants to work on
5829 ipa_auto_call_arg_values and rename them to
5830 copy_known_vectors_add_val.
5831 (decide_about_value): Adjusted to work on ipa_call_arg_values rather
5832 than on separate vectors.
5833 (decide_whether_version_node): Likewise.
5834 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Likewise.
5835 (evaluate_properties_for_edge): Likewise.
5836 (ipa_fn_summary_t::duplicate): Likewise.
5837 (estimate_edge_devirt_benefit): Adjusted to work on
5838 ipa_call_arg_values rather than on separate vectors.
5839 (estimate_edge_size_and_time): Likewise.
5840 (estimate_calls_size_and_time_1): Likewise.
5841 (summarize_calls_size_and_time): Adjusted calls to
5842 estimate_edge_size_and_time.
5843 (estimate_calls_size_and_time): Adjusted to work on
5844 ipa_call_arg_values rather than on separate vectors.
5845 (ipa_call_context::ipa_call_context): Construct from a pointer to
5846 ipa_auto_call_arg_values instead of inividual vectors.
5847 (ipa_call_context::duplicate_from): Adjusted to access vectors within
5849 (ipa_call_context::release): Likewise.
5850 (ipa_call_context::equal_to): Likewise.
5851 (ipa_call_context::estimate_size_and_time): Adjusted to work on
5852 ipa_call_arg_values rather than on separate vectors.
5853 (estimate_ipcp_clone_size_and_time): Adjusted to work with
5854 ipa_auto_call_arg_values rather than on separate vectors.
5855 (ipa_merge_fn_summary_after_inlining): Likewise. Adjusted call to
5856 estimate_edge_size_and_time.
5857 (ipa_update_overall_fn_summary): Adjusted call to
5858 estimate_edge_size_and_time.
5859 * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to work with
5860 ipa_auto_call_arg_values rather than with separate vectors.
5861 (do_estimate_edge_size): Likewise.
5862 (do_estimate_edge_hints): Likewise.
5863 * ipa-prop.c (ipa_auto_call_arg_values::~ipa_auto_call_arg_values):
5866 2020-10-02 Joe Ramsay <joe.ramsay@arm.com>
5868 * config/arm/arm_mve.h (__arm_vmaxnmavq): Remove coercion of scalar
5870 (__arm_vmaxnmvq): Likewise.
5871 (__arm_vminnmavq): Likewise.
5872 (__arm_vminnmvq): Likewise.
5873 (__arm_vmaxnmavq_p): Likewise.
5874 (__arm_vmaxnmvq_p): Likewise (and delete duplicate definition).
5875 (__arm_vminnmavq_p): Likewise.
5876 (__arm_vminnmvq_p): Likewise.
5877 (__arm_vmaxavq): Likewise.
5878 (__arm_vmaxavq_p): Likewise.
5879 (__arm_vmaxvq): Likewise.
5880 (__arm_vmaxvq_p): Likewise.
5881 (__arm_vminavq): Likewise.
5882 (__arm_vminavq_p): Likewise.
5883 (__arm_vminvq): Likewise.
5884 (__arm_vminvq_p): Likewise.
5886 2020-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5888 * config/aarch64/aarch64.c (neoversev1_tunings): Define.
5889 * config/aarch64/aarch64-cores.def (zeus): Use it.
5890 (neoverse-v1): Likewise.
5892 2020-10-02 Jan Hubicka <hubicka@ucw.cz>
5894 * attr-fnspec.h: Update documentation.
5895 (attr_fnsec::return_desc_size): Set to 2
5896 (attr_fnsec::arg_desc_size): Set to 2
5897 * builtin-attrs.def (STR1): Update fnspec.
5898 * internal-fn.def (UBSAN_NULL): Update fnspec.
5899 (UBSAN_VPTR): Update fnspec.
5900 (UBSAN_PTR): Update fnspec.
5901 (ASAN_CHECK): Update fnspec.
5902 (GOACC_DIM_SIZE): Remove fnspec.
5903 (GOACC_DIM_POS): Remove fnspec.
5904 * tree-ssa-alias.c (attr_fnspec::verify): Update verification.
5906 2020-10-02 Jan Hubicka <jh@suse.cz>
5908 * attr-fnspec.h: New file.
5909 * calls.c (decl_return_flags): Use attr_fnspec.
5910 * gimple.c (gimple_call_arg_flags): Use attr_fnspec.
5911 (gimple_call_return_flags): Use attr_fnspec.
5912 * tree-into-ssa.c (pass_build_ssa::execute): Use attr_fnspec.
5913 * tree-ssa-alias.c (attr_fnspec::verify): New member fuction.
5915 2020-10-02 Jan Hubicka <jh@suse.cz>
5917 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_range): Break out from ...
5918 (ao_ref_init_from_ptr_and_size): ... here.
5920 2020-10-02 Jan Hubicka <hubicka@ucw.cz>
5922 * data-streamer-in.c (streamer_read_poly_int64): New function.
5923 * data-streamer-out.c (streamer_write_poly_int64): New function.
5924 * data-streamer.h (streamer_write_poly_int64): Declare.
5925 (streamer_read_poly_int64): Declare.
5927 2020-10-02 Richard Sandiford <richard.sandiford@arm.com>
5929 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
5931 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): Likewise.
5932 * config/aarch64/aarch64-sve.md: Add banner comment describing
5933 how merging predicated FP operations are represented.
5934 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2): Split into...
5935 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_relaxed): ...this and...
5936 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_strict): ...this.
5937 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any): Split into...
5938 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_relaxed): ...this and...
5939 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_strict): ...this.
5940 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): Split into...
5941 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_relaxed): ...this and...
5942 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_strict): ...this.
5943 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Split into...
5944 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_relaxed): ...this
5946 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_strict): ...this.
5947 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2): Split into...
5948 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_relaxed): ...this and...
5949 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_strict): ...this.
5950 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const): Split into...
5951 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_relaxed): ...this
5953 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_strict): ...this.
5954 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3): Split into...
5955 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_relaxed): ...this and...
5956 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_strict): ...this.
5957 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any): Split into...
5958 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_relaxed): ...this and...
5959 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_strict): ...this.
5960 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const): Split into...
5961 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_relaxed): ...this
5963 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_strict): ...this.
5964 (*cond_add<mode>_2_const): Split into...
5965 (*cond_add<mode>_2_const_relaxed): ...this and...
5966 (*cond_add<mode>_2_const_strict): ...this.
5967 (*cond_add<mode>_any_const): Split into...
5968 (*cond_add<mode>_any_const_relaxed): ...this and...
5969 (*cond_add<mode>_any_const_strict): ...this.
5970 (*cond_<SVE_COND_FCADD:optab><mode>_2): Split into...
5971 (*cond_<SVE_COND_FCADD:optab><mode>_2_relaxed): ...this and...
5972 (*cond_<SVE_COND_FCADD:optab><mode>_2_strict): ...this.
5973 (*cond_<SVE_COND_FCADD:optab><mode>_any): Split into...
5974 (*cond_<SVE_COND_FCADD:optab><mode>_any_relaxed): ...this and...
5975 (*cond_<SVE_COND_FCADD:optab><mode>_any_strict): ...this.
5976 (*cond_sub<mode>_3_const): Split into...
5977 (*cond_sub<mode>_3_const_relaxed): ...this and...
5978 (*cond_sub<mode>_3_const_strict): ...this.
5979 (*aarch64_pred_abd<mode>): Split into...
5980 (*aarch64_pred_abd<mode>_relaxed): ...this and...
5981 (*aarch64_pred_abd<mode>_strict): ...this.
5982 (*aarch64_cond_abd<mode>_2): Split into...
5983 (*aarch64_cond_abd<mode>_2_relaxed): ...this and...
5984 (*aarch64_cond_abd<mode>_2_strict): ...this.
5985 (*aarch64_cond_abd<mode>_3): Split into...
5986 (*aarch64_cond_abd<mode>_3_relaxed): ...this and...
5987 (*aarch64_cond_abd<mode>_3_strict): ...this.
5988 (*aarch64_cond_abd<mode>_any): Split into...
5989 (*aarch64_cond_abd<mode>_any_relaxed): ...this and...
5990 (*aarch64_cond_abd<mode>_any_strict): ...this.
5991 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2): Split into...
5992 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_relaxed): ...this and...
5993 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_strict): ...this.
5994 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4): Split into...
5995 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_relaxed): ...this and...
5996 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_strict): ...this.
5997 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any): Split into...
5998 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_relaxed): ...this and...
5999 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_strict): ...this.
6000 (*cond_<SVE_COND_FCMLA:optab><mode>_4): Split into...
6001 (*cond_<SVE_COND_FCMLA:optab><mode>_4_relaxed): ...this and...
6002 (*cond_<SVE_COND_FCMLA:optab><mode>_4_strict): ...this.
6003 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Split into...
6004 (*cond_<SVE_COND_FCMLA:optab><mode>_any_relaxed): ...this and...
6005 (*cond_<SVE_COND_FCMLA:optab><mode>_any_strict): ...this.
6006 (*aarch64_pred_fac<cmp_op><mode>): Split into...
6007 (*aarch64_pred_fac<cmp_op><mode>_relaxed): ...this and...
6008 (*aarch64_pred_fac<cmp_op><mode>_strict): ...this.
6009 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>): Split
6011 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_relaxed):
6013 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_strict):
6015 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>): Split
6017 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_relaxed):
6019 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_strict):
6021 * config/aarch64/aarch64-sve2.md
6022 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>): Split into...
6023 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_relaxed): ...this and...
6024 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_strict): ...this.
6025 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any): Split into...
6026 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_relaxed): ...this
6028 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_strict): ...this.
6029 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>): Split into...
6030 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_relaxed): ...this and...
6031 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_strict): ...this.
6033 2020-10-02 Richard Sandiford <richard.sandiford@arm.com>
6035 * config/arm/neon.md (*sub<VDQ:mode>3_neon): Use the new mode macros
6036 for the insn condition.
6037 (sub<VH:mode>3, *mul<VDQW:mode>3_neon): Likewise.
6038 (mul<VDQW:mode>3add<VDQW:mode>_neon): Likewise.
6039 (mul<VH:mode>3add<VH:mode>_neon): Likewise.
6040 (mul<VDQW:mode>3neg<VDQW:mode>add<VDQW:mode>_neon): Likewise.
6041 (fma<VCVTF:mode>4, fma<VH:mode>4, *fmsub<VCVTF:mode>4): Likewise.
6042 (quad_halves_<code>v4sf, reduc_plus_scal_<VD:mode>): Likewise.
6043 (reduc_plus_scal_<VQ:mode>, reduc_smin_scal_<VD:mode>): Likewise.
6044 (reduc_smin_scal_<VQ:mode>, reduc_smax_scal_<VD:mode>): Likewise.
6045 (reduc_smax_scal_<VQ:mode>, mul<VH:mode>3): Likewise.
6046 (neon_vabd<VF:mode>_2, neon_vabd<VF:mode>_3): Likewise.
6047 (fma<VH:mode>4_intrinsic): Delete.
6048 (neon_vadd<VCVTF:mode>): Use the new mode macros to decide which
6049 form of instruction to generate.
6050 (neon_vmla<VDQW:mode>, neon_vmls<VDQW:mode>): Likewise.
6051 (neon_vsub<VCVTF:mode>): Likewise.
6052 (neon_vfma<VH:mode>): Generate the main fma<mode>4 form instead
6053 of using fma<mode>4_intrinsic.
6055 2020-10-02 Martin Liska <mliska@suse.cz>
6057 PR gcov-profile/97193
6058 * coverage.c (coverage_init): GCDA note files should not be
6059 mangled and should end in output directory.
6061 2020-10-02 Jason Merril <jason@redhat.com>
6063 * gimple.h (gimple_call_operator_delete_p): Rename from
6064 gimple_call_replaceable_operator_delete_p.
6065 * gimple.c (gimple_call_operator_delete_p): Likewise.
6066 * tree.h (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): Remove.
6067 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Adjust.
6068 (propagate_necessity): Likewise.
6069 (eliminate_unnecessary_stmts): Likewise.
6070 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
6072 2020-10-02 Richard Biener <rguenther@suse.de>
6074 * gimple.h (GF_CALL_FROM_NEW_OR_DELETE): New call flag.
6075 (gimple_call_set_from_new_or_delete): New.
6076 (gimple_call_from_new_or_delete): Likewise.
6077 * gimple.c (gimple_build_call_from_tree): Set
6078 GF_CALL_FROM_NEW_OR_DELETE appropriately.
6079 * ipa-icf-gimple.c (func_checker::compare_gimple_call):
6080 Compare gimple_call_from_new_or_delete.
6081 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Make
6082 sure to only consider new/delete calls from new or delete
6084 (propagate_necessity): Likewise.
6085 (eliminate_unnecessary_stmts): Likewise.
6086 * tree-ssa-structalias.c (find_func_aliases_for_call):
6089 2020-10-02 Jason Merril <jason@redhat.com>
6091 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Move from cp-tree.h.
6092 * tree-core.h: Document new usage of protected_flag.
6094 2020-10-02 Aldy Hernandez <aldyh@redhat.com>
6096 * value-range.h (irange::fits_p): New.
6098 2020-10-01 Alan Modra <amodra@gmail.com>
6100 * config/rs6000/rs6000.c (rs6000_legitimize_address): Use
6101 gen_int_mode for high part of address constant.
6103 2020-10-01 Alan Modra <amodra@gmail.com>
6105 * config/rs6000/rs6000.c (rs6000_linux64_override_options):
6106 Formatting. Correct setting of TARGET_NO_FP_IN_TOC and
6107 TARGET_NO_SUM_IN_TOC.
6109 2020-10-01 Alan Modra <amodra@gmail.com>
6111 * config/rs6000/freebsd64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
6112 rs6000_linux64_override_options.
6113 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Break
6115 * config/rs6000/rs6000.c (rs6000_linux64_override_options): ..this,
6116 new function. Tweak non-biarch test and clearing of
6117 profile_kernel to work with freebsd64.h.
6119 2020-10-01 Martin Liska <mliska@suse.cz>
6121 * config/rs6000/rs6000-call.c: Include value-range.h.
6122 * config/rs6000/rs6000.c: Likewise.
6124 2020-10-01 Tom de Vries <tdevries@suse.de>
6127 * config/nvptx/nvptx.md (define_insn "truncsi<QHIM>2"): Emit mov.u32
6128 instead of cvt.u32.u32.
6130 2020-10-01 Richard Sandiford <richard.sandiford@arm.com>
6134 * config/arm/arm-protos.h (arm_expand_vector_compare): Declare.
6135 (arm_expand_vcond): Likewise.
6136 * config/arm/arm.c (arm_expand_vector_compare): New function.
6137 (arm_expand_vcond): Likewise.
6138 * config/arm/neon.md (vec_cmp<VDQW:mode><v_cmp_result>): New pattern.
6139 (vec_cmpu<VDQW:mode><VDQW:mode>): Likewise.
6140 (vcond<VDQW:mode><VDQW:mode>): Require operand 5 to be a register
6141 or zero. Use arm_expand_vcond.
6142 (vcond<V_cvtto><V32:mode>): New pattern.
6143 (vcondu<VDQIW:mode><VDQIW:mode>): Generalize to...
6144 (vcondu<VDQW:mode><v_cmp_result): ...this. Require operand 5
6145 to be a register or zero. Use arm_expand_vcond.
6146 (vcond_mask_<VDQW:mode><v_cmp_result>): New pattern.
6147 (neon_vc<cmp_op><mode>, neon_vc<cmp_op><mode>_insn): Add "@" marker.
6148 (neon_vbsl<mode>): Likewise.
6149 (neon_vc<cmp_op>u<mode>): Reexpress as...
6150 (@neon_vc<code><mode>): ...this.
6152 2020-10-01 Michael Davidsaver <mdavidsaver@gmail.com>
6154 * config/i386/t-rtems: Change from mtune to march when building
6155 multilibs. The mtune argument tunes or optimizes for a specific
6156 CPU model but does not ensure the generated code is appropriate
6157 for the CPU model. Prior to this patch, i386 compatible code
6158 was always generated but tuned for later models.
6160 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
6162 * builtins.c (compute_objsize): Replace vr_values with range_query.
6164 (gimple_call_alloc_size): Same.
6165 * builtins.h (class vr_values): Remove.
6166 (gimple_call_alloc_size): Replace vr_values with range_query.
6167 * gimple-ssa-sprintf.c (get_int_range): Same.
6168 (struct directive): Pass gimple context to fmtfunc callback.
6169 (directive::set_width): Replace inline with out-of-line version.
6170 (directive::set_precision): Same.
6171 (format_none): New gimple argument.
6172 (format_percent): New gimple argument.
6173 (format_integer): New gimple argument.
6174 (format_floating): New gimple argument.
6175 (get_string_length): Use range_query API.
6176 (format_character): New gimple argument.
6177 (format_string): New gimple argument.
6178 (format_plain): New gimple argument.
6179 (format_directive): New gimple argument.
6180 (parse_directive): Replace vr_values with range_query.
6181 (compute_format_length): Same.
6182 (handle_printf_call): Same. Adjust for range_query API.
6183 * tree-ssa-strlen.c (get_range): Same.
6184 (compare_nonzero_chars): Same.
6185 (get_addr_stridx) Replace vr_values with range_query.
6187 (dump_strlen_info): Same.
6188 (get_range_strlen_dynamic): Adjust for range_query API.
6189 (set_strlen_range): Same
6190 (maybe_warn_overflow): Replace vr_values with range_query.
6191 (handle_builtin_strcpy): Same.
6192 (maybe_diag_stxncpy_trunc): Add FIXME comment.
6193 (handle_builtin_memcpy): Replace vr_values with range_query.
6194 (handle_builtin_memset): Same.
6195 (get_len_or_size): Same.
6196 (strxcmp_eqz_result): Same.
6197 (handle_builtin_string_cmp): Same.
6198 (count_nonzero_bytes_addr): Same, plus adjust for range_query API.
6199 (count_nonzero_bytes): Replace vr_values with range_query.
6200 (handle_store): Same.
6201 (strlen_check_and_optimize_call): Same.
6202 (handle_integral_assign): Same.
6203 (check_and_optimize_stmt): Same.
6204 * tree-ssa-strlen.h (class vr_values): Remove.
6205 (get_range): Replace vr_values with range_query.
6206 (get_range_strlen_dynamic): Same.
6207 (handle_printf_call): Same.
6209 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
6211 * gimple-loop-versioning.cc (lv_dom_walker::before_dom_children):
6212 Pass m_range_analyzer instead of get_vr_values.
6213 (loop_versioning::name_prop::get_value): Rename to...
6214 (loop_versioning::name_prop::value_of_expr): ...this.
6215 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::evrp_range_analyzer):
6216 Adjust for evrp_range_analyzer
6217 inheriting from vr_values.
6218 (evrp_range_analyzer::try_find_new_range): Same.
6219 (evrp_range_analyzer::record_ranges_from_incoming_edge): Same.
6220 (evrp_range_analyzer::record_ranges_from_phis): Same.
6221 (evrp_range_analyzer::record_ranges_from_stmt): Same.
6222 (evrp_range_analyzer::push_value_range): Same.
6223 (evrp_range_analyzer::pop_value_range): Same.
6224 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Inherit from
6225 vr_values. Adjust accordingly.
6226 * gimple-ssa-evrp.c: Adjust for evrp_range_analyzer inheriting from
6228 (evrp_folder::value_of_evrp): Rename from get_value.
6229 * tree-ssa-ccp.c (class ccp_folder): Rename get_value to
6231 (ccp_folder::get_value): Rename to...
6232 (ccp_folder::value_of_expr): ...this.
6233 * tree-ssa-copy.c (class copy_folder): Rename get_value to
6235 (copy_folder::get_value): Rename to...
6236 (copy_folder::value_of_expr): ...this.
6237 * tree-ssa-dom.c (dom_opt_dom_walker::after_dom_children): Adjust
6238 for evrp_range_analyzer inheriting from vr_values.
6239 (dom_opt_dom_walker::optimize_stmt): Same.
6240 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
6241 Call value_of_* instead of get_value.
6242 (substitute_and_fold_engine::replace_phi_args_in): Same.
6243 (substitute_and_fold_engine::propagate_into_phi_args): Same.
6244 (substitute_and_fold_dom_walker::before_dom_children): Same.
6245 * tree-ssa-propagate.h: Include value-query.h.
6246 (class substitute_and_fold_engine): Inherit from value_query.
6247 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children):
6248 Adjust for evrp_range_analyzer inheriting from vr_values.
6249 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
6251 * tree-vrp.c (class vrp_folder): Same.
6252 (vrp_folder::get_value): Rename to value_of_expr.
6253 * vr-values.c (vr_values::get_lattice_entry): Adjust for
6254 vr_values inheriting from range_query.
6255 (vr_values::range_of_expr): New.
6256 (vr_values::value_of_expr): New.
6257 (vr_values::value_on_edge): New.
6258 (vr_values::value_of_stmt): New.
6259 (simplify_using_ranges::op_with_boolean_value_range_p): Call
6260 get_value_range through query.
6261 (check_for_binary_op_overflow): Rename store to query.
6262 (vr_values::vr_values): Remove vrp_value_range_pool.
6263 (vr_values::~vr_values): Same.
6264 (simplify_using_ranges::get_vr_for_comparison): Call get_value_range
6266 (simplify_using_ranges::compare_names): Same.
6267 (simplify_using_ranges::vrp_evaluate_conditional): Same.
6268 (simplify_using_ranges::vrp_visit_cond_stmt): Same.
6269 (simplify_using_ranges::simplify_abs_using_ranges): Same.
6270 (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
6271 (simplify_cond_using_ranges_2): Same.
6272 (simplify_using_ranges::simplify_switch_using_ranges): Same.
6273 (simplify_using_ranges::two_valued_val_range_p): Same.
6274 (simplify_using_ranges::simplify_using_ranges): Rename store to query.
6275 (simplify_using_ranges::simplify): Assert that we have a query.
6276 * vr-values.h (class range_query): Remove.
6277 (class simplify_using_ranges): Remove inheritance of range_query.
6278 (class vr_values): Add virtuals for range_of_expr, value_of_expr,
6279 value_on_edge, value_of_stmt, and get_value_range.
6280 Call range_query allocator instead of using vrp_value_range_pool.
6281 Remove vrp_value_range_pool.
6282 (simplify_using_ranges::get_value_range): Remove.
6284 2020-10-01 Richard Biener <rguenther@suse.de>
6286 PR tree-optimization/97236
6287 * tree-vect-stmts.c (get_group_load_store_type): Keep
6288 VMAT_ELEMENTWISE for single-element vectors.
6290 2020-10-01 Jan Hubicka <jh@suse.cz>
6292 * ipa-modref.c (compute_parm_map): Be ready for callee_pi to be NULL.
6294 2020-10-01 Jan Hubicka <jh@suse.cz>
6297 * ipa-fnsummary.c (pass_free_fnsummary::execute): Free
6298 also indirect inlining datastructure.
6299 * ipa-modref.c (pass_ipa_modref::execute): Do not free them here.
6300 * ipa-prop.c (ipa_free_all_node_params): Do not crash when info does
6302 (ipa_unregister_cgraph_hooks): Likewise.
6304 2020-10-01 Jan Hubicka <jh@suse.cz>
6306 * internal-fn.c (DEF_INTERNAL_FN): Fix handling of fnspec
6308 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
6310 * Makefile.in: Add value-query.o.
6311 * value-query.cc: New file.
6312 * value-query.h: New file.
6314 2020-10-01 Alex Coplan <alex.coplan@arm.com>
6316 * config/arm/arm-cpus.in: Fix ordering, move Neoverse N2 down.
6317 * config/arm/arm-tables.opt: Regenerate.
6318 * config/arm/arm-tune.md: Regenerate.
6320 2020-10-01 Jakub Jelinek <jakub@redhat.com>
6322 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
6323 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
6324 fenv_var and old_fpc. Formatting fixes.
6326 2020-10-01 Richard Biener <rguenther@suse.de>
6328 * tree-vect-patterns.c (vect_recog_bool_pattern): Also handle
6331 2020-10-01 Florian Weimer <fweimer@redhat.com>
6334 * config/i386/i386.h (PTA_NO_TUNE, PTA_X86_64_BASELINE)
6335 (PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4): New.
6336 * common/config/i386/i386-common.c (processor_alias_table):
6337 Add "x86-64-v2", "x86-64-v3", "x86-64-v4".
6338 * config/i386/i386-options.c (ix86_option_override_internal):
6339 Handle new PTA_NO_TUNE processor table entries.
6340 * doc/invoke.texi (x86 Options): Document new -march values.
6342 2020-10-01 Alan Modra <amodra@gmail.com>
6344 * config/rs6000/ppc-asm.h: Support __PCREL__ code.
6346 2020-10-01 Alan Modra <amodra@gmail.com>
6348 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
6349 set -mcmodel=small for -mno-minimal-toc when pcrel.
6351 2020-09-30 Martin Sebor <msebor@redhat.com>
6354 * attribs.c (attr_access::array_as_string): Avoid assuming a VLA
6355 access specification string contains a closing bracket.
6357 2020-09-30 Martin Sebor <msebor@redhat.com>
6360 * attribs.c (attr_access::array_as_string): Avoid modifying a shared
6361 type in place and use build_type_attribute_qual_variant instead.
6363 2020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6365 * config/arm/arm-cpus.in: Add Cortex-A78 and Cortex-A78AE cores.
6366 * config/arm/arm-tables.opt: Regenerate.
6367 * config/arm/arm-tune.md: Regenerate.
6368 * doc/invoke.texi: Update docs.
6370 2020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6372 * config/aarch64/aarch64-cores.def: Add Cortex-A78 and Cortex-A78AE cores.
6373 * config/aarch64/aarch64-tune.md: Regenerate.
6374 * doc/invoke.texi: Add -mtune=cortex-a78 and -mtune=cortex-a78ae.
6376 2020-09-30 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6379 * config/arm/arm_mve.h (__ARM_mve_coerce2): Define.
6380 (__arm_vaddq): Correct the scalar argument.
6381 (__arm_vaddq_m): Likewise.
6382 (__arm_vaddq_x): Likewise.
6383 (__arm_vcmpeqq_m): Likewise.
6384 (__arm_vcmpeqq): Likewise.
6385 (__arm_vcmpgeq_m): Likewise.
6386 (__arm_vcmpgeq): Likewise.
6387 (__arm_vcmpgtq_m): Likewise.
6388 (__arm_vcmpgtq): Likewise.
6389 (__arm_vcmpleq_m): Likewise.
6390 (__arm_vcmpleq): Likewise.
6391 (__arm_vcmpltq_m): Likewise.
6392 (__arm_vcmpltq): Likewise.
6393 (__arm_vcmpneq_m): Likewise.
6394 (__arm_vcmpneq): Likewise.
6395 (__arm_vfmaq_m): Likewise.
6396 (__arm_vfmaq): Likewise.
6397 (__arm_vfmasq_m): Likewise.
6398 (__arm_vfmasq): Likewise.
6399 (__arm_vmaxnmavq): Likewise.
6400 (__arm_vmaxnmavq_p): Likewise.
6401 (__arm_vmaxnmvq): Likewise.
6402 (__arm_vmaxnmvq_p): Likewise.
6403 (__arm_vminnmavq): Likewise.
6404 (__arm_vminnmavq_p): Likewise.
6405 (__arm_vminnmvq): Likewise.
6406 (__arm_vminnmvq_p): Likewise.
6407 (__arm_vmulq_m): Likewise.
6408 (__arm_vmulq): Likewise.
6409 (__arm_vmulq_x): Likewise.
6410 (__arm_vsetq_lane): Likewise.
6411 (__arm_vsubq_m): Likewise.
6412 (__arm_vsubq): Likewise.
6413 (__arm_vsubq_x): Likewise.
6415 2020-09-30 Joel Hutton <joel.hutton@arm.com>
6418 * tree-vect-slp.c (vect_analyze_slp): Do not call
6419 vect_attempt_slp_rearrange_stmts for vector constructors.
6421 2020-09-30 Tamar Christina <tamar.christina@arm.com>
6423 * tree-vectorizer.h (SLP_TREE_REF_COUNT): New.
6424 * tree-vect-slp.c (_slp_tree::_slp_tree, _slp_tree::~_slp_tree,
6425 vect_free_slp_tree, vect_build_slp_tree, vect_print_slp_tree,
6426 slp_copy_subtree, vect_attempt_slp_rearrange_stmts): Use it.
6428 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6430 * omp-offload.c (omp_discover_implicit_declare_target): Also
6431 handled nested functions.
6433 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6434 Tom de Vries <tdevries@suse.de>
6436 * builtins.c (expand_builtin_cexpi, fold_builtin_sincos): Update
6437 targetm.libc_has_function call.
6438 * builtins.def (DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C11_BUILTIN):
6439 (DEF_C2X_BUILTIN, DEF_C99_COMPL_BUILTIN, DEF_C99_C90RES_BUILTIN):
6441 * config/darwin-protos.h (darwin_libc_has_function): Update prototype.
6442 * config/darwin.c (darwin_libc_has_function): Add arg.
6443 * config/linux-protos.h (linux_libc_has_function): Update prototype.
6444 * config/linux.c (linux_libc_has_function): Add arg.
6445 * config/i386/i386.c (ix86_libc_has_function): Update
6446 targetm.libc_has_function call.
6447 * config/nvptx/nvptx.c (nvptx_libc_has_function): New function.
6448 (TARGET_LIBC_HAS_FUNCTION): Redefine to nvptx_libc_has_function.
6449 * convert.c (convert_to_integer_1): Update targetm.libc_has_function
6452 * target.def (libc_has_function): Add arg.
6453 * doc/tm.texi: Regenerate.
6454 * targhooks.c (default_libc_has_function, gnu_libc_has_function)
6455 (no_c99_libc_has_function): Add arg.
6456 * targhooks.h (default_libc_has_function, no_c99_libc_has_function)
6457 (gnu_libc_has_function): Update prototype.
6458 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Update
6459 targetm.libc_has_function call.
6461 2020-09-30 H.J. Lu <hjl.tools@gmail.com>
6464 * config/i386/i386.md (UNSPECV_MOVDIRI): Renamed to ...
6465 (UNSPEC_MOVDIRI): This.
6466 (UNSPECV_MOVDIR64B): Renamed to ...
6467 (UNSPEC_MOVDIR64B): This.
6468 (movdiri<mode>): Use SET operation.
6469 (@movdir64b_<mode>): Likewise.
6471 2020-09-30 Florian Weimer <fweimer@redhat.com>
6473 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6474 __LAHF_SAHF__ and __MOVBE__ based on ISA flags.
6476 2020-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6479 * config/aarch64/arm_neon.h (vqrshlb_u8): Make second argument
6481 (vqrshlh_u16): Likewise.
6482 (vqrshls_u32): Likewise.
6483 (vqrshld_u64): Likewise.
6484 (vqshlb_u8): Likewise.
6485 (vqshlh_u16): Likewise.
6486 (vqshls_u32): Likewise.
6487 (vqshld_u64): Likewise.
6488 (vshld_u64): Likewise.
6490 2020-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6493 * config/aarch64/aarch64-simd-builtins.def (sqmovun): Use UNOPUS
6495 * config/aarch64/arm_neon.h (vqmovun_s16): Adjust builtin call.
6496 Remove unnecessary result cast.
6497 (vqmovun_s32): Likewise.
6498 (vqmovun_s64): Likewise.
6499 (vqmovunh_s16): Likewise. Fix return type.
6500 (vqmovuns_s32): Likewise.
6501 (vqmovund_s64): Likewise.
6503 2020-09-30 Richard Sandiford <richard.sandiford@arm.com>
6505 * config/aarch64/aarch64.c (aarch64_split_128bit_move_p): Add a
6506 function comment. Tighten check for FP moves.
6507 * config/aarch64/aarch64.md (*movti_aarch64): Add a w<-Z alternative.
6508 (*movtf_aarch64): Handle r<-Y like r<-r. Remove unnecessary
6509 earlyclobber. Change splitter predicate from aarch64_reg_or_imm
6510 to nonmemory_operand.
6512 2020-09-30 Alex Coplan <alex.coplan@arm.com>
6515 * config/arm/arm.md (movsf): Relax TARGET_HARD_FLOAT to
6518 * config/arm/vfp.md (no_literal_pool_df_immediate): Likewise.
6519 (no_literal_pool_sf_immediate): Likewise.
6521 2020-09-30 Alan Modra <amodra@gmail.com>
6523 * configure.ac (--with-long-double-format): Typo fix.
6524 * configure: Regenerate.
6526 2020-09-30 Alan Modra <amodra@gmail.com>
6528 * config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't use
6529 non-existent operands[].
6530 (@tablejump<mode>_nospec): Likewise.
6532 2020-09-30 Segher Boessenkool <segher@kernel.crashing.org>
6534 * config/rs6000/rs6000.md (tablejump): Simplify.
6535 (tablejumpsi): Merge this ...
6536 (tablejumpdi): ... and this ...
6537 (@tablejump<mode>_normal): ... into this.
6538 (tablejumpsi_nospec): Merge this ...
6539 (tablejumpdi_nospec): ... and this ...
6540 (@tablejump<mode>_nospec): ... into this.
6541 (*tablejump<mode>_internal1): Delete, rename to ...
6542 (@tablejump<mode>_insn_normal): ... this.
6543 (*tablejump<mode>_internal1_nospec): Delete, rename to ...
6544 (@tablejump<mode>_insn_nospec): ... this.
6546 2020-09-29 Martin Sebor <msebor@redhat.com>
6549 * calls.c (maybe_warn_rdwr_sizes): Simplify warning messages.
6550 Correct handling of VLA argumments.
6552 2020-09-29 Marek Polacek <polacek@redhat.com>
6555 * doc/invoke.texi: Document -Wrange-loop-construct.
6557 2020-09-29 Jim Wilson <jimw@sifive.com>
6560 * configure.ac (gcc_cv_header_zstd_h): Check ZSTD_VERISON_NUMBER.
6561 * configure: Regenerated.
6563 2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6565 * config/arm/arm-cpus.in: Add Cortex-X1 core.
6566 * config/arm/arm-tables.opt: Regenerate.
6567 * config/arm/arm-tune.md: Regenerate.
6568 * doc/invoke.texi: Update docs.
6570 2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6572 * config/aarch64/aarch64-cores.def: Add Cortex-X1 Arm core.
6573 * config/aarch64/aarch64-tune.md: Regenerate.
6574 * doc/invoke.texi: Add -mtune=cortex-x1 docs.
6576 2020-09-29 H.J. Lu <hjl.tools@gmail.com>
6579 * config/i386/enqcmdintrin.h: Replace <enqcmdntrin.h> with
6580 <enqcmdintrin.h>. Replace _ENQCMDNTRIN_H_INCLUDED with
6581 _ENQCMDINTRIN_H_INCLUDED.
6583 2020-09-29 Richard Biener <rguenther@suse.de>
6585 PR tree-optimization/97241
6586 * tree-vect-loop.c (vectorizable_reduction): Move finding
6587 the SLP node for the reduction stmt to a better place.
6589 2020-09-29 Richard Biener <rguenther@suse.de>
6591 * tree-vect-slp.c (vect_analyze_slp): Move SLP reduction
6592 re-arrangement and SLP graph load gathering...
6593 (vect_optimize_slp): ... here.
6594 * tree-vectorizer.h (vec_info::slp_loads): Remove.
6596 2020-09-29 Hongyu Wang <hongyu.wang@intel.com>
6599 * config/i386/amxbf16intrin.h: Add FSF copyright notes.
6600 * config/i386/amxint8intrin.h: Ditto.
6601 * config/i386/amxtileintrin.h: Ditto.
6602 * config/i386/avx512vp2intersectintrin.h: Ditto.
6603 * config/i386/avx512vp2intersectvlintrin.h: Ditto.
6604 * config/i386/pconfigintrin.h: Ditto.
6605 * config/i386/tsxldtrkintrin.h: Ditto.
6606 * config/i386/wbnoinvdintrin.h: Ditto.
6608 2020-09-29 Richard Biener <rguenther@suse.de>
6610 PR tree-optimization/97238
6611 * tree-ssa-reassoc.c (ovce_extract_ops): Fix typo.
6613 2020-09-29 Richard Sandiford <richard.sandiford@arm.com>
6615 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_ARITH, ARM_HAVE_NEON_V4HI_ARITH)
6616 (ARM_HAVE_NEON_V2SI_ARITH, ARM_HAVE_NEON_V16QI_ARITH): New macros.
6617 (ARM_HAVE_NEON_V8HI_ARITH, ARM_HAVE_NEON_V4SI_ARITH): Likewise.
6618 (ARM_HAVE_NEON_V2DI_ARITH, ARM_HAVE_NEON_V4HF_ARITH): Likewise.
6619 (ARM_HAVE_NEON_V8HF_ARITH, ARM_HAVE_NEON_V2SF_ARITH): Likewise.
6620 (ARM_HAVE_NEON_V4SF_ARITH, ARM_HAVE_V8QI_ARITH, ARM_HAVE_V4HI_ARITH)
6621 (ARM_HAVE_V2SI_ARITH, ARM_HAVE_V16QI_ARITH, ARM_HAVE_V8HI_ARITH)
6622 (ARM_HAVE_V4SI_ARITH, ARM_HAVE_V2DI_ARITH, ARM_HAVE_V4HF_ARITH)
6623 (ARM_HAVE_V2SF_ARITH, ARM_HAVE_V8HF_ARITH, ARM_HAVE_V4SF_ARITH):
6625 * config/arm/iterators.md (VNIM, VNINOTM): Delete.
6626 * config/arm/vec-common.md (add<VNIM:mode>3, addv8hf3)
6627 (add<VNINOTM:mode>3): Replace with...
6628 (add<VDQ:mode>3): ...this new expander.
6629 * config/arm/neon.md (*add<VDQ:mode>3_neon): Use the new
6630 ARM_HAVE_NEON_<MODE>_ARITH macros as the C condition.
6631 (addv8hf3_neon, addv4hf3, add<VFH:mode>3_fp16): Delete in
6633 (neon_vadd<VH:mode>): Use gen_add<mode>3 instead of
6634 gen_add<mode>3_fp16.
6636 2020-09-29 Kito Cheng <kito.cheng@sifive.com>
6638 * config/riscv/riscv-c.c (riscv_cpu_cpp_builtins): Define
6639 __riscv_cmodel_medany when PIC mode.
6641 2020-09-29 Alex Coplan <alex.coplan@arm.com>
6643 * config/aarch64/aarch64-cores.def: Move neoverse-n2 after saphira.
6644 * config/aarch64/aarch64-tune.md: Regenerate.
6646 2020-09-29 Martin Liska <mliska@suse.cz>
6648 PR tree-optimization/96979
6649 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
6650 Make a fast bail out.
6651 (bit_test_cluster::can_be_handled): Likewise here.
6652 * tree-switch-conversion.h (get_range): Use wi::to_wide instead
6655 2020-09-29 Martin Liska <mliska@suse.cz>
6658 2020-09-22 Martin Liska <mliska@suse.cz>
6660 PR tree-optimization/96979
6661 * doc/invoke.texi: Document new param max-switch-clustering-attempts.
6662 * params.opt: Add new parameter.
6663 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6664 Limit number of attempts.
6665 (bit_test_cluster::find_bit_tests): Likewise.
6667 2020-09-28 Aldy Hernandez <aldyh@redhat.com>
6669 * value-range.h (class irange): Add irange_allocator friend.
6670 (class irange_allocator): New.
6672 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6675 * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Handle
6678 2020-09-28 Paul A. Clarke <pc@us.ibm.com>
6680 * config/rs6000/smmintrin.h (_mm_insert_epi8): New.
6681 (_mm_insert_epi32): New.
6682 (_mm_insert_epi64): New.
6684 2020-09-28 liuhongt <hongtao.liu@intel.com>
6686 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_AMX_TILE_SET,
6687 OPTION_MASK_ISA2_AMX_INT8_SET, OPTION_MASK_ISA2_AMX_BF16_SET,
6688 OPTION_MASK_ISA2_AMX_TILE_UNSET, OPTION_MASK_ISA2_AMX_INT8_UNSET,
6689 OPTION_MASK_ISA2_AMX_BF16_UNSET, OPTION_MASK_ISA2_XSAVE_UNSET):
6691 (ix86_handle_option): Hanlde -mamx-tile, -mamx-int8, -mamx-bf16.
6692 * common/config/i386/i386-cpuinfo.h (processor_types): Add
6693 FEATURE_AMX_TILE, FEATURE_AMX_INT8, FEATURE_AMX_BF16.
6694 * common/config/i386/cpuinfo.h (XSTATE_TILECFG,
6695 XSTATE_TILEDATA, XCR_AMX_ENABLED_MASK): New macro.
6696 (get_available_features): Enable AMX features only if
6697 their states are suoorited by OSXSAVE.
6698 * common/config/i386/i386-isas.h: Add ISA_NAME_TABLE_ENTRY
6699 for amx-tile, amx-int8, amx-bf16.
6700 * config.gcc: Add amxtileintrin.h, amxint8intrin.h,
6701 amxbf16intrin.h to extra headers.
6702 * config/i386/amxbf16intrin.h: New file.
6703 * config/i386/amxint8intrin.h: Ditto.
6704 * config/i386/amxtileintrin.h: Ditto.
6705 * config/i386/cpuid.h (bit_AMX_BF16, bit_AMX_TILE, bit_AMX_INT8):
6707 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6708 __AMX_TILE__, __AMX_INT8__, AMX_BF16__.
6709 * config/i386/i386-options.c (ix86_target_string): Add
6710 -mamx-tile, -mamx-int8, -mamx-bf16.
6711 (ix86_option_override_internal): Handle AMX-TILE,
6713 * config/i386/i386.h (TARGET_AMX_TILE, TARGET_AMX_TILE_P,
6714 TARGET_AMX_INT8, TARGET_AMX_INT8_P, TARGET_AMX_BF16_P,
6715 PTA_AMX_TILE, PTA_AMX_INT8, PTA_AMX_BF16): New macros.
6716 * config/i386/i386.opt: Add -mamx-tile, -mamx-int8, -mamx-bf16.
6717 * config/i386/immintrin.h: Include amxtileintrin.h,
6718 amxint8intrin.h, amxbf16intrin.h.
6719 * doc/invoke.texi: Document -mamx-tile, -mamx-int8, -mamx-bf16.
6720 * doc/extend.texi: Document amx-tile, amx-int8, amx-bf16.
6721 * doc/sourcebuild.texi ((Effective-Target Keywords, Other
6722 hardware attributes): Document amx_int8, amx_tile, amx_bf16.
6724 2020-09-28 Andrea Corallo <andrea.corallo@arm.com>
6726 * config/aarch64/aarch64-builtins.c
6727 (aarch64_general_expand_builtin): Do not alter value on a
6728 force_reg returned rtx.
6730 2020-09-28 Eric Botcazou <ebotcazou@adacore.com>
6732 * tree-eh.c (lower_try_finally_dup_block): Revert latest change.
6734 2020-09-27 Jan Hubicka <jh@suse.cz>
6736 * ipa-modref.c (modref_summary::useful_p): Fix testing of stores.
6738 2020-09-27 Jakub Jelinek <jakub@redhat.com>
6741 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6742 expand_copysign_bit): Check reg_overlap_mentioned_p between target
6743 and operand(s) and if it returns true, force a pseudo as target.
6745 2020-09-27 Xionghu Luo <luoxhu@linux.ibm.com>
6747 * gimple-isel.cc (gimple_expand_vec_set_expr): New function.
6748 (gimple_expand_vec_cond_exprs): Rename to ...
6749 (gimple_expand_vec_exprs): ... this and call
6750 gimple_expand_vec_set_expr.
6751 * internal-fn.c (vec_set_direct): New define.
6752 (expand_vec_set_optab_fn): New function.
6753 (direct_vec_set_optab_supported_p): New define.
6754 * internal-fn.def (VEC_SET): New DEF_INTERNAL_OPTAB_FN.
6755 * optabs.c (can_vec_set_var_idx_p): New function.
6756 * optabs.h (can_vec_set_var_idx_p): New declaration.
6758 2020-09-26 Jan Hubicka <jh@suse.cz>
6760 * ipa-modref.c (analyze_stmt): Do not skip clobbers in early pass.
6761 * ipa-pure-const.c (analyze_stmt): Update comment.
6763 2020-09-26 David Edelsohn <dje.gcc@gmail.com>
6764 Clement Chigot <clement.chigot@atos.com>
6766 * collect2.c (visibility_flag): New.
6767 (main): Detect -fvisibility.
6768 (write_c_file_stat): Push and pop default visibility.
6770 2020-09-26 Jan Hubicka <hubicka@ucw.cz>
6772 * ipa-inline-transform.c: Include ipa-modref-tree.h and ipa-modref.h.
6773 (inline_call): Call ipa_merge_modref_summary_after_inlining.
6774 * ipa-inline.c (ipa_inline): Do not free summaries.
6775 * ipa-modref.c (dump_records): Fix formating.
6776 (merge_call_side_effects): Break out from ...
6777 (analyze_call): ... here; record recursive calls.
6778 (analyze_stmt): Add new parameter RECURSIVE_CALLS.
6779 (analyze_function): Do iterative dataflow on recursive calls.
6780 (compute_parm_map): New function.
6781 (ipa_merge_modref_summary_after_inlining): New function.
6782 (collapse_loads): New function.
6783 (modref_propagate_in_scc): Break out from ...
6784 (pass_ipa_modref::execute): ... here; Do iterative dataflow.
6785 * ipa-modref.h (ipa_merge_modref_summary_after_inlining): Declare.
6787 2020-09-26 Jakub Jelinek <jakub@redhat.com>
6789 * omp-expand.c (expand_omp_simd): Help vectorizer for the collapse == 1
6790 and non-composite collapse > 1 case with non-constant innermost loop
6791 step by precomputing number of iterations before loop and using an
6792 alternate IV from 0 to number of iterations - 1 with step of 1.
6794 2020-09-26 Jan Hubicka <jh@suse.cz>
6796 * ipa-fnsummary.c (dump_ipa_call_summary): Dump
6797 points_to_local_or_readonly_memory flag.
6798 (analyze_function_body): Compute points_to_local_or_readonly_memory
6800 (remap_edge_change_prob): Rename to ...
6801 (remap_edge_params): ... this one; update
6802 points_to_local_or_readonly_memory.
6803 (remap_edge_summaries): Update.
6804 (read_ipa_call_summary): Stream the new flag.
6805 (write_ipa_call_summary): Likewise.
6806 * ipa-predicate.h (struct inline_param_summary): Add
6807 points_to_local_or_readonly_memory.
6808 (inline_param_summary::equal_to): Update.
6809 (inline_param_summary::useless_p): Update.
6811 2020-09-26 Jan Hubicka <hubicka@ucw.cz>
6813 * ipa-modref-tree.h (modref_ref_node::insert_access): Track if something
6815 (modref_base_node::insert_ref): Likewise (and add a new optional
6817 (modref_tree::insert): Likewise.
6818 (modref_tree::merge): Rewrite
6820 2020-09-25 Jan Hubicka <hubicka@ucw.cz>
6822 * doc/invoke.texi: Add -fno-ipa-modref to flags disabled by
6824 * opts.c (control_options_for_live_patching): Disable ipa-modref.
6826 2020-09-25 Jan Hubicka <hubicka@ucw.cz>
6828 * ipa-modref.c (analyze_stmt): Fix return value for gimple_clobber.
6830 2020-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6832 * config/aarch64/aarch64-option-extensions.def (rng): Add
6835 2020-09-25 Alex Coplan <alex.coplan@arm.com>
6837 * config/arm/arm-cpus.in (neoverse-v1): Add FP16.
6839 2020-09-25 Martin Liska <mliska@suse.cz>
6841 PR gcov-profile/64636
6842 * value-prof.c (stream_out_histogram_value): Allow negative
6843 values for HIST_TYPE_IOR.
6845 2020-09-25 Tom de Vries <tdevries@suse.de>
6847 * config/nvptx/nvptx.c (nvptx_assemble_integer, nvptx_print_operand):
6848 Use gcc_fallthrough ().
6850 2020-09-25 Richard Biener <rguenther@suse.de>
6853 * expr.c (store_constructor): Handle VECTOR_BOOLEAN_TYPE_P
6856 2020-09-25 Richard Biener <rguenther@suse.de>
6859 * vec.h (auto_vec<T>::operator=(auto_vec<T>&&)): Implement.
6861 2020-09-25 Richard Sandiford <richard.sandiford@arm.com>
6863 * config/arm/arm-protos.h (arm_mve_mode_and_operands_type_check):
6865 * config/arm/arm.c (arm_coproc_mem_operand_wb): Use a scale factor
6866 of 2 rather than 4 for 16-bit modes.
6867 (arm_mve_mode_and_operands_type_check): Delete.
6868 * config/arm/constraints.md (Uj): Allow writeback for Neon,
6869 but continue to disallow it for MVE.
6870 * config/arm/arm.md (*arm32_mov<HFBF:mode>): Add !TARGET_HAVE_MVE.
6871 * config/arm/vfp.md (*mov_load_vfp_hf16, *mov_store_vfp_hf16): Fold
6873 (*mov<mode>_vfp_<mode>16): ...here but use Uj for the FPR memory
6874 constraints. Use for base MVE too.
6876 2020-09-25 Richard Biener <rguenther@suse.de>
6878 PR tree-optimization/97199
6879 * tree-if-conv.c (combine_blocks): Remove edges only
6880 after looking at virtual PHI args.
6882 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6884 * omp-low.c (scan_omp_1_stmt): Don't call scan_omp_simd for
6885 collapse > 1 loops as simt doesn't support collapsed loops yet.
6886 * omp-expand.c (expand_omp_for_init_counts, expand_omp_for_init_vars):
6887 Small tweaks to function comment.
6888 (expand_omp_simd): Rewritten collapse > 1 support to only attempt
6889 to vectorize the innermost loop and emit set of outer loops around it.
6890 For non-composite simd with collapse > 1 without broken loop don't
6891 even try to compute number of iterations first. Add support for
6892 non-rectangular simd loops.
6893 (expand_omp_for): Don't sorry_at on non-rectangular simd loops.
6895 2020-09-25 Martin Liska <mliska@suse.cz>
6897 * cgraph.c (cgraph_edge::debug): New.
6898 * cgraph.h (cgraph_edge::debug): New.
6900 2020-09-25 Martin Liska <mliska@suse.cz>
6902 * cgraph.c (cgraph_node::dump): Always print space at the end
6903 of a message. Remove one extra space.
6905 2020-09-24 Alex Coplan <alex.coplan@arm.com>
6907 * config/arm/arm-cpus.in (neoverse-n2): New.
6908 * config/arm/arm-tables.opt: Regenerate.
6909 * config/arm/arm-tune.md: Regenerate.
6910 * doc/invoke.texi: Document support for Neoverse N2.
6912 2020-09-24 Alex Coplan <alex.coplan@arm.com>
6914 * config/aarch64/aarch64-cores.def: Add Neoverse N2.
6915 * config/aarch64/aarch64-tune.md: Regenerate.
6916 * doc/invoke.texi: Document AArch64 support for Neoverse N2.
6918 2020-09-24 Richard Biener <rguenther@suse.de>
6920 * vec.h (auto_vec<T, 0>::auto_vec (auto_vec &&)): New move CTOR.
6921 (auto_vec<T, 0>::operator=(auto_vec &&)): Delete.
6922 * hash-table.h (hash_table::expand): Use std::move when expanding.
6923 * cfgloop.h (get_loop_exit_edges): Return auto_vec<edge>.
6924 * cfgloop.c (get_loop_exit_edges): Adjust.
6925 * cfgloopmanip.c (fix_loop_placement): Likewise.
6926 * ipa-fnsummary.c (analyze_function_body): Likewise.
6927 * ira-build.c (create_loop_tree_nodes): Likewise.
6928 (create_loop_tree_node_allocnos): Likewise.
6929 (loop_with_complex_edge_p): Likewise.
6930 * ira-color.c (ira_loop_edge_freq): Likewise.
6931 * loop-unroll.c (analyze_insns_in_loop): Likewise.
6932 * predict.c (predict_loops): Likewise.
6933 * tree-predcom.c (last_always_executed_block): Likewise.
6934 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
6935 * tree-ssa-loop-im.c (store_motion_loop): Likewise.
6936 * tree-ssa-loop-ivcanon.c (loop_edge_to_cancel): Likewise.
6937 (canonicalize_loop_induction_variables): Likewise.
6938 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
6939 * tree-ssa-loop-niter.c (find_loop_niter): Likewise.
6940 (finite_loop_p): Likewise.
6941 (find_loop_niter_by_eval): Likewise.
6942 (estimate_numbers_of_iterations): Likewise.
6943 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
6944 (may_use_storent_in_loop_p): Likewise.
6946 2020-09-24 Jan Hubicka <jh@suse.cz>
6948 * doc/invoke.texi: Document -fipa-modref, ipa-modref-max-bases,
6949 ipa-modref-max-refs, ipa-modref-max-accesses, ipa-modref-max-tests.
6950 * ipa-modref-tree.c (test_insert_search_collapse): Update.
6951 (test_merge): Update.
6952 (gt_ggc_mx): New function.
6953 * ipa-modref-tree.h (struct modref_access_node): New structure.
6954 (struct modref_ref_node): Add every_access and accesses array.
6955 (modref_ref_node::modref_ref_node): Update ctor.
6956 (modref_ref_node::search): New member function.
6957 (modref_ref_node::collapse): New member function.
6958 (modref_ref_node::insert_access): New member function.
6959 (modref_base_node::insert_ref): Do not collapse base if ref is 0.
6960 (modref_base_node::collapse): Copllapse also refs.
6961 (modref_tree): Add accesses.
6962 (modref_tree::modref_tree): Initialize max_accesses.
6963 (modref_tree::insert): Add access parameter.
6964 (modref_tree::cleanup): New member function.
6965 (modref_tree::merge): Add parm_map; merge accesses.
6966 (modref_tree::copy_from): New member function.
6967 (modref_tree::create_ggc): Add max_accesses.
6968 * ipa-modref.c (dump_access): New function.
6969 (dump_records): Dump accesses.
6970 (dump_lto_records): Dump accesses.
6971 (get_access): New function.
6972 (record_access): Record access.
6973 (record_access_lto): Record access.
6974 (analyze_call): Compute parm_map.
6975 (analyze_function): Update construction of modref records.
6976 (modref_summaries::duplicate): Likewise; use copy_from.
6977 (write_modref_records): Stream accesses.
6978 (read_modref_records): Sream accesses.
6979 (pass_ipa_modref::execute): Update call of merge.
6980 * params.opt (-param=modref-max-accesses): New.
6981 * tree-ssa-alias.c (alias_stats): Add modref_baseptr_tests.
6982 (dump_alias_stats): Update.
6983 (base_may_alias_with_dereference_p): New function.
6984 (modref_may_conflict): Check accesses.
6985 (ref_maybe_used_by_call_p_1): Update call to modref_may_conflict.
6986 (call_may_clobber_ref_p_1): Update call to modref_may_conflict.
6988 2020-09-24 Richard Sandiford <richard.sandiford@arm.com>
6990 * config/arm/arm.md (*stack_protect_combined_set_insn): For non-PIC,
6991 load the address of the canary rather than the address of the
6992 constant pool entry that points to it.
6993 (*stack_protect_combined_test_insn): Likewise.
6995 2020-09-24 Richard Biener <rguenther@suse.de>
6997 PR tree-optimization/97085
6998 * match.pd (mask ? { false,..} : { true, ..} -> ~mask): New.
7000 2020-09-24 Jan Hubicka <hubicka@ucw.cz>
7002 * ipa-modref-tree.h (modref_base::collapse): Release memory.
7003 (modref_tree::create_ggc): New member function.
7004 (modref_tree::colapse): Release memory.
7005 (modref_tree::~modref_tree): New destructor.
7006 * ipa-modref.c (modref_summaries::create_ggc): New function.
7007 (analyze_function): Use create_ggc.
7008 (modref_summaries::duplicate): Likewise.
7009 (read_modref_records): Likewise.
7010 (modref_read): Likewise.
7012 2020-09-24 Alan Modra <amodra@gmail.com>
7014 * config/rs6000/rs6000.c (rs6000_rtx_costs): Pass mode to
7015 reg_or_add_cint_operand and reg_or_sub_cint_operand.
7017 2020-09-24 Alan Modra <amodra@gmail.com>
7020 * config/rs6000/rs6000.c (num_insns_constant_gpr): Count rldimi
7021 constants correctly.
7023 2020-09-24 Alan Modra <amodra@gmail.com>
7025 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
7026 Conditionally define __PCREL__.
7028 2020-09-24 Alan Modra <amodra@gmail.com>
7031 * config/rs6000/rs6000-internal.h (struct rs6000_stack): Improve
7033 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Likewise.
7034 (rs6000_expand_split_stack_prologue): Emit the prologue for
7035 functions that make a sibling call.
7037 2020-09-24 David Malcolm <dmalcolm@redhat.com>
7039 * doc/analyzer.texi (Analyzer Paths): Add note about
7040 -fno-analyzer-feasibility.
7041 * doc/invoke.texi (Static Analyzer Options): Add
7042 -fno-analyzer-feasibility.
7044 2020-09-24 Paul A. Clarke <pc@us.ibm.com>
7046 * doc/extend.texi: Add 'd' for doubleword variant of
7047 vector insert instruction.
7049 2020-09-23 Martin Sebor <msebor@redhat.com>
7051 * gimple-array-bounds.cc (build_zero_elt_array_type): New function.
7052 (array_bounds_checker::check_mem_ref): Call it.
7054 2020-09-23 Martin Sebor <msebor@redhat.com>
7057 * builtins.c (maybe_warn_for_bound): Handle both DECLs and EXPRESSIONs
7058 in pad->dst.ref, same is pad->src.ref.
7060 2020-09-23 Jan Hubicka <jh@suse.cz>
7062 * ipa-fnsummary.c (refs_local_or_readonly_memory_p): New function.
7063 (points_to_local_or_readonly_memory_p): New function.
7064 * ipa-fnsummary.h (refs_local_or_readonly_memory_p): Declare.
7065 (points_to_local_or_readonly_memory_p): Declare.
7066 * ipa-modref.c (record_access_p): Use refs_local_or_readonly_memory_p.
7067 * ipa-pure-const.c (check_op): Likewise.
7069 2020-09-23 Tom de Vries <tdevries@suse.de>
7071 * config/nvptx/nvptx.md: Don't allow operand containing sum of
7072 function ref and const.
7074 2020-09-23 Richard Sandiford <richard.sandiford@arm.com>
7076 * config/aarch64/aarch64-protos.h (aarch64_salt_type): New enum.
7077 (aarch64_stack_protect_canary_mem): Declare.
7078 * config/aarch64/aarch64.md (UNSPEC_SALT_ADDR): New unspec.
7079 (stack_protect_set): Forward to stack_protect_combined_set.
7080 (stack_protect_combined_set): New pattern. Use
7081 aarch64_stack_protect_canary_mem.
7082 (reg_stack_protect_address_<mode>): Add a salt operand.
7083 (stack_protect_test): Forward to stack_protect_combined_test.
7084 (stack_protect_combined_test): New pattern. Use
7085 aarch64_stack_protect_canary_mem.
7086 * config/aarch64/aarch64.c (strip_salt): New function.
7087 (strip_offset_and_salt): Likewise.
7088 (tls_symbolic_operand_type): Use strip_offset_and_salt.
7089 (aarch64_stack_protect_canary_mem): New function.
7090 (aarch64_cannot_force_const_mem): Use strip_offset_and_salt.
7091 (aarch64_classify_address): Likewise.
7092 (aarch64_symbolic_address_p): Likewise.
7093 (aarch64_print_operand): Likewise.
7094 (aarch64_output_addr_const_extra): New function.
7095 (aarch64_tls_symbol_p): Use strip_salt.
7096 (aarch64_classify_symbol): Likewise.
7097 (aarch64_legitimate_pic_operand_p): Use strip_offset_and_salt.
7098 (aarch64_legitimate_constant_p): Likewise.
7099 (aarch64_mov_operand_p): Use strip_salt.
7100 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Override.
7102 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7105 * config/aarch64/arm_neon.h (vreinterpretq_f64_p128,
7106 vreinterpretq_p128_f64): Define.
7108 2020-09-23 Alex Coplan <alex.coplan@arm.com>
7110 * config/arm/arm-cpus.in (neoverse-v1): New.
7111 * config/arm/arm-tables.opt: Regenerate.
7112 * config/arm/arm-tune.md: Regenerate.
7113 * doc/invoke.texi: Document support for Neoverse V1.
7115 2020-09-23 Alex Coplan <alex.coplan@arm.com>
7117 * config/aarch64/aarch64-cores.def: Add Neoverse V1.
7118 * config/aarch64/aarch64-tune.md: Regenerate.
7119 * doc/invoke.texi: Document support for Neoverse V1.
7121 2020-09-23 Richard Biener <rguenther@suse.de>
7124 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove
7125 LT_EXPR -> NE_EXPR verification and also apply it for
7128 2020-09-23 Jan Hubicka <hubicka@ucw.cz>
7130 * ipa-modref.c (modref_summary::lto_useful_p): New member function.
7131 (modref_summary::useful_p): New member function.
7132 (analyze_function): Drop useless summaries.
7133 (modref_write): Skip useless summaries.
7134 (pass_ipa_modref::execute): Drop useless summaries.
7135 * ipa-modref.h (struct GTY): Declare useful_p and lto_useful_p.
7136 * tree-ssa-alias.c (dump_alias_stats): Fix.
7137 (modref_may_conflict): Fix stats.
7139 2020-09-23 Richard Biener <rguenther@suse.de>
7142 * internal-fn.c (expand_vect_cond_mask_optab_fn): Use
7143 appropriate mode for force_reg.
7144 * tree.c (build_truth_vector_type_for): Pass VOIDmode to
7147 2020-09-23 Richard Sandiford <richard.sandiford@arm.com>
7149 * tree-vectorizer.h (determine_peel_for_niter): Delete in favor of...
7150 (vect_determine_partial_vectors_and_peeling): ...this new function.
7151 * tree-vect-loop-manip.c (vect_update_epilogue_niters): New function.
7152 Reject using vector epilogue loops for single iterations. Install
7153 the constant number of epilogue loop iterations in the associated
7154 loop_vinfo. Rely on vect_determine_partial_vectors_and_peeling
7155 to do the main part of the test.
7156 (vect_do_peeling): Use vect_update_epilogue_niters to handle
7157 epilogue loops with a known number of iterations. Skip recomputing
7158 the number of iterations later in that case. Otherwise, use
7159 vect_determine_partial_vectors_and_peeling to decide whether the
7160 epilogue loop needs to use partial vectors or peeling.
7161 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Set the
7162 default can_use_partial_vectors_p to false if partial-vector-usage=0.
7163 (determine_peel_for_niter): Remove in favor of...
7164 (vect_determine_partial_vectors_and_peeling): ...this new function,
7166 (vect_analyze_loop_2): ...here. Reflect the vect_verify_full_masking
7167 and vect_verify_loop_lens results in CAN_USE_PARTIAL_VECTORS_P
7168 rather than USING_PARTIAL_VECTORS_P.
7170 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7173 * config/aarch64/aarch64-simd-builtins.def (frintn): Use BUILTIN_VHSDF_HSDF
7174 for modes. Remove explicit hf instantiation.
7175 * config/aarch64/arm_neon.h (vrndns_f32): Define.
7177 2020-09-23 Richard Biener <rguenther@suse.de>
7179 PR tree-optimization/97173
7180 * tree-vect-loop.c (vectorizable_live_operation): Extend
7181 assert to also conver element conversions.
7183 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7186 * config/aarch64/arm_neon.h (vtrn1q_p64, vtrn2q_p64, vuzp1q_p64,
7187 vuzp2q_p64, vzip1q_p64, vzip2q_p64): Define.
7189 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7192 * config/aarch64/arm_neon.h (vldrq_p128): Define.
7194 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7197 * config/aarch64/arm_neon.h (vstrq_p128): Define.
7199 2020-09-23 Richard Biener <rguenther@suse.de>
7201 PR tree-optimization/97151
7202 * tree-ssa-structalias.c (find_func_aliases_for_call):
7203 DECL_IS_REPLACEABLE_OPERATOR_DELETE_P has no effect on
7206 2020-09-23 Richard Biener <rguenther@suse.de>
7209 * alias.c (compare_base_decls): Use DECL_HARD_REGISTER
7210 and guard with VAR_P.
7212 2020-09-23 Martin Liska <mliska@suse.cz>
7214 PR gcov-profile/97069
7215 * profile.c (branch_prob): Line number must be at least 1.
7217 2020-09-23 Tom de Vries <tdevries@suse.de>
7220 * config/nvptx/nvptx.c (nvptx_output_mov_insn): Handle move from
7221 DF subreg to DF reg.
7223 2020-09-23 David Malcolm <dmalcolm@redhat.com>
7225 * Makefile.in: Add $(ZLIBINC) to CFLAGS-analyzer/engine.o.
7227 2020-09-22 Jan Hubicka <jh@suse.cz>
7229 * ipa-modref.c (analyze_stmt): Ignore gimple clobber.
7231 2020-09-22 Jan Hubicka <jh@suse.cz>
7233 * ipa-modref-tree.c: Add namespace selftest.
7234 (modref_tree_c_tests): Rename to ...
7235 (ipa_modref_tree_c_tests): ... this.
7236 * ipa-modref.c (pass_modref): Remove destructor.
7237 (ipa_modref_c_finalize): New function.
7238 * ipa-modref.h (ipa_modref_c_finalize): Declare.
7239 * selftest-run-tests.c (selftest::run_tests): Call
7240 ipa_modref_c_finalize.
7241 * selftest.h (ipa_modref_tree_c_tests): Declare.
7242 * toplev.c: Include ipa-modref-tree.h and ipa-modref.h
7243 (toplev::finalize): Call ipa_modref_c_finalize.
7245 2020-09-22 David Malcolm <dmalcolm@redhat.com>
7247 * doc/analyzer.texi (Other Debugging Techniques): Mention
7248 -fdump-analyzer-json.
7249 * doc/invoke.texi (Static Analyzer Options): Add
7250 -fdump-analyzer-json.
7252 2020-09-22 David Faust <david.faust@oracle.com>
7254 * config/bpf/bpf.md: Add defines for signed div and mod operators.
7256 2020-09-22 Martin Liska <mliska@suse.cz>
7258 PR tree-optimization/96979
7259 * doc/invoke.texi: Document new param max-switch-clustering-attempts.
7260 * params.opt: Add new parameter.
7261 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
7262 Limit number of attempts.
7263 (bit_test_cluster::find_bit_tests): Likewise.
7265 2020-09-22 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
7267 * config/s390/s390.md ("*cmp<mode>_ccs_0", "*cmp<mode>_ccz_0",
7268 "*cmp<mode>_ccs_0_fastmath"): Basically change "*cmp<mode>_ccs_0" into
7269 "*cmp<mode>_ccz_0" and for fast math add "*cmp<mode>_ccs_0_fastmath".
7271 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7274 * config/aarch64/arm_neon.h (vcls_u8, vcls_u16, vcls_u32,
7275 vclsq_u8, vclsq_u16, vclsq_u32): Define.
7277 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7280 * config/aarch64/arm_neon.h (vceqq_p64, vceqz_p64, vceqzq_p64): Define.
7282 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7285 * config/aarch64/arm_neon.h (vadd_p8, vadd_p16, vadd_p64, vaddq_p8,
7286 vaddq_p16, vaddq_p64, vaddq_p128): Define.
7288 2020-09-22 Jakub Jelinek <jakub@redhat.com>
7290 * params.opt (--param=modref-max-tests=): Fix typo in help text:
7291 perofmed -> performed.
7292 * common.opt: Fix typo: incrmeental -> incremental.
7293 * ipa-modref.c: Fix typos: recroding -> recording, becaue -> because,
7294 analsis -> analysis.
7295 (class modref_summaries): Fix typo: betweehn -> between.
7296 (analyze_call): Fix typo: calle -> callee.
7297 (read_modref_records): Fix typo: expcted -> expected.
7298 (pass_ipa_modref::execute): Fix typo: calle -> callee.
7300 2020-09-22 Jakub Jelinek <jakub@redhat.com>
7302 * common.opt (-fipa-modref): Add dot at the end of option help.
7303 * params.opt (--param=modref-max-tests=): Likewise.
7305 2020-09-21 Marek Polacek <polacek@redhat.com>
7307 * doc/invoke.texi: Document -Wctad-maybe-unsupported.
7309 2020-09-21 Richard Biener <rguenther@suse.de>
7311 PR tree-optimization/97139
7312 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Only mark the
7313 pattern root, track visited vectorized stmts.
7315 2020-09-21 Jakub Jelinek <jakub@redhat.com>
7317 * configure.ac: Use mallinfo mallinfo2 as first operand of
7318 gcc_AC_CHECK_DECLS rather than [mallinfo, mallinfo2].
7319 * configure: Regenerated.
7320 * config.in: Regenerated.
7322 2020-09-21 Andrea Corallo <andrea.corallo@arm.com>
7324 * config/aarch64/aarch64-builtins.c
7325 (aarch64_general_expand_builtin): Use expand machinery not to
7326 alter the value of an rtx returned by force_reg.
7328 2020-09-21 Richard Biener <rguenther@suse.de>
7330 PR tree-optimization/97135
7331 * tree-ssa-loop-im.c (sm_seq_push_down): Do not ignore
7334 2020-09-21 Martin Liska <mliska@suse.cz>
7336 PR tree-optimization/96915
7337 * tree-switch-conversion.c (switch_conversion::expand): Accept
7338 also integer constants.
7340 2020-09-21 Martin Liska <mliska@suse.cz>
7342 * print-tree.c (print_node): Remove extra space.
7344 2020-09-21 Andrea Corallo <andrea.corallo@arm.com>
7347 * config/aarch64/aarch64-builtins.c
7348 (aarch64_expand_fpsr_fpcr_setter): Fix comment nit.
7349 (aarch64_expand_fpsr_fpcr_getter): New function, expand these
7350 getters using expand_insn machinery.
7351 (aarch64_general_expand_builtin): Make use of.
7353 2020-09-21 Martin Liska <mliska@suse.cz>
7355 * ggc-common.c (ggc_rlimit_bound): Use ONE_? macro.
7356 (ggc_min_expand_heuristic): Likewise.
7357 (ggc_min_heapsize_heuristic): Likewise.
7358 * ggc-page.c (ggc_collect): Likewise.
7359 * system.h (ONE_G): Likewise.
7361 2020-09-21 Martin Liska <mliska@suse.cz>
7363 * ggc-common.c (ggc_prune_overhead_list): Use SIZE_AMOUNT.
7364 * ggc-page.c (release_pages): Likewise.
7365 (ggc_collect): Likewise.
7366 (ggc_trim): Likewise.
7367 (ggc_grow): Likewise.
7368 * timevar.c (timer::print): Likewise.
7370 2020-09-21 Martin Liska <mliska@suse.cz>
7372 * config.in: Regenerate.
7373 * configure: Likewise.
7374 * configure.ac: Detect for mallinfo2.
7375 * ggc-common.c (defined): Use it.
7376 * system.h: Handle also HAVE_MALLINFO2.
7378 2020-09-20 John David Anglin < danglin@gcc.gnu.org>
7380 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Delete.
7381 * config/pa/pa64-hpux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7382 (ENDFILE_SPEC): Link with libgcc_stub.a and mill.a.
7383 * config/pa/pa32-linux.h (ENDFILE_SPEC): Link with libgcc.a.
7385 2020-09-20 Jan Hubicka <hubicka@ucw.cz>
7387 * ipa-modref.c (dump_lto_records): Fix ICE.
7389 2020-09-20 David Cepelik <d@dcepelik.cz>
7390 Jan Hubicka <hubicka@ucw.cz>
7392 * Makefile.in: Add ipa-modref.c and ipa-modref-tree.c.
7393 * alias.c: (reference_alias_ptr_type_1): Export.
7394 * alias.h (reference_alias_ptr_type_1): Declare.
7395 * common.opt (fipa-modref): New.
7396 * gengtype.c (open_base_files): Add ipa-modref-tree.h and ipa-modref.h
7397 * ipa-modref-tree.c: New file.
7398 * ipa-modref-tree.h: New file.
7399 * ipa-modref.c: New file.
7400 * ipa-modref.h: New file.
7401 * lto-section-in.c (lto_section_name): Add ipa_modref.
7402 * lto-streamer.h (enum lto_section_type): Add LTO_section_ipa_modref.
7403 * opts.c (default_options_table): Enable ipa-modref at -O1+.
7404 * params.opt (-param=modref-max-bases, -param=modref-max-refs,
7405 -param=modref-max-tests): New params.
7406 * passes.def: Schedule pass_modref and pass_ipa_modref.
7407 * timevar.def (TV_IPA_MODREF): New timevar.
7408 (TV_TREE_MODREF): New timevar.
7409 * tree-pass.h (make_pass_modref): Declare.
7410 (make_pass_ipa_modref): Declare.
7411 * tree-ssa-alias.c (dump_alias_stats): Include ipa-modref-tree.h
7413 (alias_stats): Add modref_use_may_alias, modref_use_no_alias,
7414 modref_clobber_may_alias, modref_clobber_no_alias, modref_tests.
7415 (dump_alias_stats): Dump new stats.
7416 (nonoverlapping_array_refs_p): Fix formating.
7417 (modref_may_conflict): New function.
7418 (ref_maybe_used_by_call_p_1): Use it.
7419 (call_may_clobber_ref_p_1): Use it.
7420 (call_may_clobber_ref_p): Update.
7421 (stmt_may_clobber_ref_p_1): Update.
7422 * tree-ssa-alias.h (call_may_clobber_ref_p_1): Update.
7424 2020-09-19 Martin Sebor <msebor@redhat.com>
7430 * gimple-array-bounds.cc (get_base_decl): New function.
7431 (get_ref_size): New function.
7432 (trailing_array): New function.
7433 (array_bounds_checker::check_array_ref): Call them. Handle arrays
7434 declared in function parameters.
7435 (array_bounds_checker::check_mem_ref): Same. Handle references to
7436 dynamically allocated arrays.
7438 2020-09-19 Martin Sebor <msebor@redhat.com>
7441 * builtins.c (warn_for_access): Add argument. Distinguish between
7443 (check_access): Add argument. Distinguish between reads and writes.
7444 (gimple_call_alloc_size): Set range even on failure.
7445 (gimple_parm_array_size): New function.
7446 (compute_objsize): Call it.
7447 (check_memop_access): Pass check_access an additional argument.
7448 (expand_builtin_memchr, expand_builtin_strcat): Same.
7449 (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
7450 (expand_builtin_stpncpy, check_strncat_sizes): Same.
7451 (expand_builtin_strncat, expand_builtin_strncpy): Same.
7452 (expand_builtin_memcmp): Same.
7453 * builtins.h (compute_objsize): Declare a new overload.
7454 (gimple_parm_array_size): Declare.
7455 (check_access): Add argument.
7456 * calls.c (append_attrname): Simplify.
7457 (maybe_warn_rdwr_sizes): Handle internal attribute access.
7458 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid adding
7461 2020-09-19 Martin Sebor <msebor@redhat.com>
7463 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Handle attribute
7464 access internal representation of arrays.
7466 2020-09-19 Martin Sebor <msebor@redhat.com>
7469 * attribs.c (decl_attributes): Also pass decl along with type
7470 attributes to handlers.
7471 (init_attr_rdwr_indices): Change second argument to attribute chain.
7472 Handle internal attribute representation in addition to external.
7473 (get_parm_access): New function.
7474 (attr_access::to_internal_string): Define new member function.
7475 (attr_access::to_external_string): Define new member function.
7476 (attr_access::vla_bounds): Define new member function.
7477 * attribs.h (struct attr_access): Declare new members.
7478 (attr_access::from_mode_char): Define new member function.
7479 (get_parm_access): Declare new function.
7480 * calls.c (initialize_argument_information): Pass function type
7481 attributes to init_attr_rdwr_indices.
7482 * doc/invoke.texi (-Warray-parameter, -Wvla-parameter): Document.
7483 * tree-pretty-print.c (dump_generic_node): Correct handling of
7485 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Same.
7486 * tree.h (access_mode): Add new enumerator.
7488 2020-09-19 Sandra Loosemore <sandra@codesourcery.com>
7490 * doc/generic.texi (Basic Statements): Document SWITCH_EXPR here,
7492 (Statements for C and C++): Rename node to reflect what
7493 the introduction already says about sharing between C and C++
7494 front ends. Copy-edit and correct documentation for structured
7497 2020-09-19 liuhongt <hongtao.liu@intel.com>
7500 * config/i386/x86-tune-costs.h (skylake_cost): increase rtx
7501 cost of sse_to_integer from 2 to 6.
7503 2020-09-18 Sudi Das <sudi.das@arm.com>
7504 Omar Tahir <omar.tahir@arm.com>
7506 * config/arm/thumb2.md (*thumb2_csneg): New.
7507 (*thumb2_negscc): Don't match if TARGET_COND_ARITH.
7508 * config/arm/arm.md (*if_neg_move): Don't match if TARGET_COND_ARITH.
7510 2020-09-18 Sudi Das <sudi.das@arm.com>
7511 Omar Tahir <omar.tahir@arm.com>
7513 * config/arm/thumb2.md (*thumb2_csinc): New.
7514 (*thumb2_cond_arith): Generate CINC where possible.
7516 2020-09-18 Sudi Das <sudi.das@arm.com>
7517 Omar Tahir <omar.tahir@arm.com>
7519 * config/arm/arm.h (TARGET_COND_ARITH): New macro.
7520 * config/arm/arm.c (arm_have_conditional_execution): Return false if
7521 TARGET_COND_ARITH before reload.
7522 * config/arm/predicates.md (arm_comparison_operation): Returns true if
7523 comparing CC_REGNUM with constant zero.
7524 * config/arm/thumb2.md (*thumb2_csinv): New.
7525 (*thumb2_movcond): Don't match if TARGET_COND_ARITH.
7527 2020-09-18 Richard Sandiford <richard.sandiford@arm.com>
7530 * ira.c (ira_setup_eliminable_regset): Skip the special elimination
7531 handling of the hard frame pointer if the hard frame pointer is fixed.
7533 2020-09-18 Richard Biener <rguenther@suse.de>
7535 PR tree-optimization/97081
7536 * tree-vect-patterns.c (vect_recog_rotate_pattern): Use the
7537 precision of the shifted operand to determine the mask.
7539 2020-09-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7541 * config/msp430/msp430.c (msp430_print_operand): Update comment.
7542 Cast to long when printing values formatted as long.
7543 Support 'd', 'e', 'f' and 'g' modifiers.
7544 Extract operand value with a single operation for all modifiers.
7545 * doc/extend.texi (msp430Operandmodifiers): New.
7547 2020-09-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7549 * config/msp430/msp430.c (increment_stack): Mark insns which increment
7550 the stack as frame_related.
7551 (msp430_expand_prologue): Add comments.
7552 (msp430_expand_epilogue): Mark insns which decrement
7553 the stack as frame_related.
7554 Add reg_note to stack pop insns describing position of register
7555 variables on the stack.
7557 2020-09-18 Andrew Stubbs <ams@codesourcery.com>
7559 * config/gcn/gcn-tree.c (execute_omp_gcn): Delete.
7560 (make_pass_omp_gcn): Delete.
7561 * config/gcn/t-gcn-hsa (PASSES_EXTRA): Delete.
7562 * config/gcn/gcn-passes.def: Removed.
7564 2020-09-18 Alex Coplan <alex.coplan@arm.com>
7566 * cfgloop.h (nb_iter_bound): Reword comment describing is_exit.
7568 2020-09-18 Richard Biener <rguenther@suse.de>
7570 PR tree-optimization/97095
7571 * tree-vect-loop.c (vectorizable_live_operation): Get
7572 the SLP vector type from the correct object.
7574 2020-09-18 Richard Biener <rguenther@suse.de>
7576 PR tree-optimization/97089
7577 * tree-ssa-sccvn.c (visit_nary_op): Do not replace unsigned
7580 2020-09-18 Richard Biener <rguenther@suse.de>
7582 PR tree-optimization/97098
7583 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Do not
7584 recurse to children when all stmts were already visited.
7586 2020-09-17 Sergei Trofimovich <siarheit@google.com>
7588 * profile.c (sort_hist_values): Clarify hist format:
7589 start with a value, not counter.
7591 2020-09-17 Yeting Kuo <fakepaper56@gmail.com>
7593 * config/riscv/riscv.h (CSW_MAX_OFFSET): Fix typo.
7595 2020-09-17 Patrick Palka <ppalka@redhat.com>
7598 * gensupport.c (alter_attrs_for_subst_insn) <case SET_ATTR>:
7599 Reduce indentation of misleadingly indented code fragment.
7600 * lra-constraints.c (multi_block_pseudo_p): Likewise.
7601 * sel-sched-ir.c (merge_fences): Likewise.
7603 2020-09-17 Martin Sebor <msebor@redhat.com>
7605 * doc/invoke.texi (-Wuninitialized): Document -Wuninitialized for
7607 (-Wmaybe-uninitialized): Same.
7609 2020-09-17 Richard Biener <rguenther@suse.de>
7611 * tree-ssa-sccvn.c (visit_nary_op): Value-number multiplications
7612 and divisions to negates of available negated forms.
7614 2020-09-17 Eric Botcazou <ebotcazou@adacore.com>
7617 * function.c (use_register_for_decl): Test cfun->tail_call_marked
7618 for a parameter here instead of...
7619 (assign_parm_setup_reg): ...here.
7621 2020-09-17 Aldy Hernandez <aldyh@redhat.com>
7623 * range-op.cc (multi_precision_range_tests): Normalize symbolics when copying to a
7625 * value-range.cc (irange::copy_legacy_range): Add test.
7627 2020-09-17 Jan Hubicka <jh@suse.cz>
7629 * cgraph.c (cgraph_node::get_availability): Fix availability of
7630 functions in other partitions
7631 * varpool.c (varpool_node::get_availability): Likewise.
7633 2020-09-17 Jojo R <jiejie_rong@c-sky.com>
7635 * config/csky/csky.opt (msim): New.
7636 * doc/invoke.texi (C-SKY Options): Document -msim.
7637 * config/csky/csky-elf.h (LIB_SPEC): Add simulator runtime.
7639 2020-09-17 Sergei Trofimovich <siarheit@google.com>
7641 * doc/cppenv.texi: Use @code{} instead of @samp{@command{}}
7644 2020-09-17 liuhongt <hongtao.liu@intel.com>
7646 * common/config/i386/i386-common.c
7647 (OPTION_MASK_ISA_AVX_UNSET): Remove OPTION_MASK_ISA_XSAVE_UNSET.
7648 (OPTION_MASK_ISA_XSAVE_UNSET): Add OPTION_MASK_ISA_AVX_UNSET.
7650 2020-09-16 Alexandre Oliva <oliva@adacore.com>
7652 * config/rs6000/rs6000.c (have_compare_and_set_mask): Use
7655 2020-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
7657 * config/rs6000/predicates.md (current_file_function_operand):
7658 Remove argument from rs6000_pcrel_p call.
7659 * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
7661 (rs6000_global_entry_point_prologue_needed_p): Likewise.
7662 (rs6000_output_function_prologue): Likewise.
7663 * config/rs6000/rs6000-protos.h (rs6000_function_pcrel_p): New
7665 (rs6000_pcrel_p): Remove argument.
7666 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
7667 argument from rs6000_pcrel_p call.
7668 (rs6000_call_template_1): Likewise.
7669 (rs6000_indirect_call_template_1): Likewise.
7670 (rs6000_longcall_ref): Likewise.
7671 (rs6000_call_aix): Likewise.
7672 (rs6000_sibcall_aix): Likewise.
7673 (rs6000_function_pcrel_p): Rename from rs6000_pcrel_p.
7674 (rs6000_pcrel_p): Rewrite.
7675 * config/rs6000/rs6000.md (*pltseq_plt_pcrel<mode>): Remove
7676 argument from rs6000_pcrel_p call.
7677 (*call_local<mode>): Likewise.
7678 (*call_value_local<mode>): Likewise.
7679 (*call_nonlocal_aix<mode>): Likewise.
7680 (*call_value_nonlocal_aix<mode>): Likewise.
7681 (*call_indirect_pcrel<mode>): Likewise.
7682 (*call_value_indirect_pcrel<mode>): Likewise.
7684 2020-09-16 Marek Polacek <polacek@redhat.com>
7686 PR preprocessor/96935
7687 * input.c (get_substring_ranges_for_loc): Return if start.column
7690 2020-09-16 Martin Sebor <msebor@redhat.com>
7693 * tree-ssa-uninit.c (maybe_warn_operand): Work harder to avoid
7694 warning for objects of empty structs
7696 2020-09-16 Eric Botcazou <ebotcazou@adacore.com>
7698 * tree-eh.c (lower_try_finally_dup_block): Backward propagate slocs
7699 to stack restore builtin calls.
7700 (cleanup_all_empty_eh): Do again a post-order traversal of the EH
7703 2020-09-16 Andrea Corallo <andrea.corallo@arm.com>
7705 * tree-vect-loop.c (vect_need_peeling_or_partial_vectors_p): New
7707 (vect_analyze_loop_2): Make use of it not to select partial
7708 vectors if no peel is required.
7709 (determine_peel_for_niter): Move out some logic into
7710 'vect_need_peeling_or_partial_vectors_p'.
7712 2020-09-16 H.J. Lu <hjl.tools@gmail.com>
7715 * cfgexpand.c (asm_clobber_reg_kind): Set sp_is_clobbered_by_asm
7716 to true if the stack pointer is clobbered by asm statement.
7717 * emit-rtl.h (rtl_data): Add sp_is_clobbered_by_asm.
7718 * config/i386/i386.c (ix86_get_drap_rtx): Set need_drap to true
7719 if the stack pointer is clobbered by asm statement.
7721 2020-09-16 Ilya Leoshkevich <iii@linux.ibm.com>
7723 * config/s390/vector.md(*vec_tf_to_v1tf): Use "f" instead of "v"
7724 for the source operand.
7726 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7728 * config.gcc (C-SKY): Set use_gcc_stdint=wrap for elf target.
7730 2020-09-16 Richard Biener <rguenther@suse.de>
7732 * tree-vectorizer.h (_stmt_vec_info::num_slp_uses): Remove.
7733 (STMT_VINFO_NUM_SLP_USES): Likewise.
7734 (vect_free_slp_instance): Adjust.
7735 (vect_update_shared_vectype): Declare.
7736 * tree-vectorizer.c (vec_info::~vec_info): Adjust.
7737 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7738 (vectorizable_live_operation): Use vector type from
7739 SLP_TREE_REPRESENTATIVE.
7740 (vect_transform_loop): Adjust.
7741 * tree-vect-data-refs.c (vect_slp_analyze_node_alignment):
7742 Set the shared vector type.
7743 * tree-vect-slp.c (vect_free_slp_tree): Remove final_p
7744 parameter, remove STMT_VINFO_NUM_SLP_USES updating.
7745 (vect_free_slp_instance): Adjust.
7746 (vect_create_new_slp_node): Remove STMT_VINFO_NUM_SLP_USES
7748 (vect_update_shared_vectype): Always compare with the
7749 present vector type, update if NULL.
7750 (vect_build_slp_tree_1): Do not update the shared vector
7752 (vect_build_slp_tree_2): Adjust.
7753 (slp_copy_subtree): Likewise.
7754 (vect_attempt_slp_rearrange_stmts): Likewise.
7755 (vect_analyze_slp_instance): Likewise.
7756 (vect_analyze_slp): Likewise.
7757 (vect_slp_analyze_node_operations_1): Update the shared
7759 (vect_slp_analyze_operations): Adjust.
7760 (vect_slp_analyze_bb_1): Likewise.
7762 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7764 * config/csky/t-csky-linux (CSKY_MULTILIB_OSDIRNAMES): Use mfloat-abi.
7765 (MULTILIB_OPTIONS): Likewise.
7766 * config/csky/t-csky-elf (MULTILIB_OPTIONS): Likewise.
7767 (MULTILIB_EXCEPTIONS): Likewise.
7769 2020-09-16 Jakub Jelinek <jakub@redhat.com>
7771 * config/arm/arm.c (arm_option_restore): Comment out opts argument
7772 name to avoid unused parameter warnings.
7774 2020-09-16 Jakub Jelinek <jakub@redhat.com>
7776 * optc-save-gen.awk: In cl_optimization_stream_out use
7777 bp_pack_var_len_{int,unsigned} instead of bp_pack_value. In
7778 cl_optimization_stream_in use bp_unpack_var_len_{int,unsigned}
7779 instead of bp_unpack_value. Formatting fix.
7781 2020-09-16 Jakub Jelinek <jakub@redhat.com>
7783 PR tree-optimization/97053
7784 * gimple-ssa-store-merging.c (check_no_overlap): Add FIRST_ORDER,
7785 START, FIRST_EARLIER and LAST_EARLIER arguments. Return false if
7786 any stores between FIRST_EARLIER inclusive and LAST_EARLIER exclusive
7787 has order in between FIRST_ORDER and LAST_ORDER and overlaps the to
7789 (imm_store_chain_info::try_coalesce_bswap): Add FIRST_EARLIER argument.
7790 Adjust check_no_overlap caller.
7791 (imm_store_chain_info::coalesce_immediate_stores): Add first_earlier
7792 and last_earlier variables, adjust them during iterations. Adjust
7793 check_no_overlap callers, call check_no_overlap even when extending
7794 overlapping stores by extra INTEGER_CST stores.
7796 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7798 * config/csky/csky-linux-elf.h (GLIBC_DYNAMIC_LINKER): Use mfloat-abi.
7800 2020-09-16 Kewen Lin <linkw@linux.ibm.com>
7803 * config/rs6000/rs6000-p8swap.c (find_alignment_op): Adjust to
7804 support multiple defintions which are all AND operations with
7806 (recombine_lvx_pattern): Adjust to handle multiple AND operations
7807 from find_alignment_op.
7808 (recombine_stvx_pattern): Likewise.
7810 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7812 * config/csky/csky.md (CSKY_NPARM_FREGS): New.
7813 (call_value_internal_vs/d): New.
7814 (untyped_call): New.
7815 * config/csky/csky.h (TARGET_SINGLE_FPU): New.
7816 (TARGET_DOUBLE_FPU): New.
7817 (FUNCTION_VARG_REGNO_P): New.
7818 (CSKY_VREG_MODE_P): New.
7819 (FUNCTION_VARG_MODE_P): New.
7820 (CUMULATIVE_ARGS): Add extra regs info.
7821 (INIT_CUMULATIVE_ARGS): Use csky_init_cumulative_args.
7822 (FUNCTION_ARG_REGNO_P): Use FUNCTION_VARG_REGNO_P.
7823 * config/csky/csky-protos.h (csky_init_cumulative_args): Extern.
7824 * config/csky/csky.c (csky_cpu_cpp_builtins): Support TARGET_HARD_FLOAT_ABI.
7825 (csky_function_arg): Likewise.
7826 (csky_num_arg_regs): Likewise.
7827 (csky_function_arg_advance): Likewise.
7828 (csky_function_value): Likewise.
7829 (csky_libcall_value): Likewise.
7830 (csky_function_value_regno_p): Likewise.
7831 (csky_arg_partial_bytes): Likewise.
7832 (csky_setup_incoming_varargs): Likewise.
7833 (csky_init_cumulative_args): New.
7835 2020-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
7837 * config/rs6000/rs6000-call.c (altivec_init_builtins): Fix name
7838 of __builtin_altivec_xst_len_r.
7840 2020-09-15 Ilya Leoshkevich <iii@linux.ibm.com>
7842 * rtlanal.c (set_noop_p): Treat subregs of registers in
7843 different modes conservatively.
7845 2020-09-15 Richard Biener <rguenther@suse.de>
7847 * tree-vect-slp.c (vect_get_and_check_slp_defs): Make swap
7848 argument by-value and do not change it.
7849 (vect_build_slp_tree_2): Adjust, set swap to NULL after last
7852 2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
7854 PR tree-optimization/94234
7855 * match.pd (T)(A) +- (T)(B) -> (T)(A +- B): New simplification.
7857 2020-09-15 Segher Boessenkool <segher@kernel.crashing.org>
7859 PR rtl-optimization/96475
7860 * bb-reorder.c (duplicate_computed_gotos): If we did anything, run
7863 2020-09-15 Richard Biener <rguenther@suse.de>
7865 * tree-vect-slp.c (vect_build_slp_tree_2): Also consider
7866 building an operand from scalars when building it did not
7867 fail fatally but avoid messing with the upcall splitting
7870 2020-09-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
7872 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Do not
7873 check +D32 for CMSE if -mfloat-abi=soft
7875 2020-09-15 liuhongt <hongtao.liu@intel.com>
7878 * config/i386/x86-tune-costs.h (struct processor_costs):
7879 Increase mask <-> integer cost for non AVX512 target to avoid
7880 spill gpr to mask. Also retune mask <-> integer and
7881 mask_load/store for skylake_cost.
7883 2020-09-15 Jakub Jelinek <jakub@redhat.com>
7886 * config/i386/sse.md (mul<mode>3<mask_name>_bcs,
7887 <avx512>_div<mode>3<mask_name>_bcst): Use <avx512bcst> instead of
7890 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7893 * gimplify.c (gimplify_omp_for): Add 'bool openacc' argument;
7894 update omp_finish_clause calls.
7895 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses,
7896 gimplify_expr, gimplify_omp_loop): Update omp_finish_clause
7897 and/or gimplify_for calls.
7898 * langhooks-def.h (lhd_omp_finish_clause): Add bool openacc arg.
7899 * langhooks.c (lhd_omp_finish_clause): Likewise.
7900 * langhooks.h (lhd_omp_finish_clause): Likewise.
7901 * omp-low.c (scan_sharing_clauses): Keep GOMP_MAP_TO_PSET cause for
7902 'declare target' vars.
7904 2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
7906 PR tree-optimization/94234
7907 * genmatch.c (dt_simplify::gen_1): Emit check on final simplification
7908 result when "!" is specified on toplevel output expr.
7909 * match.pd ((A * C) +- (B * C) -> (A +- B) * C): Allow folding on expr
7910 with multi-use operands if final result is a simple gimple value.
7912 2020-09-14 Sergei Trofimovich <siarheit@google.com>
7914 * doc/invoke.texi: fix '-fprofile-reproducibility' option
7917 2020-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7919 * config/bpf/bpf.md ("nop"): Re-define as `ja 0'.
7921 2020-09-14 Eric Botcazou <ebotcazou@adacore.com>
7923 * cgraphunit.c (cgraph_node::expand_thunk): Make sure to set
7924 cfun->tail_call_marked when forcing a tail call.
7925 * function.c (assign_parm_setup_reg): Always use a register to
7926 load a parameter passed by reference if cfun->tail_call_marked.
7928 2020-09-14 Pat Haugen <pthaugen@linux.ibm.com>
7930 * config/rs6000/power10.md (power10-mffgpr, power10-mftgpr): Rename to
7931 power10-mtvsr/power10-mfvsr.
7932 * config/rs6000/power6.md (X2F_power6, power6-mftgpr, power6-mffgpr):
7934 * config/rs6000/power8.md (power8-mffgpr, power8-mftgpr): Rename to
7935 power8-mtvsr/power8-mfvsr.
7936 * config/rs6000/power9.md (power9-mffgpr, power9-mftgpr): Rename to
7937 power9-mtvsr/power9-mfvsr.
7938 * config/rs6000/rs6000.c (rs6000_adjust_cost): Remove Power6
7940 * config/rs6000/rs6000.md (mffgpr, mftgpr, zero_extendsi<mode>2,
7941 extendsi<mode>2, @signbit<mode>2_dm, lfiwax, lfiwzx, *movsi_internal1,
7942 movsi_from_sf, *movdi_from_sf_zero_ext, *mov<mode>_internal,
7943 movsd_hardfloat, movsf_from_si, *mov<mode>_hardfloat64, p8_mtvsrwz,
7944 p8_mtvsrd_df, p8_mtvsrd_sf, p8_mfvsrd_3_<mode>, *movdi_internal64,
7945 unpack<mode>_dm): Rename mffgpr/mftgpr to mtvsr/mfvsr.
7946 * config/rs6000/vsx.md (vsx_mov<mode>_64bit, vsx_extract_<mode>,
7947 vsx_extract_si, *vsx_extract_<mode>_p8): Likewise.
7949 2020-09-14 Jakub Jelinek <jakub@redhat.com>
7951 * config/arm/arm.opt (x_arm_arch_string, x_arm_cpu_string,
7952 x_arm_tune_string): Remove TargetSave entries.
7953 (march=, mcpu=, mtune=): Add Save keyword.
7954 * config/arm/arm.c (arm_option_save): Remove.
7955 (TARGET_OPTION_SAVE): Don't redefine.
7956 (arm_option_restore): Don't restore x_arm_*_string here.
7958 2020-09-14 Jakub Jelinek <jakub@redhat.com>
7960 * opt-read.awk: Also initialize extra_target_var_types array.
7961 * opth-gen.awk: Emit explicit_mask arrays to struct cl_optimization
7962 and cl_target_option. Adjust cl_optimization_save,
7963 cl_optimization_restore, cl_target_option_save and
7964 cl_target_option_restore declarations.
7965 * optc-save-gen.awk: Add opts_set argument to cl_optimization_save,
7966 cl_optimization_restore, cl_target_option_save and
7967 cl_target_option_restore functions and save or restore opts_set
7968 next to the opts values into or from explicit_mask arrays.
7969 In cl_target_option_eq and cl_optimization_option_eq compare
7970 explicit_mask arrays, in cl_target_option_hash and cl_optimization_hash
7971 hash them and in cl_target_option_stream_out,
7972 cl_target_option_stream_in, cl_optimization_stream_out and
7973 cl_optimization_stream_in stream them.
7974 * tree.h (build_optimization_node, build_target_option_node): Add
7976 * tree.c (build_optimization_node): Add opts_set argument, pass it
7977 to cl_optimization_save.
7978 (build_target_option_node): Add opts_set argument, pass it to
7979 cl_target_option_save.
7980 * function.c (invoke_set_current_function_hook): Adjust
7981 cl_optimization_restore caller.
7982 * ipa-inline-transform.c (inline_call): Adjust cl_optimization_restore
7983 and build_optimization_node callers.
7984 * target.def (TARGET_OPTION_SAVE, TARGET_OPTION_RESTORE): Add opts_set
7986 * target-globals.c (save_target_globals_default_opts): Adjust
7987 cl_optimization_restore callers.
7988 * toplev.c (process_options): Adjust build_optimization_node and
7989 cl_optimization_restore callers.
7990 (target_reinit): Adjust cl_optimization_restore caller.
7991 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
7992 Adjust build_optimization_node and cl_optimization_restore callers.
7993 * doc/tm.texi: Updated.
7994 * config/aarch64/aarch64.c (aarch64_override_options): Adjust
7995 build_target_option_node caller.
7996 (aarch64_option_save, aarch64_option_restore): Add opts_set argument.
7997 (aarch64_set_current_function): Adjust cl_target_option_restore
7999 (aarch64_option_valid_attribute_p): Adjust cl_target_option_save,
8000 cl_target_option_restore, cl_optimization_restore,
8001 build_optimization_node and build_target_option_node callers.
8002 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Adjust
8003 cl_target_option_restore and build_target_option_node callers.
8004 * config/arm/arm.c (arm_option_save, arm_option_restore): Add
8006 (arm_option_override): Adjust cl_target_option_save,
8007 build_optimization_node and build_target_option_node callers.
8008 (arm_set_current_function): Adjust cl_target_option_restore caller.
8009 (arm_valid_target_attribute_tree): Adjust build_target_option_node
8011 (add_attribute): Formatting fix.
8012 (arm_valid_target_attribute_p): Adjust cl_optimization_restore,
8013 cl_target_option_restore, arm_valid_target_attribute_tree and
8014 build_optimization_node callers.
8015 * config/arm/arm-c.c (arm_pragma_target_parse): Adjust
8016 cl_target_option_restore callers.
8017 * config/csky/csky.c (csky_option_override): Adjust
8018 build_target_option_node and cl_target_option_save callers.
8019 * config/gcn/gcn.c (gcn_fixup_accel_lto_options): Adjust
8020 build_optimization_node and cl_optimization_restore callers.
8021 * config/i386/i386-builtins.c (get_builtin_code_for_version):
8022 Adjust cl_target_option_save and cl_target_option_restore
8024 * config/i386/i386-c.c (ix86_pragma_target_parse): Adjust
8025 build_target_option_node and cl_target_option_restore callers.
8026 * config/i386/i386-options.c (ix86_function_specific_save,
8027 ix86_function_specific_restore): Add opts_set arguments.
8028 (ix86_valid_target_attribute_tree): Adjust build_target_option_node
8030 (ix86_valid_target_attribute_p): Adjust build_optimization_node,
8031 cl_optimization_restore, cl_target_option_restore,
8032 ix86_valid_target_attribute_tree and build_optimization_node callers.
8033 (ix86_option_override_internal): Adjust build_target_option_node
8035 (ix86_reset_previous_fndecl, ix86_set_current_function): Adjust
8036 cl_target_option_restore callers.
8037 * config/i386/i386-options.h (ix86_function_specific_save,
8038 ix86_function_specific_restore): Add opts_set argument.
8039 * config/nios2/nios2.c (nios2_option_override): Adjust
8040 build_target_option_node caller.
8041 (nios2_option_save, nios2_option_restore): Add opts_set argument.
8042 (nios2_valid_target_attribute_tree): Adjust build_target_option_node
8044 (nios2_valid_target_attribute_p): Adjust build_optimization_node,
8045 cl_optimization_restore, cl_target_option_save and
8046 cl_target_option_restore callers.
8047 (nios2_set_current_function, nios2_pragma_target_parse): Adjust
8048 cl_target_option_restore callers.
8049 * config/pru/pru.c (pru_option_override): Adjust
8050 build_target_option_node caller.
8051 (pru_set_current_function): Adjust cl_target_option_restore
8053 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust
8054 cl_target_option_save caller.
8055 (rs6000_option_override_internal): Adjust build_target_option_node
8057 (rs6000_valid_attribute_p): Adjust build_optimization_node,
8058 cl_optimization_restore, cl_target_option_save,
8059 cl_target_option_restore and build_target_option_node callers.
8060 (rs6000_pragma_target_parse): Adjust cl_target_option_restore and
8061 build_target_option_node callers.
8062 (rs6000_activate_target_options): Adjust cl_target_option_restore
8064 (rs6000_function_specific_save, rs6000_function_specific_restore):
8065 Add opts_set argument.
8066 * config/s390/s390.c (s390_function_specific_restore): Likewise.
8067 (s390_option_override_internal): Adjust s390_function_specific_restore
8069 (s390_option_override, s390_valid_target_attribute_tree): Adjust
8070 build_target_option_node caller.
8071 (s390_valid_target_attribute_p): Adjust build_optimization_node,
8072 cl_optimization_restore and cl_target_option_restore callers.
8073 (s390_activate_target_options): Adjust cl_target_option_restore
8075 * config/s390/s390-c.c (s390_cpu_cpp_builtins): Adjust
8076 cl_target_option_save caller.
8077 (s390_pragma_target_parse): Adjust build_target_option_node and
8078 cl_target_option_restore callers.
8080 2020-09-13 Roger Sayle <roger@nextmovesoftware.com>
8082 * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
8083 Provide accurate costs for DImode shifts of integer constants.
8085 2020-09-12 Roger Sayle <roger@nextmovesoftware.com>
8086 John David Anglin <danglin@gcc.gnu.org>
8088 * config/pa/pa.md (shrpsi4_1, shrpsi4_2): New define_insns split
8089 out from previous shrpsi4 providing two commutitive variants using
8090 plus_xor_ior_operator as a predicate.
8091 (shrpdi4_1, shrpdi4_2, shrpdi_3, shrpdi_4): Likewise DImode versions
8092 where _1 and _2 take register shifts, and _3 and _4 for integers.
8093 (rotlsi3_internal): Name this anonymous instruction.
8094 (rotrdi3): New DImode insn copied from rotrsi3.
8095 (rotldi3): New DImode expander copied from rotlsi3.
8096 (rotldi4_internal): New DImode insn copied from rotsi3_internal.
8098 2020-09-11 Michael Meissner <meissner@linux.ibm.com>
8100 * config/rs6000/rs6000.c (rs6000_maybe_emit_maxc_minc): Rename
8101 from rs6000_emit_p9_fp_minmax. Change return type to bool. Add
8102 comments to document NaN/signed zero behavior.
8103 (rs6000_maybe_emit_fp_cmove): Rename from rs6000_emit_p9_fp_cmove.
8104 (have_compare_and_set_mask): New helper function.
8105 (rs6000_emit_cmove): Update calls to new names and the new helper
8108 2020-09-11 Nathan Sidwell <nathan@acm.org>
8110 * config/i386/sse.md (mov<mode>): Fix operand indices.
8112 2020-09-11 Martin Sebor <msebor@redhat.com>
8115 * builtins.c (compute_objsize): Remove incorrect offset adjustment.
8116 (compute_objsize): Adjust offset range here instead.
8118 2020-09-11 Richard Biener <rguenther@suse.de>
8120 PR tree-optimization/97020
8121 * tree-vect-slp.c (vect_slp_analyze_operations): Apply
8122 SLP costs when doing loop vectorization.
8124 2020-09-11 Tom de Vries <tdevries@suse.de>
8127 * config/nvptx/nvptx.md (define_expand "atomic_test_and_set"): New
8130 2020-09-11 Andrew Stubbs <ams@codesourcery.com>
8132 * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align TImode registers.
8133 * config/gcn/gcn.md: Assert that TImode registers do not early clobber.
8135 2020-09-11 Richard Biener <rguenther@suse.de>
8137 * tree-vectorizer.h (_slp_instance::location): New method.
8138 (vect_schedule_slp): Adjust prototype.
8139 * tree-vectorizer.c (vec_info::remove_stmt): Adjust
8140 the BB region begin if we removed the stmt it points to.
8141 * tree-vect-loop.c (vect_transform_loop): Adjust.
8142 * tree-vect-slp.c (_slp_instance::location): Implement.
8143 (vect_analyze_slp_instance): For BB vectorization set
8144 vect_location to that of the instance.
8145 (vect_slp_analyze_operations): Likewise.
8146 (vect_bb_vectorization_profitable_p): Remove wrapper.
8147 (vect_slp_analyze_bb_1): Remove cost check here.
8148 (vect_slp_region): Cost check and code generate subgraphs separately,
8149 report optimized locations and missed optimizations due to
8150 profitability for each of them.
8151 (vect_schedule_slp): Get the vector of SLP graph entries to
8152 vectorize as argument.
8154 2020-09-11 Richard Biener <rguenther@suse.de>
8156 PR tree-optimization/97013
8157 * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove duplicate dumping.
8159 2020-09-11 Richard Biener <rguenther@suse.de>
8161 * tree-vect-slp.c (vect_build_slp_tree_1): Check vector
8162 types for all lanes are compatible.
8163 (vect_analyze_slp_instance): Appropriately check for stores.
8164 (vect_schedule_slp): Likewise.
8166 2020-09-11 Tom de Vries <tdevries@suse.de>
8168 * config/nvptx/nvptx.c (nvptx_assemble_value): Fix undefined
8171 2020-09-11 Tom de Vries <tdevries@suse.de>
8173 * config/nvptx/nvptx.c (nvptx_assemble_value): Handle negative
8176 2020-09-11 Aaron Sawdey <acsawdey@linux.ibm.com>
8178 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8181 2020-09-10 Michael Meissner <meissner@linux.ibm.com>
8183 * config/rs6000/rs6000-protos.h (rs6000_emit_cmove): Change return
8185 (rs6000_emit_int_cmove): Change return type to bool.
8186 * config/rs6000/rs6000.c (rs6000_emit_cmove): Change return type
8188 (rs6000_emit_int_cmove): Change return type to bool.
8190 2020-09-10 Tom de Vries <tdevries@suse.de>
8193 * config/nvptx/nvptx.c (nvptx_assemble_value): Handle shift by
8194 number of bits in shift operand.
8196 2020-09-10 Jakub Jelinek <jakub@redhat.com>
8198 * lto-streamer-out.c (collect_block_tree_leafs): Recurse on
8199 root rather than BLOCK_SUBBLOCKS (root).
8201 2020-09-10 Alex Coplan <alex.coplan@arm.com>
8203 * config/aarch64/aarch64-cores.def: Add Cortex-R82.
8204 * config/aarch64/aarch64-tune.md: Regenerate.
8205 * doc/invoke.texi: Add entry for Cortex-R82.
8207 2020-09-10 Alex Coplan <alex.coplan@arm.com>
8209 * common/config/aarch64/aarch64-common.c
8210 (aarch64_get_extension_string_for_isa_flags): Don't force +crc for
8212 * config/aarch64/aarch64-arches.def: Add entry for Armv8-R.
8213 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros): Set
8214 __ARM_ARCH_PROFILE correctly for Armv8-R.
8215 * config/aarch64/aarch64.h (AARCH64_FL_V8_R): New.
8216 (AARCH64_FL_FOR_ARCH8_R): New.
8217 (AARCH64_ISA_V8_R): New.
8218 * doc/invoke.texi: Add Armv8-R to architecture table.
8220 2020-09-10 Jakub Jelinek <jakub@redhat.com>
8222 * config/arm/arm.c (arm_override_options_after_change_1): Add opts_set
8223 argument, test opts_set->x_str_align_functions rather than
8224 opts->x_str_align_functions.
8225 (arm_override_options_after_change, arm_option_override_internal,
8226 arm_set_current_function): Adjust callers.
8228 2020-09-10 Jakub Jelinek <jakub@redhat.com>
8231 * config/arm/arm.c (arm_override_options_after_change): Don't call
8232 arm_configure_build_target here.
8233 (arm_set_current_function): Call arm_override_options_after_change_1
8236 2020-09-10 Pat Haugen <pthaugen@linux.ibm.com>
8238 * config/rs6000/rs6000.md
8239 (lfiwzx, floatunssi<mode>2_lfiwzx, p8_mtvsrwz, p8_mtvsrd_sf): Fix insn
8241 * config/rs6000/vsx.md
8242 (vsx_concat_<mode>, vsx_splat_<mode>_reg, vsx_splat_v4sf): Likewise.
8244 2020-09-10 Jonathan Yong <10walls@gmail.com>
8246 * config.host: Adjust plugin name for Windows.
8248 2020-09-10 Tom de Vries <tdevries@suse.de>
8250 PR tree-optimization/97000
8251 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): Don't clear
8252 flag for IFN_UNIQUE.
8254 2020-09-10 Jakub Jelinek <jakub@redhat.com>
8257 * lto-streamer.h (struct output_block): Add emit_pwd member.
8258 * lto-streamer-out.c: Include toplev.h.
8259 (clear_line_info): Set emit_pwd.
8260 (lto_output_location_1): Encode the ob->current_file != xloc.file
8261 bit directly into the location number. If changing file, emit
8262 additionally a bit whether pwd is emitted and emit it before the
8263 first relative pathname since clear_line_info.
8264 (output_function, output_constructor): Don't call clear_line_info
8266 * lto-streamer-in.c (struct string_pair_map): New type.
8267 (struct string_pair_map_hasher): New type.
8268 (string_pair_map_hasher::hash): New method.
8269 (string_pair_map_hasher::equal): New method.
8270 (path_name_pair_hash_table, string_pair_map_allocator): New variables.
8271 (relative_path_prefix, canon_relative_path_prefix,
8272 canon_relative_file_name): New functions.
8273 (canon_file_name): Add relative_prefix argument, if non-NULL
8274 and string is a relative path, return canon_relative_file_name.
8275 (lto_location_cache::input_location_and_block): Decode file change
8276 bit from the location number. If changing file, unpack bit whether
8277 pwd is streamed and stream in pwd. Adjust canon_file_name caller.
8278 (lto_free_file_name_hash): Delete path_name_pair_hash_table
8279 and string_pair_map_allocator.
8281 2020-09-10 Richard Biener <rguenther@suse.de>
8283 PR tree-optimization/96043
8284 * tree-vectorizer.h (_slp_instance::cost_vec): New.
8285 (_slp_instance::subgraph_entries): Likewise.
8286 (BB_VINFO_TARGET_COST_DATA): Remove.
8287 * tree-vect-slp.c (vect_free_slp_instance): Free
8288 cost_vec and subgraph_entries.
8289 (vect_analyze_slp_instance): Initialize them.
8290 (vect_slp_analyze_operations): Defer passing costs to
8291 the target, instead record them in the SLP graph entry.
8292 (get_ultimate_leader): New helper for graph partitioning.
8293 (vect_bb_partition_graph_r): Likewise.
8294 (vect_bb_partition_graph): New function to partition the
8295 SLP graph into independently costable parts.
8296 (vect_bb_vectorization_profitable_p): Adjust to work on
8298 (vect_bb_vectorization_profitable_p): New wrapper,
8299 discarding non-profitable vectorization of subgraphs.
8300 (vect_slp_analyze_bb_1): Call vect_bb_partition_graph before
8303 2020-09-09 David Malcolm <dmalcolm@redhat.com>
8306 * doc/invoke.texi: Document -Wanalyzer-mismatching-deallocation.
8308 2020-09-09 Segher Boessenkool <segher@kernel.crashing.org>
8310 PR rtl-optimization/96475
8311 * bb-reorder.c (maybe_duplicate_computed_goto): Remove single_pred_p
8314 2020-09-09 Tom de Vries <tdevries@suse.de>
8316 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Fix Wformat
8319 2020-09-09 Richard Biener <rguenther@suse.de>
8321 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
8322 nothing when the permutation doesn't permute.
8324 2020-09-09 Tom de Vries <tdevries@suse.de>
8327 * config/nvptx/nvptx.c (write_fn_proto): Fix boolean type check.
8329 2020-09-09 Richard Biener <rguenther@suse.de>
8331 * tree-vect-stmts.c (vectorizable_comparison): Allow
8332 STMT_VINFO_LIVE_P stmts.
8334 2020-09-09 Richard Biener <rguenther@suse.de>
8336 * tree-vect-stmts.c (vectorizable_condition): Allow
8337 STMT_VINFO_LIVE_P stmts.
8339 2020-09-09 Richard Biener <rguenther@suse.de>
8341 PR tree-optimization/96978
8342 * tree-vect-stmts.c (vectorizable_condition): Do not
8343 look at STMT_VINFO_LIVE_P for BB vectorization.
8344 (vectorizable_comparison): Likewise.
8346 2020-09-09 liuhongt <hongtao.liu@intel.com>
8349 * config/i386/i386.md (get_thread_pointer<mode>): New
8352 2020-09-08 Julian Brown <julian@codesourcery.com>
8354 * config/gcn/gcn-valu.md (scatter<mode>_insn_1offset_ds<exec_scatter>):
8356 * config/gcn/gcn.md (*mov<mode>_insn, *movti_insn): Add waitcnt to
8357 ds_write alternatives.
8359 2020-09-08 Julian Brown <julian@codesourcery.com>
8361 * config/gcn/mkoffload.c (process_asm): Initialise regcount. Update
8362 scanning for SGPR/VGPR usage for HSACO v3.
8364 2020-09-08 Aldy Hernandez <aldyh@redhat.com>
8366 PR tree-optimization/96967
8367 * tree-vrp.c (find_case_label_range): Cast label range to
8368 type of switch operand.
8370 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8372 * config/msp430/msp430.c (msp430_file_end): Fix jumbled
8373 HAVE_AS_MSPABI_ATTRIBUTE and HAVE_AS_GNU_ATTRIBUTE checks.
8374 * configure: Regenerate.
8375 * configure.ac: Use ".mspabi_attribute 4,2" to check for assembler
8376 support for this object attribute directive.
8378 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8380 * common/config/msp430/msp430-common.c (msp430_handle_option): Remove
8382 Set target_cpu value to new enum values when parsing certain -mmcu=
8384 * config/msp430/msp430-opts.h (enum msp430_cpu_types): New.
8385 * config/msp430/msp430.c (msp430_option_override): Handle new
8386 target_cpu enum values.
8387 Set target_cpu using extracted value for given MCU when -mcpu=
8388 option is not passed by the user.
8389 * config/msp430/msp430.opt: Handle -mcpu= values using enums.
8391 2020-09-07 Richard Sandiford <richard.sandiford@arm.com>
8393 PR rtl-optimization/96796
8394 * lra-constraints.c (in_class_p): Add a default-false
8395 allow_all_reload_class_changes_p parameter. Do not treat
8396 reload moves specially when the parameter is true.
8397 (get_reload_reg): Try to narrow the class of an existing OP_OUT
8398 reload if we're reloading a reload pseudo in a reload instruction.
8400 2020-09-07 Andrea Corallo <andrea.corallo@arm.com>
8402 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Revert
8403 dead-code removal introduced by 09fa6acd8d9 + add a comment to
8406 2020-09-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8408 * doc/rtl.texi (subreg): Fix documentation to state there is a known
8409 number of undefined bits in regs and subregs of MODE_PARTIAL_INT modes.
8411 2020-09-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8413 * config/msp430/msp430.c (msp430_option_override): Don't set the
8414 ISA to 430 when the MCU is unrecognized.
8416 2020-09-07 Iain Sandoe <iain@sandoe.co.uk>
8418 * config/darwin.c (darwin_libc_has_function): Report sincos
8419 available from 10.9.
8421 2020-09-07 Alex Coplan <alex.coplan@arm.com>
8423 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): Delete.
8424 (*subs_mul_imm_<mode>): Delete.
8425 (*adds_<optab><mode>_multp2): Delete.
8426 (*subs_<optab><mode>_multp2): Delete.
8427 (*add_mul_imm_<mode>): Delete.
8428 (*add_<optab><ALLX:mode>_mult_<GPI:mode>): Delete.
8429 (*add_<optab><SHORT:mode>_mult_si_uxtw): Delete.
8430 (*add_<optab><mode>_multp2): Delete.
8431 (*add_<optab>si_multp2_uxtw): Delete.
8432 (*add_uxt<mode>_multp2): Delete.
8433 (*add_uxtsi_multp2_uxtw): Delete.
8434 (*sub_mul_imm_<mode>): Delete.
8435 (*sub_mul_imm_si_uxtw): Delete.
8436 (*sub_<optab><mode>_multp2): Delete.
8437 (*sub_<optab>si_multp2_uxtw): Delete.
8438 (*sub_uxt<mode>_multp2): Delete.
8439 (*sub_uxtsi_multp2_uxtw): Delete.
8440 (*neg_mul_imm_<mode>2): Delete.
8441 (*neg_mul_imm_si2_uxtw): Delete.
8442 * config/aarch64/predicates.md (aarch64_pwr_imm3): Delete.
8443 (aarch64_pwr_2_si): Delete.
8444 (aarch64_pwr_2_di): Delete.
8446 2020-09-07 Alex Coplan <alex.coplan@arm.com>
8448 * config/aarch64/aarch64.md
8449 (*adds_<optab><ALLX:mode>_<GPI:mode>): Ensure extended operand
8450 agrees with width of extension specifier.
8451 (*subs_<optab><ALLX:mode>_<GPI:mode>): Likewise.
8452 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
8453 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
8454 (*add_<optab><ALLX:mode>_<GPI:mode>): Likewise.
8455 (*add_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
8456 (*add_uxt<mode>_shift2): Likewise.
8457 (*sub_<optab><ALLX:mode>_<GPI:mode>): Likewise.
8458 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
8459 (*sub_uxt<mode>_shift2): Likewise.
8460 (*cmp_swp_<optab><ALLX:mode>_reg<GPI:mode>): Likewise.
8461 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
8463 2020-09-07 Richard Biener <rguenther@suse.de>
8465 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
8466 stmts we start SLP analysis from, failure and splitting.
8467 (vect_schedule_slp): Dump SLP graph entry and root stmt
8468 we are about to emit code for.
8470 2020-09-07 Martin Storsjö <martin@martin.st>
8472 * dwarf2out.c (file_name_acquire): Make a strchr return value
8475 2020-09-07 Jakub Jelinek <jakub@redhat.com>
8478 * lto-streamer-out.c (output_cfg): Also stream goto_locus for edges.
8479 Use bp_pack_var_len_unsigned instead of streamer_write_uhwi to stream
8480 e->dest->index and e->flags.
8481 (output_function): Call output_cfg before output_ssa_name, rather than
8482 after streaming all bbs.
8483 * lto-streamer-in.c (input_cfg): Stream in goto_locus for edges.
8484 Use bp_unpack_var_len_unsigned instead of streamer_read_uhwi to stream
8485 in dest_index and edge_flags.
8487 2020-09-07 Richard Biener <rguenther@suse.de>
8489 * tree-vectorizer.h (vectorizable_live_operation): Adjust.
8490 * tree-vect-loop.c (vectorizable_live_operation): Vectorize
8491 live lanes out of basic-block vectorization nodes.
8492 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): New function.
8493 (vect_slp_analyze_operations): Analyze live lanes and their
8494 vectorization possibility after the whole SLP graph is final.
8495 (vect_bb_slp_scalar_cost): Adjust for vectorized live lanes.
8496 * tree-vect-stmts.c (can_vectorize_live_stmts): Adjust.
8497 (vect_transform_stmt): Call can_vectorize_live_stmts also for
8498 basic-block vectorization.
8500 2020-09-04 Richard Biener <rguenther@suse.de>
8502 PR tree-optimization/96698
8503 PR tree-optimization/96920
8504 * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): Remove.
8505 (loop_vec_info::reduc_latch_slp_defs): Likewise.
8506 * tree-vect-stmts.c (vect_transform_stmt): Remove vectorized
8507 cycle PHI latch code.
8508 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): New
8509 helper to set vectorized cycle PHI latch values.
8510 (vect_transform_loop): Walk over all PHIs again after
8511 vectorizing them, calling maybe_set_vectorized_backedge_value.
8512 Call maybe_set_vectorized_backedge_value for each vectorized
8513 stmt. Remove delayed update code.
8514 * tree-vect-slp.c (vect_analyze_slp_instance): Initialize
8515 SLP instance reduc_phis member.
8516 (vect_schedule_slp): Set vectorized cycle PHI latch values.
8518 2020-09-04 Andrea Corallo <andrea.corallo@arm.com>
8520 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Remove
8521 dead code as LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) is
8524 2020-09-04 Christophe Lyon <christophe.lyon@linaro.org>
8527 * config/arm/thumb1.md: Move movsi splitter for
8528 arm_disable_literal_pool after the other movsi splitters.
8530 2020-09-04 Aldy Hernandez <aldyh@redhat.com>
8532 * range-op.cc (range_operator::fold_range): Rename widest_irange
8534 (operator_div::wi_fold): Same.
8535 (operator_lshift::op1_range): Same.
8536 (operator_rshift::op1_range): Same.
8537 (operator_cast::fold_range): Same.
8538 (operator_cast::op1_range): Same.
8539 (operator_bitwise_and::remove_impossible_ranges): Same.
8540 (operator_bitwise_and::op1_range): Same.
8541 (operator_abs::op1_range): Same.
8543 (widest_irange_tests): Same.
8544 (range3_tests): Rename irange3 to int_range3.
8545 (int_range_max_tests): Rename from widest_irange_tests.
8546 Rename widest_irange to int_range_max.
8547 (operator_tests): Rename widest_irange to int_range_max.
8548 (range_tests): Same.
8549 * tree-vrp.c (find_case_label_range): Same.
8550 * value-range.cc (irange::irange_intersect): Same.
8551 (irange::invert): Same.
8552 * value-range.h: Same.
8554 2020-09-04 Richard Biener <rguenther@suse.de>
8556 PR tree-optimization/96931
8557 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): If
8558 there's a fallthru edge and no abnormal edge the call is
8559 no longer control-altering.
8560 (cleanup_control_flow_bb): Pass down the BB to
8561 cleanup_call_ctrl_altering_flag.
8563 2020-09-04 Jakub Jelinek <jakub@redhat.com>
8565 * lto-streamer.h (stream_input_location_now): Remove declaration.
8566 * lto-streamer-in.c (stream_input_location_now): Remove.
8567 (input_eh_region, input_struct_function_base): Use
8568 stream_input_location instead of stream_input_location_now.
8570 2020-09-04 Jakub Jelinek <jakub@redhat.com>
8572 * lto-streamer.h (struct output_block): Add reset_locus member.
8573 * lto-streamer-out.c (clear_line_info): Set reset_locus to true.
8574 (lto_output_location_1): If reset_locus, clear it and ensure
8575 current_{file,line,col} is different from xloc members.
8577 2020-09-04 David Faust <david.faust@oracle.com>
8579 * config/bpf/bpf.h (ASM_SPEC): Pass -mxbpf to gas, if specified.
8580 * config/bpf/bpf.c (bpf_output_call): Support indirect calls in xBPF.
8582 2020-09-03 Martin Jambor <mjambor@suse.cz>
8584 PR tree-optimization/96820
8585 * tree-sra.c (create_access): Disqualify candidates with accesses
8586 beyond the end of the original aggregate.
8587 (maybe_add_sra_candidate): Check that candidate type size fits
8588 signed uhwi for the sake of consistency.
8590 2020-09-03 Will Schmidt <will_schmidt@vnet.ibm.com>
8592 * config/rs6000/rs6000-call.c (rs6000_init_builtin): Update V2DI_type_node
8593 and unsigned_V2DI_type_node definitions.
8595 2020-09-03 Jakub Jelinek <jakub@redhat.com>
8598 * tree.h (struct decl_tree_traits): New type.
8599 (decl_tree_map): New typedef.
8601 2020-09-03 Jakub Jelinek <jakub@redhat.com>
8604 * gimple.h (gimple_location_ptr, gimple_phi_arg_location_ptr): New
8606 * streamer-hooks.h (struct streamer_hooks): Add
8607 output_location_and_block callback. Fix up formatting for
8609 (stream_output_location_and_block): Define.
8610 * lto-streamer.h (class lto_location_cache): Fix comment typo. Add
8611 current_block member.
8612 (lto_location_cache::input_location_and_block): New method.
8613 (lto_location_cache::lto_location_cache): Initialize current_block.
8614 (lto_location_cache::cached_location): Add block member.
8615 (struct output_block): Add current_block member.
8616 (lto_output_location): Formatting fix.
8617 (lto_output_location_and_block): Declare.
8618 * lto-streamer.c (lto_streamer_hooks_init): Initialize
8619 streamer_hooks.output_location_and_block.
8620 * lto-streamer-in.c (lto_location_cache::cmp_loc): Also compare
8622 (lto_location_cache::apply_location_cache): Handle blocks.
8623 (lto_location_cache::accept_location_cache,
8624 lto_location_cache::revert_location_cache): Fix up function comments.
8625 (lto_location_cache::input_location_and_block): New method.
8626 (lto_location_cache::input_location): Implement using
8627 input_location_and_block.
8628 (input_function): Invoke apply_location_cache after streaming in all
8630 * lto-streamer-out.c (clear_line_info): Set current_block.
8631 (lto_output_location_1): New function, moved from lto_output_location,
8632 added block handling.
8633 (lto_output_location): Implement using lto_output_location_1.
8634 (lto_output_location_and_block): New function.
8635 * gimple-streamer-in.c (input_phi): Use input_location_and_block
8636 to input and cache both location and block.
8637 (input_gimple_stmt): Likewise.
8638 * gimple-streamer-out.c (output_phi): Use
8639 stream_output_location_and_block.
8640 (output_gimple_stmt): Likewise.
8642 2020-09-03 Richard Biener <rguenther@suse.de>
8644 * tree-vect-generic.c (tree_vec_extract): Remove odd
8645 special-casing of boolean vectors.
8646 * fold-const.c (fold_ternary_loc): Handle boolean vector
8647 type BIT_FIELD_REFs.
8649 2020-09-03 Hongtao Liu <hongtao.liu@intel.com>
8652 * config/i386/i386-features.c
8653 (replace_constant_pool_with_broadcast): New function.
8654 (constant_pool_broadcast): Ditto.
8655 (class pass_constant_pool_broadcast): New pass.
8656 (make_pass_constant_pool_broadcast): Ditto.
8657 (remove_partial_avx_dependency): Call
8658 replace_constant_pool_with_broadcast under TARGET_AVX512F, it
8659 would save compile time when both pass rpad and cpb are
8661 (remove_partial_avx_dependency_gate): New function.
8662 (class pass_remove_partial_avx_dependency::gate): Call
8663 remove_partial_avx_dependency_gate.
8664 * config/i386/i386-passes.def: Insert new pass after combine.
8665 * config/i386/i386-protos.h
8666 (make_pass_constant_pool_broadcast): Declare.
8667 * config/i386/sse.md (*avx512dq_mul<mode>3<mask_name>_bcst):
8669 (*avx512f_mul<mode>3<mask_name>_bcst): Ditto.
8670 * config/i386/avx512fintrin.h (_mm512_set1_ps,
8671 _mm512_set1_pd,_mm512_set1_epi32, _mm512_set1_epi64): Adjusted.
8673 2020-09-02 Jonathan Wakely <jwakely@redhat.com>
8676 * ginclude/stdbool.h (bool, false, true): Never define for C++.
8678 2020-09-02 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8680 * doc/invoke.texi (MSP430 options): Fix -mlarge description to
8681 indicate size_t is a 20-bit type.
8683 2020-09-02 Roger Sayle <roger@nextmovesoftware.com>
8685 * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
8686 Provide accurate costs for shifts of integer constants.
8688 2020-09-02 Jose E. Marchesi <jose.marchesi@oracle.com>
8690 * config/bpf/bpf.c (bpf_asm_named_section): Delete.
8691 (TARGET_ASM_NAMED_SECTION): Likewise.
8693 2020-09-02 Jose E. Marchesi <jemarch@gnu.org>
8695 * config.gcc: Use elfos.h in bpf-*-* targets.
8696 * config/bpf/bpf.h (MAX_OFILE_ALIGNMENT): Remove definition.
8697 (COMMON_ASM_OP): Likewise.
8698 (INIT_SECTION_ASM_OP): Likewise.
8699 (FINI_SECTION_ASM_OP): Likewise.
8700 (ASM_OUTPUT_SKIP): Likewise.
8701 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8702 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8704 2020-09-01 Martin Sebor <msebor@redhat.com>
8706 * builtins.c (compute_objsize): Only replace the upper bound
8707 of a POINTER_PLUS offset when it's less than the lower bound.
8709 2020-09-01 Peter Bergner <bergner@linux.ibm.com>
8712 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Do not
8713 reuse accumulator memory reference for source and destination accesses.
8715 2020-09-01 Martin Liska <mliska@suse.cz>
8717 * cfgrtl.c (rtl_create_basic_block): Use default value for
8718 growth vector function.
8719 * gimple.c (gimple_set_bb): Likewise.
8720 * symbol-summary.h: Likewise.
8721 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
8722 (build_gimple_cfg): Likewise.
8723 (create_bb): Likewise.
8724 (move_block_to_fn): Likewise.
8726 2020-09-01 Martin Liska <mliska@suse.cz>
8728 * vec.h (vec_safe_grow): Change default of exact to false.
8729 (vec_safe_grow_cleared): Likewise.
8731 2020-09-01 Roger Sayle <roger@nextmovesoftware.com>
8734 * targhooks.c (default_vector_alignment): Return at least the
8735 GET_MODE_ALIGNMENT for the type's mode.
8737 2020-09-01 Richard Biener <rguenther@suse.de>
8739 PR rtl-optimization/96812
8740 * tree-ssa-address.c (copy_ref_info): Also copy dependence info.
8741 * cfgrtl.h (duplicate_insn_chain): Adjust prototype.
8742 * cfgrtl.c (duplicate_insn_chain): Remap dependence info
8744 (cfg_layout_duplicate_bb): Make sure we remap dependence info.
8745 * modulo-sched.c (duplicate_insns_of_cycles): Remap dependence
8747 (generate_prolog_epilog): Adjust.
8748 * config/c6x/c6x.c (hwloop_optimize): Remap dependence info.
8750 2020-09-01 Kewen Lin <linkw@gcc.gnu.org>
8752 * doc/sourcebuild.texi (has_arch_pwr5, has_arch_pwr6, has_arch_pwr7,
8753 has_arch_pwr8, has_arch_pwr9): Document.
8755 2020-08-31 Carl Love <cel@us.ibm.com>
8758 * config/rs6000/altivec.h (vec_popcntb, vec_popcnth, vec_popcntw,
8759 vec_popcntd): Remove defines.
8761 2020-08-31 Marek Polacek <polacek@redhat.com>
8762 Jason Merrill <jason@redhat.com>
8765 * tree.c (build_constructor_from_vec): New.
8766 * tree.h (build_constructor_from_vec): Declare.
8768 2020-08-31 Aldy Hernandez <aldyh@redhat.com>
8770 PR tree-optimization/96818
8771 * tree-vrp.c (find_case_label_range): Cast label range to
8772 type of switch operand.
8774 2020-08-31 liuhongt <hongtao.liu@intel.com>
8777 * config/i386/sse.md (vec_unpacku_float_hi_v16si): For vector
8778 compare to integer mask, don't use gen_rtx_LT, use
8779 ix86_expand_mask_vec_cmp instead.
8780 (vec_unpacku_float_hi_v16si): Ditto.
8782 2020-08-31 Jakub Jelinek <jakub@redhat.com>
8784 * tree-cfg.c (verify_gimple_switch): If the first non-default case
8785 label has CASE_HIGH, verify it has the same type as CASE_LOW.
8787 2020-08-31 Feng Xue <fxue@os.amperecomputing.com>
8790 * ipa-cp.c (decide_about_value): Use safe_add to avoid cost addition
8793 2020-08-31 Jakub Jelinek <jakub@redhat.com>
8796 * varasm.c: Include alloc-pool.h.
8797 (output_constant_pool_contents): Emit desc->mark < 0 entries as
8799 (struct constant_descriptor_rtx_data): New type.
8800 (constant_descriptor_rtx_data_cmp): New function.
8801 (struct const_rtx_data_hasher): New type.
8802 (const_rtx_data_hasher::hash, const_rtx_data_hasher::equal): New
8804 (optimize_constant_pool): New function.
8805 (output_shared_constant_pool): Call it if TARGET_SUPPORTS_ALIASES.
8807 2020-08-31 Kewen Lin <linkw@gcc.gnu.org>
8809 * doc/sourcebuild.texi (vect_len_load_store,
8810 vect_partial_vectors_usage_1, vect_partial_vectors_usage_2,
8811 vect_partial_vectors): Document.
8813 2020-08-30 Martin Sebor <msebor@redhat.com>
8815 * builtins.c (access_ref::access_ref): Call get_size_range instead
8818 2020-08-30 Jakub Jelinek <jakub@redhat.com>
8820 * config/i386/sse.md (ssse3_pshufbv8qi): Use gen_int_mode instead of
8821 GEN_INT, and ix86_build_const_vector instead of gen_rtvec and
8822 gen_rtx_CONT_VECTOR.
8824 2020-08-29 Bill Schmidt <wschmidt@linux.ibm.com>
8826 * config/rs6000/rs6000-builtin.def (MASK_FOR_STORE): Remove.
8827 * config/rs6000/rs6000-call.c (rs6000_expand_builtin): Remove
8828 all logic for ALTIVEC_BUILTIN_MASK_FOR_STORE.
8830 2020-08-28 Martin Sebor <msebor@redhat.com>
8832 * attribs.c (init_attr_rdwr_indices): Use global access_mode.
8833 * attribs.h (struct attr_access): Same.
8834 * builtins.c (fold_builtin_strlen): Add argument.
8835 (compute_objsize): Declare.
8836 (get_range): Declare.
8837 (check_read_access): New function.
8838 (access_ref::access_ref): Define ctor.
8839 (warn_string_no_nul): Add arguments. Handle -Wstrintop-overread.
8840 (check_nul_terminated_array): Handle source strings of different
8842 (expand_builtin_strlen): Remove warning code, call check_read_access
8843 instead. Declare locals closer to their initialization.
8844 (expand_builtin_strnlen): Same.
8845 (maybe_warn_for_bound): New function.
8846 (warn_for_access): Remove argument. Handle -Wstrintop-overread.
8847 (inform_access): Change argument type.
8848 (get_size_range): New function.
8849 (check_access): Remove unused arguments. Add new arguments. Handle
8850 -Wstrintop-overread. Move warning code to helpers and call them.
8851 Call check_nul_terminated_array.
8852 (check_memop_access): Remove unnecessary and provide additional
8854 (expand_builtin_memchr): Call check_read_access.
8855 (expand_builtin_strcat): Remove unnecessary and provide additional
8857 (expand_builtin_strcpy): Same.
8858 (expand_builtin_strcpy_args): Same. Avoid testing no-warning bit.
8859 (expand_builtin_stpcpy_1): Remove unnecessary and provide additional
8861 (expand_builtin_stpncpy): Same.
8862 (check_strncat_sizes): Same.
8863 (expand_builtin_strncat): Remove unnecessary and provide additional
8864 arguments in calls. Adjust comments.
8865 (expand_builtin_strncpy): Remove unnecessary and provide additional
8867 (expand_builtin_memcmp): Remove warning code. Call check_access.
8868 (expand_builtin_strcmp): Call check_access instead of
8869 check_nul_terminated_array.
8870 (expand_builtin_strncmp): Handle -Wstrintop-overread.
8871 (expand_builtin_fork_or_exec): Call check_access instead of
8872 check_nul_terminated_array.
8873 (expand_builtin): Same.
8874 (fold_builtin_1): Pass additional argument.
8875 (fold_builtin_n): Same.
8876 (fold_builtin_strpbrk): Remove calls to check_nul_terminated_array.
8877 (expand_builtin_memory_chk): Add comments.
8878 (maybe_emit_chk_warning): Remove unnecessary and provide additional
8880 (maybe_emit_sprintf_chk_warning): Same. Adjust comments.
8881 * builtins.h (warn_string_no_nul): Add arguments.
8882 (struct access_ref): Add member and ctor argument.
8883 (struct access_data): Add members and ctor.
8884 (check_access): Adjust signature.
8885 * calls.c (maybe_warn_nonstring_arg): Return an indication of
8886 whether a warning was issued. Issue -Wstrintop-overread instead
8887 of -Wstringop-overflow.
8888 (append_attrname): Adjust to naming changes.
8889 (maybe_warn_rdwr_sizes): Same. Remove unnecessary and provide
8890 additional arguments in calls.
8891 * calls.h (maybe_warn_nonstring_arg): Return bool.
8892 * doc/invoke.texi (-Wstringop-overread): Document new option.
8893 * gimple-fold.c (gimple_fold_builtin_strcpy): Provide an additional
8895 (gimple_fold_builtin_stpcpy): Same.
8896 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Adjust to naming
8898 * tree.h (enum access_mode): New type.
8900 2020-08-28 Bill Schmidt <wschmidt@linux.ibm.com>
8902 * config/rs6000/rs6000.c (rs6000_call_aix): Remove test for r12.
8903 (rs6000_sibcall_aix): Likewise.
8905 2020-08-28 Andrew Stubbs <ams@codesourcery.com>
8907 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Add "true"
8908 parameter to vec_safe_grow_cleared.
8910 2020-08-28 Martin Sebor <msebor@redhat.com>
8912 * ggc-common.c (gt_pch_save): Add argument to a call.
8914 2020-08-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8917 * config/aarch64/aarch64-sve.md
8918 (cond_sub<mode>_relaxed_const): Updated and renamed from
8919 cond_sub<mode>_any_const pattern.
8920 (cond_sub<mode>_strict_const): New pattern.
8922 2020-08-28 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
8924 * doc/rtl.texi: Fix typo.
8926 2020-08-28 Uros Bizjak <ubizjak@gmail.com>
8929 * config/i386/i386-expand.c (split_double_mode): Also handle
8930 E_P2HImode and E_P2QImode.
8931 * config/i386/sse.md (MASK_DWI): New define_mode_iterator.
8932 (mov<mode>): New expander for P2HI,P2QI.
8933 (*mov<mode>_internal): New define_insn_and_split to split
8934 movement of P2QI/P2HI to 2 movqi/movhi patterns after reload.
8936 2020-08-28 liuhongt <hongtao.liu@intel.com>
8938 * common/config/i386/i386-common.c (ix86_handle_option): Set
8939 AVX512DQ when AVX512VP2INTERSECT exists.
8941 2020-08-27 Jakub Jelinek <jakub@redhat.com>
8944 * config/i386/i386.c (iamcu_alignment): Don't decrease alignment
8945 for TYPE_ATOMIC types.
8946 (ix86_local_alignment): Likewise.
8947 (ix86_minimum_alignment): Likewise.
8948 (x86_field_alignment): Likewise, and emit a -Wpsabi diagnostic
8951 2020-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
8954 * config/rs6000/rs6000.c (rs6000_sibcall_aix): Support
8955 indirect call for ELFv2.
8957 2020-08-27 Richard Biener <rguenther@suse.de>
8959 PR tree-optimization/96522
8960 * tree-ssa-address.c (copy_ref_info): Reset flow-sensitive
8961 info of the copied points-to. Transfer bigger alignment
8962 via the access type.
8963 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8964 Reset all flow-sensitive info.
8966 2020-08-27 Martin Liska <mliska@suse.cz>
8968 * alias.c (init_alias_analysis): Set exact argument of a vector
8969 growth function to true.
8970 * calls.c (internal_arg_pointer_based_exp_scan): Likewise.
8971 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
8972 * cfgexpand.c (expand_asm_stmt): Likewise.
8973 * cfgrtl.c (rtl_create_basic_block): Likewise.
8974 * combine.c (combine_split_insns): Likewise.
8975 (combine_instructions): Likewise.
8976 * config/aarch64/aarch64-sve-builtins.cc (function_expander::add_output_operand): Likewise.
8977 (function_expander::add_input_operand): Likewise.
8978 (function_expander::add_integer_operand): Likewise.
8979 (function_expander::add_address_operand): Likewise.
8980 (function_expander::add_fixed_operand): Likewise.
8981 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
8982 * dwarf2cfi.c (update_row_reg_save): Likewise.
8983 * early-remat.c (early_remat::init_block_info): Likewise.
8984 (early_remat::finalize_candidate_indices): Likewise.
8985 * except.c (sjlj_build_landing_pads): Likewise.
8986 * final.c (compute_alignments): Likewise.
8987 (grow_label_align): Likewise.
8988 * function.c (temp_slots_at_level): Likewise.
8989 * fwprop.c (build_single_def_use_links): Likewise.
8990 (update_uses): Likewise.
8991 * gcc.c (insert_wrapper): Likewise.
8992 * genautomata.c (create_state_ainsn_table): Likewise.
8993 (add_vect): Likewise.
8994 (output_dead_lock_vect): Likewise.
8995 * genmatch.c (capture_info::capture_info): Likewise.
8996 (parser::finish_match_operand): Likewise.
8997 * genrecog.c (optimize_subroutine_group): Likewise.
8998 (merge_pattern_info::merge_pattern_info): Likewise.
8999 (merge_into_decision): Likewise.
9000 (print_subroutine_start): Likewise.
9002 * gimple-loop-versioning.cc (loop_versioning::loop_versioning): Likewise.
9003 * gimple.c (gimple_set_bb): Likewise.
9004 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user): Likewise.
9005 * haifa-sched.c (sched_extend_luids): Likewise.
9006 (extend_h_i_d): Likewise.
9007 * insn-addr.h (insn_addresses_new): Likewise.
9008 * ipa-cp.c (gather_context_independent_values): Likewise.
9009 (find_more_contexts_for_caller_subset): Likewise.
9010 * ipa-devirt.c (final_warning_record::grow_type_warnings): Likewise.
9011 (ipa_odr_read_section): Likewise.
9012 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
9013 (ipa_fn_summary_t::duplicate): Likewise.
9014 (analyze_function_body): Likewise.
9015 (ipa_merge_fn_summary_after_inlining): Likewise.
9016 (read_ipa_call_summary): Likewise.
9017 * ipa-icf.c (sem_function::bb_dict_test): Likewise.
9018 * ipa-prop.c (ipa_alloc_node_params): Likewise.
9019 (parm_bb_aa_status_for_bb): Likewise.
9020 (ipa_compute_jump_functions_for_edge): Likewise.
9021 (ipa_analyze_node): Likewise.
9022 (update_jump_functions_after_inlining): Likewise.
9023 (ipa_read_edge_info): Likewise.
9024 (read_ipcp_transformation_info): Likewise.
9025 (ipcp_transform_function): Likewise.
9026 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
9027 * ipa-split.c (execute_split_functions): Likewise.
9028 * ira.c (find_moveable_pseudos): Likewise.
9029 * lower-subreg.c (decompose_multiword_subregs): Likewise.
9030 * lto-streamer-in.c (input_eh_regions): Likewise.
9031 (input_cfg): Likewise.
9032 (input_struct_function_base): Likewise.
9033 (input_function): Likewise.
9034 * modulo-sched.c (set_node_sched_params): Likewise.
9035 (extend_node_sched_params): Likewise.
9036 (schedule_reg_moves): Likewise.
9037 * omp-general.c (omp_construct_simd_compare): Likewise.
9038 * passes.c (pass_manager::create_pass_tab): Likewise.
9039 (enable_disable_pass): Likewise.
9040 * predict.c (determine_unlikely_bbs): Likewise.
9041 * profile.c (compute_branch_probabilities): Likewise.
9042 * read-rtl-function.c (function_reader::parse_block): Likewise.
9043 * read-rtl.c (rtx_reader::read_rtx_code): Likewise.
9044 * reg-stack.c (stack_regs_mentioned): Likewise.
9045 * regrename.c (regrename_init): Likewise.
9046 * rtlanal.c (T>::add_single_to_queue): Likewise.
9047 * sched-deps.c (init_deps_data_vector): Likewise.
9048 * sel-sched-ir.c (sel_extend_global_bb_info): Likewise.
9049 (extend_region_bb_info): Likewise.
9050 (extend_insn_data): Likewise.
9051 * symtab.c (symtab_node::create_reference): Likewise.
9052 * tracer.c (tail_duplicate): Likewise.
9053 * trans-mem.c (tm_region_init): Likewise.
9054 (get_bb_regions_instrumented): Likewise.
9055 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
9056 (build_gimple_cfg): Likewise.
9057 (create_bb): Likewise.
9058 (move_block_to_fn): Likewise.
9059 * tree-complex.c (tree_lower_complex): Likewise.
9060 * tree-if-conv.c (predicate_rhs_code): Likewise.
9061 * tree-inline.c (copy_bb): Likewise.
9062 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
9063 (mark_phi_for_rewrite): Likewise.
9064 * tree-object-size.c (compute_builtin_object_size): Likewise.
9065 (init_object_sizes): Likewise.
9066 * tree-predcom.c (initialize_root_vars_store_elim_1): Likewise.
9067 (initialize_root_vars_store_elim_2): Likewise.
9068 (prepare_initializers_chain_store_elim): Likewise.
9069 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
9070 (multiplier_allowed_in_address_p): Likewise.
9071 * tree-ssa-coalesce.c (ssa_conflicts_new): Likewise.
9072 * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
9073 * tree-ssa-loop-ivopts.c (addr_offset_valid_p): Likewise.
9074 (get_address_cost_ainc): Likewise.
9075 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Likewise.
9076 * tree-ssa-pre.c (add_to_value): Likewise.
9077 (phi_translate_1): Likewise.
9078 (do_pre_regular_insertion): Likewise.
9079 (do_pre_partial_partial_insertion): Likewise.
9080 (init_pre): Likewise.
9081 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
9082 (update_call_from_tree): Likewise.
9083 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Likewise.
9084 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
9085 (vn_reference_lookup_pieces): Likewise.
9086 (eliminate_dom_walker::eliminate_push_avail): Likewise.
9087 * tree-ssa-strlen.c (set_strinfo): Likewise.
9088 (get_stridx_plus_constant): Likewise.
9089 (zero_length_string): Likewise.
9090 (find_equal_ptrs): Likewise.
9091 (printf_strlen_execute): Likewise.
9092 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
9093 * tree-ssanames.c (make_ssa_name_fn): Likewise.
9094 * tree-streamer-in.c (streamer_read_tree_bitfields): Likewise.
9095 * tree-vect-loop.c (vect_record_loop_mask): Likewise.
9096 (vect_get_loop_mask): Likewise.
9097 (vect_record_loop_len): Likewise.
9098 (vect_get_loop_len): Likewise.
9099 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
9100 * tree-vect-slp.c (vect_slp_convert_to_external): Likewise.
9101 (vect_bb_slp_scalar_cost): Likewise.
9102 (vect_bb_vectorization_profitable_p): Likewise.
9103 (vectorizable_slp_permutation): Likewise.
9104 * tree-vect-stmts.c (vectorizable_call): Likewise.
9105 (vectorizable_simd_clone_call): Likewise.
9106 (scan_store_can_perm_p): Likewise.
9107 (vectorizable_store): Likewise.
9109 * vec.c (test_safe_grow_cleared): Likewise.
9110 * vec.h (vec_safe_grow): Likewise.
9111 (vec_safe_grow_cleared): Likewise.
9112 (vl_ptr>::safe_grow): Likewise.
9113 (vl_ptr>::safe_grow_cleared): Likewise.
9114 * config/c6x/c6x.c (insn_set_clock): Likewise.
9116 2020-08-27 Richard Biener <rguenther@suse.de>
9118 * tree-pretty-print.c (dump_mem_ref): Handle TARGET_MEM_REFs.
9119 (dump_generic_node): Use dump_mem_ref also for TARGET_MEM_REF.
9121 2020-08-27 Alex Coplan <alex.coplan@arm.com>
9123 * lra-constraints.c (canonicalize_reload_addr): New.
9124 (curr_insn_transform): Use canonicalize_reload_addr to ensure we
9125 generate canonical RTL for an address reload.
9127 2020-08-27 Zhiheng Xie <xiezhiheng@huawei.com>
9129 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
9130 for rounding intrinsics.
9132 2020-08-27 Zhiheng Xie <xiezhiheng@huawei.com>
9134 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
9135 for min/max intrinsics.
9137 2020-08-27 Richard Biener <rguenther@suse.de>
9139 PR tree-optimization/96579
9140 * tree-ssa-reassoc.c (linearize_expr_tree): If we expand
9141 rhs via special ops make sure to swap operands.
9143 2020-08-27 Richard Biener <rguenther@suse.de>
9145 PR tree-optimization/96565
9146 * tree-ssa-dse.c (dse_classify_store): Remove defs with
9147 no uses from further processing.
9149 2020-08-26 Göran Uddeborg <goeran@uddeborg.se>
9151 PR gcov-profile/96285
9152 * common.opt, doc/invoke.texi: Clarify wording of
9153 -fprofile-exclude-files and adjust -fprofile-filter-files to
9156 2020-08-26 H.J. Lu <hjl.tools@gmail.com>
9159 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
9160 Reject target("no-general-regs-only").
9162 2020-08-26 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9164 * config/msp430/constraints.md (K): Change unused constraint to
9165 constraint to a const_int between 1 and 19.
9166 (P): New constraint.
9167 * config/msp430/msp430-protos.h (msp430x_logical_shift_right): Remove.
9168 (msp430_expand_shift): New.
9169 (msp430_output_asm_shift_insns): New.
9170 * config/msp430/msp430.c (msp430_rtx_costs): Remove shift costs.
9172 (msp430_expand_helper): Remove hard-coded generation of some inline
9174 (use_helper_for_const_shift): New.
9175 (msp430_expand_shift): New.
9176 (msp430_output_asm_shift_insns): New.
9177 (msp430_print_operand): Add new 'W' operand selector.
9178 (msp430x_logical_shift_right): Remove.
9179 * config/msp430/msp430.md (HPSI): New define_mode_iterator.
9181 (any_shift): New define_code_iterator.
9182 (shift_insn): New define_code_attr.
9183 Adjust unnamed insn patterns searched for by combine.
9186 (430x_shift_left): Remove.
9193 (430x_arithmetic_shift_right): Remove.
9202 (430x_logical_shift_right): Remove.
9208 (<shift_insn><mode>3): New define_expand.
9209 (<shift_insn>hi3_430): New define_insn.
9210 (<shift_insn>si3_const): Likewise.
9211 (ashl<mode>3_430x): Likewise.
9212 (ashr<mode>3_430x): Likewise.
9213 (lshr<mode>3_430x): Likewise.
9214 (*bitbranch<mode>4_z): Replace renamed predicate msp430_bitpos with
9215 const_0_to_15_operand.
9216 * config/msp430/msp430.opt: New option -mmax-inline-shift=.
9217 * config/msp430/predicates.md (const_1_to_8_operand): New predicate.
9218 (const_0_to_15_operand): Rename msp430_bitpos predicate.
9219 (const_1_to_19_operand): New predicate.
9220 * doc/invoke.texi: Document -mmax-inline-shift=.
9222 2020-08-26 Aldy Hernandez <aldyh@redhat.com>
9224 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Abstract code out to...
9225 * tree-vrp.c (find_case_label_range): ...here. Rewrite for to use irange
9227 (simplify_stmt_for_jump_threading): Call find_case_label_range instead of
9228 duplicating the code in simplify_stmt_for_jump_threading.
9229 * tree-vrp.h (find_case_label_range): New prototype.
9231 2020-08-26 Richard Biener <rguenther@suse.de>
9233 PR tree-optimization/96698
9234 * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): New.
9235 (loop_vec_info::reduc_latch_slp_defs): Likewise.
9236 * tree-vect-stmts.c (vect_transform_stmt): Only record
9237 stmts to update PHI latches from, perform the update ...
9238 * tree-vect-loop.c (vect_transform_loop): ... here after
9239 vectorizing those PHIs.
9240 (info_for_reduction): Properly handle non-reduction PHIs.
9242 2020-08-26 Martin Liska <mliska@suse.cz>
9244 * cgraphunit.c (process_symver_attribute): Match only symver
9247 2020-08-26 Richard Biener <rguenther@suse.de>
9249 PR tree-optimization/96783
9250 * tree-vect-stmts.c (get_group_load_store_type): Use
9251 VMAT_ELEMENTWISE for negative strides when we cannot
9252 use VMAT_STRIDED_SLP.
9254 2020-08-26 Martin Liska <mliska@suse.cz>
9256 * doc/invoke.texi: Document how are pie and pic options merged.
9258 2020-08-26 Zhiheng Xie <xiezhiheng@huawei.com>
9260 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
9261 for add/sub arithmetic intrinsics.
9263 2020-08-26 Jakub Jelinek <jakub@redhat.com>
9266 * dwarf2out.c (dwarf2out_next_real_insn): Adjust function comment.
9267 (dwarf2out_var_location): Look for next_note only if next_real is
9268 non-NULL, in that case look for the first non-deleted
9269 NOTE_INSN_VAR_LOCATION between loc_note and next_real, if any.
9271 2020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
9273 * config/tilepro/gen-mul-tables.cc (main): Define IN_TARGET_CODE to 1
9276 2020-08-26 Martin Liska <mliska@suse.cz>
9278 * cgraphunit.c (process_symver_attribute): Allow multiple
9279 symver attributes for one symbol.
9280 * doc/extend.texi: Document the change.
9282 2020-08-25 H.J. Lu <hjl.tools@gmail.com>
9285 * config/i386/i386.h (CTZ_DEFINED_VALUE_AT_ZERO): Return 0/2.
9286 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
9288 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
9291 * config/pa/pa.c (hppa_rtx_costs_shadd_p): New helper function
9292 to check for coefficients supported by shNadd and shladd,l.
9293 (hppa_rtx_costs): Rewrite to avoid using estimates based upon
9294 FACTOR and enable recursing deeper into RTL expressions.
9296 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
9298 * config/pa/pa.md (ashldi3): Additionally, on !TARGET_64BIT
9299 generate a two instruction shd/zdep sequence when shifting
9300 registers by suitable constants.
9301 (shd_internal): New define_expand to provide gen_shd_internal.
9303 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
9305 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Rename
9306 __ARM_FEATURE_SVE_VECTOR_OPERATIONS to
9307 __ARM_FEATURE_SVE_VECTOR_OPERATORS.
9309 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
9311 * config/aarch64/aarch64-sve-builtins.cc (add_sve_type_attribute):
9312 Take the ACLE name of the type as a parameter and add it as fourth
9313 argument to the "SVE type" attribute.
9314 (register_builtin_types): Update call accordingly.
9315 (register_tuple_type): Likewise. Construct the name of the type
9316 earlier in order to do this.
9317 (get_arm_sve_vector_bits_attributes): New function.
9318 (handle_arm_sve_vector_bits_attribute): Report a more sensible
9319 error message if the attribute is applied to an SVE tuple type.
9320 Don't allow the attribute to be applied to an existing fixed-length
9321 SVE type. Mangle the new type as __SVE_VLS<type, vector-bits>.
9322 Add a dummy TYPE_DECL to the new type.
9324 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
9326 * config/aarch64/aarch64-sve-builtins.cc (DEF_SVE_TYPE): Add a
9327 leading "u" to each mangled name.
9329 2020-08-25 Richard Biener <rguenther@suse.de>
9331 PR tree-optimization/96548
9332 PR tree-optimization/96760
9333 * tree-ssa-loop-im.c (tree_ssa_lim): Recompute RPO after
9336 2020-08-25 Jakub Jelinek <jakub@redhat.com>
9338 PR tree-optimization/96722
9339 * gimple.c (infer_nonnull_range): Formatting fix.
9340 (infer_nonnull_range_by_dereference): Return false for clobber stmts.
9342 2020-08-25 Jakub Jelinek <jakub@redhat.com>
9344 PR tree-optimization/96758
9345 * tree-ssa-strlen.c (handle_builtin_string_cmp): If both cstlen1
9346 and cstlen2 are set, set cmpsiz to their minimum, otherwise use the
9347 one that is set. If bound is used and smaller than cmpsiz, set cmpsiz
9348 to bound. If both cstlen1 and cstlen2 are set, perform the optimization.
9350 2020-08-25 Martin Jambor <mjambor@suse.cz>
9352 PR tree-optimization/96730
9353 * tree-sra.c (create_access): Disqualify any aggregate with negative
9355 (build_ref_for_model): Add assert that offset is non-negative.
9357 2020-08-25 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
9359 * rtl.def: Fix typo in comment.
9361 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
9363 PR tree-optimization/21137
9364 * fold-const.c (fold_binary_loc) [NE_EXPR/EQ_EXPR]: Call
9365 STRIP_NOPS when checking whether to simplify ((x>>C1)&C2) != 0.
9367 2020-08-25 Andrew Pinski <apinski@marvell.com>
9370 * config/mips/mips.md (builtin_longjmp): Restore the frame
9371 pointer and stack pointer and gp.
9373 2020-08-25 Richard Biener <rguenther@suse.de>
9376 * dwarf2out.c (reference_to_unused): Make FUNCTION_DECL
9377 processing more consistent with respect to
9378 symtab->global_info_ready.
9379 (tree_add_const_value_attribute): Unconditionally call
9380 rtl_for_decl_init to do all mangling early but throw
9381 away the result if early_dwarf.
9383 2020-08-25 Hongtao Liu <hongtao.liu@intel.com>
9386 * config/i386/sse.md: Correct the mode of NOT operands to
9389 2020-08-25 Jakub Jelinek <jakub@redhat.com>
9391 PR tree-optimization/96715
9392 * match.pd (copysign(x,-x) -> -x): New simplification.
9394 2020-08-25 Jakub Jelinek <jakub@redhat.com>
9397 * fold-const.c (native_interpret_real): For MODE_COMPOSITE_P modes
9398 punt if the to be returned REAL_CST does not encode to the bitwise
9399 same representation.
9401 2020-08-24 Gerald Pfeifer <gerald@pfeifer.com>
9403 * doc/install.texi (Configuration): Switch valgrind.com to https.
9405 2020-08-24 Christophe Lyon <christophe.lyon@linaro.org>
9409 * config/arm/thumb1.md: Disable set-constant splitter when
9411 (thumb1_movsi_insn): Fix -mpure-code
9414 2020-08-24 Martin Liska <mliska@suse.cz>
9416 * tree-vect-data-refs.c (dr_group_sort_cmp): Work on
9418 (vect_analyze_data_ref_accesses): Work on groups.
9419 (vect_find_stmt_data_reference): Add group_id argument and fill
9420 up dataref_groups vector.
9421 * tree-vect-loop.c (vect_get_datarefs_in_loop): Pass new
9423 (vect_analyze_loop_2): Likewise.
9424 * tree-vect-slp.c (vect_slp_analyze_bb_1): Pass argument.
9425 (vect_slp_bb_region): Likewise.
9426 (vect_slp_region): Likewise.
9427 (vect_slp_bb):Work on the entire BB.
9428 * tree-vectorizer.h (vect_analyze_data_ref_accesses): Add new
9430 (vect_find_stmt_data_reference): Likewise.
9432 2020-08-24 Martin Liska <mliska@suse.cz>
9434 PR tree-optimization/96597
9435 * tree-ssa-sccvn.c (vn_reference_lookup_call): Add missing
9436 initialization of ::punned.
9437 (vn_reference_insert): Use consistently false instead of 0.
9438 (vn_reference_insert_pieces): Likewise.
9440 2020-08-24 Hans-Peter Nilsson <hp@axis.com>
9443 * reorg.c (fill_slots_from_thread): Allow trial insns that clobber
9444 TARGET_FLAGS_REGNUM as delay-slot fillers.
9446 2020-08-23 H.J. Lu <hjl.tools@gmail.com>
9449 * config/i386/i386-options.c (IX86_ATTR_IX86_YES): New.
9450 (IX86_ATTR_IX86_NO): Likewise.
9451 (ix86_opt_type): Add ix86_opt_ix86_yes and ix86_opt_ix86_no.
9452 (ix86_valid_target_attribute_inner_p): Handle general-regs-only,
9453 ix86_opt_ix86_yes and ix86_opt_ix86_no.
9454 (ix86_option_override_internal): Check opts->x_ix86_target_flags
9455 instead of opts->x_ix86_target_flags.
9456 * doc/extend.texi: Document target("general-regs-only") function
9459 2020-08-21 Richard Sandiford <richard.sandiford@arm.com>
9461 * doc/extend.texi: Update links to Arm docs.
9462 * doc/invoke.texi: Likewise.
9464 2020-08-21 Hongtao Liu <hongtao.liu@intel.com>
9467 * config/i386/i386-expand.c
9468 (ix86_expand_vec_shift_qihi_constant): Refine.
9470 2020-08-21 Alex Coplan <alex.coplan@arm.com>
9473 * gcc.c (set_static_spec): New.
9474 (set_static_spec_owned): New.
9475 (set_static_spec_shared): New.
9476 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Use
9477 set_static_spec_owned() to take ownership of lto_wrapper_file
9478 such that it gets freed in driver::finalize.
9479 (driver::maybe_run_linker): Use set_static_spec_shared() to
9480 ensure that we don't try and free() the static string "ld",
9481 also ensuring that any previously-allocated string in
9482 linker_name_spec is freed. Likewise with argv0.
9483 (driver::finalize): Use set_static_spec_shared() when resetting
9484 specs that previously had allocated strings; remove if(0)
9485 around call to free().
9487 2020-08-21 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
9489 * emit-rtl.c (try_split): Call copy_frame_info_to_split_insn
9490 to split certain RTX_FRAME_RELATED_P insns.
9491 * recog.c (copy_frame_info_to_split_insn): New function.
9492 (peep2_attempt): Split copying of frame related info of
9493 RTX_FRAME_RELATED_P insns into above function and call it.
9494 * recog.h (copy_frame_info_to_split_insn): Declare it.
9496 2020-08-21 liuhongt <hongtao.liu@intel.com>
9499 * config/i386/i386.c (ix86_preferred_reload_class): Allow
9500 QImode data go into mask registers.
9501 * config/i386/i386.md: (*movhi_internal): Adjust constraints
9503 (*movqi_internal): Ditto.
9504 (*anddi_1): Support mask register operations
9505 (*and<mode>_1): Ditto.
9507 (*andn<mode>_1): Ditto.
9508 (*<code><mode>_1): Ditto.
9509 (*<code>qi_1): Ditto.
9510 (*one_cmpl<mode>2_1): Ditto.
9511 (*one_cmplsi2_1_zext): Ditto.
9512 (*one_cmplqi2_1): Ditto.
9513 (define_peephole2): Move constant 0/-1 directly into mask
9515 * config/i386/predicates.md (mask_reg_operand): New predicate.
9516 * config/i386/sse.md (define_split): Add post-reload splitters
9517 that would convert "generic" patterns to mask patterns.
9518 (*knotsi_1_zext): New define_insn.
9520 2020-08-21 liuhongt <hongtao.liu@intel.com>
9522 * config/i386/x86-tune-costs.h (skylake_cost): Adjust cost
9525 2020-08-21 liuhongt <hongtao.liu@intel.com>
9527 * config/i386/i386.c (inline_secondary_memory_needed):
9528 No memory is needed between mask regs and gpr.
9529 (ix86_hard_regno_mode_ok): Add condition TARGET_AVX512F for
9531 * config/i386/i386.h (enum reg_class): Add INT_MASK_REGS.
9532 (REG_CLASS_NAMES): Ditto.
9533 (REG_CLASS_CONTENTS): Ditto.
9534 * config/i386/i386.md: Exclude mask register in
9535 define_peephole2 which is avaiable only for gpr.
9537 2020-08-21 H.J. Lu <hjl.tools@gmail.com>
9540 * config/i386/i386.h (struct processor_costs): Add member
9541 mask_to_integer, integer_to_mask, mask_load[3], mask_store[3],
9543 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
9544 i386_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
9545 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
9546 bdver_cost, znver1_cost, znver2_cost, skylake_cost,
9547 btver1_cost, btver2_cost, pentium4_cost, nocona_cost,
9548 atom_cost, slm_cost, intel_cost, generic_cost, core_cost):
9549 Initialize mask_load[3], mask_store[3], mask_move,
9550 integer_to_mask, mask_to_integer for all target costs.
9551 * config/i386/i386.c (ix86_register_move_cost): Using cost
9552 model of mask registers.
9553 (inline_memory_move_cost): Ditto.
9554 (ix86_register_move_cost): Ditto.
9556 2020-08-20 Iain Buclaw <ibuclaw@gdcproject.org>
9558 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Don't include
9559 VxWorks header files if -fself-test is used.
9560 (STARTFILE_PREFIX_SPEC): Avoid using VSB_DIR if -fself-test is used.
9562 2020-08-20 Joe Ramsay <Joe.Ramsay@arm.com>
9565 * config/arm/mve.md (mve_vst1q_f<mode>): Require MVE memory operand for
9567 (mve_vst1q_<supf><mode>): Likewise.
9569 2020-08-19 2020-08-19 Carl Love <cel@us.ibm.com>
9571 * config/rs6000/rs6000-builtin.def (BU_P10V_0, BU_P10V_1,
9572 BU_P10V_2, BU_P10V_3): Rename BU_P10V_VSX_0, BU_P10V_VSX_1,
9573 BU_P10V_VSX_2, BU_P10V_VSX_3 respectively.
9574 (BU_P10V_4): Remove.
9575 (BU_P10V_AV_0, BU_P10V_AV_1, BU_P10V_AV_2, BU_P10V_AV_3, BU_P10V_AV_4):
9576 New definitions for Power 10 Altivec macros.
9577 (VSTRIBR, VSTRIHR, VSTRIBL, VSTRIHL, VSTRIBR_P, VSTRIHR_P,
9578 VSTRIBL_P, VSTRIHL_P, MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM,
9579 VEXPANDMB, VEXPANDMH, VEXPANDMW, VEXPANDMD, VEXPANDMQ, VEXTRACTMB,
9580 VEXTRACTMH, VEXTRACTMW, VEXTRACTMD, VEXTRACTMQ): Replace macro
9581 expansion BU_P10V_1 with BU_P10V_AV_1.
9582 (VCLRLB, VCLRRB, VCFUGED, VCLZDM, VCTZDM, VPDEPD, VPEXTD, VGNB,
9583 VCNTMBB, VCNTMBH, VCNTMBW, VCNTMBD): Replace macro expansion
9584 BU_P10V_2 with BU_P10V_AV_2.
9585 (VEXTRACTBL, VEXTRACTHL, VEXTRACTWL, VEXTRACTDL, VEXTRACTBR, VEXTRACTHR,
9586 VEXTRACTWR, VEXTRACTDR, VINSERTGPRBL, VINSERTGPRHL, VINSERTGPRWL,
9587 VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL, VINSERTGPRBR,
9588 VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR, VINSERTVPRHR,
9589 VINSERTVPRWR, VREPLACE_ELT_V4SI, VREPLACE_ELT_UV4SI, VREPLACE_ELT_V2DF,
9590 VREPLACE_ELT_V4SF, VREPLACE_ELT_V2DI, VREPLACE_ELT_UV2DI, VREPLACE_UN_V4SI,
9591 VREPLACE_UN_UV4SI, VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
9592 VREPLACE_UN_V2DF, VSLDB_V16QI, VSLDB_V8HI, VSLDB_V4SI, VSLDB_V2DI,
9593 VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI, VSRDB_V2DI): Replace macro expansion
9594 BU_P10V_3 with BU_P10V_AV_3.
9595 (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF, VXXSPLTID): Replace macro expansion
9596 BU_P10V_1 with BU_P10V_AV_1.
9597 (XXGENPCVM_V16QI, XXGENPCVM_V8HI, XXGENPCVM_V4SI, XXGENPCVM_V2DI):
9598 Replace macro expansion BU_P10V_2 with BU_P10V_VSX_2.
9599 (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF, VXXBLEND_V16QI, VXXBLEND_V8HI,
9600 VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): Replace macor
9601 expansion BU_P10V_3 with BU_P10V_VSX_3.
9602 (XXEVAL, VXXPERMX): Replace macro expansion BU_P10V_4 with BU_P10V_VSX_4.
9603 (XVCVBF16SP, XVCVSPBF16): Replace macro expansion BU_VSX_1 with
9604 BU_P10V_VSX_1. Also change MISC to CONST.
9605 * config/rs6000/rs6000-c.c: (P10_BUILTIN_VXXPERMX): Replace with
9606 P10V_BUILTIN_VXXPERMX.
9607 (P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRRB,
9608 P10_BUILTIN_VGNB, P10_BUILTIN_XXEVAL, P10_BUILTIN_VXXPERMX,
9609 P10_BUILTIN_VEXTRACTBL, P10_BUILTIN_VEXTRACTHL, P10_BUILTIN_VEXTRACTWL,
9610 P10_BUILTIN_VEXTRACTDL, P10_BUILTIN_VINSERTGPRHL,
9611 P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
9612 P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
9613 P10_BUILTIN_VEXTRACTBR, P10_BUILTIN_VEXTRACTHR,
9614 P10_BUILTIN_VEXTRACTWR, P10_BUILTIN_VEXTRACTDR,
9615 P10_BUILTIN_VINSERTGPRBR, P10_BUILTIN_VINSERTGPRHR,
9616 P10_BUILTIN_VINSERTGPRWR, P10_BUILTIN_VINSERTGPRDR,
9617 P10_BUILTIN_VINSERTVPRBR, P10_BUILTIN_VINSERTVPRHR,
9618 P10_BUILTIN_VINSERTVPRWR, P10_BUILTIN_VREPLACE_ELT_UV4SI,
9619 P10_BUILTIN_VREPLACE_ELT_V4SI, P10_BUILTIN_VREPLACE_ELT_UV2DI,
9620 P10_BUILTIN_VREPLACE_ELT_V2DI, P10_BUILTIN_VREPLACE_ELT_V2DF,
9621 P10_BUILTIN_VREPLACE_UN_UV4SI, P10_BUILTIN_VREPLACE_UN_V4SI,
9622 P10_BUILTIN_VREPLACE_UN_V4SF, P10_BUILTIN_VREPLACE_UN_UV2DI,
9623 P10_BUILTIN_VREPLACE_UN_V2DI, P10_BUILTIN_VREPLACE_UN_V2DF,
9624 P10_BUILTIN_VSLDB_V16QI, P10_BUILTIN_VSLDB_V16QI,
9625 P10_BUILTIN_VSLDB_V8HI, P10_BUILTIN_VSLDB_V4SI,
9626 P10_BUILTIN_VSLDB_V2DI, P10_BUILTIN_VXXSPLTIW_V4SI,
9627 P10_BUILTIN_VXXSPLTIW_V4SF, P10_BUILTIN_VXXSPLTID,
9628 P10_BUILTIN_VXXSPLTI32DX_V4SI, P10_BUILTIN_VXXSPLTI32DX_V4SF,
9629 P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
9630 P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI,
9631 P10_BUILTIN_VXXBLEND_V4SF, P10_BUILTIN_VXXBLEND_V2DF,
9632 P10_BUILTIN_VSRDB_V16QI, P10_BUILTIN_VSRDB_V8HI,
9633 P10_BUILTIN_VSRDB_V4SI, P10_BUILTIN_VSRDB_V2DI,
9634 P10_BUILTIN_VSTRIBL, P10_BUILTIN_VSTRIHL,
9635 P10_BUILTIN_VSTRIBL_P, P10_BUILTIN_VSTRIHL_P,
9636 P10_BUILTIN_VSTRIBR, P10_BUILTIN_VSTRIHR,
9637 P10_BUILTIN_VSTRIBR_P, P10_BUILTIN_VSTRIHR_P,
9638 P10_BUILTIN_MTVSRBM, P10_BUILTIN_MTVSRHM,
9639 P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
9640 P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB,
9641 P10_BUILTIN_VCNTMBH, P10_BUILTIN_VCNTMBW,
9642 P10_BUILTIN_VCNTMBD, P10_BUILTIN_VEXPANDMB,
9643 P10_BUILTIN_VEXPANDMH, P10_BUILTIN_VEXPANDMW,
9644 P10_BUILTIN_VEXPANDMD, P10_BUILTIN_VEXPANDMQ,
9645 P10_BUILTIN_VEXTRACTMB, P10_BUILTIN_VEXTRACTMH,
9646 P10_BUILTIN_VEXTRACTMW, P10_BUILTIN_VEXTRACTMD,
9647 P10_BUILTIN_VEXTRACTMQ, P10_BUILTIN_XVTLSBB_ZEROS,
9648 P10_BUILTIN_XVTLSBB_ONES): Replace with
9649 P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRRB,
9650 P10V_BUILTIN_VGNB, P10V_BUILTIN_XXEVAL, P10V_BUILTIN_VXXPERMX,
9651 P10V_BUILTIN_VEXTRACTBL, P10V_BUILTIN_VEXTRACTHL, P10V_BUILTIN_VEXTRACTWL,
9652 P10V_BUILTIN_VEXTRACTDL, P10V_BUILTIN_VINSERTGPRHL,
9653 P10V_BUILTIN_VINSERTGPRWL, P10V_BUILTIN_VINSERTGPRDL,
9654 P10V_BUILTIN_VINSERTVPRBL,P10V_BUILTIN_VINSERTVPRHL,
9655 P10V_BUILTIN_VEXTRACTBR, P10V_BUILTIN_VEXTRACTHR
9656 P10V_BUILTIN_VEXTRACTWR, P10V_BUILTIN_VEXTRACTDR,
9657 P10V_BUILTIN_VINSERTGPRBR, P10V_BUILTIN_VINSERTGPRHR,
9658 P10V_BUILTIN_VINSERTGPRWR, P10V_BUILTIN_VINSERTGPRDR,
9659 P10V_BUILTIN_VINSERTVPRBR, P10V_BUILTIN_VINSERTVPRHR,
9660 P10V_BUILTIN_VINSERTVPRWR, P10V_BUILTIN_VREPLACE_ELT_UV4SI,
9661 P10V_BUILTIN_VREPLACE_ELT_V4SI, P10V_BUILTIN_VREPLACE_ELT_UV2DI,
9662 P10V_BUILTIN_VREPLACE_ELT_V2DI, P10V_BUILTIN_VREPLACE_ELT_V2DF,
9663 P10V_BUILTIN_VREPLACE_UN_UV4SI, P10V_BUILTIN_VREPLACE_UN_V4SI,
9664 P10V_BUILTIN_VREPLACE_UN_V4SF, P10V_BUILTIN_VREPLACE_UN_UV2DI,
9665 P10V_BUILTIN_VREPLACE_UN_V2DI, P10V_BUILTIN_VREPLACE_UN_V2DF,
9666 P10V_BUILTIN_VSLDB_V16QI, P10V_BUILTIN_VSLDB_V16QI,
9667 P10V_BUILTIN_VSLDB_V8HI, P10V_BUILTIN_VSLDB_V4SI,
9668 P10V_BUILTIN_VSLDB_V2DI, P10V_BUILTIN_VXXSPLTIW_V4SI,
9669 P10V_BUILTIN_VXXSPLTIW_V4SF, P10V_BUILTIN_VXXSPLTID,
9670 P10V_BUILTIN_VXXSPLTI32DX_V4SI, P10V_BUILTIN_VXXSPLTI32DX_V4SF,
9671 P10V_BUILTIN_VXXBLEND_V16QI, P10V_BUILTIN_VXXBLEND_V8HI,
9672 P10V_BUILTIN_VXXBLEND_V4SI, P10V_BUILTIN_VXXBLEND_V2DI,
9673 P10V_BUILTIN_VXXBLEND_V4SF, P10V_BUILTIN_VXXBLEND_V2DF,
9674 P10V_BUILTIN_VSRDB_V16QI, P10V_BUILTIN_VSRDB_V8HI,
9675 P10V_BUILTIN_VSRDB_V4SI, P10V_BUILTIN_VSRDB_V2DI,
9676 P10V_BUILTIN_VSTRIBL, P10V_BUILTIN_VSTRIHL,
9677 P10V_BUILTIN_VSTRIBL_P, P10V_BUILTIN_VSTRIHL_P,
9678 P10V_BUILTIN_VSTRIBR, P10V_BUILTIN_VSTRIHR,
9679 P10V_BUILTIN_VSTRIBR_P, P10V_BUILTIN_VSTRIHR_P,
9680 P10V_BUILTIN_MTVSRBM, P10V_BUILTIN_MTVSRHM,
9681 P10V_BUILTIN_MTVSRWM, P10V_BUILTIN_MTVSRDM,
9682 P10V_BUILTIN_MTVSRQM, P10V_BUILTIN_VCNTMBB,
9683 P10V_BUILTIN_VCNTMBH, P10V_BUILTIN_VCNTMBW,
9684 P10V_BUILTIN_VCNTMBD, P10V_BUILTIN_VEXPANDMB,
9685 P10V_BUILTIN_VEXPANDMH, P10V_BUILTIN_VEXPANDMW,
9686 P10V_BUILTIN_VEXPANDMD, P10V_BUILTIN_VEXPANDMQ,
9687 P10V_BUILTIN_VEXTRACTMB, P10V_BUILTIN_VEXTRACTMH,
9688 P10V_BUILTIN_VEXTRACTMW, P10V_BUILTIN_VEXTRACTMD,
9689 P10V_BUILTIN_VEXTRACTMQ, P10V_BUILTIN_XVTLSBB_ZEROS,
9690 P10V_BUILTIN_XVTLSBB_ONES respectively.
9691 * config/rs6000/rs6000-call.c: Ditto above, change P10_BUILTIN_name to
9693 (P10_BUILTIN_XVCVSPBF16, P10_BUILTIN_XVCVBF16SP): Change to
9694 P10V_BUILTIN_XVCVSPBF16, P10V_BUILTIN_XVCVBF16SP respectively.
9696 2020-08-19 Bill Schmidt <wschmidt@linux.ibm.com>
9698 * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
9699 Sibcalls are always legal when the caller doesn't preserve r2.
9701 2020-08-19 Uroš Bizjak <ubizjak@gmail.com>
9703 * config/i386/i386-expand.c (ix86_expand_builtin)
9704 [case IX86_BUILTIN_ENQCMD, case IX86_BUILTIN_ENQCMDS]:
9705 Rewrite expansion to use code_for_enqcmd.
9706 [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]:
9707 Rewrite expansion to use code_for_wrss.
9708 [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
9709 Rewrite expansion to use code_for_wrss.
9711 2020-08-19 Feng Xue <fxue@os.amperecomputing.com>
9713 PR tree-optimization/94234
9714 * match.pd ((PTR_A + OFF) - (PTR_B + OFF)) -> (PTR_A - PTR_B): New
9717 2020-08-19 H.J. Lu <hjl.tools@gmail.com>
9719 * common/config/i386/cpuinfo.h (get_intel_cpu): Detect Rocket
9720 Lake and Alder Lake.
9722 2020-08-19 Peixin Qiao <qiaopeixin@huawei.com>
9724 * config/aarch64/aarch64.c (aarch64_init_cumulative_args): Remove
9725 "fndecl && TREE_PUBLIC (fndecl)" check since it prevents the funtion
9726 type check when calling via a function pointer or when calling a static
9729 2020-08-19 Kewen Lin <linkw@linux.ibm.com>
9731 * opts-global.c (decode_options): Call target_option_override_hook
9732 before it prints for --help=*.
9734 2020-08-18 Peter Bergner <bergner@linux.ibm.com>
9736 * config/rs6000/rs6000-builtin.def (BU_VSX_1): Rename xvcvbf16sp to
9738 * config/rs6000/rs6000-call.c (builtin_function_type): Likewise.
9739 * config/rs6000/vsx.md: Likewise.
9740 * doc/extend.texi: Likewise.
9742 2020-08-18 Aaron Sawdey <acsawdey@linux.ibm.com>
9744 * config/rs6000/rs6000-string.c (gen_lxvl_stxvl_move):
9746 (expand_block_move): Add lxvl/stxvl, vector pair, and
9748 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9749 Default value for -mblock-ops-vector-pair.
9750 * config/rs6000/rs6000.opt: Add -mblock-ops-vector-pair.
9752 2020-08-18 Aldy Hernandez <aldyh@redhat.com>
9754 * vr-values.c (check_for_binary_op_overflow): Change type of store
9756 (vr_values::adjust_range_with_scev): Abstract most of the code...
9757 (range_of_var_in_loop): ...here. Remove value_range_equiv uses.
9758 (simplify_using_ranges::simplify_using_ranges): Change type of store
9760 * vr-values.h (class range_query): New.
9761 (class simplify_using_ranges): Use range_query.
9762 (class vr_values): Add OVERRIDE to get_value_range.
9763 (range_of_var_in_loop): New.
9765 2020-08-18 Martin Sebor <msebor@redhat.com>
9769 * expr.c (convert_to_bytes): Replace statically allocated buffer with
9770 a dynamically allocated one of sufficient size.
9772 2020-08-18 Martin Sebor <msebor@redhat.com>
9774 PR tree-optimization/96670
9776 * gimple-fold.c (gimple_fold_builtin_memchr): Call byte_representation
9777 to get it, not string_constant.
9779 2020-08-18 Hu Jiangping <hujiangping@cn.fujitsu.com>
9781 * doc/gimple.texi (gimple_debug_begin_stmt_p): Add return type.
9782 (gimple_debug_inline_entry_p, gimple_debug_nonbind_marker_p): Likewise.
9784 2020-08-18 Martin Sebor <msebor@redhat.com>
9786 * fold-const.c (native_encode_expr): Update comment.
9788 2020-08-18 Uroš Bizjak <ubizjak@gmail.com>
9791 * config/i386/i386.md (restore_stack_nonlocal): Add missing compare
9792 RTX. Rewrite expander to use high-level functions in RTL construction.
9794 2020-08-18 liuhongt <hongtao.liu@intel.com>
9798 * config/i386/i386-expand.c (ix86_expand_pinsr): Don't use
9800 (ix86_expand_pextr): Don't use pextr for TImode.
9802 2020-08-17 Uroš Bizjak <ubizjak@gmail.com>
9804 * config/i386/i386-builtin.def (__builtin_ia32_bextri_u32)
9805 (__builtin_ia32_bextri_u64): Use CODE_FOR_nothing.
9806 * config/i386/i386.md (@tbm_bextri_<mode>):
9807 Implement as parametrized name pattern.
9808 (@rdrand<mode>): Ditto.
9809 (@rdseed<mode>): Ditto.
9810 * config/i386/i386-expand.c (ix86_expand_builtin)
9811 [case IX86_BUILTIN_BEXTRI32, case IX86_BUILTIN_BEXTRI64]:
9812 Update for parameterized name patterns.
9813 [case IX86_BUILTIN_RDRAND16_STEP, case IX86_BUILTIN_RDRAND32_STEP]
9814 [case IX86_BUILTIN_RDRAND64_STEP]: Ditto.
9815 [case IX86_BUILTIN_RDSEED16_STEP, case IX86_BUILTIN_RDSEED32_STEP]
9816 [case IX86_BUILTIN_RDSEED64_STEP]: Ditto.
9818 2020-08-17 Aldy Hernandez <aldyh@redhat.com>
9820 * vr-values.c (vr_values::get_value_range): Add stmt param.
9821 (vr_values::extract_range_from_comparison): Same.
9822 (vr_values::extract_range_from_assignment): Pass stmt to
9823 extract_range_from_comparison.
9824 (vr_values::adjust_range_with_scev): Pass stmt to get_value_range.
9825 (simplify_using_ranges::vrp_evaluate_conditional): Add stmt param.
9826 Pass stmt to get_value_range.
9827 (simplify_using_ranges::vrp_visit_cond_stmt): Pass stmt to
9829 (simplify_using_ranges::simplify_abs_using_ranges): Same.
9830 (simplify_using_ranges::simplify_div_or_mod_using_ranges): Same.
9831 (simplify_using_ranges::simplify_bit_ops_using_ranges): Same.
9832 (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
9833 (simplify_using_ranges::simplify_switch_using_ranges): Same.
9834 (simplify_using_ranges::simplify_float_conversion_using_ranges): Same.
9835 * vr-values.h (class vr_values): Add stmt arg to
9836 vrp_evaluate_conditional_warnv_with_ops.
9837 Add stmt arg to extract_range_from_comparison and get_value_range.
9838 (simplify_using_ranges::get_value_range): Add stmt arg.
9840 2020-08-17 liuhongt <hongtao.liu@intel.com>
9843 * config/i386/i386.c (ix86_legitimate_constant_p): Return
9844 false for ENDBR immediate.
9845 (ix86_legitimate_address_p): Ditto.
9846 * config/i386/predicates.md
9847 (x86_64_immediate_operand): Exclude ENDBR immediate.
9848 (x86_64_zext_immediate_operand): Ditto.
9849 (x86_64_dwzext_immediate_operand): Ditto.
9850 (ix86_endbr_immediate_operand): New predicate.
9852 2020-08-16 Roger Sayle <roger@nextmovesoftware.com>
9854 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
9855 Simplify (sign_extend:M (truncate:N (lshiftrt:M x C))) to
9856 (ashiftrt:M x C) when the shift sets the high bits appropriately.
9858 2020-08-14 Martin Sebor <msebor@redhat.com>
9861 * builtins.c (expand_builtin_memory_copy_args): Rename called function.
9862 (expand_builtin_stpcpy_1): Remove argument from call.
9863 (expand_builtin_memcmp): Rename called function.
9864 (inline_expand_builtin_bytecmp): Same.
9865 * expr.c (convert_to_bytes): New function.
9866 (constant_byte_string): New function (formerly string_constant).
9867 (string_constant): Call constant_byte_string.
9868 (byte_representation): New function.
9869 * expr.h (byte_representation): Declare.
9870 * fold-const-call.c (fold_const_call): Rename called function.
9871 * fold-const.c (c_getstr): Remove an argument.
9872 (getbyterep): Define a new function.
9873 * fold-const.h (c_getstr): Remove an argument.
9874 (getbyterep): Declare a new function.
9875 * gimple-fold.c (gimple_fold_builtin_memory_op): Rename callee.
9876 (gimple_fold_builtin_string_compare): Same.
9877 (gimple_fold_builtin_memchr): Same.
9879 2020-08-14 David Malcolm <dmalcolm@redhat.com>
9881 * doc/analyzer.texi (Overview): Add tip about how to get a
9882 gimple dump if the analyzer ICEs.
9884 2020-08-14 Uroš Bizjak <ubizjak@gmail.com>
9886 * config/i386/i386-builtin.def (__builtin_ia32_llwpcb)
9887 (__builtin_ia32_slwpcb, __builtin_ia32_lwpval32)
9888 (__builtin_ia32_lwpval64, __builtin_ia32_lwpins32)
9889 (__builtin_ia32_lwpins64): Use CODE_FOR_nothing.
9890 * config/i386/i386.md (@lwp_llwpcb<mode>):
9891 Implement as parametrized name pattern.
9892 (@lwp_slwpcb<mode>): Ditto.
9893 (@lwp_lwpval<mode>): Ditto.
9894 (@lwp_lwpins<mode>): Ditto.
9895 * config/i386/i386-expand.c (ix86_expand_special_args_builtin)
9896 [case VOID_FTYPE_UINT_UINT_UINT, case VOID_FTYPE_UINT64_UINT_UINT]
9897 [case UCHAR_FTYPE_UINT_UINT_UINT, case UCHAR_FTYPE_UINT64_UINT_UINT]:
9899 (ix86_expand_builtin)
9900 [ case IX86_BUILTIN_LLWPCB, case IX86_BUILTIN_LLWPCB]:
9901 Update for parameterized name patterns.
9902 [case IX86_BUILTIN_LWPVAL32, case IX86_BUILTIN_LWPVAL64]
9903 [case IX86_BUILTIN_LWPINS32, case IX86_BUILTIN_LWPINS64]: Expand here.
9905 2020-08-14 Lewis Hyatt <lhyatt@gmail.com>
9907 * common.opt: Add new option -fdiagnostics-plain-output.
9908 * doc/invoke.texi: Document it.
9909 * opts-common.c (decode_cmdline_options_to_array): Implement it.
9910 (decode_cmdline_option): Add missing const qualifier to argv.
9912 2020-08-14 Jakub Jelinek <jakub@redhat.com>
9913 Jonathan Wakely <jwakely@redhat.com>
9914 Jonathan Wakely <jwakely@redhat.com>
9916 * system.h: Include type_traits.
9917 * vec.h (vec<T, A, vl_embed>::embedded_size): Use offsetof and asserts
9918 on vec_stdlayout, which is conditionally a vec (for standard layout T)
9919 and otherwise vec_embedded.
9921 2020-08-14 Jojo R <jiejie_rong@c-sky.com>
9923 * config/csky/csky-elf.h (ASM_SPEC): Use mfloat-abi.
9924 * config/csky/csky-linux-elf.h (ASM_SPEC): mfloat-abi.
9926 2020-08-13 David Malcolm <dmalcolm@redhat.com>
9942 * Makefile.in (ANALYZER_OBJS): Add analyzer/region.o,
9943 analyzer/region-model-impl-calls.o,
9944 analyzer/region-model-manager.o,
9945 analyzer/region-model-reachability.o, analyzer/store.o, and
9947 * doc/analyzer.texi: Update for changes to analyzer
9949 * tristate.h (tristate::get_value): New accessor.
9951 2020-08-13 Uroš Bizjak <ubizjak@gmail.com>
9953 * config/i386/i386-builtin.def (CET_NORMAL): Merge to CET BDESC array.
9954 (__builtin_ia32_rddspd, __builtin_ia32_rddspq, __builtin_ia32_incsspd)
9955 (__builtin_ia32_incsspq, __builtin_ia32_wrssd, __builtin_ia32_wrssq)
9956 (__builtin_ia32_wrussd, __builtin_ia32_wrussq): Use CODE_FOR_nothing.
9957 * config/i386/i386-builtins.c: Remove handling of CET_NORMAL builtins.
9958 * config/i386/i386.md (@rdssp<mode>): Implement as parametrized
9959 name pattern. Use SWI48 mode iterator. Introduce input operand
9960 and remove explicit XOR zeroing from insn template.
9961 (@incssp<mode>): Implement as parametrized name pattern.
9962 Use SWI48 mode iterator.
9963 (@wrss<mode>): Ditto.
9964 (@wruss<mode>): Ditto.
9965 (rstorssp): Remove expander. Rename insn pattern from *rstorssp<mode>.
9966 Use DImode memory operand.
9967 (clrssbsy): Remove expander. Rename insn pattern from *clrssbsy<mode>.
9968 Use DImode memory operand.
9969 (save_stack_nonlocal): Update for parametrized name patterns.
9970 Use cleared register as an argument to gen_rddsp.
9971 (restore_stack_nonlocal): Update for parametrized name patterns.
9972 * config/i386/i386-expand.c (ix86_expand_builtin):
9973 [case IX86_BUILTIN_RDSSPD, case IX86_BUILTIN_RDSSPQ]: Expand here.
9974 [case IX86_BUILTIN_INCSSPD, case IX86_BUILTIN_INCSSPQ]: Ditto.
9975 [case IX86_BUILTIN_RSTORSSP, case IX86_BUILTIN_CLRSSBSY]:
9976 Generate DImode memory operand.
9977 [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]
9978 [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
9979 Update for parameterized name patterns.
9981 2020-08-13 Peter Bergner <bergner@linux.ibm.com>
9984 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode): Disallow
9985 MMA types as return values.
9986 (rs6000_function_arg): Disallow MMA types as function arguments.
9988 2020-08-13 Richard Sandiford <richard.sandiford@arm.com>
9991 2020-08-12 Peixin Qiao <qiaopeixin@huawei.com>
9993 * config/aarch64/aarch64.c (aarch64_function_value): Add if
9994 condition to check ag_mode after entering if condition of
9995 aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
9996 set as false by -mgeneral-regs-only, report the diagnostic
9997 information of -mgeneral-regs-only imcompatible with the use
9998 of fp/simd register(s).
10000 2020-08-13 Martin Liska <mliska@suse.cz>
10003 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Mask m_value
10006 2020-08-13 Jakub Jelinek <jakub@redhat.com>
10008 * gimplify.c (gimplify_omp_taskloop_expr): New function.
10009 (gimplify_omp_for): Use it. For OMP_FOR_NON_RECTANGULAR
10010 loops adjust in outer taskloop the var-outer decls.
10011 * omp-expand.c (expand_omp_taskloop_for_inner): Handle non-rectangular
10013 (expand_omp_for): Don't reject non-rectangular taskloop.
10014 * omp-general.c (omp_extract_for_data): Don't assert that
10015 non-rectangular loops have static schedule, instead treat loop->m1
10016 or loop->m2 as if loop->n1 or loop->n2 is non-constant.
10018 2020-08-13 Hongtao Liu <hongtao.liu@intel.com>
10021 * config/i386/sse.md (<avx512>_load<mode>_mask,
10022 <avx512>_load<mode>_mask): Extend to generate blendm
10024 (<avx512>_blendm<mode>, <avx512>_blendm<mode>): Change
10025 define_insn to define_expand.
10027 2020-08-12 Roger Sayle <roger@nextmovesoftware.com>
10028 Uroš Bizjak <ubizjak@gmail.com>
10031 * config/i386/i386.md (peephole2): Only reorder register clearing
10032 instructions to allow use of xor for general registers.
10034 2020-08-12 Martin Liska <mliska@suse.cz>
10037 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Drop value bits
10038 for bits that are unknown.
10039 (ipcp_bits_lattice::set_to_constant): Likewise.
10040 * tree-ssa-ccp.c (get_default_value): Add sanity check that
10041 IPA CP bit info has all bits set to zero in bits that
10044 2020-08-12 Peixin Qiao <qiaopeixin@huawei.com>
10046 * config/aarch64/aarch64.c (aarch64_function_value): Add if
10047 condition to check ag_mode after entering if condition of
10048 aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
10049 set as false by -mgeneral-regs-only, report the diagnostic
10050 information of -mgeneral-regs-only imcompatible with the use
10051 of fp/simd register(s).
10053 2020-08-12 Jakub Jelinek <jakub@redhat.com>
10055 PR tree-optimization/96535
10056 * toplev.c (process_options): Move flag_unroll_loops and
10057 flag_cunroll_grow_size handling from here to ...
10058 * opts.c (finish_options): ... here. For flag_cunroll_grow_size,
10059 don't check for AUTODETECT_VALUE, but instead check
10060 opts_set->x_flag_cunroll_grow_size.
10061 * common.opt (funroll-completely-grow-size): Default to 0.
10062 * config/rs6000/rs6000.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
10064 (rs6000_override_options_after_change): New function.
10065 (rs6000_option_override_internal): Call it. Move there the
10066 flag_cunroll_grow_size, unroll_only_small_loops and
10067 flag_rename_registers handling.
10069 2020-08-12 Tom de Vries <tdevries@suse.de>
10071 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Make elt_size an
10072 unsigned HOST_WIDE_INT. Print init_frag.remaining using
10073 HOST_WIDE_INT_PRINT_UNSIGNED.
10075 2020-08-12 Roger Sayle <roger@nextmovesoftware.com>
10076 Uroš Bizjak <ubizjak@gmail.com>
10078 * config/i386/i386.md (peephole2): Reduce unnecessary
10079 register shuffling produced by register allocation.
10081 2020-08-12 Aldy Hernandez <aldyh@redhat.com>
10083 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use vec<>
10084 instead of std::vector<>.
10085 (evaluate_properties_for_edge): Same.
10086 (ipa_fn_summary_t::duplicate): Same.
10087 (estimate_ipcp_clone_size_and_time): Same.
10088 * vec.h (<T, A, vl_embed>::embedded_size): Change vec_embedded
10089 type to contain a char[].
10091 2020-08-12 Andreas Krebbel <krebbel@linux.ibm.com>
10094 * config/s390/s390.c (s390_cannot_force_const_mem): Reject an
10095 unary minus for everything not being a numeric constant.
10096 (legitimize_tls_address): Move a NEG out of the CONST rtx.
10098 2020-08-12 Andreas Krebbel <krebbel@linux.ibm.com>
10101 * config/s390/s390.h (TARGET_NONSIGNALING_VECTOR_COMPARE_OK): New
10103 * config/s390/vector.md (vcond_comparison_operator): Use new macro
10106 2020-08-11 Jakub Jelinek <jakub@redhat.com>
10108 PR rtl-optimization/96539
10109 * expr.c (emit_block_move_hints): Don't copy anything if x and y
10110 are the same and neither is MEM_VOLATILE_P.
10112 2020-08-11 Jakub Jelinek <jakub@redhat.com>
10115 * tree.c (get_narrower): Use TREE_TYPE (ret) instead of
10116 TREE_TYPE (win) for COMPOUND_EXPRs.
10118 2020-08-11 Jan Hubicka <hubicka@ucw.cz>
10120 * predict.c (not_loop_guard_equal_edge_p): New function.
10121 (maybe_predict_edge): New function.
10122 (predict_paths_for_bb): Use it.
10123 (predict_paths_leading_to_edge): Use it.
10125 2020-08-11 Martin Liska <mliska@suse.cz>
10127 * dbgcnt.def (DEBUG_COUNTER): Add ipa_cp_bits.
10128 * ipa-cp.c (ipcp_store_bits_results): Use it when we store known
10129 bits for parameters.
10131 2020-08-10 Marek Polacek <polacek@redhat.com>
10133 * doc/sourcebuild.texi: Document dg-ice.
10135 2020-08-10 Roger Sayle <roger@nextmovesoftware.com>
10137 * config/i386/i386-expand.c (ix86_expand_int_movcc): Expand
10138 signed MIN_EXPR against zero as "x < 0 ? x : 0" instead of
10139 "x <= 0 ? x : 0" to enable sign_bit_compare_p optimizations.
10141 2020-08-10 Aldy Hernandez <aldyh@redhat.com>
10143 * value-range.h (gt_ggc_mx): Declare inline.
10146 2020-08-10 Marc Glisse <marc.glisse@inria.fr>
10148 PR tree-optimization/95433
10149 * match.pd (X * C1 == C2): Handle wrapping overflow.
10150 * expr.c (maybe_optimize_mod_cmp): Qualify call to mod_inv.
10152 * wide-int.cc (mod_inv): ... here.
10153 * wide-int.h (mod_inv): Declare it.
10155 2020-08-10 Jan Hubicka <hubicka@ucw.cz>
10157 * predict.c (filter_predictions): Document semantics of filter.
10158 (equal_edge_p): Rename to ...
10159 (not_equal_edge_p): ... this; reverse semantics.
10160 (remove_predictions_associated_with_edge): Fix.
10162 2020-08-10 Hongtao Liu <hongtao.liu@intel.com>
10165 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Refine for
10167 (ix86_expand_mask_vec_cmp): Change prototype.
10168 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): Change prototype.
10169 * config/i386/i386.c (ix86_print_operand): Remove operand
10171 * config/i386/sse.md
10172 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>): Deleted.
10173 (*<avx512>_cmp<mode>3<mask_scalar_merge_name>): Ditto.
10174 (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
10175 (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10176 avx512f_maskcmp<mode>3): Ditto.
10178 2020-08-09 Roger Sayle <roger@nextmovesoftware.com>
10180 * expmed.c (init_expmed_one_conv): Restore all->reg's mode.
10181 (init_expmed_one_mode): Set all->reg to desired mode.
10183 2020-08-08 Peter Bergner <bergner@linux.ibm.com>
10186 * config/rs6000/rs6000.c (rs6000_invalid_conversion): Use canonical
10187 types for type comparisons. Refactor code to simplify it.
10189 2020-08-08 Jakub Jelinek <jakub@redhat.com>
10192 * tree-nested.c (convert_nonlocal_omp_clauses): For
10193 OMP_CLAUSE_REDUCTION, OMP_CLAUSE_LASTPRIVATE and OMP_CLAUSE_LINEAR
10194 save info->new_local_var_chain around walks of the clause gimple
10195 sequences and declare_vars if needed into the sequence.
10197 2020-08-08 Jakub Jelinek <jakub@redhat.com>
10199 PR tree-optimization/96424
10200 * omp-expand.c: Include tree-eh.h.
10201 (expand_omp_for_init_vars): Handle -fexceptions -fnon-call-exceptions
10202 by forcing floating point comparison into a bool temporary.
10204 2020-08-07 Marc Glisse <marc.glisse@inria.fr>
10206 * generic-match-head.c (optimize_vectors_before_lowering_p): New
10208 * gimple-match-head.c (optimize_vectors_before_lowering_p):
10210 * match.pd ((v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): Use it.
10212 2020-08-07 Richard Biener <rguenther@suse.de>
10214 PR tree-optimization/96514
10215 * tree-if-conv.c (if_convertible_bb_p): If the last stmt
10216 is a call that is control-altering, fail.
10218 2020-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
10220 * config/bpf/bpf.md: Remove trailing whitespaces.
10221 * config/bpf/constraints.md: Likewise.
10222 * config/bpf/predicates.md: Likewise.
10224 2020-08-07 Michael Meissner <meissner@linux.ibm.com>
10226 * config/rs6000/rs6000.md (bswaphi2_reg): Add ISA 3.1 support.
10227 (bswapsi2_reg): Add ISA 3.1 support.
10228 (bswapdi2): Rename bswapdi2_xxbrd to bswapdi2_brd.
10229 (bswapdi2_brd,bswapdi2_xxbrd): Rename. Add ISA 3.1 support.
10231 2020-08-07 Alan Modra <amodra@gmail.com>
10234 * config/rs6000/predicates.md (current_file_function_operand): Don't
10235 accept functions that differ in r2 usage.
10237 2020-08-06 Hans-Peter Nilsson <hp@bitrange.com>
10239 * config/mmix/mmix.md (MM): New mode_iterator.
10240 ("mov<mode>"): New expander to expand for all MM-modes.
10241 ("*movqi_expanded", "*movhi_expanded", "*movsi_expanded")
10242 ("*movsf_expanded", "*movdf_expanded"): Rename from the
10243 corresponding mov<M> named pattern. Add to the condition that
10244 either operand must be a register_operand.
10245 ("*movdi_expanded"): Similar, but also allow STCO in the condition.
10247 2020-08-06 Richard Sandiford <richard.sandiford@arm.com>
10250 * config/arm/arm.md (arm_stack_protect_test_insn): Zero out
10251 operand 2 after use.
10252 * config/arm/thumb1.md (thumb1_stack_protect_test_insn): Likewise.
10254 2020-08-06 Peter Bergner <bergner@linux.ibm.com>
10257 * config/rs6000/mma.md (*movpxi): Add xxsetaccz generation.
10258 Disable split for zero constant source operand.
10259 (mma_xxsetaccz): Change to define_expand. Call gen_movpxi.
10261 2020-08-06 Jakub Jelinek <jakub@redhat.com>
10263 PR tree-optimization/96480
10264 * tree-ssa-reassoc.c (suitable_cond_bb): Add TEST_SWAPPED_P argument.
10265 If TEST_BB ends in cond and has one edge to *OTHER_BB and another
10266 through an empty bb to that block too, if PHI args don't match, retry
10267 them through the other path from TEST_BB.
10268 (maybe_optimize_range_tests): Adjust callers. Handle such LAST_BB
10269 through inversion of the condition.
10271 2020-08-06 Jose E. Marchesi <jose.marchesi@oracle.com>
10273 * config/bpf/bpf-helpers.h (KERNEL_HELPER): Define.
10274 (KERNEL_VERSION): Remove.
10275 * config/bpf/bpf-helpers.def: Delete.
10276 * config/bpf/bpf.c (bpf_handle_fndecl_attribute): New function.
10277 (bpf_attribute_table): Define.
10278 (bpf_helper_names): Delete.
10279 (bpf_helper_code): Likewise.
10280 (enum bpf_builtins): Adjust to new helpers mechanism.
10281 (bpf_output_call): Likewise.
10282 (bpf_init_builtins): Likewise.
10283 (bpf_init_builtins): Likewise.
10284 * doc/extend.texi (BPF Function Attributes): New section.
10285 (BPF Kernel Helpers): Delete section.
10287 2020-08-06 Richard Biener <rguenther@suse.de>
10289 PR tree-optimization/96491
10290 * tree-ssa-sink.c (sink_common_stores_to_bb): Avoid
10291 sinking across abnormal edges.
10293 2020-08-06 Richard Biener <rguenther@suse.de>
10295 PR tree-optimization/96483
10296 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
10299 2020-08-06 Richard Biener <rguenther@suse.de>
10301 * graphite-isl-ast-to-gimple.c (ivs_params): Use hash_map instead
10303 (ivs_params_clear): Adjust.
10304 (gcc_expression_from_isl_ast_expr_id): Likewise.
10305 (graphite_create_new_loop): Likewise.
10306 (add_parameters_to_ivs_params): Likewise.
10308 2020-08-06 Roger Sayle <roger@nextmovesoftware.com>
10309 Uroš Bizjak <ubizjak@gmail.com>
10311 * config/i386/i386.md (MAXMIN_IMODE): No longer needed.
10312 (<maxmin><mode>3): Support SWI248 and general_operand for
10313 second operand, when TARGET_CMOVE.
10314 (<maxmin><mode>3_1 splitter): Optimize comparisons against
10315 0, 1 and -1 to use "test" instead of "cmp".
10316 (*<maxmin>di3_doubleword): Likewise, allow general_operand
10317 and enable on TARGET_CMOVE.
10318 (peephole2): Convert clearing a register after a flag setting
10319 instruction into an xor followed by the original flag setter.
10321 2020-08-06 Gerald Pfeifer <gerald@pfeifer.com>
10323 * ipa-fnsummary.c (INCLUDE_VECTOR): Define.
10324 Remove direct inclusion of <vector>.
10326 2020-08-06 Kewen Lin <linkw@gcc.gnu.org>
10328 * config/rs6000/rs6000.c (rs6000_adjust_vect_cost_per_loop): New
10330 (rs6000_finish_cost): Call rs6000_adjust_vect_cost_per_loop.
10331 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Add cost
10332 modeling for vector with length.
10333 (vect_rgroup_iv_might_wrap_p): New function, factored out from...
10334 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): ...this.
10335 Update function comment.
10336 * tree-vect-stmts.c (vect_gen_len): Update function comment.
10337 * tree-vectorizer.h (vect_rgroup_iv_might_wrap_p): New declare.
10339 2020-08-06 Kewen Lin <linkw@linux.ibm.com>
10341 * tree-vectorizer.c (try_vectorize_loop_1): Skip the epilogue loops
10344 2020-08-05 Marc Glisse <marc.glisse@inria.fr>
10346 PR tree-optimization/95906
10348 * match.pd ((c ? a : b) op d, (c ? a : b) op (c ? d : e),
10349 (v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): New transformations.
10350 (op (c ? a : b)): Update to match the new transformations.
10352 2020-08-05 Richard Sandiford <richard.sandiford@arm.com>
10355 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Set the
10356 CC register directly, instead of a GPR. Replace the original GPR
10357 destination with an extra scratch register. Zero out operand 3
10359 (stack_protect_test): Update accordingly.
10361 2020-08-05 Richard Sandiford <richard.sandiford@arm.com>
10363 * config/aarch64/aarch64.md (load_pair_sw_<SX:mode><SX2:mode>)
10364 (load_pair_dw_<DX:mode><DX2:mode>, load_pair_dw_tftf)
10365 (store_pair_sw_<SX:mode><SX2:mode>)
10366 (store_pair_dw_<DX:mode><DX2:mode>, store_pair_dw_tftf)
10367 (*load_pair_extendsidi2_aarch64)
10368 (*load_pair_zero_extendsidi2_aarch64): Use %z for the memory operand.
10369 * config/aarch64/aarch64-simd.md (load_pair<DREG:mode><DREG2:mode>)
10370 (vec_store_pair<DREG:mode><DREG2:mode>, load_pair<VQ:mode><VQ2:mode>)
10371 (vec_store_pair<VQ:mode><VQ2:mode>): Likewise.
10373 2020-08-05 Richard Biener <rguenther@suse.de>
10375 * tree-ssa-loop-im.c (invariantness_dom_walker): Remove.
10376 (invariantness_dom_walker::before_dom_children): Move to ...
10377 (compute_invariantness): ... this function.
10378 (move_computations): Inline ...
10379 (tree_ssa_lim): ... here, share RPO order and avoid some
10381 (analyze_memory_references): Remove sorting of location
10382 lists, instead assert they are sorted already when checking.
10383 (prev_flag_edges): Remove.
10384 (execute_sm_if_changed): Pass down and adjust prev edge state.
10385 (execute_sm_exit): Likewise.
10386 (hoist_memory_references): Likewise. Commit edge insertions
10387 of each processed exit.
10388 (store_motion_loop): Do not commit edge insertions on all
10389 edges in the function.
10390 (tree_ssa_lim_initialize): Do not call alloc_aux_for_edges.
10391 (tree_ssa_lim_finalize): Do not call free_aux_for_edges.
10393 2020-08-05 Richard Biener <rguenther@suse.de>
10395 * genmatch.c (fail_label): New global.
10396 (expr::gen_transform): Branch to fail_label instead of
10397 returning. Fix indent of call argument checking.
10398 (dt_simplify::gen_1): Compute and emit fail_label, branch
10399 to it instead of returning early.
10401 2020-08-05 Jakub Jelinek <jakub@redhat.com>
10403 * omp-expand.c (expand_omp_for): Don't disallow combined non-rectangular
10406 2020-08-05 Jakub Jelinek <jakub@redhat.com>
10408 PR middle-end/96459
10409 * omp-low.c (lower_omp_taskreg): Call lower_reduction_clauses even in
10412 2020-08-05 Jakub Jelinek <jakub@redhat.com>
10414 * omp-expand.c (expand_omp_for_init_counts): Remember
10415 first_inner_iterations, factor and n1o from the number of iterations
10416 computation in *fd.
10417 (expand_omp_for_init_vars): Use more efficient logical iteration number
10418 to actual iterator values computation even for non-rectangular loops
10419 where number of loop iterations could not be computed at compile time.
10421 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10423 * config/rs6000/altivec.h (vec_blendv, vec_permx): Add define.
10424 * config/rs6000/altivec.md (UNSPEC_XXBLEND, UNSPEC_XXPERMX.): New
10426 (VM3): New define_mode.
10427 (VM3_char): New define_attr.
10428 (xxblend_<mode> mode VM3): New define_insn.
10429 (xxpermx): New define_expand.
10430 (xxpermx_inst): New define_insn.
10431 * config/rs6000/rs6000-builtin.def (VXXBLEND_V16QI, VXXBLEND_V8HI,
10432 VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): New
10433 BU_P10V_3 definitions.
10434 (XXBLEND): New BU_P10_OVERLOAD_3 definition.
10435 (XXPERMX): New BU_P10_OVERLOAD_4 definition.
10436 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10437 (P10_BUILTIN_VXXPERMX): Add if statement.
10438 * config/rs6000/rs6000-call.c (P10_BUILTIN_VXXBLEND_V16QI,
10439 P10_BUILTIN_VXXBLEND_V8HI, P10_BUILTIN_VXXBLEND_V4SI,
10440 P10_BUILTIN_VXXBLEND_V2DI, P10_BUILTIN_VXXBLEND_V4SF,
10441 P10_BUILTIN_VXXBLEND_V2DF, P10_BUILTIN_VXXPERMX): Define
10442 overloaded arguments.
10443 (rs6000_expand_quaternop_builtin): Add if case for CODE_FOR_xxpermx.
10444 (builtin_quaternary_function_type): Add v16uqi_type and xxpermx_type
10445 variables, add case statement for P10_BUILTIN_VXXPERMX.
10446 (builtin_function_type): Add case statements for
10447 P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
10448 P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI.
10449 * doc/extend.texi: Add documentation for vec_blendv and vec_permx.
10451 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10453 * config/rs6000/altivec.h (vec_splati, vec_splatid, vec_splati_ins):
10455 * config/rs6000/altivec.md (UNSPEC_XXSPLTIW, UNSPEC_XXSPLTID,
10456 UNSPEC_XXSPLTI32DX): New.
10457 (vxxspltiw_v4si, vxxspltiw_v4sf_inst, vxxspltidp_v2df_inst,
10458 vxxsplti32dx_v4si_inst, vxxsplti32dx_v4sf_inst): New define_insn.
10459 (vxxspltiw_v4sf, vxxspltidp_v2df, vxxsplti32dx_v4si,
10460 vxxsplti32dx_v4sf.): New define_expands.
10461 * config/rs6000/predicates.md (u1bit_cint_operand,
10462 s32bit_cint_operand, c32bit_cint_operand): New predicates.
10463 * config/rs6000/rs6000-builtin.def (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF,
10464 VXXSPLTID): New definitions.
10465 (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF): New BU_P10V_3
10467 (XXSPLTIW, XXSPLTID): New definitions.
10468 (XXSPLTI32DX): Add definitions.
10469 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XXSPLTIW,
10470 P10_BUILTIN_VEC_XXSPLTID, P10_BUILTIN_VEC_XXSPLTI32DX):
10472 * config/rs6000/rs6000-protos.h (rs6000_constF32toI32): New extern
10474 * config/rs6000/rs6000.c (rs6000_constF32toI32): New function.
10475 * doc/extend.texi: Add documentation for vec_splati,
10476 vec_splatid, and vec_splati_ins.
10478 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10480 * config/rs6000/altivec.h (vec_sldb, vec_srdb): New defines.
10481 * config/rs6000/altivec.md (UNSPEC_SLDB, UNSPEC_SRDB): New.
10482 (SLDB_lr): New attribute.
10483 (VSHIFT_DBL_LR): New iterator.
10484 (vs<SLDB_lr>db_<mode>): New define_insn.
10485 * config/rs6000/rs6000-builtin.def (VSLDB_V16QI, VSLDB_V8HI,
10486 VSLDB_V4SI, VSLDB_V2DI, VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI,
10487 VSRDB_V2DI): New BU_P10V_3 definitions.
10488 (SLDB, SRDB): New BU_P10_OVERLOAD_3 definitions.
10489 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_SLDB,
10490 P10_BUILTIN_VEC_SRDB): New definitions.
10491 (rs6000_expand_ternop_builtin) [CODE_FOR_vsldb_v16qi,
10492 CODE_FOR_vsldb_v8hi, CODE_FOR_vsldb_v4si, CODE_FOR_vsldb_v2di,
10493 CODE_FOR_vsrdb_v16qi, CODE_FOR_vsrdb_v8hi, CODE_FOR_vsrdb_v4si,
10494 CODE_FOR_vsrdb_v2di]: Add clauses.
10495 * doc/extend.texi: Add description for vec_sldb and vec_srdb.
10497 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10499 * config/rs6000/altivec.h: Add define for vec_replace_elt and
10500 vec_replace_unaligned.
10501 * config/rs6000/vsx.md (UNSPEC_REPLACE_ELT, UNSPEC_REPLACE_UN): New
10503 (REPLACE_ELT): New mode iterator.
10504 (REPLACE_ELT_char, REPLACE_ELT_sh, REPLACE_ELT_max): New mode attributes.
10505 (vreplace_un_<mode>, vreplace_elt_<mode>_inst): New.
10506 * config/rs6000/rs6000-builtin.def (VREPLACE_ELT_V4SI,
10507 VREPLACE_ELT_UV4SI, VREPLACE_ELT_V4SF, VREPLACE_ELT_UV2DI,
10508 VREPLACE_ELT_V2DF, VREPLACE_UN_V4SI, VREPLACE_UN_UV4SI,
10509 VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
10510 VREPLACE_UN_V2DF, (REPLACE_ELT, REPLACE_UN, VREPLACE_ELT_V2DI): New builtin
10512 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_REPLACE_ELT,
10513 P10_BUILTIN_VEC_REPLACE_UN): New builtin argument definitions.
10514 (rs6000_expand_quaternop_builtin): Add 3rd argument checks for
10515 CODE_FOR_vreplace_elt_v4si, CODE_FOR_vreplace_elt_v4sf,
10516 CODE_FOR_vreplace_un_v4si, CODE_FOR_vreplace_un_v4sf.
10517 (builtin_function_type) [P10_BUILTIN_VREPLACE_ELT_UV4SI,
10518 P10_BUILTIN_VREPLACE_ELT_UV2DI, P10_BUILTIN_VREPLACE_UN_UV4SI,
10519 P10_BUILTIN_VREPLACE_UN_UV2DI]: New cases.
10520 * doc/extend.texi: Add description for vec_replace_elt and
10521 vec_replace_unaligned builtins.
10523 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10525 * config/rs6000/altivec.h (vec_insertl, vec_inserth): New defines.
10526 * config/rs6000/rs6000-builtin.def (VINSERTGPRBL, VINSERTGPRHL,
10527 VINSERTGPRWL, VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL,
10528 VINSERTGPRBR, VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR,
10529 VINSERTVPRHR, VINSERTVPRWR): New builtins.
10530 (INSERTL, INSERTH): New builtins.
10531 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_INSERTL,
10532 P10_BUILTIN_VEC_INSERTH): New overloaded definitions.
10533 (P10_BUILTIN_VINSERTGPRBL, P10_BUILTIN_VINSERTGPRHL,
10534 P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
10535 P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
10536 P10_BUILTIN_VINSERTVPRWL): Add case entries.
10537 * config/rs6000/vsx.md (define_c_enum): Add UNSPEC_INSERTL,
10539 (define_expand): Add vinsertvl_<mode>, vinsertvr_<mode>,
10540 vinsertgl_<mode>, vinsertgr_<mode>, mode is VI2.
10541 (define_ins): vinsertvl_internal_<mode>, vinsertvr_internal_<mode>,
10542 vinsertgl_internal_<mode>, vinsertgr_internal_<mode>, mode VEC_I.
10543 * doc/extend.texi: Add documentation for vec_insertl, vec_inserth.
10545 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10547 * config/rs6000/altivec.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
10548 (vextractl<mode>, vextractr<mode>)
10549 (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
10551 * config/rs6000/vsx.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
10552 (vextractl<mode>, vextractr<mode>)
10553 (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
10555 * doc/extend.texi: Update documentation for vec_extractl.
10556 Replace builtin name vec_extractr with vec_extracth. Update
10557 description of vec_extracth.
10559 2020-08-04 Jim Wilson <jimw@sifive.com>
10561 * doc/invoke.texi (AArch64 Options): Delete duplicate
10562 -mstack-protector-guard docs.
10564 2020-08-04 Roger Sayle <roger@nextmovesoftware.com>
10566 * config/nvptx/nvptx.md (smulhi3_highpart, smulsi3_highpart)
10567 (umulhi3_highpart, umulsi3_highpart): New instructions.
10569 2020-08-04 Andrew Stubbs <ams@codesourcery.com>
10571 * config/gcn/gcn-run.c (R_AMDGPU_NONE): Delete.
10572 (R_AMDGPU_ABS32_LO): Delete.
10573 (R_AMDGPU_ABS32_HI): Delete.
10574 (R_AMDGPU_ABS64): Delete.
10575 (R_AMDGPU_REL32): Delete.
10576 (R_AMDGPU_REL64): Delete.
10577 (R_AMDGPU_ABS32): Delete.
10578 (R_AMDGPU_GOTPCREL): Delete.
10579 (R_AMDGPU_GOTPCREL32_LO): Delete.
10580 (R_AMDGPU_GOTPCREL32_HI): Delete.
10581 (R_AMDGPU_REL32_LO): Delete.
10582 (R_AMDGPU_REL32_HI): Delete.
10583 (reserved): Delete.
10584 (R_AMDGPU_RELATIVE64): Delete.
10586 2020-08-04 Omar Tahir <omar.tahir@arm.com>
10588 * config/arm/arm-cpus.in (armv8.1-m.main): Tune for Cortex-M55.
10590 2020-08-04 Hu Jiangping <hujiangping@cn.fujitsu.com>
10592 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Delete
10593 redundant extra_cost variable.
10595 2020-08-04 Zhiheng Xie <xiezhiheng@huawei.com>
10597 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
10598 Use FLOAT_MODE_P macro instead of enumerating all floating-point
10599 modes and add global flag FLAG_AUTO_FP.
10601 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10603 * doc/extend.texi (symver): Add @cindex for symver function attribute.
10605 2020-08-04 Marc Glisse <marc.glisse@inria.fr>
10607 PR tree-optimization/95433
10608 * match.pd (X * C1 == C2): New transformation.
10610 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10612 * gimple-ssa-sprintf.c (get_int_range): Adjust for irange API.
10613 (format_integer): Same.
10614 (handle_printf_call): Same.
10616 2020-08-04 Andrew Stubbs <ams@codesourcery.com>
10618 * config/gcn/gcn.md ("<expander>ti3"): New.
10620 2020-08-04 Richard Biener <rguenther@suse.de>
10622 PR tree-optimization/88240
10623 * tree-ssa-sccvn.h (vn_reference_s::punned): New flag.
10624 * tree-ssa-sccvn.c (vn_reference_insert): Initialize punned.
10625 (vn_reference_insert_pieces): Likewise.
10626 (visit_reference_op_call): Likewise.
10627 (visit_reference_op_load): Track whether a ref was punned.
10628 * tree-ssa-pre.c (do_hoist_insertion): Refuse to perform hoist
10629 insertion on punned floating point loads.
10631 2020-08-04 Sudakshina Das <sudi.das@arm.com>
10633 * config/aarch64/aarch64.c (aarch64_gen_store_pair): Add case
10635 (aarch64_gen_load_pair): Likewise.
10636 (aarch64_copy_one_block_and_progress_pointers): Handle 256 bit copy.
10637 (aarch64_expand_cpymem): Expand copy_limit to 256bits where
10640 2020-08-04 Andrea Corallo <andrea.corallo@arm.com>
10642 * config/aarch64/aarch64.md (aarch64_fjcvtzs): Add missing
10644 * doc/sourcebuild.texi (aarch64_fjcvtzs_hw) Document new
10645 target supports option.
10647 2020-08-04 Tom de Vries <tdevries@suse.de>
10650 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Handle V2SI/V2DI.
10652 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10654 PR middle-end/96426
10655 * tree-vect-generic.c (expand_vector_conversion): Replace .VEC_CONVERT
10656 call with GIMPLE_NOP if there is no lhs.
10658 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10661 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Add IS_DEBUG
10662 argument. Return false instead of gcc_unreachable if it is true and
10663 get_addr_base_and_unit_offset returns NULL.
10664 (fold_stmt_1) <case GIMPLE_DEBUG>: Adjust caller.
10666 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10668 * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional):
10669 Call is_gimple_min_invariant dropped from previous patch.
10671 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10673 * omp-expand.c (expand_omp_for_init_counts): For triangular loops
10674 compute number of iterations at runtime more efficiently.
10675 (expand_omp_for_init_vars): Adjust immediate dominators.
10676 (extract_omp_for_update_vars): Likewise.
10678 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10680 * vr-values.c (simplify_using_ranges::two_valued_val_range_p):
10683 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10685 * vr-values.c (simplify_conversion_using_ranges): Convert to irange API.
10687 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10689 * vr-values.c (test_for_singularity): Use irange API.
10690 (simplify_using_ranges::simplify_cond_using_ranges_1): Do not
10691 special case VR_RANGE.
10693 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10695 * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional): Adjust
10698 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10700 * vr-values.c (simplify_using_ranges::op_with_boolean_value_range_p): Adjust
10703 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10705 * tree-ssanames.c (get_range_info): Use irange instead of value_range.
10706 * tree-ssanames.h (get_range_info): Same.
10708 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10710 * fold-const.c (expr_not_equal_to): Adjust for irange API.
10712 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10714 * builtins.c (determine_block_size): Remove ad-hoc range canonicalization.
10716 2020-08-04 Xionghu Luo <luoxhu@linux.ibm.com>
10718 PR rtl-optimization/71309
10719 * dse.c (find_shift_sequence): Use subreg of shifted from high part
10720 register to avoid loading from address.
10722 2020-08-03 Jonathan Wakely <jwakely@redhat.com>
10724 * doc/cpp.texi (Variadic Macros): Use the exact ... token in
10727 2020-08-03 Nathan Sidwell <nathan@acm.org>
10729 * doc/invoke.texi: Refer to c++20
10731 2020-08-03 Julian Brown <julian@codesourcery.com>
10732 Thomas Schwinge <thomas@codesourcery.com>
10734 * gimplify.c (gimplify_omp_target_update): Allow GOMP_MAP_TO_PSET
10735 without a preceding data-movement mapping.
10737 2020-08-03 Iain Sandoe <iain@sandoe.co.uk>
10739 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): UNDEF before
10741 (DEF_MIN_OSX_VERSION): Only define if there's no existing
10744 2020-08-03 Iain Sandoe <iain@sandoe.co.uk>
10746 * config/darwin.c (IN_TARGET_CODE): Remove.
10747 (darwin_mergeable_constant_section): Handle poly-int machine modes.
10748 (machopic_select_rtx_section): Likewise.
10750 2020-08-03 Aldy Hernandez <aldyh@redhat.com>
10752 PR tree-optimization/96430
10753 * range-op.cc (operator_tests): Do not shift by 31 on targets with
10754 integer's smaller than 32 bits.
10756 2020-08-03 Martin Jambor <mjambor@suse.cz>
10758 * hsa-brig-format.h: Moved to brig/brigfrontend.
10759 * hsa-brig.c: Removed.
10760 * hsa-builtins.def: Likewise.
10761 * hsa-common.c: Likewise.
10762 * hsa-common.h: Likewise.
10763 * hsa-dump.c: Likewise.
10764 * hsa-gen.c: Likewise.
10765 * hsa-regalloc.c: Likewise.
10766 * ipa-hsa.c: Likewise.
10767 * omp-grid.c: Likewise.
10768 * omp-grid.h: Likewise.
10769 * Makefile.in (BUILTINS_DEF): Remove hsa-builtins.def.
10770 (OBJS): Remove hsa-common.o, hsa-gen.o, hsa-regalloc.o, hsa-brig.o,
10771 hsa-dump.o, ipa-hsa.c and omp-grid.o.
10772 (GTFILES): Removed hsa-common.c and omp-expand.c.
10773 * builtins.def: Remove processing of hsa-builtins.def.
10774 (DEF_HSA_BUILTIN): Remove.
10775 * common.opt (flag_disable_hsa): Remove.
10777 * config.in (ENABLE_HSA): Removed.
10778 * configure.ac: Removed handling configuration for hsa offloading.
10779 (ENABLE_HSA): Removed.
10780 * configure: Regenerated.
10781 * doc/install.texi (--enable-offload-targets): Remove hsa from the
10783 (--with-hsa-runtime): Reword to reference any HSA run-time, not
10784 specifically HSA offloading.
10785 * doc/invoke.texi (Option Summary): Remove -Whsa.
10786 (Warning Options): Likewise.
10787 (Optimize Options): Remove hsa-gen-debug-stores.
10788 * doc/passes.texi (Regular IPA passes): Remove section on IPA HSA
10790 * gimple-low.c (lower_stmt): Remove GIMPLE_OMP_GRID_BODY case.
10791 * gimple-pretty-print.c (dump_gimple_omp_for): Likewise.
10792 (dump_gimple_omp_block): Likewise.
10793 (pp_gimple_stmt_1): Likewise.
10794 * gimple-walk.c (walk_gimple_stmt): Likewise.
10795 * gimple.c (gimple_build_omp_grid_body): Removed function.
10796 (gimple_copy): Remove GIMPLE_OMP_GRID_BODY case.
10797 * gimple.def (GIMPLE_OMP_GRID_BODY): Removed.
10798 * gimple.h (gf_mask): Removed GF_OMP_PARALLEL_GRID_PHONY,
10799 OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY,
10800 GF_OMP_FOR_GRID_INTRA_GROUP, GF_OMP_FOR_GRID_GROUP_ITER and
10801 GF_OMP_TEAMS_GRID_PHONY. Renumbered GF_OMP_FOR_KIND_SIMD and
10803 (gimple_build_omp_grid_body): Removed declaration.
10804 (gimple_has_substatements): Remove GIMPLE_OMP_GRID_BODY case.
10805 (gimple_omp_for_grid_phony): Removed.
10806 (gimple_omp_for_set_grid_phony): Likewise.
10807 (gimple_omp_for_grid_intra_group): Likewise.
10808 (gimple_omp_for_grid_intra_group): Likewise.
10809 (gimple_omp_for_grid_group_iter): Likewise.
10810 (gimple_omp_for_set_grid_group_iter): Likewise.
10811 (gimple_omp_parallel_grid_phony): Likewise.
10812 (gimple_omp_parallel_set_grid_phony): Likewise.
10813 (gimple_omp_teams_grid_phony): Likewise.
10814 (gimple_omp_teams_set_grid_phony): Likewise.
10815 (CASE_GIMPLE_OMP): Remove GIMPLE_OMP_GRID_BODY case.
10816 * lto-section-in.c (lto_section_name): Removed hsa.
10817 * lto-streamer.h (lto_section_type): Removed LTO_section_ipa_hsa.
10818 * lto-wrapper.c (compile_images_for_offload_targets): Remove special
10820 * omp-expand.c: Do not include hsa-common.h and gt-omp-expand.h.
10821 (parallel_needs_hsa_kernel_p): Removed.
10822 (grid_launch_attributes_trees): Likewise.
10823 (grid_launch_attributes_trees): Likewise.
10824 (grid_create_kernel_launch_attr_types): Likewise.
10825 (grid_insert_store_range_dim): Likewise.
10826 (grid_get_kernel_launch_attributes): Likewise.
10827 (get_target_arguments): Remove code passing HSA grid sizes.
10828 (grid_expand_omp_for_loop): Remove.
10829 (grid_arg_decl_map): Likewise.
10830 (grid_remap_kernel_arg_accesses): Likewise.
10831 (grid_expand_target_grid_body): Likewise.
10832 (expand_omp): Remove call to grid_expand_target_grid_body.
10833 (omp_make_gimple_edges): Remove GIMPLE_OMP_GRID_BODY case.
10834 * omp-general.c: Do not include hsa-common.h.
10835 (omp_maybe_offloaded): Do not check for HSA offloading.
10836 (omp_context_selector_matches): Likewise.
10837 * omp-low.c: Do not include hsa-common.h and omp-grid.h.
10838 (build_outer_var_ref): Remove handling of GIMPLE_OMP_GRID_BODY.
10839 (scan_sharing_clauses): Remove handling of OMP_CLAUSE__GRIDDIM_.
10840 (scan_omp_parallel): Remove handling of the phoney variant.
10841 (check_omp_nesting_restrictions): Remove handling of
10842 GIMPLE_OMP_GRID_BODY and GF_OMP_FOR_KIND_GRID_LOOP.
10843 (scan_omp_1_stmt): Remove handling of GIMPLE_OMP_GRID_BODY.
10844 (lower_omp_for_lastprivate): Remove handling of gridified loops.
10845 (lower_omp_for): Remove phony loop handling.
10846 (lower_omp_taskreg): Remove phony construct handling.
10847 (lower_omp_teams): Likewise.
10848 (lower_omp_grid_body): Removed.
10849 (lower_omp_1): Remove GIMPLE_OMP_GRID_BODY case.
10850 (execute_lower_omp): Do not call omp_grid_gridify_all_targets.
10851 * opts.c (common_handle_option): Do not handle hsa when processing
10853 * params.opt (hsa-gen-debug-stores): Remove.
10854 * passes.def: Remove pass_ipa_hsa and pass_gen_hsail.
10855 * timevar.def: Remove TV_IPA_HSA.
10856 * toplev.c: Do not include hsa-common.h.
10857 (compile_file): Do not call hsa_output_brig.
10858 * tree-core.h (enum omp_clause_code): Remove OMP_CLAUSE__GRIDDIM_.
10859 (tree_omp_clause): Remove union field dimension.
10860 * tree-nested.c (convert_nonlocal_omp_clauses): Remove the
10861 OMP_CLAUSE__GRIDDIM_ case.
10862 (convert_local_omp_clauses): Likewise.
10863 * tree-pass.h (make_pass_gen_hsail): Remove declaration.
10864 (make_pass_ipa_hsa): Likewise.
10865 * tree-pretty-print.c (dump_omp_clause): Remove GIMPLE_OMP_GRID_BODY
10867 * tree.c (omp_clause_num_ops): Remove the element corresponding to
10868 OMP_CLAUSE__GRIDDIM_.
10869 (omp_clause_code_name): Likewise.
10870 (walk_tree_1): Remove GIMPLE_OMP_GRID_BODY case.
10871 * tree.h (OMP_CLAUSE__GRIDDIM__DIMENSION): Remove.
10872 (OMP_CLAUSE__GRIDDIM__SIZE): Likewise.
10873 (OMP_CLAUSE__GRIDDIM__GROUP): Likewise.
10875 2020-08-03 Bu Le <bule1@huawei.com>
10877 * config/aarch64/aarch64-sve.md (sub<mode>3): Add support for
10880 2020-08-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10882 * config/msp430/msp430.h (ASM_SPEC): Don't pass on "-md" option.
10884 2020-08-03 Yunde Zhong <zhongyunde@huawei.com>
10886 PR rtl-optimization/95696
10887 * regrename.c (regrename_analyze): New param include_all_block_p
10888 with default value TRUE. If set to false, avoid disrupting SMS
10890 * regrename.h (regrename_analyze): Adjust prototype.
10892 2020-08-03 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
10894 * doc/tm.texi.in (VECTOR_STORE_FLAG_VALUE): Fix a typo.
10895 * doc/tm.texi: Regenerate.
10897 2020-08-03 Richard Sandiford <richard.sandiford@arm.com>
10899 * doc/invoke.texi: Add missing comma after octeontx2f95mm entry.
10901 2020-08-03 Qian jianhua <qianjh@cn.fujitsu.com>
10903 * config/aarch64/aarch64-cores.def (a64fx): New core.
10904 * config/aarch64/aarch64-tune.md: Regenerated.
10905 * config/aarch64/aarch64.c (a64fx_prefetch_tune, a64fx_tunings): New.
10906 * doc/invoke.texi: Add a64fx to the list.
10908 2020-08-03 Roger Sayle <roger@nextmovesoftware.com>
10910 PR rtl-optimization/61494
10911 * simplify-rtx.c (simplify_binary_operation_1) [MINUS]: Don't
10912 simplify x - 0.0 with -fsignaling-nans.
10914 2020-08-03 Roger Sayle <roger@nextmovesoftware.com>
10916 * genmatch.c (decision_tree::gen): Emit stub functions for
10917 tree code operand counts that have no simplifications.
10918 (main): Correct comment typo.
10920 2020-08-03 Jonathan Wakely <jwakely@redhat.com>
10922 * gimple-ssa-sprintf.c: Fix typos in comments.
10924 2020-08-03 Tamar Christina <tamar.christina@arm.com>
10926 * config/aarch64/driver-aarch64.c (readline): Check return value fgets.
10928 2020-08-03 Richard Biener <rguenther@suse.de>
10930 * doc/match-and-simplify.texi: Amend accordingly.
10932 2020-08-03 Richard Biener <rguenther@suse.de>
10934 * genmatch.c (parser::gimple): New.
10935 (parser::parser): Initialize gimple flag member.
10936 (parser::parse_expr): Error on ! operator modifier when
10937 not targeting GIMPLE.
10938 (main): Pass down gimple flag to parser ctor.
10940 2020-08-03 Aldy Hernandez <aldyh@redhat.com>
10942 * Makefile.in (GTFILES): Move value-range.h up.
10943 * gengtype-lex.l: Set yylval to handle GTY markers on templates.
10944 * ipa-cp.c (initialize_node_lattices): Call value_range
10946 (ipcp_propagate_stage): Use in-place new so value_range construct
10948 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use std
10949 vec instead of GCC's vec<>.
10950 (evaluate_properties_for_edge): Adjust for std vec.
10951 (ipa_fn_summary_t::duplicate): Same.
10952 (estimate_ipcp_clone_size_and_time): Same.
10953 * ipa-prop.c (ipa_get_value_range): Use in-place new for
10955 * ipa-prop.h (struct GTY): Remove class keyword for m_vr.
10956 * range-op.cc (empty_range_check): Rename to...
10957 (empty_range_varying): ...this and adjust for varying.
10958 (undefined_shift_range_check): Adjust for irange.
10959 (range_operator::wi_fold): Same.
10960 (range_operator::fold_range): Adjust for irange. Special case
10961 single pairs for performance.
10962 (range_operator::op1_range): Adjust for irange.
10963 (range_operator::op2_range): Same.
10964 (value_range_from_overflowed_bounds): Same.
10965 (value_range_with_overflow): Same.
10966 (create_possibly_reversed_range): Same.
10967 (range_true): Same.
10968 (range_false): Same.
10969 (range_true_and_false): Same.
10970 (get_bool_state): Adjust for irange and tweak for performance.
10971 (operator_equal::fold_range): Adjust for irange.
10972 (operator_equal::op1_range): Same.
10973 (operator_equal::op2_range): Same.
10974 (operator_not_equal::fold_range): Same.
10975 (operator_not_equal::op1_range): Same.
10976 (operator_not_equal::op2_range): Same.
10981 (operator_lt::fold_range): Same.
10982 (operator_lt::op1_range): Same.
10983 (operator_lt::op2_range): Same.
10984 (operator_le::fold_range): Same.
10985 (operator_le::op1_range): Same.
10986 (operator_le::op2_range): Same.
10987 (operator_gt::fold_range): Same.
10988 (operator_gt::op1_range): Same.
10989 (operator_gt::op2_range): Same.
10990 (operator_ge::fold_range): Same.
10991 (operator_ge::op1_range): Same.
10992 (operator_ge::op2_range): Same.
10993 (operator_plus::wi_fold): Same.
10994 (operator_plus::op1_range): Same.
10995 (operator_plus::op2_range): Same.
10996 (operator_minus::wi_fold): Same.
10997 (operator_minus::op1_range): Same.
10998 (operator_minus::op2_range): Same.
10999 (operator_min::wi_fold): Same.
11000 (operator_max::wi_fold): Same.
11001 (cross_product_operator::wi_cross_product): Same.
11002 (operator_mult::op1_range): New.
11003 (operator_mult::op2_range): New.
11004 (operator_mult::wi_fold): Adjust for irange.
11005 (operator_div::wi_fold): Same.
11006 (operator_exact_divide::op1_range): Same.
11007 (operator_lshift::fold_range): Same.
11008 (operator_lshift::wi_fold): Same.
11009 (operator_lshift::op1_range): New.
11010 (operator_rshift::op1_range): New.
11011 (operator_rshift::fold_range): Adjust for irange.
11012 (operator_rshift::wi_fold): Same.
11013 (operator_cast::truncating_cast_p): Abstract out from
11014 operator_cast::fold_range.
11015 (operator_cast::fold_range): Adjust for irange and tweak for
11017 (operator_cast::inside_domain_p): Abstract out from fold_range.
11018 (operator_cast::fold_pair): Same.
11019 (operator_cast::op1_range): Use abstracted methods above. Adjust
11020 for irange and tweak for performance.
11021 (operator_logical_and::fold_range): Adjust for irange.
11022 (operator_logical_and::op1_range): Same.
11023 (operator_logical_and::op2_range): Same.
11024 (unsigned_singleton_p): New.
11025 (operator_bitwise_and::remove_impossible_ranges): New.
11026 (operator_bitwise_and::fold_range): New.
11027 (wi_optimize_and_or): Adjust for irange.
11028 (operator_bitwise_and::wi_fold): Same.
11029 (set_nonzero_range_from_mask): New.
11030 (operator_bitwise_and::simple_op1_range_solver): New.
11031 (operator_bitwise_and::op1_range): Adjust for irange.
11032 (operator_bitwise_and::op2_range): Same.
11033 (operator_logical_or::fold_range): Same.
11034 (operator_logical_or::op1_range): Same.
11035 (operator_logical_or::op2_range): Same.
11036 (operator_bitwise_or::wi_fold): Same.
11037 (operator_bitwise_or::op1_range): Same.
11038 (operator_bitwise_or::op2_range): Same.
11039 (operator_bitwise_xor::wi_fold): Same.
11040 (operator_bitwise_xor::op1_range): New.
11041 (operator_bitwise_xor::op2_range): New.
11042 (operator_trunc_mod::wi_fold): Adjust for irange.
11043 (operator_logical_not::fold_range): Same.
11044 (operator_logical_not::op1_range): Same.
11045 (operator_bitwise_not::fold_range): Same.
11046 (operator_bitwise_not::op1_range): Same.
11047 (operator_cst::fold_range): Same.
11048 (operator_identity::fold_range): Same.
11049 (operator_identity::op1_range): Same.
11050 (class operator_unknown): New.
11051 (operator_unknown::fold_range): New.
11052 (class operator_abs): Adjust for irange.
11053 (operator_abs::wi_fold): Same.
11054 (operator_abs::op1_range): Same.
11055 (operator_absu::wi_fold): Same.
11056 (class operator_negate): Same.
11057 (operator_negate::fold_range): Same.
11058 (operator_negate::op1_range): Same.
11059 (operator_addr_expr::fold_range): Same.
11060 (operator_addr_expr::op1_range): Same.
11061 (pointer_plus_operator::wi_fold): Same.
11062 (pointer_min_max_operator::wi_fold): Same.
11063 (pointer_and_operator::wi_fold): Same.
11064 (pointer_or_operator::op1_range): New.
11065 (pointer_or_operator::op2_range): New.
11066 (pointer_or_operator::wi_fold): Adjust for irange.
11067 (integral_table::integral_table): Add entries for IMAGPART_EXPR
11068 and POINTER_DIFF_EXPR.
11069 (range_cast): Adjust for irange.
11070 (build_range3): New.
11071 (range3_tests): New.
11072 (widest_irange_tests): New.
11073 (multi_precision_range_tests): New.
11074 (operator_tests): New.
11075 (range_tests): New.
11076 * range-op.h (class range_operator): Adjust for irange.
11077 (range_cast): Same.
11078 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust for irange and
11079 tweak for performance.
11080 (range_fold_binary_expr): Same.
11081 (masked_increment): Change to extern.
11082 * tree-vrp.h (masked_increment): New.
11083 * tree.c (cache_wide_int_in_type_cache): New function abstracted
11084 out from wide_int_to_tree_1.
11085 (wide_int_to_tree_1): Cache 0, 1, and MAX for pointers.
11086 * value-range-equiv.cc (value_range_equiv::deep_copy): Use kind
11088 (value_range_equiv::move): Same.
11089 (value_range_equiv::check): Adjust for irange.
11090 (value_range_equiv::intersect): Same.
11091 (value_range_equiv::union_): Same.
11092 (value_range_equiv::dump): Same.
11093 * value-range.cc (irange::operator=): Same.
11094 (irange::maybe_anti_range): New.
11095 (irange::copy_legacy_range): New.
11096 (irange::set_undefined): Adjust for irange.
11097 (irange::swap_out_of_order_endpoints): Abstract out from set().
11098 (irange::set_varying): Adjust for irange.
11099 (irange::irange_set): New.
11100 (irange::irange_set_anti_range): New.
11101 (irange::set): Adjust for irange.
11102 (value_range::set_nonzero): Move to header file.
11103 (value_range::set_zero): Move to header file.
11104 (value_range::check): Rename to...
11105 (irange::verify_range): ...this.
11106 (value_range::num_pairs): Rename to...
11107 (irange::legacy_num_pairs): ...this, and adjust for irange.
11108 (value_range::lower_bound): Rename to...
11109 (irange::legacy_lower_bound): ...this, and adjust for irange.
11110 (value_range::upper_bound): Rename to...
11111 (irange::legacy_upper_bound): ...this, and adjust for irange.
11112 (value_range::equal_p): Rename to...
11113 (irange::legacy_equal_p): ...this.
11114 (value_range::operator==): Move to header file.
11115 (irange::equal_p): New.
11116 (irange::symbolic_p): Adjust for irange.
11117 (irange::constant_p): Same.
11118 (irange::singleton_p): Same.
11119 (irange::value_inside_range): Same.
11120 (irange::may_contain_p): Same.
11121 (irange::contains_p): Same.
11122 (irange::normalize_addresses): Same.
11123 (irange::normalize_symbolics): Same.
11124 (irange::legacy_intersect): Same.
11125 (irange::legacy_union): Same.
11126 (irange::union_): Same.
11127 (irange::intersect): Same.
11128 (irange::irange_union): New.
11129 (irange::irange_intersect): New.
11130 (subtract_one): New.
11131 (irange::invert): Adjust for irange.
11132 (dump_bound_with_infinite_markers): New.
11133 (irange::dump): Adjust for irange.
11134 (debug): Add irange versions.
11135 (range_has_numeric_bounds_p): Adjust for irange.
11136 (vrp_val_max): Move to header file.
11137 (vrp_val_min): Move to header file.
11138 (DEFINE_INT_RANGE_GC_STUBS): New.
11139 (DEFINE_INT_RANGE_INSTANCE): New.
11140 * value-range.h (class irange): New.
11141 (class int_range): New.
11142 (class value_range): Rename to a instantiation of int_range.
11143 (irange::legacy_mode_p): New.
11144 (value_range::value_range): Remove.
11145 (irange::kind): New.
11146 (irange::num_pairs): Adjust for irange.
11147 (irange::type): Adjust for irange.
11148 (irange::tree_lower_bound): New.
11149 (irange::tree_upper_bound): New.
11150 (irange::type): Adjust for irange.
11151 (irange::min): Same.
11152 (irange::max): Same.
11153 (irange::varying_p): Same.
11154 (irange::undefined_p): Same.
11155 (irange::zero_p): Same.
11156 (irange::nonzero_p): Same.
11157 (irange::supports_type_p): Same.
11158 (range_includes_zero_p): Same.
11161 (irange::irange): New.
11162 (int_range::int_range): New.
11163 (int_range::operator=): New.
11164 (irange::set): Moved from value-range.cc and adjusted for irange.
11165 (irange::set_undefined): Same.
11166 (irange::set_varying): Same.
11167 (irange::operator==): Same.
11168 (irange::lower_bound): Same.
11169 (irange::upper_bound): Same.
11170 (irange::union_): Same.
11171 (irange::intersect): Same.
11172 (irange::set_nonzero): Same.
11173 (irange::set_zero): Same.
11174 (irange::normalize_min_max): New.
11175 (vrp_val_max): Move from value-range.cc.
11176 (vrp_val_min): Same.
11177 * vr-values.c (vr_values::get_lattice_entry): Call value_range
11180 2020-08-02 Sergei Trofimovich <siarheit@google.com>
11183 * var-tracking.c (vt_find_locations): Fully initialize
11184 all 'in_pending' bits.
11186 2020-08-01 Jan Hubicka <jh@suse.cz>
11188 * symtab.c (symtab_node::verify_base): Verify order.
11189 (symtab_node::verify_symtab_nodes): Verify order.
11191 2020-08-01 Jan Hubicka <jh@suse.cz>
11193 * predict.c (estimate_bb_frequencies): Cap recursive calls by 90%.
11195 2020-08-01 Jojo R <jiejie_rong@c-sky.com>
11197 * config/csky/csky_opts.h (float_abi_type): New.
11198 * config/csky/csky.h (TARGET_SOFT_FLOAT): New.
11199 (TARGET_HARD_FLOAT): New.
11200 (TARGET_HARD_FLOAT_ABI): New.
11201 (OPTION_DEFAULT_SPECS): Use mfloat-abi.
11202 * config/csky/csky.opt (mfloat-abi): New.
11203 * doc/invoke.texi (C-SKY Options): Document -mfloat-abi=.
11205 2020-08-01 Cooper Qu <cooper.qu@linux.alibaba.com>
11207 * config/csky/t-csky-linux: Delete big endian CPUs' multilib.
11209 2020-07-31 Roger Sayle <roger@nextmovesoftware.com>
11210 Tom de Vries <tdevries@suse.de>
11213 * config/nvptx/nvptx.c (nvptx_truly_noop_truncation): Implement.
11214 (TARGET_TRULY_NOOP_TRUNCATION): Define.
11216 2020-07-31 Richard Biener <rguenther@suse.de>
11219 * langhooks-def.h (lhd_finalize_early_debug): Declare.
11220 (LANG_HOOKS_FINALIZE_EARLY_DEBUG): Define.
11221 (LANG_HOOKS_INITIALIZER): Amend.
11222 * langhooks.c: Include cgraph.h and debug.h.
11223 (lhd_finalize_early_debug): Default implementation from
11224 former code in finalize_compilation_unit.
11225 * langhooks.h (lang_hooks::finalize_early_debug): Add.
11226 * cgraphunit.c (symbol_table::finalize_compilation_unit):
11227 Call the finalize_early_debug langhook.
11229 2020-07-31 Richard Biener <rguenther@suse.de>
11231 * genmatch.c (expr::force_leaf): Add and initialize.
11232 (expr::gen_transform): Honor force_leaf by passing
11233 NULL as sequence argument to maybe_push_res_to_seq.
11234 (parser::parse_expr): Allow ! marker on result expression
11236 * doc/match-and-simplify.texi: Amend.
11238 2020-07-31 Kewen Lin <linkw@linux.ibm.com>
11240 * tree-vect-loop.c (vect_get_known_peeling_cost): Don't consider branch
11241 taken costs for prologue and epilogue if they don't exist.
11242 (vect_estimate_min_profitable_iters): Likewise.
11244 2020-07-31 Martin Liska <mliska@suse.cz>
11246 * cgraph.h: Remove leading empty lines.
11247 * cgraphunit.c (enum cgraph_order_sort_kind): Remove
11249 (struct cgraph_order_sort): Add constructors.
11250 (cgraph_order_sort::process): New.
11251 (cgraph_order_cmp): New.
11252 (output_in_order): Simplify and push nodes to vector.
11254 2020-07-31 Richard Biener <rguenther@suse.de>
11256 PR middle-end/96369
11257 * fold-const.c (fold_range_test): Special-case constant
11258 LHS for short-circuiting operations.
11260 2020-07-31 Martin Liska <mliska@suse.cz>
11262 * gcov-io.h (GCOV_PREALLOCATED_KVP): New.
11264 2020-07-31 Zhiheng Xie <xiezhiheng@huawei.com>
11266 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11267 Add new argument ATTRS.
11268 (aarch64_call_properties): New function.
11269 (aarch64_modifies_global_state_p): Likewise.
11270 (aarch64_reads_global_state_p): Likewise.
11271 (aarch64_could_trap_p): Likewise.
11272 (aarch64_add_attribute): Likewise.
11273 (aarch64_get_attributes): Likewise.
11274 (aarch64_init_simd_builtins): Add attributes for each built-in function.
11276 2020-07-31 Richard Biener <rguenther@suse.de>
11279 * var-tracking.c (vt_find_locations): Use
11280 rev_post_order_and_mark_dfs_back_seme and separately iterate
11281 over toplevel SCCs.
11283 2020-07-31 Richard Biener <rguenther@suse.de>
11285 * cfganal.h (rev_post_order_and_mark_dfs_back_seme): Adjust
11287 * cfganal.c (rpoamdbs_bb_data): New struct with pre BB data.
11288 (tag_header): New helper.
11289 (cmp_edge_dest_pre): Likewise.
11290 (rev_post_order_and_mark_dfs_back_seme): Compute SCCs,
11291 find SCC exits and perform a DFS walk with extra edges to
11292 compute a RPO with adjacent SCC members when requesting an
11293 iteration optimized order and populate the toplevel SCC array.
11294 * tree-ssa-sccvn.c (do_rpo_vn): Remove ad-hoc computation
11295 of max_rpo and fill it in from SCC extent info instead.
11297 2020-07-30 Will Schmidt <will_schmidt@vnet.ibm.com>
11299 * config/rs6000/altivec.h (vec_test_lsbb_all_ones): New define.
11300 (vec_test_lsbb_all_zeros): New define.
11301 * config/rs6000/rs6000-builtin.def (BU_P10_VSX_1): New built-in
11303 (XVTLSBB_ZEROS, XVTLSBB_ONES): New builtin defines.
11304 (xvtlsbb_all_zeros, xvtlsbb_all_ones): New builtin overloads.
11305 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XVTLSBB_ZEROS,
11306 P10_BUILTIN_VEC_XVTLSBB_ONES): New altivec_builtin_types entries.
11307 * config/rs6000/rs6000.md (UNSPEC_XVTLSBB): New unspec.
11308 * config/rs6000/vsx.md (*xvtlsbb_internal): New instruction define.
11309 (xvtlsbbo, xvtlsbbz): New instruction expands.
11311 2020-07-30 Cooper Qu <cooper.qu@linux.alibaba.com>
11313 * config/riscv/riscv-opts.h (stack_protector_guard): New enum.
11314 * config/riscv/riscv.c (riscv_option_override): Handle
11316 * config/riscv/riscv.md (stack_protect_set): New pattern to handle
11317 flexible stack protector guard settings.
11318 (stack_protect_set_<mode>): Ditto.
11319 (stack_protect_test): Ditto.
11320 (stack_protect_test_<mode>): Ditto.
11321 * config/riscv/riscv.opt (mstack-protector-guard=,
11322 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
11324 * doc/invoke.texi (Option Summary) [RISC-V Options]:
11325 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
11326 -mstack-protector-guard-offset=.
11327 (RISC-V Options): Ditto.
11329 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
11332 * configure: Regenerated.
11334 2020-07-30 Richard Biener <rguenther@suse.de>
11336 PR tree-optimization/96370
11337 * tree-ssa-reassoc.c (rewrite_expr_tree): Add operation
11338 code parameter and use it instead of picking it up from
11339 the stmt that is being rewritten.
11340 (reassociate_bb): Pass down the operation code.
11342 2020-07-30 Roger Sayle <roger@nextmovesoftware.com>
11343 Tom de Vries <tdevries@suse.de>
11345 * config/nvptx/nvptx.md (nvptx_vector_index_operand): New predicate.
11346 (VECELEM): New mode attribute for a vector's uppercase element mode.
11347 (Vecelem): New mode attribute for a vector's lowercase element mode.
11348 (*vec_set<mode>_0, *vec_set<mode>_1, *vec_set<mode>_2)
11349 (*vec_set<mode>_3): New instructions.
11350 (vec_set<mode>): New expander to generate one of the above insns.
11351 (vec_extract<mode><Vecelem>): New instruction.
11353 2020-07-30 Martin Liska <mliska@suse.cz>
11356 * config/i386/x86-tune-costs.h: Use libcall for large sizes for
11357 -m32. Start using libcall from 128+ bytes.
11359 2020-07-30 Martin Liska <mliska@suse.cz>
11361 * config/i386/x86-tune-costs.h: Change code formatting.
11363 2020-07-29 Roger Sayle <roger@nextmovesoftware.com>
11365 * config/nvptx/nvptx.md (recip<mode>2): New instruction.
11367 2020-07-29 Fangrui Song <maskray@google.com>
11370 * opts.c (common_handle_option): Don't make -gsplit-dwarf imply -g.
11371 * doc/invoke.texi (-gsplit-dwarf): Update documentation.
11373 2020-07-29 Joe Ramsay <joe.ramsay@arm.com>
11375 * config/arm/arm-protos.h (arm_coproc_mem_operand_no_writeback):
11377 (arm_mve_mode_and_operands_type_check): Declare prototype.
11378 * config/arm/arm.c (arm_coproc_mem_operand): Refactor to use
11379 _arm_coproc_mem_operand.
11380 (arm_coproc_mem_operand_wb): New function to cover full, limited
11382 (arm_coproc_mem_operand_no_writeback): New constraint for memory
11383 operand with no writeback.
11384 (arm_print_operand): Extend 'E' specifier for memory operand
11385 that does not support writeback.
11386 (arm_mve_mode_and_operands_type_check): New constraint check for
11387 MVE memory operands.
11388 * config/arm/constraints.md: Add Uj constraint for VFP vldr.16
11390 * config/arm/vfp.md (*mov_load_vfp_hf16): New pattern for
11392 (*mov_store_vfp_hf16): New pattern for vstr.16.
11393 (*mov<mode>_vfp_<mode>16): Remove MVE moves.
11395 2020-07-29 Richard Biener <rguenther@suse.de>
11397 PR tree-optimization/96349
11398 * tree-ssa-loop-split.c (stmt_semi_invariant_p_1): When the
11399 condition runs into a loop PHI with an abnormal entry value give up.
11401 2020-07-29 Richard Biener <rguenther@suse.de>
11403 * tree-vectorizer.c (vectorize_loops): Reset the SCEV
11404 cache if we removed any SIMD UID SSA defs.
11405 * gimple-loop-interchange.cc (pass_linterchange::execute):
11406 Reset the scev cache if we interchanged a loop.
11408 2020-07-29 Richard Biener <rguenther@suse.de>
11410 PR tree-optimization/95679
11411 * tree-ssa-propagate.h
11412 (substitute_and_fold_engine::propagate_into_phi_args): Return
11413 whether anything changed.
11414 * tree-ssa-propagate.c
11415 (substitute_and_fold_engine::propagate_into_phi_args): Likewise.
11416 (substitute_and_fold_dom_walker::before_dom_children): Update
11419 2020-07-29 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
11421 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11422 Ensure that loop variable npeel_tmp advances in each iteration.
11424 2020-07-29 Hans-Peter Nilsson <hp@bitrange.com>
11426 * config/mmix/mmix.h (NO_FUNCTION_CSE): Define to 1.
11428 2020-07-29 Hans-Peter Nilsson <hp@bitrange.com>
11430 * config/mmix/mmix.h (ASM_OUTPUT_EXTERNAL): Define to
11431 default_elf_asm_output_external.
11433 2020-07-28 Sergei Trofimovich <siarheit@google.com>
11436 * ipa-cp.c (has_undead_caller_from_outside_scc_p): Consider
11437 unoptimized callers as undead.
11439 2020-07-28 Roger Sayle <roger@nextmovesoftware.com>
11440 Richard Biener <rguenther@suse.de>
11442 * match.pd (popcount(x)&1 -> parity(x)): New simplification.
11443 (parity(~x) -> parity(x)): New simplification.
11444 (parity(x)^parity(y) -> parity(x^y)): New simplification.
11445 (parity(x&1) -> x&1): New simplification.
11446 (popcount(x) -> x>>C): New simplification.
11448 2020-07-28 Roger Sayle <roger@nextmovesoftware.com>
11449 Tom de Vries <tdevries@suse.de>
11451 * config/nvptx/nvptx.md (extendqihi2): New instruction.
11452 (ashl<mode>3, ashr<mode>3, lshr<mode>3): Support HImode.
11454 2020-07-28 Jakub Jelinek <jakub@redhat.com>
11456 PR middle-end/96335
11457 * calls.c (maybe_warn_rdwr_sizes): Add FNDECL and FNTYPE arguments,
11458 instead of trying to rediscover them in the body.
11459 (initialize_argument_information): Adjust caller.
11461 2020-07-28 Kewen Lin <linkw@linux.ibm.com>
11463 * tree-vect-loop.c (vect_get_known_peeling_cost): Factor out some code
11464 to determine peel_iters_epilogue to...
11465 (vect_get_peel_iters_epilogue): ...this new function.
11466 (vect_estimate_min_profitable_iters): Refactor cost calculation on
11467 peel_iters_prologue and peel_iters_epilogue.
11469 2020-07-27 Martin Sebor <msebor@redhat.com>
11471 PR tree-optimization/84079
11472 * gimple-array-bounds.cc (array_bounds_checker::check_addr_expr):
11473 Only allow just-past-the-end references for the most significant
11476 2020-07-27 Hu Jiangping <hujiangping@cn.fujitsu.com>
11479 * opts.c (check_alignment_argument): Set the -falign-Name
11480 on/off flag on and set the -falign-Name string value null,
11481 when the command-line specified argument is zero.
11483 2020-07-27 Martin Liska <mliska@suse.cz>
11485 PR tree-optimization/96058
11486 * expr.c (string_constant): Build string_constant only
11487 for a type that has same precision as char_type_node
11488 and is an integral type.
11490 2020-07-27 Richard Biener <rguenther@suse.de>
11492 * var-tracking.c (variable_tracking_main_1): Remove call
11493 to mark_dfs_back_edges.
11495 2020-07-27 Martin Liska <mliska@suse.cz>
11497 PR tree-optimization/96128
11498 * tree-vect-generic.c (expand_vector_comparison): Do not expand
11499 vector comparison with VEC_COND_EXPR.
11501 2020-07-27 H.J. Lu <hjl.tools@gmail.com>
11504 * common.opt: Add -fcf-protection=check.
11505 * flag-types.h (cf_protection_level): Add CF_CHECK.
11506 * lto-wrapper.c (merge_and_complain): Issue an error for
11507 mismatching -fcf-protection values with -fcf-protection=check.
11508 Otherwise, merge -fcf-protection values.
11509 * doc/invoke.texi: Document -fcf-protection=check.
11511 2020-07-27 Martin Liska <mliska@suse.cz>
11514 * symbol-summary.h: Call vec_safe_reserve before grow is called
11515 in order to grow to a reasonable size.
11516 * vec.h (vec_safe_reserve): Add missing function for vl_ptr
11519 2020-07-26 Hans-Peter Nilsson <hp@bitrange.com>
11521 * configure.ac (out-of-tree linker .hidden support): Don't turn off
11522 for mmix-knuth-mmixware.
11523 * configure: Regenerate.
11525 2020-07-26 Aaron Sawdey <acsawdey@linux.ibm.com>
11527 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11528 Set the default value for -mblock-ops-unaligned-vsx.
11529 * config/rs6000/rs6000.opt: Add -mblock-ops-unaligned-vsx.
11530 * doc/invoke.texi: Document -mblock-ops-unaligned-vsx.
11532 2020-07-25 Hans-Peter Nilsson <hp@bitrange.com>
11534 * config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override the default
11535 with default_asm_output_ident_directive.
11537 2020-07-25 Andrew Stubbs <ams@codesourcery.com>
11539 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): New function.
11540 (TARGET_SCALAR_MODE_SUPPORTED_P): New define.
11542 2020-07-24 David Edelsohn <dje.gcc@gmail.com>
11543 Clement Chigot <clement.chigot@atos.net>
11545 * config.gcc (powerpc-ibm-aix7.1): Use t-aix64 and biarch64 for
11547 * config/rs6000/aix71.h (ASM_SPEC): Remove aix64 option.
11550 (ASM_CPU_SPEC): Remove vsx and altivec options.
11551 (CPP_SPEC_COMMON): Rename from CPP_SPEC.
11554 (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
11555 (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
11556 (LIB_SPEC_COMMON): Rename from LIB_SPEC.
11559 (LINK_SPEC_COMMON): Rename from LINK_SPEC.
11560 (LINK_SPEC32): New.
11561 (LINK_SPEC64): New.
11562 (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
11563 (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
11565 (CPLUSPLUS_CPP_SPEC): Same.
11568 (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
11569 * config/rs6000/aix72.h (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
11570 * config/rs6000/defaultaix64.h: Delete.
11572 2020-07-24 Segher Boessenkool <segher@kernel.crashing.org>
11574 * config/rs6000/rs6000.opt: Delete -mpower10.
11576 2020-07-24 Alexandre Oliva <oliva@adacore.com>
11578 * config/i386/intelmic-mkoffload.c
11579 (generate_target_descr_file): Use dumppfx for save_temps
11580 files. Pass -dumpbase et al down to the compiler.
11581 (generate_target_offloadend_file): Likewise.
11582 (generate_host_descr_file): Likewise.
11583 (prepare_target_image): Likewise. Move out_obj_filename
11585 (main): ... here. Detect -dumpbase, set dumppfx too.
11587 2020-07-24 Alexandre Oliva <oliva@adacore.com>
11590 * gcc.c (process_command): Adjust and document conditions to
11591 reset dumpbase_ext.
11593 2020-07-24 Matthias Klose <doko@ubuntu.com>
11595 * config/aarch64/aarch64.c (+aarch64_offload_options,
11596 TARGET_OFFLOAD_OPTIONS): New.
11598 2020-07-24 Uroš Bizjak <ubizjak@gmail.com>
11601 * config/i386/sync.md (mmem_thread_fence): Emit mfence_sse2 for -Os.
11603 2020-07-23 Roger Sayle <roger@nextmovesoftware.com>
11605 PR rtl-optimization/96298
11606 * simplify-rtx.c (simplify_binary_operation_1) [XOR]: Xor doesn't
11607 distribute over xor, so (a^b)^(c^b) is not the same as (a^c)^b.
11609 2020-07-23 Dong JianQiang <dongjianqiang2@huawei.com>
11611 PR gcov-profile/96267
11612 * gcov-io.c (gcov_open): enable if IN_GCOV_TOOL.
11614 2020-07-23 Kewen Lin <linkw@linux.ibm.com>
11616 * config/rs6000/rs6000.c (adjust_vectorization_cost): Renamed to ...
11617 (rs6000_adjust_vect_cost_per_stmt): ... here.
11618 (rs6000_add_stmt_cost): Rename adjust_vectorization_cost to
11619 rs6000_adjust_vect_cost_per_stmt.
11621 2020-07-23 Kewen Lin <linkw@linux.ibm.com>
11623 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
11624 IFN_LEN_LOAD and IFN_LEN_STORE.
11625 (get_alias_ptr_type_for_ptr_address): Likewise.
11627 2020-07-23 Kito Cheng <kito.cheng@sifive.com>
11630 * asan.c (asan_shadow_offset_set_p): New.
11631 * asan.h (asan_shadow_offset_set_p): Ditto.
11632 * toplev.c (process_options): Allow -fsanitize=kernel-address
11633 even TARGET_ASAN_SHADOW_OFFSET not implemented, only check when
11634 asan stack protection is enabled.
11636 2020-07-22 Peter Bergner <bergner@linux.ibm.com>
11639 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Handle
11640 little-endian memory ordering.
11642 2020-07-22 Nathan Sidwell <nathan@acm.org>
11644 * dumpfile.c (parse_dump_option): Deal with filenames
11647 2020-07-22 Nathan Sidwell <nathan@acm.org>
11649 * incpath.c (add_path): Avoid multiple strlen calls.
11651 2020-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11653 * expmed.c (expand_sdiv_pow2): Check return value from emit_store_flag
11654 is not NULL_RTX before use.
11656 2020-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11658 * expr.c (convert_modes): Allow a constant integer to be converted to
11659 any scalar int mode.
11661 2020-07-22 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
11663 * config/aarch64/aarch64-ldpstp.md: Add two peepholes for adjusted vector
11664 V2SI, V2SF, V2DI, V2DF load pair and store pair modes.
11665 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
11666 Change mode parameter to machine_mode.
11667 (aarch64_operands_adjust_ok_for_ldpstp): Change mode parameter to
11669 * config/aarch64/aarch64.c (aarch64_operands_adjust_ok_for_ldpstp):
11670 Change mode parameter to machine_mode.
11671 (aarch64_gen_adjusted_ldpstp): Change mode parameter to machine_mode.
11672 * config/aarch64/iterators.md (VP_2E): New iterator for 2 element vectors.
11674 2020-07-22 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
11676 * doc/languages.texi: Fix “then”/“than” typo.
11678 2020-07-21 Sunil K Pandey <skpgkp2@gmail.com>
11681 * config/i386/i386-protos.h (ix86_local_alignment): Add
11682 another function parameter may_lower alignment. Default is
11684 * config/i386/i386.c (ix86_lower_local_decl_alignment): New
11686 (ix86_local_alignment): Amend ix86_local_alignment to accept
11687 another parameter may_lower. If may_lower is true, new align
11688 may be lower than incoming alignment. If may_lower is false,
11689 new align will be greater or equal to incoming alignment.
11690 (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): Define.
11691 * doc/tm.texi: Regenerate.
11692 * doc/tm.texi.in (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): New
11694 * target.def (lower_local_decl_alignment): New hook.
11696 2020-07-21 Uroš Bizjak <ubizjak@gmail.com>
11699 * config/i386/sync.md (mfence_sse2): Enable for
11700 TARGET_64BIT and TARGET_SSE2.
11701 (mfence_nosse): Always enable.
11703 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11705 * config/msp430/msp430-protos.h (msp430_do_not_relax_short_jumps):
11707 * config/msp430/msp430.c (msp430_do_not_relax_short_jumps): Likewise.
11708 * config/msp430/msp430.md (cbranchhi4_real): Remove special case for
11709 msp430_do_not_relax_short_jumps.
11711 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11713 * config/msp430/msp430.md: New "extendqipsi2" define_insn.
11715 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11717 * config/msp430/msp430.h (NO_FUNCTION_CSE): Set to true at -O2 and
11720 2020-07-21 Xionghu Luo <luoxhu@linux.ibm.com>
11722 PR rtl-optimization/89310
11723 * config/rs6000/rs6000.md (movsf_from_si2): New define_insn_and_split.
11725 2020-07-20 Hans-Peter Nilsson <hp@bitrange.com>
11727 * config/mmix/mmix.c (mmix_expand_prologue): Calculate the total
11728 allocated size and set current_function_static_stack_size, if
11729 flag_stack_usage_info.
11731 2020-07-20 Sergei Trofimovich <siarheit@google.com>
11734 * config/sparc/linux.h (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11735 to get crtendS.o for !no-pie mode.
11736 * config/sparc/linux64.h (ENDFILE_SPEC): Ditto.
11738 2020-07-20 Yang Yang <yangyang305@huawei.com>
11740 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
11741 VIEW_CONVERT_EXPRs if the arguments types and return type
11742 of simd clone function are distinct with the vectype of stmt.
11744 2020-07-20 Uroš Bizjak <ubizjak@gmail.com>
11747 * config/i386/i386.h (TARGET_AVOID_MFENCE):
11748 Rename from TARGET_USE_XCHG_FOR_ATOMIC_STORE.
11749 * config/i386/sync.md (mfence_sse2): Disable for TARGET_AVOID_MFENCE.
11750 (mfence_nosse): Enable also for TARGET_AVOID_MFENCE. Emit stack
11751 referred memory in word_mode.
11752 (mem_thread_fence): Do not generate mfence_sse2 pattern when
11753 TARGET_AVOID_MFENCE is true.
11754 (atomic_store<mode>): Update for rename.
11755 * config/i386/x86-tune.def (X86_TUNE_AVOID_MFENCE):
11756 Rename from X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE.
11758 2020-07-20 Martin Sebor <msebor@redhat.com>
11760 PR middle-end/95189
11761 PR middle-end/95886
11762 * builtins.c (inline_expand_builtin_string_cmp): Rename...
11763 (inline_expand_builtin_bytecmp): ...to this.
11764 (builtin_memcpy_read_str): Don't expect data to be nul-terminated.
11765 (expand_builtin_memory_copy_args): Handle object representations
11766 with embedded nul bytes.
11767 (expand_builtin_memcmp): Same.
11768 (expand_builtin_strcmp): Adjust call to naming change.
11769 (expand_builtin_strncmp): Same.
11770 * expr.c (string_constant): Create empty strings with nonzero size.
11771 * fold-const.c (c_getstr): Rename locals and update comments.
11772 * tree.c (build_string): Accept null pointer argument.
11773 (build_string_literal): Same.
11774 * tree.h (build_string): Provide a default.
11775 (build_string_literal): Same.
11777 2020-07-20 Richard Biener <rguenther@suse.de>
11779 * cfganal.c (rev_post_order_and_mark_dfs_back_seme): Remove
11780 write-only post array.
11782 2020-07-20 Jakub Jelinek <jakub@redhat.com>
11785 * gimple-fold.c (fold_const_aggregate_ref_1): For COMPONENT_REF
11786 of a bitfield not aligned on byte boundaries try to
11787 fold_ctor_reference DECL_BIT_FIELD_REPRESENTATIVE if any and
11788 adjust it depending on endianity.
11790 2020-07-20 Jakub Jelinek <jakub@redhat.com>
11793 * fold-const.c (native_encode_initializer): Handle bit-fields.
11795 2020-07-20 Kewen Lin <linkw@linux.ibm.com>
11797 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11798 Set param_vect_partial_vector_usage to 0 explicitly.
11799 * doc/invoke.texi (vect-partial-vector-usage): Document new option.
11800 * optabs-query.c (get_len_load_store_mode): New function.
11801 * optabs-query.h (get_len_load_store_mode): New declare.
11802 * params.opt (vect-partial-vector-usage): New.
11803 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Add the
11804 handlings for vectorization using length-based partial vectors, call
11805 vect_gen_len for length generation, and rename some variables with
11806 items instead of scalars.
11807 (vect_set_loop_condition_partial_vectors): Add the handlings for
11808 vectorization using length-based partial vectors.
11809 (vect_do_peeling): Allow remaining eiters less than epilogue vf for
11810 LOOP_VINFO_USING_PARTIAL_VECTORS_P.
11811 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Init
11812 epil_using_partial_vectors_p.
11813 (_loop_vec_info::~_loop_vec_info): Call release_vec_loop_controls
11814 for lengths destruction.
11815 (vect_verify_loop_lens): New function.
11816 (vect_analyze_loop): Add handlings for epilogue of loop when it's
11817 marked to use vectorization using partial vectors.
11818 (vect_analyze_loop_2): Add the check to allow only one vectorization
11819 approach using partial vectorization at the same time. Check param
11820 vect-partial-vector-usage for partial vectors decision. Mark
11821 LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P if the epilogue is
11822 considerable to use partial vectors. Call release_vec_loop_controls
11823 for lengths destruction.
11824 (vect_estimate_min_profitable_iters): Adjust for loop vectorization
11825 using length-based partial vectors.
11826 (vect_record_loop_mask): Init factor to 1 for vectorization using
11827 mask-based partial vectors.
11828 (vect_record_loop_len): New function.
11829 (vect_get_loop_len): Likewise.
11830 * tree-vect-stmts.c (check_load_store_for_partial_vectors): Add
11831 checks for vectorization using length-based partial vectors. Factor
11832 some code to lambda function get_valid_nvectors.
11833 (vectorizable_store): Add handlings when using length-based partial
11835 (vectorizable_load): Likewise.
11836 (vect_gen_len): New function.
11837 * tree-vectorizer.h (struct rgroup_controls): Add field factor
11838 mainly for length-based partial vectors.
11839 (vec_loop_lens): New typedef.
11840 (_loop_vec_info): Add lens and epil_using_partial_vectors_p.
11841 (LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P): New macro.
11842 (LOOP_VINFO_LENS): Likewise.
11843 (LOOP_VINFO_FULLY_WITH_LENGTH_P): Likewise.
11844 (vect_record_loop_len): New declare.
11845 (vect_get_loop_len): Likewise.
11846 (vect_gen_len): Likewise.
11848 2020-07-20 Hans-Peter Nilsson <hp@bitrange.com>
11850 * config/mmix/mmix.c (mmix_option_override): Reinstate default
11851 integer-emitting targetm.asm_out pseudos when dumping detailed
11853 (mmix_assemble_integer): Update comment.
11855 2020-07-19 H.J. Lu <hjl.tools@gmail.com>
11859 * config/i386/cpuid.h: Add include guard.
11862 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
11865 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
11867 2020-07-18 Peter Bergner <bergner@linux.ibm.com>
11870 * config/rs6000/dfp.md (trunctdsd2): New define_insn.
11871 * config/rs6000/rs6000.md (define_attr "isa"): Add p9.
11872 (define_attr "enabled"): Handle p9.
11874 2020-07-17 Roger Sayle <roger@nextmovesoftware.com>
11876 * function.c (assign_parm_setup_block): Use the macro
11877 TRULY_NOOP_TRUNCATION_MODES_P instead of calling
11878 targetm.truly_noop_truncation directly.
11880 2020-07-17 H.J. Lu <hjl.tools@gmail.com>
11884 * config/i386/sse.md (VF_AVX512VL_VF1_128_256): Renamed to ...
11885 (VF1_AVX512ER_128_256): This. Drop DF vector modes.
11886 (rsqrt<mode>2): Replace VF_AVX512VL_VF1_128_256 with
11887 VF1_AVX512ER_128_256.
11889 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11891 * doc/sourcebuild.texi (dg-set-compiler-env-var,
11892 dg-set-target-env-var): Document.
11894 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11896 * config/arm/driver-arm.c (host_detect_local_cpu): Add GCC_CPUINFO.
11898 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11900 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
11903 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11905 * config/aarch64/driver-aarch64.c (INCLUDE_SET): New.
11906 (parse_field): Use std::string.
11907 (split_words, readline, find_field): New.
11908 (host_detect_local_cpu): Fix truncation issues.
11910 2020-07-17 Andrew Stubbs <ams@codesourcery.com>
11912 * config/gcn/mkoffload.c (EM_AMDGPU): Undefine before defining.
11913 (ELFOSABI_AMDGPU_HSA): Likewise.
11914 (ELFABIVERSION_AMDGPU_HSA): Likewise.
11915 (EF_AMDGPU_MACH_AMDGCN_GFX803): Likewise.
11916 (EF_AMDGPU_MACH_AMDGCN_GFX900): Likewise.
11917 (EF_AMDGPU_MACH_AMDGCN_GFX906): Likewise.
11918 (reserved): Delete.
11920 2020-07-17 Andrew Pinski <apinksi@marvell.com>
11921 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
11924 * config/aarch64/aarch64.c (aarch64_evpc_ins): New function.
11925 (aarch64_expand_vec_perm_const_1): Call it.
11926 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_copy_lane): Make
11927 public, and add a "@" prefix.
11929 2020-07-17 Andrew Pinski <apinksi@marvell.com>
11930 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
11933 * config/aarch64/aarch64.c (aarch64_evpc_reencode): New function.
11934 (aarch64_expand_vec_perm_const_1): Call it.
11936 2020-07-17 Zhiheng Xie <xiezhiheng@huawei.com>
11938 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11939 Add new field flags.
11940 (VAR1): Add new field FLAG in macro.
11956 (aarch64_general_fold_builtin): Likewise.
11957 (aarch64_general_gimple_fold_builtin): Likewise.
11958 * config/aarch64/aarch64-simd-builtins.def: Add default flag for
11959 each built-in function.
11960 * config/aarch64/geniterators.sh: Add new field in BUILTIN macro.
11962 2020-07-17 Andreas Krebbel <krebbel@linux.ibm.com>
11965 * config/s390/s390.c (s390_expand_insv): Invoke the movstrict
11966 expanders to generate the pattern.
11967 * config/s390/s390.md ("*movstricthi", "*movstrictqi"): Remove the
11968 '*' to have callable expanders.
11970 2020-07-16 Hans-Peter Nilsson <hp@axis.com>
11971 Segher Boessenkool <segher@kernel.crashing.org>
11974 * combine.c (is_just_move): Take an rtx_insn* as argument. Use
11977 2020-07-16 Uroš Bizjak <ubizjak@gmail.com>
11980 * config/i386/sync.md
11981 (peephole2 to remove unneded compare after CMPXCHG):
11982 New pattern, also handle XOR zeroing and load of -1 by OR.
11984 2020-07-16 Eric Botcazou <ebotcazou@adacore.com>
11986 * config/i386/i386.c (ix86_compute_frame_layout): Minor tweak.
11987 (ix86_adjust_stack_and_probe): Delete.
11988 (ix86_adjust_stack_and_probe_stack_clash): Rename to above and add
11989 PROTECTION_AREA parameter. If it is true, probe PROBE_INTERVAL plus
11990 a small dope beyond SIZE bytes.
11991 (ix86_emit_probe_stack_range): Use local variable.
11992 (ix86_expand_prologue): Adjust calls to ix86_adjust_stack_and_probe
11993 and tidy up the stack checking code.
11994 * explow.c (get_stack_check_protect): Fix head comment.
11995 (anti_adjust_stack_and_probe_stack_clash): Likewise.
11996 (allocate_dynamic_stack_space): Add comment.
11997 * tree-nested.c (lookup_field_for_decl): Set the DECL_IGNORED_P and
11998 TREE_NO_WARNING but not TREE_ADDRESSABLE flags on the field.
12000 2020-07-16 Andrew Stubbs <ams@codesourcery.com>
12002 * config/gcn/mkoffload.c: Include simple-object.h and elf.h.
12003 (EM_AMDGPU): New macro.
12004 (ELFOSABI_AMDGPU_HSA): New macro.
12005 (ELFABIVERSION_AMDGPU_HSA): New macro.
12006 (EF_AMDGPU_MACH_AMDGCN_GFX803): New macro.
12007 (EF_AMDGPU_MACH_AMDGCN_GFX900): New macro.
12008 (EF_AMDGPU_MACH_AMDGCN_GFX906): New macro.
12009 (R_AMDGPU_NONE): New macro.
12010 (R_AMDGPU_ABS32_LO): New macro.
12011 (R_AMDGPU_ABS32_HI): New macro.
12012 (R_AMDGPU_ABS64): New macro.
12013 (R_AMDGPU_REL32): New macro.
12014 (R_AMDGPU_REL64): New macro.
12015 (R_AMDGPU_ABS32): New macro.
12016 (R_AMDGPU_GOTPCREL): New macro.
12017 (R_AMDGPU_GOTPCREL32_LO): New macro.
12018 (R_AMDGPU_GOTPCREL32_HI): New macro.
12019 (R_AMDGPU_REL32_LO): New macro.
12020 (R_AMDGPU_REL32_HI): New macro.
12021 (reserved): New macro.
12022 (R_AMDGPU_RELATIVE64): New macro.
12023 (gcn_s1_name): Delete global variable.
12024 (gcn_s2_name): Delete global variable.
12025 (gcn_o_name): Delete global variable.
12026 (gcn_cfile_name): Delete global variable.
12027 (files_to_cleanup): New global variable.
12028 (offload_abi): New global variable.
12029 (tool_cleanup): Use files_to_cleanup, not explicit list.
12030 (copy_early_debug_info): New function.
12031 (main): New local variables gcn_s1_name, gcn_s2_name, gcn_o_name,
12033 Create files_to_cleanup obstack.
12034 Recognize -march options.
12035 Copy early debug info from input .o files.
12037 2020-07-16 Andrea Corallo <andrea.corallo@arm.com>
12039 * Makefile.in (TAGS): Remove 'params.def'.
12041 2020-07-16 Roger Sayle <roger@nextmovesoftware.com>
12043 * target.def (TARGET_TRULY_NOOP_TRUNCATION): Clarify that
12044 targets that return false, indicating SUBREGs shouldn't be
12045 used, also need to provide a trunc?i?i2 optab that performs this
12047 * doc/tm.texi: Regenerate.
12049 2020-07-15 Uroš Bizjak <ubizjak@gmail.com>
12052 * config/i386/sync.md
12053 (peephole2 to remove unneded compare after CMPXCHG): New pattern.
12055 2020-07-15 Jakub Jelinek <jakub@redhat.com>
12058 * omp-general.h (struct omp_for_data): Rename min_inner_iterations
12059 member to first_inner_iterations, adjust comment.
12060 * omp-general.c (omp_extract_for_data): Adjust for the above change.
12061 Always use n1first and n2first to compute it, rather than depending
12062 on single_nonrect_cond_code. Similarly, always compute factor
12063 as (m2 - m1) * outer_step / inner_step rather than sometimes m1 - m2
12064 depending on single_nonrect_cond_code.
12065 * omp-expand.c (expand_omp_for_init_vars): Rename min_inner_iterations
12066 to first_inner_iterations and min_inner_iterationsd to
12067 first_inner_iterationsd.
12069 2020-07-15 Jakub Jelinek <jakub@redhat.com>
12072 * config/i386/avx512fintrin.h (_mm512_cmpeq_pd_mask,
12073 _mm512_mask_cmpeq_pd_mask, _mm512_cmplt_pd_mask,
12074 _mm512_mask_cmplt_pd_mask, _mm512_cmple_pd_mask,
12075 _mm512_mask_cmple_pd_mask, _mm512_cmpunord_pd_mask,
12076 _mm512_mask_cmpunord_pd_mask, _mm512_cmpneq_pd_mask,
12077 _mm512_mask_cmpneq_pd_mask, _mm512_cmpnlt_pd_mask,
12078 _mm512_mask_cmpnlt_pd_mask, _mm512_cmpnle_pd_mask,
12079 _mm512_mask_cmpnle_pd_mask, _mm512_cmpord_pd_mask,
12080 _mm512_mask_cmpord_pd_mask, _mm512_cmpeq_ps_mask,
12081 _mm512_mask_cmpeq_ps_mask, _mm512_cmplt_ps_mask,
12082 _mm512_mask_cmplt_ps_mask, _mm512_cmple_ps_mask,
12083 _mm512_mask_cmple_ps_mask, _mm512_cmpunord_ps_mask,
12084 _mm512_mask_cmpunord_ps_mask, _mm512_cmpneq_ps_mask,
12085 _mm512_mask_cmpneq_ps_mask, _mm512_cmpnlt_ps_mask,
12086 _mm512_mask_cmpnlt_ps_mask, _mm512_cmpnle_ps_mask,
12087 _mm512_mask_cmpnle_ps_mask, _mm512_cmpord_ps_mask,
12088 _mm512_mask_cmpord_ps_mask): Move outside of __OPTIMIZE__ guarded
12091 2020-07-15 Jakub Jelinek <jakub@redhat.com>
12094 * builtins.c: Include gimple-ssa.h, tree-ssa-live.h and
12096 (expand_expr_force_mode): If exp is a SSA_NAME with different mode
12097 from MODE and get_gimple_for_ssa_name is a cast from MODE, use the
12100 2020-07-15 Jiufu Guo <guojiufu@cn.ibm.com>
12102 * config/rs6000/rs6000.c (rs6000_loop_unroll_adjust): Refine hook.
12104 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
12106 * config/rs6000/rs6000.md (rotldi3_insert_sf): Add TARGET_POWERPC64
12108 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add
12109 TARGET_POWERPC64 requirement to TARGET_P8_VECTOR case.
12111 2020-07-14 Lewis Hyatt <lhyatt@gmail.com>
12113 PR preprocessor/49973
12115 * common.opt: Handle -ftabstop here instead of in c-family
12116 options. Add -fdiagnostics-column-unit= and
12117 -fdiagnostics-column-origin= options.
12118 * opts.c (common_handle_option): Handle the new options.
12119 * diagnostic-format-json.cc (json_from_expanded_location): Add
12120 diagnostic_context argument. Use it to convert column numbers as per
12122 (json_from_location_range): Likewise.
12123 (json_from_fixit_hint): Likewise.
12124 (json_end_diagnostic): Pass the new context argument to helper
12125 functions above. Add "column-origin" field to the output.
12126 (test_unknown_location): Add the new context argument to calls to
12128 (test_bad_endpoints): Likewise.
12129 * diagnostic-show-locus.c
12130 (exploc_with_display_col::exploc_with_display_col): Support
12132 (layout_point::layout_point): Make use of class
12133 exploc_with_display_col.
12134 (layout_range::layout_range): Likewise.
12135 (struct line_bounds): Clarify that the units are now always
12136 display columns. Rename members accordingly. Add constructor.
12137 (layout::print_source_line): Add support for tab expansion.
12138 (make_range): Adapt to class layout_range changes.
12139 (layout::maybe_add_location_range): Likewise.
12140 (layout::layout): Adapt to class exploc_with_display_col changes.
12141 (layout::calculate_x_offset_display): Support tabstop parameter.
12142 (layout::print_annotation_line): Adapt to struct line_bounds changes.
12143 (layout::print_line): Likewise.
12144 (line_label::line_label): Add diagnostic_context argument.
12145 (get_affected_range): Likewise.
12146 (get_printed_columns): Likewise.
12147 (layout::print_any_labels): Adapt to struct line_label changes.
12148 (class correction): Add m_tabstop member.
12149 (correction::correction): Add tabstop argument.
12150 (correction::compute_display_cols): Use m_tabstop.
12151 (class line_corrections): Add m_context member.
12152 (line_corrections::line_corrections): Add diagnostic_context argument.
12153 (line_corrections::add_hint): Use m_context to handle tabstops.
12154 (layout::print_trailing_fixits): Adapt to class line_corrections
12156 (test_layout_x_offset_display_utf8): Support tabstop parameter.
12157 (test_layout_x_offset_display_tab): New selftest.
12158 (test_one_liner_colorized_utf8): Likewise.
12159 (test_tab_expansion): Likewise.
12160 (test_diagnostic_show_locus_one_liner_utf8): Call the new tests.
12161 (diagnostic_show_locus_c_tests): Likewise.
12162 (test_overlapped_fixit_printing): Adapt to helper class and
12164 (test_overlapped_fixit_printing_utf8): Likewise.
12165 (test_overlapped_fixit_printing_2): Likewise.
12166 * diagnostic.h (enum diagnostics_column_unit): New enum.
12167 (struct diagnostic_context): Add members for the new options.
12168 (diagnostic_converted_column): Declare.
12169 (json_from_expanded_location): Add new context argument.
12170 * diagnostic.c (diagnostic_initialize): Initialize new members.
12171 (diagnostic_converted_column): New function.
12172 (maybe_line_and_column): Be willing to output a column of 0.
12173 (diagnostic_get_location_text): Convert column number as per the new
12175 (diagnostic_report_current_module): Likewise.
12176 (assert_location_text): Add origin and column_unit arguments for
12177 testing the new functionality.
12178 (test_diagnostic_get_location_text): Test the new functionality.
12179 * doc/invoke.texi: Document the new options and behavior.
12180 * input.h (location_compute_display_column): Add tabstop argument.
12181 * input.c (location_compute_display_column): Likewise.
12182 (test_cpp_utf8): Add selftests for tab expansion.
12183 * tree-diagnostic-path.cc (default_tree_make_json_for_path): Pass the
12184 new context argument to json_from_expanded_location().
12186 2020-07-14 Jakub Jelinek <jakub@redhat.com>
12188 PR middle-end/96194
12189 * expr.c (expand_constructor): Don't create temporary for store to
12190 volatile MEM if exp has an addressable type.
12192 2020-07-14 Nathan Sidwell <nathan@acm.org>
12194 * hash-map.h (hash_map::get): Note it is a pointer to value.
12195 * incpath.h (incpath_kind): Align comments.
12197 2020-07-14 Nathan Sidwell <nathan@acm.org>
12199 * tree-core.h (tree_decl_with_vis, tree_function_decl):
12200 Note additional padding on 64-bits
12201 * tree.c (cache_integer_cst): Note why no caching of enum literals.
12202 (get_tree_code_name): Robustify error case.
12204 2020-07-14 Nathan Sidwell <nathan@acm.org>
12206 * doc/gty.texi: Fic gt_cleare_cache name.
12207 * doc/invoke.texi: Remove duplicate opindex Wabi-tag.
12209 2020-07-14 Jakub Jelinek <jakub@redhat.com>
12211 * omp-general.h (struct omp_for_data): Add adjn1 member.
12212 * omp-general.c (omp_extract_for_data): For non-rect loop, punt on
12213 count computing if n1, n2 or step are not INTEGER_CST earlier.
12214 Narrow the outer iterator range if needed so that non-rect loop
12215 has at least one iteration for each outer range iteration. Compute
12217 * omp-expand.c (expand_omp_for_init_vars): Use adjn1 if non-NULL
12218 instead of the outer loop's n1.
12220 2020-07-14 Matthias Klose <doko@ubuntu.com>
12223 * lto-wrapper.c (merge_and_complain): Add decoded options as parameter,
12224 error on different values for -fcf-protection.
12225 (append_compiler_options): Pass -fcf-protection option.
12226 (find_and_merge_options): Add decoded options as parameter,
12227 pass decoded_options to merge_and_complain.
12228 (run_gcc): Pass decoded options to find_and_merge_options.
12229 * lto-opts.c (lto_write_options): Pass -fcf-protection option.
12231 2020-07-13 Alan Modra <amodra@gmail.com>
12233 * config/rs6000/rs6000.md (sibcall_local): Merge sibcall_local32
12234 and sibcall_local64.
12235 (sibcall_value_local): Similarly.
12237 2020-07-13 Nathan Sidwell <nathan@acm.org>
12239 * Makefile.in (distclean): Remove long gone cxxmain.c
12241 2020-07-13 H.J. Lu <hjl.tools@gmail.com>
12244 * config/i386/i386.md (cmpstrnsi): Pass a copy of the string
12245 length to cmpstrnqi patterns.
12247 2020-07-13 Jakub Jelinek <jakub@redhat.com>
12250 * ipa-fnsummary.c (analyze_function_body): Treat NULL bb->aux
12251 as false predicate.
12253 2020-07-13 Richard Biener <rguenther@suse.de>
12255 PR tree-optimization/96163
12256 * tree-vect-slp.c (vect_schedule_slp_instance): Put new stmts
12257 at least after region begin.
12259 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
12261 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
12262 __ARM_FEATURE_PAC_DEFAULT support.
12264 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
12267 * doc/extend.texi: Update the text for __builtin_return_address.
12269 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
12272 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
12273 Disable return address signing if __builtin_eh_return is used.
12275 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
12279 * config/aarch64/aarch64-protos.h (aarch64_return_addr_rtx): Declare.
12280 * config/aarch64/aarch64.c (aarch64_return_addr_rtx): New.
12281 (aarch64_return_addr): Use aarch64_return_addr_rtx.
12282 * config/aarch64/aarch64.h (PROFILE_HOOK): Likewise.
12284 2020-07-13 Richard Sandiford <richard.sandiford@arm.com>
12286 PR middle-end/95114
12287 * tree.h (virtual_method_call_p): Add a default-false parameter
12288 that indicates whether the function is being called from dump
12290 (obj_type_ref_class): Likewise.
12291 * tree.c (virtual_method_call_p): Likewise.
12292 * ipa-devirt.c (obj_type_ref_class): Likewise. Lazily add ODR
12293 type information for the type when the parameter is false.
12294 * tree-pretty-print.c (dump_generic_node): Update calls to
12295 virtual_method_call_p and obj_type_ref_class accordingly.
12297 2020-07-13 Julian Brown <julian@codesourcery.com>
12298 Thomas Schwinge <thomas@codesourcery.com>
12300 * gimplify.c (gimplify_scan_omp_clauses): Do not strip
12301 GOMP_MAP_TO_PSET/GOMP_MAP_POINTER for OpenACC enter/exit data
12302 directives (see also PR92929).
12304 2020-07-13 Roger Sayle <roger@nextmovesoftware.com>
12306 * convert.c (convert_to_integer_1): Narrow integer operations
12307 even on targets that require explicit truncation instructions.
12309 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
12312 * config/cris/cris-passes.def: New file.
12313 * config/cris/t-cris (PASSES_EXTRA): Add cris-passes.def.
12314 * config/cris/cris.c: Add infrastructure bits and pass execute
12315 function cris_postdbr_cmpelim.
12316 * config/cris/cris-protos.h (make_pass_cris_postdbr_cmpelim): Declare.
12318 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
12320 * config/cris/t-cris: Remove gt-cris.h-related excessive cargo.
12322 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
12325 * config/cris/cris.md ("*add<mode>3_addi"): New splitter.
12326 ("*addi_b_<mode>"): New pattern.
12327 ("*addsi3<setnz>"): Remove stale %-related comment.
12329 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
12331 * config/cris/cris.md ("setnz_subst", "setnz_subst", "setcc_subst"):
12332 Use match_dup in output template, not match_operand.
12334 2020-07-13 Richard Biener <rguenther@suse.de>
12336 * var-tracking.c (bb_heap_node_t): Remove unused typedef.
12337 (vt_find_locations): Eliminate visited bitmap in favor of
12338 RPO order check. Dump statistics about the number of
12339 local BB dataflow computes.
12341 2020-07-13 Richard Biener <rguenther@suse.de>
12343 PR middle-end/94600
12344 * expr.c (expand_constructor): Make a temporary also if we're
12345 storing to volatile memory.
12347 2020-07-13 Xionghu Luo <luoxhu@linux.ibm.com>
12349 * config/rs6000/rs6000.md (rotl_unspec): New
12350 define_insn_and_split.
12352 2020-07-13 Xionghu Luo <luoxhu@linux.ibm.com>
12354 * config/rs6000/rs6000.c (rs6000_expand_vector_init):
12355 Move V4SF to V4SI, init vector like V4SI and move to V4SF back.
12357 2020-07-11 Roger Sayle <roger@nextmovesoftware.com>
12359 * internal-fn.c (expand_mul_overflow): When checking for signed
12360 overflow from a widening multiplication, we access the truncated
12361 lowpart RES twice, so keep this value in a pseudo register.
12363 2020-07-11 Richard Sandiford <richard.sandiford@arm.com>
12365 PR tree-optimization/96146
12366 * value-range.cc (value_range::set): Only decompose POLY_INT_CST
12367 bounds to integers for VR_RANGE. Decay to VR_VARYING for anti-ranges
12368 involving POLY_INT_CSTs.
12370 2020-07-10 David Edelsohn <dje.gcc@gmail.com>
12373 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Only
12374 create named section for VAR_DECL or FUNCTION_DECL.
12376 2020-07-10 Joseph Myers <joseph@codesourcery.com>
12378 * glimits.h [__STDC_VERSION__ > 201710L] (BOOL_MAX, BOOL_WIDTH):
12381 2020-07-10 Alexander Popov <alex.popov@linux.com>
12383 * shrink-wrap.c (try_shrink_wrapping): Improve debug output.
12385 2020-07-10 Richard Sandiford <richard.sandiford@arm.com>
12387 PR middle-end/96151
12388 * expr.c (expand_expr_real_2): When reducing bit fields,
12389 clear the target if it has a different mode from the expression.
12390 (reduce_to_bit_field_precision): Don't do that here. Instead
12391 assert that the target already has the correct mode.
12393 2020-07-10 Richard Sandiford <richard.sandiford@arm.com>
12397 * config/arm/arm.c (arm_attribute_table): Add
12398 "Advanced SIMD type".
12399 (arm_comp_type_attributes): Check that the "Advanced SIMD type"
12400 attributes are equal.
12401 * config/arm/arm-builtins.c: Include stringpool.h and
12403 (arm_mangle_builtin_vector_type): Use the mangling recorded
12404 in the "Advanced SIMD type" attribute.
12405 (arm_init_simd_builtin_types): Add an "Advanced SIMD type"
12406 attribute to each Advanced SIMD type, using the mangled type
12407 as the attribute's single argument.
12409 2020-07-10 Carl Love <cel@us.ibm.com>
12411 * config/rs6000/vsx.md (VSX_MM): New define_mode_iterator.
12412 (VSX_MM4): New define_mode_iterator.
12413 (vec_mtvsrbmi): New define_insn.
12414 (vec_mtvsr_<mode>): New define_insn.
12415 (vec_cntmb_<mode>): New define_insn.
12416 (vec_extract_<mode>): New define_insn.
12417 (vec_expand_<mode>): New define_insn.
12418 (define_c_enum unspec): Add entries UNSPEC_MTVSBM, UNSPEC_VCNTMB,
12419 UNSPEC_VEXTRACT, UNSPEC_VEXPAND.
12420 * config/rs6000/altivec.h ( vec_genbm, vec_genhm, vec_genwm,
12421 vec_gendm, vec_genqm, vec_cntm, vec_expandm, vec_extractm): Add
12423 * config/rs6000/rs6000-builtin.def: Add defines BU_P10_2, BU_P10_1.
12424 (BU_P10_1): Add definitions for mtvsrbm, mtvsrhm, mtvsrwm,
12425 mtvsrdm, mtvsrqm, vexpandmb, vexpandmh, vexpandmw, vexpandmd,
12426 vexpandmq, vextractmb, vextractmh, vextractmw, vextractmd, vextractmq.
12427 (BU_P10_2): Add definitions for cntmbb, cntmbh, cntmbw, cntmbd.
12428 (BU_P10_OVERLOAD_1): Add definitions for mtvsrbm, mtvsrhm,
12429 mtvsrwm, mtvsrdm, mtvsrqm, vexpandm, vextractm.
12430 (BU_P10_OVERLOAD_2): Add defition for cntm.
12431 * config/rs6000/rs6000-call.c (rs6000_expand_binop_builtin): Add
12432 checks for CODE_FOR_vec_cntmbb_v16qi, CODE_FOR_vec_cntmb_v8hi,
12433 CODE_FOR_vec_cntmb_v4si, CODE_FOR_vec_cntmb_v2di.
12434 (altivec_overloaded_builtins): Add overloaded argument entries for
12435 P10_BUILTIN_VEC_MTVSRBM, P10_BUILTIN_VEC_MTVSRHM,
12436 P10_BUILTIN_VEC_MTVSRWM, P10_BUILTIN_VEC_MTVSRDM,
12437 P10_BUILTIN_VEC_MTVSRQM, P10_BUILTIN_VEC_VCNTMBB,
12438 P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
12439 P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
12440 P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
12441 P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
12442 P10_BUILTIN_VEXPANDMQ, P10_BUILTIN_VEXTRACTMB,
12443 P10_BUILTIN_VEXTRACTMH, P10_BUILTIN_VEXTRACTMW,
12444 P10_BUILTIN_VEXTRACTMD, P10_BUILTIN_VEXTRACTMQ.
12445 (builtin_function_type): Add case entries for P10_BUILTIN_MTVSRBM,
12446 P10_BUILTIN_MTVSRHM, P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
12447 P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
12448 P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
12449 P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
12450 P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
12451 P10_BUILTIN_VEXPANDMQ.
12452 * config/rs6000/rs6000-builtin.def (altivec_overloaded_builtins): Add
12453 entries for MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM, VCNTM,
12454 VEXPANDM, VEXTRACTM.
12456 2020-07-10 Bill Seurer, 507-253-3502, seurer@us.ibm.com <(no_default)>
12459 * config/rs6000/rs6000-call.c: Add new type v16qi_ftype_pcvoid.
12460 (altivec_init_builtins) Change __builtin_altivec_mask_for_load to use
12461 v16qi_ftype_pcvoid with correct number of parameters.
12463 2020-07-10 H.J. Lu <hjl.tools@gmail.com>
12466 * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Check
12467 TARGET_AVX512VL when enabling FMA.
12469 2020-07-10 Andrea Corallo <andrea.corallo@arm.com>
12470 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
12471 Iain Apreotesei <iain.apreotesei@arm.com>
12473 * config/arm/arm-protos.h (arm_target_insn_ok_for_lob): New
12475 * config/arm/arm.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12476 (arm_invalid_within_doloop): Implement invalid_within_doloop hook.
12477 (arm_target_insn_ok_for_lob): New function.
12478 * config/arm/arm.h (TARGET_HAVE_LOB): Define macro.
12479 * config/arm/thumb2.md (*doloop_end_internal, doloop_begin)
12480 (dls_insn): Add new patterns.
12481 (doloop_end): Modify to select LR when LOB is available.
12482 * config/arm/unspecs.md: Add new unspec.
12483 * doc/sourcebuild.texi (arm_v8_1_lob_ok)
12484 (arm_thumb2_ok_no_arm_v8_1_lob): Document new target supports
12487 2020-07-10 Richard Biener <rguenther@suse.de>
12489 PR tree-optimization/96133
12490 * gimple-fold.c (fold_array_ctor_reference): Do not
12491 recurse to folding a CTOR that does not fully cover the
12494 2020-07-10 Cui,Lili <lili.cui@intel.com>
12496 * common/config/i386/cpuinfo.h
12497 (get_intel_cpu): Handle sapphirerapids.
12498 * common/config/i386/i386-common.c
12499 (processor_names): Add sapphirerapids and alderlake.
12500 (processor_alias_table): Add sapphirerapids and alderlake.
12501 * common/config/i386/i386-cpuinfo.h
12502 (processor_subtypes): Add INTEL_COREI7_ALDERLAKE and
12503 INTEL_COREI7_ALDERLAKE.
12504 * config.gcc: Add -march=sapphirerapids and alderlake.
12505 * config/i386/driver-i386.c
12506 (host_detect_local_cpu) Handle sapphirerapids and alderlake.
12507 * config/i386/i386-c.c
12508 (ix86_target_macros_internal): Handle sapphirerapids and alderlake.
12509 * config/i386/i386-options.c
12510 (m_SAPPHIRERAPIDS) : Define.
12511 (m_ALDERLAKE): Ditto.
12512 (m_CORE_AVX512) : Add m_SAPPHIRERAPIDS.
12513 (processor_cost_table): Add sapphirerapids and alderlake.
12514 (ix86_option_override_internal) Handle PTA_WAITPKG, PTA_ENQCMD,
12515 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK.
12516 * config/i386/i386.h
12517 (ix86_size_cost) : Define SAPPHIRERAPIDS and ALDERLAKE.
12518 (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
12519 PROCESSOR_ALDERLAKE.
12521 (PTA_CLDEMOTE): Ditto.
12522 (PTA_SERIALIZE): Ditto.
12523 (PTA_TSXLDTRK): New.
12524 (PTA_SAPPHIRERAPIDS): Ditto.
12525 (PTA_ALDERLAKE): Ditto.
12526 (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
12527 PROCESSOR_ALDERLAKE.
12528 * doc/extend.texi: Add sapphirerapids and alderlake.
12529 * doc/invoke.texi: Add sapphirerapids and alderlake.
12531 2020-07-10 Martin Liska <mliska@suse.cz>
12533 * dumpfile.c [profile-report]: Add new profile dump.
12534 * dumpfile.h (enum tree_dump_index): Ad TDI_profile_report.
12535 * passes.c (pass_manager::dump_profile_report): Change stderr
12538 2020-07-10 Kewen Lin <linkw@linux.ibm.com>
12540 * tree-vect-loop.c (vect_transform_loop): Use LOOP_VINFO_NITERS which
12541 is adjusted by considering peeled prologue for non
12542 vect_use_loop_mask_for_alignment_p cases.
12544 2020-07-09 Peter Bergner <bergner@linux.ibm.com>
12547 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Define the MMA
12548 specific types __vector_quad and __vector_pair, and initialize the
12549 MMA built-ins if TARGET_EXTRA_BUILTINS is set.
12550 (mma_init_builtins): Don't test for mask set in rs6000_builtin_mask.
12551 Remove now unneeded mask variable.
12552 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add the
12553 OPTION_MASK_MMA flag for power10 if not already set.
12555 2020-07-09 Richard Biener <rguenther@suse.de>
12557 PR tree-optimization/96133
12558 * tree-vect-slp.c (vect_build_slp_tree_1): Compare load_p
12559 status between stmts.
12561 2020-07-09 H.J. Lu <hjl.tools@gmail.com>
12564 * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Enable FMA.
12565 * config/i386/sse.md (VF_AVX512VL_VF1_128_256): New.
12566 (rsqrt<mode>2): Replace VF1_128_256 with VF_AVX512VL_VF1_128_256.
12567 (rsqrtv16sf2): Removed.
12569 2020-07-09 Richard Biener <rguenther@suse.de>
12571 * tree-vectorizer.h (vect_verify_datarefs_alignment): Remove.
12572 (vect_slp_analyze_and_verify_instance_alignment): Rename to ...
12573 (vect_slp_analyze_instance_alignment): ... this.
12574 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove.
12575 (vect_verify_datarefs_alignment): Likewise.
12576 (vect_enhance_data_refs_alignment): Do not call
12577 vect_verify_datarefs_alignment.
12578 (vect_slp_analyze_node_alignment): Rename from
12579 vect_slp_analyze_and_verify_node_alignment and do not
12580 call verify_data_ref_alignment.
12581 (vect_slp_analyze_instance_alignment): Rename from
12582 vect_slp_analyze_and_verify_instance_alignment.
12583 * tree-vect-stmts.c (vectorizable_store): Dump when
12584 we vectorize an unaligned access.
12585 (vectorizable_load): Likewise.
12586 * tree-vect-loop.c (vect_analyze_loop_2): Do not call
12587 vect_verify_datarefs_alignment.
12588 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust.
12590 2020-07-09 Bin Cheng <bin.cheng@linux.alibaba.com>
12592 PR tree-optimization/95804
12593 * tree-loop-distribution.c (break_alias_scc_partitions): Force
12594 negative post order to reduction partition.
12596 2020-07-09 Jakub Jelinek <jakub@redhat.com>
12598 * omp-general.h (struct omp_for_data): Add min_inner_iterations
12599 and factor members.
12600 * omp-general.c (omp_extract_for_data): Initialize them and remember
12601 them in OMP_CLAUSE_COLLAPSE_COUNT if needed and restore from there.
12602 * omp-expand.c (expand_omp_for_init_counts): Fix up computation of
12603 counts[fd->last_nonrect] if fd->loop.n2 is INTEGER_CST.
12604 (expand_omp_for_init_vars): For
12605 fd->first_nonrect + 1 == fd->last_nonrect loops with for now
12606 INTEGER_CST fd->loop.n2 find quadratic equation roots instead of
12607 using fallback method when possible.
12609 2020-07-09 Omar Tahir <omar.tahir@arm.com>
12611 * ira.c (move_unallocated_pseudos): Zero first_moveable_pseudo and
12612 last_moveable_pseudo before returning.
12614 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
12616 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
12617 __ARM_FEATURE_BTI_DEFAULT support.
12619 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
12621 * config/aarch64/aarch64-protos.h (aarch64_indirect_call_asm):
12623 * config/aarch64/aarch64.c (aarch64_regno_regclass): Handle new
12624 stub registers class.
12625 (aarch64_class_max_nregs): Likewise.
12626 (aarch64_register_move_cost): Likewise.
12627 (aarch64_sls_shared_thunks): Global array to store stub labels.
12628 (aarch64_sls_emit_function_stub): New.
12629 (aarch64_create_blr_label): New.
12630 (aarch64_sls_emit_blr_function_thunks): New.
12631 (aarch64_sls_emit_shared_blr_thunks): New.
12632 (aarch64_asm_file_end): New.
12633 (aarch64_indirect_call_asm): New.
12634 (TARGET_ASM_FILE_END): Use aarch64_asm_file_end.
12635 (TARGET_ASM_FUNCTION_EPILOGUE): Use
12636 aarch64_sls_emit_blr_function_thunks.
12637 * config/aarch64/aarch64.h (STB_REGNUM_P): New.
12638 (enum reg_class): Add STUB_REGS class.
12639 (machine_function): Introduce `call_via` array for
12640 function-local stub labels.
12641 * config/aarch64/aarch64.md (*call_insn, *call_value_insn): Use
12642 aarch64_indirect_call_asm to emit code when hardening BLR
12644 * config/aarch64/constraints.md (Ucr): New constraint
12645 representing registers for indirect calls. Is GENERAL_REGS
12646 usually, and STUB_REGS when hardening BLR instruction against
12648 * config/aarch64/predicates.md (aarch64_general_reg): STUB_REGS class
12649 is also a general register.
12651 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
12653 * config/aarch64/aarch64-protos.h (aarch64_sls_barrier): New.
12654 * config/aarch64/aarch64.c (aarch64_output_casesi): Emit
12655 speculation barrier after BR instruction if needs be.
12656 (aarch64_trampoline_init): Handle ptr_mode value & adjust size
12658 (aarch64_sls_barrier): New.
12659 (aarch64_asm_trampoline_template): Add needed barriers.
12660 * config/aarch64/aarch64.h (AARCH64_ISA_SB): New.
12662 (TRAMPOLINE_SIZE): Account for barrier.
12663 * config/aarch64/aarch64.md (indirect_jump, *casesi_dispatch,
12664 simple_return, *do_return, *sibcall_insn, *sibcall_value_insn):
12665 Emit barrier if needs be, also account for possible barrier using
12666 "sls_length" attribute.
12667 (sls_length): New attribute.
12668 (length): Determine default using any non-default sls_length
12671 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
12673 * config/aarch64/aarch64-protos.h (aarch64_harden_sls_retbr_p):
12675 (aarch64_harden_sls_blr_p): New.
12676 * config/aarch64/aarch64.c (enum aarch64_sls_hardening_type):
12678 (aarch64_harden_sls_retbr_p): New.
12679 (aarch64_harden_sls_blr_p): New.
12680 (aarch64_validate_sls_mitigation): New.
12681 (aarch64_override_options): Parse options for SLS mitigation.
12682 * config/aarch64/aarch64.opt (-mharden-sls): New option.
12683 * doc/invoke.texi: Document new option.
12685 2020-07-09 Kewen Lin <linkw@linux.ibm.com>
12687 * tree-vect-stmts.c (vectorizable_condition): Prohibit vectorization
12688 with partial vectors explicitly excepting for EXTRACT_LAST_REDUCTION
12689 or nested-cycle reduction.
12691 2020-07-09 Kewen Lin <linkw@linux.ibm.com>
12693 * tree-vect-loop.c (vect_analyze_loop_2): Update dumping string
12694 for fully masking to be more common.
12696 2020-07-09 Kito Cheng <kito.cheng@sifive.com>
12698 * config/riscv/riscv.md (get_thread_pointer<mode>): New.
12699 (TP_REGNUM): Ditto.
12700 * doc/extend.texi (Target Builtins): Add RISC-V built-in section.
12701 Document __builtin_thread_pointer.
12703 2020-07-09 Kito Cheng <kito.cheng@sifive.com>
12705 * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
12706 Abort if any arguments on stack.
12708 2020-07-08 Eric Botcazou <ebotcazou@adacore.com>
12710 * gimple-fold.c (gimple_fold_builtin_memory_op): Do not fold if
12711 either type has reverse scalar storage order.
12712 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not propagate through
12713 a memory copy if either type has reverse scalar storage order.
12715 2020-07-08 Tobias Burnus <tobias@codesourcery.com>
12717 * config/gcn/mkoffload.c (compile_native, main): Pass -fPIC/-fpic
12718 on to the native compiler, if used.
12719 * config/nvptx/mkoffload.c (compile_native, main): Likewise.
12721 2020-07-08 Will Schmidt <will_schmidt@vnet.ibm.com>
12723 * config/rs6000/altivec.h (vec_vmsumudm): New define.
12724 * config/rs6000/altivec.md (UNSPEC_VMSUMUDM): New unspec.
12725 (altivec_vmsumudm): New define_insn.
12726 * config/rs6000/rs6000-builtin.def (altivec_vmsumudm): New BU_ALTIVEC_3
12727 entry. (vmsumudm): New BU_ALTIVEC_OVERLOAD_3 entry.
12728 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add entries for
12729 ALTIVEC_BUILTIN_VMSUMUDM variants of vec_msum.
12730 * doc/extend.texi: Add document for vmsumudm behind vmsum.
12732 2020-07-08 Richard Biener <rguenther@suse.de>
12734 * tree-vect-stmts.c (get_group_load_store_type): Pass
12735 in the SLP node and the alignment support scheme output.
12737 (get_load_store_type): Likewise.
12738 (vectorizable_store): Adjust.
12739 (vectorizable_load): Likewise.
12741 2020-07-08 Richard Sandiford <richard.sandiford@arm.com>
12743 PR middle-end/95694
12744 * expr.c (expand_expr_real_2): Get the mode from the type rather
12745 than the rtx, and assert that it is consistent with the mode of
12746 the rtx (where known). Optimize all constant integers, not just
12747 those that can be represented in poly_int64.
12749 2020-07-08 Kewen Lin <linkw@linux.ibm.com>
12751 * config/rs6000/vsx.md (len_load_v16qi): New define_expand.
12752 (len_store_v16qi): Likewise.
12754 2020-07-08 Kewen Lin <linkw@linux.ibm.com>
12756 * doc/md.texi (len_load_@var{m}): Document.
12757 (len_store_@var{m}): Likewise.
12758 * internal-fn.c (len_load_direct): New macro.
12759 (len_store_direct): Likewise.
12760 (expand_len_load_optab_fn): Likewise.
12761 (expand_len_store_optab_fn): Likewise.
12762 (direct_len_load_optab_supported_p): Likewise.
12763 (direct_len_store_optab_supported_p): Likewise.
12764 (expand_mask_load_optab_fn): New macro. Original renamed to ...
12765 (expand_partial_load_optab_fn): ... here. Add handlings for
12767 (expand_mask_store_optab_fn): New macro. Original renamed to ...
12768 (expand_partial_store_optab_fn): ... here. Add handlings for
12770 (internal_load_fn_p): Handle IFN_LEN_LOAD.
12771 (internal_store_fn_p): Handle IFN_LEN_STORE.
12772 (internal_fn_stored_value_index): Handle IFN_LEN_STORE.
12773 * internal-fn.def (LEN_LOAD): New internal function.
12774 (LEN_STORE): Likewise.
12775 * optabs.def (len_load_optab, len_store_optab): New optab.
12777 2020-07-07 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
12779 * config/aarch64/aarch64.c (thunderx2t99_regmove_cost,
12780 thunderx2t99_vector_cost): Likewise.
12782 2020-07-07 Richard Biener <rguenther@suse.de>
12784 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Fix
12785 group overlap condition to allow negative step DR groups.
12786 * tree-vect-stmts.c (get_group_load_store_type): For
12787 multi element SLP groups force VMAT_STRIDED_SLP when the step
12790 2020-07-07 Qian Jianhua <qianjh@cn.fujitsu.com>
12792 * doc/generic.texi: Fix typo.
12794 2020-07-07 Richard Biener <rguenther@suse.de>
12796 * lto-streamer-out.c (cmp_symbol_files): Use the computed
12797 order map to sort symbols from the same sub-file together.
12798 (lto_output): Compute a map of sub-file to an order number
12799 it appears in the symbol output array.
12801 2020-07-06 Richard Biener <rguenther@suse.de>
12803 PR tree-optimization/96075
12804 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12805 TYPE_SIZE_UNIT of the vector component type instead of DR_STEP
12806 for the misalignment calculation for negative step.
12808 2020-07-06 Roger Sayle <roger@nextmovesoftware.com>
12810 * config/nvptx/nvptx.md (*vadd_addsi4): New instruction.
12811 (*vsub_addsi4): New instruction.
12813 2020-07-06 Hans-Peter Nilsson <hp@axis.com>
12815 * config/cris/cris.md (movulsr): New peephole2.
12817 2020-07-06 Hans-Peter Nilsson <hp@axis.com>
12819 * config/cris/sync.md ("cris_atomic_fetch_<atomic_op_name><mode>_1"):
12820 Correct gcc_assert of overlapping operands.
12822 2020-07-05 Hans-Peter Nilsson <hp@axis.com>
12824 * config/cris/cris.c (cris_select_cc_mode): Always return
12825 CC_NZmode for matching comparisons. Clarify comments.
12826 * config/cris/cris-modes.def: Clarify mode comment.
12827 * config/cris/cris.md (plusminus, plusminusumin, plusumin): New
12829 (addsub, addsubbo, nd): New code iterator attributes.
12830 ("*<addsub><su>qihi"): Rename from "*extopqihi". Use code
12831 iterator constructs instead of match_operator constructs.
12832 ("*<addsubbo><su><nd><mode>si<setnz>"): Similar from
12833 "*extop<mode>si<setnz>".
12834 ("*add<su>qihi_swap"): Similar from "*addxqihi_swap".
12835 ("*<addsubbo><su><nd><mode>si<setnz>_swap"): Similar from
12836 "*extop<mode>si<setnz>_swap".
12838 2020-07-05 Hans-Peter Nilsson <hp@axis.com>
12840 * config/cris/cris.md ("*extopqihi", "*extop<mode>si<setnz>_swap")
12841 ("*extop<mode>si<setnz>", "*addxqihi_swap"): Reinstate.
12843 2020-07-03 Eric Botcazou <ebotcazou@adacore.com>
12845 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold calls that
12846 were initially created for the assignment of a variable-sized
12847 object and whose source is now a string constant.
12848 * gimple-ssa-store-merging.c (struct merged_store_group): Document
12849 STRING_CST for rhs_code field.
12850 Add string_concatenation boolean field.
12851 (merged_store_group::merged_store_group): Initialize it as well as
12852 bit_insertion here.
12853 (merged_store_group::do_merge): Set it upon seeing a STRING_CST.
12854 Also set bit_insertion here upon seeing a BIT_INSERT_EXPR.
12855 (merged_store_group::apply_stores): Clear it for small regions.
12856 Do not create a power-of-2-sized buffer if it is still true.
12857 And do not set bit_insertion here again.
12858 (encode_tree_to_bitpos): Deal with BLKmode for the expression.
12859 (merged_store_group::can_be_merged_into): Deal with STRING_CST.
12860 (imm_store_chain_info::coalesce_immediate_stores): Set bit_insertion
12861 to true after changing MEM_REF stores into BIT_INSERT_EXPR stores.
12862 (count_multiple_uses): Return 0 for STRING_CST.
12863 (split_group): Do not split the group for a string concatenation.
12864 (imm_store_chain_info::output_merged_store): Constify and rename
12865 some local variables. Build an array type as destination type
12866 for a string concatenation, as well as a zero mask, and call
12867 build_string to build the source.
12868 (lhs_valid_for_store_merging_p): Return true for VIEW_CONVERT_EXPR.
12869 (pass_store_merging::process_store): Accept STRING_CST on the RHS.
12870 * gimple.h (gimple_call_alloca_for_var_p): New accessor function.
12871 * gimplify.c (gimplify_modify_expr_to_memcpy): Set alloca_for_var.
12872 * tree.h (CALL_ALLOCA_FOR_VAR_P): Document it for BUILT_IN_MEMCPY.
12874 2020-07-03 Martin Jambor <mjambor@suse.cz>
12877 * ipa-sra.c (all_callee_accesses_present_p): Do not accept type
12878 mismatched accesses.
12880 2020-07-03 Roger Sayle <roger@nextmovesoftware.com>
12882 * config/nvptx/nvptx.md (popcount<mode>2): New instructions.
12883 (mulhishi3, mulsidi3, umulhisi3, umulsidi3): New instructions.
12885 2020-07-03 Martin Liska <mliska@suse.cz>
12886 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12889 * gcov-dump.c (tag_function): Use gcov_position_t
12892 2020-07-03 Richard Biener <rguenther@suse.de>
12894 PR tree-optimization/96037
12895 * tree-vect-stmts.c (vect_is_simple_use): Initialize *slp_def.
12897 2020-07-03 Richard Biener <rguenther@suse.de>
12899 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Cost the
12900 original non-pattern stmts, look at the pattern stmt
12901 vectorization status.
12903 2020-07-03 Andrew Stubbs <ams@codesourcery.com>
12905 * config/gcn/gcn-valu.md (fold_left_plus_<mode>): New.
12907 2020-07-03 Richard Biener <rguenther@suse.de>
12909 * tree-vectorizer.h (vec_info::insert_on_entry): New.
12910 (vec_info::insert_seq_on_entry): Likewise.
12911 * tree-vectorizer.c (vec_info::insert_on_entry): Implement.
12912 (vec_info::insert_seq_on_entry): Likewise.
12913 * tree-vect-stmts.c (vect_init_vector_1): Use
12914 vec_info::insert_on_entry.
12915 (vect_finish_stmt_generation): Set modified bit after
12917 * tree-vect-slp.c (vect_create_constant_vectors): Simplify
12918 by using vec_info::insert_seq_on_entry and bypassing
12920 (vect_schedule_slp_instance): Deal with all-constant
12923 2020-07-03 Roger Sayle <roger@nextmovesoftware.com>
12924 Tom de Vries <tdevries@suse.de>
12927 * config/nvptx/nvptx.c (nvptx_vector_alignment): Use tree_to_uhwi
12928 to access TYPE_SIZE (type). Return at least the mode's alignment.
12930 2020-07-02 Richard Biener <rguenther@suse.de>
12932 PR tree-optimization/96028
12933 * tree-vect-slp.c (vect_slp_convert_to_external): Make sure
12934 we have scalar stmts to use.
12935 (vect_slp_analyze_node_operations): When analyzing a child
12936 failed try externalizing the parent node.
12938 2020-07-02 Martin Jambor <mjambor@suse.cz>
12941 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Adjust
12942 argument index if necessary.
12944 2020-07-02 Martin Liska <mliska@suse.cz>
12946 PR middle-end/95830
12947 * tree-vect-generic.c (expand_vector_condition): Forward declaration.
12948 (expand_vector_comparison): Do not expand a comparison if all
12949 uses are consumed by a VEC_COND_EXPR.
12950 (expand_vector_operation): Change void return type to bool.
12951 (expand_vector_operations_1): Pass dce_ssa_names.
12953 2020-07-02 Ilya Leoshkevich <iii@linux.ibm.com>
12956 * system.h (NULL): Redefine to nullptr.
12958 2020-07-02 Jakub Jelinek <jakub@redhat.com>
12960 PR tree-optimization/95857
12961 * tree-cfg.c (group_case_labels_stmt): When removing an unreachable
12962 base_bb, remember all forced and non-local labels on it and later
12963 treat those as if they have NULL label_to_block. Formatting fix.
12964 Fix a comment typo.
12966 2020-07-02 Richard Biener <rguenther@suse.de>
12968 PR tree-optimization/96022
12969 * tree-vect-stmts.c (vectorizable_shift): Only use the
12970 first vector stmt when extracting the scalar shift amount.
12971 * tree-vect-slp.c (vect_build_slp_tree_2): Also build unary
12972 nodes with all-scalar children from scalars but not stores.
12973 (vect_analyze_slp_instance): Mark the node not failed.
12975 2020-07-02 Felix Yang <felix.yang@huawei.com>
12977 PR tree-optimization/95961
12978 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use the
12979 number of scalars instead of the number of vectors as an upper bound
12980 for the loop saving info about DR in the hash table. Remove unused
12983 2020-07-02 Jakub Jelinek <jakub@redhat.com>
12985 * omp-expand.c (expand_omp_for): Diagnose non-rectangular loops with
12986 invalid steps - ((m2 - m1) * incr_outer) % incr must be 0 in valid
12987 OpenMP non-rectangular loops. Use XALLOCAVEC.
12989 2020-07-02 Martin Liska <mliska@suse.cz>
12991 PR gcov-profile/95348
12992 * coverage.c (read_counts_file): Read only COUNTERS that are
12994 * gcov-dump.c (tag_function): Change signature from unsigned to
12996 (tag_blocks): Likewise.
12997 (tag_arcs): Likewise.
12998 (tag_lines): Likewise.
12999 (tag_counters): Likewise.
13000 (tag_summary): Likewise.
13001 * gcov.c (read_count_file): Read all non-zero counters
13004 2020-07-02 Kito Cheng <kito.cheng@sifive.com>
13006 * config/riscv/multilib-generator (arch_canonicalize): Handle
13007 multi-letter extension.
13008 Using underline as separator between different extensions.
13010 2020-07-01 Pip Cet <pipcet@gmail.com>
13012 * spellcheck.c (test_data): Add problematic strings.
13013 (test_metric_conditions): Don't test the triangle inequality
13014 condition, which our distance function does not satisfy.
13016 2020-07-01 Omar Tahir <omar.tahir@arm.com>
13018 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Always
13019 generate a BTI instruction.
13021 2020-07-01 Jeff Law <law@redhat.com>
13023 PR tree-optimization/94882
13024 * match.pd (x & y) - (x | y) - 1 -> ~(x ^ y): New simplification.
13026 2020-07-01 Jeff Law <law@redhat.com>
13028 * config/m68k/m68k.c (m68k_output_btst): Drop "register" keyword.
13029 (emit_move_sequence, output_iorsi3, output_xorsi3): Likewise.
13031 2020-07-01 Andrea Corallo <andrea.corallo@arm.com>
13033 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add enums
13034 for 64bits fpsr/fpcr getter setters builtin variants.
13035 (aarch64_init_fpsr_fpcr_builtins): New function.
13036 (aarch64_general_init_builtins): Modify to make use of the later.
13037 (aarch64_expand_fpsr_fpcr_setter): New function.
13038 (aarch64_general_expand_builtin): Modify to make use of the later.
13039 * config/aarch64/aarch64.md (@aarch64_set_<fpscr_name><GPI:mode>)
13040 (@aarch64_get_<fpscr_name><GPI:mode>): New patterns replacing and
13041 generalizing 'get_fpcr', 'set_fpsr'.
13042 * config/aarch64/iterators.md (GET_FPSCR, SET_FPSCR): New int
13044 (fpscr_name): New int attribute.
13045 * doc/extend.texi (__builtin_aarch64_get_fpcr64)
13046 (__builtin_aarch64_set_fpcr64, __builtin_aarch64_get_fpsr64)
13047 (__builtin_aarch64_set_fpsr64): Add into AArch64 Built-in
13050 2020-07-01 Martin Liska <mliska@suse.cz>
13052 * gcov.c (print_usage): Avoid trailing space for -j option.
13054 2020-07-01 Richard Biener <rguenther@suse.de>
13056 PR tree-optimization/95839
13057 * tree-vect-slp.c (vect_slp_tree_uniform_p): Pre-existing
13058 vectors are not uniform.
13059 (vect_build_slp_tree_1): Handle BIT_FIELD_REFs of
13061 (vect_build_slp_tree_2): For groups of lane extracts
13062 from a vector register generate a permute node
13063 with a special child representing the pre-existing vector.
13064 (vect_prologue_cost_for_slp): Pre-existing vectors cost nothing.
13065 (vect_slp_analyze_node_operations): Use SLP_TREE_LANES.
13066 (vectorizable_slp_permutation): Do not generate or cost identity
13068 (vect_schedule_slp_instance): Handle pre-existing vector
13069 that are function arguments.
13071 2020-07-01 Richard Biener <rguenther@suse.de>
13073 * system.h (INCLUDE_ISL): New guarded include.
13074 * graphite-dependences.c: Use it.
13075 * graphite-isl-ast-to-gimple.c: Likewise.
13076 * graphite-optimize-isl.c: Likewise.
13077 * graphite-poly.c: Likewise.
13078 * graphite-scop-detection.c: Likewise.
13079 * graphite-sese-to-poly.c: Likewise.
13080 * graphite.c: Likewise.
13081 * graphite.h: Drop the includes here.
13083 2020-07-01 Martin Liska <mliska@suse.cz>
13085 * gcov.c (print_usage): Shorted option description for -j
13088 2020-07-01 Martin Liska <mliska@suse.cz>
13090 * doc/gcov.texi: Rename 2 options.
13091 * gcov.c (print_usage): Rename -i,--json-format to
13092 -j,--json-format and -j,--human-readable to -H,--human-readable.
13093 (process_args): Fix up parsing. Document obsolete options and
13094 how are they changed.
13096 2020-07-01 Jeff Law <law@redhat.com>
13098 * config/pa/pa.c (pa_emit_move_sequence): Drop register keyword.
13099 (pa_output_ascii): Likewise.
13101 2020-07-01 Kito Cheng <kito.cheng@sifive.com>
13103 * common/config/riscv/riscv-common.c (riscv_subset_t): New field
13105 (riscv_subset_list::parsing_subset_version): Add parameter for
13106 indicate explicitly version, and handle explicitly version.
13107 (riscv_subset_list::handle_implied_ext): Ditto.
13108 (riscv_subset_list::add): Ditto.
13109 (riscv_subset_t::riscv_subset_t): Init new field.
13110 (riscv_subset_list::to_string): Always output version info if version
13111 explicitly specified.
13112 (riscv_subset_list::parsing_subset_version): Handle explicitly
13114 (riscv_subset_list::parse_std_ext): Ditto.
13115 (riscv_subset_list::parse_multiletter_ext): Ditto.
13117 2020-06-30 Richard Sandiford <richard.sandiford@arm.com>
13121 * config/aarch64/aarch64.c (aarch64_attribute_table): Add
13122 "Advanced SIMD type".
13123 (aarch64_comp_type_attributes): Check that the "Advanced SIMD type"
13124 attributes are equal.
13125 * config/aarch64/aarch64-builtins.c: Include stringpool.h and
13127 (aarch64_mangle_builtin_vector_type): Use the mangling recorded
13128 in the "Advanced SIMD type" attribute.
13129 (aarch64_init_simd_builtin_types): Add an "Advanced SIMD type"
13130 attribute to each Advanced SIMD type, using the mangled type
13131 as the attribute's single argument.
13133 2020-06-30 Christophe Lyon <christophe.lyon@linaro.org>
13136 * config/arm/arm.c (arm_handle_isr_attribute): Warn if
13137 -mgeneral-regs-only is not used.
13139 2020-06-30 Yang Yang <yangyang305@huawei.com>
13141 PR tree-optimization/95855
13142 * gimple-ssa-split-paths.c (is_feasible_trace): Add extra
13143 checks to recognize a missed if-conversion opportunity when
13144 judging whether to duplicate a block.
13146 2020-06-29 Segher Boessenkool <segher@kernel.crashing.org>
13148 * doc/extend.texi: Change references to "future architecture" to
13149 "ISA 3.1", "-mcpu=future" to "-mcpu=power10", and remove vaguer
13150 references to "future" (because the future is now).
13152 2020-06-29 Segher Boessenkool <segher@kernel.crashing.org>
13154 * config/rs6000/rs6000.md (isa): Rename "fut" to "p10".
13156 2020-06-29 Roger Sayle <roger@nextmovesoftware.com>
13158 * simplify-rtx.c (simplify_distributive_operation): New function
13159 to un-distribute a binary operation of two binary operations.
13160 (X & C) ^ (Y & C) to (X ^ Y) & C, when C is simple (i.e. a constant).
13161 (simplify_binary_operation_1) <IOR, XOR, AND>: Call it from here
13163 (test_scalar_int_ops): New function for unit self-testing
13164 scalar integer transformations in simplify-rtx.c.
13165 (test_scalar_ops): Call test_scalar_int_ops for each integer mode.
13166 (simplify_rtx_c_tests): Call test_scalar_ops.
13168 2020-06-29 Richard Biener <rguenther@suse.de>
13170 PR tree-optimization/95916
13171 * tree-vect-slp.c (vect_schedule_slp_instance): Explicitely handle
13172 the case of not vectorized externals.
13174 2020-06-29 Richard Biener <rguenther@suse.de>
13176 * tree-vectorizer.h: Do not include <utility>.
13178 2020-06-29 Martin Liska <mliska@suse.cz>
13180 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Use gsi_bb
13181 instead of gimple_stmt_iterator::bb.
13182 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
13183 * tree-vectorizer.h: Likewise.
13185 2020-06-29 Andrew Stubbs <ams@codesourcery.com>
13187 * config/gcn/gcn-hsa.h (DBX_REGISTER_NUMBER): New macro.
13188 * config/gcn/gcn-protos.h (gcn_dwarf_register_number): New prototype.
13189 * config/gcn/gcn.c (gcn_expand_prologue): Add RTX_FRAME_RELATED_P
13190 and REG_FRAME_RELATED_EXPR to stack and frame pointer adjustments.
13191 (gcn_dwarf_register_number): New function.
13192 (gcn_dwarf_register_span): New function.
13193 (TARGET_DWARF_REGISTER_SPAN): New hook macro.
13195 2020-06-29 Kaipeng Zhou <zhoukaipeng3@huawei.com>
13197 PR tree-optimization/95854
13198 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Return NULL
13199 if operand 1 or 2 of a BIT_FIELD_REF cannot be converted to
13200 unsigned HOST_WIDE_INT.
13202 2020-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13204 * config/sparc/sparc.c (epilogue_renumber): Remove register.
13205 (sparc_print_operand_address): Likewise.
13206 (sparc_type_code): Likewise.
13207 (set_extends): Likewise.
13209 2020-06-29 Martin Liska <mliska@suse.cz>
13211 PR tree-optimization/92860
13212 * optc-save-gen.awk: Add exceptions for arc target.
13214 2020-06-29 Frederik Harwath <frederik@codesourcery.com>
13216 * doc/sourcebuild.texi: Describe globbing of the
13217 dump file scanning commands "suffix" argument.
13219 2020-06-28 Martin Sebor <msebor@redhat.com>
13222 * calls.c (maybe_warn_rdwr_sizes): Use location of argument if
13224 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same. Adjust
13226 * tree.c (get_nonnull_args): Consider the this pointer implicitly
13228 * var-tracking.c (deps_vec): New type.
13229 (var_loc_dep_vec): New function.
13230 (VAR_LOC_DEP_VEC): Use it.
13232 2020-06-28 Kewen Lin <linkw@linux.ibm.com>
13234 * internal-fn.c (direct_mask_load_optab_supported_p): Use
13235 convert_optab_supported_p instead of direct_optab_supported_p.
13236 (direct_mask_store_optab_supported_p): Likewise.
13238 2020-06-27 Aldy Hernandez <aldyh@redhat.com>
13240 * gimple-ssa-evrp-analyze.h (vrp_visit_cond_stmt): Use
13241 simplify_using_ranges class.
13242 * gimple-ssa-evrp.c (class evrp_folder): New simplify_using_ranges
13243 field. Adjust all methods to use new field.
13244 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Use
13245 simplify_using_ranges class.
13246 * tree-vrp.c (class vrp_folder): New simplify_using_ranges
13247 field. Adjust all methods to use new field.
13248 (simplify_stmt_for_jump_threading): Use simplify_using_ranges class.
13249 (vrp_prop::vrp_finalize): New vrp_folder argument.
13250 (execute_vrp): Pass folder to vrp_finalize. Use
13251 simplify_using_ranges class.
13252 Remove cleanup_edges_and_switches call.
13253 * vr-values.c (vr_values::op_with_boolean_value_range_p): Change
13254 value_range_equiv uses to value_range.
13255 (simplify_using_ranges::op_with_boolean_value_range_p): Use
13256 simplify_using_ranges class.
13257 (check_for_binary_op_overflow): Make static.
13258 (vr_values::extract_range_basic): Pass this to
13259 check_for_binary_op_overflow.
13260 (compare_range_with_value): Change value_range_equiv uses to
13262 (vr_values::vr_values): Initialize simplifier field.
13263 Remove uses of to_remove_edges and to_update_switch_stmts.
13264 (vr_values::~vr_values): Remove uses of to_remove_edges and
13265 to_update_switch_stmts.
13266 (vr_values::get_vr_for_comparison): Move to simplify_using_ranges
13268 (vr_values::compare_name_with_value): Same.
13269 (vr_values::compare_names): Same.
13270 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
13271 (vr_values::vrp_evaluate_conditional): Same.
13272 (vr_values::vrp_visit_cond_stmt): Same.
13273 (find_case_label_ranges): Change value_range_equiv uses to
13275 (vr_values::extract_range_from_stmt): Use simplify_using_ranges class.
13276 (vr_values::simplify_truth_ops_using_ranges): Move to
13277 simplify_using_ranges class.
13278 (vr_values::simplify_div_or_mod_using_ranges): Same.
13279 (vr_values::simplify_min_or_max_using_ranges): Same.
13280 (vr_values::simplify_abs_using_ranges): Same.
13281 (vr_values::simplify_bit_ops_using_ranges): Same.
13282 (test_for_singularity): Change value_range_equiv uses to
13284 (range_fits_type_p): Same.
13285 (vr_values::simplify_cond_using_ranges_1): Same.
13286 (vr_values::simplify_cond_using_ranges_2): Make extern.
13287 (vr_values::fold_cond): Move to simplify_using_ranges class.
13288 (vr_values::simplify_switch_using_ranges): Same.
13289 (vr_values::cleanup_edges_and_switches): Same.
13290 (vr_values::simplify_float_conversion_using_ranges): Same.
13291 (vr_values::simplify_internal_call_using_ranges): Same.
13292 (vr_values::two_valued_val_range_p): Same.
13293 (vr_values::simplify_stmt_using_ranges): Move to...
13294 (simplify_using_ranges::simplify): ...here.
13295 * vr-values.h (class vr_values): Move all the simplification of
13296 statements using ranges methods and code from here...
13297 (class simplify_using_ranges): ...to here.
13298 (simplify_cond_using_ranges_2): New extern prototype.
13300 2020-06-27 Jakub Jelinek <jakub@redhat.com>
13302 * omp-general.h (struct omp_for_data_loop): Add non_rect_referenced
13303 member, move outer member.
13304 (struct omp_for_data): Add first_nonrect and last_nonrect members.
13305 * omp-general.c (omp_extract_for_data): Initialize first_nonrect,
13306 last_nonrect and non_rect_referenced members.
13307 * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
13309 (expand_omp_for_init_vars): Add nonrect_bounds parameter. Handle
13310 non-rectangular loops.
13311 (extract_omp_for_update_vars): Likewise.
13312 (expand_omp_for_generic, expand_omp_for_static_nochunk,
13313 expand_omp_for_static_chunk, expand_omp_simd,
13314 expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): Adjust
13315 expand_omp_for_init_vars and extract_omp_for_update_vars callers.
13316 (expand_omp_for): Don't sorry on non-composite worksharing-loop or
13319 2020-06-26 H.J. Lu <hjl.tools@gmail.com>
13322 * config/i386/gnu-user.h (SUBTARGET_FRAME_POINTER_REQUIRED):
13324 * config/i386/i386.c (ix86_frame_pointer_required): Update
13327 2020-06-26 Yichao Yu <yyc1992@gmail.com>
13329 * multiple_target.c (redirect_to_specific_clone): Fix tests
13330 to check individual attribute rather than an attribute list.
13332 2020-06-26 Peter Bergner <bergner@linux.ibm.com>
13334 * config/rs6000/rs6000-call.c (cpu_is_info) <power10>: New.
13335 * doc/extend.texi (PowerPC Built-in Functions): Document power10,
13338 2020-06-26 Marek Polacek <polacek@redhat.com>
13340 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
13341 * doc/standards.texi (C Language): Correct the default dialect.
13342 (C++ Language): Update the default for C++ to gnu++17.
13344 2020-06-26 Eric Botcazou <ebotcazou@adacore.com>
13346 * tree-ssa-reassoc.c (dump_range_entry): New function.
13347 (debug_range_entry): New debug function.
13348 (update_range_test): Invoke dump_range_entry for dumping.
13349 (optimize_range_tests_to_bit_test): Merge the entry test in the
13350 bit test when possible and lower the profitability threshold.
13352 2020-06-26 Richard Biener <rguenther@suse.de>
13354 PR tree-optimization/95897
13355 * tree-vectorizer.h (vectorizable_induction): Remove
13356 unused gimple_stmt_iterator * parameter.
13357 * tree-vect-loop.c (vectorizable_induction): Likewise.
13358 (vect_analyze_loop_operations): Adjust.
13359 * tree-vect-stmts.c (vect_analyze_stmt): Likewise.
13360 (vect_transform_stmt): Likewise.
13361 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust
13362 for fold-left reductions, clarify existing reduction case.
13364 2020-06-25 Nick Clifton <nickc@redhat.com>
13366 * config/m32r/m32r.md (movsicc): Disable pattern.
13368 2020-06-25 Richard Biener <rguenther@suse.de>
13370 PR tree-optimization/95839
13371 * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove premature
13372 check on the number of datarefs.
13374 2020-06-25 Iain Sandoe <iain@sandoe.co.uk>
13376 * config/rs6000/rs6000-call.c (mma_init_builtins): Cast
13377 the insn_data n_operands value to unsigned.
13379 2020-06-25 Richard Biener <rguenther@suse.de>
13381 * tree-vect-slp.c (vect_schedule_slp_instance): Always use
13382 vector defs to determine insertion place.
13384 2020-06-25 H.J. Lu <hjl.tools@gmail.com>
13387 * config/i386/i386.h (PTA_ICELAKE_CLIENT): Remove PTA_CLWB.
13388 (PTA_ICELAKE_SERVER): Add PTA_CLWB.
13389 (PTA_TIGERLAKE): Add PTA_CLWB.
13391 2020-06-25 Richard Biener <rguenther@suse.de>
13393 PR tree-optimization/95866
13394 * tree-vect-stmts.c (vectorizable_shift): Reject incompatible
13395 vectorized shift operands. For scalar shifts use lane zero
13396 of a vectorized shift operand.
13398 2020-06-25 Martin Liska <mliska@suse.cz>
13400 PR tree-optimization/95745
13401 PR middle-end/95830
13402 * gimple-isel.cc (gimple_expand_vec_cond_exprs): Delete dead
13403 SSA_NAMEs used as the first argument of a VEC_COND_EXPR. Always
13405 * tree-vect-generic.c (expand_vector_condition): Remove dead
13406 SSA_NAMEs used as the first argument of a VEC_COND_EXPR.
13408 2020-06-24 Will Schmidt <will_schmidt@vnet.ibm.com>
13411 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Update.
13412 * config/rs6000/altivec.md (UNSPEC_CONVERT_4F32_8F16): New unspec.
13413 (convert_4f32_8f16): New define_expand
13414 * config/rs6000/rs6000-builtin.def (convert_4f32_8f16): New builtin define
13416 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_CONVERT_4F32_8F16): New
13417 overloaded builtin entry.
13418 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPHP): New unspec.
13419 (vsx_xvcvsphp): New define_insn.
13421 2020-06-24 Roger Sayle <roger@nextmovesoftware.com>
13422 Segher Boessenkool <segher@kernel.crashing.org>
13424 * simplify-rtx.c (simplify_unary_operation_1): Simplify rotates by 0.
13426 2020-06-24 Roger Sayle <roger@nextmovesoftware.com>
13428 * simplify-rtx.c (simplify_unary_operation_1): Simplify
13429 (parity (parity x)) as (parity x), i.e. PARITY is idempotent.
13431 2020-06-24 Richard Biener <rguenther@suse.de>
13433 PR tree-optimization/95866
13434 * tree-vect-slp.c (vect_slp_tree_uniform_p): New.
13435 (vect_build_slp_tree_2): Properly reset matches[0],
13436 ignore uniform constants.
13438 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
13441 * common/config/i386/cpuinfo.h (get_intel_cpu): Remove brand_id.
13442 (cpu_indicator_init): Likewise.
13443 * config/i386/driver-i386.c (host_detect_local_cpu): Updated.
13445 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
13448 * common/config/i386/cpuinfo.h (get_intel_cpu): Add Cooper Lake
13449 detection with AVX512BF16.
13451 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
13454 * common/config/i386/i386-isas.h: New file. Extracted from
13455 gcc/config/i386/i386-builtins.c.
13456 (_isa_names_table): Add option.
13457 (ISA_NAMES_TABLE_START): New.
13458 (ISA_NAMES_TABLE_END): Likewise.
13459 (ISA_NAMES_TABLE_ENTRY): Likewise.
13460 (isa_names_table): Defined with ISA_NAMES_TABLE_START,
13461 ISA_NAMES_TABLE_END and ISA_NAMES_TABLE_ENTRY. Add more ISAs
13462 from enum processor_features.
13463 * config/i386/driver-i386.c: Include
13464 "common/config/i386/cpuinfo.h" and
13465 "common/config/i386/i386-isas.h".
13466 (has_feature): New macro.
13467 (host_detect_local_cpu): Call cpu_indicator_init to get CPU
13468 features. Use has_feature to detect processor features. Call
13469 Call get_intel_cpu to get the newer Intel CPU name. Use
13470 isa_names_table to generate command-line options.
13471 * config/i386/i386-builtins.c: Include
13472 "common/config/i386/i386-isas.h".
13473 (_arch_names_table): Removed.
13474 (isa_names_table): Likewise.
13476 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
13479 * common/config/i386/cpuinfo.h: New file.
13480 (__processor_model): Moved from libgcc/config/i386/cpuinfo.h.
13481 (__processor_model2): New.
13482 (CHECK___builtin_cpu_is): New. Defined as empty if not defined.
13483 (has_cpu_feature): New function.
13484 (set_cpu_feature): Likewise.
13485 (get_amd_cpu): Moved from libgcc/config/i386/cpuinfo.c. Use
13486 CHECK___builtin_cpu_is. Return AMD CPU name.
13487 (get_intel_cpu): Moved from libgcc/config/i386/cpuinfo.c. Use
13488 Use CHECK___builtin_cpu_is. Return Intel CPU name.
13489 (get_available_features): Moved from libgcc/config/i386/cpuinfo.c.
13490 Also check FEATURE_3DNOW, FEATURE_3DNOWP, FEATURE_ADX,
13491 FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT, FEATURE_CLWB,
13492 FEATURE_CLZERO, FEATURE_CMPXCHG16B, FEATURE_CMPXCHG8B,
13493 FEATURE_ENQCMD, FEATURE_F16C, FEATURE_FSGSBASE, FEATURE_FXSAVE,
13494 FEATURE_HLE, FEATURE_IBT, FEATURE_LAHF_LM, FEATURE_LM,
13495 FEATURE_LWP, FEATURE_LZCNT, FEATURE_MOVBE, FEATURE_MOVDIR64B,
13496 FEATURE_MOVDIRI, FEATURE_MWAITX, FEATURE_OSXSAVE,
13497 FEATURE_PCONFIG, FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
13498 FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
13499 FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
13500 FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
13501 FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
13502 FEATURE_XSAVEOPT and FEATURE_XSAVES
13503 (cpu_indicator_init): Moved from libgcc/config/i386/cpuinfo.c.
13504 Also update cpu_model2.
13505 * common/config/i386/i386-cpuinfo.h (processor_vendor): Add
13506 Add VENDOR_CENTAUR, VENDOR_CYRIX and VENDOR_NSC.
13507 (processor_features): Moved from gcc/config/i386/i386-builtins.c.
13508 Renamed F_XXX to FEATURE_XXX. Add FEATURE_3DNOW, FEATURE_3DNOWP,
13509 FEATURE_ADX, FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT,
13510 FEATURE_CLWB, FEATURE_CLZERO, FEATURE_CMPXCHG16B,
13511 FEATURE_CMPXCHG8B, FEATURE_ENQCMD, FEATURE_F16C,
13512 FEATURE_FSGSBASE, FEATURE_FXSAVE, FEATURE_HLE, FEATURE_IBT,
13513 FEATURE_LAHF_LM, FEATURE_LM, FEATURE_LWP, FEATURE_LZCNT,
13514 FEATURE_MOVBE, FEATURE_MOVDIR64B, FEATURE_MOVDIRI,
13515 FEATURE_MWAITX, FEATURE_OSXSAVE, FEATURE_PCONFIG,
13516 FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
13517 FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
13518 FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
13519 FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
13520 FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
13521 FEATURE_XSAVEOPT, FEATURE_XSAVES and CPU_FEATURE_MAX.
13522 (SIZE_OF_CPU_FEATURES): New.
13523 * config/i386/i386-builtins.c (processor_features): Removed.
13524 (isa_names_table): Replace F_XXX with FEATURE_XXX.
13525 (fold_builtin_cpu): Change __cpu_features2 to an array.
13527 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
13530 * common/config/i386/i386-common.c (processor_alias_table): Add
13531 processor model and priority to each entry.
13532 (pta_size): Updated with -6.
13533 (num_arch_names): New.
13534 * common/config/i386/i386-cpuinfo.h: New file.
13535 * config/i386/i386-builtins.c (feature_priority): Removed.
13536 (processor_model): Likewise.
13537 (_arch_names_table): Likewise.
13538 (arch_names_table): Likewise.
13539 (_isa_names_table): Replace P_ZERO with P_NONE.
13540 (get_builtin_code_for_version): Replace P_ZERO with P_NONE. Use
13541 processor_alias_table.
13542 (fold_builtin_cpu): Replace arch_names_table with
13543 processor_alias_table.
13544 * config/i386/i386.h: Include "common/config/i386/i386-cpuinfo.h".
13545 (pta): Add model and priority.
13546 (num_arch_names): New.
13548 2020-06-24 Richard Biener <rguenther@suse.de>
13550 * tree-vectorizer.h (vect_find_first_scalar_stmt_in_slp):
13552 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
13553 Simplify for new position of vectorized SLP loads.
13554 (vect_slp_analyze_node_dependences): Adjust for it.
13555 (vect_slp_analyze_and_verify_node_alignment): Compute alignment
13556 for the first stmts dataref.
13557 * tree-vect-slp.c (vect_find_first_scalar_stmt_in_slp): New.
13558 (vect_schedule_slp_instance): Emit loads before the
13560 * tree-vect-stmts.c (vectorizable_load): Do what the comment
13561 says and use vect_find_first_scalar_stmt_in_slp.
13563 2020-06-24 Richard Biener <rguenther@suse.de>
13565 PR tree-optimization/95856
13566 * tree-vectorizer.c (vect_stmt_dominates_stmt_p): Honor
13569 2020-06-24 Jakub Jelinek <jakub@redhat.com>
13571 PR middle-end/95810
13572 * fold-const.c (fold_cond_expr_with_comparison): Optimize
13573 A <= 0 ? A : -A into (type)-absu(A) rather than -abs(A).
13575 2020-06-24 Jakub Jelinek <jakub@redhat.com>
13577 * omp-low.c (lower_omp_for): Fix two pastos.
13579 2020-06-24 Martin Liska <mliska@suse.cz>
13581 * optc-save-gen.awk: Compare string options in cl_optimization_compare
13584 2020-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
13586 * config.gcc: Identify power10 as a 64-bit processor and as valid
13587 for --with-cpu and --with-tune.
13589 2020-06-23 David Edelsohn <dje.gcc@gmail.com>
13591 * Makefile.in (LANG_MAKEFRAGS): Same.
13592 (tmake_file): Use -include.
13593 (xmake_file): Same.
13595 2020-06-23 Michael Meissner <meissner@linux.ibm.com>
13597 * REVISION: Delete file meant for a private branch.
13599 2020-06-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
13602 * config/arm/arm.c: (cmse_nonsecure_entry_clear_before_return): Use
13603 'callee_saved_reg_p' instead of 'calL_used_or_fixed_reg_p'.
13605 2020-06-23 Alexandre Oliva <oliva@adacore.com>
13607 * collect-utils.h (dumppfx): New.
13608 * collect-utils.c (dumppfx): Likewise.
13609 * lto-wrapper.c (run_gcc): Set global dumppfx.
13610 (compile_offload_image): Pass a -dumpbase on to mkoffload.
13611 * config/nvptx/mkoffload.c (ptx_dumpbase): New.
13612 (main): Handle incoming -dumpbase. Set ptx_dumpbase. Obey
13614 (compile_native): Pass -dumpbase et al to compiler.
13615 * config/gcn/mkoffload.c (gcn_dumpbase): New.
13616 (main): Handle incoming -dumpbase. Set gcn_dumpbase. Obey
13617 save_temps. Pass -dumpbase et al to offload target compiler.
13618 (compile_native): Pass -dumpbase et al to compiler.
13620 2020-06-23 Michael Meissner <meissner@linux.ibm.com>
13622 * REVISION: New file.
13624 2020-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13626 * config/rs6000/altivec.h: Use _ARCH_PWR10, not _ARCH_PWR_FUTURE.
13627 Update comment for ISA 3.1.
13628 * config/rs6000/altivec.md: Use TARGET_POWER10, not TARGET_FUTURE.
13629 * config/rs6000/driver-rs6000.c (asm_names): Use -mpwr10 for power10
13630 on AIX, and -mpower10 elsewhere.
13631 * config/rs6000/future.md: Delete.
13632 * config/rs6000/linux64.h: Update comments. Use TARGET_POWER10, not
13634 * config/rs6000/power10.md: New file.
13635 * config/rs6000/ppc-auxv.h: Use PPC_PLATFORM_POWER10, not
13636 PPC_PLATFORM_FUTURE.
13637 * config/rs6000/rs6000-builtin.def: Update comments. Use BU_P10V_*
13638 names instead of BU_FUTURE_V_* names. Use RS6000_BTM_P10 instead of
13639 RS6000_BTM_FUTURE. Use P10_BUILTIN_* instead of FUTURE_BUILTIN_*.
13640 Use BU_P10_* instead of BU_FUTURE_*.
13641 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13642 _ARCH_PWR10 instead of _ARCH_PWR_FUTURE.
13643 (altivec_resolve_overloaded_builtin): Use P10_BUILTIN_VEC_XXEVAL, not
13644 FUTURE_BUILTIN_VEC_XXEVAL.
13645 * config/rs6000/rs6000-call.c: Use P10_BUILTIN_*, not FUTURE_BUILTIN_*.
13646 Update compiler messages.
13647 * config/rs6000/rs6000-cpus.def: Update comments. Use ISA_3_1_*, not
13648 ISA_FUTURE_*. Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE.
13649 * config/rs6000/rs6000-opts.h: Use PROCESSOR_POWER10, not
13651 * config/rs6000/rs6000-string.c: Ditto.
13652 * config/rs6000/rs6000-tables.opt (rs6000_cpu_opt_value): Use "power10"
13653 instead of "future", reorder it to right after "power9".
13654 * config/rs6000/rs6000.c: Update comments. Use OPTION_MASK_POWER10,
13655 not OPTION_MASK_FUTURE. Use TARGET_POWER10, not TARGET_FUTURE. Use
13656 RS6000_BTM_P10, not RS6000_BTM_FUTURE. Update compiler messages.
13657 Use PROCESSOR_POWER10, not PROCESSOR_FUTURE. Use ISA_3_1_MASKS_SERVER,
13658 not ISA_FUTURE_MASKS_SERVER.
13659 (rs6000_opt_masks): Use "power10" instead of "future".
13660 (rs6000_builtin_mask_names): Ditto.
13661 (rs6000_disable_incompatible_switches): Ditto.
13662 * config/rs6000/rs6000.h: Use -mpower10, not -mfuture. Use
13663 -mcpu=power10, not -mcpu=future. Use MASK_POWER10, not MASK_FUTURE.
13664 Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE. Use RS6000_BTM_P10,
13665 not RS6000_BTM_FUTURE.
13666 * config/rs6000/rs6000.md: Use "power10", not "future". Use
13667 TARGET_POWER10, not TARGET_FUTURE. Include "power10.md", not
13669 * config/rs6000/rs6000.opt (mfuture): Delete.
13671 * config/rs6000/t-rs6000: Use "power10.md", not "future.md".
13672 * config/rs6000/vsx.md: Use TARGET_POWER10, not TARGET_FUTURE.
13674 2020-06-22 Richard Sandiford <richard.sandiford@arm.com>
13676 * coretypes.h (first_type): Delete.
13677 * recog.h (insn_gen_fn::operator()): Go back to using a decltype.
13679 2020-06-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13681 * doc/sourcebuild.texi (arm_v8_1m_mve_fp_ok): Add item.
13682 (arm_mve_hw): Likewise.
13684 2020-06-22 H.J. Lu <hjl.tools@gmail.com>
13687 * config/i386/i386.c (ix86_dirflag_mode_needed): Skip
13690 2020-06-22 Richard Biener <rguenther@suse.de>
13692 PR tree-optimization/95770
13693 * tree-vect-slp.c (vect_schedule_slp_instance): Also consider
13696 2020-06-22 Andrew Stubbs <ams@codesourcery.com>
13698 * config/gcn/gcn.c (gcn_function_arg): Disallow vector arguments.
13699 (gcn_return_in_memory): Return vectors in memory.
13701 2020-06-22 Jakub Jelinek <jakub@redhat.com>
13703 * omp-general.c (omp_extract_for_data): For triangular loops with
13704 all loop invariant expressions constant where the innermost loop is
13705 executed at least once compute number of iterations at compile time.
13707 2020-06-22 Kito Cheng <kito.cheng@sifive.com>
13709 * config/riscv/riscv.h (ASM_SPEC): Remove riscv_expand_arch call.
13710 (DRIVER_SELF_SPECS): New.
13712 2020-06-22 Kito Cheng <kito.cheng@sifive.com>
13714 * config/riscv/riscv-builtins.c (RISCV_FTYPE_NAME0): New.
13715 (RISCV_FTYPE_ATYPES0): New.
13716 (riscv_builtins): Using RISCV_USI_FTYPE for frflags.
13717 * config/riscv/riscv-ftypes.def: Remove VOID argument.
13719 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
13721 * config.gcc: Use t-aix64, biarch64 and default64 for cpu_is_64bit.
13722 * config/rs6000/aix72.h (ASM_SPEC): Remove aix64 option.
13725 (ASM_CPU_SPEC): Remove vsx and altivec options.
13726 (CPP_SPEC_COMMON): Rename from CPP_SPEC.
13729 (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
13730 (TARGET_DEFAULT): Only define if not BIARCH.
13731 (LIB_SPEC_COMMON): Rename from LIB_SPEC.
13734 (LINK_SPEC_COMMON): Rename from LINK_SPEC.
13735 (LINK_SPEC32): New.
13736 (LINK_SPEC64): New.
13737 (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
13738 (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
13740 (CPLUSPLUS_CPP_SPEC): Same.
13743 (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
13744 * config/rs6000/defaultaix64.h: New file.
13745 * config/rs6000/t-aix64: New file.
13747 2020-06-21 Peter Bergner <bergner@linux.ibm.com>
13749 * config/rs6000/predicates.md (mma_assemble_input_operand): New.
13750 * config/rs6000/rs6000-builtin.def (BU_MMA_1, BU_MMA_V2, BU_MMA_3,
13751 BU_MMA_5, BU_MMA_6, BU_VSX_1): Add support macros for defining MMA
13752 built-in functions.
13753 (ASSEMBLE_ACC, ASSEMBLE_PAIR, DISASSEMBLE_ACC, DISASSEMBLE_PAIR,
13754 PMXVBF16GER2, PMXVBF16GER2NN, PMXVBF16GER2NP, PMXVBF16GER2PN,
13755 PMXVBF16GER2PP, PMXVF16GER2, PMXVF16GER2NN, PMXVF16GER2NP,
13756 PMXVF16GER2PN, PMXVF16GER2PP, PMXVF32GER, PMXVF32GERNN,
13757 PMXVF32GERNP, PMXVF32GERPN, PMXVF32GERPP, PMXVF64GER, PMXVF64GERNN,
13758 PMXVF64GERNP, PMXVF64GERPN, PMXVF64GERPP, PMXVI16GER2, PMXVI16GER2PP,
13759 PMXVI16GER2S, PMXVI16GER2SPP, PMXVI4GER8, PMXVI4GER8PP, PMXVI8GER4,
13760 PMXVI8GER4PP, PMXVI8GER4SPP, XVBF16GER2, XVBF16GER2NN, XVBF16GER2NP,
13761 XVBF16GER2PN, XVBF16GER2PP, XVCVBF16SP, XVCVSPBF16, XVF16GER2,
13762 XVF16GER2NN, XVF16GER2NP, XVF16GER2PN, XVF16GER2PP, XVF32GER,
13763 XVF32GERNN, XVF32GERNP, XVF32GERPN, XVF32GERPP, XVF64GER, XVF64GERNN,
13764 XVF64GERNP, XVF64GERPN, XVF64GERPP, XVI16GER2, XVI16GER2PP, XVI16GER2S,
13765 XVI16GER2SPP, XVI4GER8, XVI4GER8PP, XVI8GER4, XVI8GER4PP, XVI8GER4SPP,
13766 XXMFACC, XXMTACC, XXSETACCZ): Add MMA built-ins.
13767 * config/rs6000/rs6000.c (rs6000_emit_move): Use CONST_INT_P.
13768 Allow zero constants.
13769 (print_operand) <case 'A'>: New output modifier.
13770 (rs6000_split_multireg_move): Add support for inserting accumulator
13771 priming and depriming instructions. Add support for splitting an
13772 assemble accumulator pattern.
13773 * config/rs6000/rs6000-call.c (mma_init_builtins, mma_expand_builtin,
13774 rs6000_gimple_fold_mma_builtin): New functions.
13775 (RS6000_BUILTIN_M): New macro.
13776 (def_builtin): Handle RS6000_BTC_QUAD and RS6000_BTC_PAIR attributes.
13777 (bdesc_mma): Add new MMA built-in support.
13778 (htm_expand_builtin): Use RS6000_BTC_OPND_MASK.
13779 (rs6000_invalid_builtin): Add handling of RS6000_BTM_FUTURE and
13781 (rs6000_builtin_valid_without_lhs): Handle RS6000_BTC_VOID attribute.
13782 (rs6000_gimple_fold_builtin): Call rs6000_builtin_is_supported_p
13783 and rs6000_gimple_fold_mma_builtin.
13784 (rs6000_expand_builtin): Call mma_expand_builtin.
13785 Use RS6000_BTC_OPND_MASK.
13786 (rs6000_init_builtins): Adjust comment. Call mma_init_builtins.
13787 (htm_init_builtins): Use RS6000_BTC_OPND_MASK.
13788 (builtin_function_type): Handle VSX_BUILTIN_XVCVSPBF16 and
13789 VSX_BUILTIN_XVCVBF16SP.
13790 * config/rs6000/rs6000.h (RS6000_BTC_QUINARY, RS6000_BTC_SENARY,
13791 RS6000_BTC_OPND_MASK, RS6000_BTC_QUAD, RS6000_BTC_PAIR,
13792 RS6000_BTC_QUADPAIR, RS6000_BTC_GIMPLE): New defines.
13793 (RS6000_BTC_PREDICATE, RS6000_BTC_ABS, RS6000_BTC_DST,
13794 RS6000_BTC_TYPE_MASK, RS6000_BTC_ATTR_MASK): Adjust values.
13795 * config/rs6000/mma.md (MAX_MMA_OPERANDS): New define_constant.
13796 (UNSPEC_MMA_ASSEMBLE_ACC, UNSPEC_MMA_PMXVBF16GER2,
13797 UNSPEC_MMA_PMXVBF16GER2NN, UNSPEC_MMA_PMXVBF16GER2NP,
13798 UNSPEC_MMA_PMXVBF16GER2PN, UNSPEC_MMA_PMXVBF16GER2PP,
13799 UNSPEC_MMA_PMXVF16GER2, UNSPEC_MMA_PMXVF16GER2NN,
13800 UNSPEC_MMA_PMXVF16GER2NP, UNSPEC_MMA_PMXVF16GER2PN,
13801 UNSPEC_MMA_PMXVF16GER2PP, UNSPEC_MMA_PMXVF32GER,
13802 UNSPEC_MMA_PMXVF32GERNN, UNSPEC_MMA_PMXVF32GERNP,
13803 UNSPEC_MMA_PMXVF32GERPN, UNSPEC_MMA_PMXVF32GERPP,
13804 UNSPEC_MMA_PMXVF64GER, UNSPEC_MMA_PMXVF64GERNN,
13805 UNSPEC_MMA_PMXVF64GERNP, UNSPEC_MMA_PMXVF64GERPN,
13806 UNSPEC_MMA_PMXVF64GERPP, UNSPEC_MMA_PMXVI16GER2,
13807 UNSPEC_MMA_PMXVI16GER2PP, UNSPEC_MMA_PMXVI16GER2S,
13808 UNSPEC_MMA_PMXVI16GER2SPP, UNSPEC_MMA_PMXVI4GER8,
13809 UNSPEC_MMA_PMXVI4GER8PP, UNSPEC_MMA_PMXVI8GER4,
13810 UNSPEC_MMA_PMXVI8GER4PP, UNSPEC_MMA_PMXVI8GER4SPP,
13811 UNSPEC_MMA_XVBF16GER2, UNSPEC_MMA_XVBF16GER2NN,
13812 UNSPEC_MMA_XVBF16GER2NP, UNSPEC_MMA_XVBF16GER2PN,
13813 UNSPEC_MMA_XVBF16GER2PP, UNSPEC_MMA_XVF16GER2, UNSPEC_MMA_XVF16GER2NN,
13814 UNSPEC_MMA_XVF16GER2NP, UNSPEC_MMA_XVF16GER2PN, UNSPEC_MMA_XVF16GER2PP,
13815 UNSPEC_MMA_XVF32GER, UNSPEC_MMA_XVF32GERNN, UNSPEC_MMA_XVF32GERNP,
13816 UNSPEC_MMA_XVF32GERPN, UNSPEC_MMA_XVF32GERPP, UNSPEC_MMA_XVF64GER,
13817 UNSPEC_MMA_XVF64GERNN, UNSPEC_MMA_XVF64GERNP, UNSPEC_MMA_XVF64GERPN,
13818 UNSPEC_MMA_XVF64GERPP, UNSPEC_MMA_XVI16GER2, UNSPEC_MMA_XVI16GER2PP,
13819 UNSPEC_MMA_XVI16GER2S, UNSPEC_MMA_XVI16GER2SPP, UNSPEC_MMA_XVI4GER8,
13820 UNSPEC_MMA_XVI4GER8PP, UNSPEC_MMA_XVI8GER4, UNSPEC_MMA_XVI8GER4PP,
13821 UNSPEC_MMA_XVI8GER4SPP, UNSPEC_MMA_XXMFACC, UNSPEC_MMA_XXMTACC): New.
13822 (MMA_ACC, MMA_VV, MMA_AVV, MMA_PV, MMA_APV, MMA_VVI4I4I8,
13823 MMA_AVVI4I4I8, MMA_VVI4I4I2, MMA_AVVI4I4I2, MMA_VVI4I4,
13824 MMA_AVVI4I4, MMA_PVI4I2, MMA_APVI4I2, MMA_VVI4I4I4,
13825 MMA_AVVI4I4I4): New define_int_iterator.
13826 (acc, vv, avv, pv, apv, vvi4i4i8, avvi4i4i8, vvi4i4i2,
13827 avvi4i4i2, vvi4i4, avvi4i4, pvi4i2, apvi4i2, vvi4i4i4,
13828 avvi4i4i4): New define_int_attr.
13829 (*movpxi): Add zero constant alternative.
13830 (mma_assemble_pair, mma_assemble_acc): New define_expand.
13831 (*mma_assemble_acc): New define_insn_and_split.
13832 (mma_<acc>, mma_xxsetaccz, mma_<vv>, mma_<avv>, mma_<pv>, mma_<apv>,
13833 mma_<vvi4i4i8>, mma_<avvi4i4i8>, mma_<vvi4i4i2>, mma_<avvi4i4i2>,
13834 mma_<vvi4i4>, mma_<avvi4i4>, mma_<pvi4i2>, mma_<apvi4i2>,
13835 mma_<vvi4i4i4>, mma_<avvi4i4i4>): New define_insn.
13836 * config/rs6000/rs6000.md (define_attr "type"): New type mma.
13837 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVBF16SP): New.
13838 (UNSPEC_VSX_XVCVSPBF16): Likewise.
13839 (XVCVBF16): New define_int_iterator.
13840 (xvcvbf16): New define_int_attr.
13841 (vsx_<xvcvbf16>): New define_insn.
13842 * doc/extend.texi: Document the mma built-ins.
13844 2020-06-21 Peter Bergner <bergner@linux.ibm.com>
13845 Michael Meissner <meissner@linux.ibm.com>
13847 * config/rs6000/mma.md: New file.
13848 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13850 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Add support
13851 for __vector_pair and __vector_quad types.
13852 * config/rs6000/rs6000-cpus.def (OTHER_FUTURE_MASKS): Add
13854 (POWERPC_MASKS): Likewise.
13855 * config/rs6000/rs6000-modes.def (OI, XI): New integer modes.
13856 (POI, PXI): New partial integer modes.
13857 * config/rs6000/rs6000.c (TARGET_INVALID_CONVERSION): Define.
13858 (rs6000_hard_regno_nregs_internal): Use VECTOR_ALIGNMENT_P.
13859 (rs6000_hard_regno_mode_ok_uncached): Likewise.
13860 Add support for POImode being allowed in VSX registers and PXImode
13861 being allowed in FP registers.
13862 (rs6000_modes_tieable_p): Adjust comment.
13863 Add support for POImode and PXImode.
13864 (rs6000_debug_reg_global) <print_tieable_modes>: Add OImode, POImode
13865 XImode, PXImode, V2SImode, V2SFmode and CCFPmode..
13866 (rs6000_setup_reg_addr_masks): Use VECTOR_ALIGNMENT_P.
13867 Set up appropriate addr_masks for vector pair and vector quad addresses.
13868 (rs6000_init_hard_regno_mode_ok): Add support for vector pair and
13869 vector quad registers. Setup reload handlers for POImode and PXImode.
13870 (rs6000_builtin_mask_calculate): Add support for RS6000_BTM_MMA.
13871 (rs6000_option_override_internal): Error if -mmma is specified
13872 without -mcpu=future.
13873 (rs6000_slow_unaligned_access): Use VECTOR_ALIGNMENT_P.
13874 (quad_address_p): Change size test to less than 16 bytes.
13875 (reg_offset_addressing_ok_p): Add support for ISA 3.1 vector pair
13876 and vector quad instructions.
13877 (avoiding_indexed_address_p): Likewise.
13878 (rs6000_emit_move): Disallow POImode and PXImode moves involving
13880 (rs6000_preferred_reload_class): Prefer VSX registers for POImode
13881 and FP registers for PXImode.
13882 (rs6000_split_multireg_move): Support splitting POImode and PXImode
13884 (rs6000_mangle_type): Adjust comment. Add support for mangling
13885 __vector_pair and __vector_quad types.
13886 (rs6000_opt_masks): Add entry for mma.
13887 (rs6000_builtin_mask_names): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
13888 (rs6000_function_value): Use VECTOR_ALIGNMENT_P.
13889 (address_to_insn_form): Likewise.
13890 (reg_to_non_prefixed): Likewise.
13891 (rs6000_invalid_conversion): New function.
13892 * config/rs6000/rs6000.h (MASK_MMA): Define.
13893 (BIGGEST_ALIGNMENT): Set to 512 if MMA support is enabled.
13894 (VECTOR_ALIGNMENT_P): New helper macro.
13895 (ALTIVEC_VECTOR_MODE): Use VECTOR_ALIGNMENT_P.
13896 (RS6000_BTM_MMA): Define.
13897 (RS6000_BTM_COMMON): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
13898 (rs6000_builtin_type_index): Add RS6000_BTI_vector_pair and
13899 RS6000_BTI_vector_quad.
13900 (vector_pair_type_node): New.
13901 (vector_quad_type_node): New.
13902 * config/rs6000/rs6000.md: Include mma.md.
13903 (define_mode_iterator RELOAD): Add POI and PXI.
13904 * config/rs6000/t-rs6000 (MD_INCLUDES): Add mma.md.
13905 * config/rs6000/rs6000.opt (-mmma): New.
13906 * doc/invoke.texi: Document -mmma.
13908 2020-06-20 Bin Cheng <bin.cheng@linux.alibaba.com>
13910 PR tree-optimization/95638
13911 * tree-loop-distribution.c (pg_edge_callback_data): New field.
13912 (loop_distribution::break_alias_scc_partitions): Record and restore
13913 postorder information. Fix memory leak.
13915 2020-06-19 Tobias Burnus <tobias@codesourcery.com>
13917 * config/gcn/gcn.c (gcn_related_vector_mode): Add ARG_UNUSED.
13918 (output_file_start): Use const 'char *'.
13920 2020-06-19 Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
13922 PR tree-optimization/94880
13923 * match.pd (A | B) - B -> (A & ~B): New simplification.
13925 2020-06-19 Richard Biener <rguenther@suse.de>
13927 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Adjust
13928 for lane permutations.
13930 2020-06-19 Richard Biener <rguenther@suse.de>
13932 PR tree-optimization/95761
13933 * tree-vect-slp.c (vect_schedule_slp_instance): Walk all
13934 vectorized stmts for finding the last one.
13936 2020-06-18 Felix Yang <felix.yang@huawei.com>
13938 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Call
13939 vect_relevant_for_alignment_p to filter out data references in
13940 the loop whose alignment is irrelevant when trying loop peeling
13941 to force alignment.
13943 2020-06-18 Uroš Bizjak <ubizjak@gmail.com>
13945 * config/i386/i386.md (*cmpqi_ext<mode>_1): Use SWI248 mode
13946 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
13947 mode iterator for the first operand of ZERO_EXTRACT RTX.
13948 Change ext_register_operand predicate to register_operand.
13949 Rename from *cmpqi_ext_1.
13950 (*cmpqi_ext<mode>_2): Ditto. Rename from *cmpqi_ext_2.
13951 (*cmpqi_ext<mode>_3): Ditto. Rename from *cmpqi_ext_3.
13952 (*cmpqi_ext<mode>_4): Ditto. Rename from *cmpqi_ext_4.
13953 (cmpi_ext_3): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13954 (*extv<mode>): Use SWI24 mode iterator for the first operand
13955 of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13956 to register_operand.
13957 (*extzv<mode>): Use SWI248 mode iterator for the first operand
13958 of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13959 to register_operand.
13960 (*extzvqi): Use SWI248 mode iterator instead of SImode for
13961 ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first operand
13962 of ZERO_EXTRACT RTX. Change ext_register_operand predicate to
13964 (*extzvqi_mem_rex64 and corresponding peephole2): Use SWI248 mode
13965 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
13966 mode iterator for the first operand of ZERO_EXTRACT RTX.
13967 Change ext_register_operand predicate to register_operand.
13968 (@insv<mode>_1): Use SWI248 mode iterator for the first operand
13969 of ZERO_EXTRACT RTX. Change ext_register_operand predicate to
13971 (*insvqi_1): Use SWI248 mode iterator instead of SImode
13972 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the
13973 first operand of ZERO_EXTRACT RTX. Change ext_register_operand
13974 predicate to register_operand.
13975 (*insvqi_2): Ditto.
13976 (*insvqi_3): Ditto.
13977 (*insvqi_1_mem_rex64 and corresponding peephole2): Use SWI248 mode
13978 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
13979 mode iterator for the first operand of ZERO_EXTRACT RTX.
13980 Change ext_register_operand predicate to register_operand.
13981 (addqi_ext_1): New expander.
13982 (*addqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
13983 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13984 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13985 to register_operand. Rename from *addqi_ext_1.
13986 (*addqi_ext<mode>_2): Ditto. Rename from *addqi_ext_2.
13987 (divmodqi4): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13988 (udivmodqi4): Ditto.
13989 (testqi_ext_1): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13990 (*testqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
13991 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13992 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13993 to register_operand. Rename from *testqi_ext_1.
13994 (*testqi_ext<mode>_2): Ditto. Rename from *testqi_ext_2.
13995 (andqi_ext_1): New expander.
13996 (*andqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
13997 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13998 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13999 to register_operand. Rename from andqi_ext_1.
14000 (*andqi_ext<mode>_1_cc): Ditto. Rename from *andqi_ext_1_cc.
14001 (*andqi_ext<mode>_2): Ditto. Rename from *andqi_ext_2.
14002 (*<code>qi_ext<mode>_1): Ditto. Rename from *<code>qi_ext_1.
14003 (*<code>qi_ext<mode>_2): Ditto. Rename from *<code>qi_ext_2.
14004 (xorqi_ext_1_cc): Use HImode instead of SImode for ZERO_EXTRACT RTX.
14005 (*xorqi_ext<mode>_1_cc): Use SWI248 mode iterator instead of SImode
14006 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
14007 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
14008 to register_operand. Rename from *xorqi_ext_1_cc.
14009 * config/i386/i386-expand.c (ix86_split_idivmod): Emit ZERO_EXTRACT
14010 in mode, matching its first operand.
14011 (promote_duplicated_reg): Update for renamed insv<mode>_1.
14012 * config/i386/predicates.md (ext_register_operand): Remove predicate.
14014 2020-06-18 Martin Sebor <msebor@redhat.com>
14016 PR middle-end/95667
14017 PR middle-end/92814
14018 * builtins.c (compute_objsize): Remove call to
14019 compute_builtin_object_size and instead compute conservative sizes
14022 2020-06-18 Martin Liska <mliska@suse.cz>
14024 * coretypes.h (struct iterator_range): New type.
14025 * tree-vect-patterns.c (vect_determine_precisions): Use
14026 range-based iterator.
14027 (vect_pattern_recog): Likewise.
14028 * tree-vect-slp.c (_bb_vec_info): Likewise.
14029 (_bb_vec_info::~_bb_vec_info): Likewise.
14030 (vect_slp_check_for_constructors): Likewise.
14031 * tree-vectorizer.h:Add new iterators
14032 and functions that use it.
14034 2020-06-18 Martin Liska <mliska@suse.cz>
14036 * config/rs6000/rs6000-call.c (fold_build_vec_cmp):
14037 Since 502d63b6d6141597bb18fd23c87736a1b384cf8f, first argument
14038 of a VEC_COND_EXPR cannot be tcc_comparison and so that
14039 a SSA_NAME needs to be created before we use it for the first
14040 argument of the VEC_COND_EXPR.
14041 (fold_compare_helper): Pass gsi to fold_build_vec_cmp.
14043 2020-06-18 Richard Biener <rguenther@suse.de>
14045 PR middle-end/95739
14046 * internal-fn.c (expand_vect_cond_optab_fn): Move the result
14047 to the target if necessary.
14048 (expand_vect_cond_mask_optab_fn): Likewise.
14050 2020-06-18 Martin Liska <mliska@suse.cz>
14052 * tree-ssa-reassoc.c (ovce_extract_ops): Replace *vcond with
14053 vcond as we check for NULL pointer.
14055 2020-06-18 Tobias Burnus <tobias@codesourcery.com>
14057 * gimple-pretty-print.c (dump_binary_rhs): Use braces to
14058 silence empty-body warning with gcc_fallthrough.
14060 2020-06-18 Jakub Jelinek <jakub@redhat.com>
14062 PR tree-optimization/95699
14063 * tree-ssa-phiopt.c (minmax_replacement): Treat (signed int)x < 0
14064 as x > INT_MAX and (signed int)x >= 0 as x <= INT_MAX. Move variable
14065 declarations to the statements that set them where possible.
14067 2020-06-18 Jakub Jelinek <jakub@redhat.com>
14070 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't allow
14071 scalar mode halfvectype other than vector boolean for
14072 VEC_PACK_TRUNC_EXPR.
14074 2020-06-18 Richard Biener <rguenther@suse.de>
14076 * varasm.c (assemble_variable): Make sure to not
14077 defer output when outputting addressed constants.
14078 (output_constant_def_contents): Likewise.
14079 (add_constant_to_table): Take and pass on whether to
14081 (output_addressed_constants): Likewise.
14082 (output_constant_def): Pass on whether to defer output
14083 to add_constant_to_table.
14084 (tree_output_constant_def): Defer output of constants.
14086 2020-06-18 Richard Biener <rguenther@suse.de>
14088 * tree-vectorizer.h (_slp_tree::two_operators): Remove.
14089 (_slp_tree::lane_permutation): New member.
14090 (_slp_tree::code): Likewise.
14091 (SLP_TREE_TWO_OPERATORS): Remove.
14092 (SLP_TREE_LANE_PERMUTATION): New.
14093 (SLP_TREE_CODE): Likewise.
14094 (vect_stmt_dominates_stmt_p): Declare.
14095 * tree-vectorizer.c (vect_stmt_dominates_stmt_p): New function.
14096 * tree-vect-stmts.c (vect_model_simple_cost): Remove
14097 SLP_TREE_TWO_OPERATORS handling.
14098 * tree-vect-slp.c (_slp_tree::_slp_tree): Amend.
14099 (_slp_tree::~_slp_tree): Likewise.
14100 (vect_two_operations_perm_ok_p): Remove.
14101 (vect_build_slp_tree_1): Remove verification of two-operator
14103 (vect_build_slp_tree_2): When we have two different operators
14104 build two computation SLP nodes and a blend.
14105 (vect_print_slp_tree): Print the lane permutation if it exists.
14106 (slp_copy_subtree): Copy it.
14107 (vect_slp_rearrange_stmts): Re-arrange it.
14108 (vect_slp_analyze_node_operations_1): Handle SLP_TREE_CODE
14109 VEC_PERM_EXPR explicitely.
14110 (vect_schedule_slp_instance): Likewise. Remove old
14111 SLP_TREE_TWO_OPERATORS code.
14112 (vectorizable_slp_permutation): New function.
14114 2020-06-18 Martin Liska <mliska@suse.cz>
14116 * tree-vect-generic.c (expand_vector_condition): Check
14117 for gassign before inspecting RHS.
14119 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
14121 * gimplify.c (omp_notice_threadprivate_variable)
14122 (omp_default_clause, omp_notice_variable): 'inform' after 'error'
14123 diagnostic. Adjust all users.
14125 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
14127 * hsa-gen.c (gen_hsa_insns_for_call): Move 'function_decl ==
14128 NULL_TREE' check earlier.
14130 2020-06-17 Forrest Timour <forrest.timour@gmail.com>
14132 * doc/extend.texi (attribute access): Fix a typo.
14134 2020-06-17 Bin Cheng <bin.cheng@linux.alibaba.com>
14135 Kaipeng Zhou <zhoukaipeng3@huawei.com>
14137 PR tree-optimization/95199
14138 * tree-vect-stmts.c: Eliminate common stmts for bump and offset in
14139 strided load/store operations and remove redundant code.
14141 2020-06-17 Richard Sandiford <richard.sandiford@arm.com>
14143 * coretypes.h (first_type): New alias template.
14144 * recog.h (insn_gen_fn::operator()): Use it instead of a decltype.
14145 Remove spurious “...” and split the function type out into a typedef.
14147 2020-06-17 Andreas Krebbel <krebbel@linux.ibm.com>
14149 * config/s390/s390.c (s390_fix_long_loop_prediction): Exit early
14152 2020-06-17 Richard Biener <rguenther@suse.de>
14154 * tree-vect-slp.c (vect_build_slp_tree_1): Set the passed
14155 in *vectype parameter.
14156 (vect_build_slp_tree_2): Set SLP_TREE_VECTYPE from what
14157 vect_build_slp_tree_1 computed.
14158 (vect_analyze_slp_instance): Set SLP_TREE_VECTYPE.
14159 (vect_slp_analyze_node_operations_1): Use the SLP node vector type.
14160 (vect_schedule_slp_instance): Likewise.
14161 * tree-vect-stmts.c (vect_is_simple_use): Take the vector type
14162 from SLP_TREE_VECTYPE.
14164 2020-06-17 Richard Biener <rguenther@suse.de>
14166 PR tree-optimization/95717
14167 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
14168 Move BB SSA updating before exit/latch PHI current def copying.
14170 2020-06-17 Martin Liska <mliska@suse.cz>
14172 * Makefile.in: Add new file.
14173 * expr.c (expand_expr_real_2): Add gcc_unreachable as we should
14174 not meet this condition.
14175 (do_store_flag): Likewise.
14176 * gimplify.c (gimplify_expr): Gimplify first argument of
14177 VEC_COND_EXPR to be a SSA name.
14178 * internal-fn.c (vec_cond_mask_direct): New.
14179 (vec_cond_direct): Likewise.
14180 (vec_condu_direct): Likewise.
14181 (vec_condeq_direct): Likewise.
14182 (expand_vect_cond_optab_fn): New.
14183 (expand_vec_cond_optab_fn): Likewise.
14184 (expand_vec_condu_optab_fn): Likewise.
14185 (expand_vec_condeq_optab_fn): Likewise.
14186 (expand_vect_cond_mask_optab_fn): Likewise.
14187 (expand_vec_cond_mask_optab_fn): Likewise.
14188 (direct_vec_cond_mask_optab_supported_p): Likewise.
14189 (direct_vec_cond_optab_supported_p): Likewise.
14190 (direct_vec_condu_optab_supported_p): Likewise.
14191 (direct_vec_condeq_optab_supported_p): Likewise.
14192 * internal-fn.def (VCOND): New OPTAB.
14193 (VCONDU): Likewise.
14194 (VCONDEQ): Likewise.
14195 (VCOND_MASK): Likewise.
14196 * optabs.c (get_rtx_code): Make it global.
14197 (expand_vec_cond_mask_expr): Removed.
14198 (expand_vec_cond_expr): Removed.
14199 * optabs.h (expand_vec_cond_expr): Likewise.
14200 (vector_compare_rtx): Make it global.
14201 * passes.def: Add new pass_gimple_isel pass.
14202 * tree-cfg.c (verify_gimple_assign_ternary): Add check
14203 for VEC_COND_EXPR about first argument.
14204 * tree-pass.h (make_pass_gimple_isel): New.
14205 * tree-ssa-forwprop.c (pass_forwprop::execute): Prevent
14206 propagation of the first argument of a VEC_COND_EXPR.
14207 * tree-ssa-reassoc.c (ovce_extract_ops): Support SSA_NAME as
14208 first argument of a VEC_COND_EXPR.
14209 (optimize_vec_cond_expr): Likewise.
14210 * tree-vect-generic.c (expand_vector_divmod): Make SSA_NAME
14211 for a first argument of created VEC_COND_EXPR.
14212 (expand_vector_condition): Fix coding style.
14213 * tree-vect-stmts.c (vectorizable_condition): Gimplify
14215 * gimple-isel.cc: New file.
14217 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
14219 * config/gcn/gcn-hsa.h (TEXT_SECTION_ASM_OP): Use ".text".
14220 (BSS_SECTION_ASM_OP): Use ".bss".
14221 (ASM_SPEC): Remove "-mattr=-code-object-v3".
14222 (LINK_SPEC): Add "--export-dynamic".
14223 * config/gcn/gcn-opts.h (processor_type): Replace PROCESSOR_VEGA with
14224 PROCESSOR_VEGA10 and PROCESSOR_VEGA20.
14225 * config/gcn/gcn-run.c (HSA_RUNTIME_LIB): Use ".so.1" variant.
14226 (load_image): Remove obsolete relocation handling.
14227 Add ".kd" suffix to the symbol names.
14228 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT): Set to 62.
14229 (gcn_option_override): Update gcn_isa test.
14230 (gcn_kernel_arg_types): Update all the assembler directives.
14231 Remove the obsolete options.
14232 (gcn_conditional_register_usage): Update MAX_NORMAL_SGPR_COUNT usage.
14233 (gcn_omp_device_kind_arch_isa): Handle PROCESSOR_VEGA10 and
14235 (output_file_start): Rework assembler file header.
14236 (gcn_hsa_declare_function_name): Rework kernel metadata.
14237 * config/gcn/gcn.h (GCN_KERNEL_ARG_TYPES): Set to 16.
14238 * config/gcn/gcn.opt (PROCESSOR_VEGA): Remove enum.
14239 (PROCESSOR_VEGA10): New enum value.
14240 (PROCESSOR_VEGA20): New enum value.
14242 2020-06-17 Martin Liska <mliska@suse.cz>
14244 * gcov-dump.c (print_version): Collapse lisence header to 2 lines
14246 * gcov-tool.c (print_version): Likewise.
14247 * gcov.c (print_version): Likewise.
14249 2020-06-17 liuhongt <hongtao.liu@intel.com>
14252 * config/i386/i386-expand.c
14253 (ix86_expand_vec_shift_qihi_constant): New function.
14254 * config/i386/i386-protos.h
14255 (ix86_expand_vec_shift_qihi_constant): Declare.
14256 * config/i386/sse.md (<shift_insn><mode>3): Optimize shift
14257 V*QImode by constant.
14259 2020-06-16 Aldy Hernandez <aldyh@redhat.com>
14261 PR tree-optimization/95649
14262 * tree-ssa-propagate.c (propagate_into_phi_args): Do not propagate unless
14263 value is a constant.
14265 2020-06-16 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
14267 * config.in: Regenerate.
14268 * config/s390/s390.c (print_operand): Emit vector alignment hints
14269 for target z13, if AS accepts them. For other targets the logic
14271 * config/s390/s390.h (TARGET_VECTOR_LOADSTORE_ALIGNMENT_HINTS): Define
14273 * configure: Regenerate.
14274 * configure.ac: Check HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13.
14276 2020-06-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14278 * config/arm/arm_mve.h (__arm_vaddq_m_n_s8): Correct the intrinsic
14280 (__arm_vaddq_m_n_s32): Likewise.
14281 (__arm_vaddq_m_n_s16): Likewise.
14282 (__arm_vaddq_m_n_u8): Likewise.
14283 (__arm_vaddq_m_n_u32): Likewise.
14284 (__arm_vaddq_m_n_u16): Likewise.
14285 (__arm_vaddq_m): Modify polymorphic variant.
14287 2020-06-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14289 * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Correct the predicate
14290 and constraint of all the operands.
14291 (mve_sqrshrl_sat<supf>_di): Likewise.
14292 (mve_uqrshl_si): Likewise.
14293 (mve_sqrshr_si): Likewise.
14294 (mve_uqshll_di): Likewise.
14295 (mve_urshrl_di): Likewise.
14296 (mve_uqshl_si): Likewise.
14297 (mve_urshr_si): Likewise.
14298 (mve_sqshl_si): Likewise.
14299 (mve_srshr_si): Likewise.
14300 (mve_srshrl_di): Likewise.
14301 (mve_sqshll_di): Likewise.
14302 * config/arm/predicates.md (arm_low_register_operand): Define.
14304 2020-06-16 Jakub Jelinek <jakub@redhat.com>
14306 * tree.h (OMP_FOR_NON_RECTANGULAR): Define.
14307 * gimplify.c (gimplify_omp_for): Diagnose schedule, ordered
14308 or dist_schedule clause on non-rectangular loops. Handle
14309 gimplification of non-rectangular lb/b expressions. When changing
14310 iteration variable, adjust also non-rectangular lb/b expressions
14312 * omp-general.h (struct omp_for_data_loop): Add m1, m2 and outer
14314 (struct omp_for_data): Add non_rect member.
14315 * omp-general.c (omp_extract_for_data): Handle non-rectangular
14316 loops. Fill in non_rect, m1, m2 and outer.
14317 * omp-low.c (lower_omp_for): Handle non-rectangular lb/b expressions.
14318 * omp-expand.c (expand_omp_for): Emit sorry_at for unsupported
14319 non-rectangular loop cases and assert for cases that can't be
14321 * tree-pretty-print.c (dump_mem_ref): Formatting fix.
14322 (dump_omp_loop_non_rect_expr): New function.
14323 (dump_generic_node): Handle non-rectangular OpenMP loops.
14324 * tree-pretty-print.h (dump_omp_loop_non_rect_expr): Declare.
14325 * gimple-pretty-print.c (dump_gimple_omp_for): Handle non-rectangular
14328 2020-06-16 Richard Biener <rguenther@suse.de>
14330 PR middle-end/95690
14331 * varasm.c (build_constant_desc): Remove set_mem_attributes call.
14333 2020-06-16 Kito Cheng <kito.cheng@sifive.com>
14336 * config/riscv/riscv.c (riscv_gpr_save_operation_p): Remove
14337 assertion and turn it into a early exit check.
14339 2020-06-15 Eric Botcazou <ebotcazou@adacore.com>
14341 * gimplify.c (gimplify_init_constructor) <AGGREGATE_TYPE>: Declare
14342 new ENSURE_SINGLE_ACCESS constant and move variables down. If it is
14343 true and all elements are zero, then always clear. Return GS_ERROR
14344 if a temporary would be created for it and NOTIFY_TEMP_CREATION set.
14345 (gimplify_modify_expr_rhs) <VAR_DECL>: If the target is volatile but
14346 the type is aggregate non-addressable, ask gimplify_init_constructor
14347 whether it can generate a single access to the target.
14349 2020-06-15 Eric Botcazou <ebotcazou@adacore.com>
14351 * tree-sra.c (propagate_subaccesses_from_rhs): When a non-scalar
14352 access on the LHS is replaced with a scalar access, propagate the
14353 TYPE_REVERSE_STORAGE_ORDER flag of the type of the original access.
14355 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
14357 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Remove
14358 TARGET_THREADPTR reference.
14359 (xtensa_tls_symbol_p, xtensa_tls_referenced_p): Use
14360 targetm.have_tls instead of TARGET_HAVE_TLS.
14361 (xtensa_option_override): Set targetm.have_tls to false in
14362 configurations without THREADPTR.
14364 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
14366 * config/xtensa/elf.h (ASM_SPEC, LINK_SPEC): Pass ABI switch to
14368 * config/xtensa/linux.h (ASM_SPEC, LINK_SPEC): Ditto.
14369 * config/xtensa/uclinux.h (ASM_SPEC, LINK_SPEC): Ditto.
14370 * config/xtensa/xtensa.c (xtensa_option_override): Initialize
14371 xtensa_windowed_abi if needed.
14372 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI_DEFAULT): New
14374 (TARGET_WINDOWED_ABI): Redefine to xtensa_windowed_abi.
14375 * config/xtensa/xtensa.opt (xtensa_windowed_abi): New target
14377 (mabi=call0, mabi=windowed): New options.
14378 * doc/invoke.texi: Document new -mabi= Xtensa-specific options.
14380 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
14382 * config/xtensa/xtensa.c (xtensa_can_eliminate): New function.
14383 (TARGET_CAN_ELIMINATE): New macro.
14384 * config/xtensa/xtensa.h
14385 (XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM)
14386 (XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM): New macros.
14387 (HARD_FRAME_POINTER_REGNUM): Define using
14388 XTENSA_*_HARD_FRAME_POINTER_REGNUM.
14389 (ELIMINABLE_REGS): Replace lines with HARD_FRAME_POINTER_REGNUM
14390 by lines with XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM and
14391 XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM.
14393 2020-06-15 Felix Yang <felix.yang@huawei.com>
14395 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Rename
14396 parameter to loop_vinfo and update uses. Use LOOP_VINFO_DATAREFS
14398 (vect_analyze_data_refs_alignment): Likewise, and use LOOP_VINFO_DDRS
14400 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Use
14401 LOOP_VINFO_DATAREFS when possible.
14402 (update_epilogue_loop_vinfo): Likewise.
14404 2020-06-15 Kito Cheng <kito.cheng@sifive.com>
14406 * config/riscv/riscv.c (riscv_gen_gpr_save_insn): Change type to
14408 (riscv_gpr_save_operation_p): Change type to unsigned for i and
14411 2020-06-15 Hongtao Liu <hongtao.liu@intel.com>
14414 * config/i386/i386-expand.c (ix86_expand_vecmul_qihi): New
14416 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Declare.
14417 * config/i386/sse.md (mul<mode>3): Drop mask_name since
14418 there's no real simd int8 multiplication instruction with
14419 mask. Also optimize it under TARGET_AVX512BW.
14420 (mulv8qi3): New expander.
14422 2020-06-12 Marco Elver <elver@google.com>
14424 * gimplify.c (gimplify_function_tree): Optimize and do not emit
14425 IFN_TSAN_FUNC_EXIT in a finally block if we do not need it.
14426 * params.opt: Add --param=tsan-instrument-func-entry-exit=.
14427 * tsan.c (instrument_memory_accesses): Make
14428 fentry_exit_instrument bool depend on new param.
14430 2020-06-12 Felix Yang <felix.yang@huawei.com>
14432 PR tree-optimization/95570
14433 * tree-vect-data-refs.c (vect_relevant_for_alignment_p): New function.
14434 (vect_verify_datarefs_alignment): Call it to filter out data references
14435 in the loop whose alignment is irrelevant.
14436 (vect_get_peeling_costs_all_drs): Likewise.
14437 (vect_peeling_supportable): Likewise.
14438 (vect_enhance_data_refs_alignment): Likewise.
14440 2020-06-12 Richard Biener <rguenther@suse.de>
14442 PR tree-optimization/95633
14443 * tree-vect-stmts.c (vectorizable_condition): Properly
14444 guard the vec_else_clause access with EXTRACT_LAST_REDUCTION.
14446 2020-06-12 Martin Liška <mliska@suse.cz>
14448 * cgraphunit.c (process_symver_attribute): Wrap weakref keyword.
14449 * dbgcnt.c (dbg_cnt_set_limit_by_index): Do not print extra new
14451 * lto-wrapper.c (merge_and_complain): Wrap option names.
14453 2020-06-12 Kewen Lin <linkw@gcc.gnu.org>
14455 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Rename
14456 LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE. Rename
14457 LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
14458 (vect_set_loop_condition_masked): Renamed to ...
14459 (vect_set_loop_condition_partial_vectors): ... this. Rename
14460 LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE. Rename
14461 vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
14462 (vect_set_loop_condition_unmasked): Renamed to ...
14463 (vect_set_loop_condition_normal): ... this.
14464 (vect_set_loop_condition): Rename vect_set_loop_condition_unmasked to
14465 vect_set_loop_condition_normal. Rename vect_set_loop_condition_masked
14466 to vect_set_loop_condition_partial_vectors.
14467 (vect_prepare_for_masked_peels): Rename LOOP_VINFO_MASK_COMPARE_TYPE
14468 to LOOP_VINFO_RGROUP_COMPARE_TYPE.
14469 * tree-vect-loop.c (vect_known_niters_smaller_than_vf): New, factored
14471 (vect_analyze_loop_costing): ... this.
14472 (_loop_vec_info::_loop_vec_info): Rename mask_compare_type to
14474 (vect_min_prec_for_max_niters): New, factored out from ...
14475 (vect_verify_full_masking): ... this. Rename
14476 vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
14477 Rename LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE.
14478 Rename LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
14479 (vectorizable_reduction): Update some dumpings with partial
14480 vectors instead of fully-masked.
14481 (vectorizable_live_operation): Likewise.
14482 (vect_iv_limit_for_full_masking): Renamed to ...
14483 (vect_iv_limit_for_partial_vectors): ... this.
14484 * tree-vect-stmts.c (check_load_store_masking): Renamed to ...
14485 (check_load_store_for_partial_vectors): ... this. Update some
14486 dumpings with partial vectors instead of fully-masked.
14487 (vectorizable_store): Rename check_load_store_masking to
14488 check_load_store_for_partial_vectors.
14489 (vectorizable_load): Likewise.
14490 * tree-vectorizer.h (LOOP_VINFO_MASK_COMPARE_TYPE): Renamed to ...
14491 (LOOP_VINFO_RGROUP_COMPARE_TYPE): ... this.
14492 (LOOP_VINFO_MASK_IV_TYPE): Renamed to ...
14493 (LOOP_VINFO_RGROUP_IV_TYPE): ... this.
14494 (vect_iv_limit_for_full_masking): Renamed to ...
14495 (vect_iv_limit_for_partial_vectors): this.
14496 (_loop_vec_info): Rename mask_compare_type to rgroup_compare_type.
14497 Rename iv_type to rgroup_iv_type.
14499 2020-06-12 Richard Sandiford <richard.sandiford@arm.com>
14501 * recog.h (insn_gen_fn::f0, insn_gen_fn::f1, insn_gen_fn::f2)
14502 (insn_gen_fn::f3, insn_gen_fn::f4, insn_gen_fn::f5, insn_gen_fn::f6)
14503 (insn_gen_fn::f7, insn_gen_fn::f8, insn_gen_fn::f9, insn_gen_fn::f10)
14504 (insn_gen_fn::f11, insn_gen_fn::f12, insn_gen_fn::f13)
14505 (insn_gen_fn::f14, insn_gen_fn::f15, insn_gen_fn::f16): Delete.
14506 (insn_gen_fn::operator()): Replace overloaded definitions with
14507 a parameter-pack version.
14509 2020-06-12 H.J. Lu <hjl.tools@gmail.com>
14512 * config/i386/i386-features.c (rest_of_insert_endbranch):
14514 (rest_of_insert_endbr_and_patchable_area): Change return type
14515 to void. Add need_endbr and patchable_area_size arguments.
14516 Don't call timevar_push nor timevar_pop. Replace
14517 endbr_queued_at_entrance with insn_queued_at_entrance. Insert
14518 UNSPECV_PATCHABLE_AREA for patchable area.
14519 (pass_data_insert_endbranch): Renamed to ...
14520 (pass_data_insert_endbr_and_patchable_area): This. Change
14521 pass name to endbr_and_patchable_area.
14522 (pass_insert_endbranch): Renamed to ...
14523 (pass_insert_endbr_and_patchable_area): This. Add need_endbr
14524 and patchable_area_size;.
14525 (pass_insert_endbr_and_patchable_area::gate): Set and check
14526 need_endbr and patchable_area_size.
14527 (pass_insert_endbr_and_patchable_area::execute): Call
14528 timevar_push and timevar_pop. Pass need_endbr and
14529 patchable_area_size to rest_of_insert_endbr_and_patchable_area.
14530 (make_pass_insert_endbranch): Renamed to ...
14531 (make_pass_insert_endbr_and_patchable_area): This.
14532 * config/i386/i386-passes.def: Replace pass_insert_endbranch
14533 with pass_insert_endbr_and_patchable_area.
14534 * config/i386/i386-protos.h (ix86_output_patchable_area): New.
14535 (make_pass_insert_endbranch): Renamed to ...
14536 (make_pass_insert_endbr_and_patchable_area): This.
14537 * config/i386/i386.c (ix86_asm_output_function_label): Set
14538 function_label_emitted to true.
14539 (ix86_print_patchable_function_entry): New function.
14540 (ix86_output_patchable_area): Likewise.
14541 (x86_function_profiler): Replace endbr_queued_at_entrance with
14542 insn_queued_at_entrance. Generate ENDBR only for TYPE_ENDBR.
14543 Call ix86_output_patchable_area to generate patchable area if
14545 (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): New.
14546 * config/i386/i386.h (queued_insn_type): New.
14547 (machine_function): Add function_label_emitted. Replace
14548 endbr_queued_at_entrance with insn_queued_at_entrance.
14549 * config/i386/i386.md (UNSPECV_PATCHABLE_AREA): New.
14550 (patchable_area): New.
14552 2020-06-11 Martin Liska <mliska@suse.cz>
14554 * config/rs6000/rs6000.c (rs6000_density_test): Fix GNU coding
14557 2020-06-11 Martin Liska <mliska@suse.cz>
14560 * config/rs6000/rs6000.c (rs6000_density_test): Skip debug
14563 2020-06-11 Martin Liska <mliska@suse.cz>
14564 Jakub Jelinek <jakub@redhat.com>
14567 * asan.c (asan_emit_stack_protection): Fix emission for ilp32
14568 by using Pmode instead of ptr_mode.
14570 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
14572 * tree-vect-loop-manip.c (vect_set_loop_mask): Renamed to ...
14573 (vect_set_loop_control): ... this.
14574 (vect_maybe_permute_loop_masks): Rename rgroup_masks related things.
14575 (vect_set_loop_masks_directly): Renamed to ...
14576 (vect_set_loop_controls_directly): ... this. Also rename some
14577 variables with ctrl instead of mask. Rename vect_set_loop_mask to
14578 vect_set_loop_control.
14579 (vect_set_loop_condition_masked): Rename rgroup_masks related things.
14580 Also rename some variables with ctrl instead of mask.
14581 * tree-vect-loop.c (release_vec_loop_masks): Renamed to ...
14582 (release_vec_loop_controls): ... this. Rename rgroup_masks related
14584 (_loop_vec_info::~_loop_vec_info): Rename release_vec_loop_masks to
14585 release_vec_loop_controls.
14586 (can_produce_all_loop_masks_p): Rename rgroup_masks related things.
14587 (vect_get_max_nscalars_per_iter): Likewise.
14588 (vect_estimate_min_profitable_iters): Likewise.
14589 (vect_record_loop_mask): Likewise.
14590 (vect_get_loop_mask): Likewise.
14591 * tree-vectorizer.h (struct rgroup_masks): Renamed to ...
14592 (struct rgroup_controls): ... this. Also rename mask_type
14593 to type and rename masks to controls.
14595 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
14597 * tree-vect-loop-manip.c (vect_set_loop_condition): Rename
14598 LOOP_VINFO_FULLY_MASKED_P to LOOP_VINFO_USING_PARTIAL_VECTORS_P.
14599 (vect_gen_vector_loop_niters): Likewise.
14600 (vect_do_peeling): Likewise.
14601 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
14602 fully_masked_p to using_partial_vectors_p.
14603 (vect_analyze_loop_costing): Rename LOOP_VINFO_FULLY_MASKED_P to
14604 LOOP_VINFO_USING_PARTIAL_VECTORS_P.
14605 (determine_peel_for_niter): Likewise.
14606 (vect_estimate_min_profitable_iters): Likewise.
14607 (vect_transform_loop): Likewise.
14608 * tree-vectorizer.h (LOOP_VINFO_FULLY_MASKED_P): Updated.
14609 (LOOP_VINFO_USING_PARTIAL_VECTORS_P): New macro.
14611 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
14613 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
14614 can_fully_mask_p to can_use_partial_vectors_p.
14615 (vect_analyze_loop_2): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
14616 LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P. Rename saved_can_fully_mask_p
14617 to saved_can_use_partial_vectors_p.
14618 (vectorizable_reduction): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
14619 LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P.
14620 (vectorizable_live_operation): Likewise.
14621 * tree-vect-stmts.c (permute_vec_elements): Likewise.
14622 (check_load_store_masking): Likewise.
14623 (vectorizable_operation): Likewise.
14624 (vectorizable_store): Likewise.
14625 (vectorizable_load): Likewise.
14626 (vectorizable_condition): Likewise.
14627 * tree-vectorizer.h (LOOP_VINFO_CAN_FULLY_MASK_P): Renamed to ...
14628 (LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P): ... this.
14629 (_loop_vec_info): Rename can_fully_mask_p to can_use_partial_vectors_p.
14631 2020-06-11 Martin Liska <mliska@suse.cz>
14633 * optc-save-gen.awk: Quote error string.
14635 2020-06-11 Alexandre Oliva <oliva@adacore.com>
14637 * print-rtl.c (print_mem_expr): Enable TDF_SLIM in dump_flags.
14639 2020-06-11 Kito Cheng <kito.cheng@sifive.com>
14641 * config/riscv/riscv-protos.h (riscv_output_gpr_save): Remove.
14642 * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Update
14644 * config/riscv/riscv.c (riscv_output_gpr_save): Remove.
14645 * config/riscv/riscv.md (gpr_save): Update output asm pattern.
14647 2020-06-11 Kito Cheng <kito.cheng@sifive.com>
14649 * config/riscv/predicates.md (gpr_save_operation): New.
14650 * config/riscv/riscv-protos.h (riscv_gen_gpr_save_insn): New.
14651 (riscv_gpr_save_operation_p): Ditto.
14652 * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
14653 Ignore USEs for gpr_save patter.
14654 * config/riscv/riscv.c (gpr_save_reg_order): New.
14655 (riscv_expand_prologue): Use riscv_gen_gpr_save_insn to gen gpr_save.
14656 (riscv_gen_gpr_save_insn): New.
14657 (riscv_gpr_save_operation_p): Ditto.
14658 * config/riscv/riscv.md (S3_REGNUM): New.
14659 (S4_REGNUM): Ditto.
14660 (S5_REGNUM): Ditto.
14661 (S6_REGNUM): Ditto.
14662 (S7_REGNUM): Ditto.
14663 (S8_REGNUM): Ditto.
14664 (S9_REGNUM): Ditto.
14665 (S10_REGNUM): Ditto.
14666 (S11_REGNUM): Ditto.
14667 (gpr_save): Model USEs correctly.
14669 2020-06-10 Martin Sebor <msebor@redhat.com>
14671 PR middle-end/95353
14672 PR middle-end/92939
14673 * builtins.c (inform_access): New function.
14674 (check_access): Call it. Add argument.
14675 (addr_decl_size): Remove.
14676 (get_range): New function.
14677 (compute_objsize): New overload. Only use compute_builtin_object_size
14678 with raw memory function.
14679 (check_memop_access): Pass new argument to compute_objsize and
14681 (expand_builtin_memchr, expand_builtin_strcat): Same.
14682 (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
14683 (expand_builtin_stpncpy, check_strncat_sizes): Same.
14684 (expand_builtin_strncat, expand_builtin_strncpy): Same.
14685 (expand_builtin_memcmp): Same.
14686 * builtins.h (check_nul_terminated_array): Declare extern.
14687 (check_access): Add argument.
14688 (struct access_ref, struct access_data): New structs.
14689 * gimple-ssa-warn-restrict.c (clamp_offset): New helper.
14690 (builtin_access::overlap): Call it.
14691 * tree-object-size.c (decl_init_size): Declare extern.
14692 (addr_object_size): Correct offset computation.
14693 * tree-object-size.h (decl_init_size): Declare.
14694 * tree-ssa-strlen.c (handle_integral_assign): Remove a call
14695 to maybe_warn_overflow when assigning to an SSA_NAME.
14697 2020-06-10 Richard Biener <rguenther@suse.de>
14699 * tree-vect-loop.c (vect_determine_vectorization_factor):
14701 (_loop_vec_info::_loop_vec_info): Likewise.
14702 (vect_update_vf_for_slp): Likewise.
14703 (vect_analyze_loop_operations): Likewise.
14704 (update_epilogue_loop_vinfo): Likewise.
14705 * tree-vect-patterns.c (vect_determine_precisions): Likewise.
14706 (vect_pattern_recog): Likewise.
14707 * tree-vect-slp.c (vect_detect_hybrid_slp): Likewise.
14708 (_bb_vec_info::_bb_vec_info): Likewise.
14709 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized):
14712 2020-06-10 Richard Biener <rguenther@suse.de>
14714 PR tree-optimization/95576
14715 * tree-vect-slp.c (vect_slp_bb): Skip leading debug stmts.
14717 2020-06-10 Haijian Zhang <z.zhanghaijian@huawei.com>
14720 * config/aarch64/aarch64-sve-builtins.h
14721 (sve_switcher::m_old_maximum_field_alignment): New member.
14722 * config/aarch64/aarch64-sve-builtins.cc
14723 (sve_switcher::sve_switcher): Save maximum_field_alignment in
14724 m_old_maximum_field_alignment and clear maximum_field_alignment.
14725 (sve_switcher::~sve_switcher): Restore maximum_field_alignment.
14727 2020-06-10 Richard Biener <rguenther@suse.de>
14729 * tree-vectorizer.h (_slp_tree::vec_stmts): Make it a vector
14731 (_stmt_vec_info::vec_stmts): Likewise.
14732 (vec_info::stmt_vec_info_ro): New flag.
14733 (vect_finish_replace_stmt): Adjust declaration.
14734 (vect_finish_stmt_generation): Likewise.
14735 (vectorizable_induction): Likewise.
14736 (vect_transform_reduction): Likewise.
14737 (vectorizable_lc_phi): Likewise.
14738 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Do not
14739 allocate stmt infos for increments.
14740 (vect_record_grouped_load_vectors): Adjust.
14741 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
14742 (vectorize_fold_left_reduction): Likewise.
14743 (vect_transform_reduction): Likewise.
14744 (vect_transform_cycle_phi): Likewise.
14745 (vectorizable_lc_phi): Likewise.
14746 (vectorizable_induction): Likewise.
14747 (vectorizable_live_operation): Likewise.
14748 (vect_transform_loop): Likewise.
14749 * tree-vect-patterns.c (vect_pattern_recog): Set stmt_vec_info_ro.
14750 * tree-vect-slp.c (vect_get_slp_vect_def): Adjust.
14751 (vect_get_slp_defs): Likewise.
14752 (vect_transform_slp_perm_load): Likewise.
14753 (vect_schedule_slp_instance): Likewise.
14754 (vectorize_slp_instance_root_stmt): Likewise.
14755 * tree-vect-stmts.c (vect_get_vec_defs_for_operand): Likewise.
14756 (vect_finish_stmt_generation_1): Do not allocate a stmt info.
14757 (vect_finish_replace_stmt): Do not return anything.
14758 (vect_finish_stmt_generation): Likewise.
14759 (vect_build_gather_load_calls): Adjust.
14760 (vectorizable_bswap): Likewise.
14761 (vectorizable_call): Likewise.
14762 (vectorizable_simd_clone_call): Likewise.
14763 (vect_create_vectorized_demotion_stmts): Likewise.
14764 (vectorizable_conversion): Likewise.
14765 (vectorizable_assignment): Likewise.
14766 (vectorizable_shift): Likewise.
14767 (vectorizable_operation): Likewise.
14768 (vectorizable_scan_store): Likewise.
14769 (vectorizable_store): Likewise.
14770 (vectorizable_load): Likewise.
14771 (vectorizable_condition): Likewise.
14772 (vectorizable_comparison): Likewise.
14773 (vect_transform_stmt): Likewise.
14774 * tree-vectorizer.c (vec_info::vec_info): Initialize
14776 (vec_info::replace_stmt): Copy over stmt UID rather than
14777 unsetting/setting a stmt info allocating a new UID.
14778 (vec_info::set_vinfo_for_stmt): Assert !stmt_vec_info_ro.
14780 2020-06-10 Aldy Hernandez <aldyh@redhat.com>
14782 * gimple-loop-versioning.cc (loop_versioning::name_prop::get_value):
14783 Add stmt parameter.
14784 * gimple-ssa-evrp.c (class evrp_folder): New.
14785 (class evrp_dom_walker): Remove.
14786 (execute_early_vrp): Use evrp_folder instead of evrp_dom_walker.
14787 * tree-ssa-ccp.c (ccp_folder::get_value): Add stmt parameter.
14788 * tree-ssa-copy.c (copy_folder::get_value): Same.
14789 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
14790 Pass stmt to get_value.
14791 (substitute_and_fold_engine::replace_phi_args_in): Same.
14792 (substitute_and_fold_dom_walker::after_dom_children): Call
14794 (substitute_and_fold_dom_walker::foreach_new_stmt_in_bb): New.
14795 (substitute_and_fold_dom_walker::propagate_into_phi_args): New.
14796 (substitute_and_fold_dom_walker::before_dom_children): Adjust to
14797 call virtual functions for folding, pre_folding, and post folding.
14798 Call get_value with PHI. Tweak dump.
14799 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14800 New argument to get_value.
14801 New virtual function pre_fold_bb.
14802 New virtual function post_fold_bb.
14803 New virtual function pre_fold_stmt.
14804 New virtual function post_new_stmt.
14805 New function propagate_into_phi_args.
14806 * tree-vrp.c (vrp_folder::get_value): Add stmt argument.
14807 * vr-values.c (vr_values::extract_range_from_stmt): Adjust dump
14809 (vr_values::fold_cond): New.
14810 (vr_values::simplify_cond_using_ranges_1): Call fold_cond.
14811 * vr-values.h (class vr_values): Add
14812 simplify_cond_using_ranges_when_edge_is_known.
14814 2020-06-10 Martin Liska <mliska@suse.cz>
14817 * asan.c (asan_emit_stack_protection): Emit
14818 also **SavedFlagPtr(FakeStack, class_id) = 0 in order to release
14821 2020-06-10 Tamar Christina <tamar.christina@arm.com>
14823 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Adjust costs for mul.
14825 2020-06-10 Richard Biener <rguenther@suse.de>
14827 * tree-vect-data-refs.c (vect_vfa_access_size): Adjust.
14828 (vect_record_grouped_load_vectors): Likewise.
14829 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
14830 (vectorize_fold_left_reduction): Likewise.
14831 (vect_transform_reduction): Likewise.
14832 (vect_transform_cycle_phi): Likewise.
14833 (vectorizable_lc_phi): Likewise.
14834 (vectorizable_induction): Likewise.
14835 (vectorizable_live_operation): Likewise.
14836 (vect_transform_loop): Likewise.
14837 * tree-vect-slp.c (vect_get_slp_defs): New function, split out
14839 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Remove.
14840 (vect_get_vec_def_for_operand): Likewise.
14841 (vect_get_vec_def_for_stmt_copy): Likewise.
14842 (vect_get_vec_defs_for_stmt_copy): Likewise.
14843 (vect_get_vec_defs_for_operand): New function.
14844 (vect_get_vec_defs): Likewise.
14845 (vect_build_gather_load_calls): Adjust.
14846 (vect_get_gather_scatter_ops): Likewise.
14847 (vectorizable_bswap): Likewise.
14848 (vectorizable_call): Likewise.
14849 (vectorizable_simd_clone_call): Likewise.
14850 (vect_get_loop_based_defs): Remove.
14851 (vect_create_vectorized_demotion_stmts): Adjust.
14852 (vectorizable_conversion): Likewise.
14853 (vectorizable_assignment): Likewise.
14854 (vectorizable_shift): Likewise.
14855 (vectorizable_operation): Likewise.
14856 (vectorizable_scan_store): Likewise.
14857 (vectorizable_store): Likewise.
14858 (vectorizable_load): Likewise.
14859 (vectorizable_condition): Likewise.
14860 (vectorizable_comparison): Likewise.
14861 (vect_transform_stmt): Adjust and remove no longer applicable
14863 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
14864 STMT_VINFO_VEC_STMTS.
14865 (vec_info::free_stmt_vec_info): Relase it.
14866 * tree-vectorizer.h (_stmt_vec_info::vectorized_stmt): Remove.
14867 (_stmt_vec_info::vec_stmts): Add.
14868 (STMT_VINFO_VEC_STMT): Remove.
14869 (STMT_VINFO_VEC_STMTS): New.
14870 (vect_get_vec_def_for_operand_1): Remove.
14871 (vect_get_vec_def_for_operand): Likewise.
14872 (vect_get_vec_defs_for_stmt_copy): Likewise.
14873 (vect_get_vec_def_for_stmt_copy): Likewise.
14874 (vect_get_vec_defs): New overloads.
14875 (vect_get_vec_defs_for_operand): New.
14876 (vect_get_slp_defs): Declare.
14878 2020-06-10 Qian Chao <qianchao9@huawei.com>
14880 PR tree-optimization/95569
14881 * trans-mem.c (expand_assign_tm): Ensure that rtmp is marked TREE_ADDRESSABLE.
14883 2020-06-10 Martin Liska <mliska@suse.cz>
14885 PR tree-optimization/92860
14886 * optc-save-gen.awk: Generate new function cl_optimization_compare.
14887 * opth-gen.awk: Generate declaration of the function.
14889 2020-06-09 Michael Meissner <meissner@linux.ibm.com>
14891 * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
14892 'future' PowerPC platform.
14893 (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
14894 (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
14895 * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
14897 * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
14898 (rs6000_clone_map): Add 'future' system target_clones support.
14900 2020-06-09 Michael Kuhn <gcc@ikkoku.de>
14902 * Makefile.in (ZSTD_INC): Define.
14903 (ZSTD_LIB): Include ZSTD_LDFLAGS.
14904 (CFLAGS-lto-compress.o): Add ZSTD_INC.
14905 * configure.ac (ZSTD_CPPFLAGS, ZSTD_LDFLAGS): New variables for
14907 * configure: Rebuilt.
14909 2020-06-09 Jason Merrill <jason@redhat.com>
14912 * tree.c (walk_tree_1): Call func on the TYPE_DECL of a DECL_EXPR.
14914 2020-06-09 Marco Elver <elver@google.com>
14916 * params.opt: Define --param=tsan-distinguish-volatile=[0,1].
14917 * sanitizer.def (BUILT_IN_TSAN_VOLATILE_READ1): Define new
14918 builtin for volatile instrumentation of reads/writes.
14919 (BUILT_IN_TSAN_VOLATILE_READ2): Likewise.
14920 (BUILT_IN_TSAN_VOLATILE_READ4): Likewise.
14921 (BUILT_IN_TSAN_VOLATILE_READ8): Likewise.
14922 (BUILT_IN_TSAN_VOLATILE_READ16): Likewise.
14923 (BUILT_IN_TSAN_VOLATILE_WRITE1): Likewise.
14924 (BUILT_IN_TSAN_VOLATILE_WRITE2): Likewise.
14925 (BUILT_IN_TSAN_VOLATILE_WRITE4): Likewise.
14926 (BUILT_IN_TSAN_VOLATILE_WRITE8): Likewise.
14927 (BUILT_IN_TSAN_VOLATILE_WRITE16): Likewise.
14928 * tsan.c (get_memory_access_decl): Argument if access is
14929 volatile. If param tsan-distinguish-volatile is non-zero, and
14930 access if volatile, return volatile instrumentation decl.
14931 (instrument_expr): Check if access is volatile.
14933 2020-06-09 Richard Biener <rguenther@suse.de>
14935 * tree-vect-loop.c (vectorizable_induction): Remove dead code.
14937 2020-06-09 Tobias Burnus <tobias@codesourcery.com>
14939 * omp-offload.c (add_decls_addresses_to_decl_constructor,
14940 omp_finish_file): With in_lto_p, stream out all offload-table
14941 items even if the symtab_node does not exist.
14943 2020-06-09 Richard Biener <rguenther@suse.de>
14945 * tree-vect-stmts.c (vect_transform_stmt): Remove dead code.
14947 2020-06-09 Martin Liska <mliska@suse.cz>
14949 * gcov-dump.c (print_usage): Fix spacing for --raw option
14952 2020-06-09 Martin Liska <mliska@suse.cz>
14954 * cif-code.def (ATTRIBUTE_MISMATCH): Rename to...
14955 (SANITIZE_ATTRIBUTE_MISMATCH): ...this.
14956 * ipa-inline.c (sanitize_attrs_match_for_inline_p):
14957 Handle all sanitizer options.
14958 (can_inline_edge_p): Use renamed CIF_* enum value.
14960 2020-06-09 Joe Ramsay <joe.ramsay@arm.com>
14962 * config/aarch64/aarch64-sve.md (<optab><mode>2): Add support for
14964 (@aarch64_pred_<optab><mode>): Add support for unpacked vectors.
14965 (@aarch64_bic<mode>): Enable unpacked BIC.
14966 (*bic<mode>3): Enable unpacked BIC.
14968 2020-06-09 Martin Liska <mliska@suse.cz>
14970 PR gcov-profile/95365
14971 * doc/gcov.texi: Compile and link one example in 2 steps.
14973 2020-06-09 Jakub Jelinek <jakub@redhat.com>
14975 PR tree-optimization/95527
14976 * match.pd (__builtin_ffs (X) cmp CST): New optimizations.
14978 2020-06-09 Michael Meissner <meissner@linux.ibm.com>
14980 * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
14981 'future' PowerPC platform.
14982 (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
14983 (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
14984 * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
14986 * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
14987 (rs6000_clone_map): Add 'future' system target_clones support.
14989 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
14992 PR middle-end/95551
14993 * omp-offload.c (add_decls_addresses_to_decl_constructor,
14994 omp_finish_file): Skip removed items.
14995 * lto-cgraph.c (output_offload_tables): Likewise; set force_output
14996 to this node for variables and functions.
14998 2020-06-08 Jason Merrill <jason@redhat.com>
15000 * aclocal.m4: Remove ax_cxx_compile_stdcxx.m4.
15001 * configure.ac: Remove AX_CXX_COMPILE_STDCXX.
15002 * configure: Regenerate.
15004 2020-06-08 Martin Sebor <msebor@redhat.com>
15006 * postreload.c (reload_cse_simplify_operands): Clear first array element
15007 before using it. Assert a precondition.
15009 2020-06-08 Jakub Jelinek <jakub@redhat.com>
15012 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't use
15013 VEC_UNPACK*_EXPR or VEC_PACK_TRUNC_EXPR with scalar modes unless the
15014 type is vector boolean.
15016 2020-06-08 Tamar Christina <tamar.christina@arm.com>
15018 * config/aarch64/aarch64.c (aarch64_layout_frame): Expand comments.
15020 2020-06-08 Christophe Lyon <christophe.lyon@linaro.org>
15022 * config/arm/predicates.md (vfp_register_operand): Use VFP_HI_REGS
15023 instead of VFP_REGS.
15025 2020-06-08 Martin Liska <mliska@suse.cz>
15027 * config/rs6000/vector.md: Replace FAIL with gcc_unreachable
15028 in all vcond* patterns.
15030 2020-06-08 Christophe Lyon <christophe.lyon@linaro.org>
15032 * common/config/arm/arm-common.c (INCLUDE_ALGORITHM):
15033 Define. No longer include <algorithm>.
15035 2020-06-07 Roger Sayle <roger@nextmovesoftware.com>
15037 * config/i386/i386.md (paritydi2, paritysi2): Expand reduction
15038 via shift and xor to an USPEC PARITY matching a parityhi2_cmp.
15039 (paritydi2_cmp, paritysi2_cmp): Delete these define_insn_and_split.
15040 (parityhi2, parityqi2): New expanders.
15041 (parityhi2_cmp): Implement set parity flag with xorb insn.
15042 (parityqi2_cmp): Implement set parity flag with testb insn.
15043 New peephole2s to use these insns (UNSPEC PARITY) when appropriate.
15045 2020-06-07 Jiufu Guo <guojiufu@linux.ibm.com>
15048 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15049 Override flag_cunroll_grow_size.
15051 2020-06-07 Jiufu Guo <guojiufu@linux.ibm.com>
15053 * common.opt (flag_cunroll_grow_size): New flag.
15054 * toplev.c (process_options): Set flag_cunroll_grow_size.
15055 * tree-ssa-loop-ivcanon.c (pass_complete_unroll::execute):
15056 Use flag_cunroll_grow_size.
15058 2020-06-06 Jan Hubicka <hubicka@ucw.cz>
15061 * ipa-devirt.c (struct odr_enum_val): Turn values to wide_int.
15062 (ipa_odr_summary_write): Update streaming.
15063 (ipa_odr_read_section): Update streaming.
15065 2020-06-06 Alexandre Oliva <oliva@adacore.com>
15068 * gcc.c (do_spec_1): Don't call memcpy (_, NULL, 0).
15070 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
15071 Julian Brown <julian@codesourcery.com>
15073 * gimplify.c (gimplify_adjust_omp_clauses): Remove
15074 'GOMP_MAP_STRUCT' mapping from OpenACC 'exit data' directives.
15076 2020-06-05 Richard Biener <rguenther@suse.de>
15078 PR tree-optimization/95539
15079 * tree-vect-data-refs.c
15080 (vect_slp_analyze_and_verify_instance_alignment): Use
15081 SLP_TREE_REPRESENTATIVE for the data-ref check.
15082 * tree-vect-stmts.c (vectorizable_load): Reset stmt_info
15083 back to the first scalar stmt rather than the
15084 SLP_TREE_REPRESENTATIVE to match previous behavior.
15086 2020-06-05 Felix Yang <felix.yang@huawei.com>
15089 * expr.c (emit_move_insn): Check src and dest of the copy to see
15090 if one or both of them are subregs, try to remove the subregs when
15091 innermode and outermode are equal in size and the mode change involves
15092 an implicit round trip through memory.
15094 2020-06-05 Jakub Jelinek <jakub@redhat.com>
15097 * config/i386/i386.md (*ctzsi2_zext, *clzsi2_lzcnt_zext): New
15098 define_insn_and_split patterns.
15099 (*ctzsi2_zext_falsedep, *clzsi2_lzcnt_zext_falsedep): New
15100 define_insn patterns.
15102 2020-06-05 Jonathan Wakely <jwakely@redhat.com>
15104 * alloc-pool.h (object_allocator::remove_raw): New.
15105 * tree-ssa-math-opts.c (struct occurrence): Use NSMDI.
15106 (occurrence::occurrence): Add.
15107 (occurrence::~occurrence): Likewise.
15108 (occurrence::new): Likewise.
15109 (occurrence::delete): Likewise.
15111 (insert_bb): Use new occurence (...) instead of occ_new.
15112 (register_division_in): Likewise.
15113 (free_bb): Use delete occ instead of manually removing
15116 2020-06-05 Richard Biener <rguenther@suse.de>
15118 PR middle-end/95493
15119 * cfgexpand.c (expand_debug_expr): Avoid calling
15120 set_mem_attributes_minus_bitpos when we were expanding
15122 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
15123 ARRAY_REF special-casing, add CONSTRUCTOR to the set of
15124 special-cases we do not want MEM_EXPRs for. Assert
15125 we end up with reasonable MEM_EXPRs.
15127 2020-06-05 Lili Cui <lili.cui@intel.com>
15130 * config/i386/i386.h (PTA_WAITPKG): Change bitmask value.
15132 2020-06-04 Martin Sebor <msebor@redhat.com>
15134 PR middle-end/10138
15135 PR middle-end/95136
15136 * attribs.c (init_attr_rdwr_indices): Move function here.
15137 * attribs.h (rdwr_access_hash, rdwr_map): Define.
15138 (attr_access): Add 'none'.
15139 (init_attr_rdwr_indices): Declared function.
15140 * builtins.c (warn_for_access)): New function.
15141 (check_access): Call it.
15142 * builtins.h (checK-access): Add an optional argument.
15143 * calls.c (rdwr_access_hash, rdwr_map): Move to attribs.h.
15144 (init_attr_rdwr_indices): Declare extern.
15145 (append_attrname): Handle attr_access::none.
15146 (maybe_warn_rdwr_sizes): Same.
15147 (initialize_argument_information): Update comments.
15148 * doc/extend.texi (attribute access): Document 'none'.
15149 * tree-ssa-uninit.c (struct wlimits): New.
15150 (maybe_warn_operand): New function.
15151 (maybe_warn_pass_by_reference): Same.
15152 (warn_uninitialized_vars): Refactor code into maybe_warn_operand.
15153 Also call for function calls.
15154 (pass_late_warn_uninitialized::execute): Adjust comments.
15155 (execute_early_warn_uninitialized): Same.
15157 2020-06-04 Vladimir Makarov <vmakarov@redhat.com>
15159 PR middle-end/95464
15160 * lra.c (lra_emit_move): Add processing STRICT_LOW_PART.
15161 * lra-constraints.c (match_reload): Use STRICT_LOW_PART in output
15162 reload if the original insn has it too.
15164 2020-06-04 Richard Biener <rguenther@suse.de>
15166 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr):
15167 Ensure that tmp_ha is marked TREE_ADDRESSABLE.
15169 2020-06-04 Martin Jambor <mjambor@suse.cz>
15172 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move non-call
15173 exceptions check to...
15174 * tree-eh.c (stmt_unremovable_because_of_non_call_eh_p): ...this
15176 * tree-eh.h (stmt_unremovable_because_of_non_call_eh_p): Declare it.
15177 * ipa-sra.c (isra_track_scalar_value_uses): Use it. New parameter
15180 2020-06-04 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15183 * config/arm/predicates.md (mve_scatter_memory): Define to
15184 match (mem (reg)) for scatter store memory.
15185 * config/arm/mve.md (mve_vstrbq_scatter_offset_<supf><mode>): Modify
15186 define_insn to define_expand.
15187 (mve_vstrbq_scatter_offset_p_<supf><mode>): Likewise.
15188 (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
15189 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
15190 (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
15191 (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
15192 (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
15193 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
15194 (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
15195 (mve_vstrhq_scatter_offset_fv8hf): Likewise.
15196 (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
15197 (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
15198 (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
15199 (mve_vstrwq_scatter_offset_fv4sf): Likewise.
15200 (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
15201 (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
15202 (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
15203 (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
15204 (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
15205 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
15206 (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
15207 (mve_vstrbq_scatter_offset_<supf><mode>_insn): Define insn for scatter
15209 (mve_vstrbq_scatter_offset_p_<supf><mode>_insn): Likewise.
15210 (mve_vstrhq_scatter_offset_<supf><mode>_insn): Likewise.
15211 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>_insn): Likewise.
15212 (mve_vstrhq_scatter_shifted_offset_<supf><mode>_insn): Likewise.
15213 (mve_vstrdq_scatter_offset_p_<supf>v2di_insn): Likewise.
15214 (mve_vstrdq_scatter_offset_<supf>v2di_insn): Likewise.
15215 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di_insn): Likewise.
15216 (mve_vstrdq_scatter_shifted_offset_<supf>v2di_insn): Likewise.
15217 (mve_vstrhq_scatter_offset_fv8hf_insn): Likewise.
15218 (mve_vstrhq_scatter_offset_p_fv8hf_insn): Likewise.
15219 (mve_vstrhq_scatter_shifted_offset_fv8hf_insn): Likewise.
15220 (mve_vstrhq_scatter_shifted_offset_p_fv8hf_insn): Likewise.
15221 (mve_vstrwq_scatter_offset_fv4sf_insn): Likewise.
15222 (mve_vstrwq_scatter_offset_p_fv4sf_insn): Likewise.
15223 (mve_vstrwq_scatter_offset_p_<supf>v4si_insn): Likewise.
15224 (mve_vstrwq_scatter_offset_<supf>v4si_insn): Likewise.
15225 (mve_vstrwq_scatter_shifted_offset_fv4sf_insn): Likewise.
15226 (mve_vstrwq_scatter_shifted_offset_p_fv4sf_insn): Likewise.
15227 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si_insn): Likewise.
15228 (mve_vstrwq_scatter_shifted_offset_<supf>v4si_insn): Likewise.
15230 2020-06-04 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15232 * config/arm/arm_mve.h (__arm_vbicq_n_u16): Correct the intrinsic
15234 (__arm_vbicq_n_s16): Likewise.
15235 (__arm_vbicq_n_u32): Likewise.
15236 (__arm_vbicq_n_s32): Likewise.
15237 (__arm_vbicq): Modify polymorphic variant.
15239 2020-06-04 Richard Biener <rguenther@suse.de>
15241 * tree-vectorizer.h (vect_get_slp_vect_def): Declare.
15242 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
15243 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
15244 (vect_is_simple_use): Use SLP_TREE_REPRESENTATIVE.
15245 * tree-vect-slp.c (vect_get_slp_vect_defs): Fold into single
15247 (vect_get_slp_defs): ... here.
15248 (vect_get_slp_vect_def): New function.
15250 2020-06-04 Richard Biener <rguenther@suse.de>
15252 * tree-vectorizer.h (_slp_tree::lanes): New.
15253 (SLP_TREE_LANES): Likewise.
15254 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
15255 (vectorizable_reduction): Likewise.
15256 (vect_transform_cycle_phi): Likewise.
15257 (vectorizable_induction): Likewise.
15258 (vectorizable_live_operation): Likewise.
15259 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize lanes.
15260 (vect_create_new_slp_node): Likewise.
15261 (slp_copy_subtree): Copy it.
15262 (vect_optimize_slp): Use it.
15263 (vect_slp_analyze_node_operations_1): Likewise.
15264 (vect_slp_convert_to_external): Likewise.
15265 (vect_bb_vectorization_profitable_p): Likewise.
15266 * tree-vect-stmts.c (vectorizable_load): Likewise.
15267 (get_vectype_for_scalar_type): Likewise.
15269 2020-06-04 Richard Biener <rguenther@suse.de>
15271 * tree-vect-slp.c (vect_update_all_shared_vectypes): Remove.
15272 (vect_build_slp_tree_2): Simplify building all external op
15273 nodes from scalars.
15274 (vect_slp_analyze_node_operations): Remove push/pop of
15275 STMT_VINFO_DEF_TYPE.
15276 (vect_schedule_slp_instance): Likewise.
15277 * tree-vect-stmts.c (ect_check_store_rhs): Pass in the
15278 stmt_info, use the vect_is_simple_use overload combining
15279 SLP and stmt_info analysis.
15280 (vect_is_simple_cond): Likewise.
15281 (vectorizable_store): Adjust.
15282 (vectorizable_condition): Likewise.
15283 (vect_is_simple_use): Fully handle invariant SLP nodes
15284 here. Amend stmt_info operand extraction with COND_EXPR
15286 * tree-vect-loop.c (vectorizable_reduction): Deal with
15287 COND_EXPR representation ugliness.
15289 2020-06-04 Hongtao Liu <hongtao.liu@inte.com>
15292 * config/i386/sse.md (*vcvtps2ph_store<merge_mask_name>):
15293 Refine from *vcvtps2ph_store<mask_name>.
15294 (vcvtps2ph256<mask_name>): Refine constraint from vm to v.
15295 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
15296 (*vcvtps2ph256<merge_mask_name>): New define_insn.
15297 (*avx512f_vcvtps2ph512<merge_mask_name>): Ditto.
15298 * config/i386/subst.md (merge_mask): New define_subst.
15299 (merge_mask_name): New define_subst_attr.
15300 (merge_mask_operand3): Ditto.
15302 2020-06-04 Hao Liu <hliu@os.amperecomputing.com>
15304 PR tree-optimization/89430
15305 * tree-ssa-phiopt.c
15306 (struct name_to_bb): Rename to ref_to_bb; add a new field exp;
15307 remove ssa_name_ver, store, offset fields.
15308 (struct ssa_names_hasher): Rename to refs_hasher; update functions.
15309 (class nontrapping_dom_walker): Rename m_seen_ssa_names to m_seen_refs.
15310 (nontrapping_dom_walker::add_or_mark_expr): Extend to support ARRAY_REFs
15311 and COMPONENT_REFs.
15313 2020-06-04 Andreas Schwab <schwab@suse.de>
15316 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Call assemble_external.
15318 2020-06-04 Hongtao.liu <hongtao.liu@intel.com>
15320 * config/i386/sse.md (pmov_dst_3_lower): New mode attribute.
15321 (trunc<mode><pmov_dst_3_lower>2): Refine from
15322 trunc<mode><pmov_dst_3>2.
15324 2020-06-03 Vitor Guidi <vitor.guidi@usp.br>
15326 * match.pd (tanh/sinh -> 1/cosh): New simplification.
15328 2020-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
15331 * config/rs6000/rs6000.c (is_stfs_insn): Rename to
15332 is_lfs_stfs_insn and make it recognize lfs as well.
15333 (prefixed_store_p): Use is_lfs_stfs_insn().
15334 (prefixed_load_p): Use is_lfs_stfs_insn() to recognize lfs.
15336 2020-06-03 Jan Hubicka <hubicka@ucw.cz>
15338 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
15340 (odr_enums): New static var.
15341 (struct odr_enum_val): New struct.
15342 (class odr_enum): New struct.
15343 (odr_enum_map): New hashtable.
15344 (odr_types_equivalent_p): Drop code testing TYPE_VALUES.
15345 (add_type_duplicate): Likewise.
15346 (free_odr_warning_data): Do not free TYPE_VALUES.
15347 (register_odr_enum): New function.
15348 (ipa_odr_summary_write): New function.
15349 (ipa_odr_read_section): New function.
15350 (ipa_odr_summary_read): New function.
15351 (class pass_ipa_odr): New pass.
15352 (make_pass_ipa_odr): New function.
15353 * ipa-utils.h (register_odr_enum): Declare.
15354 * lto-section-in.c: (lto_section_name): Add odr_types section.
15355 * lto-streamer.h (enum lto_section_type): Add odr_types section.
15356 * passes.def: Add odr_types pass.
15357 * lto-streamer-out.c (DFS::DFS_write_tree_body): Do not stream
15359 (hash_tree): Likewise.
15360 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
15362 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
15364 * timevar.def (TV_IPA_ODR): New timervar.
15365 * tree-pass.h (make_pass_ipa_odr): Declare.
15366 * tree.c (free_lang_data_in_type): Regiser ODR types.
15368 2020-06-03 Romain Naour <romain.naour@gmail.com>
15370 * Makefile.in (SELFTEST_DEPS): Move before including language makefile
15373 2020-06-03 Richard Biener <rguenther@suse.de>
15375 PR tree-optimization/95487
15376 * tree-vect-stmts.c (vectorizable_store): Use a truth type
15377 for the scatter mask.
15379 2020-06-03 Richard Biener <rguenther@suse.de>
15381 PR tree-optimization/95495
15382 * tree-vect-slp.c (vect_slp_analyze_node_operations): Use
15383 SLP_TREE_REPRESENTATIVE in the shift assertion.
15385 2020-06-03 Tom Tromey <tromey@adacore.com>
15387 * spellcheck.c (CASE_COST): New define.
15388 (BASE_COST): New define.
15389 (get_edit_distance): Recognize case changes.
15390 (get_edit_distance_cutoff): Update.
15391 (test_edit_distances): Update.
15392 (get_old_cutoff): Update.
15393 (test_find_closest_string): Add case sensitivity test.
15395 2020-06-03 Richard Biener <rguenther@suse.de>
15397 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Loop over
15398 the cost vector to unset the visited flag on stmts.
15400 2020-06-03 Tobias Burnus <tobias@codesourcery.com>
15402 * gimplify.c (omp_notice_variable): Use new hook.
15403 * langhooks-def.h (lhd_omp_predetermined_mapping): Declare.
15404 (LANG_HOOKS_OMP_PREDETERMINED_MAPPING): Define
15405 (LANG_HOOKS_DECLS): Add it.
15406 * langhooks.c (lhd_omp_predetermined_sharing): Remove bogus unused attr.
15407 (lhd_omp_predetermined_mapping): New.
15408 * langhooks.h (struct lang_hooks_for_decls): Add new hook.
15410 2020-06-03 Jan Hubicka <jh@suse.cz>
15412 * lto-streamer.h (LTO_tags): Reorder so frequent tags has small indexes;
15413 add LTO_first_tree_tag and LTO_first_gimple_tag.
15414 (lto_tag_is_tree_code_p): Update.
15415 (lto_tag_is_gimple_code_p): Update.
15416 (lto_gimple_code_to_tag): Update.
15417 (lto_tag_to_gimple_code): Update.
15418 (lto_tree_code_to_tag): Update.
15419 (lto_tag_to_tree_code): Update.
15421 2020-06-02 Felix Yang <felix.yang@huawei.com>
15424 * config/aarch64/aarch64.c (aarch64_short_vector_p):
15425 Leave later code to report an error if SVE is disabled.
15427 2020-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15429 * config/aarch64/aarch64-cores.def (zeus): Define.
15430 * config/aarch64/aarch64-tune.md: Regenerate.
15431 * doc/invoke.texi (AArch64 Options): Document zeus -mcpu option.
15433 2020-06-02 Aaron Sawdey <acsawdey@linux.ibm.com>
15436 * config/rs6000/rs6000.c (prefixed_store_p): Add special case
15438 (is_stfs_insn): New helper function.
15440 2020-06-02 Jan Hubicka <jh@suse.cz>
15442 * lto-streamer-in.c (stream_read_tree_ref): Simplify streaming of
15444 * lto-streamer-out.c (stream_write_tree_ref): Likewise.
15446 2020-06-02 Andrew Stubbs <ams@codesourcery.com>
15448 * config/gcn/gcn-hsa.h (CC1_SPEC): Delete.
15449 * config/gcn/gcn.opt (-mlocal-symbol-id): Delete.
15450 * config/gcn/mkoffload.c (main): Don't use -mlocal-symbol-id.
15452 2020-06-02 Eric Botcazou <ebotcazou@adacore.com>
15454 PR middle-end/95395
15455 * optabs.c (expand_unop): Fix bits/bytes confusion in latest change.
15456 * tree-pretty-print.c (dump_generic_node) <ARRAY_TYPE>: Print quals.
15458 2020-06-02 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
15460 * config/s390/s390.c (print_operand): Emit vector alignment
15463 2020-06-02 Martin Liska <mliska@suse.cz>
15465 * coverage.c (get_coverage_counts): Skip sanity check for TOP N counters
15466 as they have variable number of counters.
15467 * gcov-dump.c (main): Add new option -r.
15468 (print_usage): Likewise.
15469 (tag_counters): All new raw format.
15470 * gcov-io.h (struct gcov_kvp): New.
15471 (GCOV_TOPN_VALUES): Remove.
15472 (GCOV_TOPN_VALUES_COUNTERS): Likewise.
15473 (GCOV_TOPN_MEM_COUNTERS): New.
15474 (GCOV_TOPN_DISK_COUNTERS): Likewise.
15475 (GCOV_TOPN_MAXIMUM_TRACKED_VALUES): Likewise.
15476 * ipa-profile.c (ipa_profile_generate_summary): Use
15477 GCOV_TOPN_MAXIMUM_TRACKED_VALUES.
15478 (ipa_profile_write_edge_summary): Likewise.
15479 (ipa_profile_read_edge_summary): Likewise.
15480 (ipa_profile): Remove usage of GCOV_TOPN_VALUES.
15481 * profile.c (sort_hist_values): Sort variable number
15483 (compute_value_histograms): Special case for TOP N counters
15484 that have dynamic number of key-value pairs.
15485 * value-prof.c (dump_histogram_value): Dump variable number
15486 of key-value pairs.
15487 (stream_in_histogram_value): Stream in variable number
15488 of key-value pairs for TOP N counter.
15489 (get_nth_most_common_value): Deal with variable number
15490 of key-value pairs.
15491 (dump_ic_profile): Use GCOV_TOPN_MAXIMUM_TRACKED_VALUES
15492 for loop iteration.
15493 (gimple_find_values_to_profile): Set GCOV_TOPN_MEM_COUNTERS
15495 * doc/gcov-dump.texi: Document new -r option.
15497 2020-06-02 Iain Buclaw <ibuclaw@gdcproject.org>
15500 * config.gcc (arm-wrs-vxworks7*): Set default cpu to generic-armv7-a.
15502 2020-06-01 Jeff Law <law@torsion.usersys.redhat.com>
15504 * lower-subreg.c (resolve_simple_move): If simplify_gen_subreg_concatn
15505 returns (const_int 0) for the destination, then emit nothing.
15507 2020-06-01 Jan Hubicka <hubicka@ucw.cz>
15509 * lto-streamer.h (enum LTO_tags): Remove LTO_field_decl_ref,
15510 LTO_function_decl_ref, LTO_label_decl_ref, LTO_namespace_decl_ref,
15511 LTO_result_decl_ref, LTO_type_decl_ref, LTO_type_ref,
15512 LTO_const_decl_ref, LTO_imported_decl_ref,
15513 LTO_translation_unit_decl_ref, LTO_global_decl_ref and
15514 LTO_namelist_decl_ref; add LTO_global_stream_ref.
15515 * lto-streamer-in.c (lto_input_tree_ref): Simplify.
15516 (lto_input_scc): Update.
15517 (lto_input_tree_1): Update.
15518 * lto-streamer-out.c (lto_indexable_tree_ref): Simlify.
15519 * lto-streamer.c (lto_tag_name): Update.
15521 2020-06-01 Jan Hubicka <hubicka@ucw.cz>
15523 * ipa-reference.c (stream_out_bitmap): Use lto_output_var_decl_ref.
15524 (ipa_reference_read_optimization_summary): Use lto_intput_var_decl_ref.
15525 * lto-cgraph.c (lto_output_node): Likewise.
15526 (lto_output_varpool_node): Likewise.
15527 (output_offload_tables): Likewise.
15528 (input_node): Likewise.
15529 (input_varpool_node): Likewise.
15530 (input_offload_tables): Likewise.
15531 * lto-streamer-in.c (lto_input_tree_ref): Declare.
15532 (lto_input_var_decl_ref): Declare.
15533 (lto_input_fn_decl_ref): Declare.
15534 * lto-streamer-out.c (lto_indexable_tree_ref): Use only one decl stream.
15535 (lto_output_var_decl_index): Rename to ..
15536 (lto_output_var_decl_ref): ... this.
15537 (lto_output_fn_decl_index): Rename to ...
15538 (lto_output_fn_decl_ref): ... this.
15539 * lto-streamer.h (enum lto_decl_stream_e_t): Remove per-type streams.
15540 (DEFINE_DECL_STREAM_FUNCS): Remove.
15541 (lto_output_var_decl_index): Remove.
15542 (lto_output_fn_decl_index): Remove.
15543 (lto_output_var_decl_ref): Declare.
15544 (lto_output_fn_decl_ref): Declare.
15545 (lto_input_var_decl_ref): Declare.
15546 (lto_input_fn_decl_ref): Declare.
15548 2020-06-01 Feng Xue <fxue@os.amperecomputing.com>
15550 * cgraphclones.c (materialize_all_clones): Adjust replace map dump.
15551 * ipa-param-manipulation.c (ipa_dump_adjusted_parameters): Do not
15552 dump infomation if there is no adjusted parameter.
15553 * (ipa_param_adjustments::dump): Adjust prefix spaces for dump string.
15555 2020-06-01 Aldy Hernandez <aldyh@redhat.com>
15557 * Makefile.in (gimple-array-bounds.o): New.
15558 * tree-vrp.c: Move array bounds code...
15559 * gimple-array-bounds.cc: ...here...
15560 * gimple-array-bounds.h: ...and here.
15562 2020-06-01 Aldy Hernandez <aldyh@redhat.com>
15564 * Makefile.in (OBJS): Add value-range-equiv.o.
15565 * tree-vrp.c (*value_range_equiv*): Move to...
15566 * value-range-equiv.cc: ...here.
15567 * tree-vrp.h (class value_range_equiv): Move to...
15568 * value-range-equiv.h: ...here.
15569 * vr-values.h: Include value-range-equiv.h.
15571 2020-06-01 Feng Xue <fxue@os.amperecomputing.com>
15574 * ipa-cp.c (propagate_aggs_across_jump_function): Check aggregate
15575 lattice for simple pass-through by-ref argument.
15577 2020-05-31 Jeff Law <law@redhat.com>
15579 * lra.c (add_auto_inc_notes): Remove function.
15580 * reload1.c (add_auto_inc_notes): Similarly. Move into...
15581 * rtlanal.c (add_auto_inc_notes): New function.
15582 * rtl.h (add_auto_inc_notes): Add prototype.
15583 * recog.c (peep2_attempt): Scan and add REG_INC notes to new insns
15586 2020-05-31 Jan Hubicka <jh@suse.cz>
15588 * lto-section-out.c (lto_output_decl_index): Remove.
15589 (lto_output_field_decl_index): Move to lto-streamer-out.c
15590 (lto_output_fn_decl_index): Move to lto-streamer-out.c
15591 (lto_output_namespace_decl_index): Remove.
15592 (lto_output_var_decl_index): Remove.
15593 (lto_output_type_decl_index): Remove.
15594 (lto_output_type_ref_index): Remove.
15595 * lto-streamer-out.c (output_type_ref): Remove.
15596 (lto_get_index): New function.
15597 (lto_output_tree_ref): Remove.
15598 (lto_indexable_tree_ref): New function.
15599 (lto_output_var_decl_index): Move here from lto-section-out.c; simplify.
15600 (lto_output_fn_decl_index): Move here from lto-section-out.c; simplify.
15601 (stream_write_tree_ref): Update.
15602 (lto_output_tree): Update.
15603 * lto-streamer.h (lto_output_decl_index): Remove prototype.
15604 (lto_output_field_decl_index): Remove prototype.
15605 (lto_output_namespace_decl_index): Remove prototype.
15606 (lto_output_type_decl_index): Remove prototype.
15607 (lto_output_type_ref_index): Remove prototype.
15608 (lto_output_var_decl_index): Move.
15609 (lto_output_fn_decl_index): Move
15611 2020-05-31 Jakub Jelinek <jakub@redhat.com>
15613 PR middle-end/95052
15614 * expr.c (store_expr): For shortedned_string_cst, ensure temp has
15617 2020-05-31 Jeff Law <law@redhat.com>
15619 * config/h8300/jumpcall.md (brabs, brabc): Disable patterns.
15621 2020-05-31 Jim Wilson <jimw@sifive.com>
15623 * config/riscv/riscv.md (zero_extendsidi2_shifted): New.
15625 2020-05-30 Jonathan Yong <10walls@gmail.com>
15627 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Insert -lkernel32
15628 after -lmsvcrt. This is necessary as libmsvcrt.a is not a pure
15629 import library, but also contains some functions that invoke
15630 others in KERNEL32.DLL.
15632 2020-05-29 Segher Boessenkool <segher@kernel.crashing.org>
15634 * config/rs6000/altivec.md (altivec_vmrghw_direct): Prefer VSX form.
15635 (altivec_vmrglw_direct): Ditto.
15636 (altivec_vperm_<mode>_direct): Ditto.
15637 (altivec_vperm_v8hiv16qi): Ditto.
15638 (*altivec_vperm_<mode>_uns_internal): Ditto.
15639 (*altivec_vpermr_<mode>_internal): Ditto.
15640 (vperm_v8hiv4si): Ditto.
15641 (vperm_v16qiv8hi): Ditto.
15643 2020-05-29 Jan Hubicka <jh@suse.cz>
15645 * lto-streamer-in.c (streamer_read_chain): Move here from
15646 tree-streamer-in.c.
15647 (stream_read_tree_ref): New.
15648 (lto_input_tree_1): Simplify.
15649 * lto-streamer-out.c (stream_write_tree_ref): New.
15650 (lto_write_tree_1): Simplify.
15651 (lto_output_tree_1): Simplify.
15652 (DFS::DFS_write_tree): Simplify.
15653 (streamer_write_chain): Move here from tree-stremaer-out.c.
15654 * lto-streamer.h (lto_output_tree_ref): Update prototype.
15655 (stream_read_tree_ref): Declare
15656 (stream_write_tree_ref): Declare
15657 * tree-streamer-in.c (streamer_read_chain): Update to use
15658 stream_read_tree_ref.
15659 (lto_input_ts_common_tree_pointers): Likewise.
15660 (lto_input_ts_vector_tree_pointers): Likewise.
15661 (lto_input_ts_poly_tree_pointers): Likewise.
15662 (lto_input_ts_complex_tree_pointers): Likewise.
15663 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
15664 (lto_input_ts_decl_common_tree_pointers): Likewise.
15665 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
15666 (lto_input_ts_field_decl_tree_pointers): Likewise.
15667 (lto_input_ts_function_decl_tree_pointers): Likewise.
15668 (lto_input_ts_type_common_tree_pointers): Likewise.
15669 (lto_input_ts_type_non_common_tree_pointers): Likewise.
15670 (lto_input_ts_list_tree_pointers): Likewise.
15671 (lto_input_ts_vec_tree_pointers): Likewise.
15672 (lto_input_ts_exp_tree_pointers): Likewise.
15673 (lto_input_ts_block_tree_pointers): Likewise.
15674 (lto_input_ts_binfo_tree_pointers): Likewise.
15675 (lto_input_ts_constructor_tree_pointers): Likewise.
15676 (lto_input_ts_omp_clause_tree_pointers): Likewise.
15677 * tree-streamer-out.c (streamer_write_chain): Update to use
15678 stream_write_tree_ref.
15679 (write_ts_common_tree_pointers): Likewise.
15680 (write_ts_vector_tree_pointers): Likewise.
15681 (write_ts_poly_tree_pointers): Likewise.
15682 (write_ts_complex_tree_pointers): Likewise.
15683 (write_ts_decl_minimal_tree_pointers): Likewise.
15684 (write_ts_decl_common_tree_pointers): Likewise.
15685 (write_ts_decl_non_common_tree_pointers): Likewise.
15686 (write_ts_decl_with_vis_tree_pointers): Likewise.
15687 (write_ts_field_decl_tree_pointers): Likewise.
15688 (write_ts_function_decl_tree_pointers): Likewise.
15689 (write_ts_type_common_tree_pointers): Likewise.
15690 (write_ts_type_non_common_tree_pointers): Likewise.
15691 (write_ts_list_tree_pointers): Likewise.
15692 (write_ts_vec_tree_pointers): Likewise.
15693 (write_ts_exp_tree_pointers): Likewise.
15694 (write_ts_block_tree_pointers): Likewise.
15695 (write_ts_binfo_tree_pointers): Likewise.
15696 (write_ts_constructor_tree_pointers): Likewise.
15697 (write_ts_omp_clause_tree_pointers): Likewise.
15698 (streamer_write_tree_body): Likewise.
15699 (streamer_write_integer_cst): Likewise.
15700 * tree-streamer.h (streamer_read_chain):Declare.
15701 (streamer_write_chain):Declare.
15702 (streamer_write_tree_body): Update prototype.
15703 (streamer_write_integer_cst): Update prototype.
15705 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
15708 * configure: Regenerated.
15710 2020-05-29 Andrew Stubbs <ams@codesourcery.com>
15712 * config/gcn/gcn-valu.md (add<mode>3_vcc_zext_dup): Add early clobber.
15713 (add<mode>3_vcc_zext_dup_exec): Likewise.
15714 (add<mode>3_vcc_zext_dup2): Likewise.
15715 (add<mode>3_vcc_zext_dup2_exec): Likewise.
15717 2020-05-29 Richard Biener <rguenther@suse.de>
15719 PR tree-optimization/95272
15720 * tree-vectorizer.h (_slp_tree::representative): Add.
15721 (SLP_TREE_REPRESENTATIVE): Likewise.
15722 * tree-vect-loop.c (vectorizable_reduction): Adjust SLP
15724 (vectorizable_live_operation): Use the representative to
15725 attach the reduction info to.
15726 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
15727 SLP_TREE_REPRESENTATIVE.
15728 (vect_create_new_slp_node): Likewise.
15729 (slp_copy_subtree): Copy it.
15730 (vect_slp_rearrange_stmts): Re-arrange even COND_EXPR stmts.
15731 (vect_slp_analyze_node_operations_1): Pass the representative
15732 to vect_analyze_stmt.
15733 (vect_schedule_slp_instance): Pass the representative to
15734 vect_transform_stmt.
15736 2020-05-29 Richard Biener <rguenther@suse.de>
15738 PR tree-optimization/95356
15739 * tree-vect-stmts.c (vectorizable_shift): Do in-place SLP
15740 node hacking during analysis.
15742 2020-05-29 Jan Hubicka <hubicka@ucw.cz>
15745 * lto-streamer-out.c (lto_output_tree): Disable redundant streaming.
15747 2020-05-29 Richard Biener <rguenther@suse.de>
15749 PR tree-optimization/95403
15750 * tree-vect-stmts.c (vect_init_vector_1): Guard against NULL
15753 2020-05-29 Jakub Jelinek <jakub@redhat.com>
15755 PR middle-end/95315
15756 * omp-general.c (omp_resolve_declare_variant): Fix up addition of
15757 declare variant cgraph node removal callback.
15759 2020-05-29 Jakub Jelinek <jakub@redhat.com>
15761 PR middle-end/95052
15762 * expr.c (store_expr): If expr_size is constant and significantly
15763 larger than TREE_STRING_LENGTH, set temp to just the
15764 TREE_STRING_LENGTH portion of the STRING_CST.
15766 2020-05-29 Richard Biener <rguenther@suse.de>
15768 PR tree-optimization/95393
15769 * tree-ssa-phiopt.c (minmax_replacement): Use gimple_build
15770 to build the min/max expression so we simplify cases like
15771 MAX(0, s) immediately.
15773 2020-05-29 Joe Ramsay <joe.ramsay@arm.com>
15775 * config/aarch64/aarch64-sve.md (<LOGICAL:optab><mode>3): Add support
15776 for unpacked EOR, ORR, AND.
15778 2020-05-28 Nicolas Bértolo <nicolasbertolo@gmail.com>
15780 * Makefile.in: don't look for libiberty in the "pic" subdirectory
15781 when building for Mingw. Add dependency on xgcc with the proper
15784 2020-05-28 Jeff Law <law@redhat.com>
15786 * config/h8300/logical.md (bclrhi_msx): Remove pattern.
15788 2020-05-28 Jeff Law <law@redhat.com>
15790 * config/h8300/logical.md (HImode H8/SX bit-and splitter): Don't
15791 make a nonzero adjustment to the memory offset.
15792 (b<ior,xor>hi_msx): Turn into a splitter.
15794 2020-05-28 Eric Botcazou <ebotcazou@adacore.com>
15796 * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
15797 Fix off-by-one error.
15799 2020-05-28 Richard Sandiford <richard.sandiford@arm.com>
15801 * config/aarch64/aarch64.h (aarch64_frame): Add a comment above
15802 wb_candidate1 and wb_candidate2.
15803 * config/aarch64/aarch64.c (aarch64_layout_frame): Invalidate
15804 wb_candidate1 and wb_candidate2 if we decided not to use them.
15806 2020-05-28 Richard Sandiford <richard.sandiford@arm.com>
15809 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Assert that
15810 we have at least some CFI operations when using a frame pointer.
15811 Only redefine the CFA if we have CFI operations.
15813 2020-05-28 Richard Biener <rguenther@suse.de>
15815 * tree-vect-slp.c (vect_prologue_cost_for_slp): Remove
15816 case for !SLP_TREE_VECTYPE.
15817 (vect_slp_analyze_node_operations): Adjust.
15819 2020-05-28 Richard Biener <rguenther@suse.de>
15821 * tree-vectorizer.h (_slp_tree::vec_defs): Add.
15822 (SLP_TREE_VEC_DEFS): Likewise.
15823 * tree-vect-slp.c (_slp_tree::_slp_tree): Adjust.
15824 (_slp_tree::~_slp_tree): Likewise.
15825 (vect_mask_constant_operand_p): Remove unused function.
15826 (vect_get_constant_vectors): Rename to...
15827 (vect_create_constant_vectors): ... this. Take the
15828 invariant node as argument and code generate it. Remove
15829 dead code, remove temporary asserts. Pass a NULL stmt_info
15830 to vect_init_vector.
15831 (vect_get_slp_defs): Simplify.
15832 (vect_schedule_slp_instance): Code-generate externals and
15833 invariants using vect_create_constant_vectors.
15835 2020-05-28 Richard Biener <rguenther@suse.de>
15837 * tree-vect-stmts.c (vect_finish_stmt_generation_1):
15838 Conditionalize stmt_info use, assert the new stmt cannot throw
15839 when not specified.
15840 (vect_finish_stmt_generation): Adjust assert.
15842 2020-05-28 Richard Biener <rguenther@suse.de>
15844 PR tree-optimization/95273
15845 PR tree-optimization/95356
15846 * tree-vect-stmts.c (vectorizable_shift): Adjust when and to
15847 what we set the vector type of the shift operand SLP node
15850 2020-05-28 Andrea Corallo <andrea.corallo@arm.com>
15852 * config/arm/arm.c (mve_vector_mem_operand): Fix unwanted
15855 2020-05-28 Martin Liska <mliska@suse.cz>
15858 * doc/invoke.texi: Add missing params, remove max-once-peeled-insns and
15859 rename ipcp-unit-growth to ipa-cp-unit-growth.
15861 2020-05-28 Hongtao Liu <hongtao.liu@intel.com>
15863 * config/i386/sse.md (*avx512vl_<code>v2div2qi2_store_1): Rename
15864 from *avx512vl_<code>v2div2qi_store and refine memory size of
15866 (*avx512vl_<code>v2div2qi2_mask_store_1): Ditto.
15867 (*avx512vl_<code><mode>v4qi2_store_1): Ditto.
15868 (*avx512vl_<code><mode>v4qi2_mask_store_1): Ditto.
15869 (*avx512vl_<code><mode>v8qi2_store_1): Ditto.
15870 (*avx512vl_<code><mode>v8qi2_mask_store_1): Ditto.
15871 (*avx512vl_<code><mode>v4hi2_store_1): Ditto.
15872 (*avx512vl_<code><mode>v4hi2_mask_store_1): Ditto.
15873 (*avx512vl_<code>v2div2hi2_store_1): Ditto.
15874 (*avx512vl_<code>v2div2hi2_mask_store_1): Ditto.
15875 (*avx512vl_<code>v2div2si2_store_1): Ditto.
15876 (*avx512vl_<code>v2div2si2_mask_store_1): Ditto.
15877 (*avx512f_<code>v8div16qi2_store_1): Ditto.
15878 (*avx512f_<code>v8div16qi2_mask_store_1): Ditto.
15879 (*avx512vl_<code>v2div2qi2_store_2): New define_insn_and_split.
15880 (*avx512vl_<code>v2div2qi2_mask_store_2): Ditto.
15881 (*avx512vl_<code><mode>v4qi2_store_2): Ditto.
15882 (*avx512vl_<code><mode>v4qi2_mask_store_2): Ditto.
15883 (*avx512vl_<code><mode>v8qi2_store_2): Ditto.
15884 (*avx512vl_<code><mode>v8qi2_mask_store_2): Ditto.
15885 (*avx512vl_<code><mode>v4hi2_store_2): Ditto.
15886 (*avx512vl_<code><mode>v4hi2_mask_store_2): Ditto.
15887 (*avx512vl_<code>v2div2hi2_store_2): Ditto.
15888 (*avx512vl_<code>v2div2hi2_mask_store_2): Ditto.
15889 (*avx512vl_<code>v2div2si2_store_2): Ditto.
15890 (*avx512vl_<code>v2div2si2_mask_store_2): Ditto.
15891 (*avx512f_<code>v8div16qi2_store_2): Ditto.
15892 (*avx512f_<code>v8div16qi2_mask_store_2): Ditto.
15893 * config/i386/i386-builtin-types.def: Adjust builtin type.
15894 * config/i386/i386-expand.c: Ditto.
15895 * config/i386/i386-builtin.def: Adjust builtin.
15896 * config/i386/avx512fintrin.h: Ditto.
15897 * config/i386/avx512vlbwintrin.h: Ditto.
15898 * config/i386/avx512vlintrin.h: Ditto.
15900 2020-05-28 Dong JianQiang <dongjianqiang2@huawei.com>
15902 PR gcov-profile/95332
15903 * gcov-io.c (gcov_var::endian): Move field.
15904 (from_file): Add IN_GCOV_TOOL check.
15905 * gcov-io.h (gcov_magic): Ditto.
15907 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
15909 * config/xtensa/xtensa.c (xtensa_delegitimize_address): New
15911 (TARGET_DELEGITIMIZE_ADDRESS): New macro.
15913 2020-05-27 Eric Botcazou <ebotcazou@adacore.com>
15915 * builtin-types.def (BT_UINT128): New primitive type.
15916 (BT_FN_UINT128_UINT128): New function type.
15917 * builtins.def (BUILT_IN_BSWAP128): New GCC builtin.
15918 * doc/extend.texi (__builtin_bswap128): Document it.
15919 * builtins.c (expand_builtin): Deal with BUILT_IN_BSWAP128.
15920 (is_inexpensive_builtin): Likewise.
15921 * fold-const-call.c (fold_const_call_ss): Likewise.
15922 * fold-const.c (tree_call_nonnegative_warnv_p): Likewise.
15923 * tree-ssa-ccp.c (evaluate_stmt): Likewise.
15924 * tree-vect-stmts.c (vect_get_data_ptr_increment): Likewise.
15925 (vectorizable_call): Likewise.
15926 * optabs.c (expand_unop): Always use the double word path for it.
15927 * tree-core.h (enum tree_index): Add TI_UINT128_TYPE.
15928 * tree.h (uint128_type_node): New global type.
15929 * tree.c (build_common_tree_nodes): Build it if TImode is supported.
15931 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
15933 * config/i386/mmx.md (*mmx_haddv2sf3): Remove SSE alternatives.
15934 (mmx_hsubv2sf3): Ditto.
15935 (mmx_haddsubv2sf3): New expander.
15936 (*mmx_haddsubv2sf3): Rename from mmx_addsubv2sf3. Correct
15937 RTL template to model horizontal subtraction and addition.
15938 * config/i386/i386-builtin.def (IX86_BUILTIN_PFPNACC):
15941 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
15944 * config/i386/sse.md
15945 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>):
15946 Remove %q operand modifier from insn template.
15947 (avx512f_<code>v8hiv8di2<mask_name>): Ditto.
15949 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
15951 * config/i386/mmx.md (mmx_pswapdsf2): Add SSE alternatives.
15952 Enable insn pattern for TARGET_MMX_WITH_SSE.
15953 (*mmx_movshdup): New insn pattern.
15954 (*mmx_movsldup): Ditto.
15955 (*mmx_movss): Ditto.
15956 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
15958 (expand_vec_perm_movs): Handle E_V2SFmode.
15959 (expand_vec_perm_even_odd): Ditto.
15960 (expand_vec_perm_broadcast_1): Assert that E_V2SFmode
15961 is already handled by standard shuffle patterns.
15963 2020-05-27 Richard Biener <rguenther@suse.de>
15965 PR tree-optimization/95295
15966 * tree-ssa-loop-im.c (sm_seq_valid_bb): Fix sinking after
15967 merging stores from paths.
15969 2020-05-27 Richard Biener <rguenther@suse.de>
15971 PR tree-optimization/95356
15972 * tree-vect-stmts.c (vectorizable_shift): Adjust vector
15973 type for the shift operand.
15975 2020-05-27 Richard Biener <rguenther@suse.de>
15977 PR tree-optimization/95335
15978 * tree-vect-slp.c (vect_slp_analyze_node_operations): Reset
15979 lvisited for nodes made external.
15981 2020-05-27 Richard Biener <rguenther@suse.de>
15983 * dump-context.h (debug_dump_context): New class.
15984 (dump_context): Make it friend.
15985 * dumpfile.c (debug_dump_context::debug_dump_context):
15987 (debug_dump_context::~debug_dump_context): Likewise.
15988 * tree-vect-slp.c: Include dump-context.h.
15989 (vect_print_slp_tree): Dump a single SLP node.
15990 (debug): New overload for slp_tree.
15991 (vect_print_slp_graph): Rename from vect_print_slp_tree and
15993 (vect_analyze_slp_instance): Adjust.
15995 2020-05-27 Jakub Jelinek <jakub@redhat.com>
15997 PR middle-end/95315
15998 * omp-general.c (omp_declare_variant_remove_hook): New function.
15999 (omp_resolve_declare_variant): Always return base if it is already
16000 declare_variant_alt magic decl itself. Register
16001 omp_declare_variant_remove_hook as cgraph node removal hook.
16003 2020-05-27 Jeff Law <law@redhat.com>
16005 * config/h8300/testcompare.md (tst_extzv_1_n): Do not accept constants
16006 for the primary input operand.
16007 (tstsi_variable_bit_qi): Similarly.
16009 2020-05-26 Uroš Bizjak <ubizjak@gmail.com>
16011 * config/i386/mmx.md (mmx_pswapdv2si2): Add SSE2 alternative.
16013 2020-05-26 Tobias Burnus <tobias@codesourcery.com>
16016 * ipa-utils.h (odr_type_p): Also permit calls with
16017 only flag_generate_offload set.
16019 2020-05-26 Alexandre Oliva <oliva@adacore.com>
16021 * gcc.c (validate_switches): Add braced parameter. Adjust all
16022 callers. Expected and skip trailing brace only if braced.
16023 Return after handling one atom otherwise.
16024 (DUMPS_OPTIONS): New.
16025 (cpp_debug_options): Define in terms of it.
16027 2020-05-26 Richard Biener <rguenther@suse.de>
16029 PR tree-optimization/95327
16030 * tree-vect-stmts.c (vectorizable_shift): Compute op1_vectype
16031 when we are not using a scalar shift.
16033 2020-05-26 Uroš Bizjak <ubizjak@gmail.com>
16035 * config/i386/mmx.md (*mmx_pshufd_1): New insn pattern.
16036 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
16037 Handle E_V2SImode and E_V4HImode.
16038 (expand_vec_perm_even_odd_1): Handle E_V4HImode.
16039 Assert that E_V2SImode is already handled.
16040 (expand_vec_perm_broadcast_1): Assert that E_V2SImode
16041 is already handled by standard shuffle patterns.
16043 2020-05-26 Jan Hubicka <jh@suse.cz>
16045 * tree.c (free_lang_data_in_type): Simpify types of TYPE_VALUES in
16048 2020-05-26 Jakub Jelinek <jakub@redhat.com>
16051 * gimplify.c (find_combined_omp_for): Move to omp-general.c.
16052 * omp-general.h (find_combined_omp_for): Declare.
16053 * omp-general.c: Include tree-iterator.h.
16054 (find_combined_omp_for): New function, moved from gimplify.c.
16056 2020-05-26 Alexandre Oliva <oliva@adacore.com>
16058 * common.opt (aux_base_name): Define.
16059 (dumpbase, dumpdir): Mark as Driver options.
16060 (-dumpbase, -dumpdir): Likewise.
16061 (dumpbase-ext, -dumpbase-ext): New.
16062 (auxbase, auxbase-strip): Drop.
16063 * doc/invoke.texi (-dumpbase, -dumpbase-ext, -dumpdir):
16065 (-o): Introduce the notion of primary output, mention it
16066 influences auxiliary and dump output names as well, add
16068 (-save-temps): Adjust, move examples into -dump*.
16069 (-save-temps=cwd, -save-temps=obj): Likewise.
16070 (-fdump-final-insns): Adjust.
16071 * dwarf2out.c (gen_producer_string): Drop auxbase and
16072 auxbase_strip; add dumpbase_ext.
16073 * gcc.c (enum save_temps): Add SAVE_TEMPS_DUMP.
16074 (save_temps_prefix, save_temps_length): Drop.
16075 (save_temps_overrides_dumpdir): New.
16076 (dumpdir, dumpbase, dumpbase_ext): New.
16077 (dumpdir_length, dumpdir_trailing_dash_added): New.
16078 (outbase, outbase_length): New.
16079 (The Specs Language): Introduce %". Adjust %b and %B.
16080 (ASM_FINAL_SPEC): Use %b.dwo for an aux output name always.
16081 Precede object file with %w when it's the primary output.
16082 (cpp_debug_options): Do not pass on incoming -dumpdir,
16083 -dumpbase and -dumpbase-ext options; recompute them with
16085 (cc1_options): Drop auxbase with and without compare-debug;
16086 use cpp_debug_options instead of dumpbase. Mark asm output
16087 with %w when it's the primary output.
16088 (static_spec_functions): Drop %:compare-debug-auxbase-opt and
16089 %:replace-exception. Add %:dumps.
16090 (driver_handle_option): Implement -save-temps=*/-dumpdir
16091 mutual overriding logic. Save dumpdir, dumpbase and
16092 dumpbase-ext options. Do not save output_file in
16094 (adds_single_suffix_p): New.
16095 (single_input_file_index): New.
16096 (process_command): Combine output dir, output base name, and
16097 dumpbase into dumpdir and outbase.
16098 (set_collect_gcc_options): Pass a possibly-adjusted -dumpdir.
16099 (do_spec_1): Optionally dumpdir instead of save_temps_prefix,
16100 and outbase instead of input_basename in %b, %B and in
16101 -save-temps aux files. Handle empty argument %".
16102 (driver::maybe_run_linker): Adjust dumpdir and auxbase.
16103 (compare_debug_dump_opt_spec_function): Adjust gkd dump file
16104 naming. Spec-quote the computed -fdump-final-insns file name.
16105 (debug_auxbase_opt): Drop.
16106 (compare_debug_self_opt_spec_function): Drop auxbase-strip
16108 (compare_debug_auxbase_opt_spec_function): Drop.
16109 (not_actual_file_p): New.
16110 (replace_extension_spec_func): Drop.
16111 (dumps_spec_func): New.
16112 (convert_white_space): Split-out parts into...
16113 (quote_string, whitespace_to_convert_p): ... these. New.
16114 (quote_spec_char_p, quote_spec, quote_spec_arg): New.
16115 (driver::finalize): Release and reset new variables; drop
16117 * lto-wrapper.c (HAVE_TARGET_EXECUTABLE_SUFFIX): Define if...
16118 (TARGET_EXECUTABLE_SUFFIX): ... is defined; define this to the
16119 empty string otherwise.
16120 (DUMPBASE_SUFFIX): Drop leading period.
16121 (debug_objcopy): Use concat.
16122 (run_gcc): Recognize -save-temps=* as -save-temps too. Obey
16123 -dumpdir. Pass on empty dumpdir and dumpbase with a directory
16124 component. Simplify temp file names.
16125 * opts.c (finish_options): Drop aux base name handling.
16126 (common_handle_option): Drop auxbase-strip handling.
16127 * toplev.c (print_switch_values): Drop auxbase, add
16129 (process_options): Derive aux_base_name from dump_base_name
16131 (lang_dependent_init): Compute dump_base_ext along with
16132 dump_base_name. Disable stack usage and callgraph-info during
16133 lto generation and compare-debug recompilation.
16135 2020-05-26 Hongtao Liu <hongtao.liu@intel.com>
16136 Uroš Bizjak <ubizjak@gmail.com>
16140 * config/i386/sse.md (<floatunssuffix>v2div2sf2): New expander.
16141 (fix<fixunssuffix>_truncv2sfv2di2): Ditto.
16142 (avx512dq_float<floatunssuffix>v2div2sf2): Renaming from
16143 float<floatunssuffix>v2div2sf2.
16144 (avx512dq_fix<fixunssuffix>_truncv2sfv2di2<mask_name>):
16145 Renaming from fix<fixunssuffix>_truncv2sfv2di2<mask_name>.
16146 (vec_pack<floatprefix>_float_<mode>): Adjust icode name.
16147 (vec_unpack_<fixprefix>fix_trunc_lo_<mode>): Ditto.
16148 (vec_unpack_<fixprefix>fix_trunc_hi_<mode>): Ditto.
16149 * config/i386/i386-builtin.def: Ditto.
16150 * emit-rtl.c (validate_subreg): Allow use of *paradoxical* vector
16151 subregs when both omode and imode are vector mode and
16152 have the same inner mode.
16154 2020-05-25 Eric Botcazou <ebotcazou@adacore.com>
16156 * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
16157 Only turn MEM_REFs into bit-field stores for small bit-field regions.
16158 (imm_store_chain_info::output_merged_store): Be prepared for sources
16159 with non-integral type in the bit-field insertion case.
16160 (pass_store_merging::process_store): Use MAX_BITSIZE_MODE_ANY_INT as
16161 the largest size for the bit-field case.
16163 2020-05-25 Uroš Bizjak <ubizjak@gmail.com>
16165 * config/i386/mmx.md (*vec_dupv2sf): Redefine as define_insn.
16166 (mmx_pshufw_1): Change Yv constraint to xYw. Correct type attribute.
16167 (*vec_dupv4hi): Redefine as define_insn.
16168 Remove alternative with general register input.
16169 (*vec_dupv2si): Ditto.
16171 2020-05-25 Richard Biener <rguenther@suse.de>
16173 PR tree-optimization/95309
16174 * tree-vect-slp.c (vect_get_constant_vectors): Move number
16175 of vector computation ...
16176 (vect_slp_analyze_node_operations): ... to analysis phase.
16178 2020-05-25 Jan Hubicka <hubicka@ucw.cz>
16180 * lto-streamer-out.c (lto_output_tree): Add streamer_debugging check.
16181 * lto-streamer.h (streamer_debugging): New constant
16182 * tree-streamer-in.c (streamer_read_tree_bitfields): Add
16183 streamer_debugging check.
16184 (streamer_get_pickled_tree): Likewise.
16185 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
16187 2020-05-25 Richard Biener <rguenther@suse.de>
16189 PR tree-optimization/95308
16190 * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize
16191 test for TARGET_MEM_REFs.
16193 2020-05-25 Richard Biener <rguenther@suse.de>
16195 PR tree-optimization/95295
16196 * tree-ssa-loop-im.c (sm_seq_valid_bb): Compare remat stores
16197 RHSes and drop to full sm_other if they are not equal.
16199 2020-05-25 Richard Biener <rguenther@suse.de>
16201 PR tree-optimization/95271
16202 * tree-vect-stmts.c (vectorizable_bswap): Update invariant SLP
16203 children vector type.
16204 (vectorizable_call): Pass down slp ops.
16206 2020-05-25 Richard Biener <rguenther@suse.de>
16208 PR tree-optimization/95297
16209 * tree-vect-stmts.c (vectorizable_shift): For scalar_shift_arg
16210 skip updating operand 1 vector type.
16212 2020-05-25 Richard Biener <rguenther@suse.de>
16214 PR tree-optimization/95284
16215 * tree-ssa-sink.c (sink_common_stores_to_bb): Amend previous
16218 2020-05-25 Hongtao Liu <hongtao.liu@intel.com>
16221 * config/i386/sse.md (sf2dfmode_lower): New mode attribute.
16222 (trunc<mode><sf2dfmode_lower>2) New expander.
16223 (extend<sf2dfmode_lower><mode>2): Ditto.
16225 2020-05-23 Iain Sandoe <iain@sandoe.co.uk>
16227 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make
16228 ubsan_{data,type},ASAN symbols linker-visible.
16230 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
16232 * lto-streamer-out.c (DFS::DFS): Silence warning.
16234 2020-05-22 Uroš Bizjak <ubizjak@gmail.com>
16237 * config/i386/i386.md (<rounding_insn><mode>2): Do not try to
16238 expand non-sse4 ROUND_ROUNDEVEN rounding via SSE support routines.
16240 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
16242 * lto-streamer-out.c (lto_output_tree): Do not stream final ref if
16245 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
16247 * lto-section-out.c (lto_output_decl_index): Adjust dump indentation.
16248 * lto-streamer-out.c (create_output_block): Fix whitespace
16249 (lto_write_tree_1): Add (debug) dump.
16250 (DFS::DFS): Add dump.
16251 (DFS::DFS_write_tree_body): Do not dump here.
16252 (lto_output_tree): Improve dumping; do not stream ref when not needed.
16253 (produce_asm_for_decls): Fix whitespace.
16254 * tree-streamer-out.c (streamer_write_tree_header): Add dump.
16255 * tree-streamer-out.c (streamer_write_integer_cst): Add debug dump.
16257 2020-05-22 Hongtao.liu <hongtao.liu@intel.com>
16260 * config/i386/sse.md (trunc<pmov_src_lower><mode>2): New expander
16261 (truncv32hiv32qi2): Ditto.
16262 (trunc<ssedoublemodelower><mode>2): Ditto.
16263 (trunc<mode><pmov_dst_3>2): Ditto.
16264 (trunc<mode><pmov_dst_mode_4>2): Ditto.
16265 (truncv2div2si2): Ditto.
16266 (truncv8div8qi2): Ditto.
16267 (avx512f_<code>v8div16qi2): Renaming from *avx512f_<code>v8div16qi2.
16268 (avx512vl_<code>v2div2si): Renaming from *avx512vl_<code>v2div2si2.
16269 (avx512vl_<code><mode>v2<ssecakarnum>qi2): Renaming from
16270 *avx512vl_<code><mode>v<ssescalarnum>qi2.
16272 2020-05-22 H.J. Lu <hongjiu.lu@intel.com>
16275 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16278 2020-05-22 Richard Biener <rguenther@suse.de>
16280 PR tree-optimization/95268
16281 * tree-ssa-sink.c (sink_common_stores_to_bb): Handle clobbers
16284 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
16286 * tree-streamer.c (record_common_node): Fix hash value of pre-streamed
16289 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
16291 * lto-streamer-in.c (lto_read_tree): Do not stream end markers.
16292 (lto_input_scc): Optimize streaming of entry lengths.
16293 * lto-streamer-out.c (lto_write_tree): Do not stream end markers
16294 (DFS::DFS): Optimize stremaing of entry lengths
16296 2020-05-22 Richard Biener <rguenther@suse.de>
16299 * doc/invoke.texi (flto): Document behavior of diagnostic
16302 2020-05-22 Richard Biener <rguenther@suse.de>
16304 * tree-vectorizer.h (vect_is_simple_use): New overload.
16305 (vect_maybe_update_slp_op_vectype): New.
16306 * tree-vect-stmts.c (vect_is_simple_use): New overload
16307 accessing operands of SLP vs. non-SLP operation transparently.
16308 (vect_maybe_update_slp_op_vectype): New function updating
16309 the possibly shared SLP operands vector type.
16310 (vectorizable_operation): Be a bit more SLP vs non-SLP agnostic
16311 using the new vect_is_simple_use overload; update SLP invariant
16312 operand nodes vector type.
16313 (vectorizable_comparison): Likewise.
16314 (vectorizable_call): Likewise.
16315 (vectorizable_conversion): Likewise.
16316 (vectorizable_shift): Likewise.
16317 (vectorizable_store): Likewise.
16318 (vectorizable_condition): Likewise.
16319 (vectorizable_assignment): Likewise.
16320 * tree-vect-loop.c (vectorizable_reduction): Likewise.
16321 * tree-vect-slp.c (vect_get_constant_vectors): Enforce
16322 present SLP_TREE_VECTYPE and check it matches previous
16325 2020-05-22 Richard Biener <rguenther@suse.de>
16327 PR tree-optimization/95248
16328 * tree-ssa-loop-im.c (sm_seq_valid_bb): Remove bogus early out.
16330 2020-05-22 Richard Biener <rguenther@suse.de>
16332 * tree-vectorizer.h (_slp_tree::_slp_tree): New.
16333 (_slp_tree::~_slp_tree): Likewise.
16334 * tree-vect-slp.c (_slp_tree::_slp_tree): Factor out code
16336 (_slp_tree::~_slp_tree): Implement.
16337 (vect_free_slp_tree): Simplify.
16338 (vect_create_new_slp_node): Likewise. Add nops parameter.
16339 (vect_build_slp_tree_2): Adjust.
16340 (vect_analyze_slp_instance): Likewise.
16342 2020-05-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16344 * adjust-alignment.c: Include memmodel.h.
16346 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
16349 * config/i386/cpuid.h: Use hexadecimal in comments.
16351 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
16354 * config/i386/i386-builtins.c (processor_features): Move
16355 F_AVX512VP2INTERSECT after F_AVX512BF16.
16356 (isa_names_table): Likewise.
16358 2020-05-21 Martin Liska <mliska@suse.cz>
16360 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16361 Handle OPT_moutline_atomics.
16362 * config/aarch64/aarch64.c: Add outline-atomics to
16363 aarch64_attributes.
16364 * doc/extend.texi: Document the newly added target attribute.
16366 2020-05-21 Uroš Bizjak <ubizjak@gmail.com>
16370 * config/i386/mmx.md (*mmx_<code>v2sf): Do not mark
16371 operands 1 and 2 commutative. Manually swap operands.
16372 (*mmx_nabsv2sf2): Ditto.
16375 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
16377 * config/i386/i386.md (*<code>tf2_1):
16378 Mark operands 1 and 2 commutative.
16379 (*nabstf2_1): Ditto.
16380 * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
16381 commutative. Do not swap operands.
16382 (*nabs<mode>2): Ditto.
16384 2020-05-20 Uroš Bizjak <ubizjak@gmail.com>
16387 * config/i386/sse.md (<code>v8qiv8hi2): Use
16388 simplify_gen_subreg instead of simplify_subreg.
16389 (<code>v8qiv8si2): Ditto.
16390 (<code>v4qiv4si2): Ditto.
16391 (<code>v4hiv4si2): Ditto.
16392 (<code>v8qiv8di2): Ditto.
16393 (<code>v4qiv4di2): Ditto.
16394 (<code>v2qiv2di2): Ditto.
16395 (<code>v4hiv4di2): Ditto.
16396 (<code>v2hiv2di2): Ditto.
16397 (<code>v2siv2di2): Ditto.
16399 2020-05-20 Uroš Bizjak <ubizjak@gmail.com>
16402 * config/i386/i386.md (*pushsi2_rex64):
16403 Use "e" constraint instead of "i".
16405 2020-05-20 Jan Hubicka <hubicka@ucw.cz>
16407 * lto-streamer-in.c (lto_input_scc): Add SHARED_SCC parameter.
16408 (lto_input_tree_1): Strenghten sanity check.
16409 (lto_input_tree): Update call of lto_input_scc.
16410 * lto-streamer-out.c: Include ipa-utils.h
16411 (create_output_block): Initialize local_trees if merigng is going
16413 (destroy_output_block): Destroy local_trees.
16414 (DFS): Add max_local_entry.
16415 (local_tree_p): New function.
16416 (DFS::DFS): Initialize and maintain it.
16417 (DFS::DFS_write_tree): Decide on streaming format.
16418 (lto_output_tree): Stream inline singleton SCCs
16419 * lto-streamer.h (enum LTO_tags): Add LTO_trees.
16420 (struct output_block): Add local_trees.
16421 (lto_input_scc): Update prototype.
16423 2020-05-20 Patrick Palka <ppalka@redhat.com>
16426 * hash-table.h (hash_table::find_with_hash): Move up the call to
16427 hash_table::verify.
16429 2020-05-20 Martin Liska <mliska@suse.cz>
16431 * lto-compress.c (lto_compression_zstd): Fill up
16432 num_compressed_il_bytes.
16433 (lto_uncompression_zstd): Likewise for num_uncompressed_il_bytes here.
16435 2020-05-20 Richard Biener <rguenther@suse.de>
16437 PR tree-optimization/95219
16438 * tree-vect-loop.c (vectorizable_induction): Reduce
16439 group_size before computing the number of required IVs.
16441 2020-05-20 Richard Biener <rguenther@suse.de>
16443 PR middle-end/95231
16444 * tree-inline.c (remap_gimple_stmt): Revert adjusting
16445 COND_EXPR and VEC_COND_EXPR for a -fnon-call-exception boundary.
16447 2020-05-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
16448 Andre Vieira <andre.simoesdiasvieira@arm.com>
16451 * config/arm/arm-protos.h (arm_mode_base_reg_class): Function
16453 (mve_vector_mem_operand): Likewise.
16454 * config/arm/arm.c (thumb2_legitimate_address_p): For MVE target check
16455 the load from memory to a core register is legitimate for give mode.
16456 (mve_vector_mem_operand): Define function.
16457 (arm_print_operand): Modify comment.
16458 (arm_mode_base_reg_class): Define.
16459 * config/arm/arm.h (MODE_BASE_REG_CLASS): Modify to add check for
16460 TARGET_HAVE_MVE and expand to arm_mode_base_reg_class on TRUE.
16461 * config/arm/constraints.md (Ux): Likewise.
16463 * config/arm/mve.md (mve_mov): Replace constraint Us with Ux and also
16464 add support for missing Vector Store Register and Vector Load Register.
16465 Add a new alternative to support load from memory to PC (or label) in
16467 (mve_vstrbq_<supf><mode>): Modify constraint Us to Ux.
16468 (mve_vldrbq_<supf><mode>): Modify constriant Us to Ux, predicate to
16469 mve_memory_operand and also modify the MVE instructions to emit.
16470 (mve_vldrbq_z_<supf><mode>): Modify constraint Us to Ux.
16471 (mve_vldrhq_fv8hf): Modify constriant Us to Ux, predicate to
16472 mve_memory_operand and also modify the MVE instructions to emit.
16473 (mve_vldrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
16474 mve_memory_operand and also modify the MVE instructions to emit.
16475 (mve_vldrhq_z_fv8hf): Likewise.
16476 (mve_vldrhq_z_<supf><mode>): Likewise.
16477 (mve_vldrwq_fv4sf): Likewise.
16478 (mve_vldrwq_<supf>v4si): Likewise.
16479 (mve_vldrwq_z_fv4sf): Likewise.
16480 (mve_vldrwq_z_<supf>v4si): Likewise.
16481 (mve_vld1q_f<mode>): Modify constriant Us to Ux.
16482 (mve_vld1q_<supf><mode>): Likewise.
16483 (mve_vstrhq_fv8hf): Modify constriant Us to Ux, predicate to
16484 mve_memory_operand.
16485 (mve_vstrhq_p_fv8hf): Modify constriant Us to Ux, predicate to
16486 mve_memory_operand and also modify the MVE instructions to emit.
16487 (mve_vstrhq_p_<supf><mode>): Likewise.
16488 (mve_vstrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
16489 mve_memory_operand.
16490 (mve_vstrwq_fv4sf): Modify constriant Us to Ux.
16491 (mve_vstrwq_p_fv4sf): Modify constriant Us to Ux and also modify the MVE
16492 instructions to emit.
16493 (mve_vstrwq_p_<supf>v4si): Likewise.
16494 (mve_vstrwq_<supf>v4si): Likewise.Modify constriant Us to Ux.
16495 * config/arm/predicates.md (mve_memory_operand): Define.
16497 2020-05-30 Richard Biener <rguenther@suse.de>
16500 * c-fold.c (c_fully_fold_internal): Enhance guard on
16503 2020-05-20 Kito Cheng <kito.cheng@sifive.com>
16506 * Makefile.in (OBJS): Add adjust-alignment.o.
16507 * adjust-alignment.c (pass_data_adjust_alignment): New.
16508 (pass_adjust_alignment): New.
16509 (pass_adjust_alignment::execute): New.
16510 (make_pass_adjust_alignment): New.
16511 * tree-pass.h (make_pass_adjust_alignment): New.
16512 * passes.def: Add pass_adjust_alignment.
16514 2020-05-19 Alex Coplan <alex.coplan@arm.com>
16517 * config/aarch64/aarch64.c (aarch64_evpc_rev_local): Don't match
16518 identity permutation.
16520 2020-05-19 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16522 * doc/sourcebuild.texi: Document new short_eq_int, ptr_eq_short,
16523 msp430_small, msp430_large and size24plus DejaGNU effective
16525 Improve grammar in descriptions for size20plus and size32plus effective
16528 2020-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
16530 * config/bpf/bpf.c (bpf_compute_frame_layout): Include space for
16531 callee saved registers only in xBPF.
16532 (bpf_expand_prologue): Save callee saved registers only in xBPF.
16533 (bpf_expand_epilogue): Likewise for restoring.
16534 * doc/invoke.texi (eBPF Options): Document this is activated by
16537 2020-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
16539 * config/bpf/bpf.opt (mxbpf): New option.
16540 * doc/invoke.texi (Option Summary): Add -mxbpf.
16541 (eBPF Options): Document -mxbbpf.
16543 2020-05-19 Uroš Bizjak <ubizjak@gmail.com>
16546 * config/i386/sse.md (<code>v16qiv16hi2): New expander.
16547 (<code>v32qiv32hi2): Ditto.
16548 (<code>v8qiv8hi2): Ditto.
16549 (<code>v16qiv16si2): Ditto.
16550 (<code>v8qiv8si2): Ditto.
16551 (<code>v4qiv4si2): Ditto.
16552 (<code>v16hiv16si2): Ditto.
16553 (<code>v8hiv8si2): Ditto.
16554 (<code>v4hiv4si2): Ditto.
16555 (<code>v8qiv8di2): Ditto.
16556 (<code>v4qiv4di2): Ditto.
16557 (<code>v2qiv2di2): Ditto.
16558 (<code>v8hiv8di2): Ditto.
16559 (<code>v4hiv4di2): Ditto.
16560 (<code>v2hiv2di2): Ditto.
16561 (<code>v8siv8di2): Ditto.
16562 (<code>v4siv4di2): Ditto.
16563 (<code>v2siv2di2): Ditto.
16565 2020-05-19 Kito Cheng <kito.cheng@sifive.com>
16567 * common/config/riscv/riscv-common.c (riscv_implied_info_t): New.
16568 (riscv_implied_info): New.
16569 (riscv_subset_list): Add handle_implied_ext.
16570 (riscv_subset_list::to_string): New parameter version_p to
16571 control output format.
16572 (riscv_subset_list::handle_implied_ext): New.
16573 (riscv_subset_list::parse_std_ext): Call handle_implied_ext.
16574 (riscv_arch_str): New parameter version_p to control output format.
16575 (riscv_expand_arch): New.
16576 * config/riscv/riscv-protos.h (riscv_arch_str): New parameter,
16578 * config/riscv/riscv.h (riscv_expand_arch): New,
16579 (EXTRA_SPEC_FUNCTIONS): Define.
16580 (ASM_SPEC): Transform -march= via riscv_expand_arch.
16582 2020-05-19 Kito Cheng <kito.cheng@sifive.com>
16584 * riscv-common.c (parse_sv_or_non_std_ext): Rename to
16585 parse_multiletter_ext.
16586 (parse_multiletter_ext): Add parsing `h` and `z`, drop `sx`,
16587 adjust parsing order for 's' and 'x'.
16589 2020-05-19 Richard Biener <rguenther@suse.de>
16591 * tree-vectorizer.h (_slp_tree::vectype): Add field.
16592 (SLP_TREE_VECTYPE): New.
16593 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
16595 (vect_create_new_slp_node): Likewise.
16596 (vect_prologue_cost_for_slp): Move here from tree-vect-stmts.c
16598 (vect_slp_analyze_node_operations): Walk nodes children for
16600 (vect_get_constant_vectors): Use local scope op variable.
16601 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Remove here.
16602 (vect_model_simple_cost): Adjust.
16603 (vect_model_store_cost): Likewise.
16604 (vectorizable_store): Likewise.
16606 2020-05-18 Martin Sebor <msebor@redhat.com>
16608 PR middle-end/92815
16609 * tree-object-size.c (decl_init_size): New function.
16610 (addr_object_size): Call it.
16611 * tree.h (last_field): Declare.
16612 (first_field): Add attribute nonnull.
16614 2020-05-18 Martin Sebor <msebor@redhat.com>
16616 PR middle-end/94940
16617 * tree-vrp.c (vrp_prop::check_mem_ref): Remove unreachable code.
16618 * tree.c (component_ref_size): Correct the handling or array members
16620 Drop a pointless test.
16621 Rename a local variable.
16623 2020-05-18 Jason Merrill <jason@redhat.com>
16625 * aclocal.m4: Add ax_cxx_compile_stdcxx.m4.
16626 * configure.ac: Use AX_CXX_COMPILE_STDCXX(11).
16628 2020-05-14 Jason Merrill <jason@redhat.com>
16630 * doc/install.texi (Prerequisites): Update boostrap compiler
16631 requirement to C++11/GCC 4.8.
16633 2020-05-18 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
16635 PR tree-optimization/94952
16636 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
16637 Initialize variables bitpos, bitregion_start, and bitregion_end in
16638 order to silence warnings about use of uninitialized variables.
16640 2020-05-18 Carl Love <cel@us.ibm.com>
16643 * config/rs6000/vsx.md (define_expand): Fix instruction generation for
16644 first_match_index_<mode>.
16645 * testsuite/gcc.target/powerpc/builtins-8-p9-runnable.c (main): Add
16646 additional test cases with zero vector elements.
16648 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
16651 * config/i386/i386-expand.c (ix86_expand_int_movcc):
16652 Avoid reversing a non-trapping comparison to a trapping one.
16654 2020-05-18 Alex Coplan <alex.coplan@arm.com>
16656 * config/arm/arm.c (output_move_double): Fix codegen when loading into
16657 a register pair with an odd base register.
16659 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
16661 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16662 Do not emit FLAGS_REG clobber for TFmode.
16663 * config/i386/i386.md (*<code>tf2_1): Rewrite as
16664 define_insn_and_split. Mark operands 1 and 2 commutative.
16665 (*nabstf2_1): Ditto.
16666 (absneg SSE splitter): Use MODEF mode iterator instead of SSEMODEF.
16667 Do not swap memory operands. Simplify RTX generation.
16668 (neg abs SSE splitter): Ditto.
16669 * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
16670 commutative. Do not swap operands. Simplify RTX generation.
16671 (*nabs<mode>2): Ditto.
16673 2020-05-18 Richard Biener <rguenther@suse.de>
16675 * tree-vect-slp.c (vect_slp_bb): Start after labels.
16676 (vect_get_constant_vectors): Really place init stmt after scalar defs.
16677 * tree-vect-stmts.c (vect_init_vector_1): Insert before
16680 2020-05-18 H.J. Lu <hongjiu.lu@intel.com>
16682 * config/i386/driver-i386.c (host_detect_local_cpu): Support
16683 Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
16684 processor families.
16686 2020-05-18 Richard Biener <rguenther@suse.de>
16688 PR middle-end/95171
16689 * tree-inline.c (remap_gimple_stmt): Split out trapping compares
16690 when inlining into a non-call EH function.
16692 2020-05-18 Richard Biener <rguenther@suse.de>
16694 PR tree-optimization/95172
16695 * tree-ssa-loop-im.c (execute_sm): Get flag whether we
16696 eventually need the conditional processing.
16697 (execute_sm_exit): When processing an orderd sequence
16698 avoid doing any conditional processing.
16699 (hoist_memory_references): Pass down whether all edges
16700 have ordered processing for a ref to execute_sm.
16702 2020-05-17 Jeff Law <law@redhat.com>
16704 * config/h8300/predicates.md (pc_or_label_operand): New predicate.
16705 * config/h8300/jumpcall.md (branch_true, branch_false): Consolidate
16706 into a single pattern using pc_or_label_operand.
16707 * config/h8300/combiner.md (bit branch patterns): Likewise.
16708 * config/h8300/peepholes.md (HImode and SImode branches): Likewise.
16710 2020-05-17 H.J. Lu <hongjiu.lu@intel.com>
16713 * config/i386/i386-features.c (has_non_address_hard_reg):
16715 (pseudo_reg_set): This. Return the SET expression. Ignore
16716 pseudo register push.
16717 (general_scalar_to_vector_candidate_p): Combine single_set and
16718 has_non_address_hard_reg calls to pseudo_reg_set.
16719 (timode_scalar_to_vector_candidate_p): Likewise.
16720 * config/i386/i386.md (*pushv1ti2): New pattern.
16722 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16725 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16727 * tree-vrp.c (operand_less_p): Move to...
16728 * vr-values.c (operand_less_p): ...here.
16729 * tree-vrp.h (operand_less_p): Remove.
16731 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16733 * tree-vrp.c (operand_less_p): Move to...
16734 * vr-values.c (operand_less_p): ...here.
16735 * tree-vrp.h (operand_less_p): Remove.
16737 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16739 * tree-vrp.c (class vrp_insert): Remove prototype for
16742 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16744 * tree-vrp.c (class live_names): New.
16745 (live_on_edge): Move into live_names.
16746 (build_assert_expr_for): Move into vrp_insert.
16747 (find_assert_locations_in_bb): Rename from
16748 find_assert_locations_1.
16749 (process_assert_insertions_for): Move into vrp_insert.
16750 (compare_assert_loc): Same.
16751 (remove_range_assertions): Same.
16752 (dump_asserts_for): Rename to vrp_insert::dump.
16753 (debug_asserts_for): Rename to vrp_insert::debug.
16754 (dump_all_asserts): Rename to vrp_insert::dump.
16755 (debug_all_asserts): Rename to vrp_insert::debug.
16757 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16759 * tree-vrp.c (class vrp_prop): Move check_all_array_refs,
16760 check_array_ref, check_mem_ref, and search_for_addr_array
16762 (class array_bounds_checker): ...here.
16763 (class check_array_bounds_dom_walker): Adjust to use
16764 array_bounds_checker.
16765 (check_all_array_refs): Move into array_bounds_checker and rename
16767 (class vrp_folder): Make fold_predicate_in private.
16769 2020-05-15 Jeff Law <law@redhat.com>
16771 * config/h8300/h8300.md (SFI iterator): New iterator for
16773 * config/h8300/peepholes.md (memory comparison): Use mode
16774 iterator to consolidate 3 patterns into one.
16775 (stack allocation and stack store): Handle SFmode. Handle
16776 8 byte allocations.
16778 2020-05-15 Segher Boessenkool <segher@kernel.crashing.org>
16780 * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_2): Also require
16781 RS6000_BTM_POWERPC64.
16783 2020-05-15 Uroš Bizjak <ubizjak@gmail.com>
16785 * config/i386/i386.md (SWI48DWI): New mode iterator.
16786 (*push<mode>2): Allow XMM registers.
16787 (*pushdi2_rex64): Ditto.
16788 (*pushsi2_rex64): Ditto.
16790 (push XMM reg splitter): New splitter
16792 (*pushdf) Change "x" operand constraint to "v".
16793 (*pushsf_rex64): Ditto.
16796 2020-05-15 Richard Biener <rguenther@suse.de>
16798 PR tree-optimization/92260
16799 * tree-vect-slp.c (vect_get_constant_vectors): Compute
16800 the number of vector stmts in a canonical way.
16802 2020-05-15 Martin Liska <mliska@suse.cz>
16804 * hsa-gen.c (get_symbol_for_decl): Fix misleading indentation
16807 2020-05-15 Andrew Stubbs <ams@codesourcery.com>
16809 * config/gcn/gcn-valu.md (v<expander><mode>3): Fix unsignedp.
16811 2020-05-15 Richard Biener <rguenther@suse.de>
16813 PR tree-optimization/95133
16814 * gimple-ssa-split-paths.c
16815 (find_block_to_duplicate_for_splitting_paths): Check for
16818 2020-05-15 Christophe Lyon <christophe.lyon@linaro.org>
16820 * config/arm/arm.c (reg_needs_saving_p): Add support for interrupt
16822 (arm_compute_save_reg0_reg12_mask): Use reg_needs_saving_p.
16824 2020-05-15 Tobias Burnus <tobias@codesourcery.com>
16826 PR middle-end/94635
16827 * gimplify.c (gimplify_scan_omp_clauses): For MAP_TO_PSET with
16828 OMP_TARGET_EXIT_DATA, use 'release:' unless the associated
16831 2020-05-15 Uroš Bizjak <ubizjak@gmail.com>
16834 * config/i386/i386.md (isa): Add sse3_noavx.
16835 (enabled): Handle sse3_noavx.
16837 * config/i386/mmx.md (mmx_haddv2sf3): New expander.
16838 (*mmx_haddv2sf3): Rename from mmx_haddv2sf3. Add SSE/AVX
16839 alternatives. Match commutative vec_select selector operands.
16840 (*mmx_haddv2sf3_low): New insn pattern.
16842 (*mmx_hsubv2sf3): Add SSE/AVX alternatives.
16843 (*mmx_hsubv2sf3_low): New insn pattern.
16845 2020-05-15 Richard Biener <rguenther@suse.de>
16847 PR tree-optimization/33315
16848 * tree-ssa-sink.c: Include tree-eh.h.
16849 (sink_stats): Add commoned member.
16850 (sink_common_stores_to_bb): New function implementing store
16851 commoning by sinking to the successor.
16852 (sink_code_in_bb): Call it, pass down TODO_cleanup_cfg returned.
16853 (pass_sink_code::execute): Likewise. Record commoned stores
16856 2020-05-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16858 PR rtl-optimization/37451, part of PR target/61837
16859 * loop-doloop.c (doloop_simplify_count): New function. Simplify
16860 (add -1; zero_ext; add +1) to zero_ext when not wrapping.
16861 (doloop_modify): Call doloop_simplify_count.
16863 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
16866 * doc/sourcebuild.texi: Document effective target lgccjit.
16868 2020-05-14 Andrew Stubbs <ams@codesourcery.com>
16870 * config/gcn/gcn-valu.md (add<mode>3_zext_dup): Change to a
16871 define_expand, and rename the original to ...
16872 (add<mode>3_vcc_zext_dup): ... this, and add a custom VCC operand.
16873 (add<mode>3_zext_dup_exec): Likewise, with ...
16874 (add<mode>3_vcc_zext_dup_exec): ... this.
16875 (add<mode>3_zext_dup2): Likewise, with ...
16876 (add<mode>3_zext_dup_exec): ... this.
16877 (add<mode>3_zext_dup2_exec): Likewise, with ...
16878 (add<mode>3_zext_dup2): ... this.
16879 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address): Switch
16880 addv64di3_zext* calls to use addv64di3_vcc_zext*.
16882 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
16885 * config/i386/sse.md (truncv2dfv2df2): New insn pattern.
16886 (extendv2sfv2df2): Ditto.
16888 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
16890 * configure: Regenerated.
16892 2020-05-14 Christophe Lyon <christophe.lyon@linaro.org>
16894 * config/arm/arm.c (reg_needs_saving_p): New function.
16895 (use_return_insn): Use reg_needs_saving_p.
16896 (arm_get_vfp_saved_size): Likewise.
16897 (arm_compute_frame_layout): Likewise.
16898 (arm_save_coproc_regs): Likewise.
16899 (thumb1_expand_epilogue): Likewise.
16900 (arm_expand_epilogue_apcs_frame): Likewise.
16901 (arm_expand_epilogue): Likewise.
16903 2020-05-14 Christophe Lyon <christophe.lyon@linaro.org>
16905 * config/arm/arm.c (thumb1_expand_prologue): Update error message.
16907 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
16910 * config/i386/sse.md (sse2_cvtpi2pd): Add memory to alternative 1.
16912 (floatv2siv2df2): New expander.
16913 (floatunsv2siv2df2): New insn pattern.
16915 (fix_truncv2dfv2si2): New expander.
16916 (fixuns_truncv2dfv2si2): New insn pattern.
16918 2020-05-14 Richard Sandiford <richard.sandiford@arm.com>
16921 * config/aarch64/aarch64-sve-builtins.cc
16922 (handle_arm_sve_vector_bits_attribute): Create a copy of the
16923 original type's TYPE_MAIN_VARIANT, then reapply all the differences
16924 between the original type and its main variant.
16926 2020-05-14 Richard Biener <rguenther@suse.de>
16928 PR middle-end/95118
16929 * real.c (real_to_decimal_for_mode): Make sure we handle
16930 a zero with nonzero exponent.
16932 2020-05-14 Jakub Jelinek <jakub@redhat.com>
16934 * Makefile.in (GTFILES): Add omp-general.c.
16935 * cgraph.h (struct cgraph_node): Add declare_variant_alt and
16936 calls_declare_variant_alt members and initialize them in the
16938 * ipa.c (symbol_table::remove_unreachable_nodes): Handle direct
16939 calls to declare_variant_alt nodes.
16940 * lto-cgraph.c (lto_output_node): Write declare_variant_alt
16941 and calls_declare_variant_alt.
16942 (input_overwrite_node): Read them back.
16943 * omp-simd-clone.c (simd_clone_create): Copy calls_declare_variant_alt
16945 * tree-inline.c (expand_call_inline): Or in calls_declare_variant_alt
16947 (tree_function_versioning): Copy calls_declare_variant_alt bit.
16948 * omp-offload.c (execute_omp_device_lower): Call
16949 omp_resolve_declare_variant on direct function calls.
16950 (pass_omp_device_lower::gate): Also enable for
16951 calls_declare_variant_alt functions.
16952 * omp-general.c (omp_maybe_offloaded): Return false after inlining.
16953 (omp_context_selector_matches): Handle the case when
16954 cfun->curr_properties has PROP_gimple_any bit set.
16955 (struct omp_declare_variant_entry): New type.
16956 (struct omp_declare_variant_base_entry): New type.
16957 (struct omp_declare_variant_hasher): New type.
16958 (omp_declare_variant_hasher::hash, omp_declare_variant_hasher::equal):
16960 (omp_declare_variants): New variable.
16961 (struct omp_declare_variant_alt_hasher): New type.
16962 (omp_declare_variant_alt_hasher::hash,
16963 omp_declare_variant_alt_hasher::equal): New methods.
16964 (omp_declare_variant_alt): New variables.
16965 (omp_resolve_late_declare_variant): New function.
16966 (omp_resolve_declare_variant): Call omp_resolve_late_declare_variant
16967 when called late. Create a magic declare_variant_alt fndecl and
16968 cgraph node and return that if decision needs to be deferred until
16969 after gimplification.
16970 * cgraph.c (symbol_table::create_edge): Or in calls_declare_variant_alt
16973 PR middle-end/95108
16974 * omp-simd-clone.c (struct modify_stmt_info): Add after_stmt member.
16975 (ipa_simd_modify_stmt_ops): For PHIs, only add before first stmt in
16976 entry block if info->after_stmt is NULL, otherwise add after that stmt
16977 and update it after adding each stmt.
16978 (ipa_simd_modify_function_body): Initialize info.after_stmt.
16980 * function.h (struct function): Add has_omp_target bit.
16981 * omp-offload.c (omp_discover_declare_target_fn_r): New function,
16983 (omp_discover_declare_target_tgt_fn_r): ... this.
16984 (omp_discover_declare_target_var_r): Call
16985 omp_discover_declare_target_tgt_fn_r instead of
16986 omp_discover_declare_target_fn_r.
16987 (omp_discover_implicit_declare_target): Also queue functions with
16988 has_omp_target bit set, for those walk with
16989 omp_discover_declare_target_fn_r, for declare target to functions
16990 walk with omp_discover_declare_target_tgt_fn_r.
16992 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
16995 * config/i386/mmx.md (mmx_fix_truncv2sfv2si2): Rename from mmx_pf2id.
16996 Add SSE/AVX alternative. Change operand predicates from
16997 nonimmediate_operand to register_mmxmem_operand.
16998 Enable instruction pattern for TARGET_MMX_WITH_SSE.
16999 (fix_truncv2sfv2si2): New expander.
17000 (fixuns_truncv2sfv2si2): New insn pattern.
17002 (mmx_floatv2siv2sf2): rename from mmx_floatv2si2.
17003 Add SSE/AVX alternative. Change operand predicates from
17004 nonimmediate_operand to register_mmxmem_operand.
17005 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17006 (floatv2siv2sf2): New expander.
17007 (floatunsv2siv2sf2): New insn pattern.
17009 * config/i386/i386-builtin.def (IX86_BUILTIN_PF2ID):
17011 (IX86_BUILTIN_PI2FD): Ditto.
17013 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
17015 * config/s390/s390.c (s390_emit_stack_probe): Call the probe_stack
17017 * config/s390/s390.md ("@probe_stack2<mode>", "probe_stack"): New
17020 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
17022 * config/s390/s390.c (allocate_stack_space): Add missing updates
17023 of last_probe_offset.
17025 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
17027 * config/s390/s390.md ("allocate_stack"): Call
17028 anti_adjust_stack_and_probe_stack_clash when stack clash
17029 protection is enabled.
17030 * explow.c (anti_adjust_stack_and_probe_stack_clash): Remove
17031 prototype. Remove static.
17032 * explow.h (anti_adjust_stack_and_probe_stack_clash): Add
17035 2020-05-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
17037 * config/rs6000/altivec.h (vec_extractl): New #define.
17038 (vec_extracth): Likewise.
17039 * config/rs6000/altivec.md (UNSPEC_EXTRACTL): New constant.
17040 (UNSPEC_EXTRACTR): Likewise.
17041 (vextractl<mode>): New expansion.
17042 (vextractl<mode>_internal): New insn.
17043 (vextractr<mode>): New expansion.
17044 (vextractr<mode>_internal): New insn.
17045 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vextdubvlx):
17046 New built-in function.
17047 (__builtin_altivec_vextduhvlx): Likewise.
17048 (__builtin_altivec_vextduwvlx): Likewise.
17049 (__builtin_altivec_vextddvlx): Likewise.
17050 (__builtin_altivec_vextdubvhx): Likewise.
17051 (__builtin_altivec_vextduhvhx): Likewise.
17052 (__builtin_altivec_vextduwvhx): Likewise.
17053 (__builtin_altivec_vextddvhx): Likewise.
17054 (__builtin_vec_extractl): New overloaded built-in function.
17055 (__builtin_vec_extracth): Likewise.
17056 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
17057 Define overloaded forms of __builtin_vec_extractl and
17058 __builtin_vec_extracth.
17059 (builtin_function_type): Add cases to mark arguments of new
17060 built-in functions as unsigned.
17061 (rs6000_common_init_builtins): Add
17062 opaque_ftype_opaque_opaque_opaque_opaque.
17063 * config/rs6000/rs6000.md (du_or_d): New mode attribute.
17064 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17065 for a Future Architecture): Add description of vec_extractl and
17066 vec_extractr built-in functions.
17068 2020-05-13 Richard Biener <rguenther@suse.de>
17070 * target.def (add_stmt_cost): Add new vectype parameter.
17071 * targhooks.c (default_add_stmt_cost): Adjust.
17072 * targhooks.h (default_add_stmt_cost): Likewise.
17073 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Take new
17075 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
17076 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
17077 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
17079 * tree-vectorizer.h (stmt_info_for_cost::vectype): Add.
17080 (dump_stmt_cost): Add new vectype parameter.
17081 (add_stmt_cost): Likewise.
17082 (record_stmt_cost): Likewise.
17083 (record_stmt_cost): Add overload with old signature.
17084 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
17086 (vect_get_known_peeling_cost): Likewise.
17087 (vect_estimate_min_profitable_iters): Likewise.
17088 * tree-vectorizer.c (dump_stmt_cost): Add new vectype parameter.
17089 * tree-vect-stmts.c (record_stmt_cost): Likewise.
17090 (vect_prologue_cost_for_slp_op): Remove stmt_vec_info parameter
17091 and pass down correct vectype and NULL stmt_info.
17092 (vect_model_simple_cost): Adjust.
17093 (vect_model_store_cost): Likewise.
17095 2020-05-13 Richard Biener <rguenther@suse.de>
17097 * tree-vectorizer.h (SLP_INSTANCE_GROUP_SIZE): Remove.
17098 (_slp_instance::group_size): Likewise.
17099 * tree-vect-loop.c (vectorizable_reduction): The group size
17100 is the number of lanes in the node.
17101 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
17102 (vect_analyze_slp_instance): Do not set SLP_INSTANCE_GROUP_SIZE,
17103 verify it matches the instance trees number of lanes.
17104 (vect_slp_analyze_node_operations_1): Use the numer of lanes
17105 in the node as group size.
17106 (vect_bb_vectorization_profitable_p): Use the instance root
17107 number of lanes for the size of life.
17108 (vect_schedule_slp_instance): Use the number of lanes as
17110 * tree-vect-stmts.c (vectorizable_load): Remove SLP instance
17111 parameter. Use the number of lanes of the load for the group
17112 size in the gap adjustment code.
17113 (vect_analyze_stmt): Adjust.
17114 (vect_transform_stmt): Likewise.
17116 2020-05-13 Jakub Jelinek <jakub@redhat.com>
17119 * cfgrtl.c (purge_dead_edges): Skip over debug and note insns even
17120 if the last insn is a note.
17122 PR tree-optimization/95060
17123 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Fold a NEGATE_EXPR
17124 if it is the single use of the FMA internal builtin.
17126 2020-05-13 Bin Cheng <bin.cheng@linux.alibaba.com>
17128 PR tree-optimization/94969
17129 * tree-data-dependence.c (constant_access_functions): Rename to...
17130 (invariant_access_functions): ...this. Add parameter. Check for
17131 invariant access function, rather than constant.
17132 (build_classic_dist_vector): Call above function.
17133 * tree-loop-distribution.c (pg_add_dependence_edges): Add comment.
17135 2020-05-13 Hongtao Liu <hongtao.liu@intel.com>
17138 * doc/extend.texi (x86Operandmodifiers): Document more x86
17140 * gcc/config/i386/i386.c: Add comment for operand modifier N and I.
17142 2020-05-12 Giuliano Belinassi <giuliano.belinassi@usp.br>
17144 * tree-vrp.c (class vrp_insert): New.
17145 (insert_range_assertions): Move to class vrp_insert.
17146 (dump_all_asserts): Same as above.
17147 (dump_asserts_for): Same as above.
17148 (live): Same as above.
17149 (need_assert_for): Same as above.
17150 (live_on_edge): Same as above.
17151 (finish_register_edge_assert_for): Same as above.
17152 (find_switch_asserts): Same as above.
17153 (find_assert_locations): Same as above.
17154 (find_assert_locations_1): Same as above.
17155 (find_conditional_asserts): Same as above.
17156 (process_assert_insertions): Same as above.
17157 (register_new_assert_for): Same as above.
17158 (vrp_prop): New variable fun.
17159 (vrp_initialize): New parameter.
17160 (identify_jump_threads): Same as above.
17161 (execute_vrp): Same as above.
17164 2020-05-12 Keith Packard <keith.packard@sifive.com>
17166 * config/riscv/riscv.c (riscv_unique_section): New.
17167 (TARGET_ASM_UNIQUE_SECTION): New.
17169 2020-05-12 Craig Blackmore <craig.blackmore@embecosm.com>
17171 * config.gcc: Add riscv-shorten-memrefs.o to extra_objs for riscv.
17172 * config/riscv/riscv-passes.def: New file.
17173 * config/riscv/riscv-protos.h (make_pass_shorten_memrefs): Declare.
17174 * config/riscv/riscv-shorten-memrefs.c: New file.
17175 * config/riscv/riscv.c (tree-pass.h): New include.
17176 (riscv_compressed_reg_p): New Function
17177 (riscv_compressed_lw_offset_p): Likewise.
17178 (riscv_compressed_lw_address_p): Likewise.
17179 (riscv_shorten_lw_offset): Likewise.
17180 (riscv_legitimize_address): Attempt to convert base + large_offset
17181 to compressible new_base + small_offset.
17182 (riscv_address_cost): Make anticipated compressed load/stores
17183 cheaper for code size than uncompressed load/stores.
17184 (riscv_register_priority): Move compressed register check to
17185 riscv_compressed_reg_p.
17186 * config/riscv/riscv.h (C_S_BITS): Define.
17187 (CSW_MAX_OFFSET): Define.
17188 * config/riscv/riscv.opt (mshorten-memefs): New option.
17189 * config/riscv/t-riscv (riscv-shorten-memrefs.o): New rule.
17190 (PASSES_EXTRA): Add riscv-passes.def.
17191 * doc/invoke.texi: Document -mshorten-memrefs.
17193 * config/riscv/riscv.c (riscv_new_address_profitable_p): New function.
17194 (TARGET_NEW_ADDRESS_PROFITABLE_P): Define.
17195 * doc/tm.texi: Regenerate.
17196 * doc/tm.texi.in (TARGET_NEW_ADDRESS_PROFITABLE_P): New hook.
17197 * sched-deps.c (attempt_change): Use old address if it is cheaper than
17199 * target.def (new_address_profitable_p): New hook.
17200 * targhooks.c (default_new_address_profitable_p): New function.
17201 * targhooks.h (default_new_address_profitable_p): Declare.
17203 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
17206 * config/i386/mmx.md (copysignv2sf3): New expander.
17207 (xorsignv2sf3): Ditto.
17208 (signbitv2sf3): Ditto.
17210 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
17213 * config/i386/mmx.md (fmav2sf4): New insn pattern.
17215 (fnmav2sf4): Ditto.
17216 (fnmsv2sf4): Ditto.
17218 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
17220 * Makefile.in (CET_HOST_FLAGS): New.
17221 (COMPILER): Add $(CET_HOST_FLAGS).
17222 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
17223 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
17225 * aclocal.m4: Regenerated.
17226 * configure: Likewise.
17228 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
17231 * config/i386/mmx.md (<code>v2sf2): New insn pattern.
17232 (*mmx_<code>v2sf2): New insn_and_split pattern.
17233 (*mmx_nabsv2sf2): Ditto.
17234 (*mmx_andnotv2sf3): New insn pattern.
17235 (*mmx_<code>v2sf3): Ditto.
17236 * config/i386/i386.md (absneg_op): New code attribute.
17237 * config/i386/i386.c (ix86_build_const_vector): Handle V2SFmode.
17238 (ix86_build_signbit_mask): Ditto.
17240 2020-05-12 Richard Biener <rguenther@suse.de>
17242 * tree-ssa-live.c (remove_unused_locals): Remove dead debug
17245 2020-05-12 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17247 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
17248 Update prototype to include "local" argument.
17249 * config/msp430/msp430.c (msp430_output_aligned_decl_common): Add
17250 "local" argument. Handle local common decls.
17251 * config/msp430/msp430.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Adjust
17252 msp430_output_aligned_decl_common call with 0 for "local" argument.
17253 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17255 2020-05-12 Richard Biener <rguenther@suse.de>
17257 * cfghooks.c (split_edge): Preserve EDGE_DFS_BACK if set.
17259 2020-05-12 Martin Liska <mliska@suse.cz>
17263 * sanopt.c (sanitize_rewrite_addressable_params):
17264 Clear DECL_NOT_GIMPLE_REG_P for argument.
17266 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
17268 PR tree-optimization/94980
17269 * tree-vect-generic.c (expand_vector_comparison): Use
17270 vector_element_bits_tree to get the element size in bits,
17271 rather than using TYPE_SIZE.
17272 (expand_vector_condition, vector_element): Likewise.
17274 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
17276 PR tree-optimization/94980
17277 * tree-vect-generic.c (build_replicated_const): Take the number
17278 of bits as a parameter, instead of the type of the elements.
17279 (do_plus_minus): Update accordingly, using vector_element_bits
17280 to calculate the correct number of bits.
17281 (do_negate): Likewise.
17283 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
17285 PR tree-optimization/94980
17286 * tree.h (vector_element_bits, vector_element_bits_tree): Declare.
17287 * tree.c (vector_element_bits, vector_element_bits_tree): New.
17288 * match.pd: Use the new functions instead of determining the
17289 vector element size directly from TYPE_SIZE(_UNIT).
17290 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
17291 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
17292 * tree-vect-stmts.c (vect_is_simple_cond): Likewise.
17293 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
17294 (expand_vector_conversion): Likewise.
17295 (expand_vector_addition): Likewise for a TYPE_SIZE_UNIT used as
17296 a divisor. Convert the dividend to bits to compensate.
17297 * tree-vect-loop.c (vectorizable_live_operation): Call
17298 vector_element_bits instead of open-coding it.
17300 2020-05-12 Jakub Jelinek <jakub@redhat.com>
17302 * omp-offload.h (omp_discover_implicit_declare_target): Declare.
17303 * omp-offload.c: Include context.h.
17304 (omp_declare_target_fn_p, omp_declare_target_var_p,
17305 omp_discover_declare_target_fn_r, omp_discover_declare_target_var_r,
17306 omp_discover_implicit_declare_target): New functions.
17307 * cgraphunit.c (analyze_functions): Call
17308 omp_discover_implicit_declare_target.
17310 2020-05-12 Richard Biener <rguenther@suse.de>
17312 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Canonicalize
17313 literal constant &MEM[..] to a constant literal.
17315 2020-05-12 Richard Biener <rguenther@suse.de>
17317 PR tree-optimization/95045
17318 * dbgcnt.def (lim): Add debug-counter.
17319 * tree-ssa-loop-im.c: Include dbgcnt.h.
17320 (find_refs_for_sm): Use lim debug counter for store motion
17322 (do_store_motion): Rename form store_motion. Commit edge
17324 (store_motion_loop): ... here.
17325 (tree_ssa_lim): Adjust.
17327 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17329 * config/rs6000/altivec.h (vec_clzm): Rename to vec_cntlzm.
17330 (vec_ctzm): Rename to vec_cnttzm.
17331 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17332 Change fourth operand for vec_ternarylogic to require
17333 compatibility with unsigned SImode rather than unsigned QImode.
17334 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
17335 Remove overloaded forms of vec_gnb that are no longer needed.
17336 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17337 for a Future Architecture): Replace vec_clzm with vec_cntlzm;
17338 replace vec_ctzm with vec_cntlzm; remove four unwanted forms of
17339 vec_gnb; move vec_ternarylogic documentation into this section
17340 and replace const unsigned char with const unsigned int as its
17343 2020-05-11 Carl Love <cel@us.ibm.com>
17345 * config/rs6000/altivec.h (vec_genpcvm): New #define.
17346 * config/rs6000/rs6000-builtin.def (XXGENPCVM_V16QI): New built-in
17348 (XXGENPCVM_V8HI): Likewise.
17349 (XXGENPCVM_V4SI): Likewise.
17350 (XXGENPCVM_V2DI): Likewise.
17351 (XXGENPCVM): New overloaded built-in instantiation.
17352 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add
17353 entries for FUTURE_BUILTIN_VEC_XXGENPCVM.
17354 (altivec_expand_builtin): Add special handling for
17355 FUTURE_BUILTIN_VEC_XXGENPCVM.
17356 (builtin_function_type): Add handling for
17357 FUTURE_BUILTIN_XXGENPCVM_{V16QI,V8HI,V4SI,V2DI}.
17358 * config/rs6000/vsx.md (VSX_EXTRACT_I4): New mode iterator.
17359 (UNSPEC_XXGENPCV): New constant.
17360 (xxgenpcvm_<mode>_internal): New insn.
17361 (xxgenpcvm_<mode>): New expansion.
17362 * doc/extend.texi: Add documentation for vec_genpcvm built-ins.
17364 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17366 * config/rs6000/altivec.h (vec_strir): New #define.
17367 (vec_stril): Likewise.
17368 (vec_strir_p): Likewise.
17369 (vec_stril_p): Likewise.
17370 * config/rs6000/altivec.md (UNSPEC_VSTRIR): New constant.
17371 (UNSPEC_VSTRIL): Likewise.
17372 (vstrir_<mode>): New expansion.
17373 (vstrir_code_<mode>): New insn.
17374 (vstrir_p_<mode>): New expansion.
17375 (vstrir_p_code_<mode>): New insn.
17376 (vstril_<mode>): New expansion.
17377 (vstril_code_<mode>): New insn.
17378 (vstril_p_<mode>): New expansion.
17379 (vstril_p_code_<mode>): New insn.
17380 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vstribr):
17381 New built-in function.
17382 (__builtin_altivec_vstrihr): Likewise.
17383 (__builtin_altivec_vstribl): Likewise.
17384 (__builtin_altivec_vstrihl): Likewise.
17385 (__builtin_altivec_vstribr_p): Likewise.
17386 (__builtin_altivec_vstrihr_p): Likewise.
17387 (__builtin_altivec_vstribl_p): Likewise.
17388 (__builtin_altivec_vstrihl_p): Likewise.
17389 (__builtin_vec_strir): New overloaded built-in function.
17390 (__builtin_vec_stril): Likewise.
17391 (__builtin_vec_strir_p): Likewise.
17392 (__builtin_vec_stril_p): Likewise.
17393 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
17394 Define overloaded forms of __builtin_vec_strir,
17395 __builtin_vec_stril, __builtin_vec_strir_p, and
17396 __builtin_vec_stril_p.
17397 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17398 for a Future Architecture): Add description of vec_stril,
17399 vec_stril_p, vec_strir, and vec_strir_p built-in functions.
17401 2020-05-11 Kelvin Nilsen <wschmidt@linux.ibm.com>
17403 * config/rs6000/altivec.h (vec_ternarylogic): New #define.
17404 * config/rs6000/altivec.md (UNSPEC_XXEVAL): New constant.
17405 (xxeval): New insn.
17406 * config/rs6000/predicates.md (u8bit_cint_operand): New predicate.
17407 * config/rs6000/rs6000-builtin.def: Add handling of new macro
17409 (BU_FUTURE_V_4): New macro. Use it.
17410 (BU_FUTURE_OVERLOAD_4): Likewise.
17411 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Add
17412 handling for quaternary built-in functions.
17413 (altivec_resolve_overloaded_builtin): Add special-case handling
17414 for __builtin_vec_xxeval.
17415 * config/rs6000/rs6000-call.c: Add handling of new macro
17416 RS6000_BUILTIN_4 in initialization of rs6000_builtin_info,
17417 bdesc0_arg, bdesc1_arg, bdesc2_arg, bdesc_3arg,
17418 bdesc_altivec_preds, bdesc_abs, and bdesc_htm arrays.
17419 (altivec_overloaded_builtins): Add definitions for
17420 FUTURE_BUILTIN_VEC_XXEVAL.
17421 (bdesc_4arg): New array.
17422 (htm_expand_builtin): Add handling for quaternary built-in
17424 (rs6000_expand_quaternop_builtin): New function.
17425 (rs6000_expand_builtin): Add handling for quaternary built-in
17427 (rs6000_init_builtins): Initialize builtin_mode_to_type entries
17428 for unsigned QImode and unsigned HImode.
17429 (builtin_quaternary_function_type): New function.
17430 (rs6000_common_init_builtins): Add handling of quaternary
17432 * config/rs6000/rs6000.h (RS6000_BTC_QUATERNARY): New defined
17434 (RS6000_BTC_PREDICATE): Change value of constant.
17435 (RS6000_BTC_ABS): Likewise.
17436 (rs6000_builtins): Add support for new macro RS6000_BUILTIN_4.
17437 * doc/extend.texi (PowerPC AltiVec Built-In Functions Available
17438 for a Future Architecture): Add description of vec_ternarylogic
17441 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17443 * config/rs6000/rs6000-builtin.def (__builtin_pdepd): New built-in
17445 (__builtin_pextd): Likewise.
17446 * config/rs6000/rs6000.md (UNSPEC_PDEPD): New constant.
17447 (UNSPEC_PEXTD): Likewise.
17450 * doc/extend.texi (Basic PowerPC Built-in Functions Available for
17451 a Future Architecture): Add descriptions of __builtin_pdepd and
17452 __builtin_pextd functions.
17454 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17456 * config/rs6000/altivec.h (vec_clrl): New #define.
17457 (vec_clrr): Likewise.
17458 * config/rs6000/altivec.md (UNSPEC_VCLRLB): New constant.
17459 (UNSPEC_VCLRRB): Likewise.
17460 (vclrlb): New insn.
17461 (vclrrb): Likewise.
17462 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vclrlb): New
17464 (__builtin_altivec_vclrrb): Likewise.
17465 (__builtin_vec_clrl): New overloaded built-in function.
17466 (__builtin_vec_clrr): Likewise.
17467 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
17468 Define overloaded forms of __builtin_vec_clrl and
17469 __builtin_vec_clrr.
17470 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17471 for a Future Architecture): Add descriptions of vec_clrl and
17474 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17476 * config/rs6000/rs6000-builtin.def (__builtin_cntlzdm): New
17477 built-in function definition.
17478 (__builtin_cnttzdm): Likewise.
17479 * config/rs6000/rs6000.md (UNSPEC_CNTLZDM): New constant.
17480 (UNSPEC_CNTTZDM): Likewise.
17481 (cntlzdm): New insn.
17482 (cnttzdm): Likewise.
17483 * doc/extend.texi (Basic PowerPC Built-in Functions available for
17484 a Future Architecture): Add descriptions of __builtin_cntlzdm and
17485 __builtin_cnttzdm functions.
17487 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
17490 * config/i386/mmx.md (sqrtv2sf2): New insn pattern.
17492 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17494 * config/rs6000/altivec.h (vec_cfuge): New #define.
17495 * config/rs6000/altivec.md (UNSPEC_VCFUGED): New constant.
17496 (vcfuged): New insn.
17497 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vcfuged):
17498 New built-in function.
17499 * config/rs6000/rs6000-call.c (builtin_function_type): Add
17500 handling for FUTURE_BUILTIN_VCFUGED case.
17501 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17502 for a Future Architecture): Add description of vec_cfuge built-in
17505 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17507 * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_0): New
17509 (BU_FUTURE_MISC_1): Likewise.
17510 (BU_FUTURE_MISC_2): Likewise.
17511 (BU_FUTURE_MISC_3): Likewise.
17512 (__builtin_cfuged): New built-in function definition.
17513 * config/rs6000/rs6000.md (UNSPEC_CFUGED): New constant.
17514 (cfuged): New insn.
17515 * doc/extend.texi (Basic PowerPC Built-in Functions Available for
17516 a Future Architecture): New subsubsection.
17518 2020-05-11 Richard Biener <rguenther@suse.de>
17520 PR tree-optimization/95049
17521 * tree-ssa-sccvn.c (set_ssa_val_to): Reject lattice transition
17522 between different constants.
17524 2020-05-11 Richard Sandiford <richard.sandiford@arm.com>
17526 * tree-pretty-print.c (dump_generic_node): Handle BOOLEAN_TYPEs.
17528 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17529 Bill Schmidt <wschmidt@linux.ibm.com>
17531 * config/rs6000/altivec.h (vec_gnb): New #define.
17532 * config/rs6000/altivec.md (UNSPEC_VGNB): New constant.
17534 * config/rs6000/rs6000-builtin.def (BU_FUTURE_OVERLOAD_1): New
17536 (BU_FUTURE_OVERLOAD_2): Likewise.
17537 (BU_FUTURE_OVERLOAD_3): Likewise.
17538 (__builtin_altivec_gnb): New built-in function.
17539 (__buiiltin_vec_gnb): New overloaded built-in function.
17540 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
17541 Define overloaded forms of __builtin_vec_gnb.
17542 (rs6000_expand_binop_builtin): Add error checking for 2nd argument
17543 of __builtin_vec_gnb.
17544 (builtin_function_type): Mark return value and arguments unsigned
17545 for FUTURE_BUILTIN_VGNB.
17546 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17547 for a Future Architecture): Add description of vec_gnb built-in
17550 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17551 Bill Schmidt <wschmidt@linux.ibm.com>
17553 * config/rs6000/altivec.h (vec_pdep): New macro implementing new
17555 (vec_pext): Likewise.
17556 * config/rs6000/altivec.md (UNSPEC_VPDEPD): New constant.
17557 (UNSPEC_VPEXTD): Likewise.
17558 (vpdepd): New insn.
17559 (vpextd): Likewise.
17560 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vpdepd): New
17562 (__builtin_altivec_vpextd): Likewise.
17563 * config/rs6000/rs6000-call.c (builtin_function_type): Add
17564 handling for FUTURE_BUILTIN_VPDEPD and FUTURE_BUILTIN_VPEXTD
17566 * doc/extend.texi (PowerPC Altivec Built-in Functions Available
17567 for a Future Architecture): Add description of vec_pdep and
17568 vec_pext built-in functions.
17570 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17571 Bill Schmidt <wschmidt@linux.ibm.com>
17573 * config/rs6000/altivec.h (vec_clzm): New macro.
17574 (vec_ctzm): Likewise.
17575 * config/rs6000/altivec.md (UNSPEC_VCLZDM): New constant.
17576 (UNSPEC_VCTZDM): Likewise.
17577 (vclzdm): New insn.
17578 (vctzdm): Likewise.
17579 * config/rs6000/rs6000-builtin.def (BU_FUTURE_V_0): New macro.
17580 (BU_FUTURE_V_1): Likewise.
17581 (BU_FUTURE_V_2): Likewise.
17582 (BU_FUTURE_V_3): Likewise.
17583 (__builtin_altivec_vclzdm): New builtin definition.
17584 (__builtin_altivec_vctzdm): Likewise.
17585 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Cause
17586 _ARCH_PWR_FUTURE macro to be defined if OPTION_MASK_FUTURE flag is
17588 * config/rs6000/rs6000-call.c (builtin_function_type): Set return
17589 value and parameter types to be unsigned for VCLZDM and VCTZDM.
17590 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17591 support for TARGET_FUTURE flag.
17592 * config/rs6000/rs6000.h (RS6000_BTM_FUTURE): New macro constant.
17593 * doc/extend.texi (PowerPC Altivec Built-in Functions Available
17594 for a Future Architecture): New subsubsection.
17596 2020-05-11 Richard Biener <rguenther@suse.de>
17598 PR tree-optimization/94988
17599 PR tree-optimization/95025
17600 * tree-ssa-loop-im.c (seq_entry): Make a struct, add from.
17601 (sm_seq_push_down): Take extra parameter denoting where we
17603 (execute_sm_exit): Re-issue sm_other stores in the correct
17605 (sm_seq_valid_bb): When always executed, allow sm_other to
17606 prevail inbetween sm_ord and record their stored value.
17607 (hoist_memory_references): Adjust refs_not_supported propagation
17608 and prune sm_other from the end of the ordered sequences.
17610 2020-05-11 Felix Yang <felix.yang@huawei.com>
17613 * config/aarch64/aarch64.md (mov<mode>):
17614 Bitcasts to the equivalent integer mode using gen_lowpart
17615 instead of doing FAIL for scalar floating point move.
17617 2020-05-11 Alex Coplan <alex.coplan@arm.com>
17619 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Add case
17620 to correctly calculate cost for new pattern (*csinv3_uxtw_insn3).
17621 * config/aarch64/aarch64.md (*csinv3_utxw_insn1): New.
17622 (*csinv3_uxtw_insn2): New.
17623 (*csinv3_uxtw_insn3): New.
17624 * config/aarch64/iterators.md (neg_not_cs): New.
17626 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
17629 * config/i386/mmx.md (mmx_addv2sf3): Use "v" constraint
17630 instead of "Yv" for AVX alternatives. Add "prefix" attribute.
17631 (*mmx_addv2sf3): Ditto.
17632 (*mmx_subv2sf3): Ditto.
17633 (*mmx_mulv2sf3): Ditto.
17634 (*mmx_<code>v2sf3): Ditto.
17635 (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
17637 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
17640 * config/i386/i386.c (ix86_vector_mode_supported_p):
17641 Vectorize 3dNOW! vector modes for TARGET_MMX_WITH_SSE.
17642 * config/i386/mmx.md (*mov<mode>_internal): Do not set
17643 mode of alternative 13 to V2SF for TARGET_MMX_WITH_SSE.
17645 (mmx_addv2sf3): Change operand predicates from
17646 nonimmediate_operand to register_mmxmem_operand.
17647 (addv2sf3): New expander.
17648 (*mmx_addv2sf3): Add SSE/AVX alternatives. Change operand
17649 predicates from nonimmediate_operand to register_mmxmem_operand.
17650 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17652 (mmx_subv2sf3): Change operand predicate from
17653 nonimmediate_operand to register_mmxmem_operand.
17654 (mmx_subrv2sf3): Ditto.
17655 (subv2sf3): New expander.
17656 (*mmx_subv2sf3): Add SSE/AVX alternatives. Change operand
17657 predicates from nonimmediate_operand to register_mmxmem_operand.
17658 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17660 (mmx_mulv2sf3): Change operand predicates from
17661 nonimmediate_operand to register_mmxmem_operand.
17662 (mulv2sf3): New expander.
17663 (*mmx_mulv2sf3): Add SSE/AVX alternatives. Change operand
17664 predicates from nonimmediate_operand to register_mmxmem_operand.
17665 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17667 (mmx_<code>v2sf3): Change operand predicates from
17668 nonimmediate_operand to register_mmxmem_operand.
17669 (<code>v2sf3): New expander.
17670 (*mmx_<code>v2sf3): Add SSE/AVX alternatives. Change operand
17671 predicates from nonimmediate_operand to register_mmxmem_operand.
17672 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17673 (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
17675 2020-05-11 Martin Liska <mliska@suse.cz>
17678 * common.opt: Fix typo in option description.
17680 2020-05-11 Martin Liska <mliska@suse.cz>
17682 PR gcov-profile/94928
17683 * gcov-io.h: Add caveat about coverage format parsing and
17684 possible outdated documentation.
17686 2020-05-11 Xiong Hu Luo <luoxhu@linux.ibm.com>
17688 PR tree-optimization/83403
17689 * tree-affine.c (expr_to_aff_combination): Replace SSA_NAME with
17690 determine_value_range, Add fold conversion of MULT_EXPR, fix the
17691 previous PLUS_EXPR.
17693 2020-05-10 Gerald Pfeifer <gerald@pfeifer.com>
17695 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and
17696 __ILP32__ for 32-bit targets.
17698 2020-05-09 Eric Botcazou <ebotcazou@adacore.com>
17700 * tree.h (expr_align): Delete.
17701 * tree.c (expr_align): Likewise.
17703 2020-05-09 Hans-Peter Nilsson <hp@axis.com>
17705 * resource.c (init_resource_info): Filter-out TARGET_FLAGS_REGNUM
17706 from end_of_function_needs.
17708 * config.gcc: Remove support for crisv32-*-* and cris-*-linux*.
17709 * config/cris/t-linux, config/cris/linux.h, config/cris/linux.opt:
17711 * config/cris/t-elfmulti: Remove crisv32 multilib.
17712 * config/cris: Remove shared-library and CRIS v32 support.
17714 Move trivially from cc0 to reg:CC model, removing most optimizations.
17715 * config/cris/cris.md: Remove all side-effect patterns and their
17716 splitters. Remove most peepholes. Add clobbers of CRIS_CC0_REGNUM
17717 to all but post-reload control-flow and movem insns. Remove
17718 constraints on all modified expanders. Remove obsoleted cc0-related
17720 (attr "cc"): Remove alternative "rev".
17721 (mode_iterator BWDD, DI_, SI_): New.
17722 (mode_attr sCC_destc, cmp_op1c, cmp_op2c): New.
17723 ("tst<mode>"): Remove; fold as "M" alternative into compare insn.
17724 ("mstep_shift", "mstep_mul"): Remove patterns.
17725 ("s<rcond>", "s<ocond>", "s<ncond>"): Anonymize.
17726 * config/cris/cris.c: Change all non-condition-code,
17727 non-control-flow emitted insns to add a parallel with clobber of
17728 CRIS_CC0_REGNUM, mostly by changing from gen_rtx_SET with
17729 emit_insn to use of emit_move_insn, gen_add2_insn or
17730 cris_emit_insn, as convenient.
17731 (cris_reg_overlap_mentioned_p)
17732 (cris_normal_notice_update_cc, cris_notice_update_cc): Remove.
17733 (cris_movem_load_rest_p): Don't assume all elements in a
17735 (cris_store_multiple_op_p): Ditto.
17736 (cris_emit_insn): New function.
17737 * cris/cris-protos.h (cris_emit_insn): Declare.
17740 * config/cris/cris.md (zcond): New code_iterator.
17741 ("*cbranch<mode>4_btstq<CC>"): New insn_and_split.
17743 * config/cris/cris.c (TARGET_FLAGS_REGNUM): Define.
17745 * config/cris/cris.h (REVERSIBLE_CC_MODE): Define to true.
17747 * config/cris/cris.md ("movsi"): For memory destination
17748 post-reload, generate clobberless variant. Similarly for a
17749 zero-source post-reload.
17750 ("*mov_tomem<mode>_split"): New split.
17751 ("*mov_tomem<mode>"): New insn.
17752 ("enabled", mov_tomem_enabled): Define and use to exclude "x" ->
17753 "Q>m" for less-than-SImode.
17754 ("*mov_fromzero<mode>_split"): New split.
17755 ("*mov_fromzero<mode>"): New insn.
17757 Prepare for cmpelim pass to eliminate redundant compare insns.
17758 * config/cris/cris-modes.def: New file.
17759 * config/cris/cris-protos.h (cris_select_cc_mode): Declare.
17760 (cris_notice_update_cc): Remove left-over declaration.
17761 * config/cris/cris.c (TARGET_CC_MODES_COMPATIBLE): Define.
17762 (cris_select_cc_mode, cris_cc_modes_compatible): New functions.
17763 * config/cris/cris.h (SELECT_CC_MODE): Define.
17764 * config/cris/cris.md (NZSET, NZUSE, NZVCSET, NZVCUSE): New
17766 (cond): New code_iterator.
17767 (nzcond): Replacement for incorrect ncond. All callers changed.
17768 (nzvccond): Replacement for ocond. All callers changed.
17769 (rnzcond): Replacement for rcond. All callers changed.
17770 (xCC): New code_attr.
17771 (cmp_op1c, cmp_op0c): Renumber from cmp_op1c and cmp_op2c. All
17773 ("*cmpdi<NZVCSET:mode>"): Rename from "*cmpdi". Replace
17774 CCmode with iteration over NZVCSET.
17775 ("*cmp_ext<BW:mode><NZVCSET:mode>"): Similarly; rename from
17777 ("*cmpsi<NZVCSET:mode>"): Similarly, from "*cmpsi".
17778 ("*cmp<BW:mode><NZVCSET:mode>"): Similarly from "*cmp<mode>".
17779 ("*btst<mode>"): Similarly, from "*btst".
17780 ("*cbranch<mode><code>4"): Rename from "*cbranch<mode>4",
17781 iterating over cond instead of matching the comparison with
17782 ordered_comparison_operator.
17783 ("*cbranch<mode>4_btstq<CC>"): Correct label operand number.
17784 ("b<zcond:code><mode>"): Rename from "b<ncond:code>", iterating
17786 ("b<nzvccond:code><mode>"): Similarly from "b<ocond:code>", over
17787 NZVCUSE. Remove FIXME.
17788 ("*b<nzcond:code>_reversed<mode>"): Similarly from
17789 "*b<ncond:code>_reversed", over NZUSE.
17790 ("*b<nzvccond:code>_reversed<mode>"): Similarly from
17791 "*b<ocond:code>_reversed", over NZVCUSE. Remove FIXME.
17792 ("b<rnzcond:code><mode>"): Similarly from "b<rcond:code>",
17793 over NZUSE. Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
17794 depending on CC_NZmode vs. CCmode. Remove FIXME.
17795 ("*b<rnzcond:code>_reversed<mode>"): Similarly from
17796 "*b<rcond:code>_reversed", over NZUSE.
17797 ("*cstore<mode><code>4"): Rename from "*cstore<mode>4",
17798 iterating over cond instead of matching the comparison with
17799 ordered_comparison_operator.
17800 ("*s<nzcond:code><mode>"): Rename from "*s<ncond:code>",
17801 iterating over NZUSE.
17802 ("*s<rnzcond:code><mode>"): Similar from "*s<rcond:code>", over
17803 NZUSE. Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
17804 depending on CC_NZmode vs. CCmode.
17805 ("*s<nzvccond:code><mode>"): Simlar from "*s<ocond:code>", over
17806 NZVCUSE. Remove FIXME.
17807 ("cc"): Comment on new use.
17808 ("cc_enabled"): New attribute.
17809 ("enabled"): Make default fall back to cc_enabled.
17810 ("setnz", "ccnz", "setnzvc", "ccnzvc", "setcc", "cccc"): New
17811 default_subst_attrs.
17812 ("setnz_subst", "setnzvc_subst", "setcc_subst"): New default_subst.
17813 ("*movsi_internal<setcc><setnz><setnzvc>"): Rename from
17814 "*movsi_internal". Correct contents of, and rename attribute
17815 "cc" to "cc<cccc><ccnz><ccnzvc>".
17816 ("anz", "anzvc", "acc"): New define_subst_attrs.
17817 ("<acc><anz><anzvc>movhi<setcc><setnz><setnzvc>"): Rename from
17818 "movhi". Rename "cc" attribute to "cc<cccc><ccnz><ccnzvc>".
17819 ("<acc><anz><anzvc>movqi<setcc><setnz><setnzvc>"): Similar from
17820 "movqi". Correct contents of, and rename "cc" attribute to
17821 "cc<cccc><ccnz><ccnzvc>".
17822 ("*b<zcond:code><mode>"): Rename from "b<zcond:code><mode>".
17823 ("*b<nzvccond:code><mode>"): Rename from "b<nzvccond:code><mode>".
17824 ("*b<rnzcond:code><mode>"): Rename from "*b<rnzcond:code><mode>".
17825 ("<acc><anz><anzvc>extend<mode>si2<setcc><setnz><setnzvc>"):
17826 Rename from "extend<mode>si2".
17827 ("<acc><anz><anzvc>zero_extend<mode>si2<setcc><setnz><setnzvc>"):
17828 Similar, from "zero_extend<mode>si2".
17829 ("*adddi3<setnz>"): Rename from "*adddi3".
17830 ("*subdi3<setnz>"): Similarly from "*subdi3".
17831 ("*addsi3<setnz>"): Similarly from "*addsi3".
17832 ("*subsi3<setnz>"): Similarly from "*subsi3".
17833 ("*addhi3<setnz>"): Similarly from "*addhi3" and decorate the
17834 "cc" attribute to "cc<ccnz>".
17835 ("*addqi3<setnz>"): Similarly from "*addqi3".
17836 ("*sub<mode>3<setnz>"): Similarly from "*sub<mode>3".
17837 ("*expanded_andsi<setcc><setnz><setnzvc>"): Rename from
17839 ("*iorsi3<setcc><setnz><setnzvc>"): Similar from "*iorsi3".
17840 Decorate "cc" attribute to make "cc<cccc><ccnz><ccnzvc>".
17841 ("*iorhi3<setcc><setnz><setnzvc>"): Similar from "*iorhi3".
17842 ("*iorqi3<setcc><setnz><setnzvc>"): Similar from "*iorqi3".
17843 ("*expanded_andhi<setcc><setnz><setnzvc>"): Similar from
17844 "*expanded_andhi". Add quick cc-setting alternative for 0..31.
17845 ("*andqi3<setcc><setnz><setnzvc>"): Similar from "*andqi3".
17846 ("<acc><anz><anzvc>xorsi3<setcc><setnz><setnzvc>"): Rename
17848 ("<acc><anz><anzvc>one_cmplsi2<setcc><setnz><setnzvc>"): Rename
17849 from "one_cmplsi2".
17850 ("<acc><anz><anzvc><shlr>si3<setcc><setnz><setnzvc>"): Rename
17852 ("<acc><anz><anzvc>clzsi2<setcc><setnz><setnzvc>"): Rename
17854 ("<acc><anz><anzvc>bswapsi2<setcc><setnz><setnzvc>"): Rename
17856 ("*uminsi3<setcc><setnz><setnzvc>"): Rename from "*uminsi3".
17858 * config/cris/cris-modes.def (CC_ZnN): New CC_MODE.
17859 * config/cris/cris.c (cris_rtx_costs): Handle pre-split bit-test
17860 * config/cris/cris.md (ZnNNZSET, ZnNNZUSE): New mode_iterators.
17861 (znnCC, rznnCC): New code_attrs.
17862 ("*btst<mode>"): Iterator over ZnNNZSET instead of NZVCSET. Remove
17863 obseolete comment. Add belt-and-suspenders mode-test to condition.
17864 Add fixme regarding remaining matched-but-not-generated case.
17865 ("*cbranch<mode>4_btstrq1_<CC>"): New insn_and_split.
17866 ("*cbranch<mode>4_btstqb0_<CC>"): Rename from
17867 "*cbranch<mode>4_btstq<CC>". Split to CC_NZ instead of CC.
17868 ("*b<zcond:code><mode>"): Iterate over ZnNNZUSE instead of NZUSE.
17869 Handle output of CC_ZnNmode.
17870 ("*b<nzcond:code>_reversed<mode>"): Ditto.
17872 * config/cris/cris.c (cris_select_cc_mode): Return CC_NZmode for
17873 NEG too. Correct comment.
17874 * config/cris/cris.md ("<anz>neg<mode>2<setnz>"): Rename from
17877 2020-05-08 Vladimir Makarov <vmakarov@redhat.com>
17879 * ira-color.c (update_costs_from_allocno): Remove
17880 conflict_cost_update_p argument. Propagate costs only along
17881 threads. Always do conflict cost update. Add printing debugging
17883 (update_costs_from_copies): Add printing debugging info.
17884 (restore_costs_from_copies): Ditto.
17885 (assign_hard_reg): Improve debug info.
17886 (push_only_colorable): Ditto. Call update_costs_from_prefs.
17887 (color_allocnos): Remove update_costs_from_prefs.
17889 2020-05-08 Richard Biener <rguenther@suse.de>
17891 * tree-vectorizer.h (vec_info::slp_loads): New.
17892 (vect_optimize_slp): Declare.
17893 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
17894 nothing when there are no loads.
17895 (vect_gather_slp_loads): Gather loads into a vector.
17896 (vect_supported_load_permutation_p): Remove.
17897 (vect_analyze_slp_instance): Do not verify permutation
17899 (vect_analyze_slp): Optimize permutations of reductions
17900 after all SLP instances have been gathered and gather
17902 (vect_optimize_slp): New function split out from
17903 vect_supported_load_permutation_p. Elide some permutations.
17904 (vect_slp_analyze_bb_1): Call vect_optimize_slp.
17905 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17906 * tree-vect-stmts.c (vectorizable_load): Check whether
17907 the load can be permuted. When generating code assert we can.
17909 2020-05-08 Richard Biener <rguenther@suse.de>
17911 * tree-ssa-sccvn.c (rpo_avail): Change type to
17912 eliminate_dom_walker *.
17913 (eliminate_with_rpo_vn): Adjust rpo_avail to make vn_valueize
17914 use the DOM walker availability.
17915 (vn_reference_fold_indirect): Use get_addr_base_and_unit_offset_1
17916 with vn_valueize as valueization callback.
17917 (vn_reference_maybe_forwprop_address): Likewise.
17918 * tree-dfa.c (get_addr_base_and_unit_offset_1): Also valueize
17919 array_ref_low_bound.
17921 2020-05-08 Jakub Jelinek <jakub@redhat.com>
17923 PR tree-optimization/94786
17924 * match.pd (A ^ ((A ^ B) & -(C cmp D)) -> (C cmp D) ? B : A): New
17928 * config/i386/i386.md (peephole2 after *add<mode>3_cc_overflow_1): New
17931 PR middle-end/94724
17932 * tree.c (get_narrower): Reuse the op temporary instead of
17935 PR tree-optimization/94783
17936 * match.pd ((X + (X >> (prec - 1))) ^ (X >> (prec - 1)) to abs (X)):
17937 New simplification.
17939 PR tree-optimization/94956
17940 * match.pd (FFS): Optimize __builtin_ffs* of non-zero argument into
17941 __builtin_ctz* + 1 if direct IFN_CTZ is supported.
17943 PR tree-optimization/94913
17944 * match.pd (A - B + -1 >= A to B >= A): New simplification.
17945 (A - B > A to A < B): Don't test TYPE_OVERFLOW_WRAPS which is always
17946 true for TYPE_UNSIGNED integral types.
17949 PR rtl-optimization/94516
17950 * rtl.h (remove_reg_equal_equiv_notes): Add a bool argument defaulted
17952 * rtlanal.c (remove_reg_equal_equiv_notes): Add no_rescan argument.
17953 Call df_notes_rescan if that argument is not true and returning true.
17954 * combine.c (adjust_for_new_dest): Pass true as second argument to
17955 remove_reg_equal_equiv_notes.
17956 * postreload.c (reload_combine_recognize_pattern): Don't call
17959 2020-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17961 * config/rs6000/rs6000.md (*setnbc_<un>signed_<GPR:mode>): New
17963 (*setnbcr_<un>signed_<GPR:mode>): New define_insn.
17964 (*neg_eq_<mode>): Avoid for TARGET_FUTURE; add missing && 1.
17965 (*neg_ne_<mode>): Likewise.
17967 2020-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17969 * config/rs6000/rs6000.md (setbc_<un>signed_<GPR:mode>): New
17971 (*setbcr_<un>signed_<GPR:mode>): Likewise.
17972 (cstore<mode>4): Use setbc[r] if available.
17973 (<code><GPR:mode><GPR2:mode>2_isel): Avoid for TARGET_FUTURE.
17974 (eq<mode>3): Use setbc for TARGET_FUTURE.
17975 (*eq<mode>3): Avoid for TARGET_FUTURE.
17976 (ne<mode>3): Replace :P with :GPR; use setbc for TARGET_FUTURE;
17977 else for non-Pmode, use gen_eq and gen_xor.
17978 (*ne<mode>3): Avoid for TARGET_FUTURE.
17979 (*eqsi3_ext<mode>): Avoid for TARGET_FUTURE; fix missing && 1.
17981 2020-05-07 Jeff Law <law@redhat.com>
17983 * config/h8300/h8300.md: Move expanders and patterns into
17984 files based on functionality.
17985 * config/h8300/addsub.md: New file.
17986 * config/h8300/bitfield.md: New file
17987 * config/h8300/combiner.md: New file
17988 * config/h8300/divmod.md: New file
17989 * config/h8300/extensions.md: New file
17990 * config/h8300/jumpcall.md: New file
17991 * config/h8300/logical.md: New file
17992 * config/h8300/movepush.md: New file
17993 * config/h8300/multiply.md: New file
17994 * config/h8300/other.md: New file
17995 * config/h8300/proepi.md: New file
17996 * config/h8300/shiftrotate.md: New file
17997 * config/h8300/testcompare.md: New file
17999 * config/h8300/h8300.md (adds/subs splitters): Merge into single
18001 (negation expanders and patterns): Simplify and combine using
18003 (one_cmpl expanders and patterns): Likewise.
18004 (tablejump, indirect_jump patterns ): Likewise.
18005 (shift and rotate expanders and patterns): Likewise.
18006 (absolute value expander and pattern): Drop expander, rename pattern
18008 (peephole2 patterns): Move into...
18009 * config/h8300/peepholes.md: New file.
18011 * config/h8300/constraints.md (L and N): Simplify now that we're not
18012 longer supporting the original H8/300 chip.
18013 * config/h8300/elf.h (LINK_SPEC): Likewise. Default to H8/300H.
18014 * config/h8300/h8300.c (shift_alg_qi): Drop H8/300 support.
18015 (shift_alg_hi, shift_alg_si): Similarly.
18016 (h8300_option_overrides): Similarly. Default to H8/300H. If
18017 compiling for H8/S, then turn off H8/300H. Do not update the
18018 shift_alg tables for H8/300 port.
18019 (h8300_emit_stack_adjustment): Remove support for H8/300. Simplify
18021 (push, split_adds_subs, h8300_rtx_costs): Likewise.
18022 (h8300_print_operand, compute_mov_length): Likewise.
18023 (output_plussi, compute_plussi_length): Likewise.
18024 (compute_plussi_cc, output_logical_op): Likewise.
18025 (compute_logical_op_length, compute_logical_op_cc): Likewise.
18026 (get_shift_alg, h8300_shift_needs_scratch): Likewise.
18027 (output_a_shift, compute_a_shift_length): Likewise.
18028 (output_a_rotate, compute_a_rotate_length): Likewise.
18029 (output_simode_bld, h8300_hard_regno_mode_ok): Likewise.
18030 (h8300_modes_tieable_p, h8300_return_in_memory): Likewise.
18031 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
18032 (attr_cpu, TARGET_H8300): Remove.
18033 (TARGET_DEFAULT): Update.
18034 (UNITS_PER_WORD, PARM_BOUNDARY): Simplify where possible.
18035 (BIGGEST_ALIGNMENT, STACK_BOUNDARY): Likewise.
18036 (CONSTANT_ADDRESS_P, MOVE_MAX, Pmode): Likewise.
18037 (SIZE_TYPE, POINTER_SIZE, ASM_WORD_OP): Likewise.
18038 * config/h8300/h8300.md: Simplify patterns throughout.
18039 * config/h8300/t-h8300: Update multilib configuration.
18041 * config/h8300/h8300.h (LINK_SPEC): Remove.
18042 (USER_LABEL_PREFIX): Likewise.
18044 * config/h8300/h8300.c (h8300_asm_named_section): Remove.
18045 (h8300_option_override): Remove remnants of COFF support.
18047 2020-05-07 Alan Modra <amodra@gmail.com>
18049 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Replace
18050 set_rtx_cost with set_src_cost.
18051 * tree-switch-conversion.c (bit_test_cluster::emit): Likewise.
18053 2020-05-07 Kewen Lin <linkw@gcc.gnu.org>
18055 * tree-vect-stmts.c (vectorizable_load): Check alignment to avoid
18056 redundant half vector handlings for no peeling gaps.
18058 2020-05-07 Giuliano Belinassi <giuliano.belinassi@usp.br>
18060 * tree-ssa-operands.c (operands_scanner): New class.
18061 (operands_bitmap_obstack): Remove.
18062 (n_initialized): Remove.
18063 (build_uses): Move to operands_scanner class.
18064 (build_vuse): Same as above.
18065 (build_vdef): Same as above.
18066 (verify_ssa_operands): Same as above.
18067 (finalize_ssa_uses): Same as above.
18068 (cleanup_build_arrays): Same as above.
18069 (finalize_ssa_stmt_operands): Same as above.
18070 (start_ssa_stmt_operands): Same as above.
18071 (append_use): Same as above.
18072 (append_vdef): Same as above.
18073 (add_virtual_operand): Same as above.
18074 (add_stmt_operand): Same as above.
18075 (get_mem_ref_operands): Same as above.
18076 (get_tmr_operands): Same as above.
18077 (maybe_add_call_vops): Same as above.
18078 (get_asm_stmt_operands): Same as above.
18079 (get_expr_operands): Same as above.
18080 (parse_ssa_operands): Same as above.
18081 (finalize_ssa_defs): Same as above.
18082 (build_ssa_operands): Same as above, plus create a C-like wrapper.
18083 (update_stmt_operands): Create an instance of operands_scanner.
18085 2020-05-07 Richard Biener <rguenther@suse.de>
18088 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Use
18089 DECL_EXTERNAL || TREE_PUBLIC instead of externally_visible.
18090 (refered_from_nonlocal_var): Likewise.
18091 (ipa_pta_execute): Likewise.
18093 2020-05-07 Erick Ochoa <erick.ochoa@theobroma-systems.com>
18095 * gcc/tree-ssa-struct-alias.c: Fix comments
18097 2020-05-07 Martin Liska <mliska@suse.cz>
18099 * doc/invoke.texi: Fix 2 optindex entries.
18101 2020-05-07 Richard Biener <rguenther@suse.de>
18103 PR middle-end/94703
18104 * tree-core.h (tree_decl_common::gimple_reg_flag): Rename ...
18105 (tree_decl_common::not_gimple_reg_flag): ... to this.
18106 * tree.h (DECL_GIMPLE_REG_P): Rename ...
18107 (DECL_NOT_GIMPLE_REG_P): ... to this.
18108 * gimple-expr.c (copy_var_decl): Copy DECL_NOT_GIMPLE_REG_P.
18109 (create_tmp_reg): Simplify.
18110 (create_tmp_reg_fn): Likewise.
18111 (is_gimple_reg): Check DECL_NOT_GIMPLE_REG_P for all regs.
18112 * gimplify.c (create_tmp_from_val): Simplify.
18113 (gimplify_bind_expr): Likewise.
18114 (gimplify_compound_literal_expr): Likewise.
18115 (gimplify_function_tree): Likewise.
18116 (prepare_gimple_addressable): Set DECL_NOT_GIMPLE_REG_P.
18117 * asan.c (create_odr_indicator): Do not clear DECL_GIMPLE_REG_P.
18118 (asan_add_global): Copy it.
18119 * cgraphunit.c (cgraph_node::expand_thunk): Force args
18121 * function.c (gimplify_parameters): Copy
18122 DECL_NOT_GIMPLE_REG_P.
18123 * ipa-param-manipulation.c
18124 (ipa_param_body_adjustments::common_initialization): Simplify.
18125 (ipa_param_body_adjustments::reset_debug_stmts): Copy
18126 DECL_NOT_GIMPLE_REG_P.
18127 * omp-low.c (lower_omp_for_scan): Do not set DECL_GIMPLE_REG_P.
18128 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
18129 * tree-cfg.c (make_blocks_1): Simplify.
18130 (verify_address): Do not verify DECL_GIMPLE_REG_P setting.
18131 * tree-eh.c (lower_eh_constructs_2): Simplify.
18132 * tree-inline.c (declare_return_variable): Adjust and
18134 (copy_decl_to_var): Copy DECL_NOT_GIMPLE_REG_P.
18135 (copy_result_decl_to_var): Likewise.
18136 * tree-into-ssa.c (pass_build_ssa::execute): Adjust comment.
18137 * tree-nested.c (create_tmp_var_for): Simplify.
18138 * tree-parloops.c (separate_decls_in_region_name): Copy
18139 DECL_NOT_GIMPLE_REG_P.
18140 * tree-sra.c (create_access_replacement): Adjust and
18141 generalize partial def support.
18142 * tree-ssa-forwprop.c (pass_forwprop::execute): Set
18143 DECL_NOT_GIMPLE_REG_P on decls we introduce partial defs on.
18144 * tree-ssa.c (maybe_optimize_var): Handle clearing of
18145 TREE_ADDRESSABLE and setting/clearing DECL_NOT_GIMPLE_REG_P
18147 * lto-streamer-out.c (hash_tree): Hash DECL_NOT_GIMPLE_REG_P.
18148 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream
18149 DECL_NOT_GIMPLE_REG_P.
18150 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
18151 * cfgexpand.c (avoid_type_punning_on_regs): New.
18152 (discover_nonconstant_array_refs): Call
18153 avoid_type_punning_on_regs to avoid unsupported mode punning.
18155 2020-05-07 Alex Coplan <alex.coplan@arm.com>
18157 * config/arm/arm.c (arm_add_stmt_cost): Fix declaration, remove class
18160 2020-05-07 Richard Biener <rguenther@suse.de>
18162 PR tree-optimization/57359
18163 * tree-ssa-loop-im.c (im_mem_ref::indep_loop): Remove.
18164 (in_mem_ref::dep_loop): Repurpose.
18165 (LOOP_DEP_BIT): Remove.
18166 (enum dep_kind): New.
18167 (enum dep_state): Likewise.
18168 (record_loop_dependence): New function to populate the
18170 (query_loop_dependence): New function to query the dependence
18172 (memory_accesses::refs_in_loop): Rename to ...
18173 (memory_accesses::refs_loaded_in_loop): ... this and change to
18175 (outermost_indep_loop): Adjust.
18176 (mem_ref_alloc): Likewise.
18177 (gather_mem_refs_stmt): Likewise.
18178 (mem_refs_may_alias_p): Add tbaa_p parameter and pass it down.
18179 (struct sm_aux): New.
18180 (execute_sm): Split code generation on exits, record state
18182 (enum sm_kind): New.
18183 (execute_sm_exit): Exit code generation part.
18184 (sm_seq_push_down): Helper for sm_seq_valid_bb performing
18185 dependence checking on stores reached from exits.
18186 (sm_seq_valid_bb): New function gathering SM stores on exits.
18187 (hoist_memory_references): Re-implement.
18188 (refs_independent_p): Add tbaa_p parameter and pass it down.
18189 (record_dep_loop): Remove.
18190 (ref_indep_loop_p_1): Fold into ...
18191 (ref_indep_loop_p): ... this and generalize for three kinds
18192 of dependence queries.
18193 (can_sm_ref_p): Adjust according to hoist_memory_references
18195 (store_motion_loop): Don't do anything if the set of SM
18196 candidates is empty.
18197 (tree_ssa_lim_initialize): Adjust.
18198 (tree_ssa_lim_finalize): Likewise.
18200 2020-05-07 Eric Botcazou <ebotcazou@adacore.com>
18201 Pierre-Marie de Rodat <derodat@adacore.com>
18203 * dwarf2out.c (add_data_member_location_attribute): Take into account
18204 the variant part offset in the computation of the data bit offset.
18205 (add_bit_offset_attribute): Remove CTX parameter. Pass a new context
18206 in the call to field_byte_offset.
18207 (gen_field_die): Adjust call to add_bit_offset_attribute and remove
18208 confusing assertion.
18209 (analyze_variant_discr): Deal with boolean subtypes.
18211 2020-05-07 Martin Liska <mliska@suse.cz>
18213 * lto-wrapper.c: Split arguments of MAKE environment
18216 2020-05-07 Uroš Bizjak <ubizjak@gmail.com>
18218 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
18219 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
18220 fenv_var and new_fenv_var.
18222 2020-05-06 Jakub Jelinek <jakub@redhat.com>
18225 * config/i386/subst.md (store_mask_constraint, store_mask_predicate):
18227 (avx512dq_vextract<shuffletype>64x2_1_maskm,
18228 avx512f_vextract<shuffletype>32x4_1_maskm,
18229 vec_extract_lo_<mode>_maskm, vec_extract_hi_<mode>_maskm): Remove.
18230 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>): Split
18232 (*avx512dq_vextract<shuffletype>64x2_1,
18233 avx512dq_vextract<shuffletype>64x2_1_mask): ... these new
18234 define_insns. Even in the masked variant allow memory output but in
18235 that case use 0 rather than 0C constraint on the source of masked-out
18237 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Split
18239 (*avx512f_vextract<shuffletype>32x4_1,
18240 avx512f_vextract<shuffletype>32x4_1_mask): ... these new define_insns.
18241 Even in the masked variant allow memory output but in that case use
18242 0 rather than 0C constraint on the source of masked-out elts.
18243 (vec_extract_lo_<mode><mask_name>): Split into ...
18244 (vec_extract_lo_<mode>, vec_extract_lo_<mode>_mask): ... these new
18245 define_insns. Even in the masked variant allow memory output but in
18246 that case use 0 rather than 0C constraint on the source of masked-out
18248 (vec_extract_hi_<mode><mask_name>): Split into ...
18249 (vec_extract_hi_<mode>, vec_extract_hi_<mode>_mask): ... these new
18250 define_insns. Even in the masked variant allow memory output but in
18251 that case use 0 rather than 0C constraint on the source of masked-out
18254 2020-05-06 qing zhao <qing.zhao@oracle.com>
18257 * common.opt: Add -flarge-source-files.
18258 * doc/invoke.texi: Document it.
18259 * toplev.c (process_options): set line_table->default_range_bits
18260 to 0 when flag_large_source_files is true.
18262 2020-05-06 Uroš Bizjak <ubizjak@gmail.com>
18265 * config/i386/predicates.md (add_comparison_operator): New predicate.
18266 * config/i386/i386.md (compare->add splitter): New splitters.
18268 2020-05-06 Richard Biener <rguenther@suse.de>
18270 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
18271 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
18272 Remove slp_instance parameter, just iterate over all scalar stmts.
18273 (vect_slp_analyze_instance_dependence): Adjust and likewise.
18274 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Remove unused BB
18276 (vect_schedule_slp): Just iterate over all scalar stmts.
18277 (vect_supported_load_permutation_p): Adjust.
18278 (vect_transform_slp_perm_load): Remove slp_instance parameter,
18279 instead use the number of lanes in the node as group size.
18280 * tree-vect-stmts.c (vect_model_load_cost): Get vectorization
18281 factor instead of slp_instance as parameter.
18282 (vectorizable_load): Adjust.
18284 2020-05-06 Andreas Schwab <schwab@suse.de>
18286 * config/aarch64/driver-aarch64.c: Include "aarch64-protos.h".
18287 (aarch64_get_extension_string_for_isa_flags): Don't declare.
18289 2020-05-06 Richard Biener <rguenther@suse.de>
18291 PR middle-end/94964
18292 * cfgloopmanip.c (create_preheader): Require non-complex
18293 preheader edge for CP_SIMPLE_PREHEADERS.
18295 2020-05-06 Richard Biener <rguenther@suse.de>
18297 PR tree-optimization/94963
18298 * tree-ssa-loop-im.c (execute_sm_if_changed): Remove
18299 no-warning marking of the conditional store.
18300 (execute_sm): Instead mark the uninitialized state
18301 on loop entry to be not warned about.
18303 2020-05-06 Hongtao Liu <hongtao.liu@intel.com>
18305 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_TSXLDTRK_SET,
18306 OPTION_MASK_ISA2_TSXLDTRK_UNSET): New macros.
18307 * config.gcc: Add tsxldtrkintrin.h to extra_headers.
18308 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18310 * config/i386/i386-builtin.def: Add new builtins.
18311 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18313 * config/i386/i386-options.c (ix86_target_string): Add
18315 (ix86_valid_target_attribute_inner_p): Add attribute tsxldtrk.
18316 * config/i386/i386.h (TARGET_TSXLDTRK, TARGET_TSXLDTRK_P):
18318 * config/i386/i386.md (define_c_enum "unspec"): Add
18319 UNSPECV_SUSLDTRK, UNSPECV_RESLDTRK.
18320 (TSXLDTRK): New define_int_iterator.
18321 ("<tsxldtrk>"): New define_insn.
18322 * config/i386/i386.opt: Add -mtsxldtrk.
18323 * config/i386/immintrin.h: Include tsxldtrkintrin.h.
18324 * config/i386/tsxldtrkintrin.h: New.
18325 * doc/invoke.texi: Document -mtsxldtrk.
18327 2020-05-06 Jakub Jelinek <jakub@redhat.com>
18329 PR tree-optimization/94921
18330 * match.pd (~(~X - Y) -> X + Y, ~(~X + Y) -> X - Y): New
18333 2020-05-06 Richard Biener <rguenther@suse.de>
18335 PR tree-optimization/94965
18336 * tree-vect-stmts.c (vectorizable_load): Fix typo.
18338 2020-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18340 * doc/install.texi: Replace Sun with Solaris as appropriate.
18341 (Tools/packages necessary for building GCC, Perl version between
18342 5.6.1 and 5.6.24): Remove Solaris 8 reference.
18343 (Installing GCC: Binaries, Solaris 2 (SPARC, Intel)): Remove
18345 (Specific, i?86-*-solaris2*): Update version references for
18346 Solaris 11.3 and later. Remove gas 2.26 caveat.
18347 (Specific, *-*-solaris2*): Update version references for
18348 Solaris 11.3 and later. Remove boehm-gc reference.
18349 Document GMP, MPFR caveats on Solaris 11.3.
18350 (Specific, sparc-sun-solaris2*): Update Solaris 9 references.
18351 (Specific, sparc64-*-solaris2*): Likewise.
18352 Document --build requirement.
18354 2020-05-06 Jakub Jelinek <jakub@redhat.com>
18357 * config/riscv/riscv-builtins.c (riscv_atomic_assign_expand_fenv): Use
18358 TARGET_EXPR instead of MODIFY_EXPR for first assignment to old_flags.
18360 PR rtl-optimization/94873
18361 * combine.c (combine_instructions): Don't optimize using REG_EQUAL
18362 note if SET_SRC (set) has side-effects.
18364 2020-05-06 Hongtao Liu <hongtao.liu@intel.com>
18365 Wei Xiao <wei3.xiao@intel.com>
18367 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_SERIALIZE_SET,
18368 OPTION_MASK_ISA2_SERIALIZE_UNSET): New macros.
18369 (ix86_handle_option): Handle -mserialize.
18370 * config.gcc (serializeintrin.h): New header file.
18371 * config/i386/cpuid.h (bit_SERIALIZE): New bit.
18372 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18374 * config/i386/i386-builtin.def: Add new builtin.
18375 * config/i386/i386-c.c (__SERIALIZE__): New macro.
18376 * config/i386/i386-options.c (ix86_target_opts_isa2_opts):
18378 * (ix86_valid_target_attribute_inner_p): Add target attribute
18380 * config/i386/i386.h (TARGET_SERIALIZE, TARGET_SERIALIZE_P):
18382 * config/i386/i386.md (UNSPECV_SERIALIZE): New unspec.
18383 (serialize): New define_insn.
18384 * config/i386/i386.opt (mserialize): New option
18385 * config/i386/immintrin.h: Include serailizeintrin.h.
18386 * config/i386/serializeintrin.h: New header file.
18387 * doc/invoke.texi: Add documents for -mserialize.
18389 2020-05-06 Richard Biener <rguenther@suse.de>
18391 * tree-cfg.c (verify_gimple_assign_unary): Adjust integer
18392 to/from pointer conversion checking.
18394 2020-05-05 Michael Meissner <meissner@linux.ibm.com>
18396 * config/rs6000/rs6000-builtin.def: Delete changes meant for a
18398 * config/rs6000/rs6000-c.c: Likewise.
18399 * config/rs6000/rs6000-call.c: Likewise.
18400 * config/rs6000/rs6000.c: Likewise.
18402 2020-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
18404 * config/rtems.h (RTEMS_STARTFILE_SPEC): Define if undefined.
18405 (RTEMS_ENDFILE_SPEC): Likewise.
18406 (STARTFILE_SPEC): Update comment. Add RTEMS_STARTFILE_SPEC.
18407 (ENDFILE_SPEC): Add RTEMS_ENDFILE_SPEC.
18408 (LIB_SPECS): Support -nodefaultlibs option.
18409 * config/or1k/rtems.h (RTEMS_STARTFILE_SPEC): Define.
18410 (RTEMS_ENDFILE_SPEC): Likewise.
18411 * config/rs6000/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
18412 (RTEMS_ENDFILE_SPEC): Likewise.
18413 * config/v850/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
18414 (RTEMS_ENDFILE_SPEC): Likewise.
18416 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
18418 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Remove.
18419 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Remove.
18421 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
18423 * config/pru/pru.h: Mark R3.w0 as caller saved.
18425 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
18427 * config/pru/pru.c (pru_emit_doloop): Use new gen_doloop_end_internal
18428 and gen_doloop_begin_internal.
18429 (pru_reorg_loop): Use gen_pruloop with mode.
18430 * config/pru/pru.md: Use new @insn syntax.
18432 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
18434 * config/pru/pru.c (pru_print_operand): Fix fall through comment.
18436 2020-05-05 Uroš Bizjak <ubizjak@gmail.com>
18438 * config/i386/i386.md (fixuns_trunc<mode>si2): Use
18439 "clobber (scratch:M)" instad of "clobber (match_scratch:M N)".
18440 (addqi3_cconly_overflow): Ditto.
18441 (umulv<mode>4): Ditto.
18442 (<s>mul<mode>3_highpart): Ditto.
18443 (tls_global_dynamic_32): Ditto.
18444 (tls_local_dynamic_base_32): Ditto.
18451 (*adddi_4): Remove "m" constraint from scratch operand.
18452 (*add<mode>_4): Ditto.
18454 2020-05-05 Jakub Jelinek <jakub@redhat.com>
18456 PR rtl-optimization/94516
18457 * postreload.c (reload_cse_simplify): When replacing sp = sp + const
18458 with sp = reg, add REG_EQUAL note with sp + const.
18459 * combine-stack-adj.c (try_apply_stack_adjustment): Change return
18460 type from int to bool. Add LIVE and OTHER_INSN arguments. Undo
18461 postreload sp = sp + const to sp = reg optimization if needed and
18463 (combine_stack_adjustments_for_block): Add LIVE argument. Handle
18464 reg = sp insn with sp + const REG_EQUAL note. Adjust
18465 try_apply_stack_adjustment caller, call
18466 df_simulate_initialize_forwards and df_simulate_one_insn_forwards.
18467 (combine_stack_adjustments): Allocate and free LIVE bitmap,
18468 adjust combine_stack_adjustments_for_block caller.
18470 2020-05-05 Martin Liska <mliska@suse.cz>
18472 PR gcov-profile/93623
18473 * tree-cfg.c (stmt_can_terminate_bb_p): Update comment to reflect
18476 2020-05-05 Martin Liska <mliska@suse.cz>
18478 * opt-functions.awk (opt_args_non_empty): New function.
18479 * opt-read.awk: Use the function for various option arguments.
18481 2020-05-05 Martin Liska <mliska@suse.cz>
18484 * lto-wrapper.c (run_gcc): When using -flto=jobserver,
18485 report warning when the jobserver is not detected.
18487 2020-05-05 Martin Liska <mliska@suse.cz>
18489 PR gcov-profile/94636
18490 * gcov.c (main): Print total lines summary at the end.
18491 (generate_results): Expect file_name always being non-null.
18492 Print newline after intermediate file is printed in order to align with
18493 what we do for normal files.
18495 2020-05-05 Martin Liska <mliska@suse.cz>
18497 * dumpfile.c (dump_switch_p): Change return type
18498 and print option suggestion.
18499 * dumpfile.h: Change return type.
18500 * opts-global.c (handle_common_deferred_options):
18501 Move error into dump_switch_p function.
18503 2020-05-05 Martin Liska <mliska@suse.cz>
18506 * alloc-pool.h: Use const for some arguments.
18507 * bitmap.h: Likewise.
18508 * mem-stats.h: Likewise.
18509 * sese.h (get_entry_bb): Likewise.
18510 (get_exit_bb): Likewise.
18512 2020-05-05 Richard Biener <rguenther@suse.de>
18514 * tree-vect-slp.c (struct vdhs_data): New.
18515 (vect_detect_hybrid_slp): New walker.
18516 (vect_detect_hybrid_slp): Rewrite.
18518 2020-05-05 Richard Biener <rguenther@suse.de>
18521 * tree-ssa-structalias.c (ipa_pta_execute): Use
18522 varpool_node::externally_visible_p ().
18523 (refered_from_nonlocal_var): Likewise.
18525 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
18527 * gcc.c (LTO_PLUGIN_SPEC): Define if not already.
18528 (LINK_PLUGIN_SPEC): Execute LTO_PLUGIN_SPEC.
18529 * config/vxworks.h (LTO_PLUGIN_SPEC): Define.
18531 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
18533 * gimplify.c (gimplify_init_constructor): Do not put the constructor
18534 into static memory if it is not complete.
18536 2020-05-05 Richard Biener <rguenther@suse.de>
18538 PR tree-optimization/94949
18539 * tree-ssa-loop-im.c (execute_sm): Check whether we use
18540 the multithreaded model or always compute the stored value
18541 before eliding a load.
18543 2020-05-05 Alex Coplan <alex.coplan@arm.com>
18545 * config/aarch64/aarch64.md (*one_cmpl_zero_extend): New.
18547 2020-05-05 Jakub Jelinek <jakub@redhat.com>
18549 PR tree-optimization/94800
18550 * match.pd (X + (X << C) to X * (1 + (1 << C)),
18551 (X << C1) + (X << C2) to X * ((1 << C1) + (1 << C2))): New
18555 * config/i386/mmx.md (*vec_dupv4hi): Use xYw constraints instead of Yv.
18557 PR tree-optimization/94914
18558 * match.pd ((((type)A * B) >> prec) != 0 to .MUL_OVERFLOW(A, B) != 0):
18559 New simplification.
18561 2020-05-05 Uroš Bizjak <ubizjak@gmail.com>
18563 * config/i386/i386.md (*testqi_ext_3): Use
18564 int_nonimmediate_operand instead of manual mode checks.
18565 (*x86_mov<SWI48:mode>cc_0_m1_neg_leu<SWI:mode>):
18566 Use int_nonimmediate_operand predicate. Rewrite
18567 define_insn_and_split pattern to a combine pass splitter.
18569 2020-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18571 * configure.ac <i[34567]86-*-*>: Add --32 to tls_as_opt on Solaris.
18572 * configure: Regenerate.
18574 2020-05-05 Jakub Jelinek <jakub@redhat.com>
18577 * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
18578 ssse3_ph<plusminus_mnemonic>wv8hi3, ssse3_ph<plusminus_mnemonic>wv4hi3,
18579 avx2_ph<plusminus_mnemonic>dv8si3, ssse3_ph<plusminus_mnemonic>dv4si3,
18580 ssse3_ph<plusminus_mnemonic>dv2si3): Simplify RTL patterns.
18582 2020-05-04 Clement Chigot <clement.chigot@atos.net>
18583 David Edelsohn <dje.gcc@gmail.com>
18585 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Override explicit
18586 for fmodl, frexpl, ldexpl and modfl builtins.
18588 2020-05-04 Richard Sandiford <richard.sandiford@arm.com>
18590 PR middle-end/94941
18591 * internal-fn.c (expand_load_lanes_optab_fn): Emit a move if the
18592 chosen lhs is different from the gcall lhs.
18593 (expand_mask_load_optab_fn): Likewise.
18594 (expand_gather_load_optab_fn): Likewise.
18596 2020-05-04 Uroš Bizjak <ubizjak@gmail.com>
18599 * config/i386/i386.md (*neg<mode>_ccc): New insn pattern.
18600 (EQ compare->LTU compare splitter): New splitter.
18601 (NE compare->NEG splitter): Ditto.
18603 2020-05-04 Marek Polacek <polacek@redhat.com>
18606 2020-04-30 Marek Polacek <polacek@redhat.com>
18609 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
18610 (check_aligned_type): Check if TYPE_USER_ALIGN match.
18612 2020-05-04 Richard Biener <rguenther@suse.de>
18614 PR tree-optimization/93891
18615 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fall back to
18616 the original reference tree for assessing access alignment.
18618 2020-05-04 Richard Biener <rguenther@suse.de>
18620 PR tree-optimization/39612
18621 * tree-ssa-loop-im.c (im_mem_ref::loaded): New member.
18622 (set_ref_loaded_in_loop): New.
18623 (mark_ref_loaded): Likewise.
18624 (gather_mem_refs_stmt): Call mark_ref_loaded for loads.
18625 (execute_sm): Avoid issueing a load when it was not there.
18626 (execute_sm_if_changed): Avoid issueing warnings for the
18629 2020-05-04 Martin Jambor <mjambor@suse.cz>
18632 * tree-inline.c (tree_function_versioning): Leave any type conversion
18633 of replacements to setup_one_parameter and its friend
18634 force_value_to_type.
18636 2020-05-04 Uroš Bizjak <ubizjak@gmail.com>
18639 * config/i386/predicates.md (shr_comparison_operator): New predicate.
18640 * config/i386/i386.md (compare->shr splitter): New splitters.
18642 2020-05-04 Jakub Jelinek <jakub@redhat.com>
18644 PR tree-optimization/94718
18645 * match.pd ((X < 0) != (Y < 0) into (X ^ Y) < 0): New simplification.
18647 PR tree-optimization/94718
18648 * match.pd (bitop (convert @0) (convert? @1)): For GIMPLE, if we can,
18649 replace two nop conversions on bit_{and,ior,xor} argument
18650 and result with just one conversion on the result or another argument.
18652 PR tree-optimization/94718
18653 * fold-const.c (fold_binary_loc): Move (X & C) eqne (Y & C)
18654 -> (X ^ Y) & C eqne 0 optimization to ...
18655 * match.pd ((X & C) op (Y & C) into (X ^ Y) & C op 0): ... here.
18657 * opts.c (get_option_html_page): Instead of hardcoding a list of
18658 options common between C/C++ and Fortran only use gfortran/
18659 documentation for warnings that have CL_Fortran set but not
18662 2020-05-03 Uroš Bizjak <ubizjak@gmail.com>
18664 * config/i386/i386-expand.c (ix86_expand_int_movcc):
18665 Use plus_constant instead of gen_rtx_PLUS with GEN_INT.
18666 (emit_memmov): Ditto.
18667 (emit_memset): Ditto.
18668 (ix86_expand_strlensi_unroll_1): Ditto.
18669 (release_scratch_register_on_entry): Ditto.
18670 (gen_frame_set): Ditto.
18671 (ix86_emit_restore_reg_using_pop): Ditto.
18672 (ix86_emit_outlined_ms2sysv_restore): Ditto.
18673 (ix86_expand_epilogue): Ditto.
18674 (ix86_expand_split_stack_prologue): Ditto.
18675 * config/i386/i386.md (push immediate splitter): Ditto.
18679 2020-05-02 Iain Sandoe <iain@sandoe.co.uk>
18681 PR translation/93861
18682 * config/darwin-driver.c (darwin_driver_init): Adjust spelling in
18685 2020-05-02 Jakub Jelinek <jakub@redhat.com>
18687 * config/tilegx/tilegx.md
18688 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Use <I124MODE:n>
18689 rather than just <n>.
18691 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
18694 * cfgexpand.c (pass_expand::execute): Set crtl->patch_area_size
18695 and crtl->patch_area_entry.
18696 * emit-rtl.h (rtl_data): Add patch_area_size and patch_area_entry.
18697 * opts.c (common_handle_option): Limit
18698 function_entry_patch_area_size and function_entry_patch_area_start
18699 to USHRT_MAX. Fix a typo in error message.
18700 * varasm.c (assemble_start_function): Use crtl->patch_area_size
18701 and crtl->patch_area_entry.
18702 * doc/invoke.texi: Document the maximum value for
18703 -fpatchable-function-entry.
18705 2020-05-01 Iain Sandoe <iain@sandoe.co.uk>
18707 * config/i386/darwin.h: Repair SUBTARGET_INIT_BUILTINS.
18708 Override SUBTARGET_SHADOW_OFFSET macro.
18710 2020-05-01 Andreas Tobler <andreast@gcc.gnu.org>
18712 * config/i386/i386.h: Define a new macro: SUBTARGET_SHADOW_OFFSET.
18713 * config/i386/i386.c (ix86_asan_shadow_offset): Use this macro.
18714 * config/i386/darwin.h: Override the SUBTARGET_SHADOW_OFFSET macro.
18715 * config/i386/freebsd.h: Likewise.
18716 * config/freebsd.h (LIBASAN_EARLY_SPEC): Define.
18717 LIBTSAN_EARLY_SPEC): Likewise. (LIBLSAN_EARLY_SPEC): Likewise.
18719 2020-04-30 Alexandre Oliva <oliva@adacore.com>
18721 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18722 the newly-introduced fileio effective target.
18724 2020-04-30 Richard Sandiford <richard.sandiford@arm.com>
18726 PR rtl-optimization/94740
18727 * cse.c (cse_process_notes_1): Replace with...
18728 (cse_process_note_1): ...this new function, acting as a
18729 simplify_replace_fn_rtx callback to process_note. Handle only
18730 REGs and MEMs directly. Validate the MEM if cse_process_note
18731 changes its address.
18732 (cse_process_notes): Replace with...
18733 (cse_process_note): ...this new function.
18734 (cse_extended_basic_block): Update accordingly, iterating over
18735 the register notes and passing individual notes to cse_process_note.
18737 2020-04-30 Carl Love <cel@us.ibm.com>
18739 * config/rs6000/emmintrin.h (_mm_movemask_epi8): Fix comment.
18741 2020-04-30 Martin Jambor <mjambor@suse.cz>
18744 * cgraph.c (clone_of_p): Also consider thunks whih had their bodies
18745 saved by the inliner and thunks which had their call inlined.
18746 * ipa-inline-transform.c (save_inline_function_body): Fill in
18747 former_clone_of of new body holders.
18749 2020-04-30 Jakub Jelinek <jakub@redhat.com>
18751 * BASE-VER: Set to 11.0.0.
18753 2020-04-30 Jonathan Wakely <jwakely@redhat.com>
18755 * pretty-print.c (pp_take_prefix): Fix spelling in comment.
18757 2020-04-30 Marek Polacek <polacek@redhat.com>
18760 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
18761 (check_aligned_type): Check if TYPE_USER_ALIGN match.
18763 2020-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18765 * config/aarch64/aarch64.h (TARGET_OUTLINE_ATOMICS): Define.
18766 * config/aarch64/aarch64.opt (moutline-atomics): Change to Int variable.
18767 * doc/invoke.texi (moutline-atomics): Document as on by default.
18769 2020-04-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
18772 * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Remove
18773 the check for NOTE_INSN_DELETED_LABEL.
18775 2020-04-30 Jakub Jelinek <jakub@redhat.com>
18777 * configure.ac (--with-documentation-root-url,
18778 --with-changes-root-url): Diagnose URL not ending with /,
18779 use AC_DEFINE_UNQUOTED instead of AC_SUBST.
18780 * opts.h (get_changes_url): Remove.
18781 * opts.c (get_changes_url): Remove.
18782 * Makefile.in (CFLAGS-opts.o): Don't add -DDOCUMENTATION_ROOT_URL
18783 or -DCHANGES_ROOT_URL.
18784 * doc/install.texi (--with-documentation-root-url,
18785 --with-changes-root-url): Document.
18786 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Don't call
18787 get_changes_url and free, change url variable type to const char * and
18788 set it to CHANGES_ROOT_URL "gcc-10/changes.html#empty_base".
18789 * config/s390/s390.c (s390_function_arg_vector,
18790 s390_function_arg_float): Likewise.
18791 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
18793 * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
18795 * config.in: Regenerate.
18796 * configure: Regenerate.
18798 2020-04-30 Christophe Lyon <christophe.lyon@linaro.org>
18801 * config/arm/arm.c (isr_attribute_args): Remove duplicate entries.
18803 2020-04-30 Andreas Krebbel <krebbel@linux.ibm.com>
18805 * config/s390/constraints.md ("j>f", "jb4"): New constraints.
18806 * config/s390/vecintrin.h (vec_load_len_r, vec_store_len_r): Fix
18808 * config/s390/vx-builtins.md ("vlrlrv16qi", "vstrlrv16qi"): Add a
18810 ("*vlrlrv16qi", "*vstrlrv16qi"): Add alternative for vl/vst.
18811 Change constraint for vlrl/vstrl to jb4.
18813 2020-04-30 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18815 * var-tracking.c (vt_initialize): Move variables pre and post
18816 into inner block and initialize both in order to fix warning
18817 about uninitialized use. Remove unnecessary checks for
18818 frame_pointer_needed.
18820 2020-04-30 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18822 * toplev.c (output_stack_usage_1): Ensure that first
18823 argument to fprintf is not null.
18825 2020-04-29 Jakub Jelinek <jakub@redhat.com>
18827 * configure.ac (-with-changes-root-url): New configure option,
18828 defaulting to https://gcc.gnu.org/.
18829 * Makefile.in (CFLAGS-opts.o): Define CHANGES_ROOT_URL for
18831 * pretty-print.c (get_end_url_string): New function.
18832 (pp_format): Handle %{ and %} for URLs.
18833 (pp_begin_url): Use pp_string instead of pp_printf.
18834 (pp_end_url): Use get_end_url_string.
18835 * opts.h (get_changes_url): Declare.
18836 * opts.c (get_changes_url): New function.
18837 * config/rs6000/rs6000-call.c: Include opts.h.
18838 (rs6000_discover_homogeneous_aggregate): Use %{in GCC 10.1%} instead
18839 of just in GCC 10.1 in diagnostics and add URL.
18840 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Likewise.
18841 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
18843 * config/s390/s390.c (s390_function_arg_vector,
18844 s390_function_arg_float): Likewise.
18845 * configure: Regenerated.
18848 * config/s390/s390.c (s390_function_arg_vector,
18849 s390_function_arg_float): Use DECL_FIELD_ABI_IGNORED instead of
18850 cxx17_empty_base_field_p. In -Wpsabi diagnostics use the type
18851 passed to the function rather than the type of the single element.
18852 Rename cxx17_empty_base_seen variable to empty_base_seen, change
18853 type to int, and adjust diagnostics depending on if the field
18854 has [[no_unique_attribute]] or not.
18857 * config/i386/avx512bwintrin.h (_mm512_alignr_epi8,
18858 _mm512_mask_alignr_epi8, _mm512_maskz_alignr_epi8): Wrap macro operands
18859 used in casts into parens.
18860 * config/i386/avx512fintrin.h (_mm512_cvt_roundps_ph, _mm512_cvtps_ph,
18861 _mm512_mask_cvt_roundps_ph, _mm512_mask_cvtps_ph,
18862 _mm512_maskz_cvt_roundps_ph, _mm512_maskz_cvtps_ph,
18863 _mm512_mask_cmp_epi64_mask, _mm512_mask_cmp_epi32_mask,
18864 _mm512_mask_cmp_epu64_mask, _mm512_mask_cmp_epu32_mask,
18865 _mm512_mask_cmp_round_pd_mask, _mm512_mask_cmp_round_ps_mask,
18866 _mm512_mask_cmp_pd_mask, _mm512_mask_cmp_ps_mask): Likewise.
18867 * config/i386/avx512vlbwintrin.h (_mm256_mask_alignr_epi8,
18868 _mm256_maskz_alignr_epi8, _mm_mask_alignr_epi8, _mm_maskz_alignr_epi8,
18869 _mm256_mask_cmp_epu8_mask): Likewise.
18870 * config/i386/avx512vlintrin.h (_mm_mask_cvtps_ph, _mm_maskz_cvtps_ph,
18871 _mm256_mask_cvtps_ph, _mm256_maskz_cvtps_ph): Likewise.
18872 * config/i386/f16cintrin.h (_mm_cvtps_ph, _mm256_cvtps_ph): Likewise.
18873 * config/i386/shaintrin.h (_mm_sha1rnds4_epu32): Likewise.
18876 * config/i386/avx2intrin.h (_mm_mask_i32gather_pd,
18877 _mm256_mask_i32gather_pd, _mm_mask_i64gather_pd,
18878 _mm256_mask_i64gather_pd, _mm_mask_i32gather_ps,
18879 _mm256_mask_i32gather_ps, _mm_mask_i64gather_ps,
18880 _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
18881 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
18882 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
18883 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
18884 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
18885 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
18886 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
18887 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
18888 _mm256_mask_i64gather_epi32): Surround macro parameter uses with
18890 (_mm_i32gather_pd, _mm256_i32gather_pd, _mm_i64gather_pd,
18891 _mm256_i64gather_pd, _mm_i32gather_ps, _mm256_i32gather_ps,
18892 _mm_i64gather_ps, _mm256_i64gather_ps): Likewise. Don't use
18893 as mask vector containing -1.0 or -1.0f elts, but instead vector
18894 with all bits set using _mm*_cmpeq_p? with zero operands.
18895 * config/i386/avx512fintrin.h (_mm512_i32gather_ps,
18896 _mm512_mask_i32gather_ps, _mm512_i32gather_pd,
18897 _mm512_mask_i32gather_pd, _mm512_i64gather_ps,
18898 _mm512_mask_i64gather_ps, _mm512_i64gather_pd,
18899 _mm512_mask_i64gather_pd, _mm512_i32gather_epi32,
18900 _mm512_mask_i32gather_epi32, _mm512_i32gather_epi64,
18901 _mm512_mask_i32gather_epi64, _mm512_i64gather_epi32,
18902 _mm512_mask_i64gather_epi32, _mm512_i64gather_epi64,
18903 _mm512_mask_i64gather_epi64, _mm512_i32scatter_ps,
18904 _mm512_mask_i32scatter_ps, _mm512_i32scatter_pd,
18905 _mm512_mask_i32scatter_pd, _mm512_i64scatter_ps,
18906 _mm512_mask_i64scatter_ps, _mm512_i64scatter_pd,
18907 _mm512_mask_i64scatter_pd, _mm512_i32scatter_epi32,
18908 _mm512_mask_i32scatter_epi32, _mm512_i32scatter_epi64,
18909 _mm512_mask_i32scatter_epi64, _mm512_i64scatter_epi32,
18910 _mm512_mask_i64scatter_epi32, _mm512_i64scatter_epi64,
18911 _mm512_mask_i64scatter_epi64): Surround macro parameter uses with
18913 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
18914 _mm512_prefetch_i32gather_ps, _mm512_mask_prefetch_i32gather_pd,
18915 _mm512_mask_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
18916 _mm512_prefetch_i64gather_ps, _mm512_mask_prefetch_i64gather_pd,
18917 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
18918 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
18919 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
18920 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
18921 _mm512_mask_prefetch_i64scatter_ps): Likewise.
18922 * config/i386/avx512vlintrin.h (_mm256_mmask_i32gather_ps,
18923 _mm_mmask_i32gather_ps, _mm256_mmask_i32gather_pd,
18924 _mm_mmask_i32gather_pd, _mm256_mmask_i64gather_ps,
18925 _mm_mmask_i64gather_ps, _mm256_mmask_i64gather_pd,
18926 _mm_mmask_i64gather_pd, _mm256_mmask_i32gather_epi32,
18927 _mm_mmask_i32gather_epi32, _mm256_mmask_i32gather_epi64,
18928 _mm_mmask_i32gather_epi64, _mm256_mmask_i64gather_epi32,
18929 _mm_mmask_i64gather_epi32, _mm256_mmask_i64gather_epi64,
18930 _mm_mmask_i64gather_epi64, _mm256_i32scatter_ps,
18931 _mm256_mask_i32scatter_ps, _mm_i32scatter_ps, _mm_mask_i32scatter_ps,
18932 _mm256_i32scatter_pd, _mm256_mask_i32scatter_pd, _mm_i32scatter_pd,
18933 _mm_mask_i32scatter_pd, _mm256_i64scatter_ps,
18934 _mm256_mask_i64scatter_ps, _mm_i64scatter_ps, _mm_mask_i64scatter_ps,
18935 _mm256_i64scatter_pd, _mm256_mask_i64scatter_pd, _mm_i64scatter_pd,
18936 _mm_mask_i64scatter_pd, _mm256_i32scatter_epi32,
18937 _mm256_mask_i32scatter_epi32, _mm_i32scatter_epi32,
18938 _mm_mask_i32scatter_epi32, _mm256_i32scatter_epi64,
18939 _mm256_mask_i32scatter_epi64, _mm_i32scatter_epi64,
18940 _mm_mask_i32scatter_epi64, _mm256_i64scatter_epi32,
18941 _mm256_mask_i64scatter_epi32, _mm_i64scatter_epi32,
18942 _mm_mask_i64scatter_epi32, _mm256_i64scatter_epi64,
18943 _mm256_mask_i64scatter_epi64, _mm_i64scatter_epi64,
18944 _mm_mask_i64scatter_epi64): Likewise.
18946 2020-04-29 Jeff Law <law@redhat.com>
18948 * config/h8300/h8300.md (H8/SX div patterns): All H8/SX specific
18949 division instructions are 4 bytes long.
18951 2020-04-29 Jakub Jelinek <jakub@redhat.com>
18954 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Use
18955 TARGET_EXPR instead of MODIFY_EXPR for first assignment to
18956 fenv_var, fenv_clear and old_fenv variables. For fenv_addr
18957 take address of TARGET_EXPR of fenv_var with void_node initializer.
18960 2020-04-29 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18962 PR tree-optimization/94774
18963 * gimple-ssa-sprintf.c (try_substitute_return_value): Initialize
18966 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18968 * calls.h (cxx17_empty_base_field_p): Turn into a function declaration.
18969 * calls.c (cxx17_empty_base_field_p): New function. Check
18970 DECL_ARTIFICIAL and RECORD_OR_UNION_TYPE_P in addition to the
18973 2020-04-29 H.J. Lu <hongjiu.lu@intel.com>
18976 * config/i386/i386-options.c (ix86_set_indirect_branch_type):
18977 Allow -fcf-protection with -mindirect-branch=thunk-extern and
18978 -mfunction-return=thunk-extern.
18979 * doc/invoke.texi: Update notes for -fcf-protection=branch with
18980 -mindirect-branch=thunk-extern and -mindirect-return=thunk-extern.
18982 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18984 * doc/sourcebuild.texi: Add missing arm_arch_v8a_hard_ok anchor.
18986 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18988 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Use
18989 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
18990 fenv_var and new_fenv_var.
18992 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18994 * doc/sourcebuild.texi (arm_arch_v8a_hard_ok): Document new
18995 effective-target keyword.
18996 (arm_arch_v8a_hard_multilib): Likewise.
18997 (arm_arch_v8a_hard): Document new dg-add-options keyword.
18998 * config/arm/arm.c (arm_return_in_memory): Note that the APCS
18999 code is deprecated and has not been updated to handle
19000 DECL_FIELD_ABI_IGNORED.
19001 (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
19002 (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
19003 (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
19004 avoid_cxx17_empty_base with a pointer to a bitmask. Ignore fields
19005 whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
19006 something actually is a HFA or HVA. Record whether we see a
19007 [[no_unique_address]] field that previous GCCs would not have
19008 ignored in this way.
19009 (aapcs_vfp_is_call_or_return_candidate): Update the calls to
19010 aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
19011 [[no_unique_address]] case. Use TYPE_MAIN_VARIANT in the
19012 diagnostic messages.
19013 (arm_needs_doubleword_align): Add a comment explaining why we
19014 consider even zero-sized fields.
19016 2020-04-29 Richard Biener <rguenther@suse.de>
19017 Li Zekun <lizekun1@huawei.com>
19020 * tree.c (component_ref_size): Guard against error_mark_node
19021 DECL_INITIAL as it happens with LTO.
19023 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
19025 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add a
19026 comment explaining why we consider even zero-sized fields.
19027 (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
19028 (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
19029 (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
19030 avoid_cxx17_empty_base with a pointer to a bitmask. Ignore fields
19031 whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
19032 something actually is a HFA or HVA. Record whether we see a
19033 [[no_unique_address]] field that previous GCCs would not have
19034 ignored in this way.
19035 (aarch64_vfp_is_call_or_return_candidate): Add a parameter to say
19036 whether diagnostics should be suppressed. Update the calls to
19037 aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
19038 [[no_unique_address]] case.
19039 (aarch64_return_in_msb): Update call accordingly, never silencing
19041 (aarch64_function_value): Likewise.
19042 (aarch64_return_in_memory_1): Likewise.
19043 (aarch64_init_cumulative_args): Likewise.
19044 (aarch64_gimplify_va_arg_expr): Likewise.
19045 (aarch64_pass_by_reference_1): Take a CUMULATIVE_ARGS pointer and
19046 use it to decide whether arch64_vfp_is_call_or_return_candidate
19048 (aarch64_pass_by_reference): Update calls accordingly.
19049 (aarch64_vfp_is_call_candidate): Use the CUMULATIVE_ARGS argument
19050 to decide whether arch64_vfp_is_call_or_return_candidate should be
19053 2020-04-29 Haijian Zhang <z.zhanghaijian@huawei.com>
19056 * config/aarch64/aarch64-builtins.c
19057 (aarch64_atomic_assign_expand_fenv): Use TARGET_EXPR instead of
19058 MODIFY_EXPR for first assignment to fenv_cr, fenv_sr and
19061 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
19063 * configure.ac <$enable_offload_targets>: Do parsing as done
19065 * configure: Regenerate.
19067 * configure.ac <$enable_offload_targets>: 'amdgcn' is 'gcn'.
19068 * configure: Regenerate.
19071 * rtlanal.c (set_noop_p): Handle non-constant selectors.
19074 * common/config/gcn/gcn-common.c (gcn_except_unwind_info): New
19076 (TARGET_EXCEPT_UNWIND_INFO): Define.
19078 2020-04-29 Jakub Jelinek <jakub@redhat.com>
19081 * config/gcn/gcn.md (*mov<mode>_insn): Use
19082 'reg_overlap_mentioned_p' to check for overlap.
19085 * config/ia64/ia64.c (hfa_element_mode): Use DECL_FIELD_ABI_IGNORED
19086 instead of cxx17_empty_base_field_p.
19089 * tree-core.h (tree_decl_common): Note decl_flag_0 used for
19090 DECL_FIELD_ABI_IGNORED.
19091 * tree.h (DECL_FIELD_ABI_IGNORED): Define.
19092 * calls.h (cxx17_empty_base_field_p): Change into a temporary
19093 macro, check DECL_FIELD_ABI_IGNORED flag with no "no_unique_address"
19095 * calls.c (cxx17_empty_base_field_p): Remove.
19096 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Handle
19097 DECL_FIELD_ABI_IGNORED.
19098 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
19099 * lto-streamer-out.c (hash_tree): Likewise.
19100 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Rename
19101 cxx17_empty_base_seen to empty_base_seen, change type to int *,
19102 adjust recursive calls, use DECL_FIELD_ABI_IGNORED instead of
19103 cxx17_empty_base_field_p, if "no_unique_address" attribute is
19104 present, propagate that to the caller too.
19105 (rs6000_discover_homogeneous_aggregate): Adjust
19106 rs6000_aggregate_candidate caller, emit different diagnostics
19107 when c++17 empty base fields are present and when empty
19108 [[no_unique_address]] fields are present.
19109 * config/rs6000/rs6000.c (rs6000_special_round_type_align,
19110 darwin_rs6000_special_round_type_align): Skip DECL_FIELD_ABI_IGNORED
19113 2020-04-29 Richard Biener <rguenther@suse.de>
19115 * tree-ssa-loop-im.c (ref_always_accessed::operator ()):
19116 Just check whether the stmt stores.
19118 2020-04-28 Alexandre Oliva <oliva@adacore.com>
19121 * config/rs6000/rs6000.md (rs6000_mffsl): Copy result to
19122 output operand in emulation. Don't overwrite pseudos.
19124 2020-04-28 Jeff Law <law@redhat.com>
19126 * config/h8300/h8300.md (H8/SX mult patterns): All H8/SX specific
19127 multiply patterns are 4 bytes long.
19129 2020-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19131 * config/arm/arm-cpus.in (cortex-m55): Remove +nofp option.
19132 * doc/invoke.texi (Arm Options): Remove -mcpu=cortex-m55 from +nofp option.
19134 2020-04-28 Matthew Malcomson <matthew.malcomson@arm.com>
19135 Jakub Jelinek <jakub@redhat.com>
19138 * config/arm/arm.c (aapcs_vfp_sub_candidate): Account for C++17 empty
19139 base class artificial fields.
19140 (aapcs_vfp_is_call_or_return_candidate): Warn when PCS ABI
19141 decision is different after this fix.
19143 2020-04-28 David Malcolm <dmalcolm@redhat.com>
19149 * doc/invoke.texi (Static Analyzer Options): Remove
19150 -Wanalyzer-use-of-uninitialized-value.
19151 (-Wno-analyzer-use-of-uninitialized-value): Remove item.
19153 2020-04-28 Jakub Jelinek <jakub@redhat.com>
19155 PR tree-optimization/94809
19156 * tree.c (build_call_expr_internal_loc_array): Call
19157 process_call_operands.
19159 2020-04-27 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
19161 * config/aarch64/aarch64-cores.def (thunderx3t110): Add the chip name.
19162 * config/aarch64/aarch64-tune.md: Regenerate.
19163 * config/aarch64/aarch64.c (thunderx3t110_addrcost_table): Define.
19164 (thunderx3t110_regmove_cost): Likewise.
19165 (thunderx3t110_vector_cost): Likewise.
19166 (thunderx3t110_prefetch_tune): Likewise.
19167 (thunderx3t110_tunings): Likewise.
19168 * config/aarch64/aarch64-cost-tables.h (thunderx3t110_extra_costs):
19170 * config/aarch64/thunderx3t110.md: New file.
19171 * config/aarch64/aarch64.md: Include thunderx3t110.md.
19172 * doc/invoke.texi (AArch64 options): Add thunderx3t110.
19174 2020-04-28 Jakub Jelinek <jakub@redhat.com>
19177 * config/s390/s390.c (s390_function_arg_vector,
19178 s390_function_arg_float): Emit -Wpsabi diagnostics if the ABI changed.
19180 2020-04-28 Richard Sandiford <richard.sandiford@arm.com>
19182 PR tree-optimization/94727
19183 * tree-vect-stmts.c (vect_is_simple_cond): If both comparison
19184 operands are invariant booleans, use the mask type associated with the
19185 STMT_VINFO_VECTYPE. Use !slp_node instead of !vectype to exclude SLP.
19186 (vectorizable_condition): Pass vectype unconditionally to
19187 vect_is_simple_cond.
19189 2020-04-27 Jakub Jelinek <jakub@redhat.com>
19192 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Use
19193 TARGET_EXPR instead of MODIFY_EXPR for first assignment to
19194 sw_var, exceptions_var, mxcsr_orig_var and mxcsr_mod_var.
19196 2020-04-27 David Malcolm <dmalcolm@redhat.com>
19199 * configure.ac (DOCUMENTATION_ROOT_URL): Drop trailing "gcc/" from
19200 default value, so that it can by supplied by get_option_html_page.
19201 * configure: Regenerate.
19202 * opts.c: Include "selftest.h".
19203 (get_option_html_page): New function.
19204 (get_option_url): Use it. Reformat to place comments next to the
19205 expressions they refer to.
19206 (selftest::test_get_option_html_page): New.
19207 (selftest::opts_c_tests): New.
19208 * selftest-run-tests.c (selftest::run_tests): Call
19209 selftest::opts_c_tests.
19210 * selftest.h (selftest::opts_c_tests): New decl.
19212 2020-04-27 Richard Sandiford <richard.sandiford@arm.com>
19214 * config/arm/arm-builtins.c (arm_expand_builtin_args): Only apply
19215 UINTVAL to CONST_INTs.
19217 2020-04-27 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19219 * config/arm/constraints.md (e): Remove constraint.
19220 (Te): Define constraint.
19221 * config/arm/mve.md (vaddvq_<supf><mode>): Modify constraint in
19222 operand 0 from "e" to "Te".
19223 (vaddvaq_<supf><mode>): Likewise.
19224 (vaddvq_p_<supf><mode>): Likewise.
19225 (vmladavq_<supf><mode>): Likewise.
19226 (vmladavxq_s<mode>): Likewise.
19227 (vmlsdavq_s<mode>): Likewise.
19228 (vmlsdavxq_s<mode>): Likewise.
19229 (vaddvaq_p_<supf><mode>): Likewise.
19230 (vmladavaq_<supf><mode>): Likewise.
19231 (vmladavq_p_<supf><mode>): Likewise.
19232 (vmladavxq_p_s<mode>): Likewise.
19233 (vmlsdavq_p_s<mode>): Likewise.
19234 (vmlsdavxq_p_s<mode>): Likewise.
19235 (vmlsdavaxq_s<mode>): Likewise.
19236 (vmlsdavaq_s<mode>): Likewise.
19237 (vmladavaxq_s<mode>): Likewise.
19238 (vmladavaq_p_<supf><mode>): Likewise.
19239 (vmladavaxq_p_s<mode>): Likewise.
19240 (vmlsdavaq_p_s<mode>): Likewise.
19241 (vmlsdavaxq_p_s<mode>): Likewise.
19243 2020-04-27 Andre Vieira <andre.simoesdiasvieira@arm.com>
19245 * config/arm/arm.c (output_move_neon): Only get the first operand if
19248 2020-04-27 Felix Yang <felix.yang@huawei.com>
19250 PR tree-optimization/94784
19251 * tree-ssa-forwprop.c (simplify_vector_constructor): Flip the
19252 assert around so that it checks that the two vectors have equal
19253 TYPE_VECTOR_SUBPARTS and that converting the corresponding element
19254 types is a useless_type_conversion_p.
19256 2020-04-27 Szabolcs Nagy <szabolcs.nagy@arm.com>
19259 * dwarf2cfi.c (struct GTY): Add ra_mangled.
19260 (cfi_row_equal_p): Check ra_mangled.
19261 (dwarf2out_frame_debug_cfa_window_save): Remove the argument,
19262 this only handles the sparc logic now.
19263 (dwarf2out_frame_debug_cfa_toggle_ra_mangle): New function for
19264 the aarch64 specific logic.
19265 (dwarf2out_frame_debug): Update to use the new subroutines.
19266 (change_cfi_row): Check ra_mangled.
19268 2020-04-27 Jakub Jelinek <jakub@redhat.com>
19271 * config/s390/s390.c (s390_function_arg_vector,
19272 s390_function_arg_float): Ignore cxx17_empty_base_field_p fields.
19274 2020-04-27 Jiufu Guo <guojiufu@cn.ibm.com>
19276 * common/config/rs6000/rs6000-common.c
19277 (rs6000_option_optimization_table) [OPT_LEVELS_ALL]: Remove turn off
19279 * config/rs6000/rs6000.c (rs6000_option_override_internal): Avoid to
19282 2020-04-27 Martin Liska <mliska@suse.cz>
19285 * cgraph.h (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
19286 Do not remove ifunc_resolvers in remove unreachable nodes in LTO.
19288 2020-04-27 Xiong Hu Luo <luoxhu@linux.ibm.com>
19291 * config/rs6000/rs6000-logue.c (frame_pointer_needed_indeed):
19293 (rs6000_emit_prologue_components):
19294 Check with frame_pointer_needed_indeed.
19295 (rs6000_emit_epilogue_components): Likewise.
19296 (rs6000_emit_prologue): Likewise.
19297 (rs6000_emit_epilogue): Set frame_pointer_needed_indeed.
19299 2020-04-25 David Edelsohn <dje.gcc@gmail.com>
19301 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Don't push a
19302 stack frame when debugging and flag_compare_debug is enabled.
19304 2020-04-25 Michael Meissner <meissner@linux.ibm.com>
19306 * config/rs6000/linux64.h (PCREL_SUPPORTED_BY_OS): Define to
19307 enable PC-relative addressing for -mcpu=future.
19308 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Move
19309 after OTHER_FUTURE_MASKS. Use OTHER_FUTURE_MASKS.
19310 * config/rs6000/rs6000.c (PCREL_SUPPORTED_BY_OS): If not defined,
19311 suppress PC-relative addressing.
19312 (rs6000_option_override_internal): Split up error messages
19313 checking for -mprefixed and -mpcrel. Enable -mpcrel if the target
19314 system supports it.
19316 2020-04-25 Jakub Jelinek <jakub@redhat.com>
19317 Richard Biener <rguenther@suse.de>
19319 PR tree-optimization/94734
19320 PR tree-optimization/89430
19321 * tree-ssa-phiopt.c: Include tree-eh.h.
19322 (cond_store_replacement): Return false if an automatic variable
19323 access could trap. If -fstore-data-races, don't return false
19324 just because an automatic variable is addressable.
19326 2020-04-24 Andrew Stubbs <ams@codesourcery.com>
19328 * config/gcn/gcn-valu.md (add<mode>_zext_dup2_exec): Fix merge
19330 (add<mode>_sext_dup2_exec): Likewise.
19332 2020-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19335 * config/rs6000/vector.md (vec_shr_<mode> for VEC_L): Correct little
19336 endian byteshift_val calculation.
19338 2020-04-24 Andrew Stubbs <ams@codesourcery.com>
19340 * config/gcn/gcn.md (*mov<mode>_insn): Only split post-reload.
19342 2020-04-24 Richard Sandiford <richard.sandiford@arm.com>
19344 * config/aarch64/arm_sve.h: Add a comment.
19346 2020-04-24 Haijian Zhang <z.zhanghaijian@huawei.com>
19348 PR rtl-optimization/94708
19349 * combine.c (simplify_if_then_else): Add check for
19350 !HONOR_NANS (mode) && !HONOR_SIGNED_ZEROS (mode).
19352 2020-04-23 Martin Sebor <msebor@redhat.com>
19355 * common.opt (-Wno-frame-larger-than): New option.
19356 (-Wno-larger-than, -Wno-stack-usage): Same.
19358 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
19360 * config/gcn/gcn-valu.md (mov<mode>_exec): Swap the numbers on operands
19362 (mov<mode>_exec): Likewise.
19363 (trunc<vndi><mode>2_exec): Swap parameters to gen_mov<mode>_exec.
19364 (<convop><mode><vndi>2_exec): Likewise.
19366 2019-04-23 Eric Botcazou <ebotcazou@adacore.com>
19368 PR tree-optimization/94717
19369 * gimple-ssa-store-merging.c (try_coalesce_bswap): Return false if one
19370 of the stores doesn't have the same landing pad number as the first.
19371 (coalesce_immediate_stores): Do not try to coalesce the store using
19372 bswap if it doesn't have the same landing pad number as the first.
19374 2020-04-23 Bill Schmidt <wschmidt@linux.ibm.com>
19376 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19377 Replace outdated link to ELFv2 ABI.
19379 2020-04-23 Jakub Jelinek <jakub@redhat.com>
19382 * optabs.c (expand_vec_perm_const): For shift_amt const0_rtx
19385 PR middle-end/94724
19386 * tree.c (get_narrower): Instead of creating COMPOUND_EXPRs
19387 temporarily with non-final second operand and updating it later,
19388 push COMPOUND_EXPRs into a vector and process it in reverse,
19389 creating COMPOUND_EXPRs with the final operands.
19391 2020-04-23 Szabolcs Nagy <szabolcs.nagy@arm.com>
19394 * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Swap
19395 bti c and bti j handling.
19397 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
19398 Thomas Schwinge <thomas@codesourcery.com>
19400 PR middle-end/93488
19402 * omp-expand.c (expand_omp_target): Use force_gimple_operand_gsi on
19403 t_async and the wait arguments.
19405 2020-04-23 Richard Sandiford <richard.sandiford@arm.com>
19407 PR tree-optimization/94727
19408 * tree-vect-stmts.c (vectorizable_comparison): Use mask_type when
19409 comparing invariant scalar booleans.
19411 2020-04-23 Matthew Malcomson <matthew.malcomson@arm.com>
19412 Jakub Jelinek <jakub@redhat.com>
19415 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Account for C++17
19416 empty base class artificial fields.
19417 (aarch64_vfp_is_call_or_return_candidate): Warn when ABI PCS decision is
19418 different after this fix.
19420 2020-04-23 Jakub Jelinek <jakub@redhat.com>
19423 * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
19424 Use TYPE_UID (TYPE_MAIN_VARIANT (type)) instead of type to check
19425 if the same type has been diagnosed most recently already.
19427 2020-04-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19429 * config/arm/arm_mve.h (__arm_vbicq_n_u16): Modify function parameter's
19431 (__arm_vbicq_n_s16): Likewise.
19432 (__arm_vbicq_n_u32): Likewise.
19433 (__arm_vbicq_n_s32): Likewise.
19434 (__arm_vbicq): Likewise.
19435 (__arm_vbicq_n_s16): Modify MVE polymorphic variant argument's datatype.
19436 (__arm_vbicq_n_s32): Likewise.
19437 (__arm_vbicq_n_u16): Likewise.
19438 (__arm_vbicq_n_u32): Likewise.
19439 (__arm_vdupq_m_n_s8): Likewise.
19440 (__arm_vdupq_m_n_s16): Likewise.
19441 (__arm_vdupq_m_n_s32): Likewise.
19442 (__arm_vdupq_m_n_u8): Likewise.
19443 (__arm_vdupq_m_n_u16): Likewise.
19444 (__arm_vdupq_m_n_u32): Likewise.
19445 (__arm_vdupq_m_n_f16): Likewise.
19446 (__arm_vdupq_m_n_f32): Likewise.
19447 (__arm_vldrhq_gather_offset_s16): Likewise.
19448 (__arm_vldrhq_gather_offset_s32): Likewise.
19449 (__arm_vldrhq_gather_offset_u16): Likewise.
19450 (__arm_vldrhq_gather_offset_u32): Likewise.
19451 (__arm_vldrhq_gather_offset_f16): Likewise.
19452 (__arm_vldrhq_gather_offset_z_s16): Likewise.
19453 (__arm_vldrhq_gather_offset_z_s32): Likewise.
19454 (__arm_vldrhq_gather_offset_z_u16): Likewise.
19455 (__arm_vldrhq_gather_offset_z_u32): Likewise.
19456 (__arm_vldrhq_gather_offset_z_f16): Likewise.
19457 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
19458 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
19459 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
19460 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
19461 (__arm_vldrhq_gather_shifted_offset_f16): Likewise.
19462 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
19463 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
19464 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
19465 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
19466 (__arm_vldrhq_gather_shifted_offset_z_f16): Likewise.
19467 (__arm_vldrwq_gather_offset_s32): Likewise.
19468 (__arm_vldrwq_gather_offset_u32): Likewise.
19469 (__arm_vldrwq_gather_offset_f32): Likewise.
19470 (__arm_vldrwq_gather_offset_z_s32): Likewise.
19471 (__arm_vldrwq_gather_offset_z_u32): Likewise.
19472 (__arm_vldrwq_gather_offset_z_f32): Likewise.
19473 (__arm_vldrwq_gather_shifted_offset_s32): Likewise.
19474 (__arm_vldrwq_gather_shifted_offset_u32): Likewise.
19475 (__arm_vldrwq_gather_shifted_offset_f32): Likewise.
19476 (__arm_vldrwq_gather_shifted_offset_z_s32): Likewise.
19477 (__arm_vldrwq_gather_shifted_offset_z_u32): Likewise.
19478 (__arm_vldrwq_gather_shifted_offset_z_f32): Likewise.
19479 (__arm_vdwdupq_x_n_u8): Likewise.
19480 (__arm_vdwdupq_x_n_u16): Likewise.
19481 (__arm_vdwdupq_x_n_u32): Likewise.
19482 (__arm_viwdupq_x_n_u8): Likewise.
19483 (__arm_viwdupq_x_n_u16): Likewise.
19484 (__arm_viwdupq_x_n_u32): Likewise.
19485 (__arm_vidupq_x_n_u8): Likewise.
19486 (__arm_vddupq_x_n_u8): Likewise.
19487 (__arm_vidupq_x_n_u16): Likewise.
19488 (__arm_vddupq_x_n_u16): Likewise.
19489 (__arm_vidupq_x_n_u32): Likewise.
19490 (__arm_vddupq_x_n_u32): Likewise.
19491 (__arm_vldrdq_gather_offset_s64): Likewise.
19492 (__arm_vldrdq_gather_offset_u64): Likewise.
19493 (__arm_vldrdq_gather_offset_z_s64): Likewise.
19494 (__arm_vldrdq_gather_offset_z_u64): Likewise.
19495 (__arm_vldrdq_gather_shifted_offset_s64): Likewise.
19496 (__arm_vldrdq_gather_shifted_offset_u64): Likewise.
19497 (__arm_vldrdq_gather_shifted_offset_z_s64): Likewise.
19498 (__arm_vldrdq_gather_shifted_offset_z_u64): Likewise.
19499 (__arm_vidupq_m_n_u8): Likewise.
19500 (__arm_vidupq_m_n_u16): Likewise.
19501 (__arm_vidupq_m_n_u32): Likewise.
19502 (__arm_vddupq_m_n_u8): Likewise.
19503 (__arm_vddupq_m_n_u16): Likewise.
19504 (__arm_vddupq_m_n_u32): Likewise.
19505 (__arm_vidupq_n_u16): Likewise.
19506 (__arm_vidupq_n_u32): Likewise.
19507 (__arm_vidupq_n_u8): Likewise.
19508 (__arm_vddupq_n_u16): Likewise.
19509 (__arm_vddupq_n_u32): Likewise.
19510 (__arm_vddupq_n_u8): Likewise.
19512 2020-04-23 Iain Buclaw <ibuclaw@gdcproject.org>
19514 * doc/install.texi (D-Specific Options): Document
19515 --enable-libphobos-checking and --with-libphobos-druntime-only.
19517 2020-04-23 Jakub Jelinek <jakub@redhat.com>
19520 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Add
19521 cxx17_empty_base_seen argument. Pass it to recursive calls.
19522 Ignore cxx17_empty_base_field_p fields after setting
19523 *cxx17_empty_base_seen to true.
19524 (rs6000_discover_homogeneous_aggregate): Adjust
19525 rs6000_aggregate_candidate caller. With -Wpsabi, diagnose homogeneous
19526 aggregates with C++17 empty base fields.
19529 * attribs.c (decl_attribute): Don't diagnose attribute exclusions
19530 if last_decl is error_mark_node or has such a TREE_TYPE.
19533 * attribs.c (decl_attribute): Don't diagnose attribute exclusions
19534 if last_decl is error_mark_node or has such a TREE_TYPE.
19536 2020-04-22 Felix Yang <felix.yang@huawei.com>
19539 * config/aarch64/aarch64.h (TARGET_SVE):
19540 Add && !TARGET_GENERAL_REGS_ONLY.
19541 (TARGET_SVE2): Add && TARGET_SVE.
19542 (TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3,
19543 TARGET_SVE2_SM4): Add && TARGET_SVE2.
19544 * config/aarch64/aarch64-sve-builtins.h
19545 (sve_switcher::m_old_general_regs_only): New member.
19546 * config/aarch64/aarch64-sve-builtins.cc (check_required_registers):
19548 (reported_missing_registers_p): New variable.
19549 (check_required_extensions): Call check_required_registers before
19550 return if all required extenstions are present.
19551 (sve_switcher::sve_switcher): Save TARGET_GENERAL_REGS_ONLY in
19552 m_old_general_regs_only and clear MASK_GENERAL_REGS_ONLY in
19553 global_options.x_target_flags.
19554 (sve_switcher::~sve_switcher): Set MASK_GENERAL_REGS_ONLY in
19555 global_options.x_target_flags if m_old_general_regs_only is true.
19557 2020-04-22 Zackery Spytz <zspytz@gmail.com>
19559 * doc/extend.exi: Add "free" to list of other builtin functions
19562 2020-04-20 Aaron Sawdey <acsawdey@linux.ibm.com>
19565 * config/rs6000/sync.md (load_quadpti): Add attr "prefixed"
19566 if TARGET_PREFIXED.
19567 (store_quadpti): Ditto.
19568 (atomic_load<mode>): Do not swap doublewords if TARGET_PREFIXED as
19569 plq will be used and doesn't need it.
19570 (atomic_store<mode>): Ditto, for pstq.
19572 2020-04-22 Erick Ochoa <erick.ochoa@theobroma-systems.com>
19574 * doc/invoke.texi: Update flags turned on by -O3.
19576 2020-04-22 Jakub Jelinek <jakub@redhat.com>
19579 * config/ia64/ia64.c (hfa_element_mode): Ignore
19580 cxx17_empty_base_field_p fields.
19583 * calls.h (cxx17_empty_base_field_p): Declare.
19584 * calls.c (cxx17_empty_base_field_p): Define.
19586 2020-04-22 Christophe Lyon <christophe.lyon@linaro.org>
19588 * doc/sourcebuild.texi (arm_softfp_ok, arm_hard_ok): Document.
19590 2020-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19591 Andre Vieira <andre.simoesdiasvieira@arm.com>
19592 Mihail Ionescu <mihail.ionescu@arm.com>
19594 * config/arm/arm.c (arm_file_start): Handle isa_bit_quirk_no_asmcpu.
19595 * config/arm/arm-cpus.in (quirk_no_asmcpu): Define.
19596 (ALL_QUIRKS): Add quirk_no_asmcpu.
19597 (cortex-m55): Define new cpu.
19598 * config/arm/arm-tables.opt: Regenerate.
19599 * config/arm/arm-tune.md: Likewise.
19600 * doc/invoke.texi (Arm Options): Document -mcpu=cortex-m55.
19602 2020-04-22 Richard Sandiford <richard.sandiford@arm.com>
19604 PR tree-optimization/94700
19605 * tree-ssa-forwprop.c (simplify_vector_constructor): When processing
19606 an identity constructor, use a VIEW_CONVERT_EXPR to handle mixtures
19607 of similarly-structured but distinct vector types.
19609 2020-04-21 Martin Sebor <msebor@redhat.com>
19611 PR middle-end/94647
19612 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Correct
19613 the computation of the lower bound of the source access size.
19614 (builtin_access::generic_overlap): Remove a hack for setting ranges
19615 of overlap offsets.
19617 2020-04-21 John David Anglin <danglin@gcc.gnu.org>
19619 * config/pa/som.h (ASM_WEAKEN_LABEL): Delete.
19620 (ASM_WEAKEN_DECL): New define.
19621 (HAVE_GAS_WEAKREF): Undefine.
19623 2020-04-21 Richard Sandiford <richard.sandiford@arm.com>
19625 PR tree-optimization/94683
19626 * tree-ssa-forwprop.c (simplify_vector_constructor): Use a
19627 VIEW_CONVERT_EXPR to handle mixtures of similarly-structured
19628 but distinct vector types.
19630 2020-04-21 Jakub Jelinek <jakub@redhat.com>
19633 * stor-layout.c (place_field, finalize_record_size): Don't emit
19634 -Wpadded warning on TYPE_ARTIFICIAL rli->t.
19635 * ubsan.c (ubsan_get_type_descriptor_type,
19636 ubsan_get_source_location_type, ubsan_create_data): Set
19638 * asan.c (asan_global_struct): Likewise.
19640 2020-04-21 Duan bo <duanbo3@huawei.com>
19643 * config/aarch64/aarch64.c: Add an error message for option conflict.
19644 * doc/invoke.texi (-mcmodel=large): Mention that -mcmodel=large is
19645 incompatible with -fpic, -fPIC and -mabi=ilp32.
19647 2020-04-21 Frederik Harwath <frederik@codesourcery.com>
19650 * omp-low.c (new_omp_context): Remove assignments to
19651 ctx->outer_reduction_clauses and ctx->local_reduction_clauses.
19653 2020-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
19655 * config/s390/vector.md ("popcountv8hi2_vx", "popcountv4si2_vx")
19656 ("popcountv2di2_vx"): Use simplify_gen_subreg.
19658 2020-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
19661 * config/s390/s390-builtin-types.def: Add 3 new function modes.
19662 * config/s390/s390-builtins.def: Add mode dependent low-level
19663 builtin and map the overloaded builtins to these.
19664 * config/s390/vx-builtins.md ("vec_selV_HW"): Rename to ...
19665 ("vsel<V_HW"): ... this and rewrite the pattern with bitops.
19667 2020-04-20 Richard Sandiford <richard.sandiford@arm.com>
19669 * tree-vect-loop.c (vect_better_loop_vinfo_p): If old_loop_vinfo
19670 has a variable VF, prefer new_loop_vinfo if it is cheaper for the
19671 estimated VF and is no worse at double the estimated VF.
19673 2020-04-20 Richard Sandiford <richard.sandiford@arm.com>
19676 * config/aarch64/aarch64.c (aarch64_sve_expand_vector_init): Fix
19677 order of arguments to rtx_vector_builder.
19678 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
19679 When extending the trailing constants to a full vector, replace any
19680 variables with zeros.
19682 2020-04-20 Jan Hubicka <hubicka@ucw.cz>
19685 * tree-inline.c (optimize_inline_calls): Recompute calls_comdat_local
19688 2020-04-20 Martin Liska <mliska@suse.cz>
19690 * symtab.c (symtab_node::dump_references): Add space after
19692 (symtab_node::dump_referring): Likewise.
19694 2020-04-18 Jeff Law <law@redhat.com>
19697 * regrename.c (check_new_reg_p): Ignore DEBUG_INSNs when walking
19700 2020-04-18 Iain Buclaw <ibuclaw@gdcproject.org>
19702 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
19703 attributes): Document d_runtime_has_std_library.
19705 2020-04-17 Jeff Law <law@redhat.com>
19707 PR rtl-optimization/90275
19708 * cse.c (cse_insn): Avoid recording nop sets in multi-set parallels
19709 when the destination has a REG_UNUSED note.
19711 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
19713 PR middle-end/94635
19714 * gimplify.c (gimplify_scan_omp_clauses): Turn MAP_TO_PSET to
19717 2020-04-17 Richard Sandiford <richard.sandiford@arm.com>
19719 * config/aarch64/aarch64.c (aarch64_advsimd_ldp_stp_p): New function.
19720 (aarch64_sve_adjust_stmt_cost): Add a vectype parameter. Double the
19721 cost of load and store insns if one loop iteration has enough scalar
19722 elements to use an Advanced SIMD LDP or STP.
19723 (aarch64_add_stmt_cost): Update call accordingly.
19725 2020-04-17 Jakub Jelinek <jakub@redhat.com>
19726 Jeff Law <law@redhat.com>
19729 * config/i386/i386.md (*testqi_ext_3): Use CCZmode rather than
19730 CCNOmode in ix86_match_ccmode if len is equal to <MODE>mode precision,
19731 or pos + len >= 32, or pos + len is equal to operands[2] precision
19732 and operands[2] is not a register operand. During splitting perform
19733 SImode AND if operands[0] doesn't have CCZmode and pos + len is
19734 equal to mode precision.
19736 2020-04-17 Richard Biener <rguenther@suse.de>
19739 * cgraphclones.c (cgraph_node::create_clone): Remove duplicate
19741 * dwarf2out.c (dw_val_equal_p): Fix pasto in
19742 dw_val_class_vms_delta comparison.
19743 * optabs.c (expand_binop_directly): Fix pasto in commutation
19745 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Fix pasto in
19748 2020-04-17 Jakub Jelinek <jakub@redhat.com>
19750 PR rtl-optimization/94618
19751 * cfgrtl.c (delete_insn_and_edges): Set purge not just when
19752 insn is the BB_END of its block, but also when it is only followed
19753 by DEBUG_INSNs in its block.
19755 PR tree-optimization/94621
19756 * tree-inline.c (remap_type_1): Don't dereference NULL TYPE_DOMAIN.
19757 Move id->adjust_array_error_bounds check first in the condition.
19759 2020-04-17 Martin Liska <mliska@suse.cz>
19760 Jonathan Yong <10walls@gmail.com>
19762 PR gcov-profile/94570
19763 * coverage.c (coverage_init): Use separator properly.
19765 2020-04-16 Peter Bergner <bergner@linux.ibm.com>
19767 PR rtl-optimization/93974
19768 * config/rs6000/rs6000.c (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
19769 (rs6000_cannot_substitute_mem_equiv_p): New function.
19771 2020-04-16 Martin Jambor <mjambor@suse.cz>
19774 * ipa-inline.h (ipa_saved_clone_sources): Declare.
19775 * ipa-inline-transform.c (ipa_saved_clone_sources): New variable.
19776 (save_inline_function_body): Link the new body holder with the
19778 * cgraph.c: Include ipa-inline.h.
19779 (cgraph_edge::redirect_call_stmt_to_callee): Try to find the decl from
19780 the statement in ipa_saved_clone_sources.
19781 * cgraphunit.c: Include ipa-inline.h.
19782 (expand_all_functions): Free ipa_saved_clone_sources.
19784 2020-04-16 Richard Sandiford <richard.sandiford@arm.com>
19787 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor): Take
19788 the VNx16BI lowpart of the recursively-generated constant.
19790 2020-04-16 Martin Liska <mliska@suse.cz>
19791 Jakub Jelinek <jakub@redhat.com>
19794 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
19795 DECL_IS_REPLACEABLE_OPERATOR during cloning.
19796 * tree-ssa-dce.c (valid_new_delete_pair_p): New function.
19797 (propagate_necessity): Check operator names.
19799 2020-04-16 Richard Sandiford <richard.sandiford@arm.com>
19801 PR rtl-optimization/94605
19802 * early-remat.c (early_remat::process_block): Handle insns that
19803 set multiple candidate registers.
19804 2020-04-16 Jan Hubicka <hubicka@ucw.cz>
19806 PR gcov-profile/93401
19807 * common.opt (profile-prefix-path): New option.
19808 * coverae.c: Include diagnostics.h.
19809 (coverage_init): Strip profile prefix path.
19810 * doc/invoke.texi (-fprofile-prefix-path): Document.
19812 2020-04-16 Richard Biener <rguenther@suse.de>
19814 PR middle-end/94614
19815 * expr.c (emit_move_multi_word): Do not generate code when
19816 the destination part is undefined_operand_subword_p.
19817 * lower-subreg.c (resolve_clobber): Look through a paradoxica
19820 2020-04-16 Martin Jambor <mjambor@suse.cz>
19822 PR tree-optimization/94598
19823 * tree-sra.c (verify_sra_access_forest): Fix verification of total
19824 scalarization accesses under access to one-element arrays.
19826 2020-04-16 Jakub Jelinek <jakub@redhat.com>
19829 * function.c (assign_parm_find_data_types): Add workaround for
19830 BROKEN_VALUE_INITIALIZATION compilers.
19832 2020-04-16 Richard Biener <rguenther@suse.de>
19834 * gdbhooks.py (TreePrinter): Print SSA_NAME_VERSION of SSA_NAME
19837 2020-04-15 Uroš Bizjak <ubizjak@gmail.com>
19840 * config/i386/i386-builtin.def (__builtin_ia32_movq128):
19841 Require OPTION_MASK_ISA_SSE2.
19843 2020-04-15 Gustavo Romero <gromero@linux.ibm.com>
19846 * dumpfile.c (selftest::temp_dump_context::temp_dump_context):
19847 Don't construct a dump_context temporary to call static method.
19849 2020-04-15 Andrea Corallo <andrea.corallo@arm.com>
19851 * config/aarch64/falkor-tag-collision-avoidance.c
19852 (valid_src_p): Check for aarch64_address_info type before
19853 accessing base field.
19855 2020-04-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
19857 * config/arm/mve.md (mve_vec_duplicate<mode>): New pattern.
19858 (V_sz_elem2): Remove unused mode attribute.
19860 2020-04-15 Matthew Malcomson <matthew.malcomson@arm.com>
19862 * config/arm/arm.md (arm_movdi): Disallow for MVE.
19864 2020-04-15 Richard Biener <rguenther@suse.de>
19866 PR middle-end/94539
19867 * tree-ssa-alias.c (same_type_for_tbaa): Defer to
19868 alias_sets_conflict_p for pointers.
19870 2020-04-14 Max Filippov <jcmvbkbc@gmail.com>
19873 * config/xtensa/xtensa.md (zero_extendhisi2, zero_extendqisi2)
19874 (extendhisi2_internal): Add %v1 before the load instructions.
19876 2020-04-14 Aaron Sawdey <acsawdey@linux.ibm.com>
19879 * config/rs6000/rs6000.c (address_to_insn_form): Do not attempt to
19880 use PC-relative addressing for TLS references.
19882 2020-04-14 Martin Jambor <mjambor@suse.cz>
19885 * ipa-sra.c: Include internal-fn.h.
19886 (enum isra_scan_context): Update comment.
19887 (scan_function): Treat calls to internal_functions like loads or stores.
19889 2020-04-14 Yang Yang <yangyang305@huawei.com>
19891 PR tree-optimization/94574
19892 * tree-ssa.c (non_rewritable_lvalue_p): Add size check when analyzing
19893 whether a vector-insert is rewritable using a BIT_INSERT_EXPR.
19895 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
19898 * config/i386/i386.c (ix86_get_ssemov): Remove mode size check.
19900 2020-04-13 Martin Sebor <msebor@redhat.com>
19902 * doc/extend.texi (-Wall): Mention -Wformat-overflow and
19903 -Wformat-truncation. Move -Wzero-length-bounds last.
19904 (-Wrestrict): Document positive form of option enabled by -Wall.
19906 2020-04-13 Zachary Spytz <zspytz@gmail.com>
19908 * doc/extend.texi: Add realloc to list of built-in functions
19909 are recognized by the compiler.
19911 2020-04-13 H.J. Lu <hongjiu.lu@intel.com>
19914 * config/i386/i386.c (ix86_expand_epilogue): Restore the frame
19915 pointer in word_mode for eh_return epilogues.
19917 2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19919 * config/msp430/msp430.c (msp430_print_operand): Don't add offsets to
19920 memory references in %B, %C and %D operand selectors when the inner
19921 operand is a post increment address.
19923 2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19925 * config/msp430/msp430.c (msp430_print_operand): Offset a %C memory
19926 reference by 4 bytes, and %D memory reference by 6 bytes.
19928 2020-04-11 Uroš Bizjak <ubizjak@gmail.com>
19931 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE2
19932 condition for V4SI, V8HI and V16QI modes.
19934 2020-04-11 Jakub Jelinek <jakub@redhat.com>
19938 * cselib.c (cselib_record_sp_cfa_base_equiv): Set PRESERVED_VALUE_P on
19941 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
19943 PR middle-end/89433
19944 PR middle-end/93465
19945 * omp-general.c (oacc_verify_routine_clauses): Diagnose if
19946 "#pragma omp declare target" has also been applied.
19948 2020-04-09 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19950 * config/msp430/msp430.c (msp430_expand_epilogue): Use emit_jump_insn
19951 when to emit the epilogue_helper insn.
19952 * config/msp430/msp430.md (epilogue_helper): Add a return insn to the
19955 2020-04-09 Jakub Jelinek <jakub@redhat.com>
19958 * cselib.h (cselib_record_sp_cfa_base_equiv,
19959 cselib_sp_derived_value_p): Declare.
19960 * cselib.c (cselib_record_sp_cfa_base_equiv,
19961 cselib_sp_derived_value_p): New functions.
19962 * var-tracking.c (add_stores): Don't record MO_VAL_SET for
19963 cselib_sp_derived_value_p values.
19964 (vt_initialize): Call cselib_record_sp_cfa_base_equiv at the
19965 start of extended basic blocks other than the first one
19966 for !frame_pointer_needed functions.
19968 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
19970 * doc/sourcebuild.texi (aarch64_sve_hw, aarch64_sve128_hw)
19971 (aarch64_sve256_hw, aarch64_sve512_hw, aarch64_sve1024_hw)
19972 (aarch64_sve2048_hw): Document.
19973 * config/aarch64/aarch64-protos.h
19974 (aarch64_sve::handle_arm_sve_vector_bits_attribute): Declare.
19975 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
19976 __ARM_FEATURE_SVE_VECTOR_OPERATIONS when SVE is enabled.
19977 * config/aarch64/aarch64-sve-builtins.cc (matches_type_p): New
19979 (find_type_suffix_for_scalar_type): Use it instead of comparing
19980 TYPE_MAIN_VARIANTs.
19981 (function_resolver::infer_vector_or_tuple_type): Likewise.
19982 (function_resolver::require_vector_type): Likewise.
19983 (handle_arm_sve_vector_bits_attribute): New function.
19984 * config/aarch64/aarch64.c (pure_scalable_type_info): New class.
19985 (aarch64_attribute_table): Add arm_sve_vector_bits.
19986 (aarch64_return_in_memory_1):
19987 (pure_scalable_type_info::piece::get_rtx): New function.
19988 (pure_scalable_type_info::num_zr): Likewise.
19989 (pure_scalable_type_info::num_pr): Likewise.
19990 (pure_scalable_type_info::get_rtx): Likewise.
19991 (pure_scalable_type_info::analyze): Likewise.
19992 (pure_scalable_type_info::analyze_registers): Likewise.
19993 (pure_scalable_type_info::analyze_array): Likewise.
19994 (pure_scalable_type_info::analyze_record): Likewise.
19995 (pure_scalable_type_info::add_piece): Likewise.
19996 (aarch64_some_values_include_pst_objects_p): Likewise.
19997 (aarch64_returns_value_in_sve_regs_p): Use pure_scalable_type_info
19998 to analyze whether the type is returned in SVE registers.
19999 (aarch64_takes_arguments_in_sve_regs_p): Likwise whether the type
20000 is passed in SVE registers.
20001 (aarch64_pass_by_reference_1): New function, extracted from...
20002 (aarch64_pass_by_reference): ...here. Use pure_scalable_type_info
20003 to analyze whether the type is a pure scalable type and, if so,
20004 whether it should be passed by reference.
20005 (aarch64_return_in_msb): Return false for pure scalable types.
20006 (aarch64_function_value_1): Fold back into...
20007 (aarch64_function_value): ...this function. Use
20008 pure_scalable_type_info to analyze whether the type is a pure
20009 scalable type and, if so, which registers it should use. Handle
20010 types that include pure scalable types but are not themselves
20011 pure scalable types.
20012 (aarch64_return_in_memory_1): New function, split out from...
20013 (aarch64_return_in_memory): ...here. Use pure_scalable_type_info
20014 to analyze whether the type is a pure scalable type and, if so,
20015 whether it should be returned by reference.
20016 (aarch64_layout_arg): Remove orig_mode argument. Use
20017 pure_scalable_type_info to analyze whether the type is a pure
20018 scalable type and, if so, which registers it should use. Handle
20019 types that include pure scalable types but are not themselves
20020 pure scalable types.
20021 (aarch64_function_arg): Update call accordingly.
20022 (aarch64_function_arg_advance): Likewise.
20023 (aarch64_pad_reg_upward): On big-endian targets, return false for
20024 pure scalable types that are smaller than 16 bytes.
20025 (aarch64_member_type_forces_blk): New function.
20026 (aapcs_vfp_sub_candidate): Exit early for built-in SVE types.
20027 (aarch64_short_vector_p): Return false for VECTOR_TYPEs that
20028 correspond to built-in SVE types. Do not rely on a vector mode
20029 if the type includes an pure scalable type. When returning true,
20030 assert that the mode is not an SVE mode.
20031 (aarch64_vfp_is_call_or_return_candidate): Do not check for SVE
20032 built-in types here. When returning true, assert that the type
20033 does not have an SVE mode.
20034 (aarch64_can_change_mode_class): Don't allow anything to change
20035 between a predicate mode and a non-predicate mode. Also don't
20036 allow changes between SVE vector modes and other modes that
20037 might be bigger than 128 bits.
20038 (aarch64_invalid_binary_op): Reject binary operations that mix
20039 SVE and GNU vector types.
20040 (TARGET_MEMBER_TYPE_FORCES_BLK): Define.
20042 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
20044 * config/aarch64/aarch64.c (aarch64_attribute_table): Add
20045 "SVE sizeless type".
20046 * config/aarch64/aarch64-sve-builtins.cc (make_type_sizeless)
20047 (sizeless_type_p): New functions.
20048 (register_builtin_types): Apply make_type_sizeless to the type.
20049 (register_tuple_type): Likewise.
20050 (verify_type_context): Use sizeless_type_p instead of builin_type_p.
20052 2020-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
20054 * config/arm/arm_cde.h: Remove `extern "C"` when compiling for
20057 2020-04-09 Martin Jambor <mjambor@suse.cz>
20058 Richard Biener <rguenther@suse.de>
20060 PR tree-optimization/94482
20061 * tree-sra.c (create_access_replacement): Dump new replacement with
20063 (sra_modify_expr): Fix handling of cases when the original EXPR writes
20064 to only part of the replacement.
20065 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly verify
20066 the first operand of combinations into REAL/IMAGPART_EXPR and
20069 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
20071 * doc/sourcebuild.texi (check-function-bodies): Treat the third
20072 parameter as a list of option regexps and require each regexp
20075 2020-04-09 Andrea Corallo <andrea.corallo@arm.com>
20078 * config/aarch64/falkor-tag-collision-avoidance.c
20079 (valid_src_p): Fix missing rtx type check.
20081 2020-04-09 Bin Cheng <bin.cheng@linux.alibaba.com>
20082 Richard Biener <rguenther@suse.de>
20084 PR tree-optimization/93674
20085 * tree-ssa-loop-ivopts.c (langhooks.h): New include.
20086 (add_iv_candidate_for_use): For iv_use of non integer or pointer type,
20087 or non-mode precision type, add candidate in unsigned type with the
20090 2020-04-08 Clement Chigot <clement.chigot@atos.net>
20092 * config/rs6000/aix61.h (LIB_SPEC): Add -lc128 with -mlong-double-128.
20093 * config/rs6000/aix71.h (LIB_SPEC): Likewise.
20094 * config/rs6000/aix72.h (LIB_SPEC): Likewise.
20096 2020-04-08 Jakub Jelinek <jakub@redhat.com>
20098 PR middle-end/94526
20099 * cselib.c (autoinc_split): Handle e->val_rtx being SP_DERIVED_VALUE_P
20101 * reload1.c (eliminate_regs_1): Avoid creating
20102 (plus (reg) (const_int 0)) in DEBUG_INSNs.
20104 PR tree-optimization/94524
20105 * tree-vect-generic.c (expand_vector_divmod): If any elt of op1 is
20106 negative for signed TRUNC_MOD_EXPR, multiply with absolute value of
20107 op1 rather than op1 itself at the end. Punt for signed modulo by
20108 most negative constant.
20109 * tree-vect-patterns.c (vect_recog_divmod_pattern): Punt for signed
20110 modulo by most negative constant.
20112 2020-04-08 Richard Biener <rguenther@suse.de>
20114 PR rtl-optimization/93946
20115 * cse.c (cse_insn): Record the tabled expression in
20116 src_related. Verify a redundant store removal is valid.
20118 2020-04-08 H.J. Lu <hongjiu.lu@intel.com>
20121 * config/i386/i386-features.c (rest_of_insert_endbranch): Insert
20122 ENDBR at function entry if function will be called indirectly.
20124 2020-04-08 Jakub Jelinek <jakub@redhat.com>
20127 * config/i386/i386.c (ix86_get_mask_mode): Only use int mask for elem_size
20130 2020-04-08 Martin Liska <mliska@suse.cz>
20133 * gimple.c (gimple_call_operator_delete_p): Rename to...
20134 (gimple_call_replaceable_operator_delete_p): ... this.
20135 Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
20136 * gimple.h (gimple_call_operator_delete_p): Rename to ...
20137 (gimple_call_replaceable_operator_delete_p): ... this.
20138 * tree-core.h (tree_function_decl): Add replaceable_operator
20140 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1):
20141 Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
20142 (propagate_necessity): Use gimple_call_replaceable_operator_delete_p.
20143 (eliminate_unnecessary_stmts): Likewise.
20144 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
20145 Pack DECL_IS_REPLACEABLE_OPERATOR.
20146 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
20147 Unpack the field here.
20148 * tree.h (DECL_IS_REPLACEABLE_OPERATOR): New.
20149 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): New.
20150 (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): New.
20151 * cgraph.c (cgraph_node::dump): Dump if an operator is replaceable.
20152 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Compare
20153 replaceable operator flags.
20155 2020-04-08 Dennis Zhang <dennis.zhang@arm.com>
20156 Matthew Malcomson <matthew.malcomson@arm.com>
20158 * config/arm/arm-builtins.c (CX_IMM_QUALIFIERS): New macro.
20159 (CX_UNARY_QUALIFIERS, CX_BINARY_QUALIFIERS): Likewise.
20160 (CX_TERNARY_QUALIFIERS): Likewise.
20161 (ARM_BUILTIN_CDE_PATTERN_START): Likewise.
20162 (ARM_BUILTIN_CDE_PATTERN_END): Likewise.
20163 (arm_init_acle_builtins): Initialize CDE builtins.
20164 (arm_expand_acle_builtin): Check CDE constant operands.
20165 * config/arm/arm.h (ARM_CDE_CONST_COPROC): New macro to set the range
20166 of CDE constant operand.
20167 * config/arm/arm.c (arm_hard_regno_mode_ok): Support DImode for
20169 (ARM_VCDE_CONST_1, ARM_VCDE_CONST_2, ARM_VCDE_CONST_3): Likewise.
20170 * config/arm/arm_cde.h (__arm_vcx1_u32): New macro of ACLE interface.
20171 (__arm_vcx1a_u32, __arm_vcx2_u32, __arm_vcx2a_u32): Likewise.
20172 (__arm_vcx3_u32, __arm_vcx3a_u32, __arm_vcx1d_u64): Likewise.
20173 (__arm_vcx1da_u64, __arm_vcx2d_u64, __arm_vcx2da_u64): Likewise.
20174 (__arm_vcx3d_u64, __arm_vcx3da_u64): Likewise.
20175 * config/arm/arm_cde_builtins.def: New file.
20176 * config/arm/iterators.md (V_reg): New attribute of SI.
20177 * config/arm/predicates.md (const_int_coproc_operand): New.
20178 (const_int_vcde1_operand, const_int_vcde2_operand): New.
20179 (const_int_vcde3_operand): New.
20180 * config/arm/unspecs.md (UNSPEC_VCDE, UNSPEC_VCDEA): New.
20181 * config/arm/vfp.md (arm_vcx1<mode>): New entry.
20182 (arm_vcx1a<mode>, arm_vcx2<mode>, arm_vcx2a<mode>): Likewise.
20183 (arm_vcx3<mode>, arm_vcx3a<mode>): Likewise.
20185 2020-04-08 Dennis Zhang <dennis.zhang@arm.com>
20187 * config.gcc: Add arm_cde.h.
20188 * config/arm/arm-c.c (arm_cpu_builtins): Define or undefine
20189 __ARM_FEATURE_CDE and __ARM_FEATURE_CDE_COPROC.
20190 * config/arm/arm-cpus.in (cdecp0, cdecp1, ..., cdecp7): New options.
20191 * config/arm/arm.c (arm_option_reconfigure_globals): Configure
20192 arm_arch_cde and arm_arch_cde_coproc to store the feature bits.
20193 * config/arm/arm.h (TARGET_CDE): New macro.
20194 * config/arm/arm_cde.h: New file.
20195 * doc/invoke.texi: Document CDE options +cdecp[0-7].
20196 * doc/sourcebuild.texi (arm_v8m_main_cde_ok): Document new target
20198 (arm_v8m_main_cde_fp, arm_v8_1m_main_cde_mve): Likewise.
20200 2020-04-08 Jakub Jelinek <jakub@redhat.com>
20202 PR rtl-optimization/94516
20203 * postreload.c: Include rtl-iter.h.
20204 (reload_cse_move2add): Handle SP autoinc here by FOR_EACH_SUBRTX_VAR
20205 looking for all MEMs with RTX_AUTOINC operand.
20206 (move2add_note_store): Remove {PRE,POST}_{INC,DEC} handling.
20208 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
20210 * omp-grid.c (grid_eliminate_combined_simd_part): Use
20211 OMP_CLAUSE_CODE to access the omp clause code.
20213 2020-04-07 Jeff Law <law@redhat.com>
20215 PR rtl-optimization/92264
20216 * config/h8300/h8300.md (mov;add peephole2): Avoid applying when
20217 the destination is the stack pointer.
20219 2020-04-07 Jakub Jelinek <jakub@redhat.com>
20221 PR rtl-optimization/94291
20222 PR rtl-optimization/84169
20223 * combine.c (try_combine): For split_i2i3, don't assume SET_DEST
20224 must be a REG or SUBREG of REG; if it is not one of these, don't
20227 2020-04-07 Richard Biener <rguenther@suse.de>
20229 PR middle-end/94479
20230 * gimplify.c (gimplify_addr_expr): Also consider generated
20233 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20235 * config/arm/arm_mve.h: Add C++ polymorphism and fix preserve MACROs.
20237 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20239 * config/arm/arm_mve.h: Cast some pointers to expected types.
20241 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20243 * config/arm/arm_mve.h: Replace all uses of vuninitializedq_* with the
20244 same with '__arm_' prefix.
20246 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20248 * config/arm/mve.md (mve_vec_extract*): Allow memory operands in set.
20250 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20252 * config/arm/arm.c (arm_mve_immediate_check): Removed.
20253 * config/arm/mve.md (MVE_pred2, MVE_constraint2): Added FP types.
20254 (mve_vcvtq_n_to_f_*, mve_vcvtq_n_from_f_*, mve_vqshrnbq_n_*,
20255 mve_vqshrntq_n_*, mve_vqshrunbq_n_s*, mve_vqshruntq_n_s*,
20256 mve_vcvtq_m_n_from_f_*, mve_vcvtq_m_n_to_f_*, mve_vqshrnbq_m_n_*,
20257 mve_vqrshruntq_m_n_s*, mve_vqshrunbq_m_n_s*,
20258 mve_vqshruntq_m_n_s*): Fixed immediate constraints.
20260 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20262 * config/arm/arm.d (ashldi3): Don't use lsll for constant 32-bit shifts.
20264 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20266 * config/arm/arm_mve.h: Fix v[id]wdup intrinsics.
20267 * config/arm/mve/md: Fix v[id]wdup patterns.
20269 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20271 * config/arm/arm.c (output_move_neon): Deal with label + offset cases.
20272 * config/arm/mve.md (*mve_mov<mode>): Handle const vectors.
20274 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20276 * config/arm/arm_mve.h: Remove use of typeof for addr pointer parameters
20277 and remove const_ptr enums.
20279 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
20281 * config/arm/arm_mve.h (vsubq_n): Merge with...
20283 (vmulq_n): Merge with...
20285 (__ARM_mve_typeid): Simplify scalar and constant detection.
20287 2020-04-07 Jakub Jelinek <jakub@redhat.com>
20290 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Fix the check
20291 for inter-lane permutation for 64-byte modes.
20294 * config/aarch64/aarch64-simd.md (ashl<mode>3, lshr<mode>3,
20295 ashr<mode>3): Force operands[2] into reg whenever it is not CONST_INT.
20296 Assume it is a REG after that instead of testing it and doing FAIL
20297 otherwise. Formatting fix.
20299 2020-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
20301 * config/rs6000/t-rtems: Delete mcpu=8540 multilib.
20303 2020-04-07 Jakub Jelinek <jakub@redhat.com>
20306 * config/i386/i386-expand.c (emit_reduc_half): For V{64QI,32HI}mode
20307 handle i < 64 using avx512bw_lshrv4ti3. Formatting fixes.
20309 2020-04-06 Jakub Jelinek <jakub@redhat.com>
20311 * cselib.c (cselib_subst_to_values): For SP_DERIVED_VALUE_P
20312 + const0_rtx return the SP_DERIVED_VALUE_P.
20314 2020-04-06 Richard Sandiford <richard.sandiford@arm.com>
20316 PR rtl-optimization/92989
20317 * lra-lives.c (process_bb_lives): Do not treat eh_return data
20318 registers as being live at the beginning of the EH receiver.
20320 2020-04-05 Zachary Spytz <zspytz@gmail.com>
20322 * extend.texi: Add free to list of ISO C90 functions that
20323 are recognized by the compiler.
20325 2020-04-05 Nagaraju Mekala <nmekala@xilix.com>
20327 * config/microblaze/microblaze.c (microblaze_must_save_register): Check
20328 for fast_interrupt.
20330 * config/microblaze/microblaze.md (trap): Update output pattern.
20332 2020-04-04 Hannes Domani <ssbssa@yahoo.de>
20333 Jakub Jelinek <jakub@redhat.com>
20336 * dwarf2out.c (gen_subprogram_die): Look through references, pointers,
20337 arrays, pointer-to-members, function types and qualifiers when
20338 checking if in-class DIE had an 'auto' or 'decltype(auto)' return type
20339 to emit type again on definition.
20341 2020-04-04 Jan Hubicka <hubicka@ucw.cz>
20344 * ipa-fnsummary.c (vrp_will_run_p): New function.
20345 (fre_will_run_p): New function.
20346 (evaluate_properties_for_edge): Use it.
20347 * ipa-inline.c (can_inline_edge_by_limits_p): Do not inline
20348 !optimize_debug to optimize_debug.
20350 2020-04-04 Jakub Jelinek <jakub@redhat.com>
20352 PR rtl-optimization/94468
20353 * cselib.c (references_value_p): Formatting fix.
20354 (cselib_useless_value_p): New function.
20355 (discard_useless_locs, discard_useless_values,
20356 cselib_invalidate_regno_val, cselib_invalidate_mem,
20357 cselib_record_set): Use it instead of
20358 v->locs == 0 && !PRESERVED_VALUE_P (v->val_rtx).
20361 * tree-iterator.h (expr_single): Declare.
20362 * tree-iterator.c (expr_single): New function.
20363 * tree.h (protected_set_expr_location_if_unset): Declare.
20364 * tree.c (protected_set_expr_location): Use expr_single.
20365 (protected_set_expr_location_if_unset): New function.
20367 2020-04-03 Jeff Law <law@redhat.com>
20369 PR rtl-optimization/92264
20370 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Handle
20371 reloading of auto-increment addressing modes.
20373 2020-04-03 H.J. Lu <hongjiu.lu@intel.com>
20376 * config/i386/sse.md (ssse3_pshufbv8qi3): Mark scratch operand
20379 2020-04-03 Jeff Law <law@redhat.com>
20381 PR rtl-optimization/92264
20382 * config/m32r/m32r.c (m32r_output_block_move): Properly account for
20383 post-increment addressing of source operands as well as residuals
20384 when computing any adjustments to the input pointer.
20386 2020-04-03 Jakub Jelinek <jakub@redhat.com>
20389 * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
20390 avx2_ph<plusminus_mnemonic>dv8si3): Fix up RTL pattern to do
20391 second half of first lane from first lane of second operand and
20392 first half of second lane from second lane of first operand.
20394 2020-04-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
20396 * config/arm/arm_mve.h: Condition the header file on __ARM_FEATURE_MVE.
20398 2020-04-03 Tamar Christina <tamar.christina@arm.com>
20401 * common/config/aarch64/aarch64-common.c
20402 (aarch64_get_extension_string_for_isa_flags): Handle default flags.
20404 2020-04-03 Richard Biener <rguenther@suse.de>
20406 PR middle-end/94465
20407 * tree.c (array_ref_low_bound): Deal with released SSA names
20410 2020-04-03 Kwok Cheung Yeung <kcy@codesourcery.com>
20412 * config/gcn/gcn.c (print_operand): Handle unordered comparison
20414 * config/gcn/predicates.md (gcn_fp_compare_operator): Add unordered
20415 comparison operators.
20417 2020-04-03 Kewen Lin <linkw@gcc.gnu.org>
20419 PR tree-optimization/94443
20420 * tree-vect-loop.c (vectorizable_live_operation): Use
20421 gsi_insert_seq_before to replace gsi_insert_before.
20423 2020-04-03 Martin Liska <mliska@suse.cz>
20426 * ipa-icf-gimple.c (func_checker::compare_gimple_call):
20427 Compare type attributes for gimple_call_fntypes.
20429 2020-04-02 Sandra Loosemore <sandra@codesourcery.com>
20431 * alias.c (get_alias_set): Fix comment typos.
20433 2020-04-02 Fritz Reese <foreese@gcc.gnu.org>
20436 * fortran/decl.c (match_attr_spec): Lump COMP_STRUCTURE/COMP_MAP into
20437 attribute checking used by TYPE.
20439 2020-04-02 Martin Jambor <mjambor@suse.cz>
20442 * ipa-sra.c (struct caller_issues): New fields candidate and
20443 call_from_outside_comdat.
20444 (check_for_caller_issues): Check for calls from outsied of
20445 candidate's same_comdat_group.
20446 (check_all_callers_for_issues): Set up issues.candidate, check result
20448 (mark_callers_calls_comdat_local): New function.
20449 (process_isra_node_results): Set calls_comdat_local of callers if
20452 2020-04-02 Richard Biener <rguenther@suse.de>
20455 * common.opt (ffinite-loops): Initialize to zero.
20456 * opts.c (default_options_table): Remove OPT_ffinite_loops
20458 * cfgloop.h (loop::finite_p): New member.
20459 * cfgloopmanip.c (copy_loop_info): Copy finite_p.
20460 * ipa-icf-gimple.c (func_checker::compare_loops): Compare
20462 * lto-streamer-in.c (input_cfg): Stream finite_p.
20463 * lto-streamer-out.c (output_cfg): Likewise.
20464 * tree-cfg.c (replace_loop_annotate): Initialize finite_p
20465 from flag_finite_loops at CFG build time.
20466 * tree-ssa-loop-niter.c (finite_loop_p): Check the loops
20467 finite_p flag instead of flag_finite_loops.
20468 * doc/invoke.texi (ffinite-loops): Adjust documentation of
20471 2020-04-02 Richard Biener <rguenther@suse.de>
20474 * dwarf2out.c (dwarf2out_early_finish): Remove code emitting
20475 DW_TAG_imported_unit.
20477 2020-04-02 Maciej W. Rozycki <macro@wdc.com>
20479 * doc/install.texi (Specific) <riscv32-*-elf, riscv32-*-linux>
20480 <riscv64-*-elf, riscv64-*-linux>: Update binutils requirement to
20483 2020-04-02 Kewen Lin <linkw@gcc.gnu.org>
20485 PR tree-optimization/94401
20486 * tree-vect-loop.c (vectorizable_load): Handle VMAT_CONTIGUOUS_REVERSE
20487 access type when loading halves of vector to avoid peeling for gaps.
20489 2020-04-02 Jakub Jelinek <jakub@redhat.com>
20491 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add a space in
20492 between a string literal and MIPS_SYSVERSION_SPEC macro.
20494 2020-04-02 Martin Jambor <mjambor@suse.cz>
20496 * doc/invoke.texi (Optimize Options): Document sra-max-propagations.
20498 2020-04-02 Jakub Jelinek <jakub@redhat.com>
20500 PR rtl-optimization/92264
20501 * params.opt (-param=max-find-base-term-values=): Decrease default
20504 PR rtl-optimization/92264
20505 * rtl.h (struct rtx_def): Mention that call bit is used as
20506 SP_DERIVED_VALUE_P in cselib.c.
20507 * cselib.c (SP_DERIVED_VALUE_P): Define.
20508 (PRESERVED_VALUE_P, SP_BASED_VALUE_P): Move definitions earlier.
20509 (cselib_hasher::equal): Handle equality between SP_DERIVED_VALUE_P
20510 val_rtx and sp based expression where offsets cancel each other.
20511 (preserve_constants_and_equivs): Formatting fix.
20512 (cselib_reset_table): Add reverse op loc to SP_DERIVED_VALUE_P
20513 locs list for cfa_base_preserved_val if needed. Formatting fix.
20514 (autoinc_split): If the to be returned value is a REG, MEM or
20515 VALUE which has SP_DERIVED_VALUE_P + CONST_INT as one of its
20516 locs, return the SP_DERIVED_VALUE_P VALUE and adjust *off.
20517 (rtx_equal_for_cselib_1): Call autoinc_split even if both
20518 expressions are PLUS in Pmode with CONST_INT second operands.
20519 Handle SP_DERIVED_VALUE_P cases.
20520 (cselib_hash_plus_const_int): New function.
20521 (cselib_hash_rtx): Use it for PLUS in Pmode with CONST_INT
20522 second operand, as well as for PRE_DEC etc. that ought to be
20523 hashed the same way.
20524 (cselib_subst_to_values): Substitute PLUS with Pmode and
20525 CONST_INT operand if the first operand is a VALUE which has
20526 SP_DERIVED_VALUE_P + CONST_INT as one of its locs for the
20527 SP_DERIVED_VALUE_P + adjusted offset.
20528 (cselib_lookup_1): When creating a new VALUE for stack_pointer_rtx,
20529 set SP_DERIVED_VALUE_P on it. Set PRESERVED_VALUE_P when adding
20530 SP_DERIVED_VALUE_P PRESERVED_VALUE_P subseted VALUE location.
20531 * var-tracking.c (vt_initialize): Call cselib_add_permanent_equiv
20532 on the sp value before calling cselib_add_permanent_equiv on the
20534 * dse.c (check_for_inc_dec_1, check_for_inc_dec): Punt on RTX_AUTOINC
20535 in the insn without REG_INC note.
20536 (replace_read): Punt on RTX_AUTOINC in the *loc being replaced.
20537 Punt on invalid insns added by copy_to_mode_reg. Formatting fixes.
20540 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): For
20541 y_mode E_[QH]Imode and y being a CONST_INT, change y_mode to SImode.
20543 2020-04-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20546 * config/arm/arm-builtins.c (LDRGBWBXU_QUALIFIERS): Define.
20547 (LDRGBWBXU_Z_QUALIFIERS): Likewise.
20548 * config/arm/arm_mve.h (__arm_vldrdq_gather_base_wb_s64): Modify
20549 intrinsic defintion by adding a new builtin call to writeback into base
20551 (__arm_vldrdq_gather_base_wb_u64): Likewise.
20552 (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
20553 (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
20554 (__arm_vldrwq_gather_base_wb_s32): Likewise.
20555 (__arm_vldrwq_gather_base_wb_u32): Likewise.
20556 (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
20557 (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
20558 (__arm_vldrwq_gather_base_wb_f32): Likewise.
20559 (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
20560 * config/arm/arm_mve_builtins.def (vldrwq_gather_base_wb_z_u): Modify
20561 builtin's qualifier.
20562 (vldrdq_gather_base_wb_z_u): Likewise.
20563 (vldrwq_gather_base_wb_u): Likewise.
20564 (vldrdq_gather_base_wb_u): Likewise.
20565 (vldrwq_gather_base_wb_z_s): Likewise.
20566 (vldrwq_gather_base_wb_z_f): Likewise.
20567 (vldrdq_gather_base_wb_z_s): Likewise.
20568 (vldrwq_gather_base_wb_s): Likewise.
20569 (vldrwq_gather_base_wb_f): Likewise.
20570 (vldrdq_gather_base_wb_s): Likewise.
20571 (vldrwq_gather_base_nowb_z_u): Define builtin.
20572 (vldrdq_gather_base_nowb_z_u): Likewise.
20573 (vldrwq_gather_base_nowb_u): Likewise.
20574 (vldrdq_gather_base_nowb_u): Likewise.
20575 (vldrwq_gather_base_nowb_z_s): Likewise.
20576 (vldrwq_gather_base_nowb_z_f): Likewise.
20577 (vldrdq_gather_base_nowb_z_s): Likewise.
20578 (vldrwq_gather_base_nowb_s): Likewise.
20579 (vldrwq_gather_base_nowb_f): Likewise.
20580 (vldrdq_gather_base_nowb_s): Likewise.
20581 * config/arm/mve.md (mve_vldrwq_gather_base_nowb_<supf>v4si): Define RTL
20583 (mve_vldrwq_gather_base_wb_<supf>v4si): Modify RTL pattern.
20584 (mve_vldrwq_gather_base_nowb_z_<supf>v4si): Define RTL pattern.
20585 (mve_vldrwq_gather_base_wb_z_<supf>v4si): Modify RTL pattern.
20586 (mve_vldrwq_gather_base_wb_fv4sf): Modify RTL pattern.
20587 (mve_vldrwq_gather_base_nowb_fv4sf): Define RTL pattern.
20588 (mve_vldrwq_gather_base_wb_z_fv4sf): Modify RTL pattern.
20589 (mve_vldrwq_gather_base_nowb_z_fv4sf): Define RTL pattern.
20590 (mve_vldrdq_gather_base_nowb_<supf>v4di): Define RTL pattern.
20591 (mve_vldrdq_gather_base_wb_<supf>v4di): Modify RTL pattern.
20592 (mve_vldrdq_gather_base_nowb_z_<supf>v4di): Define RTL pattern.
20593 (mve_vldrdq_gather_base_wb_z_<supf>v4di): Modify RTL pattern.
20595 2020-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20597 * config/s390/vector.md ("<ti*>add<mode>3", "mul<mode>3")
20598 ("and<mode>3", "notand<mode>3", "ior<mode>3", "ior_not<mode>3")
20599 ("xor<mode>3", "notxor<mode>3", "smin<mode>3", "smax<mode>3")
20600 ("umin<mode>3", "umax<mode>3", "vec_widen_smult_even_<mode>")
20601 ("vec_widen_umult_even_<mode>", "vec_widen_smult_odd_<mode>")
20602 ("vec_widen_umult_odd_<mode>", "add<mode>3", "sub<mode>3")
20603 ("mul<mode>3", "fma<mode>4", "fms<mode>4", "neg_fma<mode>4")
20604 ("neg_fms<mode>4", "*smax<mode>3_vxe", "*smaxv2df3_vx")
20605 ("*smin<mode>3_vxe", "*sminv2df3_vx"): Remove % constraint
20607 ("vec_widen_umult_lo_<mode>", "vec_widen_umult_hi_<mode>")
20608 ("vec_widen_smult_lo_<mode>", "vec_widen_smult_hi_<mode>"):
20609 Remove constraints from expander.
20610 * config/s390/vx-builtins.md ("vacc<bhfgq>_<mode>", "vacq")
20611 ("vacccq", "vec_avg<mode>", "vec_avgu<mode>", "vec_vmal<mode>")
20612 ("vec_vmah<mode>", "vec_vmalh<mode>", "vec_vmae<mode>")
20613 ("vec_vmale<mode>", "vec_vmao<mode>", "vec_vmalo<mode>")
20614 ("vec_smulh<mode>", "vec_umulh<mode>", "vec_nor<mode>3")
20615 ("vfmin<mode>", "vfmax<mode>"): Remove % constraint modifier.
20617 2020-04-01 Peter Bergner <bergner@linux.ibm.com>
20619 PR rtl-optimization/94123
20620 * lower-subreg.c (pass_lower_subreg3::gate): Remove test for
20621 flag_split_wide_types_early.
20623 2020-04-01 Joerg Sonnenberger <joerg@bec.de>
20625 * doc/extend.texi (Common Function Attributes): Fix typo.
20627 2020-04-01 Segher Boessenkool <segher@kernel.crashing.org>
20630 * config/rs6000/rs6000.md (*tocref<mode> for P): Add insn condition
20633 2020-04-01 Zackery Spytz <zspytz@gmail.com>
20635 * doc/extend.texi: Fix a typo in the documentation of the
20636 copy function attribute.
20638 2020-04-01 Jakub Jelinek <jakub@redhat.com>
20640 PR middle-end/94423
20641 * tree-object-size.c (pass_object_sizes::execute): Don't call
20642 replace_uses_by for SSA_NAME_OCCURS_IN_ABNORMAL_PHI lhs, instead
20643 call replace_call_with_value.
20645 2020-04-01 Kewen Lin <linkw@gcc.gnu.org>
20647 PR tree-optimization/94043
20648 * tree-vect-loop.c (vectorizable_live_operation): Generate loop-closed
20649 phi for vec_lhs and use it for lane extraction.
20651 2020-03-31 Felix Yang <felix.yang@huawei.com>
20653 PR tree-optimization/94398
20654 * tree-vect-stmts.c (vectorizable_store): Instead of calling
20655 vect_supportable_dr_alignment, set alignment_support_scheme to
20656 dr_unaligned_supported for gather-scatter accesses.
20657 (vectorizable_load): Likewise.
20659 2020-03-31 Andrew Stubbs <ams@codesourcery.com>
20661 * config/gcn/gcn-valu.md (V_QI, V_HI, V_HF, V_SI, V_SF, V_DI, V_DF):
20662 New mode iterators.
20663 (vnsi, VnSI, vndi, VnDI): New mode attributes.
20664 (mov<mode>): Use <VnDI> in place of V64DI.
20665 (mov<mode>_exec): Likewise.
20666 (mov<mode>_sgprbase): Likewise.
20667 (reload_out<mode>): Likewise.
20668 (*vec_set<mode>_1): Use GET_MODE_NUNITS instead of constant 64.
20669 (gather_load<mode>v64si): Rename to ...
20670 (gather_load<mode><vnsi>): ... this, and use <VnSI> in place of V64SI,
20671 and <VnDI> in place of V64DI.
20672 (gather<mode>_insn_1offset<exec>): Use <VnDI> in place of V64DI.
20673 (gather<mode>_insn_1offset_ds<exec>): Use <VnSI> in place of V64SI.
20674 (gather<mode>_insn_2offsets<exec>): Use <VnSI> and <VnDI>.
20675 (scatter_store<mode>v64si): Rename to ...
20676 (scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
20677 (scatter<mode>_expr<exec_scatter>): Use <VnSI> and <VnDI>.
20678 (scatter<mode>_insn_1offset<exec_scatter>): Likewise.
20679 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
20680 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
20681 (ds_bpermute<mode>): Use <VnSI>.
20682 (addv64si3_vcc<exec_vcc>): Rename to ...
20683 (add<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
20684 (addv64si3_vcc_dup<exec_vcc>): Rename to ...
20685 (add<mode>3_vcc_dup<exec_vcc>): ... this, and use V_SI.
20686 (addcv64si3<exec_vcc>): Rename to ...
20687 (addc<mode>3<exec_vcc>): ... this, and use V_SI.
20688 (subv64si3_vcc<exec_vcc>): Rename to ...
20689 (sub<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
20690 (subcv64si3<exec_vcc>): Rename to ...
20691 (subc<mode>3<exec_vcc>): ... this, and use V_SI.
20692 (addv64di3): Rename to ...
20693 (add<mode>3): ... this, and use V_DI.
20694 (addv64di3_exec): Rename to ...
20695 (add<mode>3_exec): ... this, and use V_DI.
20696 (subv64di3): Rename to ...
20697 (sub<mode>3): ... this, and use V_DI.
20698 (subv64di3_exec): Rename to ...
20699 (sub<mode>3_exec): ... this, and use V_DI.
20700 (addv64di3_zext): Rename to ...
20701 (add<mode>3_zext): ... this, and use V_DI and <VnSI>.
20702 (addv64di3_zext_exec): Rename to ...
20703 (add<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
20704 (addv64di3_zext_dup): Rename to ...
20705 (add<mode>3_zext_dup): ... this, and use V_DI and <VnSI>.
20706 (addv64di3_zext_dup_exec): Rename to ...
20707 (add<mode>3_zext_dup_exec): ... this, and use V_DI and <VnSI>.
20708 (addv64di3_zext_dup2): Rename to ...
20709 (add<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
20710 (addv64di3_zext_dup2_exec): Rename to ...
20711 (add<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
20712 (addv64di3_sext_dup2): Rename to ...
20713 (add<mode>3_sext_dup2): ... this, and use V_DI and <VnSI>.
20714 (addv64di3_sext_dup2_exec): Rename to ...
20715 (add<mode>3_sext_dup2_exec): ... this, and use V_DI and <VnSI>.
20716 (<su>mulv64si3_highpart<exec>): Rename to ...
20717 (<su>mul<mode>3_highpart<exec>): ... this and use V_SI and <VnDI>.
20718 (mulv64di3): Rename to ...
20719 (mul<mode>3): ... this, and use V_DI and <VnSI>.
20720 (mulv64di3_exec): Rename to ...
20721 (mul<mode>3_exec): ... this, and use V_DI and <VnSI>.
20722 (mulv64di3_zext): Rename to ...
20723 (mul<mode>3_zext): ... this, and use V_DI and <VnSI>.
20724 (mulv64di3_zext_exec): Rename to ...
20725 (mul<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
20726 (mulv64di3_zext_dup2): Rename to ...
20727 (mul<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
20728 (mulv64di3_zext_dup2_exec): Rename to ...
20729 (mul<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
20730 (<expander>v64di3): Rename to ...
20731 (<expander><mode>3): ... this, and use V_DI and <VnSI>.
20732 (<expander>v64di3_exec): Rename to ...
20733 (<expander><mode>3_exec): ... this, and use V_DI and <VnSI>.
20734 (<expander>v64si3<exec>): Rename to ...
20735 (<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
20736 (v<expander>v64si3<exec>): Rename to ...
20737 (v<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
20738 (<expander>v64si3<exec>): Rename to ...
20739 (<expander><vnsi>3<exec>): ... this, and use V_SI.
20740 (subv64df3<exec>): Rename to ...
20741 (sub<mode>3<exec>): ... this, and use V_DF.
20742 (truncv64di<mode>2): Rename to ...
20743 (trunc<vndi><mode>2): ... this, and use <VnDI>.
20744 (truncv64di<mode>2_exec): Rename to ...
20745 (trunc<vndi><mode>2_exec): ... this, and use <VnDI>.
20746 (<convop><mode>v64di2): Rename to ...
20747 (<convop><mode><vndi>2): ... this, and use <VnDI>.
20748 (<convop><mode>v64di2_exec): Rename to ...
20749 (<convop><mode><vndi>2_exec): ... this, and use <VnDI>.
20750 (vec_cmp<u>v64qidi): Rename to ...
20751 (vec_cmp<u><mode>di): ... this, and use <VnSI>.
20752 (vec_cmp<u>v64qidi_exec): Rename to ...
20753 (vec_cmp<u><mode>di_exec): ... this, and use <VnSI>.
20754 (vcond_mask_<mode>di): Use <VnDI>.
20755 (maskload<mode>di): Likewise.
20756 (maskstore<mode>di): Likewise.
20757 (mask_gather_load<mode>v64si): Rename to ...
20758 (mask_gather_load<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
20759 (mask_scatter_store<mode>v64si): Rename to ...
20760 (mask_scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
20761 (*<reduc_op>_dpp_shr_v64di): Rename to ...
20762 (*<reduc_op>_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
20763 (*plus_carry_in_dpp_shr_v64si): Rename to ...
20764 (*plus_carry_in_dpp_shr_<mode>): ... this, and use V_SI.
20765 (*plus_carry_dpp_shr_v64di): Rename to ...
20766 (*plus_carry_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
20767 (vec_seriesv64si): Rename to ...
20768 (vec_series<mode>): ... this, and use V_SI.
20769 (vec_seriesv64di): Rename to ...
20770 (vec_series<mode>): ... this, and use V_DI.
20772 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
20774 * config/arc/arc.c (arc_print_operand): Use
20775 HOST_WIDE_INT_PRINT_DEC macro.
20777 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
20779 * config/arc/arc.h (ASM_FORMAT_PRIVATE_NAME): Fix it.
20781 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20783 * config/arm/arm_mve.h (vbicq): Define MVE intrinsic polymorphic
20785 (__arm_vbicq): Likewise.
20787 2020-03-31 Vineet Gupta <vgupta@synopsys.com>
20789 * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700.
20791 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20793 * config/arm/arm_mve.h (vaddlvq): Move the polymorphic variant to the
20794 common section of both MVE Integer and MVE Floating Point.
20795 (vaddvq): Likewise.
20796 (vaddlvq_p): Likewise.
20797 (vaddvaq): Likewise.
20798 (vaddvq_p): Likewise.
20799 (vcmpcsq): Likewise.
20800 (vmlsdavxq): Likewise.
20801 (vmlsdavq): Likewise.
20802 (vmladavxq): Likewise.
20803 (vmladavq): Likewise.
20804 (vminvq): Likewise.
20805 (vminavq): Likewise.
20806 (vmaxvq): Likewise.
20807 (vmaxavq): Likewise.
20808 (vmlaldavq): Likewise.
20809 (vcmphiq): Likewise.
20810 (vaddlvaq): Likewise.
20811 (vrmlaldavhq): Likewise.
20812 (vrmlaldavhxq): Likewise.
20813 (vrmlsldavhq): Likewise.
20814 (vrmlsldavhxq): Likewise.
20815 (vmlsldavxq): Likewise.
20816 (vmlsldavq): Likewise.
20817 (vabavq): Likewise.
20818 (vrmlaldavhaq): Likewise.
20819 (vcmpgeq_m_n): Likewise.
20820 (vmlsdavxq_p): Likewise.
20821 (vmlsdavq_p): Likewise.
20822 (vmlsdavaxq): Likewise.
20823 (vmlsdavaq): Likewise.
20824 (vaddvaq_p): Likewise.
20825 (vcmpcsq_m_n): Likewise.
20826 (vcmpcsq_m): Likewise.
20827 (vmladavxq_p): Likewise.
20828 (vmladavq_p): Likewise.
20829 (vmladavaxq): Likewise.
20830 (vmladavaq): Likewise.
20831 (vminvq_p): Likewise.
20832 (vminavq_p): Likewise.
20833 (vmaxvq_p): Likewise.
20834 (vmaxavq_p): Likewise.
20835 (vcmphiq_m): Likewise.
20836 (vaddlvaq_p): Likewise.
20837 (vmlaldavaq): Likewise.
20838 (vmlaldavaxq): Likewise.
20839 (vmlaldavq_p): Likewise.
20840 (vmlaldavxq_p): Likewise.
20841 (vmlsldavaq): Likewise.
20842 (vmlsldavaxq): Likewise.
20843 (vmlsldavq_p): Likewise.
20844 (vmlsldavxq_p): Likewise.
20845 (vrmlaldavhaxq): Likewise.
20846 (vrmlaldavhq_p): Likewise.
20847 (vrmlaldavhxq_p): Likewise.
20848 (vrmlsldavhaq): Likewise.
20849 (vrmlsldavhaxq): Likewise.
20850 (vrmlsldavhq_p): Likewise.
20851 (vrmlsldavhxq_p): Likewise.
20852 (vabavq_p): Likewise.
20853 (vmladavaq_p): Likewise.
20854 (vstrbq_scatter_offset): Likewise.
20855 (vstrbq_p): Likewise.
20856 (vstrbq_scatter_offset_p): Likewise.
20857 (vstrdq_scatter_base_p): Likewise.
20858 (vstrdq_scatter_base): Likewise.
20859 (vstrdq_scatter_offset_p): Likewise.
20860 (vstrdq_scatter_offset): Likewise.
20861 (vstrdq_scatter_shifted_offset_p): Likewise.
20862 (vstrdq_scatter_shifted_offset): Likewise.
20863 (vmaxq_x): Likewise.
20864 (vminq_x): Likewise.
20865 (vmovlbq_x): Likewise.
20866 (vmovltq_x): Likewise.
20867 (vmulhq_x): Likewise.
20868 (vmullbq_int_x): Likewise.
20869 (vmullbq_poly_x): Likewise.
20870 (vmulltq_int_x): Likewise.
20871 (vmulltq_poly_x): Likewise.
20872 (vstrbq): Likewise.
20874 2020-03-31 Jakub Jelinek <jakub@redhat.com>
20877 * config/aarch64/constraints.md (Uph): New constraint.
20878 * config/aarch64/atomics.md (cas_short_expected_imm): New mode attr.
20879 (@aarch64_compare_and_swap<mode>): Use it instead of n in operand 2's
20882 2020-03-31 Marc Glisse <marc.glisse@inria.fr>
20883 Jakub Jelinek <jakub@redhat.com>
20885 PR middle-end/94412
20886 * fold-const.c (fold_binary_loc) <case TRUNC_DIV_EXPR>: Use
20887 ANY_INTEGRAL_TYPE_P instead of INTEGRAL_TYPE_P.
20889 2020-03-31 Jakub Jelinek <jakub@redhat.com>
20891 PR tree-optimization/94403
20892 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Allow also
20893 ENUMERAL_TYPE lhs_type.
20895 PR rtl-optimization/94344
20896 * tree-ssa-forwprop.c (simplify_rotate): Handle also same precision
20897 conversions, either on both operands of |^+ or just one. Handle
20898 also extra same precision conversion on RSHIFT_EXPR first operand
20899 provided RSHIFT_EXPR is performed in unsigned type.
20901 2020-03-30 David Malcolm <dmalcolm@redhat.com>
20903 * lra.c (finish_insn_code_data_once): Set the array elements
20904 to NULL after freeing them.
20906 2020-03-30 Andreas Schwab <schwab@suse.de>
20908 * config/host-linux.c (TRY_EMPTY_VM_SPACE) [__riscv && __LP64__]:
20911 2020-03-30 Will Schmidt <will_schmidt@vnet.ibm.com>
20913 * config/rs6000/rs6000-call.c altivec_init_builtins(): Remove code
20914 to skip defining builtins based on builtin_mask.
20916 2020-03-30 Jakub Jelinek <jakub@redhat.com>
20919 * config/i386/sse.md (<mask_codefor>one_cmpl<mode>2<mask_name>): If
20920 !TARGET_AVX512VL, use 512-bit vpternlog and make sure the input
20921 operand is a register. Don't enable masked variants for V*[QH]Imode.
20924 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Use
20925 <store_mask_constraint> instead of m in output operand constraint.
20926 (vec_extract_hi_<mode><mask_name>): Use <mask_operand2> instead of
20929 2020-03-30 Alan Modra <amodra@gmail.com>
20931 * config/rs6000/rs6000.c (rs6000_call_aix): Emit cookie to pattern.
20932 (rs6000_indirect_call_template_1): Adjust to suit.
20933 * config/rs6000/rs6000.md (call_local): Merge call_local32,
20934 call_local64, and call_local_aix.
20935 (call_value_local): Simlarly.
20936 (call_nonlocal_aix, call_value_nonlocal_aix): Adjust rtl to suit,
20937 and disable pattern when CALL_LONG.
20938 (call_indirect_aix, call_value_indirect_aix): Adjust rtl.
20939 (call_indirect_elfv2, call_indirect_pcrel): Likewise.
20940 (call_value_indirect_elfv2, call_value_indirect_pcrel): Likewise.
20942 2020-03-29 H.J. Lu <hongjiu.lu@intel.com>
20945 * doc/invoke.texi: Update -falign-functions, -falign-loops and
20946 -falign-jumps documentation.
20948 2020-03-29 Martin Liska <mliska@suse.cz>
20951 * cgraphunit.c (process_function_and_variable_attributes): Remove
20952 double 'attribute' words.
20954 2020-03-29 John David Anglin <dave.anglin@bell.net>
20956 * config/pa/pa.c (pa_asm_output_aligned_bss): Delete duplicate
20959 2020-03-28 Jakub Jelinek <jakub@redhat.com>
20962 * c-decl.c (grokdeclarator): After issuing errors, set size_int_const
20963 to true after setting size to integer_one_node.
20965 PR tree-optimization/94329
20966 * tree-ssa-reassoc.c (reassociate_bb): When calling reassoc_remove_stmt
20967 on the last stmt in a bb, make sure gsi_prev isn't done immediately
20970 2020-03-27 Alan Modra <amodra@gmail.com>
20973 * config/rs6000/rs6000.c (rs6000_longcall_ref): Use unspec_volatile
20974 for PLT16_LO and PLT_PCREL.
20975 * config/rs6000/rs6000.md (UNSPEC_PLT16_LO, UNSPEC_PLT_PCREL): Remove.
20976 (UNSPECV_PLT16_LO, UNSPECV_PLT_PCREL): Define.
20977 (pltseq_plt16_lo_, pltseq_plt_pcrel): Use unspec_volatile.
20979 2020-03-27 Martin Sebor <msebor@redhat.com>
20982 * calls.c (init_attr_rdwr_indices): Iterate over all access attributes.
20984 2020-03-27 Andrew Stubbs <ams@codesourcery.com>
20986 * config/gcn/gcn-valu.md:
20987 (VEC_SUBDWORD_MODE): Rename to V_QIHI throughout.
20988 (VEC_1REG_MODE): Delete.
20989 (VEC_1REG_ALT): Delete.
20990 (VEC_ALL1REG_MODE): Rename to V_1REG throughout.
20991 (VEC_1REG_INT_MODE): Delete.
20992 (VEC_ALL1REG_INT_MODE): Rename to V_INT_1REG throughout.
20993 (VEC_ALL1REG_INT_ALT): Rename to V_INT_1REG_ALT throughout.
20994 (VEC_2REG_MODE): Rename to V_2REG throughout.
20995 (VEC_REG_MODE): Rename to V_noHI throughout.
20996 (VEC_ALLREG_MODE): Rename to V_ALL throughout.
20997 (VEC_ALLREG_ALT): Rename to V_ALL_ALT throughout.
20998 (VEC_ALLREG_INT_MODE): Rename to V_INT throughout.
20999 (VEC_INT_MODE): Delete.
21000 (VEC_FP_MODE): Rename to V_FP throughout and move to top.
21001 (VEC_FP_1REG_MODE): Rename to V_FP_1REG throughout and move to top.
21002 (FP_MODE): Delete and replace with FP throughout.
21003 (FP_1REG_MODE): Delete and replace with FP_1REG throughout.
21004 (VCMP_MODE): Rename to V_noQI throughout and move to top.
21005 (VCMP_MODE_INT): Rename to V_INT_noQI throughout and move to top.
21006 * config/gcn/gcn.md (FP): New mode iterator.
21007 (FP_1REG): New mode iterator.
21009 2020-03-27 David Malcolm <dmalcolm@redhat.com>
21011 * doc/invoke.texi (-fdump-analyzer-supergraph): Document that this
21012 now emits two .dot files.
21013 * graphviz.cc (graphviz_out::begin_tr): Only emit a TR, not a TD.
21014 (graphviz_out::end_tr): Only close a TR, not a TD.
21015 (graphviz_out::begin_td): New.
21016 (graphviz_out::end_td): New.
21017 (graphviz_out::begin_trtd): New, replacing the old implementation
21018 of graphviz_out::begin_tr.
21019 (graphviz_out::end_tdtr): New, replacing the old implementation
21020 of graphviz_out::end_tr.
21021 * graphviz.h (graphviz_out::begin_td): New decl.
21022 (graphviz_out::end_td): New decl.
21023 (graphviz_out::begin_trtd): New decl.
21024 (graphviz_out::end_tdtr): New decl.
21026 2020-03-27 Richard Biener <rguenther@suse.de>
21029 * dwarf2out.c (should_emit_struct_debug): Return false for
21032 2020-03-27 Richard Biener <rguenther@suse.de>
21034 PR tree-optimization/94352
21035 * tree-ssa-propagate.c (ssa_prop_init): Move seeding of the
21037 (ssa_propagation_engine::ssa_propagate): ... here after
21038 initializing curr_order.
21040 2020-03-27 Kewen Lin <linkw@gcc.gnu.org>
21042 PR tree-optimization/90332
21043 * tree-vect-stmts.c (vector_vector_composition_type): New function.
21044 (get_group_load_store_type): Adjust to call
21045 vector_vector_composition_type, extend it to construct with scalar
21047 (vectorizable_load): Likewise.
21049 2020-03-27 Roman Zhuykov <zhroma@ispras.ru>
21051 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove assertions.
21052 (create_ddg_dep_no_link): Likewise.
21053 (add_cross_iteration_register_deps): Move debug instruction check.
21054 Other minor refactoring.
21055 (add_intra_loop_mem_dep): Do not check for debug instructions.
21056 (add_inter_loop_mem_dep): Likewise.
21057 (build_intra_loop_deps): Likewise.
21058 (create_ddg): Do not include debug insns into the graph.
21059 * ddg.h (struct ddg): Remove num_debug field.
21060 * modulo-sched.c (doloop_register_get): Adjust condition.
21061 (res_MII): Remove DDG num_debug field usage.
21062 (sms_schedule_by_order): Use assertion against debug insns.
21063 (ps_has_conflicts): Drop debug insn check.
21065 2020-03-26 Jakub Jelinek <jakub@redhat.com>
21068 * tree.c (protected_set_expr_location): Recurse on STATEMENT_LIST
21069 that contains exactly one non-DEBUG_BEGIN_STMT statement.
21072 * gimple.h (gimple_seq_first_nondebug_stmt): New function.
21073 (gimple_seq_last_nondebug_stmt): Don't return NULL if seq contains
21074 a single non-debug stmt followed by one or more debug stmts.
21075 * gimplify.c (gimplify_body): Use gimple_seq_first_nondebug_stmt
21076 instead of gimple_seq_first_stmt, use gimple_seq_first_nondebug_stmt
21077 and gimple_seq_last_nondebug_stmt instead of gimple_seq_first and
21078 gimple_seq_last to check if outer_stmt gbind could be reused and
21079 if yes and it is surrounded by any debug stmts, move them into the
21082 PR rtl-optimization/92264
21083 * var-tracking.c (add_stores): Call cselib_set_value_sp_based even
21084 for sp based values in !frame_pointer_needed
21085 && !ACCUMULATE_OUTGOING_ARGS functions.
21087 2020-03-26 Felix Yang <felix.yang@huawei.com>
21089 PR tree-optimization/94269
21090 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Restrict
21092 operation to single basic block.
21094 2020-03-25 Jeff Law <law@redhat.com>
21096 PR rtl-optimization/90275
21097 * config/sh/sh.md (mov_neg_si_t): Clobber the T register in the
21100 2020-03-25 Jakub Jelinek <jakub@redhat.com>
21103 * config/arm/arm.c (arm_gen_dicompare_reg): Set mode of COMPARE to
21104 mode rather than VOIDmode.
21106 2020-03-25 Martin Sebor <msebor@redhat.com>
21108 PR middle-end/94004
21109 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Issue warnings
21110 even for alloca calls resulting from system macro expansion.
21111 Include inlining context in all warnings.
21113 2020-03-25 Richard Sandiford <richard.sandiford@arm.com>
21116 * config/rs6000/rs6000.c (rs6000_can_change_mode_class): Allow
21117 FPRs to change between SDmode and DDmode.
21119 2020-03-25 Martin Sebor <msebor@redhat.com>
21121 PR tree-optimization/94131
21122 * gimple-fold.c (get_range_strlen_tree): Fail for variable-length
21124 * tree-ssa-strlen.c (get_range_strlen_dynamic): Avoid assuming
21125 types have constant sizes.
21127 2020-03-25 Martin Liska <mliska@suse.cz>
21130 * configure.ac: Report error only when --with-zstd
21132 * configure: Regenerate.
21134 2020-03-25 Jakub Jelinek <jakub@redhat.com>
21137 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Set
21138 INSN_CODE (insn) to -1 when changing the pattern.
21140 2020-03-25 Martin Liska <mliska@suse.cz>
21144 * config/i386/i386-features.c (make_resolver_func): Drop
21145 public flag for resolver.
21146 * config/rs6000/rs6000.c (make_resolver_func): Add comdat
21147 group for resolver and drop public flag if possible.
21148 * multiple_target.c (create_dispatcher_calls): Drop unique_name
21149 and resolution as we want to enable LTO privatization of the default
21152 2020-03-25 Martin Liska <mliska@suse.cz>
21155 * configure.ac: Respect --without-zstd and report
21156 error when we can't find header file with --with-zstd.
21157 * configure: Regenerate.
21159 2020-03-25 Jakub Jelinek <jakub@redhat.com>
21161 PR middle-end/94303
21162 * varasm.c (output_constructor_array_range): If local->index
21163 RANGE_EXPR doesn't start at the current location in the constructor,
21164 skip needed number of bytes using assemble_zeros or assert we don't
21168 * langhooks.c (lhd_set_decl_assembler_name): Use a static ulong
21169 counter instead of DECL_UID.
21171 PR tree-optimization/94300
21172 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): If pd.offset
21173 is positive, make sure that off + size isn't larger than needed_len.
21175 2020-03-25 Richard Biener <rguenther@suse.de>
21176 Jakub Jelinek <jakub@redhat.com>
21179 * tree-if-conv.c (ifcvt_local_dce): Delete dead statements backwards.
21181 2020-03-24 Christophe Lyon <christophe.lyon@linaro.org>
21183 * doc/sourcebuild.texi (ARM-specific attributes): Add
21185 (Features for dg-add-options): Add arm_fp_dp.
21187 2020-03-24 John David Anglin <danglin@gcc.gnu.org>
21190 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Define __BIG_ENDIAN__.
21192 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
21195 * omp-offload.c (omp_finish_file): Fix target-link handling if
21196 targetm_common.have_named_sections is false.
21198 2020-03-24 Jakub Jelinek <jakub@redhat.com>
21201 * config/arm/arm.md (subvdi4, usubvsi4, usubvdi4): Use gen_int_mode
21202 instead of GEN_INT.
21205 * tree-ssa-loop-manip.c (create_iv): If after, set stmt location to
21206 e->goto_locus even if gsi_bb (*incr_pos) contains only debug stmts.
21207 If not after and at *incr_pos is a debug stmt, set stmt location to
21208 location of next non-debug stmt after it if any.
21211 * tree-if-conv.c (ifcvt_local_dce): For gimple debug stmts, just set
21212 GF_PLF_2, but don't add them to worklist. Don't add an assigment to
21213 worklist or set GF_PLF_2 just because it is used in a debug stmt in
21214 another bb. Formatting improvements.
21217 * cgraphunit.c (check_global_declaration): For DECL_EXTERNAL and
21218 non-TREE_PUBLIC non-DECL_ARTIFICIAL FUNCTION_DECLs, set TREE_PUBLIC
21219 regardless of whether TREE_NO_WARNING is set on it or whether
21220 warn_unused_function is true or not.
21222 2020-03-23 Jeff Law <law@redhat.com>
21224 PR rtl-optimization/90275
21227 * simplify-rtx.c (comparison_code_valid_for_mode): New function.
21228 (simplify_logical_relational_operation): Use it.
21230 2020-03-23 Jakub Jelinek <jakub@redhat.com>
21233 * tree.c (get_narrower): Handle COMPOUND_EXPR by recursing on
21234 ultimate rhs and if returned something different, reconstructing
21235 the COMPOUND_EXPRs.
21237 2020-03-23 Lewis Hyatt <lhyatt@gmail.com>
21239 * opts.c (print_filtered_help): Improve the help text for alias options.
21241 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21242 Andre Vieira <andre.simoesdiasvieira@arm.com>
21243 Mihail Ionescu <mihail.ionescu@arm.com>
21245 * config/arm/arm_mve.h (vshlcq_m_s8): Define macro.
21246 (vshlcq_m_u8): Likewise.
21247 (vshlcq_m_s16): Likewise.
21248 (vshlcq_m_u16): Likewise.
21249 (vshlcq_m_s32): Likewise.
21250 (vshlcq_m_u32): Likewise.
21251 (__arm_vshlcq_m_s8): Define intrinsic.
21252 (__arm_vshlcq_m_u8): Likewise.
21253 (__arm_vshlcq_m_s16): Likewise.
21254 (__arm_vshlcq_m_u16): Likewise.
21255 (__arm_vshlcq_m_s32): Likewise.
21256 (__arm_vshlcq_m_u32): Likewise.
21257 (vshlcq_m): Define polymorphic variant.
21258 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_UNONE_IMM_UNONE):
21259 Use builtin qualifier.
21260 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
21261 * config/arm/mve.md (mve_vshlcq_m_vec_<supf><mode>): Define RTL pattern.
21262 (mve_vshlcq_m_carry_<supf><mode>): Likewise.
21263 (mve_vshlcq_m_<supf><mode>): Likewise.
21265 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21267 * config/arm/arm-builtins.c (LSLL_QUALIFIERS): Define builtin qualifier.
21268 (UQSHL_QUALIFIERS): Likewise.
21269 (ASRL_QUALIFIERS): Likewise.
21270 (SQSHL_QUALIFIERS): Likewise.
21271 * config/arm/arm_mve.h (__ARM_BIG_ENDIAN): Check to not support MVE in
21273 (sqrshr): Define macro.
21274 (sqrshrl): Likewise.
21275 (sqrshrl_sat48): Likewise.
21277 (sqshll): Likewise.
21279 (srshrl): Likewise.
21280 (uqrshl): Likewise.
21281 (uqrshll): Likewise.
21282 (uqrshll_sat48): Likewise.
21284 (uqshll): Likewise.
21286 (urshrl): Likewise.
21289 (__arm_lsll): Define intrinsic.
21290 (__arm_asrl): Likewise.
21291 (__arm_uqrshll): Likewise.
21292 (__arm_uqrshll_sat48): Likewise.
21293 (__arm_sqrshrl): Likewise.
21294 (__arm_sqrshrl_sat48): Likewise.
21295 (__arm_uqshll): Likewise.
21296 (__arm_urshrl): Likewise.
21297 (__arm_srshrl): Likewise.
21298 (__arm_sqshll): Likewise.
21299 (__arm_uqrshl): Likewise.
21300 (__arm_sqrshr): Likewise.
21301 (__arm_uqshl): Likewise.
21302 (__arm_urshr): Likewise.
21303 (__arm_sqshl): Likewise.
21304 (__arm_srshr): Likewise.
21305 * config/arm/arm_mve_builtins.def (LSLL_QUALIFIERS): Use builtin
21307 (UQSHL_QUALIFIERS): Likewise.
21308 (ASRL_QUALIFIERS): Likewise.
21309 (SQSHL_QUALIFIERS): Likewise.
21310 * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Define RTL pattern.
21311 (mve_sqrshrl_sat<supf>_di): Likewise.
21312 (mve_uqrshl_si): Likewise.
21313 (mve_sqrshr_si): Likewise.
21314 (mve_uqshll_di): Likewise.
21315 (mve_urshrl_di): Likewise.
21316 (mve_uqshl_si): Likewise.
21317 (mve_urshr_si): Likewise.
21318 (mve_sqshl_si): Likewise.
21319 (mve_srshr_si): Likewise.
21320 (mve_srshrl_di): Likewise.
21321 (mve_sqshll_di): Likewise.
21323 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21324 Andre Vieira <andre.simoesdiasvieira@arm.com>
21325 Mihail Ionescu <mihail.ionescu@arm.com>
21327 * config/arm/arm_mve.h (vsetq_lane_f16): Define macro.
21328 (vsetq_lane_f32): Likewise.
21329 (vsetq_lane_s16): Likewise.
21330 (vsetq_lane_s32): Likewise.
21331 (vsetq_lane_s8): Likewise.
21332 (vsetq_lane_s64): Likewise.
21333 (vsetq_lane_u8): Likewise.
21334 (vsetq_lane_u16): Likewise.
21335 (vsetq_lane_u32): Likewise.
21336 (vsetq_lane_u64): Likewise.
21337 (vgetq_lane_f16): Likewise.
21338 (vgetq_lane_f32): Likewise.
21339 (vgetq_lane_s16): Likewise.
21340 (vgetq_lane_s32): Likewise.
21341 (vgetq_lane_s8): Likewise.
21342 (vgetq_lane_s64): Likewise.
21343 (vgetq_lane_u8): Likewise.
21344 (vgetq_lane_u16): Likewise.
21345 (vgetq_lane_u32): Likewise.
21346 (vgetq_lane_u64): Likewise.
21347 (__ARM_NUM_LANES): Likewise.
21348 (__ARM_LANEQ): Likewise.
21349 (__ARM_CHECK_LANEQ): Likewise.
21350 (__arm_vsetq_lane_s16): Define intrinsic.
21351 (__arm_vsetq_lane_s32): Likewise.
21352 (__arm_vsetq_lane_s8): Likewise.
21353 (__arm_vsetq_lane_s64): Likewise.
21354 (__arm_vsetq_lane_u8): Likewise.
21355 (__arm_vsetq_lane_u16): Likewise.
21356 (__arm_vsetq_lane_u32): Likewise.
21357 (__arm_vsetq_lane_u64): Likewise.
21358 (__arm_vgetq_lane_s16): Likewise.
21359 (__arm_vgetq_lane_s32): Likewise.
21360 (__arm_vgetq_lane_s8): Likewise.
21361 (__arm_vgetq_lane_s64): Likewise.
21362 (__arm_vgetq_lane_u8): Likewise.
21363 (__arm_vgetq_lane_u16): Likewise.
21364 (__arm_vgetq_lane_u32): Likewise.
21365 (__arm_vgetq_lane_u64): Likewise.
21366 (__arm_vsetq_lane_f16): Likewise.
21367 (__arm_vsetq_lane_f32): Likewise.
21368 (__arm_vgetq_lane_f16): Likewise.
21369 (__arm_vgetq_lane_f32): Likewise.
21370 (vgetq_lane): Define polymorphic variant.
21371 (vsetq_lane): Likewise.
21372 * config/arm/mve.md (mve_vec_extract<mode><V_elem_l>): Define RTL
21374 (mve_vec_extractv2didi): Likewise.
21375 (mve_vec_extract_sext_internal<mode>): Likewise.
21376 (mve_vec_extract_zext_internal<mode>): Likewise.
21377 (mve_vec_set<mode>_internal): Likewise.
21378 (mve_vec_setv2di_internal): Likewise.
21379 * config/arm/neon.md (vec_set<mode>): Move RTL pattern to vec-common.md
21381 (vec_extract<mode><V_elem_l>): Rename to
21382 "neon_vec_extract<mode><V_elem_l>".
21383 (vec_extractv2didi): Rename to "neon_vec_extractv2didi".
21384 * config/arm/vec-common.md (vec_extract<mode><V_elem_l>): Define RTL
21385 pattern common for MVE and NEON.
21386 (vec_set<mode>): Move RTL pattern from neon.md and modify to accept both
21389 2020-03-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
21391 * config/arm/mve.md (earlyclobber_32): New mode attribute.
21392 (mve_vrev64q_*, mve_vcaddq*, mve_vhcaddq_*, mve_vcmulq_*,
21393 mve_vmull[bt]q_*, mve_vqdmull[bt]q_*): Add appropriate early clobbers.
21395 2020-03-23 Richard Biener <rguenther@suse.de>
21397 PR tree-optimization/94261
21398 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
21399 IL operand swapping code.
21400 (vect_slp_rearrange_stmts): Do not arrange isomorphic
21401 nodes that would need operation code adjustments.
21403 2020-03-23 Tobias Burnus <tobias@codesourcery.com>
21405 * doc/install.texi (amdgcn-*-amdhsa): Renamed
21406 from amdgcn-unknown-amdhsa; change
21407 amdgcn-unknown-amdhsa to amdgcn-amdhsa.
21409 2020-03-23 Richard Biener <rguenther@suse.de>
21412 * ipa-prop.c (ipa_read_jump_function): Build the ADDR_EXRP
21413 directly rather than also folding it via build_fold_addr_expr.
21415 2020-03-23 Richard Biener <rguenther@suse.de>
21417 PR tree-optimization/94266
21418 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not propagate
21419 addresses of TARGET_MEM_REFs.
21421 2020-03-23 Martin Liska <mliska@suse.cz>
21424 * symtab.c (symtab_node::clone_references): Save speculative_id
21425 as ref may be overwritten by create_reference.
21426 (symtab_node::clone_referring): Likewise.
21427 (symtab_node::clone_reference): Likewise.
21429 2020-03-22 Iain Sandoe <iain@sandoe.co.uk>
21431 * config/i386/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Remove
21432 references to Darwin.
21433 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION): Define this
21434 unconditionally and comment on why.
21436 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
21438 * config/darwin.c (darwin_mergeable_constant_section): Collect
21439 section anchor checks into the caller.
21440 (machopic_select_section): Collect section anchor checks into
21441 the determination of 'effective zero-size' objects. When the
21442 size is unknown, assume it is non-zero, and thus return the
21443 'generic' section for the DECL.
21445 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
21448 * config/darwin.opt: Amend options descriptions.
21450 2020-03-21 Richard Sandiford <richard.sandiford@arm.com>
21452 PR rtl-optimization/94052
21453 * lra-constraints.c (simplify_operand_subreg): Reload the inner
21454 register of a paradoxical subreg if simplify_subreg_regno fails
21455 to give a valid hard register for the outer mode.
21457 2020-03-20 Martin Jambor <mjambor@suse.cz>
21459 PR tree-optimization/93435
21460 * params.opt (sra-max-propagations): New parameter.
21461 * tree-sra.c (propagation_budget): New variable.
21462 (budget_for_propagation_access): New function.
21463 (propagate_subaccesses_from_rhs): Use it.
21464 (propagate_subaccesses_from_lhs): Likewise.
21465 (propagate_all_subaccesses): Set up and destroy propagation_budget.
21467 2020-03-20 Carl Love <cel@us.ibm.com>
21470 * config/rs6000/rs6000.c (rs6000_option_override_internal):
21471 Add check for TARGET_FPRND for Power 7 or newer.
21473 2020-03-20 Jan Hubicka <hubicka@ucw.cz>
21476 * cgraph.c (symbol_table::create_edge): Update calls_comdat_local flag.
21477 (cgraph_edge::redirect_callee): Move here; likewise.
21478 (cgraph_node::remove_callees): Update calls_comdat_local flag.
21479 (cgraph_node::verify_node): Verify that calls_comdat_local flag match
21481 (cgraph_node::check_calls_comdat_local_p): New member function.
21482 * cgraph.h (cgraph_node::check_calls_comdat_local_p): Declare.
21483 (cgraph_edge::redirect_callee): Move offline.
21484 * ipa-fnsummary.c (compute_fn_summary): Do not compute
21485 calls_comdat_local flag here.
21486 * ipa-inline-transform.c (inline_call): Fix updating of
21487 calls_comdat_local flag.
21488 * ipa-split.c (split_function): Use true instead of 1 to set the flag.
21489 * symtab.c (symtab_node::add_to_same_comdat_group): Update
21490 calls_comdat_local flag.
21492 2020-03-20 Richard Biener <rguenther@suse.de>
21494 * tree-vect-slp.c (vect_analyze_slp_instance): Dump SLP tree
21495 from the possibly modified root.
21497 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21498 Andre Vieira <andre.simoesdiasvieira@arm.com>
21499 Mihail Ionescu <mihail.ionescu@arm.com>
21501 * config/arm/arm_mve.h (vst1q_p_u8): Define macro.
21502 (vst1q_p_s8): Likewise.
21503 (vst2q_s8): Likewise.
21504 (vst2q_u8): Likewise.
21505 (vld1q_z_u8): Likewise.
21506 (vld1q_z_s8): Likewise.
21507 (vld2q_s8): Likewise.
21508 (vld2q_u8): Likewise.
21509 (vld4q_s8): Likewise.
21510 (vld4q_u8): Likewise.
21511 (vst1q_p_u16): Likewise.
21512 (vst1q_p_s16): Likewise.
21513 (vst2q_s16): Likewise.
21514 (vst2q_u16): Likewise.
21515 (vld1q_z_u16): Likewise.
21516 (vld1q_z_s16): Likewise.
21517 (vld2q_s16): Likewise.
21518 (vld2q_u16): Likewise.
21519 (vld4q_s16): Likewise.
21520 (vld4q_u16): Likewise.
21521 (vst1q_p_u32): Likewise.
21522 (vst1q_p_s32): Likewise.
21523 (vst2q_s32): Likewise.
21524 (vst2q_u32): Likewise.
21525 (vld1q_z_u32): Likewise.
21526 (vld1q_z_s32): Likewise.
21527 (vld2q_s32): Likewise.
21528 (vld2q_u32): Likewise.
21529 (vld4q_s32): Likewise.
21530 (vld4q_u32): Likewise.
21531 (vld4q_f16): Likewise.
21532 (vld2q_f16): Likewise.
21533 (vld1q_z_f16): Likewise.
21534 (vst2q_f16): Likewise.
21535 (vst1q_p_f16): Likewise.
21536 (vld4q_f32): Likewise.
21537 (vld2q_f32): Likewise.
21538 (vld1q_z_f32): Likewise.
21539 (vst2q_f32): Likewise.
21540 (vst1q_p_f32): Likewise.
21541 (__arm_vst1q_p_u8): Define intrinsic.
21542 (__arm_vst1q_p_s8): Likewise.
21543 (__arm_vst2q_s8): Likewise.
21544 (__arm_vst2q_u8): Likewise.
21545 (__arm_vld1q_z_u8): Likewise.
21546 (__arm_vld1q_z_s8): Likewise.
21547 (__arm_vld2q_s8): Likewise.
21548 (__arm_vld2q_u8): Likewise.
21549 (__arm_vld4q_s8): Likewise.
21550 (__arm_vld4q_u8): Likewise.
21551 (__arm_vst1q_p_u16): Likewise.
21552 (__arm_vst1q_p_s16): Likewise.
21553 (__arm_vst2q_s16): Likewise.
21554 (__arm_vst2q_u16): Likewise.
21555 (__arm_vld1q_z_u16): Likewise.
21556 (__arm_vld1q_z_s16): Likewise.
21557 (__arm_vld2q_s16): Likewise.
21558 (__arm_vld2q_u16): Likewise.
21559 (__arm_vld4q_s16): Likewise.
21560 (__arm_vld4q_u16): Likewise.
21561 (__arm_vst1q_p_u32): Likewise.
21562 (__arm_vst1q_p_s32): Likewise.
21563 (__arm_vst2q_s32): Likewise.
21564 (__arm_vst2q_u32): Likewise.
21565 (__arm_vld1q_z_u32): Likewise.
21566 (__arm_vld1q_z_s32): Likewise.
21567 (__arm_vld2q_s32): Likewise.
21568 (__arm_vld2q_u32): Likewise.
21569 (__arm_vld4q_s32): Likewise.
21570 (__arm_vld4q_u32): Likewise.
21571 (__arm_vld4q_f16): Likewise.
21572 (__arm_vld2q_f16): Likewise.
21573 (__arm_vld1q_z_f16): Likewise.
21574 (__arm_vst2q_f16): Likewise.
21575 (__arm_vst1q_p_f16): Likewise.
21576 (__arm_vld4q_f32): Likewise.
21577 (__arm_vld2q_f32): Likewise.
21578 (__arm_vld1q_z_f32): Likewise.
21579 (__arm_vst2q_f32): Likewise.
21580 (__arm_vst1q_p_f32): Likewise.
21581 (vld1q_z): Define polymorphic variant.
21584 (vst1q_p): Likewise.
21586 * config/arm/arm_mve_builtins.def (STORE1): Use builtin qualifier.
21588 * config/arm/mve.md (mve_vst2q<mode>): Define RTL pattern.
21589 (mve_vld2q<mode>): Likewise.
21590 (mve_vld4q<mode>): Likewise.
21592 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21593 Andre Vieira <andre.simoesdiasvieira@arm.com>
21594 Mihail Ionescu <mihail.ionescu@arm.com>
21596 * config/arm/arm-builtins.c (ARM_BUILTIN_GET_FPSCR_NZCVQC): Define.
21597 (ARM_BUILTIN_SET_FPSCR_NZCVQC): Likewise.
21598 (arm_init_mve_builtins): Add "__builtin_arm_get_fpscr_nzcvqc" and
21599 "__builtin_arm_set_fpscr_nzcvqc" to arm_builtin_decls array.
21600 (arm_expand_builtin): Define case ARM_BUILTIN_GET_FPSCR_NZCVQC
21601 and ARM_BUILTIN_SET_FPSCR_NZCVQC.
21602 * config/arm/arm_mve.h (vadciq_s32): Define macro.
21603 (vadciq_u32): Likewise.
21604 (vadciq_m_s32): Likewise.
21605 (vadciq_m_u32): Likewise.
21606 (vadcq_s32): Likewise.
21607 (vadcq_u32): Likewise.
21608 (vadcq_m_s32): Likewise.
21609 (vadcq_m_u32): Likewise.
21610 (vsbciq_s32): Likewise.
21611 (vsbciq_u32): Likewise.
21612 (vsbciq_m_s32): Likewise.
21613 (vsbciq_m_u32): Likewise.
21614 (vsbcq_s32): Likewise.
21615 (vsbcq_u32): Likewise.
21616 (vsbcq_m_s32): Likewise.
21617 (vsbcq_m_u32): Likewise.
21618 (__arm_vadciq_s32): Define intrinsic.
21619 (__arm_vadciq_u32): Likewise.
21620 (__arm_vadciq_m_s32): Likewise.
21621 (__arm_vadciq_m_u32): Likewise.
21622 (__arm_vadcq_s32): Likewise.
21623 (__arm_vadcq_u32): Likewise.
21624 (__arm_vadcq_m_s32): Likewise.
21625 (__arm_vadcq_m_u32): Likewise.
21626 (__arm_vsbciq_s32): Likewise.
21627 (__arm_vsbciq_u32): Likewise.
21628 (__arm_vsbciq_m_s32): Likewise.
21629 (__arm_vsbciq_m_u32): Likewise.
21630 (__arm_vsbcq_s32): Likewise.
21631 (__arm_vsbcq_u32): Likewise.
21632 (__arm_vsbcq_m_s32): Likewise.
21633 (__arm_vsbcq_m_u32): Likewise.
21634 (vadciq_m): Define polymorphic variant.
21635 (vadciq): Likewise.
21636 (vadcq_m): Likewise.
21638 (vsbciq_m): Likewise.
21639 (vsbciq): Likewise.
21640 (vsbcq_m): Likewise.
21642 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE): Use builtin
21644 (BINOP_UNONE_UNONE_UNONE): Likewise.
21645 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
21646 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
21647 * config/arm/mve.md (VADCIQ): Define iterator.
21648 (VADCIQ_M): Likewise.
21650 (VSBCQ_M): Likewise.
21651 (VSBCIQ): Likewise.
21652 (VSBCIQ_M): Likewise.
21654 (VADCQ_M): Likewise.
21655 (mve_vadciq_m_<supf>v4si): Define RTL pattern.
21656 (mve_vadciq_<supf>v4si): Likewise.
21657 (mve_vadcq_m_<supf>v4si): Likewise.
21658 (mve_vadcq_<supf>v4si): Likewise.
21659 (mve_vsbciq_m_<supf>v4si): Likewise.
21660 (mve_vsbciq_<supf>v4si): Likewise.
21661 (mve_vsbcq_m_<supf>v4si): Likewise.
21662 (mve_vsbcq_<supf>v4si): Likewise.
21663 (get_fpscr_nzcvqc): Define isns.
21664 (set_fpscr_nzcvqc): Define isns.
21665 * config/arm/unspecs.md (UNSPEC_GET_FPSCR_NZCVQC): Define.
21666 (UNSPEC_SET_FPSCR_NZCVQC): Define.
21668 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21670 * config/arm/arm_mve.h (vddupq_x_n_u8): Define macro.
21671 (vddupq_x_n_u16): Likewise.
21672 (vddupq_x_n_u32): Likewise.
21673 (vddupq_x_wb_u8): Likewise.
21674 (vddupq_x_wb_u16): Likewise.
21675 (vddupq_x_wb_u32): Likewise.
21676 (vdwdupq_x_n_u8): Likewise.
21677 (vdwdupq_x_n_u16): Likewise.
21678 (vdwdupq_x_n_u32): Likewise.
21679 (vdwdupq_x_wb_u8): Likewise.
21680 (vdwdupq_x_wb_u16): Likewise.
21681 (vdwdupq_x_wb_u32): Likewise.
21682 (vidupq_x_n_u8): Likewise.
21683 (vidupq_x_n_u16): Likewise.
21684 (vidupq_x_n_u32): Likewise.
21685 (vidupq_x_wb_u8): Likewise.
21686 (vidupq_x_wb_u16): Likewise.
21687 (vidupq_x_wb_u32): Likewise.
21688 (viwdupq_x_n_u8): Likewise.
21689 (viwdupq_x_n_u16): Likewise.
21690 (viwdupq_x_n_u32): Likewise.
21691 (viwdupq_x_wb_u8): Likewise.
21692 (viwdupq_x_wb_u16): Likewise.
21693 (viwdupq_x_wb_u32): Likewise.
21694 (vdupq_x_n_s8): Likewise.
21695 (vdupq_x_n_s16): Likewise.
21696 (vdupq_x_n_s32): Likewise.
21697 (vdupq_x_n_u8): Likewise.
21698 (vdupq_x_n_u16): Likewise.
21699 (vdupq_x_n_u32): Likewise.
21700 (vminq_x_s8): Likewise.
21701 (vminq_x_s16): Likewise.
21702 (vminq_x_s32): Likewise.
21703 (vminq_x_u8): Likewise.
21704 (vminq_x_u16): Likewise.
21705 (vminq_x_u32): Likewise.
21706 (vmaxq_x_s8): Likewise.
21707 (vmaxq_x_s16): Likewise.
21708 (vmaxq_x_s32): Likewise.
21709 (vmaxq_x_u8): Likewise.
21710 (vmaxq_x_u16): Likewise.
21711 (vmaxq_x_u32): Likewise.
21712 (vabdq_x_s8): Likewise.
21713 (vabdq_x_s16): Likewise.
21714 (vabdq_x_s32): Likewise.
21715 (vabdq_x_u8): Likewise.
21716 (vabdq_x_u16): Likewise.
21717 (vabdq_x_u32): Likewise.
21718 (vabsq_x_s8): Likewise.
21719 (vabsq_x_s16): Likewise.
21720 (vabsq_x_s32): Likewise.
21721 (vaddq_x_s8): Likewise.
21722 (vaddq_x_s16): Likewise.
21723 (vaddq_x_s32): Likewise.
21724 (vaddq_x_n_s8): Likewise.
21725 (vaddq_x_n_s16): Likewise.
21726 (vaddq_x_n_s32): Likewise.
21727 (vaddq_x_u8): Likewise.
21728 (vaddq_x_u16): Likewise.
21729 (vaddq_x_u32): Likewise.
21730 (vaddq_x_n_u8): Likewise.
21731 (vaddq_x_n_u16): Likewise.
21732 (vaddq_x_n_u32): Likewise.
21733 (vclsq_x_s8): Likewise.
21734 (vclsq_x_s16): Likewise.
21735 (vclsq_x_s32): Likewise.
21736 (vclzq_x_s8): Likewise.
21737 (vclzq_x_s16): Likewise.
21738 (vclzq_x_s32): Likewise.
21739 (vclzq_x_u8): Likewise.
21740 (vclzq_x_u16): Likewise.
21741 (vclzq_x_u32): Likewise.
21742 (vnegq_x_s8): Likewise.
21743 (vnegq_x_s16): Likewise.
21744 (vnegq_x_s32): Likewise.
21745 (vmulhq_x_s8): Likewise.
21746 (vmulhq_x_s16): Likewise.
21747 (vmulhq_x_s32): Likewise.
21748 (vmulhq_x_u8): Likewise.
21749 (vmulhq_x_u16): Likewise.
21750 (vmulhq_x_u32): Likewise.
21751 (vmullbq_poly_x_p8): Likewise.
21752 (vmullbq_poly_x_p16): Likewise.
21753 (vmullbq_int_x_s8): Likewise.
21754 (vmullbq_int_x_s16): Likewise.
21755 (vmullbq_int_x_s32): Likewise.
21756 (vmullbq_int_x_u8): Likewise.
21757 (vmullbq_int_x_u16): Likewise.
21758 (vmullbq_int_x_u32): Likewise.
21759 (vmulltq_poly_x_p8): Likewise.
21760 (vmulltq_poly_x_p16): Likewise.
21761 (vmulltq_int_x_s8): Likewise.
21762 (vmulltq_int_x_s16): Likewise.
21763 (vmulltq_int_x_s32): Likewise.
21764 (vmulltq_int_x_u8): Likewise.
21765 (vmulltq_int_x_u16): Likewise.
21766 (vmulltq_int_x_u32): Likewise.
21767 (vmulq_x_s8): Likewise.
21768 (vmulq_x_s16): Likewise.
21769 (vmulq_x_s32): Likewise.
21770 (vmulq_x_n_s8): Likewise.
21771 (vmulq_x_n_s16): Likewise.
21772 (vmulq_x_n_s32): Likewise.
21773 (vmulq_x_u8): Likewise.
21774 (vmulq_x_u16): Likewise.
21775 (vmulq_x_u32): Likewise.
21776 (vmulq_x_n_u8): Likewise.
21777 (vmulq_x_n_u16): Likewise.
21778 (vmulq_x_n_u32): Likewise.
21779 (vsubq_x_s8): Likewise.
21780 (vsubq_x_s16): Likewise.
21781 (vsubq_x_s32): Likewise.
21782 (vsubq_x_n_s8): Likewise.
21783 (vsubq_x_n_s16): Likewise.
21784 (vsubq_x_n_s32): Likewise.
21785 (vsubq_x_u8): Likewise.
21786 (vsubq_x_u16): Likewise.
21787 (vsubq_x_u32): Likewise.
21788 (vsubq_x_n_u8): Likewise.
21789 (vsubq_x_n_u16): Likewise.
21790 (vsubq_x_n_u32): Likewise.
21791 (vcaddq_rot90_x_s8): Likewise.
21792 (vcaddq_rot90_x_s16): Likewise.
21793 (vcaddq_rot90_x_s32): Likewise.
21794 (vcaddq_rot90_x_u8): Likewise.
21795 (vcaddq_rot90_x_u16): Likewise.
21796 (vcaddq_rot90_x_u32): Likewise.
21797 (vcaddq_rot270_x_s8): Likewise.
21798 (vcaddq_rot270_x_s16): Likewise.
21799 (vcaddq_rot270_x_s32): Likewise.
21800 (vcaddq_rot270_x_u8): Likewise.
21801 (vcaddq_rot270_x_u16): Likewise.
21802 (vcaddq_rot270_x_u32): Likewise.
21803 (vhaddq_x_n_s8): Likewise.
21804 (vhaddq_x_n_s16): Likewise.
21805 (vhaddq_x_n_s32): Likewise.
21806 (vhaddq_x_n_u8): Likewise.
21807 (vhaddq_x_n_u16): Likewise.
21808 (vhaddq_x_n_u32): Likewise.
21809 (vhaddq_x_s8): Likewise.
21810 (vhaddq_x_s16): Likewise.
21811 (vhaddq_x_s32): Likewise.
21812 (vhaddq_x_u8): Likewise.
21813 (vhaddq_x_u16): Likewise.
21814 (vhaddq_x_u32): Likewise.
21815 (vhcaddq_rot90_x_s8): Likewise.
21816 (vhcaddq_rot90_x_s16): Likewise.
21817 (vhcaddq_rot90_x_s32): Likewise.
21818 (vhcaddq_rot270_x_s8): Likewise.
21819 (vhcaddq_rot270_x_s16): Likewise.
21820 (vhcaddq_rot270_x_s32): Likewise.
21821 (vhsubq_x_n_s8): Likewise.
21822 (vhsubq_x_n_s16): Likewise.
21823 (vhsubq_x_n_s32): Likewise.
21824 (vhsubq_x_n_u8): Likewise.
21825 (vhsubq_x_n_u16): Likewise.
21826 (vhsubq_x_n_u32): Likewise.
21827 (vhsubq_x_s8): Likewise.
21828 (vhsubq_x_s16): Likewise.
21829 (vhsubq_x_s32): Likewise.
21830 (vhsubq_x_u8): Likewise.
21831 (vhsubq_x_u16): Likewise.
21832 (vhsubq_x_u32): Likewise.
21833 (vrhaddq_x_s8): Likewise.
21834 (vrhaddq_x_s16): Likewise.
21835 (vrhaddq_x_s32): Likewise.
21836 (vrhaddq_x_u8): Likewise.
21837 (vrhaddq_x_u16): Likewise.
21838 (vrhaddq_x_u32): Likewise.
21839 (vrmulhq_x_s8): Likewise.
21840 (vrmulhq_x_s16): Likewise.
21841 (vrmulhq_x_s32): Likewise.
21842 (vrmulhq_x_u8): Likewise.
21843 (vrmulhq_x_u16): Likewise.
21844 (vrmulhq_x_u32): Likewise.
21845 (vandq_x_s8): Likewise.
21846 (vandq_x_s16): Likewise.
21847 (vandq_x_s32): Likewise.
21848 (vandq_x_u8): Likewise.
21849 (vandq_x_u16): Likewise.
21850 (vandq_x_u32): Likewise.
21851 (vbicq_x_s8): Likewise.
21852 (vbicq_x_s16): Likewise.
21853 (vbicq_x_s32): Likewise.
21854 (vbicq_x_u8): Likewise.
21855 (vbicq_x_u16): Likewise.
21856 (vbicq_x_u32): Likewise.
21857 (vbrsrq_x_n_s8): Likewise.
21858 (vbrsrq_x_n_s16): Likewise.
21859 (vbrsrq_x_n_s32): Likewise.
21860 (vbrsrq_x_n_u8): Likewise.
21861 (vbrsrq_x_n_u16): Likewise.
21862 (vbrsrq_x_n_u32): Likewise.
21863 (veorq_x_s8): Likewise.
21864 (veorq_x_s16): Likewise.
21865 (veorq_x_s32): Likewise.
21866 (veorq_x_u8): Likewise.
21867 (veorq_x_u16): Likewise.
21868 (veorq_x_u32): Likewise.
21869 (vmovlbq_x_s8): Likewise.
21870 (vmovlbq_x_s16): Likewise.
21871 (vmovlbq_x_u8): Likewise.
21872 (vmovlbq_x_u16): Likewise.
21873 (vmovltq_x_s8): Likewise.
21874 (vmovltq_x_s16): Likewise.
21875 (vmovltq_x_u8): Likewise.
21876 (vmovltq_x_u16): Likewise.
21877 (vmvnq_x_s8): Likewise.
21878 (vmvnq_x_s16): Likewise.
21879 (vmvnq_x_s32): Likewise.
21880 (vmvnq_x_u8): Likewise.
21881 (vmvnq_x_u16): Likewise.
21882 (vmvnq_x_u32): Likewise.
21883 (vmvnq_x_n_s16): Likewise.
21884 (vmvnq_x_n_s32): Likewise.
21885 (vmvnq_x_n_u16): Likewise.
21886 (vmvnq_x_n_u32): Likewise.
21887 (vornq_x_s8): Likewise.
21888 (vornq_x_s16): Likewise.
21889 (vornq_x_s32): Likewise.
21890 (vornq_x_u8): Likewise.
21891 (vornq_x_u16): Likewise.
21892 (vornq_x_u32): Likewise.
21893 (vorrq_x_s8): Likewise.
21894 (vorrq_x_s16): Likewise.
21895 (vorrq_x_s32): Likewise.
21896 (vorrq_x_u8): Likewise.
21897 (vorrq_x_u16): Likewise.
21898 (vorrq_x_u32): Likewise.
21899 (vrev16q_x_s8): Likewise.
21900 (vrev16q_x_u8): Likewise.
21901 (vrev32q_x_s8): Likewise.
21902 (vrev32q_x_s16): Likewise.
21903 (vrev32q_x_u8): Likewise.
21904 (vrev32q_x_u16): Likewise.
21905 (vrev64q_x_s8): Likewise.
21906 (vrev64q_x_s16): Likewise.
21907 (vrev64q_x_s32): Likewise.
21908 (vrev64q_x_u8): Likewise.
21909 (vrev64q_x_u16): Likewise.
21910 (vrev64q_x_u32): Likewise.
21911 (vrshlq_x_s8): Likewise.
21912 (vrshlq_x_s16): Likewise.
21913 (vrshlq_x_s32): Likewise.
21914 (vrshlq_x_u8): Likewise.
21915 (vrshlq_x_u16): Likewise.
21916 (vrshlq_x_u32): Likewise.
21917 (vshllbq_x_n_s8): Likewise.
21918 (vshllbq_x_n_s16): Likewise.
21919 (vshllbq_x_n_u8): Likewise.
21920 (vshllbq_x_n_u16): Likewise.
21921 (vshlltq_x_n_s8): Likewise.
21922 (vshlltq_x_n_s16): Likewise.
21923 (vshlltq_x_n_u8): Likewise.
21924 (vshlltq_x_n_u16): Likewise.
21925 (vshlq_x_s8): Likewise.
21926 (vshlq_x_s16): Likewise.
21927 (vshlq_x_s32): Likewise.
21928 (vshlq_x_u8): Likewise.
21929 (vshlq_x_u16): Likewise.
21930 (vshlq_x_u32): Likewise.
21931 (vshlq_x_n_s8): Likewise.
21932 (vshlq_x_n_s16): Likewise.
21933 (vshlq_x_n_s32): Likewise.
21934 (vshlq_x_n_u8): Likewise.
21935 (vshlq_x_n_u16): Likewise.
21936 (vshlq_x_n_u32): Likewise.
21937 (vrshrq_x_n_s8): Likewise.
21938 (vrshrq_x_n_s16): Likewise.
21939 (vrshrq_x_n_s32): Likewise.
21940 (vrshrq_x_n_u8): Likewise.
21941 (vrshrq_x_n_u16): Likewise.
21942 (vrshrq_x_n_u32): Likewise.
21943 (vshrq_x_n_s8): Likewise.
21944 (vshrq_x_n_s16): Likewise.
21945 (vshrq_x_n_s32): Likewise.
21946 (vshrq_x_n_u8): Likewise.
21947 (vshrq_x_n_u16): Likewise.
21948 (vshrq_x_n_u32): Likewise.
21949 (vdupq_x_n_f16): Likewise.
21950 (vdupq_x_n_f32): Likewise.
21951 (vminnmq_x_f16): Likewise.
21952 (vminnmq_x_f32): Likewise.
21953 (vmaxnmq_x_f16): Likewise.
21954 (vmaxnmq_x_f32): Likewise.
21955 (vabdq_x_f16): Likewise.
21956 (vabdq_x_f32): Likewise.
21957 (vabsq_x_f16): Likewise.
21958 (vabsq_x_f32): Likewise.
21959 (vaddq_x_f16): Likewise.
21960 (vaddq_x_f32): Likewise.
21961 (vaddq_x_n_f16): Likewise.
21962 (vaddq_x_n_f32): Likewise.
21963 (vnegq_x_f16): Likewise.
21964 (vnegq_x_f32): Likewise.
21965 (vmulq_x_f16): Likewise.
21966 (vmulq_x_f32): Likewise.
21967 (vmulq_x_n_f16): Likewise.
21968 (vmulq_x_n_f32): Likewise.
21969 (vsubq_x_f16): Likewise.
21970 (vsubq_x_f32): Likewise.
21971 (vsubq_x_n_f16): Likewise.
21972 (vsubq_x_n_f32): Likewise.
21973 (vcaddq_rot90_x_f16): Likewise.
21974 (vcaddq_rot90_x_f32): Likewise.
21975 (vcaddq_rot270_x_f16): Likewise.
21976 (vcaddq_rot270_x_f32): Likewise.
21977 (vcmulq_x_f16): Likewise.
21978 (vcmulq_x_f32): Likewise.
21979 (vcmulq_rot90_x_f16): Likewise.
21980 (vcmulq_rot90_x_f32): Likewise.
21981 (vcmulq_rot180_x_f16): Likewise.
21982 (vcmulq_rot180_x_f32): Likewise.
21983 (vcmulq_rot270_x_f16): Likewise.
21984 (vcmulq_rot270_x_f32): Likewise.
21985 (vcvtaq_x_s16_f16): Likewise.
21986 (vcvtaq_x_s32_f32): Likewise.
21987 (vcvtaq_x_u16_f16): Likewise.
21988 (vcvtaq_x_u32_f32): Likewise.
21989 (vcvtnq_x_s16_f16): Likewise.
21990 (vcvtnq_x_s32_f32): Likewise.
21991 (vcvtnq_x_u16_f16): Likewise.
21992 (vcvtnq_x_u32_f32): Likewise.
21993 (vcvtpq_x_s16_f16): Likewise.
21994 (vcvtpq_x_s32_f32): Likewise.
21995 (vcvtpq_x_u16_f16): Likewise.
21996 (vcvtpq_x_u32_f32): Likewise.
21997 (vcvtmq_x_s16_f16): Likewise.
21998 (vcvtmq_x_s32_f32): Likewise.
21999 (vcvtmq_x_u16_f16): Likewise.
22000 (vcvtmq_x_u32_f32): Likewise.
22001 (vcvtbq_x_f32_f16): Likewise.
22002 (vcvttq_x_f32_f16): Likewise.
22003 (vcvtq_x_f16_u16): Likewise.
22004 (vcvtq_x_f16_s16): Likewise.
22005 (vcvtq_x_f32_s32): Likewise.
22006 (vcvtq_x_f32_u32): Likewise.
22007 (vcvtq_x_n_f16_s16): Likewise.
22008 (vcvtq_x_n_f16_u16): Likewise.
22009 (vcvtq_x_n_f32_s32): Likewise.
22010 (vcvtq_x_n_f32_u32): Likewise.
22011 (vcvtq_x_s16_f16): Likewise.
22012 (vcvtq_x_s32_f32): Likewise.
22013 (vcvtq_x_u16_f16): Likewise.
22014 (vcvtq_x_u32_f32): Likewise.
22015 (vcvtq_x_n_s16_f16): Likewise.
22016 (vcvtq_x_n_s32_f32): Likewise.
22017 (vcvtq_x_n_u16_f16): Likewise.
22018 (vcvtq_x_n_u32_f32): Likewise.
22019 (vrndq_x_f16): Likewise.
22020 (vrndq_x_f32): Likewise.
22021 (vrndnq_x_f16): Likewise.
22022 (vrndnq_x_f32): Likewise.
22023 (vrndmq_x_f16): Likewise.
22024 (vrndmq_x_f32): Likewise.
22025 (vrndpq_x_f16): Likewise.
22026 (vrndpq_x_f32): Likewise.
22027 (vrndaq_x_f16): Likewise.
22028 (vrndaq_x_f32): Likewise.
22029 (vrndxq_x_f16): Likewise.
22030 (vrndxq_x_f32): Likewise.
22031 (vandq_x_f16): Likewise.
22032 (vandq_x_f32): Likewise.
22033 (vbicq_x_f16): Likewise.
22034 (vbicq_x_f32): Likewise.
22035 (vbrsrq_x_n_f16): Likewise.
22036 (vbrsrq_x_n_f32): Likewise.
22037 (veorq_x_f16): Likewise.
22038 (veorq_x_f32): Likewise.
22039 (vornq_x_f16): Likewise.
22040 (vornq_x_f32): Likewise.
22041 (vorrq_x_f16): Likewise.
22042 (vorrq_x_f32): Likewise.
22043 (vrev32q_x_f16): Likewise.
22044 (vrev64q_x_f16): Likewise.
22045 (vrev64q_x_f32): Likewise.
22046 (__arm_vddupq_x_n_u8): Define intrinsic.
22047 (__arm_vddupq_x_n_u16): Likewise.
22048 (__arm_vddupq_x_n_u32): Likewise.
22049 (__arm_vddupq_x_wb_u8): Likewise.
22050 (__arm_vddupq_x_wb_u16): Likewise.
22051 (__arm_vddupq_x_wb_u32): Likewise.
22052 (__arm_vdwdupq_x_n_u8): Likewise.
22053 (__arm_vdwdupq_x_n_u16): Likewise.
22054 (__arm_vdwdupq_x_n_u32): Likewise.
22055 (__arm_vdwdupq_x_wb_u8): Likewise.
22056 (__arm_vdwdupq_x_wb_u16): Likewise.
22057 (__arm_vdwdupq_x_wb_u32): Likewise.
22058 (__arm_vidupq_x_n_u8): Likewise.
22059 (__arm_vidupq_x_n_u16): Likewise.
22060 (__arm_vidupq_x_n_u32): Likewise.
22061 (__arm_vidupq_x_wb_u8): Likewise.
22062 (__arm_vidupq_x_wb_u16): Likewise.
22063 (__arm_vidupq_x_wb_u32): Likewise.
22064 (__arm_viwdupq_x_n_u8): Likewise.
22065 (__arm_viwdupq_x_n_u16): Likewise.
22066 (__arm_viwdupq_x_n_u32): Likewise.
22067 (__arm_viwdupq_x_wb_u8): Likewise.
22068 (__arm_viwdupq_x_wb_u16): Likewise.
22069 (__arm_viwdupq_x_wb_u32): Likewise.
22070 (__arm_vdupq_x_n_s8): Likewise.
22071 (__arm_vdupq_x_n_s16): Likewise.
22072 (__arm_vdupq_x_n_s32): Likewise.
22073 (__arm_vdupq_x_n_u8): Likewise.
22074 (__arm_vdupq_x_n_u16): Likewise.
22075 (__arm_vdupq_x_n_u32): Likewise.
22076 (__arm_vminq_x_s8): Likewise.
22077 (__arm_vminq_x_s16): Likewise.
22078 (__arm_vminq_x_s32): Likewise.
22079 (__arm_vminq_x_u8): Likewise.
22080 (__arm_vminq_x_u16): Likewise.
22081 (__arm_vminq_x_u32): Likewise.
22082 (__arm_vmaxq_x_s8): Likewise.
22083 (__arm_vmaxq_x_s16): Likewise.
22084 (__arm_vmaxq_x_s32): Likewise.
22085 (__arm_vmaxq_x_u8): Likewise.
22086 (__arm_vmaxq_x_u16): Likewise.
22087 (__arm_vmaxq_x_u32): Likewise.
22088 (__arm_vabdq_x_s8): Likewise.
22089 (__arm_vabdq_x_s16): Likewise.
22090 (__arm_vabdq_x_s32): Likewise.
22091 (__arm_vabdq_x_u8): Likewise.
22092 (__arm_vabdq_x_u16): Likewise.
22093 (__arm_vabdq_x_u32): Likewise.
22094 (__arm_vabsq_x_s8): Likewise.
22095 (__arm_vabsq_x_s16): Likewise.
22096 (__arm_vabsq_x_s32): Likewise.
22097 (__arm_vaddq_x_s8): Likewise.
22098 (__arm_vaddq_x_s16): Likewise.
22099 (__arm_vaddq_x_s32): Likewise.
22100 (__arm_vaddq_x_n_s8): Likewise.
22101 (__arm_vaddq_x_n_s16): Likewise.
22102 (__arm_vaddq_x_n_s32): Likewise.
22103 (__arm_vaddq_x_u8): Likewise.
22104 (__arm_vaddq_x_u16): Likewise.
22105 (__arm_vaddq_x_u32): Likewise.
22106 (__arm_vaddq_x_n_u8): Likewise.
22107 (__arm_vaddq_x_n_u16): Likewise.
22108 (__arm_vaddq_x_n_u32): Likewise.
22109 (__arm_vclsq_x_s8): Likewise.
22110 (__arm_vclsq_x_s16): Likewise.
22111 (__arm_vclsq_x_s32): Likewise.
22112 (__arm_vclzq_x_s8): Likewise.
22113 (__arm_vclzq_x_s16): Likewise.
22114 (__arm_vclzq_x_s32): Likewise.
22115 (__arm_vclzq_x_u8): Likewise.
22116 (__arm_vclzq_x_u16): Likewise.
22117 (__arm_vclzq_x_u32): Likewise.
22118 (__arm_vnegq_x_s8): Likewise.
22119 (__arm_vnegq_x_s16): Likewise.
22120 (__arm_vnegq_x_s32): Likewise.
22121 (__arm_vmulhq_x_s8): Likewise.
22122 (__arm_vmulhq_x_s16): Likewise.
22123 (__arm_vmulhq_x_s32): Likewise.
22124 (__arm_vmulhq_x_u8): Likewise.
22125 (__arm_vmulhq_x_u16): Likewise.
22126 (__arm_vmulhq_x_u32): Likewise.
22127 (__arm_vmullbq_poly_x_p8): Likewise.
22128 (__arm_vmullbq_poly_x_p16): Likewise.
22129 (__arm_vmullbq_int_x_s8): Likewise.
22130 (__arm_vmullbq_int_x_s16): Likewise.
22131 (__arm_vmullbq_int_x_s32): Likewise.
22132 (__arm_vmullbq_int_x_u8): Likewise.
22133 (__arm_vmullbq_int_x_u16): Likewise.
22134 (__arm_vmullbq_int_x_u32): Likewise.
22135 (__arm_vmulltq_poly_x_p8): Likewise.
22136 (__arm_vmulltq_poly_x_p16): Likewise.
22137 (__arm_vmulltq_int_x_s8): Likewise.
22138 (__arm_vmulltq_int_x_s16): Likewise.
22139 (__arm_vmulltq_int_x_s32): Likewise.
22140 (__arm_vmulltq_int_x_u8): Likewise.
22141 (__arm_vmulltq_int_x_u16): Likewise.
22142 (__arm_vmulltq_int_x_u32): Likewise.
22143 (__arm_vmulq_x_s8): Likewise.
22144 (__arm_vmulq_x_s16): Likewise.
22145 (__arm_vmulq_x_s32): Likewise.
22146 (__arm_vmulq_x_n_s8): Likewise.
22147 (__arm_vmulq_x_n_s16): Likewise.
22148 (__arm_vmulq_x_n_s32): Likewise.
22149 (__arm_vmulq_x_u8): Likewise.
22150 (__arm_vmulq_x_u16): Likewise.
22151 (__arm_vmulq_x_u32): Likewise.
22152 (__arm_vmulq_x_n_u8): Likewise.
22153 (__arm_vmulq_x_n_u16): Likewise.
22154 (__arm_vmulq_x_n_u32): Likewise.
22155 (__arm_vsubq_x_s8): Likewise.
22156 (__arm_vsubq_x_s16): Likewise.
22157 (__arm_vsubq_x_s32): Likewise.
22158 (__arm_vsubq_x_n_s8): Likewise.
22159 (__arm_vsubq_x_n_s16): Likewise.
22160 (__arm_vsubq_x_n_s32): Likewise.
22161 (__arm_vsubq_x_u8): Likewise.
22162 (__arm_vsubq_x_u16): Likewise.
22163 (__arm_vsubq_x_u32): Likewise.
22164 (__arm_vsubq_x_n_u8): Likewise.
22165 (__arm_vsubq_x_n_u16): Likewise.
22166 (__arm_vsubq_x_n_u32): Likewise.
22167 (__arm_vcaddq_rot90_x_s8): Likewise.
22168 (__arm_vcaddq_rot90_x_s16): Likewise.
22169 (__arm_vcaddq_rot90_x_s32): Likewise.
22170 (__arm_vcaddq_rot90_x_u8): Likewise.
22171 (__arm_vcaddq_rot90_x_u16): Likewise.
22172 (__arm_vcaddq_rot90_x_u32): Likewise.
22173 (__arm_vcaddq_rot270_x_s8): Likewise.
22174 (__arm_vcaddq_rot270_x_s16): Likewise.
22175 (__arm_vcaddq_rot270_x_s32): Likewise.
22176 (__arm_vcaddq_rot270_x_u8): Likewise.
22177 (__arm_vcaddq_rot270_x_u16): Likewise.
22178 (__arm_vcaddq_rot270_x_u32): Likewise.
22179 (__arm_vhaddq_x_n_s8): Likewise.
22180 (__arm_vhaddq_x_n_s16): Likewise.
22181 (__arm_vhaddq_x_n_s32): Likewise.
22182 (__arm_vhaddq_x_n_u8): Likewise.
22183 (__arm_vhaddq_x_n_u16): Likewise.
22184 (__arm_vhaddq_x_n_u32): Likewise.
22185 (__arm_vhaddq_x_s8): Likewise.
22186 (__arm_vhaddq_x_s16): Likewise.
22187 (__arm_vhaddq_x_s32): Likewise.
22188 (__arm_vhaddq_x_u8): Likewise.
22189 (__arm_vhaddq_x_u16): Likewise.
22190 (__arm_vhaddq_x_u32): Likewise.
22191 (__arm_vhcaddq_rot90_x_s8): Likewise.
22192 (__arm_vhcaddq_rot90_x_s16): Likewise.
22193 (__arm_vhcaddq_rot90_x_s32): Likewise.
22194 (__arm_vhcaddq_rot270_x_s8): Likewise.
22195 (__arm_vhcaddq_rot270_x_s16): Likewise.
22196 (__arm_vhcaddq_rot270_x_s32): Likewise.
22197 (__arm_vhsubq_x_n_s8): Likewise.
22198 (__arm_vhsubq_x_n_s16): Likewise.
22199 (__arm_vhsubq_x_n_s32): Likewise.
22200 (__arm_vhsubq_x_n_u8): Likewise.
22201 (__arm_vhsubq_x_n_u16): Likewise.
22202 (__arm_vhsubq_x_n_u32): Likewise.
22203 (__arm_vhsubq_x_s8): Likewise.
22204 (__arm_vhsubq_x_s16): Likewise.
22205 (__arm_vhsubq_x_s32): Likewise.
22206 (__arm_vhsubq_x_u8): Likewise.
22207 (__arm_vhsubq_x_u16): Likewise.
22208 (__arm_vhsubq_x_u32): Likewise.
22209 (__arm_vrhaddq_x_s8): Likewise.
22210 (__arm_vrhaddq_x_s16): Likewise.
22211 (__arm_vrhaddq_x_s32): Likewise.
22212 (__arm_vrhaddq_x_u8): Likewise.
22213 (__arm_vrhaddq_x_u16): Likewise.
22214 (__arm_vrhaddq_x_u32): Likewise.
22215 (__arm_vrmulhq_x_s8): Likewise.
22216 (__arm_vrmulhq_x_s16): Likewise.
22217 (__arm_vrmulhq_x_s32): Likewise.
22218 (__arm_vrmulhq_x_u8): Likewise.
22219 (__arm_vrmulhq_x_u16): Likewise.
22220 (__arm_vrmulhq_x_u32): Likewise.
22221 (__arm_vandq_x_s8): Likewise.
22222 (__arm_vandq_x_s16): Likewise.
22223 (__arm_vandq_x_s32): Likewise.
22224 (__arm_vandq_x_u8): Likewise.
22225 (__arm_vandq_x_u16): Likewise.
22226 (__arm_vandq_x_u32): Likewise.
22227 (__arm_vbicq_x_s8): Likewise.
22228 (__arm_vbicq_x_s16): Likewise.
22229 (__arm_vbicq_x_s32): Likewise.
22230 (__arm_vbicq_x_u8): Likewise.
22231 (__arm_vbicq_x_u16): Likewise.
22232 (__arm_vbicq_x_u32): Likewise.
22233 (__arm_vbrsrq_x_n_s8): Likewise.
22234 (__arm_vbrsrq_x_n_s16): Likewise.
22235 (__arm_vbrsrq_x_n_s32): Likewise.
22236 (__arm_vbrsrq_x_n_u8): Likewise.
22237 (__arm_vbrsrq_x_n_u16): Likewise.
22238 (__arm_vbrsrq_x_n_u32): Likewise.
22239 (__arm_veorq_x_s8): Likewise.
22240 (__arm_veorq_x_s16): Likewise.
22241 (__arm_veorq_x_s32): Likewise.
22242 (__arm_veorq_x_u8): Likewise.
22243 (__arm_veorq_x_u16): Likewise.
22244 (__arm_veorq_x_u32): Likewise.
22245 (__arm_vmovlbq_x_s8): Likewise.
22246 (__arm_vmovlbq_x_s16): Likewise.
22247 (__arm_vmovlbq_x_u8): Likewise.
22248 (__arm_vmovlbq_x_u16): Likewise.
22249 (__arm_vmovltq_x_s8): Likewise.
22250 (__arm_vmovltq_x_s16): Likewise.
22251 (__arm_vmovltq_x_u8): Likewise.
22252 (__arm_vmovltq_x_u16): Likewise.
22253 (__arm_vmvnq_x_s8): Likewise.
22254 (__arm_vmvnq_x_s16): Likewise.
22255 (__arm_vmvnq_x_s32): Likewise.
22256 (__arm_vmvnq_x_u8): Likewise.
22257 (__arm_vmvnq_x_u16): Likewise.
22258 (__arm_vmvnq_x_u32): Likewise.
22259 (__arm_vmvnq_x_n_s16): Likewise.
22260 (__arm_vmvnq_x_n_s32): Likewise.
22261 (__arm_vmvnq_x_n_u16): Likewise.
22262 (__arm_vmvnq_x_n_u32): Likewise.
22263 (__arm_vornq_x_s8): Likewise.
22264 (__arm_vornq_x_s16): Likewise.
22265 (__arm_vornq_x_s32): Likewise.
22266 (__arm_vornq_x_u8): Likewise.
22267 (__arm_vornq_x_u16): Likewise.
22268 (__arm_vornq_x_u32): Likewise.
22269 (__arm_vorrq_x_s8): Likewise.
22270 (__arm_vorrq_x_s16): Likewise.
22271 (__arm_vorrq_x_s32): Likewise.
22272 (__arm_vorrq_x_u8): Likewise.
22273 (__arm_vorrq_x_u16): Likewise.
22274 (__arm_vorrq_x_u32): Likewise.
22275 (__arm_vrev16q_x_s8): Likewise.
22276 (__arm_vrev16q_x_u8): Likewise.
22277 (__arm_vrev32q_x_s8): Likewise.
22278 (__arm_vrev32q_x_s16): Likewise.
22279 (__arm_vrev32q_x_u8): Likewise.
22280 (__arm_vrev32q_x_u16): Likewise.
22281 (__arm_vrev64q_x_s8): Likewise.
22282 (__arm_vrev64q_x_s16): Likewise.
22283 (__arm_vrev64q_x_s32): Likewise.
22284 (__arm_vrev64q_x_u8): Likewise.
22285 (__arm_vrev64q_x_u16): Likewise.
22286 (__arm_vrev64q_x_u32): Likewise.
22287 (__arm_vrshlq_x_s8): Likewise.
22288 (__arm_vrshlq_x_s16): Likewise.
22289 (__arm_vrshlq_x_s32): Likewise.
22290 (__arm_vrshlq_x_u8): Likewise.
22291 (__arm_vrshlq_x_u16): Likewise.
22292 (__arm_vrshlq_x_u32): Likewise.
22293 (__arm_vshllbq_x_n_s8): Likewise.
22294 (__arm_vshllbq_x_n_s16): Likewise.
22295 (__arm_vshllbq_x_n_u8): Likewise.
22296 (__arm_vshllbq_x_n_u16): Likewise.
22297 (__arm_vshlltq_x_n_s8): Likewise.
22298 (__arm_vshlltq_x_n_s16): Likewise.
22299 (__arm_vshlltq_x_n_u8): Likewise.
22300 (__arm_vshlltq_x_n_u16): Likewise.
22301 (__arm_vshlq_x_s8): Likewise.
22302 (__arm_vshlq_x_s16): Likewise.
22303 (__arm_vshlq_x_s32): Likewise.
22304 (__arm_vshlq_x_u8): Likewise.
22305 (__arm_vshlq_x_u16): Likewise.
22306 (__arm_vshlq_x_u32): Likewise.
22307 (__arm_vshlq_x_n_s8): Likewise.
22308 (__arm_vshlq_x_n_s16): Likewise.
22309 (__arm_vshlq_x_n_s32): Likewise.
22310 (__arm_vshlq_x_n_u8): Likewise.
22311 (__arm_vshlq_x_n_u16): Likewise.
22312 (__arm_vshlq_x_n_u32): Likewise.
22313 (__arm_vrshrq_x_n_s8): Likewise.
22314 (__arm_vrshrq_x_n_s16): Likewise.
22315 (__arm_vrshrq_x_n_s32): Likewise.
22316 (__arm_vrshrq_x_n_u8): Likewise.
22317 (__arm_vrshrq_x_n_u16): Likewise.
22318 (__arm_vrshrq_x_n_u32): Likewise.
22319 (__arm_vshrq_x_n_s8): Likewise.
22320 (__arm_vshrq_x_n_s16): Likewise.
22321 (__arm_vshrq_x_n_s32): Likewise.
22322 (__arm_vshrq_x_n_u8): Likewise.
22323 (__arm_vshrq_x_n_u16): Likewise.
22324 (__arm_vshrq_x_n_u32): Likewise.
22325 (__arm_vdupq_x_n_f16): Likewise.
22326 (__arm_vdupq_x_n_f32): Likewise.
22327 (__arm_vminnmq_x_f16): Likewise.
22328 (__arm_vminnmq_x_f32): Likewise.
22329 (__arm_vmaxnmq_x_f16): Likewise.
22330 (__arm_vmaxnmq_x_f32): Likewise.
22331 (__arm_vabdq_x_f16): Likewise.
22332 (__arm_vabdq_x_f32): Likewise.
22333 (__arm_vabsq_x_f16): Likewise.
22334 (__arm_vabsq_x_f32): Likewise.
22335 (__arm_vaddq_x_f16): Likewise.
22336 (__arm_vaddq_x_f32): Likewise.
22337 (__arm_vaddq_x_n_f16): Likewise.
22338 (__arm_vaddq_x_n_f32): Likewise.
22339 (__arm_vnegq_x_f16): Likewise.
22340 (__arm_vnegq_x_f32): Likewise.
22341 (__arm_vmulq_x_f16): Likewise.
22342 (__arm_vmulq_x_f32): Likewise.
22343 (__arm_vmulq_x_n_f16): Likewise.
22344 (__arm_vmulq_x_n_f32): Likewise.
22345 (__arm_vsubq_x_f16): Likewise.
22346 (__arm_vsubq_x_f32): Likewise.
22347 (__arm_vsubq_x_n_f16): Likewise.
22348 (__arm_vsubq_x_n_f32): Likewise.
22349 (__arm_vcaddq_rot90_x_f16): Likewise.
22350 (__arm_vcaddq_rot90_x_f32): Likewise.
22351 (__arm_vcaddq_rot270_x_f16): Likewise.
22352 (__arm_vcaddq_rot270_x_f32): Likewise.
22353 (__arm_vcmulq_x_f16): Likewise.
22354 (__arm_vcmulq_x_f32): Likewise.
22355 (__arm_vcmulq_rot90_x_f16): Likewise.
22356 (__arm_vcmulq_rot90_x_f32): Likewise.
22357 (__arm_vcmulq_rot180_x_f16): Likewise.
22358 (__arm_vcmulq_rot180_x_f32): Likewise.
22359 (__arm_vcmulq_rot270_x_f16): Likewise.
22360 (__arm_vcmulq_rot270_x_f32): Likewise.
22361 (__arm_vcvtaq_x_s16_f16): Likewise.
22362 (__arm_vcvtaq_x_s32_f32): Likewise.
22363 (__arm_vcvtaq_x_u16_f16): Likewise.
22364 (__arm_vcvtaq_x_u32_f32): Likewise.
22365 (__arm_vcvtnq_x_s16_f16): Likewise.
22366 (__arm_vcvtnq_x_s32_f32): Likewise.
22367 (__arm_vcvtnq_x_u16_f16): Likewise.
22368 (__arm_vcvtnq_x_u32_f32): Likewise.
22369 (__arm_vcvtpq_x_s16_f16): Likewise.
22370 (__arm_vcvtpq_x_s32_f32): Likewise.
22371 (__arm_vcvtpq_x_u16_f16): Likewise.
22372 (__arm_vcvtpq_x_u32_f32): Likewise.
22373 (__arm_vcvtmq_x_s16_f16): Likewise.
22374 (__arm_vcvtmq_x_s32_f32): Likewise.
22375 (__arm_vcvtmq_x_u16_f16): Likewise.
22376 (__arm_vcvtmq_x_u32_f32): Likewise.
22377 (__arm_vcvtbq_x_f32_f16): Likewise.
22378 (__arm_vcvttq_x_f32_f16): Likewise.
22379 (__arm_vcvtq_x_f16_u16): Likewise.
22380 (__arm_vcvtq_x_f16_s16): Likewise.
22381 (__arm_vcvtq_x_f32_s32): Likewise.
22382 (__arm_vcvtq_x_f32_u32): Likewise.
22383 (__arm_vcvtq_x_n_f16_s16): Likewise.
22384 (__arm_vcvtq_x_n_f16_u16): Likewise.
22385 (__arm_vcvtq_x_n_f32_s32): Likewise.
22386 (__arm_vcvtq_x_n_f32_u32): Likewise.
22387 (__arm_vcvtq_x_s16_f16): Likewise.
22388 (__arm_vcvtq_x_s32_f32): Likewise.
22389 (__arm_vcvtq_x_u16_f16): Likewise.
22390 (__arm_vcvtq_x_u32_f32): Likewise.
22391 (__arm_vcvtq_x_n_s16_f16): Likewise.
22392 (__arm_vcvtq_x_n_s32_f32): Likewise.
22393 (__arm_vcvtq_x_n_u16_f16): Likewise.
22394 (__arm_vcvtq_x_n_u32_f32): Likewise.
22395 (__arm_vrndq_x_f16): Likewise.
22396 (__arm_vrndq_x_f32): Likewise.
22397 (__arm_vrndnq_x_f16): Likewise.
22398 (__arm_vrndnq_x_f32): Likewise.
22399 (__arm_vrndmq_x_f16): Likewise.
22400 (__arm_vrndmq_x_f32): Likewise.
22401 (__arm_vrndpq_x_f16): Likewise.
22402 (__arm_vrndpq_x_f32): Likewise.
22403 (__arm_vrndaq_x_f16): Likewise.
22404 (__arm_vrndaq_x_f32): Likewise.
22405 (__arm_vrndxq_x_f16): Likewise.
22406 (__arm_vrndxq_x_f32): Likewise.
22407 (__arm_vandq_x_f16): Likewise.
22408 (__arm_vandq_x_f32): Likewise.
22409 (__arm_vbicq_x_f16): Likewise.
22410 (__arm_vbicq_x_f32): Likewise.
22411 (__arm_vbrsrq_x_n_f16): Likewise.
22412 (__arm_vbrsrq_x_n_f32): Likewise.
22413 (__arm_veorq_x_f16): Likewise.
22414 (__arm_veorq_x_f32): Likewise.
22415 (__arm_vornq_x_f16): Likewise.
22416 (__arm_vornq_x_f32): Likewise.
22417 (__arm_vorrq_x_f16): Likewise.
22418 (__arm_vorrq_x_f32): Likewise.
22419 (__arm_vrev32q_x_f16): Likewise.
22420 (__arm_vrev64q_x_f16): Likewise.
22421 (__arm_vrev64q_x_f32): Likewise.
22422 (vabdq_x): Define polymorphic variant.
22423 (vabsq_x): Likewise.
22424 (vaddq_x): Likewise.
22425 (vandq_x): Likewise.
22426 (vbicq_x): Likewise.
22427 (vbrsrq_x): Likewise.
22428 (vcaddq_rot270_x): Likewise.
22429 (vcaddq_rot90_x): Likewise.
22430 (vcmulq_rot180_x): Likewise.
22431 (vcmulq_rot270_x): Likewise.
22432 (vcmulq_x): Likewise.
22433 (vcvtq_x): Likewise.
22434 (vcvtq_x_n): Likewise.
22435 (vcvtnq_m): Likewise.
22436 (veorq_x): Likewise.
22437 (vmaxnmq_x): Likewise.
22438 (vminnmq_x): Likewise.
22439 (vmulq_x): Likewise.
22440 (vnegq_x): Likewise.
22441 (vornq_x): Likewise.
22442 (vorrq_x): Likewise.
22443 (vrev32q_x): Likewise.
22444 (vrev64q_x): Likewise.
22445 (vrndaq_x): Likewise.
22446 (vrndmq_x): Likewise.
22447 (vrndnq_x): Likewise.
22448 (vrndpq_x): Likewise.
22449 (vrndq_x): Likewise.
22450 (vrndxq_x): Likewise.
22451 (vsubq_x): Likewise.
22452 (vcmulq_rot90_x): Likewise.
22453 (vadciq): Likewise.
22454 (vclsq_x): Likewise.
22455 (vclzq_x): Likewise.
22456 (vhaddq_x): Likewise.
22457 (vhcaddq_rot270_x): Likewise.
22458 (vhcaddq_rot90_x): Likewise.
22459 (vhsubq_x): Likewise.
22460 (vmaxq_x): Likewise.
22461 (vminq_x): Likewise.
22462 (vmovlbq_x): Likewise.
22463 (vmovltq_x): Likewise.
22464 (vmulhq_x): Likewise.
22465 (vmullbq_int_x): Likewise.
22466 (vmullbq_poly_x): Likewise.
22467 (vmulltq_int_x): Likewise.
22468 (vmulltq_poly_x): Likewise.
22469 (vmvnq_x): Likewise.
22470 (vrev16q_x): Likewise.
22471 (vrhaddq_x): Likewise.
22472 (vrmulhq_x): Likewise.
22473 (vrshlq_x): Likewise.
22474 (vrshrq_x): Likewise.
22475 (vshllbq_x): Likewise.
22476 (vshlltq_x): Likewise.
22477 (vshlq_x_n): Likewise.
22478 (vshlq_x): Likewise.
22479 (vdwdupq_x_u8): Likewise.
22480 (vdwdupq_x_u16): Likewise.
22481 (vdwdupq_x_u32): Likewise.
22482 (viwdupq_x_u8): Likewise.
22483 (viwdupq_x_u16): Likewise.
22484 (viwdupq_x_u32): Likewise.
22485 (vidupq_x_u8): Likewise.
22486 (vddupq_x_u8): Likewise.
22487 (vidupq_x_u16): Likewise.
22488 (vddupq_x_u16): Likewise.
22489 (vidupq_x_u32): Likewise.
22490 (vddupq_x_u32): Likewise.
22491 (vshrq_x): Likewise.
22493 2020-03-20 Richard Biener <rguenther@suse.de>
22495 * tree-vect-slp.c (vect_analyze_slp_instance): Push the stmts
22496 to vectorize for CTOR defs.
22498 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22499 Andre Vieira <andre.simoesdiasvieira@arm.com>
22500 Mihail Ionescu <mihail.ionescu@arm.com>
22502 * config/arm/arm-builtins.c (LDRGBWBS_QUALIFIERS): Define builtin
22504 (LDRGBWBU_QUALIFIERS): Likewise.
22505 (LDRGBWBS_Z_QUALIFIERS): Likewise.
22506 (LDRGBWBU_Z_QUALIFIERS): Likewise.
22507 (STRSBWBS_QUALIFIERS): Likewise.
22508 (STRSBWBU_QUALIFIERS): Likewise.
22509 (STRSBWBS_P_QUALIFIERS): Likewise.
22510 (STRSBWBU_P_QUALIFIERS): Likewise.
22511 * config/arm/arm_mve.h (vldrdq_gather_base_wb_s64): Define macro.
22512 (vldrdq_gather_base_wb_u64): Likewise.
22513 (vldrdq_gather_base_wb_z_s64): Likewise.
22514 (vldrdq_gather_base_wb_z_u64): Likewise.
22515 (vldrwq_gather_base_wb_f32): Likewise.
22516 (vldrwq_gather_base_wb_s32): Likewise.
22517 (vldrwq_gather_base_wb_u32): Likewise.
22518 (vldrwq_gather_base_wb_z_f32): Likewise.
22519 (vldrwq_gather_base_wb_z_s32): Likewise.
22520 (vldrwq_gather_base_wb_z_u32): Likewise.
22521 (vstrdq_scatter_base_wb_p_s64): Likewise.
22522 (vstrdq_scatter_base_wb_p_u64): Likewise.
22523 (vstrdq_scatter_base_wb_s64): Likewise.
22524 (vstrdq_scatter_base_wb_u64): Likewise.
22525 (vstrwq_scatter_base_wb_p_s32): Likewise.
22526 (vstrwq_scatter_base_wb_p_f32): Likewise.
22527 (vstrwq_scatter_base_wb_p_u32): Likewise.
22528 (vstrwq_scatter_base_wb_s32): Likewise.
22529 (vstrwq_scatter_base_wb_u32): Likewise.
22530 (vstrwq_scatter_base_wb_f32): Likewise.
22531 (__arm_vldrdq_gather_base_wb_s64): Define intrinsic.
22532 (__arm_vldrdq_gather_base_wb_u64): Likewise.
22533 (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
22534 (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
22535 (__arm_vldrwq_gather_base_wb_s32): Likewise.
22536 (__arm_vldrwq_gather_base_wb_u32): Likewise.
22537 (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
22538 (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
22539 (__arm_vstrdq_scatter_base_wb_s64): Likewise.
22540 (__arm_vstrdq_scatter_base_wb_u64): Likewise.
22541 (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
22542 (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
22543 (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
22544 (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
22545 (__arm_vstrwq_scatter_base_wb_s32): Likewise.
22546 (__arm_vstrwq_scatter_base_wb_u32): Likewise.
22547 (__arm_vldrwq_gather_base_wb_f32): Likewise.
22548 (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
22549 (__arm_vstrwq_scatter_base_wb_f32): Likewise.
22550 (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
22551 (vstrwq_scatter_base_wb): Define polymorphic variant.
22552 (vstrwq_scatter_base_wb_p): Likewise.
22553 (vstrdq_scatter_base_wb_p): Likewise.
22554 (vstrdq_scatter_base_wb): Likewise.
22555 * config/arm/arm_mve_builtins.def (LDRGBWBS_QUALIFIERS): Use builtin
22557 * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Define RTL
22559 (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
22560 (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Likewise.
22561 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Likewise.
22562 (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
22563 (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Likewise.
22564 (mve_vstrwq_scatter_base_wb_fv4sf): Likewise.
22565 (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
22566 (mve_vstrwq_scatter_base_wb_fv4sf_insn): Likewise.
22567 (mve_vstrwq_scatter_base_wb_p_fv4sf): Likewise.
22568 (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
22569 (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Likewise.
22570 (mve_vstrdq_scatter_base_wb_<supf>v2di): Likewise.
22571 (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
22572 (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Likewise.
22573 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Likewise.
22574 (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
22575 (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Likewise.
22576 (mve_vldrwq_gather_base_wb_<supf>v4si): Likewise.
22577 (mve_vldrwq_gather_base_wb_<supf>v4si_insn): Likewise.
22578 (mve_vldrwq_gather_base_wb_z_<supf>v4si): Likewise.
22579 (mve_vldrwq_gather_base_wb_z_<supf>v4si_insn): Likewise.
22580 (mve_vldrwq_gather_base_wb_fv4sf): Likewise.
22581 (mve_vldrwq_gather_base_wb_fv4sf_insn): Likewise.
22582 (mve_vldrwq_gather_base_wb_z_fv4sf): Likewise.
22583 (mve_vldrwq_gather_base_wb_z_fv4sf_insn): Likewise.
22584 (mve_vldrdq_gather_base_wb_<supf>v2di): Likewise.
22585 (mve_vldrdq_gather_base_wb_<supf>v2di_insn): Likewise.
22586 (mve_vldrdq_gather_base_wb_z_<supf>v2di): Likewise.
22587 (mve_vldrdq_gather_base_wb_z_<supf>v2di_insn): Likewise.
22589 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22590 Andre Vieira <andre.simoesdiasvieira@arm.com>
22591 Mihail Ionescu <mihail.ionescu@arm.com>
22593 * config/arm/arm-builtins.c
22594 (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Define quinary
22596 * config/arm/arm_mve.h (vddupq_m_n_u8): Define macro.
22597 (vddupq_m_n_u32): Likewise.
22598 (vddupq_m_n_u16): Likewise.
22599 (vddupq_m_wb_u8): Likewise.
22600 (vddupq_m_wb_u16): Likewise.
22601 (vddupq_m_wb_u32): Likewise.
22602 (vddupq_n_u8): Likewise.
22603 (vddupq_n_u32): Likewise.
22604 (vddupq_n_u16): Likewise.
22605 (vddupq_wb_u8): Likewise.
22606 (vddupq_wb_u16): Likewise.
22607 (vddupq_wb_u32): Likewise.
22608 (vdwdupq_m_n_u8): Likewise.
22609 (vdwdupq_m_n_u32): Likewise.
22610 (vdwdupq_m_n_u16): Likewise.
22611 (vdwdupq_m_wb_u8): Likewise.
22612 (vdwdupq_m_wb_u32): Likewise.
22613 (vdwdupq_m_wb_u16): Likewise.
22614 (vdwdupq_n_u8): Likewise.
22615 (vdwdupq_n_u32): Likewise.
22616 (vdwdupq_n_u16): Likewise.
22617 (vdwdupq_wb_u8): Likewise.
22618 (vdwdupq_wb_u32): Likewise.
22619 (vdwdupq_wb_u16): Likewise.
22620 (vidupq_m_n_u8): Likewise.
22621 (vidupq_m_n_u32): Likewise.
22622 (vidupq_m_n_u16): Likewise.
22623 (vidupq_m_wb_u8): Likewise.
22624 (vidupq_m_wb_u16): Likewise.
22625 (vidupq_m_wb_u32): Likewise.
22626 (vidupq_n_u8): Likewise.
22627 (vidupq_n_u32): Likewise.
22628 (vidupq_n_u16): Likewise.
22629 (vidupq_wb_u8): Likewise.
22630 (vidupq_wb_u16): Likewise.
22631 (vidupq_wb_u32): Likewise.
22632 (viwdupq_m_n_u8): Likewise.
22633 (viwdupq_m_n_u32): Likewise.
22634 (viwdupq_m_n_u16): Likewise.
22635 (viwdupq_m_wb_u8): Likewise.
22636 (viwdupq_m_wb_u32): Likewise.
22637 (viwdupq_m_wb_u16): Likewise.
22638 (viwdupq_n_u8): Likewise.
22639 (viwdupq_n_u32): Likewise.
22640 (viwdupq_n_u16): Likewise.
22641 (viwdupq_wb_u8): Likewise.
22642 (viwdupq_wb_u32): Likewise.
22643 (viwdupq_wb_u16): Likewise.
22644 (__arm_vddupq_m_n_u8): Define intrinsic.
22645 (__arm_vddupq_m_n_u32): Likewise.
22646 (__arm_vddupq_m_n_u16): Likewise.
22647 (__arm_vddupq_m_wb_u8): Likewise.
22648 (__arm_vddupq_m_wb_u16): Likewise.
22649 (__arm_vddupq_m_wb_u32): Likewise.
22650 (__arm_vddupq_n_u8): Likewise.
22651 (__arm_vddupq_n_u32): Likewise.
22652 (__arm_vddupq_n_u16): Likewise.
22653 (__arm_vdwdupq_m_n_u8): Likewise.
22654 (__arm_vdwdupq_m_n_u32): Likewise.
22655 (__arm_vdwdupq_m_n_u16): Likewise.
22656 (__arm_vdwdupq_m_wb_u8): Likewise.
22657 (__arm_vdwdupq_m_wb_u32): Likewise.
22658 (__arm_vdwdupq_m_wb_u16): Likewise.
22659 (__arm_vdwdupq_n_u8): Likewise.
22660 (__arm_vdwdupq_n_u32): Likewise.
22661 (__arm_vdwdupq_n_u16): Likewise.
22662 (__arm_vdwdupq_wb_u8): Likewise.
22663 (__arm_vdwdupq_wb_u32): Likewise.
22664 (__arm_vdwdupq_wb_u16): Likewise.
22665 (__arm_vidupq_m_n_u8): Likewise.
22666 (__arm_vidupq_m_n_u32): Likewise.
22667 (__arm_vidupq_m_n_u16): Likewise.
22668 (__arm_vidupq_n_u8): Likewise.
22669 (__arm_vidupq_m_wb_u8): Likewise.
22670 (__arm_vidupq_m_wb_u16): Likewise.
22671 (__arm_vidupq_m_wb_u32): Likewise.
22672 (__arm_vidupq_n_u32): Likewise.
22673 (__arm_vidupq_n_u16): Likewise.
22674 (__arm_vidupq_wb_u8): Likewise.
22675 (__arm_vidupq_wb_u16): Likewise.
22676 (__arm_vidupq_wb_u32): Likewise.
22677 (__arm_vddupq_wb_u8): Likewise.
22678 (__arm_vddupq_wb_u16): Likewise.
22679 (__arm_vddupq_wb_u32): Likewise.
22680 (__arm_viwdupq_m_n_u8): Likewise.
22681 (__arm_viwdupq_m_n_u32): Likewise.
22682 (__arm_viwdupq_m_n_u16): Likewise.
22683 (__arm_viwdupq_m_wb_u8): Likewise.
22684 (__arm_viwdupq_m_wb_u32): Likewise.
22685 (__arm_viwdupq_m_wb_u16): Likewise.
22686 (__arm_viwdupq_n_u8): Likewise.
22687 (__arm_viwdupq_n_u32): Likewise.
22688 (__arm_viwdupq_n_u16): Likewise.
22689 (__arm_viwdupq_wb_u8): Likewise.
22690 (__arm_viwdupq_wb_u32): Likewise.
22691 (__arm_viwdupq_wb_u16): Likewise.
22692 (vidupq_m): Define polymorphic variant.
22693 (vddupq_m): Likewise.
22694 (vidupq_u16): Likewise.
22695 (vidupq_u32): Likewise.
22696 (vidupq_u8): Likewise.
22697 (vddupq_u16): Likewise.
22698 (vddupq_u32): Likewise.
22699 (vddupq_u8): Likewise.
22700 (viwdupq_m): Likewise.
22701 (viwdupq_u16): Likewise.
22702 (viwdupq_u32): Likewise.
22703 (viwdupq_u8): Likewise.
22704 (vdwdupq_m): Likewise.
22705 (vdwdupq_u16): Likewise.
22706 (vdwdupq_u32): Likewise.
22707 (vdwdupq_u8): Likewise.
22708 * config/arm/arm_mve_builtins.def
22709 (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Use builtin
22711 * config/arm/mve.md (mve_vidupq_n_u<mode>): Define RTL pattern.
22712 (mve_vidupq_u<mode>_insn): Likewise.
22713 (mve_vidupq_m_n_u<mode>): Likewise.
22714 (mve_vidupq_m_wb_u<mode>_insn): Likewise.
22715 (mve_vddupq_n_u<mode>): Likewise.
22716 (mve_vddupq_u<mode>_insn): Likewise.
22717 (mve_vddupq_m_n_u<mode>): Likewise.
22718 (mve_vddupq_m_wb_u<mode>_insn): Likewise.
22719 (mve_vdwdupq_n_u<mode>): Likewise.
22720 (mve_vdwdupq_wb_u<mode>): Likewise.
22721 (mve_vdwdupq_wb_u<mode>_insn): Likewise.
22722 (mve_vdwdupq_m_n_u<mode>): Likewise.
22723 (mve_vdwdupq_m_wb_u<mode>): Likewise.
22724 (mve_vdwdupq_m_wb_u<mode>_insn): Likewise.
22725 (mve_viwdupq_n_u<mode>): Likewise.
22726 (mve_viwdupq_wb_u<mode>): Likewise.
22727 (mve_viwdupq_wb_u<mode>_insn): Likewise.
22728 (mve_viwdupq_m_n_u<mode>): Likewise.
22729 (mve_viwdupq_m_wb_u<mode>): Likewise.
22730 (mve_viwdupq_m_wb_u<mode>_insn): Likewise.
22732 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22734 * config/arm/arm_mve.h (vreinterpretq_s16_s32): Define macro.
22735 (vreinterpretq_s16_s64): Likewise.
22736 (vreinterpretq_s16_s8): Likewise.
22737 (vreinterpretq_s16_u16): Likewise.
22738 (vreinterpretq_s16_u32): Likewise.
22739 (vreinterpretq_s16_u64): Likewise.
22740 (vreinterpretq_s16_u8): Likewise.
22741 (vreinterpretq_s32_s16): Likewise.
22742 (vreinterpretq_s32_s64): Likewise.
22743 (vreinterpretq_s32_s8): Likewise.
22744 (vreinterpretq_s32_u16): Likewise.
22745 (vreinterpretq_s32_u32): Likewise.
22746 (vreinterpretq_s32_u64): Likewise.
22747 (vreinterpretq_s32_u8): Likewise.
22748 (vreinterpretq_s64_s16): Likewise.
22749 (vreinterpretq_s64_s32): Likewise.
22750 (vreinterpretq_s64_s8): Likewise.
22751 (vreinterpretq_s64_u16): Likewise.
22752 (vreinterpretq_s64_u32): Likewise.
22753 (vreinterpretq_s64_u64): Likewise.
22754 (vreinterpretq_s64_u8): Likewise.
22755 (vreinterpretq_s8_s16): Likewise.
22756 (vreinterpretq_s8_s32): Likewise.
22757 (vreinterpretq_s8_s64): Likewise.
22758 (vreinterpretq_s8_u16): Likewise.
22759 (vreinterpretq_s8_u32): Likewise.
22760 (vreinterpretq_s8_u64): Likewise.
22761 (vreinterpretq_s8_u8): Likewise.
22762 (vreinterpretq_u16_s16): Likewise.
22763 (vreinterpretq_u16_s32): Likewise.
22764 (vreinterpretq_u16_s64): Likewise.
22765 (vreinterpretq_u16_s8): Likewise.
22766 (vreinterpretq_u16_u32): Likewise.
22767 (vreinterpretq_u16_u64): Likewise.
22768 (vreinterpretq_u16_u8): Likewise.
22769 (vreinterpretq_u32_s16): Likewise.
22770 (vreinterpretq_u32_s32): Likewise.
22771 (vreinterpretq_u32_s64): Likewise.
22772 (vreinterpretq_u32_s8): Likewise.
22773 (vreinterpretq_u32_u16): Likewise.
22774 (vreinterpretq_u32_u64): Likewise.
22775 (vreinterpretq_u32_u8): Likewise.
22776 (vreinterpretq_u64_s16): Likewise.
22777 (vreinterpretq_u64_s32): Likewise.
22778 (vreinterpretq_u64_s64): Likewise.
22779 (vreinterpretq_u64_s8): Likewise.
22780 (vreinterpretq_u64_u16): Likewise.
22781 (vreinterpretq_u64_u32): Likewise.
22782 (vreinterpretq_u64_u8): Likewise.
22783 (vreinterpretq_u8_s16): Likewise.
22784 (vreinterpretq_u8_s32): Likewise.
22785 (vreinterpretq_u8_s64): Likewise.
22786 (vreinterpretq_u8_s8): Likewise.
22787 (vreinterpretq_u8_u16): Likewise.
22788 (vreinterpretq_u8_u32): Likewise.
22789 (vreinterpretq_u8_u64): Likewise.
22790 (vreinterpretq_s32_f16): Likewise.
22791 (vreinterpretq_s32_f32): Likewise.
22792 (vreinterpretq_u16_f16): Likewise.
22793 (vreinterpretq_u16_f32): Likewise.
22794 (vreinterpretq_u32_f16): Likewise.
22795 (vreinterpretq_u32_f32): Likewise.
22796 (vreinterpretq_u64_f16): Likewise.
22797 (vreinterpretq_u64_f32): Likewise.
22798 (vreinterpretq_u8_f16): Likewise.
22799 (vreinterpretq_u8_f32): Likewise.
22800 (vreinterpretq_f16_f32): Likewise.
22801 (vreinterpretq_f16_s16): Likewise.
22802 (vreinterpretq_f16_s32): Likewise.
22803 (vreinterpretq_f16_s64): Likewise.
22804 (vreinterpretq_f16_s8): Likewise.
22805 (vreinterpretq_f16_u16): Likewise.
22806 (vreinterpretq_f16_u32): Likewise.
22807 (vreinterpretq_f16_u64): Likewise.
22808 (vreinterpretq_f16_u8): Likewise.
22809 (vreinterpretq_f32_f16): Likewise.
22810 (vreinterpretq_f32_s16): Likewise.
22811 (vreinterpretq_f32_s32): Likewise.
22812 (vreinterpretq_f32_s64): Likewise.
22813 (vreinterpretq_f32_s8): Likewise.
22814 (vreinterpretq_f32_u16): Likewise.
22815 (vreinterpretq_f32_u32): Likewise.
22816 (vreinterpretq_f32_u64): Likewise.
22817 (vreinterpretq_f32_u8): Likewise.
22818 (vreinterpretq_s16_f16): Likewise.
22819 (vreinterpretq_s16_f32): Likewise.
22820 (vreinterpretq_s64_f16): Likewise.
22821 (vreinterpretq_s64_f32): Likewise.
22822 (vreinterpretq_s8_f16): Likewise.
22823 (vreinterpretq_s8_f32): Likewise.
22824 (vuninitializedq_u8): Likewise.
22825 (vuninitializedq_u16): Likewise.
22826 (vuninitializedq_u32): Likewise.
22827 (vuninitializedq_u64): Likewise.
22828 (vuninitializedq_s8): Likewise.
22829 (vuninitializedq_s16): Likewise.
22830 (vuninitializedq_s32): Likewise.
22831 (vuninitializedq_s64): Likewise.
22832 (vuninitializedq_f16): Likewise.
22833 (vuninitializedq_f32): Likewise.
22834 (__arm_vuninitializedq_u8): Define intrinsic.
22835 (__arm_vuninitializedq_u16): Likewise.
22836 (__arm_vuninitializedq_u32): Likewise.
22837 (__arm_vuninitializedq_u64): Likewise.
22838 (__arm_vuninitializedq_s8): Likewise.
22839 (__arm_vuninitializedq_s16): Likewise.
22840 (__arm_vuninitializedq_s32): Likewise.
22841 (__arm_vuninitializedq_s64): Likewise.
22842 (__arm_vreinterpretq_s16_s32): Likewise.
22843 (__arm_vreinterpretq_s16_s64): Likewise.
22844 (__arm_vreinterpretq_s16_s8): Likewise.
22845 (__arm_vreinterpretq_s16_u16): Likewise.
22846 (__arm_vreinterpretq_s16_u32): Likewise.
22847 (__arm_vreinterpretq_s16_u64): Likewise.
22848 (__arm_vreinterpretq_s16_u8): Likewise.
22849 (__arm_vreinterpretq_s32_s16): Likewise.
22850 (__arm_vreinterpretq_s32_s64): Likewise.
22851 (__arm_vreinterpretq_s32_s8): Likewise.
22852 (__arm_vreinterpretq_s32_u16): Likewise.
22853 (__arm_vreinterpretq_s32_u32): Likewise.
22854 (__arm_vreinterpretq_s32_u64): Likewise.
22855 (__arm_vreinterpretq_s32_u8): Likewise.
22856 (__arm_vreinterpretq_s64_s16): Likewise.
22857 (__arm_vreinterpretq_s64_s32): Likewise.
22858 (__arm_vreinterpretq_s64_s8): Likewise.
22859 (__arm_vreinterpretq_s64_u16): Likewise.
22860 (__arm_vreinterpretq_s64_u32): Likewise.
22861 (__arm_vreinterpretq_s64_u64): Likewise.
22862 (__arm_vreinterpretq_s64_u8): Likewise.
22863 (__arm_vreinterpretq_s8_s16): Likewise.
22864 (__arm_vreinterpretq_s8_s32): Likewise.
22865 (__arm_vreinterpretq_s8_s64): Likewise.
22866 (__arm_vreinterpretq_s8_u16): Likewise.
22867 (__arm_vreinterpretq_s8_u32): Likewise.
22868 (__arm_vreinterpretq_s8_u64): Likewise.
22869 (__arm_vreinterpretq_s8_u8): Likewise.
22870 (__arm_vreinterpretq_u16_s16): Likewise.
22871 (__arm_vreinterpretq_u16_s32): Likewise.
22872 (__arm_vreinterpretq_u16_s64): Likewise.
22873 (__arm_vreinterpretq_u16_s8): Likewise.
22874 (__arm_vreinterpretq_u16_u32): Likewise.
22875 (__arm_vreinterpretq_u16_u64): Likewise.
22876 (__arm_vreinterpretq_u16_u8): Likewise.
22877 (__arm_vreinterpretq_u32_s16): Likewise.
22878 (__arm_vreinterpretq_u32_s32): Likewise.
22879 (__arm_vreinterpretq_u32_s64): Likewise.
22880 (__arm_vreinterpretq_u32_s8): Likewise.
22881 (__arm_vreinterpretq_u32_u16): Likewise.
22882 (__arm_vreinterpretq_u32_u64): Likewise.
22883 (__arm_vreinterpretq_u32_u8): Likewise.
22884 (__arm_vreinterpretq_u64_s16): Likewise.
22885 (__arm_vreinterpretq_u64_s32): Likewise.
22886 (__arm_vreinterpretq_u64_s64): Likewise.
22887 (__arm_vreinterpretq_u64_s8): Likewise.
22888 (__arm_vreinterpretq_u64_u16): Likewise.
22889 (__arm_vreinterpretq_u64_u32): Likewise.
22890 (__arm_vreinterpretq_u64_u8): Likewise.
22891 (__arm_vreinterpretq_u8_s16): Likewise.
22892 (__arm_vreinterpretq_u8_s32): Likewise.
22893 (__arm_vreinterpretq_u8_s64): Likewise.
22894 (__arm_vreinterpretq_u8_s8): Likewise.
22895 (__arm_vreinterpretq_u8_u16): Likewise.
22896 (__arm_vreinterpretq_u8_u32): Likewise.
22897 (__arm_vreinterpretq_u8_u64): Likewise.
22898 (__arm_vuninitializedq_f16): Likewise.
22899 (__arm_vuninitializedq_f32): Likewise.
22900 (__arm_vreinterpretq_s32_f16): Likewise.
22901 (__arm_vreinterpretq_s32_f32): Likewise.
22902 (__arm_vreinterpretq_s16_f16): Likewise.
22903 (__arm_vreinterpretq_s16_f32): Likewise.
22904 (__arm_vreinterpretq_s64_f16): Likewise.
22905 (__arm_vreinterpretq_s64_f32): Likewise.
22906 (__arm_vreinterpretq_s8_f16): Likewise.
22907 (__arm_vreinterpretq_s8_f32): Likewise.
22908 (__arm_vreinterpretq_u16_f16): Likewise.
22909 (__arm_vreinterpretq_u16_f32): Likewise.
22910 (__arm_vreinterpretq_u32_f16): Likewise.
22911 (__arm_vreinterpretq_u32_f32): Likewise.
22912 (__arm_vreinterpretq_u64_f16): Likewise.
22913 (__arm_vreinterpretq_u64_f32): Likewise.
22914 (__arm_vreinterpretq_u8_f16): Likewise.
22915 (__arm_vreinterpretq_u8_f32): Likewise.
22916 (__arm_vreinterpretq_f16_f32): Likewise.
22917 (__arm_vreinterpretq_f16_s16): Likewise.
22918 (__arm_vreinterpretq_f16_s32): Likewise.
22919 (__arm_vreinterpretq_f16_s64): Likewise.
22920 (__arm_vreinterpretq_f16_s8): Likewise.
22921 (__arm_vreinterpretq_f16_u16): Likewise.
22922 (__arm_vreinterpretq_f16_u32): Likewise.
22923 (__arm_vreinterpretq_f16_u64): Likewise.
22924 (__arm_vreinterpretq_f16_u8): Likewise.
22925 (__arm_vreinterpretq_f32_f16): Likewise.
22926 (__arm_vreinterpretq_f32_s16): Likewise.
22927 (__arm_vreinterpretq_f32_s32): Likewise.
22928 (__arm_vreinterpretq_f32_s64): Likewise.
22929 (__arm_vreinterpretq_f32_s8): Likewise.
22930 (__arm_vreinterpretq_f32_u16): Likewise.
22931 (__arm_vreinterpretq_f32_u32): Likewise.
22932 (__arm_vreinterpretq_f32_u64): Likewise.
22933 (__arm_vreinterpretq_f32_u8): Likewise.
22934 (vuninitializedq): Define polymorphic variant.
22935 (vreinterpretq_f16): Likewise.
22936 (vreinterpretq_f32): Likewise.
22937 (vreinterpretq_s16): Likewise.
22938 (vreinterpretq_s32): Likewise.
22939 (vreinterpretq_s64): Likewise.
22940 (vreinterpretq_s8): Likewise.
22941 (vreinterpretq_u16): Likewise.
22942 (vreinterpretq_u32): Likewise.
22943 (vreinterpretq_u64): Likewise.
22944 (vreinterpretq_u8): Likewise.
22946 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22947 Andre Vieira <andre.simoesdiasvieira@arm.com>
22948 Mihail Ionescu <mihail.ionescu@arm.com>
22950 * config/arm/arm_mve.h (vaddq_s8): Define macro.
22951 (vaddq_s16): Likewise.
22952 (vaddq_s32): Likewise.
22953 (vaddq_u8): Likewise.
22954 (vaddq_u16): Likewise.
22955 (vaddq_u32): Likewise.
22956 (vaddq_f16): Likewise.
22957 (vaddq_f32): Likewise.
22958 (__arm_vaddq_s8): Define intrinsic.
22959 (__arm_vaddq_s16): Likewise.
22960 (__arm_vaddq_s32): Likewise.
22961 (__arm_vaddq_u8): Likewise.
22962 (__arm_vaddq_u16): Likewise.
22963 (__arm_vaddq_u32): Likewise.
22964 (__arm_vaddq_f16): Likewise.
22965 (__arm_vaddq_f32): Likewise.
22966 (vaddq): Define polymorphic variant.
22967 * config/arm/iterators.md (VNIM): Define mode iterator for common types
22968 Neon, IWMMXT and MVE.
22969 (VNINOTM): Likewise.
22970 * config/arm/mve.md (mve_vaddq<mode>): Define RTL pattern.
22971 (mve_vaddq_f<mode>): Define RTL pattern.
22972 * config/arm/neon.md (add<mode>3): Rename to addv4hf3 RTL pattern.
22973 (addv8hf3_neon): Define RTL pattern.
22974 * config/arm/vec-common.md (add<mode>3): Modify standard add RTL pattern
22976 (addv8hf3): Define standard RTL pattern for MVE and Neon.
22977 (add<mode>3): Modify existing standard add RTL pattern for Neon and IWMMXT.
22979 2020-03-20 Martin Liska <mliska@suse.cz>
22982 * ipa-cp.c (ipa_get_jf_ancestor_result): Use offset in bytes. Previously
22983 build_ref_for_offset function was used and it transforms off to bytes
22986 2020-03-20 Richard Biener <rguenther@suse.de>
22988 PR tree-optimization/94266
22989 * gimple-ssa-sprintf.c (get_origin_and_offset): Use the
22990 type of the underlying object to adjust for the containing
22991 field if available.
22993 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22995 * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Rename this to ...
22996 (VUNSPEC_GET_FPSCR): ... this, and move it to vunspec.
22997 * config/arm/vfp.md: (get_fpscr, set_fpscr): Revert to old patterns.
22999 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23001 * config/arm/mve.md (mve_mov<mode>): Fix R->R case.
23003 2020-03-20 Jakub Jelinek <jakub@redhat.com>
23005 PR tree-optimization/94224
23006 * gimple-ssa-store-merging.c
23007 (imm_store_chain_info::coalesce_immediate): Don't consider overlapping
23008 or adjacent INTEGER_CST rhs_code stores as mergeable if they have
23011 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
23013 * config/arm/arm.md (define_attr "conds"): Fix logic for neon and mve.
23015 2020-03-19 Jan Hubicka <hubicka@ucw.cz>
23018 * cgraph.c (cgraph_node::function_symbol): Fix availability computation.
23019 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
23021 2020-03-19 Jan Hubicka <hubicka@ucw.cz>
23024 * cgraphunit.c (process_function_and_variable_attributes): warn
23025 for flatten attribute on alias.
23026 * ipa-inline.c (ipa_inline): Do not ICE on flatten attribute on alias.
23028 2020-03-19 Martin Liska <mliska@suse.cz>
23030 * lto-section-in.c: Add ext_symtab.
23031 * lto-streamer-out.c (write_symbol_extension_info): New.
23032 (produce_symtab_extension): New.
23033 (produce_asm_for_decls): Stream also produce_symtab_extension.
23034 * lto-streamer.h (enum lto_section_type): New section.
23036 2020-03-19 Jakub Jelinek <jakub@redhat.com>
23038 PR tree-optimization/94211
23039 * tree-ssa-phiopt.c (value_replacement): Use estimate_num_insns_seq
23040 instead of estimate_num_insns for bb_seq (middle_bb). Rename
23041 emtpy_or_with_defined_p variable to empty_or_with_defined_p, adjust
23044 2020-03-19 Richard Biener <rguenther@suse.de>
23047 * ipa-cp.c (ipa_get_jf_ancestor_result): Avoid build_fold_addr_expr
23048 and build_ref_for_offset.
23050 2020-03-19 Richard Biener <rguenther@suse.de>
23052 PR middle-end/94216
23053 * fold-const.c (fold_binary_loc): Avoid using
23054 build_fold_addr_expr when we really want an ADDR_EXPR.
23056 2020-03-18 Segher Boessenkool <segher@kernel.crashing.org>
23058 * config/rs6000/constraints.md (wd, wf, wi, ws, ww): New undocumented
23061 2020-03-12 Richard Sandiford <richard.sandiford@arm.com>
23063 PR rtl-optimization/90275
23064 * cse.c (cse_insn): Delete no-op register moves too.
23066 2020-03-18 Martin Sebor <msebor@redhat.com>
23069 * cgraphunit.c (process_function_and_variable_attributes): Also
23070 complain about weakref function definitions and drop all effects
23073 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23074 Mihail Ionescu <mihail.ionescu@arm.com>
23075 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23077 * config/arm/arm_mve.h (vstrdq_scatter_base_p_s64): Define macro.
23078 (vstrdq_scatter_base_p_u64): Likewise.
23079 (vstrdq_scatter_base_s64): Likewise.
23080 (vstrdq_scatter_base_u64): Likewise.
23081 (vstrdq_scatter_offset_p_s64): Likewise.
23082 (vstrdq_scatter_offset_p_u64): Likewise.
23083 (vstrdq_scatter_offset_s64): Likewise.
23084 (vstrdq_scatter_offset_u64): Likewise.
23085 (vstrdq_scatter_shifted_offset_p_s64): Likewise.
23086 (vstrdq_scatter_shifted_offset_p_u64): Likewise.
23087 (vstrdq_scatter_shifted_offset_s64): Likewise.
23088 (vstrdq_scatter_shifted_offset_u64): Likewise.
23089 (vstrhq_scatter_offset_f16): Likewise.
23090 (vstrhq_scatter_offset_p_f16): Likewise.
23091 (vstrhq_scatter_shifted_offset_f16): Likewise.
23092 (vstrhq_scatter_shifted_offset_p_f16): Likewise.
23093 (vstrwq_scatter_base_f32): Likewise.
23094 (vstrwq_scatter_base_p_f32): Likewise.
23095 (vstrwq_scatter_offset_f32): Likewise.
23096 (vstrwq_scatter_offset_p_f32): Likewise.
23097 (vstrwq_scatter_offset_p_s32): Likewise.
23098 (vstrwq_scatter_offset_p_u32): Likewise.
23099 (vstrwq_scatter_offset_s32): Likewise.
23100 (vstrwq_scatter_offset_u32): Likewise.
23101 (vstrwq_scatter_shifted_offset_f32): Likewise.
23102 (vstrwq_scatter_shifted_offset_p_f32): Likewise.
23103 (vstrwq_scatter_shifted_offset_p_s32): Likewise.
23104 (vstrwq_scatter_shifted_offset_p_u32): Likewise.
23105 (vstrwq_scatter_shifted_offset_s32): Likewise.
23106 (vstrwq_scatter_shifted_offset_u32): Likewise.
23107 (__arm_vstrdq_scatter_base_p_s64): Define intrinsic.
23108 (__arm_vstrdq_scatter_base_p_u64): Likewise.
23109 (__arm_vstrdq_scatter_base_s64): Likewise.
23110 (__arm_vstrdq_scatter_base_u64): Likewise.
23111 (__arm_vstrdq_scatter_offset_p_s64): Likewise.
23112 (__arm_vstrdq_scatter_offset_p_u64): Likewise.
23113 (__arm_vstrdq_scatter_offset_s64): Likewise.
23114 (__arm_vstrdq_scatter_offset_u64): Likewise.
23115 (__arm_vstrdq_scatter_shifted_offset_p_s64): Likewise.
23116 (__arm_vstrdq_scatter_shifted_offset_p_u64): Likewise.
23117 (__arm_vstrdq_scatter_shifted_offset_s64): Likewise.
23118 (__arm_vstrdq_scatter_shifted_offset_u64): Likewise.
23119 (__arm_vstrwq_scatter_offset_p_s32): Likewise.
23120 (__arm_vstrwq_scatter_offset_p_u32): Likewise.
23121 (__arm_vstrwq_scatter_offset_s32): Likewise.
23122 (__arm_vstrwq_scatter_offset_u32): Likewise.
23123 (__arm_vstrwq_scatter_shifted_offset_p_s32): Likewise.
23124 (__arm_vstrwq_scatter_shifted_offset_p_u32): Likewise.
23125 (__arm_vstrwq_scatter_shifted_offset_s32): Likewise.
23126 (__arm_vstrwq_scatter_shifted_offset_u32): Likewise.
23127 (__arm_vstrhq_scatter_offset_f16): Likewise.
23128 (__arm_vstrhq_scatter_offset_p_f16): Likewise.
23129 (__arm_vstrhq_scatter_shifted_offset_f16): Likewise.
23130 (__arm_vstrhq_scatter_shifted_offset_p_f16): Likewise.
23131 (__arm_vstrwq_scatter_base_f32): Likewise.
23132 (__arm_vstrwq_scatter_base_p_f32): Likewise.
23133 (__arm_vstrwq_scatter_offset_f32): Likewise.
23134 (__arm_vstrwq_scatter_offset_p_f32): Likewise.
23135 (__arm_vstrwq_scatter_shifted_offset_f32): Likewise.
23136 (__arm_vstrwq_scatter_shifted_offset_p_f32): Likewise.
23137 (vstrhq_scatter_offset): Define polymorphic variant.
23138 (vstrhq_scatter_offset_p): Likewise.
23139 (vstrhq_scatter_shifted_offset): Likewise.
23140 (vstrhq_scatter_shifted_offset_p): Likewise.
23141 (vstrwq_scatter_base): Likewise.
23142 (vstrwq_scatter_base_p): Likewise.
23143 (vstrwq_scatter_offset): Likewise.
23144 (vstrwq_scatter_offset_p): Likewise.
23145 (vstrwq_scatter_shifted_offset): Likewise.
23146 (vstrwq_scatter_shifted_offset_p): Likewise.
23147 (vstrdq_scatter_base_p): Likewise.
23148 (vstrdq_scatter_base): Likewise.
23149 (vstrdq_scatter_offset_p): Likewise.
23150 (vstrdq_scatter_offset): Likewise.
23151 (vstrdq_scatter_shifted_offset_p): Likewise.
23152 (vstrdq_scatter_shifted_offset): Likewise.
23153 * config/arm/arm_mve_builtins.def (STRSBS): Use builtin qualifier.
23154 (STRSBS_P): Likewise.
23155 (STRSBU): Likewise.
23156 (STRSBU_P): Likewise.
23158 (STRSS_P): Likewise.
23160 (STRSU_P): Likewise.
23161 * config/arm/constraints.md (Ri): Define.
23162 * config/arm/mve.md (VSTRDSBQ): Define iterator.
23163 (VSTRDSOQ): Likewise.
23164 (VSTRDSSOQ): Likewise.
23165 (VSTRWSOQ): Likewise.
23166 (VSTRWSSOQ): Likewise.
23167 (mve_vstrdq_scatter_base_p_<supf>v2di): Define RTL pattern.
23168 (mve_vstrdq_scatter_base_<supf>v2di): Likewise.
23169 (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
23170 (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
23171 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
23172 (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
23173 (mve_vstrhq_scatter_offset_fv8hf): Likewise.
23174 (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
23175 (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
23176 (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
23177 (mve_vstrwq_scatter_base_fv4sf): Likewise.
23178 (mve_vstrwq_scatter_base_p_fv4sf): Likewise.
23179 (mve_vstrwq_scatter_offset_fv4sf): Likewise.
23180 (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
23181 (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
23182 (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
23183 (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
23184 (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
23185 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
23186 (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
23187 * config/arm/predicates.md (Ri): Define predicate to check immediate
23188 is the range +/-1016 and multiple of 8.
23190 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23191 Mihail Ionescu <mihail.ionescu@arm.com>
23192 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23194 * config/arm/arm_mve.h (vst1q_f32): Define macro.
23195 (vst1q_f16): Likewise.
23196 (vst1q_s8): Likewise.
23197 (vst1q_s32): Likewise.
23198 (vst1q_s16): Likewise.
23199 (vst1q_u8): Likewise.
23200 (vst1q_u32): Likewise.
23201 (vst1q_u16): Likewise.
23202 (vstrhq_f16): Likewise.
23203 (vstrhq_scatter_offset_s32): Likewise.
23204 (vstrhq_scatter_offset_s16): Likewise.
23205 (vstrhq_scatter_offset_u32): Likewise.
23206 (vstrhq_scatter_offset_u16): Likewise.
23207 (vstrhq_scatter_offset_p_s32): Likewise.
23208 (vstrhq_scatter_offset_p_s16): Likewise.
23209 (vstrhq_scatter_offset_p_u32): Likewise.
23210 (vstrhq_scatter_offset_p_u16): Likewise.
23211 (vstrhq_scatter_shifted_offset_s32): Likewise.
23212 (vstrhq_scatter_shifted_offset_s16): Likewise.
23213 (vstrhq_scatter_shifted_offset_u32): Likewise.
23214 (vstrhq_scatter_shifted_offset_u16): Likewise.
23215 (vstrhq_scatter_shifted_offset_p_s32): Likewise.
23216 (vstrhq_scatter_shifted_offset_p_s16): Likewise.
23217 (vstrhq_scatter_shifted_offset_p_u32): Likewise.
23218 (vstrhq_scatter_shifted_offset_p_u16): Likewise.
23219 (vstrhq_s32): Likewise.
23220 (vstrhq_s16): Likewise.
23221 (vstrhq_u32): Likewise.
23222 (vstrhq_u16): Likewise.
23223 (vstrhq_p_f16): Likewise.
23224 (vstrhq_p_s32): Likewise.
23225 (vstrhq_p_s16): Likewise.
23226 (vstrhq_p_u32): Likewise.
23227 (vstrhq_p_u16): Likewise.
23228 (vstrwq_f32): Likewise.
23229 (vstrwq_s32): Likewise.
23230 (vstrwq_u32): Likewise.
23231 (vstrwq_p_f32): Likewise.
23232 (vstrwq_p_s32): Likewise.
23233 (vstrwq_p_u32): Likewise.
23234 (__arm_vst1q_s8): Define intrinsic.
23235 (__arm_vst1q_s32): Likewise.
23236 (__arm_vst1q_s16): Likewise.
23237 (__arm_vst1q_u8): Likewise.
23238 (__arm_vst1q_u32): Likewise.
23239 (__arm_vst1q_u16): Likewise.
23240 (__arm_vstrhq_scatter_offset_s32): Likewise.
23241 (__arm_vstrhq_scatter_offset_s16): Likewise.
23242 (__arm_vstrhq_scatter_offset_u32): Likewise.
23243 (__arm_vstrhq_scatter_offset_u16): Likewise.
23244 (__arm_vstrhq_scatter_offset_p_s32): Likewise.
23245 (__arm_vstrhq_scatter_offset_p_s16): Likewise.
23246 (__arm_vstrhq_scatter_offset_p_u32): Likewise.
23247 (__arm_vstrhq_scatter_offset_p_u16): Likewise.
23248 (__arm_vstrhq_scatter_shifted_offset_s32): Likewise.
23249 (__arm_vstrhq_scatter_shifted_offset_s16): Likewise.
23250 (__arm_vstrhq_scatter_shifted_offset_u32): Likewise.
23251 (__arm_vstrhq_scatter_shifted_offset_u16): Likewise.
23252 (__arm_vstrhq_scatter_shifted_offset_p_s32): Likewise.
23253 (__arm_vstrhq_scatter_shifted_offset_p_s16): Likewise.
23254 (__arm_vstrhq_scatter_shifted_offset_p_u32): Likewise.
23255 (__arm_vstrhq_scatter_shifted_offset_p_u16): Likewise.
23256 (__arm_vstrhq_s32): Likewise.
23257 (__arm_vstrhq_s16): Likewise.
23258 (__arm_vstrhq_u32): Likewise.
23259 (__arm_vstrhq_u16): Likewise.
23260 (__arm_vstrhq_p_s32): Likewise.
23261 (__arm_vstrhq_p_s16): Likewise.
23262 (__arm_vstrhq_p_u32): Likewise.
23263 (__arm_vstrhq_p_u16): Likewise.
23264 (__arm_vstrwq_s32): Likewise.
23265 (__arm_vstrwq_u32): Likewise.
23266 (__arm_vstrwq_p_s32): Likewise.
23267 (__arm_vstrwq_p_u32): Likewise.
23268 (__arm_vstrwq_p_f32): Likewise.
23269 (__arm_vstrwq_f32): Likewise.
23270 (__arm_vst1q_f32): Likewise.
23271 (__arm_vst1q_f16): Likewise.
23272 (__arm_vstrhq_f16): Likewise.
23273 (__arm_vstrhq_p_f16): Likewise.
23274 (vst1q): Define polymorphic variant.
23275 (vstrhq): Likewise.
23276 (vstrhq_p): Likewise.
23277 (vstrhq_scatter_offset_p): Likewise.
23278 (vstrhq_scatter_offset): Likewise.
23279 (vstrhq_scatter_shifted_offset_p): Likewise.
23280 (vstrhq_scatter_shifted_offset): Likewise.
23281 (vstrwq_p): Likewise.
23282 (vstrwq): Likewise.
23283 * config/arm/arm_mve_builtins.def (STRS): Use builtin qualifier.
23284 (STRS_P): Likewise.
23286 (STRSS_P): Likewise.
23288 (STRSU_P): Likewise.
23290 (STRU_P): Likewise.
23291 * config/arm/mve.md (VST1Q): Define iterator.
23292 (VSTRHSOQ): Likewise.
23293 (VSTRHSSOQ): Likewise.
23294 (VSTRHQ): Likewise.
23295 (VSTRWQ): Likewise.
23296 (mve_vstrhq_fv8hf): Define RTL pattern.
23297 (mve_vstrhq_p_fv8hf): Likewise.
23298 (mve_vstrhq_p_<supf><mode>): Likewise.
23299 (mve_vstrhq_scatter_offset_p_<supf><mode>): Likewise.
23300 (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
23301 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
23302 (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
23303 (mve_vstrhq_<supf><mode>): Likewise.
23304 (mve_vstrwq_fv4sf): Likewise.
23305 (mve_vstrwq_p_fv4sf): Likewise.
23306 (mve_vstrwq_p_<supf>v4si): Likewise.
23307 (mve_vstrwq_<supf>v4si): Likewise.
23308 (mve_vst1q_f<mode>): Define expand.
23309 (mve_vst1q_<supf><mode>): Likewise.
23311 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23312 Mihail Ionescu <mihail.ionescu@arm.com>
23313 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23315 * config/arm/arm_mve.h (vld1q_s8): Define macro.
23316 (vld1q_s32): Likewise.
23317 (vld1q_s16): Likewise.
23318 (vld1q_u8): Likewise.
23319 (vld1q_u32): Likewise.
23320 (vld1q_u16): Likewise.
23321 (vldrhq_gather_offset_s32): Likewise.
23322 (vldrhq_gather_offset_s16): Likewise.
23323 (vldrhq_gather_offset_u32): Likewise.
23324 (vldrhq_gather_offset_u16): Likewise.
23325 (vldrhq_gather_offset_z_s32): Likewise.
23326 (vldrhq_gather_offset_z_s16): Likewise.
23327 (vldrhq_gather_offset_z_u32): Likewise.
23328 (vldrhq_gather_offset_z_u16): Likewise.
23329 (vldrhq_gather_shifted_offset_s32): Likewise.
23330 (vldrhq_gather_shifted_offset_s16): Likewise.
23331 (vldrhq_gather_shifted_offset_u32): Likewise.
23332 (vldrhq_gather_shifted_offset_u16): Likewise.
23333 (vldrhq_gather_shifted_offset_z_s32): Likewise.
23334 (vldrhq_gather_shifted_offset_z_s16): Likewise.
23335 (vldrhq_gather_shifted_offset_z_u32): Likewise.
23336 (vldrhq_gather_shifted_offset_z_u16): Likewise.
23337 (vldrhq_s32): Likewise.
23338 (vldrhq_s16): Likewise.
23339 (vldrhq_u32): Likewise.
23340 (vldrhq_u16): Likewise.
23341 (vldrhq_z_s32): Likewise.
23342 (vldrhq_z_s16): Likewise.
23343 (vldrhq_z_u32): Likewise.
23344 (vldrhq_z_u16): Likewise.
23345 (vldrwq_s32): Likewise.
23346 (vldrwq_u32): Likewise.
23347 (vldrwq_z_s32): Likewise.
23348 (vldrwq_z_u32): Likewise.
23349 (vld1q_f32): Likewise.
23350 (vld1q_f16): Likewise.
23351 (vldrhq_f16): Likewise.
23352 (vldrhq_z_f16): Likewise.
23353 (vldrwq_f32): Likewise.
23354 (vldrwq_z_f32): Likewise.
23355 (__arm_vld1q_s8): Define intrinsic.
23356 (__arm_vld1q_s32): Likewise.
23357 (__arm_vld1q_s16): Likewise.
23358 (__arm_vld1q_u8): Likewise.
23359 (__arm_vld1q_u32): Likewise.
23360 (__arm_vld1q_u16): Likewise.
23361 (__arm_vldrhq_gather_offset_s32): Likewise.
23362 (__arm_vldrhq_gather_offset_s16): Likewise.
23363 (__arm_vldrhq_gather_offset_u32): Likewise.
23364 (__arm_vldrhq_gather_offset_u16): Likewise.
23365 (__arm_vldrhq_gather_offset_z_s32): Likewise.
23366 (__arm_vldrhq_gather_offset_z_s16): Likewise.
23367 (__arm_vldrhq_gather_offset_z_u32): Likewise.
23368 (__arm_vldrhq_gather_offset_z_u16): Likewise.
23369 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
23370 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
23371 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
23372 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
23373 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
23374 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
23375 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
23376 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
23377 (__arm_vldrhq_s32): Likewise.
23378 (__arm_vldrhq_s16): Likewise.
23379 (__arm_vldrhq_u32): Likewise.
23380 (__arm_vldrhq_u16): Likewise.
23381 (__arm_vldrhq_z_s32): Likewise.
23382 (__arm_vldrhq_z_s16): Likewise.
23383 (__arm_vldrhq_z_u32): Likewise.
23384 (__arm_vldrhq_z_u16): Likewise.
23385 (__arm_vldrwq_s32): Likewise.
23386 (__arm_vldrwq_u32): Likewise.
23387 (__arm_vldrwq_z_s32): Likewise.
23388 (__arm_vldrwq_z_u32): Likewise.
23389 (__arm_vld1q_f32): Likewise.
23390 (__arm_vld1q_f16): Likewise.
23391 (__arm_vldrwq_f32): Likewise.
23392 (__arm_vldrwq_z_f32): Likewise.
23393 (__arm_vldrhq_z_f16): Likewise.
23394 (__arm_vldrhq_f16): Likewise.
23395 (vld1q): Define polymorphic variant.
23396 (vldrhq_gather_offset): Likewise.
23397 (vldrhq_gather_offset_z): Likewise.
23398 (vldrhq_gather_shifted_offset): Likewise.
23399 (vldrhq_gather_shifted_offset_z): Likewise.
23400 * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
23402 (LDRU_Z): Likewise.
23403 (LDRS_Z): Likewise.
23404 (LDRGU_Z): Likewise.
23406 (LDRGS_Z): Likewise.
23408 * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
23409 (V_sz_elem1): Likewise.
23410 (VLD1Q): Define iterator.
23411 (VLDRHGOQ): Likewise.
23412 (VLDRHGSOQ): Likewise.
23413 (VLDRHQ): Likewise.
23414 (VLDRWQ): Likewise.
23415 (mve_vldrhq_fv8hf): Define RTL pattern.
23416 (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
23417 (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
23418 (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
23419 (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
23420 (mve_vldrhq_<supf><mode>): Likewise.
23421 (mve_vldrhq_z_fv8hf): Likewise.
23422 (mve_vldrhq_z_<supf><mode>): Likewise.
23423 (mve_vldrwq_fv4sf): Likewise.
23424 (mve_vldrwq_<supf>v4si): Likewise.
23425 (mve_vldrwq_z_fv4sf): Likewise.
23426 (mve_vldrwq_z_<supf>v4si): Likewise.
23427 (mve_vld1q_f<mode>): Define RTL expand pattern.
23428 (mve_vld1q_<supf><mode>): Likewise.
23430 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23431 Mihail Ionescu <mihail.ionescu@arm.com>
23432 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23434 * config/arm/arm_mve.h (vld1q_s8): Define macro.
23435 (vld1q_s32): Likewise.
23436 (vld1q_s16): Likewise.
23437 (vld1q_u8): Likewise.
23438 (vld1q_u32): Likewise.
23439 (vld1q_u16): Likewise.
23440 (vldrhq_gather_offset_s32): Likewise.
23441 (vldrhq_gather_offset_s16): Likewise.
23442 (vldrhq_gather_offset_u32): Likewise.
23443 (vldrhq_gather_offset_u16): Likewise.
23444 (vldrhq_gather_offset_z_s32): Likewise.
23445 (vldrhq_gather_offset_z_s16): Likewise.
23446 (vldrhq_gather_offset_z_u32): Likewise.
23447 (vldrhq_gather_offset_z_u16): Likewise.
23448 (vldrhq_gather_shifted_offset_s32): Likewise.
23449 (vldrhq_gather_shifted_offset_s16): Likewise.
23450 (vldrhq_gather_shifted_offset_u32): Likewise.
23451 (vldrhq_gather_shifted_offset_u16): Likewise.
23452 (vldrhq_gather_shifted_offset_z_s32): Likewise.
23453 (vldrhq_gather_shifted_offset_z_s16): Likewise.
23454 (vldrhq_gather_shifted_offset_z_u32): Likewise.
23455 (vldrhq_gather_shifted_offset_z_u16): Likewise.
23456 (vldrhq_s32): Likewise.
23457 (vldrhq_s16): Likewise.
23458 (vldrhq_u32): Likewise.
23459 (vldrhq_u16): Likewise.
23460 (vldrhq_z_s32): Likewise.
23461 (vldrhq_z_s16): Likewise.
23462 (vldrhq_z_u32): Likewise.
23463 (vldrhq_z_u16): Likewise.
23464 (vldrwq_s32): Likewise.
23465 (vldrwq_u32): Likewise.
23466 (vldrwq_z_s32): Likewise.
23467 (vldrwq_z_u32): Likewise.
23468 (vld1q_f32): Likewise.
23469 (vld1q_f16): Likewise.
23470 (vldrhq_f16): Likewise.
23471 (vldrhq_z_f16): Likewise.
23472 (vldrwq_f32): Likewise.
23473 (vldrwq_z_f32): Likewise.
23474 (__arm_vld1q_s8): Define intrinsic.
23475 (__arm_vld1q_s32): Likewise.
23476 (__arm_vld1q_s16): Likewise.
23477 (__arm_vld1q_u8): Likewise.
23478 (__arm_vld1q_u32): Likewise.
23479 (__arm_vld1q_u16): Likewise.
23480 (__arm_vldrhq_gather_offset_s32): Likewise.
23481 (__arm_vldrhq_gather_offset_s16): Likewise.
23482 (__arm_vldrhq_gather_offset_u32): Likewise.
23483 (__arm_vldrhq_gather_offset_u16): Likewise.
23484 (__arm_vldrhq_gather_offset_z_s32): Likewise.
23485 (__arm_vldrhq_gather_offset_z_s16): Likewise.
23486 (__arm_vldrhq_gather_offset_z_u32): Likewise.
23487 (__arm_vldrhq_gather_offset_z_u16): Likewise.
23488 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
23489 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
23490 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
23491 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
23492 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
23493 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
23494 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
23495 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
23496 (__arm_vldrhq_s32): Likewise.
23497 (__arm_vldrhq_s16): Likewise.
23498 (__arm_vldrhq_u32): Likewise.
23499 (__arm_vldrhq_u16): Likewise.
23500 (__arm_vldrhq_z_s32): Likewise.
23501 (__arm_vldrhq_z_s16): Likewise.
23502 (__arm_vldrhq_z_u32): Likewise.
23503 (__arm_vldrhq_z_u16): Likewise.
23504 (__arm_vldrwq_s32): Likewise.
23505 (__arm_vldrwq_u32): Likewise.
23506 (__arm_vldrwq_z_s32): Likewise.
23507 (__arm_vldrwq_z_u32): Likewise.
23508 (__arm_vld1q_f32): Likewise.
23509 (__arm_vld1q_f16): Likewise.
23510 (__arm_vldrwq_f32): Likewise.
23511 (__arm_vldrwq_z_f32): Likewise.
23512 (__arm_vldrhq_z_f16): Likewise.
23513 (__arm_vldrhq_f16): Likewise.
23514 (vld1q): Define polymorphic variant.
23515 (vldrhq_gather_offset): Likewise.
23516 (vldrhq_gather_offset_z): Likewise.
23517 (vldrhq_gather_shifted_offset): Likewise.
23518 (vldrhq_gather_shifted_offset_z): Likewise.
23519 * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
23521 (LDRU_Z): Likewise.
23522 (LDRS_Z): Likewise.
23523 (LDRGU_Z): Likewise.
23525 (LDRGS_Z): Likewise.
23527 * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
23528 (V_sz_elem1): Likewise.
23529 (VLD1Q): Define iterator.
23530 (VLDRHGOQ): Likewise.
23531 (VLDRHGSOQ): Likewise.
23532 (VLDRHQ): Likewise.
23533 (VLDRWQ): Likewise.
23534 (mve_vldrhq_fv8hf): Define RTL pattern.
23535 (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
23536 (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
23537 (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
23538 (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
23539 (mve_vldrhq_<supf><mode>): Likewise.
23540 (mve_vldrhq_z_fv8hf): Likewise.
23541 (mve_vldrhq_z_<supf><mode>): Likewise.
23542 (mve_vldrwq_fv4sf): Likewise.
23543 (mve_vldrwq_<supf>v4si): Likewise.
23544 (mve_vldrwq_z_fv4sf): Likewise.
23545 (mve_vldrwq_z_<supf>v4si): Likewise.
23546 (mve_vld1q_f<mode>): Define RTL expand pattern.
23547 (mve_vld1q_<supf><mode>): Likewise.
23549 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23550 Mihail Ionescu <mihail.ionescu@arm.com>
23551 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23553 * config/arm/arm-builtins.c (LDRGBS_Z_QUALIFIERS): Define builtin
23555 (LDRGBU_Z_QUALIFIERS): Likewise.
23556 (LDRGS_Z_QUALIFIERS): Likewise.
23557 (LDRGU_Z_QUALIFIERS): Likewise.
23558 (LDRS_Z_QUALIFIERS): Likewise.
23559 (LDRU_Z_QUALIFIERS): Likewise.
23560 * config/arm/arm_mve.h (vldrbq_gather_offset_z_s16): Define macro.
23561 (vldrbq_gather_offset_z_u8): Likewise.
23562 (vldrbq_gather_offset_z_s32): Likewise.
23563 (vldrbq_gather_offset_z_u16): Likewise.
23564 (vldrbq_gather_offset_z_u32): Likewise.
23565 (vldrbq_gather_offset_z_s8): Likewise.
23566 (vldrbq_z_s16): Likewise.
23567 (vldrbq_z_u8): Likewise.
23568 (vldrbq_z_s8): Likewise.
23569 (vldrbq_z_s32): Likewise.
23570 (vldrbq_z_u16): Likewise.
23571 (vldrbq_z_u32): Likewise.
23572 (vldrwq_gather_base_z_u32): Likewise.
23573 (vldrwq_gather_base_z_s32): Likewise.
23574 (__arm_vldrbq_gather_offset_z_s8): Define intrinsic.
23575 (__arm_vldrbq_gather_offset_z_s32): Likewise.
23576 (__arm_vldrbq_gather_offset_z_s16): Likewise.
23577 (__arm_vldrbq_gather_offset_z_u8): Likewise.
23578 (__arm_vldrbq_gather_offset_z_u32): Likewise.
23579 (__arm_vldrbq_gather_offset_z_u16): Likewise.
23580 (__arm_vldrbq_z_s8): Likewise.
23581 (__arm_vldrbq_z_s32): Likewise.
23582 (__arm_vldrbq_z_s16): Likewise.
23583 (__arm_vldrbq_z_u8): Likewise.
23584 (__arm_vldrbq_z_u32): Likewise.
23585 (__arm_vldrbq_z_u16): Likewise.
23586 (__arm_vldrwq_gather_base_z_s32): Likewise.
23587 (__arm_vldrwq_gather_base_z_u32): Likewise.
23588 (vldrbq_gather_offset_z): Define polymorphic variant.
23589 * config/arm/arm_mve_builtins.def (LDRGBS_Z_QUALIFIERS): Use builtin
23591 (LDRGBU_Z_QUALIFIERS): Likewise.
23592 (LDRGS_Z_QUALIFIERS): Likewise.
23593 (LDRGU_Z_QUALIFIERS): Likewise.
23594 (LDRS_Z_QUALIFIERS): Likewise.
23595 (LDRU_Z_QUALIFIERS): Likewise.
23596 * config/arm/mve.md (mve_vldrbq_gather_offset_z_<supf><mode>): Define
23598 (mve_vldrbq_z_<supf><mode>): Likewise.
23599 (mve_vldrwq_gather_base_z_<supf>v4si): Likewise.
23601 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23602 Mihail Ionescu <mihail.ionescu@arm.com>
23603 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23605 * config/arm/arm-builtins.c (STRS_P_QUALIFIERS): Define builtin
23607 (STRU_P_QUALIFIERS): Likewise.
23608 (STRSU_P_QUALIFIERS): Likewise.
23609 (STRSS_P_QUALIFIERS): Likewise.
23610 (STRSBS_P_QUALIFIERS): Likewise.
23611 (STRSBU_P_QUALIFIERS): Likewise.
23612 * config/arm/arm_mve.h (vstrbq_p_s8): Define macro.
23613 (vstrbq_p_s32): Likewise.
23614 (vstrbq_p_s16): Likewise.
23615 (vstrbq_p_u8): Likewise.
23616 (vstrbq_p_u32): Likewise.
23617 (vstrbq_p_u16): Likewise.
23618 (vstrbq_scatter_offset_p_s8): Likewise.
23619 (vstrbq_scatter_offset_p_s32): Likewise.
23620 (vstrbq_scatter_offset_p_s16): Likewise.
23621 (vstrbq_scatter_offset_p_u8): Likewise.
23622 (vstrbq_scatter_offset_p_u32): Likewise.
23623 (vstrbq_scatter_offset_p_u16): Likewise.
23624 (vstrwq_scatter_base_p_s32): Likewise.
23625 (vstrwq_scatter_base_p_u32): Likewise.
23626 (__arm_vstrbq_p_s8): Define intrinsic.
23627 (__arm_vstrbq_p_s32): Likewise.
23628 (__arm_vstrbq_p_s16): Likewise.
23629 (__arm_vstrbq_p_u8): Likewise.
23630 (__arm_vstrbq_p_u32): Likewise.
23631 (__arm_vstrbq_p_u16): Likewise.
23632 (__arm_vstrbq_scatter_offset_p_s8): Likewise.
23633 (__arm_vstrbq_scatter_offset_p_s32): Likewise.
23634 (__arm_vstrbq_scatter_offset_p_s16): Likewise.
23635 (__arm_vstrbq_scatter_offset_p_u8): Likewise.
23636 (__arm_vstrbq_scatter_offset_p_u32): Likewise.
23637 (__arm_vstrbq_scatter_offset_p_u16): Likewise.
23638 (__arm_vstrwq_scatter_base_p_s32): Likewise.
23639 (__arm_vstrwq_scatter_base_p_u32): Likewise.
23640 (vstrbq_p): Define polymorphic variant.
23641 (vstrbq_scatter_offset_p): Likewise.
23642 (vstrwq_scatter_base_p): Likewise.
23643 * config/arm/arm_mve_builtins.def (STRS_P_QUALIFIERS): Use builtin
23645 (STRU_P_QUALIFIERS): Likewise.
23646 (STRSU_P_QUALIFIERS): Likewise.
23647 (STRSS_P_QUALIFIERS): Likewise.
23648 (STRSBS_P_QUALIFIERS): Likewise.
23649 (STRSBU_P_QUALIFIERS): Likewise.
23650 * config/arm/mve.md (mve_vstrbq_scatter_offset_p_<supf><mode>): Define
23652 (mve_vstrwq_scatter_base_p_<supf>v4si): Likewise.
23653 (mve_vstrbq_p_<supf><mode>): Likewise.
23655 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23656 Mihail Ionescu <mihail.ionescu@arm.com>
23657 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23659 * config/arm/arm-builtins.c (LDRGU_QUALIFIERS): Define builtin
23661 (LDRGS_QUALIFIERS): Likewise.
23662 (LDRS_QUALIFIERS): Likewise.
23663 (LDRU_QUALIFIERS): Likewise.
23664 (LDRGBS_QUALIFIERS): Likewise.
23665 (LDRGBU_QUALIFIERS): Likewise.
23666 * config/arm/arm_mve.h (vldrbq_gather_offset_u8): Define macro.
23667 (vldrbq_gather_offset_s8): Likewise.
23668 (vldrbq_s8): Likewise.
23669 (vldrbq_u8): Likewise.
23670 (vldrbq_gather_offset_u16): Likewise.
23671 (vldrbq_gather_offset_s16): Likewise.
23672 (vldrbq_s16): Likewise.
23673 (vldrbq_u16): Likewise.
23674 (vldrbq_gather_offset_u32): Likewise.
23675 (vldrbq_gather_offset_s32): Likewise.
23676 (vldrbq_s32): Likewise.
23677 (vldrbq_u32): Likewise.
23678 (vldrwq_gather_base_s32): Likewise.
23679 (vldrwq_gather_base_u32): Likewise.
23680 (__arm_vldrbq_gather_offset_u8): Define intrinsic.
23681 (__arm_vldrbq_gather_offset_s8): Likewise.
23682 (__arm_vldrbq_s8): Likewise.
23683 (__arm_vldrbq_u8): Likewise.
23684 (__arm_vldrbq_gather_offset_u16): Likewise.
23685 (__arm_vldrbq_gather_offset_s16): Likewise.
23686 (__arm_vldrbq_s16): Likewise.
23687 (__arm_vldrbq_u16): Likewise.
23688 (__arm_vldrbq_gather_offset_u32): Likewise.
23689 (__arm_vldrbq_gather_offset_s32): Likewise.
23690 (__arm_vldrbq_s32): Likewise.
23691 (__arm_vldrbq_u32): Likewise.
23692 (__arm_vldrwq_gather_base_s32): Likewise.
23693 (__arm_vldrwq_gather_base_u32): Likewise.
23694 (vldrbq_gather_offset): Define polymorphic variant.
23695 * config/arm/arm_mve_builtins.def (LDRGU_QUALIFIERS): Use builtin
23697 (LDRGS_QUALIFIERS): Likewise.
23698 (LDRS_QUALIFIERS): Likewise.
23699 (LDRU_QUALIFIERS): Likewise.
23700 (LDRGBS_QUALIFIERS): Likewise.
23701 (LDRGBU_QUALIFIERS): Likewise.
23702 * config/arm/mve.md (VLDRBGOQ): Define iterator.
23703 (VLDRBQ): Likewise.
23704 (VLDRWGBQ): Likewise.
23705 (mve_vldrbq_gather_offset_<supf><mode>): Define RTL pattern.
23706 (mve_vldrbq_<supf><mode>): Likewise.
23707 (mve_vldrwq_gather_base_<supf>v4si): Likewise.
23709 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23710 Mihail Ionescu <mihail.ionescu@arm.com>
23711 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23713 * config/arm/arm-builtins.c (STRS_QUALIFIERS): Define builtin qualifier.
23714 (STRU_QUALIFIERS): Likewise.
23715 (STRSS_QUALIFIERS): Likewise.
23716 (STRSU_QUALIFIERS): Likewise.
23717 (STRSBS_QUALIFIERS): Likewise.
23718 (STRSBU_QUALIFIERS): Likewise.
23719 * config/arm/arm_mve.h (vstrbq_s8): Define macro.
23720 (vstrbq_u8): Likewise.
23721 (vstrbq_u16): Likewise.
23722 (vstrbq_scatter_offset_s8): Likewise.
23723 (vstrbq_scatter_offset_u8): Likewise.
23724 (vstrbq_scatter_offset_u16): Likewise.
23725 (vstrbq_s16): Likewise.
23726 (vstrbq_u32): Likewise.
23727 (vstrbq_scatter_offset_s16): Likewise.
23728 (vstrbq_scatter_offset_u32): Likewise.
23729 (vstrbq_s32): Likewise.
23730 (vstrbq_scatter_offset_s32): Likewise.
23731 (vstrwq_scatter_base_s32): Likewise.
23732 (vstrwq_scatter_base_u32): Likewise.
23733 (__arm_vstrbq_scatter_offset_s8): Define intrinsic.
23734 (__arm_vstrbq_scatter_offset_s32): Likewise.
23735 (__arm_vstrbq_scatter_offset_s16): Likewise.
23736 (__arm_vstrbq_scatter_offset_u8): Likewise.
23737 (__arm_vstrbq_scatter_offset_u32): Likewise.
23738 (__arm_vstrbq_scatter_offset_u16): Likewise.
23739 (__arm_vstrbq_s8): Likewise.
23740 (__arm_vstrbq_s32): Likewise.
23741 (__arm_vstrbq_s16): Likewise.
23742 (__arm_vstrbq_u8): Likewise.
23743 (__arm_vstrbq_u32): Likewise.
23744 (__arm_vstrbq_u16): Likewise.
23745 (__arm_vstrwq_scatter_base_s32): Likewise.
23746 (__arm_vstrwq_scatter_base_u32): Likewise.
23747 (vstrbq): Define polymorphic variant.
23748 (vstrbq_scatter_offset): Likewise.
23749 (vstrwq_scatter_base): Likewise.
23750 * config/arm/arm_mve_builtins.def (STRS_QUALIFIERS): Use builtin
23752 (STRU_QUALIFIERS): Likewise.
23753 (STRSS_QUALIFIERS): Likewise.
23754 (STRSU_QUALIFIERS): Likewise.
23755 (STRSBS_QUALIFIERS): Likewise.
23756 (STRSBU_QUALIFIERS): Likewise.
23757 * config/arm/mve.md (MVE_B_ELEM): Define mode attribute iterator.
23758 (VSTRWSBQ): Define iterators.
23759 (VSTRBSOQ): Likewise.
23760 (VSTRBQ): Likewise.
23761 (mve_vstrbq_<supf><mode>): Define RTL pattern.
23762 (mve_vstrbq_scatter_offset_<supf><mode>): Likewise.
23763 (mve_vstrwq_scatter_base_<supf>v4si): Likewise.
23765 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23766 Mihail Ionescu <mihail.ionescu@arm.com>
23767 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23769 * config/arm/arm_mve.h (vabdq_m_f32): Define macro.
23770 (vabdq_m_f16): Likewise.
23771 (vaddq_m_f32): Likewise.
23772 (vaddq_m_f16): Likewise.
23773 (vaddq_m_n_f32): Likewise.
23774 (vaddq_m_n_f16): Likewise.
23775 (vandq_m_f32): Likewise.
23776 (vandq_m_f16): Likewise.
23777 (vbicq_m_f32): Likewise.
23778 (vbicq_m_f16): Likewise.
23779 (vbrsrq_m_n_f32): Likewise.
23780 (vbrsrq_m_n_f16): Likewise.
23781 (vcaddq_rot270_m_f32): Likewise.
23782 (vcaddq_rot270_m_f16): Likewise.
23783 (vcaddq_rot90_m_f32): Likewise.
23784 (vcaddq_rot90_m_f16): Likewise.
23785 (vcmlaq_m_f32): Likewise.
23786 (vcmlaq_m_f16): Likewise.
23787 (vcmlaq_rot180_m_f32): Likewise.
23788 (vcmlaq_rot180_m_f16): Likewise.
23789 (vcmlaq_rot270_m_f32): Likewise.
23790 (vcmlaq_rot270_m_f16): Likewise.
23791 (vcmlaq_rot90_m_f32): Likewise.
23792 (vcmlaq_rot90_m_f16): Likewise.
23793 (vcmulq_m_f32): Likewise.
23794 (vcmulq_m_f16): Likewise.
23795 (vcmulq_rot180_m_f32): Likewise.
23796 (vcmulq_rot180_m_f16): Likewise.
23797 (vcmulq_rot270_m_f32): Likewise.
23798 (vcmulq_rot270_m_f16): Likewise.
23799 (vcmulq_rot90_m_f32): Likewise.
23800 (vcmulq_rot90_m_f16): Likewise.
23801 (vcvtq_m_n_s32_f32): Likewise.
23802 (vcvtq_m_n_s16_f16): Likewise.
23803 (vcvtq_m_n_u32_f32): Likewise.
23804 (vcvtq_m_n_u16_f16): Likewise.
23805 (veorq_m_f32): Likewise.
23806 (veorq_m_f16): Likewise.
23807 (vfmaq_m_f32): Likewise.
23808 (vfmaq_m_f16): Likewise.
23809 (vfmaq_m_n_f32): Likewise.
23810 (vfmaq_m_n_f16): Likewise.
23811 (vfmasq_m_n_f32): Likewise.
23812 (vfmasq_m_n_f16): Likewise.
23813 (vfmsq_m_f32): Likewise.
23814 (vfmsq_m_f16): Likewise.
23815 (vmaxnmq_m_f32): Likewise.
23816 (vmaxnmq_m_f16): Likewise.
23817 (vminnmq_m_f32): Likewise.
23818 (vminnmq_m_f16): Likewise.
23819 (vmulq_m_f32): Likewise.
23820 (vmulq_m_f16): Likewise.
23821 (vmulq_m_n_f32): Likewise.
23822 (vmulq_m_n_f16): Likewise.
23823 (vornq_m_f32): Likewise.
23824 (vornq_m_f16): Likewise.
23825 (vorrq_m_f32): Likewise.
23826 (vorrq_m_f16): Likewise.
23827 (vsubq_m_f32): Likewise.
23828 (vsubq_m_f16): Likewise.
23829 (vsubq_m_n_f32): Likewise.
23830 (vsubq_m_n_f16): Likewise.
23831 (__attribute__): Likewise.
23832 (__arm_vabdq_m_f32): Likewise.
23833 (__arm_vabdq_m_f16): Likewise.
23834 (__arm_vaddq_m_f32): Likewise.
23835 (__arm_vaddq_m_f16): Likewise.
23836 (__arm_vaddq_m_n_f32): Likewise.
23837 (__arm_vaddq_m_n_f16): Likewise.
23838 (__arm_vandq_m_f32): Likewise.
23839 (__arm_vandq_m_f16): Likewise.
23840 (__arm_vbicq_m_f32): Likewise.
23841 (__arm_vbicq_m_f16): Likewise.
23842 (__arm_vbrsrq_m_n_f32): Likewise.
23843 (__arm_vbrsrq_m_n_f16): Likewise.
23844 (__arm_vcaddq_rot270_m_f32): Likewise.
23845 (__arm_vcaddq_rot270_m_f16): Likewise.
23846 (__arm_vcaddq_rot90_m_f32): Likewise.
23847 (__arm_vcaddq_rot90_m_f16): Likewise.
23848 (__arm_vcmlaq_m_f32): Likewise.
23849 (__arm_vcmlaq_m_f16): Likewise.
23850 (__arm_vcmlaq_rot180_m_f32): Likewise.
23851 (__arm_vcmlaq_rot180_m_f16): Likewise.
23852 (__arm_vcmlaq_rot270_m_f32): Likewise.
23853 (__arm_vcmlaq_rot270_m_f16): Likewise.
23854 (__arm_vcmlaq_rot90_m_f32): Likewise.
23855 (__arm_vcmlaq_rot90_m_f16): Likewise.
23856 (__arm_vcmulq_m_f32): Likewise.
23857 (__arm_vcmulq_m_f16): Likewise.
23858 (__arm_vcmulq_rot180_m_f32): Define intrinsic.
23859 (__arm_vcmulq_rot180_m_f16): Likewise.
23860 (__arm_vcmulq_rot270_m_f32): Likewise.
23861 (__arm_vcmulq_rot270_m_f16): Likewise.
23862 (__arm_vcmulq_rot90_m_f32): Likewise.
23863 (__arm_vcmulq_rot90_m_f16): Likewise.
23864 (__arm_vcvtq_m_n_s32_f32): Likewise.
23865 (__arm_vcvtq_m_n_s16_f16): Likewise.
23866 (__arm_vcvtq_m_n_u32_f32): Likewise.
23867 (__arm_vcvtq_m_n_u16_f16): Likewise.
23868 (__arm_veorq_m_f32): Likewise.
23869 (__arm_veorq_m_f16): Likewise.
23870 (__arm_vfmaq_m_f32): Likewise.
23871 (__arm_vfmaq_m_f16): Likewise.
23872 (__arm_vfmaq_m_n_f32): Likewise.
23873 (__arm_vfmaq_m_n_f16): Likewise.
23874 (__arm_vfmasq_m_n_f32): Likewise.
23875 (__arm_vfmasq_m_n_f16): Likewise.
23876 (__arm_vfmsq_m_f32): Likewise.
23877 (__arm_vfmsq_m_f16): Likewise.
23878 (__arm_vmaxnmq_m_f32): Likewise.
23879 (__arm_vmaxnmq_m_f16): Likewise.
23880 (__arm_vminnmq_m_f32): Likewise.
23881 (__arm_vminnmq_m_f16): Likewise.
23882 (__arm_vmulq_m_f32): Likewise.
23883 (__arm_vmulq_m_f16): Likewise.
23884 (__arm_vmulq_m_n_f32): Likewise.
23885 (__arm_vmulq_m_n_f16): Likewise.
23886 (__arm_vornq_m_f32): Likewise.
23887 (__arm_vornq_m_f16): Likewise.
23888 (__arm_vorrq_m_f32): Likewise.
23889 (__arm_vorrq_m_f16): Likewise.
23890 (__arm_vsubq_m_f32): Likewise.
23891 (__arm_vsubq_m_f16): Likewise.
23892 (__arm_vsubq_m_n_f32): Likewise.
23893 (__arm_vsubq_m_n_f16): Likewise.
23894 (vabdq_m): Define polymorphic variant.
23895 (vaddq_m): Likewise.
23896 (vaddq_m_n): Likewise.
23897 (vandq_m): Likewise.
23898 (vbicq_m): Likewise.
23899 (vbrsrq_m_n): Likewise.
23900 (vcaddq_rot270_m): Likewise.
23901 (vcaddq_rot90_m): Likewise.
23902 (vcmlaq_m): Likewise.
23903 (vcmlaq_rot180_m): Likewise.
23904 (vcmlaq_rot270_m): Likewise.
23905 (vcmlaq_rot90_m): Likewise.
23906 (vcmulq_m): Likewise.
23907 (vcmulq_rot180_m): Likewise.
23908 (vcmulq_rot270_m): Likewise.
23909 (vcmulq_rot90_m): Likewise.
23910 (veorq_m): Likewise.
23911 (vfmaq_m): Likewise.
23912 (vfmaq_m_n): Likewise.
23913 (vfmasq_m_n): Likewise.
23914 (vfmsq_m): Likewise.
23915 (vmaxnmq_m): Likewise.
23916 (vminnmq_m): Likewise.
23917 (vmulq_m): Likewise.
23918 (vmulq_m_n): Likewise.
23919 (vornq_m): Likewise.
23920 (vsubq_m): Likewise.
23921 (vsubq_m_n): Likewise.
23922 (vorrq_m): Likewise.
23923 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
23925 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
23926 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
23927 * config/arm/mve.md (mve_vabdq_m_f<mode>): Define RTL pattern.
23928 (mve_vaddq_m_f<mode>): Likewise.
23929 (mve_vaddq_m_n_f<mode>): Likewise.
23930 (mve_vandq_m_f<mode>): Likewise.
23931 (mve_vbicq_m_f<mode>): Likewise.
23932 (mve_vbrsrq_m_n_f<mode>): Likewise.
23933 (mve_vcaddq_rot270_m_f<mode>): Likewise.
23934 (mve_vcaddq_rot90_m_f<mode>): Likewise.
23935 (mve_vcmlaq_m_f<mode>): Likewise.
23936 (mve_vcmlaq_rot180_m_f<mode>): Likewise.
23937 (mve_vcmlaq_rot270_m_f<mode>): Likewise.
23938 (mve_vcmlaq_rot90_m_f<mode>): Likewise.
23939 (mve_vcmulq_m_f<mode>): Likewise.
23940 (mve_vcmulq_rot180_m_f<mode>): Likewise.
23941 (mve_vcmulq_rot270_m_f<mode>): Likewise.
23942 (mve_vcmulq_rot90_m_f<mode>): Likewise.
23943 (mve_veorq_m_f<mode>): Likewise.
23944 (mve_vfmaq_m_f<mode>): Likewise.
23945 (mve_vfmaq_m_n_f<mode>): Likewise.
23946 (mve_vfmasq_m_n_f<mode>): Likewise.
23947 (mve_vfmsq_m_f<mode>): Likewise.
23948 (mve_vmaxnmq_m_f<mode>): Likewise.
23949 (mve_vminnmq_m_f<mode>): Likewise.
23950 (mve_vmulq_m_f<mode>): Likewise.
23951 (mve_vmulq_m_n_f<mode>): Likewise.
23952 (mve_vornq_m_f<mode>): Likewise.
23953 (mve_vorrq_m_f<mode>): Likewise.
23954 (mve_vsubq_m_f<mode>): Likewise.
23955 (mve_vsubq_m_n_f<mode>): Likewise.
23957 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23958 Mihail Ionescu <mihail.ionescu@arm.com>
23959 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23961 * config/arm/arm-protos.h (arm_mve_immediate_check):
23962 * config/arm/arm.c (arm_mve_immediate_check): Define fuction to check
23963 mode and interger value.
23964 * config/arm/arm_mve.h (vmlaldavaq_p_s32): Define macro.
23965 (vmlaldavaq_p_s16): Likewise.
23966 (vmlaldavaq_p_u32): Likewise.
23967 (vmlaldavaq_p_u16): Likewise.
23968 (vmlaldavaxq_p_s32): Likewise.
23969 (vmlaldavaxq_p_s16): Likewise.
23970 (vmlaldavaxq_p_u32): Likewise.
23971 (vmlaldavaxq_p_u16): Likewise.
23972 (vmlsldavaq_p_s32): Likewise.
23973 (vmlsldavaq_p_s16): Likewise.
23974 (vmlsldavaxq_p_s32): Likewise.
23975 (vmlsldavaxq_p_s16): Likewise.
23976 (vmullbq_poly_m_p8): Likewise.
23977 (vmullbq_poly_m_p16): Likewise.
23978 (vmulltq_poly_m_p8): Likewise.
23979 (vmulltq_poly_m_p16): Likewise.
23980 (vqdmullbq_m_n_s32): Likewise.
23981 (vqdmullbq_m_n_s16): Likewise.
23982 (vqdmullbq_m_s32): Likewise.
23983 (vqdmullbq_m_s16): Likewise.
23984 (vqdmulltq_m_n_s32): Likewise.
23985 (vqdmulltq_m_n_s16): Likewise.
23986 (vqdmulltq_m_s32): Likewise.
23987 (vqdmulltq_m_s16): Likewise.
23988 (vqrshrnbq_m_n_s32): Likewise.
23989 (vqrshrnbq_m_n_s16): Likewise.
23990 (vqrshrnbq_m_n_u32): Likewise.
23991 (vqrshrnbq_m_n_u16): Likewise.
23992 (vqrshrntq_m_n_s32): Likewise.
23993 (vqrshrntq_m_n_s16): Likewise.
23994 (vqrshrntq_m_n_u32): Likewise.
23995 (vqrshrntq_m_n_u16): Likewise.
23996 (vqrshrunbq_m_n_s32): Likewise.
23997 (vqrshrunbq_m_n_s16): Likewise.
23998 (vqrshruntq_m_n_s32): Likewise.
23999 (vqrshruntq_m_n_s16): Likewise.
24000 (vqshrnbq_m_n_s32): Likewise.
24001 (vqshrnbq_m_n_s16): Likewise.
24002 (vqshrnbq_m_n_u32): Likewise.
24003 (vqshrnbq_m_n_u16): Likewise.
24004 (vqshrntq_m_n_s32): Likewise.
24005 (vqshrntq_m_n_s16): Likewise.
24006 (vqshrntq_m_n_u32): Likewise.
24007 (vqshrntq_m_n_u16): Likewise.
24008 (vqshrunbq_m_n_s32): Likewise.
24009 (vqshrunbq_m_n_s16): Likewise.
24010 (vqshruntq_m_n_s32): Likewise.
24011 (vqshruntq_m_n_s16): Likewise.
24012 (vrmlaldavhaq_p_s32): Likewise.
24013 (vrmlaldavhaq_p_u32): Likewise.
24014 (vrmlaldavhaxq_p_s32): Likewise.
24015 (vrmlsldavhaq_p_s32): Likewise.
24016 (vrmlsldavhaxq_p_s32): Likewise.
24017 (vrshrnbq_m_n_s32): Likewise.
24018 (vrshrnbq_m_n_s16): Likewise.
24019 (vrshrnbq_m_n_u32): Likewise.
24020 (vrshrnbq_m_n_u16): Likewise.
24021 (vrshrntq_m_n_s32): Likewise.
24022 (vrshrntq_m_n_s16): Likewise.
24023 (vrshrntq_m_n_u32): Likewise.
24024 (vrshrntq_m_n_u16): Likewise.
24025 (vshllbq_m_n_s8): Likewise.
24026 (vshllbq_m_n_s16): Likewise.
24027 (vshllbq_m_n_u8): Likewise.
24028 (vshllbq_m_n_u16): Likewise.
24029 (vshlltq_m_n_s8): Likewise.
24030 (vshlltq_m_n_s16): Likewise.
24031 (vshlltq_m_n_u8): Likewise.
24032 (vshlltq_m_n_u16): Likewise.
24033 (vshrnbq_m_n_s32): Likewise.
24034 (vshrnbq_m_n_s16): Likewise.
24035 (vshrnbq_m_n_u32): Likewise.
24036 (vshrnbq_m_n_u16): Likewise.
24037 (vshrntq_m_n_s32): Likewise.
24038 (vshrntq_m_n_s16): Likewise.
24039 (vshrntq_m_n_u32): Likewise.
24040 (vshrntq_m_n_u16): Likewise.
24041 (__arm_vmlaldavaq_p_s32): Define intrinsic.
24042 (__arm_vmlaldavaq_p_s16): Likewise.
24043 (__arm_vmlaldavaq_p_u32): Likewise.
24044 (__arm_vmlaldavaq_p_u16): Likewise.
24045 (__arm_vmlaldavaxq_p_s32): Likewise.
24046 (__arm_vmlaldavaxq_p_s16): Likewise.
24047 (__arm_vmlaldavaxq_p_u32): Likewise.
24048 (__arm_vmlaldavaxq_p_u16): Likewise.
24049 (__arm_vmlsldavaq_p_s32): Likewise.
24050 (__arm_vmlsldavaq_p_s16): Likewise.
24051 (__arm_vmlsldavaxq_p_s32): Likewise.
24052 (__arm_vmlsldavaxq_p_s16): Likewise.
24053 (__arm_vmullbq_poly_m_p8): Likewise.
24054 (__arm_vmullbq_poly_m_p16): Likewise.
24055 (__arm_vmulltq_poly_m_p8): Likewise.
24056 (__arm_vmulltq_poly_m_p16): Likewise.
24057 (__arm_vqdmullbq_m_n_s32): Likewise.
24058 (__arm_vqdmullbq_m_n_s16): Likewise.
24059 (__arm_vqdmullbq_m_s32): Likewise.
24060 (__arm_vqdmullbq_m_s16): Likewise.
24061 (__arm_vqdmulltq_m_n_s32): Likewise.
24062 (__arm_vqdmulltq_m_n_s16): Likewise.
24063 (__arm_vqdmulltq_m_s32): Likewise.
24064 (__arm_vqdmulltq_m_s16): Likewise.
24065 (__arm_vqrshrnbq_m_n_s32): Likewise.
24066 (__arm_vqrshrnbq_m_n_s16): Likewise.
24067 (__arm_vqrshrnbq_m_n_u32): Likewise.
24068 (__arm_vqrshrnbq_m_n_u16): Likewise.
24069 (__arm_vqrshrntq_m_n_s32): Likewise.
24070 (__arm_vqrshrntq_m_n_s16): Likewise.
24071 (__arm_vqrshrntq_m_n_u32): Likewise.
24072 (__arm_vqrshrntq_m_n_u16): Likewise.
24073 (__arm_vqrshrunbq_m_n_s32): Likewise.
24074 (__arm_vqrshrunbq_m_n_s16): Likewise.
24075 (__arm_vqrshruntq_m_n_s32): Likewise.
24076 (__arm_vqrshruntq_m_n_s16): Likewise.
24077 (__arm_vqshrnbq_m_n_s32): Likewise.
24078 (__arm_vqshrnbq_m_n_s16): Likewise.
24079 (__arm_vqshrnbq_m_n_u32): Likewise.
24080 (__arm_vqshrnbq_m_n_u16): Likewise.
24081 (__arm_vqshrntq_m_n_s32): Likewise.
24082 (__arm_vqshrntq_m_n_s16): Likewise.
24083 (__arm_vqshrntq_m_n_u32): Likewise.
24084 (__arm_vqshrntq_m_n_u16): Likewise.
24085 (__arm_vqshrunbq_m_n_s32): Likewise.
24086 (__arm_vqshrunbq_m_n_s16): Likewise.
24087 (__arm_vqshruntq_m_n_s32): Likewise.
24088 (__arm_vqshruntq_m_n_s16): Likewise.
24089 (__arm_vrmlaldavhaq_p_s32): Likewise.
24090 (__arm_vrmlaldavhaq_p_u32): Likewise.
24091 (__arm_vrmlaldavhaxq_p_s32): Likewise.
24092 (__arm_vrmlsldavhaq_p_s32): Likewise.
24093 (__arm_vrmlsldavhaxq_p_s32): Likewise.
24094 (__arm_vrshrnbq_m_n_s32): Likewise.
24095 (__arm_vrshrnbq_m_n_s16): Likewise.
24096 (__arm_vrshrnbq_m_n_u32): Likewise.
24097 (__arm_vrshrnbq_m_n_u16): Likewise.
24098 (__arm_vrshrntq_m_n_s32): Likewise.
24099 (__arm_vrshrntq_m_n_s16): Likewise.
24100 (__arm_vrshrntq_m_n_u32): Likewise.
24101 (__arm_vrshrntq_m_n_u16): Likewise.
24102 (__arm_vshllbq_m_n_s8): Likewise.
24103 (__arm_vshllbq_m_n_s16): Likewise.
24104 (__arm_vshllbq_m_n_u8): Likewise.
24105 (__arm_vshllbq_m_n_u16): Likewise.
24106 (__arm_vshlltq_m_n_s8): Likewise.
24107 (__arm_vshlltq_m_n_s16): Likewise.
24108 (__arm_vshlltq_m_n_u8): Likewise.
24109 (__arm_vshlltq_m_n_u16): Likewise.
24110 (__arm_vshrnbq_m_n_s32): Likewise.
24111 (__arm_vshrnbq_m_n_s16): Likewise.
24112 (__arm_vshrnbq_m_n_u32): Likewise.
24113 (__arm_vshrnbq_m_n_u16): Likewise.
24114 (__arm_vshrntq_m_n_s32): Likewise.
24115 (__arm_vshrntq_m_n_s16): Likewise.
24116 (__arm_vshrntq_m_n_u32): Likewise.
24117 (__arm_vshrntq_m_n_u16): Likewise.
24118 (vmullbq_poly_m): Define polymorphic variant.
24119 (vmulltq_poly_m): Likewise.
24120 (vshllbq_m): Likewise.
24121 (vshrntq_m_n): Likewise.
24122 (vshrnbq_m_n): Likewise.
24123 (vshlltq_m_n): Likewise.
24124 (vshllbq_m_n): Likewise.
24125 (vrshrntq_m_n): Likewise.
24126 (vrshrnbq_m_n): Likewise.
24127 (vqshruntq_m_n): Likewise.
24128 (vqshrunbq_m_n): Likewise.
24129 (vqdmullbq_m_n): Likewise.
24130 (vqdmullbq_m): Likewise.
24131 (vqdmulltq_m_n): Likewise.
24132 (vqdmulltq_m): Likewise.
24133 (vqrshrnbq_m_n): Likewise.
24134 (vqrshrntq_m_n): Likewise.
24135 (vqrshrunbq_m_n): Likewise.
24136 (vqrshruntq_m_n): Likewise.
24137 (vqshrnbq_m_n): Likewise.
24138 (vqshrntq_m_n): Likewise.
24139 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
24140 builtin qualifiers.
24141 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
24142 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
24143 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
24144 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
24145 * config/arm/mve.md (VMLALDAVAQ_P): Define iterator.
24146 (VMLALDAVAXQ_P): Likewise.
24147 (VQRSHRNBQ_M_N): Likewise.
24148 (VQRSHRNTQ_M_N): Likewise.
24149 (VQSHRNBQ_M_N): Likewise.
24150 (VQSHRNTQ_M_N): Likewise.
24151 (VRSHRNBQ_M_N): Likewise.
24152 (VRSHRNTQ_M_N): Likewise.
24153 (VSHLLBQ_M_N): Likewise.
24154 (VSHLLTQ_M_N): Likewise.
24155 (VSHRNBQ_M_N): Likewise.
24156 (VSHRNTQ_M_N): Likewise.
24157 (mve_vmlaldavaq_p_<supf><mode>): Define RTL pattern.
24158 (mve_vmlaldavaxq_p_<supf><mode>): Likewise.
24159 (mve_vqrshrnbq_m_n_<supf><mode>): Likewise.
24160 (mve_vqrshrntq_m_n_<supf><mode>): Likewise.
24161 (mve_vqshrnbq_m_n_<supf><mode>): Likewise.
24162 (mve_vqshrntq_m_n_<supf><mode>): Likewise.
24163 (mve_vrmlaldavhaq_p_sv4si): Likewise.
24164 (mve_vrshrnbq_m_n_<supf><mode>): Likewise.
24165 (mve_vrshrntq_m_n_<supf><mode>): Likewise.
24166 (mve_vshllbq_m_n_<supf><mode>): Likewise.
24167 (mve_vshlltq_m_n_<supf><mode>): Likewise.
24168 (mve_vshrnbq_m_n_<supf><mode>): Likewise.
24169 (mve_vshrntq_m_n_<supf><mode>): Likewise.
24170 (mve_vmlsldavaq_p_s<mode>): Likewise.
24171 (mve_vmlsldavaxq_p_s<mode>): Likewise.
24172 (mve_vmullbq_poly_m_p<mode>): Likewise.
24173 (mve_vmulltq_poly_m_p<mode>): Likewise.
24174 (mve_vqdmullbq_m_n_s<mode>): Likewise.
24175 (mve_vqdmullbq_m_s<mode>): Likewise.
24176 (mve_vqdmulltq_m_n_s<mode>): Likewise.
24177 (mve_vqdmulltq_m_s<mode>): Likewise.
24178 (mve_vqrshrunbq_m_n_s<mode>): Likewise.
24179 (mve_vqrshruntq_m_n_s<mode>): Likewise.
24180 (mve_vqshrunbq_m_n_s<mode>): Likewise.
24181 (mve_vqshruntq_m_n_s<mode>): Likewise.
24182 (mve_vrmlaldavhaq_p_uv4si): Likewise.
24183 (mve_vrmlaldavhaxq_p_sv4si): Likewise.
24184 (mve_vrmlsldavhaq_p_sv4si): Likewise.
24185 (mve_vrmlsldavhaxq_p_sv4si): Likewise.
24187 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
24188 Mihail Ionescu <mihail.ionescu@arm.com>
24189 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24191 * config/arm/arm_mve.h (vabdq_m_s8): Define macro.
24192 (vabdq_m_s32): Likewise.
24193 (vabdq_m_s16): Likewise.
24194 (vabdq_m_u8): Likewise.
24195 (vabdq_m_u32): Likewise.
24196 (vabdq_m_u16): Likewise.
24197 (vaddq_m_n_s8): Likewise.
24198 (vaddq_m_n_s32): Likewise.
24199 (vaddq_m_n_s16): Likewise.
24200 (vaddq_m_n_u8): Likewise.
24201 (vaddq_m_n_u32): Likewise.
24202 (vaddq_m_n_u16): Likewise.
24203 (vaddq_m_s8): Likewise.
24204 (vaddq_m_s32): Likewise.
24205 (vaddq_m_s16): Likewise.
24206 (vaddq_m_u8): Likewise.
24207 (vaddq_m_u32): Likewise.
24208 (vaddq_m_u16): Likewise.
24209 (vandq_m_s8): Likewise.
24210 (vandq_m_s32): Likewise.
24211 (vandq_m_s16): Likewise.
24212 (vandq_m_u8): Likewise.
24213 (vandq_m_u32): Likewise.
24214 (vandq_m_u16): Likewise.
24215 (vbicq_m_s8): Likewise.
24216 (vbicq_m_s32): Likewise.
24217 (vbicq_m_s16): Likewise.
24218 (vbicq_m_u8): Likewise.
24219 (vbicq_m_u32): Likewise.
24220 (vbicq_m_u16): Likewise.
24221 (vbrsrq_m_n_s8): Likewise.
24222 (vbrsrq_m_n_s32): Likewise.
24223 (vbrsrq_m_n_s16): Likewise.
24224 (vbrsrq_m_n_u8): Likewise.
24225 (vbrsrq_m_n_u32): Likewise.
24226 (vbrsrq_m_n_u16): Likewise.
24227 (vcaddq_rot270_m_s8): Likewise.
24228 (vcaddq_rot270_m_s32): Likewise.
24229 (vcaddq_rot270_m_s16): Likewise.
24230 (vcaddq_rot270_m_u8): Likewise.
24231 (vcaddq_rot270_m_u32): Likewise.
24232 (vcaddq_rot270_m_u16): Likewise.
24233 (vcaddq_rot90_m_s8): Likewise.
24234 (vcaddq_rot90_m_s32): Likewise.
24235 (vcaddq_rot90_m_s16): Likewise.
24236 (vcaddq_rot90_m_u8): Likewise.
24237 (vcaddq_rot90_m_u32): Likewise.
24238 (vcaddq_rot90_m_u16): Likewise.
24239 (veorq_m_s8): Likewise.
24240 (veorq_m_s32): Likewise.
24241 (veorq_m_s16): Likewise.
24242 (veorq_m_u8): Likewise.
24243 (veorq_m_u32): Likewise.
24244 (veorq_m_u16): Likewise.
24245 (vhaddq_m_n_s8): Likewise.
24246 (vhaddq_m_n_s32): Likewise.
24247 (vhaddq_m_n_s16): Likewise.
24248 (vhaddq_m_n_u8): Likewise.
24249 (vhaddq_m_n_u32): Likewise.
24250 (vhaddq_m_n_u16): Likewise.
24251 (vhaddq_m_s8): Likewise.
24252 (vhaddq_m_s32): Likewise.
24253 (vhaddq_m_s16): Likewise.
24254 (vhaddq_m_u8): Likewise.
24255 (vhaddq_m_u32): Likewise.
24256 (vhaddq_m_u16): Likewise.
24257 (vhcaddq_rot270_m_s8): Likewise.
24258 (vhcaddq_rot270_m_s32): Likewise.
24259 (vhcaddq_rot270_m_s16): Likewise.
24260 (vhcaddq_rot90_m_s8): Likewise.
24261 (vhcaddq_rot90_m_s32): Likewise.
24262 (vhcaddq_rot90_m_s16): Likewise.
24263 (vhsubq_m_n_s8): Likewise.
24264 (vhsubq_m_n_s32): Likewise.
24265 (vhsubq_m_n_s16): Likewise.
24266 (vhsubq_m_n_u8): Likewise.
24267 (vhsubq_m_n_u32): Likewise.
24268 (vhsubq_m_n_u16): Likewise.
24269 (vhsubq_m_s8): Likewise.
24270 (vhsubq_m_s32): Likewise.
24271 (vhsubq_m_s16): Likewise.
24272 (vhsubq_m_u8): Likewise.
24273 (vhsubq_m_u32): Likewise.
24274 (vhsubq_m_u16): Likewise.
24275 (vmaxq_m_s8): Likewise.
24276 (vmaxq_m_s32): Likewise.
24277 (vmaxq_m_s16): Likewise.
24278 (vmaxq_m_u8): Likewise.
24279 (vmaxq_m_u32): Likewise.
24280 (vmaxq_m_u16): Likewise.
24281 (vminq_m_s8): Likewise.
24282 (vminq_m_s32): Likewise.
24283 (vminq_m_s16): Likewise.
24284 (vminq_m_u8): Likewise.
24285 (vminq_m_u32): Likewise.
24286 (vminq_m_u16): Likewise.
24287 (vmladavaq_p_s8): Likewise.
24288 (vmladavaq_p_s32): Likewise.
24289 (vmladavaq_p_s16): Likewise.
24290 (vmladavaq_p_u8): Likewise.
24291 (vmladavaq_p_u32): Likewise.
24292 (vmladavaq_p_u16): Likewise.
24293 (vmladavaxq_p_s8): Likewise.
24294 (vmladavaxq_p_s32): Likewise.
24295 (vmladavaxq_p_s16): Likewise.
24296 (vmlaq_m_n_s8): Likewise.
24297 (vmlaq_m_n_s32): Likewise.
24298 (vmlaq_m_n_s16): Likewise.
24299 (vmlaq_m_n_u8): Likewise.
24300 (vmlaq_m_n_u32): Likewise.
24301 (vmlaq_m_n_u16): Likewise.
24302 (vmlasq_m_n_s8): Likewise.
24303 (vmlasq_m_n_s32): Likewise.
24304 (vmlasq_m_n_s16): Likewise.
24305 (vmlasq_m_n_u8): Likewise.
24306 (vmlasq_m_n_u32): Likewise.
24307 (vmlasq_m_n_u16): Likewise.
24308 (vmlsdavaq_p_s8): Likewise.
24309 (vmlsdavaq_p_s32): Likewise.
24310 (vmlsdavaq_p_s16): Likewise.
24311 (vmlsdavaxq_p_s8): Likewise.
24312 (vmlsdavaxq_p_s32): Likewise.
24313 (vmlsdavaxq_p_s16): Likewise.
24314 (vmulhq_m_s8): Likewise.
24315 (vmulhq_m_s32): Likewise.
24316 (vmulhq_m_s16): Likewise.
24317 (vmulhq_m_u8): Likewise.
24318 (vmulhq_m_u32): Likewise.
24319 (vmulhq_m_u16): Likewise.
24320 (vmullbq_int_m_s8): Likewise.
24321 (vmullbq_int_m_s32): Likewise.
24322 (vmullbq_int_m_s16): Likewise.
24323 (vmullbq_int_m_u8): Likewise.
24324 (vmullbq_int_m_u32): Likewise.
24325 (vmullbq_int_m_u16): Likewise.
24326 (vmulltq_int_m_s8): Likewise.
24327 (vmulltq_int_m_s32): Likewise.
24328 (vmulltq_int_m_s16): Likewise.
24329 (vmulltq_int_m_u8): Likewise.
24330 (vmulltq_int_m_u32): Likewise.
24331 (vmulltq_int_m_u16): Likewise.
24332 (vmulq_m_n_s8): Likewise.
24333 (vmulq_m_n_s32): Likewise.
24334 (vmulq_m_n_s16): Likewise.
24335 (vmulq_m_n_u8): Likewise.
24336 (vmulq_m_n_u32): Likewise.
24337 (vmulq_m_n_u16): Likewise.
24338 (vmulq_m_s8): Likewise.
24339 (vmulq_m_s32): Likewise.
24340 (vmulq_m_s16): Likewise.
24341 (vmulq_m_u8): Likewise.
24342 (vmulq_m_u32): Likewise.
24343 (vmulq_m_u16): Likewise.
24344 (vornq_m_s8): Likewise.
24345 (vornq_m_s32): Likewise.
24346 (vornq_m_s16): Likewise.
24347 (vornq_m_u8): Likewise.
24348 (vornq_m_u32): Likewise.
24349 (vornq_m_u16): Likewise.
24350 (vorrq_m_s8): Likewise.
24351 (vorrq_m_s32): Likewise.
24352 (vorrq_m_s16): Likewise.
24353 (vorrq_m_u8): Likewise.
24354 (vorrq_m_u32): Likewise.
24355 (vorrq_m_u16): Likewise.
24356 (vqaddq_m_n_s8): Likewise.
24357 (vqaddq_m_n_s32): Likewise.
24358 (vqaddq_m_n_s16): Likewise.
24359 (vqaddq_m_n_u8): Likewise.
24360 (vqaddq_m_n_u32): Likewise.
24361 (vqaddq_m_n_u16): Likewise.
24362 (vqaddq_m_s8): Likewise.
24363 (vqaddq_m_s32): Likewise.
24364 (vqaddq_m_s16): Likewise.
24365 (vqaddq_m_u8): Likewise.
24366 (vqaddq_m_u32): Likewise.
24367 (vqaddq_m_u16): Likewise.
24368 (vqdmladhq_m_s8): Likewise.
24369 (vqdmladhq_m_s32): Likewise.
24370 (vqdmladhq_m_s16): Likewise.
24371 (vqdmladhxq_m_s8): Likewise.
24372 (vqdmladhxq_m_s32): Likewise.
24373 (vqdmladhxq_m_s16): Likewise.
24374 (vqdmlahq_m_n_s8): Likewise.
24375 (vqdmlahq_m_n_s32): Likewise.
24376 (vqdmlahq_m_n_s16): Likewise.
24377 (vqdmlahq_m_n_u8): Likewise.
24378 (vqdmlahq_m_n_u32): Likewise.
24379 (vqdmlahq_m_n_u16): Likewise.
24380 (vqdmlsdhq_m_s8): Likewise.
24381 (vqdmlsdhq_m_s32): Likewise.
24382 (vqdmlsdhq_m_s16): Likewise.
24383 (vqdmlsdhxq_m_s8): Likewise.
24384 (vqdmlsdhxq_m_s32): Likewise.
24385 (vqdmlsdhxq_m_s16): Likewise.
24386 (vqdmulhq_m_n_s8): Likewise.
24387 (vqdmulhq_m_n_s32): Likewise.
24388 (vqdmulhq_m_n_s16): Likewise.
24389 (vqdmulhq_m_s8): Likewise.
24390 (vqdmulhq_m_s32): Likewise.
24391 (vqdmulhq_m_s16): Likewise.
24392 (vqrdmladhq_m_s8): Likewise.
24393 (vqrdmladhq_m_s32): Likewise.
24394 (vqrdmladhq_m_s16): Likewise.
24395 (vqrdmladhxq_m_s8): Likewise.
24396 (vqrdmladhxq_m_s32): Likewise.
24397 (vqrdmladhxq_m_s16): Likewise.
24398 (vqrdmlahq_m_n_s8): Likewise.
24399 (vqrdmlahq_m_n_s32): Likewise.
24400 (vqrdmlahq_m_n_s16): Likewise.
24401 (vqrdmlahq_m_n_u8): Likewise.
24402 (vqrdmlahq_m_n_u32): Likewise.
24403 (vqrdmlahq_m_n_u16): Likewise.
24404 (vqrdmlashq_m_n_s8): Likewise.
24405 (vqrdmlashq_m_n_s32): Likewise.
24406 (vqrdmlashq_m_n_s16): Likewise.
24407 (vqrdmlashq_m_n_u8): Likewise.
24408 (vqrdmlashq_m_n_u32): Likewise.
24409 (vqrdmlashq_m_n_u16): Likewise.
24410 (vqrdmlsdhq_m_s8): Likewise.
24411 (vqrdmlsdhq_m_s32): Likewise.
24412 (vqrdmlsdhq_m_s16): Likewise.
24413 (vqrdmlsdhxq_m_s8): Likewise.
24414 (vqrdmlsdhxq_m_s32): Likewise.
24415 (vqrdmlsdhxq_m_s16): Likewise.
24416 (vqrdmulhq_m_n_s8): Likewise.
24417 (vqrdmulhq_m_n_s32): Likewise.
24418 (vqrdmulhq_m_n_s16): Likewise.
24419 (vqrdmulhq_m_s8): Likewise.
24420 (vqrdmulhq_m_s32): Likewise.
24421 (vqrdmulhq_m_s16): Likewise.
24422 (vqrshlq_m_s8): Likewise.
24423 (vqrshlq_m_s32): Likewise.
24424 (vqrshlq_m_s16): Likewise.
24425 (vqrshlq_m_u8): Likewise.
24426 (vqrshlq_m_u32): Likewise.
24427 (vqrshlq_m_u16): Likewise.
24428 (vqshlq_m_n_s8): Likewise.
24429 (vqshlq_m_n_s32): Likewise.
24430 (vqshlq_m_n_s16): Likewise.
24431 (vqshlq_m_n_u8): Likewise.
24432 (vqshlq_m_n_u32): Likewise.
24433 (vqshlq_m_n_u16): Likewise.
24434 (vqshlq_m_s8): Likewise.
24435 (vqshlq_m_s32): Likewise.
24436 (vqshlq_m_s16): Likewise.
24437 (vqshlq_m_u8): Likewise.
24438 (vqshlq_m_u32): Likewise.
24439 (vqshlq_m_u16): Likewise.
24440 (vqsubq_m_n_s8): Likewise.
24441 (vqsubq_m_n_s32): Likewise.
24442 (vqsubq_m_n_s16): Likewise.
24443 (vqsubq_m_n_u8): Likewise.
24444 (vqsubq_m_n_u32): Likewise.
24445 (vqsubq_m_n_u16): Likewise.
24446 (vqsubq_m_s8): Likewise.
24447 (vqsubq_m_s32): Likewise.
24448 (vqsubq_m_s16): Likewise.
24449 (vqsubq_m_u8): Likewise.
24450 (vqsubq_m_u32): Likewise.
24451 (vqsubq_m_u16): Likewise.
24452 (vrhaddq_m_s8): Likewise.
24453 (vrhaddq_m_s32): Likewise.
24454 (vrhaddq_m_s16): Likewise.
24455 (vrhaddq_m_u8): Likewise.
24456 (vrhaddq_m_u32): Likewise.
24457 (vrhaddq_m_u16): Likewise.
24458 (vrmulhq_m_s8): Likewise.
24459 (vrmulhq_m_s32): Likewise.
24460 (vrmulhq_m_s16): Likewise.
24461 (vrmulhq_m_u8): Likewise.
24462 (vrmulhq_m_u32): Likewise.
24463 (vrmulhq_m_u16): Likewise.
24464 (vrshlq_m_s8): Likewise.
24465 (vrshlq_m_s32): Likewise.
24466 (vrshlq_m_s16): Likewise.
24467 (vrshlq_m_u8): Likewise.
24468 (vrshlq_m_u32): Likewise.
24469 (vrshlq_m_u16): Likewise.
24470 (vrshrq_m_n_s8): Likewise.
24471 (vrshrq_m_n_s32): Likewise.
24472 (vrshrq_m_n_s16): Likewise.
24473 (vrshrq_m_n_u8): Likewise.
24474 (vrshrq_m_n_u32): Likewise.
24475 (vrshrq_m_n_u16): Likewise.
24476 (vshlq_m_n_s8): Likewise.
24477 (vshlq_m_n_s32): Likewise.
24478 (vshlq_m_n_s16): Likewise.
24479 (vshlq_m_n_u8): Likewise.
24480 (vshlq_m_n_u32): Likewise.
24481 (vshlq_m_n_u16): Likewise.
24482 (vshrq_m_n_s8): Likewise.
24483 (vshrq_m_n_s32): Likewise.
24484 (vshrq_m_n_s16): Likewise.
24485 (vshrq_m_n_u8): Likewise.
24486 (vshrq_m_n_u32): Likewise.
24487 (vshrq_m_n_u16): Likewise.
24488 (vsliq_m_n_s8): Likewise.
24489 (vsliq_m_n_s32): Likewise.
24490 (vsliq_m_n_s16): Likewise.
24491 (vsliq_m_n_u8): Likewise.
24492 (vsliq_m_n_u32): Likewise.
24493 (vsliq_m_n_u16): Likewise.
24494 (vsubq_m_n_s8): Likewise.
24495 (vsubq_m_n_s32): Likewise.
24496 (vsubq_m_n_s16): Likewise.
24497 (vsubq_m_n_u8): Likewise.
24498 (vsubq_m_n_u32): Likewise.
24499 (vsubq_m_n_u16): Likewise.
24500 (__arm_vabdq_m_s8): Define intrinsic.
24501 (__arm_vabdq_m_s32): Likewise.
24502 (__arm_vabdq_m_s16): Likewise.
24503 (__arm_vabdq_m_u8): Likewise.
24504 (__arm_vabdq_m_u32): Likewise.
24505 (__arm_vabdq_m_u16): Likewise.
24506 (__arm_vaddq_m_n_s8): Likewise.
24507 (__arm_vaddq_m_n_s32): Likewise.
24508 (__arm_vaddq_m_n_s16): Likewise.
24509 (__arm_vaddq_m_n_u8): Likewise.
24510 (__arm_vaddq_m_n_u32): Likewise.
24511 (__arm_vaddq_m_n_u16): Likewise.
24512 (__arm_vaddq_m_s8): Likewise.
24513 (__arm_vaddq_m_s32): Likewise.
24514 (__arm_vaddq_m_s16): Likewise.
24515 (__arm_vaddq_m_u8): Likewise.
24516 (__arm_vaddq_m_u32): Likewise.
24517 (__arm_vaddq_m_u16): Likewise.
24518 (__arm_vandq_m_s8): Likewise.
24519 (__arm_vandq_m_s32): Likewise.
24520 (__arm_vandq_m_s16): Likewise.
24521 (__arm_vandq_m_u8): Likewise.
24522 (__arm_vandq_m_u32): Likewise.
24523 (__arm_vandq_m_u16): Likewise.
24524 (__arm_vbicq_m_s8): Likewise.
24525 (__arm_vbicq_m_s32): Likewise.
24526 (__arm_vbicq_m_s16): Likewise.
24527 (__arm_vbicq_m_u8): Likewise.
24528 (__arm_vbicq_m_u32): Likewise.
24529 (__arm_vbicq_m_u16): Likewise.
24530 (__arm_vbrsrq_m_n_s8): Likewise.
24531 (__arm_vbrsrq_m_n_s32): Likewise.
24532 (__arm_vbrsrq_m_n_s16): Likewise.
24533 (__arm_vbrsrq_m_n_u8): Likewise.
24534 (__arm_vbrsrq_m_n_u32): Likewise.
24535 (__arm_vbrsrq_m_n_u16): Likewise.
24536 (__arm_vcaddq_rot270_m_s8): Likewise.
24537 (__arm_vcaddq_rot270_m_s32): Likewise.
24538 (__arm_vcaddq_rot270_m_s16): Likewise.
24539 (__arm_vcaddq_rot270_m_u8): Likewise.
24540 (__arm_vcaddq_rot270_m_u32): Likewise.
24541 (__arm_vcaddq_rot270_m_u16): Likewise.
24542 (__arm_vcaddq_rot90_m_s8): Likewise.
24543 (__arm_vcaddq_rot90_m_s32): Likewise.
24544 (__arm_vcaddq_rot90_m_s16): Likewise.
24545 (__arm_vcaddq_rot90_m_u8): Likewise.
24546 (__arm_vcaddq_rot90_m_u32): Likewise.
24547 (__arm_vcaddq_rot90_m_u16): Likewise.
24548 (__arm_veorq_m_s8): Likewise.
24549 (__arm_veorq_m_s32): Likewise.
24550 (__arm_veorq_m_s16): Likewise.
24551 (__arm_veorq_m_u8): Likewise.
24552 (__arm_veorq_m_u32): Likewise.
24553 (__arm_veorq_m_u16): Likewise.
24554 (__arm_vhaddq_m_n_s8): Likewise.
24555 (__arm_vhaddq_m_n_s32): Likewise.
24556 (__arm_vhaddq_m_n_s16): Likewise.
24557 (__arm_vhaddq_m_n_u8): Likewise.
24558 (__arm_vhaddq_m_n_u32): Likewise.
24559 (__arm_vhaddq_m_n_u16): Likewise.
24560 (__arm_vhaddq_m_s8): Likewise.
24561 (__arm_vhaddq_m_s32): Likewise.
24562 (__arm_vhaddq_m_s16): Likewise.
24563 (__arm_vhaddq_m_u8): Likewise.
24564 (__arm_vhaddq_m_u32): Likewise.
24565 (__arm_vhaddq_m_u16): Likewise.
24566 (__arm_vhcaddq_rot270_m_s8): Likewise.
24567 (__arm_vhcaddq_rot270_m_s32): Likewise.
24568 (__arm_vhcaddq_rot270_m_s16): Likewise.
24569 (__arm_vhcaddq_rot90_m_s8): Likewise.
24570 (__arm_vhcaddq_rot90_m_s32): Likewise.
24571 (__arm_vhcaddq_rot90_m_s16): Likewise.
24572 (__arm_vhsubq_m_n_s8): Likewise.
24573 (__arm_vhsubq_m_n_s32): Likewise.
24574 (__arm_vhsubq_m_n_s16): Likewise.
24575 (__arm_vhsubq_m_n_u8): Likewise.
24576 (__arm_vhsubq_m_n_u32): Likewise.
24577 (__arm_vhsubq_m_n_u16): Likewise.
24578 (__arm_vhsubq_m_s8): Likewise.
24579 (__arm_vhsubq_m_s32): Likewise.
24580 (__arm_vhsubq_m_s16): Likewise.
24581 (__arm_vhsubq_m_u8): Likewise.
24582 (__arm_vhsubq_m_u32): Likewise.
24583 (__arm_vhsubq_m_u16): Likewise.
24584 (__arm_vmaxq_m_s8): Likewise.
24585 (__arm_vmaxq_m_s32): Likewise.
24586 (__arm_vmaxq_m_s16): Likewise.
24587 (__arm_vmaxq_m_u8): Likewise.
24588 (__arm_vmaxq_m_u32): Likewise.
24589 (__arm_vmaxq_m_u16): Likewise.
24590 (__arm_vminq_m_s8): Likewise.
24591 (__arm_vminq_m_s32): Likewise.
24592 (__arm_vminq_m_s16): Likewise.
24593 (__arm_vminq_m_u8): Likewise.
24594 (__arm_vminq_m_u32): Likewise.
24595 (__arm_vminq_m_u16): Likewise.
24596 (__arm_vmladavaq_p_s8): Likewise.
24597 (__arm_vmladavaq_p_s32): Likewise.
24598 (__arm_vmladavaq_p_s16): Likewise.
24599 (__arm_vmladavaq_p_u8): Likewise.
24600 (__arm_vmladavaq_p_u32): Likewise.
24601 (__arm_vmladavaq_p_u16): Likewise.
24602 (__arm_vmladavaxq_p_s8): Likewise.
24603 (__arm_vmladavaxq_p_s32): Likewise.
24604 (__arm_vmladavaxq_p_s16): Likewise.
24605 (__arm_vmlaq_m_n_s8): Likewise.
24606 (__arm_vmlaq_m_n_s32): Likewise.
24607 (__arm_vmlaq_m_n_s16): Likewise.
24608 (__arm_vmlaq_m_n_u8): Likewise.
24609 (__arm_vmlaq_m_n_u32): Likewise.
24610 (__arm_vmlaq_m_n_u16): Likewise.
24611 (__arm_vmlasq_m_n_s8): Likewise.
24612 (__arm_vmlasq_m_n_s32): Likewise.
24613 (__arm_vmlasq_m_n_s16): Likewise.
24614 (__arm_vmlasq_m_n_u8): Likewise.
24615 (__arm_vmlasq_m_n_u32): Likewise.
24616 (__arm_vmlasq_m_n_u16): Likewise.
24617 (__arm_vmlsdavaq_p_s8): Likewise.
24618 (__arm_vmlsdavaq_p_s32): Likewise.
24619 (__arm_vmlsdavaq_p_s16): Likewise.
24620 (__arm_vmlsdavaxq_p_s8): Likewise.
24621 (__arm_vmlsdavaxq_p_s32): Likewise.
24622 (__arm_vmlsdavaxq_p_s16): Likewise.
24623 (__arm_vmulhq_m_s8): Likewise.
24624 (__arm_vmulhq_m_s32): Likewise.
24625 (__arm_vmulhq_m_s16): Likewise.
24626 (__arm_vmulhq_m_u8): Likewise.
24627 (__arm_vmulhq_m_u32): Likewise.
24628 (__arm_vmulhq_m_u16): Likewise.
24629 (__arm_vmullbq_int_m_s8): Likewise.
24630 (__arm_vmullbq_int_m_s32): Likewise.
24631 (__arm_vmullbq_int_m_s16): Likewise.
24632 (__arm_vmullbq_int_m_u8): Likewise.
24633 (__arm_vmullbq_int_m_u32): Likewise.
24634 (__arm_vmullbq_int_m_u16): Likewise.
24635 (__arm_vmulltq_int_m_s8): Likewise.
24636 (__arm_vmulltq_int_m_s32): Likewise.
24637 (__arm_vmulltq_int_m_s16): Likewise.
24638 (__arm_vmulltq_int_m_u8): Likewise.
24639 (__arm_vmulltq_int_m_u32): Likewise.
24640 (__arm_vmulltq_int_m_u16): Likewise.
24641 (__arm_vmulq_m_n_s8): Likewise.
24642 (__arm_vmulq_m_n_s32): Likewise.
24643 (__arm_vmulq_m_n_s16): Likewise.
24644 (__arm_vmulq_m_n_u8): Likewise.
24645 (__arm_vmulq_m_n_u32): Likewise.
24646 (__arm_vmulq_m_n_u16): Likewise.
24647 (__arm_vmulq_m_s8): Likewise.
24648 (__arm_vmulq_m_s32): Likewise.
24649 (__arm_vmulq_m_s16): Likewise.
24650 (__arm_vmulq_m_u8): Likewise.
24651 (__arm_vmulq_m_u32): Likewise.
24652 (__arm_vmulq_m_u16): Likewise.
24653 (__arm_vornq_m_s8): Likewise.
24654 (__arm_vornq_m_s32): Likewise.
24655 (__arm_vornq_m_s16): Likewise.
24656 (__arm_vornq_m_u8): Likewise.
24657 (__arm_vornq_m_u32): Likewise.
24658 (__arm_vornq_m_u16): Likewise.
24659 (__arm_vorrq_m_s8): Likewise.
24660 (__arm_vorrq_m_s32): Likewise.
24661 (__arm_vorrq_m_s16): Likewise.
24662 (__arm_vorrq_m_u8): Likewise.
24663 (__arm_vorrq_m_u32): Likewise.
24664 (__arm_vorrq_m_u16): Likewise.
24665 (__arm_vqaddq_m_n_s8): Likewise.
24666 (__arm_vqaddq_m_n_s32): Likewise.
24667 (__arm_vqaddq_m_n_s16): Likewise.
24668 (__arm_vqaddq_m_n_u8): Likewise.
24669 (__arm_vqaddq_m_n_u32): Likewise.
24670 (__arm_vqaddq_m_n_u16): Likewise.
24671 (__arm_vqaddq_m_s8): Likewise.
24672 (__arm_vqaddq_m_s32): Likewise.
24673 (__arm_vqaddq_m_s16): Likewise.
24674 (__arm_vqaddq_m_u8): Likewise.
24675 (__arm_vqaddq_m_u32): Likewise.
24676 (__arm_vqaddq_m_u16): Likewise.
24677 (__arm_vqdmladhq_m_s8): Likewise.
24678 (__arm_vqdmladhq_m_s32): Likewise.
24679 (__arm_vqdmladhq_m_s16): Likewise.
24680 (__arm_vqdmladhxq_m_s8): Likewise.
24681 (__arm_vqdmladhxq_m_s32): Likewise.
24682 (__arm_vqdmladhxq_m_s16): Likewise.
24683 (__arm_vqdmlahq_m_n_s8): Likewise.
24684 (__arm_vqdmlahq_m_n_s32): Likewise.
24685 (__arm_vqdmlahq_m_n_s16): Likewise.
24686 (__arm_vqdmlahq_m_n_u8): Likewise.
24687 (__arm_vqdmlahq_m_n_u32): Likewise.
24688 (__arm_vqdmlahq_m_n_u16): Likewise.
24689 (__arm_vqdmlsdhq_m_s8): Likewise.
24690 (__arm_vqdmlsdhq_m_s32): Likewise.
24691 (__arm_vqdmlsdhq_m_s16): Likewise.
24692 (__arm_vqdmlsdhxq_m_s8): Likewise.
24693 (__arm_vqdmlsdhxq_m_s32): Likewise.
24694 (__arm_vqdmlsdhxq_m_s16): Likewise.
24695 (__arm_vqdmulhq_m_n_s8): Likewise.
24696 (__arm_vqdmulhq_m_n_s32): Likewise.
24697 (__arm_vqdmulhq_m_n_s16): Likewise.
24698 (__arm_vqdmulhq_m_s8): Likewise.
24699 (__arm_vqdmulhq_m_s32): Likewise.
24700 (__arm_vqdmulhq_m_s16): Likewise.
24701 (__arm_vqrdmladhq_m_s8): Likewise.
24702 (__arm_vqrdmladhq_m_s32): Likewise.
24703 (__arm_vqrdmladhq_m_s16): Likewise.
24704 (__arm_vqrdmladhxq_m_s8): Likewise.
24705 (__arm_vqrdmladhxq_m_s32): Likewise.
24706 (__arm_vqrdmladhxq_m_s16): Likewise.
24707 (__arm_vqrdmlahq_m_n_s8): Likewise.
24708 (__arm_vqrdmlahq_m_n_s32): Likewise.
24709 (__arm_vqrdmlahq_m_n_s16): Likewise.
24710 (__arm_vqrdmlahq_m_n_u8): Likewise.
24711 (__arm_vqrdmlahq_m_n_u32): Likewise.
24712 (__arm_vqrdmlahq_m_n_u16): Likewise.
24713 (__arm_vqrdmlashq_m_n_s8): Likewise.
24714 (__arm_vqrdmlashq_m_n_s32): Likewise.
24715 (__arm_vqrdmlashq_m_n_s16): Likewise.
24716 (__arm_vqrdmlashq_m_n_u8): Likewise.
24717 (__arm_vqrdmlashq_m_n_u32): Likewise.
24718 (__arm_vqrdmlashq_m_n_u16): Likewise.
24719 (__arm_vqrdmlsdhq_m_s8): Likewise.
24720 (__arm_vqrdmlsdhq_m_s32): Likewise.
24721 (__arm_vqrdmlsdhq_m_s16): Likewise.
24722 (__arm_vqrdmlsdhxq_m_s8): Likewise.
24723 (__arm_vqrdmlsdhxq_m_s32): Likewise.
24724 (__arm_vqrdmlsdhxq_m_s16): Likewise.
24725 (__arm_vqrdmulhq_m_n_s8): Likewise.
24726 (__arm_vqrdmulhq_m_n_s32): Likewise.
24727 (__arm_vqrdmulhq_m_n_s16): Likewise.
24728 (__arm_vqrdmulhq_m_s8): Likewise.
24729 (__arm_vqrdmulhq_m_s32): Likewise.
24730 (__arm_vqrdmulhq_m_s16): Likewise.
24731 (__arm_vqrshlq_m_s8): Likewise.
24732 (__arm_vqrshlq_m_s32): Likewise.
24733 (__arm_vqrshlq_m_s16): Likewise.
24734 (__arm_vqrshlq_m_u8): Likewise.
24735 (__arm_vqrshlq_m_u32): Likewise.
24736 (__arm_vqrshlq_m_u16): Likewise.
24737 (__arm_vqshlq_m_n_s8): Likewise.
24738 (__arm_vqshlq_m_n_s32): Likewise.
24739 (__arm_vqshlq_m_n_s16): Likewise.
24740 (__arm_vqshlq_m_n_u8): Likewise.
24741 (__arm_vqshlq_m_n_u32): Likewise.
24742 (__arm_vqshlq_m_n_u16): Likewise.
24743 (__arm_vqshlq_m_s8): Likewise.
24744 (__arm_vqshlq_m_s32): Likewise.
24745 (__arm_vqshlq_m_s16): Likewise.
24746 (__arm_vqshlq_m_u8): Likewise.
24747 (__arm_vqshlq_m_u32): Likewise.
24748 (__arm_vqshlq_m_u16): Likewise.
24749 (__arm_vqsubq_m_n_s8): Likewise.
24750 (__arm_vqsubq_m_n_s32): Likewise.
24751 (__arm_vqsubq_m_n_s16): Likewise.
24752 (__arm_vqsubq_m_n_u8): Likewise.
24753 (__arm_vqsubq_m_n_u32): Likewise.
24754 (__arm_vqsubq_m_n_u16): Likewise.
24755 (__arm_vqsubq_m_s8): Likewise.
24756 (__arm_vqsubq_m_s32): Likewise.
24757 (__arm_vqsubq_m_s16): Likewise.
24758 (__arm_vqsubq_m_u8): Likewise.
24759 (__arm_vqsubq_m_u32): Likewise.
24760 (__arm_vqsubq_m_u16): Likewise.
24761 (__arm_vrhaddq_m_s8): Likewise.
24762 (__arm_vrhaddq_m_s32): Likewise.
24763 (__arm_vrhaddq_m_s16): Likewise.
24764 (__arm_vrhaddq_m_u8): Likewise.
24765 (__arm_vrhaddq_m_u32): Likewise.
24766 (__arm_vrhaddq_m_u16): Likewise.
24767 (__arm_vrmulhq_m_s8): Likewise.
24768 (__arm_vrmulhq_m_s32): Likewise.
24769 (__arm_vrmulhq_m_s16): Likewise.
24770 (__arm_vrmulhq_m_u8): Likewise.
24771 (__arm_vrmulhq_m_u32): Likewise.
24772 (__arm_vrmulhq_m_u16): Likewise.
24773 (__arm_vrshlq_m_s8): Likewise.
24774 (__arm_vrshlq_m_s32): Likewise.
24775 (__arm_vrshlq_m_s16): Likewise.
24776 (__arm_vrshlq_m_u8): Likewise.
24777 (__arm_vrshlq_m_u32): Likewise.
24778 (__arm_vrshlq_m_u16): Likewise.
24779 (__arm_vrshrq_m_n_s8): Likewise.
24780 (__arm_vrshrq_m_n_s32): Likewise.
24781 (__arm_vrshrq_m_n_s16): Likewise.
24782 (__arm_vrshrq_m_n_u8): Likewise.
24783 (__arm_vrshrq_m_n_u32): Likewise.
24784 (__arm_vrshrq_m_n_u16): Likewise.
24785 (__arm_vshlq_m_n_s8): Likewise.
24786 (__arm_vshlq_m_n_s32): Likewise.
24787 (__arm_vshlq_m_n_s16): Likewise.
24788 (__arm_vshlq_m_n_u8): Likewise.
24789 (__arm_vshlq_m_n_u32): Likewise.
24790 (__arm_vshlq_m_n_u16): Likewise.
24791 (__arm_vshrq_m_n_s8): Likewise.
24792 (__arm_vshrq_m_n_s32): Likewise.
24793 (__arm_vshrq_m_n_s16): Likewise.
24794 (__arm_vshrq_m_n_u8): Likewise.
24795 (__arm_vshrq_m_n_u32): Likewise.
24796 (__arm_vshrq_m_n_u16): Likewise.
24797 (__arm_vsliq_m_n_s8): Likewise.
24798 (__arm_vsliq_m_n_s32): Likewise.
24799 (__arm_vsliq_m_n_s16): Likewise.
24800 (__arm_vsliq_m_n_u8): Likewise.
24801 (__arm_vsliq_m_n_u32): Likewise.
24802 (__arm_vsliq_m_n_u16): Likewise.
24803 (__arm_vsubq_m_n_s8): Likewise.
24804 (__arm_vsubq_m_n_s32): Likewise.
24805 (__arm_vsubq_m_n_s16): Likewise.
24806 (__arm_vsubq_m_n_u8): Likewise.
24807 (__arm_vsubq_m_n_u32): Likewise.
24808 (__arm_vsubq_m_n_u16): Likewise.
24809 (vqdmladhq_m): Define polymorphic variant.
24810 (vqdmladhxq_m): Likewise.
24811 (vqdmlsdhq_m): Likewise.
24812 (vqdmlsdhxq_m): Likewise.
24813 (vabdq_m): Likewise.
24814 (vandq_m): Likewise.
24815 (vbicq_m): Likewise.
24816 (vbrsrq_m_n): Likewise.
24817 (vcaddq_rot270_m): Likewise.
24818 (vcaddq_rot90_m): Likewise.
24819 (veorq_m): Likewise.
24820 (vmaxq_m): Likewise.
24821 (vminq_m): Likewise.
24822 (vmladavaq_p): Likewise.
24823 (vmlaq_m_n): Likewise.
24824 (vmlasq_m_n): Likewise.
24825 (vmulhq_m): Likewise.
24826 (vmullbq_int_m): Likewise.
24827 (vmulltq_int_m): Likewise.
24828 (vornq_m): Likewise.
24829 (vorrq_m): Likewise.
24830 (vqdmlahq_m_n): Likewise.
24831 (vqrdmlahq_m_n): Likewise.
24832 (vqrdmlashq_m_n): Likewise.
24833 (vqrshlq_m): Likewise.
24834 (vqshlq_m_n): Likewise.
24835 (vqshlq_m): Likewise.
24836 (vrhaddq_m): Likewise.
24837 (vrmulhq_m): Likewise.
24838 (vrshlq_m): Likewise.
24839 (vrshrq_m_n): Likewise.
24840 (vshlq_m_n): Likewise.
24841 (vshrq_m_n): Likewise.
24842 (vsliq_m): Likewise.
24843 (vaddq_m_n): Likewise.
24844 (vaddq_m): Likewise.
24845 (vhaddq_m_n): Likewise.
24846 (vhaddq_m): Likewise.
24847 (vhcaddq_rot270_m): Likewise.
24848 (vhcaddq_rot90_m): Likewise.
24849 (vhsubq_m): Likewise.
24850 (vhsubq_m_n): Likewise.
24851 (vmulq_m_n): Likewise.
24852 (vmulq_m): Likewise.
24853 (vqaddq_m_n): Likewise.
24854 (vqaddq_m): Likewise.
24855 (vqdmulhq_m_n): Likewise.
24856 (vqdmulhq_m): Likewise.
24857 (vsubq_m_n): Likewise.
24858 (vsliq_m_n): Likewise.
24859 (vqsubq_m_n): Likewise.
24860 (vqsubq_m): Likewise.
24861 (vqrdmulhq_m): Likewise.
24862 (vqrdmulhq_m_n): Likewise.
24863 (vqrdmlsdhxq_m): Likewise.
24864 (vqrdmlsdhq_m): Likewise.
24865 (vqrdmladhq_m): Likewise.
24866 (vqrdmladhxq_m): Likewise.
24867 (vmlsdavaxq_p): Likewise.
24868 (vmlsdavaq_p): Likewise.
24869 (vmladavaxq_p): Likewise.
24870 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
24872 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
24873 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
24874 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE): Likewise.
24875 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
24876 * config/arm/mve.md (VHSUBQ_M): Define iterators.
24877 (VSLIQ_M_N): Likewise.
24878 (VQRDMLAHQ_M_N): Likewise.
24879 (VRSHLQ_M): Likewise.
24880 (VMINQ_M): Likewise.
24881 (VMULLBQ_INT_M): Likewise.
24882 (VMULHQ_M): Likewise.
24883 (VMULQ_M): Likewise.
24884 (VHSUBQ_M_N): Likewise.
24885 (VHADDQ_M_N): Likewise.
24886 (VORRQ_M): Likewise.
24887 (VRMULHQ_M): Likewise.
24888 (VQADDQ_M): Likewise.
24889 (VRSHRQ_M_N): Likewise.
24890 (VQSUBQ_M_N): Likewise.
24891 (VADDQ_M): Likewise.
24892 (VORNQ_M): Likewise.
24893 (VQDMLAHQ_M_N): Likewise.
24894 (VRHADDQ_M): Likewise.
24895 (VQSHLQ_M): Likewise.
24896 (VANDQ_M): Likewise.
24897 (VBICQ_M): Likewise.
24898 (VSHLQ_M_N): Likewise.
24899 (VCADDQ_ROT270_M): Likewise.
24900 (VQRSHLQ_M): Likewise.
24901 (VQADDQ_M_N): Likewise.
24902 (VADDQ_M_N): Likewise.
24903 (VMAXQ_M): Likewise.
24904 (VQSUBQ_M): Likewise.
24905 (VMLASQ_M_N): Likewise.
24906 (VMLADAVAQ_P): Likewise.
24907 (VBRSRQ_M_N): Likewise.
24908 (VMULQ_M_N): Likewise.
24909 (VCADDQ_ROT90_M): Likewise.
24910 (VMULLTQ_INT_M): Likewise.
24911 (VEORQ_M): Likewise.
24912 (VSHRQ_M_N): Likewise.
24913 (VSUBQ_M_N): Likewise.
24914 (VHADDQ_M): Likewise.
24915 (VABDQ_M): Likewise.
24916 (VQRDMLASHQ_M_N): Likewise.
24917 (VMLAQ_M_N): Likewise.
24918 (VQSHLQ_M_N): Likewise.
24919 (mve_vabdq_m_<supf><mode>): Define RTL pattern.
24920 (mve_vaddq_m_n_<supf><mode>): Likewise.
24921 (mve_vaddq_m_<supf><mode>): Likewise.
24922 (mve_vandq_m_<supf><mode>): Likewise.
24923 (mve_vbicq_m_<supf><mode>): Likewise.
24924 (mve_vbrsrq_m_n_<supf><mode>): Likewise.
24925 (mve_vcaddq_rot270_m_<supf><mode>): Likewise.
24926 (mve_vcaddq_rot90_m_<supf><mode>): Likewise.
24927 (mve_veorq_m_<supf><mode>): Likewise.
24928 (mve_vhaddq_m_n_<supf><mode>): Likewise.
24929 (mve_vhaddq_m_<supf><mode>): Likewise.
24930 (mve_vhsubq_m_n_<supf><mode>): Likewise.
24931 (mve_vhsubq_m_<supf><mode>): Likewise.
24932 (mve_vmaxq_m_<supf><mode>): Likewise.
24933 (mve_vminq_m_<supf><mode>): Likewise.
24934 (mve_vmladavaq_p_<supf><mode>): Likewise.
24935 (mve_vmlaq_m_n_<supf><mode>): Likewise.
24936 (mve_vmlasq_m_n_<supf><mode>): Likewise.
24937 (mve_vmulhq_m_<supf><mode>): Likewise.
24938 (mve_vmullbq_int_m_<supf><mode>): Likewise.
24939 (mve_vmulltq_int_m_<supf><mode>): Likewise.
24940 (mve_vmulq_m_n_<supf><mode>): Likewise.
24941 (mve_vmulq_m_<supf><mode>): Likewise.
24942 (mve_vornq_m_<supf><mode>): Likewise.
24943 (mve_vorrq_m_<supf><mode>): Likewise.
24944 (mve_vqaddq_m_n_<supf><mode>): Likewise.
24945 (mve_vqaddq_m_<supf><mode>): Likewise.
24946 (mve_vqdmlahq_m_n_<supf><mode>): Likewise.
24947 (mve_vqrdmlahq_m_n_<supf><mode>): Likewise.
24948 (mve_vqrdmlashq_m_n_<supf><mode>): Likewise.
24949 (mve_vqrshlq_m_<supf><mode>): Likewise.
24950 (mve_vqshlq_m_n_<supf><mode>): Likewise.
24951 (mve_vqshlq_m_<supf><mode>): Likewise.
24952 (mve_vqsubq_m_n_<supf><mode>): Likewise.
24953 (mve_vqsubq_m_<supf><mode>): Likewise.
24954 (mve_vrhaddq_m_<supf><mode>): Likewise.
24955 (mve_vrmulhq_m_<supf><mode>): Likewise.
24956 (mve_vrshlq_m_<supf><mode>): Likewise.
24957 (mve_vrshrq_m_n_<supf><mode>): Likewise.
24958 (mve_vshlq_m_n_<supf><mode>): Likewise.
24959 (mve_vshrq_m_n_<supf><mode>): Likewise.
24960 (mve_vsliq_m_n_<supf><mode>): Likewise.
24961 (mve_vsubq_m_n_<supf><mode>): Likewise.
24962 (mve_vhcaddq_rot270_m_s<mode>): Likewise.
24963 (mve_vhcaddq_rot90_m_s<mode>): Likewise.
24964 (mve_vmladavaxq_p_s<mode>): Likewise.
24965 (mve_vmlsdavaq_p_s<mode>): Likewise.
24966 (mve_vmlsdavaxq_p_s<mode>): Likewise.
24967 (mve_vqdmladhq_m_s<mode>): Likewise.
24968 (mve_vqdmladhxq_m_s<mode>): Likewise.
24969 (mve_vqdmlsdhq_m_s<mode>): Likewise.
24970 (mve_vqdmlsdhxq_m_s<mode>): Likewise.
24971 (mve_vqdmulhq_m_n_s<mode>): Likewise.
24972 (mve_vqdmulhq_m_s<mode>): Likewise.
24973 (mve_vqrdmladhq_m_s<mode>): Likewise.
24974 (mve_vqrdmladhxq_m_s<mode>): Likewise.
24975 (mve_vqrdmlsdhq_m_s<mode>): Likewise.
24976 (mve_vqrdmlsdhxq_m_s<mode>): Likewise.
24977 (mve_vqrdmulhq_m_n_s<mode>): Likewise.
24978 (mve_vqrdmulhq_m_s<mode>): Likewise.
24980 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
24981 Mihail Ionescu <mihail.ionescu@arm.com>
24982 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24984 * config/arm/arm-builtins.c (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS):
24985 Define builtin qualifier.
24986 (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
24987 (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
24988 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
24989 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
24990 (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
24991 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
24992 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
24993 * config/arm/arm_mve.h (vsriq_m_n_s8): Define macro.
24994 (vsubq_m_s8): Likewise.
24995 (vcvtq_m_n_f16_u16): Likewise.
24996 (vqshluq_m_n_s8): Likewise.
24997 (vabavq_p_s8): Likewise.
24998 (vsriq_m_n_u8): Likewise.
24999 (vshlq_m_u8): Likewise.
25000 (vsubq_m_u8): Likewise.
25001 (vabavq_p_u8): Likewise.
25002 (vshlq_m_s8): Likewise.
25003 (vcvtq_m_n_f16_s16): Likewise.
25004 (vsriq_m_n_s16): Likewise.
25005 (vsubq_m_s16): Likewise.
25006 (vcvtq_m_n_f32_u32): Likewise.
25007 (vqshluq_m_n_s16): Likewise.
25008 (vabavq_p_s16): Likewise.
25009 (vsriq_m_n_u16): Likewise.
25010 (vshlq_m_u16): Likewise.
25011 (vsubq_m_u16): Likewise.
25012 (vabavq_p_u16): Likewise.
25013 (vshlq_m_s16): Likewise.
25014 (vcvtq_m_n_f32_s32): Likewise.
25015 (vsriq_m_n_s32): Likewise.
25016 (vsubq_m_s32): Likewise.
25017 (vqshluq_m_n_s32): Likewise.
25018 (vabavq_p_s32): Likewise.
25019 (vsriq_m_n_u32): Likewise.
25020 (vshlq_m_u32): Likewise.
25021 (vsubq_m_u32): Likewise.
25022 (vabavq_p_u32): Likewise.
25023 (vshlq_m_s32): Likewise.
25024 (__arm_vsriq_m_n_s8): Define intrinsic.
25025 (__arm_vsubq_m_s8): Likewise.
25026 (__arm_vqshluq_m_n_s8): Likewise.
25027 (__arm_vabavq_p_s8): Likewise.
25028 (__arm_vsriq_m_n_u8): Likewise.
25029 (__arm_vshlq_m_u8): Likewise.
25030 (__arm_vsubq_m_u8): Likewise.
25031 (__arm_vabavq_p_u8): Likewise.
25032 (__arm_vshlq_m_s8): Likewise.
25033 (__arm_vsriq_m_n_s16): Likewise.
25034 (__arm_vsubq_m_s16): Likewise.
25035 (__arm_vqshluq_m_n_s16): Likewise.
25036 (__arm_vabavq_p_s16): Likewise.
25037 (__arm_vsriq_m_n_u16): Likewise.
25038 (__arm_vshlq_m_u16): Likewise.
25039 (__arm_vsubq_m_u16): Likewise.
25040 (__arm_vabavq_p_u16): Likewise.
25041 (__arm_vshlq_m_s16): Likewise.
25042 (__arm_vsriq_m_n_s32): Likewise.
25043 (__arm_vsubq_m_s32): Likewise.
25044 (__arm_vqshluq_m_n_s32): Likewise.
25045 (__arm_vabavq_p_s32): Likewise.
25046 (__arm_vsriq_m_n_u32): Likewise.
25047 (__arm_vshlq_m_u32): Likewise.
25048 (__arm_vsubq_m_u32): Likewise.
25049 (__arm_vabavq_p_u32): Likewise.
25050 (__arm_vshlq_m_s32): Likewise.
25051 (__arm_vcvtq_m_n_f16_u16): Likewise.
25052 (__arm_vcvtq_m_n_f16_s16): Likewise.
25053 (__arm_vcvtq_m_n_f32_u32): Likewise.
25054 (__arm_vcvtq_m_n_f32_s32): Likewise.
25055 (vcvtq_m_n): Define polymorphic variant.
25056 (vqshluq_m_n): Likewise.
25057 (vshlq_m): Likewise.
25058 (vsriq_m_n): Likewise.
25059 (vsubq_m): Likewise.
25060 (vabavq_p): Likewise.
25061 * config/arm/arm_mve_builtins.def
25062 (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS): Use builtin qualifier.
25063 (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
25064 (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
25065 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
25066 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
25067 (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
25068 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
25069 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
25070 * config/arm/mve.md (VABAVQ_P): Define iterator.
25071 (VSHLQ_M): Likewise.
25072 (VSRIQ_M_N): Likewise.
25073 (VSUBQ_M): Likewise.
25074 (VCVTQ_M_N_TO_F): Likewise.
25075 (mve_vabavq_p_<supf><mode>): Define RTL pattern.
25076 (mve_vqshluq_m_n_s<mode>): Likewise.
25077 (mve_vshlq_m_<supf><mode>): Likewise.
25078 (mve_vsriq_m_n_<supf><mode>): Likewise.
25079 (mve_vsubq_m_<supf><mode>): Likewise.
25080 (mve_vcvtq_m_n_to_f_<supf><mode>): Likewise.
25082 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
25083 Mihail Ionescu <mihail.ionescu@arm.com>
25084 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
25086 * config/arm/arm_mve.h (vrmlaldavhaxq_s32): Define macro.
25087 (vrmlsldavhaq_s32): Likewise.
25088 (vrmlsldavhaxq_s32): Likewise.
25089 (vaddlvaq_p_s32): Likewise.
25090 (vcvtbq_m_f16_f32): Likewise.
25091 (vcvtbq_m_f32_f16): Likewise.
25092 (vcvttq_m_f16_f32): Likewise.
25093 (vcvttq_m_f32_f16): Likewise.
25094 (vrev16q_m_s8): Likewise.
25095 (vrev32q_m_f16): Likewise.
25096 (vrmlaldavhq_p_s32): Likewise.
25097 (vrmlaldavhxq_p_s32): Likewise.
25098 (vrmlsldavhq_p_s32): Likewise.
25099 (vrmlsldavhxq_p_s32): Likewise.
25100 (vaddlvaq_p_u32): Likewise.
25101 (vrev16q_m_u8): Likewise.
25102 (vrmlaldavhq_p_u32): Likewise.
25103 (vmvnq_m_n_s16): Likewise.
25104 (vorrq_m_n_s16): Likewise.
25105 (vqrshrntq_n_s16): Likewise.
25106 (vqshrnbq_n_s16): Likewise.
25107 (vqshrntq_n_s16): Likewise.
25108 (vrshrnbq_n_s16): Likewise.
25109 (vrshrntq_n_s16): Likewise.
25110 (vshrnbq_n_s16): Likewise.
25111 (vshrntq_n_s16): Likewise.
25112 (vcmlaq_f16): Likewise.
25113 (vcmlaq_rot180_f16): Likewise.
25114 (vcmlaq_rot270_f16): Likewise.
25115 (vcmlaq_rot90_f16): Likewise.
25116 (vfmaq_f16): Likewise.
25117 (vfmaq_n_f16): Likewise.
25118 (vfmasq_n_f16): Likewise.
25119 (vfmsq_f16): Likewise.
25120 (vmlaldavaq_s16): Likewise.
25121 (vmlaldavaxq_s16): Likewise.
25122 (vmlsldavaq_s16): Likewise.
25123 (vmlsldavaxq_s16): Likewise.
25124 (vabsq_m_f16): Likewise.
25125 (vcvtmq_m_s16_f16): Likewise.
25126 (vcvtnq_m_s16_f16): Likewise.
25127 (vcvtpq_m_s16_f16): Likewise.
25128 (vcvtq_m_s16_f16): Likewise.
25129 (vdupq_m_n_f16): Likewise.
25130 (vmaxnmaq_m_f16): Likewise.
25131 (vmaxnmavq_p_f16): Likewise.
25132 (vmaxnmvq_p_f16): Likewise.
25133 (vminnmaq_m_f16): Likewise.
25134 (vminnmavq_p_f16): Likewise.
25135 (vminnmvq_p_f16): Likewise.
25136 (vmlaldavq_p_s16): Likewise.
25137 (vmlaldavxq_p_s16): Likewise.
25138 (vmlsldavq_p_s16): Likewise.
25139 (vmlsldavxq_p_s16): Likewise.
25140 (vmovlbq_m_s8): Likewise.
25141 (vmovltq_m_s8): Likewise.
25142 (vmovnbq_m_s16): Likewise.
25143 (vmovntq_m_s16): Likewise.
25144 (vnegq_m_f16): Likewise.
25145 (vpselq_f16): Likewise.
25146 (vqmovnbq_m_s16): Likewise.
25147 (vqmovntq_m_s16): Likewise.
25148 (vrev32q_m_s8): Likewise.
25149 (vrev64q_m_f16): Likewise.
25150 (vrndaq_m_f16): Likewise.
25151 (vrndmq_m_f16): Likewise.
25152 (vrndnq_m_f16): Likewise.
25153 (vrndpq_m_f16): Likewise.
25154 (vrndq_m_f16): Likewise.
25155 (vrndxq_m_f16): Likewise.
25156 (vcmpeqq_m_n_f16): Likewise.
25157 (vcmpgeq_m_f16): Likewise.
25158 (vcmpgeq_m_n_f16): Likewise.
25159 (vcmpgtq_m_f16): Likewise.
25160 (vcmpgtq_m_n_f16): Likewise.
25161 (vcmpleq_m_f16): Likewise.
25162 (vcmpleq_m_n_f16): Likewise.
25163 (vcmpltq_m_f16): Likewise.
25164 (vcmpltq_m_n_f16): Likewise.
25165 (vcmpneq_m_f16): Likewise.
25166 (vcmpneq_m_n_f16): Likewise.
25167 (vmvnq_m_n_u16): Likewise.
25168 (vorrq_m_n_u16): Likewise.
25169 (vqrshruntq_n_s16): Likewise.
25170 (vqshrunbq_n_s16): Likewise.
25171 (vqshruntq_n_s16): Likewise.
25172 (vcvtmq_m_u16_f16): Likewise.
25173 (vcvtnq_m_u16_f16): Likewise.
25174 (vcvtpq_m_u16_f16): Likewise.
25175 (vcvtq_m_u16_f16): Likewise.
25176 (vqmovunbq_m_s16): Likewise.
25177 (vqmovuntq_m_s16): Likewise.
25178 (vqrshrntq_n_u16): Likewise.
25179 (vqshrnbq_n_u16): Likewise.
25180 (vqshrntq_n_u16): Likewise.
25181 (vrshrnbq_n_u16): Likewise.
25182 (vrshrntq_n_u16): Likewise.
25183 (vshrnbq_n_u16): Likewise.
25184 (vshrntq_n_u16): Likewise.
25185 (vmlaldavaq_u16): Likewise.
25186 (vmlaldavaxq_u16): Likewise.
25187 (vmlaldavq_p_u16): Likewise.
25188 (vmlaldavxq_p_u16): Likewise.
25189 (vmovlbq_m_u8): Likewise.
25190 (vmovltq_m_u8): Likewise.
25191 (vmovnbq_m_u16): Likewise.
25192 (vmovntq_m_u16): Likewise.
25193 (vqmovnbq_m_u16): Likewise.
25194 (vqmovntq_m_u16): Likewise.
25195 (vrev32q_m_u8): Likewise.
25196 (vmvnq_m_n_s32): Likewise.
25197 (vorrq_m_n_s32): Likewise.
25198 (vqrshrntq_n_s32): Likewise.
25199 (vqshrnbq_n_s32): Likewise.
25200 (vqshrntq_n_s32): Likewise.
25201 (vrshrnbq_n_s32): Likewise.
25202 (vrshrntq_n_s32): Likewise.
25203 (vshrnbq_n_s32): Likewise.
25204 (vshrntq_n_s32): Likewise.
25205 (vcmlaq_f32): Likewise.
25206 (vcmlaq_rot180_f32): Likewise.
25207 (vcmlaq_rot270_f32): Likewise.
25208 (vcmlaq_rot90_f32): Likewise.
25209 (vfmaq_f32): Likewise.
25210 (vfmaq_n_f32): Likewise.
25211 (vfmasq_n_f32): Likewise.
25212 (vfmsq_f32): Likewise.
25213 (vmlaldavaq_s32): Likewise.
25214 (vmlaldavaxq_s32): Likewise.
25215 (vmlsldavaq_s32): Likewise.
25216 (vmlsldavaxq_s32): Likewise.
25217 (vabsq_m_f32): Likewise.
25218 (vcvtmq_m_s32_f32): Likewise.
25219 (vcvtnq_m_s32_f32): Likewise.
25220 (vcvtpq_m_s32_f32): Likewise.
25221 (vcvtq_m_s32_f32): Likewise.
25222 (vdupq_m_n_f32): Likewise.
25223 (vmaxnmaq_m_f32): Likewise.
25224 (vmaxnmavq_p_f32): Likewise.
25225 (vmaxnmvq_p_f32): Likewise.
25226 (vminnmaq_m_f32): Likewise.
25227 (vminnmavq_p_f32): Likewise.
25228 (vminnmvq_p_f32): Likewise.
25229 (vmlaldavq_p_s32): Likewise.
25230 (vmlaldavxq_p_s32): Likewise.
25231 (vmlsldavq_p_s32): Likewise.
25232 (vmlsldavxq_p_s32): Likewise.
25233 (vmovlbq_m_s16): Likewise.
25234 (vmovltq_m_s16): Likewise.
25235 (vmovnbq_m_s32): Likewise.
25236 (vmovntq_m_s32): Likewise.
25237 (vnegq_m_f32): Likewise.
25238 (vpselq_f32): Likewise.
25239 (vqmovnbq_m_s32): Likewise.
25240 (vqmovntq_m_s32): Likewise.
25241 (vrev32q_m_s16): Likewise.
25242 (vrev64q_m_f32): Likewise.
25243 (vrndaq_m_f32): Likewise.
25244 (vrndmq_m_f32): Likewise.
25245 (vrndnq_m_f32): Likewise.
25246 (vrndpq_m_f32): Likewise.
25247 (vrndq_m_f32): Likewise.
25248 (vrndxq_m_f32): Likewise.
25249 (vcmpeqq_m_n_f32): Likewise.
25250 (vcmpgeq_m_f32): Likewise.
25251 (vcmpgeq_m_n_f32): Likewise.
25252 (vcmpgtq_m_f32): Likewise.
25253 (vcmpgtq_m_n_f32): Likewise.
25254 (vcmpleq_m_f32): Likewise.
25255 (vcmpleq_m_n_f32): Likewise.
25256 (vcmpltq_m_f32): Likewise.
25257 (vcmpltq_m_n_f32): Likewise.
25258 (vcmpneq_m_f32): Likewise.
25259 (vcmpneq_m_n_f32): Likewise.
25260 (vmvnq_m_n_u32): Likewise.
25261 (vorrq_m_n_u32): Likewise.
25262 (vqrshruntq_n_s32): Likewise.
25263 (vqshrunbq_n_s32): Likewise.
25264 (vqshruntq_n_s32): Likewise.
25265 (vcvtmq_m_u32_f32): Likewise.
25266 (vcvtnq_m_u32_f32): Likewise.
25267 (vcvtpq_m_u32_f32): Likewise.
25268 (vcvtq_m_u32_f32): Likewise.
25269 (vqmovunbq_m_s32): Likewise.
25270 (vqmovuntq_m_s32): Likewise.
25271 (vqrshrntq_n_u32): Likewise.
25272 (vqshrnbq_n_u32): Likewise.
25273 (vqshrntq_n_u32): Likewise.
25274 (vrshrnbq_n_u32): Likewise.
25275 (vrshrntq_n_u32): Likewise.
25276 (vshrnbq_n_u32): Likewise.
25277 (vshrntq_n_u32): Likewise.
25278 (vmlaldavaq_u32): Likewise.
25279 (vmlaldavaxq_u32): Likewise.
25280 (vmlaldavq_p_u32): Likewise.
25281 (vmlaldavxq_p_u32): Likewise.
25282 (vmovlbq_m_u16): Likewise.
25283 (vmovltq_m_u16): Likewise.
25284 (vmovnbq_m_u32): Likewise.
25285 (vmovntq_m_u32): Likewise.
25286 (vqmovnbq_m_u32): Likewise.
25287 (vqmovntq_m_u32): Likewise.
25288 (vrev32q_m_u16): Likewise.
25289 (__arm_vrmlaldavhaxq_s32): Define intrinsic.
25290 (__arm_vrmlsldavhaq_s32): Likewise.
25291 (__arm_vrmlsldavhaxq_s32): Likewise.
25292 (__arm_vaddlvaq_p_s32): Likewise.
25293 (__arm_vrev16q_m_s8): Likewise.
25294 (__arm_vrmlaldavhq_p_s32): Likewise.
25295 (__arm_vrmlaldavhxq_p_s32): Likewise.
25296 (__arm_vrmlsldavhq_p_s32): Likewise.
25297 (__arm_vrmlsldavhxq_p_s32): Likewise.
25298 (__arm_vaddlvaq_p_u32): Likewise.
25299 (__arm_vrev16q_m_u8): Likewise.
25300 (__arm_vrmlaldavhq_p_u32): Likewise.
25301 (__arm_vmvnq_m_n_s16): Likewise.
25302 (__arm_vorrq_m_n_s16): Likewise.
25303 (__arm_vqrshrntq_n_s16): Likewise.
25304 (__arm_vqshrnbq_n_s16): Likewise.
25305 (__arm_vqshrntq_n_s16): Likewise.
25306 (__arm_vrshrnbq_n_s16): Likewise.
25307 (__arm_vrshrntq_n_s16): Likewise.
25308 (__arm_vshrnbq_n_s16): Likewise.
25309 (__arm_vshrntq_n_s16): Likewise.
25310 (__arm_vmlaldavaq_s16): Likewise.
25311 (__arm_vmlaldavaxq_s16): Likewise.
25312 (__arm_vmlsldavaq_s16): Likewise.
25313 (__arm_vmlsldavaxq_s16): Likewise.
25314 (__arm_vmlaldavq_p_s16): Likewise.
25315 (__arm_vmlaldavxq_p_s16): Likewise.
25316 (__arm_vmlsldavq_p_s16): Likewise.
25317 (__arm_vmlsldavxq_p_s16): Likewise.
25318 (__arm_vmovlbq_m_s8): Likewise.
25319 (__arm_vmovltq_m_s8): Likewise.
25320 (__arm_vmovnbq_m_s16): Likewise.
25321 (__arm_vmovntq_m_s16): Likewise.
25322 (__arm_vqmovnbq_m_s16): Likewise.
25323 (__arm_vqmovntq_m_s16): Likewise.
25324 (__arm_vrev32q_m_s8): Likewise.
25325 (__arm_vmvnq_m_n_u16): Likewise.
25326 (__arm_vorrq_m_n_u16): Likewise.
25327 (__arm_vqrshruntq_n_s16): Likewise.
25328 (__arm_vqshrunbq_n_s16): Likewise.
25329 (__arm_vqshruntq_n_s16): Likewise.
25330 (__arm_vqmovunbq_m_s16): Likewise.
25331 (__arm_vqmovuntq_m_s16): Likewise.
25332 (__arm_vqrshrntq_n_u16): Likewise.
25333 (__arm_vqshrnbq_n_u16): Likewise.
25334 (__arm_vqshrntq_n_u16): Likewise.
25335 (__arm_vrshrnbq_n_u16): Likewise.
25336 (__arm_vrshrntq_n_u16): Likewise.
25337 (__arm_vshrnbq_n_u16): Likewise.
25338 (__arm_vshrntq_n_u16): Likewise.
25339 (__arm_vmlaldavaq_u16): Likewise.
25340 (__arm_vmlaldavaxq_u16): Likewise.
25341 (__arm_vmlaldavq_p_u16): Likewise.
25342 (__arm_vmlaldavxq_p_u16): Likewise.
25343 (__arm_vmovlbq_m_u8): Likewise.
25344 (__arm_vmovltq_m_u8): Likewise.
25345 (__arm_vmovnbq_m_u16): Likewise.
25346 (__arm_vmovntq_m_u16): Likewise.
25347 (__arm_vqmovnbq_m_u16): Likewise.
25348 (__arm_vqmovntq_m_u16): Likewise.
25349 (__arm_vrev32q_m_u8): Likewise.
25350 (__arm_vmvnq_m_n_s32): Likewise.
25351 (__arm_vorrq_m_n_s32): Likewise.
25352 (__arm_vqrshrntq_n_s32): Likewise.
25353 (__arm_vqshrnbq_n_s32): Likewise.
25354 (__arm_vqshrntq_n_s32): Likewise.
25355 (__arm_vrshrnbq_n_s32): Likewise.
25356 (__arm_vrshrntq_n_s32): Likewise.
25357 (__arm_vshrnbq_n_s32): Likewise.
25358 (__arm_vshrntq_n_s32): Likewise.
25359 (__arm_vmlaldavaq_s32): Likewise.
25360 (__arm_vmlaldavaxq_s32): Likewise.
25361 (__arm_vmlsldavaq_s32): Likewise.
25362 (__arm_vmlsldavaxq_s32): Likewise.
25363 (__arm_vmlaldavq_p_s32): Likewise.
25364 (__arm_vmlaldavxq_p_s32): Likewise.
25365 (__arm_vmlsldavq_p_s32): Likewise.
25366 (__arm_vmlsldavxq_p_s32): Likewise.
25367 (__arm_vmovlbq_m_s16): Likewise.
25368 (__arm_vmovltq_m_s16): Likewise.
25369 (__arm_vmovnbq_m_s32): Likewise.
25370 (__arm_vmovntq_m_s32): Likewise.
25371 (__arm_vqmovnbq_m_s32): Likewise.
25372 (__arm_vqmovntq_m_s32): Likewise.
25373 (__arm_vrev32q_m_s16): Likewise.
25374 (__arm_vmvnq_m_n_u32): Likewise.
25375 (__arm_vorrq_m_n_u32): Likewise.
25376 (__arm_vqrshruntq_n_s32): Likewise.
25377 (__arm_vqshrunbq_n_s32): Likewise.
25378 (__arm_vqshruntq_n_s32): Likewise.
25379 (__arm_vqmovunbq_m_s32): Likewise.
25380 (__arm_vqmovuntq_m_s32): Likewise.
25381 (__arm_vqrshrntq_n_u32): Likewise.
25382 (__arm_vqshrnbq_n_u32): Likewise.
25383 (__arm_vqshrntq_n_u32): Likewise.
25384 (__arm_vrshrnbq_n_u32): Likewise.
25385 (__arm_vrshrntq_n_u32): Likewise.
25386 (__arm_vshrnbq_n_u32): Likewise.
25387 (__arm_vshrntq_n_u32): Likewise.
25388 (__arm_vmlaldavaq_u32): Likewise.
25389 (__arm_vmlaldavaxq_u32): Likewise.
25390 (__arm_vmlaldavq_p_u32): Likewise.
25391 (__arm_vmlaldavxq_p_u32): Likewise.
25392 (__arm_vmovlbq_m_u16): Likewise.
25393 (__arm_vmovltq_m_u16): Likewise.
25394 (__arm_vmovnbq_m_u32): Likewise.
25395 (__arm_vmovntq_m_u32): Likewise.
25396 (__arm_vqmovnbq_m_u32): Likewise.
25397 (__arm_vqmovntq_m_u32): Likewise.
25398 (__arm_vrev32q_m_u16): Likewise.
25399 (__arm_vcvtbq_m_f16_f32): Likewise.
25400 (__arm_vcvtbq_m_f32_f16): Likewise.
25401 (__arm_vcvttq_m_f16_f32): Likewise.
25402 (__arm_vcvttq_m_f32_f16): Likewise.
25403 (__arm_vrev32q_m_f16): Likewise.
25404 (__arm_vcmlaq_f16): Likewise.
25405 (__arm_vcmlaq_rot180_f16): Likewise.
25406 (__arm_vcmlaq_rot270_f16): Likewise.
25407 (__arm_vcmlaq_rot90_f16): Likewise.
25408 (__arm_vfmaq_f16): Likewise.
25409 (__arm_vfmaq_n_f16): Likewise.
25410 (__arm_vfmasq_n_f16): Likewise.
25411 (__arm_vfmsq_f16): Likewise.
25412 (__arm_vabsq_m_f16): Likewise.
25413 (__arm_vcvtmq_m_s16_f16): Likewise.
25414 (__arm_vcvtnq_m_s16_f16): Likewise.
25415 (__arm_vcvtpq_m_s16_f16): Likewise.
25416 (__arm_vcvtq_m_s16_f16): Likewise.
25417 (__arm_vdupq_m_n_f16): Likewise.
25418 (__arm_vmaxnmaq_m_f16): Likewise.
25419 (__arm_vmaxnmavq_p_f16): Likewise.
25420 (__arm_vmaxnmvq_p_f16): Likewise.
25421 (__arm_vminnmaq_m_f16): Likewise.
25422 (__arm_vminnmavq_p_f16): Likewise.
25423 (__arm_vminnmvq_p_f16): Likewise.
25424 (__arm_vnegq_m_f16): Likewise.
25425 (__arm_vpselq_f16): Likewise.
25426 (__arm_vrev64q_m_f16): Likewise.
25427 (__arm_vrndaq_m_f16): Likewise.
25428 (__arm_vrndmq_m_f16): Likewise.
25429 (__arm_vrndnq_m_f16): Likewise.
25430 (__arm_vrndpq_m_f16): Likewise.
25431 (__arm_vrndq_m_f16): Likewise.
25432 (__arm_vrndxq_m_f16): Likewise.
25433 (__arm_vcmpeqq_m_n_f16): Likewise.
25434 (__arm_vcmpgeq_m_f16): Likewise.
25435 (__arm_vcmpgeq_m_n_f16): Likewise.
25436 (__arm_vcmpgtq_m_f16): Likewise.
25437 (__arm_vcmpgtq_m_n_f16): Likewise.
25438 (__arm_vcmpleq_m_f16): Likewise.
25439 (__arm_vcmpleq_m_n_f16): Likewise.
25440 (__arm_vcmpltq_m_f16): Likewise.
25441 (__arm_vcmpltq_m_n_f16): Likewise.
25442 (__arm_vcmpneq_m_f16): Likewise.
25443 (__arm_vcmpneq_m_n_f16): Likewise.
25444 (__arm_vcvtmq_m_u16_f16): Likewise.
25445 (__arm_vcvtnq_m_u16_f16): Likewise.
25446 (__arm_vcvtpq_m_u16_f16): Likewise.
25447 (__arm_vcvtq_m_u16_f16): Likewise.
25448 (__arm_vcmlaq_f32): Likewise.
25449 (__arm_vcmlaq_rot180_f32): Likewise.
25450 (__arm_vcmlaq_rot270_f32): Likewise.
25451 (__arm_vcmlaq_rot90_f32): Likewise.
25452 (__arm_vfmaq_f32): Likewise.
25453 (__arm_vfmaq_n_f32): Likewise.
25454 (__arm_vfmasq_n_f32): Likewise.
25455 (__arm_vfmsq_f32): Likewise.
25456 (__arm_vabsq_m_f32): Likewise.
25457 (__arm_vcvtmq_m_s32_f32): Likewise.
25458 (__arm_vcvtnq_m_s32_f32): Likewise.
25459 (__arm_vcvtpq_m_s32_f32): Likewise.
25460 (__arm_vcvtq_m_s32_f32): Likewise.
25461 (__arm_vdupq_m_n_f32): Likewise.
25462 (__arm_vmaxnmaq_m_f32): Likewise.
25463 (__arm_vmaxnmavq_p_f32): Likewise.
25464 (__arm_vmaxnmvq_p_f32): Likewise.
25465 (__arm_vminnmaq_m_f32): Likewise.
25466 (__arm_vminnmavq_p_f32): Likewise.
25467 (__arm_vminnmvq_p_f32): Likewise.
25468 (__arm_vnegq_m_f32): Likewise.
25469 (__arm_vpselq_f32): Likewise.
25470 (__arm_vrev64q_m_f32): Likewise.
25471 (__arm_vrndaq_m_f32): Likewise.
25472 (__arm_vrndmq_m_f32): Likewise.
25473 (__arm_vrndnq_m_f32): Likewise.
25474 (__arm_vrndpq_m_f32): Likewise.
25475 (__arm_vrndq_m_f32): Likewise.
25476 (__arm_vrndxq_m_f32): Likewise.
25477 (__arm_vcmpeqq_m_n_f32): Likewise.
25478 (__arm_vcmpgeq_m_f32): Likewise.
25479 (__arm_vcmpgeq_m_n_f32): Likewise.
25480 (__arm_vcmpgtq_m_f32): Likewise.
25481 (__arm_vcmpgtq_m_n_f32): Likewise.
25482 (__arm_vcmpleq_m_f32): Likewise.
25483 (__arm_vcmpleq_m_n_f32): Likewise.
25484 (__arm_vcmpltq_m_f32): Likewise.
25485 (__arm_vcmpltq_m_n_f32): Likewise.
25486 (__arm_vcmpneq_m_f32): Likewise.
25487 (__arm_vcmpneq_m_n_f32): Likewise.
25488 (__arm_vcvtmq_m_u32_f32): Likewise.
25489 (__arm_vcvtnq_m_u32_f32): Likewise.
25490 (__arm_vcvtpq_m_u32_f32): Likewise.
25491 (__arm_vcvtq_m_u32_f32): Likewise.
25492 (vcvtq_m): Define polymorphic variant.
25493 (vabsq_m): Likewise.
25494 (vcmlaq): Likewise.
25495 (vcmlaq_rot180): Likewise.
25496 (vcmlaq_rot270): Likewise.
25497 (vcmlaq_rot90): Likewise.
25498 (vcmpeqq_m_n): Likewise.
25499 (vcmpgeq_m_n): Likewise.
25500 (vrndxq_m): Likewise.
25501 (vrndq_m): Likewise.
25502 (vrndpq_m): Likewise.
25503 (vcmpgtq_m_n): Likewise.
25504 (vcmpgtq_m): Likewise.
25505 (vcmpleq_m): Likewise.
25506 (vcmpleq_m_n): Likewise.
25507 (vcmpltq_m_n): Likewise.
25508 (vcmpltq_m): Likewise.
25509 (vcmpneq_m): Likewise.
25510 (vcmpneq_m_n): Likewise.
25511 (vcvtbq_m): Likewise.
25512 (vcvttq_m): Likewise.
25513 (vcvtmq_m): Likewise.
25514 (vcvtnq_m): Likewise.
25515 (vcvtpq_m): Likewise.
25516 (vdupq_m_n): Likewise.
25517 (vfmaq_n): Likewise.
25519 (vfmasq_n): Likewise.
25521 (vmaxnmaq_m): Likewise.
25522 (vmaxnmavq_m): Likewise.
25523 (vmaxnmvq_m): Likewise.
25524 (vmaxnmavq_p): Likewise.
25525 (vmaxnmvq_p): Likewise.
25526 (vminnmaq_m): Likewise.
25527 (vminnmavq_p): Likewise.
25528 (vminnmvq_p): Likewise.
25529 (vrndnq_m): Likewise.
25530 (vrndaq_m): Likewise.
25531 (vrndmq_m): Likewise.
25532 (vrev64q_m): Likewise.
25533 (vrev32q_m): Likewise.
25534 (vpselq): Likewise.
25535 (vnegq_m): Likewise.
25536 (vcmpgeq_m): Likewise.
25537 (vshrntq_n): Likewise.
25538 (vrshrntq_n): Likewise.
25539 (vmovlbq_m): Likewise.
25540 (vmovnbq_m): Likewise.
25541 (vmovntq_m): Likewise.
25542 (vmvnq_m_n): Likewise.
25543 (vmvnq_m): Likewise.
25544 (vshrnbq_n): Likewise.
25545 (vrshrnbq_n): Likewise.
25546 (vqshruntq_n): Likewise.
25547 (vrev16q_m): Likewise.
25548 (vqshrunbq_n): Likewise.
25549 (vqshrntq_n): Likewise.
25550 (vqrshruntq_n): Likewise.
25551 (vqrshrntq_n): Likewise.
25552 (vqshrnbq_n): Likewise.
25553 (vqmovuntq_m): Likewise.
25554 (vqmovntq_m): Likewise.
25555 (vqmovnbq_m): Likewise.
25556 (vorrq_m_n): Likewise.
25557 (vmovltq_m): Likewise.
25558 (vqmovunbq_m): Likewise.
25559 (vaddlvaq_p): Likewise.
25560 (vmlaldavaq): Likewise.
25561 (vmlaldavaxq): Likewise.
25562 (vmlaldavq_p): Likewise.
25563 (vmlaldavxq_p): Likewise.
25564 (vmlsldavaq): Likewise.
25565 (vmlsldavaxq): Likewise.
25566 (vmlsldavq_p): Likewise.
25567 (vmlsldavxq_p): Likewise.
25568 (vrmlaldavhaxq): Likewise.
25569 (vrmlaldavhq_p): Likewise.
25570 (vrmlaldavhxq_p): Likewise.
25571 (vrmlsldavhaq): Likewise.
25572 (vrmlsldavhaxq): Likewise.
25573 (vrmlsldavhq_p): Likewise.
25574 (vrmlsldavhxq_p): Likewise.
25575 * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_IMM_UNONE): Use
25577 (TERNOP_NONE_NONE_NONE_IMM): Likewise.
25578 (TERNOP_NONE_NONE_NONE_NONE): Likewise.
25579 (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
25580 (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
25581 (TERNOP_UNONE_UNONE_IMM_UNONE): Likewise.
25582 (TERNOP_UNONE_UNONE_NONE_IMM): Likewise.
25583 (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
25584 (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
25585 (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
25586 * config/arm/mve.md (MVE_constraint3): Define mode attribute iterator.
25587 (MVE_pred3): Likewise.
25588 (MVE_constraint1): Likewise.
25589 (MVE_pred1): Likewise.
25590 (VMLALDAVQ_P): Define iterator.
25591 (VQMOVNBQ_M): Likewise.
25592 (VMOVLTQ_M): Likewise.
25593 (VMOVNBQ_M): Likewise.
25594 (VRSHRNTQ_N): Likewise.
25595 (VORRQ_M_N): Likewise.
25596 (VREV32Q_M): Likewise.
25597 (VREV16Q_M): Likewise.
25598 (VQRSHRNTQ_N): Likewise.
25599 (VMOVNTQ_M): Likewise.
25600 (VMOVLBQ_M): Likewise.
25601 (VMLALDAVAQ): Likewise.
25602 (VQSHRNBQ_N): Likewise.
25603 (VSHRNBQ_N): Likewise.
25604 (VRSHRNBQ_N): Likewise.
25605 (VMLALDAVXQ_P): Likewise.
25606 (VQMOVNTQ_M): Likewise.
25607 (VMVNQ_M_N): Likewise.
25608 (VQSHRNTQ_N): Likewise.
25609 (VMLALDAVAXQ): Likewise.
25610 (VSHRNTQ_N): Likewise.
25611 (VCVTMQ_M): Likewise.
25612 (VCVTNQ_M): Likewise.
25613 (VCVTPQ_M): Likewise.
25614 (VCVTQ_M_N_FROM_F): Likewise.
25615 (VCVTQ_M_FROM_F): Likewise.
25616 (VRMLALDAVHQ_P): Likewise.
25617 (VADDLVAQ_P): Likewise.
25618 (mve_vrndq_m_f<mode>): Define RTL pattern.
25619 (mve_vabsq_m_f<mode>): Likewise.
25620 (mve_vaddlvaq_p_<supf>v4si): Likewise.
25621 (mve_vcmlaq_f<mode>): Likewise.
25622 (mve_vcmlaq_rot180_f<mode>): Likewise.
25623 (mve_vcmlaq_rot270_f<mode>): Likewise.
25624 (mve_vcmlaq_rot90_f<mode>): Likewise.
25625 (mve_vcmpeqq_m_n_f<mode>): Likewise.
25626 (mve_vcmpgeq_m_f<mode>): Likewise.
25627 (mve_vcmpgeq_m_n_f<mode>): Likewise.
25628 (mve_vcmpgtq_m_f<mode>): Likewise.
25629 (mve_vcmpgtq_m_n_f<mode>): Likewise.
25630 (mve_vcmpleq_m_f<mode>): Likewise.
25631 (mve_vcmpleq_m_n_f<mode>): Likewise.
25632 (mve_vcmpltq_m_f<mode>): Likewise.
25633 (mve_vcmpltq_m_n_f<mode>): Likewise.
25634 (mve_vcmpneq_m_f<mode>): Likewise.
25635 (mve_vcmpneq_m_n_f<mode>): Likewise.
25636 (mve_vcvtbq_m_f16_f32v8hf): Likewise.
25637 (mve_vcvtbq_m_f32_f16v4sf): Likewise.
25638 (mve_vcvttq_m_f16_f32v8hf): Likewise.
25639 (mve_vcvttq_m_f32_f16v4sf): Likewise.
25640 (mve_vdupq_m_n_f<mode>): Likewise.
25641 (mve_vfmaq_f<mode>): Likewise.
25642 (mve_vfmaq_n_f<mode>): Likewise.
25643 (mve_vfmasq_n_f<mode>): Likewise.
25644 (mve_vfmsq_f<mode>): Likewise.
25645 (mve_vmaxnmaq_m_f<mode>): Likewise.
25646 (mve_vmaxnmavq_p_f<mode>): Likewise.
25647 (mve_vmaxnmvq_p_f<mode>): Likewise.
25648 (mve_vminnmaq_m_f<mode>): Likewise.
25649 (mve_vminnmavq_p_f<mode>): Likewise.
25650 (mve_vminnmvq_p_f<mode>): Likewise.
25651 (mve_vmlaldavaq_<supf><mode>): Likewise.
25652 (mve_vmlaldavaxq_<supf><mode>): Likewise.
25653 (mve_vmlaldavq_p_<supf><mode>): Likewise.
25654 (mve_vmlaldavxq_p_<supf><mode>): Likewise.
25655 (mve_vmlsldavaq_s<mode>): Likewise.
25656 (mve_vmlsldavaxq_s<mode>): Likewise.
25657 (mve_vmlsldavq_p_s<mode>): Likewise.
25658 (mve_vmlsldavxq_p_s<mode>): Likewise.
25659 (mve_vmovlbq_m_<supf><mode>): Likewise.
25660 (mve_vmovltq_m_<supf><mode>): Likewise.
25661 (mve_vmovnbq_m_<supf><mode>): Likewise.
25662 (mve_vmovntq_m_<supf><mode>): Likewise.
25663 (mve_vmvnq_m_n_<supf><mode>): Likewise.
25664 (mve_vnegq_m_f<mode>): Likewise.
25665 (mve_vorrq_m_n_<supf><mode>): Likewise.
25666 (mve_vpselq_f<mode>): Likewise.
25667 (mve_vqmovnbq_m_<supf><mode>): Likewise.
25668 (mve_vqmovntq_m_<supf><mode>): Likewise.
25669 (mve_vqmovunbq_m_s<mode>): Likewise.
25670 (mve_vqmovuntq_m_s<mode>): Likewise.
25671 (mve_vqrshrntq_n_<supf><mode>): Likewise.
25672 (mve_vqrshruntq_n_s<mode>): Likewise.
25673 (mve_vqshrnbq_n_<supf><mode>): Likewise.
25674 (mve_vqshrntq_n_<supf><mode>): Likewise.
25675 (mve_vqshrunbq_n_s<mode>): Likewise.
25676 (mve_vqshruntq_n_s<mode>): Likewise.
25677 (mve_vrev32q_m_fv8hf): Likewise.
25678 (mve_vrev32q_m_<supf><mode>): Likewise.
25679 (mve_vrev64q_m_f<mode>): Likewise.
25680 (mve_vrmlaldavhaxq_sv4si): Likewise.
25681 (mve_vrmlaldavhxq_p_sv4si): Likewise.
25682 (mve_vrmlsldavhaxq_sv4si): Likewise.
25683 (mve_vrmlsldavhq_p_sv4si): Likewise.
25684 (mve_vrmlsldavhxq_p_sv4si): Likewise.
25685 (mve_vrndaq_m_f<mode>): Likewise.
25686 (mve_vrndmq_m_f<mode>): Likewise.
25687 (mve_vrndnq_m_f<mode>): Likewise.
25688 (mve_vrndpq_m_f<mode>): Likewise.
25689 (mve_vrndxq_m_f<mode>): Likewise.
25690 (mve_vrshrnbq_n_<supf><mode>): Likewise.
25691 (mve_vrshrntq_n_<supf><mode>): Likewise.
25692 (mve_vshrnbq_n_<supf><mode>): Likewise.
25693 (mve_vshrntq_n_<supf><mode>): Likewise.
25694 (mve_vcvtmq_m_<supf><mode>): Likewise.
25695 (mve_vcvtpq_m_<supf><mode>): Likewise.
25696 (mve_vcvtnq_m_<supf><mode>): Likewise.
25697 (mve_vcvtq_m_n_from_f_<supf><mode>): Likewise.
25698 (mve_vrev16q_m_<supf>v16qi): Likewise.
25699 (mve_vcvtq_m_from_f_<supf><mode>): Likewise.
25700 (mve_vrmlaldavhq_p_<supf>v4si): Likewise.
25701 (mve_vrmlsldavhaq_sv4si): Likewise.
25703 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
25704 Mihail Ionescu <mihail.ionescu@arm.com>
25705 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
25707 * config/arm/arm_mve.h (vpselq_u8): Define macro.
25708 (vpselq_s8): Likewise.
25709 (vrev64q_m_u8): Likewise.
25710 (vqrdmlashq_n_u8): Likewise.
25711 (vqrdmlahq_n_u8): Likewise.
25712 (vqdmlahq_n_u8): Likewise.
25713 (vmvnq_m_u8): Likewise.
25714 (vmlasq_n_u8): Likewise.
25715 (vmlaq_n_u8): Likewise.
25716 (vmladavq_p_u8): Likewise.
25717 (vmladavaq_u8): Likewise.
25718 (vminvq_p_u8): Likewise.
25719 (vmaxvq_p_u8): Likewise.
25720 (vdupq_m_n_u8): Likewise.
25721 (vcmpneq_m_u8): Likewise.
25722 (vcmpneq_m_n_u8): Likewise.
25723 (vcmphiq_m_u8): Likewise.
25724 (vcmphiq_m_n_u8): Likewise.
25725 (vcmpeqq_m_u8): Likewise.
25726 (vcmpeqq_m_n_u8): Likewise.
25727 (vcmpcsq_m_u8): Likewise.
25728 (vcmpcsq_m_n_u8): Likewise.
25729 (vclzq_m_u8): Likewise.
25730 (vaddvaq_p_u8): Likewise.
25731 (vsriq_n_u8): Likewise.
25732 (vsliq_n_u8): Likewise.
25733 (vshlq_m_r_u8): Likewise.
25734 (vrshlq_m_n_u8): Likewise.
25735 (vqshlq_m_r_u8): Likewise.
25736 (vqrshlq_m_n_u8): Likewise.
25737 (vminavq_p_s8): Likewise.
25738 (vminaq_m_s8): Likewise.
25739 (vmaxavq_p_s8): Likewise.
25740 (vmaxaq_m_s8): Likewise.
25741 (vcmpneq_m_s8): Likewise.
25742 (vcmpneq_m_n_s8): Likewise.
25743 (vcmpltq_m_s8): Likewise.
25744 (vcmpltq_m_n_s8): Likewise.
25745 (vcmpleq_m_s8): Likewise.
25746 (vcmpleq_m_n_s8): Likewise.
25747 (vcmpgtq_m_s8): Likewise.
25748 (vcmpgtq_m_n_s8): Likewise.
25749 (vcmpgeq_m_s8): Likewise.
25750 (vcmpgeq_m_n_s8): Likewise.
25751 (vcmpeqq_m_s8): Likewise.
25752 (vcmpeqq_m_n_s8): Likewise.
25753 (vshlq_m_r_s8): Likewise.
25754 (vrshlq_m_n_s8): Likewise.
25755 (vrev64q_m_s8): Likewise.
25756 (vqshlq_m_r_s8): Likewise.
25757 (vqrshlq_m_n_s8): Likewise.
25758 (vqnegq_m_s8): Likewise.
25759 (vqabsq_m_s8): Likewise.
25760 (vnegq_m_s8): Likewise.
25761 (vmvnq_m_s8): Likewise.
25762 (vmlsdavxq_p_s8): Likewise.
25763 (vmlsdavq_p_s8): Likewise.
25764 (vmladavxq_p_s8): Likewise.
25765 (vmladavq_p_s8): Likewise.
25766 (vminvq_p_s8): Likewise.
25767 (vmaxvq_p_s8): Likewise.
25768 (vdupq_m_n_s8): Likewise.
25769 (vclzq_m_s8): Likewise.
25770 (vclsq_m_s8): Likewise.
25771 (vaddvaq_p_s8): Likewise.
25772 (vabsq_m_s8): Likewise.
25773 (vqrdmlsdhxq_s8): Likewise.
25774 (vqrdmlsdhq_s8): Likewise.
25775 (vqrdmlashq_n_s8): Likewise.
25776 (vqrdmlahq_n_s8): Likewise.
25777 (vqrdmladhxq_s8): Likewise.
25778 (vqrdmladhq_s8): Likewise.
25779 (vqdmlsdhxq_s8): Likewise.
25780 (vqdmlsdhq_s8): Likewise.
25781 (vqdmlahq_n_s8): Likewise.
25782 (vqdmladhxq_s8): Likewise.
25783 (vqdmladhq_s8): Likewise.
25784 (vmlsdavaxq_s8): Likewise.
25785 (vmlsdavaq_s8): Likewise.
25786 (vmlasq_n_s8): Likewise.
25787 (vmlaq_n_s8): Likewise.
25788 (vmladavaxq_s8): Likewise.
25789 (vmladavaq_s8): Likewise.
25790 (vsriq_n_s8): Likewise.
25791 (vsliq_n_s8): Likewise.
25792 (vpselq_u16): Likewise.
25793 (vpselq_s16): Likewise.
25794 (vrev64q_m_u16): Likewise.
25795 (vqrdmlashq_n_u16): Likewise.
25796 (vqrdmlahq_n_u16): Likewise.
25797 (vqdmlahq_n_u16): Likewise.
25798 (vmvnq_m_u16): Likewise.
25799 (vmlasq_n_u16): Likewise.
25800 (vmlaq_n_u16): Likewise.
25801 (vmladavq_p_u16): Likewise.
25802 (vmladavaq_u16): Likewise.
25803 (vminvq_p_u16): Likewise.
25804 (vmaxvq_p_u16): Likewise.
25805 (vdupq_m_n_u16): Likewise.
25806 (vcmpneq_m_u16): Likewise.
25807 (vcmpneq_m_n_u16): Likewise.
25808 (vcmphiq_m_u16): Likewise.
25809 (vcmphiq_m_n_u16): Likewise.
25810 (vcmpeqq_m_u16): Likewise.
25811 (vcmpeqq_m_n_u16): Likewise.
25812 (vcmpcsq_m_u16): Likewise.
25813 (vcmpcsq_m_n_u16): Likewise.
25814 (vclzq_m_u16): Likewise.
25815 (vaddvaq_p_u16): Likewise.
25816 (vsriq_n_u16): Likewise.
25817 (vsliq_n_u16): Likewise.
25818 (vshlq_m_r_u16): Likewise.
25819 (vrshlq_m_n_u16): Likewise.
25820 (vqshlq_m_r_u16): Likewise.
25821 (vqrshlq_m_n_u16): Likewise.
25822 (vminavq_p_s16): Likewise.
25823 (vminaq_m_s16): Likewise.
25824 (vmaxavq_p_s16): Likewise.
25825 (vmaxaq_m_s16): Likewise.
25826 (vcmpneq_m_s16): Likewise.
25827 (vcmpneq_m_n_s16): Likewise.
25828 (vcmpltq_m_s16): Likewise.
25829 (vcmpltq_m_n_s16): Likewise.
25830 (vcmpleq_m_s16): Likewise.
25831 (vcmpleq_m_n_s16): Likewise.
25832 (vcmpgtq_m_s16): Likewise.
25833 (vcmpgtq_m_n_s16): Likewise.
25834 (vcmpgeq_m_s16): Likewise.
25835 (vcmpgeq_m_n_s16): Likewise.
25836 (vcmpeqq_m_s16): Likewise.
25837 (vcmpeqq_m_n_s16): Likewise.
25838 (vshlq_m_r_s16): Likewise.
25839 (vrshlq_m_n_s16): Likewise.
25840 (vrev64q_m_s16): Likewise.
25841 (vqshlq_m_r_s16): Likewise.
25842 (vqrshlq_m_n_s16): Likewise.
25843 (vqnegq_m_s16): Likewise.
25844 (vqabsq_m_s16): Likewise.
25845 (vnegq_m_s16): Likewise.
25846 (vmvnq_m_s16): Likewise.
25847 (vmlsdavxq_p_s16): Likewise.
25848 (vmlsdavq_p_s16): Likewise.
25849 (vmladavxq_p_s16): Likewise.
25850 (vmladavq_p_s16): Likewise.
25851 (vminvq_p_s16): Likewise.
25852 (vmaxvq_p_s16): Likewise.
25853 (vdupq_m_n_s16): Likewise.
25854 (vclzq_m_s16): Likewise.
25855 (vclsq_m_s16): Likewise.
25856 (vaddvaq_p_s16): Likewise.
25857 (vabsq_m_s16): Likewise.
25858 (vqrdmlsdhxq_s16): Likewise.
25859 (vqrdmlsdhq_s16): Likewise.
25860 (vqrdmlashq_n_s16): Likewise.
25861 (vqrdmlahq_n_s16): Likewise.
25862 (vqrdmladhxq_s16): Likewise.
25863 (vqrdmladhq_s16): Likewise.
25864 (vqdmlsdhxq_s16): Likewise.
25865 (vqdmlsdhq_s16): Likewise.
25866 (vqdmlahq_n_s16): Likewise.
25867 (vqdmladhxq_s16): Likewise.
25868 (vqdmladhq_s16): Likewise.
25869 (vmlsdavaxq_s16): Likewise.
25870 (vmlsdavaq_s16): Likewise.
25871 (vmlasq_n_s16): Likewise.
25872 (vmlaq_n_s16): Likewise.
25873 (vmladavaxq_s16): Likewise.
25874 (vmladavaq_s16): Likewise.
25875 (vsriq_n_s16): Likewise.
25876 (vsliq_n_s16): Likewise.
25877 (vpselq_u32): Likewise.
25878 (vpselq_s32): Likewise.
25879 (vrev64q_m_u32): Likewise.
25880 (vqrdmlashq_n_u32): Likewise.
25881 (vqrdmlahq_n_u32): Likewise.
25882 (vqdmlahq_n_u32): Likewise.
25883 (vmvnq_m_u32): Likewise.
25884 (vmlasq_n_u32): Likewise.
25885 (vmlaq_n_u32): Likewise.
25886 (vmladavq_p_u32): Likewise.
25887 (vmladavaq_u32): Likewise.
25888 (vminvq_p_u32): Likewise.
25889 (vmaxvq_p_u32): Likewise.
25890 (vdupq_m_n_u32): Likewise.
25891 (vcmpneq_m_u32): Likewise.
25892 (vcmpneq_m_n_u32): Likewise.
25893 (vcmphiq_m_u32): Likewise.
25894 (vcmphiq_m_n_u32): Likewise.
25895 (vcmpeqq_m_u32): Likewise.
25896 (vcmpeqq_m_n_u32): Likewise.
25897 (vcmpcsq_m_u32): Likewise.
25898 (vcmpcsq_m_n_u32): Likewise.
25899 (vclzq_m_u32): Likewise.
25900 (vaddvaq_p_u32): Likewise.
25901 (vsriq_n_u32): Likewise.
25902 (vsliq_n_u32): Likewise.
25903 (vshlq_m_r_u32): Likewise.
25904 (vrshlq_m_n_u32): Likewise.
25905 (vqshlq_m_r_u32): Likewise.
25906 (vqrshlq_m_n_u32): Likewise.
25907 (vminavq_p_s32): Likewise.
25908 (vminaq_m_s32): Likewise.
25909 (vmaxavq_p_s32): Likewise.
25910 (vmaxaq_m_s32): Likewise.
25911 (vcmpneq_m_s32): Likewise.
25912 (vcmpneq_m_n_s32): Likewise.
25913 (vcmpltq_m_s32): Likewise.
25914 (vcmpltq_m_n_s32): Likewise.
25915 (vcmpleq_m_s32): Likewise.
25916 (vcmpleq_m_n_s32): Likewise.
25917 (vcmpgtq_m_s32): Likewise.
25918 (vcmpgtq_m_n_s32): Likewise.
25919 (vcmpgeq_m_s32): Likewise.
25920 (vcmpgeq_m_n_s32): Likewise.
25921 (vcmpeqq_m_s32): Likewise.
25922 (vcmpeqq_m_n_s32): Likewise.
25923 (vshlq_m_r_s32): Likewise.
25924 (vrshlq_m_n_s32): Likewise.
25925 (vrev64q_m_s32): Likewise.
25926 (vqshlq_m_r_s32): Likewise.
25927 (vqrshlq_m_n_s32): Likewise.
25928 (vqnegq_m_s32): Likewise.
25929 (vqabsq_m_s32): Likewise.
25930 (vnegq_m_s32): Likewise.
25931 (vmvnq_m_s32): Likewise.
25932 (vmlsdavxq_p_s32): Likewise.
25933 (vmlsdavq_p_s32): Likewise.
25934 (vmladavxq_p_s32): Likewise.
25935 (vmladavq_p_s32): Likewise.
25936 (vminvq_p_s32): Likewise.
25937 (vmaxvq_p_s32): Likewise.
25938 (vdupq_m_n_s32): Likewise.
25939 (vclzq_m_s32): Likewise.
25940 (vclsq_m_s32): Likewise.
25941 (vaddvaq_p_s32): Likewise.
25942 (vabsq_m_s32): Likewise.
25943 (vqrdmlsdhxq_s32): Likewise.
25944 (vqrdmlsdhq_s32): Likewise.
25945 (vqrdmlashq_n_s32): Likewise.
25946 (vqrdmlahq_n_s32): Likewise.
25947 (vqrdmladhxq_s32): Likewise.
25948 (vqrdmladhq_s32): Likewise.
25949 (vqdmlsdhxq_s32): Likewise.
25950 (vqdmlsdhq_s32): Likewise.
25951 (vqdmlahq_n_s32): Likewise.
25952 (vqdmladhxq_s32): Likewise.
25953 (vqdmladhq_s32): Likewise.
25954 (vmlsdavaxq_s32): Likewise.
25955 (vmlsdavaq_s32): Likewise.
25956 (vmlasq_n_s32): Likewise.
25957 (vmlaq_n_s32): Likewise.
25958 (vmladavaxq_s32): Likewise.
25959 (vmladavaq_s32): Likewise.
25960 (vsriq_n_s32): Likewise.
25961 (vsliq_n_s32): Likewise.
25962 (vpselq_u64): Likewise.
25963 (vpselq_s64): Likewise.
25964 (__arm_vpselq_u8): Define intrinsic.
25965 (__arm_vpselq_s8): Likewise.
25966 (__arm_vrev64q_m_u8): Likewise.
25967 (__arm_vqrdmlashq_n_u8): Likewise.
25968 (__arm_vqrdmlahq_n_u8): Likewise.
25969 (__arm_vqdmlahq_n_u8): Likewise.
25970 (__arm_vmvnq_m_u8): Likewise.
25971 (__arm_vmlasq_n_u8): Likewise.
25972 (__arm_vmlaq_n_u8): Likewise.
25973 (__arm_vmladavq_p_u8): Likewise.
25974 (__arm_vmladavaq_u8): Likewise.
25975 (__arm_vminvq_p_u8): Likewise.
25976 (__arm_vmaxvq_p_u8): Likewise.
25977 (__arm_vdupq_m_n_u8): Likewise.
25978 (__arm_vcmpneq_m_u8): Likewise.
25979 (__arm_vcmpneq_m_n_u8): Likewise.
25980 (__arm_vcmphiq_m_u8): Likewise.
25981 (__arm_vcmphiq_m_n_u8): Likewise.
25982 (__arm_vcmpeqq_m_u8): Likewise.
25983 (__arm_vcmpeqq_m_n_u8): Likewise.
25984 (__arm_vcmpcsq_m_u8): Likewise.
25985 (__arm_vcmpcsq_m_n_u8): Likewise.
25986 (__arm_vclzq_m_u8): Likewise.
25987 (__arm_vaddvaq_p_u8): Likewise.
25988 (__arm_vsriq_n_u8): Likewise.
25989 (__arm_vsliq_n_u8): Likewise.
25990 (__arm_vshlq_m_r_u8): Likewise.
25991 (__arm_vrshlq_m_n_u8): Likewise.
25992 (__arm_vqshlq_m_r_u8): Likewise.
25993 (__arm_vqrshlq_m_n_u8): Likewise.
25994 (__arm_vminavq_p_s8): Likewise.
25995 (__arm_vminaq_m_s8): Likewise.
25996 (__arm_vmaxavq_p_s8): Likewise.
25997 (__arm_vmaxaq_m_s8): Likewise.
25998 (__arm_vcmpneq_m_s8): Likewise.
25999 (__arm_vcmpneq_m_n_s8): Likewise.
26000 (__arm_vcmpltq_m_s8): Likewise.
26001 (__arm_vcmpltq_m_n_s8): Likewise.
26002 (__arm_vcmpleq_m_s8): Likewise.
26003 (__arm_vcmpleq_m_n_s8): Likewise.
26004 (__arm_vcmpgtq_m_s8): Likewise.
26005 (__arm_vcmpgtq_m_n_s8): Likewise.
26006 (__arm_vcmpgeq_m_s8): Likewise.
26007 (__arm_vcmpgeq_m_n_s8): Likewise.
26008 (__arm_vcmpeqq_m_s8): Likewise.
26009 (__arm_vcmpeqq_m_n_s8): Likewise.
26010 (__arm_vshlq_m_r_s8): Likewise.
26011 (__arm_vrshlq_m_n_s8): Likewise.
26012 (__arm_vrev64q_m_s8): Likewise.
26013 (__arm_vqshlq_m_r_s8): Likewise.
26014 (__arm_vqrshlq_m_n_s8): Likewise.
26015 (__arm_vqnegq_m_s8): Likewise.
26016 (__arm_vqabsq_m_s8): Likewise.
26017 (__arm_vnegq_m_s8): Likewise.
26018 (__arm_vmvnq_m_s8): Likewise.
26019 (__arm_vmlsdavxq_p_s8): Likewise.
26020 (__arm_vmlsdavq_p_s8): Likewise.
26021 (__arm_vmladavxq_p_s8): Likewise.
26022 (__arm_vmladavq_p_s8): Likewise.
26023 (__arm_vminvq_p_s8): Likewise.
26024 (__arm_vmaxvq_p_s8): Likewise.
26025 (__arm_vdupq_m_n_s8): Likewise.
26026 (__arm_vclzq_m_s8): Likewise.
26027 (__arm_vclsq_m_s8): Likewise.
26028 (__arm_vaddvaq_p_s8): Likewise.
26029 (__arm_vabsq_m_s8): Likewise.
26030 (__arm_vqrdmlsdhxq_s8): Likewise.
26031 (__arm_vqrdmlsdhq_s8): Likewise.
26032 (__arm_vqrdmlashq_n_s8): Likewise.
26033 (__arm_vqrdmlahq_n_s8): Likewise.
26034 (__arm_vqrdmladhxq_s8): Likewise.
26035 (__arm_vqrdmladhq_s8): Likewise.
26036 (__arm_vqdmlsdhxq_s8): Likewise.
26037 (__arm_vqdmlsdhq_s8): Likewise.
26038 (__arm_vqdmlahq_n_s8): Likewise.
26039 (__arm_vqdmladhxq_s8): Likewise.
26040 (__arm_vqdmladhq_s8): Likewise.
26041 (__arm_vmlsdavaxq_s8): Likewise.
26042 (__arm_vmlsdavaq_s8): Likewise.
26043 (__arm_vmlasq_n_s8): Likewise.
26044 (__arm_vmlaq_n_s8): Likewise.
26045 (__arm_vmladavaxq_s8): Likewise.
26046 (__arm_vmladavaq_s8): Likewise.
26047 (__arm_vsriq_n_s8): Likewise.
26048 (__arm_vsliq_n_s8): Likewise.
26049 (__arm_vpselq_u16): Likewise.
26050 (__arm_vpselq_s16): Likewise.
26051 (__arm_vrev64q_m_u16): Likewise.
26052 (__arm_vqrdmlashq_n_u16): Likewise.
26053 (__arm_vqrdmlahq_n_u16): Likewise.
26054 (__arm_vqdmlahq_n_u16): Likewise.
26055 (__arm_vmvnq_m_u16): Likewise.
26056 (__arm_vmlasq_n_u16): Likewise.
26057 (__arm_vmlaq_n_u16): Likewise.
26058 (__arm_vmladavq_p_u16): Likewise.
26059 (__arm_vmladavaq_u16): Likewise.
26060 (__arm_vminvq_p_u16): Likewise.
26061 (__arm_vmaxvq_p_u16): Likewise.
26062 (__arm_vdupq_m_n_u16): Likewise.
26063 (__arm_vcmpneq_m_u16): Likewise.
26064 (__arm_vcmpneq_m_n_u16): Likewise.
26065 (__arm_vcmphiq_m_u16): Likewise.
26066 (__arm_vcmphiq_m_n_u16): Likewise.
26067 (__arm_vcmpeqq_m_u16): Likewise.
26068 (__arm_vcmpeqq_m_n_u16): Likewise.
26069 (__arm_vcmpcsq_m_u16): Likewise.
26070 (__arm_vcmpcsq_m_n_u16): Likewise.
26071 (__arm_vclzq_m_u16): Likewise.
26072 (__arm_vaddvaq_p_u16): Likewise.
26073 (__arm_vsriq_n_u16): Likewise.
26074 (__arm_vsliq_n_u16): Likewise.
26075 (__arm_vshlq_m_r_u16): Likewise.
26076 (__arm_vrshlq_m_n_u16): Likewise.
26077 (__arm_vqshlq_m_r_u16): Likewise.
26078 (__arm_vqrshlq_m_n_u16): Likewise.
26079 (__arm_vminavq_p_s16): Likewise.
26080 (__arm_vminaq_m_s16): Likewise.
26081 (__arm_vmaxavq_p_s16): Likewise.
26082 (__arm_vmaxaq_m_s16): Likewise.
26083 (__arm_vcmpneq_m_s16): Likewise.
26084 (__arm_vcmpneq_m_n_s16): Likewise.
26085 (__arm_vcmpltq_m_s16): Likewise.
26086 (__arm_vcmpltq_m_n_s16): Likewise.
26087 (__arm_vcmpleq_m_s16): Likewise.
26088 (__arm_vcmpleq_m_n_s16): Likewise.
26089 (__arm_vcmpgtq_m_s16): Likewise.
26090 (__arm_vcmpgtq_m_n_s16): Likewise.
26091 (__arm_vcmpgeq_m_s16): Likewise.
26092 (__arm_vcmpgeq_m_n_s16): Likewise.
26093 (__arm_vcmpeqq_m_s16): Likewise.
26094 (__arm_vcmpeqq_m_n_s16): Likewise.
26095 (__arm_vshlq_m_r_s16): Likewise.
26096 (__arm_vrshlq_m_n_s16): Likewise.
26097 (__arm_vrev64q_m_s16): Likewise.
26098 (__arm_vqshlq_m_r_s16): Likewise.
26099 (__arm_vqrshlq_m_n_s16): Likewise.
26100 (__arm_vqnegq_m_s16): Likewise.
26101 (__arm_vqabsq_m_s16): Likewise.
26102 (__arm_vnegq_m_s16): Likewise.
26103 (__arm_vmvnq_m_s16): Likewise.
26104 (__arm_vmlsdavxq_p_s16): Likewise.
26105 (__arm_vmlsdavq_p_s16): Likewise.
26106 (__arm_vmladavxq_p_s16): Likewise.
26107 (__arm_vmladavq_p_s16): Likewise.
26108 (__arm_vminvq_p_s16): Likewise.
26109 (__arm_vmaxvq_p_s16): Likewise.
26110 (__arm_vdupq_m_n_s16): Likewise.
26111 (__arm_vclzq_m_s16): Likewise.
26112 (__arm_vclsq_m_s16): Likewise.
26113 (__arm_vaddvaq_p_s16): Likewise.
26114 (__arm_vabsq_m_s16): Likewise.
26115 (__arm_vqrdmlsdhxq_s16): Likewise.
26116 (__arm_vqrdmlsdhq_s16): Likewise.
26117 (__arm_vqrdmlashq_n_s16): Likewise.
26118 (__arm_vqrdmlahq_n_s16): Likewise.
26119 (__arm_vqrdmladhxq_s16): Likewise.
26120 (__arm_vqrdmladhq_s16): Likewise.
26121 (__arm_vqdmlsdhxq_s16): Likewise.
26122 (__arm_vqdmlsdhq_s16): Likewise.
26123 (__arm_vqdmlahq_n_s16): Likewise.
26124 (__arm_vqdmladhxq_s16): Likewise.
26125 (__arm_vqdmladhq_s16): Likewise.
26126 (__arm_vmlsdavaxq_s16): Likewise.
26127 (__arm_vmlsdavaq_s16): Likewise.
26128 (__arm_vmlasq_n_s16): Likewise.
26129 (__arm_vmlaq_n_s16): Likewise.
26130 (__arm_vmladavaxq_s16): Likewise.
26131 (__arm_vmladavaq_s16): Likewise.
26132 (__arm_vsriq_n_s16): Likewise.
26133 (__arm_vsliq_n_s16): Likewise.
26134 (__arm_vpselq_u32): Likewise.
26135 (__arm_vpselq_s32): Likewise.
26136 (__arm_vrev64q_m_u32): Likewise.
26137 (__arm_vqrdmlashq_n_u32): Likewise.
26138 (__arm_vqrdmlahq_n_u32): Likewise.
26139 (__arm_vqdmlahq_n_u32): Likewise.
26140 (__arm_vmvnq_m_u32): Likewise.
26141 (__arm_vmlasq_n_u32): Likewise.
26142 (__arm_vmlaq_n_u32): Likewise.
26143 (__arm_vmladavq_p_u32): Likewise.
26144 (__arm_vmladavaq_u32): Likewise.
26145 (__arm_vminvq_p_u32): Likewise.
26146 (__arm_vmaxvq_p_u32): Likewise.
26147 (__arm_vdupq_m_n_u32): Likewise.
26148 (__arm_vcmpneq_m_u32): Likewise.
26149 (__arm_vcmpneq_m_n_u32): Likewise.
26150 (__arm_vcmphiq_m_u32): Likewise.
26151 (__arm_vcmphiq_m_n_u32): Likewise.
26152 (__arm_vcmpeqq_m_u32): Likewise.
26153 (__arm_vcmpeqq_m_n_u32): Likewise.
26154 (__arm_vcmpcsq_m_u32): Likewise.
26155 (__arm_vcmpcsq_m_n_u32): Likewise.
26156 (__arm_vclzq_m_u32): Likewise.
26157 (__arm_vaddvaq_p_u32): Likewise.
26158 (__arm_vsriq_n_u32): Likewise.
26159 (__arm_vsliq_n_u32): Likewise.
26160 (__arm_vshlq_m_r_u32): Likewise.
26161 (__arm_vrshlq_m_n_u32): Likewise.
26162 (__arm_vqshlq_m_r_u32): Likewise.
26163 (__arm_vqrshlq_m_n_u32): Likewise.
26164 (__arm_vminavq_p_s32): Likewise.
26165 (__arm_vminaq_m_s32): Likewise.
26166 (__arm_vmaxavq_p_s32): Likewise.
26167 (__arm_vmaxaq_m_s32): Likewise.
26168 (__arm_vcmpneq_m_s32): Likewise.
26169 (__arm_vcmpneq_m_n_s32): Likewise.
26170 (__arm_vcmpltq_m_s32): Likewise.
26171 (__arm_vcmpltq_m_n_s32): Likewise.
26172 (__arm_vcmpleq_m_s32): Likewise.
26173 (__arm_vcmpleq_m_n_s32): Likewise.
26174 (__arm_vcmpgtq_m_s32): Likewise.
26175 (__arm_vcmpgtq_m_n_s32): Likewise.
26176 (__arm_vcmpgeq_m_s32): Likewise.
26177 (__arm_vcmpgeq_m_n_s32): Likewise.
26178 (__arm_vcmpeqq_m_s32): Likewise.
26179 (__arm_vcmpeqq_m_n_s32): Likewise.
26180 (__arm_vshlq_m_r_s32): Likewise.
26181 (__arm_vrshlq_m_n_s32): Likewise.
26182 (__arm_vrev64q_m_s32): Likewise.
26183 (__arm_vqshlq_m_r_s32): Likewise.
26184 (__arm_vqrshlq_m_n_s32): Likewise.
26185 (__arm_vqnegq_m_s32): Likewise.
26186 (__arm_vqabsq_m_s32): Likewise.
26187 (__arm_vnegq_m_s32): Likewise.
26188 (__arm_vmvnq_m_s32): Likewise.
26189 (__arm_vmlsdavxq_p_s32): Likewise.
26190 (__arm_vmlsdavq_p_s32): Likewise.
26191 (__arm_vmladavxq_p_s32): Likewise.
26192 (__arm_vmladavq_p_s32): Likewise.
26193 (__arm_vminvq_p_s32): Likewise.
26194 (__arm_vmaxvq_p_s32): Likewise.
26195 (__arm_vdupq_m_n_s32): Likewise.
26196 (__arm_vclzq_m_s32): Likewise.
26197 (__arm_vclsq_m_s32): Likewise.
26198 (__arm_vaddvaq_p_s32): Likewise.
26199 (__arm_vabsq_m_s32): Likewise.
26200 (__arm_vqrdmlsdhxq_s32): Likewise.
26201 (__arm_vqrdmlsdhq_s32): Likewise.
26202 (__arm_vqrdmlashq_n_s32): Likewise.
26203 (__arm_vqrdmlahq_n_s32): Likewise.
26204 (__arm_vqrdmladhxq_s32): Likewise.
26205 (__arm_vqrdmladhq_s32): Likewise.
26206 (__arm_vqdmlsdhxq_s32): Likewise.
26207 (__arm_vqdmlsdhq_s32): Likewise.
26208 (__arm_vqdmlahq_n_s32): Likewise.
26209 (__arm_vqdmladhxq_s32): Likewise.
26210 (__arm_vqdmladhq_s32): Likewise.
26211 (__arm_vmlsdavaxq_s32): Likewise.
26212 (__arm_vmlsdavaq_s32): Likewise.
26213 (__arm_vmlasq_n_s32): Likewise.
26214 (__arm_vmlaq_n_s32): Likewise.
26215 (__arm_vmladavaxq_s32): Likewise.
26216 (__arm_vmladavaq_s32): Likewise.
26217 (__arm_vsriq_n_s32): Likewise.
26218 (__arm_vsliq_n_s32): Likewise.
26219 (__arm_vpselq_u64): Likewise.
26220 (__arm_vpselq_s64): Likewise.
26221 (vcmpneq_m_n): Define polymorphic variant.
26222 (vcmpneq_m): Likewise.
26223 (vqrdmlsdhq): Likewise.
26224 (vqrdmlsdhxq): Likewise.
26225 (vqrshlq_m_n): Likewise.
26226 (vqshlq_m_r): Likewise.
26227 (vrev64q_m): Likewise.
26228 (vrshlq_m_n): Likewise.
26229 (vshlq_m_r): Likewise.
26230 (vsliq_n): Likewise.
26231 (vsriq_n): Likewise.
26232 (vqrdmlashq_n): Likewise.
26233 (vqrdmlahq): Likewise.
26234 (vqrdmladhxq): Likewise.
26235 (vqrdmladhq): Likewise.
26236 (vqnegq_m): Likewise.
26237 (vqdmlsdhxq): Likewise.
26238 (vabsq_m): Likewise.
26239 (vclsq_m): Likewise.
26240 (vclzq_m): Likewise.
26241 (vcmpgeq_m): Likewise.
26242 (vcmpgeq_m_n): Likewise.
26243 (vdupq_m_n): Likewise.
26244 (vmaxaq_m): Likewise.
26245 (vmlaq_n): Likewise.
26246 (vmlasq_n): Likewise.
26247 (vmvnq_m): Likewise.
26248 (vnegq_m): Likewise.
26249 (vpselq): Likewise.
26250 (vqdmlahq_n): Likewise.
26251 (vqrdmlahq_n): Likewise.
26252 (vqdmlsdhq): Likewise.
26253 (vqdmladhq): Likewise.
26254 (vqabsq_m): Likewise.
26255 (vminaq_m): Likewise.
26256 (vrmlaldavhaq): Likewise.
26257 (vmlsdavxq_p): Likewise.
26258 (vmlsdavq_p): Likewise.
26259 (vmlsdavaxq): Likewise.
26260 (vmlsdavaq): Likewise.
26261 (vaddvaq_p): Likewise.
26262 (vcmpcsq_m_n): Likewise.
26263 (vcmpcsq_m): Likewise.
26264 (vcmpeqq_m_n): Likewise.
26265 (vcmpeqq_m): Likewise.
26266 (vmladavxq_p): Likewise.
26267 (vmladavq_p): Likewise.
26268 (vmladavaxq): Likewise.
26269 (vmladavaq): Likewise.
26270 (vminvq_p): Likewise.
26271 (vminavq_p): Likewise.
26272 (vmaxvq_p): Likewise.
26273 (vmaxavq_p): Likewise.
26274 (vcmpltq_m_n): Likewise.
26275 (vcmpltq_m): Likewise.
26276 (vcmpleq_m): Likewise.
26277 (vcmpleq_m_n): Likewise.
26278 (vcmphiq_m_n): Likewise.
26279 (vcmphiq_m): Likewise.
26280 (vcmpgtq_m_n): Likewise.
26281 (vcmpgtq_m): Likewise.
26282 * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_NONE_IMM): Use
26284 (TERNOP_NONE_NONE_NONE_NONE): Likewise.
26285 (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
26286 (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
26287 (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
26288 (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
26289 (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
26290 * config/arm/constraints.md (Rc): Define constraint to check constant is
26291 in the range of 0 to 15.
26292 (Re): Define constraint to check constant is in the range of 0 to 31.
26293 * config/arm/mve.md (VADDVAQ_P): Define iterator.
26294 (VCLZQ_M): Likewise.
26295 (VCMPEQQ_M_N): Likewise.
26296 (VCMPEQQ_M): Likewise.
26297 (VCMPNEQ_M_N): Likewise.
26298 (VCMPNEQ_M): Likewise.
26299 (VDUPQ_M_N): Likewise.
26300 (VMAXVQ_P): Likewise.
26301 (VMINVQ_P): Likewise.
26302 (VMLADAVAQ): Likewise.
26303 (VMLADAVQ_P): Likewise.
26304 (VMLAQ_N): Likewise.
26305 (VMLASQ_N): Likewise.
26306 (VMVNQ_M): Likewise.
26307 (VPSELQ): Likewise.
26308 (VQDMLAHQ_N): Likewise.
26309 (VQRDMLAHQ_N): Likewise.
26310 (VQRDMLASHQ_N): Likewise.
26311 (VQRSHLQ_M_N): Likewise.
26312 (VQSHLQ_M_R): Likewise.
26313 (VREV64Q_M): Likewise.
26314 (VRSHLQ_M_N): Likewise.
26315 (VSHLQ_M_R): Likewise.
26316 (VSLIQ_N): Likewise.
26317 (VSRIQ_N): Likewise.
26318 (mve_vabsq_m_s<mode>): Define RTL pattern.
26319 (mve_vaddvaq_p_<supf><mode>): Likewise.
26320 (mve_vclsq_m_s<mode>): Likewise.
26321 (mve_vclzq_m_<supf><mode>): Likewise.
26322 (mve_vcmpcsq_m_n_u<mode>): Likewise.
26323 (mve_vcmpcsq_m_u<mode>): Likewise.
26324 (mve_vcmpeqq_m_n_<supf><mode>): Likewise.
26325 (mve_vcmpeqq_m_<supf><mode>): Likewise.
26326 (mve_vcmpgeq_m_n_s<mode>): Likewise.
26327 (mve_vcmpgeq_m_s<mode>): Likewise.
26328 (mve_vcmpgtq_m_n_s<mode>): Likewise.
26329 (mve_vcmpgtq_m_s<mode>): Likewise.
26330 (mve_vcmphiq_m_n_u<mode>): Likewise.
26331 (mve_vcmphiq_m_u<mode>): Likewise.
26332 (mve_vcmpleq_m_n_s<mode>): Likewise.
26333 (mve_vcmpleq_m_s<mode>): Likewise.
26334 (mve_vcmpltq_m_n_s<mode>): Likewise.
26335 (mve_vcmpltq_m_s<mode>): Likewise.
26336 (mve_vcmpneq_m_n_<supf><mode>): Likewise.
26337 (mve_vcmpneq_m_<supf><mode>): Likewise.
26338 (mve_vdupq_m_n_<supf><mode>): Likewise.
26339 (mve_vmaxaq_m_s<mode>): Likewise.
26340 (mve_vmaxavq_p_s<mode>): Likewise.
26341 (mve_vmaxvq_p_<supf><mode>): Likewise.
26342 (mve_vminaq_m_s<mode>): Likewise.
26343 (mve_vminavq_p_s<mode>): Likewise.
26344 (mve_vminvq_p_<supf><mode>): Likewise.
26345 (mve_vmladavaq_<supf><mode>): Likewise.
26346 (mve_vmladavq_p_<supf><mode>): Likewise.
26347 (mve_vmladavxq_p_s<mode>): Likewise.
26348 (mve_vmlaq_n_<supf><mode>): Likewise.
26349 (mve_vmlasq_n_<supf><mode>): Likewise.
26350 (mve_vmlsdavq_p_s<mode>): Likewise.
26351 (mve_vmlsdavxq_p_s<mode>): Likewise.
26352 (mve_vmvnq_m_<supf><mode>): Likewise.
26353 (mve_vnegq_m_s<mode>): Likewise.
26354 (mve_vpselq_<supf><mode>): Likewise.
26355 (mve_vqabsq_m_s<mode>): Likewise.
26356 (mve_vqdmlahq_n_<supf><mode>): Likewise.
26357 (mve_vqnegq_m_s<mode>): Likewise.
26358 (mve_vqrdmladhq_s<mode>): Likewise.
26359 (mve_vqrdmladhxq_s<mode>): Likewise.
26360 (mve_vqrdmlahq_n_<supf><mode>): Likewise.
26361 (mve_vqrdmlashq_n_<supf><mode>): Likewise.
26362 (mve_vqrdmlsdhq_s<mode>): Likewise.
26363 (mve_vqrdmlsdhxq_s<mode>): Likewise.
26364 (mve_vqrshlq_m_n_<supf><mode>): Likewise.
26365 (mve_vqshlq_m_r_<supf><mode>): Likewise.
26366 (mve_vrev64q_m_<supf><mode>): Likewise.
26367 (mve_vrshlq_m_n_<supf><mode>): Likewise.
26368 (mve_vshlq_m_r_<supf><mode>): Likewise.
26369 (mve_vsliq_n_<supf><mode>): Likewise.
26370 (mve_vsriq_n_<supf><mode>): Likewise.
26371 (mve_vqdmlsdhxq_s<mode>): Likewise.
26372 (mve_vqdmlsdhq_s<mode>): Likewise.
26373 (mve_vqdmladhxq_s<mode>): Likewise.
26374 (mve_vqdmladhq_s<mode>): Likewise.
26375 (mve_vmlsdavaxq_s<mode>): Likewise.
26376 (mve_vmlsdavaq_s<mode>): Likewise.
26377 (mve_vmladavaxq_s<mode>): Likewise.
26378 * config/arm/predicates.md (mve_imm_15):Define predicate to check the
26379 matching constraint Rc.
26380 (mve_imm_31): Define predicate to check the matching constraint Re.
26382 2020-03-18 Andrew Stubbs <ams@codesourcery.com>
26384 * config/gcn/gcn-valu.md (vec_cmp<mode>di): Set operand 1 to DImode.
26385 (vec_cmp<mode>di_dup): Likewise.
26386 * config/gcn/gcn.h (STORE_FLAG_VALUE): Set to -1.
26388 2020-03-18 Andrew Stubbs <ams@codesourcery.com>
26390 * config/gcn/gcn-valu.md (COND_MODE): Delete.
26391 (COND_INT_MODE): Delete.
26392 (cond_op): Add "mult".
26393 (cond_<expander><mode>): Use VEC_ALLREG_MODE.
26394 (cond_<expander><mode>): Use VEC_ALLREG_INT_MODE.
26396 2020-03-18 Richard Biener <rguenther@suse.de>
26398 PR middle-end/94206
26399 * gimple-fold.c (gimple_fold_builtin_memset): Avoid using
26400 partial int modes or not mode-precision integer types for
26403 2020-03-18 Jakub Jelinek <jakub@redhat.com>
26405 * asan.c (get_mem_refs_of_builtin_call): Fix up duplicated word issue
26407 * config/arc/arc.c (frame_stack_add): Likewise.
26408 * gimple-loop-versioning.cc (loop_versioning::analyze_arbitrary_term):
26410 * ipa-predicate.c (predicate::remap_after_inlining): Likewise.
26411 * tree-ssa-strlen.h (handle_printf_call): Likewise.
26412 * tree-ssa-strlen.c (is_strlen_related_p): Likewise.
26413 * optinfo-emit-json.cc (optrecord_json_writer::add_record): Likewise.
26415 2020-03-18 Duan bo <duanbo3@huawei.com>
26418 * config/aarch64/aarch64.md (ldr_got_tiny): Delete.
26419 (@ldr_got_tiny_<mode>): New pattern.
26420 (ldr_got_tiny_sidi): Likewise.
26421 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Use
26422 them to handle SYMBOL_TINY_GOT for ILP32.
26424 2020-03-18 Richard Sandiford <richard.sandiford@arm.com>
26426 * config/aarch64/aarch64.c (aarch64_sve_abi): Treat p12-p15 as
26427 call-preserved for SVE PCS functions.
26428 (aarch64_layout_frame): Cope with up to 12 predicate save slots.
26429 Optimize the case in which there are no following vector save slots.
26431 2020-03-18 Richard Biener <rguenther@suse.de>
26433 PR middle-end/94188
26434 * fold-const.c (build_fold_addr_expr): Convert address to
26436 * asan.c (maybe_create_ssa_name): Strip useless type conversions.
26437 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use build1
26438 to build the ADDR_EXPR which we don't really want to simplify.
26439 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
26440 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Likewise.
26441 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26442 (simplify_builtin_call): Strip useless type conversions.
26443 * tree-ssa-strlen.c (new_strinfo): Likewise.
26445 2020-03-17 Alexey Neyman <stilor@att.net>
26448 * dwarf2out.c (gen_decl_die): Proceed to generating the DIE if
26449 the debug level is terse and the declaration is public. Do not
26450 generate type info.
26451 (dwarf2out_decl): Same.
26452 (add_type_attribute): Return immediately if debug level is
26455 2020-03-17 Richard Sandiford <richard.sandiford@arm.com>
26457 * config/aarch64/iterators.md (Vmtype): Handle V4BF and V8BF.
26459 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
26460 Mihail Ionescu <mihail.ionescu@arm.com>
26461 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
26463 * config/arm/arm-builtins.c (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS):
26464 Define qualifier for ternary operands.
26465 (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
26466 (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
26467 (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
26468 (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
26469 (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
26470 (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
26471 (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
26472 (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
26473 (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
26474 (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
26475 (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
26476 (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
26477 (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
26478 * config/arm/arm_mve.h (vabavq_s8): Define macro.
26479 (vabavq_s16): Likewise.
26480 (vabavq_s32): Likewise.
26481 (vbicq_m_n_s16): Likewise.
26482 (vbicq_m_n_s32): Likewise.
26483 (vbicq_m_n_u16): Likewise.
26484 (vbicq_m_n_u32): Likewise.
26485 (vcmpeqq_m_f16): Likewise.
26486 (vcmpeqq_m_f32): Likewise.
26487 (vcvtaq_m_s16_f16): Likewise.
26488 (vcvtaq_m_u16_f16): Likewise.
26489 (vcvtaq_m_s32_f32): Likewise.
26490 (vcvtaq_m_u32_f32): Likewise.
26491 (vcvtq_m_f16_s16): Likewise.
26492 (vcvtq_m_f16_u16): Likewise.
26493 (vcvtq_m_f32_s32): Likewise.
26494 (vcvtq_m_f32_u32): Likewise.
26495 (vqrshrnbq_n_s16): Likewise.
26496 (vqrshrnbq_n_u16): Likewise.
26497 (vqrshrnbq_n_s32): Likewise.
26498 (vqrshrnbq_n_u32): Likewise.
26499 (vqrshrunbq_n_s16): Likewise.
26500 (vqrshrunbq_n_s32): Likewise.
26501 (vrmlaldavhaq_s32): Likewise.
26502 (vrmlaldavhaq_u32): Likewise.
26503 (vshlcq_s8): Likewise.
26504 (vshlcq_u8): Likewise.
26505 (vshlcq_s16): Likewise.
26506 (vshlcq_u16): Likewise.
26507 (vshlcq_s32): Likewise.
26508 (vshlcq_u32): Likewise.
26509 (vabavq_u8): Likewise.
26510 (vabavq_u16): Likewise.
26511 (vabavq_u32): Likewise.
26512 (__arm_vabavq_s8): Define intrinsic.
26513 (__arm_vabavq_s16): Likewise.
26514 (__arm_vabavq_s32): Likewise.
26515 (__arm_vabavq_u8): Likewise.
26516 (__arm_vabavq_u16): Likewise.
26517 (__arm_vabavq_u32): Likewise.
26518 (__arm_vbicq_m_n_s16): Likewise.
26519 (__arm_vbicq_m_n_s32): Likewise.
26520 (__arm_vbicq_m_n_u16): Likewise.
26521 (__arm_vbicq_m_n_u32): Likewise.
26522 (__arm_vqrshrnbq_n_s16): Likewise.
26523 (__arm_vqrshrnbq_n_u16): Likewise.
26524 (__arm_vqrshrnbq_n_s32): Likewise.
26525 (__arm_vqrshrnbq_n_u32): Likewise.
26526 (__arm_vqrshrunbq_n_s16): Likewise.
26527 (__arm_vqrshrunbq_n_s32): Likewise.
26528 (__arm_vrmlaldavhaq_s32): Likewise.
26529 (__arm_vrmlaldavhaq_u32): Likewise.
26530 (__arm_vshlcq_s8): Likewise.
26531 (__arm_vshlcq_u8): Likewise.
26532 (__arm_vshlcq_s16): Likewise.
26533 (__arm_vshlcq_u16): Likewise.
26534 (__arm_vshlcq_s32): Likewise.
26535 (__arm_vshlcq_u32): Likewise.
26536 (__arm_vcmpeqq_m_f16): Likewise.
26537 (__arm_vcmpeqq_m_f32): Likewise.
26538 (__arm_vcvtaq_m_s16_f16): Likewise.
26539 (__arm_vcvtaq_m_u16_f16): Likewise.
26540 (__arm_vcvtaq_m_s32_f32): Likewise.
26541 (__arm_vcvtaq_m_u32_f32): Likewise.
26542 (__arm_vcvtq_m_f16_s16): Likewise.
26543 (__arm_vcvtq_m_f16_u16): Likewise.
26544 (__arm_vcvtq_m_f32_s32): Likewise.
26545 (__arm_vcvtq_m_f32_u32): Likewise.
26546 (vcvtaq_m): Define polymorphic variant.
26547 (vcvtq_m): Likewise.
26548 (vabavq): Likewise.
26549 (vshlcq): Likewise.
26550 (vbicq_m_n): Likewise.
26551 (vqrshrnbq_n): Likewise.
26552 (vqrshrunbq_n): Likewise.
26553 * config/arm/arm_mve_builtins.def
26554 (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS): Use the builtin qualifer.
26555 (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
26556 (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
26557 (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
26558 (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
26559 (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
26560 (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
26561 (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
26562 (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
26563 (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
26564 (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
26565 (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
26566 (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
26567 (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
26568 * config/arm/mve.md (VBICQ_M_N): Define iterator.
26569 (VCVTAQ_M): Likewise.
26570 (VCVTQ_M_TO_F): Likewise.
26571 (VQRSHRNBQ_N): Likewise.
26572 (VABAVQ): Likewise.
26573 (VSHLCQ): Likewise.
26574 (VRMLALDAVHAQ): Likewise.
26575 (mve_vbicq_m_n_<supf><mode>): Define RTL pattern.
26576 (mve_vcmpeqq_m_f<mode>): Likewise.
26577 (mve_vcvtaq_m_<supf><mode>): Likewise.
26578 (mve_vcvtq_m_to_f_<supf><mode>): Likewise.
26579 (mve_vqrshrnbq_n_<supf><mode>): Likewise.
26580 (mve_vqrshrunbq_n_s<mode>): Likewise.
26581 (mve_vrmlaldavhaq_<supf>v4si): Likewise.
26582 (mve_vabavq_<supf><mode>): Likewise.
26583 (mve_vshlcq_<supf><mode>): Likewise.
26584 (mve_vshlcq_<supf><mode>): Likewise.
26585 (mve_vshlcq_vec_<supf><mode>): Define RTL expand.
26586 (mve_vshlcq_carry_<supf><mode>): Likewise.
26588 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
26589 Mihail Ionescu <mihail.ionescu@arm.com>
26590 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
26592 * config/arm/arm_mve.h (vqmovntq_u16): Define macro.
26593 (vqmovnbq_u16): Likewise.
26594 (vmulltq_poly_p8): Likewise.
26595 (vmullbq_poly_p8): Likewise.
26596 (vmovntq_u16): Likewise.
26597 (vmovnbq_u16): Likewise.
26598 (vmlaldavxq_u16): Likewise.
26599 (vmlaldavq_u16): Likewise.
26600 (vqmovuntq_s16): Likewise.
26601 (vqmovunbq_s16): Likewise.
26602 (vshlltq_n_u8): Likewise.
26603 (vshllbq_n_u8): Likewise.
26604 (vorrq_n_u16): Likewise.
26605 (vbicq_n_u16): Likewise.
26606 (vcmpneq_n_f16): Likewise.
26607 (vcmpneq_f16): Likewise.
26608 (vcmpltq_n_f16): Likewise.
26609 (vcmpltq_f16): Likewise.
26610 (vcmpleq_n_f16): Likewise.
26611 (vcmpleq_f16): Likewise.
26612 (vcmpgtq_n_f16): Likewise.
26613 (vcmpgtq_f16): Likewise.
26614 (vcmpgeq_n_f16): Likewise.
26615 (vcmpgeq_f16): Likewise.
26616 (vcmpeqq_n_f16): Likewise.
26617 (vcmpeqq_f16): Likewise.
26618 (vsubq_f16): Likewise.
26619 (vqmovntq_s16): Likewise.
26620 (vqmovnbq_s16): Likewise.
26621 (vqdmulltq_s16): Likewise.
26622 (vqdmulltq_n_s16): Likewise.
26623 (vqdmullbq_s16): Likewise.
26624 (vqdmullbq_n_s16): Likewise.
26625 (vorrq_f16): Likewise.
26626 (vornq_f16): Likewise.
26627 (vmulq_n_f16): Likewise.
26628 (vmulq_f16): Likewise.
26629 (vmovntq_s16): Likewise.
26630 (vmovnbq_s16): Likewise.
26631 (vmlsldavxq_s16): Likewise.
26632 (vmlsldavq_s16): Likewise.
26633 (vmlaldavxq_s16): Likewise.
26634 (vmlaldavq_s16): Likewise.
26635 (vminnmvq_f16): Likewise.
26636 (vminnmq_f16): Likewise.
26637 (vminnmavq_f16): Likewise.
26638 (vminnmaq_f16): Likewise.
26639 (vmaxnmvq_f16): Likewise.
26640 (vmaxnmq_f16): Likewise.
26641 (vmaxnmavq_f16): Likewise.
26642 (vmaxnmaq_f16): Likewise.
26643 (veorq_f16): Likewise.
26644 (vcmulq_rot90_f16): Likewise.
26645 (vcmulq_rot270_f16): Likewise.
26646 (vcmulq_rot180_f16): Likewise.
26647 (vcmulq_f16): Likewise.
26648 (vcaddq_rot90_f16): Likewise.
26649 (vcaddq_rot270_f16): Likewise.
26650 (vbicq_f16): Likewise.
26651 (vandq_f16): Likewise.
26652 (vaddq_n_f16): Likewise.
26653 (vabdq_f16): Likewise.
26654 (vshlltq_n_s8): Likewise.
26655 (vshllbq_n_s8): Likewise.
26656 (vorrq_n_s16): Likewise.
26657 (vbicq_n_s16): Likewise.
26658 (vqmovntq_u32): Likewise.
26659 (vqmovnbq_u32): Likewise.
26660 (vmulltq_poly_p16): Likewise.
26661 (vmullbq_poly_p16): Likewise.
26662 (vmovntq_u32): Likewise.
26663 (vmovnbq_u32): Likewise.
26664 (vmlaldavxq_u32): Likewise.
26665 (vmlaldavq_u32): Likewise.
26666 (vqmovuntq_s32): Likewise.
26667 (vqmovunbq_s32): Likewise.
26668 (vshlltq_n_u16): Likewise.
26669 (vshllbq_n_u16): Likewise.
26670 (vorrq_n_u32): Likewise.
26671 (vbicq_n_u32): Likewise.
26672 (vcmpneq_n_f32): Likewise.
26673 (vcmpneq_f32): Likewise.
26674 (vcmpltq_n_f32): Likewise.
26675 (vcmpltq_f32): Likewise.
26676 (vcmpleq_n_f32): Likewise.
26677 (vcmpleq_f32): Likewise.
26678 (vcmpgtq_n_f32): Likewise.
26679 (vcmpgtq_f32): Likewise.
26680 (vcmpgeq_n_f32): Likewise.
26681 (vcmpgeq_f32): Likewise.
26682 (vcmpeqq_n_f32): Likewise.
26683 (vcmpeqq_f32): Likewise.
26684 (vsubq_f32): Likewise.
26685 (vqmovntq_s32): Likewise.
26686 (vqmovnbq_s32): Likewise.
26687 (vqdmulltq_s32): Likewise.
26688 (vqdmulltq_n_s32): Likewise.
26689 (vqdmullbq_s32): Likewise.
26690 (vqdmullbq_n_s32): Likewise.
26691 (vorrq_f32): Likewise.
26692 (vornq_f32): Likewise.
26693 (vmulq_n_f32): Likewise.
26694 (vmulq_f32): Likewise.
26695 (vmovntq_s32): Likewise.
26696 (vmovnbq_s32): Likewise.
26697 (vmlsldavxq_s32): Likewise.
26698 (vmlsldavq_s32): Likewise.
26699 (vmlaldavxq_s32): Likewise.
26700 (vmlaldavq_s32): Likewise.
26701 (vminnmvq_f32): Likewise.
26702 (vminnmq_f32): Likewise.
26703 (vminnmavq_f32): Likewise.
26704 (vminnmaq_f32): Likewise.
26705 (vmaxnmvq_f32): Likewise.
26706 (vmaxnmq_f32): Likewise.
26707 (vmaxnmavq_f32): Likewise.
26708 (vmaxnmaq_f32): Likewise.
26709 (veorq_f32): Likewise.
26710 (vcmulq_rot90_f32): Likewise.
26711 (vcmulq_rot270_f32): Likewise.
26712 (vcmulq_rot180_f32): Likewise.
26713 (vcmulq_f32): Likewise.
26714 (vcaddq_rot90_f32): Likewise.
26715 (vcaddq_rot270_f32): Likewise.
26716 (vbicq_f32): Likewise.
26717 (vandq_f32): Likewise.
26718 (vaddq_n_f32): Likewise.
26719 (vabdq_f32): Likewise.
26720 (vshlltq_n_s16): Likewise.
26721 (vshllbq_n_s16): Likewise.
26722 (vorrq_n_s32): Likewise.
26723 (vbicq_n_s32): Likewise.
26724 (vrmlaldavhq_u32): Likewise.
26725 (vctp8q_m): Likewise.
26726 (vctp64q_m): Likewise.
26727 (vctp32q_m): Likewise.
26728 (vctp16q_m): Likewise.
26729 (vaddlvaq_u32): Likewise.
26730 (vrmlsldavhxq_s32): Likewise.
26731 (vrmlsldavhq_s32): Likewise.
26732 (vrmlaldavhxq_s32): Likewise.
26733 (vrmlaldavhq_s32): Likewise.
26734 (vcvttq_f16_f32): Likewise.
26735 (vcvtbq_f16_f32): Likewise.
26736 (vaddlvaq_s32): Likewise.
26737 (__arm_vqmovntq_u16): Define intrinsic.
26738 (__arm_vqmovnbq_u16): Likewise.
26739 (__arm_vmulltq_poly_p8): Likewise.
26740 (__arm_vmullbq_poly_p8): Likewise.
26741 (__arm_vmovntq_u16): Likewise.
26742 (__arm_vmovnbq_u16): Likewise.
26743 (__arm_vmlaldavxq_u16): Likewise.
26744 (__arm_vmlaldavq_u16): Likewise.
26745 (__arm_vqmovuntq_s16): Likewise.
26746 (__arm_vqmovunbq_s16): Likewise.
26747 (__arm_vshlltq_n_u8): Likewise.
26748 (__arm_vshllbq_n_u8): Likewise.
26749 (__arm_vorrq_n_u16): Likewise.
26750 (__arm_vbicq_n_u16): Likewise.
26751 (__arm_vcmpneq_n_f16): Likewise.
26752 (__arm_vcmpneq_f16): Likewise.
26753 (__arm_vcmpltq_n_f16): Likewise.
26754 (__arm_vcmpltq_f16): Likewise.
26755 (__arm_vcmpleq_n_f16): Likewise.
26756 (__arm_vcmpleq_f16): Likewise.
26757 (__arm_vcmpgtq_n_f16): Likewise.
26758 (__arm_vcmpgtq_f16): Likewise.
26759 (__arm_vcmpgeq_n_f16): Likewise.
26760 (__arm_vcmpgeq_f16): Likewise.
26761 (__arm_vcmpeqq_n_f16): Likewise.
26762 (__arm_vcmpeqq_f16): Likewise.
26763 (__arm_vsubq_f16): Likewise.
26764 (__arm_vqmovntq_s16): Likewise.
26765 (__arm_vqmovnbq_s16): Likewise.
26766 (__arm_vqdmulltq_s16): Likewise.
26767 (__arm_vqdmulltq_n_s16): Likewise.
26768 (__arm_vqdmullbq_s16): Likewise.
26769 (__arm_vqdmullbq_n_s16): Likewise.
26770 (__arm_vorrq_f16): Likewise.
26771 (__arm_vornq_f16): Likewise.
26772 (__arm_vmulq_n_f16): Likewise.
26773 (__arm_vmulq_f16): Likewise.
26774 (__arm_vmovntq_s16): Likewise.
26775 (__arm_vmovnbq_s16): Likewise.
26776 (__arm_vmlsldavxq_s16): Likewise.
26777 (__arm_vmlsldavq_s16): Likewise.
26778 (__arm_vmlaldavxq_s16): Likewise.
26779 (__arm_vmlaldavq_s16): Likewise.
26780 (__arm_vminnmvq_f16): Likewise.
26781 (__arm_vminnmq_f16): Likewise.
26782 (__arm_vminnmavq_f16): Likewise.
26783 (__arm_vminnmaq_f16): Likewise.
26784 (__arm_vmaxnmvq_f16): Likewise.
26785 (__arm_vmaxnmq_f16): Likewise.
26786 (__arm_vmaxnmavq_f16): Likewise.
26787 (__arm_vmaxnmaq_f16): Likewise.
26788 (__arm_veorq_f16): Likewise.
26789 (__arm_vcmulq_rot90_f16): Likewise.
26790 (__arm_vcmulq_rot270_f16): Likewise.
26791 (__arm_vcmulq_rot180_f16): Likewise.
26792 (__arm_vcmulq_f16): Likewise.
26793 (__arm_vcaddq_rot90_f16): Likewise.
26794 (__arm_vcaddq_rot270_f16): Likewise.
26795 (__arm_vbicq_f16): Likewise.
26796 (__arm_vandq_f16): Likewise.
26797 (__arm_vaddq_n_f16): Likewise.
26798 (__arm_vabdq_f16): Likewise.
26799 (__arm_vshlltq_n_s8): Likewise.
26800 (__arm_vshllbq_n_s8): Likewise.
26801 (__arm_vorrq_n_s16): Likewise.
26802 (__arm_vbicq_n_s16): Likewise.
26803 (__arm_vqmovntq_u32): Likewise.
26804 (__arm_vqmovnbq_u32): Likewise.
26805 (__arm_vmulltq_poly_p16): Likewise.
26806 (__arm_vmullbq_poly_p16): Likewise.
26807 (__arm_vmovntq_u32): Likewise.
26808 (__arm_vmovnbq_u32): Likewise.
26809 (__arm_vmlaldavxq_u32): Likewise.
26810 (__arm_vmlaldavq_u32): Likewise.
26811 (__arm_vqmovuntq_s32): Likewise.
26812 (__arm_vqmovunbq_s32): Likewise.
26813 (__arm_vshlltq_n_u16): Likewise.
26814 (__arm_vshllbq_n_u16): Likewise.
26815 (__arm_vorrq_n_u32): Likewise.
26816 (__arm_vbicq_n_u32): Likewise.
26817 (__arm_vcmpneq_n_f32): Likewise.
26818 (__arm_vcmpneq_f32): Likewise.
26819 (__arm_vcmpltq_n_f32): Likewise.
26820 (__arm_vcmpltq_f32): Likewise.
26821 (__arm_vcmpleq_n_f32): Likewise.
26822 (__arm_vcmpleq_f32): Likewise.
26823 (__arm_vcmpgtq_n_f32): Likewise.
26824 (__arm_vcmpgtq_f32): Likewise.
26825 (__arm_vcmpgeq_n_f32): Likewise.
26826 (__arm_vcmpgeq_f32): Likewise.
26827 (__arm_vcmpeqq_n_f32): Likewise.
26828 (__arm_vcmpeqq_f32): Likewise.
26829 (__arm_vsubq_f32): Likewise.
26830 (__arm_vqmovntq_s32): Likewise.
26831 (__arm_vqmovnbq_s32): Likewise.
26832 (__arm_vqdmulltq_s32): Likewise.
26833 (__arm_vqdmulltq_n_s32): Likewise.
26834 (__arm_vqdmullbq_s32): Likewise.
26835 (__arm_vqdmullbq_n_s32): Likewise.
26836 (__arm_vorrq_f32): Likewise.
26837 (__arm_vornq_f32): Likewise.
26838 (__arm_vmulq_n_f32): Likewise.
26839 (__arm_vmulq_f32): Likewise.
26840 (__arm_vmovntq_s32): Likewise.
26841 (__arm_vmovnbq_s32): Likewise.
26842 (__arm_vmlsldavxq_s32): Likewise.
26843 (__arm_vmlsldavq_s32): Likewise.
26844 (__arm_vmlaldavxq_s32): Likewise.
26845 (__arm_vmlaldavq_s32): Likewise.
26846 (__arm_vminnmvq_f32): Likewise.
26847 (__arm_vminnmq_f32): Likewise.
26848 (__arm_vminnmavq_f32): Likewise.
26849 (__arm_vminnmaq_f32): Likewise.
26850 (__arm_vmaxnmvq_f32): Likewise.
26851 (__arm_vmaxnmq_f32): Likewise.
26852 (__arm_vmaxnmavq_f32): Likewise.
26853 (__arm_vmaxnmaq_f32): Likewise.
26854 (__arm_veorq_f32): Likewise.
26855 (__arm_vcmulq_rot90_f32): Likewise.
26856 (__arm_vcmulq_rot270_f32): Likewise.
26857 (__arm_vcmulq_rot180_f32): Likewise.
26858 (__arm_vcmulq_f32): Likewise.
26859 (__arm_vcaddq_rot90_f32): Likewise.
26860 (__arm_vcaddq_rot270_f32): Likewise.
26861 (__arm_vbicq_f32): Likewise.
26862 (__arm_vandq_f32): Likewise.
26863 (__arm_vaddq_n_f32): Likewise.
26864 (__arm_vabdq_f32): Likewise.
26865 (__arm_vshlltq_n_s16): Likewise.
26866 (__arm_vshllbq_n_s16): Likewise.
26867 (__arm_vorrq_n_s32): Likewise.
26868 (__arm_vbicq_n_s32): Likewise.
26869 (__arm_vrmlaldavhq_u32): Likewise.
26870 (__arm_vctp8q_m): Likewise.
26871 (__arm_vctp64q_m): Likewise.
26872 (__arm_vctp32q_m): Likewise.
26873 (__arm_vctp16q_m): Likewise.
26874 (__arm_vaddlvaq_u32): Likewise.
26875 (__arm_vrmlsldavhxq_s32): Likewise.
26876 (__arm_vrmlsldavhq_s32): Likewise.
26877 (__arm_vrmlaldavhxq_s32): Likewise.
26878 (__arm_vrmlaldavhq_s32): Likewise.
26879 (__arm_vcvttq_f16_f32): Likewise.
26880 (__arm_vcvtbq_f16_f32): Likewise.
26881 (__arm_vaddlvaq_s32): Likewise.
26882 (vst4q): Define polymorphic variant.
26883 (vrndxq): Likewise.
26885 (vrndpq): Likewise.
26886 (vrndnq): Likewise.
26887 (vrndmq): Likewise.
26888 (vrndaq): Likewise.
26889 (vrev64q): Likewise.
26891 (vdupq_n): Likewise.
26893 (vrev32q): Likewise.
26894 (vcvtbq_f32): Likewise.
26895 (vcvttq_f32): Likewise.
26897 (vsubq_n): Likewise.
26898 (vbrsrq_n): Likewise.
26899 (vcvtq_n): Likewise.
26903 (vaddq_n): Likewise.
26907 (vmulq_n): Likewise.
26909 (vcaddq_rot270): Likewise.
26910 (vcmpeqq_n): Likewise.
26911 (vcmpeqq): Likewise.
26912 (vcaddq_rot90): Likewise.
26913 (vcmpgeq_n): Likewise.
26914 (vcmpgeq): Likewise.
26915 (vcmpgtq_n): Likewise.
26916 (vcmpgtq): Likewise.
26917 (vcmpgtq): Likewise.
26918 (vcmpleq_n): Likewise.
26919 (vcmpleq_n): Likewise.
26920 (vcmpleq): Likewise.
26921 (vcmpleq): Likewise.
26922 (vcmpltq_n): Likewise.
26923 (vcmpltq_n): Likewise.
26924 (vcmpltq): Likewise.
26925 (vcmpltq): Likewise.
26926 (vcmpneq_n): Likewise.
26927 (vcmpneq_n): Likewise.
26928 (vcmpneq): Likewise.
26929 (vcmpneq): Likewise.
26930 (vcmulq): Likewise.
26931 (vcmulq): Likewise.
26932 (vcmulq_rot180): Likewise.
26933 (vcmulq_rot180): Likewise.
26934 (vcmulq_rot270): Likewise.
26935 (vcmulq_rot270): Likewise.
26936 (vcmulq_rot90): Likewise.
26937 (vcmulq_rot90): Likewise.
26940 (vmaxnmaq): Likewise.
26941 (vmaxnmaq): Likewise.
26942 (vmaxnmavq): Likewise.
26943 (vmaxnmavq): Likewise.
26944 (vmaxnmq): Likewise.
26945 (vmaxnmq): Likewise.
26946 (vmaxnmvq): Likewise.
26947 (vmaxnmvq): Likewise.
26948 (vminnmaq): Likewise.
26949 (vminnmaq): Likewise.
26950 (vminnmavq): Likewise.
26951 (vminnmavq): Likewise.
26952 (vminnmq): Likewise.
26953 (vminnmq): Likewise.
26954 (vminnmvq): Likewise.
26955 (vminnmvq): Likewise.
26956 (vbicq_n): Likewise.
26957 (vqmovntq): Likewise.
26958 (vqmovntq): Likewise.
26959 (vqmovnbq): Likewise.
26960 (vqmovnbq): Likewise.
26961 (vmulltq_poly): Likewise.
26962 (vmulltq_poly): Likewise.
26963 (vmullbq_poly): Likewise.
26964 (vmullbq_poly): Likewise.
26965 (vmovntq): Likewise.
26966 (vmovntq): Likewise.
26967 (vmovnbq): Likewise.
26968 (vmovnbq): Likewise.
26969 (vmlaldavxq): Likewise.
26970 (vmlaldavxq): Likewise.
26971 (vqmovuntq): Likewise.
26972 (vqmovuntq): Likewise.
26973 (vshlltq_n): Likewise.
26974 (vshlltq_n): Likewise.
26975 (vshllbq_n): Likewise.
26976 (vshllbq_n): Likewise.
26977 (vorrq_n): Likewise.
26978 (vorrq_n): Likewise.
26979 (vmlaldavq): Likewise.
26980 (vmlaldavq): Likewise.
26981 (vqmovunbq): Likewise.
26982 (vqmovunbq): Likewise.
26983 (vqdmulltq_n): Likewise.
26984 (vqdmulltq_n): Likewise.
26985 (vqdmulltq): Likewise.
26986 (vqdmulltq): Likewise.
26987 (vqdmullbq_n): Likewise.
26988 (vqdmullbq_n): Likewise.
26989 (vqdmullbq): Likewise.
26990 (vqdmullbq): Likewise.
26991 (vaddlvaq): Likewise.
26992 (vaddlvaq): Likewise.
26993 (vrmlaldavhq): Likewise.
26994 (vrmlaldavhq): Likewise.
26995 (vrmlaldavhxq): Likewise.
26996 (vrmlaldavhxq): Likewise.
26997 (vrmlsldavhq): Likewise.
26998 (vrmlsldavhq): Likewise.
26999 (vrmlsldavhxq): Likewise.
27000 (vrmlsldavhxq): Likewise.
27001 (vmlsldavxq): Likewise.
27002 (vmlsldavxq): Likewise.
27003 (vmlsldavq): Likewise.
27004 (vmlsldavq): Likewise.
27005 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
27006 (BINOP_NONE_NONE_NONE): Likewise.
27007 (BINOP_UNONE_NONE_NONE): Likewise.
27008 (BINOP_UNONE_UNONE_IMM): Likewise.
27009 (BINOP_UNONE_UNONE_NONE): Likewise.
27010 (BINOP_UNONE_UNONE_UNONE): Likewise.
27011 * config/arm/mve.md (mve_vabdq_f<mode>): Define RTL pattern.
27012 (mve_vaddlvaq_<supf>v4si): Likewise.
27013 (mve_vaddq_n_f<mode>): Likewise.
27014 (mve_vandq_f<mode>): Likewise.
27015 (mve_vbicq_f<mode>): Likewise.
27016 (mve_vbicq_n_<supf><mode>): Likewise.
27017 (mve_vcaddq_rot270_f<mode>): Likewise.
27018 (mve_vcaddq_rot90_f<mode>): Likewise.
27019 (mve_vcmpeqq_f<mode>): Likewise.
27020 (mve_vcmpeqq_n_f<mode>): Likewise.
27021 (mve_vcmpgeq_f<mode>): Likewise.
27022 (mve_vcmpgeq_n_f<mode>): Likewise.
27023 (mve_vcmpgtq_f<mode>): Likewise.
27024 (mve_vcmpgtq_n_f<mode>): Likewise.
27025 (mve_vcmpleq_f<mode>): Likewise.
27026 (mve_vcmpleq_n_f<mode>): Likewise.
27027 (mve_vcmpltq_f<mode>): Likewise.
27028 (mve_vcmpltq_n_f<mode>): Likewise.
27029 (mve_vcmpneq_f<mode>): Likewise.
27030 (mve_vcmpneq_n_f<mode>): Likewise.
27031 (mve_vcmulq_f<mode>): Likewise.
27032 (mve_vcmulq_rot180_f<mode>): Likewise.
27033 (mve_vcmulq_rot270_f<mode>): Likewise.
27034 (mve_vcmulq_rot90_f<mode>): Likewise.
27035 (mve_vctp<mode1>q_mhi): Likewise.
27036 (mve_vcvtbq_f16_f32v8hf): Likewise.
27037 (mve_vcvttq_f16_f32v8hf): Likewise.
27038 (mve_veorq_f<mode>): Likewise.
27039 (mve_vmaxnmaq_f<mode>): Likewise.
27040 (mve_vmaxnmavq_f<mode>): Likewise.
27041 (mve_vmaxnmq_f<mode>): Likewise.
27042 (mve_vmaxnmvq_f<mode>): Likewise.
27043 (mve_vminnmaq_f<mode>): Likewise.
27044 (mve_vminnmavq_f<mode>): Likewise.
27045 (mve_vminnmq_f<mode>): Likewise.
27046 (mve_vminnmvq_f<mode>): Likewise.
27047 (mve_vmlaldavq_<supf><mode>): Likewise.
27048 (mve_vmlaldavxq_<supf><mode>): Likewise.
27049 (mve_vmlsldavq_s<mode>): Likewise.
27050 (mve_vmlsldavxq_s<mode>): Likewise.
27051 (mve_vmovnbq_<supf><mode>): Likewise.
27052 (mve_vmovntq_<supf><mode>): Likewise.
27053 (mve_vmulq_f<mode>): Likewise.
27054 (mve_vmulq_n_f<mode>): Likewise.
27055 (mve_vornq_f<mode>): Likewise.
27056 (mve_vorrq_f<mode>): Likewise.
27057 (mve_vorrq_n_<supf><mode>): Likewise.
27058 (mve_vqdmullbq_n_s<mode>): Likewise.
27059 (mve_vqdmullbq_s<mode>): Likewise.
27060 (mve_vqdmulltq_n_s<mode>): Likewise.
27061 (mve_vqdmulltq_s<mode>): Likewise.
27062 (mve_vqmovnbq_<supf><mode>): Likewise.
27063 (mve_vqmovntq_<supf><mode>): Likewise.
27064 (mve_vqmovunbq_s<mode>): Likewise.
27065 (mve_vqmovuntq_s<mode>): Likewise.
27066 (mve_vrmlaldavhxq_sv4si): Likewise.
27067 (mve_vrmlsldavhq_sv4si): Likewise.
27068 (mve_vrmlsldavhxq_sv4si): Likewise.
27069 (mve_vshllbq_n_<supf><mode>): Likewise.
27070 (mve_vshlltq_n_<supf><mode>): Likewise.
27071 (mve_vsubq_f<mode>): Likewise.
27072 (mve_vmulltq_poly_p<mode>): Likewise.
27073 (mve_vmullbq_poly_p<mode>): Likewise.
27074 (mve_vrmlaldavhq_<supf>v4si): Likewise.
27076 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27077 Mihail Ionescu <mihail.ionescu@arm.com>
27078 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27080 * config/arm/arm_mve.h (vsubq_u8): Define macro.
27081 (vsubq_n_u8): Likewise.
27082 (vrmulhq_u8): Likewise.
27083 (vrhaddq_u8): Likewise.
27084 (vqsubq_u8): Likewise.
27085 (vqsubq_n_u8): Likewise.
27086 (vqaddq_u8): Likewise.
27087 (vqaddq_n_u8): Likewise.
27088 (vorrq_u8): Likewise.
27089 (vornq_u8): Likewise.
27090 (vmulq_u8): Likewise.
27091 (vmulq_n_u8): Likewise.
27092 (vmulltq_int_u8): Likewise.
27093 (vmullbq_int_u8): Likewise.
27094 (vmulhq_u8): Likewise.
27095 (vmladavq_u8): Likewise.
27096 (vminvq_u8): Likewise.
27097 (vminq_u8): Likewise.
27098 (vmaxvq_u8): Likewise.
27099 (vmaxq_u8): Likewise.
27100 (vhsubq_u8): Likewise.
27101 (vhsubq_n_u8): Likewise.
27102 (vhaddq_u8): Likewise.
27103 (vhaddq_n_u8): Likewise.
27104 (veorq_u8): Likewise.
27105 (vcmpneq_n_u8): Likewise.
27106 (vcmphiq_u8): Likewise.
27107 (vcmphiq_n_u8): Likewise.
27108 (vcmpeqq_u8): Likewise.
27109 (vcmpeqq_n_u8): Likewise.
27110 (vcmpcsq_u8): Likewise.
27111 (vcmpcsq_n_u8): Likewise.
27112 (vcaddq_rot90_u8): Likewise.
27113 (vcaddq_rot270_u8): Likewise.
27114 (vbicq_u8): Likewise.
27115 (vandq_u8): Likewise.
27116 (vaddvq_p_u8): Likewise.
27117 (vaddvaq_u8): Likewise.
27118 (vaddq_n_u8): Likewise.
27119 (vabdq_u8): Likewise.
27120 (vshlq_r_u8): Likewise.
27121 (vrshlq_u8): Likewise.
27122 (vrshlq_n_u8): Likewise.
27123 (vqshlq_u8): Likewise.
27124 (vqshlq_r_u8): Likewise.
27125 (vqrshlq_u8): Likewise.
27126 (vqrshlq_n_u8): Likewise.
27127 (vminavq_s8): Likewise.
27128 (vminaq_s8): Likewise.
27129 (vmaxavq_s8): Likewise.
27130 (vmaxaq_s8): Likewise.
27131 (vbrsrq_n_u8): Likewise.
27132 (vshlq_n_u8): Likewise.
27133 (vrshrq_n_u8): Likewise.
27134 (vqshlq_n_u8): Likewise.
27135 (vcmpneq_n_s8): Likewise.
27136 (vcmpltq_s8): Likewise.
27137 (vcmpltq_n_s8): Likewise.
27138 (vcmpleq_s8): Likewise.
27139 (vcmpleq_n_s8): Likewise.
27140 (vcmpgtq_s8): Likewise.
27141 (vcmpgtq_n_s8): Likewise.
27142 (vcmpgeq_s8): Likewise.
27143 (vcmpgeq_n_s8): Likewise.
27144 (vcmpeqq_s8): Likewise.
27145 (vcmpeqq_n_s8): Likewise.
27146 (vqshluq_n_s8): Likewise.
27147 (vaddvq_p_s8): Likewise.
27148 (vsubq_s8): Likewise.
27149 (vsubq_n_s8): Likewise.
27150 (vshlq_r_s8): Likewise.
27151 (vrshlq_s8): Likewise.
27152 (vrshlq_n_s8): Likewise.
27153 (vrmulhq_s8): Likewise.
27154 (vrhaddq_s8): Likewise.
27155 (vqsubq_s8): Likewise.
27156 (vqsubq_n_s8): Likewise.
27157 (vqshlq_s8): Likewise.
27158 (vqshlq_r_s8): Likewise.
27159 (vqrshlq_s8): Likewise.
27160 (vqrshlq_n_s8): Likewise.
27161 (vqrdmulhq_s8): Likewise.
27162 (vqrdmulhq_n_s8): Likewise.
27163 (vqdmulhq_s8): Likewise.
27164 (vqdmulhq_n_s8): Likewise.
27165 (vqaddq_s8): Likewise.
27166 (vqaddq_n_s8): Likewise.
27167 (vorrq_s8): Likewise.
27168 (vornq_s8): Likewise.
27169 (vmulq_s8): Likewise.
27170 (vmulq_n_s8): Likewise.
27171 (vmulltq_int_s8): Likewise.
27172 (vmullbq_int_s8): Likewise.
27173 (vmulhq_s8): Likewise.
27174 (vmlsdavxq_s8): Likewise.
27175 (vmlsdavq_s8): Likewise.
27176 (vmladavxq_s8): Likewise.
27177 (vmladavq_s8): Likewise.
27178 (vminvq_s8): Likewise.
27179 (vminq_s8): Likewise.
27180 (vmaxvq_s8): Likewise.
27181 (vmaxq_s8): Likewise.
27182 (vhsubq_s8): Likewise.
27183 (vhsubq_n_s8): Likewise.
27184 (vhcaddq_rot90_s8): Likewise.
27185 (vhcaddq_rot270_s8): Likewise.
27186 (vhaddq_s8): Likewise.
27187 (vhaddq_n_s8): Likewise.
27188 (veorq_s8): Likewise.
27189 (vcaddq_rot90_s8): Likewise.
27190 (vcaddq_rot270_s8): Likewise.
27191 (vbrsrq_n_s8): Likewise.
27192 (vbicq_s8): Likewise.
27193 (vandq_s8): Likewise.
27194 (vaddvaq_s8): Likewise.
27195 (vaddq_n_s8): Likewise.
27196 (vabdq_s8): Likewise.
27197 (vshlq_n_s8): Likewise.
27198 (vrshrq_n_s8): Likewise.
27199 (vqshlq_n_s8): Likewise.
27200 (vsubq_u16): Likewise.
27201 (vsubq_n_u16): Likewise.
27202 (vrmulhq_u16): Likewise.
27203 (vrhaddq_u16): Likewise.
27204 (vqsubq_u16): Likewise.
27205 (vqsubq_n_u16): Likewise.
27206 (vqaddq_u16): Likewise.
27207 (vqaddq_n_u16): Likewise.
27208 (vorrq_u16): Likewise.
27209 (vornq_u16): Likewise.
27210 (vmulq_u16): Likewise.
27211 (vmulq_n_u16): Likewise.
27212 (vmulltq_int_u16): Likewise.
27213 (vmullbq_int_u16): Likewise.
27214 (vmulhq_u16): Likewise.
27215 (vmladavq_u16): Likewise.
27216 (vminvq_u16): Likewise.
27217 (vminq_u16): Likewise.
27218 (vmaxvq_u16): Likewise.
27219 (vmaxq_u16): Likewise.
27220 (vhsubq_u16): Likewise.
27221 (vhsubq_n_u16): Likewise.
27222 (vhaddq_u16): Likewise.
27223 (vhaddq_n_u16): Likewise.
27224 (veorq_u16): Likewise.
27225 (vcmpneq_n_u16): Likewise.
27226 (vcmphiq_u16): Likewise.
27227 (vcmphiq_n_u16): Likewise.
27228 (vcmpeqq_u16): Likewise.
27229 (vcmpeqq_n_u16): Likewise.
27230 (vcmpcsq_u16): Likewise.
27231 (vcmpcsq_n_u16): Likewise.
27232 (vcaddq_rot90_u16): Likewise.
27233 (vcaddq_rot270_u16): Likewise.
27234 (vbicq_u16): Likewise.
27235 (vandq_u16): Likewise.
27236 (vaddvq_p_u16): Likewise.
27237 (vaddvaq_u16): Likewise.
27238 (vaddq_n_u16): Likewise.
27239 (vabdq_u16): Likewise.
27240 (vshlq_r_u16): Likewise.
27241 (vrshlq_u16): Likewise.
27242 (vrshlq_n_u16): Likewise.
27243 (vqshlq_u16): Likewise.
27244 (vqshlq_r_u16): Likewise.
27245 (vqrshlq_u16): Likewise.
27246 (vqrshlq_n_u16): Likewise.
27247 (vminavq_s16): Likewise.
27248 (vminaq_s16): Likewise.
27249 (vmaxavq_s16): Likewise.
27250 (vmaxaq_s16): Likewise.
27251 (vbrsrq_n_u16): Likewise.
27252 (vshlq_n_u16): Likewise.
27253 (vrshrq_n_u16): Likewise.
27254 (vqshlq_n_u16): Likewise.
27255 (vcmpneq_n_s16): Likewise.
27256 (vcmpltq_s16): Likewise.
27257 (vcmpltq_n_s16): Likewise.
27258 (vcmpleq_s16): Likewise.
27259 (vcmpleq_n_s16): Likewise.
27260 (vcmpgtq_s16): Likewise.
27261 (vcmpgtq_n_s16): Likewise.
27262 (vcmpgeq_s16): Likewise.
27263 (vcmpgeq_n_s16): Likewise.
27264 (vcmpeqq_s16): Likewise.
27265 (vcmpeqq_n_s16): Likewise.
27266 (vqshluq_n_s16): Likewise.
27267 (vaddvq_p_s16): Likewise.
27268 (vsubq_s16): Likewise.
27269 (vsubq_n_s16): Likewise.
27270 (vshlq_r_s16): Likewise.
27271 (vrshlq_s16): Likewise.
27272 (vrshlq_n_s16): Likewise.
27273 (vrmulhq_s16): Likewise.
27274 (vrhaddq_s16): Likewise.
27275 (vqsubq_s16): Likewise.
27276 (vqsubq_n_s16): Likewise.
27277 (vqshlq_s16): Likewise.
27278 (vqshlq_r_s16): Likewise.
27279 (vqrshlq_s16): Likewise.
27280 (vqrshlq_n_s16): Likewise.
27281 (vqrdmulhq_s16): Likewise.
27282 (vqrdmulhq_n_s16): Likewise.
27283 (vqdmulhq_s16): Likewise.
27284 (vqdmulhq_n_s16): Likewise.
27285 (vqaddq_s16): Likewise.
27286 (vqaddq_n_s16): Likewise.
27287 (vorrq_s16): Likewise.
27288 (vornq_s16): Likewise.
27289 (vmulq_s16): Likewise.
27290 (vmulq_n_s16): Likewise.
27291 (vmulltq_int_s16): Likewise.
27292 (vmullbq_int_s16): Likewise.
27293 (vmulhq_s16): Likewise.
27294 (vmlsdavxq_s16): Likewise.
27295 (vmlsdavq_s16): Likewise.
27296 (vmladavxq_s16): Likewise.
27297 (vmladavq_s16): Likewise.
27298 (vminvq_s16): Likewise.
27299 (vminq_s16): Likewise.
27300 (vmaxvq_s16): Likewise.
27301 (vmaxq_s16): Likewise.
27302 (vhsubq_s16): Likewise.
27303 (vhsubq_n_s16): Likewise.
27304 (vhcaddq_rot90_s16): Likewise.
27305 (vhcaddq_rot270_s16): Likewise.
27306 (vhaddq_s16): Likewise.
27307 (vhaddq_n_s16): Likewise.
27308 (veorq_s16): Likewise.
27309 (vcaddq_rot90_s16): Likewise.
27310 (vcaddq_rot270_s16): Likewise.
27311 (vbrsrq_n_s16): Likewise.
27312 (vbicq_s16): Likewise.
27313 (vandq_s16): Likewise.
27314 (vaddvaq_s16): Likewise.
27315 (vaddq_n_s16): Likewise.
27316 (vabdq_s16): Likewise.
27317 (vshlq_n_s16): Likewise.
27318 (vrshrq_n_s16): Likewise.
27319 (vqshlq_n_s16): Likewise.
27320 (vsubq_u32): Likewise.
27321 (vsubq_n_u32): Likewise.
27322 (vrmulhq_u32): Likewise.
27323 (vrhaddq_u32): Likewise.
27324 (vqsubq_u32): Likewise.
27325 (vqsubq_n_u32): Likewise.
27326 (vqaddq_u32): Likewise.
27327 (vqaddq_n_u32): Likewise.
27328 (vorrq_u32): Likewise.
27329 (vornq_u32): Likewise.
27330 (vmulq_u32): Likewise.
27331 (vmulq_n_u32): Likewise.
27332 (vmulltq_int_u32): Likewise.
27333 (vmullbq_int_u32): Likewise.
27334 (vmulhq_u32): Likewise.
27335 (vmladavq_u32): Likewise.
27336 (vminvq_u32): Likewise.
27337 (vminq_u32): Likewise.
27338 (vmaxvq_u32): Likewise.
27339 (vmaxq_u32): Likewise.
27340 (vhsubq_u32): Likewise.
27341 (vhsubq_n_u32): Likewise.
27342 (vhaddq_u32): Likewise.
27343 (vhaddq_n_u32): Likewise.
27344 (veorq_u32): Likewise.
27345 (vcmpneq_n_u32): Likewise.
27346 (vcmphiq_u32): Likewise.
27347 (vcmphiq_n_u32): Likewise.
27348 (vcmpeqq_u32): Likewise.
27349 (vcmpeqq_n_u32): Likewise.
27350 (vcmpcsq_u32): Likewise.
27351 (vcmpcsq_n_u32): Likewise.
27352 (vcaddq_rot90_u32): Likewise.
27353 (vcaddq_rot270_u32): Likewise.
27354 (vbicq_u32): Likewise.
27355 (vandq_u32): Likewise.
27356 (vaddvq_p_u32): Likewise.
27357 (vaddvaq_u32): Likewise.
27358 (vaddq_n_u32): Likewise.
27359 (vabdq_u32): Likewise.
27360 (vshlq_r_u32): Likewise.
27361 (vrshlq_u32): Likewise.
27362 (vrshlq_n_u32): Likewise.
27363 (vqshlq_u32): Likewise.
27364 (vqshlq_r_u32): Likewise.
27365 (vqrshlq_u32): Likewise.
27366 (vqrshlq_n_u32): Likewise.
27367 (vminavq_s32): Likewise.
27368 (vminaq_s32): Likewise.
27369 (vmaxavq_s32): Likewise.
27370 (vmaxaq_s32): Likewise.
27371 (vbrsrq_n_u32): Likewise.
27372 (vshlq_n_u32): Likewise.
27373 (vrshrq_n_u32): Likewise.
27374 (vqshlq_n_u32): Likewise.
27375 (vcmpneq_n_s32): Likewise.
27376 (vcmpltq_s32): Likewise.
27377 (vcmpltq_n_s32): Likewise.
27378 (vcmpleq_s32): Likewise.
27379 (vcmpleq_n_s32): Likewise.
27380 (vcmpgtq_s32): Likewise.
27381 (vcmpgtq_n_s32): Likewise.
27382 (vcmpgeq_s32): Likewise.
27383 (vcmpgeq_n_s32): Likewise.
27384 (vcmpeqq_s32): Likewise.
27385 (vcmpeqq_n_s32): Likewise.
27386 (vqshluq_n_s32): Likewise.
27387 (vaddvq_p_s32): Likewise.
27388 (vsubq_s32): Likewise.
27389 (vsubq_n_s32): Likewise.
27390 (vshlq_r_s32): Likewise.
27391 (vrshlq_s32): Likewise.
27392 (vrshlq_n_s32): Likewise.
27393 (vrmulhq_s32): Likewise.
27394 (vrhaddq_s32): Likewise.
27395 (vqsubq_s32): Likewise.
27396 (vqsubq_n_s32): Likewise.
27397 (vqshlq_s32): Likewise.
27398 (vqshlq_r_s32): Likewise.
27399 (vqrshlq_s32): Likewise.
27400 (vqrshlq_n_s32): Likewise.
27401 (vqrdmulhq_s32): Likewise.
27402 (vqrdmulhq_n_s32): Likewise.
27403 (vqdmulhq_s32): Likewise.
27404 (vqdmulhq_n_s32): Likewise.
27405 (vqaddq_s32): Likewise.
27406 (vqaddq_n_s32): Likewise.
27407 (vorrq_s32): Likewise.
27408 (vornq_s32): Likewise.
27409 (vmulq_s32): Likewise.
27410 (vmulq_n_s32): Likewise.
27411 (vmulltq_int_s32): Likewise.
27412 (vmullbq_int_s32): Likewise.
27413 (vmulhq_s32): Likewise.
27414 (vmlsdavxq_s32): Likewise.
27415 (vmlsdavq_s32): Likewise.
27416 (vmladavxq_s32): Likewise.
27417 (vmladavq_s32): Likewise.
27418 (vminvq_s32): Likewise.
27419 (vminq_s32): Likewise.
27420 (vmaxvq_s32): Likewise.
27421 (vmaxq_s32): Likewise.
27422 (vhsubq_s32): Likewise.
27423 (vhsubq_n_s32): Likewise.
27424 (vhcaddq_rot90_s32): Likewise.
27425 (vhcaddq_rot270_s32): Likewise.
27426 (vhaddq_s32): Likewise.
27427 (vhaddq_n_s32): Likewise.
27428 (veorq_s32): Likewise.
27429 (vcaddq_rot90_s32): Likewise.
27430 (vcaddq_rot270_s32): Likewise.
27431 (vbrsrq_n_s32): Likewise.
27432 (vbicq_s32): Likewise.
27433 (vandq_s32): Likewise.
27434 (vaddvaq_s32): Likewise.
27435 (vaddq_n_s32): Likewise.
27436 (vabdq_s32): Likewise.
27437 (vshlq_n_s32): Likewise.
27438 (vrshrq_n_s32): Likewise.
27439 (vqshlq_n_s32): Likewise.
27440 (__arm_vsubq_u8): Define intrinsic.
27441 (__arm_vsubq_n_u8): Likewise.
27442 (__arm_vrmulhq_u8): Likewise.
27443 (__arm_vrhaddq_u8): Likewise.
27444 (__arm_vqsubq_u8): Likewise.
27445 (__arm_vqsubq_n_u8): Likewise.
27446 (__arm_vqaddq_u8): Likewise.
27447 (__arm_vqaddq_n_u8): Likewise.
27448 (__arm_vorrq_u8): Likewise.
27449 (__arm_vornq_u8): Likewise.
27450 (__arm_vmulq_u8): Likewise.
27451 (__arm_vmulq_n_u8): Likewise.
27452 (__arm_vmulltq_int_u8): Likewise.
27453 (__arm_vmullbq_int_u8): Likewise.
27454 (__arm_vmulhq_u8): Likewise.
27455 (__arm_vmladavq_u8): Likewise.
27456 (__arm_vminvq_u8): Likewise.
27457 (__arm_vminq_u8): Likewise.
27458 (__arm_vmaxvq_u8): Likewise.
27459 (__arm_vmaxq_u8): Likewise.
27460 (__arm_vhsubq_u8): Likewise.
27461 (__arm_vhsubq_n_u8): Likewise.
27462 (__arm_vhaddq_u8): Likewise.
27463 (__arm_vhaddq_n_u8): Likewise.
27464 (__arm_veorq_u8): Likewise.
27465 (__arm_vcmpneq_n_u8): Likewise.
27466 (__arm_vcmphiq_u8): Likewise.
27467 (__arm_vcmphiq_n_u8): Likewise.
27468 (__arm_vcmpeqq_u8): Likewise.
27469 (__arm_vcmpeqq_n_u8): Likewise.
27470 (__arm_vcmpcsq_u8): Likewise.
27471 (__arm_vcmpcsq_n_u8): Likewise.
27472 (__arm_vcaddq_rot90_u8): Likewise.
27473 (__arm_vcaddq_rot270_u8): Likewise.
27474 (__arm_vbicq_u8): Likewise.
27475 (__arm_vandq_u8): Likewise.
27476 (__arm_vaddvq_p_u8): Likewise.
27477 (__arm_vaddvaq_u8): Likewise.
27478 (__arm_vaddq_n_u8): Likewise.
27479 (__arm_vabdq_u8): Likewise.
27480 (__arm_vshlq_r_u8): Likewise.
27481 (__arm_vrshlq_u8): Likewise.
27482 (__arm_vrshlq_n_u8): Likewise.
27483 (__arm_vqshlq_u8): Likewise.
27484 (__arm_vqshlq_r_u8): Likewise.
27485 (__arm_vqrshlq_u8): Likewise.
27486 (__arm_vqrshlq_n_u8): Likewise.
27487 (__arm_vminavq_s8): Likewise.
27488 (__arm_vminaq_s8): Likewise.
27489 (__arm_vmaxavq_s8): Likewise.
27490 (__arm_vmaxaq_s8): Likewise.
27491 (__arm_vbrsrq_n_u8): Likewise.
27492 (__arm_vshlq_n_u8): Likewise.
27493 (__arm_vrshrq_n_u8): Likewise.
27494 (__arm_vqshlq_n_u8): Likewise.
27495 (__arm_vcmpneq_n_s8): Likewise.
27496 (__arm_vcmpltq_s8): Likewise.
27497 (__arm_vcmpltq_n_s8): Likewise.
27498 (__arm_vcmpleq_s8): Likewise.
27499 (__arm_vcmpleq_n_s8): Likewise.
27500 (__arm_vcmpgtq_s8): Likewise.
27501 (__arm_vcmpgtq_n_s8): Likewise.
27502 (__arm_vcmpgeq_s8): Likewise.
27503 (__arm_vcmpgeq_n_s8): Likewise.
27504 (__arm_vcmpeqq_s8): Likewise.
27505 (__arm_vcmpeqq_n_s8): Likewise.
27506 (__arm_vqshluq_n_s8): Likewise.
27507 (__arm_vaddvq_p_s8): Likewise.
27508 (__arm_vsubq_s8): Likewise.
27509 (__arm_vsubq_n_s8): Likewise.
27510 (__arm_vshlq_r_s8): Likewise.
27511 (__arm_vrshlq_s8): Likewise.
27512 (__arm_vrshlq_n_s8): Likewise.
27513 (__arm_vrmulhq_s8): Likewise.
27514 (__arm_vrhaddq_s8): Likewise.
27515 (__arm_vqsubq_s8): Likewise.
27516 (__arm_vqsubq_n_s8): Likewise.
27517 (__arm_vqshlq_s8): Likewise.
27518 (__arm_vqshlq_r_s8): Likewise.
27519 (__arm_vqrshlq_s8): Likewise.
27520 (__arm_vqrshlq_n_s8): Likewise.
27521 (__arm_vqrdmulhq_s8): Likewise.
27522 (__arm_vqrdmulhq_n_s8): Likewise.
27523 (__arm_vqdmulhq_s8): Likewise.
27524 (__arm_vqdmulhq_n_s8): Likewise.
27525 (__arm_vqaddq_s8): Likewise.
27526 (__arm_vqaddq_n_s8): Likewise.
27527 (__arm_vorrq_s8): Likewise.
27528 (__arm_vornq_s8): Likewise.
27529 (__arm_vmulq_s8): Likewise.
27530 (__arm_vmulq_n_s8): Likewise.
27531 (__arm_vmulltq_int_s8): Likewise.
27532 (__arm_vmullbq_int_s8): Likewise.
27533 (__arm_vmulhq_s8): Likewise.
27534 (__arm_vmlsdavxq_s8): Likewise.
27535 (__arm_vmlsdavq_s8): Likewise.
27536 (__arm_vmladavxq_s8): Likewise.
27537 (__arm_vmladavq_s8): Likewise.
27538 (__arm_vminvq_s8): Likewise.
27539 (__arm_vminq_s8): Likewise.
27540 (__arm_vmaxvq_s8): Likewise.
27541 (__arm_vmaxq_s8): Likewise.
27542 (__arm_vhsubq_s8): Likewise.
27543 (__arm_vhsubq_n_s8): Likewise.
27544 (__arm_vhcaddq_rot90_s8): Likewise.
27545 (__arm_vhcaddq_rot270_s8): Likewise.
27546 (__arm_vhaddq_s8): Likewise.
27547 (__arm_vhaddq_n_s8): Likewise.
27548 (__arm_veorq_s8): Likewise.
27549 (__arm_vcaddq_rot90_s8): Likewise.
27550 (__arm_vcaddq_rot270_s8): Likewise.
27551 (__arm_vbrsrq_n_s8): Likewise.
27552 (__arm_vbicq_s8): Likewise.
27553 (__arm_vandq_s8): Likewise.
27554 (__arm_vaddvaq_s8): Likewise.
27555 (__arm_vaddq_n_s8): Likewise.
27556 (__arm_vabdq_s8): Likewise.
27557 (__arm_vshlq_n_s8): Likewise.
27558 (__arm_vrshrq_n_s8): Likewise.
27559 (__arm_vqshlq_n_s8): Likewise.
27560 (__arm_vsubq_u16): Likewise.
27561 (__arm_vsubq_n_u16): Likewise.
27562 (__arm_vrmulhq_u16): Likewise.
27563 (__arm_vrhaddq_u16): Likewise.
27564 (__arm_vqsubq_u16): Likewise.
27565 (__arm_vqsubq_n_u16): Likewise.
27566 (__arm_vqaddq_u16): Likewise.
27567 (__arm_vqaddq_n_u16): Likewise.
27568 (__arm_vorrq_u16): Likewise.
27569 (__arm_vornq_u16): Likewise.
27570 (__arm_vmulq_u16): Likewise.
27571 (__arm_vmulq_n_u16): Likewise.
27572 (__arm_vmulltq_int_u16): Likewise.
27573 (__arm_vmullbq_int_u16): Likewise.
27574 (__arm_vmulhq_u16): Likewise.
27575 (__arm_vmladavq_u16): Likewise.
27576 (__arm_vminvq_u16): Likewise.
27577 (__arm_vminq_u16): Likewise.
27578 (__arm_vmaxvq_u16): Likewise.
27579 (__arm_vmaxq_u16): Likewise.
27580 (__arm_vhsubq_u16): Likewise.
27581 (__arm_vhsubq_n_u16): Likewise.
27582 (__arm_vhaddq_u16): Likewise.
27583 (__arm_vhaddq_n_u16): Likewise.
27584 (__arm_veorq_u16): Likewise.
27585 (__arm_vcmpneq_n_u16): Likewise.
27586 (__arm_vcmphiq_u16): Likewise.
27587 (__arm_vcmphiq_n_u16): Likewise.
27588 (__arm_vcmpeqq_u16): Likewise.
27589 (__arm_vcmpeqq_n_u16): Likewise.
27590 (__arm_vcmpcsq_u16): Likewise.
27591 (__arm_vcmpcsq_n_u16): Likewise.
27592 (__arm_vcaddq_rot90_u16): Likewise.
27593 (__arm_vcaddq_rot270_u16): Likewise.
27594 (__arm_vbicq_u16): Likewise.
27595 (__arm_vandq_u16): Likewise.
27596 (__arm_vaddvq_p_u16): Likewise.
27597 (__arm_vaddvaq_u16): Likewise.
27598 (__arm_vaddq_n_u16): Likewise.
27599 (__arm_vabdq_u16): Likewise.
27600 (__arm_vshlq_r_u16): Likewise.
27601 (__arm_vrshlq_u16): Likewise.
27602 (__arm_vrshlq_n_u16): Likewise.
27603 (__arm_vqshlq_u16): Likewise.
27604 (__arm_vqshlq_r_u16): Likewise.
27605 (__arm_vqrshlq_u16): Likewise.
27606 (__arm_vqrshlq_n_u16): Likewise.
27607 (__arm_vminavq_s16): Likewise.
27608 (__arm_vminaq_s16): Likewise.
27609 (__arm_vmaxavq_s16): Likewise.
27610 (__arm_vmaxaq_s16): Likewise.
27611 (__arm_vbrsrq_n_u16): Likewise.
27612 (__arm_vshlq_n_u16): Likewise.
27613 (__arm_vrshrq_n_u16): Likewise.
27614 (__arm_vqshlq_n_u16): Likewise.
27615 (__arm_vcmpneq_n_s16): Likewise.
27616 (__arm_vcmpltq_s16): Likewise.
27617 (__arm_vcmpltq_n_s16): Likewise.
27618 (__arm_vcmpleq_s16): Likewise.
27619 (__arm_vcmpleq_n_s16): Likewise.
27620 (__arm_vcmpgtq_s16): Likewise.
27621 (__arm_vcmpgtq_n_s16): Likewise.
27622 (__arm_vcmpgeq_s16): Likewise.
27623 (__arm_vcmpgeq_n_s16): Likewise.
27624 (__arm_vcmpeqq_s16): Likewise.
27625 (__arm_vcmpeqq_n_s16): Likewise.
27626 (__arm_vqshluq_n_s16): Likewise.
27627 (__arm_vaddvq_p_s16): Likewise.
27628 (__arm_vsubq_s16): Likewise.
27629 (__arm_vsubq_n_s16): Likewise.
27630 (__arm_vshlq_r_s16): Likewise.
27631 (__arm_vrshlq_s16): Likewise.
27632 (__arm_vrshlq_n_s16): Likewise.
27633 (__arm_vrmulhq_s16): Likewise.
27634 (__arm_vrhaddq_s16): Likewise.
27635 (__arm_vqsubq_s16): Likewise.
27636 (__arm_vqsubq_n_s16): Likewise.
27637 (__arm_vqshlq_s16): Likewise.
27638 (__arm_vqshlq_r_s16): Likewise.
27639 (__arm_vqrshlq_s16): Likewise.
27640 (__arm_vqrshlq_n_s16): Likewise.
27641 (__arm_vqrdmulhq_s16): Likewise.
27642 (__arm_vqrdmulhq_n_s16): Likewise.
27643 (__arm_vqdmulhq_s16): Likewise.
27644 (__arm_vqdmulhq_n_s16): Likewise.
27645 (__arm_vqaddq_s16): Likewise.
27646 (__arm_vqaddq_n_s16): Likewise.
27647 (__arm_vorrq_s16): Likewise.
27648 (__arm_vornq_s16): Likewise.
27649 (__arm_vmulq_s16): Likewise.
27650 (__arm_vmulq_n_s16): Likewise.
27651 (__arm_vmulltq_int_s16): Likewise.
27652 (__arm_vmullbq_int_s16): Likewise.
27653 (__arm_vmulhq_s16): Likewise.
27654 (__arm_vmlsdavxq_s16): Likewise.
27655 (__arm_vmlsdavq_s16): Likewise.
27656 (__arm_vmladavxq_s16): Likewise.
27657 (__arm_vmladavq_s16): Likewise.
27658 (__arm_vminvq_s16): Likewise.
27659 (__arm_vminq_s16): Likewise.
27660 (__arm_vmaxvq_s16): Likewise.
27661 (__arm_vmaxq_s16): Likewise.
27662 (__arm_vhsubq_s16): Likewise.
27663 (__arm_vhsubq_n_s16): Likewise.
27664 (__arm_vhcaddq_rot90_s16): Likewise.
27665 (__arm_vhcaddq_rot270_s16): Likewise.
27666 (__arm_vhaddq_s16): Likewise.
27667 (__arm_vhaddq_n_s16): Likewise.
27668 (__arm_veorq_s16): Likewise.
27669 (__arm_vcaddq_rot90_s16): Likewise.
27670 (__arm_vcaddq_rot270_s16): Likewise.
27671 (__arm_vbrsrq_n_s16): Likewise.
27672 (__arm_vbicq_s16): Likewise.
27673 (__arm_vandq_s16): Likewise.
27674 (__arm_vaddvaq_s16): Likewise.
27675 (__arm_vaddq_n_s16): Likewise.
27676 (__arm_vabdq_s16): Likewise.
27677 (__arm_vshlq_n_s16): Likewise.
27678 (__arm_vrshrq_n_s16): Likewise.
27679 (__arm_vqshlq_n_s16): Likewise.
27680 (__arm_vsubq_u32): Likewise.
27681 (__arm_vsubq_n_u32): Likewise.
27682 (__arm_vrmulhq_u32): Likewise.
27683 (__arm_vrhaddq_u32): Likewise.
27684 (__arm_vqsubq_u32): Likewise.
27685 (__arm_vqsubq_n_u32): Likewise.
27686 (__arm_vqaddq_u32): Likewise.
27687 (__arm_vqaddq_n_u32): Likewise.
27688 (__arm_vorrq_u32): Likewise.
27689 (__arm_vornq_u32): Likewise.
27690 (__arm_vmulq_u32): Likewise.
27691 (__arm_vmulq_n_u32): Likewise.
27692 (__arm_vmulltq_int_u32): Likewise.
27693 (__arm_vmullbq_int_u32): Likewise.
27694 (__arm_vmulhq_u32): Likewise.
27695 (__arm_vmladavq_u32): Likewise.
27696 (__arm_vminvq_u32): Likewise.
27697 (__arm_vminq_u32): Likewise.
27698 (__arm_vmaxvq_u32): Likewise.
27699 (__arm_vmaxq_u32): Likewise.
27700 (__arm_vhsubq_u32): Likewise.
27701 (__arm_vhsubq_n_u32): Likewise.
27702 (__arm_vhaddq_u32): Likewise.
27703 (__arm_vhaddq_n_u32): Likewise.
27704 (__arm_veorq_u32): Likewise.
27705 (__arm_vcmpneq_n_u32): Likewise.
27706 (__arm_vcmphiq_u32): Likewise.
27707 (__arm_vcmphiq_n_u32): Likewise.
27708 (__arm_vcmpeqq_u32): Likewise.
27709 (__arm_vcmpeqq_n_u32): Likewise.
27710 (__arm_vcmpcsq_u32): Likewise.
27711 (__arm_vcmpcsq_n_u32): Likewise.
27712 (__arm_vcaddq_rot90_u32): Likewise.
27713 (__arm_vcaddq_rot270_u32): Likewise.
27714 (__arm_vbicq_u32): Likewise.
27715 (__arm_vandq_u32): Likewise.
27716 (__arm_vaddvq_p_u32): Likewise.
27717 (__arm_vaddvaq_u32): Likewise.
27718 (__arm_vaddq_n_u32): Likewise.
27719 (__arm_vabdq_u32): Likewise.
27720 (__arm_vshlq_r_u32): Likewise.
27721 (__arm_vrshlq_u32): Likewise.
27722 (__arm_vrshlq_n_u32): Likewise.
27723 (__arm_vqshlq_u32): Likewise.
27724 (__arm_vqshlq_r_u32): Likewise.
27725 (__arm_vqrshlq_u32): Likewise.
27726 (__arm_vqrshlq_n_u32): Likewise.
27727 (__arm_vminavq_s32): Likewise.
27728 (__arm_vminaq_s32): Likewise.
27729 (__arm_vmaxavq_s32): Likewise.
27730 (__arm_vmaxaq_s32): Likewise.
27731 (__arm_vbrsrq_n_u32): Likewise.
27732 (__arm_vshlq_n_u32): Likewise.
27733 (__arm_vrshrq_n_u32): Likewise.
27734 (__arm_vqshlq_n_u32): Likewise.
27735 (__arm_vcmpneq_n_s32): Likewise.
27736 (__arm_vcmpltq_s32): Likewise.
27737 (__arm_vcmpltq_n_s32): Likewise.
27738 (__arm_vcmpleq_s32): Likewise.
27739 (__arm_vcmpleq_n_s32): Likewise.
27740 (__arm_vcmpgtq_s32): Likewise.
27741 (__arm_vcmpgtq_n_s32): Likewise.
27742 (__arm_vcmpgeq_s32): Likewise.
27743 (__arm_vcmpgeq_n_s32): Likewise.
27744 (__arm_vcmpeqq_s32): Likewise.
27745 (__arm_vcmpeqq_n_s32): Likewise.
27746 (__arm_vqshluq_n_s32): Likewise.
27747 (__arm_vaddvq_p_s32): Likewise.
27748 (__arm_vsubq_s32): Likewise.
27749 (__arm_vsubq_n_s32): Likewise.
27750 (__arm_vshlq_r_s32): Likewise.
27751 (__arm_vrshlq_s32): Likewise.
27752 (__arm_vrshlq_n_s32): Likewise.
27753 (__arm_vrmulhq_s32): Likewise.
27754 (__arm_vrhaddq_s32): Likewise.
27755 (__arm_vqsubq_s32): Likewise.
27756 (__arm_vqsubq_n_s32): Likewise.
27757 (__arm_vqshlq_s32): Likewise.
27758 (__arm_vqshlq_r_s32): Likewise.
27759 (__arm_vqrshlq_s32): Likewise.
27760 (__arm_vqrshlq_n_s32): Likewise.
27761 (__arm_vqrdmulhq_s32): Likewise.
27762 (__arm_vqrdmulhq_n_s32): Likewise.
27763 (__arm_vqdmulhq_s32): Likewise.
27764 (__arm_vqdmulhq_n_s32): Likewise.
27765 (__arm_vqaddq_s32): Likewise.
27766 (__arm_vqaddq_n_s32): Likewise.
27767 (__arm_vorrq_s32): Likewise.
27768 (__arm_vornq_s32): Likewise.
27769 (__arm_vmulq_s32): Likewise.
27770 (__arm_vmulq_n_s32): Likewise.
27771 (__arm_vmulltq_int_s32): Likewise.
27772 (__arm_vmullbq_int_s32): Likewise.
27773 (__arm_vmulhq_s32): Likewise.
27774 (__arm_vmlsdavxq_s32): Likewise.
27775 (__arm_vmlsdavq_s32): Likewise.
27776 (__arm_vmladavxq_s32): Likewise.
27777 (__arm_vmladavq_s32): Likewise.
27778 (__arm_vminvq_s32): Likewise.
27779 (__arm_vminq_s32): Likewise.
27780 (__arm_vmaxvq_s32): Likewise.
27781 (__arm_vmaxq_s32): Likewise.
27782 (__arm_vhsubq_s32): Likewise.
27783 (__arm_vhsubq_n_s32): Likewise.
27784 (__arm_vhcaddq_rot90_s32): Likewise.
27785 (__arm_vhcaddq_rot270_s32): Likewise.
27786 (__arm_vhaddq_s32): Likewise.
27787 (__arm_vhaddq_n_s32): Likewise.
27788 (__arm_veorq_s32): Likewise.
27789 (__arm_vcaddq_rot90_s32): Likewise.
27790 (__arm_vcaddq_rot270_s32): Likewise.
27791 (__arm_vbrsrq_n_s32): Likewise.
27792 (__arm_vbicq_s32): Likewise.
27793 (__arm_vandq_s32): Likewise.
27794 (__arm_vaddvaq_s32): Likewise.
27795 (__arm_vaddq_n_s32): Likewise.
27796 (__arm_vabdq_s32): Likewise.
27797 (__arm_vshlq_n_s32): Likewise.
27798 (__arm_vrshrq_n_s32): Likewise.
27799 (__arm_vqshlq_n_s32): Likewise.
27800 (vsubq): Define polymorphic variant.
27801 (vsubq_n): Likewise.
27802 (vshlq_r): Likewise.
27803 (vrshlq_n): Likewise.
27804 (vrshlq): Likewise.
27805 (vrmulhq): Likewise.
27806 (vrhaddq): Likewise.
27807 (vqsubq_n): Likewise.
27808 (vqsubq): Likewise.
27809 (vqshlq): Likewise.
27810 (vqshlq_r): Likewise.
27811 (vqshluq): Likewise.
27812 (vrshrq_n): Likewise.
27813 (vshlq_n): Likewise.
27814 (vqshluq_n): Likewise.
27815 (vqshlq_n): Likewise.
27816 (vqrshlq_n): Likewise.
27817 (vqrshlq): Likewise.
27818 (vqrdmulhq_n): Likewise.
27819 (vqrdmulhq): Likewise.
27820 (vqdmulhq_n): Likewise.
27821 (vqdmulhq): Likewise.
27822 (vqaddq_n): Likewise.
27823 (vqaddq): Likewise.
27824 (vorrq_n): Likewise.
27827 (vmulq_n): Likewise.
27829 (vmulltq_int): Likewise.
27830 (vmullbq_int): Likewise.
27831 (vmulhq): Likewise.
27833 (vminaq): Likewise.
27835 (vmaxaq): Likewise.
27836 (vhsubq_n): Likewise.
27837 (vhsubq): Likewise.
27838 (vhcaddq_rot90): Likewise.
27839 (vhcaddq_rot270): Likewise.
27840 (vhaddq_n): Likewise.
27841 (vhaddq): Likewise.
27843 (vcaddq_rot90): Likewise.
27844 (vcaddq_rot270): Likewise.
27845 (vbrsrq_n): Likewise.
27846 (vbicq_n): Likewise.
27849 (vaddq_n): Likewise.
27852 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
27853 (BINOP_NONE_NONE_NONE): Likewise.
27854 (BINOP_NONE_NONE_UNONE): Likewise.
27855 (BINOP_UNONE_NONE_IMM): Likewise.
27856 (BINOP_UNONE_NONE_NONE): Likewise.
27857 (BINOP_UNONE_UNONE_IMM): Likewise.
27858 (BINOP_UNONE_UNONE_NONE): Likewise.
27859 (BINOP_UNONE_UNONE_UNONE): Likewise.
27860 * config/arm/constraints.md (Ra): Define constraint to check constant is
27861 in the range of 0 to 7.
27862 (Rg): Define constriant to check the constant is one among 1, 2, 4
27864 * config/arm/mve.md (mve_vabdq_<supf>): Define RTL pattern.
27865 (mve_vaddq_n_<supf>): Likewise.
27866 (mve_vaddvaq_<supf>): Likewise.
27867 (mve_vaddvq_p_<supf>): Likewise.
27868 (mve_vandq_<supf>): Likewise.
27869 (mve_vbicq_<supf>): Likewise.
27870 (mve_vbrsrq_n_<supf>): Likewise.
27871 (mve_vcaddq_rot270_<supf>): Likewise.
27872 (mve_vcaddq_rot90_<supf>): Likewise.
27873 (mve_vcmpcsq_n_u): Likewise.
27874 (mve_vcmpcsq_u): Likewise.
27875 (mve_vcmpeqq_n_<supf>): Likewise.
27876 (mve_vcmpeqq_<supf>): Likewise.
27877 (mve_vcmpgeq_n_s): Likewise.
27878 (mve_vcmpgeq_s): Likewise.
27879 (mve_vcmpgtq_n_s): Likewise.
27880 (mve_vcmpgtq_s): Likewise.
27881 (mve_vcmphiq_n_u): Likewise.
27882 (mve_vcmphiq_u): Likewise.
27883 (mve_vcmpleq_n_s): Likewise.
27884 (mve_vcmpleq_s): Likewise.
27885 (mve_vcmpltq_n_s): Likewise.
27886 (mve_vcmpltq_s): Likewise.
27887 (mve_vcmpneq_n_<supf>): Likewise.
27888 (mve_vddupq_n_u): Likewise.
27889 (mve_veorq_<supf>): Likewise.
27890 (mve_vhaddq_n_<supf>): Likewise.
27891 (mve_vhaddq_<supf>): Likewise.
27892 (mve_vhcaddq_rot270_s): Likewise.
27893 (mve_vhcaddq_rot90_s): Likewise.
27894 (mve_vhsubq_n_<supf>): Likewise.
27895 (mve_vhsubq_<supf>): Likewise.
27896 (mve_vidupq_n_u): Likewise.
27897 (mve_vmaxaq_s): Likewise.
27898 (mve_vmaxavq_s): Likewise.
27899 (mve_vmaxq_<supf>): Likewise.
27900 (mve_vmaxvq_<supf>): Likewise.
27901 (mve_vminaq_s): Likewise.
27902 (mve_vminavq_s): Likewise.
27903 (mve_vminq_<supf>): Likewise.
27904 (mve_vminvq_<supf>): Likewise.
27905 (mve_vmladavq_<supf>): Likewise.
27906 (mve_vmladavxq_s): Likewise.
27907 (mve_vmlsdavq_s): Likewise.
27908 (mve_vmlsdavxq_s): Likewise.
27909 (mve_vmulhq_<supf>): Likewise.
27910 (mve_vmullbq_int_<supf>): Likewise.
27911 (mve_vmulltq_int_<supf>): Likewise.
27912 (mve_vmulq_n_<supf>): Likewise.
27913 (mve_vmulq_<supf>): Likewise.
27914 (mve_vornq_<supf>): Likewise.
27915 (mve_vorrq_<supf>): Likewise.
27916 (mve_vqaddq_n_<supf>): Likewise.
27917 (mve_vqaddq_<supf>): Likewise.
27918 (mve_vqdmulhq_n_s): Likewise.
27919 (mve_vqdmulhq_s): Likewise.
27920 (mve_vqrdmulhq_n_s): Likewise.
27921 (mve_vqrdmulhq_s): Likewise.
27922 (mve_vqrshlq_n_<supf>): Likewise.
27923 (mve_vqrshlq_<supf>): Likewise.
27924 (mve_vqshlq_n_<supf>): Likewise.
27925 (mve_vqshlq_r_<supf>): Likewise.
27926 (mve_vqshlq_<supf>): Likewise.
27927 (mve_vqshluq_n_s): Likewise.
27928 (mve_vqsubq_n_<supf>): Likewise.
27929 (mve_vqsubq_<supf>): Likewise.
27930 (mve_vrhaddq_<supf>): Likewise.
27931 (mve_vrmulhq_<supf>): Likewise.
27932 (mve_vrshlq_n_<supf>): Likewise.
27933 (mve_vrshlq_<supf>): Likewise.
27934 (mve_vrshrq_n_<supf>): Likewise.
27935 (mve_vshlq_n_<supf>): Likewise.
27936 (mve_vshlq_r_<supf>): Likewise.
27937 (mve_vsubq_n_<supf>): Likewise.
27938 (mve_vsubq_<supf>): Likewise.
27939 * config/arm/predicates.md (mve_imm_7): Define predicate to check
27940 the matching constraint Ra.
27941 (mve_imm_selective_upto_8): Define predicate to check the matching
27944 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27945 Mihail Ionescu <mihail.ionescu@arm.com>
27946 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27948 * config/arm/arm-builtins.c (BINOP_NONE_NONE_UNONE_QUALIFIERS): Define
27949 qualifier for binary operands.
27950 (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
27951 (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
27952 * config/arm/arm_mve.h (vaddlvq_p_s32): Define macro.
27953 (vaddlvq_p_u32): Likewise.
27954 (vcmpneq_s8): Likewise.
27955 (vcmpneq_s16): Likewise.
27956 (vcmpneq_s32): Likewise.
27957 (vcmpneq_u8): Likewise.
27958 (vcmpneq_u16): Likewise.
27959 (vcmpneq_u32): Likewise.
27960 (vshlq_s8): Likewise.
27961 (vshlq_s16): Likewise.
27962 (vshlq_s32): Likewise.
27963 (vshlq_u8): Likewise.
27964 (vshlq_u16): Likewise.
27965 (vshlq_u32): Likewise.
27966 (__arm_vaddlvq_p_s32): Define intrinsic.
27967 (__arm_vaddlvq_p_u32): Likewise.
27968 (__arm_vcmpneq_s8): Likewise.
27969 (__arm_vcmpneq_s16): Likewise.
27970 (__arm_vcmpneq_s32): Likewise.
27971 (__arm_vcmpneq_u8): Likewise.
27972 (__arm_vcmpneq_u16): Likewise.
27973 (__arm_vcmpneq_u32): Likewise.
27974 (__arm_vshlq_s8): Likewise.
27975 (__arm_vshlq_s16): Likewise.
27976 (__arm_vshlq_s32): Likewise.
27977 (__arm_vshlq_u8): Likewise.
27978 (__arm_vshlq_u16): Likewise.
27979 (__arm_vshlq_u32): Likewise.
27980 (vaddlvq_p): Define polymorphic variant.
27981 (vcmpneq): Likewise.
27983 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_UNONE_QUALIFIERS):
27985 (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
27986 (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
27987 * config/arm/mve.md (mve_vaddlvq_p_<supf>v4si): Define RTL pattern.
27988 (mve_vcmpneq_<supf><mode>): Likewise.
27989 (mve_vshlq_<supf><mode>): Likewise.
27991 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27992 Mihail Ionescu <mihail.ionescu@arm.com>
27993 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27995 * config/arm/arm-builtins.c (BINOP_UNONE_UNONE_IMM_QUALIFIERS): Define
27996 qualifier for binary operands.
27997 (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
27998 (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
27999 * config/arm/arm_mve.h (vcvtq_n_s16_f16): Define macro.
28000 (vcvtq_n_s32_f32): Likewise.
28001 (vcvtq_n_u16_f16): Likewise.
28002 (vcvtq_n_u32_f32): Likewise.
28003 (vcreateq_u8): Likewise.
28004 (vcreateq_u16): Likewise.
28005 (vcreateq_u32): Likewise.
28006 (vcreateq_u64): Likewise.
28007 (vcreateq_s8): Likewise.
28008 (vcreateq_s16): Likewise.
28009 (vcreateq_s32): Likewise.
28010 (vcreateq_s64): Likewise.
28011 (vshrq_n_s8): Likewise.
28012 (vshrq_n_s16): Likewise.
28013 (vshrq_n_s32): Likewise.
28014 (vshrq_n_u8): Likewise.
28015 (vshrq_n_u16): Likewise.
28016 (vshrq_n_u32): Likewise.
28017 (__arm_vcreateq_u8): Define intrinsic.
28018 (__arm_vcreateq_u16): Likewise.
28019 (__arm_vcreateq_u32): Likewise.
28020 (__arm_vcreateq_u64): Likewise.
28021 (__arm_vcreateq_s8): Likewise.
28022 (__arm_vcreateq_s16): Likewise.
28023 (__arm_vcreateq_s32): Likewise.
28024 (__arm_vcreateq_s64): Likewise.
28025 (__arm_vshrq_n_s8): Likewise.
28026 (__arm_vshrq_n_s16): Likewise.
28027 (__arm_vshrq_n_s32): Likewise.
28028 (__arm_vshrq_n_u8): Likewise.
28029 (__arm_vshrq_n_u16): Likewise.
28030 (__arm_vshrq_n_u32): Likewise.
28031 (__arm_vcvtq_n_s16_f16): Likewise.
28032 (__arm_vcvtq_n_s32_f32): Likewise.
28033 (__arm_vcvtq_n_u16_f16): Likewise.
28034 (__arm_vcvtq_n_u32_f32): Likewise.
28035 (vshrq_n): Define polymorphic variant.
28036 * config/arm/arm_mve_builtins.def (BINOP_UNONE_UNONE_IMM_QUALIFIERS):
28038 (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
28039 (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
28040 * config/arm/constraints.md (Rb): Define constraint to check constant is
28041 in the range of 1 to 8.
28042 (Rf): Define constraint to check constant is in the range of 1 to 32.
28043 * config/arm/mve.md (mve_vcreateq_<supf><mode>): Define RTL pattern.
28044 (mve_vshrq_n_<supf><mode>): Likewise.
28045 (mve_vcvtq_n_from_f_<supf><mode>): Likewise.
28046 * config/arm/predicates.md (mve_imm_8): Define predicate to check
28047 the matching constraint Rb.
28048 (mve_imm_32): Define predicate to check the matching constraint Rf.
28050 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
28051 Mihail Ionescu <mihail.ionescu@arm.com>
28052 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28054 * config/arm/arm-builtins.c (BINOP_NONE_NONE_NONE_QUALIFIERS): Define
28055 qualifier for binary operands.
28056 (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
28057 (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
28058 (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
28059 * config/arm/arm_mve.h (vsubq_n_f16): Define macro.
28060 (vsubq_n_f32): Likewise.
28061 (vbrsrq_n_f16): Likewise.
28062 (vbrsrq_n_f32): Likewise.
28063 (vcvtq_n_f16_s16): Likewise.
28064 (vcvtq_n_f32_s32): Likewise.
28065 (vcvtq_n_f16_u16): Likewise.
28066 (vcvtq_n_f32_u32): Likewise.
28067 (vcreateq_f16): Likewise.
28068 (vcreateq_f32): Likewise.
28069 (__arm_vsubq_n_f16): Define intrinsic.
28070 (__arm_vsubq_n_f32): Likewise.
28071 (__arm_vbrsrq_n_f16): Likewise.
28072 (__arm_vbrsrq_n_f32): Likewise.
28073 (__arm_vcvtq_n_f16_s16): Likewise.
28074 (__arm_vcvtq_n_f32_s32): Likewise.
28075 (__arm_vcvtq_n_f16_u16): Likewise.
28076 (__arm_vcvtq_n_f32_u32): Likewise.
28077 (__arm_vcreateq_f16): Likewise.
28078 (__arm_vcreateq_f32): Likewise.
28079 (vsubq): Define polymorphic variant.
28080 (vbrsrq): Likewise.
28081 (vcvtq_n): Likewise.
28082 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE_QUALIFIERS): Use
28084 (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
28085 (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
28086 (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
28087 * config/arm/constraints.md (Rd): Define constraint to check constant is
28088 in the range of 1 to 16.
28089 * config/arm/mve.md (mve_vsubq_n_f<mode>): Define RTL pattern.
28090 mve_vbrsrq_n_f<mode>: Likewise.
28091 mve_vcvtq_n_to_f_<supf><mode>: Likewise.
28092 mve_vcreateq_f<mode>: Likewise.
28093 * config/arm/predicates.md (mve_imm_16): Define predicate to check
28094 the matching constraint Rd.
28096 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
28097 Mihail Ionescu <mihail.ionescu@arm.com>
28098 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28100 * config/arm/arm-builtins.c (hi_UP): Define mode.
28101 * config/arm/arm.h (IS_VPR_REGNUM): Move.
28102 * config/arm/arm.md (VPR_REGNUM): Define before APSRQ_REGNUM.
28103 (APSRQ_REGNUM): Modify.
28104 (APSRGE_REGNUM): Modify.
28105 * config/arm/arm_mve.h (vctp16q): Define macro.
28106 (vctp32q): Likewise.
28107 (vctp64q): Likewise.
28108 (vctp8q): Likewise.
28110 (__arm_vctp16q): Define intrinsic.
28111 (__arm_vctp32q): Likewise.
28112 (__arm_vctp64q): Likewise.
28113 (__arm_vctp8q): Likewise.
28114 (__arm_vpnot): Likewise.
28115 * config/arm/arm_mve_builtins.def (UNOP_UNONE_UNONE): Use builtin
28117 * config/arm/mve.md (mve_vctp<mode1>qhi): Define RTL pattern.
28118 (mve_vpnothi): Likewise.
28120 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
28121 Mihail Ionescu <mihail.ionescu@arm.com>
28122 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28124 * config/arm/arm.h (enum reg_class): Define new class EVEN_REGS.
28125 * config/arm/arm_mve.h (vdupq_n_s8): Define macro.
28126 (vdupq_n_s16): Likewise.
28127 (vdupq_n_s32): Likewise.
28128 (vabsq_s8): Likewise.
28129 (vabsq_s16): Likewise.
28130 (vabsq_s32): Likewise.
28131 (vclsq_s8): Likewise.
28132 (vclsq_s16): Likewise.
28133 (vclsq_s32): Likewise.
28134 (vclzq_s8): Likewise.
28135 (vclzq_s16): Likewise.
28136 (vclzq_s32): Likewise.
28137 (vnegq_s8): Likewise.
28138 (vnegq_s16): Likewise.
28139 (vnegq_s32): Likewise.
28140 (vaddlvq_s32): Likewise.
28141 (vaddvq_s8): Likewise.
28142 (vaddvq_s16): Likewise.
28143 (vaddvq_s32): Likewise.
28144 (vmovlbq_s8): Likewise.
28145 (vmovlbq_s16): Likewise.
28146 (vmovltq_s8): Likewise.
28147 (vmovltq_s16): Likewise.
28148 (vmvnq_s8): Likewise.
28149 (vmvnq_s16): Likewise.
28150 (vmvnq_s32): Likewise.
28151 (vrev16q_s8): Likewise.
28152 (vrev32q_s8): Likewise.
28153 (vrev32q_s16): Likewise.
28154 (vqabsq_s8): Likewise.
28155 (vqabsq_s16): Likewise.
28156 (vqabsq_s32): Likewise.
28157 (vqnegq_s8): Likewise.
28158 (vqnegq_s16): Likewise.
28159 (vqnegq_s32): Likewise.
28160 (vcvtaq_s16_f16): Likewise.
28161 (vcvtaq_s32_f32): Likewise.
28162 (vcvtnq_s16_f16): Likewise.
28163 (vcvtnq_s32_f32): Likewise.
28164 (vcvtpq_s16_f16): Likewise.
28165 (vcvtpq_s32_f32): Likewise.
28166 (vcvtmq_s16_f16): Likewise.
28167 (vcvtmq_s32_f32): Likewise.
28168 (vmvnq_u8): Likewise.
28169 (vmvnq_u16): Likewise.
28170 (vmvnq_u32): Likewise.
28171 (vdupq_n_u8): Likewise.
28172 (vdupq_n_u16): Likewise.
28173 (vdupq_n_u32): Likewise.
28174 (vclzq_u8): Likewise.
28175 (vclzq_u16): Likewise.
28176 (vclzq_u32): Likewise.
28177 (vaddvq_u8): Likewise.
28178 (vaddvq_u16): Likewise.
28179 (vaddvq_u32): Likewise.
28180 (vrev32q_u8): Likewise.
28181 (vrev32q_u16): Likewise.
28182 (vmovltq_u8): Likewise.
28183 (vmovltq_u16): Likewise.
28184 (vmovlbq_u8): Likewise.
28185 (vmovlbq_u16): Likewise.
28186 (vrev16q_u8): Likewise.
28187 (vaddlvq_u32): Likewise.
28188 (vcvtpq_u16_f16): Likewise.
28189 (vcvtpq_u32_f32): Likewise.
28190 (vcvtnq_u16_f16): Likewise.
28191 (vcvtmq_u16_f16): Likewise.
28192 (vcvtmq_u32_f32): Likewise.
28193 (vcvtaq_u16_f16): Likewise.
28194 (vcvtaq_u32_f32): Likewise.
28195 (__arm_vdupq_n_s8): Define intrinsic.
28196 (__arm_vdupq_n_s16): Likewise.
28197 (__arm_vdupq_n_s32): Likewise.
28198 (__arm_vabsq_s8): Likewise.
28199 (__arm_vabsq_s16): Likewise.
28200 (__arm_vabsq_s32): Likewise.
28201 (__arm_vclsq_s8): Likewise.
28202 (__arm_vclsq_s16): Likewise.
28203 (__arm_vclsq_s32): Likewise.
28204 (__arm_vclzq_s8): Likewise.
28205 (__arm_vclzq_s16): Likewise.
28206 (__arm_vclzq_s32): Likewise.
28207 (__arm_vnegq_s8): Likewise.
28208 (__arm_vnegq_s16): Likewise.
28209 (__arm_vnegq_s32): Likewise.
28210 (__arm_vaddlvq_s32): Likewise.
28211 (__arm_vaddvq_s8): Likewise.
28212 (__arm_vaddvq_s16): Likewise.
28213 (__arm_vaddvq_s32): Likewise.
28214 (__arm_vmovlbq_s8): Likewise.
28215 (__arm_vmovlbq_s16): Likewise.
28216 (__arm_vmovltq_s8): Likewise.
28217 (__arm_vmovltq_s16): Likewise.
28218 (__arm_vmvnq_s8): Likewise.
28219 (__arm_vmvnq_s16): Likewise.
28220 (__arm_vmvnq_s32): Likewise.
28221 (__arm_vrev16q_s8): Likewise.
28222 (__arm_vrev32q_s8): Likewise.
28223 (__arm_vrev32q_s16): Likewise.
28224 (__arm_vqabsq_s8): Likewise.
28225 (__arm_vqabsq_s16): Likewise.
28226 (__arm_vqabsq_s32): Likewise.
28227 (__arm_vqnegq_s8): Likewise.
28228 (__arm_vqnegq_s16): Likewise.
28229 (__arm_vqnegq_s32): Likewise.
28230 (__arm_vmvnq_u8): Likewise.
28231 (__arm_vmvnq_u16): Likewise.
28232 (__arm_vmvnq_u32): Likewise.
28233 (__arm_vdupq_n_u8): Likewise.
28234 (__arm_vdupq_n_u16): Likewise.
28235 (__arm_vdupq_n_u32): Likewise.
28236 (__arm_vclzq_u8): Likewise.
28237 (__arm_vclzq_u16): Likewise.
28238 (__arm_vclzq_u32): Likewise.
28239 (__arm_vaddvq_u8): Likewise.
28240 (__arm_vaddvq_u16): Likewise.
28241 (__arm_vaddvq_u32): Likewise.
28242 (__arm_vrev32q_u8): Likewise.
28243 (__arm_vrev32q_u16): Likewise.
28244 (__arm_vmovltq_u8): Likewise.
28245 (__arm_vmovltq_u16): Likewise.
28246 (__arm_vmovlbq_u8): Likewise.
28247 (__arm_vmovlbq_u16): Likewise.
28248 (__arm_vrev16q_u8): Likewise.
28249 (__arm_vaddlvq_u32): Likewise.
28250 (__arm_vcvtpq_u16_f16): Likewise.
28251 (__arm_vcvtpq_u32_f32): Likewise.
28252 (__arm_vcvtnq_u16_f16): Likewise.
28253 (__arm_vcvtmq_u16_f16): Likewise.
28254 (__arm_vcvtmq_u32_f32): Likewise.
28255 (__arm_vcvtaq_u16_f16): Likewise.
28256 (__arm_vcvtaq_u32_f32): Likewise.
28257 (__arm_vcvtaq_s16_f16): Likewise.
28258 (__arm_vcvtaq_s32_f32): Likewise.
28259 (__arm_vcvtnq_s16_f16): Likewise.
28260 (__arm_vcvtnq_s32_f32): Likewise.
28261 (__arm_vcvtpq_s16_f16): Likewise.
28262 (__arm_vcvtpq_s32_f32): Likewise.
28263 (__arm_vcvtmq_s16_f16): Likewise.
28264 (__arm_vcvtmq_s32_f32): Likewise.
28265 (vdupq_n): Define polymorphic variant.
28270 (vaddlvq): Likewise.
28271 (vaddvq): Likewise.
28272 (vmovlbq): Likewise.
28273 (vmovltq): Likewise.
28275 (vrev16q): Likewise.
28276 (vrev32q): Likewise.
28277 (vqabsq): Likewise.
28278 (vqnegq): Likewise.
28279 * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
28280 (UNOP_SNONE_NONE): Likewise.
28281 (UNOP_UNONE_UNONE): Likewise.
28282 (UNOP_UNONE_NONE): Likewise.
28283 * config/arm/constraints.md (e): Define new constriant to allow only
28285 * config/arm/mve.md (mve_vqabsq_s<mode>): Define RTL pattern.
28286 (mve_vnegq_s<mode>): Likewise.
28287 (mve_vmvnq_<supf><mode>): Likewise.
28288 (mve_vdupq_n_<supf><mode>): Likewise.
28289 (mve_vclzq_<supf><mode>): Likewise.
28290 (mve_vclsq_s<mode>): Likewise.
28291 (mve_vaddvq_<supf><mode>): Likewise.
28292 (mve_vabsq_s<mode>): Likewise.
28293 (mve_vrev32q_<supf><mode>): Likewise.
28294 (mve_vmovltq_<supf><mode>): Likewise.
28295 (mve_vmovlbq_<supf><mode>): Likewise.
28296 (mve_vcvtpq_<supf><mode>): Likewise.
28297 (mve_vcvtnq_<supf><mode>): Likewise.
28298 (mve_vcvtmq_<supf><mode>): Likewise.
28299 (mve_vcvtaq_<supf><mode>): Likewise.
28300 (mve_vrev16q_<supf>v16qi): Likewise.
28301 (mve_vaddlvq_<supf>v4si): Likewise.
28303 2020-03-17 Jakub Jelinek <jakub@redhat.com>
28305 * lra-spills.c (remove_pseudos): Fix up duplicated word issue in
28307 * tree-sra.c (create_access_replacement): Fix up duplicated word issue
28309 * read-rtl-function.c (find_param_by_name,
28310 function_reader::parse_enum_value, function_reader::get_insn_by_uid):
28312 * spellcheck.c (get_edit_distance_cutoff): Likewise.
28313 * tree-data-ref.c (create_ifn_alias_checks): Likewise.
28314 * tree.def (SWITCH_EXPR): Likewise.
28315 * selftest.c (assert_str_contains): Likewise.
28316 * ipa-param-manipulation.h (class ipa_param_body_adjustments):
28318 * tree-ssa-math-opts.c (convert_expand_mult_copysign): Likewise.
28319 * tree-ssa-loop-split.c (find_vdef_in_loop): Likewise.
28320 * langhooks.h (struct lang_hooks_for_decls): Likewise.
28321 * ipa-prop.h (struct ipa_param_descriptor): Likewise.
28322 * tree-ssa-strlen.c (handle_builtin_string_cmp, handle_store):
28324 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
28325 * tree-ssa-reassoc.c (reassociate_bb): Likewise.
28326 * tree.c (component_ref_size): Likewise.
28327 * hsa-common.c (hsa_init_compilation_unit_data): Likewise.
28328 * gimple-ssa-sprintf.c (get_string_length, format_string,
28329 format_directive): Likewise.
28330 * omp-grid.c (grid_process_kernel_body_copy): Likewise.
28331 * input.c (string_concat_db::get_string_concatenation,
28332 test_lexer_string_locations_ucn4): Likewise.
28333 * cfgexpand.c (pass_expand::execute): Likewise.
28334 * gimple-ssa-warn-restrict.c (builtin_memref::offset_out_of_bounds,
28335 maybe_diag_overlap): Likewise.
28336 * rtl.c (RTX_CODE_HWINT_P_1): Likewise.
28337 * shrink-wrap.c (spread_components): Likewise.
28338 * tree-ssa-dse.c (initialize_ao_ref_for_dse, valid_ao_ref_for_dse):
28340 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
28342 * dwarf2out.c (dwarf2out_early_finish): Likewise.
28343 * gimple-ssa-store-merging.c: Likewise.
28344 * ira-costs.c (record_operand_costs): Likewise.
28345 * tree-vect-loop.c (vectorizable_reduction): Likewise.
28346 * target.def (dispatch): Likewise.
28347 (validate_dims, gen_ccmp_first): Fix up duplicated word issue
28348 in documentation text.
28349 * doc/tm.texi: Regenerated.
28350 * config/i386/x86-tune.def (X86_TUNE_PARTIAL_FLAG_REG_STALL): Fix up
28351 duplicated word issue in a comment.
28352 * config/i386/i386.c (ix86_test_loading_unspec): Likewise.
28353 * config/i386/i386-features.c (remove_partial_avx_dependency):
28355 * config/msp430/msp430.c (msp430_select_section): Likewise.
28356 * config/gcn/gcn-run.c (load_image): Likewise.
28357 * config/aarch64/aarch64-sve.md (sve_ld1r<mode>): Likewise.
28358 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Likewise.
28359 * config/aarch64/falkor-tag-collision-avoidance.c
28360 (single_dest_per_chain): Likewise.
28361 * config/nvptx/nvptx.c (nvptx_record_fndecl): Likewise.
28362 * config/fr30/fr30.c (fr30_arg_partial_bytes): Likewise.
28363 * config/rs6000/rs6000-string.c (expand_cmp_vec_sequence): Likewise.
28364 * config/rs6000/rs6000-p8swap.c (replace_swapped_load_constant):
28366 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
28367 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
28368 * config/rs6000/rs6000-logue.c
28369 (rs6000_emit_probe_stack_range_stack_clash): Likewise.
28370 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Likewise.
28371 Fix various other issues in the comment.
28373 2020-03-17 Mihail Ionescu <mihail.ionescu@arm.com>
28375 * config/arm/t-rmprofile: create new multilib for
28376 armv8.1-m.main+mve hard float and reuse v8-m.main ones for
28379 2020-03-17 Jakub Jelinek <jakub@redhat.com>
28381 PR tree-optimization/94015
28382 * tree-ssa-strlen.c (count_nonzero_bytes): Split portions of the
28383 function where EXP is address of the bytes being stored rather than
28384 the bytes themselves into count_nonzero_bytes_addr. Punt on zero
28385 sized MEM_REF. Use VAR_P macro and handle CONST_DECL like VAR_DECLs.
28386 Use ctor_for_folding instead of looking at DECL_INITIAL. Punt before
28387 calling native_encode_expr if host or target doesn't have 8-bit
28388 chars. Formatting fixes.
28389 (count_nonzero_bytes_addr): New function.
28391 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
28392 Mihail Ionescu <mihail.ionescu@arm.com>
28393 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28395 * config/arm/arm-builtins.c (UNOP_SNONE_SNONE_QUALIFIERS): Define.
28396 (UNOP_SNONE_NONE_QUALIFIERS): Likewise.
28397 (UNOP_SNONE_IMM_QUALIFIERS): Likewise.
28398 (UNOP_UNONE_NONE_QUALIFIERS): Likewise.
28399 (UNOP_UNONE_UNONE_QUALIFIERS): Likewise.
28400 (UNOP_UNONE_IMM_QUALIFIERS): Likewise.
28401 * config/arm/arm_mve.h (vmvnq_n_s16): Define macro.
28402 (vmvnq_n_s32): Likewise.
28403 (vrev64q_s8): Likewise.
28404 (vrev64q_s16): Likewise.
28405 (vrev64q_s32): Likewise.
28406 (vcvtq_s16_f16): Likewise.
28407 (vcvtq_s32_f32): Likewise.
28408 (vrev64q_u8): Likewise.
28409 (vrev64q_u16): Likewise.
28410 (vrev64q_u32): Likewise.
28411 (vmvnq_n_u16): Likewise.
28412 (vmvnq_n_u32): Likewise.
28413 (vcvtq_u16_f16): Likewise.
28414 (vcvtq_u32_f32): Likewise.
28415 (__arm_vmvnq_n_s16): Define intrinsic.
28416 (__arm_vmvnq_n_s32): Likewise.
28417 (__arm_vrev64q_s8): Likewise.
28418 (__arm_vrev64q_s16): Likewise.
28419 (__arm_vrev64q_s32): Likewise.
28420 (__arm_vrev64q_u8): Likewise.
28421 (__arm_vrev64q_u16): Likewise.
28422 (__arm_vrev64q_u32): Likewise.
28423 (__arm_vmvnq_n_u16): Likewise.
28424 (__arm_vmvnq_n_u32): Likewise.
28425 (__arm_vcvtq_s16_f16): Likewise.
28426 (__arm_vcvtq_s32_f32): Likewise.
28427 (__arm_vcvtq_u16_f16): Likewise.
28428 (__arm_vcvtq_u32_f32): Likewise.
28429 (vrev64q): Define polymorphic variant.
28430 * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
28431 (UNOP_SNONE_NONE): Likewise.
28432 (UNOP_SNONE_IMM): Likewise.
28433 (UNOP_UNONE_UNONE): Likewise.
28434 (UNOP_UNONE_NONE): Likewise.
28435 (UNOP_UNONE_IMM): Likewise.
28436 * config/arm/mve.md (mve_vrev64q_<supf><mode>): Define RTL pattern.
28437 (mve_vcvtq_from_f_<supf><mode>): Likewise.
28438 (mve_vmvnq_n_<supf><mode>): Likewise.
28440 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
28441 Mihail Ionescu <mihail.ionescu@arm.com>
28442 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28444 * config/arm/arm-builtins.c (UNOP_NONE_NONE_QUALIFIERS): Define macro.
28445 (UNOP_NONE_SNONE_QUALIFIERS): Likewise.
28446 (UNOP_NONE_UNONE_QUALIFIERS): Likewise.
28447 * config/arm/arm_mve.h (vrndxq_f16): Define macro.
28448 (vrndxq_f32): Likewise.
28449 (vrndq_f16) Likewise.
28450 (vrndq_f32): Likewise.
28451 (vrndpq_f16): Likewise.
28452 (vrndpq_f32): Likewise.
28453 (vrndnq_f16): Likewise.
28454 (vrndnq_f32): Likewise.
28455 (vrndmq_f16): Likewise.
28456 (vrndmq_f32): Likewise.
28457 (vrndaq_f16): Likewise.
28458 (vrndaq_f32): Likewise.
28459 (vrev64q_f16): Likewise.
28460 (vrev64q_f32): Likewise.
28461 (vnegq_f16): Likewise.
28462 (vnegq_f32): Likewise.
28463 (vdupq_n_f16): Likewise.
28464 (vdupq_n_f32): Likewise.
28465 (vabsq_f16): Likewise.
28466 (vabsq_f32): Likewise.
28467 (vrev32q_f16): Likewise.
28468 (vcvttq_f32_f16): Likewise.
28469 (vcvtbq_f32_f16): Likewise.
28470 (vcvtq_f16_s16): Likewise.
28471 (vcvtq_f32_s32): Likewise.
28472 (vcvtq_f16_u16): Likewise.
28473 (vcvtq_f32_u32): Likewise.
28474 (__arm_vrndxq_f16): Define intrinsic.
28475 (__arm_vrndxq_f32): Likewise.
28476 (__arm_vrndq_f16): Likewise.
28477 (__arm_vrndq_f32): Likewise.
28478 (__arm_vrndpq_f16): Likewise.
28479 (__arm_vrndpq_f32): Likewise.
28480 (__arm_vrndnq_f16): Likewise.
28481 (__arm_vrndnq_f32): Likewise.
28482 (__arm_vrndmq_f16): Likewise.
28483 (__arm_vrndmq_f32): Likewise.
28484 (__arm_vrndaq_f16): Likewise.
28485 (__arm_vrndaq_f32): Likewise.
28486 (__arm_vrev64q_f16): Likewise.
28487 (__arm_vrev64q_f32): Likewise.
28488 (__arm_vnegq_f16): Likewise.
28489 (__arm_vnegq_f32): Likewise.
28490 (__arm_vdupq_n_f16): Likewise.
28491 (__arm_vdupq_n_f32): Likewise.
28492 (__arm_vabsq_f16): Likewise.
28493 (__arm_vabsq_f32): Likewise.
28494 (__arm_vrev32q_f16): Likewise.
28495 (__arm_vcvttq_f32_f16): Likewise.
28496 (__arm_vcvtbq_f32_f16): Likewise.
28497 (__arm_vcvtq_f16_s16): Likewise.
28498 (__arm_vcvtq_f32_s32): Likewise.
28499 (__arm_vcvtq_f16_u16): Likewise.
28500 (__arm_vcvtq_f32_u32): Likewise.
28501 (vrndxq): Define polymorphic variants.
28503 (vrndpq): Likewise.
28504 (vrndnq): Likewise.
28505 (vrndmq): Likewise.
28506 (vrndaq): Likewise.
28507 (vrev64q): Likewise.
28510 (vrev32q): Likewise.
28511 (vcvtbq_f32): Likewise.
28512 (vcvttq_f32): Likewise.
28514 * config/arm/arm_mve_builtins.def (VAR2): Define.
28516 * config/arm/mve.md (mve_vrndxq_f<mode>): Add RTL pattern.
28517 (mve_vrndq_f<mode>): Likewise.
28518 (mve_vrndpq_f<mode>): Likewise.
28519 (mve_vrndnq_f<mode>): Likewise.
28520 (mve_vrndmq_f<mode>): Likewise.
28521 (mve_vrndaq_f<mode>): Likewise.
28522 (mve_vrev64q_f<mode>): Likewise.
28523 (mve_vnegq_f<mode>): Likewise.
28524 (mve_vdupq_n_f<mode>): Likewise.
28525 (mve_vabsq_f<mode>): Likewise.
28526 (mve_vrev32q_fv8hf): Likewise.
28527 (mve_vcvttq_f32_f16v4sf): Likewise.
28528 (mve_vcvtbq_f32_f16v4sf): Likewise.
28529 (mve_vcvtq_to_f_<supf><mode>): Likewise.
28531 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
28532 Mihail Ionescu <mihail.ionescu@arm.com>
28533 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28535 * config/arm/arm-builtins.c (CF): Define mve_builtin_data.
28537 (ARM_BUILTIN_MVE_PATTERN_START): Define.
28538 (arm_init_mve_builtins): Define function.
28539 (arm_init_builtins): Add TARGET_HAVE_MVE check.
28540 (arm_expand_builtin_1): Check the range of fcode.
28541 (arm_expand_mve_builtin): Define function to expand MVE builtins.
28542 (arm_expand_builtin): Check the range of fcode.
28543 * config/arm/arm_mve.h (__ARM_FEATURE_MVE): Define MVE floating point
28545 (__ARM_MVE_PRESERVE_USER_NAMESPACE): Define to protect user namespace.
28546 (vst4q_s8): Define macro.
28547 (vst4q_s16): Likewise.
28548 (vst4q_s32): Likewise.
28549 (vst4q_u8): Likewise.
28550 (vst4q_u16): Likewise.
28551 (vst4q_u32): Likewise.
28552 (vst4q_f16): Likewise.
28553 (vst4q_f32): Likewise.
28554 (__arm_vst4q_s8): Define inline builtin.
28555 (__arm_vst4q_s16): Likewise.
28556 (__arm_vst4q_s32): Likewise.
28557 (__arm_vst4q_u8): Likewise.
28558 (__arm_vst4q_u16): Likewise.
28559 (__arm_vst4q_u32): Likewise.
28560 (__arm_vst4q_f16): Likewise.
28561 (__arm_vst4q_f32): Likewise.
28562 (__ARM_mve_typeid): Define macro with MVE types.
28563 (__ARM_mve_coerce): Define macro with _Generic feature.
28564 (vst4q): Define polymorphic variant for different vst4q builtins.
28565 * config/arm/arm_mve_builtins.def: New file.
28566 * config/arm/iterators.md (VSTRUCT): Modify to allow XI and OI
28568 * config/arm/mve.md (MVE_VLD_ST): Define iterator.
28569 (unspec): Define unspec.
28570 (mve_vst4q<mode>): Define RTL pattern.
28571 * config/arm/neon.md (mov<mode>): Modify expand to allow XI and OI
28573 (neon_mov<mode>): Modify RTL define_insn to allow XI and OI modes
28575 (define_split): Allow OI mode split for MVE after reload.
28576 (define_split): Allow XI mode split for MVE after reload.
28577 * config/arm/t-arm (arm.o): Add entry for arm_mve_builtins.def.
28578 (arm-builtins.o): Likewise.
28580 2020-03-17 Christophe Lyon <christophe.lyon@linaro.org>
28582 * c-typeck.c (process_init_element): Handle constructor_type with
28583 type size represented by POLY_INT_CST.
28585 2020-03-17 Jakub Jelinek <jakub@redhat.com>
28587 PR tree-optimization/94187
28588 * tree-ssa-strlen.c (count_nonzero_bytes): Punt if
28589 nchars - offset < nbytes.
28591 PR middle-end/94189
28592 * builtins.c (expand_builtin_strnlen): Do return NULL_RTX if we would
28593 emit a warning if it was enabled and don't depend on TREE_NO_WARNING
28594 for code-generation.
28596 2020-03-16 Vladimir Makarov <vmakarov@redhat.com>
28599 * lra-spills.c (remove_pseudos): Do not reuse insn alternative
28600 after changing memory subreg.
28602 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
28603 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28605 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Modify function to add
28606 emulator calls for dobule precision arithmetic operations for MVE.
28608 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
28609 Mihail Ionescu <mihail.ionescu@arm.com>
28610 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28612 * common/config/arm/arm-common.c (arm_asm_auto_mfpu): When vfp_base
28613 feature bit is on and -mfpu=auto is passed as compiler option, do not
28614 generate error on not finding any matching fpu. Because in this case
28615 fpu is not required.
28616 * config/arm/arm-cpus.in (vfp_base): Define feature bit, this bit is
28617 enabled for MVE and also for all VFP extensions.
28618 (VFPv2): Modify fgroup to enable vfp_base feature bit when ever VFPv2
28620 (MVE): Define fgroup to enable feature bits mve, vfp_base and armv7em.
28621 (MVE_FP): Define fgroup to enable feature bits is fgroup MVE and FPv5
28622 along with feature bits mve_float.
28623 (mve): Modify add options in armv8.1-m.main arch for MVE.
28624 (mve.fp): Modify add options in armv8.1-m.main arch for MVE with
28626 * config/arm/arm.c (use_return_insn): Replace the
28627 check with TARGET_VFP_BASE.
28628 (thumb2_legitimate_index_p): Replace TARGET_HARD_FLOAT with
28630 (arm_rtx_costs_internal): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
28631 with TARGET_VFP_BASE, to allow cost calculations for copies in MVE as
28633 (arm_get_vfp_saved_size): Replace TARGET_HARD_FLOAT with
28634 TARGET_VFP_BASE, to allow space calculation for VFP registers in MVE
28636 (arm_compute_frame_layout): Likewise.
28637 (arm_save_coproc_regs): Likewise.
28638 (arm_fixed_condition_code_regs): Modify to enable using VFPCC_REGNUM
28640 (arm_hard_regno_mode_ok): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
28641 with equivalent macro TARGET_VFP_BASE.
28642 (arm_expand_epilogue_apcs_frame): Likewise.
28643 (arm_expand_epilogue): Likewise.
28644 (arm_conditional_register_usage): Likewise.
28645 (arm_declare_function_name): Add check to skip printing .fpu directive
28646 in assembly file when TARGET_VFP_BASE is enabled and fpu_to_print is
28648 * config/arm/arm.h (TARGET_VFP_BASE): Define.
28649 * config/arm/arm.md (arch): Add "mve" to arch.
28650 (eq_attr "arch" "mve"): Enable on TARGET_HAVE_MVE is true.
28651 (vfp_pop_multiple_with_writeback): Replace "TARGET_HARD_FLOAT
28652 || TARGET_HAVE_MVE" with equivalent macro TARGET_VFP_BASE.
28653 * config/arm/constraints.md (Uf): Define to allow modification to FPCCR
28655 * config/arm/thumb2.md (thumb2_movsfcc_soft_insn): Modify target guard
28656 to not allow for MVE.
28657 * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Move to volatile unspecs
28659 (VUNSPEC_GET_FPSCR): Define.
28660 * config/arm/vfp.md (thumb2_movhi_vfp): Add support for VMSR and VMRS
28661 instructions which move to general-purpose Register from Floating-point
28662 Special register and vice-versa.
28663 (thumb2_movhi_fp16): Likewise.
28664 (thumb2_movsi_vfp): Add support for VMSR and VMRS instructions along
28665 with MCR and MRC instructions which set and get Floating-point Status
28666 and Control Register (FPSCR).
28667 (movdi_vfp): Modify pattern to enable Single-precision scalar float move
28669 (thumb2_movdf_vfp): Modify pattern to enable Double-precision scalar
28670 float move patterns in MVE.
28671 (thumb2_movsfcc_vfp): Modify pattern to enable single float conditional
28672 code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
28673 (thumb2_movdfcc_vfp): Modify pattern to enable double float conditional
28674 code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
28675 (push_multi_vfp): Add support to use VFP VPUSH pattern for MVE by adding
28676 TARGET_VFP_BASE check.
28677 (set_fpscr): Add support to set FPSCR register for MVE. Modify pattern
28678 using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
28680 (get_fpscr): Add support to get FPSCR register for MVE. Modify pattern
28681 using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
28685 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
28686 Mihail Ionescu <mihail.ionescu@arm.com>
28687 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28689 * config.gcc (arm_mve.h): Include mve intrinsics header file.
28690 * config/arm/aout.h (p0): Add new register name for MVE predicated
28692 * config/arm-builtins.c (ARM_BUILTIN_SIMD_LANE_CHECK): Define macro
28693 common to Neon and MVE.
28694 (ARM_BUILTIN_NEON_LANE_CHECK): Renamed to ARM_BUILTIN_SIMD_LANE_CHECK.
28695 (arm_init_simd_builtin_types): Disable poly types for MVE.
28696 (arm_init_neon_builtins): Move a check to arm_init_builtins function.
28697 (arm_init_builtins): Use ARM_BUILTIN_SIMD_LANE_CHECK instead of
28698 ARM_BUILTIN_NEON_LANE_CHECK.
28699 (mve_dereference_pointer): Add function.
28700 (arm_expand_builtin_args): Call to mve_dereference_pointer when MVE is
28702 (arm_expand_neon_builtin): Moved to arm_expand_builtin function.
28703 (arm_expand_builtin): Moved from arm_expand_neon_builtin function.
28704 * config/arm/arm-c.c (__ARM_FEATURE_MVE): Define macro for MVE and MVE
28705 with floating point enabled.
28706 * config/arm/arm-protos.h (neon_immediate_valid_for_move): Renamed to
28707 simd_immediate_valid_for_move.
28708 (simd_immediate_valid_for_move): Renamed from
28709 neon_immediate_valid_for_move function.
28710 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Generate
28711 error if vfpv2 feature bit is disabled and mve feature bit is also
28712 disabled for HARD_FLOAT_ABI.
28713 (use_return_insn): Check to not push VFP regs for MVE.
28714 (aapcs_vfp_allocate): Add MVE check to have same Procedure Call Standard
28716 (aapcs_vfp_allocate_return_reg): Likewise.
28717 (thumb2_legitimate_address_p): Check to return 0 on valid Thumb-2
28718 address operand for MVE.
28719 (arm_rtx_costs_internal): MVE check to determine cost of rtx.
28720 (neon_valid_immediate): Rename to simd_valid_immediate.
28721 (simd_valid_immediate): Rename from neon_valid_immediate.
28722 (simd_valid_immediate): MVE check on size of vector is 128 bits.
28723 (neon_immediate_valid_for_move): Rename to
28724 simd_immediate_valid_for_move.
28725 (simd_immediate_valid_for_move): Rename from
28726 neon_immediate_valid_for_move.
28727 (neon_immediate_valid_for_logic): Modify call to neon_valid_immediate
28729 (neon_make_constant): Modify call to neon_valid_immediate function.
28730 (neon_vector_mem_operand): Return VFP register for POST_INC or PRE_DEC
28732 (output_move_neon): Add MVE check to generate vldm/vstm instrcutions.
28733 (arm_compute_frame_layout): Calculate space for saved VFP registers for
28735 (arm_save_coproc_regs): Save coproc registers for MVE.
28736 (arm_print_operand): Add case 'E' to print memory operands for MVE.
28737 (arm_print_operand_address): Check to print register number for MVE.
28738 (arm_hard_regno_mode_ok): Check for arm hard regno mode ok for MVE.
28739 (arm_modes_tieable_p): Check to allow structure mode for MVE.
28740 (arm_regno_class): Add VPR_REGNUM check.
28741 (arm_expand_epilogue_apcs_frame): MVE check to calculate epilogue code
28743 (arm_expand_epilogue): MVE check for enabling pop instructions in
28745 (arm_print_asm_arch_directives): Modify function to disable print of
28746 .arch_extension "mve" and "fp" for cases where MVE is enabled with
28748 (arm_vector_mode_supported_p): Check for modes available in MVE interger
28749 and MVE floating point.
28750 (arm_array_mode_supported_p): Add TARGET_HAVE_MVE check for array mode
28752 (arm_conditional_register_usage): Enable usage of conditional regsiter
28754 (fixed_regs[VPR_REGNUM]): Enable VPR_REG for MVE.
28755 (arm_declare_function_name): Modify function to disable print of
28756 .arch_extension "mve" and "fp" for cases where MVE is enabled with
28758 * config/arm/arm.h (TARGET_HAVE_MVE): Disable for soft float abi and
28759 when target general registers are required.
28760 (TARGET_HAVE_MVE_FLOAT): Likewise.
28761 (FIXED_REGISTERS): Add bit for VFP_REG class which is enabled in arm.c
28763 (CALL_USED_REGISTERS): Set bit for VFP_REG class in CALL_USED_REGISTERS
28764 which indicate this is not available for across function calls.
28765 (FIRST_PSEUDO_REGISTER): Modify.
28766 (VALID_MVE_MODE): Define valid MVE mode.
28767 (VALID_MVE_SI_MODE): Define valid MVE SI mode.
28768 (VALID_MVE_SF_MODE): Define valid MVE SF mode.
28769 (VALID_MVE_STRUCT_MODE): Define valid MVE struct mode.
28770 (VPR_REGNUM): Add Vector Predication Register in arm_regs_in_sequence
28772 (IS_VPR_REGNUM): Macro to check for VPR_REG register.
28773 (REG_ALLOC_ORDER): Add VPR_REGNUM entry.
28774 (enum reg_class): Add VPR_REG entry.
28775 (REG_CLASS_NAMES): Add VPR_REG entry.
28776 * config/arm/arm.md (VPR_REGNUM): Define.
28777 (conds): Check is_mve_type attrbiute to differentiate "conditional" and
28778 "unconditional" instructions.
28779 (arm_movsf_soft_insn): Modify RTL to not allow for MVE.
28780 (movdf_soft_insn): Modify RTL to not allow for MVE.
28781 (vfp_pop_multiple_with_writeback): Enable for MVE.
28782 (include "mve.md"): Include mve.md file.
28783 * config/arm/arm_mve.h: Add MVE intrinsics head file.
28784 * config/arm/constraints.md (Up): Constraint to enable "p0" register in MVE
28785 for vector predicated operands.
28786 * config/arm/iterators.md (VNIM1): Define.
28787 (VNINOTM1): Define.
28788 (VHFBF_split): Define
28789 * config/arm/mve.md: New file.
28790 (mve_mov<mode>): Define RTL for move, store and load in MVE.
28791 (mve_mov<mode>): Define move RTL pattern with vec_duplicate operator for
28793 * config/arm/neon.md (neon_immediate_valid_for_move): Rename with
28794 simd_immediate_valid_for_move.
28795 (neon_mov<mode>): Split pattern and move expand pattern "movv8hf" which
28796 is common to MVE and NEON to vec-common.md file.
28797 (vec_init<mode><V_elem_l>): Add TARGET_HAVE_MVE check.
28798 * config/arm/predicates.md (vpr_register_operand): Define.
28799 * config/arm/t-arm: Add mve.md file.
28800 * config/arm/types.md (mve_move): Add MVE instructions mve_move to
28802 (mve_store): Add MVE instructions mve_store to attribute "type".
28803 (mve_load): Add MVE instructions mve_load to attribute "type".
28804 (is_mve_type): Define attribute.
28805 * config/arm/vec-common.md (mov<mode>): Modify RTL expand to support
28806 standard move patterns in MVE along with NEON and IWMMXT with mode
28808 (mov<mode>): Modify RTL expand to support standard move patterns in NEON
28809 and IWMMXT with mode iterator V8HF.
28810 (movv8hf): Define RTL expand to support standard "movv8hf" pattern in
28812 * config/arm/vfp.md (neon_immediate_valid_for_move): Rename to
28813 simd_immediate_valid_for_move.
28816 2020-03-16 H.J. Lu <hongjiu.lu@intel.com>
28819 * config/i386/i386.md (*movsi_internal): Call ix86_output_ssemov
28820 for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL
28822 * config/i386/predicates.md (ext_sse_reg_operand): Removed.
28824 2020-03-16 Jakub Jelinek <jakub@redhat.com>
28827 * tree-inline.c (insert_init_stmt): Don't gimple_regimplify_operands
28830 PR tree-optimization/94166
28831 * tree-ssa-reassoc.c (sort_by_mach_mode): Use SSA_NAME_VERSION
28832 as secondary comparison key.
28834 2020-03-16 Bin Cheng <bin.cheng@linux.alibaba.com>
28836 PR tree-optimization/94125
28837 * tree-loop-distribution.c
28838 (loop_distribution::break_alias_scc_partitions): Update post order
28839 number for merged scc.
28841 2020-03-15 H.J. Lu <hongjiu.lu@intel.com>
28844 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_SI and
28846 * config/i386/i386.md (*movsf_internal): Call ix86_output_ssemov
28847 for TYPE_SSEMOV. Remove TARGET_PREFER_AVX256, TARGET_AVX512VL
28848 and ext_sse_reg_operand check.
28850 2020-03-15 Lewis Hyatt <lhyatt@gmail.com>
28852 * common.opt: Avoid redundancy in the help text.
28853 * config/arc/arc.opt: Likewise.
28854 * config/cr16/cr16.opt: Likewise.
28856 2020-03-14 Jakub Jelinek <jakub@redhat.com>
28858 PR middle-end/93566
28859 * tree-nested.c (convert_nonlocal_omp_clauses,
28860 convert_local_omp_clauses): Handle {,in_,task_}reduction clauses
28861 with C/C++ array sections.
28863 2020-03-14 H.J. Lu <hongjiu.lu@intel.com>
28866 * config/i386/i386.md (*movdi_internal): Call ix86_output_ssemov
28867 for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL
28870 2020-03-14 Jakub Jelinek <jakub@redhat.com>
28872 * gimple-fold.c (gimple_fold_builtin_strncpy): Change
28873 "a an" to "an" in a comment.
28874 * hsa-common.h (is_a_helper): Likewise.
28875 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.
28876 * config/arc/arc.c (arc600_corereg_hazard): Likewise.
28877 * config/s390/s390.c (s390_indirect_branch_via_thunk): Likewise.
28879 2020-03-13 Aaron Sawdey <acsawdey@linux.ibm.com>
28882 * config/rs6000/rs6000.c (num_insns_constant_multi): Don't shift a
28883 64-bit value by 64 bits (UB).
28885 2020-03-13 Vladimir Makarov <vmakarov@redhat.com>
28887 PR rtl-optimization/92303
28888 * lra-spills.c (remove_pseudos): Try to simplify memory subreg.
28890 2020-03-13 Segher Boessenkool <segher@kernel.crashing.org>
28892 PR rtl-optimization/94148
28893 PR rtl-optimization/94042
28894 * df-core.c (BB_LAST_CHANGE_AGE): Delete.
28895 (df_worklist_propagate_forward): New parameter last_change_age, use
28896 that instead of bb->aux.
28897 (df_worklist_propagate_backward): Ditto.
28898 (df_worklist_dataflow_doublequeue): Use a local array last_change_age.
28900 2020-03-13 Richard Biener <rguenther@suse.de>
28902 PR tree-optimization/94163
28903 * tree-ssa-pre.c (create_expression_by_pieces): Check
28904 whether alignment would be zero.
28906 2020-03-13 Martin Liska <mliska@suse.cz>
28909 * lto-wrapper.c (run_gcc): Use concat for appending
28910 to collect_gcc_options.
28912 2020-03-13 Jakub Jelinek <jakub@redhat.com>
28915 * config/aarch64/aarch64.c (aarch64_add_offset_1): Use gen_int_mode
28916 instead of GEN_INT.
28918 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
28921 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DF.
28922 * config/i386/i386.md (*movdf_internal): Call ix86_output_ssemov
28923 for TYPE_SSEMOV. Remove TARGET_AVX512F, TARGET_PREFER_AVX256,
28924 TARGET_AVX512VL and ext_sse_reg_operand check.
28926 2020-03-13 Bu Le <bule1@huawei.com>
28929 * config/aarch64/aarch64.opt (-param=aarch64-float-recp-precision=)
28930 (-param=aarch64-double-recp-precision=): New options.
28931 * doc/invoke.texi: Document them.
28932 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Use them
28933 instead of hard-coding the choice of 1 for float and 2 for double.
28935 2020-03-13 Eric Botcazou <ebotcazou@adacore.com>
28937 PR rtl-optimization/94119
28938 * resource.h (clear_hashed_info_until_next_barrier): Declare.
28939 * resource.c (clear_hashed_info_until_next_barrier): New function.
28940 * reorg.c (add_to_delay_list): Fix formatting.
28941 (relax_delay_slots): Call clear_hashed_info_until_next_barrier on
28942 the next instruction after removing a BARRIER.
28944 2020-03-13 Eric Botcazou <ebotcazou@adacore.com>
28946 PR middle-end/92071
28947 * expmed.c (store_integral_bit_field): For fields larger than a word,
28948 call extract_bit_field on the value if the mode is BLKmode. Remove
28949 specific path for big-endian targets and tidy things up a little bit.
28951 2020-03-12 Richard Sandiford <richard.sandiford@arm.com>
28953 PR rtl-optimization/90275
28954 * cse.c (cse_insn): Delete no-op register moves too.
28956 2020-03-12 Darius Galis <darius.galis@cyberthorstudios.com>
28958 * config/rx/rx.md (CTRLREG_CPEN): Remove.
28959 * config/rx/rx.c (rx_print_operand): Remove CTRLREG_CPEN support.
28961 2020-03-12 Richard Biener <rguenther@suse.de>
28963 PR tree-optimization/94103
28964 * tree-ssa-sccvn.c (visit_reference_op_load): Avoid type
28965 punning when the mode precision is not sufficient.
28967 2020-03-12 H.J. Lu <hongjiu.lu@intel.com>
28970 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DI,
28971 MODE_V1DF and MODE_V2SF.
28972 * config/i386/mmx.md (MMXMODE:*mov<mode>_internal): Call
28973 ix86_output_ssemov for TYPE_SSEMOV. Remove ext_sse_reg_operand
28976 2020-03-12 Jakub Jelinek <jakub@redhat.com>
28978 * doc/tm.texi.in (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change
28979 ASM_OUTPUT_ALIGNED_DECL in description to ASM_OUTPUT_ALIGNED_LOCAL
28980 and ASM_OUTPUT_DECL to ASM_OUTPUT_LOCAL.
28981 * doc/tm.texi: Regenerated.
28983 PR tree-optimization/94130
28984 * tree-ssa-dse.c: Include gimplify.h.
28985 (increment_start_addr): If stmt has lhs, drop the lhs from call and
28986 set it after the call to the original value of the first argument.
28988 (decrement_count): Formatting fix.
28990 2020-03-11 Delia Burduv <delia.burduv@arm.com>
28992 * config/arm/arm-builtins.c
28993 (arm_init_simd_builtin_scalar_types): New.
28994 * config/arm/arm_neon.h (vld2_bf16): Used new builtin type.
28995 (vld2q_bf16): Used new builtin type.
28996 (vld3_bf16): Used new builtin type.
28997 (vld3q_bf16): Used new builtin type.
28998 (vld4_bf16): Used new builtin type.
28999 (vld4q_bf16): Used new builtin type.
29000 (vld2_dup_bf16): Used new builtin type.
29001 (vld2q_dup_bf16): Used new builtin type.
29002 (vld3_dup_bf16): Used new builtin type.
29003 (vld3q_dup_bf16): Used new builtin type.
29004 (vld4_dup_bf16): Used new builtin type.
29005 (vld4q_dup_bf16): Used new builtin type.
29007 2020-03-11 Jakub Jelinek <jakub@redhat.com>
29010 * config/pdp11/pdp11.c (pdp11_asm_output_var): Call switch_to_section
29011 at the start to switch to data section. Don't print extra newline if
29012 .globl directive has not been emitted.
29014 2020-03-11 Richard Biener <rguenther@suse.de>
29016 * match.pd ((T *)(ptr - ptr-cst) -> &MEM[ptr + -ptr-cst]):
29019 2020-03-11 Eric Botcazou <ebotcazou@adacore.com>
29021 PR middle-end/93961
29022 * tree.c (variably_modified_type_p) <RECORD_TYPE>: Recurse into fields
29023 whose type is a qualified union.
29025 2020-03-11 Jakub Jelinek <jakub@redhat.com>
29028 * config/aarch64/aarch64.c (aarch64_add_offset_1): Use absu_hwi
29029 instead of abs_hwi, change moffset type to unsigned HOST_WIDE_INT.
29032 * value-prof.c (dump_histogram_value): Use abs_hwi instead of
29034 (get_nth_most_common_value): Use abs_hwi instead of abs.
29036 PR middle-end/94111
29037 * dfp.c (decimal_to_binary): Only use decimal128ToString if from->cl
29038 is rvc_normal, otherwise use real_to_decimal to print the number to
29041 PR tree-optimization/94114
29042 * tree-loop-distribution.c (generate_memset_builtin): Call
29043 rewrite_to_non_trapping_overflow even on mem.
29044 (generate_memcpy_builtin): Call rewrite_to_non_trapping_overflow even
29047 2020-03-10 Jeff Law <law@redhat.com>
29049 * config/bfin/bfin.md (movsi_insv): Add length attribute.
29051 2020-03-10 Jiufu Guo <guojiufu@linux.ibm.com>
29054 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): Check
29055 NAN and SIGNED_ZEROR for smax/smin.
29057 2020-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
29060 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
29061 clause to handle P9V_BUILTIN_VEC_LXVL with const arguments.
29063 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
29065 * loop-iv.c (find_simple_exit): Make it static.
29066 * cfgloop.h: Remove the corresponding prototype.
29068 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
29070 * ddg.c (create_ddg): Fix intendation.
29071 (set_recurrence_length): Likewise.
29072 (create_ddg_all_sccs): Likewise.
29074 2020-03-10 Jakub Jelinek <jakub@redhat.com>
29077 * config/i386/i386.md (*testqi_ext_3): Call ix86_match_ccmode with
29078 CCZmode instead of CCNOmode if operands[2] has DImode and pos + len
29081 2020-03-09 Jason Merrill <jason@redhat.com>
29083 * gdbinit.in (pgs): Fix typo in documentation.
29085 2020-03-09 Vladimir Makarov <vmakarov@redhat.com>
29089 2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
29091 PR rtl-optimization/93564
29092 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
29093 do not honor reg alloc order.
29095 2020-03-09 Andrew Pinski <apinski@marvell.com>
29097 PR inline-asm/94095
29098 * doc/extend.texi (x86 Operand Modifiers): Fix column
29101 2020-03-09 Martin Liska <mliska@suse.cz>
29104 * config/rs6000/rs6000.c (rs6000_option_override_internal):
29105 Remove set of str_align_loops and str_align_jumps as these
29106 should be set in previous 2 conditions in the function.
29108 2020-03-09 Jakub Jelinek <jakub@redhat.com>
29110 PR rtl-optimization/94045
29111 * params.opt (-param=max-find-base-term-values=): New option.
29112 * alias.c (find_base_term): Add cut-off for number of visited VALUEs
29113 in a single toplevel find_base_term call.
29115 2020-03-06 Wilco Dijkstra <wdijkstr@arm.com>
29118 * config/aarch64/aarch64-builtins.c (TYPES_TERNOPU_LANE): Add define.
29119 * config/aarch64/aarch64-simd.md
29120 (aarch64_vec_<su>mult_lane<Qlane>): Add new insn for widening lane mul.
29121 (aarch64_vec_<su>mlal_lane<Qlane>): Likewise.
29122 * config/aarch64/aarch64-simd-builtins.def: Add intrinsics.
29123 * config/aarch64/arm_neon.h:
29124 (vmlal_lane_s16): Expand using intrinsics rather than inline asm.
29125 (vmlal_lane_u16): Likewise.
29126 (vmlal_lane_s32): Likewise.
29127 (vmlal_lane_u32): Likewise.
29128 (vmlal_laneq_s16): Likewise.
29129 (vmlal_laneq_u16): Likewise.
29130 (vmlal_laneq_s32): Likewise.
29131 (vmlal_laneq_u32): Likewise.
29132 (vmull_lane_s16): Likewise.
29133 (vmull_lane_u16): Likewise.
29134 (vmull_lane_s32): Likewise.
29135 (vmull_lane_u32): Likewise.
29136 (vmull_laneq_s16): Likewise.
29137 (vmull_laneq_u16): Likewise.
29138 (vmull_laneq_s32): Likewise.
29139 (vmull_laneq_u32): Likewise.
29140 * config/aarch64/iterators.md (Vcondtype): New iterator for lane mul.
29143 2020-03-06 Wilco Dijkstra <wdijkstr@arm.com>
29145 * aarch64/aarch64-simd.md (aarch64_mla_elt<mode>): Correct lane syntax.
29146 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29147 (aarch64_mls_elt<mode>): Likewise.
29148 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29149 (aarch64_fma4_elt<mode>): Likewise.
29150 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29151 (aarch64_fma4_elt_to_64v2df): Likewise.
29152 (aarch64_fnma4_elt<mode>): Likewise.
29153 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29154 (aarch64_fnma4_elt_to_64v2df): Likewise.
29156 2020-03-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29158 * config/aarch64/aarch64-sve2.md (@aarch64_sve_<sve_int_op><mode>:
29159 Specify movprfx attribute.
29160 (@aarch64_sve_<sve_int_op>_lane_<mode>): Likewise.
29162 2020-03-06 David Edelsohn <dje.gcc@gmail.com>
29165 * config/rs6000/aix61.h (TARGET_NO_SUM_IN_TOC): Set to 1 for
29167 (TARGET_NO_FP_IN_TOC): Same.
29168 * config/rs6000/aix71.h: Same.
29169 * config/rs6000/aix72.h: Same.
29171 2020-03-06 Andrew Pinski <apinski@marvell.com>
29172 Jeff Law <law@redhat.com>
29174 PR rtl-optimization/93996
29175 * haifa-sched.c (remove_notes): Be more careful when adding
29178 2020-03-06 Delia Burduv <delia.burduv@arm.com>
29180 * config/arm/arm_neon.h (vld2_bf16): New.
29186 (vld2_dup_bf16): New.
29187 (vld2q_dup_bf16): New.
29188 (vld3_dup_bf16): New.
29189 (vld3q_dup_bf16): New.
29190 (vld4_dup_bf16): New.
29191 (vld4q_dup_bf16): New.
29192 * config/arm/arm_neon_builtins.def
29193 (vld2): Changed to VAR13 and added v4bf, v8bf
29194 (vld2_dup): Changed to VAR8 and added v4bf, v8bf
29195 (vld3): Changed to VAR13 and added v4bf, v8bf
29196 (vld3_dup): Changed to VAR8 and added v4bf, v8bf
29197 (vld4): Changed to VAR13 and added v4bf, v8bf
29198 (vld4_dup): Changed to VAR8 and added v4bf, v8bf
29199 * config/arm/iterators.md (VDXBF2): New iterator.
29200 *config/arm/neon.md (neon_vld2): Use new iterators.
29201 (neon_vld2_dup<mode): Use new iterators.
29202 (neon_vld3<mode>): Likewise.
29203 (neon_vld3qa<mode>): Likewise.
29204 (neon_vld3qb<mode>): Likewise.
29205 (neon_vld3_dup<mode>): Likewise.
29206 (neon_vld4<mode>): Likewise.
29207 (neon_vld4qa<mode>): Likewise.
29208 (neon_vld4qb<mode>): Likewise.
29209 (neon_vld4_dup<mode>): Likewise.
29210 (neon_vld2_dupv8bf): New.
29211 (neon_vld3_dupv8bf): Likewise.
29212 (neon_vld4_dupv8bf): Likewise.
29214 2020-03-06 Delia Burduv <delia.burduv@arm.com>
29216 * config/arm/arm_neon.h (bfloat16x4x2_t): New typedef.
29217 (bfloat16x8x2_t): New typedef.
29218 (bfloat16x4x3_t): New typedef.
29219 (bfloat16x8x3_t): New typedef.
29220 (bfloat16x4x4_t): New typedef.
29221 (bfloat16x8x4_t): New typedef.
29228 * config/arm/arm-builtins.c (v2bf_UP): Define.
29230 (arm_init_simd_builtin_types): Init Bfloat16x2_t eltype.
29231 * config/arm/arm-modes.def (V2BF): New mode.
29232 * config/arm/arm-simd-builtin-types.def
29233 (Bfloat16x2_t): New entry.
29234 * config/arm/arm_neon_builtins.def
29235 (vst2): Changed to VAR13 and added v4bf, v8bf
29236 (vst3): Changed to VAR13 and added v4bf, v8bf
29237 (vst4): Changed to VAR13 and added v4bf, v8bf
29238 * config/arm/iterators.md (VDXBF): New iterator.
29239 (VQ2BF): New iterator.
29240 *config/arm/neon.md (neon_vst2<mode>): Used new iterators.
29241 (neon_vst2<mode>): Used new iterators.
29242 (neon_vst3<mode>): Used new iterators.
29243 (neon_vst3<mode>): Used new iterators.
29244 (neon_vst3qa<mode>): Used new iterators.
29245 (neon_vst3qb<mode>): Used new iterators.
29246 (neon_vst4<mode>): Used new iterators.
29247 (neon_vst4<mode>): Used new iterators.
29248 (neon_vst4qa<mode>): Used new iterators.
29249 (neon_vst4qb<mode>): Used new iterators.
29251 2020-03-06 Delia Burduv <delia.burduv@arm.com>
29253 * config/aarch64/aarch64-simd-builtins.def
29254 (bfcvtn): New built-in function.
29255 (bfcvtn_q): New built-in function.
29256 (bfcvtn2): New built-in function.
29257 (bfcvt): New built-in function.
29258 * config/aarch64/aarch64-simd.md
29259 (aarch64_bfcvtn<q><mode>): New pattern.
29260 (aarch64_bfcvtn2v8bf): New pattern.
29261 (aarch64_bfcvtbf): New pattern.
29262 * config/aarch64/arm_bf16.h (float32_t): New typedef.
29263 (vcvth_bf16_f32): New intrinsic.
29264 * config/aarch64/arm_bf16.h (vcvt_bf16_f32): New intrinsic.
29265 (vcvtq_low_bf16_f32): New intrinsic.
29266 (vcvtq_high_bf16_f32): New intrinsic.
29267 * config/aarch64/iterators.md (V4SF_TO_BF): New mode iterator.
29268 (UNSPEC_BFCVTN): New UNSPEC.
29269 (UNSPEC_BFCVTN2): New UNSPEC.
29270 (UNSPEC_BFCVT): New UNSPEC.
29271 * config/arm/types.md (bf_cvt): New type.
29273 2020-03-06 Andreas Krebbel <krebbel@linux.ibm.com>
29275 * config/s390/s390.md ("tabort"): Get rid of two consecutive
29276 blanks in format string.
29278 2020-03-05 H.J. Lu <hongjiu.lu@intel.com>
29282 * config/i386/i386-protos.h (ix86_output_ssemov): New prototype.
29283 * config/i386/i386.c (ix86_get_ssemov): New function.
29284 (ix86_output_ssemov): Likewise.
29285 * config/i386/sse.md (VMOVE:mov<mode>_internal): Call
29286 ix86_output_ssemov for TYPE_SSEMOV. Remove TARGET_AVX512VL
29288 (*movxi_internal_avx512f): Call ix86_output_ssemov for TYPE_SSEMOV.
29289 (*movoi_internal_avx): Call ix86_output_ssemov for TYPE_SSEMOV.
29290 Remove ext_sse_reg_operand and TARGET_AVX512VL check.
29291 (*movti_internal): Likewise.
29292 (*movtf_internal): Call ix86_output_ssemov for TYPE_SSEMOV.
29294 2020-03-05 Jeff Law <law@redhat.com>
29296 PR tree-optimization/91890
29297 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Remove LOC argument.
29298 Use gimple_or_expr_nonartificial_location.
29299 (check_bounds_overlap): Drop LOC argument to maybe_diag_access_bounds.
29300 Use gimple_or_expr_nonartificial_location.
29301 * gimple.c (gimple_or_expr_nonartificial_location): New function.
29302 * gimple.h (gimple_or_expr_nonartificial_location): Declare it.
29303 * tree-ssa-strlen.c (maybe_warn_overflow): Use
29304 gimple_or_expr_nonartificial_location.
29305 (maybe_diag_stxncpy_trunc, handle_builtin_stxncpy_strncat): Likewise.
29306 (maybe_warn_pointless_strcmp): Likewise.
29308 2020-03-05 Jakub Jelinek <jakub@redhat.com>
29311 * config/i386/avx2intrin.h (_mm_mask_i32gather_ps): Fix first cast of
29312 SRC and MASK arguments to __m128 from __m128d.
29313 (_mm256_mask_i32gather_ps): Fix first cast of MASK argument to __m256
29315 (_mm_mask_i64gather_ps): Fix first cast of MASK argument to __m128
29317 * config/i386/xopintrin.h (_mm_permute2_pd): Fix first cast of C
29318 argument to __m128i from __m128d.
29319 (_mm256_permute2_pd): Fix first cast of C argument to __m256i from
29321 (_mm_permute2_ps): Fix first cast of C argument to __m128i from __m128.
29322 (_mm256_permute2_ps): Fix first cast of C argument to __m256i from
29325 2020-03-05 Delia Burduv <delia.burduv@arm.com>
29327 * config/arm/arm_neon.h (vbfmmlaq_f32): New.
29328 (vbfmlalbq_f32): New.
29329 (vbfmlaltq_f32): New.
29330 (vbfmlalbq_lane_f32): New.
29331 (vbfmlaltq_lane_f32): New.
29332 (vbfmlalbq_laneq_f32): New.
29333 (vbfmlaltq_laneq_f32): New.
29334 * config/arm/arm_neon_builtins.def (vmmla): New.
29339 (vfmab_laneq): New.
29340 (vfmat_laneq): New.
29341 * config/arm/iterators.md (BF_MA): New int iterator.
29342 (bt): New int attribute.
29343 (VQXBF): Copy of VQX with V8BF.
29344 * config/arm/neon.md (neon_vmmlav8bf): New insn.
29345 (neon_vfma<bt>v8bf): New insn.
29346 (neon_vfma<bt>_lanev8bf): New insn.
29347 (neon_vfma<bt>_laneqv8bf): New expand.
29348 (neon_vget_high<mode>): Changed iterator to VQXBF.
29349 * config/arm/unspecs.md (UNSPEC_BFMMLA): New UNSPEC.
29350 (UNSPEC_BFMAB): New UNSPEC.
29351 (UNSPEC_BFMAT): New UNSPEC.
29353 2020-03-05 Jakub Jelinek <jakub@redhat.com>
29355 PR middle-end/93399
29356 * tree-pretty-print.h (pretty_print_string): Declare.
29357 * tree-pretty-print.c (pretty_print_string): Remove forward
29358 declaration, no longer static. Change nbytes parameter type
29359 from unsigned to size_t.
29360 * print-rtl.c (print_value) <case CONST_STRING>: Use
29361 pretty_print_string and for shrink way too long strings.
29363 2020-03-05 Richard Biener <rguenther@suse.de>
29364 Jakub Jelinek <jakub@redhat.com>
29366 PR tree-optimization/93582
29367 * tree-ssa-sccvn.c (vn_reference_lookup_3): Treat POINTER_PLUS_EXPR
29368 last operand as signed when looking for memset offset. Formatting
29371 2020-03-04 Andrew Pinski <apinski@marvell.com>
29374 * value-prof.c (dump_histogram_value): Use std::abs.
29376 2020-03-04 Martin Sebor <msebor@redhat.com>
29378 PR tree-optimization/93986
29379 * tree-ssa-strlen.c (maybe_warn_overflow): Convert all wide_int
29380 operands to the same precision widest_int to avoid ICEs.
29382 2020-03-04 Bill Schmidt <wschmidt@linux.ibm.com>
29385 * rs6000-cpus.def (OTHER_ALTIVEC_MASKS): New #define.
29386 * rs6000.c (rs6000_disable_incompatible_switches): Add table entry
29387 for OPTION_MASK_ALTIVEC.
29389 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
29391 * config.gcc: Include the glibc-stdint.h header for zTPF.
29393 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
29395 * config/s390/s390.c (s390_secondary_memory_needed): Disallow
29396 direct FPR-GPR copies.
29397 (s390_register_info_gprtofpr): Disallow GPR content to be saved in
29400 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
29402 * config/s390/s390.c (s390_emit_prologue): Specify the 2 new
29403 operands to the prologue_tpf expander.
29404 (s390_emit_epilogue): Likewise.
29405 (s390_option_override_internal): Do error checking and setup for
29407 * config/s390/tpf.h (TPF_TRACE_PROLOGUE_CHECK)
29408 (TPF_TRACE_EPILOGUE_CHECK, TPF_TRACE_PROLOGUE_TARGET)
29409 (TPF_TRACE_EPILOGUE_TARGET, TPF_TRACE_PROLOGUE_SKIP_TARGET)
29410 (TPF_TRACE_EPILOGUE_SKIP_TARGET): New macro definitions.
29411 * config/s390/tpf.md ("prologue_tpf", "epilogue_tpf"): Add two new
29412 operands for the check flag and the branch target.
29413 * config/s390/tpf.opt ("mtpf-trace-hook-prologue-check")
29414 ("mtpf-trace-hook-prologue-target")
29415 ("mtpf-trace-hook-epilogue-check")
29416 ("mtpf-trace-hook-epilogue-target", "mtpf-trace-skip"): New
29418 * doc/invoke.texi: Document -mtpf-trace-skip option. The other
29419 options are for debugging purposes and will not be documented
29422 2020-03-04 Jakub Jelinek <jakub@redhat.com>
29425 * tree-inline.c (copy_decl_to_var): Copy DECL_BY_REFERENCE flag.
29427 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Add offseti
29428 argument. Change pd argument so that it can be modified. Turn
29429 constant non-CONSTRUCTOR store into non-constant if it is too large.
29430 Adjust offset and size of CONSTRUCTOR or non-constant store to avoid
29432 (vn_walk_cb_data::vn_walk_cb_data, vn_reference_lookup_3): Adjust
29435 2020-02-04 Richard Biener <rguenther@suse.de>
29437 PR tree-optimization/93964
29438 * graphite-isl-ast-to-gimple.c
29439 (gcc_expression_from_isl_ast_expr_id): Add intermediate
29440 conversion for pointer to integer converts.
29441 * graphite-scop-detection.c (assign_parameter_index_in_region):
29444 2020-03-04 Martin Liska <mliska@suse.cz>
29448 * doc/invoke.texi: Clarify --help=language and --help=common
29451 2020-03-04 Jakub Jelinek <jakub@redhat.com>
29453 PR tree-optimization/94001
29454 * tree-tailcall.c (process_assignment): Before comparing op1 to
29455 *ass_var, verify *ass_var is non-NULL.
29457 2020-03-04 Kito Cheng <kito.cheng@sifive.com>
29460 * config/riscv/riscv.c (riscv_emit_float_compare): Using NE to compare
29463 2020-03-03 Dennis Zhang <dennis.zhang@arm.com>
29465 * config/arm/arm_bf16.h (vcvtah_f32_bf16, vcvth_bf16_f32): New.
29466 * config/arm/arm_neon.h (vcvt_f32_bf16, vcvtq_low_f32_bf16): New.
29467 (vcvtq_high_f32_bf16, vcvt_bf16_f32): New.
29468 (vcvtq_low_bf16_f32, vcvtq_high_bf16_f32): New.
29469 * config/arm/arm_neon_builtins.def (vbfcvt, vbfcvt_high): New entries.
29470 (vbfcvtv4sf, vbfcvtv4sf_high): Likewise.
29471 * config/arm/iterators.md (VBFCVT, VBFCVTM): New mode iterators.
29472 (V_bf_low, V_bf_cvt_m): New mode attributes.
29473 * config/arm/neon.md (neon_vbfcvtv4sf<VBFCVT:mode>): New.
29474 (neon_vbfcvtv4sf_highv8bf, neon_vbfcvtsf): New.
29475 (neon_vbfcvt<VBFCVT:mode>, neon_vbfcvt_highv8bf): New.
29476 (neon_vbfcvtbf_cvtmode<mode>, neon_vbfcvtbf): New
29477 * config/arm/unspecs.md (UNSPEC_BFCVT, UNSPEC_BFCVT_HIG): New.
29479 2020-03-03 Jakub Jelinek <jakub@redhat.com>
29481 PR tree-optimization/93582
29482 * tree-ssa-sccvn.h (vn_reference_lookup): Add mask argument.
29483 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add mask and masked_result
29484 members, initialize them in the constructor and if mask is non-NULL,
29485 artificially push_partial_def {} for the portions of the mask that
29487 (vn_walk_cb_data::finish): If mask is non-NULL, set masked_result to
29488 val and return (void *)-1. Formatting fix.
29489 (vn_reference_lookup_pieces): Adjust vn_walk_cb_data initialization.
29491 (vn_reference_lookup): Add mask argument. If non-NULL, don't call
29492 fully_constant_vn_reference_p nor vn_reference_lookup_1 and return
29494 (visit_nary_op): Handle BIT_AND_EXPR of a memory load and INTEGER_CST
29496 (visit_stmt): Formatting fix.
29498 2020-03-03 Richard Biener <rguenther@suse.de>
29500 PR tree-optimization/93946
29501 * alias.h (refs_same_for_tbaa_p): Declare.
29502 * alias.c (refs_same_for_tbaa_p): New function.
29503 * tree-ssa-alias.c (ao_ref_alias_set): For a NULL ref return
29505 * tree-ssa-scopedtables.h
29506 (avail_exprs_stack::lookup_avail_expr): Add output argument
29507 giving access to the hashtable entry.
29508 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
29510 * tree-ssa-dom.c: Include alias.h.
29511 (dom_opt_dom_walker::optimize_stmt): Validate TBAA state before
29512 removing redundant store.
29513 * tree-ssa-sccvn.h (vn_reference_s::base_set): New member.
29514 (ao_ref_init_from_vn_reference): Adjust prototype.
29515 (vn_reference_lookup_pieces): Likewise.
29516 (vn_reference_insert_pieces): Likewise.
29517 * tree-ssa-sccvn.c: Track base alias set in addition to alias
29519 (eliminate_dom_walker::eliminate_stmt): Also check base alias
29520 set when removing redundant stores.
29521 (visit_reference_op_store): Likewise.
29522 * dse.c (record_store): Adjust valdity check for redundant
29525 2020-03-03 Jakub Jelinek <jakub@redhat.com>
29528 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Reorder.
29530 PR rtl-optimization/94002
29531 * explow.c (plus_constant): Punt if cst has VOIDmode and
29532 get_pool_mode is different from mode.
29534 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
29536 * config/arc/arc.c (leigitimate_small_data_address_p): Check if an
29537 address has an offset which fits the scalling constraint for a
29538 load/store operation.
29539 (legitimate_scaled_address_p): Update use
29540 leigitimate_small_data_address_p.
29541 (arc_print_operand): Likewise.
29542 (arc_legitimate_address_p): Likewise.
29543 (legitimate_small_data_address_p): Likewise.
29545 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
29547 * config/arc/arc.md (fmasf4_fpu): Use accl_operand predicate.
29548 (fnmasf4_fpu): Likewise.
29550 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
29552 * config/arc/arc.md (adddi3): Early expand the 64bit operation into
29554 (subdi3): Likewise.
29555 (adddi3_i): Remove pattern.
29556 (subdi3_i): Likewise.
29558 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
29560 * config/arc/arc.md (eh_return): Add length info.
29562 2020-03-02 David Malcolm <dmalcolm@redhat.com>
29564 * doc/invoke.texi (-fanalyzer-show-duplicate-count): New.
29566 2020-03-02 David Malcolm <dmalcolm@redhat.com>
29568 * doc/invoke.texi (Static Analyzer Options): Add
29569 -Wanalyzer-stale-setjmp-buffer to the list of options enabled
29572 2020-03-02 Uroš Bizjak <ubizjak@gmail.com>
29575 * config/i386/i386.md (movstrict<mode>): Allow only
29576 registers with VALID_INT_MODE_P modes.
29578 2020-03-02 Andrew Stubbs <ams@codesourcery.com>
29580 * config/gcn/gcn-valu.md (dpp_move<mode>): New.
29581 (reduc_insn): Use 'U' and 'B' operand codes.
29582 (reduc_<reduc_op>_scal_<mode>): Allow all types.
29583 (reduc_<reduc_op>_scal_v64di): Delete.
29584 (*<reduc_op>_dpp_shr_<mode>): Allow all 1reg types.
29585 (*plus_carry_dpp_shr_v64si): Change to ...
29586 (*plus_carry_dpp_shr_<mode>): ... this and allow all 1reg int types.
29587 (mov_from_lane63_v64di): Change to ...
29588 (mov_from_lane63_<mode>): ... this, and allow all 64-bit modes.
29589 * config/gcn/gcn.c (gcn_expand_dpp_shr_insn): Increase buffer size.
29590 Support UNSPEC_MOV_DPP_SHR output formats.
29591 (gcn_expand_reduc_scalar): Add "use_moves" reductions.
29592 Add "use_extends" reductions.
29593 (print_operand_address): Add 'I' and 'U' codes.
29594 * config/gcn/gcn.md (unspec): Add UNSPEC_MOV_DPP_SHR.
29596 2020-03-02 Martin Liska <mliska@suse.cz>
29598 * lto-wrapper.c: Fix typo in comment about
29599 C++ standard version.
29601 2020-03-01 Martin Sebor <msebor@redhat.com>
29604 * calls.c (init_attr_rdwr_indices): Correctly handle attribute.
29606 2020-03-01 Martin Sebor <msebor@redhat.com>
29608 PR middle-end/93829
29609 * tree-ssa-strlen.c (count_nonzero_bytes): Set the size to that
29610 of a pointer in the outermost ADDR_EXPRs.
29612 2020-02-28 Jeff Law <law@redhat.com>
29614 * config/v850/v850.h (STATIC_CHAIN_REGNUM): Change to r19.
29615 * config/v850/v850.c (v850_asm_trampoline_template): Update
29618 2020-02-28 Michael Meissner <meissner@linux.ibm.com>
29621 * config/rs6000/vsx.md (vsx_extract_<mode>_<VS_scalar>mode_var):
29624 2020-02-28 Martin Liska <mliska@suse.cz>
29627 * configure.ac: Improve detection of ld_date by requiring
29628 either two dashes or none.
29629 * configure: Regenerate.
29631 2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
29633 PR rtl-optimization/93564
29634 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
29635 do not honor reg alloc order.
29637 2020-02-27 Joel Hutton <Joel.Hutton@arm.com>
29640 * config/aarch64/aarch64.c (aarch64_override_options): Fix
29641 misleading warning string.
29643 2020-02-27 Martin Sebor <msebor@redhat.com>
29645 * doc/invoke.texi (-Wbuiltin-declaration-mismatch): Fix a typo.
29647 2020-02-27 Michael Meissner <meissner@linux.ibm.com>
29650 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
29651 Split the insn into two parts. This insn only does variable
29652 extract from a register.
29653 (vsx_extract_<mode>_var_load, VSX_D iterator): New insn, do
29654 variable extract from memory.
29655 (vsx_extract_v4sf_var): Split the insn into two parts. This insn
29656 only does variable extract from a register.
29657 (vsx_extract_v4sf_var_load): New insn, do variable extract from
29659 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Split the insn
29660 into two parts. This insn only does variable extract from a
29662 (vsx_extract_<mode>_var_load, VSX_EXTRACT_I iterator): New insn,
29663 do variable extract from memory.
29665 2020-02-27 Martin Jambor <mjambor@suse.cz>
29666 Feng Xue <fxue@os.amperecomputing.com>
29669 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): Replaced with
29670 new function calls_same_node_or_its_all_contexts_clone_p.
29671 (cgraph_edge_brings_value_p): Use it.
29672 (cgraph_edge_brings_value_p): Likewise.
29673 (self_recursive_pass_through_p): Return false if caller is a clone.
29674 (self_recursive_agg_pass_through_p): Likewise.
29676 2020-02-27 Jan Hubicka <hubicka@ucw.cz>
29678 PR middle-end/92152
29679 * alias.c (ends_tbaa_access_path_p): Break out from ...
29680 (component_uses_parent_alias_set_from): ... here.
29681 * alias.h (ends_tbaa_access_path_p): Declare.
29682 * tree-ssa-alias.c (access_path_may_continue_p): Break out from ...;
29683 handle trailing arrays past end of tbaa access path.
29684 (aliasing_component_refs_p): ... here; likewise.
29685 (nonoverlapping_refs_since_match_p): Track TBAA segment of the access
29686 path; disambiguate also past end of it.
29687 (nonoverlapping_component_refs_p): Use only TBAA segment of the access
29690 2020-02-27 Mihail Ionescu <mihail.ionescu@arm.com>
29692 * (__ARM_NUM_LANES, __arm_lane, __arm_lane_q): Move to the
29693 beginning of the file.
29694 (vcreate_bf16, vcombine_bf16): New.
29695 (vdup_n_bf16, vdupq_n_bf16): New.
29696 (vdup_lane_bf16, vdup_laneq_bf16): New.
29697 (vdupq_lane_bf16, vdupq_laneq_bf16): New.
29698 (vduph_lane_bf16, vduph_laneq_bf16): New.
29699 (vset_lane_bf16, vsetq_lane_bf16): New.
29700 (vget_lane_bf16, vgetq_lane_bf16): New.
29701 (vget_high_bf16, vget_low_bf16): New.
29702 (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
29703 (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
29704 (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
29705 (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
29706 (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
29707 (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
29708 (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
29709 (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
29710 (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
29711 (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
29712 (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New.
29713 (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
29714 (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
29715 (vreinterpretq_bf16_p128): New.
29716 (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
29717 (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
29718 (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
29719 (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
29720 (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
29721 (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
29722 (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
29723 (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
29724 (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
29725 (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
29726 (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
29727 (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
29728 (vreinterpretq_p128_bf16): New.
29729 * config/arm/arm_neon_builtins.def (VDX): Add V4BF.
29730 (V_elem): Likewise.
29731 (V_elem_l): Likewise.
29732 (VD_LANE): Likewise.
29734 (V_DOUBLE): Likewise.
29735 (VDQX): Add V4BF and V8BF.
29736 (V_two_elem, V_three_elem, V_four_elem): Likewise.
29738 (V_HALF): Likewise.
29739 (V_double_vector_mode): Likewise.
29740 (V_cmp_result): Likewise.
29741 (V_uf_sclr): Likewise.
29742 (V_sz_elem): Likewise.
29743 (Is_d_reg): Likewise.
29744 (V_mode_nunits): Likewise.
29745 * config/arm/neon.md (neon_vdup_lane): Enable for BFloat16.
29747 2020-02-27 Andrew Stubbs <ams@codesourcery.com>
29749 * config/gcn/gcn-valu.md (VEC_SUBDWORD_MODE): New mode iterator.
29750 (<expander><mode>2<exec>): Change modes to VEC_ALL1REG_INT_MODE.
29751 (<expander><mode>3<exec>): Likewise.
29752 (<expander><mode>3): New.
29753 (v<expander><mode>3): New.
29754 (<expander><mode>3): New.
29755 (<expander><mode>3<exec>): Rename to ...
29756 (<expander>v64si3<exec>): ... this, and change modes to V64SI.
29757 * config/gcn/gcn.md (mnemonic): Use '%B' for not.
29759 2020-02-27 Alexandre Oliva <oliva@adacore.com>
29761 * config/vx-common.h (NO_DOLLAR_IN_LABEL, NO_DOT_IN_LABEL): Leave
29764 2020-02-27 Richard Biener <rguenther@suse.de>
29766 PR tree-optimization/93508
29767 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle _CHK like
29768 non-_CHK variants. Valueize their length arguments.
29770 2020-02-27 Richard Biener <rguenther@suse.de>
29772 PR tree-optimization/93953
29773 * tree-vect-slp.c (slp_copy_subtree): Avoid keeping a reference
29774 to the hash-map entry.
29776 2020-02-27 Andrew Stubbs <ams@codesourcery.com>
29778 * config/gcn/gcn.md (mov<mode>): Add transformations for BI subregs.
29780 2020-02-27 Mark Williams <mwilliams@fb.com>
29782 * dwarf2out.c (file_name_acquire): Call remap_debug_filename.
29783 * lto-opts.c (lto_write_options): Drop -fdebug-prefix-map,
29784 -ffile-prefix-map and -fmacro-prefix-map.
29785 * lto-streamer-out.c: Include file-prefix-map.h.
29786 (lto_output_location): Remap the file part of locations.
29788 2020-02-27 Jakub Jelinek <jakub@redhat.com>
29791 * gimplify.c (gimplify_init_constructor): Don't promote readonly
29792 DECL_REGISTER variables to TREE_STATIC.
29794 PR tree-optimization/93582
29795 PR tree-optimization/93945
29796 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle memset with
29797 non-zero INTEGER_CST second argument and ref->offset or ref->size
29798 not a multiple of BITS_PER_UNIT.
29800 2020-02-27 Jonathan Wakely <jwakely@redhat.com>
29802 * doc/install.texi (Binaries): Update description of BullFreeware.
29804 2020-02-26 Sandra Loosemore <sandra@codesourcery.com>
29808 * doc/invoke.texi (Option Summary): Re-alphabetize warnings in
29809 C++ Language Options, Warning Options, and Static Analyzer
29810 Options lists. Document negative form of options enabled by
29811 default. Move some things around to more accurately sort
29812 warnings by category.
29813 (C++ Dialect Options, Warning Options, Static Analyzer
29814 Options): Document negative form of options when enabled by
29815 default. Move some things around to more accurately sort
29816 warnings by category. Add some missing index entries.
29817 Light copy-editing.
29819 2020-02-26 Carl Love <cel@us.ibm.com>
29822 * doc/extend.texi (PowerPC AltiVec Built-in Functions available on
29823 ISA 2.07): The builtin-function name __builtin_crypto_vpmsumb is only
29824 for the vector unsigned short arguments. It is also listed as the
29825 name of the built-in for arguments vector unsigned short,
29826 vector unsigned int and vector unsigned long long built-ins. The
29827 name of the builtins for these arguments should be:
29828 __builtin_crypto_vpmsumh, __builtin_crypto_vpmsumw and
29829 __builtin_crypto_vpmsumd respectively.
29831 2020-02-26 Richard Biener <rguenther@suse.de>
29833 * tree-vect-slp.c (vect_print_slp_tree): Also dump ref count
29834 and load permutation.
29836 2020-02-26 Richard Sandiford <richard.sandiford@arm.com>
29838 PR middle-end/93843
29839 * optabs-tree.c (supportable_convert_operation): Reject types with
29842 2020-02-26 David Malcolm <dmalcolm@redhat.com>
29844 * Makefile.in (ANALYZER_OBJS): Add analyzer/bar-chart.o.
29846 2020-02-26 Jakub Jelinek <jakub@redhat.com>
29848 PR tree-optimization/93820
29849 * gimple-ssa-store-merging.c (check_no_overlap): Change RHS_CODE
29850 argument to ALL_INTEGER_CST_P boolean.
29851 (imm_store_chain_info::try_coalesce_bswap): Adjust caller.
29852 (imm_store_chain_info::coalesce_immediate_stores): Likewise. Handle
29853 adjacent INTEGER_CST store into merged_store->only_constants like
29856 2020-02-25 Jakub Jelinek <jakub@redhat.com>
29859 * config/sh/sh.c (expand_cbranchdi4): Fix comment typo, probablity
29861 * cfghooks.c (verify_flow_info): Likewise.
29862 * predict.c (combine_predictions_for_bb): Likewise.
29863 * bb-reorder.c (connect_better_edge_p): Likewise. Fix comment typo,
29864 sucessor -> successor.
29865 (find_traces_1_round): Fix comment typo, destinarion -> destination.
29866 * omp-expand.c (expand_oacc_for): Fix comment typo, sucessors ->
29868 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Fix dump
29869 message typo, sucessors -> successors.
29871 2020-02-25 Martin Sebor <msebor@redhat.com>
29873 * doc/extend.texi (attribute access): Correct an example.
29875 2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
29877 * config/aarch64/aarch64-builtins.c (aarch64_scalar_builtin_types):
29879 (aarch64_init_simd_builtin_scalar_types): Register simd_bf.
29880 (VAR15, VAR16): New.
29881 * config/aarch64/iterators.md (VALLDIF): Enable for V4BF and V8BF.
29882 (VD): Enable for V4BF.
29884 (VQ): Enable for V8BF.
29886 (VQ_NO2E): Likewise.
29887 (VDBL, Vdbl): Add V4BF.
29888 (V_INT_EQUIV, v_int_equiv): Add V4BF and V8BF.
29889 * config/aarch64/arm_neon.h (bfloat16x4x2_t): New typedef.
29890 (bfloat16x8x2_t): Likewise.
29891 (bfloat16x4x3_t): Likewise.
29892 (bfloat16x8x3_t): Likewise.
29893 (bfloat16x4x4_t): Likewise.
29894 (bfloat16x8x4_t): Likewise.
29895 (vcombine_bf16): New.
29896 (vld1_bf16, vld1_bf16_x2): New.
29897 (vld1_bf16_x3, vld1_bf16_x4): New.
29898 (vld1q_bf16, vld1q_bf16_x2): New.
29899 (vld1q_bf16_x3, vld1q_bf16_x4): New.
29900 (vld1_lane_bf16): New.
29901 (vld1q_lane_bf16): New.
29902 (vld1_dup_bf16): New.
29903 (vld1q_dup_bf16): New.
29906 (vld2_dup_bf16): New.
29907 (vld2q_dup_bf16): New.
29910 (vld3_dup_bf16): New.
29911 (vld3q_dup_bf16): New.
29914 (vld4_dup_bf16): New.
29915 (vld4q_dup_bf16): New.
29916 (vst1_bf16, vst1_bf16_x2): New.
29917 (vst1_bf16_x3, vst1_bf16_x4): New.
29918 (vst1q_bf16, vst1q_bf16_x2): New.
29919 (vst1q_bf16_x3, vst1q_bf16_x4): New.
29920 (vst1_lane_bf16): New.
29921 (vst1q_lane_bf16): New.
29929 2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
29931 * config/aarch64/iterators.md (VDQF_F16) Add V4BF and V8BF.
29932 (VALL_F16): Likewise.
29933 (VALLDI_F16): Likewise.
29935 (Vetype): Likewise.
29936 (vswap_width_name): Likewise.
29937 (VSWAP_WIDTH): Likewise.
29941 * config/aarch64/arm_neon.h (vset_lane_bf16, vsetq_lane_bf16): New.
29942 (vget_lane_bf16, vgetq_lane_bf16): New.
29943 (vcreate_bf16): New.
29944 (vdup_n_bf16, vdupq_n_bf16): New.
29945 (vdup_lane_bf16, vdup_laneq_bf16): New.
29946 (vdupq_lane_bf16, vdupq_laneq_bf16): New.
29947 (vduph_lane_bf16, vduph_laneq_bf16): New.
29948 (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
29949 (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
29950 (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
29951 (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
29952 (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
29953 (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
29954 (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
29955 (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
29956 (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
29957 (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
29958 (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New
29959 (vreinterpret_bf16_f16, vreinterpretq_bf16_f16): New
29960 (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
29961 (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
29962 (vreinterpretq_bf16_p128): New.
29963 (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
29964 (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
29965 (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
29966 (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
29967 (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
29968 (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
29969 (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
29970 (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
29971 (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
29972 (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
29973 (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
29974 (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
29975 (vreinterpret_f64_bf16,vreinterpretq_f64_bf16): New.
29976 (vreinterpret_f16_bf16,vreinterpretq_f16_bf16): New.
29977 (vreinterpretq_p128_bf16): New.
29979 2020-02-25 Dennis Zhang <dennis.zhang@arm.com>
29981 * config/arm/arm_neon.h (vbfdot_f32, vbfdotq_f32): New
29982 (vbfdot_lane_f32, vbfdotq_laneq_f32): New.
29983 (vbfdot_laneq_f32, vbfdotq_lane_f32): New.
29984 * config/arm/arm_neon_builtins.def (vbfdot): New entry.
29985 (vbfdot_lanev4bf, vbfdot_lanev8bf): Likewise.
29986 * config/arm/iterators.md (VSF2BF): New attribute.
29987 * config/arm/neon.md (neon_vbfdot<VCVTF:mode>): New entry.
29988 (neon_vbfdot_lanev4bf<VCVTF:mode>): Likewise.
29989 (neon_vbfdot_lanev8bf<VCVTF:mode>): Likewise.
29991 2020-02-25 Christophe Lyon <christophe.lyon@linaro.org>
29993 * config/arm/arm.md (required_for_purecode): New attribute.
29994 (enabled): Handle required_for_purecode.
29995 * config/arm/thumb1.md (thumb1_movsi_insn): Add alternative to
29996 work with -mpure-code.
29998 2020-02-25 Jakub Jelinek <jakub@redhat.com>
30000 PR rtl-optimization/93908
30001 * combine.c (find_split_point): For store into ZERO_EXTRACT, and src
30004 2019-02-25 Eric Botcazou <ebotcazou@adacore.com>
30006 * dwarf2out.c (dwarf2out_size_function): Run in early-DWARF mode.
30008 2020-02-25 Roman Zhuykov <zhroma@ispras.ru>
30010 * doc/install.texi (--enable-checking): Adjust wording.
30012 2020-02-25 Richard Biener <rguenther@suse.de>
30014 PR tree-optimization/93868
30015 * tree-vect-slp.c (slp_copy_subtree): New function.
30016 (vect_attempt_slp_rearrange_stmts): Copy the SLP tree before
30017 re-arranging stmts in it.
30019 2020-02-25 Jakub Jelinek <jakub@redhat.com>
30021 PR middle-end/93874
30022 * passes.c (pass_manager::dump_passes): Create a cgraph node for the
30023 dummy function and remove it at the end.
30025 PR translation/93864
30026 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Fix comment typo
30027 paramter -> parameter.
30028 * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Likewise.
30029 * ipa-prop.h (struct ipa_agg_replacement_value): Likewise.
30031 2020-02-24 Roman Zhuykov <zhroma@ispras.ru>
30033 * doc/install.texi (--enable-checking): Properly document current
30035 (--enable-stage1-checking): Minor clarification about bootstrap.
30037 2020-02-24 David Malcolm <dmalcolm@redhat.com>
30040 * doc/invoke.texi (-Wnanalyzer-tainted-array-index): Note that
30041 -fanalyzer-checker=taint is also required.
30042 (-fanalyzer-checker=): Note that providing this option enables the
30043 given checker, and doing so may be required for checkers that are
30044 disabled by default.
30046 2020-02-24 David Malcolm <dmalcolm@redhat.com>
30048 * doc/invoke.texi (-fanalyzer-verbosity=): "2" only shows
30049 significant control flow events; add a "3" which shows all
30050 control flow events; the old "3" becomes "4".
30052 2020-02-24 Jakub Jelinek <jakub@redhat.com>
30054 PR tree-optimization/93582
30055 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Consider
30056 pd.offset and pd.size to be counted in bits rather than bytes, add
30057 support for maxsizei that is not a multiple of BITS_PER_UNIT and
30058 handle bitfield stores and loads.
30059 (vn_reference_lookup_3): Don't call ranges_known_overlap_p with
30060 uncomparable quantities - bytes vs. bits. Allow push_partial_def
30061 on offsets/sizes that aren't multiple of BITS_PER_UNIT and adjust
30062 pd.offset/pd.size to be counted in bits rather than bytes.
30063 Formatting fix. Rename shadowed len variable to buflen.
30065 2020-02-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30066 Kugan Vivekandarajah <kugan.vivekanandarajah@linaro.org>
30069 * gcc.c (putenv_COLLECT_AS_OPTIONS): New function.
30070 (driver::main): Call putenv_COLLECT_AS_OPTIONS.
30071 * opts-common.c (parse_options_from_collect_gcc_options): New function.
30072 (prepend_xassembler_to_collect_as_options): Likewise.
30073 * opts.h (parse_options_from_collect_gcc_options): Declare prototype.
30074 (prepend_xassembler_to_collect_as_options): Likewise.
30075 * lto-opts.c (lto_write_options): Stream assembler options
30076 in COLLECT_AS_OPTIONS.
30077 * lto-wrapper.c (xassembler_options_error): New static variable.
30078 (get_options_from_collect_gcc_options): Move parsing options code to
30079 parse_options_from_collect_gcc_options and call it.
30080 (merge_and_complain): Validate -Xassembler options.
30081 (append_compiler_options): Handle OPT_Xassembler.
30082 (run_gcc): Append command line -Xassembler options to
30083 collect_gcc_options.
30084 * doc/invoke.texi: Add documentation about using Xassembler
30087 2020-02-24 Kito Cheng <kito.cheng@sifive.com>
30089 * config/riscv/riscv.c (riscv_emit_float_compare): Change the code gen
30091 (riscv_rtx_costs): Update cost model for LTGT.
30093 2020-02-23 Vladimir Makarov <vmakarov@redhat.com>
30095 PR rtl-optimization/93564
30096 * ira-color.c (struct update_cost_queue_elem): New member start.
30097 (queue_update_cost, get_next_update_cost): Add new arg start.
30098 (allocnos_conflict_p): New function.
30099 (update_costs_from_allocno): Add new arg conflict_cost_update_p.
30100 Add checking conflicts with allocnos_conflict_p.
30101 (update_costs_from_prefs, restore_costs_from_copies): Adjust
30102 update_costs_from_allocno calls.
30103 (update_conflict_hard_regno_costs): Add checking conflicts with
30104 allocnos_conflict_p. Adjust calls of queue_update_cost and
30105 get_next_update_cost.
30106 (assign_hard_reg): Adjust calls of queue_update_cost. Add
30108 (bucket_allocno_compare_func): Restore previous version.
30110 2020-02-21 John David Anglin <danglin@gcc.gnu.org>
30112 * config/pa/pa.c (pa_function_value): Fix check for word and
30113 double-word size when handling aggregate return values.
30114 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Fix to indicate
30115 that homogeneous SFmode and DFmode aggregates are passed and returned
30116 in general registers.
30118 2020-02-21 Jakub Jelinek <jakub@redhat.com>
30120 PR translation/93759
30121 * opts.c (print_filtered_help): Translate help before appending
30122 messages to it rather than after that.
30124 2020-02-19 Richard Sandiford <richard.sandiford@arm.com>
30126 PR rtl-optimization/PR92989
30127 * lra-lives.c (process_bb_lives): Restore the original order
30128 of the bb liveness update. Call make_hard_regno_dead for each
30129 register clobbered at the start of an EH receiver.
30131 2020-02-18 Feng Xue <fxue@os.amperecomputing.com>
30134 * ipa-cp.c (self_recursively_generated_p): Mark self-dependent value as
30135 self-recursively generated.
30137 2020-02-21 Iain Sandoe <iain@sandoe.co.uk>
30140 * config/darwin-c.c (pop_field_alignment): Adjust quoting of
30143 2020-02-21 Mihail Ionescu <mihail.ionescu@arm.com>
30145 * doc/sourcebuild.texi (arm_v8_1m_mve_ok):
30146 Document new target supports option.
30148 2020-02-21 Dennis Zhang <dennis.zhang@arm.com>
30150 * config/arm/arm_neon.h (vmmlaq_s32, vmmlaq_u32, vusmmlaq_s32): New.
30151 * config/arm/arm_neon_builtins.def (smmla, ummla, usmmla): New.
30152 * config/arm/iterators.md (MATMUL): New iterator.
30153 (sup): Add UNSPEC_MATMUL_S, UNSPEC_MATMUL_U, and UNSPEC_MATMUL_US.
30154 (mmla_sfx): New attribute.
30155 * config/arm/neon.md (neon_<sup>mmlav16qi): New.
30156 * config/arm/unspecs.md (UNSPEC_MATMUL_S, UNSPEC_MATMUL_U): New.
30157 (UNSPEC_MATMUL_US): New.
30159 2020-02-21 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
30161 * config/arm/arm.md: Prevent scalar shifts from being used when big
30164 2020-02-21 Jan Hubicka <hubicka@ucw.cz>
30165 Richard Biener <rguenther@suse.de>
30167 PR tree-optimization/93586
30168 * tree-ssa-alias.c (nonoverlapping_array_refs_p): Finish array walk
30169 after mismatched array refs; do not sure type size information to
30170 recover from unmatched referneces with !flag_strict_aliasing_p.
30172 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
30174 * config/gcn/gcn-valu.md (gather_load<mode>): Rename to ...
30175 (gather_load<mode>v64si): ... this and set operand 2 to V64SI.
30176 (scatter_store<mode>): Rename to ...
30177 (scatter_store<mode>v64si): ... this and set operand 1 to V64SI.
30178 (scatter<mode>_exec): Delete. Move contents ...
30179 (mask_scatter_store<mode>): ... here, and rename that to ...
30180 (mask_gather_load<mode>v64si): ... this. Set operand 2 to V64SI.
30181 Remove mode conversion.
30182 (mask_gather_load<mode>): Rename to ...
30183 (mask_scatter_store<mode>v64si): ... this. Set operand 1 to V64SI.
30184 Remove mode conversion.
30185 * config/gcn/gcn.c (gcn_expand_scaled_offsets): Remove mode conversion.
30187 2020-02-21 Martin Jambor <mjambor@suse.cz>
30189 PR tree-optimization/93845
30190 * tree-sra.c (verify_sra_access_forest): Only test access size of
30193 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
30195 * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align VGPR pairs.
30196 * config/gcn/gcn-valu.md (addv64di3): Remove early-clobber.
30197 (addv64di3_exec): Likewise.
30198 (subv64di3): Likewise.
30199 (subv64di3_exec): Likewise.
30200 (addv64di3_zext): Likewise.
30201 (addv64di3_zext_exec): Likewise.
30202 (addv64di3_zext_dup): Likewise.
30203 (addv64di3_zext_dup_exec): Likewise.
30204 (addv64di3_zext_dup2): Likewise.
30205 (addv64di3_zext_dup2_exec): Likewise.
30206 (addv64di3_sext_dup2): Likewise.
30207 (addv64di3_sext_dup2_exec): Likewise.
30208 (<expander>v64di3): Likewise.
30209 (<expander>v64di3_exec): Likewise.
30210 (*<reduc_op>_dpp_shr_v64di): Likewise.
30211 (*plus_carry_dpp_shr_v64di): Likewise.
30212 * config/gcn/gcn.md (adddi3): Likewise.
30213 (addptrdi3): Likewise.
30214 (<expander>di3): Likewise.
30216 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
30218 * config/gcn/gcn-valu.md (vec_seriesv64di): Use gen_vec_duplicatev64di.
30220 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
30222 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Add SVE
30223 support. Use aarch64_emit_mult instead of emitting multiplication
30224 instructions directly.
30225 * config/aarch64/aarch64-sve.md (sqrt<mode>2, rsqrt<mode>2)
30226 (@aarch64_rsqrte<mode>, @aarch64_rsqrts<mode>): New expanders.
30228 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
30230 * config/aarch64/aarch64.c (aarch64_emit_mult): New function.
30231 (aarch64_emit_approx_div): Add SVE support. Use aarch64_emit_mult
30232 instead of emitting multiplication instructions directly.
30233 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_OPTAB): New iterator.
30234 * config/aarch64/aarch64-sve.md (div<mode>3, @aarch64_frecpe<mode>)
30235 (@aarch64_frecps<mode>): New expanders.
30237 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
30239 * config/aarch64/aarch64-protos.h (AARCH64_APPROX_MODE): Operate
30240 on and produce uint64_ts rather than ints.
30241 (AARCH64_APPROX_NONE, AARCH64_APPROX_ALL): Change to uint64_ts.
30242 (cpu_approx_modes): Change the fields from unsigned int to uint64_t.
30244 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
30246 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Don't create
30247 an unused xmsk register when handling approximate rsqrt.
30249 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
30251 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Fix inverted
30252 flag_finite_math_only condition.
30254 2020-02-20 Uroš Bizjak <ubizjak@gmail.com>
30257 * config/i386/mmx.md (*vec_extractv2sf_1): Match source operand
30258 to destination operand for shufps alternative.
30259 (*vec_extractv2si_1): Ditto.
30261 2020-02-20 Peter Bergner <bergner@linux.ibm.com>
30264 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Handle VSX
30267 2020-02-20 Martin Liska <mliska@suse.cz>
30269 PR translation/93831
30270 * config/darwin.c (darwin_override_options): Change 64b to 64-bit mode.
30272 2020-02-20 Martin Liska <mliska@suse.cz>
30274 PR translation/93830
30275 * common/config/avr/avr-common.c: Remote trailing "|".
30277 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
30279 * collect2.c (maybe_run_lto_and_relink): Fix typo in
30282 2020-02-19 Richard Sandiford <richard.sandiford@arm.com>
30284 PR tree-optimization/93767
30285 * tree-vect-data-refs.c (vect_compile_time_alias): Remove the
30286 access-size bias from the offset calculations for negative strides.
30288 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
30290 * collect2.c (c_file, o_file): Make const again.
30291 (ldout,lderrout, dump_ld_file): Remove.
30292 (tool_cleanup): Avoid calling not signal-safe functions.
30293 (maybe_run_lto_and_relink): Avoid possible signal handler
30294 access to unintialzed memory (lto_o_files).
30295 (main): Avoid leaking temp files in $TMPDIR.
30296 Initialize c_file/o_file with concat, which avoids exposing
30297 uninitialized memory to signal handler, which calls unlink(!).
30298 Avoid calling maybe_unlink when the main function returns,
30299 since the atexit handler is already doing this.
30300 * collect2.h (dump_ld_file, ldout, lderrout): Remove.
30302 2020-02-19 Martin Jambor <mjambor@suse.cz>
30304 PR tree-optimization/93776
30305 * tree-sra.c (create_access): Do not create zero size accesses.
30306 (get_access_for_expr): Do not search for zero sized accesses.
30308 2020-02-19 Martin Jambor <mjambor@suse.cz>
30310 PR tree-optimization/93667
30311 * tree-sra.c (scalarizable_type_p): Return false if record fields
30312 do not follow wach other.
30314 2020-01-21 Kito Cheng <kito.cheng@sifive.com>
30316 * config/riscv/riscv.c (riscv_output_move) Using fmv.x.w/fmv.w.x
30317 rather than fmv.x.s/fmv.s.x.
30319 2020-02-18 James Greenhalgh <james.greenhalgh@arm.com>
30321 * config/aarch64/aarch64-simd-builtins.def
30322 (intrinsic_vec_smult_lo_): New.
30323 (intrinsic_vec_umult_lo_): Likewise.
30324 (vec_widen_smult_hi_): Likewise.
30325 (vec_widen_umult_hi_): Likewise.
30326 * config/aarch64/aarch64-simd.md
30327 (aarch64_intrinsic_vec_<su>mult_lo_<mode>): New.
30328 * config/aarch64/arm_neon.h (vmull_high_s8): Use intrinsics.
30329 (vmull_high_s16): Likewise.
30330 (vmull_high_s32): Likewise.
30331 (vmull_high_u8): Likewise.
30332 (vmull_high_u16): Likewise.
30333 (vmull_high_u32): Likewise.
30334 (vmull_s8): Likewise.
30335 (vmull_s16): Likewise.
30336 (vmull_s32): Likewise.
30337 (vmull_u8): Likewise.
30338 (vmull_u16): Likewise.
30339 (vmull_u32): Likewise.
30341 2020-02-18 Martin Liska <mliska@suse.cz>
30343 * value-prof.c (stream_out_histogram_value): Restore LTO PGO
30344 bootstrap by missing removal of invalid sanity check.
30346 2020-02-18 Martin Liska <mliska@suse.cz>
30349 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
30350 Always compare LHS of gimple_assign.
30352 2020-02-18 Martin Liska <mliska@suse.cz>
30355 * cgraph.c (cgraph_node::verify_node): Verify MALLOC attribute
30356 and return type of functions.
30357 * ipa-param-manipulation.c (ipa_param_adjustments::adjust_decl):
30358 Drop MALLOC attribute for void functions.
30359 * ipa-pure-const.c (funct_state_summary_t::duplicate): Drop
30360 malloc_state for a new VOID clone.
30362 2020-02-18 Martin Liska <mliska@suse.cz>
30365 * common.opt: Add -fprofile-reproducibility.
30366 * doc/invoke.texi: Document it.
30367 * value-prof.c (dump_histogram_value):
30368 Document and support behavior for counters[0]
30369 being a negative value.
30370 (get_nth_most_common_value): Handle negative
30371 counters[0] in respect to flag_profile_reproducible.
30373 2020-02-18 Jakub Jelinek <jakub@redhat.com>
30376 * cgraph.c (verify_speculative_call): Use speculative_id instead of
30377 speculative_uid in messages. Remove trailing whitespace from error
30378 message. Use num_speculative_call_targets instead of
30379 num_speculative_targets in a message.
30380 (cgraph_node::verify_node): Use call_stmt instead of cal_stmt in
30381 edge messages and stmt instead of cal_stmt in reference message.
30383 PR tree-optimization/93780
30384 * tree-ssa.c (non_rewritable_lvalue_p): Check valid_vector_subparts_p
30385 before calling build_vector_type.
30386 (execute_update_addresses_taken): Likewise.
30389 * params.opt (-param=ipa-max-switch-predicate-bounds=): Fix help
30390 typo, functoin -> function.
30391 * tree.c (free_lang_data_in_decl): Fix comment typo,
30392 functoin -> function.
30393 * ipa-visibility.c (cgraph_externally_visible_p): Likewise.
30395 2020-02-17 David Malcolm <dmalcolm@redhat.com>
30397 * diagnostic.c (print_any_cwe): Don't call get_cwe_url if URLs
30399 (print_option_information): Don't call get_option_url if URLs
30402 2020-02-17 Alexandre Oliva <oliva@adacore.com>
30404 * tree-emutls.c (new_emutls_decl, emutls_common_1): Complete
30405 handling of register_common-less targets.
30407 2020-02-17 Martin Liska <mliska@suse.cz>
30410 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar.
30412 2020-02-17 Martin Liska <mliska@suse.cz>
30414 PR translation/93755
30415 * config/rs6000/rs6000.c (rs6000_option_override_internal):
30418 2020-02-17 Martin Liska <mliska@suse.cz>
30421 * config/rx/elf.opt: Fix typo.
30423 2020-02-17 Richard Biener <rguenther@suse.de>
30426 * opts-global.c (print_ignored_options): Use inform and
30429 2020-02-17 Jiufu Guo <guojiufu@linux.ibm.com>
30432 * config/rs6000/rs6000.md (untyped_call): Add emit_clobber.
30434 2020-02-16 Uroš Bizjak <ubizjak@gmail.com>
30437 * config/i386/i386.md (atan2xf3): Swap operands 1 and 2.
30438 (atan2<mode>3): Update operand order in the call to gen_atan2xf3.
30440 2020-02-15 Jason Merrill <jason@redhat.com>
30442 * doc/invoke.texi (C Dialect Options): Add -std=c++20.
30444 2020-02-15 Jakub Jelinek <jakub@redhat.com>
30446 PR tree-optimization/93744
30447 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0,
30448 A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
30449 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): For GENERIC, make
30450 sure @2 in the first and @1 in the other patterns has no side-effects.
30452 2020-02-15 David Malcolm <dmalcolm@redhat.com>
30453 Bernd Edlinger <bernd.edlinger@hotmail.de>
30457 * config.in (DIAGNOSTICS_URLS_DEFAULT): New define.
30458 * configure.ac (--with-diagnostics-urls): New configuration
30459 option, based on --with-diagnostics-color.
30460 (DIAGNOSTICS_URLS_DEFAULT): New define.
30461 * config.h: Regenerate.
30462 * configure: Regenerate.
30463 * diagnostic.c (diagnostic_urls_init): Handle -1 for
30464 DIAGNOSTICS_URLS_DEFAULT from configure-time
30465 --with-diagnostics-urls=auto-if-env by querying for a GCC_URLS
30466 and TERM_URLS environment variable.
30467 * diagnostic-url.h (diagnostic_url_format): New enum type.
30468 (diagnostic_urls_enabled_p): rename to...
30469 (determine_url_format): ... this, and change return type.
30470 * diagnostic-color.c (parse_env_vars_for_urls): New helper function.
30471 (auto_enable_urls): Disable URLs on xfce4-terminal, gnome-terminal,
30472 the linux console, and mingw.
30473 (diagnostic_urls_enabled_p): rename to...
30474 (determine_url_format): ... this, and adjust.
30475 * pretty-print.h (pretty_printer::show_urls): rename to...
30476 (pretty_printer::url_format): ... this, and change to enum.
30477 * pretty-print.c (pretty_printer::pretty_printer,
30478 pp_begin_url, pp_end_url, test_urls): Adjust.
30479 * doc/install.texi (--with-diagnostics-urls): Document the new
30480 configuration option.
30481 (--with-diagnostics-color): Document the existing interaction
30482 with GCC_COLORS better.
30483 * doc/invoke.texi (-fdiagnostics-urls): Add GCC_URLS and TERM_URLS
30484 vindex reference. Update description of defaults based on the above.
30485 (-fdiagnostics-color): Update description of how -fdiagnostics-color
30486 interacts with GCC_COLORS.
30488 2020-02-14 Eric Botcazou <ebotcazou@adacore.com>
30491 * config/sparc/sparc.c (eligible_for_call_delay): Test HAVE_GNU_LD in
30492 conjunction with TARGET_GNU_TLS in early return.
30494 2020-02-14 Alexander Monakov <amonakov@ispras.ru>
30496 * rtlanal.c (rtx_cost): Handle a SET up front. Avoid division if
30497 the mode is not wider than UNITS_PER_WORD.
30499 2020-02-14 Martin Jambor <mjambor@suse.cz>
30501 PR tree-optimization/93516
30502 * tree-sra.c (propagate_subaccesses_from_rhs): Do not create
30503 access of the same type as the parent.
30504 (propagate_subaccesses_from_lhs): Likewise.
30506 2020-02-14 Hongtao Liu <hongtao.liu@intel.com>
30509 * config/i386/avx512vbmi2intrin.h
30510 (_mm512_shrdi_epi16, _mm512_mask_shrdi_epi16,
30511 _mm512_maskz_shrdi_epi16, _mm512_shrdi_epi32,
30512 _mm512_mask_shrdi_epi32, _mm512_maskz_shrdi_epi32,
30513 _m512_shrdi_epi64, _m512_mask_shrdi_epi64,
30514 _m512_maskz_shrdi_epi64, _mm512_shldi_epi16,
30515 _mm512_mask_shldi_epi16, _mm512_maskz_shldi_epi16,
30516 _mm512_shldi_epi32, _mm512_mask_shldi_epi32,
30517 _mm512_maskz_shldi_epi32, _mm512_shldi_epi64,
30518 _mm512_mask_shldi_epi64, _mm512_maskz_shldi_epi64): Fix typo
30519 of lacking a closing parenthesis.
30520 * config/i386/avx512vbmi2vlintrin.h
30521 (_mm256_shrdi_epi16, _mm256_mask_shrdi_epi16,
30522 _mm256_maskz_shrdi_epi16, _mm256_shrdi_epi32,
30523 _mm256_mask_shrdi_epi32, _mm256_maskz_shrdi_epi32,
30524 _m256_shrdi_epi64, _m256_mask_shrdi_epi64,
30525 _m256_maskz_shrdi_epi64, _mm256_shldi_epi16,
30526 _mm256_mask_shldi_epi16, _mm256_maskz_shldi_epi16,
30527 _mm256_shldi_epi32, _mm256_mask_shldi_epi32,
30528 _mm256_maskz_shldi_epi32, _mm256_shldi_epi64,
30529 _mm256_mask_shldi_epi64, _mm256_maskz_shldi_epi64,
30530 _mm_shrdi_epi16, _mm_mask_shrdi_epi16,
30531 _mm_maskz_shrdi_epi16, _mm_shrdi_epi32,
30532 _mm_mask_shrdi_epi32, _mm_maskz_shrdi_epi32,
30533 _mm_shrdi_epi64, _mm_mask_shrdi_epi64,
30534 _m_maskz_shrdi_epi64, _mm_shldi_epi16,
30535 _mm_mask_shldi_epi16, _mm_maskz_shldi_epi16,
30536 _mm_shldi_epi32, _mm_mask_shldi_epi32,
30537 _mm_maskz_shldi_epi32, _mm_shldi_epi64,
30538 _mm_mask_shldi_epi64, _mm_maskz_shldi_epi64): Ditto.
30540 2020-02-13 H.J. Lu <hongjiu.lu@intel.com>
30543 * config/i386/i386.c (ix86_trampoline_init): Skip ENDBR32 at
30544 the target function entry.
30546 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
30548 * common/config/arc/arc-common.c (arc_option_optimization_table):
30549 Disable if-conversion step when optimized for size.
30551 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
30553 * config/arc/arc.c (arc_conditional_register_usage): R0-R3 and
30554 R12-R15 are always in ARCOMPACT16_REGS register class.
30555 * config/arc/arc.opt (mq-class): Deprecate.
30556 * config/arc/constraint.md ("q"): Remove dependency on mq-class
30558 * doc/invoke.texi (mq-class): Update text.
30559 * common/config/arc/arc-common.c (arc_option_optimization_table):
30562 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
30564 * config/arc/arc.c (arc_insn_cost): New function.
30565 (TARGET_INSN_COST): Define.
30566 * config/arc/arc.md (cost): New attribute.
30567 (add_n): Use arc_nonmemory_operand.
30568 (ashlsi3_insn): Likewise, also update constraints.
30569 (ashrsi3_insn): Likewise.
30570 (rotrsi3): Likewise.
30571 (add_shift): Likewise.
30572 * config/arc/predicates.md (arc_nonmemory_operand): New predicate.
30574 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
30576 * config/arc/arc.md (mulsidi_600): Correctly select mlo/mhi
30578 (umulsidi_600): Likewise.
30580 2020-02-13 Jakub Jelinek <jakub@redhat.com>
30583 * config/i386/avx512bitalgintrin.h (_mm512_mask_popcnt_epi8,
30584 _mm512_mask_popcnt_epi16, _mm256_mask_popcnt_epi8,
30585 _mm256_mask_popcnt_epi16, _mm_mask_popcnt_epi8,
30586 _mm_mask_popcnt_epi16): Rename __B argument to __A and __A to __W,
30587 pass __A to the builtin followed by __W instead of __A followed by
30589 * config/i386/avx512vpopcntdqintrin.h (_mm512_mask_popcnt_epi32,
30590 _mm512_mask_popcnt_epi64): Likewise.
30591 * config/i386/avx512vpopcntdqvlintrin.h (_mm_mask_popcnt_epi32,
30592 _mm256_mask_popcnt_epi32, _mm_mask_popcnt_epi64,
30593 _mm256_mask_popcnt_epi64): Likewise.
30595 PR tree-optimization/93582
30596 * fold-const.h (shift_bytes_in_array_left,
30597 shift_bytes_in_array_right): Declare.
30598 * fold-const.c (shift_bytes_in_array_left,
30599 shift_bytes_in_array_right): New function, moved from
30600 gimple-ssa-store-merging.c, no longer static.
30601 * gimple-ssa-store-merging.c (shift_bytes_in_array): Move
30602 to gimple-ssa-store-merging.c and rename to shift_bytes_in_array_left.
30603 (shift_bytes_in_array_right): Move to gimple-ssa-store-merging.c.
30604 (encode_tree_to_bitpos): Use shift_bytes_in_array_left instead of
30605 shift_bytes_in_array.
30606 (verify_shift_bytes_in_array): Rename to ...
30607 (verify_shift_bytes_in_array_left): ... this. Use
30608 shift_bytes_in_array_left instead of shift_bytes_in_array.
30609 (store_merging_c_tests): Call verify_shift_bytes_in_array_left
30610 instead of verify_shift_bytes_in_array.
30611 * tree-ssa-sccvn.c (vn_reference_lookup_3): For native_encode_expr
30612 / native_interpret_expr where the store covers all needed bits,
30613 punt on PDP-endian, otherwise allow all involved offsets and sizes
30614 not to be byte-aligned.
30617 * config/i386/sse.md (k<code><mode>): Drop mode from last operand and
30618 use const_0_to_255_operand predicate instead of immediate_operand.
30619 (avx512dq_fpclass<mode><mask_scalar_merge_name>,
30620 avx512dq_vmfpclass<mode><mask_scalar_merge_name>,
30621 vgf2p8affineinvqb_<mode><mask_name>,
30622 vgf2p8affineqb_<mode><mask_name>): Drop mode from
30623 const_0_to_255_operand predicated operands.
30625 2020-02-12 Jeff Law <law@redhat.com>
30627 * config/h8300/h8300.md (comparison shortening peepholes): Use
30628 a mode iterator to merge the HImode and SImode peepholes.
30630 2020-02-12 Jakub Jelinek <jakub@redhat.com>
30632 PR middle-end/93663
30633 * real.c (is_even): Make static. Function comment fix.
30634 (is_halfway_below): Make static, don't assert R is not inf/nan,
30635 instead return false for those. Small formatting fixes.
30637 2020-02-12 Martin Sebor <msebor@redhat.com>
30639 PR middle-end/93646
30640 * tree-ssa-strlen.c (handle_builtin_stxncpy): Rename...
30641 (handle_builtin_stxncpy_strncat): ...to this. Change first argument.
30642 Issue only -Wstringop-overflow strncat, never -Wstringop-truncation.
30643 (strlen_check_and_optimize_call): Adjust callee name.
30645 2020-02-12 Jeff Law <law@redhat.com>
30647 * config/h8300/h8300.md (comparison shortening peepholes): Drop
30648 (and (xor)) variant. Combine other two into single peephole.
30650 2020-02-12 Wilco Dijkstra <wdijkstr@arm.com>
30652 PR rtl-optimization/93565
30653 * config/aarch64/aarch64.c (aarch64_rtx_costs): Add CTZ costs.
30655 2020-02-12 Wilco Dijkstra <wdijkstr@arm.com>
30657 * config/aarch64/aarch64-simd.md
30658 (aarch64_zero_extend<GPI:mode>_reduc_plus_<VDQV_E:mode>): New pattern.
30659 * config/aarch64/aarch64.md (popcount<mode>2): Use it instead of
30660 generating separate ADDV and zero_extend patterns.
30661 * config/aarch64/iterators.md (VDQV_E): New iterator.
30663 2020-02-12 Jeff Law <law@redhat.com>
30665 * config/h8300/h8300.md (cpymemsi, movmd): Remove dead patterns,
30666 expanders, splits, etc.
30667 (movmd_internal_<mode>, movmd splitter, movstr, movsd): Likewise.
30668 (stpcpy_internal_<mode>, stpcpy splitter): Likewise.
30669 (peepholes to convert QI/HI mode pushes to SI mode pushes): Likewise.
30670 * config/h8300/h8300.c (h8300_swap_into_er6): Remove unused function.
30671 (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise
30672 * config/h8300/h8300-protos.h (h8300_swap_into_er6): Remove unused
30673 function prototype.
30674 (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise.
30676 2020-02-12 Jakub Jelinek <jakub@redhat.com>
30679 * config/i386/sse.md (VI48F_256_DQ): New mode iterator.
30680 (avx512vl_vextractf128<mode>): Use it instead of VI48F_256. Remove
30681 TARGET_AVX512DQ from condition.
30682 (vec_extract_lo_<mode><mask_name>): Use <mask_avx512dq_condition>
30683 instead of <mask_mode512bit_condition> in condition. If
30684 TARGET_AVX512DQ is false, emit vextract*64x4 instead of
30686 (vec_extract_lo_<mode><mask_name>): Drop <mask_avx512dq_condition>
30689 2020-02-12 Kewen Lin <linkw@gcc.gnu.org>
30692 * ira.c (combine_and_move_insns): Skip multiple_sets def_insn.
30694 2020-02-12 Segher Boessenkool <segher@kernel.crashing.org>
30696 * config/rs6000/rs6000.c (rs6000_debug_print_mode): Don't use sizeof
30697 where strlen is more legible.
30698 (rs6000_builtin_vectorized_libmass): Ditto.
30699 (rs6000_print_options_internal): Ditto.
30701 2020-02-11 Martin Sebor <msebor@redhat.com>
30703 PR tree-optimization/93683
30704 * tree-ssa-alias.c (stmt_kills_ref_p): Avoid using LHS when not set.
30706 2020-02-11 Michael Meissner <meissner@linux.ibm.com>
30708 * config/rs6000/predicates.md (cint34_operand): Rename the
30709 -mprefixed-addr option to be -mprefixed.
30710 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Rename
30711 the -mprefixed-addr option to be -mprefixed.
30712 (OTHER_FUTURE_MASKS): Likewise.
30713 (POWERPC_MASKS): Likewise.
30714 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
30715 the -mprefixed-addr option to be -mprefixed. Change error
30716 messages to refer to -mprefixed.
30717 (num_insns_constant_gpr): Rename the -mprefixed-addr option to be
30719 (rs6000_legitimate_offset_address_p): Likewise.
30720 (rs6000_mode_dependent_address): Likewise.
30721 (rs6000_opt_masks): Change the spelling of "-mprefixed-addr" to be
30722 "-mprefixed" for target attributes and pragmas.
30723 (address_to_insn_form): Rename the -mprefixed-addr option to be
30725 (rs6000_adjust_insn_length): Likewise.
30726 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Rename the
30727 -mprefixed-addr option to be -mprefixed.
30728 (ASM_OUTPUT_OPCODE): Likewise.
30729 * config/rs6000/rs6000.md (prefixed insn attribute): Rename the
30730 -mprefixed-addr option to be -mprefixed.
30731 * config/rs6000/rs6000.opt (-mprefixed): Rename the
30732 -mprefixed-addr option to be prefixed. Change the option from
30733 being undocumented to being documented.
30734 * doc/invoke.texi (RS/6000 and PowerPC Options): Document the
30735 -mprefixed option. Update the -mpcrel documentation to mention
30738 2020-02-11 Hans-Peter Nilsson <hp@axis.com>
30740 * ira-conflicts.c (print_hard_reg_set): Correct output for sets
30741 including FIRST_PSEUDO_REGISTER - 1.
30742 * ira-color.c (print_hard_reg_set): Ditto.
30744 2020-02-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
30746 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
30747 (USTERNOP_QUALIFIERS): New define.
30748 (USMAC_LANE_QUADTUP_QUALIFIERS): New define.
30749 (SUMAC_LANE_QUADTUP_QUALIFIERS): New define.
30750 (arm_expand_builtin_args): Add case ARG_BUILTIN_LANE_QUADTUP_INDEX.
30751 (arm_expand_builtin_1): Add qualifier_lane_quadtup_index.
30752 * config/arm/arm_neon.h (vusdot_s32): New.
30753 (vusdot_lane_s32): New.
30754 (vusdotq_lane_s32): New.
30755 (vsudot_lane_s32): New.
30756 (vsudotq_lane_s32): New.
30757 * config/arm/arm_neon_builtins.def (usdot, usdot_lane,sudot_lane): New.
30758 * config/arm/iterators.md (DOTPROD_I8MM): New.
30759 (sup, opsuffix): Add <us/su>.
30760 * config/arm/neon.md (neon_usdot, <us/su>dot_lane: New.
30761 * config/arm/unspecs.md (UNSPEC_DOT_US, UNSPEC_DOT_SU): New.
30763 2020-02-11 Richard Biener <rguenther@suse.de>
30765 PR tree-optimization/93661
30766 PR tree-optimization/93662
30767 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
30768 tree_to_poly_int64.
30769 * tree-sra.c (get_access_for_expr): Likewise.
30771 2020-02-10 Jakub Jelinek <jakub@redhat.com>
30774 * config/i386/sse.md (VI_256_AVX2): New mode iterator.
30775 (vcond_mask_<mode><sseintvecmodelower>): Use it instead of VI_256.
30776 Change condition from TARGET_AVX2 to TARGET_AVX.
30778 2020-02-10 Iain Sandoe <iain@sandoe.co.uk>
30781 * config/darwin-c.c (darwin_cfstring_ref_p): Fix up last
30782 argument of strncmp.
30784 2020-02-10 Hans-Peter Nilsson <hp@axis.com>
30786 Try to generate zero-based comparisons.
30787 * config/cris/cris.c (cris_reduce_compare): New function.
30788 * config/cris/cris-protos.h (cris_reduce_compare): Add prototype.
30789 * config/cris/cris.md ("cbranch<mode>4", "cbranchdi4", "cstoredi4")
30790 (cstore<mode>4"): Apply cris_reduce_compare in expanders.
30792 2020-02-10 Richard Earnshaw <rearnsha@arm.com>
30795 * config/arm/arm.md (movsi_compare0): Allow SP as a source register
30796 in Thumb state and also as a destination in Arm state. Add T16
30799 2020-02-10 Hans-Peter Nilsson <hp@axis.com>
30801 * md.texi (Define Subst): Match closing paren in example.
30803 2020-02-10 Jakub Jelinek <jakub@redhat.com>
30807 * config/i386/i386.c (x86_64_elf_section_type_flags): Fix up last
30808 arguments of strncmp.
30810 2020-02-10 Feng Xue <fxue@os.amperecomputing.com>
30813 * ipa-cp.c (ipcp_lattice::add_value): Add source with same call edge
30814 but different source value.
30815 (adjust_callers_for_value_intersection): New function.
30816 (gather_edges_for_value): Adjust order of callers to let a
30817 non-self-recursive caller be the first element.
30818 (self_recursive_pass_through_p): Add a new parameter "simple", and
30819 check generalized self-recursive pass-through jump function.
30820 (self_recursive_agg_pass_through_p): Likewise.
30821 (find_more_scalar_values_for_callers_subset): Compute value from
30822 pass-through jump function for self-recursive.
30823 (intersect_with_plats): Cleanup previous implementation code for value
30824 itersection with self-recursive call edge.
30825 (intersect_with_agg_replacements): Likewise.
30826 (intersect_aggregates_with_edge): Deduce value from pass-through jump
30827 function for self-recursive call edge. Cleanup previous implementation
30828 code for value intersection with self-recursive call edge.
30829 (decide_whether_version_node): Remove dead callers and adjust order
30830 to let a non-self-recursive caller be the first element.
30832 2020-02-09 Uroš Bizjak <ubizjak@gmail.com>
30834 * recog.c: Move pass_split_before_sched2 code in front of
30835 pass_split_before_regstack.
30836 (pass_data_split_before_sched2): Rename pass to split3 from split4.
30837 (pass_data_split_before_regstack): Rename pass to split4 from split3.
30838 (rest_of_handle_split_before_sched2): Remove.
30839 (pass_split_before_sched2::execute): Unconditionally call
30841 (enable_split_before_sched2): New function.
30842 (pass_split_before_sched2::gate): Use enable_split_before_sched2.
30843 (pass_split_before_regstack::gate): Ditto.
30844 * config/nds32/nds32.c (nds32_split_double_word_load_store_p):
30845 Update name check for renamed split4 pass.
30846 * config/sh/sh.c (register_sh_passes): Update pass insertion
30847 point for renamed split4 pass.
30849 2020-02-09 Jakub Jelinek <jakub@redhat.com>
30851 * gimplify.c (gimplify_adjust_omp_clauses_1): Promote
30852 DECL_IN_CONSTANT_POOL variables into "omp declare target" to avoid
30853 copying them around between host and target.
30855 2020-02-08 Andrew Pinski <apinski@marvell.com>
30858 * config/aarch64/aarch64-simd.md (movmisalign<mode>): Check
30859 STRICT_ALIGNMENT also.
30861 2020-02-08 Jim Wilson <jimw@sifive.com>
30864 * config/riscv/riscv.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
30866 2020-02-08 Uroš Bizjak <ubizjak@gmail.com>
30867 Jakub Jelinek <jakub@redhat.com>
30870 * config/i386/i386.h (CALL_USED_REGISTERS): Make
30871 xmm16-xmm31 call-used even in 64-bit ms-abi.
30873 2020-02-07 Dennis Zhang <dennis.zhang@arm.com>
30875 * config/aarch64/aarch64-simd-builtins.def (simd_smmla): New entry.
30876 (simd_ummla, simd_usmmla): Likewise.
30877 * config/aarch64/aarch64-simd.md (aarch64_simd_<sur>mmlav16qi): New.
30878 * config/aarch64/arm_neon.h (vmmlaq_s32, vmmlaq_u32): New.
30879 (vusmmlaq_s32): New.
30881 2020-02-07 Richard Biener <rguenther@suse.de>
30883 PR middle-end/93519
30884 * tree-inline.c (fold_marked_statements): Do a PRE walk,
30885 skipping unreachable regions.
30886 (optimize_inline_calls): Skip folding stmts when we didn't
30889 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
30892 * config/i386/i386.c (function_arg_ms_64): Add a type argument.
30893 Don't return aggregates with only SFmode and DFmode in SSE
30895 (ix86_function_arg): Pass arg.type to function_arg_ms_64.
30897 2020-02-07 Jakub Jelinek <jakub@redhat.com>
30900 * config/rs6000/rs6000-logue.c
30901 (rs6000_emit_probe_stack_range_stack_clash): Always use gen_add3_insn,
30902 if it fails, move rs into end_addr and retry. Add
30903 REG_FRAME_RELATED_EXPR note whenever it returns more than one insn or
30904 the insn pattern doesn't describe well what exactly happens to
30908 * config/i386/predicates.md (avx_identity_operand): Remove.
30909 * config/i386/sse.md (*avx_vec_concat<mode>_1): Remove.
30910 (avx_<castmode><avxsizesuffix>_<castmode>,
30911 avx512f_<castmode><avxsizesuffix>_256<castmode>): Change patterns to
30912 a VEC_CONCAT of the operand and UNSPEC_CAST.
30913 (avx512f_<castmode><avxsizesuffix>_<castmode>): Change pattern to
30914 a VEC_CONCAT of VEC_CONCAT of the operand and UNSPEC_CAST with
30918 * config/i386/i386.c (ix86_lea_outperforms): Make sure to clear
30919 recog_data.insn if distance_non_agu_define changed it.
30921 2020-02-06 Michael Meissner <meissner@linux.ibm.com>
30924 * config/rs6000/rs6000.c (reg_to_non_prefixed): Before ISA 3.0
30925 we only had X-FORM (reg+reg) addressing for vectors. Also before
30926 ISA 3.0, we only had X-FORM addressing for scalars in the
30927 traditional Altivec registers.
30929 2020-02-06 <zhongyunde@huawei.com>
30930 Vladimir Makarov <vmakarov@redhat.com>
30932 PR rtl-optimization/93561
30933 * lra-assigns.c (spill_for): Check that tested hard regno is not out of
30934 hard register range.
30936 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
30938 * config/aarch64/aarch64.md (aarch64_movk<mode>): Add a type
30941 2020-02-06 Segher Boessenkool <segher@kernel.crashing.org>
30943 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Handle the case
30944 where the low and the high 32 bits are equal to each other specially,
30945 with an rldimi instruction.
30947 2020-02-06 Mihail Ionescu <mihail.ionescu@arm.com>
30949 * config/arm/arm-cpus.in: Set profile M for armv8.1-m.main.
30951 2020-02-06 Mihail Ionescu <mihail.ionescu@arm.com>
30953 * config/arm/arm-tables.opt: Regenerate.
30955 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
30958 * config/aarch64/aarch64-protos.h (aarch64_movk_shift): Declare.
30959 * config/aarch64/aarch64.c (aarch64_movk_shift): New function.
30960 * config/aarch64/aarch64.md (aarch64_movk<mode>): New pattern.
30962 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
30964 PR rtl-optimization/87763
30965 * config/aarch64/aarch64.md (*ashiftsi_extvdi_bfiz): New pattern.
30967 2020-02-06 Delia Burduv <delia.burduv@arm.com>
30969 * config/aarch64/aarch64-simd-builtins.def
30970 (bfmlaq): New built-in function.
30971 (bfmlalb): New built-in function.
30972 (bfmlalt): New built-in function.
30973 (bfmlalb_lane): New built-in function.
30974 (bfmlalt_lane): New built-in function.
30975 * config/aarch64/aarch64-simd.md
30976 (aarch64_bfmmlaqv4sf): New pattern.
30977 (aarch64_bfmlal<bt>v4sf): New pattern.
30978 (aarch64_bfmlal<bt>_lane<q>v4sf): New pattern.
30979 * config/aarch64/arm_neon.h (vbfmmlaq_f32): New intrinsic.
30980 (vbfmlalbq_f32): New intrinsic.
30981 (vbfmlaltq_f32): New intrinsic.
30982 (vbfmlalbq_lane_f32): New intrinsic.
30983 (vbfmlaltq_lane_f32): New intrinsic.
30984 (vbfmlalbq_laneq_f32): New intrinsic.
30985 (vbfmlaltq_laneq_f32): New intrinsic.
30986 * config/aarch64/iterators.md (BF_MLA): New int iterator.
30987 (bt): New int attribute.
30989 2020-02-06 Uroš Bizjak <ubizjak@gmail.com>
30991 * config/i386/i386.md (*pushtf): Emit "#" instead of
30992 calling gcc_unreachable in insn output.
30995 (*pushsf_rex64): Ditto for alternatives other than 1.
30996 (*pushsf): Ditto for alternatives other than 1.
30998 2020-02-06 Martin Liska <mliska@suse.cz>
31000 PR gcov-profile/91971
31001 PR gcov-profile/93466
31002 * coverage.c (coverage_init): Revert mangling of
31003 path into filename. It can lead to huge filename length.
31004 Creation of subfolders seem more natural.
31006 2020-02-06 Stam Markianos-Wright <stam.markianos-wright@arm.com>
31009 * config/arm/arm.c (arm_block_arith_comp_libfuncs_for_mode): New.
31010 (arm_init_libfuncs): Add BFmode support to block spurious BF libfuncs.
31011 Use arm_block_arith_comp_libfuncs_for_mode for HFmode.
31013 2020-02-06 Jakub Jelinek <jakub@redhat.com>
31016 * config/i386/predicates.md (avx_identity_operand): New predicate.
31017 * config/i386/sse.md (*avx_vec_concat<mode>_1): New
31018 define_insn_and_split.
31021 * omp-low.c (use_pointer_for_field): For nested constructs, also
31022 look for map clauses on target construct.
31023 (scan_omp_1_stmt) <case GIMPLE_OMP_TARGET>: Bump temporarily
31024 taskreg_nesting_level.
31027 * gimplify.c (gimplify_scan_omp_clauses) <do_notice>: If adding
31028 shared clause, call omp_notice_variable on outer context if any.
31030 2020-02-05 Jason Merrill <jason@redhat.com>
31033 * symtab.c (symtab_node::nonzero_address): A DECL_COMDAT decl has
31034 non-zero address even if weak and not yet defined.
31036 2020-02-05 Martin Sebor <msebor@redhat.com>
31038 PR tree-optimization/92765
31039 * gimple-fold.c (get_range_strlen_tree): Handle MEM_REF and PARM_DECL.
31040 * tree-ssa-strlen.c (compute_string_length): Remove.
31041 (determine_min_objsize): Remove.
31042 (get_len_or_size): Add an argument. Call get_range_strlen_dynamic.
31043 Avoid using type size as the upper bound on string length.
31044 (handle_builtin_string_cmp): Add an argument. Adjust.
31045 (strlen_check_and_optimize_call): Pass additional argument to
31046 handle_builtin_string_cmp.
31048 2020-02-05 Uroš Bizjak <ubizjak@gmail.com>
31050 * config/i386/i386.md (*pushdi2_rex64 peephole2): Remove.
31051 (*pushdi2_rex64 peephole2): Unconditionally split after
31052 epilogue_completed.
31053 (*ashl<mode>3_doubleword): Ditto.
31054 (*<shift_insn><mode>3_doubleword): Ditto.
31056 2020-02-05 Michael Meissner <meissner@linux.ibm.com>
31059 * config/rs6000/rs6000.c (get_vector_offset): Fix
31061 2020-02-05 Andrew Stubbs <ams@codesourcery.com>
31063 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Use / not space.
31065 2020-02-05 David Malcolm <dmalcolm@redhat.com>
31067 * doc/analyzer.texi
31068 (Special Functions for Debugging the Analyzer): Update description
31069 of __analyzer_dump_exploded_nodes.
31071 2020-02-05 Jakub Jelinek <jakub@redhat.com>
31074 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Only
31075 include sets and not clobbers in the vzeroupper pattern.
31076 * config/i386/sse.md (*avx_vzeroupper): Require in insn condition that
31077 the parallel has 17 (64-bit) or 9 (32-bit) elts.
31078 (*avx_vzeroupper_1): New define_insn_and_split.
31081 * recog.c (pass_split_after_reload::gate): For STACK_REGS targets,
31082 don't run when !optimize.
31083 (pass_split_before_regstack::gate): For STACK_REGS targets, run even
31086 2020-02-05 Richard Biener <rguenther@suse.de>
31088 PR middle-end/90648
31089 * genmatch.c (dt_node::gen_kids_1): Emit number of argument
31090 checks before matching calls.
31092 2020-02-05 Jakub Jelinek <jakub@redhat.com>
31094 * tree-ssa-alias.c (aliasing_matching_component_refs_p): Fix up
31095 function comment typo.
31097 PR middle-end/93555
31098 * omp-simd-clone.c (expand_simd_clones): If simd_clone_mangle or
31099 simd_clone_create failed when i == 0, adjust clone->nargs by
31102 2020-02-05 Martin Liska <mliska@suse.cz>
31105 * doc/invoke.texi: Document that one should
31106 not combine ASLR and -fpch.
31108 2020-02-04 Richard Biener <rguenther@suse.de>
31110 PR tree-optimization/93538
31111 * match.pd (addr EQ/NE ptr): Amend to handle &ptr->x EQ/NE ptr.
31113 2020-02-04 Richard Biener <rguenther@suse.de>
31115 PR tree-optimization/91123
31116 * tree-ssa-sccvn.c (vn_walk_cb_data::finish): New method.
31117 (vn_walk_cb_data::last_vuse): New member.
31118 (vn_walk_cb_data::saved_operands): Likewsie.
31119 (vn_walk_cb_data::~vn_walk_cb_data): Release saved_operands.
31120 (vn_walk_cb_data::push_partial_def): Use finish.
31121 (vn_reference_lookup_2): Update last_vuse and use finish if
31122 we've saved operands.
31123 (vn_reference_lookup_3): Use finish and update calls to
31124 push_partial_defs everywhere. When translating through
31125 memcpy or aggregate copies save off operands and alias-set.
31126 (eliminate_dom_walker::eliminate_stmt): Restore VN_WALKREWRITE
31127 operation for redundant store removal.
31129 2020-02-04 Richard Biener <rguenther@suse.de>
31131 PR tree-optimization/92819
31132 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
31133 generating more stmts than before.
31135 2020-02-04 Martin Liska <mliska@suse.cz>
31137 * config/arm/arm.c (arm_gen_far_branch): Move the function
31138 outside of selftests.
31140 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
31142 * config/rs6000/rs6000.c (adjust_vec_address_pcrel): New helper
31143 function to adjust PC-relative vector addresses.
31144 (rs6000_adjust_vec_address): Call adjust_vec_address_pcrel to
31145 handle vectors with PC-relative addresses.
31147 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
31149 * config/rs6000/rs6000.c (reg_to_non_prefixed): Add forward
31151 (hard_reg_and_mode_to_addr_mask): Delete.
31152 (rs6000_adjust_vec_address): If the original vector address
31153 was REG+REG or REG+OFFSET and the element is not zero, do the add
31154 of the elements in the original address before adding the offset
31155 for the vector element. Use address_to_insn_form to validate the
31156 address using the register being loaded, rather than guessing
31157 whether the address is a DS-FORM or DQ-FORM address.
31159 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
31161 * config/rs6000/rs6000.c (get_vector_offset): New helper function
31162 to calculate the offset in memory from the start of a vector of a
31163 particular element. Add code to keep the element number in
31164 bounds if the element number is variable.
31165 (rs6000_adjust_vec_address): Move calculation of offset of the
31166 vector element to get_vector_offset.
31167 (rs6000_split_vec_extract_var): Do not do the initial AND of
31168 element here, move the code to get_vector_offset.
31170 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
31172 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add some
31175 2020-02-03 Segher Boessenkool <segher@kernel.crashing.org>
31177 * config/rs6000/constraints.md: Improve documentation.
31179 2020-02-03 Richard Earnshaw <rearnsha@arm.com>
31182 * config/arm/t-arm: ($(srcdir)/config/arm/arm-tune.md)
31183 ($(srcdir)/config/arm/arm-tables.opt): Use move-if-change.
31185 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
31187 * config.gcc: Remove "carrizo" support.
31188 * config/gcn/gcn-opts.h (processor_type): Likewise.
31189 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Likewise.
31190 * config/gcn/gcn.opt (gpu_type): Likewise.
31191 * config/gcn/t-omp-device: Likewise.
31193 2020-02-03 Stam Markianos-Wright <stam.markianos-wright@arm.com>
31196 * config/arm/arm-protos.h: New function arm_gen_far_branch prototype.
31197 * config/arm/arm.c (arm_gen_far_branch): New function
31198 arm_gen_far_branch.
31199 * config/arm/arm.md: Update b<cond> for Thumb2 range checks.
31201 2020-02-03 Julian Brown <julian@codesourcery.com>
31202 Tobias Burnus <tobias@codesourcery.com>
31204 * doc/invoke.texi: Update mention of OpenACC version to 2.6.
31206 2020-02-03 Jakub Jelinek <jakub@redhat.com>
31209 * config/s390/s390.md (popcounthi2_z196): Fix up expander to emit
31210 valid RTL to sum up the lowest and second lowest bytes of the popcnt
31213 2020-02-02 Vladimir Makarov <vmakarov@redhat.com>
31215 PR rtl-optimization/91333
31216 * ira-color.c (struct allocno_color_data): Add member
31218 (init_allocno_threads): Set the member up.
31219 (bucket_allocno_compare_func): Add compare hard reg
31222 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
31224 nios2: Support for GOT-relative DW_EH_PE_datarel encoding.
31226 * configure.ac [nios2-*-*]: Check HAVE_AS_NIOS2_GOTOFF_RELOCATION.
31227 * config.in: Regenerated.
31228 * configure: Regenerated.
31229 * config/nios2/nios2.h (ASM_PREFERRED_EH_DATA_FORMAT): Fix handling
31230 for PIC when HAVE_AS_NIOS2_GOTOFF_RELOCATION.
31231 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New.
31233 2020-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
31235 * configure: Regenerate.
31237 2020-01-31 Vladimir Makarov <vmakarov@redhat.com>
31239 PR rtl-optimization/91333
31240 * ira-color.c (bucket_allocno_compare_func): Move conflict hard
31241 reg preferences comparison up.
31243 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
31245 * config/aarch64/aarch64.h (TARGET_SVE_BF16): New macro.
31246 * config/aarch64/aarch64-sve-builtins-sve2.h (svcvtnt): Move to
31247 aarch64-sve-builtins-base.h.
31248 * config/aarch64/aarch64-sve-builtins-sve2.cc (svcvtnt): Move to
31249 aarch64-sve-builtins-base.cc.
31250 * config/aarch64/aarch64-sve-builtins-base.h (svbfdot, svbfdot_lane)
31251 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
31252 (svcvtnt): Declare.
31253 * config/aarch64/aarch64-sve-builtins-base.cc (svbfdot, svbfdot_lane)
31254 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
31255 (svcvtnt): New functions.
31256 * config/aarch64/aarch64-sve-builtins-base.def (svbfdot, svbfdot_lane)
31257 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
31258 (svcvtnt): New functions.
31259 (svcvt): Add a form that converts f32 to bf16.
31260 * config/aarch64/aarch64-sve-builtins-shapes.h (ternary_bfloat)
31261 (ternary_bfloat_lane, ternary_bfloat_lanex2, ternary_bfloat_opt_n):
31263 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_element_type):
31264 Treat B as bfloat16_t.
31265 (ternary_bfloat_lane_base): New class.
31266 (ternary_bfloat_def): Likewise.
31267 (ternary_bfloat): New shape.
31268 (ternary_bfloat_lane_def): New class.
31269 (ternary_bfloat_lane): New shape.
31270 (ternary_bfloat_lanex2_def): New class.
31271 (ternary_bfloat_lanex2): New shape.
31272 (ternary_bfloat_opt_n_def): New class.
31273 (ternary_bfloat_opt_n): New shape.
31274 * config/aarch64/aarch64-sve-builtins.cc (TYPES_cvt_bfloat): New macro.
31275 * config/aarch64/aarch64-sve.md (@aarch64_sve_<sve_fp_op>vnx4sf)
31276 (@aarch64_sve_<sve_fp_op>_lanevnx4sf): New patterns.
31277 (@aarch64_sve_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>)
31278 (@cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
31279 (*cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
31280 (@aarch64_sve_cvtnt<VNx8BF_ONLY:mode>): Likewise.
31281 * config/aarch64/aarch64-sve2.md (@aarch64_sve2_cvtnt<mode>): Key
31282 the pattern off the narrow mode instead of the wider one.
31283 * config/aarch64/iterators.md (VNx8BF_ONLY): New mode iterator.
31284 (UNSPEC_BFMLALB, UNSPEC_BFMLALT, UNSPEC_BFMMLA): New unspecs.
31285 (sve_fp_op): Handle them.
31286 (SVE_BFLOAT_TERNARY_LONG): New int itertor.
31287 (SVE_BFLOAT_TERNARY_LONG_LANE): Likewise.
31289 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
31291 * config/aarch64/arm_sve.h: Include arm_bf16.h.
31292 * config/aarch64/aarch64-modes.def (BF): Move definition before
31293 VECTOR_MODES. Remove separate VECTOR_MODES for V4BF and V8BF.
31294 (SVE_MODES): Handle BF modes.
31295 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle
31297 (aarch64_full_sve_mode): Likewise.
31298 * config/aarch64/iterators.md (SVE_STRUCT): Add VNx16BF, VNx24BF
31300 (SVE_FULL, SVE_FULL_HSD, SVE_ALL): Add VNx8BF.
31301 (Vetype, Vesize, Vctype, VEL, Vel, VEL_INT, V128, v128, vwcore)
31302 (V_INT_EQUIV, v_int_equiv, V_FP_EQUIV, v_fp_equiv, vector_count)
31303 (insn_length, VSINGLE, vsingle, VPRED, vpred, VDOUBLE): Handle the
31305 * config/aarch64/aarch64-sve-builtins.h (TYPE_bfloat): New
31307 * config/aarch64/aarch64-sve-builtins.cc (TYPES_all_arith): New macro.
31308 (TYPES_all_data): Add bf16.
31309 (TYPES_reinterpret1, TYPES_reinterpret): Likewise.
31310 (register_tuple_type): Increase buffer size.
31311 * config/aarch64/aarch64-sve-builtins.def (svbfloat16_t): New type.
31312 (bf16): New type suffix.
31313 * config/aarch64/aarch64-sve-builtins-base.def (svabd, svadd, svaddv)
31314 (svcmpeq, svcmpge, svcmpgt, svcmple, svcmplt, svcmpne, svmad, svmax)
31315 (svmaxv, svmin, svminv, svmla, svmls, svmsb, svmul, svsub, svsubr):
31316 Change type from all_data to all_arith.
31317 * config/aarch64/aarch64-sve-builtins-sve2.def (svaddp, svmaxp)
31318 (svminp): Likewise.
31320 2020-01-31 Dennis Zhang <dennis.zhang@arm.com>
31321 Matthew Malcomson <matthew.malcomson@arm.com>
31322 Richard Sandiford <richard.sandiford@arm.com>
31324 * doc/invoke.texi (f32mm): Document new AArch64 -march= extension.
31325 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
31326 __ARM_FEATURE_SVE_MATMUL_INT8, __ARM_FEATURE_SVE_MATMUL_FP32 and
31327 __ARM_FEATURE_SVE_MATMUL_FP64 as appropriate. Don't define
31328 __ARM_FEATURE_MATMUL_FP64.
31329 * config/aarch64/aarch64-option-extensions.def (fp, simd, fp16)
31330 (sve): Add AARCH64_FL_F32MM to the list of extensions that should
31331 be disabled at the same time.
31332 (f32mm): New extension.
31333 * config/aarch64/aarch64.h (AARCH64_FL_F32MM): New macro.
31334 (AARCH64_FL_F64MM): Bump to the next bit up.
31335 (AARCH64_ISA_F32MM, TARGET_SVE_I8MM, TARGET_F32MM, TARGET_SVE_F32MM)
31336 (TARGET_SVE_F64MM): New macros.
31337 * config/aarch64/iterators.md (SVE_MATMULF): New mode iterator.
31338 (UNSPEC_FMMLA, UNSPEC_SMATMUL, UNSPEC_UMATMUL, UNSPEC_USMATMUL)
31339 (UNSPEC_TRN1Q, UNSPEC_TRN2Q, UNSPEC_UZP1Q, UNSPEC_UZP2Q, UNSPEC_ZIP1Q)
31340 (UNSPEC_ZIP2Q): New unspeccs.
31341 (DOTPROD_US_ONLY, PERMUTEQ, MATMUL, FMMLA): New int iterators.
31342 (optab, sur, perm_insn): Handle the new unspecs.
31343 (sve_fp_op): Handle UNSPEC_FMMLA. Resort.
31344 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use
31345 TARGET_SVE_F64MM instead of separate tests.
31346 (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod<vsi2qi>): New pattern.
31347 (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod_lane<vsi2qi>): Likewise.
31348 (@aarch64_sve_add_<MATMUL:optab><vsi2qi>): Likewise.
31349 (@aarch64_sve_<FMMLA:sve_fp_op><mode>): Likewise.
31350 (@aarch64_sve_<PERMUTEQ:optab><mode>): Likewise.
31351 * config/aarch64/aarch64-sve-builtins.cc (TYPES_s_float): New macro.
31352 (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): Use it.
31353 (TYPES_s_signed): New macro.
31354 (TYPES_s_integer): Use it.
31355 (TYPES_d_float): New macro.
31356 (TYPES_d_data): Use it.
31357 * config/aarch64/aarch64-sve-builtins-shapes.h (mmla): Declare.
31358 (ternary_intq_uintq_lane, ternary_intq_uintq_opt_n, ternary_uintq_intq)
31359 (ternary_uintq_intq_lane, ternary_uintq_intq_opt_n): Likewise.
31360 * config/aarch64/aarch64-sve-builtins-shapes.cc (mmla_def): New class.
31361 (svmmla): New shape.
31362 (ternary_resize2_opt_n_base): Add TYPE_CLASS2 and TYPE_CLASS3
31363 template parameters.
31364 (ternary_resize2_lane_base): Likewise.
31365 (ternary_resize2_base): New class.
31366 (ternary_qq_lane_base): Likewise.
31367 (ternary_intq_uintq_lane_def): Likewise.
31368 (ternary_intq_uintq_lane): New shape.
31369 (ternary_intq_uintq_opt_n_def): New class
31370 (ternary_intq_uintq_opt_n): New shape.
31371 (ternary_qq_lane_def): Inherit from ternary_qq_lane_base.
31372 (ternary_uintq_intq_def): New class.
31373 (ternary_uintq_intq): New shape.
31374 (ternary_uintq_intq_lane_def): New class.
31375 (ternary_uintq_intq_lane): New shape.
31376 (ternary_uintq_intq_opt_n_def): New class.
31377 (ternary_uintq_intq_opt_n): New shape.
31378 * config/aarch64/aarch64-sve-builtins-base.h (svmmla, svsudot)
31379 (svsudot_lane, svtrn1q, svtrn2q, svusdot, svusdot_lane, svusmmla)
31380 (svuzp1q, svuzp2q, svzip1q, svzip2q): Declare.
31381 * config/aarch64/aarch64-sve-builtins-base.cc (svdot_lane_impl):
31383 (svdotprod_lane_impl): ...this new class.
31384 (svmmla_impl, svusdot_impl): New classes.
31385 (svdot_lane): Update to use svdotprod_lane_impl.
31386 (svmmla, svsudot, svsudot_lane, svtrn1q, svtrn2q, svusdot)
31387 (svusdot_lane, svusmmla, svuzp1q, svuzp2q, svzip1q, svzip2q): New
31389 * config/aarch64/aarch64-sve-builtins-base.def (svmmla): New base
31390 function, with no types defined.
31391 (svmmla, svusmmla, svsudot, svsudot_lane, svusdot, svusdot_lane): New
31392 AARCH64_FL_I8MM functions.
31393 (svmmla): New AARCH64_FL_F32MM function.
31394 (svld1ro): Depend only on AARCH64_FL_F64MM, not on AARCH64_FL_V8_6.
31395 (svmmla, svtrn1q, svtrn2q, svuz1q, svuz2q, svzip1q, svzip2q): New
31396 AARCH64_FL_F64MM function.
31397 (REQUIRED_EXTENSIONS):
31399 2020-01-31 Andrew Stubbs <ams@codesourcery.com>
31401 * config/gcn/gcn-valu.md (addv64di3_exec): Allow one '0' in each
31404 2020-01-31 Uroš Bizjak <ubizjak@gmail.com>
31406 * config/i386/i386.md (*movoi_internal_avx): Do not check for
31407 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. Remove MODE_V8SF handling.
31408 (*movti_internal): Do not check for
31409 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
31410 (*movtf_internal): Move check for TARGET_SSE2 and size optimization
31411 just after check for TARGET_AVX.
31412 (*movdf_internal): Ditto.
31413 * config/i386/mmx.md (*mov<mode>_internal): Do not check for
31414 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
31415 * config/i386/sse.md (mov<mode>_internal): Only check
31416 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL with V2DFmode. Move check
31417 for TARGET_SSE2 and size optimization just after check for TARGET_AVX.
31418 (<sse>_andnot<mode>3<mask_name>): Move check for
31419 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL after check for TARGET_AVX.
31420 (<code><mode>3<mask_name>): Ditto.
31421 (*andnot<mode>3): Ditto.
31422 (*andnottf3): Ditto.
31423 (*<code><mode>3): Ditto.
31424 (*<code>tf3): Ditto.
31425 (*andnot<VI:mode>3): Remove
31426 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling.
31427 (<mask_codefor><code><VI48_AVX_AVX512F:mode>3<mask_name>): Ditto.
31428 (*<code><VI12_AVX_AVX512F:mode>3): Ditto.
31429 (sse4_1_blendv<ssemodesuffix>): Ditto.
31430 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL):
31431 Explain that tune applies to 128bit instructions only.
31433 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
31435 * config/gcn/mkoffload.c (process_asm): Add sgpr_count and vgpr_count
31436 to definition of hsa_kernel_description. Parse assembly to find SGPR
31437 and VGPR count of kernel and store in hsa_kernel_description.
31439 2020-01-31 Tamar Christina <tamar.christina@arm.com>
31441 PR rtl-optimization/91838
31442 * simplify-rtx.c (simplify_binary_operation_1): Update LSHIFTRT case
31443 to truncate if allowed or reject combination.
31445 2020-01-31 Andrew Stubbs <ams@codesourcery.com>
31447 * tree-ssa-loop-ivopts.c (get_iv): Use sizetype for zero-step.
31448 (find_inv_vars_cb): Likewise.
31450 2020-01-31 David Malcolm <dmalcolm@redhat.com>
31452 * calls.c (special_function_p): Split out the check for DECL_NAME
31453 being non-NULL and fndecl being extern at file scope into a
31454 new maybe_special_function_p and call it. Drop check for fndecl
31455 being non-NULL that was after a usage of DECL_NAME (fndecl).
31456 * tree.h (maybe_special_function_p): New inline function.
31458 2020-01-30 Andrew Stubbs <ams@codesourcery.com>
31460 * config/gcn/gcn-valu.md (gather<mode>_exec): Move contents ...
31461 (mask_gather_load<mode>): ... here, and zero-initialize the
31463 (maskload<mode>di): Zero-initialize the destination.
31464 * config/gcn/gcn.c:
31466 2020-01-30 David Malcolm <dmalcolm@redhat.com>
31469 * doc/analyzer.texi (Limitations): Note that constraints on
31470 floating-point values are currently ignored.
31472 2020-01-30 Jakub Jelinek <jakub@redhat.com>
31475 * symtab.c (symtab_node::noninterposable_alias): If localalias
31476 already exists, but is not usable, append numbers after it until
31477 a unique name is found. Formatting fix.
31479 PR middle-end/93505
31480 * combine.c (simplify_comparison) <case ROTATE>: Punt on out of range
31483 2020-01-30 Andrew Stubbs <ams@codesourcery.com>
31485 * config/gcn/gcn.c (print_operand): Handle LTGT.
31486 * config/gcn/predicates.md (gcn_fp_compare_operator): Allow ltgt.
31488 2020-01-30 Richard Biener <rguenther@suse.de>
31490 * tree-pretty-print.c (dump_generic_node): Wrap VECTOR_CST
31491 and CONSTRUCTOR in _Literal (type) with TDF_GIMPLE.
31493 2020-01-30 John David Anglin <danglin@gcc.gnu.org>
31495 * config/pa/pa.c (pa_elf_select_rtx_section): Place function pointers
31496 without a DECL in .data.rel.ro.local.
31498 2020-01-30 Jakub Jelinek <jakub@redhat.com>
31501 * config/arm/arm.md (uaddvdi4): Actually emit what gen_uaddvsi4
31505 * config/i386/sse.md
31506 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext): Renamed to ...
31507 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext): ... this. Use
31508 any_extend code iterator instead of always zero_extend.
31509 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_lt): Renamed to ...
31510 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_lt): ... this.
31511 Use any_extend code iterator instead of always zero_extend.
31512 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_shift): Renamed to ...
31513 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_shift): ... this.
31514 Use any_extend code iterator instead of always zero_extend.
31515 (*sse2_pmovmskb_ext): New define_insn.
31516 (*sse2_pmovmskb_ext_lt): New define_insn_and_split.
31519 * config/i386/i386.md (*popcountsi2_zext): New define_insn_and_split.
31520 (*popcountsi2_zext_falsedep): New define_insn.
31522 2020-01-30 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
31524 * config.in: Regenerated.
31525 * configure: Regenerated.
31527 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
31530 * config/gcn/gcn-hsa.h (ASM_SPEC): Add -mattr=-code-object-v3 as
31531 LLVM's assembler changed the default in version 9.
31533 2020-01-24 Jeff Law <law@redhat.com>
31535 PR tree-optimization/89689
31536 * builtins.def (BUILT_IN_OBJECT_SIZE): Make it const rather than pure.
31538 2020-01-29 Richard Sandiford <richard.sandiford@arm.com>
31542 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31544 PR rtl-optimization/87763
31545 * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
31546 simplification to handle subregs as well as bare regs.
31547 * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
31549 2020-01-29 Joel Hutton <Joel.Hutton@arm.com>
31552 * ira.c (ira): Revert use of simplified LRA algorithm.
31554 2020-01-29 Martin Jambor <mjambor@suse.cz>
31556 PR tree-optimization/92706
31557 * tree-sra.c (struct access): Fields first_link, last_link,
31558 next_queued and grp_queued renamed to first_rhs_link, last_rhs_link,
31559 next_rhs_queued and grp_rhs_queued respectively, new fields
31560 first_lhs_link, last_lhs_link, next_lhs_queued and grp_lhs_queued.
31561 (struct assign_link): Field next renamed to next_rhs, new field
31562 next_lhs. Updated comment.
31563 (work_queue_head): Renamed to rhs_work_queue_head.
31564 (lhs_work_queue_head): New variable.
31565 (add_link_to_lhs): New function.
31566 (relink_to_new_repr): Also relink LHS lists.
31567 (add_access_to_work_queue): Renamed to add_access_to_rhs_work_queue.
31568 (add_access_to_lhs_work_queue): New function.
31569 (pop_access_from_work_queue): Renamed to
31570 pop_access_from_rhs_work_queue.
31571 (pop_access_from_lhs_work_queue): New function.
31572 (build_accesses_from_assign): Also add links to LHS lists and to LHS
31574 (child_would_conflict_in_lacc): Renamed to
31575 child_would_conflict_in_acc. Adjusted parameter names.
31576 (create_artificial_child_access): New parameter set_grp_read, use it.
31577 (subtree_mark_written_and_enqueue): Renamed to
31578 subtree_mark_written_and_rhs_enqueue.
31579 (propagate_subaccesses_across_link): Renamed to
31580 propagate_subaccesses_from_rhs.
31581 (propagate_subaccesses_from_lhs): New function.
31582 (propagate_all_subaccesses): Also propagate subaccesses from LHSs to
31585 2020-01-29 Martin Jambor <mjambor@suse.cz>
31587 PR tree-optimization/92706
31588 * tree-sra.c (struct access): Adjust comment of
31589 grp_total_scalarization.
31590 (find_access_in_subtree): Look for single children spanning an entire
31592 (scalarizable_type_p): Allow register accesses, adjust callers.
31593 (completely_scalarize): Remove function.
31594 (scalarize_elem): Likewise.
31595 (create_total_scalarization_access): Likewise.
31596 (sort_and_splice_var_accesses): Do not track total scalarization
31598 (analyze_access_subtree): New parameter totally, adjust to new meaning
31599 of grp_total_scalarization.
31600 (analyze_access_trees): Pass new parameter to analyze_access_subtree.
31601 (can_totally_scalarize_forest_p): New function.
31602 (create_total_scalarization_access): Likewise.
31603 (create_total_access_and_reshape): Likewise.
31604 (total_should_skip_creating_access): Likewise.
31605 (totally_scalarize_subtree): Likewise.
31606 (analyze_all_variable_accesses): Perform total scalarization after
31607 subaccess propagation using the new functions above.
31608 (initialize_constant_pool_replacements): Output initializers by
31609 traversing the access tree.
31611 2020-01-29 Martin Jambor <mjambor@suse.cz>
31613 * tree-sra.c (verify_sra_access_forest): New function.
31614 (verify_all_sra_access_forests): Likewise.
31615 (create_artificial_child_access): Set parent.
31616 (analyze_all_variable_accesses): Call the verifier.
31618 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31620 * cgraph.c (cgraph_edge::resolve_speculation): Only lookup direct edge
31621 if called on indirect edge.
31622 (cgraph_edge::redirect_call_stmt_to_callee): Lookup indirect edge of
31623 speculative call if needed.
31625 2020-01-29 Richard Biener <rguenther@suse.de>
31627 PR tree-optimization/93428
31628 * tree-vect-slp.c (vect_build_slp_tree_2): Compute the load
31629 permutation when the load node is created.
31630 (vect_analyze_slp_instance): Re-use it here.
31632 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31634 * ipa-prop.c (update_indirect_edges_after_inlining): Fix warning.
31636 2020-01-28 Vladimir Makarov <vmakarov@redhat.com>
31638 PR rtl-optimization/93272
31639 * ira-lives.c (process_out_of_region_eh_regs): New function.
31640 (process_bb_node_lives): Call it.
31642 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31644 * coverage.c (read_counts_file): Make error message lowercase.
31646 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31648 * profile-count.c (profile_quality_display_names): Fix ordering.
31650 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31653 * cgraph.c (cgraph_add_edge_to_call_site_hash): Update call site
31654 hash only when edge is first within the sequence.
31655 (cgraph_edge::set_call_stmt): Update handling of speculative calls.
31656 (symbol_table::create_edge): Do not set target_prob.
31657 (cgraph_edge::remove_caller): Watch for speculative calls when updating
31658 the call site hash.
31659 (cgraph_edge::make_speculative): Drop target_prob parameter.
31660 (cgraph_edge::speculative_call_info): Remove.
31661 (cgraph_edge::first_speculative_call_target): New member function.
31662 (update_call_stmt_hash_for_removing_direct_edge): New function.
31663 (cgraph_edge::resolve_speculation): Rewrite to new API.
31664 (cgraph_edge::speculative_call_for_target): New member function.
31665 (cgraph_edge::make_direct): Rewrite to new API; fix handling of
31666 multiple speculation targets.
31667 (cgraph_edge::redirect_call_stmt_to_callee): Likewise; fix updating
31669 (verify_speculative_call): Verify that targets form an interval.
31670 * cgraph.h (cgraph_edge::speculative_call_info): Remove.
31671 (cgraph_edge::first_speculative_call_target): New member function.
31672 (cgraph_edge::next_speculative_call_target): New member function.
31673 (cgraph_edge::speculative_call_target_ref): New member function.
31674 (cgraph_edge;:speculative_call_indirect_edge): New member funtion.
31675 (cgraph_edge): Remove target_prob.
31676 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
31677 Fix handling of speculative calls.
31678 * ipa-devirt.c (ipa_devirt): Fix handling of speculative cals.
31679 * ipa-fnsummary.c (analyze_function_body): Likewise.
31680 * ipa-inline.c (speculation_useful_p): Use new speculative call API.
31681 * ipa-profile.c (dump_histogram): Fix formating.
31682 (ipa_profile_generate_summary): Watch for overflows.
31683 (ipa_profile): Do not require probablity to be 1/2; update to new API.
31684 * ipa-prop.c (ipa_make_edge_direct_to_target): Update to new API.
31685 (update_indirect_edges_after_inlining): Update to new API.
31686 * ipa-utils.c (ipa_merge_profiles): Rewrite merging of speculative call
31688 * profile-count.h: (profile_probability::adjusted): New.
31689 * tree-inline.c (copy_bb): Update to new speculative call API; fix
31690 updating of profile.
31691 * value-prof.c (gimple_ic_transform): Rename to ...
31692 (dump_ic_profile): ... this one; update dumping.
31693 (stream_in_histogram_value): Fix formating.
31694 (gimple_value_profile_transformations): Update.
31696 2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
31699 * config/i386/i386.md (*movoi_internal_avx): Remove
31700 TARGET_SSE_TYPELESS_STORES check.
31701 (*movti_internal): Prefer TARGET_AVX over
31702 TARGET_SSE_TYPELESS_STORES.
31703 (*movtf_internal): Likewise.
31704 * config/i386/sse.md (mov<mode>_internal): Prefer TARGET_AVX over
31705 TARGET_SSE_TYPELESS_STORES. Remove "<MODE_SIZE> == 16" check
31706 from TARGET_SSE_TYPELESS_STORES.
31708 2020-01-28 David Malcolm <dmalcolm@redhat.com>
31710 * diagnostic-core.h (warning_at): Rename overload to...
31711 (warning_meta): ...this.
31712 (emit_diagnostic_valist): Delete decl of overload taking
31713 diagnostic_metadata.
31714 * diagnostic.c (emit_diagnostic_valist): Likewise for defn.
31715 (warning_at): Rename overload taking diagnostic_metadata to...
31716 (warning_meta): ...this.
31718 2020-01-28 Richard Biener <rguenther@suse.de>
31720 PR tree-optimization/93439
31721 * tree-parloops.c (create_loop_fn): Move clique bookkeeping...
31722 * tree-cfg.c (move_sese_region_to_fn): ... here.
31723 (verify_types_in_gimple_reference): Verify used cliques are
31726 2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
31729 * config/i386/i386-options.c (set_ix86_tune_features): Add an
31730 argument of a pointer to struct gcc_options and pass it to
31731 parse_mtune_ctrl_str.
31732 (ix86_function_specific_restore): Pass opts to
31733 set_ix86_tune_features.
31734 (ix86_option_override_internal): Likewise.
31735 (parse_mtune_ctrl_str): Add an argument of a pointer to struct
31736 gcc_options and use it for x_ix86_tune_ctrl_string.
31738 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31740 PR rtl-optimization/87763
31741 * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
31742 simplification to handle subregs as well as bare regs.
31743 * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
31745 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31747 * tree-vect-loop.c (vectorizable_reduction): Fail gracefully
31748 for reduction chains that (now) include a call.
31750 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31752 PR tree-optimization/92822
31753 * tree-ssa-forwprop.c (simplify_vector_constructor): When filling
31754 out the don't-care elements of a vector whose significant elements
31755 are duplicates, make the don't-care elements duplicates too.
31757 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31759 PR tree-optimization/93434
31760 * tree-predcom.c (split_data_refs_to_components): Record which
31761 components have had aliasing loads removed. Prevent store-store
31762 commoning for all such components.
31764 2020-01-28 Jakub Jelinek <jakub@redhat.com>
31767 * config/i386/i386.c (ix86_fold_builtin) <do_shift>: If mask is not
31768 -1 or is_vshift is true, use new_vector with number of elts npatterns
31769 rather than new_unary_operation.
31771 PR tree-optimization/93454
31772 * gimple-fold.c (fold_array_ctor_reference): Perform
31773 elt_size.to_uhwi () just once, instead of calling it in every
31774 iteration. Punt if that value is above size of the temporary
31775 buffer. Decrease third native_encode_expr argument when
31776 bufoff + elt_sz is above size of buf.
31778 2020-01-27 Joseph Myers <joseph@codesourcery.com>
31780 * config/mips/mips.c (mips_declare_object_name)
31781 [USE_GNU_UNIQUE_OBJECT]: Support use of gnu_unique_object.
31783 2020-01-27 Martin Liska <mliska@suse.cz>
31785 PR gcov-profile/93403
31786 * tree-profile.c (gimple_init_gcov_profiler): Generate
31787 both __gcov_indirect_call_profiler_v4 and
31788 __gcov_indirect_call_profiler_v4_atomic.
31790 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31793 * config/aarch64/aarch64-simd.md (aarch64_get_half<mode>): New
31795 (@aarch64_split_simd_mov<mode>): Use it.
31796 (aarch64_simd_mov_from_<mode>low): Add a GPR alternative.
31797 Leave the vec_extract patterns to handle 2-element vectors.
31798 (aarch64_simd_mov_from_<mode>high): Likewise.
31799 (vec_extract<VQMOV_NO2E:mode><Vhalf>): New expander.
31800 (vec_extractv2dfv1df): Likewise.
31802 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31804 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Match
31805 jump conditions for *compare_condjump<GPI:mode>.
31807 2020-01-27 David Malcolm <dmalcolm@redhat.com>
31810 * digraph.cc (test_edge::test_edge): Specify template for base
31813 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31815 * config/arc/arc.c (arc_rtx_costs): Update mul64 cost.
31817 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31819 * config/arc/arc-protos.h (gen_mlo): Remove.
31820 (gen_mhi): Likewise.
31821 * config/arc/arc.c (AUX_MULHI): Define.
31822 (arc_must_save_reister): Special handling for r58/59.
31823 (arc_compute_frame_size): Consider mlo/mhi registers.
31824 (arc_save_callee_saves): Emit fp/sp move only when emit_move
31826 (arc_conditional_register_usage): Remove TARGET_BIG_ENDIAN from
31827 mlo/mhi name selection.
31828 (arc_restore_callee_saves): Don't early restore blink when ISR.
31829 (arc_expand_prologue): Add mlo/mhi saving.
31830 (arc_expand_epilogue): Add mlo/mhi restoring.
31833 * config/arc/arc.h (DBX_REGISTER_NUMBER): Correct register
31834 numbering when MUL64 option is used.
31835 (DWARF2_FRAME_REG_OUT): Define.
31836 * config/arc/arc.md (arc600_stall): New pattern.
31837 (VUNSPEC_ARC_ARC600_STALL): Define.
31838 (mulsi64): Use correct mlo/mhi registers.
31839 (mulsi_600): Clean it up.
31840 * config/arc/predicates.md (mlo_operand): Remove any dependency on
31842 (mhi_operand): Likewise.
31844 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31845 Petro Karashchenko <petro.karashchenko@ring.com>
31847 * config/arc/arc.c (arc_is_uncached_mem_p): Check struct
31848 attributes if needed.
31849 (prepare_move_operands): Generate special unspec instruction for
31851 (arc_isuncached_mem_p): Propagate uncached attribute to each
31853 * config/arc/arc.md (VUNSPEC_ARC_LDDI): Define.
31854 (VUNSPEC_ARC_STDI): Likewise.
31855 (ALLI): New mode iterator.
31856 (mALLI): New mode attribute.
31857 (lddi): New instruction pattern.
31859 (stdidi_split): Split instruction for architectures which are not
31860 supporting ll64 option.
31861 (lddidi_split): Likewise.
31863 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31865 PR rtl-optimization/92989
31866 * lra-lives.c (process_bb_lives): Update the live-in set before
31867 processing additional clobbers.
31869 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31871 PR rtl-optimization/93170
31872 * cselib.c (cselib_invalidate_regno_val): New function, split out
31874 (cselib_invalidate_regno): ...here.
31875 (cselib_invalidated_by_call_p): New function.
31876 (cselib_process_insn): Iterate over all the hard-register entries in
31877 REG_VALUES and invalidate any that cross call-clobbered registers.
31879 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31881 * dojump.c (split_comparison): Use HONOR_NANS rather than
31882 HONOR_SNANS when splitting LTGT.
31884 2020-01-27 Martin Liska <mliska@suse.cz>
31887 * opts.c (print_filtered_help): Exclude language-specific
31888 options from --help=common unless enabled in all FEs.
31890 2020-01-27 Martin Liska <mliska@suse.cz>
31892 * opts.c (print_help): Exclude params from
31893 all except --help=param.
31895 2020-01-27 Martin Liska <mliska@suse.cz>
31898 * config/i386/i386-features.c (make_resolver_func):
31899 Align the code with ppc64 target implementation.
31900 Do not generate a unique name for resolver function.
31902 2020-01-27 Richard Biener <rguenther@suse.de>
31904 PR tree-optimization/93397
31905 * tree-vect-slp.c (vect_analyze_slp_instance): Delay
31906 converted reduction chain SLP graph adjustment.
31908 2020-01-26 Marek Polacek <polacek@redhat.com>
31911 * sanopt.c (sanitize_rewrite_addressable_params): Avoid crash on
31914 2020-01-26 Jason Merrill <jason@redhat.com>
31917 * tree.c (verify_type_variant): Only verify TYPE_NEEDS_CONSTRUCTING
31920 2020-01-26 Darius Galis <darius.galis@cyberthorstudios.com>
31922 * config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint
31923 (rx_setmem): Likewise.
31925 2020-01-26 Jakub Jelinek <jakub@redhat.com>
31928 * config/i386/i386.md (*addv<dwi>4_doubleword, *subv<dwi>4_doubleword):
31929 Use nonimmediate_operand instead of x86_64_hilo_general_operand and
31930 drop <di> from constraint of last operand.
31933 * config/i386/sse.md (*avx_vperm_broadcast_<mode>): Disallow for
31934 TARGET_AVX2 and V4DFmode not in the split condition, but in the
31935 pattern condition, though allow { 0, 0, 0, 0 } broadcast always.
31937 2020-01-25 Feng Xue <fxue@os.amperecomputing.com>
31940 * ipa-cp.c (get_info_about_necessary_edges): Remove value
31943 2020-01-24 Jeff Law <law@redhat.com>
31945 PR tree-optimization/92788
31946 * tree-ssa-threadedge.c (thread_across_edge): Check EDGE_COMPLEX
31949 2020-01-24 Jakub Jelinek <jakub@redhat.com>
31952 * config/i386/sse.md (*avx_vperm_broadcast_v4sf,
31953 *avx_vperm_broadcast_<mode>,
31954 <sse2_avx_avx512f>_vpermil<mode><mask_name>,
31955 *<sse2_avx_avx512f>_vpermilp<mode><mask_name>):
31956 Move before avx2_perm<mode>/avx512f_perm<mode>.
31959 * simplify-rtx.c (simplify_const_unary_operation,
31960 simplify_const_binary_operation): Punt for mode precision above
31961 MAX_BITSIZE_MODE_ANY_INT.
31963 2020-01-24 Andrew Pinski <apinski@marvell.com>
31965 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Change
31966 alu.shift_reg to 0.
31968 2020-01-24 Jeff Law <law@redhat.com>
31971 * config/h8300/h8300.c (h8300_print_operand): Only call byte_reg
31972 for REGs. Call output_operand_lossage to get more reasonable
31975 2020-01-24 Andrew Stubbs <ams@codesourcery.com>
31977 * config/gcn/gcn-valu.md (vec_cmp<mode>di): Use
31978 gcn_fp_compare_operator.
31979 (vec_cmpu<mode>di): Use gcn_compare_operator.
31980 (vec_cmp<u>v64qidi): Use gcn_compare_operator.
31981 (vec_cmp<mode>di_exec): Use gcn_fp_compare_operator.
31982 (vec_cmpu<mode>di_exec): Use gcn_compare_operator.
31983 (vec_cmp<u>v64qidi_exec): Use gcn_compare_operator.
31984 (vec_cmp<mode>di_dup): Use gcn_fp_compare_operator.
31985 (vec_cmp<mode>di_dup_exec): Use gcn_fp_compare_operator.
31986 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): Use
31987 gcn_fp_compare_operator.
31988 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): Use
31989 gcn_fp_compare_operator.
31990 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): Use
31991 gcn_fp_compare_operator.
31992 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): Use
31993 gcn_fp_compare_operator.
31995 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
31997 * doc/install.texi (Cross-Compiler-Specific Options): Document
31998 `--with-toolexeclibdir' option.
32000 2020-01-24 Hans-Peter Nilsson <hp@axis.com>
32002 * target.def (flags_regnum): Also mention effect on delay slot filling.
32003 * doc/tm.texi: Regenerate.
32005 2020-01-23 Jeff Law <law@redhat.com>
32007 PR translation/90162
32008 * config/h8300/h8300.c (h8300_option_override): Fix diagnostic text.
32010 2020-01-23 Mikael Tillenius <mti-1@tillenius.com>
32013 * config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of
32016 2020-01-23 Jakub Jelinek <jakub@redhat.com>
32018 PR rtl-optimization/93402
32019 * postreload.c (reload_combine_recognize_pattern): Don't try to adjust
32022 2020-01-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
32024 * config.in: Regenerated.
32025 * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to 1
32026 for TARGET_LIBC_GNUSTACK.
32027 * configure: Regenerated.
32028 * configure.ac: Define TARGET_LIBC_GNUSTACK if glibc version is
32029 found to be 2.31 or greater.
32031 2020-01-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
32033 * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to
32035 * config/mips/mips.c (TARGET_ASM_FILE_END): Define to ...
32036 (mips_asm_file_end): New function. Delegate to
32037 file_end_indicate_exec_stack if NEED_INDICATE_EXEC_STACK is true.
32038 * config/mips/mips.h (NEED_INDICATE_EXEC_STACK): Define to 0.
32040 2020-01-23 Jakub Jelinek <jakub@redhat.com>
32043 * config/i386/i386-modes.def (POImode): New mode.
32044 (MAX_BITSIZE_MODE_ANY_INT): Change from 128 to 160.
32045 * config/i386/i386.md (DPWI): New mode attribute.
32046 (addv<mode>4, subv<mode>4): Use <DPWI> instead of <DWI>.
32047 (QWI): Rename to...
32048 (QPWI): ... this. Use POI instead of OI for TImode.
32049 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1,
32050 *subv<dwi>4_doubleword, *subv<dwi>4_doubleword_1): Use <QPWI>
32053 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
32056 * config/aarch64/aarch64.md (UNSPEC_SPECULATION_TRACKER_REV): New
32058 (speculation_tracker_rev): New pattern.
32059 * config/aarch64/aarch64-speculation.cc (aarch64_do_track_speculation):
32060 Use speculation_tracker_rev to track the inverse condition.
32062 2020-01-23 Richard Biener <rguenther@suse.de>
32064 PR tree-optimization/93381
32065 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Take
32066 alias-set of the def as argument and record the first one.
32067 (vn_walk_cb_data::first_set): New member.
32068 (vn_reference_lookup_3): Pass the alias-set of the current def
32069 to push_partial_def. Fix alias-set used in the aggregate copy
32071 (vn_reference_lookup): Consistently set *last_vuse_ptr.
32072 * real.c (clear_significand_below): Fix out-of-bound access.
32074 2020-01-23 Jakub Jelinek <jakub@redhat.com>
32077 * config/i386/i386.md (*bmi2_bzhi_<mode>3_2, *bmi2_bzhi_<mode>3_3):
32078 New define_insn patterns.
32080 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
32082 * doc/sourcebuild.texi (check-function-bodies): Add an
32083 optional target/xfail selector.
32085 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
32087 PR rtl-optimization/93124
32088 * auto-inc-dec.c (merge_in_block): Don't add auto inc/decs to
32089 bare USE and CLOBBER insns.
32091 2020-01-22 Andrew Pinski <apinski@marvell.com>
32093 * config/arc/arc.c (output_short_suffix): Check insn for nullness.
32095 2020-01-22 David Malcolm <dmalcolm@redhat.com>
32098 * gdbinit.in (break-on-saved-diagnostic): Update for move of
32099 diagnostic_manager into "ana" namespace.
32100 * selftest-run-tests.c (selftest::run_tests): Update for move of
32101 selftest::run_analyzer_selftests to
32102 ana::selftest::run_analyzer_selftests.
32104 2020-01-22 Richard Sandiford <richard.sandiford@arm.com>
32106 * cfgexpand.c (union_stack_vars): Update the size.
32108 2020-01-22 Richard Biener <rguenther@suse.de>
32110 PR tree-optimization/93381
32111 * tree-ssa-structalias.c (find_func_aliases): Assume offsetting
32112 throughout, handle all conversions the same.
32114 2020-01-22 Jakub Jelinek <jakub@redhat.com>
32117 * config/aarch64/aarch64.c (aarch64_expand_subvti): Only use
32118 gen_subdi3_compare1_imm if low_in2 satisfies aarch64_plus_immediate
32119 predicate, not whenever it is CONST_INT. Otherwise, force_reg it.
32120 Call force_reg on high_in2 unconditionally.
32122 2020-01-22 Martin Liska <mliska@suse.cz>
32124 PR tree-optimization/92924
32125 * profile.c (compute_value_histograms): Divide
32126 all counter values.
32128 2020-01-22 Jakub Jelinek <jakub@redhat.com>
32131 * output.h (assemble_name_resolve): Declare.
32132 * varasm.c (assemble_name_resolve): New function.
32133 (assemble_name): Use it.
32134 * config/i386/i386.h (ASM_OUTPUT_SYMBOL_REF): Define.
32136 2020-01-22 Joseph Myers <joseph@codesourcery.com>
32138 * doc/sourcebuild.texi (Texinfo Manuals, Front End): Refer to
32139 update_web_docs_git instead of update_web_docs_svn.
32141 2020-01-21 Andrew Pinski <apinski@marvell.com>
32144 * config/aarch64/aarch64.md (tlsgd_small_<mode>): Have operand 0
32145 as PTR mode. Have operand 1 as being modeless, it can be P mode.
32146 (*tlsgd_small_<mode>): Likewise.
32147 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately)
32148 <case SYMBOL_SMALL_TLSGD>: Call gen_tlsgd_small_* with a ptr_mode
32149 register. Convert that register back to dest using convert_mode.
32151 2020-01-21 Jim Wilson <jimw@sifive.com>
32153 * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Use INTVAL
32156 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
32157 Uros Bizjak <ubizjak@gmail.com>
32160 * config/i386/i386.c (ix86_tls_module_base): Replace Pmode
32162 (legitimize_tls_address): Do GNU2 TLS address computation in
32163 ptr_mode and zero-extend result to Pmode.
32164 * config/i386/i386.md (@tls_dynamic_gnu2_64_<mode>): Replace
32165 :P with :PTR and Pmode with ptr_mode.
32166 (*tls_dynamic_gnu2_lea_64_<mode>): Likewise.
32167 (*tls_dynamic_gnu2_call_64_<mode>): Likewise.
32168 (*tls_dynamic_gnu2_combine_64_<mode>): Likewise.
32170 2020-01-21 Jakub Jelinek <jakub@redhat.com>
32173 * config/riscv/riscv.c (riscv_rtx_costs) <case ZERO_EXTRACT>: Verify
32174 the last two operands are CONST_INT_P before using them as such.
32176 2020-01-21 Richard Sandiford <richard.sandiford@arm.com>
32178 * config/aarch64/aarch64-sve-builtins.def: Use get_typenode_from_name
32179 to get the integer element types.
32181 2020-01-21 Richard Sandiford <richard.sandiford@arm.com>
32183 * config/aarch64/aarch64-sve-builtins.h
32184 (function_expander::convert_to_pmode): Declare.
32185 * config/aarch64/aarch64-sve-builtins.cc
32186 (function_expander::convert_to_pmode): New function.
32187 (function_expander::get_contiguous_base): Use it.
32188 (function_expander::prepare_gather_address_operands): Likewise.
32189 * config/aarch64/aarch64-sve-builtins-sve2.cc
32190 (svwhilerw_svwhilewr_impl::expand): Likewise.
32192 2020-01-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
32195 * config/aarch64/aarch64.c (aarch64_declare_function_name): Set
32196 cfun->machine->label_is_assembled.
32197 (aarch64_print_patchable_function_entry): New.
32198 (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): Define.
32199 * config/aarch64/aarch64.h (struct machine_function): New field,
32200 label_is_assembled.
32202 2020-01-21 David Malcolm <dmalcolm@redhat.com>
32205 * ipa-profile.c (ipa_profile): Delete call_sums and set it to
32208 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
32211 * cgraph.c (cgraph_edge::resolve_speculation,
32212 cgraph_edge::redirect_call_stmt_to_callee): Fix update of
32213 call_stmt_site_hash.
32215 2020-01-21 Martin Liska <mliska@suse.cz>
32217 * config/rs6000/rs6000.c (common_mode_defined): Remove
32220 2020-01-21 Richard Biener <rguenther@suse.de>
32222 PR tree-optimization/92328
32223 * tree-ssa-sccvn.c (vn_reference_lookup_3): Preserve
32224 type when value-numbering same-sized store by inserting a
32226 (eliminate_dom_walker::eliminate_stmt): When eliminating
32227 a redundant store handle bit-reinterpretation of the same value.
32229 2020-01-21 Andrew Pinski <apinski@marvel.com>
32232 * tree-into-ssa.c (prepare_block_for_update_1): Split out
32234 (prepare_block_for_update): This. Use a worklist instead of
32237 2020-01-21 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32239 * config/arm/arm.c (clear_operation_p):
32240 Initialise last_regno, skip first iteration
32241 based on the first_set value and use ints instead
32242 of the unnecessary HOST_WIDE_INTs.
32244 2020-01-21 Jakub Jelinek <jakub@redhat.com>
32247 * config/rs6000/rs6000.c (rs6000_emit_cmove): If using fsel, punt for
32248 compare_mode other than SFmode or DFmode.
32250 2020-01-21 Kito Cheng <kito.cheng@sifive.com>
32253 * config/riscv/riscv-protos.h (riscv_hard_regno_rename_ok): New.
32254 * config/riscv/riscv.c (riscv_hard_regno_rename_ok): New.
32255 * config/riscv/riscv.h (HARD_REGNO_RENAME_OK): Defined.
32257 2020-01-20 Wilco Dijkstra <wdijkstr@arm.com>
32259 * config/aarch64/aarch64.c (neoversen1_tunings): Set jump_align to 4.
32261 2020-01-20 Andrew Pinski <apinski@marvell.com>
32263 PR middle-end/93242
32264 * targhooks.c (default_print_patchable_function_entry): Use
32265 output_asm_insn to emit the nop instruction.
32267 2020-01-20 Fangrui Song <maskray@google.com>
32269 PR middle-end/93194
32270 * targhooks.c (default_print_patchable_function_entry): Align to
32273 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
32276 * config/i386/i386.c (legitimize_tls_address): Pass Pmode to
32277 gen_tls_dynamic_gnu2_64. Compute GNU2 TLS address in ptr_mode.
32278 * config/i386/i386.md (tls_dynamic_gnu2_64): Renamed to ...
32279 (@tls_dynamic_gnu2_64_<mode>): This. Replace DI with P.
32280 (*tls_dynamic_gnu2_lea_64): Renamed to ...
32281 (*tls_dynamic_gnu2_lea_64_<mode>): This. Replace DI with P.
32282 Remove the {q} suffix from lea.
32283 (*tls_dynamic_gnu2_call_64): Renamed to ...
32284 (*tls_dynamic_gnu2_call_64_<mode>): This. Replace DI with P.
32285 (*tls_dynamic_gnu2_combine_64): Renamed to ...
32286 (*tls_dynamic_gnu2_combine_64_<mode>): This. Replace DI with P.
32287 Pass Pmode to gen_tls_dynamic_gnu2_64.
32289 2020-01-20 Wilco Dijkstra <wdijkstr@arm.com>
32291 * config/aarch64/aarch64.h (SLOW_BYTE_ACCESS): Set to 1.
32293 2020-01-20 Richard Sandiford <richard.sandiford@arm.com>
32295 * config/aarch64/aarch64-sve-builtins-base.cc
32296 (svld1ro_impl::memory_vector_mode): Remove parameter name.
32298 2020-01-20 Richard Biener <rguenther@suse.de>
32301 * dwarf2out.c (prune_unused_types): Unconditionally mark
32302 called function DIEs.
32304 2020-01-20 Martin Liska <mliska@suse.cz>
32306 PR tree-optimization/93199
32307 * tree-eh.c (struct leh_state): Add
32308 new field outer_non_cleanup.
32309 (cleanup_is_dead_in): Pass leh_state instead
32310 of eh_region. Add a checking that state->outer_non_cleanup
32311 points to outer non-clean up region.
32312 (lower_try_finally): Record outer_non_cleanup
32314 (lower_catch): Likewise.
32315 (lower_eh_filter): Likewise.
32316 (lower_eh_must_not_throw): Likewise.
32317 (lower_cleanup): Likewise.
32319 2020-01-20 Richard Biener <rguenther@suse.de>
32321 PR tree-optimization/93094
32322 * tree-vectorizer.h (vect_loop_versioning): Adjust.
32323 (vect_transform_loop): Likewise.
32324 * tree-vectorizer.c (try_vectorize_loop_1): Pass down
32325 loop_vectorized_call to vect_transform_loop.
32326 * tree-vect-loop.c (vect_transform_loop): Pass down
32327 loop_vectorized_call to vect_loop_versioning.
32328 * tree-vect-loop-manip.c (vect_loop_versioning): Use
32329 the earlier discovered loop_vectorized_call.
32331 2020-01-19 Eric S. Raymond <esr@thyrsus.com>
32333 * doc/contribute.texi: Update for SVN -> Git transition.
32334 * doc/install.texi: Likewise.
32336 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
32339 * cgraph.c (cgraph_edge::make_speculative): Increase number of
32340 speculative targets.
32341 (verify_speculative_call): New function
32342 (cgraph_node::verify_node): Use it.
32343 * ipa-profile.c (ipa_profile): Fix formating; do not set number of
32346 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
32349 * cgraph.c (cgraph_edge::resolve_speculation): Fix foramting.
32350 (cgraph_edge::make_direct): Remove all indirect targets.
32351 (cgraph_edge::redirect_call_stmt_to_callee): Use make_direct..
32352 (cgraph_node::verify_node): Verify that only one call_stmt or
32353 lto_stmt_uid is set.
32354 * cgraphclones.c (cgraph_edge::clone): Set only one call_stmt or
32356 * lto-cgraph.c (lto_output_edge): Simplify streaming of stmt.
32357 (lto_output_ref): Simplify streaming of stmt.
32358 * lto-streamer-in.c (fixup_call_stmt_edges_1): Clear lto_stmt_uid.
32360 2020-01-18 Tamar Christina <tamar.christina@arm.com>
32362 * config/aarch64/aarch64-sve-builtins-base.cc (memory_vector_mode):
32363 Mark parameter unused.
32365 2020-01-18 Hans-Peter Nilsson <hp@axis.com>
32367 * config.gcc <obsolete targets>: Add crisv32-*-* and cris-*-linux*
32369 2019-01-18 Gerald Pfeifer <gerald@pfeifer.com>
32371 * varpool.c (ctor_useable_for_folding_p): Fix grammar.
32373 2020-01-18 Iain Sandoe <iain@sandoe.co.uk>
32375 * Makefile.in: Add coroutine-passes.o.
32376 * builtin-types.def (BT_CONST_SIZE): New.
32377 (BT_FN_BOOL_PTR): New.
32378 (BT_FN_PTR_PTR_CONST_SIZE_BOOL): New.
32379 * builtins.def (DEF_COROUTINE_BUILTIN): New.
32380 * coroutine-builtins.def: New file.
32381 * coroutine-passes.cc: New file.
32382 * function.h (struct GTY function): Add a bit to indicate that the
32383 function is a coroutine component.
32384 * internal-fn.c (expand_CO_FRAME): New.
32385 (expand_CO_YIELD): New.
32386 (expand_CO_SUSPN): New.
32387 (expand_CO_ACTOR): New.
32388 * internal-fn.def (CO_ACTOR): New.
32392 * passes.def: Add pass_coroutine_lower_builtins,
32393 pass_coroutine_early_expand_ifns.
32394 * tree-pass.h (make_pass_coroutine_lower_builtins): New.
32395 (make_pass_coroutine_early_expand_ifns): New.
32396 * doc/invoke.texi: Document the fcoroutines command line
32399 2020-01-18 Jakub Jelinek <jakub@redhat.com>
32401 * config/arm/vfp.md (*clear_vfp_multiple): Remove unused variable.
32404 * config/arm/arm.c (clear_operation_p): Don't use REGNO until
32405 after checking the argument is a REG. Don't use REGNO (reg)
32406 again to set last_regno, reuse regno variable instead.
32408 2020-01-17 David Malcolm <dmalcolm@redhat.com>
32410 * doc/analyzer.texi (Limitations): Add note about NaN.
32412 2020-01-17 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32413 Sudakshina Das <sudi.das@arm.com>
32415 * config/arm/arm.md (ashldi3): Generate thumb2_lsll for both reg
32416 and valid immediate.
32417 (ashrdi3): Generate thumb2_asrl for both reg and valid immediate.
32418 (lshrdi3): Generate thumb2_lsrl for valid immediates.
32419 * config/arm/constraints.md (Pg): New.
32420 * config/arm/predicates.md (long_shift_imm): New.
32421 (arm_reg_or_long_shift_imm): Likewise.
32422 * config/arm/thumb2.md (thumb2_asrl): New immediate alternative.
32423 (thumb2_lsll): Likewise.
32424 (thumb2_lsrl): New.
32426 2020-01-17 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32427 Sudakshina Das <sudi.das@arm.com>
32429 * config/arm/arm.md (ashldi3): Generate thumb2_lsll for TARGET_HAVE_MVE.
32430 (ashrdi3): Generate thumb2_asrl for TARGET_HAVE_MVE.
32431 * config/arm/arm.c (arm_hard_regno_mode_ok): Allocate even odd
32432 register pairs for doubleword quantities for ARMv8.1M-Mainline.
32433 * config/arm/thumb2.md (thumb2_asrl): New.
32434 (thumb2_lsll): Likewise.
32436 2020-01-17 Jakub Jelinek <jakub@redhat.com>
32438 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear): Remove
32441 2020-01-17 Alexander Monakov <amonakov@ispras.ru>
32443 * gdbinit.in (help-gcc-hooks): New command.
32444 (pp, pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, ptc, pdn, ptn, pdd, prc,
32445 pi, pbm, pel, trt): Take $arg0 instead of $ if supplied. Update
32448 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
32450 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use the
32451 correct target macro.
32453 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
32455 * config/aarch64/aarch64-protos.h
32456 (aarch64_sve_ld1ro_operand_p): New.
32457 * config/aarch64/aarch64-sve-builtins-base.cc
32458 (class load_replicate): New.
32459 (class svld1ro_impl): New.
32460 (class svld1rq_impl): Change to inherit from load_replicate.
32461 (svld1ro): New sve intrinsic function base.
32462 * config/aarch64/aarch64-sve-builtins-base.def (svld1ro):
32463 New DEF_SVE_FUNCTION.
32464 * config/aarch64/aarch64-sve-builtins-base.h
32465 (svld1ro): New decl.
32466 * config/aarch64/aarch64-sve-builtins.cc
32467 (function_expander::add_mem_operand): Modify assert to allow
32469 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): New
32471 * config/aarch64/aarch64.c
32472 (aarch64_sve_ld1rq_operand_p): Implement in terms of ...
32473 (aarch64_sve_ld1rq_ld1ro_operand_p): This.
32474 (aarch64_sve_ld1ro_operand_p): New.
32475 * config/aarch64/aarch64.md (UNSPEC_LD1RO): New unspec.
32476 * config/aarch64/constraints.md (UOb,UOh,UOw,UOd): New.
32477 * config/aarch64/predicates.md
32478 (aarch64_sve_ld1ro_operand_{b,h,w,d}): New.
32480 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
32482 * config/aarch64/aarch64-c.c (_ARM_FEATURE_MATMUL_FLOAT64):
32483 Introduce this ACLE specified predefined macro.
32484 * config/aarch64/aarch64-option-extensions.def (f64mm): New.
32485 (fp): Disabling this disables f64mm.
32486 (simd): Disabling this disables f64mm.
32487 (fp16): Disabling this disables f64mm.
32488 (sve): Disabling this disables f64mm.
32489 * config/aarch64/aarch64.h (AARCH64_FL_F64MM): New.
32490 (AARCH64_ISA_F64MM): New.
32491 (TARGET_F64MM): New.
32492 * doc/invoke.texi (f64mm): Document new option.
32494 2020-01-17 Wilco Dijkstra <wdijkstr@arm.com>
32496 * config/aarch64/aarch64.c (generic_tunings): Add branch fusion.
32497 (neoversen1_tunings): Likewise.
32499 2020-01-17 Wilco Dijkstra <wdijkstr@arm.com>
32502 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap)
32503 Add assert to ensure prolog has been emitted.
32504 (aarch64_split_atomic_op): Likewise.
32505 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>)
32506 Use epilogue_completed rather than reload_completed.
32507 (aarch64_atomic_exchange<mode>): Likewise.
32508 (aarch64_atomic_<atomic_optab><mode>): Likewise.
32509 (atomic_nand<mode>): Likewise.
32510 (aarch64_atomic_fetch_<atomic_optab><mode>): Likewise.
32511 (atomic_fetch_nand<mode>): Likewise.
32512 (aarch64_atomic_<atomic_optab>_fetch<mode>): Likewise.
32513 (atomic_nand_fetch<mode>): Likewise.
32515 2020-01-17 Richard Sandiford <richard.sandiford@arm.com>
32518 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Return false
32520 (REVERSE_CONDITION): Delete.
32521 * config/aarch64/iterators.md (CC_ONLY): New mode iterator.
32522 (CCFP_CCFPE): Likewise.
32523 (e): New mode attribute.
32524 * config/aarch64/aarch64.md (ccmp<GPI:mode>): Rename to...
32525 (@ccmp<CC_ONLY:mode><GPI:mode>): ...this, using CC_ONLY instead of CC.
32526 (fccmp<GPF:mode>, fccmpe<GPF:mode>): Merge into...
32527 (@ccmp<CCFP_CCFPE:mode><GPF:mode>): ...this combined pattern.
32528 (@ccmp<CC_ONLY:mode><GPI:mode>_rev): New pattern.
32529 (@ccmp<CCFP_CCFPE:mode><GPF:mode>_rev): Likewise.
32530 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Update
32531 name of generator from gen_ccmpdi to gen_ccmpccdi.
32532 (aarch64_gen_ccmp_next): Use code_for_ccmp. If we want to reverse
32533 the previous comparison but aren't able to, use the new ccmp_rev
32536 2020-01-17 Richard Sandiford <richard.sandiford@arm.com>
32538 * gimplify.c (gimplify_return_expr): Use poly_int_tree_p rather
32539 than testing directly for INTEGER_CST.
32540 (gimplify_target_expr, gimplify_omp_depend): Likewise.
32542 2020-01-17 Jakub Jelinek <jakub@redhat.com>
32544 PR tree-optimization/93292
32545 * tree-vect-stmts.c (vectorizable_comparison): Punt also if
32546 get_vectype_for_scalar_type returns NULL.
32548 2020-01-16 Jan Hubicka <hubicka@ucw.cz>
32550 * params.opt (-param=max-predicted-iterations): Increase range from 0.
32551 * predict.c (estimate_loops): Add 1 to param_max_predicted_iterations.
32553 2020-01-16 Jan Hubicka <hubicka@ucw.cz>
32555 * ipa-fnsummary.c (estimate_calls_size_and_time): Fix formating of
32557 * params.opt: (max-predicted-iterations): Set bounds.
32558 * predict.c (real_almost_one, real_br_prob_base,
32559 real_inv_br_prob_base, real_one_half, real_bb_freq_max): Remove.
32560 (propagate_freq): Add max_cyclic_prob parameter; cap cyclic
32561 probabilities; do not truncate to reg_br_prob_bases.
32562 (estimate_loops_at_level): Pass max_cyclic_prob.
32563 (estimate_loops): Compute max_cyclic_prob.
32564 (estimate_bb_frequencies): Do not initialize real_*; update calculation
32566 * profile-count.c (profile_probability::to_sreal): New.
32567 * profile-count.h (class sreal): Move up in file.
32568 (profile_probability::to_sreal): Declare.
32570 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32573 (arm_invalid_conversion): New function for target hook.
32574 (arm_invalid_unary_op): New function for target hook.
32575 (arm_invalid_binary_op): New function for target hook.
32577 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32579 * config.gcc: Add arm_bf16.h.
32580 * config/arm/arm-builtins.c (arm_mangle_builtin_type): Fix comment.
32581 (arm_simd_builtin_std_type): Add BFmode.
32582 (arm_init_simd_builtin_types): Define element types for vector types.
32583 (arm_init_bf16_types): New function.
32584 (arm_init_builtins): Add arm_init_bf16_types function call.
32585 * config/arm/arm-modes.def: Add BFmode and V4BF, V8BF vector modes.
32586 * config/arm/arm-simd-builtin-types.def: Add V4BF, V8BF.
32587 * config/arm/arm.c (aapcs_vfp_sub_candidate): Add BFmode.
32588 (arm_hard_regno_mode_ok): Add BFmode and tidy up statements.
32589 (arm_vector_mode_supported_p): Add V4BF, V8BF.
32590 (arm_mangle_type): Add __bf16.
32591 * config/arm/arm.h: Add V4BF, V8BF to VALID_NEON_DREG_MODE,
32592 VALID_NEON_QREG_MODE respectively. Add export arm_bf16_type_node,
32593 arm_bf16_ptr_type_node.
32594 * config/arm/arm.md: Add BFmode to movhf expand, mov pattern and
32595 define_split between ARM registers.
32596 * config/arm/arm_bf16.h: New file.
32597 * config/arm/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
32598 * config/arm/iterators.md: (ANY64_BF, VDXMOV, VHFBF, HFBF, fporbf): New.
32599 (VQXMOV): Add V8BF.
32600 * config/arm/neon.md: Add BF vector types to movhf NEON move patterns.
32601 * config/arm/vfp.md: Add BFmode to movhf patterns.
32603 2020-01-16 Mihail Ionescu <mihail.ionescu@arm.com>
32604 Andre Vieira <andre.simoesdiasvieira@arm.com>
32606 * config/arm/arm-cpus.in (mve, mve_float): New features.
32607 (dsp, mve, mve.fp): New options.
32608 * config/arm/arm.h (TARGET_HAVE_MVE, TARGET_HAVE_MVE_FLOAT): Define.
32609 * config/arm/t-rmprofile: Map v8.1-M multilibs to v8-M.
32610 * doc/invoke.texi: Document the armv8.1-m mve and dps options.
32612 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32613 Thomas Preud'homme <thomas.preudhomme@arm.com>
32615 * config/arm/arm-cpus.in (ARMv8_1m_main): Redefine as an extension to
32617 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Remove
32618 error for using -mcmse when targeting Armv8.1-M Mainline.
32620 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32621 Thomas Preud'homme <thomas.preudhomme@arm.com>
32623 * config/arm/arm.md (nonsecure_call_internal): Do not force memory
32624 address in r4 when targeting Armv8.1-M Mainline.
32625 (nonsecure_call_value_internal): Likewise.
32626 * config/arm/thumb2.md (nonsecure_call_reg_thumb2): Make memory address
32627 a register match_operand again. Emit BLXNS when targeting
32628 Armv8.1-M Mainline.
32629 (nonsecure_call_value_reg_thumb2): Likewise.
32631 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32632 Thomas Preud'homme <thomas.preudhomme@arm.com>
32634 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): Declare early.
32635 (cmse_nonsecure_call_inline_register_clear): Define new lazy_fpclear
32636 variable as true when floating-point ABI is not hard. Replace
32637 check against TARGET_HARD_FLOAT_ABI by checks against lazy_fpclear.
32638 Generate VLSTM and VLLDM instruction respectively before and
32639 after a function call to cmse_nonsecure_call function.
32640 * config/arm/unspecs.md (VUNSPEC_VLSTM): Define unspec.
32641 (VUNSPEC_VLLDM): Likewise.
32642 * config/arm/vfp.md (lazy_store_multiple_insn): New define_insn.
32643 (lazy_load_multiple_insn): Likewise.
32645 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32646 Thomas Preud'homme <thomas.preudhomme@arm.com>
32648 * config/arm/arm.c (vfp_emit_fstmd): Declare early.
32649 (arm_emit_vfp_multi_reg_pop): Likewise.
32650 (cmse_nonsecure_call_inline_register_clear): Abstract number of VFP
32651 registers to clear in max_fp_regno. Emit VPUSH and VPOP to save and
32652 restore callee-saved VFP registers.
32654 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32655 Thomas Preud'homme <thomas.preudhomme@arm.com>
32657 * config/arm/arm.c (arm_emit_multi_reg_pop): Declare early.
32658 (cmse_nonsecure_call_clear_caller_saved): Rename into ...
32659 (cmse_nonsecure_call_inline_register_clear): This. Save and clear
32660 callee-saved GPRs as well as clear ip register before doing a nonsecure
32661 call then restore callee-saved GPRs after it when targeting
32662 Armv8.1-M Mainline.
32663 (arm_reorg): Adapt to function rename.
32665 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32666 Thomas Preud'homme <thomas.preudhomme@arm.com>
32668 * config/arm/arm-protos.h (clear_operation_p): Adapt prototype.
32669 * config/arm/arm.c (clear_operation_p): Extend to be able to check a
32670 clear_vfp_multiple pattern based on a new vfp parameter.
32671 (cmse_clear_registers): Generate VSCCLRM to clear VFP registers when
32672 targeting Armv8.1-M Mainline.
32673 (cmse_nonsecure_entry_clear_before_return): Clear VFP registers
32674 unconditionally when targeting Armv8.1-M Mainline architecture. Check
32675 whether VFP registers are available before looking call_used_regs for a
32677 * config/arm/predicates.md (clear_multiple_operation): Adapt to change
32678 of prototype of clear_operation_p.
32679 (clear_vfp_multiple_operation): New predicate.
32680 * config/arm/unspecs.md (VUNSPEC_VSCCLRM_VPR): New volatile unspec.
32681 * config/arm/vfp.md (clear_vfp_multiple): New define_insn.
32683 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32684 Thomas Preud'homme <thomas.preudhomme@arm.com>
32686 * config/arm/arm-protos.h (clear_operation_p): Declare.
32687 * config/arm/arm.c (clear_operation_p): New function.
32688 (cmse_clear_registers): Generate clear_multiple instruction pattern if
32689 targeting Armv8.1-M Mainline or successor.
32690 (output_return_instruction): Only output APSR register clearing if
32691 Armv8.1-M Mainline instructions not available.
32692 (thumb_exit): Likewise.
32693 * config/arm/predicates.md (clear_multiple_operation): New predicate.
32694 * config/arm/thumb2.md (clear_apsr): New define_insn.
32695 (clear_multiple): Likewise.
32696 * config/arm/unspecs.md (VUNSPEC_CLRM_APSR): New volatile unspec.
32698 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32699 Thomas Preud'homme <thomas.preudhomme@arm.com>
32701 * config/arm/arm.c (fp_sysreg_names): Declare and define.
32702 (use_return_insn): Also return false for Armv8.1-M Mainline.
32703 (output_return_instruction): Skip FPSCR clearing if Armv8.1-M
32704 Mainline instructions are available.
32705 (arm_compute_frame_layout): Allocate space in frame for FPCXTNS
32706 when targeting Armv8.1-M Mainline Security Extensions.
32707 (arm_expand_prologue): Save FPCXTNS if this is an Armv8.1-M
32708 Mainline entry function.
32709 (cmse_nonsecure_entry_clear_before_return): Clear IP and r4 if
32710 targeting Armv8.1-M Mainline or successor.
32711 (arm_expand_epilogue): Fix indentation of caller-saved register
32712 clearing. Restore FPCXTNS if this is an Armv8.1-M Mainline
32714 * config/arm/arm.h (TARGET_HAVE_FP_CMSE): New macro.
32715 (FP_SYSREGS): Likewise.
32716 (enum vfp_sysregs_encoding): Define enum.
32717 (fp_sysreg_names): Declare.
32718 * config/arm/unspecs.md (VUNSPEC_VSTR_VLDR): New volatile unspec.
32719 * config/arm/vfp.md (push_fpsysreg_insn): New define_insn.
32720 (pop_fpsysreg_insn): Likewise.
32722 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32723 Thomas Preud'homme <thomas.preudhomme@arm.com>
32725 * config/arm/arm-cpus.in (armv8_1m_main): New feature.
32726 (ARMv4, ARMv4t, ARMv5t, ARMv5te, ARMv5tej, ARMv6, ARMv6j, ARMv6k,
32727 ARMv6z, ARMv6kz, ARMv6zk, ARMv6t2, ARMv6m, ARMv7, ARMv7a, ARMv7ve,
32728 ARMv7r, ARMv7m, ARMv7em, ARMv8a, ARMv8_1a, ARMv8_2a, ARMv8_3a,
32729 ARMv8_4a, ARMv8_5a, ARMv8m_base, ARMv8m_main, ARMv8r): Reindent.
32730 (ARMv8_1m_main): New feature group.
32731 (armv8.1-m.main): New architecture.
32732 * config/arm/arm-tables.opt: Regenerate.
32733 * config/arm/arm.c (arm_arch8_1m_main): Define and default initialize.
32734 (arm_option_reconfigure_globals): Initialize arm_arch8_1m_main.
32735 (arm_options_perform_arch_sanity_checks): Error out when targeting
32736 Armv8.1-M Mainline Security Extensions.
32737 * config/arm/arm.h (arm_arch8_1m_main): Declare.
32739 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32741 * config/aarch64/aarch64-simd-builtins.def (aarch64_bfdot,
32742 aarch64_bfdot_lane, aarch64_bfdot_laneq): New.
32743 * config/aarch64/aarch64-simd.md (aarch64_bfdot, aarch64_bfdot_lane,
32744 aarch64_bfdot_laneq): New.
32745 * config/aarch64/arm_bf16.h (vbfdot_f32, vbfdotq_f32,
32746 vbfdot_lane_f32, vbfdotq_lane_f32, vbfdot_laneq_f32,
32747 vbfdotq_laneq_f32): New.
32748 * config/aarch64/iterators.md (UNSPEC_BFDOT, Vbfdottype,
32749 VBFMLA_W, VBF): New.
32750 (isquadop): Add V4BF, V8BF.
32752 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32754 * config/aarch64/aarch64-builtins.c: (enum aarch64_type_qualifiers):
32755 New qualifier_lane_quadtup_index, TYPES_TERNOP_SSUS,
32756 TYPES_QUADOPSSUS_LANE_QUADTUP, TYPES_QUADOPSSSU_LANE_QUADTUP.
32757 (aarch64_simd_expand_args): Add case SIMD_ARG_LANE_QUADTUP_INDEX.
32758 (aarch64_simd_expand_builtin): Add qualifier_lane_quadtup_index.
32759 * config/aarch64/aarch64-simd-builtins.def (usdot, usdot_lane,
32760 usdot_laneq, sudot_lane,sudot_laneq): New.
32761 * config/aarch64/aarch64-simd.md (aarch64_usdot): New.
32762 (aarch64_<sur>dot_lane): New.
32763 * config/aarch64/arm_neon.h (vusdot_s32): New.
32764 (vusdotq_s32): New.
32765 (vusdot_lane_s32): New.
32766 (vsudot_lane_s32): New.
32767 * config/aarch64/iterators.md (DOTPROD_I8MM): New iterator.
32768 (UNSPEC_USDOT, UNSPEC_SUDOT): New unspecs.
32770 2020-01-16 Martin Liska <mliska@suse.cz>
32772 * value-prof.c (dump_histogram_value): Fix
32773 obvious spacing issue.
32775 2020-01-16 Andrew Pinski <apinski@marvell.com>
32777 * tree-ssa-sccvn.c(vn_reference_lookup_3): Check lhs for
32778 !storage_order_barrier_p.
32780 2020-01-16 Andrew Pinski <apinski@marvell.com>
32782 * sched-int.h (_dep): Add unused bit-field field for the padding.
32783 * sched-deps.c (init_dep_1): Init unused field.
32785 2020-01-16 Andrew Pinski <apinski@marvell.com>
32787 * optabs.h (create_expand_operand): Initialize target field also.
32789 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
32791 PR tree-optimization/92429
32792 * tree-ssa-loop-niter.h (simplify_replace_tree): Add parameter.
32793 * tree-ssa-loop-niter.c (simplify_replace_tree): Add parameter to
32795 * tree-vect-loop.c (update_epilogue_vinfo): Do not fold when replacing
32798 2020-01-16 Richard Sandiford <richard.sandiford@arm.com>
32800 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move): Apply
32801 aarch64_sve_int_mode to each mode.
32803 2020-01-15 David Malcolm <dmalcolm@redhat.com>
32805 * doc/analyzer.texi (Overview): Add note about
32806 -fdump-ipa-analyzer.
32808 2020-01-15 Wilco Dijkstra <wdijkstr@arm.com>
32810 PR tree-optimization/93231
32811 * tree-ssa-forwprop.c (optimize_count_trailing_zeroes): Check
32812 input_type is unsigned. Use tree_to_shwi for shift constant.
32813 Check CST_STRING element size is CHAR_TYPE_SIZE bits.
32814 (simplify_count_trailing_zeroes): Add test to handle known non-zero
32815 inputs more efficiently.
32817 2020-01-15 Uroš Bizjak <ubizjak@gmail.com>
32819 * config/i386/i386.md (*movsf_internal): Do not require
32820 SSE2 ISA for alternatives 14 and 15.
32822 2020-01-15 Richard Biener <rguenther@suse.de>
32824 PR middle-end/93273
32825 * tree-eh.c (sink_clobbers): If we already visited the destination
32826 block do not defer insertion.
32827 (pass_lower_eh_dispatch::execute): Maintain BB_VISITED for
32828 the purpose of defered insertion.
32830 2020-01-15 Jakub Jelinek <jakub@redhat.com>
32832 * BASE-VER: Bump to 10.0.1.
32834 2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
32836 PR tree-optimization/93247
32837 * tree-vect-loop.c (update_epilogue_loop_vinfo): Check the access
32838 type of the stmt that we're going to vectorize.
32840 2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
32842 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Use a
32843 VIEW_CONVERT_EXPR if the vectorized constructor has a diffeent
32846 2020-01-15 Martin Liska <mliska@suse.cz>
32848 * ipa-profile.c (ipa_profile_read_edge_summary): Do not allow
32849 2 calls of streamer_read_hwi in a function call.
32851 2020-01-15 Richard Biener <rguenther@suse.de>
32853 * alias.c (record_alias_subset): Avoid redundant work when
32854 subset is already recorded.
32856 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32858 * doc/invoke.texi (-fdiagnostics-show-cwe): Add note that some of
32859 the analyzer options provide CWE identifiers.
32861 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32863 * tree-diagnostic-path.cc (path_summary::event_range::print):
32864 When testing for UNKNOWN_LOCATION, look through ad-hoc wrappers
32865 using get_pure_location.
32867 2020-01-15 Jakub Jelinek <jakub@redhat.com>
32869 PR tree-optimization/93262
32870 * tree-ssa-dse.c (maybe_trim_memstar_call): For *_chk builtins,
32871 perform head trimming only if the last argument is constant,
32872 either all ones, or larger or equal to head trim, in the latter
32873 case decrease the last argument by head_trim.
32875 PR tree-optimization/93249
32876 * tree-ssa-dse.c: Include builtins.h and gimple-fold.h.
32877 (maybe_trim_memstar_call): Move head_trim and tail_trim vars to
32878 function body scope, reindent. For BUILTIN_IN_STRNCPY*, don't
32879 perform head trim unless we can prove there are no '\0' chars
32880 from the source among the first head_trim chars.
32882 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32884 * Makefile.in (ANALYZER_OBJS): Add analyzer/function-set.o.
32886 2020-01-15 Jakub Jelinek <jakub@redhat.com>
32889 * config/i386/sse.md
32890 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1,
32891 *<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1,
32892 *<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1,
32893 *<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Use
32894 just a single alternative instead of two, make operands 1 and 2
32897 2020-01-14 Jan Hubicka <hubicka@ucw.cz>
32900 * ipa-devirt.c (odr_types_equivalent_p): Compare TREE_ADDRESSABLE and
32903 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32905 * Makefile.in (lang_opt_files): Add analyzer.opt.
32906 (ANALYZER_OBJS): New.
32907 (OBJS): Add digraph.o, graphviz.o, ordered-hash-map-tests.o,
32908 tristate.o and ANALYZER_OBJS.
32909 (TEXI_GCCINT_FILES): Add analyzer.texi.
32910 * common.opt (-fanalyzer): New driver option.
32911 * config.in: Regenerate.
32912 * configure: Regenerate.
32913 * configure.ac (--disable-analyzer, ENABLE_ANALYZER): New option.
32914 (gccdepdir): Also create depdir for "analyzer" subdir.
32915 * digraph.cc: New file.
32916 * digraph.h: New file.
32917 * doc/analyzer.texi: New file.
32918 * doc/gccint.texi ("Static Analyzer") New menu item.
32919 (analyzer.texi): Include it.
32920 * doc/invoke.texi ("Static Analyzer Options"): New list and new section.
32921 ("Warning Options"): Add static analysis warnings to the list.
32922 (-Wno-analyzer-double-fclose): New option.
32923 (-Wno-analyzer-double-free): New option.
32924 (-Wno-analyzer-exposure-through-output-file): New option.
32925 (-Wno-analyzer-file-leak): New option.
32926 (-Wno-analyzer-free-of-non-heap): New option.
32927 (-Wno-analyzer-malloc-leak): New option.
32928 (-Wno-analyzer-possible-null-argument): New option.
32929 (-Wno-analyzer-possible-null-dereference): New option.
32930 (-Wno-analyzer-null-argument): New option.
32931 (-Wno-analyzer-null-dereference): New option.
32932 (-Wno-analyzer-stale-setjmp-buffer): New option.
32933 (-Wno-analyzer-tainted-array-index): New option.
32934 (-Wno-analyzer-use-after-free): New option.
32935 (-Wno-analyzer-use-of-pointer-in-stale-stack-frame): New option.
32936 (-Wno-analyzer-use-of-uninitialized-value): New option.
32937 (-Wanalyzer-too-complex): New option.
32938 (-fanalyzer-call-summaries): New warning.
32939 (-fanalyzer-checker=): New warning.
32940 (-fanalyzer-fine-grained): New warning.
32941 (-fno-analyzer-state-merge): New warning.
32942 (-fno-analyzer-state-purge): New warning.
32943 (-fanalyzer-transitivity): New warning.
32944 (-fanalyzer-verbose-edges): New warning.
32945 (-fanalyzer-verbose-state-changes): New warning.
32946 (-fanalyzer-verbosity=): New warning.
32947 (-fdump-analyzer): New warning.
32948 (-fdump-analyzer-callgraph): New warning.
32949 (-fdump-analyzer-exploded-graph): New warning.
32950 (-fdump-analyzer-exploded-nodes): New warning.
32951 (-fdump-analyzer-exploded-nodes-2): New warning.
32952 (-fdump-analyzer-exploded-nodes-3): New warning.
32953 (-fdump-analyzer-supergraph): New warning.
32954 * doc/sourcebuild.texi (dg-require-dot): New.
32955 (dg-check-dot): New.
32956 * gdbinit.in (break-on-saved-diagnostic): New command.
32957 * graphviz.cc: New file.
32958 * graphviz.h: New file.
32959 * ordered-hash-map-tests.cc: New file.
32960 * ordered-hash-map.h: New file.
32961 * passes.def (pass_analyzer): Add before
32962 pass_ipa_whole_program_visibility.
32963 * selftest-run-tests.c (selftest::run_tests): Call
32964 selftest::ordered_hash_map_tests_cc_tests.
32965 * selftest.h (selftest::ordered_hash_map_tests_cc_tests): New
32967 * shortest-paths.h: New file.
32968 * timevar.def (TV_ANALYZER): New timevar.
32969 (TV_ANALYZER_SUPERGRAPH): Likewise.
32970 (TV_ANALYZER_STATE_PURGE): Likewise.
32971 (TV_ANALYZER_PLAN): Likewise.
32972 (TV_ANALYZER_SCC): Likewise.
32973 (TV_ANALYZER_WORKLIST): Likewise.
32974 (TV_ANALYZER_DUMP): Likewise.
32975 (TV_ANALYZER_DIAGNOSTICS): Likewise.
32976 (TV_ANALYZER_SHORTEST_PATHS): Likewise.
32977 * tree-pass.h (make_pass_analyzer): New decl.
32978 * tristate.cc: New file.
32979 * tristate.h: New file.
32981 2020-01-14 Uroš Bizjak <ubizjak@gmail.com>
32984 * config/i386/i386.md (*movsf_internal): Require SSE2 ISA for
32985 alternatives 9 and 10.
32987 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32989 * attribs.c (excl_hash_traits::empty_zero_p): New static constant.
32990 * gcov.c (function_start_pair_hash::empty_zero_p): Likewise.
32991 * graphite.c (struct sese_scev_hash::empty_zero_p): Likewise.
32992 * hash-map-tests.c (selftest::test_nonzero_empty_key): New selftest.
32993 (selftest::hash_map_tests_c_tests): Call it.
32994 * hash-map-traits.h (simple_hashmap_traits::empty_zero_p):
32995 New static constant, using the value of = H::empty_zero_p.
32996 (unbounded_hashmap_traits::empty_zero_p): Likewise, using the value
32997 from default_hash_traits <Value>.
32998 * hash-map.h (hash_map::empty_zero_p): Likewise, using the value
33000 * hash-set-tests.c (value_hash_traits::empty_zero_p): Likewise.
33001 * hash-table.h (hash_table::alloc_entries): Guard the loop of
33002 calls to mark_empty with !Descriptor::empty_zero_p.
33003 (hash_table::empty_slow): Conditionalize the memset call with a
33004 check that Descriptor::empty_zero_p; otherwise, loop through the
33005 entries calling mark_empty on them.
33006 * hash-traits.h (int_hash::empty_zero_p): New static constant.
33007 (pointer_hash::empty_zero_p): Likewise.
33008 (pair_hash::empty_zero_p): Likewise.
33009 * ipa-devirt.c (default_hash_traits <type_pair>::empty_zero_p):
33011 * ipa-prop.c (ipa_bit_ggc_hash_traits::empty_zero_p): Likewise.
33012 (ipa_vr_ggc_hash_traits::empty_zero_p): Likewise.
33013 * profile.c (location_triplet_hash::empty_zero_p): Likewise.
33014 * sanopt.c (sanopt_tree_triplet_hash::empty_zero_p): Likewise.
33015 (sanopt_tree_couple_hash::empty_zero_p): Likewise.
33016 * tree-hasher.h (int_tree_hasher::empty_zero_p): Likewise.
33017 * tree-ssa-sccvn.c (vn_ssa_aux_hasher::empty_zero_p): Likewise.
33018 * tree-vect-slp.c (bst_traits::empty_zero_p): Likewise.
33019 * tree-vectorizer.h
33020 (default_hash_traits<scalar_cond_masked_key>::empty_zero_p):
33023 2020-01-14 Kewen Lin <linkw@gcc.gnu.org>
33025 * cfgloopanal.c (average_num_loop_insns): Free bbs when early return,
33026 fix typo on return value.
33028 2020-01-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
33031 * cgraph.c (symbol_table::create_edge): Init speculative_id and
33033 (cgraph_edge::make_speculative): Add param for setting speculative_id
33035 (cgraph_edge::speculative_call_info): Update comments and find reference
33036 by speculative_id for multiple indirect targets.
33037 (cgraph_edge::resolve_speculation): Decrease the speculations
33038 for indirect edge, drop it's speculative if not direct target
33039 left. Update comments.
33040 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
33041 (cgraph_node::dump): Print num_speculative_call_targets.
33042 (cgraph_node::verify_node): Don't report error if speculative
33043 edge not include statement.
33044 (cgraph_edge::num_speculative_call_targets_p): New function.
33045 * cgraph.h (int common_target_id): Remove.
33046 (int common_target_probability): Remove.
33047 (num_speculative_call_targets): New variable.
33048 (make_speculative): Add param for setting speculative_id.
33049 (cgraph_edge::num_speculative_call_targets_p): New declare.
33050 (target_prob): New variable.
33051 (speculative_id): New variable.
33052 * ipa-fnsummary.c (analyze_function_body): Create and duplicate
33053 call summaries for multiple speculative call targets.
33054 * cgraphclones.c (cgraph_node::create_clone): Clone speculative_id.
33055 * ipa-profile.c (struct speculative_call_target): New struct.
33056 (class speculative_call_summary): New class.
33057 (class speculative_call_summaries): New class.
33058 (call_sums): New variable.
33059 (ipa_profile_generate_summary): Generate indirect multiple targets summaries.
33060 (ipa_profile_write_edge_summary): New function.
33061 (ipa_profile_write_summary): Stream out indirect multiple targets summaries.
33062 (ipa_profile_dump_all_summaries): New function.
33063 (ipa_profile_read_edge_summary): New function.
33064 (ipa_profile_read_summary_section): New function.
33065 (ipa_profile_read_summary): Stream in indirect multiple targets summaries.
33066 (ipa_profile): Generate num_speculative_call_targets from
33068 * ipa-ref.h (speculative_id): New variable.
33069 * ipa-utils.c (ipa_merge_profiles): Update with target_prob.
33070 * lto-cgraph.c (lto_output_edge): Remove indirect common_target_id and
33071 common_target_probability. Stream out speculative_id and
33072 num_speculative_call_targets.
33073 (input_edge): Likewise.
33074 * predict.c (dump_prediction): Remove edges count assert to be
33076 * symtab.c (symtab_node::create_reference): Init speculative_id.
33077 (symtab_node::clone_references): Clone speculative_id.
33078 (symtab_node::clone_referring): Clone speculative_id.
33079 (symtab_node::clone_reference): Clone speculative_id.
33080 (symtab_node::clear_stmts_in_references): Clear speculative_id.
33081 * tree-inline.c (copy_bb): Duplicate all the speculative edges
33082 if indirect call contains multiple speculative targets.
33083 * value-prof.h (check_ic_target): Remove.
33084 * value-prof.c (gimple_value_profile_transformations):
33085 Use void function gimple_ic_transform.
33086 * value-prof.c (gimple_ic_transform): Handle topn case.
33087 Fix comment typos. Change it to a void function.
33089 2020-01-13 Andrew Pinski <apinski@marvell.com>
33091 * config/aarch64/aarch64-cores.def (octeontx2): New define.
33092 (octeontx2t98): New define.
33093 (octeontx2t96): New define.
33094 (octeontx2t93): New define.
33095 (octeontx2f95): New define.
33096 (octeontx2f95n): New define.
33097 (octeontx2f95mm): New define.
33098 * config/aarch64/aarch64-tune.md: Regenerate.
33099 * doc/invoke.texi (-mcpu=): Document the new cpu types.
33101 2020-01-13 Jason Merrill <jason@redhat.com>
33103 PR c++/33799 - destroy return value if local cleanup throws.
33104 * gimplify.c (gimplify_return_expr): Handle COMPOUND_EXPR.
33106 2020-01-13 Martin Liska <mliska@suse.cz>
33108 * ipa-cp.c (get_max_overall_size): Use newly
33109 renamed param param_ipa_cp_unit_growth.
33110 * params.opt: Remove legacy param name.
33112 2020-01-13 Martin Sebor <msebor@redhat.com>
33114 PR tree-optimization/93213
33115 * tree-ssa-strlen.c (handle_store): Only allow single-byte nul-over-nul
33116 stores to be eliminated.
33118 2020-01-13 Martin Liska <mliska@suse.cz>
33120 * opts.c (print_help): Do not print CL_PARAM
33121 and CL_WARNING for CL_OPTIMIZATION.
33123 2020-01-13 Jonathan Wakely <jwakely@redhat.com>
33126 * doc/invoke.texi (Warning Options): Add caveat about some warnings
33127 depending on optimization settings.
33129 2020-01-13 Jakub Jelinek <jakub@redhat.com>
33131 PR tree-optimization/90838
33132 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
33133 SCALAR_INT_TYPE_MODE directly in CTZ_DEFINED_VALUE_AT_ZERO macro
33134 argument rather than to initialize temporary for targets that
33135 don't use the mode argument at all. Initialize ctzval to avoid
33138 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
33140 * tree.h (OMP_CLAUSE_USE_DEVICE_PTR_IF_PRESENT): New definition.
33141 * tree-core.h: Document it.
33142 * gimplify.c (gimplify_omp_workshare): Set it.
33143 * omp-low.c (lower_omp_target): Use it.
33144 * tree-pretty-print.c (dump_omp_clause): Print it.
33146 * omp-low.c (lower_omp_target) <OMP_CLAUSE_USE_DEVICE_PTR etc.>:
33147 Assert that for OpenACC we always have 'GOMP_MAP_USE_DEVICE_PTR'.
33149 2020-01-10 David Malcolm <dmalcolm@redhat.com>
33151 * Makefile.in (OBJS): Add tree-diagnostic-path.o.
33152 * common.opt (fdiagnostics-path-format=): New option.
33153 (diagnostic_path_format): New enum.
33154 (fdiagnostics-show-path-depths): New option.
33155 * coretypes.h (diagnostic_event_id_t): New forward decl.
33156 * diagnostic-color.c (color_dict): Add "path".
33157 * diagnostic-event-id.h: New file.
33158 * diagnostic-format-json.cc (json_from_expanded_location): Make
33160 (json_end_diagnostic): Call context->make_json_for_path if it
33161 exists and the diagnostic has a path.
33162 (diagnostic_output_format_init): Clear context->print_path.
33163 * diagnostic-path.h: New file.
33164 * diagnostic-show-locus.c (colorizer::set_range): Special-case
33165 when printing a run of events in a diagnostic_path so that they
33166 all get the same color.
33167 (layout::m_diagnostic_path_p): New field.
33168 (layout::layout): Initialize it.
33169 (layout::print_any_labels): Don't colorize the label text for an
33170 event in a diagnostic_path.
33171 (gcc_rich_location::add_location_if_nearby): Add
33172 "restrict_to_current_line_spans" and "label" params. Pass the
33173 former to layout.maybe_add_location_range; pass the latter
33174 when calling add_range.
33175 * diagnostic.c: Include "diagnostic-path.h".
33176 (diagnostic_initialize): Initialize context->path_format and
33177 context->show_path_depths.
33178 (diagnostic_show_any_path): New function.
33179 (diagnostic_path::interprocedural_p): New function.
33180 (diagnostic_report_diagnostic): Call diagnostic_show_any_path.
33181 (simple_diagnostic_path::num_events): New function.
33182 (simple_diagnostic_path::get_event): New function.
33183 (simple_diagnostic_path::add_event): New function.
33184 (simple_diagnostic_event::simple_diagnostic_event): New ctor.
33185 (simple_diagnostic_event::~simple_diagnostic_event): New dtor.
33186 (debug): New overload taking a diagnostic_path *.
33187 * diagnostic.def (DK_DIAGNOSTIC_PATH): New.
33188 * diagnostic.h (enum diagnostic_path_format): New enum.
33189 (json::value): New forward decl.
33190 (diagnostic_context::path_format): New field.
33191 (diagnostic_context::show_path_depths): New field.
33192 (diagnostic_context::print_path): New callback field.
33193 (diagnostic_context::make_json_for_path): New callback field.
33194 (diagnostic_show_any_path): New decl.
33195 (json_from_expanded_location): New decl.
33196 * doc/invoke.texi (-fdiagnostics-path-format=): New option.
33197 (-fdiagnostics-show-path-depths): New option.
33198 (-fdiagnostics-color): Add "path" to description of default
33199 GCC_COLORS; describe it.
33200 (-fdiagnostics-format=json): Document how diagnostic paths are
33201 represented in the JSON output format.
33202 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
33203 Add optional params "restrict_to_current_line_spans" and "label".
33204 * opts.c (common_handle_option): Handle
33205 OPT_fdiagnostics_path_format_ and
33206 OPT_fdiagnostics_show_path_depths.
33207 * pretty-print.c: Include "diagnostic-event-id.h".
33208 (pp_format): Implement "%@" format code for printing
33209 diagnostic_event_id_t *.
33210 (selftest::test_pp_format): Add tests for "%@".
33211 * selftest-run-tests.c (selftest::run_tests): Call
33212 selftest::tree_diagnostic_path_cc_tests.
33213 * selftest.h (selftest::tree_diagnostic_path_cc_tests): New decl.
33214 * toplev.c (general_init): Initialize global_dc->path_format and
33215 global_dc->show_path_depths.
33216 * tree-diagnostic-path.cc: New file.
33217 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Make
33218 non-static. Drop "diagnostic" param in favor of storing the
33219 original value of "where" and re-using it.
33220 (virt_loc_aware_diagnostic_finalizer): Update for dropped param of
33221 maybe_unwind_expanded_macro_loc.
33222 (tree_diagnostics_defaults): Initialize context->print_path and
33223 context->make_json_for_path.
33224 * tree-diagnostic.h (default_tree_diagnostic_path_printer): New
33226 (default_tree_make_json_for_path): New decl.
33227 (maybe_unwind_expanded_macro_loc): New decl.
33229 2020-01-10 Jakub Jelinek <jakub@redhat.com>
33231 PR tree-optimization/93210
33232 * fold-const.h (native_encode_initializer,
33233 can_native_interpret_type_p): Declare.
33234 * fold-const.c (native_encode_string): Fix up handling with off != -1,
33236 (native_encode_initializer): New function, moved from dwarf2out.c.
33237 Adjust to native_encode_expr compatible arguments, including dry-run
33238 and partial extraction modes. Don't handle STRING_CST.
33239 (can_native_interpret_type_p): No longer static.
33240 * gimple-fold.c (fold_ctor_reference): For native_encode_expr, verify
33241 offset / BITS_PER_UNIT fits into int and don't call it if
33242 can_native_interpret_type_p fails. If suboff is NULL and for
33243 CONSTRUCTOR fold_{,non}array_ctor_reference returns NULL, retry with
33244 native_encode_initializer.
33245 (fold_const_aggregate_ref_1): Formatting fix.
33246 * dwarf2out.c (native_encode_initializer): Moved to fold-const.c.
33247 (tree_add_const_value_attribute): Adjust caller.
33249 PR tree-optimization/90838
33250 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
33251 SCALAR_INT_TYPE_MODE instead of TYPE_MODE as operand of
33252 CTZ_DEFINED_VALUE_AT_ZERO.
33254 2020-01-10 Vladimir Makarov <vmakarov@redhat.com>
33256 PR inline-asm/93027
33257 * lra-constraints.c (match_reload): Permit input operands have the
33258 same mode as output while other input operands have a different
33261 2020-01-10 Wilco Dijkstra <wdijkstr@arm.com>
33263 PR tree-optimization/90838
33264 * tree-ssa-forwprop.c (check_ctz_array): Add new function.
33265 (check_ctz_string): Likewise.
33266 (optimize_count_trailing_zeroes): Likewise.
33267 (simplify_count_trailing_zeroes): Likewise.
33268 (pass_forwprop::execute): Try ctz simplification.
33269 * match.pd: Add matching for ctz idioms.
33271 2020-01-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
33273 * config/aarch64/aarch64.c (aarch64_invalid_conversion): New function
33275 (aarch64_invalid_unary_op): New function for target hook.
33276 (aarch64_invalid_binary_op): New function for target hook.
33278 2020-01-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
33280 * config.gcc: Add arm_bf16.h.
33281 * config/aarch64/aarch64-builtins.c
33282 (aarch64_simd_builtin_std_type): Add BFmode.
33283 (aarch64_init_simd_builtin_types): Define element types for vector
33285 (aarch64_init_bf16_types): New function.
33286 (aarch64_general_init_builtins): Add arm_init_bf16_types function call.
33287 * config/aarch64/aarch64-modes.def: Add BFmode and V4BF, V8BF vector
33289 * config/aarch64/aarch64-simd-builtin-types.def: Add BF SIMD types.
33290 * config/aarch64/aarch64-simd.md: Add BF vector types to NEON move
33292 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): Add V4BF.
33293 (AARCH64_VALID_SIMD_QREG_MODE): Add V8BF.
33294 * config/aarch64/aarch64.c
33295 (aarch64_classify_vector_mode): Add support for BF types.
33296 (aarch64_gimplify_va_arg_expr): Add support for BF types.
33297 (aarch64_vq_mode): Add support for BF types.
33298 (aarch64_simd_container_mode): Add support for BF types.
33299 (aarch64_mangle_type): Add support for BF scalar type.
33300 * config/aarch64/aarch64.md: Add BFmode to movhf pattern.
33301 * config/aarch64/arm_bf16.h: New file.
33302 * config/aarch64/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
33303 * config/aarch64/iterators.md: Add BF types to mode attributes.
33304 (HFBF, GPF_TF_F16_MOV, VDMOV, VQMOV, VQMOV_NO2Em VALL_F16MOV): New.
33306 2020-01-10 Jason Merrill <jason@redhat.com>
33308 PR c++/93173 - incorrect tree sharing.
33309 * gimplify.c (copy_if_shared): No longer static.
33310 * gimplify.h: Declare it.
33312 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
33314 * doc/invoke.texi (-msve-vector-bits=): Document that
33315 -msve-vector-bits=128 now generates VL-specific code for
33316 little-endian targets.
33317 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types): Use
33318 build_vector_type_for_mode to construct the data vector types.
33319 * config/aarch64/aarch64.c (aarch64_convert_sve_vector_bits): Generate
33320 VL-specific code for -msve-vector-bits=128 on little-endian targets.
33321 (aarch64_simd_container_mode): Always prefer Advanced SIMD modes
33322 for 128-bit vectors.
33324 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
33326 * config/aarch64/aarch64.c (aarch64_evpc_sel): Fix gen_vcond_mask
33329 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
33331 * config/aarch64/aarch64-builtins.c
33332 (aarch64_builtin_vectorized_function): Check for specific vector modes,
33333 rather than checking the number of elements and the element mode.
33335 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
33337 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
33338 get_related_vectype_for_scalar_type rather than build_vector_type
33339 to create the index type for a conditional reduction.
33341 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
33343 * tree-vect-loop.c (update_epilogue_loop_vinfo): Update DR_REF
33344 for any type of gather or scatter, including strided accesses.
33346 2020-01-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
33348 * tree-vectorizer.h (get_dr_vinfo_offset): Add missing function
33351 2020-01-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
33353 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Use
33354 get_dr_vinfo_offset
33355 * tree-vect-loop.c (update_epilogue_loop_vinfo): Remove orig_drs_init
33356 parameter and its use to reset DR_OFFSET's.
33357 (vect_transform_loop): Remove orig_drs_init argument.
33358 * tree-vect-loop-manip.c (vect_update_init_of_dr): Update the offset
33359 member of dr_vec_info rather than the offset of the associated
33360 data_reference's innermost_loop_behavior.
33361 (vect_update_init_of_dr): Pass dr_vec_info instead of data_reference.
33362 (vect_do_peeling): Remove orig_drs_init parameter and its construction.
33363 * tree-vect-stmts.c (check_scan_store): Replace use of DR_OFFSET with
33364 get_dr_vinfo_offset.
33365 (vectorizable_store): Likewise.
33366 (vectorizable_load): Likewise.
33368 2020-01-10 Richard Biener <rguenther@suse.de>
33370 * gimple-ssa-store-merging
33371 (pass_store_merging::terminate_all_aliasing_chains): Cache alias info.
33373 2020-01-10 Martin Liska <mliska@suse.cz>
33376 * ipa-inline-analysis.c (offline_size): Make proper parenthesis
33377 encapsulation that was there before r280040.
33379 2020-01-10 Richard Biener <rguenther@suse.de>
33381 PR middle-end/93199
33382 * tree-eh.c (sink_clobbers): Move clobbers to out-of-IL
33383 sequences to avoid walking them again for secondary opportunities.
33384 (pass_lower_eh_dispatch::execute): Instead actually insert
33387 2020-01-10 Richard Biener <rguenther@suse.de>
33389 PR middle-end/93199
33390 * tree-eh.c (redirect_eh_edge_1): Avoid some work if possible.
33391 (cleanup_all_empty_eh): Walk landing pads in reverse order to
33392 avoid quadraticness.
33394 2020-01-10 Martin Jambor <mjambor@suse.cz>
33396 * params.opt (param_ipa_sra_max_replacements): Mark as Optimization.
33397 * ipa-sra.c (pull_accesses_from_callee): New parameter caller, use it
33398 to get param_ipa_sra_max_replacements.
33399 (param_splitting_across_edge): Pass the caller to
33400 pull_accesses_from_callee.
33402 2020-01-10 Martin Jambor <mjambor@suse.cz>
33404 * params.opt (param_ipcp_unit_growth): Mark as Optimization.
33405 * ipa-cp.c (max_new_size): Removed.
33406 (orig_overall_size): New variable.
33407 (get_max_overall_size): New function.
33408 (estimate_local_effects): Use it. Adjust dump.
33409 (decide_about_value): Likewise.
33410 (ipcp_propagate_stage): Do not calculate max_new_size, just store
33411 orig_overall_size. Adjust dump.
33412 (ipa_cp_c_finalize): Clear orig_overall_size instead of max_new_size.
33414 2020-01-10 Martin Jambor <mjambor@suse.cz>
33416 * params.opt (param_ipa_max_agg_items): Mark as Optimization
33417 * ipa-cp.c (merge_agg_lats_step): New parameter max_agg_items, use
33418 instead of param_ipa_max_agg_items.
33419 (merge_aggregate_lattices): Extract param_ipa_max_agg_items from
33420 optimization info for the callee.
33422 2020-01-09 Kwok Cheung Yeung <kcy@codesourcery.com>
33424 * lto-streamer-in.c (input_function): Remove streamed-in inline debug
33425 markers if debug_inline_points is false.
33427 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33429 * config.gcc (aarch64*-*-*): Add aarch64-sve-builtins-sve2.o to
33431 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): Depend on
33432 aarch64-sve-builtins-base.def, aarch64-sve-builtins-sve2.def and
33433 aarch64-sve-builtins-sve2.h.
33434 (aarch64-sve-builtins-sve2.o): New rule.
33435 * config/aarch64/aarch64.h (AARCH64_ISA_SVE2_AES): New macro.
33436 (AARCH64_ISA_SVE2_BITPERM, AARCH64_ISA_SVE2_SHA3): Likewise.
33437 (AARCH64_ISA_SVE2_SM4, TARGET_SVE2_AES, TARGET_SVE2_BITPERM): Likewise.
33438 (TARGET_SVE2_SHA, TARGET_SVE2_SM4): Likewise.
33439 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Handle
33440 TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3 and
33442 * config/aarch64/aarch64-sve.md: Update comments with SVE2
33443 instructions that are handled here.
33444 (@cond_asrd<mode>): Generalize to...
33445 (@cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>): ...this.
33446 (*cond_asrd<mode>_2): Generalize to...
33447 (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_2): ...this.
33448 (*cond_asrd<mode>_z): Generalize to...
33449 (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_z): ...this.
33450 * config/aarch64/aarch64.md (UNSPEC_LDNT1_GATHER): New unspec.
33451 (UNSPEC_STNT1_SCATTER, UNSPEC_WHILEGE, UNSPEC_WHILEGT): Likewise.
33452 (UNSPEC_WHILEHI, UNSPEC_WHILEHS): Likewise.
33453 * config/aarch64/aarch64-sve2.md (@aarch64_gather_ldnt<mode>): New
33455 (@aarch64_gather_ldnt_<ANY_EXTEND:optab><SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
33456 (@aarch64_scatter_stnt<mode>): Likewise.
33457 (@aarch64_scatter_stnt_<SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
33458 (@aarch64_mul_lane_<mode>): Likewise.
33459 (@aarch64_sve_suqadd<mode>_const): Likewise.
33460 (*<sur>h<addsub><mode>): Generalize to...
33461 (@aarch64_pred_<SVE2_COND_INT_BINARY_REV:sve_int_op><mode>): ...this
33463 (@cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>): New expander.
33464 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_2): New pattern.
33465 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_3): Likewise.
33466 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_any): Likewise.
33467 (*cond_<SVE2_COND_INT_BINARY_NOREV:sve_int_op><mode>_z): Likewise.
33468 (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op><mode>):: Likewise.
33469 (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op>_lane_<mode>): Likewise.
33470 (@aarch64_pred_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): Likewise.
33471 (@cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): New expander.
33472 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_2): New pattern.
33473 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_3): Likewise.
33474 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_any): Likewise.
33475 (@aarch64_sve_<SVE2_INT_TERNARY:sve_int_op><mode>): Likewise.
33476 (@aarch64_sve_<SVE2_INT_TERNARY_LANE:sve_int_op>_lane_<mode>)
33477 (@aarch64_sve_add_mul_lane_<mode>): Likewise.
33478 (@aarch64_sve_sub_mul_lane_<mode>): Likewise.
33479 (@aarch64_sve2_xar<mode>): Likewise.
33480 (@aarch64_sve2_bcax<mode>): Likewise.
33481 (*aarch64_sve2_eor3<mode>): Rename to...
33482 (@aarch64_sve2_eor3<mode>): ...this.
33483 (@aarch64_sve2_bsl<mode>): New expander.
33484 (@aarch64_sve2_nbsl<mode>): Likewise.
33485 (@aarch64_sve2_bsl1n<mode>): Likewise.
33486 (@aarch64_sve2_bsl2n<mode>): Likewise.
33487 (@aarch64_sve_add_<SHIFTRT:sve_int_op><mode>): Likewise.
33488 (*aarch64_sve2_sra<mode>): Add MOVPRFX support.
33489 (@aarch64_sve_add_<VRSHR_N:sve_int_op><mode>): New pattern.
33490 (@aarch64_sve_<SVE2_INT_SHIFT_INSERT:sve_int_op><mode>): Likewise.
33491 (@aarch64_sve2_<USMAX:su>aba<mode>): New expander.
33492 (*aarch64_sve2_<USMAX:su>aba<mode>): New pattern.
33493 (@aarch64_sve_<SVE2_INT_BINARY_WIDE:sve_int_op><mode>): Likewise.
33494 (<su>mull<bt><Vwide>): Generalize to...
33495 (@aarch64_sve_<SVE2_INT_BINARY_LONG:sve_int_op><mode>): ...this new
33497 (@aarch64_sve_<SVE2_INT_BINARY_LONG_lANE:sve_int_op>_lane_<mode>)
33498 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_LONG:sve_int_op><mode>)
33499 (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG:sve_int_op><mode>)
33500 (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
33501 (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG:sve_int_op><mode>)
33502 (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
33503 (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG:sve_int_op><mode>)
33504 (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
33505 (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG:sve_int_op><mode>)
33506 (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
33507 (@aarch64_sve_<SVE2_FP_TERNARY_LONG:sve_fp_op><mode>): New patterns.
33508 (@aarch64_<SVE2_FP_TERNARY_LONG_LANE:sve_fp_op>_lane_<mode>)
33509 (@aarch64_sve_<SVE2_INT_UNARY_NARROWB:sve_int_op><mode>): Likewise.
33510 (@aarch64_sve_<SVE2_INT_UNARY_NARROWT:sve_int_op><mode>): Likewise.
33511 (@aarch64_sve_<SVE2_INT_BINARY_NARROWB:sve_int_op><mode>): Likewise.
33512 (@aarch64_sve_<SVE2_INT_BINARY_NARROWT:sve_int_op><mode>): Likewise.
33513 (<SHRNB:r>shrnb<mode>): Generalize to...
33514 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWB:sve_int_op><mode>): ...this
33516 (<SHRNT:r>shrnt<mode>): Generalize to...
33517 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWT:sve_int_op><mode>): ...this
33519 (@aarch64_pred_<SVE2_INT_BINARY_PAIR:sve_int_op><mode>): New pattern.
33520 (@aarch64_pred_<SVE2_FP_BINARY_PAIR:sve_fp_op><mode>): Likewise.
33521 (@cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>): New expander.
33522 (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_2): New pattern.
33523 (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_z): Likewise.
33524 (@aarch64_sve_<SVE2_INT_CADD:optab><mode>): Likewise.
33525 (@aarch64_sve_<SVE2_INT_CMLA:optab><mode>): Likewise.
33526 (@aarch64_<SVE2_INT_CMLA:optab>_lane_<mode>): Likewise.
33527 (@aarch64_sve_<SVE2_INT_CDOT:optab><mode>): Likewise.
33528 (@aarch64_<SVE2_INT_CDOT:optab>_lane_<mode>): Likewise.
33529 (@aarch64_pred_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): Likewise.
33530 (@cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New expander.
33531 (*cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New pattern.
33532 (@aarch64_sve2_cvtnt<mode>): Likewise.
33533 (@aarch64_pred_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): Likewise.
33534 (@cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): New expander.
33535 (*cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>_any): New pattern.
33536 (@aarch64_sve2_cvtxnt<mode>): Likewise.
33537 (@aarch64_pred_<SVE2_U32_UNARY:sve_int_op><mode>): Likewise.
33538 (@cond_<SVE2_U32_UNARY:sve_int_op><mode>): New expander.
33539 (*cond_<SVE2_U32_UNARY:sve_int_op><mode>): New pattern.
33540 (@aarch64_pred_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): Likewise.
33541 (@cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New expander.
33542 (*cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New pattern.
33543 (@aarch64_sve2_pmul<mode>): Likewise.
33544 (@aarch64_sve_<SVE2_PMULL:optab><mode>): Likewise.
33545 (@aarch64_sve_<SVE2_PMULL_PAIR:optab><mode>): Likewise.
33546 (@aarch64_sve2_tbl2<mode>): Likewise.
33547 (@aarch64_sve2_tbx<mode>): Likewise.
33548 (@aarch64_sve_<SVE2_INT_BITPERM:sve_int_op><mode>): Likewise.
33549 (@aarch64_sve2_histcnt<mode>): Likewise.
33550 (@aarch64_sve2_histseg<mode>): Likewise.
33551 (@aarch64_pred_<SVE2_MATCH:sve_int_op><mode>): Likewise.
33552 (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_cc): Likewise.
33553 (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_ptest): Likewise.
33554 (aarch64_sve2_aes<CRYPTO_AES:aes_op>): Likewise.
33555 (aarch64_sve2_aes<CRYPTO_AESMC:aesmc_op>): Likewise.
33556 (*aarch64_sve2_aese_fused, *aarch64_sve2_aesd_fused): Likewise.
33557 (aarch64_sve2_rax1, aarch64_sve2_sm4e, aarch64_sve2_sm4ekey): Likewise.
33558 (<su>mulh<r>s<mode>3): Update after above pattern name changes.
33559 * config/aarch64/iterators.md (VNx16QI_ONLY, VNx4SF_ONLY)
33560 (SVE_STRUCT2, SVE_FULL_BHI, SVE_FULL_HSI, SVE_FULL_HDI)
33561 (SVE2_PMULL_PAIR_I): New mode iterators.
33562 (UNSPEC_ADCLB, UNSPEC_ADCLT, UNSPEC_ADDHNB, UNSPEC_ADDHNT, UNSPEC_BDEP)
33563 (UNSPEC_BEXT, UNSPEC_BGRP, UNSPEC_CADD90, UNSPEC_CADD270, UNSPEC_CDOT)
33564 (UNSPEC_CDOT90, UNSPEC_CDOT180, UNSPEC_CDOT270, UNSPEC_CMLA)
33565 (UNSPEC_CMLA90, UNSPEC_CMLA180, UNSPEC_CMLA270, UNSPEC_COND_FCVTLT)
33566 (UNSPEC_COND_FCVTNT, UNSPEC_COND_FCVTX, UNSPEC_COND_FCVTXNT)
33567 (UNSPEC_COND_FLOGB, UNSPEC_EORBT, UNSPEC_EORTB, UNSPEC_FADDP)
33568 (UNSPEC_FMAXP, UNSPEC_FMAXNMP, UNSPEC_FMLALB, UNSPEC_FMLALT)
33569 (UNSPEC_FMLSLB, UNSPEC_FMLSLT, UNSPEC_FMINP, UNSPEC_FMINNMP)
33570 (UNSPEC_HISTCNT, UNSPEC_HISTSEG, UNSPEC_MATCH, UNSPEC_NMATCH)
33571 (UNSPEC_PMULLB, UNSPEC_PMULLB_PAIR, UNSPEC_PMULLT, UNSPEC_PMULLT_PAIR)
33572 (UNSPEC_RADDHNB, UNSPEC_RADDHNT, UNSPEC_RSUBHNB, UNSPEC_RSUBHNT)
33573 (UNSPEC_SLI, UNSPEC_SRI, UNSPEC_SABDLB, UNSPEC_SABDLT, UNSPEC_SADDLB)
33574 (UNSPEC_SADDLBT, UNSPEC_SADDLT, UNSPEC_SADDWB, UNSPEC_SADDWT)
33575 (UNSPEC_SBCLB, UNSPEC_SBCLT, UNSPEC_SMAXP, UNSPEC_SMINP)
33576 (UNSPEC_SQCADD90, UNSPEC_SQCADD270, UNSPEC_SQDMULLB, UNSPEC_SQDMULLBT)
33577 (UNSPEC_SQDMULLT, UNSPEC_SQRDCMLAH, UNSPEC_SQRDCMLAH90)
33578 (UNSPEC_SQRDCMLAH180, UNSPEC_SQRDCMLAH270, UNSPEC_SQRSHRNB)
33579 (UNSPEC_SQRSHRNT, UNSPEC_SQRSHRUNB, UNSPEC_SQRSHRUNT, UNSPEC_SQSHRNB)
33580 (UNSPEC_SQSHRNT, UNSPEC_SQSHRUNB, UNSPEC_SQSHRUNT, UNSPEC_SQXTNB)
33581 (UNSPEC_SQXTNT, UNSPEC_SQXTUNB, UNSPEC_SQXTUNT, UNSPEC_SSHLLB)
33582 (UNSPEC_SSHLLT, UNSPEC_SSUBLB, UNSPEC_SSUBLBT, UNSPEC_SSUBLT)
33583 (UNSPEC_SSUBLTB, UNSPEC_SSUBWB, UNSPEC_SSUBWT, UNSPEC_SUBHNB)
33584 (UNSPEC_SUBHNT, UNSPEC_TBL2, UNSPEC_UABDLB, UNSPEC_UABDLT)
33585 (UNSPEC_UADDLB, UNSPEC_UADDLT, UNSPEC_UADDWB, UNSPEC_UADDWT)
33586 (UNSPEC_UMAXP, UNSPEC_UMINP, UNSPEC_UQRSHRNB, UNSPEC_UQRSHRNT)
33587 (UNSPEC_UQSHRNB, UNSPEC_UQSHRNT, UNSPEC_UQXTNB, UNSPEC_UQXTNT)
33588 (UNSPEC_USHLLB, UNSPEC_USHLLT, UNSPEC_USUBLB, UNSPEC_USUBLT)
33589 (UNSPEC_USUBWB, UNSPEC_USUBWT): New unspecs.
33590 (UNSPEC_SMULLB, UNSPEC_SMULLT, UNSPEC_UMULLB, UNSPEC_UMULLT)
33591 (UNSPEC_SMULHS, UNSPEC_SMULHRS, UNSPEC_UMULHS, UNSPEC_UMULHRS)
33592 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SHRNB, UNSPEC_SHRNT): Move
33594 (VNARROW, Ventype): New mode attributes.
33595 (Vewtype): Handle VNx2DI. Fix typo in comment.
33596 (VDOUBLE): New mode attribute.
33597 (sve_lane_con): Handle VNx8HI.
33598 (SVE_INT_UNARY): Include ss_abs and ss_neg for TARGET_SVE2.
33599 (SVE_INT_BINARY): Likewise ss_plus, us_plus, ss_minus and us_minus.
33600 (sve_int_op, sve_int_op_rev): Handle the above codes.
33601 (sve_pred_int_rhs2_operand): Likewise.
33602 (MULLBT, SHRNB, SHRNT): Delete.
33603 (SVE_INT_SHIFT_IMM): New int iterator.
33604 (SVE_WHILE): Add UNSPEC_WHILEGE, UNSPEC_WHILEGT, UNSPEC_WHILEHI
33605 and UNSPEC_WHILEHS for TARGET_SVE2.
33606 (SVE2_U32_UNARY, SVE2_INT_UNARY_NARROWB, SVE2_INT_UNARY_NARROWT)
33607 (SVE2_INT_BINARY, SVE2_INT_BINARY_LANE, SVE2_INT_BINARY_LONG)
33608 (SVE2_INT_BINARY_LONG_LANE, SVE2_INT_BINARY_NARROWB)
33609 (SVE2_INT_BINARY_NARROWT, SVE2_INT_BINARY_PAIR, SVE2_FP_BINARY_PAIR)
33610 (SVE2_INT_BINARY_PAIR_LONG, SVE2_INT_BINARY_WIDE): New int iterators.
33611 (SVE2_INT_SHIFT_IMM_LONG, SVE2_INT_SHIFT_IMM_NARROWB): Likewise.
33612 (SVE2_INT_SHIFT_IMM_NARROWT, SVE2_INT_SHIFT_INSERT, SVE2_INT_CADD)
33613 (SVE2_INT_BITPERM, SVE2_INT_TERNARY, SVE2_INT_TERNARY_LANE): Likewise.
33614 (SVE2_FP_TERNARY_LONG, SVE2_FP_TERNARY_LONG_LANE, SVE2_INT_CMLA)
33615 (SVE2_INT_CDOT, SVE2_INT_ADD_BINARY_LONG, SVE2_INT_QADD_BINARY_LONG)
33616 (SVE2_INT_SUB_BINARY_LONG, SVE2_INT_QSUB_BINARY_LONG): Likewise.
33617 (SVE2_INT_ADD_BINARY_LONG_LANE, SVE2_INT_QADD_BINARY_LONG_LANE)
33618 (SVE2_INT_SUB_BINARY_LONG_LANE, SVE2_INT_QSUB_BINARY_LONG_LANE)
33619 (SVE2_COND_INT_UNARY_FP, SVE2_COND_FP_UNARY_LONG): Likewise.
33620 (SVE2_COND_FP_UNARY_NARROWB, SVE2_COND_INT_BINARY): Likewise.
33621 (SVE2_COND_INT_BINARY_NOREV, SVE2_COND_INT_BINARY_REV): Likewise.
33622 (SVE2_COND_INT_SHIFT, SVE2_MATCH, SVE2_PMULL): Likewise.
33623 (optab): Handle the new unspecs.
33624 (su, r): Remove entries for UNSPEC_SHRNB, UNSPEC_SHRNT, UNSPEC_RSHRNB
33626 (lr): Handle the new unspecs.
33628 (cmp_op, while_optab_cmp, sve_int_op): Handle the new unspecs.
33629 (sve_int_op_rev, sve_int_add_op, sve_int_qadd_op, sve_int_sub_op)
33630 (sve_int_qsub_op): New int attributes.
33631 (sve_fp_op, rot): Handle the new unspecs.
33632 * config/aarch64/aarch64-sve-builtins.h
33633 (function_resolver::require_matching_pointer_type): Declare.
33634 (function_resolver::resolve_unary): Add an optional boolean argument.
33635 (function_resolver::finish_opt_n_resolution): Add an optional
33636 type_suffix_index argument.
33637 (gimple_folder::redirect_call): Declare.
33638 (gimple_expander::prepare_gather_address_operands): Add an optional
33640 * config/aarch64/aarch64-sve-builtins.cc: Include
33641 aarch64-sve-builtins-sve2.h.
33642 (TYPES_b_unsigned, TYPES_b_integer, TYPES_bh_integer): New macros.
33643 (TYPES_bs_unsigned, TYPES_hs_signed, TYPES_hs_integer): Likewise.
33644 (TYPES_hd_unsigned, TYPES_hsd_signed): Likewise.
33645 (TYPES_hsd_integer): Use TYPES_hsd_signed.
33646 (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): New macros.
33647 (TYPES_s_unsigned): Likewise.
33648 (TYPES_s_integer): Use TYPES_s_unsigned.
33649 (TYPES_sd_signed, TYPES_sd_unsigned): New macros.
33650 (TYPES_sd_integer): Use them.
33651 (TYPES_d_unsigned): New macro.
33652 (TYPES_d_integer): Use it.
33653 (TYPES_d_data, TYPES_cvt_long, TYPES_cvt_narrow_s): New macros.
33654 (TYPES_cvt_narrow): Likewise.
33655 (DEF_SVE_TYPES_ARRAY): Include the new types macros above.
33656 (preds_mx): New variable.
33657 (function_builder::add_overloaded_function): Allow the new feature
33658 set to be more restrictive than the original one.
33659 (function_resolver::infer_pointer_type): Remove qualifiers from
33660 the pointer type before printing it.
33661 (function_resolver::require_matching_pointer_type): New function.
33662 (function_resolver::resolve_sv_displacement): Handle functions
33663 that don't support 32-bit vector indices or svint32_t vector offsets.
33664 (function_resolver::finish_opt_n_resolution): Take the inferred type
33665 as a separate argument.
33666 (function_resolver::resolve_unary): Optionally treat all forms in
33667 the same way as normal merging functions.
33668 (gimple_folder::redirect_call): New function.
33669 (function_expander::prepare_gather_address_operands): Add an argument
33670 that says whether scaled forms are available. If they aren't,
33671 handle scaling of vector indices and don't add the extension and
33673 (function_expander::map_to_unspecs): If aarch64_sve isn't available,
33674 fall back to using cond_* instead.
33675 * config/aarch64/aarch64-sve-builtins-functions.h (rtx_code_function):
33676 Split out the member variables into...
33677 (rtx_code_function_base): ...this new base class.
33678 (rtx_code_function_rotated): Inherit rtx_code_function_base.
33679 (unspec_based_function): Split out the member variables into...
33680 (unspec_based_function_base): ...this new base class.
33681 (unspec_based_function_rotated): Inherit unspec_based_function_base.
33682 (unspec_based_function_exact_insn): New class.
33683 (unspec_based_add_function, unspec_based_add_lane_function)
33684 (unspec_based_lane_function, unspec_based_pred_function)
33685 (unspec_based_qadd_function, unspec_based_qadd_lane_function)
33686 (unspec_based_qsub_function, unspec_based_qsub_lane_function)
33687 (unspec_based_sub_function, unspec_based_sub_lane_function): New
33689 (unspec_based_fused_function): New class.
33690 (unspec_based_mla_function, unspec_based_mls_function): New typedefs.
33691 (unspec_based_fused_lane_function): New class.
33692 (unspec_based_mla_lane_function, unspec_based_mls_lane_function): New
33694 (CODE_FOR_MODE1): New macro.
33695 (fixed_insn_function): New class.
33696 (while_comparison): Likewise.
33697 * config/aarch64/aarch64-sve-builtins-shapes.h (binary_long_lane)
33698 (binary_long_opt_n, binary_narrowb_opt_n, binary_narrowt_opt_n)
33699 (binary_to_uint, binary_wide, binary_wide_opt_n, compare, compare_ptr)
33700 (load_ext_gather_index_restricted, load_ext_gather_offset_restricted)
33701 (load_gather_sv_restricted, shift_left_imm_long): Declare.
33702 (shift_left_imm_to_uint, shift_right_imm_narrowb): Likewise.
33703 (shift_right_imm_narrowt, shift_right_imm_narrowb_to_uint): Likewise.
33704 (shift_right_imm_narrowt_to_uint, store_scatter_index_restricted)
33705 (store_scatter_offset_restricted, tbl_tuple, ternary_long_lane)
33706 (ternary_long_opt_n, ternary_qq_lane_rotate, ternary_qq_rotate)
33707 (ternary_shift_left_imm, ternary_shift_right_imm, ternary_uint)
33708 (unary_convert_narrowt, unary_long, unary_narrowb, unary_narrowt)
33709 (unary_narrowb_to_uint, unary_narrowt_to_uint, unary_to_int): Likewise.
33710 * config/aarch64/aarch64-sve-builtins-shapes.cc (apply_predication):
33711 Also add an initial argument for unary_convert_narrowt, regardless
33712 of the predication type.
33713 (build_32_64): Allow loads and stores to specify MODE_none.
33714 (build_sv_index64, build_sv_uint_offset): New functions.
33715 (long_type_suffix): New function.
33716 (binary_imm_narrowb_base, binary_imm_narrowt_base): New classes.
33717 (binary_imm_long_base, load_gather_sv_base): Likewise.
33718 (shift_right_imm_narrow_wrapper, ternary_shift_imm_base): Likewise.
33719 (ternary_resize2_opt_n_base, ternary_resize2_lane_base): Likewise.
33720 (unary_narrowb_base, unary_narrowt_base): Likewise.
33721 (binary_long_lane_def, binary_long_lane): New shape.
33722 (binary_long_opt_n_def, binary_long_opt_n): Likewise.
33723 (binary_narrowb_opt_n_def, binary_narrowb_opt_n): Likewise.
33724 (binary_narrowt_opt_n_def, binary_narrowt_opt_n): Likewise.
33725 (binary_to_uint_def, binary_to_uint): Likewise.
33726 (binary_wide_def, binary_wide): Likewise.
33727 (binary_wide_opt_n_def, binary_wide_opt_n): Likewise.
33728 (compare_def, compare): Likewise.
33729 (compare_ptr_def, compare_ptr): Likewise.
33730 (load_ext_gather_index_restricted_def,
33731 load_ext_gather_index_restricted): Likewise.
33732 (load_ext_gather_offset_restricted_def,
33733 load_ext_gather_offset_restricted): Likewise.
33734 (load_gather_sv_def): Inherit from load_gather_sv_base.
33735 (load_gather_sv_restricted_def, load_gather_sv_restricted): New shape.
33736 (shift_left_imm_def, shift_left_imm): Likewise.
33737 (shift_left_imm_long_def, shift_left_imm_long): Likewise.
33738 (shift_left_imm_to_uint_def, shift_left_imm_to_uint): Likewise.
33739 (store_scatter_index_restricted_def,
33740 store_scatter_index_restricted): Likewise.
33741 (store_scatter_offset_restricted_def,
33742 store_scatter_offset_restricted): Likewise.
33743 (tbl_tuple_def, tbl_tuple): Likewise.
33744 (ternary_long_lane_def, ternary_long_lane): Likewise.
33745 (ternary_long_opt_n_def, ternary_long_opt_n): Likewise.
33746 (ternary_qq_lane_def): Inherit from ternary_resize2_lane_base.
33747 (ternary_qq_lane_rotate_def, ternary_qq_lane_rotate): New shape
33748 (ternary_qq_opt_n_def): Inherit from ternary_resize2_opt_n_base.
33749 (ternary_qq_rotate_def, ternary_qq_rotate): New shape.
33750 (ternary_shift_left_imm_def, ternary_shift_left_imm): Likewise.
33751 (ternary_shift_right_imm_def, ternary_shift_right_imm): Likewise.
33752 (ternary_uint_def, ternary_uint): Likewise.
33753 (unary_convert): Fix typo in comment.
33754 (unary_convert_narrowt_def, unary_convert_narrowt): New shape.
33755 (unary_long_def, unary_long): Likewise.
33756 (unary_narrowb_def, unary_narrowb): Likewise.
33757 (unary_narrowt_def, unary_narrowt): Likewise.
33758 (unary_narrowb_to_uint_def, unary_narrowb_to_uint): Likewise.
33759 (unary_narrowt_to_uint_def, unary_narrowt_to_uint): Likewise.
33760 (unary_to_int_def, unary_to_int): Likewise.
33761 * config/aarch64/aarch64-sve-builtins-base.cc (unspec_cmla)
33762 (unspec_fcmla, unspec_cond_fcmla, expand_mla_mls_lane): New functions.
33763 (svasrd_impl): Delete.
33764 (svcadd_impl::expand): Handle integer operations too.
33765 (svcmla_impl::expand, svcmla_lane::expand): Likewise, using the
33766 new functions to derive the unspec numbers.
33767 (svmla_svmls_lane_impl): Replace with...
33768 (svmla_lane_impl, svmls_lane_impl): ...these new classes. Handle
33769 integer operations too.
33770 (svwhile_impl): Rename to...
33771 (svwhilelx_impl): ...this and inherit from while_comparison.
33772 (svasrd): Use unspec_based_function.
33773 (svmla_lane): Use svmla_lane_impl.
33774 (svmls_lane): Use svmls_lane_impl.
33775 (svrecpe, svrsqrte): Handle unsigned integer operations too.
33776 (svwhilele, svwhilelt): Use svwhilelx_impl.
33777 * config/aarch64/aarch64-sve-builtins-sve2.h: New file.
33778 * config/aarch64/aarch64-sve-builtins-sve2.cc: Likewise.
33779 * config/aarch64/aarch64-sve-builtins-sve2.def: Likewise.
33780 * config/aarch64/aarch64-sve-builtins.def: Include
33781 aarch64-sve-builtins-sve2.def.
33783 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33785 * config/aarch64/aarch64-protos.h (aarch64_sve_arith_immediate_p)
33786 (aarch64_sve_sqadd_sqsub_immediate_p): Add a machine_mode argument.
33787 * config/aarch64/aarch64.c (aarch64_sve_arith_immediate_p)
33788 (aarch64_sve_sqadd_sqsub_immediate_p): Likewise. Handle scalar
33789 immediates as well as vector ones.
33790 * config/aarch64/predicates.md (aarch64_sve_arith_immediate)
33791 (aarch64_sve_sub_arith_immediate, aarch64_sve_qadd_immediate)
33792 (aarch64_sve_qsub_immediate): Update calls accordingly.
33794 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33796 * config/aarch64/aarch64-sve2.md: Add banner comments.
33797 (<su>mulh<r>s<mode>3): Move further up file.
33798 (<su>mull<bt><Vwide>, <r>shrnb<mode>, <r>shrnt<mode>)
33799 (*aarch64_sve2_sra<mode>): Move further down file.
33800 * config/aarch64/t-aarch64 (s-check-sve-md): Check aarch64-sve2.md too.
33802 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33804 * config/aarch64/iterators.md (SVE_WHILE): Add UNSPEC_WHILERW
33805 and UNSPEC_WHILEWR.
33806 (while_optab_cmp): Handle them.
33807 * config/aarch64/aarch64-sve.md
33808 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): Make public
33809 and add a "@" marker.
33810 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): Use it
33811 instead of gen_aarch64_sve2_while_ptest.
33812 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): Delete.
33814 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33816 * config/aarch64/aarch64.md (UNSPEC_WHILE_LE): Rename to...
33817 (UNSPEC_WHILELE): ...this.
33818 (UNSPEC_WHILE_LO): Rename to...
33819 (UNSPEC_WHILELO): ...this.
33820 (UNSPEC_WHILE_LS): Rename to...
33821 (UNSPEC_WHILELS): ...this.
33822 (UNSPEC_WHILE_LT): Rename to...
33823 (UNSPEC_WHILELT): ...this.
33824 * config/aarch64/iterators.md (SVE_WHILE): Update accordingly.
33825 (cmp_op, while_optab_cmp): Likewise.
33826 * config/aarch64/aarch64.c (aarch64_sve_move_pred_via_while): Likewise.
33827 * config/aarch64/aarch64-sve-builtins-base.cc (svwhilele): Likewise.
33828 (svwhilelt): Likewise.
33830 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33832 * config/aarch64/aarch64-sve-builtins-shapes.h (unary_count): Delete.
33833 (unary_to_uint): Define.
33834 * config/aarch64/aarch64-sve-builtins-shapes.cc (unary_count_def)
33835 (unary_count): Rename to...
33836 (unary_to_uint_def, unary_to_uint): ...this.
33837 * config/aarch64/aarch64-sve-builtins-base.def: Update accordingly.
33839 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33841 * config/aarch64/aarch64-sve-builtins-functions.h
33842 (code_for_mode_function): New class.
33843 (CODE_FOR_MODE0, QUIET_CODE_FOR_MODE0): New macros.
33844 * config/aarch64/aarch64-sve-builtins-base.cc (svcompact_impl)
33845 (svext_impl, svmul_lane_impl, svsplice_impl, svtmad_impl): Delete.
33846 (svcompact, svext, svsplice): Use QUIET_CODE_FOR_MODE0.
33847 (svmul_lane, svtmad): Use CODE_FOR_MODE0.
33849 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33851 * config/aarch64/iterators.md (addsub): New code attribute.
33852 * config/aarch64/aarch64-simd.md (aarch64_<su_optab><optab><mode>):
33854 (aarch64_<su_optab>q<addsub><mode>): ...this, making the same change
33855 in the asm string and attributes. Fix indentation.
33856 * config/aarch64/aarch64-sve.md (@aarch64_<su_optab><optab><mode>):
33858 (@aarch64_sve_<optab><mode>): ...this.
33859 * config/aarch64/aarch64-sve-builtins.h
33860 (function_expander::expand_signed_unpred_op): Delete.
33861 * config/aarch64/aarch64-sve-builtins.cc
33862 (function_expander::expand_signed_unpred_op): Likewise.
33863 (function_expander::map_to_rtx_codes): If the optab isn't defined,
33864 try using code_for_aarch64_sve instead.
33865 * config/aarch64/aarch64-sve-builtins-base.cc (svqadd_impl): Delete.
33866 (svqsub_impl): Likewise.
33867 (svqadd, svqsub): Use rtx_code_function instead.
33869 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33871 * config/aarch64/iterators.md (SRHSUB, URHSUB): Delete.
33872 (HADDSUB, sur, addsub): Remove them.
33874 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33876 * tree-nrv.c (pass_return_slot::execute): Handle all internal
33877 functions the same way, rather than singling out those that
33878 aren't mapped directly to optabs.
33880 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33882 * target.def (compatible_vector_types_p): New target hook.
33883 * hooks.h (hook_bool_const_tree_const_tree_true): Declare.
33884 * hooks.c (hook_bool_const_tree_const_tree_true): New function.
33885 * doc/tm.texi.in (TARGET_COMPATIBLE_VECTOR_TYPES_P): New hook.
33886 * doc/tm.texi: Regenerate.
33887 * gimple-expr.c: Include target.h.
33888 (useless_type_conversion_p): Use targetm.compatible_vector_types_p.
33889 * config/aarch64/aarch64.c (aarch64_compatible_vector_types_p): New
33891 (TARGET_COMPATIBLE_VECTOR_TYPES_P): Define.
33892 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
33893 Use the original predicate if it already has a suitable type.
33895 2020-01-09 Martin Jambor <mjambor@suse.cz>
33897 * cgraph.h (cgraph_edge): Make remove, set_call_stmt, make_direct,
33898 resolve_speculation and redirect_call_stmt_to_callee static. Change
33899 return type of set_call_stmt to cgraph_edge *.
33900 * auto-profile.c (afdo_indirect_call): Adjust call to
33901 redirect_call_stmt_to_callee.
33902 * cgraph.c (cgraph_edge::set_call_stmt): Make return cgraph-edge *,
33903 make the this pointer explicit, adjust self-recursive calls and the
33904 call top make_direct. Return the resulting edge.
33905 (cgraph_edge::remove): Make this pointer explicit.
33906 (cgraph_edge::resolve_speculation): Likewise, adjust call to remove.
33907 (cgraph_edge::make_direct): Likewise, adjust call to
33908 resolve_speculation.
33909 (cgraph_edge::redirect_call_stmt_to_callee): Likewise, also adjust
33910 call to set_call_stmt.
33911 (cgraph_update_edges_for_call_stmt_node): Update call to
33912 set_call_stmt and remove.
33913 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
33914 Renamed edge to master_edge. Adjusted calls to set_call_stmt.
33915 (cgraph_node::create_edge_including_clones): Moved "first" definition
33916 of edge to the block where it was used. Adjusted calls to
33918 (cgraph_node::remove_symbol_and_inline_clones): Adjust call to
33919 cgraph_edge::remove.
33920 * cgraphunit.c (walk_polymorphic_call_targets): Adjusted calls to
33921 make_direct and redirect_call_stmt_to_callee.
33922 * ipa-fnsummary.c (redirect_to_unreachable): Adjust calls to
33923 resolve_speculation and make_direct.
33924 * ipa-inline-transform.c (inline_transform): Adjust call to
33925 redirect_call_stmt_to_callee.
33926 (check_speculations_1):: Adjust call to resolve_speculation.
33927 * ipa-inline.c (resolve_noninline_speculation): Adjust call to
33928 resolve-speculation.
33929 (inline_small_functions): Adjust call to resolve_speculation.
33930 (ipa_inline): Likewise.
33931 * ipa-prop.c (ipa_make_edge_direct_to_target): Adjust call to
33933 * ipa-visibility.c (function_and_variable_visibility): Make iteration
33934 safe with regards to edge removal, adjust calls to
33935 redirect_call_stmt_to_callee.
33936 * ipa.c (walk_polymorphic_call_targets): Adjust calls to make_direct
33937 and redirect_call_stmt_to_callee.
33938 * multiple_target.c (create_dispatcher_calls): Adjust call to
33939 redirect_call_stmt_to_callee
33940 (redirect_to_specific_clone): Likewise.
33941 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33942 Adjust calls to cgraph_edge::remove.
33943 * tree-inline.c (copy_bb): Adjust call to set_call_stmt.
33944 (redirect_all_calls): Adjust call to redirect_call_stmt_to_callee.
33945 (expand_call_inline): Adjust call to cgraph_edge::remove.
33947 2020-01-09 Martin Liska <mliska@suse.cz>
33949 * params.opt: Set Optimization for
33950 param_max_speculative_devirt_maydefs.
33952 2020-01-09 Martin Sebor <msebor@redhat.com>
33954 PR middle-end/93200
33956 * builtins.c (compute_objsize): Avoid handling MEM_REFs of vector type.
33958 2020-01-09 Martin Liska <mliska@suse.cz>
33960 * auto-profile.c (auto_profile): Use opt_for_fn
33962 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
33963 (propagate_vals_across_arith_jfunc): Likewise.
33964 (hint_time_bonus): Likewise.
33965 (incorporate_penalties): Likewise.
33966 (good_cloning_opportunity_p): Likewise.
33967 (perform_estimation_of_a_value): Likewise.
33968 (estimate_local_effects): Likewise.
33969 (ipcp_propagate_stage): Likewise.
33970 * ipa-fnsummary.c (decompose_param_expr): Likewise.
33971 (set_switch_stmt_execution_predicate): Likewise.
33972 (analyze_function_body): Likewise.
33973 * ipa-inline-analysis.c (offline_size): Likewise.
33974 * ipa-inline.c (early_inliner): Likewise.
33975 * ipa-prop.c (ipa_analyze_node): Likewise.
33976 (ipcp_transform_function): Likewise.
33977 * ipa-sra.c (process_scan_results): Likewise.
33978 (ipa_sra_summarize_function): Likewise.
33979 * params.opt: Rename ipcp-unit-growth to
33980 ipa-cp-unit-growth. Add Optimization for various
33981 IPA-related parameters.
33983 2020-01-09 Richard Biener <rguenther@suse.de>
33985 PR middle-end/93054
33986 * gimplify.c (gimplify_expr): Deal with NOP definitions.
33988 2020-01-09 Richard Biener <rguenther@suse.de>
33990 PR tree-optimization/93040
33991 * gimple-ssa-store-merging.c (find_bswap_or_nop): Raise search limit.
33993 2020-01-09 Georg-Johann Lay <avr@gjlay.de>
33995 * common/config/avr/avr-common.c (avr_option_optimization_table)
33996 [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
33998 2020-01-09 Martin Liska <mliska@suse.cz>
34000 * cgraphclones.c (symbol_table::materialize_all_clones):
34001 Use cgraph_node::dump_name.
34003 2020-01-09 Jakub Jelinek <jakub@redhat.com>
34005 PR inline-asm/93202
34006 * config/riscv/riscv.c (riscv_print_operand_reloc): Use
34007 output_operand_lossage instead of gcc_unreachable.
34008 * doc/md.texi (riscv f constraint): Fix typo.
34011 * config/i386/i386.md (subv<mode>4): Use SWIDWI iterator instead of
34012 SWI. Use <general_hilo_operand> instead of <general_operand>. Use
34013 CONST_SCALAR_INT_P instead of CONST_INT_P.
34014 (*subv<mode>4_1): Rename to ...
34015 (subv<mode>4_1): ... this.
34016 (*subv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
34017 define_insn_and_split patterns.
34018 (*subv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
34021 2020-01-08 David Malcolm <dmalcolm@redhat.com>
34023 * vec.c (class selftest::count_dtor): New class.
34024 (selftest::test_auto_delete_vec): New test.
34025 (selftest::vec_c_tests): Call it.
34026 * vec.h (class auto_delete_vec): New class template.
34027 (auto_delete_vec<T>::~auto_delete_vec): New dtor.
34029 2020-01-08 David Malcolm <dmalcolm@redhat.com>
34031 * sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
34033 2020-01-08 Jim Wilson <jimw@sifive.com>
34035 * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out
34036 use of TLS_MODEL_LOCAL_EXEC when not pic.
34038 2020-01-08 David Malcolm <dmalcolm@redhat.com>
34040 * hash-map-tests.c (selftest::test_map_of_strings_to_int): Fix
34043 2020-01-08 Jakub Jelinek <jakub@redhat.com>
34046 * config/i386/i386.md (*stack_protect_set_2_<mode> peephole2,
34047 *stack_protect_set_3 peephole2): Also check that the second
34048 insns source is general_operand.
34051 * config/i386/i386.md (addcarry<mode>_0): Use nonimmediate_operand
34052 predicate for output operand instead of register_operand.
34053 (addcarry<mode>, addcarry<mode>_1): Likewise. Add alternative with
34054 memory destination and non-memory operands[2].
34056 2020-01-08 Martin Liska <mliska@suse.cz>
34058 * cgraph.c (cgraph_node::dump): Use ::dump_name or
34059 ::dump_asm_name instead of (::name or ::asm_name).
34060 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
34061 * cgraphunit.c (walk_polymorphic_call_targets): Likewise.
34062 (analyze_functions): Likewise.
34063 (expand_all_functions): Likewise.
34064 * ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
34065 (propagate_bits_across_jump_function): Likewise.
34066 (dump_profile_updates): Likewise.
34067 (ipcp_store_bits_results): Likewise.
34068 (ipcp_store_vr_results): Likewise.
34069 * ipa-devirt.c (dump_targets): Likewise.
34070 * ipa-fnsummary.c (analyze_function_body): Likewise.
34071 * ipa-hsa.c (check_warn_node_versionable): Likewise.
34072 (process_hsa_functions): Likewise.
34073 * ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
34074 (set_alias_uids): Likewise.
34075 * ipa-inline-transform.c (save_inline_function_body): Likewise.
34076 * ipa-inline.c (recursive_inlining): Likewise.
34077 (inline_to_all_callers_1): Likewise.
34078 (ipa_inline): Likewise.
34079 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
34080 (ipa_propagate_frequency): Likewise.
34081 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
34082 (remove_described_reference): Likewise.
34083 * ipa-pure-const.c (worse_state): Likewise.
34084 (check_retval_uses): Likewise.
34085 (analyze_function): Likewise.
34086 (propagate_pure_const): Likewise.
34087 (propagate_nothrow): Likewise.
34088 (dump_malloc_lattice): Likewise.
34089 (propagate_malloc): Likewise.
34090 (pass_local_pure_const::execute): Likewise.
34091 * ipa-visibility.c (optimize_weakref): Likewise.
34092 (function_and_variable_visibility): Likewise.
34093 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
34094 (ipa_discover_variable_flags): Likewise.
34095 * lto-streamer-out.c (output_function): Likewise.
34096 (output_constructor): Likewise.
34097 * tree-inline.c (copy_bb): Likewise.
34098 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
34099 * varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
34101 2020-01-08 Richard Biener <rguenther@suse.de>
34103 PR middle-end/93199
34104 * tree-eh.c (sink_clobbers): Update virtual operands for
34105 the first and last stmt only. Add a dry-run capability.
34106 (pass_lower_eh_dispatch::execute): Perform clobber sinking
34107 after CFG manipulations and in RPO order to catch all
34108 secondary opportunities reliably.
34110 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
34113 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
34115 2019-01-08 Richard Biener <rguenther@suse.de>
34117 PR middle-end/93199
34118 * gimple-fold.c (rewrite_to_defined_overflow): Mark stmt modified.
34119 * tree-ssa-loop-im.c (move_computations_worker): Properly adjust
34120 virtual operand, also updating SSA use.
34121 * gimple-loop-interchange.cc (loop_cand::undo_simple_reduction):
34122 Update stmt after resetting virtual operand.
34123 (tree_loop_interchange::move_code_to_inner_loop): Likewise.
34124 * gimple-iterator.c (gsi_remove): When not removing the stmt
34125 permanently do not delink immediate uses or mark the stmt modified.
34127 2020-01-08 Martin Liska <mliska@suse.cz>
34129 * ipa-fnsummary.c (dump_ipa_call_summary): Use symtab_node::dump_name.
34130 (ipa_call_context::estimate_size_and_time): Likewise.
34131 (inline_analyze_function): Likewise.
34133 2020-01-08 Martin Liska <mliska@suse.cz>
34135 * cgraph.c (cgraph_node::dump): Use systematically
34138 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
34140 Add -nodevicespecs option for avr.
34143 * config/avr/avr.opt (-nodevicespecs): New driver option.
34144 * config/avr/driver-avr.c (avr_devicespecs_file): Only issue
34145 "-specs=device-specs/..." if that option is not set.
34146 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
34148 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
34150 Implement 64-bit double functions for avr.
34153 * config.gcc (tm_defines) [target=avr]: Support --with-libf7,
34154 --with-double-comparison.
34155 * doc/install.texi: Document them.
34156 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
34157 <WITH_LIBF7_LIBGCC, WITH_LIBF7_MATH, WITH_LIBF7_MATH_SYMBOLS>
34158 <WITH_DOUBLE_COMPARISON>: New built-in defines.
34159 * doc/invoke.texi (AVR Built-in Macros): Document them.
34160 * config/avr/avr-protos.h (avr_float_lib_compare_returns_bool): New.
34161 * config/avr/avr.c (avr_float_lib_compare_returns_bool): New function.
34162 * config/avr/avr.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): New macro.
34164 2020-01-08 Richard Earnshaw <rearnsha@arm.com>
34167 * config/arm/t-multilib (MULTILIB_MATCHES): Add rules to match
34168 armv7-a{+mp,+sec,+mp+sec} to appropriate armv7 multilib variants
34169 when only building rm-profile multilibs.
34171 2020-01-08 Feng Xue <fxue@os.amperecomputing.com>
34174 * ipa-cp.c (self_recursively_generated_p): Find matched aggregate
34175 lattice for a value to check.
34176 (propagate_vals_across_arith_jfunc): Add an assertion to ensure
34177 finite propagation in self-recursive scc.
34179 2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com>
34181 * ipa-inline.c (caller_growth_limits): Restore the AND.
34183 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
34185 * config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator.
34186 (VEC_ALLREG_ALT): New iterator.
34187 (VEC_ALLREG_INT_MODE): New iterator.
34188 (VCMP_MODE): New iterator.
34189 (VCMP_MODE_INT): New iterator.
34190 (vec_cmpu<mode>di): Use VCMP_MODE_INT.
34191 (vec_cmp<u>v64qidi): New define_expand.
34192 (vec_cmp<mode>di_exec): Use VCMP_MODE.
34193 (vec_cmpu<mode>di_exec): New define_expand.
34194 (vec_cmp<u>v64qidi_exec): New define_expand.
34195 (vec_cmp<mode>di_dup): Use VCMP_MODE.
34196 (vec_cmp<mode>di_dup_exec): Use VCMP_MODE.
34197 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>): Rename ...
34198 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): ... to this.
34199 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Rename ...
34200 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): ... to this.
34201 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Rename ...
34202 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): ... to this.
34203 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Rename ...
34204 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): ... to
34206 * config/gcn/gcn.c (print_operand): Fix 8 and 16 bit suffixes.
34207 * config/gcn/gcn.md (expander): Add sign_extend and zero_extend.
34209 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
34211 * config/gcn/constraints.md (DA): Update description and match.
34213 (Db): New constraint.
34214 * config/gcn/gcn-protos.h (gcn_inline_constant64_p): Add second
34216 * config/gcn/gcn.c (gcn_inline_constant64_p): Add 'mixed' parameter.
34217 Implement 'Db' mixed immediate type.
34218 * config/gcn/gcn-valu.md (addcv64si3<exec_vcc>): Rework constraints.
34219 (addcv64si3_dup<exec_vcc>): Delete.
34220 (subcv64si3<exec_vcc>): Rework constraints.
34221 (addv64di3): Rework constraints.
34222 (addv64di3_exec): Rework constraints.
34223 (subv64di3): Rework constraints.
34224 (addv64di3_dup): Delete.
34225 (addv64di3_dup_exec): Delete.
34226 (addv64di3_zext): Rework constraints.
34227 (addv64di3_zext_exec): Rework constraints.
34228 (addv64di3_zext_dup): Rework constraints.
34229 (addv64di3_zext_dup_exec): Rework constraints.
34230 (addv64di3_zext_dup2): Rework constraints.
34231 (addv64di3_zext_dup2_exec): Rework constraints.
34232 (addv64di3_sext_dup2): Rework constraints.
34233 (addv64di3_sext_dup2_exec): Rework constraints.
34235 2020-01-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
34237 * doc/sourcebuild.texi (arm_little_endian, arm_nothumb): Documented
34238 existing target checks.
34240 2020-01-07 Richard Biener <rguenther@suse.de>
34242 * doc/install.texi: Bump minimal supported MPC version.
34244 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
34246 * langhooks-def.h (lhd_simulate_enum_decl): Declare.
34247 (LANG_HOOKS_SIMULATE_ENUM_DECL): Use it.
34248 * langhooks.c: Include stor-layout.h.
34249 (lhd_simulate_enum_decl): New function.
34250 * config/aarch64/aarch64-sve-builtins.cc (init_builtins): Call
34251 handle_arm_sve_h for the LTO frontend.
34252 (register_vector_type): Cope with null returns from pushdecl.
34254 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
34256 * config/aarch64/aarch64-protos.h (aarch64_sve::svbool_type_p)
34257 (aarch64_sve::nvectors_if_data_type): Replace with...
34258 (aarch64_sve::builtin_type_p): ...this.
34259 * config/aarch64/aarch64-sve-builtins.cc: Include attribs.h.
34260 (find_vector_type): Delete.
34261 (add_sve_type_attribute): New function.
34262 (lookup_sve_type_attribute): Likewise.
34263 (register_builtin_types): Add an "SVE type" attribute to each type.
34264 (register_tuple_type): Likewise.
34265 (svbool_type_p, nvectors_if_data_type): Delete.
34266 (mangle_builtin_type): Use lookup_sve_type_attribute.
34267 (builtin_type_p): Likewise. Add an overload that returns the
34268 number of constituent vector and predicate registers.
34269 * config/aarch64/aarch64.c (aarch64_sve_argument_p): Delete.
34270 (aarch64_returns_value_in_sve_regs_p): Use aarch64_sve::builtin_type_p
34271 instead of aarch64_sve_argument_p.
34272 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
34273 (aarch64_pass_by_reference): Likewise.
34274 (aarch64_function_value_1): Likewise.
34275 (aarch64_return_in_memory): Likewise.
34276 (aarch64_layout_arg): Likewise.
34278 2020-01-07 Jakub Jelinek <jakub@redhat.com>
34280 PR tree-optimization/93156
34281 * tree-ssa-ccp.c (bit_value_binop): For x * x note that the second
34282 least significant bit is always clear.
34284 PR tree-optimization/93118
34285 * match.pd ((x >> c) << c -> x & (-1<<c)): Add nop_convert?. Add new
34286 simplifier with two intermediate conversions.
34288 2020-01-07 Martin Liska <mliska@suse.cz>
34290 * params.opt: Add Optimization for various parameters.
34292 2020-01-07 Martin Liska <mliska@suse.cz>
34295 * doc/extend.texi: Explain cloning for target_clone
34298 2020-01-07 Martin Liska <mliska@suse.cz>
34300 PR tree-optimization/92860
34301 * common.opt: Make in Optimization option
34302 as it is affected by -O0, which is an Optimization
34304 * tree-inline.c (tree_inlinable_function_p):
34305 Use opt_for_fn for warn_inline.
34306 (expand_call_inline): Likewise.
34308 2020-01-07 Martin Liska <mliska@suse.cz>
34310 PR tree-optimization/92860
34311 * common.opt: Make flag_ree as optimization
34314 2020-01-07 Martin Liska <mliska@suse.cz>
34316 PR optimization/92860
34317 * params.opt: Mark param_min_crossjump_insns with Optimization
34320 2020-01-07 Luo Xiong Hu <luoxhu@linux.ibm.com>
34322 * ipa-inline-analysis.c (estimate_growth): Fix typo.
34323 * ipa-inline.c (caller_growth_limits): Use OR instead of AND.
34325 2020-01-06 Michael Meissner <meissner@linux.ibm.com>
34327 * config/rs6000/rs6000.c (hard_reg_and_mode_to_addr_mask): New
34328 helper function to return the valid addressing formats for a given
34329 hard register and mode.
34330 (rs6000_adjust_vec_address): Call hard_reg_and_mode_to_addr_mask.
34332 * config/rs6000/constraints.md (Q constraint): Update
34334 * doc/md.texi (RS/6000 constraints): Update 'Q' cosntraint
34337 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
34338 Use 'Q' for doing vector extract from memory.
34339 (vsx_extract_v4sf_var): Use 'Q' for doing vector extract from
34341 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Use 'Q' for
34342 doing vector extract from memory.
34343 (vsx_extract_<mode>_<VS_scalar>mode_var): Use 'Q' for doing vector
34344 extract from memory.
34346 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add support
34347 for the offset being 34-bits when -mcpu=future is used.
34349 2020-01-06 John David Anglin <danglin@gcc.gnu.org>
34351 * config/pa/pa.md: Revert change to use ordered_comparison_operator
34352 instead of cmpib_comparison_operator in cmpib patterns.
34353 * config/pa/predicates.md (cmpib_comparison_operator): Revert removal
34354 of cmpib_comparison_operator. Revise comment.
34356 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
34358 * tree-vect-slp.c (vect_build_slp_tree_1): Require all shifts
34359 in an IFN_DIV_POW2 node to be equal.
34361 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
34363 * tree-vect-stmts.c (vect_check_load_store_mask): Rename to...
34364 (vect_check_scalar_mask): ...this.
34365 (vectorizable_store, vectorizable_load): Update call accordingly.
34366 (vectorizable_call): Use vect_check_scalar_mask to check the mask
34367 argument in calls to conditional internal functions.
34369 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
34371 * config/gcn/gcn-valu.md (subv64di3): Use separate alternatives for
34372 '0' matching inputs.
34373 (subv64di3_exec): Likewise.
34375 2020-01-06 Bryan Stenson <bryan@siliconvortex.com>
34377 * config/mips/mips.c (vr4130_align_insns): Fix typo.
34378 * doc/md.texi (movstr): Likewise.
34380 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
34382 * config/gcn/gcn-valu.md (vec_extract<mode><scalar_mode>): Add early
34385 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
34387 * config/aarch64/t-aarch64 ($(srcdir)/config/aarch64/aarch64-tune.md):
34389 (s-aarch64-tune-md): ...this new stamp file. Pipe the new contents
34390 to a temporary file and use move-if-change to update the real
34391 file where necessary.
34393 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
34395 * config/aarch64/aarch64-sve.md (@aarch64_sel_dup<mode>): Use Upl
34396 rather than Upa for CPY /M.
34398 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
34400 * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
34403 2020-01-06 Martin Liska <mliska@suse.cz>
34405 PR tree-optimization/92860
34406 * params.opt: Mark param_max_combine_insns with Optimization
34409 2020-01-05 Jakub Jelinek <jakub@redhat.com>
34412 * config/i386/i386.md (SWIDWI): New mode iterator.
34413 (DWI, dwi): Add TImode variants.
34414 (addv<mode>4): Use SWIDWI iterator instead of SWI. Use
34415 <general_hilo_operand> instead of <general_operand>. Use
34416 CONST_SCALAR_INT_P instead of CONST_INT_P.
34417 (*addv<mode>4_1): Rename to ...
34418 (addv<mode>4_1): ... this.
34419 (QWI): New mode attribute.
34420 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
34421 define_insn_and_split patterns.
34422 (*addv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
34424 (uaddv<mode>4): Use SWIDWI iterator instead of SWI. Use
34425 <general_hilo_operand> instead of <general_operand>.
34426 (*addcarry<mode>_1): New define_insn.
34427 (*add<dwi>3_doubleword_cc_overflow_1): New define_insn_and_split.
34429 2020-01-03 Konstantin Kharlamov <Hi-Angel@yandex.ru>
34431 * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm):
34432 Use "call" instead of "set".
34434 2020-01-03 Martin Jambor <mjambor@suse.cz>
34437 * ipa-cp.c (print_all_lattices): Skip functions without info.
34439 2020-01-03 Jakub Jelinek <jakub@redhat.com>
34442 * config/i386/i386-options.c (ix86_simd_clone_adjust): If
34443 TARGET_PREFER_AVX128, use prefer-vector-width=256 for 'c' and 'd'
34444 simd clones. If TARGET_PREFER_AVX256, use prefer-vector-width=512
34445 for 'e' simd clones.
34448 * config/i386/i386.opt (x_prefer_vector_width_type): Remove TargetSave
34450 (mprefer-vector-width=): Add Save.
34451 * config/i386/i386-options.c (ix86_target_string): Add PVW argument, print
34452 -mprefer-vector-width= if non-zero. Fix up -mfpmath= comment.
34453 (ix86_debug_options, ix86_function_specific_print): Adjust
34454 ix86_target_string callers.
34455 (ix86_valid_target_attribute_inner_p): Handle prefer-vector-width=.
34456 (ix86_valid_target_attribute_tree): Likewise.
34457 * config/i386/i386-options.h (ix86_target_string): Add PVW argument.
34458 * config/i386/i386-expand.c (ix86_expand_builtin): Adjust
34459 ix86_target_string caller.
34462 * config/i386/i386.md (abs<mode>2): Use expand_simple_binop instead of
34463 emitting ASHIFTRT, XOR and MINUS by hand. Use gen_int_mode with QImode
34464 instead of gen_int_shift_amount + convert_modes.
34466 PR rtl-optimization/93088
34467 * loop-iv.c (find_single_def_src): Punt after looking through
34468 128 reg copies for regs with single definitions. Move definitions
34471 2020-01-02 Dennis Zhang <dennis.zhang@arm.com>
34473 * config/arm/arm-c.c (arm_cpu_builtins): Define
34474 __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC,
34475 __ARM_FEATURE_BF16_SCALAR_ARITHMETIC, and
34476 __ARM_BF16_FORMAT_ALTERNATIVE when enabled.
34477 * config/arm/arm-cpus.in (armv8_6, i8mm, bf16): New features.
34478 * config/arm/arm-tables.opt: Regenerated.
34479 * config/arm/arm.c (arm_option_reconfigure_globals): Initialize
34480 arm_arch_i8mm and arm_arch_bf16 when enabled.
34481 * config/arm/arm.h (TARGET_I8MM): New macro.
34482 (TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
34483 * config/arm/t-aprofile: Add matching rules for -march=armv8.6-a.
34484 * config/arm/t-arm-elf (all_v8_archs): Add armv8.6-a.
34485 * config/arm/t-multilib: Add matching rules for -march=armv8.6-a.
34486 (v8_6_a_simd_variants): New.
34487 (v8_*_a_simd_variants): Add i8mm and bf16.
34488 * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options.
34490 2020-01-02 Jakub Jelinek <jakub@redhat.com>
34493 * predict.c (compute_function_frequency): Don't call
34494 warn_function_cold on functions that already have cold attribute.
34496 2020-01-01 John David Anglin <danglin@gcc.gnu.org>
34499 * config/pa/pa.c (pa_elf_select_rtx_section): New. Put references to
34500 COMDAT group function labels in .data.rel.ro.local section.
34501 * config/pa/pa32-linux.h (TARGET_ASM_SELECT_RTX_SECTION): Define.
34504 * config/pa/pa.md (scc): Use ordered_comparison_operator instead of
34505 comparison_operator in B and S integer comparisons. Likewise, use
34506 ordered_comparison_operator instead of cmpib_comparison_operator in
34508 * config/pa/predicates.md (cmpib_comparison_operator): Remove.
34510 2020-01-01 Jakub Jelinek <jakub@redhat.com>
34512 Update copyright years.
34514 * gcc.c (process_command): Update copyright notice dates.
34515 * gcov-dump.c (print_version): Ditto.
34516 * gcov.c (print_version): Ditto.
34517 * gcov-tool.c (print_version): Ditto.
34518 * gengtype.c (create_file): Ditto.
34519 * doc/cpp.texi: Bump @copying's copyright year.
34520 * doc/cppinternals.texi: Ditto.
34521 * doc/gcc.texi: Ditto.
34522 * doc/gccint.texi: Ditto.
34523 * doc/gcov.texi: Ditto.
34524 * doc/install.texi: Ditto.
34525 * doc/invoke.texi: Ditto.
34527 2020-01-01 Jan Hubicka <hubicka@ucw.cz>
34529 * ipa.c (walk_polymorphic_call_targets): Fix updating of overall
34532 2020-01-01 Jakub Jelinek <jakub@redhat.com>
34534 PR tree-optimization/93098
34535 * match.pd (popcount): For shift amounts, use integer_onep
34536 or wi::to_widest () == cst instead of tree_to_uhwi () == cst
34537 tests. Make sure that precision is power of two larger than or equal
34538 to 16. Ensure shift is never negative. Use HOST_WIDE_INT_UC macro
34539 instead of ULL suffixed constants. Formatting fixes.
34541 Copyright (C) 2020 Free Software Foundation, Inc.
34543 Copying and distribution of this file, with or without modification,
34544 are permitted in any medium without royalty provided the copyright
34545 notice and this notice are preserved.