c++: Correct the handling of alignof(expr) [PR88115]
[gcc.git] / gcc / ChangeLog
1 2020-11-11 Ilya Leoshkevich <iii@linux.ibm.com>
2
3 * config/s390/s390.h (HAVE_TF): Use opaque value when
4 GENERATOR_FILE is defined.
5
6 2020-11-10 Strager Neds <strager.nds@gmail.com>
7
8 * cgraph.h (symtab_node::get_section): Constify.
9 (symtab_node::set_section): Declare new overload.
10 * symtab.c (symtab_node::set_section): Define new overload.
11 (symtab_node::copy_visibility_from): Use new overload of
12 symtab_node::set_section.
13 (symtab_node::resolve_alias): Same.
14 * tree.h (set_decl_section_name): Declare new overload.
15 * tree.c (set_decl_section_name): Define new overload.
16 * tree-emutls.c (get_emutls_init_templ_addr): Same.
17 * cgraphclones.c (cgraph_node::create_virtual_clone): Use new
18 overload of symtab_node::set_section.
19 (cgraph_node::create_version_clone_with_body): Same.
20 * trans-mem.c (ipa_tm_create_version): Same.
21
22 2020-11-10 Aldy Hernandez <aldyh@redhat.com>
23
24 * value-range.cc (irange::set): Early exit for poly ints.
25
26 2020-11-10 Tobias Burnus <tobias@codesourcery.com>
27
28 * gimplify.c (gimplify_scan_omp_clauses, gimplify_omp_loop): Use 'do'
29 instead of 'for' in error messages for Fortran.
30 * omp-low.c (check_omp_nesting_restrictions): Likewise
31
32 2020-11-10 Matthew Malcomson <matthew.malcomson@arm.com>
33
34 * opts.c (control_options_for_live_patching): Reform 'is incompatible
35 with' error messages to use a standard message with differing format
36 arguments.
37 (finish_options): Likewise.
38
39 2020-11-10 Richard Biener <rguenther@suse.de>
40
41 PR tree-optimization/97769
42 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
43 Remove assert.
44
45 2020-11-10 Richard Biener <rguenther@suse.de>
46
47 PR tree-optimization/97780
48 * tree-ssa-pre.c (fini_pre): Deal with added basic blocks
49 when freeing PHI_TRANS_TABLE.
50
51 2020-11-10 Zhiheng Xie <xiezhiheng@huawei.com>
52 Nannan Zheng <zhengnannan@huawei.com>
53
54 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
55 for tbl/tbx intrinsics.
56
57 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com>
58
59 * gimplify.c (is_or_contains_p): New static helper function.
60 (omp_target_reorder_clauses): New function.
61 (gimplify_scan_omp_clauses): Add use of omp_target_reorder_clauses to
62 reorder clause list according to OpenMP 5.0 rules. Add handling of
63 GOMP_MAP_ATTACH_DETACH for OpenMP cases.
64 * omp-low.c (is_omp_target): New static helper function.
65 (scan_sharing_clauses): Add scan phase handling of GOMP_MAP_ATTACH/DETACH
66 for OpenMP cases.
67 (lower_omp_target): Add lowering handling of GOMP_MAP_ATTACH/DETACH for
68 OpenMP cases.
69
70 2020-11-10 Ilya Leoshkevich <iii@linux.ibm.com>
71
72 * config/s390/s390-modes.def (FPRX2): New mode.
73 * config/s390/s390-protos.h (s390_fma_allowed_p): New function.
74 * config/s390/s390.c (s390_fma_allowed_p): Likewise.
75 (s390_build_signbit_mask): Support 128-bit masks.
76 (print_operand): Support printing the second word of a TFmode
77 operand as vector register.
78 (constant_modes): Add FPRX2mode.
79 (s390_class_max_nregs): Return 1 for TFmode on z14+.
80 (s390_is_fpr128): New function.
81 (s390_is_vr128): Likewise.
82 (s390_can_change_mode_class): Use s390_is_fpr128 and
83 s390_is_vr128 in order to determine whether mode refers to a FPR
84 pair or to a VR.
85 (s390_emit_compare): Force TFmode operands into registers on
86 z14+.
87 * config/s390/s390.h (HAVE_TF): New macro.
88 (EXPAND_MOVTF): New macro.
89 (EXPAND_TF): Likewise.
90 * config/s390/s390.md (PFPO_OP_TYPE_FPRX2): PFPO_OP_TYPE_TF
91 alias.
92 (ALL): Add FPRX2.
93 (FP_ALL): Add FPRX2 for z14+, restrict TFmode to z13-.
94 (FP): Likewise.
95 (FP_ANYTF): New mode iterator.
96 (BFP): Add FPRX2 for z14+, restrict TFmode to z13-.
97 (TD_TF): Likewise.
98 (xde): Add FPRX2.
99 (nBFP): Likewise.
100 (nDFP): Likewise.
101 (DSF): Likewise.
102 (DFDI): Likewise.
103 (SFSI): Likewise.
104 (DF): Likewise.
105 (SF): Likewise.
106 (fT0): Likewise.
107 (bt): Likewise.
108 (_d): Likewise.
109 (HALF_TMODE): Likewise.
110 (tf_fpr): New mode_attr.
111 (type): New mode_attr.
112 (*cmp<mode>_ccz_0): Use type instead of mode with fsimp.
113 (*cmp<mode>_ccs_0_fastmath): Likewise.
114 (*cmptf_ccs): New pattern for wfcxb.
115 (*cmptf_ccsfps): New pattern for wfkxb.
116 (mov<mode>): Rename to mov<mode><tf_fpr>.
117 (signbit<mode>2): Rename to signbit<mode>2<tf_fpr>.
118 (isinf<mode>2): Renamed to isinf<mode>2<tf_fpr>.
119 (*TDC_insn_<mode>): Use type instead of mode with fsimp.
120 (fixuns_trunc<FP:mode><GPR:mode>2): Rename to
121 fixuns_trunc<FP:mode><GPR:mode>2<FP:tf_fpr>.
122 (fix_trunctf<mode>2): Rename to fix_trunctf<mode>2_fpr.
123 (floatdi<mode>2): Rename to floatdi<mode>2<tf_fpr>, use type
124 instead of mode with itof.
125 (floatsi<mode>2): Rename to floatsi<mode>2<tf_fpr>, use type
126 instead of mode with itof.
127 (*floatuns<GPR:mode><FP:mode>2): Use type instead of mode for
128 itof.
129 (floatuns<GPR:mode><FP:mode>2): Rename to
130 floatuns<GPR:mode><FP:mode>2<tf_fpr>.
131 (trunctf<mode>2): Rename to trunctf<mode>2_fpr, use type instead
132 of mode with fsimp.
133 (extend<DSF:mode><BFP:mode>2): Rename to
134 extend<DSF:mode><BFP:mode>2<BFP:tf_fpr>.
135 (<FPINT:fpint_name><BFP:mode>2): Rename to
136 <FPINT:fpint_name><BFP:mode>2<BFP:tf_fpr>, use type instead of
137 mode with fsimp.
138 (rint<BFP:mode>2): Rename to rint<BFP:mode>2<BFP:tf_fpr>, use
139 type instead of mode with fsimp.
140 (<FPINT:fpint_name><DFP:mode>2): Use type instead of mode for
141 fsimp.
142 (rint<DFP:mode>2): Likewise.
143 (trunc<BFP:mode><DFP_ALL:mode>2): Rename to
144 trunc<BFP:mode><DFP_ALL:mode>2<BFP:tf_fpr>.
145 (trunc<DFP_ALL:mode><BFP:mode>2): Rename to
146 trunc<DFP_ALL:mode><BFP:mode>2<BFP:tf_fpr>.
147 (extend<BFP:mode><DFP_ALL:mode>2): Rename to
148 extend<BFP:mode><DFP_ALL:mode>2<BFP:tf_fpr>.
149 (extend<DFP_ALL:mode><BFP:mode>2): Rename to
150 extend<DFP_ALL:mode><BFP:mode>2<BFP:tf_fpr>.
151 (add<mode>3): Rename to add<mode>3<tf_fpr>, use type instead of
152 mode with fsimp.
153 (*add<mode>3_cc): Use type instead of mode with fsimp.
154 (*add<mode>3_cconly): Likewise.
155 (sub<mode>3): Rename to sub<mode>3<tf_fpr>, use type instead of
156 mode with fsimp.
157 (*sub<mode>3_cc): Use type instead of mode with fsimp.
158 (*sub<mode>3_cconly): Likewise.
159 (mul<mode>3): Rename to mul<mode>3<tf_fpr>, use type instead of
160 mode with fsimp.
161 (fma<mode>4): Restrict using s390_fma_allowed_p.
162 (fms<mode>4): Restrict using s390_fma_allowed_p.
163 (div<mode>3): Rename to div<mode>3<tf_fpr>, use type instead of
164 mode with fdiv.
165 (neg<mode>2): Rename to neg<mode>2<tf_fpr>.
166 (*neg<mode>2_cc): Use type instead of mode with fsimp.
167 (*neg<mode>2_cconly): Likewise.
168 (*neg<mode>2_nocc): Likewise.
169 (*neg<mode>2): Likeiwse.
170 (abs<mode>2): Rename to abs<mode>2<tf_fpr>, use type instead of
171 mode with fdiv.
172 (*abs<mode>2_cc): Use type instead of mode with fsimp.
173 (*abs<mode>2_cconly): Likewise.
174 (*abs<mode>2_nocc): Likewise.
175 (*abs<mode>2): Likewise.
176 (*negabs<mode>2_cc): Likewise.
177 (*negabs<mode>2_cconly): Likewise.
178 (*negabs<mode>2_nocc): Likewise.
179 (*negabs<mode>2): Likewise.
180 (sqrt<mode>2): Rename to sqrt<mode>2<tf_fpr>, use type instead
181 of mode with fsqrt.
182 (cbranch<mode>4): Use FP_ANYTF instead of FP.
183 (copysign<mode>3): Rename to copysign<mode>3<tf_fpr>, use type
184 instead of mode with fsimp.
185 * config/s390/s390.opt (flag_vx_long_double_fma): New
186 undocumented option.
187 * config/s390/vector.md (V_HW): Add TF for z14+.
188 (V_HW2): Likewise.
189 (VFT): Likewise.
190 (VF_HW): Likewise.
191 (V_128): Likewise.
192 (tf_vr): New mode_attr.
193 (tointvec): Add TF.
194 (mov<mode>): Rename to mov<mode><tf_vr>.
195 (movetf): New dispatcher.
196 (*vec_tf_to_v1tf): Rename to *vec_tf_to_v1tf_fpr, restrict to
197 z13-.
198 (*vec_tf_to_v1tf_vr): New pattern for z14+.
199 (*fprx2_to_tf): Likewise.
200 (*mov_tf_to_fprx2_0): Likewise.
201 (*mov_tf_to_fprx2_1): Likewise.
202 (add<mode>3): Rename to add<mode>3<tf_vr>.
203 (addtf3): New dispatcher.
204 (sub<mode>3): Rename to sub<mode>3<tf_vr>.
205 (subtf3): New dispatcher.
206 (mul<mode>3): Rename to mul<mode>3<tf_vr>.
207 (multf3): New dispatcher.
208 (div<mode>3): Rename to div<mode>3<tf_vr>.
209 (divtf3): New dispatcher.
210 (sqrt<mode>2): Rename to sqrt<mode>2<tf_vr>.
211 (sqrttf2): New dispatcher.
212 (fma<mode>4): Restrict using s390_fma_allowed_p.
213 (fms<mode>4): Likewise.
214 (neg_fma<mode>4): Likewise.
215 (neg_fms<mode>4): Likewise.
216 (neg<mode>2): Rename to neg<mode>2<tf_vr>.
217 (negtf2): New dispatcher.
218 (abs<mode>2): Rename to abs<mode>2<tf_vr>.
219 (abstf2): New dispatcher.
220 (float<mode>tf2_vr): New forwarder.
221 (float<mode>tf2): New dispatcher.
222 (floatuns<mode>tf2_vr): New forwarder.
223 (floatuns<mode>tf2): New dispatcher.
224 (fix_trunctf<mode>2_vr): New forwarder.
225 (fix_trunctf<mode>2): New dispatcher.
226 (fixuns_trunctf<mode>2_vr): New forwarder.
227 (fixuns_trunctf<mode>2): New dispatcher.
228 (<FPINT:fpint_name><VF_HW:mode>2<VF_HW:tf_vr>): New pattern.
229 (<FPINT:fpint_name>tf2): New forwarder.
230 (rint<mode>2<tf_vr>): New pattern.
231 (rinttf2): New forwarder.
232 (*trunctfdf2_vr): New pattern.
233 (trunctfdf2_vr): New forwarder.
234 (trunctfdf2): New dispatcher.
235 (trunctfsf2_vr): New forwarder.
236 (trunctfsf2): New dispatcher.
237 (extenddftf2_vr): New pattern.
238 (extenddftf2): New dispatcher.
239 (extendsftf2_vr): New forwarder.
240 (extendsftf2): New dispatcher.
241 (signbittf2_vr): New forwarder.
242 (signbittf2): New dispatchers.
243 (isinftf2_vr): New forwarder.
244 (isinftf2): New dispatcher.
245 * config/s390/vx-builtins.md (*vftci<mode>_cconly): Use VF_HW
246 instead of VECF_HW, add missing constraint, add vw support.
247 (vftci<mode>_intcconly): Use VF_HW instead of VECF_HW.
248 (*vftci<mode>): Rename to vftci<mode>, use VF_HW instead of
249 VECF_HW, and vw support.
250 (vftci<mode>_intcc): Use VF_HW instead of VECF_HW.
251
252 2020-11-10 Eric Botcazou <ebotcazou@adacore.com>
253
254 * range-op.cc (operator_logical_not::fold_range): Tidy up.
255 (operator_logical_not::op1_range): Call above method.
256 (operator_bitwise_not::fold_range): If the type is compatible
257 with boolean, call op_logical_not.fold_range.
258 (operator_bitwise_not::op1_range): If the type is compatible
259 with boolean, call op_logical_not.op1_range.
260
261 2020-11-10 Richard Biener <rguenther@suse.de>
262
263 * tree-ssa-pre.c (pre_expr_d::value_id): Add.
264 (constant_value_expressions): Turn into an array of pre_expr.
265 (get_or_alloc_expr_for_nary): New function.
266 (get_or_alloc_expr_for_reference): Likewise.
267 (add_to_value): For constant values only ever add a single
268 CONSTANT.
269 (get_expr_value_id): Return the new value_id member.
270 (vn_valnum_from_value_id): Split out and simplify constant
271 value id handling.
272 (get_or_alloc_expr_for_constant): Set the value_id member.
273 (phi_translate_1): Use get_or_alloc_expr_for_*.
274 (compute_avail): Likewise.
275 (bitmap_find_leader): Simplify constant value id handling.
276
277 2020-11-10 Alex Coplan <alex.coplan@arm.com>
278
279 * doc/md.texi (Modifiers): Fix grammar in description of
280 earlyclobber constraint modifier.
281
282 2020-11-10 Jakub Jelinek <jakub@redhat.com>
283
284 PR tree-optimization/97764
285 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): For
286 little-endian stores with negative pd.offset, subtract
287 BITS_PER_UNIT - amnt from size if amnt is non-zero.
288
289 2020-11-10 Richard Biener <rguenther@suse.de>
290
291 PR tree-optimization/97760
292 * tree-vect-loop.c (check_reduction_path): Reject
293 reduction paths we do not handle in epilogue generation.
294
295 2020-11-10 Aldy Hernandez <aldyh@redhat.com>
296
297 PR tree-optimization/97767
298 * value-range.cc (dump_bound_with_infinite_markers): Use
299 wi::min_value and wi::max_value.
300 (range_tests_strict_enum): New.
301 (range_tests): Call range_tests_strict_enum.
302 * value-range.h (irange::varying_p): Use wi::min_value
303 and wi::max_value.
304 (irange::set_varying): Same.
305 (irange::normalize_min_max): Remove comment.
306
307 2020-11-10 Andrew MacLeod <amacleod@redhat.com>
308
309 PR tree-optimization/97567
310 * gimple-range-gori.cc: (gori_compute::logical_combine): False
311 OR operations should intersect the 2 results.
312 (gori_compute::compute_logical_operands_in_chain): If def chains
313 are outside the current basic block, don't follow them.
314
315 2020-11-09 Claudiu Zissulescu <claziss@synopsys.com>
316
317 * config/arc/arc.c (arc_split_move): Recognize vadd2 instructions.
318 * config/arc/arc.md (movdi_insn): Update pattern to use vadd2
319 instructions.
320 (movdf_insn): Likewise.
321 (maddhisi4): New pattern.
322 (umaddhisi4): Likewise.
323 * config/arc/simdext.md (mov<mode>_int): Update pattern to use
324 vadd2.
325 (sdot_prodv4hi): New pattern.
326 (udot_prodv4hi): Likewise.
327 (arc_vec_<V_US>mac_hi_v4hi): Update/renamed to
328 arc_vec_<V_US>mac_v2hiv2si.
329 (arc_vec_<V_US>mac_v2hiv2si_zero): New pattern.
330 * config/arc/constraints.md (Ral): Accumulator register
331 constraint.
332
333 2020-11-09 Aldy Hernandez <aldyh@redhat.com>
334
335 * function-tests.c (test_ranges): Call range_op_tests.
336 * range-op.cc (build_range3): Move to value-range.cc.
337 (range3_tests): Same.
338 (int_range_max_tests): Same.
339 (multi_precision_range_tests): Same.
340 (range_tests): Same.
341 (operator_tests): Split up...
342 (range_op_tests): Split up...
343 (range_op_cast_tests): ...here.
344 (range_op_lshift_tests): ...here.
345 (range_op_rshift_tests): ...here.
346 (range_op_bitwise_and_tests): ...here.
347 * selftest.h (range_op_tests): New.
348 * value-range.cc (build_range3): New.
349 (range_tests_irange3): New.
350 (range_tests_int_range_max): New.
351 (range_tests_legacy): New.
352 (range_tests_misc): New.
353 (range_tests): New.
354
355 2020-11-09 Richard Biener <rguenther@suse.de>
356
357 PR tree-optimization/97761
358 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Remove
359 premature end of DFS walk.
360
361 2020-11-09 Aldy Hernandez <aldyh@redhat.com>
362
363 * value-range.cc (irange::swap_out_of_order_endpoints): Rewrite
364 into static function.
365 (irange::set): Cleanup redundant manipulations.
366 * value-range.h (irange::normalize_min_max): Modify object
367 in-place instead of modifying arguments.
368
369 2020-11-09 Andrea Corallo <andrea.corallo@arm.com>
370
371 * config/aarch64/aarch64-builtins.c
372 (aarch64_expand_fcmla_builtin): Do not alter force_reg returned
373 register.
374
375 2020-11-09 Richard Biener <rguenther@suse.de>
376
377 PR tree-optimization/97753
378 * tree-vect-loop.c (vectorizable_induction): Fill vec_steps
379 when CSEing inside the group.
380
381 2020-11-09 Richard Biener <rguenther@suse.de>
382
383 PR tree-optimization/97746
384 * tree-vect-patterns.c (vect_determine_precisions): First walk PHIs.
385
386 2020-11-09 Richard Biener <rguenther@suse.de>
387
388 * tree-ssa-pre.c (get_representative_for): CSE VN_INFO calls.
389 (create_expression_by_pieces): Likewise.
390 (insert_into_preds_of_block): Likewsie.
391 (do_pre_regular_insertion): Likewsie.
392 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_insert):
393 Likewise.
394 (eliminate_dom_walker::eliminate_stmt): Likewise.
395
396 2020-11-09 Richard Biener <rguenther@suse.de>
397
398 PR tree-optimization/97765
399 * tree-ssa-pre.c (bb_bitmap_sets::phi_translate_table): Add.
400 (PHI_TRANS_TABLE): New macro.
401 (phi_translate_table): Remove.
402 (expr_pred_trans_d::pred): Remove.
403 (expr_pred_trans_d::hash): Simplify.
404 (expr_pred_trans_d::equal): Likewise.
405 (phi_trans_add): Adjust.
406 (phi_translate): Likewise. Remove hash-table expansion
407 detection and optimization.
408 (phi_translate_set): Allocate PHI_TRANS_TABLE here.
409 (init_pre): Adjsust.
410 (fini_pre): Free PHI_TRANS_TABLE.
411
412 2020-11-09 Lili Cui <lili.cui@intel.com>
413
414 PR target/97685
415 * config/i386/i386.h:
416 (PTA_BROADWELL): Delete PTA_PRFCHW.
417 (PTA_SILVERMONT): Add PTA_PRFCHW.
418 (PTA_KNL): Add PTA_PREFETCHWT1.
419 (PTA_TREMONT): Add PTA_MOVDIRI, PTA_MOVDIR64B, PTA_CLDEMOTE and PTA_WAITPKG.
420 * doc/invoke.texi: Delete PREFETCHW for broadwell, skylake, knl, knm,
421 skylake-avx512, cannonlake, icelake-client, icelake-server, cascadelake,
422 cooperlake, tigerlake and sapphirerapids.
423 Add PREFETCHW for silvermont, goldmont, goldmont-plus and tremont.
424 Add XSAVEC and XSAVES for goldmont, goldmont-plus and tremont.
425 Add MOVDIRI, MOVDIR64B, CLDEMOTE and WAITPKG for tremont.
426 Add KEYLOCKER and HREST for alderlake.
427 Add AMX-BF16, AMX-TILE, AMX-INT8 and UINTR for sapphirerapids.
428 Add KEYLOCKER for tigerlake.
429
430 2020-11-09 Kewen Lin <linkw@linux.ibm.com>
431
432 PR rtl-optimization/97705
433 * ira.c (ira): Refactor some regstat free/init/compute invocation
434 into lambda function regstat_recompute_for_max_regno, and call it
435 when max_regno increases as remove_scratches succeeds.
436
437 2020-11-08 David Edelsohn <dje.gcc@gmail.com>
438
439 * config/rs6000/rs6000.c (rs6000_mangle_decl_assembler_name): Change
440 DECL_IS_BUILTIN -> DECL_IS_UNDECLARED_BUILTIN.
441
442 2020-11-07 Martin Uecker <muecker@gwdg.de>
443
444 * doc/extend.texi: Document mixing labels and code.
445 * doc/invoke.texi: Likewise.
446
447 2020-11-06 Segher Boessenkool <segher@kernel.crashing.org>
448
449 * config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't abuse
450 operands[].
451 (@tablejump<mode>_nospec): Ditto.
452
453 2020-11-06 Peter Bergner <bergner@linux.ibm.com>
454
455 * config/rs6000/rs6000.h (BIGGEST_ALIGNMENT): Revert previous commit
456 so as not to break the ABI.
457 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Set the ABI
458 mandated alignment for __vector_pair and __vector_quad types.
459
460 2020-11-06 Jeff Law <law@torsion.usersys.redhat.com>
461
462 PR target/91489
463 * config/i386/i386.md (simple_return): Also check
464 for ms_hook_prologue function attribute.
465 * config/i386/i386.c (ix86_can_use_return_insn_p):
466 Also check for ms_hook_prologue function attribute.
467 * config/i386/i386-protos.h (ix86_function_ms_hook_prologue): Declare.
468
469 2020-11-06 Segher Boessenkool <segher@kernel.crashing.org>
470
471 PR target/96933
472 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
473 TARGET_POWERPC64 instead of TARGET_64BIT.
474
475 2020-11-06 Joseph Myers <joseph@codesourcery.com>
476
477 * builtins.def (BUILT_IN_NANSD32, BUILT_IN_NANSD64)
478 (BUILT_IN_NANSD128): New built-in functions.
479 * fold-const-call.c (fold_const_call): Handle the new built-in
480 functions.
481 * doc/extend.texi (__builtin_nansd32, __builtin_nansd64)
482 (__builtin_nansd128): Document.
483 * doc/sourcebuild.texi (Effective-Target Keywords): Document
484 fenv_exceptions_dfp.
485
486 2020-11-06 Bin Cheng <bin.cheng@linux.alibaba.com>
487
488 * tree-ssa-uninit.c (find_var_cmp_const): New function.
489 (use_pred_not_overlap_with_undef_path_pred): Call above.
490
491 2020-11-06 Iain Sandoe <iain@sandoe.co.uk>
492
493 * config/darwin-c.c: Allow for Darwin20 to correspond to macOS 11.
494 * config/darwin-driver.c: Likewise.
495
496 2020-11-06 Richard Biener <rguenther@suse.de>
497
498 * tree-ssa-pre.c (expr_pred_trans_d): Modify so elements
499 are embedded rather than allocated. Remove hashval member,
500 make all members integers.
501 (phi_trans_add): Adjust accordingly.
502 (phi_translate): Likewise. Deal with re-allocation
503 of the table.
504
505 2020-11-06 Andrew MacLeod <amacleod@redhat.com>
506
507 PR tree-optimization/97737
508 PR tree-optimization/97741
509 * gimple-range.cc: (gimple_ranger::range_of_stmt): Intersect newly
510 calculated ranges with the existing known global range.
511
512 2020-11-06 Darius Galis <darius.galis@cyberthorstudios.com>
513
514 * config/rx/rx.md (CTRLREG_PC): Add.
515 * config/rx/rx.c (CTRLREG_PC): Add
516 (rx_expand_builtin_mvtc): Add warning: PC register cannot
517 be used as dest.
518
519 2020-11-06 Nathan Sidwell <nathan@acm.org>
520
521 * tree.h (DECL_IS_BUILTIN): Rename to ...
522 (DECL_IS_UNDECLARED_BUILTIN): ... here. No need to use SOURCE_LOCUS.
523 * calls.c (maybe_warn_alloc_args_overflow): Adjust for rename.
524 * cfgexpand.c (pass_expand::execute): Likewise.
525 * dwarf2out.c (base_type_die, is_naming_typedef_decl): Likewise.
526 * godump.c (go_decl, go_type_decl): Likewise.
527 * print-tree.c (print_decl_identifier): Likewise.
528 * tree-pretty-print.c (dump_generic_node): Likewise.
529 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Likewise.
530 * xcoffout.c (xcoff_assign_fundamental_type_number): Likewise.
531
532 2020-11-06 David Candler <david.candler@arm.com>
533
534 * config/aarch64/aarch64-builtins.c
535 (TYPES_SHIFT2IMM): Add define.
536 (TYPES_SHIFT2IMM_UUSS): Add define.
537 (TYPES_USHIFT2IMM): Add define.
538 * config/aarch64/aarch64-simd.md
539 (aarch64_<sur>q<r>shr<u>n2_n<mode>): Add new insn for upper saturating shift right.
540 * config/aarch64/aarch64-simd-builtins.def: Add intrinsics.
541 * config/aarch64/arm_neon.h:
542 (vqrshrn_high_n_s16): Expand using intrinsic rather than inline asm.
543 (vqrshrn_high_n_s32): Likewise.
544 (vqrshrn_high_n_s64): Likewise.
545 (vqrshrn_high_n_u16): Likewise.
546 (vqrshrn_high_n_u32): Likewise.
547 (vqrshrn_high_n_u64): Likewise.
548 (vqrshrun_high_n_s16): Likewise.
549 (vqrshrun_high_n_s32): Likewise.
550 (vqrshrun_high_n_s64): Likewise.
551 (vqshrn_high_n_s16): Likewise.
552 (vqshrn_high_n_s32): Likewise.
553 (vqshrn_high_n_s64): Likewise.
554 (vqshrn_high_n_u16): Likewise.
555 (vqshrn_high_n_u32): Likewise.
556 (vqshrn_high_n_u64): Likewise.
557 (vqshrun_high_n_s16): Likewise.
558 (vqshrun_high_n_s32): Likewise.
559 (vqshrun_high_n_s64): Likewise.
560
561 2020-11-06 Richard Sandiford <richard.sandiford@arm.com>
562
563 * config/aarch64/aarch64-modes.def (VNx2BF, VNx4BF): Adjust nunits
564 and alignment based on the current VG.
565 * config/aarch64/iterators.md (SVE_ALL, SVE_24, SVE_2, SVE_4): Add
566 partial SVE BF modes.
567 (UNSPEC_REVBHW): New unspec.
568 (Vetype, Vesize, Vctype, VEL, Vel, vwcore, V_INT_CONTAINER)
569 (v_int_container, VPRED, vpred): Handle partial SVE BF modes.
570 (container_bits, Vcwtype): New mode attributes.
571 * config/aarch64/aarch64-sve.md
572 (@aarch64_sve_revbhw_<SVE_ALL:mode><PRED_HSD:mode>): New pattern.
573 (@aarch64_sve_dup_lane<mode>): Extended from SVE_FULL to SVE_ALL.
574 (@aarch64_sve_rev<mode>, @aarch64_sve_<perm_insn><mode>): Likewise.
575 (@aarch64_sve_ext<mode>): Likewise.
576 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle
577 E_VNx2BFmode and E_VNx4BFmode.
578 (aarch64_evpc_rev_local): Base the analysis on the container size
579 instead of the element size. Use the new aarch64_sve_revbhw
580 patterns for SVE.
581 (aarch64_evpc_dup): Handle partial SVE data modes. Use the
582 container size instead of the element size when applying the
583 SVE immediate limit. Fix a previously incorrect bounds check.
584 (aarch64_expand_vec_perm_const_1): Handle partial SVE data modes.
585
586 2020-11-06 Martin Liska <mliska@suse.cz>
587
588 * common.opt: Add new -fbit-tests option.
589 * doc/invoke.texi: Document the option.
590 * tree-switch-conversion.c (bit_test_cluster::find_bit_tests):
591 Use the option.
592 * tree-switch-conversion.h (is_enabled): New function.
593
594 2020-11-06 Richard Biener <rguenther@suse.de>
595
596 * tree-ssa-sccvn.h (get_max_constant_value_id): Declare.
597 (get_next_constant_value_id): Likewise.
598 (value_id_constant_p): Inline and simplify.
599 * tree-ssa-sccvn.c (constant_value_ids): Remove.
600 (next_constant_value_id): Add.
601 (get_or_alloc_constant_value_id): Adjust.
602 (value_id_constant_p): Remove definition.
603 (get_max_constant_value_id): Define.
604 (get_next_value_id): Add assert for overflow.
605 (get_next_constant_value_id): Define.
606 (run_rpo_vn): Adjust.
607 (free_rpo_vn): Likewise.
608 (do_rpo_vn): Initialize next_constant_value_id.
609 * tree-ssa-pre.c (constant_value_expressions): New.
610 (add_to_value): Split into constant/non-constant value
611 handling. Avoid exact re-allocation.
612 (vn_valnum_from_value_id): Adjust.
613 (phi_translate_1): Remove spurious exact re-allocation.
614 (bitmap_find_leader): Adjust. Make sure we return
615 a CONSTANT value for a constant value id.
616 (do_pre_regular_insertion): Use 2 auto-elements for avail.
617 (do_pre_partial_partial_insertion): Likewise.
618 (init_pre): Allocate constant_value_expressions.
619 (fini_pre): Release constant_value_expressions.
620
621 2020-11-06 Richard Biener <rguenther@suse.de>
622
623 PR tree-optimization/97706
624 * tree-vect-patterns.c (possible_vector_mask_operation_p):
625 PHIs are possible mask operations.
626 (vect_determine_mask_precision): Handle PHIs.
627 (vect_determine_precisions): Walk PHIs in BB analysis.
628
629 2020-11-06 Richard Biener <rguenther@suse.de>
630
631 * tree-vect-slp.c (vect_analyze_slp): Pass down the
632 SLP graph entry kind.
633 (vect_analyze_slp_instance): Simplify.
634 (vect_build_slp_instance): Adjust.
635 (vect_slp_check_for_constructors): Perform more
636 eligibility checks here.
637
638 2020-11-06 Jan Hubicka <jh@suse.cz>
639
640 * ipa-ref.h (enum ipa_ref_use): Remove GTY marker.
641 (struct ipa_ref): Remove GTY marker; reorder for better packing.
642 (struct ipa_ref_list): Remove GTY marker; turn references
643 nad referring to va_heap, vl_ptr vectors; update accesors.
644 * cgraph.h (symtab_node::iterate_reference): Update.
645 * ipa-ref.c (ipa_ref::remove_reference): Update.
646 * symtab.c (symtab_node::create_reference): Update.
647 (symtab_node::remove_all_references): Update.
648 (symtab_node::resolve_alias): Update.
649
650 2020-11-06 Jakub Jelinek <jakub@redhat.com>
651
652 * ipa-modref-tree.h: Fix comment typos.
653 * ipa-modref.c: Likewise.
654
655 2020-11-06 Andreas Krebbel <krebbel@linux.ibm.com>
656
657 * config/s390/s390.c (s390_option_override_internal): Remove
658 override of inline params.
659
660 2020-11-06 Richard Biener <rguenther@suse.de>
661
662 PR tree-optimization/97706
663 * tree-vect-patterns.c (vect_determine_mask_precision):
664 Remove worklist operation.
665 (vect_determine_stmt_precisions): Do not call
666 vect_determine_mask_precision here.
667 (vect_determine_precisions): Compute mask precision
668 in a forward walk.
669
670 2020-11-06 Richard Biener <rguenther@suse.de>
671
672 PR tree-optimization/97732
673 * tree-vect-loop.c (vectorizable_induction): Convert the
674 init elements to the vector component type.
675 * gimple-fold.c (gimple_build_vector): Use CONSTANT_CLASS_P
676 rather than TREE_CONSTANT to determine if elements are
677 eligible for VECTOR_CSTs.
678
679 2020-11-06 Jan Hubicka <jh@suse.cz>
680
681 * attr-fnspec.h (attr_fnspec::get_str): New accessor
682 * ipa-fnsummary.c (read_ipa_call_summary): Store also parm info
683 for builtins.
684 * ipa-modref.c (class fnspec_summary): New type.
685 (class fnspec_summaries_t): New type.
686 (modref_summary::modref_summary): Initialize writes_errno.
687 (struct modref_summary_lto): Add writes_errno.
688 (modref_summary_lto::modref_summary_lto): Initialize writes_errno.
689 (modref_summary::dump): Check for NULL pointers.
690 (modref_summary_lto::dump): Dump writes_errno.
691 (collapse_loads): Move up in source file.
692 (collapse_stores): New function.
693 (process_fnspec): Handle also internal calls.
694 (analyze_call): Likewise.
695 (analyze_stmt): Store fnspec string if needed.
696 (analyze_function): Initialize fnspec_sumarries.
697 (modref_summaries_lto::duplicate): Copy writes_errno.
698 (modref_write): Store writes_errno and fnspec summaries.
699 (read_section): Read writes_errno and fnspec summaries.
700 (modref_read): Initialize fnspec summaries.
701 (update_signature): Fix formating.
702 (compute_parm_map): Return true if sucessful.
703 (get_parm_type): New function.
704 (get_access_for_fnspec): New function.
705 (propagate_unknown_call): New function.
706 (modref_propagate_in_scc): Use it.
707 (pass_ipa_modref::execute): Delete fnspec_summaries.
708 (ipa_modref_c_finalize): Delete fnspec_summaries.
709 * ipa-prop.c: Include attr-fnspec.h.
710 (ipa_compute_jump_functions_for_bb): Also compute jump functions
711 for functions with fnspecs.
712 (ipa_read_edge_info): Read jump functions for builtins.
713
714 2020-11-06 Jan Hubicka <jh@suse.cz>
715
716 * ipa-fnsummary.h (class size_time_entry): Do not GTY annotate.
717 (class ipa_fnsummary): Turn size_time_table to auto_vec and
718 call_size_time_table to effecient vec; update constructors.
719 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Update.
720 (ipa_fn_summary::~ipa_fn_summary): Update.
721 (ipa_fn_summary_t::duplicate): Update.
722 (ipa_dump_fn_summary): Update.
723 (set_switch_stmt_execution_predicate): Update.
724 (analyze_function_body): Update.
725 (estimate_calls_size_and_time): Update.
726 (ipa_call_context::estimate_size_and_time): Update.
727 (ipa_merge_fn_summary_after_inlining): Update.
728 (ipa_update_overall_fn_summary): Update.
729 (inline_read_section): Update.
730 (ipa_fn_summary_write): Update.
731
732 2020-11-06 Richard Biener <rguenther@suse.de>
733
734 PR tree-optimization/97733
735 * tree-vect-slp.c (vect_analyze_slp_instance): If less
736 than two reductions were relevant or live do nothing.
737
738 2020-11-06 Jeff Law <law@redhat.com>
739
740 PR tree-optimization/97223
741 * match.pd (overflow detection and optimization): Handle conversions.
742
743 2020-11-06 Eugene Rozenfeld <erozen@microsoft.com>
744
745 * match.pd (x >> x): New pattern.
746
747 2020-11-06 Kito Cheng <kito.cheng@sifive.com>
748
749 * common/config/riscv/riscv-common.c (riscv_implied_info):
750 Add static and const.
751 (riscv_subset_list::handle_implied_ext): Add const due to
752 riscv_implied_info changed to const.
753
754 2020-11-06 Kito Cheng <kito.cheng@sifive.com>
755
756 PR target/96307
757 * toplev.c (process_options): Remove param_asan_stack checking for kasan
758 option checking.
759
760 2020-11-05 Marek Polacek <polacek@redhat.com>
761
762 PR c++/97675
763 * doc/invoke.texi: Document -Wexceptions.
764
765 2020-11-05 Marek Polacek <polacek@redhat.com>
766
767 PR c++/25814
768 * doc/invoke.texi: Document -Wvexing-parse.
769
770 2020-11-05 Andrew MacLeod <amacleod@redhat.com>
771
772 PR tree-optimization/97725
773 * range-op.cc (operator_equal::fold_range): Use new tmp value.
774 (operator_not_equal::fold_range): Ditto.
775 * value-query.cc (range_query::value_of_expr): Use int_range_max
776 not a value_range.
777 (range_query::value_on_edge): Ditto.
778 (range_query::value_of_stmt): Ditto.
779
780 2020-11-05 Olivier Hainque <hainque@adacore.com>
781
782 * config/aarch64/aarch64-vxworks.h (TARGET_OS_USES_R18):
783 Remove definition.
784 (STATIC_CHAIN_REGNUM): Redefine to 9.
785
786 2020-11-05 Olivier Hainque <hainque@adacore.com>
787
788 * config/aarch64/aarch64.md: Define PROBE_STACK_FIRST_REGNUM
789 and PROBE_STACK_SECOND_REGNUM constants, designating r10/r11.
790 Replacements for the PROBE_STACK_FIRST/SECOND_REG constants in
791 aarch64.c.
792 * config/aarch64/aarch64.c (PROBE_STACK_FIRST_REG): Remove.
793 (PROBE_STACK_SECOND_REG): Remove.
794 (aarch64_emit_probe_stack_range): Adjust to the _REG -> _REGNUM
795 suffix update for PROBE_STACK register numbers.
796
797 2020-11-05 Jan Hubicka <jh@suse.cz>
798
799 * gimple.c (gimple_call_fnspec): Handle C++ new and delete.
800 * gimple.h (gimple_call_from_new_or_delete): Constify parameter.
801
802 2020-11-05 Aldy Hernandez <aldyh@redhat.com>
803
804 PR tree-optimization/97721
805 * gimple-range.cc (get_tree_range): Drop overflow from constants.
806
807 2020-11-05 David Malcolm <dmalcolm@redhat.com>
808
809 * tree-diagnostic-path.cc (struct path_summary::event_range): Move
810 out of path_summary to...
811 (struct event_range): ...here.
812 (class path_summary): Convert to...
813 (struct path_summary): ...this.
814 (path_summary::m_ranges): Drop "private".
815 (path_summary::print): Convert to...
816 (print_path_summary_as_text): ...this, passing in the path_summary
817 explicitly.
818 (default_tree_diagnostic_path_printer): Update for above change.
819 (selftest::test_empty_path): Likewise.
820 (selftest::test_intraprocedural_path): Likewise.
821 (selftest::test_interprocedural_path_1): Likewise.
822 (selftest::test_interprocedural_path_2): Likewise.
823 (selftest::test_recursion): Likewise.
824
825 2020-11-05 qing zhao <qinzhao@gcc.gnu.org>
826
827 PR target/97715
828 * config/i386/i386.c (zero_all_st_registers): Return
829 earlier when the FPU is disabled.
830
831 2020-11-05 Jan Hubicka <jh@suse.cz>
832
833 * ipa-modref.c (parm_map_for_arg): Initialize parm_offset and
834 parm_offset_knonw.
835 (read_section): Set writes_errno to false.
836
837 2020-11-05 Richard Biener <rguenther@suse.de>
838
839 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
840 Use the original stmts.
841 (vect_slp_analyze_node_alignment): Use the pattern stmt.
842 * tree-vect-slp.c (vect_fixup_store_groups_with_patterns):
843 New function.
844 (vect_slp_analyze_bb_1): Call it.
845
846 2020-11-05 Tamar Christina <tamar.christina@arm.com>
847
848 * tree-vect-slp.c (vect_slp_tree_permute_noop_p): New.
849 (vect_optimize_slp): Optimize permutes.
850 (vectorizable_slp_permutation): Fix typo.
851
852 2020-11-05 Richard Biener <rguenther@suse.de>
853
854 PR debug/97718
855 * dwarf2out.c (add_abstract_origin_attribute): Make sure to
856 point to the abstract instance.
857
858 2020-11-05 Tamar Christina <tamar.christina@arm.com>
859
860 * tree-vect-loop.c (vect_analyze_loop_2): Check kind.
861 * tree-vect-slp.c (vect_build_slp_instance): New.
862 (enum slp_instance_kind): Move to...
863 * tree-vectorizer.h (enum slp_instance_kind): .. Here
864 (SLP_INSTANCE_KIND): New.
865
866 2020-11-05 Kewen Lin <linkw@linux.ibm.com>
867
868 PR target/96933
869 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use direct move
870 instructions for vector construction with char/short types.
871 * config/rs6000/rs6000.md (p8_mtvsrwz_v16qisi2): New define_insn.
872 (p8_mtvsrd_v16qidi2): Likewise.
873
874 2020-11-04 Tamar Christina <tamar.christina@arm.com>
875
876 * tree-vect-slp.c (vect_analyze_slp_instance): Moved load/store lanes
877 check to ...
878 * tree-vect-loop.c (vect_analyze_loop_2): ..Here
879
880 2020-11-04 Ilya Leoshkevich <iii@linux.ibm.com>
881
882 * config/s390/s390.c (NR_C_MODES): Unhardcode.
883 (s390_alloc_pool): Use size_t for iterating from 0 to
884 NR_C_MODES.
885 (s390_add_constant): Likewise.
886 (s390_find_constant): Likewise.
887 (s390_dump_pool): Likewise.
888 (s390_free_pool): Likewise.
889
890 2020-11-04 Ilya Leoshkevich <iii@linux.ibm.com>
891
892 * config/s390/s390.md (RRe): Remove.
893 (RXe): Remove.
894
895 2020-11-04 Andrew MacLeod <amacleod@redhat.com>
896
897 PR tree-optimization/97515
898 * gimple-range-cache.h (class ranger_cache): New prototypes plus
899 temporal cache pointer.
900 * gimple-range-cache.cc (struct range_timestamp): New.
901 (class temporal_cache): New.
902 (temporal_cache::temporal_cache): New.
903 (temporal_cache::~temporal_cache): New.
904 (temporal_cache::get_timestamp): New.
905 (temporal_cache::set_dependency): New.
906 (temporal_cache::temporal_value): New.
907 (temporal_cache::current_p): New.
908 (temporal_cache::set_timestamp): New.
909 (temporal_cache::set_always_current): New.
910 (ranger_cache::ranger_cache): Allocate the temporal cache.
911 (ranger_cache::~ranger_cache): Free temporal cache.
912 (ranger_cache::get_non_stale_global_range): New.
913 (ranger_cache::set_global_range): Add a timestamp.
914 (ranger_cache::register_dependency): New. Add timestamp dependency.
915 * gimple-range.cc (gimple_ranger::range_of_range_op): Add operand
916 dependencies.
917 (gimple_ranger::range_of_phi): Ditto.
918 (gimple_ranger::range_of_stmt): Check if global range is stale, and
919 recalculate if so.
920
921 2020-11-04 Tobias Burnus <tobias@codesourcery.com>
922
923 * targhooks.c (default_zero_call_used_regs): Fix flag-name typo
924 in sorry.
925
926 2020-11-04 Richard Biener <rguenther@suse.de>
927
928 * tree-vectorizer.h (vectorizable_phi): Adjust prototype.
929 * tree-vect-stmts.c (vect_transform_stmt): Adjust.
930 (vect_analyze_stmt): Pass cost_vec to vectorizable_phi.
931 * tree-vect-loop.c (vectorizable_phi): Do costing.
932
933 2020-11-04 Richard Biener <rguenther@suse.de>
934
935 PR tree-optimization/97709
936 * tree-vect-loop.c (vectorizable_live_operation): Set
937 SSA_NAME_OCCURS_IN_ABNORMAL_PHI when necessary.
938
939 2020-11-04 Jakub Jelinek <jakub@redhat.com>
940
941 PR tree-optimization/97690
942 * tree-ssa-phiopt.c (conditional_replacement): Also optimize
943 cond ? pow2p_cst : 0 as ((type) cond) << cst.
944
945 2020-11-04 Richard Biener <rguenther@suse.de>
946
947 * tree-vect-loop.c (vectorizable_induction): Re-instantiate
948 previously removed CSE of SLP IVs.
949
950 2020-11-04 Uroš Bizjak <ubizjak@gmail.com>
951
952 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
953 Fix Intel MCU psABI comment w.r.t DEFAULT_PCC_STRUCT_RETURN.
954
955 2020-11-04 Richard Biener <rguenther@suse.de>
956
957 PR bootstrap/97666
958 * tree-vect-slp.c (vect_build_slp_tree_2): Revert previous
959 fix and instead adjust the memset.
960
961 2020-11-04 Pat Bernardi <bernardi@adacore.com>
962
963 * config/i386/i386elf.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
964 (ASM_OUTPUT_ASCII): Likewise.
965 (DEFAULT_PCC_STRUCT_RETURN): Define.
966 * config/i386/i386.c (ix86_return_in_memory): Remove
967 SUBTARGET_RETURN_IN_MEMORY.
968
969 2020-11-04 liuhongt <hongtao.liu@intel.com>
970
971 PR target/97540
972 * ira.c: (ira_setup_alts): Extract memory from operand only
973 for special memory constraint.
974 * recog.c (asm_operand_ok): Ditto.
975 * lra-constraints.c (process_alt_operands): MEM_P is
976 required for normal memory constraint.
977
978 2020-11-04 liuhongt <hongtao.liu@intel.com>
979
980 PR target/97532
981 * lra-constraints.c (valid_address_p): Handle operand of
982 special memory constraint.
983 (process_address_1): Ditto.
984
985 2020-11-03 Jan Hubicka <hubicka@ucw.cz>
986
987 PR ipa/97695
988 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Fix ICE with
989 in dumping code.
990 (cgraph_node::remove): Save clone info before releasing it and pass it
991 to unregister.
992 * cgraph.h (symtab_node::unregister): Add clone_info parameter.
993 (cgraph_clone::unregister): Likewise.
994 * cgraphclones.c (cgraph_node::find_replacement): Copy clone info
995 * symtab-clones.cc (clone_infos_t::duplicate): Remove.
996 (clone_info::get_create): Simplify.
997 * symtab.c (symtab_node::unregister): Pass around clone info.
998 * varpool.c (varpool_node::remove): Update.
999
1000 2020-11-03 Thomas Schwinge <thomas@codesourcery.com>
1001
1002 * omp-low.c (scan_omp_for) <OpenACC>: Use proper location to
1003 'inform' of enclosing parent compute construct.
1004
1005 2020-11-03 Jan Hubicka <hubicka@ucw.cz>
1006
1007 PR ipa/97698
1008 * cgraphclones.c (duplicate_thunk_for_node): Check that info is
1009 non-NULL.
1010
1011 2020-11-03 Uroš Bizjak <ubizjak@gmail.com>
1012
1013 * config/i386/i386.c (ix86_function_arg_regno_p): Use up to
1014 SSE_REGPARM_MAX registers to pass function parameters
1015 for 32bit Mach-O targets.
1016 * config/i386/i386.h (X86_32_MMX_REGPARM_MAX): New macro.
1017 (MMX_REGPARM_MAX): Use it.
1018
1019 2020-11-03 Dennis Zhang <dennis.zhang@arm.com>
1020
1021 * config/aarch64/aarch64-simd-builtins.def (vget_lo_half): New entry.
1022 (vget_hi_half): Likewise.
1023 * config/aarch64/aarch64-simd.md (aarch64_vget_lo_halfv8bf): New entry.
1024 (aarch64_vget_hi_halfv8bf): Likewise.
1025 * config/aarch64/arm_neon.h (vget_low_bf16): New intrinsic.
1026 (vget_high_bf16): Likewise.
1027
1028 2020-11-03 Yang Yang <yangyang305@huawei.com>
1029
1030 * cgraph.h (struct cgraph_simd_clone): Change field "simdlen" of
1031 struct cgraph_simd_clone from unsigned int to poly_uint64.
1032 * config/aarch64/aarch64.c
1033 (aarch64_simd_clone_compute_vecsize_and_simdlen): adaptation of
1034 operations on "simdlen".
1035 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
1036 Printf formats update.
1037 * gengtype.c (main): Handle poly_uint64.
1038 * omp-simd-clone.c (simd_clone_mangle): Likewise.Re
1039 (simd_clone_adjust_return_type): Likewise.
1040 (create_tmp_simd_array): Likewise.
1041 (simd_clone_adjust_argument_types): Likewise.
1042 (simd_clone_init_simd_arrays): Likewise.
1043 (ipa_simd_modify_function_body): Likewise.
1044 (simd_clone_adjust): Likewise.
1045 (expand_simd_clones): Likewise.
1046 * poly-int-types.h (vector_unroll_factor): New macro.
1047 * poly-int.h (constant_multiple_p): Add two-argument versions.
1048 * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
1049
1050 2020-11-03 Richard Biener <rguenther@suse.de>
1051
1052 PR tree-optimization/97623
1053 * params.opt (-param=max-pre-hoist-insert-iterations): New.
1054 * doc/invoke.texi (max-pre-hoist-insert-iterations): Document.
1055 * tree-ssa-pre.c (insert): Do at most max-pre-hoist-insert-iterations
1056 hoist insert iterations.
1057
1058 2020-11-03 Richard Biener <rguenther@suse.de>
1059
1060 PR middle-end/97579
1061 * gimple-isel.cc (gimple_expand_vec_cond_expr): Use
1062 the correct types for the vcond_mask/vec_cmp optab queries.
1063
1064 2020-11-03 Andrew MacLeod <amacleod@redhat.com>
1065
1066 * gimple-range-cache.cc (ssa_global_cache::get_global_range): Return
1067 true if there was a previous range set.
1068 (ranger_cache::ranger_cache): Take a gimple_ranger parameter.
1069 (ranger_cache::set_global_range): Propagate the value if updating.
1070 (ranger_cache::propagate_cache): Renamed from iterative_cache_update.
1071 (ranger_cache::propagate_updated_value): New. Split from:
1072 (ranger_cache::fill_block_cache): Split out value propagator.
1073 * gimple-range-cache.h (ssa_global_cache): Update prototypes.
1074 (ranger_cache): Update prototypes.
1075
1076 2020-11-03 Andrew MacLeod <amacleod@redhat.com>
1077
1078 * gimple-range-cache.h (block_range_cache): Add new entry point.
1079 (ranger_cache): Privatize global abnd block cache members.
1080 * gimple-range-cache.cc (ssa_block_ranges::set_bb_range): Add bounds
1081 check.
1082 (ssa_block_ranges::set_bb_varying): Ditto.
1083 (ssa_block_ranges::get_bb_range): Ditto.
1084 (ssa_block_ranges::bb_range_p): Ditto.
1085 (block_range_cache::get_block_ranges): Fix formatting.
1086 (block_range_cache::query_block_ranges): New.
1087 (block_range_cache::get_bb_range): Use Query_block_ranges.
1088 (block_range_cache::bb_range_p): Ditto.
1089 (ranger_cache::dump): New.
1090 (ranger_cache::get_global_range): New.
1091 (ranger_cache::set_global_range): New.
1092 * gimple-range.cc (gimple_ranger::range_of_expr): Use new API.
1093 (gimple_ranger::range_of_stmt): Ditto.
1094 (gimple_ranger::export_global_ranges): Ditto.
1095 (gimple_ranger::dump): Ditto.
1096
1097 2020-11-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1098
1099 * fold-const.c (getbyterep): Remove duplicated statement.
1100
1101 2020-11-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1102
1103 PR target/97205
1104 * cfgexpand.c (align_local_variable): Make SSA_NAMEs
1105 at least MODE_ALIGNED.
1106 (expand_one_stack_var_at): Increase MEM_ALIGN for SSA_NAMEs.
1107
1108 2020-11-03 Zhiheng Xie <xiezhiheng@huawei.com>
1109 Nannan Zheng <zhengnannan@huawei.com>
1110
1111 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
1112 for AES/SHA/SM3/SM4 intrinsics.
1113
1114 2020-11-03 Zhiheng Xie <xiezhiheng@huawei.com>
1115 Nannan Zheng <zhengnannan@huawei.com>
1116
1117 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
1118 for compare intrinsics.
1119
1120 2020-11-03 Richard Biener <rguenther@suse.de>
1121
1122 * dwarf2out.c (maybe_create_die_with_external_ref): Remove
1123 hashtable entry.
1124
1125 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1126
1127 * config/arm/arm_neon.h (vst2_lane_bf16, vst2q_lane_bf16)
1128 (vst3_lane_bf16, vst3q_lane_bf16, vst4_lane_bf16)
1129 (vst4q_lane_bf16): New intrinsics.
1130 * config/arm/arm_neon_builtins.def: Touch it for:
1131 __builtin_neon_vst2_lanev4bf, __builtin_neon_vst2_lanev8bf,
1132 __builtin_neon_vst3_lanev4bf, __builtin_neon_vst3_lanev8bf,
1133 __builtin_neon_vst4_lanev4bf,__builtin_neon_vst4_lanev8bf.
1134
1135 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1136
1137 * config/arm/arm_neon.h (vld2_lane_bf16, vld2q_lane_bf16)
1138 (vld3_lane_bf16, vld3q_lane_bf16, vld4_lane_bf16)
1139 (vld4q_lane_bf16): Add intrinsics.
1140 * config/arm/arm_neon_builtins.def: Touch for:
1141 __builtin_neon_vld2_lanev4bf, __builtin_neon_vld2_lanev8bf,
1142 __builtin_neon_vld3_lanev4bf, __builtin_neon_vld3_lanev8bf,
1143 __builtin_neon_vld4_lanev4bf, __builtin_neon_vld4_lanev8bf.
1144 * config/arm/iterators.md (VQ_HS): Add V8BF to the iterator.
1145
1146 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1147
1148 * config/arm/arm_neon.h (vst1_bf16, vst1q_bf16): Add intrinsics.
1149 * config/arm/arm_neon_builtins.def : Touch for:
1150 __builtin_neon_vst1v4bf, __builtin_neon_vst1v8bf.
1151
1152 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1153
1154 * config/arm/arm-builtins.c (VAR14): Define macro.
1155 * config/arm/arm_neon_builtins.def: Touch for:
1156 __builtin_neon_vld1v4bf, __builtin_neon_vld1v8bf.
1157 * config/arm/arm_neon.h (vld1_bf16, vld1q_bf16): Add intrinsics.
1158
1159 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1160
1161 * config/arm/arm_neon.h (vst1_lane_bf16, vst1q_lane_bf16): Add
1162 intrinsics.
1163 * config/arm/arm_neon_builtins.def (STORE1LANE): Add v4bf, v8bf.
1164
1165 2020-11-03 Andrea Corallo <andrea.corallo@arm.com>
1166
1167 * config/arm/arm_neon_builtins.def: Add to LOAD1LANE v4bf, v8bf.
1168 * config/arm/arm_neon.h (vld1_lane_bf16, vld1q_lane_bf16): Add
1169 intrinsics.
1170
1171 2020-11-03 Richard Biener <rguenther@suse.de>
1172
1173 PR bootstrap/97666
1174 * tree-vect-slp.c (vect_build_slp_tree_2): Scale
1175 allocation of skip_args by sizeof (bool).
1176
1177 2020-11-03 Richard Biener <rguenther@suse.de>
1178
1179 PR tree-optimization/80928
1180 * tree-vect-loop.c (vectorizable_induction): SLP vectorize
1181 nested inductions.
1182
1183 2020-11-03 Jan Hubicka <hubicka@ucw.cz>
1184
1185 PR ipa/97578
1186 * ipa-inline-transform.c (maybe_materialize_called_clones): New
1187 function.
1188 (inline_transform): Use it.
1189
1190 2020-11-03 Richard Biener <rguenther@suse.de>
1191
1192 PR tree-optimization/97678
1193 * tree-vect-slp.c (vect_build_slp_tree_2): Do not track
1194 the initial values of inductions when not nested.
1195 * tree-vect-loop.c (vectorizable_induction): Look at
1196 PHI node initial values again for SLP and not nested
1197 inductions. Handle LOOP_VINFO_MASK_SKIP_NITERS and cost
1198 invariants.
1199
1200 2020-11-03 Uroš Bizjak <ubizjak@gmail.com>
1201
1202 * config/i386/sse.md (aes<aeswideklvariant>u8):
1203 Do not use xmm_regs array. Fix whitespace.
1204
1205 2020-11-03 Uroš Bizjak <ubizjak@gmail.com>
1206
1207 * config/i386/i386-expand.c (ix86_expand_builtin): Fix comment.
1208
1209 2020-11-03 Thomas Schwinge <thomas@codesourcery.com>
1210
1211 * omp-low.c (scan_omp_for) <OpenACC>: Move earlier inconsistent
1212 nested 'reduction' clauses checking.
1213
1214 2020-11-03 Thomas Schwinge <thomas@codesourcery.com>
1215
1216 * omp-low.c (scan_omp_for) <OpenACC>: More precise diagnostics for
1217 'gang', 'worker', 'vector' clauses with arguments only allowed in
1218 'kernels' regions.
1219
1220 2020-11-03 Kewen Lin <linkw@gcc.gnu.org>
1221
1222 PR tree-optimization/96789
1223 * function.h (struct function): New member unsigned pending_TODOs.
1224 * passes.c (class pass_pre_slp_scalar_cleanup): New class.
1225 (make_pass_pre_slp_scalar_cleanup): New function.
1226 (pass_data_pre_slp_scalar_cleanup): New pass data.
1227 * passes.def: (pass_pre_slp_scalar_cleanup): New pass, add
1228 pass_fre and pass_dse as its children.
1229 * timevar.def (TV_SCALAR_CLEANUP): New timevar.
1230 * tree-pass.h (PENDING_TODO_force_next_scalar_cleanup): New
1231 pending TODO flag.
1232 (make_pass_pre_slp_scalar_cleanup): New declare.
1233 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1):
1234 Once any outermost loop gets unrolled, flag cfun pending_TODOs
1235 PENDING_TODO_force_next_scalar_cleanup on.
1236
1237 2020-11-02 Alan Modra <amodra@gmail.com>
1238
1239 PR middle-end/97267
1240 * calls.h (maybe_complain_about_tail_call): Declare.
1241 * calls.c (maybe_complain_about_tail_call): Make global.
1242 (can_implement_as_sibling_call_p): Delete reg_parm_stack_space
1243 param. Adjust caller. Move REG_PARM_STACK_SPACE check to..
1244 * config/i386/i386.c (ix86_function_ok_for_sibcall): ..here.
1245
1246 2020-11-02 Vladimir N. Makarov <vmakarov@redhat.com>
1247
1248 * ira.c (ira_remove_scratches): Rename to remove_scratches. Make
1249 it static and returning flag of any change.
1250 (ira.c): Call ira_expand_reg_equiv in case of removing scratches.
1251
1252 2020-11-02 H.J. Lu <hjl.tools@gmail.com>
1253
1254 PR target/97140
1255 * config/i386/i386-expand.c (ix86_expand_builtin): Require MMX
1256 for __builtin_ia32_maskmovq.
1257
1258 2020-11-02 Martin Sebor <msebor@redhat.com>
1259
1260 * doc/invoke.texi (-Wstringop-overflow): Correct default setting.
1261 (-Wstringop-overread): Move past -Wstringop-overflow.
1262
1263 2020-11-02 François-Xavier Coudert <fxcoudert@gcc.gnu.org>
1264
1265 PR bootstrap/57076
1266 * Makefile.in (gcc-vers.texi): Quote @, { and }.
1267
1268 2020-11-02 Carl Love <cel@us.ibm.com>
1269
1270 PR target/93449
1271 * config/rs6000/altivec.h (__builtin_bcdadd, __builtin_bcdadd_lt,
1272 __builtin_bcdadd_eq, __builtin_bcdadd_gt, __builtin_bcdadd_ofl,
1273 __builtin_bcdadd_ov, __builtin_bcdsub, __builtin_bcdsub_lt,
1274 __builtin_bcdsub_eq, __builtin_bcdsub_gt, __builtin_bcdsub_ofl,
1275 __builtin_bcdsub_ov, __builtin_bcdinvalid, __builtin_bcdmul10,
1276 __builtin_bcddiv10, __builtin_bcd2dfp, __builtin_bcdcmpeq,
1277 __builtin_bcdcmpgt, __builtin_bcdcmplt, __builtin_bcdcmpge,
1278 __builtin_bcdcmple): Add defines.
1279 * config/rs6000/altivec.md: Add UNSPEC_BCDSHIFT.
1280 (BCD_TEST): Add le, ge to code iterator.
1281 Add VBCD mode iterator.
1282 (bcd<bcd_add_sub>_test, *bcd<bcd_add_sub>_test2,
1283 bcd<bcd_add_sub>_<code>, bcd<bcd_add_sub>_<code>): Add mode to name.
1284 Change iterator from V1TI to VBCD.
1285 (*bcdinvalid_<mode>, bcdshift_v16qi): New define_insn.
1286 (bcdinvalid_<mode>, bcdmul10_v16qi, bcddiv10_v16qi): New define.
1287 * config/rs6000/dfp.md (dfp_denbcd_v16qi_inst): New define_insn.
1288 (dfp_denbcd_v16qi): New define_expand.
1289 * config/rs6000/rs6000-builtin.def (BU_P8V_MISC_1): New define.
1290 (BCDADD): Replaced with BCDADD_V1TI and BCDADD_V16QI.
1291 (BCDADD_LT): Replaced with BCDADD_LT_V1TI and BCDADD_LT_V16QI.
1292 (BCDADD_EQ): Replaced with BCDADD_EQ_V1TI and BCDADD_EQ_V16QI.
1293 (BCDADD_GT): Replaced with BCDADD_GT_V1TI and BCDADD_GT_V16QI.
1294 (BCDADD_OV): Replaced with BCDADD_OV_V1TI and BCDADD_OV_V16QI.
1295 (BCDSUB_V1TI, BCDSUB_V16QI, BCDSUB_LT_V1TI, BCDSUB_LT_V16QI,
1296 BCDSUB_LE_V1TI, BCDSUB_LE_V16QI, BCDSUB_EQ_V1TI, BCDSUB_EQ_V16QI,
1297 BCDSUB_GT_V1TI, BCDSUB_GT_V16QI, BCDSUB_GE_V1TI, BCDSUB_GE_V16QI,
1298 BCDSUB_OV_V1TI, BCDSUB_OV_V16QI, BCDINVALID_V1TI, BCDINVALID_V16QI,
1299 BCDMUL10_V16QI, BCDDIV10_V16QI, DENBCD_V16QI): New builtin definitions.
1300 (BCDADD, BCDADD_LT, BCDADD_EQ, BCDADD_GT, BCDADD_OV, BCDSUB, BCDSUB_LT,
1301 BCDSUB_LE, BCDSUB_EQ, BCDSUB_GT, BCDSUB_GE, BCDSUB_OV, BCDINVALID,
1302 BCDMUL10, BCDDIV10, DENBCD): New overload definitions.
1303 * config/rs6000/rs6000-call.c (P8V_BUILTIN_VEC_BCDADD, P8V_BUILTIN_VEC_BCDADD_LT,
1304 P8V_BUILTIN_VEC_BCDADD_EQ, P8V_BUILTIN_VEC_BCDADD_GT, P8V_BUILTIN_VEC_BCDADD_OV,
1305 P8V_BUILTIN_VEC_BCDINVALID, P9V_BUILTIN_VEC_BCDMUL10, P8V_BUILTIN_VEC_DENBCD.
1306 P8V_BUILTIN_VEC_BCDSUB, P8V_BUILTIN_VEC_BCDSUB_LT, P8V_BUILTIN_VEC_BCDSUB_LE,
1307 P8V_BUILTIN_VEC_BCDSUB_EQ, P8V_BUILTIN_VEC_BCDSUB_GT, P8V_BUILTIN_VEC_BCDSUB_GE,
1308 P8V_BUILTIN_VEC_BCDSUB_OV): New overloaded specifications.
1309 (CODE_FOR_bcdadd): Replaced with CODE_FOR_bcdadd_v16qi and CODE_FOR_bcdadd_v1ti.
1310 (CODE_FOR_bcdadd_lt): Replaced with CODE_FOR_bcdadd_lt_v16qi and CODE_FOR_bcdadd_lt_v1ti.
1311 (CODE_FOR_bcdadd_eq): Replaced with CODE_FOR_bcdadd_eq_v16qi and CODE_FOR_bcdadd_eq_v1ti.
1312 (CODE_FOR_bcdadd_gt): Replaced with CODE_FOR_bcdadd_gt_v16qi and CODE_FOR_bcdadd_gt_v1ti.
1313 (CODE_FOR_bcdsub): Replaced with CODE_FOR_bcdsub_v16qi and CODE_FOR_bcdsub_v1ti.
1314 (CODE_FOR_bcdsub_lt): Replaced with CODE_FOR_bcdsub_lt_v16qi and CODE_FOR_bcdsub_lt_v1ti.
1315 (CODE_FOR_bcdsub_eq): Replaced with CODE_FOR_bcdsub_eq_v16qi and CODE_FOR_bcdsub_eq_v1ti.
1316 (CODE_FOR_bcdsub_gt): Replaced with CODE_FOR_bcdsub_gt_v16qi and CODE_FOR_bcdsub_gt_v1ti.
1317 (rs6000_expand_ternop_builtin): Add CODE_FOR_dfp_denbcd_v16qi to else if.
1318 * doc/extend.texi: Add documentation for new builtins.
1319
1320 2020-11-02 Nathan Sidwell <nathan@acm.org>
1321
1322 * tree.c (cache_integer_cst): Fixup pointer caching to match
1323 wide_int_to_type_1's expectations. Add comment.
1324
1325 2020-11-02 Nathan Sidwell <nathan@acm.org>
1326
1327 * tree.h (id_equal): Call the symetric predicate with swapped
1328 arguments.
1329
1330 2020-11-02 Nathan Sidwell <nathan@acm.org>
1331
1332 * print-tree.c (print_node): Display all the operands of a call
1333 expr.
1334
1335 2020-11-02 Vladimir N. Makarov <vmakarov@redhat.com>
1336
1337 * config/rs6000/vsx.md (*vsx_extract_<mode>_store_p9): Add hint *
1338 to 2nd alternative of the 1st scratch.
1339
1340 2020-11-02 Sudakshina Das <sudi.das@arm.com>
1341
1342 PR target/97638
1343 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Update
1344 return value on INSN_P check.
1345
1346 2020-11-02 Richard Biener <rguenther@suse.de>
1347
1348 * tree.h (build_real_from_wide): Declare.
1349 * tree.c (build_real_from_wide): New function.
1350 * tree-vect-slp.c (vect_build_slp_tree_2): Remove
1351 restriction on induction vectorization, represent
1352 the initial value.
1353 * tree-vect-loop.c (vect_model_induction_cost): Inline ...
1354 (vectorizable_induction): ... here. Rewrite SLP
1355 code generation.
1356
1357 2020-11-02 Martin Jambor <mjambor@suse.cz>
1358
1359 * dbgcnt.def (ipa_cp_values): New counter.
1360 (ipa_cp_vr): Likewise.
1361 * ipa-cp.c (decide_about_value): Check and bump ipa_cp_values debug
1362 counter.
1363 (decide_whether_version_node): Likewise.
1364 (ipcp_store_vr_results):Check and bump ipa_cp_vr debug counter.
1365
1366 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1367
1368 * config/arm/arm.c (arm_thumb1_mi_thunk): Build mi_delta in r3 and
1369 do not emit function address and delta when -mpure-code is used.
1370
1371 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1372
1373 * config/arm/thumb1.md (thumb1_movsi_insn): Call
1374 thumb1_gen_const_int_print.
1375 * config/arm/arm-protos.h (thumb1_gen_const_int_print): Add
1376 prototype.
1377 * config/arm/arm.c (thumb1_gen_const_int_print): New.
1378
1379 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1380
1381 * config/arm/arm.c (thumb1_const_rtl, thumb1_const_print): New
1382 classes.
1383 (thumb1_gen_const_int): Rename to ...
1384 (thumb1_gen_const_int_1): ... New helper function. Add capability
1385 to emit either RTL or asm, improve generated code.
1386 (thumb1_gen_const_int_rtl): New function.
1387 * config/arm/arm-protos.h (thumb1_gen_const_int): Rename to
1388 thumb1_gen_const_int_rtl.
1389 * config/arm/thumb1.md: Call thumb1_gen_const_int_rtl instead
1390 of thumb1_gen_const_int.
1391
1392 2020-11-02 Richard Biener <rguenther@suse.de>
1393
1394 PR tree-optimization/97558
1395 * tree-vect-loop.c (vectorizable_reduction): For nested SLP
1396 cycles compute invariant operands vector type.
1397
1398 2020-11-02 Richard Biener <rguenther@suse.de>
1399
1400 PR tree-optimization/97558
1401 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns):
1402 Check for any mismatch in pattern vs. non-pattern and dissolve
1403 the group if there is one.
1404 * tree-vect-slp.c (vect_analyze_slp_instance): Avoid
1405 analyzing not relevant reductions.
1406 (vect_analyze_slp): Avoid analyzing not relevant reduction
1407 groups.
1408
1409 2020-11-02 Richard Biener <rguenther@suse.de>
1410
1411 PR tree-optimization/97650
1412 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check
1413 for SSA_NAME before checking SSA_NAME_IS_DEFAULT_DEF.
1414
1415 2020-11-02 Kito Cheng <kito.cheng@sifive.com>
1416
1417 * common/config/riscv/riscv-common.c
1418 (riscv_subset_list::parse_multiletter_ext): Checking multiletter
1419 extension has more than 1 letter.
1420
1421 2020-11-02 Kito Cheng <kito.cheng@sifive.com>
1422
1423 * config.gcc (riscv*-*-*): Handle --with-multilib-generator.
1424 * configure: Regen.
1425 * configure.ac: Add --with-multilib-generator.
1426 * config/riscv/multilib-generator: Exit when parsing arch string error.
1427 * config/riscv/t-withmultilib-generator: New.
1428 * doc/install.texi: Document --with-multilib-generator.
1429
1430 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1431
1432 PR target/96770
1433 * config/arm/arm.c (thumb_legitimate_constant_p): Accept
1434 (symbol_ref + addend) when literal pool is disabled.
1435 (arm_valid_symbolic_address_p): Add support for thumb-1 without
1436 MOVT/MOVW.
1437 * config/arm/thumb1.md (*thumb1_movsi_insn): Accept (symbol_ref +
1438 addend) in the pure-code alternative.
1439
1440 2020-11-02 Christophe Lyon <christophe.lyon@linaro.org>
1441
1442 PR target/96967
1443 * config/arm/arm.c (thumb_legitimate_constant_p): Add support for
1444 disabled literal pool in thumb-1.
1445 * config/arm/thumb1.md (thumb1_movsi_symbol_ref): Remove.
1446 (*thumb1_movsi_insn): Add support for SYMBOL_REF with -mpure-code.
1447
1448 2020-11-01 Iain Sandoe <iain@sandoe.co.uk>
1449
1450 * config/host-darwin.c: Align pch_address_space to 16384.
1451
1452 2020-11-01 Pat Bernardi <bernardi@adacore.com>
1453
1454 * config/i386/i386.c (ix86_expand_prologue): Set the stack usage to 0
1455 for naked functions.
1456
1457 2020-11-01 Iain Buclaw <ibuclaw@gdcproject.org>
1458
1459 PR ipa/97660
1460 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't call
1461 clone_info::get when cgraph_node::get returns NULL.
1462
1463 2020-10-31 Jan Hubicka <jh@suse.cz>
1464
1465 * Makefile.in: (OBJS): Add symtab-clones.o
1466 (GTFILES): Add symtab-clones.h
1467 * cgraph.c: Include symtab-clones.h.
1468 (cgraph_edge::resolve_speculation): Fix formating
1469 (cgraph_edge::redirect_call_stmt_to_callee): Update.
1470 (cgraph_update_edges_for_call_stmt): Update
1471 (release_function_body): Fix formating.
1472 (cgraph_node::remove): Fix formating.
1473 (cgraph_node::dump): Fix formating.
1474 (cgraph_node::get_availability): Fix formating.
1475 (cgraph_node::call_for_symbol_thunks_and_aliases): Fix formating.
1476 (set_const_flag_1): Fix formating.
1477 (set_pure_flag_1): Fix formating.
1478 (cgraph_node::can_remove_if_no_direct_calls_p): Fix formating.
1479 (collect_callers_of_node_1): Fix formating.
1480 (clone_of_p): Update.
1481 (cgraph_node::verify_node): Update.
1482 (cgraph_c_finalize): Call clone_info::release ().
1483 * cgraph.h (struct cgraph_clone_info): Move to symtab-clones.h.
1484 (cgraph_node): Remove clone_info.
1485 (symbol_table): Add m_clones.
1486 * cgraphclones.c: Include symtab-clone.h.
1487 (duplicate_thunk_for_node): Update.
1488 (cgraph_node::create_clone): Update.
1489 (cgraph_node::create_virtual_clone): Update.
1490 (cgraph_node::find_replacement): Update.
1491 (cgraph_node::materialize_clone): Update.
1492 * gengtype.c (open_base_files): Include symtab-clones.h.
1493 * ipa-cp.c: Include symtab-clones.h.
1494 (initialize_node_lattices): Update.
1495 (want_remove_some_param_p): Update.
1496 (create_specialized_node): Update.
1497 * ipa-fnsummary.c: Include symtab-clones.h.
1498 (ipa_fn_summary_t::duplicate): Update.
1499 * ipa-modref.c: Include symtab-clones.h.
1500 (update_signature): Update.
1501 * ipa-param-manipulation.c: Include symtab-clones.h.
1502 (ipa_param_body_adjustments::common_initialization): Update.
1503 * ipa-prop.c: Include symtab-clones.h.
1504 (adjust_agg_replacement_values): Update.
1505 (ipcp_get_parm_bits): Update.
1506 (ipcp_update_bits): Update.
1507 (ipcp_update_vr): Update.
1508 * ipa-sra.c: Include symtab-clones.h.
1509 (process_isra_node_results): Update.
1510 (disable_unavailable_parameters): Update.
1511 * lto-cgraph.c: Include symtab-clone.h.
1512 (output_cgraph_opt_summary_p): Update.
1513 (output_node_opt_summary): Update.
1514 (input_node_opt_summary): Update.
1515 * symtab-clones.cc: New file.
1516 * symtab-clones.h: New file.
1517 * tree-inline.c (expand_call_inline): Update.
1518 (update_clone_info): Update.
1519 (tree_function_versioning): Update.
1520
1521 2020-10-31 Jan Hubicka <jh@suse.cz>
1522
1523 * ipa-modref.c (modref_summary::dump): Dump writes_errno.
1524 (parm_map_for_arg): Break out from ...
1525 (merge_call_side_effects): ... here.
1526 (get_access_for_fnspec): New function.
1527 (process_fnspec): New function.
1528 (analyze_call): Use it.
1529 (analyze_stmt): Update.
1530 (analyze_function): Initialize writes_errno.
1531 (modref_summaries::duplicate): Duplicate writes_errno.
1532 * ipa-modref.h (struct modref_summary): Add writes_errno.
1533 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Check errno.
1534
1535 2020-10-30 Michael Meissner <meissner@linux.ibm.com>
1536
1537 * config/rs6000/rs6000.c (glibc_supports_ieee_128bit): New helper
1538 function.
1539 (rs6000_option_override_internal): Call it.
1540
1541 2020-10-30 Qing Zhao <qing.zhao@oracle.com>
1542 H.J.Lu <hjl.tools@gmail.com>
1543
1544 * common.opt: Add new option -fzero-call-used-regs
1545 * config/i386/i386.c (zero_call_used_regno_p): New function.
1546 (zero_call_used_regno_mode): Likewise.
1547 (zero_all_vector_registers): Likewise.
1548 (zero_all_st_registers): Likewise.
1549 (zero_all_mm_registers): Likewise.
1550 (ix86_zero_call_used_regs): Likewise.
1551 (TARGET_ZERO_CALL_USED_REGS): Define.
1552 * df-scan.c (df_epilogue_uses_p): New function.
1553 (df_get_exit_block_use_set): Replace EPILOGUE_USES with
1554 df_epilogue_uses_p.
1555 * df.h (df_epilogue_uses_p): Declare.
1556 * doc/extend.texi: Document the new zero_call_used_regs attribute.
1557 * doc/invoke.texi: Document the new -fzero-call-used-regs option.
1558 * doc/tm.texi: Regenerate.
1559 * doc/tm.texi.in (TARGET_ZERO_CALL_USED_REGS): New hook.
1560 * emit-rtl.h (struct rtl_data): New field must_be_zero_on_return.
1561 * flag-types.h (namespace zero_regs_flags): New namespace.
1562 * function.c (gen_call_used_regs_seq): New function.
1563 (class pass_zero_call_used_regs): New class.
1564 (pass_zero_call_used_regs::execute): New function.
1565 (make_pass_zero_call_used_regs): New function.
1566 * optabs.c (expand_asm_reg_clobber_mem_blockage): New function.
1567 * optabs.h (expand_asm_reg_clobber_mem_blockage): Declare.
1568 * opts.c (zero_call_used_regs_opts): New structure array
1569 initialization.
1570 (parse_zero_call_used_regs_options): New function.
1571 (common_handle_option): Handle -fzero-call-used-regs.
1572 * opts.h (zero_call_used_regs_opts): New structure array.
1573 * passes.def: Add new pass pass_zero_call_used_regs.
1574 * recog.c (valid_insn_p): New function.
1575 * recog.h (valid_insn_p): Declare.
1576 * resource.c (init_resource_info): Replace EPILOGUE_USES with
1577 df_epilogue_uses_p.
1578 * target.def (zero_call_used_regs): New hook.
1579 * targhooks.c (default_zero_call_used_regs): New function.
1580 * targhooks.h (default_zero_call_used_regs): Declare.
1581 * tree-pass.h (make_pass_zero_call_used_regs): Declare.
1582
1583 2020-10-30 Vladimir N. Makarov <vmakarov@redhat.com>
1584
1585 * lra.c (get_scratch_reg): New function.
1586 (remove_scratches_1): Rename remove_insn_scratches. Use
1587 ira_remove_insn_scratches and get_scratch_reg.
1588 (remove_scratches): Do not
1589 initialize scratches, scratch_bitmap, and scratch_operand_bitmap.
1590 (lra): Call ira_restore_scratches instead of restore_scratches.
1591 (struct sloc, sloc_t, scratches, scratch_bitmap)
1592 (scratch_operand_bitmap, lra_former_scratch_p)
1593 (lra_former_scratch_operand_p, lra_register_new_scratch_op)
1594 (restore_scratches): Move them to ...
1595 * ira.c: ... here.
1596 (former_scratch_p, former_scratch_operand_p): Rename to
1597 ira_former_scratch_p and ira_former_scratch_operand_p.
1598 (contains_X_constraint_p): New function.
1599 (register_new_scratch_op): Rename to ira_register_new_scratch_op.
1600 Change it to work for IRA and LRA.
1601 (restore_scratches): Rename to ira_restore_scratches.
1602 (get_scratch_reg, ira_remove_insn_scratches): New functions.
1603 (ira): Call ira_remove_scratches if we use LRA.
1604 * ira.h (ira_former_scratch_p, ira_former_scratch_operand_p): New
1605 prototypes.
1606 (ira_register_new_scratch_op, ira_restore_scratches): New prototypes.
1607 (ira_remove_insn_scratches): New prototype.
1608 * lra-int.h (lra_former_scratch_p, lra_former_scratch_operand_p):
1609 Remove prototypes.
1610 (lra_register_new_scratch_op): Ditto.
1611 * lra-constraints.c: Rename lra_former_scratch_p and
1612 lra_former_scratch_p to ira_former_scratch_p and to
1613 ira_former_scratch_p.
1614 * lra-remat.c: Ditto.
1615 * lra-spills.c: Rename lra_former_scratch_p to ira_former_scratch_p.
1616
1617 2020-10-30 Martin Sebor <msebor@redhat.com>
1618
1619 PR middle-end/97556
1620 * builtins.c (access_ref::add_offset): Cap offset lower bound
1621 to at most the the upper bound.
1622
1623 2020-10-30 Jan Hubicka <jh@suse.cz>
1624
1625 PR pch/97593
1626 * cgraph.c (cgraph_node::create_thunk): Register thunk as early during
1627 parsing.
1628 * cgraphunit.c (analyze_functions): Call
1629 thunk_info::process_early_thunks.
1630 * symtab-thunks.cc (struct unprocessed_thunk): New struct.
1631 (thunks): New static variable.
1632 (thunk_info::register_early): New member function.
1633 (thunk_info::process_early_thunks): New member function.
1634 * symtab-thunks.h (thunk_info::register_early): Declare.
1635 (thunk_info::process_early_thunks): Declare.
1636
1637 2020-10-30 Richard Biener <rguenther@suse.de>
1638
1639 PR tree-optimization/97623
1640 * tree-ssa-pre.c (insert): First do hoist insertion in
1641 a backward walk.
1642
1643 2020-10-30 Richard Biener <rguenther@suse.de>
1644
1645 PR tree-optimization/97626
1646 * tree-vect-slp.c (vect_slp_analyze_node_operations):
1647 Exchange the lvisited hash-set for a vector, roll back
1648 recursive adds to visited when analysis failed.
1649 (vect_slp_analyze_operations): Likewise.
1650
1651 2020-10-30 Zhiheng Xie <xiezhiheng@huawei.com>
1652 Nannan Zheng <zhengnannan@huawei.com>
1653
1654 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
1655 for conversion intrinsics.
1656
1657 2020-10-30 Richard Biener <rguenther@suse.de>
1658
1659 PR tree-optimization/97633
1660 * tree-vect-slp.c (): Update backedges in single-node cycles.
1661 Optimize processing of externals.
1662
1663 2020-10-30 Alex Coplan <alex.coplan@arm.com>
1664
1665 PR target/96998
1666 * combine.c (make_extraction): Also handle shifts written as
1667 (mult x 2^n), avoid creating an extract rtx for these.
1668 * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Delete.
1669 (aarch64_classify_index): Remove extract-based address handling.
1670 (aarch64_strip_extend): Likewise.
1671 (aarch64_rtx_arith_op_extract_p): Likewise, remove now-unused parameter.
1672 Update callers...
1673 (aarch64_rtx_costs): ... here.
1674
1675 2020-10-30 Olivier Hainque <hainque@adacore.com>
1676
1677 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Also
1678 builtin_define __ppc and __ppc__ for VxWorks 7.
1679
1680 2020-10-30 Olivier Hainque <hainque@adacore.com>
1681 Douglas Rupp <rupp@adacore.com>
1682 Pat Bernardi <bernardi@adacore.com>
1683
1684 * config.gcc: Adjust the ix86/x86_64-wrs-vxworks filters
1685 to apply to VxWorks 7 as well.
1686 * config/i386/t-vxworks (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
1687 Remove the fPIC multilib and add one for the large code model
1688 on x86_64.
1689 * config/i386/vxworks.h: Separate sections for TARGET_VXWORKS7,
1690 other variants and common bits.
1691 (TARGET_OS_CPP_BUILTINS): Augment to support a range of CPU
1692 families. Leverage VX_CPU_PREFIX.
1693 (CC1_SPEC): Add definition.
1694 (STACK_CHECK_PROTECT): Use conditional expression instead of
1695 heavier to read conditioned macro definitions.
1696
1697 2020-10-30 Jakub Jelinek <jakub@redhat.com>
1698
1699 * gimplify.c (gimplify_scan_omp_clauses): Force
1700 OMP_CLAUSE_ALLOCATE_ALLOCATOR into a temporary if it is non-NULL and
1701 non-constant.
1702 (gimplify_omp_for): Only put allocate on inner taskloop if lastprivate
1703 for the same variable is going to be put there, and in that case
1704 if the OMP_CLAUSE_ALLOCATE_ALLOCATOR is non-NULL non-constant, make
1705 the allocator firstprivate on task.
1706
1707 2020-10-30 Michael Meissner <meissner@linux.ibm.com>
1708
1709 * config/rs6000/rs6000.c (rs6000_option_override_internal): Allow
1710 long double type to be changed for C/C++ if glibc 2.32 or newer.
1711 (rs6000_invalid_binary_op): Update error messages about mixing IBM
1712 long double and IEEE 128-bit.
1713
1714 2020-10-29 Richard Biener <rguenther@suse.de>
1715
1716 * tree-ssa-pre.c (compute_avail): Free operands consistently.
1717 * tree-vect-loop.c (vectorizable_phi): Make sure all operand
1718 defs vectors are released.
1719
1720 2020-10-29 Jan Hubicka <jh@suse.cz>
1721
1722 * vec.h (vec<T, va_heap, vl_ptr>::copy): Pass mem stat info.
1723
1724 2020-10-29 Jan Hubicka <jh@suse.cz>
1725
1726 * wide-int.h (trailing_wide_ints <N>): Turn len to array of structures
1727 so it does not imply typeless storage.
1728 (trailing_wide_ints <N>::operator): update
1729 (trailing_wide_ints <N>::operator []): Update.
1730
1731 2020-10-29 Joseph Myers <joseph@codesourcery.com>
1732
1733 * ginclude/stdbool.h [__STDC_VERSION__ > 201710L] (true, false):
1734 Define with type _Bool.
1735
1736 2020-10-29 Aldy Hernandez <aldyh@redhat.com>
1737
1738 PR tree-optimization/97505
1739 * vr-values.c (vr_values::extract_range_basic): Enable
1740 trap again for everything except UBSAN builtins.
1741
1742 2020-10-29 Richard Sandiford <richard.sandiford@arm.com>
1743
1744 * tree-vectorizer.h (vect_transform_slp_perm_load): Take an
1745 optional extra parameter.
1746 * tree-vect-slp.c (vect_transform_slp_perm_load): Calculate
1747 the number of loads as well as the number of permutes, taking
1748 the counting loop from...
1749 * tree-vect-stmts.c (vect_model_load_cost): ...here. Use the
1750 value computed by vect_transform_slp_perm_load for ncopies.
1751
1752 2020-10-29 Martin Liska <mliska@suse.cz>
1753
1754 PR lto/97508
1755 * langhooks.c (lhd_begin_section): Call get_section with
1756 not_existing = true.
1757 * output.h (get_section): Add new argument.
1758 * varasm.c (get_section): Fail when NOT_EXISTING is true
1759 and a section already exists.
1760 * ipa-cp.c (ipcp_write_summary): Remove.
1761 (ipcp_read_summary): Likewise.
1762 * ipa-fnsummary.c (ipa_fn_summary_read): Always read jump
1763 functions summary.
1764 (ipa_fn_summary_write): Always stream it.
1765
1766 2020-10-29 Richard Biener <rguenther@suse.de>
1767
1768 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Pass
1769 SLP_TREE_VECTYPE to record_stmt_cost.
1770
1771 2020-10-29 Martin Liska <mliska@suse.cz>
1772
1773 * optc-gen.awk: Check that params start with -param=.
1774 * params.opt: Fix ipa-jump-function-lookups.
1775
1776 2020-10-29 Alexandre Oliva <oliva@adacore.com>
1777
1778 * tree-ssa-math-opts.c (sincos_stats): Add conv_removed.
1779 (execute_cse_conv_1): New.
1780 (execute_cse_sincos_1): Call it. Fix return within
1781 FOR_EACH_IMM_USE_STMT.
1782 (pass_cse_sincos::execute): Report conv_inserted.
1783
1784 2020-10-29 Xuepeng Guo <xuepeng.guo@intel.com>
1785 Hongyu Wang <hongyu.wang@intel.com>
1786 Hongtao Liu <hongtao.liu@intel.com>
1787
1788 * common/config/i386/cpuinfo.h (get_available_features):
1789 Detect KL, AESKLE and WIDEKL features.
1790 * common/config/i386/i386-common.c
1791 (OPTION_MASK_ISA_KL_SET): New.
1792 (OPTION_MASK_ISA_WIDEKL_SET): Likewise.
1793 (OPTION_MASK_ISA_KL_UNSET): Likewise.
1794 (OPTION_MASK_ISA_WIDEKL_UNSET): Likewise.
1795 (OPTION_MASK_ISA2_AVX2_UNSET): Likewise.
1796 (OPTION_MASK_ISA2_AVX_UNSET): Likewise.
1797 (OPTION_MASK_ISA2_SSE4_2_UNSET): Likewise.
1798 (OPTION_MASK_ISA2_SSE4_1_UNSET): Likewise.
1799 (OPTION_MASK_ISA2_SSE4_UNSET): Likewise.
1800 (OPTION_MASK_ISA2_SSSE3_UNSET): Likewise.
1801 (OPTION_MASK_ISA2_SSE3_UNSET): Likewise.
1802 (OPTION_MASK_ISA2_SSE2_UNSET): Likewise.
1803 (OPTION_MASK_ISA2_SSE_UNSET): Likewise.
1804 (ix86_handle_option): Handle kl and widekl, add dependency chain
1805 for KL and SSE2.
1806 * common/config/i386/i386-cpuinfo.h (enum processor_features):
1807 (FEATURE_KL, FEATURE_AESKLE, FEATURE_WIDEKL): New.
1808 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
1809 for KL, AESKLE and WIDEKL.
1810 * config.gcc: Add keylockerintrin.h.
1811 * doc/invoke.texi: Document new option -mkl and -mwidekl.
1812 * doc/extend.texi: Document kl and widekl.
1813 * config/i386/cpuid.h (bit_KL, bit_AESKLE, bit_WIDEKL): New.
1814 * config/i386/i386-builtin-types.def ((UINT, UINT, V2DI, V2DI, PVOID),
1815 (UINT, UINT, V2DI, PVOID), (VOID, V2DI, V2DI, V2DI, UINT),
1816 (UINT8, PV2DI, V2DI, PCVOID), (UINT8, PV2DI, PCV2DI, PCVOID)): New
1817 function types.
1818 * config/i386/i386-builtin.def: Add
1819 __builtin_ia32_loadiwkey,
1820 __builtin_ia32_aesdec128kl_u8,
1821 __builtin_ia32_aesdec256kl_u8,
1822 __builtin_ia32_aesenc128kl_u8,
1823 __builtin_ia32_aesenc256kl_u8,
1824 __builtin_ia32_aesdecwide128kl_u8,
1825 __builtin_ia32_aesdecwide256kl_u8,
1826 __builtin_ia32_aesencwide128kl_u8,
1827 __builtin_ia32_aesencwide256kl_u8,
1828 __builtin_ia32_encodekey128_u32,
1829 __builtin_ia32_encodekey256_u32.
1830 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
1831 kl and widekl.
1832 * config/i386/i386-options.c (isa2_opts): Add -mkl and -mwidekl.
1833 (ix86_option_override_internal): Handle KL and WIDEKL.
1834 (ix86_valid_target_attribute_inner_p): Add attribute for kl and widekl.
1835 * config/i386/i386-expand.c
1836 (ix86_expand_builtin): Expand Keylocker Builtins.
1837 * config/i386/i386.h (TARGET_KL): New.
1838 (TARGET_KL_P): Likewise.
1839 (TARGET_WIDEKL): Likewise.
1840 (TARGET_WIDEKL_P): Likewise.
1841 (PTA_KL): Likewise.
1842 (PTA_WIDEKL): Likewise.
1843 (PTA_TIGERLAKE): Add PTA_KL, PTA_WIDEKL.
1844 (PTA_ALDERLAKE): Likewise.
1845 * config/i386/i386.opt: Add new option mkl and mwidekl.
1846 * config/i386/keylockerintrin.h: New header file for Keylocker.
1847 * config/i386/immintrin.h: Include keylockerintrin.h.
1848 * config/i386/predicates.md (encodekey128_operation): New
1849 predicate.
1850 (encodekey256_operation): Likewise.
1851 (aeswidekl_operation): Likewise.
1852 * config/i386/sse.md (UNSPECV_LOADIWKEY): New.
1853 (UNSPECV_AESDEC128KLU8): Likewise.
1854 (UNSPECV_AESENC128KLU8): Likewise.
1855 (UNSPECV_AESDEC256KLU8): Likewise.
1856 (UNSPECV_AESENC256KLU8): Likewise.
1857 (UNSPECV_AESDECWIDE128KLU8): Likewise.
1858 (UNSPECV_AESENCWIDE128KLU8): Likewise.
1859 (UNSPECV_AESDECWIDE256KLU8): Likewise.
1860 (UNSPECV_AESENCWIDE256KLU8): Likewise.
1861 (UNSPECV_ENCODEKEY128U32): Likewise.
1862 (UNSPECV_ENCODEKEY256U32): Likewise.
1863 (encodekey128u32): New expander.
1864 (encodekey256u32): Likewise.
1865 (aes<aeswideklvariant>u8): Likewise.
1866 (loadiwkey): New insn pattern.
1867 (*encodekey128u32): Likewise.
1868 (*encodekey256u32): Likewise.
1869 (aes<aesklvariant>u8): Likewise.
1870 (*aes<aeswideklvariant>u8): Likewise.
1871
1872 2020-10-29 Richard Biener <rguenther@suse.de>
1873
1874 * tree-vect-slp.c (vect_build_slp_tree_2): Allow splatting
1875 not vectorizable loads.
1876 (vect_build_slp_instance): Amend dumping with address.
1877 (vect_slp_convert_to_external): Likewise.
1878
1879 2020-10-29 Andrew MacLeod <amacleod@redhat.com>
1880
1881 PR tree-optimization/97609
1882 * gimple-range-cache.cc (non_null_ref::process_name): Call
1883 infer_nonnull_range directly instead of infer_value_range.
1884
1885 2020-10-29 David Malcolm <dmalcolm@redhat.com>
1886
1887 * Makefile.in (ANALYZER_OBJS): Add analyzer/complexity.o.
1888
1889 2020-10-28 Marek Polacek <polacek@redhat.com>
1890
1891 PR c++/97573
1892 * doc/invoke.texi: Document -Wdeprecated-enum-enum-conversion
1893 and -Wdeprecated-enum-float-conversion. -Wenum-conversion is
1894 no longer C/ObjC only.
1895
1896 2020-10-28 Richard Sandiford <richard.sandiford@arm.com>
1897
1898 PR tree-optimization/97457
1899 * value-range.cc (irange::set): Don't decay POLY_INT_CST ranges
1900 to integer ranges.
1901
1902 2020-10-28 Carl Love <cel@us.ibm.com>
1903
1904 * config/rs6000/vsx.md(xxgenpcvm_<mode>_internal): Remove TARGET_64BIT.
1905
1906 2020-10-28 Richard Biener <rguenther@suse.de>
1907
1908 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Dump
1909 when shared vectype update fails.
1910
1911 2020-10-28 Richard Biener <rguenther@suse.de>
1912
1913 * tree-vect-slp.c (vect_get_and_check_slp_defs): For skipped
1914 args just push NULLs and vect_uninitialized_def.
1915 (vect_build_slp_tree_2): Allocate skip_args for all ops
1916 and pass it down to vect_get_and_check_slp_defs.
1917
1918 2020-10-28 Richard Biener <rguenther@suse.de>
1919
1920 PR tree-optimization/97615
1921 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
1922 an external from pattern defs.
1923
1924 2020-10-28 Richard Biener <rguenther@suse.de>
1925
1926 * tree-vect-slp.c (vect_optimize_slp): Fix iteration over
1927 all loads.
1928
1929 2020-10-28 Richard Biener <rguenther@suse.de>
1930
1931 * tree-vect-slp.c (vect_build_slp_instance): Split the store
1932 group at the failure boundary and also re-analyze a large enough
1933 matching rest.
1934
1935 2020-10-28 Richard Biener <rguenther@suse.de>
1936
1937 * tree-vect-data-refs.c (vect_slp_analyze_node_alignment):
1938 Dump when vect_update_shared_vectype fails.
1939
1940 2020-10-28 Andrea Corallo <andrea.corallo@arm.com>
1941
1942 * config/aarch64/arm_neon.h (__ST2_LANE_FUNC, __ST3_LANE_FUNC)
1943 (__ST4_LANE_FUNC): Rename the macro generating the 'q' variants
1944 into __ST2Q_LANE_FUNC, __ST2Q_LANE_FUNC, __ST2Q_LANE_FUNC so they
1945 all can be undefed at the and of the file.
1946 (vst2_lane_bf16, vst2q_lane_bf16, vst3_lane_bf16, vst3q_lane_bf16)
1947 (vst4_lane_bf16, vst4q_lane_bf16): Add new intrinsics.
1948
1949 2020-10-28 Andrea Corallo <andrea.corallo@arm.com>
1950
1951 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC, __LD3_LANE_FUNC)
1952 (__LD4_LANE_FUNC): Rename the macro generating the 'q' variants
1953 into __LD2Q_LANE_FUNC, __LD2Q_LANE_FUNC, __LD2Q_LANE_FUNC so they
1954 all can be undefed at the and of the file.
1955 (vld2_lane_bf16, vld2q_lane_bf16, vld3_lane_bf16, vld3q_lane_bf16)
1956 (vld4_lane_bf16, vld4q_lane_bf16): Add new intrinsics.
1957
1958 2020-10-28 Jakub Jelinek <jakub@redhat.com>
1959
1960 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ALLOCATE.
1961 * tree.h (OMP_CLAUSE_ALLOCATE_ALLOCATOR,
1962 OMP_CLAUSE_ALLOCATE_COMBINED): Define.
1963 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add allocate
1964 clause.
1965 (walk_tree_1): Handle OMP_CLAUSE_ALLOCATE.
1966 * tree-pretty-print.c (dump_omp_clause): Likewise.
1967 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses,
1968 gimplify_omp_for): Likewise.
1969 * tree-nested.c (convert_nonlocal_omp_clauses,
1970 convert_local_omp_clauses): Likewise.
1971 * omp-low.c (scan_sharing_clauses): Likewise.
1972
1973 2020-10-28 Jakub Jelinek <jakub@redhat.com>
1974
1975 * omp-offload.c (omp_declare_target_tgt_fn_r): Handle direct calls to
1976 declare variant base functions.
1977
1978 2020-10-28 Jakub Jelinek <jakub@redhat.com>
1979
1980 PR lto/96680
1981 * lto-streamer.h (omp_lto_output_declare_variant_alt,
1982 omp_lto_input_declare_variant_alt): Declare variant.
1983 * symtab.c (symtab_node::get_partitioning_class): Return
1984 SYMBOL_DUPLICATE for declare_variant_alt nodes.
1985 * passes.c (ipa_write_summaries): Add declare_variant_alt to
1986 partition.
1987 * lto-cgraph.c (output_refs): Call omp_lto_output_declare_variant_alt
1988 on declare_variant_alt nodes.
1989 (input_refs): Call omp_lto_input_declare_variant_alt on
1990 declare_variant_alt nodes.
1991 * lto-streamer-out.c (output_function): Don't call
1992 collect_block_tree_leafs if DECL_INITIAL is error_mark_node.
1993 (lto_output): Call output_function even for declare_variant_alt
1994 nodes.
1995 * omp-general.c (omp_lto_output_declare_variant_alt,
1996 omp_lto_input_declare_variant_alt): New functions.
1997
1998 2020-10-28 Jakub Jelinek <jakub@redhat.com>
1999
2000 * wide-int.cc (wi::set_bit_large): Call canonize unless setting
2001 msb bit and clearing bits above it.
2002
2003 2020-10-28 Andrew MacLeod <amacleod@redhat.com>
2004
2005 * gimple-range-gori.cc (gori_compute_cache::cache_stmt): Accumulate
2006 return values and only set cache when everything returned true.
2007 * gimple-range.cc (get_tree_range): Set the return range to UNDEFINED
2008 when the range isn't supported.
2009 (gimple_ranger::calc_stmt): Return varying if the type is supported,
2010 even if the stmt processing failed. False otherwise.
2011 (range_of_builtin_ubsan_call): Don't use gcc_assert.
2012 (range_of_builtin_call): Ditto.
2013 (gimple_ranger::range_of_cond_expr): Ditto.
2014 (gimple_ranger::range_of_expr): Ditto
2015 (gimple_ranger::range_on_entry): Ditto.
2016 (gimple_ranger::range_on_exit): Ditto.
2017 (gimple_ranger::range_on_edge): DItto.
2018 (gimple_ranger::range_of_stmt): Don't use gcc_assert, and initialize
2019 return value to UNDEFINED.
2020
2021 2020-10-27 Andreas Krebbel <krebbel@linux.ibm.com>
2022
2023 PR rtl-optimization/97497
2024 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Do not
2025 return true for r12 when -fpic is used.
2026
2027 2020-10-27 Tamar Christina <tamar.christina@arm.com>
2028
2029 PR target/97535
2030 * config/aarch64/aarch64.c (aarch64_expand_cpymem): Use unsigned
2031 arithmetic in check.
2032
2033 2020-10-27 Andrea Corallo <andrea.corallo@arm.com>
2034
2035 * config/aarch64/arm_neon.h (vcopy_lane_bf16, vcopyq_lane_bf16)
2036 (vcopyq_laneq_bf16, vcopy_laneq_bf16): New intrinsics.
2037
2038 2020-10-27 Olivier Hainque <hainque@adacore.com>
2039
2040 * config/vxworks.h (VX_CPU_PREFIX): #define here.
2041 * config/rs6000/vxworks.h: Remove #definition.
2042
2043 2020-10-27 Olivier Hainque <hainque@adacore.com>
2044
2045 * config/rs6000/vxworks.h (CPP_SPEC): Fix macro definition
2046 for -mcpu=e6500.
2047
2048 2020-10-27 Richard Biener <rguenther@suse.de>
2049
2050 * tree-vect-slp.c (vect_build_slp_instance): Use ceil_log2
2051 to compute maximum group-size.
2052
2053 2020-10-27 Jan Hubicka <jh@suse.cz>
2054
2055 PR ipa/97586
2056 * ipa-modref-tree.h (modref_tree::remap_params): New member function.
2057 * ipa-modref.c (modref_summaries_lto::duplicate): Check that
2058 optimization summaries are not duplicated.
2059 (remap_arguments): Remove.
2060 (modref_transform): Rename to ...
2061 (update_signature): ... this one; handle also lto summary.
2062 (pass_ipa_modref::execute): Update signatures here rather
2063 than in transform hook.
2064
2065 2020-10-27 Richard Biener <rguenther@suse.de>
2066
2067 * tree-vect-slp.c (vect_slp_bbs): Remove no-op
2068 slp-max-insns-in-bb check.
2069 (vect_slp_function): Dump when splitting the function.
2070 Adjust the split condition for control altering stmts.
2071 * params.opt (-param=slp-max-insns-in-bb): Remove.
2072 * doc/invoke.texi (-param=slp-max-insns-in-bb): Likewise.
2073
2074 2020-10-27 Richard Biener <rguenther@suse.de>
2075
2076 * gimple.h (gimple_expr_type): For PHIs return the type
2077 of the result.
2078 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2079 Make sure edge order into copied loop headers line up with the
2080 originals.
2081 * tree-vect-loop.c (vect_transform_cycle_phi): Handle nested
2082 loops with SLP.
2083 (vectorizable_phi): New function.
2084 (vectorizable_live_operation): For BB vectorization compute insert
2085 location here.
2086 * tree-vect-slp.c (vect_free_slp_tree): Deal with NULL
2087 SLP_TREE_CHILDREN entries.
2088 (vect_create_new_slp_node): Add overloads with pre-existing node
2089 argument.
2090 (vect_print_slp_graph): Likewise.
2091 (vect_mark_slp_stmts): Likewise.
2092 (vect_mark_slp_stmts_relevant): Likewise.
2093 (vect_gather_slp_loads): Likewise.
2094 (vect_optimize_slp): Likewise.
2095 (vect_slp_analyze_node_operations): Likewise.
2096 (vect_bb_slp_scalar_cost): Likewise.
2097 (vect_remove_slp_scalar_calls): Likewise.
2098 (vect_get_and_check_slp_defs): Handle PHIs.
2099 (vect_build_slp_tree_1): Handle PHIs.
2100 (vect_build_slp_tree_2): Continue SLP build, following PHI
2101 arguments. Fix memory leak.
2102 (vect_build_slp_tree): Put stub node into the hash-map so
2103 we can discover cycles directly.
2104 (vect_build_slp_instance): Set the backedge SLP def for
2105 reduction chains.
2106 (vect_analyze_slp_backedges): Remove.
2107 (vect_analyze_slp): Do not call it.
2108 (vect_slp_convert_to_external): Release SLP_TREE_LOAD_PERMUTATION.
2109 (vect_slp_analyze_node_operations): Handle stray failed
2110 backedge defs by failing.
2111 (vect_slp_build_vertices): Adjust leaf condition.
2112 (vect_bb_slp_mark_live_stmts): Handle PHIs, use visited
2113 hash-set to handle cycles.
2114 (vect_slp_analyze_operations): Adjust.
2115 (vect_bb_partition_graph_r): Likewise.
2116 (vect_slp_function): Adjust split condition to allow CFG
2117 merges.
2118 (vect_schedule_slp_instance): Rename to ...
2119 (vect_schedule_slp_node): ... this. Move DFS walk to ...
2120 (vect_schedule_scc): ... this new function.
2121 (vect_schedule_slp): Call it. Remove ad-hoc vectorized
2122 backedge fill code.
2123 * tree-vect-stmts.c (vect_analyze_stmt): Call
2124 vectorizable_phi.
2125 (vect_transform_stmt): Likewise.
2126 (vect_is_simple_use): Handle vect_backedge_def.
2127 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Only
2128 set loop header PHIs to vect_unknown_def_type for loop
2129 vectorization.
2130 * tree-vectorizer.h (enum vect_def_type): Add vect_backedge_def.
2131 (enum stmt_vec_info_type): Add phi_info_type.
2132 (vectorizable_phi): Declare.
2133
2134 2020-10-27 Richard Biener <rguenther@suse.de>
2135
2136 * tree-vect-slp.c (vect_build_slp_tree_2): When vectorizing
2137 BBs splat uniform operands and stop SLP discovery.
2138
2139 2020-10-27 Iain Buclaw <ibuclaw@gdcproject.org>
2140
2141 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_D_CRITSEC_SIZE):
2142 Remove.
2143 * config/glibc-d.c (glibc_d_critsec_size): Likewise.
2144 (TARGET_D_CRITSEC_SIZE): Likewise.
2145 * config/i386/linux-common.h (GNU_USER_TARGET_D_CRITSEC_SIZE):
2146 Likewise.
2147 * config/sol2-d.c (solaris_d_critsec_size): Likewise.
2148 (TARGET_D_CRITSEC_SIZE): Likewise.
2149 * doc/tm.texi.in (TARGET_D_CRITSEC_SIZE): Likewise.
2150 * doc/tm.texi: Regenerate.
2151
2152 2020-10-27 Martin Liska <mliska@suse.cz>
2153
2154 PR gcov-profile/97461
2155 * gcov-io.h (GCOV_PREALLOCATED_KVP): Pre-allocate 64
2156 static counters.
2157
2158 2020-10-27 Jan Hubicka <jh@suse.cz>
2159
2160 * tree-ssa-alias.c (attr_fnspec::verify): Re-enabl checking.
2161
2162 2020-10-27 Jan Hubicka <jh@suse.cz>
2163
2164 * builtin-attrs.def (STRERRNOC): New macro.
2165 (STRERRNOP): New macro.
2166 (ATTR_ERRNOCONST_NOTHROW_LEAF_LIST): New attr list.
2167 (ATTR_ERRNOPURE_NOTHROW_LEAF_LIST): New attr list.
2168 * builtins.def (ATTR_MATHFN_ERRNO): Use
2169 ATTR_ERRNOCONST_NOTHROW_LEAF_LIST.
2170 (ATTR_MATHFN_FPROUNDING_ERRNO): Use ATTR_ERRNOCONST_NOTHROW_LEAF_LIST
2171 or ATTR_ERRNOPURE_NOTHROW_LEAF_LIST.
2172
2173 2020-10-27 Kito Cheng <kito.cheng@sifive.com>
2174
2175 * common/config/riscv/riscv-common.c (opt_var_ref_t): New.
2176 (riscv_ext_flag_table_t): New.
2177 (riscv_ext_flag_table): New.
2178 (riscv_parse_arch_string): Pass gcc_options* instead of
2179 &opts->x_target_flags only, and using riscv_arch_option_table to
2180 setup flags.
2181 (riscv_handle_option): Update argument for riscv_parse_arch_string.
2182 (riscv_expand_arch): Ditto.
2183 (riscv_expand_arch_from_cpu): Ditto.
2184
2185 2020-10-27 Jan Hubicka <jh@suse.cz>
2186
2187 * tree-ssa-ccp.c (evaluate_stmt): Use EAF_RETURN_ARG; do not handle
2188 string buitings specially.
2189
2190 2020-10-27 Jan Hubicka <jh@suse.cz>
2191
2192 * tree.c (set_call_expr_flags): Fix string for ECF_RET1.
2193 (build_common_builtin_nodes): Do not set ECF_RET1 for memcpy, memmove,
2194 and memset. They are handled by builtin_fnspec.
2195
2196 2020-10-27 Jan Hubicka <jh@suse.cz>
2197
2198 * builtins.c (builtin_fnspec): Add bzero, memcmp, memcmp_eq, bcmp,
2199 strncmp, strncmp_eq, strncasecmp, rindex, strlen, strlnen, strcasecmp,
2200 strcspn, strspn, strcmp, strcmp_eq.
2201
2202 2020-10-27 Richard Biener <rguenther@suse.de>
2203
2204 * tree-vectorizer.h (slp_tree_pool): Declare.
2205 (_slp_tree::operator new): Likewise.
2206 (_slp_tree::operator delete): Likewise.
2207 * tree-vectorizer.c (vectorize_loops): Allocate and free the
2208 slp_tree_pool.
2209 (pass_slp_vectorize::execute): Likewise.
2210 * tree-vect-slp.c (slp_tree_pool): Define.
2211 (_slp_tree::operator new): Likewise.
2212 (_slp_tree::operator delete): Likewise.
2213
2214 2020-10-27 Martin Liska <mliska@suse.cz>
2215
2216 * lto-wrapper.c (run_gcc): Do not use sub-make when jobserver is
2217 not detected properly.
2218
2219 2020-10-27 Martin Liska <mliska@suse.cz>
2220
2221 * symbol-summary.h (call_summary_base): Pass symtab hooks to
2222 base and register (or unregister) hooks directly.
2223
2224 2020-10-27 Martin Liska <mliska@suse.cz>
2225
2226 * symbol-summary.h (function_summary_base::unregister_hooks):
2227 Call disable_insertion_hook and disable_duplication_hook.
2228 (function_summary_base::symtab_insertion): New field.
2229 (function_summary_base::symtab_removal): Likewise.
2230 (function_summary_base::symtab_duplication): Likewise.
2231 Register hooks in function_summary_base and directly register
2232 (or unregister) hooks.
2233
2234 2020-10-26 Andrew MacLeod <amacleod@redhat.com>
2235
2236 PR tree-optimization/97567
2237 * gimple-range-gori.cc (gori_compute::logical_combine): Union the
2238 ranges of operand1 and operand2, not intersect.
2239
2240 2020-10-26 Jan Hubicka <jh@suse.cz>
2241
2242 * attr-fnspec.h: Update toplevel comment.
2243 (attr_fnspec::attr_fnspec): New constructor.
2244 (attr_fnspec::arg_read_p,
2245 attr_fnspec::arg_written_p,
2246 attr_fnspec::arg_access_size_given_by_arg_p,
2247 attr_fnspec::arg_single_access_p
2248 attr_fnspec::loads_known_p
2249 attr_fnspec::stores_known_p,
2250 attr_fnspec::clobbers_errno_p): New member functions.
2251 (gimple_call_fnspec): Declare.
2252 (builtin_fnspec): Declare.
2253 * builtins.c: Include attr-fnspec.h
2254 (builtin_fnspec): New function.
2255 * builtins.def (BUILT_IN_MEMCPY): Do not specify RET1 fnspec.
2256 (BUILT_IN_MEMMOVE): Do not specify RET1 fnspec.
2257 (BUILT_IN_MEMSET): Do not specify RET1 fnspec.
2258 (BUILT_IN_STRCAT): Do not specify RET1 fnspec.
2259 (BUILT_IN_STRCPY): Do not specify RET1 fnspec.
2260 (BUILT_IN_STRNCAT): Do not specify RET1 fnspec.
2261 (BUILT_IN_STRNCPY): Do not specify RET1 fnspec.
2262 (BUILT_IN_MEMCPY_CHK): Do not specify RET1 fnspec.
2263 (BUILT_IN_MEMMOVE_CHK): Do not specify RET1 fnspec.
2264 (BUILT_IN_MEMSET_CHK): Do not specify RET1 fnspec.
2265 (BUILT_IN_STRCAT_CHK): Do not specify RET1 fnspec.
2266 (BUILT_IN_STRCPY_CHK): Do not specify RET1 fnspec.
2267 (BUILT_IN_STRNCAT_CHK): Do not specify RET1 fnspec.
2268 (BUILT_IN_STRNCPY_CHK): Do not specify RET1 fnspec.
2269 * gimple.c (gimple_call_fnspec): Return attr_fnspec.
2270 (gimple_call_arg_flags): Update.
2271 (gimple_call_return_flags): Update.
2272 * tree-ssa-alias.c (check_fnspec): New function.
2273 (ref_maybe_used_by_call_p_1): Use fnspec for builtin handling.
2274 (call_may_clobber_ref_p_1): Likewise.
2275 (attr_fnspec::verify): Update verifier.
2276 * calls.c (decl_fnspec): New function.
2277 (decl_return_flags): Use it.
2278
2279 2020-10-26 Aldy Hernandez <aldyh@redhat.com>
2280
2281 PR tree-optimization/97555
2282 * range-op.cc (range_tests): Test 1-bit signed invert.
2283 * value-range.cc (subtract_one): Adjust comment.
2284 (add_one): New.
2285 (irange::invert): Call add_one.
2286
2287 2020-10-26 Jan Hubicka <jh@suse.cz>
2288
2289 * cgraph.h (cgraph_node::optimize_for_size_p): Return
2290 optimize_size_level.
2291 (cgraph_node::optimize_for_size_p): Update.
2292 * coretypes.h (enum optimize_size_level): New enum.
2293 * predict.c (unlikely_executed_edge_p): Microoptimize.
2294 (optimize_function_for_size_p): Return optimize_size_level.
2295 (optimize_bb_for_size_p): Likewise.
2296 (optimize_edge_for_size_p): Likewise.
2297 (optimize_insn_for_size_p): Likewise.
2298 (optimize_loop_nest_for_size_p): Likewise.
2299 * predict.h (optimize_function_for_size_p): Update declaration.
2300 (optimize_bb_for_size_p): Update declaration.
2301 (optimize_edge_for_size_p): Update declaration.
2302 (optimize_insn_for_size_p): Update declaration.
2303 (optimize_loop_for_size_p): Update declaration.
2304 (optimize_loop_nest_for_size_p): Update declaration.
2305
2306 2020-10-26 Richard Biener <rguenther@suse.de>
2307
2308 * tree-vect-slp.c (enum slp_instance_kind): New.
2309 (vect_build_slp_instance): Split out from...
2310 (vect_analyze_slp_instance): ... this.
2311
2312 2020-10-26 Andrew MacLeod <amacleod@redhat.com>
2313
2314 * gimple-range.cc (range_of_builtin_call): Initialize zerov to 0.
2315
2316 2020-10-26 Jan Hubicka <jh@suse.cz>
2317
2318 PR ipa/97576
2319 * cgraphclones.c (cgraph_node::materialize_clone): Clear stmt
2320 references.
2321 * cgraphunit.c (mark_functions_to_output): Do not clear them here.
2322 * ipa-inline-transform.c (inline_transform): Clear stmt references.
2323 * symtab.c (symtab_node::clear_stmts_in_references): Make recursive
2324 for clones.
2325 * tree-ssa-structalias.c (ipa_pta_execute): Do not clear references.
2326
2327 2020-10-26 Zhiheng Xie <xiezhiheng@huawei.com>
2328 Nannan Zheng <zhengnannan@huawei.com>
2329
2330 * config/aarch64/aarch64-builtins.c: Add FLAG STORE.
2331 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
2332 for store intrinsics.
2333
2334 2020-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2335
2336 PR tree-optimization/97546
2337 * gimple-ssa-store-merging.c (find_bswap_or_nop): Return NULL if
2338 type is not INTEGER_CST.
2339
2340 2020-10-26 Richard Biener <rguenther@suse.de>
2341
2342 PR middle-end/97521
2343 * expr.c (const_scalar_mask_from_tree): Remove.
2344 (expand_expr_real_1): Always VIEW_CONVERT integer mode
2345 vector constants to an integer type.
2346 * tree.c (build_truth_vector_type_for_mode): Use a single-bit
2347 boolean component type for non-vector-mode mask_mode.
2348
2349 2020-10-26 H.J. Lu <hjl.tools@gmail.com>
2350
2351 PR target/95458
2352 * config/i386/i386-expand.c (ix86_expand_cmpstrn_or_cmpmem):
2353 Return false for -mno-inline-all-stringops.
2354
2355 2020-10-26 H.J. Lu <hjl.tools@gmail.com>
2356
2357 PR target/95151
2358 * config/i386/i386-expand.c (ix86_expand_cmpstrn_or_cmpmem): New
2359 function.
2360 * config/i386/i386-protos.h (ix86_expand_cmpstrn_or_cmpmem): New
2361 prototype.
2362 * config/i386/i386.md (cmpmemsi): New pattern.
2363
2364 2020-10-26 Andreas Krebbel <krebbel@linux.ibm.com>
2365
2366 * config/s390/vector.md ("vcond_mask_<mode><mode>"): New expander.
2367
2368 2020-10-26 Richard Biener <rguenther@suse.de>
2369
2370 * sbitmap.c (sbitmap_vector_alloc): Use size_t for byte
2371 quantities to avoid overflow.
2372
2373 2020-10-26 Richard Biener <rguenther@suse.de>
2374
2375 PR tree-optimization/97539
2376 * tree-vect-loop-manip.c (vect_do_peeling): Reset out-of-loop
2377 debug uses before peeling.
2378
2379 2020-10-26 Jan Hubicka <hubicka@ucw.cz>
2380
2381 * cgraph.h (struct cgraph_node): Make ipa_transforms_to_apply vl_ptr.
2382 * ipa-inline-analysis.c (initialize_growth_caches): Disable insertion
2383 and duplication hooks.
2384 * ipa-inline-transform.c (clone_inlined_nodes): Clear
2385 ipa_transforms_to_apply.
2386 (save_inline_function_body): Disable insertion hoook for
2387 ipa_saved_clone_sources.
2388 * ipa-prop.c (ipcp_transformation_initialize): Disable insertion hook.
2389 * ipa-prop.h (ipa_node_params_t): Disable insertion hook.
2390 * ipa-reference.c (propagate): Disable insertion hoook.
2391 * ipa-sra.c (ipa_sra_summarize_function): Move out of anonymous
2392 namespace.
2393 (ipa_sra_function_summaries::insert): New virtual function.
2394 * passes.c (execute_one_pass): Do not add transforms to inline clones.
2395 * symbol-summary.h (function_summary_base): Make insert and duplicate
2396 hooks fail instead of silently producing empty summaries; add way to
2397 disable duplication hooks
2398 (call_summary_base): Likewise.
2399 * tree-nested.c (nested_function_info::get_create): Disable insertion
2400 hooks
2401 (maybe_record_nested_function): Likewise.
2402
2403 2020-10-26 Xionghu Luo <luoxhu@linux.ibm.com>
2404
2405 * cfg.c (debug_bb): New overloaded function.
2406 (debug_bb_n): New overloaded function.
2407 * cfg.h (debug_bb): New declaration.
2408 (debug_bb_n): New declaration.
2409 * print-rtl.c (debug_bb_slim): Call debug_bb with flags.
2410
2411 2020-10-24 H.J. Lu <hjl.tools@gmail.com>
2412
2413 PR bootstrap/97451
2414 * configure.ac (HAVE_AS_WORKING_DWARF_4_FLAG): Renamed to ...
2415 (HAVE_AS_WORKING_DWARF_N_FLAG): This. Don't define if there is
2416 an extra assembly input file in debug info. Replace success
2417 with dwarf4_success in the 32-bit --gdwarf-4 check.
2418 * dwarf2out.c (asm_outputs_debug_line_str): Check
2419 HAVE_AS_WORKING_DWARF_N_FLAG instead of
2420 HAVE_AS_WORKING_DWARF_4_FLAG.
2421 * gcc.c (ASM_DEBUG_SPEC): Likewise.
2422 (ASM_DEBUG_OPTION_SPEC): Likewise.
2423 * config.in: Regenerated.
2424 * configure: Likewise.
2425
2426 2020-10-24 Aldy Hernandez <aldyh@redhat.com>
2427
2428 PR tree-optimization/97538
2429 * calls.c (get_size_range): Handle undefined ranges.
2430
2431 2020-10-24 Martin Liska <mliska@suse.cz>
2432
2433 * cgraph.c (cgraph_node::former_thunk_p): Move out of CHECKING_P
2434 macro.
2435
2436 2020-10-24 Alan Modra <amodra@gmail.com>
2437
2438 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Limit
2439 AND addressing to just lvx/stvx style addresses.
2440
2441 2020-10-24 Alan Modra <amodra@gmail.com>
2442
2443 * config/rs6000/rs6000.md (cstore<mode>4): Don't call
2444 rs6000_emit_int_cmove for power10 when -mno-isel.
2445
2446 2020-10-23 Jan Hubicka <hubicka@ucw.cz>
2447
2448 * Makefile.in: Add symtab-thunks.o
2449 (GTFILES): Add symtab-thunks.h and symtab-thunks.cc; remove cgraphunit.c
2450 * cgraph.c: Include symtab-thunks.h.
2451 (cgraph_node::create_thunk): Update
2452 (symbol_table::create_edge): Update
2453 (cgraph_node::dump): Update
2454 (cgraph_node::call_for_symbol_thunks_and_aliases): Update
2455 (set_nothrow_flag_1): Update
2456 (set_malloc_flag_1): Update
2457 (set_const_flag_1): Update
2458 (collect_callers_of_node_1): Update
2459 (clone_of_p): Update
2460 (cgraph_node::verify_node): Update
2461 (cgraph_node::function_symbol): Update
2462 (cgraph_c_finalize): Call thunk_info::release.
2463 (cgraph_node::has_thunk_p): Update
2464 (cgraph_node::former_thunk_p): Move here from cgraph.h; reimplement.
2465 * cgraph.h (struct cgraph_thunk_info): Rename to symtab-thunks.h.
2466 (cgraph_node): Remove thunk field; add thunk bitfield.
2467 (cgraph_node::expand_thunk): Move to symtab-thunks.h
2468 (symtab_thunks_cc_finalize): Declare.
2469 (cgraph_node::has_gimple_body_p): Update.
2470 (cgraph_node::former_thunk_p): Update.
2471 * cgraphclones.c: Include symtab-thunks.h.
2472 (duplicate_thunk_for_node): Update.
2473 (cgraph_edge::redirect_callee_duplicating_thunks): Update.
2474 (cgraph_node::expand_all_artificial_thunks): Update.
2475 (cgraph_node::create_edge_including_clones): Update.
2476 * cgraphunit.c: Include symtab-thunks.h.
2477 (vtable_entry_type): Move to symtab-thunks.c.
2478 (cgraph_node::analyze): Update.
2479 (analyze_functions): Update.
2480 (mark_functions_to_output): Update.
2481 (thunk_adjust): Move to symtab-thunks.c
2482 (cgraph_node::expand_thunk): Move to symtab-thunks.c
2483 (cgraph_node::assemble_thunks_and_aliases): Update.
2484 (output_in_order): Update.
2485 (cgraphunit_c_finalize): Do not clear vtable_entry_type.
2486 (cgraph_node::create_wrapper): Update.
2487 * gengtype.c (open_base_files): Add symtab-thunks.h
2488 * ipa-comdats.c (propagate_comdat_group): UPdate.
2489 (ipa_comdats): Update.
2490 * ipa-cp.c (determine_versionability): UPdate.
2491 (gather_caller_stats): Update.
2492 (count_callers): Update
2493 (set_single_call_flag): Update
2494 (initialize_node_lattices): Update
2495 (call_passes_through_thunk_p): Update
2496 (call_passes_through_thunk): Update
2497 (propagate_constants_across_call): Update
2498 (find_more_scalar_values_for_callers_subset): Update
2499 (has_undead_caller_from_outside_scc_p): Update
2500 * ipa-fnsummary.c (evaluate_properties_for_edge): Update.
2501 (compute_fn_summary): Update.
2502 (inline_analyze_function): Update.
2503 * ipa-icf.c: Include symtab-thunks.h.
2504 (sem_function::equals_wpa): Update.
2505 (redirect_all_callers): Update.
2506 (sem_function::init): Update.
2507 (sem_function::parse): Update.
2508 * ipa-inline-transform.c: Include symtab-thunks.h.
2509 (inline_call): Update.
2510 (save_inline_function_body): Update.
2511 (preserve_function_body_p): Update.
2512 * ipa-inline.c (inline_small_functions): Update.
2513 * ipa-polymorphic-call.c: Include alloc-pool.h, symbol-summary.h,
2514 symtab-thunks.h
2515 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Update.
2516 * ipa-pure-const.c: Include symtab-thunks.h.
2517 (analyze_function): Update.
2518 * ipa-sra.c (check_for_caller_issues): Update.
2519 * ipa-utils.c (ipa_reverse_postorder): Update.
2520 (ipa_merge_profiles): Update.
2521 * ipa-visibility.c (non_local_p): Update.
2522 (cgraph_node::local_p): Update.
2523 (function_and_variable_visibility): Update.
2524 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
2525 * lto-cgraph.c: Include alloc-pool.h, symbol-summary.h and
2526 symtab-thunks.h
2527 (lto_output_edge): Update.
2528 (lto_output_node): Update.
2529 (compute_ltrans_boundary): Update.
2530 (output_symtab): Update.
2531 (verify_node_partition): Update.
2532 (input_overwrite_node): Update.
2533 (input_node): Update.
2534 * lto-streamer-in.c (fixup_call_stmt_edges): Update.
2535 * symtab-thunks.cc: New file.
2536 * symtab-thunks.h: New file.
2537 * toplev.c (toplev::finalize): Call symtab_thunks_cc_finalize.
2538 * trans-mem.c (ipa_tm_mayenterirr_function): Update.
2539 (ipa_tm_execute): Update.
2540 * tree-inline.c (expand_call_inline): Update.
2541 * tree-nested.c (create_nesting_tree): Update.
2542 (convert_all_function_calls): Update.
2543 (gimplify_all_functions): Update.
2544 * tree-profile.c (tree_profiling): Update.
2545 * tree-ssa-structalias.c (associate_varinfo_to_alias): Update.
2546 * tree.c (free_lang_data_in_decl): Update.
2547 * value-prof.c (init_node_map): Update.
2548
2549 2020-10-23 Marek Polacek <polacek@redhat.com>
2550
2551 PR c++/91741
2552 * doc/invoke.texi: Document -Wsizeof-array-div.
2553
2554 2020-10-23 Martin Sebor <msebor@redhat.com>
2555
2556 PR middle-end/97552
2557 * attribs.c (init_attr_rdwr_indices): Handle static VLA parameters.
2558
2559 2020-10-23 Douglas Rupp <rupp@adacore.com>
2560
2561 * config/vxworks.h (VXWORKS_NET_LIBS_RTP): Use -lrtnet if
2562 rtnetStackLib.h is available,fallback to -lnet otherwise.
2563
2564 2020-10-23 Douglas Rupp <rupp@adacore.com>
2565
2566 * gcc.c (if-exists-then-else): New built-in spec function.
2567 * doc/invoke.texi: Document it.
2568
2569 2020-10-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2570
2571 * doc/extend.texi (PowerPC Built-in Functions): Replace
2572 extraneous characters with whitespace.
2573
2574 2020-10-23 Martin Liska <mliska@suse.cz>
2575
2576 * gcov.c (read_count_file): Never call gcov_sync with a negative
2577 value.
2578
2579 2020-10-23 Jakub Jelinek <jakub@redhat.com>
2580
2581 * Makefile.in (PLUGIN_HEADERS): Add gomp-constants.h and $(EXPR_H).
2582 (s-header-vars): Accept not just spaces but also tabs between *_H name
2583 and =. Handle common/config/ headers similarly to config. Don't
2584 throw away everything from first ... to last / on the remaining
2585 string, instead skip just ... to corresponding last / without
2586 intervening spaces and tabs.
2587 (install-plugin): Treat common/config headers like config headers.
2588 * config/i386/t-i386 (TM_H): Add
2589 $(srcdir)/common/config/i386/i386-cpuinfo.h.
2590
2591 2020-10-23 Jakub Jelinek <jakub@redhat.com>
2592
2593 PR tree-optimization/97164
2594 * stor-layout.c (layout_type): Also reject arrays where element size
2595 is constant, but not a multiple of element alignment.
2596
2597 2020-10-23 Eric Botcazou <ebotcazou@adacore.com>
2598
2599 * tree-ssa-loop-ivopts.c (analyze_and_mark_doloop_use): Bail out if
2600 the loop is subject to a pragma Unroll with no specific count.
2601
2602 2020-10-23 Dennis Zhang <dennis.zhang@arm.com>
2603
2604 * config/arm/mve.md (mve_vsubq<mode>): New entry for vsub instruction
2605 using expression 'minus'.
2606 (mve_vsubq_f<mode>): Use minus instead of VSUBQ_F unspec.
2607 * config/arm/neon.md (sub<mode>3, sub<mode>3_fp16): Removed.
2608 (neon_vsub<mode>): Use gen_sub<mode>3 instead of gen_sub<mode>3_fp16.
2609 * config/arm/vec-common.md (sub<mode>3): Use the new mode macros
2610 ARM_HAVE_<MODE>_ARITH. Use iterator VDQ instead of VALL.
2611
2612 2020-10-23 Martin Liska <mliska@suse.cz>
2613
2614 PR lto/97524
2615 * lto-wrapper.c (make_exists): New function.
2616 (run_gcc): Use it to check that make is present and working
2617 for parallel execution.
2618
2619 2020-10-23 Richard Biener <rguenther@suse.de>
2620
2621 Revert:
2622 2020-10-22 Richard Biener <rguenther@suse.de>
2623
2624 PR middle-end/97521
2625 * expr.c (expand_expr_real_1): Be more careful when
2626 expanding a VECTOR_BOOLEAN_TYPE_P VECTOR_CSTs.
2627
2628 2020-10-23 Kewen Lin <linkw@linux.ibm.com>
2629
2630 * tree-vect-loop.c (vect_transform_loop): Remove the redundant
2631 LOOP_VINFO_FULLY_MASKED_P check.
2632
2633 2020-10-23 Dennis Zhang <dennis.zhang@arm.com>
2634
2635 * config/arm/mve.md (mve_vsubq<mode>): New entry for vsub instruction
2636 using expression 'minus'.
2637 (mve_vsubq_f<mode>): Use minus instead of VSUBQ_F unspec.
2638 * config/arm/neon.md (sub<mode>3, sub<mode>3_fp16): Removed.
2639 (neon_vsub<mode>): Use gen_sub<mode>3 instead of gen_sub<mode>3_fp16.
2640 * config/arm/vec-common.md (sub<mode>3): Use the new mode macros
2641 ARM_HAVE_<MODE>_ARITH. Use iterator VDQ instead of VALL.
2642
2643 2020-10-22 Alan Modra <amodra@gmail.com>
2644
2645 * config/rs6000/rs6000.c (rs6000_emit_xxspltidp_v2df): Delete
2646 debug printf. Remove trailing ".\n" from inform message.
2647 Break long line.
2648
2649 2020-10-22 Andrew MacLeod <amacleod@redhat.com>
2650
2651 * gimple-range-gori.cc (is_gimple_logical_p): Use types_compatible_p
2652 for logical compatibility.
2653 (logical_stmt_cache::cacheable_p): Ditto.
2654
2655 2020-10-22 Jan Hubicka <hubicka@ucw.cz>
2656
2657 * cgraph.c (cgraph_node::get_untransformed_body): Perform lazy
2658 clone materialization.
2659 * cgraph.h (cgraph_node::materialize_clone): Declare.
2660 (symbol_table::materialize_all_clones): Remove.
2661 * cgraphclones.c (cgraph_materialize_clone): Turn to ...
2662 (cgraph_node::materialize_clone): .. this one; move here
2663 dumping from symbol_table::materialize_all_clones.
2664 (symbol_table::materialize_all_clones): Remove.
2665 * cgraphunit.c (mark_functions_to_output): Clear stmt references.
2666 (cgraph_node::expand): Initialize bitmaps early;
2667 do not call execute_all_ipa_transforms if there are no transforms.
2668 * ipa-inline-transform.c (save_inline_function_body): Fix formating.
2669 (inline_transform): Materialize all clones before function is modified.
2670 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call):
2671 Materialize clone if needed.
2672 * ipa.c (class pass_materialize_all_clones): Remove.
2673 (make_pass_materialize_all_clones): Remove.
2674 * passes.c (execute_all_ipa_transforms): Materialize all clones.
2675 * passes.def: Remove pass_materialize_all_clones.
2676 * tree-pass.h (make_pass_materialize_all_clones): Remove.
2677 * tree-ssa-structalias.c (ipa_pta_execute): Clear refs.
2678
2679 2020-10-22 Will Schmidt <will_schmidt@vnet.ibm.com>
2680
2681 * config/rs6000/altivec.h (vec_xl_zext, vec_xl_sext, vec_xst_trunc):
2682 New defines.
2683 * config/rs6000/rs6000-builtin.def (BU_P10V_OVERLOAD_X): New builtin
2684 macro.
2685 (BU_P10V_AV_X): New builtin macro.
2686 (se_lxvrhbx, se_lxrbhx, se_lxvrwx, se_lxvrdx): Define internal names
2687 for load and sign extend vector element.
2688 (ze_lxvrbx, ze_lxvrhx, ze_lxvrwx, ze_lxvrdx): Define internal names
2689 for load and zero extend vector element.
2690 (tr_stxvrbx, tr_stxvrhx, tr_stxvrwx, tr_stxvrdx): Define internal names
2691 for truncate and store vector element.
2692 (se_lxvrx, ze_lxvrx, tr_stxvrx): Define internal names for overloaded
2693 load/store rightmost element.
2694 * config/rs6000/rs6000-call.c (altivec_builtin_types): Define the
2695 internal monomorphs P10_BUILTIN_SE_LXVRBX, P10_BUILTIN_SE_LXVRHX,
2696 P10_BUILTIN_SE_LXVRWX, P10_BUILTIN_SE_LXVRDX,
2697 P10_BUILTIN_ZE_LXVRBX, P10_BUILTIN_ZE_LXVRHX, P10_BUILTIN_ZE_LXVRWX,
2698 P10_BUILTIN_ZE_LXVRDX,
2699 P10_BUILTIN_TR_STXVRBX, P10_BUILTIN_TR_STXVRHX, P10_BUILTIN_TR_STXVRWX,
2700 P10_BUILTIN_TR_STXVRDX,
2701 (altivec_expand_lxvr_builtin): New expansion for load element builtins.
2702 (altivec_expand_stv_builtin): Update to for truncate and store builtins.
2703 (altivec_expand_builtin): Add clases for load/store rightmost builtins.
2704 (altivec_init_builtins): Add def_builtin entries for
2705 __builtin_altivec_se_lxvrbx, __builtin_altivec_se_lxvrhx,
2706 __builtin_altivec_se_lxvrwx, __builtin_altivec_se_lxvrdx,
2707 __builtin_altivec_ze_lxvrbx, __builtin_altivec_ze_lxvrhx,
2708 __builtin_altivec_ze_lxvrwx, __builtin_altivec_ze_lxvrdx,
2709 __builtin_altivec_tr_stxvrbx, __builtin_altivec_tr_stxvrhx,
2710 __builtin_altivec_tr_stxvrwx, __builtin_altivec_tr_stxvrdx,
2711 __builtin_vec_se_lxvrx, __builtin_vec_ze_lxvrx, __builtin_vec_tr_stxvrx.
2712 * config/rs6000/vsx.md (vsx_lxvr<wd>x, vsx_stxvr<wd>x, vsx_stxvr<wd>x):
2713 New define_insn entries.
2714 * doc/extend.texi: Add documentation for vsx_xl_sext, vsx_xl_zext,
2715 and vec_xst_trunc.
2716
2717 2020-10-22 Will Schmidt <will_schmidt@vnet.ibm.com>
2718
2719 * config/rs6000/vsx.md (enum unspec): Add
2720 UNSPEC_EXTENDDITI2 and UNSPEC_MTVSRD_DITI_W1 entries.
2721 (mtvsrdd_diti_w1, extendditi2_vector): New define_insns.
2722 (extendditi2): New define_expand.
2723
2724 2020-10-22 Alexandre Oliva <oliva@adacore.com>
2725
2726 * config/i386/mingw-w64.h (TARGET_LIBC_HAS_FUNCTION): Enable
2727 sincos optimization.
2728
2729 2020-10-22 Alan Modra <amodra@gmail.com>
2730
2731 * config/rs6000/vsx.md (vec_cntmb_<mode>, vec_extract_<mode>),
2732 (vec_expand_<mode>): Replace <VSX_MM_SUFFIX> with <wd>.
2733
2734 2020-10-22 Richard Biener <rguenther@suse.de>
2735
2736 * tree-vect-slp.c (vect_analyze_slp_instance): Refactor so
2737 computing a vector type early is not needed, for store group
2738 splitting compute a new vector type based on the desired
2739 group size.
2740
2741 2020-10-22 Richard Biener <rguenther@suse.de>
2742
2743 PR middle-end/97521
2744 * expr.c (expand_expr_real_1): Be more careful when
2745 expanding a VECTOR_BOOLEAN_TYPE_P VECTOR_CSTs.
2746
2747 2020-10-22 David Malcolm <dmalcolm@redhat.com>
2748
2749 * ipa-modref-tree.c (selftest::test_insert_search_collapse): Fix
2750 leak.
2751 (selftest::test_merge): Fix leaks.
2752
2753 2020-10-22 Andreas Krebbel <krebbel@linux.ibm.com>
2754
2755 PR target/97502
2756 * config/s390/vector.md ("vec_cmp<VI_HW:mode><VI_HW:mode>")
2757 ("vec_cmpu<VI_HW:mode><VI_HW:mode>"): New expanders.
2758
2759 2020-10-22 Andreas Krebbel <krebbel@linux.ibm.com>
2760
2761 PR rtl-optimization/97439
2762 * dfp.c (decimal_real_maxval): Set the sign flag in the
2763 generated number.
2764
2765 2020-10-22 Martin Liska <mliska@suse.cz>
2766
2767 PR c/94722
2768 * cfgexpand.c (stack_protect_decl_phase):
2769 Guard with lookup_attribute("no_stack_protector") at
2770 various places.
2771 (expand_used_vars): Likewise here.
2772 * doc/extend.texi: Document no_stack_protector attribute.
2773
2774 2020-10-22 Martin Liska <mliska@suse.cz>
2775
2776 * cfgexpand.c: Move the enum to ...
2777 * coretypes.h (enum stack_protector): ... here.
2778 * function.c (assign_parm_adjust_stack_rtl): Use the stack_protector
2779 enum.
2780
2781 2020-10-22 Kito Cheng <kito.cheng@sifive.com>
2782
2783 * config/riscv/multilib-generator: Add TODO, import itertools
2784 and functools.reduce.
2785 Handle expantion operator.
2786 (LONG_EXT_PREFIXES): New.
2787 (arch_canonicalize): Update comment and improve python3
2788 debuggability/compatibility.
2789 (add_underline_prefix): New.
2790 (_expand_combination): Ditto.
2791 (unique): Ditto.
2792 (expand_combination): Ditto.
2793
2794 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2795
2796 * tree-ssa-phiopt.c (cond_removal_in_popcount_clz_ctz_pattern):
2797 For CLZ and CTZ tests, use type temporary instead of mode.
2798
2799 2020-10-22 Jakub Jelinek <jakub@redhat.com>
2800
2801 * config.gcc (x86_archs): Add samuel-2, nehemiah, c7 and esther.
2802 (x86_64_archs): Add eden-x2, nano, nano-1000, nano-2000, nano-3000,
2803 nano-x2, eden-x4, nano-x4, x86-64-v2, x86-64-v3 and x86-64-v4.
2804 (i[34567]86-*-* | x86_64-*-*): Only allow x86-64-v* as argument
2805 to --with-arch_64=.
2806
2807 2020-10-22 Jan Hubicka <jh@suse.cz>
2808
2809 * ipa-pure-const.c (funct_state_summary_t::insert): Free stale
2810 summaries.
2811
2812 2020-10-22 Jan Hubicka <hubicka@ucw.cz>
2813
2814 * cgraph.c: Include tree-nested.h
2815 (cgraph_node::create): Call maybe_record_nested_function.
2816 (cgraph_node::remove): Do not remove function from nested function
2817 infos.
2818 (cgraph_node::dump): Update.
2819 (cgraph_node::unnest): Move to tree-nested.c
2820 (cgraph_node::verify_node): Update.
2821 (cgraph_c_finalize): Call nested_function_info::release.
2822 * cgraph.h (struct symtab_node): Remove nested function info.
2823 * cgraphclones.c (cgraph_node::create_clone): Do not clone nested
2824 function info.
2825 * cgraphunit.c (cgraph_node::analyze): Update.
2826 (cgraph_node::expand): Do not worry about nested functions; they are
2827 lowered.
2828 (symbol_table::finalize_compilation_unit): Call
2829 nested_function_info::release.
2830 * gimplify.c: Include tree-nested.h
2831 (unshare_body): Update.
2832 (unvisit_body): Update.
2833 * omp-offload.c (omp_discover_implicit_declare_target): Update.
2834 * tree-nested.c: Include alloc-pool.h, tree-nested.h, symbol-summary.h
2835 (nested_function_sum): New static variable.
2836 (nested_function_info::get): New member function.
2837 (nested_function_info::get_create): New member function.
2838 (unnest_function): New function.
2839 (nested_function_info::~nested_function_info): New member function.
2840 (nested_function_info::release): New function.
2841 (maybe_record_nested_function): New function.
2842 (lookup_element_for_decl): Update.
2843 (check_for_nested_with_variably_modified): Update.
2844 (create_nesting_tree): Update.
2845 (unnest_nesting_tree_1): Update.
2846 (gimplify_all_functions): Update.
2847 (lower_nested_functions): Update.
2848 * tree-nested.h (class nested_function_info): New class.
2849 (maybe_record_nested_function): Declare.
2850 (unnest_function): Declare.
2851 (first_nested_function): New inline function.
2852 (next_nested_function): New inline function.
2853 (nested_function_origin): New inline function.
2854
2855 2020-10-22 liuhongt <hongtao.liu@intel.com>
2856
2857 PR rtl-optimization/97249
2858 * simplify-rtx.c (simplify_binary_operation_1): Simplify
2859 vec_select of a subreg of X to a vec_select of X.
2860
2861 2020-10-22 liuhongt <hongtao.liu@intel.com>
2862
2863 PR target/87767
2864 * config/i386/constraints.md ("Br"): New special memory
2865 constraint.
2866 * config/i386/i386-expand.c (ix86_binary_operator_ok): Both
2867 source operand cannot be in memory or bcst_memory_operand.
2868 * config/i386/i386.c (ix86_print_operand): Print bcst_mem_operand.
2869 * config/i386/i386.h (VALID_BCST_MODE_P): New.
2870 * config/i386/predicates.md (bcst_mem_operand): New predicate
2871 for AVX512 embedding broadcast memory operand.
2872 (bcst_vector_operand): New predicate, vector_operand or
2873 bcst_mem_operand.
2874 * config/i386/sse.md
2875 (*<plusminus_insn><mode>3<mask_name><round_name>): Extend
2876 predicate and constraints to handle bcst_mem_operand.
2877 (*mul<mode>3<mask_name><round_name>): Ditto.
2878 (<sse>_div<mode>3<mask_name><round_name>): Ditto.
2879 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
2880 Ditto.
2881 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>):
2882 Ditto.
2883 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>):
2884 Ditto.
2885 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>):
2886 Ditto.
2887 (*<plusminus_insn><mode>3): Ditto.
2888 (avx512dq_mul<mode>3<mask_name>): Ditto.
2889 (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
2890 (*andnot<mode>3): Ditto.
2891 (<mask_codefor><code><mode>3<mask_name>): Ditto.
2892 (*sub<mode>3<mask_name>_bcst): Removed.
2893 (*add<mode>3<mask_name>_bcst): Ditto.
2894 (*mul<mode>3<mask_name>_bcst): Ditto.
2895 (*<avx512>_div<mode>3<mask_name>_bcst): Ditto.
2896 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1):
2897 Ditto.
2898 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_2):
2899 Ditto.
2900 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_3):
2901 Ditto.
2902 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1):
2903 Ditto.
2904 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_2):
2905 Ditto.
2906 (*<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_3):
2907 Ditto.
2908 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1):
2909 Ditto.
2910 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_2):
2911 Ditto.
2912 (*<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_3):
2913 Ditto.
2914 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1):
2915 Ditto.
2916 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_2):
2917 Ditto.
2918 (*<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_3):
2919 Ditto.
2920 (*sub<mode>3_bcst): Ditto.
2921 (*add<mode>3_bcst): Ditto.
2922 (*avx512dq_mul<mode>3<mask_name>_bcst): Ditto.
2923 (*avx512f_mul<mode>3<mask_name>_bcst): Ditto.
2924 (*andnot<mode>3_bcst): Ditto.
2925 (*<code><mode>3_bcst): Ditto.
2926 * config/i386/subst.md (bcst_round_constraint): New subst
2927 attribute.
2928 (bcst_round_nimm_predicate): Ditto.
2929 (bcst_mask_prefix3): Ditto.
2930 (bcst_mask_prefix4): Ditto.
2931
2932 2020-10-22 liuhongt <hongtao.liu@intel.com>
2933
2934 PR target/87767
2935 * ira-costs.c (record_operand_costs): Extract memory operand
2936 from recog_data.operand[i] for record_address_regs.
2937 (record_reg_classes): Extract memory operand from OP for
2938 conditional judgement MEM_P.
2939 * ira.c (ira_setup_alts): Ditto.
2940 * lra-constraints.c (extract_mem_from_operand): New function.
2941 (satisfies_memory_constraint_p): Extract memory operand from
2942 OP for decompose_mem_address, return false when there's no
2943 memory operand inside OP.
2944 (process_alt_operands): Remove MEM_P (op) since it would be
2945 judged in satisfies_memory_constraint_p.
2946 * recog.c (asm_operand_ok): Extract memory operand from OP for
2947 judgement of memory_operand (OP, VOIDmode).
2948 (constrain_operands): Don't unwrapper unary operator when
2949 there's memory operand inside.
2950 * rtl.h (extract_mem_from_operand): New decl.
2951
2952 2020-10-22 Dennis Zhang <dennis.zhang@arm.com>
2953
2954 * config/arm/mve.md (mve_vmaxq_<supf><mode>): Replace with ...
2955 (mve_vmaxq_s<mode>, mve_vmaxq_u<mode>): ... these new insns to
2956 use smax/umax instead of VMAXQ.
2957 (mve_vminq_<supf><mode>): Replace with ...
2958 (mve_vminq_s<mode>, mve_vminq_u<mode>): ... these new insns to
2959 use smin/umin instead of VMINQ.
2960 (mve_vmaxnmq_f<mode>): Use smax instead of VMAXNMQ_F.
2961 (mve_vminnmq_f<mode>): Use smin instead of VMINNMQ_F.
2962 * config/arm/vec-common.md (smin<mode>3): Use the new mode macros
2963 ARM_HAVE_<MODE>_ARITH.
2964 (umin<mode>3, smax<mode>3, umax<mode>3): Likewise.
2965
2966 2020-10-22 Andrew MacLeod <amacleod@redhat.com>
2967
2968 PR tree-optimization/97520
2969 * gimple-range.cc (range_of_non_trivial_assignment): Handle x = &a
2970 by returning a non-zero range.
2971
2972 2020-10-22 Dennis Zhang <dennis.zhang@arm.com>
2973
2974 * config/arm/mve.md (mve_vmulq<mode>): New entry for vmul instruction
2975 using expression 'mult'.
2976 (mve_vmulq_f<mode>): Use mult instead of VMULQ_F.
2977 * config/arm/neon.md (mul<mode>3): Removed.
2978 * config/arm/vec-common.md (mul<mode>3): Use the new mode macros
2979 ARM_HAVE_<MODE>_ARITH. Use mode iterator VDQWH instead of VALLW.
2980
2981 2020-10-22 Andrew MacLeod <amacleod@redhat.com>
2982
2983 PR tree-optimization/97515
2984 * value-query.cc (range_query::value_of_expr): If the result is
2985 UNDEFINED, check to see if the global value is a constant.
2986 (range_query::value_on_edge): Ditto.
2987
2988 2020-10-21 Jan Hubicka <hubicka@ucw.cz>
2989
2990 PR ipa/97445
2991 * ipa-inline.c (inline_insns_single): Add hint2 parameter.
2992 (inline_insns_auto): Add hint2 parameter.
2993 (can_inline_edge_by_limits_p): Update.
2994 (want_inline_small_function_p): Update.
2995 (wrapper_heuristics_may_apply): Update.
2996
2997 2020-10-21 Richard Biener <rguenther@suse.de>
2998 Andrew MacLeod <amacleod@redhat.com>
2999 Martin Liska <mliska@suse.cz>
3000
3001 PR target/97360
3002 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Remove call to
3003 build_distinct_type_copy().
3004
3005 2020-10-21 Jan Hubicka <jh@suse.cz>
3006
3007 PR ipa/97445
3008 * ipa-fnsummary.c (ipa_dump_hints): Add INLINE_HINT_builtin_constant_p.
3009 (ipa_fn_summary::~ipa_fn_summary): Free builtin_constant_p_parms.
3010 (ipa_fn_summary_t::duplicate): Duplicate builtin_constant_p_parms.
3011 (ipa_dump_fn_summary): Dump builtin_constant_p_parms.
3012 (add_builtin_constant_p_parm): New function
3013 (set_cond_stmt_execution_predicate): Update builtin_constant_p_parms.
3014 (ipa_call_context::estimate_size_and_time): Set
3015 INLINE_HINT_builtin_constant_p..
3016 (ipa_merge_fn_summary_after_inlining): Merge builtin_constant_p_parms.
3017 (inline_read_section): Read builtin_constant_p_parms.
3018 (ipa_fn_summary_write): Write builtin_constant_p_parms.
3019 * ipa-fnsummary.h (enum ipa_hints_vals): Add
3020 INLINE_HINT_builtin_constant_p.
3021 * ipa-inline.c (want_inline_small_function_p): Use
3022 INLINE_HINT_builtin_constant_p.
3023 (edge_badness): Use INLINE_HINT_builtin_constant_p.
3024
3025 2020-10-21 Douglas Rupp <rupp@adacore.com>
3026
3027 * config/vx-common.h (LINK_SPEC, LIB_SPEC): Remove #undef.
3028
3029 2020-10-21 Douglas Rupp <rupp@adacore.com>
3030 Olivier Hainque <hainque@adacore.com>
3031
3032 * config.gcc (powerpc*-wrs-vxworks7r*): New case.
3033 * config/rs6000/vxworks.h: Rework to handle VxWorks7.
3034 Refactor as common bits + vx6 vs vx7 ones. For the
3035 latter, rely essentially on the Linux configuration
3036 and adjust CPU to _VX_CPU in CPP_SPEC. Add a case
3037 for e6500. Use SUB3TARGET_OVERRIDE_OPTIONS for specifics
3038 to preserve the Linux SUBSUBTARGET_OVERRIDE_OPTIONS
3039 for vx7.
3040
3041 2020-10-21 Richard Biener <rguenther@suse.de>
3042
3043 PR tree-optimization/97500
3044 * tree-vect-slp.c (vect_analyze_slp_backedges): Do not
3045 fill backedges for inductions.
3046
3047 2020-10-21 liuhongt <hongtao.liu@intel.com>
3048
3049 PR target/97506
3050 * config/i386/i386-expand.c (ix86_expand_sse_movcc): Move
3051 op_true to dest directly when op_true equals op_false.
3052
3053 2020-10-21 Jakub Jelinek <jakub@redhat.com>
3054
3055 PR tree-optimization/97503
3056 * tree-ssa-phiopt.c: Include internal-fn.h.
3057 (cond_removal_in_popcount_pattern): Rename to ...
3058 (cond_removal_in_popcount_clz_ctz_pattern): ... this. Handle not just
3059 popcount, but also clz and ctz if it has C?Z_DEFINED_VALUE_AT_ZERO 2.
3060
3061 2020-10-21 Richard Biener <rguenther@suse.de>
3062
3063 * cfg.c (htab_bb_copy_original_entry): Remove.
3064 (bb_copy_hasher): Likewise.
3065 (bb_original, bb_copy, loop_copy): Use
3066 hash_map<int_hash<int, -1, -2>, int>.
3067 (original_copy_bb_pool): Remove.
3068 (initialize_original_copy_tables): Adjust.
3069 (reset_original_copy_tables): Likewise.
3070 (free_original_copy_tables): Likewise.
3071 (original_copy_tables_initialized_p): Likewise.
3072 (copy_original_table_clear): Simplify.
3073 (copy_original_table_set): Likewise.
3074 (get_bb_original): Likewise.
3075 (get_bb_copy): Likewise.
3076 (get_loop_copy): Likewise.
3077
3078 2020-10-21 Richard Biener <rguenther@suse.de>
3079
3080 * cfghooks.c (copy_bbs): Split out loop computing new_edges.
3081
3082 2020-10-21 Aldy Hernandez <aldyh@redhat.com>
3083
3084 * gimple-range.cc (gimple_ranger::range_of_ssa_name_with_loop_info):
3085 Remove TREE_OVERFLOW special case.
3086 * vr-values.c (bounds_of_var_in_loop): Adjust overflow for
3087 invariants.
3088
3089 2020-10-21 Aldy Hernandez <aldyh@redhat.com>
3090
3091 * vr-values.h: Remove simplify_cond_using_ranges_2.
3092 (range_fits_type_p): New.
3093 * vr-values.c (range_fits_type_p): Remove static qualifier.
3094 (vrp_simplify_cond_using_ranges): Move...
3095 * tree-vrp.c (vrp_simplify_cond_using_ranges): ...to here.
3096
3097 2020-10-20 Andrew MacLeod <amacleod@redhat.com>
3098
3099 PR tree-optimization/97505
3100 * vr-values.c (vr_values::extract_range_basic): Trap if
3101 vr_values version disagrees with range_of_builtin_call.
3102
3103 2020-10-20 David Edelsohn <dje.gcc@gmail.com>
3104
3105 * config/rs6000/rs6000.c (rs6000_option_override_internal):
3106 Don't implcitly enable Altivec ABI if set on the command line.
3107
3108 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3109
3110 * calls.c (get_size_range): Adjust to work with ranger.
3111 * calls.h (get_size_range): Add ranger argument to prototype.
3112 * gimple-ssa-warn-restrict.c (class wrestrict_dom_walker): Remove.
3113 (check_call): Pull out of wrestrict_dom_walker into a
3114 static function.
3115 (wrestrict_dom_walker::before_dom_children): Rename to...
3116 (wrestrict_walk): ...this.
3117 (pass_wrestrict::execute): Instantiate ranger.
3118 (class builtin_memref): Add stmt and query fields.
3119 (builtin_access::builtin_access): Add range_query field.
3120 (builtin_memref::builtin_memref): Same.
3121 (builtin_memref::extend_offset_range): Same.
3122 (builtin_access::builtin_access): Make work with ranger.
3123 (wrestrict_dom_walker::check_call): Pull out into...
3124 (check_call): ...here.
3125 (check_bounds_or_overlap): Add range_query argument.
3126 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap):
3127 Add range_query and gimple stmt arguments.
3128
3129 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3130
3131 * gimple-ssa-warn-alloca.c (enum alloca_type): Remove
3132 ALLOCA_BOUND_UNKNOWN and ALLOCA_CAST_FROM_SIGNED.
3133 (warn_limit_specified_p): New.
3134 (alloca_call_type_by_arg): Remove.
3135 (cast_from_signed_p): Remove.
3136 (is_max): Remove.
3137 (alloca_call_type): Remove heuristics and replace with call into
3138 ranger.
3139 (pass_walloca::execute): Instantiate ranger.
3140
3141 2020-10-20 Tobias Burnus <tobias@codesourcery.com>
3142
3143 * lto-wrapper.c (run_gcc): Use proper variable for
3144 %u.ltrans_args dump suffix.
3145
3146 2020-10-20 Zhiheng Xie <xiezhiheng@huawei.com>
3147 Nannan Zheng <zhengnannan@huawei.com>
3148
3149 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
3150 for get/set reg intrinsics.
3151
3152 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3153
3154 * gimple-range.cc (gimple_ranger::range_of_builtin_ubsan_call):
3155 Make externally visble...
3156 (range_of_builtin_ubsan_call): ...here. Add range_query argument.
3157 (gimple_ranger::range_of_builtin_call): Make externally visible...
3158 (range_of_builtin_call): ...here. Add range_query argument.
3159 * gimple-range.h (range_of_builtin_call): Move out from class and
3160 make externally visible.
3161 * vr-values.c (vr_values::extract_range_basic): Abstract out
3162 builtin handling to...
3163 (vr_values::range_of_expr): Handle non SSAs.
3164 (vr_values::extract_range_builtin): ...here.
3165 * vr-values.h (class vr_values): Add extract_range_builtin.
3166 (range_of_expr): Rename NAME to EXPR.
3167
3168 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3169
3170 PR tree-optimization/97501
3171 * gimple-range.cc (gimple_ranger::range_of_ssa_name_with_loop_info):
3172 Saturate overflows returned from SCEV.
3173
3174 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3175
3176 * value-range.cc (irange::operator=): Split up call to
3177 copy_legacy_range into...
3178 (irange::copy_to_legacy): ...this.
3179 (irange::copy_legacy_to_multi_range): ...and this.
3180 (irange::copy_legacy_range): Remove.
3181 * value-range.h: Remove copoy_legacy_range.
3182 Add copy_legacy_to_multi_range and copy_to_legacy.
3183
3184 2020-10-20 Tobias Burnus <tobias@codesourcery.com>
3185
3186 * doc/invoke.texi (NVPTX options): Use @item not @itemx.
3187
3188 2020-10-20 Richard Biener <rguenther@suse.de>
3189
3190 * tree-cfg.c (reinstall_phi_args): Remove.
3191 (gimple_split_edge): Remove PHIs around the edge redirection
3192 to avoid touching them at all.
3193
3194 2020-10-20 Richard Biener <rguenther@suse.de>
3195
3196 * tree-vect-loop.c (vectorizable_reduction): Use the correct
3197 loops latch edge for the PHI arg lookup.
3198
3199 2020-10-20 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3200
3201 * config/msp430/msp430.md (andneghi3): Allow general operand for
3202 op1 and update output assembler template.
3203
3204 2020-10-20 Tobias Burnus <tobias@codesourcery.com>
3205
3206 * collect-utils.c (collect_execute, fork_execute): Add at-file suffix
3207 argument.
3208 * collect-utils.h (collect_execute, fork_execute): Update prototype.
3209 * collect2.c (maybe_run_lto_and_relink, do_link, main, do_dsymutil):
3210 Update calls by passing NULL.
3211 * config/i386/intelmic-mkoffload.c (compile_for_target,
3212 generate_host_descr_file, prepare_target_image, main): Likewise.
3213 * config/gcn/mkoffload.c (compile_native, main): Pass at-file suffix.
3214 * config/nvptx/mkoffload.c (compile_native, main): Likewise.
3215 * lto-wrapper.c (compile_offload_image): Likewise.
3216
3217 2020-10-20 Aldy Hernandez <aldyh@redhat.com>
3218
3219 * range-op.cc (operator_rshift::op1_range): Special case
3220 shifting by zero.
3221
3222 2020-10-20 Richard Biener <rguenther@suse.de>
3223
3224 PR tree-optimization/97496
3225 * tree-vect-slp.c (vect_get_and_check_slp_defs): Guard extern
3226 promotion with not in pattern.
3227
3228 2020-10-20 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
3229
3230 * config/s390/s390.c (s390_expand_vec_strlen): Add alignment
3231 for memory access inside loop.
3232
3233 2020-10-19 Andrew MacLeod <amacleod@redhat.com>
3234
3235 PR tree-optimization/97360
3236 * gimple-range.h (range_compatible_p): New.
3237 * gimple-range-gori.cc (is_gimple_logical_p): Use range_compatible_p.
3238 (range_is_either_true_or_false): Ditto.
3239 (gori_compute::outgoing_edge_range_p): Cast result to the correct
3240 type if necessary.
3241 (logical_stmt_cache::cacheable_p): Use range_compatible_p.
3242 * gimple-range.cc (gimple_ranger::calc_stmt): Check range_compatible_p
3243 before casting the range.
3244 (gimple_ranger::range_on_exit): Use range_compatible_p.
3245 (gimple_ranger::range_on_edge): Ditto.
3246
3247 2020-10-19 Martin Jambor <mjambor@suse.cz>
3248
3249 PR tree-optimization/97456
3250 * tree-complex.c (set_component_ssa_name): Do not replace ignored decl
3251 default definitions with new component vars. Reorder if conditions.
3252
3253 2020-10-19 David Edelsohn <dje.gcc@gmail.com>
3254
3255 * config/rs6000/vsx.md (vextract_fp_from_shorth): Fix vals_be.
3256 (vextract_fp_from_shortl) Same.
3257
3258 2020-10-19 Aldy Hernandez <aldyh@redhat.com>
3259
3260 PR tree-optimization/97488
3261 * range-op.cc (operator_lshift::op1_range): Handle large right shifts.
3262
3263 2020-10-19 Martin Liska <mliska@suse.cz>
3264
3265 * ipa-modref.c (compute_parm_map): Clear vector.
3266
3267 2020-10-19 Richard Biener <rguenther@suse.de>
3268
3269 PR tree-optimization/97486
3270 * tree-vect-slp.c (vect_slp_function): Split after stmts
3271 ending a BB.
3272
3273 2020-10-19 Jonathan Wakely <jwakely@redhat.com>
3274
3275 * doc/invoke.texi (OPptimize Options): Add missing closing
3276 parenthesis.
3277
3278 2020-10-19 Aldy Hernandez <aldyh@redhat.com>
3279
3280 PR tree-optimization/97467
3281 * range-op.cc (operator_lshift::op1_range): Handle shifts by 0.
3282
3283 2020-10-19 Richard Biener <rguenther@suse.de>
3284
3285 PR tree-optimization/97466
3286 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
3287 spurious assert, re-indent.
3288
3289 2020-10-19 Li Jia He <helijia@gcc.gnu.org>
3290
3291 PR tree-optimization/66552
3292 * match.pd (x << (n % C) -> x << (n & C-1)): New simplification.
3293
3294 2020-10-19 Richard Biener <rguenther@suse.de>
3295
3296 * tree-cfg.c (verify_gimple_comparison): Drop special-case
3297 for pointer comparison.
3298
3299 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
3300
3301 * vr-values.c (dump_all_value_ranges): Only dump names which are
3302 still active.
3303
3304 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
3305
3306 * range-op.cc (pointer_plus_operator::wi_fold): Make pointer_plus
3307 [0, 0] + const return a [const, const] range.
3308
3309 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
3310
3311 * gimple-ssa-evrp.c (hybrid_folder::value_on_edge): Call
3312 evrp_folder::value_of_expr directly.
3313 (hybrid_folder::value_of_stmt): Ditto.
3314
3315 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
3316
3317 PR tree-optimization/97462
3318 * range-op.cc (operator_lshift::op1_range): Don't trap on negative
3319 shifts.
3320
3321 2020-10-16 Olivier Hainque <hainque@adacore.com>
3322
3323 * config/vxworks.h (VX_CRTBEGIN_SPEC): Likewise.
3324
3325 2020-10-16 Olivier Hainque <hainque@adacore.com>
3326
3327 * config/vxworks/_vxworks-versions.h: Only include
3328 version.h if _WRS_VXWORKS_MAJOR is not defined.
3329 Provide a default _WRS_VXWORKS_MINOR (0).
3330
3331 2020-10-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3332
3333 PR target/97327
3334 * config/arm/arm.c (fp_bitlist): Add isa_bit_mve_float to FP bits array.
3335
3336 2020-10-16 Richard Biener <rguenther@suse.de>
3337
3338 * tree-vect-slp.c (vect_get_and_check_slp_defs): For BB
3339 vectorization swap operands only if it helps, demote mismatches to
3340 external.
3341
3342 2020-10-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3343
3344 PR target/97291
3345 * config/arm/arm-builtins.c (arm_strsbwbs_qualifiers): Modify array.
3346 (arm_strsbwbu_qualifiers): Likewise.
3347 (arm_strsbwbs_p_qualifiers): Likewise.
3348 (arm_strsbwbu_p_qualifiers): Likewise.
3349 * config/arm/arm_mve.h (__arm_vstrdq_scatter_base_wb_s64): Modify
3350 function definition.
3351 (__arm_vstrdq_scatter_base_wb_u64): Likewise.
3352 (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
3353 (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
3354 (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
3355 (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
3356 (__arm_vstrwq_scatter_base_wb_s32): Likewise.
3357 (__arm_vstrwq_scatter_base_wb_u32): Likewise.
3358 (__arm_vstrwq_scatter_base_wb_f32): Likewise.
3359 (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
3360 * config/arm/arm_mve_builtins.def (vstrwq_scatter_base_wb_add_u): Remove
3361 expansion for the builtin.
3362 (vstrwq_scatter_base_wb_add_s): Likewise.
3363 (vstrwq_scatter_base_wb_add_f): Likewise.
3364 (vstrdq_scatter_base_wb_add_u): Likewise.
3365 (vstrdq_scatter_base_wb_add_s): Likewise.
3366 (vstrwq_scatter_base_wb_p_add_u): Likewise.
3367 (vstrwq_scatter_base_wb_p_add_s): Likewise.
3368 (vstrwq_scatter_base_wb_p_add_f): Likewise.
3369 (vstrdq_scatter_base_wb_p_add_u): Likewise.
3370 (vstrdq_scatter_base_wb_p_add_s): Likewise.
3371 * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Remove
3372 expand.
3373 (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
3374 (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Rename pattern to ...
3375 (mve_vstrwq_scatter_base_wb_<supf>v4si): This.
3376 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Remove expand.
3377 (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
3378 (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Rename pattern to ...
3379 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): This.
3380 (mve_vstrwq_scatter_base_wb_fv4sf): Remove expand.
3381 (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
3382 (mve_vstrwq_scatter_base_wb_fv4sf_insn): Rename pattern to ...
3383 (mve_vstrwq_scatter_base_wb_fv4sf): This.
3384 (mve_vstrwq_scatter_base_wb_p_fv4sf): Remove expand.
3385 (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
3386 (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Rename pattern to ...
3387 (mve_vstrwq_scatter_base_wb_p_fv4sf): This.
3388 (mve_vstrdq_scatter_base_wb_<supf>v2di): Remove expand.
3389 (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
3390 (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Rename pattern to ...
3391 (mve_vstrdq_scatter_base_wb_<supf>v2di): This.
3392 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Remove expand.
3393 (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
3394 (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Rename pattern to ...
3395 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): This.
3396
3397 2020-10-16 Kito Cheng <kito.cheng@sifive.com>
3398
3399 * config/riscv/multilib-generator (IMPLIED_EXT): New.
3400 (arch_canonicalize): Update comment and handle implied extensions.
3401
3402 2020-10-16 Richard Biener <rguenther@suse.de>
3403
3404 * tree-vect-slp.c (vect_get_and_check_slp_defs): First analyze
3405 all operands and fill in the def_stmts and ops entries.
3406 (vect_def_types_match): New helper.
3407
3408 2020-10-16 Martin Liska <mliska@suse.cz>
3409
3410 PR ipa/97404
3411 * ipa-prop.c (struct ipa_vr_ggc_hash_traits):
3412 Compare types of VRP as we can merge ranges of different types.
3413
3414 2020-10-16 Richard Biener <rguenther@suse.de>
3415
3416 PR tree-optimization/97428
3417 * tree-vect-slp.c (vect_analyze_slp_instance): Split store
3418 groups also for loop vectorization.
3419
3420 2020-10-15 Tom de Vries <tdevries@suse.de>
3421
3422 PR target/97436
3423 * config/nvptx/nvptx.opt (m32): Comment out.
3424 * doc/invoke.texi (NVPTX options): Remove -m32.
3425
3426 2020-10-15 Jan Hubicka <hubicka@ucw.cz>
3427 Richard Biener <rguenther@suse.de>
3428
3429 * attr-fnspec.h: Fix toplevel comment.
3430
3431 2020-10-15 Richard Biener <rguenther@suse.de>
3432
3433 * tree-pretty-print.c (dump_mem_ref): Print constant offset
3434 also for TARGET_MEM_REF.
3435
3436 2020-10-15 Jan Hubicka <jh@suse.cz>
3437
3438 * symtab.c (symtab_node::binds_to_current_def_p): Also accept symbols
3439 defined in other partition.
3440
3441 2020-10-15 Richard Biener <rguenther@suse.de>
3442
3443 * tree-vect-loop.c (vectorizable_live_operation): Adjust
3444 dominance query.
3445
3446 2020-10-15 Richard Biener <rguenther@suse.de>
3447
3448 PR tree-optimization/97482
3449 * tree-data-ref.c (split_constant_offset_1): Handle
3450 trivial conversions better.
3451 * fold-const.c (convert_to_ptrofftype_loc): Elide conversion
3452 if the offset is already ptrofftype_p.
3453
3454 2020-10-15 Martin Liska <mliska@suse.cz>
3455
3456 PR ipa/97295
3457 * profile-count.c (profile_count::to_frequency): Move part of
3458 gcc_assert to STATIC_ASSERT.
3459 * regs.h (REG_FREQ_FROM_BB): Do not use count.to_frequency for
3460 a function that does not have count_max initialized.
3461
3462 2020-10-15 Jakub Jelinek <jakub@redhat.com>
3463
3464 * params.opt (-param-ipa-jump-function-lookups=): Add full stop at
3465 the end of the parameter description.
3466
3467 2020-10-15 Kito Cheng <kito.cheng@sifive.com>
3468
3469 * common/config/riscv/riscv-common.c (riscv_cpu_tables): New.
3470 (riscv_arch_str): Return empty string if current_subset_list
3471 is NULL.
3472 (riscv_find_cpu): New.
3473 (riscv_handle_option): Verify option value of -mcpu.
3474 (riscv_expand_arch): Using std::string.
3475 (riscv_default_mtune): New.
3476 (riscv_expand_arch_from_cpu): Ditto.
3477 * config/riscv/riscv-cores.def: New.
3478 * config/riscv/riscv-protos.h (riscv_find_cpu): New.
3479 (riscv_cpu_info): New.
3480 * config/riscv/riscv.c (riscv_tune_info): Rename ...
3481 (riscv_tune_param): ... to this.
3482 (riscv_cpu_info): Rename ...
3483 (riscv_tune_info): ... to this.
3484 (tune_info): Rename ...
3485 (tune_param): ... to this.
3486 (rocket_tune_info): Update data type name.
3487 (sifive_7_tune_info): Ditto.
3488 (optimize_size_tune_info): Ditto.
3489 (riscv_cpu_info_table): Rename ...
3490 (riscv_tune_info_table): ... to this.
3491 (riscv_parse_cpu): Rename ...
3492 (riscv_parse_tune): ... to this, and translate valid -mcpu option to
3493 -mtune option.
3494 (riscv_rtx_costs): Rename tune_info to tune_param.
3495 (riscv_class_max_nregs): Ditto.
3496 (riscv_memory_move_cost): Ditto.
3497 (riscv_init_machine_status): Use value of -mcpu if -mtune is not
3498 given, and rename tune_info to tune_param.
3499 * config/riscv/riscv.h (riscv_expand_arch_from_cpu): New.
3500 (riscv_default_mtune): Ditto.
3501 (EXTRA_SPEC_FUNCTIONS): Add riscv_expand_arch_from_cpu and
3502 riscv_default_mtune.
3503 (OPTION_DEFAULT_SPECS): Handle default value of -march/-mabi.
3504 (DRIVER_SELF_SPECS): Expand -march from -mcpu if -march is not
3505 given.
3506 * config/riscv/riscv.opt (-mcpu): New option.
3507 * config/riscv/t-riscv ($(common_out_file)): Add
3508 riscv-cores.def to dependency.
3509 * doc/invoke.texi (RISC-V Option): Add -mcpu, and update the
3510 description of default value for -mtune and -march.
3511
3512 2020-10-15 Hongyu Wang <hongyu.wang@intel.com>
3513
3514 * common/config/i386/cpuinfo.h (get_available_features):
3515 Detect HRESET.
3516 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_HRESET_SET,
3517 OPTION_MASK_ISA2_HRESET_UNSET): New macros.
3518 (ix86_handle_option): Handle -mhreset.
3519 * common/config/i386/i386-cpuinfo.h (enum processor_features):
3520 Add FEATURE_HRESET.
3521 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
3522 for hreset.
3523 * config.gcc: Add hresetintrin.h
3524 * config/i386/hresetintrin.h: New header file.
3525 * config/i386/x86gprintrin.h: Include hresetintrin.h.
3526 * config/i386/cpuid.h (bit_HRESET): New.
3527 * config/i386/i386-builtin.def: Add new builtin.
3528 * config/i386/i386-expand.c (ix86_expand_builtin):
3529 Handle new builtin.
3530 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3531 __HRESET__.
3532 * config/i386/i386-options.c (isa2_opts): Add -mhreset.
3533 (ix86_valid_target_attribute_inner_p): Handle hreset.
3534 * config/i386/i386.h (TARGET_HRESET, TARGET_HRESET_P,
3535 PTA_HRESET): New.
3536 (PTA_ALDERLAKE): Add PTA_HRESET.
3537 * config/i386/i386.opt: Add option -mhreset.
3538 * config/i386/i386.md (UNSPECV_HRESET): New unspec.
3539 (hreset): New define_insn.
3540 * doc/invoke.texi: Document -mhreset.
3541 * doc/extend.texi: Document hreset.
3542
3543 2020-10-15 Hongtao Liu <hongtao.liu@intel.com>
3544
3545 * common/config/i386/cpuinfo.h (get_available_features):
3546 Detect UINTR.
3547 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_UINTR_SET
3548 OPTION_MASK_ISA2_UINTR_UNSET): New.
3549 (ix86_handle_option): Handle -muintr.
3550 * common/config/i386/i386-cpuinfo.h (enum processor_features):
3551 Add FEATURE_UINTR.
3552 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
3553 for uintr.
3554 * config.gcc: Add uintrintrin.h to extra_headers.
3555 * config/i386/uintrintrin.h: New.
3556 * config/i386/cpuid.h (bit_UINTR): New.
3557 * config/i386/i386-builtin-types.def: Add new types.
3558 * config/i386/i386-builtin.def: Add new builtins.
3559 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins): Add
3560 __builtin_ia32_testui.
3561 * config/i386/i386-builtins.h (ix86_builtins): Add
3562 IX86_BUILTIN_TESTUI.
3563 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3564 __UINTR__.
3565 * config/i386/i386-expand.c (ix86_expand_special_args_builtin):
3566 Handle UINT8_FTYPE_VOID.
3567 (ix86_expand_builtin): Handle IX86_BUILTIN_TESTUI.
3568 * config/i386/i386-options.c (isa2_opts): Add -muintr.
3569 (ix86_valid_target_attribute_inner_p): Handle UINTR.
3570 (ix86_option_override_internal): Add TARGET_64BIT check for UINTR.
3571 * config/i386/i386.h (TARGET_UINTR, TARGET_UINTR_P, PTA_UINTR): New.
3572 (PTA_SAPPHIRRAPIDS): Add PTA_UINTR.
3573 * config/i386/i386.opt: Add -muintr.
3574 * config/i386/i386.md
3575 (define_int_iterator UINTR_UNSPECV): New.
3576 (define_int_attr uintr_unspecv): New.
3577 (uintr_<uintr_unspecv>, uintr_senduipi, testui):
3578 New define_insn patterns.
3579 * config/i386/x86gprintrin.h: Include uintrintrin.h
3580 * doc/invoke.texi: Document -muintr.
3581 * doc/extend.texi: Document uintr.
3582
3583 2020-10-14 Martin Sebor <msebor@redhat.com>
3584
3585 PR middle-end/97391
3586 * builtins.c (gimple_parm_array_size): Peel off one less layer
3587 of array types.
3588
3589 2020-10-14 Martin Sebor <msebor@redhat.com>
3590
3591 PR c/97413
3592 * attribs.c (init_attr_rdwr_indices): Unwrap extra list layer.
3593
3594 2020-10-14 Sunil K Pandey <skpgkp2@gmail.com>
3595
3596 PR target/95483
3597 * config/i386/avx2intrin.h (_mm_broadcastsi128_si256): New intrinsics.
3598 (_mm_broadcastsd_pd): Ditto.
3599 * config/i386/avx512bwintrin.h (_mm512_loadu_epi16): New intrinsics.
3600 (_mm512_storeu_epi16): Ditto.
3601 (_mm512_loadu_epi8): Ditto.
3602 (_mm512_storeu_epi8): Ditto.
3603 * config/i386/avx512dqintrin.h (_mm_reduce_round_sd): New intrinsics.
3604 (_mm_mask_reduce_round_sd): Ditto.
3605 (_mm_maskz_reduce_round_sd): Ditto.
3606 (_mm_reduce_round_ss): Ditto.
3607 (_mm_mask_reduce_round_ss): Ditto.
3608 (_mm_maskz_reduce_round_ss): Ditto.
3609 (_mm512_reduce_round_pd): Ditto.
3610 (_mm512_mask_reduce_round_pd): Ditto.
3611 (_mm512_maskz_reduce_round_pd): Ditto.
3612 (_mm512_reduce_round_ps): Ditto.
3613 (_mm512_mask_reduce_round_ps): Ditto.
3614 (_mm512_maskz_reduce_round_ps): Ditto.
3615 * config/i386/avx512erintrin.h
3616 (_mm_mask_rcp28_round_sd): New intrinsics.
3617 (_mm_maskz_rcp28_round_sd): Ditto.
3618 (_mm_mask_rcp28_round_ss): Ditto.
3619 (_mm_maskz_rcp28_round_ss): Ditto.
3620 (_mm_mask_rsqrt28_round_sd): Ditto.
3621 (_mm_maskz_rsqrt28_round_sd): Ditto.
3622 (_mm_mask_rsqrt28_round_ss): Ditto.
3623 (_mm_maskz_rsqrt28_round_ss): Ditto.
3624 (_mm_mask_rcp28_sd): Ditto.
3625 (_mm_maskz_rcp28_sd): Ditto.
3626 (_mm_mask_rcp28_ss): Ditto.
3627 (_mm_maskz_rcp28_ss): Ditto.
3628 (_mm_mask_rsqrt28_sd): Ditto.
3629 (_mm_maskz_rsqrt28_sd): Ditto.
3630 (_mm_mask_rsqrt28_ss): Ditto.
3631 (_mm_maskz_rsqrt28_ss): Ditto.
3632 * config/i386/avx512fintrin.h (_mm_mask_sqrt_sd): New intrinsics.
3633 (_mm_maskz_sqrt_sd): Ditto.
3634 (_mm_mask_sqrt_ss): Ditto.
3635 (_mm_maskz_sqrt_ss): Ditto.
3636 (_mm_mask_scalef_sd): Ditto.
3637 (_mm_maskz_scalef_sd): Ditto.
3638 (_mm_mask_scalef_ss): Ditto.
3639 (_mm_maskz_scalef_ss): Ditto.
3640 (_mm_mask_cvt_roundsd_ss): Ditto.
3641 (_mm_maskz_cvt_roundsd_ss): Ditto.
3642 (_mm_mask_cvt_roundss_sd): Ditto.
3643 (_mm_maskz_cvt_roundss_sd): Ditto.
3644 (_mm_mask_cvtss_sd): Ditto.
3645 (_mm_maskz_cvtss_sd): Ditto.
3646 (_mm_mask_cvtsd_ss): Ditto.
3647 (_mm_maskz_cvtsd_ss): Ditto.
3648 (_mm512_cvtsi512_si32): Ditto.
3649 (_mm_cvtsd_i32): Ditto.
3650 (_mm_cvtss_i32): Ditto.
3651 (_mm_cvti32_sd): Ditto.
3652 (_mm_cvti32_ss): Ditto.
3653 (_mm_cvtsd_i64): Ditto.
3654 (_mm_cvtss_i64): Ditto.
3655 (_mm_cvti64_sd): Ditto.
3656 (_mm_cvti64_ss): Ditto.
3657 * config/i386/avx512vlbwintrin.h (_mm256_storeu_epi8): New intrinsics.
3658 (_mm_storeu_epi8): Ditto.
3659 (_mm256_loadu_epi16): Ditto.
3660 (_mm_loadu_epi16): Ditto.
3661 (_mm256_loadu_epi8): Ditto.
3662 (_mm_loadu_epi8): Ditto.
3663 (_mm256_storeu_epi16): Ditto.
3664 (_mm_storeu_epi16): Ditto.
3665 * config/i386/avx512vlintrin.h (_mm256_load_epi64): New intrinsics.
3666 (_mm_load_epi64): Ditto.
3667 (_mm256_load_epi32): Ditto.
3668 (_mm_load_epi32): Ditto.
3669 (_mm256_store_epi32): Ditto.
3670 (_mm_store_epi32): Ditto.
3671 (_mm256_loadu_epi64): Ditto.
3672 (_mm_loadu_epi64): Ditto.
3673 (_mm256_loadu_epi32): Ditto.
3674 (_mm_loadu_epi32): Ditto.
3675 (_mm256_mask_cvt_roundps_ph): Ditto.
3676 (_mm256_maskz_cvt_roundps_ph): Ditto.
3677 (_mm_mask_cvt_roundps_ph): Ditto.
3678 (_mm_maskz_cvt_roundps_ph): Ditto.
3679 * config/i386/avxintrin.h (_mm256_cvtsi256_si32): New intrinsics.
3680 * config/i386/emmintrin.h (_mm_loadu_si32): New intrinsics.
3681 (_mm_loadu_si16): Ditto.
3682 (_mm_storeu_si32): Ditto.
3683 (_mm_storeu_si16): Ditto.
3684 * config/i386/i386-builtin-types.def
3685 (V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT): Add new type.
3686 (V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT): Ditto.
3687 (V4SF_FTYPE_V4SF_V2DF_V4SF_UQI_INT): Ditto.
3688 (V2DF_FTYPE_V2DF_V4SF_V2DF_UQI_INT): Ditto.
3689 * config/i386/i386-builtin.def
3690 (__builtin_ia32_cvtsd2ss_mask_round): New builtin.
3691 (__builtin_ia32_cvtss2sd_mask_round): Ditto.
3692 (__builtin_ia32_rcp28sd_mask_round): Ditto.
3693 (__builtin_ia32_rcp28ss_mask_round): Ditto.
3694 (__builtin_ia32_rsqrt28sd_mask_round): Ditto.
3695 (__builtin_ia32_rsqrt28ss_mask_round): Ditto.
3696 (__builtin_ia32_reducepd512_mask_round): Ditto.
3697 (__builtin_ia32_reduceps512_mask_round): Ditto.
3698 (__builtin_ia32_reducesd_mask_round): Ditto.
3699 (__builtin_ia32_reducess_mask_round): Ditto.
3700 * config/i386/i386-expand.c
3701 (ix86_expand_round_builtin): Expand round builtin for new type.
3702 (V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT)
3703 (V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT)
3704 (V4SF_FTYPE_V4SF_V2DF_V4SF_UQI_INT)
3705 (V2DF_FTYPE_V2DF_V4SF_V2DF_UQI_INT)
3706 * config/i386/mmintrin.h ()
3707 Define datatype __m32 and __m16.
3708 Define datatype __m32_u and __m16_u.
3709 * config/i386/sse.md: Adjust pattern.
3710 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>): Adjust.
3711 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name>): Ditto.
3712 (sse2_cvtsd2ss<mask_name><round_name>): Ditto.
3713 (sse2_cvtss2sd<mask_name><round_saeonly_name>): Ditto.
3714 (avx512er_vmrcp28<mode><mask_name><round_saeonly_name>): Ditto.
3715 (avx512er_vmrsqrt28<mode><mask_name><round_saeonly_name>): Ditto.
3716
3717 2020-10-14 Olivier Hainque <hainque@adacore.com>
3718
3719 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Fix
3720 the VX_CPU selection for -mcpu=xscale on arm-vxworks.
3721
3722 2020-10-14 Olivier Hainque <hainque@adacore.com>
3723
3724 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Accommodate
3725 expectations from different versions of VxWorks, for 32 or 64bit
3726 configurations.
3727
3728 2020-10-14 Olivier Hainque <hainque@adacore.com>
3729
3730 * config/vxworks.h: #undef CPLUSPLUS_CPP_SPEC.
3731
3732 2020-10-14 Olivier Hainque <hainque@adacore.com>
3733
3734 * config/t-vxworks: Adjust the VxWorks alternative LIMITS_H guard
3735 for glimits.h, make it both closer to the previous one and easier to
3736 search for.
3737
3738 2020-10-14 Jakub Jelinek <jakub@redhat.com>
3739
3740 PR target/97387
3741 * config/i386/i386.md (CC_CCC): New mode iterator.
3742 (*setcc_qi_addqi3_cconly_overflow_1_<mode>): New
3743 define_insn_and_split.
3744 * config/i386/i386.c (ix86_cc_mode): Return CCCmode
3745 for *setcc_qi_addqi3_cconly_overflow_1_<mode> pattern operands.
3746 (ix86_rtx_costs): Return true and *total = 0;
3747 for *setcc_qi_addqi3_cconly_overflow_1_<mode> pattern. Use op0 and
3748 op1 temporaries to simplify COMPARE checks.
3749
3750 2020-10-14 Aldy Hernandez <aldyh@redhat.com>
3751
3752 PR tree-optimization/97396
3753 * gimple-range.cc (gimple_ranger::range_of_phi): Do not call
3754 range_of_ssa_name_with_loop_info with the loop tree root.
3755
3756 2020-10-14 Richard Biener <rguenther@suse.de>
3757
3758 * tree-vect-slp.c (vect_get_and_check_slp_defs): Split out
3759 test for compatible operand types.
3760
3761 2020-10-14 Olivier Hainque <hainque@adacore.com>
3762
3763 * config/vxworks.c (vxworks_override_options): Guard pic checks with
3764 flag_pic > 0 instead of just flag_pic.
3765
3766 2020-10-14 Jan Hubicka <hubicka@ucw.cz>
3767
3768 * ipa-fnsummary.c (remap_edge_summaries): Make offset_map HOST_WIDE_INT.
3769 (remap_freqcounting_predicate): Likewise.
3770 (ipa_merge_fn_summary_after_inlining): Likewise.
3771 * ipa-predicate.c (predicate::remap_after_inlining): Likewise
3772 * ipa-predicate.h (remap_after_inlining): Update.
3773
3774 2020-10-14 Jan Hubicka <jh@suse.cz>
3775
3776 * ipa-modref.c (compute_parm_map): Handle POINTER_PLUS_EXPR in
3777 PASSTHROUGH.
3778
3779 2020-10-14 Richard Biener <rguenther@suse.de>
3780
3781 * tree-vect-slp.c (vect_get_and_check_slp_defs): Move
3782 check for duplicate/interleave of variable size constants
3783 to a place done once and early.
3784 (vect_build_slp_tree_2): Adjust heuristics when to build
3785 a BB SLP node from scalars.
3786
3787 2020-10-14 Tom de Vries <tdevries@suse.de>
3788
3789 * tracer.c (cached_can_duplicate_bb_p, analyze_bb): Use
3790 can_duplicate_block_p.
3791 (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
3792 (can_duplicate_bb_p): Move and merge ...
3793 * tree-cfg.c (gimple_can_duplicate_bb_p): ... here.
3794
3795 2020-10-14 Jan Hubicka <hubicka@ucw.cz>
3796
3797 * doc/invoke.texi: (ipa-jump-function-lookups): Document param.
3798 * ipa-modref.c (merge_call_side_effects): Use
3799 unadjusted_ptr_and_unit_offset.
3800 * ipa-prop.c (unadjusted_ptr_and_unit_offset): New function.
3801 * ipa-prop.h (unadjusted_ptr_and_unit_offset): Declare.
3802 * params.opt: (-param-ipa-jump-function-lookups): New.
3803
3804 2020-10-14 Jan Hubicka <jh@suse.cz>
3805
3806 PR bootstrap/97350
3807 * ipa-modref.c (ignore_edge): Do not ignore inlined edes.
3808 (ipa_merge_modref_summary_after_inlining): Improve debug output and
3809 fix parameter of ignore_stores_p.
3810
3811 2020-10-14 Kito Cheng <kito.cheng@sifive.com>
3812
3813 PR target/96759
3814 * expr.c (expand_assignment): Handle misaligned stores with PARALLEL
3815 value.
3816
3817 2020-10-13 Jakub Jelinek <jakub@redhat.com>
3818
3819 PR rtl-optimization/97386
3820 * combine.c (simplify_shift_const_1): Don't optimize nested ROTATEs if
3821 they have different modes.
3822
3823 2020-10-13 Aldy Hernandez <aldyh@redhat.com>
3824
3825 PR tree-optimization/97379
3826 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Do
3827 not save hash slot across calls to hash_table<>::get_or_insert.
3828
3829 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
3830
3831 * lto-wrapper.c (find_crtoffloadtable): Fix last commit
3832 by adding NULL as last argument to concat.
3833
3834 2020-10-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3835
3836 * config/aarch64/aarch64.c (neoversen2_tunings): Define.
3837 * config/aarch64/aarch64-cores.def (neoverse-n2): Use it.
3838
3839 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
3840
3841 * lto-wrapper.c (find_crtoffloadtable): With -save-temps,
3842 use non-temp file name utilizing the dump prefix.
3843 (run_gcc): Update call.
3844
3845 2020-10-13 Richard Biener <rguenther@suse.de>
3846
3847 PR tree-optimization/97382
3848 * tree-vectorizer.h (_stmt_vec_info::same_align_refs): Remove.
3849 (STMT_VINFO_SAME_ALIGN_REFS): Likewise.
3850 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
3851 allocate STMT_VINFO_SAME_ALIGN_REFS.
3852 (vec_info::free_stmt_vec_info): Do not release
3853 STMT_VINFO_SAME_ALIGN_REFS.
3854 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
3855 Do not compute self and read-read dependences.
3856 (vect_dr_aligned_if_related_peeled_dr_is): New helper.
3857 (vect_dr_aligned_if_peeled_dr_is): Likewise.
3858 (vect_update_misalignment_for_peel): Use it instead of
3859 iterating over STMT_VINFO_SAME_ALIGN_REFS.
3860 (dr_align_group_sort_cmp): New function.
3861 (vect_enhance_data_refs_alignment): Count the number of
3862 same aligned refs here and elide uses of STMT_VINFO_SAME_ALIGN_REFS.
3863 (vect_find_same_alignment_drs): Remove.
3864 (vect_analyze_data_refs_alignment): Do not call it.
3865 * vec.h (auto_vec<T, 0>::auto_vec): Adjust CTOR to take
3866 a vec<>&&, assert it isn't using auto storage.
3867 (auto_vec& operator=): Apply a similar change.
3868
3869 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
3870
3871 * config/nvptx/mkoffload.c (main): Add missing fclose (in).
3872
3873 2020-10-13 Zhiheng Xie <xiezhiheng@huawei.com>
3874 Nannan Zheng <zhengnannan@huawei.com>
3875
3876 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
3877 for mul/mla/mls intrinsics.
3878
3879 2020-10-13 Jakub Jelinek <jakub@redhat.com>
3880
3881 * omp-low.c (add_taskreg_looptemp_clauses): For triangular loops
3882 with non-constant number of iterations add another 4 _looptemp_
3883 clauses before the (optional) one for lastprivate.
3884 (lower_omp_for_lastprivate): Skip those clauses when looking for
3885 the lastprivate clause.
3886 (lower_omp_for): For triangular loops with non-constant number of
3887 iterations add another 4 _looptemp_ clauses.
3888 * omp-expand.c (expand_omp_for_init_counts): For triangular loops
3889 with non-constant number of iterations set counts[0],
3890 fd->first_inner_iterations, fd->factor and fd->adjn1 from the newly
3891 added _looptemp_ clauses.
3892 (expand_omp_for_init_vars): Initialize the newly added _looptemp_
3893 clauses.
3894 (find_lastprivate_looptemp): New function.
3895 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
3896 expand_omp_taskloop_for_outer): Use it instead of manually skipping
3897 _looptemp_ clauses.
3898
3899 2020-10-13 Jan Hubicka <hubicka@ucw.cz>
3900
3901 PR ipa/97389
3902 * ipa-modref.c (dump_lto_records): Fix formating of dump file.
3903 (modref_summary::dump): Do not check loads to be non-null.
3904 (modref_summary_lto::dump): Do not check loads to be non-null.
3905 (merge_call_side_effects): Improve debug output.
3906 (analyze_call): Crash when cur_summary->loads is NULL.
3907 (analyze_function): Update.
3908 (modref_summaries::insert): Insert only into summaries, not
3909 optimization_summaries.
3910 (modref_summaries::duplicate): Likewise; crash when load or sotres
3911 are NULL.
3912 (modref_summaries_lto::duplicate): Crash when loads or stores are NULL.
3913 (write_modref_records): param_index is signed.
3914 (read_modref_records): param_index is signed.
3915 (modref_write): Crash when loads or stores are NULL.
3916 (read_section): Compensate previous change.
3917 (pass_modref::execute): Do not check optimization_summaries t be
3918 non-NULL.
3919 (ignore_edge): Fix.
3920 (compute_parm_map): Fix formating.
3921 (modref_propagate_in_scc): Do not expect loads/stores to be NULL.
3922
3923 2020-10-12 Alexandre Oliva <oliva@adacore.com>
3924
3925 * builtins.c (mathfn_built_in_type): Use CFN_ enumerators.
3926
3927 2020-10-12 Andrew MacLeod <amacleod@redhat.com>
3928
3929 PR tree-optimization/97381
3930 * gimple-range-gori.cc (gori_compute::compute_operand2_range): If a range cannot be
3931 calculated through operand 2, return false.
3932
3933 2020-10-12 Aldy Hernandez <aldyh@redhat.com>
3934
3935 PR tree-optimization/97378
3936 * range-op.cc (operator_trunc_mod::wi_fold): Return VARYING for mod by zero.
3937
3938 2020-10-12 David Malcolm <dmalcolm@redhat.com>
3939
3940 * doc/invoke.texi: Document -Wanalyzer-write-to-const and
3941 -Wanalyzer-write-to-string-literal.
3942
3943 2020-10-12 Martin Sebor <msebor@redhat.com>
3944
3945 PR middle-end/97342
3946 PR middle-end/97023
3947 PR middle-end/96384
3948 * builtins.c (access_ref::access_ref): Initialize new member. Use
3949 new enum.
3950 (access_ref::size_remaining): Define new member function.
3951 (inform_access): Handle expressions referencing objects.
3952 (gimple_call_alloc_size): Call get_size_range instead of get_range.
3953 (gimple_call_return_array): New function.
3954 (get_range): Rename...
3955 (get_offset_range): ...to this. Improve detection of ranges from
3956 types of expressions.
3957 (gimple_call_return_array): Adjust calls to get_range per above.
3958 (compute_objsize): Same. Set maximum size or offset instead of
3959 failing for unknown objects and handle more kinds of expressions.
3960 (compute_objsize): Call access_ref::size_remaining.
3961 (compute_objsize): Have transitional wrapper fail for pointers
3962 into unknown objects.
3963 (expand_builtin_strncmp): Call access_ref::size_remaining and
3964 handle new cases.
3965 * builtins.h (access_ref::size_remaining): Declare new member function.
3966 (access_ref::set_max_size_range): Define new member function.
3967 (access_ref::add_ofset, access_ref::add_max_ofset): Same.
3968 (access_ref::add_base0): New data member.
3969 * calls.c (get_size_range): Change argument type. Handle new
3970 condition.
3971 * calls.h (get_size_range): Adjust signature.
3972 (enum size_range_flags): Define new type.
3973 * gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Correct
3974 argument to get_size_range.
3975 * tree-ssa-strlen.c (get_range): Handle anti-ranges.
3976 (maybe_warn_overflow): Check DECL_P before assuming it's one.
3977
3978 2020-10-12 Martin Sebor <msebor@redhat.com>
3979
3980 PR c++/96511
3981 PR middle-end/96384
3982 * builtins.c (get_range): Return full range of type when neither
3983 value nor its range is available. Fail for ranges inverted due
3984 to the signedness of offsets.
3985 (compute_objsize): Handle more special array members. Handle
3986 POINTER_PLUS_EXPR and VIEW_CONVERT_EXPR that come up in front end
3987 code.
3988 (access_ref::offset_bounded): Define new member function.
3989 * builtins.h (access_ref::eval): New data member.
3990 (access_ref::offset_bounded): New member function.
3991 (access_ref::offset_zero): New member function.
3992 (compute_objsize): Declare a new overload.
3993 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Use
3994 enum special_array_member.
3995 * tree.c (component_ref_size): Use special_array_member.
3996 * tree.h (special_array_member): Define a new type.
3997 (component_ref_size): Change signature.
3998
3999 2020-10-12 Jan Hubicka <hubicka@ucw.cz>
4000
4001 * ipa-modref.c (modref_summaries): Remove field IPA.
4002 (class modref_summary_lto): New global variable.
4003 (class modref_summaries_lto): New.
4004 (modref_summary::modref_summary): Remove loads_lto and stores_lto.
4005 (modref_summary::~modref_summary): Remove loads_lto and stores_lto.
4006 (modref_summary::useful_p): Do not use lto_useful.
4007 (modref_records_lto): New typedef.
4008 (struct modref_summary_lto): New type.
4009 (modref_summary_lto::modref_summary_lto): New member function.
4010 (modref_summary_lto::~modref_summary_lto): New member function.
4011 (modref_summary_lto::useful_p): New member function.
4012 (modref_summary::dump): Do not handle lto.
4013 (modref_summary_lto::dump): New member function.
4014 (get_modref_function_summary): Use optimization_summary.
4015 (merge_call_side_effects): Use optimization_summary.
4016 (analyze_call): Use optimization_summary.
4017 (struct summary_ptrs): New struture.
4018 (analyze_load): Update to handle separate lto and non-lto summaries.
4019 (analyze_store): Likewise.
4020 (analyze_stmt): Likewise.
4021 (remove_summary): Break out from ...
4022 (analyze_function): ... here; update to handle seprated summaries.
4023 (modref_summaries::insert): Do not handle lto summary.
4024 (modref_summaries_lto::insert): New member function.
4025 (modref_summaries::duplicate): Do not handle lto summary.
4026 (modref_summaries_lto::duplicate): New member function.
4027 (read_modref_records): Expect nolto_ret or lto_ret to be NULL>
4028 (modref_write): Write lto summary.
4029 (read_section): Handle separated summaries.
4030 (modref_read): Initialize separated summaries.
4031 (modref_transform): Handle separated summaries.
4032 (pass_modref::execute): Turn summary to optimization_summary; handle
4033 separate summaries.
4034 (ignore_edge): Handle separate summaries.
4035 (ipa_merge_modref_summary_after_inlining): Likewise.
4036 (collapse_loads): Likewise.
4037 (modref_propagate_in_scc): Likewise.
4038 (pass_ipa_modref::execute): Likewise.
4039 (ipa_modref_c_finalize): Likewise.
4040 * ipa-modref.h (modref_records_lto): Remove typedef.
4041 (struct modref_summary): Remove stores_lto, loads_lto and finished
4042 fields; remove lto_useful_p member function.
4043
4044 2020-10-12 Richard Biener <rguenther@suse.de>
4045
4046 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
4047 Use SLP_TREE_REPRESENTATIVE.
4048 * tree-vectorizer.h (_slp_tree::vertex): New member used
4049 for graphds interfacing.
4050 * tree-vect-slp.c (vect_build_slp_tree_2): Allocate space
4051 for PHI SLP children.
4052 (vect_analyze_slp_backedges): New function filling in SLP
4053 node children for PHIs that correspond to backedge values.
4054 (vect_analyze_slp): Call vect_analyze_slp_backedges for the
4055 graph.
4056 (vect_slp_analyze_node_operations): Deal with a cyclic graph.
4057 (vect_schedule_slp_instance): Likewise.
4058 (vect_schedule_slp): Likewise.
4059 (slp_copy_subtree): Remove.
4060 (vect_slp_rearrange_stmts): Likewise.
4061 (vect_attempt_slp_rearrange_stmts): Likewise.
4062 (vect_slp_build_vertices): New functions.
4063 (vect_slp_permute): Likewise.
4064 (vect_slp_perms_eq): Likewise.
4065 (vect_optimize_slp): Remove special code to elide
4066 permutations with SLP reductions. Implement generic
4067 permute optimization.
4068
4069 2020-10-12 Christophe Lyon <christophe.lyon@linaro.org>
4070
4071 * config/arm/arm.c (arm_preferred_simd_mode): Use E_FOOmode
4072 instead of FOOmode.
4073
4074 2020-10-12 Martin Liska <mliska@suse.cz>
4075
4076 PR tree-optimization/97079
4077 * internal-fn.c (internal_fn_stored_value_index): Handle also
4078 .MASK_STORE_LANES.
4079 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Bail
4080 out for unsupported TREE_TYPE.
4081
4082 2020-10-12 Richard Biener <rguenther@suse.de>
4083
4084 * tree-vect-slp.c (vect_bb_partition_graph_r): Use visited
4085 hash-map.
4086 (vect_bb_partition_graph): Likewise.
4087
4088 2020-10-12 Duan bo <duanbo3@huawei.com>
4089
4090 PR target/96757
4091 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Add
4092 the identification and handling of the dropped situation in the
4093 cond expression processing phase.
4094
4095 2020-10-12 Tobias Burnus <tobias@codesourcery.com>
4096
4097 * doc/invoke.texi (nvptx's -misa): Update default to sm_35.
4098
4099 2020-10-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4100
4101 PR target/97349
4102 * config/aarch64/arm_neon.h (vdupq_n_p8, vdupq_n_p16,
4103 vdupq_n_p64, vdupq_n_s8, vdupq_n_s16, vdupq_n_u8, vdupq_n_u16):
4104 Fix argument type.
4105
4106 2020-10-12 Ilya Leoshkevich <iii@linux.ibm.com>
4107
4108 * config/s390/s390-protos.h (s390_build_signbit_mask): New
4109 function.
4110 * config/s390/s390.c (s390_contiguous_bitmask_vector_p):
4111 Bitcast the argument to an integral mode.
4112 (s390_expand_vec_init): Do not call
4113 s390_contiguous_bitmask_vector_p with a scalar argument.
4114 (s390_build_signbit_mask): New function.
4115 * config/s390/vector.md (copysign<mode>3): Use bitwise
4116 operations.
4117
4118 2020-10-12 Aldy Hernandez <aldyh@redhat.com>
4119
4120 PR tree-optimization/97371
4121 * range-op.cc (operator_rshift::op1_range): Ignore shifts larger than
4122 or equal to type precision.
4123
4124 2020-10-12 Martin Liska <mliska@suse.cz>
4125
4126 * ipa-modref.c (merge_call_side_effects): Clear modref_parm_map
4127 fields in the vector.
4128
4129 2020-10-12 Richard Biener <rguenther@suse.de>
4130
4131 * tree-vect-slp.c (vect_analyze_slp_instance): Set matches to true
4132 after successful discovery but forced split.
4133
4134 2020-10-12 Tom de Vries <tdevries@suse.de>
4135
4136 * config/nvptx/nvptx.opt (-msoft-stack-reserve-local): Rename to ...
4137 (-msoft-stack-reserve-local=): ... this.
4138
4139 2020-10-12 Richard Biener <rguenther@suse.de>
4140
4141 PR tree-optimization/97357
4142 * tree-ssa-loop-split.c (ssa_semi_invariant_p): Abnormal
4143 SSA names are not semi invariant.
4144
4145 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
4146
4147 * config/darwin.c (darwin_globalize_label): Make a subset of
4148 metadate symbols global.
4149 (darwin_label_is_anonymous_local_objc_name): Make a subset of
4150 metadata symbols linker-visible.
4151 (darwin_override_options): Track more target OS versions, make
4152 the next_runtime version track this (unless it's set to 0 for
4153 GNU runtime).
4154
4155 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
4156
4157 * config/darwin.c (darwin_globalize_label): Add protocol
4158 meta-data labels to the set that are global.
4159 (darwin_label_is_anonymous_local_objc_name): Arrange for meta-
4160 data start labels to be linker-visible.
4161
4162 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
4163
4164 * config/darwin.c (darwin_objc2_section): Allow for
4165 values > 1 to represent the next runtime.
4166 (darwin_objc1_section): Likewise.
4167 * config/darwin.h (NEXT_OBJC_RUNTIME): Set the default
4168 next runtime value to be 10.5.8.
4169
4170 2020-10-10 Jan Hubicka <jh@suse.cz>
4171
4172 * ipa-modref.c (modref_transform): Fix parameter map computation.
4173
4174 2020-10-10 Tom de Vries <tdevries@suse.de>
4175
4176 PR target/97318
4177 * config/nvptx/nvptx.c (nvptx_replace_dot): New function.
4178 (write_fn_proto, write_fn_proto_from_insn, nvptx_output_call_insn):
4179 Use nvptx_replace_dot.
4180
4181 2020-10-10 Tom de Vries <tdevries@suse.de>
4182
4183 * config/nvptx/nvptx.c (write_fn_proto_1): New function, factored out
4184 of ...
4185 (write_fn_proto): ... here. Return void.
4186
4187 2020-10-10 Jan Hubicka <jh@suse.cz>
4188
4189 * ipa-modref.c (remap_arguments): Check range in map access.
4190
4191 2020-10-10 Jan Hubicka <jh@suse.cz>
4192
4193 * ipa-modref.c (modref_transform): Use reserve instead of safe_grow.
4194
4195 2020-10-10 Jan Hubicka <jh@suse.cz>
4196
4197 * ipa-modref.c (modref_transform): Check that summaries are allocated.
4198
4199 2020-10-10 Jan Hubicka <jh@suse.cz>
4200
4201 * ipa-modref-tree.h (struct modref_tree): Revert prevoius change.
4202 * ipa-modref.c (analyze_function): Dump original summary.
4203 (modref_read): Only set IPA if streaming summary (not optimization
4204 summary).
4205 (remap_arguments): New function.
4206 (modref_transform): New function.
4207 (compute_parm_map): Fix offset calculation.
4208 (ipa_merge_modref_summary_after_inlining): Do not merge stores when
4209 they can be ignored.
4210
4211 2020-10-10 Jan Hubicka <jh@suse.cz>
4212
4213 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Improve debug dumps.
4214 (call_may_clobber_ref_p_1): Improve debug dumps.
4215
4216 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
4217
4218 * config/darwin.c (output_objc_section_asm_op): Avoid extra
4219 objective-c section switches unless the linker needs them.
4220
4221 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
4222
4223 * config/darwin-sections.def (objc2_data_section): New.
4224 (objc2_ivar_section): New.
4225 * config/darwin.c (darwin_objc2_section): Act on Protocol and
4226 ivar refs.
4227
4228 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
4229
4230 * config/darwin-sections.def (objc2_class_names_section,
4231 objc2_method_names_section, objc2_method_types_section): New
4232 * config/darwin.c (output_objc_section_asm_op): Output new
4233 sections. (darwin_objc2_section): Select new sections where
4234 used.
4235
4236 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
4237
4238 * config/darwin.c (darwin_emit_local_bss): Amend section names to
4239 match system tools. (darwin_output_aligned_bss): Likewise.
4240
4241 2020-10-10 Aldy Hernandez <aldyh@redhat.com>
4242
4243 PR tree-optimization/97359
4244 * gimple-range-gori.cc (logical_stmt_cache::cacheable_p): Only
4245 handle ANDs and ORs.
4246 (gori_compute_cache::cache_stmt): Adjust comment.
4247
4248 2020-10-09 Vladimir Makarov <vmakarov@redhat.com>
4249
4250 PR rtl-optimization/97313
4251 * lra-constraints.c (match_reload): Don't keep strict_low_part in
4252 reloads for non-registers.
4253
4254 2020-10-09 H.J. Lu <hjl.tools@gmail.com>
4255
4256 PR target/97148
4257 * config.gcc (extra_headers): Add x86gprintrin.h.
4258 * config/i386/adxintrin.h: Check _X86GPRINTRIN_H_INCLUDED for
4259 <x86gprintrin.h>.
4260 * config/i386/bmi2intrin.h: Likewise.
4261 * config/i386/bmiintrin.h: Likewise.
4262 * config/i386/cetintrin.h: Likewise.
4263 * config/i386/cldemoteintrin.h: Likewise.
4264 * config/i386/clflushoptintrin.h: Likewise.
4265 * config/i386/clwbintrin.h: Likewise.
4266 * config/i386/enqcmdintrin.h: Likewise.
4267 * config/i386/fxsrintrin.h: Likewise.
4268 * config/i386/ia32intrin.h: Likewise.
4269 * config/i386/lwpintrin.h: Likewise.
4270 * config/i386/lzcntintrin.h: Likewise.
4271 * config/i386/movdirintrin.h: Likewise.
4272 * config/i386/pconfigintrin.h: Likewise.
4273 * config/i386/pkuintrin.h: Likewise.
4274 * config/i386/rdseedintrin.h: Likewise.
4275 * config/i386/rtmintrin.h: Likewise.
4276 * config/i386/serializeintrin.h: Likewise.
4277 * config/i386/tbmintrin.h: Likewise.
4278 * config/i386/tsxldtrkintrin.h: Likewise.
4279 * config/i386/waitpkgintrin.h: Likewise.
4280 * config/i386/wbnoinvdintrin.h: Likewise.
4281 * config/i386/xsavecintrin.h: Likewise.
4282 * config/i386/xsaveintrin.h: Likewise.
4283 * config/i386/xsaveoptintrin.h: Likewise.
4284 * config/i386/xsavesintrin.h: Likewise.
4285 * config/i386/xtestintrin.h: Likewise.
4286 * config/i386/immintrin.h: Include <x86gprintrin.h> instead of
4287 <fxsrintrin.h>, <xsaveintrin.h>, <xsaveoptintrin.h>,
4288 <xsavesintrin.h>, <xsavecintrin.h>, <lzcntintrin.h>,
4289 <bmiintrin.h>, <bmi2intrin.h>, <xtestintrin.h>, <cetintrin.h>,
4290 <movdirintrin.h>, <sgxintrin.h, <pconfigintrin.h>,
4291 <waitpkgintrin.h>, <cldemoteintrin.h>, <enqcmdintrin.h>,
4292 <serializeintrin.h>, <tsxldtrkintrin.h>, <adxintrin.h>,
4293 <clwbintrin.h>, <clflushoptintrin.h>, <wbnoinvdintrin.h> and
4294 <pkuintrin.h>.
4295 (_wbinvd): Moved to config/i386/x86gprintrin.h.
4296 (_rdrand16_step): Likewise.
4297 (_rdrand32_step): Likewise.
4298 (_rdpid_u32): Likewise.
4299 (_readfsbase_u32): Likewise.
4300 (_readfsbase_u64): Likewise.
4301 (_readgsbase_u32): Likewise.
4302 (_readgsbase_u64): Likewise.
4303 (_writefsbase_u32): Likewise.
4304 (_writefsbase_u64): Likewise.
4305 (_writegsbase_u32): Likewise.
4306 (_writegsbase_u64): Likewise.
4307 (_rdrand64_step): Likewise.
4308 (_ptwrite64): Likewise.
4309 (_ptwrite32): Likewise.
4310 * config/i386/x86gprintrin.h: New file.
4311 * config/i386/x86intrin.h: Include <x86gprintrin.h>. Don't
4312 include <ia32intrin.h>, <lwpintrin.h>, <tbmintrin.h>,
4313 <popcntintrin.h>, <mwaitxintrin.h> and <clzerointrin.h>.
4314
4315 2020-10-09 Tom de Vries <tdevries@suse.de>
4316
4317 PR target/97348
4318 * config/nvptx/nvptx.h (ASM_SPEC): Also pass -m to nvptx-as if
4319 default is used.
4320 * config/nvptx/nvptx.opt (misa): Init with PTX_ISA_SM35.
4321
4322 2020-10-09 Richard Biener <rguenther@suse.de>
4323
4324 * doc/sourcebuild.texi (vect_masked_load): Document.
4325
4326 2020-10-09 Richard Biener <rguenther@suse.de>
4327
4328 PR tree-optimization/97334
4329 * tree-vect-slp.c (vect_build_slp_tree_1): Do not fatally
4330 fail lanes other than zero when BB vectorizing.
4331
4332 2020-10-09 Jan Hubicka <jh@suse.cz>
4333
4334 PR ipa/97292
4335 PR ipa/97335
4336 * ipa-modref-tree.h (copy_from): Drop summary in a
4337 clone.
4338
4339 2020-10-09 Richard Biener <rguenther@suse.de>
4340
4341 PR tree-optimization/97347
4342 * tree-vect-slp.c (vect_create_constant_vectors): Use
4343 edge insertion when inserting on the fallthru edge,
4344 appropriately insert at the start of BBs when inserting
4345 after PHIs.
4346
4347 2020-10-09 Andrew MacLeod <amacleod@redhat.com>
4348
4349 PR tree-optimization/97317
4350 * range-op.cc (operator_cast::op1_range): Handle casts where the precision
4351 of the RHS is only 1 greater than the precision of the LHS.
4352
4353 2020-10-09 Richard Biener <rguenther@suse.de>
4354
4355 * cgraphunit.c (expand_all_functions): Free tp_first_run_order.
4356 * ipa-modref.c (pass_ipa_modref::execute): Free order.
4357 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Free
4358 loop body.
4359 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Free
4360 data references upon failure.
4361 * tree-vect-loop.c (update_epilogue_loop_vinfo): Free BBs
4362 array of the original loop.
4363 * tree-vect-slp.c (vect_slp_bbs): Use an auto_vec for
4364 dataref_groups to release its memory.
4365
4366 2020-10-09 Jakub Jelinek <jakub@redhat.com>
4367
4368 PR tree-optimization/94801
4369 PR target/97312
4370 * vr-values.c (vr_values::extract_range_basic) <CASE_CFN_CLZ,
4371 CASE_CFN_CTZ>: When stmt is not an internal-fn call or
4372 C?Z_DEFINED_VALUE_AT_ZERO is not 2, assume argument is not zero
4373 and thus use [0, prec-1] range unless it can be further improved.
4374 For CTZ, don't update maxi from upper bound if it was previously prec.
4375 * gimple-range.cc (gimple_ranger::range_of_builtin_call) <CASE_CFN_CLZ,
4376 CASE_CFN_CTZ>: Likewise.
4377
4378 2020-10-09 Jakub Jelinek <jakub@redhat.com>
4379
4380 PR tree-optimization/97325
4381 * match.pd (FFS(nonzero) -> CTZ(nonzero) + 1): Cast argument to
4382 corresponding unsigned type.
4383
4384 2020-10-09 Richard Biener <rguenther@suse.de>
4385
4386 * tree-vect-slp.c (vect_create_constant_vectors): Properly insert
4387 after PHIs.
4388
4389 2020-10-08 Alexandre Oliva <oliva@adacore.com>
4390
4391 * builtins.c (mathfn_built_in_type): New.
4392 * builtins.h (mathfn_built_in_type): Declare.
4393 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use it to
4394 obtain the type expected by the intrinsic.
4395
4396 2020-10-08 Will Schmidt <will_schmidt@vnet.ibm.com>
4397
4398 * config/rs6000/rs6000-builtin.def (BU_P10_MISC_2): Rename
4399 to BU_P10_POWERPC64_MISC_2.
4400 CFUGED, CNTLZDM, CNTTZDM, PDEPD, PEXTD): Call renamed macro.
4401
4402 2020-10-08 Jan Hubicka <jh@suse.cz>
4403
4404 * tree-nrv.c (dest_safe_for_nrv_p): Disable tbaa in
4405 call_may_clobber_ref_p and ref_maybe_used_by_stmt_p.
4406 * tree-tailcall.c (find_tail_calls): Likewise.
4407 * tree-ssa-alias.c (call_may_clobber_ref_p): Add tbaa_p parameter.
4408 * tree-ssa-alias.h (call_may_clobber_ref_p): Update prototype.
4409 * tree-ssa-sccvn.c (vn_reference_lookup_3): Pass data->tbaa_p
4410 to call_may_clobber_ref_p_1.
4411
4412 2020-10-08 Mark Wielaard <mark@klomp.org>
4413
4414 * dwarf2out.c (dwarf2out_finish): Emit .file 0 entry when
4415 generating DWARF5 .debug_line table through gas.
4416
4417 2020-10-08 John Henning <john.henning@oracle.com>
4418
4419 PR other/97309
4420 * doc/invoke.texi: Improve documentation of
4421 -fallow-store-data-races.
4422
4423 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
4424
4425 PR target/96914
4426 * config/arm/arm_mve.h (__arm_vcvtnq_u32_f32): New.
4427
4428 2020-10-08 Martin Liska <mliska@suse.cz>
4429 Richard Biener <rguenther@suse.de>
4430
4431 * tree-vectorizer.h (_bb_vec_info::const_iterator): Remove.
4432 (_bb_vec_info::const_reverse_iterator): Likewise.
4433 (_bb_vec_info::region_stmts): Likewise.
4434 (_bb_vec_info::reverse_region_stmts): Likewise.
4435 (_bb_vec_info::_bb_vec_info): Adjust.
4436 (_bb_vec_info::bb): Remove.
4437 (_bb_vec_info::region_begin): Remove.
4438 (_bb_vec_info::region_end): Remove.
4439 (_bb_vec_info::bbs): New vector of BBs.
4440 (vect_slp_function): Declare.
4441 * tree-vect-patterns.c (vect_determine_precisions): Use
4442 regular stmt iteration.
4443 (vect_pattern_recog): Likewise.
4444 * tree-vect-slp.c: Include cfganal.h, tree-eh.h and tree-cfg.h.
4445 (vect_build_slp_tree_1): Properly refuse to vectorize
4446 volatile and throwing stmts.
4447 (vect_build_slp_tree_2): Pass group-size down to
4448 get_vectype_for_scalar_type.
4449 (_bb_vec_info::_bb_vec_info): Use regular stmt iteration,
4450 adjust for changed region specification.
4451 (_bb_vec_info::~_bb_vec_info): Likewise.
4452 (vect_slp_check_for_constructors): Likewise.
4453 (vect_slp_region): Likewise.
4454 (vect_slp_bbs): New worker operating on a vector of BBs.
4455 (vect_slp_bb): Wrap it.
4456 (vect_slp_function): New function splitting the function
4457 into multi-BB regions.
4458 (vect_create_constant_vectors): Handle the case of inserting
4459 after a throwing def.
4460 (vect_schedule_slp_instance): Adjust.
4461 * tree-vectorizer.c (vec_info::remove_stmt): Simplify again.
4462 (vec_info::insert_seq_on_entry): Adjust.
4463 (pass_slp_vectorize::execute): Also init PHIs. Call
4464 vect_slp_function.
4465
4466 2020-10-08 Richard Biener <rguenther@suse.de>
4467
4468 PR tree-optimization/97330
4469 * tree-ssa-sink.c (statement_sink_location): Avoid skipping
4470 PHIs when they dominate the insert location.
4471
4472 2020-10-08 Jan Hubicka <jh@suse.cz>
4473
4474 * ipa-modref.c (get_access): Fix handling of offsets.
4475 * tree-ssa-alias.c (modref_may_conflict): Watch for overflows.
4476
4477 2020-10-08 Martin Liska <mliska@suse.cz>
4478
4479 * dbgcnt.def (DEBUG_COUNTER): Add ipa_mod_ref debug counter.
4480 * tree-ssa-alias.c (modref_may_conflict): Handle the counter.
4481
4482 2020-10-08 Richard Biener <rguenther@suse.de>
4483
4484 * tree-vectorizer.c (try_vectorize_loop_1): Do not dump
4485 "basic block vectorized".
4486 (pass_slp_vectorize::execute): Likewise.
4487 * tree-vect-slp.c (vect_analyze_slp_instance): Avoid
4488 re-analyzing split single stmts.
4489
4490 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
4491
4492 PR target/96914
4493 * config/arm/arm_mve.h (vqrdmlashq_n_u8, vqrdmlashq_n_u16)
4494 (vqrdmlashq_n_u32, vqrdmlahq_n_u8, vqrdmlahq_n_u16)
4495 (vqrdmlahq_n_u32, vqdmlahq_n_u8, vqdmlahq_n_u16, vqdmlahq_n_u32)
4496 (vmlaldavaxq_p_u16, vmlaldavaxq_p_u32): Remove.
4497 * config/arm/arm_mve_builtins.def (vqrdmlashq_n_u, vqrdmlahq_n_u)
4498 (vqdmlahq_n_u, vmlaldavaxq_p_u): Remove.
4499 * config/arm/unspecs.md (VQDMLAHQ_N_U, VQRDMLAHQ_N_U)
4500 (VQRDMLASHQ_N_U)
4501 (VMLALDAVAXQ_P_U): Remove unspecs.
4502 * config/arm/iterators.md (VQDMLAHQ_N_U, VQRDMLAHQ_N_U)
4503 (VQRDMLASHQ_N_U, VMLALDAVAXQ_P_U): Remove attributes.
4504 (VQDMLAHQ_N, VQRDMLAHQ_N, VQRDMLASHQ_N, VMLALDAVAXQ_P): Remove
4505 unsigned variants from iterators.
4506 * config/arm/mve.md (mve_vqdmlahq_n_<supf><mode>)
4507 (mve_vqrdmlahq_n_<supf><mode>)
4508 (mve_vqrdmlashq_n_<supf><mode>, mve_vmlaldavaxq_p_<supf><mode>):
4509 Update comment.
4510
4511 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
4512
4513 PR target/96914
4514 * config/arm/arm_mve.h (vqdmlashq, vqdmlashq_m): Define.
4515 * config/arm/arm_mve_builtins.def (vqdmlashq_n_s)
4516 (vqdmlashq_m_n_s,): New.
4517 * config/arm/unspecs.md (VQDMLASHQ_N_S, VQDMLASHQ_M_N_S): New
4518 unspecs.
4519 * config/arm/iterators.md (VQDMLASHQ_N_S, VQDMLASHQ_M_N_S): New
4520 attributes.
4521 (VQDMLASHQ_N): New iterator.
4522 * config/arm/mve.md (mve_vqdmlashq_n_, mve_vqdmlashq_m_n_s): New
4523 patterns.
4524
4525 2020-10-08 Jakub Jelinek <jakub@redhat.com>
4526
4527 PR target/97322
4528 * config/arm/arm.c (arm_expand_divmod_libfunc): Pass mode instead of
4529 GET_MODE (op0) or GET_MODE (op1) to emit_library_call_value.
4530
4531 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
4532
4533 PR tree-optimization/97325
4534 * gimple-range.cc (gimple_ranger::range_of_builtin_call): Handle
4535 negative numbers in __builtin_ffs and __builtin_popcount.
4536
4537 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
4538
4539 PR tree-optimization/97315
4540 * range-op.cc (value_range_with_overflow): Change any
4541 non-overflow calculation in which both bounds are
4542 overflow/underflow to be undefined.
4543
4544 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
4545
4546 PR tree-optimization/97315
4547 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Removes the
4548 trap and instead annotates the listing.
4549
4550 2020-10-08 Jakub Jelinek <jakub@redhat.com>
4551
4552 PR sanitizer/97294
4553 * tree-cfg.c (move_block_to_fn): Call notice_special_calls on
4554 call stmts being moved into dest_cfun.
4555 * omp-low.c (lower_rec_input_clauses): Set cfun->calls_alloca when
4556 adding __builtin_alloca_with_align call without gimplification.
4557
4558 2020-10-07 Aldy Hernandez <aldyh@redhat.com>
4559
4560 * common.opt (-fevrp-mode): Rename and move...
4561 * params.opt (--param=evrp-mode): ...here.
4562 * gimple-range.h (DEBUG_RANGE_CACHE): Use param_evrp_mode instead
4563 of flag_evrp_mode.
4564 * gimple-ssa-evrp.c (rvrp_folder): Same.
4565 (hybrid_folder): Same.
4566 (execute_early_vrp): Same.
4567
4568 2020-10-07 Richard Biener <rguenther@suse.de>
4569
4570 PR tree-optimization/97307
4571 * tree-ssa-sink.c (statement_sink_location): Change heuristic
4572 for not skipping stores to look for virtual definitions
4573 rather than uses.
4574
4575 2020-10-07 Andrew MacLeod <amacleod@redhat.com>
4576
4577 * value-range.h (irange_allocator::allocate): Allocate in two hunks
4578 instead of using the variably-sized trailing array approach.
4579
4580 2020-10-07 David Malcolm <dmalcolm@redhat.com>
4581
4582 * doc/invoke.texi (-fdiagnostics-plain-output): Add
4583 -fdiagnostics-path-format=separate-events to list of
4584 options injected by -fdiagnostics-plain-output.
4585 * opts-common.c (decode_cmdline_options_to_array): Likewise.
4586
4587 2020-10-07 Martin Jambor <mjambor@suse.cz>
4588
4589 PR ipa/96394
4590 * ipa-prop.c (update_indirect_edges_after_inlining): Do not add
4591 resolved speculation edges to vector of new direct edges even in
4592 presence of multiple speculative direct edges for a single call.
4593
4594 2020-10-07 Andrew Stubbs <ams@codesourcery.com>
4595
4596 * config/gcn/gcn.md (unspec): Add UNSPEC_ADDPTR.
4597 (addptrdi3): Add SGPR alternative.
4598
4599 2020-10-07 Mark Wielaard <mark@klomp.org>
4600
4601 * dwarf2out.c (add_filepath_AT_string): New function.
4602 (asm_outputs_debug_line_str): Likewise.
4603 (add_filename_attribute): Likewise.
4604 (add_comp_dir_attribute): Call add_filepath_AT_string.
4605 (gen_compile_unit_die): Call add_filename_attribute for name.
4606 (init_sections_and_labels): Init debug_line_str_section when
4607 asm_outputs_debug_line_str return true.
4608 (dwarf2out_early_finish): Remove DW_AT_name and DW_AT_comp_dir
4609 hack and call add_filename_attribute for the remap_debug_filename.
4610
4611 2020-10-07 Jakub Jelinek <jakub@redhat.com>
4612
4613 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG,
4614 HAVE_AS_WORKING_DWARF_4_FLAG): New tests.
4615 * gcc.c (ASM_DEBUG_DWARF_OPTION): Define.
4616 (ASM_DEBUG_SPEC): Use ASM_DEBUG_DWARF_OPTION instead of
4617 "--gdwarf2". Use %{cond:opt1;:opt2} style.
4618 (ASM_DEBUG_OPTION_DWARF_OPT): Define.
4619 (ASM_DEBUG_OPTION_SPEC): Define.
4620 (asm_debug_option): New variable.
4621 (asm_options): Add "%(asm_debug_option)".
4622 (static_specs): Add asm_debug_option entry.
4623 (static_spec_functions): Add dwarf-version-gt.
4624 (debug_level_greater_than_spec_func): New function.
4625 * config/darwin.h (ASM_DEBUG_OPTION_SPEC): Define.
4626 * config/darwin9.h (ASM_DEBUG_OPTION_SPEC): Redefine.
4627 * config.in: Regenerated.
4628 * configure: Regenerated.
4629
4630 2020-10-07 Jakub Jelinek <jakub@redhat.com>
4631
4632 PR bootstrap/97305
4633 * optc-save-gen.awk: Don't declare mask variable if explicit_mask
4634 array is not present.
4635
4636 2020-10-07 Jakub Jelinek <jakub@redhat.com>
4637
4638 * omp-expand.c (expand_omp_simd): Don't emit MIN_EXPR and PLUS_EXPR
4639 at the end of entry_bb and innermost init_bb, instead force arguments
4640 for MIN_EXPR into temporaries in both cases and jump to a new bb that
4641 performs MIN_EXPR and PLUS_EXPR.
4642
4643 2020-10-07 Tom de Vries <tdevries@suse.de>
4644
4645 * tree-ssa-loop-ch.c (ch_base::copy_headers): Add missing NULL test
4646 for dump_file.
4647
4648 2020-10-06 Andrew MacLeod <amacleod@redhat.com>
4649
4650 * flag-types.h (enum evrp_mode): New enumerated type EVRP_MODE_*.
4651 * common.opt (fevrp-mode): New undocumented flag.
4652 * gimple-ssa-evrp.c: Include gimple-range.h
4653 (class rvrp_folder): EVRP folding using ranger exclusively.
4654 (rvrp_folder::rvrp_folder): New.
4655 (rvrp_folder::~rvrp_folder): New.
4656 (rvrp_folder::value_of_expr): New. Use rangers value_of_expr.
4657 (rvrp_folder::value_on_edge): New. Use rangers value_on_edge.
4658 (rvrp_folder::value_of_Stmt): New. Use rangers value_of_stmt.
4659 (rvrp_folder::fold_stmt): New. Call the simplifier.
4660 (class hybrid_folder): EVRP folding using both engines.
4661 (hybrid_folder::hybrid_folder): New.
4662 (hybrid_folder::~hybrid_folder): New.
4663 (hybrid_folder::fold_stmt): New. Simplify with one engne, then the
4664 other.
4665 (hybrid_folder::value_of_expr): New. Use both value routines.
4666 (hybrid_folder::value_on_edge): New. Use both value routines.
4667 (hybrid_folder::value_of_stmt): New. Use both value routines.
4668 (hybrid_folder::choose_value): New. Choose between range_analzyer and
4669 rangers values.
4670 (execute_early_vrp): Choose a folder based on flag_evrp_mode.
4671 * vr-values.c (simplify_using_ranges::fold_cond): Try range_of_stmt
4672 first to see if it returns a value.
4673 (simplify_using_ranges::simplify_switch_using_ranges): Return true if
4674 any changes were made to the switch.
4675
4676 2020-10-06 Andrew MacLeod <amacleod@redhat.com>
4677
4678 * Makefile.in (OBJS): Add gimple-range*.o.
4679 * gimple-range.h: New file.
4680 * gimple-range.cc: New file.
4681 * gimple-range-cache.h: New file.
4682 * gimple-range-cache.cc: New file.
4683 * gimple-range-edge.h: New file.
4684 * gimple-range-edge.cc: New file.
4685 * gimple-range-gori.h: New file.
4686 * gimple-range-gori.cc: New file.
4687
4688 2020-10-06 Dennis Zhang <dennis.zhang@arm.com>
4689
4690 * config/arm/arm.c (arm_preferred_simd_mode): Enable MVE SIMD modes.
4691
4692 2020-10-06 Tom de Vries <tdevries@suse.de>
4693
4694 PR middle-end/90861
4695 * gimplify.c (gimplify_bind_expr): Handle lookup in
4696 oacc_declare_returns using key with decl-expr.
4697
4698 2020-10-06 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4699
4700 * config/arm/iterators.md (MVE_types): Move mode iterator from mve.md to
4701 iterators.md.
4702 (MVE_VLD_ST): Likewise.
4703 (MVE_0): Likewise.
4704 (MVE_1): Likewise.
4705 (MVE_3): Likewise.
4706 (MVE_2): Likewise.
4707 (MVE_5): Likewise.
4708 (MVE_6): Likewise.
4709 (MVE_CNVT): Move mode attribute iterator from mve.md to iterators.md.
4710 (MVE_LANES): Likewise.
4711 (MVE_constraint): Likewise.
4712 (MVE_constraint1): Likewise.
4713 (MVE_constraint2): Likewise.
4714 (MVE_constraint3): Likewise.
4715 (MVE_pred): Likewise.
4716 (MVE_pred1): Likewise.
4717 (MVE_pred2): Likewise.
4718 (MVE_pred3): Likewise.
4719 (MVE_B_ELEM): Likewise.
4720 (MVE_H_ELEM): Likewise.
4721 (V_sz_elem1): Likewise.
4722 (V_extr_elem): Likewise.
4723 (earlyclobber_32): Likewise.
4724 (supf): Move int attribute from mve.md to iterators.md.
4725 (mode1): Likewise.
4726 (VCVTQ_TO_F): Move int iterator from mve.md to iterators.md.
4727 (VMVNQ_N): Likewise.
4728 (VREV64Q): Likewise.
4729 (VCVTQ_FROM_F): Likewise.
4730 (VREV16Q): Likewise.
4731 (VCVTAQ): Likewise.
4732 (VMVNQ): Likewise.
4733 (VDUPQ_N): Likewise.
4734 (VCLZQ): Likewise.
4735 (VADDVQ): Likewise.
4736 (VREV32Q): Likewise.
4737 (VMOVLBQ): Likewise.
4738 (VMOVLTQ): Likewise.
4739 (VCVTPQ): Likewise.
4740 (VCVTNQ): Likewise.
4741 (VCVTMQ): Likewise.
4742 (VADDLVQ): Likewise.
4743 (VCTPQ): Likewise.
4744 (VCTPQ_M): Likewise.
4745 (VCVTQ_N_TO_F): Likewise.
4746 (VCREATEQ): Likewise.
4747 (VSHRQ_N): Likewise.
4748 (VCVTQ_N_FROM_F): Likewise.
4749 (VADDLVQ_P): Likewise.
4750 (VCMPNEQ): Likewise.
4751 (VSHLQ): Likewise.
4752 (VABDQ): Likewise.
4753 (VADDQ_N): Likewise.
4754 (VADDVAQ): Likewise.
4755 (VADDVQ_P): Likewise.
4756 (VANDQ): Likewise.
4757 (VBICQ): Likewise.
4758 (VBRSRQ_N): Likewise.
4759 (VCADDQ_ROT270): Likewise.
4760 (VCADDQ_ROT90): Likewise.
4761 (VCMPEQQ): Likewise.
4762 (VCMPEQQ_N): Likewise.
4763 (VCMPNEQ_N): Likewise.
4764 (VEORQ): Likewise.
4765 (VHADDQ): Likewise.
4766 (VHADDQ_N): Likewise.
4767 (VHSUBQ): Likewise.
4768 (VHSUBQ_N): Likewise.
4769 (VMAXQ): Likewise.
4770 (VMAXVQ): Likewise.
4771 (VMINQ): Likewise.
4772 (VMINVQ): Likewise.
4773 (VMLADAVQ): Likewise.
4774 (VMULHQ): Likewise.
4775 (VMULLBQ_INT): Likewise.
4776 (VMULLTQ_INT): Likewise.
4777 (VMULQ): Likewise.
4778 (VMULQ_N): Likewise.
4779 (VORNQ): Likewise.
4780 (VORRQ): Likewise.
4781 (VQADDQ): Likewise.
4782 (VQADDQ_N): Likewise.
4783 (VQRSHLQ): Likewise.
4784 (VQRSHLQ_N): Likewise.
4785 (VQSHLQ): Likewise.
4786 (VQSHLQ_N): Likewise.
4787 (VQSHLQ_R): Likewise.
4788 (VQSUBQ): Likewise.
4789 (VQSUBQ_N): Likewise.
4790 (VRHADDQ): Likewise.
4791 (VRMULHQ): Likewise.
4792 (VRSHLQ): Likewise.
4793 (VRSHLQ_N): Likewise.
4794 (VRSHRQ_N): Likewise.
4795 (VSHLQ_N): Likewise.
4796 (VSHLQ_R): Likewise.
4797 (VSUBQ): Likewise.
4798 (VSUBQ_N): Likewise.
4799 (VADDLVAQ): Likewise.
4800 (VBICQ_N): Likewise.
4801 (VMLALDAVQ): Likewise.
4802 (VMLALDAVXQ): Likewise.
4803 (VMOVNBQ): Likewise.
4804 (VMOVNTQ): Likewise.
4805 (VORRQ_N): Likewise.
4806 (VQMOVNBQ): Likewise.
4807 (VQMOVNTQ): Likewise.
4808 (VSHLLBQ_N): Likewise.
4809 (VSHLLTQ_N): Likewise.
4810 (VRMLALDAVHQ): Likewise.
4811 (VBICQ_M_N): Likewise.
4812 (VCVTAQ_M): Likewise.
4813 (VCVTQ_M_TO_F): Likewise.
4814 (VQRSHRNBQ_N): Likewise.
4815 (VABAVQ): Likewise.
4816 (VSHLCQ): Likewise.
4817 (VRMLALDAVHAQ): Likewise.
4818 (VADDVAQ_P): Likewise.
4819 (VCLZQ_M): Likewise.
4820 (VCMPEQQ_M_N): Likewise.
4821 (VCMPEQQ_M): Likewise.
4822 (VCMPNEQ_M_N): Likewise.
4823 (VCMPNEQ_M): Likewise.
4824 (VDUPQ_M_N): Likewise.
4825 (VMAXVQ_P): Likewise.
4826 (VMINVQ_P): Likewise.
4827 (VMLADAVAQ): Likewise.
4828 (VMLADAVQ_P): Likewise.
4829 (VMLAQ_N): Likewise.
4830 (VMLASQ_N): Likewise.
4831 (VMVNQ_M): Likewise.
4832 (VPSELQ): Likewise.
4833 (VQDMLAHQ_N): Likewise.
4834 (VQRDMLAHQ_N): Likewise.
4835 (VQRDMLASHQ_N): Likewise.
4836 (VQRSHLQ_M_N): Likewise.
4837 (VQSHLQ_M_R): Likewise.
4838 (VREV64Q_M): Likewise.
4839 (VRSHLQ_M_N): Likewise.
4840 (VSHLQ_M_R): Likewise.
4841 (VSLIQ_N): Likewise.
4842 (VSRIQ_N): Likewise.
4843 (VMLALDAVQ_P): Likewise.
4844 (VQMOVNBQ_M): Likewise.
4845 (VMOVLTQ_M): Likewise.
4846 (VMOVNBQ_M): Likewise.
4847 (VRSHRNTQ_N): Likewise.
4848 (VORRQ_M_N): Likewise.
4849 (VREV32Q_M): Likewise.
4850 (VREV16Q_M): Likewise.
4851 (VQRSHRNTQ_N): Likewise.
4852 (VMOVNTQ_M): Likewise.
4853 (VMOVLBQ_M): Likewise.
4854 (VMLALDAVAQ): Likewise.
4855 (VQSHRNBQ_N): Likewise.
4856 (VSHRNBQ_N): Likewise.
4857 (VRSHRNBQ_N): Likewise.
4858 (VMLALDAVXQ_P): Likewise.
4859 (VQMOVNTQ_M): Likewise.
4860 (VMVNQ_M_N): Likewise.
4861 (VQSHRNTQ_N): Likewise.
4862 (VMLALDAVAXQ): Likewise.
4863 (VSHRNTQ_N): Likewise.
4864 (VCVTMQ_M): Likewise.
4865 (VCVTNQ_M): Likewise.
4866 (VCVTPQ_M): Likewise.
4867 (VCVTQ_M_N_FROM_F): Likewise.
4868 (VCVTQ_M_FROM_F): Likewise.
4869 (VRMLALDAVHQ_P): Likewise.
4870 (VADDLVAQ_P): Likewise.
4871 (VABAVQ_P): Likewise.
4872 (VSHLQ_M): Likewise.
4873 (VSRIQ_M_N): Likewise.
4874 (VSUBQ_M): Likewise.
4875 (VCVTQ_M_N_TO_F): Likewise.
4876 (VHSUBQ_M): Likewise.
4877 (VSLIQ_M_N): Likewise.
4878 (VRSHLQ_M): Likewise.
4879 (VMINQ_M): Likewise.
4880 (VMULLBQ_INT_M): Likewise.
4881 (VMULHQ_M): Likewise.
4882 (VMULQ_M): Likewise.
4883 (VHSUBQ_M_N): Likewise.
4884 (VHADDQ_M_N): Likewise.
4885 (VORRQ_M): Likewise.
4886 (VRMULHQ_M): Likewise.
4887 (VQADDQ_M): Likewise.
4888 (VRSHRQ_M_N): Likewise.
4889 (VQSUBQ_M_N): Likewise.
4890 (VADDQ_M): Likewise.
4891 (VORNQ_M): Likewise.
4892 (VRHADDQ_M): Likewise.
4893 (VQSHLQ_M): Likewise.
4894 (VANDQ_M): Likewise.
4895 (VBICQ_M): Likewise.
4896 (VSHLQ_M_N): Likewise.
4897 (VCADDQ_ROT270_M): Likewise.
4898 (VQRSHLQ_M): Likewise.
4899 (VQADDQ_M_N): Likewise.
4900 (VADDQ_M_N): Likewise.
4901 (VMAXQ_M): Likewise.
4902 (VQSUBQ_M): Likewise.
4903 (VMLASQ_M_N): Likewise.
4904 (VMLADAVAQ_P): Likewise.
4905 (VBRSRQ_M_N): Likewise.
4906 (VMULQ_M_N): Likewise.
4907 (VCADDQ_ROT90_M): Likewise.
4908 (VMULLTQ_INT_M): Likewise.
4909 (VEORQ_M): Likewise.
4910 (VSHRQ_M_N): Likewise.
4911 (VSUBQ_M_N): Likewise.
4912 (VHADDQ_M): Likewise.
4913 (VABDQ_M): Likewise.
4914 (VMLAQ_M_N): Likewise.
4915 (VQSHLQ_M_N): Likewise.
4916 (VMLALDAVAQ_P): Likewise.
4917 (VMLALDAVAXQ_P): Likewise.
4918 (VQRSHRNBQ_M_N): Likewise.
4919 (VQRSHRNTQ_M_N): Likewise.
4920 (VQSHRNBQ_M_N): Likewise.
4921 (VQSHRNTQ_M_N): Likewise.
4922 (VRSHRNBQ_M_N): Likewise.
4923 (VRSHRNTQ_M_N): Likewise.
4924 (VSHLLBQ_M_N): Likewise.
4925 (VSHLLTQ_M_N): Likewise.
4926 (VSHRNBQ_M_N): Likewise.
4927 (VSHRNTQ_M_N): Likewise.
4928 (VSTRWSBQ): Likewise.
4929 (VSTRBSOQ): Likewise.
4930 (VSTRBQ): Likewise.
4931 (VLDRBGOQ): Likewise.
4932 (VLDRBQ): Likewise.
4933 (VLDRWGBQ): Likewise.
4934 (VLD1Q): Likewise.
4935 (VLDRHGOQ): Likewise.
4936 (VLDRHGSOQ): Likewise.
4937 (VLDRHQ): Likewise.
4938 (VLDRWQ): Likewise.
4939 (VLDRDGBQ): Likewise.
4940 (VLDRDGOQ): Likewise.
4941 (VLDRDGSOQ): Likewise.
4942 (VLDRWGOQ): Likewise.
4943 (VLDRWGSOQ): Likewise.
4944 (VST1Q): Likewise.
4945 (VSTRHSOQ): Likewise.
4946 (VSTRHSSOQ): Likewise.
4947 (VSTRHQ): Likewise.
4948 (VSTRWQ): Likewise.
4949 (VSTRDSBQ): Likewise.
4950 (VSTRDSOQ): Likewise.
4951 (VSTRDSSOQ): Likewise.
4952 (VSTRWSOQ): Likewise.
4953 (VSTRWSSOQ): Likewise.
4954 (VSTRWSBWBQ): Likewise.
4955 (VLDRWGBWBQ): Likewise.
4956 (VSTRDSBWBQ): Likewise.
4957 (VLDRDGBWBQ): Likewise.
4958 (VADCIQ): Likewise.
4959 (VADCIQ_M): Likewise.
4960 (VSBCQ): Likewise.
4961 (VSBCQ_M): Likewise.
4962 (VSBCIQ): Likewise.
4963 (VSBCIQ_M): Likewise.
4964 (VADCQ): Likewise.
4965 (VADCQ_M): Likewise.
4966 (UQRSHLLQ): Likewise.
4967 (SQRSHRLQ): Likewise.
4968 (VSHLCQ_M): Likewise.
4969 * config/arm/mve.md (MVE_types): Move mode iterator to iterators.md from mve.md.
4970 (MVE_VLD_ST): Likewise.
4971 (MVE_0): Likewise.
4972 (MVE_1): Likewise.
4973 (MVE_3): Likewise.
4974 (MVE_2): Likewise.
4975 (MVE_5): Likewise.
4976 (MVE_6): Likewise.
4977 (MVE_CNVT): Move mode attribute iterator to iterators.md from mve.md.
4978 (MVE_LANES): Likewise.
4979 (MVE_constraint): Likewise.
4980 (MVE_constraint1): Likewise.
4981 (MVE_constraint2): Likewise.
4982 (MVE_constraint3): Likewise.
4983 (MVE_pred): Likewise.
4984 (MVE_pred1): Likewise.
4985 (MVE_pred2): Likewise.
4986 (MVE_pred3): Likewise.
4987 (MVE_B_ELEM): Likewise.
4988 (MVE_H_ELEM): Likewise.
4989 (V_sz_elem1): Likewise.
4990 (V_extr_elem): Likewise.
4991 (earlyclobber_32): Likewise.
4992 (supf): Move int attribute to iterators.md from mve.md.
4993 (mode1): Likewise.
4994 (VCVTQ_TO_F): Move int iterator to iterators.md from mve.md.
4995 (VMVNQ_N): Likewise.
4996 (VREV64Q): Likewise.
4997 (VCVTQ_FROM_F): Likewise.
4998 (VREV16Q): Likewise.
4999 (VCVTAQ): Likewise.
5000 (VMVNQ): Likewise.
5001 (VDUPQ_N): Likewise.
5002 (VCLZQ): Likewise.
5003 (VADDVQ): Likewise.
5004 (VREV32Q): Likewise.
5005 (VMOVLBQ): Likewise.
5006 (VMOVLTQ): Likewise.
5007 (VCVTPQ): Likewise.
5008 (VCVTNQ): Likewise.
5009 (VCVTMQ): Likewise.
5010 (VADDLVQ): Likewise.
5011 (VCTPQ): Likewise.
5012 (VCTPQ_M): Likewise.
5013 (VCVTQ_N_TO_F): Likewise.
5014 (VCREATEQ): Likewise.
5015 (VSHRQ_N): Likewise.
5016 (VCVTQ_N_FROM_F): Likewise.
5017 (VADDLVQ_P): Likewise.
5018 (VCMPNEQ): Likewise.
5019 (VSHLQ): Likewise.
5020 (VABDQ): Likewise.
5021 (VADDQ_N): Likewise.
5022 (VADDVAQ): Likewise.
5023 (VADDVQ_P): Likewise.
5024 (VANDQ): Likewise.
5025 (VBICQ): Likewise.
5026 (VBRSRQ_N): Likewise.
5027 (VCADDQ_ROT270): Likewise.
5028 (VCADDQ_ROT90): Likewise.
5029 (VCMPEQQ): Likewise.
5030 (VCMPEQQ_N): Likewise.
5031 (VCMPNEQ_N): Likewise.
5032 (VEORQ): Likewise.
5033 (VHADDQ): Likewise.
5034 (VHADDQ_N): Likewise.
5035 (VHSUBQ): Likewise.
5036 (VHSUBQ_N): Likewise.
5037 (VMAXQ): Likewise.
5038 (VMAXVQ): Likewise.
5039 (VMINQ): Likewise.
5040 (VMINVQ): Likewise.
5041 (VMLADAVQ): Likewise.
5042 (VMULHQ): Likewise.
5043 (VMULLBQ_INT): Likewise.
5044 (VMULLTQ_INT): Likewise.
5045 (VMULQ): Likewise.
5046 (VMULQ_N): Likewise.
5047 (VORNQ): Likewise.
5048 (VORRQ): Likewise.
5049 (VQADDQ): Likewise.
5050 (VQADDQ_N): Likewise.
5051 (VQRSHLQ): Likewise.
5052 (VQRSHLQ_N): Likewise.
5053 (VQSHLQ): Likewise.
5054 (VQSHLQ_N): Likewise.
5055 (VQSHLQ_R): Likewise.
5056 (VQSUBQ): Likewise.
5057 (VQSUBQ_N): Likewise.
5058 (VRHADDQ): Likewise.
5059 (VRMULHQ): Likewise.
5060 (VRSHLQ): Likewise.
5061 (VRSHLQ_N): Likewise.
5062 (VRSHRQ_N): Likewise.
5063 (VSHLQ_N): Likewise.
5064 (VSHLQ_R): Likewise.
5065 (VSUBQ): Likewise.
5066 (VSUBQ_N): Likewise.
5067 (VADDLVAQ): Likewise.
5068 (VBICQ_N): Likewise.
5069 (VMLALDAVQ): Likewise.
5070 (VMLALDAVXQ): Likewise.
5071 (VMOVNBQ): Likewise.
5072 (VMOVNTQ): Likewise.
5073 (VORRQ_N): Likewise.
5074 (VQMOVNBQ): Likewise.
5075 (VQMOVNTQ): Likewise.
5076 (VSHLLBQ_N): Likewise.
5077 (VSHLLTQ_N): Likewise.
5078 (VRMLALDAVHQ): Likewise.
5079 (VBICQ_M_N): Likewise.
5080 (VCVTAQ_M): Likewise.
5081 (VCVTQ_M_TO_F): Likewise.
5082 (VQRSHRNBQ_N): Likewise.
5083 (VABAVQ): Likewise.
5084 (VSHLCQ): Likewise.
5085 (VRMLALDAVHAQ): Likewise.
5086 (VADDVAQ_P): Likewise.
5087 (VCLZQ_M): Likewise.
5088 (VCMPEQQ_M_N): Likewise.
5089 (VCMPEQQ_M): Likewise.
5090 (VCMPNEQ_M_N): Likewise.
5091 (VCMPNEQ_M): Likewise.
5092 (VDUPQ_M_N): Likewise.
5093 (VMAXVQ_P): Likewise.
5094 (VMINVQ_P): Likewise.
5095 (VMLADAVAQ): Likewise.
5096 (VMLADAVQ_P): Likewise.
5097 (VMLAQ_N): Likewise.
5098 (VMLASQ_N): Likewise.
5099 (VMVNQ_M): Likewise.
5100 (VPSELQ): Likewise.
5101 (VQDMLAHQ_N): Likewise.
5102 (VQRDMLAHQ_N): Likewise.
5103 (VQRDMLASHQ_N): Likewise.
5104 (VQRSHLQ_M_N): Likewise.
5105 (VQSHLQ_M_R): Likewise.
5106 (VREV64Q_M): Likewise.
5107 (VRSHLQ_M_N): Likewise.
5108 (VSHLQ_M_R): Likewise.
5109 (VSLIQ_N): Likewise.
5110 (VSRIQ_N): Likewise.
5111 (VMLALDAVQ_P): Likewise.
5112 (VQMOVNBQ_M): Likewise.
5113 (VMOVLTQ_M): Likewise.
5114 (VMOVNBQ_M): Likewise.
5115 (VRSHRNTQ_N): Likewise.
5116 (VORRQ_M_N): Likewise.
5117 (VREV32Q_M): Likewise.
5118 (VREV16Q_M): Likewise.
5119 (VQRSHRNTQ_N): Likewise.
5120 (VMOVNTQ_M): Likewise.
5121 (VMOVLBQ_M): Likewise.
5122 (VMLALDAVAQ): Likewise.
5123 (VQSHRNBQ_N): Likewise.
5124 (VSHRNBQ_N): Likewise.
5125 (VRSHRNBQ_N): Likewise.
5126 (VMLALDAVXQ_P): Likewise.
5127 (VQMOVNTQ_M): Likewise.
5128 (VMVNQ_M_N): Likewise.
5129 (VQSHRNTQ_N): Likewise.
5130 (VMLALDAVAXQ): Likewise.
5131 (VSHRNTQ_N): Likewise.
5132 (VCVTMQ_M): Likewise.
5133 (VCVTNQ_M): Likewise.
5134 (VCVTPQ_M): Likewise.
5135 (VCVTQ_M_N_FROM_F): Likewise.
5136 (VCVTQ_M_FROM_F): Likewise.
5137 (VRMLALDAVHQ_P): Likewise.
5138 (VADDLVAQ_P): Likewise.
5139 (VABAVQ_P): Likewise.
5140 (VSHLQ_M): Likewise.
5141 (VSRIQ_M_N): Likewise.
5142 (VSUBQ_M): Likewise.
5143 (VCVTQ_M_N_TO_F): Likewise.
5144 (VHSUBQ_M): Likewise.
5145 (VSLIQ_M_N): Likewise.
5146 (VRSHLQ_M): Likewise.
5147 (VMINQ_M): Likewise.
5148 (VMULLBQ_INT_M): Likewise.
5149 (VMULHQ_M): Likewise.
5150 (VMULQ_M): Likewise.
5151 (VHSUBQ_M_N): Likewise.
5152 (VHADDQ_M_N): Likewise.
5153 (VORRQ_M): Likewise.
5154 (VRMULHQ_M): Likewise.
5155 (VQADDQ_M): Likewise.
5156 (VRSHRQ_M_N): Likewise.
5157 (VQSUBQ_M_N): Likewise.
5158 (VADDQ_M): Likewise.
5159 (VORNQ_M): Likewise.
5160 (VRHADDQ_M): Likewise.
5161 (VQSHLQ_M): Likewise.
5162 (VANDQ_M): Likewise.
5163 (VBICQ_M): Likewise.
5164 (VSHLQ_M_N): Likewise.
5165 (VCADDQ_ROT270_M): Likewise.
5166 (VQRSHLQ_M): Likewise.
5167 (VQADDQ_M_N): Likewise.
5168 (VADDQ_M_N): Likewise.
5169 (VMAXQ_M): Likewise.
5170 (VQSUBQ_M): Likewise.
5171 (VMLASQ_M_N): Likewise.
5172 (VMLADAVAQ_P): Likewise.
5173 (VBRSRQ_M_N): Likewise.
5174 (VMULQ_M_N): Likewise.
5175 (VCADDQ_ROT90_M): Likewise.
5176 (VMULLTQ_INT_M): Likewise.
5177 (VEORQ_M): Likewise.
5178 (VSHRQ_M_N): Likewise.
5179 (VSUBQ_M_N): Likewise.
5180 (VHADDQ_M): Likewise.
5181 (VABDQ_M): Likewise.
5182 (VMLAQ_M_N): Likewise.
5183 (VQSHLQ_M_N): Likewise.
5184 (VMLALDAVAQ_P): Likewise.
5185 (VMLALDAVAXQ_P): Likewise.
5186 (VQRSHRNBQ_M_N): Likewise.
5187 (VQRSHRNTQ_M_N): Likewise.
5188 (VQSHRNBQ_M_N): Likewise.
5189 (VQSHRNTQ_M_N): Likewise.
5190 (VRSHRNBQ_M_N): Likewise.
5191 (VRSHRNTQ_M_N): Likewise.
5192 (VSHLLBQ_M_N): Likewise.
5193 (VSHLLTQ_M_N): Likewise.
5194 (VSHRNBQ_M_N): Likewise.
5195 (VSHRNTQ_M_N): Likewise.
5196 (VSTRWSBQ): Likewise.
5197 (VSTRBSOQ): Likewise.
5198 (VSTRBQ): Likewise.
5199 (VLDRBGOQ): Likewise.
5200 (VLDRBQ): Likewise.
5201 (VLDRWGBQ): Likewise.
5202 (VLD1Q): Likewise.
5203 (VLDRHGOQ): Likewise.
5204 (VLDRHGSOQ): Likewise.
5205 (VLDRHQ): Likewise.
5206 (VLDRWQ): Likewise.
5207 (VLDRDGBQ): Likewise.
5208 (VLDRDGOQ): Likewise.
5209 (VLDRDGSOQ): Likewise.
5210 (VLDRWGOQ): Likewise.
5211 (VLDRWGSOQ): Likewise.
5212 (VST1Q): Likewise.
5213 (VSTRHSOQ): Likewise.
5214 (VSTRHSSOQ): Likewise.
5215 (VSTRHQ): Likewise.
5216 (VSTRWQ): Likewise.
5217 (VSTRDSBQ): Likewise.
5218 (VSTRDSOQ): Likewise.
5219 (VSTRDSSOQ): Likewise.
5220 (VSTRWSOQ): Likewise.
5221 (VSTRWSSOQ): Likewise.
5222 (VSTRWSBWBQ): Likewise.
5223 (VLDRWGBWBQ): Likewise.
5224 (VSTRDSBWBQ): Likewise.
5225 (VLDRDGBWBQ): Likewise.
5226 (VADCIQ): Likewise.
5227 (VADCIQ_M): Likewise.
5228 (VSBCQ): Likewise.
5229 (VSBCQ_M): Likewise.
5230 (VSBCIQ): Likewise.
5231 (VSBCIQ_M): Likewise.
5232 (VADCQ): Likewise.
5233 (VADCQ_M): Likewise.
5234 (UQRSHLLQ): Likewise.
5235 (SQRSHRLQ): Likewise.
5236 (VSHLCQ_M): Likewise.
5237 (define_c_enum "unspec"): Move MVE enumerator to unspecs.md from mve.md.
5238 * config/arm/unspecs.md (define_c_enum "unspec"): Move MVE enumerator from
5239 mve.md to unspecs.md.
5240
5241 2020-10-06 Martin Liska <mliska@suse.cz>
5242
5243 * common.opt: Remove -fdbg-cnt-list from deferred options.
5244 * dbgcnt.c (dbg_cnt_set_limit_by_index): Make a copy
5245 to original_limits.
5246 (dbg_cnt_list_all_counters): Print also current counter value
5247 and print to stderr.
5248 * opts-global.c (handle_common_deferred_options): Do not handle
5249 -fdbg-cnt-list.
5250 * opts.c (common_handle_option): Likewise.
5251 * toplev.c (finalize): Handle it after compilation here.
5252
5253 2020-10-06 Martin Liska <mliska@suse.cz>
5254
5255 * dbgcnt.c (dbg_cnt): Report also upper limit.
5256
5257 2020-10-06 Tom de Vries <tdevries@suse.de>
5258
5259 * tracer.c (count_insns): Rename to ...
5260 (analyze_bb): ... this.
5261 (cache_can_duplicate_bb_p, cached_can_duplicate_bb_p): New function.
5262 (ignore_bb_p): Use cached_can_duplicate_bb_p.
5263 (tail_duplicate): Call cache_can_duplicate_bb_p.
5264
5265 2020-10-06 Tom de Vries <tdevries@suse.de>
5266
5267 * tracer.c (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
5268 (can_duplicate_bb_p): New function, factored out of ...
5269 (ignore_bb_p): ... here.
5270
5271 2020-10-06 Jakub Jelinek <jakub@redhat.com>
5272
5273 PR rtl-optimization/97282
5274 * tree-ssa-math-opts.c (divmod_candidate_p): Don't return false for
5275 constant op2 if it is not a power of two and the type has precision
5276 larger than HOST_BITS_PER_WIDE_INT or BITS_PER_WORD.
5277 * internal-fn.c (contains_call_div_mod): New function.
5278 (expand_DIVMOD): If last argument is a constant, try to expand it as
5279 TRUNC_DIV_EXPR followed by TRUNC_MOD_EXPR, but if the sequence
5280 contains any calls or {,U}{DIV,MOD} rtxes, throw it away and use
5281 divmod optab or divmod libfunc.
5282
5283 2020-10-06 Aldy Hernandez <aldyh@redhat.com>
5284
5285 * value-range.h (irange_allocator::allocate): Increase
5286 newir storage by one.
5287
5288 2020-10-06 Jakub Jelinek <jakub@redhat.com>
5289
5290 PR middle-end/97289
5291 * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Only follow
5292 node->alias_target if it is a FUNCTION_DECL.
5293
5294 2020-10-06 Joe Ramsay <joe.ramsay@arm.com>
5295
5296 * config/arm/arm-cpus.in:
5297 (ALL_FPU_INTERNAL): Remove vfp_base.
5298 (VFPv2): Remove vfp_base.
5299 (MVE): Remove vfp_base.
5300 (vfp_base): Redefine as implied bit dependent on MVE or FP
5301 (cortex-m55): Add flags to disable MVE, MVE FP, FP and DSP extensions.
5302 * config/arm/arm.c (arm_configure_build_target): Add implied bits to ISA.
5303 * config/arm/parsecpu.awk:
5304 (gen_isa): Print implied bits and their dependencies to ISA header.
5305 (gen_data): Add parsing for implied feature bits.
5306
5307 2020-10-06 Andreas Krebbel <krebbel@linux.ibm.com>
5308
5309 * doc/invoke.texi: Add z15/arch13 to the list of documented
5310 -march/-mtune options.
5311
5312 2020-10-05 Aldy Hernandez <aldyh@redhat.com>
5313
5314 * value-range.cc (irange::legacy_intersect): Only handle
5315 legacy ranges.
5316 (irange::legacy_union): Same.
5317 (irange::union_): When unioning legacy with non-legacy,
5318 first convert to legacy and do everything in legacy mode.
5319 (irange::intersect): Same, but for intersect.
5320 * range-op.cc (range_tests): Adjust for above changes.
5321
5322 2020-10-05 Aldy Hernandez <aldyh@redhat.com>
5323
5324 * range-op.cc (operator_div::wi_fold): Return varying for
5325 division by zero.
5326 (class operator_rshift): Move class up.
5327 (operator_abs::wi_fold): Return [-MIN,-MIN] for ABS([-MIN,-MIN]).
5328 (operator_tests): Adjust tests.
5329
5330 2020-10-05 Tom de Vries <tdevries@suse.de>
5331
5332 * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_XCHG_*.
5333
5334 2020-10-05 Alex Coplan <alex.coplan@arm.com>
5335
5336 * config/arm/arm-cpus.in (neoverse-v1): Add missing vendor and
5337 part numbers.
5338
5339 2020-10-05 Tom de Vries <tdevries@suse.de>
5340
5341 * tracer.c (ignore_bb_p): Remove incorrect suggestion.
5342
5343 2020-10-05 Jakub Jelinek <jakub@redhat.com>
5344
5345 * opth-gen.awk: Don't emit explicit_mask array if n_target_explicit
5346 is equal to n_target_explicit_mask.
5347 * optc-save-gen.awk: Compute has_target_explicit_mask and if false,
5348 don't emit code iterating over explicit_mask array elements. Stream
5349 also explicit_mask_* target members.
5350
5351 2020-10-05 Jakub Jelinek <jakub@redhat.com>
5352
5353 * gimple-ssa-store-merging.c
5354 (imm_store_chain_info::output_merged_store): Use ~0U instead of ~0 in
5355 unsigned int array initializer.
5356
5357 2020-10-05 Tom de Vries <tdevries@suse.de>
5358
5359 PR fortran/95654
5360 * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_ENTER_ALLOC,
5361 GOMP_SIMT_VOTE_ANY and GOMP_SIMT_EXIT.
5362
5363 2020-10-03 Jakub Jelinek <jakub@redhat.com>
5364
5365 * opth-gen.awk: For variables referenced in Mask and InverseMask,
5366 don't use the explicit_mask bitmask array, but add separate
5367 explicit_mask_* members with the same types as the variables.
5368 * optc-save-gen.awk: Save, restore, compare and hash the separate
5369 explicit_mask_* members.
5370
5371 2020-10-03 Jan Hubicka <hubicka@ucw.cz>
5372
5373 * ipa-modref-tree.c (test_insert_search_collapse): Update andling
5374 of accesses.
5375 (test_merge): Likewise.
5376 * ipa-modref-tree.h (struct modref_access_node): Add offset, size,
5377 max_size, parm_offset and parm_offset_known.
5378 (modref_access_node::useful_p): Constify.
5379 (modref_access_node::range_info_useful_p): New predicate.
5380 (modref_access_node::operator==): New.
5381 (struct modref_parm_map): New structure.
5382 (modref_tree::merge): Update for racking parameters)
5383 * ipa-modref.c (dump_access): Dump new fields.
5384 (get_access): Fill in new fields.
5385 (merge_call_side_effects): Update handling of parm map.
5386 (write_modref_records): Stream new fields.
5387 (read_modref_records): Stream new fields.
5388 (compute_parm_map): Update for new parm map.
5389 (ipa_merge_modref_summary_after_inlining): Update.
5390 (modref_propagate_in_scc): Update.
5391 * tree-ssa-alias.c (modref_may_conflict): Handle known ranges.
5392
5393 2020-10-03 H.J. Lu <hjl.tools@gmail.com>
5394
5395 PR other/97280
5396 * doc/extend.texi: Replace roudnevenl with roundevenl
5397
5398 2020-10-02 David Edelsohn <dje.gcc@gmail.com>
5399 Andrew MacLeod <amacleod@redhat.com>
5400
5401 * config/rs6000/rs6000.c: Include ssa.h. Reorder some headers.
5402 * config/rs6000/rs6000-call.c: Same.
5403
5404 2020-10-02 Martin Jambor <mjambor@suse.cz>
5405
5406 * params.opt (ipa-cp-large-unit-insns): New parameter.
5407 * ipa-cp.c (get_max_overall_size): Use the new parameter.
5408
5409 2020-10-02 Martin Jambor <mjambor@suse.cz>
5410
5411 * ipa-cp.c (estimate_local_effects): Add overeall_size to dumped
5412 string.
5413 (decide_about_value): Add dumping new overall_size.
5414
5415 2020-10-02 Martin Jambor <mjambor@suse.cz>
5416
5417 * ipa-fnsummary.h (ipa_freqcounting_predicate): New type.
5418 (ipa_fn_summary): Change the type of loop_iterations and loop_strides
5419 to vectors of ipa_freqcounting_predicate.
5420 (ipa_fn_summary::ipa_fn_summary): Construct the new vectors.
5421 (ipa_call_estimates): New fields loops_with_known_iterations and
5422 loops_with_known_strides.
5423 * ipa-cp.c (hint_time_bonus): Multiply param_ipa_cp_loop_hint_bonus
5424 with the expected frequencies of loops with known iteration count or
5425 stride.
5426 * ipa-fnsummary.c (add_freqcounting_predicate): New function.
5427 (ipa_fn_summary::~ipa_fn_summary): Release the new vectors instead of
5428 just two predicates.
5429 (remap_hint_predicate_after_duplication): Replace with function
5430 remap_freqcounting_preds_after_dup.
5431 (ipa_fn_summary_t::duplicate): Use it or duplicate new vectors.
5432 (ipa_dump_fn_summary): Dump the new vectors.
5433 (analyze_function_body): Compute the loop property vectors.
5434 (ipa_call_context::estimate_size_and_time): Calculate also
5435 loops_with_known_iterations and loops_with_known_strides. Adjusted
5436 dumping accordinly.
5437 (remap_hint_predicate): Replace with function
5438 remap_freqcounting_predicate.
5439 (ipa_merge_fn_summary_after_inlining): Use it.
5440 (inline_read_section): Stream loopcounting vectors instead of two
5441 simple predicates.
5442 (ipa_fn_summary_write): Likewise.
5443 * params.opt (ipa-max-loop-predicates): New parameter.
5444 * doc/invoke.texi (ipa-max-loop-predicates): Document new param.
5445
5446 2020-10-02 Martin Jambor <mjambor@suse.cz>
5447
5448 * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to use
5449 ipa_call_estimates.
5450 (do_estimate_edge_size): Likewise.
5451 (do_estimate_edge_hints): Likewise.
5452 * ipa-fnsummary.h (struct ipa_call_estimates): New type.
5453 (ipa_call_context::estimate_size_and_time): Adjusted declaration.
5454 (estimate_ipcp_clone_size_and_time): Likewise.
5455 * ipa-cp.c (hint_time_bonus): Changed the type of the second argument
5456 to ipa_call_estimates.
5457 (perform_estimation_of_a_value): Adjusted to use ipa_call_estimates.
5458 (estimate_local_effects): Likewise.
5459 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Adjusted
5460 to return estimates in a single ipa_call_estimates parameter.
5461 (estimate_ipcp_clone_size_and_time): Likewise.
5462
5463 2020-10-02 Martin Jambor <mjambor@suse.cz>
5464
5465 * ipa-fnsummary.h (ipa_cached_call_context): New forward declaration
5466 and class.
5467 (class ipa_call_context): Make friend ipa_cached_call_context. Moved
5468 methods duplicate_from and release to it too.
5469 * ipa-fnsummary.c (ipa_call_context::duplicate_from): Moved to class
5470 ipa_cached_call_context.
5471 (ipa_call_context::release): Likewise, removed the parameter.
5472 * ipa-inline-analysis.c (node_context_cache_entry): Change the type of
5473 ctx to ipa_cached_call_context.
5474 (do_estimate_edge_time): Remove parameter from the call to
5475 ipa_cached_call_context::release.
5476
5477 2020-10-02 Martin Jambor <mjambor@suse.cz>
5478
5479 * ipa-prop.h (ipa_auto_call_arg_values): New type.
5480 (class ipa_call_arg_values): Likewise.
5481 (ipa_get_indirect_edge_target): Replaced vector arguments with
5482 ipa_call_arg_values in declaration. Added an overload for
5483 ipa_auto_call_arg_values.
5484 * ipa-fnsummary.h (ipa_call_context): Removed members m_known_vals,
5485 m_known_contexts, m_known_aggs, duplicate_from, release and equal_to,
5486 new members m_avals, store_to_cache and equivalent_to_p. Adjusted
5487 construcotr arguments.
5488 (estimate_ipcp_clone_size_and_time): Replaced vector arguments
5489 with ipa_auto_call_arg_values in declaration.
5490 (evaluate_properties_for_edge): Likewise.
5491 * ipa-cp.c (ipa_get_indirect_edge_target): Adjusted to work on
5492 ipa_call_arg_values rather than on separate vectors. Added an
5493 overload for ipa_auto_call_arg_values.
5494 (devirtualization_time_bonus): Adjusted to work on
5495 ipa_auto_call_arg_values rather than on separate vectors.
5496 (gather_context_independent_values): Adjusted to work on
5497 ipa_auto_call_arg_values rather than on separate vectors.
5498 (perform_estimation_of_a_value): Likewise.
5499 (estimate_local_effects): Likewise.
5500 (modify_known_vectors_with_val): Adjusted both variants to work on
5501 ipa_auto_call_arg_values and rename them to
5502 copy_known_vectors_add_val.
5503 (decide_about_value): Adjusted to work on ipa_call_arg_values rather
5504 than on separate vectors.
5505 (decide_whether_version_node): Likewise.
5506 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Likewise.
5507 (evaluate_properties_for_edge): Likewise.
5508 (ipa_fn_summary_t::duplicate): Likewise.
5509 (estimate_edge_devirt_benefit): Adjusted to work on
5510 ipa_call_arg_values rather than on separate vectors.
5511 (estimate_edge_size_and_time): Likewise.
5512 (estimate_calls_size_and_time_1): Likewise.
5513 (summarize_calls_size_and_time): Adjusted calls to
5514 estimate_edge_size_and_time.
5515 (estimate_calls_size_and_time): Adjusted to work on
5516 ipa_call_arg_values rather than on separate vectors.
5517 (ipa_call_context::ipa_call_context): Construct from a pointer to
5518 ipa_auto_call_arg_values instead of inividual vectors.
5519 (ipa_call_context::duplicate_from): Adjusted to access vectors within
5520 m_avals.
5521 (ipa_call_context::release): Likewise.
5522 (ipa_call_context::equal_to): Likewise.
5523 (ipa_call_context::estimate_size_and_time): Adjusted to work on
5524 ipa_call_arg_values rather than on separate vectors.
5525 (estimate_ipcp_clone_size_and_time): Adjusted to work with
5526 ipa_auto_call_arg_values rather than on separate vectors.
5527 (ipa_merge_fn_summary_after_inlining): Likewise. Adjusted call to
5528 estimate_edge_size_and_time.
5529 (ipa_update_overall_fn_summary): Adjusted call to
5530 estimate_edge_size_and_time.
5531 * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to work with
5532 ipa_auto_call_arg_values rather than with separate vectors.
5533 (do_estimate_edge_size): Likewise.
5534 (do_estimate_edge_hints): Likewise.
5535 * ipa-prop.c (ipa_auto_call_arg_values::~ipa_auto_call_arg_values):
5536 New destructor.
5537
5538 2020-10-02 Joe Ramsay <joe.ramsay@arm.com>
5539
5540 * config/arm/arm_mve.h (__arm_vmaxnmavq): Remove coercion of scalar
5541 argument.
5542 (__arm_vmaxnmvq): Likewise.
5543 (__arm_vminnmavq): Likewise.
5544 (__arm_vminnmvq): Likewise.
5545 (__arm_vmaxnmavq_p): Likewise.
5546 (__arm_vmaxnmvq_p): Likewise (and delete duplicate definition).
5547 (__arm_vminnmavq_p): Likewise.
5548 (__arm_vminnmvq_p): Likewise.
5549 (__arm_vmaxavq): Likewise.
5550 (__arm_vmaxavq_p): Likewise.
5551 (__arm_vmaxvq): Likewise.
5552 (__arm_vmaxvq_p): Likewise.
5553 (__arm_vminavq): Likewise.
5554 (__arm_vminavq_p): Likewise.
5555 (__arm_vminvq): Likewise.
5556 (__arm_vminvq_p): Likewise.
5557
5558 2020-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5559
5560 * config/aarch64/aarch64.c (neoversev1_tunings): Define.
5561 * config/aarch64/aarch64-cores.def (zeus): Use it.
5562 (neoverse-v1): Likewise.
5563
5564 2020-10-02 Jan Hubicka <hubicka@ucw.cz>
5565
5566 * attr-fnspec.h: Update documentation.
5567 (attr_fnsec::return_desc_size): Set to 2
5568 (attr_fnsec::arg_desc_size): Set to 2
5569 * builtin-attrs.def (STR1): Update fnspec.
5570 * internal-fn.def (UBSAN_NULL): Update fnspec.
5571 (UBSAN_VPTR): Update fnspec.
5572 (UBSAN_PTR): Update fnspec.
5573 (ASAN_CHECK): Update fnspec.
5574 (GOACC_DIM_SIZE): Remove fnspec.
5575 (GOACC_DIM_POS): Remove fnspec.
5576 * tree-ssa-alias.c (attr_fnspec::verify): Update verification.
5577
5578 2020-10-02 Jan Hubicka <jh@suse.cz>
5579
5580 * attr-fnspec.h: New file.
5581 * calls.c (decl_return_flags): Use attr_fnspec.
5582 * gimple.c (gimple_call_arg_flags): Use attr_fnspec.
5583 (gimple_call_return_flags): Use attr_fnspec.
5584 * tree-into-ssa.c (pass_build_ssa::execute): Use attr_fnspec.
5585 * tree-ssa-alias.c (attr_fnspec::verify): New member fuction.
5586
5587 2020-10-02 Jan Hubicka <jh@suse.cz>
5588
5589 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_range): Break out from ...
5590 (ao_ref_init_from_ptr_and_size): ... here.
5591
5592 2020-10-02 Jan Hubicka <hubicka@ucw.cz>
5593
5594 * data-streamer-in.c (streamer_read_poly_int64): New function.
5595 * data-streamer-out.c (streamer_write_poly_int64): New function.
5596 * data-streamer.h (streamer_write_poly_int64): Declare.
5597 (streamer_read_poly_int64): Declare.
5598
5599 2020-10-02 Richard Sandiford <richard.sandiford@arm.com>
5600
5601 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
5602 Delete.
5603 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): Likewise.
5604 * config/aarch64/aarch64-sve.md: Add banner comment describing
5605 how merging predicated FP operations are represented.
5606 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2): Split into...
5607 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_relaxed): ...this and...
5608 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_strict): ...this.
5609 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any): Split into...
5610 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_relaxed): ...this and...
5611 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_strict): ...this.
5612 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): Split into...
5613 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_relaxed): ...this and...
5614 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_strict): ...this.
5615 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Split into...
5616 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_relaxed): ...this
5617 and...
5618 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_strict): ...this.
5619 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2): Split into...
5620 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_relaxed): ...this and...
5621 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_strict): ...this.
5622 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const): Split into...
5623 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_relaxed): ...this
5624 and...
5625 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_strict): ...this.
5626 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3): Split into...
5627 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_relaxed): ...this and...
5628 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_strict): ...this.
5629 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any): Split into...
5630 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_relaxed): ...this and...
5631 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_strict): ...this.
5632 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const): Split into...
5633 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_relaxed): ...this
5634 and...
5635 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_strict): ...this.
5636 (*cond_add<mode>_2_const): Split into...
5637 (*cond_add<mode>_2_const_relaxed): ...this and...
5638 (*cond_add<mode>_2_const_strict): ...this.
5639 (*cond_add<mode>_any_const): Split into...
5640 (*cond_add<mode>_any_const_relaxed): ...this and...
5641 (*cond_add<mode>_any_const_strict): ...this.
5642 (*cond_<SVE_COND_FCADD:optab><mode>_2): Split into...
5643 (*cond_<SVE_COND_FCADD:optab><mode>_2_relaxed): ...this and...
5644 (*cond_<SVE_COND_FCADD:optab><mode>_2_strict): ...this.
5645 (*cond_<SVE_COND_FCADD:optab><mode>_any): Split into...
5646 (*cond_<SVE_COND_FCADD:optab><mode>_any_relaxed): ...this and...
5647 (*cond_<SVE_COND_FCADD:optab><mode>_any_strict): ...this.
5648 (*cond_sub<mode>_3_const): Split into...
5649 (*cond_sub<mode>_3_const_relaxed): ...this and...
5650 (*cond_sub<mode>_3_const_strict): ...this.
5651 (*aarch64_pred_abd<mode>): Split into...
5652 (*aarch64_pred_abd<mode>_relaxed): ...this and...
5653 (*aarch64_pred_abd<mode>_strict): ...this.
5654 (*aarch64_cond_abd<mode>_2): Split into...
5655 (*aarch64_cond_abd<mode>_2_relaxed): ...this and...
5656 (*aarch64_cond_abd<mode>_2_strict): ...this.
5657 (*aarch64_cond_abd<mode>_3): Split into...
5658 (*aarch64_cond_abd<mode>_3_relaxed): ...this and...
5659 (*aarch64_cond_abd<mode>_3_strict): ...this.
5660 (*aarch64_cond_abd<mode>_any): Split into...
5661 (*aarch64_cond_abd<mode>_any_relaxed): ...this and...
5662 (*aarch64_cond_abd<mode>_any_strict): ...this.
5663 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2): Split into...
5664 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_relaxed): ...this and...
5665 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_strict): ...this.
5666 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4): Split into...
5667 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_relaxed): ...this and...
5668 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_strict): ...this.
5669 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any): Split into...
5670 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_relaxed): ...this and...
5671 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_strict): ...this.
5672 (*cond_<SVE_COND_FCMLA:optab><mode>_4): Split into...
5673 (*cond_<SVE_COND_FCMLA:optab><mode>_4_relaxed): ...this and...
5674 (*cond_<SVE_COND_FCMLA:optab><mode>_4_strict): ...this.
5675 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Split into...
5676 (*cond_<SVE_COND_FCMLA:optab><mode>_any_relaxed): ...this and...
5677 (*cond_<SVE_COND_FCMLA:optab><mode>_any_strict): ...this.
5678 (*aarch64_pred_fac<cmp_op><mode>): Split into...
5679 (*aarch64_pred_fac<cmp_op><mode>_relaxed): ...this and...
5680 (*aarch64_pred_fac<cmp_op><mode>_strict): ...this.
5681 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>): Split
5682 into...
5683 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_relaxed):
5684 ...this and...
5685 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_strict):
5686 ...this.
5687 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>): Split
5688 into...
5689 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_relaxed):
5690 ...this and...
5691 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_strict):
5692 ...this.
5693 * config/aarch64/aarch64-sve2.md
5694 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>): Split into...
5695 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_relaxed): ...this and...
5696 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_strict): ...this.
5697 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any): Split into...
5698 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_relaxed): ...this
5699 and...
5700 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_strict): ...this.
5701 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>): Split into...
5702 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_relaxed): ...this and...
5703 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_strict): ...this.
5704
5705 2020-10-02 Richard Sandiford <richard.sandiford@arm.com>
5706
5707 * config/arm/neon.md (*sub<VDQ:mode>3_neon): Use the new mode macros
5708 for the insn condition.
5709 (sub<VH:mode>3, *mul<VDQW:mode>3_neon): Likewise.
5710 (mul<VDQW:mode>3add<VDQW:mode>_neon): Likewise.
5711 (mul<VH:mode>3add<VH:mode>_neon): Likewise.
5712 (mul<VDQW:mode>3neg<VDQW:mode>add<VDQW:mode>_neon): Likewise.
5713 (fma<VCVTF:mode>4, fma<VH:mode>4, *fmsub<VCVTF:mode>4): Likewise.
5714 (quad_halves_<code>v4sf, reduc_plus_scal_<VD:mode>): Likewise.
5715 (reduc_plus_scal_<VQ:mode>, reduc_smin_scal_<VD:mode>): Likewise.
5716 (reduc_smin_scal_<VQ:mode>, reduc_smax_scal_<VD:mode>): Likewise.
5717 (reduc_smax_scal_<VQ:mode>, mul<VH:mode>3): Likewise.
5718 (neon_vabd<VF:mode>_2, neon_vabd<VF:mode>_3): Likewise.
5719 (fma<VH:mode>4_intrinsic): Delete.
5720 (neon_vadd<VCVTF:mode>): Use the new mode macros to decide which
5721 form of instruction to generate.
5722 (neon_vmla<VDQW:mode>, neon_vmls<VDQW:mode>): Likewise.
5723 (neon_vsub<VCVTF:mode>): Likewise.
5724 (neon_vfma<VH:mode>): Generate the main fma<mode>4 form instead
5725 of using fma<mode>4_intrinsic.
5726
5727 2020-10-02 Martin Liska <mliska@suse.cz>
5728
5729 PR gcov-profile/97193
5730 * coverage.c (coverage_init): GCDA note files should not be
5731 mangled and should end in output directory.
5732
5733 2020-10-02 Jason Merril <jason@redhat.com>
5734
5735 * gimple.h (gimple_call_operator_delete_p): Rename from
5736 gimple_call_replaceable_operator_delete_p.
5737 * gimple.c (gimple_call_operator_delete_p): Likewise.
5738 * tree.h (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): Remove.
5739 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Adjust.
5740 (propagate_necessity): Likewise.
5741 (eliminate_unnecessary_stmts): Likewise.
5742 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
5743
5744 2020-10-02 Richard Biener <rguenther@suse.de>
5745
5746 * gimple.h (GF_CALL_FROM_NEW_OR_DELETE): New call flag.
5747 (gimple_call_set_from_new_or_delete): New.
5748 (gimple_call_from_new_or_delete): Likewise.
5749 * gimple.c (gimple_build_call_from_tree): Set
5750 GF_CALL_FROM_NEW_OR_DELETE appropriately.
5751 * ipa-icf-gimple.c (func_checker::compare_gimple_call):
5752 Compare gimple_call_from_new_or_delete.
5753 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Make
5754 sure to only consider new/delete calls from new or delete
5755 expressions.
5756 (propagate_necessity): Likewise.
5757 (eliminate_unnecessary_stmts): Likewise.
5758 * tree-ssa-structalias.c (find_func_aliases_for_call):
5759 Likewise.
5760
5761 2020-10-02 Jason Merril <jason@redhat.com>
5762
5763 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Move from cp-tree.h.
5764 * tree-core.h: Document new usage of protected_flag.
5765
5766 2020-10-02 Aldy Hernandez <aldyh@redhat.com>
5767
5768 * value-range.h (irange::fits_p): New.
5769
5770 2020-10-01 Alan Modra <amodra@gmail.com>
5771
5772 * config/rs6000/rs6000.c (rs6000_legitimize_address): Use
5773 gen_int_mode for high part of address constant.
5774
5775 2020-10-01 Alan Modra <amodra@gmail.com>
5776
5777 * config/rs6000/rs6000.c (rs6000_linux64_override_options):
5778 Formatting. Correct setting of TARGET_NO_FP_IN_TOC and
5779 TARGET_NO_SUM_IN_TOC.
5780
5781 2020-10-01 Alan Modra <amodra@gmail.com>
5782
5783 * config/rs6000/freebsd64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
5784 rs6000_linux64_override_options.
5785 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Break
5786 out to..
5787 * config/rs6000/rs6000.c (rs6000_linux64_override_options): ..this,
5788 new function. Tweak non-biarch test and clearing of
5789 profile_kernel to work with freebsd64.h.
5790
5791 2020-10-01 Martin Liska <mliska@suse.cz>
5792
5793 * config/rs6000/rs6000-call.c: Include value-range.h.
5794 * config/rs6000/rs6000.c: Likewise.
5795
5796 2020-10-01 Tom de Vries <tdevries@suse.de>
5797
5798 PR target/80845
5799 * config/nvptx/nvptx.md (define_insn "truncsi<QHIM>2"): Emit mov.u32
5800 instead of cvt.u32.u32.
5801
5802 2020-10-01 Richard Sandiford <richard.sandiford@arm.com>
5803
5804 PR target/96528
5805 PR target/97288
5806 * config/arm/arm-protos.h (arm_expand_vector_compare): Declare.
5807 (arm_expand_vcond): Likewise.
5808 * config/arm/arm.c (arm_expand_vector_compare): New function.
5809 (arm_expand_vcond): Likewise.
5810 * config/arm/neon.md (vec_cmp<VDQW:mode><v_cmp_result>): New pattern.
5811 (vec_cmpu<VDQW:mode><VDQW:mode>): Likewise.
5812 (vcond<VDQW:mode><VDQW:mode>): Require operand 5 to be a register
5813 or zero. Use arm_expand_vcond.
5814 (vcond<V_cvtto><V32:mode>): New pattern.
5815 (vcondu<VDQIW:mode><VDQIW:mode>): Generalize to...
5816 (vcondu<VDQW:mode><v_cmp_result): ...this. Require operand 5
5817 to be a register or zero. Use arm_expand_vcond.
5818 (vcond_mask_<VDQW:mode><v_cmp_result>): New pattern.
5819 (neon_vc<cmp_op><mode>, neon_vc<cmp_op><mode>_insn): Add "@" marker.
5820 (neon_vbsl<mode>): Likewise.
5821 (neon_vc<cmp_op>u<mode>): Reexpress as...
5822 (@neon_vc<code><mode>): ...this.
5823
5824 2020-10-01 Michael Davidsaver <mdavidsaver@gmail.com>
5825
5826 * config/i386/t-rtems: Change from mtune to march when building
5827 multilibs. The mtune argument tunes or optimizes for a specific
5828 CPU model but does not ensure the generated code is appropriate
5829 for the CPU model. Prior to this patch, i386 compatible code
5830 was always generated but tuned for later models.
5831
5832 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
5833
5834 * builtins.c (compute_objsize): Replace vr_values with range_query.
5835 (get_range): Same.
5836 (gimple_call_alloc_size): Same.
5837 * builtins.h (class vr_values): Remove.
5838 (gimple_call_alloc_size): Replace vr_values with range_query.
5839 * gimple-ssa-sprintf.c (get_int_range): Same.
5840 (struct directive): Pass gimple context to fmtfunc callback.
5841 (directive::set_width): Replace inline with out-of-line version.
5842 (directive::set_precision): Same.
5843 (format_none): New gimple argument.
5844 (format_percent): New gimple argument.
5845 (format_integer): New gimple argument.
5846 (format_floating): New gimple argument.
5847 (get_string_length): Use range_query API.
5848 (format_character): New gimple argument.
5849 (format_string): New gimple argument.
5850 (format_plain): New gimple argument.
5851 (format_directive): New gimple argument.
5852 (parse_directive): Replace vr_values with range_query.
5853 (compute_format_length): Same.
5854 (handle_printf_call): Same. Adjust for range_query API.
5855 * tree-ssa-strlen.c (get_range): Same.
5856 (compare_nonzero_chars): Same.
5857 (get_addr_stridx) Replace vr_values with range_query.
5858 (get_stridx): Same.
5859 (dump_strlen_info): Same.
5860 (get_range_strlen_dynamic): Adjust for range_query API.
5861 (set_strlen_range): Same
5862 (maybe_warn_overflow): Replace vr_values with range_query.
5863 (handle_builtin_strcpy): Same.
5864 (maybe_diag_stxncpy_trunc): Add FIXME comment.
5865 (handle_builtin_memcpy): Replace vr_values with range_query.
5866 (handle_builtin_memset): Same.
5867 (get_len_or_size): Same.
5868 (strxcmp_eqz_result): Same.
5869 (handle_builtin_string_cmp): Same.
5870 (count_nonzero_bytes_addr): Same, plus adjust for range_query API.
5871 (count_nonzero_bytes): Replace vr_values with range_query.
5872 (handle_store): Same.
5873 (strlen_check_and_optimize_call): Same.
5874 (handle_integral_assign): Same.
5875 (check_and_optimize_stmt): Same.
5876 * tree-ssa-strlen.h (class vr_values): Remove.
5877 (get_range): Replace vr_values with range_query.
5878 (get_range_strlen_dynamic): Same.
5879 (handle_printf_call): Same.
5880
5881 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
5882
5883 * gimple-loop-versioning.cc (lv_dom_walker::before_dom_children):
5884 Pass m_range_analyzer instead of get_vr_values.
5885 (loop_versioning::name_prop::get_value): Rename to...
5886 (loop_versioning::name_prop::value_of_expr): ...this.
5887 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::evrp_range_analyzer):
5888 Adjust for evrp_range_analyzer
5889 inheriting from vr_values.
5890 (evrp_range_analyzer::try_find_new_range): Same.
5891 (evrp_range_analyzer::record_ranges_from_incoming_edge): Same.
5892 (evrp_range_analyzer::record_ranges_from_phis): Same.
5893 (evrp_range_analyzer::record_ranges_from_stmt): Same.
5894 (evrp_range_analyzer::push_value_range): Same.
5895 (evrp_range_analyzer::pop_value_range): Same.
5896 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Inherit from
5897 vr_values. Adjust accordingly.
5898 * gimple-ssa-evrp.c: Adjust for evrp_range_analyzer inheriting from
5899 vr_values.
5900 (evrp_folder::value_of_evrp): Rename from get_value.
5901 * tree-ssa-ccp.c (class ccp_folder): Rename get_value to
5902 value_of_expr.
5903 (ccp_folder::get_value): Rename to...
5904 (ccp_folder::value_of_expr): ...this.
5905 * tree-ssa-copy.c (class copy_folder): Rename get_value to
5906 value_of_expr.
5907 (copy_folder::get_value): Rename to...
5908 (copy_folder::value_of_expr): ...this.
5909 * tree-ssa-dom.c (dom_opt_dom_walker::after_dom_children): Adjust
5910 for evrp_range_analyzer inheriting from vr_values.
5911 (dom_opt_dom_walker::optimize_stmt): Same.
5912 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
5913 Call value_of_* instead of get_value.
5914 (substitute_and_fold_engine::replace_phi_args_in): Same.
5915 (substitute_and_fold_engine::propagate_into_phi_args): Same.
5916 (substitute_and_fold_dom_walker::before_dom_children): Same.
5917 * tree-ssa-propagate.h: Include value-query.h.
5918 (class substitute_and_fold_engine): Inherit from value_query.
5919 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children):
5920 Adjust for evrp_range_analyzer inheriting from vr_values.
5921 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
5922 Same.
5923 * tree-vrp.c (class vrp_folder): Same.
5924 (vrp_folder::get_value): Rename to value_of_expr.
5925 * vr-values.c (vr_values::get_lattice_entry): Adjust for
5926 vr_values inheriting from range_query.
5927 (vr_values::range_of_expr): New.
5928 (vr_values::value_of_expr): New.
5929 (vr_values::value_on_edge): New.
5930 (vr_values::value_of_stmt): New.
5931 (simplify_using_ranges::op_with_boolean_value_range_p): Call
5932 get_value_range through query.
5933 (check_for_binary_op_overflow): Rename store to query.
5934 (vr_values::vr_values): Remove vrp_value_range_pool.
5935 (vr_values::~vr_values): Same.
5936 (simplify_using_ranges::get_vr_for_comparison): Call get_value_range
5937 through query.
5938 (simplify_using_ranges::compare_names): Same.
5939 (simplify_using_ranges::vrp_evaluate_conditional): Same.
5940 (simplify_using_ranges::vrp_visit_cond_stmt): Same.
5941 (simplify_using_ranges::simplify_abs_using_ranges): Same.
5942 (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
5943 (simplify_cond_using_ranges_2): Same.
5944 (simplify_using_ranges::simplify_switch_using_ranges): Same.
5945 (simplify_using_ranges::two_valued_val_range_p): Same.
5946 (simplify_using_ranges::simplify_using_ranges): Rename store to query.
5947 (simplify_using_ranges::simplify): Assert that we have a query.
5948 * vr-values.h (class range_query): Remove.
5949 (class simplify_using_ranges): Remove inheritance of range_query.
5950 (class vr_values): Add virtuals for range_of_expr, value_of_expr,
5951 value_on_edge, value_of_stmt, and get_value_range.
5952 Call range_query allocator instead of using vrp_value_range_pool.
5953 Remove vrp_value_range_pool.
5954 (simplify_using_ranges::get_value_range): Remove.
5955
5956 2020-10-01 Richard Biener <rguenther@suse.de>
5957
5958 PR tree-optimization/97236
5959 * tree-vect-stmts.c (get_group_load_store_type): Keep
5960 VMAT_ELEMENTWISE for single-element vectors.
5961
5962 2020-10-01 Jan Hubicka <jh@suse.cz>
5963
5964 * ipa-modref.c (compute_parm_map): Be ready for callee_pi to be NULL.
5965
5966 2020-10-01 Jan Hubicka <jh@suse.cz>
5967
5968 PR ipa/97244
5969 * ipa-fnsummary.c (pass_free_fnsummary::execute): Free
5970 also indirect inlining datastructure.
5971 * ipa-modref.c (pass_ipa_modref::execute): Do not free them here.
5972 * ipa-prop.c (ipa_free_all_node_params): Do not crash when info does
5973 not exist.
5974 (ipa_unregister_cgraph_hooks): Likewise.
5975
5976 2020-10-01 Jan Hubicka <jh@suse.cz>
5977
5978 * internal-fn.c (DEF_INTERNAL_FN): Fix handling of fnspec
5979
5980 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
5981
5982 * Makefile.in: Add value-query.o.
5983 * value-query.cc: New file.
5984 * value-query.h: New file.
5985
5986 2020-10-01 Alex Coplan <alex.coplan@arm.com>
5987
5988 * config/arm/arm-cpus.in: Fix ordering, move Neoverse N2 down.
5989 * config/arm/arm-tables.opt: Regenerate.
5990 * config/arm/arm-tune.md: Regenerate.
5991
5992 2020-10-01 Jakub Jelinek <jakub@redhat.com>
5993
5994 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
5995 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
5996 fenv_var and old_fpc. Formatting fixes.
5997
5998 2020-10-01 Richard Biener <rguenther@suse.de>
5999
6000 * tree-vect-patterns.c (vect_recog_bool_pattern): Also handle
6001 VIEW_CONVERT_EXPR.
6002
6003 2020-10-01 Florian Weimer <fweimer@redhat.com>
6004
6005 PR target/97250
6006 * config/i386/i386.h (PTA_NO_TUNE, PTA_X86_64_BASELINE)
6007 (PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4): New.
6008 * common/config/i386/i386-common.c (processor_alias_table):
6009 Add "x86-64-v2", "x86-64-v3", "x86-64-v4".
6010 * config/i386/i386-options.c (ix86_option_override_internal):
6011 Handle new PTA_NO_TUNE processor table entries.
6012 * doc/invoke.texi (x86 Options): Document new -march values.
6013
6014 2020-10-01 Alan Modra <amodra@gmail.com>
6015
6016 * config/rs6000/ppc-asm.h: Support __PCREL__ code.
6017
6018 2020-10-01 Alan Modra <amodra@gmail.com>
6019
6020 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
6021 set -mcmodel=small for -mno-minimal-toc when pcrel.
6022
6023 2020-09-30 Martin Sebor <msebor@redhat.com>
6024
6025 PR middle-end/97189
6026 * attribs.c (attr_access::array_as_string): Avoid assuming a VLA
6027 access specification string contains a closing bracket.
6028
6029 2020-09-30 Martin Sebor <msebor@redhat.com>
6030
6031 PR c/97206
6032 * attribs.c (attr_access::array_as_string): Avoid modifying a shared
6033 type in place and use build_type_attribute_qual_variant instead.
6034
6035 2020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6036
6037 * config/arm/arm-cpus.in: Add Cortex-A78 and Cortex-A78AE cores.
6038 * config/arm/arm-tables.opt: Regenerate.
6039 * config/arm/arm-tune.md: Regenerate.
6040 * doc/invoke.texi: Update docs.
6041
6042 2020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6043
6044 * config/aarch64/aarch64-cores.def: Add Cortex-A78 and Cortex-A78AE cores.
6045 * config/aarch64/aarch64-tune.md: Regenerate.
6046 * doc/invoke.texi: Add -mtune=cortex-a78 and -mtune=cortex-a78ae.
6047
6048 2020-09-30 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6049
6050 PR target/96795
6051 * config/arm/arm_mve.h (__ARM_mve_coerce2): Define.
6052 (__arm_vaddq): Correct the scalar argument.
6053 (__arm_vaddq_m): Likewise.
6054 (__arm_vaddq_x): Likewise.
6055 (__arm_vcmpeqq_m): Likewise.
6056 (__arm_vcmpeqq): Likewise.
6057 (__arm_vcmpgeq_m): Likewise.
6058 (__arm_vcmpgeq): Likewise.
6059 (__arm_vcmpgtq_m): Likewise.
6060 (__arm_vcmpgtq): Likewise.
6061 (__arm_vcmpleq_m): Likewise.
6062 (__arm_vcmpleq): Likewise.
6063 (__arm_vcmpltq_m): Likewise.
6064 (__arm_vcmpltq): Likewise.
6065 (__arm_vcmpneq_m): Likewise.
6066 (__arm_vcmpneq): Likewise.
6067 (__arm_vfmaq_m): Likewise.
6068 (__arm_vfmaq): Likewise.
6069 (__arm_vfmasq_m): Likewise.
6070 (__arm_vfmasq): Likewise.
6071 (__arm_vmaxnmavq): Likewise.
6072 (__arm_vmaxnmavq_p): Likewise.
6073 (__arm_vmaxnmvq): Likewise.
6074 (__arm_vmaxnmvq_p): Likewise.
6075 (__arm_vminnmavq): Likewise.
6076 (__arm_vminnmavq_p): Likewise.
6077 (__arm_vminnmvq): Likewise.
6078 (__arm_vminnmvq_p): Likewise.
6079 (__arm_vmulq_m): Likewise.
6080 (__arm_vmulq): Likewise.
6081 (__arm_vmulq_x): Likewise.
6082 (__arm_vsetq_lane): Likewise.
6083 (__arm_vsubq_m): Likewise.
6084 (__arm_vsubq): Likewise.
6085 (__arm_vsubq_x): Likewise.
6086
6087 2020-09-30 Joel Hutton <joel.hutton@arm.com>
6088
6089 PR target/96837
6090 * tree-vect-slp.c (vect_analyze_slp): Do not call
6091 vect_attempt_slp_rearrange_stmts for vector constructors.
6092
6093 2020-09-30 Tamar Christina <tamar.christina@arm.com>
6094
6095 * tree-vectorizer.h (SLP_TREE_REF_COUNT): New.
6096 * tree-vect-slp.c (_slp_tree::_slp_tree, _slp_tree::~_slp_tree,
6097 vect_free_slp_tree, vect_build_slp_tree, vect_print_slp_tree,
6098 slp_copy_subtree, vect_attempt_slp_rearrange_stmts): Use it.
6099
6100 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6101
6102 * omp-offload.c (omp_discover_implicit_declare_target): Also
6103 handled nested functions.
6104
6105 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
6106 Tom de Vries <tdevries@suse.de>
6107
6108 * builtins.c (expand_builtin_cexpi, fold_builtin_sincos): Update
6109 targetm.libc_has_function call.
6110 * builtins.def (DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C11_BUILTIN):
6111 (DEF_C2X_BUILTIN, DEF_C99_COMPL_BUILTIN, DEF_C99_C90RES_BUILTIN):
6112 Same.
6113 * config/darwin-protos.h (darwin_libc_has_function): Update prototype.
6114 * config/darwin.c (darwin_libc_has_function): Add arg.
6115 * config/linux-protos.h (linux_libc_has_function): Update prototype.
6116 * config/linux.c (linux_libc_has_function): Add arg.
6117 * config/i386/i386.c (ix86_libc_has_function): Update
6118 targetm.libc_has_function call.
6119 * config/nvptx/nvptx.c (nvptx_libc_has_function): New function.
6120 (TARGET_LIBC_HAS_FUNCTION): Redefine to nvptx_libc_has_function.
6121 * convert.c (convert_to_integer_1): Update targetm.libc_has_function
6122 call.
6123 * match.pd: Same.
6124 * target.def (libc_has_function): Add arg.
6125 * doc/tm.texi: Regenerate.
6126 * targhooks.c (default_libc_has_function, gnu_libc_has_function)
6127 (no_c99_libc_has_function): Add arg.
6128 * targhooks.h (default_libc_has_function, no_c99_libc_has_function)
6129 (gnu_libc_has_function): Update prototype.
6130 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Update
6131 targetm.libc_has_function call.
6132
6133 2020-09-30 H.J. Lu <hjl.tools@gmail.com>
6134
6135 PR target/97184
6136 * config/i386/i386.md (UNSPECV_MOVDIRI): Renamed to ...
6137 (UNSPEC_MOVDIRI): This.
6138 (UNSPECV_MOVDIR64B): Renamed to ...
6139 (UNSPEC_MOVDIR64B): This.
6140 (movdiri<mode>): Use SET operation.
6141 (@movdir64b_<mode>): Likewise.
6142
6143 2020-09-30 Florian Weimer <fweimer@redhat.com>
6144
6145 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6146 __LAHF_SAHF__ and __MOVBE__ based on ISA flags.
6147
6148 2020-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6149
6150 PR target/97150
6151 * config/aarch64/arm_neon.h (vqrshlb_u8): Make second argument
6152 signed.
6153 (vqrshlh_u16): Likewise.
6154 (vqrshls_u32): Likewise.
6155 (vqrshld_u64): Likewise.
6156 (vqshlb_u8): Likewise.
6157 (vqshlh_u16): Likewise.
6158 (vqshls_u32): Likewise.
6159 (vqshld_u64): Likewise.
6160 (vshld_u64): Likewise.
6161
6162 2020-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6163
6164 PR target/96313
6165 * config/aarch64/aarch64-simd-builtins.def (sqmovun): Use UNOPUS
6166 qualifiers.
6167 * config/aarch64/arm_neon.h (vqmovun_s16): Adjust builtin call.
6168 Remove unnecessary result cast.
6169 (vqmovun_s32): Likewise.
6170 (vqmovun_s64): Likewise.
6171 (vqmovunh_s16): Likewise. Fix return type.
6172 (vqmovuns_s32): Likewise.
6173 (vqmovund_s64): Likewise.
6174
6175 2020-09-30 Richard Sandiford <richard.sandiford@arm.com>
6176
6177 * config/aarch64/aarch64.c (aarch64_split_128bit_move_p): Add a
6178 function comment. Tighten check for FP moves.
6179 * config/aarch64/aarch64.md (*movti_aarch64): Add a w<-Z alternative.
6180 (*movtf_aarch64): Handle r<-Y like r<-r. Remove unnecessary
6181 earlyclobber. Change splitter predicate from aarch64_reg_or_imm
6182 to nonmemory_operand.
6183
6184 2020-09-30 Alex Coplan <alex.coplan@arm.com>
6185
6186 PR target/97251
6187 * config/arm/arm.md (movsf): Relax TARGET_HARD_FLOAT to
6188 TARGET_VFP_BASE.
6189 (movdf): Likewise.
6190 * config/arm/vfp.md (no_literal_pool_df_immediate): Likewise.
6191 (no_literal_pool_sf_immediate): Likewise.
6192
6193 2020-09-30 Alan Modra <amodra@gmail.com>
6194
6195 * configure.ac (--with-long-double-format): Typo fix.
6196 * configure: Regenerate.
6197
6198 2020-09-30 Alan Modra <amodra@gmail.com>
6199
6200 * config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't use
6201 non-existent operands[].
6202 (@tablejump<mode>_nospec): Likewise.
6203
6204 2020-09-30 Segher Boessenkool <segher@kernel.crashing.org>
6205
6206 * config/rs6000/rs6000.md (tablejump): Simplify.
6207 (tablejumpsi): Merge this ...
6208 (tablejumpdi): ... and this ...
6209 (@tablejump<mode>_normal): ... into this.
6210 (tablejumpsi_nospec): Merge this ...
6211 (tablejumpdi_nospec): ... and this ...
6212 (@tablejump<mode>_nospec): ... into this.
6213 (*tablejump<mode>_internal1): Delete, rename to ...
6214 (@tablejump<mode>_insn_normal): ... this.
6215 (*tablejump<mode>_internal1_nospec): Delete, rename to ...
6216 (@tablejump<mode>_insn_nospec): ... this.
6217
6218 2020-09-29 Martin Sebor <msebor@redhat.com>
6219
6220 PR middle-end/97188
6221 * calls.c (maybe_warn_rdwr_sizes): Simplify warning messages.
6222 Correct handling of VLA argumments.
6223
6224 2020-09-29 Marek Polacek <polacek@redhat.com>
6225
6226 PR c++/94695
6227 * doc/invoke.texi: Document -Wrange-loop-construct.
6228
6229 2020-09-29 Jim Wilson <jimw@sifive.com>
6230
6231 PR bootstrap/97183
6232 * configure.ac (gcc_cv_header_zstd_h): Check ZSTD_VERISON_NUMBER.
6233 * configure: Regenerated.
6234
6235 2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6236
6237 * config/arm/arm-cpus.in: Add Cortex-X1 core.
6238 * config/arm/arm-tables.opt: Regenerate.
6239 * config/arm/arm-tune.md: Regenerate.
6240 * doc/invoke.texi: Update docs.
6241
6242 2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6243
6244 * config/aarch64/aarch64-cores.def: Add Cortex-X1 Arm core.
6245 * config/aarch64/aarch64-tune.md: Regenerate.
6246 * doc/invoke.texi: Add -mtune=cortex-x1 docs.
6247
6248 2020-09-29 H.J. Lu <hjl.tools@gmail.com>
6249
6250 PR target/97247
6251 * config/i386/enqcmdintrin.h: Replace <enqcmdntrin.h> with
6252 <enqcmdintrin.h>. Replace _ENQCMDNTRIN_H_INCLUDED with
6253 _ENQCMDINTRIN_H_INCLUDED.
6254
6255 2020-09-29 Richard Biener <rguenther@suse.de>
6256
6257 PR tree-optimization/97241
6258 * tree-vect-loop.c (vectorizable_reduction): Move finding
6259 the SLP node for the reduction stmt to a better place.
6260
6261 2020-09-29 Richard Biener <rguenther@suse.de>
6262
6263 * tree-vect-slp.c (vect_analyze_slp): Move SLP reduction
6264 re-arrangement and SLP graph load gathering...
6265 (vect_optimize_slp): ... here.
6266 * tree-vectorizer.h (vec_info::slp_loads): Remove.
6267
6268 2020-09-29 Hongyu Wang <hongyu.wang@intel.com>
6269
6270 PR target/97231
6271 * config/i386/amxbf16intrin.h: Add FSF copyright notes.
6272 * config/i386/amxint8intrin.h: Ditto.
6273 * config/i386/amxtileintrin.h: Ditto.
6274 * config/i386/avx512vp2intersectintrin.h: Ditto.
6275 * config/i386/avx512vp2intersectvlintrin.h: Ditto.
6276 * config/i386/pconfigintrin.h: Ditto.
6277 * config/i386/tsxldtrkintrin.h: Ditto.
6278 * config/i386/wbnoinvdintrin.h: Ditto.
6279
6280 2020-09-29 Richard Biener <rguenther@suse.de>
6281
6282 PR tree-optimization/97238
6283 * tree-ssa-reassoc.c (ovce_extract_ops): Fix typo.
6284
6285 2020-09-29 Richard Sandiford <richard.sandiford@arm.com>
6286
6287 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_ARITH, ARM_HAVE_NEON_V4HI_ARITH)
6288 (ARM_HAVE_NEON_V2SI_ARITH, ARM_HAVE_NEON_V16QI_ARITH): New macros.
6289 (ARM_HAVE_NEON_V8HI_ARITH, ARM_HAVE_NEON_V4SI_ARITH): Likewise.
6290 (ARM_HAVE_NEON_V2DI_ARITH, ARM_HAVE_NEON_V4HF_ARITH): Likewise.
6291 (ARM_HAVE_NEON_V8HF_ARITH, ARM_HAVE_NEON_V2SF_ARITH): Likewise.
6292 (ARM_HAVE_NEON_V4SF_ARITH, ARM_HAVE_V8QI_ARITH, ARM_HAVE_V4HI_ARITH)
6293 (ARM_HAVE_V2SI_ARITH, ARM_HAVE_V16QI_ARITH, ARM_HAVE_V8HI_ARITH)
6294 (ARM_HAVE_V4SI_ARITH, ARM_HAVE_V2DI_ARITH, ARM_HAVE_V4HF_ARITH)
6295 (ARM_HAVE_V2SF_ARITH, ARM_HAVE_V8HF_ARITH, ARM_HAVE_V4SF_ARITH):
6296 Likewise.
6297 * config/arm/iterators.md (VNIM, VNINOTM): Delete.
6298 * config/arm/vec-common.md (add<VNIM:mode>3, addv8hf3)
6299 (add<VNINOTM:mode>3): Replace with...
6300 (add<VDQ:mode>3): ...this new expander.
6301 * config/arm/neon.md (*add<VDQ:mode>3_neon): Use the new
6302 ARM_HAVE_NEON_<MODE>_ARITH macros as the C condition.
6303 (addv8hf3_neon, addv4hf3, add<VFH:mode>3_fp16): Delete in
6304 favor of the above.
6305 (neon_vadd<VH:mode>): Use gen_add<mode>3 instead of
6306 gen_add<mode>3_fp16.
6307
6308 2020-09-29 Kito Cheng <kito.cheng@sifive.com>
6309
6310 * config/riscv/riscv-c.c (riscv_cpu_cpp_builtins): Define
6311 __riscv_cmodel_medany when PIC mode.
6312
6313 2020-09-29 Alex Coplan <alex.coplan@arm.com>
6314
6315 * config/aarch64/aarch64-cores.def: Move neoverse-n2 after saphira.
6316 * config/aarch64/aarch64-tune.md: Regenerate.
6317
6318 2020-09-29 Martin Liska <mliska@suse.cz>
6319
6320 PR tree-optimization/96979
6321 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
6322 Make a fast bail out.
6323 (bit_test_cluster::can_be_handled): Likewise here.
6324 * tree-switch-conversion.h (get_range): Use wi::to_wide instead
6325 of a folding.
6326
6327 2020-09-29 Martin Liska <mliska@suse.cz>
6328
6329 Revert:
6330 2020-09-22 Martin Liska <mliska@suse.cz>
6331
6332 PR tree-optimization/96979
6333 * doc/invoke.texi: Document new param max-switch-clustering-attempts.
6334 * params.opt: Add new parameter.
6335 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6336 Limit number of attempts.
6337 (bit_test_cluster::find_bit_tests): Likewise.
6338
6339 2020-09-28 Aldy Hernandez <aldyh@redhat.com>
6340
6341 * value-range.h (class irange): Add irange_allocator friend.
6342 (class irange_allocator): New.
6343
6344 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
6345
6346 PR middle-end/96390
6347 * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Handle
6348 alias nodes.
6349
6350 2020-09-28 Paul A. Clarke <pc@us.ibm.com>
6351
6352 * config/rs6000/smmintrin.h (_mm_insert_epi8): New.
6353 (_mm_insert_epi32): New.
6354 (_mm_insert_epi64): New.
6355
6356 2020-09-28 liuhongt <hongtao.liu@intel.com>
6357
6358 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_AMX_TILE_SET,
6359 OPTION_MASK_ISA2_AMX_INT8_SET, OPTION_MASK_ISA2_AMX_BF16_SET,
6360 OPTION_MASK_ISA2_AMX_TILE_UNSET, OPTION_MASK_ISA2_AMX_INT8_UNSET,
6361 OPTION_MASK_ISA2_AMX_BF16_UNSET, OPTION_MASK_ISA2_XSAVE_UNSET):
6362 New marcos.
6363 (ix86_handle_option): Hanlde -mamx-tile, -mamx-int8, -mamx-bf16.
6364 * common/config/i386/i386-cpuinfo.h (processor_types): Add
6365 FEATURE_AMX_TILE, FEATURE_AMX_INT8, FEATURE_AMX_BF16.
6366 * common/config/i386/cpuinfo.h (XSTATE_TILECFG,
6367 XSTATE_TILEDATA, XCR_AMX_ENABLED_MASK): New macro.
6368 (get_available_features): Enable AMX features only if
6369 their states are suoorited by OSXSAVE.
6370 * common/config/i386/i386-isas.h: Add ISA_NAME_TABLE_ENTRY
6371 for amx-tile, amx-int8, amx-bf16.
6372 * config.gcc: Add amxtileintrin.h, amxint8intrin.h,
6373 amxbf16intrin.h to extra headers.
6374 * config/i386/amxbf16intrin.h: New file.
6375 * config/i386/amxint8intrin.h: Ditto.
6376 * config/i386/amxtileintrin.h: Ditto.
6377 * config/i386/cpuid.h (bit_AMX_BF16, bit_AMX_TILE, bit_AMX_INT8):
6378 New macro.
6379 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6380 __AMX_TILE__, __AMX_INT8__, AMX_BF16__.
6381 * config/i386/i386-options.c (ix86_target_string): Add
6382 -mamx-tile, -mamx-int8, -mamx-bf16.
6383 (ix86_option_override_internal): Handle AMX-TILE,
6384 AMX-INT8, AMX-BF16.
6385 * config/i386/i386.h (TARGET_AMX_TILE, TARGET_AMX_TILE_P,
6386 TARGET_AMX_INT8, TARGET_AMX_INT8_P, TARGET_AMX_BF16_P,
6387 PTA_AMX_TILE, PTA_AMX_INT8, PTA_AMX_BF16): New macros.
6388 * config/i386/i386.opt: Add -mamx-tile, -mamx-int8, -mamx-bf16.
6389 * config/i386/immintrin.h: Include amxtileintrin.h,
6390 amxint8intrin.h, amxbf16intrin.h.
6391 * doc/invoke.texi: Document -mamx-tile, -mamx-int8, -mamx-bf16.
6392 * doc/extend.texi: Document amx-tile, amx-int8, amx-bf16.
6393 * doc/sourcebuild.texi ((Effective-Target Keywords, Other
6394 hardware attributes): Document amx_int8, amx_tile, amx_bf16.
6395
6396 2020-09-28 Andrea Corallo <andrea.corallo@arm.com>
6397
6398 * config/aarch64/aarch64-builtins.c
6399 (aarch64_general_expand_builtin): Do not alter value on a
6400 force_reg returned rtx.
6401
6402 2020-09-28 Eric Botcazou <ebotcazou@adacore.com>
6403
6404 * tree-eh.c (lower_try_finally_dup_block): Revert latest change.
6405
6406 2020-09-27 Jan Hubicka <jh@suse.cz>
6407
6408 * ipa-modref.c (modref_summary::useful_p): Fix testing of stores.
6409
6410 2020-09-27 Jakub Jelinek <jakub@redhat.com>
6411
6412 PR middle-end/97073
6413 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
6414 expand_copysign_bit): Check reg_overlap_mentioned_p between target
6415 and operand(s) and if it returns true, force a pseudo as target.
6416
6417 2020-09-27 Xionghu Luo <luoxhu@linux.ibm.com>
6418
6419 * gimple-isel.cc (gimple_expand_vec_set_expr): New function.
6420 (gimple_expand_vec_cond_exprs): Rename to ...
6421 (gimple_expand_vec_exprs): ... this and call
6422 gimple_expand_vec_set_expr.
6423 * internal-fn.c (vec_set_direct): New define.
6424 (expand_vec_set_optab_fn): New function.
6425 (direct_vec_set_optab_supported_p): New define.
6426 * internal-fn.def (VEC_SET): New DEF_INTERNAL_OPTAB_FN.
6427 * optabs.c (can_vec_set_var_idx_p): New function.
6428 * optabs.h (can_vec_set_var_idx_p): New declaration.
6429
6430 2020-09-26 Jan Hubicka <jh@suse.cz>
6431
6432 * ipa-modref.c (analyze_stmt): Do not skip clobbers in early pass.
6433 * ipa-pure-const.c (analyze_stmt): Update comment.
6434
6435 2020-09-26 David Edelsohn <dje.gcc@gmail.com>
6436 Clement Chigot <clement.chigot@atos.com>
6437
6438 * collect2.c (visibility_flag): New.
6439 (main): Detect -fvisibility.
6440 (write_c_file_stat): Push and pop default visibility.
6441
6442 2020-09-26 Jan Hubicka <hubicka@ucw.cz>
6443
6444 * ipa-inline-transform.c: Include ipa-modref-tree.h and ipa-modref.h.
6445 (inline_call): Call ipa_merge_modref_summary_after_inlining.
6446 * ipa-inline.c (ipa_inline): Do not free summaries.
6447 * ipa-modref.c (dump_records): Fix formating.
6448 (merge_call_side_effects): Break out from ...
6449 (analyze_call): ... here; record recursive calls.
6450 (analyze_stmt): Add new parameter RECURSIVE_CALLS.
6451 (analyze_function): Do iterative dataflow on recursive calls.
6452 (compute_parm_map): New function.
6453 (ipa_merge_modref_summary_after_inlining): New function.
6454 (collapse_loads): New function.
6455 (modref_propagate_in_scc): Break out from ...
6456 (pass_ipa_modref::execute): ... here; Do iterative dataflow.
6457 * ipa-modref.h (ipa_merge_modref_summary_after_inlining): Declare.
6458
6459 2020-09-26 Jakub Jelinek <jakub@redhat.com>
6460
6461 * omp-expand.c (expand_omp_simd): Help vectorizer for the collapse == 1
6462 and non-composite collapse > 1 case with non-constant innermost loop
6463 step by precomputing number of iterations before loop and using an
6464 alternate IV from 0 to number of iterations - 1 with step of 1.
6465
6466 2020-09-26 Jan Hubicka <jh@suse.cz>
6467
6468 * ipa-fnsummary.c (dump_ipa_call_summary): Dump
6469 points_to_local_or_readonly_memory flag.
6470 (analyze_function_body): Compute points_to_local_or_readonly_memory
6471 flag.
6472 (remap_edge_change_prob): Rename to ...
6473 (remap_edge_params): ... this one; update
6474 points_to_local_or_readonly_memory.
6475 (remap_edge_summaries): Update.
6476 (read_ipa_call_summary): Stream the new flag.
6477 (write_ipa_call_summary): Likewise.
6478 * ipa-predicate.h (struct inline_param_summary): Add
6479 points_to_local_or_readonly_memory.
6480 (inline_param_summary::equal_to): Update.
6481 (inline_param_summary::useless_p): Update.
6482
6483 2020-09-26 Jan Hubicka <hubicka@ucw.cz>
6484
6485 * ipa-modref-tree.h (modref_ref_node::insert_access): Track if something
6486 changed.
6487 (modref_base_node::insert_ref): Likewise (and add a new optional
6488 argument)
6489 (modref_tree::insert): Likewise.
6490 (modref_tree::merge): Rewrite
6491
6492 2020-09-25 Jan Hubicka <hubicka@ucw.cz>
6493
6494 * doc/invoke.texi: Add -fno-ipa-modref to flags disabled by
6495 -flive-patching.
6496 * opts.c (control_options_for_live_patching): Disable ipa-modref.
6497
6498 2020-09-25 Jan Hubicka <hubicka@ucw.cz>
6499
6500 * ipa-modref.c (analyze_stmt): Fix return value for gimple_clobber.
6501
6502 2020-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6503
6504 * config/aarch64/aarch64-option-extensions.def (rng): Add
6505 cpuinfo string.
6506
6507 2020-09-25 Alex Coplan <alex.coplan@arm.com>
6508
6509 * config/arm/arm-cpus.in (neoverse-v1): Add FP16.
6510
6511 2020-09-25 Martin Liska <mliska@suse.cz>
6512
6513 PR gcov-profile/64636
6514 * value-prof.c (stream_out_histogram_value): Allow negative
6515 values for HIST_TYPE_IOR.
6516
6517 2020-09-25 Tom de Vries <tdevries@suse.de>
6518
6519 * config/nvptx/nvptx.c (nvptx_assemble_integer, nvptx_print_operand):
6520 Use gcc_fallthrough ().
6521
6522 2020-09-25 Richard Biener <rguenther@suse.de>
6523
6524 PR middle-end/96814
6525 * expr.c (store_constructor): Handle VECTOR_BOOLEAN_TYPE_P
6526 CTORs correctly.
6527
6528 2020-09-25 Richard Biener <rguenther@suse.de>
6529
6530 PR middle-end/97207
6531 * vec.h (auto_vec<T>::operator=(auto_vec<T>&&)): Implement.
6532
6533 2020-09-25 Richard Sandiford <richard.sandiford@arm.com>
6534
6535 * config/arm/arm-protos.h (arm_mve_mode_and_operands_type_check):
6536 Delete.
6537 * config/arm/arm.c (arm_coproc_mem_operand_wb): Use a scale factor
6538 of 2 rather than 4 for 16-bit modes.
6539 (arm_mve_mode_and_operands_type_check): Delete.
6540 * config/arm/constraints.md (Uj): Allow writeback for Neon,
6541 but continue to disallow it for MVE.
6542 * config/arm/arm.md (*arm32_mov<HFBF:mode>): Add !TARGET_HAVE_MVE.
6543 * config/arm/vfp.md (*mov_load_vfp_hf16, *mov_store_vfp_hf16): Fold
6544 back into...
6545 (*mov<mode>_vfp_<mode>16): ...here but use Uj for the FPR memory
6546 constraints. Use for base MVE too.
6547
6548 2020-09-25 Richard Biener <rguenther@suse.de>
6549
6550 PR tree-optimization/97199
6551 * tree-if-conv.c (combine_blocks): Remove edges only
6552 after looking at virtual PHI args.
6553
6554 2020-09-25 Jakub Jelinek <jakub@redhat.com>
6555
6556 * omp-low.c (scan_omp_1_stmt): Don't call scan_omp_simd for
6557 collapse > 1 loops as simt doesn't support collapsed loops yet.
6558 * omp-expand.c (expand_omp_for_init_counts, expand_omp_for_init_vars):
6559 Small tweaks to function comment.
6560 (expand_omp_simd): Rewritten collapse > 1 support to only attempt
6561 to vectorize the innermost loop and emit set of outer loops around it.
6562 For non-composite simd with collapse > 1 without broken loop don't
6563 even try to compute number of iterations first. Add support for
6564 non-rectangular simd loops.
6565 (expand_omp_for): Don't sorry_at on non-rectangular simd loops.
6566
6567 2020-09-25 Martin Liska <mliska@suse.cz>
6568
6569 * cgraph.c (cgraph_edge::debug): New.
6570 * cgraph.h (cgraph_edge::debug): New.
6571
6572 2020-09-25 Martin Liska <mliska@suse.cz>
6573
6574 * cgraph.c (cgraph_node::dump): Always print space at the end
6575 of a message. Remove one extra space.
6576
6577 2020-09-24 Alex Coplan <alex.coplan@arm.com>
6578
6579 * config/arm/arm-cpus.in (neoverse-n2): New.
6580 * config/arm/arm-tables.opt: Regenerate.
6581 * config/arm/arm-tune.md: Regenerate.
6582 * doc/invoke.texi: Document support for Neoverse N2.
6583
6584 2020-09-24 Alex Coplan <alex.coplan@arm.com>
6585
6586 * config/aarch64/aarch64-cores.def: Add Neoverse N2.
6587 * config/aarch64/aarch64-tune.md: Regenerate.
6588 * doc/invoke.texi: Document AArch64 support for Neoverse N2.
6589
6590 2020-09-24 Richard Biener <rguenther@suse.de>
6591
6592 * vec.h (auto_vec<T, 0>::auto_vec (auto_vec &&)): New move CTOR.
6593 (auto_vec<T, 0>::operator=(auto_vec &&)): Delete.
6594 * hash-table.h (hash_table::expand): Use std::move when expanding.
6595 * cfgloop.h (get_loop_exit_edges): Return auto_vec<edge>.
6596 * cfgloop.c (get_loop_exit_edges): Adjust.
6597 * cfgloopmanip.c (fix_loop_placement): Likewise.
6598 * ipa-fnsummary.c (analyze_function_body): Likewise.
6599 * ira-build.c (create_loop_tree_nodes): Likewise.
6600 (create_loop_tree_node_allocnos): Likewise.
6601 (loop_with_complex_edge_p): Likewise.
6602 * ira-color.c (ira_loop_edge_freq): Likewise.
6603 * loop-unroll.c (analyze_insns_in_loop): Likewise.
6604 * predict.c (predict_loops): Likewise.
6605 * tree-predcom.c (last_always_executed_block): Likewise.
6606 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
6607 * tree-ssa-loop-im.c (store_motion_loop): Likewise.
6608 * tree-ssa-loop-ivcanon.c (loop_edge_to_cancel): Likewise.
6609 (canonicalize_loop_induction_variables): Likewise.
6610 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
6611 * tree-ssa-loop-niter.c (find_loop_niter): Likewise.
6612 (finite_loop_p): Likewise.
6613 (find_loop_niter_by_eval): Likewise.
6614 (estimate_numbers_of_iterations): Likewise.
6615 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
6616 (may_use_storent_in_loop_p): Likewise.
6617
6618 2020-09-24 Jan Hubicka <jh@suse.cz>
6619
6620 * doc/invoke.texi: Document -fipa-modref, ipa-modref-max-bases,
6621 ipa-modref-max-refs, ipa-modref-max-accesses, ipa-modref-max-tests.
6622 * ipa-modref-tree.c (test_insert_search_collapse): Update.
6623 (test_merge): Update.
6624 (gt_ggc_mx): New function.
6625 * ipa-modref-tree.h (struct modref_access_node): New structure.
6626 (struct modref_ref_node): Add every_access and accesses array.
6627 (modref_ref_node::modref_ref_node): Update ctor.
6628 (modref_ref_node::search): New member function.
6629 (modref_ref_node::collapse): New member function.
6630 (modref_ref_node::insert_access): New member function.
6631 (modref_base_node::insert_ref): Do not collapse base if ref is 0.
6632 (modref_base_node::collapse): Copllapse also refs.
6633 (modref_tree): Add accesses.
6634 (modref_tree::modref_tree): Initialize max_accesses.
6635 (modref_tree::insert): Add access parameter.
6636 (modref_tree::cleanup): New member function.
6637 (modref_tree::merge): Add parm_map; merge accesses.
6638 (modref_tree::copy_from): New member function.
6639 (modref_tree::create_ggc): Add max_accesses.
6640 * ipa-modref.c (dump_access): New function.
6641 (dump_records): Dump accesses.
6642 (dump_lto_records): Dump accesses.
6643 (get_access): New function.
6644 (record_access): Record access.
6645 (record_access_lto): Record access.
6646 (analyze_call): Compute parm_map.
6647 (analyze_function): Update construction of modref records.
6648 (modref_summaries::duplicate): Likewise; use copy_from.
6649 (write_modref_records): Stream accesses.
6650 (read_modref_records): Sream accesses.
6651 (pass_ipa_modref::execute): Update call of merge.
6652 * params.opt (-param=modref-max-accesses): New.
6653 * tree-ssa-alias.c (alias_stats): Add modref_baseptr_tests.
6654 (dump_alias_stats): Update.
6655 (base_may_alias_with_dereference_p): New function.
6656 (modref_may_conflict): Check accesses.
6657 (ref_maybe_used_by_call_p_1): Update call to modref_may_conflict.
6658 (call_may_clobber_ref_p_1): Update call to modref_may_conflict.
6659
6660 2020-09-24 Richard Sandiford <richard.sandiford@arm.com>
6661
6662 * config/arm/arm.md (*stack_protect_combined_set_insn): For non-PIC,
6663 load the address of the canary rather than the address of the
6664 constant pool entry that points to it.
6665 (*stack_protect_combined_test_insn): Likewise.
6666
6667 2020-09-24 Richard Biener <rguenther@suse.de>
6668
6669 PR tree-optimization/97085
6670 * match.pd (mask ? { false,..} : { true, ..} -> ~mask): New.
6671
6672 2020-09-24 Jan Hubicka <hubicka@ucw.cz>
6673
6674 * ipa-modref-tree.h (modref_base::collapse): Release memory.
6675 (modref_tree::create_ggc): New member function.
6676 (modref_tree::colapse): Release memory.
6677 (modref_tree::~modref_tree): New destructor.
6678 * ipa-modref.c (modref_summaries::create_ggc): New function.
6679 (analyze_function): Use create_ggc.
6680 (modref_summaries::duplicate): Likewise.
6681 (read_modref_records): Likewise.
6682 (modref_read): Likewise.
6683
6684 2020-09-24 Alan Modra <amodra@gmail.com>
6685
6686 * config/rs6000/rs6000.c (rs6000_rtx_costs): Pass mode to
6687 reg_or_add_cint_operand and reg_or_sub_cint_operand.
6688
6689 2020-09-24 Alan Modra <amodra@gmail.com>
6690
6691 PR target/93012
6692 * config/rs6000/rs6000.c (num_insns_constant_gpr): Count rldimi
6693 constants correctly.
6694
6695 2020-09-24 Alan Modra <amodra@gmail.com>
6696
6697 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
6698 Conditionally define __PCREL__.
6699
6700 2020-09-24 Alan Modra <amodra@gmail.com>
6701
6702 PR target/97107
6703 * config/rs6000/rs6000-internal.h (struct rs6000_stack): Improve
6704 calls_p comment.
6705 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Likewise.
6706 (rs6000_expand_split_stack_prologue): Emit the prologue for
6707 functions that make a sibling call.
6708
6709 2020-09-24 David Malcolm <dmalcolm@redhat.com>
6710
6711 * doc/analyzer.texi (Analyzer Paths): Add note about
6712 -fno-analyzer-feasibility.
6713 * doc/invoke.texi (Static Analyzer Options): Add
6714 -fno-analyzer-feasibility.
6715
6716 2020-09-24 Paul A. Clarke <pc@us.ibm.com>
6717
6718 * doc/extend.texi: Add 'd' for doubleword variant of
6719 vector insert instruction.
6720
6721 2020-09-23 Martin Sebor <msebor@redhat.com>
6722
6723 * gimple-array-bounds.cc (build_zero_elt_array_type): New function.
6724 (array_bounds_checker::check_mem_ref): Call it.
6725
6726 2020-09-23 Martin Sebor <msebor@redhat.com>
6727
6728 PR middle-end/97175
6729 * builtins.c (maybe_warn_for_bound): Handle both DECLs and EXPRESSIONs
6730 in pad->dst.ref, same is pad->src.ref.
6731
6732 2020-09-23 Jan Hubicka <jh@suse.cz>
6733
6734 * ipa-fnsummary.c (refs_local_or_readonly_memory_p): New function.
6735 (points_to_local_or_readonly_memory_p): New function.
6736 * ipa-fnsummary.h (refs_local_or_readonly_memory_p): Declare.
6737 (points_to_local_or_readonly_memory_p): Declare.
6738 * ipa-modref.c (record_access_p): Use refs_local_or_readonly_memory_p.
6739 * ipa-pure-const.c (check_op): Likewise.
6740
6741 2020-09-23 Tom de Vries <tdevries@suse.de>
6742
6743 * config/nvptx/nvptx.md: Don't allow operand containing sum of
6744 function ref and const.
6745
6746 2020-09-23 Richard Sandiford <richard.sandiford@arm.com>
6747
6748 * config/aarch64/aarch64-protos.h (aarch64_salt_type): New enum.
6749 (aarch64_stack_protect_canary_mem): Declare.
6750 * config/aarch64/aarch64.md (UNSPEC_SALT_ADDR): New unspec.
6751 (stack_protect_set): Forward to stack_protect_combined_set.
6752 (stack_protect_combined_set): New pattern. Use
6753 aarch64_stack_protect_canary_mem.
6754 (reg_stack_protect_address_<mode>): Add a salt operand.
6755 (stack_protect_test): Forward to stack_protect_combined_test.
6756 (stack_protect_combined_test): New pattern. Use
6757 aarch64_stack_protect_canary_mem.
6758 * config/aarch64/aarch64.c (strip_salt): New function.
6759 (strip_offset_and_salt): Likewise.
6760 (tls_symbolic_operand_type): Use strip_offset_and_salt.
6761 (aarch64_stack_protect_canary_mem): New function.
6762 (aarch64_cannot_force_const_mem): Use strip_offset_and_salt.
6763 (aarch64_classify_address): Likewise.
6764 (aarch64_symbolic_address_p): Likewise.
6765 (aarch64_print_operand): Likewise.
6766 (aarch64_output_addr_const_extra): New function.
6767 (aarch64_tls_symbol_p): Use strip_salt.
6768 (aarch64_classify_symbol): Likewise.
6769 (aarch64_legitimate_pic_operand_p): Use strip_offset_and_salt.
6770 (aarch64_legitimate_constant_p): Likewise.
6771 (aarch64_mov_operand_p): Use strip_salt.
6772 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Override.
6773
6774 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6775
6776 PR target/71233
6777 * config/aarch64/arm_neon.h (vreinterpretq_f64_p128,
6778 vreinterpretq_p128_f64): Define.
6779
6780 2020-09-23 Alex Coplan <alex.coplan@arm.com>
6781
6782 * config/arm/arm-cpus.in (neoverse-v1): New.
6783 * config/arm/arm-tables.opt: Regenerate.
6784 * config/arm/arm-tune.md: Regenerate.
6785 * doc/invoke.texi: Document support for Neoverse V1.
6786
6787 2020-09-23 Alex Coplan <alex.coplan@arm.com>
6788
6789 * config/aarch64/aarch64-cores.def: Add Neoverse V1.
6790 * config/aarch64/aarch64-tune.md: Regenerate.
6791 * doc/invoke.texi: Document support for Neoverse V1.
6792
6793 2020-09-23 Richard Biener <rguenther@suse.de>
6794
6795 PR middle-end/96453
6796 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove
6797 LT_EXPR -> NE_EXPR verification and also apply it for
6798 non-constant masks.
6799
6800 2020-09-23 Jan Hubicka <hubicka@ucw.cz>
6801
6802 * ipa-modref.c (modref_summary::lto_useful_p): New member function.
6803 (modref_summary::useful_p): New member function.
6804 (analyze_function): Drop useless summaries.
6805 (modref_write): Skip useless summaries.
6806 (pass_ipa_modref::execute): Drop useless summaries.
6807 * ipa-modref.h (struct GTY): Declare useful_p and lto_useful_p.
6808 * tree-ssa-alias.c (dump_alias_stats): Fix.
6809 (modref_may_conflict): Fix stats.
6810
6811 2020-09-23 Richard Biener <rguenther@suse.de>
6812
6813 PR middle-end/96466
6814 * internal-fn.c (expand_vect_cond_mask_optab_fn): Use
6815 appropriate mode for force_reg.
6816 * tree.c (build_truth_vector_type_for): Pass VOIDmode to
6817 make_vector_type.
6818
6819 2020-09-23 Richard Sandiford <richard.sandiford@arm.com>
6820
6821 * tree-vectorizer.h (determine_peel_for_niter): Delete in favor of...
6822 (vect_determine_partial_vectors_and_peeling): ...this new function.
6823 * tree-vect-loop-manip.c (vect_update_epilogue_niters): New function.
6824 Reject using vector epilogue loops for single iterations. Install
6825 the constant number of epilogue loop iterations in the associated
6826 loop_vinfo. Rely on vect_determine_partial_vectors_and_peeling
6827 to do the main part of the test.
6828 (vect_do_peeling): Use vect_update_epilogue_niters to handle
6829 epilogue loops with a known number of iterations. Skip recomputing
6830 the number of iterations later in that case. Otherwise, use
6831 vect_determine_partial_vectors_and_peeling to decide whether the
6832 epilogue loop needs to use partial vectors or peeling.
6833 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Set the
6834 default can_use_partial_vectors_p to false if partial-vector-usage=0.
6835 (determine_peel_for_niter): Remove in favor of...
6836 (vect_determine_partial_vectors_and_peeling): ...this new function,
6837 split out from...
6838 (vect_analyze_loop_2): ...here. Reflect the vect_verify_full_masking
6839 and vect_verify_loop_lens results in CAN_USE_PARTIAL_VECTORS_P
6840 rather than USING_PARTIAL_VECTORS_P.
6841
6842 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6843
6844 PR target/71233
6845 * config/aarch64/aarch64-simd-builtins.def (frintn): Use BUILTIN_VHSDF_HSDF
6846 for modes. Remove explicit hf instantiation.
6847 * config/aarch64/arm_neon.h (vrndns_f32): Define.
6848
6849 2020-09-23 Richard Biener <rguenther@suse.de>
6850
6851 PR tree-optimization/97173
6852 * tree-vect-loop.c (vectorizable_live_operation): Extend
6853 assert to also conver element conversions.
6854
6855 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6856
6857 PR target/71233
6858 * config/aarch64/arm_neon.h (vtrn1q_p64, vtrn2q_p64, vuzp1q_p64,
6859 vuzp2q_p64, vzip1q_p64, vzip2q_p64): Define.
6860
6861 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6862
6863 PR target/71233
6864 * config/aarch64/arm_neon.h (vldrq_p128): Define.
6865
6866 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6867
6868 PR target/71233
6869 * config/aarch64/arm_neon.h (vstrq_p128): Define.
6870
6871 2020-09-23 Richard Biener <rguenther@suse.de>
6872
6873 PR tree-optimization/97151
6874 * tree-ssa-structalias.c (find_func_aliases_for_call):
6875 DECL_IS_REPLACEABLE_OPERATOR_DELETE_P has no effect on
6876 arguments.
6877
6878 2020-09-23 Richard Biener <rguenther@suse.de>
6879
6880 PR middle-end/97162
6881 * alias.c (compare_base_decls): Use DECL_HARD_REGISTER
6882 and guard with VAR_P.
6883
6884 2020-09-23 Martin Liska <mliska@suse.cz>
6885
6886 PR gcov-profile/97069
6887 * profile.c (branch_prob): Line number must be at least 1.
6888
6889 2020-09-23 Tom de Vries <tdevries@suse.de>
6890
6891 PR target/97158
6892 * config/nvptx/nvptx.c (nvptx_output_mov_insn): Handle move from
6893 DF subreg to DF reg.
6894
6895 2020-09-23 David Malcolm <dmalcolm@redhat.com>
6896
6897 * Makefile.in: Add $(ZLIBINC) to CFLAGS-analyzer/engine.o.
6898
6899 2020-09-22 Jan Hubicka <jh@suse.cz>
6900
6901 * ipa-modref.c (analyze_stmt): Ignore gimple clobber.
6902
6903 2020-09-22 Jan Hubicka <jh@suse.cz>
6904
6905 * ipa-modref-tree.c: Add namespace selftest.
6906 (modref_tree_c_tests): Rename to ...
6907 (ipa_modref_tree_c_tests): ... this.
6908 * ipa-modref.c (pass_modref): Remove destructor.
6909 (ipa_modref_c_finalize): New function.
6910 * ipa-modref.h (ipa_modref_c_finalize): Declare.
6911 * selftest-run-tests.c (selftest::run_tests): Call
6912 ipa_modref_c_finalize.
6913 * selftest.h (ipa_modref_tree_c_tests): Declare.
6914 * toplev.c: Include ipa-modref-tree.h and ipa-modref.h
6915 (toplev::finalize): Call ipa_modref_c_finalize.
6916
6917 2020-09-22 David Malcolm <dmalcolm@redhat.com>
6918
6919 * doc/analyzer.texi (Other Debugging Techniques): Mention
6920 -fdump-analyzer-json.
6921 * doc/invoke.texi (Static Analyzer Options): Add
6922 -fdump-analyzer-json.
6923
6924 2020-09-22 David Faust <david.faust@oracle.com>
6925
6926 * config/bpf/bpf.md: Add defines for signed div and mod operators.
6927
6928 2020-09-22 Martin Liska <mliska@suse.cz>
6929
6930 PR tree-optimization/96979
6931 * doc/invoke.texi: Document new param max-switch-clustering-attempts.
6932 * params.opt: Add new parameter.
6933 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
6934 Limit number of attempts.
6935 (bit_test_cluster::find_bit_tests): Likewise.
6936
6937 2020-09-22 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
6938
6939 * config/s390/s390.md ("*cmp<mode>_ccs_0", "*cmp<mode>_ccz_0",
6940 "*cmp<mode>_ccs_0_fastmath"): Basically change "*cmp<mode>_ccs_0" into
6941 "*cmp<mode>_ccz_0" and for fast math add "*cmp<mode>_ccs_0_fastmath".
6942
6943 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6944
6945 PR target/71233
6946 * config/aarch64/arm_neon.h (vcls_u8, vcls_u16, vcls_u32,
6947 vclsq_u8, vclsq_u16, vclsq_u32): Define.
6948
6949 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6950
6951 PR target/71233
6952 * config/aarch64/arm_neon.h (vceqq_p64, vceqz_p64, vceqzq_p64): Define.
6953
6954 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6955
6956 PR target/71233
6957 * config/aarch64/arm_neon.h (vadd_p8, vadd_p16, vadd_p64, vaddq_p8,
6958 vaddq_p16, vaddq_p64, vaddq_p128): Define.
6959
6960 2020-09-22 Jakub Jelinek <jakub@redhat.com>
6961
6962 * params.opt (--param=modref-max-tests=): Fix typo in help text:
6963 perofmed -> performed.
6964 * common.opt: Fix typo: incrmeental -> incremental.
6965 * ipa-modref.c: Fix typos: recroding -> recording, becaue -> because,
6966 analsis -> analysis.
6967 (class modref_summaries): Fix typo: betweehn -> between.
6968 (analyze_call): Fix typo: calle -> callee.
6969 (read_modref_records): Fix typo: expcted -> expected.
6970 (pass_ipa_modref::execute): Fix typo: calle -> callee.
6971
6972 2020-09-22 Jakub Jelinek <jakub@redhat.com>
6973
6974 * common.opt (-fipa-modref): Add dot at the end of option help.
6975 * params.opt (--param=modref-max-tests=): Likewise.
6976
6977 2020-09-21 Marek Polacek <polacek@redhat.com>
6978
6979 * doc/invoke.texi: Document -Wctad-maybe-unsupported.
6980
6981 2020-09-21 Richard Biener <rguenther@suse.de>
6982
6983 PR tree-optimization/97139
6984 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Only mark the
6985 pattern root, track visited vectorized stmts.
6986
6987 2020-09-21 Jakub Jelinek <jakub@redhat.com>
6988
6989 * configure.ac: Use mallinfo mallinfo2 as first operand of
6990 gcc_AC_CHECK_DECLS rather than [mallinfo, mallinfo2].
6991 * configure: Regenerated.
6992 * config.in: Regenerated.
6993
6994 2020-09-21 Andrea Corallo <andrea.corallo@arm.com>
6995
6996 * config/aarch64/aarch64-builtins.c
6997 (aarch64_general_expand_builtin): Use expand machinery not to
6998 alter the value of an rtx returned by force_reg.
6999
7000 2020-09-21 Richard Biener <rguenther@suse.de>
7001
7002 PR tree-optimization/97135
7003 * tree-ssa-loop-im.c (sm_seq_push_down): Do not ignore
7004 self-dependences.
7005
7006 2020-09-21 Martin Liska <mliska@suse.cz>
7007
7008 PR tree-optimization/96915
7009 * tree-switch-conversion.c (switch_conversion::expand): Accept
7010 also integer constants.
7011
7012 2020-09-21 Martin Liska <mliska@suse.cz>
7013
7014 * print-tree.c (print_node): Remove extra space.
7015
7016 2020-09-21 Andrea Corallo <andrea.corallo@arm.com>
7017
7018 PR target/96968
7019 * config/aarch64/aarch64-builtins.c
7020 (aarch64_expand_fpsr_fpcr_setter): Fix comment nit.
7021 (aarch64_expand_fpsr_fpcr_getter): New function, expand these
7022 getters using expand_insn machinery.
7023 (aarch64_general_expand_builtin): Make use of.
7024
7025 2020-09-21 Martin Liska <mliska@suse.cz>
7026
7027 * ggc-common.c (ggc_rlimit_bound): Use ONE_? macro.
7028 (ggc_min_expand_heuristic): Likewise.
7029 (ggc_min_heapsize_heuristic): Likewise.
7030 * ggc-page.c (ggc_collect): Likewise.
7031 * system.h (ONE_G): Likewise.
7032
7033 2020-09-21 Martin Liska <mliska@suse.cz>
7034
7035 * ggc-common.c (ggc_prune_overhead_list): Use SIZE_AMOUNT.
7036 * ggc-page.c (release_pages): Likewise.
7037 (ggc_collect): Likewise.
7038 (ggc_trim): Likewise.
7039 (ggc_grow): Likewise.
7040 * timevar.c (timer::print): Likewise.
7041
7042 2020-09-21 Martin Liska <mliska@suse.cz>
7043
7044 * config.in: Regenerate.
7045 * configure: Likewise.
7046 * configure.ac: Detect for mallinfo2.
7047 * ggc-common.c (defined): Use it.
7048 * system.h: Handle also HAVE_MALLINFO2.
7049
7050 2020-09-20 John David Anglin < danglin@gcc.gnu.org>
7051
7052 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Delete.
7053 * config/pa/pa64-hpux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
7054 (ENDFILE_SPEC): Link with libgcc_stub.a and mill.a.
7055 * config/pa/pa32-linux.h (ENDFILE_SPEC): Link with libgcc.a.
7056
7057 2020-09-20 Jan Hubicka <hubicka@ucw.cz>
7058
7059 * ipa-modref.c (dump_lto_records): Fix ICE.
7060
7061 2020-09-20 David Cepelik <d@dcepelik.cz>
7062 Jan Hubicka <hubicka@ucw.cz>
7063
7064 * Makefile.in: Add ipa-modref.c and ipa-modref-tree.c.
7065 * alias.c: (reference_alias_ptr_type_1): Export.
7066 * alias.h (reference_alias_ptr_type_1): Declare.
7067 * common.opt (fipa-modref): New.
7068 * gengtype.c (open_base_files): Add ipa-modref-tree.h and ipa-modref.h
7069 * ipa-modref-tree.c: New file.
7070 * ipa-modref-tree.h: New file.
7071 * ipa-modref.c: New file.
7072 * ipa-modref.h: New file.
7073 * lto-section-in.c (lto_section_name): Add ipa_modref.
7074 * lto-streamer.h (enum lto_section_type): Add LTO_section_ipa_modref.
7075 * opts.c (default_options_table): Enable ipa-modref at -O1+.
7076 * params.opt (-param=modref-max-bases, -param=modref-max-refs,
7077 -param=modref-max-tests): New params.
7078 * passes.def: Schedule pass_modref and pass_ipa_modref.
7079 * timevar.def (TV_IPA_MODREF): New timevar.
7080 (TV_TREE_MODREF): New timevar.
7081 * tree-pass.h (make_pass_modref): Declare.
7082 (make_pass_ipa_modref): Declare.
7083 * tree-ssa-alias.c (dump_alias_stats): Include ipa-modref-tree.h
7084 and ipa-modref.h
7085 (alias_stats): Add modref_use_may_alias, modref_use_no_alias,
7086 modref_clobber_may_alias, modref_clobber_no_alias, modref_tests.
7087 (dump_alias_stats): Dump new stats.
7088 (nonoverlapping_array_refs_p): Fix formating.
7089 (modref_may_conflict): New function.
7090 (ref_maybe_used_by_call_p_1): Use it.
7091 (call_may_clobber_ref_p_1): Use it.
7092 (call_may_clobber_ref_p): Update.
7093 (stmt_may_clobber_ref_p_1): Update.
7094 * tree-ssa-alias.h (call_may_clobber_ref_p_1): Update.
7095
7096 2020-09-19 Martin Sebor <msebor@redhat.com>
7097
7098 PR middle-end/82608
7099 PR middle-end/94195
7100 PR c/50584
7101 PR middle-end/84051
7102 * gimple-array-bounds.cc (get_base_decl): New function.
7103 (get_ref_size): New function.
7104 (trailing_array): New function.
7105 (array_bounds_checker::check_array_ref): Call them. Handle arrays
7106 declared in function parameters.
7107 (array_bounds_checker::check_mem_ref): Same. Handle references to
7108 dynamically allocated arrays.
7109
7110 2020-09-19 Martin Sebor <msebor@redhat.com>
7111
7112 PR c/50584
7113 * builtins.c (warn_for_access): Add argument. Distinguish between
7114 reads and writes.
7115 (check_access): Add argument. Distinguish between reads and writes.
7116 (gimple_call_alloc_size): Set range even on failure.
7117 (gimple_parm_array_size): New function.
7118 (compute_objsize): Call it.
7119 (check_memop_access): Pass check_access an additional argument.
7120 (expand_builtin_memchr, expand_builtin_strcat): Same.
7121 (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
7122 (expand_builtin_stpncpy, check_strncat_sizes): Same.
7123 (expand_builtin_strncat, expand_builtin_strncpy): Same.
7124 (expand_builtin_memcmp): Same.
7125 * builtins.h (compute_objsize): Declare a new overload.
7126 (gimple_parm_array_size): Declare.
7127 (check_access): Add argument.
7128 * calls.c (append_attrname): Simplify.
7129 (maybe_warn_rdwr_sizes): Handle internal attribute access.
7130 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid adding
7131 quotes.
7132
7133 2020-09-19 Martin Sebor <msebor@redhat.com>
7134
7135 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Handle attribute
7136 access internal representation of arrays.
7137
7138 2020-09-19 Martin Sebor <msebor@redhat.com>
7139
7140 PR c/50584
7141 * attribs.c (decl_attributes): Also pass decl along with type
7142 attributes to handlers.
7143 (init_attr_rdwr_indices): Change second argument to attribute chain.
7144 Handle internal attribute representation in addition to external.
7145 (get_parm_access): New function.
7146 (attr_access::to_internal_string): Define new member function.
7147 (attr_access::to_external_string): Define new member function.
7148 (attr_access::vla_bounds): Define new member function.
7149 * attribs.h (struct attr_access): Declare new members.
7150 (attr_access::from_mode_char): Define new member function.
7151 (get_parm_access): Declare new function.
7152 * calls.c (initialize_argument_information): Pass function type
7153 attributes to init_attr_rdwr_indices.
7154 * doc/invoke.texi (-Warray-parameter, -Wvla-parameter): Document.
7155 * tree-pretty-print.c (dump_generic_node): Correct handling of
7156 qualifiers.
7157 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Same.
7158 * tree.h (access_mode): Add new enumerator.
7159
7160 2020-09-19 Sandra Loosemore <sandra@codesourcery.com>
7161
7162 * doc/generic.texi (Basic Statements): Document SWITCH_EXPR here,
7163 not SWITCH_STMT.
7164 (Statements for C and C++): Rename node to reflect what
7165 the introduction already says about sharing between C and C++
7166 front ends. Copy-edit and correct documentation for structured
7167 loops and switch.
7168
7169 2020-09-19 liuhongt <hongtao.liu@intel.com>
7170
7171 PR target/96861
7172 * config/i386/x86-tune-costs.h (skylake_cost): increase rtx
7173 cost of sse_to_integer from 2 to 6.
7174
7175 2020-09-18 Sudi Das <sudi.das@arm.com>
7176 Omar Tahir <omar.tahir@arm.com>
7177
7178 * config/arm/thumb2.md (*thumb2_csneg): New.
7179 (*thumb2_negscc): Don't match if TARGET_COND_ARITH.
7180 * config/arm/arm.md (*if_neg_move): Don't match if TARGET_COND_ARITH.
7181
7182 2020-09-18 Sudi Das <sudi.das@arm.com>
7183 Omar Tahir <omar.tahir@arm.com>
7184
7185 * config/arm/thumb2.md (*thumb2_csinc): New.
7186 (*thumb2_cond_arith): Generate CINC where possible.
7187
7188 2020-09-18 Sudi Das <sudi.das@arm.com>
7189 Omar Tahir <omar.tahir@arm.com>
7190
7191 * config/arm/arm.h (TARGET_COND_ARITH): New macro.
7192 * config/arm/arm.c (arm_have_conditional_execution): Return false if
7193 TARGET_COND_ARITH before reload.
7194 * config/arm/predicates.md (arm_comparison_operation): Returns true if
7195 comparing CC_REGNUM with constant zero.
7196 * config/arm/thumb2.md (*thumb2_csinv): New.
7197 (*thumb2_movcond): Don't match if TARGET_COND_ARITH.
7198
7199 2020-09-18 Richard Sandiford <richard.sandiford@arm.com>
7200
7201 PR middle-end/91957
7202 * ira.c (ira_setup_eliminable_regset): Skip the special elimination
7203 handling of the hard frame pointer if the hard frame pointer is fixed.
7204
7205 2020-09-18 Richard Biener <rguenther@suse.de>
7206
7207 PR tree-optimization/97081
7208 * tree-vect-patterns.c (vect_recog_rotate_pattern): Use the
7209 precision of the shifted operand to determine the mask.
7210
7211 2020-09-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7212
7213 * config/msp430/msp430.c (msp430_print_operand): Update comment.
7214 Cast to long when printing values formatted as long.
7215 Support 'd', 'e', 'f' and 'g' modifiers.
7216 Extract operand value with a single operation for all modifiers.
7217 * doc/extend.texi (msp430Operandmodifiers): New.
7218
7219 2020-09-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7220
7221 * config/msp430/msp430.c (increment_stack): Mark insns which increment
7222 the stack as frame_related.
7223 (msp430_expand_prologue): Add comments.
7224 (msp430_expand_epilogue): Mark insns which decrement
7225 the stack as frame_related.
7226 Add reg_note to stack pop insns describing position of register
7227 variables on the stack.
7228
7229 2020-09-18 Andrew Stubbs <ams@codesourcery.com>
7230
7231 * config/gcn/gcn-tree.c (execute_omp_gcn): Delete.
7232 (make_pass_omp_gcn): Delete.
7233 * config/gcn/t-gcn-hsa (PASSES_EXTRA): Delete.
7234 * config/gcn/gcn-passes.def: Removed.
7235
7236 2020-09-18 Alex Coplan <alex.coplan@arm.com>
7237
7238 * cfgloop.h (nb_iter_bound): Reword comment describing is_exit.
7239
7240 2020-09-18 Richard Biener <rguenther@suse.de>
7241
7242 PR tree-optimization/97095
7243 * tree-vect-loop.c (vectorizable_live_operation): Get
7244 the SLP vector type from the correct object.
7245
7246 2020-09-18 Richard Biener <rguenther@suse.de>
7247
7248 PR tree-optimization/97089
7249 * tree-ssa-sccvn.c (visit_nary_op): Do not replace unsigned
7250 divisions.
7251
7252 2020-09-18 Richard Biener <rguenther@suse.de>
7253
7254 PR tree-optimization/97098
7255 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Do not
7256 recurse to children when all stmts were already visited.
7257
7258 2020-09-17 Sergei Trofimovich <siarheit@google.com>
7259
7260 * profile.c (sort_hist_values): Clarify hist format:
7261 start with a value, not counter.
7262
7263 2020-09-17 Yeting Kuo <fakepaper56@gmail.com>
7264
7265 * config/riscv/riscv.h (CSW_MAX_OFFSET): Fix typo.
7266
7267 2020-09-17 Patrick Palka <ppalka@redhat.com>
7268
7269 PR c/80076
7270 * gensupport.c (alter_attrs_for_subst_insn) <case SET_ATTR>:
7271 Reduce indentation of misleadingly indented code fragment.
7272 * lra-constraints.c (multi_block_pseudo_p): Likewise.
7273 * sel-sched-ir.c (merge_fences): Likewise.
7274
7275 2020-09-17 Martin Sebor <msebor@redhat.com>
7276
7277 * doc/invoke.texi (-Wuninitialized): Document -Wuninitialized for
7278 allocated objects.
7279 (-Wmaybe-uninitialized): Same.
7280
7281 2020-09-17 Richard Biener <rguenther@suse.de>
7282
7283 * tree-ssa-sccvn.c (visit_nary_op): Value-number multiplications
7284 and divisions to negates of available negated forms.
7285
7286 2020-09-17 Eric Botcazou <ebotcazou@adacore.com>
7287
7288 PR middle-end/97078
7289 * function.c (use_register_for_decl): Test cfun->tail_call_marked
7290 for a parameter here instead of...
7291 (assign_parm_setup_reg): ...here.
7292
7293 2020-09-17 Aldy Hernandez <aldyh@redhat.com>
7294
7295 * range-op.cc (multi_precision_range_tests): Normalize symbolics when copying to a
7296 multi-range.
7297 * value-range.cc (irange::copy_legacy_range): Add test.
7298
7299 2020-09-17 Jan Hubicka <jh@suse.cz>
7300
7301 * cgraph.c (cgraph_node::get_availability): Fix availability of
7302 functions in other partitions
7303 * varpool.c (varpool_node::get_availability): Likewise.
7304
7305 2020-09-17 Jojo R <jiejie_rong@c-sky.com>
7306
7307 * config/csky/csky.opt (msim): New.
7308 * doc/invoke.texi (C-SKY Options): Document -msim.
7309 * config/csky/csky-elf.h (LIB_SPEC): Add simulator runtime.
7310
7311 2020-09-17 Sergei Trofimovich <siarheit@google.com>
7312
7313 * doc/cppenv.texi: Use @code{} instead of @samp{@command{}}
7314 around 'date %s'.
7315
7316 2020-09-17 liuhongt <hongtao.liu@intel.com>
7317
7318 * common/config/i386/i386-common.c
7319 (OPTION_MASK_ISA_AVX_UNSET): Remove OPTION_MASK_ISA_XSAVE_UNSET.
7320 (OPTION_MASK_ISA_XSAVE_UNSET): Add OPTION_MASK_ISA_AVX_UNSET.
7321
7322 2020-09-16 Alexandre Oliva <oliva@adacore.com>
7323
7324 * config/rs6000/rs6000.c (have_compare_and_set_mask): Use
7325 E_*mode in cases.
7326
7327 2020-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
7328
7329 * config/rs6000/predicates.md (current_file_function_operand):
7330 Remove argument from rs6000_pcrel_p call.
7331 * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
7332 Likewise.
7333 (rs6000_global_entry_point_prologue_needed_p): Likewise.
7334 (rs6000_output_function_prologue): Likewise.
7335 * config/rs6000/rs6000-protos.h (rs6000_function_pcrel_p): New
7336 prototype.
7337 (rs6000_pcrel_p): Remove argument.
7338 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
7339 argument from rs6000_pcrel_p call.
7340 (rs6000_call_template_1): Likewise.
7341 (rs6000_indirect_call_template_1): Likewise.
7342 (rs6000_longcall_ref): Likewise.
7343 (rs6000_call_aix): Likewise.
7344 (rs6000_sibcall_aix): Likewise.
7345 (rs6000_function_pcrel_p): Rename from rs6000_pcrel_p.
7346 (rs6000_pcrel_p): Rewrite.
7347 * config/rs6000/rs6000.md (*pltseq_plt_pcrel<mode>): Remove
7348 argument from rs6000_pcrel_p call.
7349 (*call_local<mode>): Likewise.
7350 (*call_value_local<mode>): Likewise.
7351 (*call_nonlocal_aix<mode>): Likewise.
7352 (*call_value_nonlocal_aix<mode>): Likewise.
7353 (*call_indirect_pcrel<mode>): Likewise.
7354 (*call_value_indirect_pcrel<mode>): Likewise.
7355
7356 2020-09-16 Marek Polacek <polacek@redhat.com>
7357
7358 PR preprocessor/96935
7359 * input.c (get_substring_ranges_for_loc): Return if start.column
7360 is less than 1.
7361
7362 2020-09-16 Martin Sebor <msebor@redhat.com>
7363
7364 PR middle-end/96295
7365 * tree-ssa-uninit.c (maybe_warn_operand): Work harder to avoid
7366 warning for objects of empty structs
7367
7368 2020-09-16 Eric Botcazou <ebotcazou@adacore.com>
7369
7370 * tree-eh.c (lower_try_finally_dup_block): Backward propagate slocs
7371 to stack restore builtin calls.
7372 (cleanup_all_empty_eh): Do again a post-order traversal of the EH
7373 region tree.
7374
7375 2020-09-16 Andrea Corallo <andrea.corallo@arm.com>
7376
7377 * tree-vect-loop.c (vect_need_peeling_or_partial_vectors_p): New
7378 function.
7379 (vect_analyze_loop_2): Make use of it not to select partial
7380 vectors if no peel is required.
7381 (determine_peel_for_niter): Move out some logic into
7382 'vect_need_peeling_or_partial_vectors_p'.
7383
7384 2020-09-16 H.J. Lu <hjl.tools@gmail.com>
7385
7386 PR target/97032
7387 * cfgexpand.c (asm_clobber_reg_kind): Set sp_is_clobbered_by_asm
7388 to true if the stack pointer is clobbered by asm statement.
7389 * emit-rtl.h (rtl_data): Add sp_is_clobbered_by_asm.
7390 * config/i386/i386.c (ix86_get_drap_rtx): Set need_drap to true
7391 if the stack pointer is clobbered by asm statement.
7392
7393 2020-09-16 Ilya Leoshkevich <iii@linux.ibm.com>
7394
7395 * config/s390/vector.md(*vec_tf_to_v1tf): Use "f" instead of "v"
7396 for the source operand.
7397
7398 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7399
7400 * config.gcc (C-SKY): Set use_gcc_stdint=wrap for elf target.
7401
7402 2020-09-16 Richard Biener <rguenther@suse.de>
7403
7404 * tree-vectorizer.h (_stmt_vec_info::num_slp_uses): Remove.
7405 (STMT_VINFO_NUM_SLP_USES): Likewise.
7406 (vect_free_slp_instance): Adjust.
7407 (vect_update_shared_vectype): Declare.
7408 * tree-vectorizer.c (vec_info::~vec_info): Adjust.
7409 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7410 (vectorizable_live_operation): Use vector type from
7411 SLP_TREE_REPRESENTATIVE.
7412 (vect_transform_loop): Adjust.
7413 * tree-vect-data-refs.c (vect_slp_analyze_node_alignment):
7414 Set the shared vector type.
7415 * tree-vect-slp.c (vect_free_slp_tree): Remove final_p
7416 parameter, remove STMT_VINFO_NUM_SLP_USES updating.
7417 (vect_free_slp_instance): Adjust.
7418 (vect_create_new_slp_node): Remove STMT_VINFO_NUM_SLP_USES
7419 updating.
7420 (vect_update_shared_vectype): Always compare with the
7421 present vector type, update if NULL.
7422 (vect_build_slp_tree_1): Do not update the shared vector
7423 type here.
7424 (vect_build_slp_tree_2): Adjust.
7425 (slp_copy_subtree): Likewise.
7426 (vect_attempt_slp_rearrange_stmts): Likewise.
7427 (vect_analyze_slp_instance): Likewise.
7428 (vect_analyze_slp): Likewise.
7429 (vect_slp_analyze_node_operations_1): Update the shared
7430 vector type.
7431 (vect_slp_analyze_operations): Adjust.
7432 (vect_slp_analyze_bb_1): Likewise.
7433
7434 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7435
7436 * config/csky/t-csky-linux (CSKY_MULTILIB_OSDIRNAMES): Use mfloat-abi.
7437 (MULTILIB_OPTIONS): Likewise.
7438 * config/csky/t-csky-elf (MULTILIB_OPTIONS): Likewise.
7439 (MULTILIB_EXCEPTIONS): Likewise.
7440
7441 2020-09-16 Jakub Jelinek <jakub@redhat.com>
7442
7443 * config/arm/arm.c (arm_option_restore): Comment out opts argument
7444 name to avoid unused parameter warnings.
7445
7446 2020-09-16 Jakub Jelinek <jakub@redhat.com>
7447
7448 * optc-save-gen.awk: In cl_optimization_stream_out use
7449 bp_pack_var_len_{int,unsigned} instead of bp_pack_value. In
7450 cl_optimization_stream_in use bp_unpack_var_len_{int,unsigned}
7451 instead of bp_unpack_value. Formatting fix.
7452
7453 2020-09-16 Jakub Jelinek <jakub@redhat.com>
7454
7455 PR tree-optimization/97053
7456 * gimple-ssa-store-merging.c (check_no_overlap): Add FIRST_ORDER,
7457 START, FIRST_EARLIER and LAST_EARLIER arguments. Return false if
7458 any stores between FIRST_EARLIER inclusive and LAST_EARLIER exclusive
7459 has order in between FIRST_ORDER and LAST_ORDER and overlaps the to
7460 be merged store.
7461 (imm_store_chain_info::try_coalesce_bswap): Add FIRST_EARLIER argument.
7462 Adjust check_no_overlap caller.
7463 (imm_store_chain_info::coalesce_immediate_stores): Add first_earlier
7464 and last_earlier variables, adjust them during iterations. Adjust
7465 check_no_overlap callers, call check_no_overlap even when extending
7466 overlapping stores by extra INTEGER_CST stores.
7467
7468 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7469
7470 * config/csky/csky-linux-elf.h (GLIBC_DYNAMIC_LINKER): Use mfloat-abi.
7471
7472 2020-09-16 Kewen Lin <linkw@linux.ibm.com>
7473
7474 PR target/97019
7475 * config/rs6000/rs6000-p8swap.c (find_alignment_op): Adjust to
7476 support multiple defintions which are all AND operations with
7477 the mask -16B.
7478 (recombine_lvx_pattern): Adjust to handle multiple AND operations
7479 from find_alignment_op.
7480 (recombine_stvx_pattern): Likewise.
7481
7482 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
7483
7484 * config/csky/csky.md (CSKY_NPARM_FREGS): New.
7485 (call_value_internal_vs/d): New.
7486 (untyped_call): New.
7487 * config/csky/csky.h (TARGET_SINGLE_FPU): New.
7488 (TARGET_DOUBLE_FPU): New.
7489 (FUNCTION_VARG_REGNO_P): New.
7490 (CSKY_VREG_MODE_P): New.
7491 (FUNCTION_VARG_MODE_P): New.
7492 (CUMULATIVE_ARGS): Add extra regs info.
7493 (INIT_CUMULATIVE_ARGS): Use csky_init_cumulative_args.
7494 (FUNCTION_ARG_REGNO_P): Use FUNCTION_VARG_REGNO_P.
7495 * config/csky/csky-protos.h (csky_init_cumulative_args): Extern.
7496 * config/csky/csky.c (csky_cpu_cpp_builtins): Support TARGET_HARD_FLOAT_ABI.
7497 (csky_function_arg): Likewise.
7498 (csky_num_arg_regs): Likewise.
7499 (csky_function_arg_advance): Likewise.
7500 (csky_function_value): Likewise.
7501 (csky_libcall_value): Likewise.
7502 (csky_function_value_regno_p): Likewise.
7503 (csky_arg_partial_bytes): Likewise.
7504 (csky_setup_incoming_varargs): Likewise.
7505 (csky_init_cumulative_args): New.
7506
7507 2020-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
7508
7509 * config/rs6000/rs6000-call.c (altivec_init_builtins): Fix name
7510 of __builtin_altivec_xst_len_r.
7511
7512 2020-09-15 Ilya Leoshkevich <iii@linux.ibm.com>
7513
7514 * rtlanal.c (set_noop_p): Treat subregs of registers in
7515 different modes conservatively.
7516
7517 2020-09-15 Richard Biener <rguenther@suse.de>
7518
7519 * tree-vect-slp.c (vect_get_and_check_slp_defs): Make swap
7520 argument by-value and do not change it.
7521 (vect_build_slp_tree_2): Adjust, set swap to NULL after last
7522 use.
7523
7524 2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
7525
7526 PR tree-optimization/94234
7527 * match.pd (T)(A) +- (T)(B) -> (T)(A +- B): New simplification.
7528
7529 2020-09-15 Segher Boessenkool <segher@kernel.crashing.org>
7530
7531 PR rtl-optimization/96475
7532 * bb-reorder.c (duplicate_computed_gotos): If we did anything, run
7533 cleanup_cfg.
7534
7535 2020-09-15 Richard Biener <rguenther@suse.de>
7536
7537 * tree-vect-slp.c (vect_build_slp_tree_2): Also consider
7538 building an operand from scalars when building it did not
7539 fail fatally but avoid messing with the upcall splitting
7540 of groups.
7541
7542 2020-09-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
7543
7544 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Do not
7545 check +D32 for CMSE if -mfloat-abi=soft
7546
7547 2020-09-15 liuhongt <hongtao.liu@intel.com>
7548
7549 PR target/96744
7550 * config/i386/x86-tune-costs.h (struct processor_costs):
7551 Increase mask <-> integer cost for non AVX512 target to avoid
7552 spill gpr to mask. Also retune mask <-> integer and
7553 mask_load/store for skylake_cost.
7554
7555 2020-09-15 Jakub Jelinek <jakub@redhat.com>
7556
7557 PR target/97028
7558 * config/i386/sse.md (mul<mode>3<mask_name>_bcs,
7559 <avx512>_div<mode>3<mask_name>_bcst): Use <avx512bcst> instead of
7560 <<avx512bcst>>.
7561
7562 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
7563
7564 PR fortran/96668
7565 * gimplify.c (gimplify_omp_for): Add 'bool openacc' argument;
7566 update omp_finish_clause calls.
7567 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses,
7568 gimplify_expr, gimplify_omp_loop): Update omp_finish_clause
7569 and/or gimplify_for calls.
7570 * langhooks-def.h (lhd_omp_finish_clause): Add bool openacc arg.
7571 * langhooks.c (lhd_omp_finish_clause): Likewise.
7572 * langhooks.h (lhd_omp_finish_clause): Likewise.
7573 * omp-low.c (scan_sharing_clauses): Keep GOMP_MAP_TO_PSET cause for
7574 'declare target' vars.
7575
7576 2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
7577
7578 PR tree-optimization/94234
7579 * genmatch.c (dt_simplify::gen_1): Emit check on final simplification
7580 result when "!" is specified on toplevel output expr.
7581 * match.pd ((A * C) +- (B * C) -> (A +- B) * C): Allow folding on expr
7582 with multi-use operands if final result is a simple gimple value.
7583
7584 2020-09-14 Sergei Trofimovich <siarheit@google.com>
7585
7586 * doc/invoke.texi: fix '-fprofile-reproducibility' option
7587 spelling in manual.
7588
7589 2020-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7590
7591 * config/bpf/bpf.md ("nop"): Re-define as `ja 0'.
7592
7593 2020-09-14 Eric Botcazou <ebotcazou@adacore.com>
7594
7595 * cgraphunit.c (cgraph_node::expand_thunk): Make sure to set
7596 cfun->tail_call_marked when forcing a tail call.
7597 * function.c (assign_parm_setup_reg): Always use a register to
7598 load a parameter passed by reference if cfun->tail_call_marked.
7599
7600 2020-09-14 Pat Haugen <pthaugen@linux.ibm.com>
7601
7602 * config/rs6000/power10.md (power10-mffgpr, power10-mftgpr): Rename to
7603 power10-mtvsr/power10-mfvsr.
7604 * config/rs6000/power6.md (X2F_power6, power6-mftgpr, power6-mffgpr):
7605 Remove.
7606 * config/rs6000/power8.md (power8-mffgpr, power8-mftgpr): Rename to
7607 power8-mtvsr/power8-mfvsr.
7608 * config/rs6000/power9.md (power9-mffgpr, power9-mftgpr): Rename to
7609 power9-mtvsr/power9-mfvsr.
7610 * config/rs6000/rs6000.c (rs6000_adjust_cost): Remove Power6
7611 TYPE_MFFGPR cases.
7612 * config/rs6000/rs6000.md (mffgpr, mftgpr, zero_extendsi<mode>2,
7613 extendsi<mode>2, @signbit<mode>2_dm, lfiwax, lfiwzx, *movsi_internal1,
7614 movsi_from_sf, *movdi_from_sf_zero_ext, *mov<mode>_internal,
7615 movsd_hardfloat, movsf_from_si, *mov<mode>_hardfloat64, p8_mtvsrwz,
7616 p8_mtvsrd_df, p8_mtvsrd_sf, p8_mfvsrd_3_<mode>, *movdi_internal64,
7617 unpack<mode>_dm): Rename mffgpr/mftgpr to mtvsr/mfvsr.
7618 * config/rs6000/vsx.md (vsx_mov<mode>_64bit, vsx_extract_<mode>,
7619 vsx_extract_si, *vsx_extract_<mode>_p8): Likewise.
7620
7621 2020-09-14 Jakub Jelinek <jakub@redhat.com>
7622
7623 * config/arm/arm.opt (x_arm_arch_string, x_arm_cpu_string,
7624 x_arm_tune_string): Remove TargetSave entries.
7625 (march=, mcpu=, mtune=): Add Save keyword.
7626 * config/arm/arm.c (arm_option_save): Remove.
7627 (TARGET_OPTION_SAVE): Don't redefine.
7628 (arm_option_restore): Don't restore x_arm_*_string here.
7629
7630 2020-09-14 Jakub Jelinek <jakub@redhat.com>
7631
7632 * opt-read.awk: Also initialize extra_target_var_types array.
7633 * opth-gen.awk: Emit explicit_mask arrays to struct cl_optimization
7634 and cl_target_option. Adjust cl_optimization_save,
7635 cl_optimization_restore, cl_target_option_save and
7636 cl_target_option_restore declarations.
7637 * optc-save-gen.awk: Add opts_set argument to cl_optimization_save,
7638 cl_optimization_restore, cl_target_option_save and
7639 cl_target_option_restore functions and save or restore opts_set
7640 next to the opts values into or from explicit_mask arrays.
7641 In cl_target_option_eq and cl_optimization_option_eq compare
7642 explicit_mask arrays, in cl_target_option_hash and cl_optimization_hash
7643 hash them and in cl_target_option_stream_out,
7644 cl_target_option_stream_in, cl_optimization_stream_out and
7645 cl_optimization_stream_in stream them.
7646 * tree.h (build_optimization_node, build_target_option_node): Add
7647 opts_set argument.
7648 * tree.c (build_optimization_node): Add opts_set argument, pass it
7649 to cl_optimization_save.
7650 (build_target_option_node): Add opts_set argument, pass it to
7651 cl_target_option_save.
7652 * function.c (invoke_set_current_function_hook): Adjust
7653 cl_optimization_restore caller.
7654 * ipa-inline-transform.c (inline_call): Adjust cl_optimization_restore
7655 and build_optimization_node callers.
7656 * target.def (TARGET_OPTION_SAVE, TARGET_OPTION_RESTORE): Add opts_set
7657 argument.
7658 * target-globals.c (save_target_globals_default_opts): Adjust
7659 cl_optimization_restore callers.
7660 * toplev.c (process_options): Adjust build_optimization_node and
7661 cl_optimization_restore callers.
7662 (target_reinit): Adjust cl_optimization_restore caller.
7663 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
7664 Adjust build_optimization_node and cl_optimization_restore callers.
7665 * doc/tm.texi: Updated.
7666 * config/aarch64/aarch64.c (aarch64_override_options): Adjust
7667 build_target_option_node caller.
7668 (aarch64_option_save, aarch64_option_restore): Add opts_set argument.
7669 (aarch64_set_current_function): Adjust cl_target_option_restore
7670 caller.
7671 (aarch64_option_valid_attribute_p): Adjust cl_target_option_save,
7672 cl_target_option_restore, cl_optimization_restore,
7673 build_optimization_node and build_target_option_node callers.
7674 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Adjust
7675 cl_target_option_restore and build_target_option_node callers.
7676 * config/arm/arm.c (arm_option_save, arm_option_restore): Add
7677 opts_set argument.
7678 (arm_option_override): Adjust cl_target_option_save,
7679 build_optimization_node and build_target_option_node callers.
7680 (arm_set_current_function): Adjust cl_target_option_restore caller.
7681 (arm_valid_target_attribute_tree): Adjust build_target_option_node
7682 caller.
7683 (add_attribute): Formatting fix.
7684 (arm_valid_target_attribute_p): Adjust cl_optimization_restore,
7685 cl_target_option_restore, arm_valid_target_attribute_tree and
7686 build_optimization_node callers.
7687 * config/arm/arm-c.c (arm_pragma_target_parse): Adjust
7688 cl_target_option_restore callers.
7689 * config/csky/csky.c (csky_option_override): Adjust
7690 build_target_option_node and cl_target_option_save callers.
7691 * config/gcn/gcn.c (gcn_fixup_accel_lto_options): Adjust
7692 build_optimization_node and cl_optimization_restore callers.
7693 * config/i386/i386-builtins.c (get_builtin_code_for_version):
7694 Adjust cl_target_option_save and cl_target_option_restore
7695 callers.
7696 * config/i386/i386-c.c (ix86_pragma_target_parse): Adjust
7697 build_target_option_node and cl_target_option_restore callers.
7698 * config/i386/i386-options.c (ix86_function_specific_save,
7699 ix86_function_specific_restore): Add opts_set arguments.
7700 (ix86_valid_target_attribute_tree): Adjust build_target_option_node
7701 caller.
7702 (ix86_valid_target_attribute_p): Adjust build_optimization_node,
7703 cl_optimization_restore, cl_target_option_restore,
7704 ix86_valid_target_attribute_tree and build_optimization_node callers.
7705 (ix86_option_override_internal): Adjust build_target_option_node
7706 caller.
7707 (ix86_reset_previous_fndecl, ix86_set_current_function): Adjust
7708 cl_target_option_restore callers.
7709 * config/i386/i386-options.h (ix86_function_specific_save,
7710 ix86_function_specific_restore): Add opts_set argument.
7711 * config/nios2/nios2.c (nios2_option_override): Adjust
7712 build_target_option_node caller.
7713 (nios2_option_save, nios2_option_restore): Add opts_set argument.
7714 (nios2_valid_target_attribute_tree): Adjust build_target_option_node
7715 caller.
7716 (nios2_valid_target_attribute_p): Adjust build_optimization_node,
7717 cl_optimization_restore, cl_target_option_save and
7718 cl_target_option_restore callers.
7719 (nios2_set_current_function, nios2_pragma_target_parse): Adjust
7720 cl_target_option_restore callers.
7721 * config/pru/pru.c (pru_option_override): Adjust
7722 build_target_option_node caller.
7723 (pru_set_current_function): Adjust cl_target_option_restore
7724 callers.
7725 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust
7726 cl_target_option_save caller.
7727 (rs6000_option_override_internal): Adjust build_target_option_node
7728 caller.
7729 (rs6000_valid_attribute_p): Adjust build_optimization_node,
7730 cl_optimization_restore, cl_target_option_save,
7731 cl_target_option_restore and build_target_option_node callers.
7732 (rs6000_pragma_target_parse): Adjust cl_target_option_restore and
7733 build_target_option_node callers.
7734 (rs6000_activate_target_options): Adjust cl_target_option_restore
7735 callers.
7736 (rs6000_function_specific_save, rs6000_function_specific_restore):
7737 Add opts_set argument.
7738 * config/s390/s390.c (s390_function_specific_restore): Likewise.
7739 (s390_option_override_internal): Adjust s390_function_specific_restore
7740 caller.
7741 (s390_option_override, s390_valid_target_attribute_tree): Adjust
7742 build_target_option_node caller.
7743 (s390_valid_target_attribute_p): Adjust build_optimization_node,
7744 cl_optimization_restore and cl_target_option_restore callers.
7745 (s390_activate_target_options): Adjust cl_target_option_restore
7746 caller.
7747 * config/s390/s390-c.c (s390_cpu_cpp_builtins): Adjust
7748 cl_target_option_save caller.
7749 (s390_pragma_target_parse): Adjust build_target_option_node and
7750 cl_target_option_restore callers.
7751
7752 2020-09-13 Roger Sayle <roger@nextmovesoftware.com>
7753
7754 * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
7755 Provide accurate costs for DImode shifts of integer constants.
7756
7757 2020-09-12 Roger Sayle <roger@nextmovesoftware.com>
7758 John David Anglin <danglin@gcc.gnu.org>
7759
7760 * config/pa/pa.md (shrpsi4_1, shrpsi4_2): New define_insns split
7761 out from previous shrpsi4 providing two commutitive variants using
7762 plus_xor_ior_operator as a predicate.
7763 (shrpdi4_1, shrpdi4_2, shrpdi_3, shrpdi_4): Likewise DImode versions
7764 where _1 and _2 take register shifts, and _3 and _4 for integers.
7765 (rotlsi3_internal): Name this anonymous instruction.
7766 (rotrdi3): New DImode insn copied from rotrsi3.
7767 (rotldi3): New DImode expander copied from rotlsi3.
7768 (rotldi4_internal): New DImode insn copied from rotsi3_internal.
7769
7770 2020-09-11 Michael Meissner <meissner@linux.ibm.com>
7771
7772 * config/rs6000/rs6000.c (rs6000_maybe_emit_maxc_minc): Rename
7773 from rs6000_emit_p9_fp_minmax. Change return type to bool. Add
7774 comments to document NaN/signed zero behavior.
7775 (rs6000_maybe_emit_fp_cmove): Rename from rs6000_emit_p9_fp_cmove.
7776 (have_compare_and_set_mask): New helper function.
7777 (rs6000_emit_cmove): Update calls to new names and the new helper
7778 function.
7779
7780 2020-09-11 Nathan Sidwell <nathan@acm.org>
7781
7782 * config/i386/sse.md (mov<mode>): Fix operand indices.
7783
7784 2020-09-11 Martin Sebor <msebor@redhat.com>
7785
7786 PR middle-end/96903
7787 * builtins.c (compute_objsize): Remove incorrect offset adjustment.
7788 (compute_objsize): Adjust offset range here instead.
7789
7790 2020-09-11 Richard Biener <rguenther@suse.de>
7791
7792 PR tree-optimization/97020
7793 * tree-vect-slp.c (vect_slp_analyze_operations): Apply
7794 SLP costs when doing loop vectorization.
7795
7796 2020-09-11 Tom de Vries <tdevries@suse.de>
7797
7798 PR target/96964
7799 * config/nvptx/nvptx.md (define_expand "atomic_test_and_set"): New
7800 expansion.
7801
7802 2020-09-11 Andrew Stubbs <ams@codesourcery.com>
7803
7804 * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align TImode registers.
7805 * config/gcn/gcn.md: Assert that TImode registers do not early clobber.
7806
7807 2020-09-11 Richard Biener <rguenther@suse.de>
7808
7809 * tree-vectorizer.h (_slp_instance::location): New method.
7810 (vect_schedule_slp): Adjust prototype.
7811 * tree-vectorizer.c (vec_info::remove_stmt): Adjust
7812 the BB region begin if we removed the stmt it points to.
7813 * tree-vect-loop.c (vect_transform_loop): Adjust.
7814 * tree-vect-slp.c (_slp_instance::location): Implement.
7815 (vect_analyze_slp_instance): For BB vectorization set
7816 vect_location to that of the instance.
7817 (vect_slp_analyze_operations): Likewise.
7818 (vect_bb_vectorization_profitable_p): Remove wrapper.
7819 (vect_slp_analyze_bb_1): Remove cost check here.
7820 (vect_slp_region): Cost check and code generate subgraphs separately,
7821 report optimized locations and missed optimizations due to
7822 profitability for each of them.
7823 (vect_schedule_slp): Get the vector of SLP graph entries to
7824 vectorize as argument.
7825
7826 2020-09-11 Richard Biener <rguenther@suse.de>
7827
7828 PR tree-optimization/97013
7829 * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove duplicate dumping.
7830
7831 2020-09-11 Richard Biener <rguenther@suse.de>
7832
7833 * tree-vect-slp.c (vect_build_slp_tree_1): Check vector
7834 types for all lanes are compatible.
7835 (vect_analyze_slp_instance): Appropriately check for stores.
7836 (vect_schedule_slp): Likewise.
7837
7838 2020-09-11 Tom de Vries <tdevries@suse.de>
7839
7840 * config/nvptx/nvptx.c (nvptx_assemble_value): Fix undefined
7841 behaviour.
7842
7843 2020-09-11 Tom de Vries <tdevries@suse.de>
7844
7845 * config/nvptx/nvptx.c (nvptx_assemble_value): Handle negative
7846 __int128.
7847
7848 2020-09-11 Aaron Sawdey <acsawdey@linux.ibm.com>
7849
7850 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7851 Change default.
7852
7853 2020-09-10 Michael Meissner <meissner@linux.ibm.com>
7854
7855 * config/rs6000/rs6000-protos.h (rs6000_emit_cmove): Change return
7856 type to bool.
7857 (rs6000_emit_int_cmove): Change return type to bool.
7858 * config/rs6000/rs6000.c (rs6000_emit_cmove): Change return type
7859 to bool.
7860 (rs6000_emit_int_cmove): Change return type to bool.
7861
7862 2020-09-10 Tom de Vries <tdevries@suse.de>
7863
7864 PR target/97004
7865 * config/nvptx/nvptx.c (nvptx_assemble_value): Handle shift by
7866 number of bits in shift operand.
7867
7868 2020-09-10 Jakub Jelinek <jakub@redhat.com>
7869
7870 * lto-streamer-out.c (collect_block_tree_leafs): Recurse on
7871 root rather than BLOCK_SUBBLOCKS (root).
7872
7873 2020-09-10 Alex Coplan <alex.coplan@arm.com>
7874
7875 * config/aarch64/aarch64-cores.def: Add Cortex-R82.
7876 * config/aarch64/aarch64-tune.md: Regenerate.
7877 * doc/invoke.texi: Add entry for Cortex-R82.
7878
7879 2020-09-10 Alex Coplan <alex.coplan@arm.com>
7880
7881 * common/config/aarch64/aarch64-common.c
7882 (aarch64_get_extension_string_for_isa_flags): Don't force +crc for
7883 Armv8-R.
7884 * config/aarch64/aarch64-arches.def: Add entry for Armv8-R.
7885 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros): Set
7886 __ARM_ARCH_PROFILE correctly for Armv8-R.
7887 * config/aarch64/aarch64.h (AARCH64_FL_V8_R): New.
7888 (AARCH64_FL_FOR_ARCH8_R): New.
7889 (AARCH64_ISA_V8_R): New.
7890 * doc/invoke.texi: Add Armv8-R to architecture table.
7891
7892 2020-09-10 Jakub Jelinek <jakub@redhat.com>
7893
7894 * config/arm/arm.c (arm_override_options_after_change_1): Add opts_set
7895 argument, test opts_set->x_str_align_functions rather than
7896 opts->x_str_align_functions.
7897 (arm_override_options_after_change, arm_option_override_internal,
7898 arm_set_current_function): Adjust callers.
7899
7900 2020-09-10 Jakub Jelinek <jakub@redhat.com>
7901
7902 PR target/96939
7903 * config/arm/arm.c (arm_override_options_after_change): Don't call
7904 arm_configure_build_target here.
7905 (arm_set_current_function): Call arm_override_options_after_change_1
7906 at the end.
7907
7908 2020-09-10 Pat Haugen <pthaugen@linux.ibm.com>
7909
7910 * config/rs6000/rs6000.md
7911 (lfiwzx, floatunssi<mode>2_lfiwzx, p8_mtvsrwz, p8_mtvsrd_sf): Fix insn
7912 type.
7913 * config/rs6000/vsx.md
7914 (vsx_concat_<mode>, vsx_splat_<mode>_reg, vsx_splat_v4sf): Likewise.
7915
7916 2020-09-10 Jonathan Yong <10walls@gmail.com>
7917
7918 * config.host: Adjust plugin name for Windows.
7919
7920 2020-09-10 Tom de Vries <tdevries@suse.de>
7921
7922 PR tree-optimization/97000
7923 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): Don't clear
7924 flag for IFN_UNIQUE.
7925
7926 2020-09-10 Jakub Jelinek <jakub@redhat.com>
7927
7928 PR debug/93865
7929 * lto-streamer.h (struct output_block): Add emit_pwd member.
7930 * lto-streamer-out.c: Include toplev.h.
7931 (clear_line_info): Set emit_pwd.
7932 (lto_output_location_1): Encode the ob->current_file != xloc.file
7933 bit directly into the location number. If changing file, emit
7934 additionally a bit whether pwd is emitted and emit it before the
7935 first relative pathname since clear_line_info.
7936 (output_function, output_constructor): Don't call clear_line_info
7937 here.
7938 * lto-streamer-in.c (struct string_pair_map): New type.
7939 (struct string_pair_map_hasher): New type.
7940 (string_pair_map_hasher::hash): New method.
7941 (string_pair_map_hasher::equal): New method.
7942 (path_name_pair_hash_table, string_pair_map_allocator): New variables.
7943 (relative_path_prefix, canon_relative_path_prefix,
7944 canon_relative_file_name): New functions.
7945 (canon_file_name): Add relative_prefix argument, if non-NULL
7946 and string is a relative path, return canon_relative_file_name.
7947 (lto_location_cache::input_location_and_block): Decode file change
7948 bit from the location number. If changing file, unpack bit whether
7949 pwd is streamed and stream in pwd. Adjust canon_file_name caller.
7950 (lto_free_file_name_hash): Delete path_name_pair_hash_table
7951 and string_pair_map_allocator.
7952
7953 2020-09-10 Richard Biener <rguenther@suse.de>
7954
7955 PR tree-optimization/96043
7956 * tree-vectorizer.h (_slp_instance::cost_vec): New.
7957 (_slp_instance::subgraph_entries): Likewise.
7958 (BB_VINFO_TARGET_COST_DATA): Remove.
7959 * tree-vect-slp.c (vect_free_slp_instance): Free
7960 cost_vec and subgraph_entries.
7961 (vect_analyze_slp_instance): Initialize them.
7962 (vect_slp_analyze_operations): Defer passing costs to
7963 the target, instead record them in the SLP graph entry.
7964 (get_ultimate_leader): New helper for graph partitioning.
7965 (vect_bb_partition_graph_r): Likewise.
7966 (vect_bb_partition_graph): New function to partition the
7967 SLP graph into independently costable parts.
7968 (vect_bb_vectorization_profitable_p): Adjust to work on
7969 a subgraph.
7970 (vect_bb_vectorization_profitable_p): New wrapper,
7971 discarding non-profitable vectorization of subgraphs.
7972 (vect_slp_analyze_bb_1): Call vect_bb_partition_graph before
7973 costing.
7974
7975 2020-09-09 David Malcolm <dmalcolm@redhat.com>
7976
7977 PR analyzer/94355
7978 * doc/invoke.texi: Document -Wanalyzer-mismatching-deallocation.
7979
7980 2020-09-09 Segher Boessenkool <segher@kernel.crashing.org>
7981
7982 PR rtl-optimization/96475
7983 * bb-reorder.c (maybe_duplicate_computed_goto): Remove single_pred_p
7984 micro-optimization.
7985
7986 2020-09-09 Tom de Vries <tdevries@suse.de>
7987
7988 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Fix Wformat
7989 warning.
7990
7991 2020-09-09 Richard Biener <rguenther@suse.de>
7992
7993 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
7994 nothing when the permutation doesn't permute.
7995
7996 2020-09-09 Tom de Vries <tdevries@suse.de>
7997
7998 PR target/96991
7999 * config/nvptx/nvptx.c (write_fn_proto): Fix boolean type check.
8000
8001 2020-09-09 Richard Biener <rguenther@suse.de>
8002
8003 * tree-vect-stmts.c (vectorizable_comparison): Allow
8004 STMT_VINFO_LIVE_P stmts.
8005
8006 2020-09-09 Richard Biener <rguenther@suse.de>
8007
8008 * tree-vect-stmts.c (vectorizable_condition): Allow
8009 STMT_VINFO_LIVE_P stmts.
8010
8011 2020-09-09 Richard Biener <rguenther@suse.de>
8012
8013 PR tree-optimization/96978
8014 * tree-vect-stmts.c (vectorizable_condition): Do not
8015 look at STMT_VINFO_LIVE_P for BB vectorization.
8016 (vectorizable_comparison): Likewise.
8017
8018 2020-09-09 liuhongt <hongtao.liu@intel.com>
8019
8020 PR target/96955
8021 * config/i386/i386.md (get_thread_pointer<mode>): New
8022 expander.
8023
8024 2020-09-08 Julian Brown <julian@codesourcery.com>
8025
8026 * config/gcn/gcn-valu.md (scatter<mode>_insn_1offset_ds<exec_scatter>):
8027 Add waitcnt.
8028 * config/gcn/gcn.md (*mov<mode>_insn, *movti_insn): Add waitcnt to
8029 ds_write alternatives.
8030
8031 2020-09-08 Julian Brown <julian@codesourcery.com>
8032
8033 * config/gcn/mkoffload.c (process_asm): Initialise regcount. Update
8034 scanning for SGPR/VGPR usage for HSACO v3.
8035
8036 2020-09-08 Aldy Hernandez <aldyh@redhat.com>
8037
8038 PR tree-optimization/96967
8039 * tree-vrp.c (find_case_label_range): Cast label range to
8040 type of switch operand.
8041
8042 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8043
8044 * config/msp430/msp430.c (msp430_file_end): Fix jumbled
8045 HAVE_AS_MSPABI_ATTRIBUTE and HAVE_AS_GNU_ATTRIBUTE checks.
8046 * configure: Regenerate.
8047 * configure.ac: Use ".mspabi_attribute 4,2" to check for assembler
8048 support for this object attribute directive.
8049
8050 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8051
8052 * common/config/msp430/msp430-common.c (msp430_handle_option): Remove
8053 OPT_mcpu_ handling.
8054 Set target_cpu value to new enum values when parsing certain -mmcu=
8055 values.
8056 * config/msp430/msp430-opts.h (enum msp430_cpu_types): New.
8057 * config/msp430/msp430.c (msp430_option_override): Handle new
8058 target_cpu enum values.
8059 Set target_cpu using extracted value for given MCU when -mcpu=
8060 option is not passed by the user.
8061 * config/msp430/msp430.opt: Handle -mcpu= values using enums.
8062
8063 2020-09-07 Richard Sandiford <richard.sandiford@arm.com>
8064
8065 PR rtl-optimization/96796
8066 * lra-constraints.c (in_class_p): Add a default-false
8067 allow_all_reload_class_changes_p parameter. Do not treat
8068 reload moves specially when the parameter is true.
8069 (get_reload_reg): Try to narrow the class of an existing OP_OUT
8070 reload if we're reloading a reload pseudo in a reload instruction.
8071
8072 2020-09-07 Andrea Corallo <andrea.corallo@arm.com>
8073
8074 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Revert
8075 dead-code removal introduced by 09fa6acd8d9 + add a comment to
8076 clarify.
8077
8078 2020-09-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8079
8080 * doc/rtl.texi (subreg): Fix documentation to state there is a known
8081 number of undefined bits in regs and subregs of MODE_PARTIAL_INT modes.
8082
8083 2020-09-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8084
8085 * config/msp430/msp430.c (msp430_option_override): Don't set the
8086 ISA to 430 when the MCU is unrecognized.
8087
8088 2020-09-07 Iain Sandoe <iain@sandoe.co.uk>
8089
8090 * config/darwin.c (darwin_libc_has_function): Report sincos
8091 available from 10.9.
8092
8093 2020-09-07 Alex Coplan <alex.coplan@arm.com>
8094
8095 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): Delete.
8096 (*subs_mul_imm_<mode>): Delete.
8097 (*adds_<optab><mode>_multp2): Delete.
8098 (*subs_<optab><mode>_multp2): Delete.
8099 (*add_mul_imm_<mode>): Delete.
8100 (*add_<optab><ALLX:mode>_mult_<GPI:mode>): Delete.
8101 (*add_<optab><SHORT:mode>_mult_si_uxtw): Delete.
8102 (*add_<optab><mode>_multp2): Delete.
8103 (*add_<optab>si_multp2_uxtw): Delete.
8104 (*add_uxt<mode>_multp2): Delete.
8105 (*add_uxtsi_multp2_uxtw): Delete.
8106 (*sub_mul_imm_<mode>): Delete.
8107 (*sub_mul_imm_si_uxtw): Delete.
8108 (*sub_<optab><mode>_multp2): Delete.
8109 (*sub_<optab>si_multp2_uxtw): Delete.
8110 (*sub_uxt<mode>_multp2): Delete.
8111 (*sub_uxtsi_multp2_uxtw): Delete.
8112 (*neg_mul_imm_<mode>2): Delete.
8113 (*neg_mul_imm_si2_uxtw): Delete.
8114 * config/aarch64/predicates.md (aarch64_pwr_imm3): Delete.
8115 (aarch64_pwr_2_si): Delete.
8116 (aarch64_pwr_2_di): Delete.
8117
8118 2020-09-07 Alex Coplan <alex.coplan@arm.com>
8119
8120 * config/aarch64/aarch64.md
8121 (*adds_<optab><ALLX:mode>_<GPI:mode>): Ensure extended operand
8122 agrees with width of extension specifier.
8123 (*subs_<optab><ALLX:mode>_<GPI:mode>): Likewise.
8124 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
8125 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
8126 (*add_<optab><ALLX:mode>_<GPI:mode>): Likewise.
8127 (*add_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
8128 (*add_uxt<mode>_shift2): Likewise.
8129 (*sub_<optab><ALLX:mode>_<GPI:mode>): Likewise.
8130 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
8131 (*sub_uxt<mode>_shift2): Likewise.
8132 (*cmp_swp_<optab><ALLX:mode>_reg<GPI:mode>): Likewise.
8133 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
8134
8135 2020-09-07 Richard Biener <rguenther@suse.de>
8136
8137 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
8138 stmts we start SLP analysis from, failure and splitting.
8139 (vect_schedule_slp): Dump SLP graph entry and root stmt
8140 we are about to emit code for.
8141
8142 2020-09-07 Martin Storsjö <martin@martin.st>
8143
8144 * dwarf2out.c (file_name_acquire): Make a strchr return value
8145 pointer to const.
8146
8147 2020-09-07 Jakub Jelinek <jakub@redhat.com>
8148
8149 PR debug/94235
8150 * lto-streamer-out.c (output_cfg): Also stream goto_locus for edges.
8151 Use bp_pack_var_len_unsigned instead of streamer_write_uhwi to stream
8152 e->dest->index and e->flags.
8153 (output_function): Call output_cfg before output_ssa_name, rather than
8154 after streaming all bbs.
8155 * lto-streamer-in.c (input_cfg): Stream in goto_locus for edges.
8156 Use bp_unpack_var_len_unsigned instead of streamer_read_uhwi to stream
8157 in dest_index and edge_flags.
8158
8159 2020-09-07 Richard Biener <rguenther@suse.de>
8160
8161 * tree-vectorizer.h (vectorizable_live_operation): Adjust.
8162 * tree-vect-loop.c (vectorizable_live_operation): Vectorize
8163 live lanes out of basic-block vectorization nodes.
8164 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): New function.
8165 (vect_slp_analyze_operations): Analyze live lanes and their
8166 vectorization possibility after the whole SLP graph is final.
8167 (vect_bb_slp_scalar_cost): Adjust for vectorized live lanes.
8168 * tree-vect-stmts.c (can_vectorize_live_stmts): Adjust.
8169 (vect_transform_stmt): Call can_vectorize_live_stmts also for
8170 basic-block vectorization.
8171
8172 2020-09-04 Richard Biener <rguenther@suse.de>
8173
8174 PR tree-optimization/96698
8175 PR tree-optimization/96920
8176 * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): Remove.
8177 (loop_vec_info::reduc_latch_slp_defs): Likewise.
8178 * tree-vect-stmts.c (vect_transform_stmt): Remove vectorized
8179 cycle PHI latch code.
8180 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): New
8181 helper to set vectorized cycle PHI latch values.
8182 (vect_transform_loop): Walk over all PHIs again after
8183 vectorizing them, calling maybe_set_vectorized_backedge_value.
8184 Call maybe_set_vectorized_backedge_value for each vectorized
8185 stmt. Remove delayed update code.
8186 * tree-vect-slp.c (vect_analyze_slp_instance): Initialize
8187 SLP instance reduc_phis member.
8188 (vect_schedule_slp): Set vectorized cycle PHI latch values.
8189
8190 2020-09-04 Andrea Corallo <andrea.corallo@arm.com>
8191
8192 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Remove
8193 dead code as LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) is
8194 always verified.
8195
8196 2020-09-04 Christophe Lyon <christophe.lyon@linaro.org>
8197
8198 PR target/96769
8199 * config/arm/thumb1.md: Move movsi splitter for
8200 arm_disable_literal_pool after the other movsi splitters.
8201
8202 2020-09-04 Aldy Hernandez <aldyh@redhat.com>
8203
8204 * range-op.cc (range_operator::fold_range): Rename widest_irange
8205 to int_range_max.
8206 (operator_div::wi_fold): Same.
8207 (operator_lshift::op1_range): Same.
8208 (operator_rshift::op1_range): Same.
8209 (operator_cast::fold_range): Same.
8210 (operator_cast::op1_range): Same.
8211 (operator_bitwise_and::remove_impossible_ranges): Same.
8212 (operator_bitwise_and::op1_range): Same.
8213 (operator_abs::op1_range): Same.
8214 (range_cast): Same.
8215 (widest_irange_tests): Same.
8216 (range3_tests): Rename irange3 to int_range3.
8217 (int_range_max_tests): Rename from widest_irange_tests.
8218 Rename widest_irange to int_range_max.
8219 (operator_tests): Rename widest_irange to int_range_max.
8220 (range_tests): Same.
8221 * tree-vrp.c (find_case_label_range): Same.
8222 * value-range.cc (irange::irange_intersect): Same.
8223 (irange::invert): Same.
8224 * value-range.h: Same.
8225
8226 2020-09-04 Richard Biener <rguenther@suse.de>
8227
8228 PR tree-optimization/96931
8229 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): If
8230 there's a fallthru edge and no abnormal edge the call is
8231 no longer control-altering.
8232 (cleanup_control_flow_bb): Pass down the BB to
8233 cleanup_call_ctrl_altering_flag.
8234
8235 2020-09-04 Jakub Jelinek <jakub@redhat.com>
8236
8237 * lto-streamer.h (stream_input_location_now): Remove declaration.
8238 * lto-streamer-in.c (stream_input_location_now): Remove.
8239 (input_eh_region, input_struct_function_base): Use
8240 stream_input_location instead of stream_input_location_now.
8241
8242 2020-09-04 Jakub Jelinek <jakub@redhat.com>
8243
8244 * lto-streamer.h (struct output_block): Add reset_locus member.
8245 * lto-streamer-out.c (clear_line_info): Set reset_locus to true.
8246 (lto_output_location_1): If reset_locus, clear it and ensure
8247 current_{file,line,col} is different from xloc members.
8248
8249 2020-09-04 David Faust <david.faust@oracle.com>
8250
8251 * config/bpf/bpf.h (ASM_SPEC): Pass -mxbpf to gas, if specified.
8252 * config/bpf/bpf.c (bpf_output_call): Support indirect calls in xBPF.
8253
8254 2020-09-03 Martin Jambor <mjambor@suse.cz>
8255
8256 PR tree-optimization/96820
8257 * tree-sra.c (create_access): Disqualify candidates with accesses
8258 beyond the end of the original aggregate.
8259 (maybe_add_sra_candidate): Check that candidate type size fits
8260 signed uhwi for the sake of consistency.
8261
8262 2020-09-03 Will Schmidt <will_schmidt@vnet.ibm.com>
8263
8264 * config/rs6000/rs6000-call.c (rs6000_init_builtin): Update V2DI_type_node
8265 and unsigned_V2DI_type_node definitions.
8266
8267 2020-09-03 Jakub Jelinek <jakub@redhat.com>
8268
8269 PR c++/96901
8270 * tree.h (struct decl_tree_traits): New type.
8271 (decl_tree_map): New typedef.
8272
8273 2020-09-03 Jakub Jelinek <jakub@redhat.com>
8274
8275 PR lto/94311
8276 * gimple.h (gimple_location_ptr, gimple_phi_arg_location_ptr): New
8277 functions.
8278 * streamer-hooks.h (struct streamer_hooks): Add
8279 output_location_and_block callback. Fix up formatting for
8280 output_location.
8281 (stream_output_location_and_block): Define.
8282 * lto-streamer.h (class lto_location_cache): Fix comment typo. Add
8283 current_block member.
8284 (lto_location_cache::input_location_and_block): New method.
8285 (lto_location_cache::lto_location_cache): Initialize current_block.
8286 (lto_location_cache::cached_location): Add block member.
8287 (struct output_block): Add current_block member.
8288 (lto_output_location): Formatting fix.
8289 (lto_output_location_and_block): Declare.
8290 * lto-streamer.c (lto_streamer_hooks_init): Initialize
8291 streamer_hooks.output_location_and_block.
8292 * lto-streamer-in.c (lto_location_cache::cmp_loc): Also compare
8293 block members.
8294 (lto_location_cache::apply_location_cache): Handle blocks.
8295 (lto_location_cache::accept_location_cache,
8296 lto_location_cache::revert_location_cache): Fix up function comments.
8297 (lto_location_cache::input_location_and_block): New method.
8298 (lto_location_cache::input_location): Implement using
8299 input_location_and_block.
8300 (input_function): Invoke apply_location_cache after streaming in all
8301 bbs.
8302 * lto-streamer-out.c (clear_line_info): Set current_block.
8303 (lto_output_location_1): New function, moved from lto_output_location,
8304 added block handling.
8305 (lto_output_location): Implement using lto_output_location_1.
8306 (lto_output_location_and_block): New function.
8307 * gimple-streamer-in.c (input_phi): Use input_location_and_block
8308 to input and cache both location and block.
8309 (input_gimple_stmt): Likewise.
8310 * gimple-streamer-out.c (output_phi): Use
8311 stream_output_location_and_block.
8312 (output_gimple_stmt): Likewise.
8313
8314 2020-09-03 Richard Biener <rguenther@suse.de>
8315
8316 * tree-vect-generic.c (tree_vec_extract): Remove odd
8317 special-casing of boolean vectors.
8318 * fold-const.c (fold_ternary_loc): Handle boolean vector
8319 type BIT_FIELD_REFs.
8320
8321 2020-09-03 Hongtao Liu <hongtao.liu@intel.com>
8322
8323 PR target/87767
8324 * config/i386/i386-features.c
8325 (replace_constant_pool_with_broadcast): New function.
8326 (constant_pool_broadcast): Ditto.
8327 (class pass_constant_pool_broadcast): New pass.
8328 (make_pass_constant_pool_broadcast): Ditto.
8329 (remove_partial_avx_dependency): Call
8330 replace_constant_pool_with_broadcast under TARGET_AVX512F, it
8331 would save compile time when both pass rpad and cpb are
8332 available.
8333 (remove_partial_avx_dependency_gate): New function.
8334 (class pass_remove_partial_avx_dependency::gate): Call
8335 remove_partial_avx_dependency_gate.
8336 * config/i386/i386-passes.def: Insert new pass after combine.
8337 * config/i386/i386-protos.h
8338 (make_pass_constant_pool_broadcast): Declare.
8339 * config/i386/sse.md (*avx512dq_mul<mode>3<mask_name>_bcst):
8340 New define_insn.
8341 (*avx512f_mul<mode>3<mask_name>_bcst): Ditto.
8342 * config/i386/avx512fintrin.h (_mm512_set1_ps,
8343 _mm512_set1_pd,_mm512_set1_epi32, _mm512_set1_epi64): Adjusted.
8344
8345 2020-09-02 Jonathan Wakely <jwakely@redhat.com>
8346
8347 PR c++/60304
8348 * ginclude/stdbool.h (bool, false, true): Never define for C++.
8349
8350 2020-09-02 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8351
8352 * doc/invoke.texi (MSP430 options): Fix -mlarge description to
8353 indicate size_t is a 20-bit type.
8354
8355 2020-09-02 Roger Sayle <roger@nextmovesoftware.com>
8356
8357 * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
8358 Provide accurate costs for shifts of integer constants.
8359
8360 2020-09-02 Jose E. Marchesi <jose.marchesi@oracle.com>
8361
8362 * config/bpf/bpf.c (bpf_asm_named_section): Delete.
8363 (TARGET_ASM_NAMED_SECTION): Likewise.
8364
8365 2020-09-02 Jose E. Marchesi <jemarch@gnu.org>
8366
8367 * config.gcc: Use elfos.h in bpf-*-* targets.
8368 * config/bpf/bpf.h (MAX_OFILE_ALIGNMENT): Remove definition.
8369 (COMMON_ASM_OP): Likewise.
8370 (INIT_SECTION_ASM_OP): Likewise.
8371 (FINI_SECTION_ASM_OP): Likewise.
8372 (ASM_OUTPUT_SKIP): Likewise.
8373 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
8374 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
8375
8376 2020-09-01 Martin Sebor <msebor@redhat.com>
8377
8378 * builtins.c (compute_objsize): Only replace the upper bound
8379 of a POINTER_PLUS offset when it's less than the lower bound.
8380
8381 2020-09-01 Peter Bergner <bergner@linux.ibm.com>
8382
8383 PR target/96808
8384 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Do not
8385 reuse accumulator memory reference for source and destination accesses.
8386
8387 2020-09-01 Martin Liska <mliska@suse.cz>
8388
8389 * cfgrtl.c (rtl_create_basic_block): Use default value for
8390 growth vector function.
8391 * gimple.c (gimple_set_bb): Likewise.
8392 * symbol-summary.h: Likewise.
8393 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
8394 (build_gimple_cfg): Likewise.
8395 (create_bb): Likewise.
8396 (move_block_to_fn): Likewise.
8397
8398 2020-09-01 Martin Liska <mliska@suse.cz>
8399
8400 * vec.h (vec_safe_grow): Change default of exact to false.
8401 (vec_safe_grow_cleared): Likewise.
8402
8403 2020-09-01 Roger Sayle <roger@nextmovesoftware.com>
8404
8405 PR middle-end/90597
8406 * targhooks.c (default_vector_alignment): Return at least the
8407 GET_MODE_ALIGNMENT for the type's mode.
8408
8409 2020-09-01 Richard Biener <rguenther@suse.de>
8410
8411 PR rtl-optimization/96812
8412 * tree-ssa-address.c (copy_ref_info): Also copy dependence info.
8413 * cfgrtl.h (duplicate_insn_chain): Adjust prototype.
8414 * cfgrtl.c (duplicate_insn_chain): Remap dependence info
8415 if requested.
8416 (cfg_layout_duplicate_bb): Make sure we remap dependence info.
8417 * modulo-sched.c (duplicate_insns_of_cycles): Remap dependence
8418 info.
8419 (generate_prolog_epilog): Adjust.
8420 * config/c6x/c6x.c (hwloop_optimize): Remap dependence info.
8421
8422 2020-09-01 Kewen Lin <linkw@gcc.gnu.org>
8423
8424 * doc/sourcebuild.texi (has_arch_pwr5, has_arch_pwr6, has_arch_pwr7,
8425 has_arch_pwr8, has_arch_pwr9): Document.
8426
8427 2020-08-31 Carl Love <cel@us.ibm.com>
8428
8429 PR target/85830
8430 * config/rs6000/altivec.h (vec_popcntb, vec_popcnth, vec_popcntw,
8431 vec_popcntd): Remove defines.
8432
8433 2020-08-31 Marek Polacek <polacek@redhat.com>
8434 Jason Merrill <jason@redhat.com>
8435
8436 PR c++/93529
8437 * tree.c (build_constructor_from_vec): New.
8438 * tree.h (build_constructor_from_vec): Declare.
8439
8440 2020-08-31 Aldy Hernandez <aldyh@redhat.com>
8441
8442 PR tree-optimization/96818
8443 * tree-vrp.c (find_case_label_range): Cast label range to
8444 type of switch operand.
8445
8446 2020-08-31 liuhongt <hongtao.liu@intel.com>
8447
8448 PR target/96551
8449 * config/i386/sse.md (vec_unpacku_float_hi_v16si): For vector
8450 compare to integer mask, don't use gen_rtx_LT, use
8451 ix86_expand_mask_vec_cmp instead.
8452 (vec_unpacku_float_hi_v16si): Ditto.
8453
8454 2020-08-31 Jakub Jelinek <jakub@redhat.com>
8455
8456 * tree-cfg.c (verify_gimple_switch): If the first non-default case
8457 label has CASE_HIGH, verify it has the same type as CASE_LOW.
8458
8459 2020-08-31 Feng Xue <fxue@os.amperecomputing.com>
8460
8461 PR ipa/96806
8462 * ipa-cp.c (decide_about_value): Use safe_add to avoid cost addition
8463 overflow.
8464
8465 2020-08-31 Jakub Jelinek <jakub@redhat.com>
8466
8467 PR middle-end/54201
8468 * varasm.c: Include alloc-pool.h.
8469 (output_constant_pool_contents): Emit desc->mark < 0 entries as
8470 aliases.
8471 (struct constant_descriptor_rtx_data): New type.
8472 (constant_descriptor_rtx_data_cmp): New function.
8473 (struct const_rtx_data_hasher): New type.
8474 (const_rtx_data_hasher::hash, const_rtx_data_hasher::equal): New
8475 methods.
8476 (optimize_constant_pool): New function.
8477 (output_shared_constant_pool): Call it if TARGET_SUPPORTS_ALIASES.
8478
8479 2020-08-31 Kewen Lin <linkw@gcc.gnu.org>
8480
8481 * doc/sourcebuild.texi (vect_len_load_store,
8482 vect_partial_vectors_usage_1, vect_partial_vectors_usage_2,
8483 vect_partial_vectors): Document.
8484
8485 2020-08-30 Martin Sebor <msebor@redhat.com>
8486
8487 * builtins.c (access_ref::access_ref): Call get_size_range instead
8488 of get_range.
8489
8490 2020-08-30 Jakub Jelinek <jakub@redhat.com>
8491
8492 * config/i386/sse.md (ssse3_pshufbv8qi): Use gen_int_mode instead of
8493 GEN_INT, and ix86_build_const_vector instead of gen_rtvec and
8494 gen_rtx_CONT_VECTOR.
8495
8496 2020-08-29 Bill Schmidt <wschmidt@linux.ibm.com>
8497
8498 * config/rs6000/rs6000-builtin.def (MASK_FOR_STORE): Remove.
8499 * config/rs6000/rs6000-call.c (rs6000_expand_builtin): Remove
8500 all logic for ALTIVEC_BUILTIN_MASK_FOR_STORE.
8501
8502 2020-08-28 Martin Sebor <msebor@redhat.com>
8503
8504 * attribs.c (init_attr_rdwr_indices): Use global access_mode.
8505 * attribs.h (struct attr_access): Same.
8506 * builtins.c (fold_builtin_strlen): Add argument.
8507 (compute_objsize): Declare.
8508 (get_range): Declare.
8509 (check_read_access): New function.
8510 (access_ref::access_ref): Define ctor.
8511 (warn_string_no_nul): Add arguments. Handle -Wstrintop-overread.
8512 (check_nul_terminated_array): Handle source strings of different
8513 ranges of sizes.
8514 (expand_builtin_strlen): Remove warning code, call check_read_access
8515 instead. Declare locals closer to their initialization.
8516 (expand_builtin_strnlen): Same.
8517 (maybe_warn_for_bound): New function.
8518 (warn_for_access): Remove argument. Handle -Wstrintop-overread.
8519 (inform_access): Change argument type.
8520 (get_size_range): New function.
8521 (check_access): Remove unused arguments. Add new arguments. Handle
8522 -Wstrintop-overread. Move warning code to helpers and call them.
8523 Call check_nul_terminated_array.
8524 (check_memop_access): Remove unnecessary and provide additional
8525 arguments in calls.
8526 (expand_builtin_memchr): Call check_read_access.
8527 (expand_builtin_strcat): Remove unnecessary and provide additional
8528 arguments in calls.
8529 (expand_builtin_strcpy): Same.
8530 (expand_builtin_strcpy_args): Same. Avoid testing no-warning bit.
8531 (expand_builtin_stpcpy_1): Remove unnecessary and provide additional
8532 arguments in calls.
8533 (expand_builtin_stpncpy): Same.
8534 (check_strncat_sizes): Same.
8535 (expand_builtin_strncat): Remove unnecessary and provide additional
8536 arguments in calls. Adjust comments.
8537 (expand_builtin_strncpy): Remove unnecessary and provide additional
8538 arguments in calls.
8539 (expand_builtin_memcmp): Remove warning code. Call check_access.
8540 (expand_builtin_strcmp): Call check_access instead of
8541 check_nul_terminated_array.
8542 (expand_builtin_strncmp): Handle -Wstrintop-overread.
8543 (expand_builtin_fork_or_exec): Call check_access instead of
8544 check_nul_terminated_array.
8545 (expand_builtin): Same.
8546 (fold_builtin_1): Pass additional argument.
8547 (fold_builtin_n): Same.
8548 (fold_builtin_strpbrk): Remove calls to check_nul_terminated_array.
8549 (expand_builtin_memory_chk): Add comments.
8550 (maybe_emit_chk_warning): Remove unnecessary and provide additional
8551 arguments in calls.
8552 (maybe_emit_sprintf_chk_warning): Same. Adjust comments.
8553 * builtins.h (warn_string_no_nul): Add arguments.
8554 (struct access_ref): Add member and ctor argument.
8555 (struct access_data): Add members and ctor.
8556 (check_access): Adjust signature.
8557 * calls.c (maybe_warn_nonstring_arg): Return an indication of
8558 whether a warning was issued. Issue -Wstrintop-overread instead
8559 of -Wstringop-overflow.
8560 (append_attrname): Adjust to naming changes.
8561 (maybe_warn_rdwr_sizes): Same. Remove unnecessary and provide
8562 additional arguments in calls.
8563 * calls.h (maybe_warn_nonstring_arg): Return bool.
8564 * doc/invoke.texi (-Wstringop-overread): Document new option.
8565 * gimple-fold.c (gimple_fold_builtin_strcpy): Provide an additional
8566 argument in call.
8567 (gimple_fold_builtin_stpcpy): Same.
8568 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Adjust to naming
8569 changes.
8570 * tree.h (enum access_mode): New type.
8571
8572 2020-08-28 Bill Schmidt <wschmidt@linux.ibm.com>
8573
8574 * config/rs6000/rs6000.c (rs6000_call_aix): Remove test for r12.
8575 (rs6000_sibcall_aix): Likewise.
8576
8577 2020-08-28 Andrew Stubbs <ams@codesourcery.com>
8578
8579 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Add "true"
8580 parameter to vec_safe_grow_cleared.
8581
8582 2020-08-28 Martin Sebor <msebor@redhat.com>
8583
8584 * ggc-common.c (gt_pch_save): Add argument to a call.
8585
8586 2020-08-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8587
8588 PR target/96357
8589 * config/aarch64/aarch64-sve.md
8590 (cond_sub<mode>_relaxed_const): Updated and renamed from
8591 cond_sub<mode>_any_const pattern.
8592 (cond_sub<mode>_strict_const): New pattern.
8593
8594 2020-08-28 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
8595
8596 * doc/rtl.texi: Fix typo.
8597
8598 2020-08-28 Uros Bizjak <ubizjak@gmail.com>
8599
8600 PR target/96744
8601 * config/i386/i386-expand.c (split_double_mode): Also handle
8602 E_P2HImode and E_P2QImode.
8603 * config/i386/sse.md (MASK_DWI): New define_mode_iterator.
8604 (mov<mode>): New expander for P2HI,P2QI.
8605 (*mov<mode>_internal): New define_insn_and_split to split
8606 movement of P2QI/P2HI to 2 movqi/movhi patterns after reload.
8607
8608 2020-08-28 liuhongt <hongtao.liu@intel.com>
8609
8610 * common/config/i386/i386-common.c (ix86_handle_option): Set
8611 AVX512DQ when AVX512VP2INTERSECT exists.
8612
8613 2020-08-27 Jakub Jelinek <jakub@redhat.com>
8614
8615 PR target/65146
8616 * config/i386/i386.c (iamcu_alignment): Don't decrease alignment
8617 for TYPE_ATOMIC types.
8618 (ix86_local_alignment): Likewise.
8619 (ix86_minimum_alignment): Likewise.
8620 (x86_field_alignment): Likewise, and emit a -Wpsabi diagnostic
8621 for it.
8622
8623 2020-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
8624
8625 PR target/96787
8626 * config/rs6000/rs6000.c (rs6000_sibcall_aix): Support
8627 indirect call for ELFv2.
8628
8629 2020-08-27 Richard Biener <rguenther@suse.de>
8630
8631 PR tree-optimization/96522
8632 * tree-ssa-address.c (copy_ref_info): Reset flow-sensitive
8633 info of the copied points-to. Transfer bigger alignment
8634 via the access type.
8635 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
8636 Reset all flow-sensitive info.
8637
8638 2020-08-27 Martin Liska <mliska@suse.cz>
8639
8640 * alias.c (init_alias_analysis): Set exact argument of a vector
8641 growth function to true.
8642 * calls.c (internal_arg_pointer_based_exp_scan): Likewise.
8643 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
8644 * cfgexpand.c (expand_asm_stmt): Likewise.
8645 * cfgrtl.c (rtl_create_basic_block): Likewise.
8646 * combine.c (combine_split_insns): Likewise.
8647 (combine_instructions): Likewise.
8648 * config/aarch64/aarch64-sve-builtins.cc (function_expander::add_output_operand): Likewise.
8649 (function_expander::add_input_operand): Likewise.
8650 (function_expander::add_integer_operand): Likewise.
8651 (function_expander::add_address_operand): Likewise.
8652 (function_expander::add_fixed_operand): Likewise.
8653 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
8654 * dwarf2cfi.c (update_row_reg_save): Likewise.
8655 * early-remat.c (early_remat::init_block_info): Likewise.
8656 (early_remat::finalize_candidate_indices): Likewise.
8657 * except.c (sjlj_build_landing_pads): Likewise.
8658 * final.c (compute_alignments): Likewise.
8659 (grow_label_align): Likewise.
8660 * function.c (temp_slots_at_level): Likewise.
8661 * fwprop.c (build_single_def_use_links): Likewise.
8662 (update_uses): Likewise.
8663 * gcc.c (insert_wrapper): Likewise.
8664 * genautomata.c (create_state_ainsn_table): Likewise.
8665 (add_vect): Likewise.
8666 (output_dead_lock_vect): Likewise.
8667 * genmatch.c (capture_info::capture_info): Likewise.
8668 (parser::finish_match_operand): Likewise.
8669 * genrecog.c (optimize_subroutine_group): Likewise.
8670 (merge_pattern_info::merge_pattern_info): Likewise.
8671 (merge_into_decision): Likewise.
8672 (print_subroutine_start): Likewise.
8673 (main): Likewise.
8674 * gimple-loop-versioning.cc (loop_versioning::loop_versioning): Likewise.
8675 * gimple.c (gimple_set_bb): Likewise.
8676 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user): Likewise.
8677 * haifa-sched.c (sched_extend_luids): Likewise.
8678 (extend_h_i_d): Likewise.
8679 * insn-addr.h (insn_addresses_new): Likewise.
8680 * ipa-cp.c (gather_context_independent_values): Likewise.
8681 (find_more_contexts_for_caller_subset): Likewise.
8682 * ipa-devirt.c (final_warning_record::grow_type_warnings): Likewise.
8683 (ipa_odr_read_section): Likewise.
8684 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
8685 (ipa_fn_summary_t::duplicate): Likewise.
8686 (analyze_function_body): Likewise.
8687 (ipa_merge_fn_summary_after_inlining): Likewise.
8688 (read_ipa_call_summary): Likewise.
8689 * ipa-icf.c (sem_function::bb_dict_test): Likewise.
8690 * ipa-prop.c (ipa_alloc_node_params): Likewise.
8691 (parm_bb_aa_status_for_bb): Likewise.
8692 (ipa_compute_jump_functions_for_edge): Likewise.
8693 (ipa_analyze_node): Likewise.
8694 (update_jump_functions_after_inlining): Likewise.
8695 (ipa_read_edge_info): Likewise.
8696 (read_ipcp_transformation_info): Likewise.
8697 (ipcp_transform_function): Likewise.
8698 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
8699 * ipa-split.c (execute_split_functions): Likewise.
8700 * ira.c (find_moveable_pseudos): Likewise.
8701 * lower-subreg.c (decompose_multiword_subregs): Likewise.
8702 * lto-streamer-in.c (input_eh_regions): Likewise.
8703 (input_cfg): Likewise.
8704 (input_struct_function_base): Likewise.
8705 (input_function): Likewise.
8706 * modulo-sched.c (set_node_sched_params): Likewise.
8707 (extend_node_sched_params): Likewise.
8708 (schedule_reg_moves): Likewise.
8709 * omp-general.c (omp_construct_simd_compare): Likewise.
8710 * passes.c (pass_manager::create_pass_tab): Likewise.
8711 (enable_disable_pass): Likewise.
8712 * predict.c (determine_unlikely_bbs): Likewise.
8713 * profile.c (compute_branch_probabilities): Likewise.
8714 * read-rtl-function.c (function_reader::parse_block): Likewise.
8715 * read-rtl.c (rtx_reader::read_rtx_code): Likewise.
8716 * reg-stack.c (stack_regs_mentioned): Likewise.
8717 * regrename.c (regrename_init): Likewise.
8718 * rtlanal.c (T>::add_single_to_queue): Likewise.
8719 * sched-deps.c (init_deps_data_vector): Likewise.
8720 * sel-sched-ir.c (sel_extend_global_bb_info): Likewise.
8721 (extend_region_bb_info): Likewise.
8722 (extend_insn_data): Likewise.
8723 * symtab.c (symtab_node::create_reference): Likewise.
8724 * tracer.c (tail_duplicate): Likewise.
8725 * trans-mem.c (tm_region_init): Likewise.
8726 (get_bb_regions_instrumented): Likewise.
8727 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
8728 (build_gimple_cfg): Likewise.
8729 (create_bb): Likewise.
8730 (move_block_to_fn): Likewise.
8731 * tree-complex.c (tree_lower_complex): Likewise.
8732 * tree-if-conv.c (predicate_rhs_code): Likewise.
8733 * tree-inline.c (copy_bb): Likewise.
8734 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
8735 (mark_phi_for_rewrite): Likewise.
8736 * tree-object-size.c (compute_builtin_object_size): Likewise.
8737 (init_object_sizes): Likewise.
8738 * tree-predcom.c (initialize_root_vars_store_elim_1): Likewise.
8739 (initialize_root_vars_store_elim_2): Likewise.
8740 (prepare_initializers_chain_store_elim): Likewise.
8741 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
8742 (multiplier_allowed_in_address_p): Likewise.
8743 * tree-ssa-coalesce.c (ssa_conflicts_new): Likewise.
8744 * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
8745 * tree-ssa-loop-ivopts.c (addr_offset_valid_p): Likewise.
8746 (get_address_cost_ainc): Likewise.
8747 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Likewise.
8748 * tree-ssa-pre.c (add_to_value): Likewise.
8749 (phi_translate_1): Likewise.
8750 (do_pre_regular_insertion): Likewise.
8751 (do_pre_partial_partial_insertion): Likewise.
8752 (init_pre): Likewise.
8753 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
8754 (update_call_from_tree): Likewise.
8755 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Likewise.
8756 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
8757 (vn_reference_lookup_pieces): Likewise.
8758 (eliminate_dom_walker::eliminate_push_avail): Likewise.
8759 * tree-ssa-strlen.c (set_strinfo): Likewise.
8760 (get_stridx_plus_constant): Likewise.
8761 (zero_length_string): Likewise.
8762 (find_equal_ptrs): Likewise.
8763 (printf_strlen_execute): Likewise.
8764 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
8765 * tree-ssanames.c (make_ssa_name_fn): Likewise.
8766 * tree-streamer-in.c (streamer_read_tree_bitfields): Likewise.
8767 * tree-vect-loop.c (vect_record_loop_mask): Likewise.
8768 (vect_get_loop_mask): Likewise.
8769 (vect_record_loop_len): Likewise.
8770 (vect_get_loop_len): Likewise.
8771 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
8772 * tree-vect-slp.c (vect_slp_convert_to_external): Likewise.
8773 (vect_bb_slp_scalar_cost): Likewise.
8774 (vect_bb_vectorization_profitable_p): Likewise.
8775 (vectorizable_slp_permutation): Likewise.
8776 * tree-vect-stmts.c (vectorizable_call): Likewise.
8777 (vectorizable_simd_clone_call): Likewise.
8778 (scan_store_can_perm_p): Likewise.
8779 (vectorizable_store): Likewise.
8780 * expr.c: Likewise.
8781 * vec.c (test_safe_grow_cleared): Likewise.
8782 * vec.h (vec_safe_grow): Likewise.
8783 (vec_safe_grow_cleared): Likewise.
8784 (vl_ptr>::safe_grow): Likewise.
8785 (vl_ptr>::safe_grow_cleared): Likewise.
8786 * config/c6x/c6x.c (insn_set_clock): Likewise.
8787
8788 2020-08-27 Richard Biener <rguenther@suse.de>
8789
8790 * tree-pretty-print.c (dump_mem_ref): Handle TARGET_MEM_REFs.
8791 (dump_generic_node): Use dump_mem_ref also for TARGET_MEM_REF.
8792
8793 2020-08-27 Alex Coplan <alex.coplan@arm.com>
8794
8795 * lra-constraints.c (canonicalize_reload_addr): New.
8796 (curr_insn_transform): Use canonicalize_reload_addr to ensure we
8797 generate canonical RTL for an address reload.
8798
8799 2020-08-27 Zhiheng Xie <xiezhiheng@huawei.com>
8800
8801 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
8802 for rounding intrinsics.
8803
8804 2020-08-27 Zhiheng Xie <xiezhiheng@huawei.com>
8805
8806 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
8807 for min/max intrinsics.
8808
8809 2020-08-27 Richard Biener <rguenther@suse.de>
8810
8811 PR tree-optimization/96579
8812 * tree-ssa-reassoc.c (linearize_expr_tree): If we expand
8813 rhs via special ops make sure to swap operands.
8814
8815 2020-08-27 Richard Biener <rguenther@suse.de>
8816
8817 PR tree-optimization/96565
8818 * tree-ssa-dse.c (dse_classify_store): Remove defs with
8819 no uses from further processing.
8820
8821 2020-08-26 Göran Uddeborg <goeran@uddeborg.se>
8822
8823 PR gcov-profile/96285
8824 * common.opt, doc/invoke.texi: Clarify wording of
8825 -fprofile-exclude-files and adjust -fprofile-filter-files to
8826 match.
8827
8828 2020-08-26 H.J. Lu <hjl.tools@gmail.com>
8829
8830 PR target/96802
8831 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
8832 Reject target("no-general-regs-only").
8833
8834 2020-08-26 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8835
8836 * config/msp430/constraints.md (K): Change unused constraint to
8837 constraint to a const_int between 1 and 19.
8838 (P): New constraint.
8839 * config/msp430/msp430-protos.h (msp430x_logical_shift_right): Remove.
8840 (msp430_expand_shift): New.
8841 (msp430_output_asm_shift_insns): New.
8842 * config/msp430/msp430.c (msp430_rtx_costs): Remove shift costs.
8843 (CSH): Remove.
8844 (msp430_expand_helper): Remove hard-coded generation of some inline
8845 shift insns.
8846 (use_helper_for_const_shift): New.
8847 (msp430_expand_shift): New.
8848 (msp430_output_asm_shift_insns): New.
8849 (msp430_print_operand): Add new 'W' operand selector.
8850 (msp430x_logical_shift_right): Remove.
8851 * config/msp430/msp430.md (HPSI): New define_mode_iterator.
8852 (HDI): Likewise.
8853 (any_shift): New define_code_iterator.
8854 (shift_insn): New define_code_attr.
8855 Adjust unnamed insn patterns searched for by combine.
8856 (ashlhi3): Remove.
8857 (slli_1): Remove.
8858 (430x_shift_left): Remove.
8859 (slll_1): Remove.
8860 (slll_2): Remove.
8861 (ashlsi3): Remove.
8862 (ashldi3): Remove.
8863 (ashrhi3): Remove.
8864 (srai_1): Remove.
8865 (430x_arithmetic_shift_right): Remove.
8866 (srap_1): Remove.
8867 (srap_2): Remove.
8868 (sral_1): Remove.
8869 (sral_2): Remove.
8870 (ashrsi3): Remove.
8871 (ashrdi3): Remove.
8872 (lshrhi3): Remove.
8873 (srli_1): Remove.
8874 (430x_logical_shift_right): Remove.
8875 (srlp_1): Remove.
8876 (srll_1): Remove.
8877 (srll_2x): Remove.
8878 (lshrsi3): Remove.
8879 (lshrdi3): Remove.
8880 (<shift_insn><mode>3): New define_expand.
8881 (<shift_insn>hi3_430): New define_insn.
8882 (<shift_insn>si3_const): Likewise.
8883 (ashl<mode>3_430x): Likewise.
8884 (ashr<mode>3_430x): Likewise.
8885 (lshr<mode>3_430x): Likewise.
8886 (*bitbranch<mode>4_z): Replace renamed predicate msp430_bitpos with
8887 const_0_to_15_operand.
8888 * config/msp430/msp430.opt: New option -mmax-inline-shift=.
8889 * config/msp430/predicates.md (const_1_to_8_operand): New predicate.
8890 (const_0_to_15_operand): Rename msp430_bitpos predicate.
8891 (const_1_to_19_operand): New predicate.
8892 * doc/invoke.texi: Document -mmax-inline-shift=.
8893
8894 2020-08-26 Aldy Hernandez <aldyh@redhat.com>
8895
8896 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Abstract code out to...
8897 * tree-vrp.c (find_case_label_range): ...here. Rewrite for to use irange
8898 API.
8899 (simplify_stmt_for_jump_threading): Call find_case_label_range instead of
8900 duplicating the code in simplify_stmt_for_jump_threading.
8901 * tree-vrp.h (find_case_label_range): New prototype.
8902
8903 2020-08-26 Richard Biener <rguenther@suse.de>
8904
8905 PR tree-optimization/96698
8906 * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): New.
8907 (loop_vec_info::reduc_latch_slp_defs): Likewise.
8908 * tree-vect-stmts.c (vect_transform_stmt): Only record
8909 stmts to update PHI latches from, perform the update ...
8910 * tree-vect-loop.c (vect_transform_loop): ... here after
8911 vectorizing those PHIs.
8912 (info_for_reduction): Properly handle non-reduction PHIs.
8913
8914 2020-08-26 Martin Liska <mliska@suse.cz>
8915
8916 * cgraphunit.c (process_symver_attribute): Match only symver
8917 TREE_PURPOSE.
8918
8919 2020-08-26 Richard Biener <rguenther@suse.de>
8920
8921 PR tree-optimization/96783
8922 * tree-vect-stmts.c (get_group_load_store_type): Use
8923 VMAT_ELEMENTWISE for negative strides when we cannot
8924 use VMAT_STRIDED_SLP.
8925
8926 2020-08-26 Martin Liska <mliska@suse.cz>
8927
8928 * doc/invoke.texi: Document how are pie and pic options merged.
8929
8930 2020-08-26 Zhiheng Xie <xiezhiheng@huawei.com>
8931
8932 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
8933 for add/sub arithmetic intrinsics.
8934
8935 2020-08-26 Jakub Jelinek <jakub@redhat.com>
8936
8937 PR debug/96729
8938 * dwarf2out.c (dwarf2out_next_real_insn): Adjust function comment.
8939 (dwarf2out_var_location): Look for next_note only if next_real is
8940 non-NULL, in that case look for the first non-deleted
8941 NOTE_INSN_VAR_LOCATION between loc_note and next_real, if any.
8942
8943 2020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
8944
8945 * config/tilepro/gen-mul-tables.cc (main): Define IN_TARGET_CODE to 1
8946 in the target file.
8947
8948 2020-08-26 Martin Liska <mliska@suse.cz>
8949
8950 * cgraphunit.c (process_symver_attribute): Allow multiple
8951 symver attributes for one symbol.
8952 * doc/extend.texi: Document the change.
8953
8954 2020-08-25 H.J. Lu <hjl.tools@gmail.com>
8955
8956 PR target/95863
8957 * config/i386/i386.h (CTZ_DEFINED_VALUE_AT_ZERO): Return 0/2.
8958 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
8959
8960 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
8961
8962 PR middle-end/87256
8963 * config/pa/pa.c (hppa_rtx_costs_shadd_p): New helper function
8964 to check for coefficients supported by shNadd and shladd,l.
8965 (hppa_rtx_costs): Rewrite to avoid using estimates based upon
8966 FACTOR and enable recursing deeper into RTL expressions.
8967
8968 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
8969
8970 * config/pa/pa.md (ashldi3): Additionally, on !TARGET_64BIT
8971 generate a two instruction shd/zdep sequence when shifting
8972 registers by suitable constants.
8973 (shd_internal): New define_expand to provide gen_shd_internal.
8974
8975 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
8976
8977 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Rename
8978 __ARM_FEATURE_SVE_VECTOR_OPERATIONS to
8979 __ARM_FEATURE_SVE_VECTOR_OPERATORS.
8980
8981 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
8982
8983 * config/aarch64/aarch64-sve-builtins.cc (add_sve_type_attribute):
8984 Take the ACLE name of the type as a parameter and add it as fourth
8985 argument to the "SVE type" attribute.
8986 (register_builtin_types): Update call accordingly.
8987 (register_tuple_type): Likewise. Construct the name of the type
8988 earlier in order to do this.
8989 (get_arm_sve_vector_bits_attributes): New function.
8990 (handle_arm_sve_vector_bits_attribute): Report a more sensible
8991 error message if the attribute is applied to an SVE tuple type.
8992 Don't allow the attribute to be applied to an existing fixed-length
8993 SVE type. Mangle the new type as __SVE_VLS<type, vector-bits>.
8994 Add a dummy TYPE_DECL to the new type.
8995
8996 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
8997
8998 * config/aarch64/aarch64-sve-builtins.cc (DEF_SVE_TYPE): Add a
8999 leading "u" to each mangled name.
9000
9001 2020-08-25 Richard Biener <rguenther@suse.de>
9002
9003 PR tree-optimization/96548
9004 PR tree-optimization/96760
9005 * tree-ssa-loop-im.c (tree_ssa_lim): Recompute RPO after
9006 store-motion.
9007
9008 2020-08-25 Jakub Jelinek <jakub@redhat.com>
9009
9010 PR tree-optimization/96722
9011 * gimple.c (infer_nonnull_range): Formatting fix.
9012 (infer_nonnull_range_by_dereference): Return false for clobber stmts.
9013
9014 2020-08-25 Jakub Jelinek <jakub@redhat.com>
9015
9016 PR tree-optimization/96758
9017 * tree-ssa-strlen.c (handle_builtin_string_cmp): If both cstlen1
9018 and cstlen2 are set, set cmpsiz to their minimum, otherwise use the
9019 one that is set. If bound is used and smaller than cmpsiz, set cmpsiz
9020 to bound. If both cstlen1 and cstlen2 are set, perform the optimization.
9021
9022 2020-08-25 Martin Jambor <mjambor@suse.cz>
9023
9024 PR tree-optimization/96730
9025 * tree-sra.c (create_access): Disqualify any aggregate with negative
9026 offset access.
9027 (build_ref_for_model): Add assert that offset is non-negative.
9028
9029 2020-08-25 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
9030
9031 * rtl.def: Fix typo in comment.
9032
9033 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
9034
9035 PR tree-optimization/21137
9036 * fold-const.c (fold_binary_loc) [NE_EXPR/EQ_EXPR]: Call
9037 STRIP_NOPS when checking whether to simplify ((x>>C1)&C2) != 0.
9038
9039 2020-08-25 Andrew Pinski <apinski@marvell.com>
9040
9041 PR middle-end/64242
9042 * config/mips/mips.md (builtin_longjmp): Restore the frame
9043 pointer and stack pointer and gp.
9044
9045 2020-08-25 Richard Biener <rguenther@suse.de>
9046
9047 PR debug/96690
9048 * dwarf2out.c (reference_to_unused): Make FUNCTION_DECL
9049 processing more consistent with respect to
9050 symtab->global_info_ready.
9051 (tree_add_const_value_attribute): Unconditionally call
9052 rtl_for_decl_init to do all mangling early but throw
9053 away the result if early_dwarf.
9054
9055 2020-08-25 Hongtao Liu <hongtao.liu@intel.com>
9056
9057 PR target/96755
9058 * config/i386/sse.md: Correct the mode of NOT operands to
9059 SImode.
9060
9061 2020-08-25 Jakub Jelinek <jakub@redhat.com>
9062
9063 PR tree-optimization/96715
9064 * match.pd (copysign(x,-x) -> -x): New simplification.
9065
9066 2020-08-25 Jakub Jelinek <jakub@redhat.com>
9067
9068 PR target/95450
9069 * fold-const.c (native_interpret_real): For MODE_COMPOSITE_P modes
9070 punt if the to be returned REAL_CST does not encode to the bitwise
9071 same representation.
9072
9073 2020-08-24 Gerald Pfeifer <gerald@pfeifer.com>
9074
9075 * doc/install.texi (Configuration): Switch valgrind.com to https.
9076
9077 2020-08-24 Christophe Lyon <christophe.lyon@linaro.org>
9078
9079 PR target/94538
9080 PR target/94538
9081 * config/arm/thumb1.md: Disable set-constant splitter when
9082 TARGET_HAVE_MOVT.
9083 (thumb1_movsi_insn): Fix -mpure-code
9084 alternative.
9085
9086 2020-08-24 Martin Liska <mliska@suse.cz>
9087
9088 * tree-vect-data-refs.c (dr_group_sort_cmp): Work on
9089 data_ref_pair.
9090 (vect_analyze_data_ref_accesses): Work on groups.
9091 (vect_find_stmt_data_reference): Add group_id argument and fill
9092 up dataref_groups vector.
9093 * tree-vect-loop.c (vect_get_datarefs_in_loop): Pass new
9094 arguments.
9095 (vect_analyze_loop_2): Likewise.
9096 * tree-vect-slp.c (vect_slp_analyze_bb_1): Pass argument.
9097 (vect_slp_bb_region): Likewise.
9098 (vect_slp_region): Likewise.
9099 (vect_slp_bb):Work on the entire BB.
9100 * tree-vectorizer.h (vect_analyze_data_ref_accesses): Add new
9101 argument.
9102 (vect_find_stmt_data_reference): Likewise.
9103
9104 2020-08-24 Martin Liska <mliska@suse.cz>
9105
9106 PR tree-optimization/96597
9107 * tree-ssa-sccvn.c (vn_reference_lookup_call): Add missing
9108 initialization of ::punned.
9109 (vn_reference_insert): Use consistently false instead of 0.
9110 (vn_reference_insert_pieces): Likewise.
9111
9112 2020-08-24 Hans-Peter Nilsson <hp@axis.com>
9113
9114 PR target/93372
9115 * reorg.c (fill_slots_from_thread): Allow trial insns that clobber
9116 TARGET_FLAGS_REGNUM as delay-slot fillers.
9117
9118 2020-08-23 H.J. Lu <hjl.tools@gmail.com>
9119
9120 PR target/96744
9121 * config/i386/i386-options.c (IX86_ATTR_IX86_YES): New.
9122 (IX86_ATTR_IX86_NO): Likewise.
9123 (ix86_opt_type): Add ix86_opt_ix86_yes and ix86_opt_ix86_no.
9124 (ix86_valid_target_attribute_inner_p): Handle general-regs-only,
9125 ix86_opt_ix86_yes and ix86_opt_ix86_no.
9126 (ix86_option_override_internal): Check opts->x_ix86_target_flags
9127 instead of opts->x_ix86_target_flags.
9128 * doc/extend.texi: Document target("general-regs-only") function
9129 attribute.
9130
9131 2020-08-21 Richard Sandiford <richard.sandiford@arm.com>
9132
9133 * doc/extend.texi: Update links to Arm docs.
9134 * doc/invoke.texi: Likewise.
9135
9136 2020-08-21 Hongtao Liu <hongtao.liu@intel.com>
9137
9138 PR target/96262
9139 * config/i386/i386-expand.c
9140 (ix86_expand_vec_shift_qihi_constant): Refine.
9141
9142 2020-08-21 Alex Coplan <alex.coplan@arm.com>
9143
9144 PR jit/63854
9145 * gcc.c (set_static_spec): New.
9146 (set_static_spec_owned): New.
9147 (set_static_spec_shared): New.
9148 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Use
9149 set_static_spec_owned() to take ownership of lto_wrapper_file
9150 such that it gets freed in driver::finalize.
9151 (driver::maybe_run_linker): Use set_static_spec_shared() to
9152 ensure that we don't try and free() the static string "ld",
9153 also ensuring that any previously-allocated string in
9154 linker_name_spec is freed. Likewise with argv0.
9155 (driver::finalize): Use set_static_spec_shared() when resetting
9156 specs that previously had allocated strings; remove if(0)
9157 around call to free().
9158
9159 2020-08-21 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
9160
9161 * emit-rtl.c (try_split): Call copy_frame_info_to_split_insn
9162 to split certain RTX_FRAME_RELATED_P insns.
9163 * recog.c (copy_frame_info_to_split_insn): New function.
9164 (peep2_attempt): Split copying of frame related info of
9165 RTX_FRAME_RELATED_P insns into above function and call it.
9166 * recog.h (copy_frame_info_to_split_insn): Declare it.
9167
9168 2020-08-21 liuhongt <hongtao.liu@intel.com>
9169
9170 PR target/88808
9171 * config/i386/i386.c (ix86_preferred_reload_class): Allow
9172 QImode data go into mask registers.
9173 * config/i386/i386.md: (*movhi_internal): Adjust constraints
9174 for mask registers.
9175 (*movqi_internal): Ditto.
9176 (*anddi_1): Support mask register operations
9177 (*and<mode>_1): Ditto.
9178 (*andqi_1): Ditto.
9179 (*andn<mode>_1): Ditto.
9180 (*<code><mode>_1): Ditto.
9181 (*<code>qi_1): Ditto.
9182 (*one_cmpl<mode>2_1): Ditto.
9183 (*one_cmplsi2_1_zext): Ditto.
9184 (*one_cmplqi2_1): Ditto.
9185 (define_peephole2): Move constant 0/-1 directly into mask
9186 registers.
9187 * config/i386/predicates.md (mask_reg_operand): New predicate.
9188 * config/i386/sse.md (define_split): Add post-reload splitters
9189 that would convert "generic" patterns to mask patterns.
9190 (*knotsi_1_zext): New define_insn.
9191
9192 2020-08-21 liuhongt <hongtao.liu@intel.com>
9193
9194 * config/i386/x86-tune-costs.h (skylake_cost): Adjust cost
9195 model.
9196
9197 2020-08-21 liuhongt <hongtao.liu@intel.com>
9198
9199 * config/i386/i386.c (inline_secondary_memory_needed):
9200 No memory is needed between mask regs and gpr.
9201 (ix86_hard_regno_mode_ok): Add condition TARGET_AVX512F for
9202 mask regno.
9203 * config/i386/i386.h (enum reg_class): Add INT_MASK_REGS.
9204 (REG_CLASS_NAMES): Ditto.
9205 (REG_CLASS_CONTENTS): Ditto.
9206 * config/i386/i386.md: Exclude mask register in
9207 define_peephole2 which is avaiable only for gpr.
9208
9209 2020-08-21 H.J. Lu <hjl.tools@gmail.com>
9210
9211 PR target/71453
9212 * config/i386/i386.h (struct processor_costs): Add member
9213 mask_to_integer, integer_to_mask, mask_load[3], mask_store[3],
9214 mask_move.
9215 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
9216 i386_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
9217 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
9218 bdver_cost, znver1_cost, znver2_cost, skylake_cost,
9219 btver1_cost, btver2_cost, pentium4_cost, nocona_cost,
9220 atom_cost, slm_cost, intel_cost, generic_cost, core_cost):
9221 Initialize mask_load[3], mask_store[3], mask_move,
9222 integer_to_mask, mask_to_integer for all target costs.
9223 * config/i386/i386.c (ix86_register_move_cost): Using cost
9224 model of mask registers.
9225 (inline_memory_move_cost): Ditto.
9226 (ix86_register_move_cost): Ditto.
9227
9228 2020-08-20 Iain Buclaw <ibuclaw@gdcproject.org>
9229
9230 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Don't include
9231 VxWorks header files if -fself-test is used.
9232 (STARTFILE_PREFIX_SPEC): Avoid using VSB_DIR if -fself-test is used.
9233
9234 2020-08-20 Joe Ramsay <Joe.Ramsay@arm.com>
9235
9236 PR target/96683
9237 * config/arm/mve.md (mve_vst1q_f<mode>): Require MVE memory operand for
9238 destination.
9239 (mve_vst1q_<supf><mode>): Likewise.
9240
9241 2020-08-19 2020-08-19 Carl Love <cel@us.ibm.com>
9242
9243 * config/rs6000/rs6000-builtin.def (BU_P10V_0, BU_P10V_1,
9244 BU_P10V_2, BU_P10V_3): Rename BU_P10V_VSX_0, BU_P10V_VSX_1,
9245 BU_P10V_VSX_2, BU_P10V_VSX_3 respectively.
9246 (BU_P10V_4): Remove.
9247 (BU_P10V_AV_0, BU_P10V_AV_1, BU_P10V_AV_2, BU_P10V_AV_3, BU_P10V_AV_4):
9248 New definitions for Power 10 Altivec macros.
9249 (VSTRIBR, VSTRIHR, VSTRIBL, VSTRIHL, VSTRIBR_P, VSTRIHR_P,
9250 VSTRIBL_P, VSTRIHL_P, MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM,
9251 VEXPANDMB, VEXPANDMH, VEXPANDMW, VEXPANDMD, VEXPANDMQ, VEXTRACTMB,
9252 VEXTRACTMH, VEXTRACTMW, VEXTRACTMD, VEXTRACTMQ): Replace macro
9253 expansion BU_P10V_1 with BU_P10V_AV_1.
9254 (VCLRLB, VCLRRB, VCFUGED, VCLZDM, VCTZDM, VPDEPD, VPEXTD, VGNB,
9255 VCNTMBB, VCNTMBH, VCNTMBW, VCNTMBD): Replace macro expansion
9256 BU_P10V_2 with BU_P10V_AV_2.
9257 (VEXTRACTBL, VEXTRACTHL, VEXTRACTWL, VEXTRACTDL, VEXTRACTBR, VEXTRACTHR,
9258 VEXTRACTWR, VEXTRACTDR, VINSERTGPRBL, VINSERTGPRHL, VINSERTGPRWL,
9259 VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL, VINSERTGPRBR,
9260 VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR, VINSERTVPRHR,
9261 VINSERTVPRWR, VREPLACE_ELT_V4SI, VREPLACE_ELT_UV4SI, VREPLACE_ELT_V2DF,
9262 VREPLACE_ELT_V4SF, VREPLACE_ELT_V2DI, VREPLACE_ELT_UV2DI, VREPLACE_UN_V4SI,
9263 VREPLACE_UN_UV4SI, VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
9264 VREPLACE_UN_V2DF, VSLDB_V16QI, VSLDB_V8HI, VSLDB_V4SI, VSLDB_V2DI,
9265 VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI, VSRDB_V2DI): Replace macro expansion
9266 BU_P10V_3 with BU_P10V_AV_3.
9267 (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF, VXXSPLTID): Replace macro expansion
9268 BU_P10V_1 with BU_P10V_AV_1.
9269 (XXGENPCVM_V16QI, XXGENPCVM_V8HI, XXGENPCVM_V4SI, XXGENPCVM_V2DI):
9270 Replace macro expansion BU_P10V_2 with BU_P10V_VSX_2.
9271 (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF, VXXBLEND_V16QI, VXXBLEND_V8HI,
9272 VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): Replace macor
9273 expansion BU_P10V_3 with BU_P10V_VSX_3.
9274 (XXEVAL, VXXPERMX): Replace macro expansion BU_P10V_4 with BU_P10V_VSX_4.
9275 (XVCVBF16SP, XVCVSPBF16): Replace macro expansion BU_VSX_1 with
9276 BU_P10V_VSX_1. Also change MISC to CONST.
9277 * config/rs6000/rs6000-c.c: (P10_BUILTIN_VXXPERMX): Replace with
9278 P10V_BUILTIN_VXXPERMX.
9279 (P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRRB,
9280 P10_BUILTIN_VGNB, P10_BUILTIN_XXEVAL, P10_BUILTIN_VXXPERMX,
9281 P10_BUILTIN_VEXTRACTBL, P10_BUILTIN_VEXTRACTHL, P10_BUILTIN_VEXTRACTWL,
9282 P10_BUILTIN_VEXTRACTDL, P10_BUILTIN_VINSERTGPRHL,
9283 P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
9284 P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
9285 P10_BUILTIN_VEXTRACTBR, P10_BUILTIN_VEXTRACTHR,
9286 P10_BUILTIN_VEXTRACTWR, P10_BUILTIN_VEXTRACTDR,
9287 P10_BUILTIN_VINSERTGPRBR, P10_BUILTIN_VINSERTGPRHR,
9288 P10_BUILTIN_VINSERTGPRWR, P10_BUILTIN_VINSERTGPRDR,
9289 P10_BUILTIN_VINSERTVPRBR, P10_BUILTIN_VINSERTVPRHR,
9290 P10_BUILTIN_VINSERTVPRWR, P10_BUILTIN_VREPLACE_ELT_UV4SI,
9291 P10_BUILTIN_VREPLACE_ELT_V4SI, P10_BUILTIN_VREPLACE_ELT_UV2DI,
9292 P10_BUILTIN_VREPLACE_ELT_V2DI, P10_BUILTIN_VREPLACE_ELT_V2DF,
9293 P10_BUILTIN_VREPLACE_UN_UV4SI, P10_BUILTIN_VREPLACE_UN_V4SI,
9294 P10_BUILTIN_VREPLACE_UN_V4SF, P10_BUILTIN_VREPLACE_UN_UV2DI,
9295 P10_BUILTIN_VREPLACE_UN_V2DI, P10_BUILTIN_VREPLACE_UN_V2DF,
9296 P10_BUILTIN_VSLDB_V16QI, P10_BUILTIN_VSLDB_V16QI,
9297 P10_BUILTIN_VSLDB_V8HI, P10_BUILTIN_VSLDB_V4SI,
9298 P10_BUILTIN_VSLDB_V2DI, P10_BUILTIN_VXXSPLTIW_V4SI,
9299 P10_BUILTIN_VXXSPLTIW_V4SF, P10_BUILTIN_VXXSPLTID,
9300 P10_BUILTIN_VXXSPLTI32DX_V4SI, P10_BUILTIN_VXXSPLTI32DX_V4SF,
9301 P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
9302 P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI,
9303 P10_BUILTIN_VXXBLEND_V4SF, P10_BUILTIN_VXXBLEND_V2DF,
9304 P10_BUILTIN_VSRDB_V16QI, P10_BUILTIN_VSRDB_V8HI,
9305 P10_BUILTIN_VSRDB_V4SI, P10_BUILTIN_VSRDB_V2DI,
9306 P10_BUILTIN_VSTRIBL, P10_BUILTIN_VSTRIHL,
9307 P10_BUILTIN_VSTRIBL_P, P10_BUILTIN_VSTRIHL_P,
9308 P10_BUILTIN_VSTRIBR, P10_BUILTIN_VSTRIHR,
9309 P10_BUILTIN_VSTRIBR_P, P10_BUILTIN_VSTRIHR_P,
9310 P10_BUILTIN_MTVSRBM, P10_BUILTIN_MTVSRHM,
9311 P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
9312 P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB,
9313 P10_BUILTIN_VCNTMBH, P10_BUILTIN_VCNTMBW,
9314 P10_BUILTIN_VCNTMBD, P10_BUILTIN_VEXPANDMB,
9315 P10_BUILTIN_VEXPANDMH, P10_BUILTIN_VEXPANDMW,
9316 P10_BUILTIN_VEXPANDMD, P10_BUILTIN_VEXPANDMQ,
9317 P10_BUILTIN_VEXTRACTMB, P10_BUILTIN_VEXTRACTMH,
9318 P10_BUILTIN_VEXTRACTMW, P10_BUILTIN_VEXTRACTMD,
9319 P10_BUILTIN_VEXTRACTMQ, P10_BUILTIN_XVTLSBB_ZEROS,
9320 P10_BUILTIN_XVTLSBB_ONES): Replace with
9321 P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRRB,
9322 P10V_BUILTIN_VGNB, P10V_BUILTIN_XXEVAL, P10V_BUILTIN_VXXPERMX,
9323 P10V_BUILTIN_VEXTRACTBL, P10V_BUILTIN_VEXTRACTHL, P10V_BUILTIN_VEXTRACTWL,
9324 P10V_BUILTIN_VEXTRACTDL, P10V_BUILTIN_VINSERTGPRHL,
9325 P10V_BUILTIN_VINSERTGPRWL, P10V_BUILTIN_VINSERTGPRDL,
9326 P10V_BUILTIN_VINSERTVPRBL,P10V_BUILTIN_VINSERTVPRHL,
9327 P10V_BUILTIN_VEXTRACTBR, P10V_BUILTIN_VEXTRACTHR
9328 P10V_BUILTIN_VEXTRACTWR, P10V_BUILTIN_VEXTRACTDR,
9329 P10V_BUILTIN_VINSERTGPRBR, P10V_BUILTIN_VINSERTGPRHR,
9330 P10V_BUILTIN_VINSERTGPRWR, P10V_BUILTIN_VINSERTGPRDR,
9331 P10V_BUILTIN_VINSERTVPRBR, P10V_BUILTIN_VINSERTVPRHR,
9332 P10V_BUILTIN_VINSERTVPRWR, P10V_BUILTIN_VREPLACE_ELT_UV4SI,
9333 P10V_BUILTIN_VREPLACE_ELT_V4SI, P10V_BUILTIN_VREPLACE_ELT_UV2DI,
9334 P10V_BUILTIN_VREPLACE_ELT_V2DI, P10V_BUILTIN_VREPLACE_ELT_V2DF,
9335 P10V_BUILTIN_VREPLACE_UN_UV4SI, P10V_BUILTIN_VREPLACE_UN_V4SI,
9336 P10V_BUILTIN_VREPLACE_UN_V4SF, P10V_BUILTIN_VREPLACE_UN_UV2DI,
9337 P10V_BUILTIN_VREPLACE_UN_V2DI, P10V_BUILTIN_VREPLACE_UN_V2DF,
9338 P10V_BUILTIN_VSLDB_V16QI, P10V_BUILTIN_VSLDB_V16QI,
9339 P10V_BUILTIN_VSLDB_V8HI, P10V_BUILTIN_VSLDB_V4SI,
9340 P10V_BUILTIN_VSLDB_V2DI, P10V_BUILTIN_VXXSPLTIW_V4SI,
9341 P10V_BUILTIN_VXXSPLTIW_V4SF, P10V_BUILTIN_VXXSPLTID,
9342 P10V_BUILTIN_VXXSPLTI32DX_V4SI, P10V_BUILTIN_VXXSPLTI32DX_V4SF,
9343 P10V_BUILTIN_VXXBLEND_V16QI, P10V_BUILTIN_VXXBLEND_V8HI,
9344 P10V_BUILTIN_VXXBLEND_V4SI, P10V_BUILTIN_VXXBLEND_V2DI,
9345 P10V_BUILTIN_VXXBLEND_V4SF, P10V_BUILTIN_VXXBLEND_V2DF,
9346 P10V_BUILTIN_VSRDB_V16QI, P10V_BUILTIN_VSRDB_V8HI,
9347 P10V_BUILTIN_VSRDB_V4SI, P10V_BUILTIN_VSRDB_V2DI,
9348 P10V_BUILTIN_VSTRIBL, P10V_BUILTIN_VSTRIHL,
9349 P10V_BUILTIN_VSTRIBL_P, P10V_BUILTIN_VSTRIHL_P,
9350 P10V_BUILTIN_VSTRIBR, P10V_BUILTIN_VSTRIHR,
9351 P10V_BUILTIN_VSTRIBR_P, P10V_BUILTIN_VSTRIHR_P,
9352 P10V_BUILTIN_MTVSRBM, P10V_BUILTIN_MTVSRHM,
9353 P10V_BUILTIN_MTVSRWM, P10V_BUILTIN_MTVSRDM,
9354 P10V_BUILTIN_MTVSRQM, P10V_BUILTIN_VCNTMBB,
9355 P10V_BUILTIN_VCNTMBH, P10V_BUILTIN_VCNTMBW,
9356 P10V_BUILTIN_VCNTMBD, P10V_BUILTIN_VEXPANDMB,
9357 P10V_BUILTIN_VEXPANDMH, P10V_BUILTIN_VEXPANDMW,
9358 P10V_BUILTIN_VEXPANDMD, P10V_BUILTIN_VEXPANDMQ,
9359 P10V_BUILTIN_VEXTRACTMB, P10V_BUILTIN_VEXTRACTMH,
9360 P10V_BUILTIN_VEXTRACTMW, P10V_BUILTIN_VEXTRACTMD,
9361 P10V_BUILTIN_VEXTRACTMQ, P10V_BUILTIN_XVTLSBB_ZEROS,
9362 P10V_BUILTIN_XVTLSBB_ONES respectively.
9363 * config/rs6000/rs6000-call.c: Ditto above, change P10_BUILTIN_name to
9364 P10V_BUILTIN_name.
9365 (P10_BUILTIN_XVCVSPBF16, P10_BUILTIN_XVCVBF16SP): Change to
9366 P10V_BUILTIN_XVCVSPBF16, P10V_BUILTIN_XVCVBF16SP respectively.
9367
9368 2020-08-19 Bill Schmidt <wschmidt@linux.ibm.com>
9369
9370 * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
9371 Sibcalls are always legal when the caller doesn't preserve r2.
9372
9373 2020-08-19 Uroš Bizjak <ubizjak@gmail.com>
9374
9375 * config/i386/i386-expand.c (ix86_expand_builtin)
9376 [case IX86_BUILTIN_ENQCMD, case IX86_BUILTIN_ENQCMDS]:
9377 Rewrite expansion to use code_for_enqcmd.
9378 [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]:
9379 Rewrite expansion to use code_for_wrss.
9380 [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
9381 Rewrite expansion to use code_for_wrss.
9382
9383 2020-08-19 Feng Xue <fxue@os.amperecomputing.com>
9384
9385 PR tree-optimization/94234
9386 * match.pd ((PTR_A + OFF) - (PTR_B + OFF)) -> (PTR_A - PTR_B): New
9387 simplification.
9388
9389 2020-08-19 H.J. Lu <hjl.tools@gmail.com>
9390
9391 * common/config/i386/cpuinfo.h (get_intel_cpu): Detect Rocket
9392 Lake and Alder Lake.
9393
9394 2020-08-19 Peixin Qiao <qiaopeixin@huawei.com>
9395
9396 * config/aarch64/aarch64.c (aarch64_init_cumulative_args): Remove
9397 "fndecl && TREE_PUBLIC (fndecl)" check since it prevents the funtion
9398 type check when calling via a function pointer or when calling a static
9399 function.
9400
9401 2020-08-19 Kewen Lin <linkw@linux.ibm.com>
9402
9403 * opts-global.c (decode_options): Call target_option_override_hook
9404 before it prints for --help=*.
9405
9406 2020-08-18 Peter Bergner <bergner@linux.ibm.com>
9407
9408 * config/rs6000/rs6000-builtin.def (BU_VSX_1): Rename xvcvbf16sp to
9409 xvcvbf16spn.
9410 * config/rs6000/rs6000-call.c (builtin_function_type): Likewise.
9411 * config/rs6000/vsx.md: Likewise.
9412 * doc/extend.texi: Likewise.
9413
9414 2020-08-18 Aaron Sawdey <acsawdey@linux.ibm.com>
9415
9416 * config/rs6000/rs6000-string.c (gen_lxvl_stxvl_move):
9417 Helper function.
9418 (expand_block_move): Add lxvl/stxvl, vector pair, and
9419 unaligned VSX.
9420 * config/rs6000/rs6000.c (rs6000_option_override_internal):
9421 Default value for -mblock-ops-vector-pair.
9422 * config/rs6000/rs6000.opt: Add -mblock-ops-vector-pair.
9423
9424 2020-08-18 Aldy Hernandez <aldyh@redhat.com>
9425
9426 * vr-values.c (check_for_binary_op_overflow): Change type of store
9427 to range_query.
9428 (vr_values::adjust_range_with_scev): Abstract most of the code...
9429 (range_of_var_in_loop): ...here. Remove value_range_equiv uses.
9430 (simplify_using_ranges::simplify_using_ranges): Change type of store
9431 to range_query.
9432 * vr-values.h (class range_query): New.
9433 (class simplify_using_ranges): Use range_query.
9434 (class vr_values): Add OVERRIDE to get_value_range.
9435 (range_of_var_in_loop): New.
9436
9437 2020-08-18 Martin Sebor <msebor@redhat.com>
9438
9439 PR middle-end/96665
9440 PR middle-end/78257
9441 * expr.c (convert_to_bytes): Replace statically allocated buffer with
9442 a dynamically allocated one of sufficient size.
9443
9444 2020-08-18 Martin Sebor <msebor@redhat.com>
9445
9446 PR tree-optimization/96670
9447 PR middle-end/78257
9448 * gimple-fold.c (gimple_fold_builtin_memchr): Call byte_representation
9449 to get it, not string_constant.
9450
9451 2020-08-18 Hu Jiangping <hujiangping@cn.fujitsu.com>
9452
9453 * doc/gimple.texi (gimple_debug_begin_stmt_p): Add return type.
9454 (gimple_debug_inline_entry_p, gimple_debug_nonbind_marker_p): Likewise.
9455
9456 2020-08-18 Martin Sebor <msebor@redhat.com>
9457
9458 * fold-const.c (native_encode_expr): Update comment.
9459
9460 2020-08-18 Uroš Bizjak <ubizjak@gmail.com>
9461
9462 PR target/96536
9463 * config/i386/i386.md (restore_stack_nonlocal): Add missing compare
9464 RTX. Rewrite expander to use high-level functions in RTL construction.
9465
9466 2020-08-18 liuhongt <hongtao.liu@intel.com>
9467
9468 PR target/96562
9469 PR target/93897
9470 * config/i386/i386-expand.c (ix86_expand_pinsr): Don't use
9471 pinsr for TImode.
9472 (ix86_expand_pextr): Don't use pextr for TImode.
9473
9474 2020-08-17 Uroš Bizjak <ubizjak@gmail.com>
9475
9476 * config/i386/i386-builtin.def (__builtin_ia32_bextri_u32)
9477 (__builtin_ia32_bextri_u64): Use CODE_FOR_nothing.
9478 * config/i386/i386.md (@tbm_bextri_<mode>):
9479 Implement as parametrized name pattern.
9480 (@rdrand<mode>): Ditto.
9481 (@rdseed<mode>): Ditto.
9482 * config/i386/i386-expand.c (ix86_expand_builtin)
9483 [case IX86_BUILTIN_BEXTRI32, case IX86_BUILTIN_BEXTRI64]:
9484 Update for parameterized name patterns.
9485 [case IX86_BUILTIN_RDRAND16_STEP, case IX86_BUILTIN_RDRAND32_STEP]
9486 [case IX86_BUILTIN_RDRAND64_STEP]: Ditto.
9487 [case IX86_BUILTIN_RDSEED16_STEP, case IX86_BUILTIN_RDSEED32_STEP]
9488 [case IX86_BUILTIN_RDSEED64_STEP]: Ditto.
9489
9490 2020-08-17 Aldy Hernandez <aldyh@redhat.com>
9491
9492 * vr-values.c (vr_values::get_value_range): Add stmt param.
9493 (vr_values::extract_range_from_comparison): Same.
9494 (vr_values::extract_range_from_assignment): Pass stmt to
9495 extract_range_from_comparison.
9496 (vr_values::adjust_range_with_scev): Pass stmt to get_value_range.
9497 (simplify_using_ranges::vrp_evaluate_conditional): Add stmt param.
9498 Pass stmt to get_value_range.
9499 (simplify_using_ranges::vrp_visit_cond_stmt): Pass stmt to
9500 get_value_range.
9501 (simplify_using_ranges::simplify_abs_using_ranges): Same.
9502 (simplify_using_ranges::simplify_div_or_mod_using_ranges): Same.
9503 (simplify_using_ranges::simplify_bit_ops_using_ranges): Same.
9504 (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
9505 (simplify_using_ranges::simplify_switch_using_ranges): Same.
9506 (simplify_using_ranges::simplify_float_conversion_using_ranges): Same.
9507 * vr-values.h (class vr_values): Add stmt arg to
9508 vrp_evaluate_conditional_warnv_with_ops.
9509 Add stmt arg to extract_range_from_comparison and get_value_range.
9510 (simplify_using_ranges::get_value_range): Add stmt arg.
9511
9512 2020-08-17 liuhongt <hongtao.liu@intel.com>
9513
9514 PR target/96350
9515 * config/i386/i386.c (ix86_legitimate_constant_p): Return
9516 false for ENDBR immediate.
9517 (ix86_legitimate_address_p): Ditto.
9518 * config/i386/predicates.md
9519 (x86_64_immediate_operand): Exclude ENDBR immediate.
9520 (x86_64_zext_immediate_operand): Ditto.
9521 (x86_64_dwzext_immediate_operand): Ditto.
9522 (ix86_endbr_immediate_operand): New predicate.
9523
9524 2020-08-16 Roger Sayle <roger@nextmovesoftware.com>
9525
9526 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
9527 Simplify (sign_extend:M (truncate:N (lshiftrt:M x C))) to
9528 (ashiftrt:M x C) when the shift sets the high bits appropriately.
9529
9530 2020-08-14 Martin Sebor <msebor@redhat.com>
9531
9532 PR middle-end/78257
9533 * builtins.c (expand_builtin_memory_copy_args): Rename called function.
9534 (expand_builtin_stpcpy_1): Remove argument from call.
9535 (expand_builtin_memcmp): Rename called function.
9536 (inline_expand_builtin_bytecmp): Same.
9537 * expr.c (convert_to_bytes): New function.
9538 (constant_byte_string): New function (formerly string_constant).
9539 (string_constant): Call constant_byte_string.
9540 (byte_representation): New function.
9541 * expr.h (byte_representation): Declare.
9542 * fold-const-call.c (fold_const_call): Rename called function.
9543 * fold-const.c (c_getstr): Remove an argument.
9544 (getbyterep): Define a new function.
9545 * fold-const.h (c_getstr): Remove an argument.
9546 (getbyterep): Declare a new function.
9547 * gimple-fold.c (gimple_fold_builtin_memory_op): Rename callee.
9548 (gimple_fold_builtin_string_compare): Same.
9549 (gimple_fold_builtin_memchr): Same.
9550
9551 2020-08-14 David Malcolm <dmalcolm@redhat.com>
9552
9553 * doc/analyzer.texi (Overview): Add tip about how to get a
9554 gimple dump if the analyzer ICEs.
9555
9556 2020-08-14 Uroš Bizjak <ubizjak@gmail.com>
9557
9558 * config/i386/i386-builtin.def (__builtin_ia32_llwpcb)
9559 (__builtin_ia32_slwpcb, __builtin_ia32_lwpval32)
9560 (__builtin_ia32_lwpval64, __builtin_ia32_lwpins32)
9561 (__builtin_ia32_lwpins64): Use CODE_FOR_nothing.
9562 * config/i386/i386.md (@lwp_llwpcb<mode>):
9563 Implement as parametrized name pattern.
9564 (@lwp_slwpcb<mode>): Ditto.
9565 (@lwp_lwpval<mode>): Ditto.
9566 (@lwp_lwpins<mode>): Ditto.
9567 * config/i386/i386-expand.c (ix86_expand_special_args_builtin)
9568 [case VOID_FTYPE_UINT_UINT_UINT, case VOID_FTYPE_UINT64_UINT_UINT]
9569 [case UCHAR_FTYPE_UINT_UINT_UINT, case UCHAR_FTYPE_UINT64_UINT_UINT]:
9570 Remove.
9571 (ix86_expand_builtin)
9572 [ case IX86_BUILTIN_LLWPCB, case IX86_BUILTIN_LLWPCB]:
9573 Update for parameterized name patterns.
9574 [case IX86_BUILTIN_LWPVAL32, case IX86_BUILTIN_LWPVAL64]
9575 [case IX86_BUILTIN_LWPINS32, case IX86_BUILTIN_LWPINS64]: Expand here.
9576
9577 2020-08-14 Lewis Hyatt <lhyatt@gmail.com>
9578
9579 * common.opt: Add new option -fdiagnostics-plain-output.
9580 * doc/invoke.texi: Document it.
9581 * opts-common.c (decode_cmdline_options_to_array): Implement it.
9582 (decode_cmdline_option): Add missing const qualifier to argv.
9583
9584 2020-08-14 Jakub Jelinek <jakub@redhat.com>
9585 Jonathan Wakely <jwakely@redhat.com>
9586 Jonathan Wakely <jwakely@redhat.com>
9587
9588 * system.h: Include type_traits.
9589 * vec.h (vec<T, A, vl_embed>::embedded_size): Use offsetof and asserts
9590 on vec_stdlayout, which is conditionally a vec (for standard layout T)
9591 and otherwise vec_embedded.
9592
9593 2020-08-14 Jojo R <jiejie_rong@c-sky.com>
9594
9595 * config/csky/csky-elf.h (ASM_SPEC): Use mfloat-abi.
9596 * config/csky/csky-linux-elf.h (ASM_SPEC): mfloat-abi.
9597
9598 2020-08-13 David Malcolm <dmalcolm@redhat.com>
9599
9600 PR analyzer/93032
9601 PR analyzer/93938
9602 PR analyzer/94011
9603 PR analyzer/94099
9604 PR analyzer/94399
9605 PR analyzer/94458
9606 PR analyzer/94503
9607 PR analyzer/94640
9608 PR analyzer/94688
9609 PR analyzer/94689
9610 PR analyzer/94839
9611 PR analyzer/95026
9612 PR analyzer/95042
9613 PR analyzer/95240
9614 * Makefile.in (ANALYZER_OBJS): Add analyzer/region.o,
9615 analyzer/region-model-impl-calls.o,
9616 analyzer/region-model-manager.o,
9617 analyzer/region-model-reachability.o, analyzer/store.o, and
9618 analyzer/svalue.o.
9619 * doc/analyzer.texi: Update for changes to analyzer
9620 implementation.
9621 * tristate.h (tristate::get_value): New accessor.
9622
9623 2020-08-13 Uroš Bizjak <ubizjak@gmail.com>
9624
9625 * config/i386/i386-builtin.def (CET_NORMAL): Merge to CET BDESC array.
9626 (__builtin_ia32_rddspd, __builtin_ia32_rddspq, __builtin_ia32_incsspd)
9627 (__builtin_ia32_incsspq, __builtin_ia32_wrssd, __builtin_ia32_wrssq)
9628 (__builtin_ia32_wrussd, __builtin_ia32_wrussq): Use CODE_FOR_nothing.
9629 * config/i386/i386-builtins.c: Remove handling of CET_NORMAL builtins.
9630 * config/i386/i386.md (@rdssp<mode>): Implement as parametrized
9631 name pattern. Use SWI48 mode iterator. Introduce input operand
9632 and remove explicit XOR zeroing from insn template.
9633 (@incssp<mode>): Implement as parametrized name pattern.
9634 Use SWI48 mode iterator.
9635 (@wrss<mode>): Ditto.
9636 (@wruss<mode>): Ditto.
9637 (rstorssp): Remove expander. Rename insn pattern from *rstorssp<mode>.
9638 Use DImode memory operand.
9639 (clrssbsy): Remove expander. Rename insn pattern from *clrssbsy<mode>.
9640 Use DImode memory operand.
9641 (save_stack_nonlocal): Update for parametrized name patterns.
9642 Use cleared register as an argument to gen_rddsp.
9643 (restore_stack_nonlocal): Update for parametrized name patterns.
9644 * config/i386/i386-expand.c (ix86_expand_builtin):
9645 [case IX86_BUILTIN_RDSSPD, case IX86_BUILTIN_RDSSPQ]: Expand here.
9646 [case IX86_BUILTIN_INCSSPD, case IX86_BUILTIN_INCSSPQ]: Ditto.
9647 [case IX86_BUILTIN_RSTORSSP, case IX86_BUILTIN_CLRSSBSY]:
9648 Generate DImode memory operand.
9649 [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]
9650 [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
9651 Update for parameterized name patterns.
9652
9653 2020-08-13 Peter Bergner <bergner@linux.ibm.com>
9654
9655 PR target/96506
9656 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode): Disallow
9657 MMA types as return values.
9658 (rs6000_function_arg): Disallow MMA types as function arguments.
9659
9660 2020-08-13 Richard Sandiford <richard.sandiford@arm.com>
9661
9662 Revert:
9663 2020-08-12 Peixin Qiao <qiaopeixin@huawei.com>
9664
9665 * config/aarch64/aarch64.c (aarch64_function_value): Add if
9666 condition to check ag_mode after entering if condition of
9667 aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
9668 set as false by -mgeneral-regs-only, report the diagnostic
9669 information of -mgeneral-regs-only imcompatible with the use
9670 of fp/simd register(s).
9671
9672 2020-08-13 Martin Liska <mliska@suse.cz>
9673
9674 PR ipa/96482
9675 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Mask m_value
9676 with m_mask.
9677
9678 2020-08-13 Jakub Jelinek <jakub@redhat.com>
9679
9680 * gimplify.c (gimplify_omp_taskloop_expr): New function.
9681 (gimplify_omp_for): Use it. For OMP_FOR_NON_RECTANGULAR
9682 loops adjust in outer taskloop the var-outer decls.
9683 * omp-expand.c (expand_omp_taskloop_for_inner): Handle non-rectangular
9684 loops.
9685 (expand_omp_for): Don't reject non-rectangular taskloop.
9686 * omp-general.c (omp_extract_for_data): Don't assert that
9687 non-rectangular loops have static schedule, instead treat loop->m1
9688 or loop->m2 as if loop->n1 or loop->n2 is non-constant.
9689
9690 2020-08-13 Hongtao Liu <hongtao.liu@intel.com>
9691
9692 PR target/96246
9693 * config/i386/sse.md (<avx512>_load<mode>_mask,
9694 <avx512>_load<mode>_mask): Extend to generate blendm
9695 instructions.
9696 (<avx512>_blendm<mode>, <avx512>_blendm<mode>): Change
9697 define_insn to define_expand.
9698
9699 2020-08-12 Roger Sayle <roger@nextmovesoftware.com>
9700 Uroš Bizjak <ubizjak@gmail.com>
9701
9702 PR target/96558
9703 * config/i386/i386.md (peephole2): Only reorder register clearing
9704 instructions to allow use of xor for general registers.
9705
9706 2020-08-12 Martin Liska <mliska@suse.cz>
9707
9708 PR ipa/96482
9709 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Drop value bits
9710 for bits that are unknown.
9711 (ipcp_bits_lattice::set_to_constant): Likewise.
9712 * tree-ssa-ccp.c (get_default_value): Add sanity check that
9713 IPA CP bit info has all bits set to zero in bits that
9714 are unknown.
9715
9716 2020-08-12 Peixin Qiao <qiaopeixin@huawei.com>
9717
9718 * config/aarch64/aarch64.c (aarch64_function_value): Add if
9719 condition to check ag_mode after entering if condition of
9720 aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
9721 set as false by -mgeneral-regs-only, report the diagnostic
9722 information of -mgeneral-regs-only imcompatible with the use
9723 of fp/simd register(s).
9724
9725 2020-08-12 Jakub Jelinek <jakub@redhat.com>
9726
9727 PR tree-optimization/96535
9728 * toplev.c (process_options): Move flag_unroll_loops and
9729 flag_cunroll_grow_size handling from here to ...
9730 * opts.c (finish_options): ... here. For flag_cunroll_grow_size,
9731 don't check for AUTODETECT_VALUE, but instead check
9732 opts_set->x_flag_cunroll_grow_size.
9733 * common.opt (funroll-completely-grow-size): Default to 0.
9734 * config/rs6000/rs6000.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
9735 Redefine.
9736 (rs6000_override_options_after_change): New function.
9737 (rs6000_option_override_internal): Call it. Move there the
9738 flag_cunroll_grow_size, unroll_only_small_loops and
9739 flag_rename_registers handling.
9740
9741 2020-08-12 Tom de Vries <tdevries@suse.de>
9742
9743 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Make elt_size an
9744 unsigned HOST_WIDE_INT. Print init_frag.remaining using
9745 HOST_WIDE_INT_PRINT_UNSIGNED.
9746
9747 2020-08-12 Roger Sayle <roger@nextmovesoftware.com>
9748 Uroš Bizjak <ubizjak@gmail.com>
9749
9750 * config/i386/i386.md (peephole2): Reduce unnecessary
9751 register shuffling produced by register allocation.
9752
9753 2020-08-12 Aldy Hernandez <aldyh@redhat.com>
9754
9755 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use vec<>
9756 instead of std::vector<>.
9757 (evaluate_properties_for_edge): Same.
9758 (ipa_fn_summary_t::duplicate): Same.
9759 (estimate_ipcp_clone_size_and_time): Same.
9760 * vec.h (<T, A, vl_embed>::embedded_size): Change vec_embedded
9761 type to contain a char[].
9762
9763 2020-08-12 Andreas Krebbel <krebbel@linux.ibm.com>
9764
9765 PR target/96308
9766 * config/s390/s390.c (s390_cannot_force_const_mem): Reject an
9767 unary minus for everything not being a numeric constant.
9768 (legitimize_tls_address): Move a NEG out of the CONST rtx.
9769
9770 2020-08-12 Andreas Krebbel <krebbel@linux.ibm.com>
9771
9772 PR target/96456
9773 * config/s390/s390.h (TARGET_NONSIGNALING_VECTOR_COMPARE_OK): New
9774 macro.
9775 * config/s390/vector.md (vcond_comparison_operator): Use new macro
9776 for the check.
9777
9778 2020-08-11 Jakub Jelinek <jakub@redhat.com>
9779
9780 PR rtl-optimization/96539
9781 * expr.c (emit_block_move_hints): Don't copy anything if x and y
9782 are the same and neither is MEM_VOLATILE_P.
9783
9784 2020-08-11 Jakub Jelinek <jakub@redhat.com>
9785
9786 PR c/96549
9787 * tree.c (get_narrower): Use TREE_TYPE (ret) instead of
9788 TREE_TYPE (win) for COMPOUND_EXPRs.
9789
9790 2020-08-11 Jan Hubicka <hubicka@ucw.cz>
9791
9792 * predict.c (not_loop_guard_equal_edge_p): New function.
9793 (maybe_predict_edge): New function.
9794 (predict_paths_for_bb): Use it.
9795 (predict_paths_leading_to_edge): Use it.
9796
9797 2020-08-11 Martin Liska <mliska@suse.cz>
9798
9799 * dbgcnt.def (DEBUG_COUNTER): Add ipa_cp_bits.
9800 * ipa-cp.c (ipcp_store_bits_results): Use it when we store known
9801 bits for parameters.
9802
9803 2020-08-10 Marek Polacek <polacek@redhat.com>
9804
9805 * doc/sourcebuild.texi: Document dg-ice.
9806
9807 2020-08-10 Roger Sayle <roger@nextmovesoftware.com>
9808
9809 * config/i386/i386-expand.c (ix86_expand_int_movcc): Expand
9810 signed MIN_EXPR against zero as "x < 0 ? x : 0" instead of
9811 "x <= 0 ? x : 0" to enable sign_bit_compare_p optimizations.
9812
9813 2020-08-10 Aldy Hernandez <aldyh@redhat.com>
9814
9815 * value-range.h (gt_ggc_mx): Declare inline.
9816 (gt_pch_nx): Same.
9817
9818 2020-08-10 Marc Glisse <marc.glisse@inria.fr>
9819
9820 PR tree-optimization/95433
9821 * match.pd (X * C1 == C2): Handle wrapping overflow.
9822 * expr.c (maybe_optimize_mod_cmp): Qualify call to mod_inv.
9823 (mod_inv): Move...
9824 * wide-int.cc (mod_inv): ... here.
9825 * wide-int.h (mod_inv): Declare it.
9826
9827 2020-08-10 Jan Hubicka <hubicka@ucw.cz>
9828
9829 * predict.c (filter_predictions): Document semantics of filter.
9830 (equal_edge_p): Rename to ...
9831 (not_equal_edge_p): ... this; reverse semantics.
9832 (remove_predictions_associated_with_edge): Fix.
9833
9834 2020-08-10 Hongtao Liu <hongtao.liu@intel.com>
9835
9836 PR target/96243
9837 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Refine for
9838 maskcmp.
9839 (ix86_expand_mask_vec_cmp): Change prototype.
9840 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): Change prototype.
9841 * config/i386/i386.c (ix86_print_operand): Remove operand
9842 modifier 'I'.
9843 * config/i386/sse.md
9844 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>): Deleted.
9845 (*<avx512>_cmp<mode>3<mask_scalar_merge_name>): Ditto.
9846 (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
9847 (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9848 avx512f_maskcmp<mode>3): Ditto.
9849
9850 2020-08-09 Roger Sayle <roger@nextmovesoftware.com>
9851
9852 * expmed.c (init_expmed_one_conv): Restore all->reg's mode.
9853 (init_expmed_one_mode): Set all->reg to desired mode.
9854
9855 2020-08-08 Peter Bergner <bergner@linux.ibm.com>
9856
9857 PR target/96530
9858 * config/rs6000/rs6000.c (rs6000_invalid_conversion): Use canonical
9859 types for type comparisons. Refactor code to simplify it.
9860
9861 2020-08-08 Jakub Jelinek <jakub@redhat.com>
9862
9863 PR fortran/93553
9864 * tree-nested.c (convert_nonlocal_omp_clauses): For
9865 OMP_CLAUSE_REDUCTION, OMP_CLAUSE_LASTPRIVATE and OMP_CLAUSE_LINEAR
9866 save info->new_local_var_chain around walks of the clause gimple
9867 sequences and declare_vars if needed into the sequence.
9868
9869 2020-08-08 Jakub Jelinek <jakub@redhat.com>
9870
9871 PR tree-optimization/96424
9872 * omp-expand.c: Include tree-eh.h.
9873 (expand_omp_for_init_vars): Handle -fexceptions -fnon-call-exceptions
9874 by forcing floating point comparison into a bool temporary.
9875
9876 2020-08-07 Marc Glisse <marc.glisse@inria.fr>
9877
9878 * generic-match-head.c (optimize_vectors_before_lowering_p): New
9879 function.
9880 * gimple-match-head.c (optimize_vectors_before_lowering_p):
9881 Likewise.
9882 * match.pd ((v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): Use it.
9883
9884 2020-08-07 Richard Biener <rguenther@suse.de>
9885
9886 PR tree-optimization/96514
9887 * tree-if-conv.c (if_convertible_bb_p): If the last stmt
9888 is a call that is control-altering, fail.
9889
9890 2020-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
9891
9892 * config/bpf/bpf.md: Remove trailing whitespaces.
9893 * config/bpf/constraints.md: Likewise.
9894 * config/bpf/predicates.md: Likewise.
9895
9896 2020-08-07 Michael Meissner <meissner@linux.ibm.com>
9897
9898 * config/rs6000/rs6000.md (bswaphi2_reg): Add ISA 3.1 support.
9899 (bswapsi2_reg): Add ISA 3.1 support.
9900 (bswapdi2): Rename bswapdi2_xxbrd to bswapdi2_brd.
9901 (bswapdi2_brd,bswapdi2_xxbrd): Rename. Add ISA 3.1 support.
9902
9903 2020-08-07 Alan Modra <amodra@gmail.com>
9904
9905 PR target/96493
9906 * config/rs6000/predicates.md (current_file_function_operand): Don't
9907 accept functions that differ in r2 usage.
9908
9909 2020-08-06 Hans-Peter Nilsson <hp@bitrange.com>
9910
9911 * config/mmix/mmix.md (MM): New mode_iterator.
9912 ("mov<mode>"): New expander to expand for all MM-modes.
9913 ("*movqi_expanded", "*movhi_expanded", "*movsi_expanded")
9914 ("*movsf_expanded", "*movdf_expanded"): Rename from the
9915 corresponding mov<M> named pattern. Add to the condition that
9916 either operand must be a register_operand.
9917 ("*movdi_expanded"): Similar, but also allow STCO in the condition.
9918
9919 2020-08-06 Richard Sandiford <richard.sandiford@arm.com>
9920
9921 PR target/96191
9922 * config/arm/arm.md (arm_stack_protect_test_insn): Zero out
9923 operand 2 after use.
9924 * config/arm/thumb1.md (thumb1_stack_protect_test_insn): Likewise.
9925
9926 2020-08-06 Peter Bergner <bergner@linux.ibm.com>
9927
9928 PR target/96446
9929 * config/rs6000/mma.md (*movpxi): Add xxsetaccz generation.
9930 Disable split for zero constant source operand.
9931 (mma_xxsetaccz): Change to define_expand. Call gen_movpxi.
9932
9933 2020-08-06 Jakub Jelinek <jakub@redhat.com>
9934
9935 PR tree-optimization/96480
9936 * tree-ssa-reassoc.c (suitable_cond_bb): Add TEST_SWAPPED_P argument.
9937 If TEST_BB ends in cond and has one edge to *OTHER_BB and another
9938 through an empty bb to that block too, if PHI args don't match, retry
9939 them through the other path from TEST_BB.
9940 (maybe_optimize_range_tests): Adjust callers. Handle such LAST_BB
9941 through inversion of the condition.
9942
9943 2020-08-06 Jose E. Marchesi <jose.marchesi@oracle.com>
9944
9945 * config/bpf/bpf-helpers.h (KERNEL_HELPER): Define.
9946 (KERNEL_VERSION): Remove.
9947 * config/bpf/bpf-helpers.def: Delete.
9948 * config/bpf/bpf.c (bpf_handle_fndecl_attribute): New function.
9949 (bpf_attribute_table): Define.
9950 (bpf_helper_names): Delete.
9951 (bpf_helper_code): Likewise.
9952 (enum bpf_builtins): Adjust to new helpers mechanism.
9953 (bpf_output_call): Likewise.
9954 (bpf_init_builtins): Likewise.
9955 (bpf_init_builtins): Likewise.
9956 * doc/extend.texi (BPF Function Attributes): New section.
9957 (BPF Kernel Helpers): Delete section.
9958
9959 2020-08-06 Richard Biener <rguenther@suse.de>
9960
9961 PR tree-optimization/96491
9962 * tree-ssa-sink.c (sink_common_stores_to_bb): Avoid
9963 sinking across abnormal edges.
9964
9965 2020-08-06 Richard Biener <rguenther@suse.de>
9966
9967 PR tree-optimization/96483
9968 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
9969 POLY_INT_CST.
9970
9971 2020-08-06 Richard Biener <rguenther@suse.de>
9972
9973 * graphite-isl-ast-to-gimple.c (ivs_params): Use hash_map instead
9974 of std::map.
9975 (ivs_params_clear): Adjust.
9976 (gcc_expression_from_isl_ast_expr_id): Likewise.
9977 (graphite_create_new_loop): Likewise.
9978 (add_parameters_to_ivs_params): Likewise.
9979
9980 2020-08-06 Roger Sayle <roger@nextmovesoftware.com>
9981 Uroš Bizjak <ubizjak@gmail.com>
9982
9983 * config/i386/i386.md (MAXMIN_IMODE): No longer needed.
9984 (<maxmin><mode>3): Support SWI248 and general_operand for
9985 second operand, when TARGET_CMOVE.
9986 (<maxmin><mode>3_1 splitter): Optimize comparisons against
9987 0, 1 and -1 to use "test" instead of "cmp".
9988 (*<maxmin>di3_doubleword): Likewise, allow general_operand
9989 and enable on TARGET_CMOVE.
9990 (peephole2): Convert clearing a register after a flag setting
9991 instruction into an xor followed by the original flag setter.
9992
9993 2020-08-06 Gerald Pfeifer <gerald@pfeifer.com>
9994
9995 * ipa-fnsummary.c (INCLUDE_VECTOR): Define.
9996 Remove direct inclusion of <vector>.
9997
9998 2020-08-06 Kewen Lin <linkw@gcc.gnu.org>
9999
10000 * config/rs6000/rs6000.c (rs6000_adjust_vect_cost_per_loop): New
10001 function.
10002 (rs6000_finish_cost): Call rs6000_adjust_vect_cost_per_loop.
10003 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Add cost
10004 modeling for vector with length.
10005 (vect_rgroup_iv_might_wrap_p): New function, factored out from...
10006 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): ...this.
10007 Update function comment.
10008 * tree-vect-stmts.c (vect_gen_len): Update function comment.
10009 * tree-vectorizer.h (vect_rgroup_iv_might_wrap_p): New declare.
10010
10011 2020-08-06 Kewen Lin <linkw@linux.ibm.com>
10012
10013 * tree-vectorizer.c (try_vectorize_loop_1): Skip the epilogue loops
10014 for dbgcnt check.
10015
10016 2020-08-05 Marc Glisse <marc.glisse@inria.fr>
10017
10018 PR tree-optimization/95906
10019 PR target/70314
10020 * match.pd ((c ? a : b) op d, (c ? a : b) op (c ? d : e),
10021 (v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): New transformations.
10022 (op (c ? a : b)): Update to match the new transformations.
10023
10024 2020-08-05 Richard Sandiford <richard.sandiford@arm.com>
10025
10026 PR target/96191
10027 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Set the
10028 CC register directly, instead of a GPR. Replace the original GPR
10029 destination with an extra scratch register. Zero out operand 3
10030 after use.
10031 (stack_protect_test): Update accordingly.
10032
10033 2020-08-05 Richard Sandiford <richard.sandiford@arm.com>
10034
10035 * config/aarch64/aarch64.md (load_pair_sw_<SX:mode><SX2:mode>)
10036 (load_pair_dw_<DX:mode><DX2:mode>, load_pair_dw_tftf)
10037 (store_pair_sw_<SX:mode><SX2:mode>)
10038 (store_pair_dw_<DX:mode><DX2:mode>, store_pair_dw_tftf)
10039 (*load_pair_extendsidi2_aarch64)
10040 (*load_pair_zero_extendsidi2_aarch64): Use %z for the memory operand.
10041 * config/aarch64/aarch64-simd.md (load_pair<DREG:mode><DREG2:mode>)
10042 (vec_store_pair<DREG:mode><DREG2:mode>, load_pair<VQ:mode><VQ2:mode>)
10043 (vec_store_pair<VQ:mode><VQ2:mode>): Likewise.
10044
10045 2020-08-05 Richard Biener <rguenther@suse.de>
10046
10047 * tree-ssa-loop-im.c (invariantness_dom_walker): Remove.
10048 (invariantness_dom_walker::before_dom_children): Move to ...
10049 (compute_invariantness): ... this function.
10050 (move_computations): Inline ...
10051 (tree_ssa_lim): ... here, share RPO order and avoid some
10052 cfun references.
10053 (analyze_memory_references): Remove sorting of location
10054 lists, instead assert they are sorted already when checking.
10055 (prev_flag_edges): Remove.
10056 (execute_sm_if_changed): Pass down and adjust prev edge state.
10057 (execute_sm_exit): Likewise.
10058 (hoist_memory_references): Likewise. Commit edge insertions
10059 of each processed exit.
10060 (store_motion_loop): Do not commit edge insertions on all
10061 edges in the function.
10062 (tree_ssa_lim_initialize): Do not call alloc_aux_for_edges.
10063 (tree_ssa_lim_finalize): Do not call free_aux_for_edges.
10064
10065 2020-08-05 Richard Biener <rguenther@suse.de>
10066
10067 * genmatch.c (fail_label): New global.
10068 (expr::gen_transform): Branch to fail_label instead of
10069 returning. Fix indent of call argument checking.
10070 (dt_simplify::gen_1): Compute and emit fail_label, branch
10071 to it instead of returning early.
10072
10073 2020-08-05 Jakub Jelinek <jakub@redhat.com>
10074
10075 * omp-expand.c (expand_omp_for): Don't disallow combined non-rectangular
10076 loops.
10077
10078 2020-08-05 Jakub Jelinek <jakub@redhat.com>
10079
10080 PR middle-end/96459
10081 * omp-low.c (lower_omp_taskreg): Call lower_reduction_clauses even in
10082 for host teams.
10083
10084 2020-08-05 Jakub Jelinek <jakub@redhat.com>
10085
10086 * omp-expand.c (expand_omp_for_init_counts): Remember
10087 first_inner_iterations, factor and n1o from the number of iterations
10088 computation in *fd.
10089 (expand_omp_for_init_vars): Use more efficient logical iteration number
10090 to actual iterator values computation even for non-rectangular loops
10091 where number of loop iterations could not be computed at compile time.
10092
10093 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10094
10095 * config/rs6000/altivec.h (vec_blendv, vec_permx): Add define.
10096 * config/rs6000/altivec.md (UNSPEC_XXBLEND, UNSPEC_XXPERMX.): New
10097 unspecs.
10098 (VM3): New define_mode.
10099 (VM3_char): New define_attr.
10100 (xxblend_<mode> mode VM3): New define_insn.
10101 (xxpermx): New define_expand.
10102 (xxpermx_inst): New define_insn.
10103 * config/rs6000/rs6000-builtin.def (VXXBLEND_V16QI, VXXBLEND_V8HI,
10104 VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): New
10105 BU_P10V_3 definitions.
10106 (XXBLEND): New BU_P10_OVERLOAD_3 definition.
10107 (XXPERMX): New BU_P10_OVERLOAD_4 definition.
10108 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10109 (P10_BUILTIN_VXXPERMX): Add if statement.
10110 * config/rs6000/rs6000-call.c (P10_BUILTIN_VXXBLEND_V16QI,
10111 P10_BUILTIN_VXXBLEND_V8HI, P10_BUILTIN_VXXBLEND_V4SI,
10112 P10_BUILTIN_VXXBLEND_V2DI, P10_BUILTIN_VXXBLEND_V4SF,
10113 P10_BUILTIN_VXXBLEND_V2DF, P10_BUILTIN_VXXPERMX): Define
10114 overloaded arguments.
10115 (rs6000_expand_quaternop_builtin): Add if case for CODE_FOR_xxpermx.
10116 (builtin_quaternary_function_type): Add v16uqi_type and xxpermx_type
10117 variables, add case statement for P10_BUILTIN_VXXPERMX.
10118 (builtin_function_type): Add case statements for
10119 P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
10120 P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI.
10121 * doc/extend.texi: Add documentation for vec_blendv and vec_permx.
10122
10123 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10124
10125 * config/rs6000/altivec.h (vec_splati, vec_splatid, vec_splati_ins):
10126 Add defines.
10127 * config/rs6000/altivec.md (UNSPEC_XXSPLTIW, UNSPEC_XXSPLTID,
10128 UNSPEC_XXSPLTI32DX): New.
10129 (vxxspltiw_v4si, vxxspltiw_v4sf_inst, vxxspltidp_v2df_inst,
10130 vxxsplti32dx_v4si_inst, vxxsplti32dx_v4sf_inst): New define_insn.
10131 (vxxspltiw_v4sf, vxxspltidp_v2df, vxxsplti32dx_v4si,
10132 vxxsplti32dx_v4sf.): New define_expands.
10133 * config/rs6000/predicates.md (u1bit_cint_operand,
10134 s32bit_cint_operand, c32bit_cint_operand): New predicates.
10135 * config/rs6000/rs6000-builtin.def (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF,
10136 VXXSPLTID): New definitions.
10137 (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF): New BU_P10V_3
10138 definitions.
10139 (XXSPLTIW, XXSPLTID): New definitions.
10140 (XXSPLTI32DX): Add definitions.
10141 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XXSPLTIW,
10142 P10_BUILTIN_VEC_XXSPLTID, P10_BUILTIN_VEC_XXSPLTI32DX):
10143 New definitions.
10144 * config/rs6000/rs6000-protos.h (rs6000_constF32toI32): New extern
10145 declaration.
10146 * config/rs6000/rs6000.c (rs6000_constF32toI32): New function.
10147 * doc/extend.texi: Add documentation for vec_splati,
10148 vec_splatid, and vec_splati_ins.
10149
10150 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10151
10152 * config/rs6000/altivec.h (vec_sldb, vec_srdb): New defines.
10153 * config/rs6000/altivec.md (UNSPEC_SLDB, UNSPEC_SRDB): New.
10154 (SLDB_lr): New attribute.
10155 (VSHIFT_DBL_LR): New iterator.
10156 (vs<SLDB_lr>db_<mode>): New define_insn.
10157 * config/rs6000/rs6000-builtin.def (VSLDB_V16QI, VSLDB_V8HI,
10158 VSLDB_V4SI, VSLDB_V2DI, VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI,
10159 VSRDB_V2DI): New BU_P10V_3 definitions.
10160 (SLDB, SRDB): New BU_P10_OVERLOAD_3 definitions.
10161 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_SLDB,
10162 P10_BUILTIN_VEC_SRDB): New definitions.
10163 (rs6000_expand_ternop_builtin) [CODE_FOR_vsldb_v16qi,
10164 CODE_FOR_vsldb_v8hi, CODE_FOR_vsldb_v4si, CODE_FOR_vsldb_v2di,
10165 CODE_FOR_vsrdb_v16qi, CODE_FOR_vsrdb_v8hi, CODE_FOR_vsrdb_v4si,
10166 CODE_FOR_vsrdb_v2di]: Add clauses.
10167 * doc/extend.texi: Add description for vec_sldb and vec_srdb.
10168
10169 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10170
10171 * config/rs6000/altivec.h: Add define for vec_replace_elt and
10172 vec_replace_unaligned.
10173 * config/rs6000/vsx.md (UNSPEC_REPLACE_ELT, UNSPEC_REPLACE_UN): New
10174 unspecs.
10175 (REPLACE_ELT): New mode iterator.
10176 (REPLACE_ELT_char, REPLACE_ELT_sh, REPLACE_ELT_max): New mode attributes.
10177 (vreplace_un_<mode>, vreplace_elt_<mode>_inst): New.
10178 * config/rs6000/rs6000-builtin.def (VREPLACE_ELT_V4SI,
10179 VREPLACE_ELT_UV4SI, VREPLACE_ELT_V4SF, VREPLACE_ELT_UV2DI,
10180 VREPLACE_ELT_V2DF, VREPLACE_UN_V4SI, VREPLACE_UN_UV4SI,
10181 VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
10182 VREPLACE_UN_V2DF, (REPLACE_ELT, REPLACE_UN, VREPLACE_ELT_V2DI): New builtin
10183 entries.
10184 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_REPLACE_ELT,
10185 P10_BUILTIN_VEC_REPLACE_UN): New builtin argument definitions.
10186 (rs6000_expand_quaternop_builtin): Add 3rd argument checks for
10187 CODE_FOR_vreplace_elt_v4si, CODE_FOR_vreplace_elt_v4sf,
10188 CODE_FOR_vreplace_un_v4si, CODE_FOR_vreplace_un_v4sf.
10189 (builtin_function_type) [P10_BUILTIN_VREPLACE_ELT_UV4SI,
10190 P10_BUILTIN_VREPLACE_ELT_UV2DI, P10_BUILTIN_VREPLACE_UN_UV4SI,
10191 P10_BUILTIN_VREPLACE_UN_UV2DI]: New cases.
10192 * doc/extend.texi: Add description for vec_replace_elt and
10193 vec_replace_unaligned builtins.
10194
10195 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10196
10197 * config/rs6000/altivec.h (vec_insertl, vec_inserth): New defines.
10198 * config/rs6000/rs6000-builtin.def (VINSERTGPRBL, VINSERTGPRHL,
10199 VINSERTGPRWL, VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL,
10200 VINSERTGPRBR, VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR,
10201 VINSERTVPRHR, VINSERTVPRWR): New builtins.
10202 (INSERTL, INSERTH): New builtins.
10203 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_INSERTL,
10204 P10_BUILTIN_VEC_INSERTH): New overloaded definitions.
10205 (P10_BUILTIN_VINSERTGPRBL, P10_BUILTIN_VINSERTGPRHL,
10206 P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
10207 P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
10208 P10_BUILTIN_VINSERTVPRWL): Add case entries.
10209 * config/rs6000/vsx.md (define_c_enum): Add UNSPEC_INSERTL,
10210 UNSPEC_INSERTR.
10211 (define_expand): Add vinsertvl_<mode>, vinsertvr_<mode>,
10212 vinsertgl_<mode>, vinsertgr_<mode>, mode is VI2.
10213 (define_ins): vinsertvl_internal_<mode>, vinsertvr_internal_<mode>,
10214 vinsertgl_internal_<mode>, vinsertgr_internal_<mode>, mode VEC_I.
10215 * doc/extend.texi: Add documentation for vec_insertl, vec_inserth.
10216
10217 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
10218
10219 * config/rs6000/altivec.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
10220 (vextractl<mode>, vextractr<mode>)
10221 (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
10222 (VI2): Move to ...
10223 * config/rs6000/vsx.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
10224 (vextractl<mode>, vextractr<mode>)
10225 (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
10226 (VI2): ..here.
10227 * doc/extend.texi: Update documentation for vec_extractl.
10228 Replace builtin name vec_extractr with vec_extracth. Update
10229 description of vec_extracth.
10230
10231 2020-08-04 Jim Wilson <jimw@sifive.com>
10232
10233 * doc/invoke.texi (AArch64 Options): Delete duplicate
10234 -mstack-protector-guard docs.
10235
10236 2020-08-04 Roger Sayle <roger@nextmovesoftware.com>
10237
10238 * config/nvptx/nvptx.md (smulhi3_highpart, smulsi3_highpart)
10239 (umulhi3_highpart, umulsi3_highpart): New instructions.
10240
10241 2020-08-04 Andrew Stubbs <ams@codesourcery.com>
10242
10243 * config/gcn/gcn-run.c (R_AMDGPU_NONE): Delete.
10244 (R_AMDGPU_ABS32_LO): Delete.
10245 (R_AMDGPU_ABS32_HI): Delete.
10246 (R_AMDGPU_ABS64): Delete.
10247 (R_AMDGPU_REL32): Delete.
10248 (R_AMDGPU_REL64): Delete.
10249 (R_AMDGPU_ABS32): Delete.
10250 (R_AMDGPU_GOTPCREL): Delete.
10251 (R_AMDGPU_GOTPCREL32_LO): Delete.
10252 (R_AMDGPU_GOTPCREL32_HI): Delete.
10253 (R_AMDGPU_REL32_LO): Delete.
10254 (R_AMDGPU_REL32_HI): Delete.
10255 (reserved): Delete.
10256 (R_AMDGPU_RELATIVE64): Delete.
10257
10258 2020-08-04 Omar Tahir <omar.tahir@arm.com>
10259
10260 * config/arm/arm-cpus.in (armv8.1-m.main): Tune for Cortex-M55.
10261
10262 2020-08-04 Hu Jiangping <hujiangping@cn.fujitsu.com>
10263
10264 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Delete
10265 redundant extra_cost variable.
10266
10267 2020-08-04 Zhiheng Xie <xiezhiheng@huawei.com>
10268
10269 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
10270 Use FLOAT_MODE_P macro instead of enumerating all floating-point
10271 modes and add global flag FLAG_AUTO_FP.
10272
10273 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10274
10275 * doc/extend.texi (symver): Add @cindex for symver function attribute.
10276
10277 2020-08-04 Marc Glisse <marc.glisse@inria.fr>
10278
10279 PR tree-optimization/95433
10280 * match.pd (X * C1 == C2): New transformation.
10281
10282 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10283
10284 * gimple-ssa-sprintf.c (get_int_range): Adjust for irange API.
10285 (format_integer): Same.
10286 (handle_printf_call): Same.
10287
10288 2020-08-04 Andrew Stubbs <ams@codesourcery.com>
10289
10290 * config/gcn/gcn.md ("<expander>ti3"): New.
10291
10292 2020-08-04 Richard Biener <rguenther@suse.de>
10293
10294 PR tree-optimization/88240
10295 * tree-ssa-sccvn.h (vn_reference_s::punned): New flag.
10296 * tree-ssa-sccvn.c (vn_reference_insert): Initialize punned.
10297 (vn_reference_insert_pieces): Likewise.
10298 (visit_reference_op_call): Likewise.
10299 (visit_reference_op_load): Track whether a ref was punned.
10300 * tree-ssa-pre.c (do_hoist_insertion): Refuse to perform hoist
10301 insertion on punned floating point loads.
10302
10303 2020-08-04 Sudakshina Das <sudi.das@arm.com>
10304
10305 * config/aarch64/aarch64.c (aarch64_gen_store_pair): Add case
10306 for E_V4SImode.
10307 (aarch64_gen_load_pair): Likewise.
10308 (aarch64_copy_one_block_and_progress_pointers): Handle 256 bit copy.
10309 (aarch64_expand_cpymem): Expand copy_limit to 256bits where
10310 appropriate.
10311
10312 2020-08-04 Andrea Corallo <andrea.corallo@arm.com>
10313
10314 * config/aarch64/aarch64.md (aarch64_fjcvtzs): Add missing
10315 clobber.
10316 * doc/sourcebuild.texi (aarch64_fjcvtzs_hw) Document new
10317 target supports option.
10318
10319 2020-08-04 Tom de Vries <tdevries@suse.de>
10320
10321 PR target/96428
10322 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Handle V2SI/V2DI.
10323
10324 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10325
10326 PR middle-end/96426
10327 * tree-vect-generic.c (expand_vector_conversion): Replace .VEC_CONVERT
10328 call with GIMPLE_NOP if there is no lhs.
10329
10330 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10331
10332 PR debug/96354
10333 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Add IS_DEBUG
10334 argument. Return false instead of gcc_unreachable if it is true and
10335 get_addr_base_and_unit_offset returns NULL.
10336 (fold_stmt_1) <case GIMPLE_DEBUG>: Adjust caller.
10337
10338 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10339
10340 * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional):
10341 Call is_gimple_min_invariant dropped from previous patch.
10342
10343 2020-08-04 Jakub Jelinek <jakub@redhat.com>
10344
10345 * omp-expand.c (expand_omp_for_init_counts): For triangular loops
10346 compute number of iterations at runtime more efficiently.
10347 (expand_omp_for_init_vars): Adjust immediate dominators.
10348 (extract_omp_for_update_vars): Likewise.
10349
10350 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10351
10352 * vr-values.c (simplify_using_ranges::two_valued_val_range_p):
10353 Use irange API.
10354
10355 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10356
10357 * vr-values.c (simplify_conversion_using_ranges): Convert to irange API.
10358
10359 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10360
10361 * vr-values.c (test_for_singularity): Use irange API.
10362 (simplify_using_ranges::simplify_cond_using_ranges_1): Do not
10363 special case VR_RANGE.
10364
10365 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10366
10367 * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional): Adjust
10368 for irange API.
10369
10370 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10371
10372 * vr-values.c (simplify_using_ranges::op_with_boolean_value_range_p): Adjust
10373 for irange API.
10374
10375 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10376
10377 * tree-ssanames.c (get_range_info): Use irange instead of value_range.
10378 * tree-ssanames.h (get_range_info): Same.
10379
10380 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10381
10382 * fold-const.c (expr_not_equal_to): Adjust for irange API.
10383
10384 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
10385
10386 * builtins.c (determine_block_size): Remove ad-hoc range canonicalization.
10387
10388 2020-08-04 Xionghu Luo <luoxhu@linux.ibm.com>
10389
10390 PR rtl-optimization/71309
10391 * dse.c (find_shift_sequence): Use subreg of shifted from high part
10392 register to avoid loading from address.
10393
10394 2020-08-03 Jonathan Wakely <jwakely@redhat.com>
10395
10396 * doc/cpp.texi (Variadic Macros): Use the exact ... token in
10397 code examples.
10398
10399 2020-08-03 Nathan Sidwell <nathan@acm.org>
10400
10401 * doc/invoke.texi: Refer to c++20
10402
10403 2020-08-03 Julian Brown <julian@codesourcery.com>
10404 Thomas Schwinge <thomas@codesourcery.com>
10405
10406 * gimplify.c (gimplify_omp_target_update): Allow GOMP_MAP_TO_PSET
10407 without a preceding data-movement mapping.
10408
10409 2020-08-03 Iain Sandoe <iain@sandoe.co.uk>
10410
10411 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): UNDEF before
10412 use.
10413 (DEF_MIN_OSX_VERSION): Only define if there's no existing
10414 def.
10415
10416 2020-08-03 Iain Sandoe <iain@sandoe.co.uk>
10417
10418 * config/darwin.c (IN_TARGET_CODE): Remove.
10419 (darwin_mergeable_constant_section): Handle poly-int machine modes.
10420 (machopic_select_rtx_section): Likewise.
10421
10422 2020-08-03 Aldy Hernandez <aldyh@redhat.com>
10423
10424 PR tree-optimization/96430
10425 * range-op.cc (operator_tests): Do not shift by 31 on targets with
10426 integer's smaller than 32 bits.
10427
10428 2020-08-03 Martin Jambor <mjambor@suse.cz>
10429
10430 * hsa-brig-format.h: Moved to brig/brigfrontend.
10431 * hsa-brig.c: Removed.
10432 * hsa-builtins.def: Likewise.
10433 * hsa-common.c: Likewise.
10434 * hsa-common.h: Likewise.
10435 * hsa-dump.c: Likewise.
10436 * hsa-gen.c: Likewise.
10437 * hsa-regalloc.c: Likewise.
10438 * ipa-hsa.c: Likewise.
10439 * omp-grid.c: Likewise.
10440 * omp-grid.h: Likewise.
10441 * Makefile.in (BUILTINS_DEF): Remove hsa-builtins.def.
10442 (OBJS): Remove hsa-common.o, hsa-gen.o, hsa-regalloc.o, hsa-brig.o,
10443 hsa-dump.o, ipa-hsa.c and omp-grid.o.
10444 (GTFILES): Removed hsa-common.c and omp-expand.c.
10445 * builtins.def: Remove processing of hsa-builtins.def.
10446 (DEF_HSA_BUILTIN): Remove.
10447 * common.opt (flag_disable_hsa): Remove.
10448 (-Whsa): Ignore.
10449 * config.in (ENABLE_HSA): Removed.
10450 * configure.ac: Removed handling configuration for hsa offloading.
10451 (ENABLE_HSA): Removed.
10452 * configure: Regenerated.
10453 * doc/install.texi (--enable-offload-targets): Remove hsa from the
10454 example.
10455 (--with-hsa-runtime): Reword to reference any HSA run-time, not
10456 specifically HSA offloading.
10457 * doc/invoke.texi (Option Summary): Remove -Whsa.
10458 (Warning Options): Likewise.
10459 (Optimize Options): Remove hsa-gen-debug-stores.
10460 * doc/passes.texi (Regular IPA passes): Remove section on IPA HSA
10461 pass.
10462 * gimple-low.c (lower_stmt): Remove GIMPLE_OMP_GRID_BODY case.
10463 * gimple-pretty-print.c (dump_gimple_omp_for): Likewise.
10464 (dump_gimple_omp_block): Likewise.
10465 (pp_gimple_stmt_1): Likewise.
10466 * gimple-walk.c (walk_gimple_stmt): Likewise.
10467 * gimple.c (gimple_build_omp_grid_body): Removed function.
10468 (gimple_copy): Remove GIMPLE_OMP_GRID_BODY case.
10469 * gimple.def (GIMPLE_OMP_GRID_BODY): Removed.
10470 * gimple.h (gf_mask): Removed GF_OMP_PARALLEL_GRID_PHONY,
10471 OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY,
10472 GF_OMP_FOR_GRID_INTRA_GROUP, GF_OMP_FOR_GRID_GROUP_ITER and
10473 GF_OMP_TEAMS_GRID_PHONY. Renumbered GF_OMP_FOR_KIND_SIMD and
10474 GF_OMP_TEAMS_HOST.
10475 (gimple_build_omp_grid_body): Removed declaration.
10476 (gimple_has_substatements): Remove GIMPLE_OMP_GRID_BODY case.
10477 (gimple_omp_for_grid_phony): Removed.
10478 (gimple_omp_for_set_grid_phony): Likewise.
10479 (gimple_omp_for_grid_intra_group): Likewise.
10480 (gimple_omp_for_grid_intra_group): Likewise.
10481 (gimple_omp_for_grid_group_iter): Likewise.
10482 (gimple_omp_for_set_grid_group_iter): Likewise.
10483 (gimple_omp_parallel_grid_phony): Likewise.
10484 (gimple_omp_parallel_set_grid_phony): Likewise.
10485 (gimple_omp_teams_grid_phony): Likewise.
10486 (gimple_omp_teams_set_grid_phony): Likewise.
10487 (CASE_GIMPLE_OMP): Remove GIMPLE_OMP_GRID_BODY case.
10488 * lto-section-in.c (lto_section_name): Removed hsa.
10489 * lto-streamer.h (lto_section_type): Removed LTO_section_ipa_hsa.
10490 * lto-wrapper.c (compile_images_for_offload_targets): Remove special
10491 handling of hsa.
10492 * omp-expand.c: Do not include hsa-common.h and gt-omp-expand.h.
10493 (parallel_needs_hsa_kernel_p): Removed.
10494 (grid_launch_attributes_trees): Likewise.
10495 (grid_launch_attributes_trees): Likewise.
10496 (grid_create_kernel_launch_attr_types): Likewise.
10497 (grid_insert_store_range_dim): Likewise.
10498 (grid_get_kernel_launch_attributes): Likewise.
10499 (get_target_arguments): Remove code passing HSA grid sizes.
10500 (grid_expand_omp_for_loop): Remove.
10501 (grid_arg_decl_map): Likewise.
10502 (grid_remap_kernel_arg_accesses): Likewise.
10503 (grid_expand_target_grid_body): Likewise.
10504 (expand_omp): Remove call to grid_expand_target_grid_body.
10505 (omp_make_gimple_edges): Remove GIMPLE_OMP_GRID_BODY case.
10506 * omp-general.c: Do not include hsa-common.h.
10507 (omp_maybe_offloaded): Do not check for HSA offloading.
10508 (omp_context_selector_matches): Likewise.
10509 * omp-low.c: Do not include hsa-common.h and omp-grid.h.
10510 (build_outer_var_ref): Remove handling of GIMPLE_OMP_GRID_BODY.
10511 (scan_sharing_clauses): Remove handling of OMP_CLAUSE__GRIDDIM_.
10512 (scan_omp_parallel): Remove handling of the phoney variant.
10513 (check_omp_nesting_restrictions): Remove handling of
10514 GIMPLE_OMP_GRID_BODY and GF_OMP_FOR_KIND_GRID_LOOP.
10515 (scan_omp_1_stmt): Remove handling of GIMPLE_OMP_GRID_BODY.
10516 (lower_omp_for_lastprivate): Remove handling of gridified loops.
10517 (lower_omp_for): Remove phony loop handling.
10518 (lower_omp_taskreg): Remove phony construct handling.
10519 (lower_omp_teams): Likewise.
10520 (lower_omp_grid_body): Removed.
10521 (lower_omp_1): Remove GIMPLE_OMP_GRID_BODY case.
10522 (execute_lower_omp): Do not call omp_grid_gridify_all_targets.
10523 * opts.c (common_handle_option): Do not handle hsa when processing
10524 OPT_foffload_.
10525 * params.opt (hsa-gen-debug-stores): Remove.
10526 * passes.def: Remove pass_ipa_hsa and pass_gen_hsail.
10527 * timevar.def: Remove TV_IPA_HSA.
10528 * toplev.c: Do not include hsa-common.h.
10529 (compile_file): Do not call hsa_output_brig.
10530 * tree-core.h (enum omp_clause_code): Remove OMP_CLAUSE__GRIDDIM_.
10531 (tree_omp_clause): Remove union field dimension.
10532 * tree-nested.c (convert_nonlocal_omp_clauses): Remove the
10533 OMP_CLAUSE__GRIDDIM_ case.
10534 (convert_local_omp_clauses): Likewise.
10535 * tree-pass.h (make_pass_gen_hsail): Remove declaration.
10536 (make_pass_ipa_hsa): Likewise.
10537 * tree-pretty-print.c (dump_omp_clause): Remove GIMPLE_OMP_GRID_BODY
10538 case.
10539 * tree.c (omp_clause_num_ops): Remove the element corresponding to
10540 OMP_CLAUSE__GRIDDIM_.
10541 (omp_clause_code_name): Likewise.
10542 (walk_tree_1): Remove GIMPLE_OMP_GRID_BODY case.
10543 * tree.h (OMP_CLAUSE__GRIDDIM__DIMENSION): Remove.
10544 (OMP_CLAUSE__GRIDDIM__SIZE): Likewise.
10545 (OMP_CLAUSE__GRIDDIM__GROUP): Likewise.
10546
10547 2020-08-03 Bu Le <bule1@huawei.com>
10548
10549 * config/aarch64/aarch64-sve.md (sub<mode>3): Add support for
10550 unpacked vectors.
10551
10552 2020-08-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10553
10554 * config/msp430/msp430.h (ASM_SPEC): Don't pass on "-md" option.
10555
10556 2020-08-03 Yunde Zhong <zhongyunde@huawei.com>
10557
10558 PR rtl-optimization/95696
10559 * regrename.c (regrename_analyze): New param include_all_block_p
10560 with default value TRUE. If set to false, avoid disrupting SMS
10561 schedule.
10562 * regrename.h (regrename_analyze): Adjust prototype.
10563
10564 2020-08-03 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
10565
10566 * doc/tm.texi.in (VECTOR_STORE_FLAG_VALUE): Fix a typo.
10567 * doc/tm.texi: Regenerate.
10568
10569 2020-08-03 Richard Sandiford <richard.sandiford@arm.com>
10570
10571 * doc/invoke.texi: Add missing comma after octeontx2f95mm entry.
10572
10573 2020-08-03 Qian jianhua <qianjh@cn.fujitsu.com>
10574
10575 * config/aarch64/aarch64-cores.def (a64fx): New core.
10576 * config/aarch64/aarch64-tune.md: Regenerated.
10577 * config/aarch64/aarch64.c (a64fx_prefetch_tune, a64fx_tunings): New.
10578 * doc/invoke.texi: Add a64fx to the list.
10579
10580 2020-08-03 Roger Sayle <roger@nextmovesoftware.com>
10581
10582 PR rtl-optimization/61494
10583 * simplify-rtx.c (simplify_binary_operation_1) [MINUS]: Don't
10584 simplify x - 0.0 with -fsignaling-nans.
10585
10586 2020-08-03 Roger Sayle <roger@nextmovesoftware.com>
10587
10588 * genmatch.c (decision_tree::gen): Emit stub functions for
10589 tree code operand counts that have no simplifications.
10590 (main): Correct comment typo.
10591
10592 2020-08-03 Jonathan Wakely <jwakely@redhat.com>
10593
10594 * gimple-ssa-sprintf.c: Fix typos in comments.
10595
10596 2020-08-03 Tamar Christina <tamar.christina@arm.com>
10597
10598 * config/aarch64/driver-aarch64.c (readline): Check return value fgets.
10599
10600 2020-08-03 Richard Biener <rguenther@suse.de>
10601
10602 * doc/match-and-simplify.texi: Amend accordingly.
10603
10604 2020-08-03 Richard Biener <rguenther@suse.de>
10605
10606 * genmatch.c (parser::gimple): New.
10607 (parser::parser): Initialize gimple flag member.
10608 (parser::parse_expr): Error on ! operator modifier when
10609 not targeting GIMPLE.
10610 (main): Pass down gimple flag to parser ctor.
10611
10612 2020-08-03 Aldy Hernandez <aldyh@redhat.com>
10613
10614 * Makefile.in (GTFILES): Move value-range.h up.
10615 * gengtype-lex.l: Set yylval to handle GTY markers on templates.
10616 * ipa-cp.c (initialize_node_lattices): Call value_range
10617 constructor.
10618 (ipcp_propagate_stage): Use in-place new so value_range construct
10619 is called.
10620 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use std
10621 vec instead of GCC's vec<>.
10622 (evaluate_properties_for_edge): Adjust for std vec.
10623 (ipa_fn_summary_t::duplicate): Same.
10624 (estimate_ipcp_clone_size_and_time): Same.
10625 * ipa-prop.c (ipa_get_value_range): Use in-place new for
10626 value_range.
10627 * ipa-prop.h (struct GTY): Remove class keyword for m_vr.
10628 * range-op.cc (empty_range_check): Rename to...
10629 (empty_range_varying): ...this and adjust for varying.
10630 (undefined_shift_range_check): Adjust for irange.
10631 (range_operator::wi_fold): Same.
10632 (range_operator::fold_range): Adjust for irange. Special case
10633 single pairs for performance.
10634 (range_operator::op1_range): Adjust for irange.
10635 (range_operator::op2_range): Same.
10636 (value_range_from_overflowed_bounds): Same.
10637 (value_range_with_overflow): Same.
10638 (create_possibly_reversed_range): Same.
10639 (range_true): Same.
10640 (range_false): Same.
10641 (range_true_and_false): Same.
10642 (get_bool_state): Adjust for irange and tweak for performance.
10643 (operator_equal::fold_range): Adjust for irange.
10644 (operator_equal::op1_range): Same.
10645 (operator_equal::op2_range): Same.
10646 (operator_not_equal::fold_range): Same.
10647 (operator_not_equal::op1_range): Same.
10648 (operator_not_equal::op2_range): Same.
10649 (build_lt): Same.
10650 (build_le): Same.
10651 (build_gt): Same.
10652 (build_ge): Same.
10653 (operator_lt::fold_range): Same.
10654 (operator_lt::op1_range): Same.
10655 (operator_lt::op2_range): Same.
10656 (operator_le::fold_range): Same.
10657 (operator_le::op1_range): Same.
10658 (operator_le::op2_range): Same.
10659 (operator_gt::fold_range): Same.
10660 (operator_gt::op1_range): Same.
10661 (operator_gt::op2_range): Same.
10662 (operator_ge::fold_range): Same.
10663 (operator_ge::op1_range): Same.
10664 (operator_ge::op2_range): Same.
10665 (operator_plus::wi_fold): Same.
10666 (operator_plus::op1_range): Same.
10667 (operator_plus::op2_range): Same.
10668 (operator_minus::wi_fold): Same.
10669 (operator_minus::op1_range): Same.
10670 (operator_minus::op2_range): Same.
10671 (operator_min::wi_fold): Same.
10672 (operator_max::wi_fold): Same.
10673 (cross_product_operator::wi_cross_product): Same.
10674 (operator_mult::op1_range): New.
10675 (operator_mult::op2_range): New.
10676 (operator_mult::wi_fold): Adjust for irange.
10677 (operator_div::wi_fold): Same.
10678 (operator_exact_divide::op1_range): Same.
10679 (operator_lshift::fold_range): Same.
10680 (operator_lshift::wi_fold): Same.
10681 (operator_lshift::op1_range): New.
10682 (operator_rshift::op1_range): New.
10683 (operator_rshift::fold_range): Adjust for irange.
10684 (operator_rshift::wi_fold): Same.
10685 (operator_cast::truncating_cast_p): Abstract out from
10686 operator_cast::fold_range.
10687 (operator_cast::fold_range): Adjust for irange and tweak for
10688 performance.
10689 (operator_cast::inside_domain_p): Abstract out from fold_range.
10690 (operator_cast::fold_pair): Same.
10691 (operator_cast::op1_range): Use abstracted methods above. Adjust
10692 for irange and tweak for performance.
10693 (operator_logical_and::fold_range): Adjust for irange.
10694 (operator_logical_and::op1_range): Same.
10695 (operator_logical_and::op2_range): Same.
10696 (unsigned_singleton_p): New.
10697 (operator_bitwise_and::remove_impossible_ranges): New.
10698 (operator_bitwise_and::fold_range): New.
10699 (wi_optimize_and_or): Adjust for irange.
10700 (operator_bitwise_and::wi_fold): Same.
10701 (set_nonzero_range_from_mask): New.
10702 (operator_bitwise_and::simple_op1_range_solver): New.
10703 (operator_bitwise_and::op1_range): Adjust for irange.
10704 (operator_bitwise_and::op2_range): Same.
10705 (operator_logical_or::fold_range): Same.
10706 (operator_logical_or::op1_range): Same.
10707 (operator_logical_or::op2_range): Same.
10708 (operator_bitwise_or::wi_fold): Same.
10709 (operator_bitwise_or::op1_range): Same.
10710 (operator_bitwise_or::op2_range): Same.
10711 (operator_bitwise_xor::wi_fold): Same.
10712 (operator_bitwise_xor::op1_range): New.
10713 (operator_bitwise_xor::op2_range): New.
10714 (operator_trunc_mod::wi_fold): Adjust for irange.
10715 (operator_logical_not::fold_range): Same.
10716 (operator_logical_not::op1_range): Same.
10717 (operator_bitwise_not::fold_range): Same.
10718 (operator_bitwise_not::op1_range): Same.
10719 (operator_cst::fold_range): Same.
10720 (operator_identity::fold_range): Same.
10721 (operator_identity::op1_range): Same.
10722 (class operator_unknown): New.
10723 (operator_unknown::fold_range): New.
10724 (class operator_abs): Adjust for irange.
10725 (operator_abs::wi_fold): Same.
10726 (operator_abs::op1_range): Same.
10727 (operator_absu::wi_fold): Same.
10728 (class operator_negate): Same.
10729 (operator_negate::fold_range): Same.
10730 (operator_negate::op1_range): Same.
10731 (operator_addr_expr::fold_range): Same.
10732 (operator_addr_expr::op1_range): Same.
10733 (pointer_plus_operator::wi_fold): Same.
10734 (pointer_min_max_operator::wi_fold): Same.
10735 (pointer_and_operator::wi_fold): Same.
10736 (pointer_or_operator::op1_range): New.
10737 (pointer_or_operator::op2_range): New.
10738 (pointer_or_operator::wi_fold): Adjust for irange.
10739 (integral_table::integral_table): Add entries for IMAGPART_EXPR
10740 and POINTER_DIFF_EXPR.
10741 (range_cast): Adjust for irange.
10742 (build_range3): New.
10743 (range3_tests): New.
10744 (widest_irange_tests): New.
10745 (multi_precision_range_tests): New.
10746 (operator_tests): New.
10747 (range_tests): New.
10748 * range-op.h (class range_operator): Adjust for irange.
10749 (range_cast): Same.
10750 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust for irange and
10751 tweak for performance.
10752 (range_fold_binary_expr): Same.
10753 (masked_increment): Change to extern.
10754 * tree-vrp.h (masked_increment): New.
10755 * tree.c (cache_wide_int_in_type_cache): New function abstracted
10756 out from wide_int_to_tree_1.
10757 (wide_int_to_tree_1): Cache 0, 1, and MAX for pointers.
10758 * value-range-equiv.cc (value_range_equiv::deep_copy): Use kind
10759 method.
10760 (value_range_equiv::move): Same.
10761 (value_range_equiv::check): Adjust for irange.
10762 (value_range_equiv::intersect): Same.
10763 (value_range_equiv::union_): Same.
10764 (value_range_equiv::dump): Same.
10765 * value-range.cc (irange::operator=): Same.
10766 (irange::maybe_anti_range): New.
10767 (irange::copy_legacy_range): New.
10768 (irange::set_undefined): Adjust for irange.
10769 (irange::swap_out_of_order_endpoints): Abstract out from set().
10770 (irange::set_varying): Adjust for irange.
10771 (irange::irange_set): New.
10772 (irange::irange_set_anti_range): New.
10773 (irange::set): Adjust for irange.
10774 (value_range::set_nonzero): Move to header file.
10775 (value_range::set_zero): Move to header file.
10776 (value_range::check): Rename to...
10777 (irange::verify_range): ...this.
10778 (value_range::num_pairs): Rename to...
10779 (irange::legacy_num_pairs): ...this, and adjust for irange.
10780 (value_range::lower_bound): Rename to...
10781 (irange::legacy_lower_bound): ...this, and adjust for irange.
10782 (value_range::upper_bound): Rename to...
10783 (irange::legacy_upper_bound): ...this, and adjust for irange.
10784 (value_range::equal_p): Rename to...
10785 (irange::legacy_equal_p): ...this.
10786 (value_range::operator==): Move to header file.
10787 (irange::equal_p): New.
10788 (irange::symbolic_p): Adjust for irange.
10789 (irange::constant_p): Same.
10790 (irange::singleton_p): Same.
10791 (irange::value_inside_range): Same.
10792 (irange::may_contain_p): Same.
10793 (irange::contains_p): Same.
10794 (irange::normalize_addresses): Same.
10795 (irange::normalize_symbolics): Same.
10796 (irange::legacy_intersect): Same.
10797 (irange::legacy_union): Same.
10798 (irange::union_): Same.
10799 (irange::intersect): Same.
10800 (irange::irange_union): New.
10801 (irange::irange_intersect): New.
10802 (subtract_one): New.
10803 (irange::invert): Adjust for irange.
10804 (dump_bound_with_infinite_markers): New.
10805 (irange::dump): Adjust for irange.
10806 (debug): Add irange versions.
10807 (range_has_numeric_bounds_p): Adjust for irange.
10808 (vrp_val_max): Move to header file.
10809 (vrp_val_min): Move to header file.
10810 (DEFINE_INT_RANGE_GC_STUBS): New.
10811 (DEFINE_INT_RANGE_INSTANCE): New.
10812 * value-range.h (class irange): New.
10813 (class int_range): New.
10814 (class value_range): Rename to a instantiation of int_range.
10815 (irange::legacy_mode_p): New.
10816 (value_range::value_range): Remove.
10817 (irange::kind): New.
10818 (irange::num_pairs): Adjust for irange.
10819 (irange::type): Adjust for irange.
10820 (irange::tree_lower_bound): New.
10821 (irange::tree_upper_bound): New.
10822 (irange::type): Adjust for irange.
10823 (irange::min): Same.
10824 (irange::max): Same.
10825 (irange::varying_p): Same.
10826 (irange::undefined_p): Same.
10827 (irange::zero_p): Same.
10828 (irange::nonzero_p): Same.
10829 (irange::supports_type_p): Same.
10830 (range_includes_zero_p): Same.
10831 (gt_ggc_mx): New.
10832 (gt_pch_nx): New.
10833 (irange::irange): New.
10834 (int_range::int_range): New.
10835 (int_range::operator=): New.
10836 (irange::set): Moved from value-range.cc and adjusted for irange.
10837 (irange::set_undefined): Same.
10838 (irange::set_varying): Same.
10839 (irange::operator==): Same.
10840 (irange::lower_bound): Same.
10841 (irange::upper_bound): Same.
10842 (irange::union_): Same.
10843 (irange::intersect): Same.
10844 (irange::set_nonzero): Same.
10845 (irange::set_zero): Same.
10846 (irange::normalize_min_max): New.
10847 (vrp_val_max): Move from value-range.cc.
10848 (vrp_val_min): Same.
10849 * vr-values.c (vr_values::get_lattice_entry): Call value_range
10850 constructor.
10851
10852 2020-08-02 Sergei Trofimovich <siarheit@google.com>
10853
10854 PR bootstrap/96404
10855 * var-tracking.c (vt_find_locations): Fully initialize
10856 all 'in_pending' bits.
10857
10858 2020-08-01 Jan Hubicka <jh@suse.cz>
10859
10860 * symtab.c (symtab_node::verify_base): Verify order.
10861 (symtab_node::verify_symtab_nodes): Verify order.
10862
10863 2020-08-01 Jan Hubicka <jh@suse.cz>
10864
10865 * predict.c (estimate_bb_frequencies): Cap recursive calls by 90%.
10866
10867 2020-08-01 Jojo R <jiejie_rong@c-sky.com>
10868
10869 * config/csky/csky_opts.h (float_abi_type): New.
10870 * config/csky/csky.h (TARGET_SOFT_FLOAT): New.
10871 (TARGET_HARD_FLOAT): New.
10872 (TARGET_HARD_FLOAT_ABI): New.
10873 (OPTION_DEFAULT_SPECS): Use mfloat-abi.
10874 * config/csky/csky.opt (mfloat-abi): New.
10875 * doc/invoke.texi (C-SKY Options): Document -mfloat-abi=.
10876
10877 2020-08-01 Cooper Qu <cooper.qu@linux.alibaba.com>
10878
10879 * config/csky/t-csky-linux: Delete big endian CPUs' multilib.
10880
10881 2020-07-31 Roger Sayle <roger@nextmovesoftware.com>
10882 Tom de Vries <tdevries@suse.de>
10883
10884 PR target/90928
10885 * config/nvptx/nvptx.c (nvptx_truly_noop_truncation): Implement.
10886 (TARGET_TRULY_NOOP_TRUNCATION): Define.
10887
10888 2020-07-31 Richard Biener <rguenther@suse.de>
10889
10890 PR debug/96383
10891 * langhooks-def.h (lhd_finalize_early_debug): Declare.
10892 (LANG_HOOKS_FINALIZE_EARLY_DEBUG): Define.
10893 (LANG_HOOKS_INITIALIZER): Amend.
10894 * langhooks.c: Include cgraph.h and debug.h.
10895 (lhd_finalize_early_debug): Default implementation from
10896 former code in finalize_compilation_unit.
10897 * langhooks.h (lang_hooks::finalize_early_debug): Add.
10898 * cgraphunit.c (symbol_table::finalize_compilation_unit):
10899 Call the finalize_early_debug langhook.
10900
10901 2020-07-31 Richard Biener <rguenther@suse.de>
10902
10903 * genmatch.c (expr::force_leaf): Add and initialize.
10904 (expr::gen_transform): Honor force_leaf by passing
10905 NULL as sequence argument to maybe_push_res_to_seq.
10906 (parser::parse_expr): Allow ! marker on result expression
10907 operations.
10908 * doc/match-and-simplify.texi: Amend.
10909
10910 2020-07-31 Kewen Lin <linkw@linux.ibm.com>
10911
10912 * tree-vect-loop.c (vect_get_known_peeling_cost): Don't consider branch
10913 taken costs for prologue and epilogue if they don't exist.
10914 (vect_estimate_min_profitable_iters): Likewise.
10915
10916 2020-07-31 Martin Liska <mliska@suse.cz>
10917
10918 * cgraph.h: Remove leading empty lines.
10919 * cgraphunit.c (enum cgraph_order_sort_kind): Remove
10920 ORDER_UNDEFINED.
10921 (struct cgraph_order_sort): Add constructors.
10922 (cgraph_order_sort::process): New.
10923 (cgraph_order_cmp): New.
10924 (output_in_order): Simplify and push nodes to vector.
10925
10926 2020-07-31 Richard Biener <rguenther@suse.de>
10927
10928 PR middle-end/96369
10929 * fold-const.c (fold_range_test): Special-case constant
10930 LHS for short-circuiting operations.
10931
10932 2020-07-31 Martin Liska <mliska@suse.cz>
10933
10934 * gcov-io.h (GCOV_PREALLOCATED_KVP): New.
10935
10936 2020-07-31 Zhiheng Xie <xiezhiheng@huawei.com>
10937
10938 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
10939 Add new argument ATTRS.
10940 (aarch64_call_properties): New function.
10941 (aarch64_modifies_global_state_p): Likewise.
10942 (aarch64_reads_global_state_p): Likewise.
10943 (aarch64_could_trap_p): Likewise.
10944 (aarch64_add_attribute): Likewise.
10945 (aarch64_get_attributes): Likewise.
10946 (aarch64_init_simd_builtins): Add attributes for each built-in function.
10947
10948 2020-07-31 Richard Biener <rguenther@suse.de>
10949
10950 PR debug/78288
10951 * var-tracking.c (vt_find_locations): Use
10952 rev_post_order_and_mark_dfs_back_seme and separately iterate
10953 over toplevel SCCs.
10954
10955 2020-07-31 Richard Biener <rguenther@suse.de>
10956
10957 * cfganal.h (rev_post_order_and_mark_dfs_back_seme): Adjust
10958 prototype.
10959 * cfganal.c (rpoamdbs_bb_data): New struct with pre BB data.
10960 (tag_header): New helper.
10961 (cmp_edge_dest_pre): Likewise.
10962 (rev_post_order_and_mark_dfs_back_seme): Compute SCCs,
10963 find SCC exits and perform a DFS walk with extra edges to
10964 compute a RPO with adjacent SCC members when requesting an
10965 iteration optimized order and populate the toplevel SCC array.
10966 * tree-ssa-sccvn.c (do_rpo_vn): Remove ad-hoc computation
10967 of max_rpo and fill it in from SCC extent info instead.
10968
10969 2020-07-30 Will Schmidt <will_schmidt@vnet.ibm.com>
10970
10971 * config/rs6000/altivec.h (vec_test_lsbb_all_ones): New define.
10972 (vec_test_lsbb_all_zeros): New define.
10973 * config/rs6000/rs6000-builtin.def (BU_P10_VSX_1): New built-in
10974 handling macro.
10975 (XVTLSBB_ZEROS, XVTLSBB_ONES): New builtin defines.
10976 (xvtlsbb_all_zeros, xvtlsbb_all_ones): New builtin overloads.
10977 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XVTLSBB_ZEROS,
10978 P10_BUILTIN_VEC_XVTLSBB_ONES): New altivec_builtin_types entries.
10979 * config/rs6000/rs6000.md (UNSPEC_XVTLSBB): New unspec.
10980 * config/rs6000/vsx.md (*xvtlsbb_internal): New instruction define.
10981 (xvtlsbbo, xvtlsbbz): New instruction expands.
10982
10983 2020-07-30 Cooper Qu <cooper.qu@linux.alibaba.com>
10984
10985 * config/riscv/riscv-opts.h (stack_protector_guard): New enum.
10986 * config/riscv/riscv.c (riscv_option_override): Handle
10987 the new options.
10988 * config/riscv/riscv.md (stack_protect_set): New pattern to handle
10989 flexible stack protector guard settings.
10990 (stack_protect_set_<mode>): Ditto.
10991 (stack_protect_test): Ditto.
10992 (stack_protect_test_<mode>): Ditto.
10993 * config/riscv/riscv.opt (mstack-protector-guard=,
10994 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
10995 options.
10996 * doc/invoke.texi (Option Summary) [RISC-V Options]:
10997 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
10998 -mstack-protector-guard-offset=.
10999 (RISC-V Options): Ditto.
11000
11001 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
11002
11003 PR bootstrap/96202
11004 * configure: Regenerated.
11005
11006 2020-07-30 Richard Biener <rguenther@suse.de>
11007
11008 PR tree-optimization/96370
11009 * tree-ssa-reassoc.c (rewrite_expr_tree): Add operation
11010 code parameter and use it instead of picking it up from
11011 the stmt that is being rewritten.
11012 (reassociate_bb): Pass down the operation code.
11013
11014 2020-07-30 Roger Sayle <roger@nextmovesoftware.com>
11015 Tom de Vries <tdevries@suse.de>
11016
11017 * config/nvptx/nvptx.md (nvptx_vector_index_operand): New predicate.
11018 (VECELEM): New mode attribute for a vector's uppercase element mode.
11019 (Vecelem): New mode attribute for a vector's lowercase element mode.
11020 (*vec_set<mode>_0, *vec_set<mode>_1, *vec_set<mode>_2)
11021 (*vec_set<mode>_3): New instructions.
11022 (vec_set<mode>): New expander to generate one of the above insns.
11023 (vec_extract<mode><Vecelem>): New instruction.
11024
11025 2020-07-30 Martin Liska <mliska@suse.cz>
11026
11027 PR target/95435
11028 * config/i386/x86-tune-costs.h: Use libcall for large sizes for
11029 -m32. Start using libcall from 128+ bytes.
11030
11031 2020-07-30 Martin Liska <mliska@suse.cz>
11032
11033 * config/i386/x86-tune-costs.h: Change code formatting.
11034
11035 2020-07-29 Roger Sayle <roger@nextmovesoftware.com>
11036
11037 * config/nvptx/nvptx.md (recip<mode>2): New instruction.
11038
11039 2020-07-29 Fangrui Song <maskray@google.com>
11040
11041 PR debug/95096
11042 * opts.c (common_handle_option): Don't make -gsplit-dwarf imply -g.
11043 * doc/invoke.texi (-gsplit-dwarf): Update documentation.
11044
11045 2020-07-29 Joe Ramsay <joe.ramsay@arm.com>
11046
11047 * config/arm/arm-protos.h (arm_coproc_mem_operand_no_writeback):
11048 Declare prototype.
11049 (arm_mve_mode_and_operands_type_check): Declare prototype.
11050 * config/arm/arm.c (arm_coproc_mem_operand): Refactor to use
11051 _arm_coproc_mem_operand.
11052 (arm_coproc_mem_operand_wb): New function to cover full, limited
11053 and no writeback.
11054 (arm_coproc_mem_operand_no_writeback): New constraint for memory
11055 operand with no writeback.
11056 (arm_print_operand): Extend 'E' specifier for memory operand
11057 that does not support writeback.
11058 (arm_mve_mode_and_operands_type_check): New constraint check for
11059 MVE memory operands.
11060 * config/arm/constraints.md: Add Uj constraint for VFP vldr.16
11061 and vstr.16.
11062 * config/arm/vfp.md (*mov_load_vfp_hf16): New pattern for
11063 vldr.16.
11064 (*mov_store_vfp_hf16): New pattern for vstr.16.
11065 (*mov<mode>_vfp_<mode>16): Remove MVE moves.
11066
11067 2020-07-29 Richard Biener <rguenther@suse.de>
11068
11069 PR tree-optimization/96349
11070 * tree-ssa-loop-split.c (stmt_semi_invariant_p_1): When the
11071 condition runs into a loop PHI with an abnormal entry value give up.
11072
11073 2020-07-29 Richard Biener <rguenther@suse.de>
11074
11075 * tree-vectorizer.c (vectorize_loops): Reset the SCEV
11076 cache if we removed any SIMD UID SSA defs.
11077 * gimple-loop-interchange.cc (pass_linterchange::execute):
11078 Reset the scev cache if we interchanged a loop.
11079
11080 2020-07-29 Richard Biener <rguenther@suse.de>
11081
11082 PR tree-optimization/95679
11083 * tree-ssa-propagate.h
11084 (substitute_and_fold_engine::propagate_into_phi_args): Return
11085 whether anything changed.
11086 * tree-ssa-propagate.c
11087 (substitute_and_fold_engine::propagate_into_phi_args): Likewise.
11088 (substitute_and_fold_dom_walker::before_dom_children): Update
11089 something_changed.
11090
11091 2020-07-29 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
11092
11093 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11094 Ensure that loop variable npeel_tmp advances in each iteration.
11095
11096 2020-07-29 Hans-Peter Nilsson <hp@bitrange.com>
11097
11098 * config/mmix/mmix.h (NO_FUNCTION_CSE): Define to 1.
11099
11100 2020-07-29 Hans-Peter Nilsson <hp@bitrange.com>
11101
11102 * config/mmix/mmix.h (ASM_OUTPUT_EXTERNAL): Define to
11103 default_elf_asm_output_external.
11104
11105 2020-07-28 Sergei Trofimovich <siarheit@google.com>
11106
11107 PR ipa/96291
11108 * ipa-cp.c (has_undead_caller_from_outside_scc_p): Consider
11109 unoptimized callers as undead.
11110
11111 2020-07-28 Roger Sayle <roger@nextmovesoftware.com>
11112 Richard Biener <rguenther@suse.de>
11113
11114 * match.pd (popcount(x)&1 -> parity(x)): New simplification.
11115 (parity(~x) -> parity(x)): New simplification.
11116 (parity(x)^parity(y) -> parity(x^y)): New simplification.
11117 (parity(x&1) -> x&1): New simplification.
11118 (popcount(x) -> x>>C): New simplification.
11119
11120 2020-07-28 Roger Sayle <roger@nextmovesoftware.com>
11121 Tom de Vries <tdevries@suse.de>
11122
11123 * config/nvptx/nvptx.md (extendqihi2): New instruction.
11124 (ashl<mode>3, ashr<mode>3, lshr<mode>3): Support HImode.
11125
11126 2020-07-28 Jakub Jelinek <jakub@redhat.com>
11127
11128 PR middle-end/96335
11129 * calls.c (maybe_warn_rdwr_sizes): Add FNDECL and FNTYPE arguments,
11130 instead of trying to rediscover them in the body.
11131 (initialize_argument_information): Adjust caller.
11132
11133 2020-07-28 Kewen Lin <linkw@linux.ibm.com>
11134
11135 * tree-vect-loop.c (vect_get_known_peeling_cost): Factor out some code
11136 to determine peel_iters_epilogue to...
11137 (vect_get_peel_iters_epilogue): ...this new function.
11138 (vect_estimate_min_profitable_iters): Refactor cost calculation on
11139 peel_iters_prologue and peel_iters_epilogue.
11140
11141 2020-07-27 Martin Sebor <msebor@redhat.com>
11142
11143 PR tree-optimization/84079
11144 * gimple-array-bounds.cc (array_bounds_checker::check_addr_expr):
11145 Only allow just-past-the-end references for the most significant
11146 array bound.
11147
11148 2020-07-27 Hu Jiangping <hujiangping@cn.fujitsu.com>
11149
11150 PR driver/96247
11151 * opts.c (check_alignment_argument): Set the -falign-Name
11152 on/off flag on and set the -falign-Name string value null,
11153 when the command-line specified argument is zero.
11154
11155 2020-07-27 Martin Liska <mliska@suse.cz>
11156
11157 PR tree-optimization/96058
11158 * expr.c (string_constant): Build string_constant only
11159 for a type that has same precision as char_type_node
11160 and is an integral type.
11161
11162 2020-07-27 Richard Biener <rguenther@suse.de>
11163
11164 * var-tracking.c (variable_tracking_main_1): Remove call
11165 to mark_dfs_back_edges.
11166
11167 2020-07-27 Martin Liska <mliska@suse.cz>
11168
11169 PR tree-optimization/96128
11170 * tree-vect-generic.c (expand_vector_comparison): Do not expand
11171 vector comparison with VEC_COND_EXPR.
11172
11173 2020-07-27 H.J. Lu <hjl.tools@gmail.com>
11174
11175 PR bootstrap/96203
11176 * common.opt: Add -fcf-protection=check.
11177 * flag-types.h (cf_protection_level): Add CF_CHECK.
11178 * lto-wrapper.c (merge_and_complain): Issue an error for
11179 mismatching -fcf-protection values with -fcf-protection=check.
11180 Otherwise, merge -fcf-protection values.
11181 * doc/invoke.texi: Document -fcf-protection=check.
11182
11183 2020-07-27 Martin Liska <mliska@suse.cz>
11184
11185 PR lto/45375
11186 * symbol-summary.h: Call vec_safe_reserve before grow is called
11187 in order to grow to a reasonable size.
11188 * vec.h (vec_safe_reserve): Add missing function for vl_ptr
11189 type.
11190
11191 2020-07-26 Hans-Peter Nilsson <hp@bitrange.com>
11192
11193 * configure.ac (out-of-tree linker .hidden support): Don't turn off
11194 for mmix-knuth-mmixware.
11195 * configure: Regenerate.
11196
11197 2020-07-26 Aaron Sawdey <acsawdey@linux.ibm.com>
11198
11199 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11200 Set the default value for -mblock-ops-unaligned-vsx.
11201 * config/rs6000/rs6000.opt: Add -mblock-ops-unaligned-vsx.
11202 * doc/invoke.texi: Document -mblock-ops-unaligned-vsx.
11203
11204 2020-07-25 Hans-Peter Nilsson <hp@bitrange.com>
11205
11206 * config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override the default
11207 with default_asm_output_ident_directive.
11208
11209 2020-07-25 Andrew Stubbs <ams@codesourcery.com>
11210
11211 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): New function.
11212 (TARGET_SCALAR_MODE_SUPPORTED_P): New define.
11213
11214 2020-07-24 David Edelsohn <dje.gcc@gmail.com>
11215 Clement Chigot <clement.chigot@atos.net>
11216
11217 * config.gcc (powerpc-ibm-aix7.1): Use t-aix64 and biarch64 for
11218 cpu_is_64bit.
11219 * config/rs6000/aix71.h (ASM_SPEC): Remove aix64 option.
11220 (ASM_SPEC32): New.
11221 (ASM_SPEC64): New.
11222 (ASM_CPU_SPEC): Remove vsx and altivec options.
11223 (CPP_SPEC_COMMON): Rename from CPP_SPEC.
11224 (CPP_SPEC32): New.
11225 (CPP_SPEC64): New.
11226 (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
11227 (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
11228 (LIB_SPEC_COMMON): Rename from LIB_SPEC.
11229 (LIB_SPEC32): New.
11230 (LIB_SPEC64): New.
11231 (LINK_SPEC_COMMON): Rename from LINK_SPEC.
11232 (LINK_SPEC32): New.
11233 (LINK_SPEC64): New.
11234 (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
11235 (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
11236 (CPP_SPEC): Same.
11237 (CPLUSPLUS_CPP_SPEC): Same.
11238 (LIB_SPEC): Same.
11239 (LINK_SPEC): Same.
11240 (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
11241 * config/rs6000/aix72.h (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
11242 * config/rs6000/defaultaix64.h: Delete.
11243
11244 2020-07-24 Segher Boessenkool <segher@kernel.crashing.org>
11245
11246 * config/rs6000/rs6000.opt: Delete -mpower10.
11247
11248 2020-07-24 Alexandre Oliva <oliva@adacore.com>
11249
11250 * config/i386/intelmic-mkoffload.c
11251 (generate_target_descr_file): Use dumppfx for save_temps
11252 files. Pass -dumpbase et al down to the compiler.
11253 (generate_target_offloadend_file): Likewise.
11254 (generate_host_descr_file): Likewise.
11255 (prepare_target_image): Likewise. Move out_obj_filename
11256 setting...
11257 (main): ... here. Detect -dumpbase, set dumppfx too.
11258
11259 2020-07-24 Alexandre Oliva <oliva@adacore.com>
11260
11261 PR driver/96230
11262 * gcc.c (process_command): Adjust and document conditions to
11263 reset dumpbase_ext.
11264
11265 2020-07-24 Matthias Klose <doko@ubuntu.com>
11266
11267 * config/aarch64/aarch64.c (+aarch64_offload_options,
11268 TARGET_OFFLOAD_OPTIONS): New.
11269
11270 2020-07-24 Uroš Bizjak <ubizjak@gmail.com>
11271
11272 PR target/95750
11273 * config/i386/sync.md (mmem_thread_fence): Emit mfence_sse2 for -Os.
11274
11275 2020-07-23 Roger Sayle <roger@nextmovesoftware.com>
11276
11277 PR rtl-optimization/96298
11278 * simplify-rtx.c (simplify_binary_operation_1) [XOR]: Xor doesn't
11279 distribute over xor, so (a^b)^(c^b) is not the same as (a^c)^b.
11280
11281 2020-07-23 Dong JianQiang <dongjianqiang2@huawei.com>
11282
11283 PR gcov-profile/96267
11284 * gcov-io.c (gcov_open): enable if IN_GCOV_TOOL.
11285
11286 2020-07-23 Kewen Lin <linkw@linux.ibm.com>
11287
11288 * config/rs6000/rs6000.c (adjust_vectorization_cost): Renamed to ...
11289 (rs6000_adjust_vect_cost_per_stmt): ... here.
11290 (rs6000_add_stmt_cost): Rename adjust_vectorization_cost to
11291 rs6000_adjust_vect_cost_per_stmt.
11292
11293 2020-07-23 Kewen Lin <linkw@linux.ibm.com>
11294
11295 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
11296 IFN_LEN_LOAD and IFN_LEN_STORE.
11297 (get_alias_ptr_type_for_ptr_address): Likewise.
11298
11299 2020-07-23 Kito Cheng <kito.cheng@sifive.com>
11300
11301 PR target/96260
11302 * asan.c (asan_shadow_offset_set_p): New.
11303 * asan.h (asan_shadow_offset_set_p): Ditto.
11304 * toplev.c (process_options): Allow -fsanitize=kernel-address
11305 even TARGET_ASAN_SHADOW_OFFSET not implemented, only check when
11306 asan stack protection is enabled.
11307
11308 2020-07-22 Peter Bergner <bergner@linux.ibm.com>
11309
11310 PR target/96236
11311 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Handle
11312 little-endian memory ordering.
11313
11314 2020-07-22 Nathan Sidwell <nathan@acm.org>
11315
11316 * dumpfile.c (parse_dump_option): Deal with filenames
11317 containing '-'
11318
11319 2020-07-22 Nathan Sidwell <nathan@acm.org>
11320
11321 * incpath.c (add_path): Avoid multiple strlen calls.
11322
11323 2020-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11324
11325 * expmed.c (expand_sdiv_pow2): Check return value from emit_store_flag
11326 is not NULL_RTX before use.
11327
11328 2020-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11329
11330 * expr.c (convert_modes): Allow a constant integer to be converted to
11331 any scalar int mode.
11332
11333 2020-07-22 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
11334
11335 * config/aarch64/aarch64-ldpstp.md: Add two peepholes for adjusted vector
11336 V2SI, V2SF, V2DI, V2DF load pair and store pair modes.
11337 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
11338 Change mode parameter to machine_mode.
11339 (aarch64_operands_adjust_ok_for_ldpstp): Change mode parameter to
11340 machine_mode.
11341 * config/aarch64/aarch64.c (aarch64_operands_adjust_ok_for_ldpstp):
11342 Change mode parameter to machine_mode.
11343 (aarch64_gen_adjusted_ldpstp): Change mode parameter to machine_mode.
11344 * config/aarch64/iterators.md (VP_2E): New iterator for 2 element vectors.
11345
11346 2020-07-22 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
11347
11348 * doc/languages.texi: Fix “then”/“than” typo.
11349
11350 2020-07-21 Sunil K Pandey <skpgkp2@gmail.com>
11351
11352 PR target/95237
11353 * config/i386/i386-protos.h (ix86_local_alignment): Add
11354 another function parameter may_lower alignment. Default is
11355 false.
11356 * config/i386/i386.c (ix86_lower_local_decl_alignment): New
11357 function.
11358 (ix86_local_alignment): Amend ix86_local_alignment to accept
11359 another parameter may_lower. If may_lower is true, new align
11360 may be lower than incoming alignment. If may_lower is false,
11361 new align will be greater or equal to incoming alignment.
11362 (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): Define.
11363 * doc/tm.texi: Regenerate.
11364 * doc/tm.texi.in (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): New
11365 hook.
11366 * target.def (lower_local_decl_alignment): New hook.
11367
11368 2020-07-21 Uroš Bizjak <ubizjak@gmail.com>
11369
11370 PR target/95750
11371 * config/i386/sync.md (mfence_sse2): Enable for
11372 TARGET_64BIT and TARGET_SSE2.
11373 (mfence_nosse): Always enable.
11374
11375 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11376
11377 * config/msp430/msp430-protos.h (msp430_do_not_relax_short_jumps):
11378 Remove.
11379 * config/msp430/msp430.c (msp430_do_not_relax_short_jumps): Likewise.
11380 * config/msp430/msp430.md (cbranchhi4_real): Remove special case for
11381 msp430_do_not_relax_short_jumps.
11382
11383 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11384
11385 * config/msp430/msp430.md: New "extendqipsi2" define_insn.
11386
11387 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11388
11389 * config/msp430/msp430.h (NO_FUNCTION_CSE): Set to true at -O2 and
11390 above.
11391
11392 2020-07-21 Xionghu Luo <luoxhu@linux.ibm.com>
11393
11394 PR rtl-optimization/89310
11395 * config/rs6000/rs6000.md (movsf_from_si2): New define_insn_and_split.
11396
11397 2020-07-20 Hans-Peter Nilsson <hp@bitrange.com>
11398
11399 * config/mmix/mmix.c (mmix_expand_prologue): Calculate the total
11400 allocated size and set current_function_static_stack_size, if
11401 flag_stack_usage_info.
11402
11403 2020-07-20 Sergei Trofimovich <siarheit@google.com>
11404
11405 PR target/96190
11406 * config/sparc/linux.h (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11407 to get crtendS.o for !no-pie mode.
11408 * config/sparc/linux64.h (ENDFILE_SPEC): Ditto.
11409
11410 2020-07-20 Yang Yang <yangyang305@huawei.com>
11411
11412 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
11413 VIEW_CONVERT_EXPRs if the arguments types and return type
11414 of simd clone function are distinct with the vectype of stmt.
11415
11416 2020-07-20 Uroš Bizjak <ubizjak@gmail.com>
11417
11418 PR target/95750
11419 * config/i386/i386.h (TARGET_AVOID_MFENCE):
11420 Rename from TARGET_USE_XCHG_FOR_ATOMIC_STORE.
11421 * config/i386/sync.md (mfence_sse2): Disable for TARGET_AVOID_MFENCE.
11422 (mfence_nosse): Enable also for TARGET_AVOID_MFENCE. Emit stack
11423 referred memory in word_mode.
11424 (mem_thread_fence): Do not generate mfence_sse2 pattern when
11425 TARGET_AVOID_MFENCE is true.
11426 (atomic_store<mode>): Update for rename.
11427 * config/i386/x86-tune.def (X86_TUNE_AVOID_MFENCE):
11428 Rename from X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE.
11429
11430 2020-07-20 Martin Sebor <msebor@redhat.com>
11431
11432 PR middle-end/95189
11433 PR middle-end/95886
11434 * builtins.c (inline_expand_builtin_string_cmp): Rename...
11435 (inline_expand_builtin_bytecmp): ...to this.
11436 (builtin_memcpy_read_str): Don't expect data to be nul-terminated.
11437 (expand_builtin_memory_copy_args): Handle object representations
11438 with embedded nul bytes.
11439 (expand_builtin_memcmp): Same.
11440 (expand_builtin_strcmp): Adjust call to naming change.
11441 (expand_builtin_strncmp): Same.
11442 * expr.c (string_constant): Create empty strings with nonzero size.
11443 * fold-const.c (c_getstr): Rename locals and update comments.
11444 * tree.c (build_string): Accept null pointer argument.
11445 (build_string_literal): Same.
11446 * tree.h (build_string): Provide a default.
11447 (build_string_literal): Same.
11448
11449 2020-07-20 Richard Biener <rguenther@suse.de>
11450
11451 * cfganal.c (rev_post_order_and_mark_dfs_back_seme): Remove
11452 write-only post array.
11453
11454 2020-07-20 Jakub Jelinek <jakub@redhat.com>
11455
11456 PR libstdc++/93121
11457 * gimple-fold.c (fold_const_aggregate_ref_1): For COMPONENT_REF
11458 of a bitfield not aligned on byte boundaries try to
11459 fold_ctor_reference DECL_BIT_FIELD_REPRESENTATIVE if any and
11460 adjust it depending on endianity.
11461
11462 2020-07-20 Jakub Jelinek <jakub@redhat.com>
11463
11464 PR libstdc++/93121
11465 * fold-const.c (native_encode_initializer): Handle bit-fields.
11466
11467 2020-07-20 Kewen Lin <linkw@linux.ibm.com>
11468
11469 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11470 Set param_vect_partial_vector_usage to 0 explicitly.
11471 * doc/invoke.texi (vect-partial-vector-usage): Document new option.
11472 * optabs-query.c (get_len_load_store_mode): New function.
11473 * optabs-query.h (get_len_load_store_mode): New declare.
11474 * params.opt (vect-partial-vector-usage): New.
11475 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Add the
11476 handlings for vectorization using length-based partial vectors, call
11477 vect_gen_len for length generation, and rename some variables with
11478 items instead of scalars.
11479 (vect_set_loop_condition_partial_vectors): Add the handlings for
11480 vectorization using length-based partial vectors.
11481 (vect_do_peeling): Allow remaining eiters less than epilogue vf for
11482 LOOP_VINFO_USING_PARTIAL_VECTORS_P.
11483 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Init
11484 epil_using_partial_vectors_p.
11485 (_loop_vec_info::~_loop_vec_info): Call release_vec_loop_controls
11486 for lengths destruction.
11487 (vect_verify_loop_lens): New function.
11488 (vect_analyze_loop): Add handlings for epilogue of loop when it's
11489 marked to use vectorization using partial vectors.
11490 (vect_analyze_loop_2): Add the check to allow only one vectorization
11491 approach using partial vectorization at the same time. Check param
11492 vect-partial-vector-usage for partial vectors decision. Mark
11493 LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P if the epilogue is
11494 considerable to use partial vectors. Call release_vec_loop_controls
11495 for lengths destruction.
11496 (vect_estimate_min_profitable_iters): Adjust for loop vectorization
11497 using length-based partial vectors.
11498 (vect_record_loop_mask): Init factor to 1 for vectorization using
11499 mask-based partial vectors.
11500 (vect_record_loop_len): New function.
11501 (vect_get_loop_len): Likewise.
11502 * tree-vect-stmts.c (check_load_store_for_partial_vectors): Add
11503 checks for vectorization using length-based partial vectors. Factor
11504 some code to lambda function get_valid_nvectors.
11505 (vectorizable_store): Add handlings when using length-based partial
11506 vectors.
11507 (vectorizable_load): Likewise.
11508 (vect_gen_len): New function.
11509 * tree-vectorizer.h (struct rgroup_controls): Add field factor
11510 mainly for length-based partial vectors.
11511 (vec_loop_lens): New typedef.
11512 (_loop_vec_info): Add lens and epil_using_partial_vectors_p.
11513 (LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P): New macro.
11514 (LOOP_VINFO_LENS): Likewise.
11515 (LOOP_VINFO_FULLY_WITH_LENGTH_P): Likewise.
11516 (vect_record_loop_len): New declare.
11517 (vect_get_loop_len): Likewise.
11518 (vect_gen_len): Likewise.
11519
11520 2020-07-20 Hans-Peter Nilsson <hp@bitrange.com>
11521
11522 * config/mmix/mmix.c (mmix_option_override): Reinstate default
11523 integer-emitting targetm.asm_out pseudos when dumping detailed
11524 assembly-code.
11525 (mmix_assemble_integer): Update comment.
11526
11527 2020-07-19 H.J. Lu <hjl.tools@gmail.com>
11528
11529 PR target/95973
11530 PR target/96238
11531 * config/i386/cpuid.h: Add include guard.
11532 (__cpuidex): New.
11533
11534 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
11535
11536 PR target/95620
11537 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
11538
11539 2020-07-18 Peter Bergner <bergner@linux.ibm.com>
11540
11541 PR target/92488
11542 * config/rs6000/dfp.md (trunctdsd2): New define_insn.
11543 * config/rs6000/rs6000.md (define_attr "isa"): Add p9.
11544 (define_attr "enabled"): Handle p9.
11545
11546 2020-07-17 Roger Sayle <roger@nextmovesoftware.com>
11547
11548 * function.c (assign_parm_setup_block): Use the macro
11549 TRULY_NOOP_TRUNCATION_MODES_P instead of calling
11550 targetm.truly_noop_truncation directly.
11551
11552 2020-07-17 H.J. Lu <hjl.tools@gmail.com>
11553
11554 PR target/96186
11555 PR target/88713
11556 * config/i386/sse.md (VF_AVX512VL_VF1_128_256): Renamed to ...
11557 (VF1_AVX512ER_128_256): This. Drop DF vector modes.
11558 (rsqrt<mode>2): Replace VF_AVX512VL_VF1_128_256 with
11559 VF1_AVX512ER_128_256.
11560
11561 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11562
11563 * doc/sourcebuild.texi (dg-set-compiler-env-var,
11564 dg-set-target-env-var): Document.
11565
11566 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11567
11568 * config/arm/driver-arm.c (host_detect_local_cpu): Add GCC_CPUINFO.
11569
11570 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11571
11572 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
11573 Add GCC_CPUINFO.
11574
11575 2020-07-17 Tamar Christina <tamar.christina@arm.com>
11576
11577 * config/aarch64/driver-aarch64.c (INCLUDE_SET): New.
11578 (parse_field): Use std::string.
11579 (split_words, readline, find_field): New.
11580 (host_detect_local_cpu): Fix truncation issues.
11581
11582 2020-07-17 Andrew Stubbs <ams@codesourcery.com>
11583
11584 * config/gcn/mkoffload.c (EM_AMDGPU): Undefine before defining.
11585 (ELFOSABI_AMDGPU_HSA): Likewise.
11586 (ELFABIVERSION_AMDGPU_HSA): Likewise.
11587 (EF_AMDGPU_MACH_AMDGCN_GFX803): Likewise.
11588 (EF_AMDGPU_MACH_AMDGCN_GFX900): Likewise.
11589 (EF_AMDGPU_MACH_AMDGCN_GFX906): Likewise.
11590 (reserved): Delete.
11591
11592 2020-07-17 Andrew Pinski <apinksi@marvell.com>
11593 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
11594
11595 PR target/93720
11596 * config/aarch64/aarch64.c (aarch64_evpc_ins): New function.
11597 (aarch64_expand_vec_perm_const_1): Call it.
11598 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_copy_lane): Make
11599 public, and add a "@" prefix.
11600
11601 2020-07-17 Andrew Pinski <apinksi@marvell.com>
11602 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
11603
11604 PR target/82199
11605 * config/aarch64/aarch64.c (aarch64_evpc_reencode): New function.
11606 (aarch64_expand_vec_perm_const_1): Call it.
11607
11608 2020-07-17 Zhiheng Xie <xiezhiheng@huawei.com>
11609
11610 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11611 Add new field flags.
11612 (VAR1): Add new field FLAG in macro.
11613 (VAR2): Likewise.
11614 (VAR3): Likewise.
11615 (VAR4): Likewise.
11616 (VAR5): Likewise.
11617 (VAR6): Likewise.
11618 (VAR7): Likewise.
11619 (VAR8): Likewise.
11620 (VAR9): Likewise.
11621 (VAR10): Likewise.
11622 (VAR11): Likewise.
11623 (VAR12): Likewise.
11624 (VAR13): Likewise.
11625 (VAR14): Likewise.
11626 (VAR15): Likewise.
11627 (VAR16): Likewise.
11628 (aarch64_general_fold_builtin): Likewise.
11629 (aarch64_general_gimple_fold_builtin): Likewise.
11630 * config/aarch64/aarch64-simd-builtins.def: Add default flag for
11631 each built-in function.
11632 * config/aarch64/geniterators.sh: Add new field in BUILTIN macro.
11633
11634 2020-07-17 Andreas Krebbel <krebbel@linux.ibm.com>
11635
11636 PR target/96127
11637 * config/s390/s390.c (s390_expand_insv): Invoke the movstrict
11638 expanders to generate the pattern.
11639 * config/s390/s390.md ("*movstricthi", "*movstrictqi"): Remove the
11640 '*' to have callable expanders.
11641
11642 2020-07-16 Hans-Peter Nilsson <hp@axis.com>
11643 Segher Boessenkool <segher@kernel.crashing.org>
11644
11645 PR target/93372
11646 * combine.c (is_just_move): Take an rtx_insn* as argument. Use
11647 single_set on it.
11648
11649 2020-07-16 Uroš Bizjak <ubizjak@gmail.com>
11650
11651 PR target/96189
11652 * config/i386/sync.md
11653 (peephole2 to remove unneded compare after CMPXCHG):
11654 New pattern, also handle XOR zeroing and load of -1 by OR.
11655
11656 2020-07-16 Eric Botcazou <ebotcazou@adacore.com>
11657
11658 * config/i386/i386.c (ix86_compute_frame_layout): Minor tweak.
11659 (ix86_adjust_stack_and_probe): Delete.
11660 (ix86_adjust_stack_and_probe_stack_clash): Rename to above and add
11661 PROTECTION_AREA parameter. If it is true, probe PROBE_INTERVAL plus
11662 a small dope beyond SIZE bytes.
11663 (ix86_emit_probe_stack_range): Use local variable.
11664 (ix86_expand_prologue): Adjust calls to ix86_adjust_stack_and_probe
11665 and tidy up the stack checking code.
11666 * explow.c (get_stack_check_protect): Fix head comment.
11667 (anti_adjust_stack_and_probe_stack_clash): Likewise.
11668 (allocate_dynamic_stack_space): Add comment.
11669 * tree-nested.c (lookup_field_for_decl): Set the DECL_IGNORED_P and
11670 TREE_NO_WARNING but not TREE_ADDRESSABLE flags on the field.
11671
11672 2020-07-16 Andrew Stubbs <ams@codesourcery.com>
11673
11674 * config/gcn/mkoffload.c: Include simple-object.h and elf.h.
11675 (EM_AMDGPU): New macro.
11676 (ELFOSABI_AMDGPU_HSA): New macro.
11677 (ELFABIVERSION_AMDGPU_HSA): New macro.
11678 (EF_AMDGPU_MACH_AMDGCN_GFX803): New macro.
11679 (EF_AMDGPU_MACH_AMDGCN_GFX900): New macro.
11680 (EF_AMDGPU_MACH_AMDGCN_GFX906): New macro.
11681 (R_AMDGPU_NONE): New macro.
11682 (R_AMDGPU_ABS32_LO): New macro.
11683 (R_AMDGPU_ABS32_HI): New macro.
11684 (R_AMDGPU_ABS64): New macro.
11685 (R_AMDGPU_REL32): New macro.
11686 (R_AMDGPU_REL64): New macro.
11687 (R_AMDGPU_ABS32): New macro.
11688 (R_AMDGPU_GOTPCREL): New macro.
11689 (R_AMDGPU_GOTPCREL32_LO): New macro.
11690 (R_AMDGPU_GOTPCREL32_HI): New macro.
11691 (R_AMDGPU_REL32_LO): New macro.
11692 (R_AMDGPU_REL32_HI): New macro.
11693 (reserved): New macro.
11694 (R_AMDGPU_RELATIVE64): New macro.
11695 (gcn_s1_name): Delete global variable.
11696 (gcn_s2_name): Delete global variable.
11697 (gcn_o_name): Delete global variable.
11698 (gcn_cfile_name): Delete global variable.
11699 (files_to_cleanup): New global variable.
11700 (offload_abi): New global variable.
11701 (tool_cleanup): Use files_to_cleanup, not explicit list.
11702 (copy_early_debug_info): New function.
11703 (main): New local variables gcn_s1_name, gcn_s2_name, gcn_o_name,
11704 gcn_cfile_name.
11705 Create files_to_cleanup obstack.
11706 Recognize -march options.
11707 Copy early debug info from input .o files.
11708
11709 2020-07-16 Andrea Corallo <andrea.corallo@arm.com>
11710
11711 * Makefile.in (TAGS): Remove 'params.def'.
11712
11713 2020-07-16 Roger Sayle <roger@nextmovesoftware.com>
11714
11715 * target.def (TARGET_TRULY_NOOP_TRUNCATION): Clarify that
11716 targets that return false, indicating SUBREGs shouldn't be
11717 used, also need to provide a trunc?i?i2 optab that performs this
11718 truncation.
11719 * doc/tm.texi: Regenerate.
11720
11721 2020-07-15 Uroš Bizjak <ubizjak@gmail.com>
11722
11723 PR target/96189
11724 * config/i386/sync.md
11725 (peephole2 to remove unneded compare after CMPXCHG): New pattern.
11726
11727 2020-07-15 Jakub Jelinek <jakub@redhat.com>
11728
11729 PR libgomp/96198
11730 * omp-general.h (struct omp_for_data): Rename min_inner_iterations
11731 member to first_inner_iterations, adjust comment.
11732 * omp-general.c (omp_extract_for_data): Adjust for the above change.
11733 Always use n1first and n2first to compute it, rather than depending
11734 on single_nonrect_cond_code. Similarly, always compute factor
11735 as (m2 - m1) * outer_step / inner_step rather than sometimes m1 - m2
11736 depending on single_nonrect_cond_code.
11737 * omp-expand.c (expand_omp_for_init_vars): Rename min_inner_iterations
11738 to first_inner_iterations and min_inner_iterationsd to
11739 first_inner_iterationsd.
11740
11741 2020-07-15 Jakub Jelinek <jakub@redhat.com>
11742
11743 PR target/96174
11744 * config/i386/avx512fintrin.h (_mm512_cmpeq_pd_mask,
11745 _mm512_mask_cmpeq_pd_mask, _mm512_cmplt_pd_mask,
11746 _mm512_mask_cmplt_pd_mask, _mm512_cmple_pd_mask,
11747 _mm512_mask_cmple_pd_mask, _mm512_cmpunord_pd_mask,
11748 _mm512_mask_cmpunord_pd_mask, _mm512_cmpneq_pd_mask,
11749 _mm512_mask_cmpneq_pd_mask, _mm512_cmpnlt_pd_mask,
11750 _mm512_mask_cmpnlt_pd_mask, _mm512_cmpnle_pd_mask,
11751 _mm512_mask_cmpnle_pd_mask, _mm512_cmpord_pd_mask,
11752 _mm512_mask_cmpord_pd_mask, _mm512_cmpeq_ps_mask,
11753 _mm512_mask_cmpeq_ps_mask, _mm512_cmplt_ps_mask,
11754 _mm512_mask_cmplt_ps_mask, _mm512_cmple_ps_mask,
11755 _mm512_mask_cmple_ps_mask, _mm512_cmpunord_ps_mask,
11756 _mm512_mask_cmpunord_ps_mask, _mm512_cmpneq_ps_mask,
11757 _mm512_mask_cmpneq_ps_mask, _mm512_cmpnlt_ps_mask,
11758 _mm512_mask_cmpnlt_ps_mask, _mm512_cmpnle_ps_mask,
11759 _mm512_mask_cmpnle_ps_mask, _mm512_cmpord_ps_mask,
11760 _mm512_mask_cmpord_ps_mask): Move outside of __OPTIMIZE__ guarded
11761 section.
11762
11763 2020-07-15 Jakub Jelinek <jakub@redhat.com>
11764
11765 PR target/96176
11766 * builtins.c: Include gimple-ssa.h, tree-ssa-live.h and
11767 tree-outof-ssa.h.
11768 (expand_expr_force_mode): If exp is a SSA_NAME with different mode
11769 from MODE and get_gimple_for_ssa_name is a cast from MODE, use the
11770 cast's rhs.
11771
11772 2020-07-15 Jiufu Guo <guojiufu@cn.ibm.com>
11773
11774 * config/rs6000/rs6000.c (rs6000_loop_unroll_adjust): Refine hook.
11775
11776 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
11777
11778 * config/rs6000/rs6000.md (rotldi3_insert_sf): Add TARGET_POWERPC64
11779 condition.
11780 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add
11781 TARGET_POWERPC64 requirement to TARGET_P8_VECTOR case.
11782
11783 2020-07-14 Lewis Hyatt <lhyatt@gmail.com>
11784
11785 PR preprocessor/49973
11786 PR other/86904
11787 * common.opt: Handle -ftabstop here instead of in c-family
11788 options. Add -fdiagnostics-column-unit= and
11789 -fdiagnostics-column-origin= options.
11790 * opts.c (common_handle_option): Handle the new options.
11791 * diagnostic-format-json.cc (json_from_expanded_location): Add
11792 diagnostic_context argument. Use it to convert column numbers as per
11793 the new options.
11794 (json_from_location_range): Likewise.
11795 (json_from_fixit_hint): Likewise.
11796 (json_end_diagnostic): Pass the new context argument to helper
11797 functions above. Add "column-origin" field to the output.
11798 (test_unknown_location): Add the new context argument to calls to
11799 helper functions.
11800 (test_bad_endpoints): Likewise.
11801 * diagnostic-show-locus.c
11802 (exploc_with_display_col::exploc_with_display_col): Support
11803 tabstop parameter.
11804 (layout_point::layout_point): Make use of class
11805 exploc_with_display_col.
11806 (layout_range::layout_range): Likewise.
11807 (struct line_bounds): Clarify that the units are now always
11808 display columns. Rename members accordingly. Add constructor.
11809 (layout::print_source_line): Add support for tab expansion.
11810 (make_range): Adapt to class layout_range changes.
11811 (layout::maybe_add_location_range): Likewise.
11812 (layout::layout): Adapt to class exploc_with_display_col changes.
11813 (layout::calculate_x_offset_display): Support tabstop parameter.
11814 (layout::print_annotation_line): Adapt to struct line_bounds changes.
11815 (layout::print_line): Likewise.
11816 (line_label::line_label): Add diagnostic_context argument.
11817 (get_affected_range): Likewise.
11818 (get_printed_columns): Likewise.
11819 (layout::print_any_labels): Adapt to struct line_label changes.
11820 (class correction): Add m_tabstop member.
11821 (correction::correction): Add tabstop argument.
11822 (correction::compute_display_cols): Use m_tabstop.
11823 (class line_corrections): Add m_context member.
11824 (line_corrections::line_corrections): Add diagnostic_context argument.
11825 (line_corrections::add_hint): Use m_context to handle tabstops.
11826 (layout::print_trailing_fixits): Adapt to class line_corrections
11827 changes.
11828 (test_layout_x_offset_display_utf8): Support tabstop parameter.
11829 (test_layout_x_offset_display_tab): New selftest.
11830 (test_one_liner_colorized_utf8): Likewise.
11831 (test_tab_expansion): Likewise.
11832 (test_diagnostic_show_locus_one_liner_utf8): Call the new tests.
11833 (diagnostic_show_locus_c_tests): Likewise.
11834 (test_overlapped_fixit_printing): Adapt to helper class and
11835 function changes.
11836 (test_overlapped_fixit_printing_utf8): Likewise.
11837 (test_overlapped_fixit_printing_2): Likewise.
11838 * diagnostic.h (enum diagnostics_column_unit): New enum.
11839 (struct diagnostic_context): Add members for the new options.
11840 (diagnostic_converted_column): Declare.
11841 (json_from_expanded_location): Add new context argument.
11842 * diagnostic.c (diagnostic_initialize): Initialize new members.
11843 (diagnostic_converted_column): New function.
11844 (maybe_line_and_column): Be willing to output a column of 0.
11845 (diagnostic_get_location_text): Convert column number as per the new
11846 options.
11847 (diagnostic_report_current_module): Likewise.
11848 (assert_location_text): Add origin and column_unit arguments for
11849 testing the new functionality.
11850 (test_diagnostic_get_location_text): Test the new functionality.
11851 * doc/invoke.texi: Document the new options and behavior.
11852 * input.h (location_compute_display_column): Add tabstop argument.
11853 * input.c (location_compute_display_column): Likewise.
11854 (test_cpp_utf8): Add selftests for tab expansion.
11855 * tree-diagnostic-path.cc (default_tree_make_json_for_path): Pass the
11856 new context argument to json_from_expanded_location().
11857
11858 2020-07-14 Jakub Jelinek <jakub@redhat.com>
11859
11860 PR middle-end/96194
11861 * expr.c (expand_constructor): Don't create temporary for store to
11862 volatile MEM if exp has an addressable type.
11863
11864 2020-07-14 Nathan Sidwell <nathan@acm.org>
11865
11866 * hash-map.h (hash_map::get): Note it is a pointer to value.
11867 * incpath.h (incpath_kind): Align comments.
11868
11869 2020-07-14 Nathan Sidwell <nathan@acm.org>
11870
11871 * tree-core.h (tree_decl_with_vis, tree_function_decl):
11872 Note additional padding on 64-bits
11873 * tree.c (cache_integer_cst): Note why no caching of enum literals.
11874 (get_tree_code_name): Robustify error case.
11875
11876 2020-07-14 Nathan Sidwell <nathan@acm.org>
11877
11878 * doc/gty.texi: Fic gt_cleare_cache name.
11879 * doc/invoke.texi: Remove duplicate opindex Wabi-tag.
11880
11881 2020-07-14 Jakub Jelinek <jakub@redhat.com>
11882
11883 * omp-general.h (struct omp_for_data): Add adjn1 member.
11884 * omp-general.c (omp_extract_for_data): For non-rect loop, punt on
11885 count computing if n1, n2 or step are not INTEGER_CST earlier.
11886 Narrow the outer iterator range if needed so that non-rect loop
11887 has at least one iteration for each outer range iteration. Compute
11888 adjn1.
11889 * omp-expand.c (expand_omp_for_init_vars): Use adjn1 if non-NULL
11890 instead of the outer loop's n1.
11891
11892 2020-07-14 Matthias Klose <doko@ubuntu.com>
11893
11894 PR lto/95604
11895 * lto-wrapper.c (merge_and_complain): Add decoded options as parameter,
11896 error on different values for -fcf-protection.
11897 (append_compiler_options): Pass -fcf-protection option.
11898 (find_and_merge_options): Add decoded options as parameter,
11899 pass decoded_options to merge_and_complain.
11900 (run_gcc): Pass decoded options to find_and_merge_options.
11901 * lto-opts.c (lto_write_options): Pass -fcf-protection option.
11902
11903 2020-07-13 Alan Modra <amodra@gmail.com>
11904
11905 * config/rs6000/rs6000.md (sibcall_local): Merge sibcall_local32
11906 and sibcall_local64.
11907 (sibcall_value_local): Similarly.
11908
11909 2020-07-13 Nathan Sidwell <nathan@acm.org>
11910
11911 * Makefile.in (distclean): Remove long gone cxxmain.c
11912
11913 2020-07-13 H.J. Lu <hjl.tools@gmail.com>
11914
11915 PR target/95443
11916 * config/i386/i386.md (cmpstrnsi): Pass a copy of the string
11917 length to cmpstrnqi patterns.
11918
11919 2020-07-13 Jakub Jelinek <jakub@redhat.com>
11920
11921 PR ipa/96130
11922 * ipa-fnsummary.c (analyze_function_body): Treat NULL bb->aux
11923 as false predicate.
11924
11925 2020-07-13 Richard Biener <rguenther@suse.de>
11926
11927 PR tree-optimization/96163
11928 * tree-vect-slp.c (vect_schedule_slp_instance): Put new stmts
11929 at least after region begin.
11930
11931 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
11932
11933 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
11934 __ARM_FEATURE_PAC_DEFAULT support.
11935
11936 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
11937
11938 PR target/94891
11939 * doc/extend.texi: Update the text for __builtin_return_address.
11940
11941 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
11942
11943 PR target/94891
11944 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
11945 Disable return address signing if __builtin_eh_return is used.
11946
11947 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
11948
11949 PR target/94891
11950 PR target/94791
11951 * config/aarch64/aarch64-protos.h (aarch64_return_addr_rtx): Declare.
11952 * config/aarch64/aarch64.c (aarch64_return_addr_rtx): New.
11953 (aarch64_return_addr): Use aarch64_return_addr_rtx.
11954 * config/aarch64/aarch64.h (PROFILE_HOOK): Likewise.
11955
11956 2020-07-13 Richard Sandiford <richard.sandiford@arm.com>
11957
11958 PR middle-end/95114
11959 * tree.h (virtual_method_call_p): Add a default-false parameter
11960 that indicates whether the function is being called from dump
11961 routines.
11962 (obj_type_ref_class): Likewise.
11963 * tree.c (virtual_method_call_p): Likewise.
11964 * ipa-devirt.c (obj_type_ref_class): Likewise. Lazily add ODR
11965 type information for the type when the parameter is false.
11966 * tree-pretty-print.c (dump_generic_node): Update calls to
11967 virtual_method_call_p and obj_type_ref_class accordingly.
11968
11969 2020-07-13 Julian Brown <julian@codesourcery.com>
11970 Thomas Schwinge <thomas@codesourcery.com>
11971
11972 * gimplify.c (gimplify_scan_omp_clauses): Do not strip
11973 GOMP_MAP_TO_PSET/GOMP_MAP_POINTER for OpenACC enter/exit data
11974 directives (see also PR92929).
11975
11976 2020-07-13 Roger Sayle <roger@nextmovesoftware.com>
11977
11978 * convert.c (convert_to_integer_1): Narrow integer operations
11979 even on targets that require explicit truncation instructions.
11980
11981 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
11982
11983 PR target/93372
11984 * config/cris/cris-passes.def: New file.
11985 * config/cris/t-cris (PASSES_EXTRA): Add cris-passes.def.
11986 * config/cris/cris.c: Add infrastructure bits and pass execute
11987 function cris_postdbr_cmpelim.
11988 * config/cris/cris-protos.h (make_pass_cris_postdbr_cmpelim): Declare.
11989
11990 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
11991
11992 * config/cris/t-cris: Remove gt-cris.h-related excessive cargo.
11993
11994 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
11995
11996 PR target/93372
11997 * config/cris/cris.md ("*add<mode>3_addi"): New splitter.
11998 ("*addi_b_<mode>"): New pattern.
11999 ("*addsi3<setnz>"): Remove stale %-related comment.
12000
12001 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
12002
12003 * config/cris/cris.md ("setnz_subst", "setnz_subst", "setcc_subst"):
12004 Use match_dup in output template, not match_operand.
12005
12006 2020-07-13 Richard Biener <rguenther@suse.de>
12007
12008 * var-tracking.c (bb_heap_node_t): Remove unused typedef.
12009 (vt_find_locations): Eliminate visited bitmap in favor of
12010 RPO order check. Dump statistics about the number of
12011 local BB dataflow computes.
12012
12013 2020-07-13 Richard Biener <rguenther@suse.de>
12014
12015 PR middle-end/94600
12016 * expr.c (expand_constructor): Make a temporary also if we're
12017 storing to volatile memory.
12018
12019 2020-07-13 Xionghu Luo <luoxhu@linux.ibm.com>
12020
12021 * config/rs6000/rs6000.md (rotl_unspec): New
12022 define_insn_and_split.
12023
12024 2020-07-13 Xionghu Luo <luoxhu@linux.ibm.com>
12025
12026 * config/rs6000/rs6000.c (rs6000_expand_vector_init):
12027 Move V4SF to V4SI, init vector like V4SI and move to V4SF back.
12028
12029 2020-07-11 Roger Sayle <roger@nextmovesoftware.com>
12030
12031 * internal-fn.c (expand_mul_overflow): When checking for signed
12032 overflow from a widening multiplication, we access the truncated
12033 lowpart RES twice, so keep this value in a pseudo register.
12034
12035 2020-07-11 Richard Sandiford <richard.sandiford@arm.com>
12036
12037 PR tree-optimization/96146
12038 * value-range.cc (value_range::set): Only decompose POLY_INT_CST
12039 bounds to integers for VR_RANGE. Decay to VR_VARYING for anti-ranges
12040 involving POLY_INT_CSTs.
12041
12042 2020-07-10 David Edelsohn <dje.gcc@gmail.com>
12043
12044 PR target/77373
12045 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Only
12046 create named section for VAR_DECL or FUNCTION_DECL.
12047
12048 2020-07-10 Joseph Myers <joseph@codesourcery.com>
12049
12050 * glimits.h [__STDC_VERSION__ > 201710L] (BOOL_MAX, BOOL_WIDTH):
12051 New macros.
12052
12053 2020-07-10 Alexander Popov <alex.popov@linux.com>
12054
12055 * shrink-wrap.c (try_shrink_wrapping): Improve debug output.
12056
12057 2020-07-10 Richard Sandiford <richard.sandiford@arm.com>
12058
12059 PR middle-end/96151
12060 * expr.c (expand_expr_real_2): When reducing bit fields,
12061 clear the target if it has a different mode from the expression.
12062 (reduce_to_bit_field_precision): Don't do that here. Instead
12063 assert that the target already has the correct mode.
12064
12065 2020-07-10 Richard Sandiford <richard.sandiford@arm.com>
12066
12067 PR target/92789
12068 PR target/95726
12069 * config/arm/arm.c (arm_attribute_table): Add
12070 "Advanced SIMD type".
12071 (arm_comp_type_attributes): Check that the "Advanced SIMD type"
12072 attributes are equal.
12073 * config/arm/arm-builtins.c: Include stringpool.h and
12074 attribs.h.
12075 (arm_mangle_builtin_vector_type): Use the mangling recorded
12076 in the "Advanced SIMD type" attribute.
12077 (arm_init_simd_builtin_types): Add an "Advanced SIMD type"
12078 attribute to each Advanced SIMD type, using the mangled type
12079 as the attribute's single argument.
12080
12081 2020-07-10 Carl Love <cel@us.ibm.com>
12082
12083 * config/rs6000/vsx.md (VSX_MM): New define_mode_iterator.
12084 (VSX_MM4): New define_mode_iterator.
12085 (vec_mtvsrbmi): New define_insn.
12086 (vec_mtvsr_<mode>): New define_insn.
12087 (vec_cntmb_<mode>): New define_insn.
12088 (vec_extract_<mode>): New define_insn.
12089 (vec_expand_<mode>): New define_insn.
12090 (define_c_enum unspec): Add entries UNSPEC_MTVSBM, UNSPEC_VCNTMB,
12091 UNSPEC_VEXTRACT, UNSPEC_VEXPAND.
12092 * config/rs6000/altivec.h ( vec_genbm, vec_genhm, vec_genwm,
12093 vec_gendm, vec_genqm, vec_cntm, vec_expandm, vec_extractm): Add
12094 defines.
12095 * config/rs6000/rs6000-builtin.def: Add defines BU_P10_2, BU_P10_1.
12096 (BU_P10_1): Add definitions for mtvsrbm, mtvsrhm, mtvsrwm,
12097 mtvsrdm, mtvsrqm, vexpandmb, vexpandmh, vexpandmw, vexpandmd,
12098 vexpandmq, vextractmb, vextractmh, vextractmw, vextractmd, vextractmq.
12099 (BU_P10_2): Add definitions for cntmbb, cntmbh, cntmbw, cntmbd.
12100 (BU_P10_OVERLOAD_1): Add definitions for mtvsrbm, mtvsrhm,
12101 mtvsrwm, mtvsrdm, mtvsrqm, vexpandm, vextractm.
12102 (BU_P10_OVERLOAD_2): Add defition for cntm.
12103 * config/rs6000/rs6000-call.c (rs6000_expand_binop_builtin): Add
12104 checks for CODE_FOR_vec_cntmbb_v16qi, CODE_FOR_vec_cntmb_v8hi,
12105 CODE_FOR_vec_cntmb_v4si, CODE_FOR_vec_cntmb_v2di.
12106 (altivec_overloaded_builtins): Add overloaded argument entries for
12107 P10_BUILTIN_VEC_MTVSRBM, P10_BUILTIN_VEC_MTVSRHM,
12108 P10_BUILTIN_VEC_MTVSRWM, P10_BUILTIN_VEC_MTVSRDM,
12109 P10_BUILTIN_VEC_MTVSRQM, P10_BUILTIN_VEC_VCNTMBB,
12110 P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
12111 P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
12112 P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
12113 P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
12114 P10_BUILTIN_VEXPANDMQ, P10_BUILTIN_VEXTRACTMB,
12115 P10_BUILTIN_VEXTRACTMH, P10_BUILTIN_VEXTRACTMW,
12116 P10_BUILTIN_VEXTRACTMD, P10_BUILTIN_VEXTRACTMQ.
12117 (builtin_function_type): Add case entries for P10_BUILTIN_MTVSRBM,
12118 P10_BUILTIN_MTVSRHM, P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
12119 P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
12120 P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
12121 P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
12122 P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
12123 P10_BUILTIN_VEXPANDMQ.
12124 * config/rs6000/rs6000-builtin.def (altivec_overloaded_builtins): Add
12125 entries for MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM, VCNTM,
12126 VEXPANDM, VEXTRACTM.
12127
12128 2020-07-10 Bill Seurer, 507-253-3502, seurer@us.ibm.com <(no_default)>
12129
12130 PR target/95581
12131 * config/rs6000/rs6000-call.c: Add new type v16qi_ftype_pcvoid.
12132 (altivec_init_builtins) Change __builtin_altivec_mask_for_load to use
12133 v16qi_ftype_pcvoid with correct number of parameters.
12134
12135 2020-07-10 H.J. Lu <hjl.tools@gmail.com>
12136
12137 PR target/96144
12138 * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Check
12139 TARGET_AVX512VL when enabling FMA.
12140
12141 2020-07-10 Andrea Corallo <andrea.corallo@arm.com>
12142 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
12143 Iain Apreotesei <iain.apreotesei@arm.com>
12144
12145 * config/arm/arm-protos.h (arm_target_insn_ok_for_lob): New
12146 prototype.
12147 * config/arm/arm.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12148 (arm_invalid_within_doloop): Implement invalid_within_doloop hook.
12149 (arm_target_insn_ok_for_lob): New function.
12150 * config/arm/arm.h (TARGET_HAVE_LOB): Define macro.
12151 * config/arm/thumb2.md (*doloop_end_internal, doloop_begin)
12152 (dls_insn): Add new patterns.
12153 (doloop_end): Modify to select LR when LOB is available.
12154 * config/arm/unspecs.md: Add new unspec.
12155 * doc/sourcebuild.texi (arm_v8_1_lob_ok)
12156 (arm_thumb2_ok_no_arm_v8_1_lob): Document new target supports
12157 options.
12158
12159 2020-07-10 Richard Biener <rguenther@suse.de>
12160
12161 PR tree-optimization/96133
12162 * gimple-fold.c (fold_array_ctor_reference): Do not
12163 recurse to folding a CTOR that does not fully cover the
12164 asked for object.
12165
12166 2020-07-10 Cui,Lili <lili.cui@intel.com>
12167
12168 * common/config/i386/cpuinfo.h
12169 (get_intel_cpu): Handle sapphirerapids.
12170 * common/config/i386/i386-common.c
12171 (processor_names): Add sapphirerapids and alderlake.
12172 (processor_alias_table): Add sapphirerapids and alderlake.
12173 * common/config/i386/i386-cpuinfo.h
12174 (processor_subtypes): Add INTEL_COREI7_ALDERLAKE and
12175 INTEL_COREI7_ALDERLAKE.
12176 * config.gcc: Add -march=sapphirerapids and alderlake.
12177 * config/i386/driver-i386.c
12178 (host_detect_local_cpu) Handle sapphirerapids and alderlake.
12179 * config/i386/i386-c.c
12180 (ix86_target_macros_internal): Handle sapphirerapids and alderlake.
12181 * config/i386/i386-options.c
12182 (m_SAPPHIRERAPIDS) : Define.
12183 (m_ALDERLAKE): Ditto.
12184 (m_CORE_AVX512) : Add m_SAPPHIRERAPIDS.
12185 (processor_cost_table): Add sapphirerapids and alderlake.
12186 (ix86_option_override_internal) Handle PTA_WAITPKG, PTA_ENQCMD,
12187 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK.
12188 * config/i386/i386.h
12189 (ix86_size_cost) : Define SAPPHIRERAPIDS and ALDERLAKE.
12190 (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
12191 PROCESSOR_ALDERLAKE.
12192 (PTA_ENQCMD): New.
12193 (PTA_CLDEMOTE): Ditto.
12194 (PTA_SERIALIZE): Ditto.
12195 (PTA_TSXLDTRK): New.
12196 (PTA_SAPPHIRERAPIDS): Ditto.
12197 (PTA_ALDERLAKE): Ditto.
12198 (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
12199 PROCESSOR_ALDERLAKE.
12200 * doc/extend.texi: Add sapphirerapids and alderlake.
12201 * doc/invoke.texi: Add sapphirerapids and alderlake.
12202
12203 2020-07-10 Martin Liska <mliska@suse.cz>
12204
12205 * dumpfile.c [profile-report]: Add new profile dump.
12206 * dumpfile.h (enum tree_dump_index): Ad TDI_profile_report.
12207 * passes.c (pass_manager::dump_profile_report): Change stderr
12208 to dump_file.
12209
12210 2020-07-10 Kewen Lin <linkw@linux.ibm.com>
12211
12212 * tree-vect-loop.c (vect_transform_loop): Use LOOP_VINFO_NITERS which
12213 is adjusted by considering peeled prologue for non
12214 vect_use_loop_mask_for_alignment_p cases.
12215
12216 2020-07-09 Peter Bergner <bergner@linux.ibm.com>
12217
12218 PR target/96125
12219 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Define the MMA
12220 specific types __vector_quad and __vector_pair, and initialize the
12221 MMA built-ins if TARGET_EXTRA_BUILTINS is set.
12222 (mma_init_builtins): Don't test for mask set in rs6000_builtin_mask.
12223 Remove now unneeded mask variable.
12224 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add the
12225 OPTION_MASK_MMA flag for power10 if not already set.
12226
12227 2020-07-09 Richard Biener <rguenther@suse.de>
12228
12229 PR tree-optimization/96133
12230 * tree-vect-slp.c (vect_build_slp_tree_1): Compare load_p
12231 status between stmts.
12232
12233 2020-07-09 H.J. Lu <hjl.tools@gmail.com>
12234
12235 PR target/88713
12236 * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Enable FMA.
12237 * config/i386/sse.md (VF_AVX512VL_VF1_128_256): New.
12238 (rsqrt<mode>2): Replace VF1_128_256 with VF_AVX512VL_VF1_128_256.
12239 (rsqrtv16sf2): Removed.
12240
12241 2020-07-09 Richard Biener <rguenther@suse.de>
12242
12243 * tree-vectorizer.h (vect_verify_datarefs_alignment): Remove.
12244 (vect_slp_analyze_and_verify_instance_alignment): Rename to ...
12245 (vect_slp_analyze_instance_alignment): ... this.
12246 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove.
12247 (vect_verify_datarefs_alignment): Likewise.
12248 (vect_enhance_data_refs_alignment): Do not call
12249 vect_verify_datarefs_alignment.
12250 (vect_slp_analyze_node_alignment): Rename from
12251 vect_slp_analyze_and_verify_node_alignment and do not
12252 call verify_data_ref_alignment.
12253 (vect_slp_analyze_instance_alignment): Rename from
12254 vect_slp_analyze_and_verify_instance_alignment.
12255 * tree-vect-stmts.c (vectorizable_store): Dump when
12256 we vectorize an unaligned access.
12257 (vectorizable_load): Likewise.
12258 * tree-vect-loop.c (vect_analyze_loop_2): Do not call
12259 vect_verify_datarefs_alignment.
12260 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust.
12261
12262 2020-07-09 Bin Cheng <bin.cheng@linux.alibaba.com>
12263
12264 PR tree-optimization/95804
12265 * tree-loop-distribution.c (break_alias_scc_partitions): Force
12266 negative post order to reduction partition.
12267
12268 2020-07-09 Jakub Jelinek <jakub@redhat.com>
12269
12270 * omp-general.h (struct omp_for_data): Add min_inner_iterations
12271 and factor members.
12272 * omp-general.c (omp_extract_for_data): Initialize them and remember
12273 them in OMP_CLAUSE_COLLAPSE_COUNT if needed and restore from there.
12274 * omp-expand.c (expand_omp_for_init_counts): Fix up computation of
12275 counts[fd->last_nonrect] if fd->loop.n2 is INTEGER_CST.
12276 (expand_omp_for_init_vars): For
12277 fd->first_nonrect + 1 == fd->last_nonrect loops with for now
12278 INTEGER_CST fd->loop.n2 find quadratic equation roots instead of
12279 using fallback method when possible.
12280
12281 2020-07-09 Omar Tahir <omar.tahir@arm.com>
12282
12283 * ira.c (move_unallocated_pseudos): Zero first_moveable_pseudo and
12284 last_moveable_pseudo before returning.
12285
12286 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
12287
12288 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
12289 __ARM_FEATURE_BTI_DEFAULT support.
12290
12291 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
12292
12293 * config/aarch64/aarch64-protos.h (aarch64_indirect_call_asm):
12294 New declaration.
12295 * config/aarch64/aarch64.c (aarch64_regno_regclass): Handle new
12296 stub registers class.
12297 (aarch64_class_max_nregs): Likewise.
12298 (aarch64_register_move_cost): Likewise.
12299 (aarch64_sls_shared_thunks): Global array to store stub labels.
12300 (aarch64_sls_emit_function_stub): New.
12301 (aarch64_create_blr_label): New.
12302 (aarch64_sls_emit_blr_function_thunks): New.
12303 (aarch64_sls_emit_shared_blr_thunks): New.
12304 (aarch64_asm_file_end): New.
12305 (aarch64_indirect_call_asm): New.
12306 (TARGET_ASM_FILE_END): Use aarch64_asm_file_end.
12307 (TARGET_ASM_FUNCTION_EPILOGUE): Use
12308 aarch64_sls_emit_blr_function_thunks.
12309 * config/aarch64/aarch64.h (STB_REGNUM_P): New.
12310 (enum reg_class): Add STUB_REGS class.
12311 (machine_function): Introduce `call_via` array for
12312 function-local stub labels.
12313 * config/aarch64/aarch64.md (*call_insn, *call_value_insn): Use
12314 aarch64_indirect_call_asm to emit code when hardening BLR
12315 instructions.
12316 * config/aarch64/constraints.md (Ucr): New constraint
12317 representing registers for indirect calls. Is GENERAL_REGS
12318 usually, and STUB_REGS when hardening BLR instruction against
12319 SLS.
12320 * config/aarch64/predicates.md (aarch64_general_reg): STUB_REGS class
12321 is also a general register.
12322
12323 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
12324
12325 * config/aarch64/aarch64-protos.h (aarch64_sls_barrier): New.
12326 * config/aarch64/aarch64.c (aarch64_output_casesi): Emit
12327 speculation barrier after BR instruction if needs be.
12328 (aarch64_trampoline_init): Handle ptr_mode value & adjust size
12329 of code copied.
12330 (aarch64_sls_barrier): New.
12331 (aarch64_asm_trampoline_template): Add needed barriers.
12332 * config/aarch64/aarch64.h (AARCH64_ISA_SB): New.
12333 (TARGET_SB): New.
12334 (TRAMPOLINE_SIZE): Account for barrier.
12335 * config/aarch64/aarch64.md (indirect_jump, *casesi_dispatch,
12336 simple_return, *do_return, *sibcall_insn, *sibcall_value_insn):
12337 Emit barrier if needs be, also account for possible barrier using
12338 "sls_length" attribute.
12339 (sls_length): New attribute.
12340 (length): Determine default using any non-default sls_length
12341 value.
12342
12343 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
12344
12345 * config/aarch64/aarch64-protos.h (aarch64_harden_sls_retbr_p):
12346 New.
12347 (aarch64_harden_sls_blr_p): New.
12348 * config/aarch64/aarch64.c (enum aarch64_sls_hardening_type):
12349 New.
12350 (aarch64_harden_sls_retbr_p): New.
12351 (aarch64_harden_sls_blr_p): New.
12352 (aarch64_validate_sls_mitigation): New.
12353 (aarch64_override_options): Parse options for SLS mitigation.
12354 * config/aarch64/aarch64.opt (-mharden-sls): New option.
12355 * doc/invoke.texi: Document new option.
12356
12357 2020-07-09 Kewen Lin <linkw@linux.ibm.com>
12358
12359 * tree-vect-stmts.c (vectorizable_condition): Prohibit vectorization
12360 with partial vectors explicitly excepting for EXTRACT_LAST_REDUCTION
12361 or nested-cycle reduction.
12362
12363 2020-07-09 Kewen Lin <linkw@linux.ibm.com>
12364
12365 * tree-vect-loop.c (vect_analyze_loop_2): Update dumping string
12366 for fully masking to be more common.
12367
12368 2020-07-09 Kito Cheng <kito.cheng@sifive.com>
12369
12370 * config/riscv/riscv.md (get_thread_pointer<mode>): New.
12371 (TP_REGNUM): Ditto.
12372 * doc/extend.texi (Target Builtins): Add RISC-V built-in section.
12373 Document __builtin_thread_pointer.
12374
12375 2020-07-09 Kito Cheng <kito.cheng@sifive.com>
12376
12377 * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
12378 Abort if any arguments on stack.
12379
12380 2020-07-08 Eric Botcazou <ebotcazou@adacore.com>
12381
12382 * gimple-fold.c (gimple_fold_builtin_memory_op): Do not fold if
12383 either type has reverse scalar storage order.
12384 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not propagate through
12385 a memory copy if either type has reverse scalar storage order.
12386
12387 2020-07-08 Tobias Burnus <tobias@codesourcery.com>
12388
12389 * config/gcn/mkoffload.c (compile_native, main): Pass -fPIC/-fpic
12390 on to the native compiler, if used.
12391 * config/nvptx/mkoffload.c (compile_native, main): Likewise.
12392
12393 2020-07-08 Will Schmidt <will_schmidt@vnet.ibm.com>
12394
12395 * config/rs6000/altivec.h (vec_vmsumudm): New define.
12396 * config/rs6000/altivec.md (UNSPEC_VMSUMUDM): New unspec.
12397 (altivec_vmsumudm): New define_insn.
12398 * config/rs6000/rs6000-builtin.def (altivec_vmsumudm): New BU_ALTIVEC_3
12399 entry. (vmsumudm): New BU_ALTIVEC_OVERLOAD_3 entry.
12400 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add entries for
12401 ALTIVEC_BUILTIN_VMSUMUDM variants of vec_msum.
12402 * doc/extend.texi: Add document for vmsumudm behind vmsum.
12403
12404 2020-07-08 Richard Biener <rguenther@suse.de>
12405
12406 * tree-vect-stmts.c (get_group_load_store_type): Pass
12407 in the SLP node and the alignment support scheme output.
12408 Set that.
12409 (get_load_store_type): Likewise.
12410 (vectorizable_store): Adjust.
12411 (vectorizable_load): Likewise.
12412
12413 2020-07-08 Richard Sandiford <richard.sandiford@arm.com>
12414
12415 PR middle-end/95694
12416 * expr.c (expand_expr_real_2): Get the mode from the type rather
12417 than the rtx, and assert that it is consistent with the mode of
12418 the rtx (where known). Optimize all constant integers, not just
12419 those that can be represented in poly_int64.
12420
12421 2020-07-08 Kewen Lin <linkw@linux.ibm.com>
12422
12423 * config/rs6000/vsx.md (len_load_v16qi): New define_expand.
12424 (len_store_v16qi): Likewise.
12425
12426 2020-07-08 Kewen Lin <linkw@linux.ibm.com>
12427
12428 * doc/md.texi (len_load_@var{m}): Document.
12429 (len_store_@var{m}): Likewise.
12430 * internal-fn.c (len_load_direct): New macro.
12431 (len_store_direct): Likewise.
12432 (expand_len_load_optab_fn): Likewise.
12433 (expand_len_store_optab_fn): Likewise.
12434 (direct_len_load_optab_supported_p): Likewise.
12435 (direct_len_store_optab_supported_p): Likewise.
12436 (expand_mask_load_optab_fn): New macro. Original renamed to ...
12437 (expand_partial_load_optab_fn): ... here. Add handlings for
12438 len_load_optab.
12439 (expand_mask_store_optab_fn): New macro. Original renamed to ...
12440 (expand_partial_store_optab_fn): ... here. Add handlings for
12441 len_store_optab.
12442 (internal_load_fn_p): Handle IFN_LEN_LOAD.
12443 (internal_store_fn_p): Handle IFN_LEN_STORE.
12444 (internal_fn_stored_value_index): Handle IFN_LEN_STORE.
12445 * internal-fn.def (LEN_LOAD): New internal function.
12446 (LEN_STORE): Likewise.
12447 * optabs.def (len_load_optab, len_store_optab): New optab.
12448
12449 2020-07-07 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
12450
12451 * config/aarch64/aarch64.c (thunderx2t99_regmove_cost,
12452 thunderx2t99_vector_cost): Likewise.
12453
12454 2020-07-07 Richard Biener <rguenther@suse.de>
12455
12456 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Fix
12457 group overlap condition to allow negative step DR groups.
12458 * tree-vect-stmts.c (get_group_load_store_type): For
12459 multi element SLP groups force VMAT_STRIDED_SLP when the step
12460 is negative.
12461
12462 2020-07-07 Qian Jianhua <qianjh@cn.fujitsu.com>
12463
12464 * doc/generic.texi: Fix typo.
12465
12466 2020-07-07 Richard Biener <rguenther@suse.de>
12467
12468 * lto-streamer-out.c (cmp_symbol_files): Use the computed
12469 order map to sort symbols from the same sub-file together.
12470 (lto_output): Compute a map of sub-file to an order number
12471 it appears in the symbol output array.
12472
12473 2020-07-06 Richard Biener <rguenther@suse.de>
12474
12475 PR tree-optimization/96075
12476 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
12477 TYPE_SIZE_UNIT of the vector component type instead of DR_STEP
12478 for the misalignment calculation for negative step.
12479
12480 2020-07-06 Roger Sayle <roger@nextmovesoftware.com>
12481
12482 * config/nvptx/nvptx.md (*vadd_addsi4): New instruction.
12483 (*vsub_addsi4): New instruction.
12484
12485 2020-07-06 Hans-Peter Nilsson <hp@axis.com>
12486
12487 * config/cris/cris.md (movulsr): New peephole2.
12488
12489 2020-07-06 Hans-Peter Nilsson <hp@axis.com>
12490
12491 * config/cris/sync.md ("cris_atomic_fetch_<atomic_op_name><mode>_1"):
12492 Correct gcc_assert of overlapping operands.
12493
12494 2020-07-05 Hans-Peter Nilsson <hp@axis.com>
12495
12496 * config/cris/cris.c (cris_select_cc_mode): Always return
12497 CC_NZmode for matching comparisons. Clarify comments.
12498 * config/cris/cris-modes.def: Clarify mode comment.
12499 * config/cris/cris.md (plusminus, plusminusumin, plusumin): New
12500 code iterators.
12501 (addsub, addsubbo, nd): New code iterator attributes.
12502 ("*<addsub><su>qihi"): Rename from "*extopqihi". Use code
12503 iterator constructs instead of match_operator constructs.
12504 ("*<addsubbo><su><nd><mode>si<setnz>"): Similar from
12505 "*extop<mode>si<setnz>".
12506 ("*add<su>qihi_swap"): Similar from "*addxqihi_swap".
12507 ("*<addsubbo><su><nd><mode>si<setnz>_swap"): Similar from
12508 "*extop<mode>si<setnz>_swap".
12509
12510 2020-07-05 Hans-Peter Nilsson <hp@axis.com>
12511
12512 * config/cris/cris.md ("*extopqihi", "*extop<mode>si<setnz>_swap")
12513 ("*extop<mode>si<setnz>", "*addxqihi_swap"): Reinstate.
12514
12515 2020-07-03 Eric Botcazou <ebotcazou@adacore.com>
12516
12517 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold calls that
12518 were initially created for the assignment of a variable-sized
12519 object and whose source is now a string constant.
12520 * gimple-ssa-store-merging.c (struct merged_store_group): Document
12521 STRING_CST for rhs_code field.
12522 Add string_concatenation boolean field.
12523 (merged_store_group::merged_store_group): Initialize it as well as
12524 bit_insertion here.
12525 (merged_store_group::do_merge): Set it upon seeing a STRING_CST.
12526 Also set bit_insertion here upon seeing a BIT_INSERT_EXPR.
12527 (merged_store_group::apply_stores): Clear it for small regions.
12528 Do not create a power-of-2-sized buffer if it is still true.
12529 And do not set bit_insertion here again.
12530 (encode_tree_to_bitpos): Deal with BLKmode for the expression.
12531 (merged_store_group::can_be_merged_into): Deal with STRING_CST.
12532 (imm_store_chain_info::coalesce_immediate_stores): Set bit_insertion
12533 to true after changing MEM_REF stores into BIT_INSERT_EXPR stores.
12534 (count_multiple_uses): Return 0 for STRING_CST.
12535 (split_group): Do not split the group for a string concatenation.
12536 (imm_store_chain_info::output_merged_store): Constify and rename
12537 some local variables. Build an array type as destination type
12538 for a string concatenation, as well as a zero mask, and call
12539 build_string to build the source.
12540 (lhs_valid_for_store_merging_p): Return true for VIEW_CONVERT_EXPR.
12541 (pass_store_merging::process_store): Accept STRING_CST on the RHS.
12542 * gimple.h (gimple_call_alloca_for_var_p): New accessor function.
12543 * gimplify.c (gimplify_modify_expr_to_memcpy): Set alloca_for_var.
12544 * tree.h (CALL_ALLOCA_FOR_VAR_P): Document it for BUILT_IN_MEMCPY.
12545
12546 2020-07-03 Martin Jambor <mjambor@suse.cz>
12547
12548 PR ipa/96040
12549 * ipa-sra.c (all_callee_accesses_present_p): Do not accept type
12550 mismatched accesses.
12551
12552 2020-07-03 Roger Sayle <roger@nextmovesoftware.com>
12553
12554 * config/nvptx/nvptx.md (popcount<mode>2): New instructions.
12555 (mulhishi3, mulsidi3, umulhisi3, umulsidi3): New instructions.
12556
12557 2020-07-03 Martin Liska <mliska@suse.cz>
12558 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12559
12560 PR bootstrap/96046
12561 * gcov-dump.c (tag_function): Use gcov_position_t
12562 type.
12563
12564 2020-07-03 Richard Biener <rguenther@suse.de>
12565
12566 PR tree-optimization/96037
12567 * tree-vect-stmts.c (vect_is_simple_use): Initialize *slp_def.
12568
12569 2020-07-03 Richard Biener <rguenther@suse.de>
12570
12571 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Cost the
12572 original non-pattern stmts, look at the pattern stmt
12573 vectorization status.
12574
12575 2020-07-03 Andrew Stubbs <ams@codesourcery.com>
12576
12577 * config/gcn/gcn-valu.md (fold_left_plus_<mode>): New.
12578
12579 2020-07-03 Richard Biener <rguenther@suse.de>
12580
12581 * tree-vectorizer.h (vec_info::insert_on_entry): New.
12582 (vec_info::insert_seq_on_entry): Likewise.
12583 * tree-vectorizer.c (vec_info::insert_on_entry): Implement.
12584 (vec_info::insert_seq_on_entry): Likewise.
12585 * tree-vect-stmts.c (vect_init_vector_1): Use
12586 vec_info::insert_on_entry.
12587 (vect_finish_stmt_generation): Set modified bit after
12588 adjusting VUSE.
12589 * tree-vect-slp.c (vect_create_constant_vectors): Simplify
12590 by using vec_info::insert_seq_on_entry and bypassing
12591 vec_init_vector.
12592 (vect_schedule_slp_instance): Deal with all-constant
12593 children later.
12594
12595 2020-07-03 Roger Sayle <roger@nextmovesoftware.com>
12596 Tom de Vries <tdevries@suse.de>
12597
12598 PR target/90932
12599 * config/nvptx/nvptx.c (nvptx_vector_alignment): Use tree_to_uhwi
12600 to access TYPE_SIZE (type). Return at least the mode's alignment.
12601
12602 2020-07-02 Richard Biener <rguenther@suse.de>
12603
12604 PR tree-optimization/96028
12605 * tree-vect-slp.c (vect_slp_convert_to_external): Make sure
12606 we have scalar stmts to use.
12607 (vect_slp_analyze_node_operations): When analyzing a child
12608 failed try externalizing the parent node.
12609
12610 2020-07-02 Martin Jambor <mjambor@suse.cz>
12611
12612 PR debug/95343
12613 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Adjust
12614 argument index if necessary.
12615
12616 2020-07-02 Martin Liska <mliska@suse.cz>
12617
12618 PR middle-end/95830
12619 * tree-vect-generic.c (expand_vector_condition): Forward declaration.
12620 (expand_vector_comparison): Do not expand a comparison if all
12621 uses are consumed by a VEC_COND_EXPR.
12622 (expand_vector_operation): Change void return type to bool.
12623 (expand_vector_operations_1): Pass dce_ssa_names.
12624
12625 2020-07-02 Ilya Leoshkevich <iii@linux.ibm.com>
12626
12627 PR bootstrap/95700
12628 * system.h (NULL): Redefine to nullptr.
12629
12630 2020-07-02 Jakub Jelinek <jakub@redhat.com>
12631
12632 PR tree-optimization/95857
12633 * tree-cfg.c (group_case_labels_stmt): When removing an unreachable
12634 base_bb, remember all forced and non-local labels on it and later
12635 treat those as if they have NULL label_to_block. Formatting fix.
12636 Fix a comment typo.
12637
12638 2020-07-02 Richard Biener <rguenther@suse.de>
12639
12640 PR tree-optimization/96022
12641 * tree-vect-stmts.c (vectorizable_shift): Only use the
12642 first vector stmt when extracting the scalar shift amount.
12643 * tree-vect-slp.c (vect_build_slp_tree_2): Also build unary
12644 nodes with all-scalar children from scalars but not stores.
12645 (vect_analyze_slp_instance): Mark the node not failed.
12646
12647 2020-07-02 Felix Yang <felix.yang@huawei.com>
12648
12649 PR tree-optimization/95961
12650 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use the
12651 number of scalars instead of the number of vectors as an upper bound
12652 for the loop saving info about DR in the hash table. Remove unused
12653 local variables.
12654
12655 2020-07-02 Jakub Jelinek <jakub@redhat.com>
12656
12657 * omp-expand.c (expand_omp_for): Diagnose non-rectangular loops with
12658 invalid steps - ((m2 - m1) * incr_outer) % incr must be 0 in valid
12659 OpenMP non-rectangular loops. Use XALLOCAVEC.
12660
12661 2020-07-02 Martin Liska <mliska@suse.cz>
12662
12663 PR gcov-profile/95348
12664 * coverage.c (read_counts_file): Read only COUNTERS that are
12665 not all-zero.
12666 * gcov-dump.c (tag_function): Change signature from unsigned to
12667 signed integer.
12668 (tag_blocks): Likewise.
12669 (tag_arcs): Likewise.
12670 (tag_lines): Likewise.
12671 (tag_counters): Likewise.
12672 (tag_summary): Likewise.
12673 * gcov.c (read_count_file): Read all non-zero counters
12674 sensitively.
12675
12676 2020-07-02 Kito Cheng <kito.cheng@sifive.com>
12677
12678 * config/riscv/multilib-generator (arch_canonicalize): Handle
12679 multi-letter extension.
12680 Using underline as separator between different extensions.
12681
12682 2020-07-01 Pip Cet <pipcet@gmail.com>
12683
12684 * spellcheck.c (test_data): Add problematic strings.
12685 (test_metric_conditions): Don't test the triangle inequality
12686 condition, which our distance function does not satisfy.
12687
12688 2020-07-01 Omar Tahir <omar.tahir@arm.com>
12689
12690 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Always
12691 generate a BTI instruction.
12692
12693 2020-07-01 Jeff Law <law@redhat.com>
12694
12695 PR tree-optimization/94882
12696 * match.pd (x & y) - (x | y) - 1 -> ~(x ^ y): New simplification.
12697
12698 2020-07-01 Jeff Law <law@redhat.com>
12699
12700 * config/m68k/m68k.c (m68k_output_btst): Drop "register" keyword.
12701 (emit_move_sequence, output_iorsi3, output_xorsi3): Likewise.
12702
12703 2020-07-01 Andrea Corallo <andrea.corallo@arm.com>
12704
12705 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add enums
12706 for 64bits fpsr/fpcr getter setters builtin variants.
12707 (aarch64_init_fpsr_fpcr_builtins): New function.
12708 (aarch64_general_init_builtins): Modify to make use of the later.
12709 (aarch64_expand_fpsr_fpcr_setter): New function.
12710 (aarch64_general_expand_builtin): Modify to make use of the later.
12711 * config/aarch64/aarch64.md (@aarch64_set_<fpscr_name><GPI:mode>)
12712 (@aarch64_get_<fpscr_name><GPI:mode>): New patterns replacing and
12713 generalizing 'get_fpcr', 'set_fpsr'.
12714 * config/aarch64/iterators.md (GET_FPSCR, SET_FPSCR): New int
12715 iterators.
12716 (fpscr_name): New int attribute.
12717 * doc/extend.texi (__builtin_aarch64_get_fpcr64)
12718 (__builtin_aarch64_set_fpcr64, __builtin_aarch64_get_fpsr64)
12719 (__builtin_aarch64_set_fpsr64): Add into AArch64 Built-in
12720 Functions.
12721
12722 2020-07-01 Martin Liska <mliska@suse.cz>
12723
12724 * gcov.c (print_usage): Avoid trailing space for -j option.
12725
12726 2020-07-01 Richard Biener <rguenther@suse.de>
12727
12728 PR tree-optimization/95839
12729 * tree-vect-slp.c (vect_slp_tree_uniform_p): Pre-existing
12730 vectors are not uniform.
12731 (vect_build_slp_tree_1): Handle BIT_FIELD_REFs of
12732 vector registers.
12733 (vect_build_slp_tree_2): For groups of lane extracts
12734 from a vector register generate a permute node
12735 with a special child representing the pre-existing vector.
12736 (vect_prologue_cost_for_slp): Pre-existing vectors cost nothing.
12737 (vect_slp_analyze_node_operations): Use SLP_TREE_LANES.
12738 (vectorizable_slp_permutation): Do not generate or cost identity
12739 permutes.
12740 (vect_schedule_slp_instance): Handle pre-existing vector
12741 that are function arguments.
12742
12743 2020-07-01 Richard Biener <rguenther@suse.de>
12744
12745 * system.h (INCLUDE_ISL): New guarded include.
12746 * graphite-dependences.c: Use it.
12747 * graphite-isl-ast-to-gimple.c: Likewise.
12748 * graphite-optimize-isl.c: Likewise.
12749 * graphite-poly.c: Likewise.
12750 * graphite-scop-detection.c: Likewise.
12751 * graphite-sese-to-poly.c: Likewise.
12752 * graphite.c: Likewise.
12753 * graphite.h: Drop the includes here.
12754
12755 2020-07-01 Martin Liska <mliska@suse.cz>
12756
12757 * gcov.c (print_usage): Shorted option description for -j
12758 option.
12759
12760 2020-07-01 Martin Liska <mliska@suse.cz>
12761
12762 * doc/gcov.texi: Rename 2 options.
12763 * gcov.c (print_usage): Rename -i,--json-format to
12764 -j,--json-format and -j,--human-readable to -H,--human-readable.
12765 (process_args): Fix up parsing. Document obsolete options and
12766 how are they changed.
12767
12768 2020-07-01 Jeff Law <law@redhat.com>
12769
12770 * config/pa/pa.c (pa_emit_move_sequence): Drop register keyword.
12771 (pa_output_ascii): Likewise.
12772
12773 2020-07-01 Kito Cheng <kito.cheng@sifive.com>
12774
12775 * common/config/riscv/riscv-common.c (riscv_subset_t): New field
12776 added.
12777 (riscv_subset_list::parsing_subset_version): Add parameter for
12778 indicate explicitly version, and handle explicitly version.
12779 (riscv_subset_list::handle_implied_ext): Ditto.
12780 (riscv_subset_list::add): Ditto.
12781 (riscv_subset_t::riscv_subset_t): Init new field.
12782 (riscv_subset_list::to_string): Always output version info if version
12783 explicitly specified.
12784 (riscv_subset_list::parsing_subset_version): Handle explicitly
12785 arch version.
12786 (riscv_subset_list::parse_std_ext): Ditto.
12787 (riscv_subset_list::parse_multiletter_ext): Ditto.
12788
12789 2020-06-30 Richard Sandiford <richard.sandiford@arm.com>
12790
12791 PR target/92789
12792 PR target/95726
12793 * config/aarch64/aarch64.c (aarch64_attribute_table): Add
12794 "Advanced SIMD type".
12795 (aarch64_comp_type_attributes): Check that the "Advanced SIMD type"
12796 attributes are equal.
12797 * config/aarch64/aarch64-builtins.c: Include stringpool.h and
12798 attribs.h.
12799 (aarch64_mangle_builtin_vector_type): Use the mangling recorded
12800 in the "Advanced SIMD type" attribute.
12801 (aarch64_init_simd_builtin_types): Add an "Advanced SIMD type"
12802 attribute to each Advanced SIMD type, using the mangled type
12803 as the attribute's single argument.
12804
12805 2020-06-30 Christophe Lyon <christophe.lyon@linaro.org>
12806
12807 PR target/94743
12808 * config/arm/arm.c (arm_handle_isr_attribute): Warn if
12809 -mgeneral-regs-only is not used.
12810
12811 2020-06-30 Yang Yang <yangyang305@huawei.com>
12812
12813 PR tree-optimization/95855
12814 * gimple-ssa-split-paths.c (is_feasible_trace): Add extra
12815 checks to recognize a missed if-conversion opportunity when
12816 judging whether to duplicate a block.
12817
12818 2020-06-29 Segher Boessenkool <segher@kernel.crashing.org>
12819
12820 * doc/extend.texi: Change references to "future architecture" to
12821 "ISA 3.1", "-mcpu=future" to "-mcpu=power10", and remove vaguer
12822 references to "future" (because the future is now).
12823
12824 2020-06-29 Segher Boessenkool <segher@kernel.crashing.org>
12825
12826 * config/rs6000/rs6000.md (isa): Rename "fut" to "p10".
12827
12828 2020-06-29 Roger Sayle <roger@nextmovesoftware.com>
12829
12830 * simplify-rtx.c (simplify_distributive_operation): New function
12831 to un-distribute a binary operation of two binary operations.
12832 (X & C) ^ (Y & C) to (X ^ Y) & C, when C is simple (i.e. a constant).
12833 (simplify_binary_operation_1) <IOR, XOR, AND>: Call it from here
12834 when appropriate.
12835 (test_scalar_int_ops): New function for unit self-testing
12836 scalar integer transformations in simplify-rtx.c.
12837 (test_scalar_ops): Call test_scalar_int_ops for each integer mode.
12838 (simplify_rtx_c_tests): Call test_scalar_ops.
12839
12840 2020-06-29 Richard Biener <rguenther@suse.de>
12841
12842 PR tree-optimization/95916
12843 * tree-vect-slp.c (vect_schedule_slp_instance): Explicitely handle
12844 the case of not vectorized externals.
12845
12846 2020-06-29 Richard Biener <rguenther@suse.de>
12847
12848 * tree-vectorizer.h: Do not include <utility>.
12849
12850 2020-06-29 Martin Liska <mliska@suse.cz>
12851
12852 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Use gsi_bb
12853 instead of gimple_stmt_iterator::bb.
12854 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
12855 * tree-vectorizer.h: Likewise.
12856
12857 2020-06-29 Andrew Stubbs <ams@codesourcery.com>
12858
12859 * config/gcn/gcn-hsa.h (DBX_REGISTER_NUMBER): New macro.
12860 * config/gcn/gcn-protos.h (gcn_dwarf_register_number): New prototype.
12861 * config/gcn/gcn.c (gcn_expand_prologue): Add RTX_FRAME_RELATED_P
12862 and REG_FRAME_RELATED_EXPR to stack and frame pointer adjustments.
12863 (gcn_dwarf_register_number): New function.
12864 (gcn_dwarf_register_span): New function.
12865 (TARGET_DWARF_REGISTER_SPAN): New hook macro.
12866
12867 2020-06-29 Kaipeng Zhou <zhoukaipeng3@huawei.com>
12868
12869 PR tree-optimization/95854
12870 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Return NULL
12871 if operand 1 or 2 of a BIT_FIELD_REF cannot be converted to
12872 unsigned HOST_WIDE_INT.
12873
12874 2020-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12875
12876 * config/sparc/sparc.c (epilogue_renumber): Remove register.
12877 (sparc_print_operand_address): Likewise.
12878 (sparc_type_code): Likewise.
12879 (set_extends): Likewise.
12880
12881 2020-06-29 Martin Liska <mliska@suse.cz>
12882
12883 PR tree-optimization/92860
12884 * optc-save-gen.awk: Add exceptions for arc target.
12885
12886 2020-06-29 Frederik Harwath <frederik@codesourcery.com>
12887
12888 * doc/sourcebuild.texi: Describe globbing of the
12889 dump file scanning commands "suffix" argument.
12890
12891 2020-06-28 Martin Sebor <msebor@redhat.com>
12892
12893 PR c++/86568
12894 * calls.c (maybe_warn_rdwr_sizes): Use location of argument if
12895 available.
12896 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same. Adjust
12897 indentation.
12898 * tree.c (get_nonnull_args): Consider the this pointer implicitly
12899 nonnull.
12900 * var-tracking.c (deps_vec): New type.
12901 (var_loc_dep_vec): New function.
12902 (VAR_LOC_DEP_VEC): Use it.
12903
12904 2020-06-28 Kewen Lin <linkw@linux.ibm.com>
12905
12906 * internal-fn.c (direct_mask_load_optab_supported_p): Use
12907 convert_optab_supported_p instead of direct_optab_supported_p.
12908 (direct_mask_store_optab_supported_p): Likewise.
12909
12910 2020-06-27 Aldy Hernandez <aldyh@redhat.com>
12911
12912 * gimple-ssa-evrp-analyze.h (vrp_visit_cond_stmt): Use
12913 simplify_using_ranges class.
12914 * gimple-ssa-evrp.c (class evrp_folder): New simplify_using_ranges
12915 field. Adjust all methods to use new field.
12916 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Use
12917 simplify_using_ranges class.
12918 * tree-vrp.c (class vrp_folder): New simplify_using_ranges
12919 field. Adjust all methods to use new field.
12920 (simplify_stmt_for_jump_threading): Use simplify_using_ranges class.
12921 (vrp_prop::vrp_finalize): New vrp_folder argument.
12922 (execute_vrp): Pass folder to vrp_finalize. Use
12923 simplify_using_ranges class.
12924 Remove cleanup_edges_and_switches call.
12925 * vr-values.c (vr_values::op_with_boolean_value_range_p): Change
12926 value_range_equiv uses to value_range.
12927 (simplify_using_ranges::op_with_boolean_value_range_p): Use
12928 simplify_using_ranges class.
12929 (check_for_binary_op_overflow): Make static.
12930 (vr_values::extract_range_basic): Pass this to
12931 check_for_binary_op_overflow.
12932 (compare_range_with_value): Change value_range_equiv uses to
12933 value_range.
12934 (vr_values::vr_values): Initialize simplifier field.
12935 Remove uses of to_remove_edges and to_update_switch_stmts.
12936 (vr_values::~vr_values): Remove uses of to_remove_edges and
12937 to_update_switch_stmts.
12938 (vr_values::get_vr_for_comparison): Move to simplify_using_ranges
12939 class.
12940 (vr_values::compare_name_with_value): Same.
12941 (vr_values::compare_names): Same.
12942 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
12943 (vr_values::vrp_evaluate_conditional): Same.
12944 (vr_values::vrp_visit_cond_stmt): Same.
12945 (find_case_label_ranges): Change value_range_equiv uses to
12946 value_range.
12947 (vr_values::extract_range_from_stmt): Use simplify_using_ranges class.
12948 (vr_values::simplify_truth_ops_using_ranges): Move to
12949 simplify_using_ranges class.
12950 (vr_values::simplify_div_or_mod_using_ranges): Same.
12951 (vr_values::simplify_min_or_max_using_ranges): Same.
12952 (vr_values::simplify_abs_using_ranges): Same.
12953 (vr_values::simplify_bit_ops_using_ranges): Same.
12954 (test_for_singularity): Change value_range_equiv uses to
12955 value_range.
12956 (range_fits_type_p): Same.
12957 (vr_values::simplify_cond_using_ranges_1): Same.
12958 (vr_values::simplify_cond_using_ranges_2): Make extern.
12959 (vr_values::fold_cond): Move to simplify_using_ranges class.
12960 (vr_values::simplify_switch_using_ranges): Same.
12961 (vr_values::cleanup_edges_and_switches): Same.
12962 (vr_values::simplify_float_conversion_using_ranges): Same.
12963 (vr_values::simplify_internal_call_using_ranges): Same.
12964 (vr_values::two_valued_val_range_p): Same.
12965 (vr_values::simplify_stmt_using_ranges): Move to...
12966 (simplify_using_ranges::simplify): ...here.
12967 * vr-values.h (class vr_values): Move all the simplification of
12968 statements using ranges methods and code from here...
12969 (class simplify_using_ranges): ...to here.
12970 (simplify_cond_using_ranges_2): New extern prototype.
12971
12972 2020-06-27 Jakub Jelinek <jakub@redhat.com>
12973
12974 * omp-general.h (struct omp_for_data_loop): Add non_rect_referenced
12975 member, move outer member.
12976 (struct omp_for_data): Add first_nonrect and last_nonrect members.
12977 * omp-general.c (omp_extract_for_data): Initialize first_nonrect,
12978 last_nonrect and non_rect_referenced members.
12979 * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
12980 loops.
12981 (expand_omp_for_init_vars): Add nonrect_bounds parameter. Handle
12982 non-rectangular loops.
12983 (extract_omp_for_update_vars): Likewise.
12984 (expand_omp_for_generic, expand_omp_for_static_nochunk,
12985 expand_omp_for_static_chunk, expand_omp_simd,
12986 expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): Adjust
12987 expand_omp_for_init_vars and extract_omp_for_update_vars callers.
12988 (expand_omp_for): Don't sorry on non-composite worksharing-loop or
12989 distribute.
12990
12991 2020-06-26 H.J. Lu <hjl.tools@gmail.com>
12992
12993 PR target/95655
12994 * config/i386/gnu-user.h (SUBTARGET_FRAME_POINTER_REQUIRED):
12995 Removed.
12996 * config/i386/i386.c (ix86_frame_pointer_required): Update
12997 comments.
12998
12999 2020-06-26 Yichao Yu <yyc1992@gmail.com>
13000
13001 * multiple_target.c (redirect_to_specific_clone): Fix tests
13002 to check individual attribute rather than an attribute list.
13003
13004 2020-06-26 Peter Bergner <bergner@linux.ibm.com>
13005
13006 * config/rs6000/rs6000-call.c (cpu_is_info) <power10>: New.
13007 * doc/extend.texi (PowerPC Built-in Functions): Document power10,
13008 arch_3_1 and mma.
13009
13010 2020-06-26 Marek Polacek <polacek@redhat.com>
13011
13012 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
13013 * doc/standards.texi (C Language): Correct the default dialect.
13014 (C++ Language): Update the default for C++ to gnu++17.
13015
13016 2020-06-26 Eric Botcazou <ebotcazou@adacore.com>
13017
13018 * tree-ssa-reassoc.c (dump_range_entry): New function.
13019 (debug_range_entry): New debug function.
13020 (update_range_test): Invoke dump_range_entry for dumping.
13021 (optimize_range_tests_to_bit_test): Merge the entry test in the
13022 bit test when possible and lower the profitability threshold.
13023
13024 2020-06-26 Richard Biener <rguenther@suse.de>
13025
13026 PR tree-optimization/95897
13027 * tree-vectorizer.h (vectorizable_induction): Remove
13028 unused gimple_stmt_iterator * parameter.
13029 * tree-vect-loop.c (vectorizable_induction): Likewise.
13030 (vect_analyze_loop_operations): Adjust.
13031 * tree-vect-stmts.c (vect_analyze_stmt): Likewise.
13032 (vect_transform_stmt): Likewise.
13033 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust
13034 for fold-left reductions, clarify existing reduction case.
13035
13036 2020-06-25 Nick Clifton <nickc@redhat.com>
13037
13038 * config/m32r/m32r.md (movsicc): Disable pattern.
13039
13040 2020-06-25 Richard Biener <rguenther@suse.de>
13041
13042 PR tree-optimization/95839
13043 * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove premature
13044 check on the number of datarefs.
13045
13046 2020-06-25 Iain Sandoe <iain@sandoe.co.uk>
13047
13048 * config/rs6000/rs6000-call.c (mma_init_builtins): Cast
13049 the insn_data n_operands value to unsigned.
13050
13051 2020-06-25 Richard Biener <rguenther@suse.de>
13052
13053 * tree-vect-slp.c (vect_schedule_slp_instance): Always use
13054 vector defs to determine insertion place.
13055
13056 2020-06-25 H.J. Lu <hjl.tools@gmail.com>
13057
13058 PR target/95874
13059 * config/i386/i386.h (PTA_ICELAKE_CLIENT): Remove PTA_CLWB.
13060 (PTA_ICELAKE_SERVER): Add PTA_CLWB.
13061 (PTA_TIGERLAKE): Add PTA_CLWB.
13062
13063 2020-06-25 Richard Biener <rguenther@suse.de>
13064
13065 PR tree-optimization/95866
13066 * tree-vect-stmts.c (vectorizable_shift): Reject incompatible
13067 vectorized shift operands. For scalar shifts use lane zero
13068 of a vectorized shift operand.
13069
13070 2020-06-25 Martin Liska <mliska@suse.cz>
13071
13072 PR tree-optimization/95745
13073 PR middle-end/95830
13074 * gimple-isel.cc (gimple_expand_vec_cond_exprs): Delete dead
13075 SSA_NAMEs used as the first argument of a VEC_COND_EXPR. Always
13076 return 0.
13077 * tree-vect-generic.c (expand_vector_condition): Remove dead
13078 SSA_NAMEs used as the first argument of a VEC_COND_EXPR.
13079
13080 2020-06-24 Will Schmidt <will_schmidt@vnet.ibm.com>
13081
13082 PR target/94954
13083 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Update.
13084 * config/rs6000/altivec.md (UNSPEC_CONVERT_4F32_8F16): New unspec.
13085 (convert_4f32_8f16): New define_expand
13086 * config/rs6000/rs6000-builtin.def (convert_4f32_8f16): New builtin define
13087 and overload.
13088 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_CONVERT_4F32_8F16): New
13089 overloaded builtin entry.
13090 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPHP): New unspec.
13091 (vsx_xvcvsphp): New define_insn.
13092
13093 2020-06-24 Roger Sayle <roger@nextmovesoftware.com>
13094 Segher Boessenkool <segher@kernel.crashing.org>
13095
13096 * simplify-rtx.c (simplify_unary_operation_1): Simplify rotates by 0.
13097
13098 2020-06-24 Roger Sayle <roger@nextmovesoftware.com>
13099
13100 * simplify-rtx.c (simplify_unary_operation_1): Simplify
13101 (parity (parity x)) as (parity x), i.e. PARITY is idempotent.
13102
13103 2020-06-24 Richard Biener <rguenther@suse.de>
13104
13105 PR tree-optimization/95866
13106 * tree-vect-slp.c (vect_slp_tree_uniform_p): New.
13107 (vect_build_slp_tree_2): Properly reset matches[0],
13108 ignore uniform constants.
13109
13110 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
13111
13112 PR target/95660
13113 * common/config/i386/cpuinfo.h (get_intel_cpu): Remove brand_id.
13114 (cpu_indicator_init): Likewise.
13115 * config/i386/driver-i386.c (host_detect_local_cpu): Updated.
13116
13117 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
13118
13119 PR target/95774
13120 * common/config/i386/cpuinfo.h (get_intel_cpu): Add Cooper Lake
13121 detection with AVX512BF16.
13122
13123 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
13124
13125 PR target/95843
13126 * common/config/i386/i386-isas.h: New file. Extracted from
13127 gcc/config/i386/i386-builtins.c.
13128 (_isa_names_table): Add option.
13129 (ISA_NAMES_TABLE_START): New.
13130 (ISA_NAMES_TABLE_END): Likewise.
13131 (ISA_NAMES_TABLE_ENTRY): Likewise.
13132 (isa_names_table): Defined with ISA_NAMES_TABLE_START,
13133 ISA_NAMES_TABLE_END and ISA_NAMES_TABLE_ENTRY. Add more ISAs
13134 from enum processor_features.
13135 * config/i386/driver-i386.c: Include
13136 "common/config/i386/cpuinfo.h" and
13137 "common/config/i386/i386-isas.h".
13138 (has_feature): New macro.
13139 (host_detect_local_cpu): Call cpu_indicator_init to get CPU
13140 features. Use has_feature to detect processor features. Call
13141 Call get_intel_cpu to get the newer Intel CPU name. Use
13142 isa_names_table to generate command-line options.
13143 * config/i386/i386-builtins.c: Include
13144 "common/config/i386/i386-isas.h".
13145 (_arch_names_table): Removed.
13146 (isa_names_table): Likewise.
13147
13148 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
13149
13150 PR target/95259
13151 * common/config/i386/cpuinfo.h: New file.
13152 (__processor_model): Moved from libgcc/config/i386/cpuinfo.h.
13153 (__processor_model2): New.
13154 (CHECK___builtin_cpu_is): New. Defined as empty if not defined.
13155 (has_cpu_feature): New function.
13156 (set_cpu_feature): Likewise.
13157 (get_amd_cpu): Moved from libgcc/config/i386/cpuinfo.c. Use
13158 CHECK___builtin_cpu_is. Return AMD CPU name.
13159 (get_intel_cpu): Moved from libgcc/config/i386/cpuinfo.c. Use
13160 Use CHECK___builtin_cpu_is. Return Intel CPU name.
13161 (get_available_features): Moved from libgcc/config/i386/cpuinfo.c.
13162 Also check FEATURE_3DNOW, FEATURE_3DNOWP, FEATURE_ADX,
13163 FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT, FEATURE_CLWB,
13164 FEATURE_CLZERO, FEATURE_CMPXCHG16B, FEATURE_CMPXCHG8B,
13165 FEATURE_ENQCMD, FEATURE_F16C, FEATURE_FSGSBASE, FEATURE_FXSAVE,
13166 FEATURE_HLE, FEATURE_IBT, FEATURE_LAHF_LM, FEATURE_LM,
13167 FEATURE_LWP, FEATURE_LZCNT, FEATURE_MOVBE, FEATURE_MOVDIR64B,
13168 FEATURE_MOVDIRI, FEATURE_MWAITX, FEATURE_OSXSAVE,
13169 FEATURE_PCONFIG, FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
13170 FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
13171 FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
13172 FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
13173 FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
13174 FEATURE_XSAVEOPT and FEATURE_XSAVES
13175 (cpu_indicator_init): Moved from libgcc/config/i386/cpuinfo.c.
13176 Also update cpu_model2.
13177 * common/config/i386/i386-cpuinfo.h (processor_vendor): Add
13178 Add VENDOR_CENTAUR, VENDOR_CYRIX and VENDOR_NSC.
13179 (processor_features): Moved from gcc/config/i386/i386-builtins.c.
13180 Renamed F_XXX to FEATURE_XXX. Add FEATURE_3DNOW, FEATURE_3DNOWP,
13181 FEATURE_ADX, FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT,
13182 FEATURE_CLWB, FEATURE_CLZERO, FEATURE_CMPXCHG16B,
13183 FEATURE_CMPXCHG8B, FEATURE_ENQCMD, FEATURE_F16C,
13184 FEATURE_FSGSBASE, FEATURE_FXSAVE, FEATURE_HLE, FEATURE_IBT,
13185 FEATURE_LAHF_LM, FEATURE_LM, FEATURE_LWP, FEATURE_LZCNT,
13186 FEATURE_MOVBE, FEATURE_MOVDIR64B, FEATURE_MOVDIRI,
13187 FEATURE_MWAITX, FEATURE_OSXSAVE, FEATURE_PCONFIG,
13188 FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
13189 FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
13190 FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
13191 FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
13192 FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
13193 FEATURE_XSAVEOPT, FEATURE_XSAVES and CPU_FEATURE_MAX.
13194 (SIZE_OF_CPU_FEATURES): New.
13195 * config/i386/i386-builtins.c (processor_features): Removed.
13196 (isa_names_table): Replace F_XXX with FEATURE_XXX.
13197 (fold_builtin_cpu): Change __cpu_features2 to an array.
13198
13199 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
13200
13201 PR target/95842
13202 * common/config/i386/i386-common.c (processor_alias_table): Add
13203 processor model and priority to each entry.
13204 (pta_size): Updated with -6.
13205 (num_arch_names): New.
13206 * common/config/i386/i386-cpuinfo.h: New file.
13207 * config/i386/i386-builtins.c (feature_priority): Removed.
13208 (processor_model): Likewise.
13209 (_arch_names_table): Likewise.
13210 (arch_names_table): Likewise.
13211 (_isa_names_table): Replace P_ZERO with P_NONE.
13212 (get_builtin_code_for_version): Replace P_ZERO with P_NONE. Use
13213 processor_alias_table.
13214 (fold_builtin_cpu): Replace arch_names_table with
13215 processor_alias_table.
13216 * config/i386/i386.h: Include "common/config/i386/i386-cpuinfo.h".
13217 (pta): Add model and priority.
13218 (num_arch_names): New.
13219
13220 2020-06-24 Richard Biener <rguenther@suse.de>
13221
13222 * tree-vectorizer.h (vect_find_first_scalar_stmt_in_slp):
13223 Declare.
13224 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
13225 Simplify for new position of vectorized SLP loads.
13226 (vect_slp_analyze_node_dependences): Adjust for it.
13227 (vect_slp_analyze_and_verify_node_alignment): Compute alignment
13228 for the first stmts dataref.
13229 * tree-vect-slp.c (vect_find_first_scalar_stmt_in_slp): New.
13230 (vect_schedule_slp_instance): Emit loads before the
13231 first scalar stmt.
13232 * tree-vect-stmts.c (vectorizable_load): Do what the comment
13233 says and use vect_find_first_scalar_stmt_in_slp.
13234
13235 2020-06-24 Richard Biener <rguenther@suse.de>
13236
13237 PR tree-optimization/95856
13238 * tree-vectorizer.c (vect_stmt_dominates_stmt_p): Honor
13239 region marker -1u.
13240
13241 2020-06-24 Jakub Jelinek <jakub@redhat.com>
13242
13243 PR middle-end/95810
13244 * fold-const.c (fold_cond_expr_with_comparison): Optimize
13245 A <= 0 ? A : -A into (type)-absu(A) rather than -abs(A).
13246
13247 2020-06-24 Jakub Jelinek <jakub@redhat.com>
13248
13249 * omp-low.c (lower_omp_for): Fix two pastos.
13250
13251 2020-06-24 Martin Liska <mliska@suse.cz>
13252
13253 * optc-save-gen.awk: Compare string options in cl_optimization_compare
13254 by strcmp.
13255
13256 2020-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
13257
13258 * config.gcc: Identify power10 as a 64-bit processor and as valid
13259 for --with-cpu and --with-tune.
13260
13261 2020-06-23 David Edelsohn <dje.gcc@gmail.com>
13262
13263 * Makefile.in (LANG_MAKEFRAGS): Same.
13264 (tmake_file): Use -include.
13265 (xmake_file): Same.
13266
13267 2020-06-23 Michael Meissner <meissner@linux.ibm.com>
13268
13269 * REVISION: Delete file meant for a private branch.
13270
13271 2020-06-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
13272
13273 PR target/95646
13274 * config/arm/arm.c: (cmse_nonsecure_entry_clear_before_return): Use
13275 'callee_saved_reg_p' instead of 'calL_used_or_fixed_reg_p'.
13276
13277 2020-06-23 Alexandre Oliva <oliva@adacore.com>
13278
13279 * collect-utils.h (dumppfx): New.
13280 * collect-utils.c (dumppfx): Likewise.
13281 * lto-wrapper.c (run_gcc): Set global dumppfx.
13282 (compile_offload_image): Pass a -dumpbase on to mkoffload.
13283 * config/nvptx/mkoffload.c (ptx_dumpbase): New.
13284 (main): Handle incoming -dumpbase. Set ptx_dumpbase. Obey
13285 save_temps.
13286 (compile_native): Pass -dumpbase et al to compiler.
13287 * config/gcn/mkoffload.c (gcn_dumpbase): New.
13288 (main): Handle incoming -dumpbase. Set gcn_dumpbase. Obey
13289 save_temps. Pass -dumpbase et al to offload target compiler.
13290 (compile_native): Pass -dumpbase et al to compiler.
13291
13292 2020-06-23 Michael Meissner <meissner@linux.ibm.com>
13293
13294 * REVISION: New file.
13295
13296 2020-06-22 Segher Boessenkool <segher@kernel.crashing.org>
13297
13298 * config/rs6000/altivec.h: Use _ARCH_PWR10, not _ARCH_PWR_FUTURE.
13299 Update comment for ISA 3.1.
13300 * config/rs6000/altivec.md: Use TARGET_POWER10, not TARGET_FUTURE.
13301 * config/rs6000/driver-rs6000.c (asm_names): Use -mpwr10 for power10
13302 on AIX, and -mpower10 elsewhere.
13303 * config/rs6000/future.md: Delete.
13304 * config/rs6000/linux64.h: Update comments. Use TARGET_POWER10, not
13305 TARGET_FUTURE.
13306 * config/rs6000/power10.md: New file.
13307 * config/rs6000/ppc-auxv.h: Use PPC_PLATFORM_POWER10, not
13308 PPC_PLATFORM_FUTURE.
13309 * config/rs6000/rs6000-builtin.def: Update comments. Use BU_P10V_*
13310 names instead of BU_FUTURE_V_* names. Use RS6000_BTM_P10 instead of
13311 RS6000_BTM_FUTURE. Use P10_BUILTIN_* instead of FUTURE_BUILTIN_*.
13312 Use BU_P10_* instead of BU_FUTURE_*.
13313 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13314 _ARCH_PWR10 instead of _ARCH_PWR_FUTURE.
13315 (altivec_resolve_overloaded_builtin): Use P10_BUILTIN_VEC_XXEVAL, not
13316 FUTURE_BUILTIN_VEC_XXEVAL.
13317 * config/rs6000/rs6000-call.c: Use P10_BUILTIN_*, not FUTURE_BUILTIN_*.
13318 Update compiler messages.
13319 * config/rs6000/rs6000-cpus.def: Update comments. Use ISA_3_1_*, not
13320 ISA_FUTURE_*. Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE.
13321 * config/rs6000/rs6000-opts.h: Use PROCESSOR_POWER10, not
13322 PROCESSOR_FUTURE.
13323 * config/rs6000/rs6000-string.c: Ditto.
13324 * config/rs6000/rs6000-tables.opt (rs6000_cpu_opt_value): Use "power10"
13325 instead of "future", reorder it to right after "power9".
13326 * config/rs6000/rs6000.c: Update comments. Use OPTION_MASK_POWER10,
13327 not OPTION_MASK_FUTURE. Use TARGET_POWER10, not TARGET_FUTURE. Use
13328 RS6000_BTM_P10, not RS6000_BTM_FUTURE. Update compiler messages.
13329 Use PROCESSOR_POWER10, not PROCESSOR_FUTURE. Use ISA_3_1_MASKS_SERVER,
13330 not ISA_FUTURE_MASKS_SERVER.
13331 (rs6000_opt_masks): Use "power10" instead of "future".
13332 (rs6000_builtin_mask_names): Ditto.
13333 (rs6000_disable_incompatible_switches): Ditto.
13334 * config/rs6000/rs6000.h: Use -mpower10, not -mfuture. Use
13335 -mcpu=power10, not -mcpu=future. Use MASK_POWER10, not MASK_FUTURE.
13336 Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE. Use RS6000_BTM_P10,
13337 not RS6000_BTM_FUTURE.
13338 * config/rs6000/rs6000.md: Use "power10", not "future". Use
13339 TARGET_POWER10, not TARGET_FUTURE. Include "power10.md", not
13340 "future.md".
13341 * config/rs6000/rs6000.opt (mfuture): Delete.
13342 (mpower10): New.
13343 * config/rs6000/t-rs6000: Use "power10.md", not "future.md".
13344 * config/rs6000/vsx.md: Use TARGET_POWER10, not TARGET_FUTURE.
13345
13346 2020-06-22 Richard Sandiford <richard.sandiford@arm.com>
13347
13348 * coretypes.h (first_type): Delete.
13349 * recog.h (insn_gen_fn::operator()): Go back to using a decltype.
13350
13351 2020-06-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13352
13353 * doc/sourcebuild.texi (arm_v8_1m_mve_fp_ok): Add item.
13354 (arm_mve_hw): Likewise.
13355
13356 2020-06-22 H.J. Lu <hjl.tools@gmail.com>
13357
13358 PR target/95791
13359 * config/i386/i386.c (ix86_dirflag_mode_needed): Skip
13360 EXT_REX_SSE_REG_P.
13361
13362 2020-06-22 Richard Biener <rguenther@suse.de>
13363
13364 PR tree-optimization/95770
13365 * tree-vect-slp.c (vect_schedule_slp_instance): Also consider
13366 external defs.
13367
13368 2020-06-22 Andrew Stubbs <ams@codesourcery.com>
13369
13370 * config/gcn/gcn.c (gcn_function_arg): Disallow vector arguments.
13371 (gcn_return_in_memory): Return vectors in memory.
13372
13373 2020-06-22 Jakub Jelinek <jakub@redhat.com>
13374
13375 * omp-general.c (omp_extract_for_data): For triangular loops with
13376 all loop invariant expressions constant where the innermost loop is
13377 executed at least once compute number of iterations at compile time.
13378
13379 2020-06-22 Kito Cheng <kito.cheng@sifive.com>
13380
13381 * config/riscv/riscv.h (ASM_SPEC): Remove riscv_expand_arch call.
13382 (DRIVER_SELF_SPECS): New.
13383
13384 2020-06-22 Kito Cheng <kito.cheng@sifive.com>
13385
13386 * config/riscv/riscv-builtins.c (RISCV_FTYPE_NAME0): New.
13387 (RISCV_FTYPE_ATYPES0): New.
13388 (riscv_builtins): Using RISCV_USI_FTYPE for frflags.
13389 * config/riscv/riscv-ftypes.def: Remove VOID argument.
13390
13391 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
13392
13393 * config.gcc: Use t-aix64, biarch64 and default64 for cpu_is_64bit.
13394 * config/rs6000/aix72.h (ASM_SPEC): Remove aix64 option.
13395 (ASM_SPEC32): New.
13396 (ASM_SPEC64): New.
13397 (ASM_CPU_SPEC): Remove vsx and altivec options.
13398 (CPP_SPEC_COMMON): Rename from CPP_SPEC.
13399 (CPP_SPEC32): New.
13400 (CPP_SPEC64): New.
13401 (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
13402 (TARGET_DEFAULT): Only define if not BIARCH.
13403 (LIB_SPEC_COMMON): Rename from LIB_SPEC.
13404 (LIB_SPEC32): New.
13405 (LIB_SPEC64): New.
13406 (LINK_SPEC_COMMON): Rename from LINK_SPEC.
13407 (LINK_SPEC32): New.
13408 (LINK_SPEC64): New.
13409 (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
13410 (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
13411 (CPP_SPEC): Same.
13412 (CPLUSPLUS_CPP_SPEC): Same.
13413 (LIB_SPEC): Same.
13414 (LINK_SPEC): Same.
13415 (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
13416 * config/rs6000/defaultaix64.h: New file.
13417 * config/rs6000/t-aix64: New file.
13418
13419 2020-06-21 Peter Bergner <bergner@linux.ibm.com>
13420
13421 * config/rs6000/predicates.md (mma_assemble_input_operand): New.
13422 * config/rs6000/rs6000-builtin.def (BU_MMA_1, BU_MMA_V2, BU_MMA_3,
13423 BU_MMA_5, BU_MMA_6, BU_VSX_1): Add support macros for defining MMA
13424 built-in functions.
13425 (ASSEMBLE_ACC, ASSEMBLE_PAIR, DISASSEMBLE_ACC, DISASSEMBLE_PAIR,
13426 PMXVBF16GER2, PMXVBF16GER2NN, PMXVBF16GER2NP, PMXVBF16GER2PN,
13427 PMXVBF16GER2PP, PMXVF16GER2, PMXVF16GER2NN, PMXVF16GER2NP,
13428 PMXVF16GER2PN, PMXVF16GER2PP, PMXVF32GER, PMXVF32GERNN,
13429 PMXVF32GERNP, PMXVF32GERPN, PMXVF32GERPP, PMXVF64GER, PMXVF64GERNN,
13430 PMXVF64GERNP, PMXVF64GERPN, PMXVF64GERPP, PMXVI16GER2, PMXVI16GER2PP,
13431 PMXVI16GER2S, PMXVI16GER2SPP, PMXVI4GER8, PMXVI4GER8PP, PMXVI8GER4,
13432 PMXVI8GER4PP, PMXVI8GER4SPP, XVBF16GER2, XVBF16GER2NN, XVBF16GER2NP,
13433 XVBF16GER2PN, XVBF16GER2PP, XVCVBF16SP, XVCVSPBF16, XVF16GER2,
13434 XVF16GER2NN, XVF16GER2NP, XVF16GER2PN, XVF16GER2PP, XVF32GER,
13435 XVF32GERNN, XVF32GERNP, XVF32GERPN, XVF32GERPP, XVF64GER, XVF64GERNN,
13436 XVF64GERNP, XVF64GERPN, XVF64GERPP, XVI16GER2, XVI16GER2PP, XVI16GER2S,
13437 XVI16GER2SPP, XVI4GER8, XVI4GER8PP, XVI8GER4, XVI8GER4PP, XVI8GER4SPP,
13438 XXMFACC, XXMTACC, XXSETACCZ): Add MMA built-ins.
13439 * config/rs6000/rs6000.c (rs6000_emit_move): Use CONST_INT_P.
13440 Allow zero constants.
13441 (print_operand) <case 'A'>: New output modifier.
13442 (rs6000_split_multireg_move): Add support for inserting accumulator
13443 priming and depriming instructions. Add support for splitting an
13444 assemble accumulator pattern.
13445 * config/rs6000/rs6000-call.c (mma_init_builtins, mma_expand_builtin,
13446 rs6000_gimple_fold_mma_builtin): New functions.
13447 (RS6000_BUILTIN_M): New macro.
13448 (def_builtin): Handle RS6000_BTC_QUAD and RS6000_BTC_PAIR attributes.
13449 (bdesc_mma): Add new MMA built-in support.
13450 (htm_expand_builtin): Use RS6000_BTC_OPND_MASK.
13451 (rs6000_invalid_builtin): Add handling of RS6000_BTM_FUTURE and
13452 RS6000_BTM_MMA.
13453 (rs6000_builtin_valid_without_lhs): Handle RS6000_BTC_VOID attribute.
13454 (rs6000_gimple_fold_builtin): Call rs6000_builtin_is_supported_p
13455 and rs6000_gimple_fold_mma_builtin.
13456 (rs6000_expand_builtin): Call mma_expand_builtin.
13457 Use RS6000_BTC_OPND_MASK.
13458 (rs6000_init_builtins): Adjust comment. Call mma_init_builtins.
13459 (htm_init_builtins): Use RS6000_BTC_OPND_MASK.
13460 (builtin_function_type): Handle VSX_BUILTIN_XVCVSPBF16 and
13461 VSX_BUILTIN_XVCVBF16SP.
13462 * config/rs6000/rs6000.h (RS6000_BTC_QUINARY, RS6000_BTC_SENARY,
13463 RS6000_BTC_OPND_MASK, RS6000_BTC_QUAD, RS6000_BTC_PAIR,
13464 RS6000_BTC_QUADPAIR, RS6000_BTC_GIMPLE): New defines.
13465 (RS6000_BTC_PREDICATE, RS6000_BTC_ABS, RS6000_BTC_DST,
13466 RS6000_BTC_TYPE_MASK, RS6000_BTC_ATTR_MASK): Adjust values.
13467 * config/rs6000/mma.md (MAX_MMA_OPERANDS): New define_constant.
13468 (UNSPEC_MMA_ASSEMBLE_ACC, UNSPEC_MMA_PMXVBF16GER2,
13469 UNSPEC_MMA_PMXVBF16GER2NN, UNSPEC_MMA_PMXVBF16GER2NP,
13470 UNSPEC_MMA_PMXVBF16GER2PN, UNSPEC_MMA_PMXVBF16GER2PP,
13471 UNSPEC_MMA_PMXVF16GER2, UNSPEC_MMA_PMXVF16GER2NN,
13472 UNSPEC_MMA_PMXVF16GER2NP, UNSPEC_MMA_PMXVF16GER2PN,
13473 UNSPEC_MMA_PMXVF16GER2PP, UNSPEC_MMA_PMXVF32GER,
13474 UNSPEC_MMA_PMXVF32GERNN, UNSPEC_MMA_PMXVF32GERNP,
13475 UNSPEC_MMA_PMXVF32GERPN, UNSPEC_MMA_PMXVF32GERPP,
13476 UNSPEC_MMA_PMXVF64GER, UNSPEC_MMA_PMXVF64GERNN,
13477 UNSPEC_MMA_PMXVF64GERNP, UNSPEC_MMA_PMXVF64GERPN,
13478 UNSPEC_MMA_PMXVF64GERPP, UNSPEC_MMA_PMXVI16GER2,
13479 UNSPEC_MMA_PMXVI16GER2PP, UNSPEC_MMA_PMXVI16GER2S,
13480 UNSPEC_MMA_PMXVI16GER2SPP, UNSPEC_MMA_PMXVI4GER8,
13481 UNSPEC_MMA_PMXVI4GER8PP, UNSPEC_MMA_PMXVI8GER4,
13482 UNSPEC_MMA_PMXVI8GER4PP, UNSPEC_MMA_PMXVI8GER4SPP,
13483 UNSPEC_MMA_XVBF16GER2, UNSPEC_MMA_XVBF16GER2NN,
13484 UNSPEC_MMA_XVBF16GER2NP, UNSPEC_MMA_XVBF16GER2PN,
13485 UNSPEC_MMA_XVBF16GER2PP, UNSPEC_MMA_XVF16GER2, UNSPEC_MMA_XVF16GER2NN,
13486 UNSPEC_MMA_XVF16GER2NP, UNSPEC_MMA_XVF16GER2PN, UNSPEC_MMA_XVF16GER2PP,
13487 UNSPEC_MMA_XVF32GER, UNSPEC_MMA_XVF32GERNN, UNSPEC_MMA_XVF32GERNP,
13488 UNSPEC_MMA_XVF32GERPN, UNSPEC_MMA_XVF32GERPP, UNSPEC_MMA_XVF64GER,
13489 UNSPEC_MMA_XVF64GERNN, UNSPEC_MMA_XVF64GERNP, UNSPEC_MMA_XVF64GERPN,
13490 UNSPEC_MMA_XVF64GERPP, UNSPEC_MMA_XVI16GER2, UNSPEC_MMA_XVI16GER2PP,
13491 UNSPEC_MMA_XVI16GER2S, UNSPEC_MMA_XVI16GER2SPP, UNSPEC_MMA_XVI4GER8,
13492 UNSPEC_MMA_XVI4GER8PP, UNSPEC_MMA_XVI8GER4, UNSPEC_MMA_XVI8GER4PP,
13493 UNSPEC_MMA_XVI8GER4SPP, UNSPEC_MMA_XXMFACC, UNSPEC_MMA_XXMTACC): New.
13494 (MMA_ACC, MMA_VV, MMA_AVV, MMA_PV, MMA_APV, MMA_VVI4I4I8,
13495 MMA_AVVI4I4I8, MMA_VVI4I4I2, MMA_AVVI4I4I2, MMA_VVI4I4,
13496 MMA_AVVI4I4, MMA_PVI4I2, MMA_APVI4I2, MMA_VVI4I4I4,
13497 MMA_AVVI4I4I4): New define_int_iterator.
13498 (acc, vv, avv, pv, apv, vvi4i4i8, avvi4i4i8, vvi4i4i2,
13499 avvi4i4i2, vvi4i4, avvi4i4, pvi4i2, apvi4i2, vvi4i4i4,
13500 avvi4i4i4): New define_int_attr.
13501 (*movpxi): Add zero constant alternative.
13502 (mma_assemble_pair, mma_assemble_acc): New define_expand.
13503 (*mma_assemble_acc): New define_insn_and_split.
13504 (mma_<acc>, mma_xxsetaccz, mma_<vv>, mma_<avv>, mma_<pv>, mma_<apv>,
13505 mma_<vvi4i4i8>, mma_<avvi4i4i8>, mma_<vvi4i4i2>, mma_<avvi4i4i2>,
13506 mma_<vvi4i4>, mma_<avvi4i4>, mma_<pvi4i2>, mma_<apvi4i2>,
13507 mma_<vvi4i4i4>, mma_<avvi4i4i4>): New define_insn.
13508 * config/rs6000/rs6000.md (define_attr "type"): New type mma.
13509 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVBF16SP): New.
13510 (UNSPEC_VSX_XVCVSPBF16): Likewise.
13511 (XVCVBF16): New define_int_iterator.
13512 (xvcvbf16): New define_int_attr.
13513 (vsx_<xvcvbf16>): New define_insn.
13514 * doc/extend.texi: Document the mma built-ins.
13515
13516 2020-06-21 Peter Bergner <bergner@linux.ibm.com>
13517 Michael Meissner <meissner@linux.ibm.com>
13518
13519 * config/rs6000/mma.md: New file.
13520 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13521 __MMA__ for mma.
13522 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Add support
13523 for __vector_pair and __vector_quad types.
13524 * config/rs6000/rs6000-cpus.def (OTHER_FUTURE_MASKS): Add
13525 OPTION_MASK_MMA.
13526 (POWERPC_MASKS): Likewise.
13527 * config/rs6000/rs6000-modes.def (OI, XI): New integer modes.
13528 (POI, PXI): New partial integer modes.
13529 * config/rs6000/rs6000.c (TARGET_INVALID_CONVERSION): Define.
13530 (rs6000_hard_regno_nregs_internal): Use VECTOR_ALIGNMENT_P.
13531 (rs6000_hard_regno_mode_ok_uncached): Likewise.
13532 Add support for POImode being allowed in VSX registers and PXImode
13533 being allowed in FP registers.
13534 (rs6000_modes_tieable_p): Adjust comment.
13535 Add support for POImode and PXImode.
13536 (rs6000_debug_reg_global) <print_tieable_modes>: Add OImode, POImode
13537 XImode, PXImode, V2SImode, V2SFmode and CCFPmode..
13538 (rs6000_setup_reg_addr_masks): Use VECTOR_ALIGNMENT_P.
13539 Set up appropriate addr_masks for vector pair and vector quad addresses.
13540 (rs6000_init_hard_regno_mode_ok): Add support for vector pair and
13541 vector quad registers. Setup reload handlers for POImode and PXImode.
13542 (rs6000_builtin_mask_calculate): Add support for RS6000_BTM_MMA.
13543 (rs6000_option_override_internal): Error if -mmma is specified
13544 without -mcpu=future.
13545 (rs6000_slow_unaligned_access): Use VECTOR_ALIGNMENT_P.
13546 (quad_address_p): Change size test to less than 16 bytes.
13547 (reg_offset_addressing_ok_p): Add support for ISA 3.1 vector pair
13548 and vector quad instructions.
13549 (avoiding_indexed_address_p): Likewise.
13550 (rs6000_emit_move): Disallow POImode and PXImode moves involving
13551 constants.
13552 (rs6000_preferred_reload_class): Prefer VSX registers for POImode
13553 and FP registers for PXImode.
13554 (rs6000_split_multireg_move): Support splitting POImode and PXImode
13555 move instructions.
13556 (rs6000_mangle_type): Adjust comment. Add support for mangling
13557 __vector_pair and __vector_quad types.
13558 (rs6000_opt_masks): Add entry for mma.
13559 (rs6000_builtin_mask_names): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
13560 (rs6000_function_value): Use VECTOR_ALIGNMENT_P.
13561 (address_to_insn_form): Likewise.
13562 (reg_to_non_prefixed): Likewise.
13563 (rs6000_invalid_conversion): New function.
13564 * config/rs6000/rs6000.h (MASK_MMA): Define.
13565 (BIGGEST_ALIGNMENT): Set to 512 if MMA support is enabled.
13566 (VECTOR_ALIGNMENT_P): New helper macro.
13567 (ALTIVEC_VECTOR_MODE): Use VECTOR_ALIGNMENT_P.
13568 (RS6000_BTM_MMA): Define.
13569 (RS6000_BTM_COMMON): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
13570 (rs6000_builtin_type_index): Add RS6000_BTI_vector_pair and
13571 RS6000_BTI_vector_quad.
13572 (vector_pair_type_node): New.
13573 (vector_quad_type_node): New.
13574 * config/rs6000/rs6000.md: Include mma.md.
13575 (define_mode_iterator RELOAD): Add POI and PXI.
13576 * config/rs6000/t-rs6000 (MD_INCLUDES): Add mma.md.
13577 * config/rs6000/rs6000.opt (-mmma): New.
13578 * doc/invoke.texi: Document -mmma.
13579
13580 2020-06-20 Bin Cheng <bin.cheng@linux.alibaba.com>
13581
13582 PR tree-optimization/95638
13583 * tree-loop-distribution.c (pg_edge_callback_data): New field.
13584 (loop_distribution::break_alias_scc_partitions): Record and restore
13585 postorder information. Fix memory leak.
13586
13587 2020-06-19 Tobias Burnus <tobias@codesourcery.com>
13588
13589 * config/gcn/gcn.c (gcn_related_vector_mode): Add ARG_UNUSED.
13590 (output_file_start): Use const 'char *'.
13591
13592 2020-06-19 Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
13593
13594 PR tree-optimization/94880
13595 * match.pd (A | B) - B -> (A & ~B): New simplification.
13596
13597 2020-06-19 Richard Biener <rguenther@suse.de>
13598
13599 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Adjust
13600 for lane permutations.
13601
13602 2020-06-19 Richard Biener <rguenther@suse.de>
13603
13604 PR tree-optimization/95761
13605 * tree-vect-slp.c (vect_schedule_slp_instance): Walk all
13606 vectorized stmts for finding the last one.
13607
13608 2020-06-18 Felix Yang <felix.yang@huawei.com>
13609
13610 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Call
13611 vect_relevant_for_alignment_p to filter out data references in
13612 the loop whose alignment is irrelevant when trying loop peeling
13613 to force alignment.
13614
13615 2020-06-18 Uroš Bizjak <ubizjak@gmail.com>
13616
13617 * config/i386/i386.md (*cmpqi_ext<mode>_1): Use SWI248 mode
13618 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
13619 mode iterator for the first operand of ZERO_EXTRACT RTX.
13620 Change ext_register_operand predicate to register_operand.
13621 Rename from *cmpqi_ext_1.
13622 (*cmpqi_ext<mode>_2): Ditto. Rename from *cmpqi_ext_2.
13623 (*cmpqi_ext<mode>_3): Ditto. Rename from *cmpqi_ext_3.
13624 (*cmpqi_ext<mode>_4): Ditto. Rename from *cmpqi_ext_4.
13625 (cmpi_ext_3): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13626 (*extv<mode>): Use SWI24 mode iterator for the first operand
13627 of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13628 to register_operand.
13629 (*extzv<mode>): Use SWI248 mode iterator for the first operand
13630 of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13631 to register_operand.
13632 (*extzvqi): Use SWI248 mode iterator instead of SImode for
13633 ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first operand
13634 of ZERO_EXTRACT RTX. Change ext_register_operand predicate to
13635 register_operand.
13636 (*extzvqi_mem_rex64 and corresponding peephole2): Use SWI248 mode
13637 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
13638 mode iterator for the first operand of ZERO_EXTRACT RTX.
13639 Change ext_register_operand predicate to register_operand.
13640 (@insv<mode>_1): Use SWI248 mode iterator for the first operand
13641 of ZERO_EXTRACT RTX. Change ext_register_operand predicate to
13642 register_operand.
13643 (*insvqi_1): Use SWI248 mode iterator instead of SImode
13644 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the
13645 first operand of ZERO_EXTRACT RTX. Change ext_register_operand
13646 predicate to register_operand.
13647 (*insvqi_2): Ditto.
13648 (*insvqi_3): Ditto.
13649 (*insvqi_1_mem_rex64 and corresponding peephole2): Use SWI248 mode
13650 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
13651 mode iterator for the first operand of ZERO_EXTRACT RTX.
13652 Change ext_register_operand predicate to register_operand.
13653 (addqi_ext_1): New expander.
13654 (*addqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
13655 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13656 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13657 to register_operand. Rename from *addqi_ext_1.
13658 (*addqi_ext<mode>_2): Ditto. Rename from *addqi_ext_2.
13659 (divmodqi4): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13660 (udivmodqi4): Ditto.
13661 (testqi_ext_1): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13662 (*testqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
13663 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13664 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13665 to register_operand. Rename from *testqi_ext_1.
13666 (*testqi_ext<mode>_2): Ditto. Rename from *testqi_ext_2.
13667 (andqi_ext_1): New expander.
13668 (*andqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
13669 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13670 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13671 to register_operand. Rename from andqi_ext_1.
13672 (*andqi_ext<mode>_1_cc): Ditto. Rename from *andqi_ext_1_cc.
13673 (*andqi_ext<mode>_2): Ditto. Rename from *andqi_ext_2.
13674 (*<code>qi_ext<mode>_1): Ditto. Rename from *<code>qi_ext_1.
13675 (*<code>qi_ext<mode>_2): Ditto. Rename from *<code>qi_ext_2.
13676 (xorqi_ext_1_cc): Use HImode instead of SImode for ZERO_EXTRACT RTX.
13677 (*xorqi_ext<mode>_1_cc): Use SWI248 mode iterator instead of SImode
13678 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
13679 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
13680 to register_operand. Rename from *xorqi_ext_1_cc.
13681 * config/i386/i386-expand.c (ix86_split_idivmod): Emit ZERO_EXTRACT
13682 in mode, matching its first operand.
13683 (promote_duplicated_reg): Update for renamed insv<mode>_1.
13684 * config/i386/predicates.md (ext_register_operand): Remove predicate.
13685
13686 2020-06-18 Martin Sebor <msebor@redhat.com>
13687
13688 PR middle-end/95667
13689 PR middle-end/92814
13690 * builtins.c (compute_objsize): Remove call to
13691 compute_builtin_object_size and instead compute conservative sizes
13692 directly here.
13693
13694 2020-06-18 Martin Liska <mliska@suse.cz>
13695
13696 * coretypes.h (struct iterator_range): New type.
13697 * tree-vect-patterns.c (vect_determine_precisions): Use
13698 range-based iterator.
13699 (vect_pattern_recog): Likewise.
13700 * tree-vect-slp.c (_bb_vec_info): Likewise.
13701 (_bb_vec_info::~_bb_vec_info): Likewise.
13702 (vect_slp_check_for_constructors): Likewise.
13703 * tree-vectorizer.h:Add new iterators
13704 and functions that use it.
13705
13706 2020-06-18 Martin Liska <mliska@suse.cz>
13707
13708 * config/rs6000/rs6000-call.c (fold_build_vec_cmp):
13709 Since 502d63b6d6141597bb18fd23c87736a1b384cf8f, first argument
13710 of a VEC_COND_EXPR cannot be tcc_comparison and so that
13711 a SSA_NAME needs to be created before we use it for the first
13712 argument of the VEC_COND_EXPR.
13713 (fold_compare_helper): Pass gsi to fold_build_vec_cmp.
13714
13715 2020-06-18 Richard Biener <rguenther@suse.de>
13716
13717 PR middle-end/95739
13718 * internal-fn.c (expand_vect_cond_optab_fn): Move the result
13719 to the target if necessary.
13720 (expand_vect_cond_mask_optab_fn): Likewise.
13721
13722 2020-06-18 Martin Liska <mliska@suse.cz>
13723
13724 * tree-ssa-reassoc.c (ovce_extract_ops): Replace *vcond with
13725 vcond as we check for NULL pointer.
13726
13727 2020-06-18 Tobias Burnus <tobias@codesourcery.com>
13728
13729 * gimple-pretty-print.c (dump_binary_rhs): Use braces to
13730 silence empty-body warning with gcc_fallthrough.
13731
13732 2020-06-18 Jakub Jelinek <jakub@redhat.com>
13733
13734 PR tree-optimization/95699
13735 * tree-ssa-phiopt.c (minmax_replacement): Treat (signed int)x < 0
13736 as x > INT_MAX and (signed int)x >= 0 as x <= INT_MAX. Move variable
13737 declarations to the statements that set them where possible.
13738
13739 2020-06-18 Jakub Jelinek <jakub@redhat.com>
13740
13741 PR target/95713
13742 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't allow
13743 scalar mode halfvectype other than vector boolean for
13744 VEC_PACK_TRUNC_EXPR.
13745
13746 2020-06-18 Richard Biener <rguenther@suse.de>
13747
13748 * varasm.c (assemble_variable): Make sure to not
13749 defer output when outputting addressed constants.
13750 (output_constant_def_contents): Likewise.
13751 (add_constant_to_table): Take and pass on whether to
13752 defer output.
13753 (output_addressed_constants): Likewise.
13754 (output_constant_def): Pass on whether to defer output
13755 to add_constant_to_table.
13756 (tree_output_constant_def): Defer output of constants.
13757
13758 2020-06-18 Richard Biener <rguenther@suse.de>
13759
13760 * tree-vectorizer.h (_slp_tree::two_operators): Remove.
13761 (_slp_tree::lane_permutation): New member.
13762 (_slp_tree::code): Likewise.
13763 (SLP_TREE_TWO_OPERATORS): Remove.
13764 (SLP_TREE_LANE_PERMUTATION): New.
13765 (SLP_TREE_CODE): Likewise.
13766 (vect_stmt_dominates_stmt_p): Declare.
13767 * tree-vectorizer.c (vect_stmt_dominates_stmt_p): New function.
13768 * tree-vect-stmts.c (vect_model_simple_cost): Remove
13769 SLP_TREE_TWO_OPERATORS handling.
13770 * tree-vect-slp.c (_slp_tree::_slp_tree): Amend.
13771 (_slp_tree::~_slp_tree): Likewise.
13772 (vect_two_operations_perm_ok_p): Remove.
13773 (vect_build_slp_tree_1): Remove verification of two-operator
13774 permutation here.
13775 (vect_build_slp_tree_2): When we have two different operators
13776 build two computation SLP nodes and a blend.
13777 (vect_print_slp_tree): Print the lane permutation if it exists.
13778 (slp_copy_subtree): Copy it.
13779 (vect_slp_rearrange_stmts): Re-arrange it.
13780 (vect_slp_analyze_node_operations_1): Handle SLP_TREE_CODE
13781 VEC_PERM_EXPR explicitely.
13782 (vect_schedule_slp_instance): Likewise. Remove old
13783 SLP_TREE_TWO_OPERATORS code.
13784 (vectorizable_slp_permutation): New function.
13785
13786 2020-06-18 Martin Liska <mliska@suse.cz>
13787
13788 * tree-vect-generic.c (expand_vector_condition): Check
13789 for gassign before inspecting RHS.
13790
13791 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
13792
13793 * gimplify.c (omp_notice_threadprivate_variable)
13794 (omp_default_clause, omp_notice_variable): 'inform' after 'error'
13795 diagnostic. Adjust all users.
13796
13797 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
13798
13799 * hsa-gen.c (gen_hsa_insns_for_call): Move 'function_decl ==
13800 NULL_TREE' check earlier.
13801
13802 2020-06-17 Forrest Timour <forrest.timour@gmail.com>
13803
13804 * doc/extend.texi (attribute access): Fix a typo.
13805
13806 2020-06-17 Bin Cheng <bin.cheng@linux.alibaba.com>
13807 Kaipeng Zhou <zhoukaipeng3@huawei.com>
13808
13809 PR tree-optimization/95199
13810 * tree-vect-stmts.c: Eliminate common stmts for bump and offset in
13811 strided load/store operations and remove redundant code.
13812
13813 2020-06-17 Richard Sandiford <richard.sandiford@arm.com>
13814
13815 * coretypes.h (first_type): New alias template.
13816 * recog.h (insn_gen_fn::operator()): Use it instead of a decltype.
13817 Remove spurious “...” and split the function type out into a typedef.
13818
13819 2020-06-17 Andreas Krebbel <krebbel@linux.ibm.com>
13820
13821 * config/s390/s390.c (s390_fix_long_loop_prediction): Exit early
13822 for PARALLELs.
13823
13824 2020-06-17 Richard Biener <rguenther@suse.de>
13825
13826 * tree-vect-slp.c (vect_build_slp_tree_1): Set the passed
13827 in *vectype parameter.
13828 (vect_build_slp_tree_2): Set SLP_TREE_VECTYPE from what
13829 vect_build_slp_tree_1 computed.
13830 (vect_analyze_slp_instance): Set SLP_TREE_VECTYPE.
13831 (vect_slp_analyze_node_operations_1): Use the SLP node vector type.
13832 (vect_schedule_slp_instance): Likewise.
13833 * tree-vect-stmts.c (vect_is_simple_use): Take the vector type
13834 from SLP_TREE_VECTYPE.
13835
13836 2020-06-17 Richard Biener <rguenther@suse.de>
13837
13838 PR tree-optimization/95717
13839 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
13840 Move BB SSA updating before exit/latch PHI current def copying.
13841
13842 2020-06-17 Martin Liska <mliska@suse.cz>
13843
13844 * Makefile.in: Add new file.
13845 * expr.c (expand_expr_real_2): Add gcc_unreachable as we should
13846 not meet this condition.
13847 (do_store_flag): Likewise.
13848 * gimplify.c (gimplify_expr): Gimplify first argument of
13849 VEC_COND_EXPR to be a SSA name.
13850 * internal-fn.c (vec_cond_mask_direct): New.
13851 (vec_cond_direct): Likewise.
13852 (vec_condu_direct): Likewise.
13853 (vec_condeq_direct): Likewise.
13854 (expand_vect_cond_optab_fn): New.
13855 (expand_vec_cond_optab_fn): Likewise.
13856 (expand_vec_condu_optab_fn): Likewise.
13857 (expand_vec_condeq_optab_fn): Likewise.
13858 (expand_vect_cond_mask_optab_fn): Likewise.
13859 (expand_vec_cond_mask_optab_fn): Likewise.
13860 (direct_vec_cond_mask_optab_supported_p): Likewise.
13861 (direct_vec_cond_optab_supported_p): Likewise.
13862 (direct_vec_condu_optab_supported_p): Likewise.
13863 (direct_vec_condeq_optab_supported_p): Likewise.
13864 * internal-fn.def (VCOND): New OPTAB.
13865 (VCONDU): Likewise.
13866 (VCONDEQ): Likewise.
13867 (VCOND_MASK): Likewise.
13868 * optabs.c (get_rtx_code): Make it global.
13869 (expand_vec_cond_mask_expr): Removed.
13870 (expand_vec_cond_expr): Removed.
13871 * optabs.h (expand_vec_cond_expr): Likewise.
13872 (vector_compare_rtx): Make it global.
13873 * passes.def: Add new pass_gimple_isel pass.
13874 * tree-cfg.c (verify_gimple_assign_ternary): Add check
13875 for VEC_COND_EXPR about first argument.
13876 * tree-pass.h (make_pass_gimple_isel): New.
13877 * tree-ssa-forwprop.c (pass_forwprop::execute): Prevent
13878 propagation of the first argument of a VEC_COND_EXPR.
13879 * tree-ssa-reassoc.c (ovce_extract_ops): Support SSA_NAME as
13880 first argument of a VEC_COND_EXPR.
13881 (optimize_vec_cond_expr): Likewise.
13882 * tree-vect-generic.c (expand_vector_divmod): Make SSA_NAME
13883 for a first argument of created VEC_COND_EXPR.
13884 (expand_vector_condition): Fix coding style.
13885 * tree-vect-stmts.c (vectorizable_condition): Gimplify
13886 first argument.
13887 * gimple-isel.cc: New file.
13888
13889 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
13890
13891 * config/gcn/gcn-hsa.h (TEXT_SECTION_ASM_OP): Use ".text".
13892 (BSS_SECTION_ASM_OP): Use ".bss".
13893 (ASM_SPEC): Remove "-mattr=-code-object-v3".
13894 (LINK_SPEC): Add "--export-dynamic".
13895 * config/gcn/gcn-opts.h (processor_type): Replace PROCESSOR_VEGA with
13896 PROCESSOR_VEGA10 and PROCESSOR_VEGA20.
13897 * config/gcn/gcn-run.c (HSA_RUNTIME_LIB): Use ".so.1" variant.
13898 (load_image): Remove obsolete relocation handling.
13899 Add ".kd" suffix to the symbol names.
13900 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT): Set to 62.
13901 (gcn_option_override): Update gcn_isa test.
13902 (gcn_kernel_arg_types): Update all the assembler directives.
13903 Remove the obsolete options.
13904 (gcn_conditional_register_usage): Update MAX_NORMAL_SGPR_COUNT usage.
13905 (gcn_omp_device_kind_arch_isa): Handle PROCESSOR_VEGA10 and
13906 PROCESSOR_VEGA20.
13907 (output_file_start): Rework assembler file header.
13908 (gcn_hsa_declare_function_name): Rework kernel metadata.
13909 * config/gcn/gcn.h (GCN_KERNEL_ARG_TYPES): Set to 16.
13910 * config/gcn/gcn.opt (PROCESSOR_VEGA): Remove enum.
13911 (PROCESSOR_VEGA10): New enum value.
13912 (PROCESSOR_VEGA20): New enum value.
13913
13914 2020-06-17 Martin Liska <mliska@suse.cz>
13915
13916 * gcov-dump.c (print_version): Collapse lisence header to 2 lines
13917 in --version.
13918 * gcov-tool.c (print_version): Likewise.
13919 * gcov.c (print_version): Likewise.
13920
13921 2020-06-17 liuhongt <hongtao.liu@intel.com>
13922
13923 PR target/95524
13924 * config/i386/i386-expand.c
13925 (ix86_expand_vec_shift_qihi_constant): New function.
13926 * config/i386/i386-protos.h
13927 (ix86_expand_vec_shift_qihi_constant): Declare.
13928 * config/i386/sse.md (<shift_insn><mode>3): Optimize shift
13929 V*QImode by constant.
13930
13931 2020-06-16 Aldy Hernandez <aldyh@redhat.com>
13932
13933 PR tree-optimization/95649
13934 * tree-ssa-propagate.c (propagate_into_phi_args): Do not propagate unless
13935 value is a constant.
13936
13937 2020-06-16 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
13938
13939 * config.in: Regenerate.
13940 * config/s390/s390.c (print_operand): Emit vector alignment hints
13941 for target z13, if AS accepts them. For other targets the logic
13942 stays the same.
13943 * config/s390/s390.h (TARGET_VECTOR_LOADSTORE_ALIGNMENT_HINTS): Define
13944 macro.
13945 * configure: Regenerate.
13946 * configure.ac: Check HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13.
13947
13948 2020-06-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13949
13950 * config/arm/arm_mve.h (__arm_vaddq_m_n_s8): Correct the intrinsic
13951 arguments.
13952 (__arm_vaddq_m_n_s32): Likewise.
13953 (__arm_vaddq_m_n_s16): Likewise.
13954 (__arm_vaddq_m_n_u8): Likewise.
13955 (__arm_vaddq_m_n_u32): Likewise.
13956 (__arm_vaddq_m_n_u16): Likewise.
13957 (__arm_vaddq_m): Modify polymorphic variant.
13958
13959 2020-06-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
13960
13961 * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Correct the predicate
13962 and constraint of all the operands.
13963 (mve_sqrshrl_sat<supf>_di): Likewise.
13964 (mve_uqrshl_si): Likewise.
13965 (mve_sqrshr_si): Likewise.
13966 (mve_uqshll_di): Likewise.
13967 (mve_urshrl_di): Likewise.
13968 (mve_uqshl_si): Likewise.
13969 (mve_urshr_si): Likewise.
13970 (mve_sqshl_si): Likewise.
13971 (mve_srshr_si): Likewise.
13972 (mve_srshrl_di): Likewise.
13973 (mve_sqshll_di): Likewise.
13974 * config/arm/predicates.md (arm_low_register_operand): Define.
13975
13976 2020-06-16 Jakub Jelinek <jakub@redhat.com>
13977
13978 * tree.h (OMP_FOR_NON_RECTANGULAR): Define.
13979 * gimplify.c (gimplify_omp_for): Diagnose schedule, ordered
13980 or dist_schedule clause on non-rectangular loops. Handle
13981 gimplification of non-rectangular lb/b expressions. When changing
13982 iteration variable, adjust also non-rectangular lb/b expressions
13983 referencing that.
13984 * omp-general.h (struct omp_for_data_loop): Add m1, m2 and outer
13985 members.
13986 (struct omp_for_data): Add non_rect member.
13987 * omp-general.c (omp_extract_for_data): Handle non-rectangular
13988 loops. Fill in non_rect, m1, m2 and outer.
13989 * omp-low.c (lower_omp_for): Handle non-rectangular lb/b expressions.
13990 * omp-expand.c (expand_omp_for): Emit sorry_at for unsupported
13991 non-rectangular loop cases and assert for cases that can't be
13992 non-rectangular.
13993 * tree-pretty-print.c (dump_mem_ref): Formatting fix.
13994 (dump_omp_loop_non_rect_expr): New function.
13995 (dump_generic_node): Handle non-rectangular OpenMP loops.
13996 * tree-pretty-print.h (dump_omp_loop_non_rect_expr): Declare.
13997 * gimple-pretty-print.c (dump_gimple_omp_for): Handle non-rectangular
13998 OpenMP loops.
13999
14000 2020-06-16 Richard Biener <rguenther@suse.de>
14001
14002 PR middle-end/95690
14003 * varasm.c (build_constant_desc): Remove set_mem_attributes call.
14004
14005 2020-06-16 Kito Cheng <kito.cheng@sifive.com>
14006
14007 PR target/95683
14008 * config/riscv/riscv.c (riscv_gpr_save_operation_p): Remove
14009 assertion and turn it into a early exit check.
14010
14011 2020-06-15 Eric Botcazou <ebotcazou@adacore.com>
14012
14013 * gimplify.c (gimplify_init_constructor) <AGGREGATE_TYPE>: Declare
14014 new ENSURE_SINGLE_ACCESS constant and move variables down. If it is
14015 true and all elements are zero, then always clear. Return GS_ERROR
14016 if a temporary would be created for it and NOTIFY_TEMP_CREATION set.
14017 (gimplify_modify_expr_rhs) <VAR_DECL>: If the target is volatile but
14018 the type is aggregate non-addressable, ask gimplify_init_constructor
14019 whether it can generate a single access to the target.
14020
14021 2020-06-15 Eric Botcazou <ebotcazou@adacore.com>
14022
14023 * tree-sra.c (propagate_subaccesses_from_rhs): When a non-scalar
14024 access on the LHS is replaced with a scalar access, propagate the
14025 TYPE_REVERSE_STORAGE_ORDER flag of the type of the original access.
14026
14027 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
14028
14029 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Remove
14030 TARGET_THREADPTR reference.
14031 (xtensa_tls_symbol_p, xtensa_tls_referenced_p): Use
14032 targetm.have_tls instead of TARGET_HAVE_TLS.
14033 (xtensa_option_override): Set targetm.have_tls to false in
14034 configurations without THREADPTR.
14035
14036 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
14037
14038 * config/xtensa/elf.h (ASM_SPEC, LINK_SPEC): Pass ABI switch to
14039 assembler/linker.
14040 * config/xtensa/linux.h (ASM_SPEC, LINK_SPEC): Ditto.
14041 * config/xtensa/uclinux.h (ASM_SPEC, LINK_SPEC): Ditto.
14042 * config/xtensa/xtensa.c (xtensa_option_override): Initialize
14043 xtensa_windowed_abi if needed.
14044 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI_DEFAULT): New
14045 macro.
14046 (TARGET_WINDOWED_ABI): Redefine to xtensa_windowed_abi.
14047 * config/xtensa/xtensa.opt (xtensa_windowed_abi): New target
14048 option variable.
14049 (mabi=call0, mabi=windowed): New options.
14050 * doc/invoke.texi: Document new -mabi= Xtensa-specific options.
14051
14052 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
14053
14054 * config/xtensa/xtensa.c (xtensa_can_eliminate): New function.
14055 (TARGET_CAN_ELIMINATE): New macro.
14056 * config/xtensa/xtensa.h
14057 (XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM)
14058 (XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM): New macros.
14059 (HARD_FRAME_POINTER_REGNUM): Define using
14060 XTENSA_*_HARD_FRAME_POINTER_REGNUM.
14061 (ELIMINABLE_REGS): Replace lines with HARD_FRAME_POINTER_REGNUM
14062 by lines with XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM and
14063 XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM.
14064
14065 2020-06-15 Felix Yang <felix.yang@huawei.com>
14066
14067 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Rename
14068 parameter to loop_vinfo and update uses. Use LOOP_VINFO_DATAREFS
14069 when possible.
14070 (vect_analyze_data_refs_alignment): Likewise, and use LOOP_VINFO_DDRS
14071 when possible.
14072 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Use
14073 LOOP_VINFO_DATAREFS when possible.
14074 (update_epilogue_loop_vinfo): Likewise.
14075
14076 2020-06-15 Kito Cheng <kito.cheng@sifive.com>
14077
14078 * config/riscv/riscv.c (riscv_gen_gpr_save_insn): Change type to
14079 unsigned for i.
14080 (riscv_gpr_save_operation_p): Change type to unsigned for i and
14081 len.
14082
14083 2020-06-15 Hongtao Liu <hongtao.liu@intel.com>
14084
14085 PR target/95488
14086 * config/i386/i386-expand.c (ix86_expand_vecmul_qihi): New
14087 function.
14088 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Declare.
14089 * config/i386/sse.md (mul<mode>3): Drop mask_name since
14090 there's no real simd int8 multiplication instruction with
14091 mask. Also optimize it under TARGET_AVX512BW.
14092 (mulv8qi3): New expander.
14093
14094 2020-06-12 Marco Elver <elver@google.com>
14095
14096 * gimplify.c (gimplify_function_tree): Optimize and do not emit
14097 IFN_TSAN_FUNC_EXIT in a finally block if we do not need it.
14098 * params.opt: Add --param=tsan-instrument-func-entry-exit=.
14099 * tsan.c (instrument_memory_accesses): Make
14100 fentry_exit_instrument bool depend on new param.
14101
14102 2020-06-12 Felix Yang <felix.yang@huawei.com>
14103
14104 PR tree-optimization/95570
14105 * tree-vect-data-refs.c (vect_relevant_for_alignment_p): New function.
14106 (vect_verify_datarefs_alignment): Call it to filter out data references
14107 in the loop whose alignment is irrelevant.
14108 (vect_get_peeling_costs_all_drs): Likewise.
14109 (vect_peeling_supportable): Likewise.
14110 (vect_enhance_data_refs_alignment): Likewise.
14111
14112 2020-06-12 Richard Biener <rguenther@suse.de>
14113
14114 PR tree-optimization/95633
14115 * tree-vect-stmts.c (vectorizable_condition): Properly
14116 guard the vec_else_clause access with EXTRACT_LAST_REDUCTION.
14117
14118 2020-06-12 Martin Liška <mliska@suse.cz>
14119
14120 * cgraphunit.c (process_symver_attribute): Wrap weakref keyword.
14121 * dbgcnt.c (dbg_cnt_set_limit_by_index): Do not print extra new
14122 line.
14123 * lto-wrapper.c (merge_and_complain): Wrap option names.
14124
14125 2020-06-12 Kewen Lin <linkw@gcc.gnu.org>
14126
14127 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Rename
14128 LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE. Rename
14129 LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
14130 (vect_set_loop_condition_masked): Renamed to ...
14131 (vect_set_loop_condition_partial_vectors): ... this. Rename
14132 LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE. Rename
14133 vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
14134 (vect_set_loop_condition_unmasked): Renamed to ...
14135 (vect_set_loop_condition_normal): ... this.
14136 (vect_set_loop_condition): Rename vect_set_loop_condition_unmasked to
14137 vect_set_loop_condition_normal. Rename vect_set_loop_condition_masked
14138 to vect_set_loop_condition_partial_vectors.
14139 (vect_prepare_for_masked_peels): Rename LOOP_VINFO_MASK_COMPARE_TYPE
14140 to LOOP_VINFO_RGROUP_COMPARE_TYPE.
14141 * tree-vect-loop.c (vect_known_niters_smaller_than_vf): New, factored
14142 out from ...
14143 (vect_analyze_loop_costing): ... this.
14144 (_loop_vec_info::_loop_vec_info): Rename mask_compare_type to
14145 compare_type.
14146 (vect_min_prec_for_max_niters): New, factored out from ...
14147 (vect_verify_full_masking): ... this. Rename
14148 vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
14149 Rename LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE.
14150 Rename LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
14151 (vectorizable_reduction): Update some dumpings with partial
14152 vectors instead of fully-masked.
14153 (vectorizable_live_operation): Likewise.
14154 (vect_iv_limit_for_full_masking): Renamed to ...
14155 (vect_iv_limit_for_partial_vectors): ... this.
14156 * tree-vect-stmts.c (check_load_store_masking): Renamed to ...
14157 (check_load_store_for_partial_vectors): ... this. Update some
14158 dumpings with partial vectors instead of fully-masked.
14159 (vectorizable_store): Rename check_load_store_masking to
14160 check_load_store_for_partial_vectors.
14161 (vectorizable_load): Likewise.
14162 * tree-vectorizer.h (LOOP_VINFO_MASK_COMPARE_TYPE): Renamed to ...
14163 (LOOP_VINFO_RGROUP_COMPARE_TYPE): ... this.
14164 (LOOP_VINFO_MASK_IV_TYPE): Renamed to ...
14165 (LOOP_VINFO_RGROUP_IV_TYPE): ... this.
14166 (vect_iv_limit_for_full_masking): Renamed to ...
14167 (vect_iv_limit_for_partial_vectors): this.
14168 (_loop_vec_info): Rename mask_compare_type to rgroup_compare_type.
14169 Rename iv_type to rgroup_iv_type.
14170
14171 2020-06-12 Richard Sandiford <richard.sandiford@arm.com>
14172
14173 * recog.h (insn_gen_fn::f0, insn_gen_fn::f1, insn_gen_fn::f2)
14174 (insn_gen_fn::f3, insn_gen_fn::f4, insn_gen_fn::f5, insn_gen_fn::f6)
14175 (insn_gen_fn::f7, insn_gen_fn::f8, insn_gen_fn::f9, insn_gen_fn::f10)
14176 (insn_gen_fn::f11, insn_gen_fn::f12, insn_gen_fn::f13)
14177 (insn_gen_fn::f14, insn_gen_fn::f15, insn_gen_fn::f16): Delete.
14178 (insn_gen_fn::operator()): Replace overloaded definitions with
14179 a parameter-pack version.
14180
14181 2020-06-12 H.J. Lu <hjl.tools@gmail.com>
14182
14183 PR target/93492
14184 * config/i386/i386-features.c (rest_of_insert_endbranch):
14185 Renamed to ...
14186 (rest_of_insert_endbr_and_patchable_area): Change return type
14187 to void. Add need_endbr and patchable_area_size arguments.
14188 Don't call timevar_push nor timevar_pop. Replace
14189 endbr_queued_at_entrance with insn_queued_at_entrance. Insert
14190 UNSPECV_PATCHABLE_AREA for patchable area.
14191 (pass_data_insert_endbranch): Renamed to ...
14192 (pass_data_insert_endbr_and_patchable_area): This. Change
14193 pass name to endbr_and_patchable_area.
14194 (pass_insert_endbranch): Renamed to ...
14195 (pass_insert_endbr_and_patchable_area): This. Add need_endbr
14196 and patchable_area_size;.
14197 (pass_insert_endbr_and_patchable_area::gate): Set and check
14198 need_endbr and patchable_area_size.
14199 (pass_insert_endbr_and_patchable_area::execute): Call
14200 timevar_push and timevar_pop. Pass need_endbr and
14201 patchable_area_size to rest_of_insert_endbr_and_patchable_area.
14202 (make_pass_insert_endbranch): Renamed to ...
14203 (make_pass_insert_endbr_and_patchable_area): This.
14204 * config/i386/i386-passes.def: Replace pass_insert_endbranch
14205 with pass_insert_endbr_and_patchable_area.
14206 * config/i386/i386-protos.h (ix86_output_patchable_area): New.
14207 (make_pass_insert_endbranch): Renamed to ...
14208 (make_pass_insert_endbr_and_patchable_area): This.
14209 * config/i386/i386.c (ix86_asm_output_function_label): Set
14210 function_label_emitted to true.
14211 (ix86_print_patchable_function_entry): New function.
14212 (ix86_output_patchable_area): Likewise.
14213 (x86_function_profiler): Replace endbr_queued_at_entrance with
14214 insn_queued_at_entrance. Generate ENDBR only for TYPE_ENDBR.
14215 Call ix86_output_patchable_area to generate patchable area if
14216 needed.
14217 (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): New.
14218 * config/i386/i386.h (queued_insn_type): New.
14219 (machine_function): Add function_label_emitted. Replace
14220 endbr_queued_at_entrance with insn_queued_at_entrance.
14221 * config/i386/i386.md (UNSPECV_PATCHABLE_AREA): New.
14222 (patchable_area): New.
14223
14224 2020-06-11 Martin Liska <mliska@suse.cz>
14225
14226 * config/rs6000/rs6000.c (rs6000_density_test): Fix GNU coding
14227 style.
14228
14229 2020-06-11 Martin Liska <mliska@suse.cz>
14230
14231 PR target/95627
14232 * config/rs6000/rs6000.c (rs6000_density_test): Skip debug
14233 statements.
14234
14235 2020-06-11 Martin Liska <mliska@suse.cz>
14236 Jakub Jelinek <jakub@redhat.com>
14237
14238 PR sanitizer/95634
14239 * asan.c (asan_emit_stack_protection): Fix emission for ilp32
14240 by using Pmode instead of ptr_mode.
14241
14242 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
14243
14244 * tree-vect-loop-manip.c (vect_set_loop_mask): Renamed to ...
14245 (vect_set_loop_control): ... this.
14246 (vect_maybe_permute_loop_masks): Rename rgroup_masks related things.
14247 (vect_set_loop_masks_directly): Renamed to ...
14248 (vect_set_loop_controls_directly): ... this. Also rename some
14249 variables with ctrl instead of mask. Rename vect_set_loop_mask to
14250 vect_set_loop_control.
14251 (vect_set_loop_condition_masked): Rename rgroup_masks related things.
14252 Also rename some variables with ctrl instead of mask.
14253 * tree-vect-loop.c (release_vec_loop_masks): Renamed to ...
14254 (release_vec_loop_controls): ... this. Rename rgroup_masks related
14255 things.
14256 (_loop_vec_info::~_loop_vec_info): Rename release_vec_loop_masks to
14257 release_vec_loop_controls.
14258 (can_produce_all_loop_masks_p): Rename rgroup_masks related things.
14259 (vect_get_max_nscalars_per_iter): Likewise.
14260 (vect_estimate_min_profitable_iters): Likewise.
14261 (vect_record_loop_mask): Likewise.
14262 (vect_get_loop_mask): Likewise.
14263 * tree-vectorizer.h (struct rgroup_masks): Renamed to ...
14264 (struct rgroup_controls): ... this. Also rename mask_type
14265 to type and rename masks to controls.
14266
14267 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
14268
14269 * tree-vect-loop-manip.c (vect_set_loop_condition): Rename
14270 LOOP_VINFO_FULLY_MASKED_P to LOOP_VINFO_USING_PARTIAL_VECTORS_P.
14271 (vect_gen_vector_loop_niters): Likewise.
14272 (vect_do_peeling): Likewise.
14273 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
14274 fully_masked_p to using_partial_vectors_p.
14275 (vect_analyze_loop_costing): Rename LOOP_VINFO_FULLY_MASKED_P to
14276 LOOP_VINFO_USING_PARTIAL_VECTORS_P.
14277 (determine_peel_for_niter): Likewise.
14278 (vect_estimate_min_profitable_iters): Likewise.
14279 (vect_transform_loop): Likewise.
14280 * tree-vectorizer.h (LOOP_VINFO_FULLY_MASKED_P): Updated.
14281 (LOOP_VINFO_USING_PARTIAL_VECTORS_P): New macro.
14282
14283 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
14284
14285 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
14286 can_fully_mask_p to can_use_partial_vectors_p.
14287 (vect_analyze_loop_2): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
14288 LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P. Rename saved_can_fully_mask_p
14289 to saved_can_use_partial_vectors_p.
14290 (vectorizable_reduction): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
14291 LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P.
14292 (vectorizable_live_operation): Likewise.
14293 * tree-vect-stmts.c (permute_vec_elements): Likewise.
14294 (check_load_store_masking): Likewise.
14295 (vectorizable_operation): Likewise.
14296 (vectorizable_store): Likewise.
14297 (vectorizable_load): Likewise.
14298 (vectorizable_condition): Likewise.
14299 * tree-vectorizer.h (LOOP_VINFO_CAN_FULLY_MASK_P): Renamed to ...
14300 (LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P): ... this.
14301 (_loop_vec_info): Rename can_fully_mask_p to can_use_partial_vectors_p.
14302
14303 2020-06-11 Martin Liska <mliska@suse.cz>
14304
14305 * optc-save-gen.awk: Quote error string.
14306
14307 2020-06-11 Alexandre Oliva <oliva@adacore.com>
14308
14309 * print-rtl.c (print_mem_expr): Enable TDF_SLIM in dump_flags.
14310
14311 2020-06-11 Kito Cheng <kito.cheng@sifive.com>
14312
14313 * config/riscv/riscv-protos.h (riscv_output_gpr_save): Remove.
14314 * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Update
14315 value.
14316 * config/riscv/riscv.c (riscv_output_gpr_save): Remove.
14317 * config/riscv/riscv.md (gpr_save): Update output asm pattern.
14318
14319 2020-06-11 Kito Cheng <kito.cheng@sifive.com>
14320
14321 * config/riscv/predicates.md (gpr_save_operation): New.
14322 * config/riscv/riscv-protos.h (riscv_gen_gpr_save_insn): New.
14323 (riscv_gpr_save_operation_p): Ditto.
14324 * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
14325 Ignore USEs for gpr_save patter.
14326 * config/riscv/riscv.c (gpr_save_reg_order): New.
14327 (riscv_expand_prologue): Use riscv_gen_gpr_save_insn to gen gpr_save.
14328 (riscv_gen_gpr_save_insn): New.
14329 (riscv_gpr_save_operation_p): Ditto.
14330 * config/riscv/riscv.md (S3_REGNUM): New.
14331 (S4_REGNUM): Ditto.
14332 (S5_REGNUM): Ditto.
14333 (S6_REGNUM): Ditto.
14334 (S7_REGNUM): Ditto.
14335 (S8_REGNUM): Ditto.
14336 (S9_REGNUM): Ditto.
14337 (S10_REGNUM): Ditto.
14338 (S11_REGNUM): Ditto.
14339 (gpr_save): Model USEs correctly.
14340
14341 2020-06-10 Martin Sebor <msebor@redhat.com>
14342
14343 PR middle-end/95353
14344 PR middle-end/92939
14345 * builtins.c (inform_access): New function.
14346 (check_access): Call it. Add argument.
14347 (addr_decl_size): Remove.
14348 (get_range): New function.
14349 (compute_objsize): New overload. Only use compute_builtin_object_size
14350 with raw memory function.
14351 (check_memop_access): Pass new argument to compute_objsize and
14352 check_access.
14353 (expand_builtin_memchr, expand_builtin_strcat): Same.
14354 (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
14355 (expand_builtin_stpncpy, check_strncat_sizes): Same.
14356 (expand_builtin_strncat, expand_builtin_strncpy): Same.
14357 (expand_builtin_memcmp): Same.
14358 * builtins.h (check_nul_terminated_array): Declare extern.
14359 (check_access): Add argument.
14360 (struct access_ref, struct access_data): New structs.
14361 * gimple-ssa-warn-restrict.c (clamp_offset): New helper.
14362 (builtin_access::overlap): Call it.
14363 * tree-object-size.c (decl_init_size): Declare extern.
14364 (addr_object_size): Correct offset computation.
14365 * tree-object-size.h (decl_init_size): Declare.
14366 * tree-ssa-strlen.c (handle_integral_assign): Remove a call
14367 to maybe_warn_overflow when assigning to an SSA_NAME.
14368
14369 2020-06-10 Richard Biener <rguenther@suse.de>
14370
14371 * tree-vect-loop.c (vect_determine_vectorization_factor):
14372 Skip debug stmts.
14373 (_loop_vec_info::_loop_vec_info): Likewise.
14374 (vect_update_vf_for_slp): Likewise.
14375 (vect_analyze_loop_operations): Likewise.
14376 (update_epilogue_loop_vinfo): Likewise.
14377 * tree-vect-patterns.c (vect_determine_precisions): Likewise.
14378 (vect_pattern_recog): Likewise.
14379 * tree-vect-slp.c (vect_detect_hybrid_slp): Likewise.
14380 (_bb_vec_info::_bb_vec_info): Likewise.
14381 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized):
14382 Likewise.
14383
14384 2020-06-10 Richard Biener <rguenther@suse.de>
14385
14386 PR tree-optimization/95576
14387 * tree-vect-slp.c (vect_slp_bb): Skip leading debug stmts.
14388
14389 2020-06-10 Haijian Zhang <z.zhanghaijian@huawei.com>
14390
14391 PR target/95523
14392 * config/aarch64/aarch64-sve-builtins.h
14393 (sve_switcher::m_old_maximum_field_alignment): New member.
14394 * config/aarch64/aarch64-sve-builtins.cc
14395 (sve_switcher::sve_switcher): Save maximum_field_alignment in
14396 m_old_maximum_field_alignment and clear maximum_field_alignment.
14397 (sve_switcher::~sve_switcher): Restore maximum_field_alignment.
14398
14399 2020-06-10 Richard Biener <rguenther@suse.de>
14400
14401 * tree-vectorizer.h (_slp_tree::vec_stmts): Make it a vector
14402 of gimple * stmts.
14403 (_stmt_vec_info::vec_stmts): Likewise.
14404 (vec_info::stmt_vec_info_ro): New flag.
14405 (vect_finish_replace_stmt): Adjust declaration.
14406 (vect_finish_stmt_generation): Likewise.
14407 (vectorizable_induction): Likewise.
14408 (vect_transform_reduction): Likewise.
14409 (vectorizable_lc_phi): Likewise.
14410 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Do not
14411 allocate stmt infos for increments.
14412 (vect_record_grouped_load_vectors): Adjust.
14413 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
14414 (vectorize_fold_left_reduction): Likewise.
14415 (vect_transform_reduction): Likewise.
14416 (vect_transform_cycle_phi): Likewise.
14417 (vectorizable_lc_phi): Likewise.
14418 (vectorizable_induction): Likewise.
14419 (vectorizable_live_operation): Likewise.
14420 (vect_transform_loop): Likewise.
14421 * tree-vect-patterns.c (vect_pattern_recog): Set stmt_vec_info_ro.
14422 * tree-vect-slp.c (vect_get_slp_vect_def): Adjust.
14423 (vect_get_slp_defs): Likewise.
14424 (vect_transform_slp_perm_load): Likewise.
14425 (vect_schedule_slp_instance): Likewise.
14426 (vectorize_slp_instance_root_stmt): Likewise.
14427 * tree-vect-stmts.c (vect_get_vec_defs_for_operand): Likewise.
14428 (vect_finish_stmt_generation_1): Do not allocate a stmt info.
14429 (vect_finish_replace_stmt): Do not return anything.
14430 (vect_finish_stmt_generation): Likewise.
14431 (vect_build_gather_load_calls): Adjust.
14432 (vectorizable_bswap): Likewise.
14433 (vectorizable_call): Likewise.
14434 (vectorizable_simd_clone_call): Likewise.
14435 (vect_create_vectorized_demotion_stmts): Likewise.
14436 (vectorizable_conversion): Likewise.
14437 (vectorizable_assignment): Likewise.
14438 (vectorizable_shift): Likewise.
14439 (vectorizable_operation): Likewise.
14440 (vectorizable_scan_store): Likewise.
14441 (vectorizable_store): Likewise.
14442 (vectorizable_load): Likewise.
14443 (vectorizable_condition): Likewise.
14444 (vectorizable_comparison): Likewise.
14445 (vect_transform_stmt): Likewise.
14446 * tree-vectorizer.c (vec_info::vec_info): Initialize
14447 stmt_vec_info_ro.
14448 (vec_info::replace_stmt): Copy over stmt UID rather than
14449 unsetting/setting a stmt info allocating a new UID.
14450 (vec_info::set_vinfo_for_stmt): Assert !stmt_vec_info_ro.
14451
14452 2020-06-10 Aldy Hernandez <aldyh@redhat.com>
14453
14454 * gimple-loop-versioning.cc (loop_versioning::name_prop::get_value):
14455 Add stmt parameter.
14456 * gimple-ssa-evrp.c (class evrp_folder): New.
14457 (class evrp_dom_walker): Remove.
14458 (execute_early_vrp): Use evrp_folder instead of evrp_dom_walker.
14459 * tree-ssa-ccp.c (ccp_folder::get_value): Add stmt parameter.
14460 * tree-ssa-copy.c (copy_folder::get_value): Same.
14461 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
14462 Pass stmt to get_value.
14463 (substitute_and_fold_engine::replace_phi_args_in): Same.
14464 (substitute_and_fold_dom_walker::after_dom_children): Call
14465 post_fold_bb.
14466 (substitute_and_fold_dom_walker::foreach_new_stmt_in_bb): New.
14467 (substitute_and_fold_dom_walker::propagate_into_phi_args): New.
14468 (substitute_and_fold_dom_walker::before_dom_children): Adjust to
14469 call virtual functions for folding, pre_folding, and post folding.
14470 Call get_value with PHI. Tweak dump.
14471 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14472 New argument to get_value.
14473 New virtual function pre_fold_bb.
14474 New virtual function post_fold_bb.
14475 New virtual function pre_fold_stmt.
14476 New virtual function post_new_stmt.
14477 New function propagate_into_phi_args.
14478 * tree-vrp.c (vrp_folder::get_value): Add stmt argument.
14479 * vr-values.c (vr_values::extract_range_from_stmt): Adjust dump
14480 output.
14481 (vr_values::fold_cond): New.
14482 (vr_values::simplify_cond_using_ranges_1): Call fold_cond.
14483 * vr-values.h (class vr_values): Add
14484 simplify_cond_using_ranges_when_edge_is_known.
14485
14486 2020-06-10 Martin Liska <mliska@suse.cz>
14487
14488 PR sanitizer/94910
14489 * asan.c (asan_emit_stack_protection): Emit
14490 also **SavedFlagPtr(FakeStack, class_id) = 0 in order to release
14491 a stack frame.
14492
14493 2020-06-10 Tamar Christina <tamar.christina@arm.com>
14494
14495 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Adjust costs for mul.
14496
14497 2020-06-10 Richard Biener <rguenther@suse.de>
14498
14499 * tree-vect-data-refs.c (vect_vfa_access_size): Adjust.
14500 (vect_record_grouped_load_vectors): Likewise.
14501 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
14502 (vectorize_fold_left_reduction): Likewise.
14503 (vect_transform_reduction): Likewise.
14504 (vect_transform_cycle_phi): Likewise.
14505 (vectorizable_lc_phi): Likewise.
14506 (vectorizable_induction): Likewise.
14507 (vectorizable_live_operation): Likewise.
14508 (vect_transform_loop): Likewise.
14509 * tree-vect-slp.c (vect_get_slp_defs): New function, split out
14510 from overload.
14511 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Remove.
14512 (vect_get_vec_def_for_operand): Likewise.
14513 (vect_get_vec_def_for_stmt_copy): Likewise.
14514 (vect_get_vec_defs_for_stmt_copy): Likewise.
14515 (vect_get_vec_defs_for_operand): New function.
14516 (vect_get_vec_defs): Likewise.
14517 (vect_build_gather_load_calls): Adjust.
14518 (vect_get_gather_scatter_ops): Likewise.
14519 (vectorizable_bswap): Likewise.
14520 (vectorizable_call): Likewise.
14521 (vectorizable_simd_clone_call): Likewise.
14522 (vect_get_loop_based_defs): Remove.
14523 (vect_create_vectorized_demotion_stmts): Adjust.
14524 (vectorizable_conversion): Likewise.
14525 (vectorizable_assignment): Likewise.
14526 (vectorizable_shift): Likewise.
14527 (vectorizable_operation): Likewise.
14528 (vectorizable_scan_store): Likewise.
14529 (vectorizable_store): Likewise.
14530 (vectorizable_load): Likewise.
14531 (vectorizable_condition): Likewise.
14532 (vectorizable_comparison): Likewise.
14533 (vect_transform_stmt): Adjust and remove no longer applicable
14534 sanity checks.
14535 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
14536 STMT_VINFO_VEC_STMTS.
14537 (vec_info::free_stmt_vec_info): Relase it.
14538 * tree-vectorizer.h (_stmt_vec_info::vectorized_stmt): Remove.
14539 (_stmt_vec_info::vec_stmts): Add.
14540 (STMT_VINFO_VEC_STMT): Remove.
14541 (STMT_VINFO_VEC_STMTS): New.
14542 (vect_get_vec_def_for_operand_1): Remove.
14543 (vect_get_vec_def_for_operand): Likewise.
14544 (vect_get_vec_defs_for_stmt_copy): Likewise.
14545 (vect_get_vec_def_for_stmt_copy): Likewise.
14546 (vect_get_vec_defs): New overloads.
14547 (vect_get_vec_defs_for_operand): New.
14548 (vect_get_slp_defs): Declare.
14549
14550 2020-06-10 Qian Chao <qianchao9@huawei.com>
14551
14552 PR tree-optimization/95569
14553 * trans-mem.c (expand_assign_tm): Ensure that rtmp is marked TREE_ADDRESSABLE.
14554
14555 2020-06-10 Martin Liska <mliska@suse.cz>
14556
14557 PR tree-optimization/92860
14558 * optc-save-gen.awk: Generate new function cl_optimization_compare.
14559 * opth-gen.awk: Generate declaration of the function.
14560
14561 2020-06-09 Michael Meissner <meissner@linux.ibm.com>
14562
14563 * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
14564 'future' PowerPC platform.
14565 (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
14566 (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
14567 * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
14568 MMA HWCAP2 bits.
14569 * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
14570 (rs6000_clone_map): Add 'future' system target_clones support.
14571
14572 2020-06-09 Michael Kuhn <gcc@ikkoku.de>
14573
14574 * Makefile.in (ZSTD_INC): Define.
14575 (ZSTD_LIB): Include ZSTD_LDFLAGS.
14576 (CFLAGS-lto-compress.o): Add ZSTD_INC.
14577 * configure.ac (ZSTD_CPPFLAGS, ZSTD_LDFLAGS): New variables for
14578 AC_SUBST.
14579 * configure: Rebuilt.
14580
14581 2020-06-09 Jason Merrill <jason@redhat.com>
14582
14583 PR c++/95552
14584 * tree.c (walk_tree_1): Call func on the TYPE_DECL of a DECL_EXPR.
14585
14586 2020-06-09 Marco Elver <elver@google.com>
14587
14588 * params.opt: Define --param=tsan-distinguish-volatile=[0,1].
14589 * sanitizer.def (BUILT_IN_TSAN_VOLATILE_READ1): Define new
14590 builtin for volatile instrumentation of reads/writes.
14591 (BUILT_IN_TSAN_VOLATILE_READ2): Likewise.
14592 (BUILT_IN_TSAN_VOLATILE_READ4): Likewise.
14593 (BUILT_IN_TSAN_VOLATILE_READ8): Likewise.
14594 (BUILT_IN_TSAN_VOLATILE_READ16): Likewise.
14595 (BUILT_IN_TSAN_VOLATILE_WRITE1): Likewise.
14596 (BUILT_IN_TSAN_VOLATILE_WRITE2): Likewise.
14597 (BUILT_IN_TSAN_VOLATILE_WRITE4): Likewise.
14598 (BUILT_IN_TSAN_VOLATILE_WRITE8): Likewise.
14599 (BUILT_IN_TSAN_VOLATILE_WRITE16): Likewise.
14600 * tsan.c (get_memory_access_decl): Argument if access is
14601 volatile. If param tsan-distinguish-volatile is non-zero, and
14602 access if volatile, return volatile instrumentation decl.
14603 (instrument_expr): Check if access is volatile.
14604
14605 2020-06-09 Richard Biener <rguenther@suse.de>
14606
14607 * tree-vect-loop.c (vectorizable_induction): Remove dead code.
14608
14609 2020-06-09 Tobias Burnus <tobias@codesourcery.com>
14610
14611 * omp-offload.c (add_decls_addresses_to_decl_constructor,
14612 omp_finish_file): With in_lto_p, stream out all offload-table
14613 items even if the symtab_node does not exist.
14614
14615 2020-06-09 Richard Biener <rguenther@suse.de>
14616
14617 * tree-vect-stmts.c (vect_transform_stmt): Remove dead code.
14618
14619 2020-06-09 Martin Liska <mliska@suse.cz>
14620
14621 * gcov-dump.c (print_usage): Fix spacing for --raw option
14622 in --help.
14623
14624 2020-06-09 Martin Liska <mliska@suse.cz>
14625
14626 * cif-code.def (ATTRIBUTE_MISMATCH): Rename to...
14627 (SANITIZE_ATTRIBUTE_MISMATCH): ...this.
14628 * ipa-inline.c (sanitize_attrs_match_for_inline_p):
14629 Handle all sanitizer options.
14630 (can_inline_edge_p): Use renamed CIF_* enum value.
14631
14632 2020-06-09 Joe Ramsay <joe.ramsay@arm.com>
14633
14634 * config/aarch64/aarch64-sve.md (<optab><mode>2): Add support for
14635 unpacked vectors.
14636 (@aarch64_pred_<optab><mode>): Add support for unpacked vectors.
14637 (@aarch64_bic<mode>): Enable unpacked BIC.
14638 (*bic<mode>3): Enable unpacked BIC.
14639
14640 2020-06-09 Martin Liska <mliska@suse.cz>
14641
14642 PR gcov-profile/95365
14643 * doc/gcov.texi: Compile and link one example in 2 steps.
14644
14645 2020-06-09 Jakub Jelinek <jakub@redhat.com>
14646
14647 PR tree-optimization/95527
14648 * match.pd (__builtin_ffs (X) cmp CST): New optimizations.
14649
14650 2020-06-09 Michael Meissner <meissner@linux.ibm.com>
14651
14652 * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
14653 'future' PowerPC platform.
14654 (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
14655 (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
14656 * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
14657 MMA HWCAP2 bits.
14658 * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
14659 (rs6000_clone_map): Add 'future' system target_clones support.
14660
14661 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
14662
14663 PR lto/94848
14664 PR middle-end/95551
14665 * omp-offload.c (add_decls_addresses_to_decl_constructor,
14666 omp_finish_file): Skip removed items.
14667 * lto-cgraph.c (output_offload_tables): Likewise; set force_output
14668 to this node for variables and functions.
14669
14670 2020-06-08 Jason Merrill <jason@redhat.com>
14671
14672 * aclocal.m4: Remove ax_cxx_compile_stdcxx.m4.
14673 * configure.ac: Remove AX_CXX_COMPILE_STDCXX.
14674 * configure: Regenerate.
14675
14676 2020-06-08 Martin Sebor <msebor@redhat.com>
14677
14678 * postreload.c (reload_cse_simplify_operands): Clear first array element
14679 before using it. Assert a precondition.
14680
14681 2020-06-08 Jakub Jelinek <jakub@redhat.com>
14682
14683 PR target/95528
14684 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't use
14685 VEC_UNPACK*_EXPR or VEC_PACK_TRUNC_EXPR with scalar modes unless the
14686 type is vector boolean.
14687
14688 2020-06-08 Tamar Christina <tamar.christina@arm.com>
14689
14690 * config/aarch64/aarch64.c (aarch64_layout_frame): Expand comments.
14691
14692 2020-06-08 Christophe Lyon <christophe.lyon@linaro.org>
14693
14694 * config/arm/predicates.md (vfp_register_operand): Use VFP_HI_REGS
14695 instead of VFP_REGS.
14696
14697 2020-06-08 Martin Liska <mliska@suse.cz>
14698
14699 * config/rs6000/vector.md: Replace FAIL with gcc_unreachable
14700 in all vcond* patterns.
14701
14702 2020-06-08 Christophe Lyon <christophe.lyon@linaro.org>
14703
14704 * common/config/arm/arm-common.c (INCLUDE_ALGORITHM):
14705 Define. No longer include <algorithm>.
14706
14707 2020-06-07 Roger Sayle <roger@nextmovesoftware.com>
14708
14709 * config/i386/i386.md (paritydi2, paritysi2): Expand reduction
14710 via shift and xor to an USPEC PARITY matching a parityhi2_cmp.
14711 (paritydi2_cmp, paritysi2_cmp): Delete these define_insn_and_split.
14712 (parityhi2, parityqi2): New expanders.
14713 (parityhi2_cmp): Implement set parity flag with xorb insn.
14714 (parityqi2_cmp): Implement set parity flag with testb insn.
14715 New peephole2s to use these insns (UNSPEC PARITY) when appropriate.
14716
14717 2020-06-07 Jiufu Guo <guojiufu@linux.ibm.com>
14718
14719 PR target/95018
14720 * config/rs6000/rs6000.c (rs6000_option_override_internal):
14721 Override flag_cunroll_grow_size.
14722
14723 2020-06-07 Jiufu Guo <guojiufu@linux.ibm.com>
14724
14725 * common.opt (flag_cunroll_grow_size): New flag.
14726 * toplev.c (process_options): Set flag_cunroll_grow_size.
14727 * tree-ssa-loop-ivcanon.c (pass_complete_unroll::execute):
14728 Use flag_cunroll_grow_size.
14729
14730 2020-06-06 Jan Hubicka <hubicka@ucw.cz>
14731
14732 PR lto/95548
14733 * ipa-devirt.c (struct odr_enum_val): Turn values to wide_int.
14734 (ipa_odr_summary_write): Update streaming.
14735 (ipa_odr_read_section): Update streaming.
14736
14737 2020-06-06 Alexandre Oliva <oliva@adacore.com>
14738
14739 PR driver/95456
14740 * gcc.c (do_spec_1): Don't call memcpy (_, NULL, 0).
14741
14742 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
14743 Julian Brown <julian@codesourcery.com>
14744
14745 * gimplify.c (gimplify_adjust_omp_clauses): Remove
14746 'GOMP_MAP_STRUCT' mapping from OpenACC 'exit data' directives.
14747
14748 2020-06-05 Richard Biener <rguenther@suse.de>
14749
14750 PR tree-optimization/95539
14751 * tree-vect-data-refs.c
14752 (vect_slp_analyze_and_verify_instance_alignment): Use
14753 SLP_TREE_REPRESENTATIVE for the data-ref check.
14754 * tree-vect-stmts.c (vectorizable_load): Reset stmt_info
14755 back to the first scalar stmt rather than the
14756 SLP_TREE_REPRESENTATIVE to match previous behavior.
14757
14758 2020-06-05 Felix Yang <felix.yang@huawei.com>
14759
14760 PR target/95254
14761 * expr.c (emit_move_insn): Check src and dest of the copy to see
14762 if one or both of them are subregs, try to remove the subregs when
14763 innermode and outermode are equal in size and the mode change involves
14764 an implicit round trip through memory.
14765
14766 2020-06-05 Jakub Jelinek <jakub@redhat.com>
14767
14768 PR target/95535
14769 * config/i386/i386.md (*ctzsi2_zext, *clzsi2_lzcnt_zext): New
14770 define_insn_and_split patterns.
14771 (*ctzsi2_zext_falsedep, *clzsi2_lzcnt_zext_falsedep): New
14772 define_insn patterns.
14773
14774 2020-06-05 Jonathan Wakely <jwakely@redhat.com>
14775
14776 * alloc-pool.h (object_allocator::remove_raw): New.
14777 * tree-ssa-math-opts.c (struct occurrence): Use NSMDI.
14778 (occurrence::occurrence): Add.
14779 (occurrence::~occurrence): Likewise.
14780 (occurrence::new): Likewise.
14781 (occurrence::delete): Likewise.
14782 (occ_new): Remove.
14783 (insert_bb): Use new occurence (...) instead of occ_new.
14784 (register_division_in): Likewise.
14785 (free_bb): Use delete occ instead of manually removing
14786 from the pool.
14787
14788 2020-06-05 Richard Biener <rguenther@suse.de>
14789
14790 PR middle-end/95493
14791 * cfgexpand.c (expand_debug_expr): Avoid calling
14792 set_mem_attributes_minus_bitpos when we were expanding
14793 an SSA name.
14794 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
14795 ARRAY_REF special-casing, add CONSTRUCTOR to the set of
14796 special-cases we do not want MEM_EXPRs for. Assert
14797 we end up with reasonable MEM_EXPRs.
14798
14799 2020-06-05 Lili Cui <lili.cui@intel.com>
14800
14801 PR target/95525
14802 * config/i386/i386.h (PTA_WAITPKG): Change bitmask value.
14803
14804 2020-06-04 Martin Sebor <msebor@redhat.com>
14805
14806 PR middle-end/10138
14807 PR middle-end/95136
14808 * attribs.c (init_attr_rdwr_indices): Move function here.
14809 * attribs.h (rdwr_access_hash, rdwr_map): Define.
14810 (attr_access): Add 'none'.
14811 (init_attr_rdwr_indices): Declared function.
14812 * builtins.c (warn_for_access)): New function.
14813 (check_access): Call it.
14814 * builtins.h (checK-access): Add an optional argument.
14815 * calls.c (rdwr_access_hash, rdwr_map): Move to attribs.h.
14816 (init_attr_rdwr_indices): Declare extern.
14817 (append_attrname): Handle attr_access::none.
14818 (maybe_warn_rdwr_sizes): Same.
14819 (initialize_argument_information): Update comments.
14820 * doc/extend.texi (attribute access): Document 'none'.
14821 * tree-ssa-uninit.c (struct wlimits): New.
14822 (maybe_warn_operand): New function.
14823 (maybe_warn_pass_by_reference): Same.
14824 (warn_uninitialized_vars): Refactor code into maybe_warn_operand.
14825 Also call for function calls.
14826 (pass_late_warn_uninitialized::execute): Adjust comments.
14827 (execute_early_warn_uninitialized): Same.
14828
14829 2020-06-04 Vladimir Makarov <vmakarov@redhat.com>
14830
14831 PR middle-end/95464
14832 * lra.c (lra_emit_move): Add processing STRICT_LOW_PART.
14833 * lra-constraints.c (match_reload): Use STRICT_LOW_PART in output
14834 reload if the original insn has it too.
14835
14836 2020-06-04 Richard Biener <rguenther@suse.de>
14837
14838 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr):
14839 Ensure that tmp_ha is marked TREE_ADDRESSABLE.
14840
14841 2020-06-04 Martin Jambor <mjambor@suse.cz>
14842
14843 PR ipa/95113
14844 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move non-call
14845 exceptions check to...
14846 * tree-eh.c (stmt_unremovable_because_of_non_call_eh_p): ...this
14847 new function.
14848 * tree-eh.h (stmt_unremovable_because_of_non_call_eh_p): Declare it.
14849 * ipa-sra.c (isra_track_scalar_value_uses): Use it. New parameter
14850 fun.
14851
14852 2020-06-04 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14853
14854 PR target/94735
14855 * config/arm/predicates.md (mve_scatter_memory): Define to
14856 match (mem (reg)) for scatter store memory.
14857 * config/arm/mve.md (mve_vstrbq_scatter_offset_<supf><mode>): Modify
14858 define_insn to define_expand.
14859 (mve_vstrbq_scatter_offset_p_<supf><mode>): Likewise.
14860 (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
14861 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
14862 (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
14863 (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
14864 (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
14865 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
14866 (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
14867 (mve_vstrhq_scatter_offset_fv8hf): Likewise.
14868 (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
14869 (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
14870 (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
14871 (mve_vstrwq_scatter_offset_fv4sf): Likewise.
14872 (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
14873 (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
14874 (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
14875 (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
14876 (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
14877 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
14878 (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
14879 (mve_vstrbq_scatter_offset_<supf><mode>_insn): Define insn for scatter
14880 stores.
14881 (mve_vstrbq_scatter_offset_p_<supf><mode>_insn): Likewise.
14882 (mve_vstrhq_scatter_offset_<supf><mode>_insn): Likewise.
14883 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>_insn): Likewise.
14884 (mve_vstrhq_scatter_shifted_offset_<supf><mode>_insn): Likewise.
14885 (mve_vstrdq_scatter_offset_p_<supf>v2di_insn): Likewise.
14886 (mve_vstrdq_scatter_offset_<supf>v2di_insn): Likewise.
14887 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di_insn): Likewise.
14888 (mve_vstrdq_scatter_shifted_offset_<supf>v2di_insn): Likewise.
14889 (mve_vstrhq_scatter_offset_fv8hf_insn): Likewise.
14890 (mve_vstrhq_scatter_offset_p_fv8hf_insn): Likewise.
14891 (mve_vstrhq_scatter_shifted_offset_fv8hf_insn): Likewise.
14892 (mve_vstrhq_scatter_shifted_offset_p_fv8hf_insn): Likewise.
14893 (mve_vstrwq_scatter_offset_fv4sf_insn): Likewise.
14894 (mve_vstrwq_scatter_offset_p_fv4sf_insn): Likewise.
14895 (mve_vstrwq_scatter_offset_p_<supf>v4si_insn): Likewise.
14896 (mve_vstrwq_scatter_offset_<supf>v4si_insn): Likewise.
14897 (mve_vstrwq_scatter_shifted_offset_fv4sf_insn): Likewise.
14898 (mve_vstrwq_scatter_shifted_offset_p_fv4sf_insn): Likewise.
14899 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si_insn): Likewise.
14900 (mve_vstrwq_scatter_shifted_offset_<supf>v4si_insn): Likewise.
14901
14902 2020-06-04 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
14903
14904 * config/arm/arm_mve.h (__arm_vbicq_n_u16): Correct the intrinsic
14905 arguments.
14906 (__arm_vbicq_n_s16): Likewise.
14907 (__arm_vbicq_n_u32): Likewise.
14908 (__arm_vbicq_n_s32): Likewise.
14909 (__arm_vbicq): Modify polymorphic variant.
14910
14911 2020-06-04 Richard Biener <rguenther@suse.de>
14912
14913 * tree-vectorizer.h (vect_get_slp_vect_def): Declare.
14914 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
14915 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
14916 (vect_is_simple_use): Use SLP_TREE_REPRESENTATIVE.
14917 * tree-vect-slp.c (vect_get_slp_vect_defs): Fold into single
14918 use ...
14919 (vect_get_slp_defs): ... here.
14920 (vect_get_slp_vect_def): New function.
14921
14922 2020-06-04 Richard Biener <rguenther@suse.de>
14923
14924 * tree-vectorizer.h (_slp_tree::lanes): New.
14925 (SLP_TREE_LANES): Likewise.
14926 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
14927 (vectorizable_reduction): Likewise.
14928 (vect_transform_cycle_phi): Likewise.
14929 (vectorizable_induction): Likewise.
14930 (vectorizable_live_operation): Likewise.
14931 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize lanes.
14932 (vect_create_new_slp_node): Likewise.
14933 (slp_copy_subtree): Copy it.
14934 (vect_optimize_slp): Use it.
14935 (vect_slp_analyze_node_operations_1): Likewise.
14936 (vect_slp_convert_to_external): Likewise.
14937 (vect_bb_vectorization_profitable_p): Likewise.
14938 * tree-vect-stmts.c (vectorizable_load): Likewise.
14939 (get_vectype_for_scalar_type): Likewise.
14940
14941 2020-06-04 Richard Biener <rguenther@suse.de>
14942
14943 * tree-vect-slp.c (vect_update_all_shared_vectypes): Remove.
14944 (vect_build_slp_tree_2): Simplify building all external op
14945 nodes from scalars.
14946 (vect_slp_analyze_node_operations): Remove push/pop of
14947 STMT_VINFO_DEF_TYPE.
14948 (vect_schedule_slp_instance): Likewise.
14949 * tree-vect-stmts.c (ect_check_store_rhs): Pass in the
14950 stmt_info, use the vect_is_simple_use overload combining
14951 SLP and stmt_info analysis.
14952 (vect_is_simple_cond): Likewise.
14953 (vectorizable_store): Adjust.
14954 (vectorizable_condition): Likewise.
14955 (vect_is_simple_use): Fully handle invariant SLP nodes
14956 here. Amend stmt_info operand extraction with COND_EXPR
14957 and masked stores.
14958 * tree-vect-loop.c (vectorizable_reduction): Deal with
14959 COND_EXPR representation ugliness.
14960
14961 2020-06-04 Hongtao Liu <hongtao.liu@inte.com>
14962
14963 PR target/95254
14964 * config/i386/sse.md (*vcvtps2ph_store<merge_mask_name>):
14965 Refine from *vcvtps2ph_store<mask_name>.
14966 (vcvtps2ph256<mask_name>): Refine constraint from vm to v.
14967 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
14968 (*vcvtps2ph256<merge_mask_name>): New define_insn.
14969 (*avx512f_vcvtps2ph512<merge_mask_name>): Ditto.
14970 * config/i386/subst.md (merge_mask): New define_subst.
14971 (merge_mask_name): New define_subst_attr.
14972 (merge_mask_operand3): Ditto.
14973
14974 2020-06-04 Hao Liu <hliu@os.amperecomputing.com>
14975
14976 PR tree-optimization/89430
14977 * tree-ssa-phiopt.c
14978 (struct name_to_bb): Rename to ref_to_bb; add a new field exp;
14979 remove ssa_name_ver, store, offset fields.
14980 (struct ssa_names_hasher): Rename to refs_hasher; update functions.
14981 (class nontrapping_dom_walker): Rename m_seen_ssa_names to m_seen_refs.
14982 (nontrapping_dom_walker::add_or_mark_expr): Extend to support ARRAY_REFs
14983 and COMPONENT_REFs.
14984
14985 2020-06-04 Andreas Schwab <schwab@suse.de>
14986
14987 PR target/95154
14988 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Call assemble_external.
14989
14990 2020-06-04 Hongtao.liu <hongtao.liu@intel.com>
14991
14992 * config/i386/sse.md (pmov_dst_3_lower): New mode attribute.
14993 (trunc<mode><pmov_dst_3_lower>2): Refine from
14994 trunc<mode><pmov_dst_3>2.
14995
14996 2020-06-03 Vitor Guidi <vitor.guidi@usp.br>
14997
14998 * match.pd (tanh/sinh -> 1/cosh): New simplification.
14999
15000 2020-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
15001
15002 PR target/95347
15003 * config/rs6000/rs6000.c (is_stfs_insn): Rename to
15004 is_lfs_stfs_insn and make it recognize lfs as well.
15005 (prefixed_store_p): Use is_lfs_stfs_insn().
15006 (prefixed_load_p): Use is_lfs_stfs_insn() to recognize lfs.
15007
15008 2020-06-03 Jan Hubicka <hubicka@ucw.cz>
15009
15010 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
15011 streamer-hooks.h.
15012 (odr_enums): New static var.
15013 (struct odr_enum_val): New struct.
15014 (class odr_enum): New struct.
15015 (odr_enum_map): New hashtable.
15016 (odr_types_equivalent_p): Drop code testing TYPE_VALUES.
15017 (add_type_duplicate): Likewise.
15018 (free_odr_warning_data): Do not free TYPE_VALUES.
15019 (register_odr_enum): New function.
15020 (ipa_odr_summary_write): New function.
15021 (ipa_odr_read_section): New function.
15022 (ipa_odr_summary_read): New function.
15023 (class pass_ipa_odr): New pass.
15024 (make_pass_ipa_odr): New function.
15025 * ipa-utils.h (register_odr_enum): Declare.
15026 * lto-section-in.c: (lto_section_name): Add odr_types section.
15027 * lto-streamer.h (enum lto_section_type): Add odr_types section.
15028 * passes.def: Add odr_types pass.
15029 * lto-streamer-out.c (DFS::DFS_write_tree_body): Do not stream
15030 TYPE_VALUES.
15031 (hash_tree): Likewise.
15032 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
15033 Likewise.
15034 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
15035 Likewise.
15036 * timevar.def (TV_IPA_ODR): New timervar.
15037 * tree-pass.h (make_pass_ipa_odr): Declare.
15038 * tree.c (free_lang_data_in_type): Regiser ODR types.
15039
15040 2020-06-03 Romain Naour <romain.naour@gmail.com>
15041
15042 * Makefile.in (SELFTEST_DEPS): Move before including language makefile
15043 fragments.
15044
15045 2020-06-03 Richard Biener <rguenther@suse.de>
15046
15047 PR tree-optimization/95487
15048 * tree-vect-stmts.c (vectorizable_store): Use a truth type
15049 for the scatter mask.
15050
15051 2020-06-03 Richard Biener <rguenther@suse.de>
15052
15053 PR tree-optimization/95495
15054 * tree-vect-slp.c (vect_slp_analyze_node_operations): Use
15055 SLP_TREE_REPRESENTATIVE in the shift assertion.
15056
15057 2020-06-03 Tom Tromey <tromey@adacore.com>
15058
15059 * spellcheck.c (CASE_COST): New define.
15060 (BASE_COST): New define.
15061 (get_edit_distance): Recognize case changes.
15062 (get_edit_distance_cutoff): Update.
15063 (test_edit_distances): Update.
15064 (get_old_cutoff): Update.
15065 (test_find_closest_string): Add case sensitivity test.
15066
15067 2020-06-03 Richard Biener <rguenther@suse.de>
15068
15069 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Loop over
15070 the cost vector to unset the visited flag on stmts.
15071
15072 2020-06-03 Tobias Burnus <tobias@codesourcery.com>
15073
15074 * gimplify.c (omp_notice_variable): Use new hook.
15075 * langhooks-def.h (lhd_omp_predetermined_mapping): Declare.
15076 (LANG_HOOKS_OMP_PREDETERMINED_MAPPING): Define
15077 (LANG_HOOKS_DECLS): Add it.
15078 * langhooks.c (lhd_omp_predetermined_sharing): Remove bogus unused attr.
15079 (lhd_omp_predetermined_mapping): New.
15080 * langhooks.h (struct lang_hooks_for_decls): Add new hook.
15081
15082 2020-06-03 Jan Hubicka <jh@suse.cz>
15083
15084 * lto-streamer.h (LTO_tags): Reorder so frequent tags has small indexes;
15085 add LTO_first_tree_tag and LTO_first_gimple_tag.
15086 (lto_tag_is_tree_code_p): Update.
15087 (lto_tag_is_gimple_code_p): Update.
15088 (lto_gimple_code_to_tag): Update.
15089 (lto_tag_to_gimple_code): Update.
15090 (lto_tree_code_to_tag): Update.
15091 (lto_tag_to_tree_code): Update.
15092
15093 2020-06-02 Felix Yang <felix.yang@huawei.com>
15094
15095 PR target/95459
15096 * config/aarch64/aarch64.c (aarch64_short_vector_p):
15097 Leave later code to report an error if SVE is disabled.
15098
15099 2020-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15100
15101 * config/aarch64/aarch64-cores.def (zeus): Define.
15102 * config/aarch64/aarch64-tune.md: Regenerate.
15103 * doc/invoke.texi (AArch64 Options): Document zeus -mcpu option.
15104
15105 2020-06-02 Aaron Sawdey <acsawdey@linux.ibm.com>
15106
15107 PR target/95347
15108 * config/rs6000/rs6000.c (prefixed_store_p): Add special case
15109 for stfs.
15110 (is_stfs_insn): New helper function.
15111
15112 2020-06-02 Jan Hubicka <jh@suse.cz>
15113
15114 * lto-streamer-in.c (stream_read_tree_ref): Simplify streaming of
15115 references.
15116 * lto-streamer-out.c (stream_write_tree_ref): Likewise.
15117
15118 2020-06-02 Andrew Stubbs <ams@codesourcery.com>
15119
15120 * config/gcn/gcn-hsa.h (CC1_SPEC): Delete.
15121 * config/gcn/gcn.opt (-mlocal-symbol-id): Delete.
15122 * config/gcn/mkoffload.c (main): Don't use -mlocal-symbol-id.
15123
15124 2020-06-02 Eric Botcazou <ebotcazou@adacore.com>
15125
15126 PR middle-end/95395
15127 * optabs.c (expand_unop): Fix bits/bytes confusion in latest change.
15128 * tree-pretty-print.c (dump_generic_node) <ARRAY_TYPE>: Print quals.
15129
15130 2020-06-02 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
15131
15132 * config/s390/s390.c (print_operand): Emit vector alignment
15133 hints for z13.
15134
15135 2020-06-02 Martin Liska <mliska@suse.cz>
15136
15137 * coverage.c (get_coverage_counts): Skip sanity check for TOP N counters
15138 as they have variable number of counters.
15139 * gcov-dump.c (main): Add new option -r.
15140 (print_usage): Likewise.
15141 (tag_counters): All new raw format.
15142 * gcov-io.h (struct gcov_kvp): New.
15143 (GCOV_TOPN_VALUES): Remove.
15144 (GCOV_TOPN_VALUES_COUNTERS): Likewise.
15145 (GCOV_TOPN_MEM_COUNTERS): New.
15146 (GCOV_TOPN_DISK_COUNTERS): Likewise.
15147 (GCOV_TOPN_MAXIMUM_TRACKED_VALUES): Likewise.
15148 * ipa-profile.c (ipa_profile_generate_summary): Use
15149 GCOV_TOPN_MAXIMUM_TRACKED_VALUES.
15150 (ipa_profile_write_edge_summary): Likewise.
15151 (ipa_profile_read_edge_summary): Likewise.
15152 (ipa_profile): Remove usage of GCOV_TOPN_VALUES.
15153 * profile.c (sort_hist_values): Sort variable number
15154 of counters.
15155 (compute_value_histograms): Special case for TOP N counters
15156 that have dynamic number of key-value pairs.
15157 * value-prof.c (dump_histogram_value): Dump variable number
15158 of key-value pairs.
15159 (stream_in_histogram_value): Stream in variable number
15160 of key-value pairs for TOP N counter.
15161 (get_nth_most_common_value): Deal with variable number
15162 of key-value pairs.
15163 (dump_ic_profile): Use GCOV_TOPN_MAXIMUM_TRACKED_VALUES
15164 for loop iteration.
15165 (gimple_find_values_to_profile): Set GCOV_TOPN_MEM_COUNTERS
15166 to n_counters.
15167 * doc/gcov-dump.texi: Document new -r option.
15168
15169 2020-06-02 Iain Buclaw <ibuclaw@gdcproject.org>
15170
15171 PR target/95420
15172 * config.gcc (arm-wrs-vxworks7*): Set default cpu to generic-armv7-a.
15173
15174 2020-06-01 Jeff Law <law@torsion.usersys.redhat.com>
15175
15176 * lower-subreg.c (resolve_simple_move): If simplify_gen_subreg_concatn
15177 returns (const_int 0) for the destination, then emit nothing.
15178
15179 2020-06-01 Jan Hubicka <hubicka@ucw.cz>
15180
15181 * lto-streamer.h (enum LTO_tags): Remove LTO_field_decl_ref,
15182 LTO_function_decl_ref, LTO_label_decl_ref, LTO_namespace_decl_ref,
15183 LTO_result_decl_ref, LTO_type_decl_ref, LTO_type_ref,
15184 LTO_const_decl_ref, LTO_imported_decl_ref,
15185 LTO_translation_unit_decl_ref, LTO_global_decl_ref and
15186 LTO_namelist_decl_ref; add LTO_global_stream_ref.
15187 * lto-streamer-in.c (lto_input_tree_ref): Simplify.
15188 (lto_input_scc): Update.
15189 (lto_input_tree_1): Update.
15190 * lto-streamer-out.c (lto_indexable_tree_ref): Simlify.
15191 * lto-streamer.c (lto_tag_name): Update.
15192
15193 2020-06-01 Jan Hubicka <hubicka@ucw.cz>
15194
15195 * ipa-reference.c (stream_out_bitmap): Use lto_output_var_decl_ref.
15196 (ipa_reference_read_optimization_summary): Use lto_intput_var_decl_ref.
15197 * lto-cgraph.c (lto_output_node): Likewise.
15198 (lto_output_varpool_node): Likewise.
15199 (output_offload_tables): Likewise.
15200 (input_node): Likewise.
15201 (input_varpool_node): Likewise.
15202 (input_offload_tables): Likewise.
15203 * lto-streamer-in.c (lto_input_tree_ref): Declare.
15204 (lto_input_var_decl_ref): Declare.
15205 (lto_input_fn_decl_ref): Declare.
15206 * lto-streamer-out.c (lto_indexable_tree_ref): Use only one decl stream.
15207 (lto_output_var_decl_index): Rename to ..
15208 (lto_output_var_decl_ref): ... this.
15209 (lto_output_fn_decl_index): Rename to ...
15210 (lto_output_fn_decl_ref): ... this.
15211 * lto-streamer.h (enum lto_decl_stream_e_t): Remove per-type streams.
15212 (DEFINE_DECL_STREAM_FUNCS): Remove.
15213 (lto_output_var_decl_index): Remove.
15214 (lto_output_fn_decl_index): Remove.
15215 (lto_output_var_decl_ref): Declare.
15216 (lto_output_fn_decl_ref): Declare.
15217 (lto_input_var_decl_ref): Declare.
15218 (lto_input_fn_decl_ref): Declare.
15219
15220 2020-06-01 Feng Xue <fxue@os.amperecomputing.com>
15221
15222 * cgraphclones.c (materialize_all_clones): Adjust replace map dump.
15223 * ipa-param-manipulation.c (ipa_dump_adjusted_parameters): Do not
15224 dump infomation if there is no adjusted parameter.
15225 * (ipa_param_adjustments::dump): Adjust prefix spaces for dump string.
15226
15227 2020-06-01 Aldy Hernandez <aldyh@redhat.com>
15228
15229 * Makefile.in (gimple-array-bounds.o): New.
15230 * tree-vrp.c: Move array bounds code...
15231 * gimple-array-bounds.cc: ...here...
15232 * gimple-array-bounds.h: ...and here.
15233
15234 2020-06-01 Aldy Hernandez <aldyh@redhat.com>
15235
15236 * Makefile.in (OBJS): Add value-range-equiv.o.
15237 * tree-vrp.c (*value_range_equiv*): Move to...
15238 * value-range-equiv.cc: ...here.
15239 * tree-vrp.h (class value_range_equiv): Move to...
15240 * value-range-equiv.h: ...here.
15241 * vr-values.h: Include value-range-equiv.h.
15242
15243 2020-06-01 Feng Xue <fxue@os.amperecomputing.com>
15244
15245 PR ipa/93429
15246 * ipa-cp.c (propagate_aggs_across_jump_function): Check aggregate
15247 lattice for simple pass-through by-ref argument.
15248
15249 2020-05-31 Jeff Law <law@redhat.com>
15250
15251 * lra.c (add_auto_inc_notes): Remove function.
15252 * reload1.c (add_auto_inc_notes): Similarly. Move into...
15253 * rtlanal.c (add_auto_inc_notes): New function.
15254 * rtl.h (add_auto_inc_notes): Add prototype.
15255 * recog.c (peep2_attempt): Scan and add REG_INC notes to new insns
15256 as needed.
15257
15258 2020-05-31 Jan Hubicka <jh@suse.cz>
15259
15260 * lto-section-out.c (lto_output_decl_index): Remove.
15261 (lto_output_field_decl_index): Move to lto-streamer-out.c
15262 (lto_output_fn_decl_index): Move to lto-streamer-out.c
15263 (lto_output_namespace_decl_index): Remove.
15264 (lto_output_var_decl_index): Remove.
15265 (lto_output_type_decl_index): Remove.
15266 (lto_output_type_ref_index): Remove.
15267 * lto-streamer-out.c (output_type_ref): Remove.
15268 (lto_get_index): New function.
15269 (lto_output_tree_ref): Remove.
15270 (lto_indexable_tree_ref): New function.
15271 (lto_output_var_decl_index): Move here from lto-section-out.c; simplify.
15272 (lto_output_fn_decl_index): Move here from lto-section-out.c; simplify.
15273 (stream_write_tree_ref): Update.
15274 (lto_output_tree): Update.
15275 * lto-streamer.h (lto_output_decl_index): Remove prototype.
15276 (lto_output_field_decl_index): Remove prototype.
15277 (lto_output_namespace_decl_index): Remove prototype.
15278 (lto_output_type_decl_index): Remove prototype.
15279 (lto_output_type_ref_index): Remove prototype.
15280 (lto_output_var_decl_index): Move.
15281 (lto_output_fn_decl_index): Move
15282
15283 2020-05-31 Jakub Jelinek <jakub@redhat.com>
15284
15285 PR middle-end/95052
15286 * expr.c (store_expr): For shortedned_string_cst, ensure temp has
15287 BLKmode.
15288
15289 2020-05-31 Jeff Law <law@redhat.com>
15290
15291 * config/h8300/jumpcall.md (brabs, brabc): Disable patterns.
15292
15293 2020-05-31 Jim Wilson <jimw@sifive.com>
15294
15295 * config/riscv/riscv.md (zero_extendsidi2_shifted): New.
15296
15297 2020-05-30 Jonathan Yong <10walls@gmail.com>
15298
15299 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Insert -lkernel32
15300 after -lmsvcrt. This is necessary as libmsvcrt.a is not a pure
15301 import library, but also contains some functions that invoke
15302 others in KERNEL32.DLL.
15303
15304 2020-05-29 Segher Boessenkool <segher@kernel.crashing.org>
15305
15306 * config/rs6000/altivec.md (altivec_vmrghw_direct): Prefer VSX form.
15307 (altivec_vmrglw_direct): Ditto.
15308 (altivec_vperm_<mode>_direct): Ditto.
15309 (altivec_vperm_v8hiv16qi): Ditto.
15310 (*altivec_vperm_<mode>_uns_internal): Ditto.
15311 (*altivec_vpermr_<mode>_internal): Ditto.
15312 (vperm_v8hiv4si): Ditto.
15313 (vperm_v16qiv8hi): Ditto.
15314
15315 2020-05-29 Jan Hubicka <jh@suse.cz>
15316
15317 * lto-streamer-in.c (streamer_read_chain): Move here from
15318 tree-streamer-in.c.
15319 (stream_read_tree_ref): New.
15320 (lto_input_tree_1): Simplify.
15321 * lto-streamer-out.c (stream_write_tree_ref): New.
15322 (lto_write_tree_1): Simplify.
15323 (lto_output_tree_1): Simplify.
15324 (DFS::DFS_write_tree): Simplify.
15325 (streamer_write_chain): Move here from tree-stremaer-out.c.
15326 * lto-streamer.h (lto_output_tree_ref): Update prototype.
15327 (stream_read_tree_ref): Declare
15328 (stream_write_tree_ref): Declare
15329 * tree-streamer-in.c (streamer_read_chain): Update to use
15330 stream_read_tree_ref.
15331 (lto_input_ts_common_tree_pointers): Likewise.
15332 (lto_input_ts_vector_tree_pointers): Likewise.
15333 (lto_input_ts_poly_tree_pointers): Likewise.
15334 (lto_input_ts_complex_tree_pointers): Likewise.
15335 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
15336 (lto_input_ts_decl_common_tree_pointers): Likewise.
15337 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
15338 (lto_input_ts_field_decl_tree_pointers): Likewise.
15339 (lto_input_ts_function_decl_tree_pointers): Likewise.
15340 (lto_input_ts_type_common_tree_pointers): Likewise.
15341 (lto_input_ts_type_non_common_tree_pointers): Likewise.
15342 (lto_input_ts_list_tree_pointers): Likewise.
15343 (lto_input_ts_vec_tree_pointers): Likewise.
15344 (lto_input_ts_exp_tree_pointers): Likewise.
15345 (lto_input_ts_block_tree_pointers): Likewise.
15346 (lto_input_ts_binfo_tree_pointers): Likewise.
15347 (lto_input_ts_constructor_tree_pointers): Likewise.
15348 (lto_input_ts_omp_clause_tree_pointers): Likewise.
15349 * tree-streamer-out.c (streamer_write_chain): Update to use
15350 stream_write_tree_ref.
15351 (write_ts_common_tree_pointers): Likewise.
15352 (write_ts_vector_tree_pointers): Likewise.
15353 (write_ts_poly_tree_pointers): Likewise.
15354 (write_ts_complex_tree_pointers): Likewise.
15355 (write_ts_decl_minimal_tree_pointers): Likewise.
15356 (write_ts_decl_common_tree_pointers): Likewise.
15357 (write_ts_decl_non_common_tree_pointers): Likewise.
15358 (write_ts_decl_with_vis_tree_pointers): Likewise.
15359 (write_ts_field_decl_tree_pointers): Likewise.
15360 (write_ts_function_decl_tree_pointers): Likewise.
15361 (write_ts_type_common_tree_pointers): Likewise.
15362 (write_ts_type_non_common_tree_pointers): Likewise.
15363 (write_ts_list_tree_pointers): Likewise.
15364 (write_ts_vec_tree_pointers): Likewise.
15365 (write_ts_exp_tree_pointers): Likewise.
15366 (write_ts_block_tree_pointers): Likewise.
15367 (write_ts_binfo_tree_pointers): Likewise.
15368 (write_ts_constructor_tree_pointers): Likewise.
15369 (write_ts_omp_clause_tree_pointers): Likewise.
15370 (streamer_write_tree_body): Likewise.
15371 (streamer_write_integer_cst): Likewise.
15372 * tree-streamer.h (streamer_read_chain):Declare.
15373 (streamer_write_chain):Declare.
15374 (streamer_write_tree_body): Update prototype.
15375 (streamer_write_integer_cst): Update prototype.
15376
15377 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
15378
15379 PR bootstrap/95413
15380 * configure: Regenerated.
15381
15382 2020-05-29 Andrew Stubbs <ams@codesourcery.com>
15383
15384 * config/gcn/gcn-valu.md (add<mode>3_vcc_zext_dup): Add early clobber.
15385 (add<mode>3_vcc_zext_dup_exec): Likewise.
15386 (add<mode>3_vcc_zext_dup2): Likewise.
15387 (add<mode>3_vcc_zext_dup2_exec): Likewise.
15388
15389 2020-05-29 Richard Biener <rguenther@suse.de>
15390
15391 PR tree-optimization/95272
15392 * tree-vectorizer.h (_slp_tree::representative): Add.
15393 (SLP_TREE_REPRESENTATIVE): Likewise.
15394 * tree-vect-loop.c (vectorizable_reduction): Adjust SLP
15395 node gathering.
15396 (vectorizable_live_operation): Use the representative to
15397 attach the reduction info to.
15398 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
15399 SLP_TREE_REPRESENTATIVE.
15400 (vect_create_new_slp_node): Likewise.
15401 (slp_copy_subtree): Copy it.
15402 (vect_slp_rearrange_stmts): Re-arrange even COND_EXPR stmts.
15403 (vect_slp_analyze_node_operations_1): Pass the representative
15404 to vect_analyze_stmt.
15405 (vect_schedule_slp_instance): Pass the representative to
15406 vect_transform_stmt.
15407
15408 2020-05-29 Richard Biener <rguenther@suse.de>
15409
15410 PR tree-optimization/95356
15411 * tree-vect-stmts.c (vectorizable_shift): Do in-place SLP
15412 node hacking during analysis.
15413
15414 2020-05-29 Jan Hubicka <hubicka@ucw.cz>
15415
15416 PR lto/95362
15417 * lto-streamer-out.c (lto_output_tree): Disable redundant streaming.
15418
15419 2020-05-29 Richard Biener <rguenther@suse.de>
15420
15421 PR tree-optimization/95403
15422 * tree-vect-stmts.c (vect_init_vector_1): Guard against NULL
15423 stmt_vinfo.
15424
15425 2020-05-29 Jakub Jelinek <jakub@redhat.com>
15426
15427 PR middle-end/95315
15428 * omp-general.c (omp_resolve_declare_variant): Fix up addition of
15429 declare variant cgraph node removal callback.
15430
15431 2020-05-29 Jakub Jelinek <jakub@redhat.com>
15432
15433 PR middle-end/95052
15434 * expr.c (store_expr): If expr_size is constant and significantly
15435 larger than TREE_STRING_LENGTH, set temp to just the
15436 TREE_STRING_LENGTH portion of the STRING_CST.
15437
15438 2020-05-29 Richard Biener <rguenther@suse.de>
15439
15440 PR tree-optimization/95393
15441 * tree-ssa-phiopt.c (minmax_replacement): Use gimple_build
15442 to build the min/max expression so we simplify cases like
15443 MAX(0, s) immediately.
15444
15445 2020-05-29 Joe Ramsay <joe.ramsay@arm.com>
15446
15447 * config/aarch64/aarch64-sve.md (<LOGICAL:optab><mode>3): Add support
15448 for unpacked EOR, ORR, AND.
15449
15450 2020-05-28 Nicolas Bértolo <nicolasbertolo@gmail.com>
15451
15452 * Makefile.in: don't look for libiberty in the "pic" subdirectory
15453 when building for Mingw. Add dependency on xgcc with the proper
15454 extension.
15455
15456 2020-05-28 Jeff Law <law@redhat.com>
15457
15458 * config/h8300/logical.md (bclrhi_msx): Remove pattern.
15459
15460 2020-05-28 Jeff Law <law@redhat.com>
15461
15462 * config/h8300/logical.md (HImode H8/SX bit-and splitter): Don't
15463 make a nonzero adjustment to the memory offset.
15464 (b<ior,xor>hi_msx): Turn into a splitter.
15465
15466 2020-05-28 Eric Botcazou <ebotcazou@adacore.com>
15467
15468 * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
15469 Fix off-by-one error.
15470
15471 2020-05-28 Richard Sandiford <richard.sandiford@arm.com>
15472
15473 * config/aarch64/aarch64.h (aarch64_frame): Add a comment above
15474 wb_candidate1 and wb_candidate2.
15475 * config/aarch64/aarch64.c (aarch64_layout_frame): Invalidate
15476 wb_candidate1 and wb_candidate2 if we decided not to use them.
15477
15478 2020-05-28 Richard Sandiford <richard.sandiford@arm.com>
15479
15480 PR testsuite/95361
15481 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Assert that
15482 we have at least some CFI operations when using a frame pointer.
15483 Only redefine the CFA if we have CFI operations.
15484
15485 2020-05-28 Richard Biener <rguenther@suse.de>
15486
15487 * tree-vect-slp.c (vect_prologue_cost_for_slp): Remove
15488 case for !SLP_TREE_VECTYPE.
15489 (vect_slp_analyze_node_operations): Adjust.
15490
15491 2020-05-28 Richard Biener <rguenther@suse.de>
15492
15493 * tree-vectorizer.h (_slp_tree::vec_defs): Add.
15494 (SLP_TREE_VEC_DEFS): Likewise.
15495 * tree-vect-slp.c (_slp_tree::_slp_tree): Adjust.
15496 (_slp_tree::~_slp_tree): Likewise.
15497 (vect_mask_constant_operand_p): Remove unused function.
15498 (vect_get_constant_vectors): Rename to...
15499 (vect_create_constant_vectors): ... this. Take the
15500 invariant node as argument and code generate it. Remove
15501 dead code, remove temporary asserts. Pass a NULL stmt_info
15502 to vect_init_vector.
15503 (vect_get_slp_defs): Simplify.
15504 (vect_schedule_slp_instance): Code-generate externals and
15505 invariants using vect_create_constant_vectors.
15506
15507 2020-05-28 Richard Biener <rguenther@suse.de>
15508
15509 * tree-vect-stmts.c (vect_finish_stmt_generation_1):
15510 Conditionalize stmt_info use, assert the new stmt cannot throw
15511 when not specified.
15512 (vect_finish_stmt_generation): Adjust assert.
15513
15514 2020-05-28 Richard Biener <rguenther@suse.de>
15515
15516 PR tree-optimization/95273
15517 PR tree-optimization/95356
15518 * tree-vect-stmts.c (vectorizable_shift): Adjust when and to
15519 what we set the vector type of the shift operand SLP node
15520 again.
15521
15522 2020-05-28 Andrea Corallo <andrea.corallo@arm.com>
15523
15524 * config/arm/arm.c (mve_vector_mem_operand): Fix unwanted
15525 fall-throughs.
15526
15527 2020-05-28 Martin Liska <mliska@suse.cz>
15528
15529 PR web/95380
15530 * doc/invoke.texi: Add missing params, remove max-once-peeled-insns and
15531 rename ipcp-unit-growth to ipa-cp-unit-growth.
15532
15533 2020-05-28 Hongtao Liu <hongtao.liu@intel.com>
15534
15535 * config/i386/sse.md (*avx512vl_<code>v2div2qi2_store_1): Rename
15536 from *avx512vl_<code>v2div2qi_store and refine memory size of
15537 the pattern.
15538 (*avx512vl_<code>v2div2qi2_mask_store_1): Ditto.
15539 (*avx512vl_<code><mode>v4qi2_store_1): Ditto.
15540 (*avx512vl_<code><mode>v4qi2_mask_store_1): Ditto.
15541 (*avx512vl_<code><mode>v8qi2_store_1): Ditto.
15542 (*avx512vl_<code><mode>v8qi2_mask_store_1): Ditto.
15543 (*avx512vl_<code><mode>v4hi2_store_1): Ditto.
15544 (*avx512vl_<code><mode>v4hi2_mask_store_1): Ditto.
15545 (*avx512vl_<code>v2div2hi2_store_1): Ditto.
15546 (*avx512vl_<code>v2div2hi2_mask_store_1): Ditto.
15547 (*avx512vl_<code>v2div2si2_store_1): Ditto.
15548 (*avx512vl_<code>v2div2si2_mask_store_1): Ditto.
15549 (*avx512f_<code>v8div16qi2_store_1): Ditto.
15550 (*avx512f_<code>v8div16qi2_mask_store_1): Ditto.
15551 (*avx512vl_<code>v2div2qi2_store_2): New define_insn_and_split.
15552 (*avx512vl_<code>v2div2qi2_mask_store_2): Ditto.
15553 (*avx512vl_<code><mode>v4qi2_store_2): Ditto.
15554 (*avx512vl_<code><mode>v4qi2_mask_store_2): Ditto.
15555 (*avx512vl_<code><mode>v8qi2_store_2): Ditto.
15556 (*avx512vl_<code><mode>v8qi2_mask_store_2): Ditto.
15557 (*avx512vl_<code><mode>v4hi2_store_2): Ditto.
15558 (*avx512vl_<code><mode>v4hi2_mask_store_2): Ditto.
15559 (*avx512vl_<code>v2div2hi2_store_2): Ditto.
15560 (*avx512vl_<code>v2div2hi2_mask_store_2): Ditto.
15561 (*avx512vl_<code>v2div2si2_store_2): Ditto.
15562 (*avx512vl_<code>v2div2si2_mask_store_2): Ditto.
15563 (*avx512f_<code>v8div16qi2_store_2): Ditto.
15564 (*avx512f_<code>v8div16qi2_mask_store_2): Ditto.
15565 * config/i386/i386-builtin-types.def: Adjust builtin type.
15566 * config/i386/i386-expand.c: Ditto.
15567 * config/i386/i386-builtin.def: Adjust builtin.
15568 * config/i386/avx512fintrin.h: Ditto.
15569 * config/i386/avx512vlbwintrin.h: Ditto.
15570 * config/i386/avx512vlintrin.h: Ditto.
15571
15572 2020-05-28 Dong JianQiang <dongjianqiang2@huawei.com>
15573
15574 PR gcov-profile/95332
15575 * gcov-io.c (gcov_var::endian): Move field.
15576 (from_file): Add IN_GCOV_TOOL check.
15577 * gcov-io.h (gcov_magic): Ditto.
15578
15579 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
15580
15581 * config/xtensa/xtensa.c (xtensa_delegitimize_address): New
15582 function.
15583 (TARGET_DELEGITIMIZE_ADDRESS): New macro.
15584
15585 2020-05-27 Eric Botcazou <ebotcazou@adacore.com>
15586
15587 * builtin-types.def (BT_UINT128): New primitive type.
15588 (BT_FN_UINT128_UINT128): New function type.
15589 * builtins.def (BUILT_IN_BSWAP128): New GCC builtin.
15590 * doc/extend.texi (__builtin_bswap128): Document it.
15591 * builtins.c (expand_builtin): Deal with BUILT_IN_BSWAP128.
15592 (is_inexpensive_builtin): Likewise.
15593 * fold-const-call.c (fold_const_call_ss): Likewise.
15594 * fold-const.c (tree_call_nonnegative_warnv_p): Likewise.
15595 * tree-ssa-ccp.c (evaluate_stmt): Likewise.
15596 * tree-vect-stmts.c (vect_get_data_ptr_increment): Likewise.
15597 (vectorizable_call): Likewise.
15598 * optabs.c (expand_unop): Always use the double word path for it.
15599 * tree-core.h (enum tree_index): Add TI_UINT128_TYPE.
15600 * tree.h (uint128_type_node): New global type.
15601 * tree.c (build_common_tree_nodes): Build it if TImode is supported.
15602
15603 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
15604
15605 * config/i386/mmx.md (*mmx_haddv2sf3): Remove SSE alternatives.
15606 (mmx_hsubv2sf3): Ditto.
15607 (mmx_haddsubv2sf3): New expander.
15608 (*mmx_haddsubv2sf3): Rename from mmx_addsubv2sf3. Correct
15609 RTL template to model horizontal subtraction and addition.
15610 * config/i386/i386-builtin.def (IX86_BUILTIN_PFPNACC):
15611 Update for rename.
15612
15613 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
15614
15615 PR target/95355
15616 * config/i386/sse.md
15617 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>):
15618 Remove %q operand modifier from insn template.
15619 (avx512f_<code>v8hiv8di2<mask_name>): Ditto.
15620
15621 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
15622
15623 * config/i386/mmx.md (mmx_pswapdsf2): Add SSE alternatives.
15624 Enable insn pattern for TARGET_MMX_WITH_SSE.
15625 (*mmx_movshdup): New insn pattern.
15626 (*mmx_movsldup): Ditto.
15627 (*mmx_movss): Ditto.
15628 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
15629 Handle E_V2SFmode.
15630 (expand_vec_perm_movs): Handle E_V2SFmode.
15631 (expand_vec_perm_even_odd): Ditto.
15632 (expand_vec_perm_broadcast_1): Assert that E_V2SFmode
15633 is already handled by standard shuffle patterns.
15634
15635 2020-05-27 Richard Biener <rguenther@suse.de>
15636
15637 PR tree-optimization/95295
15638 * tree-ssa-loop-im.c (sm_seq_valid_bb): Fix sinking after
15639 merging stores from paths.
15640
15641 2020-05-27 Richard Biener <rguenther@suse.de>
15642
15643 PR tree-optimization/95356
15644 * tree-vect-stmts.c (vectorizable_shift): Adjust vector
15645 type for the shift operand.
15646
15647 2020-05-27 Richard Biener <rguenther@suse.de>
15648
15649 PR tree-optimization/95335
15650 * tree-vect-slp.c (vect_slp_analyze_node_operations): Reset
15651 lvisited for nodes made external.
15652
15653 2020-05-27 Richard Biener <rguenther@suse.de>
15654
15655 * dump-context.h (debug_dump_context): New class.
15656 (dump_context): Make it friend.
15657 * dumpfile.c (debug_dump_context::debug_dump_context):
15658 Implement.
15659 (debug_dump_context::~debug_dump_context): Likewise.
15660 * tree-vect-slp.c: Include dump-context.h.
15661 (vect_print_slp_tree): Dump a single SLP node.
15662 (debug): New overload for slp_tree.
15663 (vect_print_slp_graph): Rename from vect_print_slp_tree and
15664 use that.
15665 (vect_analyze_slp_instance): Adjust.
15666
15667 2020-05-27 Jakub Jelinek <jakub@redhat.com>
15668
15669 PR middle-end/95315
15670 * omp-general.c (omp_declare_variant_remove_hook): New function.
15671 (omp_resolve_declare_variant): Always return base if it is already
15672 declare_variant_alt magic decl itself. Register
15673 omp_declare_variant_remove_hook as cgraph node removal hook.
15674
15675 2020-05-27 Jeff Law <law@redhat.com>
15676
15677 * config/h8300/testcompare.md (tst_extzv_1_n): Do not accept constants
15678 for the primary input operand.
15679 (tstsi_variable_bit_qi): Similarly.
15680
15681 2020-05-26 Uroš Bizjak <ubizjak@gmail.com>
15682
15683 * config/i386/mmx.md (mmx_pswapdv2si2): Add SSE2 alternative.
15684
15685 2020-05-26 Tobias Burnus <tobias@codesourcery.com>
15686
15687 PR ipa/95320
15688 * ipa-utils.h (odr_type_p): Also permit calls with
15689 only flag_generate_offload set.
15690
15691 2020-05-26 Alexandre Oliva <oliva@adacore.com>
15692
15693 * gcc.c (validate_switches): Add braced parameter. Adjust all
15694 callers. Expected and skip trailing brace only if braced.
15695 Return after handling one atom otherwise.
15696 (DUMPS_OPTIONS): New.
15697 (cpp_debug_options): Define in terms of it.
15698
15699 2020-05-26 Richard Biener <rguenther@suse.de>
15700
15701 PR tree-optimization/95327
15702 * tree-vect-stmts.c (vectorizable_shift): Compute op1_vectype
15703 when we are not using a scalar shift.
15704
15705 2020-05-26 Uroš Bizjak <ubizjak@gmail.com>
15706
15707 * config/i386/mmx.md (*mmx_pshufd_1): New insn pattern.
15708 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
15709 Handle E_V2SImode and E_V4HImode.
15710 (expand_vec_perm_even_odd_1): Handle E_V4HImode.
15711 Assert that E_V2SImode is already handled.
15712 (expand_vec_perm_broadcast_1): Assert that E_V2SImode
15713 is already handled by standard shuffle patterns.
15714
15715 2020-05-26 Jan Hubicka <jh@suse.cz>
15716
15717 * tree.c (free_lang_data_in_type): Simpify types of TYPE_VALUES in
15718 enumeral types.
15719
15720 2020-05-26 Jakub Jelinek <jakub@redhat.com>
15721
15722 PR c++/95197
15723 * gimplify.c (find_combined_omp_for): Move to omp-general.c.
15724 * omp-general.h (find_combined_omp_for): Declare.
15725 * omp-general.c: Include tree-iterator.h.
15726 (find_combined_omp_for): New function, moved from gimplify.c.
15727
15728 2020-05-26 Alexandre Oliva <oliva@adacore.com>
15729
15730 * common.opt (aux_base_name): Define.
15731 (dumpbase, dumpdir): Mark as Driver options.
15732 (-dumpbase, -dumpdir): Likewise.
15733 (dumpbase-ext, -dumpbase-ext): New.
15734 (auxbase, auxbase-strip): Drop.
15735 * doc/invoke.texi (-dumpbase, -dumpbase-ext, -dumpdir):
15736 Document.
15737 (-o): Introduce the notion of primary output, mention it
15738 influences auxiliary and dump output names as well, add
15739 examples.
15740 (-save-temps): Adjust, move examples into -dump*.
15741 (-save-temps=cwd, -save-temps=obj): Likewise.
15742 (-fdump-final-insns): Adjust.
15743 * dwarf2out.c (gen_producer_string): Drop auxbase and
15744 auxbase_strip; add dumpbase_ext.
15745 * gcc.c (enum save_temps): Add SAVE_TEMPS_DUMP.
15746 (save_temps_prefix, save_temps_length): Drop.
15747 (save_temps_overrides_dumpdir): New.
15748 (dumpdir, dumpbase, dumpbase_ext): New.
15749 (dumpdir_length, dumpdir_trailing_dash_added): New.
15750 (outbase, outbase_length): New.
15751 (The Specs Language): Introduce %". Adjust %b and %B.
15752 (ASM_FINAL_SPEC): Use %b.dwo for an aux output name always.
15753 Precede object file with %w when it's the primary output.
15754 (cpp_debug_options): Do not pass on incoming -dumpdir,
15755 -dumpbase and -dumpbase-ext options; recompute them with
15756 %:dumps.
15757 (cc1_options): Drop auxbase with and without compare-debug;
15758 use cpp_debug_options instead of dumpbase. Mark asm output
15759 with %w when it's the primary output.
15760 (static_spec_functions): Drop %:compare-debug-auxbase-opt and
15761 %:replace-exception. Add %:dumps.
15762 (driver_handle_option): Implement -save-temps=*/-dumpdir
15763 mutual overriding logic. Save dumpdir, dumpbase and
15764 dumpbase-ext options. Do not save output_file in
15765 save_temps_prefix.
15766 (adds_single_suffix_p): New.
15767 (single_input_file_index): New.
15768 (process_command): Combine output dir, output base name, and
15769 dumpbase into dumpdir and outbase.
15770 (set_collect_gcc_options): Pass a possibly-adjusted -dumpdir.
15771 (do_spec_1): Optionally dumpdir instead of save_temps_prefix,
15772 and outbase instead of input_basename in %b, %B and in
15773 -save-temps aux files. Handle empty argument %".
15774 (driver::maybe_run_linker): Adjust dumpdir and auxbase.
15775 (compare_debug_dump_opt_spec_function): Adjust gkd dump file
15776 naming. Spec-quote the computed -fdump-final-insns file name.
15777 (debug_auxbase_opt): Drop.
15778 (compare_debug_self_opt_spec_function): Drop auxbase-strip
15779 computation.
15780 (compare_debug_auxbase_opt_spec_function): Drop.
15781 (not_actual_file_p): New.
15782 (replace_extension_spec_func): Drop.
15783 (dumps_spec_func): New.
15784 (convert_white_space): Split-out parts into...
15785 (quote_string, whitespace_to_convert_p): ... these. New.
15786 (quote_spec_char_p, quote_spec, quote_spec_arg): New.
15787 (driver::finalize): Release and reset new variables; drop
15788 removed ones.
15789 * lto-wrapper.c (HAVE_TARGET_EXECUTABLE_SUFFIX): Define if...
15790 (TARGET_EXECUTABLE_SUFFIX): ... is defined; define this to the
15791 empty string otherwise.
15792 (DUMPBASE_SUFFIX): Drop leading period.
15793 (debug_objcopy): Use concat.
15794 (run_gcc): Recognize -save-temps=* as -save-temps too. Obey
15795 -dumpdir. Pass on empty dumpdir and dumpbase with a directory
15796 component. Simplify temp file names.
15797 * opts.c (finish_options): Drop aux base name handling.
15798 (common_handle_option): Drop auxbase-strip handling.
15799 * toplev.c (print_switch_values): Drop auxbase, add
15800 dumpbase-ext.
15801 (process_options): Derive aux_base_name from dump_base_name
15802 and dump_base_ext.
15803 (lang_dependent_init): Compute dump_base_ext along with
15804 dump_base_name. Disable stack usage and callgraph-info during
15805 lto generation and compare-debug recompilation.
15806
15807 2020-05-26 Hongtao Liu <hongtao.liu@intel.com>
15808 Uroš Bizjak <ubizjak@gmail.com>
15809
15810 PR target/95211
15811 PR target/95256
15812 * config/i386/sse.md (<floatunssuffix>v2div2sf2): New expander.
15813 (fix<fixunssuffix>_truncv2sfv2di2): Ditto.
15814 (avx512dq_float<floatunssuffix>v2div2sf2): Renaming from
15815 float<floatunssuffix>v2div2sf2.
15816 (avx512dq_fix<fixunssuffix>_truncv2sfv2di2<mask_name>):
15817 Renaming from fix<fixunssuffix>_truncv2sfv2di2<mask_name>.
15818 (vec_pack<floatprefix>_float_<mode>): Adjust icode name.
15819 (vec_unpack_<fixprefix>fix_trunc_lo_<mode>): Ditto.
15820 (vec_unpack_<fixprefix>fix_trunc_hi_<mode>): Ditto.
15821 * config/i386/i386-builtin.def: Ditto.
15822 * emit-rtl.c (validate_subreg): Allow use of *paradoxical* vector
15823 subregs when both omode and imode are vector mode and
15824 have the same inner mode.
15825
15826 2020-05-25 Eric Botcazou <ebotcazou@adacore.com>
15827
15828 * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
15829 Only turn MEM_REFs into bit-field stores for small bit-field regions.
15830 (imm_store_chain_info::output_merged_store): Be prepared for sources
15831 with non-integral type in the bit-field insertion case.
15832 (pass_store_merging::process_store): Use MAX_BITSIZE_MODE_ANY_INT as
15833 the largest size for the bit-field case.
15834
15835 2020-05-25 Uroš Bizjak <ubizjak@gmail.com>
15836
15837 * config/i386/mmx.md (*vec_dupv2sf): Redefine as define_insn.
15838 (mmx_pshufw_1): Change Yv constraint to xYw. Correct type attribute.
15839 (*vec_dupv4hi): Redefine as define_insn.
15840 Remove alternative with general register input.
15841 (*vec_dupv2si): Ditto.
15842
15843 2020-05-25 Richard Biener <rguenther@suse.de>
15844
15845 PR tree-optimization/95309
15846 * tree-vect-slp.c (vect_get_constant_vectors): Move number
15847 of vector computation ...
15848 (vect_slp_analyze_node_operations): ... to analysis phase.
15849
15850 2020-05-25 Jan Hubicka <hubicka@ucw.cz>
15851
15852 * lto-streamer-out.c (lto_output_tree): Add streamer_debugging check.
15853 * lto-streamer.h (streamer_debugging): New constant
15854 * tree-streamer-in.c (streamer_read_tree_bitfields): Add
15855 streamer_debugging check.
15856 (streamer_get_pickled_tree): Likewise.
15857 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
15858
15859 2020-05-25 Richard Biener <rguenther@suse.de>
15860
15861 PR tree-optimization/95308
15862 * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize
15863 test for TARGET_MEM_REFs.
15864
15865 2020-05-25 Richard Biener <rguenther@suse.de>
15866
15867 PR tree-optimization/95295
15868 * tree-ssa-loop-im.c (sm_seq_valid_bb): Compare remat stores
15869 RHSes and drop to full sm_other if they are not equal.
15870
15871 2020-05-25 Richard Biener <rguenther@suse.de>
15872
15873 PR tree-optimization/95271
15874 * tree-vect-stmts.c (vectorizable_bswap): Update invariant SLP
15875 children vector type.
15876 (vectorizable_call): Pass down slp ops.
15877
15878 2020-05-25 Richard Biener <rguenther@suse.de>
15879
15880 PR tree-optimization/95297
15881 * tree-vect-stmts.c (vectorizable_shift): For scalar_shift_arg
15882 skip updating operand 1 vector type.
15883
15884 2020-05-25 Richard Biener <rguenther@suse.de>
15885
15886 PR tree-optimization/95284
15887 * tree-ssa-sink.c (sink_common_stores_to_bb): Amend previous
15888 fix.
15889
15890 2020-05-25 Hongtao Liu <hongtao.liu@intel.com>
15891
15892 PR target/95125
15893 * config/i386/sse.md (sf2dfmode_lower): New mode attribute.
15894 (trunc<mode><sf2dfmode_lower>2) New expander.
15895 (extend<sf2dfmode_lower><mode>2): Ditto.
15896
15897 2020-05-23 Iain Sandoe <iain@sandoe.co.uk>
15898
15899 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make
15900 ubsan_{data,type},ASAN symbols linker-visible.
15901
15902 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
15903
15904 * lto-streamer-out.c (DFS::DFS): Silence warning.
15905
15906 2020-05-22 Uroš Bizjak <ubizjak@gmail.com>
15907
15908 PR target/95255
15909 * config/i386/i386.md (<rounding_insn><mode>2): Do not try to
15910 expand non-sse4 ROUND_ROUNDEVEN rounding via SSE support routines.
15911
15912 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
15913
15914 * lto-streamer-out.c (lto_output_tree): Do not stream final ref if
15915 it is not needed.
15916
15917 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
15918
15919 * lto-section-out.c (lto_output_decl_index): Adjust dump indentation.
15920 * lto-streamer-out.c (create_output_block): Fix whitespace
15921 (lto_write_tree_1): Add (debug) dump.
15922 (DFS::DFS): Add dump.
15923 (DFS::DFS_write_tree_body): Do not dump here.
15924 (lto_output_tree): Improve dumping; do not stream ref when not needed.
15925 (produce_asm_for_decls): Fix whitespace.
15926 * tree-streamer-out.c (streamer_write_tree_header): Add dump.
15927 * tree-streamer-out.c (streamer_write_integer_cst): Add debug dump.
15928
15929 2020-05-22 Hongtao.liu <hongtao.liu@intel.com>
15930
15931 PR target/92658
15932 * config/i386/sse.md (trunc<pmov_src_lower><mode>2): New expander
15933 (truncv32hiv32qi2): Ditto.
15934 (trunc<ssedoublemodelower><mode>2): Ditto.
15935 (trunc<mode><pmov_dst_3>2): Ditto.
15936 (trunc<mode><pmov_dst_mode_4>2): Ditto.
15937 (truncv2div2si2): Ditto.
15938 (truncv8div8qi2): Ditto.
15939 (avx512f_<code>v8div16qi2): Renaming from *avx512f_<code>v8div16qi2.
15940 (avx512vl_<code>v2div2si): Renaming from *avx512vl_<code>v2div2si2.
15941 (avx512vl_<code><mode>v2<ssecakarnum>qi2): Renaming from
15942 *avx512vl_<code><mode>v<ssescalarnum>qi2.
15943
15944 2020-05-22 H.J. Lu <hongjiu.lu@intel.com>
15945
15946 PR target/95258
15947 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15948 AVX512VPOPCNTDQ.
15949
15950 2020-05-22 Richard Biener <rguenther@suse.de>
15951
15952 PR tree-optimization/95268
15953 * tree-ssa-sink.c (sink_common_stores_to_bb): Handle clobbers
15954 properly.
15955
15956 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
15957
15958 * tree-streamer.c (record_common_node): Fix hash value of pre-streamed
15959 nodes.
15960
15961 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
15962
15963 * lto-streamer-in.c (lto_read_tree): Do not stream end markers.
15964 (lto_input_scc): Optimize streaming of entry lengths.
15965 * lto-streamer-out.c (lto_write_tree): Do not stream end markers
15966 (DFS::DFS): Optimize stremaing of entry lengths
15967
15968 2020-05-22 Richard Biener <rguenther@suse.de>
15969
15970 PR lto/95190
15971 * doc/invoke.texi (flto): Document behavior of diagnostic
15972 options.
15973
15974 2020-05-22 Richard Biener <rguenther@suse.de>
15975
15976 * tree-vectorizer.h (vect_is_simple_use): New overload.
15977 (vect_maybe_update_slp_op_vectype): New.
15978 * tree-vect-stmts.c (vect_is_simple_use): New overload
15979 accessing operands of SLP vs. non-SLP operation transparently.
15980 (vect_maybe_update_slp_op_vectype): New function updating
15981 the possibly shared SLP operands vector type.
15982 (vectorizable_operation): Be a bit more SLP vs non-SLP agnostic
15983 using the new vect_is_simple_use overload; update SLP invariant
15984 operand nodes vector type.
15985 (vectorizable_comparison): Likewise.
15986 (vectorizable_call): Likewise.
15987 (vectorizable_conversion): Likewise.
15988 (vectorizable_shift): Likewise.
15989 (vectorizable_store): Likewise.
15990 (vectorizable_condition): Likewise.
15991 (vectorizable_assignment): Likewise.
15992 * tree-vect-loop.c (vectorizable_reduction): Likewise.
15993 * tree-vect-slp.c (vect_get_constant_vectors): Enforce
15994 present SLP_TREE_VECTYPE and check it matches previous
15995 behavior.
15996
15997 2020-05-22 Richard Biener <rguenther@suse.de>
15998
15999 PR tree-optimization/95248
16000 * tree-ssa-loop-im.c (sm_seq_valid_bb): Remove bogus early out.
16001
16002 2020-05-22 Richard Biener <rguenther@suse.de>
16003
16004 * tree-vectorizer.h (_slp_tree::_slp_tree): New.
16005 (_slp_tree::~_slp_tree): Likewise.
16006 * tree-vect-slp.c (_slp_tree::_slp_tree): Factor out code
16007 from allocators.
16008 (_slp_tree::~_slp_tree): Implement.
16009 (vect_free_slp_tree): Simplify.
16010 (vect_create_new_slp_node): Likewise. Add nops parameter.
16011 (vect_build_slp_tree_2): Adjust.
16012 (vect_analyze_slp_instance): Likewise.
16013
16014 2020-05-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16015
16016 * adjust-alignment.c: Include memmodel.h.
16017
16018 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
16019
16020 PR target/95260
16021 * config/i386/cpuid.h: Use hexadecimal in comments.
16022
16023 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
16024
16025 PR target/95212
16026 * config/i386/i386-builtins.c (processor_features): Move
16027 F_AVX512VP2INTERSECT after F_AVX512BF16.
16028 (isa_names_table): Likewise.
16029
16030 2020-05-21 Martin Liska <mliska@suse.cz>
16031
16032 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
16033 Handle OPT_moutline_atomics.
16034 * config/aarch64/aarch64.c: Add outline-atomics to
16035 aarch64_attributes.
16036 * doc/extend.texi: Document the newly added target attribute.
16037
16038 2020-05-21 Uroš Bizjak <ubizjak@gmail.com>
16039
16040 PR target/95218
16041
16042 * config/i386/mmx.md (*mmx_<code>v2sf): Do not mark
16043 operands 1 and 2 commutative. Manually swap operands.
16044 (*mmx_nabsv2sf2): Ditto.
16045
16046 Partially revert:
16047 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
16048
16049 * config/i386/i386.md (*<code>tf2_1):
16050 Mark operands 1 and 2 commutative.
16051 (*nabstf2_1): Ditto.
16052 * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
16053 commutative. Do not swap operands.
16054 (*nabs<mode>2): Ditto.
16055
16056 2020-05-20 Uroš Bizjak <ubizjak@gmail.com>
16057
16058 PR target/95229
16059 * config/i386/sse.md (<code>v8qiv8hi2): Use
16060 simplify_gen_subreg instead of simplify_subreg.
16061 (<code>v8qiv8si2): Ditto.
16062 (<code>v4qiv4si2): Ditto.
16063 (<code>v4hiv4si2): Ditto.
16064 (<code>v8qiv8di2): Ditto.
16065 (<code>v4qiv4di2): Ditto.
16066 (<code>v2qiv2di2): Ditto.
16067 (<code>v4hiv4di2): Ditto.
16068 (<code>v2hiv2di2): Ditto.
16069 (<code>v2siv2di2): Ditto.
16070
16071 2020-05-20 Uroš Bizjak <ubizjak@gmail.com>
16072
16073 PR target/95238
16074 * config/i386/i386.md (*pushsi2_rex64):
16075 Use "e" constraint instead of "i".
16076
16077 2020-05-20 Jan Hubicka <hubicka@ucw.cz>
16078
16079 * lto-streamer-in.c (lto_input_scc): Add SHARED_SCC parameter.
16080 (lto_input_tree_1): Strenghten sanity check.
16081 (lto_input_tree): Update call of lto_input_scc.
16082 * lto-streamer-out.c: Include ipa-utils.h
16083 (create_output_block): Initialize local_trees if merigng is going
16084 to happen.
16085 (destroy_output_block): Destroy local_trees.
16086 (DFS): Add max_local_entry.
16087 (local_tree_p): New function.
16088 (DFS::DFS): Initialize and maintain it.
16089 (DFS::DFS_write_tree): Decide on streaming format.
16090 (lto_output_tree): Stream inline singleton SCCs
16091 * lto-streamer.h (enum LTO_tags): Add LTO_trees.
16092 (struct output_block): Add local_trees.
16093 (lto_input_scc): Update prototype.
16094
16095 2020-05-20 Patrick Palka <ppalka@redhat.com>
16096
16097 PR c++/95223
16098 * hash-table.h (hash_table::find_with_hash): Move up the call to
16099 hash_table::verify.
16100
16101 2020-05-20 Martin Liska <mliska@suse.cz>
16102
16103 * lto-compress.c (lto_compression_zstd): Fill up
16104 num_compressed_il_bytes.
16105 (lto_uncompression_zstd): Likewise for num_uncompressed_il_bytes here.
16106
16107 2020-05-20 Richard Biener <rguenther@suse.de>
16108
16109 PR tree-optimization/95219
16110 * tree-vect-loop.c (vectorizable_induction): Reduce
16111 group_size before computing the number of required IVs.
16112
16113 2020-05-20 Richard Biener <rguenther@suse.de>
16114
16115 PR middle-end/95231
16116 * tree-inline.c (remap_gimple_stmt): Revert adjusting
16117 COND_EXPR and VEC_COND_EXPR for a -fnon-call-exception boundary.
16118
16119 2020-05-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
16120 Andre Vieira <andre.simoesdiasvieira@arm.com>
16121
16122 PR target/94959
16123 * config/arm/arm-protos.h (arm_mode_base_reg_class): Function
16124 declaration.
16125 (mve_vector_mem_operand): Likewise.
16126 * config/arm/arm.c (thumb2_legitimate_address_p): For MVE target check
16127 the load from memory to a core register is legitimate for give mode.
16128 (mve_vector_mem_operand): Define function.
16129 (arm_print_operand): Modify comment.
16130 (arm_mode_base_reg_class): Define.
16131 * config/arm/arm.h (MODE_BASE_REG_CLASS): Modify to add check for
16132 TARGET_HAVE_MVE and expand to arm_mode_base_reg_class on TRUE.
16133 * config/arm/constraints.md (Ux): Likewise.
16134 (Ul): Likewise.
16135 * config/arm/mve.md (mve_mov): Replace constraint Us with Ux and also
16136 add support for missing Vector Store Register and Vector Load Register.
16137 Add a new alternative to support load from memory to PC (or label) in
16138 vector store/load.
16139 (mve_vstrbq_<supf><mode>): Modify constraint Us to Ux.
16140 (mve_vldrbq_<supf><mode>): Modify constriant Us to Ux, predicate to
16141 mve_memory_operand and also modify the MVE instructions to emit.
16142 (mve_vldrbq_z_<supf><mode>): Modify constraint Us to Ux.
16143 (mve_vldrhq_fv8hf): Modify constriant Us to Ux, predicate to
16144 mve_memory_operand and also modify the MVE instructions to emit.
16145 (mve_vldrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
16146 mve_memory_operand and also modify the MVE instructions to emit.
16147 (mve_vldrhq_z_fv8hf): Likewise.
16148 (mve_vldrhq_z_<supf><mode>): Likewise.
16149 (mve_vldrwq_fv4sf): Likewise.
16150 (mve_vldrwq_<supf>v4si): Likewise.
16151 (mve_vldrwq_z_fv4sf): Likewise.
16152 (mve_vldrwq_z_<supf>v4si): Likewise.
16153 (mve_vld1q_f<mode>): Modify constriant Us to Ux.
16154 (mve_vld1q_<supf><mode>): Likewise.
16155 (mve_vstrhq_fv8hf): Modify constriant Us to Ux, predicate to
16156 mve_memory_operand.
16157 (mve_vstrhq_p_fv8hf): Modify constriant Us to Ux, predicate to
16158 mve_memory_operand and also modify the MVE instructions to emit.
16159 (mve_vstrhq_p_<supf><mode>): Likewise.
16160 (mve_vstrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
16161 mve_memory_operand.
16162 (mve_vstrwq_fv4sf): Modify constriant Us to Ux.
16163 (mve_vstrwq_p_fv4sf): Modify constriant Us to Ux and also modify the MVE
16164 instructions to emit.
16165 (mve_vstrwq_p_<supf>v4si): Likewise.
16166 (mve_vstrwq_<supf>v4si): Likewise.Modify constriant Us to Ux.
16167 * config/arm/predicates.md (mve_memory_operand): Define.
16168
16169 2020-05-30 Richard Biener <rguenther@suse.de>
16170
16171 PR c/95141
16172 * c-fold.c (c_fully_fold_internal): Enhance guard on
16173 overflow_warning.
16174
16175 2020-05-20 Kito Cheng <kito.cheng@sifive.com>
16176
16177 PR target/90811
16178 * Makefile.in (OBJS): Add adjust-alignment.o.
16179 * adjust-alignment.c (pass_data_adjust_alignment): New.
16180 (pass_adjust_alignment): New.
16181 (pass_adjust_alignment::execute): New.
16182 (make_pass_adjust_alignment): New.
16183 * tree-pass.h (make_pass_adjust_alignment): New.
16184 * passes.def: Add pass_adjust_alignment.
16185
16186 2020-05-19 Alex Coplan <alex.coplan@arm.com>
16187
16188 PR target/94591
16189 * config/aarch64/aarch64.c (aarch64_evpc_rev_local): Don't match
16190 identity permutation.
16191
16192 2020-05-19 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16193
16194 * doc/sourcebuild.texi: Document new short_eq_int, ptr_eq_short,
16195 msp430_small, msp430_large and size24plus DejaGNU effective
16196 targets.
16197 Improve grammar in descriptions for size20plus and size32plus effective
16198 targets.
16199
16200 2020-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
16201
16202 * config/bpf/bpf.c (bpf_compute_frame_layout): Include space for
16203 callee saved registers only in xBPF.
16204 (bpf_expand_prologue): Save callee saved registers only in xBPF.
16205 (bpf_expand_epilogue): Likewise for restoring.
16206 * doc/invoke.texi (eBPF Options): Document this is activated by
16207 -mxbpf.
16208
16209 2020-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
16210
16211 * config/bpf/bpf.opt (mxbpf): New option.
16212 * doc/invoke.texi (Option Summary): Add -mxbpf.
16213 (eBPF Options): Document -mxbbpf.
16214
16215 2020-05-19 Uroš Bizjak <ubizjak@gmail.com>
16216
16217 PR target/92658
16218 * config/i386/sse.md (<code>v16qiv16hi2): New expander.
16219 (<code>v32qiv32hi2): Ditto.
16220 (<code>v8qiv8hi2): Ditto.
16221 (<code>v16qiv16si2): Ditto.
16222 (<code>v8qiv8si2): Ditto.
16223 (<code>v4qiv4si2): Ditto.
16224 (<code>v16hiv16si2): Ditto.
16225 (<code>v8hiv8si2): Ditto.
16226 (<code>v4hiv4si2): Ditto.
16227 (<code>v8qiv8di2): Ditto.
16228 (<code>v4qiv4di2): Ditto.
16229 (<code>v2qiv2di2): Ditto.
16230 (<code>v8hiv8di2): Ditto.
16231 (<code>v4hiv4di2): Ditto.
16232 (<code>v2hiv2di2): Ditto.
16233 (<code>v8siv8di2): Ditto.
16234 (<code>v4siv4di2): Ditto.
16235 (<code>v2siv2di2): Ditto.
16236
16237 2020-05-19 Kito Cheng <kito.cheng@sifive.com>
16238
16239 * common/config/riscv/riscv-common.c (riscv_implied_info_t): New.
16240 (riscv_implied_info): New.
16241 (riscv_subset_list): Add handle_implied_ext.
16242 (riscv_subset_list::to_string): New parameter version_p to
16243 control output format.
16244 (riscv_subset_list::handle_implied_ext): New.
16245 (riscv_subset_list::parse_std_ext): Call handle_implied_ext.
16246 (riscv_arch_str): New parameter version_p to control output format.
16247 (riscv_expand_arch): New.
16248 * config/riscv/riscv-protos.h (riscv_arch_str): New parameter,
16249 version_p.
16250 * config/riscv/riscv.h (riscv_expand_arch): New,
16251 (EXTRA_SPEC_FUNCTIONS): Define.
16252 (ASM_SPEC): Transform -march= via riscv_expand_arch.
16253
16254 2020-05-19 Kito Cheng <kito.cheng@sifive.com>
16255
16256 * riscv-common.c (parse_sv_or_non_std_ext): Rename to
16257 parse_multiletter_ext.
16258 (parse_multiletter_ext): Add parsing `h` and `z`, drop `sx`,
16259 adjust parsing order for 's' and 'x'.
16260
16261 2020-05-19 Richard Biener <rguenther@suse.de>
16262
16263 * tree-vectorizer.h (_slp_tree::vectype): Add field.
16264 (SLP_TREE_VECTYPE): New.
16265 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
16266 SLP_TREE_VECTYPE.
16267 (vect_create_new_slp_node): Likewise.
16268 (vect_prologue_cost_for_slp): Move here from tree-vect-stmts.c
16269 and simplify.
16270 (vect_slp_analyze_node_operations): Walk nodes children for
16271 invariant costing.
16272 (vect_get_constant_vectors): Use local scope op variable.
16273 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Remove here.
16274 (vect_model_simple_cost): Adjust.
16275 (vect_model_store_cost): Likewise.
16276 (vectorizable_store): Likewise.
16277
16278 2020-05-18 Martin Sebor <msebor@redhat.com>
16279
16280 PR middle-end/92815
16281 * tree-object-size.c (decl_init_size): New function.
16282 (addr_object_size): Call it.
16283 * tree.h (last_field): Declare.
16284 (first_field): Add attribute nonnull.
16285
16286 2020-05-18 Martin Sebor <msebor@redhat.com>
16287
16288 PR middle-end/94940
16289 * tree-vrp.c (vrp_prop::check_mem_ref): Remove unreachable code.
16290 * tree.c (component_ref_size): Correct the handling or array members
16291 of unions.
16292 Drop a pointless test.
16293 Rename a local variable.
16294
16295 2020-05-18 Jason Merrill <jason@redhat.com>
16296
16297 * aclocal.m4: Add ax_cxx_compile_stdcxx.m4.
16298 * configure.ac: Use AX_CXX_COMPILE_STDCXX(11).
16299
16300 2020-05-14 Jason Merrill <jason@redhat.com>
16301
16302 * doc/install.texi (Prerequisites): Update boostrap compiler
16303 requirement to C++11/GCC 4.8.
16304
16305 2020-05-18 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
16306
16307 PR tree-optimization/94952
16308 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
16309 Initialize variables bitpos, bitregion_start, and bitregion_end in
16310 order to silence warnings about use of uninitialized variables.
16311
16312 2020-05-18 Carl Love <cel@us.ibm.com>
16313
16314 PR target/94833
16315 * config/rs6000/vsx.md (define_expand): Fix instruction generation for
16316 first_match_index_<mode>.
16317 * testsuite/gcc.target/powerpc/builtins-8-p9-runnable.c (main): Add
16318 additional test cases with zero vector elements.
16319
16320 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
16321
16322 PR target/95169
16323 * config/i386/i386-expand.c (ix86_expand_int_movcc):
16324 Avoid reversing a non-trapping comparison to a trapping one.
16325
16326 2020-05-18 Alex Coplan <alex.coplan@arm.com>
16327
16328 * config/arm/arm.c (output_move_double): Fix codegen when loading into
16329 a register pair with an odd base register.
16330
16331 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
16332
16333 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
16334 Do not emit FLAGS_REG clobber for TFmode.
16335 * config/i386/i386.md (*<code>tf2_1): Rewrite as
16336 define_insn_and_split. Mark operands 1 and 2 commutative.
16337 (*nabstf2_1): Ditto.
16338 (absneg SSE splitter): Use MODEF mode iterator instead of SSEMODEF.
16339 Do not swap memory operands. Simplify RTX generation.
16340 (neg abs SSE splitter): Ditto.
16341 * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
16342 commutative. Do not swap operands. Simplify RTX generation.
16343 (*nabs<mode>2): Ditto.
16344
16345 2020-05-18 Richard Biener <rguenther@suse.de>
16346
16347 * tree-vect-slp.c (vect_slp_bb): Start after labels.
16348 (vect_get_constant_vectors): Really place init stmt after scalar defs.
16349 * tree-vect-stmts.c (vect_init_vector_1): Insert before
16350 region begin.
16351
16352 2020-05-18 H.J. Lu <hongjiu.lu@intel.com>
16353
16354 * config/i386/driver-i386.c (host_detect_local_cpu): Support
16355 Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
16356 processor families.
16357
16358 2020-05-18 Richard Biener <rguenther@suse.de>
16359
16360 PR middle-end/95171
16361 * tree-inline.c (remap_gimple_stmt): Split out trapping compares
16362 when inlining into a non-call EH function.
16363
16364 2020-05-18 Richard Biener <rguenther@suse.de>
16365
16366 PR tree-optimization/95172
16367 * tree-ssa-loop-im.c (execute_sm): Get flag whether we
16368 eventually need the conditional processing.
16369 (execute_sm_exit): When processing an orderd sequence
16370 avoid doing any conditional processing.
16371 (hoist_memory_references): Pass down whether all edges
16372 have ordered processing for a ref to execute_sm.
16373
16374 2020-05-17 Jeff Law <law@redhat.com>
16375
16376 * config/h8300/predicates.md (pc_or_label_operand): New predicate.
16377 * config/h8300/jumpcall.md (branch_true, branch_false): Consolidate
16378 into a single pattern using pc_or_label_operand.
16379 * config/h8300/combiner.md (bit branch patterns): Likewise.
16380 * config/h8300/peepholes.md (HImode and SImode branches): Likewise.
16381
16382 2020-05-17 H.J. Lu <hongjiu.lu@intel.com>
16383
16384 PR target/95021
16385 * config/i386/i386-features.c (has_non_address_hard_reg):
16386 Renamed to ...
16387 (pseudo_reg_set): This. Return the SET expression. Ignore
16388 pseudo register push.
16389 (general_scalar_to_vector_candidate_p): Combine single_set and
16390 has_non_address_hard_reg calls to pseudo_reg_set.
16391 (timode_scalar_to_vector_candidate_p): Likewise.
16392 * config/i386/i386.md (*pushv1ti2): New pattern.
16393
16394 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16395
16396 Revert:
16397 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16398
16399 * tree-vrp.c (operand_less_p): Move to...
16400 * vr-values.c (operand_less_p): ...here.
16401 * tree-vrp.h (operand_less_p): Remove.
16402
16403 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16404
16405 * tree-vrp.c (operand_less_p): Move to...
16406 * vr-values.c (operand_less_p): ...here.
16407 * tree-vrp.h (operand_less_p): Remove.
16408
16409 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16410
16411 * tree-vrp.c (class vrp_insert): Remove prototype for
16412 live_on_edge.
16413
16414 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16415
16416 * tree-vrp.c (class live_names): New.
16417 (live_on_edge): Move into live_names.
16418 (build_assert_expr_for): Move into vrp_insert.
16419 (find_assert_locations_in_bb): Rename from
16420 find_assert_locations_1.
16421 (process_assert_insertions_for): Move into vrp_insert.
16422 (compare_assert_loc): Same.
16423 (remove_range_assertions): Same.
16424 (dump_asserts_for): Rename to vrp_insert::dump.
16425 (debug_asserts_for): Rename to vrp_insert::debug.
16426 (dump_all_asserts): Rename to vrp_insert::dump.
16427 (debug_all_asserts): Rename to vrp_insert::debug.
16428
16429 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
16430
16431 * tree-vrp.c (class vrp_prop): Move check_all_array_refs,
16432 check_array_ref, check_mem_ref, and search_for_addr_array
16433 into new class...
16434 (class array_bounds_checker): ...here.
16435 (class check_array_bounds_dom_walker): Adjust to use
16436 array_bounds_checker.
16437 (check_all_array_refs): Move into array_bounds_checker and rename
16438 to check.
16439 (class vrp_folder): Make fold_predicate_in private.
16440
16441 2020-05-15 Jeff Law <law@redhat.com>
16442
16443 * config/h8300/h8300.md (SFI iterator): New iterator for
16444 SFmode and SImode.
16445 * config/h8300/peepholes.md (memory comparison): Use mode
16446 iterator to consolidate 3 patterns into one.
16447 (stack allocation and stack store): Handle SFmode. Handle
16448 8 byte allocations.
16449
16450 2020-05-15 Segher Boessenkool <segher@kernel.crashing.org>
16451
16452 * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_2): Also require
16453 RS6000_BTM_POWERPC64.
16454
16455 2020-05-15 Uroš Bizjak <ubizjak@gmail.com>
16456
16457 * config/i386/i386.md (SWI48DWI): New mode iterator.
16458 (*push<mode>2): Allow XMM registers.
16459 (*pushdi2_rex64): Ditto.
16460 (*pushsi2_rex64): Ditto.
16461 (*pushsi2): Ditto.
16462 (push XMM reg splitter): New splitter
16463
16464 (*pushdf) Change "x" operand constraint to "v".
16465 (*pushsf_rex64): Ditto.
16466 (*pushsf): Ditto.
16467
16468 2020-05-15 Richard Biener <rguenther@suse.de>
16469
16470 PR tree-optimization/92260
16471 * tree-vect-slp.c (vect_get_constant_vectors): Compute
16472 the number of vector stmts in a canonical way.
16473
16474 2020-05-15 Martin Liska <mliska@suse.cz>
16475
16476 * hsa-gen.c (get_symbol_for_decl): Fix misleading indentation
16477 warning.
16478
16479 2020-05-15 Andrew Stubbs <ams@codesourcery.com>
16480
16481 * config/gcn/gcn-valu.md (v<expander><mode>3): Fix unsignedp.
16482
16483 2020-05-15 Richard Biener <rguenther@suse.de>
16484
16485 PR tree-optimization/95133
16486 * gimple-ssa-split-paths.c
16487 (find_block_to_duplicate_for_splitting_paths): Check for
16488 normal edges.
16489
16490 2020-05-15 Christophe Lyon <christophe.lyon@linaro.org>
16491
16492 * config/arm/arm.c (reg_needs_saving_p): Add support for interrupt
16493 routines.
16494 (arm_compute_save_reg0_reg12_mask): Use reg_needs_saving_p.
16495
16496 2020-05-15 Tobias Burnus <tobias@codesourcery.com>
16497
16498 PR middle-end/94635
16499 * gimplify.c (gimplify_scan_omp_clauses): For MAP_TO_PSET with
16500 OMP_TARGET_EXIT_DATA, use 'release:' unless the associated
16501 item is 'delete:'.
16502
16503 2020-05-15 Uroš Bizjak <ubizjak@gmail.com>
16504
16505 PR target/95046
16506 * config/i386/i386.md (isa): Add sse3_noavx.
16507 (enabled): Handle sse3_noavx.
16508
16509 * config/i386/mmx.md (mmx_haddv2sf3): New expander.
16510 (*mmx_haddv2sf3): Rename from mmx_haddv2sf3. Add SSE/AVX
16511 alternatives. Match commutative vec_select selector operands.
16512 (*mmx_haddv2sf3_low): New insn pattern.
16513
16514 (*mmx_hsubv2sf3): Add SSE/AVX alternatives.
16515 (*mmx_hsubv2sf3_low): New insn pattern.
16516
16517 2020-05-15 Richard Biener <rguenther@suse.de>
16518
16519 PR tree-optimization/33315
16520 * tree-ssa-sink.c: Include tree-eh.h.
16521 (sink_stats): Add commoned member.
16522 (sink_common_stores_to_bb): New function implementing store
16523 commoning by sinking to the successor.
16524 (sink_code_in_bb): Call it, pass down TODO_cleanup_cfg returned.
16525 (pass_sink_code::execute): Likewise. Record commoned stores
16526 in statistics.
16527
16528 2020-05-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16529
16530 PR rtl-optimization/37451, part of PR target/61837
16531 * loop-doloop.c (doloop_simplify_count): New function. Simplify
16532 (add -1; zero_ext; add +1) to zero_ext when not wrapping.
16533 (doloop_modify): Call doloop_simplify_count.
16534
16535 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
16536
16537 PR jit/94778
16538 * doc/sourcebuild.texi: Document effective target lgccjit.
16539
16540 2020-05-14 Andrew Stubbs <ams@codesourcery.com>
16541
16542 * config/gcn/gcn-valu.md (add<mode>3_zext_dup): Change to a
16543 define_expand, and rename the original to ...
16544 (add<mode>3_vcc_zext_dup): ... this, and add a custom VCC operand.
16545 (add<mode>3_zext_dup_exec): Likewise, with ...
16546 (add<mode>3_vcc_zext_dup_exec): ... this.
16547 (add<mode>3_zext_dup2): Likewise, with ...
16548 (add<mode>3_zext_dup_exec): ... this.
16549 (add<mode>3_zext_dup2_exec): Likewise, with ...
16550 (add<mode>3_zext_dup2): ... this.
16551 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address): Switch
16552 addv64di3_zext* calls to use addv64di3_vcc_zext*.
16553
16554 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
16555
16556 PR target/95046
16557 * config/i386/sse.md (truncv2dfv2df2): New insn pattern.
16558 (extendv2sfv2df2): Ditto.
16559
16560 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
16561
16562 * configure: Regenerated.
16563
16564 2020-05-14 Christophe Lyon <christophe.lyon@linaro.org>
16565
16566 * config/arm/arm.c (reg_needs_saving_p): New function.
16567 (use_return_insn): Use reg_needs_saving_p.
16568 (arm_get_vfp_saved_size): Likewise.
16569 (arm_compute_frame_layout): Likewise.
16570 (arm_save_coproc_regs): Likewise.
16571 (thumb1_expand_epilogue): Likewise.
16572 (arm_expand_epilogue_apcs_frame): Likewise.
16573 (arm_expand_epilogue): Likewise.
16574
16575 2020-05-14 Christophe Lyon <christophe.lyon@linaro.org>
16576
16577 * config/arm/arm.c (thumb1_expand_prologue): Update error message.
16578
16579 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
16580
16581 PR target/95046
16582 * config/i386/sse.md (sse2_cvtpi2pd): Add memory to alternative 1.
16583
16584 (floatv2siv2df2): New expander.
16585 (floatunsv2siv2df2): New insn pattern.
16586
16587 (fix_truncv2dfv2si2): New expander.
16588 (fixuns_truncv2dfv2si2): New insn pattern.
16589
16590 2020-05-14 Richard Sandiford <richard.sandiford@arm.com>
16591
16592 PR target/95105
16593 * config/aarch64/aarch64-sve-builtins.cc
16594 (handle_arm_sve_vector_bits_attribute): Create a copy of the
16595 original type's TYPE_MAIN_VARIANT, then reapply all the differences
16596 between the original type and its main variant.
16597
16598 2020-05-14 Richard Biener <rguenther@suse.de>
16599
16600 PR middle-end/95118
16601 * real.c (real_to_decimal_for_mode): Make sure we handle
16602 a zero with nonzero exponent.
16603
16604 2020-05-14 Jakub Jelinek <jakub@redhat.com>
16605
16606 * Makefile.in (GTFILES): Add omp-general.c.
16607 * cgraph.h (struct cgraph_node): Add declare_variant_alt and
16608 calls_declare_variant_alt members and initialize them in the
16609 ctor.
16610 * ipa.c (symbol_table::remove_unreachable_nodes): Handle direct
16611 calls to declare_variant_alt nodes.
16612 * lto-cgraph.c (lto_output_node): Write declare_variant_alt
16613 and calls_declare_variant_alt.
16614 (input_overwrite_node): Read them back.
16615 * omp-simd-clone.c (simd_clone_create): Copy calls_declare_variant_alt
16616 bit.
16617 * tree-inline.c (expand_call_inline): Or in calls_declare_variant_alt
16618 bit.
16619 (tree_function_versioning): Copy calls_declare_variant_alt bit.
16620 * omp-offload.c (execute_omp_device_lower): Call
16621 omp_resolve_declare_variant on direct function calls.
16622 (pass_omp_device_lower::gate): Also enable for
16623 calls_declare_variant_alt functions.
16624 * omp-general.c (omp_maybe_offloaded): Return false after inlining.
16625 (omp_context_selector_matches): Handle the case when
16626 cfun->curr_properties has PROP_gimple_any bit set.
16627 (struct omp_declare_variant_entry): New type.
16628 (struct omp_declare_variant_base_entry): New type.
16629 (struct omp_declare_variant_hasher): New type.
16630 (omp_declare_variant_hasher::hash, omp_declare_variant_hasher::equal):
16631 New methods.
16632 (omp_declare_variants): New variable.
16633 (struct omp_declare_variant_alt_hasher): New type.
16634 (omp_declare_variant_alt_hasher::hash,
16635 omp_declare_variant_alt_hasher::equal): New methods.
16636 (omp_declare_variant_alt): New variables.
16637 (omp_resolve_late_declare_variant): New function.
16638 (omp_resolve_declare_variant): Call omp_resolve_late_declare_variant
16639 when called late. Create a magic declare_variant_alt fndecl and
16640 cgraph node and return that if decision needs to be deferred until
16641 after gimplification.
16642 * cgraph.c (symbol_table::create_edge): Or in calls_declare_variant_alt
16643 bit.
16644
16645 PR middle-end/95108
16646 * omp-simd-clone.c (struct modify_stmt_info): Add after_stmt member.
16647 (ipa_simd_modify_stmt_ops): For PHIs, only add before first stmt in
16648 entry block if info->after_stmt is NULL, otherwise add after that stmt
16649 and update it after adding each stmt.
16650 (ipa_simd_modify_function_body): Initialize info.after_stmt.
16651
16652 * function.h (struct function): Add has_omp_target bit.
16653 * omp-offload.c (omp_discover_declare_target_fn_r): New function,
16654 old renamed to ...
16655 (omp_discover_declare_target_tgt_fn_r): ... this.
16656 (omp_discover_declare_target_var_r): Call
16657 omp_discover_declare_target_tgt_fn_r instead of
16658 omp_discover_declare_target_fn_r.
16659 (omp_discover_implicit_declare_target): Also queue functions with
16660 has_omp_target bit set, for those walk with
16661 omp_discover_declare_target_fn_r, for declare target to functions
16662 walk with omp_discover_declare_target_tgt_fn_r.
16663
16664 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
16665
16666 PR target/95046
16667 * config/i386/mmx.md (mmx_fix_truncv2sfv2si2): Rename from mmx_pf2id.
16668 Add SSE/AVX alternative. Change operand predicates from
16669 nonimmediate_operand to register_mmxmem_operand.
16670 Enable instruction pattern for TARGET_MMX_WITH_SSE.
16671 (fix_truncv2sfv2si2): New expander.
16672 (fixuns_truncv2sfv2si2): New insn pattern.
16673
16674 (mmx_floatv2siv2sf2): rename from mmx_floatv2si2.
16675 Add SSE/AVX alternative. Change operand predicates from
16676 nonimmediate_operand to register_mmxmem_operand.
16677 Enable instruction pattern for TARGET_MMX_WITH_SSE.
16678 (floatv2siv2sf2): New expander.
16679 (floatunsv2siv2sf2): New insn pattern.
16680
16681 * config/i386/i386-builtin.def (IX86_BUILTIN_PF2ID):
16682 Update for rename.
16683 (IX86_BUILTIN_PI2FD): Ditto.
16684
16685 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
16686
16687 * config/s390/s390.c (s390_emit_stack_probe): Call the probe_stack
16688 expander.
16689 * config/s390/s390.md ("@probe_stack2<mode>", "probe_stack"): New
16690 expanders.
16691
16692 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
16693
16694 * config/s390/s390.c (allocate_stack_space): Add missing updates
16695 of last_probe_offset.
16696
16697 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
16698
16699 * config/s390/s390.md ("allocate_stack"): Call
16700 anti_adjust_stack_and_probe_stack_clash when stack clash
16701 protection is enabled.
16702 * explow.c (anti_adjust_stack_and_probe_stack_clash): Remove
16703 prototype. Remove static.
16704 * explow.h (anti_adjust_stack_and_probe_stack_clash): Add
16705 prototype.
16706
16707 2020-05-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
16708
16709 * config/rs6000/altivec.h (vec_extractl): New #define.
16710 (vec_extracth): Likewise.
16711 * config/rs6000/altivec.md (UNSPEC_EXTRACTL): New constant.
16712 (UNSPEC_EXTRACTR): Likewise.
16713 (vextractl<mode>): New expansion.
16714 (vextractl<mode>_internal): New insn.
16715 (vextractr<mode>): New expansion.
16716 (vextractr<mode>_internal): New insn.
16717 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vextdubvlx):
16718 New built-in function.
16719 (__builtin_altivec_vextduhvlx): Likewise.
16720 (__builtin_altivec_vextduwvlx): Likewise.
16721 (__builtin_altivec_vextddvlx): Likewise.
16722 (__builtin_altivec_vextdubvhx): Likewise.
16723 (__builtin_altivec_vextduhvhx): Likewise.
16724 (__builtin_altivec_vextduwvhx): Likewise.
16725 (__builtin_altivec_vextddvhx): Likewise.
16726 (__builtin_vec_extractl): New overloaded built-in function.
16727 (__builtin_vec_extracth): Likewise.
16728 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
16729 Define overloaded forms of __builtin_vec_extractl and
16730 __builtin_vec_extracth.
16731 (builtin_function_type): Add cases to mark arguments of new
16732 built-in functions as unsigned.
16733 (rs6000_common_init_builtins): Add
16734 opaque_ftype_opaque_opaque_opaque_opaque.
16735 * config/rs6000/rs6000.md (du_or_d): New mode attribute.
16736 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
16737 for a Future Architecture): Add description of vec_extractl and
16738 vec_extractr built-in functions.
16739
16740 2020-05-13 Richard Biener <rguenther@suse.de>
16741
16742 * target.def (add_stmt_cost): Add new vectype parameter.
16743 * targhooks.c (default_add_stmt_cost): Adjust.
16744 * targhooks.h (default_add_stmt_cost): Likewise.
16745 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Take new
16746 vectype parameter.
16747 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
16748 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
16749 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
16750
16751 * tree-vectorizer.h (stmt_info_for_cost::vectype): Add.
16752 (dump_stmt_cost): Add new vectype parameter.
16753 (add_stmt_cost): Likewise.
16754 (record_stmt_cost): Likewise.
16755 (record_stmt_cost): Add overload with old signature.
16756 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
16757 Adjust.
16758 (vect_get_known_peeling_cost): Likewise.
16759 (vect_estimate_min_profitable_iters): Likewise.
16760 * tree-vectorizer.c (dump_stmt_cost): Add new vectype parameter.
16761 * tree-vect-stmts.c (record_stmt_cost): Likewise.
16762 (vect_prologue_cost_for_slp_op): Remove stmt_vec_info parameter
16763 and pass down correct vectype and NULL stmt_info.
16764 (vect_model_simple_cost): Adjust.
16765 (vect_model_store_cost): Likewise.
16766
16767 2020-05-13 Richard Biener <rguenther@suse.de>
16768
16769 * tree-vectorizer.h (SLP_INSTANCE_GROUP_SIZE): Remove.
16770 (_slp_instance::group_size): Likewise.
16771 * tree-vect-loop.c (vectorizable_reduction): The group size
16772 is the number of lanes in the node.
16773 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
16774 (vect_analyze_slp_instance): Do not set SLP_INSTANCE_GROUP_SIZE,
16775 verify it matches the instance trees number of lanes.
16776 (vect_slp_analyze_node_operations_1): Use the numer of lanes
16777 in the node as group size.
16778 (vect_bb_vectorization_profitable_p): Use the instance root
16779 number of lanes for the size of life.
16780 (vect_schedule_slp_instance): Use the number of lanes as
16781 group_size.
16782 * tree-vect-stmts.c (vectorizable_load): Remove SLP instance
16783 parameter. Use the number of lanes of the load for the group
16784 size in the gap adjustment code.
16785 (vect_analyze_stmt): Adjust.
16786 (vect_transform_stmt): Likewise.
16787
16788 2020-05-13 Jakub Jelinek <jakub@redhat.com>
16789
16790 PR debug/95080
16791 * cfgrtl.c (purge_dead_edges): Skip over debug and note insns even
16792 if the last insn is a note.
16793
16794 PR tree-optimization/95060
16795 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Fold a NEGATE_EXPR
16796 if it is the single use of the FMA internal builtin.
16797
16798 2020-05-13 Bin Cheng <bin.cheng@linux.alibaba.com>
16799
16800 PR tree-optimization/94969
16801 * tree-data-dependence.c (constant_access_functions): Rename to...
16802 (invariant_access_functions): ...this. Add parameter. Check for
16803 invariant access function, rather than constant.
16804 (build_classic_dist_vector): Call above function.
16805 * tree-loop-distribution.c (pg_add_dependence_edges): Add comment.
16806
16807 2020-05-13 Hongtao Liu <hongtao.liu@intel.com>
16808
16809 PR target/94118
16810 * doc/extend.texi (x86Operandmodifiers): Document more x86
16811 operand modifier.
16812 * gcc/config/i386/i386.c: Add comment for operand modifier N and I.
16813
16814 2020-05-12 Giuliano Belinassi <giuliano.belinassi@usp.br>
16815
16816 * tree-vrp.c (class vrp_insert): New.
16817 (insert_range_assertions): Move to class vrp_insert.
16818 (dump_all_asserts): Same as above.
16819 (dump_asserts_for): Same as above.
16820 (live): Same as above.
16821 (need_assert_for): Same as above.
16822 (live_on_edge): Same as above.
16823 (finish_register_edge_assert_for): Same as above.
16824 (find_switch_asserts): Same as above.
16825 (find_assert_locations): Same as above.
16826 (find_assert_locations_1): Same as above.
16827 (find_conditional_asserts): Same as above.
16828 (process_assert_insertions): Same as above.
16829 (register_new_assert_for): Same as above.
16830 (vrp_prop): New variable fun.
16831 (vrp_initialize): New parameter.
16832 (identify_jump_threads): Same as above.
16833 (execute_vrp): Same as above.
16834
16835
16836 2020-05-12 Keith Packard <keith.packard@sifive.com>
16837
16838 * config/riscv/riscv.c (riscv_unique_section): New.
16839 (TARGET_ASM_UNIQUE_SECTION): New.
16840
16841 2020-05-12 Craig Blackmore <craig.blackmore@embecosm.com>
16842
16843 * config.gcc: Add riscv-shorten-memrefs.o to extra_objs for riscv.
16844 * config/riscv/riscv-passes.def: New file.
16845 * config/riscv/riscv-protos.h (make_pass_shorten_memrefs): Declare.
16846 * config/riscv/riscv-shorten-memrefs.c: New file.
16847 * config/riscv/riscv.c (tree-pass.h): New include.
16848 (riscv_compressed_reg_p): New Function
16849 (riscv_compressed_lw_offset_p): Likewise.
16850 (riscv_compressed_lw_address_p): Likewise.
16851 (riscv_shorten_lw_offset): Likewise.
16852 (riscv_legitimize_address): Attempt to convert base + large_offset
16853 to compressible new_base + small_offset.
16854 (riscv_address_cost): Make anticipated compressed load/stores
16855 cheaper for code size than uncompressed load/stores.
16856 (riscv_register_priority): Move compressed register check to
16857 riscv_compressed_reg_p.
16858 * config/riscv/riscv.h (C_S_BITS): Define.
16859 (CSW_MAX_OFFSET): Define.
16860 * config/riscv/riscv.opt (mshorten-memefs): New option.
16861 * config/riscv/t-riscv (riscv-shorten-memrefs.o): New rule.
16862 (PASSES_EXTRA): Add riscv-passes.def.
16863 * doc/invoke.texi: Document -mshorten-memrefs.
16864
16865 * config/riscv/riscv.c (riscv_new_address_profitable_p): New function.
16866 (TARGET_NEW_ADDRESS_PROFITABLE_P): Define.
16867 * doc/tm.texi: Regenerate.
16868 * doc/tm.texi.in (TARGET_NEW_ADDRESS_PROFITABLE_P): New hook.
16869 * sched-deps.c (attempt_change): Use old address if it is cheaper than
16870 new address.
16871 * target.def (new_address_profitable_p): New hook.
16872 * targhooks.c (default_new_address_profitable_p): New function.
16873 * targhooks.h (default_new_address_profitable_p): Declare.
16874
16875 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
16876
16877 PR target/95046
16878 * config/i386/mmx.md (copysignv2sf3): New expander.
16879 (xorsignv2sf3): Ditto.
16880 (signbitv2sf3): Ditto.
16881
16882 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
16883
16884 PR target/95046
16885 * config/i386/mmx.md (fmav2sf4): New insn pattern.
16886 (fmsv2sf4): Ditto.
16887 (fnmav2sf4): Ditto.
16888 (fnmsv2sf4): Ditto.
16889
16890 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
16891
16892 * Makefile.in (CET_HOST_FLAGS): New.
16893 (COMPILER): Add $(CET_HOST_FLAGS).
16894 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
16895 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
16896 enabled.
16897 * aclocal.m4: Regenerated.
16898 * configure: Likewise.
16899
16900 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
16901
16902 PR target/95046
16903 * config/i386/mmx.md (<code>v2sf2): New insn pattern.
16904 (*mmx_<code>v2sf2): New insn_and_split pattern.
16905 (*mmx_nabsv2sf2): Ditto.
16906 (*mmx_andnotv2sf3): New insn pattern.
16907 (*mmx_<code>v2sf3): Ditto.
16908 * config/i386/i386.md (absneg_op): New code attribute.
16909 * config/i386/i386.c (ix86_build_const_vector): Handle V2SFmode.
16910 (ix86_build_signbit_mask): Ditto.
16911
16912 2020-05-12 Richard Biener <rguenther@suse.de>
16913
16914 * tree-ssa-live.c (remove_unused_locals): Remove dead debug
16915 bind resets.
16916
16917 2020-05-12 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16918
16919 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16920 Update prototype to include "local" argument.
16921 * config/msp430/msp430.c (msp430_output_aligned_decl_common): Add
16922 "local" argument. Handle local common decls.
16923 * config/msp430/msp430.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Adjust
16924 msp430_output_aligned_decl_common call with 0 for "local" argument.
16925 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
16926
16927 2020-05-12 Richard Biener <rguenther@suse.de>
16928
16929 * cfghooks.c (split_edge): Preserve EDGE_DFS_BACK if set.
16930
16931 2020-05-12 Martin Liska <mliska@suse.cz>
16932
16933 PR sanitizer/95033
16934 PR sanitizer/95051
16935 * sanopt.c (sanitize_rewrite_addressable_params):
16936 Clear DECL_NOT_GIMPLE_REG_P for argument.
16937
16938 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
16939
16940 PR tree-optimization/94980
16941 * tree-vect-generic.c (expand_vector_comparison): Use
16942 vector_element_bits_tree to get the element size in bits,
16943 rather than using TYPE_SIZE.
16944 (expand_vector_condition, vector_element): Likewise.
16945
16946 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
16947
16948 PR tree-optimization/94980
16949 * tree-vect-generic.c (build_replicated_const): Take the number
16950 of bits as a parameter, instead of the type of the elements.
16951 (do_plus_minus): Update accordingly, using vector_element_bits
16952 to calculate the correct number of bits.
16953 (do_negate): Likewise.
16954
16955 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
16956
16957 PR tree-optimization/94980
16958 * tree.h (vector_element_bits, vector_element_bits_tree): Declare.
16959 * tree.c (vector_element_bits, vector_element_bits_tree): New.
16960 * match.pd: Use the new functions instead of determining the
16961 vector element size directly from TYPE_SIZE(_UNIT).
16962 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
16963 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
16964 * tree-vect-stmts.c (vect_is_simple_cond): Likewise.
16965 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
16966 (expand_vector_conversion): Likewise.
16967 (expand_vector_addition): Likewise for a TYPE_SIZE_UNIT used as
16968 a divisor. Convert the dividend to bits to compensate.
16969 * tree-vect-loop.c (vectorizable_live_operation): Call
16970 vector_element_bits instead of open-coding it.
16971
16972 2020-05-12 Jakub Jelinek <jakub@redhat.com>
16973
16974 * omp-offload.h (omp_discover_implicit_declare_target): Declare.
16975 * omp-offload.c: Include context.h.
16976 (omp_declare_target_fn_p, omp_declare_target_var_p,
16977 omp_discover_declare_target_fn_r, omp_discover_declare_target_var_r,
16978 omp_discover_implicit_declare_target): New functions.
16979 * cgraphunit.c (analyze_functions): Call
16980 omp_discover_implicit_declare_target.
16981
16982 2020-05-12 Richard Biener <rguenther@suse.de>
16983
16984 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Canonicalize
16985 literal constant &MEM[..] to a constant literal.
16986
16987 2020-05-12 Richard Biener <rguenther@suse.de>
16988
16989 PR tree-optimization/95045
16990 * dbgcnt.def (lim): Add debug-counter.
16991 * tree-ssa-loop-im.c: Include dbgcnt.h.
16992 (find_refs_for_sm): Use lim debug counter for store motion
16993 candidates.
16994 (do_store_motion): Rename form store_motion. Commit edge
16995 insertions...
16996 (store_motion_loop): ... here.
16997 (tree_ssa_lim): Adjust.
16998
16999 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17000
17001 * config/rs6000/altivec.h (vec_clzm): Rename to vec_cntlzm.
17002 (vec_ctzm): Rename to vec_cnttzm.
17003 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17004 Change fourth operand for vec_ternarylogic to require
17005 compatibility with unsigned SImode rather than unsigned QImode.
17006 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
17007 Remove overloaded forms of vec_gnb that are no longer needed.
17008 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17009 for a Future Architecture): Replace vec_clzm with vec_cntlzm;
17010 replace vec_ctzm with vec_cntlzm; remove four unwanted forms of
17011 vec_gnb; move vec_ternarylogic documentation into this section
17012 and replace const unsigned char with const unsigned int as its
17013 fourth argument.
17014
17015 2020-05-11 Carl Love <cel@us.ibm.com>
17016
17017 * config/rs6000/altivec.h (vec_genpcvm): New #define.
17018 * config/rs6000/rs6000-builtin.def (XXGENPCVM_V16QI): New built-in
17019 instantiation.
17020 (XXGENPCVM_V8HI): Likewise.
17021 (XXGENPCVM_V4SI): Likewise.
17022 (XXGENPCVM_V2DI): Likewise.
17023 (XXGENPCVM): New overloaded built-in instantiation.
17024 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add
17025 entries for FUTURE_BUILTIN_VEC_XXGENPCVM.
17026 (altivec_expand_builtin): Add special handling for
17027 FUTURE_BUILTIN_VEC_XXGENPCVM.
17028 (builtin_function_type): Add handling for
17029 FUTURE_BUILTIN_XXGENPCVM_{V16QI,V8HI,V4SI,V2DI}.
17030 * config/rs6000/vsx.md (VSX_EXTRACT_I4): New mode iterator.
17031 (UNSPEC_XXGENPCV): New constant.
17032 (xxgenpcvm_<mode>_internal): New insn.
17033 (xxgenpcvm_<mode>): New expansion.
17034 * doc/extend.texi: Add documentation for vec_genpcvm built-ins.
17035
17036 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17037
17038 * config/rs6000/altivec.h (vec_strir): New #define.
17039 (vec_stril): Likewise.
17040 (vec_strir_p): Likewise.
17041 (vec_stril_p): Likewise.
17042 * config/rs6000/altivec.md (UNSPEC_VSTRIR): New constant.
17043 (UNSPEC_VSTRIL): Likewise.
17044 (vstrir_<mode>): New expansion.
17045 (vstrir_code_<mode>): New insn.
17046 (vstrir_p_<mode>): New expansion.
17047 (vstrir_p_code_<mode>): New insn.
17048 (vstril_<mode>): New expansion.
17049 (vstril_code_<mode>): New insn.
17050 (vstril_p_<mode>): New expansion.
17051 (vstril_p_code_<mode>): New insn.
17052 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vstribr):
17053 New built-in function.
17054 (__builtin_altivec_vstrihr): Likewise.
17055 (__builtin_altivec_vstribl): Likewise.
17056 (__builtin_altivec_vstrihl): Likewise.
17057 (__builtin_altivec_vstribr_p): Likewise.
17058 (__builtin_altivec_vstrihr_p): Likewise.
17059 (__builtin_altivec_vstribl_p): Likewise.
17060 (__builtin_altivec_vstrihl_p): Likewise.
17061 (__builtin_vec_strir): New overloaded built-in function.
17062 (__builtin_vec_stril): Likewise.
17063 (__builtin_vec_strir_p): Likewise.
17064 (__builtin_vec_stril_p): Likewise.
17065 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
17066 Define overloaded forms of __builtin_vec_strir,
17067 __builtin_vec_stril, __builtin_vec_strir_p, and
17068 __builtin_vec_stril_p.
17069 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17070 for a Future Architecture): Add description of vec_stril,
17071 vec_stril_p, vec_strir, and vec_strir_p built-in functions.
17072
17073 2020-05-11 Kelvin Nilsen <wschmidt@linux.ibm.com>
17074
17075 * config/rs6000/altivec.h (vec_ternarylogic): New #define.
17076 * config/rs6000/altivec.md (UNSPEC_XXEVAL): New constant.
17077 (xxeval): New insn.
17078 * config/rs6000/predicates.md (u8bit_cint_operand): New predicate.
17079 * config/rs6000/rs6000-builtin.def: Add handling of new macro
17080 RS6000_BUILTIN_4.
17081 (BU_FUTURE_V_4): New macro. Use it.
17082 (BU_FUTURE_OVERLOAD_4): Likewise.
17083 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Add
17084 handling for quaternary built-in functions.
17085 (altivec_resolve_overloaded_builtin): Add special-case handling
17086 for __builtin_vec_xxeval.
17087 * config/rs6000/rs6000-call.c: Add handling of new macro
17088 RS6000_BUILTIN_4 in initialization of rs6000_builtin_info,
17089 bdesc0_arg, bdesc1_arg, bdesc2_arg, bdesc_3arg,
17090 bdesc_altivec_preds, bdesc_abs, and bdesc_htm arrays.
17091 (altivec_overloaded_builtins): Add definitions for
17092 FUTURE_BUILTIN_VEC_XXEVAL.
17093 (bdesc_4arg): New array.
17094 (htm_expand_builtin): Add handling for quaternary built-in
17095 functions.
17096 (rs6000_expand_quaternop_builtin): New function.
17097 (rs6000_expand_builtin): Add handling for quaternary built-in
17098 functions.
17099 (rs6000_init_builtins): Initialize builtin_mode_to_type entries
17100 for unsigned QImode and unsigned HImode.
17101 (builtin_quaternary_function_type): New function.
17102 (rs6000_common_init_builtins): Add handling of quaternary
17103 operations.
17104 * config/rs6000/rs6000.h (RS6000_BTC_QUATERNARY): New defined
17105 constant.
17106 (RS6000_BTC_PREDICATE): Change value of constant.
17107 (RS6000_BTC_ABS): Likewise.
17108 (rs6000_builtins): Add support for new macro RS6000_BUILTIN_4.
17109 * doc/extend.texi (PowerPC AltiVec Built-In Functions Available
17110 for a Future Architecture): Add description of vec_ternarylogic
17111 built-in function.
17112
17113 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17114
17115 * config/rs6000/rs6000-builtin.def (__builtin_pdepd): New built-in
17116 function.
17117 (__builtin_pextd): Likewise.
17118 * config/rs6000/rs6000.md (UNSPEC_PDEPD): New constant.
17119 (UNSPEC_PEXTD): Likewise.
17120 (pdepd): New insn.
17121 (pextd): Likewise.
17122 * doc/extend.texi (Basic PowerPC Built-in Functions Available for
17123 a Future Architecture): Add descriptions of __builtin_pdepd and
17124 __builtin_pextd functions.
17125
17126 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17127
17128 * config/rs6000/altivec.h (vec_clrl): New #define.
17129 (vec_clrr): Likewise.
17130 * config/rs6000/altivec.md (UNSPEC_VCLRLB): New constant.
17131 (UNSPEC_VCLRRB): Likewise.
17132 (vclrlb): New insn.
17133 (vclrrb): Likewise.
17134 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vclrlb): New
17135 built-in function.
17136 (__builtin_altivec_vclrrb): Likewise.
17137 (__builtin_vec_clrl): New overloaded built-in function.
17138 (__builtin_vec_clrr): Likewise.
17139 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
17140 Define overloaded forms of __builtin_vec_clrl and
17141 __builtin_vec_clrr.
17142 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17143 for a Future Architecture): Add descriptions of vec_clrl and
17144 vec_clrr.
17145
17146 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17147
17148 * config/rs6000/rs6000-builtin.def (__builtin_cntlzdm): New
17149 built-in function definition.
17150 (__builtin_cnttzdm): Likewise.
17151 * config/rs6000/rs6000.md (UNSPEC_CNTLZDM): New constant.
17152 (UNSPEC_CNTTZDM): Likewise.
17153 (cntlzdm): New insn.
17154 (cnttzdm): Likewise.
17155 * doc/extend.texi (Basic PowerPC Built-in Functions available for
17156 a Future Architecture): Add descriptions of __builtin_cntlzdm and
17157 __builtin_cnttzdm functions.
17158
17159 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
17160
17161 PR target/95046
17162 * config/i386/mmx.md (sqrtv2sf2): New insn pattern.
17163
17164 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17165
17166 * config/rs6000/altivec.h (vec_cfuge): New #define.
17167 * config/rs6000/altivec.md (UNSPEC_VCFUGED): New constant.
17168 (vcfuged): New insn.
17169 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vcfuged):
17170 New built-in function.
17171 * config/rs6000/rs6000-call.c (builtin_function_type): Add
17172 handling for FUTURE_BUILTIN_VCFUGED case.
17173 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17174 for a Future Architecture): Add description of vec_cfuge built-in
17175 function.
17176
17177 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17178
17179 * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_0): New
17180 #define.
17181 (BU_FUTURE_MISC_1): Likewise.
17182 (BU_FUTURE_MISC_2): Likewise.
17183 (BU_FUTURE_MISC_3): Likewise.
17184 (__builtin_cfuged): New built-in function definition.
17185 * config/rs6000/rs6000.md (UNSPEC_CFUGED): New constant.
17186 (cfuged): New insn.
17187 * doc/extend.texi (Basic PowerPC Built-in Functions Available for
17188 a Future Architecture): New subsubsection.
17189
17190 2020-05-11 Richard Biener <rguenther@suse.de>
17191
17192 PR tree-optimization/95049
17193 * tree-ssa-sccvn.c (set_ssa_val_to): Reject lattice transition
17194 between different constants.
17195
17196 2020-05-11 Richard Sandiford <richard.sandiford@arm.com>
17197
17198 * tree-pretty-print.c (dump_generic_node): Handle BOOLEAN_TYPEs.
17199
17200 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17201 Bill Schmidt <wschmidt@linux.ibm.com>
17202
17203 * config/rs6000/altivec.h (vec_gnb): New #define.
17204 * config/rs6000/altivec.md (UNSPEC_VGNB): New constant.
17205 (vgnb): New insn.
17206 * config/rs6000/rs6000-builtin.def (BU_FUTURE_OVERLOAD_1): New
17207 #define.
17208 (BU_FUTURE_OVERLOAD_2): Likewise.
17209 (BU_FUTURE_OVERLOAD_3): Likewise.
17210 (__builtin_altivec_gnb): New built-in function.
17211 (__buiiltin_vec_gnb): New overloaded built-in function.
17212 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
17213 Define overloaded forms of __builtin_vec_gnb.
17214 (rs6000_expand_binop_builtin): Add error checking for 2nd argument
17215 of __builtin_vec_gnb.
17216 (builtin_function_type): Mark return value and arguments unsigned
17217 for FUTURE_BUILTIN_VGNB.
17218 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
17219 for a Future Architecture): Add description of vec_gnb built-in
17220 function.
17221
17222 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17223 Bill Schmidt <wschmidt@linux.ibm.com>
17224
17225 * config/rs6000/altivec.h (vec_pdep): New macro implementing new
17226 built-in function.
17227 (vec_pext): Likewise.
17228 * config/rs6000/altivec.md (UNSPEC_VPDEPD): New constant.
17229 (UNSPEC_VPEXTD): Likewise.
17230 (vpdepd): New insn.
17231 (vpextd): Likewise.
17232 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vpdepd): New
17233 built-in function.
17234 (__builtin_altivec_vpextd): Likewise.
17235 * config/rs6000/rs6000-call.c (builtin_function_type): Add
17236 handling for FUTURE_BUILTIN_VPDEPD and FUTURE_BUILTIN_VPEXTD
17237 cases.
17238 * doc/extend.texi (PowerPC Altivec Built-in Functions Available
17239 for a Future Architecture): Add description of vec_pdep and
17240 vec_pext built-in functions.
17241
17242 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
17243 Bill Schmidt <wschmidt@linux.ibm.com>
17244
17245 * config/rs6000/altivec.h (vec_clzm): New macro.
17246 (vec_ctzm): Likewise.
17247 * config/rs6000/altivec.md (UNSPEC_VCLZDM): New constant.
17248 (UNSPEC_VCTZDM): Likewise.
17249 (vclzdm): New insn.
17250 (vctzdm): Likewise.
17251 * config/rs6000/rs6000-builtin.def (BU_FUTURE_V_0): New macro.
17252 (BU_FUTURE_V_1): Likewise.
17253 (BU_FUTURE_V_2): Likewise.
17254 (BU_FUTURE_V_3): Likewise.
17255 (__builtin_altivec_vclzdm): New builtin definition.
17256 (__builtin_altivec_vctzdm): Likewise.
17257 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Cause
17258 _ARCH_PWR_FUTURE macro to be defined if OPTION_MASK_FUTURE flag is
17259 set.
17260 * config/rs6000/rs6000-call.c (builtin_function_type): Set return
17261 value and parameter types to be unsigned for VCLZDM and VCTZDM.
17262 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
17263 support for TARGET_FUTURE flag.
17264 * config/rs6000/rs6000.h (RS6000_BTM_FUTURE): New macro constant.
17265 * doc/extend.texi (PowerPC Altivec Built-in Functions Available
17266 for a Future Architecture): New subsubsection.
17267
17268 2020-05-11 Richard Biener <rguenther@suse.de>
17269
17270 PR tree-optimization/94988
17271 PR tree-optimization/95025
17272 * tree-ssa-loop-im.c (seq_entry): Make a struct, add from.
17273 (sm_seq_push_down): Take extra parameter denoting where we
17274 moved the ref to.
17275 (execute_sm_exit): Re-issue sm_other stores in the correct
17276 order.
17277 (sm_seq_valid_bb): When always executed, allow sm_other to
17278 prevail inbetween sm_ord and record their stored value.
17279 (hoist_memory_references): Adjust refs_not_supported propagation
17280 and prune sm_other from the end of the ordered sequences.
17281
17282 2020-05-11 Felix Yang <felix.yang@huawei.com>
17283
17284 PR target/94991
17285 * config/aarch64/aarch64.md (mov<mode>):
17286 Bitcasts to the equivalent integer mode using gen_lowpart
17287 instead of doing FAIL for scalar floating point move.
17288
17289 2020-05-11 Alex Coplan <alex.coplan@arm.com>
17290
17291 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Add case
17292 to correctly calculate cost for new pattern (*csinv3_uxtw_insn3).
17293 * config/aarch64/aarch64.md (*csinv3_utxw_insn1): New.
17294 (*csinv3_uxtw_insn2): New.
17295 (*csinv3_uxtw_insn3): New.
17296 * config/aarch64/iterators.md (neg_not_cs): New.
17297
17298 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
17299
17300 PR target/95046
17301 * config/i386/mmx.md (mmx_addv2sf3): Use "v" constraint
17302 instead of "Yv" for AVX alternatives. Add "prefix" attribute.
17303 (*mmx_addv2sf3): Ditto.
17304 (*mmx_subv2sf3): Ditto.
17305 (*mmx_mulv2sf3): Ditto.
17306 (*mmx_<code>v2sf3): Ditto.
17307 (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
17308
17309 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
17310
17311 PR target/95046
17312 * config/i386/i386.c (ix86_vector_mode_supported_p):
17313 Vectorize 3dNOW! vector modes for TARGET_MMX_WITH_SSE.
17314 * config/i386/mmx.md (*mov<mode>_internal): Do not set
17315 mode of alternative 13 to V2SF for TARGET_MMX_WITH_SSE.
17316
17317 (mmx_addv2sf3): Change operand predicates from
17318 nonimmediate_operand to register_mmxmem_operand.
17319 (addv2sf3): New expander.
17320 (*mmx_addv2sf3): Add SSE/AVX alternatives. Change operand
17321 predicates from nonimmediate_operand to register_mmxmem_operand.
17322 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17323
17324 (mmx_subv2sf3): Change operand predicate from
17325 nonimmediate_operand to register_mmxmem_operand.
17326 (mmx_subrv2sf3): Ditto.
17327 (subv2sf3): New expander.
17328 (*mmx_subv2sf3): Add SSE/AVX alternatives. Change operand
17329 predicates from nonimmediate_operand to register_mmxmem_operand.
17330 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17331
17332 (mmx_mulv2sf3): Change operand predicates from
17333 nonimmediate_operand to register_mmxmem_operand.
17334 (mulv2sf3): New expander.
17335 (*mmx_mulv2sf3): Add SSE/AVX alternatives. Change operand
17336 predicates from nonimmediate_operand to register_mmxmem_operand.
17337 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17338
17339 (mmx_<code>v2sf3): Change operand predicates from
17340 nonimmediate_operand to register_mmxmem_operand.
17341 (<code>v2sf3): New expander.
17342 (*mmx_<code>v2sf3): Add SSE/AVX alternatives. Change operand
17343 predicates from nonimmediate_operand to register_mmxmem_operand.
17344 Enable instruction pattern for TARGET_MMX_WITH_SSE.
17345 (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
17346
17347 2020-05-11 Martin Liska <mliska@suse.cz>
17348
17349 PR c/95040
17350 * common.opt: Fix typo in option description.
17351
17352 2020-05-11 Martin Liska <mliska@suse.cz>
17353
17354 PR gcov-profile/94928
17355 * gcov-io.h: Add caveat about coverage format parsing and
17356 possible outdated documentation.
17357
17358 2020-05-11 Xiong Hu Luo <luoxhu@linux.ibm.com>
17359
17360 PR tree-optimization/83403
17361 * tree-affine.c (expr_to_aff_combination): Replace SSA_NAME with
17362 determine_value_range, Add fold conversion of MULT_EXPR, fix the
17363 previous PLUS_EXPR.
17364
17365 2020-05-10 Gerald Pfeifer <gerald@pfeifer.com>
17366
17367 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and
17368 __ILP32__ for 32-bit targets.
17369
17370 2020-05-09 Eric Botcazou <ebotcazou@adacore.com>
17371
17372 * tree.h (expr_align): Delete.
17373 * tree.c (expr_align): Likewise.
17374
17375 2020-05-09 Hans-Peter Nilsson <hp@axis.com>
17376
17377 * resource.c (init_resource_info): Filter-out TARGET_FLAGS_REGNUM
17378 from end_of_function_needs.
17379
17380 * config.gcc: Remove support for crisv32-*-* and cris-*-linux*.
17381 * config/cris/t-linux, config/cris/linux.h, config/cris/linux.opt:
17382 Remove.
17383 * config/cris/t-elfmulti: Remove crisv32 multilib.
17384 * config/cris: Remove shared-library and CRIS v32 support.
17385
17386 Move trivially from cc0 to reg:CC model, removing most optimizations.
17387 * config/cris/cris.md: Remove all side-effect patterns and their
17388 splitters. Remove most peepholes. Add clobbers of CRIS_CC0_REGNUM
17389 to all but post-reload control-flow and movem insns. Remove
17390 constraints on all modified expanders. Remove obsoleted cc0-related
17391 references.
17392 (attr "cc"): Remove alternative "rev".
17393 (mode_iterator BWDD, DI_, SI_): New.
17394 (mode_attr sCC_destc, cmp_op1c, cmp_op2c): New.
17395 ("tst<mode>"): Remove; fold as "M" alternative into compare insn.
17396 ("mstep_shift", "mstep_mul"): Remove patterns.
17397 ("s<rcond>", "s<ocond>", "s<ncond>"): Anonymize.
17398 * config/cris/cris.c: Change all non-condition-code,
17399 non-control-flow emitted insns to add a parallel with clobber of
17400 CRIS_CC0_REGNUM, mostly by changing from gen_rtx_SET with
17401 emit_insn to use of emit_move_insn, gen_add2_insn or
17402 cris_emit_insn, as convenient.
17403 (cris_reg_overlap_mentioned_p)
17404 (cris_normal_notice_update_cc, cris_notice_update_cc): Remove.
17405 (cris_movem_load_rest_p): Don't assume all elements in a
17406 PARALLEL are SETs.
17407 (cris_store_multiple_op_p): Ditto.
17408 (cris_emit_insn): New function.
17409 * cris/cris-protos.h (cris_emit_insn): Declare.
17410
17411 PR target/93372
17412 * config/cris/cris.md (zcond): New code_iterator.
17413 ("*cbranch<mode>4_btstq<CC>"): New insn_and_split.
17414
17415 * config/cris/cris.c (TARGET_FLAGS_REGNUM): Define.
17416
17417 * config/cris/cris.h (REVERSIBLE_CC_MODE): Define to true.
17418
17419 * config/cris/cris.md ("movsi"): For memory destination
17420 post-reload, generate clobberless variant. Similarly for a
17421 zero-source post-reload.
17422 ("*mov_tomem<mode>_split"): New split.
17423 ("*mov_tomem<mode>"): New insn.
17424 ("enabled", mov_tomem_enabled): Define and use to exclude "x" ->
17425 "Q>m" for less-than-SImode.
17426 ("*mov_fromzero<mode>_split"): New split.
17427 ("*mov_fromzero<mode>"): New insn.
17428
17429 Prepare for cmpelim pass to eliminate redundant compare insns.
17430 * config/cris/cris-modes.def: New file.
17431 * config/cris/cris-protos.h (cris_select_cc_mode): Declare.
17432 (cris_notice_update_cc): Remove left-over declaration.
17433 * config/cris/cris.c (TARGET_CC_MODES_COMPATIBLE): Define.
17434 (cris_select_cc_mode, cris_cc_modes_compatible): New functions.
17435 * config/cris/cris.h (SELECT_CC_MODE): Define.
17436 * config/cris/cris.md (NZSET, NZUSE, NZVCSET, NZVCUSE): New
17437 mode_iterators.
17438 (cond): New code_iterator.
17439 (nzcond): Replacement for incorrect ncond. All callers changed.
17440 (nzvccond): Replacement for ocond. All callers changed.
17441 (rnzcond): Replacement for rcond. All callers changed.
17442 (xCC): New code_attr.
17443 (cmp_op1c, cmp_op0c): Renumber from cmp_op1c and cmp_op2c. All
17444 users changed.
17445 ("*cmpdi<NZVCSET:mode>"): Rename from "*cmpdi". Replace
17446 CCmode with iteration over NZVCSET.
17447 ("*cmp_ext<BW:mode><NZVCSET:mode>"): Similarly; rename from
17448 "*cmp_ext<mode>".
17449 ("*cmpsi<NZVCSET:mode>"): Similarly, from "*cmpsi".
17450 ("*cmp<BW:mode><NZVCSET:mode>"): Similarly from "*cmp<mode>".
17451 ("*btst<mode>"): Similarly, from "*btst".
17452 ("*cbranch<mode><code>4"): Rename from "*cbranch<mode>4",
17453 iterating over cond instead of matching the comparison with
17454 ordered_comparison_operator.
17455 ("*cbranch<mode>4_btstq<CC>"): Correct label operand number.
17456 ("b<zcond:code><mode>"): Rename from "b<ncond:code>", iterating
17457 over NZUSE.
17458 ("b<nzvccond:code><mode>"): Similarly from "b<ocond:code>", over
17459 NZVCUSE. Remove FIXME.
17460 ("*b<nzcond:code>_reversed<mode>"): Similarly from
17461 "*b<ncond:code>_reversed", over NZUSE.
17462 ("*b<nzvccond:code>_reversed<mode>"): Similarly from
17463 "*b<ocond:code>_reversed", over NZVCUSE. Remove FIXME.
17464 ("b<rnzcond:code><mode>"): Similarly from "b<rcond:code>",
17465 over NZUSE. Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
17466 depending on CC_NZmode vs. CCmode. Remove FIXME.
17467 ("*b<rnzcond:code>_reversed<mode>"): Similarly from
17468 "*b<rcond:code>_reversed", over NZUSE.
17469 ("*cstore<mode><code>4"): Rename from "*cstore<mode>4",
17470 iterating over cond instead of matching the comparison with
17471 ordered_comparison_operator.
17472 ("*s<nzcond:code><mode>"): Rename from "*s<ncond:code>",
17473 iterating over NZUSE.
17474 ("*s<rnzcond:code><mode>"): Similar from "*s<rcond:code>", over
17475 NZUSE. Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
17476 depending on CC_NZmode vs. CCmode.
17477 ("*s<nzvccond:code><mode>"): Simlar from "*s<ocond:code>", over
17478 NZVCUSE. Remove FIXME.
17479 ("cc"): Comment on new use.
17480 ("cc_enabled"): New attribute.
17481 ("enabled"): Make default fall back to cc_enabled.
17482 ("setnz", "ccnz", "setnzvc", "ccnzvc", "setcc", "cccc"): New
17483 default_subst_attrs.
17484 ("setnz_subst", "setnzvc_subst", "setcc_subst"): New default_subst.
17485 ("*movsi_internal<setcc><setnz><setnzvc>"): Rename from
17486 "*movsi_internal". Correct contents of, and rename attribute
17487 "cc" to "cc<cccc><ccnz><ccnzvc>".
17488 ("anz", "anzvc", "acc"): New define_subst_attrs.
17489 ("<acc><anz><anzvc>movhi<setcc><setnz><setnzvc>"): Rename from
17490 "movhi". Rename "cc" attribute to "cc<cccc><ccnz><ccnzvc>".
17491 ("<acc><anz><anzvc>movqi<setcc><setnz><setnzvc>"): Similar from
17492 "movqi". Correct contents of, and rename "cc" attribute to
17493 "cc<cccc><ccnz><ccnzvc>".
17494 ("*b<zcond:code><mode>"): Rename from "b<zcond:code><mode>".
17495 ("*b<nzvccond:code><mode>"): Rename from "b<nzvccond:code><mode>".
17496 ("*b<rnzcond:code><mode>"): Rename from "*b<rnzcond:code><mode>".
17497 ("<acc><anz><anzvc>extend<mode>si2<setcc><setnz><setnzvc>"):
17498 Rename from "extend<mode>si2".
17499 ("<acc><anz><anzvc>zero_extend<mode>si2<setcc><setnz><setnzvc>"):
17500 Similar, from "zero_extend<mode>si2".
17501 ("*adddi3<setnz>"): Rename from "*adddi3".
17502 ("*subdi3<setnz>"): Similarly from "*subdi3".
17503 ("*addsi3<setnz>"): Similarly from "*addsi3".
17504 ("*subsi3<setnz>"): Similarly from "*subsi3".
17505 ("*addhi3<setnz>"): Similarly from "*addhi3" and decorate the
17506 "cc" attribute to "cc<ccnz>".
17507 ("*addqi3<setnz>"): Similarly from "*addqi3".
17508 ("*sub<mode>3<setnz>"): Similarly from "*sub<mode>3".
17509 ("*expanded_andsi<setcc><setnz><setnzvc>"): Rename from
17510 "*expanded_andsi".
17511 ("*iorsi3<setcc><setnz><setnzvc>"): Similar from "*iorsi3".
17512 Decorate "cc" attribute to make "cc<cccc><ccnz><ccnzvc>".
17513 ("*iorhi3<setcc><setnz><setnzvc>"): Similar from "*iorhi3".
17514 ("*iorqi3<setcc><setnz><setnzvc>"): Similar from "*iorqi3".
17515 ("*expanded_andhi<setcc><setnz><setnzvc>"): Similar from
17516 "*expanded_andhi". Add quick cc-setting alternative for 0..31.
17517 ("*andqi3<setcc><setnz><setnzvc>"): Similar from "*andqi3".
17518 ("<acc><anz><anzvc>xorsi3<setcc><setnz><setnzvc>"): Rename
17519 from "xorsi3".
17520 ("<acc><anz><anzvc>one_cmplsi2<setcc><setnz><setnzvc>"): Rename
17521 from "one_cmplsi2".
17522 ("<acc><anz><anzvc><shlr>si3<setcc><setnz><setnzvc>"): Rename
17523 from "<shlr>si3".
17524 ("<acc><anz><anzvc>clzsi2<setcc><setnz><setnzvc>"): Rename
17525 from "clzsi2".
17526 ("<acc><anz><anzvc>bswapsi2<setcc><setnz><setnzvc>"): Rename
17527 from "bswapsi2".
17528 ("*uminsi3<setcc><setnz><setnzvc>"): Rename from "*uminsi3".
17529
17530 * config/cris/cris-modes.def (CC_ZnN): New CC_MODE.
17531 * config/cris/cris.c (cris_rtx_costs): Handle pre-split bit-test
17532 * config/cris/cris.md (ZnNNZSET, ZnNNZUSE): New mode_iterators.
17533 (znnCC, rznnCC): New code_attrs.
17534 ("*btst<mode>"): Iterator over ZnNNZSET instead of NZVCSET. Remove
17535 obseolete comment. Add belt-and-suspenders mode-test to condition.
17536 Add fixme regarding remaining matched-but-not-generated case.
17537 ("*cbranch<mode>4_btstrq1_<CC>"): New insn_and_split.
17538 ("*cbranch<mode>4_btstqb0_<CC>"): Rename from
17539 "*cbranch<mode>4_btstq<CC>". Split to CC_NZ instead of CC.
17540 ("*b<zcond:code><mode>"): Iterate over ZnNNZUSE instead of NZUSE.
17541 Handle output of CC_ZnNmode.
17542 ("*b<nzcond:code>_reversed<mode>"): Ditto.
17543
17544 * config/cris/cris.c (cris_select_cc_mode): Return CC_NZmode for
17545 NEG too. Correct comment.
17546 * config/cris/cris.md ("<anz>neg<mode>2<setnz>"): Rename from
17547 "neg<mode>2".
17548
17549 2020-05-08 Vladimir Makarov <vmakarov@redhat.com>
17550
17551 * ira-color.c (update_costs_from_allocno): Remove
17552 conflict_cost_update_p argument. Propagate costs only along
17553 threads. Always do conflict cost update. Add printing debugging
17554 info.
17555 (update_costs_from_copies): Add printing debugging info.
17556 (restore_costs_from_copies): Ditto.
17557 (assign_hard_reg): Improve debug info.
17558 (push_only_colorable): Ditto. Call update_costs_from_prefs.
17559 (color_allocnos): Remove update_costs_from_prefs.
17560
17561 2020-05-08 Richard Biener <rguenther@suse.de>
17562
17563 * tree-vectorizer.h (vec_info::slp_loads): New.
17564 (vect_optimize_slp): Declare.
17565 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
17566 nothing when there are no loads.
17567 (vect_gather_slp_loads): Gather loads into a vector.
17568 (vect_supported_load_permutation_p): Remove.
17569 (vect_analyze_slp_instance): Do not verify permutation
17570 validity here.
17571 (vect_analyze_slp): Optimize permutations of reductions
17572 after all SLP instances have been gathered and gather
17573 all loads.
17574 (vect_optimize_slp): New function split out from
17575 vect_supported_load_permutation_p. Elide some permutations.
17576 (vect_slp_analyze_bb_1): Call vect_optimize_slp.
17577 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
17578 * tree-vect-stmts.c (vectorizable_load): Check whether
17579 the load can be permuted. When generating code assert we can.
17580
17581 2020-05-08 Richard Biener <rguenther@suse.de>
17582
17583 * tree-ssa-sccvn.c (rpo_avail): Change type to
17584 eliminate_dom_walker *.
17585 (eliminate_with_rpo_vn): Adjust rpo_avail to make vn_valueize
17586 use the DOM walker availability.
17587 (vn_reference_fold_indirect): Use get_addr_base_and_unit_offset_1
17588 with vn_valueize as valueization callback.
17589 (vn_reference_maybe_forwprop_address): Likewise.
17590 * tree-dfa.c (get_addr_base_and_unit_offset_1): Also valueize
17591 array_ref_low_bound.
17592
17593 2020-05-08 Jakub Jelinek <jakub@redhat.com>
17594
17595 PR tree-optimization/94786
17596 * match.pd (A ^ ((A ^ B) & -(C cmp D)) -> (C cmp D) ? B : A): New
17597 simplification.
17598
17599 PR target/94857
17600 * config/i386/i386.md (peephole2 after *add<mode>3_cc_overflow_1): New
17601 define_peephole2.
17602
17603 PR middle-end/94724
17604 * tree.c (get_narrower): Reuse the op temporary instead of
17605 shadowing it.
17606
17607 PR tree-optimization/94783
17608 * match.pd ((X + (X >> (prec - 1))) ^ (X >> (prec - 1)) to abs (X)):
17609 New simplification.
17610
17611 PR tree-optimization/94956
17612 * match.pd (FFS): Optimize __builtin_ffs* of non-zero argument into
17613 __builtin_ctz* + 1 if direct IFN_CTZ is supported.
17614
17615 PR tree-optimization/94913
17616 * match.pd (A - B + -1 >= A to B >= A): New simplification.
17617 (A - B > A to A < B): Don't test TYPE_OVERFLOW_WRAPS which is always
17618 true for TYPE_UNSIGNED integral types.
17619
17620 PR bootstrap/94961
17621 PR rtl-optimization/94516
17622 * rtl.h (remove_reg_equal_equiv_notes): Add a bool argument defaulted
17623 to false.
17624 * rtlanal.c (remove_reg_equal_equiv_notes): Add no_rescan argument.
17625 Call df_notes_rescan if that argument is not true and returning true.
17626 * combine.c (adjust_for_new_dest): Pass true as second argument to
17627 remove_reg_equal_equiv_notes.
17628 * postreload.c (reload_combine_recognize_pattern): Don't call
17629 df_notes_rescan.
17630
17631 2020-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17632
17633 * config/rs6000/rs6000.md (*setnbc_<un>signed_<GPR:mode>): New
17634 define_insn.
17635 (*setnbcr_<un>signed_<GPR:mode>): New define_insn.
17636 (*neg_eq_<mode>): Avoid for TARGET_FUTURE; add missing && 1.
17637 (*neg_ne_<mode>): Likewise.
17638
17639 2020-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17640
17641 * config/rs6000/rs6000.md (setbc_<un>signed_<GPR:mode>): New
17642 define_insn.
17643 (*setbcr_<un>signed_<GPR:mode>): Likewise.
17644 (cstore<mode>4): Use setbc[r] if available.
17645 (<code><GPR:mode><GPR2:mode>2_isel): Avoid for TARGET_FUTURE.
17646 (eq<mode>3): Use setbc for TARGET_FUTURE.
17647 (*eq<mode>3): Avoid for TARGET_FUTURE.
17648 (ne<mode>3): Replace :P with :GPR; use setbc for TARGET_FUTURE;
17649 else for non-Pmode, use gen_eq and gen_xor.
17650 (*ne<mode>3): Avoid for TARGET_FUTURE.
17651 (*eqsi3_ext<mode>): Avoid for TARGET_FUTURE; fix missing && 1.
17652
17653 2020-05-07 Jeff Law <law@redhat.com>
17654
17655 * config/h8300/h8300.md: Move expanders and patterns into
17656 files based on functionality.
17657 * config/h8300/addsub.md: New file.
17658 * config/h8300/bitfield.md: New file
17659 * config/h8300/combiner.md: New file
17660 * config/h8300/divmod.md: New file
17661 * config/h8300/extensions.md: New file
17662 * config/h8300/jumpcall.md: New file
17663 * config/h8300/logical.md: New file
17664 * config/h8300/movepush.md: New file
17665 * config/h8300/multiply.md: New file
17666 * config/h8300/other.md: New file
17667 * config/h8300/proepi.md: New file
17668 * config/h8300/shiftrotate.md: New file
17669 * config/h8300/testcompare.md: New file
17670
17671 * config/h8300/h8300.md (adds/subs splitters): Merge into single
17672 splitter.
17673 (negation expanders and patterns): Simplify and combine using
17674 iterators.
17675 (one_cmpl expanders and patterns): Likewise.
17676 (tablejump, indirect_jump patterns ): Likewise.
17677 (shift and rotate expanders and patterns): Likewise.
17678 (absolute value expander and pattern): Drop expander, rename pattern
17679 to just "abssf2"
17680 (peephole2 patterns): Move into...
17681 * config/h8300/peepholes.md: New file.
17682
17683 * config/h8300/constraints.md (L and N): Simplify now that we're not
17684 longer supporting the original H8/300 chip.
17685 * config/h8300/elf.h (LINK_SPEC): Likewise. Default to H8/300H.
17686 * config/h8300/h8300.c (shift_alg_qi): Drop H8/300 support.
17687 (shift_alg_hi, shift_alg_si): Similarly.
17688 (h8300_option_overrides): Similarly. Default to H8/300H. If
17689 compiling for H8/S, then turn off H8/300H. Do not update the
17690 shift_alg tables for H8/300 port.
17691 (h8300_emit_stack_adjustment): Remove support for H8/300. Simplify
17692 where possible.
17693 (push, split_adds_subs, h8300_rtx_costs): Likewise.
17694 (h8300_print_operand, compute_mov_length): Likewise.
17695 (output_plussi, compute_plussi_length): Likewise.
17696 (compute_plussi_cc, output_logical_op): Likewise.
17697 (compute_logical_op_length, compute_logical_op_cc): Likewise.
17698 (get_shift_alg, h8300_shift_needs_scratch): Likewise.
17699 (output_a_shift, compute_a_shift_length): Likewise.
17700 (output_a_rotate, compute_a_rotate_length): Likewise.
17701 (output_simode_bld, h8300_hard_regno_mode_ok): Likewise.
17702 (h8300_modes_tieable_p, h8300_return_in_memory): Likewise.
17703 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
17704 (attr_cpu, TARGET_H8300): Remove.
17705 (TARGET_DEFAULT): Update.
17706 (UNITS_PER_WORD, PARM_BOUNDARY): Simplify where possible.
17707 (BIGGEST_ALIGNMENT, STACK_BOUNDARY): Likewise.
17708 (CONSTANT_ADDRESS_P, MOVE_MAX, Pmode): Likewise.
17709 (SIZE_TYPE, POINTER_SIZE, ASM_WORD_OP): Likewise.
17710 * config/h8300/h8300.md: Simplify patterns throughout.
17711 * config/h8300/t-h8300: Update multilib configuration.
17712
17713 * config/h8300/h8300.h (LINK_SPEC): Remove.
17714 (USER_LABEL_PREFIX): Likewise.
17715
17716 * config/h8300/h8300.c (h8300_asm_named_section): Remove.
17717 (h8300_option_override): Remove remnants of COFF support.
17718
17719 2020-05-07 Alan Modra <amodra@gmail.com>
17720
17721 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Replace
17722 set_rtx_cost with set_src_cost.
17723 * tree-switch-conversion.c (bit_test_cluster::emit): Likewise.
17724
17725 2020-05-07 Kewen Lin <linkw@gcc.gnu.org>
17726
17727 * tree-vect-stmts.c (vectorizable_load): Check alignment to avoid
17728 redundant half vector handlings for no peeling gaps.
17729
17730 2020-05-07 Giuliano Belinassi <giuliano.belinassi@usp.br>
17731
17732 * tree-ssa-operands.c (operands_scanner): New class.
17733 (operands_bitmap_obstack): Remove.
17734 (n_initialized): Remove.
17735 (build_uses): Move to operands_scanner class.
17736 (build_vuse): Same as above.
17737 (build_vdef): Same as above.
17738 (verify_ssa_operands): Same as above.
17739 (finalize_ssa_uses): Same as above.
17740 (cleanup_build_arrays): Same as above.
17741 (finalize_ssa_stmt_operands): Same as above.
17742 (start_ssa_stmt_operands): Same as above.
17743 (append_use): Same as above.
17744 (append_vdef): Same as above.
17745 (add_virtual_operand): Same as above.
17746 (add_stmt_operand): Same as above.
17747 (get_mem_ref_operands): Same as above.
17748 (get_tmr_operands): Same as above.
17749 (maybe_add_call_vops): Same as above.
17750 (get_asm_stmt_operands): Same as above.
17751 (get_expr_operands): Same as above.
17752 (parse_ssa_operands): Same as above.
17753 (finalize_ssa_defs): Same as above.
17754 (build_ssa_operands): Same as above, plus create a C-like wrapper.
17755 (update_stmt_operands): Create an instance of operands_scanner.
17756
17757 2020-05-07 Richard Biener <rguenther@suse.de>
17758
17759 PR ipa/94947
17760 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Use
17761 DECL_EXTERNAL || TREE_PUBLIC instead of externally_visible.
17762 (refered_from_nonlocal_var): Likewise.
17763 (ipa_pta_execute): Likewise.
17764
17765 2020-05-07 Erick Ochoa <erick.ochoa@theobroma-systems.com>
17766
17767 * gcc/tree-ssa-struct-alias.c: Fix comments
17768
17769 2020-05-07 Martin Liska <mliska@suse.cz>
17770
17771 * doc/invoke.texi: Fix 2 optindex entries.
17772
17773 2020-05-07 Richard Biener <rguenther@suse.de>
17774
17775 PR middle-end/94703
17776 * tree-core.h (tree_decl_common::gimple_reg_flag): Rename ...
17777 (tree_decl_common::not_gimple_reg_flag): ... to this.
17778 * tree.h (DECL_GIMPLE_REG_P): Rename ...
17779 (DECL_NOT_GIMPLE_REG_P): ... to this.
17780 * gimple-expr.c (copy_var_decl): Copy DECL_NOT_GIMPLE_REG_P.
17781 (create_tmp_reg): Simplify.
17782 (create_tmp_reg_fn): Likewise.
17783 (is_gimple_reg): Check DECL_NOT_GIMPLE_REG_P for all regs.
17784 * gimplify.c (create_tmp_from_val): Simplify.
17785 (gimplify_bind_expr): Likewise.
17786 (gimplify_compound_literal_expr): Likewise.
17787 (gimplify_function_tree): Likewise.
17788 (prepare_gimple_addressable): Set DECL_NOT_GIMPLE_REG_P.
17789 * asan.c (create_odr_indicator): Do not clear DECL_GIMPLE_REG_P.
17790 (asan_add_global): Copy it.
17791 * cgraphunit.c (cgraph_node::expand_thunk): Force args
17792 to be GIMPLE regs.
17793 * function.c (gimplify_parameters): Copy
17794 DECL_NOT_GIMPLE_REG_P.
17795 * ipa-param-manipulation.c
17796 (ipa_param_body_adjustments::common_initialization): Simplify.
17797 (ipa_param_body_adjustments::reset_debug_stmts): Copy
17798 DECL_NOT_GIMPLE_REG_P.
17799 * omp-low.c (lower_omp_for_scan): Do not set DECL_GIMPLE_REG_P.
17800 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
17801 * tree-cfg.c (make_blocks_1): Simplify.
17802 (verify_address): Do not verify DECL_GIMPLE_REG_P setting.
17803 * tree-eh.c (lower_eh_constructs_2): Simplify.
17804 * tree-inline.c (declare_return_variable): Adjust and
17805 generalize.
17806 (copy_decl_to_var): Copy DECL_NOT_GIMPLE_REG_P.
17807 (copy_result_decl_to_var): Likewise.
17808 * tree-into-ssa.c (pass_build_ssa::execute): Adjust comment.
17809 * tree-nested.c (create_tmp_var_for): Simplify.
17810 * tree-parloops.c (separate_decls_in_region_name): Copy
17811 DECL_NOT_GIMPLE_REG_P.
17812 * tree-sra.c (create_access_replacement): Adjust and
17813 generalize partial def support.
17814 * tree-ssa-forwprop.c (pass_forwprop::execute): Set
17815 DECL_NOT_GIMPLE_REG_P on decls we introduce partial defs on.
17816 * tree-ssa.c (maybe_optimize_var): Handle clearing of
17817 TREE_ADDRESSABLE and setting/clearing DECL_NOT_GIMPLE_REG_P
17818 independently.
17819 * lto-streamer-out.c (hash_tree): Hash DECL_NOT_GIMPLE_REG_P.
17820 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream
17821 DECL_NOT_GIMPLE_REG_P.
17822 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
17823 * cfgexpand.c (avoid_type_punning_on_regs): New.
17824 (discover_nonconstant_array_refs): Call
17825 avoid_type_punning_on_regs to avoid unsupported mode punning.
17826
17827 2020-05-07 Alex Coplan <alex.coplan@arm.com>
17828
17829 * config/arm/arm.c (arm_add_stmt_cost): Fix declaration, remove class
17830 from definition.
17831
17832 2020-05-07 Richard Biener <rguenther@suse.de>
17833
17834 PR tree-optimization/57359
17835 * tree-ssa-loop-im.c (im_mem_ref::indep_loop): Remove.
17836 (in_mem_ref::dep_loop): Repurpose.
17837 (LOOP_DEP_BIT): Remove.
17838 (enum dep_kind): New.
17839 (enum dep_state): Likewise.
17840 (record_loop_dependence): New function to populate the
17841 dependence cache.
17842 (query_loop_dependence): New function to query the dependence
17843 cache.
17844 (memory_accesses::refs_in_loop): Rename to ...
17845 (memory_accesses::refs_loaded_in_loop): ... this and change to
17846 only record loads.
17847 (outermost_indep_loop): Adjust.
17848 (mem_ref_alloc): Likewise.
17849 (gather_mem_refs_stmt): Likewise.
17850 (mem_refs_may_alias_p): Add tbaa_p parameter and pass it down.
17851 (struct sm_aux): New.
17852 (execute_sm): Split code generation on exits, record state
17853 into new hash-map.
17854 (enum sm_kind): New.
17855 (execute_sm_exit): Exit code generation part.
17856 (sm_seq_push_down): Helper for sm_seq_valid_bb performing
17857 dependence checking on stores reached from exits.
17858 (sm_seq_valid_bb): New function gathering SM stores on exits.
17859 (hoist_memory_references): Re-implement.
17860 (refs_independent_p): Add tbaa_p parameter and pass it down.
17861 (record_dep_loop): Remove.
17862 (ref_indep_loop_p_1): Fold into ...
17863 (ref_indep_loop_p): ... this and generalize for three kinds
17864 of dependence queries.
17865 (can_sm_ref_p): Adjust according to hoist_memory_references
17866 changes.
17867 (store_motion_loop): Don't do anything if the set of SM
17868 candidates is empty.
17869 (tree_ssa_lim_initialize): Adjust.
17870 (tree_ssa_lim_finalize): Likewise.
17871
17872 2020-05-07 Eric Botcazou <ebotcazou@adacore.com>
17873 Pierre-Marie de Rodat <derodat@adacore.com>
17874
17875 * dwarf2out.c (add_data_member_location_attribute): Take into account
17876 the variant part offset in the computation of the data bit offset.
17877 (add_bit_offset_attribute): Remove CTX parameter. Pass a new context
17878 in the call to field_byte_offset.
17879 (gen_field_die): Adjust call to add_bit_offset_attribute and remove
17880 confusing assertion.
17881 (analyze_variant_discr): Deal with boolean subtypes.
17882
17883 2020-05-07 Martin Liska <mliska@suse.cz>
17884
17885 * lto-wrapper.c: Split arguments of MAKE environment
17886 variable.
17887
17888 2020-05-07 Uroš Bizjak <ubizjak@gmail.com>
17889
17890 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
17891 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
17892 fenv_var and new_fenv_var.
17893
17894 2020-05-06 Jakub Jelinek <jakub@redhat.com>
17895
17896 PR target/93069
17897 * config/i386/subst.md (store_mask_constraint, store_mask_predicate):
17898 Remove.
17899 (avx512dq_vextract<shuffletype>64x2_1_maskm,
17900 avx512f_vextract<shuffletype>32x4_1_maskm,
17901 vec_extract_lo_<mode>_maskm, vec_extract_hi_<mode>_maskm): Remove.
17902 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>): Split
17903 into ...
17904 (*avx512dq_vextract<shuffletype>64x2_1,
17905 avx512dq_vextract<shuffletype>64x2_1_mask): ... these new
17906 define_insns. Even in the masked variant allow memory output but in
17907 that case use 0 rather than 0C constraint on the source of masked-out
17908 elts.
17909 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Split
17910 into ...
17911 (*avx512f_vextract<shuffletype>32x4_1,
17912 avx512f_vextract<shuffletype>32x4_1_mask): ... these new define_insns.
17913 Even in the masked variant allow memory output but in that case use
17914 0 rather than 0C constraint on the source of masked-out elts.
17915 (vec_extract_lo_<mode><mask_name>): Split into ...
17916 (vec_extract_lo_<mode>, vec_extract_lo_<mode>_mask): ... these new
17917 define_insns. Even in the masked variant allow memory output but in
17918 that case use 0 rather than 0C constraint on the source of masked-out
17919 elts.
17920 (vec_extract_hi_<mode><mask_name>): Split into ...
17921 (vec_extract_hi_<mode>, vec_extract_hi_<mode>_mask): ... these new
17922 define_insns. Even in the masked variant allow memory output but in
17923 that case use 0 rather than 0C constraint on the source of masked-out
17924 elts.
17925
17926 2020-05-06 qing zhao <qing.zhao@oracle.com>
17927
17928 PR c/94230
17929 * common.opt: Add -flarge-source-files.
17930 * doc/invoke.texi: Document it.
17931 * toplev.c (process_options): set line_table->default_range_bits
17932 to 0 when flag_large_source_files is true.
17933
17934 2020-05-06 Uroš Bizjak <ubizjak@gmail.com>
17935
17936 PR target/94913
17937 * config/i386/predicates.md (add_comparison_operator): New predicate.
17938 * config/i386/i386.md (compare->add splitter): New splitters.
17939
17940 2020-05-06 Richard Biener <rguenther@suse.de>
17941
17942 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
17943 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
17944 Remove slp_instance parameter, just iterate over all scalar stmts.
17945 (vect_slp_analyze_instance_dependence): Adjust and likewise.
17946 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Remove unused BB
17947 parameter.
17948 (vect_schedule_slp): Just iterate over all scalar stmts.
17949 (vect_supported_load_permutation_p): Adjust.
17950 (vect_transform_slp_perm_load): Remove slp_instance parameter,
17951 instead use the number of lanes in the node as group size.
17952 * tree-vect-stmts.c (vect_model_load_cost): Get vectorization
17953 factor instead of slp_instance as parameter.
17954 (vectorizable_load): Adjust.
17955
17956 2020-05-06 Andreas Schwab <schwab@suse.de>
17957
17958 * config/aarch64/driver-aarch64.c: Include "aarch64-protos.h".
17959 (aarch64_get_extension_string_for_isa_flags): Don't declare.
17960
17961 2020-05-06 Richard Biener <rguenther@suse.de>
17962
17963 PR middle-end/94964
17964 * cfgloopmanip.c (create_preheader): Require non-complex
17965 preheader edge for CP_SIMPLE_PREHEADERS.
17966
17967 2020-05-06 Richard Biener <rguenther@suse.de>
17968
17969 PR tree-optimization/94963
17970 * tree-ssa-loop-im.c (execute_sm_if_changed): Remove
17971 no-warning marking of the conditional store.
17972 (execute_sm): Instead mark the uninitialized state
17973 on loop entry to be not warned about.
17974
17975 2020-05-06 Hongtao Liu <hongtao.liu@intel.com>
17976
17977 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_TSXLDTRK_SET,
17978 OPTION_MASK_ISA2_TSXLDTRK_UNSET): New macros.
17979 * config.gcc: Add tsxldtrkintrin.h to extra_headers.
17980 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17981 TSXLDTRK.
17982 * config/i386/i386-builtin.def: Add new builtins.
17983 * config/i386/i386-c.c (ix86_target_macros_internal): Define
17984 __TSXLDTRK__.
17985 * config/i386/i386-options.c (ix86_target_string): Add
17986 -mtsxldtrk.
17987 (ix86_valid_target_attribute_inner_p): Add attribute tsxldtrk.
17988 * config/i386/i386.h (TARGET_TSXLDTRK, TARGET_TSXLDTRK_P):
17989 New.
17990 * config/i386/i386.md (define_c_enum "unspec"): Add
17991 UNSPECV_SUSLDTRK, UNSPECV_RESLDTRK.
17992 (TSXLDTRK): New define_int_iterator.
17993 ("<tsxldtrk>"): New define_insn.
17994 * config/i386/i386.opt: Add -mtsxldtrk.
17995 * config/i386/immintrin.h: Include tsxldtrkintrin.h.
17996 * config/i386/tsxldtrkintrin.h: New.
17997 * doc/invoke.texi: Document -mtsxldtrk.
17998
17999 2020-05-06 Jakub Jelinek <jakub@redhat.com>
18000
18001 PR tree-optimization/94921
18002 * match.pd (~(~X - Y) -> X + Y, ~(~X + Y) -> X - Y): New
18003 simplifications.
18004
18005 2020-05-06 Richard Biener <rguenther@suse.de>
18006
18007 PR tree-optimization/94965
18008 * tree-vect-stmts.c (vectorizable_load): Fix typo.
18009
18010 2020-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18011
18012 * doc/install.texi: Replace Sun with Solaris as appropriate.
18013 (Tools/packages necessary for building GCC, Perl version between
18014 5.6.1 and 5.6.24): Remove Solaris 8 reference.
18015 (Installing GCC: Binaries, Solaris 2 (SPARC, Intel)): Remove
18016 TGCware reference.
18017 (Specific, i?86-*-solaris2*): Update version references for
18018 Solaris 11.3 and later. Remove gas 2.26 caveat.
18019 (Specific, *-*-solaris2*): Update version references for
18020 Solaris 11.3 and later. Remove boehm-gc reference.
18021 Document GMP, MPFR caveats on Solaris 11.3.
18022 (Specific, sparc-sun-solaris2*): Update Solaris 9 references.
18023 (Specific, sparc64-*-solaris2*): Likewise.
18024 Document --build requirement.
18025
18026 2020-05-06 Jakub Jelinek <jakub@redhat.com>
18027
18028 PR target/94950
18029 * config/riscv/riscv-builtins.c (riscv_atomic_assign_expand_fenv): Use
18030 TARGET_EXPR instead of MODIFY_EXPR for first assignment to old_flags.
18031
18032 PR rtl-optimization/94873
18033 * combine.c (combine_instructions): Don't optimize using REG_EQUAL
18034 note if SET_SRC (set) has side-effects.
18035
18036 2020-05-06 Hongtao Liu <hongtao.liu@intel.com>
18037 Wei Xiao <wei3.xiao@intel.com>
18038
18039 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_SERIALIZE_SET,
18040 OPTION_MASK_ISA2_SERIALIZE_UNSET): New macros.
18041 (ix86_handle_option): Handle -mserialize.
18042 * config.gcc (serializeintrin.h): New header file.
18043 * config/i386/cpuid.h (bit_SERIALIZE): New bit.
18044 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
18045 -mserialize.
18046 * config/i386/i386-builtin.def: Add new builtin.
18047 * config/i386/i386-c.c (__SERIALIZE__): New macro.
18048 * config/i386/i386-options.c (ix86_target_opts_isa2_opts):
18049 Add -mserialize.
18050 * (ix86_valid_target_attribute_inner_p): Add target attribute
18051 * for serialize.
18052 * config/i386/i386.h (TARGET_SERIALIZE, TARGET_SERIALIZE_P):
18053 New macros.
18054 * config/i386/i386.md (UNSPECV_SERIALIZE): New unspec.
18055 (serialize): New define_insn.
18056 * config/i386/i386.opt (mserialize): New option
18057 * config/i386/immintrin.h: Include serailizeintrin.h.
18058 * config/i386/serializeintrin.h: New header file.
18059 * doc/invoke.texi: Add documents for -mserialize.
18060
18061 2020-05-06 Richard Biener <rguenther@suse.de>
18062
18063 * tree-cfg.c (verify_gimple_assign_unary): Adjust integer
18064 to/from pointer conversion checking.
18065
18066 2020-05-05 Michael Meissner <meissner@linux.ibm.com>
18067
18068 * config/rs6000/rs6000-builtin.def: Delete changes meant for a
18069 private branch.
18070 * config/rs6000/rs6000-c.c: Likewise.
18071 * config/rs6000/rs6000-call.c: Likewise.
18072 * config/rs6000/rs6000.c: Likewise.
18073
18074 2020-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
18075
18076 * config/rtems.h (RTEMS_STARTFILE_SPEC): Define if undefined.
18077 (RTEMS_ENDFILE_SPEC): Likewise.
18078 (STARTFILE_SPEC): Update comment. Add RTEMS_STARTFILE_SPEC.
18079 (ENDFILE_SPEC): Add RTEMS_ENDFILE_SPEC.
18080 (LIB_SPECS): Support -nodefaultlibs option.
18081 * config/or1k/rtems.h (RTEMS_STARTFILE_SPEC): Define.
18082 (RTEMS_ENDFILE_SPEC): Likewise.
18083 * config/rs6000/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
18084 (RTEMS_ENDFILE_SPEC): Likewise.
18085 * config/v850/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
18086 (RTEMS_ENDFILE_SPEC): Likewise.
18087
18088 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
18089
18090 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Remove.
18091 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Remove.
18092
18093 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
18094
18095 * config/pru/pru.h: Mark R3.w0 as caller saved.
18096
18097 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
18098
18099 * config/pru/pru.c (pru_emit_doloop): Use new gen_doloop_end_internal
18100 and gen_doloop_begin_internal.
18101 (pru_reorg_loop): Use gen_pruloop with mode.
18102 * config/pru/pru.md: Use new @insn syntax.
18103
18104 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
18105
18106 * config/pru/pru.c (pru_print_operand): Fix fall through comment.
18107
18108 2020-05-05 Uroš Bizjak <ubizjak@gmail.com>
18109
18110 * config/i386/i386.md (fixuns_trunc<mode>si2): Use
18111 "clobber (scratch:M)" instad of "clobber (match_scratch:M N)".
18112 (addqi3_cconly_overflow): Ditto.
18113 (umulv<mode>4): Ditto.
18114 (<s>mul<mode>3_highpart): Ditto.
18115 (tls_global_dynamic_32): Ditto.
18116 (tls_local_dynamic_base_32): Ditto.
18117 (atanxf2): Ditto.
18118 (asinxf2): Ditto.
18119 (acosxf2): Ditto.
18120 (logxf2): Ditto.
18121 (log10xf2): Ditto.
18122 (log2xf2): Ditto.
18123 (*adddi_4): Remove "m" constraint from scratch operand.
18124 (*add<mode>_4): Ditto.
18125
18126 2020-05-05 Jakub Jelinek <jakub@redhat.com>
18127
18128 PR rtl-optimization/94516
18129 * postreload.c (reload_cse_simplify): When replacing sp = sp + const
18130 with sp = reg, add REG_EQUAL note with sp + const.
18131 * combine-stack-adj.c (try_apply_stack_adjustment): Change return
18132 type from int to bool. Add LIVE and OTHER_INSN arguments. Undo
18133 postreload sp = sp + const to sp = reg optimization if needed and
18134 possible.
18135 (combine_stack_adjustments_for_block): Add LIVE argument. Handle
18136 reg = sp insn with sp + const REG_EQUAL note. Adjust
18137 try_apply_stack_adjustment caller, call
18138 df_simulate_initialize_forwards and df_simulate_one_insn_forwards.
18139 (combine_stack_adjustments): Allocate and free LIVE bitmap,
18140 adjust combine_stack_adjustments_for_block caller.
18141
18142 2020-05-05 Martin Liska <mliska@suse.cz>
18143
18144 PR gcov-profile/93623
18145 * tree-cfg.c (stmt_can_terminate_bb_p): Update comment to reflect
18146 reality.
18147
18148 2020-05-05 Martin Liska <mliska@suse.cz>
18149
18150 * opt-functions.awk (opt_args_non_empty): New function.
18151 * opt-read.awk: Use the function for various option arguments.
18152
18153 2020-05-05 Martin Liska <mliska@suse.cz>
18154
18155 PR driver/94330
18156 * lto-wrapper.c (run_gcc): When using -flto=jobserver,
18157 report warning when the jobserver is not detected.
18158
18159 2020-05-05 Martin Liska <mliska@suse.cz>
18160
18161 PR gcov-profile/94636
18162 * gcov.c (main): Print total lines summary at the end.
18163 (generate_results): Expect file_name always being non-null.
18164 Print newline after intermediate file is printed in order to align with
18165 what we do for normal files.
18166
18167 2020-05-05 Martin Liska <mliska@suse.cz>
18168
18169 * dumpfile.c (dump_switch_p): Change return type
18170 and print option suggestion.
18171 * dumpfile.h: Change return type.
18172 * opts-global.c (handle_common_deferred_options):
18173 Move error into dump_switch_p function.
18174
18175 2020-05-05 Martin Liska <mliska@suse.cz>
18176
18177 PR c/92472
18178 * alloc-pool.h: Use const for some arguments.
18179 * bitmap.h: Likewise.
18180 * mem-stats.h: Likewise.
18181 * sese.h (get_entry_bb): Likewise.
18182 (get_exit_bb): Likewise.
18183
18184 2020-05-05 Richard Biener <rguenther@suse.de>
18185
18186 * tree-vect-slp.c (struct vdhs_data): New.
18187 (vect_detect_hybrid_slp): New walker.
18188 (vect_detect_hybrid_slp): Rewrite.
18189
18190 2020-05-05 Richard Biener <rguenther@suse.de>
18191
18192 PR ipa/94947
18193 * tree-ssa-structalias.c (ipa_pta_execute): Use
18194 varpool_node::externally_visible_p ().
18195 (refered_from_nonlocal_var): Likewise.
18196
18197 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
18198
18199 * gcc.c (LTO_PLUGIN_SPEC): Define if not already.
18200 (LINK_PLUGIN_SPEC): Execute LTO_PLUGIN_SPEC.
18201 * config/vxworks.h (LTO_PLUGIN_SPEC): Define.
18202
18203 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
18204
18205 * gimplify.c (gimplify_init_constructor): Do not put the constructor
18206 into static memory if it is not complete.
18207
18208 2020-05-05 Richard Biener <rguenther@suse.de>
18209
18210 PR tree-optimization/94949
18211 * tree-ssa-loop-im.c (execute_sm): Check whether we use
18212 the multithreaded model or always compute the stored value
18213 before eliding a load.
18214
18215 2020-05-05 Alex Coplan <alex.coplan@arm.com>
18216
18217 * config/aarch64/aarch64.md (*one_cmpl_zero_extend): New.
18218
18219 2020-05-05 Jakub Jelinek <jakub@redhat.com>
18220
18221 PR tree-optimization/94800
18222 * match.pd (X + (X << C) to X * (1 + (1 << C)),
18223 (X << C1) + (X << C2) to X * ((1 << C1) + (1 << C2))): New
18224 canonicalizations.
18225
18226 PR target/94942
18227 * config/i386/mmx.md (*vec_dupv4hi): Use xYw constraints instead of Yv.
18228
18229 PR tree-optimization/94914
18230 * match.pd ((((type)A * B) >> prec) != 0 to .MUL_OVERFLOW(A, B) != 0):
18231 New simplification.
18232
18233 2020-05-05 Uroš Bizjak <ubizjak@gmail.com>
18234
18235 * config/i386/i386.md (*testqi_ext_3): Use
18236 int_nonimmediate_operand instead of manual mode checks.
18237 (*x86_mov<SWI48:mode>cc_0_m1_neg_leu<SWI:mode>):
18238 Use int_nonimmediate_operand predicate. Rewrite
18239 define_insn_and_split pattern to a combine pass splitter.
18240
18241 2020-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18242
18243 * configure.ac <i[34567]86-*-*>: Add --32 to tls_as_opt on Solaris.
18244 * configure: Regenerate.
18245
18246 2020-05-05 Jakub Jelinek <jakub@redhat.com>
18247
18248 PR target/94460
18249 * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
18250 ssse3_ph<plusminus_mnemonic>wv8hi3, ssse3_ph<plusminus_mnemonic>wv4hi3,
18251 avx2_ph<plusminus_mnemonic>dv8si3, ssse3_ph<plusminus_mnemonic>dv4si3,
18252 ssse3_ph<plusminus_mnemonic>dv2si3): Simplify RTL patterns.
18253
18254 2020-05-04 Clement Chigot <clement.chigot@atos.net>
18255 David Edelsohn <dje.gcc@gmail.com>
18256
18257 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Override explicit
18258 for fmodl, frexpl, ldexpl and modfl builtins.
18259
18260 2020-05-04 Richard Sandiford <richard.sandiford@arm.com>
18261
18262 PR middle-end/94941
18263 * internal-fn.c (expand_load_lanes_optab_fn): Emit a move if the
18264 chosen lhs is different from the gcall lhs.
18265 (expand_mask_load_optab_fn): Likewise.
18266 (expand_gather_load_optab_fn): Likewise.
18267
18268 2020-05-04 Uroš Bizjak <ubizjak@gmail.com>
18269
18270 PR target/94795
18271 * config/i386/i386.md (*neg<mode>_ccc): New insn pattern.
18272 (EQ compare->LTU compare splitter): New splitter.
18273 (NE compare->NEG splitter): Ditto.
18274
18275 2020-05-04 Marek Polacek <polacek@redhat.com>
18276
18277 Revert:
18278 2020-04-30 Marek Polacek <polacek@redhat.com>
18279
18280 PR c++/94775
18281 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
18282 (check_aligned_type): Check if TYPE_USER_ALIGN match.
18283
18284 2020-05-04 Richard Biener <rguenther@suse.de>
18285
18286 PR tree-optimization/93891
18287 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fall back to
18288 the original reference tree for assessing access alignment.
18289
18290 2020-05-04 Richard Biener <rguenther@suse.de>
18291
18292 PR tree-optimization/39612
18293 * tree-ssa-loop-im.c (im_mem_ref::loaded): New member.
18294 (set_ref_loaded_in_loop): New.
18295 (mark_ref_loaded): Likewise.
18296 (gather_mem_refs_stmt): Call mark_ref_loaded for loads.
18297 (execute_sm): Avoid issueing a load when it was not there.
18298 (execute_sm_if_changed): Avoid issueing warnings for the
18299 conditional store.
18300
18301 2020-05-04 Martin Jambor <mjambor@suse.cz>
18302
18303 PR ipa/93385
18304 * tree-inline.c (tree_function_versioning): Leave any type conversion
18305 of replacements to setup_one_parameter and its friend
18306 force_value_to_type.
18307
18308 2020-05-04 Uroš Bizjak <ubizjak@gmail.com>
18309
18310 PR target/94650
18311 * config/i386/predicates.md (shr_comparison_operator): New predicate.
18312 * config/i386/i386.md (compare->shr splitter): New splitters.
18313
18314 2020-05-04 Jakub Jelinek <jakub@redhat.com>
18315
18316 PR tree-optimization/94718
18317 * match.pd ((X < 0) != (Y < 0) into (X ^ Y) < 0): New simplification.
18318
18319 PR tree-optimization/94718
18320 * match.pd (bitop (convert @0) (convert? @1)): For GIMPLE, if we can,
18321 replace two nop conversions on bit_{and,ior,xor} argument
18322 and result with just one conversion on the result or another argument.
18323
18324 PR tree-optimization/94718
18325 * fold-const.c (fold_binary_loc): Move (X & C) eqne (Y & C)
18326 -> (X ^ Y) & C eqne 0 optimization to ...
18327 * match.pd ((X & C) op (Y & C) into (X ^ Y) & C op 0): ... here.
18328
18329 * opts.c (get_option_html_page): Instead of hardcoding a list of
18330 options common between C/C++ and Fortran only use gfortran/
18331 documentation for warnings that have CL_Fortran set but not
18332 CL_C or CL_CXX.
18333
18334 2020-05-03 Uroš Bizjak <ubizjak@gmail.com>
18335
18336 * config/i386/i386-expand.c (ix86_expand_int_movcc):
18337 Use plus_constant instead of gen_rtx_PLUS with GEN_INT.
18338 (emit_memmov): Ditto.
18339 (emit_memset): Ditto.
18340 (ix86_expand_strlensi_unroll_1): Ditto.
18341 (release_scratch_register_on_entry): Ditto.
18342 (gen_frame_set): Ditto.
18343 (ix86_emit_restore_reg_using_pop): Ditto.
18344 (ix86_emit_outlined_ms2sysv_restore): Ditto.
18345 (ix86_expand_epilogue): Ditto.
18346 (ix86_expand_split_stack_prologue): Ditto.
18347 * config/i386/i386.md (push immediate splitter): Ditto.
18348 (strmov): Ditto.
18349 (strset): Ditto.
18350
18351 2020-05-02 Iain Sandoe <iain@sandoe.co.uk>
18352
18353 PR translation/93861
18354 * config/darwin-driver.c (darwin_driver_init): Adjust spelling in
18355 a warning.
18356
18357 2020-05-02 Jakub Jelinek <jakub@redhat.com>
18358
18359 * config/tilegx/tilegx.md
18360 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Use <I124MODE:n>
18361 rather than just <n>.
18362
18363 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
18364
18365 PR target/93492
18366 * cfgexpand.c (pass_expand::execute): Set crtl->patch_area_size
18367 and crtl->patch_area_entry.
18368 * emit-rtl.h (rtl_data): Add patch_area_size and patch_area_entry.
18369 * opts.c (common_handle_option): Limit
18370 function_entry_patch_area_size and function_entry_patch_area_start
18371 to USHRT_MAX. Fix a typo in error message.
18372 * varasm.c (assemble_start_function): Use crtl->patch_area_size
18373 and crtl->patch_area_entry.
18374 * doc/invoke.texi: Document the maximum value for
18375 -fpatchable-function-entry.
18376
18377 2020-05-01 Iain Sandoe <iain@sandoe.co.uk>
18378
18379 * config/i386/darwin.h: Repair SUBTARGET_INIT_BUILTINS.
18380 Override SUBTARGET_SHADOW_OFFSET macro.
18381
18382 2020-05-01 Andreas Tobler <andreast@gcc.gnu.org>
18383
18384 * config/i386/i386.h: Define a new macro: SUBTARGET_SHADOW_OFFSET.
18385 * config/i386/i386.c (ix86_asan_shadow_offset): Use this macro.
18386 * config/i386/darwin.h: Override the SUBTARGET_SHADOW_OFFSET macro.
18387 * config/i386/freebsd.h: Likewise.
18388 * config/freebsd.h (LIBASAN_EARLY_SPEC): Define.
18389 LIBTSAN_EARLY_SPEC): Likewise. (LIBLSAN_EARLY_SPEC): Likewise.
18390
18391 2020-04-30 Alexandre Oliva <oliva@adacore.com>
18392
18393 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18394 the newly-introduced fileio effective target.
18395
18396 2020-04-30 Richard Sandiford <richard.sandiford@arm.com>
18397
18398 PR rtl-optimization/94740
18399 * cse.c (cse_process_notes_1): Replace with...
18400 (cse_process_note_1): ...this new function, acting as a
18401 simplify_replace_fn_rtx callback to process_note. Handle only
18402 REGs and MEMs directly. Validate the MEM if cse_process_note
18403 changes its address.
18404 (cse_process_notes): Replace with...
18405 (cse_process_note): ...this new function.
18406 (cse_extended_basic_block): Update accordingly, iterating over
18407 the register notes and passing individual notes to cse_process_note.
18408
18409 2020-04-30 Carl Love <cel@us.ibm.com>
18410
18411 * config/rs6000/emmintrin.h (_mm_movemask_epi8): Fix comment.
18412
18413 2020-04-30 Martin Jambor <mjambor@suse.cz>
18414
18415 PR ipa/94856
18416 * cgraph.c (clone_of_p): Also consider thunks whih had their bodies
18417 saved by the inliner and thunks which had their call inlined.
18418 * ipa-inline-transform.c (save_inline_function_body): Fill in
18419 former_clone_of of new body holders.
18420
18421 2020-04-30 Jakub Jelinek <jakub@redhat.com>
18422
18423 * BASE-VER: Set to 11.0.0.
18424
18425 2020-04-30 Jonathan Wakely <jwakely@redhat.com>
18426
18427 * pretty-print.c (pp_take_prefix): Fix spelling in comment.
18428
18429 2020-04-30 Marek Polacek <polacek@redhat.com>
18430
18431 PR c++/94775
18432 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
18433 (check_aligned_type): Check if TYPE_USER_ALIGN match.
18434
18435 2020-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18436
18437 * config/aarch64/aarch64.h (TARGET_OUTLINE_ATOMICS): Define.
18438 * config/aarch64/aarch64.opt (moutline-atomics): Change to Int variable.
18439 * doc/invoke.texi (moutline-atomics): Document as on by default.
18440
18441 2020-04-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
18442
18443 PR target/94748
18444 * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Remove
18445 the check for NOTE_INSN_DELETED_LABEL.
18446
18447 2020-04-30 Jakub Jelinek <jakub@redhat.com>
18448
18449 * configure.ac (--with-documentation-root-url,
18450 --with-changes-root-url): Diagnose URL not ending with /,
18451 use AC_DEFINE_UNQUOTED instead of AC_SUBST.
18452 * opts.h (get_changes_url): Remove.
18453 * opts.c (get_changes_url): Remove.
18454 * Makefile.in (CFLAGS-opts.o): Don't add -DDOCUMENTATION_ROOT_URL
18455 or -DCHANGES_ROOT_URL.
18456 * doc/install.texi (--with-documentation-root-url,
18457 --with-changes-root-url): Document.
18458 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Don't call
18459 get_changes_url and free, change url variable type to const char * and
18460 set it to CHANGES_ROOT_URL "gcc-10/changes.html#empty_base".
18461 * config/s390/s390.c (s390_function_arg_vector,
18462 s390_function_arg_float): Likewise.
18463 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
18464 Likewise.
18465 * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
18466 Likewise.
18467 * config.in: Regenerate.
18468 * configure: Regenerate.
18469
18470 2020-04-30 Christophe Lyon <christophe.lyon@linaro.org>
18471
18472 PR target/57002
18473 * config/arm/arm.c (isr_attribute_args): Remove duplicate entries.
18474
18475 2020-04-30 Andreas Krebbel <krebbel@linux.ibm.com>
18476
18477 * config/s390/constraints.md ("j>f", "jb4"): New constraints.
18478 * config/s390/vecintrin.h (vec_load_len_r, vec_store_len_r): Fix
18479 macro definitions.
18480 * config/s390/vx-builtins.md ("vlrlrv16qi", "vstrlrv16qi"): Add a
18481 separate expander.
18482 ("*vlrlrv16qi", "*vstrlrv16qi"): Add alternative for vl/vst.
18483 Change constraint for vlrl/vstrl to jb4.
18484
18485 2020-04-30 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18486
18487 * var-tracking.c (vt_initialize): Move variables pre and post
18488 into inner block and initialize both in order to fix warning
18489 about uninitialized use. Remove unnecessary checks for
18490 frame_pointer_needed.
18491
18492 2020-04-30 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18493
18494 * toplev.c (output_stack_usage_1): Ensure that first
18495 argument to fprintf is not null.
18496
18497 2020-04-29 Jakub Jelinek <jakub@redhat.com>
18498
18499 * configure.ac (-with-changes-root-url): New configure option,
18500 defaulting to https://gcc.gnu.org/.
18501 * Makefile.in (CFLAGS-opts.o): Define CHANGES_ROOT_URL for
18502 opts.c.
18503 * pretty-print.c (get_end_url_string): New function.
18504 (pp_format): Handle %{ and %} for URLs.
18505 (pp_begin_url): Use pp_string instead of pp_printf.
18506 (pp_end_url): Use get_end_url_string.
18507 * opts.h (get_changes_url): Declare.
18508 * opts.c (get_changes_url): New function.
18509 * config/rs6000/rs6000-call.c: Include opts.h.
18510 (rs6000_discover_homogeneous_aggregate): Use %{in GCC 10.1%} instead
18511 of just in GCC 10.1 in diagnostics and add URL.
18512 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Likewise.
18513 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
18514 Likewise.
18515 * config/s390/s390.c (s390_function_arg_vector,
18516 s390_function_arg_float): Likewise.
18517 * configure: Regenerated.
18518
18519 PR target/94704
18520 * config/s390/s390.c (s390_function_arg_vector,
18521 s390_function_arg_float): Use DECL_FIELD_ABI_IGNORED instead of
18522 cxx17_empty_base_field_p. In -Wpsabi diagnostics use the type
18523 passed to the function rather than the type of the single element.
18524 Rename cxx17_empty_base_seen variable to empty_base_seen, change
18525 type to int, and adjust diagnostics depending on if the field
18526 has [[no_unique_attribute]] or not.
18527
18528 PR target/94832
18529 * config/i386/avx512bwintrin.h (_mm512_alignr_epi8,
18530 _mm512_mask_alignr_epi8, _mm512_maskz_alignr_epi8): Wrap macro operands
18531 used in casts into parens.
18532 * config/i386/avx512fintrin.h (_mm512_cvt_roundps_ph, _mm512_cvtps_ph,
18533 _mm512_mask_cvt_roundps_ph, _mm512_mask_cvtps_ph,
18534 _mm512_maskz_cvt_roundps_ph, _mm512_maskz_cvtps_ph,
18535 _mm512_mask_cmp_epi64_mask, _mm512_mask_cmp_epi32_mask,
18536 _mm512_mask_cmp_epu64_mask, _mm512_mask_cmp_epu32_mask,
18537 _mm512_mask_cmp_round_pd_mask, _mm512_mask_cmp_round_ps_mask,
18538 _mm512_mask_cmp_pd_mask, _mm512_mask_cmp_ps_mask): Likewise.
18539 * config/i386/avx512vlbwintrin.h (_mm256_mask_alignr_epi8,
18540 _mm256_maskz_alignr_epi8, _mm_mask_alignr_epi8, _mm_maskz_alignr_epi8,
18541 _mm256_mask_cmp_epu8_mask): Likewise.
18542 * config/i386/avx512vlintrin.h (_mm_mask_cvtps_ph, _mm_maskz_cvtps_ph,
18543 _mm256_mask_cvtps_ph, _mm256_maskz_cvtps_ph): Likewise.
18544 * config/i386/f16cintrin.h (_mm_cvtps_ph, _mm256_cvtps_ph): Likewise.
18545 * config/i386/shaintrin.h (_mm_sha1rnds4_epu32): Likewise.
18546
18547 PR target/94832
18548 * config/i386/avx2intrin.h (_mm_mask_i32gather_pd,
18549 _mm256_mask_i32gather_pd, _mm_mask_i64gather_pd,
18550 _mm256_mask_i64gather_pd, _mm_mask_i32gather_ps,
18551 _mm256_mask_i32gather_ps, _mm_mask_i64gather_ps,
18552 _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
18553 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
18554 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
18555 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
18556 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
18557 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
18558 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
18559 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
18560 _mm256_mask_i64gather_epi32): Surround macro parameter uses with
18561 parens.
18562 (_mm_i32gather_pd, _mm256_i32gather_pd, _mm_i64gather_pd,
18563 _mm256_i64gather_pd, _mm_i32gather_ps, _mm256_i32gather_ps,
18564 _mm_i64gather_ps, _mm256_i64gather_ps): Likewise. Don't use
18565 as mask vector containing -1.0 or -1.0f elts, but instead vector
18566 with all bits set using _mm*_cmpeq_p? with zero operands.
18567 * config/i386/avx512fintrin.h (_mm512_i32gather_ps,
18568 _mm512_mask_i32gather_ps, _mm512_i32gather_pd,
18569 _mm512_mask_i32gather_pd, _mm512_i64gather_ps,
18570 _mm512_mask_i64gather_ps, _mm512_i64gather_pd,
18571 _mm512_mask_i64gather_pd, _mm512_i32gather_epi32,
18572 _mm512_mask_i32gather_epi32, _mm512_i32gather_epi64,
18573 _mm512_mask_i32gather_epi64, _mm512_i64gather_epi32,
18574 _mm512_mask_i64gather_epi32, _mm512_i64gather_epi64,
18575 _mm512_mask_i64gather_epi64, _mm512_i32scatter_ps,
18576 _mm512_mask_i32scatter_ps, _mm512_i32scatter_pd,
18577 _mm512_mask_i32scatter_pd, _mm512_i64scatter_ps,
18578 _mm512_mask_i64scatter_ps, _mm512_i64scatter_pd,
18579 _mm512_mask_i64scatter_pd, _mm512_i32scatter_epi32,
18580 _mm512_mask_i32scatter_epi32, _mm512_i32scatter_epi64,
18581 _mm512_mask_i32scatter_epi64, _mm512_i64scatter_epi32,
18582 _mm512_mask_i64scatter_epi32, _mm512_i64scatter_epi64,
18583 _mm512_mask_i64scatter_epi64): Surround macro parameter uses with
18584 parens.
18585 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
18586 _mm512_prefetch_i32gather_ps, _mm512_mask_prefetch_i32gather_pd,
18587 _mm512_mask_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
18588 _mm512_prefetch_i64gather_ps, _mm512_mask_prefetch_i64gather_pd,
18589 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
18590 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
18591 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
18592 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
18593 _mm512_mask_prefetch_i64scatter_ps): Likewise.
18594 * config/i386/avx512vlintrin.h (_mm256_mmask_i32gather_ps,
18595 _mm_mmask_i32gather_ps, _mm256_mmask_i32gather_pd,
18596 _mm_mmask_i32gather_pd, _mm256_mmask_i64gather_ps,
18597 _mm_mmask_i64gather_ps, _mm256_mmask_i64gather_pd,
18598 _mm_mmask_i64gather_pd, _mm256_mmask_i32gather_epi32,
18599 _mm_mmask_i32gather_epi32, _mm256_mmask_i32gather_epi64,
18600 _mm_mmask_i32gather_epi64, _mm256_mmask_i64gather_epi32,
18601 _mm_mmask_i64gather_epi32, _mm256_mmask_i64gather_epi64,
18602 _mm_mmask_i64gather_epi64, _mm256_i32scatter_ps,
18603 _mm256_mask_i32scatter_ps, _mm_i32scatter_ps, _mm_mask_i32scatter_ps,
18604 _mm256_i32scatter_pd, _mm256_mask_i32scatter_pd, _mm_i32scatter_pd,
18605 _mm_mask_i32scatter_pd, _mm256_i64scatter_ps,
18606 _mm256_mask_i64scatter_ps, _mm_i64scatter_ps, _mm_mask_i64scatter_ps,
18607 _mm256_i64scatter_pd, _mm256_mask_i64scatter_pd, _mm_i64scatter_pd,
18608 _mm_mask_i64scatter_pd, _mm256_i32scatter_epi32,
18609 _mm256_mask_i32scatter_epi32, _mm_i32scatter_epi32,
18610 _mm_mask_i32scatter_epi32, _mm256_i32scatter_epi64,
18611 _mm256_mask_i32scatter_epi64, _mm_i32scatter_epi64,
18612 _mm_mask_i32scatter_epi64, _mm256_i64scatter_epi32,
18613 _mm256_mask_i64scatter_epi32, _mm_i64scatter_epi32,
18614 _mm_mask_i64scatter_epi32, _mm256_i64scatter_epi64,
18615 _mm256_mask_i64scatter_epi64, _mm_i64scatter_epi64,
18616 _mm_mask_i64scatter_epi64): Likewise.
18617
18618 2020-04-29 Jeff Law <law@redhat.com>
18619
18620 * config/h8300/h8300.md (H8/SX div patterns): All H8/SX specific
18621 division instructions are 4 bytes long.
18622
18623 2020-04-29 Jakub Jelinek <jakub@redhat.com>
18624
18625 PR target/94826
18626 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Use
18627 TARGET_EXPR instead of MODIFY_EXPR for first assignment to
18628 fenv_var, fenv_clear and old_fenv variables. For fenv_addr
18629 take address of TARGET_EXPR of fenv_var with void_node initializer.
18630 Formatting fixes.
18631
18632 2020-04-29 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
18633
18634 PR tree-optimization/94774
18635 * gimple-ssa-sprintf.c (try_substitute_return_value): Initialize
18636 variable retval.
18637
18638 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18639
18640 * calls.h (cxx17_empty_base_field_p): Turn into a function declaration.
18641 * calls.c (cxx17_empty_base_field_p): New function. Check
18642 DECL_ARTIFICIAL and RECORD_OR_UNION_TYPE_P in addition to the
18643 previous checks.
18644
18645 2020-04-29 H.J. Lu <hongjiu.lu@intel.com>
18646
18647 PR target/93654
18648 * config/i386/i386-options.c (ix86_set_indirect_branch_type):
18649 Allow -fcf-protection with -mindirect-branch=thunk-extern and
18650 -mfunction-return=thunk-extern.
18651 * doc/invoke.texi: Update notes for -fcf-protection=branch with
18652 -mindirect-branch=thunk-extern and -mindirect-return=thunk-extern.
18653
18654 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18655
18656 * doc/sourcebuild.texi: Add missing arm_arch_v8a_hard_ok anchor.
18657
18658 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18659
18660 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Use
18661 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
18662 fenv_var and new_fenv_var.
18663
18664 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18665
18666 * doc/sourcebuild.texi (arm_arch_v8a_hard_ok): Document new
18667 effective-target keyword.
18668 (arm_arch_v8a_hard_multilib): Likewise.
18669 (arm_arch_v8a_hard): Document new dg-add-options keyword.
18670 * config/arm/arm.c (arm_return_in_memory): Note that the APCS
18671 code is deprecated and has not been updated to handle
18672 DECL_FIELD_ABI_IGNORED.
18673 (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
18674 (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
18675 (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
18676 avoid_cxx17_empty_base with a pointer to a bitmask. Ignore fields
18677 whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
18678 something actually is a HFA or HVA. Record whether we see a
18679 [[no_unique_address]] field that previous GCCs would not have
18680 ignored in this way.
18681 (aapcs_vfp_is_call_or_return_candidate): Update the calls to
18682 aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
18683 [[no_unique_address]] case. Use TYPE_MAIN_VARIANT in the
18684 diagnostic messages.
18685 (arm_needs_doubleword_align): Add a comment explaining why we
18686 consider even zero-sized fields.
18687
18688 2020-04-29 Richard Biener <rguenther@suse.de>
18689 Li Zekun <lizekun1@huawei.com>
18690
18691 PR lto/94822
18692 * tree.c (component_ref_size): Guard against error_mark_node
18693 DECL_INITIAL as it happens with LTO.
18694
18695 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
18696
18697 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add a
18698 comment explaining why we consider even zero-sized fields.
18699 (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
18700 (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
18701 (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
18702 avoid_cxx17_empty_base with a pointer to a bitmask. Ignore fields
18703 whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
18704 something actually is a HFA or HVA. Record whether we see a
18705 [[no_unique_address]] field that previous GCCs would not have
18706 ignored in this way.
18707 (aarch64_vfp_is_call_or_return_candidate): Add a parameter to say
18708 whether diagnostics should be suppressed. Update the calls to
18709 aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
18710 [[no_unique_address]] case.
18711 (aarch64_return_in_msb): Update call accordingly, never silencing
18712 diagnostics.
18713 (aarch64_function_value): Likewise.
18714 (aarch64_return_in_memory_1): Likewise.
18715 (aarch64_init_cumulative_args): Likewise.
18716 (aarch64_gimplify_va_arg_expr): Likewise.
18717 (aarch64_pass_by_reference_1): Take a CUMULATIVE_ARGS pointer and
18718 use it to decide whether arch64_vfp_is_call_or_return_candidate
18719 should be silent.
18720 (aarch64_pass_by_reference): Update calls accordingly.
18721 (aarch64_vfp_is_call_candidate): Use the CUMULATIVE_ARGS argument
18722 to decide whether arch64_vfp_is_call_or_return_candidate should be
18723 silent.
18724
18725 2020-04-29 Haijian Zhang <z.zhanghaijian@huawei.com>
18726
18727 PR target/94820
18728 * config/aarch64/aarch64-builtins.c
18729 (aarch64_atomic_assign_expand_fenv): Use TARGET_EXPR instead of
18730 MODIFY_EXPR for first assignment to fenv_cr, fenv_sr and
18731 new_fenv_var.
18732
18733 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
18734
18735 * configure.ac <$enable_offload_targets>: Do parsing as done
18736 elsewhere.
18737 * configure: Regenerate.
18738
18739 * configure.ac <$enable_offload_targets>: 'amdgcn' is 'gcn'.
18740 * configure: Regenerate.
18741
18742 PR target/94279
18743 * rtlanal.c (set_noop_p): Handle non-constant selectors.
18744
18745 PR target/94282
18746 * common/config/gcn/gcn-common.c (gcn_except_unwind_info): New
18747 function.
18748 (TARGET_EXCEPT_UNWIND_INFO): Define.
18749
18750 2020-04-29 Jakub Jelinek <jakub@redhat.com>
18751
18752 PR target/94248
18753 * config/gcn/gcn.md (*mov<mode>_insn): Use
18754 'reg_overlap_mentioned_p' to check for overlap.
18755
18756 PR target/94706
18757 * config/ia64/ia64.c (hfa_element_mode): Use DECL_FIELD_ABI_IGNORED
18758 instead of cxx17_empty_base_field_p.
18759
18760 PR target/94707
18761 * tree-core.h (tree_decl_common): Note decl_flag_0 used for
18762 DECL_FIELD_ABI_IGNORED.
18763 * tree.h (DECL_FIELD_ABI_IGNORED): Define.
18764 * calls.h (cxx17_empty_base_field_p): Change into a temporary
18765 macro, check DECL_FIELD_ABI_IGNORED flag with no "no_unique_address"
18766 attribute.
18767 * calls.c (cxx17_empty_base_field_p): Remove.
18768 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Handle
18769 DECL_FIELD_ABI_IGNORED.
18770 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
18771 * lto-streamer-out.c (hash_tree): Likewise.
18772 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Rename
18773 cxx17_empty_base_seen to empty_base_seen, change type to int *,
18774 adjust recursive calls, use DECL_FIELD_ABI_IGNORED instead of
18775 cxx17_empty_base_field_p, if "no_unique_address" attribute is
18776 present, propagate that to the caller too.
18777 (rs6000_discover_homogeneous_aggregate): Adjust
18778 rs6000_aggregate_candidate caller, emit different diagnostics
18779 when c++17 empty base fields are present and when empty
18780 [[no_unique_address]] fields are present.
18781 * config/rs6000/rs6000.c (rs6000_special_round_type_align,
18782 darwin_rs6000_special_round_type_align): Skip DECL_FIELD_ABI_IGNORED
18783 fields.
18784
18785 2020-04-29 Richard Biener <rguenther@suse.de>
18786
18787 * tree-ssa-loop-im.c (ref_always_accessed::operator ()):
18788 Just check whether the stmt stores.
18789
18790 2020-04-28 Alexandre Oliva <oliva@adacore.com>
18791
18792 PR target/94812
18793 * config/rs6000/rs6000.md (rs6000_mffsl): Copy result to
18794 output operand in emulation. Don't overwrite pseudos.
18795
18796 2020-04-28 Jeff Law <law@redhat.com>
18797
18798 * config/h8300/h8300.md (H8/SX mult patterns): All H8/SX specific
18799 multiply patterns are 4 bytes long.
18800
18801 2020-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18802
18803 * config/arm/arm-cpus.in (cortex-m55): Remove +nofp option.
18804 * doc/invoke.texi (Arm Options): Remove -mcpu=cortex-m55 from +nofp option.
18805
18806 2020-04-28 Matthew Malcomson <matthew.malcomson@arm.com>
18807 Jakub Jelinek <jakub@redhat.com>
18808
18809 PR target/94711
18810 * config/arm/arm.c (aapcs_vfp_sub_candidate): Account for C++17 empty
18811 base class artificial fields.
18812 (aapcs_vfp_is_call_or_return_candidate): Warn when PCS ABI
18813 decision is different after this fix.
18814
18815 2020-04-28 David Malcolm <dmalcolm@redhat.com>
18816
18817 PR analyzer/94447
18818 PR analyzer/94639
18819 PR analyzer/94732
18820 PR analyzer/94754
18821 * doc/invoke.texi (Static Analyzer Options): Remove
18822 -Wanalyzer-use-of-uninitialized-value.
18823 (-Wno-analyzer-use-of-uninitialized-value): Remove item.
18824
18825 2020-04-28 Jakub Jelinek <jakub@redhat.com>
18826
18827 PR tree-optimization/94809
18828 * tree.c (build_call_expr_internal_loc_array): Call
18829 process_call_operands.
18830
18831 2020-04-27 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
18832
18833 * config/aarch64/aarch64-cores.def (thunderx3t110): Add the chip name.
18834 * config/aarch64/aarch64-tune.md: Regenerate.
18835 * config/aarch64/aarch64.c (thunderx3t110_addrcost_table): Define.
18836 (thunderx3t110_regmove_cost): Likewise.
18837 (thunderx3t110_vector_cost): Likewise.
18838 (thunderx3t110_prefetch_tune): Likewise.
18839 (thunderx3t110_tunings): Likewise.
18840 * config/aarch64/aarch64-cost-tables.h (thunderx3t110_extra_costs):
18841 Define.
18842 * config/aarch64/thunderx3t110.md: New file.
18843 * config/aarch64/aarch64.md: Include thunderx3t110.md.
18844 * doc/invoke.texi (AArch64 options): Add thunderx3t110.
18845
18846 2020-04-28 Jakub Jelinek <jakub@redhat.com>
18847
18848 PR target/94704
18849 * config/s390/s390.c (s390_function_arg_vector,
18850 s390_function_arg_float): Emit -Wpsabi diagnostics if the ABI changed.
18851
18852 2020-04-28 Richard Sandiford <richard.sandiford@arm.com>
18853
18854 PR tree-optimization/94727
18855 * tree-vect-stmts.c (vect_is_simple_cond): If both comparison
18856 operands are invariant booleans, use the mask type associated with the
18857 STMT_VINFO_VECTYPE. Use !slp_node instead of !vectype to exclude SLP.
18858 (vectorizable_condition): Pass vectype unconditionally to
18859 vect_is_simple_cond.
18860
18861 2020-04-27 Jakub Jelinek <jakub@redhat.com>
18862
18863 PR target/94780
18864 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Use
18865 TARGET_EXPR instead of MODIFY_EXPR for first assignment to
18866 sw_var, exceptions_var, mxcsr_orig_var and mxcsr_mod_var.
18867
18868 2020-04-27 David Malcolm <dmalcolm@redhat.com>
18869
18870 PR 92830
18871 * configure.ac (DOCUMENTATION_ROOT_URL): Drop trailing "gcc/" from
18872 default value, so that it can by supplied by get_option_html_page.
18873 * configure: Regenerate.
18874 * opts.c: Include "selftest.h".
18875 (get_option_html_page): New function.
18876 (get_option_url): Use it. Reformat to place comments next to the
18877 expressions they refer to.
18878 (selftest::test_get_option_html_page): New.
18879 (selftest::opts_c_tests): New.
18880 * selftest-run-tests.c (selftest::run_tests): Call
18881 selftest::opts_c_tests.
18882 * selftest.h (selftest::opts_c_tests): New decl.
18883
18884 2020-04-27 Richard Sandiford <richard.sandiford@arm.com>
18885
18886 * config/arm/arm-builtins.c (arm_expand_builtin_args): Only apply
18887 UINTVAL to CONST_INTs.
18888
18889 2020-04-27 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18890
18891 * config/arm/constraints.md (e): Remove constraint.
18892 (Te): Define constraint.
18893 * config/arm/mve.md (vaddvq_<supf><mode>): Modify constraint in
18894 operand 0 from "e" to "Te".
18895 (vaddvaq_<supf><mode>): Likewise.
18896 (vaddvq_p_<supf><mode>): Likewise.
18897 (vmladavq_<supf><mode>): Likewise.
18898 (vmladavxq_s<mode>): Likewise.
18899 (vmlsdavq_s<mode>): Likewise.
18900 (vmlsdavxq_s<mode>): Likewise.
18901 (vaddvaq_p_<supf><mode>): Likewise.
18902 (vmladavaq_<supf><mode>): Likewise.
18903 (vmladavq_p_<supf><mode>): Likewise.
18904 (vmladavxq_p_s<mode>): Likewise.
18905 (vmlsdavq_p_s<mode>): Likewise.
18906 (vmlsdavxq_p_s<mode>): Likewise.
18907 (vmlsdavaxq_s<mode>): Likewise.
18908 (vmlsdavaq_s<mode>): Likewise.
18909 (vmladavaxq_s<mode>): Likewise.
18910 (vmladavaq_p_<supf><mode>): Likewise.
18911 (vmladavaxq_p_s<mode>): Likewise.
18912 (vmlsdavaq_p_s<mode>): Likewise.
18913 (vmlsdavaxq_p_s<mode>): Likewise.
18914
18915 2020-04-27 Andre Vieira <andre.simoesdiasvieira@arm.com>
18916
18917 * config/arm/arm.c (output_move_neon): Only get the first operand if
18918 addr is PLUS.
18919
18920 2020-04-27 Felix Yang <felix.yang@huawei.com>
18921
18922 PR tree-optimization/94784
18923 * tree-ssa-forwprop.c (simplify_vector_constructor): Flip the
18924 assert around so that it checks that the two vectors have equal
18925 TYPE_VECTOR_SUBPARTS and that converting the corresponding element
18926 types is a useless_type_conversion_p.
18927
18928 2020-04-27 Szabolcs Nagy <szabolcs.nagy@arm.com>
18929
18930 PR target/94515
18931 * dwarf2cfi.c (struct GTY): Add ra_mangled.
18932 (cfi_row_equal_p): Check ra_mangled.
18933 (dwarf2out_frame_debug_cfa_window_save): Remove the argument,
18934 this only handles the sparc logic now.
18935 (dwarf2out_frame_debug_cfa_toggle_ra_mangle): New function for
18936 the aarch64 specific logic.
18937 (dwarf2out_frame_debug): Update to use the new subroutines.
18938 (change_cfi_row): Check ra_mangled.
18939
18940 2020-04-27 Jakub Jelinek <jakub@redhat.com>
18941
18942 PR target/94704
18943 * config/s390/s390.c (s390_function_arg_vector,
18944 s390_function_arg_float): Ignore cxx17_empty_base_field_p fields.
18945
18946 2020-04-27 Jiufu Guo <guojiufu@cn.ibm.com>
18947
18948 * common/config/rs6000/rs6000-common.c
18949 (rs6000_option_optimization_table) [OPT_LEVELS_ALL]: Remove turn off
18950 -fweb.
18951 * config/rs6000/rs6000.c (rs6000_option_override_internal): Avoid to
18952 set flag_web.
18953
18954 2020-04-27 Martin Liska <mliska@suse.cz>
18955
18956 PR lto/94659
18957 * cgraph.h (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
18958 Do not remove ifunc_resolvers in remove unreachable nodes in LTO.
18959
18960 2020-04-27 Xiong Hu Luo <luoxhu@linux.ibm.com>
18961
18962 PR target/91518
18963 * config/rs6000/rs6000-logue.c (frame_pointer_needed_indeed):
18964 New variable.
18965 (rs6000_emit_prologue_components):
18966 Check with frame_pointer_needed_indeed.
18967 (rs6000_emit_epilogue_components): Likewise.
18968 (rs6000_emit_prologue): Likewise.
18969 (rs6000_emit_epilogue): Set frame_pointer_needed_indeed.
18970
18971 2020-04-25 David Edelsohn <dje.gcc@gmail.com>
18972
18973 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Don't push a
18974 stack frame when debugging and flag_compare_debug is enabled.
18975
18976 2020-04-25 Michael Meissner <meissner@linux.ibm.com>
18977
18978 * config/rs6000/linux64.h (PCREL_SUPPORTED_BY_OS): Define to
18979 enable PC-relative addressing for -mcpu=future.
18980 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Move
18981 after OTHER_FUTURE_MASKS. Use OTHER_FUTURE_MASKS.
18982 * config/rs6000/rs6000.c (PCREL_SUPPORTED_BY_OS): If not defined,
18983 suppress PC-relative addressing.
18984 (rs6000_option_override_internal): Split up error messages
18985 checking for -mprefixed and -mpcrel. Enable -mpcrel if the target
18986 system supports it.
18987
18988 2020-04-25 Jakub Jelinek <jakub@redhat.com>
18989 Richard Biener <rguenther@suse.de>
18990
18991 PR tree-optimization/94734
18992 PR tree-optimization/89430
18993 * tree-ssa-phiopt.c: Include tree-eh.h.
18994 (cond_store_replacement): Return false if an automatic variable
18995 access could trap. If -fstore-data-races, don't return false
18996 just because an automatic variable is addressable.
18997
18998 2020-04-24 Andrew Stubbs <ams@codesourcery.com>
18999
19000 * config/gcn/gcn-valu.md (add<mode>_zext_dup2_exec): Fix merge
19001 of high-part.
19002 (add<mode>_sext_dup2_exec): Likewise.
19003
19004 2020-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19005
19006 PR target/94710
19007 * config/rs6000/vector.md (vec_shr_<mode> for VEC_L): Correct little
19008 endian byteshift_val calculation.
19009
19010 2020-04-24 Andrew Stubbs <ams@codesourcery.com>
19011
19012 * config/gcn/gcn.md (*mov<mode>_insn): Only split post-reload.
19013
19014 2020-04-24 Richard Sandiford <richard.sandiford@arm.com>
19015
19016 * config/aarch64/arm_sve.h: Add a comment.
19017
19018 2020-04-24 Haijian Zhang <z.zhanghaijian@huawei.com>
19019
19020 PR rtl-optimization/94708
19021 * combine.c (simplify_if_then_else): Add check for
19022 !HONOR_NANS (mode) && !HONOR_SIGNED_ZEROS (mode).
19023
19024 2020-04-23 Martin Sebor <msebor@redhat.com>
19025
19026 PR driver/90983
19027 * common.opt (-Wno-frame-larger-than): New option.
19028 (-Wno-larger-than, -Wno-stack-usage): Same.
19029
19030 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
19031
19032 * config/gcn/gcn-valu.md (mov<mode>_exec): Swap the numbers on operands
19033 2 and 3.
19034 (mov<mode>_exec): Likewise.
19035 (trunc<vndi><mode>2_exec): Swap parameters to gen_mov<mode>_exec.
19036 (<convop><mode><vndi>2_exec): Likewise.
19037
19038 2019-04-23 Eric Botcazou <ebotcazou@adacore.com>
19039
19040 PR tree-optimization/94717
19041 * gimple-ssa-store-merging.c (try_coalesce_bswap): Return false if one
19042 of the stores doesn't have the same landing pad number as the first.
19043 (coalesce_immediate_stores): Do not try to coalesce the store using
19044 bswap if it doesn't have the same landing pad number as the first.
19045
19046 2020-04-23 Bill Schmidt <wschmidt@linux.ibm.com>
19047
19048 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19049 Replace outdated link to ELFv2 ABI.
19050
19051 2020-04-23 Jakub Jelinek <jakub@redhat.com>
19052
19053 PR target/94710
19054 * optabs.c (expand_vec_perm_const): For shift_amt const0_rtx
19055 just return v2.
19056
19057 PR middle-end/94724
19058 * tree.c (get_narrower): Instead of creating COMPOUND_EXPRs
19059 temporarily with non-final second operand and updating it later,
19060 push COMPOUND_EXPRs into a vector and process it in reverse,
19061 creating COMPOUND_EXPRs with the final operands.
19062
19063 2020-04-23 Szabolcs Nagy <szabolcs.nagy@arm.com>
19064
19065 PR target/94697
19066 * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Swap
19067 bti c and bti j handling.
19068
19069 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
19070 Thomas Schwinge <thomas@codesourcery.com>
19071
19072 PR middle-end/93488
19073
19074 * omp-expand.c (expand_omp_target): Use force_gimple_operand_gsi on
19075 t_async and the wait arguments.
19076
19077 2020-04-23 Richard Sandiford <richard.sandiford@arm.com>
19078
19079 PR tree-optimization/94727
19080 * tree-vect-stmts.c (vectorizable_comparison): Use mask_type when
19081 comparing invariant scalar booleans.
19082
19083 2020-04-23 Matthew Malcomson <matthew.malcomson@arm.com>
19084 Jakub Jelinek <jakub@redhat.com>
19085
19086 PR target/94383
19087 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Account for C++17
19088 empty base class artificial fields.
19089 (aarch64_vfp_is_call_or_return_candidate): Warn when ABI PCS decision is
19090 different after this fix.
19091
19092 2020-04-23 Jakub Jelinek <jakub@redhat.com>
19093
19094 PR target/94707
19095 * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
19096 Use TYPE_UID (TYPE_MAIN_VARIANT (type)) instead of type to check
19097 if the same type has been diagnosed most recently already.
19098
19099 2020-04-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19100
19101 * config/arm/arm_mve.h (__arm_vbicq_n_u16): Modify function parameter's
19102 datatype.
19103 (__arm_vbicq_n_s16): Likewise.
19104 (__arm_vbicq_n_u32): Likewise.
19105 (__arm_vbicq_n_s32): Likewise.
19106 (__arm_vbicq): Likewise.
19107 (__arm_vbicq_n_s16): Modify MVE polymorphic variant argument's datatype.
19108 (__arm_vbicq_n_s32): Likewise.
19109 (__arm_vbicq_n_u16): Likewise.
19110 (__arm_vbicq_n_u32): Likewise.
19111 (__arm_vdupq_m_n_s8): Likewise.
19112 (__arm_vdupq_m_n_s16): Likewise.
19113 (__arm_vdupq_m_n_s32): Likewise.
19114 (__arm_vdupq_m_n_u8): Likewise.
19115 (__arm_vdupq_m_n_u16): Likewise.
19116 (__arm_vdupq_m_n_u32): Likewise.
19117 (__arm_vdupq_m_n_f16): Likewise.
19118 (__arm_vdupq_m_n_f32): Likewise.
19119 (__arm_vldrhq_gather_offset_s16): Likewise.
19120 (__arm_vldrhq_gather_offset_s32): Likewise.
19121 (__arm_vldrhq_gather_offset_u16): Likewise.
19122 (__arm_vldrhq_gather_offset_u32): Likewise.
19123 (__arm_vldrhq_gather_offset_f16): Likewise.
19124 (__arm_vldrhq_gather_offset_z_s16): Likewise.
19125 (__arm_vldrhq_gather_offset_z_s32): Likewise.
19126 (__arm_vldrhq_gather_offset_z_u16): Likewise.
19127 (__arm_vldrhq_gather_offset_z_u32): Likewise.
19128 (__arm_vldrhq_gather_offset_z_f16): Likewise.
19129 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
19130 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
19131 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
19132 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
19133 (__arm_vldrhq_gather_shifted_offset_f16): Likewise.
19134 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
19135 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
19136 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
19137 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
19138 (__arm_vldrhq_gather_shifted_offset_z_f16): Likewise.
19139 (__arm_vldrwq_gather_offset_s32): Likewise.
19140 (__arm_vldrwq_gather_offset_u32): Likewise.
19141 (__arm_vldrwq_gather_offset_f32): Likewise.
19142 (__arm_vldrwq_gather_offset_z_s32): Likewise.
19143 (__arm_vldrwq_gather_offset_z_u32): Likewise.
19144 (__arm_vldrwq_gather_offset_z_f32): Likewise.
19145 (__arm_vldrwq_gather_shifted_offset_s32): Likewise.
19146 (__arm_vldrwq_gather_shifted_offset_u32): Likewise.
19147 (__arm_vldrwq_gather_shifted_offset_f32): Likewise.
19148 (__arm_vldrwq_gather_shifted_offset_z_s32): Likewise.
19149 (__arm_vldrwq_gather_shifted_offset_z_u32): Likewise.
19150 (__arm_vldrwq_gather_shifted_offset_z_f32): Likewise.
19151 (__arm_vdwdupq_x_n_u8): Likewise.
19152 (__arm_vdwdupq_x_n_u16): Likewise.
19153 (__arm_vdwdupq_x_n_u32): Likewise.
19154 (__arm_viwdupq_x_n_u8): Likewise.
19155 (__arm_viwdupq_x_n_u16): Likewise.
19156 (__arm_viwdupq_x_n_u32): Likewise.
19157 (__arm_vidupq_x_n_u8): Likewise.
19158 (__arm_vddupq_x_n_u8): Likewise.
19159 (__arm_vidupq_x_n_u16): Likewise.
19160 (__arm_vddupq_x_n_u16): Likewise.
19161 (__arm_vidupq_x_n_u32): Likewise.
19162 (__arm_vddupq_x_n_u32): Likewise.
19163 (__arm_vldrdq_gather_offset_s64): Likewise.
19164 (__arm_vldrdq_gather_offset_u64): Likewise.
19165 (__arm_vldrdq_gather_offset_z_s64): Likewise.
19166 (__arm_vldrdq_gather_offset_z_u64): Likewise.
19167 (__arm_vldrdq_gather_shifted_offset_s64): Likewise.
19168 (__arm_vldrdq_gather_shifted_offset_u64): Likewise.
19169 (__arm_vldrdq_gather_shifted_offset_z_s64): Likewise.
19170 (__arm_vldrdq_gather_shifted_offset_z_u64): Likewise.
19171 (__arm_vidupq_m_n_u8): Likewise.
19172 (__arm_vidupq_m_n_u16): Likewise.
19173 (__arm_vidupq_m_n_u32): Likewise.
19174 (__arm_vddupq_m_n_u8): Likewise.
19175 (__arm_vddupq_m_n_u16): Likewise.
19176 (__arm_vddupq_m_n_u32): Likewise.
19177 (__arm_vidupq_n_u16): Likewise.
19178 (__arm_vidupq_n_u32): Likewise.
19179 (__arm_vidupq_n_u8): Likewise.
19180 (__arm_vddupq_n_u16): Likewise.
19181 (__arm_vddupq_n_u32): Likewise.
19182 (__arm_vddupq_n_u8): Likewise.
19183
19184 2020-04-23 Iain Buclaw <ibuclaw@gdcproject.org>
19185
19186 * doc/install.texi (D-Specific Options): Document
19187 --enable-libphobos-checking and --with-libphobos-druntime-only.
19188
19189 2020-04-23 Jakub Jelinek <jakub@redhat.com>
19190
19191 PR target/94707
19192 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Add
19193 cxx17_empty_base_seen argument. Pass it to recursive calls.
19194 Ignore cxx17_empty_base_field_p fields after setting
19195 *cxx17_empty_base_seen to true.
19196 (rs6000_discover_homogeneous_aggregate): Adjust
19197 rs6000_aggregate_candidate caller. With -Wpsabi, diagnose homogeneous
19198 aggregates with C++17 empty base fields.
19199
19200 PR c/94705
19201 * attribs.c (decl_attribute): Don't diagnose attribute exclusions
19202 if last_decl is error_mark_node or has such a TREE_TYPE.
19203
19204 PR c/94705
19205 * attribs.c (decl_attribute): Don't diagnose attribute exclusions
19206 if last_decl is error_mark_node or has such a TREE_TYPE.
19207
19208 2020-04-22 Felix Yang <felix.yang@huawei.com>
19209
19210 PR target/94678
19211 * config/aarch64/aarch64.h (TARGET_SVE):
19212 Add && !TARGET_GENERAL_REGS_ONLY.
19213 (TARGET_SVE2): Add && TARGET_SVE.
19214 (TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3,
19215 TARGET_SVE2_SM4): Add && TARGET_SVE2.
19216 * config/aarch64/aarch64-sve-builtins.h
19217 (sve_switcher::m_old_general_regs_only): New member.
19218 * config/aarch64/aarch64-sve-builtins.cc (check_required_registers):
19219 New function.
19220 (reported_missing_registers_p): New variable.
19221 (check_required_extensions): Call check_required_registers before
19222 return if all required extenstions are present.
19223 (sve_switcher::sve_switcher): Save TARGET_GENERAL_REGS_ONLY in
19224 m_old_general_regs_only and clear MASK_GENERAL_REGS_ONLY in
19225 global_options.x_target_flags.
19226 (sve_switcher::~sve_switcher): Set MASK_GENERAL_REGS_ONLY in
19227 global_options.x_target_flags if m_old_general_regs_only is true.
19228
19229 2020-04-22 Zackery Spytz <zspytz@gmail.com>
19230
19231 * doc/extend.exi: Add "free" to list of other builtin functions
19232 supported by GCC.
19233
19234 2020-04-20 Aaron Sawdey <acsawdey@linux.ibm.com>
19235
19236 PR target/94622
19237 * config/rs6000/sync.md (load_quadpti): Add attr "prefixed"
19238 if TARGET_PREFIXED.
19239 (store_quadpti): Ditto.
19240 (atomic_load<mode>): Do not swap doublewords if TARGET_PREFIXED as
19241 plq will be used and doesn't need it.
19242 (atomic_store<mode>): Ditto, for pstq.
19243
19244 2020-04-22 Erick Ochoa <erick.ochoa@theobroma-systems.com>
19245
19246 * doc/invoke.texi: Update flags turned on by -O3.
19247
19248 2020-04-22 Jakub Jelinek <jakub@redhat.com>
19249
19250 PR target/94706
19251 * config/ia64/ia64.c (hfa_element_mode): Ignore
19252 cxx17_empty_base_field_p fields.
19253
19254 PR target/94383
19255 * calls.h (cxx17_empty_base_field_p): Declare.
19256 * calls.c (cxx17_empty_base_field_p): Define.
19257
19258 2020-04-22 Christophe Lyon <christophe.lyon@linaro.org>
19259
19260 * doc/sourcebuild.texi (arm_softfp_ok, arm_hard_ok): Document.
19261
19262 2020-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19263 Andre Vieira <andre.simoesdiasvieira@arm.com>
19264 Mihail Ionescu <mihail.ionescu@arm.com>
19265
19266 * config/arm/arm.c (arm_file_start): Handle isa_bit_quirk_no_asmcpu.
19267 * config/arm/arm-cpus.in (quirk_no_asmcpu): Define.
19268 (ALL_QUIRKS): Add quirk_no_asmcpu.
19269 (cortex-m55): Define new cpu.
19270 * config/arm/arm-tables.opt: Regenerate.
19271 * config/arm/arm-tune.md: Likewise.
19272 * doc/invoke.texi (Arm Options): Document -mcpu=cortex-m55.
19273
19274 2020-04-22 Richard Sandiford <richard.sandiford@arm.com>
19275
19276 PR tree-optimization/94700
19277 * tree-ssa-forwprop.c (simplify_vector_constructor): When processing
19278 an identity constructor, use a VIEW_CONVERT_EXPR to handle mixtures
19279 of similarly-structured but distinct vector types.
19280
19281 2020-04-21 Martin Sebor <msebor@redhat.com>
19282
19283 PR middle-end/94647
19284 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Correct
19285 the computation of the lower bound of the source access size.
19286 (builtin_access::generic_overlap): Remove a hack for setting ranges
19287 of overlap offsets.
19288
19289 2020-04-21 John David Anglin <danglin@gcc.gnu.org>
19290
19291 * config/pa/som.h (ASM_WEAKEN_LABEL): Delete.
19292 (ASM_WEAKEN_DECL): New define.
19293 (HAVE_GAS_WEAKREF): Undefine.
19294
19295 2020-04-21 Richard Sandiford <richard.sandiford@arm.com>
19296
19297 PR tree-optimization/94683
19298 * tree-ssa-forwprop.c (simplify_vector_constructor): Use a
19299 VIEW_CONVERT_EXPR to handle mixtures of similarly-structured
19300 but distinct vector types.
19301
19302 2020-04-21 Jakub Jelinek <jakub@redhat.com>
19303
19304 PR c/94641
19305 * stor-layout.c (place_field, finalize_record_size): Don't emit
19306 -Wpadded warning on TYPE_ARTIFICIAL rli->t.
19307 * ubsan.c (ubsan_get_type_descriptor_type,
19308 ubsan_get_source_location_type, ubsan_create_data): Set
19309 TYPE_ARTIFICIAL.
19310 * asan.c (asan_global_struct): Likewise.
19311
19312 2020-04-21 Duan bo <duanbo3@huawei.com>
19313
19314 PR target/94577
19315 * config/aarch64/aarch64.c: Add an error message for option conflict.
19316 * doc/invoke.texi (-mcmodel=large): Mention that -mcmodel=large is
19317 incompatible with -fpic, -fPIC and -mabi=ilp32.
19318
19319 2020-04-21 Frederik Harwath <frederik@codesourcery.com>
19320
19321 PR other/94629
19322 * omp-low.c (new_omp_context): Remove assignments to
19323 ctx->outer_reduction_clauses and ctx->local_reduction_clauses.
19324
19325 2020-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
19326
19327 * config/s390/vector.md ("popcountv8hi2_vx", "popcountv4si2_vx")
19328 ("popcountv2di2_vx"): Use simplify_gen_subreg.
19329
19330 2020-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
19331
19332 PR target/94613
19333 * config/s390/s390-builtin-types.def: Add 3 new function modes.
19334 * config/s390/s390-builtins.def: Add mode dependent low-level
19335 builtin and map the overloaded builtins to these.
19336 * config/s390/vx-builtins.md ("vec_selV_HW"): Rename to ...
19337 ("vsel<V_HW"): ... this and rewrite the pattern with bitops.
19338
19339 2020-04-20 Richard Sandiford <richard.sandiford@arm.com>
19340
19341 * tree-vect-loop.c (vect_better_loop_vinfo_p): If old_loop_vinfo
19342 has a variable VF, prefer new_loop_vinfo if it is cheaper for the
19343 estimated VF and is no worse at double the estimated VF.
19344
19345 2020-04-20 Richard Sandiford <richard.sandiford@arm.com>
19346
19347 PR target/94668
19348 * config/aarch64/aarch64.c (aarch64_sve_expand_vector_init): Fix
19349 order of arguments to rtx_vector_builder.
19350 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
19351 When extending the trailing constants to a full vector, replace any
19352 variables with zeros.
19353
19354 2020-04-20 Jan Hubicka <hubicka@ucw.cz>
19355
19356 PR ipa/94582
19357 * tree-inline.c (optimize_inline_calls): Recompute calls_comdat_local
19358 flag.
19359
19360 2020-04-20 Martin Liska <mliska@suse.cz>
19361
19362 * symtab.c (symtab_node::dump_references): Add space after
19363 one entry.
19364 (symtab_node::dump_referring): Likewise.
19365
19366 2020-04-18 Jeff Law <law@redhat.com>
19367
19368 PR debug/94439
19369 * regrename.c (check_new_reg_p): Ignore DEBUG_INSNs when walking
19370 the chain.
19371
19372 2020-04-18 Iain Buclaw <ibuclaw@gdcproject.org>
19373
19374 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
19375 attributes): Document d_runtime_has_std_library.
19376
19377 2020-04-17 Jeff Law <law@redhat.com>
19378
19379 PR rtl-optimization/90275
19380 * cse.c (cse_insn): Avoid recording nop sets in multi-set parallels
19381 when the destination has a REG_UNUSED note.
19382
19383 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
19384
19385 PR middle-end/94635
19386 * gimplify.c (gimplify_scan_omp_clauses): Turn MAP_TO_PSET to
19387 MAP_DELETE.
19388
19389 2020-04-17 Richard Sandiford <richard.sandiford@arm.com>
19390
19391 * config/aarch64/aarch64.c (aarch64_advsimd_ldp_stp_p): New function.
19392 (aarch64_sve_adjust_stmt_cost): Add a vectype parameter. Double the
19393 cost of load and store insns if one loop iteration has enough scalar
19394 elements to use an Advanced SIMD LDP or STP.
19395 (aarch64_add_stmt_cost): Update call accordingly.
19396
19397 2020-04-17 Jakub Jelinek <jakub@redhat.com>
19398 Jeff Law <law@redhat.com>
19399
19400 PR target/94567
19401 * config/i386/i386.md (*testqi_ext_3): Use CCZmode rather than
19402 CCNOmode in ix86_match_ccmode if len is equal to <MODE>mode precision,
19403 or pos + len >= 32, or pos + len is equal to operands[2] precision
19404 and operands[2] is not a register operand. During splitting perform
19405 SImode AND if operands[0] doesn't have CCZmode and pos + len is
19406 equal to mode precision.
19407
19408 2020-04-17 Richard Biener <rguenther@suse.de>
19409
19410 PR other/94629
19411 * cgraphclones.c (cgraph_node::create_clone): Remove duplicate
19412 initialization.
19413 * dwarf2out.c (dw_val_equal_p): Fix pasto in
19414 dw_val_class_vms_delta comparison.
19415 * optabs.c (expand_binop_directly): Fix pasto in commutation
19416 check.
19417 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Fix pasto in
19418 initialization.
19419
19420 2020-04-17 Jakub Jelinek <jakub@redhat.com>
19421
19422 PR rtl-optimization/94618
19423 * cfgrtl.c (delete_insn_and_edges): Set purge not just when
19424 insn is the BB_END of its block, but also when it is only followed
19425 by DEBUG_INSNs in its block.
19426
19427 PR tree-optimization/94621
19428 * tree-inline.c (remap_type_1): Don't dereference NULL TYPE_DOMAIN.
19429 Move id->adjust_array_error_bounds check first in the condition.
19430
19431 2020-04-17 Martin Liska <mliska@suse.cz>
19432 Jonathan Yong <10walls@gmail.com>
19433
19434 PR gcov-profile/94570
19435 * coverage.c (coverage_init): Use separator properly.
19436
19437 2020-04-16 Peter Bergner <bergner@linux.ibm.com>
19438
19439 PR rtl-optimization/93974
19440 * config/rs6000/rs6000.c (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
19441 (rs6000_cannot_substitute_mem_equiv_p): New function.
19442
19443 2020-04-16 Martin Jambor <mjambor@suse.cz>
19444
19445 PR ipa/93621
19446 * ipa-inline.h (ipa_saved_clone_sources): Declare.
19447 * ipa-inline-transform.c (ipa_saved_clone_sources): New variable.
19448 (save_inline_function_body): Link the new body holder with the
19449 previous one.
19450 * cgraph.c: Include ipa-inline.h.
19451 (cgraph_edge::redirect_call_stmt_to_callee): Try to find the decl from
19452 the statement in ipa_saved_clone_sources.
19453 * cgraphunit.c: Include ipa-inline.h.
19454 (expand_all_functions): Free ipa_saved_clone_sources.
19455
19456 2020-04-16 Richard Sandiford <richard.sandiford@arm.com>
19457
19458 PR target/94606
19459 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor): Take
19460 the VNx16BI lowpart of the recursively-generated constant.
19461
19462 2020-04-16 Martin Liska <mliska@suse.cz>
19463 Jakub Jelinek <jakub@redhat.com>
19464
19465 PR c++/94314
19466 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
19467 DECL_IS_REPLACEABLE_OPERATOR during cloning.
19468 * tree-ssa-dce.c (valid_new_delete_pair_p): New function.
19469 (propagate_necessity): Check operator names.
19470
19471 2020-04-16 Richard Sandiford <richard.sandiford@arm.com>
19472
19473 PR rtl-optimization/94605
19474 * early-remat.c (early_remat::process_block): Handle insns that
19475 set multiple candidate registers.
19476 2020-04-16 Jan Hubicka <hubicka@ucw.cz>
19477
19478 PR gcov-profile/93401
19479 * common.opt (profile-prefix-path): New option.
19480 * coverae.c: Include diagnostics.h.
19481 (coverage_init): Strip profile prefix path.
19482 * doc/invoke.texi (-fprofile-prefix-path): Document.
19483
19484 2020-04-16 Richard Biener <rguenther@suse.de>
19485
19486 PR middle-end/94614
19487 * expr.c (emit_move_multi_word): Do not generate code when
19488 the destination part is undefined_operand_subword_p.
19489 * lower-subreg.c (resolve_clobber): Look through a paradoxica
19490 subreg.
19491
19492 2020-04-16 Martin Jambor <mjambor@suse.cz>
19493
19494 PR tree-optimization/94598
19495 * tree-sra.c (verify_sra_access_forest): Fix verification of total
19496 scalarization accesses under access to one-element arrays.
19497
19498 2020-04-16 Jakub Jelinek <jakub@redhat.com>
19499
19500 PR bootstrap/89494
19501 * function.c (assign_parm_find_data_types): Add workaround for
19502 BROKEN_VALUE_INITIALIZATION compilers.
19503
19504 2020-04-16 Richard Biener <rguenther@suse.de>
19505
19506 * gdbhooks.py (TreePrinter): Print SSA_NAME_VERSION of SSA_NAME
19507 nodes.
19508
19509 2020-04-15 Uroš Bizjak <ubizjak@gmail.com>
19510
19511 PR target/94603
19512 * config/i386/i386-builtin.def (__builtin_ia32_movq128):
19513 Require OPTION_MASK_ISA_SSE2.
19514
19515 2020-04-15 Gustavo Romero <gromero@linux.ibm.com>
19516
19517 PR bootstrap/89494
19518 * dumpfile.c (selftest::temp_dump_context::temp_dump_context):
19519 Don't construct a dump_context temporary to call static method.
19520
19521 2020-04-15 Andrea Corallo <andrea.corallo@arm.com>
19522
19523 * config/aarch64/falkor-tag-collision-avoidance.c
19524 (valid_src_p): Check for aarch64_address_info type before
19525 accessing base field.
19526
19527 2020-04-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
19528
19529 * config/arm/mve.md (mve_vec_duplicate<mode>): New pattern.
19530 (V_sz_elem2): Remove unused mode attribute.
19531
19532 2020-04-15 Matthew Malcomson <matthew.malcomson@arm.com>
19533
19534 * config/arm/arm.md (arm_movdi): Disallow for MVE.
19535
19536 2020-04-15 Richard Biener <rguenther@suse.de>
19537
19538 PR middle-end/94539
19539 * tree-ssa-alias.c (same_type_for_tbaa): Defer to
19540 alias_sets_conflict_p for pointers.
19541
19542 2020-04-14 Max Filippov <jcmvbkbc@gmail.com>
19543
19544 PR target/94584
19545 * config/xtensa/xtensa.md (zero_extendhisi2, zero_extendqisi2)
19546 (extendhisi2_internal): Add %v1 before the load instructions.
19547
19548 2020-04-14 Aaron Sawdey <acsawdey@linux.ibm.com>
19549
19550 PR target/94542
19551 * config/rs6000/rs6000.c (address_to_insn_form): Do not attempt to
19552 use PC-relative addressing for TLS references.
19553
19554 2020-04-14 Martin Jambor <mjambor@suse.cz>
19555
19556 PR ipa/94434
19557 * ipa-sra.c: Include internal-fn.h.
19558 (enum isra_scan_context): Update comment.
19559 (scan_function): Treat calls to internal_functions like loads or stores.
19560
19561 2020-04-14 Yang Yang <yangyang305@huawei.com>
19562
19563 PR tree-optimization/94574
19564 * tree-ssa.c (non_rewritable_lvalue_p): Add size check when analyzing
19565 whether a vector-insert is rewritable using a BIT_INSERT_EXPR.
19566
19567 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
19568
19569 PR target/94561
19570 * config/i386/i386.c (ix86_get_ssemov): Remove mode size check.
19571
19572 2020-04-13 Martin Sebor <msebor@redhat.com>
19573
19574 * doc/extend.texi (-Wall): Mention -Wformat-overflow and
19575 -Wformat-truncation. Move -Wzero-length-bounds last.
19576 (-Wrestrict): Document positive form of option enabled by -Wall.
19577
19578 2020-04-13 Zachary Spytz <zspytz@gmail.com>
19579
19580 * doc/extend.texi: Add realloc to list of built-in functions
19581 are recognized by the compiler.
19582
19583 2020-04-13 H.J. Lu <hongjiu.lu@intel.com>
19584
19585 PR target/94556
19586 * config/i386/i386.c (ix86_expand_epilogue): Restore the frame
19587 pointer in word_mode for eh_return epilogues.
19588
19589 2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19590
19591 * config/msp430/msp430.c (msp430_print_operand): Don't add offsets to
19592 memory references in %B, %C and %D operand selectors when the inner
19593 operand is a post increment address.
19594
19595 2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19596
19597 * config/msp430/msp430.c (msp430_print_operand): Offset a %C memory
19598 reference by 4 bytes, and %D memory reference by 6 bytes.
19599
19600 2020-04-11 Uroš Bizjak <ubizjak@gmail.com>
19601
19602 PR target/94494
19603 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE2
19604 condition for V4SI, V8HI and V16QI modes.
19605
19606 2020-04-11 Jakub Jelinek <jakub@redhat.com>
19607
19608 PR debug/94495
19609 PR target/94551
19610 * cselib.c (cselib_record_sp_cfa_base_equiv): Set PRESERVED_VALUE_P on
19611 val->val_rtx.
19612
19613 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
19614
19615 PR middle-end/89433
19616 PR middle-end/93465
19617 * omp-general.c (oacc_verify_routine_clauses): Diagnose if
19618 "#pragma omp declare target" has also been applied.
19619
19620 2020-04-09 Jozef Lawrynowicz <jozef.l@mittosystems.com>
19621
19622 * config/msp430/msp430.c (msp430_expand_epilogue): Use emit_jump_insn
19623 when to emit the epilogue_helper insn.
19624 * config/msp430/msp430.md (epilogue_helper): Add a return insn to the
19625 RTL pattern.
19626
19627 2020-04-09 Jakub Jelinek <jakub@redhat.com>
19628
19629 PR debug/94495
19630 * cselib.h (cselib_record_sp_cfa_base_equiv,
19631 cselib_sp_derived_value_p): Declare.
19632 * cselib.c (cselib_record_sp_cfa_base_equiv,
19633 cselib_sp_derived_value_p): New functions.
19634 * var-tracking.c (add_stores): Don't record MO_VAL_SET for
19635 cselib_sp_derived_value_p values.
19636 (vt_initialize): Call cselib_record_sp_cfa_base_equiv at the
19637 start of extended basic blocks other than the first one
19638 for !frame_pointer_needed functions.
19639
19640 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
19641
19642 * doc/sourcebuild.texi (aarch64_sve_hw, aarch64_sve128_hw)
19643 (aarch64_sve256_hw, aarch64_sve512_hw, aarch64_sve1024_hw)
19644 (aarch64_sve2048_hw): Document.
19645 * config/aarch64/aarch64-protos.h
19646 (aarch64_sve::handle_arm_sve_vector_bits_attribute): Declare.
19647 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
19648 __ARM_FEATURE_SVE_VECTOR_OPERATIONS when SVE is enabled.
19649 * config/aarch64/aarch64-sve-builtins.cc (matches_type_p): New
19650 function.
19651 (find_type_suffix_for_scalar_type): Use it instead of comparing
19652 TYPE_MAIN_VARIANTs.
19653 (function_resolver::infer_vector_or_tuple_type): Likewise.
19654 (function_resolver::require_vector_type): Likewise.
19655 (handle_arm_sve_vector_bits_attribute): New function.
19656 * config/aarch64/aarch64.c (pure_scalable_type_info): New class.
19657 (aarch64_attribute_table): Add arm_sve_vector_bits.
19658 (aarch64_return_in_memory_1):
19659 (pure_scalable_type_info::piece::get_rtx): New function.
19660 (pure_scalable_type_info::num_zr): Likewise.
19661 (pure_scalable_type_info::num_pr): Likewise.
19662 (pure_scalable_type_info::get_rtx): Likewise.
19663 (pure_scalable_type_info::analyze): Likewise.
19664 (pure_scalable_type_info::analyze_registers): Likewise.
19665 (pure_scalable_type_info::analyze_array): Likewise.
19666 (pure_scalable_type_info::analyze_record): Likewise.
19667 (pure_scalable_type_info::add_piece): Likewise.
19668 (aarch64_some_values_include_pst_objects_p): Likewise.
19669 (aarch64_returns_value_in_sve_regs_p): Use pure_scalable_type_info
19670 to analyze whether the type is returned in SVE registers.
19671 (aarch64_takes_arguments_in_sve_regs_p): Likwise whether the type
19672 is passed in SVE registers.
19673 (aarch64_pass_by_reference_1): New function, extracted from...
19674 (aarch64_pass_by_reference): ...here. Use pure_scalable_type_info
19675 to analyze whether the type is a pure scalable type and, if so,
19676 whether it should be passed by reference.
19677 (aarch64_return_in_msb): Return false for pure scalable types.
19678 (aarch64_function_value_1): Fold back into...
19679 (aarch64_function_value): ...this function. Use
19680 pure_scalable_type_info to analyze whether the type is a pure
19681 scalable type and, if so, which registers it should use. Handle
19682 types that include pure scalable types but are not themselves
19683 pure scalable types.
19684 (aarch64_return_in_memory_1): New function, split out from...
19685 (aarch64_return_in_memory): ...here. Use pure_scalable_type_info
19686 to analyze whether the type is a pure scalable type and, if so,
19687 whether it should be returned by reference.
19688 (aarch64_layout_arg): Remove orig_mode argument. Use
19689 pure_scalable_type_info to analyze whether the type is a pure
19690 scalable type and, if so, which registers it should use. Handle
19691 types that include pure scalable types but are not themselves
19692 pure scalable types.
19693 (aarch64_function_arg): Update call accordingly.
19694 (aarch64_function_arg_advance): Likewise.
19695 (aarch64_pad_reg_upward): On big-endian targets, return false for
19696 pure scalable types that are smaller than 16 bytes.
19697 (aarch64_member_type_forces_blk): New function.
19698 (aapcs_vfp_sub_candidate): Exit early for built-in SVE types.
19699 (aarch64_short_vector_p): Return false for VECTOR_TYPEs that
19700 correspond to built-in SVE types. Do not rely on a vector mode
19701 if the type includes an pure scalable type. When returning true,
19702 assert that the mode is not an SVE mode.
19703 (aarch64_vfp_is_call_or_return_candidate): Do not check for SVE
19704 built-in types here. When returning true, assert that the type
19705 does not have an SVE mode.
19706 (aarch64_can_change_mode_class): Don't allow anything to change
19707 between a predicate mode and a non-predicate mode. Also don't
19708 allow changes between SVE vector modes and other modes that
19709 might be bigger than 128 bits.
19710 (aarch64_invalid_binary_op): Reject binary operations that mix
19711 SVE and GNU vector types.
19712 (TARGET_MEMBER_TYPE_FORCES_BLK): Define.
19713
19714 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
19715
19716 * config/aarch64/aarch64.c (aarch64_attribute_table): Add
19717 "SVE sizeless type".
19718 * config/aarch64/aarch64-sve-builtins.cc (make_type_sizeless)
19719 (sizeless_type_p): New functions.
19720 (register_builtin_types): Apply make_type_sizeless to the type.
19721 (register_tuple_type): Likewise.
19722 (verify_type_context): Use sizeless_type_p instead of builin_type_p.
19723
19724 2020-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
19725
19726 * config/arm/arm_cde.h: Remove `extern "C"` when compiling for
19727 C++.
19728
19729 2020-04-09 Martin Jambor <mjambor@suse.cz>
19730 Richard Biener <rguenther@suse.de>
19731
19732 PR tree-optimization/94482
19733 * tree-sra.c (create_access_replacement): Dump new replacement with
19734 TDF_UID.
19735 (sra_modify_expr): Fix handling of cases when the original EXPR writes
19736 to only part of the replacement.
19737 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly verify
19738 the first operand of combinations into REAL/IMAGPART_EXPR and
19739 BIT_FIELD_REF.
19740
19741 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
19742
19743 * doc/sourcebuild.texi (check-function-bodies): Treat the third
19744 parameter as a list of option regexps and require each regexp
19745 to match.
19746
19747 2020-04-09 Andrea Corallo <andrea.corallo@arm.com>
19748
19749 PR target/94530
19750 * config/aarch64/falkor-tag-collision-avoidance.c
19751 (valid_src_p): Fix missing rtx type check.
19752
19753 2020-04-09 Bin Cheng <bin.cheng@linux.alibaba.com>
19754 Richard Biener <rguenther@suse.de>
19755
19756 PR tree-optimization/93674
19757 * tree-ssa-loop-ivopts.c (langhooks.h): New include.
19758 (add_iv_candidate_for_use): For iv_use of non integer or pointer type,
19759 or non-mode precision type, add candidate in unsigned type with the
19760 same precision.
19761
19762 2020-04-08 Clement Chigot <clement.chigot@atos.net>
19763
19764 * config/rs6000/aix61.h (LIB_SPEC): Add -lc128 with -mlong-double-128.
19765 * config/rs6000/aix71.h (LIB_SPEC): Likewise.
19766 * config/rs6000/aix72.h (LIB_SPEC): Likewise.
19767
19768 2020-04-08 Jakub Jelinek <jakub@redhat.com>
19769
19770 PR middle-end/94526
19771 * cselib.c (autoinc_split): Handle e->val_rtx being SP_DERIVED_VALUE_P
19772 with zero offset.
19773 * reload1.c (eliminate_regs_1): Avoid creating
19774 (plus (reg) (const_int 0)) in DEBUG_INSNs.
19775
19776 PR tree-optimization/94524
19777 * tree-vect-generic.c (expand_vector_divmod): If any elt of op1 is
19778 negative for signed TRUNC_MOD_EXPR, multiply with absolute value of
19779 op1 rather than op1 itself at the end. Punt for signed modulo by
19780 most negative constant.
19781 * tree-vect-patterns.c (vect_recog_divmod_pattern): Punt for signed
19782 modulo by most negative constant.
19783
19784 2020-04-08 Richard Biener <rguenther@suse.de>
19785
19786 PR rtl-optimization/93946
19787 * cse.c (cse_insn): Record the tabled expression in
19788 src_related. Verify a redundant store removal is valid.
19789
19790 2020-04-08 H.J. Lu <hongjiu.lu@intel.com>
19791
19792 PR target/94417
19793 * config/i386/i386-features.c (rest_of_insert_endbranch): Insert
19794 ENDBR at function entry if function will be called indirectly.
19795
19796 2020-04-08 Jakub Jelinek <jakub@redhat.com>
19797
19798 PR target/94438
19799 * config/i386/i386.c (ix86_get_mask_mode): Only use int mask for elem_size
19800 1, 2, 4 and 8.
19801
19802 2020-04-08 Martin Liska <mliska@suse.cz>
19803
19804 PR c++/94314
19805 * gimple.c (gimple_call_operator_delete_p): Rename to...
19806 (gimple_call_replaceable_operator_delete_p): ... this.
19807 Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
19808 * gimple.h (gimple_call_operator_delete_p): Rename to ...
19809 (gimple_call_replaceable_operator_delete_p): ... this.
19810 * tree-core.h (tree_function_decl): Add replaceable_operator
19811 flag.
19812 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1):
19813 Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
19814 (propagate_necessity): Use gimple_call_replaceable_operator_delete_p.
19815 (eliminate_unnecessary_stmts): Likewise.
19816 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
19817 Pack DECL_IS_REPLACEABLE_OPERATOR.
19818 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
19819 Unpack the field here.
19820 * tree.h (DECL_IS_REPLACEABLE_OPERATOR): New.
19821 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): New.
19822 (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): New.
19823 * cgraph.c (cgraph_node::dump): Dump if an operator is replaceable.
19824 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Compare
19825 replaceable operator flags.
19826
19827 2020-04-08 Dennis Zhang <dennis.zhang@arm.com>
19828 Matthew Malcomson <matthew.malcomson@arm.com>
19829
19830 * config/arm/arm-builtins.c (CX_IMM_QUALIFIERS): New macro.
19831 (CX_UNARY_QUALIFIERS, CX_BINARY_QUALIFIERS): Likewise.
19832 (CX_TERNARY_QUALIFIERS): Likewise.
19833 (ARM_BUILTIN_CDE_PATTERN_START): Likewise.
19834 (ARM_BUILTIN_CDE_PATTERN_END): Likewise.
19835 (arm_init_acle_builtins): Initialize CDE builtins.
19836 (arm_expand_acle_builtin): Check CDE constant operands.
19837 * config/arm/arm.h (ARM_CDE_CONST_COPROC): New macro to set the range
19838 of CDE constant operand.
19839 * config/arm/arm.c (arm_hard_regno_mode_ok): Support DImode for
19840 TARGET_VFP_BASE.
19841 (ARM_VCDE_CONST_1, ARM_VCDE_CONST_2, ARM_VCDE_CONST_3): Likewise.
19842 * config/arm/arm_cde.h (__arm_vcx1_u32): New macro of ACLE interface.
19843 (__arm_vcx1a_u32, __arm_vcx2_u32, __arm_vcx2a_u32): Likewise.
19844 (__arm_vcx3_u32, __arm_vcx3a_u32, __arm_vcx1d_u64): Likewise.
19845 (__arm_vcx1da_u64, __arm_vcx2d_u64, __arm_vcx2da_u64): Likewise.
19846 (__arm_vcx3d_u64, __arm_vcx3da_u64): Likewise.
19847 * config/arm/arm_cde_builtins.def: New file.
19848 * config/arm/iterators.md (V_reg): New attribute of SI.
19849 * config/arm/predicates.md (const_int_coproc_operand): New.
19850 (const_int_vcde1_operand, const_int_vcde2_operand): New.
19851 (const_int_vcde3_operand): New.
19852 * config/arm/unspecs.md (UNSPEC_VCDE, UNSPEC_VCDEA): New.
19853 * config/arm/vfp.md (arm_vcx1<mode>): New entry.
19854 (arm_vcx1a<mode>, arm_vcx2<mode>, arm_vcx2a<mode>): Likewise.
19855 (arm_vcx3<mode>, arm_vcx3a<mode>): Likewise.
19856
19857 2020-04-08 Dennis Zhang <dennis.zhang@arm.com>
19858
19859 * config.gcc: Add arm_cde.h.
19860 * config/arm/arm-c.c (arm_cpu_builtins): Define or undefine
19861 __ARM_FEATURE_CDE and __ARM_FEATURE_CDE_COPROC.
19862 * config/arm/arm-cpus.in (cdecp0, cdecp1, ..., cdecp7): New options.
19863 * config/arm/arm.c (arm_option_reconfigure_globals): Configure
19864 arm_arch_cde and arm_arch_cde_coproc to store the feature bits.
19865 * config/arm/arm.h (TARGET_CDE): New macro.
19866 * config/arm/arm_cde.h: New file.
19867 * doc/invoke.texi: Document CDE options +cdecp[0-7].
19868 * doc/sourcebuild.texi (arm_v8m_main_cde_ok): Document new target
19869 supports option.
19870 (arm_v8m_main_cde_fp, arm_v8_1m_main_cde_mve): Likewise.
19871
19872 2020-04-08 Jakub Jelinek <jakub@redhat.com>
19873
19874 PR rtl-optimization/94516
19875 * postreload.c: Include rtl-iter.h.
19876 (reload_cse_move2add): Handle SP autoinc here by FOR_EACH_SUBRTX_VAR
19877 looking for all MEMs with RTX_AUTOINC operand.
19878 (move2add_note_store): Remove {PRE,POST}_{INC,DEC} handling.
19879
19880 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
19881
19882 * omp-grid.c (grid_eliminate_combined_simd_part): Use
19883 OMP_CLAUSE_CODE to access the omp clause code.
19884
19885 2020-04-07 Jeff Law <law@redhat.com>
19886
19887 PR rtl-optimization/92264
19888 * config/h8300/h8300.md (mov;add peephole2): Avoid applying when
19889 the destination is the stack pointer.
19890
19891 2020-04-07 Jakub Jelinek <jakub@redhat.com>
19892
19893 PR rtl-optimization/94291
19894 PR rtl-optimization/84169
19895 * combine.c (try_combine): For split_i2i3, don't assume SET_DEST
19896 must be a REG or SUBREG of REG; if it is not one of these, don't
19897 update LOG_LINKs.
19898
19899 2020-04-07 Richard Biener <rguenther@suse.de>
19900
19901 PR middle-end/94479
19902 * gimplify.c (gimplify_addr_expr): Also consider generated
19903 MEM_REFs.
19904
19905 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19906
19907 * config/arm/arm_mve.h: Add C++ polymorphism and fix preserve MACROs.
19908
19909 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19910
19911 * config/arm/arm_mve.h: Cast some pointers to expected types.
19912
19913 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19914
19915 * config/arm/arm_mve.h: Replace all uses of vuninitializedq_* with the
19916 same with '__arm_' prefix.
19917
19918 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19919
19920 * config/arm/mve.md (mve_vec_extract*): Allow memory operands in set.
19921
19922 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19923
19924 * config/arm/arm.c (arm_mve_immediate_check): Removed.
19925 * config/arm/mve.md (MVE_pred2, MVE_constraint2): Added FP types.
19926 (mve_vcvtq_n_to_f_*, mve_vcvtq_n_from_f_*, mve_vqshrnbq_n_*,
19927 mve_vqshrntq_n_*, mve_vqshrunbq_n_s*, mve_vqshruntq_n_s*,
19928 mve_vcvtq_m_n_from_f_*, mve_vcvtq_m_n_to_f_*, mve_vqshrnbq_m_n_*,
19929 mve_vqrshruntq_m_n_s*, mve_vqshrunbq_m_n_s*,
19930 mve_vqshruntq_m_n_s*): Fixed immediate constraints.
19931
19932 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19933
19934 * config/arm/arm.d (ashldi3): Don't use lsll for constant 32-bit shifts.
19935
19936 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19937
19938 * config/arm/arm_mve.h: Fix v[id]wdup intrinsics.
19939 * config/arm/mve/md: Fix v[id]wdup patterns.
19940
19941 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19942
19943 * config/arm/arm.c (output_move_neon): Deal with label + offset cases.
19944 * config/arm/mve.md (*mve_mov<mode>): Handle const vectors.
19945
19946 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19947
19948 * config/arm/arm_mve.h: Remove use of typeof for addr pointer parameters
19949 and remove const_ptr enums.
19950
19951 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
19952
19953 * config/arm/arm_mve.h (vsubq_n): Merge with...
19954 (vsubq): ... this.
19955 (vmulq_n): Merge with...
19956 (vmulq): ... this.
19957 (__ARM_mve_typeid): Simplify scalar and constant detection.
19958
19959 2020-04-07 Jakub Jelinek <jakub@redhat.com>
19960
19961 PR target/94509
19962 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Fix the check
19963 for inter-lane permutation for 64-byte modes.
19964
19965 PR target/94488
19966 * config/aarch64/aarch64-simd.md (ashl<mode>3, lshr<mode>3,
19967 ashr<mode>3): Force operands[2] into reg whenever it is not CONST_INT.
19968 Assume it is a REG after that instead of testing it and doing FAIL
19969 otherwise. Formatting fix.
19970
19971 2020-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
19972
19973 * config/rs6000/t-rtems: Delete mcpu=8540 multilib.
19974
19975 2020-04-07 Jakub Jelinek <jakub@redhat.com>
19976
19977 PR target/94500
19978 * config/i386/i386-expand.c (emit_reduc_half): For V{64QI,32HI}mode
19979 handle i < 64 using avx512bw_lshrv4ti3. Formatting fixes.
19980
19981 2020-04-06 Jakub Jelinek <jakub@redhat.com>
19982
19983 * cselib.c (cselib_subst_to_values): For SP_DERIVED_VALUE_P
19984 + const0_rtx return the SP_DERIVED_VALUE_P.
19985
19986 2020-04-06 Richard Sandiford <richard.sandiford@arm.com>
19987
19988 PR rtl-optimization/92989
19989 * lra-lives.c (process_bb_lives): Do not treat eh_return data
19990 registers as being live at the beginning of the EH receiver.
19991
19992 2020-04-05 Zachary Spytz <zspytz@gmail.com>
19993
19994 * extend.texi: Add free to list of ISO C90 functions that
19995 are recognized by the compiler.
19996
19997 2020-04-05 Nagaraju Mekala <nmekala@xilix.com>
19998
19999 * config/microblaze/microblaze.c (microblaze_must_save_register): Check
20000 for fast_interrupt.
20001
20002 * config/microblaze/microblaze.md (trap): Update output pattern.
20003
20004 2020-04-04 Hannes Domani <ssbssa@yahoo.de>
20005 Jakub Jelinek <jakub@redhat.com>
20006
20007 PR debug/94459
20008 * dwarf2out.c (gen_subprogram_die): Look through references, pointers,
20009 arrays, pointer-to-members, function types and qualifiers when
20010 checking if in-class DIE had an 'auto' or 'decltype(auto)' return type
20011 to emit type again on definition.
20012
20013 2020-04-04 Jan Hubicka <hubicka@ucw.cz>
20014
20015 PR ipa/93940
20016 * ipa-fnsummary.c (vrp_will_run_p): New function.
20017 (fre_will_run_p): New function.
20018 (evaluate_properties_for_edge): Use it.
20019 * ipa-inline.c (can_inline_edge_by_limits_p): Do not inline
20020 !optimize_debug to optimize_debug.
20021
20022 2020-04-04 Jakub Jelinek <jakub@redhat.com>
20023
20024 PR rtl-optimization/94468
20025 * cselib.c (references_value_p): Formatting fix.
20026 (cselib_useless_value_p): New function.
20027 (discard_useless_locs, discard_useless_values,
20028 cselib_invalidate_regno_val, cselib_invalidate_mem,
20029 cselib_record_set): Use it instead of
20030 v->locs == 0 && !PRESERVED_VALUE_P (v->val_rtx).
20031
20032 PR debug/94441
20033 * tree-iterator.h (expr_single): Declare.
20034 * tree-iterator.c (expr_single): New function.
20035 * tree.h (protected_set_expr_location_if_unset): Declare.
20036 * tree.c (protected_set_expr_location): Use expr_single.
20037 (protected_set_expr_location_if_unset): New function.
20038
20039 2020-04-03 Jeff Law <law@redhat.com>
20040
20041 PR rtl-optimization/92264
20042 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Handle
20043 reloading of auto-increment addressing modes.
20044
20045 2020-04-03 H.J. Lu <hongjiu.lu@intel.com>
20046
20047 PR target/94467
20048 * config/i386/sse.md (ssse3_pshufbv8qi3): Mark scratch operand
20049 as earlyclobber.
20050
20051 2020-04-03 Jeff Law <law@redhat.com>
20052
20053 PR rtl-optimization/92264
20054 * config/m32r/m32r.c (m32r_output_block_move): Properly account for
20055 post-increment addressing of source operands as well as residuals
20056 when computing any adjustments to the input pointer.
20057
20058 2020-04-03 Jakub Jelinek <jakub@redhat.com>
20059
20060 PR target/94460
20061 * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
20062 avx2_ph<plusminus_mnemonic>dv8si3): Fix up RTL pattern to do
20063 second half of first lane from first lane of second operand and
20064 first half of second lane from second lane of first operand.
20065
20066 2020-04-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
20067
20068 * config/arm/arm_mve.h: Condition the header file on __ARM_FEATURE_MVE.
20069
20070 2020-04-03 Tamar Christina <tamar.christina@arm.com>
20071
20072 PR target/94396
20073 * common/config/aarch64/aarch64-common.c
20074 (aarch64_get_extension_string_for_isa_flags): Handle default flags.
20075
20076 2020-04-03 Richard Biener <rguenther@suse.de>
20077
20078 PR middle-end/94465
20079 * tree.c (array_ref_low_bound): Deal with released SSA names
20080 in index position.
20081
20082 2020-04-03 Kwok Cheung Yeung <kcy@codesourcery.com>
20083
20084 * config/gcn/gcn.c (print_operand): Handle unordered comparison
20085 operators.
20086 * config/gcn/predicates.md (gcn_fp_compare_operator): Add unordered
20087 comparison operators.
20088
20089 2020-04-03 Kewen Lin <linkw@gcc.gnu.org>
20090
20091 PR tree-optimization/94443
20092 * tree-vect-loop.c (vectorizable_live_operation): Use
20093 gsi_insert_seq_before to replace gsi_insert_before.
20094
20095 2020-04-03 Martin Liska <mliska@suse.cz>
20096
20097 PR ipa/94445
20098 * ipa-icf-gimple.c (func_checker::compare_gimple_call):
20099 Compare type attributes for gimple_call_fntypes.
20100
20101 2020-04-02 Sandra Loosemore <sandra@codesourcery.com>
20102
20103 * alias.c (get_alias_set): Fix comment typos.
20104
20105 2020-04-02 Fritz Reese <foreese@gcc.gnu.org>
20106
20107 PR fortran/85982
20108 * fortran/decl.c (match_attr_spec): Lump COMP_STRUCTURE/COMP_MAP into
20109 attribute checking used by TYPE.
20110
20111 2020-04-02 Martin Jambor <mjambor@suse.cz>
20112
20113 PR ipa/92676
20114 * ipa-sra.c (struct caller_issues): New fields candidate and
20115 call_from_outside_comdat.
20116 (check_for_caller_issues): Check for calls from outsied of
20117 candidate's same_comdat_group.
20118 (check_all_callers_for_issues): Set up issues.candidate, check result
20119 of the new check.
20120 (mark_callers_calls_comdat_local): New function.
20121 (process_isra_node_results): Set calls_comdat_local of callers if
20122 appropriate.
20123
20124 2020-04-02 Richard Biener <rguenther@suse.de>
20125
20126 PR c/94392
20127 * common.opt (ffinite-loops): Initialize to zero.
20128 * opts.c (default_options_table): Remove OPT_ffinite_loops
20129 entry.
20130 * cfgloop.h (loop::finite_p): New member.
20131 * cfgloopmanip.c (copy_loop_info): Copy finite_p.
20132 * ipa-icf-gimple.c (func_checker::compare_loops): Compare
20133 finite_p.
20134 * lto-streamer-in.c (input_cfg): Stream finite_p.
20135 * lto-streamer-out.c (output_cfg): Likewise.
20136 * tree-cfg.c (replace_loop_annotate): Initialize finite_p
20137 from flag_finite_loops at CFG build time.
20138 * tree-ssa-loop-niter.c (finite_loop_p): Check the loops
20139 finite_p flag instead of flag_finite_loops.
20140 * doc/invoke.texi (ffinite-loops): Adjust documentation of
20141 default setting.
20142
20143 2020-04-02 Richard Biener <rguenther@suse.de>
20144
20145 PR debug/94450
20146 * dwarf2out.c (dwarf2out_early_finish): Remove code emitting
20147 DW_TAG_imported_unit.
20148
20149 2020-04-02 Maciej W. Rozycki <macro@wdc.com>
20150
20151 * doc/install.texi (Specific) <riscv32-*-elf, riscv32-*-linux>
20152 <riscv64-*-elf, riscv64-*-linux>: Update binutils requirement to
20153 2.30.
20154
20155 2020-04-02 Kewen Lin <linkw@gcc.gnu.org>
20156
20157 PR tree-optimization/94401
20158 * tree-vect-loop.c (vectorizable_load): Handle VMAT_CONTIGUOUS_REVERSE
20159 access type when loading halves of vector to avoid peeling for gaps.
20160
20161 2020-04-02 Jakub Jelinek <jakub@redhat.com>
20162
20163 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add a space in
20164 between a string literal and MIPS_SYSVERSION_SPEC macro.
20165
20166 2020-04-02 Martin Jambor <mjambor@suse.cz>
20167
20168 * doc/invoke.texi (Optimize Options): Document sra-max-propagations.
20169
20170 2020-04-02 Jakub Jelinek <jakub@redhat.com>
20171
20172 PR rtl-optimization/92264
20173 * params.opt (-param=max-find-base-term-values=): Decrease default
20174 from 2000 to 200.
20175
20176 PR rtl-optimization/92264
20177 * rtl.h (struct rtx_def): Mention that call bit is used as
20178 SP_DERIVED_VALUE_P in cselib.c.
20179 * cselib.c (SP_DERIVED_VALUE_P): Define.
20180 (PRESERVED_VALUE_P, SP_BASED_VALUE_P): Move definitions earlier.
20181 (cselib_hasher::equal): Handle equality between SP_DERIVED_VALUE_P
20182 val_rtx and sp based expression where offsets cancel each other.
20183 (preserve_constants_and_equivs): Formatting fix.
20184 (cselib_reset_table): Add reverse op loc to SP_DERIVED_VALUE_P
20185 locs list for cfa_base_preserved_val if needed. Formatting fix.
20186 (autoinc_split): If the to be returned value is a REG, MEM or
20187 VALUE which has SP_DERIVED_VALUE_P + CONST_INT as one of its
20188 locs, return the SP_DERIVED_VALUE_P VALUE and adjust *off.
20189 (rtx_equal_for_cselib_1): Call autoinc_split even if both
20190 expressions are PLUS in Pmode with CONST_INT second operands.
20191 Handle SP_DERIVED_VALUE_P cases.
20192 (cselib_hash_plus_const_int): New function.
20193 (cselib_hash_rtx): Use it for PLUS in Pmode with CONST_INT
20194 second operand, as well as for PRE_DEC etc. that ought to be
20195 hashed the same way.
20196 (cselib_subst_to_values): Substitute PLUS with Pmode and
20197 CONST_INT operand if the first operand is a VALUE which has
20198 SP_DERIVED_VALUE_P + CONST_INT as one of its locs for the
20199 SP_DERIVED_VALUE_P + adjusted offset.
20200 (cselib_lookup_1): When creating a new VALUE for stack_pointer_rtx,
20201 set SP_DERIVED_VALUE_P on it. Set PRESERVED_VALUE_P when adding
20202 SP_DERIVED_VALUE_P PRESERVED_VALUE_P subseted VALUE location.
20203 * var-tracking.c (vt_initialize): Call cselib_add_permanent_equiv
20204 on the sp value before calling cselib_add_permanent_equiv on the
20205 cfa_base value.
20206 * dse.c (check_for_inc_dec_1, check_for_inc_dec): Punt on RTX_AUTOINC
20207 in the insn without REG_INC note.
20208 (replace_read): Punt on RTX_AUTOINC in the *loc being replaced.
20209 Punt on invalid insns added by copy_to_mode_reg. Formatting fixes.
20210
20211 PR target/94435
20212 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): For
20213 y_mode E_[QH]Imode and y being a CONST_INT, change y_mode to SImode.
20214
20215 2020-04-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20216
20217 PR target/94317
20218 * config/arm/arm-builtins.c (LDRGBWBXU_QUALIFIERS): Define.
20219 (LDRGBWBXU_Z_QUALIFIERS): Likewise.
20220 * config/arm/arm_mve.h (__arm_vldrdq_gather_base_wb_s64): Modify
20221 intrinsic defintion by adding a new builtin call to writeback into base
20222 address.
20223 (__arm_vldrdq_gather_base_wb_u64): Likewise.
20224 (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
20225 (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
20226 (__arm_vldrwq_gather_base_wb_s32): Likewise.
20227 (__arm_vldrwq_gather_base_wb_u32): Likewise.
20228 (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
20229 (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
20230 (__arm_vldrwq_gather_base_wb_f32): Likewise.
20231 (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
20232 * config/arm/arm_mve_builtins.def (vldrwq_gather_base_wb_z_u): Modify
20233 builtin's qualifier.
20234 (vldrdq_gather_base_wb_z_u): Likewise.
20235 (vldrwq_gather_base_wb_u): Likewise.
20236 (vldrdq_gather_base_wb_u): Likewise.
20237 (vldrwq_gather_base_wb_z_s): Likewise.
20238 (vldrwq_gather_base_wb_z_f): Likewise.
20239 (vldrdq_gather_base_wb_z_s): Likewise.
20240 (vldrwq_gather_base_wb_s): Likewise.
20241 (vldrwq_gather_base_wb_f): Likewise.
20242 (vldrdq_gather_base_wb_s): Likewise.
20243 (vldrwq_gather_base_nowb_z_u): Define builtin.
20244 (vldrdq_gather_base_nowb_z_u): Likewise.
20245 (vldrwq_gather_base_nowb_u): Likewise.
20246 (vldrdq_gather_base_nowb_u): Likewise.
20247 (vldrwq_gather_base_nowb_z_s): Likewise.
20248 (vldrwq_gather_base_nowb_z_f): Likewise.
20249 (vldrdq_gather_base_nowb_z_s): Likewise.
20250 (vldrwq_gather_base_nowb_s): Likewise.
20251 (vldrwq_gather_base_nowb_f): Likewise.
20252 (vldrdq_gather_base_nowb_s): Likewise.
20253 * config/arm/mve.md (mve_vldrwq_gather_base_nowb_<supf>v4si): Define RTL
20254 pattern.
20255 (mve_vldrwq_gather_base_wb_<supf>v4si): Modify RTL pattern.
20256 (mve_vldrwq_gather_base_nowb_z_<supf>v4si): Define RTL pattern.
20257 (mve_vldrwq_gather_base_wb_z_<supf>v4si): Modify RTL pattern.
20258 (mve_vldrwq_gather_base_wb_fv4sf): Modify RTL pattern.
20259 (mve_vldrwq_gather_base_nowb_fv4sf): Define RTL pattern.
20260 (mve_vldrwq_gather_base_wb_z_fv4sf): Modify RTL pattern.
20261 (mve_vldrwq_gather_base_nowb_z_fv4sf): Define RTL pattern.
20262 (mve_vldrdq_gather_base_nowb_<supf>v4di): Define RTL pattern.
20263 (mve_vldrdq_gather_base_wb_<supf>v4di): Modify RTL pattern.
20264 (mve_vldrdq_gather_base_nowb_z_<supf>v4di): Define RTL pattern.
20265 (mve_vldrdq_gather_base_wb_z_<supf>v4di): Modify RTL pattern.
20266
20267 2020-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
20268
20269 * config/s390/vector.md ("<ti*>add<mode>3", "mul<mode>3")
20270 ("and<mode>3", "notand<mode>3", "ior<mode>3", "ior_not<mode>3")
20271 ("xor<mode>3", "notxor<mode>3", "smin<mode>3", "smax<mode>3")
20272 ("umin<mode>3", "umax<mode>3", "vec_widen_smult_even_<mode>")
20273 ("vec_widen_umult_even_<mode>", "vec_widen_smult_odd_<mode>")
20274 ("vec_widen_umult_odd_<mode>", "add<mode>3", "sub<mode>3")
20275 ("mul<mode>3", "fma<mode>4", "fms<mode>4", "neg_fma<mode>4")
20276 ("neg_fms<mode>4", "*smax<mode>3_vxe", "*smaxv2df3_vx")
20277 ("*smin<mode>3_vxe", "*sminv2df3_vx"): Remove % constraint
20278 modifier.
20279 ("vec_widen_umult_lo_<mode>", "vec_widen_umult_hi_<mode>")
20280 ("vec_widen_smult_lo_<mode>", "vec_widen_smult_hi_<mode>"):
20281 Remove constraints from expander.
20282 * config/s390/vx-builtins.md ("vacc<bhfgq>_<mode>", "vacq")
20283 ("vacccq", "vec_avg<mode>", "vec_avgu<mode>", "vec_vmal<mode>")
20284 ("vec_vmah<mode>", "vec_vmalh<mode>", "vec_vmae<mode>")
20285 ("vec_vmale<mode>", "vec_vmao<mode>", "vec_vmalo<mode>")
20286 ("vec_smulh<mode>", "vec_umulh<mode>", "vec_nor<mode>3")
20287 ("vfmin<mode>", "vfmax<mode>"): Remove % constraint modifier.
20288
20289 2020-04-01 Peter Bergner <bergner@linux.ibm.com>
20290
20291 PR rtl-optimization/94123
20292 * lower-subreg.c (pass_lower_subreg3::gate): Remove test for
20293 flag_split_wide_types_early.
20294
20295 2020-04-01 Joerg Sonnenberger <joerg@bec.de>
20296
20297 * doc/extend.texi (Common Function Attributes): Fix typo.
20298
20299 2020-04-01 Segher Boessenkool <segher@kernel.crashing.org>
20300
20301 PR target/94420
20302 * config/rs6000/rs6000.md (*tocref<mode> for P): Add insn condition
20303 on operands[1].
20304
20305 2020-04-01 Zackery Spytz <zspytz@gmail.com>
20306
20307 * doc/extend.texi: Fix a typo in the documentation of the
20308 copy function attribute.
20309
20310 2020-04-01 Jakub Jelinek <jakub@redhat.com>
20311
20312 PR middle-end/94423
20313 * tree-object-size.c (pass_object_sizes::execute): Don't call
20314 replace_uses_by for SSA_NAME_OCCURS_IN_ABNORMAL_PHI lhs, instead
20315 call replace_call_with_value.
20316
20317 2020-04-01 Kewen Lin <linkw@gcc.gnu.org>
20318
20319 PR tree-optimization/94043
20320 * tree-vect-loop.c (vectorizable_live_operation): Generate loop-closed
20321 phi for vec_lhs and use it for lane extraction.
20322
20323 2020-03-31 Felix Yang <felix.yang@huawei.com>
20324
20325 PR tree-optimization/94398
20326 * tree-vect-stmts.c (vectorizable_store): Instead of calling
20327 vect_supportable_dr_alignment, set alignment_support_scheme to
20328 dr_unaligned_supported for gather-scatter accesses.
20329 (vectorizable_load): Likewise.
20330
20331 2020-03-31 Andrew Stubbs <ams@codesourcery.com>
20332
20333 * config/gcn/gcn-valu.md (V_QI, V_HI, V_HF, V_SI, V_SF, V_DI, V_DF):
20334 New mode iterators.
20335 (vnsi, VnSI, vndi, VnDI): New mode attributes.
20336 (mov<mode>): Use <VnDI> in place of V64DI.
20337 (mov<mode>_exec): Likewise.
20338 (mov<mode>_sgprbase): Likewise.
20339 (reload_out<mode>): Likewise.
20340 (*vec_set<mode>_1): Use GET_MODE_NUNITS instead of constant 64.
20341 (gather_load<mode>v64si): Rename to ...
20342 (gather_load<mode><vnsi>): ... this, and use <VnSI> in place of V64SI,
20343 and <VnDI> in place of V64DI.
20344 (gather<mode>_insn_1offset<exec>): Use <VnDI> in place of V64DI.
20345 (gather<mode>_insn_1offset_ds<exec>): Use <VnSI> in place of V64SI.
20346 (gather<mode>_insn_2offsets<exec>): Use <VnSI> and <VnDI>.
20347 (scatter_store<mode>v64si): Rename to ...
20348 (scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
20349 (scatter<mode>_expr<exec_scatter>): Use <VnSI> and <VnDI>.
20350 (scatter<mode>_insn_1offset<exec_scatter>): Likewise.
20351 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
20352 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
20353 (ds_bpermute<mode>): Use <VnSI>.
20354 (addv64si3_vcc<exec_vcc>): Rename to ...
20355 (add<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
20356 (addv64si3_vcc_dup<exec_vcc>): Rename to ...
20357 (add<mode>3_vcc_dup<exec_vcc>): ... this, and use V_SI.
20358 (addcv64si3<exec_vcc>): Rename to ...
20359 (addc<mode>3<exec_vcc>): ... this, and use V_SI.
20360 (subv64si3_vcc<exec_vcc>): Rename to ...
20361 (sub<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
20362 (subcv64si3<exec_vcc>): Rename to ...
20363 (subc<mode>3<exec_vcc>): ... this, and use V_SI.
20364 (addv64di3): Rename to ...
20365 (add<mode>3): ... this, and use V_DI.
20366 (addv64di3_exec): Rename to ...
20367 (add<mode>3_exec): ... this, and use V_DI.
20368 (subv64di3): Rename to ...
20369 (sub<mode>3): ... this, and use V_DI.
20370 (subv64di3_exec): Rename to ...
20371 (sub<mode>3_exec): ... this, and use V_DI.
20372 (addv64di3_zext): Rename to ...
20373 (add<mode>3_zext): ... this, and use V_DI and <VnSI>.
20374 (addv64di3_zext_exec): Rename to ...
20375 (add<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
20376 (addv64di3_zext_dup): Rename to ...
20377 (add<mode>3_zext_dup): ... this, and use V_DI and <VnSI>.
20378 (addv64di3_zext_dup_exec): Rename to ...
20379 (add<mode>3_zext_dup_exec): ... this, and use V_DI and <VnSI>.
20380 (addv64di3_zext_dup2): Rename to ...
20381 (add<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
20382 (addv64di3_zext_dup2_exec): Rename to ...
20383 (add<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
20384 (addv64di3_sext_dup2): Rename to ...
20385 (add<mode>3_sext_dup2): ... this, and use V_DI and <VnSI>.
20386 (addv64di3_sext_dup2_exec): Rename to ...
20387 (add<mode>3_sext_dup2_exec): ... this, and use V_DI and <VnSI>.
20388 (<su>mulv64si3_highpart<exec>): Rename to ...
20389 (<su>mul<mode>3_highpart<exec>): ... this and use V_SI and <VnDI>.
20390 (mulv64di3): Rename to ...
20391 (mul<mode>3): ... this, and use V_DI and <VnSI>.
20392 (mulv64di3_exec): Rename to ...
20393 (mul<mode>3_exec): ... this, and use V_DI and <VnSI>.
20394 (mulv64di3_zext): Rename to ...
20395 (mul<mode>3_zext): ... this, and use V_DI and <VnSI>.
20396 (mulv64di3_zext_exec): Rename to ...
20397 (mul<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
20398 (mulv64di3_zext_dup2): Rename to ...
20399 (mul<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
20400 (mulv64di3_zext_dup2_exec): Rename to ...
20401 (mul<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
20402 (<expander>v64di3): Rename to ...
20403 (<expander><mode>3): ... this, and use V_DI and <VnSI>.
20404 (<expander>v64di3_exec): Rename to ...
20405 (<expander><mode>3_exec): ... this, and use V_DI and <VnSI>.
20406 (<expander>v64si3<exec>): Rename to ...
20407 (<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
20408 (v<expander>v64si3<exec>): Rename to ...
20409 (v<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
20410 (<expander>v64si3<exec>): Rename to ...
20411 (<expander><vnsi>3<exec>): ... this, and use V_SI.
20412 (subv64df3<exec>): Rename to ...
20413 (sub<mode>3<exec>): ... this, and use V_DF.
20414 (truncv64di<mode>2): Rename to ...
20415 (trunc<vndi><mode>2): ... this, and use <VnDI>.
20416 (truncv64di<mode>2_exec): Rename to ...
20417 (trunc<vndi><mode>2_exec): ... this, and use <VnDI>.
20418 (<convop><mode>v64di2): Rename to ...
20419 (<convop><mode><vndi>2): ... this, and use <VnDI>.
20420 (<convop><mode>v64di2_exec): Rename to ...
20421 (<convop><mode><vndi>2_exec): ... this, and use <VnDI>.
20422 (vec_cmp<u>v64qidi): Rename to ...
20423 (vec_cmp<u><mode>di): ... this, and use <VnSI>.
20424 (vec_cmp<u>v64qidi_exec): Rename to ...
20425 (vec_cmp<u><mode>di_exec): ... this, and use <VnSI>.
20426 (vcond_mask_<mode>di): Use <VnDI>.
20427 (maskload<mode>di): Likewise.
20428 (maskstore<mode>di): Likewise.
20429 (mask_gather_load<mode>v64si): Rename to ...
20430 (mask_gather_load<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
20431 (mask_scatter_store<mode>v64si): Rename to ...
20432 (mask_scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
20433 (*<reduc_op>_dpp_shr_v64di): Rename to ...
20434 (*<reduc_op>_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
20435 (*plus_carry_in_dpp_shr_v64si): Rename to ...
20436 (*plus_carry_in_dpp_shr_<mode>): ... this, and use V_SI.
20437 (*plus_carry_dpp_shr_v64di): Rename to ...
20438 (*plus_carry_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
20439 (vec_seriesv64si): Rename to ...
20440 (vec_series<mode>): ... this, and use V_SI.
20441 (vec_seriesv64di): Rename to ...
20442 (vec_series<mode>): ... this, and use V_DI.
20443
20444 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
20445
20446 * config/arc/arc.c (arc_print_operand): Use
20447 HOST_WIDE_INT_PRINT_DEC macro.
20448
20449 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
20450
20451 * config/arc/arc.h (ASM_FORMAT_PRIVATE_NAME): Fix it.
20452
20453 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20454
20455 * config/arm/arm_mve.h (vbicq): Define MVE intrinsic polymorphic
20456 variant.
20457 (__arm_vbicq): Likewise.
20458
20459 2020-03-31 Vineet Gupta <vgupta@synopsys.com>
20460
20461 * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700.
20462
20463 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20464
20465 * config/arm/arm_mve.h (vaddlvq): Move the polymorphic variant to the
20466 common section of both MVE Integer and MVE Floating Point.
20467 (vaddvq): Likewise.
20468 (vaddlvq_p): Likewise.
20469 (vaddvaq): Likewise.
20470 (vaddvq_p): Likewise.
20471 (vcmpcsq): Likewise.
20472 (vmlsdavxq): Likewise.
20473 (vmlsdavq): Likewise.
20474 (vmladavxq): Likewise.
20475 (vmladavq): Likewise.
20476 (vminvq): Likewise.
20477 (vminavq): Likewise.
20478 (vmaxvq): Likewise.
20479 (vmaxavq): Likewise.
20480 (vmlaldavq): Likewise.
20481 (vcmphiq): Likewise.
20482 (vaddlvaq): Likewise.
20483 (vrmlaldavhq): Likewise.
20484 (vrmlaldavhxq): Likewise.
20485 (vrmlsldavhq): Likewise.
20486 (vrmlsldavhxq): Likewise.
20487 (vmlsldavxq): Likewise.
20488 (vmlsldavq): Likewise.
20489 (vabavq): Likewise.
20490 (vrmlaldavhaq): Likewise.
20491 (vcmpgeq_m_n): Likewise.
20492 (vmlsdavxq_p): Likewise.
20493 (vmlsdavq_p): Likewise.
20494 (vmlsdavaxq): Likewise.
20495 (vmlsdavaq): Likewise.
20496 (vaddvaq_p): Likewise.
20497 (vcmpcsq_m_n): Likewise.
20498 (vcmpcsq_m): Likewise.
20499 (vmladavxq_p): Likewise.
20500 (vmladavq_p): Likewise.
20501 (vmladavaxq): Likewise.
20502 (vmladavaq): Likewise.
20503 (vminvq_p): Likewise.
20504 (vminavq_p): Likewise.
20505 (vmaxvq_p): Likewise.
20506 (vmaxavq_p): Likewise.
20507 (vcmphiq_m): Likewise.
20508 (vaddlvaq_p): Likewise.
20509 (vmlaldavaq): Likewise.
20510 (vmlaldavaxq): Likewise.
20511 (vmlaldavq_p): Likewise.
20512 (vmlaldavxq_p): Likewise.
20513 (vmlsldavaq): Likewise.
20514 (vmlsldavaxq): Likewise.
20515 (vmlsldavq_p): Likewise.
20516 (vmlsldavxq_p): Likewise.
20517 (vrmlaldavhaxq): Likewise.
20518 (vrmlaldavhq_p): Likewise.
20519 (vrmlaldavhxq_p): Likewise.
20520 (vrmlsldavhaq): Likewise.
20521 (vrmlsldavhaxq): Likewise.
20522 (vrmlsldavhq_p): Likewise.
20523 (vrmlsldavhxq_p): Likewise.
20524 (vabavq_p): Likewise.
20525 (vmladavaq_p): Likewise.
20526 (vstrbq_scatter_offset): Likewise.
20527 (vstrbq_p): Likewise.
20528 (vstrbq_scatter_offset_p): Likewise.
20529 (vstrdq_scatter_base_p): Likewise.
20530 (vstrdq_scatter_base): Likewise.
20531 (vstrdq_scatter_offset_p): Likewise.
20532 (vstrdq_scatter_offset): Likewise.
20533 (vstrdq_scatter_shifted_offset_p): Likewise.
20534 (vstrdq_scatter_shifted_offset): Likewise.
20535 (vmaxq_x): Likewise.
20536 (vminq_x): Likewise.
20537 (vmovlbq_x): Likewise.
20538 (vmovltq_x): Likewise.
20539 (vmulhq_x): Likewise.
20540 (vmullbq_int_x): Likewise.
20541 (vmullbq_poly_x): Likewise.
20542 (vmulltq_int_x): Likewise.
20543 (vmulltq_poly_x): Likewise.
20544 (vstrbq): Likewise.
20545
20546 2020-03-31 Jakub Jelinek <jakub@redhat.com>
20547
20548 PR target/94368
20549 * config/aarch64/constraints.md (Uph): New constraint.
20550 * config/aarch64/atomics.md (cas_short_expected_imm): New mode attr.
20551 (@aarch64_compare_and_swap<mode>): Use it instead of n in operand 2's
20552 constraint.
20553
20554 2020-03-31 Marc Glisse <marc.glisse@inria.fr>
20555 Jakub Jelinek <jakub@redhat.com>
20556
20557 PR middle-end/94412
20558 * fold-const.c (fold_binary_loc) <case TRUNC_DIV_EXPR>: Use
20559 ANY_INTEGRAL_TYPE_P instead of INTEGRAL_TYPE_P.
20560
20561 2020-03-31 Jakub Jelinek <jakub@redhat.com>
20562
20563 PR tree-optimization/94403
20564 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Allow also
20565 ENUMERAL_TYPE lhs_type.
20566
20567 PR rtl-optimization/94344
20568 * tree-ssa-forwprop.c (simplify_rotate): Handle also same precision
20569 conversions, either on both operands of |^+ or just one. Handle
20570 also extra same precision conversion on RSHIFT_EXPR first operand
20571 provided RSHIFT_EXPR is performed in unsigned type.
20572
20573 2020-03-30 David Malcolm <dmalcolm@redhat.com>
20574
20575 * lra.c (finish_insn_code_data_once): Set the array elements
20576 to NULL after freeing them.
20577
20578 2020-03-30 Andreas Schwab <schwab@suse.de>
20579
20580 * config/host-linux.c (TRY_EMPTY_VM_SPACE) [__riscv && __LP64__]:
20581 Define.
20582
20583 2020-03-30 Will Schmidt <will_schmidt@vnet.ibm.com>
20584
20585 * config/rs6000/rs6000-call.c altivec_init_builtins(): Remove code
20586 to skip defining builtins based on builtin_mask.
20587
20588 2020-03-30 Jakub Jelinek <jakub@redhat.com>
20589
20590 PR target/94343
20591 * config/i386/sse.md (<mask_codefor>one_cmpl<mode>2<mask_name>): If
20592 !TARGET_AVX512VL, use 512-bit vpternlog and make sure the input
20593 operand is a register. Don't enable masked variants for V*[QH]Imode.
20594
20595 PR target/93069
20596 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Use
20597 <store_mask_constraint> instead of m in output operand constraint.
20598 (vec_extract_hi_<mode><mask_name>): Use <mask_operand2> instead of
20599 %{%3%}.
20600
20601 2020-03-30 Alan Modra <amodra@gmail.com>
20602
20603 * config/rs6000/rs6000.c (rs6000_call_aix): Emit cookie to pattern.
20604 (rs6000_indirect_call_template_1): Adjust to suit.
20605 * config/rs6000/rs6000.md (call_local): Merge call_local32,
20606 call_local64, and call_local_aix.
20607 (call_value_local): Simlarly.
20608 (call_nonlocal_aix, call_value_nonlocal_aix): Adjust rtl to suit,
20609 and disable pattern when CALL_LONG.
20610 (call_indirect_aix, call_value_indirect_aix): Adjust rtl.
20611 (call_indirect_elfv2, call_indirect_pcrel): Likewise.
20612 (call_value_indirect_elfv2, call_value_indirect_pcrel): Likewise.
20613
20614 2020-03-29 H.J. Lu <hongjiu.lu@intel.com>
20615
20616 PR driver/94381
20617 * doc/invoke.texi: Update -falign-functions, -falign-loops and
20618 -falign-jumps documentation.
20619
20620 2020-03-29 Martin Liska <mliska@suse.cz>
20621
20622 PR ipa/94363
20623 * cgraphunit.c (process_function_and_variable_attributes): Remove
20624 double 'attribute' words.
20625
20626 2020-03-29 John David Anglin <dave.anglin@bell.net>
20627
20628 * config/pa/pa.c (pa_asm_output_aligned_bss): Delete duplicate
20629 .align output.
20630
20631 2020-03-28 Jakub Jelinek <jakub@redhat.com>
20632
20633 PR c/93573
20634 * c-decl.c (grokdeclarator): After issuing errors, set size_int_const
20635 to true after setting size to integer_one_node.
20636
20637 PR tree-optimization/94329
20638 * tree-ssa-reassoc.c (reassociate_bb): When calling reassoc_remove_stmt
20639 on the last stmt in a bb, make sure gsi_prev isn't done immediately
20640 after gsi_last_bb.
20641
20642 2020-03-27 Alan Modra <amodra@gmail.com>
20643
20644 PR target/94145
20645 * config/rs6000/rs6000.c (rs6000_longcall_ref): Use unspec_volatile
20646 for PLT16_LO and PLT_PCREL.
20647 * config/rs6000/rs6000.md (UNSPEC_PLT16_LO, UNSPEC_PLT_PCREL): Remove.
20648 (UNSPECV_PLT16_LO, UNSPECV_PLT_PCREL): Define.
20649 (pltseq_plt16_lo_, pltseq_plt_pcrel): Use unspec_volatile.
20650
20651 2020-03-27 Martin Sebor <msebor@redhat.com>
20652
20653 PR c++/94098
20654 * calls.c (init_attr_rdwr_indices): Iterate over all access attributes.
20655
20656 2020-03-27 Andrew Stubbs <ams@codesourcery.com>
20657
20658 * config/gcn/gcn-valu.md:
20659 (VEC_SUBDWORD_MODE): Rename to V_QIHI throughout.
20660 (VEC_1REG_MODE): Delete.
20661 (VEC_1REG_ALT): Delete.
20662 (VEC_ALL1REG_MODE): Rename to V_1REG throughout.
20663 (VEC_1REG_INT_MODE): Delete.
20664 (VEC_ALL1REG_INT_MODE): Rename to V_INT_1REG throughout.
20665 (VEC_ALL1REG_INT_ALT): Rename to V_INT_1REG_ALT throughout.
20666 (VEC_2REG_MODE): Rename to V_2REG throughout.
20667 (VEC_REG_MODE): Rename to V_noHI throughout.
20668 (VEC_ALLREG_MODE): Rename to V_ALL throughout.
20669 (VEC_ALLREG_ALT): Rename to V_ALL_ALT throughout.
20670 (VEC_ALLREG_INT_MODE): Rename to V_INT throughout.
20671 (VEC_INT_MODE): Delete.
20672 (VEC_FP_MODE): Rename to V_FP throughout and move to top.
20673 (VEC_FP_1REG_MODE): Rename to V_FP_1REG throughout and move to top.
20674 (FP_MODE): Delete and replace with FP throughout.
20675 (FP_1REG_MODE): Delete and replace with FP_1REG throughout.
20676 (VCMP_MODE): Rename to V_noQI throughout and move to top.
20677 (VCMP_MODE_INT): Rename to V_INT_noQI throughout and move to top.
20678 * config/gcn/gcn.md (FP): New mode iterator.
20679 (FP_1REG): New mode iterator.
20680
20681 2020-03-27 David Malcolm <dmalcolm@redhat.com>
20682
20683 * doc/invoke.texi (-fdump-analyzer-supergraph): Document that this
20684 now emits two .dot files.
20685 * graphviz.cc (graphviz_out::begin_tr): Only emit a TR, not a TD.
20686 (graphviz_out::end_tr): Only close a TR, not a TD.
20687 (graphviz_out::begin_td): New.
20688 (graphviz_out::end_td): New.
20689 (graphviz_out::begin_trtd): New, replacing the old implementation
20690 of graphviz_out::begin_tr.
20691 (graphviz_out::end_tdtr): New, replacing the old implementation
20692 of graphviz_out::end_tr.
20693 * graphviz.h (graphviz_out::begin_td): New decl.
20694 (graphviz_out::end_td): New decl.
20695 (graphviz_out::begin_trtd): New decl.
20696 (graphviz_out::end_tdtr): New decl.
20697
20698 2020-03-27 Richard Biener <rguenther@suse.de>
20699
20700 PR debug/94273
20701 * dwarf2out.c (should_emit_struct_debug): Return false for
20702 DINFO_LEVEL_TERSE.
20703
20704 2020-03-27 Richard Biener <rguenther@suse.de>
20705
20706 PR tree-optimization/94352
20707 * tree-ssa-propagate.c (ssa_prop_init): Move seeding of the
20708 worklist ...
20709 (ssa_propagation_engine::ssa_propagate): ... here after
20710 initializing curr_order.
20711
20712 2020-03-27 Kewen Lin <linkw@gcc.gnu.org>
20713
20714 PR tree-optimization/90332
20715 * tree-vect-stmts.c (vector_vector_composition_type): New function.
20716 (get_group_load_store_type): Adjust to call
20717 vector_vector_composition_type, extend it to construct with scalar
20718 types.
20719 (vectorizable_load): Likewise.
20720
20721 2020-03-27 Roman Zhuykov <zhroma@ispras.ru>
20722
20723 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove assertions.
20724 (create_ddg_dep_no_link): Likewise.
20725 (add_cross_iteration_register_deps): Move debug instruction check.
20726 Other minor refactoring.
20727 (add_intra_loop_mem_dep): Do not check for debug instructions.
20728 (add_inter_loop_mem_dep): Likewise.
20729 (build_intra_loop_deps): Likewise.
20730 (create_ddg): Do not include debug insns into the graph.
20731 * ddg.h (struct ddg): Remove num_debug field.
20732 * modulo-sched.c (doloop_register_get): Adjust condition.
20733 (res_MII): Remove DDG num_debug field usage.
20734 (sms_schedule_by_order): Use assertion against debug insns.
20735 (ps_has_conflicts): Drop debug insn check.
20736
20737 2020-03-26 Jakub Jelinek <jakub@redhat.com>
20738
20739 PR debug/94323
20740 * tree.c (protected_set_expr_location): Recurse on STATEMENT_LIST
20741 that contains exactly one non-DEBUG_BEGIN_STMT statement.
20742
20743 PR debug/94281
20744 * gimple.h (gimple_seq_first_nondebug_stmt): New function.
20745 (gimple_seq_last_nondebug_stmt): Don't return NULL if seq contains
20746 a single non-debug stmt followed by one or more debug stmts.
20747 * gimplify.c (gimplify_body): Use gimple_seq_first_nondebug_stmt
20748 instead of gimple_seq_first_stmt, use gimple_seq_first_nondebug_stmt
20749 and gimple_seq_last_nondebug_stmt instead of gimple_seq_first and
20750 gimple_seq_last to check if outer_stmt gbind could be reused and
20751 if yes and it is surrounded by any debug stmts, move them into the
20752 gbind body.
20753
20754 PR rtl-optimization/92264
20755 * var-tracking.c (add_stores): Call cselib_set_value_sp_based even
20756 for sp based values in !frame_pointer_needed
20757 && !ACCUMULATE_OUTGOING_ARGS functions.
20758
20759 2020-03-26 Felix Yang <felix.yang@huawei.com>
20760
20761 PR tree-optimization/94269
20762 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Restrict
20763 this
20764 operation to single basic block.
20765
20766 2020-03-25 Jeff Law <law@redhat.com>
20767
20768 PR rtl-optimization/90275
20769 * config/sh/sh.md (mov_neg_si_t): Clobber the T register in the
20770 pattern.
20771
20772 2020-03-25 Jakub Jelinek <jakub@redhat.com>
20773
20774 PR target/94292
20775 * config/arm/arm.c (arm_gen_dicompare_reg): Set mode of COMPARE to
20776 mode rather than VOIDmode.
20777
20778 2020-03-25 Martin Sebor <msebor@redhat.com>
20779
20780 PR middle-end/94004
20781 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Issue warnings
20782 even for alloca calls resulting from system macro expansion.
20783 Include inlining context in all warnings.
20784
20785 2020-03-25 Richard Sandiford <richard.sandiford@arm.com>
20786
20787 PR target/94254
20788 * config/rs6000/rs6000.c (rs6000_can_change_mode_class): Allow
20789 FPRs to change between SDmode and DDmode.
20790
20791 2020-03-25 Martin Sebor <msebor@redhat.com>
20792
20793 PR tree-optimization/94131
20794 * gimple-fold.c (get_range_strlen_tree): Fail for variable-length
20795 types and decls.
20796 * tree-ssa-strlen.c (get_range_strlen_dynamic): Avoid assuming
20797 types have constant sizes.
20798
20799 2020-03-25 Martin Liska <mliska@suse.cz>
20800
20801 PR lto/94259
20802 * configure.ac: Report error only when --with-zstd
20803 is used.
20804 * configure: Regenerate.
20805
20806 2020-03-25 Jakub Jelinek <jakub@redhat.com>
20807
20808 PR target/94308
20809 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Set
20810 INSN_CODE (insn) to -1 when changing the pattern.
20811
20812 2020-03-25 Martin Liska <mliska@suse.cz>
20813
20814 PR target/93274
20815 PR ipa/94271
20816 * config/i386/i386-features.c (make_resolver_func): Drop
20817 public flag for resolver.
20818 * config/rs6000/rs6000.c (make_resolver_func): Add comdat
20819 group for resolver and drop public flag if possible.
20820 * multiple_target.c (create_dispatcher_calls): Drop unique_name
20821 and resolution as we want to enable LTO privatization of the default
20822 symbol.
20823
20824 2020-03-25 Martin Liska <mliska@suse.cz>
20825
20826 PR lto/94259
20827 * configure.ac: Respect --without-zstd and report
20828 error when we can't find header file with --with-zstd.
20829 * configure: Regenerate.
20830
20831 2020-03-25 Jakub Jelinek <jakub@redhat.com>
20832
20833 PR middle-end/94303
20834 * varasm.c (output_constructor_array_range): If local->index
20835 RANGE_EXPR doesn't start at the current location in the constructor,
20836 skip needed number of bytes using assemble_zeros or assert we don't
20837 go backwards.
20838
20839 PR c++/94223
20840 * langhooks.c (lhd_set_decl_assembler_name): Use a static ulong
20841 counter instead of DECL_UID.
20842
20843 PR tree-optimization/94300
20844 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): If pd.offset
20845 is positive, make sure that off + size isn't larger than needed_len.
20846
20847 2020-03-25 Richard Biener <rguenther@suse.de>
20848 Jakub Jelinek <jakub@redhat.com>
20849
20850 PR debug/94283
20851 * tree-if-conv.c (ifcvt_local_dce): Delete dead statements backwards.
20852
20853 2020-03-24 Christophe Lyon <christophe.lyon@linaro.org>
20854
20855 * doc/sourcebuild.texi (ARM-specific attributes): Add
20856 arm_fp_dp_ok.
20857 (Features for dg-add-options): Add arm_fp_dp.
20858
20859 2020-03-24 John David Anglin <danglin@gcc.gnu.org>
20860
20861 PR lto/94249
20862 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Define __BIG_ENDIAN__.
20863
20864 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
20865
20866 PR libgomp/81689
20867 * omp-offload.c (omp_finish_file): Fix target-link handling if
20868 targetm_common.have_named_sections is false.
20869
20870 2020-03-24 Jakub Jelinek <jakub@redhat.com>
20871
20872 PR target/94286
20873 * config/arm/arm.md (subvdi4, usubvsi4, usubvdi4): Use gen_int_mode
20874 instead of GEN_INT.
20875
20876 PR debug/94285
20877 * tree-ssa-loop-manip.c (create_iv): If after, set stmt location to
20878 e->goto_locus even if gsi_bb (*incr_pos) contains only debug stmts.
20879 If not after and at *incr_pos is a debug stmt, set stmt location to
20880 location of next non-debug stmt after it if any.
20881
20882 PR debug/94283
20883 * tree-if-conv.c (ifcvt_local_dce): For gimple debug stmts, just set
20884 GF_PLF_2, but don't add them to worklist. Don't add an assigment to
20885 worklist or set GF_PLF_2 just because it is used in a debug stmt in
20886 another bb. Formatting improvements.
20887
20888 PR debug/94277
20889 * cgraphunit.c (check_global_declaration): For DECL_EXTERNAL and
20890 non-TREE_PUBLIC non-DECL_ARTIFICIAL FUNCTION_DECLs, set TREE_PUBLIC
20891 regardless of whether TREE_NO_WARNING is set on it or whether
20892 warn_unused_function is true or not.
20893
20894 2020-03-23 Jeff Law <law@redhat.com>
20895
20896 PR rtl-optimization/90275
20897 PR target/94238
20898 PR target/94144
20899 * simplify-rtx.c (comparison_code_valid_for_mode): New function.
20900 (simplify_logical_relational_operation): Use it.
20901
20902 2020-03-23 Jakub Jelinek <jakub@redhat.com>
20903
20904 PR c++/91993
20905 * tree.c (get_narrower): Handle COMPOUND_EXPR by recursing on
20906 ultimate rhs and if returned something different, reconstructing
20907 the COMPOUND_EXPRs.
20908
20909 2020-03-23 Lewis Hyatt <lhyatt@gmail.com>
20910
20911 * opts.c (print_filtered_help): Improve the help text for alias options.
20912
20913 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20914 Andre Vieira <andre.simoesdiasvieira@arm.com>
20915 Mihail Ionescu <mihail.ionescu@arm.com>
20916
20917 * config/arm/arm_mve.h (vshlcq_m_s8): Define macro.
20918 (vshlcq_m_u8): Likewise.
20919 (vshlcq_m_s16): Likewise.
20920 (vshlcq_m_u16): Likewise.
20921 (vshlcq_m_s32): Likewise.
20922 (vshlcq_m_u32): Likewise.
20923 (__arm_vshlcq_m_s8): Define intrinsic.
20924 (__arm_vshlcq_m_u8): Likewise.
20925 (__arm_vshlcq_m_s16): Likewise.
20926 (__arm_vshlcq_m_u16): Likewise.
20927 (__arm_vshlcq_m_s32): Likewise.
20928 (__arm_vshlcq_m_u32): Likewise.
20929 (vshlcq_m): Define polymorphic variant.
20930 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_UNONE_IMM_UNONE):
20931 Use builtin qualifier.
20932 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
20933 * config/arm/mve.md (mve_vshlcq_m_vec_<supf><mode>): Define RTL pattern.
20934 (mve_vshlcq_m_carry_<supf><mode>): Likewise.
20935 (mve_vshlcq_m_<supf><mode>): Likewise.
20936
20937 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20938
20939 * config/arm/arm-builtins.c (LSLL_QUALIFIERS): Define builtin qualifier.
20940 (UQSHL_QUALIFIERS): Likewise.
20941 (ASRL_QUALIFIERS): Likewise.
20942 (SQSHL_QUALIFIERS): Likewise.
20943 * config/arm/arm_mve.h (__ARM_BIG_ENDIAN): Check to not support MVE in
20944 Big-Endian Mode.
20945 (sqrshr): Define macro.
20946 (sqrshrl): Likewise.
20947 (sqrshrl_sat48): Likewise.
20948 (sqshl): Likewise.
20949 (sqshll): Likewise.
20950 (srshr): Likewise.
20951 (srshrl): Likewise.
20952 (uqrshl): Likewise.
20953 (uqrshll): Likewise.
20954 (uqrshll_sat48): Likewise.
20955 (uqshl): Likewise.
20956 (uqshll): Likewise.
20957 (urshr): Likewise.
20958 (urshrl): Likewise.
20959 (lsll): Likewise.
20960 (asrl): Likewise.
20961 (__arm_lsll): Define intrinsic.
20962 (__arm_asrl): Likewise.
20963 (__arm_uqrshll): Likewise.
20964 (__arm_uqrshll_sat48): Likewise.
20965 (__arm_sqrshrl): Likewise.
20966 (__arm_sqrshrl_sat48): Likewise.
20967 (__arm_uqshll): Likewise.
20968 (__arm_urshrl): Likewise.
20969 (__arm_srshrl): Likewise.
20970 (__arm_sqshll): Likewise.
20971 (__arm_uqrshl): Likewise.
20972 (__arm_sqrshr): Likewise.
20973 (__arm_uqshl): Likewise.
20974 (__arm_urshr): Likewise.
20975 (__arm_sqshl): Likewise.
20976 (__arm_srshr): Likewise.
20977 * config/arm/arm_mve_builtins.def (LSLL_QUALIFIERS): Use builtin
20978 qualifier.
20979 (UQSHL_QUALIFIERS): Likewise.
20980 (ASRL_QUALIFIERS): Likewise.
20981 (SQSHL_QUALIFIERS): Likewise.
20982 * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Define RTL pattern.
20983 (mve_sqrshrl_sat<supf>_di): Likewise.
20984 (mve_uqrshl_si): Likewise.
20985 (mve_sqrshr_si): Likewise.
20986 (mve_uqshll_di): Likewise.
20987 (mve_urshrl_di): Likewise.
20988 (mve_uqshl_si): Likewise.
20989 (mve_urshr_si): Likewise.
20990 (mve_sqshl_si): Likewise.
20991 (mve_srshr_si): Likewise.
20992 (mve_srshrl_di): Likewise.
20993 (mve_sqshll_di): Likewise.
20994
20995 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20996 Andre Vieira <andre.simoesdiasvieira@arm.com>
20997 Mihail Ionescu <mihail.ionescu@arm.com>
20998
20999 * config/arm/arm_mve.h (vsetq_lane_f16): Define macro.
21000 (vsetq_lane_f32): Likewise.
21001 (vsetq_lane_s16): Likewise.
21002 (vsetq_lane_s32): Likewise.
21003 (vsetq_lane_s8): Likewise.
21004 (vsetq_lane_s64): Likewise.
21005 (vsetq_lane_u8): Likewise.
21006 (vsetq_lane_u16): Likewise.
21007 (vsetq_lane_u32): Likewise.
21008 (vsetq_lane_u64): Likewise.
21009 (vgetq_lane_f16): Likewise.
21010 (vgetq_lane_f32): Likewise.
21011 (vgetq_lane_s16): Likewise.
21012 (vgetq_lane_s32): Likewise.
21013 (vgetq_lane_s8): Likewise.
21014 (vgetq_lane_s64): Likewise.
21015 (vgetq_lane_u8): Likewise.
21016 (vgetq_lane_u16): Likewise.
21017 (vgetq_lane_u32): Likewise.
21018 (vgetq_lane_u64): Likewise.
21019 (__ARM_NUM_LANES): Likewise.
21020 (__ARM_LANEQ): Likewise.
21021 (__ARM_CHECK_LANEQ): Likewise.
21022 (__arm_vsetq_lane_s16): Define intrinsic.
21023 (__arm_vsetq_lane_s32): Likewise.
21024 (__arm_vsetq_lane_s8): Likewise.
21025 (__arm_vsetq_lane_s64): Likewise.
21026 (__arm_vsetq_lane_u8): Likewise.
21027 (__arm_vsetq_lane_u16): Likewise.
21028 (__arm_vsetq_lane_u32): Likewise.
21029 (__arm_vsetq_lane_u64): Likewise.
21030 (__arm_vgetq_lane_s16): Likewise.
21031 (__arm_vgetq_lane_s32): Likewise.
21032 (__arm_vgetq_lane_s8): Likewise.
21033 (__arm_vgetq_lane_s64): Likewise.
21034 (__arm_vgetq_lane_u8): Likewise.
21035 (__arm_vgetq_lane_u16): Likewise.
21036 (__arm_vgetq_lane_u32): Likewise.
21037 (__arm_vgetq_lane_u64): Likewise.
21038 (__arm_vsetq_lane_f16): Likewise.
21039 (__arm_vsetq_lane_f32): Likewise.
21040 (__arm_vgetq_lane_f16): Likewise.
21041 (__arm_vgetq_lane_f32): Likewise.
21042 (vgetq_lane): Define polymorphic variant.
21043 (vsetq_lane): Likewise.
21044 * config/arm/mve.md (mve_vec_extract<mode><V_elem_l>): Define RTL
21045 pattern.
21046 (mve_vec_extractv2didi): Likewise.
21047 (mve_vec_extract_sext_internal<mode>): Likewise.
21048 (mve_vec_extract_zext_internal<mode>): Likewise.
21049 (mve_vec_set<mode>_internal): Likewise.
21050 (mve_vec_setv2di_internal): Likewise.
21051 * config/arm/neon.md (vec_set<mode>): Move RTL pattern to vec-common.md
21052 file.
21053 (vec_extract<mode><V_elem_l>): Rename to
21054 "neon_vec_extract<mode><V_elem_l>".
21055 (vec_extractv2didi): Rename to "neon_vec_extractv2didi".
21056 * config/arm/vec-common.md (vec_extract<mode><V_elem_l>): Define RTL
21057 pattern common for MVE and NEON.
21058 (vec_set<mode>): Move RTL pattern from neon.md and modify to accept both
21059 MVE and NEON.
21060
21061 2020-03-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
21062
21063 * config/arm/mve.md (earlyclobber_32): New mode attribute.
21064 (mve_vrev64q_*, mve_vcaddq*, mve_vhcaddq_*, mve_vcmulq_*,
21065 mve_vmull[bt]q_*, mve_vqdmull[bt]q_*): Add appropriate early clobbers.
21066
21067 2020-03-23 Richard Biener <rguenther@suse.de>
21068
21069 PR tree-optimization/94261
21070 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
21071 IL operand swapping code.
21072 (vect_slp_rearrange_stmts): Do not arrange isomorphic
21073 nodes that would need operation code adjustments.
21074
21075 2020-03-23 Tobias Burnus <tobias@codesourcery.com>
21076
21077 * doc/install.texi (amdgcn-*-amdhsa): Renamed
21078 from amdgcn-unknown-amdhsa; change
21079 amdgcn-unknown-amdhsa to amdgcn-amdhsa.
21080
21081 2020-03-23 Richard Biener <rguenther@suse.de>
21082
21083 PR ipa/94245
21084 * ipa-prop.c (ipa_read_jump_function): Build the ADDR_EXRP
21085 directly rather than also folding it via build_fold_addr_expr.
21086
21087 2020-03-23 Richard Biener <rguenther@suse.de>
21088
21089 PR tree-optimization/94266
21090 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not propagate
21091 addresses of TARGET_MEM_REFs.
21092
21093 2020-03-23 Martin Liska <mliska@suse.cz>
21094
21095 PR ipa/94250
21096 * symtab.c (symtab_node::clone_references): Save speculative_id
21097 as ref may be overwritten by create_reference.
21098 (symtab_node::clone_referring): Likewise.
21099 (symtab_node::clone_reference): Likewise.
21100
21101 2020-03-22 Iain Sandoe <iain@sandoe.co.uk>
21102
21103 * config/i386/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Remove
21104 references to Darwin.
21105 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION): Define this
21106 unconditionally and comment on why.
21107
21108 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
21109
21110 * config/darwin.c (darwin_mergeable_constant_section): Collect
21111 section anchor checks into the caller.
21112 (machopic_select_section): Collect section anchor checks into
21113 the determination of 'effective zero-size' objects. When the
21114 size is unknown, assume it is non-zero, and thus return the
21115 'generic' section for the DECL.
21116
21117 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
21118
21119 PR target/93694
21120 * config/darwin.opt: Amend options descriptions.
21121
21122 2020-03-21 Richard Sandiford <richard.sandiford@arm.com>
21123
21124 PR rtl-optimization/94052
21125 * lra-constraints.c (simplify_operand_subreg): Reload the inner
21126 register of a paradoxical subreg if simplify_subreg_regno fails
21127 to give a valid hard register for the outer mode.
21128
21129 2020-03-20 Martin Jambor <mjambor@suse.cz>
21130
21131 PR tree-optimization/93435
21132 * params.opt (sra-max-propagations): New parameter.
21133 * tree-sra.c (propagation_budget): New variable.
21134 (budget_for_propagation_access): New function.
21135 (propagate_subaccesses_from_rhs): Use it.
21136 (propagate_subaccesses_from_lhs): Likewise.
21137 (propagate_all_subaccesses): Set up and destroy propagation_budget.
21138
21139 2020-03-20 Carl Love <cel@us.ibm.com>
21140
21141 PR/target 87583
21142 * config/rs6000/rs6000.c (rs6000_option_override_internal):
21143 Add check for TARGET_FPRND for Power 7 or newer.
21144
21145 2020-03-20 Jan Hubicka <hubicka@ucw.cz>
21146
21147 PR ipa/93347
21148 * cgraph.c (symbol_table::create_edge): Update calls_comdat_local flag.
21149 (cgraph_edge::redirect_callee): Move here; likewise.
21150 (cgraph_node::remove_callees): Update calls_comdat_local flag.
21151 (cgraph_node::verify_node): Verify that calls_comdat_local flag match
21152 reality.
21153 (cgraph_node::check_calls_comdat_local_p): New member function.
21154 * cgraph.h (cgraph_node::check_calls_comdat_local_p): Declare.
21155 (cgraph_edge::redirect_callee): Move offline.
21156 * ipa-fnsummary.c (compute_fn_summary): Do not compute
21157 calls_comdat_local flag here.
21158 * ipa-inline-transform.c (inline_call): Fix updating of
21159 calls_comdat_local flag.
21160 * ipa-split.c (split_function): Use true instead of 1 to set the flag.
21161 * symtab.c (symtab_node::add_to_same_comdat_group): Update
21162 calls_comdat_local flag.
21163
21164 2020-03-20 Richard Biener <rguenther@suse.de>
21165
21166 * tree-vect-slp.c (vect_analyze_slp_instance): Dump SLP tree
21167 from the possibly modified root.
21168
21169 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21170 Andre Vieira <andre.simoesdiasvieira@arm.com>
21171 Mihail Ionescu <mihail.ionescu@arm.com>
21172
21173 * config/arm/arm_mve.h (vst1q_p_u8): Define macro.
21174 (vst1q_p_s8): Likewise.
21175 (vst2q_s8): Likewise.
21176 (vst2q_u8): Likewise.
21177 (vld1q_z_u8): Likewise.
21178 (vld1q_z_s8): Likewise.
21179 (vld2q_s8): Likewise.
21180 (vld2q_u8): Likewise.
21181 (vld4q_s8): Likewise.
21182 (vld4q_u8): Likewise.
21183 (vst1q_p_u16): Likewise.
21184 (vst1q_p_s16): Likewise.
21185 (vst2q_s16): Likewise.
21186 (vst2q_u16): Likewise.
21187 (vld1q_z_u16): Likewise.
21188 (vld1q_z_s16): Likewise.
21189 (vld2q_s16): Likewise.
21190 (vld2q_u16): Likewise.
21191 (vld4q_s16): Likewise.
21192 (vld4q_u16): Likewise.
21193 (vst1q_p_u32): Likewise.
21194 (vst1q_p_s32): Likewise.
21195 (vst2q_s32): Likewise.
21196 (vst2q_u32): Likewise.
21197 (vld1q_z_u32): Likewise.
21198 (vld1q_z_s32): Likewise.
21199 (vld2q_s32): Likewise.
21200 (vld2q_u32): Likewise.
21201 (vld4q_s32): Likewise.
21202 (vld4q_u32): Likewise.
21203 (vld4q_f16): Likewise.
21204 (vld2q_f16): Likewise.
21205 (vld1q_z_f16): Likewise.
21206 (vst2q_f16): Likewise.
21207 (vst1q_p_f16): Likewise.
21208 (vld4q_f32): Likewise.
21209 (vld2q_f32): Likewise.
21210 (vld1q_z_f32): Likewise.
21211 (vst2q_f32): Likewise.
21212 (vst1q_p_f32): Likewise.
21213 (__arm_vst1q_p_u8): Define intrinsic.
21214 (__arm_vst1q_p_s8): Likewise.
21215 (__arm_vst2q_s8): Likewise.
21216 (__arm_vst2q_u8): Likewise.
21217 (__arm_vld1q_z_u8): Likewise.
21218 (__arm_vld1q_z_s8): Likewise.
21219 (__arm_vld2q_s8): Likewise.
21220 (__arm_vld2q_u8): Likewise.
21221 (__arm_vld4q_s8): Likewise.
21222 (__arm_vld4q_u8): Likewise.
21223 (__arm_vst1q_p_u16): Likewise.
21224 (__arm_vst1q_p_s16): Likewise.
21225 (__arm_vst2q_s16): Likewise.
21226 (__arm_vst2q_u16): Likewise.
21227 (__arm_vld1q_z_u16): Likewise.
21228 (__arm_vld1q_z_s16): Likewise.
21229 (__arm_vld2q_s16): Likewise.
21230 (__arm_vld2q_u16): Likewise.
21231 (__arm_vld4q_s16): Likewise.
21232 (__arm_vld4q_u16): Likewise.
21233 (__arm_vst1q_p_u32): Likewise.
21234 (__arm_vst1q_p_s32): Likewise.
21235 (__arm_vst2q_s32): Likewise.
21236 (__arm_vst2q_u32): Likewise.
21237 (__arm_vld1q_z_u32): Likewise.
21238 (__arm_vld1q_z_s32): Likewise.
21239 (__arm_vld2q_s32): Likewise.
21240 (__arm_vld2q_u32): Likewise.
21241 (__arm_vld4q_s32): Likewise.
21242 (__arm_vld4q_u32): Likewise.
21243 (__arm_vld4q_f16): Likewise.
21244 (__arm_vld2q_f16): Likewise.
21245 (__arm_vld1q_z_f16): Likewise.
21246 (__arm_vst2q_f16): Likewise.
21247 (__arm_vst1q_p_f16): Likewise.
21248 (__arm_vld4q_f32): Likewise.
21249 (__arm_vld2q_f32): Likewise.
21250 (__arm_vld1q_z_f32): Likewise.
21251 (__arm_vst2q_f32): Likewise.
21252 (__arm_vst1q_p_f32): Likewise.
21253 (vld1q_z): Define polymorphic variant.
21254 (vld2q): Likewise.
21255 (vld4q): Likewise.
21256 (vst1q_p): Likewise.
21257 (vst2q): Likewise.
21258 * config/arm/arm_mve_builtins.def (STORE1): Use builtin qualifier.
21259 (LOAD1): Likewise.
21260 * config/arm/mve.md (mve_vst2q<mode>): Define RTL pattern.
21261 (mve_vld2q<mode>): Likewise.
21262 (mve_vld4q<mode>): Likewise.
21263
21264 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21265 Andre Vieira <andre.simoesdiasvieira@arm.com>
21266 Mihail Ionescu <mihail.ionescu@arm.com>
21267
21268 * config/arm/arm-builtins.c (ARM_BUILTIN_GET_FPSCR_NZCVQC): Define.
21269 (ARM_BUILTIN_SET_FPSCR_NZCVQC): Likewise.
21270 (arm_init_mve_builtins): Add "__builtin_arm_get_fpscr_nzcvqc" and
21271 "__builtin_arm_set_fpscr_nzcvqc" to arm_builtin_decls array.
21272 (arm_expand_builtin): Define case ARM_BUILTIN_GET_FPSCR_NZCVQC
21273 and ARM_BUILTIN_SET_FPSCR_NZCVQC.
21274 * config/arm/arm_mve.h (vadciq_s32): Define macro.
21275 (vadciq_u32): Likewise.
21276 (vadciq_m_s32): Likewise.
21277 (vadciq_m_u32): Likewise.
21278 (vadcq_s32): Likewise.
21279 (vadcq_u32): Likewise.
21280 (vadcq_m_s32): Likewise.
21281 (vadcq_m_u32): Likewise.
21282 (vsbciq_s32): Likewise.
21283 (vsbciq_u32): Likewise.
21284 (vsbciq_m_s32): Likewise.
21285 (vsbciq_m_u32): Likewise.
21286 (vsbcq_s32): Likewise.
21287 (vsbcq_u32): Likewise.
21288 (vsbcq_m_s32): Likewise.
21289 (vsbcq_m_u32): Likewise.
21290 (__arm_vadciq_s32): Define intrinsic.
21291 (__arm_vadciq_u32): Likewise.
21292 (__arm_vadciq_m_s32): Likewise.
21293 (__arm_vadciq_m_u32): Likewise.
21294 (__arm_vadcq_s32): Likewise.
21295 (__arm_vadcq_u32): Likewise.
21296 (__arm_vadcq_m_s32): Likewise.
21297 (__arm_vadcq_m_u32): Likewise.
21298 (__arm_vsbciq_s32): Likewise.
21299 (__arm_vsbciq_u32): Likewise.
21300 (__arm_vsbciq_m_s32): Likewise.
21301 (__arm_vsbciq_m_u32): Likewise.
21302 (__arm_vsbcq_s32): Likewise.
21303 (__arm_vsbcq_u32): Likewise.
21304 (__arm_vsbcq_m_s32): Likewise.
21305 (__arm_vsbcq_m_u32): Likewise.
21306 (vadciq_m): Define polymorphic variant.
21307 (vadciq): Likewise.
21308 (vadcq_m): Likewise.
21309 (vadcq): Likewise.
21310 (vsbciq_m): Likewise.
21311 (vsbciq): Likewise.
21312 (vsbcq_m): Likewise.
21313 (vsbcq): Likewise.
21314 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE): Use builtin
21315 qualifier.
21316 (BINOP_UNONE_UNONE_UNONE): Likewise.
21317 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
21318 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
21319 * config/arm/mve.md (VADCIQ): Define iterator.
21320 (VADCIQ_M): Likewise.
21321 (VSBCQ): Likewise.
21322 (VSBCQ_M): Likewise.
21323 (VSBCIQ): Likewise.
21324 (VSBCIQ_M): Likewise.
21325 (VADCQ): Likewise.
21326 (VADCQ_M): Likewise.
21327 (mve_vadciq_m_<supf>v4si): Define RTL pattern.
21328 (mve_vadciq_<supf>v4si): Likewise.
21329 (mve_vadcq_m_<supf>v4si): Likewise.
21330 (mve_vadcq_<supf>v4si): Likewise.
21331 (mve_vsbciq_m_<supf>v4si): Likewise.
21332 (mve_vsbciq_<supf>v4si): Likewise.
21333 (mve_vsbcq_m_<supf>v4si): Likewise.
21334 (mve_vsbcq_<supf>v4si): Likewise.
21335 (get_fpscr_nzcvqc): Define isns.
21336 (set_fpscr_nzcvqc): Define isns.
21337 * config/arm/unspecs.md (UNSPEC_GET_FPSCR_NZCVQC): Define.
21338 (UNSPEC_SET_FPSCR_NZCVQC): Define.
21339
21340 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21341
21342 * config/arm/arm_mve.h (vddupq_x_n_u8): Define macro.
21343 (vddupq_x_n_u16): Likewise.
21344 (vddupq_x_n_u32): Likewise.
21345 (vddupq_x_wb_u8): Likewise.
21346 (vddupq_x_wb_u16): Likewise.
21347 (vddupq_x_wb_u32): Likewise.
21348 (vdwdupq_x_n_u8): Likewise.
21349 (vdwdupq_x_n_u16): Likewise.
21350 (vdwdupq_x_n_u32): Likewise.
21351 (vdwdupq_x_wb_u8): Likewise.
21352 (vdwdupq_x_wb_u16): Likewise.
21353 (vdwdupq_x_wb_u32): Likewise.
21354 (vidupq_x_n_u8): Likewise.
21355 (vidupq_x_n_u16): Likewise.
21356 (vidupq_x_n_u32): Likewise.
21357 (vidupq_x_wb_u8): Likewise.
21358 (vidupq_x_wb_u16): Likewise.
21359 (vidupq_x_wb_u32): Likewise.
21360 (viwdupq_x_n_u8): Likewise.
21361 (viwdupq_x_n_u16): Likewise.
21362 (viwdupq_x_n_u32): Likewise.
21363 (viwdupq_x_wb_u8): Likewise.
21364 (viwdupq_x_wb_u16): Likewise.
21365 (viwdupq_x_wb_u32): Likewise.
21366 (vdupq_x_n_s8): Likewise.
21367 (vdupq_x_n_s16): Likewise.
21368 (vdupq_x_n_s32): Likewise.
21369 (vdupq_x_n_u8): Likewise.
21370 (vdupq_x_n_u16): Likewise.
21371 (vdupq_x_n_u32): Likewise.
21372 (vminq_x_s8): Likewise.
21373 (vminq_x_s16): Likewise.
21374 (vminq_x_s32): Likewise.
21375 (vminq_x_u8): Likewise.
21376 (vminq_x_u16): Likewise.
21377 (vminq_x_u32): Likewise.
21378 (vmaxq_x_s8): Likewise.
21379 (vmaxq_x_s16): Likewise.
21380 (vmaxq_x_s32): Likewise.
21381 (vmaxq_x_u8): Likewise.
21382 (vmaxq_x_u16): Likewise.
21383 (vmaxq_x_u32): Likewise.
21384 (vabdq_x_s8): Likewise.
21385 (vabdq_x_s16): Likewise.
21386 (vabdq_x_s32): Likewise.
21387 (vabdq_x_u8): Likewise.
21388 (vabdq_x_u16): Likewise.
21389 (vabdq_x_u32): Likewise.
21390 (vabsq_x_s8): Likewise.
21391 (vabsq_x_s16): Likewise.
21392 (vabsq_x_s32): Likewise.
21393 (vaddq_x_s8): Likewise.
21394 (vaddq_x_s16): Likewise.
21395 (vaddq_x_s32): Likewise.
21396 (vaddq_x_n_s8): Likewise.
21397 (vaddq_x_n_s16): Likewise.
21398 (vaddq_x_n_s32): Likewise.
21399 (vaddq_x_u8): Likewise.
21400 (vaddq_x_u16): Likewise.
21401 (vaddq_x_u32): Likewise.
21402 (vaddq_x_n_u8): Likewise.
21403 (vaddq_x_n_u16): Likewise.
21404 (vaddq_x_n_u32): Likewise.
21405 (vclsq_x_s8): Likewise.
21406 (vclsq_x_s16): Likewise.
21407 (vclsq_x_s32): Likewise.
21408 (vclzq_x_s8): Likewise.
21409 (vclzq_x_s16): Likewise.
21410 (vclzq_x_s32): Likewise.
21411 (vclzq_x_u8): Likewise.
21412 (vclzq_x_u16): Likewise.
21413 (vclzq_x_u32): Likewise.
21414 (vnegq_x_s8): Likewise.
21415 (vnegq_x_s16): Likewise.
21416 (vnegq_x_s32): Likewise.
21417 (vmulhq_x_s8): Likewise.
21418 (vmulhq_x_s16): Likewise.
21419 (vmulhq_x_s32): Likewise.
21420 (vmulhq_x_u8): Likewise.
21421 (vmulhq_x_u16): Likewise.
21422 (vmulhq_x_u32): Likewise.
21423 (vmullbq_poly_x_p8): Likewise.
21424 (vmullbq_poly_x_p16): Likewise.
21425 (vmullbq_int_x_s8): Likewise.
21426 (vmullbq_int_x_s16): Likewise.
21427 (vmullbq_int_x_s32): Likewise.
21428 (vmullbq_int_x_u8): Likewise.
21429 (vmullbq_int_x_u16): Likewise.
21430 (vmullbq_int_x_u32): Likewise.
21431 (vmulltq_poly_x_p8): Likewise.
21432 (vmulltq_poly_x_p16): Likewise.
21433 (vmulltq_int_x_s8): Likewise.
21434 (vmulltq_int_x_s16): Likewise.
21435 (vmulltq_int_x_s32): Likewise.
21436 (vmulltq_int_x_u8): Likewise.
21437 (vmulltq_int_x_u16): Likewise.
21438 (vmulltq_int_x_u32): Likewise.
21439 (vmulq_x_s8): Likewise.
21440 (vmulq_x_s16): Likewise.
21441 (vmulq_x_s32): Likewise.
21442 (vmulq_x_n_s8): Likewise.
21443 (vmulq_x_n_s16): Likewise.
21444 (vmulq_x_n_s32): Likewise.
21445 (vmulq_x_u8): Likewise.
21446 (vmulq_x_u16): Likewise.
21447 (vmulq_x_u32): Likewise.
21448 (vmulq_x_n_u8): Likewise.
21449 (vmulq_x_n_u16): Likewise.
21450 (vmulq_x_n_u32): Likewise.
21451 (vsubq_x_s8): Likewise.
21452 (vsubq_x_s16): Likewise.
21453 (vsubq_x_s32): Likewise.
21454 (vsubq_x_n_s8): Likewise.
21455 (vsubq_x_n_s16): Likewise.
21456 (vsubq_x_n_s32): Likewise.
21457 (vsubq_x_u8): Likewise.
21458 (vsubq_x_u16): Likewise.
21459 (vsubq_x_u32): Likewise.
21460 (vsubq_x_n_u8): Likewise.
21461 (vsubq_x_n_u16): Likewise.
21462 (vsubq_x_n_u32): Likewise.
21463 (vcaddq_rot90_x_s8): Likewise.
21464 (vcaddq_rot90_x_s16): Likewise.
21465 (vcaddq_rot90_x_s32): Likewise.
21466 (vcaddq_rot90_x_u8): Likewise.
21467 (vcaddq_rot90_x_u16): Likewise.
21468 (vcaddq_rot90_x_u32): Likewise.
21469 (vcaddq_rot270_x_s8): Likewise.
21470 (vcaddq_rot270_x_s16): Likewise.
21471 (vcaddq_rot270_x_s32): Likewise.
21472 (vcaddq_rot270_x_u8): Likewise.
21473 (vcaddq_rot270_x_u16): Likewise.
21474 (vcaddq_rot270_x_u32): Likewise.
21475 (vhaddq_x_n_s8): Likewise.
21476 (vhaddq_x_n_s16): Likewise.
21477 (vhaddq_x_n_s32): Likewise.
21478 (vhaddq_x_n_u8): Likewise.
21479 (vhaddq_x_n_u16): Likewise.
21480 (vhaddq_x_n_u32): Likewise.
21481 (vhaddq_x_s8): Likewise.
21482 (vhaddq_x_s16): Likewise.
21483 (vhaddq_x_s32): Likewise.
21484 (vhaddq_x_u8): Likewise.
21485 (vhaddq_x_u16): Likewise.
21486 (vhaddq_x_u32): Likewise.
21487 (vhcaddq_rot90_x_s8): Likewise.
21488 (vhcaddq_rot90_x_s16): Likewise.
21489 (vhcaddq_rot90_x_s32): Likewise.
21490 (vhcaddq_rot270_x_s8): Likewise.
21491 (vhcaddq_rot270_x_s16): Likewise.
21492 (vhcaddq_rot270_x_s32): Likewise.
21493 (vhsubq_x_n_s8): Likewise.
21494 (vhsubq_x_n_s16): Likewise.
21495 (vhsubq_x_n_s32): Likewise.
21496 (vhsubq_x_n_u8): Likewise.
21497 (vhsubq_x_n_u16): Likewise.
21498 (vhsubq_x_n_u32): Likewise.
21499 (vhsubq_x_s8): Likewise.
21500 (vhsubq_x_s16): Likewise.
21501 (vhsubq_x_s32): Likewise.
21502 (vhsubq_x_u8): Likewise.
21503 (vhsubq_x_u16): Likewise.
21504 (vhsubq_x_u32): Likewise.
21505 (vrhaddq_x_s8): Likewise.
21506 (vrhaddq_x_s16): Likewise.
21507 (vrhaddq_x_s32): Likewise.
21508 (vrhaddq_x_u8): Likewise.
21509 (vrhaddq_x_u16): Likewise.
21510 (vrhaddq_x_u32): Likewise.
21511 (vrmulhq_x_s8): Likewise.
21512 (vrmulhq_x_s16): Likewise.
21513 (vrmulhq_x_s32): Likewise.
21514 (vrmulhq_x_u8): Likewise.
21515 (vrmulhq_x_u16): Likewise.
21516 (vrmulhq_x_u32): Likewise.
21517 (vandq_x_s8): Likewise.
21518 (vandq_x_s16): Likewise.
21519 (vandq_x_s32): Likewise.
21520 (vandq_x_u8): Likewise.
21521 (vandq_x_u16): Likewise.
21522 (vandq_x_u32): Likewise.
21523 (vbicq_x_s8): Likewise.
21524 (vbicq_x_s16): Likewise.
21525 (vbicq_x_s32): Likewise.
21526 (vbicq_x_u8): Likewise.
21527 (vbicq_x_u16): Likewise.
21528 (vbicq_x_u32): Likewise.
21529 (vbrsrq_x_n_s8): Likewise.
21530 (vbrsrq_x_n_s16): Likewise.
21531 (vbrsrq_x_n_s32): Likewise.
21532 (vbrsrq_x_n_u8): Likewise.
21533 (vbrsrq_x_n_u16): Likewise.
21534 (vbrsrq_x_n_u32): Likewise.
21535 (veorq_x_s8): Likewise.
21536 (veorq_x_s16): Likewise.
21537 (veorq_x_s32): Likewise.
21538 (veorq_x_u8): Likewise.
21539 (veorq_x_u16): Likewise.
21540 (veorq_x_u32): Likewise.
21541 (vmovlbq_x_s8): Likewise.
21542 (vmovlbq_x_s16): Likewise.
21543 (vmovlbq_x_u8): Likewise.
21544 (vmovlbq_x_u16): Likewise.
21545 (vmovltq_x_s8): Likewise.
21546 (vmovltq_x_s16): Likewise.
21547 (vmovltq_x_u8): Likewise.
21548 (vmovltq_x_u16): Likewise.
21549 (vmvnq_x_s8): Likewise.
21550 (vmvnq_x_s16): Likewise.
21551 (vmvnq_x_s32): Likewise.
21552 (vmvnq_x_u8): Likewise.
21553 (vmvnq_x_u16): Likewise.
21554 (vmvnq_x_u32): Likewise.
21555 (vmvnq_x_n_s16): Likewise.
21556 (vmvnq_x_n_s32): Likewise.
21557 (vmvnq_x_n_u16): Likewise.
21558 (vmvnq_x_n_u32): Likewise.
21559 (vornq_x_s8): Likewise.
21560 (vornq_x_s16): Likewise.
21561 (vornq_x_s32): Likewise.
21562 (vornq_x_u8): Likewise.
21563 (vornq_x_u16): Likewise.
21564 (vornq_x_u32): Likewise.
21565 (vorrq_x_s8): Likewise.
21566 (vorrq_x_s16): Likewise.
21567 (vorrq_x_s32): Likewise.
21568 (vorrq_x_u8): Likewise.
21569 (vorrq_x_u16): Likewise.
21570 (vorrq_x_u32): Likewise.
21571 (vrev16q_x_s8): Likewise.
21572 (vrev16q_x_u8): Likewise.
21573 (vrev32q_x_s8): Likewise.
21574 (vrev32q_x_s16): Likewise.
21575 (vrev32q_x_u8): Likewise.
21576 (vrev32q_x_u16): Likewise.
21577 (vrev64q_x_s8): Likewise.
21578 (vrev64q_x_s16): Likewise.
21579 (vrev64q_x_s32): Likewise.
21580 (vrev64q_x_u8): Likewise.
21581 (vrev64q_x_u16): Likewise.
21582 (vrev64q_x_u32): Likewise.
21583 (vrshlq_x_s8): Likewise.
21584 (vrshlq_x_s16): Likewise.
21585 (vrshlq_x_s32): Likewise.
21586 (vrshlq_x_u8): Likewise.
21587 (vrshlq_x_u16): Likewise.
21588 (vrshlq_x_u32): Likewise.
21589 (vshllbq_x_n_s8): Likewise.
21590 (vshllbq_x_n_s16): Likewise.
21591 (vshllbq_x_n_u8): Likewise.
21592 (vshllbq_x_n_u16): Likewise.
21593 (vshlltq_x_n_s8): Likewise.
21594 (vshlltq_x_n_s16): Likewise.
21595 (vshlltq_x_n_u8): Likewise.
21596 (vshlltq_x_n_u16): Likewise.
21597 (vshlq_x_s8): Likewise.
21598 (vshlq_x_s16): Likewise.
21599 (vshlq_x_s32): Likewise.
21600 (vshlq_x_u8): Likewise.
21601 (vshlq_x_u16): Likewise.
21602 (vshlq_x_u32): Likewise.
21603 (vshlq_x_n_s8): Likewise.
21604 (vshlq_x_n_s16): Likewise.
21605 (vshlq_x_n_s32): Likewise.
21606 (vshlq_x_n_u8): Likewise.
21607 (vshlq_x_n_u16): Likewise.
21608 (vshlq_x_n_u32): Likewise.
21609 (vrshrq_x_n_s8): Likewise.
21610 (vrshrq_x_n_s16): Likewise.
21611 (vrshrq_x_n_s32): Likewise.
21612 (vrshrq_x_n_u8): Likewise.
21613 (vrshrq_x_n_u16): Likewise.
21614 (vrshrq_x_n_u32): Likewise.
21615 (vshrq_x_n_s8): Likewise.
21616 (vshrq_x_n_s16): Likewise.
21617 (vshrq_x_n_s32): Likewise.
21618 (vshrq_x_n_u8): Likewise.
21619 (vshrq_x_n_u16): Likewise.
21620 (vshrq_x_n_u32): Likewise.
21621 (vdupq_x_n_f16): Likewise.
21622 (vdupq_x_n_f32): Likewise.
21623 (vminnmq_x_f16): Likewise.
21624 (vminnmq_x_f32): Likewise.
21625 (vmaxnmq_x_f16): Likewise.
21626 (vmaxnmq_x_f32): Likewise.
21627 (vabdq_x_f16): Likewise.
21628 (vabdq_x_f32): Likewise.
21629 (vabsq_x_f16): Likewise.
21630 (vabsq_x_f32): Likewise.
21631 (vaddq_x_f16): Likewise.
21632 (vaddq_x_f32): Likewise.
21633 (vaddq_x_n_f16): Likewise.
21634 (vaddq_x_n_f32): Likewise.
21635 (vnegq_x_f16): Likewise.
21636 (vnegq_x_f32): Likewise.
21637 (vmulq_x_f16): Likewise.
21638 (vmulq_x_f32): Likewise.
21639 (vmulq_x_n_f16): Likewise.
21640 (vmulq_x_n_f32): Likewise.
21641 (vsubq_x_f16): Likewise.
21642 (vsubq_x_f32): Likewise.
21643 (vsubq_x_n_f16): Likewise.
21644 (vsubq_x_n_f32): Likewise.
21645 (vcaddq_rot90_x_f16): Likewise.
21646 (vcaddq_rot90_x_f32): Likewise.
21647 (vcaddq_rot270_x_f16): Likewise.
21648 (vcaddq_rot270_x_f32): Likewise.
21649 (vcmulq_x_f16): Likewise.
21650 (vcmulq_x_f32): Likewise.
21651 (vcmulq_rot90_x_f16): Likewise.
21652 (vcmulq_rot90_x_f32): Likewise.
21653 (vcmulq_rot180_x_f16): Likewise.
21654 (vcmulq_rot180_x_f32): Likewise.
21655 (vcmulq_rot270_x_f16): Likewise.
21656 (vcmulq_rot270_x_f32): Likewise.
21657 (vcvtaq_x_s16_f16): Likewise.
21658 (vcvtaq_x_s32_f32): Likewise.
21659 (vcvtaq_x_u16_f16): Likewise.
21660 (vcvtaq_x_u32_f32): Likewise.
21661 (vcvtnq_x_s16_f16): Likewise.
21662 (vcvtnq_x_s32_f32): Likewise.
21663 (vcvtnq_x_u16_f16): Likewise.
21664 (vcvtnq_x_u32_f32): Likewise.
21665 (vcvtpq_x_s16_f16): Likewise.
21666 (vcvtpq_x_s32_f32): Likewise.
21667 (vcvtpq_x_u16_f16): Likewise.
21668 (vcvtpq_x_u32_f32): Likewise.
21669 (vcvtmq_x_s16_f16): Likewise.
21670 (vcvtmq_x_s32_f32): Likewise.
21671 (vcvtmq_x_u16_f16): Likewise.
21672 (vcvtmq_x_u32_f32): Likewise.
21673 (vcvtbq_x_f32_f16): Likewise.
21674 (vcvttq_x_f32_f16): Likewise.
21675 (vcvtq_x_f16_u16): Likewise.
21676 (vcvtq_x_f16_s16): Likewise.
21677 (vcvtq_x_f32_s32): Likewise.
21678 (vcvtq_x_f32_u32): Likewise.
21679 (vcvtq_x_n_f16_s16): Likewise.
21680 (vcvtq_x_n_f16_u16): Likewise.
21681 (vcvtq_x_n_f32_s32): Likewise.
21682 (vcvtq_x_n_f32_u32): Likewise.
21683 (vcvtq_x_s16_f16): Likewise.
21684 (vcvtq_x_s32_f32): Likewise.
21685 (vcvtq_x_u16_f16): Likewise.
21686 (vcvtq_x_u32_f32): Likewise.
21687 (vcvtq_x_n_s16_f16): Likewise.
21688 (vcvtq_x_n_s32_f32): Likewise.
21689 (vcvtq_x_n_u16_f16): Likewise.
21690 (vcvtq_x_n_u32_f32): Likewise.
21691 (vrndq_x_f16): Likewise.
21692 (vrndq_x_f32): Likewise.
21693 (vrndnq_x_f16): Likewise.
21694 (vrndnq_x_f32): Likewise.
21695 (vrndmq_x_f16): Likewise.
21696 (vrndmq_x_f32): Likewise.
21697 (vrndpq_x_f16): Likewise.
21698 (vrndpq_x_f32): Likewise.
21699 (vrndaq_x_f16): Likewise.
21700 (vrndaq_x_f32): Likewise.
21701 (vrndxq_x_f16): Likewise.
21702 (vrndxq_x_f32): Likewise.
21703 (vandq_x_f16): Likewise.
21704 (vandq_x_f32): Likewise.
21705 (vbicq_x_f16): Likewise.
21706 (vbicq_x_f32): Likewise.
21707 (vbrsrq_x_n_f16): Likewise.
21708 (vbrsrq_x_n_f32): Likewise.
21709 (veorq_x_f16): Likewise.
21710 (veorq_x_f32): Likewise.
21711 (vornq_x_f16): Likewise.
21712 (vornq_x_f32): Likewise.
21713 (vorrq_x_f16): Likewise.
21714 (vorrq_x_f32): Likewise.
21715 (vrev32q_x_f16): Likewise.
21716 (vrev64q_x_f16): Likewise.
21717 (vrev64q_x_f32): Likewise.
21718 (__arm_vddupq_x_n_u8): Define intrinsic.
21719 (__arm_vddupq_x_n_u16): Likewise.
21720 (__arm_vddupq_x_n_u32): Likewise.
21721 (__arm_vddupq_x_wb_u8): Likewise.
21722 (__arm_vddupq_x_wb_u16): Likewise.
21723 (__arm_vddupq_x_wb_u32): Likewise.
21724 (__arm_vdwdupq_x_n_u8): Likewise.
21725 (__arm_vdwdupq_x_n_u16): Likewise.
21726 (__arm_vdwdupq_x_n_u32): Likewise.
21727 (__arm_vdwdupq_x_wb_u8): Likewise.
21728 (__arm_vdwdupq_x_wb_u16): Likewise.
21729 (__arm_vdwdupq_x_wb_u32): Likewise.
21730 (__arm_vidupq_x_n_u8): Likewise.
21731 (__arm_vidupq_x_n_u16): Likewise.
21732 (__arm_vidupq_x_n_u32): Likewise.
21733 (__arm_vidupq_x_wb_u8): Likewise.
21734 (__arm_vidupq_x_wb_u16): Likewise.
21735 (__arm_vidupq_x_wb_u32): Likewise.
21736 (__arm_viwdupq_x_n_u8): Likewise.
21737 (__arm_viwdupq_x_n_u16): Likewise.
21738 (__arm_viwdupq_x_n_u32): Likewise.
21739 (__arm_viwdupq_x_wb_u8): Likewise.
21740 (__arm_viwdupq_x_wb_u16): Likewise.
21741 (__arm_viwdupq_x_wb_u32): Likewise.
21742 (__arm_vdupq_x_n_s8): Likewise.
21743 (__arm_vdupq_x_n_s16): Likewise.
21744 (__arm_vdupq_x_n_s32): Likewise.
21745 (__arm_vdupq_x_n_u8): Likewise.
21746 (__arm_vdupq_x_n_u16): Likewise.
21747 (__arm_vdupq_x_n_u32): Likewise.
21748 (__arm_vminq_x_s8): Likewise.
21749 (__arm_vminq_x_s16): Likewise.
21750 (__arm_vminq_x_s32): Likewise.
21751 (__arm_vminq_x_u8): Likewise.
21752 (__arm_vminq_x_u16): Likewise.
21753 (__arm_vminq_x_u32): Likewise.
21754 (__arm_vmaxq_x_s8): Likewise.
21755 (__arm_vmaxq_x_s16): Likewise.
21756 (__arm_vmaxq_x_s32): Likewise.
21757 (__arm_vmaxq_x_u8): Likewise.
21758 (__arm_vmaxq_x_u16): Likewise.
21759 (__arm_vmaxq_x_u32): Likewise.
21760 (__arm_vabdq_x_s8): Likewise.
21761 (__arm_vabdq_x_s16): Likewise.
21762 (__arm_vabdq_x_s32): Likewise.
21763 (__arm_vabdq_x_u8): Likewise.
21764 (__arm_vabdq_x_u16): Likewise.
21765 (__arm_vabdq_x_u32): Likewise.
21766 (__arm_vabsq_x_s8): Likewise.
21767 (__arm_vabsq_x_s16): Likewise.
21768 (__arm_vabsq_x_s32): Likewise.
21769 (__arm_vaddq_x_s8): Likewise.
21770 (__arm_vaddq_x_s16): Likewise.
21771 (__arm_vaddq_x_s32): Likewise.
21772 (__arm_vaddq_x_n_s8): Likewise.
21773 (__arm_vaddq_x_n_s16): Likewise.
21774 (__arm_vaddq_x_n_s32): Likewise.
21775 (__arm_vaddq_x_u8): Likewise.
21776 (__arm_vaddq_x_u16): Likewise.
21777 (__arm_vaddq_x_u32): Likewise.
21778 (__arm_vaddq_x_n_u8): Likewise.
21779 (__arm_vaddq_x_n_u16): Likewise.
21780 (__arm_vaddq_x_n_u32): Likewise.
21781 (__arm_vclsq_x_s8): Likewise.
21782 (__arm_vclsq_x_s16): Likewise.
21783 (__arm_vclsq_x_s32): Likewise.
21784 (__arm_vclzq_x_s8): Likewise.
21785 (__arm_vclzq_x_s16): Likewise.
21786 (__arm_vclzq_x_s32): Likewise.
21787 (__arm_vclzq_x_u8): Likewise.
21788 (__arm_vclzq_x_u16): Likewise.
21789 (__arm_vclzq_x_u32): Likewise.
21790 (__arm_vnegq_x_s8): Likewise.
21791 (__arm_vnegq_x_s16): Likewise.
21792 (__arm_vnegq_x_s32): Likewise.
21793 (__arm_vmulhq_x_s8): Likewise.
21794 (__arm_vmulhq_x_s16): Likewise.
21795 (__arm_vmulhq_x_s32): Likewise.
21796 (__arm_vmulhq_x_u8): Likewise.
21797 (__arm_vmulhq_x_u16): Likewise.
21798 (__arm_vmulhq_x_u32): Likewise.
21799 (__arm_vmullbq_poly_x_p8): Likewise.
21800 (__arm_vmullbq_poly_x_p16): Likewise.
21801 (__arm_vmullbq_int_x_s8): Likewise.
21802 (__arm_vmullbq_int_x_s16): Likewise.
21803 (__arm_vmullbq_int_x_s32): Likewise.
21804 (__arm_vmullbq_int_x_u8): Likewise.
21805 (__arm_vmullbq_int_x_u16): Likewise.
21806 (__arm_vmullbq_int_x_u32): Likewise.
21807 (__arm_vmulltq_poly_x_p8): Likewise.
21808 (__arm_vmulltq_poly_x_p16): Likewise.
21809 (__arm_vmulltq_int_x_s8): Likewise.
21810 (__arm_vmulltq_int_x_s16): Likewise.
21811 (__arm_vmulltq_int_x_s32): Likewise.
21812 (__arm_vmulltq_int_x_u8): Likewise.
21813 (__arm_vmulltq_int_x_u16): Likewise.
21814 (__arm_vmulltq_int_x_u32): Likewise.
21815 (__arm_vmulq_x_s8): Likewise.
21816 (__arm_vmulq_x_s16): Likewise.
21817 (__arm_vmulq_x_s32): Likewise.
21818 (__arm_vmulq_x_n_s8): Likewise.
21819 (__arm_vmulq_x_n_s16): Likewise.
21820 (__arm_vmulq_x_n_s32): Likewise.
21821 (__arm_vmulq_x_u8): Likewise.
21822 (__arm_vmulq_x_u16): Likewise.
21823 (__arm_vmulq_x_u32): Likewise.
21824 (__arm_vmulq_x_n_u8): Likewise.
21825 (__arm_vmulq_x_n_u16): Likewise.
21826 (__arm_vmulq_x_n_u32): Likewise.
21827 (__arm_vsubq_x_s8): Likewise.
21828 (__arm_vsubq_x_s16): Likewise.
21829 (__arm_vsubq_x_s32): Likewise.
21830 (__arm_vsubq_x_n_s8): Likewise.
21831 (__arm_vsubq_x_n_s16): Likewise.
21832 (__arm_vsubq_x_n_s32): Likewise.
21833 (__arm_vsubq_x_u8): Likewise.
21834 (__arm_vsubq_x_u16): Likewise.
21835 (__arm_vsubq_x_u32): Likewise.
21836 (__arm_vsubq_x_n_u8): Likewise.
21837 (__arm_vsubq_x_n_u16): Likewise.
21838 (__arm_vsubq_x_n_u32): Likewise.
21839 (__arm_vcaddq_rot90_x_s8): Likewise.
21840 (__arm_vcaddq_rot90_x_s16): Likewise.
21841 (__arm_vcaddq_rot90_x_s32): Likewise.
21842 (__arm_vcaddq_rot90_x_u8): Likewise.
21843 (__arm_vcaddq_rot90_x_u16): Likewise.
21844 (__arm_vcaddq_rot90_x_u32): Likewise.
21845 (__arm_vcaddq_rot270_x_s8): Likewise.
21846 (__arm_vcaddq_rot270_x_s16): Likewise.
21847 (__arm_vcaddq_rot270_x_s32): Likewise.
21848 (__arm_vcaddq_rot270_x_u8): Likewise.
21849 (__arm_vcaddq_rot270_x_u16): Likewise.
21850 (__arm_vcaddq_rot270_x_u32): Likewise.
21851 (__arm_vhaddq_x_n_s8): Likewise.
21852 (__arm_vhaddq_x_n_s16): Likewise.
21853 (__arm_vhaddq_x_n_s32): Likewise.
21854 (__arm_vhaddq_x_n_u8): Likewise.
21855 (__arm_vhaddq_x_n_u16): Likewise.
21856 (__arm_vhaddq_x_n_u32): Likewise.
21857 (__arm_vhaddq_x_s8): Likewise.
21858 (__arm_vhaddq_x_s16): Likewise.
21859 (__arm_vhaddq_x_s32): Likewise.
21860 (__arm_vhaddq_x_u8): Likewise.
21861 (__arm_vhaddq_x_u16): Likewise.
21862 (__arm_vhaddq_x_u32): Likewise.
21863 (__arm_vhcaddq_rot90_x_s8): Likewise.
21864 (__arm_vhcaddq_rot90_x_s16): Likewise.
21865 (__arm_vhcaddq_rot90_x_s32): Likewise.
21866 (__arm_vhcaddq_rot270_x_s8): Likewise.
21867 (__arm_vhcaddq_rot270_x_s16): Likewise.
21868 (__arm_vhcaddq_rot270_x_s32): Likewise.
21869 (__arm_vhsubq_x_n_s8): Likewise.
21870 (__arm_vhsubq_x_n_s16): Likewise.
21871 (__arm_vhsubq_x_n_s32): Likewise.
21872 (__arm_vhsubq_x_n_u8): Likewise.
21873 (__arm_vhsubq_x_n_u16): Likewise.
21874 (__arm_vhsubq_x_n_u32): Likewise.
21875 (__arm_vhsubq_x_s8): Likewise.
21876 (__arm_vhsubq_x_s16): Likewise.
21877 (__arm_vhsubq_x_s32): Likewise.
21878 (__arm_vhsubq_x_u8): Likewise.
21879 (__arm_vhsubq_x_u16): Likewise.
21880 (__arm_vhsubq_x_u32): Likewise.
21881 (__arm_vrhaddq_x_s8): Likewise.
21882 (__arm_vrhaddq_x_s16): Likewise.
21883 (__arm_vrhaddq_x_s32): Likewise.
21884 (__arm_vrhaddq_x_u8): Likewise.
21885 (__arm_vrhaddq_x_u16): Likewise.
21886 (__arm_vrhaddq_x_u32): Likewise.
21887 (__arm_vrmulhq_x_s8): Likewise.
21888 (__arm_vrmulhq_x_s16): Likewise.
21889 (__arm_vrmulhq_x_s32): Likewise.
21890 (__arm_vrmulhq_x_u8): Likewise.
21891 (__arm_vrmulhq_x_u16): Likewise.
21892 (__arm_vrmulhq_x_u32): Likewise.
21893 (__arm_vandq_x_s8): Likewise.
21894 (__arm_vandq_x_s16): Likewise.
21895 (__arm_vandq_x_s32): Likewise.
21896 (__arm_vandq_x_u8): Likewise.
21897 (__arm_vandq_x_u16): Likewise.
21898 (__arm_vandq_x_u32): Likewise.
21899 (__arm_vbicq_x_s8): Likewise.
21900 (__arm_vbicq_x_s16): Likewise.
21901 (__arm_vbicq_x_s32): Likewise.
21902 (__arm_vbicq_x_u8): Likewise.
21903 (__arm_vbicq_x_u16): Likewise.
21904 (__arm_vbicq_x_u32): Likewise.
21905 (__arm_vbrsrq_x_n_s8): Likewise.
21906 (__arm_vbrsrq_x_n_s16): Likewise.
21907 (__arm_vbrsrq_x_n_s32): Likewise.
21908 (__arm_vbrsrq_x_n_u8): Likewise.
21909 (__arm_vbrsrq_x_n_u16): Likewise.
21910 (__arm_vbrsrq_x_n_u32): Likewise.
21911 (__arm_veorq_x_s8): Likewise.
21912 (__arm_veorq_x_s16): Likewise.
21913 (__arm_veorq_x_s32): Likewise.
21914 (__arm_veorq_x_u8): Likewise.
21915 (__arm_veorq_x_u16): Likewise.
21916 (__arm_veorq_x_u32): Likewise.
21917 (__arm_vmovlbq_x_s8): Likewise.
21918 (__arm_vmovlbq_x_s16): Likewise.
21919 (__arm_vmovlbq_x_u8): Likewise.
21920 (__arm_vmovlbq_x_u16): Likewise.
21921 (__arm_vmovltq_x_s8): Likewise.
21922 (__arm_vmovltq_x_s16): Likewise.
21923 (__arm_vmovltq_x_u8): Likewise.
21924 (__arm_vmovltq_x_u16): Likewise.
21925 (__arm_vmvnq_x_s8): Likewise.
21926 (__arm_vmvnq_x_s16): Likewise.
21927 (__arm_vmvnq_x_s32): Likewise.
21928 (__arm_vmvnq_x_u8): Likewise.
21929 (__arm_vmvnq_x_u16): Likewise.
21930 (__arm_vmvnq_x_u32): Likewise.
21931 (__arm_vmvnq_x_n_s16): Likewise.
21932 (__arm_vmvnq_x_n_s32): Likewise.
21933 (__arm_vmvnq_x_n_u16): Likewise.
21934 (__arm_vmvnq_x_n_u32): Likewise.
21935 (__arm_vornq_x_s8): Likewise.
21936 (__arm_vornq_x_s16): Likewise.
21937 (__arm_vornq_x_s32): Likewise.
21938 (__arm_vornq_x_u8): Likewise.
21939 (__arm_vornq_x_u16): Likewise.
21940 (__arm_vornq_x_u32): Likewise.
21941 (__arm_vorrq_x_s8): Likewise.
21942 (__arm_vorrq_x_s16): Likewise.
21943 (__arm_vorrq_x_s32): Likewise.
21944 (__arm_vorrq_x_u8): Likewise.
21945 (__arm_vorrq_x_u16): Likewise.
21946 (__arm_vorrq_x_u32): Likewise.
21947 (__arm_vrev16q_x_s8): Likewise.
21948 (__arm_vrev16q_x_u8): Likewise.
21949 (__arm_vrev32q_x_s8): Likewise.
21950 (__arm_vrev32q_x_s16): Likewise.
21951 (__arm_vrev32q_x_u8): Likewise.
21952 (__arm_vrev32q_x_u16): Likewise.
21953 (__arm_vrev64q_x_s8): Likewise.
21954 (__arm_vrev64q_x_s16): Likewise.
21955 (__arm_vrev64q_x_s32): Likewise.
21956 (__arm_vrev64q_x_u8): Likewise.
21957 (__arm_vrev64q_x_u16): Likewise.
21958 (__arm_vrev64q_x_u32): Likewise.
21959 (__arm_vrshlq_x_s8): Likewise.
21960 (__arm_vrshlq_x_s16): Likewise.
21961 (__arm_vrshlq_x_s32): Likewise.
21962 (__arm_vrshlq_x_u8): Likewise.
21963 (__arm_vrshlq_x_u16): Likewise.
21964 (__arm_vrshlq_x_u32): Likewise.
21965 (__arm_vshllbq_x_n_s8): Likewise.
21966 (__arm_vshllbq_x_n_s16): Likewise.
21967 (__arm_vshllbq_x_n_u8): Likewise.
21968 (__arm_vshllbq_x_n_u16): Likewise.
21969 (__arm_vshlltq_x_n_s8): Likewise.
21970 (__arm_vshlltq_x_n_s16): Likewise.
21971 (__arm_vshlltq_x_n_u8): Likewise.
21972 (__arm_vshlltq_x_n_u16): Likewise.
21973 (__arm_vshlq_x_s8): Likewise.
21974 (__arm_vshlq_x_s16): Likewise.
21975 (__arm_vshlq_x_s32): Likewise.
21976 (__arm_vshlq_x_u8): Likewise.
21977 (__arm_vshlq_x_u16): Likewise.
21978 (__arm_vshlq_x_u32): Likewise.
21979 (__arm_vshlq_x_n_s8): Likewise.
21980 (__arm_vshlq_x_n_s16): Likewise.
21981 (__arm_vshlq_x_n_s32): Likewise.
21982 (__arm_vshlq_x_n_u8): Likewise.
21983 (__arm_vshlq_x_n_u16): Likewise.
21984 (__arm_vshlq_x_n_u32): Likewise.
21985 (__arm_vrshrq_x_n_s8): Likewise.
21986 (__arm_vrshrq_x_n_s16): Likewise.
21987 (__arm_vrshrq_x_n_s32): Likewise.
21988 (__arm_vrshrq_x_n_u8): Likewise.
21989 (__arm_vrshrq_x_n_u16): Likewise.
21990 (__arm_vrshrq_x_n_u32): Likewise.
21991 (__arm_vshrq_x_n_s8): Likewise.
21992 (__arm_vshrq_x_n_s16): Likewise.
21993 (__arm_vshrq_x_n_s32): Likewise.
21994 (__arm_vshrq_x_n_u8): Likewise.
21995 (__arm_vshrq_x_n_u16): Likewise.
21996 (__arm_vshrq_x_n_u32): Likewise.
21997 (__arm_vdupq_x_n_f16): Likewise.
21998 (__arm_vdupq_x_n_f32): Likewise.
21999 (__arm_vminnmq_x_f16): Likewise.
22000 (__arm_vminnmq_x_f32): Likewise.
22001 (__arm_vmaxnmq_x_f16): Likewise.
22002 (__arm_vmaxnmq_x_f32): Likewise.
22003 (__arm_vabdq_x_f16): Likewise.
22004 (__arm_vabdq_x_f32): Likewise.
22005 (__arm_vabsq_x_f16): Likewise.
22006 (__arm_vabsq_x_f32): Likewise.
22007 (__arm_vaddq_x_f16): Likewise.
22008 (__arm_vaddq_x_f32): Likewise.
22009 (__arm_vaddq_x_n_f16): Likewise.
22010 (__arm_vaddq_x_n_f32): Likewise.
22011 (__arm_vnegq_x_f16): Likewise.
22012 (__arm_vnegq_x_f32): Likewise.
22013 (__arm_vmulq_x_f16): Likewise.
22014 (__arm_vmulq_x_f32): Likewise.
22015 (__arm_vmulq_x_n_f16): Likewise.
22016 (__arm_vmulq_x_n_f32): Likewise.
22017 (__arm_vsubq_x_f16): Likewise.
22018 (__arm_vsubq_x_f32): Likewise.
22019 (__arm_vsubq_x_n_f16): Likewise.
22020 (__arm_vsubq_x_n_f32): Likewise.
22021 (__arm_vcaddq_rot90_x_f16): Likewise.
22022 (__arm_vcaddq_rot90_x_f32): Likewise.
22023 (__arm_vcaddq_rot270_x_f16): Likewise.
22024 (__arm_vcaddq_rot270_x_f32): Likewise.
22025 (__arm_vcmulq_x_f16): Likewise.
22026 (__arm_vcmulq_x_f32): Likewise.
22027 (__arm_vcmulq_rot90_x_f16): Likewise.
22028 (__arm_vcmulq_rot90_x_f32): Likewise.
22029 (__arm_vcmulq_rot180_x_f16): Likewise.
22030 (__arm_vcmulq_rot180_x_f32): Likewise.
22031 (__arm_vcmulq_rot270_x_f16): Likewise.
22032 (__arm_vcmulq_rot270_x_f32): Likewise.
22033 (__arm_vcvtaq_x_s16_f16): Likewise.
22034 (__arm_vcvtaq_x_s32_f32): Likewise.
22035 (__arm_vcvtaq_x_u16_f16): Likewise.
22036 (__arm_vcvtaq_x_u32_f32): Likewise.
22037 (__arm_vcvtnq_x_s16_f16): Likewise.
22038 (__arm_vcvtnq_x_s32_f32): Likewise.
22039 (__arm_vcvtnq_x_u16_f16): Likewise.
22040 (__arm_vcvtnq_x_u32_f32): Likewise.
22041 (__arm_vcvtpq_x_s16_f16): Likewise.
22042 (__arm_vcvtpq_x_s32_f32): Likewise.
22043 (__arm_vcvtpq_x_u16_f16): Likewise.
22044 (__arm_vcvtpq_x_u32_f32): Likewise.
22045 (__arm_vcvtmq_x_s16_f16): Likewise.
22046 (__arm_vcvtmq_x_s32_f32): Likewise.
22047 (__arm_vcvtmq_x_u16_f16): Likewise.
22048 (__arm_vcvtmq_x_u32_f32): Likewise.
22049 (__arm_vcvtbq_x_f32_f16): Likewise.
22050 (__arm_vcvttq_x_f32_f16): Likewise.
22051 (__arm_vcvtq_x_f16_u16): Likewise.
22052 (__arm_vcvtq_x_f16_s16): Likewise.
22053 (__arm_vcvtq_x_f32_s32): Likewise.
22054 (__arm_vcvtq_x_f32_u32): Likewise.
22055 (__arm_vcvtq_x_n_f16_s16): Likewise.
22056 (__arm_vcvtq_x_n_f16_u16): Likewise.
22057 (__arm_vcvtq_x_n_f32_s32): Likewise.
22058 (__arm_vcvtq_x_n_f32_u32): Likewise.
22059 (__arm_vcvtq_x_s16_f16): Likewise.
22060 (__arm_vcvtq_x_s32_f32): Likewise.
22061 (__arm_vcvtq_x_u16_f16): Likewise.
22062 (__arm_vcvtq_x_u32_f32): Likewise.
22063 (__arm_vcvtq_x_n_s16_f16): Likewise.
22064 (__arm_vcvtq_x_n_s32_f32): Likewise.
22065 (__arm_vcvtq_x_n_u16_f16): Likewise.
22066 (__arm_vcvtq_x_n_u32_f32): Likewise.
22067 (__arm_vrndq_x_f16): Likewise.
22068 (__arm_vrndq_x_f32): Likewise.
22069 (__arm_vrndnq_x_f16): Likewise.
22070 (__arm_vrndnq_x_f32): Likewise.
22071 (__arm_vrndmq_x_f16): Likewise.
22072 (__arm_vrndmq_x_f32): Likewise.
22073 (__arm_vrndpq_x_f16): Likewise.
22074 (__arm_vrndpq_x_f32): Likewise.
22075 (__arm_vrndaq_x_f16): Likewise.
22076 (__arm_vrndaq_x_f32): Likewise.
22077 (__arm_vrndxq_x_f16): Likewise.
22078 (__arm_vrndxq_x_f32): Likewise.
22079 (__arm_vandq_x_f16): Likewise.
22080 (__arm_vandq_x_f32): Likewise.
22081 (__arm_vbicq_x_f16): Likewise.
22082 (__arm_vbicq_x_f32): Likewise.
22083 (__arm_vbrsrq_x_n_f16): Likewise.
22084 (__arm_vbrsrq_x_n_f32): Likewise.
22085 (__arm_veorq_x_f16): Likewise.
22086 (__arm_veorq_x_f32): Likewise.
22087 (__arm_vornq_x_f16): Likewise.
22088 (__arm_vornq_x_f32): Likewise.
22089 (__arm_vorrq_x_f16): Likewise.
22090 (__arm_vorrq_x_f32): Likewise.
22091 (__arm_vrev32q_x_f16): Likewise.
22092 (__arm_vrev64q_x_f16): Likewise.
22093 (__arm_vrev64q_x_f32): Likewise.
22094 (vabdq_x): Define polymorphic variant.
22095 (vabsq_x): Likewise.
22096 (vaddq_x): Likewise.
22097 (vandq_x): Likewise.
22098 (vbicq_x): Likewise.
22099 (vbrsrq_x): Likewise.
22100 (vcaddq_rot270_x): Likewise.
22101 (vcaddq_rot90_x): Likewise.
22102 (vcmulq_rot180_x): Likewise.
22103 (vcmulq_rot270_x): Likewise.
22104 (vcmulq_x): Likewise.
22105 (vcvtq_x): Likewise.
22106 (vcvtq_x_n): Likewise.
22107 (vcvtnq_m): Likewise.
22108 (veorq_x): Likewise.
22109 (vmaxnmq_x): Likewise.
22110 (vminnmq_x): Likewise.
22111 (vmulq_x): Likewise.
22112 (vnegq_x): Likewise.
22113 (vornq_x): Likewise.
22114 (vorrq_x): Likewise.
22115 (vrev32q_x): Likewise.
22116 (vrev64q_x): Likewise.
22117 (vrndaq_x): Likewise.
22118 (vrndmq_x): Likewise.
22119 (vrndnq_x): Likewise.
22120 (vrndpq_x): Likewise.
22121 (vrndq_x): Likewise.
22122 (vrndxq_x): Likewise.
22123 (vsubq_x): Likewise.
22124 (vcmulq_rot90_x): Likewise.
22125 (vadciq): Likewise.
22126 (vclsq_x): Likewise.
22127 (vclzq_x): Likewise.
22128 (vhaddq_x): Likewise.
22129 (vhcaddq_rot270_x): Likewise.
22130 (vhcaddq_rot90_x): Likewise.
22131 (vhsubq_x): Likewise.
22132 (vmaxq_x): Likewise.
22133 (vminq_x): Likewise.
22134 (vmovlbq_x): Likewise.
22135 (vmovltq_x): Likewise.
22136 (vmulhq_x): Likewise.
22137 (vmullbq_int_x): Likewise.
22138 (vmullbq_poly_x): Likewise.
22139 (vmulltq_int_x): Likewise.
22140 (vmulltq_poly_x): Likewise.
22141 (vmvnq_x): Likewise.
22142 (vrev16q_x): Likewise.
22143 (vrhaddq_x): Likewise.
22144 (vrmulhq_x): Likewise.
22145 (vrshlq_x): Likewise.
22146 (vrshrq_x): Likewise.
22147 (vshllbq_x): Likewise.
22148 (vshlltq_x): Likewise.
22149 (vshlq_x_n): Likewise.
22150 (vshlq_x): Likewise.
22151 (vdwdupq_x_u8): Likewise.
22152 (vdwdupq_x_u16): Likewise.
22153 (vdwdupq_x_u32): Likewise.
22154 (viwdupq_x_u8): Likewise.
22155 (viwdupq_x_u16): Likewise.
22156 (viwdupq_x_u32): Likewise.
22157 (vidupq_x_u8): Likewise.
22158 (vddupq_x_u8): Likewise.
22159 (vidupq_x_u16): Likewise.
22160 (vddupq_x_u16): Likewise.
22161 (vidupq_x_u32): Likewise.
22162 (vddupq_x_u32): Likewise.
22163 (vshrq_x): Likewise.
22164
22165 2020-03-20 Richard Biener <rguenther@suse.de>
22166
22167 * tree-vect-slp.c (vect_analyze_slp_instance): Push the stmts
22168 to vectorize for CTOR defs.
22169
22170 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22171 Andre Vieira <andre.simoesdiasvieira@arm.com>
22172 Mihail Ionescu <mihail.ionescu@arm.com>
22173
22174 * config/arm/arm-builtins.c (LDRGBWBS_QUALIFIERS): Define builtin
22175 qualifier.
22176 (LDRGBWBU_QUALIFIERS): Likewise.
22177 (LDRGBWBS_Z_QUALIFIERS): Likewise.
22178 (LDRGBWBU_Z_QUALIFIERS): Likewise.
22179 (STRSBWBS_QUALIFIERS): Likewise.
22180 (STRSBWBU_QUALIFIERS): Likewise.
22181 (STRSBWBS_P_QUALIFIERS): Likewise.
22182 (STRSBWBU_P_QUALIFIERS): Likewise.
22183 * config/arm/arm_mve.h (vldrdq_gather_base_wb_s64): Define macro.
22184 (vldrdq_gather_base_wb_u64): Likewise.
22185 (vldrdq_gather_base_wb_z_s64): Likewise.
22186 (vldrdq_gather_base_wb_z_u64): Likewise.
22187 (vldrwq_gather_base_wb_f32): Likewise.
22188 (vldrwq_gather_base_wb_s32): Likewise.
22189 (vldrwq_gather_base_wb_u32): Likewise.
22190 (vldrwq_gather_base_wb_z_f32): Likewise.
22191 (vldrwq_gather_base_wb_z_s32): Likewise.
22192 (vldrwq_gather_base_wb_z_u32): Likewise.
22193 (vstrdq_scatter_base_wb_p_s64): Likewise.
22194 (vstrdq_scatter_base_wb_p_u64): Likewise.
22195 (vstrdq_scatter_base_wb_s64): Likewise.
22196 (vstrdq_scatter_base_wb_u64): Likewise.
22197 (vstrwq_scatter_base_wb_p_s32): Likewise.
22198 (vstrwq_scatter_base_wb_p_f32): Likewise.
22199 (vstrwq_scatter_base_wb_p_u32): Likewise.
22200 (vstrwq_scatter_base_wb_s32): Likewise.
22201 (vstrwq_scatter_base_wb_u32): Likewise.
22202 (vstrwq_scatter_base_wb_f32): Likewise.
22203 (__arm_vldrdq_gather_base_wb_s64): Define intrinsic.
22204 (__arm_vldrdq_gather_base_wb_u64): Likewise.
22205 (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
22206 (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
22207 (__arm_vldrwq_gather_base_wb_s32): Likewise.
22208 (__arm_vldrwq_gather_base_wb_u32): Likewise.
22209 (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
22210 (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
22211 (__arm_vstrdq_scatter_base_wb_s64): Likewise.
22212 (__arm_vstrdq_scatter_base_wb_u64): Likewise.
22213 (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
22214 (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
22215 (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
22216 (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
22217 (__arm_vstrwq_scatter_base_wb_s32): Likewise.
22218 (__arm_vstrwq_scatter_base_wb_u32): Likewise.
22219 (__arm_vldrwq_gather_base_wb_f32): Likewise.
22220 (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
22221 (__arm_vstrwq_scatter_base_wb_f32): Likewise.
22222 (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
22223 (vstrwq_scatter_base_wb): Define polymorphic variant.
22224 (vstrwq_scatter_base_wb_p): Likewise.
22225 (vstrdq_scatter_base_wb_p): Likewise.
22226 (vstrdq_scatter_base_wb): Likewise.
22227 * config/arm/arm_mve_builtins.def (LDRGBWBS_QUALIFIERS): Use builtin
22228 qualifier.
22229 * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Define RTL
22230 pattern.
22231 (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
22232 (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Likewise.
22233 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Likewise.
22234 (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
22235 (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Likewise.
22236 (mve_vstrwq_scatter_base_wb_fv4sf): Likewise.
22237 (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
22238 (mve_vstrwq_scatter_base_wb_fv4sf_insn): Likewise.
22239 (mve_vstrwq_scatter_base_wb_p_fv4sf): Likewise.
22240 (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
22241 (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Likewise.
22242 (mve_vstrdq_scatter_base_wb_<supf>v2di): Likewise.
22243 (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
22244 (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Likewise.
22245 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Likewise.
22246 (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
22247 (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Likewise.
22248 (mve_vldrwq_gather_base_wb_<supf>v4si): Likewise.
22249 (mve_vldrwq_gather_base_wb_<supf>v4si_insn): Likewise.
22250 (mve_vldrwq_gather_base_wb_z_<supf>v4si): Likewise.
22251 (mve_vldrwq_gather_base_wb_z_<supf>v4si_insn): Likewise.
22252 (mve_vldrwq_gather_base_wb_fv4sf): Likewise.
22253 (mve_vldrwq_gather_base_wb_fv4sf_insn): Likewise.
22254 (mve_vldrwq_gather_base_wb_z_fv4sf): Likewise.
22255 (mve_vldrwq_gather_base_wb_z_fv4sf_insn): Likewise.
22256 (mve_vldrdq_gather_base_wb_<supf>v2di): Likewise.
22257 (mve_vldrdq_gather_base_wb_<supf>v2di_insn): Likewise.
22258 (mve_vldrdq_gather_base_wb_z_<supf>v2di): Likewise.
22259 (mve_vldrdq_gather_base_wb_z_<supf>v2di_insn): Likewise.
22260
22261 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22262 Andre Vieira <andre.simoesdiasvieira@arm.com>
22263 Mihail Ionescu <mihail.ionescu@arm.com>
22264
22265 * config/arm/arm-builtins.c
22266 (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Define quinary
22267 builtin qualifier.
22268 * config/arm/arm_mve.h (vddupq_m_n_u8): Define macro.
22269 (vddupq_m_n_u32): Likewise.
22270 (vddupq_m_n_u16): Likewise.
22271 (vddupq_m_wb_u8): Likewise.
22272 (vddupq_m_wb_u16): Likewise.
22273 (vddupq_m_wb_u32): Likewise.
22274 (vddupq_n_u8): Likewise.
22275 (vddupq_n_u32): Likewise.
22276 (vddupq_n_u16): Likewise.
22277 (vddupq_wb_u8): Likewise.
22278 (vddupq_wb_u16): Likewise.
22279 (vddupq_wb_u32): Likewise.
22280 (vdwdupq_m_n_u8): Likewise.
22281 (vdwdupq_m_n_u32): Likewise.
22282 (vdwdupq_m_n_u16): Likewise.
22283 (vdwdupq_m_wb_u8): Likewise.
22284 (vdwdupq_m_wb_u32): Likewise.
22285 (vdwdupq_m_wb_u16): Likewise.
22286 (vdwdupq_n_u8): Likewise.
22287 (vdwdupq_n_u32): Likewise.
22288 (vdwdupq_n_u16): Likewise.
22289 (vdwdupq_wb_u8): Likewise.
22290 (vdwdupq_wb_u32): Likewise.
22291 (vdwdupq_wb_u16): Likewise.
22292 (vidupq_m_n_u8): Likewise.
22293 (vidupq_m_n_u32): Likewise.
22294 (vidupq_m_n_u16): Likewise.
22295 (vidupq_m_wb_u8): Likewise.
22296 (vidupq_m_wb_u16): Likewise.
22297 (vidupq_m_wb_u32): Likewise.
22298 (vidupq_n_u8): Likewise.
22299 (vidupq_n_u32): Likewise.
22300 (vidupq_n_u16): Likewise.
22301 (vidupq_wb_u8): Likewise.
22302 (vidupq_wb_u16): Likewise.
22303 (vidupq_wb_u32): Likewise.
22304 (viwdupq_m_n_u8): Likewise.
22305 (viwdupq_m_n_u32): Likewise.
22306 (viwdupq_m_n_u16): Likewise.
22307 (viwdupq_m_wb_u8): Likewise.
22308 (viwdupq_m_wb_u32): Likewise.
22309 (viwdupq_m_wb_u16): Likewise.
22310 (viwdupq_n_u8): Likewise.
22311 (viwdupq_n_u32): Likewise.
22312 (viwdupq_n_u16): Likewise.
22313 (viwdupq_wb_u8): Likewise.
22314 (viwdupq_wb_u32): Likewise.
22315 (viwdupq_wb_u16): Likewise.
22316 (__arm_vddupq_m_n_u8): Define intrinsic.
22317 (__arm_vddupq_m_n_u32): Likewise.
22318 (__arm_vddupq_m_n_u16): Likewise.
22319 (__arm_vddupq_m_wb_u8): Likewise.
22320 (__arm_vddupq_m_wb_u16): Likewise.
22321 (__arm_vddupq_m_wb_u32): Likewise.
22322 (__arm_vddupq_n_u8): Likewise.
22323 (__arm_vddupq_n_u32): Likewise.
22324 (__arm_vddupq_n_u16): Likewise.
22325 (__arm_vdwdupq_m_n_u8): Likewise.
22326 (__arm_vdwdupq_m_n_u32): Likewise.
22327 (__arm_vdwdupq_m_n_u16): Likewise.
22328 (__arm_vdwdupq_m_wb_u8): Likewise.
22329 (__arm_vdwdupq_m_wb_u32): Likewise.
22330 (__arm_vdwdupq_m_wb_u16): Likewise.
22331 (__arm_vdwdupq_n_u8): Likewise.
22332 (__arm_vdwdupq_n_u32): Likewise.
22333 (__arm_vdwdupq_n_u16): Likewise.
22334 (__arm_vdwdupq_wb_u8): Likewise.
22335 (__arm_vdwdupq_wb_u32): Likewise.
22336 (__arm_vdwdupq_wb_u16): Likewise.
22337 (__arm_vidupq_m_n_u8): Likewise.
22338 (__arm_vidupq_m_n_u32): Likewise.
22339 (__arm_vidupq_m_n_u16): Likewise.
22340 (__arm_vidupq_n_u8): Likewise.
22341 (__arm_vidupq_m_wb_u8): Likewise.
22342 (__arm_vidupq_m_wb_u16): Likewise.
22343 (__arm_vidupq_m_wb_u32): Likewise.
22344 (__arm_vidupq_n_u32): Likewise.
22345 (__arm_vidupq_n_u16): Likewise.
22346 (__arm_vidupq_wb_u8): Likewise.
22347 (__arm_vidupq_wb_u16): Likewise.
22348 (__arm_vidupq_wb_u32): Likewise.
22349 (__arm_vddupq_wb_u8): Likewise.
22350 (__arm_vddupq_wb_u16): Likewise.
22351 (__arm_vddupq_wb_u32): Likewise.
22352 (__arm_viwdupq_m_n_u8): Likewise.
22353 (__arm_viwdupq_m_n_u32): Likewise.
22354 (__arm_viwdupq_m_n_u16): Likewise.
22355 (__arm_viwdupq_m_wb_u8): Likewise.
22356 (__arm_viwdupq_m_wb_u32): Likewise.
22357 (__arm_viwdupq_m_wb_u16): Likewise.
22358 (__arm_viwdupq_n_u8): Likewise.
22359 (__arm_viwdupq_n_u32): Likewise.
22360 (__arm_viwdupq_n_u16): Likewise.
22361 (__arm_viwdupq_wb_u8): Likewise.
22362 (__arm_viwdupq_wb_u32): Likewise.
22363 (__arm_viwdupq_wb_u16): Likewise.
22364 (vidupq_m): Define polymorphic variant.
22365 (vddupq_m): Likewise.
22366 (vidupq_u16): Likewise.
22367 (vidupq_u32): Likewise.
22368 (vidupq_u8): Likewise.
22369 (vddupq_u16): Likewise.
22370 (vddupq_u32): Likewise.
22371 (vddupq_u8): Likewise.
22372 (viwdupq_m): Likewise.
22373 (viwdupq_u16): Likewise.
22374 (viwdupq_u32): Likewise.
22375 (viwdupq_u8): Likewise.
22376 (vdwdupq_m): Likewise.
22377 (vdwdupq_u16): Likewise.
22378 (vdwdupq_u32): Likewise.
22379 (vdwdupq_u8): Likewise.
22380 * config/arm/arm_mve_builtins.def
22381 (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Use builtin
22382 qualifier.
22383 * config/arm/mve.md (mve_vidupq_n_u<mode>): Define RTL pattern.
22384 (mve_vidupq_u<mode>_insn): Likewise.
22385 (mve_vidupq_m_n_u<mode>): Likewise.
22386 (mve_vidupq_m_wb_u<mode>_insn): Likewise.
22387 (mve_vddupq_n_u<mode>): Likewise.
22388 (mve_vddupq_u<mode>_insn): Likewise.
22389 (mve_vddupq_m_n_u<mode>): Likewise.
22390 (mve_vddupq_m_wb_u<mode>_insn): Likewise.
22391 (mve_vdwdupq_n_u<mode>): Likewise.
22392 (mve_vdwdupq_wb_u<mode>): Likewise.
22393 (mve_vdwdupq_wb_u<mode>_insn): Likewise.
22394 (mve_vdwdupq_m_n_u<mode>): Likewise.
22395 (mve_vdwdupq_m_wb_u<mode>): Likewise.
22396 (mve_vdwdupq_m_wb_u<mode>_insn): Likewise.
22397 (mve_viwdupq_n_u<mode>): Likewise.
22398 (mve_viwdupq_wb_u<mode>): Likewise.
22399 (mve_viwdupq_wb_u<mode>_insn): Likewise.
22400 (mve_viwdupq_m_n_u<mode>): Likewise.
22401 (mve_viwdupq_m_wb_u<mode>): Likewise.
22402 (mve_viwdupq_m_wb_u<mode>_insn): Likewise.
22403
22404 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22405
22406 * config/arm/arm_mve.h (vreinterpretq_s16_s32): Define macro.
22407 (vreinterpretq_s16_s64): Likewise.
22408 (vreinterpretq_s16_s8): Likewise.
22409 (vreinterpretq_s16_u16): Likewise.
22410 (vreinterpretq_s16_u32): Likewise.
22411 (vreinterpretq_s16_u64): Likewise.
22412 (vreinterpretq_s16_u8): Likewise.
22413 (vreinterpretq_s32_s16): Likewise.
22414 (vreinterpretq_s32_s64): Likewise.
22415 (vreinterpretq_s32_s8): Likewise.
22416 (vreinterpretq_s32_u16): Likewise.
22417 (vreinterpretq_s32_u32): Likewise.
22418 (vreinterpretq_s32_u64): Likewise.
22419 (vreinterpretq_s32_u8): Likewise.
22420 (vreinterpretq_s64_s16): Likewise.
22421 (vreinterpretq_s64_s32): Likewise.
22422 (vreinterpretq_s64_s8): Likewise.
22423 (vreinterpretq_s64_u16): Likewise.
22424 (vreinterpretq_s64_u32): Likewise.
22425 (vreinterpretq_s64_u64): Likewise.
22426 (vreinterpretq_s64_u8): Likewise.
22427 (vreinterpretq_s8_s16): Likewise.
22428 (vreinterpretq_s8_s32): Likewise.
22429 (vreinterpretq_s8_s64): Likewise.
22430 (vreinterpretq_s8_u16): Likewise.
22431 (vreinterpretq_s8_u32): Likewise.
22432 (vreinterpretq_s8_u64): Likewise.
22433 (vreinterpretq_s8_u8): Likewise.
22434 (vreinterpretq_u16_s16): Likewise.
22435 (vreinterpretq_u16_s32): Likewise.
22436 (vreinterpretq_u16_s64): Likewise.
22437 (vreinterpretq_u16_s8): Likewise.
22438 (vreinterpretq_u16_u32): Likewise.
22439 (vreinterpretq_u16_u64): Likewise.
22440 (vreinterpretq_u16_u8): Likewise.
22441 (vreinterpretq_u32_s16): Likewise.
22442 (vreinterpretq_u32_s32): Likewise.
22443 (vreinterpretq_u32_s64): Likewise.
22444 (vreinterpretq_u32_s8): Likewise.
22445 (vreinterpretq_u32_u16): Likewise.
22446 (vreinterpretq_u32_u64): Likewise.
22447 (vreinterpretq_u32_u8): Likewise.
22448 (vreinterpretq_u64_s16): Likewise.
22449 (vreinterpretq_u64_s32): Likewise.
22450 (vreinterpretq_u64_s64): Likewise.
22451 (vreinterpretq_u64_s8): Likewise.
22452 (vreinterpretq_u64_u16): Likewise.
22453 (vreinterpretq_u64_u32): Likewise.
22454 (vreinterpretq_u64_u8): Likewise.
22455 (vreinterpretq_u8_s16): Likewise.
22456 (vreinterpretq_u8_s32): Likewise.
22457 (vreinterpretq_u8_s64): Likewise.
22458 (vreinterpretq_u8_s8): Likewise.
22459 (vreinterpretq_u8_u16): Likewise.
22460 (vreinterpretq_u8_u32): Likewise.
22461 (vreinterpretq_u8_u64): Likewise.
22462 (vreinterpretq_s32_f16): Likewise.
22463 (vreinterpretq_s32_f32): Likewise.
22464 (vreinterpretq_u16_f16): Likewise.
22465 (vreinterpretq_u16_f32): Likewise.
22466 (vreinterpretq_u32_f16): Likewise.
22467 (vreinterpretq_u32_f32): Likewise.
22468 (vreinterpretq_u64_f16): Likewise.
22469 (vreinterpretq_u64_f32): Likewise.
22470 (vreinterpretq_u8_f16): Likewise.
22471 (vreinterpretq_u8_f32): Likewise.
22472 (vreinterpretq_f16_f32): Likewise.
22473 (vreinterpretq_f16_s16): Likewise.
22474 (vreinterpretq_f16_s32): Likewise.
22475 (vreinterpretq_f16_s64): Likewise.
22476 (vreinterpretq_f16_s8): Likewise.
22477 (vreinterpretq_f16_u16): Likewise.
22478 (vreinterpretq_f16_u32): Likewise.
22479 (vreinterpretq_f16_u64): Likewise.
22480 (vreinterpretq_f16_u8): Likewise.
22481 (vreinterpretq_f32_f16): Likewise.
22482 (vreinterpretq_f32_s16): Likewise.
22483 (vreinterpretq_f32_s32): Likewise.
22484 (vreinterpretq_f32_s64): Likewise.
22485 (vreinterpretq_f32_s8): Likewise.
22486 (vreinterpretq_f32_u16): Likewise.
22487 (vreinterpretq_f32_u32): Likewise.
22488 (vreinterpretq_f32_u64): Likewise.
22489 (vreinterpretq_f32_u8): Likewise.
22490 (vreinterpretq_s16_f16): Likewise.
22491 (vreinterpretq_s16_f32): Likewise.
22492 (vreinterpretq_s64_f16): Likewise.
22493 (vreinterpretq_s64_f32): Likewise.
22494 (vreinterpretq_s8_f16): Likewise.
22495 (vreinterpretq_s8_f32): Likewise.
22496 (vuninitializedq_u8): Likewise.
22497 (vuninitializedq_u16): Likewise.
22498 (vuninitializedq_u32): Likewise.
22499 (vuninitializedq_u64): Likewise.
22500 (vuninitializedq_s8): Likewise.
22501 (vuninitializedq_s16): Likewise.
22502 (vuninitializedq_s32): Likewise.
22503 (vuninitializedq_s64): Likewise.
22504 (vuninitializedq_f16): Likewise.
22505 (vuninitializedq_f32): Likewise.
22506 (__arm_vuninitializedq_u8): Define intrinsic.
22507 (__arm_vuninitializedq_u16): Likewise.
22508 (__arm_vuninitializedq_u32): Likewise.
22509 (__arm_vuninitializedq_u64): Likewise.
22510 (__arm_vuninitializedq_s8): Likewise.
22511 (__arm_vuninitializedq_s16): Likewise.
22512 (__arm_vuninitializedq_s32): Likewise.
22513 (__arm_vuninitializedq_s64): Likewise.
22514 (__arm_vreinterpretq_s16_s32): Likewise.
22515 (__arm_vreinterpretq_s16_s64): Likewise.
22516 (__arm_vreinterpretq_s16_s8): Likewise.
22517 (__arm_vreinterpretq_s16_u16): Likewise.
22518 (__arm_vreinterpretq_s16_u32): Likewise.
22519 (__arm_vreinterpretq_s16_u64): Likewise.
22520 (__arm_vreinterpretq_s16_u8): Likewise.
22521 (__arm_vreinterpretq_s32_s16): Likewise.
22522 (__arm_vreinterpretq_s32_s64): Likewise.
22523 (__arm_vreinterpretq_s32_s8): Likewise.
22524 (__arm_vreinterpretq_s32_u16): Likewise.
22525 (__arm_vreinterpretq_s32_u32): Likewise.
22526 (__arm_vreinterpretq_s32_u64): Likewise.
22527 (__arm_vreinterpretq_s32_u8): Likewise.
22528 (__arm_vreinterpretq_s64_s16): Likewise.
22529 (__arm_vreinterpretq_s64_s32): Likewise.
22530 (__arm_vreinterpretq_s64_s8): Likewise.
22531 (__arm_vreinterpretq_s64_u16): Likewise.
22532 (__arm_vreinterpretq_s64_u32): Likewise.
22533 (__arm_vreinterpretq_s64_u64): Likewise.
22534 (__arm_vreinterpretq_s64_u8): Likewise.
22535 (__arm_vreinterpretq_s8_s16): Likewise.
22536 (__arm_vreinterpretq_s8_s32): Likewise.
22537 (__arm_vreinterpretq_s8_s64): Likewise.
22538 (__arm_vreinterpretq_s8_u16): Likewise.
22539 (__arm_vreinterpretq_s8_u32): Likewise.
22540 (__arm_vreinterpretq_s8_u64): Likewise.
22541 (__arm_vreinterpretq_s8_u8): Likewise.
22542 (__arm_vreinterpretq_u16_s16): Likewise.
22543 (__arm_vreinterpretq_u16_s32): Likewise.
22544 (__arm_vreinterpretq_u16_s64): Likewise.
22545 (__arm_vreinterpretq_u16_s8): Likewise.
22546 (__arm_vreinterpretq_u16_u32): Likewise.
22547 (__arm_vreinterpretq_u16_u64): Likewise.
22548 (__arm_vreinterpretq_u16_u8): Likewise.
22549 (__arm_vreinterpretq_u32_s16): Likewise.
22550 (__arm_vreinterpretq_u32_s32): Likewise.
22551 (__arm_vreinterpretq_u32_s64): Likewise.
22552 (__arm_vreinterpretq_u32_s8): Likewise.
22553 (__arm_vreinterpretq_u32_u16): Likewise.
22554 (__arm_vreinterpretq_u32_u64): Likewise.
22555 (__arm_vreinterpretq_u32_u8): Likewise.
22556 (__arm_vreinterpretq_u64_s16): Likewise.
22557 (__arm_vreinterpretq_u64_s32): Likewise.
22558 (__arm_vreinterpretq_u64_s64): Likewise.
22559 (__arm_vreinterpretq_u64_s8): Likewise.
22560 (__arm_vreinterpretq_u64_u16): Likewise.
22561 (__arm_vreinterpretq_u64_u32): Likewise.
22562 (__arm_vreinterpretq_u64_u8): Likewise.
22563 (__arm_vreinterpretq_u8_s16): Likewise.
22564 (__arm_vreinterpretq_u8_s32): Likewise.
22565 (__arm_vreinterpretq_u8_s64): Likewise.
22566 (__arm_vreinterpretq_u8_s8): Likewise.
22567 (__arm_vreinterpretq_u8_u16): Likewise.
22568 (__arm_vreinterpretq_u8_u32): Likewise.
22569 (__arm_vreinterpretq_u8_u64): Likewise.
22570 (__arm_vuninitializedq_f16): Likewise.
22571 (__arm_vuninitializedq_f32): Likewise.
22572 (__arm_vreinterpretq_s32_f16): Likewise.
22573 (__arm_vreinterpretq_s32_f32): Likewise.
22574 (__arm_vreinterpretq_s16_f16): Likewise.
22575 (__arm_vreinterpretq_s16_f32): Likewise.
22576 (__arm_vreinterpretq_s64_f16): Likewise.
22577 (__arm_vreinterpretq_s64_f32): Likewise.
22578 (__arm_vreinterpretq_s8_f16): Likewise.
22579 (__arm_vreinterpretq_s8_f32): Likewise.
22580 (__arm_vreinterpretq_u16_f16): Likewise.
22581 (__arm_vreinterpretq_u16_f32): Likewise.
22582 (__arm_vreinterpretq_u32_f16): Likewise.
22583 (__arm_vreinterpretq_u32_f32): Likewise.
22584 (__arm_vreinterpretq_u64_f16): Likewise.
22585 (__arm_vreinterpretq_u64_f32): Likewise.
22586 (__arm_vreinterpretq_u8_f16): Likewise.
22587 (__arm_vreinterpretq_u8_f32): Likewise.
22588 (__arm_vreinterpretq_f16_f32): Likewise.
22589 (__arm_vreinterpretq_f16_s16): Likewise.
22590 (__arm_vreinterpretq_f16_s32): Likewise.
22591 (__arm_vreinterpretq_f16_s64): Likewise.
22592 (__arm_vreinterpretq_f16_s8): Likewise.
22593 (__arm_vreinterpretq_f16_u16): Likewise.
22594 (__arm_vreinterpretq_f16_u32): Likewise.
22595 (__arm_vreinterpretq_f16_u64): Likewise.
22596 (__arm_vreinterpretq_f16_u8): Likewise.
22597 (__arm_vreinterpretq_f32_f16): Likewise.
22598 (__arm_vreinterpretq_f32_s16): Likewise.
22599 (__arm_vreinterpretq_f32_s32): Likewise.
22600 (__arm_vreinterpretq_f32_s64): Likewise.
22601 (__arm_vreinterpretq_f32_s8): Likewise.
22602 (__arm_vreinterpretq_f32_u16): Likewise.
22603 (__arm_vreinterpretq_f32_u32): Likewise.
22604 (__arm_vreinterpretq_f32_u64): Likewise.
22605 (__arm_vreinterpretq_f32_u8): Likewise.
22606 (vuninitializedq): Define polymorphic variant.
22607 (vreinterpretq_f16): Likewise.
22608 (vreinterpretq_f32): Likewise.
22609 (vreinterpretq_s16): Likewise.
22610 (vreinterpretq_s32): Likewise.
22611 (vreinterpretq_s64): Likewise.
22612 (vreinterpretq_s8): Likewise.
22613 (vreinterpretq_u16): Likewise.
22614 (vreinterpretq_u32): Likewise.
22615 (vreinterpretq_u64): Likewise.
22616 (vreinterpretq_u8): Likewise.
22617
22618 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22619 Andre Vieira <andre.simoesdiasvieira@arm.com>
22620 Mihail Ionescu <mihail.ionescu@arm.com>
22621
22622 * config/arm/arm_mve.h (vaddq_s8): Define macro.
22623 (vaddq_s16): Likewise.
22624 (vaddq_s32): Likewise.
22625 (vaddq_u8): Likewise.
22626 (vaddq_u16): Likewise.
22627 (vaddq_u32): Likewise.
22628 (vaddq_f16): Likewise.
22629 (vaddq_f32): Likewise.
22630 (__arm_vaddq_s8): Define intrinsic.
22631 (__arm_vaddq_s16): Likewise.
22632 (__arm_vaddq_s32): Likewise.
22633 (__arm_vaddq_u8): Likewise.
22634 (__arm_vaddq_u16): Likewise.
22635 (__arm_vaddq_u32): Likewise.
22636 (__arm_vaddq_f16): Likewise.
22637 (__arm_vaddq_f32): Likewise.
22638 (vaddq): Define polymorphic variant.
22639 * config/arm/iterators.md (VNIM): Define mode iterator for common types
22640 Neon, IWMMXT and MVE.
22641 (VNINOTM): Likewise.
22642 * config/arm/mve.md (mve_vaddq<mode>): Define RTL pattern.
22643 (mve_vaddq_f<mode>): Define RTL pattern.
22644 * config/arm/neon.md (add<mode>3): Rename to addv4hf3 RTL pattern.
22645 (addv8hf3_neon): Define RTL pattern.
22646 * config/arm/vec-common.md (add<mode>3): Modify standard add RTL pattern
22647 to support MVE.
22648 (addv8hf3): Define standard RTL pattern for MVE and Neon.
22649 (add<mode>3): Modify existing standard add RTL pattern for Neon and IWMMXT.
22650
22651 2020-03-20 Martin Liska <mliska@suse.cz>
22652
22653 PR ipa/94232
22654 * ipa-cp.c (ipa_get_jf_ancestor_result): Use offset in bytes. Previously
22655 build_ref_for_offset function was used and it transforms off to bytes
22656 from bits.
22657
22658 2020-03-20 Richard Biener <rguenther@suse.de>
22659
22660 PR tree-optimization/94266
22661 * gimple-ssa-sprintf.c (get_origin_and_offset): Use the
22662 type of the underlying object to adjust for the containing
22663 field if available.
22664
22665 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22666
22667 * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Rename this to ...
22668 (VUNSPEC_GET_FPSCR): ... this, and move it to vunspec.
22669 * config/arm/vfp.md: (get_fpscr, set_fpscr): Revert to old patterns.
22670
22671 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22672
22673 * config/arm/mve.md (mve_mov<mode>): Fix R->R case.
22674
22675 2020-03-20 Jakub Jelinek <jakub@redhat.com>
22676
22677 PR tree-optimization/94224
22678 * gimple-ssa-store-merging.c
22679 (imm_store_chain_info::coalesce_immediate): Don't consider overlapping
22680 or adjacent INTEGER_CST rhs_code stores as mergeable if they have
22681 different lp_nr.
22682
22683 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
22684
22685 * config/arm/arm.md (define_attr "conds"): Fix logic for neon and mve.
22686
22687 2020-03-19 Jan Hubicka <hubicka@ucw.cz>
22688
22689 PR ipa/94202
22690 * cgraph.c (cgraph_node::function_symbol): Fix availability computation.
22691 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
22692
22693 2020-03-19 Jan Hubicka <hubicka@ucw.cz>
22694
22695 PR ipa/92372
22696 * cgraphunit.c (process_function_and_variable_attributes): warn
22697 for flatten attribute on alias.
22698 * ipa-inline.c (ipa_inline): Do not ICE on flatten attribute on alias.
22699
22700 2020-03-19 Martin Liska <mliska@suse.cz>
22701
22702 * lto-section-in.c: Add ext_symtab.
22703 * lto-streamer-out.c (write_symbol_extension_info): New.
22704 (produce_symtab_extension): New.
22705 (produce_asm_for_decls): Stream also produce_symtab_extension.
22706 * lto-streamer.h (enum lto_section_type): New section.
22707
22708 2020-03-19 Jakub Jelinek <jakub@redhat.com>
22709
22710 PR tree-optimization/94211
22711 * tree-ssa-phiopt.c (value_replacement): Use estimate_num_insns_seq
22712 instead of estimate_num_insns for bb_seq (middle_bb). Rename
22713 emtpy_or_with_defined_p variable to empty_or_with_defined_p, adjust
22714 all uses.
22715
22716 2020-03-19 Richard Biener <rguenther@suse.de>
22717
22718 PR ipa/94217
22719 * ipa-cp.c (ipa_get_jf_ancestor_result): Avoid build_fold_addr_expr
22720 and build_ref_for_offset.
22721
22722 2020-03-19 Richard Biener <rguenther@suse.de>
22723
22724 PR middle-end/94216
22725 * fold-const.c (fold_binary_loc): Avoid using
22726 build_fold_addr_expr when we really want an ADDR_EXPR.
22727
22728 2020-03-18 Segher Boessenkool <segher@kernel.crashing.org>
22729
22730 * config/rs6000/constraints.md (wd, wf, wi, ws, ww): New undocumented
22731 aliases for "wa".
22732
22733 2020-03-12 Richard Sandiford <richard.sandiford@arm.com>
22734
22735 PR rtl-optimization/90275
22736 * cse.c (cse_insn): Delete no-op register moves too.
22737
22738 2020-03-18 Martin Sebor <msebor@redhat.com>
22739
22740 PR ipa/92799
22741 * cgraphunit.c (process_function_and_variable_attributes): Also
22742 complain about weakref function definitions and drop all effects
22743 of the attribute.
22744
22745 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
22746 Mihail Ionescu <mihail.ionescu@arm.com>
22747 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22748
22749 * config/arm/arm_mve.h (vstrdq_scatter_base_p_s64): Define macro.
22750 (vstrdq_scatter_base_p_u64): Likewise.
22751 (vstrdq_scatter_base_s64): Likewise.
22752 (vstrdq_scatter_base_u64): Likewise.
22753 (vstrdq_scatter_offset_p_s64): Likewise.
22754 (vstrdq_scatter_offset_p_u64): Likewise.
22755 (vstrdq_scatter_offset_s64): Likewise.
22756 (vstrdq_scatter_offset_u64): Likewise.
22757 (vstrdq_scatter_shifted_offset_p_s64): Likewise.
22758 (vstrdq_scatter_shifted_offset_p_u64): Likewise.
22759 (vstrdq_scatter_shifted_offset_s64): Likewise.
22760 (vstrdq_scatter_shifted_offset_u64): Likewise.
22761 (vstrhq_scatter_offset_f16): Likewise.
22762 (vstrhq_scatter_offset_p_f16): Likewise.
22763 (vstrhq_scatter_shifted_offset_f16): Likewise.
22764 (vstrhq_scatter_shifted_offset_p_f16): Likewise.
22765 (vstrwq_scatter_base_f32): Likewise.
22766 (vstrwq_scatter_base_p_f32): Likewise.
22767 (vstrwq_scatter_offset_f32): Likewise.
22768 (vstrwq_scatter_offset_p_f32): Likewise.
22769 (vstrwq_scatter_offset_p_s32): Likewise.
22770 (vstrwq_scatter_offset_p_u32): Likewise.
22771 (vstrwq_scatter_offset_s32): Likewise.
22772 (vstrwq_scatter_offset_u32): Likewise.
22773 (vstrwq_scatter_shifted_offset_f32): Likewise.
22774 (vstrwq_scatter_shifted_offset_p_f32): Likewise.
22775 (vstrwq_scatter_shifted_offset_p_s32): Likewise.
22776 (vstrwq_scatter_shifted_offset_p_u32): Likewise.
22777 (vstrwq_scatter_shifted_offset_s32): Likewise.
22778 (vstrwq_scatter_shifted_offset_u32): Likewise.
22779 (__arm_vstrdq_scatter_base_p_s64): Define intrinsic.
22780 (__arm_vstrdq_scatter_base_p_u64): Likewise.
22781 (__arm_vstrdq_scatter_base_s64): Likewise.
22782 (__arm_vstrdq_scatter_base_u64): Likewise.
22783 (__arm_vstrdq_scatter_offset_p_s64): Likewise.
22784 (__arm_vstrdq_scatter_offset_p_u64): Likewise.
22785 (__arm_vstrdq_scatter_offset_s64): Likewise.
22786 (__arm_vstrdq_scatter_offset_u64): Likewise.
22787 (__arm_vstrdq_scatter_shifted_offset_p_s64): Likewise.
22788 (__arm_vstrdq_scatter_shifted_offset_p_u64): Likewise.
22789 (__arm_vstrdq_scatter_shifted_offset_s64): Likewise.
22790 (__arm_vstrdq_scatter_shifted_offset_u64): Likewise.
22791 (__arm_vstrwq_scatter_offset_p_s32): Likewise.
22792 (__arm_vstrwq_scatter_offset_p_u32): Likewise.
22793 (__arm_vstrwq_scatter_offset_s32): Likewise.
22794 (__arm_vstrwq_scatter_offset_u32): Likewise.
22795 (__arm_vstrwq_scatter_shifted_offset_p_s32): Likewise.
22796 (__arm_vstrwq_scatter_shifted_offset_p_u32): Likewise.
22797 (__arm_vstrwq_scatter_shifted_offset_s32): Likewise.
22798 (__arm_vstrwq_scatter_shifted_offset_u32): Likewise.
22799 (__arm_vstrhq_scatter_offset_f16): Likewise.
22800 (__arm_vstrhq_scatter_offset_p_f16): Likewise.
22801 (__arm_vstrhq_scatter_shifted_offset_f16): Likewise.
22802 (__arm_vstrhq_scatter_shifted_offset_p_f16): Likewise.
22803 (__arm_vstrwq_scatter_base_f32): Likewise.
22804 (__arm_vstrwq_scatter_base_p_f32): Likewise.
22805 (__arm_vstrwq_scatter_offset_f32): Likewise.
22806 (__arm_vstrwq_scatter_offset_p_f32): Likewise.
22807 (__arm_vstrwq_scatter_shifted_offset_f32): Likewise.
22808 (__arm_vstrwq_scatter_shifted_offset_p_f32): Likewise.
22809 (vstrhq_scatter_offset): Define polymorphic variant.
22810 (vstrhq_scatter_offset_p): Likewise.
22811 (vstrhq_scatter_shifted_offset): Likewise.
22812 (vstrhq_scatter_shifted_offset_p): Likewise.
22813 (vstrwq_scatter_base): Likewise.
22814 (vstrwq_scatter_base_p): Likewise.
22815 (vstrwq_scatter_offset): Likewise.
22816 (vstrwq_scatter_offset_p): Likewise.
22817 (vstrwq_scatter_shifted_offset): Likewise.
22818 (vstrwq_scatter_shifted_offset_p): Likewise.
22819 (vstrdq_scatter_base_p): Likewise.
22820 (vstrdq_scatter_base): Likewise.
22821 (vstrdq_scatter_offset_p): Likewise.
22822 (vstrdq_scatter_offset): Likewise.
22823 (vstrdq_scatter_shifted_offset_p): Likewise.
22824 (vstrdq_scatter_shifted_offset): Likewise.
22825 * config/arm/arm_mve_builtins.def (STRSBS): Use builtin qualifier.
22826 (STRSBS_P): Likewise.
22827 (STRSBU): Likewise.
22828 (STRSBU_P): Likewise.
22829 (STRSS): Likewise.
22830 (STRSS_P): Likewise.
22831 (STRSU): Likewise.
22832 (STRSU_P): Likewise.
22833 * config/arm/constraints.md (Ri): Define.
22834 * config/arm/mve.md (VSTRDSBQ): Define iterator.
22835 (VSTRDSOQ): Likewise.
22836 (VSTRDSSOQ): Likewise.
22837 (VSTRWSOQ): Likewise.
22838 (VSTRWSSOQ): Likewise.
22839 (mve_vstrdq_scatter_base_p_<supf>v2di): Define RTL pattern.
22840 (mve_vstrdq_scatter_base_<supf>v2di): Likewise.
22841 (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
22842 (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
22843 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
22844 (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
22845 (mve_vstrhq_scatter_offset_fv8hf): Likewise.
22846 (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
22847 (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
22848 (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
22849 (mve_vstrwq_scatter_base_fv4sf): Likewise.
22850 (mve_vstrwq_scatter_base_p_fv4sf): Likewise.
22851 (mve_vstrwq_scatter_offset_fv4sf): Likewise.
22852 (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
22853 (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
22854 (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
22855 (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
22856 (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
22857 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
22858 (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
22859 * config/arm/predicates.md (Ri): Define predicate to check immediate
22860 is the range +/-1016 and multiple of 8.
22861
22862 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
22863 Mihail Ionescu <mihail.ionescu@arm.com>
22864 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22865
22866 * config/arm/arm_mve.h (vst1q_f32): Define macro.
22867 (vst1q_f16): Likewise.
22868 (vst1q_s8): Likewise.
22869 (vst1q_s32): Likewise.
22870 (vst1q_s16): Likewise.
22871 (vst1q_u8): Likewise.
22872 (vst1q_u32): Likewise.
22873 (vst1q_u16): Likewise.
22874 (vstrhq_f16): Likewise.
22875 (vstrhq_scatter_offset_s32): Likewise.
22876 (vstrhq_scatter_offset_s16): Likewise.
22877 (vstrhq_scatter_offset_u32): Likewise.
22878 (vstrhq_scatter_offset_u16): Likewise.
22879 (vstrhq_scatter_offset_p_s32): Likewise.
22880 (vstrhq_scatter_offset_p_s16): Likewise.
22881 (vstrhq_scatter_offset_p_u32): Likewise.
22882 (vstrhq_scatter_offset_p_u16): Likewise.
22883 (vstrhq_scatter_shifted_offset_s32): Likewise.
22884 (vstrhq_scatter_shifted_offset_s16): Likewise.
22885 (vstrhq_scatter_shifted_offset_u32): Likewise.
22886 (vstrhq_scatter_shifted_offset_u16): Likewise.
22887 (vstrhq_scatter_shifted_offset_p_s32): Likewise.
22888 (vstrhq_scatter_shifted_offset_p_s16): Likewise.
22889 (vstrhq_scatter_shifted_offset_p_u32): Likewise.
22890 (vstrhq_scatter_shifted_offset_p_u16): Likewise.
22891 (vstrhq_s32): Likewise.
22892 (vstrhq_s16): Likewise.
22893 (vstrhq_u32): Likewise.
22894 (vstrhq_u16): Likewise.
22895 (vstrhq_p_f16): Likewise.
22896 (vstrhq_p_s32): Likewise.
22897 (vstrhq_p_s16): Likewise.
22898 (vstrhq_p_u32): Likewise.
22899 (vstrhq_p_u16): Likewise.
22900 (vstrwq_f32): Likewise.
22901 (vstrwq_s32): Likewise.
22902 (vstrwq_u32): Likewise.
22903 (vstrwq_p_f32): Likewise.
22904 (vstrwq_p_s32): Likewise.
22905 (vstrwq_p_u32): Likewise.
22906 (__arm_vst1q_s8): Define intrinsic.
22907 (__arm_vst1q_s32): Likewise.
22908 (__arm_vst1q_s16): Likewise.
22909 (__arm_vst1q_u8): Likewise.
22910 (__arm_vst1q_u32): Likewise.
22911 (__arm_vst1q_u16): Likewise.
22912 (__arm_vstrhq_scatter_offset_s32): Likewise.
22913 (__arm_vstrhq_scatter_offset_s16): Likewise.
22914 (__arm_vstrhq_scatter_offset_u32): Likewise.
22915 (__arm_vstrhq_scatter_offset_u16): Likewise.
22916 (__arm_vstrhq_scatter_offset_p_s32): Likewise.
22917 (__arm_vstrhq_scatter_offset_p_s16): Likewise.
22918 (__arm_vstrhq_scatter_offset_p_u32): Likewise.
22919 (__arm_vstrhq_scatter_offset_p_u16): Likewise.
22920 (__arm_vstrhq_scatter_shifted_offset_s32): Likewise.
22921 (__arm_vstrhq_scatter_shifted_offset_s16): Likewise.
22922 (__arm_vstrhq_scatter_shifted_offset_u32): Likewise.
22923 (__arm_vstrhq_scatter_shifted_offset_u16): Likewise.
22924 (__arm_vstrhq_scatter_shifted_offset_p_s32): Likewise.
22925 (__arm_vstrhq_scatter_shifted_offset_p_s16): Likewise.
22926 (__arm_vstrhq_scatter_shifted_offset_p_u32): Likewise.
22927 (__arm_vstrhq_scatter_shifted_offset_p_u16): Likewise.
22928 (__arm_vstrhq_s32): Likewise.
22929 (__arm_vstrhq_s16): Likewise.
22930 (__arm_vstrhq_u32): Likewise.
22931 (__arm_vstrhq_u16): Likewise.
22932 (__arm_vstrhq_p_s32): Likewise.
22933 (__arm_vstrhq_p_s16): Likewise.
22934 (__arm_vstrhq_p_u32): Likewise.
22935 (__arm_vstrhq_p_u16): Likewise.
22936 (__arm_vstrwq_s32): Likewise.
22937 (__arm_vstrwq_u32): Likewise.
22938 (__arm_vstrwq_p_s32): Likewise.
22939 (__arm_vstrwq_p_u32): Likewise.
22940 (__arm_vstrwq_p_f32): Likewise.
22941 (__arm_vstrwq_f32): Likewise.
22942 (__arm_vst1q_f32): Likewise.
22943 (__arm_vst1q_f16): Likewise.
22944 (__arm_vstrhq_f16): Likewise.
22945 (__arm_vstrhq_p_f16): Likewise.
22946 (vst1q): Define polymorphic variant.
22947 (vstrhq): Likewise.
22948 (vstrhq_p): Likewise.
22949 (vstrhq_scatter_offset_p): Likewise.
22950 (vstrhq_scatter_offset): Likewise.
22951 (vstrhq_scatter_shifted_offset_p): Likewise.
22952 (vstrhq_scatter_shifted_offset): Likewise.
22953 (vstrwq_p): Likewise.
22954 (vstrwq): Likewise.
22955 * config/arm/arm_mve_builtins.def (STRS): Use builtin qualifier.
22956 (STRS_P): Likewise.
22957 (STRSS): Likewise.
22958 (STRSS_P): Likewise.
22959 (STRSU): Likewise.
22960 (STRSU_P): Likewise.
22961 (STRU): Likewise.
22962 (STRU_P): Likewise.
22963 * config/arm/mve.md (VST1Q): Define iterator.
22964 (VSTRHSOQ): Likewise.
22965 (VSTRHSSOQ): Likewise.
22966 (VSTRHQ): Likewise.
22967 (VSTRWQ): Likewise.
22968 (mve_vstrhq_fv8hf): Define RTL pattern.
22969 (mve_vstrhq_p_fv8hf): Likewise.
22970 (mve_vstrhq_p_<supf><mode>): Likewise.
22971 (mve_vstrhq_scatter_offset_p_<supf><mode>): Likewise.
22972 (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
22973 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
22974 (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
22975 (mve_vstrhq_<supf><mode>): Likewise.
22976 (mve_vstrwq_fv4sf): Likewise.
22977 (mve_vstrwq_p_fv4sf): Likewise.
22978 (mve_vstrwq_p_<supf>v4si): Likewise.
22979 (mve_vstrwq_<supf>v4si): Likewise.
22980 (mve_vst1q_f<mode>): Define expand.
22981 (mve_vst1q_<supf><mode>): Likewise.
22982
22983 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
22984 Mihail Ionescu <mihail.ionescu@arm.com>
22985 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22986
22987 * config/arm/arm_mve.h (vld1q_s8): Define macro.
22988 (vld1q_s32): Likewise.
22989 (vld1q_s16): Likewise.
22990 (vld1q_u8): Likewise.
22991 (vld1q_u32): Likewise.
22992 (vld1q_u16): Likewise.
22993 (vldrhq_gather_offset_s32): Likewise.
22994 (vldrhq_gather_offset_s16): Likewise.
22995 (vldrhq_gather_offset_u32): Likewise.
22996 (vldrhq_gather_offset_u16): Likewise.
22997 (vldrhq_gather_offset_z_s32): Likewise.
22998 (vldrhq_gather_offset_z_s16): Likewise.
22999 (vldrhq_gather_offset_z_u32): Likewise.
23000 (vldrhq_gather_offset_z_u16): Likewise.
23001 (vldrhq_gather_shifted_offset_s32): Likewise.
23002 (vldrhq_gather_shifted_offset_s16): Likewise.
23003 (vldrhq_gather_shifted_offset_u32): Likewise.
23004 (vldrhq_gather_shifted_offset_u16): Likewise.
23005 (vldrhq_gather_shifted_offset_z_s32): Likewise.
23006 (vldrhq_gather_shifted_offset_z_s16): Likewise.
23007 (vldrhq_gather_shifted_offset_z_u32): Likewise.
23008 (vldrhq_gather_shifted_offset_z_u16): Likewise.
23009 (vldrhq_s32): Likewise.
23010 (vldrhq_s16): Likewise.
23011 (vldrhq_u32): Likewise.
23012 (vldrhq_u16): Likewise.
23013 (vldrhq_z_s32): Likewise.
23014 (vldrhq_z_s16): Likewise.
23015 (vldrhq_z_u32): Likewise.
23016 (vldrhq_z_u16): Likewise.
23017 (vldrwq_s32): Likewise.
23018 (vldrwq_u32): Likewise.
23019 (vldrwq_z_s32): Likewise.
23020 (vldrwq_z_u32): Likewise.
23021 (vld1q_f32): Likewise.
23022 (vld1q_f16): Likewise.
23023 (vldrhq_f16): Likewise.
23024 (vldrhq_z_f16): Likewise.
23025 (vldrwq_f32): Likewise.
23026 (vldrwq_z_f32): Likewise.
23027 (__arm_vld1q_s8): Define intrinsic.
23028 (__arm_vld1q_s32): Likewise.
23029 (__arm_vld1q_s16): Likewise.
23030 (__arm_vld1q_u8): Likewise.
23031 (__arm_vld1q_u32): Likewise.
23032 (__arm_vld1q_u16): Likewise.
23033 (__arm_vldrhq_gather_offset_s32): Likewise.
23034 (__arm_vldrhq_gather_offset_s16): Likewise.
23035 (__arm_vldrhq_gather_offset_u32): Likewise.
23036 (__arm_vldrhq_gather_offset_u16): Likewise.
23037 (__arm_vldrhq_gather_offset_z_s32): Likewise.
23038 (__arm_vldrhq_gather_offset_z_s16): Likewise.
23039 (__arm_vldrhq_gather_offset_z_u32): Likewise.
23040 (__arm_vldrhq_gather_offset_z_u16): Likewise.
23041 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
23042 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
23043 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
23044 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
23045 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
23046 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
23047 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
23048 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
23049 (__arm_vldrhq_s32): Likewise.
23050 (__arm_vldrhq_s16): Likewise.
23051 (__arm_vldrhq_u32): Likewise.
23052 (__arm_vldrhq_u16): Likewise.
23053 (__arm_vldrhq_z_s32): Likewise.
23054 (__arm_vldrhq_z_s16): Likewise.
23055 (__arm_vldrhq_z_u32): Likewise.
23056 (__arm_vldrhq_z_u16): Likewise.
23057 (__arm_vldrwq_s32): Likewise.
23058 (__arm_vldrwq_u32): Likewise.
23059 (__arm_vldrwq_z_s32): Likewise.
23060 (__arm_vldrwq_z_u32): Likewise.
23061 (__arm_vld1q_f32): Likewise.
23062 (__arm_vld1q_f16): Likewise.
23063 (__arm_vldrwq_f32): Likewise.
23064 (__arm_vldrwq_z_f32): Likewise.
23065 (__arm_vldrhq_z_f16): Likewise.
23066 (__arm_vldrhq_f16): Likewise.
23067 (vld1q): Define polymorphic variant.
23068 (vldrhq_gather_offset): Likewise.
23069 (vldrhq_gather_offset_z): Likewise.
23070 (vldrhq_gather_shifted_offset): Likewise.
23071 (vldrhq_gather_shifted_offset_z): Likewise.
23072 * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
23073 (LDRS): Likewise.
23074 (LDRU_Z): Likewise.
23075 (LDRS_Z): Likewise.
23076 (LDRGU_Z): Likewise.
23077 (LDRGU): Likewise.
23078 (LDRGS_Z): Likewise.
23079 (LDRGS): Likewise.
23080 * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
23081 (V_sz_elem1): Likewise.
23082 (VLD1Q): Define iterator.
23083 (VLDRHGOQ): Likewise.
23084 (VLDRHGSOQ): Likewise.
23085 (VLDRHQ): Likewise.
23086 (VLDRWQ): Likewise.
23087 (mve_vldrhq_fv8hf): Define RTL pattern.
23088 (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
23089 (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
23090 (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
23091 (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
23092 (mve_vldrhq_<supf><mode>): Likewise.
23093 (mve_vldrhq_z_fv8hf): Likewise.
23094 (mve_vldrhq_z_<supf><mode>): Likewise.
23095 (mve_vldrwq_fv4sf): Likewise.
23096 (mve_vldrwq_<supf>v4si): Likewise.
23097 (mve_vldrwq_z_fv4sf): Likewise.
23098 (mve_vldrwq_z_<supf>v4si): Likewise.
23099 (mve_vld1q_f<mode>): Define RTL expand pattern.
23100 (mve_vld1q_<supf><mode>): Likewise.
23101
23102 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23103 Mihail Ionescu <mihail.ionescu@arm.com>
23104 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23105
23106 * config/arm/arm_mve.h (vld1q_s8): Define macro.
23107 (vld1q_s32): Likewise.
23108 (vld1q_s16): Likewise.
23109 (vld1q_u8): Likewise.
23110 (vld1q_u32): Likewise.
23111 (vld1q_u16): Likewise.
23112 (vldrhq_gather_offset_s32): Likewise.
23113 (vldrhq_gather_offset_s16): Likewise.
23114 (vldrhq_gather_offset_u32): Likewise.
23115 (vldrhq_gather_offset_u16): Likewise.
23116 (vldrhq_gather_offset_z_s32): Likewise.
23117 (vldrhq_gather_offset_z_s16): Likewise.
23118 (vldrhq_gather_offset_z_u32): Likewise.
23119 (vldrhq_gather_offset_z_u16): Likewise.
23120 (vldrhq_gather_shifted_offset_s32): Likewise.
23121 (vldrhq_gather_shifted_offset_s16): Likewise.
23122 (vldrhq_gather_shifted_offset_u32): Likewise.
23123 (vldrhq_gather_shifted_offset_u16): Likewise.
23124 (vldrhq_gather_shifted_offset_z_s32): Likewise.
23125 (vldrhq_gather_shifted_offset_z_s16): Likewise.
23126 (vldrhq_gather_shifted_offset_z_u32): Likewise.
23127 (vldrhq_gather_shifted_offset_z_u16): Likewise.
23128 (vldrhq_s32): Likewise.
23129 (vldrhq_s16): Likewise.
23130 (vldrhq_u32): Likewise.
23131 (vldrhq_u16): Likewise.
23132 (vldrhq_z_s32): Likewise.
23133 (vldrhq_z_s16): Likewise.
23134 (vldrhq_z_u32): Likewise.
23135 (vldrhq_z_u16): Likewise.
23136 (vldrwq_s32): Likewise.
23137 (vldrwq_u32): Likewise.
23138 (vldrwq_z_s32): Likewise.
23139 (vldrwq_z_u32): Likewise.
23140 (vld1q_f32): Likewise.
23141 (vld1q_f16): Likewise.
23142 (vldrhq_f16): Likewise.
23143 (vldrhq_z_f16): Likewise.
23144 (vldrwq_f32): Likewise.
23145 (vldrwq_z_f32): Likewise.
23146 (__arm_vld1q_s8): Define intrinsic.
23147 (__arm_vld1q_s32): Likewise.
23148 (__arm_vld1q_s16): Likewise.
23149 (__arm_vld1q_u8): Likewise.
23150 (__arm_vld1q_u32): Likewise.
23151 (__arm_vld1q_u16): Likewise.
23152 (__arm_vldrhq_gather_offset_s32): Likewise.
23153 (__arm_vldrhq_gather_offset_s16): Likewise.
23154 (__arm_vldrhq_gather_offset_u32): Likewise.
23155 (__arm_vldrhq_gather_offset_u16): Likewise.
23156 (__arm_vldrhq_gather_offset_z_s32): Likewise.
23157 (__arm_vldrhq_gather_offset_z_s16): Likewise.
23158 (__arm_vldrhq_gather_offset_z_u32): Likewise.
23159 (__arm_vldrhq_gather_offset_z_u16): Likewise.
23160 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
23161 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
23162 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
23163 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
23164 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
23165 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
23166 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
23167 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
23168 (__arm_vldrhq_s32): Likewise.
23169 (__arm_vldrhq_s16): Likewise.
23170 (__arm_vldrhq_u32): Likewise.
23171 (__arm_vldrhq_u16): Likewise.
23172 (__arm_vldrhq_z_s32): Likewise.
23173 (__arm_vldrhq_z_s16): Likewise.
23174 (__arm_vldrhq_z_u32): Likewise.
23175 (__arm_vldrhq_z_u16): Likewise.
23176 (__arm_vldrwq_s32): Likewise.
23177 (__arm_vldrwq_u32): Likewise.
23178 (__arm_vldrwq_z_s32): Likewise.
23179 (__arm_vldrwq_z_u32): Likewise.
23180 (__arm_vld1q_f32): Likewise.
23181 (__arm_vld1q_f16): Likewise.
23182 (__arm_vldrwq_f32): Likewise.
23183 (__arm_vldrwq_z_f32): Likewise.
23184 (__arm_vldrhq_z_f16): Likewise.
23185 (__arm_vldrhq_f16): Likewise.
23186 (vld1q): Define polymorphic variant.
23187 (vldrhq_gather_offset): Likewise.
23188 (vldrhq_gather_offset_z): Likewise.
23189 (vldrhq_gather_shifted_offset): Likewise.
23190 (vldrhq_gather_shifted_offset_z): Likewise.
23191 * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
23192 (LDRS): Likewise.
23193 (LDRU_Z): Likewise.
23194 (LDRS_Z): Likewise.
23195 (LDRGU_Z): Likewise.
23196 (LDRGU): Likewise.
23197 (LDRGS_Z): Likewise.
23198 (LDRGS): Likewise.
23199 * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
23200 (V_sz_elem1): Likewise.
23201 (VLD1Q): Define iterator.
23202 (VLDRHGOQ): Likewise.
23203 (VLDRHGSOQ): Likewise.
23204 (VLDRHQ): Likewise.
23205 (VLDRWQ): Likewise.
23206 (mve_vldrhq_fv8hf): Define RTL pattern.
23207 (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
23208 (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
23209 (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
23210 (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
23211 (mve_vldrhq_<supf><mode>): Likewise.
23212 (mve_vldrhq_z_fv8hf): Likewise.
23213 (mve_vldrhq_z_<supf><mode>): Likewise.
23214 (mve_vldrwq_fv4sf): Likewise.
23215 (mve_vldrwq_<supf>v4si): Likewise.
23216 (mve_vldrwq_z_fv4sf): Likewise.
23217 (mve_vldrwq_z_<supf>v4si): Likewise.
23218 (mve_vld1q_f<mode>): Define RTL expand pattern.
23219 (mve_vld1q_<supf><mode>): Likewise.
23220
23221 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23222 Mihail Ionescu <mihail.ionescu@arm.com>
23223 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23224
23225 * config/arm/arm-builtins.c (LDRGBS_Z_QUALIFIERS): Define builtin
23226 qualifier.
23227 (LDRGBU_Z_QUALIFIERS): Likewise.
23228 (LDRGS_Z_QUALIFIERS): Likewise.
23229 (LDRGU_Z_QUALIFIERS): Likewise.
23230 (LDRS_Z_QUALIFIERS): Likewise.
23231 (LDRU_Z_QUALIFIERS): Likewise.
23232 * config/arm/arm_mve.h (vldrbq_gather_offset_z_s16): Define macro.
23233 (vldrbq_gather_offset_z_u8): Likewise.
23234 (vldrbq_gather_offset_z_s32): Likewise.
23235 (vldrbq_gather_offset_z_u16): Likewise.
23236 (vldrbq_gather_offset_z_u32): Likewise.
23237 (vldrbq_gather_offset_z_s8): Likewise.
23238 (vldrbq_z_s16): Likewise.
23239 (vldrbq_z_u8): Likewise.
23240 (vldrbq_z_s8): Likewise.
23241 (vldrbq_z_s32): Likewise.
23242 (vldrbq_z_u16): Likewise.
23243 (vldrbq_z_u32): Likewise.
23244 (vldrwq_gather_base_z_u32): Likewise.
23245 (vldrwq_gather_base_z_s32): Likewise.
23246 (__arm_vldrbq_gather_offset_z_s8): Define intrinsic.
23247 (__arm_vldrbq_gather_offset_z_s32): Likewise.
23248 (__arm_vldrbq_gather_offset_z_s16): Likewise.
23249 (__arm_vldrbq_gather_offset_z_u8): Likewise.
23250 (__arm_vldrbq_gather_offset_z_u32): Likewise.
23251 (__arm_vldrbq_gather_offset_z_u16): Likewise.
23252 (__arm_vldrbq_z_s8): Likewise.
23253 (__arm_vldrbq_z_s32): Likewise.
23254 (__arm_vldrbq_z_s16): Likewise.
23255 (__arm_vldrbq_z_u8): Likewise.
23256 (__arm_vldrbq_z_u32): Likewise.
23257 (__arm_vldrbq_z_u16): Likewise.
23258 (__arm_vldrwq_gather_base_z_s32): Likewise.
23259 (__arm_vldrwq_gather_base_z_u32): Likewise.
23260 (vldrbq_gather_offset_z): Define polymorphic variant.
23261 * config/arm/arm_mve_builtins.def (LDRGBS_Z_QUALIFIERS): Use builtin
23262 qualifier.
23263 (LDRGBU_Z_QUALIFIERS): Likewise.
23264 (LDRGS_Z_QUALIFIERS): Likewise.
23265 (LDRGU_Z_QUALIFIERS): Likewise.
23266 (LDRS_Z_QUALIFIERS): Likewise.
23267 (LDRU_Z_QUALIFIERS): Likewise.
23268 * config/arm/mve.md (mve_vldrbq_gather_offset_z_<supf><mode>): Define
23269 RTL pattern.
23270 (mve_vldrbq_z_<supf><mode>): Likewise.
23271 (mve_vldrwq_gather_base_z_<supf>v4si): Likewise.
23272
23273 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23274 Mihail Ionescu <mihail.ionescu@arm.com>
23275 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23276
23277 * config/arm/arm-builtins.c (STRS_P_QUALIFIERS): Define builtin
23278 qualifier.
23279 (STRU_P_QUALIFIERS): Likewise.
23280 (STRSU_P_QUALIFIERS): Likewise.
23281 (STRSS_P_QUALIFIERS): Likewise.
23282 (STRSBS_P_QUALIFIERS): Likewise.
23283 (STRSBU_P_QUALIFIERS): Likewise.
23284 * config/arm/arm_mve.h (vstrbq_p_s8): Define macro.
23285 (vstrbq_p_s32): Likewise.
23286 (vstrbq_p_s16): Likewise.
23287 (vstrbq_p_u8): Likewise.
23288 (vstrbq_p_u32): Likewise.
23289 (vstrbq_p_u16): Likewise.
23290 (vstrbq_scatter_offset_p_s8): Likewise.
23291 (vstrbq_scatter_offset_p_s32): Likewise.
23292 (vstrbq_scatter_offset_p_s16): Likewise.
23293 (vstrbq_scatter_offset_p_u8): Likewise.
23294 (vstrbq_scatter_offset_p_u32): Likewise.
23295 (vstrbq_scatter_offset_p_u16): Likewise.
23296 (vstrwq_scatter_base_p_s32): Likewise.
23297 (vstrwq_scatter_base_p_u32): Likewise.
23298 (__arm_vstrbq_p_s8): Define intrinsic.
23299 (__arm_vstrbq_p_s32): Likewise.
23300 (__arm_vstrbq_p_s16): Likewise.
23301 (__arm_vstrbq_p_u8): Likewise.
23302 (__arm_vstrbq_p_u32): Likewise.
23303 (__arm_vstrbq_p_u16): Likewise.
23304 (__arm_vstrbq_scatter_offset_p_s8): Likewise.
23305 (__arm_vstrbq_scatter_offset_p_s32): Likewise.
23306 (__arm_vstrbq_scatter_offset_p_s16): Likewise.
23307 (__arm_vstrbq_scatter_offset_p_u8): Likewise.
23308 (__arm_vstrbq_scatter_offset_p_u32): Likewise.
23309 (__arm_vstrbq_scatter_offset_p_u16): Likewise.
23310 (__arm_vstrwq_scatter_base_p_s32): Likewise.
23311 (__arm_vstrwq_scatter_base_p_u32): Likewise.
23312 (vstrbq_p): Define polymorphic variant.
23313 (vstrbq_scatter_offset_p): Likewise.
23314 (vstrwq_scatter_base_p): Likewise.
23315 * config/arm/arm_mve_builtins.def (STRS_P_QUALIFIERS): Use builtin
23316 qualifier.
23317 (STRU_P_QUALIFIERS): Likewise.
23318 (STRSU_P_QUALIFIERS): Likewise.
23319 (STRSS_P_QUALIFIERS): Likewise.
23320 (STRSBS_P_QUALIFIERS): Likewise.
23321 (STRSBU_P_QUALIFIERS): Likewise.
23322 * config/arm/mve.md (mve_vstrbq_scatter_offset_p_<supf><mode>): Define
23323 RTL pattern.
23324 (mve_vstrwq_scatter_base_p_<supf>v4si): Likewise.
23325 (mve_vstrbq_p_<supf><mode>): Likewise.
23326
23327 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23328 Mihail Ionescu <mihail.ionescu@arm.com>
23329 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23330
23331 * config/arm/arm-builtins.c (LDRGU_QUALIFIERS): Define builtin
23332 qualifier.
23333 (LDRGS_QUALIFIERS): Likewise.
23334 (LDRS_QUALIFIERS): Likewise.
23335 (LDRU_QUALIFIERS): Likewise.
23336 (LDRGBS_QUALIFIERS): Likewise.
23337 (LDRGBU_QUALIFIERS): Likewise.
23338 * config/arm/arm_mve.h (vldrbq_gather_offset_u8): Define macro.
23339 (vldrbq_gather_offset_s8): Likewise.
23340 (vldrbq_s8): Likewise.
23341 (vldrbq_u8): Likewise.
23342 (vldrbq_gather_offset_u16): Likewise.
23343 (vldrbq_gather_offset_s16): Likewise.
23344 (vldrbq_s16): Likewise.
23345 (vldrbq_u16): Likewise.
23346 (vldrbq_gather_offset_u32): Likewise.
23347 (vldrbq_gather_offset_s32): Likewise.
23348 (vldrbq_s32): Likewise.
23349 (vldrbq_u32): Likewise.
23350 (vldrwq_gather_base_s32): Likewise.
23351 (vldrwq_gather_base_u32): Likewise.
23352 (__arm_vldrbq_gather_offset_u8): Define intrinsic.
23353 (__arm_vldrbq_gather_offset_s8): Likewise.
23354 (__arm_vldrbq_s8): Likewise.
23355 (__arm_vldrbq_u8): Likewise.
23356 (__arm_vldrbq_gather_offset_u16): Likewise.
23357 (__arm_vldrbq_gather_offset_s16): Likewise.
23358 (__arm_vldrbq_s16): Likewise.
23359 (__arm_vldrbq_u16): Likewise.
23360 (__arm_vldrbq_gather_offset_u32): Likewise.
23361 (__arm_vldrbq_gather_offset_s32): Likewise.
23362 (__arm_vldrbq_s32): Likewise.
23363 (__arm_vldrbq_u32): Likewise.
23364 (__arm_vldrwq_gather_base_s32): Likewise.
23365 (__arm_vldrwq_gather_base_u32): Likewise.
23366 (vldrbq_gather_offset): Define polymorphic variant.
23367 * config/arm/arm_mve_builtins.def (LDRGU_QUALIFIERS): Use builtin
23368 qualifier.
23369 (LDRGS_QUALIFIERS): Likewise.
23370 (LDRS_QUALIFIERS): Likewise.
23371 (LDRU_QUALIFIERS): Likewise.
23372 (LDRGBS_QUALIFIERS): Likewise.
23373 (LDRGBU_QUALIFIERS): Likewise.
23374 * config/arm/mve.md (VLDRBGOQ): Define iterator.
23375 (VLDRBQ): Likewise.
23376 (VLDRWGBQ): Likewise.
23377 (mve_vldrbq_gather_offset_<supf><mode>): Define RTL pattern.
23378 (mve_vldrbq_<supf><mode>): Likewise.
23379 (mve_vldrwq_gather_base_<supf>v4si): Likewise.
23380
23381 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23382 Mihail Ionescu <mihail.ionescu@arm.com>
23383 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23384
23385 * config/arm/arm-builtins.c (STRS_QUALIFIERS): Define builtin qualifier.
23386 (STRU_QUALIFIERS): Likewise.
23387 (STRSS_QUALIFIERS): Likewise.
23388 (STRSU_QUALIFIERS): Likewise.
23389 (STRSBS_QUALIFIERS): Likewise.
23390 (STRSBU_QUALIFIERS): Likewise.
23391 * config/arm/arm_mve.h (vstrbq_s8): Define macro.
23392 (vstrbq_u8): Likewise.
23393 (vstrbq_u16): Likewise.
23394 (vstrbq_scatter_offset_s8): Likewise.
23395 (vstrbq_scatter_offset_u8): Likewise.
23396 (vstrbq_scatter_offset_u16): Likewise.
23397 (vstrbq_s16): Likewise.
23398 (vstrbq_u32): Likewise.
23399 (vstrbq_scatter_offset_s16): Likewise.
23400 (vstrbq_scatter_offset_u32): Likewise.
23401 (vstrbq_s32): Likewise.
23402 (vstrbq_scatter_offset_s32): Likewise.
23403 (vstrwq_scatter_base_s32): Likewise.
23404 (vstrwq_scatter_base_u32): Likewise.
23405 (__arm_vstrbq_scatter_offset_s8): Define intrinsic.
23406 (__arm_vstrbq_scatter_offset_s32): Likewise.
23407 (__arm_vstrbq_scatter_offset_s16): Likewise.
23408 (__arm_vstrbq_scatter_offset_u8): Likewise.
23409 (__arm_vstrbq_scatter_offset_u32): Likewise.
23410 (__arm_vstrbq_scatter_offset_u16): Likewise.
23411 (__arm_vstrbq_s8): Likewise.
23412 (__arm_vstrbq_s32): Likewise.
23413 (__arm_vstrbq_s16): Likewise.
23414 (__arm_vstrbq_u8): Likewise.
23415 (__arm_vstrbq_u32): Likewise.
23416 (__arm_vstrbq_u16): Likewise.
23417 (__arm_vstrwq_scatter_base_s32): Likewise.
23418 (__arm_vstrwq_scatter_base_u32): Likewise.
23419 (vstrbq): Define polymorphic variant.
23420 (vstrbq_scatter_offset): Likewise.
23421 (vstrwq_scatter_base): Likewise.
23422 * config/arm/arm_mve_builtins.def (STRS_QUALIFIERS): Use builtin
23423 qualifier.
23424 (STRU_QUALIFIERS): Likewise.
23425 (STRSS_QUALIFIERS): Likewise.
23426 (STRSU_QUALIFIERS): Likewise.
23427 (STRSBS_QUALIFIERS): Likewise.
23428 (STRSBU_QUALIFIERS): Likewise.
23429 * config/arm/mve.md (MVE_B_ELEM): Define mode attribute iterator.
23430 (VSTRWSBQ): Define iterators.
23431 (VSTRBSOQ): Likewise.
23432 (VSTRBQ): Likewise.
23433 (mve_vstrbq_<supf><mode>): Define RTL pattern.
23434 (mve_vstrbq_scatter_offset_<supf><mode>): Likewise.
23435 (mve_vstrwq_scatter_base_<supf>v4si): Likewise.
23436
23437 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23438 Mihail Ionescu <mihail.ionescu@arm.com>
23439 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23440
23441 * config/arm/arm_mve.h (vabdq_m_f32): Define macro.
23442 (vabdq_m_f16): Likewise.
23443 (vaddq_m_f32): Likewise.
23444 (vaddq_m_f16): Likewise.
23445 (vaddq_m_n_f32): Likewise.
23446 (vaddq_m_n_f16): Likewise.
23447 (vandq_m_f32): Likewise.
23448 (vandq_m_f16): Likewise.
23449 (vbicq_m_f32): Likewise.
23450 (vbicq_m_f16): Likewise.
23451 (vbrsrq_m_n_f32): Likewise.
23452 (vbrsrq_m_n_f16): Likewise.
23453 (vcaddq_rot270_m_f32): Likewise.
23454 (vcaddq_rot270_m_f16): Likewise.
23455 (vcaddq_rot90_m_f32): Likewise.
23456 (vcaddq_rot90_m_f16): Likewise.
23457 (vcmlaq_m_f32): Likewise.
23458 (vcmlaq_m_f16): Likewise.
23459 (vcmlaq_rot180_m_f32): Likewise.
23460 (vcmlaq_rot180_m_f16): Likewise.
23461 (vcmlaq_rot270_m_f32): Likewise.
23462 (vcmlaq_rot270_m_f16): Likewise.
23463 (vcmlaq_rot90_m_f32): Likewise.
23464 (vcmlaq_rot90_m_f16): Likewise.
23465 (vcmulq_m_f32): Likewise.
23466 (vcmulq_m_f16): Likewise.
23467 (vcmulq_rot180_m_f32): Likewise.
23468 (vcmulq_rot180_m_f16): Likewise.
23469 (vcmulq_rot270_m_f32): Likewise.
23470 (vcmulq_rot270_m_f16): Likewise.
23471 (vcmulq_rot90_m_f32): Likewise.
23472 (vcmulq_rot90_m_f16): Likewise.
23473 (vcvtq_m_n_s32_f32): Likewise.
23474 (vcvtq_m_n_s16_f16): Likewise.
23475 (vcvtq_m_n_u32_f32): Likewise.
23476 (vcvtq_m_n_u16_f16): Likewise.
23477 (veorq_m_f32): Likewise.
23478 (veorq_m_f16): Likewise.
23479 (vfmaq_m_f32): Likewise.
23480 (vfmaq_m_f16): Likewise.
23481 (vfmaq_m_n_f32): Likewise.
23482 (vfmaq_m_n_f16): Likewise.
23483 (vfmasq_m_n_f32): Likewise.
23484 (vfmasq_m_n_f16): Likewise.
23485 (vfmsq_m_f32): Likewise.
23486 (vfmsq_m_f16): Likewise.
23487 (vmaxnmq_m_f32): Likewise.
23488 (vmaxnmq_m_f16): Likewise.
23489 (vminnmq_m_f32): Likewise.
23490 (vminnmq_m_f16): Likewise.
23491 (vmulq_m_f32): Likewise.
23492 (vmulq_m_f16): Likewise.
23493 (vmulq_m_n_f32): Likewise.
23494 (vmulq_m_n_f16): Likewise.
23495 (vornq_m_f32): Likewise.
23496 (vornq_m_f16): Likewise.
23497 (vorrq_m_f32): Likewise.
23498 (vorrq_m_f16): Likewise.
23499 (vsubq_m_f32): Likewise.
23500 (vsubq_m_f16): Likewise.
23501 (vsubq_m_n_f32): Likewise.
23502 (vsubq_m_n_f16): Likewise.
23503 (__attribute__): Likewise.
23504 (__arm_vabdq_m_f32): Likewise.
23505 (__arm_vabdq_m_f16): Likewise.
23506 (__arm_vaddq_m_f32): Likewise.
23507 (__arm_vaddq_m_f16): Likewise.
23508 (__arm_vaddq_m_n_f32): Likewise.
23509 (__arm_vaddq_m_n_f16): Likewise.
23510 (__arm_vandq_m_f32): Likewise.
23511 (__arm_vandq_m_f16): Likewise.
23512 (__arm_vbicq_m_f32): Likewise.
23513 (__arm_vbicq_m_f16): Likewise.
23514 (__arm_vbrsrq_m_n_f32): Likewise.
23515 (__arm_vbrsrq_m_n_f16): Likewise.
23516 (__arm_vcaddq_rot270_m_f32): Likewise.
23517 (__arm_vcaddq_rot270_m_f16): Likewise.
23518 (__arm_vcaddq_rot90_m_f32): Likewise.
23519 (__arm_vcaddq_rot90_m_f16): Likewise.
23520 (__arm_vcmlaq_m_f32): Likewise.
23521 (__arm_vcmlaq_m_f16): Likewise.
23522 (__arm_vcmlaq_rot180_m_f32): Likewise.
23523 (__arm_vcmlaq_rot180_m_f16): Likewise.
23524 (__arm_vcmlaq_rot270_m_f32): Likewise.
23525 (__arm_vcmlaq_rot270_m_f16): Likewise.
23526 (__arm_vcmlaq_rot90_m_f32): Likewise.
23527 (__arm_vcmlaq_rot90_m_f16): Likewise.
23528 (__arm_vcmulq_m_f32): Likewise.
23529 (__arm_vcmulq_m_f16): Likewise.
23530 (__arm_vcmulq_rot180_m_f32): Define intrinsic.
23531 (__arm_vcmulq_rot180_m_f16): Likewise.
23532 (__arm_vcmulq_rot270_m_f32): Likewise.
23533 (__arm_vcmulq_rot270_m_f16): Likewise.
23534 (__arm_vcmulq_rot90_m_f32): Likewise.
23535 (__arm_vcmulq_rot90_m_f16): Likewise.
23536 (__arm_vcvtq_m_n_s32_f32): Likewise.
23537 (__arm_vcvtq_m_n_s16_f16): Likewise.
23538 (__arm_vcvtq_m_n_u32_f32): Likewise.
23539 (__arm_vcvtq_m_n_u16_f16): Likewise.
23540 (__arm_veorq_m_f32): Likewise.
23541 (__arm_veorq_m_f16): Likewise.
23542 (__arm_vfmaq_m_f32): Likewise.
23543 (__arm_vfmaq_m_f16): Likewise.
23544 (__arm_vfmaq_m_n_f32): Likewise.
23545 (__arm_vfmaq_m_n_f16): Likewise.
23546 (__arm_vfmasq_m_n_f32): Likewise.
23547 (__arm_vfmasq_m_n_f16): Likewise.
23548 (__arm_vfmsq_m_f32): Likewise.
23549 (__arm_vfmsq_m_f16): Likewise.
23550 (__arm_vmaxnmq_m_f32): Likewise.
23551 (__arm_vmaxnmq_m_f16): Likewise.
23552 (__arm_vminnmq_m_f32): Likewise.
23553 (__arm_vminnmq_m_f16): Likewise.
23554 (__arm_vmulq_m_f32): Likewise.
23555 (__arm_vmulq_m_f16): Likewise.
23556 (__arm_vmulq_m_n_f32): Likewise.
23557 (__arm_vmulq_m_n_f16): Likewise.
23558 (__arm_vornq_m_f32): Likewise.
23559 (__arm_vornq_m_f16): Likewise.
23560 (__arm_vorrq_m_f32): Likewise.
23561 (__arm_vorrq_m_f16): Likewise.
23562 (__arm_vsubq_m_f32): Likewise.
23563 (__arm_vsubq_m_f16): Likewise.
23564 (__arm_vsubq_m_n_f32): Likewise.
23565 (__arm_vsubq_m_n_f16): Likewise.
23566 (vabdq_m): Define polymorphic variant.
23567 (vaddq_m): Likewise.
23568 (vaddq_m_n): Likewise.
23569 (vandq_m): Likewise.
23570 (vbicq_m): Likewise.
23571 (vbrsrq_m_n): Likewise.
23572 (vcaddq_rot270_m): Likewise.
23573 (vcaddq_rot90_m): Likewise.
23574 (vcmlaq_m): Likewise.
23575 (vcmlaq_rot180_m): Likewise.
23576 (vcmlaq_rot270_m): Likewise.
23577 (vcmlaq_rot90_m): Likewise.
23578 (vcmulq_m): Likewise.
23579 (vcmulq_rot180_m): Likewise.
23580 (vcmulq_rot270_m): Likewise.
23581 (vcmulq_rot90_m): Likewise.
23582 (veorq_m): Likewise.
23583 (vfmaq_m): Likewise.
23584 (vfmaq_m_n): Likewise.
23585 (vfmasq_m_n): Likewise.
23586 (vfmsq_m): Likewise.
23587 (vmaxnmq_m): Likewise.
23588 (vminnmq_m): Likewise.
23589 (vmulq_m): Likewise.
23590 (vmulq_m_n): Likewise.
23591 (vornq_m): Likewise.
23592 (vsubq_m): Likewise.
23593 (vsubq_m_n): Likewise.
23594 (vorrq_m): Likewise.
23595 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
23596 builtin qualifier.
23597 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
23598 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
23599 * config/arm/mve.md (mve_vabdq_m_f<mode>): Define RTL pattern.
23600 (mve_vaddq_m_f<mode>): Likewise.
23601 (mve_vaddq_m_n_f<mode>): Likewise.
23602 (mve_vandq_m_f<mode>): Likewise.
23603 (mve_vbicq_m_f<mode>): Likewise.
23604 (mve_vbrsrq_m_n_f<mode>): Likewise.
23605 (mve_vcaddq_rot270_m_f<mode>): Likewise.
23606 (mve_vcaddq_rot90_m_f<mode>): Likewise.
23607 (mve_vcmlaq_m_f<mode>): Likewise.
23608 (mve_vcmlaq_rot180_m_f<mode>): Likewise.
23609 (mve_vcmlaq_rot270_m_f<mode>): Likewise.
23610 (mve_vcmlaq_rot90_m_f<mode>): Likewise.
23611 (mve_vcmulq_m_f<mode>): Likewise.
23612 (mve_vcmulq_rot180_m_f<mode>): Likewise.
23613 (mve_vcmulq_rot270_m_f<mode>): Likewise.
23614 (mve_vcmulq_rot90_m_f<mode>): Likewise.
23615 (mve_veorq_m_f<mode>): Likewise.
23616 (mve_vfmaq_m_f<mode>): Likewise.
23617 (mve_vfmaq_m_n_f<mode>): Likewise.
23618 (mve_vfmasq_m_n_f<mode>): Likewise.
23619 (mve_vfmsq_m_f<mode>): Likewise.
23620 (mve_vmaxnmq_m_f<mode>): Likewise.
23621 (mve_vminnmq_m_f<mode>): Likewise.
23622 (mve_vmulq_m_f<mode>): Likewise.
23623 (mve_vmulq_m_n_f<mode>): Likewise.
23624 (mve_vornq_m_f<mode>): Likewise.
23625 (mve_vorrq_m_f<mode>): Likewise.
23626 (mve_vsubq_m_f<mode>): Likewise.
23627 (mve_vsubq_m_n_f<mode>): Likewise.
23628
23629 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23630 Mihail Ionescu <mihail.ionescu@arm.com>
23631 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23632
23633 * config/arm/arm-protos.h (arm_mve_immediate_check):
23634 * config/arm/arm.c (arm_mve_immediate_check): Define fuction to check
23635 mode and interger value.
23636 * config/arm/arm_mve.h (vmlaldavaq_p_s32): Define macro.
23637 (vmlaldavaq_p_s16): Likewise.
23638 (vmlaldavaq_p_u32): Likewise.
23639 (vmlaldavaq_p_u16): Likewise.
23640 (vmlaldavaxq_p_s32): Likewise.
23641 (vmlaldavaxq_p_s16): Likewise.
23642 (vmlaldavaxq_p_u32): Likewise.
23643 (vmlaldavaxq_p_u16): Likewise.
23644 (vmlsldavaq_p_s32): Likewise.
23645 (vmlsldavaq_p_s16): Likewise.
23646 (vmlsldavaxq_p_s32): Likewise.
23647 (vmlsldavaxq_p_s16): Likewise.
23648 (vmullbq_poly_m_p8): Likewise.
23649 (vmullbq_poly_m_p16): Likewise.
23650 (vmulltq_poly_m_p8): Likewise.
23651 (vmulltq_poly_m_p16): Likewise.
23652 (vqdmullbq_m_n_s32): Likewise.
23653 (vqdmullbq_m_n_s16): Likewise.
23654 (vqdmullbq_m_s32): Likewise.
23655 (vqdmullbq_m_s16): Likewise.
23656 (vqdmulltq_m_n_s32): Likewise.
23657 (vqdmulltq_m_n_s16): Likewise.
23658 (vqdmulltq_m_s32): Likewise.
23659 (vqdmulltq_m_s16): Likewise.
23660 (vqrshrnbq_m_n_s32): Likewise.
23661 (vqrshrnbq_m_n_s16): Likewise.
23662 (vqrshrnbq_m_n_u32): Likewise.
23663 (vqrshrnbq_m_n_u16): Likewise.
23664 (vqrshrntq_m_n_s32): Likewise.
23665 (vqrshrntq_m_n_s16): Likewise.
23666 (vqrshrntq_m_n_u32): Likewise.
23667 (vqrshrntq_m_n_u16): Likewise.
23668 (vqrshrunbq_m_n_s32): Likewise.
23669 (vqrshrunbq_m_n_s16): Likewise.
23670 (vqrshruntq_m_n_s32): Likewise.
23671 (vqrshruntq_m_n_s16): Likewise.
23672 (vqshrnbq_m_n_s32): Likewise.
23673 (vqshrnbq_m_n_s16): Likewise.
23674 (vqshrnbq_m_n_u32): Likewise.
23675 (vqshrnbq_m_n_u16): Likewise.
23676 (vqshrntq_m_n_s32): Likewise.
23677 (vqshrntq_m_n_s16): Likewise.
23678 (vqshrntq_m_n_u32): Likewise.
23679 (vqshrntq_m_n_u16): Likewise.
23680 (vqshrunbq_m_n_s32): Likewise.
23681 (vqshrunbq_m_n_s16): Likewise.
23682 (vqshruntq_m_n_s32): Likewise.
23683 (vqshruntq_m_n_s16): Likewise.
23684 (vrmlaldavhaq_p_s32): Likewise.
23685 (vrmlaldavhaq_p_u32): Likewise.
23686 (vrmlaldavhaxq_p_s32): Likewise.
23687 (vrmlsldavhaq_p_s32): Likewise.
23688 (vrmlsldavhaxq_p_s32): Likewise.
23689 (vrshrnbq_m_n_s32): Likewise.
23690 (vrshrnbq_m_n_s16): Likewise.
23691 (vrshrnbq_m_n_u32): Likewise.
23692 (vrshrnbq_m_n_u16): Likewise.
23693 (vrshrntq_m_n_s32): Likewise.
23694 (vrshrntq_m_n_s16): Likewise.
23695 (vrshrntq_m_n_u32): Likewise.
23696 (vrshrntq_m_n_u16): Likewise.
23697 (vshllbq_m_n_s8): Likewise.
23698 (vshllbq_m_n_s16): Likewise.
23699 (vshllbq_m_n_u8): Likewise.
23700 (vshllbq_m_n_u16): Likewise.
23701 (vshlltq_m_n_s8): Likewise.
23702 (vshlltq_m_n_s16): Likewise.
23703 (vshlltq_m_n_u8): Likewise.
23704 (vshlltq_m_n_u16): Likewise.
23705 (vshrnbq_m_n_s32): Likewise.
23706 (vshrnbq_m_n_s16): Likewise.
23707 (vshrnbq_m_n_u32): Likewise.
23708 (vshrnbq_m_n_u16): Likewise.
23709 (vshrntq_m_n_s32): Likewise.
23710 (vshrntq_m_n_s16): Likewise.
23711 (vshrntq_m_n_u32): Likewise.
23712 (vshrntq_m_n_u16): Likewise.
23713 (__arm_vmlaldavaq_p_s32): Define intrinsic.
23714 (__arm_vmlaldavaq_p_s16): Likewise.
23715 (__arm_vmlaldavaq_p_u32): Likewise.
23716 (__arm_vmlaldavaq_p_u16): Likewise.
23717 (__arm_vmlaldavaxq_p_s32): Likewise.
23718 (__arm_vmlaldavaxq_p_s16): Likewise.
23719 (__arm_vmlaldavaxq_p_u32): Likewise.
23720 (__arm_vmlaldavaxq_p_u16): Likewise.
23721 (__arm_vmlsldavaq_p_s32): Likewise.
23722 (__arm_vmlsldavaq_p_s16): Likewise.
23723 (__arm_vmlsldavaxq_p_s32): Likewise.
23724 (__arm_vmlsldavaxq_p_s16): Likewise.
23725 (__arm_vmullbq_poly_m_p8): Likewise.
23726 (__arm_vmullbq_poly_m_p16): Likewise.
23727 (__arm_vmulltq_poly_m_p8): Likewise.
23728 (__arm_vmulltq_poly_m_p16): Likewise.
23729 (__arm_vqdmullbq_m_n_s32): Likewise.
23730 (__arm_vqdmullbq_m_n_s16): Likewise.
23731 (__arm_vqdmullbq_m_s32): Likewise.
23732 (__arm_vqdmullbq_m_s16): Likewise.
23733 (__arm_vqdmulltq_m_n_s32): Likewise.
23734 (__arm_vqdmulltq_m_n_s16): Likewise.
23735 (__arm_vqdmulltq_m_s32): Likewise.
23736 (__arm_vqdmulltq_m_s16): Likewise.
23737 (__arm_vqrshrnbq_m_n_s32): Likewise.
23738 (__arm_vqrshrnbq_m_n_s16): Likewise.
23739 (__arm_vqrshrnbq_m_n_u32): Likewise.
23740 (__arm_vqrshrnbq_m_n_u16): Likewise.
23741 (__arm_vqrshrntq_m_n_s32): Likewise.
23742 (__arm_vqrshrntq_m_n_s16): Likewise.
23743 (__arm_vqrshrntq_m_n_u32): Likewise.
23744 (__arm_vqrshrntq_m_n_u16): Likewise.
23745 (__arm_vqrshrunbq_m_n_s32): Likewise.
23746 (__arm_vqrshrunbq_m_n_s16): Likewise.
23747 (__arm_vqrshruntq_m_n_s32): Likewise.
23748 (__arm_vqrshruntq_m_n_s16): Likewise.
23749 (__arm_vqshrnbq_m_n_s32): Likewise.
23750 (__arm_vqshrnbq_m_n_s16): Likewise.
23751 (__arm_vqshrnbq_m_n_u32): Likewise.
23752 (__arm_vqshrnbq_m_n_u16): Likewise.
23753 (__arm_vqshrntq_m_n_s32): Likewise.
23754 (__arm_vqshrntq_m_n_s16): Likewise.
23755 (__arm_vqshrntq_m_n_u32): Likewise.
23756 (__arm_vqshrntq_m_n_u16): Likewise.
23757 (__arm_vqshrunbq_m_n_s32): Likewise.
23758 (__arm_vqshrunbq_m_n_s16): Likewise.
23759 (__arm_vqshruntq_m_n_s32): Likewise.
23760 (__arm_vqshruntq_m_n_s16): Likewise.
23761 (__arm_vrmlaldavhaq_p_s32): Likewise.
23762 (__arm_vrmlaldavhaq_p_u32): Likewise.
23763 (__arm_vrmlaldavhaxq_p_s32): Likewise.
23764 (__arm_vrmlsldavhaq_p_s32): Likewise.
23765 (__arm_vrmlsldavhaxq_p_s32): Likewise.
23766 (__arm_vrshrnbq_m_n_s32): Likewise.
23767 (__arm_vrshrnbq_m_n_s16): Likewise.
23768 (__arm_vrshrnbq_m_n_u32): Likewise.
23769 (__arm_vrshrnbq_m_n_u16): Likewise.
23770 (__arm_vrshrntq_m_n_s32): Likewise.
23771 (__arm_vrshrntq_m_n_s16): Likewise.
23772 (__arm_vrshrntq_m_n_u32): Likewise.
23773 (__arm_vrshrntq_m_n_u16): Likewise.
23774 (__arm_vshllbq_m_n_s8): Likewise.
23775 (__arm_vshllbq_m_n_s16): Likewise.
23776 (__arm_vshllbq_m_n_u8): Likewise.
23777 (__arm_vshllbq_m_n_u16): Likewise.
23778 (__arm_vshlltq_m_n_s8): Likewise.
23779 (__arm_vshlltq_m_n_s16): Likewise.
23780 (__arm_vshlltq_m_n_u8): Likewise.
23781 (__arm_vshlltq_m_n_u16): Likewise.
23782 (__arm_vshrnbq_m_n_s32): Likewise.
23783 (__arm_vshrnbq_m_n_s16): Likewise.
23784 (__arm_vshrnbq_m_n_u32): Likewise.
23785 (__arm_vshrnbq_m_n_u16): Likewise.
23786 (__arm_vshrntq_m_n_s32): Likewise.
23787 (__arm_vshrntq_m_n_s16): Likewise.
23788 (__arm_vshrntq_m_n_u32): Likewise.
23789 (__arm_vshrntq_m_n_u16): Likewise.
23790 (vmullbq_poly_m): Define polymorphic variant.
23791 (vmulltq_poly_m): Likewise.
23792 (vshllbq_m): Likewise.
23793 (vshrntq_m_n): Likewise.
23794 (vshrnbq_m_n): Likewise.
23795 (vshlltq_m_n): Likewise.
23796 (vshllbq_m_n): Likewise.
23797 (vrshrntq_m_n): Likewise.
23798 (vrshrnbq_m_n): Likewise.
23799 (vqshruntq_m_n): Likewise.
23800 (vqshrunbq_m_n): Likewise.
23801 (vqdmullbq_m_n): Likewise.
23802 (vqdmullbq_m): Likewise.
23803 (vqdmulltq_m_n): Likewise.
23804 (vqdmulltq_m): Likewise.
23805 (vqrshrnbq_m_n): Likewise.
23806 (vqrshrntq_m_n): Likewise.
23807 (vqrshrunbq_m_n): Likewise.
23808 (vqrshruntq_m_n): Likewise.
23809 (vqshrnbq_m_n): Likewise.
23810 (vqshrntq_m_n): Likewise.
23811 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
23812 builtin qualifiers.
23813 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
23814 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
23815 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
23816 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
23817 * config/arm/mve.md (VMLALDAVAQ_P): Define iterator.
23818 (VMLALDAVAXQ_P): Likewise.
23819 (VQRSHRNBQ_M_N): Likewise.
23820 (VQRSHRNTQ_M_N): Likewise.
23821 (VQSHRNBQ_M_N): Likewise.
23822 (VQSHRNTQ_M_N): Likewise.
23823 (VRSHRNBQ_M_N): Likewise.
23824 (VRSHRNTQ_M_N): Likewise.
23825 (VSHLLBQ_M_N): Likewise.
23826 (VSHLLTQ_M_N): Likewise.
23827 (VSHRNBQ_M_N): Likewise.
23828 (VSHRNTQ_M_N): Likewise.
23829 (mve_vmlaldavaq_p_<supf><mode>): Define RTL pattern.
23830 (mve_vmlaldavaxq_p_<supf><mode>): Likewise.
23831 (mve_vqrshrnbq_m_n_<supf><mode>): Likewise.
23832 (mve_vqrshrntq_m_n_<supf><mode>): Likewise.
23833 (mve_vqshrnbq_m_n_<supf><mode>): Likewise.
23834 (mve_vqshrntq_m_n_<supf><mode>): Likewise.
23835 (mve_vrmlaldavhaq_p_sv4si): Likewise.
23836 (mve_vrshrnbq_m_n_<supf><mode>): Likewise.
23837 (mve_vrshrntq_m_n_<supf><mode>): Likewise.
23838 (mve_vshllbq_m_n_<supf><mode>): Likewise.
23839 (mve_vshlltq_m_n_<supf><mode>): Likewise.
23840 (mve_vshrnbq_m_n_<supf><mode>): Likewise.
23841 (mve_vshrntq_m_n_<supf><mode>): Likewise.
23842 (mve_vmlsldavaq_p_s<mode>): Likewise.
23843 (mve_vmlsldavaxq_p_s<mode>): Likewise.
23844 (mve_vmullbq_poly_m_p<mode>): Likewise.
23845 (mve_vmulltq_poly_m_p<mode>): Likewise.
23846 (mve_vqdmullbq_m_n_s<mode>): Likewise.
23847 (mve_vqdmullbq_m_s<mode>): Likewise.
23848 (mve_vqdmulltq_m_n_s<mode>): Likewise.
23849 (mve_vqdmulltq_m_s<mode>): Likewise.
23850 (mve_vqrshrunbq_m_n_s<mode>): Likewise.
23851 (mve_vqrshruntq_m_n_s<mode>): Likewise.
23852 (mve_vqshrunbq_m_n_s<mode>): Likewise.
23853 (mve_vqshruntq_m_n_s<mode>): Likewise.
23854 (mve_vrmlaldavhaq_p_uv4si): Likewise.
23855 (mve_vrmlaldavhaxq_p_sv4si): Likewise.
23856 (mve_vrmlsldavhaq_p_sv4si): Likewise.
23857 (mve_vrmlsldavhaxq_p_sv4si): Likewise.
23858
23859 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
23860 Mihail Ionescu <mihail.ionescu@arm.com>
23861 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23862
23863 * config/arm/arm_mve.h (vabdq_m_s8): Define macro.
23864 (vabdq_m_s32): Likewise.
23865 (vabdq_m_s16): Likewise.
23866 (vabdq_m_u8): Likewise.
23867 (vabdq_m_u32): Likewise.
23868 (vabdq_m_u16): Likewise.
23869 (vaddq_m_n_s8): Likewise.
23870 (vaddq_m_n_s32): Likewise.
23871 (vaddq_m_n_s16): Likewise.
23872 (vaddq_m_n_u8): Likewise.
23873 (vaddq_m_n_u32): Likewise.
23874 (vaddq_m_n_u16): Likewise.
23875 (vaddq_m_s8): Likewise.
23876 (vaddq_m_s32): Likewise.
23877 (vaddq_m_s16): Likewise.
23878 (vaddq_m_u8): Likewise.
23879 (vaddq_m_u32): Likewise.
23880 (vaddq_m_u16): Likewise.
23881 (vandq_m_s8): Likewise.
23882 (vandq_m_s32): Likewise.
23883 (vandq_m_s16): Likewise.
23884 (vandq_m_u8): Likewise.
23885 (vandq_m_u32): Likewise.
23886 (vandq_m_u16): Likewise.
23887 (vbicq_m_s8): Likewise.
23888 (vbicq_m_s32): Likewise.
23889 (vbicq_m_s16): Likewise.
23890 (vbicq_m_u8): Likewise.
23891 (vbicq_m_u32): Likewise.
23892 (vbicq_m_u16): Likewise.
23893 (vbrsrq_m_n_s8): Likewise.
23894 (vbrsrq_m_n_s32): Likewise.
23895 (vbrsrq_m_n_s16): Likewise.
23896 (vbrsrq_m_n_u8): Likewise.
23897 (vbrsrq_m_n_u32): Likewise.
23898 (vbrsrq_m_n_u16): Likewise.
23899 (vcaddq_rot270_m_s8): Likewise.
23900 (vcaddq_rot270_m_s32): Likewise.
23901 (vcaddq_rot270_m_s16): Likewise.
23902 (vcaddq_rot270_m_u8): Likewise.
23903 (vcaddq_rot270_m_u32): Likewise.
23904 (vcaddq_rot270_m_u16): Likewise.
23905 (vcaddq_rot90_m_s8): Likewise.
23906 (vcaddq_rot90_m_s32): Likewise.
23907 (vcaddq_rot90_m_s16): Likewise.
23908 (vcaddq_rot90_m_u8): Likewise.
23909 (vcaddq_rot90_m_u32): Likewise.
23910 (vcaddq_rot90_m_u16): Likewise.
23911 (veorq_m_s8): Likewise.
23912 (veorq_m_s32): Likewise.
23913 (veorq_m_s16): Likewise.
23914 (veorq_m_u8): Likewise.
23915 (veorq_m_u32): Likewise.
23916 (veorq_m_u16): Likewise.
23917 (vhaddq_m_n_s8): Likewise.
23918 (vhaddq_m_n_s32): Likewise.
23919 (vhaddq_m_n_s16): Likewise.
23920 (vhaddq_m_n_u8): Likewise.
23921 (vhaddq_m_n_u32): Likewise.
23922 (vhaddq_m_n_u16): Likewise.
23923 (vhaddq_m_s8): Likewise.
23924 (vhaddq_m_s32): Likewise.
23925 (vhaddq_m_s16): Likewise.
23926 (vhaddq_m_u8): Likewise.
23927 (vhaddq_m_u32): Likewise.
23928 (vhaddq_m_u16): Likewise.
23929 (vhcaddq_rot270_m_s8): Likewise.
23930 (vhcaddq_rot270_m_s32): Likewise.
23931 (vhcaddq_rot270_m_s16): Likewise.
23932 (vhcaddq_rot90_m_s8): Likewise.
23933 (vhcaddq_rot90_m_s32): Likewise.
23934 (vhcaddq_rot90_m_s16): Likewise.
23935 (vhsubq_m_n_s8): Likewise.
23936 (vhsubq_m_n_s32): Likewise.
23937 (vhsubq_m_n_s16): Likewise.
23938 (vhsubq_m_n_u8): Likewise.
23939 (vhsubq_m_n_u32): Likewise.
23940 (vhsubq_m_n_u16): Likewise.
23941 (vhsubq_m_s8): Likewise.
23942 (vhsubq_m_s32): Likewise.
23943 (vhsubq_m_s16): Likewise.
23944 (vhsubq_m_u8): Likewise.
23945 (vhsubq_m_u32): Likewise.
23946 (vhsubq_m_u16): Likewise.
23947 (vmaxq_m_s8): Likewise.
23948 (vmaxq_m_s32): Likewise.
23949 (vmaxq_m_s16): Likewise.
23950 (vmaxq_m_u8): Likewise.
23951 (vmaxq_m_u32): Likewise.
23952 (vmaxq_m_u16): Likewise.
23953 (vminq_m_s8): Likewise.
23954 (vminq_m_s32): Likewise.
23955 (vminq_m_s16): Likewise.
23956 (vminq_m_u8): Likewise.
23957 (vminq_m_u32): Likewise.
23958 (vminq_m_u16): Likewise.
23959 (vmladavaq_p_s8): Likewise.
23960 (vmladavaq_p_s32): Likewise.
23961 (vmladavaq_p_s16): Likewise.
23962 (vmladavaq_p_u8): Likewise.
23963 (vmladavaq_p_u32): Likewise.
23964 (vmladavaq_p_u16): Likewise.
23965 (vmladavaxq_p_s8): Likewise.
23966 (vmladavaxq_p_s32): Likewise.
23967 (vmladavaxq_p_s16): Likewise.
23968 (vmlaq_m_n_s8): Likewise.
23969 (vmlaq_m_n_s32): Likewise.
23970 (vmlaq_m_n_s16): Likewise.
23971 (vmlaq_m_n_u8): Likewise.
23972 (vmlaq_m_n_u32): Likewise.
23973 (vmlaq_m_n_u16): Likewise.
23974 (vmlasq_m_n_s8): Likewise.
23975 (vmlasq_m_n_s32): Likewise.
23976 (vmlasq_m_n_s16): Likewise.
23977 (vmlasq_m_n_u8): Likewise.
23978 (vmlasq_m_n_u32): Likewise.
23979 (vmlasq_m_n_u16): Likewise.
23980 (vmlsdavaq_p_s8): Likewise.
23981 (vmlsdavaq_p_s32): Likewise.
23982 (vmlsdavaq_p_s16): Likewise.
23983 (vmlsdavaxq_p_s8): Likewise.
23984 (vmlsdavaxq_p_s32): Likewise.
23985 (vmlsdavaxq_p_s16): Likewise.
23986 (vmulhq_m_s8): Likewise.
23987 (vmulhq_m_s32): Likewise.
23988 (vmulhq_m_s16): Likewise.
23989 (vmulhq_m_u8): Likewise.
23990 (vmulhq_m_u32): Likewise.
23991 (vmulhq_m_u16): Likewise.
23992 (vmullbq_int_m_s8): Likewise.
23993 (vmullbq_int_m_s32): Likewise.
23994 (vmullbq_int_m_s16): Likewise.
23995 (vmullbq_int_m_u8): Likewise.
23996 (vmullbq_int_m_u32): Likewise.
23997 (vmullbq_int_m_u16): Likewise.
23998 (vmulltq_int_m_s8): Likewise.
23999 (vmulltq_int_m_s32): Likewise.
24000 (vmulltq_int_m_s16): Likewise.
24001 (vmulltq_int_m_u8): Likewise.
24002 (vmulltq_int_m_u32): Likewise.
24003 (vmulltq_int_m_u16): Likewise.
24004 (vmulq_m_n_s8): Likewise.
24005 (vmulq_m_n_s32): Likewise.
24006 (vmulq_m_n_s16): Likewise.
24007 (vmulq_m_n_u8): Likewise.
24008 (vmulq_m_n_u32): Likewise.
24009 (vmulq_m_n_u16): Likewise.
24010 (vmulq_m_s8): Likewise.
24011 (vmulq_m_s32): Likewise.
24012 (vmulq_m_s16): Likewise.
24013 (vmulq_m_u8): Likewise.
24014 (vmulq_m_u32): Likewise.
24015 (vmulq_m_u16): Likewise.
24016 (vornq_m_s8): Likewise.
24017 (vornq_m_s32): Likewise.
24018 (vornq_m_s16): Likewise.
24019 (vornq_m_u8): Likewise.
24020 (vornq_m_u32): Likewise.
24021 (vornq_m_u16): Likewise.
24022 (vorrq_m_s8): Likewise.
24023 (vorrq_m_s32): Likewise.
24024 (vorrq_m_s16): Likewise.
24025 (vorrq_m_u8): Likewise.
24026 (vorrq_m_u32): Likewise.
24027 (vorrq_m_u16): Likewise.
24028 (vqaddq_m_n_s8): Likewise.
24029 (vqaddq_m_n_s32): Likewise.
24030 (vqaddq_m_n_s16): Likewise.
24031 (vqaddq_m_n_u8): Likewise.
24032 (vqaddq_m_n_u32): Likewise.
24033 (vqaddq_m_n_u16): Likewise.
24034 (vqaddq_m_s8): Likewise.
24035 (vqaddq_m_s32): Likewise.
24036 (vqaddq_m_s16): Likewise.
24037 (vqaddq_m_u8): Likewise.
24038 (vqaddq_m_u32): Likewise.
24039 (vqaddq_m_u16): Likewise.
24040 (vqdmladhq_m_s8): Likewise.
24041 (vqdmladhq_m_s32): Likewise.
24042 (vqdmladhq_m_s16): Likewise.
24043 (vqdmladhxq_m_s8): Likewise.
24044 (vqdmladhxq_m_s32): Likewise.
24045 (vqdmladhxq_m_s16): Likewise.
24046 (vqdmlahq_m_n_s8): Likewise.
24047 (vqdmlahq_m_n_s32): Likewise.
24048 (vqdmlahq_m_n_s16): Likewise.
24049 (vqdmlahq_m_n_u8): Likewise.
24050 (vqdmlahq_m_n_u32): Likewise.
24051 (vqdmlahq_m_n_u16): Likewise.
24052 (vqdmlsdhq_m_s8): Likewise.
24053 (vqdmlsdhq_m_s32): Likewise.
24054 (vqdmlsdhq_m_s16): Likewise.
24055 (vqdmlsdhxq_m_s8): Likewise.
24056 (vqdmlsdhxq_m_s32): Likewise.
24057 (vqdmlsdhxq_m_s16): Likewise.
24058 (vqdmulhq_m_n_s8): Likewise.
24059 (vqdmulhq_m_n_s32): Likewise.
24060 (vqdmulhq_m_n_s16): Likewise.
24061 (vqdmulhq_m_s8): Likewise.
24062 (vqdmulhq_m_s32): Likewise.
24063 (vqdmulhq_m_s16): Likewise.
24064 (vqrdmladhq_m_s8): Likewise.
24065 (vqrdmladhq_m_s32): Likewise.
24066 (vqrdmladhq_m_s16): Likewise.
24067 (vqrdmladhxq_m_s8): Likewise.
24068 (vqrdmladhxq_m_s32): Likewise.
24069 (vqrdmladhxq_m_s16): Likewise.
24070 (vqrdmlahq_m_n_s8): Likewise.
24071 (vqrdmlahq_m_n_s32): Likewise.
24072 (vqrdmlahq_m_n_s16): Likewise.
24073 (vqrdmlahq_m_n_u8): Likewise.
24074 (vqrdmlahq_m_n_u32): Likewise.
24075 (vqrdmlahq_m_n_u16): Likewise.
24076 (vqrdmlashq_m_n_s8): Likewise.
24077 (vqrdmlashq_m_n_s32): Likewise.
24078 (vqrdmlashq_m_n_s16): Likewise.
24079 (vqrdmlashq_m_n_u8): Likewise.
24080 (vqrdmlashq_m_n_u32): Likewise.
24081 (vqrdmlashq_m_n_u16): Likewise.
24082 (vqrdmlsdhq_m_s8): Likewise.
24083 (vqrdmlsdhq_m_s32): Likewise.
24084 (vqrdmlsdhq_m_s16): Likewise.
24085 (vqrdmlsdhxq_m_s8): Likewise.
24086 (vqrdmlsdhxq_m_s32): Likewise.
24087 (vqrdmlsdhxq_m_s16): Likewise.
24088 (vqrdmulhq_m_n_s8): Likewise.
24089 (vqrdmulhq_m_n_s32): Likewise.
24090 (vqrdmulhq_m_n_s16): Likewise.
24091 (vqrdmulhq_m_s8): Likewise.
24092 (vqrdmulhq_m_s32): Likewise.
24093 (vqrdmulhq_m_s16): Likewise.
24094 (vqrshlq_m_s8): Likewise.
24095 (vqrshlq_m_s32): Likewise.
24096 (vqrshlq_m_s16): Likewise.
24097 (vqrshlq_m_u8): Likewise.
24098 (vqrshlq_m_u32): Likewise.
24099 (vqrshlq_m_u16): Likewise.
24100 (vqshlq_m_n_s8): Likewise.
24101 (vqshlq_m_n_s32): Likewise.
24102 (vqshlq_m_n_s16): Likewise.
24103 (vqshlq_m_n_u8): Likewise.
24104 (vqshlq_m_n_u32): Likewise.
24105 (vqshlq_m_n_u16): Likewise.
24106 (vqshlq_m_s8): Likewise.
24107 (vqshlq_m_s32): Likewise.
24108 (vqshlq_m_s16): Likewise.
24109 (vqshlq_m_u8): Likewise.
24110 (vqshlq_m_u32): Likewise.
24111 (vqshlq_m_u16): Likewise.
24112 (vqsubq_m_n_s8): Likewise.
24113 (vqsubq_m_n_s32): Likewise.
24114 (vqsubq_m_n_s16): Likewise.
24115 (vqsubq_m_n_u8): Likewise.
24116 (vqsubq_m_n_u32): Likewise.
24117 (vqsubq_m_n_u16): Likewise.
24118 (vqsubq_m_s8): Likewise.
24119 (vqsubq_m_s32): Likewise.
24120 (vqsubq_m_s16): Likewise.
24121 (vqsubq_m_u8): Likewise.
24122 (vqsubq_m_u32): Likewise.
24123 (vqsubq_m_u16): Likewise.
24124 (vrhaddq_m_s8): Likewise.
24125 (vrhaddq_m_s32): Likewise.
24126 (vrhaddq_m_s16): Likewise.
24127 (vrhaddq_m_u8): Likewise.
24128 (vrhaddq_m_u32): Likewise.
24129 (vrhaddq_m_u16): Likewise.
24130 (vrmulhq_m_s8): Likewise.
24131 (vrmulhq_m_s32): Likewise.
24132 (vrmulhq_m_s16): Likewise.
24133 (vrmulhq_m_u8): Likewise.
24134 (vrmulhq_m_u32): Likewise.
24135 (vrmulhq_m_u16): Likewise.
24136 (vrshlq_m_s8): Likewise.
24137 (vrshlq_m_s32): Likewise.
24138 (vrshlq_m_s16): Likewise.
24139 (vrshlq_m_u8): Likewise.
24140 (vrshlq_m_u32): Likewise.
24141 (vrshlq_m_u16): Likewise.
24142 (vrshrq_m_n_s8): Likewise.
24143 (vrshrq_m_n_s32): Likewise.
24144 (vrshrq_m_n_s16): Likewise.
24145 (vrshrq_m_n_u8): Likewise.
24146 (vrshrq_m_n_u32): Likewise.
24147 (vrshrq_m_n_u16): Likewise.
24148 (vshlq_m_n_s8): Likewise.
24149 (vshlq_m_n_s32): Likewise.
24150 (vshlq_m_n_s16): Likewise.
24151 (vshlq_m_n_u8): Likewise.
24152 (vshlq_m_n_u32): Likewise.
24153 (vshlq_m_n_u16): Likewise.
24154 (vshrq_m_n_s8): Likewise.
24155 (vshrq_m_n_s32): Likewise.
24156 (vshrq_m_n_s16): Likewise.
24157 (vshrq_m_n_u8): Likewise.
24158 (vshrq_m_n_u32): Likewise.
24159 (vshrq_m_n_u16): Likewise.
24160 (vsliq_m_n_s8): Likewise.
24161 (vsliq_m_n_s32): Likewise.
24162 (vsliq_m_n_s16): Likewise.
24163 (vsliq_m_n_u8): Likewise.
24164 (vsliq_m_n_u32): Likewise.
24165 (vsliq_m_n_u16): Likewise.
24166 (vsubq_m_n_s8): Likewise.
24167 (vsubq_m_n_s32): Likewise.
24168 (vsubq_m_n_s16): Likewise.
24169 (vsubq_m_n_u8): Likewise.
24170 (vsubq_m_n_u32): Likewise.
24171 (vsubq_m_n_u16): Likewise.
24172 (__arm_vabdq_m_s8): Define intrinsic.
24173 (__arm_vabdq_m_s32): Likewise.
24174 (__arm_vabdq_m_s16): Likewise.
24175 (__arm_vabdq_m_u8): Likewise.
24176 (__arm_vabdq_m_u32): Likewise.
24177 (__arm_vabdq_m_u16): Likewise.
24178 (__arm_vaddq_m_n_s8): Likewise.
24179 (__arm_vaddq_m_n_s32): Likewise.
24180 (__arm_vaddq_m_n_s16): Likewise.
24181 (__arm_vaddq_m_n_u8): Likewise.
24182 (__arm_vaddq_m_n_u32): Likewise.
24183 (__arm_vaddq_m_n_u16): Likewise.
24184 (__arm_vaddq_m_s8): Likewise.
24185 (__arm_vaddq_m_s32): Likewise.
24186 (__arm_vaddq_m_s16): Likewise.
24187 (__arm_vaddq_m_u8): Likewise.
24188 (__arm_vaddq_m_u32): Likewise.
24189 (__arm_vaddq_m_u16): Likewise.
24190 (__arm_vandq_m_s8): Likewise.
24191 (__arm_vandq_m_s32): Likewise.
24192 (__arm_vandq_m_s16): Likewise.
24193 (__arm_vandq_m_u8): Likewise.
24194 (__arm_vandq_m_u32): Likewise.
24195 (__arm_vandq_m_u16): Likewise.
24196 (__arm_vbicq_m_s8): Likewise.
24197 (__arm_vbicq_m_s32): Likewise.
24198 (__arm_vbicq_m_s16): Likewise.
24199 (__arm_vbicq_m_u8): Likewise.
24200 (__arm_vbicq_m_u32): Likewise.
24201 (__arm_vbicq_m_u16): Likewise.
24202 (__arm_vbrsrq_m_n_s8): Likewise.
24203 (__arm_vbrsrq_m_n_s32): Likewise.
24204 (__arm_vbrsrq_m_n_s16): Likewise.
24205 (__arm_vbrsrq_m_n_u8): Likewise.
24206 (__arm_vbrsrq_m_n_u32): Likewise.
24207 (__arm_vbrsrq_m_n_u16): Likewise.
24208 (__arm_vcaddq_rot270_m_s8): Likewise.
24209 (__arm_vcaddq_rot270_m_s32): Likewise.
24210 (__arm_vcaddq_rot270_m_s16): Likewise.
24211 (__arm_vcaddq_rot270_m_u8): Likewise.
24212 (__arm_vcaddq_rot270_m_u32): Likewise.
24213 (__arm_vcaddq_rot270_m_u16): Likewise.
24214 (__arm_vcaddq_rot90_m_s8): Likewise.
24215 (__arm_vcaddq_rot90_m_s32): Likewise.
24216 (__arm_vcaddq_rot90_m_s16): Likewise.
24217 (__arm_vcaddq_rot90_m_u8): Likewise.
24218 (__arm_vcaddq_rot90_m_u32): Likewise.
24219 (__arm_vcaddq_rot90_m_u16): Likewise.
24220 (__arm_veorq_m_s8): Likewise.
24221 (__arm_veorq_m_s32): Likewise.
24222 (__arm_veorq_m_s16): Likewise.
24223 (__arm_veorq_m_u8): Likewise.
24224 (__arm_veorq_m_u32): Likewise.
24225 (__arm_veorq_m_u16): Likewise.
24226 (__arm_vhaddq_m_n_s8): Likewise.
24227 (__arm_vhaddq_m_n_s32): Likewise.
24228 (__arm_vhaddq_m_n_s16): Likewise.
24229 (__arm_vhaddq_m_n_u8): Likewise.
24230 (__arm_vhaddq_m_n_u32): Likewise.
24231 (__arm_vhaddq_m_n_u16): Likewise.
24232 (__arm_vhaddq_m_s8): Likewise.
24233 (__arm_vhaddq_m_s32): Likewise.
24234 (__arm_vhaddq_m_s16): Likewise.
24235 (__arm_vhaddq_m_u8): Likewise.
24236 (__arm_vhaddq_m_u32): Likewise.
24237 (__arm_vhaddq_m_u16): Likewise.
24238 (__arm_vhcaddq_rot270_m_s8): Likewise.
24239 (__arm_vhcaddq_rot270_m_s32): Likewise.
24240 (__arm_vhcaddq_rot270_m_s16): Likewise.
24241 (__arm_vhcaddq_rot90_m_s8): Likewise.
24242 (__arm_vhcaddq_rot90_m_s32): Likewise.
24243 (__arm_vhcaddq_rot90_m_s16): Likewise.
24244 (__arm_vhsubq_m_n_s8): Likewise.
24245 (__arm_vhsubq_m_n_s32): Likewise.
24246 (__arm_vhsubq_m_n_s16): Likewise.
24247 (__arm_vhsubq_m_n_u8): Likewise.
24248 (__arm_vhsubq_m_n_u32): Likewise.
24249 (__arm_vhsubq_m_n_u16): Likewise.
24250 (__arm_vhsubq_m_s8): Likewise.
24251 (__arm_vhsubq_m_s32): Likewise.
24252 (__arm_vhsubq_m_s16): Likewise.
24253 (__arm_vhsubq_m_u8): Likewise.
24254 (__arm_vhsubq_m_u32): Likewise.
24255 (__arm_vhsubq_m_u16): Likewise.
24256 (__arm_vmaxq_m_s8): Likewise.
24257 (__arm_vmaxq_m_s32): Likewise.
24258 (__arm_vmaxq_m_s16): Likewise.
24259 (__arm_vmaxq_m_u8): Likewise.
24260 (__arm_vmaxq_m_u32): Likewise.
24261 (__arm_vmaxq_m_u16): Likewise.
24262 (__arm_vminq_m_s8): Likewise.
24263 (__arm_vminq_m_s32): Likewise.
24264 (__arm_vminq_m_s16): Likewise.
24265 (__arm_vminq_m_u8): Likewise.
24266 (__arm_vminq_m_u32): Likewise.
24267 (__arm_vminq_m_u16): Likewise.
24268 (__arm_vmladavaq_p_s8): Likewise.
24269 (__arm_vmladavaq_p_s32): Likewise.
24270 (__arm_vmladavaq_p_s16): Likewise.
24271 (__arm_vmladavaq_p_u8): Likewise.
24272 (__arm_vmladavaq_p_u32): Likewise.
24273 (__arm_vmladavaq_p_u16): Likewise.
24274 (__arm_vmladavaxq_p_s8): Likewise.
24275 (__arm_vmladavaxq_p_s32): Likewise.
24276 (__arm_vmladavaxq_p_s16): Likewise.
24277 (__arm_vmlaq_m_n_s8): Likewise.
24278 (__arm_vmlaq_m_n_s32): Likewise.
24279 (__arm_vmlaq_m_n_s16): Likewise.
24280 (__arm_vmlaq_m_n_u8): Likewise.
24281 (__arm_vmlaq_m_n_u32): Likewise.
24282 (__arm_vmlaq_m_n_u16): Likewise.
24283 (__arm_vmlasq_m_n_s8): Likewise.
24284 (__arm_vmlasq_m_n_s32): Likewise.
24285 (__arm_vmlasq_m_n_s16): Likewise.
24286 (__arm_vmlasq_m_n_u8): Likewise.
24287 (__arm_vmlasq_m_n_u32): Likewise.
24288 (__arm_vmlasq_m_n_u16): Likewise.
24289 (__arm_vmlsdavaq_p_s8): Likewise.
24290 (__arm_vmlsdavaq_p_s32): Likewise.
24291 (__arm_vmlsdavaq_p_s16): Likewise.
24292 (__arm_vmlsdavaxq_p_s8): Likewise.
24293 (__arm_vmlsdavaxq_p_s32): Likewise.
24294 (__arm_vmlsdavaxq_p_s16): Likewise.
24295 (__arm_vmulhq_m_s8): Likewise.
24296 (__arm_vmulhq_m_s32): Likewise.
24297 (__arm_vmulhq_m_s16): Likewise.
24298 (__arm_vmulhq_m_u8): Likewise.
24299 (__arm_vmulhq_m_u32): Likewise.
24300 (__arm_vmulhq_m_u16): Likewise.
24301 (__arm_vmullbq_int_m_s8): Likewise.
24302 (__arm_vmullbq_int_m_s32): Likewise.
24303 (__arm_vmullbq_int_m_s16): Likewise.
24304 (__arm_vmullbq_int_m_u8): Likewise.
24305 (__arm_vmullbq_int_m_u32): Likewise.
24306 (__arm_vmullbq_int_m_u16): Likewise.
24307 (__arm_vmulltq_int_m_s8): Likewise.
24308 (__arm_vmulltq_int_m_s32): Likewise.
24309 (__arm_vmulltq_int_m_s16): Likewise.
24310 (__arm_vmulltq_int_m_u8): Likewise.
24311 (__arm_vmulltq_int_m_u32): Likewise.
24312 (__arm_vmulltq_int_m_u16): Likewise.
24313 (__arm_vmulq_m_n_s8): Likewise.
24314 (__arm_vmulq_m_n_s32): Likewise.
24315 (__arm_vmulq_m_n_s16): Likewise.
24316 (__arm_vmulq_m_n_u8): Likewise.
24317 (__arm_vmulq_m_n_u32): Likewise.
24318 (__arm_vmulq_m_n_u16): Likewise.
24319 (__arm_vmulq_m_s8): Likewise.
24320 (__arm_vmulq_m_s32): Likewise.
24321 (__arm_vmulq_m_s16): Likewise.
24322 (__arm_vmulq_m_u8): Likewise.
24323 (__arm_vmulq_m_u32): Likewise.
24324 (__arm_vmulq_m_u16): Likewise.
24325 (__arm_vornq_m_s8): Likewise.
24326 (__arm_vornq_m_s32): Likewise.
24327 (__arm_vornq_m_s16): Likewise.
24328 (__arm_vornq_m_u8): Likewise.
24329 (__arm_vornq_m_u32): Likewise.
24330 (__arm_vornq_m_u16): Likewise.
24331 (__arm_vorrq_m_s8): Likewise.
24332 (__arm_vorrq_m_s32): Likewise.
24333 (__arm_vorrq_m_s16): Likewise.
24334 (__arm_vorrq_m_u8): Likewise.
24335 (__arm_vorrq_m_u32): Likewise.
24336 (__arm_vorrq_m_u16): Likewise.
24337 (__arm_vqaddq_m_n_s8): Likewise.
24338 (__arm_vqaddq_m_n_s32): Likewise.
24339 (__arm_vqaddq_m_n_s16): Likewise.
24340 (__arm_vqaddq_m_n_u8): Likewise.
24341 (__arm_vqaddq_m_n_u32): Likewise.
24342 (__arm_vqaddq_m_n_u16): Likewise.
24343 (__arm_vqaddq_m_s8): Likewise.
24344 (__arm_vqaddq_m_s32): Likewise.
24345 (__arm_vqaddq_m_s16): Likewise.
24346 (__arm_vqaddq_m_u8): Likewise.
24347 (__arm_vqaddq_m_u32): Likewise.
24348 (__arm_vqaddq_m_u16): Likewise.
24349 (__arm_vqdmladhq_m_s8): Likewise.
24350 (__arm_vqdmladhq_m_s32): Likewise.
24351 (__arm_vqdmladhq_m_s16): Likewise.
24352 (__arm_vqdmladhxq_m_s8): Likewise.
24353 (__arm_vqdmladhxq_m_s32): Likewise.
24354 (__arm_vqdmladhxq_m_s16): Likewise.
24355 (__arm_vqdmlahq_m_n_s8): Likewise.
24356 (__arm_vqdmlahq_m_n_s32): Likewise.
24357 (__arm_vqdmlahq_m_n_s16): Likewise.
24358 (__arm_vqdmlahq_m_n_u8): Likewise.
24359 (__arm_vqdmlahq_m_n_u32): Likewise.
24360 (__arm_vqdmlahq_m_n_u16): Likewise.
24361 (__arm_vqdmlsdhq_m_s8): Likewise.
24362 (__arm_vqdmlsdhq_m_s32): Likewise.
24363 (__arm_vqdmlsdhq_m_s16): Likewise.
24364 (__arm_vqdmlsdhxq_m_s8): Likewise.
24365 (__arm_vqdmlsdhxq_m_s32): Likewise.
24366 (__arm_vqdmlsdhxq_m_s16): Likewise.
24367 (__arm_vqdmulhq_m_n_s8): Likewise.
24368 (__arm_vqdmulhq_m_n_s32): Likewise.
24369 (__arm_vqdmulhq_m_n_s16): Likewise.
24370 (__arm_vqdmulhq_m_s8): Likewise.
24371 (__arm_vqdmulhq_m_s32): Likewise.
24372 (__arm_vqdmulhq_m_s16): Likewise.
24373 (__arm_vqrdmladhq_m_s8): Likewise.
24374 (__arm_vqrdmladhq_m_s32): Likewise.
24375 (__arm_vqrdmladhq_m_s16): Likewise.
24376 (__arm_vqrdmladhxq_m_s8): Likewise.
24377 (__arm_vqrdmladhxq_m_s32): Likewise.
24378 (__arm_vqrdmladhxq_m_s16): Likewise.
24379 (__arm_vqrdmlahq_m_n_s8): Likewise.
24380 (__arm_vqrdmlahq_m_n_s32): Likewise.
24381 (__arm_vqrdmlahq_m_n_s16): Likewise.
24382 (__arm_vqrdmlahq_m_n_u8): Likewise.
24383 (__arm_vqrdmlahq_m_n_u32): Likewise.
24384 (__arm_vqrdmlahq_m_n_u16): Likewise.
24385 (__arm_vqrdmlashq_m_n_s8): Likewise.
24386 (__arm_vqrdmlashq_m_n_s32): Likewise.
24387 (__arm_vqrdmlashq_m_n_s16): Likewise.
24388 (__arm_vqrdmlashq_m_n_u8): Likewise.
24389 (__arm_vqrdmlashq_m_n_u32): Likewise.
24390 (__arm_vqrdmlashq_m_n_u16): Likewise.
24391 (__arm_vqrdmlsdhq_m_s8): Likewise.
24392 (__arm_vqrdmlsdhq_m_s32): Likewise.
24393 (__arm_vqrdmlsdhq_m_s16): Likewise.
24394 (__arm_vqrdmlsdhxq_m_s8): Likewise.
24395 (__arm_vqrdmlsdhxq_m_s32): Likewise.
24396 (__arm_vqrdmlsdhxq_m_s16): Likewise.
24397 (__arm_vqrdmulhq_m_n_s8): Likewise.
24398 (__arm_vqrdmulhq_m_n_s32): Likewise.
24399 (__arm_vqrdmulhq_m_n_s16): Likewise.
24400 (__arm_vqrdmulhq_m_s8): Likewise.
24401 (__arm_vqrdmulhq_m_s32): Likewise.
24402 (__arm_vqrdmulhq_m_s16): Likewise.
24403 (__arm_vqrshlq_m_s8): Likewise.
24404 (__arm_vqrshlq_m_s32): Likewise.
24405 (__arm_vqrshlq_m_s16): Likewise.
24406 (__arm_vqrshlq_m_u8): Likewise.
24407 (__arm_vqrshlq_m_u32): Likewise.
24408 (__arm_vqrshlq_m_u16): Likewise.
24409 (__arm_vqshlq_m_n_s8): Likewise.
24410 (__arm_vqshlq_m_n_s32): Likewise.
24411 (__arm_vqshlq_m_n_s16): Likewise.
24412 (__arm_vqshlq_m_n_u8): Likewise.
24413 (__arm_vqshlq_m_n_u32): Likewise.
24414 (__arm_vqshlq_m_n_u16): Likewise.
24415 (__arm_vqshlq_m_s8): Likewise.
24416 (__arm_vqshlq_m_s32): Likewise.
24417 (__arm_vqshlq_m_s16): Likewise.
24418 (__arm_vqshlq_m_u8): Likewise.
24419 (__arm_vqshlq_m_u32): Likewise.
24420 (__arm_vqshlq_m_u16): Likewise.
24421 (__arm_vqsubq_m_n_s8): Likewise.
24422 (__arm_vqsubq_m_n_s32): Likewise.
24423 (__arm_vqsubq_m_n_s16): Likewise.
24424 (__arm_vqsubq_m_n_u8): Likewise.
24425 (__arm_vqsubq_m_n_u32): Likewise.
24426 (__arm_vqsubq_m_n_u16): Likewise.
24427 (__arm_vqsubq_m_s8): Likewise.
24428 (__arm_vqsubq_m_s32): Likewise.
24429 (__arm_vqsubq_m_s16): Likewise.
24430 (__arm_vqsubq_m_u8): Likewise.
24431 (__arm_vqsubq_m_u32): Likewise.
24432 (__arm_vqsubq_m_u16): Likewise.
24433 (__arm_vrhaddq_m_s8): Likewise.
24434 (__arm_vrhaddq_m_s32): Likewise.
24435 (__arm_vrhaddq_m_s16): Likewise.
24436 (__arm_vrhaddq_m_u8): Likewise.
24437 (__arm_vrhaddq_m_u32): Likewise.
24438 (__arm_vrhaddq_m_u16): Likewise.
24439 (__arm_vrmulhq_m_s8): Likewise.
24440 (__arm_vrmulhq_m_s32): Likewise.
24441 (__arm_vrmulhq_m_s16): Likewise.
24442 (__arm_vrmulhq_m_u8): Likewise.
24443 (__arm_vrmulhq_m_u32): Likewise.
24444 (__arm_vrmulhq_m_u16): Likewise.
24445 (__arm_vrshlq_m_s8): Likewise.
24446 (__arm_vrshlq_m_s32): Likewise.
24447 (__arm_vrshlq_m_s16): Likewise.
24448 (__arm_vrshlq_m_u8): Likewise.
24449 (__arm_vrshlq_m_u32): Likewise.
24450 (__arm_vrshlq_m_u16): Likewise.
24451 (__arm_vrshrq_m_n_s8): Likewise.
24452 (__arm_vrshrq_m_n_s32): Likewise.
24453 (__arm_vrshrq_m_n_s16): Likewise.
24454 (__arm_vrshrq_m_n_u8): Likewise.
24455 (__arm_vrshrq_m_n_u32): Likewise.
24456 (__arm_vrshrq_m_n_u16): Likewise.
24457 (__arm_vshlq_m_n_s8): Likewise.
24458 (__arm_vshlq_m_n_s32): Likewise.
24459 (__arm_vshlq_m_n_s16): Likewise.
24460 (__arm_vshlq_m_n_u8): Likewise.
24461 (__arm_vshlq_m_n_u32): Likewise.
24462 (__arm_vshlq_m_n_u16): Likewise.
24463 (__arm_vshrq_m_n_s8): Likewise.
24464 (__arm_vshrq_m_n_s32): Likewise.
24465 (__arm_vshrq_m_n_s16): Likewise.
24466 (__arm_vshrq_m_n_u8): Likewise.
24467 (__arm_vshrq_m_n_u32): Likewise.
24468 (__arm_vshrq_m_n_u16): Likewise.
24469 (__arm_vsliq_m_n_s8): Likewise.
24470 (__arm_vsliq_m_n_s32): Likewise.
24471 (__arm_vsliq_m_n_s16): Likewise.
24472 (__arm_vsliq_m_n_u8): Likewise.
24473 (__arm_vsliq_m_n_u32): Likewise.
24474 (__arm_vsliq_m_n_u16): Likewise.
24475 (__arm_vsubq_m_n_s8): Likewise.
24476 (__arm_vsubq_m_n_s32): Likewise.
24477 (__arm_vsubq_m_n_s16): Likewise.
24478 (__arm_vsubq_m_n_u8): Likewise.
24479 (__arm_vsubq_m_n_u32): Likewise.
24480 (__arm_vsubq_m_n_u16): Likewise.
24481 (vqdmladhq_m): Define polymorphic variant.
24482 (vqdmladhxq_m): Likewise.
24483 (vqdmlsdhq_m): Likewise.
24484 (vqdmlsdhxq_m): Likewise.
24485 (vabdq_m): Likewise.
24486 (vandq_m): Likewise.
24487 (vbicq_m): Likewise.
24488 (vbrsrq_m_n): Likewise.
24489 (vcaddq_rot270_m): Likewise.
24490 (vcaddq_rot90_m): Likewise.
24491 (veorq_m): Likewise.
24492 (vmaxq_m): Likewise.
24493 (vminq_m): Likewise.
24494 (vmladavaq_p): Likewise.
24495 (vmlaq_m_n): Likewise.
24496 (vmlasq_m_n): Likewise.
24497 (vmulhq_m): Likewise.
24498 (vmullbq_int_m): Likewise.
24499 (vmulltq_int_m): Likewise.
24500 (vornq_m): Likewise.
24501 (vorrq_m): Likewise.
24502 (vqdmlahq_m_n): Likewise.
24503 (vqrdmlahq_m_n): Likewise.
24504 (vqrdmlashq_m_n): Likewise.
24505 (vqrshlq_m): Likewise.
24506 (vqshlq_m_n): Likewise.
24507 (vqshlq_m): Likewise.
24508 (vrhaddq_m): Likewise.
24509 (vrmulhq_m): Likewise.
24510 (vrshlq_m): Likewise.
24511 (vrshrq_m_n): Likewise.
24512 (vshlq_m_n): Likewise.
24513 (vshrq_m_n): Likewise.
24514 (vsliq_m): Likewise.
24515 (vaddq_m_n): Likewise.
24516 (vaddq_m): Likewise.
24517 (vhaddq_m_n): Likewise.
24518 (vhaddq_m): Likewise.
24519 (vhcaddq_rot270_m): Likewise.
24520 (vhcaddq_rot90_m): Likewise.
24521 (vhsubq_m): Likewise.
24522 (vhsubq_m_n): Likewise.
24523 (vmulq_m_n): Likewise.
24524 (vmulq_m): Likewise.
24525 (vqaddq_m_n): Likewise.
24526 (vqaddq_m): Likewise.
24527 (vqdmulhq_m_n): Likewise.
24528 (vqdmulhq_m): Likewise.
24529 (vsubq_m_n): Likewise.
24530 (vsliq_m_n): Likewise.
24531 (vqsubq_m_n): Likewise.
24532 (vqsubq_m): Likewise.
24533 (vqrdmulhq_m): Likewise.
24534 (vqrdmulhq_m_n): Likewise.
24535 (vqrdmlsdhxq_m): Likewise.
24536 (vqrdmlsdhq_m): Likewise.
24537 (vqrdmladhq_m): Likewise.
24538 (vqrdmladhxq_m): Likewise.
24539 (vmlsdavaxq_p): Likewise.
24540 (vmlsdavaq_p): Likewise.
24541 (vmladavaxq_p): Likewise.
24542 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
24543 builtin qualifier.
24544 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
24545 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
24546 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE): Likewise.
24547 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
24548 * config/arm/mve.md (VHSUBQ_M): Define iterators.
24549 (VSLIQ_M_N): Likewise.
24550 (VQRDMLAHQ_M_N): Likewise.
24551 (VRSHLQ_M): Likewise.
24552 (VMINQ_M): Likewise.
24553 (VMULLBQ_INT_M): Likewise.
24554 (VMULHQ_M): Likewise.
24555 (VMULQ_M): Likewise.
24556 (VHSUBQ_M_N): Likewise.
24557 (VHADDQ_M_N): Likewise.
24558 (VORRQ_M): Likewise.
24559 (VRMULHQ_M): Likewise.
24560 (VQADDQ_M): Likewise.
24561 (VRSHRQ_M_N): Likewise.
24562 (VQSUBQ_M_N): Likewise.
24563 (VADDQ_M): Likewise.
24564 (VORNQ_M): Likewise.
24565 (VQDMLAHQ_M_N): Likewise.
24566 (VRHADDQ_M): Likewise.
24567 (VQSHLQ_M): Likewise.
24568 (VANDQ_M): Likewise.
24569 (VBICQ_M): Likewise.
24570 (VSHLQ_M_N): Likewise.
24571 (VCADDQ_ROT270_M): Likewise.
24572 (VQRSHLQ_M): Likewise.
24573 (VQADDQ_M_N): Likewise.
24574 (VADDQ_M_N): Likewise.
24575 (VMAXQ_M): Likewise.
24576 (VQSUBQ_M): Likewise.
24577 (VMLASQ_M_N): Likewise.
24578 (VMLADAVAQ_P): Likewise.
24579 (VBRSRQ_M_N): Likewise.
24580 (VMULQ_M_N): Likewise.
24581 (VCADDQ_ROT90_M): Likewise.
24582 (VMULLTQ_INT_M): Likewise.
24583 (VEORQ_M): Likewise.
24584 (VSHRQ_M_N): Likewise.
24585 (VSUBQ_M_N): Likewise.
24586 (VHADDQ_M): Likewise.
24587 (VABDQ_M): Likewise.
24588 (VQRDMLASHQ_M_N): Likewise.
24589 (VMLAQ_M_N): Likewise.
24590 (VQSHLQ_M_N): Likewise.
24591 (mve_vabdq_m_<supf><mode>): Define RTL pattern.
24592 (mve_vaddq_m_n_<supf><mode>): Likewise.
24593 (mve_vaddq_m_<supf><mode>): Likewise.
24594 (mve_vandq_m_<supf><mode>): Likewise.
24595 (mve_vbicq_m_<supf><mode>): Likewise.
24596 (mve_vbrsrq_m_n_<supf><mode>): Likewise.
24597 (mve_vcaddq_rot270_m_<supf><mode>): Likewise.
24598 (mve_vcaddq_rot90_m_<supf><mode>): Likewise.
24599 (mve_veorq_m_<supf><mode>): Likewise.
24600 (mve_vhaddq_m_n_<supf><mode>): Likewise.
24601 (mve_vhaddq_m_<supf><mode>): Likewise.
24602 (mve_vhsubq_m_n_<supf><mode>): Likewise.
24603 (mve_vhsubq_m_<supf><mode>): Likewise.
24604 (mve_vmaxq_m_<supf><mode>): Likewise.
24605 (mve_vminq_m_<supf><mode>): Likewise.
24606 (mve_vmladavaq_p_<supf><mode>): Likewise.
24607 (mve_vmlaq_m_n_<supf><mode>): Likewise.
24608 (mve_vmlasq_m_n_<supf><mode>): Likewise.
24609 (mve_vmulhq_m_<supf><mode>): Likewise.
24610 (mve_vmullbq_int_m_<supf><mode>): Likewise.
24611 (mve_vmulltq_int_m_<supf><mode>): Likewise.
24612 (mve_vmulq_m_n_<supf><mode>): Likewise.
24613 (mve_vmulq_m_<supf><mode>): Likewise.
24614 (mve_vornq_m_<supf><mode>): Likewise.
24615 (mve_vorrq_m_<supf><mode>): Likewise.
24616 (mve_vqaddq_m_n_<supf><mode>): Likewise.
24617 (mve_vqaddq_m_<supf><mode>): Likewise.
24618 (mve_vqdmlahq_m_n_<supf><mode>): Likewise.
24619 (mve_vqrdmlahq_m_n_<supf><mode>): Likewise.
24620 (mve_vqrdmlashq_m_n_<supf><mode>): Likewise.
24621 (mve_vqrshlq_m_<supf><mode>): Likewise.
24622 (mve_vqshlq_m_n_<supf><mode>): Likewise.
24623 (mve_vqshlq_m_<supf><mode>): Likewise.
24624 (mve_vqsubq_m_n_<supf><mode>): Likewise.
24625 (mve_vqsubq_m_<supf><mode>): Likewise.
24626 (mve_vrhaddq_m_<supf><mode>): Likewise.
24627 (mve_vrmulhq_m_<supf><mode>): Likewise.
24628 (mve_vrshlq_m_<supf><mode>): Likewise.
24629 (mve_vrshrq_m_n_<supf><mode>): Likewise.
24630 (mve_vshlq_m_n_<supf><mode>): Likewise.
24631 (mve_vshrq_m_n_<supf><mode>): Likewise.
24632 (mve_vsliq_m_n_<supf><mode>): Likewise.
24633 (mve_vsubq_m_n_<supf><mode>): Likewise.
24634 (mve_vhcaddq_rot270_m_s<mode>): Likewise.
24635 (mve_vhcaddq_rot90_m_s<mode>): Likewise.
24636 (mve_vmladavaxq_p_s<mode>): Likewise.
24637 (mve_vmlsdavaq_p_s<mode>): Likewise.
24638 (mve_vmlsdavaxq_p_s<mode>): Likewise.
24639 (mve_vqdmladhq_m_s<mode>): Likewise.
24640 (mve_vqdmladhxq_m_s<mode>): Likewise.
24641 (mve_vqdmlsdhq_m_s<mode>): Likewise.
24642 (mve_vqdmlsdhxq_m_s<mode>): Likewise.
24643 (mve_vqdmulhq_m_n_s<mode>): Likewise.
24644 (mve_vqdmulhq_m_s<mode>): Likewise.
24645 (mve_vqrdmladhq_m_s<mode>): Likewise.
24646 (mve_vqrdmladhxq_m_s<mode>): Likewise.
24647 (mve_vqrdmlsdhq_m_s<mode>): Likewise.
24648 (mve_vqrdmlsdhxq_m_s<mode>): Likewise.
24649 (mve_vqrdmulhq_m_n_s<mode>): Likewise.
24650 (mve_vqrdmulhq_m_s<mode>): Likewise.
24651
24652 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
24653 Mihail Ionescu <mihail.ionescu@arm.com>
24654 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24655
24656 * config/arm/arm-builtins.c (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS):
24657 Define builtin qualifier.
24658 (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
24659 (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
24660 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
24661 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
24662 (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
24663 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
24664 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
24665 * config/arm/arm_mve.h (vsriq_m_n_s8): Define macro.
24666 (vsubq_m_s8): Likewise.
24667 (vcvtq_m_n_f16_u16): Likewise.
24668 (vqshluq_m_n_s8): Likewise.
24669 (vabavq_p_s8): Likewise.
24670 (vsriq_m_n_u8): Likewise.
24671 (vshlq_m_u8): Likewise.
24672 (vsubq_m_u8): Likewise.
24673 (vabavq_p_u8): Likewise.
24674 (vshlq_m_s8): Likewise.
24675 (vcvtq_m_n_f16_s16): Likewise.
24676 (vsriq_m_n_s16): Likewise.
24677 (vsubq_m_s16): Likewise.
24678 (vcvtq_m_n_f32_u32): Likewise.
24679 (vqshluq_m_n_s16): Likewise.
24680 (vabavq_p_s16): Likewise.
24681 (vsriq_m_n_u16): Likewise.
24682 (vshlq_m_u16): Likewise.
24683 (vsubq_m_u16): Likewise.
24684 (vabavq_p_u16): Likewise.
24685 (vshlq_m_s16): Likewise.
24686 (vcvtq_m_n_f32_s32): Likewise.
24687 (vsriq_m_n_s32): Likewise.
24688 (vsubq_m_s32): Likewise.
24689 (vqshluq_m_n_s32): Likewise.
24690 (vabavq_p_s32): Likewise.
24691 (vsriq_m_n_u32): Likewise.
24692 (vshlq_m_u32): Likewise.
24693 (vsubq_m_u32): Likewise.
24694 (vabavq_p_u32): Likewise.
24695 (vshlq_m_s32): Likewise.
24696 (__arm_vsriq_m_n_s8): Define intrinsic.
24697 (__arm_vsubq_m_s8): Likewise.
24698 (__arm_vqshluq_m_n_s8): Likewise.
24699 (__arm_vabavq_p_s8): Likewise.
24700 (__arm_vsriq_m_n_u8): Likewise.
24701 (__arm_vshlq_m_u8): Likewise.
24702 (__arm_vsubq_m_u8): Likewise.
24703 (__arm_vabavq_p_u8): Likewise.
24704 (__arm_vshlq_m_s8): Likewise.
24705 (__arm_vsriq_m_n_s16): Likewise.
24706 (__arm_vsubq_m_s16): Likewise.
24707 (__arm_vqshluq_m_n_s16): Likewise.
24708 (__arm_vabavq_p_s16): Likewise.
24709 (__arm_vsriq_m_n_u16): Likewise.
24710 (__arm_vshlq_m_u16): Likewise.
24711 (__arm_vsubq_m_u16): Likewise.
24712 (__arm_vabavq_p_u16): Likewise.
24713 (__arm_vshlq_m_s16): Likewise.
24714 (__arm_vsriq_m_n_s32): Likewise.
24715 (__arm_vsubq_m_s32): Likewise.
24716 (__arm_vqshluq_m_n_s32): Likewise.
24717 (__arm_vabavq_p_s32): Likewise.
24718 (__arm_vsriq_m_n_u32): Likewise.
24719 (__arm_vshlq_m_u32): Likewise.
24720 (__arm_vsubq_m_u32): Likewise.
24721 (__arm_vabavq_p_u32): Likewise.
24722 (__arm_vshlq_m_s32): Likewise.
24723 (__arm_vcvtq_m_n_f16_u16): Likewise.
24724 (__arm_vcvtq_m_n_f16_s16): Likewise.
24725 (__arm_vcvtq_m_n_f32_u32): Likewise.
24726 (__arm_vcvtq_m_n_f32_s32): Likewise.
24727 (vcvtq_m_n): Define polymorphic variant.
24728 (vqshluq_m_n): Likewise.
24729 (vshlq_m): Likewise.
24730 (vsriq_m_n): Likewise.
24731 (vsubq_m): Likewise.
24732 (vabavq_p): Likewise.
24733 * config/arm/arm_mve_builtins.def
24734 (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS): Use builtin qualifier.
24735 (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
24736 (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
24737 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
24738 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
24739 (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
24740 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
24741 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
24742 * config/arm/mve.md (VABAVQ_P): Define iterator.
24743 (VSHLQ_M): Likewise.
24744 (VSRIQ_M_N): Likewise.
24745 (VSUBQ_M): Likewise.
24746 (VCVTQ_M_N_TO_F): Likewise.
24747 (mve_vabavq_p_<supf><mode>): Define RTL pattern.
24748 (mve_vqshluq_m_n_s<mode>): Likewise.
24749 (mve_vshlq_m_<supf><mode>): Likewise.
24750 (mve_vsriq_m_n_<supf><mode>): Likewise.
24751 (mve_vsubq_m_<supf><mode>): Likewise.
24752 (mve_vcvtq_m_n_to_f_<supf><mode>): Likewise.
24753
24754 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
24755 Mihail Ionescu <mihail.ionescu@arm.com>
24756 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24757
24758 * config/arm/arm_mve.h (vrmlaldavhaxq_s32): Define macro.
24759 (vrmlsldavhaq_s32): Likewise.
24760 (vrmlsldavhaxq_s32): Likewise.
24761 (vaddlvaq_p_s32): Likewise.
24762 (vcvtbq_m_f16_f32): Likewise.
24763 (vcvtbq_m_f32_f16): Likewise.
24764 (vcvttq_m_f16_f32): Likewise.
24765 (vcvttq_m_f32_f16): Likewise.
24766 (vrev16q_m_s8): Likewise.
24767 (vrev32q_m_f16): Likewise.
24768 (vrmlaldavhq_p_s32): Likewise.
24769 (vrmlaldavhxq_p_s32): Likewise.
24770 (vrmlsldavhq_p_s32): Likewise.
24771 (vrmlsldavhxq_p_s32): Likewise.
24772 (vaddlvaq_p_u32): Likewise.
24773 (vrev16q_m_u8): Likewise.
24774 (vrmlaldavhq_p_u32): Likewise.
24775 (vmvnq_m_n_s16): Likewise.
24776 (vorrq_m_n_s16): Likewise.
24777 (vqrshrntq_n_s16): Likewise.
24778 (vqshrnbq_n_s16): Likewise.
24779 (vqshrntq_n_s16): Likewise.
24780 (vrshrnbq_n_s16): Likewise.
24781 (vrshrntq_n_s16): Likewise.
24782 (vshrnbq_n_s16): Likewise.
24783 (vshrntq_n_s16): Likewise.
24784 (vcmlaq_f16): Likewise.
24785 (vcmlaq_rot180_f16): Likewise.
24786 (vcmlaq_rot270_f16): Likewise.
24787 (vcmlaq_rot90_f16): Likewise.
24788 (vfmaq_f16): Likewise.
24789 (vfmaq_n_f16): Likewise.
24790 (vfmasq_n_f16): Likewise.
24791 (vfmsq_f16): Likewise.
24792 (vmlaldavaq_s16): Likewise.
24793 (vmlaldavaxq_s16): Likewise.
24794 (vmlsldavaq_s16): Likewise.
24795 (vmlsldavaxq_s16): Likewise.
24796 (vabsq_m_f16): Likewise.
24797 (vcvtmq_m_s16_f16): Likewise.
24798 (vcvtnq_m_s16_f16): Likewise.
24799 (vcvtpq_m_s16_f16): Likewise.
24800 (vcvtq_m_s16_f16): Likewise.
24801 (vdupq_m_n_f16): Likewise.
24802 (vmaxnmaq_m_f16): Likewise.
24803 (vmaxnmavq_p_f16): Likewise.
24804 (vmaxnmvq_p_f16): Likewise.
24805 (vminnmaq_m_f16): Likewise.
24806 (vminnmavq_p_f16): Likewise.
24807 (vminnmvq_p_f16): Likewise.
24808 (vmlaldavq_p_s16): Likewise.
24809 (vmlaldavxq_p_s16): Likewise.
24810 (vmlsldavq_p_s16): Likewise.
24811 (vmlsldavxq_p_s16): Likewise.
24812 (vmovlbq_m_s8): Likewise.
24813 (vmovltq_m_s8): Likewise.
24814 (vmovnbq_m_s16): Likewise.
24815 (vmovntq_m_s16): Likewise.
24816 (vnegq_m_f16): Likewise.
24817 (vpselq_f16): Likewise.
24818 (vqmovnbq_m_s16): Likewise.
24819 (vqmovntq_m_s16): Likewise.
24820 (vrev32q_m_s8): Likewise.
24821 (vrev64q_m_f16): Likewise.
24822 (vrndaq_m_f16): Likewise.
24823 (vrndmq_m_f16): Likewise.
24824 (vrndnq_m_f16): Likewise.
24825 (vrndpq_m_f16): Likewise.
24826 (vrndq_m_f16): Likewise.
24827 (vrndxq_m_f16): Likewise.
24828 (vcmpeqq_m_n_f16): Likewise.
24829 (vcmpgeq_m_f16): Likewise.
24830 (vcmpgeq_m_n_f16): Likewise.
24831 (vcmpgtq_m_f16): Likewise.
24832 (vcmpgtq_m_n_f16): Likewise.
24833 (vcmpleq_m_f16): Likewise.
24834 (vcmpleq_m_n_f16): Likewise.
24835 (vcmpltq_m_f16): Likewise.
24836 (vcmpltq_m_n_f16): Likewise.
24837 (vcmpneq_m_f16): Likewise.
24838 (vcmpneq_m_n_f16): Likewise.
24839 (vmvnq_m_n_u16): Likewise.
24840 (vorrq_m_n_u16): Likewise.
24841 (vqrshruntq_n_s16): Likewise.
24842 (vqshrunbq_n_s16): Likewise.
24843 (vqshruntq_n_s16): Likewise.
24844 (vcvtmq_m_u16_f16): Likewise.
24845 (vcvtnq_m_u16_f16): Likewise.
24846 (vcvtpq_m_u16_f16): Likewise.
24847 (vcvtq_m_u16_f16): Likewise.
24848 (vqmovunbq_m_s16): Likewise.
24849 (vqmovuntq_m_s16): Likewise.
24850 (vqrshrntq_n_u16): Likewise.
24851 (vqshrnbq_n_u16): Likewise.
24852 (vqshrntq_n_u16): Likewise.
24853 (vrshrnbq_n_u16): Likewise.
24854 (vrshrntq_n_u16): Likewise.
24855 (vshrnbq_n_u16): Likewise.
24856 (vshrntq_n_u16): Likewise.
24857 (vmlaldavaq_u16): Likewise.
24858 (vmlaldavaxq_u16): Likewise.
24859 (vmlaldavq_p_u16): Likewise.
24860 (vmlaldavxq_p_u16): Likewise.
24861 (vmovlbq_m_u8): Likewise.
24862 (vmovltq_m_u8): Likewise.
24863 (vmovnbq_m_u16): Likewise.
24864 (vmovntq_m_u16): Likewise.
24865 (vqmovnbq_m_u16): Likewise.
24866 (vqmovntq_m_u16): Likewise.
24867 (vrev32q_m_u8): Likewise.
24868 (vmvnq_m_n_s32): Likewise.
24869 (vorrq_m_n_s32): Likewise.
24870 (vqrshrntq_n_s32): Likewise.
24871 (vqshrnbq_n_s32): Likewise.
24872 (vqshrntq_n_s32): Likewise.
24873 (vrshrnbq_n_s32): Likewise.
24874 (vrshrntq_n_s32): Likewise.
24875 (vshrnbq_n_s32): Likewise.
24876 (vshrntq_n_s32): Likewise.
24877 (vcmlaq_f32): Likewise.
24878 (vcmlaq_rot180_f32): Likewise.
24879 (vcmlaq_rot270_f32): Likewise.
24880 (vcmlaq_rot90_f32): Likewise.
24881 (vfmaq_f32): Likewise.
24882 (vfmaq_n_f32): Likewise.
24883 (vfmasq_n_f32): Likewise.
24884 (vfmsq_f32): Likewise.
24885 (vmlaldavaq_s32): Likewise.
24886 (vmlaldavaxq_s32): Likewise.
24887 (vmlsldavaq_s32): Likewise.
24888 (vmlsldavaxq_s32): Likewise.
24889 (vabsq_m_f32): Likewise.
24890 (vcvtmq_m_s32_f32): Likewise.
24891 (vcvtnq_m_s32_f32): Likewise.
24892 (vcvtpq_m_s32_f32): Likewise.
24893 (vcvtq_m_s32_f32): Likewise.
24894 (vdupq_m_n_f32): Likewise.
24895 (vmaxnmaq_m_f32): Likewise.
24896 (vmaxnmavq_p_f32): Likewise.
24897 (vmaxnmvq_p_f32): Likewise.
24898 (vminnmaq_m_f32): Likewise.
24899 (vminnmavq_p_f32): Likewise.
24900 (vminnmvq_p_f32): Likewise.
24901 (vmlaldavq_p_s32): Likewise.
24902 (vmlaldavxq_p_s32): Likewise.
24903 (vmlsldavq_p_s32): Likewise.
24904 (vmlsldavxq_p_s32): Likewise.
24905 (vmovlbq_m_s16): Likewise.
24906 (vmovltq_m_s16): Likewise.
24907 (vmovnbq_m_s32): Likewise.
24908 (vmovntq_m_s32): Likewise.
24909 (vnegq_m_f32): Likewise.
24910 (vpselq_f32): Likewise.
24911 (vqmovnbq_m_s32): Likewise.
24912 (vqmovntq_m_s32): Likewise.
24913 (vrev32q_m_s16): Likewise.
24914 (vrev64q_m_f32): Likewise.
24915 (vrndaq_m_f32): Likewise.
24916 (vrndmq_m_f32): Likewise.
24917 (vrndnq_m_f32): Likewise.
24918 (vrndpq_m_f32): Likewise.
24919 (vrndq_m_f32): Likewise.
24920 (vrndxq_m_f32): Likewise.
24921 (vcmpeqq_m_n_f32): Likewise.
24922 (vcmpgeq_m_f32): Likewise.
24923 (vcmpgeq_m_n_f32): Likewise.
24924 (vcmpgtq_m_f32): Likewise.
24925 (vcmpgtq_m_n_f32): Likewise.
24926 (vcmpleq_m_f32): Likewise.
24927 (vcmpleq_m_n_f32): Likewise.
24928 (vcmpltq_m_f32): Likewise.
24929 (vcmpltq_m_n_f32): Likewise.
24930 (vcmpneq_m_f32): Likewise.
24931 (vcmpneq_m_n_f32): Likewise.
24932 (vmvnq_m_n_u32): Likewise.
24933 (vorrq_m_n_u32): Likewise.
24934 (vqrshruntq_n_s32): Likewise.
24935 (vqshrunbq_n_s32): Likewise.
24936 (vqshruntq_n_s32): Likewise.
24937 (vcvtmq_m_u32_f32): Likewise.
24938 (vcvtnq_m_u32_f32): Likewise.
24939 (vcvtpq_m_u32_f32): Likewise.
24940 (vcvtq_m_u32_f32): Likewise.
24941 (vqmovunbq_m_s32): Likewise.
24942 (vqmovuntq_m_s32): Likewise.
24943 (vqrshrntq_n_u32): Likewise.
24944 (vqshrnbq_n_u32): Likewise.
24945 (vqshrntq_n_u32): Likewise.
24946 (vrshrnbq_n_u32): Likewise.
24947 (vrshrntq_n_u32): Likewise.
24948 (vshrnbq_n_u32): Likewise.
24949 (vshrntq_n_u32): Likewise.
24950 (vmlaldavaq_u32): Likewise.
24951 (vmlaldavaxq_u32): Likewise.
24952 (vmlaldavq_p_u32): Likewise.
24953 (vmlaldavxq_p_u32): Likewise.
24954 (vmovlbq_m_u16): Likewise.
24955 (vmovltq_m_u16): Likewise.
24956 (vmovnbq_m_u32): Likewise.
24957 (vmovntq_m_u32): Likewise.
24958 (vqmovnbq_m_u32): Likewise.
24959 (vqmovntq_m_u32): Likewise.
24960 (vrev32q_m_u16): Likewise.
24961 (__arm_vrmlaldavhaxq_s32): Define intrinsic.
24962 (__arm_vrmlsldavhaq_s32): Likewise.
24963 (__arm_vrmlsldavhaxq_s32): Likewise.
24964 (__arm_vaddlvaq_p_s32): Likewise.
24965 (__arm_vrev16q_m_s8): Likewise.
24966 (__arm_vrmlaldavhq_p_s32): Likewise.
24967 (__arm_vrmlaldavhxq_p_s32): Likewise.
24968 (__arm_vrmlsldavhq_p_s32): Likewise.
24969 (__arm_vrmlsldavhxq_p_s32): Likewise.
24970 (__arm_vaddlvaq_p_u32): Likewise.
24971 (__arm_vrev16q_m_u8): Likewise.
24972 (__arm_vrmlaldavhq_p_u32): Likewise.
24973 (__arm_vmvnq_m_n_s16): Likewise.
24974 (__arm_vorrq_m_n_s16): Likewise.
24975 (__arm_vqrshrntq_n_s16): Likewise.
24976 (__arm_vqshrnbq_n_s16): Likewise.
24977 (__arm_vqshrntq_n_s16): Likewise.
24978 (__arm_vrshrnbq_n_s16): Likewise.
24979 (__arm_vrshrntq_n_s16): Likewise.
24980 (__arm_vshrnbq_n_s16): Likewise.
24981 (__arm_vshrntq_n_s16): Likewise.
24982 (__arm_vmlaldavaq_s16): Likewise.
24983 (__arm_vmlaldavaxq_s16): Likewise.
24984 (__arm_vmlsldavaq_s16): Likewise.
24985 (__arm_vmlsldavaxq_s16): Likewise.
24986 (__arm_vmlaldavq_p_s16): Likewise.
24987 (__arm_vmlaldavxq_p_s16): Likewise.
24988 (__arm_vmlsldavq_p_s16): Likewise.
24989 (__arm_vmlsldavxq_p_s16): Likewise.
24990 (__arm_vmovlbq_m_s8): Likewise.
24991 (__arm_vmovltq_m_s8): Likewise.
24992 (__arm_vmovnbq_m_s16): Likewise.
24993 (__arm_vmovntq_m_s16): Likewise.
24994 (__arm_vqmovnbq_m_s16): Likewise.
24995 (__arm_vqmovntq_m_s16): Likewise.
24996 (__arm_vrev32q_m_s8): Likewise.
24997 (__arm_vmvnq_m_n_u16): Likewise.
24998 (__arm_vorrq_m_n_u16): Likewise.
24999 (__arm_vqrshruntq_n_s16): Likewise.
25000 (__arm_vqshrunbq_n_s16): Likewise.
25001 (__arm_vqshruntq_n_s16): Likewise.
25002 (__arm_vqmovunbq_m_s16): Likewise.
25003 (__arm_vqmovuntq_m_s16): Likewise.
25004 (__arm_vqrshrntq_n_u16): Likewise.
25005 (__arm_vqshrnbq_n_u16): Likewise.
25006 (__arm_vqshrntq_n_u16): Likewise.
25007 (__arm_vrshrnbq_n_u16): Likewise.
25008 (__arm_vrshrntq_n_u16): Likewise.
25009 (__arm_vshrnbq_n_u16): Likewise.
25010 (__arm_vshrntq_n_u16): Likewise.
25011 (__arm_vmlaldavaq_u16): Likewise.
25012 (__arm_vmlaldavaxq_u16): Likewise.
25013 (__arm_vmlaldavq_p_u16): Likewise.
25014 (__arm_vmlaldavxq_p_u16): Likewise.
25015 (__arm_vmovlbq_m_u8): Likewise.
25016 (__arm_vmovltq_m_u8): Likewise.
25017 (__arm_vmovnbq_m_u16): Likewise.
25018 (__arm_vmovntq_m_u16): Likewise.
25019 (__arm_vqmovnbq_m_u16): Likewise.
25020 (__arm_vqmovntq_m_u16): Likewise.
25021 (__arm_vrev32q_m_u8): Likewise.
25022 (__arm_vmvnq_m_n_s32): Likewise.
25023 (__arm_vorrq_m_n_s32): Likewise.
25024 (__arm_vqrshrntq_n_s32): Likewise.
25025 (__arm_vqshrnbq_n_s32): Likewise.
25026 (__arm_vqshrntq_n_s32): Likewise.
25027 (__arm_vrshrnbq_n_s32): Likewise.
25028 (__arm_vrshrntq_n_s32): Likewise.
25029 (__arm_vshrnbq_n_s32): Likewise.
25030 (__arm_vshrntq_n_s32): Likewise.
25031 (__arm_vmlaldavaq_s32): Likewise.
25032 (__arm_vmlaldavaxq_s32): Likewise.
25033 (__arm_vmlsldavaq_s32): Likewise.
25034 (__arm_vmlsldavaxq_s32): Likewise.
25035 (__arm_vmlaldavq_p_s32): Likewise.
25036 (__arm_vmlaldavxq_p_s32): Likewise.
25037 (__arm_vmlsldavq_p_s32): Likewise.
25038 (__arm_vmlsldavxq_p_s32): Likewise.
25039 (__arm_vmovlbq_m_s16): Likewise.
25040 (__arm_vmovltq_m_s16): Likewise.
25041 (__arm_vmovnbq_m_s32): Likewise.
25042 (__arm_vmovntq_m_s32): Likewise.
25043 (__arm_vqmovnbq_m_s32): Likewise.
25044 (__arm_vqmovntq_m_s32): Likewise.
25045 (__arm_vrev32q_m_s16): Likewise.
25046 (__arm_vmvnq_m_n_u32): Likewise.
25047 (__arm_vorrq_m_n_u32): Likewise.
25048 (__arm_vqrshruntq_n_s32): Likewise.
25049 (__arm_vqshrunbq_n_s32): Likewise.
25050 (__arm_vqshruntq_n_s32): Likewise.
25051 (__arm_vqmovunbq_m_s32): Likewise.
25052 (__arm_vqmovuntq_m_s32): Likewise.
25053 (__arm_vqrshrntq_n_u32): Likewise.
25054 (__arm_vqshrnbq_n_u32): Likewise.
25055 (__arm_vqshrntq_n_u32): Likewise.
25056 (__arm_vrshrnbq_n_u32): Likewise.
25057 (__arm_vrshrntq_n_u32): Likewise.
25058 (__arm_vshrnbq_n_u32): Likewise.
25059 (__arm_vshrntq_n_u32): Likewise.
25060 (__arm_vmlaldavaq_u32): Likewise.
25061 (__arm_vmlaldavaxq_u32): Likewise.
25062 (__arm_vmlaldavq_p_u32): Likewise.
25063 (__arm_vmlaldavxq_p_u32): Likewise.
25064 (__arm_vmovlbq_m_u16): Likewise.
25065 (__arm_vmovltq_m_u16): Likewise.
25066 (__arm_vmovnbq_m_u32): Likewise.
25067 (__arm_vmovntq_m_u32): Likewise.
25068 (__arm_vqmovnbq_m_u32): Likewise.
25069 (__arm_vqmovntq_m_u32): Likewise.
25070 (__arm_vrev32q_m_u16): Likewise.
25071 (__arm_vcvtbq_m_f16_f32): Likewise.
25072 (__arm_vcvtbq_m_f32_f16): Likewise.
25073 (__arm_vcvttq_m_f16_f32): Likewise.
25074 (__arm_vcvttq_m_f32_f16): Likewise.
25075 (__arm_vrev32q_m_f16): Likewise.
25076 (__arm_vcmlaq_f16): Likewise.
25077 (__arm_vcmlaq_rot180_f16): Likewise.
25078 (__arm_vcmlaq_rot270_f16): Likewise.
25079 (__arm_vcmlaq_rot90_f16): Likewise.
25080 (__arm_vfmaq_f16): Likewise.
25081 (__arm_vfmaq_n_f16): Likewise.
25082 (__arm_vfmasq_n_f16): Likewise.
25083 (__arm_vfmsq_f16): Likewise.
25084 (__arm_vabsq_m_f16): Likewise.
25085 (__arm_vcvtmq_m_s16_f16): Likewise.
25086 (__arm_vcvtnq_m_s16_f16): Likewise.
25087 (__arm_vcvtpq_m_s16_f16): Likewise.
25088 (__arm_vcvtq_m_s16_f16): Likewise.
25089 (__arm_vdupq_m_n_f16): Likewise.
25090 (__arm_vmaxnmaq_m_f16): Likewise.
25091 (__arm_vmaxnmavq_p_f16): Likewise.
25092 (__arm_vmaxnmvq_p_f16): Likewise.
25093 (__arm_vminnmaq_m_f16): Likewise.
25094 (__arm_vminnmavq_p_f16): Likewise.
25095 (__arm_vminnmvq_p_f16): Likewise.
25096 (__arm_vnegq_m_f16): Likewise.
25097 (__arm_vpselq_f16): Likewise.
25098 (__arm_vrev64q_m_f16): Likewise.
25099 (__arm_vrndaq_m_f16): Likewise.
25100 (__arm_vrndmq_m_f16): Likewise.
25101 (__arm_vrndnq_m_f16): Likewise.
25102 (__arm_vrndpq_m_f16): Likewise.
25103 (__arm_vrndq_m_f16): Likewise.
25104 (__arm_vrndxq_m_f16): Likewise.
25105 (__arm_vcmpeqq_m_n_f16): Likewise.
25106 (__arm_vcmpgeq_m_f16): Likewise.
25107 (__arm_vcmpgeq_m_n_f16): Likewise.
25108 (__arm_vcmpgtq_m_f16): Likewise.
25109 (__arm_vcmpgtq_m_n_f16): Likewise.
25110 (__arm_vcmpleq_m_f16): Likewise.
25111 (__arm_vcmpleq_m_n_f16): Likewise.
25112 (__arm_vcmpltq_m_f16): Likewise.
25113 (__arm_vcmpltq_m_n_f16): Likewise.
25114 (__arm_vcmpneq_m_f16): Likewise.
25115 (__arm_vcmpneq_m_n_f16): Likewise.
25116 (__arm_vcvtmq_m_u16_f16): Likewise.
25117 (__arm_vcvtnq_m_u16_f16): Likewise.
25118 (__arm_vcvtpq_m_u16_f16): Likewise.
25119 (__arm_vcvtq_m_u16_f16): Likewise.
25120 (__arm_vcmlaq_f32): Likewise.
25121 (__arm_vcmlaq_rot180_f32): Likewise.
25122 (__arm_vcmlaq_rot270_f32): Likewise.
25123 (__arm_vcmlaq_rot90_f32): Likewise.
25124 (__arm_vfmaq_f32): Likewise.
25125 (__arm_vfmaq_n_f32): Likewise.
25126 (__arm_vfmasq_n_f32): Likewise.
25127 (__arm_vfmsq_f32): Likewise.
25128 (__arm_vabsq_m_f32): Likewise.
25129 (__arm_vcvtmq_m_s32_f32): Likewise.
25130 (__arm_vcvtnq_m_s32_f32): Likewise.
25131 (__arm_vcvtpq_m_s32_f32): Likewise.
25132 (__arm_vcvtq_m_s32_f32): Likewise.
25133 (__arm_vdupq_m_n_f32): Likewise.
25134 (__arm_vmaxnmaq_m_f32): Likewise.
25135 (__arm_vmaxnmavq_p_f32): Likewise.
25136 (__arm_vmaxnmvq_p_f32): Likewise.
25137 (__arm_vminnmaq_m_f32): Likewise.
25138 (__arm_vminnmavq_p_f32): Likewise.
25139 (__arm_vminnmvq_p_f32): Likewise.
25140 (__arm_vnegq_m_f32): Likewise.
25141 (__arm_vpselq_f32): Likewise.
25142 (__arm_vrev64q_m_f32): Likewise.
25143 (__arm_vrndaq_m_f32): Likewise.
25144 (__arm_vrndmq_m_f32): Likewise.
25145 (__arm_vrndnq_m_f32): Likewise.
25146 (__arm_vrndpq_m_f32): Likewise.
25147 (__arm_vrndq_m_f32): Likewise.
25148 (__arm_vrndxq_m_f32): Likewise.
25149 (__arm_vcmpeqq_m_n_f32): Likewise.
25150 (__arm_vcmpgeq_m_f32): Likewise.
25151 (__arm_vcmpgeq_m_n_f32): Likewise.
25152 (__arm_vcmpgtq_m_f32): Likewise.
25153 (__arm_vcmpgtq_m_n_f32): Likewise.
25154 (__arm_vcmpleq_m_f32): Likewise.
25155 (__arm_vcmpleq_m_n_f32): Likewise.
25156 (__arm_vcmpltq_m_f32): Likewise.
25157 (__arm_vcmpltq_m_n_f32): Likewise.
25158 (__arm_vcmpneq_m_f32): Likewise.
25159 (__arm_vcmpneq_m_n_f32): Likewise.
25160 (__arm_vcvtmq_m_u32_f32): Likewise.
25161 (__arm_vcvtnq_m_u32_f32): Likewise.
25162 (__arm_vcvtpq_m_u32_f32): Likewise.
25163 (__arm_vcvtq_m_u32_f32): Likewise.
25164 (vcvtq_m): Define polymorphic variant.
25165 (vabsq_m): Likewise.
25166 (vcmlaq): Likewise.
25167 (vcmlaq_rot180): Likewise.
25168 (vcmlaq_rot270): Likewise.
25169 (vcmlaq_rot90): Likewise.
25170 (vcmpeqq_m_n): Likewise.
25171 (vcmpgeq_m_n): Likewise.
25172 (vrndxq_m): Likewise.
25173 (vrndq_m): Likewise.
25174 (vrndpq_m): Likewise.
25175 (vcmpgtq_m_n): Likewise.
25176 (vcmpgtq_m): Likewise.
25177 (vcmpleq_m): Likewise.
25178 (vcmpleq_m_n): Likewise.
25179 (vcmpltq_m_n): Likewise.
25180 (vcmpltq_m): Likewise.
25181 (vcmpneq_m): Likewise.
25182 (vcmpneq_m_n): Likewise.
25183 (vcvtbq_m): Likewise.
25184 (vcvttq_m): Likewise.
25185 (vcvtmq_m): Likewise.
25186 (vcvtnq_m): Likewise.
25187 (vcvtpq_m): Likewise.
25188 (vdupq_m_n): Likewise.
25189 (vfmaq_n): Likewise.
25190 (vfmaq): Likewise.
25191 (vfmasq_n): Likewise.
25192 (vfmsq): Likewise.
25193 (vmaxnmaq_m): Likewise.
25194 (vmaxnmavq_m): Likewise.
25195 (vmaxnmvq_m): Likewise.
25196 (vmaxnmavq_p): Likewise.
25197 (vmaxnmvq_p): Likewise.
25198 (vminnmaq_m): Likewise.
25199 (vminnmavq_p): Likewise.
25200 (vminnmvq_p): Likewise.
25201 (vrndnq_m): Likewise.
25202 (vrndaq_m): Likewise.
25203 (vrndmq_m): Likewise.
25204 (vrev64q_m): Likewise.
25205 (vrev32q_m): Likewise.
25206 (vpselq): Likewise.
25207 (vnegq_m): Likewise.
25208 (vcmpgeq_m): Likewise.
25209 (vshrntq_n): Likewise.
25210 (vrshrntq_n): Likewise.
25211 (vmovlbq_m): Likewise.
25212 (vmovnbq_m): Likewise.
25213 (vmovntq_m): Likewise.
25214 (vmvnq_m_n): Likewise.
25215 (vmvnq_m): Likewise.
25216 (vshrnbq_n): Likewise.
25217 (vrshrnbq_n): Likewise.
25218 (vqshruntq_n): Likewise.
25219 (vrev16q_m): Likewise.
25220 (vqshrunbq_n): Likewise.
25221 (vqshrntq_n): Likewise.
25222 (vqrshruntq_n): Likewise.
25223 (vqrshrntq_n): Likewise.
25224 (vqshrnbq_n): Likewise.
25225 (vqmovuntq_m): Likewise.
25226 (vqmovntq_m): Likewise.
25227 (vqmovnbq_m): Likewise.
25228 (vorrq_m_n): Likewise.
25229 (vmovltq_m): Likewise.
25230 (vqmovunbq_m): Likewise.
25231 (vaddlvaq_p): Likewise.
25232 (vmlaldavaq): Likewise.
25233 (vmlaldavaxq): Likewise.
25234 (vmlaldavq_p): Likewise.
25235 (vmlaldavxq_p): Likewise.
25236 (vmlsldavaq): Likewise.
25237 (vmlsldavaxq): Likewise.
25238 (vmlsldavq_p): Likewise.
25239 (vmlsldavxq_p): Likewise.
25240 (vrmlaldavhaxq): Likewise.
25241 (vrmlaldavhq_p): Likewise.
25242 (vrmlaldavhxq_p): Likewise.
25243 (vrmlsldavhaq): Likewise.
25244 (vrmlsldavhaxq): Likewise.
25245 (vrmlsldavhq_p): Likewise.
25246 (vrmlsldavhxq_p): Likewise.
25247 * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_IMM_UNONE): Use
25248 builtin qualifier.
25249 (TERNOP_NONE_NONE_NONE_IMM): Likewise.
25250 (TERNOP_NONE_NONE_NONE_NONE): Likewise.
25251 (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
25252 (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
25253 (TERNOP_UNONE_UNONE_IMM_UNONE): Likewise.
25254 (TERNOP_UNONE_UNONE_NONE_IMM): Likewise.
25255 (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
25256 (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
25257 (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
25258 * config/arm/mve.md (MVE_constraint3): Define mode attribute iterator.
25259 (MVE_pred3): Likewise.
25260 (MVE_constraint1): Likewise.
25261 (MVE_pred1): Likewise.
25262 (VMLALDAVQ_P): Define iterator.
25263 (VQMOVNBQ_M): Likewise.
25264 (VMOVLTQ_M): Likewise.
25265 (VMOVNBQ_M): Likewise.
25266 (VRSHRNTQ_N): Likewise.
25267 (VORRQ_M_N): Likewise.
25268 (VREV32Q_M): Likewise.
25269 (VREV16Q_M): Likewise.
25270 (VQRSHRNTQ_N): Likewise.
25271 (VMOVNTQ_M): Likewise.
25272 (VMOVLBQ_M): Likewise.
25273 (VMLALDAVAQ): Likewise.
25274 (VQSHRNBQ_N): Likewise.
25275 (VSHRNBQ_N): Likewise.
25276 (VRSHRNBQ_N): Likewise.
25277 (VMLALDAVXQ_P): Likewise.
25278 (VQMOVNTQ_M): Likewise.
25279 (VMVNQ_M_N): Likewise.
25280 (VQSHRNTQ_N): Likewise.
25281 (VMLALDAVAXQ): Likewise.
25282 (VSHRNTQ_N): Likewise.
25283 (VCVTMQ_M): Likewise.
25284 (VCVTNQ_M): Likewise.
25285 (VCVTPQ_M): Likewise.
25286 (VCVTQ_M_N_FROM_F): Likewise.
25287 (VCVTQ_M_FROM_F): Likewise.
25288 (VRMLALDAVHQ_P): Likewise.
25289 (VADDLVAQ_P): Likewise.
25290 (mve_vrndq_m_f<mode>): Define RTL pattern.
25291 (mve_vabsq_m_f<mode>): Likewise.
25292 (mve_vaddlvaq_p_<supf>v4si): Likewise.
25293 (mve_vcmlaq_f<mode>): Likewise.
25294 (mve_vcmlaq_rot180_f<mode>): Likewise.
25295 (mve_vcmlaq_rot270_f<mode>): Likewise.
25296 (mve_vcmlaq_rot90_f<mode>): Likewise.
25297 (mve_vcmpeqq_m_n_f<mode>): Likewise.
25298 (mve_vcmpgeq_m_f<mode>): Likewise.
25299 (mve_vcmpgeq_m_n_f<mode>): Likewise.
25300 (mve_vcmpgtq_m_f<mode>): Likewise.
25301 (mve_vcmpgtq_m_n_f<mode>): Likewise.
25302 (mve_vcmpleq_m_f<mode>): Likewise.
25303 (mve_vcmpleq_m_n_f<mode>): Likewise.
25304 (mve_vcmpltq_m_f<mode>): Likewise.
25305 (mve_vcmpltq_m_n_f<mode>): Likewise.
25306 (mve_vcmpneq_m_f<mode>): Likewise.
25307 (mve_vcmpneq_m_n_f<mode>): Likewise.
25308 (mve_vcvtbq_m_f16_f32v8hf): Likewise.
25309 (mve_vcvtbq_m_f32_f16v4sf): Likewise.
25310 (mve_vcvttq_m_f16_f32v8hf): Likewise.
25311 (mve_vcvttq_m_f32_f16v4sf): Likewise.
25312 (mve_vdupq_m_n_f<mode>): Likewise.
25313 (mve_vfmaq_f<mode>): Likewise.
25314 (mve_vfmaq_n_f<mode>): Likewise.
25315 (mve_vfmasq_n_f<mode>): Likewise.
25316 (mve_vfmsq_f<mode>): Likewise.
25317 (mve_vmaxnmaq_m_f<mode>): Likewise.
25318 (mve_vmaxnmavq_p_f<mode>): Likewise.
25319 (mve_vmaxnmvq_p_f<mode>): Likewise.
25320 (mve_vminnmaq_m_f<mode>): Likewise.
25321 (mve_vminnmavq_p_f<mode>): Likewise.
25322 (mve_vminnmvq_p_f<mode>): Likewise.
25323 (mve_vmlaldavaq_<supf><mode>): Likewise.
25324 (mve_vmlaldavaxq_<supf><mode>): Likewise.
25325 (mve_vmlaldavq_p_<supf><mode>): Likewise.
25326 (mve_vmlaldavxq_p_<supf><mode>): Likewise.
25327 (mve_vmlsldavaq_s<mode>): Likewise.
25328 (mve_vmlsldavaxq_s<mode>): Likewise.
25329 (mve_vmlsldavq_p_s<mode>): Likewise.
25330 (mve_vmlsldavxq_p_s<mode>): Likewise.
25331 (mve_vmovlbq_m_<supf><mode>): Likewise.
25332 (mve_vmovltq_m_<supf><mode>): Likewise.
25333 (mve_vmovnbq_m_<supf><mode>): Likewise.
25334 (mve_vmovntq_m_<supf><mode>): Likewise.
25335 (mve_vmvnq_m_n_<supf><mode>): Likewise.
25336 (mve_vnegq_m_f<mode>): Likewise.
25337 (mve_vorrq_m_n_<supf><mode>): Likewise.
25338 (mve_vpselq_f<mode>): Likewise.
25339 (mve_vqmovnbq_m_<supf><mode>): Likewise.
25340 (mve_vqmovntq_m_<supf><mode>): Likewise.
25341 (mve_vqmovunbq_m_s<mode>): Likewise.
25342 (mve_vqmovuntq_m_s<mode>): Likewise.
25343 (mve_vqrshrntq_n_<supf><mode>): Likewise.
25344 (mve_vqrshruntq_n_s<mode>): Likewise.
25345 (mve_vqshrnbq_n_<supf><mode>): Likewise.
25346 (mve_vqshrntq_n_<supf><mode>): Likewise.
25347 (mve_vqshrunbq_n_s<mode>): Likewise.
25348 (mve_vqshruntq_n_s<mode>): Likewise.
25349 (mve_vrev32q_m_fv8hf): Likewise.
25350 (mve_vrev32q_m_<supf><mode>): Likewise.
25351 (mve_vrev64q_m_f<mode>): Likewise.
25352 (mve_vrmlaldavhaxq_sv4si): Likewise.
25353 (mve_vrmlaldavhxq_p_sv4si): Likewise.
25354 (mve_vrmlsldavhaxq_sv4si): Likewise.
25355 (mve_vrmlsldavhq_p_sv4si): Likewise.
25356 (mve_vrmlsldavhxq_p_sv4si): Likewise.
25357 (mve_vrndaq_m_f<mode>): Likewise.
25358 (mve_vrndmq_m_f<mode>): Likewise.
25359 (mve_vrndnq_m_f<mode>): Likewise.
25360 (mve_vrndpq_m_f<mode>): Likewise.
25361 (mve_vrndxq_m_f<mode>): Likewise.
25362 (mve_vrshrnbq_n_<supf><mode>): Likewise.
25363 (mve_vrshrntq_n_<supf><mode>): Likewise.
25364 (mve_vshrnbq_n_<supf><mode>): Likewise.
25365 (mve_vshrntq_n_<supf><mode>): Likewise.
25366 (mve_vcvtmq_m_<supf><mode>): Likewise.
25367 (mve_vcvtpq_m_<supf><mode>): Likewise.
25368 (mve_vcvtnq_m_<supf><mode>): Likewise.
25369 (mve_vcvtq_m_n_from_f_<supf><mode>): Likewise.
25370 (mve_vrev16q_m_<supf>v16qi): Likewise.
25371 (mve_vcvtq_m_from_f_<supf><mode>): Likewise.
25372 (mve_vrmlaldavhq_p_<supf>v4si): Likewise.
25373 (mve_vrmlsldavhaq_sv4si): Likewise.
25374
25375 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
25376 Mihail Ionescu <mihail.ionescu@arm.com>
25377 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
25378
25379 * config/arm/arm_mve.h (vpselq_u8): Define macro.
25380 (vpselq_s8): Likewise.
25381 (vrev64q_m_u8): Likewise.
25382 (vqrdmlashq_n_u8): Likewise.
25383 (vqrdmlahq_n_u8): Likewise.
25384 (vqdmlahq_n_u8): Likewise.
25385 (vmvnq_m_u8): Likewise.
25386 (vmlasq_n_u8): Likewise.
25387 (vmlaq_n_u8): Likewise.
25388 (vmladavq_p_u8): Likewise.
25389 (vmladavaq_u8): Likewise.
25390 (vminvq_p_u8): Likewise.
25391 (vmaxvq_p_u8): Likewise.
25392 (vdupq_m_n_u8): Likewise.
25393 (vcmpneq_m_u8): Likewise.
25394 (vcmpneq_m_n_u8): Likewise.
25395 (vcmphiq_m_u8): Likewise.
25396 (vcmphiq_m_n_u8): Likewise.
25397 (vcmpeqq_m_u8): Likewise.
25398 (vcmpeqq_m_n_u8): Likewise.
25399 (vcmpcsq_m_u8): Likewise.
25400 (vcmpcsq_m_n_u8): Likewise.
25401 (vclzq_m_u8): Likewise.
25402 (vaddvaq_p_u8): Likewise.
25403 (vsriq_n_u8): Likewise.
25404 (vsliq_n_u8): Likewise.
25405 (vshlq_m_r_u8): Likewise.
25406 (vrshlq_m_n_u8): Likewise.
25407 (vqshlq_m_r_u8): Likewise.
25408 (vqrshlq_m_n_u8): Likewise.
25409 (vminavq_p_s8): Likewise.
25410 (vminaq_m_s8): Likewise.
25411 (vmaxavq_p_s8): Likewise.
25412 (vmaxaq_m_s8): Likewise.
25413 (vcmpneq_m_s8): Likewise.
25414 (vcmpneq_m_n_s8): Likewise.
25415 (vcmpltq_m_s8): Likewise.
25416 (vcmpltq_m_n_s8): Likewise.
25417 (vcmpleq_m_s8): Likewise.
25418 (vcmpleq_m_n_s8): Likewise.
25419 (vcmpgtq_m_s8): Likewise.
25420 (vcmpgtq_m_n_s8): Likewise.
25421 (vcmpgeq_m_s8): Likewise.
25422 (vcmpgeq_m_n_s8): Likewise.
25423 (vcmpeqq_m_s8): Likewise.
25424 (vcmpeqq_m_n_s8): Likewise.
25425 (vshlq_m_r_s8): Likewise.
25426 (vrshlq_m_n_s8): Likewise.
25427 (vrev64q_m_s8): Likewise.
25428 (vqshlq_m_r_s8): Likewise.
25429 (vqrshlq_m_n_s8): Likewise.
25430 (vqnegq_m_s8): Likewise.
25431 (vqabsq_m_s8): Likewise.
25432 (vnegq_m_s8): Likewise.
25433 (vmvnq_m_s8): Likewise.
25434 (vmlsdavxq_p_s8): Likewise.
25435 (vmlsdavq_p_s8): Likewise.
25436 (vmladavxq_p_s8): Likewise.
25437 (vmladavq_p_s8): Likewise.
25438 (vminvq_p_s8): Likewise.
25439 (vmaxvq_p_s8): Likewise.
25440 (vdupq_m_n_s8): Likewise.
25441 (vclzq_m_s8): Likewise.
25442 (vclsq_m_s8): Likewise.
25443 (vaddvaq_p_s8): Likewise.
25444 (vabsq_m_s8): Likewise.
25445 (vqrdmlsdhxq_s8): Likewise.
25446 (vqrdmlsdhq_s8): Likewise.
25447 (vqrdmlashq_n_s8): Likewise.
25448 (vqrdmlahq_n_s8): Likewise.
25449 (vqrdmladhxq_s8): Likewise.
25450 (vqrdmladhq_s8): Likewise.
25451 (vqdmlsdhxq_s8): Likewise.
25452 (vqdmlsdhq_s8): Likewise.
25453 (vqdmlahq_n_s8): Likewise.
25454 (vqdmladhxq_s8): Likewise.
25455 (vqdmladhq_s8): Likewise.
25456 (vmlsdavaxq_s8): Likewise.
25457 (vmlsdavaq_s8): Likewise.
25458 (vmlasq_n_s8): Likewise.
25459 (vmlaq_n_s8): Likewise.
25460 (vmladavaxq_s8): Likewise.
25461 (vmladavaq_s8): Likewise.
25462 (vsriq_n_s8): Likewise.
25463 (vsliq_n_s8): Likewise.
25464 (vpselq_u16): Likewise.
25465 (vpselq_s16): Likewise.
25466 (vrev64q_m_u16): Likewise.
25467 (vqrdmlashq_n_u16): Likewise.
25468 (vqrdmlahq_n_u16): Likewise.
25469 (vqdmlahq_n_u16): Likewise.
25470 (vmvnq_m_u16): Likewise.
25471 (vmlasq_n_u16): Likewise.
25472 (vmlaq_n_u16): Likewise.
25473 (vmladavq_p_u16): Likewise.
25474 (vmladavaq_u16): Likewise.
25475 (vminvq_p_u16): Likewise.
25476 (vmaxvq_p_u16): Likewise.
25477 (vdupq_m_n_u16): Likewise.
25478 (vcmpneq_m_u16): Likewise.
25479 (vcmpneq_m_n_u16): Likewise.
25480 (vcmphiq_m_u16): Likewise.
25481 (vcmphiq_m_n_u16): Likewise.
25482 (vcmpeqq_m_u16): Likewise.
25483 (vcmpeqq_m_n_u16): Likewise.
25484 (vcmpcsq_m_u16): Likewise.
25485 (vcmpcsq_m_n_u16): Likewise.
25486 (vclzq_m_u16): Likewise.
25487 (vaddvaq_p_u16): Likewise.
25488 (vsriq_n_u16): Likewise.
25489 (vsliq_n_u16): Likewise.
25490 (vshlq_m_r_u16): Likewise.
25491 (vrshlq_m_n_u16): Likewise.
25492 (vqshlq_m_r_u16): Likewise.
25493 (vqrshlq_m_n_u16): Likewise.
25494 (vminavq_p_s16): Likewise.
25495 (vminaq_m_s16): Likewise.
25496 (vmaxavq_p_s16): Likewise.
25497 (vmaxaq_m_s16): Likewise.
25498 (vcmpneq_m_s16): Likewise.
25499 (vcmpneq_m_n_s16): Likewise.
25500 (vcmpltq_m_s16): Likewise.
25501 (vcmpltq_m_n_s16): Likewise.
25502 (vcmpleq_m_s16): Likewise.
25503 (vcmpleq_m_n_s16): Likewise.
25504 (vcmpgtq_m_s16): Likewise.
25505 (vcmpgtq_m_n_s16): Likewise.
25506 (vcmpgeq_m_s16): Likewise.
25507 (vcmpgeq_m_n_s16): Likewise.
25508 (vcmpeqq_m_s16): Likewise.
25509 (vcmpeqq_m_n_s16): Likewise.
25510 (vshlq_m_r_s16): Likewise.
25511 (vrshlq_m_n_s16): Likewise.
25512 (vrev64q_m_s16): Likewise.
25513 (vqshlq_m_r_s16): Likewise.
25514 (vqrshlq_m_n_s16): Likewise.
25515 (vqnegq_m_s16): Likewise.
25516 (vqabsq_m_s16): Likewise.
25517 (vnegq_m_s16): Likewise.
25518 (vmvnq_m_s16): Likewise.
25519 (vmlsdavxq_p_s16): Likewise.
25520 (vmlsdavq_p_s16): Likewise.
25521 (vmladavxq_p_s16): Likewise.
25522 (vmladavq_p_s16): Likewise.
25523 (vminvq_p_s16): Likewise.
25524 (vmaxvq_p_s16): Likewise.
25525 (vdupq_m_n_s16): Likewise.
25526 (vclzq_m_s16): Likewise.
25527 (vclsq_m_s16): Likewise.
25528 (vaddvaq_p_s16): Likewise.
25529 (vabsq_m_s16): Likewise.
25530 (vqrdmlsdhxq_s16): Likewise.
25531 (vqrdmlsdhq_s16): Likewise.
25532 (vqrdmlashq_n_s16): Likewise.
25533 (vqrdmlahq_n_s16): Likewise.
25534 (vqrdmladhxq_s16): Likewise.
25535 (vqrdmladhq_s16): Likewise.
25536 (vqdmlsdhxq_s16): Likewise.
25537 (vqdmlsdhq_s16): Likewise.
25538 (vqdmlahq_n_s16): Likewise.
25539 (vqdmladhxq_s16): Likewise.
25540 (vqdmladhq_s16): Likewise.
25541 (vmlsdavaxq_s16): Likewise.
25542 (vmlsdavaq_s16): Likewise.
25543 (vmlasq_n_s16): Likewise.
25544 (vmlaq_n_s16): Likewise.
25545 (vmladavaxq_s16): Likewise.
25546 (vmladavaq_s16): Likewise.
25547 (vsriq_n_s16): Likewise.
25548 (vsliq_n_s16): Likewise.
25549 (vpselq_u32): Likewise.
25550 (vpselq_s32): Likewise.
25551 (vrev64q_m_u32): Likewise.
25552 (vqrdmlashq_n_u32): Likewise.
25553 (vqrdmlahq_n_u32): Likewise.
25554 (vqdmlahq_n_u32): Likewise.
25555 (vmvnq_m_u32): Likewise.
25556 (vmlasq_n_u32): Likewise.
25557 (vmlaq_n_u32): Likewise.
25558 (vmladavq_p_u32): Likewise.
25559 (vmladavaq_u32): Likewise.
25560 (vminvq_p_u32): Likewise.
25561 (vmaxvq_p_u32): Likewise.
25562 (vdupq_m_n_u32): Likewise.
25563 (vcmpneq_m_u32): Likewise.
25564 (vcmpneq_m_n_u32): Likewise.
25565 (vcmphiq_m_u32): Likewise.
25566 (vcmphiq_m_n_u32): Likewise.
25567 (vcmpeqq_m_u32): Likewise.
25568 (vcmpeqq_m_n_u32): Likewise.
25569 (vcmpcsq_m_u32): Likewise.
25570 (vcmpcsq_m_n_u32): Likewise.
25571 (vclzq_m_u32): Likewise.
25572 (vaddvaq_p_u32): Likewise.
25573 (vsriq_n_u32): Likewise.
25574 (vsliq_n_u32): Likewise.
25575 (vshlq_m_r_u32): Likewise.
25576 (vrshlq_m_n_u32): Likewise.
25577 (vqshlq_m_r_u32): Likewise.
25578 (vqrshlq_m_n_u32): Likewise.
25579 (vminavq_p_s32): Likewise.
25580 (vminaq_m_s32): Likewise.
25581 (vmaxavq_p_s32): Likewise.
25582 (vmaxaq_m_s32): Likewise.
25583 (vcmpneq_m_s32): Likewise.
25584 (vcmpneq_m_n_s32): Likewise.
25585 (vcmpltq_m_s32): Likewise.
25586 (vcmpltq_m_n_s32): Likewise.
25587 (vcmpleq_m_s32): Likewise.
25588 (vcmpleq_m_n_s32): Likewise.
25589 (vcmpgtq_m_s32): Likewise.
25590 (vcmpgtq_m_n_s32): Likewise.
25591 (vcmpgeq_m_s32): Likewise.
25592 (vcmpgeq_m_n_s32): Likewise.
25593 (vcmpeqq_m_s32): Likewise.
25594 (vcmpeqq_m_n_s32): Likewise.
25595 (vshlq_m_r_s32): Likewise.
25596 (vrshlq_m_n_s32): Likewise.
25597 (vrev64q_m_s32): Likewise.
25598 (vqshlq_m_r_s32): Likewise.
25599 (vqrshlq_m_n_s32): Likewise.
25600 (vqnegq_m_s32): Likewise.
25601 (vqabsq_m_s32): Likewise.
25602 (vnegq_m_s32): Likewise.
25603 (vmvnq_m_s32): Likewise.
25604 (vmlsdavxq_p_s32): Likewise.
25605 (vmlsdavq_p_s32): Likewise.
25606 (vmladavxq_p_s32): Likewise.
25607 (vmladavq_p_s32): Likewise.
25608 (vminvq_p_s32): Likewise.
25609 (vmaxvq_p_s32): Likewise.
25610 (vdupq_m_n_s32): Likewise.
25611 (vclzq_m_s32): Likewise.
25612 (vclsq_m_s32): Likewise.
25613 (vaddvaq_p_s32): Likewise.
25614 (vabsq_m_s32): Likewise.
25615 (vqrdmlsdhxq_s32): Likewise.
25616 (vqrdmlsdhq_s32): Likewise.
25617 (vqrdmlashq_n_s32): Likewise.
25618 (vqrdmlahq_n_s32): Likewise.
25619 (vqrdmladhxq_s32): Likewise.
25620 (vqrdmladhq_s32): Likewise.
25621 (vqdmlsdhxq_s32): Likewise.
25622 (vqdmlsdhq_s32): Likewise.
25623 (vqdmlahq_n_s32): Likewise.
25624 (vqdmladhxq_s32): Likewise.
25625 (vqdmladhq_s32): Likewise.
25626 (vmlsdavaxq_s32): Likewise.
25627 (vmlsdavaq_s32): Likewise.
25628 (vmlasq_n_s32): Likewise.
25629 (vmlaq_n_s32): Likewise.
25630 (vmladavaxq_s32): Likewise.
25631 (vmladavaq_s32): Likewise.
25632 (vsriq_n_s32): Likewise.
25633 (vsliq_n_s32): Likewise.
25634 (vpselq_u64): Likewise.
25635 (vpselq_s64): Likewise.
25636 (__arm_vpselq_u8): Define intrinsic.
25637 (__arm_vpselq_s8): Likewise.
25638 (__arm_vrev64q_m_u8): Likewise.
25639 (__arm_vqrdmlashq_n_u8): Likewise.
25640 (__arm_vqrdmlahq_n_u8): Likewise.
25641 (__arm_vqdmlahq_n_u8): Likewise.
25642 (__arm_vmvnq_m_u8): Likewise.
25643 (__arm_vmlasq_n_u8): Likewise.
25644 (__arm_vmlaq_n_u8): Likewise.
25645 (__arm_vmladavq_p_u8): Likewise.
25646 (__arm_vmladavaq_u8): Likewise.
25647 (__arm_vminvq_p_u8): Likewise.
25648 (__arm_vmaxvq_p_u8): Likewise.
25649 (__arm_vdupq_m_n_u8): Likewise.
25650 (__arm_vcmpneq_m_u8): Likewise.
25651 (__arm_vcmpneq_m_n_u8): Likewise.
25652 (__arm_vcmphiq_m_u8): Likewise.
25653 (__arm_vcmphiq_m_n_u8): Likewise.
25654 (__arm_vcmpeqq_m_u8): Likewise.
25655 (__arm_vcmpeqq_m_n_u8): Likewise.
25656 (__arm_vcmpcsq_m_u8): Likewise.
25657 (__arm_vcmpcsq_m_n_u8): Likewise.
25658 (__arm_vclzq_m_u8): Likewise.
25659 (__arm_vaddvaq_p_u8): Likewise.
25660 (__arm_vsriq_n_u8): Likewise.
25661 (__arm_vsliq_n_u8): Likewise.
25662 (__arm_vshlq_m_r_u8): Likewise.
25663 (__arm_vrshlq_m_n_u8): Likewise.
25664 (__arm_vqshlq_m_r_u8): Likewise.
25665 (__arm_vqrshlq_m_n_u8): Likewise.
25666 (__arm_vminavq_p_s8): Likewise.
25667 (__arm_vminaq_m_s8): Likewise.
25668 (__arm_vmaxavq_p_s8): Likewise.
25669 (__arm_vmaxaq_m_s8): Likewise.
25670 (__arm_vcmpneq_m_s8): Likewise.
25671 (__arm_vcmpneq_m_n_s8): Likewise.
25672 (__arm_vcmpltq_m_s8): Likewise.
25673 (__arm_vcmpltq_m_n_s8): Likewise.
25674 (__arm_vcmpleq_m_s8): Likewise.
25675 (__arm_vcmpleq_m_n_s8): Likewise.
25676 (__arm_vcmpgtq_m_s8): Likewise.
25677 (__arm_vcmpgtq_m_n_s8): Likewise.
25678 (__arm_vcmpgeq_m_s8): Likewise.
25679 (__arm_vcmpgeq_m_n_s8): Likewise.
25680 (__arm_vcmpeqq_m_s8): Likewise.
25681 (__arm_vcmpeqq_m_n_s8): Likewise.
25682 (__arm_vshlq_m_r_s8): Likewise.
25683 (__arm_vrshlq_m_n_s8): Likewise.
25684 (__arm_vrev64q_m_s8): Likewise.
25685 (__arm_vqshlq_m_r_s8): Likewise.
25686 (__arm_vqrshlq_m_n_s8): Likewise.
25687 (__arm_vqnegq_m_s8): Likewise.
25688 (__arm_vqabsq_m_s8): Likewise.
25689 (__arm_vnegq_m_s8): Likewise.
25690 (__arm_vmvnq_m_s8): Likewise.
25691 (__arm_vmlsdavxq_p_s8): Likewise.
25692 (__arm_vmlsdavq_p_s8): Likewise.
25693 (__arm_vmladavxq_p_s8): Likewise.
25694 (__arm_vmladavq_p_s8): Likewise.
25695 (__arm_vminvq_p_s8): Likewise.
25696 (__arm_vmaxvq_p_s8): Likewise.
25697 (__arm_vdupq_m_n_s8): Likewise.
25698 (__arm_vclzq_m_s8): Likewise.
25699 (__arm_vclsq_m_s8): Likewise.
25700 (__arm_vaddvaq_p_s8): Likewise.
25701 (__arm_vabsq_m_s8): Likewise.
25702 (__arm_vqrdmlsdhxq_s8): Likewise.
25703 (__arm_vqrdmlsdhq_s8): Likewise.
25704 (__arm_vqrdmlashq_n_s8): Likewise.
25705 (__arm_vqrdmlahq_n_s8): Likewise.
25706 (__arm_vqrdmladhxq_s8): Likewise.
25707 (__arm_vqrdmladhq_s8): Likewise.
25708 (__arm_vqdmlsdhxq_s8): Likewise.
25709 (__arm_vqdmlsdhq_s8): Likewise.
25710 (__arm_vqdmlahq_n_s8): Likewise.
25711 (__arm_vqdmladhxq_s8): Likewise.
25712 (__arm_vqdmladhq_s8): Likewise.
25713 (__arm_vmlsdavaxq_s8): Likewise.
25714 (__arm_vmlsdavaq_s8): Likewise.
25715 (__arm_vmlasq_n_s8): Likewise.
25716 (__arm_vmlaq_n_s8): Likewise.
25717 (__arm_vmladavaxq_s8): Likewise.
25718 (__arm_vmladavaq_s8): Likewise.
25719 (__arm_vsriq_n_s8): Likewise.
25720 (__arm_vsliq_n_s8): Likewise.
25721 (__arm_vpselq_u16): Likewise.
25722 (__arm_vpselq_s16): Likewise.
25723 (__arm_vrev64q_m_u16): Likewise.
25724 (__arm_vqrdmlashq_n_u16): Likewise.
25725 (__arm_vqrdmlahq_n_u16): Likewise.
25726 (__arm_vqdmlahq_n_u16): Likewise.
25727 (__arm_vmvnq_m_u16): Likewise.
25728 (__arm_vmlasq_n_u16): Likewise.
25729 (__arm_vmlaq_n_u16): Likewise.
25730 (__arm_vmladavq_p_u16): Likewise.
25731 (__arm_vmladavaq_u16): Likewise.
25732 (__arm_vminvq_p_u16): Likewise.
25733 (__arm_vmaxvq_p_u16): Likewise.
25734 (__arm_vdupq_m_n_u16): Likewise.
25735 (__arm_vcmpneq_m_u16): Likewise.
25736 (__arm_vcmpneq_m_n_u16): Likewise.
25737 (__arm_vcmphiq_m_u16): Likewise.
25738 (__arm_vcmphiq_m_n_u16): Likewise.
25739 (__arm_vcmpeqq_m_u16): Likewise.
25740 (__arm_vcmpeqq_m_n_u16): Likewise.
25741 (__arm_vcmpcsq_m_u16): Likewise.
25742 (__arm_vcmpcsq_m_n_u16): Likewise.
25743 (__arm_vclzq_m_u16): Likewise.
25744 (__arm_vaddvaq_p_u16): Likewise.
25745 (__arm_vsriq_n_u16): Likewise.
25746 (__arm_vsliq_n_u16): Likewise.
25747 (__arm_vshlq_m_r_u16): Likewise.
25748 (__arm_vrshlq_m_n_u16): Likewise.
25749 (__arm_vqshlq_m_r_u16): Likewise.
25750 (__arm_vqrshlq_m_n_u16): Likewise.
25751 (__arm_vminavq_p_s16): Likewise.
25752 (__arm_vminaq_m_s16): Likewise.
25753 (__arm_vmaxavq_p_s16): Likewise.
25754 (__arm_vmaxaq_m_s16): Likewise.
25755 (__arm_vcmpneq_m_s16): Likewise.
25756 (__arm_vcmpneq_m_n_s16): Likewise.
25757 (__arm_vcmpltq_m_s16): Likewise.
25758 (__arm_vcmpltq_m_n_s16): Likewise.
25759 (__arm_vcmpleq_m_s16): Likewise.
25760 (__arm_vcmpleq_m_n_s16): Likewise.
25761 (__arm_vcmpgtq_m_s16): Likewise.
25762 (__arm_vcmpgtq_m_n_s16): Likewise.
25763 (__arm_vcmpgeq_m_s16): Likewise.
25764 (__arm_vcmpgeq_m_n_s16): Likewise.
25765 (__arm_vcmpeqq_m_s16): Likewise.
25766 (__arm_vcmpeqq_m_n_s16): Likewise.
25767 (__arm_vshlq_m_r_s16): Likewise.
25768 (__arm_vrshlq_m_n_s16): Likewise.
25769 (__arm_vrev64q_m_s16): Likewise.
25770 (__arm_vqshlq_m_r_s16): Likewise.
25771 (__arm_vqrshlq_m_n_s16): Likewise.
25772 (__arm_vqnegq_m_s16): Likewise.
25773 (__arm_vqabsq_m_s16): Likewise.
25774 (__arm_vnegq_m_s16): Likewise.
25775 (__arm_vmvnq_m_s16): Likewise.
25776 (__arm_vmlsdavxq_p_s16): Likewise.
25777 (__arm_vmlsdavq_p_s16): Likewise.
25778 (__arm_vmladavxq_p_s16): Likewise.
25779 (__arm_vmladavq_p_s16): Likewise.
25780 (__arm_vminvq_p_s16): Likewise.
25781 (__arm_vmaxvq_p_s16): Likewise.
25782 (__arm_vdupq_m_n_s16): Likewise.
25783 (__arm_vclzq_m_s16): Likewise.
25784 (__arm_vclsq_m_s16): Likewise.
25785 (__arm_vaddvaq_p_s16): Likewise.
25786 (__arm_vabsq_m_s16): Likewise.
25787 (__arm_vqrdmlsdhxq_s16): Likewise.
25788 (__arm_vqrdmlsdhq_s16): Likewise.
25789 (__arm_vqrdmlashq_n_s16): Likewise.
25790 (__arm_vqrdmlahq_n_s16): Likewise.
25791 (__arm_vqrdmladhxq_s16): Likewise.
25792 (__arm_vqrdmladhq_s16): Likewise.
25793 (__arm_vqdmlsdhxq_s16): Likewise.
25794 (__arm_vqdmlsdhq_s16): Likewise.
25795 (__arm_vqdmlahq_n_s16): Likewise.
25796 (__arm_vqdmladhxq_s16): Likewise.
25797 (__arm_vqdmladhq_s16): Likewise.
25798 (__arm_vmlsdavaxq_s16): Likewise.
25799 (__arm_vmlsdavaq_s16): Likewise.
25800 (__arm_vmlasq_n_s16): Likewise.
25801 (__arm_vmlaq_n_s16): Likewise.
25802 (__arm_vmladavaxq_s16): Likewise.
25803 (__arm_vmladavaq_s16): Likewise.
25804 (__arm_vsriq_n_s16): Likewise.
25805 (__arm_vsliq_n_s16): Likewise.
25806 (__arm_vpselq_u32): Likewise.
25807 (__arm_vpselq_s32): Likewise.
25808 (__arm_vrev64q_m_u32): Likewise.
25809 (__arm_vqrdmlashq_n_u32): Likewise.
25810 (__arm_vqrdmlahq_n_u32): Likewise.
25811 (__arm_vqdmlahq_n_u32): Likewise.
25812 (__arm_vmvnq_m_u32): Likewise.
25813 (__arm_vmlasq_n_u32): Likewise.
25814 (__arm_vmlaq_n_u32): Likewise.
25815 (__arm_vmladavq_p_u32): Likewise.
25816 (__arm_vmladavaq_u32): Likewise.
25817 (__arm_vminvq_p_u32): Likewise.
25818 (__arm_vmaxvq_p_u32): Likewise.
25819 (__arm_vdupq_m_n_u32): Likewise.
25820 (__arm_vcmpneq_m_u32): Likewise.
25821 (__arm_vcmpneq_m_n_u32): Likewise.
25822 (__arm_vcmphiq_m_u32): Likewise.
25823 (__arm_vcmphiq_m_n_u32): Likewise.
25824 (__arm_vcmpeqq_m_u32): Likewise.
25825 (__arm_vcmpeqq_m_n_u32): Likewise.
25826 (__arm_vcmpcsq_m_u32): Likewise.
25827 (__arm_vcmpcsq_m_n_u32): Likewise.
25828 (__arm_vclzq_m_u32): Likewise.
25829 (__arm_vaddvaq_p_u32): Likewise.
25830 (__arm_vsriq_n_u32): Likewise.
25831 (__arm_vsliq_n_u32): Likewise.
25832 (__arm_vshlq_m_r_u32): Likewise.
25833 (__arm_vrshlq_m_n_u32): Likewise.
25834 (__arm_vqshlq_m_r_u32): Likewise.
25835 (__arm_vqrshlq_m_n_u32): Likewise.
25836 (__arm_vminavq_p_s32): Likewise.
25837 (__arm_vminaq_m_s32): Likewise.
25838 (__arm_vmaxavq_p_s32): Likewise.
25839 (__arm_vmaxaq_m_s32): Likewise.
25840 (__arm_vcmpneq_m_s32): Likewise.
25841 (__arm_vcmpneq_m_n_s32): Likewise.
25842 (__arm_vcmpltq_m_s32): Likewise.
25843 (__arm_vcmpltq_m_n_s32): Likewise.
25844 (__arm_vcmpleq_m_s32): Likewise.
25845 (__arm_vcmpleq_m_n_s32): Likewise.
25846 (__arm_vcmpgtq_m_s32): Likewise.
25847 (__arm_vcmpgtq_m_n_s32): Likewise.
25848 (__arm_vcmpgeq_m_s32): Likewise.
25849 (__arm_vcmpgeq_m_n_s32): Likewise.
25850 (__arm_vcmpeqq_m_s32): Likewise.
25851 (__arm_vcmpeqq_m_n_s32): Likewise.
25852 (__arm_vshlq_m_r_s32): Likewise.
25853 (__arm_vrshlq_m_n_s32): Likewise.
25854 (__arm_vrev64q_m_s32): Likewise.
25855 (__arm_vqshlq_m_r_s32): Likewise.
25856 (__arm_vqrshlq_m_n_s32): Likewise.
25857 (__arm_vqnegq_m_s32): Likewise.
25858 (__arm_vqabsq_m_s32): Likewise.
25859 (__arm_vnegq_m_s32): Likewise.
25860 (__arm_vmvnq_m_s32): Likewise.
25861 (__arm_vmlsdavxq_p_s32): Likewise.
25862 (__arm_vmlsdavq_p_s32): Likewise.
25863 (__arm_vmladavxq_p_s32): Likewise.
25864 (__arm_vmladavq_p_s32): Likewise.
25865 (__arm_vminvq_p_s32): Likewise.
25866 (__arm_vmaxvq_p_s32): Likewise.
25867 (__arm_vdupq_m_n_s32): Likewise.
25868 (__arm_vclzq_m_s32): Likewise.
25869 (__arm_vclsq_m_s32): Likewise.
25870 (__arm_vaddvaq_p_s32): Likewise.
25871 (__arm_vabsq_m_s32): Likewise.
25872 (__arm_vqrdmlsdhxq_s32): Likewise.
25873 (__arm_vqrdmlsdhq_s32): Likewise.
25874 (__arm_vqrdmlashq_n_s32): Likewise.
25875 (__arm_vqrdmlahq_n_s32): Likewise.
25876 (__arm_vqrdmladhxq_s32): Likewise.
25877 (__arm_vqrdmladhq_s32): Likewise.
25878 (__arm_vqdmlsdhxq_s32): Likewise.
25879 (__arm_vqdmlsdhq_s32): Likewise.
25880 (__arm_vqdmlahq_n_s32): Likewise.
25881 (__arm_vqdmladhxq_s32): Likewise.
25882 (__arm_vqdmladhq_s32): Likewise.
25883 (__arm_vmlsdavaxq_s32): Likewise.
25884 (__arm_vmlsdavaq_s32): Likewise.
25885 (__arm_vmlasq_n_s32): Likewise.
25886 (__arm_vmlaq_n_s32): Likewise.
25887 (__arm_vmladavaxq_s32): Likewise.
25888 (__arm_vmladavaq_s32): Likewise.
25889 (__arm_vsriq_n_s32): Likewise.
25890 (__arm_vsliq_n_s32): Likewise.
25891 (__arm_vpselq_u64): Likewise.
25892 (__arm_vpselq_s64): Likewise.
25893 (vcmpneq_m_n): Define polymorphic variant.
25894 (vcmpneq_m): Likewise.
25895 (vqrdmlsdhq): Likewise.
25896 (vqrdmlsdhxq): Likewise.
25897 (vqrshlq_m_n): Likewise.
25898 (vqshlq_m_r): Likewise.
25899 (vrev64q_m): Likewise.
25900 (vrshlq_m_n): Likewise.
25901 (vshlq_m_r): Likewise.
25902 (vsliq_n): Likewise.
25903 (vsriq_n): Likewise.
25904 (vqrdmlashq_n): Likewise.
25905 (vqrdmlahq): Likewise.
25906 (vqrdmladhxq): Likewise.
25907 (vqrdmladhq): Likewise.
25908 (vqnegq_m): Likewise.
25909 (vqdmlsdhxq): Likewise.
25910 (vabsq_m): Likewise.
25911 (vclsq_m): Likewise.
25912 (vclzq_m): Likewise.
25913 (vcmpgeq_m): Likewise.
25914 (vcmpgeq_m_n): Likewise.
25915 (vdupq_m_n): Likewise.
25916 (vmaxaq_m): Likewise.
25917 (vmlaq_n): Likewise.
25918 (vmlasq_n): Likewise.
25919 (vmvnq_m): Likewise.
25920 (vnegq_m): Likewise.
25921 (vpselq): Likewise.
25922 (vqdmlahq_n): Likewise.
25923 (vqrdmlahq_n): Likewise.
25924 (vqdmlsdhq): Likewise.
25925 (vqdmladhq): Likewise.
25926 (vqabsq_m): Likewise.
25927 (vminaq_m): Likewise.
25928 (vrmlaldavhaq): Likewise.
25929 (vmlsdavxq_p): Likewise.
25930 (vmlsdavq_p): Likewise.
25931 (vmlsdavaxq): Likewise.
25932 (vmlsdavaq): Likewise.
25933 (vaddvaq_p): Likewise.
25934 (vcmpcsq_m_n): Likewise.
25935 (vcmpcsq_m): Likewise.
25936 (vcmpeqq_m_n): Likewise.
25937 (vcmpeqq_m): Likewise.
25938 (vmladavxq_p): Likewise.
25939 (vmladavq_p): Likewise.
25940 (vmladavaxq): Likewise.
25941 (vmladavaq): Likewise.
25942 (vminvq_p): Likewise.
25943 (vminavq_p): Likewise.
25944 (vmaxvq_p): Likewise.
25945 (vmaxavq_p): Likewise.
25946 (vcmpltq_m_n): Likewise.
25947 (vcmpltq_m): Likewise.
25948 (vcmpleq_m): Likewise.
25949 (vcmpleq_m_n): Likewise.
25950 (vcmphiq_m_n): Likewise.
25951 (vcmphiq_m): Likewise.
25952 (vcmpgtq_m_n): Likewise.
25953 (vcmpgtq_m): Likewise.
25954 * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_NONE_IMM): Use
25955 builtin qualifier.
25956 (TERNOP_NONE_NONE_NONE_NONE): Likewise.
25957 (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
25958 (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
25959 (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
25960 (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
25961 (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
25962 * config/arm/constraints.md (Rc): Define constraint to check constant is
25963 in the range of 0 to 15.
25964 (Re): Define constraint to check constant is in the range of 0 to 31.
25965 * config/arm/mve.md (VADDVAQ_P): Define iterator.
25966 (VCLZQ_M): Likewise.
25967 (VCMPEQQ_M_N): Likewise.
25968 (VCMPEQQ_M): Likewise.
25969 (VCMPNEQ_M_N): Likewise.
25970 (VCMPNEQ_M): Likewise.
25971 (VDUPQ_M_N): Likewise.
25972 (VMAXVQ_P): Likewise.
25973 (VMINVQ_P): Likewise.
25974 (VMLADAVAQ): Likewise.
25975 (VMLADAVQ_P): Likewise.
25976 (VMLAQ_N): Likewise.
25977 (VMLASQ_N): Likewise.
25978 (VMVNQ_M): Likewise.
25979 (VPSELQ): Likewise.
25980 (VQDMLAHQ_N): Likewise.
25981 (VQRDMLAHQ_N): Likewise.
25982 (VQRDMLASHQ_N): Likewise.
25983 (VQRSHLQ_M_N): Likewise.
25984 (VQSHLQ_M_R): Likewise.
25985 (VREV64Q_M): Likewise.
25986 (VRSHLQ_M_N): Likewise.
25987 (VSHLQ_M_R): Likewise.
25988 (VSLIQ_N): Likewise.
25989 (VSRIQ_N): Likewise.
25990 (mve_vabsq_m_s<mode>): Define RTL pattern.
25991 (mve_vaddvaq_p_<supf><mode>): Likewise.
25992 (mve_vclsq_m_s<mode>): Likewise.
25993 (mve_vclzq_m_<supf><mode>): Likewise.
25994 (mve_vcmpcsq_m_n_u<mode>): Likewise.
25995 (mve_vcmpcsq_m_u<mode>): Likewise.
25996 (mve_vcmpeqq_m_n_<supf><mode>): Likewise.
25997 (mve_vcmpeqq_m_<supf><mode>): Likewise.
25998 (mve_vcmpgeq_m_n_s<mode>): Likewise.
25999 (mve_vcmpgeq_m_s<mode>): Likewise.
26000 (mve_vcmpgtq_m_n_s<mode>): Likewise.
26001 (mve_vcmpgtq_m_s<mode>): Likewise.
26002 (mve_vcmphiq_m_n_u<mode>): Likewise.
26003 (mve_vcmphiq_m_u<mode>): Likewise.
26004 (mve_vcmpleq_m_n_s<mode>): Likewise.
26005 (mve_vcmpleq_m_s<mode>): Likewise.
26006 (mve_vcmpltq_m_n_s<mode>): Likewise.
26007 (mve_vcmpltq_m_s<mode>): Likewise.
26008 (mve_vcmpneq_m_n_<supf><mode>): Likewise.
26009 (mve_vcmpneq_m_<supf><mode>): Likewise.
26010 (mve_vdupq_m_n_<supf><mode>): Likewise.
26011 (mve_vmaxaq_m_s<mode>): Likewise.
26012 (mve_vmaxavq_p_s<mode>): Likewise.
26013 (mve_vmaxvq_p_<supf><mode>): Likewise.
26014 (mve_vminaq_m_s<mode>): Likewise.
26015 (mve_vminavq_p_s<mode>): Likewise.
26016 (mve_vminvq_p_<supf><mode>): Likewise.
26017 (mve_vmladavaq_<supf><mode>): Likewise.
26018 (mve_vmladavq_p_<supf><mode>): Likewise.
26019 (mve_vmladavxq_p_s<mode>): Likewise.
26020 (mve_vmlaq_n_<supf><mode>): Likewise.
26021 (mve_vmlasq_n_<supf><mode>): Likewise.
26022 (mve_vmlsdavq_p_s<mode>): Likewise.
26023 (mve_vmlsdavxq_p_s<mode>): Likewise.
26024 (mve_vmvnq_m_<supf><mode>): Likewise.
26025 (mve_vnegq_m_s<mode>): Likewise.
26026 (mve_vpselq_<supf><mode>): Likewise.
26027 (mve_vqabsq_m_s<mode>): Likewise.
26028 (mve_vqdmlahq_n_<supf><mode>): Likewise.
26029 (mve_vqnegq_m_s<mode>): Likewise.
26030 (mve_vqrdmladhq_s<mode>): Likewise.
26031 (mve_vqrdmladhxq_s<mode>): Likewise.
26032 (mve_vqrdmlahq_n_<supf><mode>): Likewise.
26033 (mve_vqrdmlashq_n_<supf><mode>): Likewise.
26034 (mve_vqrdmlsdhq_s<mode>): Likewise.
26035 (mve_vqrdmlsdhxq_s<mode>): Likewise.
26036 (mve_vqrshlq_m_n_<supf><mode>): Likewise.
26037 (mve_vqshlq_m_r_<supf><mode>): Likewise.
26038 (mve_vrev64q_m_<supf><mode>): Likewise.
26039 (mve_vrshlq_m_n_<supf><mode>): Likewise.
26040 (mve_vshlq_m_r_<supf><mode>): Likewise.
26041 (mve_vsliq_n_<supf><mode>): Likewise.
26042 (mve_vsriq_n_<supf><mode>): Likewise.
26043 (mve_vqdmlsdhxq_s<mode>): Likewise.
26044 (mve_vqdmlsdhq_s<mode>): Likewise.
26045 (mve_vqdmladhxq_s<mode>): Likewise.
26046 (mve_vqdmladhq_s<mode>): Likewise.
26047 (mve_vmlsdavaxq_s<mode>): Likewise.
26048 (mve_vmlsdavaq_s<mode>): Likewise.
26049 (mve_vmladavaxq_s<mode>): Likewise.
26050 * config/arm/predicates.md (mve_imm_15):Define predicate to check the
26051 matching constraint Rc.
26052 (mve_imm_31): Define predicate to check the matching constraint Re.
26053
26054 2020-03-18 Andrew Stubbs <ams@codesourcery.com>
26055
26056 * config/gcn/gcn-valu.md (vec_cmp<mode>di): Set operand 1 to DImode.
26057 (vec_cmp<mode>di_dup): Likewise.
26058 * config/gcn/gcn.h (STORE_FLAG_VALUE): Set to -1.
26059
26060 2020-03-18 Andrew Stubbs <ams@codesourcery.com>
26061
26062 * config/gcn/gcn-valu.md (COND_MODE): Delete.
26063 (COND_INT_MODE): Delete.
26064 (cond_op): Add "mult".
26065 (cond_<expander><mode>): Use VEC_ALLREG_MODE.
26066 (cond_<expander><mode>): Use VEC_ALLREG_INT_MODE.
26067
26068 2020-03-18 Richard Biener <rguenther@suse.de>
26069
26070 PR middle-end/94206
26071 * gimple-fold.c (gimple_fold_builtin_memset): Avoid using
26072 partial int modes or not mode-precision integer types for
26073 the store.
26074
26075 2020-03-18 Jakub Jelinek <jakub@redhat.com>
26076
26077 * asan.c (get_mem_refs_of_builtin_call): Fix up duplicated word issue
26078 in a comment.
26079 * config/arc/arc.c (frame_stack_add): Likewise.
26080 * gimple-loop-versioning.cc (loop_versioning::analyze_arbitrary_term):
26081 Likewise.
26082 * ipa-predicate.c (predicate::remap_after_inlining): Likewise.
26083 * tree-ssa-strlen.h (handle_printf_call): Likewise.
26084 * tree-ssa-strlen.c (is_strlen_related_p): Likewise.
26085 * optinfo-emit-json.cc (optrecord_json_writer::add_record): Likewise.
26086
26087 2020-03-18 Duan bo <duanbo3@huawei.com>
26088
26089 PR target/94201
26090 * config/aarch64/aarch64.md (ldr_got_tiny): Delete.
26091 (@ldr_got_tiny_<mode>): New pattern.
26092 (ldr_got_tiny_sidi): Likewise.
26093 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Use
26094 them to handle SYMBOL_TINY_GOT for ILP32.
26095
26096 2020-03-18 Richard Sandiford <richard.sandiford@arm.com>
26097
26098 * config/aarch64/aarch64.c (aarch64_sve_abi): Treat p12-p15 as
26099 call-preserved for SVE PCS functions.
26100 (aarch64_layout_frame): Cope with up to 12 predicate save slots.
26101 Optimize the case in which there are no following vector save slots.
26102
26103 2020-03-18 Richard Biener <rguenther@suse.de>
26104
26105 PR middle-end/94188
26106 * fold-const.c (build_fold_addr_expr): Convert address to
26107 correct type.
26108 * asan.c (maybe_create_ssa_name): Strip useless type conversions.
26109 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use build1
26110 to build the ADDR_EXPR which we don't really want to simplify.
26111 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
26112 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Likewise.
26113 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26114 (simplify_builtin_call): Strip useless type conversions.
26115 * tree-ssa-strlen.c (new_strinfo): Likewise.
26116
26117 2020-03-17 Alexey Neyman <stilor@att.net>
26118
26119 PR debug/93751
26120 * dwarf2out.c (gen_decl_die): Proceed to generating the DIE if
26121 the debug level is terse and the declaration is public. Do not
26122 generate type info.
26123 (dwarf2out_decl): Same.
26124 (add_type_attribute): Return immediately if debug level is
26125 terse.
26126
26127 2020-03-17 Richard Sandiford <richard.sandiford@arm.com>
26128
26129 * config/aarch64/iterators.md (Vmtype): Handle V4BF and V8BF.
26130
26131 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
26132 Mihail Ionescu <mihail.ionescu@arm.com>
26133 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
26134
26135 * config/arm/arm-builtins.c (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS):
26136 Define qualifier for ternary operands.
26137 (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
26138 (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
26139 (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
26140 (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
26141 (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
26142 (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
26143 (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
26144 (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
26145 (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
26146 (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
26147 (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
26148 (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
26149 (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
26150 * config/arm/arm_mve.h (vabavq_s8): Define macro.
26151 (vabavq_s16): Likewise.
26152 (vabavq_s32): Likewise.
26153 (vbicq_m_n_s16): Likewise.
26154 (vbicq_m_n_s32): Likewise.
26155 (vbicq_m_n_u16): Likewise.
26156 (vbicq_m_n_u32): Likewise.
26157 (vcmpeqq_m_f16): Likewise.
26158 (vcmpeqq_m_f32): Likewise.
26159 (vcvtaq_m_s16_f16): Likewise.
26160 (vcvtaq_m_u16_f16): Likewise.
26161 (vcvtaq_m_s32_f32): Likewise.
26162 (vcvtaq_m_u32_f32): Likewise.
26163 (vcvtq_m_f16_s16): Likewise.
26164 (vcvtq_m_f16_u16): Likewise.
26165 (vcvtq_m_f32_s32): Likewise.
26166 (vcvtq_m_f32_u32): Likewise.
26167 (vqrshrnbq_n_s16): Likewise.
26168 (vqrshrnbq_n_u16): Likewise.
26169 (vqrshrnbq_n_s32): Likewise.
26170 (vqrshrnbq_n_u32): Likewise.
26171 (vqrshrunbq_n_s16): Likewise.
26172 (vqrshrunbq_n_s32): Likewise.
26173 (vrmlaldavhaq_s32): Likewise.
26174 (vrmlaldavhaq_u32): Likewise.
26175 (vshlcq_s8): Likewise.
26176 (vshlcq_u8): Likewise.
26177 (vshlcq_s16): Likewise.
26178 (vshlcq_u16): Likewise.
26179 (vshlcq_s32): Likewise.
26180 (vshlcq_u32): Likewise.
26181 (vabavq_u8): Likewise.
26182 (vabavq_u16): Likewise.
26183 (vabavq_u32): Likewise.
26184 (__arm_vabavq_s8): Define intrinsic.
26185 (__arm_vabavq_s16): Likewise.
26186 (__arm_vabavq_s32): Likewise.
26187 (__arm_vabavq_u8): Likewise.
26188 (__arm_vabavq_u16): Likewise.
26189 (__arm_vabavq_u32): Likewise.
26190 (__arm_vbicq_m_n_s16): Likewise.
26191 (__arm_vbicq_m_n_s32): Likewise.
26192 (__arm_vbicq_m_n_u16): Likewise.
26193 (__arm_vbicq_m_n_u32): Likewise.
26194 (__arm_vqrshrnbq_n_s16): Likewise.
26195 (__arm_vqrshrnbq_n_u16): Likewise.
26196 (__arm_vqrshrnbq_n_s32): Likewise.
26197 (__arm_vqrshrnbq_n_u32): Likewise.
26198 (__arm_vqrshrunbq_n_s16): Likewise.
26199 (__arm_vqrshrunbq_n_s32): Likewise.
26200 (__arm_vrmlaldavhaq_s32): Likewise.
26201 (__arm_vrmlaldavhaq_u32): Likewise.
26202 (__arm_vshlcq_s8): Likewise.
26203 (__arm_vshlcq_u8): Likewise.
26204 (__arm_vshlcq_s16): Likewise.
26205 (__arm_vshlcq_u16): Likewise.
26206 (__arm_vshlcq_s32): Likewise.
26207 (__arm_vshlcq_u32): Likewise.
26208 (__arm_vcmpeqq_m_f16): Likewise.
26209 (__arm_vcmpeqq_m_f32): Likewise.
26210 (__arm_vcvtaq_m_s16_f16): Likewise.
26211 (__arm_vcvtaq_m_u16_f16): Likewise.
26212 (__arm_vcvtaq_m_s32_f32): Likewise.
26213 (__arm_vcvtaq_m_u32_f32): Likewise.
26214 (__arm_vcvtq_m_f16_s16): Likewise.
26215 (__arm_vcvtq_m_f16_u16): Likewise.
26216 (__arm_vcvtq_m_f32_s32): Likewise.
26217 (__arm_vcvtq_m_f32_u32): Likewise.
26218 (vcvtaq_m): Define polymorphic variant.
26219 (vcvtq_m): Likewise.
26220 (vabavq): Likewise.
26221 (vshlcq): Likewise.
26222 (vbicq_m_n): Likewise.
26223 (vqrshrnbq_n): Likewise.
26224 (vqrshrunbq_n): Likewise.
26225 * config/arm/arm_mve_builtins.def
26226 (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS): Use the builtin qualifer.
26227 (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
26228 (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
26229 (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
26230 (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
26231 (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
26232 (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
26233 (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
26234 (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
26235 (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
26236 (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
26237 (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
26238 (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
26239 (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
26240 * config/arm/mve.md (VBICQ_M_N): Define iterator.
26241 (VCVTAQ_M): Likewise.
26242 (VCVTQ_M_TO_F): Likewise.
26243 (VQRSHRNBQ_N): Likewise.
26244 (VABAVQ): Likewise.
26245 (VSHLCQ): Likewise.
26246 (VRMLALDAVHAQ): Likewise.
26247 (mve_vbicq_m_n_<supf><mode>): Define RTL pattern.
26248 (mve_vcmpeqq_m_f<mode>): Likewise.
26249 (mve_vcvtaq_m_<supf><mode>): Likewise.
26250 (mve_vcvtq_m_to_f_<supf><mode>): Likewise.
26251 (mve_vqrshrnbq_n_<supf><mode>): Likewise.
26252 (mve_vqrshrunbq_n_s<mode>): Likewise.
26253 (mve_vrmlaldavhaq_<supf>v4si): Likewise.
26254 (mve_vabavq_<supf><mode>): Likewise.
26255 (mve_vshlcq_<supf><mode>): Likewise.
26256 (mve_vshlcq_<supf><mode>): Likewise.
26257 (mve_vshlcq_vec_<supf><mode>): Define RTL expand.
26258 (mve_vshlcq_carry_<supf><mode>): Likewise.
26259
26260 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
26261 Mihail Ionescu <mihail.ionescu@arm.com>
26262 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
26263
26264 * config/arm/arm_mve.h (vqmovntq_u16): Define macro.
26265 (vqmovnbq_u16): Likewise.
26266 (vmulltq_poly_p8): Likewise.
26267 (vmullbq_poly_p8): Likewise.
26268 (vmovntq_u16): Likewise.
26269 (vmovnbq_u16): Likewise.
26270 (vmlaldavxq_u16): Likewise.
26271 (vmlaldavq_u16): Likewise.
26272 (vqmovuntq_s16): Likewise.
26273 (vqmovunbq_s16): Likewise.
26274 (vshlltq_n_u8): Likewise.
26275 (vshllbq_n_u8): Likewise.
26276 (vorrq_n_u16): Likewise.
26277 (vbicq_n_u16): Likewise.
26278 (vcmpneq_n_f16): Likewise.
26279 (vcmpneq_f16): Likewise.
26280 (vcmpltq_n_f16): Likewise.
26281 (vcmpltq_f16): Likewise.
26282 (vcmpleq_n_f16): Likewise.
26283 (vcmpleq_f16): Likewise.
26284 (vcmpgtq_n_f16): Likewise.
26285 (vcmpgtq_f16): Likewise.
26286 (vcmpgeq_n_f16): Likewise.
26287 (vcmpgeq_f16): Likewise.
26288 (vcmpeqq_n_f16): Likewise.
26289 (vcmpeqq_f16): Likewise.
26290 (vsubq_f16): Likewise.
26291 (vqmovntq_s16): Likewise.
26292 (vqmovnbq_s16): Likewise.
26293 (vqdmulltq_s16): Likewise.
26294 (vqdmulltq_n_s16): Likewise.
26295 (vqdmullbq_s16): Likewise.
26296 (vqdmullbq_n_s16): Likewise.
26297 (vorrq_f16): Likewise.
26298 (vornq_f16): Likewise.
26299 (vmulq_n_f16): Likewise.
26300 (vmulq_f16): Likewise.
26301 (vmovntq_s16): Likewise.
26302 (vmovnbq_s16): Likewise.
26303 (vmlsldavxq_s16): Likewise.
26304 (vmlsldavq_s16): Likewise.
26305 (vmlaldavxq_s16): Likewise.
26306 (vmlaldavq_s16): Likewise.
26307 (vminnmvq_f16): Likewise.
26308 (vminnmq_f16): Likewise.
26309 (vminnmavq_f16): Likewise.
26310 (vminnmaq_f16): Likewise.
26311 (vmaxnmvq_f16): Likewise.
26312 (vmaxnmq_f16): Likewise.
26313 (vmaxnmavq_f16): Likewise.
26314 (vmaxnmaq_f16): Likewise.
26315 (veorq_f16): Likewise.
26316 (vcmulq_rot90_f16): Likewise.
26317 (vcmulq_rot270_f16): Likewise.
26318 (vcmulq_rot180_f16): Likewise.
26319 (vcmulq_f16): Likewise.
26320 (vcaddq_rot90_f16): Likewise.
26321 (vcaddq_rot270_f16): Likewise.
26322 (vbicq_f16): Likewise.
26323 (vandq_f16): Likewise.
26324 (vaddq_n_f16): Likewise.
26325 (vabdq_f16): Likewise.
26326 (vshlltq_n_s8): Likewise.
26327 (vshllbq_n_s8): Likewise.
26328 (vorrq_n_s16): Likewise.
26329 (vbicq_n_s16): Likewise.
26330 (vqmovntq_u32): Likewise.
26331 (vqmovnbq_u32): Likewise.
26332 (vmulltq_poly_p16): Likewise.
26333 (vmullbq_poly_p16): Likewise.
26334 (vmovntq_u32): Likewise.
26335 (vmovnbq_u32): Likewise.
26336 (vmlaldavxq_u32): Likewise.
26337 (vmlaldavq_u32): Likewise.
26338 (vqmovuntq_s32): Likewise.
26339 (vqmovunbq_s32): Likewise.
26340 (vshlltq_n_u16): Likewise.
26341 (vshllbq_n_u16): Likewise.
26342 (vorrq_n_u32): Likewise.
26343 (vbicq_n_u32): Likewise.
26344 (vcmpneq_n_f32): Likewise.
26345 (vcmpneq_f32): Likewise.
26346 (vcmpltq_n_f32): Likewise.
26347 (vcmpltq_f32): Likewise.
26348 (vcmpleq_n_f32): Likewise.
26349 (vcmpleq_f32): Likewise.
26350 (vcmpgtq_n_f32): Likewise.
26351 (vcmpgtq_f32): Likewise.
26352 (vcmpgeq_n_f32): Likewise.
26353 (vcmpgeq_f32): Likewise.
26354 (vcmpeqq_n_f32): Likewise.
26355 (vcmpeqq_f32): Likewise.
26356 (vsubq_f32): Likewise.
26357 (vqmovntq_s32): Likewise.
26358 (vqmovnbq_s32): Likewise.
26359 (vqdmulltq_s32): Likewise.
26360 (vqdmulltq_n_s32): Likewise.
26361 (vqdmullbq_s32): Likewise.
26362 (vqdmullbq_n_s32): Likewise.
26363 (vorrq_f32): Likewise.
26364 (vornq_f32): Likewise.
26365 (vmulq_n_f32): Likewise.
26366 (vmulq_f32): Likewise.
26367 (vmovntq_s32): Likewise.
26368 (vmovnbq_s32): Likewise.
26369 (vmlsldavxq_s32): Likewise.
26370 (vmlsldavq_s32): Likewise.
26371 (vmlaldavxq_s32): Likewise.
26372 (vmlaldavq_s32): Likewise.
26373 (vminnmvq_f32): Likewise.
26374 (vminnmq_f32): Likewise.
26375 (vminnmavq_f32): Likewise.
26376 (vminnmaq_f32): Likewise.
26377 (vmaxnmvq_f32): Likewise.
26378 (vmaxnmq_f32): Likewise.
26379 (vmaxnmavq_f32): Likewise.
26380 (vmaxnmaq_f32): Likewise.
26381 (veorq_f32): Likewise.
26382 (vcmulq_rot90_f32): Likewise.
26383 (vcmulq_rot270_f32): Likewise.
26384 (vcmulq_rot180_f32): Likewise.
26385 (vcmulq_f32): Likewise.
26386 (vcaddq_rot90_f32): Likewise.
26387 (vcaddq_rot270_f32): Likewise.
26388 (vbicq_f32): Likewise.
26389 (vandq_f32): Likewise.
26390 (vaddq_n_f32): Likewise.
26391 (vabdq_f32): Likewise.
26392 (vshlltq_n_s16): Likewise.
26393 (vshllbq_n_s16): Likewise.
26394 (vorrq_n_s32): Likewise.
26395 (vbicq_n_s32): Likewise.
26396 (vrmlaldavhq_u32): Likewise.
26397 (vctp8q_m): Likewise.
26398 (vctp64q_m): Likewise.
26399 (vctp32q_m): Likewise.
26400 (vctp16q_m): Likewise.
26401 (vaddlvaq_u32): Likewise.
26402 (vrmlsldavhxq_s32): Likewise.
26403 (vrmlsldavhq_s32): Likewise.
26404 (vrmlaldavhxq_s32): Likewise.
26405 (vrmlaldavhq_s32): Likewise.
26406 (vcvttq_f16_f32): Likewise.
26407 (vcvtbq_f16_f32): Likewise.
26408 (vaddlvaq_s32): Likewise.
26409 (__arm_vqmovntq_u16): Define intrinsic.
26410 (__arm_vqmovnbq_u16): Likewise.
26411 (__arm_vmulltq_poly_p8): Likewise.
26412 (__arm_vmullbq_poly_p8): Likewise.
26413 (__arm_vmovntq_u16): Likewise.
26414 (__arm_vmovnbq_u16): Likewise.
26415 (__arm_vmlaldavxq_u16): Likewise.
26416 (__arm_vmlaldavq_u16): Likewise.
26417 (__arm_vqmovuntq_s16): Likewise.
26418 (__arm_vqmovunbq_s16): Likewise.
26419 (__arm_vshlltq_n_u8): Likewise.
26420 (__arm_vshllbq_n_u8): Likewise.
26421 (__arm_vorrq_n_u16): Likewise.
26422 (__arm_vbicq_n_u16): Likewise.
26423 (__arm_vcmpneq_n_f16): Likewise.
26424 (__arm_vcmpneq_f16): Likewise.
26425 (__arm_vcmpltq_n_f16): Likewise.
26426 (__arm_vcmpltq_f16): Likewise.
26427 (__arm_vcmpleq_n_f16): Likewise.
26428 (__arm_vcmpleq_f16): Likewise.
26429 (__arm_vcmpgtq_n_f16): Likewise.
26430 (__arm_vcmpgtq_f16): Likewise.
26431 (__arm_vcmpgeq_n_f16): Likewise.
26432 (__arm_vcmpgeq_f16): Likewise.
26433 (__arm_vcmpeqq_n_f16): Likewise.
26434 (__arm_vcmpeqq_f16): Likewise.
26435 (__arm_vsubq_f16): Likewise.
26436 (__arm_vqmovntq_s16): Likewise.
26437 (__arm_vqmovnbq_s16): Likewise.
26438 (__arm_vqdmulltq_s16): Likewise.
26439 (__arm_vqdmulltq_n_s16): Likewise.
26440 (__arm_vqdmullbq_s16): Likewise.
26441 (__arm_vqdmullbq_n_s16): Likewise.
26442 (__arm_vorrq_f16): Likewise.
26443 (__arm_vornq_f16): Likewise.
26444 (__arm_vmulq_n_f16): Likewise.
26445 (__arm_vmulq_f16): Likewise.
26446 (__arm_vmovntq_s16): Likewise.
26447 (__arm_vmovnbq_s16): Likewise.
26448 (__arm_vmlsldavxq_s16): Likewise.
26449 (__arm_vmlsldavq_s16): Likewise.
26450 (__arm_vmlaldavxq_s16): Likewise.
26451 (__arm_vmlaldavq_s16): Likewise.
26452 (__arm_vminnmvq_f16): Likewise.
26453 (__arm_vminnmq_f16): Likewise.
26454 (__arm_vminnmavq_f16): Likewise.
26455 (__arm_vminnmaq_f16): Likewise.
26456 (__arm_vmaxnmvq_f16): Likewise.
26457 (__arm_vmaxnmq_f16): Likewise.
26458 (__arm_vmaxnmavq_f16): Likewise.
26459 (__arm_vmaxnmaq_f16): Likewise.
26460 (__arm_veorq_f16): Likewise.
26461 (__arm_vcmulq_rot90_f16): Likewise.
26462 (__arm_vcmulq_rot270_f16): Likewise.
26463 (__arm_vcmulq_rot180_f16): Likewise.
26464 (__arm_vcmulq_f16): Likewise.
26465 (__arm_vcaddq_rot90_f16): Likewise.
26466 (__arm_vcaddq_rot270_f16): Likewise.
26467 (__arm_vbicq_f16): Likewise.
26468 (__arm_vandq_f16): Likewise.
26469 (__arm_vaddq_n_f16): Likewise.
26470 (__arm_vabdq_f16): Likewise.
26471 (__arm_vshlltq_n_s8): Likewise.
26472 (__arm_vshllbq_n_s8): Likewise.
26473 (__arm_vorrq_n_s16): Likewise.
26474 (__arm_vbicq_n_s16): Likewise.
26475 (__arm_vqmovntq_u32): Likewise.
26476 (__arm_vqmovnbq_u32): Likewise.
26477 (__arm_vmulltq_poly_p16): Likewise.
26478 (__arm_vmullbq_poly_p16): Likewise.
26479 (__arm_vmovntq_u32): Likewise.
26480 (__arm_vmovnbq_u32): Likewise.
26481 (__arm_vmlaldavxq_u32): Likewise.
26482 (__arm_vmlaldavq_u32): Likewise.
26483 (__arm_vqmovuntq_s32): Likewise.
26484 (__arm_vqmovunbq_s32): Likewise.
26485 (__arm_vshlltq_n_u16): Likewise.
26486 (__arm_vshllbq_n_u16): Likewise.
26487 (__arm_vorrq_n_u32): Likewise.
26488 (__arm_vbicq_n_u32): Likewise.
26489 (__arm_vcmpneq_n_f32): Likewise.
26490 (__arm_vcmpneq_f32): Likewise.
26491 (__arm_vcmpltq_n_f32): Likewise.
26492 (__arm_vcmpltq_f32): Likewise.
26493 (__arm_vcmpleq_n_f32): Likewise.
26494 (__arm_vcmpleq_f32): Likewise.
26495 (__arm_vcmpgtq_n_f32): Likewise.
26496 (__arm_vcmpgtq_f32): Likewise.
26497 (__arm_vcmpgeq_n_f32): Likewise.
26498 (__arm_vcmpgeq_f32): Likewise.
26499 (__arm_vcmpeqq_n_f32): Likewise.
26500 (__arm_vcmpeqq_f32): Likewise.
26501 (__arm_vsubq_f32): Likewise.
26502 (__arm_vqmovntq_s32): Likewise.
26503 (__arm_vqmovnbq_s32): Likewise.
26504 (__arm_vqdmulltq_s32): Likewise.
26505 (__arm_vqdmulltq_n_s32): Likewise.
26506 (__arm_vqdmullbq_s32): Likewise.
26507 (__arm_vqdmullbq_n_s32): Likewise.
26508 (__arm_vorrq_f32): Likewise.
26509 (__arm_vornq_f32): Likewise.
26510 (__arm_vmulq_n_f32): Likewise.
26511 (__arm_vmulq_f32): Likewise.
26512 (__arm_vmovntq_s32): Likewise.
26513 (__arm_vmovnbq_s32): Likewise.
26514 (__arm_vmlsldavxq_s32): Likewise.
26515 (__arm_vmlsldavq_s32): Likewise.
26516 (__arm_vmlaldavxq_s32): Likewise.
26517 (__arm_vmlaldavq_s32): Likewise.
26518 (__arm_vminnmvq_f32): Likewise.
26519 (__arm_vminnmq_f32): Likewise.
26520 (__arm_vminnmavq_f32): Likewise.
26521 (__arm_vminnmaq_f32): Likewise.
26522 (__arm_vmaxnmvq_f32): Likewise.
26523 (__arm_vmaxnmq_f32): Likewise.
26524 (__arm_vmaxnmavq_f32): Likewise.
26525 (__arm_vmaxnmaq_f32): Likewise.
26526 (__arm_veorq_f32): Likewise.
26527 (__arm_vcmulq_rot90_f32): Likewise.
26528 (__arm_vcmulq_rot270_f32): Likewise.
26529 (__arm_vcmulq_rot180_f32): Likewise.
26530 (__arm_vcmulq_f32): Likewise.
26531 (__arm_vcaddq_rot90_f32): Likewise.
26532 (__arm_vcaddq_rot270_f32): Likewise.
26533 (__arm_vbicq_f32): Likewise.
26534 (__arm_vandq_f32): Likewise.
26535 (__arm_vaddq_n_f32): Likewise.
26536 (__arm_vabdq_f32): Likewise.
26537 (__arm_vshlltq_n_s16): Likewise.
26538 (__arm_vshllbq_n_s16): Likewise.
26539 (__arm_vorrq_n_s32): Likewise.
26540 (__arm_vbicq_n_s32): Likewise.
26541 (__arm_vrmlaldavhq_u32): Likewise.
26542 (__arm_vctp8q_m): Likewise.
26543 (__arm_vctp64q_m): Likewise.
26544 (__arm_vctp32q_m): Likewise.
26545 (__arm_vctp16q_m): Likewise.
26546 (__arm_vaddlvaq_u32): Likewise.
26547 (__arm_vrmlsldavhxq_s32): Likewise.
26548 (__arm_vrmlsldavhq_s32): Likewise.
26549 (__arm_vrmlaldavhxq_s32): Likewise.
26550 (__arm_vrmlaldavhq_s32): Likewise.
26551 (__arm_vcvttq_f16_f32): Likewise.
26552 (__arm_vcvtbq_f16_f32): Likewise.
26553 (__arm_vaddlvaq_s32): Likewise.
26554 (vst4q): Define polymorphic variant.
26555 (vrndxq): Likewise.
26556 (vrndq): Likewise.
26557 (vrndpq): Likewise.
26558 (vrndnq): Likewise.
26559 (vrndmq): Likewise.
26560 (vrndaq): Likewise.
26561 (vrev64q): Likewise.
26562 (vnegq): Likewise.
26563 (vdupq_n): Likewise.
26564 (vabsq): Likewise.
26565 (vrev32q): Likewise.
26566 (vcvtbq_f32): Likewise.
26567 (vcvttq_f32): Likewise.
26568 (vcvtq): Likewise.
26569 (vsubq_n): Likewise.
26570 (vbrsrq_n): Likewise.
26571 (vcvtq_n): Likewise.
26572 (vsubq): Likewise.
26573 (vorrq): Likewise.
26574 (vabdq): Likewise.
26575 (vaddq_n): Likewise.
26576 (vandq): Likewise.
26577 (vbicq): Likewise.
26578 (vornq): Likewise.
26579 (vmulq_n): Likewise.
26580 (vmulq): Likewise.
26581 (vcaddq_rot270): Likewise.
26582 (vcmpeqq_n): Likewise.
26583 (vcmpeqq): Likewise.
26584 (vcaddq_rot90): Likewise.
26585 (vcmpgeq_n): Likewise.
26586 (vcmpgeq): Likewise.
26587 (vcmpgtq_n): Likewise.
26588 (vcmpgtq): Likewise.
26589 (vcmpgtq): Likewise.
26590 (vcmpleq_n): Likewise.
26591 (vcmpleq_n): Likewise.
26592 (vcmpleq): Likewise.
26593 (vcmpleq): Likewise.
26594 (vcmpltq_n): Likewise.
26595 (vcmpltq_n): Likewise.
26596 (vcmpltq): Likewise.
26597 (vcmpltq): Likewise.
26598 (vcmpneq_n): Likewise.
26599 (vcmpneq_n): Likewise.
26600 (vcmpneq): Likewise.
26601 (vcmpneq): Likewise.
26602 (vcmulq): Likewise.
26603 (vcmulq): Likewise.
26604 (vcmulq_rot180): Likewise.
26605 (vcmulq_rot180): Likewise.
26606 (vcmulq_rot270): Likewise.
26607 (vcmulq_rot270): Likewise.
26608 (vcmulq_rot90): Likewise.
26609 (vcmulq_rot90): Likewise.
26610 (veorq): Likewise.
26611 (veorq): Likewise.
26612 (vmaxnmaq): Likewise.
26613 (vmaxnmaq): Likewise.
26614 (vmaxnmavq): Likewise.
26615 (vmaxnmavq): Likewise.
26616 (vmaxnmq): Likewise.
26617 (vmaxnmq): Likewise.
26618 (vmaxnmvq): Likewise.
26619 (vmaxnmvq): Likewise.
26620 (vminnmaq): Likewise.
26621 (vminnmaq): Likewise.
26622 (vminnmavq): Likewise.
26623 (vminnmavq): Likewise.
26624 (vminnmq): Likewise.
26625 (vminnmq): Likewise.
26626 (vminnmvq): Likewise.
26627 (vminnmvq): Likewise.
26628 (vbicq_n): Likewise.
26629 (vqmovntq): Likewise.
26630 (vqmovntq): Likewise.
26631 (vqmovnbq): Likewise.
26632 (vqmovnbq): Likewise.
26633 (vmulltq_poly): Likewise.
26634 (vmulltq_poly): Likewise.
26635 (vmullbq_poly): Likewise.
26636 (vmullbq_poly): Likewise.
26637 (vmovntq): Likewise.
26638 (vmovntq): Likewise.
26639 (vmovnbq): Likewise.
26640 (vmovnbq): Likewise.
26641 (vmlaldavxq): Likewise.
26642 (vmlaldavxq): Likewise.
26643 (vqmovuntq): Likewise.
26644 (vqmovuntq): Likewise.
26645 (vshlltq_n): Likewise.
26646 (vshlltq_n): Likewise.
26647 (vshllbq_n): Likewise.
26648 (vshllbq_n): Likewise.
26649 (vorrq_n): Likewise.
26650 (vorrq_n): Likewise.
26651 (vmlaldavq): Likewise.
26652 (vmlaldavq): Likewise.
26653 (vqmovunbq): Likewise.
26654 (vqmovunbq): Likewise.
26655 (vqdmulltq_n): Likewise.
26656 (vqdmulltq_n): Likewise.
26657 (vqdmulltq): Likewise.
26658 (vqdmulltq): Likewise.
26659 (vqdmullbq_n): Likewise.
26660 (vqdmullbq_n): Likewise.
26661 (vqdmullbq): Likewise.
26662 (vqdmullbq): Likewise.
26663 (vaddlvaq): Likewise.
26664 (vaddlvaq): Likewise.
26665 (vrmlaldavhq): Likewise.
26666 (vrmlaldavhq): Likewise.
26667 (vrmlaldavhxq): Likewise.
26668 (vrmlaldavhxq): Likewise.
26669 (vrmlsldavhq): Likewise.
26670 (vrmlsldavhq): Likewise.
26671 (vrmlsldavhxq): Likewise.
26672 (vrmlsldavhxq): Likewise.
26673 (vmlsldavxq): Likewise.
26674 (vmlsldavxq): Likewise.
26675 (vmlsldavq): Likewise.
26676 (vmlsldavq): Likewise.
26677 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
26678 (BINOP_NONE_NONE_NONE): Likewise.
26679 (BINOP_UNONE_NONE_NONE): Likewise.
26680 (BINOP_UNONE_UNONE_IMM): Likewise.
26681 (BINOP_UNONE_UNONE_NONE): Likewise.
26682 (BINOP_UNONE_UNONE_UNONE): Likewise.
26683 * config/arm/mve.md (mve_vabdq_f<mode>): Define RTL pattern.
26684 (mve_vaddlvaq_<supf>v4si): Likewise.
26685 (mve_vaddq_n_f<mode>): Likewise.
26686 (mve_vandq_f<mode>): Likewise.
26687 (mve_vbicq_f<mode>): Likewise.
26688 (mve_vbicq_n_<supf><mode>): Likewise.
26689 (mve_vcaddq_rot270_f<mode>): Likewise.
26690 (mve_vcaddq_rot90_f<mode>): Likewise.
26691 (mve_vcmpeqq_f<mode>): Likewise.
26692 (mve_vcmpeqq_n_f<mode>): Likewise.
26693 (mve_vcmpgeq_f<mode>): Likewise.
26694 (mve_vcmpgeq_n_f<mode>): Likewise.
26695 (mve_vcmpgtq_f<mode>): Likewise.
26696 (mve_vcmpgtq_n_f<mode>): Likewise.
26697 (mve_vcmpleq_f<mode>): Likewise.
26698 (mve_vcmpleq_n_f<mode>): Likewise.
26699 (mve_vcmpltq_f<mode>): Likewise.
26700 (mve_vcmpltq_n_f<mode>): Likewise.
26701 (mve_vcmpneq_f<mode>): Likewise.
26702 (mve_vcmpneq_n_f<mode>): Likewise.
26703 (mve_vcmulq_f<mode>): Likewise.
26704 (mve_vcmulq_rot180_f<mode>): Likewise.
26705 (mve_vcmulq_rot270_f<mode>): Likewise.
26706 (mve_vcmulq_rot90_f<mode>): Likewise.
26707 (mve_vctp<mode1>q_mhi): Likewise.
26708 (mve_vcvtbq_f16_f32v8hf): Likewise.
26709 (mve_vcvttq_f16_f32v8hf): Likewise.
26710 (mve_veorq_f<mode>): Likewise.
26711 (mve_vmaxnmaq_f<mode>): Likewise.
26712 (mve_vmaxnmavq_f<mode>): Likewise.
26713 (mve_vmaxnmq_f<mode>): Likewise.
26714 (mve_vmaxnmvq_f<mode>): Likewise.
26715 (mve_vminnmaq_f<mode>): Likewise.
26716 (mve_vminnmavq_f<mode>): Likewise.
26717 (mve_vminnmq_f<mode>): Likewise.
26718 (mve_vminnmvq_f<mode>): Likewise.
26719 (mve_vmlaldavq_<supf><mode>): Likewise.
26720 (mve_vmlaldavxq_<supf><mode>): Likewise.
26721 (mve_vmlsldavq_s<mode>): Likewise.
26722 (mve_vmlsldavxq_s<mode>): Likewise.
26723 (mve_vmovnbq_<supf><mode>): Likewise.
26724 (mve_vmovntq_<supf><mode>): Likewise.
26725 (mve_vmulq_f<mode>): Likewise.
26726 (mve_vmulq_n_f<mode>): Likewise.
26727 (mve_vornq_f<mode>): Likewise.
26728 (mve_vorrq_f<mode>): Likewise.
26729 (mve_vorrq_n_<supf><mode>): Likewise.
26730 (mve_vqdmullbq_n_s<mode>): Likewise.
26731 (mve_vqdmullbq_s<mode>): Likewise.
26732 (mve_vqdmulltq_n_s<mode>): Likewise.
26733 (mve_vqdmulltq_s<mode>): Likewise.
26734 (mve_vqmovnbq_<supf><mode>): Likewise.
26735 (mve_vqmovntq_<supf><mode>): Likewise.
26736 (mve_vqmovunbq_s<mode>): Likewise.
26737 (mve_vqmovuntq_s<mode>): Likewise.
26738 (mve_vrmlaldavhxq_sv4si): Likewise.
26739 (mve_vrmlsldavhq_sv4si): Likewise.
26740 (mve_vrmlsldavhxq_sv4si): Likewise.
26741 (mve_vshllbq_n_<supf><mode>): Likewise.
26742 (mve_vshlltq_n_<supf><mode>): Likewise.
26743 (mve_vsubq_f<mode>): Likewise.
26744 (mve_vmulltq_poly_p<mode>): Likewise.
26745 (mve_vmullbq_poly_p<mode>): Likewise.
26746 (mve_vrmlaldavhq_<supf>v4si): Likewise.
26747
26748 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
26749 Mihail Ionescu <mihail.ionescu@arm.com>
26750 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
26751
26752 * config/arm/arm_mve.h (vsubq_u8): Define macro.
26753 (vsubq_n_u8): Likewise.
26754 (vrmulhq_u8): Likewise.
26755 (vrhaddq_u8): Likewise.
26756 (vqsubq_u8): Likewise.
26757 (vqsubq_n_u8): Likewise.
26758 (vqaddq_u8): Likewise.
26759 (vqaddq_n_u8): Likewise.
26760 (vorrq_u8): Likewise.
26761 (vornq_u8): Likewise.
26762 (vmulq_u8): Likewise.
26763 (vmulq_n_u8): Likewise.
26764 (vmulltq_int_u8): Likewise.
26765 (vmullbq_int_u8): Likewise.
26766 (vmulhq_u8): Likewise.
26767 (vmladavq_u8): Likewise.
26768 (vminvq_u8): Likewise.
26769 (vminq_u8): Likewise.
26770 (vmaxvq_u8): Likewise.
26771 (vmaxq_u8): Likewise.
26772 (vhsubq_u8): Likewise.
26773 (vhsubq_n_u8): Likewise.
26774 (vhaddq_u8): Likewise.
26775 (vhaddq_n_u8): Likewise.
26776 (veorq_u8): Likewise.
26777 (vcmpneq_n_u8): Likewise.
26778 (vcmphiq_u8): Likewise.
26779 (vcmphiq_n_u8): Likewise.
26780 (vcmpeqq_u8): Likewise.
26781 (vcmpeqq_n_u8): Likewise.
26782 (vcmpcsq_u8): Likewise.
26783 (vcmpcsq_n_u8): Likewise.
26784 (vcaddq_rot90_u8): Likewise.
26785 (vcaddq_rot270_u8): Likewise.
26786 (vbicq_u8): Likewise.
26787 (vandq_u8): Likewise.
26788 (vaddvq_p_u8): Likewise.
26789 (vaddvaq_u8): Likewise.
26790 (vaddq_n_u8): Likewise.
26791 (vabdq_u8): Likewise.
26792 (vshlq_r_u8): Likewise.
26793 (vrshlq_u8): Likewise.
26794 (vrshlq_n_u8): Likewise.
26795 (vqshlq_u8): Likewise.
26796 (vqshlq_r_u8): Likewise.
26797 (vqrshlq_u8): Likewise.
26798 (vqrshlq_n_u8): Likewise.
26799 (vminavq_s8): Likewise.
26800 (vminaq_s8): Likewise.
26801 (vmaxavq_s8): Likewise.
26802 (vmaxaq_s8): Likewise.
26803 (vbrsrq_n_u8): Likewise.
26804 (vshlq_n_u8): Likewise.
26805 (vrshrq_n_u8): Likewise.
26806 (vqshlq_n_u8): Likewise.
26807 (vcmpneq_n_s8): Likewise.
26808 (vcmpltq_s8): Likewise.
26809 (vcmpltq_n_s8): Likewise.
26810 (vcmpleq_s8): Likewise.
26811 (vcmpleq_n_s8): Likewise.
26812 (vcmpgtq_s8): Likewise.
26813 (vcmpgtq_n_s8): Likewise.
26814 (vcmpgeq_s8): Likewise.
26815 (vcmpgeq_n_s8): Likewise.
26816 (vcmpeqq_s8): Likewise.
26817 (vcmpeqq_n_s8): Likewise.
26818 (vqshluq_n_s8): Likewise.
26819 (vaddvq_p_s8): Likewise.
26820 (vsubq_s8): Likewise.
26821 (vsubq_n_s8): Likewise.
26822 (vshlq_r_s8): Likewise.
26823 (vrshlq_s8): Likewise.
26824 (vrshlq_n_s8): Likewise.
26825 (vrmulhq_s8): Likewise.
26826 (vrhaddq_s8): Likewise.
26827 (vqsubq_s8): Likewise.
26828 (vqsubq_n_s8): Likewise.
26829 (vqshlq_s8): Likewise.
26830 (vqshlq_r_s8): Likewise.
26831 (vqrshlq_s8): Likewise.
26832 (vqrshlq_n_s8): Likewise.
26833 (vqrdmulhq_s8): Likewise.
26834 (vqrdmulhq_n_s8): Likewise.
26835 (vqdmulhq_s8): Likewise.
26836 (vqdmulhq_n_s8): Likewise.
26837 (vqaddq_s8): Likewise.
26838 (vqaddq_n_s8): Likewise.
26839 (vorrq_s8): Likewise.
26840 (vornq_s8): Likewise.
26841 (vmulq_s8): Likewise.
26842 (vmulq_n_s8): Likewise.
26843 (vmulltq_int_s8): Likewise.
26844 (vmullbq_int_s8): Likewise.
26845 (vmulhq_s8): Likewise.
26846 (vmlsdavxq_s8): Likewise.
26847 (vmlsdavq_s8): Likewise.
26848 (vmladavxq_s8): Likewise.
26849 (vmladavq_s8): Likewise.
26850 (vminvq_s8): Likewise.
26851 (vminq_s8): Likewise.
26852 (vmaxvq_s8): Likewise.
26853 (vmaxq_s8): Likewise.
26854 (vhsubq_s8): Likewise.
26855 (vhsubq_n_s8): Likewise.
26856 (vhcaddq_rot90_s8): Likewise.
26857 (vhcaddq_rot270_s8): Likewise.
26858 (vhaddq_s8): Likewise.
26859 (vhaddq_n_s8): Likewise.
26860 (veorq_s8): Likewise.
26861 (vcaddq_rot90_s8): Likewise.
26862 (vcaddq_rot270_s8): Likewise.
26863 (vbrsrq_n_s8): Likewise.
26864 (vbicq_s8): Likewise.
26865 (vandq_s8): Likewise.
26866 (vaddvaq_s8): Likewise.
26867 (vaddq_n_s8): Likewise.
26868 (vabdq_s8): Likewise.
26869 (vshlq_n_s8): Likewise.
26870 (vrshrq_n_s8): Likewise.
26871 (vqshlq_n_s8): Likewise.
26872 (vsubq_u16): Likewise.
26873 (vsubq_n_u16): Likewise.
26874 (vrmulhq_u16): Likewise.
26875 (vrhaddq_u16): Likewise.
26876 (vqsubq_u16): Likewise.
26877 (vqsubq_n_u16): Likewise.
26878 (vqaddq_u16): Likewise.
26879 (vqaddq_n_u16): Likewise.
26880 (vorrq_u16): Likewise.
26881 (vornq_u16): Likewise.
26882 (vmulq_u16): Likewise.
26883 (vmulq_n_u16): Likewise.
26884 (vmulltq_int_u16): Likewise.
26885 (vmullbq_int_u16): Likewise.
26886 (vmulhq_u16): Likewise.
26887 (vmladavq_u16): Likewise.
26888 (vminvq_u16): Likewise.
26889 (vminq_u16): Likewise.
26890 (vmaxvq_u16): Likewise.
26891 (vmaxq_u16): Likewise.
26892 (vhsubq_u16): Likewise.
26893 (vhsubq_n_u16): Likewise.
26894 (vhaddq_u16): Likewise.
26895 (vhaddq_n_u16): Likewise.
26896 (veorq_u16): Likewise.
26897 (vcmpneq_n_u16): Likewise.
26898 (vcmphiq_u16): Likewise.
26899 (vcmphiq_n_u16): Likewise.
26900 (vcmpeqq_u16): Likewise.
26901 (vcmpeqq_n_u16): Likewise.
26902 (vcmpcsq_u16): Likewise.
26903 (vcmpcsq_n_u16): Likewise.
26904 (vcaddq_rot90_u16): Likewise.
26905 (vcaddq_rot270_u16): Likewise.
26906 (vbicq_u16): Likewise.
26907 (vandq_u16): Likewise.
26908 (vaddvq_p_u16): Likewise.
26909 (vaddvaq_u16): Likewise.
26910 (vaddq_n_u16): Likewise.
26911 (vabdq_u16): Likewise.
26912 (vshlq_r_u16): Likewise.
26913 (vrshlq_u16): Likewise.
26914 (vrshlq_n_u16): Likewise.
26915 (vqshlq_u16): Likewise.
26916 (vqshlq_r_u16): Likewise.
26917 (vqrshlq_u16): Likewise.
26918 (vqrshlq_n_u16): Likewise.
26919 (vminavq_s16): Likewise.
26920 (vminaq_s16): Likewise.
26921 (vmaxavq_s16): Likewise.
26922 (vmaxaq_s16): Likewise.
26923 (vbrsrq_n_u16): Likewise.
26924 (vshlq_n_u16): Likewise.
26925 (vrshrq_n_u16): Likewise.
26926 (vqshlq_n_u16): Likewise.
26927 (vcmpneq_n_s16): Likewise.
26928 (vcmpltq_s16): Likewise.
26929 (vcmpltq_n_s16): Likewise.
26930 (vcmpleq_s16): Likewise.
26931 (vcmpleq_n_s16): Likewise.
26932 (vcmpgtq_s16): Likewise.
26933 (vcmpgtq_n_s16): Likewise.
26934 (vcmpgeq_s16): Likewise.
26935 (vcmpgeq_n_s16): Likewise.
26936 (vcmpeqq_s16): Likewise.
26937 (vcmpeqq_n_s16): Likewise.
26938 (vqshluq_n_s16): Likewise.
26939 (vaddvq_p_s16): Likewise.
26940 (vsubq_s16): Likewise.
26941 (vsubq_n_s16): Likewise.
26942 (vshlq_r_s16): Likewise.
26943 (vrshlq_s16): Likewise.
26944 (vrshlq_n_s16): Likewise.
26945 (vrmulhq_s16): Likewise.
26946 (vrhaddq_s16): Likewise.
26947 (vqsubq_s16): Likewise.
26948 (vqsubq_n_s16): Likewise.
26949 (vqshlq_s16): Likewise.
26950 (vqshlq_r_s16): Likewise.
26951 (vqrshlq_s16): Likewise.
26952 (vqrshlq_n_s16): Likewise.
26953 (vqrdmulhq_s16): Likewise.
26954 (vqrdmulhq_n_s16): Likewise.
26955 (vqdmulhq_s16): Likewise.
26956 (vqdmulhq_n_s16): Likewise.
26957 (vqaddq_s16): Likewise.
26958 (vqaddq_n_s16): Likewise.
26959 (vorrq_s16): Likewise.
26960 (vornq_s16): Likewise.
26961 (vmulq_s16): Likewise.
26962 (vmulq_n_s16): Likewise.
26963 (vmulltq_int_s16): Likewise.
26964 (vmullbq_int_s16): Likewise.
26965 (vmulhq_s16): Likewise.
26966 (vmlsdavxq_s16): Likewise.
26967 (vmlsdavq_s16): Likewise.
26968 (vmladavxq_s16): Likewise.
26969 (vmladavq_s16): Likewise.
26970 (vminvq_s16): Likewise.
26971 (vminq_s16): Likewise.
26972 (vmaxvq_s16): Likewise.
26973 (vmaxq_s16): Likewise.
26974 (vhsubq_s16): Likewise.
26975 (vhsubq_n_s16): Likewise.
26976 (vhcaddq_rot90_s16): Likewise.
26977 (vhcaddq_rot270_s16): Likewise.
26978 (vhaddq_s16): Likewise.
26979 (vhaddq_n_s16): Likewise.
26980 (veorq_s16): Likewise.
26981 (vcaddq_rot90_s16): Likewise.
26982 (vcaddq_rot270_s16): Likewise.
26983 (vbrsrq_n_s16): Likewise.
26984 (vbicq_s16): Likewise.
26985 (vandq_s16): Likewise.
26986 (vaddvaq_s16): Likewise.
26987 (vaddq_n_s16): Likewise.
26988 (vabdq_s16): Likewise.
26989 (vshlq_n_s16): Likewise.
26990 (vrshrq_n_s16): Likewise.
26991 (vqshlq_n_s16): Likewise.
26992 (vsubq_u32): Likewise.
26993 (vsubq_n_u32): Likewise.
26994 (vrmulhq_u32): Likewise.
26995 (vrhaddq_u32): Likewise.
26996 (vqsubq_u32): Likewise.
26997 (vqsubq_n_u32): Likewise.
26998 (vqaddq_u32): Likewise.
26999 (vqaddq_n_u32): Likewise.
27000 (vorrq_u32): Likewise.
27001 (vornq_u32): Likewise.
27002 (vmulq_u32): Likewise.
27003 (vmulq_n_u32): Likewise.
27004 (vmulltq_int_u32): Likewise.
27005 (vmullbq_int_u32): Likewise.
27006 (vmulhq_u32): Likewise.
27007 (vmladavq_u32): Likewise.
27008 (vminvq_u32): Likewise.
27009 (vminq_u32): Likewise.
27010 (vmaxvq_u32): Likewise.
27011 (vmaxq_u32): Likewise.
27012 (vhsubq_u32): Likewise.
27013 (vhsubq_n_u32): Likewise.
27014 (vhaddq_u32): Likewise.
27015 (vhaddq_n_u32): Likewise.
27016 (veorq_u32): Likewise.
27017 (vcmpneq_n_u32): Likewise.
27018 (vcmphiq_u32): Likewise.
27019 (vcmphiq_n_u32): Likewise.
27020 (vcmpeqq_u32): Likewise.
27021 (vcmpeqq_n_u32): Likewise.
27022 (vcmpcsq_u32): Likewise.
27023 (vcmpcsq_n_u32): Likewise.
27024 (vcaddq_rot90_u32): Likewise.
27025 (vcaddq_rot270_u32): Likewise.
27026 (vbicq_u32): Likewise.
27027 (vandq_u32): Likewise.
27028 (vaddvq_p_u32): Likewise.
27029 (vaddvaq_u32): Likewise.
27030 (vaddq_n_u32): Likewise.
27031 (vabdq_u32): Likewise.
27032 (vshlq_r_u32): Likewise.
27033 (vrshlq_u32): Likewise.
27034 (vrshlq_n_u32): Likewise.
27035 (vqshlq_u32): Likewise.
27036 (vqshlq_r_u32): Likewise.
27037 (vqrshlq_u32): Likewise.
27038 (vqrshlq_n_u32): Likewise.
27039 (vminavq_s32): Likewise.
27040 (vminaq_s32): Likewise.
27041 (vmaxavq_s32): Likewise.
27042 (vmaxaq_s32): Likewise.
27043 (vbrsrq_n_u32): Likewise.
27044 (vshlq_n_u32): Likewise.
27045 (vrshrq_n_u32): Likewise.
27046 (vqshlq_n_u32): Likewise.
27047 (vcmpneq_n_s32): Likewise.
27048 (vcmpltq_s32): Likewise.
27049 (vcmpltq_n_s32): Likewise.
27050 (vcmpleq_s32): Likewise.
27051 (vcmpleq_n_s32): Likewise.
27052 (vcmpgtq_s32): Likewise.
27053 (vcmpgtq_n_s32): Likewise.
27054 (vcmpgeq_s32): Likewise.
27055 (vcmpgeq_n_s32): Likewise.
27056 (vcmpeqq_s32): Likewise.
27057 (vcmpeqq_n_s32): Likewise.
27058 (vqshluq_n_s32): Likewise.
27059 (vaddvq_p_s32): Likewise.
27060 (vsubq_s32): Likewise.
27061 (vsubq_n_s32): Likewise.
27062 (vshlq_r_s32): Likewise.
27063 (vrshlq_s32): Likewise.
27064 (vrshlq_n_s32): Likewise.
27065 (vrmulhq_s32): Likewise.
27066 (vrhaddq_s32): Likewise.
27067 (vqsubq_s32): Likewise.
27068 (vqsubq_n_s32): Likewise.
27069 (vqshlq_s32): Likewise.
27070 (vqshlq_r_s32): Likewise.
27071 (vqrshlq_s32): Likewise.
27072 (vqrshlq_n_s32): Likewise.
27073 (vqrdmulhq_s32): Likewise.
27074 (vqrdmulhq_n_s32): Likewise.
27075 (vqdmulhq_s32): Likewise.
27076 (vqdmulhq_n_s32): Likewise.
27077 (vqaddq_s32): Likewise.
27078 (vqaddq_n_s32): Likewise.
27079 (vorrq_s32): Likewise.
27080 (vornq_s32): Likewise.
27081 (vmulq_s32): Likewise.
27082 (vmulq_n_s32): Likewise.
27083 (vmulltq_int_s32): Likewise.
27084 (vmullbq_int_s32): Likewise.
27085 (vmulhq_s32): Likewise.
27086 (vmlsdavxq_s32): Likewise.
27087 (vmlsdavq_s32): Likewise.
27088 (vmladavxq_s32): Likewise.
27089 (vmladavq_s32): Likewise.
27090 (vminvq_s32): Likewise.
27091 (vminq_s32): Likewise.
27092 (vmaxvq_s32): Likewise.
27093 (vmaxq_s32): Likewise.
27094 (vhsubq_s32): Likewise.
27095 (vhsubq_n_s32): Likewise.
27096 (vhcaddq_rot90_s32): Likewise.
27097 (vhcaddq_rot270_s32): Likewise.
27098 (vhaddq_s32): Likewise.
27099 (vhaddq_n_s32): Likewise.
27100 (veorq_s32): Likewise.
27101 (vcaddq_rot90_s32): Likewise.
27102 (vcaddq_rot270_s32): Likewise.
27103 (vbrsrq_n_s32): Likewise.
27104 (vbicq_s32): Likewise.
27105 (vandq_s32): Likewise.
27106 (vaddvaq_s32): Likewise.
27107 (vaddq_n_s32): Likewise.
27108 (vabdq_s32): Likewise.
27109 (vshlq_n_s32): Likewise.
27110 (vrshrq_n_s32): Likewise.
27111 (vqshlq_n_s32): Likewise.
27112 (__arm_vsubq_u8): Define intrinsic.
27113 (__arm_vsubq_n_u8): Likewise.
27114 (__arm_vrmulhq_u8): Likewise.
27115 (__arm_vrhaddq_u8): Likewise.
27116 (__arm_vqsubq_u8): Likewise.
27117 (__arm_vqsubq_n_u8): Likewise.
27118 (__arm_vqaddq_u8): Likewise.
27119 (__arm_vqaddq_n_u8): Likewise.
27120 (__arm_vorrq_u8): Likewise.
27121 (__arm_vornq_u8): Likewise.
27122 (__arm_vmulq_u8): Likewise.
27123 (__arm_vmulq_n_u8): Likewise.
27124 (__arm_vmulltq_int_u8): Likewise.
27125 (__arm_vmullbq_int_u8): Likewise.
27126 (__arm_vmulhq_u8): Likewise.
27127 (__arm_vmladavq_u8): Likewise.
27128 (__arm_vminvq_u8): Likewise.
27129 (__arm_vminq_u8): Likewise.
27130 (__arm_vmaxvq_u8): Likewise.
27131 (__arm_vmaxq_u8): Likewise.
27132 (__arm_vhsubq_u8): Likewise.
27133 (__arm_vhsubq_n_u8): Likewise.
27134 (__arm_vhaddq_u8): Likewise.
27135 (__arm_vhaddq_n_u8): Likewise.
27136 (__arm_veorq_u8): Likewise.
27137 (__arm_vcmpneq_n_u8): Likewise.
27138 (__arm_vcmphiq_u8): Likewise.
27139 (__arm_vcmphiq_n_u8): Likewise.
27140 (__arm_vcmpeqq_u8): Likewise.
27141 (__arm_vcmpeqq_n_u8): Likewise.
27142 (__arm_vcmpcsq_u8): Likewise.
27143 (__arm_vcmpcsq_n_u8): Likewise.
27144 (__arm_vcaddq_rot90_u8): Likewise.
27145 (__arm_vcaddq_rot270_u8): Likewise.
27146 (__arm_vbicq_u8): Likewise.
27147 (__arm_vandq_u8): Likewise.
27148 (__arm_vaddvq_p_u8): Likewise.
27149 (__arm_vaddvaq_u8): Likewise.
27150 (__arm_vaddq_n_u8): Likewise.
27151 (__arm_vabdq_u8): Likewise.
27152 (__arm_vshlq_r_u8): Likewise.
27153 (__arm_vrshlq_u8): Likewise.
27154 (__arm_vrshlq_n_u8): Likewise.
27155 (__arm_vqshlq_u8): Likewise.
27156 (__arm_vqshlq_r_u8): Likewise.
27157 (__arm_vqrshlq_u8): Likewise.
27158 (__arm_vqrshlq_n_u8): Likewise.
27159 (__arm_vminavq_s8): Likewise.
27160 (__arm_vminaq_s8): Likewise.
27161 (__arm_vmaxavq_s8): Likewise.
27162 (__arm_vmaxaq_s8): Likewise.
27163 (__arm_vbrsrq_n_u8): Likewise.
27164 (__arm_vshlq_n_u8): Likewise.
27165 (__arm_vrshrq_n_u8): Likewise.
27166 (__arm_vqshlq_n_u8): Likewise.
27167 (__arm_vcmpneq_n_s8): Likewise.
27168 (__arm_vcmpltq_s8): Likewise.
27169 (__arm_vcmpltq_n_s8): Likewise.
27170 (__arm_vcmpleq_s8): Likewise.
27171 (__arm_vcmpleq_n_s8): Likewise.
27172 (__arm_vcmpgtq_s8): Likewise.
27173 (__arm_vcmpgtq_n_s8): Likewise.
27174 (__arm_vcmpgeq_s8): Likewise.
27175 (__arm_vcmpgeq_n_s8): Likewise.
27176 (__arm_vcmpeqq_s8): Likewise.
27177 (__arm_vcmpeqq_n_s8): Likewise.
27178 (__arm_vqshluq_n_s8): Likewise.
27179 (__arm_vaddvq_p_s8): Likewise.
27180 (__arm_vsubq_s8): Likewise.
27181 (__arm_vsubq_n_s8): Likewise.
27182 (__arm_vshlq_r_s8): Likewise.
27183 (__arm_vrshlq_s8): Likewise.
27184 (__arm_vrshlq_n_s8): Likewise.
27185 (__arm_vrmulhq_s8): Likewise.
27186 (__arm_vrhaddq_s8): Likewise.
27187 (__arm_vqsubq_s8): Likewise.
27188 (__arm_vqsubq_n_s8): Likewise.
27189 (__arm_vqshlq_s8): Likewise.
27190 (__arm_vqshlq_r_s8): Likewise.
27191 (__arm_vqrshlq_s8): Likewise.
27192 (__arm_vqrshlq_n_s8): Likewise.
27193 (__arm_vqrdmulhq_s8): Likewise.
27194 (__arm_vqrdmulhq_n_s8): Likewise.
27195 (__arm_vqdmulhq_s8): Likewise.
27196 (__arm_vqdmulhq_n_s8): Likewise.
27197 (__arm_vqaddq_s8): Likewise.
27198 (__arm_vqaddq_n_s8): Likewise.
27199 (__arm_vorrq_s8): Likewise.
27200 (__arm_vornq_s8): Likewise.
27201 (__arm_vmulq_s8): Likewise.
27202 (__arm_vmulq_n_s8): Likewise.
27203 (__arm_vmulltq_int_s8): Likewise.
27204 (__arm_vmullbq_int_s8): Likewise.
27205 (__arm_vmulhq_s8): Likewise.
27206 (__arm_vmlsdavxq_s8): Likewise.
27207 (__arm_vmlsdavq_s8): Likewise.
27208 (__arm_vmladavxq_s8): Likewise.
27209 (__arm_vmladavq_s8): Likewise.
27210 (__arm_vminvq_s8): Likewise.
27211 (__arm_vminq_s8): Likewise.
27212 (__arm_vmaxvq_s8): Likewise.
27213 (__arm_vmaxq_s8): Likewise.
27214 (__arm_vhsubq_s8): Likewise.
27215 (__arm_vhsubq_n_s8): Likewise.
27216 (__arm_vhcaddq_rot90_s8): Likewise.
27217 (__arm_vhcaddq_rot270_s8): Likewise.
27218 (__arm_vhaddq_s8): Likewise.
27219 (__arm_vhaddq_n_s8): Likewise.
27220 (__arm_veorq_s8): Likewise.
27221 (__arm_vcaddq_rot90_s8): Likewise.
27222 (__arm_vcaddq_rot270_s8): Likewise.
27223 (__arm_vbrsrq_n_s8): Likewise.
27224 (__arm_vbicq_s8): Likewise.
27225 (__arm_vandq_s8): Likewise.
27226 (__arm_vaddvaq_s8): Likewise.
27227 (__arm_vaddq_n_s8): Likewise.
27228 (__arm_vabdq_s8): Likewise.
27229 (__arm_vshlq_n_s8): Likewise.
27230 (__arm_vrshrq_n_s8): Likewise.
27231 (__arm_vqshlq_n_s8): Likewise.
27232 (__arm_vsubq_u16): Likewise.
27233 (__arm_vsubq_n_u16): Likewise.
27234 (__arm_vrmulhq_u16): Likewise.
27235 (__arm_vrhaddq_u16): Likewise.
27236 (__arm_vqsubq_u16): Likewise.
27237 (__arm_vqsubq_n_u16): Likewise.
27238 (__arm_vqaddq_u16): Likewise.
27239 (__arm_vqaddq_n_u16): Likewise.
27240 (__arm_vorrq_u16): Likewise.
27241 (__arm_vornq_u16): Likewise.
27242 (__arm_vmulq_u16): Likewise.
27243 (__arm_vmulq_n_u16): Likewise.
27244 (__arm_vmulltq_int_u16): Likewise.
27245 (__arm_vmullbq_int_u16): Likewise.
27246 (__arm_vmulhq_u16): Likewise.
27247 (__arm_vmladavq_u16): Likewise.
27248 (__arm_vminvq_u16): Likewise.
27249 (__arm_vminq_u16): Likewise.
27250 (__arm_vmaxvq_u16): Likewise.
27251 (__arm_vmaxq_u16): Likewise.
27252 (__arm_vhsubq_u16): Likewise.
27253 (__arm_vhsubq_n_u16): Likewise.
27254 (__arm_vhaddq_u16): Likewise.
27255 (__arm_vhaddq_n_u16): Likewise.
27256 (__arm_veorq_u16): Likewise.
27257 (__arm_vcmpneq_n_u16): Likewise.
27258 (__arm_vcmphiq_u16): Likewise.
27259 (__arm_vcmphiq_n_u16): Likewise.
27260 (__arm_vcmpeqq_u16): Likewise.
27261 (__arm_vcmpeqq_n_u16): Likewise.
27262 (__arm_vcmpcsq_u16): Likewise.
27263 (__arm_vcmpcsq_n_u16): Likewise.
27264 (__arm_vcaddq_rot90_u16): Likewise.
27265 (__arm_vcaddq_rot270_u16): Likewise.
27266 (__arm_vbicq_u16): Likewise.
27267 (__arm_vandq_u16): Likewise.
27268 (__arm_vaddvq_p_u16): Likewise.
27269 (__arm_vaddvaq_u16): Likewise.
27270 (__arm_vaddq_n_u16): Likewise.
27271 (__arm_vabdq_u16): Likewise.
27272 (__arm_vshlq_r_u16): Likewise.
27273 (__arm_vrshlq_u16): Likewise.
27274 (__arm_vrshlq_n_u16): Likewise.
27275 (__arm_vqshlq_u16): Likewise.
27276 (__arm_vqshlq_r_u16): Likewise.
27277 (__arm_vqrshlq_u16): Likewise.
27278 (__arm_vqrshlq_n_u16): Likewise.
27279 (__arm_vminavq_s16): Likewise.
27280 (__arm_vminaq_s16): Likewise.
27281 (__arm_vmaxavq_s16): Likewise.
27282 (__arm_vmaxaq_s16): Likewise.
27283 (__arm_vbrsrq_n_u16): Likewise.
27284 (__arm_vshlq_n_u16): Likewise.
27285 (__arm_vrshrq_n_u16): Likewise.
27286 (__arm_vqshlq_n_u16): Likewise.
27287 (__arm_vcmpneq_n_s16): Likewise.
27288 (__arm_vcmpltq_s16): Likewise.
27289 (__arm_vcmpltq_n_s16): Likewise.
27290 (__arm_vcmpleq_s16): Likewise.
27291 (__arm_vcmpleq_n_s16): Likewise.
27292 (__arm_vcmpgtq_s16): Likewise.
27293 (__arm_vcmpgtq_n_s16): Likewise.
27294 (__arm_vcmpgeq_s16): Likewise.
27295 (__arm_vcmpgeq_n_s16): Likewise.
27296 (__arm_vcmpeqq_s16): Likewise.
27297 (__arm_vcmpeqq_n_s16): Likewise.
27298 (__arm_vqshluq_n_s16): Likewise.
27299 (__arm_vaddvq_p_s16): Likewise.
27300 (__arm_vsubq_s16): Likewise.
27301 (__arm_vsubq_n_s16): Likewise.
27302 (__arm_vshlq_r_s16): Likewise.
27303 (__arm_vrshlq_s16): Likewise.
27304 (__arm_vrshlq_n_s16): Likewise.
27305 (__arm_vrmulhq_s16): Likewise.
27306 (__arm_vrhaddq_s16): Likewise.
27307 (__arm_vqsubq_s16): Likewise.
27308 (__arm_vqsubq_n_s16): Likewise.
27309 (__arm_vqshlq_s16): Likewise.
27310 (__arm_vqshlq_r_s16): Likewise.
27311 (__arm_vqrshlq_s16): Likewise.
27312 (__arm_vqrshlq_n_s16): Likewise.
27313 (__arm_vqrdmulhq_s16): Likewise.
27314 (__arm_vqrdmulhq_n_s16): Likewise.
27315 (__arm_vqdmulhq_s16): Likewise.
27316 (__arm_vqdmulhq_n_s16): Likewise.
27317 (__arm_vqaddq_s16): Likewise.
27318 (__arm_vqaddq_n_s16): Likewise.
27319 (__arm_vorrq_s16): Likewise.
27320 (__arm_vornq_s16): Likewise.
27321 (__arm_vmulq_s16): Likewise.
27322 (__arm_vmulq_n_s16): Likewise.
27323 (__arm_vmulltq_int_s16): Likewise.
27324 (__arm_vmullbq_int_s16): Likewise.
27325 (__arm_vmulhq_s16): Likewise.
27326 (__arm_vmlsdavxq_s16): Likewise.
27327 (__arm_vmlsdavq_s16): Likewise.
27328 (__arm_vmladavxq_s16): Likewise.
27329 (__arm_vmladavq_s16): Likewise.
27330 (__arm_vminvq_s16): Likewise.
27331 (__arm_vminq_s16): Likewise.
27332 (__arm_vmaxvq_s16): Likewise.
27333 (__arm_vmaxq_s16): Likewise.
27334 (__arm_vhsubq_s16): Likewise.
27335 (__arm_vhsubq_n_s16): Likewise.
27336 (__arm_vhcaddq_rot90_s16): Likewise.
27337 (__arm_vhcaddq_rot270_s16): Likewise.
27338 (__arm_vhaddq_s16): Likewise.
27339 (__arm_vhaddq_n_s16): Likewise.
27340 (__arm_veorq_s16): Likewise.
27341 (__arm_vcaddq_rot90_s16): Likewise.
27342 (__arm_vcaddq_rot270_s16): Likewise.
27343 (__arm_vbrsrq_n_s16): Likewise.
27344 (__arm_vbicq_s16): Likewise.
27345 (__arm_vandq_s16): Likewise.
27346 (__arm_vaddvaq_s16): Likewise.
27347 (__arm_vaddq_n_s16): Likewise.
27348 (__arm_vabdq_s16): Likewise.
27349 (__arm_vshlq_n_s16): Likewise.
27350 (__arm_vrshrq_n_s16): Likewise.
27351 (__arm_vqshlq_n_s16): Likewise.
27352 (__arm_vsubq_u32): Likewise.
27353 (__arm_vsubq_n_u32): Likewise.
27354 (__arm_vrmulhq_u32): Likewise.
27355 (__arm_vrhaddq_u32): Likewise.
27356 (__arm_vqsubq_u32): Likewise.
27357 (__arm_vqsubq_n_u32): Likewise.
27358 (__arm_vqaddq_u32): Likewise.
27359 (__arm_vqaddq_n_u32): Likewise.
27360 (__arm_vorrq_u32): Likewise.
27361 (__arm_vornq_u32): Likewise.
27362 (__arm_vmulq_u32): Likewise.
27363 (__arm_vmulq_n_u32): Likewise.
27364 (__arm_vmulltq_int_u32): Likewise.
27365 (__arm_vmullbq_int_u32): Likewise.
27366 (__arm_vmulhq_u32): Likewise.
27367 (__arm_vmladavq_u32): Likewise.
27368 (__arm_vminvq_u32): Likewise.
27369 (__arm_vminq_u32): Likewise.
27370 (__arm_vmaxvq_u32): Likewise.
27371 (__arm_vmaxq_u32): Likewise.
27372 (__arm_vhsubq_u32): Likewise.
27373 (__arm_vhsubq_n_u32): Likewise.
27374 (__arm_vhaddq_u32): Likewise.
27375 (__arm_vhaddq_n_u32): Likewise.
27376 (__arm_veorq_u32): Likewise.
27377 (__arm_vcmpneq_n_u32): Likewise.
27378 (__arm_vcmphiq_u32): Likewise.
27379 (__arm_vcmphiq_n_u32): Likewise.
27380 (__arm_vcmpeqq_u32): Likewise.
27381 (__arm_vcmpeqq_n_u32): Likewise.
27382 (__arm_vcmpcsq_u32): Likewise.
27383 (__arm_vcmpcsq_n_u32): Likewise.
27384 (__arm_vcaddq_rot90_u32): Likewise.
27385 (__arm_vcaddq_rot270_u32): Likewise.
27386 (__arm_vbicq_u32): Likewise.
27387 (__arm_vandq_u32): Likewise.
27388 (__arm_vaddvq_p_u32): Likewise.
27389 (__arm_vaddvaq_u32): Likewise.
27390 (__arm_vaddq_n_u32): Likewise.
27391 (__arm_vabdq_u32): Likewise.
27392 (__arm_vshlq_r_u32): Likewise.
27393 (__arm_vrshlq_u32): Likewise.
27394 (__arm_vrshlq_n_u32): Likewise.
27395 (__arm_vqshlq_u32): Likewise.
27396 (__arm_vqshlq_r_u32): Likewise.
27397 (__arm_vqrshlq_u32): Likewise.
27398 (__arm_vqrshlq_n_u32): Likewise.
27399 (__arm_vminavq_s32): Likewise.
27400 (__arm_vminaq_s32): Likewise.
27401 (__arm_vmaxavq_s32): Likewise.
27402 (__arm_vmaxaq_s32): Likewise.
27403 (__arm_vbrsrq_n_u32): Likewise.
27404 (__arm_vshlq_n_u32): Likewise.
27405 (__arm_vrshrq_n_u32): Likewise.
27406 (__arm_vqshlq_n_u32): Likewise.
27407 (__arm_vcmpneq_n_s32): Likewise.
27408 (__arm_vcmpltq_s32): Likewise.
27409 (__arm_vcmpltq_n_s32): Likewise.
27410 (__arm_vcmpleq_s32): Likewise.
27411 (__arm_vcmpleq_n_s32): Likewise.
27412 (__arm_vcmpgtq_s32): Likewise.
27413 (__arm_vcmpgtq_n_s32): Likewise.
27414 (__arm_vcmpgeq_s32): Likewise.
27415 (__arm_vcmpgeq_n_s32): Likewise.
27416 (__arm_vcmpeqq_s32): Likewise.
27417 (__arm_vcmpeqq_n_s32): Likewise.
27418 (__arm_vqshluq_n_s32): Likewise.
27419 (__arm_vaddvq_p_s32): Likewise.
27420 (__arm_vsubq_s32): Likewise.
27421 (__arm_vsubq_n_s32): Likewise.
27422 (__arm_vshlq_r_s32): Likewise.
27423 (__arm_vrshlq_s32): Likewise.
27424 (__arm_vrshlq_n_s32): Likewise.
27425 (__arm_vrmulhq_s32): Likewise.
27426 (__arm_vrhaddq_s32): Likewise.
27427 (__arm_vqsubq_s32): Likewise.
27428 (__arm_vqsubq_n_s32): Likewise.
27429 (__arm_vqshlq_s32): Likewise.
27430 (__arm_vqshlq_r_s32): Likewise.
27431 (__arm_vqrshlq_s32): Likewise.
27432 (__arm_vqrshlq_n_s32): Likewise.
27433 (__arm_vqrdmulhq_s32): Likewise.
27434 (__arm_vqrdmulhq_n_s32): Likewise.
27435 (__arm_vqdmulhq_s32): Likewise.
27436 (__arm_vqdmulhq_n_s32): Likewise.
27437 (__arm_vqaddq_s32): Likewise.
27438 (__arm_vqaddq_n_s32): Likewise.
27439 (__arm_vorrq_s32): Likewise.
27440 (__arm_vornq_s32): Likewise.
27441 (__arm_vmulq_s32): Likewise.
27442 (__arm_vmulq_n_s32): Likewise.
27443 (__arm_vmulltq_int_s32): Likewise.
27444 (__arm_vmullbq_int_s32): Likewise.
27445 (__arm_vmulhq_s32): Likewise.
27446 (__arm_vmlsdavxq_s32): Likewise.
27447 (__arm_vmlsdavq_s32): Likewise.
27448 (__arm_vmladavxq_s32): Likewise.
27449 (__arm_vmladavq_s32): Likewise.
27450 (__arm_vminvq_s32): Likewise.
27451 (__arm_vminq_s32): Likewise.
27452 (__arm_vmaxvq_s32): Likewise.
27453 (__arm_vmaxq_s32): Likewise.
27454 (__arm_vhsubq_s32): Likewise.
27455 (__arm_vhsubq_n_s32): Likewise.
27456 (__arm_vhcaddq_rot90_s32): Likewise.
27457 (__arm_vhcaddq_rot270_s32): Likewise.
27458 (__arm_vhaddq_s32): Likewise.
27459 (__arm_vhaddq_n_s32): Likewise.
27460 (__arm_veorq_s32): Likewise.
27461 (__arm_vcaddq_rot90_s32): Likewise.
27462 (__arm_vcaddq_rot270_s32): Likewise.
27463 (__arm_vbrsrq_n_s32): Likewise.
27464 (__arm_vbicq_s32): Likewise.
27465 (__arm_vandq_s32): Likewise.
27466 (__arm_vaddvaq_s32): Likewise.
27467 (__arm_vaddq_n_s32): Likewise.
27468 (__arm_vabdq_s32): Likewise.
27469 (__arm_vshlq_n_s32): Likewise.
27470 (__arm_vrshrq_n_s32): Likewise.
27471 (__arm_vqshlq_n_s32): Likewise.
27472 (vsubq): Define polymorphic variant.
27473 (vsubq_n): Likewise.
27474 (vshlq_r): Likewise.
27475 (vrshlq_n): Likewise.
27476 (vrshlq): Likewise.
27477 (vrmulhq): Likewise.
27478 (vrhaddq): Likewise.
27479 (vqsubq_n): Likewise.
27480 (vqsubq): Likewise.
27481 (vqshlq): Likewise.
27482 (vqshlq_r): Likewise.
27483 (vqshluq): Likewise.
27484 (vrshrq_n): Likewise.
27485 (vshlq_n): Likewise.
27486 (vqshluq_n): Likewise.
27487 (vqshlq_n): Likewise.
27488 (vqrshlq_n): Likewise.
27489 (vqrshlq): Likewise.
27490 (vqrdmulhq_n): Likewise.
27491 (vqrdmulhq): Likewise.
27492 (vqdmulhq_n): Likewise.
27493 (vqdmulhq): Likewise.
27494 (vqaddq_n): Likewise.
27495 (vqaddq): Likewise.
27496 (vorrq_n): Likewise.
27497 (vorrq): Likewise.
27498 (vornq): Likewise.
27499 (vmulq_n): Likewise.
27500 (vmulq): Likewise.
27501 (vmulltq_int): Likewise.
27502 (vmullbq_int): Likewise.
27503 (vmulhq): Likewise.
27504 (vminq): Likewise.
27505 (vminaq): Likewise.
27506 (vmaxq): Likewise.
27507 (vmaxaq): Likewise.
27508 (vhsubq_n): Likewise.
27509 (vhsubq): Likewise.
27510 (vhcaddq_rot90): Likewise.
27511 (vhcaddq_rot270): Likewise.
27512 (vhaddq_n): Likewise.
27513 (vhaddq): Likewise.
27514 (veorq): Likewise.
27515 (vcaddq_rot90): Likewise.
27516 (vcaddq_rot270): Likewise.
27517 (vbrsrq_n): Likewise.
27518 (vbicq_n): Likewise.
27519 (vbicq): Likewise.
27520 (vaddq): Likewise.
27521 (vaddq_n): Likewise.
27522 (vandq): Likewise.
27523 (vabdq): Likewise.
27524 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
27525 (BINOP_NONE_NONE_NONE): Likewise.
27526 (BINOP_NONE_NONE_UNONE): Likewise.
27527 (BINOP_UNONE_NONE_IMM): Likewise.
27528 (BINOP_UNONE_NONE_NONE): Likewise.
27529 (BINOP_UNONE_UNONE_IMM): Likewise.
27530 (BINOP_UNONE_UNONE_NONE): Likewise.
27531 (BINOP_UNONE_UNONE_UNONE): Likewise.
27532 * config/arm/constraints.md (Ra): Define constraint to check constant is
27533 in the range of 0 to 7.
27534 (Rg): Define constriant to check the constant is one among 1, 2, 4
27535 and 8.
27536 * config/arm/mve.md (mve_vabdq_<supf>): Define RTL pattern.
27537 (mve_vaddq_n_<supf>): Likewise.
27538 (mve_vaddvaq_<supf>): Likewise.
27539 (mve_vaddvq_p_<supf>): Likewise.
27540 (mve_vandq_<supf>): Likewise.
27541 (mve_vbicq_<supf>): Likewise.
27542 (mve_vbrsrq_n_<supf>): Likewise.
27543 (mve_vcaddq_rot270_<supf>): Likewise.
27544 (mve_vcaddq_rot90_<supf>): Likewise.
27545 (mve_vcmpcsq_n_u): Likewise.
27546 (mve_vcmpcsq_u): Likewise.
27547 (mve_vcmpeqq_n_<supf>): Likewise.
27548 (mve_vcmpeqq_<supf>): Likewise.
27549 (mve_vcmpgeq_n_s): Likewise.
27550 (mve_vcmpgeq_s): Likewise.
27551 (mve_vcmpgtq_n_s): Likewise.
27552 (mve_vcmpgtq_s): Likewise.
27553 (mve_vcmphiq_n_u): Likewise.
27554 (mve_vcmphiq_u): Likewise.
27555 (mve_vcmpleq_n_s): Likewise.
27556 (mve_vcmpleq_s): Likewise.
27557 (mve_vcmpltq_n_s): Likewise.
27558 (mve_vcmpltq_s): Likewise.
27559 (mve_vcmpneq_n_<supf>): Likewise.
27560 (mve_vddupq_n_u): Likewise.
27561 (mve_veorq_<supf>): Likewise.
27562 (mve_vhaddq_n_<supf>): Likewise.
27563 (mve_vhaddq_<supf>): Likewise.
27564 (mve_vhcaddq_rot270_s): Likewise.
27565 (mve_vhcaddq_rot90_s): Likewise.
27566 (mve_vhsubq_n_<supf>): Likewise.
27567 (mve_vhsubq_<supf>): Likewise.
27568 (mve_vidupq_n_u): Likewise.
27569 (mve_vmaxaq_s): Likewise.
27570 (mve_vmaxavq_s): Likewise.
27571 (mve_vmaxq_<supf>): Likewise.
27572 (mve_vmaxvq_<supf>): Likewise.
27573 (mve_vminaq_s): Likewise.
27574 (mve_vminavq_s): Likewise.
27575 (mve_vminq_<supf>): Likewise.
27576 (mve_vminvq_<supf>): Likewise.
27577 (mve_vmladavq_<supf>): Likewise.
27578 (mve_vmladavxq_s): Likewise.
27579 (mve_vmlsdavq_s): Likewise.
27580 (mve_vmlsdavxq_s): Likewise.
27581 (mve_vmulhq_<supf>): Likewise.
27582 (mve_vmullbq_int_<supf>): Likewise.
27583 (mve_vmulltq_int_<supf>): Likewise.
27584 (mve_vmulq_n_<supf>): Likewise.
27585 (mve_vmulq_<supf>): Likewise.
27586 (mve_vornq_<supf>): Likewise.
27587 (mve_vorrq_<supf>): Likewise.
27588 (mve_vqaddq_n_<supf>): Likewise.
27589 (mve_vqaddq_<supf>): Likewise.
27590 (mve_vqdmulhq_n_s): Likewise.
27591 (mve_vqdmulhq_s): Likewise.
27592 (mve_vqrdmulhq_n_s): Likewise.
27593 (mve_vqrdmulhq_s): Likewise.
27594 (mve_vqrshlq_n_<supf>): Likewise.
27595 (mve_vqrshlq_<supf>): Likewise.
27596 (mve_vqshlq_n_<supf>): Likewise.
27597 (mve_vqshlq_r_<supf>): Likewise.
27598 (mve_vqshlq_<supf>): Likewise.
27599 (mve_vqshluq_n_s): Likewise.
27600 (mve_vqsubq_n_<supf>): Likewise.
27601 (mve_vqsubq_<supf>): Likewise.
27602 (mve_vrhaddq_<supf>): Likewise.
27603 (mve_vrmulhq_<supf>): Likewise.
27604 (mve_vrshlq_n_<supf>): Likewise.
27605 (mve_vrshlq_<supf>): Likewise.
27606 (mve_vrshrq_n_<supf>): Likewise.
27607 (mve_vshlq_n_<supf>): Likewise.
27608 (mve_vshlq_r_<supf>): Likewise.
27609 (mve_vsubq_n_<supf>): Likewise.
27610 (mve_vsubq_<supf>): Likewise.
27611 * config/arm/predicates.md (mve_imm_7): Define predicate to check
27612 the matching constraint Ra.
27613 (mve_imm_selective_upto_8): Define predicate to check the matching
27614 constraint Rg.
27615
27616 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27617 Mihail Ionescu <mihail.ionescu@arm.com>
27618 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27619
27620 * config/arm/arm-builtins.c (BINOP_NONE_NONE_UNONE_QUALIFIERS): Define
27621 qualifier for binary operands.
27622 (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
27623 (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
27624 * config/arm/arm_mve.h (vaddlvq_p_s32): Define macro.
27625 (vaddlvq_p_u32): Likewise.
27626 (vcmpneq_s8): Likewise.
27627 (vcmpneq_s16): Likewise.
27628 (vcmpneq_s32): Likewise.
27629 (vcmpneq_u8): Likewise.
27630 (vcmpneq_u16): Likewise.
27631 (vcmpneq_u32): Likewise.
27632 (vshlq_s8): Likewise.
27633 (vshlq_s16): Likewise.
27634 (vshlq_s32): Likewise.
27635 (vshlq_u8): Likewise.
27636 (vshlq_u16): Likewise.
27637 (vshlq_u32): Likewise.
27638 (__arm_vaddlvq_p_s32): Define intrinsic.
27639 (__arm_vaddlvq_p_u32): Likewise.
27640 (__arm_vcmpneq_s8): Likewise.
27641 (__arm_vcmpneq_s16): Likewise.
27642 (__arm_vcmpneq_s32): Likewise.
27643 (__arm_vcmpneq_u8): Likewise.
27644 (__arm_vcmpneq_u16): Likewise.
27645 (__arm_vcmpneq_u32): Likewise.
27646 (__arm_vshlq_s8): Likewise.
27647 (__arm_vshlq_s16): Likewise.
27648 (__arm_vshlq_s32): Likewise.
27649 (__arm_vshlq_u8): Likewise.
27650 (__arm_vshlq_u16): Likewise.
27651 (__arm_vshlq_u32): Likewise.
27652 (vaddlvq_p): Define polymorphic variant.
27653 (vcmpneq): Likewise.
27654 (vshlq): Likewise.
27655 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_UNONE_QUALIFIERS):
27656 Use it.
27657 (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
27658 (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
27659 * config/arm/mve.md (mve_vaddlvq_p_<supf>v4si): Define RTL pattern.
27660 (mve_vcmpneq_<supf><mode>): Likewise.
27661 (mve_vshlq_<supf><mode>): Likewise.
27662
27663 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27664 Mihail Ionescu <mihail.ionescu@arm.com>
27665 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27666
27667 * config/arm/arm-builtins.c (BINOP_UNONE_UNONE_IMM_QUALIFIERS): Define
27668 qualifier for binary operands.
27669 (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
27670 (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
27671 * config/arm/arm_mve.h (vcvtq_n_s16_f16): Define macro.
27672 (vcvtq_n_s32_f32): Likewise.
27673 (vcvtq_n_u16_f16): Likewise.
27674 (vcvtq_n_u32_f32): Likewise.
27675 (vcreateq_u8): Likewise.
27676 (vcreateq_u16): Likewise.
27677 (vcreateq_u32): Likewise.
27678 (vcreateq_u64): Likewise.
27679 (vcreateq_s8): Likewise.
27680 (vcreateq_s16): Likewise.
27681 (vcreateq_s32): Likewise.
27682 (vcreateq_s64): Likewise.
27683 (vshrq_n_s8): Likewise.
27684 (vshrq_n_s16): Likewise.
27685 (vshrq_n_s32): Likewise.
27686 (vshrq_n_u8): Likewise.
27687 (vshrq_n_u16): Likewise.
27688 (vshrq_n_u32): Likewise.
27689 (__arm_vcreateq_u8): Define intrinsic.
27690 (__arm_vcreateq_u16): Likewise.
27691 (__arm_vcreateq_u32): Likewise.
27692 (__arm_vcreateq_u64): Likewise.
27693 (__arm_vcreateq_s8): Likewise.
27694 (__arm_vcreateq_s16): Likewise.
27695 (__arm_vcreateq_s32): Likewise.
27696 (__arm_vcreateq_s64): Likewise.
27697 (__arm_vshrq_n_s8): Likewise.
27698 (__arm_vshrq_n_s16): Likewise.
27699 (__arm_vshrq_n_s32): Likewise.
27700 (__arm_vshrq_n_u8): Likewise.
27701 (__arm_vshrq_n_u16): Likewise.
27702 (__arm_vshrq_n_u32): Likewise.
27703 (__arm_vcvtq_n_s16_f16): Likewise.
27704 (__arm_vcvtq_n_s32_f32): Likewise.
27705 (__arm_vcvtq_n_u16_f16): Likewise.
27706 (__arm_vcvtq_n_u32_f32): Likewise.
27707 (vshrq_n): Define polymorphic variant.
27708 * config/arm/arm_mve_builtins.def (BINOP_UNONE_UNONE_IMM_QUALIFIERS):
27709 Use it.
27710 (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
27711 (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
27712 * config/arm/constraints.md (Rb): Define constraint to check constant is
27713 in the range of 1 to 8.
27714 (Rf): Define constraint to check constant is in the range of 1 to 32.
27715 * config/arm/mve.md (mve_vcreateq_<supf><mode>): Define RTL pattern.
27716 (mve_vshrq_n_<supf><mode>): Likewise.
27717 (mve_vcvtq_n_from_f_<supf><mode>): Likewise.
27718 * config/arm/predicates.md (mve_imm_8): Define predicate to check
27719 the matching constraint Rb.
27720 (mve_imm_32): Define predicate to check the matching constraint Rf.
27721
27722 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27723 Mihail Ionescu <mihail.ionescu@arm.com>
27724 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27725
27726 * config/arm/arm-builtins.c (BINOP_NONE_NONE_NONE_QUALIFIERS): Define
27727 qualifier for binary operands.
27728 (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
27729 (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
27730 (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
27731 * config/arm/arm_mve.h (vsubq_n_f16): Define macro.
27732 (vsubq_n_f32): Likewise.
27733 (vbrsrq_n_f16): Likewise.
27734 (vbrsrq_n_f32): Likewise.
27735 (vcvtq_n_f16_s16): Likewise.
27736 (vcvtq_n_f32_s32): Likewise.
27737 (vcvtq_n_f16_u16): Likewise.
27738 (vcvtq_n_f32_u32): Likewise.
27739 (vcreateq_f16): Likewise.
27740 (vcreateq_f32): Likewise.
27741 (__arm_vsubq_n_f16): Define intrinsic.
27742 (__arm_vsubq_n_f32): Likewise.
27743 (__arm_vbrsrq_n_f16): Likewise.
27744 (__arm_vbrsrq_n_f32): Likewise.
27745 (__arm_vcvtq_n_f16_s16): Likewise.
27746 (__arm_vcvtq_n_f32_s32): Likewise.
27747 (__arm_vcvtq_n_f16_u16): Likewise.
27748 (__arm_vcvtq_n_f32_u32): Likewise.
27749 (__arm_vcreateq_f16): Likewise.
27750 (__arm_vcreateq_f32): Likewise.
27751 (vsubq): Define polymorphic variant.
27752 (vbrsrq): Likewise.
27753 (vcvtq_n): Likewise.
27754 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE_QUALIFIERS): Use
27755 it.
27756 (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
27757 (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
27758 (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
27759 * config/arm/constraints.md (Rd): Define constraint to check constant is
27760 in the range of 1 to 16.
27761 * config/arm/mve.md (mve_vsubq_n_f<mode>): Define RTL pattern.
27762 mve_vbrsrq_n_f<mode>: Likewise.
27763 mve_vcvtq_n_to_f_<supf><mode>: Likewise.
27764 mve_vcreateq_f<mode>: Likewise.
27765 * config/arm/predicates.md (mve_imm_16): Define predicate to check
27766 the matching constraint Rd.
27767
27768 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27769 Mihail Ionescu <mihail.ionescu@arm.com>
27770 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27771
27772 * config/arm/arm-builtins.c (hi_UP): Define mode.
27773 * config/arm/arm.h (IS_VPR_REGNUM): Move.
27774 * config/arm/arm.md (VPR_REGNUM): Define before APSRQ_REGNUM.
27775 (APSRQ_REGNUM): Modify.
27776 (APSRGE_REGNUM): Modify.
27777 * config/arm/arm_mve.h (vctp16q): Define macro.
27778 (vctp32q): Likewise.
27779 (vctp64q): Likewise.
27780 (vctp8q): Likewise.
27781 (vpnot): Likewise.
27782 (__arm_vctp16q): Define intrinsic.
27783 (__arm_vctp32q): Likewise.
27784 (__arm_vctp64q): Likewise.
27785 (__arm_vctp8q): Likewise.
27786 (__arm_vpnot): Likewise.
27787 * config/arm/arm_mve_builtins.def (UNOP_UNONE_UNONE): Use builtin
27788 qualifier.
27789 * config/arm/mve.md (mve_vctp<mode1>qhi): Define RTL pattern.
27790 (mve_vpnothi): Likewise.
27791
27792 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
27793 Mihail Ionescu <mihail.ionescu@arm.com>
27794 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
27795
27796 * config/arm/arm.h (enum reg_class): Define new class EVEN_REGS.
27797 * config/arm/arm_mve.h (vdupq_n_s8): Define macro.
27798 (vdupq_n_s16): Likewise.
27799 (vdupq_n_s32): Likewise.
27800 (vabsq_s8): Likewise.
27801 (vabsq_s16): Likewise.
27802 (vabsq_s32): Likewise.
27803 (vclsq_s8): Likewise.
27804 (vclsq_s16): Likewise.
27805 (vclsq_s32): Likewise.
27806 (vclzq_s8): Likewise.
27807 (vclzq_s16): Likewise.
27808 (vclzq_s32): Likewise.
27809 (vnegq_s8): Likewise.
27810 (vnegq_s16): Likewise.
27811 (vnegq_s32): Likewise.
27812 (vaddlvq_s32): Likewise.
27813 (vaddvq_s8): Likewise.
27814 (vaddvq_s16): Likewise.
27815 (vaddvq_s32): Likewise.
27816 (vmovlbq_s8): Likewise.
27817 (vmovlbq_s16): Likewise.
27818 (vmovltq_s8): Likewise.
27819 (vmovltq_s16): Likewise.
27820 (vmvnq_s8): Likewise.
27821 (vmvnq_s16): Likewise.
27822 (vmvnq_s32): Likewise.
27823 (vrev16q_s8): Likewise.
27824 (vrev32q_s8): Likewise.
27825 (vrev32q_s16): Likewise.
27826 (vqabsq_s8): Likewise.
27827 (vqabsq_s16): Likewise.
27828 (vqabsq_s32): Likewise.
27829 (vqnegq_s8): Likewise.
27830 (vqnegq_s16): Likewise.
27831 (vqnegq_s32): Likewise.
27832 (vcvtaq_s16_f16): Likewise.
27833 (vcvtaq_s32_f32): Likewise.
27834 (vcvtnq_s16_f16): Likewise.
27835 (vcvtnq_s32_f32): Likewise.
27836 (vcvtpq_s16_f16): Likewise.
27837 (vcvtpq_s32_f32): Likewise.
27838 (vcvtmq_s16_f16): Likewise.
27839 (vcvtmq_s32_f32): Likewise.
27840 (vmvnq_u8): Likewise.
27841 (vmvnq_u16): Likewise.
27842 (vmvnq_u32): Likewise.
27843 (vdupq_n_u8): Likewise.
27844 (vdupq_n_u16): Likewise.
27845 (vdupq_n_u32): Likewise.
27846 (vclzq_u8): Likewise.
27847 (vclzq_u16): Likewise.
27848 (vclzq_u32): Likewise.
27849 (vaddvq_u8): Likewise.
27850 (vaddvq_u16): Likewise.
27851 (vaddvq_u32): Likewise.
27852 (vrev32q_u8): Likewise.
27853 (vrev32q_u16): Likewise.
27854 (vmovltq_u8): Likewise.
27855 (vmovltq_u16): Likewise.
27856 (vmovlbq_u8): Likewise.
27857 (vmovlbq_u16): Likewise.
27858 (vrev16q_u8): Likewise.
27859 (vaddlvq_u32): Likewise.
27860 (vcvtpq_u16_f16): Likewise.
27861 (vcvtpq_u32_f32): Likewise.
27862 (vcvtnq_u16_f16): Likewise.
27863 (vcvtmq_u16_f16): Likewise.
27864 (vcvtmq_u32_f32): Likewise.
27865 (vcvtaq_u16_f16): Likewise.
27866 (vcvtaq_u32_f32): Likewise.
27867 (__arm_vdupq_n_s8): Define intrinsic.
27868 (__arm_vdupq_n_s16): Likewise.
27869 (__arm_vdupq_n_s32): Likewise.
27870 (__arm_vabsq_s8): Likewise.
27871 (__arm_vabsq_s16): Likewise.
27872 (__arm_vabsq_s32): Likewise.
27873 (__arm_vclsq_s8): Likewise.
27874 (__arm_vclsq_s16): Likewise.
27875 (__arm_vclsq_s32): Likewise.
27876 (__arm_vclzq_s8): Likewise.
27877 (__arm_vclzq_s16): Likewise.
27878 (__arm_vclzq_s32): Likewise.
27879 (__arm_vnegq_s8): Likewise.
27880 (__arm_vnegq_s16): Likewise.
27881 (__arm_vnegq_s32): Likewise.
27882 (__arm_vaddlvq_s32): Likewise.
27883 (__arm_vaddvq_s8): Likewise.
27884 (__arm_vaddvq_s16): Likewise.
27885 (__arm_vaddvq_s32): Likewise.
27886 (__arm_vmovlbq_s8): Likewise.
27887 (__arm_vmovlbq_s16): Likewise.
27888 (__arm_vmovltq_s8): Likewise.
27889 (__arm_vmovltq_s16): Likewise.
27890 (__arm_vmvnq_s8): Likewise.
27891 (__arm_vmvnq_s16): Likewise.
27892 (__arm_vmvnq_s32): Likewise.
27893 (__arm_vrev16q_s8): Likewise.
27894 (__arm_vrev32q_s8): Likewise.
27895 (__arm_vrev32q_s16): Likewise.
27896 (__arm_vqabsq_s8): Likewise.
27897 (__arm_vqabsq_s16): Likewise.
27898 (__arm_vqabsq_s32): Likewise.
27899 (__arm_vqnegq_s8): Likewise.
27900 (__arm_vqnegq_s16): Likewise.
27901 (__arm_vqnegq_s32): Likewise.
27902 (__arm_vmvnq_u8): Likewise.
27903 (__arm_vmvnq_u16): Likewise.
27904 (__arm_vmvnq_u32): Likewise.
27905 (__arm_vdupq_n_u8): Likewise.
27906 (__arm_vdupq_n_u16): Likewise.
27907 (__arm_vdupq_n_u32): Likewise.
27908 (__arm_vclzq_u8): Likewise.
27909 (__arm_vclzq_u16): Likewise.
27910 (__arm_vclzq_u32): Likewise.
27911 (__arm_vaddvq_u8): Likewise.
27912 (__arm_vaddvq_u16): Likewise.
27913 (__arm_vaddvq_u32): Likewise.
27914 (__arm_vrev32q_u8): Likewise.
27915 (__arm_vrev32q_u16): Likewise.
27916 (__arm_vmovltq_u8): Likewise.
27917 (__arm_vmovltq_u16): Likewise.
27918 (__arm_vmovlbq_u8): Likewise.
27919 (__arm_vmovlbq_u16): Likewise.
27920 (__arm_vrev16q_u8): Likewise.
27921 (__arm_vaddlvq_u32): Likewise.
27922 (__arm_vcvtpq_u16_f16): Likewise.
27923 (__arm_vcvtpq_u32_f32): Likewise.
27924 (__arm_vcvtnq_u16_f16): Likewise.
27925 (__arm_vcvtmq_u16_f16): Likewise.
27926 (__arm_vcvtmq_u32_f32): Likewise.
27927 (__arm_vcvtaq_u16_f16): Likewise.
27928 (__arm_vcvtaq_u32_f32): Likewise.
27929 (__arm_vcvtaq_s16_f16): Likewise.
27930 (__arm_vcvtaq_s32_f32): Likewise.
27931 (__arm_vcvtnq_s16_f16): Likewise.
27932 (__arm_vcvtnq_s32_f32): Likewise.
27933 (__arm_vcvtpq_s16_f16): Likewise.
27934 (__arm_vcvtpq_s32_f32): Likewise.
27935 (__arm_vcvtmq_s16_f16): Likewise.
27936 (__arm_vcvtmq_s32_f32): Likewise.
27937 (vdupq_n): Define polymorphic variant.
27938 (vabsq): Likewise.
27939 (vclsq): Likewise.
27940 (vclzq): Likewise.
27941 (vnegq): Likewise.
27942 (vaddlvq): Likewise.
27943 (vaddvq): Likewise.
27944 (vmovlbq): Likewise.
27945 (vmovltq): Likewise.
27946 (vmvnq): Likewise.
27947 (vrev16q): Likewise.
27948 (vrev32q): Likewise.
27949 (vqabsq): Likewise.
27950 (vqnegq): Likewise.
27951 * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
27952 (UNOP_SNONE_NONE): Likewise.
27953 (UNOP_UNONE_UNONE): Likewise.
27954 (UNOP_UNONE_NONE): Likewise.
27955 * config/arm/constraints.md (e): Define new constriant to allow only
27956 even registers.
27957 * config/arm/mve.md (mve_vqabsq_s<mode>): Define RTL pattern.
27958 (mve_vnegq_s<mode>): Likewise.
27959 (mve_vmvnq_<supf><mode>): Likewise.
27960 (mve_vdupq_n_<supf><mode>): Likewise.
27961 (mve_vclzq_<supf><mode>): Likewise.
27962 (mve_vclsq_s<mode>): Likewise.
27963 (mve_vaddvq_<supf><mode>): Likewise.
27964 (mve_vabsq_s<mode>): Likewise.
27965 (mve_vrev32q_<supf><mode>): Likewise.
27966 (mve_vmovltq_<supf><mode>): Likewise.
27967 (mve_vmovlbq_<supf><mode>): Likewise.
27968 (mve_vcvtpq_<supf><mode>): Likewise.
27969 (mve_vcvtnq_<supf><mode>): Likewise.
27970 (mve_vcvtmq_<supf><mode>): Likewise.
27971 (mve_vcvtaq_<supf><mode>): Likewise.
27972 (mve_vrev16q_<supf>v16qi): Likewise.
27973 (mve_vaddlvq_<supf>v4si): Likewise.
27974
27975 2020-03-17 Jakub Jelinek <jakub@redhat.com>
27976
27977 * lra-spills.c (remove_pseudos): Fix up duplicated word issue in
27978 a dump message.
27979 * tree-sra.c (create_access_replacement): Fix up duplicated word issue
27980 in a comment.
27981 * read-rtl-function.c (find_param_by_name,
27982 function_reader::parse_enum_value, function_reader::get_insn_by_uid):
27983 Likewise.
27984 * spellcheck.c (get_edit_distance_cutoff): Likewise.
27985 * tree-data-ref.c (create_ifn_alias_checks): Likewise.
27986 * tree.def (SWITCH_EXPR): Likewise.
27987 * selftest.c (assert_str_contains): Likewise.
27988 * ipa-param-manipulation.h (class ipa_param_body_adjustments):
27989 Likewise.
27990 * tree-ssa-math-opts.c (convert_expand_mult_copysign): Likewise.
27991 * tree-ssa-loop-split.c (find_vdef_in_loop): Likewise.
27992 * langhooks.h (struct lang_hooks_for_decls): Likewise.
27993 * ipa-prop.h (struct ipa_param_descriptor): Likewise.
27994 * tree-ssa-strlen.c (handle_builtin_string_cmp, handle_store):
27995 Likewise.
27996 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
27997 * tree-ssa-reassoc.c (reassociate_bb): Likewise.
27998 * tree.c (component_ref_size): Likewise.
27999 * hsa-common.c (hsa_init_compilation_unit_data): Likewise.
28000 * gimple-ssa-sprintf.c (get_string_length, format_string,
28001 format_directive): Likewise.
28002 * omp-grid.c (grid_process_kernel_body_copy): Likewise.
28003 * input.c (string_concat_db::get_string_concatenation,
28004 test_lexer_string_locations_ucn4): Likewise.
28005 * cfgexpand.c (pass_expand::execute): Likewise.
28006 * gimple-ssa-warn-restrict.c (builtin_memref::offset_out_of_bounds,
28007 maybe_diag_overlap): Likewise.
28008 * rtl.c (RTX_CODE_HWINT_P_1): Likewise.
28009 * shrink-wrap.c (spread_components): Likewise.
28010 * tree-ssa-dse.c (initialize_ao_ref_for_dse, valid_ao_ref_for_dse):
28011 Likewise.
28012 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
28013 Likewise.
28014 * dwarf2out.c (dwarf2out_early_finish): Likewise.
28015 * gimple-ssa-store-merging.c: Likewise.
28016 * ira-costs.c (record_operand_costs): Likewise.
28017 * tree-vect-loop.c (vectorizable_reduction): Likewise.
28018 * target.def (dispatch): Likewise.
28019 (validate_dims, gen_ccmp_first): Fix up duplicated word issue
28020 in documentation text.
28021 * doc/tm.texi: Regenerated.
28022 * config/i386/x86-tune.def (X86_TUNE_PARTIAL_FLAG_REG_STALL): Fix up
28023 duplicated word issue in a comment.
28024 * config/i386/i386.c (ix86_test_loading_unspec): Likewise.
28025 * config/i386/i386-features.c (remove_partial_avx_dependency):
28026 Likewise.
28027 * config/msp430/msp430.c (msp430_select_section): Likewise.
28028 * config/gcn/gcn-run.c (load_image): Likewise.
28029 * config/aarch64/aarch64-sve.md (sve_ld1r<mode>): Likewise.
28030 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Likewise.
28031 * config/aarch64/falkor-tag-collision-avoidance.c
28032 (single_dest_per_chain): Likewise.
28033 * config/nvptx/nvptx.c (nvptx_record_fndecl): Likewise.
28034 * config/fr30/fr30.c (fr30_arg_partial_bytes): Likewise.
28035 * config/rs6000/rs6000-string.c (expand_cmp_vec_sequence): Likewise.
28036 * config/rs6000/rs6000-p8swap.c (replace_swapped_load_constant):
28037 Likewise.
28038 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
28039 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
28040 * config/rs6000/rs6000-logue.c
28041 (rs6000_emit_probe_stack_range_stack_clash): Likewise.
28042 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Likewise.
28043 Fix various other issues in the comment.
28044
28045 2020-03-17 Mihail Ionescu <mihail.ionescu@arm.com>
28046
28047 * config/arm/t-rmprofile: create new multilib for
28048 armv8.1-m.main+mve hard float and reuse v8-m.main ones for
28049 v8.1-m.main+mve.
28050
28051 2020-03-17 Jakub Jelinek <jakub@redhat.com>
28052
28053 PR tree-optimization/94015
28054 * tree-ssa-strlen.c (count_nonzero_bytes): Split portions of the
28055 function where EXP is address of the bytes being stored rather than
28056 the bytes themselves into count_nonzero_bytes_addr. Punt on zero
28057 sized MEM_REF. Use VAR_P macro and handle CONST_DECL like VAR_DECLs.
28058 Use ctor_for_folding instead of looking at DECL_INITIAL. Punt before
28059 calling native_encode_expr if host or target doesn't have 8-bit
28060 chars. Formatting fixes.
28061 (count_nonzero_bytes_addr): New function.
28062
28063 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
28064 Mihail Ionescu <mihail.ionescu@arm.com>
28065 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28066
28067 * config/arm/arm-builtins.c (UNOP_SNONE_SNONE_QUALIFIERS): Define.
28068 (UNOP_SNONE_NONE_QUALIFIERS): Likewise.
28069 (UNOP_SNONE_IMM_QUALIFIERS): Likewise.
28070 (UNOP_UNONE_NONE_QUALIFIERS): Likewise.
28071 (UNOP_UNONE_UNONE_QUALIFIERS): Likewise.
28072 (UNOP_UNONE_IMM_QUALIFIERS): Likewise.
28073 * config/arm/arm_mve.h (vmvnq_n_s16): Define macro.
28074 (vmvnq_n_s32): Likewise.
28075 (vrev64q_s8): Likewise.
28076 (vrev64q_s16): Likewise.
28077 (vrev64q_s32): Likewise.
28078 (vcvtq_s16_f16): Likewise.
28079 (vcvtq_s32_f32): Likewise.
28080 (vrev64q_u8): Likewise.
28081 (vrev64q_u16): Likewise.
28082 (vrev64q_u32): Likewise.
28083 (vmvnq_n_u16): Likewise.
28084 (vmvnq_n_u32): Likewise.
28085 (vcvtq_u16_f16): Likewise.
28086 (vcvtq_u32_f32): Likewise.
28087 (__arm_vmvnq_n_s16): Define intrinsic.
28088 (__arm_vmvnq_n_s32): Likewise.
28089 (__arm_vrev64q_s8): Likewise.
28090 (__arm_vrev64q_s16): Likewise.
28091 (__arm_vrev64q_s32): Likewise.
28092 (__arm_vrev64q_u8): Likewise.
28093 (__arm_vrev64q_u16): Likewise.
28094 (__arm_vrev64q_u32): Likewise.
28095 (__arm_vmvnq_n_u16): Likewise.
28096 (__arm_vmvnq_n_u32): Likewise.
28097 (__arm_vcvtq_s16_f16): Likewise.
28098 (__arm_vcvtq_s32_f32): Likewise.
28099 (__arm_vcvtq_u16_f16): Likewise.
28100 (__arm_vcvtq_u32_f32): Likewise.
28101 (vrev64q): Define polymorphic variant.
28102 * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
28103 (UNOP_SNONE_NONE): Likewise.
28104 (UNOP_SNONE_IMM): Likewise.
28105 (UNOP_UNONE_UNONE): Likewise.
28106 (UNOP_UNONE_NONE): Likewise.
28107 (UNOP_UNONE_IMM): Likewise.
28108 * config/arm/mve.md (mve_vrev64q_<supf><mode>): Define RTL pattern.
28109 (mve_vcvtq_from_f_<supf><mode>): Likewise.
28110 (mve_vmvnq_n_<supf><mode>): Likewise.
28111
28112 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
28113 Mihail Ionescu <mihail.ionescu@arm.com>
28114 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28115
28116 * config/arm/arm-builtins.c (UNOP_NONE_NONE_QUALIFIERS): Define macro.
28117 (UNOP_NONE_SNONE_QUALIFIERS): Likewise.
28118 (UNOP_NONE_UNONE_QUALIFIERS): Likewise.
28119 * config/arm/arm_mve.h (vrndxq_f16): Define macro.
28120 (vrndxq_f32): Likewise.
28121 (vrndq_f16) Likewise.
28122 (vrndq_f32): Likewise.
28123 (vrndpq_f16): Likewise.
28124 (vrndpq_f32): Likewise.
28125 (vrndnq_f16): Likewise.
28126 (vrndnq_f32): Likewise.
28127 (vrndmq_f16): Likewise.
28128 (vrndmq_f32): Likewise.
28129 (vrndaq_f16): Likewise.
28130 (vrndaq_f32): Likewise.
28131 (vrev64q_f16): Likewise.
28132 (vrev64q_f32): Likewise.
28133 (vnegq_f16): Likewise.
28134 (vnegq_f32): Likewise.
28135 (vdupq_n_f16): Likewise.
28136 (vdupq_n_f32): Likewise.
28137 (vabsq_f16): Likewise.
28138 (vabsq_f32): Likewise.
28139 (vrev32q_f16): Likewise.
28140 (vcvttq_f32_f16): Likewise.
28141 (vcvtbq_f32_f16): Likewise.
28142 (vcvtq_f16_s16): Likewise.
28143 (vcvtq_f32_s32): Likewise.
28144 (vcvtq_f16_u16): Likewise.
28145 (vcvtq_f32_u32): Likewise.
28146 (__arm_vrndxq_f16): Define intrinsic.
28147 (__arm_vrndxq_f32): Likewise.
28148 (__arm_vrndq_f16): Likewise.
28149 (__arm_vrndq_f32): Likewise.
28150 (__arm_vrndpq_f16): Likewise.
28151 (__arm_vrndpq_f32): Likewise.
28152 (__arm_vrndnq_f16): Likewise.
28153 (__arm_vrndnq_f32): Likewise.
28154 (__arm_vrndmq_f16): Likewise.
28155 (__arm_vrndmq_f32): Likewise.
28156 (__arm_vrndaq_f16): Likewise.
28157 (__arm_vrndaq_f32): Likewise.
28158 (__arm_vrev64q_f16): Likewise.
28159 (__arm_vrev64q_f32): Likewise.
28160 (__arm_vnegq_f16): Likewise.
28161 (__arm_vnegq_f32): Likewise.
28162 (__arm_vdupq_n_f16): Likewise.
28163 (__arm_vdupq_n_f32): Likewise.
28164 (__arm_vabsq_f16): Likewise.
28165 (__arm_vabsq_f32): Likewise.
28166 (__arm_vrev32q_f16): Likewise.
28167 (__arm_vcvttq_f32_f16): Likewise.
28168 (__arm_vcvtbq_f32_f16): Likewise.
28169 (__arm_vcvtq_f16_s16): Likewise.
28170 (__arm_vcvtq_f32_s32): Likewise.
28171 (__arm_vcvtq_f16_u16): Likewise.
28172 (__arm_vcvtq_f32_u32): Likewise.
28173 (vrndxq): Define polymorphic variants.
28174 (vrndq): Likewise.
28175 (vrndpq): Likewise.
28176 (vrndnq): Likewise.
28177 (vrndmq): Likewise.
28178 (vrndaq): Likewise.
28179 (vrev64q): Likewise.
28180 (vnegq): Likewise.
28181 (vabsq): Likewise.
28182 (vrev32q): Likewise.
28183 (vcvtbq_f32): Likewise.
28184 (vcvttq_f32): Likewise.
28185 (vcvtq): Likewise.
28186 * config/arm/arm_mve_builtins.def (VAR2): Define.
28187 (VAR1): Define.
28188 * config/arm/mve.md (mve_vrndxq_f<mode>): Add RTL pattern.
28189 (mve_vrndq_f<mode>): Likewise.
28190 (mve_vrndpq_f<mode>): Likewise.
28191 (mve_vrndnq_f<mode>): Likewise.
28192 (mve_vrndmq_f<mode>): Likewise.
28193 (mve_vrndaq_f<mode>): Likewise.
28194 (mve_vrev64q_f<mode>): Likewise.
28195 (mve_vnegq_f<mode>): Likewise.
28196 (mve_vdupq_n_f<mode>): Likewise.
28197 (mve_vabsq_f<mode>): Likewise.
28198 (mve_vrev32q_fv8hf): Likewise.
28199 (mve_vcvttq_f32_f16v4sf): Likewise.
28200 (mve_vcvtbq_f32_f16v4sf): Likewise.
28201 (mve_vcvtq_to_f_<supf><mode>): Likewise.
28202
28203 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
28204 Mihail Ionescu <mihail.ionescu@arm.com>
28205 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28206
28207 * config/arm/arm-builtins.c (CF): Define mve_builtin_data.
28208 (VAR1): Define.
28209 (ARM_BUILTIN_MVE_PATTERN_START): Define.
28210 (arm_init_mve_builtins): Define function.
28211 (arm_init_builtins): Add TARGET_HAVE_MVE check.
28212 (arm_expand_builtin_1): Check the range of fcode.
28213 (arm_expand_mve_builtin): Define function to expand MVE builtins.
28214 (arm_expand_builtin): Check the range of fcode.
28215 * config/arm/arm_mve.h (__ARM_FEATURE_MVE): Define MVE floating point
28216 types.
28217 (__ARM_MVE_PRESERVE_USER_NAMESPACE): Define to protect user namespace.
28218 (vst4q_s8): Define macro.
28219 (vst4q_s16): Likewise.
28220 (vst4q_s32): Likewise.
28221 (vst4q_u8): Likewise.
28222 (vst4q_u16): Likewise.
28223 (vst4q_u32): Likewise.
28224 (vst4q_f16): Likewise.
28225 (vst4q_f32): Likewise.
28226 (__arm_vst4q_s8): Define inline builtin.
28227 (__arm_vst4q_s16): Likewise.
28228 (__arm_vst4q_s32): Likewise.
28229 (__arm_vst4q_u8): Likewise.
28230 (__arm_vst4q_u16): Likewise.
28231 (__arm_vst4q_u32): Likewise.
28232 (__arm_vst4q_f16): Likewise.
28233 (__arm_vst4q_f32): Likewise.
28234 (__ARM_mve_typeid): Define macro with MVE types.
28235 (__ARM_mve_coerce): Define macro with _Generic feature.
28236 (vst4q): Define polymorphic variant for different vst4q builtins.
28237 * config/arm/arm_mve_builtins.def: New file.
28238 * config/arm/iterators.md (VSTRUCT): Modify to allow XI and OI
28239 modes in MVE.
28240 * config/arm/mve.md (MVE_VLD_ST): Define iterator.
28241 (unspec): Define unspec.
28242 (mve_vst4q<mode>): Define RTL pattern.
28243 * config/arm/neon.md (mov<mode>): Modify expand to allow XI and OI
28244 modes in MVE.
28245 (neon_mov<mode>): Modify RTL define_insn to allow XI and OI modes
28246 in MVE.
28247 (define_split): Allow OI mode split for MVE after reload.
28248 (define_split): Allow XI mode split for MVE after reload.
28249 * config/arm/t-arm (arm.o): Add entry for arm_mve_builtins.def.
28250 (arm-builtins.o): Likewise.
28251
28252 2020-03-17 Christophe Lyon <christophe.lyon@linaro.org>
28253
28254 * c-typeck.c (process_init_element): Handle constructor_type with
28255 type size represented by POLY_INT_CST.
28256
28257 2020-03-17 Jakub Jelinek <jakub@redhat.com>
28258
28259 PR tree-optimization/94187
28260 * tree-ssa-strlen.c (count_nonzero_bytes): Punt if
28261 nchars - offset < nbytes.
28262
28263 PR middle-end/94189
28264 * builtins.c (expand_builtin_strnlen): Do return NULL_RTX if we would
28265 emit a warning if it was enabled and don't depend on TREE_NO_WARNING
28266 for code-generation.
28267
28268 2020-03-16 Vladimir Makarov <vmakarov@redhat.com>
28269
28270 PR target/94185
28271 * lra-spills.c (remove_pseudos): Do not reuse insn alternative
28272 after changing memory subreg.
28273
28274 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
28275 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28276
28277 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Modify function to add
28278 emulator calls for dobule precision arithmetic operations for MVE.
28279
28280 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
28281 Mihail Ionescu <mihail.ionescu@arm.com>
28282 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28283
28284 * common/config/arm/arm-common.c (arm_asm_auto_mfpu): When vfp_base
28285 feature bit is on and -mfpu=auto is passed as compiler option, do not
28286 generate error on not finding any matching fpu. Because in this case
28287 fpu is not required.
28288 * config/arm/arm-cpus.in (vfp_base): Define feature bit, this bit is
28289 enabled for MVE and also for all VFP extensions.
28290 (VFPv2): Modify fgroup to enable vfp_base feature bit when ever VFPv2
28291 is enabled.
28292 (MVE): Define fgroup to enable feature bits mve, vfp_base and armv7em.
28293 (MVE_FP): Define fgroup to enable feature bits is fgroup MVE and FPv5
28294 along with feature bits mve_float.
28295 (mve): Modify add options in armv8.1-m.main arch for MVE.
28296 (mve.fp): Modify add options in armv8.1-m.main arch for MVE with
28297 floating point.
28298 * config/arm/arm.c (use_return_insn): Replace the
28299 check with TARGET_VFP_BASE.
28300 (thumb2_legitimate_index_p): Replace TARGET_HARD_FLOAT with
28301 TARGET_VFP_BASE.
28302 (arm_rtx_costs_internal): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
28303 with TARGET_VFP_BASE, to allow cost calculations for copies in MVE as
28304 well.
28305 (arm_get_vfp_saved_size): Replace TARGET_HARD_FLOAT with
28306 TARGET_VFP_BASE, to allow space calculation for VFP registers in MVE
28307 as well.
28308 (arm_compute_frame_layout): Likewise.
28309 (arm_save_coproc_regs): Likewise.
28310 (arm_fixed_condition_code_regs): Modify to enable using VFPCC_REGNUM
28311 in MVE as well.
28312 (arm_hard_regno_mode_ok): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
28313 with equivalent macro TARGET_VFP_BASE.
28314 (arm_expand_epilogue_apcs_frame): Likewise.
28315 (arm_expand_epilogue): Likewise.
28316 (arm_conditional_register_usage): Likewise.
28317 (arm_declare_function_name): Add check to skip printing .fpu directive
28318 in assembly file when TARGET_VFP_BASE is enabled and fpu_to_print is
28319 "softvfp".
28320 * config/arm/arm.h (TARGET_VFP_BASE): Define.
28321 * config/arm/arm.md (arch): Add "mve" to arch.
28322 (eq_attr "arch" "mve"): Enable on TARGET_HAVE_MVE is true.
28323 (vfp_pop_multiple_with_writeback): Replace "TARGET_HARD_FLOAT
28324 || TARGET_HAVE_MVE" with equivalent macro TARGET_VFP_BASE.
28325 * config/arm/constraints.md (Uf): Define to allow modification to FPCCR
28326 in MVE.
28327 * config/arm/thumb2.md (thumb2_movsfcc_soft_insn): Modify target guard
28328 to not allow for MVE.
28329 * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Move to volatile unspecs
28330 enum.
28331 (VUNSPEC_GET_FPSCR): Define.
28332 * config/arm/vfp.md (thumb2_movhi_vfp): Add support for VMSR and VMRS
28333 instructions which move to general-purpose Register from Floating-point
28334 Special register and vice-versa.
28335 (thumb2_movhi_fp16): Likewise.
28336 (thumb2_movsi_vfp): Add support for VMSR and VMRS instructions along
28337 with MCR and MRC instructions which set and get Floating-point Status
28338 and Control Register (FPSCR).
28339 (movdi_vfp): Modify pattern to enable Single-precision scalar float move
28340 in MVE.
28341 (thumb2_movdf_vfp): Modify pattern to enable Double-precision scalar
28342 float move patterns in MVE.
28343 (thumb2_movsfcc_vfp): Modify pattern to enable single float conditional
28344 code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
28345 (thumb2_movdfcc_vfp): Modify pattern to enable double float conditional
28346 code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
28347 (push_multi_vfp): Add support to use VFP VPUSH pattern for MVE by adding
28348 TARGET_VFP_BASE check.
28349 (set_fpscr): Add support to set FPSCR register for MVE. Modify pattern
28350 using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
28351 register.
28352 (get_fpscr): Add support to get FPSCR register for MVE. Modify pattern
28353 using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
28354 register.
28355
28356
28357 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
28358 Mihail Ionescu <mihail.ionescu@arm.com>
28359 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
28360
28361 * config.gcc (arm_mve.h): Include mve intrinsics header file.
28362 * config/arm/aout.h (p0): Add new register name for MVE predicated
28363 cases.
28364 * config/arm-builtins.c (ARM_BUILTIN_SIMD_LANE_CHECK): Define macro
28365 common to Neon and MVE.
28366 (ARM_BUILTIN_NEON_LANE_CHECK): Renamed to ARM_BUILTIN_SIMD_LANE_CHECK.
28367 (arm_init_simd_builtin_types): Disable poly types for MVE.
28368 (arm_init_neon_builtins): Move a check to arm_init_builtins function.
28369 (arm_init_builtins): Use ARM_BUILTIN_SIMD_LANE_CHECK instead of
28370 ARM_BUILTIN_NEON_LANE_CHECK.
28371 (mve_dereference_pointer): Add function.
28372 (arm_expand_builtin_args): Call to mve_dereference_pointer when MVE is
28373 enabled.
28374 (arm_expand_neon_builtin): Moved to arm_expand_builtin function.
28375 (arm_expand_builtin): Moved from arm_expand_neon_builtin function.
28376 * config/arm/arm-c.c (__ARM_FEATURE_MVE): Define macro for MVE and MVE
28377 with floating point enabled.
28378 * config/arm/arm-protos.h (neon_immediate_valid_for_move): Renamed to
28379 simd_immediate_valid_for_move.
28380 (simd_immediate_valid_for_move): Renamed from
28381 neon_immediate_valid_for_move function.
28382 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Generate
28383 error if vfpv2 feature bit is disabled and mve feature bit is also
28384 disabled for HARD_FLOAT_ABI.
28385 (use_return_insn): Check to not push VFP regs for MVE.
28386 (aapcs_vfp_allocate): Add MVE check to have same Procedure Call Standard
28387 as Neon.
28388 (aapcs_vfp_allocate_return_reg): Likewise.
28389 (thumb2_legitimate_address_p): Check to return 0 on valid Thumb-2
28390 address operand for MVE.
28391 (arm_rtx_costs_internal): MVE check to determine cost of rtx.
28392 (neon_valid_immediate): Rename to simd_valid_immediate.
28393 (simd_valid_immediate): Rename from neon_valid_immediate.
28394 (simd_valid_immediate): MVE check on size of vector is 128 bits.
28395 (neon_immediate_valid_for_move): Rename to
28396 simd_immediate_valid_for_move.
28397 (simd_immediate_valid_for_move): Rename from
28398 neon_immediate_valid_for_move.
28399 (neon_immediate_valid_for_logic): Modify call to neon_valid_immediate
28400 function.
28401 (neon_make_constant): Modify call to neon_valid_immediate function.
28402 (neon_vector_mem_operand): Return VFP register for POST_INC or PRE_DEC
28403 for MVE.
28404 (output_move_neon): Add MVE check to generate vldm/vstm instrcutions.
28405 (arm_compute_frame_layout): Calculate space for saved VFP registers for
28406 MVE.
28407 (arm_save_coproc_regs): Save coproc registers for MVE.
28408 (arm_print_operand): Add case 'E' to print memory operands for MVE.
28409 (arm_print_operand_address): Check to print register number for MVE.
28410 (arm_hard_regno_mode_ok): Check for arm hard regno mode ok for MVE.
28411 (arm_modes_tieable_p): Check to allow structure mode for MVE.
28412 (arm_regno_class): Add VPR_REGNUM check.
28413 (arm_expand_epilogue_apcs_frame): MVE check to calculate epilogue code
28414 for APCS frame.
28415 (arm_expand_epilogue): MVE check for enabling pop instructions in
28416 epilogue.
28417 (arm_print_asm_arch_directives): Modify function to disable print of
28418 .arch_extension "mve" and "fp" for cases where MVE is enabled with
28419 "SOFT FLOAT ABI".
28420 (arm_vector_mode_supported_p): Check for modes available in MVE interger
28421 and MVE floating point.
28422 (arm_array_mode_supported_p): Add TARGET_HAVE_MVE check for array mode
28423 pointer support.
28424 (arm_conditional_register_usage): Enable usage of conditional regsiter
28425 for MVE.
28426 (fixed_regs[VPR_REGNUM]): Enable VPR_REG for MVE.
28427 (arm_declare_function_name): Modify function to disable print of
28428 .arch_extension "mve" and "fp" for cases where MVE is enabled with
28429 "SOFT FLOAT ABI".
28430 * config/arm/arm.h (TARGET_HAVE_MVE): Disable for soft float abi and
28431 when target general registers are required.
28432 (TARGET_HAVE_MVE_FLOAT): Likewise.
28433 (FIXED_REGISTERS): Add bit for VFP_REG class which is enabled in arm.c
28434 for MVE.
28435 (CALL_USED_REGISTERS): Set bit for VFP_REG class in CALL_USED_REGISTERS
28436 which indicate this is not available for across function calls.
28437 (FIRST_PSEUDO_REGISTER): Modify.
28438 (VALID_MVE_MODE): Define valid MVE mode.
28439 (VALID_MVE_SI_MODE): Define valid MVE SI mode.
28440 (VALID_MVE_SF_MODE): Define valid MVE SF mode.
28441 (VALID_MVE_STRUCT_MODE): Define valid MVE struct mode.
28442 (VPR_REGNUM): Add Vector Predication Register in arm_regs_in_sequence
28443 for MVE.
28444 (IS_VPR_REGNUM): Macro to check for VPR_REG register.
28445 (REG_ALLOC_ORDER): Add VPR_REGNUM entry.
28446 (enum reg_class): Add VPR_REG entry.
28447 (REG_CLASS_NAMES): Add VPR_REG entry.
28448 * config/arm/arm.md (VPR_REGNUM): Define.
28449 (conds): Check is_mve_type attrbiute to differentiate "conditional" and
28450 "unconditional" instructions.
28451 (arm_movsf_soft_insn): Modify RTL to not allow for MVE.
28452 (movdf_soft_insn): Modify RTL to not allow for MVE.
28453 (vfp_pop_multiple_with_writeback): Enable for MVE.
28454 (include "mve.md"): Include mve.md file.
28455 * config/arm/arm_mve.h: Add MVE intrinsics head file.
28456 * config/arm/constraints.md (Up): Constraint to enable "p0" register in MVE
28457 for vector predicated operands.
28458 * config/arm/iterators.md (VNIM1): Define.
28459 (VNINOTM1): Define.
28460 (VHFBF_split): Define
28461 * config/arm/mve.md: New file.
28462 (mve_mov<mode>): Define RTL for move, store and load in MVE.
28463 (mve_mov<mode>): Define move RTL pattern with vec_duplicate operator for
28464 second operand.
28465 * config/arm/neon.md (neon_immediate_valid_for_move): Rename with
28466 simd_immediate_valid_for_move.
28467 (neon_mov<mode>): Split pattern and move expand pattern "movv8hf" which
28468 is common to MVE and NEON to vec-common.md file.
28469 (vec_init<mode><V_elem_l>): Add TARGET_HAVE_MVE check.
28470 * config/arm/predicates.md (vpr_register_operand): Define.
28471 * config/arm/t-arm: Add mve.md file.
28472 * config/arm/types.md (mve_move): Add MVE instructions mve_move to
28473 attribute "type".
28474 (mve_store): Add MVE instructions mve_store to attribute "type".
28475 (mve_load): Add MVE instructions mve_load to attribute "type".
28476 (is_mve_type): Define attribute.
28477 * config/arm/vec-common.md (mov<mode>): Modify RTL expand to support
28478 standard move patterns in MVE along with NEON and IWMMXT with mode
28479 iterator VNIM1.
28480 (mov<mode>): Modify RTL expand to support standard move patterns in NEON
28481 and IWMMXT with mode iterator V8HF.
28482 (movv8hf): Define RTL expand to support standard "movv8hf" pattern in
28483 NEON and MVE.
28484 * config/arm/vfp.md (neon_immediate_valid_for_move): Rename to
28485 simd_immediate_valid_for_move.
28486
28487
28488 2020-03-16 H.J. Lu <hongjiu.lu@intel.com>
28489
28490 PR target/89229
28491 * config/i386/i386.md (*movsi_internal): Call ix86_output_ssemov
28492 for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL
28493 check.
28494 * config/i386/predicates.md (ext_sse_reg_operand): Removed.
28495
28496 2020-03-16 Jakub Jelinek <jakub@redhat.com>
28497
28498 PR debug/94167
28499 * tree-inline.c (insert_init_stmt): Don't gimple_regimplify_operands
28500 DEBUG_STMTs.
28501
28502 PR tree-optimization/94166
28503 * tree-ssa-reassoc.c (sort_by_mach_mode): Use SSA_NAME_VERSION
28504 as secondary comparison key.
28505
28506 2020-03-16 Bin Cheng <bin.cheng@linux.alibaba.com>
28507
28508 PR tree-optimization/94125
28509 * tree-loop-distribution.c
28510 (loop_distribution::break_alias_scc_partitions): Update post order
28511 number for merged scc.
28512
28513 2020-03-15 H.J. Lu <hongjiu.lu@intel.com>
28514
28515 PR target/89229
28516 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_SI and
28517 MODE_SF.
28518 * config/i386/i386.md (*movsf_internal): Call ix86_output_ssemov
28519 for TYPE_SSEMOV. Remove TARGET_PREFER_AVX256, TARGET_AVX512VL
28520 and ext_sse_reg_operand check.
28521
28522 2020-03-15 Lewis Hyatt <lhyatt@gmail.com>
28523
28524 * common.opt: Avoid redundancy in the help text.
28525 * config/arc/arc.opt: Likewise.
28526 * config/cr16/cr16.opt: Likewise.
28527
28528 2020-03-14 Jakub Jelinek <jakub@redhat.com>
28529
28530 PR middle-end/93566
28531 * tree-nested.c (convert_nonlocal_omp_clauses,
28532 convert_local_omp_clauses): Handle {,in_,task_}reduction clauses
28533 with C/C++ array sections.
28534
28535 2020-03-14 H.J. Lu <hongjiu.lu@intel.com>
28536
28537 PR target/89229
28538 * config/i386/i386.md (*movdi_internal): Call ix86_output_ssemov
28539 for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL
28540 check.
28541
28542 2020-03-14 Jakub Jelinek <jakub@redhat.com>
28543
28544 * gimple-fold.c (gimple_fold_builtin_strncpy): Change
28545 "a an" to "an" in a comment.
28546 * hsa-common.h (is_a_helper): Likewise.
28547 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.
28548 * config/arc/arc.c (arc600_corereg_hazard): Likewise.
28549 * config/s390/s390.c (s390_indirect_branch_via_thunk): Likewise.
28550
28551 2020-03-13 Aaron Sawdey <acsawdey@linux.ibm.com>
28552
28553 PR target/92379
28554 * config/rs6000/rs6000.c (num_insns_constant_multi): Don't shift a
28555 64-bit value by 64 bits (UB).
28556
28557 2020-03-13 Vladimir Makarov <vmakarov@redhat.com>
28558
28559 PR rtl-optimization/92303
28560 * lra-spills.c (remove_pseudos): Try to simplify memory subreg.
28561
28562 2020-03-13 Segher Boessenkool <segher@kernel.crashing.org>
28563
28564 PR rtl-optimization/94148
28565 PR rtl-optimization/94042
28566 * df-core.c (BB_LAST_CHANGE_AGE): Delete.
28567 (df_worklist_propagate_forward): New parameter last_change_age, use
28568 that instead of bb->aux.
28569 (df_worklist_propagate_backward): Ditto.
28570 (df_worklist_dataflow_doublequeue): Use a local array last_change_age.
28571
28572 2020-03-13 Richard Biener <rguenther@suse.de>
28573
28574 PR tree-optimization/94163
28575 * tree-ssa-pre.c (create_expression_by_pieces): Check
28576 whether alignment would be zero.
28577
28578 2020-03-13 Martin Liska <mliska@suse.cz>
28579
28580 PR lto/94157
28581 * lto-wrapper.c (run_gcc): Use concat for appending
28582 to collect_gcc_options.
28583
28584 2020-03-13 Jakub Jelinek <jakub@redhat.com>
28585
28586 PR target/94121
28587 * config/aarch64/aarch64.c (aarch64_add_offset_1): Use gen_int_mode
28588 instead of GEN_INT.
28589
28590 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
28591
28592 PR target/89229
28593 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DF.
28594 * config/i386/i386.md (*movdf_internal): Call ix86_output_ssemov
28595 for TYPE_SSEMOV. Remove TARGET_AVX512F, TARGET_PREFER_AVX256,
28596 TARGET_AVX512VL and ext_sse_reg_operand check.
28597
28598 2020-03-13 Bu Le <bule1@huawei.com>
28599
28600 PR target/94154
28601 * config/aarch64/aarch64.opt (-param=aarch64-float-recp-precision=)
28602 (-param=aarch64-double-recp-precision=): New options.
28603 * doc/invoke.texi: Document them.
28604 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Use them
28605 instead of hard-coding the choice of 1 for float and 2 for double.
28606
28607 2020-03-13 Eric Botcazou <ebotcazou@adacore.com>
28608
28609 PR rtl-optimization/94119
28610 * resource.h (clear_hashed_info_until_next_barrier): Declare.
28611 * resource.c (clear_hashed_info_until_next_barrier): New function.
28612 * reorg.c (add_to_delay_list): Fix formatting.
28613 (relax_delay_slots): Call clear_hashed_info_until_next_barrier on
28614 the next instruction after removing a BARRIER.
28615
28616 2020-03-13 Eric Botcazou <ebotcazou@adacore.com>
28617
28618 PR middle-end/92071
28619 * expmed.c (store_integral_bit_field): For fields larger than a word,
28620 call extract_bit_field on the value if the mode is BLKmode. Remove
28621 specific path for big-endian targets and tidy things up a little bit.
28622
28623 2020-03-12 Richard Sandiford <richard.sandiford@arm.com>
28624
28625 PR rtl-optimization/90275
28626 * cse.c (cse_insn): Delete no-op register moves too.
28627
28628 2020-03-12 Darius Galis <darius.galis@cyberthorstudios.com>
28629
28630 * config/rx/rx.md (CTRLREG_CPEN): Remove.
28631 * config/rx/rx.c (rx_print_operand): Remove CTRLREG_CPEN support.
28632
28633 2020-03-12 Richard Biener <rguenther@suse.de>
28634
28635 PR tree-optimization/94103
28636 * tree-ssa-sccvn.c (visit_reference_op_load): Avoid type
28637 punning when the mode precision is not sufficient.
28638
28639 2020-03-12 H.J. Lu <hongjiu.lu@intel.com>
28640
28641 PR target/89229
28642 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DI,
28643 MODE_V1DF and MODE_V2SF.
28644 * config/i386/mmx.md (MMXMODE:*mov<mode>_internal): Call
28645 ix86_output_ssemov for TYPE_SSEMOV. Remove ext_sse_reg_operand
28646 check.
28647
28648 2020-03-12 Jakub Jelinek <jakub@redhat.com>
28649
28650 * doc/tm.texi.in (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change
28651 ASM_OUTPUT_ALIGNED_DECL in description to ASM_OUTPUT_ALIGNED_LOCAL
28652 and ASM_OUTPUT_DECL to ASM_OUTPUT_LOCAL.
28653 * doc/tm.texi: Regenerated.
28654
28655 PR tree-optimization/94130
28656 * tree-ssa-dse.c: Include gimplify.h.
28657 (increment_start_addr): If stmt has lhs, drop the lhs from call and
28658 set it after the call to the original value of the first argument.
28659 Formatting fixes.
28660 (decrement_count): Formatting fix.
28661
28662 2020-03-11 Delia Burduv <delia.burduv@arm.com>
28663
28664 * config/arm/arm-builtins.c
28665 (arm_init_simd_builtin_scalar_types): New.
28666 * config/arm/arm_neon.h (vld2_bf16): Used new builtin type.
28667 (vld2q_bf16): Used new builtin type.
28668 (vld3_bf16): Used new builtin type.
28669 (vld3q_bf16): Used new builtin type.
28670 (vld4_bf16): Used new builtin type.
28671 (vld4q_bf16): Used new builtin type.
28672 (vld2_dup_bf16): Used new builtin type.
28673 (vld2q_dup_bf16): Used new builtin type.
28674 (vld3_dup_bf16): Used new builtin type.
28675 (vld3q_dup_bf16): Used new builtin type.
28676 (vld4_dup_bf16): Used new builtin type.
28677 (vld4q_dup_bf16): Used new builtin type.
28678
28679 2020-03-11 Jakub Jelinek <jakub@redhat.com>
28680
28681 PR target/94134
28682 * config/pdp11/pdp11.c (pdp11_asm_output_var): Call switch_to_section
28683 at the start to switch to data section. Don't print extra newline if
28684 .globl directive has not been emitted.
28685
28686 2020-03-11 Richard Biener <rguenther@suse.de>
28687
28688 * match.pd ((T *)(ptr - ptr-cst) -> &MEM[ptr + -ptr-cst]):
28689 New pattern.
28690
28691 2020-03-11 Eric Botcazou <ebotcazou@adacore.com>
28692
28693 PR middle-end/93961
28694 * tree.c (variably_modified_type_p) <RECORD_TYPE>: Recurse into fields
28695 whose type is a qualified union.
28696
28697 2020-03-11 Jakub Jelinek <jakub@redhat.com>
28698
28699 PR target/94121
28700 * config/aarch64/aarch64.c (aarch64_add_offset_1): Use absu_hwi
28701 instead of abs_hwi, change moffset type to unsigned HOST_WIDE_INT.
28702
28703 PR bootstrap/93962
28704 * value-prof.c (dump_histogram_value): Use abs_hwi instead of
28705 std::abs.
28706 (get_nth_most_common_value): Use abs_hwi instead of abs.
28707
28708 PR middle-end/94111
28709 * dfp.c (decimal_to_binary): Only use decimal128ToString if from->cl
28710 is rvc_normal, otherwise use real_to_decimal to print the number to
28711 string.
28712
28713 PR tree-optimization/94114
28714 * tree-loop-distribution.c (generate_memset_builtin): Call
28715 rewrite_to_non_trapping_overflow even on mem.
28716 (generate_memcpy_builtin): Call rewrite_to_non_trapping_overflow even
28717 on dest and src.
28718
28719 2020-03-10 Jeff Law <law@redhat.com>
28720
28721 * config/bfin/bfin.md (movsi_insv): Add length attribute.
28722
28723 2020-03-10 Jiufu Guo <guojiufu@linux.ibm.com>
28724
28725 PR target/93709
28726 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): Check
28727 NAN and SIGNED_ZEROR for smax/smin.
28728
28729 2020-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
28730
28731 PR target/90763
28732 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
28733 clause to handle P9V_BUILTIN_VEC_LXVL with const arguments.
28734
28735 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
28736
28737 * loop-iv.c (find_simple_exit): Make it static.
28738 * cfgloop.h: Remove the corresponding prototype.
28739
28740 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
28741
28742 * ddg.c (create_ddg): Fix intendation.
28743 (set_recurrence_length): Likewise.
28744 (create_ddg_all_sccs): Likewise.
28745
28746 2020-03-10 Jakub Jelinek <jakub@redhat.com>
28747
28748 PR target/94088
28749 * config/i386/i386.md (*testqi_ext_3): Call ix86_match_ccmode with
28750 CCZmode instead of CCNOmode if operands[2] has DImode and pos + len
28751 is 32.
28752
28753 2020-03-09 Jason Merrill <jason@redhat.com>
28754
28755 * gdbinit.in (pgs): Fix typo in documentation.
28756
28757 2020-03-09 Vladimir Makarov <vmakarov@redhat.com>
28758
28759 Revert:
28760
28761 2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
28762
28763 PR rtl-optimization/93564
28764 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
28765 do not honor reg alloc order.
28766
28767 2020-03-09 Andrew Pinski <apinski@marvell.com>
28768
28769 PR inline-asm/94095
28770 * doc/extend.texi (x86 Operand Modifiers): Fix column
28771 for 'A' modifier.
28772
28773 2020-03-09 Martin Liska <mliska@suse.cz>
28774
28775 PR target/93800
28776 * config/rs6000/rs6000.c (rs6000_option_override_internal):
28777 Remove set of str_align_loops and str_align_jumps as these
28778 should be set in previous 2 conditions in the function.
28779
28780 2020-03-09 Jakub Jelinek <jakub@redhat.com>
28781
28782 PR rtl-optimization/94045
28783 * params.opt (-param=max-find-base-term-values=): New option.
28784 * alias.c (find_base_term): Add cut-off for number of visited VALUEs
28785 in a single toplevel find_base_term call.
28786
28787 2020-03-06 Wilco Dijkstra <wdijkstr@arm.com>
28788
28789 PR target/91598
28790 * config/aarch64/aarch64-builtins.c (TYPES_TERNOPU_LANE): Add define.
28791 * config/aarch64/aarch64-simd.md
28792 (aarch64_vec_<su>mult_lane<Qlane>): Add new insn for widening lane mul.
28793 (aarch64_vec_<su>mlal_lane<Qlane>): Likewise.
28794 * config/aarch64/aarch64-simd-builtins.def: Add intrinsics.
28795 * config/aarch64/arm_neon.h:
28796 (vmlal_lane_s16): Expand using intrinsics rather than inline asm.
28797 (vmlal_lane_u16): Likewise.
28798 (vmlal_lane_s32): Likewise.
28799 (vmlal_lane_u32): Likewise.
28800 (vmlal_laneq_s16): Likewise.
28801 (vmlal_laneq_u16): Likewise.
28802 (vmlal_laneq_s32): Likewise.
28803 (vmlal_laneq_u32): Likewise.
28804 (vmull_lane_s16): Likewise.
28805 (vmull_lane_u16): Likewise.
28806 (vmull_lane_s32): Likewise.
28807 (vmull_lane_u32): Likewise.
28808 (vmull_laneq_s16): Likewise.
28809 (vmull_laneq_u16): Likewise.
28810 (vmull_laneq_s32): Likewise.
28811 (vmull_laneq_u32): Likewise.
28812 * config/aarch64/iterators.md (Vcondtype): New iterator for lane mul.
28813 (Qlane): Likewise.
28814
28815 2020-03-06 Wilco Dijkstra <wdijkstr@arm.com>
28816
28817 * aarch64/aarch64-simd.md (aarch64_mla_elt<mode>): Correct lane syntax.
28818 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
28819 (aarch64_mls_elt<mode>): Likewise.
28820 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
28821 (aarch64_fma4_elt<mode>): Likewise.
28822 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
28823 (aarch64_fma4_elt_to_64v2df): Likewise.
28824 (aarch64_fnma4_elt<mode>): Likewise.
28825 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
28826 (aarch64_fnma4_elt_to_64v2df): Likewise.
28827
28828 2020-03-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28829
28830 * config/aarch64/aarch64-sve2.md (@aarch64_sve_<sve_int_op><mode>:
28831 Specify movprfx attribute.
28832 (@aarch64_sve_<sve_int_op>_lane_<mode>): Likewise.
28833
28834 2020-03-06 David Edelsohn <dje.gcc@gmail.com>
28835
28836 PR target/94065
28837 * config/rs6000/aix61.h (TARGET_NO_SUM_IN_TOC): Set to 1 for
28838 cmodel=large.
28839 (TARGET_NO_FP_IN_TOC): Same.
28840 * config/rs6000/aix71.h: Same.
28841 * config/rs6000/aix72.h: Same.
28842
28843 2020-03-06 Andrew Pinski <apinski@marvell.com>
28844 Jeff Law <law@redhat.com>
28845
28846 PR rtl-optimization/93996
28847 * haifa-sched.c (remove_notes): Be more careful when adding
28848 REG_SAVE_NOTE.
28849
28850 2020-03-06 Delia Burduv <delia.burduv@arm.com>
28851
28852 * config/arm/arm_neon.h (vld2_bf16): New.
28853 (vld2q_bf16): New.
28854 (vld3_bf16): New.
28855 (vld3q_bf16): New.
28856 (vld4_bf16): New.
28857 (vld4q_bf16): New.
28858 (vld2_dup_bf16): New.
28859 (vld2q_dup_bf16): New.
28860 (vld3_dup_bf16): New.
28861 (vld3q_dup_bf16): New.
28862 (vld4_dup_bf16): New.
28863 (vld4q_dup_bf16): New.
28864 * config/arm/arm_neon_builtins.def
28865 (vld2): Changed to VAR13 and added v4bf, v8bf
28866 (vld2_dup): Changed to VAR8 and added v4bf, v8bf
28867 (vld3): Changed to VAR13 and added v4bf, v8bf
28868 (vld3_dup): Changed to VAR8 and added v4bf, v8bf
28869 (vld4): Changed to VAR13 and added v4bf, v8bf
28870 (vld4_dup): Changed to VAR8 and added v4bf, v8bf
28871 * config/arm/iterators.md (VDXBF2): New iterator.
28872 *config/arm/neon.md (neon_vld2): Use new iterators.
28873 (neon_vld2_dup<mode): Use new iterators.
28874 (neon_vld3<mode>): Likewise.
28875 (neon_vld3qa<mode>): Likewise.
28876 (neon_vld3qb<mode>): Likewise.
28877 (neon_vld3_dup<mode>): Likewise.
28878 (neon_vld4<mode>): Likewise.
28879 (neon_vld4qa<mode>): Likewise.
28880 (neon_vld4qb<mode>): Likewise.
28881 (neon_vld4_dup<mode>): Likewise.
28882 (neon_vld2_dupv8bf): New.
28883 (neon_vld3_dupv8bf): Likewise.
28884 (neon_vld4_dupv8bf): Likewise.
28885
28886 2020-03-06 Delia Burduv <delia.burduv@arm.com>
28887
28888 * config/arm/arm_neon.h (bfloat16x4x2_t): New typedef.
28889 (bfloat16x8x2_t): New typedef.
28890 (bfloat16x4x3_t): New typedef.
28891 (bfloat16x8x3_t): New typedef.
28892 (bfloat16x4x4_t): New typedef.
28893 (bfloat16x8x4_t): New typedef.
28894 (vst2_bf16): New.
28895 (vst2q_bf16): New.
28896 (vst3_bf16): New.
28897 (vst3q_bf16): New.
28898 (vst4_bf16): New.
28899 (vst4q_bf16): New.
28900 * config/arm/arm-builtins.c (v2bf_UP): Define.
28901 (VAR13): New.
28902 (arm_init_simd_builtin_types): Init Bfloat16x2_t eltype.
28903 * config/arm/arm-modes.def (V2BF): New mode.
28904 * config/arm/arm-simd-builtin-types.def
28905 (Bfloat16x2_t): New entry.
28906 * config/arm/arm_neon_builtins.def
28907 (vst2): Changed to VAR13 and added v4bf, v8bf
28908 (vst3): Changed to VAR13 and added v4bf, v8bf
28909 (vst4): Changed to VAR13 and added v4bf, v8bf
28910 * config/arm/iterators.md (VDXBF): New iterator.
28911 (VQ2BF): New iterator.
28912 *config/arm/neon.md (neon_vst2<mode>): Used new iterators.
28913 (neon_vst2<mode>): Used new iterators.
28914 (neon_vst3<mode>): Used new iterators.
28915 (neon_vst3<mode>): Used new iterators.
28916 (neon_vst3qa<mode>): Used new iterators.
28917 (neon_vst3qb<mode>): Used new iterators.
28918 (neon_vst4<mode>): Used new iterators.
28919 (neon_vst4<mode>): Used new iterators.
28920 (neon_vst4qa<mode>): Used new iterators.
28921 (neon_vst4qb<mode>): Used new iterators.
28922
28923 2020-03-06 Delia Burduv <delia.burduv@arm.com>
28924
28925 * config/aarch64/aarch64-simd-builtins.def
28926 (bfcvtn): New built-in function.
28927 (bfcvtn_q): New built-in function.
28928 (bfcvtn2): New built-in function.
28929 (bfcvt): New built-in function.
28930 * config/aarch64/aarch64-simd.md
28931 (aarch64_bfcvtn<q><mode>): New pattern.
28932 (aarch64_bfcvtn2v8bf): New pattern.
28933 (aarch64_bfcvtbf): New pattern.
28934 * config/aarch64/arm_bf16.h (float32_t): New typedef.
28935 (vcvth_bf16_f32): New intrinsic.
28936 * config/aarch64/arm_bf16.h (vcvt_bf16_f32): New intrinsic.
28937 (vcvtq_low_bf16_f32): New intrinsic.
28938 (vcvtq_high_bf16_f32): New intrinsic.
28939 * config/aarch64/iterators.md (V4SF_TO_BF): New mode iterator.
28940 (UNSPEC_BFCVTN): New UNSPEC.
28941 (UNSPEC_BFCVTN2): New UNSPEC.
28942 (UNSPEC_BFCVT): New UNSPEC.
28943 * config/arm/types.md (bf_cvt): New type.
28944
28945 2020-03-06 Andreas Krebbel <krebbel@linux.ibm.com>
28946
28947 * config/s390/s390.md ("tabort"): Get rid of two consecutive
28948 blanks in format string.
28949
28950 2020-03-05 H.J. Lu <hongjiu.lu@intel.com>
28951
28952 PR target/89229
28953 PR target/89346
28954 * config/i386/i386-protos.h (ix86_output_ssemov): New prototype.
28955 * config/i386/i386.c (ix86_get_ssemov): New function.
28956 (ix86_output_ssemov): Likewise.
28957 * config/i386/sse.md (VMOVE:mov<mode>_internal): Call
28958 ix86_output_ssemov for TYPE_SSEMOV. Remove TARGET_AVX512VL
28959 check.
28960 (*movxi_internal_avx512f): Call ix86_output_ssemov for TYPE_SSEMOV.
28961 (*movoi_internal_avx): Call ix86_output_ssemov for TYPE_SSEMOV.
28962 Remove ext_sse_reg_operand and TARGET_AVX512VL check.
28963 (*movti_internal): Likewise.
28964 (*movtf_internal): Call ix86_output_ssemov for TYPE_SSEMOV.
28965
28966 2020-03-05 Jeff Law <law@redhat.com>
28967
28968 PR tree-optimization/91890
28969 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Remove LOC argument.
28970 Use gimple_or_expr_nonartificial_location.
28971 (check_bounds_overlap): Drop LOC argument to maybe_diag_access_bounds.
28972 Use gimple_or_expr_nonartificial_location.
28973 * gimple.c (gimple_or_expr_nonartificial_location): New function.
28974 * gimple.h (gimple_or_expr_nonartificial_location): Declare it.
28975 * tree-ssa-strlen.c (maybe_warn_overflow): Use
28976 gimple_or_expr_nonartificial_location.
28977 (maybe_diag_stxncpy_trunc, handle_builtin_stxncpy_strncat): Likewise.
28978 (maybe_warn_pointless_strcmp): Likewise.
28979
28980 2020-03-05 Jakub Jelinek <jakub@redhat.com>
28981
28982 PR target/94046
28983 * config/i386/avx2intrin.h (_mm_mask_i32gather_ps): Fix first cast of
28984 SRC and MASK arguments to __m128 from __m128d.
28985 (_mm256_mask_i32gather_ps): Fix first cast of MASK argument to __m256
28986 from __m256d.
28987 (_mm_mask_i64gather_ps): Fix first cast of MASK argument to __m128
28988 from __m128d.
28989 * config/i386/xopintrin.h (_mm_permute2_pd): Fix first cast of C
28990 argument to __m128i from __m128d.
28991 (_mm256_permute2_pd): Fix first cast of C argument to __m256i from
28992 __m256d.
28993 (_mm_permute2_ps): Fix first cast of C argument to __m128i from __m128.
28994 (_mm256_permute2_ps): Fix first cast of C argument to __m256i from
28995 __m256.
28996
28997 2020-03-05 Delia Burduv <delia.burduv@arm.com>
28998
28999 * config/arm/arm_neon.h (vbfmmlaq_f32): New.
29000 (vbfmlalbq_f32): New.
29001 (vbfmlaltq_f32): New.
29002 (vbfmlalbq_lane_f32): New.
29003 (vbfmlaltq_lane_f32): New.
29004 (vbfmlalbq_laneq_f32): New.
29005 (vbfmlaltq_laneq_f32): New.
29006 * config/arm/arm_neon_builtins.def (vmmla): New.
29007 (vfmab): New.
29008 (vfmat): New.
29009 (vfmab_lane): New.
29010 (vfmat_lane): New.
29011 (vfmab_laneq): New.
29012 (vfmat_laneq): New.
29013 * config/arm/iterators.md (BF_MA): New int iterator.
29014 (bt): New int attribute.
29015 (VQXBF): Copy of VQX with V8BF.
29016 * config/arm/neon.md (neon_vmmlav8bf): New insn.
29017 (neon_vfma<bt>v8bf): New insn.
29018 (neon_vfma<bt>_lanev8bf): New insn.
29019 (neon_vfma<bt>_laneqv8bf): New expand.
29020 (neon_vget_high<mode>): Changed iterator to VQXBF.
29021 * config/arm/unspecs.md (UNSPEC_BFMMLA): New UNSPEC.
29022 (UNSPEC_BFMAB): New UNSPEC.
29023 (UNSPEC_BFMAT): New UNSPEC.
29024
29025 2020-03-05 Jakub Jelinek <jakub@redhat.com>
29026
29027 PR middle-end/93399
29028 * tree-pretty-print.h (pretty_print_string): Declare.
29029 * tree-pretty-print.c (pretty_print_string): Remove forward
29030 declaration, no longer static. Change nbytes parameter type
29031 from unsigned to size_t.
29032 * print-rtl.c (print_value) <case CONST_STRING>: Use
29033 pretty_print_string and for shrink way too long strings.
29034
29035 2020-03-05 Richard Biener <rguenther@suse.de>
29036 Jakub Jelinek <jakub@redhat.com>
29037
29038 PR tree-optimization/93582
29039 * tree-ssa-sccvn.c (vn_reference_lookup_3): Treat POINTER_PLUS_EXPR
29040 last operand as signed when looking for memset offset. Formatting
29041 fix.
29042
29043 2020-03-04 Andrew Pinski <apinski@marvell.com>
29044
29045 PR bootstrap/93962
29046 * value-prof.c (dump_histogram_value): Use std::abs.
29047
29048 2020-03-04 Martin Sebor <msebor@redhat.com>
29049
29050 PR tree-optimization/93986
29051 * tree-ssa-strlen.c (maybe_warn_overflow): Convert all wide_int
29052 operands to the same precision widest_int to avoid ICEs.
29053
29054 2020-03-04 Bill Schmidt <wschmidt@linux.ibm.com>
29055
29056 PR target/87560
29057 * rs6000-cpus.def (OTHER_ALTIVEC_MASKS): New #define.
29058 * rs6000.c (rs6000_disable_incompatible_switches): Add table entry
29059 for OPTION_MASK_ALTIVEC.
29060
29061 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
29062
29063 * config.gcc: Include the glibc-stdint.h header for zTPF.
29064
29065 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
29066
29067 * config/s390/s390.c (s390_secondary_memory_needed): Disallow
29068 direct FPR-GPR copies.
29069 (s390_register_info_gprtofpr): Disallow GPR content to be saved in
29070 FPRs.
29071
29072 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
29073
29074 * config/s390/s390.c (s390_emit_prologue): Specify the 2 new
29075 operands to the prologue_tpf expander.
29076 (s390_emit_epilogue): Likewise.
29077 (s390_option_override_internal): Do error checking and setup for
29078 the new options.
29079 * config/s390/tpf.h (TPF_TRACE_PROLOGUE_CHECK)
29080 (TPF_TRACE_EPILOGUE_CHECK, TPF_TRACE_PROLOGUE_TARGET)
29081 (TPF_TRACE_EPILOGUE_TARGET, TPF_TRACE_PROLOGUE_SKIP_TARGET)
29082 (TPF_TRACE_EPILOGUE_SKIP_TARGET): New macro definitions.
29083 * config/s390/tpf.md ("prologue_tpf", "epilogue_tpf"): Add two new
29084 operands for the check flag and the branch target.
29085 * config/s390/tpf.opt ("mtpf-trace-hook-prologue-check")
29086 ("mtpf-trace-hook-prologue-target")
29087 ("mtpf-trace-hook-epilogue-check")
29088 ("mtpf-trace-hook-epilogue-target", "mtpf-trace-skip"): New
29089 options.
29090 * doc/invoke.texi: Document -mtpf-trace-skip option. The other
29091 options are for debugging purposes and will not be documented
29092 here.
29093
29094 2020-03-04 Jakub Jelinek <jakub@redhat.com>
29095
29096 PR debug/93888
29097 * tree-inline.c (copy_decl_to_var): Copy DECL_BY_REFERENCE flag.
29098
29099 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Add offseti
29100 argument. Change pd argument so that it can be modified. Turn
29101 constant non-CONSTRUCTOR store into non-constant if it is too large.
29102 Adjust offset and size of CONSTRUCTOR or non-constant store to avoid
29103 overflows.
29104 (vn_walk_cb_data::vn_walk_cb_data, vn_reference_lookup_3): Adjust
29105 callers.
29106
29107 2020-02-04 Richard Biener <rguenther@suse.de>
29108
29109 PR tree-optimization/93964
29110 * graphite-isl-ast-to-gimple.c
29111 (gcc_expression_from_isl_ast_expr_id): Add intermediate
29112 conversion for pointer to integer converts.
29113 * graphite-scop-detection.c (assign_parameter_index_in_region):
29114 Relax assert.
29115
29116 2020-03-04 Martin Liska <mliska@suse.cz>
29117
29118 PR c/93886
29119 PR c/93887
29120 * doc/invoke.texi: Clarify --help=language and --help=common
29121 interaction.
29122
29123 2020-03-04 Jakub Jelinek <jakub@redhat.com>
29124
29125 PR tree-optimization/94001
29126 * tree-tailcall.c (process_assignment): Before comparing op1 to
29127 *ass_var, verify *ass_var is non-NULL.
29128
29129 2020-03-04 Kito Cheng <kito.cheng@sifive.com>
29130
29131 PR target/93995
29132 * config/riscv/riscv.c (riscv_emit_float_compare): Using NE to compare
29133 the result of IOR.
29134
29135 2020-03-03 Dennis Zhang <dennis.zhang@arm.com>
29136
29137 * config/arm/arm_bf16.h (vcvtah_f32_bf16, vcvth_bf16_f32): New.
29138 * config/arm/arm_neon.h (vcvt_f32_bf16, vcvtq_low_f32_bf16): New.
29139 (vcvtq_high_f32_bf16, vcvt_bf16_f32): New.
29140 (vcvtq_low_bf16_f32, vcvtq_high_bf16_f32): New.
29141 * config/arm/arm_neon_builtins.def (vbfcvt, vbfcvt_high): New entries.
29142 (vbfcvtv4sf, vbfcvtv4sf_high): Likewise.
29143 * config/arm/iterators.md (VBFCVT, VBFCVTM): New mode iterators.
29144 (V_bf_low, V_bf_cvt_m): New mode attributes.
29145 * config/arm/neon.md (neon_vbfcvtv4sf<VBFCVT:mode>): New.
29146 (neon_vbfcvtv4sf_highv8bf, neon_vbfcvtsf): New.
29147 (neon_vbfcvt<VBFCVT:mode>, neon_vbfcvt_highv8bf): New.
29148 (neon_vbfcvtbf_cvtmode<mode>, neon_vbfcvtbf): New
29149 * config/arm/unspecs.md (UNSPEC_BFCVT, UNSPEC_BFCVT_HIG): New.
29150
29151 2020-03-03 Jakub Jelinek <jakub@redhat.com>
29152
29153 PR tree-optimization/93582
29154 * tree-ssa-sccvn.h (vn_reference_lookup): Add mask argument.
29155 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add mask and masked_result
29156 members, initialize them in the constructor and if mask is non-NULL,
29157 artificially push_partial_def {} for the portions of the mask that
29158 contain zeros.
29159 (vn_walk_cb_data::finish): If mask is non-NULL, set masked_result to
29160 val and return (void *)-1. Formatting fix.
29161 (vn_reference_lookup_pieces): Adjust vn_walk_cb_data initialization.
29162 Formatting fix.
29163 (vn_reference_lookup): Add mask argument. If non-NULL, don't call
29164 fully_constant_vn_reference_p nor vn_reference_lookup_1 and return
29165 data.mask_result.
29166 (visit_nary_op): Handle BIT_AND_EXPR of a memory load and INTEGER_CST
29167 mask.
29168 (visit_stmt): Formatting fix.
29169
29170 2020-03-03 Richard Biener <rguenther@suse.de>
29171
29172 PR tree-optimization/93946
29173 * alias.h (refs_same_for_tbaa_p): Declare.
29174 * alias.c (refs_same_for_tbaa_p): New function.
29175 * tree-ssa-alias.c (ao_ref_alias_set): For a NULL ref return
29176 zero.
29177 * tree-ssa-scopedtables.h
29178 (avail_exprs_stack::lookup_avail_expr): Add output argument
29179 giving access to the hashtable entry.
29180 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
29181 Likewise.
29182 * tree-ssa-dom.c: Include alias.h.
29183 (dom_opt_dom_walker::optimize_stmt): Validate TBAA state before
29184 removing redundant store.
29185 * tree-ssa-sccvn.h (vn_reference_s::base_set): New member.
29186 (ao_ref_init_from_vn_reference): Adjust prototype.
29187 (vn_reference_lookup_pieces): Likewise.
29188 (vn_reference_insert_pieces): Likewise.
29189 * tree-ssa-sccvn.c: Track base alias set in addition to alias
29190 set everywhere.
29191 (eliminate_dom_walker::eliminate_stmt): Also check base alias
29192 set when removing redundant stores.
29193 (visit_reference_op_store): Likewise.
29194 * dse.c (record_store): Adjust valdity check for redundant
29195 store removal.
29196
29197 2020-03-03 Jakub Jelinek <jakub@redhat.com>
29198
29199 PR target/26877
29200 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Reorder.
29201
29202 PR rtl-optimization/94002
29203 * explow.c (plus_constant): Punt if cst has VOIDmode and
29204 get_pool_mode is different from mode.
29205
29206 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
29207
29208 * config/arc/arc.c (leigitimate_small_data_address_p): Check if an
29209 address has an offset which fits the scalling constraint for a
29210 load/store operation.
29211 (legitimate_scaled_address_p): Update use
29212 leigitimate_small_data_address_p.
29213 (arc_print_operand): Likewise.
29214 (arc_legitimate_address_p): Likewise.
29215 (legitimate_small_data_address_p): Likewise.
29216
29217 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
29218
29219 * config/arc/arc.md (fmasf4_fpu): Use accl_operand predicate.
29220 (fnmasf4_fpu): Likewise.
29221
29222 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
29223
29224 * config/arc/arc.md (adddi3): Early expand the 64bit operation into
29225 32bit ops.
29226 (subdi3): Likewise.
29227 (adddi3_i): Remove pattern.
29228 (subdi3_i): Likewise.
29229
29230 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
29231
29232 * config/arc/arc.md (eh_return): Add length info.
29233
29234 2020-03-02 David Malcolm <dmalcolm@redhat.com>
29235
29236 * doc/invoke.texi (-fanalyzer-show-duplicate-count): New.
29237
29238 2020-03-02 David Malcolm <dmalcolm@redhat.com>
29239
29240 * doc/invoke.texi (Static Analyzer Options): Add
29241 -Wanalyzer-stale-setjmp-buffer to the list of options enabled
29242 by -fanalyzer.
29243
29244 2020-03-02 Uroš Bizjak <ubizjak@gmail.com>
29245
29246 PR target/93997
29247 * config/i386/i386.md (movstrict<mode>): Allow only
29248 registers with VALID_INT_MODE_P modes.
29249
29250 2020-03-02 Andrew Stubbs <ams@codesourcery.com>
29251
29252 * config/gcn/gcn-valu.md (dpp_move<mode>): New.
29253 (reduc_insn): Use 'U' and 'B' operand codes.
29254 (reduc_<reduc_op>_scal_<mode>): Allow all types.
29255 (reduc_<reduc_op>_scal_v64di): Delete.
29256 (*<reduc_op>_dpp_shr_<mode>): Allow all 1reg types.
29257 (*plus_carry_dpp_shr_v64si): Change to ...
29258 (*plus_carry_dpp_shr_<mode>): ... this and allow all 1reg int types.
29259 (mov_from_lane63_v64di): Change to ...
29260 (mov_from_lane63_<mode>): ... this, and allow all 64-bit modes.
29261 * config/gcn/gcn.c (gcn_expand_dpp_shr_insn): Increase buffer size.
29262 Support UNSPEC_MOV_DPP_SHR output formats.
29263 (gcn_expand_reduc_scalar): Add "use_moves" reductions.
29264 Add "use_extends" reductions.
29265 (print_operand_address): Add 'I' and 'U' codes.
29266 * config/gcn/gcn.md (unspec): Add UNSPEC_MOV_DPP_SHR.
29267
29268 2020-03-02 Martin Liska <mliska@suse.cz>
29269
29270 * lto-wrapper.c: Fix typo in comment about
29271 C++ standard version.
29272
29273 2020-03-01 Martin Sebor <msebor@redhat.com>
29274
29275 PR c++/92721
29276 * calls.c (init_attr_rdwr_indices): Correctly handle attribute.
29277
29278 2020-03-01 Martin Sebor <msebor@redhat.com>
29279
29280 PR middle-end/93829
29281 * tree-ssa-strlen.c (count_nonzero_bytes): Set the size to that
29282 of a pointer in the outermost ADDR_EXPRs.
29283
29284 2020-02-28 Jeff Law <law@redhat.com>
29285
29286 * config/v850/v850.h (STATIC_CHAIN_REGNUM): Change to r19.
29287 * config/v850/v850.c (v850_asm_trampoline_template): Update
29288 accordingly.
29289
29290 2020-02-28 Michael Meissner <meissner@linux.ibm.com>
29291
29292 PR target/93937
29293 * config/rs6000/vsx.md (vsx_extract_<mode>_<VS_scalar>mode_var):
29294 Delete insn.
29295
29296 2020-02-28 Martin Liska <mliska@suse.cz>
29297
29298 PR other/93965
29299 * configure.ac: Improve detection of ld_date by requiring
29300 either two dashes or none.
29301 * configure: Regenerate.
29302
29303 2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
29304
29305 PR rtl-optimization/93564
29306 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
29307 do not honor reg alloc order.
29308
29309 2020-02-27 Joel Hutton <Joel.Hutton@arm.com>
29310
29311 PR target/87612
29312 * config/aarch64/aarch64.c (aarch64_override_options): Fix
29313 misleading warning string.
29314
29315 2020-02-27 Martin Sebor <msebor@redhat.com>
29316
29317 * doc/invoke.texi (-Wbuiltin-declaration-mismatch): Fix a typo.
29318
29319 2020-02-27 Michael Meissner <meissner@linux.ibm.com>
29320
29321 PR target/93932
29322 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
29323 Split the insn into two parts. This insn only does variable
29324 extract from a register.
29325 (vsx_extract_<mode>_var_load, VSX_D iterator): New insn, do
29326 variable extract from memory.
29327 (vsx_extract_v4sf_var): Split the insn into two parts. This insn
29328 only does variable extract from a register.
29329 (vsx_extract_v4sf_var_load): New insn, do variable extract from
29330 memory.
29331 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Split the insn
29332 into two parts. This insn only does variable extract from a
29333 register.
29334 (vsx_extract_<mode>_var_load, VSX_EXTRACT_I iterator): New insn,
29335 do variable extract from memory.
29336
29337 2020-02-27 Martin Jambor <mjambor@suse.cz>
29338 Feng Xue <fxue@os.amperecomputing.com>
29339
29340 PR ipa/93707
29341 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): Replaced with
29342 new function calls_same_node_or_its_all_contexts_clone_p.
29343 (cgraph_edge_brings_value_p): Use it.
29344 (cgraph_edge_brings_value_p): Likewise.
29345 (self_recursive_pass_through_p): Return false if caller is a clone.
29346 (self_recursive_agg_pass_through_p): Likewise.
29347
29348 2020-02-27 Jan Hubicka <hubicka@ucw.cz>
29349
29350 PR middle-end/92152
29351 * alias.c (ends_tbaa_access_path_p): Break out from ...
29352 (component_uses_parent_alias_set_from): ... here.
29353 * alias.h (ends_tbaa_access_path_p): Declare.
29354 * tree-ssa-alias.c (access_path_may_continue_p): Break out from ...;
29355 handle trailing arrays past end of tbaa access path.
29356 (aliasing_component_refs_p): ... here; likewise.
29357 (nonoverlapping_refs_since_match_p): Track TBAA segment of the access
29358 path; disambiguate also past end of it.
29359 (nonoverlapping_component_refs_p): Use only TBAA segment of the access
29360 path.
29361
29362 2020-02-27 Mihail Ionescu <mihail.ionescu@arm.com>
29363
29364 * (__ARM_NUM_LANES, __arm_lane, __arm_lane_q): Move to the
29365 beginning of the file.
29366 (vcreate_bf16, vcombine_bf16): New.
29367 (vdup_n_bf16, vdupq_n_bf16): New.
29368 (vdup_lane_bf16, vdup_laneq_bf16): New.
29369 (vdupq_lane_bf16, vdupq_laneq_bf16): New.
29370 (vduph_lane_bf16, vduph_laneq_bf16): New.
29371 (vset_lane_bf16, vsetq_lane_bf16): New.
29372 (vget_lane_bf16, vgetq_lane_bf16): New.
29373 (vget_high_bf16, vget_low_bf16): New.
29374 (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
29375 (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
29376 (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
29377 (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
29378 (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
29379 (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
29380 (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
29381 (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
29382 (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
29383 (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
29384 (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New.
29385 (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
29386 (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
29387 (vreinterpretq_bf16_p128): New.
29388 (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
29389 (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
29390 (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
29391 (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
29392 (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
29393 (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
29394 (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
29395 (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
29396 (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
29397 (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
29398 (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
29399 (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
29400 (vreinterpretq_p128_bf16): New.
29401 * config/arm/arm_neon_builtins.def (VDX): Add V4BF.
29402 (V_elem): Likewise.
29403 (V_elem_l): Likewise.
29404 (VD_LANE): Likewise.
29405 (VQX) Add V8BF.
29406 (V_DOUBLE): Likewise.
29407 (VDQX): Add V4BF and V8BF.
29408 (V_two_elem, V_three_elem, V_four_elem): Likewise.
29409 (V_reg): Likewise.
29410 (V_HALF): Likewise.
29411 (V_double_vector_mode): Likewise.
29412 (V_cmp_result): Likewise.
29413 (V_uf_sclr): Likewise.
29414 (V_sz_elem): Likewise.
29415 (Is_d_reg): Likewise.
29416 (V_mode_nunits): Likewise.
29417 * config/arm/neon.md (neon_vdup_lane): Enable for BFloat16.
29418
29419 2020-02-27 Andrew Stubbs <ams@codesourcery.com>
29420
29421 * config/gcn/gcn-valu.md (VEC_SUBDWORD_MODE): New mode iterator.
29422 (<expander><mode>2<exec>): Change modes to VEC_ALL1REG_INT_MODE.
29423 (<expander><mode>3<exec>): Likewise.
29424 (<expander><mode>3): New.
29425 (v<expander><mode>3): New.
29426 (<expander><mode>3): New.
29427 (<expander><mode>3<exec>): Rename to ...
29428 (<expander>v64si3<exec>): ... this, and change modes to V64SI.
29429 * config/gcn/gcn.md (mnemonic): Use '%B' for not.
29430
29431 2020-02-27 Alexandre Oliva <oliva@adacore.com>
29432
29433 * config/vx-common.h (NO_DOLLAR_IN_LABEL, NO_DOT_IN_LABEL): Leave
29434 them alone on vx7.
29435
29436 2020-02-27 Richard Biener <rguenther@suse.de>
29437
29438 PR tree-optimization/93508
29439 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle _CHK like
29440 non-_CHK variants. Valueize their length arguments.
29441
29442 2020-02-27 Richard Biener <rguenther@suse.de>
29443
29444 PR tree-optimization/93953
29445 * tree-vect-slp.c (slp_copy_subtree): Avoid keeping a reference
29446 to the hash-map entry.
29447
29448 2020-02-27 Andrew Stubbs <ams@codesourcery.com>
29449
29450 * config/gcn/gcn.md (mov<mode>): Add transformations for BI subregs.
29451
29452 2020-02-27 Mark Williams <mwilliams@fb.com>
29453
29454 * dwarf2out.c (file_name_acquire): Call remap_debug_filename.
29455 * lto-opts.c (lto_write_options): Drop -fdebug-prefix-map,
29456 -ffile-prefix-map and -fmacro-prefix-map.
29457 * lto-streamer-out.c: Include file-prefix-map.h.
29458 (lto_output_location): Remap the file part of locations.
29459
29460 2020-02-27 Jakub Jelinek <jakub@redhat.com>
29461
29462 PR c/93949
29463 * gimplify.c (gimplify_init_constructor): Don't promote readonly
29464 DECL_REGISTER variables to TREE_STATIC.
29465
29466 PR tree-optimization/93582
29467 PR tree-optimization/93945
29468 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle memset with
29469 non-zero INTEGER_CST second argument and ref->offset or ref->size
29470 not a multiple of BITS_PER_UNIT.
29471
29472 2020-02-27 Jonathan Wakely <jwakely@redhat.com>
29473
29474 * doc/install.texi (Binaries): Update description of BullFreeware.
29475
29476 2020-02-26 Sandra Loosemore <sandra@codesourcery.com>
29477
29478 PR c++/90467
29479
29480 * doc/invoke.texi (Option Summary): Re-alphabetize warnings in
29481 C++ Language Options, Warning Options, and Static Analyzer
29482 Options lists. Document negative form of options enabled by
29483 default. Move some things around to more accurately sort
29484 warnings by category.
29485 (C++ Dialect Options, Warning Options, Static Analyzer
29486 Options): Document negative form of options when enabled by
29487 default. Move some things around to more accurately sort
29488 warnings by category. Add some missing index entries.
29489 Light copy-editing.
29490
29491 2020-02-26 Carl Love <cel@us.ibm.com>
29492
29493 PR target/91276
29494 * doc/extend.texi (PowerPC AltiVec Built-in Functions available on
29495 ISA 2.07): The builtin-function name __builtin_crypto_vpmsumb is only
29496 for the vector unsigned short arguments. It is also listed as the
29497 name of the built-in for arguments vector unsigned short,
29498 vector unsigned int and vector unsigned long long built-ins. The
29499 name of the builtins for these arguments should be:
29500 __builtin_crypto_vpmsumh, __builtin_crypto_vpmsumw and
29501 __builtin_crypto_vpmsumd respectively.
29502
29503 2020-02-26 Richard Biener <rguenther@suse.de>
29504
29505 * tree-vect-slp.c (vect_print_slp_tree): Also dump ref count
29506 and load permutation.
29507
29508 2020-02-26 Richard Sandiford <richard.sandiford@arm.com>
29509
29510 PR middle-end/93843
29511 * optabs-tree.c (supportable_convert_operation): Reject types with
29512 scalar modes.
29513
29514 2020-02-26 David Malcolm <dmalcolm@redhat.com>
29515
29516 * Makefile.in (ANALYZER_OBJS): Add analyzer/bar-chart.o.
29517
29518 2020-02-26 Jakub Jelinek <jakub@redhat.com>
29519
29520 PR tree-optimization/93820
29521 * gimple-ssa-store-merging.c (check_no_overlap): Change RHS_CODE
29522 argument to ALL_INTEGER_CST_P boolean.
29523 (imm_store_chain_info::try_coalesce_bswap): Adjust caller.
29524 (imm_store_chain_info::coalesce_immediate_stores): Likewise. Handle
29525 adjacent INTEGER_CST store into merged_store->only_constants like
29526 overlapping one.
29527
29528 2020-02-25 Jakub Jelinek <jakub@redhat.com>
29529
29530 PR other/93912
29531 * config/sh/sh.c (expand_cbranchdi4): Fix comment typo, probablity
29532 -> probability.
29533 * cfghooks.c (verify_flow_info): Likewise.
29534 * predict.c (combine_predictions_for_bb): Likewise.
29535 * bb-reorder.c (connect_better_edge_p): Likewise. Fix comment typo,
29536 sucessor -> successor.
29537 (find_traces_1_round): Fix comment typo, destinarion -> destination.
29538 * omp-expand.c (expand_oacc_for): Fix comment typo, sucessors ->
29539 successors.
29540 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Fix dump
29541 message typo, sucessors -> successors.
29542
29543 2020-02-25 Martin Sebor <msebor@redhat.com>
29544
29545 * doc/extend.texi (attribute access): Correct an example.
29546
29547 2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
29548
29549 * config/aarch64/aarch64-builtins.c (aarch64_scalar_builtin_types):
29550 Add simd_bf.
29551 (aarch64_init_simd_builtin_scalar_types): Register simd_bf.
29552 (VAR15, VAR16): New.
29553 * config/aarch64/iterators.md (VALLDIF): Enable for V4BF and V8BF.
29554 (VD): Enable for V4BF.
29555 (VDC): Likewise.
29556 (VQ): Enable for V8BF.
29557 (VQ2): Likewise.
29558 (VQ_NO2E): Likewise.
29559 (VDBL, Vdbl): Add V4BF.
29560 (V_INT_EQUIV, v_int_equiv): Add V4BF and V8BF.
29561 * config/aarch64/arm_neon.h (bfloat16x4x2_t): New typedef.
29562 (bfloat16x8x2_t): Likewise.
29563 (bfloat16x4x3_t): Likewise.
29564 (bfloat16x8x3_t): Likewise.
29565 (bfloat16x4x4_t): Likewise.
29566 (bfloat16x8x4_t): Likewise.
29567 (vcombine_bf16): New.
29568 (vld1_bf16, vld1_bf16_x2): New.
29569 (vld1_bf16_x3, vld1_bf16_x4): New.
29570 (vld1q_bf16, vld1q_bf16_x2): New.
29571 (vld1q_bf16_x3, vld1q_bf16_x4): New.
29572 (vld1_lane_bf16): New.
29573 (vld1q_lane_bf16): New.
29574 (vld1_dup_bf16): New.
29575 (vld1q_dup_bf16): New.
29576 (vld2_bf16): New.
29577 (vld2q_bf16): New.
29578 (vld2_dup_bf16): New.
29579 (vld2q_dup_bf16): New.
29580 (vld3_bf16): New.
29581 (vld3q_bf16): New.
29582 (vld3_dup_bf16): New.
29583 (vld3q_dup_bf16): New.
29584 (vld4_bf16): New.
29585 (vld4q_bf16): New.
29586 (vld4_dup_bf16): New.
29587 (vld4q_dup_bf16): New.
29588 (vst1_bf16, vst1_bf16_x2): New.
29589 (vst1_bf16_x3, vst1_bf16_x4): New.
29590 (vst1q_bf16, vst1q_bf16_x2): New.
29591 (vst1q_bf16_x3, vst1q_bf16_x4): New.
29592 (vst1_lane_bf16): New.
29593 (vst1q_lane_bf16): New.
29594 (vst2_bf16): New.
29595 (vst2q_bf16): New.
29596 (vst3_bf16): New.
29597 (vst3q_bf16): New.
29598 (vst4_bf16): New.
29599 (vst4q_bf16): New.
29600
29601 2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
29602
29603 * config/aarch64/iterators.md (VDQF_F16) Add V4BF and V8BF.
29604 (VALL_F16): Likewise.
29605 (VALLDI_F16): Likewise.
29606 (Vtype): Likewise.
29607 (Vetype): Likewise.
29608 (vswap_width_name): Likewise.
29609 (VSWAP_WIDTH): Likewise.
29610 (Vel): Likewise.
29611 (VEL): Likewise.
29612 (q): Likewise.
29613 * config/aarch64/arm_neon.h (vset_lane_bf16, vsetq_lane_bf16): New.
29614 (vget_lane_bf16, vgetq_lane_bf16): New.
29615 (vcreate_bf16): New.
29616 (vdup_n_bf16, vdupq_n_bf16): New.
29617 (vdup_lane_bf16, vdup_laneq_bf16): New.
29618 (vdupq_lane_bf16, vdupq_laneq_bf16): New.
29619 (vduph_lane_bf16, vduph_laneq_bf16): New.
29620 (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
29621 (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
29622 (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
29623 (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
29624 (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
29625 (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
29626 (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
29627 (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
29628 (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
29629 (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
29630 (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New
29631 (vreinterpret_bf16_f16, vreinterpretq_bf16_f16): New
29632 (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
29633 (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
29634 (vreinterpretq_bf16_p128): New.
29635 (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
29636 (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
29637 (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
29638 (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
29639 (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
29640 (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
29641 (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
29642 (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
29643 (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
29644 (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
29645 (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
29646 (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
29647 (vreinterpret_f64_bf16,vreinterpretq_f64_bf16): New.
29648 (vreinterpret_f16_bf16,vreinterpretq_f16_bf16): New.
29649 (vreinterpretq_p128_bf16): New.
29650
29651 2020-02-25 Dennis Zhang <dennis.zhang@arm.com>
29652
29653 * config/arm/arm_neon.h (vbfdot_f32, vbfdotq_f32): New
29654 (vbfdot_lane_f32, vbfdotq_laneq_f32): New.
29655 (vbfdot_laneq_f32, vbfdotq_lane_f32): New.
29656 * config/arm/arm_neon_builtins.def (vbfdot): New entry.
29657 (vbfdot_lanev4bf, vbfdot_lanev8bf): Likewise.
29658 * config/arm/iterators.md (VSF2BF): New attribute.
29659 * config/arm/neon.md (neon_vbfdot<VCVTF:mode>): New entry.
29660 (neon_vbfdot_lanev4bf<VCVTF:mode>): Likewise.
29661 (neon_vbfdot_lanev8bf<VCVTF:mode>): Likewise.
29662
29663 2020-02-25 Christophe Lyon <christophe.lyon@linaro.org>
29664
29665 * config/arm/arm.md (required_for_purecode): New attribute.
29666 (enabled): Handle required_for_purecode.
29667 * config/arm/thumb1.md (thumb1_movsi_insn): Add alternative to
29668 work with -mpure-code.
29669
29670 2020-02-25 Jakub Jelinek <jakub@redhat.com>
29671
29672 PR rtl-optimization/93908
29673 * combine.c (find_split_point): For store into ZERO_EXTRACT, and src
29674 with mask.
29675
29676 2019-02-25 Eric Botcazou <ebotcazou@adacore.com>
29677
29678 * dwarf2out.c (dwarf2out_size_function): Run in early-DWARF mode.
29679
29680 2020-02-25 Roman Zhuykov <zhroma@ispras.ru>
29681
29682 * doc/install.texi (--enable-checking): Adjust wording.
29683
29684 2020-02-25 Richard Biener <rguenther@suse.de>
29685
29686 PR tree-optimization/93868
29687 * tree-vect-slp.c (slp_copy_subtree): New function.
29688 (vect_attempt_slp_rearrange_stmts): Copy the SLP tree before
29689 re-arranging stmts in it.
29690
29691 2020-02-25 Jakub Jelinek <jakub@redhat.com>
29692
29693 PR middle-end/93874
29694 * passes.c (pass_manager::dump_passes): Create a cgraph node for the
29695 dummy function and remove it at the end.
29696
29697 PR translation/93864
29698 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Fix comment typo
29699 paramter -> parameter.
29700 * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Likewise.
29701 * ipa-prop.h (struct ipa_agg_replacement_value): Likewise.
29702
29703 2020-02-24 Roman Zhuykov <zhroma@ispras.ru>
29704
29705 * doc/install.texi (--enable-checking): Properly document current
29706 behavior.
29707 (--enable-stage1-checking): Minor clarification about bootstrap.
29708
29709 2020-02-24 David Malcolm <dmalcolm@redhat.com>
29710
29711 PR analyzer/93032
29712 * doc/invoke.texi (-Wnanalyzer-tainted-array-index): Note that
29713 -fanalyzer-checker=taint is also required.
29714 (-fanalyzer-checker=): Note that providing this option enables the
29715 given checker, and doing so may be required for checkers that are
29716 disabled by default.
29717
29718 2020-02-24 David Malcolm <dmalcolm@redhat.com>
29719
29720 * doc/invoke.texi (-fanalyzer-verbosity=): "2" only shows
29721 significant control flow events; add a "3" which shows all
29722 control flow events; the old "3" becomes "4".
29723
29724 2020-02-24 Jakub Jelinek <jakub@redhat.com>
29725
29726 PR tree-optimization/93582
29727 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Consider
29728 pd.offset and pd.size to be counted in bits rather than bytes, add
29729 support for maxsizei that is not a multiple of BITS_PER_UNIT and
29730 handle bitfield stores and loads.
29731 (vn_reference_lookup_3): Don't call ranges_known_overlap_p with
29732 uncomparable quantities - bytes vs. bits. Allow push_partial_def
29733 on offsets/sizes that aren't multiple of BITS_PER_UNIT and adjust
29734 pd.offset/pd.size to be counted in bits rather than bytes.
29735 Formatting fix. Rename shadowed len variable to buflen.
29736
29737 2020-02-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29738 Kugan Vivekandarajah <kugan.vivekanandarajah@linaro.org>
29739
29740 PR driver/47785
29741 * gcc.c (putenv_COLLECT_AS_OPTIONS): New function.
29742 (driver::main): Call putenv_COLLECT_AS_OPTIONS.
29743 * opts-common.c (parse_options_from_collect_gcc_options): New function.
29744 (prepend_xassembler_to_collect_as_options): Likewise.
29745 * opts.h (parse_options_from_collect_gcc_options): Declare prototype.
29746 (prepend_xassembler_to_collect_as_options): Likewise.
29747 * lto-opts.c (lto_write_options): Stream assembler options
29748 in COLLECT_AS_OPTIONS.
29749 * lto-wrapper.c (xassembler_options_error): New static variable.
29750 (get_options_from_collect_gcc_options): Move parsing options code to
29751 parse_options_from_collect_gcc_options and call it.
29752 (merge_and_complain): Validate -Xassembler options.
29753 (append_compiler_options): Handle OPT_Xassembler.
29754 (run_gcc): Append command line -Xassembler options to
29755 collect_gcc_options.
29756 * doc/invoke.texi: Add documentation about using Xassembler
29757 options with LTO.
29758
29759 2020-02-24 Kito Cheng <kito.cheng@sifive.com>
29760
29761 * config/riscv/riscv.c (riscv_emit_float_compare): Change the code gen
29762 for LTGT.
29763 (riscv_rtx_costs): Update cost model for LTGT.
29764
29765 2020-02-23 Vladimir Makarov <vmakarov@redhat.com>
29766
29767 PR rtl-optimization/93564
29768 * ira-color.c (struct update_cost_queue_elem): New member start.
29769 (queue_update_cost, get_next_update_cost): Add new arg start.
29770 (allocnos_conflict_p): New function.
29771 (update_costs_from_allocno): Add new arg conflict_cost_update_p.
29772 Add checking conflicts with allocnos_conflict_p.
29773 (update_costs_from_prefs, restore_costs_from_copies): Adjust
29774 update_costs_from_allocno calls.
29775 (update_conflict_hard_regno_costs): Add checking conflicts with
29776 allocnos_conflict_p. Adjust calls of queue_update_cost and
29777 get_next_update_cost.
29778 (assign_hard_reg): Adjust calls of queue_update_cost. Add
29779 debugging print.
29780 (bucket_allocno_compare_func): Restore previous version.
29781
29782 2020-02-21 John David Anglin <danglin@gcc.gnu.org>
29783
29784 * config/pa/pa.c (pa_function_value): Fix check for word and
29785 double-word size when handling aggregate return values.
29786 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Fix to indicate
29787 that homogeneous SFmode and DFmode aggregates are passed and returned
29788 in general registers.
29789
29790 2020-02-21 Jakub Jelinek <jakub@redhat.com>
29791
29792 PR translation/93759
29793 * opts.c (print_filtered_help): Translate help before appending
29794 messages to it rather than after that.
29795
29796 2020-02-19 Richard Sandiford <richard.sandiford@arm.com>
29797
29798 PR rtl-optimization/PR92989
29799 * lra-lives.c (process_bb_lives): Restore the original order
29800 of the bb liveness update. Call make_hard_regno_dead for each
29801 register clobbered at the start of an EH receiver.
29802
29803 2020-02-18 Feng Xue <fxue@os.amperecomputing.com>
29804
29805 PR ipa/93763
29806 * ipa-cp.c (self_recursively_generated_p): Mark self-dependent value as
29807 self-recursively generated.
29808
29809 2020-02-21 Iain Sandoe <iain@sandoe.co.uk>
29810
29811 PR target/93860
29812 * config/darwin-c.c (pop_field_alignment): Adjust quoting of
29813 error string.
29814
29815 2020-02-21 Mihail Ionescu <mihail.ionescu@arm.com>
29816
29817 * doc/sourcebuild.texi (arm_v8_1m_mve_ok):
29818 Document new target supports option.
29819
29820 2020-02-21 Dennis Zhang <dennis.zhang@arm.com>
29821
29822 * config/arm/arm_neon.h (vmmlaq_s32, vmmlaq_u32, vusmmlaq_s32): New.
29823 * config/arm/arm_neon_builtins.def (smmla, ummla, usmmla): New.
29824 * config/arm/iterators.md (MATMUL): New iterator.
29825 (sup): Add UNSPEC_MATMUL_S, UNSPEC_MATMUL_U, and UNSPEC_MATMUL_US.
29826 (mmla_sfx): New attribute.
29827 * config/arm/neon.md (neon_<sup>mmlav16qi): New.
29828 * config/arm/unspecs.md (UNSPEC_MATMUL_S, UNSPEC_MATMUL_U): New.
29829 (UNSPEC_MATMUL_US): New.
29830
29831 2020-02-21 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29832
29833 * config/arm/arm.md: Prevent scalar shifts from being used when big
29834 endian is enabled.
29835
29836 2020-02-21 Jan Hubicka <hubicka@ucw.cz>
29837 Richard Biener <rguenther@suse.de>
29838
29839 PR tree-optimization/93586
29840 * tree-ssa-alias.c (nonoverlapping_array_refs_p): Finish array walk
29841 after mismatched array refs; do not sure type size information to
29842 recover from unmatched referneces with !flag_strict_aliasing_p.
29843
29844 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
29845
29846 * config/gcn/gcn-valu.md (gather_load<mode>): Rename to ...
29847 (gather_load<mode>v64si): ... this and set operand 2 to V64SI.
29848 (scatter_store<mode>): Rename to ...
29849 (scatter_store<mode>v64si): ... this and set operand 1 to V64SI.
29850 (scatter<mode>_exec): Delete. Move contents ...
29851 (mask_scatter_store<mode>): ... here, and rename that to ...
29852 (mask_gather_load<mode>v64si): ... this. Set operand 2 to V64SI.
29853 Remove mode conversion.
29854 (mask_gather_load<mode>): Rename to ...
29855 (mask_scatter_store<mode>v64si): ... this. Set operand 1 to V64SI.
29856 Remove mode conversion.
29857 * config/gcn/gcn.c (gcn_expand_scaled_offsets): Remove mode conversion.
29858
29859 2020-02-21 Martin Jambor <mjambor@suse.cz>
29860
29861 PR tree-optimization/93845
29862 * tree-sra.c (verify_sra_access_forest): Only test access size of
29863 scalar types.
29864
29865 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
29866
29867 * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align VGPR pairs.
29868 * config/gcn/gcn-valu.md (addv64di3): Remove early-clobber.
29869 (addv64di3_exec): Likewise.
29870 (subv64di3): Likewise.
29871 (subv64di3_exec): Likewise.
29872 (addv64di3_zext): Likewise.
29873 (addv64di3_zext_exec): Likewise.
29874 (addv64di3_zext_dup): Likewise.
29875 (addv64di3_zext_dup_exec): Likewise.
29876 (addv64di3_zext_dup2): Likewise.
29877 (addv64di3_zext_dup2_exec): Likewise.
29878 (addv64di3_sext_dup2): Likewise.
29879 (addv64di3_sext_dup2_exec): Likewise.
29880 (<expander>v64di3): Likewise.
29881 (<expander>v64di3_exec): Likewise.
29882 (*<reduc_op>_dpp_shr_v64di): Likewise.
29883 (*plus_carry_dpp_shr_v64di): Likewise.
29884 * config/gcn/gcn.md (adddi3): Likewise.
29885 (addptrdi3): Likewise.
29886 (<expander>di3): Likewise.
29887
29888 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
29889
29890 * config/gcn/gcn-valu.md (vec_seriesv64di): Use gen_vec_duplicatev64di.
29891
29892 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
29893
29894 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Add SVE
29895 support. Use aarch64_emit_mult instead of emitting multiplication
29896 instructions directly.
29897 * config/aarch64/aarch64-sve.md (sqrt<mode>2, rsqrt<mode>2)
29898 (@aarch64_rsqrte<mode>, @aarch64_rsqrts<mode>): New expanders.
29899
29900 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
29901
29902 * config/aarch64/aarch64.c (aarch64_emit_mult): New function.
29903 (aarch64_emit_approx_div): Add SVE support. Use aarch64_emit_mult
29904 instead of emitting multiplication instructions directly.
29905 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_OPTAB): New iterator.
29906 * config/aarch64/aarch64-sve.md (div<mode>3, @aarch64_frecpe<mode>)
29907 (@aarch64_frecps<mode>): New expanders.
29908
29909 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
29910
29911 * config/aarch64/aarch64-protos.h (AARCH64_APPROX_MODE): Operate
29912 on and produce uint64_ts rather than ints.
29913 (AARCH64_APPROX_NONE, AARCH64_APPROX_ALL): Change to uint64_ts.
29914 (cpu_approx_modes): Change the fields from unsigned int to uint64_t.
29915
29916 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
29917
29918 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Don't create
29919 an unused xmsk register when handling approximate rsqrt.
29920
29921 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
29922
29923 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Fix inverted
29924 flag_finite_math_only condition.
29925
29926 2020-02-20 Uroš Bizjak <ubizjak@gmail.com>
29927
29928 PR target/93828
29929 * config/i386/mmx.md (*vec_extractv2sf_1): Match source operand
29930 to destination operand for shufps alternative.
29931 (*vec_extractv2si_1): Ditto.
29932
29933 2020-02-20 Peter Bergner <bergner@linux.ibm.com>
29934
29935 PR target/93658
29936 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Handle VSX
29937 vector modes.
29938
29939 2020-02-20 Martin Liska <mliska@suse.cz>
29940
29941 PR translation/93831
29942 * config/darwin.c (darwin_override_options): Change 64b to 64-bit mode.
29943
29944 2020-02-20 Martin Liska <mliska@suse.cz>
29945
29946 PR translation/93830
29947 * common/config/avr/avr-common.c: Remote trailing "|".
29948
29949 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
29950
29951 * collect2.c (maybe_run_lto_and_relink): Fix typo in
29952 comment.
29953
29954 2020-02-19 Richard Sandiford <richard.sandiford@arm.com>
29955
29956 PR tree-optimization/93767
29957 * tree-vect-data-refs.c (vect_compile_time_alias): Remove the
29958 access-size bias from the offset calculations for negative strides.
29959
29960 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
29961
29962 * collect2.c (c_file, o_file): Make const again.
29963 (ldout,lderrout, dump_ld_file): Remove.
29964 (tool_cleanup): Avoid calling not signal-safe functions.
29965 (maybe_run_lto_and_relink): Avoid possible signal handler
29966 access to unintialzed memory (lto_o_files).
29967 (main): Avoid leaking temp files in $TMPDIR.
29968 Initialize c_file/o_file with concat, which avoids exposing
29969 uninitialized memory to signal handler, which calls unlink(!).
29970 Avoid calling maybe_unlink when the main function returns,
29971 since the atexit handler is already doing this.
29972 * collect2.h (dump_ld_file, ldout, lderrout): Remove.
29973
29974 2020-02-19 Martin Jambor <mjambor@suse.cz>
29975
29976 PR tree-optimization/93776
29977 * tree-sra.c (create_access): Do not create zero size accesses.
29978 (get_access_for_expr): Do not search for zero sized accesses.
29979
29980 2020-02-19 Martin Jambor <mjambor@suse.cz>
29981
29982 PR tree-optimization/93667
29983 * tree-sra.c (scalarizable_type_p): Return false if record fields
29984 do not follow wach other.
29985
29986 2020-01-21 Kito Cheng <kito.cheng@sifive.com>
29987
29988 * config/riscv/riscv.c (riscv_output_move) Using fmv.x.w/fmv.w.x
29989 rather than fmv.x.s/fmv.s.x.
29990
29991 2020-02-18 James Greenhalgh <james.greenhalgh@arm.com>
29992
29993 * config/aarch64/aarch64-simd-builtins.def
29994 (intrinsic_vec_smult_lo_): New.
29995 (intrinsic_vec_umult_lo_): Likewise.
29996 (vec_widen_smult_hi_): Likewise.
29997 (vec_widen_umult_hi_): Likewise.
29998 * config/aarch64/aarch64-simd.md
29999 (aarch64_intrinsic_vec_<su>mult_lo_<mode>): New.
30000 * config/aarch64/arm_neon.h (vmull_high_s8): Use intrinsics.
30001 (vmull_high_s16): Likewise.
30002 (vmull_high_s32): Likewise.
30003 (vmull_high_u8): Likewise.
30004 (vmull_high_u16): Likewise.
30005 (vmull_high_u32): Likewise.
30006 (vmull_s8): Likewise.
30007 (vmull_s16): Likewise.
30008 (vmull_s32): Likewise.
30009 (vmull_u8): Likewise.
30010 (vmull_u16): Likewise.
30011 (vmull_u32): Likewise.
30012
30013 2020-02-18 Martin Liska <mliska@suse.cz>
30014
30015 * value-prof.c (stream_out_histogram_value): Restore LTO PGO
30016 bootstrap by missing removal of invalid sanity check.
30017
30018 2020-02-18 Martin Liska <mliska@suse.cz>
30019
30020 PR ipa/92518
30021 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
30022 Always compare LHS of gimple_assign.
30023
30024 2020-02-18 Martin Liska <mliska@suse.cz>
30025
30026 PR ipa/93583
30027 * cgraph.c (cgraph_node::verify_node): Verify MALLOC attribute
30028 and return type of functions.
30029 * ipa-param-manipulation.c (ipa_param_adjustments::adjust_decl):
30030 Drop MALLOC attribute for void functions.
30031 * ipa-pure-const.c (funct_state_summary_t::duplicate): Drop
30032 malloc_state for a new VOID clone.
30033
30034 2020-02-18 Martin Liska <mliska@suse.cz>
30035
30036 PR ipa/92924
30037 * common.opt: Add -fprofile-reproducibility.
30038 * doc/invoke.texi: Document it.
30039 * value-prof.c (dump_histogram_value):
30040 Document and support behavior for counters[0]
30041 being a negative value.
30042 (get_nth_most_common_value): Handle negative
30043 counters[0] in respect to flag_profile_reproducible.
30044
30045 2020-02-18 Jakub Jelinek <jakub@redhat.com>
30046
30047 PR ipa/93797
30048 * cgraph.c (verify_speculative_call): Use speculative_id instead of
30049 speculative_uid in messages. Remove trailing whitespace from error
30050 message. Use num_speculative_call_targets instead of
30051 num_speculative_targets in a message.
30052 (cgraph_node::verify_node): Use call_stmt instead of cal_stmt in
30053 edge messages and stmt instead of cal_stmt in reference message.
30054
30055 PR tree-optimization/93780
30056 * tree-ssa.c (non_rewritable_lvalue_p): Check valid_vector_subparts_p
30057 before calling build_vector_type.
30058 (execute_update_addresses_taken): Likewise.
30059
30060 PR driver/93796
30061 * params.opt (-param=ipa-max-switch-predicate-bounds=): Fix help
30062 typo, functoin -> function.
30063 * tree.c (free_lang_data_in_decl): Fix comment typo,
30064 functoin -> function.
30065 * ipa-visibility.c (cgraph_externally_visible_p): Likewise.
30066
30067 2020-02-17 David Malcolm <dmalcolm@redhat.com>
30068
30069 * diagnostic.c (print_any_cwe): Don't call get_cwe_url if URLs
30070 won't be printed.
30071 (print_option_information): Don't call get_option_url if URLs
30072 won't be printed.
30073
30074 2020-02-17 Alexandre Oliva <oliva@adacore.com>
30075
30076 * tree-emutls.c (new_emutls_decl, emutls_common_1): Complete
30077 handling of register_common-less targets.
30078
30079 2020-02-17 Martin Liska <mliska@suse.cz>
30080
30081 PR ipa/93760
30082 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar.
30083
30084 2020-02-17 Martin Liska <mliska@suse.cz>
30085
30086 PR translation/93755
30087 * config/rs6000/rs6000.c (rs6000_option_override_internal):
30088 Fix double quotes.
30089
30090 2020-02-17 Martin Liska <mliska@suse.cz>
30091
30092 PR other/93756
30093 * config/rx/elf.opt: Fix typo.
30094
30095 2020-02-17 Richard Biener <rguenther@suse.de>
30096
30097 PR c/86134
30098 * opts-global.c (print_ignored_options): Use inform and
30099 amend message.
30100
30101 2020-02-17 Jiufu Guo <guojiufu@linux.ibm.com>
30102
30103 PR target/93047
30104 * config/rs6000/rs6000.md (untyped_call): Add emit_clobber.
30105
30106 2020-02-16 Uroš Bizjak <ubizjak@gmail.com>
30107
30108 PR target/93743
30109 * config/i386/i386.md (atan2xf3): Swap operands 1 and 2.
30110 (atan2<mode>3): Update operand order in the call to gen_atan2xf3.
30111
30112 2020-02-15 Jason Merrill <jason@redhat.com>
30113
30114 * doc/invoke.texi (C Dialect Options): Add -std=c++20.
30115
30116 2020-02-15 Jakub Jelinek <jakub@redhat.com>
30117
30118 PR tree-optimization/93744
30119 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0,
30120 A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
30121 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): For GENERIC, make
30122 sure @2 in the first and @1 in the other patterns has no side-effects.
30123
30124 2020-02-15 David Malcolm <dmalcolm@redhat.com>
30125 Bernd Edlinger <bernd.edlinger@hotmail.de>
30126
30127 PR 87488
30128 PR other/93168
30129 * config.in (DIAGNOSTICS_URLS_DEFAULT): New define.
30130 * configure.ac (--with-diagnostics-urls): New configuration
30131 option, based on --with-diagnostics-color.
30132 (DIAGNOSTICS_URLS_DEFAULT): New define.
30133 * config.h: Regenerate.
30134 * configure: Regenerate.
30135 * diagnostic.c (diagnostic_urls_init): Handle -1 for
30136 DIAGNOSTICS_URLS_DEFAULT from configure-time
30137 --with-diagnostics-urls=auto-if-env by querying for a GCC_URLS
30138 and TERM_URLS environment variable.
30139 * diagnostic-url.h (diagnostic_url_format): New enum type.
30140 (diagnostic_urls_enabled_p): rename to...
30141 (determine_url_format): ... this, and change return type.
30142 * diagnostic-color.c (parse_env_vars_for_urls): New helper function.
30143 (auto_enable_urls): Disable URLs on xfce4-terminal, gnome-terminal,
30144 the linux console, and mingw.
30145 (diagnostic_urls_enabled_p): rename to...
30146 (determine_url_format): ... this, and adjust.
30147 * pretty-print.h (pretty_printer::show_urls): rename to...
30148 (pretty_printer::url_format): ... this, and change to enum.
30149 * pretty-print.c (pretty_printer::pretty_printer,
30150 pp_begin_url, pp_end_url, test_urls): Adjust.
30151 * doc/install.texi (--with-diagnostics-urls): Document the new
30152 configuration option.
30153 (--with-diagnostics-color): Document the existing interaction
30154 with GCC_COLORS better.
30155 * doc/invoke.texi (-fdiagnostics-urls): Add GCC_URLS and TERM_URLS
30156 vindex reference. Update description of defaults based on the above.
30157 (-fdiagnostics-color): Update description of how -fdiagnostics-color
30158 interacts with GCC_COLORS.
30159
30160 2020-02-14 Eric Botcazou <ebotcazou@adacore.com>
30161
30162 PR target/93704
30163 * config/sparc/sparc.c (eligible_for_call_delay): Test HAVE_GNU_LD in
30164 conjunction with TARGET_GNU_TLS in early return.
30165
30166 2020-02-14 Alexander Monakov <amonakov@ispras.ru>
30167
30168 * rtlanal.c (rtx_cost): Handle a SET up front. Avoid division if
30169 the mode is not wider than UNITS_PER_WORD.
30170
30171 2020-02-14 Martin Jambor <mjambor@suse.cz>
30172
30173 PR tree-optimization/93516
30174 * tree-sra.c (propagate_subaccesses_from_rhs): Do not create
30175 access of the same type as the parent.
30176 (propagate_subaccesses_from_lhs): Likewise.
30177
30178 2020-02-14 Hongtao Liu <hongtao.liu@intel.com>
30179
30180 PR target/93724
30181 * config/i386/avx512vbmi2intrin.h
30182 (_mm512_shrdi_epi16, _mm512_mask_shrdi_epi16,
30183 _mm512_maskz_shrdi_epi16, _mm512_shrdi_epi32,
30184 _mm512_mask_shrdi_epi32, _mm512_maskz_shrdi_epi32,
30185 _m512_shrdi_epi64, _m512_mask_shrdi_epi64,
30186 _m512_maskz_shrdi_epi64, _mm512_shldi_epi16,
30187 _mm512_mask_shldi_epi16, _mm512_maskz_shldi_epi16,
30188 _mm512_shldi_epi32, _mm512_mask_shldi_epi32,
30189 _mm512_maskz_shldi_epi32, _mm512_shldi_epi64,
30190 _mm512_mask_shldi_epi64, _mm512_maskz_shldi_epi64): Fix typo
30191 of lacking a closing parenthesis.
30192 * config/i386/avx512vbmi2vlintrin.h
30193 (_mm256_shrdi_epi16, _mm256_mask_shrdi_epi16,
30194 _mm256_maskz_shrdi_epi16, _mm256_shrdi_epi32,
30195 _mm256_mask_shrdi_epi32, _mm256_maskz_shrdi_epi32,
30196 _m256_shrdi_epi64, _m256_mask_shrdi_epi64,
30197 _m256_maskz_shrdi_epi64, _mm256_shldi_epi16,
30198 _mm256_mask_shldi_epi16, _mm256_maskz_shldi_epi16,
30199 _mm256_shldi_epi32, _mm256_mask_shldi_epi32,
30200 _mm256_maskz_shldi_epi32, _mm256_shldi_epi64,
30201 _mm256_mask_shldi_epi64, _mm256_maskz_shldi_epi64,
30202 _mm_shrdi_epi16, _mm_mask_shrdi_epi16,
30203 _mm_maskz_shrdi_epi16, _mm_shrdi_epi32,
30204 _mm_mask_shrdi_epi32, _mm_maskz_shrdi_epi32,
30205 _mm_shrdi_epi64, _mm_mask_shrdi_epi64,
30206 _m_maskz_shrdi_epi64, _mm_shldi_epi16,
30207 _mm_mask_shldi_epi16, _mm_maskz_shldi_epi16,
30208 _mm_shldi_epi32, _mm_mask_shldi_epi32,
30209 _mm_maskz_shldi_epi32, _mm_shldi_epi64,
30210 _mm_mask_shldi_epi64, _mm_maskz_shldi_epi64): Ditto.
30211
30212 2020-02-13 H.J. Lu <hongjiu.lu@intel.com>
30213
30214 PR target/93656
30215 * config/i386/i386.c (ix86_trampoline_init): Skip ENDBR32 at
30216 the target function entry.
30217
30218 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
30219
30220 * common/config/arc/arc-common.c (arc_option_optimization_table):
30221 Disable if-conversion step when optimized for size.
30222
30223 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
30224
30225 * config/arc/arc.c (arc_conditional_register_usage): R0-R3 and
30226 R12-R15 are always in ARCOMPACT16_REGS register class.
30227 * config/arc/arc.opt (mq-class): Deprecate.
30228 * config/arc/constraint.md ("q"): Remove dependency on mq-class
30229 option.
30230 * doc/invoke.texi (mq-class): Update text.
30231 * common/config/arc/arc-common.c (arc_option_optimization_table):
30232 Update list.
30233
30234 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
30235
30236 * config/arc/arc.c (arc_insn_cost): New function.
30237 (TARGET_INSN_COST): Define.
30238 * config/arc/arc.md (cost): New attribute.
30239 (add_n): Use arc_nonmemory_operand.
30240 (ashlsi3_insn): Likewise, also update constraints.
30241 (ashrsi3_insn): Likewise.
30242 (rotrsi3): Likewise.
30243 (add_shift): Likewise.
30244 * config/arc/predicates.md (arc_nonmemory_operand): New predicate.
30245
30246 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
30247
30248 * config/arc/arc.md (mulsidi_600): Correctly select mlo/mhi
30249 registers.
30250 (umulsidi_600): Likewise.
30251
30252 2020-02-13 Jakub Jelinek <jakub@redhat.com>
30253
30254 PR target/93696
30255 * config/i386/avx512bitalgintrin.h (_mm512_mask_popcnt_epi8,
30256 _mm512_mask_popcnt_epi16, _mm256_mask_popcnt_epi8,
30257 _mm256_mask_popcnt_epi16, _mm_mask_popcnt_epi8,
30258 _mm_mask_popcnt_epi16): Rename __B argument to __A and __A to __W,
30259 pass __A to the builtin followed by __W instead of __A followed by
30260 __B.
30261 * config/i386/avx512vpopcntdqintrin.h (_mm512_mask_popcnt_epi32,
30262 _mm512_mask_popcnt_epi64): Likewise.
30263 * config/i386/avx512vpopcntdqvlintrin.h (_mm_mask_popcnt_epi32,
30264 _mm256_mask_popcnt_epi32, _mm_mask_popcnt_epi64,
30265 _mm256_mask_popcnt_epi64): Likewise.
30266
30267 PR tree-optimization/93582
30268 * fold-const.h (shift_bytes_in_array_left,
30269 shift_bytes_in_array_right): Declare.
30270 * fold-const.c (shift_bytes_in_array_left,
30271 shift_bytes_in_array_right): New function, moved from
30272 gimple-ssa-store-merging.c, no longer static.
30273 * gimple-ssa-store-merging.c (shift_bytes_in_array): Move
30274 to gimple-ssa-store-merging.c and rename to shift_bytes_in_array_left.
30275 (shift_bytes_in_array_right): Move to gimple-ssa-store-merging.c.
30276 (encode_tree_to_bitpos): Use shift_bytes_in_array_left instead of
30277 shift_bytes_in_array.
30278 (verify_shift_bytes_in_array): Rename to ...
30279 (verify_shift_bytes_in_array_left): ... this. Use
30280 shift_bytes_in_array_left instead of shift_bytes_in_array.
30281 (store_merging_c_tests): Call verify_shift_bytes_in_array_left
30282 instead of verify_shift_bytes_in_array.
30283 * tree-ssa-sccvn.c (vn_reference_lookup_3): For native_encode_expr
30284 / native_interpret_expr where the store covers all needed bits,
30285 punt on PDP-endian, otherwise allow all involved offsets and sizes
30286 not to be byte-aligned.
30287
30288 PR target/93673
30289 * config/i386/sse.md (k<code><mode>): Drop mode from last operand and
30290 use const_0_to_255_operand predicate instead of immediate_operand.
30291 (avx512dq_fpclass<mode><mask_scalar_merge_name>,
30292 avx512dq_vmfpclass<mode><mask_scalar_merge_name>,
30293 vgf2p8affineinvqb_<mode><mask_name>,
30294 vgf2p8affineqb_<mode><mask_name>): Drop mode from
30295 const_0_to_255_operand predicated operands.
30296
30297 2020-02-12 Jeff Law <law@redhat.com>
30298
30299 * config/h8300/h8300.md (comparison shortening peepholes): Use
30300 a mode iterator to merge the HImode and SImode peepholes.
30301
30302 2020-02-12 Jakub Jelinek <jakub@redhat.com>
30303
30304 PR middle-end/93663
30305 * real.c (is_even): Make static. Function comment fix.
30306 (is_halfway_below): Make static, don't assert R is not inf/nan,
30307 instead return false for those. Small formatting fixes.
30308
30309 2020-02-12 Martin Sebor <msebor@redhat.com>
30310
30311 PR middle-end/93646
30312 * tree-ssa-strlen.c (handle_builtin_stxncpy): Rename...
30313 (handle_builtin_stxncpy_strncat): ...to this. Change first argument.
30314 Issue only -Wstringop-overflow strncat, never -Wstringop-truncation.
30315 (strlen_check_and_optimize_call): Adjust callee name.
30316
30317 2020-02-12 Jeff Law <law@redhat.com>
30318
30319 * config/h8300/h8300.md (comparison shortening peepholes): Drop
30320 (and (xor)) variant. Combine other two into single peephole.
30321
30322 2020-02-12 Wilco Dijkstra <wdijkstr@arm.com>
30323
30324 PR rtl-optimization/93565
30325 * config/aarch64/aarch64.c (aarch64_rtx_costs): Add CTZ costs.
30326
30327 2020-02-12 Wilco Dijkstra <wdijkstr@arm.com>
30328
30329 * config/aarch64/aarch64-simd.md
30330 (aarch64_zero_extend<GPI:mode>_reduc_plus_<VDQV_E:mode>): New pattern.
30331 * config/aarch64/aarch64.md (popcount<mode>2): Use it instead of
30332 generating separate ADDV and zero_extend patterns.
30333 * config/aarch64/iterators.md (VDQV_E): New iterator.
30334
30335 2020-02-12 Jeff Law <law@redhat.com>
30336
30337 * config/h8300/h8300.md (cpymemsi, movmd): Remove dead patterns,
30338 expanders, splits, etc.
30339 (movmd_internal_<mode>, movmd splitter, movstr, movsd): Likewise.
30340 (stpcpy_internal_<mode>, stpcpy splitter): Likewise.
30341 (peepholes to convert QI/HI mode pushes to SI mode pushes): Likewise.
30342 * config/h8300/h8300.c (h8300_swap_into_er6): Remove unused function.
30343 (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise
30344 * config/h8300/h8300-protos.h (h8300_swap_into_er6): Remove unused
30345 function prototype.
30346 (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise.
30347
30348 2020-02-12 Jakub Jelinek <jakub@redhat.com>
30349
30350 PR target/93670
30351 * config/i386/sse.md (VI48F_256_DQ): New mode iterator.
30352 (avx512vl_vextractf128<mode>): Use it instead of VI48F_256. Remove
30353 TARGET_AVX512DQ from condition.
30354 (vec_extract_lo_<mode><mask_name>): Use <mask_avx512dq_condition>
30355 instead of <mask_mode512bit_condition> in condition. If
30356 TARGET_AVX512DQ is false, emit vextract*64x4 instead of
30357 vextract*32x8.
30358 (vec_extract_lo_<mode><mask_name>): Drop <mask_avx512dq_condition>
30359 from condition.
30360
30361 2020-02-12 Kewen Lin <linkw@gcc.gnu.org>
30362
30363 PR target/91052
30364 * ira.c (combine_and_move_insns): Skip multiple_sets def_insn.
30365
30366 2020-02-12 Segher Boessenkool <segher@kernel.crashing.org>
30367
30368 * config/rs6000/rs6000.c (rs6000_debug_print_mode): Don't use sizeof
30369 where strlen is more legible.
30370 (rs6000_builtin_vectorized_libmass): Ditto.
30371 (rs6000_print_options_internal): Ditto.
30372
30373 2020-02-11 Martin Sebor <msebor@redhat.com>
30374
30375 PR tree-optimization/93683
30376 * tree-ssa-alias.c (stmt_kills_ref_p): Avoid using LHS when not set.
30377
30378 2020-02-11 Michael Meissner <meissner@linux.ibm.com>
30379
30380 * config/rs6000/predicates.md (cint34_operand): Rename the
30381 -mprefixed-addr option to be -mprefixed.
30382 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Rename
30383 the -mprefixed-addr option to be -mprefixed.
30384 (OTHER_FUTURE_MASKS): Likewise.
30385 (POWERPC_MASKS): Likewise.
30386 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
30387 the -mprefixed-addr option to be -mprefixed. Change error
30388 messages to refer to -mprefixed.
30389 (num_insns_constant_gpr): Rename the -mprefixed-addr option to be
30390 -mprefixed.
30391 (rs6000_legitimate_offset_address_p): Likewise.
30392 (rs6000_mode_dependent_address): Likewise.
30393 (rs6000_opt_masks): Change the spelling of "-mprefixed-addr" to be
30394 "-mprefixed" for target attributes and pragmas.
30395 (address_to_insn_form): Rename the -mprefixed-addr option to be
30396 -mprefixed.
30397 (rs6000_adjust_insn_length): Likewise.
30398 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Rename the
30399 -mprefixed-addr option to be -mprefixed.
30400 (ASM_OUTPUT_OPCODE): Likewise.
30401 * config/rs6000/rs6000.md (prefixed insn attribute): Rename the
30402 -mprefixed-addr option to be -mprefixed.
30403 * config/rs6000/rs6000.opt (-mprefixed): Rename the
30404 -mprefixed-addr option to be prefixed. Change the option from
30405 being undocumented to being documented.
30406 * doc/invoke.texi (RS/6000 and PowerPC Options): Document the
30407 -mprefixed option. Update the -mpcrel documentation to mention
30408 -mprefixed.
30409
30410 2020-02-11 Hans-Peter Nilsson <hp@axis.com>
30411
30412 * ira-conflicts.c (print_hard_reg_set): Correct output for sets
30413 including FIRST_PSEUDO_REGISTER - 1.
30414 * ira-color.c (print_hard_reg_set): Ditto.
30415
30416 2020-02-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
30417
30418 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
30419 (USTERNOP_QUALIFIERS): New define.
30420 (USMAC_LANE_QUADTUP_QUALIFIERS): New define.
30421 (SUMAC_LANE_QUADTUP_QUALIFIERS): New define.
30422 (arm_expand_builtin_args): Add case ARG_BUILTIN_LANE_QUADTUP_INDEX.
30423 (arm_expand_builtin_1): Add qualifier_lane_quadtup_index.
30424 * config/arm/arm_neon.h (vusdot_s32): New.
30425 (vusdot_lane_s32): New.
30426 (vusdotq_lane_s32): New.
30427 (vsudot_lane_s32): New.
30428 (vsudotq_lane_s32): New.
30429 * config/arm/arm_neon_builtins.def (usdot, usdot_lane,sudot_lane): New.
30430 * config/arm/iterators.md (DOTPROD_I8MM): New.
30431 (sup, opsuffix): Add <us/su>.
30432 * config/arm/neon.md (neon_usdot, <us/su>dot_lane: New.
30433 * config/arm/unspecs.md (UNSPEC_DOT_US, UNSPEC_DOT_SU): New.
30434
30435 2020-02-11 Richard Biener <rguenther@suse.de>
30436
30437 PR tree-optimization/93661
30438 PR tree-optimization/93662
30439 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
30440 tree_to_poly_int64.
30441 * tree-sra.c (get_access_for_expr): Likewise.
30442
30443 2020-02-10 Jakub Jelinek <jakub@redhat.com>
30444
30445 PR target/93637
30446 * config/i386/sse.md (VI_256_AVX2): New mode iterator.
30447 (vcond_mask_<mode><sseintvecmodelower>): Use it instead of VI_256.
30448 Change condition from TARGET_AVX2 to TARGET_AVX.
30449
30450 2020-02-10 Iain Sandoe <iain@sandoe.co.uk>
30451
30452 PR other/93641
30453 * config/darwin-c.c (darwin_cfstring_ref_p): Fix up last
30454 argument of strncmp.
30455
30456 2020-02-10 Hans-Peter Nilsson <hp@axis.com>
30457
30458 Try to generate zero-based comparisons.
30459 * config/cris/cris.c (cris_reduce_compare): New function.
30460 * config/cris/cris-protos.h (cris_reduce_compare): Add prototype.
30461 * config/cris/cris.md ("cbranch<mode>4", "cbranchdi4", "cstoredi4")
30462 (cstore<mode>4"): Apply cris_reduce_compare in expanders.
30463
30464 2020-02-10 Richard Earnshaw <rearnsha@arm.com>
30465
30466 PR target/91913
30467 * config/arm/arm.md (movsi_compare0): Allow SP as a source register
30468 in Thumb state and also as a destination in Arm state. Add T16
30469 variants.
30470
30471 2020-02-10 Hans-Peter Nilsson <hp@axis.com>
30472
30473 * md.texi (Define Subst): Match closing paren in example.
30474
30475 2020-02-10 Jakub Jelinek <jakub@redhat.com>
30476
30477 PR target/58218
30478 PR other/93641
30479 * config/i386/i386.c (x86_64_elf_section_type_flags): Fix up last
30480 arguments of strncmp.
30481
30482 2020-02-10 Feng Xue <fxue@os.amperecomputing.com>
30483
30484 PR ipa/93203
30485 * ipa-cp.c (ipcp_lattice::add_value): Add source with same call edge
30486 but different source value.
30487 (adjust_callers_for_value_intersection): New function.
30488 (gather_edges_for_value): Adjust order of callers to let a
30489 non-self-recursive caller be the first element.
30490 (self_recursive_pass_through_p): Add a new parameter "simple", and
30491 check generalized self-recursive pass-through jump function.
30492 (self_recursive_agg_pass_through_p): Likewise.
30493 (find_more_scalar_values_for_callers_subset): Compute value from
30494 pass-through jump function for self-recursive.
30495 (intersect_with_plats): Cleanup previous implementation code for value
30496 itersection with self-recursive call edge.
30497 (intersect_with_agg_replacements): Likewise.
30498 (intersect_aggregates_with_edge): Deduce value from pass-through jump
30499 function for self-recursive call edge. Cleanup previous implementation
30500 code for value intersection with self-recursive call edge.
30501 (decide_whether_version_node): Remove dead callers and adjust order
30502 to let a non-self-recursive caller be the first element.
30503
30504 2020-02-09 Uroš Bizjak <ubizjak@gmail.com>
30505
30506 * recog.c: Move pass_split_before_sched2 code in front of
30507 pass_split_before_regstack.
30508 (pass_data_split_before_sched2): Rename pass to split3 from split4.
30509 (pass_data_split_before_regstack): Rename pass to split4 from split3.
30510 (rest_of_handle_split_before_sched2): Remove.
30511 (pass_split_before_sched2::execute): Unconditionally call
30512 split_all_insns.
30513 (enable_split_before_sched2): New function.
30514 (pass_split_before_sched2::gate): Use enable_split_before_sched2.
30515 (pass_split_before_regstack::gate): Ditto.
30516 * config/nds32/nds32.c (nds32_split_double_word_load_store_p):
30517 Update name check for renamed split4 pass.
30518 * config/sh/sh.c (register_sh_passes): Update pass insertion
30519 point for renamed split4 pass.
30520
30521 2020-02-09 Jakub Jelinek <jakub@redhat.com>
30522
30523 * gimplify.c (gimplify_adjust_omp_clauses_1): Promote
30524 DECL_IN_CONSTANT_POOL variables into "omp declare target" to avoid
30525 copying them around between host and target.
30526
30527 2020-02-08 Andrew Pinski <apinski@marvell.com>
30528
30529 PR target/91927
30530 * config/aarch64/aarch64-simd.md (movmisalign<mode>): Check
30531 STRICT_ALIGNMENT also.
30532
30533 2020-02-08 Jim Wilson <jimw@sifive.com>
30534
30535 PR target/93532
30536 * config/riscv/riscv.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
30537
30538 2020-02-08 Uroš Bizjak <ubizjak@gmail.com>
30539 Jakub Jelinek <jakub@redhat.com>
30540
30541 PR target/65782
30542 * config/i386/i386.h (CALL_USED_REGISTERS): Make
30543 xmm16-xmm31 call-used even in 64-bit ms-abi.
30544
30545 2020-02-07 Dennis Zhang <dennis.zhang@arm.com>
30546
30547 * config/aarch64/aarch64-simd-builtins.def (simd_smmla): New entry.
30548 (simd_ummla, simd_usmmla): Likewise.
30549 * config/aarch64/aarch64-simd.md (aarch64_simd_<sur>mmlav16qi): New.
30550 * config/aarch64/arm_neon.h (vmmlaq_s32, vmmlaq_u32): New.
30551 (vusmmlaq_s32): New.
30552
30553 2020-02-07 Richard Biener <rguenther@suse.de>
30554
30555 PR middle-end/93519
30556 * tree-inline.c (fold_marked_statements): Do a PRE walk,
30557 skipping unreachable regions.
30558 (optimize_inline_calls): Skip folding stmts when we didn't
30559 inline.
30560
30561 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
30562
30563 PR target/85667
30564 * config/i386/i386.c (function_arg_ms_64): Add a type argument.
30565 Don't return aggregates with only SFmode and DFmode in SSE
30566 register.
30567 (ix86_function_arg): Pass arg.type to function_arg_ms_64.
30568
30569 2020-02-07 Jakub Jelinek <jakub@redhat.com>
30570
30571 PR target/93122
30572 * config/rs6000/rs6000-logue.c
30573 (rs6000_emit_probe_stack_range_stack_clash): Always use gen_add3_insn,
30574 if it fails, move rs into end_addr and retry. Add
30575 REG_FRAME_RELATED_EXPR note whenever it returns more than one insn or
30576 the insn pattern doesn't describe well what exactly happens to
30577 dwarf2cfi.c.
30578
30579 PR target/93594
30580 * config/i386/predicates.md (avx_identity_operand): Remove.
30581 * config/i386/sse.md (*avx_vec_concat<mode>_1): Remove.
30582 (avx_<castmode><avxsizesuffix>_<castmode>,
30583 avx512f_<castmode><avxsizesuffix>_256<castmode>): Change patterns to
30584 a VEC_CONCAT of the operand and UNSPEC_CAST.
30585 (avx512f_<castmode><avxsizesuffix>_<castmode>): Change pattern to
30586 a VEC_CONCAT of VEC_CONCAT of the operand and UNSPEC_CAST with
30587 UNSPEC_CAST.
30588
30589 PR target/93611
30590 * config/i386/i386.c (ix86_lea_outperforms): Make sure to clear
30591 recog_data.insn if distance_non_agu_define changed it.
30592
30593 2020-02-06 Michael Meissner <meissner@linux.ibm.com>
30594
30595 PR target/93569
30596 * config/rs6000/rs6000.c (reg_to_non_prefixed): Before ISA 3.0
30597 we only had X-FORM (reg+reg) addressing for vectors. Also before
30598 ISA 3.0, we only had X-FORM addressing for scalars in the
30599 traditional Altivec registers.
30600
30601 2020-02-06 <zhongyunde@huawei.com>
30602 Vladimir Makarov <vmakarov@redhat.com>
30603
30604 PR rtl-optimization/93561
30605 * lra-assigns.c (spill_for): Check that tested hard regno is not out of
30606 hard register range.
30607
30608 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
30609
30610 * config/aarch64/aarch64.md (aarch64_movk<mode>): Add a type
30611 attribute.
30612
30613 2020-02-06 Segher Boessenkool <segher@kernel.crashing.org>
30614
30615 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Handle the case
30616 where the low and the high 32 bits are equal to each other specially,
30617 with an rldimi instruction.
30618
30619 2020-02-06 Mihail Ionescu <mihail.ionescu@arm.com>
30620
30621 * config/arm/arm-cpus.in: Set profile M for armv8.1-m.main.
30622
30623 2020-02-06 Mihail Ionescu <mihail.ionescu@arm.com>
30624
30625 * config/arm/arm-tables.opt: Regenerate.
30626
30627 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
30628
30629 PR target/87763
30630 * config/aarch64/aarch64-protos.h (aarch64_movk_shift): Declare.
30631 * config/aarch64/aarch64.c (aarch64_movk_shift): New function.
30632 * config/aarch64/aarch64.md (aarch64_movk<mode>): New pattern.
30633
30634 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
30635
30636 PR rtl-optimization/87763
30637 * config/aarch64/aarch64.md (*ashiftsi_extvdi_bfiz): New pattern.
30638
30639 2020-02-06 Delia Burduv <delia.burduv@arm.com>
30640
30641 * config/aarch64/aarch64-simd-builtins.def
30642 (bfmlaq): New built-in function.
30643 (bfmlalb): New built-in function.
30644 (bfmlalt): New built-in function.
30645 (bfmlalb_lane): New built-in function.
30646 (bfmlalt_lane): New built-in function.
30647 * config/aarch64/aarch64-simd.md
30648 (aarch64_bfmmlaqv4sf): New pattern.
30649 (aarch64_bfmlal<bt>v4sf): New pattern.
30650 (aarch64_bfmlal<bt>_lane<q>v4sf): New pattern.
30651 * config/aarch64/arm_neon.h (vbfmmlaq_f32): New intrinsic.
30652 (vbfmlalbq_f32): New intrinsic.
30653 (vbfmlaltq_f32): New intrinsic.
30654 (vbfmlalbq_lane_f32): New intrinsic.
30655 (vbfmlaltq_lane_f32): New intrinsic.
30656 (vbfmlalbq_laneq_f32): New intrinsic.
30657 (vbfmlaltq_laneq_f32): New intrinsic.
30658 * config/aarch64/iterators.md (BF_MLA): New int iterator.
30659 (bt): New int attribute.
30660
30661 2020-02-06 Uroš Bizjak <ubizjak@gmail.com>
30662
30663 * config/i386/i386.md (*pushtf): Emit "#" instead of
30664 calling gcc_unreachable in insn output.
30665 (*pushxf): Ditto.
30666 (*pushdf): Ditto.
30667 (*pushsf_rex64): Ditto for alternatives other than 1.
30668 (*pushsf): Ditto for alternatives other than 1.
30669
30670 2020-02-06 Martin Liska <mliska@suse.cz>
30671
30672 PR gcov-profile/91971
30673 PR gcov-profile/93466
30674 * coverage.c (coverage_init): Revert mangling of
30675 path into filename. It can lead to huge filename length.
30676 Creation of subfolders seem more natural.
30677
30678 2020-02-06 Stam Markianos-Wright <stam.markianos-wright@arm.com>
30679
30680 PR target/93300
30681 * config/arm/arm.c (arm_block_arith_comp_libfuncs_for_mode): New.
30682 (arm_init_libfuncs): Add BFmode support to block spurious BF libfuncs.
30683 Use arm_block_arith_comp_libfuncs_for_mode for HFmode.
30684
30685 2020-02-06 Jakub Jelinek <jakub@redhat.com>
30686
30687 PR target/93594
30688 * config/i386/predicates.md (avx_identity_operand): New predicate.
30689 * config/i386/sse.md (*avx_vec_concat<mode>_1): New
30690 define_insn_and_split.
30691
30692 PR libgomp/93515
30693 * omp-low.c (use_pointer_for_field): For nested constructs, also
30694 look for map clauses on target construct.
30695 (scan_omp_1_stmt) <case GIMPLE_OMP_TARGET>: Bump temporarily
30696 taskreg_nesting_level.
30697
30698 PR libgomp/93515
30699 * gimplify.c (gimplify_scan_omp_clauses) <do_notice>: If adding
30700 shared clause, call omp_notice_variable on outer context if any.
30701
30702 2020-02-05 Jason Merrill <jason@redhat.com>
30703
30704 PR c++/92003
30705 * symtab.c (symtab_node::nonzero_address): A DECL_COMDAT decl has
30706 non-zero address even if weak and not yet defined.
30707
30708 2020-02-05 Martin Sebor <msebor@redhat.com>
30709
30710 PR tree-optimization/92765
30711 * gimple-fold.c (get_range_strlen_tree): Handle MEM_REF and PARM_DECL.
30712 * tree-ssa-strlen.c (compute_string_length): Remove.
30713 (determine_min_objsize): Remove.
30714 (get_len_or_size): Add an argument. Call get_range_strlen_dynamic.
30715 Avoid using type size as the upper bound on string length.
30716 (handle_builtin_string_cmp): Add an argument. Adjust.
30717 (strlen_check_and_optimize_call): Pass additional argument to
30718 handle_builtin_string_cmp.
30719
30720 2020-02-05 Uroš Bizjak <ubizjak@gmail.com>
30721
30722 * config/i386/i386.md (*pushdi2_rex64 peephole2): Remove.
30723 (*pushdi2_rex64 peephole2): Unconditionally split after
30724 epilogue_completed.
30725 (*ashl<mode>3_doubleword): Ditto.
30726 (*<shift_insn><mode>3_doubleword): Ditto.
30727
30728 2020-02-05 Michael Meissner <meissner@linux.ibm.com>
30729
30730 PR target/93568
30731 * config/rs6000/rs6000.c (get_vector_offset): Fix
30732
30733 2020-02-05 Andrew Stubbs <ams@codesourcery.com>
30734
30735 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Use / not space.
30736
30737 2020-02-05 David Malcolm <dmalcolm@redhat.com>
30738
30739 * doc/analyzer.texi
30740 (Special Functions for Debugging the Analyzer): Update description
30741 of __analyzer_dump_exploded_nodes.
30742
30743 2020-02-05 Jakub Jelinek <jakub@redhat.com>
30744
30745 PR target/92190
30746 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Only
30747 include sets and not clobbers in the vzeroupper pattern.
30748 * config/i386/sse.md (*avx_vzeroupper): Require in insn condition that
30749 the parallel has 17 (64-bit) or 9 (32-bit) elts.
30750 (*avx_vzeroupper_1): New define_insn_and_split.
30751
30752 PR target/92190
30753 * recog.c (pass_split_after_reload::gate): For STACK_REGS targets,
30754 don't run when !optimize.
30755 (pass_split_before_regstack::gate): For STACK_REGS targets, run even
30756 when !optimize.
30757
30758 2020-02-05 Richard Biener <rguenther@suse.de>
30759
30760 PR middle-end/90648
30761 * genmatch.c (dt_node::gen_kids_1): Emit number of argument
30762 checks before matching calls.
30763
30764 2020-02-05 Jakub Jelinek <jakub@redhat.com>
30765
30766 * tree-ssa-alias.c (aliasing_matching_component_refs_p): Fix up
30767 function comment typo.
30768
30769 PR middle-end/93555
30770 * omp-simd-clone.c (expand_simd_clones): If simd_clone_mangle or
30771 simd_clone_create failed when i == 0, adjust clone->nargs by
30772 clone->inbranch.
30773
30774 2020-02-05 Martin Liska <mliska@suse.cz>
30775
30776 PR c++/92717
30777 * doc/invoke.texi: Document that one should
30778 not combine ASLR and -fpch.
30779
30780 2020-02-04 Richard Biener <rguenther@suse.de>
30781
30782 PR tree-optimization/93538
30783 * match.pd (addr EQ/NE ptr): Amend to handle &ptr->x EQ/NE ptr.
30784
30785 2020-02-04 Richard Biener <rguenther@suse.de>
30786
30787 PR tree-optimization/91123
30788 * tree-ssa-sccvn.c (vn_walk_cb_data::finish): New method.
30789 (vn_walk_cb_data::last_vuse): New member.
30790 (vn_walk_cb_data::saved_operands): Likewsie.
30791 (vn_walk_cb_data::~vn_walk_cb_data): Release saved_operands.
30792 (vn_walk_cb_data::push_partial_def): Use finish.
30793 (vn_reference_lookup_2): Update last_vuse and use finish if
30794 we've saved operands.
30795 (vn_reference_lookup_3): Use finish and update calls to
30796 push_partial_defs everywhere. When translating through
30797 memcpy or aggregate copies save off operands and alias-set.
30798 (eliminate_dom_walker::eliminate_stmt): Restore VN_WALKREWRITE
30799 operation for redundant store removal.
30800
30801 2020-02-04 Richard Biener <rguenther@suse.de>
30802
30803 PR tree-optimization/92819
30804 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
30805 generating more stmts than before.
30806
30807 2020-02-04 Martin Liska <mliska@suse.cz>
30808
30809 * config/arm/arm.c (arm_gen_far_branch): Move the function
30810 outside of selftests.
30811
30812 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
30813
30814 * config/rs6000/rs6000.c (adjust_vec_address_pcrel): New helper
30815 function to adjust PC-relative vector addresses.
30816 (rs6000_adjust_vec_address): Call adjust_vec_address_pcrel to
30817 handle vectors with PC-relative addresses.
30818
30819 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
30820
30821 * config/rs6000/rs6000.c (reg_to_non_prefixed): Add forward
30822 reference.
30823 (hard_reg_and_mode_to_addr_mask): Delete.
30824 (rs6000_adjust_vec_address): If the original vector address
30825 was REG+REG or REG+OFFSET and the element is not zero, do the add
30826 of the elements in the original address before adding the offset
30827 for the vector element. Use address_to_insn_form to validate the
30828 address using the register being loaded, rather than guessing
30829 whether the address is a DS-FORM or DQ-FORM address.
30830
30831 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
30832
30833 * config/rs6000/rs6000.c (get_vector_offset): New helper function
30834 to calculate the offset in memory from the start of a vector of a
30835 particular element. Add code to keep the element number in
30836 bounds if the element number is variable.
30837 (rs6000_adjust_vec_address): Move calculation of offset of the
30838 vector element to get_vector_offset.
30839 (rs6000_split_vec_extract_var): Do not do the initial AND of
30840 element here, move the code to get_vector_offset.
30841
30842 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
30843
30844 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add some
30845 gcc_asserts.
30846
30847 2020-02-03 Segher Boessenkool <segher@kernel.crashing.org>
30848
30849 * config/rs6000/constraints.md: Improve documentation.
30850
30851 2020-02-03 Richard Earnshaw <rearnsha@arm.com>
30852
30853 PR target/93548
30854 * config/arm/t-arm: ($(srcdir)/config/arm/arm-tune.md)
30855 ($(srcdir)/config/arm/arm-tables.opt): Use move-if-change.
30856
30857 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
30858
30859 * config.gcc: Remove "carrizo" support.
30860 * config/gcn/gcn-opts.h (processor_type): Likewise.
30861 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Likewise.
30862 * config/gcn/gcn.opt (gpu_type): Likewise.
30863 * config/gcn/t-omp-device: Likewise.
30864
30865 2020-02-03 Stam Markianos-Wright <stam.markianos-wright@arm.com>
30866
30867 PR target/91816
30868 * config/arm/arm-protos.h: New function arm_gen_far_branch prototype.
30869 * config/arm/arm.c (arm_gen_far_branch): New function
30870 arm_gen_far_branch.
30871 * config/arm/arm.md: Update b<cond> for Thumb2 range checks.
30872
30873 2020-02-03 Julian Brown <julian@codesourcery.com>
30874 Tobias Burnus <tobias@codesourcery.com>
30875
30876 * doc/invoke.texi: Update mention of OpenACC version to 2.6.
30877
30878 2020-02-03 Jakub Jelinek <jakub@redhat.com>
30879
30880 PR target/93533
30881 * config/s390/s390.md (popcounthi2_z196): Fix up expander to emit
30882 valid RTL to sum up the lowest and second lowest bytes of the popcnt
30883 result.
30884
30885 2020-02-02 Vladimir Makarov <vmakarov@redhat.com>
30886
30887 PR rtl-optimization/91333
30888 * ira-color.c (struct allocno_color_data): Add member
30889 hard_reg_prefs.
30890 (init_allocno_threads): Set the member up.
30891 (bucket_allocno_compare_func): Add compare hard reg
30892 prefs.
30893
30894 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
30895
30896 nios2: Support for GOT-relative DW_EH_PE_datarel encoding.
30897
30898 * configure.ac [nios2-*-*]: Check HAVE_AS_NIOS2_GOTOFF_RELOCATION.
30899 * config.in: Regenerated.
30900 * configure: Regenerated.
30901 * config/nios2/nios2.h (ASM_PREFERRED_EH_DATA_FORMAT): Fix handling
30902 for PIC when HAVE_AS_NIOS2_GOTOFF_RELOCATION.
30903 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New.
30904
30905 2020-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
30906
30907 * configure: Regenerate.
30908
30909 2020-01-31 Vladimir Makarov <vmakarov@redhat.com>
30910
30911 PR rtl-optimization/91333
30912 * ira-color.c (bucket_allocno_compare_func): Move conflict hard
30913 reg preferences comparison up.
30914
30915 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
30916
30917 * config/aarch64/aarch64.h (TARGET_SVE_BF16): New macro.
30918 * config/aarch64/aarch64-sve-builtins-sve2.h (svcvtnt): Move to
30919 aarch64-sve-builtins-base.h.
30920 * config/aarch64/aarch64-sve-builtins-sve2.cc (svcvtnt): Move to
30921 aarch64-sve-builtins-base.cc.
30922 * config/aarch64/aarch64-sve-builtins-base.h (svbfdot, svbfdot_lane)
30923 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
30924 (svcvtnt): Declare.
30925 * config/aarch64/aarch64-sve-builtins-base.cc (svbfdot, svbfdot_lane)
30926 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
30927 (svcvtnt): New functions.
30928 * config/aarch64/aarch64-sve-builtins-base.def (svbfdot, svbfdot_lane)
30929 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
30930 (svcvtnt): New functions.
30931 (svcvt): Add a form that converts f32 to bf16.
30932 * config/aarch64/aarch64-sve-builtins-shapes.h (ternary_bfloat)
30933 (ternary_bfloat_lane, ternary_bfloat_lanex2, ternary_bfloat_opt_n):
30934 Declare.
30935 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_element_type):
30936 Treat B as bfloat16_t.
30937 (ternary_bfloat_lane_base): New class.
30938 (ternary_bfloat_def): Likewise.
30939 (ternary_bfloat): New shape.
30940 (ternary_bfloat_lane_def): New class.
30941 (ternary_bfloat_lane): New shape.
30942 (ternary_bfloat_lanex2_def): New class.
30943 (ternary_bfloat_lanex2): New shape.
30944 (ternary_bfloat_opt_n_def): New class.
30945 (ternary_bfloat_opt_n): New shape.
30946 * config/aarch64/aarch64-sve-builtins.cc (TYPES_cvt_bfloat): New macro.
30947 * config/aarch64/aarch64-sve.md (@aarch64_sve_<sve_fp_op>vnx4sf)
30948 (@aarch64_sve_<sve_fp_op>_lanevnx4sf): New patterns.
30949 (@aarch64_sve_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>)
30950 (@cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
30951 (*cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
30952 (@aarch64_sve_cvtnt<VNx8BF_ONLY:mode>): Likewise.
30953 * config/aarch64/aarch64-sve2.md (@aarch64_sve2_cvtnt<mode>): Key
30954 the pattern off the narrow mode instead of the wider one.
30955 * config/aarch64/iterators.md (VNx8BF_ONLY): New mode iterator.
30956 (UNSPEC_BFMLALB, UNSPEC_BFMLALT, UNSPEC_BFMMLA): New unspecs.
30957 (sve_fp_op): Handle them.
30958 (SVE_BFLOAT_TERNARY_LONG): New int itertor.
30959 (SVE_BFLOAT_TERNARY_LONG_LANE): Likewise.
30960
30961 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
30962
30963 * config/aarch64/arm_sve.h: Include arm_bf16.h.
30964 * config/aarch64/aarch64-modes.def (BF): Move definition before
30965 VECTOR_MODES. Remove separate VECTOR_MODES for V4BF and V8BF.
30966 (SVE_MODES): Handle BF modes.
30967 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle
30968 BF modes.
30969 (aarch64_full_sve_mode): Likewise.
30970 * config/aarch64/iterators.md (SVE_STRUCT): Add VNx16BF, VNx24BF
30971 and VNx32BF.
30972 (SVE_FULL, SVE_FULL_HSD, SVE_ALL): Add VNx8BF.
30973 (Vetype, Vesize, Vctype, VEL, Vel, VEL_INT, V128, v128, vwcore)
30974 (V_INT_EQUIV, v_int_equiv, V_FP_EQUIV, v_fp_equiv, vector_count)
30975 (insn_length, VSINGLE, vsingle, VPRED, vpred, VDOUBLE): Handle the
30976 new SVE BF modes.
30977 * config/aarch64/aarch64-sve-builtins.h (TYPE_bfloat): New
30978 type_class_index.
30979 * config/aarch64/aarch64-sve-builtins.cc (TYPES_all_arith): New macro.
30980 (TYPES_all_data): Add bf16.
30981 (TYPES_reinterpret1, TYPES_reinterpret): Likewise.
30982 (register_tuple_type): Increase buffer size.
30983 * config/aarch64/aarch64-sve-builtins.def (svbfloat16_t): New type.
30984 (bf16): New type suffix.
30985 * config/aarch64/aarch64-sve-builtins-base.def (svabd, svadd, svaddv)
30986 (svcmpeq, svcmpge, svcmpgt, svcmple, svcmplt, svcmpne, svmad, svmax)
30987 (svmaxv, svmin, svminv, svmla, svmls, svmsb, svmul, svsub, svsubr):
30988 Change type from all_data to all_arith.
30989 * config/aarch64/aarch64-sve-builtins-sve2.def (svaddp, svmaxp)
30990 (svminp): Likewise.
30991
30992 2020-01-31 Dennis Zhang <dennis.zhang@arm.com>
30993 Matthew Malcomson <matthew.malcomson@arm.com>
30994 Richard Sandiford <richard.sandiford@arm.com>
30995
30996 * doc/invoke.texi (f32mm): Document new AArch64 -march= extension.
30997 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
30998 __ARM_FEATURE_SVE_MATMUL_INT8, __ARM_FEATURE_SVE_MATMUL_FP32 and
30999 __ARM_FEATURE_SVE_MATMUL_FP64 as appropriate. Don't define
31000 __ARM_FEATURE_MATMUL_FP64.
31001 * config/aarch64/aarch64-option-extensions.def (fp, simd, fp16)
31002 (sve): Add AARCH64_FL_F32MM to the list of extensions that should
31003 be disabled at the same time.
31004 (f32mm): New extension.
31005 * config/aarch64/aarch64.h (AARCH64_FL_F32MM): New macro.
31006 (AARCH64_FL_F64MM): Bump to the next bit up.
31007 (AARCH64_ISA_F32MM, TARGET_SVE_I8MM, TARGET_F32MM, TARGET_SVE_F32MM)
31008 (TARGET_SVE_F64MM): New macros.
31009 * config/aarch64/iterators.md (SVE_MATMULF): New mode iterator.
31010 (UNSPEC_FMMLA, UNSPEC_SMATMUL, UNSPEC_UMATMUL, UNSPEC_USMATMUL)
31011 (UNSPEC_TRN1Q, UNSPEC_TRN2Q, UNSPEC_UZP1Q, UNSPEC_UZP2Q, UNSPEC_ZIP1Q)
31012 (UNSPEC_ZIP2Q): New unspeccs.
31013 (DOTPROD_US_ONLY, PERMUTEQ, MATMUL, FMMLA): New int iterators.
31014 (optab, sur, perm_insn): Handle the new unspecs.
31015 (sve_fp_op): Handle UNSPEC_FMMLA. Resort.
31016 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use
31017 TARGET_SVE_F64MM instead of separate tests.
31018 (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod<vsi2qi>): New pattern.
31019 (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod_lane<vsi2qi>): Likewise.
31020 (@aarch64_sve_add_<MATMUL:optab><vsi2qi>): Likewise.
31021 (@aarch64_sve_<FMMLA:sve_fp_op><mode>): Likewise.
31022 (@aarch64_sve_<PERMUTEQ:optab><mode>): Likewise.
31023 * config/aarch64/aarch64-sve-builtins.cc (TYPES_s_float): New macro.
31024 (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): Use it.
31025 (TYPES_s_signed): New macro.
31026 (TYPES_s_integer): Use it.
31027 (TYPES_d_float): New macro.
31028 (TYPES_d_data): Use it.
31029 * config/aarch64/aarch64-sve-builtins-shapes.h (mmla): Declare.
31030 (ternary_intq_uintq_lane, ternary_intq_uintq_opt_n, ternary_uintq_intq)
31031 (ternary_uintq_intq_lane, ternary_uintq_intq_opt_n): Likewise.
31032 * config/aarch64/aarch64-sve-builtins-shapes.cc (mmla_def): New class.
31033 (svmmla): New shape.
31034 (ternary_resize2_opt_n_base): Add TYPE_CLASS2 and TYPE_CLASS3
31035 template parameters.
31036 (ternary_resize2_lane_base): Likewise.
31037 (ternary_resize2_base): New class.
31038 (ternary_qq_lane_base): Likewise.
31039 (ternary_intq_uintq_lane_def): Likewise.
31040 (ternary_intq_uintq_lane): New shape.
31041 (ternary_intq_uintq_opt_n_def): New class
31042 (ternary_intq_uintq_opt_n): New shape.
31043 (ternary_qq_lane_def): Inherit from ternary_qq_lane_base.
31044 (ternary_uintq_intq_def): New class.
31045 (ternary_uintq_intq): New shape.
31046 (ternary_uintq_intq_lane_def): New class.
31047 (ternary_uintq_intq_lane): New shape.
31048 (ternary_uintq_intq_opt_n_def): New class.
31049 (ternary_uintq_intq_opt_n): New shape.
31050 * config/aarch64/aarch64-sve-builtins-base.h (svmmla, svsudot)
31051 (svsudot_lane, svtrn1q, svtrn2q, svusdot, svusdot_lane, svusmmla)
31052 (svuzp1q, svuzp2q, svzip1q, svzip2q): Declare.
31053 * config/aarch64/aarch64-sve-builtins-base.cc (svdot_lane_impl):
31054 Generalize to...
31055 (svdotprod_lane_impl): ...this new class.
31056 (svmmla_impl, svusdot_impl): New classes.
31057 (svdot_lane): Update to use svdotprod_lane_impl.
31058 (svmmla, svsudot, svsudot_lane, svtrn1q, svtrn2q, svusdot)
31059 (svusdot_lane, svusmmla, svuzp1q, svuzp2q, svzip1q, svzip2q): New
31060 functions.
31061 * config/aarch64/aarch64-sve-builtins-base.def (svmmla): New base
31062 function, with no types defined.
31063 (svmmla, svusmmla, svsudot, svsudot_lane, svusdot, svusdot_lane): New
31064 AARCH64_FL_I8MM functions.
31065 (svmmla): New AARCH64_FL_F32MM function.
31066 (svld1ro): Depend only on AARCH64_FL_F64MM, not on AARCH64_FL_V8_6.
31067 (svmmla, svtrn1q, svtrn2q, svuz1q, svuz2q, svzip1q, svzip2q): New
31068 AARCH64_FL_F64MM function.
31069 (REQUIRED_EXTENSIONS):
31070
31071 2020-01-31 Andrew Stubbs <ams@codesourcery.com>
31072
31073 * config/gcn/gcn-valu.md (addv64di3_exec): Allow one '0' in each
31074 alternative only.
31075
31076 2020-01-31 Uroš Bizjak <ubizjak@gmail.com>
31077
31078 * config/i386/i386.md (*movoi_internal_avx): Do not check for
31079 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. Remove MODE_V8SF handling.
31080 (*movti_internal): Do not check for
31081 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
31082 (*movtf_internal): Move check for TARGET_SSE2 and size optimization
31083 just after check for TARGET_AVX.
31084 (*movdf_internal): Ditto.
31085 * config/i386/mmx.md (*mov<mode>_internal): Do not check for
31086 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
31087 * config/i386/sse.md (mov<mode>_internal): Only check
31088 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL with V2DFmode. Move check
31089 for TARGET_SSE2 and size optimization just after check for TARGET_AVX.
31090 (<sse>_andnot<mode>3<mask_name>): Move check for
31091 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL after check for TARGET_AVX.
31092 (<code><mode>3<mask_name>): Ditto.
31093 (*andnot<mode>3): Ditto.
31094 (*andnottf3): Ditto.
31095 (*<code><mode>3): Ditto.
31096 (*<code>tf3): Ditto.
31097 (*andnot<VI:mode>3): Remove
31098 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling.
31099 (<mask_codefor><code><VI48_AVX_AVX512F:mode>3<mask_name>): Ditto.
31100 (*<code><VI12_AVX_AVX512F:mode>3): Ditto.
31101 (sse4_1_blendv<ssemodesuffix>): Ditto.
31102 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL):
31103 Explain that tune applies to 128bit instructions only.
31104
31105 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
31106
31107 * config/gcn/mkoffload.c (process_asm): Add sgpr_count and vgpr_count
31108 to definition of hsa_kernel_description. Parse assembly to find SGPR
31109 and VGPR count of kernel and store in hsa_kernel_description.
31110
31111 2020-01-31 Tamar Christina <tamar.christina@arm.com>
31112
31113 PR rtl-optimization/91838
31114 * simplify-rtx.c (simplify_binary_operation_1): Update LSHIFTRT case
31115 to truncate if allowed or reject combination.
31116
31117 2020-01-31 Andrew Stubbs <ams@codesourcery.com>
31118
31119 * tree-ssa-loop-ivopts.c (get_iv): Use sizetype for zero-step.
31120 (find_inv_vars_cb): Likewise.
31121
31122 2020-01-31 David Malcolm <dmalcolm@redhat.com>
31123
31124 * calls.c (special_function_p): Split out the check for DECL_NAME
31125 being non-NULL and fndecl being extern at file scope into a
31126 new maybe_special_function_p and call it. Drop check for fndecl
31127 being non-NULL that was after a usage of DECL_NAME (fndecl).
31128 * tree.h (maybe_special_function_p): New inline function.
31129
31130 2020-01-30 Andrew Stubbs <ams@codesourcery.com>
31131
31132 * config/gcn/gcn-valu.md (gather<mode>_exec): Move contents ...
31133 (mask_gather_load<mode>): ... here, and zero-initialize the
31134 destination.
31135 (maskload<mode>di): Zero-initialize the destination.
31136 * config/gcn/gcn.c:
31137
31138 2020-01-30 David Malcolm <dmalcolm@redhat.com>
31139
31140 PR analyzer/93356
31141 * doc/analyzer.texi (Limitations): Note that constraints on
31142 floating-point values are currently ignored.
31143
31144 2020-01-30 Jakub Jelinek <jakub@redhat.com>
31145
31146 PR lto/93384
31147 * symtab.c (symtab_node::noninterposable_alias): If localalias
31148 already exists, but is not usable, append numbers after it until
31149 a unique name is found. Formatting fix.
31150
31151 PR middle-end/93505
31152 * combine.c (simplify_comparison) <case ROTATE>: Punt on out of range
31153 rotate counts.
31154
31155 2020-01-30 Andrew Stubbs <ams@codesourcery.com>
31156
31157 * config/gcn/gcn.c (print_operand): Handle LTGT.
31158 * config/gcn/predicates.md (gcn_fp_compare_operator): Allow ltgt.
31159
31160 2020-01-30 Richard Biener <rguenther@suse.de>
31161
31162 * tree-pretty-print.c (dump_generic_node): Wrap VECTOR_CST
31163 and CONSTRUCTOR in _Literal (type) with TDF_GIMPLE.
31164
31165 2020-01-30 John David Anglin <danglin@gcc.gnu.org>
31166
31167 * config/pa/pa.c (pa_elf_select_rtx_section): Place function pointers
31168 without a DECL in .data.rel.ro.local.
31169
31170 2020-01-30 Jakub Jelinek <jakub@redhat.com>
31171
31172 PR target/93494
31173 * config/arm/arm.md (uaddvdi4): Actually emit what gen_uaddvsi4
31174 returned.
31175
31176 PR target/91824
31177 * config/i386/sse.md
31178 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext): Renamed to ...
31179 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext): ... this. Use
31180 any_extend code iterator instead of always zero_extend.
31181 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_lt): Renamed to ...
31182 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_lt): ... this.
31183 Use any_extend code iterator instead of always zero_extend.
31184 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_shift): Renamed to ...
31185 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_shift): ... this.
31186 Use any_extend code iterator instead of always zero_extend.
31187 (*sse2_pmovmskb_ext): New define_insn.
31188 (*sse2_pmovmskb_ext_lt): New define_insn_and_split.
31189
31190 PR target/91824
31191 * config/i386/i386.md (*popcountsi2_zext): New define_insn_and_split.
31192 (*popcountsi2_zext_falsedep): New define_insn.
31193
31194 2020-01-30 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
31195
31196 * config.in: Regenerated.
31197 * configure: Regenerated.
31198
31199 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
31200
31201 PR bootstrap/93409
31202 * config/gcn/gcn-hsa.h (ASM_SPEC): Add -mattr=-code-object-v3 as
31203 LLVM's assembler changed the default in version 9.
31204
31205 2020-01-24 Jeff Law <law@redhat.com>
31206
31207 PR tree-optimization/89689
31208 * builtins.def (BUILT_IN_OBJECT_SIZE): Make it const rather than pure.
31209
31210 2020-01-29 Richard Sandiford <richard.sandiford@arm.com>
31211
31212 Revert:
31213
31214 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31215
31216 PR rtl-optimization/87763
31217 * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
31218 simplification to handle subregs as well as bare regs.
31219 * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
31220
31221 2020-01-29 Joel Hutton <Joel.Hutton@arm.com>
31222
31223 PR target/93221
31224 * ira.c (ira): Revert use of simplified LRA algorithm.
31225
31226 2020-01-29 Martin Jambor <mjambor@suse.cz>
31227
31228 PR tree-optimization/92706
31229 * tree-sra.c (struct access): Fields first_link, last_link,
31230 next_queued and grp_queued renamed to first_rhs_link, last_rhs_link,
31231 next_rhs_queued and grp_rhs_queued respectively, new fields
31232 first_lhs_link, last_lhs_link, next_lhs_queued and grp_lhs_queued.
31233 (struct assign_link): Field next renamed to next_rhs, new field
31234 next_lhs. Updated comment.
31235 (work_queue_head): Renamed to rhs_work_queue_head.
31236 (lhs_work_queue_head): New variable.
31237 (add_link_to_lhs): New function.
31238 (relink_to_new_repr): Also relink LHS lists.
31239 (add_access_to_work_queue): Renamed to add_access_to_rhs_work_queue.
31240 (add_access_to_lhs_work_queue): New function.
31241 (pop_access_from_work_queue): Renamed to
31242 pop_access_from_rhs_work_queue.
31243 (pop_access_from_lhs_work_queue): New function.
31244 (build_accesses_from_assign): Also add links to LHS lists and to LHS
31245 work_queue.
31246 (child_would_conflict_in_lacc): Renamed to
31247 child_would_conflict_in_acc. Adjusted parameter names.
31248 (create_artificial_child_access): New parameter set_grp_read, use it.
31249 (subtree_mark_written_and_enqueue): Renamed to
31250 subtree_mark_written_and_rhs_enqueue.
31251 (propagate_subaccesses_across_link): Renamed to
31252 propagate_subaccesses_from_rhs.
31253 (propagate_subaccesses_from_lhs): New function.
31254 (propagate_all_subaccesses): Also propagate subaccesses from LHSs to
31255 RHSs.
31256
31257 2020-01-29 Martin Jambor <mjambor@suse.cz>
31258
31259 PR tree-optimization/92706
31260 * tree-sra.c (struct access): Adjust comment of
31261 grp_total_scalarization.
31262 (find_access_in_subtree): Look for single children spanning an entire
31263 access.
31264 (scalarizable_type_p): Allow register accesses, adjust callers.
31265 (completely_scalarize): Remove function.
31266 (scalarize_elem): Likewise.
31267 (create_total_scalarization_access): Likewise.
31268 (sort_and_splice_var_accesses): Do not track total scalarization
31269 flags.
31270 (analyze_access_subtree): New parameter totally, adjust to new meaning
31271 of grp_total_scalarization.
31272 (analyze_access_trees): Pass new parameter to analyze_access_subtree.
31273 (can_totally_scalarize_forest_p): New function.
31274 (create_total_scalarization_access): Likewise.
31275 (create_total_access_and_reshape): Likewise.
31276 (total_should_skip_creating_access): Likewise.
31277 (totally_scalarize_subtree): Likewise.
31278 (analyze_all_variable_accesses): Perform total scalarization after
31279 subaccess propagation using the new functions above.
31280 (initialize_constant_pool_replacements): Output initializers by
31281 traversing the access tree.
31282
31283 2020-01-29 Martin Jambor <mjambor@suse.cz>
31284
31285 * tree-sra.c (verify_sra_access_forest): New function.
31286 (verify_all_sra_access_forests): Likewise.
31287 (create_artificial_child_access): Set parent.
31288 (analyze_all_variable_accesses): Call the verifier.
31289
31290 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31291
31292 * cgraph.c (cgraph_edge::resolve_speculation): Only lookup direct edge
31293 if called on indirect edge.
31294 (cgraph_edge::redirect_call_stmt_to_callee): Lookup indirect edge of
31295 speculative call if needed.
31296
31297 2020-01-29 Richard Biener <rguenther@suse.de>
31298
31299 PR tree-optimization/93428
31300 * tree-vect-slp.c (vect_build_slp_tree_2): Compute the load
31301 permutation when the load node is created.
31302 (vect_analyze_slp_instance): Re-use it here.
31303
31304 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31305
31306 * ipa-prop.c (update_indirect_edges_after_inlining): Fix warning.
31307
31308 2020-01-28 Vladimir Makarov <vmakarov@redhat.com>
31309
31310 PR rtl-optimization/93272
31311 * ira-lives.c (process_out_of_region_eh_regs): New function.
31312 (process_bb_node_lives): Call it.
31313
31314 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31315
31316 * coverage.c (read_counts_file): Make error message lowercase.
31317
31318 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31319
31320 * profile-count.c (profile_quality_display_names): Fix ordering.
31321
31322 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
31323
31324 PR lto/93318
31325 * cgraph.c (cgraph_add_edge_to_call_site_hash): Update call site
31326 hash only when edge is first within the sequence.
31327 (cgraph_edge::set_call_stmt): Update handling of speculative calls.
31328 (symbol_table::create_edge): Do not set target_prob.
31329 (cgraph_edge::remove_caller): Watch for speculative calls when updating
31330 the call site hash.
31331 (cgraph_edge::make_speculative): Drop target_prob parameter.
31332 (cgraph_edge::speculative_call_info): Remove.
31333 (cgraph_edge::first_speculative_call_target): New member function.
31334 (update_call_stmt_hash_for_removing_direct_edge): New function.
31335 (cgraph_edge::resolve_speculation): Rewrite to new API.
31336 (cgraph_edge::speculative_call_for_target): New member function.
31337 (cgraph_edge::make_direct): Rewrite to new API; fix handling of
31338 multiple speculation targets.
31339 (cgraph_edge::redirect_call_stmt_to_callee): Likewise; fix updating
31340 of profile.
31341 (verify_speculative_call): Verify that targets form an interval.
31342 * cgraph.h (cgraph_edge::speculative_call_info): Remove.
31343 (cgraph_edge::first_speculative_call_target): New member function.
31344 (cgraph_edge::next_speculative_call_target): New member function.
31345 (cgraph_edge::speculative_call_target_ref): New member function.
31346 (cgraph_edge;:speculative_call_indirect_edge): New member funtion.
31347 (cgraph_edge): Remove target_prob.
31348 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
31349 Fix handling of speculative calls.
31350 * ipa-devirt.c (ipa_devirt): Fix handling of speculative cals.
31351 * ipa-fnsummary.c (analyze_function_body): Likewise.
31352 * ipa-inline.c (speculation_useful_p): Use new speculative call API.
31353 * ipa-profile.c (dump_histogram): Fix formating.
31354 (ipa_profile_generate_summary): Watch for overflows.
31355 (ipa_profile): Do not require probablity to be 1/2; update to new API.
31356 * ipa-prop.c (ipa_make_edge_direct_to_target): Update to new API.
31357 (update_indirect_edges_after_inlining): Update to new API.
31358 * ipa-utils.c (ipa_merge_profiles): Rewrite merging of speculative call
31359 profiles.
31360 * profile-count.h: (profile_probability::adjusted): New.
31361 * tree-inline.c (copy_bb): Update to new speculative call API; fix
31362 updating of profile.
31363 * value-prof.c (gimple_ic_transform): Rename to ...
31364 (dump_ic_profile): ... this one; update dumping.
31365 (stream_in_histogram_value): Fix formating.
31366 (gimple_value_profile_transformations): Update.
31367
31368 2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
31369
31370 PR target/91461
31371 * config/i386/i386.md (*movoi_internal_avx): Remove
31372 TARGET_SSE_TYPELESS_STORES check.
31373 (*movti_internal): Prefer TARGET_AVX over
31374 TARGET_SSE_TYPELESS_STORES.
31375 (*movtf_internal): Likewise.
31376 * config/i386/sse.md (mov<mode>_internal): Prefer TARGET_AVX over
31377 TARGET_SSE_TYPELESS_STORES. Remove "<MODE_SIZE> == 16" check
31378 from TARGET_SSE_TYPELESS_STORES.
31379
31380 2020-01-28 David Malcolm <dmalcolm@redhat.com>
31381
31382 * diagnostic-core.h (warning_at): Rename overload to...
31383 (warning_meta): ...this.
31384 (emit_diagnostic_valist): Delete decl of overload taking
31385 diagnostic_metadata.
31386 * diagnostic.c (emit_diagnostic_valist): Likewise for defn.
31387 (warning_at): Rename overload taking diagnostic_metadata to...
31388 (warning_meta): ...this.
31389
31390 2020-01-28 Richard Biener <rguenther@suse.de>
31391
31392 PR tree-optimization/93439
31393 * tree-parloops.c (create_loop_fn): Move clique bookkeeping...
31394 * tree-cfg.c (move_sese_region_to_fn): ... here.
31395 (verify_types_in_gimple_reference): Verify used cliques are
31396 tracked.
31397
31398 2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
31399
31400 PR target/91399
31401 * config/i386/i386-options.c (set_ix86_tune_features): Add an
31402 argument of a pointer to struct gcc_options and pass it to
31403 parse_mtune_ctrl_str.
31404 (ix86_function_specific_restore): Pass opts to
31405 set_ix86_tune_features.
31406 (ix86_option_override_internal): Likewise.
31407 (parse_mtune_ctrl_str): Add an argument of a pointer to struct
31408 gcc_options and use it for x_ix86_tune_ctrl_string.
31409
31410 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31411
31412 PR rtl-optimization/87763
31413 * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
31414 simplification to handle subregs as well as bare regs.
31415 * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
31416
31417 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31418
31419 * tree-vect-loop.c (vectorizable_reduction): Fail gracefully
31420 for reduction chains that (now) include a call.
31421
31422 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31423
31424 PR tree-optimization/92822
31425 * tree-ssa-forwprop.c (simplify_vector_constructor): When filling
31426 out the don't-care elements of a vector whose significant elements
31427 are duplicates, make the don't-care elements duplicates too.
31428
31429 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
31430
31431 PR tree-optimization/93434
31432 * tree-predcom.c (split_data_refs_to_components): Record which
31433 components have had aliasing loads removed. Prevent store-store
31434 commoning for all such components.
31435
31436 2020-01-28 Jakub Jelinek <jakub@redhat.com>
31437
31438 PR target/93418
31439 * config/i386/i386.c (ix86_fold_builtin) <do_shift>: If mask is not
31440 -1 or is_vshift is true, use new_vector with number of elts npatterns
31441 rather than new_unary_operation.
31442
31443 PR tree-optimization/93454
31444 * gimple-fold.c (fold_array_ctor_reference): Perform
31445 elt_size.to_uhwi () just once, instead of calling it in every
31446 iteration. Punt if that value is above size of the temporary
31447 buffer. Decrease third native_encode_expr argument when
31448 bufoff + elt_sz is above size of buf.
31449
31450 2020-01-27 Joseph Myers <joseph@codesourcery.com>
31451
31452 * config/mips/mips.c (mips_declare_object_name)
31453 [USE_GNU_UNIQUE_OBJECT]: Support use of gnu_unique_object.
31454
31455 2020-01-27 Martin Liska <mliska@suse.cz>
31456
31457 PR gcov-profile/93403
31458 * tree-profile.c (gimple_init_gcov_profiler): Generate
31459 both __gcov_indirect_call_profiler_v4 and
31460 __gcov_indirect_call_profiler_v4_atomic.
31461
31462 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31463
31464 PR target/92822
31465 * config/aarch64/aarch64-simd.md (aarch64_get_half<mode>): New
31466 expander.
31467 (@aarch64_split_simd_mov<mode>): Use it.
31468 (aarch64_simd_mov_from_<mode>low): Add a GPR alternative.
31469 Leave the vec_extract patterns to handle 2-element vectors.
31470 (aarch64_simd_mov_from_<mode>high): Likewise.
31471 (vec_extract<VQMOV_NO2E:mode><Vhalf>): New expander.
31472 (vec_extractv2dfv1df): Likewise.
31473
31474 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31475
31476 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Match
31477 jump conditions for *compare_condjump<GPI:mode>.
31478
31479 2020-01-27 David Malcolm <dmalcolm@redhat.com>
31480
31481 PR analyzer/93276
31482 * digraph.cc (test_edge::test_edge): Specify template for base
31483 class initializer.
31484
31485 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31486
31487 * config/arc/arc.c (arc_rtx_costs): Update mul64 cost.
31488
31489 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31490
31491 * config/arc/arc-protos.h (gen_mlo): Remove.
31492 (gen_mhi): Likewise.
31493 * config/arc/arc.c (AUX_MULHI): Define.
31494 (arc_must_save_reister): Special handling for r58/59.
31495 (arc_compute_frame_size): Consider mlo/mhi registers.
31496 (arc_save_callee_saves): Emit fp/sp move only when emit_move
31497 paramter is true.
31498 (arc_conditional_register_usage): Remove TARGET_BIG_ENDIAN from
31499 mlo/mhi name selection.
31500 (arc_restore_callee_saves): Don't early restore blink when ISR.
31501 (arc_expand_prologue): Add mlo/mhi saving.
31502 (arc_expand_epilogue): Add mlo/mhi restoring.
31503 (gen_mlo): Remove.
31504 (gen_mhi): Remove.
31505 * config/arc/arc.h (DBX_REGISTER_NUMBER): Correct register
31506 numbering when MUL64 option is used.
31507 (DWARF2_FRAME_REG_OUT): Define.
31508 * config/arc/arc.md (arc600_stall): New pattern.
31509 (VUNSPEC_ARC_ARC600_STALL): Define.
31510 (mulsi64): Use correct mlo/mhi registers.
31511 (mulsi_600): Clean it up.
31512 * config/arc/predicates.md (mlo_operand): Remove any dependency on
31513 TARGET_BIG_ENDIAN.
31514 (mhi_operand): Likewise.
31515
31516 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31517 Petro Karashchenko <petro.karashchenko@ring.com>
31518
31519 * config/arc/arc.c (arc_is_uncached_mem_p): Check struct
31520 attributes if needed.
31521 (prepare_move_operands): Generate special unspec instruction for
31522 direct access.
31523 (arc_isuncached_mem_p): Propagate uncached attribute to each
31524 structure member.
31525 * config/arc/arc.md (VUNSPEC_ARC_LDDI): Define.
31526 (VUNSPEC_ARC_STDI): Likewise.
31527 (ALLI): New mode iterator.
31528 (mALLI): New mode attribute.
31529 (lddi): New instruction pattern.
31530 (stdi): Likewise.
31531 (stdidi_split): Split instruction for architectures which are not
31532 supporting ll64 option.
31533 (lddidi_split): Likewise.
31534
31535 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31536
31537 PR rtl-optimization/92989
31538 * lra-lives.c (process_bb_lives): Update the live-in set before
31539 processing additional clobbers.
31540
31541 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31542
31543 PR rtl-optimization/93170
31544 * cselib.c (cselib_invalidate_regno_val): New function, split out
31545 from...
31546 (cselib_invalidate_regno): ...here.
31547 (cselib_invalidated_by_call_p): New function.
31548 (cselib_process_insn): Iterate over all the hard-register entries in
31549 REG_VALUES and invalidate any that cross call-clobbered registers.
31550
31551 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
31552
31553 * dojump.c (split_comparison): Use HONOR_NANS rather than
31554 HONOR_SNANS when splitting LTGT.
31555
31556 2020-01-27 Martin Liska <mliska@suse.cz>
31557
31558 PR driver/91220
31559 * opts.c (print_filtered_help): Exclude language-specific
31560 options from --help=common unless enabled in all FEs.
31561
31562 2020-01-27 Martin Liska <mliska@suse.cz>
31563
31564 * opts.c (print_help): Exclude params from
31565 all except --help=param.
31566
31567 2020-01-27 Martin Liska <mliska@suse.cz>
31568
31569 PR target/93274
31570 * config/i386/i386-features.c (make_resolver_func):
31571 Align the code with ppc64 target implementation.
31572 Do not generate a unique name for resolver function.
31573
31574 2020-01-27 Richard Biener <rguenther@suse.de>
31575
31576 PR tree-optimization/93397
31577 * tree-vect-slp.c (vect_analyze_slp_instance): Delay
31578 converted reduction chain SLP graph adjustment.
31579
31580 2020-01-26 Marek Polacek <polacek@redhat.com>
31581
31582 PR sanitizer/93436
31583 * sanopt.c (sanitize_rewrite_addressable_params): Avoid crash on
31584 null DECL_NAME.
31585
31586 2020-01-26 Jason Merrill <jason@redhat.com>
31587
31588 PR c++/92601
31589 * tree.c (verify_type_variant): Only verify TYPE_NEEDS_CONSTRUCTING
31590 of complete types.
31591
31592 2020-01-26 Darius Galis <darius.galis@cyberthorstudios.com>
31593
31594 * config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint
31595 (rx_setmem): Likewise.
31596
31597 2020-01-26 Jakub Jelinek <jakub@redhat.com>
31598
31599 PR target/93412
31600 * config/i386/i386.md (*addv<dwi>4_doubleword, *subv<dwi>4_doubleword):
31601 Use nonimmediate_operand instead of x86_64_hilo_general_operand and
31602 drop <di> from constraint of last operand.
31603
31604 PR target/93430
31605 * config/i386/sse.md (*avx_vperm_broadcast_<mode>): Disallow for
31606 TARGET_AVX2 and V4DFmode not in the split condition, but in the
31607 pattern condition, though allow { 0, 0, 0, 0 } broadcast always.
31608
31609 2020-01-25 Feng Xue <fxue@os.amperecomputing.com>
31610
31611 PR ipa/93166
31612 * ipa-cp.c (get_info_about_necessary_edges): Remove value
31613 check assertion.
31614
31615 2020-01-24 Jeff Law <law@redhat.com>
31616
31617 PR tree-optimization/92788
31618 * tree-ssa-threadedge.c (thread_across_edge): Check EDGE_COMPLEX
31619 not EDGE_ABNORMAL.
31620
31621 2020-01-24 Jakub Jelinek <jakub@redhat.com>
31622
31623 PR target/93395
31624 * config/i386/sse.md (*avx_vperm_broadcast_v4sf,
31625 *avx_vperm_broadcast_<mode>,
31626 <sse2_avx_avx512f>_vpermil<mode><mask_name>,
31627 *<sse2_avx_avx512f>_vpermilp<mode><mask_name>):
31628 Move before avx2_perm<mode>/avx512f_perm<mode>.
31629
31630 PR target/93376
31631 * simplify-rtx.c (simplify_const_unary_operation,
31632 simplify_const_binary_operation): Punt for mode precision above
31633 MAX_BITSIZE_MODE_ANY_INT.
31634
31635 2020-01-24 Andrew Pinski <apinski@marvell.com>
31636
31637 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Change
31638 alu.shift_reg to 0.
31639
31640 2020-01-24 Jeff Law <law@redhat.com>
31641
31642 PR target/13721
31643 * config/h8300/h8300.c (h8300_print_operand): Only call byte_reg
31644 for REGs. Call output_operand_lossage to get more reasonable
31645 diagnostics.
31646
31647 2020-01-24 Andrew Stubbs <ams@codesourcery.com>
31648
31649 * config/gcn/gcn-valu.md (vec_cmp<mode>di): Use
31650 gcn_fp_compare_operator.
31651 (vec_cmpu<mode>di): Use gcn_compare_operator.
31652 (vec_cmp<u>v64qidi): Use gcn_compare_operator.
31653 (vec_cmp<mode>di_exec): Use gcn_fp_compare_operator.
31654 (vec_cmpu<mode>di_exec): Use gcn_compare_operator.
31655 (vec_cmp<u>v64qidi_exec): Use gcn_compare_operator.
31656 (vec_cmp<mode>di_dup): Use gcn_fp_compare_operator.
31657 (vec_cmp<mode>di_dup_exec): Use gcn_fp_compare_operator.
31658 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): Use
31659 gcn_fp_compare_operator.
31660 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): Use
31661 gcn_fp_compare_operator.
31662 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): Use
31663 gcn_fp_compare_operator.
31664 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): Use
31665 gcn_fp_compare_operator.
31666
31667 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
31668
31669 * doc/install.texi (Cross-Compiler-Specific Options): Document
31670 `--with-toolexeclibdir' option.
31671
31672 2020-01-24 Hans-Peter Nilsson <hp@axis.com>
31673
31674 * target.def (flags_regnum): Also mention effect on delay slot filling.
31675 * doc/tm.texi: Regenerate.
31676
31677 2020-01-23 Jeff Law <law@redhat.com>
31678
31679 PR translation/90162
31680 * config/h8300/h8300.c (h8300_option_override): Fix diagnostic text.
31681
31682 2020-01-23 Mikael Tillenius <mti-1@tillenius.com>
31683
31684 PR target/92269
31685 * config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of
31686 profiling label
31687
31688 2020-01-23 Jakub Jelinek <jakub@redhat.com>
31689
31690 PR rtl-optimization/93402
31691 * postreload.c (reload_combine_recognize_pattern): Don't try to adjust
31692 USE insns.
31693
31694 2020-01-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
31695
31696 * config.in: Regenerated.
31697 * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to 1
31698 for TARGET_LIBC_GNUSTACK.
31699 * configure: Regenerated.
31700 * configure.ac: Define TARGET_LIBC_GNUSTACK if glibc version is
31701 found to be 2.31 or greater.
31702
31703 2020-01-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
31704
31705 * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to
31706 TARGET_SOFT_FLOAT.
31707 * config/mips/mips.c (TARGET_ASM_FILE_END): Define to ...
31708 (mips_asm_file_end): New function. Delegate to
31709 file_end_indicate_exec_stack if NEED_INDICATE_EXEC_STACK is true.
31710 * config/mips/mips.h (NEED_INDICATE_EXEC_STACK): Define to 0.
31711
31712 2020-01-23 Jakub Jelinek <jakub@redhat.com>
31713
31714 PR target/93376
31715 * config/i386/i386-modes.def (POImode): New mode.
31716 (MAX_BITSIZE_MODE_ANY_INT): Change from 128 to 160.
31717 * config/i386/i386.md (DPWI): New mode attribute.
31718 (addv<mode>4, subv<mode>4): Use <DPWI> instead of <DWI>.
31719 (QWI): Rename to...
31720 (QPWI): ... this. Use POI instead of OI for TImode.
31721 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1,
31722 *subv<dwi>4_doubleword, *subv<dwi>4_doubleword_1): Use <QPWI>
31723 instead of <QWI>.
31724
31725 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
31726
31727 PR target/93341
31728 * config/aarch64/aarch64.md (UNSPEC_SPECULATION_TRACKER_REV): New
31729 unspec.
31730 (speculation_tracker_rev): New pattern.
31731 * config/aarch64/aarch64-speculation.cc (aarch64_do_track_speculation):
31732 Use speculation_tracker_rev to track the inverse condition.
31733
31734 2020-01-23 Richard Biener <rguenther@suse.de>
31735
31736 PR tree-optimization/93381
31737 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Take
31738 alias-set of the def as argument and record the first one.
31739 (vn_walk_cb_data::first_set): New member.
31740 (vn_reference_lookup_3): Pass the alias-set of the current def
31741 to push_partial_def. Fix alias-set used in the aggregate copy
31742 case.
31743 (vn_reference_lookup): Consistently set *last_vuse_ptr.
31744 * real.c (clear_significand_below): Fix out-of-bound access.
31745
31746 2020-01-23 Jakub Jelinek <jakub@redhat.com>
31747
31748 PR target/93346
31749 * config/i386/i386.md (*bmi2_bzhi_<mode>3_2, *bmi2_bzhi_<mode>3_3):
31750 New define_insn patterns.
31751
31752 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
31753
31754 * doc/sourcebuild.texi (check-function-bodies): Add an
31755 optional target/xfail selector.
31756
31757 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
31758
31759 PR rtl-optimization/93124
31760 * auto-inc-dec.c (merge_in_block): Don't add auto inc/decs to
31761 bare USE and CLOBBER insns.
31762
31763 2020-01-22 Andrew Pinski <apinski@marvell.com>
31764
31765 * config/arc/arc.c (output_short_suffix): Check insn for nullness.
31766
31767 2020-01-22 David Malcolm <dmalcolm@redhat.com>
31768
31769 PR analyzer/93307
31770 * gdbinit.in (break-on-saved-diagnostic): Update for move of
31771 diagnostic_manager into "ana" namespace.
31772 * selftest-run-tests.c (selftest::run_tests): Update for move of
31773 selftest::run_analyzer_selftests to
31774 ana::selftest::run_analyzer_selftests.
31775
31776 2020-01-22 Richard Sandiford <richard.sandiford@arm.com>
31777
31778 * cfgexpand.c (union_stack_vars): Update the size.
31779
31780 2020-01-22 Richard Biener <rguenther@suse.de>
31781
31782 PR tree-optimization/93381
31783 * tree-ssa-structalias.c (find_func_aliases): Assume offsetting
31784 throughout, handle all conversions the same.
31785
31786 2020-01-22 Jakub Jelinek <jakub@redhat.com>
31787
31788 PR target/93335
31789 * config/aarch64/aarch64.c (aarch64_expand_subvti): Only use
31790 gen_subdi3_compare1_imm if low_in2 satisfies aarch64_plus_immediate
31791 predicate, not whenever it is CONST_INT. Otherwise, force_reg it.
31792 Call force_reg on high_in2 unconditionally.
31793
31794 2020-01-22 Martin Liska <mliska@suse.cz>
31795
31796 PR tree-optimization/92924
31797 * profile.c (compute_value_histograms): Divide
31798 all counter values.
31799
31800 2020-01-22 Jakub Jelinek <jakub@redhat.com>
31801
31802 PR target/91298
31803 * output.h (assemble_name_resolve): Declare.
31804 * varasm.c (assemble_name_resolve): New function.
31805 (assemble_name): Use it.
31806 * config/i386/i386.h (ASM_OUTPUT_SYMBOL_REF): Define.
31807
31808 2020-01-22 Joseph Myers <joseph@codesourcery.com>
31809
31810 * doc/sourcebuild.texi (Texinfo Manuals, Front End): Refer to
31811 update_web_docs_git instead of update_web_docs_svn.
31812
31813 2020-01-21 Andrew Pinski <apinski@marvell.com>
31814
31815 PR target/9311
31816 * config/aarch64/aarch64.md (tlsgd_small_<mode>): Have operand 0
31817 as PTR mode. Have operand 1 as being modeless, it can be P mode.
31818 (*tlsgd_small_<mode>): Likewise.
31819 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately)
31820 <case SYMBOL_SMALL_TLSGD>: Call gen_tlsgd_small_* with a ptr_mode
31821 register. Convert that register back to dest using convert_mode.
31822
31823 2020-01-21 Jim Wilson <jimw@sifive.com>
31824
31825 * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Use INTVAL
31826 instead of XINT.
31827
31828 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
31829 Uros Bizjak <ubizjak@gmail.com>
31830
31831 PR target/93319
31832 * config/i386/i386.c (ix86_tls_module_base): Replace Pmode
31833 with ptr_mode.
31834 (legitimize_tls_address): Do GNU2 TLS address computation in
31835 ptr_mode and zero-extend result to Pmode.
31836 * config/i386/i386.md (@tls_dynamic_gnu2_64_<mode>): Replace
31837 :P with :PTR and Pmode with ptr_mode.
31838 (*tls_dynamic_gnu2_lea_64_<mode>): Likewise.
31839 (*tls_dynamic_gnu2_call_64_<mode>): Likewise.
31840 (*tls_dynamic_gnu2_combine_64_<mode>): Likewise.
31841
31842 2020-01-21 Jakub Jelinek <jakub@redhat.com>
31843
31844 PR target/93333
31845 * config/riscv/riscv.c (riscv_rtx_costs) <case ZERO_EXTRACT>: Verify
31846 the last two operands are CONST_INT_P before using them as such.
31847
31848 2020-01-21 Richard Sandiford <richard.sandiford@arm.com>
31849
31850 * config/aarch64/aarch64-sve-builtins.def: Use get_typenode_from_name
31851 to get the integer element types.
31852
31853 2020-01-21 Richard Sandiford <richard.sandiford@arm.com>
31854
31855 * config/aarch64/aarch64-sve-builtins.h
31856 (function_expander::convert_to_pmode): Declare.
31857 * config/aarch64/aarch64-sve-builtins.cc
31858 (function_expander::convert_to_pmode): New function.
31859 (function_expander::get_contiguous_base): Use it.
31860 (function_expander::prepare_gather_address_operands): Likewise.
31861 * config/aarch64/aarch64-sve-builtins-sve2.cc
31862 (svwhilerw_svwhilewr_impl::expand): Likewise.
31863
31864 2020-01-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
31865
31866 PR target/92424
31867 * config/aarch64/aarch64.c (aarch64_declare_function_name): Set
31868 cfun->machine->label_is_assembled.
31869 (aarch64_print_patchable_function_entry): New.
31870 (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): Define.
31871 * config/aarch64/aarch64.h (struct machine_function): New field,
31872 label_is_assembled.
31873
31874 2020-01-21 David Malcolm <dmalcolm@redhat.com>
31875
31876 PR ipa/93315
31877 * ipa-profile.c (ipa_profile): Delete call_sums and set it to
31878 NULL on exit.
31879
31880 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
31881
31882 PR lto/93318
31883 * cgraph.c (cgraph_edge::resolve_speculation,
31884 cgraph_edge::redirect_call_stmt_to_callee): Fix update of
31885 call_stmt_site_hash.
31886
31887 2020-01-21 Martin Liska <mliska@suse.cz>
31888
31889 * config/rs6000/rs6000.c (common_mode_defined): Remove
31890 unused variable.
31891
31892 2020-01-21 Richard Biener <rguenther@suse.de>
31893
31894 PR tree-optimization/92328
31895 * tree-ssa-sccvn.c (vn_reference_lookup_3): Preserve
31896 type when value-numbering same-sized store by inserting a
31897 VIEW_CONVERT_EXPR.
31898 (eliminate_dom_walker::eliminate_stmt): When eliminating
31899 a redundant store handle bit-reinterpretation of the same value.
31900
31901 2020-01-21 Andrew Pinski <apinski@marvel.com>
31902
31903 PR tree-opt/93321
31904 * tree-into-ssa.c (prepare_block_for_update_1): Split out
31905 from ...
31906 (prepare_block_for_update): This. Use a worklist instead of
31907 recursing.
31908
31909 2020-01-21 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
31910
31911 * config/arm/arm.c (clear_operation_p):
31912 Initialise last_regno, skip first iteration
31913 based on the first_set value and use ints instead
31914 of the unnecessary HOST_WIDE_INTs.
31915
31916 2020-01-21 Jakub Jelinek <jakub@redhat.com>
31917
31918 PR target/93073
31919 * config/rs6000/rs6000.c (rs6000_emit_cmove): If using fsel, punt for
31920 compare_mode other than SFmode or DFmode.
31921
31922 2020-01-21 Kito Cheng <kito.cheng@sifive.com>
31923
31924 PR target/93304
31925 * config/riscv/riscv-protos.h (riscv_hard_regno_rename_ok): New.
31926 * config/riscv/riscv.c (riscv_hard_regno_rename_ok): New.
31927 * config/riscv/riscv.h (HARD_REGNO_RENAME_OK): Defined.
31928
31929 2020-01-20 Wilco Dijkstra <wdijkstr@arm.com>
31930
31931 * config/aarch64/aarch64.c (neoversen1_tunings): Set jump_align to 4.
31932
31933 2020-01-20 Andrew Pinski <apinski@marvell.com>
31934
31935 PR middle-end/93242
31936 * targhooks.c (default_print_patchable_function_entry): Use
31937 output_asm_insn to emit the nop instruction.
31938
31939 2020-01-20 Fangrui Song <maskray@google.com>
31940
31941 PR middle-end/93194
31942 * targhooks.c (default_print_patchable_function_entry): Align to
31943 POINTER_SIZE.
31944
31945 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
31946
31947 PR target/93319
31948 * config/i386/i386.c (legitimize_tls_address): Pass Pmode to
31949 gen_tls_dynamic_gnu2_64. Compute GNU2 TLS address in ptr_mode.
31950 * config/i386/i386.md (tls_dynamic_gnu2_64): Renamed to ...
31951 (@tls_dynamic_gnu2_64_<mode>): This. Replace DI with P.
31952 (*tls_dynamic_gnu2_lea_64): Renamed to ...
31953 (*tls_dynamic_gnu2_lea_64_<mode>): This. Replace DI with P.
31954 Remove the {q} suffix from lea.
31955 (*tls_dynamic_gnu2_call_64): Renamed to ...
31956 (*tls_dynamic_gnu2_call_64_<mode>): This. Replace DI with P.
31957 (*tls_dynamic_gnu2_combine_64): Renamed to ...
31958 (*tls_dynamic_gnu2_combine_64_<mode>): This. Replace DI with P.
31959 Pass Pmode to gen_tls_dynamic_gnu2_64.
31960
31961 2020-01-20 Wilco Dijkstra <wdijkstr@arm.com>
31962
31963 * config/aarch64/aarch64.h (SLOW_BYTE_ACCESS): Set to 1.
31964
31965 2020-01-20 Richard Sandiford <richard.sandiford@arm.com>
31966
31967 * config/aarch64/aarch64-sve-builtins-base.cc
31968 (svld1ro_impl::memory_vector_mode): Remove parameter name.
31969
31970 2020-01-20 Richard Biener <rguenther@suse.de>
31971
31972 PR debug/92763
31973 * dwarf2out.c (prune_unused_types): Unconditionally mark
31974 called function DIEs.
31975
31976 2020-01-20 Martin Liska <mliska@suse.cz>
31977
31978 PR tree-optimization/93199
31979 * tree-eh.c (struct leh_state): Add
31980 new field outer_non_cleanup.
31981 (cleanup_is_dead_in): Pass leh_state instead
31982 of eh_region. Add a checking that state->outer_non_cleanup
31983 points to outer non-clean up region.
31984 (lower_try_finally): Record outer_non_cleanup
31985 for this_state.
31986 (lower_catch): Likewise.
31987 (lower_eh_filter): Likewise.
31988 (lower_eh_must_not_throw): Likewise.
31989 (lower_cleanup): Likewise.
31990
31991 2020-01-20 Richard Biener <rguenther@suse.de>
31992
31993 PR tree-optimization/93094
31994 * tree-vectorizer.h (vect_loop_versioning): Adjust.
31995 (vect_transform_loop): Likewise.
31996 * tree-vectorizer.c (try_vectorize_loop_1): Pass down
31997 loop_vectorized_call to vect_transform_loop.
31998 * tree-vect-loop.c (vect_transform_loop): Pass down
31999 loop_vectorized_call to vect_loop_versioning.
32000 * tree-vect-loop-manip.c (vect_loop_versioning): Use
32001 the earlier discovered loop_vectorized_call.
32002
32003 2020-01-19 Eric S. Raymond <esr@thyrsus.com>
32004
32005 * doc/contribute.texi: Update for SVN -> Git transition.
32006 * doc/install.texi: Likewise.
32007
32008 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
32009
32010 PR lto/93318
32011 * cgraph.c (cgraph_edge::make_speculative): Increase number of
32012 speculative targets.
32013 (verify_speculative_call): New function
32014 (cgraph_node::verify_node): Use it.
32015 * ipa-profile.c (ipa_profile): Fix formating; do not set number of
32016 speculations.
32017
32018 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
32019
32020 PR lto/93318
32021 * cgraph.c (cgraph_edge::resolve_speculation): Fix foramting.
32022 (cgraph_edge::make_direct): Remove all indirect targets.
32023 (cgraph_edge::redirect_call_stmt_to_callee): Use make_direct..
32024 (cgraph_node::verify_node): Verify that only one call_stmt or
32025 lto_stmt_uid is set.
32026 * cgraphclones.c (cgraph_edge::clone): Set only one call_stmt or
32027 lto_stmt_uid.
32028 * lto-cgraph.c (lto_output_edge): Simplify streaming of stmt.
32029 (lto_output_ref): Simplify streaming of stmt.
32030 * lto-streamer-in.c (fixup_call_stmt_edges_1): Clear lto_stmt_uid.
32031
32032 2020-01-18 Tamar Christina <tamar.christina@arm.com>
32033
32034 * config/aarch64/aarch64-sve-builtins-base.cc (memory_vector_mode):
32035 Mark parameter unused.
32036
32037 2020-01-18 Hans-Peter Nilsson <hp@axis.com>
32038
32039 * config.gcc <obsolete targets>: Add crisv32-*-* and cris-*-linux*
32040
32041 2019-01-18 Gerald Pfeifer <gerald@pfeifer.com>
32042
32043 * varpool.c (ctor_useable_for_folding_p): Fix grammar.
32044
32045 2020-01-18 Iain Sandoe <iain@sandoe.co.uk>
32046
32047 * Makefile.in: Add coroutine-passes.o.
32048 * builtin-types.def (BT_CONST_SIZE): New.
32049 (BT_FN_BOOL_PTR): New.
32050 (BT_FN_PTR_PTR_CONST_SIZE_BOOL): New.
32051 * builtins.def (DEF_COROUTINE_BUILTIN): New.
32052 * coroutine-builtins.def: New file.
32053 * coroutine-passes.cc: New file.
32054 * function.h (struct GTY function): Add a bit to indicate that the
32055 function is a coroutine component.
32056 * internal-fn.c (expand_CO_FRAME): New.
32057 (expand_CO_YIELD): New.
32058 (expand_CO_SUSPN): New.
32059 (expand_CO_ACTOR): New.
32060 * internal-fn.def (CO_ACTOR): New.
32061 (CO_YIELD): New.
32062 (CO_SUSPN): New.
32063 (CO_FRAME): New.
32064 * passes.def: Add pass_coroutine_lower_builtins,
32065 pass_coroutine_early_expand_ifns.
32066 * tree-pass.h (make_pass_coroutine_lower_builtins): New.
32067 (make_pass_coroutine_early_expand_ifns): New.
32068 * doc/invoke.texi: Document the fcoroutines command line
32069 switch.
32070
32071 2020-01-18 Jakub Jelinek <jakub@redhat.com>
32072
32073 * config/arm/vfp.md (*clear_vfp_multiple): Remove unused variable.
32074
32075 PR target/93312
32076 * config/arm/arm.c (clear_operation_p): Don't use REGNO until
32077 after checking the argument is a REG. Don't use REGNO (reg)
32078 again to set last_regno, reuse regno variable instead.
32079
32080 2020-01-17 David Malcolm <dmalcolm@redhat.com>
32081
32082 * doc/analyzer.texi (Limitations): Add note about NaN.
32083
32084 2020-01-17 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32085 Sudakshina Das <sudi.das@arm.com>
32086
32087 * config/arm/arm.md (ashldi3): Generate thumb2_lsll for both reg
32088 and valid immediate.
32089 (ashrdi3): Generate thumb2_asrl for both reg and valid immediate.
32090 (lshrdi3): Generate thumb2_lsrl for valid immediates.
32091 * config/arm/constraints.md (Pg): New.
32092 * config/arm/predicates.md (long_shift_imm): New.
32093 (arm_reg_or_long_shift_imm): Likewise.
32094 * config/arm/thumb2.md (thumb2_asrl): New immediate alternative.
32095 (thumb2_lsll): Likewise.
32096 (thumb2_lsrl): New.
32097
32098 2020-01-17 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32099 Sudakshina Das <sudi.das@arm.com>
32100
32101 * config/arm/arm.md (ashldi3): Generate thumb2_lsll for TARGET_HAVE_MVE.
32102 (ashrdi3): Generate thumb2_asrl for TARGET_HAVE_MVE.
32103 * config/arm/arm.c (arm_hard_regno_mode_ok): Allocate even odd
32104 register pairs for doubleword quantities for ARMv8.1M-Mainline.
32105 * config/arm/thumb2.md (thumb2_asrl): New.
32106 (thumb2_lsll): Likewise.
32107
32108 2020-01-17 Jakub Jelinek <jakub@redhat.com>
32109
32110 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear): Remove
32111 unused variable.
32112
32113 2020-01-17 Alexander Monakov <amonakov@ispras.ru>
32114
32115 * gdbinit.in (help-gcc-hooks): New command.
32116 (pp, pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, ptc, pdn, ptn, pdd, prc,
32117 pi, pbm, pel, trt): Take $arg0 instead of $ if supplied. Update
32118 documentation.
32119
32120 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
32121
32122 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use the
32123 correct target macro.
32124
32125 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
32126
32127 * config/aarch64/aarch64-protos.h
32128 (aarch64_sve_ld1ro_operand_p): New.
32129 * config/aarch64/aarch64-sve-builtins-base.cc
32130 (class load_replicate): New.
32131 (class svld1ro_impl): New.
32132 (class svld1rq_impl): Change to inherit from load_replicate.
32133 (svld1ro): New sve intrinsic function base.
32134 * config/aarch64/aarch64-sve-builtins-base.def (svld1ro):
32135 New DEF_SVE_FUNCTION.
32136 * config/aarch64/aarch64-sve-builtins-base.h
32137 (svld1ro): New decl.
32138 * config/aarch64/aarch64-sve-builtins.cc
32139 (function_expander::add_mem_operand): Modify assert to allow
32140 OImode.
32141 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): New
32142 pattern.
32143 * config/aarch64/aarch64.c
32144 (aarch64_sve_ld1rq_operand_p): Implement in terms of ...
32145 (aarch64_sve_ld1rq_ld1ro_operand_p): This.
32146 (aarch64_sve_ld1ro_operand_p): New.
32147 * config/aarch64/aarch64.md (UNSPEC_LD1RO): New unspec.
32148 * config/aarch64/constraints.md (UOb,UOh,UOw,UOd): New.
32149 * config/aarch64/predicates.md
32150 (aarch64_sve_ld1ro_operand_{b,h,w,d}): New.
32151
32152 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
32153
32154 * config/aarch64/aarch64-c.c (_ARM_FEATURE_MATMUL_FLOAT64):
32155 Introduce this ACLE specified predefined macro.
32156 * config/aarch64/aarch64-option-extensions.def (f64mm): New.
32157 (fp): Disabling this disables f64mm.
32158 (simd): Disabling this disables f64mm.
32159 (fp16): Disabling this disables f64mm.
32160 (sve): Disabling this disables f64mm.
32161 * config/aarch64/aarch64.h (AARCH64_FL_F64MM): New.
32162 (AARCH64_ISA_F64MM): New.
32163 (TARGET_F64MM): New.
32164 * doc/invoke.texi (f64mm): Document new option.
32165
32166 2020-01-17 Wilco Dijkstra <wdijkstr@arm.com>
32167
32168 * config/aarch64/aarch64.c (generic_tunings): Add branch fusion.
32169 (neoversen1_tunings): Likewise.
32170
32171 2020-01-17 Wilco Dijkstra <wdijkstr@arm.com>
32172
32173 PR target/92692
32174 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap)
32175 Add assert to ensure prolog has been emitted.
32176 (aarch64_split_atomic_op): Likewise.
32177 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>)
32178 Use epilogue_completed rather than reload_completed.
32179 (aarch64_atomic_exchange<mode>): Likewise.
32180 (aarch64_atomic_<atomic_optab><mode>): Likewise.
32181 (atomic_nand<mode>): Likewise.
32182 (aarch64_atomic_fetch_<atomic_optab><mode>): Likewise.
32183 (atomic_fetch_nand<mode>): Likewise.
32184 (aarch64_atomic_<atomic_optab>_fetch<mode>): Likewise.
32185 (atomic_nand_fetch<mode>): Likewise.
32186
32187 2020-01-17 Richard Sandiford <richard.sandiford@arm.com>
32188
32189 PR target/93133
32190 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Return false
32191 for FP modes.
32192 (REVERSE_CONDITION): Delete.
32193 * config/aarch64/iterators.md (CC_ONLY): New mode iterator.
32194 (CCFP_CCFPE): Likewise.
32195 (e): New mode attribute.
32196 * config/aarch64/aarch64.md (ccmp<GPI:mode>): Rename to...
32197 (@ccmp<CC_ONLY:mode><GPI:mode>): ...this, using CC_ONLY instead of CC.
32198 (fccmp<GPF:mode>, fccmpe<GPF:mode>): Merge into...
32199 (@ccmp<CCFP_CCFPE:mode><GPF:mode>): ...this combined pattern.
32200 (@ccmp<CC_ONLY:mode><GPI:mode>_rev): New pattern.
32201 (@ccmp<CCFP_CCFPE:mode><GPF:mode>_rev): Likewise.
32202 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Update
32203 name of generator from gen_ccmpdi to gen_ccmpccdi.
32204 (aarch64_gen_ccmp_next): Use code_for_ccmp. If we want to reverse
32205 the previous comparison but aren't able to, use the new ccmp_rev
32206 patterns instead.
32207
32208 2020-01-17 Richard Sandiford <richard.sandiford@arm.com>
32209
32210 * gimplify.c (gimplify_return_expr): Use poly_int_tree_p rather
32211 than testing directly for INTEGER_CST.
32212 (gimplify_target_expr, gimplify_omp_depend): Likewise.
32213
32214 2020-01-17 Jakub Jelinek <jakub@redhat.com>
32215
32216 PR tree-optimization/93292
32217 * tree-vect-stmts.c (vectorizable_comparison): Punt also if
32218 get_vectype_for_scalar_type returns NULL.
32219
32220 2020-01-16 Jan Hubicka <hubicka@ucw.cz>
32221
32222 * params.opt (-param=max-predicted-iterations): Increase range from 0.
32223 * predict.c (estimate_loops): Add 1 to param_max_predicted_iterations.
32224
32225 2020-01-16 Jan Hubicka <hubicka@ucw.cz>
32226
32227 * ipa-fnsummary.c (estimate_calls_size_and_time): Fix formating of
32228 dump.
32229 * params.opt: (max-predicted-iterations): Set bounds.
32230 * predict.c (real_almost_one, real_br_prob_base,
32231 real_inv_br_prob_base, real_one_half, real_bb_freq_max): Remove.
32232 (propagate_freq): Add max_cyclic_prob parameter; cap cyclic
32233 probabilities; do not truncate to reg_br_prob_bases.
32234 (estimate_loops_at_level): Pass max_cyclic_prob.
32235 (estimate_loops): Compute max_cyclic_prob.
32236 (estimate_bb_frequencies): Do not initialize real_*; update calculation
32237 of back edge prob.
32238 * profile-count.c (profile_probability::to_sreal): New.
32239 * profile-count.h (class sreal): Move up in file.
32240 (profile_probability::to_sreal): Declare.
32241
32242 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32243
32244 * config/arm/arm.c
32245 (arm_invalid_conversion): New function for target hook.
32246 (arm_invalid_unary_op): New function for target hook.
32247 (arm_invalid_binary_op): New function for target hook.
32248
32249 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32250
32251 * config.gcc: Add arm_bf16.h.
32252 * config/arm/arm-builtins.c (arm_mangle_builtin_type): Fix comment.
32253 (arm_simd_builtin_std_type): Add BFmode.
32254 (arm_init_simd_builtin_types): Define element types for vector types.
32255 (arm_init_bf16_types): New function.
32256 (arm_init_builtins): Add arm_init_bf16_types function call.
32257 * config/arm/arm-modes.def: Add BFmode and V4BF, V8BF vector modes.
32258 * config/arm/arm-simd-builtin-types.def: Add V4BF, V8BF.
32259 * config/arm/arm.c (aapcs_vfp_sub_candidate): Add BFmode.
32260 (arm_hard_regno_mode_ok): Add BFmode and tidy up statements.
32261 (arm_vector_mode_supported_p): Add V4BF, V8BF.
32262 (arm_mangle_type): Add __bf16.
32263 * config/arm/arm.h: Add V4BF, V8BF to VALID_NEON_DREG_MODE,
32264 VALID_NEON_QREG_MODE respectively. Add export arm_bf16_type_node,
32265 arm_bf16_ptr_type_node.
32266 * config/arm/arm.md: Add BFmode to movhf expand, mov pattern and
32267 define_split between ARM registers.
32268 * config/arm/arm_bf16.h: New file.
32269 * config/arm/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
32270 * config/arm/iterators.md: (ANY64_BF, VDXMOV, VHFBF, HFBF, fporbf): New.
32271 (VQXMOV): Add V8BF.
32272 * config/arm/neon.md: Add BF vector types to movhf NEON move patterns.
32273 * config/arm/vfp.md: Add BFmode to movhf patterns.
32274
32275 2020-01-16 Mihail Ionescu <mihail.ionescu@arm.com>
32276 Andre Vieira <andre.simoesdiasvieira@arm.com>
32277
32278 * config/arm/arm-cpus.in (mve, mve_float): New features.
32279 (dsp, mve, mve.fp): New options.
32280 * config/arm/arm.h (TARGET_HAVE_MVE, TARGET_HAVE_MVE_FLOAT): Define.
32281 * config/arm/t-rmprofile: Map v8.1-M multilibs to v8-M.
32282 * doc/invoke.texi: Document the armv8.1-m mve and dps options.
32283
32284 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32285 Thomas Preud'homme <thomas.preudhomme@arm.com>
32286
32287 * config/arm/arm-cpus.in (ARMv8_1m_main): Redefine as an extension to
32288 Armv8-M Mainline.
32289 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Remove
32290 error for using -mcmse when targeting Armv8.1-M Mainline.
32291
32292 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32293 Thomas Preud'homme <thomas.preudhomme@arm.com>
32294
32295 * config/arm/arm.md (nonsecure_call_internal): Do not force memory
32296 address in r4 when targeting Armv8.1-M Mainline.
32297 (nonsecure_call_value_internal): Likewise.
32298 * config/arm/thumb2.md (nonsecure_call_reg_thumb2): Make memory address
32299 a register match_operand again. Emit BLXNS when targeting
32300 Armv8.1-M Mainline.
32301 (nonsecure_call_value_reg_thumb2): Likewise.
32302
32303 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32304 Thomas Preud'homme <thomas.preudhomme@arm.com>
32305
32306 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): Declare early.
32307 (cmse_nonsecure_call_inline_register_clear): Define new lazy_fpclear
32308 variable as true when floating-point ABI is not hard. Replace
32309 check against TARGET_HARD_FLOAT_ABI by checks against lazy_fpclear.
32310 Generate VLSTM and VLLDM instruction respectively before and
32311 after a function call to cmse_nonsecure_call function.
32312 * config/arm/unspecs.md (VUNSPEC_VLSTM): Define unspec.
32313 (VUNSPEC_VLLDM): Likewise.
32314 * config/arm/vfp.md (lazy_store_multiple_insn): New define_insn.
32315 (lazy_load_multiple_insn): Likewise.
32316
32317 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32318 Thomas Preud'homme <thomas.preudhomme@arm.com>
32319
32320 * config/arm/arm.c (vfp_emit_fstmd): Declare early.
32321 (arm_emit_vfp_multi_reg_pop): Likewise.
32322 (cmse_nonsecure_call_inline_register_clear): Abstract number of VFP
32323 registers to clear in max_fp_regno. Emit VPUSH and VPOP to save and
32324 restore callee-saved VFP registers.
32325
32326 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32327 Thomas Preud'homme <thomas.preudhomme@arm.com>
32328
32329 * config/arm/arm.c (arm_emit_multi_reg_pop): Declare early.
32330 (cmse_nonsecure_call_clear_caller_saved): Rename into ...
32331 (cmse_nonsecure_call_inline_register_clear): This. Save and clear
32332 callee-saved GPRs as well as clear ip register before doing a nonsecure
32333 call then restore callee-saved GPRs after it when targeting
32334 Armv8.1-M Mainline.
32335 (arm_reorg): Adapt to function rename.
32336
32337 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32338 Thomas Preud'homme <thomas.preudhomme@arm.com>
32339
32340 * config/arm/arm-protos.h (clear_operation_p): Adapt prototype.
32341 * config/arm/arm.c (clear_operation_p): Extend to be able to check a
32342 clear_vfp_multiple pattern based on a new vfp parameter.
32343 (cmse_clear_registers): Generate VSCCLRM to clear VFP registers when
32344 targeting Armv8.1-M Mainline.
32345 (cmse_nonsecure_entry_clear_before_return): Clear VFP registers
32346 unconditionally when targeting Armv8.1-M Mainline architecture. Check
32347 whether VFP registers are available before looking call_used_regs for a
32348 VFP register.
32349 * config/arm/predicates.md (clear_multiple_operation): Adapt to change
32350 of prototype of clear_operation_p.
32351 (clear_vfp_multiple_operation): New predicate.
32352 * config/arm/unspecs.md (VUNSPEC_VSCCLRM_VPR): New volatile unspec.
32353 * config/arm/vfp.md (clear_vfp_multiple): New define_insn.
32354
32355 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32356 Thomas Preud'homme <thomas.preudhomme@arm.com>
32357
32358 * config/arm/arm-protos.h (clear_operation_p): Declare.
32359 * config/arm/arm.c (clear_operation_p): New function.
32360 (cmse_clear_registers): Generate clear_multiple instruction pattern if
32361 targeting Armv8.1-M Mainline or successor.
32362 (output_return_instruction): Only output APSR register clearing if
32363 Armv8.1-M Mainline instructions not available.
32364 (thumb_exit): Likewise.
32365 * config/arm/predicates.md (clear_multiple_operation): New predicate.
32366 * config/arm/thumb2.md (clear_apsr): New define_insn.
32367 (clear_multiple): Likewise.
32368 * config/arm/unspecs.md (VUNSPEC_CLRM_APSR): New volatile unspec.
32369
32370 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32371 Thomas Preud'homme <thomas.preudhomme@arm.com>
32372
32373 * config/arm/arm.c (fp_sysreg_names): Declare and define.
32374 (use_return_insn): Also return false for Armv8.1-M Mainline.
32375 (output_return_instruction): Skip FPSCR clearing if Armv8.1-M
32376 Mainline instructions are available.
32377 (arm_compute_frame_layout): Allocate space in frame for FPCXTNS
32378 when targeting Armv8.1-M Mainline Security Extensions.
32379 (arm_expand_prologue): Save FPCXTNS if this is an Armv8.1-M
32380 Mainline entry function.
32381 (cmse_nonsecure_entry_clear_before_return): Clear IP and r4 if
32382 targeting Armv8.1-M Mainline or successor.
32383 (arm_expand_epilogue): Fix indentation of caller-saved register
32384 clearing. Restore FPCXTNS if this is an Armv8.1-M Mainline
32385 entry function.
32386 * config/arm/arm.h (TARGET_HAVE_FP_CMSE): New macro.
32387 (FP_SYSREGS): Likewise.
32388 (enum vfp_sysregs_encoding): Define enum.
32389 (fp_sysreg_names): Declare.
32390 * config/arm/unspecs.md (VUNSPEC_VSTR_VLDR): New volatile unspec.
32391 * config/arm/vfp.md (push_fpsysreg_insn): New define_insn.
32392 (pop_fpsysreg_insn): Likewise.
32393
32394 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
32395 Thomas Preud'homme <thomas.preudhomme@arm.com>
32396
32397 * config/arm/arm-cpus.in (armv8_1m_main): New feature.
32398 (ARMv4, ARMv4t, ARMv5t, ARMv5te, ARMv5tej, ARMv6, ARMv6j, ARMv6k,
32399 ARMv6z, ARMv6kz, ARMv6zk, ARMv6t2, ARMv6m, ARMv7, ARMv7a, ARMv7ve,
32400 ARMv7r, ARMv7m, ARMv7em, ARMv8a, ARMv8_1a, ARMv8_2a, ARMv8_3a,
32401 ARMv8_4a, ARMv8_5a, ARMv8m_base, ARMv8m_main, ARMv8r): Reindent.
32402 (ARMv8_1m_main): New feature group.
32403 (armv8.1-m.main): New architecture.
32404 * config/arm/arm-tables.opt: Regenerate.
32405 * config/arm/arm.c (arm_arch8_1m_main): Define and default initialize.
32406 (arm_option_reconfigure_globals): Initialize arm_arch8_1m_main.
32407 (arm_options_perform_arch_sanity_checks): Error out when targeting
32408 Armv8.1-M Mainline Security Extensions.
32409 * config/arm/arm.h (arm_arch8_1m_main): Declare.
32410
32411 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32412
32413 * config/aarch64/aarch64-simd-builtins.def (aarch64_bfdot,
32414 aarch64_bfdot_lane, aarch64_bfdot_laneq): New.
32415 * config/aarch64/aarch64-simd.md (aarch64_bfdot, aarch64_bfdot_lane,
32416 aarch64_bfdot_laneq): New.
32417 * config/aarch64/arm_bf16.h (vbfdot_f32, vbfdotq_f32,
32418 vbfdot_lane_f32, vbfdotq_lane_f32, vbfdot_laneq_f32,
32419 vbfdotq_laneq_f32): New.
32420 * config/aarch64/iterators.md (UNSPEC_BFDOT, Vbfdottype,
32421 VBFMLA_W, VBF): New.
32422 (isquadop): Add V4BF, V8BF.
32423
32424 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32425
32426 * config/aarch64/aarch64-builtins.c: (enum aarch64_type_qualifiers):
32427 New qualifier_lane_quadtup_index, TYPES_TERNOP_SSUS,
32428 TYPES_QUADOPSSUS_LANE_QUADTUP, TYPES_QUADOPSSSU_LANE_QUADTUP.
32429 (aarch64_simd_expand_args): Add case SIMD_ARG_LANE_QUADTUP_INDEX.
32430 (aarch64_simd_expand_builtin): Add qualifier_lane_quadtup_index.
32431 * config/aarch64/aarch64-simd-builtins.def (usdot, usdot_lane,
32432 usdot_laneq, sudot_lane,sudot_laneq): New.
32433 * config/aarch64/aarch64-simd.md (aarch64_usdot): New.
32434 (aarch64_<sur>dot_lane): New.
32435 * config/aarch64/arm_neon.h (vusdot_s32): New.
32436 (vusdotq_s32): New.
32437 (vusdot_lane_s32): New.
32438 (vsudot_lane_s32): New.
32439 * config/aarch64/iterators.md (DOTPROD_I8MM): New iterator.
32440 (UNSPEC_USDOT, UNSPEC_SUDOT): New unspecs.
32441
32442 2020-01-16 Martin Liska <mliska@suse.cz>
32443
32444 * value-prof.c (dump_histogram_value): Fix
32445 obvious spacing issue.
32446
32447 2020-01-16 Andrew Pinski <apinski@marvell.com>
32448
32449 * tree-ssa-sccvn.c(vn_reference_lookup_3): Check lhs for
32450 !storage_order_barrier_p.
32451
32452 2020-01-16 Andrew Pinski <apinski@marvell.com>
32453
32454 * sched-int.h (_dep): Add unused bit-field field for the padding.
32455 * sched-deps.c (init_dep_1): Init unused field.
32456
32457 2020-01-16 Andrew Pinski <apinski@marvell.com>
32458
32459 * optabs.h (create_expand_operand): Initialize target field also.
32460
32461 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
32462
32463 PR tree-optimization/92429
32464 * tree-ssa-loop-niter.h (simplify_replace_tree): Add parameter.
32465 * tree-ssa-loop-niter.c (simplify_replace_tree): Add parameter to
32466 control folding.
32467 * tree-vect-loop.c (update_epilogue_vinfo): Do not fold when replacing
32468 tree.
32469
32470 2020-01-16 Richard Sandiford <richard.sandiford@arm.com>
32471
32472 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move): Apply
32473 aarch64_sve_int_mode to each mode.
32474
32475 2020-01-15 David Malcolm <dmalcolm@redhat.com>
32476
32477 * doc/analyzer.texi (Overview): Add note about
32478 -fdump-ipa-analyzer.
32479
32480 2020-01-15 Wilco Dijkstra <wdijkstr@arm.com>
32481
32482 PR tree-optimization/93231
32483 * tree-ssa-forwprop.c (optimize_count_trailing_zeroes): Check
32484 input_type is unsigned. Use tree_to_shwi for shift constant.
32485 Check CST_STRING element size is CHAR_TYPE_SIZE bits.
32486 (simplify_count_trailing_zeroes): Add test to handle known non-zero
32487 inputs more efficiently.
32488
32489 2020-01-15 Uroš Bizjak <ubizjak@gmail.com>
32490
32491 * config/i386/i386.md (*movsf_internal): Do not require
32492 SSE2 ISA for alternatives 14 and 15.
32493
32494 2020-01-15 Richard Biener <rguenther@suse.de>
32495
32496 PR middle-end/93273
32497 * tree-eh.c (sink_clobbers): If we already visited the destination
32498 block do not defer insertion.
32499 (pass_lower_eh_dispatch::execute): Maintain BB_VISITED for
32500 the purpose of defered insertion.
32501
32502 2020-01-15 Jakub Jelinek <jakub@redhat.com>
32503
32504 * BASE-VER: Bump to 10.0.1.
32505
32506 2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
32507
32508 PR tree-optimization/93247
32509 * tree-vect-loop.c (update_epilogue_loop_vinfo): Check the access
32510 type of the stmt that we're going to vectorize.
32511
32512 2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
32513
32514 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Use a
32515 VIEW_CONVERT_EXPR if the vectorized constructor has a diffeent
32516 type from the lhs.
32517
32518 2020-01-15 Martin Liska <mliska@suse.cz>
32519
32520 * ipa-profile.c (ipa_profile_read_edge_summary): Do not allow
32521 2 calls of streamer_read_hwi in a function call.
32522
32523 2020-01-15 Richard Biener <rguenther@suse.de>
32524
32525 * alias.c (record_alias_subset): Avoid redundant work when
32526 subset is already recorded.
32527
32528 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32529
32530 * doc/invoke.texi (-fdiagnostics-show-cwe): Add note that some of
32531 the analyzer options provide CWE identifiers.
32532
32533 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32534
32535 * tree-diagnostic-path.cc (path_summary::event_range::print):
32536 When testing for UNKNOWN_LOCATION, look through ad-hoc wrappers
32537 using get_pure_location.
32538
32539 2020-01-15 Jakub Jelinek <jakub@redhat.com>
32540
32541 PR tree-optimization/93262
32542 * tree-ssa-dse.c (maybe_trim_memstar_call): For *_chk builtins,
32543 perform head trimming only if the last argument is constant,
32544 either all ones, or larger or equal to head trim, in the latter
32545 case decrease the last argument by head_trim.
32546
32547 PR tree-optimization/93249
32548 * tree-ssa-dse.c: Include builtins.h and gimple-fold.h.
32549 (maybe_trim_memstar_call): Move head_trim and tail_trim vars to
32550 function body scope, reindent. For BUILTIN_IN_STRNCPY*, don't
32551 perform head trim unless we can prove there are no '\0' chars
32552 from the source among the first head_trim chars.
32553
32554 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32555
32556 * Makefile.in (ANALYZER_OBJS): Add analyzer/function-set.o.
32557
32558 2020-01-15 Jakub Jelinek <jakub@redhat.com>
32559
32560 PR target/93009
32561 * config/i386/sse.md
32562 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1,
32563 *<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1,
32564 *<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1,
32565 *<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Use
32566 just a single alternative instead of two, make operands 1 and 2
32567 commutative.
32568
32569 2020-01-14 Jan Hubicka <hubicka@ucw.cz>
32570
32571 PR lto/91576
32572 * ipa-devirt.c (odr_types_equivalent_p): Compare TREE_ADDRESSABLE and
32573 TYPE_MODE.
32574
32575 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32576
32577 * Makefile.in (lang_opt_files): Add analyzer.opt.
32578 (ANALYZER_OBJS): New.
32579 (OBJS): Add digraph.o, graphviz.o, ordered-hash-map-tests.o,
32580 tristate.o and ANALYZER_OBJS.
32581 (TEXI_GCCINT_FILES): Add analyzer.texi.
32582 * common.opt (-fanalyzer): New driver option.
32583 * config.in: Regenerate.
32584 * configure: Regenerate.
32585 * configure.ac (--disable-analyzer, ENABLE_ANALYZER): New option.
32586 (gccdepdir): Also create depdir for "analyzer" subdir.
32587 * digraph.cc: New file.
32588 * digraph.h: New file.
32589 * doc/analyzer.texi: New file.
32590 * doc/gccint.texi ("Static Analyzer") New menu item.
32591 (analyzer.texi): Include it.
32592 * doc/invoke.texi ("Static Analyzer Options"): New list and new section.
32593 ("Warning Options"): Add static analysis warnings to the list.
32594 (-Wno-analyzer-double-fclose): New option.
32595 (-Wno-analyzer-double-free): New option.
32596 (-Wno-analyzer-exposure-through-output-file): New option.
32597 (-Wno-analyzer-file-leak): New option.
32598 (-Wno-analyzer-free-of-non-heap): New option.
32599 (-Wno-analyzer-malloc-leak): New option.
32600 (-Wno-analyzer-possible-null-argument): New option.
32601 (-Wno-analyzer-possible-null-dereference): New option.
32602 (-Wno-analyzer-null-argument): New option.
32603 (-Wno-analyzer-null-dereference): New option.
32604 (-Wno-analyzer-stale-setjmp-buffer): New option.
32605 (-Wno-analyzer-tainted-array-index): New option.
32606 (-Wno-analyzer-use-after-free): New option.
32607 (-Wno-analyzer-use-of-pointer-in-stale-stack-frame): New option.
32608 (-Wno-analyzer-use-of-uninitialized-value): New option.
32609 (-Wanalyzer-too-complex): New option.
32610 (-fanalyzer-call-summaries): New warning.
32611 (-fanalyzer-checker=): New warning.
32612 (-fanalyzer-fine-grained): New warning.
32613 (-fno-analyzer-state-merge): New warning.
32614 (-fno-analyzer-state-purge): New warning.
32615 (-fanalyzer-transitivity): New warning.
32616 (-fanalyzer-verbose-edges): New warning.
32617 (-fanalyzer-verbose-state-changes): New warning.
32618 (-fanalyzer-verbosity=): New warning.
32619 (-fdump-analyzer): New warning.
32620 (-fdump-analyzer-callgraph): New warning.
32621 (-fdump-analyzer-exploded-graph): New warning.
32622 (-fdump-analyzer-exploded-nodes): New warning.
32623 (-fdump-analyzer-exploded-nodes-2): New warning.
32624 (-fdump-analyzer-exploded-nodes-3): New warning.
32625 (-fdump-analyzer-supergraph): New warning.
32626 * doc/sourcebuild.texi (dg-require-dot): New.
32627 (dg-check-dot): New.
32628 * gdbinit.in (break-on-saved-diagnostic): New command.
32629 * graphviz.cc: New file.
32630 * graphviz.h: New file.
32631 * ordered-hash-map-tests.cc: New file.
32632 * ordered-hash-map.h: New file.
32633 * passes.def (pass_analyzer): Add before
32634 pass_ipa_whole_program_visibility.
32635 * selftest-run-tests.c (selftest::run_tests): Call
32636 selftest::ordered_hash_map_tests_cc_tests.
32637 * selftest.h (selftest::ordered_hash_map_tests_cc_tests): New
32638 decl.
32639 * shortest-paths.h: New file.
32640 * timevar.def (TV_ANALYZER): New timevar.
32641 (TV_ANALYZER_SUPERGRAPH): Likewise.
32642 (TV_ANALYZER_STATE_PURGE): Likewise.
32643 (TV_ANALYZER_PLAN): Likewise.
32644 (TV_ANALYZER_SCC): Likewise.
32645 (TV_ANALYZER_WORKLIST): Likewise.
32646 (TV_ANALYZER_DUMP): Likewise.
32647 (TV_ANALYZER_DIAGNOSTICS): Likewise.
32648 (TV_ANALYZER_SHORTEST_PATHS): Likewise.
32649 * tree-pass.h (make_pass_analyzer): New decl.
32650 * tristate.cc: New file.
32651 * tristate.h: New file.
32652
32653 2020-01-14 Uroš Bizjak <ubizjak@gmail.com>
32654
32655 PR target/93254
32656 * config/i386/i386.md (*movsf_internal): Require SSE2 ISA for
32657 alternatives 9 and 10.
32658
32659 2020-01-14 David Malcolm <dmalcolm@redhat.com>
32660
32661 * attribs.c (excl_hash_traits::empty_zero_p): New static constant.
32662 * gcov.c (function_start_pair_hash::empty_zero_p): Likewise.
32663 * graphite.c (struct sese_scev_hash::empty_zero_p): Likewise.
32664 * hash-map-tests.c (selftest::test_nonzero_empty_key): New selftest.
32665 (selftest::hash_map_tests_c_tests): Call it.
32666 * hash-map-traits.h (simple_hashmap_traits::empty_zero_p):
32667 New static constant, using the value of = H::empty_zero_p.
32668 (unbounded_hashmap_traits::empty_zero_p): Likewise, using the value
32669 from default_hash_traits <Value>.
32670 * hash-map.h (hash_map::empty_zero_p): Likewise, using the value
32671 from Traits.
32672 * hash-set-tests.c (value_hash_traits::empty_zero_p): Likewise.
32673 * hash-table.h (hash_table::alloc_entries): Guard the loop of
32674 calls to mark_empty with !Descriptor::empty_zero_p.
32675 (hash_table::empty_slow): Conditionalize the memset call with a
32676 check that Descriptor::empty_zero_p; otherwise, loop through the
32677 entries calling mark_empty on them.
32678 * hash-traits.h (int_hash::empty_zero_p): New static constant.
32679 (pointer_hash::empty_zero_p): Likewise.
32680 (pair_hash::empty_zero_p): Likewise.
32681 * ipa-devirt.c (default_hash_traits <type_pair>::empty_zero_p):
32682 Likewise.
32683 * ipa-prop.c (ipa_bit_ggc_hash_traits::empty_zero_p): Likewise.
32684 (ipa_vr_ggc_hash_traits::empty_zero_p): Likewise.
32685 * profile.c (location_triplet_hash::empty_zero_p): Likewise.
32686 * sanopt.c (sanopt_tree_triplet_hash::empty_zero_p): Likewise.
32687 (sanopt_tree_couple_hash::empty_zero_p): Likewise.
32688 * tree-hasher.h (int_tree_hasher::empty_zero_p): Likewise.
32689 * tree-ssa-sccvn.c (vn_ssa_aux_hasher::empty_zero_p): Likewise.
32690 * tree-vect-slp.c (bst_traits::empty_zero_p): Likewise.
32691 * tree-vectorizer.h
32692 (default_hash_traits<scalar_cond_masked_key>::empty_zero_p):
32693 Likewise.
32694
32695 2020-01-14 Kewen Lin <linkw@gcc.gnu.org>
32696
32697 * cfgloopanal.c (average_num_loop_insns): Free bbs when early return,
32698 fix typo on return value.
32699
32700 2020-01-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
32701
32702 PR ipa/69678
32703 * cgraph.c (symbol_table::create_edge): Init speculative_id and
32704 target_prob.
32705 (cgraph_edge::make_speculative): Add param for setting speculative_id
32706 and target_prob.
32707 (cgraph_edge::speculative_call_info): Update comments and find reference
32708 by speculative_id for multiple indirect targets.
32709 (cgraph_edge::resolve_speculation): Decrease the speculations
32710 for indirect edge, drop it's speculative if not direct target
32711 left. Update comments.
32712 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
32713 (cgraph_node::dump): Print num_speculative_call_targets.
32714 (cgraph_node::verify_node): Don't report error if speculative
32715 edge not include statement.
32716 (cgraph_edge::num_speculative_call_targets_p): New function.
32717 * cgraph.h (int common_target_id): Remove.
32718 (int common_target_probability): Remove.
32719 (num_speculative_call_targets): New variable.
32720 (make_speculative): Add param for setting speculative_id.
32721 (cgraph_edge::num_speculative_call_targets_p): New declare.
32722 (target_prob): New variable.
32723 (speculative_id): New variable.
32724 * ipa-fnsummary.c (analyze_function_body): Create and duplicate
32725 call summaries for multiple speculative call targets.
32726 * cgraphclones.c (cgraph_node::create_clone): Clone speculative_id.
32727 * ipa-profile.c (struct speculative_call_target): New struct.
32728 (class speculative_call_summary): New class.
32729 (class speculative_call_summaries): New class.
32730 (call_sums): New variable.
32731 (ipa_profile_generate_summary): Generate indirect multiple targets summaries.
32732 (ipa_profile_write_edge_summary): New function.
32733 (ipa_profile_write_summary): Stream out indirect multiple targets summaries.
32734 (ipa_profile_dump_all_summaries): New function.
32735 (ipa_profile_read_edge_summary): New function.
32736 (ipa_profile_read_summary_section): New function.
32737 (ipa_profile_read_summary): Stream in indirect multiple targets summaries.
32738 (ipa_profile): Generate num_speculative_call_targets from
32739 profile summaries.
32740 * ipa-ref.h (speculative_id): New variable.
32741 * ipa-utils.c (ipa_merge_profiles): Update with target_prob.
32742 * lto-cgraph.c (lto_output_edge): Remove indirect common_target_id and
32743 common_target_probability. Stream out speculative_id and
32744 num_speculative_call_targets.
32745 (input_edge): Likewise.
32746 * predict.c (dump_prediction): Remove edges count assert to be
32747 precise.
32748 * symtab.c (symtab_node::create_reference): Init speculative_id.
32749 (symtab_node::clone_references): Clone speculative_id.
32750 (symtab_node::clone_referring): Clone speculative_id.
32751 (symtab_node::clone_reference): Clone speculative_id.
32752 (symtab_node::clear_stmts_in_references): Clear speculative_id.
32753 * tree-inline.c (copy_bb): Duplicate all the speculative edges
32754 if indirect call contains multiple speculative targets.
32755 * value-prof.h (check_ic_target): Remove.
32756 * value-prof.c (gimple_value_profile_transformations):
32757 Use void function gimple_ic_transform.
32758 * value-prof.c (gimple_ic_transform): Handle topn case.
32759 Fix comment typos. Change it to a void function.
32760
32761 2020-01-13 Andrew Pinski <apinski@marvell.com>
32762
32763 * config/aarch64/aarch64-cores.def (octeontx2): New define.
32764 (octeontx2t98): New define.
32765 (octeontx2t96): New define.
32766 (octeontx2t93): New define.
32767 (octeontx2f95): New define.
32768 (octeontx2f95n): New define.
32769 (octeontx2f95mm): New define.
32770 * config/aarch64/aarch64-tune.md: Regenerate.
32771 * doc/invoke.texi (-mcpu=): Document the new cpu types.
32772
32773 2020-01-13 Jason Merrill <jason@redhat.com>
32774
32775 PR c++/33799 - destroy return value if local cleanup throws.
32776 * gimplify.c (gimplify_return_expr): Handle COMPOUND_EXPR.
32777
32778 2020-01-13 Martin Liska <mliska@suse.cz>
32779
32780 * ipa-cp.c (get_max_overall_size): Use newly
32781 renamed param param_ipa_cp_unit_growth.
32782 * params.opt: Remove legacy param name.
32783
32784 2020-01-13 Martin Sebor <msebor@redhat.com>
32785
32786 PR tree-optimization/93213
32787 * tree-ssa-strlen.c (handle_store): Only allow single-byte nul-over-nul
32788 stores to be eliminated.
32789
32790 2020-01-13 Martin Liska <mliska@suse.cz>
32791
32792 * opts.c (print_help): Do not print CL_PARAM
32793 and CL_WARNING for CL_OPTIMIZATION.
32794
32795 2020-01-13 Jonathan Wakely <jwakely@redhat.com>
32796
32797 PR driver/92757
32798 * doc/invoke.texi (Warning Options): Add caveat about some warnings
32799 depending on optimization settings.
32800
32801 2020-01-13 Jakub Jelinek <jakub@redhat.com>
32802
32803 PR tree-optimization/90838
32804 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
32805 SCALAR_INT_TYPE_MODE directly in CTZ_DEFINED_VALUE_AT_ZERO macro
32806 argument rather than to initialize temporary for targets that
32807 don't use the mode argument at all. Initialize ctzval to avoid
32808 warning at -O0.
32809
32810 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
32811
32812 * tree.h (OMP_CLAUSE_USE_DEVICE_PTR_IF_PRESENT): New definition.
32813 * tree-core.h: Document it.
32814 * gimplify.c (gimplify_omp_workshare): Set it.
32815 * omp-low.c (lower_omp_target): Use it.
32816 * tree-pretty-print.c (dump_omp_clause): Print it.
32817
32818 * omp-low.c (lower_omp_target) <OMP_CLAUSE_USE_DEVICE_PTR etc.>:
32819 Assert that for OpenACC we always have 'GOMP_MAP_USE_DEVICE_PTR'.
32820
32821 2020-01-10 David Malcolm <dmalcolm@redhat.com>
32822
32823 * Makefile.in (OBJS): Add tree-diagnostic-path.o.
32824 * common.opt (fdiagnostics-path-format=): New option.
32825 (diagnostic_path_format): New enum.
32826 (fdiagnostics-show-path-depths): New option.
32827 * coretypes.h (diagnostic_event_id_t): New forward decl.
32828 * diagnostic-color.c (color_dict): Add "path".
32829 * diagnostic-event-id.h: New file.
32830 * diagnostic-format-json.cc (json_from_expanded_location): Make
32831 non-static.
32832 (json_end_diagnostic): Call context->make_json_for_path if it
32833 exists and the diagnostic has a path.
32834 (diagnostic_output_format_init): Clear context->print_path.
32835 * diagnostic-path.h: New file.
32836 * diagnostic-show-locus.c (colorizer::set_range): Special-case
32837 when printing a run of events in a diagnostic_path so that they
32838 all get the same color.
32839 (layout::m_diagnostic_path_p): New field.
32840 (layout::layout): Initialize it.
32841 (layout::print_any_labels): Don't colorize the label text for an
32842 event in a diagnostic_path.
32843 (gcc_rich_location::add_location_if_nearby): Add
32844 "restrict_to_current_line_spans" and "label" params. Pass the
32845 former to layout.maybe_add_location_range; pass the latter
32846 when calling add_range.
32847 * diagnostic.c: Include "diagnostic-path.h".
32848 (diagnostic_initialize): Initialize context->path_format and
32849 context->show_path_depths.
32850 (diagnostic_show_any_path): New function.
32851 (diagnostic_path::interprocedural_p): New function.
32852 (diagnostic_report_diagnostic): Call diagnostic_show_any_path.
32853 (simple_diagnostic_path::num_events): New function.
32854 (simple_diagnostic_path::get_event): New function.
32855 (simple_diagnostic_path::add_event): New function.
32856 (simple_diagnostic_event::simple_diagnostic_event): New ctor.
32857 (simple_diagnostic_event::~simple_diagnostic_event): New dtor.
32858 (debug): New overload taking a diagnostic_path *.
32859 * diagnostic.def (DK_DIAGNOSTIC_PATH): New.
32860 * diagnostic.h (enum diagnostic_path_format): New enum.
32861 (json::value): New forward decl.
32862 (diagnostic_context::path_format): New field.
32863 (diagnostic_context::show_path_depths): New field.
32864 (diagnostic_context::print_path): New callback field.
32865 (diagnostic_context::make_json_for_path): New callback field.
32866 (diagnostic_show_any_path): New decl.
32867 (json_from_expanded_location): New decl.
32868 * doc/invoke.texi (-fdiagnostics-path-format=): New option.
32869 (-fdiagnostics-show-path-depths): New option.
32870 (-fdiagnostics-color): Add "path" to description of default
32871 GCC_COLORS; describe it.
32872 (-fdiagnostics-format=json): Document how diagnostic paths are
32873 represented in the JSON output format.
32874 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
32875 Add optional params "restrict_to_current_line_spans" and "label".
32876 * opts.c (common_handle_option): Handle
32877 OPT_fdiagnostics_path_format_ and
32878 OPT_fdiagnostics_show_path_depths.
32879 * pretty-print.c: Include "diagnostic-event-id.h".
32880 (pp_format): Implement "%@" format code for printing
32881 diagnostic_event_id_t *.
32882 (selftest::test_pp_format): Add tests for "%@".
32883 * selftest-run-tests.c (selftest::run_tests): Call
32884 selftest::tree_diagnostic_path_cc_tests.
32885 * selftest.h (selftest::tree_diagnostic_path_cc_tests): New decl.
32886 * toplev.c (general_init): Initialize global_dc->path_format and
32887 global_dc->show_path_depths.
32888 * tree-diagnostic-path.cc: New file.
32889 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Make
32890 non-static. Drop "diagnostic" param in favor of storing the
32891 original value of "where" and re-using it.
32892 (virt_loc_aware_diagnostic_finalizer): Update for dropped param of
32893 maybe_unwind_expanded_macro_loc.
32894 (tree_diagnostics_defaults): Initialize context->print_path and
32895 context->make_json_for_path.
32896 * tree-diagnostic.h (default_tree_diagnostic_path_printer): New
32897 decl.
32898 (default_tree_make_json_for_path): New decl.
32899 (maybe_unwind_expanded_macro_loc): New decl.
32900
32901 2020-01-10 Jakub Jelinek <jakub@redhat.com>
32902
32903 PR tree-optimization/93210
32904 * fold-const.h (native_encode_initializer,
32905 can_native_interpret_type_p): Declare.
32906 * fold-const.c (native_encode_string): Fix up handling with off != -1,
32907 simplify.
32908 (native_encode_initializer): New function, moved from dwarf2out.c.
32909 Adjust to native_encode_expr compatible arguments, including dry-run
32910 and partial extraction modes. Don't handle STRING_CST.
32911 (can_native_interpret_type_p): No longer static.
32912 * gimple-fold.c (fold_ctor_reference): For native_encode_expr, verify
32913 offset / BITS_PER_UNIT fits into int and don't call it if
32914 can_native_interpret_type_p fails. If suboff is NULL and for
32915 CONSTRUCTOR fold_{,non}array_ctor_reference returns NULL, retry with
32916 native_encode_initializer.
32917 (fold_const_aggregate_ref_1): Formatting fix.
32918 * dwarf2out.c (native_encode_initializer): Moved to fold-const.c.
32919 (tree_add_const_value_attribute): Adjust caller.
32920
32921 PR tree-optimization/90838
32922 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
32923 SCALAR_INT_TYPE_MODE instead of TYPE_MODE as operand of
32924 CTZ_DEFINED_VALUE_AT_ZERO.
32925
32926 2020-01-10 Vladimir Makarov <vmakarov@redhat.com>
32927
32928 PR inline-asm/93027
32929 * lra-constraints.c (match_reload): Permit input operands have the
32930 same mode as output while other input operands have a different
32931 mode.
32932
32933 2020-01-10 Wilco Dijkstra <wdijkstr@arm.com>
32934
32935 PR tree-optimization/90838
32936 * tree-ssa-forwprop.c (check_ctz_array): Add new function.
32937 (check_ctz_string): Likewise.
32938 (optimize_count_trailing_zeroes): Likewise.
32939 (simplify_count_trailing_zeroes): Likewise.
32940 (pass_forwprop::execute): Try ctz simplification.
32941 * match.pd: Add matching for ctz idioms.
32942
32943 2020-01-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32944
32945 * config/aarch64/aarch64.c (aarch64_invalid_conversion): New function
32946 for target hook.
32947 (aarch64_invalid_unary_op): New function for target hook.
32948 (aarch64_invalid_binary_op): New function for target hook.
32949
32950 2020-01-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
32951
32952 * config.gcc: Add arm_bf16.h.
32953 * config/aarch64/aarch64-builtins.c
32954 (aarch64_simd_builtin_std_type): Add BFmode.
32955 (aarch64_init_simd_builtin_types): Define element types for vector
32956 types.
32957 (aarch64_init_bf16_types): New function.
32958 (aarch64_general_init_builtins): Add arm_init_bf16_types function call.
32959 * config/aarch64/aarch64-modes.def: Add BFmode and V4BF, V8BF vector
32960 modes.
32961 * config/aarch64/aarch64-simd-builtin-types.def: Add BF SIMD types.
32962 * config/aarch64/aarch64-simd.md: Add BF vector types to NEON move
32963 patterns.
32964 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): Add V4BF.
32965 (AARCH64_VALID_SIMD_QREG_MODE): Add V8BF.
32966 * config/aarch64/aarch64.c
32967 (aarch64_classify_vector_mode): Add support for BF types.
32968 (aarch64_gimplify_va_arg_expr): Add support for BF types.
32969 (aarch64_vq_mode): Add support for BF types.
32970 (aarch64_simd_container_mode): Add support for BF types.
32971 (aarch64_mangle_type): Add support for BF scalar type.
32972 * config/aarch64/aarch64.md: Add BFmode to movhf pattern.
32973 * config/aarch64/arm_bf16.h: New file.
32974 * config/aarch64/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
32975 * config/aarch64/iterators.md: Add BF types to mode attributes.
32976 (HFBF, GPF_TF_F16_MOV, VDMOV, VQMOV, VQMOV_NO2Em VALL_F16MOV): New.
32977
32978 2020-01-10 Jason Merrill <jason@redhat.com>
32979
32980 PR c++/93173 - incorrect tree sharing.
32981 * gimplify.c (copy_if_shared): No longer static.
32982 * gimplify.h: Declare it.
32983
32984 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
32985
32986 * doc/invoke.texi (-msve-vector-bits=): Document that
32987 -msve-vector-bits=128 now generates VL-specific code for
32988 little-endian targets.
32989 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types): Use
32990 build_vector_type_for_mode to construct the data vector types.
32991 * config/aarch64/aarch64.c (aarch64_convert_sve_vector_bits): Generate
32992 VL-specific code for -msve-vector-bits=128 on little-endian targets.
32993 (aarch64_simd_container_mode): Always prefer Advanced SIMD modes
32994 for 128-bit vectors.
32995
32996 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
32997
32998 * config/aarch64/aarch64.c (aarch64_evpc_sel): Fix gen_vcond_mask
32999 invocation.
33000
33001 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
33002
33003 * config/aarch64/aarch64-builtins.c
33004 (aarch64_builtin_vectorized_function): Check for specific vector modes,
33005 rather than checking the number of elements and the element mode.
33006
33007 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
33008
33009 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
33010 get_related_vectype_for_scalar_type rather than build_vector_type
33011 to create the index type for a conditional reduction.
33012
33013 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
33014
33015 * tree-vect-loop.c (update_epilogue_loop_vinfo): Update DR_REF
33016 for any type of gather or scatter, including strided accesses.
33017
33018 2020-01-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
33019
33020 * tree-vectorizer.h (get_dr_vinfo_offset): Add missing function
33021 comment.
33022
33023 2020-01-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
33024
33025 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Use
33026 get_dr_vinfo_offset
33027 * tree-vect-loop.c (update_epilogue_loop_vinfo): Remove orig_drs_init
33028 parameter and its use to reset DR_OFFSET's.
33029 (vect_transform_loop): Remove orig_drs_init argument.
33030 * tree-vect-loop-manip.c (vect_update_init_of_dr): Update the offset
33031 member of dr_vec_info rather than the offset of the associated
33032 data_reference's innermost_loop_behavior.
33033 (vect_update_init_of_dr): Pass dr_vec_info instead of data_reference.
33034 (vect_do_peeling): Remove orig_drs_init parameter and its construction.
33035 * tree-vect-stmts.c (check_scan_store): Replace use of DR_OFFSET with
33036 get_dr_vinfo_offset.
33037 (vectorizable_store): Likewise.
33038 (vectorizable_load): Likewise.
33039
33040 2020-01-10 Richard Biener <rguenther@suse.de>
33041
33042 * gimple-ssa-store-merging
33043 (pass_store_merging::terminate_all_aliasing_chains): Cache alias info.
33044
33045 2020-01-10 Martin Liska <mliska@suse.cz>
33046
33047 PR ipa/93217
33048 * ipa-inline-analysis.c (offline_size): Make proper parenthesis
33049 encapsulation that was there before r280040.
33050
33051 2020-01-10 Richard Biener <rguenther@suse.de>
33052
33053 PR middle-end/93199
33054 * tree-eh.c (sink_clobbers): Move clobbers to out-of-IL
33055 sequences to avoid walking them again for secondary opportunities.
33056 (pass_lower_eh_dispatch::execute): Instead actually insert
33057 them here.
33058
33059 2020-01-10 Richard Biener <rguenther@suse.de>
33060
33061 PR middle-end/93199
33062 * tree-eh.c (redirect_eh_edge_1): Avoid some work if possible.
33063 (cleanup_all_empty_eh): Walk landing pads in reverse order to
33064 avoid quadraticness.
33065
33066 2020-01-10 Martin Jambor <mjambor@suse.cz>
33067
33068 * params.opt (param_ipa_sra_max_replacements): Mark as Optimization.
33069 * ipa-sra.c (pull_accesses_from_callee): New parameter caller, use it
33070 to get param_ipa_sra_max_replacements.
33071 (param_splitting_across_edge): Pass the caller to
33072 pull_accesses_from_callee.
33073
33074 2020-01-10 Martin Jambor <mjambor@suse.cz>
33075
33076 * params.opt (param_ipcp_unit_growth): Mark as Optimization.
33077 * ipa-cp.c (max_new_size): Removed.
33078 (orig_overall_size): New variable.
33079 (get_max_overall_size): New function.
33080 (estimate_local_effects): Use it. Adjust dump.
33081 (decide_about_value): Likewise.
33082 (ipcp_propagate_stage): Do not calculate max_new_size, just store
33083 orig_overall_size. Adjust dump.
33084 (ipa_cp_c_finalize): Clear orig_overall_size instead of max_new_size.
33085
33086 2020-01-10 Martin Jambor <mjambor@suse.cz>
33087
33088 * params.opt (param_ipa_max_agg_items): Mark as Optimization
33089 * ipa-cp.c (merge_agg_lats_step): New parameter max_agg_items, use
33090 instead of param_ipa_max_agg_items.
33091 (merge_aggregate_lattices): Extract param_ipa_max_agg_items from
33092 optimization info for the callee.
33093
33094 2020-01-09 Kwok Cheung Yeung <kcy@codesourcery.com>
33095
33096 * lto-streamer-in.c (input_function): Remove streamed-in inline debug
33097 markers if debug_inline_points is false.
33098
33099 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33100
33101 * config.gcc (aarch64*-*-*): Add aarch64-sve-builtins-sve2.o to
33102 extra_objs.
33103 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): Depend on
33104 aarch64-sve-builtins-base.def, aarch64-sve-builtins-sve2.def and
33105 aarch64-sve-builtins-sve2.h.
33106 (aarch64-sve-builtins-sve2.o): New rule.
33107 * config/aarch64/aarch64.h (AARCH64_ISA_SVE2_AES): New macro.
33108 (AARCH64_ISA_SVE2_BITPERM, AARCH64_ISA_SVE2_SHA3): Likewise.
33109 (AARCH64_ISA_SVE2_SM4, TARGET_SVE2_AES, TARGET_SVE2_BITPERM): Likewise.
33110 (TARGET_SVE2_SHA, TARGET_SVE2_SM4): Likewise.
33111 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Handle
33112 TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3 and
33113 TARGET_SVE2_SM4.
33114 * config/aarch64/aarch64-sve.md: Update comments with SVE2
33115 instructions that are handled here.
33116 (@cond_asrd<mode>): Generalize to...
33117 (@cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>): ...this.
33118 (*cond_asrd<mode>_2): Generalize to...
33119 (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_2): ...this.
33120 (*cond_asrd<mode>_z): Generalize to...
33121 (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_z): ...this.
33122 * config/aarch64/aarch64.md (UNSPEC_LDNT1_GATHER): New unspec.
33123 (UNSPEC_STNT1_SCATTER, UNSPEC_WHILEGE, UNSPEC_WHILEGT): Likewise.
33124 (UNSPEC_WHILEHI, UNSPEC_WHILEHS): Likewise.
33125 * config/aarch64/aarch64-sve2.md (@aarch64_gather_ldnt<mode>): New
33126 pattern.
33127 (@aarch64_gather_ldnt_<ANY_EXTEND:optab><SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
33128 (@aarch64_scatter_stnt<mode>): Likewise.
33129 (@aarch64_scatter_stnt_<SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
33130 (@aarch64_mul_lane_<mode>): Likewise.
33131 (@aarch64_sve_suqadd<mode>_const): Likewise.
33132 (*<sur>h<addsub><mode>): Generalize to...
33133 (@aarch64_pred_<SVE2_COND_INT_BINARY_REV:sve_int_op><mode>): ...this
33134 new pattern.
33135 (@cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>): New expander.
33136 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_2): New pattern.
33137 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_3): Likewise.
33138 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_any): Likewise.
33139 (*cond_<SVE2_COND_INT_BINARY_NOREV:sve_int_op><mode>_z): Likewise.
33140 (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op><mode>):: Likewise.
33141 (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op>_lane_<mode>): Likewise.
33142 (@aarch64_pred_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): Likewise.
33143 (@cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): New expander.
33144 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_2): New pattern.
33145 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_3): Likewise.
33146 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_any): Likewise.
33147 (@aarch64_sve_<SVE2_INT_TERNARY:sve_int_op><mode>): Likewise.
33148 (@aarch64_sve_<SVE2_INT_TERNARY_LANE:sve_int_op>_lane_<mode>)
33149 (@aarch64_sve_add_mul_lane_<mode>): Likewise.
33150 (@aarch64_sve_sub_mul_lane_<mode>): Likewise.
33151 (@aarch64_sve2_xar<mode>): Likewise.
33152 (@aarch64_sve2_bcax<mode>): Likewise.
33153 (*aarch64_sve2_eor3<mode>): Rename to...
33154 (@aarch64_sve2_eor3<mode>): ...this.
33155 (@aarch64_sve2_bsl<mode>): New expander.
33156 (@aarch64_sve2_nbsl<mode>): Likewise.
33157 (@aarch64_sve2_bsl1n<mode>): Likewise.
33158 (@aarch64_sve2_bsl2n<mode>): Likewise.
33159 (@aarch64_sve_add_<SHIFTRT:sve_int_op><mode>): Likewise.
33160 (*aarch64_sve2_sra<mode>): Add MOVPRFX support.
33161 (@aarch64_sve_add_<VRSHR_N:sve_int_op><mode>): New pattern.
33162 (@aarch64_sve_<SVE2_INT_SHIFT_INSERT:sve_int_op><mode>): Likewise.
33163 (@aarch64_sve2_<USMAX:su>aba<mode>): New expander.
33164 (*aarch64_sve2_<USMAX:su>aba<mode>): New pattern.
33165 (@aarch64_sve_<SVE2_INT_BINARY_WIDE:sve_int_op><mode>): Likewise.
33166 (<su>mull<bt><Vwide>): Generalize to...
33167 (@aarch64_sve_<SVE2_INT_BINARY_LONG:sve_int_op><mode>): ...this new
33168 pattern.
33169 (@aarch64_sve_<SVE2_INT_BINARY_LONG_lANE:sve_int_op>_lane_<mode>)
33170 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_LONG:sve_int_op><mode>)
33171 (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG:sve_int_op><mode>)
33172 (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
33173 (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG:sve_int_op><mode>)
33174 (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
33175 (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG:sve_int_op><mode>)
33176 (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
33177 (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG:sve_int_op><mode>)
33178 (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
33179 (@aarch64_sve_<SVE2_FP_TERNARY_LONG:sve_fp_op><mode>): New patterns.
33180 (@aarch64_<SVE2_FP_TERNARY_LONG_LANE:sve_fp_op>_lane_<mode>)
33181 (@aarch64_sve_<SVE2_INT_UNARY_NARROWB:sve_int_op><mode>): Likewise.
33182 (@aarch64_sve_<SVE2_INT_UNARY_NARROWT:sve_int_op><mode>): Likewise.
33183 (@aarch64_sve_<SVE2_INT_BINARY_NARROWB:sve_int_op><mode>): Likewise.
33184 (@aarch64_sve_<SVE2_INT_BINARY_NARROWT:sve_int_op><mode>): Likewise.
33185 (<SHRNB:r>shrnb<mode>): Generalize to...
33186 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWB:sve_int_op><mode>): ...this
33187 new pattern.
33188 (<SHRNT:r>shrnt<mode>): Generalize to...
33189 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWT:sve_int_op><mode>): ...this
33190 new pattern.
33191 (@aarch64_pred_<SVE2_INT_BINARY_PAIR:sve_int_op><mode>): New pattern.
33192 (@aarch64_pred_<SVE2_FP_BINARY_PAIR:sve_fp_op><mode>): Likewise.
33193 (@cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>): New expander.
33194 (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_2): New pattern.
33195 (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_z): Likewise.
33196 (@aarch64_sve_<SVE2_INT_CADD:optab><mode>): Likewise.
33197 (@aarch64_sve_<SVE2_INT_CMLA:optab><mode>): Likewise.
33198 (@aarch64_<SVE2_INT_CMLA:optab>_lane_<mode>): Likewise.
33199 (@aarch64_sve_<SVE2_INT_CDOT:optab><mode>): Likewise.
33200 (@aarch64_<SVE2_INT_CDOT:optab>_lane_<mode>): Likewise.
33201 (@aarch64_pred_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): Likewise.
33202 (@cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New expander.
33203 (*cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New pattern.
33204 (@aarch64_sve2_cvtnt<mode>): Likewise.
33205 (@aarch64_pred_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): Likewise.
33206 (@cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): New expander.
33207 (*cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>_any): New pattern.
33208 (@aarch64_sve2_cvtxnt<mode>): Likewise.
33209 (@aarch64_pred_<SVE2_U32_UNARY:sve_int_op><mode>): Likewise.
33210 (@cond_<SVE2_U32_UNARY:sve_int_op><mode>): New expander.
33211 (*cond_<SVE2_U32_UNARY:sve_int_op><mode>): New pattern.
33212 (@aarch64_pred_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): Likewise.
33213 (@cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New expander.
33214 (*cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New pattern.
33215 (@aarch64_sve2_pmul<mode>): Likewise.
33216 (@aarch64_sve_<SVE2_PMULL:optab><mode>): Likewise.
33217 (@aarch64_sve_<SVE2_PMULL_PAIR:optab><mode>): Likewise.
33218 (@aarch64_sve2_tbl2<mode>): Likewise.
33219 (@aarch64_sve2_tbx<mode>): Likewise.
33220 (@aarch64_sve_<SVE2_INT_BITPERM:sve_int_op><mode>): Likewise.
33221 (@aarch64_sve2_histcnt<mode>): Likewise.
33222 (@aarch64_sve2_histseg<mode>): Likewise.
33223 (@aarch64_pred_<SVE2_MATCH:sve_int_op><mode>): Likewise.
33224 (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_cc): Likewise.
33225 (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_ptest): Likewise.
33226 (aarch64_sve2_aes<CRYPTO_AES:aes_op>): Likewise.
33227 (aarch64_sve2_aes<CRYPTO_AESMC:aesmc_op>): Likewise.
33228 (*aarch64_sve2_aese_fused, *aarch64_sve2_aesd_fused): Likewise.
33229 (aarch64_sve2_rax1, aarch64_sve2_sm4e, aarch64_sve2_sm4ekey): Likewise.
33230 (<su>mulh<r>s<mode>3): Update after above pattern name changes.
33231 * config/aarch64/iterators.md (VNx16QI_ONLY, VNx4SF_ONLY)
33232 (SVE_STRUCT2, SVE_FULL_BHI, SVE_FULL_HSI, SVE_FULL_HDI)
33233 (SVE2_PMULL_PAIR_I): New mode iterators.
33234 (UNSPEC_ADCLB, UNSPEC_ADCLT, UNSPEC_ADDHNB, UNSPEC_ADDHNT, UNSPEC_BDEP)
33235 (UNSPEC_BEXT, UNSPEC_BGRP, UNSPEC_CADD90, UNSPEC_CADD270, UNSPEC_CDOT)
33236 (UNSPEC_CDOT90, UNSPEC_CDOT180, UNSPEC_CDOT270, UNSPEC_CMLA)
33237 (UNSPEC_CMLA90, UNSPEC_CMLA180, UNSPEC_CMLA270, UNSPEC_COND_FCVTLT)
33238 (UNSPEC_COND_FCVTNT, UNSPEC_COND_FCVTX, UNSPEC_COND_FCVTXNT)
33239 (UNSPEC_COND_FLOGB, UNSPEC_EORBT, UNSPEC_EORTB, UNSPEC_FADDP)
33240 (UNSPEC_FMAXP, UNSPEC_FMAXNMP, UNSPEC_FMLALB, UNSPEC_FMLALT)
33241 (UNSPEC_FMLSLB, UNSPEC_FMLSLT, UNSPEC_FMINP, UNSPEC_FMINNMP)
33242 (UNSPEC_HISTCNT, UNSPEC_HISTSEG, UNSPEC_MATCH, UNSPEC_NMATCH)
33243 (UNSPEC_PMULLB, UNSPEC_PMULLB_PAIR, UNSPEC_PMULLT, UNSPEC_PMULLT_PAIR)
33244 (UNSPEC_RADDHNB, UNSPEC_RADDHNT, UNSPEC_RSUBHNB, UNSPEC_RSUBHNT)
33245 (UNSPEC_SLI, UNSPEC_SRI, UNSPEC_SABDLB, UNSPEC_SABDLT, UNSPEC_SADDLB)
33246 (UNSPEC_SADDLBT, UNSPEC_SADDLT, UNSPEC_SADDWB, UNSPEC_SADDWT)
33247 (UNSPEC_SBCLB, UNSPEC_SBCLT, UNSPEC_SMAXP, UNSPEC_SMINP)
33248 (UNSPEC_SQCADD90, UNSPEC_SQCADD270, UNSPEC_SQDMULLB, UNSPEC_SQDMULLBT)
33249 (UNSPEC_SQDMULLT, UNSPEC_SQRDCMLAH, UNSPEC_SQRDCMLAH90)
33250 (UNSPEC_SQRDCMLAH180, UNSPEC_SQRDCMLAH270, UNSPEC_SQRSHRNB)
33251 (UNSPEC_SQRSHRNT, UNSPEC_SQRSHRUNB, UNSPEC_SQRSHRUNT, UNSPEC_SQSHRNB)
33252 (UNSPEC_SQSHRNT, UNSPEC_SQSHRUNB, UNSPEC_SQSHRUNT, UNSPEC_SQXTNB)
33253 (UNSPEC_SQXTNT, UNSPEC_SQXTUNB, UNSPEC_SQXTUNT, UNSPEC_SSHLLB)
33254 (UNSPEC_SSHLLT, UNSPEC_SSUBLB, UNSPEC_SSUBLBT, UNSPEC_SSUBLT)
33255 (UNSPEC_SSUBLTB, UNSPEC_SSUBWB, UNSPEC_SSUBWT, UNSPEC_SUBHNB)
33256 (UNSPEC_SUBHNT, UNSPEC_TBL2, UNSPEC_UABDLB, UNSPEC_UABDLT)
33257 (UNSPEC_UADDLB, UNSPEC_UADDLT, UNSPEC_UADDWB, UNSPEC_UADDWT)
33258 (UNSPEC_UMAXP, UNSPEC_UMINP, UNSPEC_UQRSHRNB, UNSPEC_UQRSHRNT)
33259 (UNSPEC_UQSHRNB, UNSPEC_UQSHRNT, UNSPEC_UQXTNB, UNSPEC_UQXTNT)
33260 (UNSPEC_USHLLB, UNSPEC_USHLLT, UNSPEC_USUBLB, UNSPEC_USUBLT)
33261 (UNSPEC_USUBWB, UNSPEC_USUBWT): New unspecs.
33262 (UNSPEC_SMULLB, UNSPEC_SMULLT, UNSPEC_UMULLB, UNSPEC_UMULLT)
33263 (UNSPEC_SMULHS, UNSPEC_SMULHRS, UNSPEC_UMULHS, UNSPEC_UMULHRS)
33264 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SHRNB, UNSPEC_SHRNT): Move
33265 further down file.
33266 (VNARROW, Ventype): New mode attributes.
33267 (Vewtype): Handle VNx2DI. Fix typo in comment.
33268 (VDOUBLE): New mode attribute.
33269 (sve_lane_con): Handle VNx8HI.
33270 (SVE_INT_UNARY): Include ss_abs and ss_neg for TARGET_SVE2.
33271 (SVE_INT_BINARY): Likewise ss_plus, us_plus, ss_minus and us_minus.
33272 (sve_int_op, sve_int_op_rev): Handle the above codes.
33273 (sve_pred_int_rhs2_operand): Likewise.
33274 (MULLBT, SHRNB, SHRNT): Delete.
33275 (SVE_INT_SHIFT_IMM): New int iterator.
33276 (SVE_WHILE): Add UNSPEC_WHILEGE, UNSPEC_WHILEGT, UNSPEC_WHILEHI
33277 and UNSPEC_WHILEHS for TARGET_SVE2.
33278 (SVE2_U32_UNARY, SVE2_INT_UNARY_NARROWB, SVE2_INT_UNARY_NARROWT)
33279 (SVE2_INT_BINARY, SVE2_INT_BINARY_LANE, SVE2_INT_BINARY_LONG)
33280 (SVE2_INT_BINARY_LONG_LANE, SVE2_INT_BINARY_NARROWB)
33281 (SVE2_INT_BINARY_NARROWT, SVE2_INT_BINARY_PAIR, SVE2_FP_BINARY_PAIR)
33282 (SVE2_INT_BINARY_PAIR_LONG, SVE2_INT_BINARY_WIDE): New int iterators.
33283 (SVE2_INT_SHIFT_IMM_LONG, SVE2_INT_SHIFT_IMM_NARROWB): Likewise.
33284 (SVE2_INT_SHIFT_IMM_NARROWT, SVE2_INT_SHIFT_INSERT, SVE2_INT_CADD)
33285 (SVE2_INT_BITPERM, SVE2_INT_TERNARY, SVE2_INT_TERNARY_LANE): Likewise.
33286 (SVE2_FP_TERNARY_LONG, SVE2_FP_TERNARY_LONG_LANE, SVE2_INT_CMLA)
33287 (SVE2_INT_CDOT, SVE2_INT_ADD_BINARY_LONG, SVE2_INT_QADD_BINARY_LONG)
33288 (SVE2_INT_SUB_BINARY_LONG, SVE2_INT_QSUB_BINARY_LONG): Likewise.
33289 (SVE2_INT_ADD_BINARY_LONG_LANE, SVE2_INT_QADD_BINARY_LONG_LANE)
33290 (SVE2_INT_SUB_BINARY_LONG_LANE, SVE2_INT_QSUB_BINARY_LONG_LANE)
33291 (SVE2_COND_INT_UNARY_FP, SVE2_COND_FP_UNARY_LONG): Likewise.
33292 (SVE2_COND_FP_UNARY_NARROWB, SVE2_COND_INT_BINARY): Likewise.
33293 (SVE2_COND_INT_BINARY_NOREV, SVE2_COND_INT_BINARY_REV): Likewise.
33294 (SVE2_COND_INT_SHIFT, SVE2_MATCH, SVE2_PMULL): Likewise.
33295 (optab): Handle the new unspecs.
33296 (su, r): Remove entries for UNSPEC_SHRNB, UNSPEC_SHRNT, UNSPEC_RSHRNB
33297 and UNSPEC_RSHRNT.
33298 (lr): Handle the new unspecs.
33299 (bt): Delete.
33300 (cmp_op, while_optab_cmp, sve_int_op): Handle the new unspecs.
33301 (sve_int_op_rev, sve_int_add_op, sve_int_qadd_op, sve_int_sub_op)
33302 (sve_int_qsub_op): New int attributes.
33303 (sve_fp_op, rot): Handle the new unspecs.
33304 * config/aarch64/aarch64-sve-builtins.h
33305 (function_resolver::require_matching_pointer_type): Declare.
33306 (function_resolver::resolve_unary): Add an optional boolean argument.
33307 (function_resolver::finish_opt_n_resolution): Add an optional
33308 type_suffix_index argument.
33309 (gimple_folder::redirect_call): Declare.
33310 (gimple_expander::prepare_gather_address_operands): Add an optional
33311 bool parameter.
33312 * config/aarch64/aarch64-sve-builtins.cc: Include
33313 aarch64-sve-builtins-sve2.h.
33314 (TYPES_b_unsigned, TYPES_b_integer, TYPES_bh_integer): New macros.
33315 (TYPES_bs_unsigned, TYPES_hs_signed, TYPES_hs_integer): Likewise.
33316 (TYPES_hd_unsigned, TYPES_hsd_signed): Likewise.
33317 (TYPES_hsd_integer): Use TYPES_hsd_signed.
33318 (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): New macros.
33319 (TYPES_s_unsigned): Likewise.
33320 (TYPES_s_integer): Use TYPES_s_unsigned.
33321 (TYPES_sd_signed, TYPES_sd_unsigned): New macros.
33322 (TYPES_sd_integer): Use them.
33323 (TYPES_d_unsigned): New macro.
33324 (TYPES_d_integer): Use it.
33325 (TYPES_d_data, TYPES_cvt_long, TYPES_cvt_narrow_s): New macros.
33326 (TYPES_cvt_narrow): Likewise.
33327 (DEF_SVE_TYPES_ARRAY): Include the new types macros above.
33328 (preds_mx): New variable.
33329 (function_builder::add_overloaded_function): Allow the new feature
33330 set to be more restrictive than the original one.
33331 (function_resolver::infer_pointer_type): Remove qualifiers from
33332 the pointer type before printing it.
33333 (function_resolver::require_matching_pointer_type): New function.
33334 (function_resolver::resolve_sv_displacement): Handle functions
33335 that don't support 32-bit vector indices or svint32_t vector offsets.
33336 (function_resolver::finish_opt_n_resolution): Take the inferred type
33337 as a separate argument.
33338 (function_resolver::resolve_unary): Optionally treat all forms in
33339 the same way as normal merging functions.
33340 (gimple_folder::redirect_call): New function.
33341 (function_expander::prepare_gather_address_operands): Add an argument
33342 that says whether scaled forms are available. If they aren't,
33343 handle scaling of vector indices and don't add the extension and
33344 scaling operands.
33345 (function_expander::map_to_unspecs): If aarch64_sve isn't available,
33346 fall back to using cond_* instead.
33347 * config/aarch64/aarch64-sve-builtins-functions.h (rtx_code_function):
33348 Split out the member variables into...
33349 (rtx_code_function_base): ...this new base class.
33350 (rtx_code_function_rotated): Inherit rtx_code_function_base.
33351 (unspec_based_function): Split out the member variables into...
33352 (unspec_based_function_base): ...this new base class.
33353 (unspec_based_function_rotated): Inherit unspec_based_function_base.
33354 (unspec_based_function_exact_insn): New class.
33355 (unspec_based_add_function, unspec_based_add_lane_function)
33356 (unspec_based_lane_function, unspec_based_pred_function)
33357 (unspec_based_qadd_function, unspec_based_qadd_lane_function)
33358 (unspec_based_qsub_function, unspec_based_qsub_lane_function)
33359 (unspec_based_sub_function, unspec_based_sub_lane_function): New
33360 typedefs.
33361 (unspec_based_fused_function): New class.
33362 (unspec_based_mla_function, unspec_based_mls_function): New typedefs.
33363 (unspec_based_fused_lane_function): New class.
33364 (unspec_based_mla_lane_function, unspec_based_mls_lane_function): New
33365 typedefs.
33366 (CODE_FOR_MODE1): New macro.
33367 (fixed_insn_function): New class.
33368 (while_comparison): Likewise.
33369 * config/aarch64/aarch64-sve-builtins-shapes.h (binary_long_lane)
33370 (binary_long_opt_n, binary_narrowb_opt_n, binary_narrowt_opt_n)
33371 (binary_to_uint, binary_wide, binary_wide_opt_n, compare, compare_ptr)
33372 (load_ext_gather_index_restricted, load_ext_gather_offset_restricted)
33373 (load_gather_sv_restricted, shift_left_imm_long): Declare.
33374 (shift_left_imm_to_uint, shift_right_imm_narrowb): Likewise.
33375 (shift_right_imm_narrowt, shift_right_imm_narrowb_to_uint): Likewise.
33376 (shift_right_imm_narrowt_to_uint, store_scatter_index_restricted)
33377 (store_scatter_offset_restricted, tbl_tuple, ternary_long_lane)
33378 (ternary_long_opt_n, ternary_qq_lane_rotate, ternary_qq_rotate)
33379 (ternary_shift_left_imm, ternary_shift_right_imm, ternary_uint)
33380 (unary_convert_narrowt, unary_long, unary_narrowb, unary_narrowt)
33381 (unary_narrowb_to_uint, unary_narrowt_to_uint, unary_to_int): Likewise.
33382 * config/aarch64/aarch64-sve-builtins-shapes.cc (apply_predication):
33383 Also add an initial argument for unary_convert_narrowt, regardless
33384 of the predication type.
33385 (build_32_64): Allow loads and stores to specify MODE_none.
33386 (build_sv_index64, build_sv_uint_offset): New functions.
33387 (long_type_suffix): New function.
33388 (binary_imm_narrowb_base, binary_imm_narrowt_base): New classes.
33389 (binary_imm_long_base, load_gather_sv_base): Likewise.
33390 (shift_right_imm_narrow_wrapper, ternary_shift_imm_base): Likewise.
33391 (ternary_resize2_opt_n_base, ternary_resize2_lane_base): Likewise.
33392 (unary_narrowb_base, unary_narrowt_base): Likewise.
33393 (binary_long_lane_def, binary_long_lane): New shape.
33394 (binary_long_opt_n_def, binary_long_opt_n): Likewise.
33395 (binary_narrowb_opt_n_def, binary_narrowb_opt_n): Likewise.
33396 (binary_narrowt_opt_n_def, binary_narrowt_opt_n): Likewise.
33397 (binary_to_uint_def, binary_to_uint): Likewise.
33398 (binary_wide_def, binary_wide): Likewise.
33399 (binary_wide_opt_n_def, binary_wide_opt_n): Likewise.
33400 (compare_def, compare): Likewise.
33401 (compare_ptr_def, compare_ptr): Likewise.
33402 (load_ext_gather_index_restricted_def,
33403 load_ext_gather_index_restricted): Likewise.
33404 (load_ext_gather_offset_restricted_def,
33405 load_ext_gather_offset_restricted): Likewise.
33406 (load_gather_sv_def): Inherit from load_gather_sv_base.
33407 (load_gather_sv_restricted_def, load_gather_sv_restricted): New shape.
33408 (shift_left_imm_def, shift_left_imm): Likewise.
33409 (shift_left_imm_long_def, shift_left_imm_long): Likewise.
33410 (shift_left_imm_to_uint_def, shift_left_imm_to_uint): Likewise.
33411 (store_scatter_index_restricted_def,
33412 store_scatter_index_restricted): Likewise.
33413 (store_scatter_offset_restricted_def,
33414 store_scatter_offset_restricted): Likewise.
33415 (tbl_tuple_def, tbl_tuple): Likewise.
33416 (ternary_long_lane_def, ternary_long_lane): Likewise.
33417 (ternary_long_opt_n_def, ternary_long_opt_n): Likewise.
33418 (ternary_qq_lane_def): Inherit from ternary_resize2_lane_base.
33419 (ternary_qq_lane_rotate_def, ternary_qq_lane_rotate): New shape
33420 (ternary_qq_opt_n_def): Inherit from ternary_resize2_opt_n_base.
33421 (ternary_qq_rotate_def, ternary_qq_rotate): New shape.
33422 (ternary_shift_left_imm_def, ternary_shift_left_imm): Likewise.
33423 (ternary_shift_right_imm_def, ternary_shift_right_imm): Likewise.
33424 (ternary_uint_def, ternary_uint): Likewise.
33425 (unary_convert): Fix typo in comment.
33426 (unary_convert_narrowt_def, unary_convert_narrowt): New shape.
33427 (unary_long_def, unary_long): Likewise.
33428 (unary_narrowb_def, unary_narrowb): Likewise.
33429 (unary_narrowt_def, unary_narrowt): Likewise.
33430 (unary_narrowb_to_uint_def, unary_narrowb_to_uint): Likewise.
33431 (unary_narrowt_to_uint_def, unary_narrowt_to_uint): Likewise.
33432 (unary_to_int_def, unary_to_int): Likewise.
33433 * config/aarch64/aarch64-sve-builtins-base.cc (unspec_cmla)
33434 (unspec_fcmla, unspec_cond_fcmla, expand_mla_mls_lane): New functions.
33435 (svasrd_impl): Delete.
33436 (svcadd_impl::expand): Handle integer operations too.
33437 (svcmla_impl::expand, svcmla_lane::expand): Likewise, using the
33438 new functions to derive the unspec numbers.
33439 (svmla_svmls_lane_impl): Replace with...
33440 (svmla_lane_impl, svmls_lane_impl): ...these new classes. Handle
33441 integer operations too.
33442 (svwhile_impl): Rename to...
33443 (svwhilelx_impl): ...this and inherit from while_comparison.
33444 (svasrd): Use unspec_based_function.
33445 (svmla_lane): Use svmla_lane_impl.
33446 (svmls_lane): Use svmls_lane_impl.
33447 (svrecpe, svrsqrte): Handle unsigned integer operations too.
33448 (svwhilele, svwhilelt): Use svwhilelx_impl.
33449 * config/aarch64/aarch64-sve-builtins-sve2.h: New file.
33450 * config/aarch64/aarch64-sve-builtins-sve2.cc: Likewise.
33451 * config/aarch64/aarch64-sve-builtins-sve2.def: Likewise.
33452 * config/aarch64/aarch64-sve-builtins.def: Include
33453 aarch64-sve-builtins-sve2.def.
33454
33455 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33456
33457 * config/aarch64/aarch64-protos.h (aarch64_sve_arith_immediate_p)
33458 (aarch64_sve_sqadd_sqsub_immediate_p): Add a machine_mode argument.
33459 * config/aarch64/aarch64.c (aarch64_sve_arith_immediate_p)
33460 (aarch64_sve_sqadd_sqsub_immediate_p): Likewise. Handle scalar
33461 immediates as well as vector ones.
33462 * config/aarch64/predicates.md (aarch64_sve_arith_immediate)
33463 (aarch64_sve_sub_arith_immediate, aarch64_sve_qadd_immediate)
33464 (aarch64_sve_qsub_immediate): Update calls accordingly.
33465
33466 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33467
33468 * config/aarch64/aarch64-sve2.md: Add banner comments.
33469 (<su>mulh<r>s<mode>3): Move further up file.
33470 (<su>mull<bt><Vwide>, <r>shrnb<mode>, <r>shrnt<mode>)
33471 (*aarch64_sve2_sra<mode>): Move further down file.
33472 * config/aarch64/t-aarch64 (s-check-sve-md): Check aarch64-sve2.md too.
33473
33474 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33475
33476 * config/aarch64/iterators.md (SVE_WHILE): Add UNSPEC_WHILERW
33477 and UNSPEC_WHILEWR.
33478 (while_optab_cmp): Handle them.
33479 * config/aarch64/aarch64-sve.md
33480 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): Make public
33481 and add a "@" marker.
33482 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): Use it
33483 instead of gen_aarch64_sve2_while_ptest.
33484 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): Delete.
33485
33486 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33487
33488 * config/aarch64/aarch64.md (UNSPEC_WHILE_LE): Rename to...
33489 (UNSPEC_WHILELE): ...this.
33490 (UNSPEC_WHILE_LO): Rename to...
33491 (UNSPEC_WHILELO): ...this.
33492 (UNSPEC_WHILE_LS): Rename to...
33493 (UNSPEC_WHILELS): ...this.
33494 (UNSPEC_WHILE_LT): Rename to...
33495 (UNSPEC_WHILELT): ...this.
33496 * config/aarch64/iterators.md (SVE_WHILE): Update accordingly.
33497 (cmp_op, while_optab_cmp): Likewise.
33498 * config/aarch64/aarch64.c (aarch64_sve_move_pred_via_while): Likewise.
33499 * config/aarch64/aarch64-sve-builtins-base.cc (svwhilele): Likewise.
33500 (svwhilelt): Likewise.
33501
33502 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33503
33504 * config/aarch64/aarch64-sve-builtins-shapes.h (unary_count): Delete.
33505 (unary_to_uint): Define.
33506 * config/aarch64/aarch64-sve-builtins-shapes.cc (unary_count_def)
33507 (unary_count): Rename to...
33508 (unary_to_uint_def, unary_to_uint): ...this.
33509 * config/aarch64/aarch64-sve-builtins-base.def: Update accordingly.
33510
33511 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33512
33513 * config/aarch64/aarch64-sve-builtins-functions.h
33514 (code_for_mode_function): New class.
33515 (CODE_FOR_MODE0, QUIET_CODE_FOR_MODE0): New macros.
33516 * config/aarch64/aarch64-sve-builtins-base.cc (svcompact_impl)
33517 (svext_impl, svmul_lane_impl, svsplice_impl, svtmad_impl): Delete.
33518 (svcompact, svext, svsplice): Use QUIET_CODE_FOR_MODE0.
33519 (svmul_lane, svtmad): Use CODE_FOR_MODE0.
33520
33521 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33522
33523 * config/aarch64/iterators.md (addsub): New code attribute.
33524 * config/aarch64/aarch64-simd.md (aarch64_<su_optab><optab><mode>):
33525 Re-express as...
33526 (aarch64_<su_optab>q<addsub><mode>): ...this, making the same change
33527 in the asm string and attributes. Fix indentation.
33528 * config/aarch64/aarch64-sve.md (@aarch64_<su_optab><optab><mode>):
33529 Re-express as...
33530 (@aarch64_sve_<optab><mode>): ...this.
33531 * config/aarch64/aarch64-sve-builtins.h
33532 (function_expander::expand_signed_unpred_op): Delete.
33533 * config/aarch64/aarch64-sve-builtins.cc
33534 (function_expander::expand_signed_unpred_op): Likewise.
33535 (function_expander::map_to_rtx_codes): If the optab isn't defined,
33536 try using code_for_aarch64_sve instead.
33537 * config/aarch64/aarch64-sve-builtins-base.cc (svqadd_impl): Delete.
33538 (svqsub_impl): Likewise.
33539 (svqadd, svqsub): Use rtx_code_function instead.
33540
33541 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33542
33543 * config/aarch64/iterators.md (SRHSUB, URHSUB): Delete.
33544 (HADDSUB, sur, addsub): Remove them.
33545
33546 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33547
33548 * tree-nrv.c (pass_return_slot::execute): Handle all internal
33549 functions the same way, rather than singling out those that
33550 aren't mapped directly to optabs.
33551
33552 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
33553
33554 * target.def (compatible_vector_types_p): New target hook.
33555 * hooks.h (hook_bool_const_tree_const_tree_true): Declare.
33556 * hooks.c (hook_bool_const_tree_const_tree_true): New function.
33557 * doc/tm.texi.in (TARGET_COMPATIBLE_VECTOR_TYPES_P): New hook.
33558 * doc/tm.texi: Regenerate.
33559 * gimple-expr.c: Include target.h.
33560 (useless_type_conversion_p): Use targetm.compatible_vector_types_p.
33561 * config/aarch64/aarch64.c (aarch64_compatible_vector_types_p): New
33562 function.
33563 (TARGET_COMPATIBLE_VECTOR_TYPES_P): Define.
33564 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
33565 Use the original predicate if it already has a suitable type.
33566
33567 2020-01-09 Martin Jambor <mjambor@suse.cz>
33568
33569 * cgraph.h (cgraph_edge): Make remove, set_call_stmt, make_direct,
33570 resolve_speculation and redirect_call_stmt_to_callee static. Change
33571 return type of set_call_stmt to cgraph_edge *.
33572 * auto-profile.c (afdo_indirect_call): Adjust call to
33573 redirect_call_stmt_to_callee.
33574 * cgraph.c (cgraph_edge::set_call_stmt): Make return cgraph-edge *,
33575 make the this pointer explicit, adjust self-recursive calls and the
33576 call top make_direct. Return the resulting edge.
33577 (cgraph_edge::remove): Make this pointer explicit.
33578 (cgraph_edge::resolve_speculation): Likewise, adjust call to remove.
33579 (cgraph_edge::make_direct): Likewise, adjust call to
33580 resolve_speculation.
33581 (cgraph_edge::redirect_call_stmt_to_callee): Likewise, also adjust
33582 call to set_call_stmt.
33583 (cgraph_update_edges_for_call_stmt_node): Update call to
33584 set_call_stmt and remove.
33585 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
33586 Renamed edge to master_edge. Adjusted calls to set_call_stmt.
33587 (cgraph_node::create_edge_including_clones): Moved "first" definition
33588 of edge to the block where it was used. Adjusted calls to
33589 set_call_stmt.
33590 (cgraph_node::remove_symbol_and_inline_clones): Adjust call to
33591 cgraph_edge::remove.
33592 * cgraphunit.c (walk_polymorphic_call_targets): Adjusted calls to
33593 make_direct and redirect_call_stmt_to_callee.
33594 * ipa-fnsummary.c (redirect_to_unreachable): Adjust calls to
33595 resolve_speculation and make_direct.
33596 * ipa-inline-transform.c (inline_transform): Adjust call to
33597 redirect_call_stmt_to_callee.
33598 (check_speculations_1):: Adjust call to resolve_speculation.
33599 * ipa-inline.c (resolve_noninline_speculation): Adjust call to
33600 resolve-speculation.
33601 (inline_small_functions): Adjust call to resolve_speculation.
33602 (ipa_inline): Likewise.
33603 * ipa-prop.c (ipa_make_edge_direct_to_target): Adjust call to
33604 make_direct.
33605 * ipa-visibility.c (function_and_variable_visibility): Make iteration
33606 safe with regards to edge removal, adjust calls to
33607 redirect_call_stmt_to_callee.
33608 * ipa.c (walk_polymorphic_call_targets): Adjust calls to make_direct
33609 and redirect_call_stmt_to_callee.
33610 * multiple_target.c (create_dispatcher_calls): Adjust call to
33611 redirect_call_stmt_to_callee
33612 (redirect_to_specific_clone): Likewise.
33613 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33614 Adjust calls to cgraph_edge::remove.
33615 * tree-inline.c (copy_bb): Adjust call to set_call_stmt.
33616 (redirect_all_calls): Adjust call to redirect_call_stmt_to_callee.
33617 (expand_call_inline): Adjust call to cgraph_edge::remove.
33618
33619 2020-01-09 Martin Liska <mliska@suse.cz>
33620
33621 * params.opt: Set Optimization for
33622 param_max_speculative_devirt_maydefs.
33623
33624 2020-01-09 Martin Sebor <msebor@redhat.com>
33625
33626 PR middle-end/93200
33627 PR fortran/92956
33628 * builtins.c (compute_objsize): Avoid handling MEM_REFs of vector type.
33629
33630 2020-01-09 Martin Liska <mliska@suse.cz>
33631
33632 * auto-profile.c (auto_profile): Use opt_for_fn
33633 for a parameter.
33634 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
33635 (propagate_vals_across_arith_jfunc): Likewise.
33636 (hint_time_bonus): Likewise.
33637 (incorporate_penalties): Likewise.
33638 (good_cloning_opportunity_p): Likewise.
33639 (perform_estimation_of_a_value): Likewise.
33640 (estimate_local_effects): Likewise.
33641 (ipcp_propagate_stage): Likewise.
33642 * ipa-fnsummary.c (decompose_param_expr): Likewise.
33643 (set_switch_stmt_execution_predicate): Likewise.
33644 (analyze_function_body): Likewise.
33645 * ipa-inline-analysis.c (offline_size): Likewise.
33646 * ipa-inline.c (early_inliner): Likewise.
33647 * ipa-prop.c (ipa_analyze_node): Likewise.
33648 (ipcp_transform_function): Likewise.
33649 * ipa-sra.c (process_scan_results): Likewise.
33650 (ipa_sra_summarize_function): Likewise.
33651 * params.opt: Rename ipcp-unit-growth to
33652 ipa-cp-unit-growth. Add Optimization for various
33653 IPA-related parameters.
33654
33655 2020-01-09 Richard Biener <rguenther@suse.de>
33656
33657 PR middle-end/93054
33658 * gimplify.c (gimplify_expr): Deal with NOP definitions.
33659
33660 2020-01-09 Richard Biener <rguenther@suse.de>
33661
33662 PR tree-optimization/93040
33663 * gimple-ssa-store-merging.c (find_bswap_or_nop): Raise search limit.
33664
33665 2020-01-09 Georg-Johann Lay <avr@gjlay.de>
33666
33667 * common/config/avr/avr-common.c (avr_option_optimization_table)
33668 [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
33669
33670 2020-01-09 Martin Liska <mliska@suse.cz>
33671
33672 * cgraphclones.c (symbol_table::materialize_all_clones):
33673 Use cgraph_node::dump_name.
33674
33675 2020-01-09 Jakub Jelinek <jakub@redhat.com>
33676
33677 PR inline-asm/93202
33678 * config/riscv/riscv.c (riscv_print_operand_reloc): Use
33679 output_operand_lossage instead of gcc_unreachable.
33680 * doc/md.texi (riscv f constraint): Fix typo.
33681
33682 PR target/93141
33683 * config/i386/i386.md (subv<mode>4): Use SWIDWI iterator instead of
33684 SWI. Use <general_hilo_operand> instead of <general_operand>. Use
33685 CONST_SCALAR_INT_P instead of CONST_INT_P.
33686 (*subv<mode>4_1): Rename to ...
33687 (subv<mode>4_1): ... this.
33688 (*subv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
33689 define_insn_and_split patterns.
33690 (*subv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
33691 patterns.
33692
33693 2020-01-08 David Malcolm <dmalcolm@redhat.com>
33694
33695 * vec.c (class selftest::count_dtor): New class.
33696 (selftest::test_auto_delete_vec): New test.
33697 (selftest::vec_c_tests): Call it.
33698 * vec.h (class auto_delete_vec): New class template.
33699 (auto_delete_vec<T>::~auto_delete_vec): New dtor.
33700
33701 2020-01-08 David Malcolm <dmalcolm@redhat.com>
33702
33703 * sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
33704
33705 2020-01-08 Jim Wilson <jimw@sifive.com>
33706
33707 * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out
33708 use of TLS_MODEL_LOCAL_EXEC when not pic.
33709
33710 2020-01-08 David Malcolm <dmalcolm@redhat.com>
33711
33712 * hash-map-tests.c (selftest::test_map_of_strings_to_int): Fix
33713 memory leak.
33714
33715 2020-01-08 Jakub Jelinek <jakub@redhat.com>
33716
33717 PR target/93187
33718 * config/i386/i386.md (*stack_protect_set_2_<mode> peephole2,
33719 *stack_protect_set_3 peephole2): Also check that the second
33720 insns source is general_operand.
33721
33722 PR target/93174
33723 * config/i386/i386.md (addcarry<mode>_0): Use nonimmediate_operand
33724 predicate for output operand instead of register_operand.
33725 (addcarry<mode>, addcarry<mode>_1): Likewise. Add alternative with
33726 memory destination and non-memory operands[2].
33727
33728 2020-01-08 Martin Liska <mliska@suse.cz>
33729
33730 * cgraph.c (cgraph_node::dump): Use ::dump_name or
33731 ::dump_asm_name instead of (::name or ::asm_name).
33732 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
33733 * cgraphunit.c (walk_polymorphic_call_targets): Likewise.
33734 (analyze_functions): Likewise.
33735 (expand_all_functions): Likewise.
33736 * ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
33737 (propagate_bits_across_jump_function): Likewise.
33738 (dump_profile_updates): Likewise.
33739 (ipcp_store_bits_results): Likewise.
33740 (ipcp_store_vr_results): Likewise.
33741 * ipa-devirt.c (dump_targets): Likewise.
33742 * ipa-fnsummary.c (analyze_function_body): Likewise.
33743 * ipa-hsa.c (check_warn_node_versionable): Likewise.
33744 (process_hsa_functions): Likewise.
33745 * ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
33746 (set_alias_uids): Likewise.
33747 * ipa-inline-transform.c (save_inline_function_body): Likewise.
33748 * ipa-inline.c (recursive_inlining): Likewise.
33749 (inline_to_all_callers_1): Likewise.
33750 (ipa_inline): Likewise.
33751 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
33752 (ipa_propagate_frequency): Likewise.
33753 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
33754 (remove_described_reference): Likewise.
33755 * ipa-pure-const.c (worse_state): Likewise.
33756 (check_retval_uses): Likewise.
33757 (analyze_function): Likewise.
33758 (propagate_pure_const): Likewise.
33759 (propagate_nothrow): Likewise.
33760 (dump_malloc_lattice): Likewise.
33761 (propagate_malloc): Likewise.
33762 (pass_local_pure_const::execute): Likewise.
33763 * ipa-visibility.c (optimize_weakref): Likewise.
33764 (function_and_variable_visibility): Likewise.
33765 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
33766 (ipa_discover_variable_flags): Likewise.
33767 * lto-streamer-out.c (output_function): Likewise.
33768 (output_constructor): Likewise.
33769 * tree-inline.c (copy_bb): Likewise.
33770 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
33771 * varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
33772
33773 2020-01-08 Richard Biener <rguenther@suse.de>
33774
33775 PR middle-end/93199
33776 * tree-eh.c (sink_clobbers): Update virtual operands for
33777 the first and last stmt only. Add a dry-run capability.
33778 (pass_lower_eh_dispatch::execute): Perform clobber sinking
33779 after CFG manipulations and in RPO order to catch all
33780 secondary opportunities reliably.
33781
33782 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
33783
33784 PR target/93182
33785 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
33786
33787 2019-01-08 Richard Biener <rguenther@suse.de>
33788
33789 PR middle-end/93199
33790 * gimple-fold.c (rewrite_to_defined_overflow): Mark stmt modified.
33791 * tree-ssa-loop-im.c (move_computations_worker): Properly adjust
33792 virtual operand, also updating SSA use.
33793 * gimple-loop-interchange.cc (loop_cand::undo_simple_reduction):
33794 Update stmt after resetting virtual operand.
33795 (tree_loop_interchange::move_code_to_inner_loop): Likewise.
33796 * gimple-iterator.c (gsi_remove): When not removing the stmt
33797 permanently do not delink immediate uses or mark the stmt modified.
33798
33799 2020-01-08 Martin Liska <mliska@suse.cz>
33800
33801 * ipa-fnsummary.c (dump_ipa_call_summary): Use symtab_node::dump_name.
33802 (ipa_call_context::estimate_size_and_time): Likewise.
33803 (inline_analyze_function): Likewise.
33804
33805 2020-01-08 Martin Liska <mliska@suse.cz>
33806
33807 * cgraph.c (cgraph_node::dump): Use systematically
33808 dump_asm_name.
33809
33810 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
33811
33812 Add -nodevicespecs option for avr.
33813
33814 PR target/93182
33815 * config/avr/avr.opt (-nodevicespecs): New driver option.
33816 * config/avr/driver-avr.c (avr_devicespecs_file): Only issue
33817 "-specs=device-specs/..." if that option is not set.
33818 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
33819
33820 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
33821
33822 Implement 64-bit double functions for avr.
33823
33824 PR target/92055
33825 * config.gcc (tm_defines) [target=avr]: Support --with-libf7,
33826 --with-double-comparison.
33827 * doc/install.texi: Document them.
33828 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
33829 <WITH_LIBF7_LIBGCC, WITH_LIBF7_MATH, WITH_LIBF7_MATH_SYMBOLS>
33830 <WITH_DOUBLE_COMPARISON>: New built-in defines.
33831 * doc/invoke.texi (AVR Built-in Macros): Document them.
33832 * config/avr/avr-protos.h (avr_float_lib_compare_returns_bool): New.
33833 * config/avr/avr.c (avr_float_lib_compare_returns_bool): New function.
33834 * config/avr/avr.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): New macro.
33835
33836 2020-01-08 Richard Earnshaw <rearnsha@arm.com>
33837
33838 PR target/93188
33839 * config/arm/t-multilib (MULTILIB_MATCHES): Add rules to match
33840 armv7-a{+mp,+sec,+mp+sec} to appropriate armv7 multilib variants
33841 when only building rm-profile multilibs.
33842
33843 2020-01-08 Feng Xue <fxue@os.amperecomputing.com>
33844
33845 PR ipa/93084
33846 * ipa-cp.c (self_recursively_generated_p): Find matched aggregate
33847 lattice for a value to check.
33848 (propagate_vals_across_arith_jfunc): Add an assertion to ensure
33849 finite propagation in self-recursive scc.
33850
33851 2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com>
33852
33853 * ipa-inline.c (caller_growth_limits): Restore the AND.
33854
33855 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
33856
33857 * config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator.
33858 (VEC_ALLREG_ALT): New iterator.
33859 (VEC_ALLREG_INT_MODE): New iterator.
33860 (VCMP_MODE): New iterator.
33861 (VCMP_MODE_INT): New iterator.
33862 (vec_cmpu<mode>di): Use VCMP_MODE_INT.
33863 (vec_cmp<u>v64qidi): New define_expand.
33864 (vec_cmp<mode>di_exec): Use VCMP_MODE.
33865 (vec_cmpu<mode>di_exec): New define_expand.
33866 (vec_cmp<u>v64qidi_exec): New define_expand.
33867 (vec_cmp<mode>di_dup): Use VCMP_MODE.
33868 (vec_cmp<mode>di_dup_exec): Use VCMP_MODE.
33869 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>): Rename ...
33870 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): ... to this.
33871 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Rename ...
33872 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): ... to this.
33873 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Rename ...
33874 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): ... to this.
33875 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Rename ...
33876 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): ... to
33877 this.
33878 * config/gcn/gcn.c (print_operand): Fix 8 and 16 bit suffixes.
33879 * config/gcn/gcn.md (expander): Add sign_extend and zero_extend.
33880
33881 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
33882
33883 * config/gcn/constraints.md (DA): Update description and match.
33884 (DB): Likewise.
33885 (Db): New constraint.
33886 * config/gcn/gcn-protos.h (gcn_inline_constant64_p): Add second
33887 parameter.
33888 * config/gcn/gcn.c (gcn_inline_constant64_p): Add 'mixed' parameter.
33889 Implement 'Db' mixed immediate type.
33890 * config/gcn/gcn-valu.md (addcv64si3<exec_vcc>): Rework constraints.
33891 (addcv64si3_dup<exec_vcc>): Delete.
33892 (subcv64si3<exec_vcc>): Rework constraints.
33893 (addv64di3): Rework constraints.
33894 (addv64di3_exec): Rework constraints.
33895 (subv64di3): Rework constraints.
33896 (addv64di3_dup): Delete.
33897 (addv64di3_dup_exec): Delete.
33898 (addv64di3_zext): Rework constraints.
33899 (addv64di3_zext_exec): Rework constraints.
33900 (addv64di3_zext_dup): Rework constraints.
33901 (addv64di3_zext_dup_exec): Rework constraints.
33902 (addv64di3_zext_dup2): Rework constraints.
33903 (addv64di3_zext_dup2_exec): Rework constraints.
33904 (addv64di3_sext_dup2): Rework constraints.
33905 (addv64di3_sext_dup2_exec): Rework constraints.
33906
33907 2020-01-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
33908
33909 * doc/sourcebuild.texi (arm_little_endian, arm_nothumb): Documented
33910 existing target checks.
33911
33912 2020-01-07 Richard Biener <rguenther@suse.de>
33913
33914 * doc/install.texi: Bump minimal supported MPC version.
33915
33916 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
33917
33918 * langhooks-def.h (lhd_simulate_enum_decl): Declare.
33919 (LANG_HOOKS_SIMULATE_ENUM_DECL): Use it.
33920 * langhooks.c: Include stor-layout.h.
33921 (lhd_simulate_enum_decl): New function.
33922 * config/aarch64/aarch64-sve-builtins.cc (init_builtins): Call
33923 handle_arm_sve_h for the LTO frontend.
33924 (register_vector_type): Cope with null returns from pushdecl.
33925
33926 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
33927
33928 * config/aarch64/aarch64-protos.h (aarch64_sve::svbool_type_p)
33929 (aarch64_sve::nvectors_if_data_type): Replace with...
33930 (aarch64_sve::builtin_type_p): ...this.
33931 * config/aarch64/aarch64-sve-builtins.cc: Include attribs.h.
33932 (find_vector_type): Delete.
33933 (add_sve_type_attribute): New function.
33934 (lookup_sve_type_attribute): Likewise.
33935 (register_builtin_types): Add an "SVE type" attribute to each type.
33936 (register_tuple_type): Likewise.
33937 (svbool_type_p, nvectors_if_data_type): Delete.
33938 (mangle_builtin_type): Use lookup_sve_type_attribute.
33939 (builtin_type_p): Likewise. Add an overload that returns the
33940 number of constituent vector and predicate registers.
33941 * config/aarch64/aarch64.c (aarch64_sve_argument_p): Delete.
33942 (aarch64_returns_value_in_sve_regs_p): Use aarch64_sve::builtin_type_p
33943 instead of aarch64_sve_argument_p.
33944 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
33945 (aarch64_pass_by_reference): Likewise.
33946 (aarch64_function_value_1): Likewise.
33947 (aarch64_return_in_memory): Likewise.
33948 (aarch64_layout_arg): Likewise.
33949
33950 2020-01-07 Jakub Jelinek <jakub@redhat.com>
33951
33952 PR tree-optimization/93156
33953 * tree-ssa-ccp.c (bit_value_binop): For x * x note that the second
33954 least significant bit is always clear.
33955
33956 PR tree-optimization/93118
33957 * match.pd ((x >> c) << c -> x & (-1<<c)): Add nop_convert?. Add new
33958 simplifier with two intermediate conversions.
33959
33960 2020-01-07 Martin Liska <mliska@suse.cz>
33961
33962 * params.opt: Add Optimization for various parameters.
33963
33964 2020-01-07 Martin Liska <mliska@suse.cz>
33965
33966 PR ipa/83411
33967 * doc/extend.texi: Explain cloning for target_clone
33968 attribute.
33969
33970 2020-01-07 Martin Liska <mliska@suse.cz>
33971
33972 PR tree-optimization/92860
33973 * common.opt: Make in Optimization option
33974 as it is affected by -O0, which is an Optimization
33975 option.
33976 * tree-inline.c (tree_inlinable_function_p):
33977 Use opt_for_fn for warn_inline.
33978 (expand_call_inline): Likewise.
33979
33980 2020-01-07 Martin Liska <mliska@suse.cz>
33981
33982 PR tree-optimization/92860
33983 * common.opt: Make flag_ree as optimization
33984 attribute.
33985
33986 2020-01-07 Martin Liska <mliska@suse.cz>
33987
33988 PR optimization/92860
33989 * params.opt: Mark param_min_crossjump_insns with Optimization
33990 keyword.
33991
33992 2020-01-07 Luo Xiong Hu <luoxhu@linux.ibm.com>
33993
33994 * ipa-inline-analysis.c (estimate_growth): Fix typo.
33995 * ipa-inline.c (caller_growth_limits): Use OR instead of AND.
33996
33997 2020-01-06 Michael Meissner <meissner@linux.ibm.com>
33998
33999 * config/rs6000/rs6000.c (hard_reg_and_mode_to_addr_mask): New
34000 helper function to return the valid addressing formats for a given
34001 hard register and mode.
34002 (rs6000_adjust_vec_address): Call hard_reg_and_mode_to_addr_mask.
34003
34004 * config/rs6000/constraints.md (Q constraint): Update
34005 documentation.
34006 * doc/md.texi (RS/6000 constraints): Update 'Q' cosntraint
34007 documentation.
34008
34009 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
34010 Use 'Q' for doing vector extract from memory.
34011 (vsx_extract_v4sf_var): Use 'Q' for doing vector extract from
34012 memory.
34013 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Use 'Q' for
34014 doing vector extract from memory.
34015 (vsx_extract_<mode>_<VS_scalar>mode_var): Use 'Q' for doing vector
34016 extract from memory.
34017
34018 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add support
34019 for the offset being 34-bits when -mcpu=future is used.
34020
34021 2020-01-06 John David Anglin <danglin@gcc.gnu.org>
34022
34023 * config/pa/pa.md: Revert change to use ordered_comparison_operator
34024 instead of cmpib_comparison_operator in cmpib patterns.
34025 * config/pa/predicates.md (cmpib_comparison_operator): Revert removal
34026 of cmpib_comparison_operator. Revise comment.
34027
34028 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
34029
34030 * tree-vect-slp.c (vect_build_slp_tree_1): Require all shifts
34031 in an IFN_DIV_POW2 node to be equal.
34032
34033 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
34034
34035 * tree-vect-stmts.c (vect_check_load_store_mask): Rename to...
34036 (vect_check_scalar_mask): ...this.
34037 (vectorizable_store, vectorizable_load): Update call accordingly.
34038 (vectorizable_call): Use vect_check_scalar_mask to check the mask
34039 argument in calls to conditional internal functions.
34040
34041 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
34042
34043 * config/gcn/gcn-valu.md (subv64di3): Use separate alternatives for
34044 '0' matching inputs.
34045 (subv64di3_exec): Likewise.
34046
34047 2020-01-06 Bryan Stenson <bryan@siliconvortex.com>
34048
34049 * config/mips/mips.c (vr4130_align_insns): Fix typo.
34050 * doc/md.texi (movstr): Likewise.
34051
34052 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
34053
34054 * config/gcn/gcn-valu.md (vec_extract<mode><scalar_mode>): Add early
34055 clobber.
34056
34057 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
34058
34059 * config/aarch64/t-aarch64 ($(srcdir)/config/aarch64/aarch64-tune.md):
34060 Depend on...
34061 (s-aarch64-tune-md): ...this new stamp file. Pipe the new contents
34062 to a temporary file and use move-if-change to update the real
34063 file where necessary.
34064
34065 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
34066
34067 * config/aarch64/aarch64-sve.md (@aarch64_sel_dup<mode>): Use Upl
34068 rather than Upa for CPY /M.
34069
34070 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
34071
34072 * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
34073 immediate.
34074
34075 2020-01-06 Martin Liska <mliska@suse.cz>
34076
34077 PR tree-optimization/92860
34078 * params.opt: Mark param_max_combine_insns with Optimization
34079 keyword.
34080
34081 2020-01-05 Jakub Jelinek <jakub@redhat.com>
34082
34083 PR target/93141
34084 * config/i386/i386.md (SWIDWI): New mode iterator.
34085 (DWI, dwi): Add TImode variants.
34086 (addv<mode>4): Use SWIDWI iterator instead of SWI. Use
34087 <general_hilo_operand> instead of <general_operand>. Use
34088 CONST_SCALAR_INT_P instead of CONST_INT_P.
34089 (*addv<mode>4_1): Rename to ...
34090 (addv<mode>4_1): ... this.
34091 (QWI): New mode attribute.
34092 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
34093 define_insn_and_split patterns.
34094 (*addv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
34095 patterns.
34096 (uaddv<mode>4): Use SWIDWI iterator instead of SWI. Use
34097 <general_hilo_operand> instead of <general_operand>.
34098 (*addcarry<mode>_1): New define_insn.
34099 (*add<dwi>3_doubleword_cc_overflow_1): New define_insn_and_split.
34100
34101 2020-01-03 Konstantin Kharlamov <Hi-Angel@yandex.ru>
34102
34103 * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm):
34104 Use "call" instead of "set".
34105
34106 2020-01-03 Martin Jambor <mjambor@suse.cz>
34107
34108 PR ipa/92917
34109 * ipa-cp.c (print_all_lattices): Skip functions without info.
34110
34111 2020-01-03 Jakub Jelinek <jakub@redhat.com>
34112
34113 PR target/93089
34114 * config/i386/i386-options.c (ix86_simd_clone_adjust): If
34115 TARGET_PREFER_AVX128, use prefer-vector-width=256 for 'c' and 'd'
34116 simd clones. If TARGET_PREFER_AVX256, use prefer-vector-width=512
34117 for 'e' simd clones.
34118
34119 PR target/93089
34120 * config/i386/i386.opt (x_prefer_vector_width_type): Remove TargetSave
34121 entry.
34122 (mprefer-vector-width=): Add Save.
34123 * config/i386/i386-options.c (ix86_target_string): Add PVW argument, print
34124 -mprefer-vector-width= if non-zero. Fix up -mfpmath= comment.
34125 (ix86_debug_options, ix86_function_specific_print): Adjust
34126 ix86_target_string callers.
34127 (ix86_valid_target_attribute_inner_p): Handle prefer-vector-width=.
34128 (ix86_valid_target_attribute_tree): Likewise.
34129 * config/i386/i386-options.h (ix86_target_string): Add PVW argument.
34130 * config/i386/i386-expand.c (ix86_expand_builtin): Adjust
34131 ix86_target_string caller.
34132
34133 PR target/93110
34134 * config/i386/i386.md (abs<mode>2): Use expand_simple_binop instead of
34135 emitting ASHIFTRT, XOR and MINUS by hand. Use gen_int_mode with QImode
34136 instead of gen_int_shift_amount + convert_modes.
34137
34138 PR rtl-optimization/93088
34139 * loop-iv.c (find_single_def_src): Punt after looking through
34140 128 reg copies for regs with single definitions. Move definitions
34141 to first uses.
34142
34143 2020-01-02 Dennis Zhang <dennis.zhang@arm.com>
34144
34145 * config/arm/arm-c.c (arm_cpu_builtins): Define
34146 __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC,
34147 __ARM_FEATURE_BF16_SCALAR_ARITHMETIC, and
34148 __ARM_BF16_FORMAT_ALTERNATIVE when enabled.
34149 * config/arm/arm-cpus.in (armv8_6, i8mm, bf16): New features.
34150 * config/arm/arm-tables.opt: Regenerated.
34151 * config/arm/arm.c (arm_option_reconfigure_globals): Initialize
34152 arm_arch_i8mm and arm_arch_bf16 when enabled.
34153 * config/arm/arm.h (TARGET_I8MM): New macro.
34154 (TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
34155 * config/arm/t-aprofile: Add matching rules for -march=armv8.6-a.
34156 * config/arm/t-arm-elf (all_v8_archs): Add armv8.6-a.
34157 * config/arm/t-multilib: Add matching rules for -march=armv8.6-a.
34158 (v8_6_a_simd_variants): New.
34159 (v8_*_a_simd_variants): Add i8mm and bf16.
34160 * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options.
34161
34162 2020-01-02 Jakub Jelinek <jakub@redhat.com>
34163
34164 PR ipa/93087
34165 * predict.c (compute_function_frequency): Don't call
34166 warn_function_cold on functions that already have cold attribute.
34167
34168 2020-01-01 John David Anglin <danglin@gcc.gnu.org>
34169
34170 PR target/67834
34171 * config/pa/pa.c (pa_elf_select_rtx_section): New. Put references to
34172 COMDAT group function labels in .data.rel.ro.local section.
34173 * config/pa/pa32-linux.h (TARGET_ASM_SELECT_RTX_SECTION): Define.
34174
34175 PR target/93111
34176 * config/pa/pa.md (scc): Use ordered_comparison_operator instead of
34177 comparison_operator in B and S integer comparisons. Likewise, use
34178 ordered_comparison_operator instead of cmpib_comparison_operator in
34179 cmpib patterns.
34180 * config/pa/predicates.md (cmpib_comparison_operator): Remove.
34181
34182 2020-01-01 Jakub Jelinek <jakub@redhat.com>
34183
34184 Update copyright years.
34185
34186 * gcc.c (process_command): Update copyright notice dates.
34187 * gcov-dump.c (print_version): Ditto.
34188 * gcov.c (print_version): Ditto.
34189 * gcov-tool.c (print_version): Ditto.
34190 * gengtype.c (create_file): Ditto.
34191 * doc/cpp.texi: Bump @copying's copyright year.
34192 * doc/cppinternals.texi: Ditto.
34193 * doc/gcc.texi: Ditto.
34194 * doc/gccint.texi: Ditto.
34195 * doc/gcov.texi: Ditto.
34196 * doc/install.texi: Ditto.
34197 * doc/invoke.texi: Ditto.
34198
34199 2020-01-01 Jan Hubicka <hubicka@ucw.cz>
34200
34201 * ipa.c (walk_polymorphic_call_targets): Fix updating of overall
34202 summary.
34203
34204 2020-01-01 Jakub Jelinek <jakub@redhat.com>
34205
34206 PR tree-optimization/93098
34207 * match.pd (popcount): For shift amounts, use integer_onep
34208 or wi::to_widest () == cst instead of tree_to_uhwi () == cst
34209 tests. Make sure that precision is power of two larger than or equal
34210 to 16. Ensure shift is never negative. Use HOST_WIDE_INT_UC macro
34211 instead of ULL suffixed constants. Formatting fixes.
34212 \f
34213 Copyright (C) 2020 Free Software Foundation, Inc.
34214
34215 Copying and distribution of this file, with or without modification,
34216 are permitted in any medium without royalty provided the copyright
34217 notice and this notice are preserved.