Daily bump.
[gcc.git] / gcc / ChangeLog
1 2020-10-19 Andrew MacLeod <amacleod@redhat.com>
2
3 PR tree-optimization/97360
4 * gimple-range.h (range_compatible_p): New.
5 * gimple-range-gori.cc (is_gimple_logical_p): Use range_compatible_p.
6 (range_is_either_true_or_false): Ditto.
7 (gori_compute::outgoing_edge_range_p): Cast result to the correct
8 type if necessary.
9 (logical_stmt_cache::cacheable_p): Use range_compatible_p.
10 * gimple-range.cc (gimple_ranger::calc_stmt): Check range_compatible_p
11 before casting the range.
12 (gimple_ranger::range_on_exit): Use range_compatible_p.
13 (gimple_ranger::range_on_edge): Ditto.
14
15 2020-10-19 Martin Jambor <mjambor@suse.cz>
16
17 PR tree-optimization/97456
18 * tree-complex.c (set_component_ssa_name): Do not replace ignored decl
19 default definitions with new component vars. Reorder if conditions.
20
21 2020-10-19 David Edelsohn <dje.gcc@gmail.com>
22
23 * config/rs6000/vsx.md (vextract_fp_from_shorth): Fix vals_be.
24 (vextract_fp_from_shortl) Same.
25
26 2020-10-19 Aldy Hernandez <aldyh@redhat.com>
27
28 PR tree-optimization/97488
29 * range-op.cc (operator_lshift::op1_range): Handle large right shifts.
30
31 2020-10-19 Martin Liska <mliska@suse.cz>
32
33 * ipa-modref.c (compute_parm_map): Clear vector.
34
35 2020-10-19 Richard Biener <rguenther@suse.de>
36
37 PR tree-optimization/97486
38 * tree-vect-slp.c (vect_slp_function): Split after stmts
39 ending a BB.
40
41 2020-10-19 Jonathan Wakely <jwakely@redhat.com>
42
43 * doc/invoke.texi (OPptimize Options): Add missing closing
44 parenthesis.
45
46 2020-10-19 Aldy Hernandez <aldyh@redhat.com>
47
48 PR tree-optimization/97467
49 * range-op.cc (operator_lshift::op1_range): Handle shifts by 0.
50
51 2020-10-19 Richard Biener <rguenther@suse.de>
52
53 PR tree-optimization/97466
54 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
55 spurious assert, re-indent.
56
57 2020-10-19 Li Jia He <helijia@gcc.gnu.org>
58
59 PR tree-optimization/66552
60 * match.pd (x << (n % C) -> x << (n & C-1)): New simplification.
61
62 2020-10-19 Richard Biener <rguenther@suse.de>
63
64 * tree-cfg.c (verify_gimple_comparison): Drop special-case
65 for pointer comparison.
66
67 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
68
69 * vr-values.c (dump_all_value_ranges): Only dump names which are
70 still active.
71
72 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
73
74 * range-op.cc (pointer_plus_operator::wi_fold): Make pointer_plus
75 [0, 0] + const return a [const, const] range.
76
77 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
78
79 * gimple-ssa-evrp.c (hybrid_folder::value_on_edge): Call
80 evrp_folder::value_of_expr directly.
81 (hybrid_folder::value_of_stmt): Ditto.
82
83 2020-10-16 Andrew MacLeod <amacleod@redhat.com>
84
85 PR tree-optimization/97462
86 * range-op.cc (operator_lshift::op1_range): Don't trap on negative
87 shifts.
88
89 2020-10-16 Olivier Hainque <hainque@adacore.com>
90
91 * config/vxworks.h (VX_CRTBEGIN_SPEC): Likewise.
92
93 2020-10-16 Olivier Hainque <hainque@adacore.com>
94
95 * config/vxworks/_vxworks-versions.h: Only include
96 version.h if _WRS_VXWORKS_MAJOR is not defined.
97 Provide a default _WRS_VXWORKS_MINOR (0).
98
99 2020-10-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
100
101 PR target/97327
102 * config/arm/arm.c (fp_bitlist): Add isa_bit_mve_float to FP bits array.
103
104 2020-10-16 Richard Biener <rguenther@suse.de>
105
106 * tree-vect-slp.c (vect_get_and_check_slp_defs): For BB
107 vectorization swap operands only if it helps, demote mismatches to
108 external.
109
110 2020-10-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
111
112 PR target/97291
113 * config/arm/arm-builtins.c (arm_strsbwbs_qualifiers): Modify array.
114 (arm_strsbwbu_qualifiers): Likewise.
115 (arm_strsbwbs_p_qualifiers): Likewise.
116 (arm_strsbwbu_p_qualifiers): Likewise.
117 * config/arm/arm_mve.h (__arm_vstrdq_scatter_base_wb_s64): Modify
118 function definition.
119 (__arm_vstrdq_scatter_base_wb_u64): Likewise.
120 (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
121 (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
122 (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
123 (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
124 (__arm_vstrwq_scatter_base_wb_s32): Likewise.
125 (__arm_vstrwq_scatter_base_wb_u32): Likewise.
126 (__arm_vstrwq_scatter_base_wb_f32): Likewise.
127 (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
128 * config/arm/arm_mve_builtins.def (vstrwq_scatter_base_wb_add_u): Remove
129 expansion for the builtin.
130 (vstrwq_scatter_base_wb_add_s): Likewise.
131 (vstrwq_scatter_base_wb_add_f): Likewise.
132 (vstrdq_scatter_base_wb_add_u): Likewise.
133 (vstrdq_scatter_base_wb_add_s): Likewise.
134 (vstrwq_scatter_base_wb_p_add_u): Likewise.
135 (vstrwq_scatter_base_wb_p_add_s): Likewise.
136 (vstrwq_scatter_base_wb_p_add_f): Likewise.
137 (vstrdq_scatter_base_wb_p_add_u): Likewise.
138 (vstrdq_scatter_base_wb_p_add_s): Likewise.
139 * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Remove
140 expand.
141 (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
142 (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Rename pattern to ...
143 (mve_vstrwq_scatter_base_wb_<supf>v4si): This.
144 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Remove expand.
145 (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
146 (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Rename pattern to ...
147 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): This.
148 (mve_vstrwq_scatter_base_wb_fv4sf): Remove expand.
149 (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
150 (mve_vstrwq_scatter_base_wb_fv4sf_insn): Rename pattern to ...
151 (mve_vstrwq_scatter_base_wb_fv4sf): This.
152 (mve_vstrwq_scatter_base_wb_p_fv4sf): Remove expand.
153 (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
154 (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Rename pattern to ...
155 (mve_vstrwq_scatter_base_wb_p_fv4sf): This.
156 (mve_vstrdq_scatter_base_wb_<supf>v2di): Remove expand.
157 (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
158 (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Rename pattern to ...
159 (mve_vstrdq_scatter_base_wb_<supf>v2di): This.
160 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Remove expand.
161 (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
162 (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Rename pattern to ...
163 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): This.
164
165 2020-10-16 Kito Cheng <kito.cheng@sifive.com>
166
167 * config/riscv/multilib-generator (IMPLIED_EXT): New.
168 (arch_canonicalize): Update comment and handle implied extensions.
169
170 2020-10-16 Richard Biener <rguenther@suse.de>
171
172 * tree-vect-slp.c (vect_get_and_check_slp_defs): First analyze
173 all operands and fill in the def_stmts and ops entries.
174 (vect_def_types_match): New helper.
175
176 2020-10-16 Martin Liska <mliska@suse.cz>
177
178 PR ipa/97404
179 * ipa-prop.c (struct ipa_vr_ggc_hash_traits):
180 Compare types of VRP as we can merge ranges of different types.
181
182 2020-10-16 Richard Biener <rguenther@suse.de>
183
184 PR tree-optimization/97428
185 * tree-vect-slp.c (vect_analyze_slp_instance): Split store
186 groups also for loop vectorization.
187
188 2020-10-15 Tom de Vries <tdevries@suse.de>
189
190 PR target/97436
191 * config/nvptx/nvptx.opt (m32): Comment out.
192 * doc/invoke.texi (NVPTX options): Remove -m32.
193
194 2020-10-15 Jan Hubicka <hubicka@ucw.cz>
195 Richard Biener <rguenther@suse.de>
196
197 * attr-fnspec.h: Fix toplevel comment.
198
199 2020-10-15 Richard Biener <rguenther@suse.de>
200
201 * tree-pretty-print.c (dump_mem_ref): Print constant offset
202 also for TARGET_MEM_REF.
203
204 2020-10-15 Jan Hubicka <jh@suse.cz>
205
206 * symtab.c (symtab_node::binds_to_current_def_p): Also accept symbols
207 defined in other partition.
208
209 2020-10-15 Richard Biener <rguenther@suse.de>
210
211 * tree-vect-loop.c (vectorizable_live_operation): Adjust
212 dominance query.
213
214 2020-10-15 Richard Biener <rguenther@suse.de>
215
216 PR tree-optimization/97482
217 * tree-data-ref.c (split_constant_offset_1): Handle
218 trivial conversions better.
219 * fold-const.c (convert_to_ptrofftype_loc): Elide conversion
220 if the offset is already ptrofftype_p.
221
222 2020-10-15 Martin Liska <mliska@suse.cz>
223
224 PR ipa/97295
225 * profile-count.c (profile_count::to_frequency): Move part of
226 gcc_assert to STATIC_ASSERT.
227 * regs.h (REG_FREQ_FROM_BB): Do not use count.to_frequency for
228 a function that does not have count_max initialized.
229
230 2020-10-15 Jakub Jelinek <jakub@redhat.com>
231
232 * params.opt (-param-ipa-jump-function-lookups=): Add full stop at
233 the end of the parameter description.
234
235 2020-10-15 Kito Cheng <kito.cheng@sifive.com>
236
237 * common/config/riscv/riscv-common.c (riscv_cpu_tables): New.
238 (riscv_arch_str): Return empty string if current_subset_list
239 is NULL.
240 (riscv_find_cpu): New.
241 (riscv_handle_option): Verify option value of -mcpu.
242 (riscv_expand_arch): Using std::string.
243 (riscv_default_mtune): New.
244 (riscv_expand_arch_from_cpu): Ditto.
245 * config/riscv/riscv-cores.def: New.
246 * config/riscv/riscv-protos.h (riscv_find_cpu): New.
247 (riscv_cpu_info): New.
248 * config/riscv/riscv.c (riscv_tune_info): Rename ...
249 (riscv_tune_param): ... to this.
250 (riscv_cpu_info): Rename ...
251 (riscv_tune_info): ... to this.
252 (tune_info): Rename ...
253 (tune_param): ... to this.
254 (rocket_tune_info): Update data type name.
255 (sifive_7_tune_info): Ditto.
256 (optimize_size_tune_info): Ditto.
257 (riscv_cpu_info_table): Rename ...
258 (riscv_tune_info_table): ... to this.
259 (riscv_parse_cpu): Rename ...
260 (riscv_parse_tune): ... to this, and translate valid -mcpu option to
261 -mtune option.
262 (riscv_rtx_costs): Rename tune_info to tune_param.
263 (riscv_class_max_nregs): Ditto.
264 (riscv_memory_move_cost): Ditto.
265 (riscv_init_machine_status): Use value of -mcpu if -mtune is not
266 given, and rename tune_info to tune_param.
267 * config/riscv/riscv.h (riscv_expand_arch_from_cpu): New.
268 (riscv_default_mtune): Ditto.
269 (EXTRA_SPEC_FUNCTIONS): Add riscv_expand_arch_from_cpu and
270 riscv_default_mtune.
271 (OPTION_DEFAULT_SPECS): Handle default value of -march/-mabi.
272 (DRIVER_SELF_SPECS): Expand -march from -mcpu if -march is not
273 given.
274 * config/riscv/riscv.opt (-mcpu): New option.
275 * config/riscv/t-riscv ($(common_out_file)): Add
276 riscv-cores.def to dependency.
277 * doc/invoke.texi (RISC-V Option): Add -mcpu, and update the
278 description of default value for -mtune and -march.
279
280 2020-10-15 Hongyu Wang <hongyu.wang@intel.com>
281
282 * common/config/i386/cpuinfo.h (get_available_features):
283 Detect HRESET.
284 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_HRESET_SET,
285 OPTION_MASK_ISA2_HRESET_UNSET): New macros.
286 (ix86_handle_option): Handle -mhreset.
287 * common/config/i386/i386-cpuinfo.h (enum processor_features):
288 Add FEATURE_HRESET.
289 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
290 for hreset.
291 * config.gcc: Add hresetintrin.h
292 * config/i386/hresetintrin.h: New header file.
293 * config/i386/x86gprintrin.h: Include hresetintrin.h.
294 * config/i386/cpuid.h (bit_HRESET): New.
295 * config/i386/i386-builtin.def: Add new builtin.
296 * config/i386/i386-expand.c (ix86_expand_builtin):
297 Handle new builtin.
298 * config/i386/i386-c.c (ix86_target_macros_internal): Define
299 __HRESET__.
300 * config/i386/i386-options.c (isa2_opts): Add -mhreset.
301 (ix86_valid_target_attribute_inner_p): Handle hreset.
302 * config/i386/i386.h (TARGET_HRESET, TARGET_HRESET_P,
303 PTA_HRESET): New.
304 (PTA_ALDERLAKE): Add PTA_HRESET.
305 * config/i386/i386.opt: Add option -mhreset.
306 * config/i386/i386.md (UNSPECV_HRESET): New unspec.
307 (hreset): New define_insn.
308 * doc/invoke.texi: Document -mhreset.
309 * doc/extend.texi: Document hreset.
310
311 2020-10-15 Hongtao Liu <hongtao.liu@intel.com>
312
313 * common/config/i386/cpuinfo.h (get_available_features):
314 Detect UINTR.
315 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_UINTR_SET
316 OPTION_MASK_ISA2_UINTR_UNSET): New.
317 (ix86_handle_option): Handle -muintr.
318 * common/config/i386/i386-cpuinfo.h (enum processor_features):
319 Add FEATURE_UINTR.
320 * common/config/i386/i386-isas.h: Add ISA_NAMES_TABLE_ENTRY
321 for uintr.
322 * config.gcc: Add uintrintrin.h to extra_headers.
323 * config/i386/uintrintrin.h: New.
324 * config/i386/cpuid.h (bit_UINTR): New.
325 * config/i386/i386-builtin-types.def: Add new types.
326 * config/i386/i386-builtin.def: Add new builtins.
327 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins): Add
328 __builtin_ia32_testui.
329 * config/i386/i386-builtins.h (ix86_builtins): Add
330 IX86_BUILTIN_TESTUI.
331 * config/i386/i386-c.c (ix86_target_macros_internal): Define
332 __UINTR__.
333 * config/i386/i386-expand.c (ix86_expand_special_args_builtin):
334 Handle UINT8_FTYPE_VOID.
335 (ix86_expand_builtin): Handle IX86_BUILTIN_TESTUI.
336 * config/i386/i386-options.c (isa2_opts): Add -muintr.
337 (ix86_valid_target_attribute_inner_p): Handle UINTR.
338 (ix86_option_override_internal): Add TARGET_64BIT check for UINTR.
339 * config/i386/i386.h (TARGET_UINTR, TARGET_UINTR_P, PTA_UINTR): New.
340 (PTA_SAPPHIRRAPIDS): Add PTA_UINTR.
341 * config/i386/i386.opt: Add -muintr.
342 * config/i386/i386.md
343 (define_int_iterator UINTR_UNSPECV): New.
344 (define_int_attr uintr_unspecv): New.
345 (uintr_<uintr_unspecv>, uintr_senduipi, testui):
346 New define_insn patterns.
347 * config/i386/x86gprintrin.h: Include uintrintrin.h
348 * doc/invoke.texi: Document -muintr.
349 * doc/extend.texi: Document uintr.
350
351 2020-10-14 Martin Sebor <msebor@redhat.com>
352
353 PR middle-end/97391
354 * builtins.c (gimple_parm_array_size): Peel off one less layer
355 of array types.
356
357 2020-10-14 Martin Sebor <msebor@redhat.com>
358
359 PR c/97413
360 * attribs.c (init_attr_rdwr_indices): Unwrap extra list layer.
361
362 2020-10-14 Sunil K Pandey <skpgkp2@gmail.com>
363
364 PR target/95483
365 * config/i386/avx2intrin.h (_mm_broadcastsi128_si256): New intrinsics.
366 (_mm_broadcastsd_pd): Ditto.
367 * config/i386/avx512bwintrin.h (_mm512_loadu_epi16): New intrinsics.
368 (_mm512_storeu_epi16): Ditto.
369 (_mm512_loadu_epi8): Ditto.
370 (_mm512_storeu_epi8): Ditto.
371 * config/i386/avx512dqintrin.h (_mm_reduce_round_sd): New intrinsics.
372 (_mm_mask_reduce_round_sd): Ditto.
373 (_mm_maskz_reduce_round_sd): Ditto.
374 (_mm_reduce_round_ss): Ditto.
375 (_mm_mask_reduce_round_ss): Ditto.
376 (_mm_maskz_reduce_round_ss): Ditto.
377 (_mm512_reduce_round_pd): Ditto.
378 (_mm512_mask_reduce_round_pd): Ditto.
379 (_mm512_maskz_reduce_round_pd): Ditto.
380 (_mm512_reduce_round_ps): Ditto.
381 (_mm512_mask_reduce_round_ps): Ditto.
382 (_mm512_maskz_reduce_round_ps): Ditto.
383 * config/i386/avx512erintrin.h
384 (_mm_mask_rcp28_round_sd): New intrinsics.
385 (_mm_maskz_rcp28_round_sd): Ditto.
386 (_mm_mask_rcp28_round_ss): Ditto.
387 (_mm_maskz_rcp28_round_ss): Ditto.
388 (_mm_mask_rsqrt28_round_sd): Ditto.
389 (_mm_maskz_rsqrt28_round_sd): Ditto.
390 (_mm_mask_rsqrt28_round_ss): Ditto.
391 (_mm_maskz_rsqrt28_round_ss): Ditto.
392 (_mm_mask_rcp28_sd): Ditto.
393 (_mm_maskz_rcp28_sd): Ditto.
394 (_mm_mask_rcp28_ss): Ditto.
395 (_mm_maskz_rcp28_ss): Ditto.
396 (_mm_mask_rsqrt28_sd): Ditto.
397 (_mm_maskz_rsqrt28_sd): Ditto.
398 (_mm_mask_rsqrt28_ss): Ditto.
399 (_mm_maskz_rsqrt28_ss): Ditto.
400 * config/i386/avx512fintrin.h (_mm_mask_sqrt_sd): New intrinsics.
401 (_mm_maskz_sqrt_sd): Ditto.
402 (_mm_mask_sqrt_ss): Ditto.
403 (_mm_maskz_sqrt_ss): Ditto.
404 (_mm_mask_scalef_sd): Ditto.
405 (_mm_maskz_scalef_sd): Ditto.
406 (_mm_mask_scalef_ss): Ditto.
407 (_mm_maskz_scalef_ss): Ditto.
408 (_mm_mask_cvt_roundsd_ss): Ditto.
409 (_mm_maskz_cvt_roundsd_ss): Ditto.
410 (_mm_mask_cvt_roundss_sd): Ditto.
411 (_mm_maskz_cvt_roundss_sd): Ditto.
412 (_mm_mask_cvtss_sd): Ditto.
413 (_mm_maskz_cvtss_sd): Ditto.
414 (_mm_mask_cvtsd_ss): Ditto.
415 (_mm_maskz_cvtsd_ss): Ditto.
416 (_mm512_cvtsi512_si32): Ditto.
417 (_mm_cvtsd_i32): Ditto.
418 (_mm_cvtss_i32): Ditto.
419 (_mm_cvti32_sd): Ditto.
420 (_mm_cvti32_ss): Ditto.
421 (_mm_cvtsd_i64): Ditto.
422 (_mm_cvtss_i64): Ditto.
423 (_mm_cvti64_sd): Ditto.
424 (_mm_cvti64_ss): Ditto.
425 * config/i386/avx512vlbwintrin.h (_mm256_storeu_epi8): New intrinsics.
426 (_mm_storeu_epi8): Ditto.
427 (_mm256_loadu_epi16): Ditto.
428 (_mm_loadu_epi16): Ditto.
429 (_mm256_loadu_epi8): Ditto.
430 (_mm_loadu_epi8): Ditto.
431 (_mm256_storeu_epi16): Ditto.
432 (_mm_storeu_epi16): Ditto.
433 * config/i386/avx512vlintrin.h (_mm256_load_epi64): New intrinsics.
434 (_mm_load_epi64): Ditto.
435 (_mm256_load_epi32): Ditto.
436 (_mm_load_epi32): Ditto.
437 (_mm256_store_epi32): Ditto.
438 (_mm_store_epi32): Ditto.
439 (_mm256_loadu_epi64): Ditto.
440 (_mm_loadu_epi64): Ditto.
441 (_mm256_loadu_epi32): Ditto.
442 (_mm_loadu_epi32): Ditto.
443 (_mm256_mask_cvt_roundps_ph): Ditto.
444 (_mm256_maskz_cvt_roundps_ph): Ditto.
445 (_mm_mask_cvt_roundps_ph): Ditto.
446 (_mm_maskz_cvt_roundps_ph): Ditto.
447 * config/i386/avxintrin.h (_mm256_cvtsi256_si32): New intrinsics.
448 * config/i386/emmintrin.h (_mm_loadu_si32): New intrinsics.
449 (_mm_loadu_si16): Ditto.
450 (_mm_storeu_si32): Ditto.
451 (_mm_storeu_si16): Ditto.
452 * config/i386/i386-builtin-types.def
453 (V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT): Add new type.
454 (V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT): Ditto.
455 (V4SF_FTYPE_V4SF_V2DF_V4SF_UQI_INT): Ditto.
456 (V2DF_FTYPE_V2DF_V4SF_V2DF_UQI_INT): Ditto.
457 * config/i386/i386-builtin.def
458 (__builtin_ia32_cvtsd2ss_mask_round): New builtin.
459 (__builtin_ia32_cvtss2sd_mask_round): Ditto.
460 (__builtin_ia32_rcp28sd_mask_round): Ditto.
461 (__builtin_ia32_rcp28ss_mask_round): Ditto.
462 (__builtin_ia32_rsqrt28sd_mask_round): Ditto.
463 (__builtin_ia32_rsqrt28ss_mask_round): Ditto.
464 (__builtin_ia32_reducepd512_mask_round): Ditto.
465 (__builtin_ia32_reduceps512_mask_round): Ditto.
466 (__builtin_ia32_reducesd_mask_round): Ditto.
467 (__builtin_ia32_reducess_mask_round): Ditto.
468 * config/i386/i386-expand.c
469 (ix86_expand_round_builtin): Expand round builtin for new type.
470 (V8DF_FTYPE_V8DF_INT_V8DF_UQI_INT)
471 (V16SF_FTYPE_V16SF_INT_V16SF_UHI_INT)
472 (V4SF_FTYPE_V4SF_V2DF_V4SF_UQI_INT)
473 (V2DF_FTYPE_V2DF_V4SF_V2DF_UQI_INT)
474 * config/i386/mmintrin.h ()
475 Define datatype __m32 and __m16.
476 Define datatype __m32_u and __m16_u.
477 * config/i386/sse.md: Adjust pattern.
478 (<mask_codefor>reducep<mode><mask_name><round_saeonly_name>): Adjust.
479 (reduces<mode><mask_scalar_name><round_saeonly_scalar_name>): Ditto.
480 (sse2_cvtsd2ss<mask_name><round_name>): Ditto.
481 (sse2_cvtss2sd<mask_name><round_saeonly_name>): Ditto.
482 (avx512er_vmrcp28<mode><mask_name><round_saeonly_name>): Ditto.
483 (avx512er_vmrsqrt28<mode><mask_name><round_saeonly_name>): Ditto.
484
485 2020-10-14 Olivier Hainque <hainque@adacore.com>
486
487 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Fix
488 the VX_CPU selection for -mcpu=xscale on arm-vxworks.
489
490 2020-10-14 Olivier Hainque <hainque@adacore.com>
491
492 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Accommodate
493 expectations from different versions of VxWorks, for 32 or 64bit
494 configurations.
495
496 2020-10-14 Olivier Hainque <hainque@adacore.com>
497
498 * config/vxworks.h: #undef CPLUSPLUS_CPP_SPEC.
499
500 2020-10-14 Olivier Hainque <hainque@adacore.com>
501
502 * config/t-vxworks: Adjust the VxWorks alternative LIMITS_H guard
503 for glimits.h, make it both closer to the previous one and easier to
504 search for.
505
506 2020-10-14 Jakub Jelinek <jakub@redhat.com>
507
508 PR target/97387
509 * config/i386/i386.md (CC_CCC): New mode iterator.
510 (*setcc_qi_addqi3_cconly_overflow_1_<mode>): New
511 define_insn_and_split.
512 * config/i386/i386.c (ix86_cc_mode): Return CCCmode
513 for *setcc_qi_addqi3_cconly_overflow_1_<mode> pattern operands.
514 (ix86_rtx_costs): Return true and *total = 0;
515 for *setcc_qi_addqi3_cconly_overflow_1_<mode> pattern. Use op0 and
516 op1 temporaries to simplify COMPARE checks.
517
518 2020-10-14 Aldy Hernandez <aldyh@redhat.com>
519
520 PR tree-optimization/97396
521 * gimple-range.cc (gimple_ranger::range_of_phi): Do not call
522 range_of_ssa_name_with_loop_info with the loop tree root.
523
524 2020-10-14 Richard Biener <rguenther@suse.de>
525
526 * tree-vect-slp.c (vect_get_and_check_slp_defs): Split out
527 test for compatible operand types.
528
529 2020-10-14 Olivier Hainque <hainque@adacore.com>
530
531 * config/vxworks.c (vxworks_override_options): Guard pic checks with
532 flag_pic > 0 instead of just flag_pic.
533
534 2020-10-14 Jan Hubicka <hubicka@ucw.cz>
535
536 * ipa-fnsummary.c (remap_edge_summaries): Make offset_map HOST_WIDE_INT.
537 (remap_freqcounting_predicate): Likewise.
538 (ipa_merge_fn_summary_after_inlining): Likewise.
539 * ipa-predicate.c (predicate::remap_after_inlining): Likewise
540 * ipa-predicate.h (remap_after_inlining): Update.
541
542 2020-10-14 Jan Hubicka <jh@suse.cz>
543
544 * ipa-modref.c (compute_parm_map): Handle POINTER_PLUS_EXPR in
545 PASSTHROUGH.
546
547 2020-10-14 Richard Biener <rguenther@suse.de>
548
549 * tree-vect-slp.c (vect_get_and_check_slp_defs): Move
550 check for duplicate/interleave of variable size constants
551 to a place done once and early.
552 (vect_build_slp_tree_2): Adjust heuristics when to build
553 a BB SLP node from scalars.
554
555 2020-10-14 Tom de Vries <tdevries@suse.de>
556
557 * tracer.c (cached_can_duplicate_bb_p, analyze_bb): Use
558 can_duplicate_block_p.
559 (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
560 (can_duplicate_bb_p): Move and merge ...
561 * tree-cfg.c (gimple_can_duplicate_bb_p): ... here.
562
563 2020-10-14 Jan Hubicka <hubicka@ucw.cz>
564
565 * doc/invoke.texi: (ipa-jump-function-lookups): Document param.
566 * ipa-modref.c (merge_call_side_effects): Use
567 unadjusted_ptr_and_unit_offset.
568 * ipa-prop.c (unadjusted_ptr_and_unit_offset): New function.
569 * ipa-prop.h (unadjusted_ptr_and_unit_offset): Declare.
570 * params.opt: (-param-ipa-jump-function-lookups): New.
571
572 2020-10-14 Jan Hubicka <jh@suse.cz>
573
574 PR bootstrap/97350
575 * ipa-modref.c (ignore_edge): Do not ignore inlined edes.
576 (ipa_merge_modref_summary_after_inlining): Improve debug output and
577 fix parameter of ignore_stores_p.
578
579 2020-10-14 Kito Cheng <kito.cheng@sifive.com>
580
581 PR target/96759
582 * expr.c (expand_assignment): Handle misaligned stores with PARALLEL
583 value.
584
585 2020-10-13 Jakub Jelinek <jakub@redhat.com>
586
587 PR rtl-optimization/97386
588 * combine.c (simplify_shift_const_1): Don't optimize nested ROTATEs if
589 they have different modes.
590
591 2020-10-13 Aldy Hernandez <aldyh@redhat.com>
592
593 PR tree-optimization/97379
594 * gimple-range-edge.cc (outgoing_range::calc_switch_ranges): Do
595 not save hash slot across calls to hash_table<>::get_or_insert.
596
597 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
598
599 * lto-wrapper.c (find_crtoffloadtable): Fix last commit
600 by adding NULL as last argument to concat.
601
602 2020-10-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
603
604 * config/aarch64/aarch64.c (neoversen2_tunings): Define.
605 * config/aarch64/aarch64-cores.def (neoverse-n2): Use it.
606
607 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
608
609 * lto-wrapper.c (find_crtoffloadtable): With -save-temps,
610 use non-temp file name utilizing the dump prefix.
611 (run_gcc): Update call.
612
613 2020-10-13 Richard Biener <rguenther@suse.de>
614
615 PR tree-optimization/97382
616 * tree-vectorizer.h (_stmt_vec_info::same_align_refs): Remove.
617 (STMT_VINFO_SAME_ALIGN_REFS): Likewise.
618 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
619 allocate STMT_VINFO_SAME_ALIGN_REFS.
620 (vec_info::free_stmt_vec_info): Do not release
621 STMT_VINFO_SAME_ALIGN_REFS.
622 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
623 Do not compute self and read-read dependences.
624 (vect_dr_aligned_if_related_peeled_dr_is): New helper.
625 (vect_dr_aligned_if_peeled_dr_is): Likewise.
626 (vect_update_misalignment_for_peel): Use it instead of
627 iterating over STMT_VINFO_SAME_ALIGN_REFS.
628 (dr_align_group_sort_cmp): New function.
629 (vect_enhance_data_refs_alignment): Count the number of
630 same aligned refs here and elide uses of STMT_VINFO_SAME_ALIGN_REFS.
631 (vect_find_same_alignment_drs): Remove.
632 (vect_analyze_data_refs_alignment): Do not call it.
633 * vec.h (auto_vec<T, 0>::auto_vec): Adjust CTOR to take
634 a vec<>&&, assert it isn't using auto storage.
635 (auto_vec& operator=): Apply a similar change.
636
637 2020-10-13 Tobias Burnus <tobias@codesourcery.com>
638
639 * config/nvptx/mkoffload.c (main): Add missing fclose (in).
640
641 2020-10-13 Zhiheng Xie <xiezhiheng@huawei.com>
642 Nannan Zheng <zhengnannan@huawei.com>
643
644 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
645 for mul/mla/mls intrinsics.
646
647 2020-10-13 Jakub Jelinek <jakub@redhat.com>
648
649 * omp-low.c (add_taskreg_looptemp_clauses): For triangular loops
650 with non-constant number of iterations add another 4 _looptemp_
651 clauses before the (optional) one for lastprivate.
652 (lower_omp_for_lastprivate): Skip those clauses when looking for
653 the lastprivate clause.
654 (lower_omp_for): For triangular loops with non-constant number of
655 iterations add another 4 _looptemp_ clauses.
656 * omp-expand.c (expand_omp_for_init_counts): For triangular loops
657 with non-constant number of iterations set counts[0],
658 fd->first_inner_iterations, fd->factor and fd->adjn1 from the newly
659 added _looptemp_ clauses.
660 (expand_omp_for_init_vars): Initialize the newly added _looptemp_
661 clauses.
662 (find_lastprivate_looptemp): New function.
663 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk,
664 expand_omp_taskloop_for_outer): Use it instead of manually skipping
665 _looptemp_ clauses.
666
667 2020-10-13 Jan Hubicka <hubicka@ucw.cz>
668
669 PR ipa/97389
670 * ipa-modref.c (dump_lto_records): Fix formating of dump file.
671 (modref_summary::dump): Do not check loads to be non-null.
672 (modref_summary_lto::dump): Do not check loads to be non-null.
673 (merge_call_side_effects): Improve debug output.
674 (analyze_call): Crash when cur_summary->loads is NULL.
675 (analyze_function): Update.
676 (modref_summaries::insert): Insert only into summaries, not
677 optimization_summaries.
678 (modref_summaries::duplicate): Likewise; crash when load or sotres
679 are NULL.
680 (modref_summaries_lto::duplicate): Crash when loads or stores are NULL.
681 (write_modref_records): param_index is signed.
682 (read_modref_records): param_index is signed.
683 (modref_write): Crash when loads or stores are NULL.
684 (read_section): Compensate previous change.
685 (pass_modref::execute): Do not check optimization_summaries t be
686 non-NULL.
687 (ignore_edge): Fix.
688 (compute_parm_map): Fix formating.
689 (modref_propagate_in_scc): Do not expect loads/stores to be NULL.
690
691 2020-10-12 Alexandre Oliva <oliva@adacore.com>
692
693 * builtins.c (mathfn_built_in_type): Use CFN_ enumerators.
694
695 2020-10-12 Andrew MacLeod <amacleod@redhat.com>
696
697 PR tree-optimization/97381
698 * gimple-range-gori.cc (gori_compute::compute_operand2_range): If a range cannot be
699 calculated through operand 2, return false.
700
701 2020-10-12 Aldy Hernandez <aldyh@redhat.com>
702
703 PR tree-optimization/97378
704 * range-op.cc (operator_trunc_mod::wi_fold): Return VARYING for mod by zero.
705
706 2020-10-12 David Malcolm <dmalcolm@redhat.com>
707
708 * doc/invoke.texi: Document -Wanalyzer-write-to-const and
709 -Wanalyzer-write-to-string-literal.
710
711 2020-10-12 Martin Sebor <msebor@redhat.com>
712
713 PR middle-end/97342
714 PR middle-end/97023
715 PR middle-end/96384
716 * builtins.c (access_ref::access_ref): Initialize new member. Use
717 new enum.
718 (access_ref::size_remaining): Define new member function.
719 (inform_access): Handle expressions referencing objects.
720 (gimple_call_alloc_size): Call get_size_range instead of get_range.
721 (gimple_call_return_array): New function.
722 (get_range): Rename...
723 (get_offset_range): ...to this. Improve detection of ranges from
724 types of expressions.
725 (gimple_call_return_array): Adjust calls to get_range per above.
726 (compute_objsize): Same. Set maximum size or offset instead of
727 failing for unknown objects and handle more kinds of expressions.
728 (compute_objsize): Call access_ref::size_remaining.
729 (compute_objsize): Have transitional wrapper fail for pointers
730 into unknown objects.
731 (expand_builtin_strncmp): Call access_ref::size_remaining and
732 handle new cases.
733 * builtins.h (access_ref::size_remaining): Declare new member function.
734 (access_ref::set_max_size_range): Define new member function.
735 (access_ref::add_ofset, access_ref::add_max_ofset): Same.
736 (access_ref::add_base0): New data member.
737 * calls.c (get_size_range): Change argument type. Handle new
738 condition.
739 * calls.h (get_size_range): Adjust signature.
740 (enum size_range_flags): Define new type.
741 * gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Correct
742 argument to get_size_range.
743 * tree-ssa-strlen.c (get_range): Handle anti-ranges.
744 (maybe_warn_overflow): Check DECL_P before assuming it's one.
745
746 2020-10-12 Martin Sebor <msebor@redhat.com>
747
748 PR c++/96511
749 PR middle-end/96384
750 * builtins.c (get_range): Return full range of type when neither
751 value nor its range is available. Fail for ranges inverted due
752 to the signedness of offsets.
753 (compute_objsize): Handle more special array members. Handle
754 POINTER_PLUS_EXPR and VIEW_CONVERT_EXPR that come up in front end
755 code.
756 (access_ref::offset_bounded): Define new member function.
757 * builtins.h (access_ref::eval): New data member.
758 (access_ref::offset_bounded): New member function.
759 (access_ref::offset_zero): New member function.
760 (compute_objsize): Declare a new overload.
761 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Use
762 enum special_array_member.
763 * tree.c (component_ref_size): Use special_array_member.
764 * tree.h (special_array_member): Define a new type.
765 (component_ref_size): Change signature.
766
767 2020-10-12 Jan Hubicka <hubicka@ucw.cz>
768
769 * ipa-modref.c (modref_summaries): Remove field IPA.
770 (class modref_summary_lto): New global variable.
771 (class modref_summaries_lto): New.
772 (modref_summary::modref_summary): Remove loads_lto and stores_lto.
773 (modref_summary::~modref_summary): Remove loads_lto and stores_lto.
774 (modref_summary::useful_p): Do not use lto_useful.
775 (modref_records_lto): New typedef.
776 (struct modref_summary_lto): New type.
777 (modref_summary_lto::modref_summary_lto): New member function.
778 (modref_summary_lto::~modref_summary_lto): New member function.
779 (modref_summary_lto::useful_p): New member function.
780 (modref_summary::dump): Do not handle lto.
781 (modref_summary_lto::dump): New member function.
782 (get_modref_function_summary): Use optimization_summary.
783 (merge_call_side_effects): Use optimization_summary.
784 (analyze_call): Use optimization_summary.
785 (struct summary_ptrs): New struture.
786 (analyze_load): Update to handle separate lto and non-lto summaries.
787 (analyze_store): Likewise.
788 (analyze_stmt): Likewise.
789 (remove_summary): Break out from ...
790 (analyze_function): ... here; update to handle seprated summaries.
791 (modref_summaries::insert): Do not handle lto summary.
792 (modref_summaries_lto::insert): New member function.
793 (modref_summaries::duplicate): Do not handle lto summary.
794 (modref_summaries_lto::duplicate): New member function.
795 (read_modref_records): Expect nolto_ret or lto_ret to be NULL>
796 (modref_write): Write lto summary.
797 (read_section): Handle separated summaries.
798 (modref_read): Initialize separated summaries.
799 (modref_transform): Handle separated summaries.
800 (pass_modref::execute): Turn summary to optimization_summary; handle
801 separate summaries.
802 (ignore_edge): Handle separate summaries.
803 (ipa_merge_modref_summary_after_inlining): Likewise.
804 (collapse_loads): Likewise.
805 (modref_propagate_in_scc): Likewise.
806 (pass_ipa_modref::execute): Likewise.
807 (ipa_modref_c_finalize): Likewise.
808 * ipa-modref.h (modref_records_lto): Remove typedef.
809 (struct modref_summary): Remove stores_lto, loads_lto and finished
810 fields; remove lto_useful_p member function.
811
812 2020-10-12 Richard Biener <rguenther@suse.de>
813
814 * tree-vect-data-refs.c (vect_slp_analyze_instance_dependence):
815 Use SLP_TREE_REPRESENTATIVE.
816 * tree-vectorizer.h (_slp_tree::vertex): New member used
817 for graphds interfacing.
818 * tree-vect-slp.c (vect_build_slp_tree_2): Allocate space
819 for PHI SLP children.
820 (vect_analyze_slp_backedges): New function filling in SLP
821 node children for PHIs that correspond to backedge values.
822 (vect_analyze_slp): Call vect_analyze_slp_backedges for the
823 graph.
824 (vect_slp_analyze_node_operations): Deal with a cyclic graph.
825 (vect_schedule_slp_instance): Likewise.
826 (vect_schedule_slp): Likewise.
827 (slp_copy_subtree): Remove.
828 (vect_slp_rearrange_stmts): Likewise.
829 (vect_attempt_slp_rearrange_stmts): Likewise.
830 (vect_slp_build_vertices): New functions.
831 (vect_slp_permute): Likewise.
832 (vect_slp_perms_eq): Likewise.
833 (vect_optimize_slp): Remove special code to elide
834 permutations with SLP reductions. Implement generic
835 permute optimization.
836
837 2020-10-12 Christophe Lyon <christophe.lyon@linaro.org>
838
839 * config/arm/arm.c (arm_preferred_simd_mode): Use E_FOOmode
840 instead of FOOmode.
841
842 2020-10-12 Martin Liska <mliska@suse.cz>
843
844 PR tree-optimization/97079
845 * internal-fn.c (internal_fn_stored_value_index): Handle also
846 .MASK_STORE_LANES.
847 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Bail
848 out for unsupported TREE_TYPE.
849
850 2020-10-12 Richard Biener <rguenther@suse.de>
851
852 * tree-vect-slp.c (vect_bb_partition_graph_r): Use visited
853 hash-map.
854 (vect_bb_partition_graph): Likewise.
855
856 2020-10-12 Duan bo <duanbo3@huawei.com>
857
858 PR target/96757
859 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Add
860 the identification and handling of the dropped situation in the
861 cond expression processing phase.
862
863 2020-10-12 Tobias Burnus <tobias@codesourcery.com>
864
865 * doc/invoke.texi (nvptx's -misa): Update default to sm_35.
866
867 2020-10-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
868
869 PR target/97349
870 * config/aarch64/arm_neon.h (vdupq_n_p8, vdupq_n_p16,
871 vdupq_n_p64, vdupq_n_s8, vdupq_n_s16, vdupq_n_u8, vdupq_n_u16):
872 Fix argument type.
873
874 2020-10-12 Ilya Leoshkevich <iii@linux.ibm.com>
875
876 * config/s390/s390-protos.h (s390_build_signbit_mask): New
877 function.
878 * config/s390/s390.c (s390_contiguous_bitmask_vector_p):
879 Bitcast the argument to an integral mode.
880 (s390_expand_vec_init): Do not call
881 s390_contiguous_bitmask_vector_p with a scalar argument.
882 (s390_build_signbit_mask): New function.
883 * config/s390/vector.md (copysign<mode>3): Use bitwise
884 operations.
885
886 2020-10-12 Aldy Hernandez <aldyh@redhat.com>
887
888 PR tree-optimization/97371
889 * range-op.cc (operator_rshift::op1_range): Ignore shifts larger than
890 or equal to type precision.
891
892 2020-10-12 Martin Liska <mliska@suse.cz>
893
894 * ipa-modref.c (merge_call_side_effects): Clear modref_parm_map
895 fields in the vector.
896
897 2020-10-12 Richard Biener <rguenther@suse.de>
898
899 * tree-vect-slp.c (vect_analyze_slp_instance): Set matches to true
900 after successful discovery but forced split.
901
902 2020-10-12 Tom de Vries <tdevries@suse.de>
903
904 * config/nvptx/nvptx.opt (-msoft-stack-reserve-local): Rename to ...
905 (-msoft-stack-reserve-local=): ... this.
906
907 2020-10-12 Richard Biener <rguenther@suse.de>
908
909 PR tree-optimization/97357
910 * tree-ssa-loop-split.c (ssa_semi_invariant_p): Abnormal
911 SSA names are not semi invariant.
912
913 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
914
915 * config/darwin.c (darwin_globalize_label): Make a subset of
916 metadate symbols global.
917 (darwin_label_is_anonymous_local_objc_name): Make a subset of
918 metadata symbols linker-visible.
919 (darwin_override_options): Track more target OS versions, make
920 the next_runtime version track this (unless it's set to 0 for
921 GNU runtime).
922
923 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
924
925 * config/darwin.c (darwin_globalize_label): Add protocol
926 meta-data labels to the set that are global.
927 (darwin_label_is_anonymous_local_objc_name): Arrange for meta-
928 data start labels to be linker-visible.
929
930 2020-10-11 Iain Sandoe <iain@sandoe.co.uk>
931
932 * config/darwin.c (darwin_objc2_section): Allow for
933 values > 1 to represent the next runtime.
934 (darwin_objc1_section): Likewise.
935 * config/darwin.h (NEXT_OBJC_RUNTIME): Set the default
936 next runtime value to be 10.5.8.
937
938 2020-10-10 Jan Hubicka <jh@suse.cz>
939
940 * ipa-modref.c (modref_transform): Fix parameter map computation.
941
942 2020-10-10 Tom de Vries <tdevries@suse.de>
943
944 PR target/97318
945 * config/nvptx/nvptx.c (nvptx_replace_dot): New function.
946 (write_fn_proto, write_fn_proto_from_insn, nvptx_output_call_insn):
947 Use nvptx_replace_dot.
948
949 2020-10-10 Tom de Vries <tdevries@suse.de>
950
951 * config/nvptx/nvptx.c (write_fn_proto_1): New function, factored out
952 of ...
953 (write_fn_proto): ... here. Return void.
954
955 2020-10-10 Jan Hubicka <jh@suse.cz>
956
957 * ipa-modref.c (remap_arguments): Check range in map access.
958
959 2020-10-10 Jan Hubicka <jh@suse.cz>
960
961 * ipa-modref.c (modref_transform): Use reserve instead of safe_grow.
962
963 2020-10-10 Jan Hubicka <jh@suse.cz>
964
965 * ipa-modref.c (modref_transform): Check that summaries are allocated.
966
967 2020-10-10 Jan Hubicka <jh@suse.cz>
968
969 * ipa-modref-tree.h (struct modref_tree): Revert prevoius change.
970 * ipa-modref.c (analyze_function): Dump original summary.
971 (modref_read): Only set IPA if streaming summary (not optimization
972 summary).
973 (remap_arguments): New function.
974 (modref_transform): New function.
975 (compute_parm_map): Fix offset calculation.
976 (ipa_merge_modref_summary_after_inlining): Do not merge stores when
977 they can be ignored.
978
979 2020-10-10 Jan Hubicka <jh@suse.cz>
980
981 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Improve debug dumps.
982 (call_may_clobber_ref_p_1): Improve debug dumps.
983
984 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
985
986 * config/darwin.c (output_objc_section_asm_op): Avoid extra
987 objective-c section switches unless the linker needs them.
988
989 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
990
991 * config/darwin-sections.def (objc2_data_section): New.
992 (objc2_ivar_section): New.
993 * config/darwin.c (darwin_objc2_section): Act on Protocol and
994 ivar refs.
995
996 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
997
998 * config/darwin-sections.def (objc2_class_names_section,
999 objc2_method_names_section, objc2_method_types_section): New
1000 * config/darwin.c (output_objc_section_asm_op): Output new
1001 sections. (darwin_objc2_section): Select new sections where
1002 used.
1003
1004 2020-10-10 Iain Sandoe <iain@sandoe.co.uk>
1005
1006 * config/darwin.c (darwin_emit_local_bss): Amend section names to
1007 match system tools. (darwin_output_aligned_bss): Likewise.
1008
1009 2020-10-10 Aldy Hernandez <aldyh@redhat.com>
1010
1011 PR tree-optimization/97359
1012 * gimple-range-gori.cc (logical_stmt_cache::cacheable_p): Only
1013 handle ANDs and ORs.
1014 (gori_compute_cache::cache_stmt): Adjust comment.
1015
1016 2020-10-09 Vladimir Makarov <vmakarov@redhat.com>
1017
1018 PR rtl-optimization/97313
1019 * lra-constraints.c (match_reload): Don't keep strict_low_part in
1020 reloads for non-registers.
1021
1022 2020-10-09 H.J. Lu <hjl.tools@gmail.com>
1023
1024 PR target/97148
1025 * config.gcc (extra_headers): Add x86gprintrin.h.
1026 * config/i386/adxintrin.h: Check _X86GPRINTRIN_H_INCLUDED for
1027 <x86gprintrin.h>.
1028 * config/i386/bmi2intrin.h: Likewise.
1029 * config/i386/bmiintrin.h: Likewise.
1030 * config/i386/cetintrin.h: Likewise.
1031 * config/i386/cldemoteintrin.h: Likewise.
1032 * config/i386/clflushoptintrin.h: Likewise.
1033 * config/i386/clwbintrin.h: Likewise.
1034 * config/i386/enqcmdintrin.h: Likewise.
1035 * config/i386/fxsrintrin.h: Likewise.
1036 * config/i386/ia32intrin.h: Likewise.
1037 * config/i386/lwpintrin.h: Likewise.
1038 * config/i386/lzcntintrin.h: Likewise.
1039 * config/i386/movdirintrin.h: Likewise.
1040 * config/i386/pconfigintrin.h: Likewise.
1041 * config/i386/pkuintrin.h: Likewise.
1042 * config/i386/rdseedintrin.h: Likewise.
1043 * config/i386/rtmintrin.h: Likewise.
1044 * config/i386/serializeintrin.h: Likewise.
1045 * config/i386/tbmintrin.h: Likewise.
1046 * config/i386/tsxldtrkintrin.h: Likewise.
1047 * config/i386/waitpkgintrin.h: Likewise.
1048 * config/i386/wbnoinvdintrin.h: Likewise.
1049 * config/i386/xsavecintrin.h: Likewise.
1050 * config/i386/xsaveintrin.h: Likewise.
1051 * config/i386/xsaveoptintrin.h: Likewise.
1052 * config/i386/xsavesintrin.h: Likewise.
1053 * config/i386/xtestintrin.h: Likewise.
1054 * config/i386/immintrin.h: Include <x86gprintrin.h> instead of
1055 <fxsrintrin.h>, <xsaveintrin.h>, <xsaveoptintrin.h>,
1056 <xsavesintrin.h>, <xsavecintrin.h>, <lzcntintrin.h>,
1057 <bmiintrin.h>, <bmi2intrin.h>, <xtestintrin.h>, <cetintrin.h>,
1058 <movdirintrin.h>, <sgxintrin.h, <pconfigintrin.h>,
1059 <waitpkgintrin.h>, <cldemoteintrin.h>, <enqcmdintrin.h>,
1060 <serializeintrin.h>, <tsxldtrkintrin.h>, <adxintrin.h>,
1061 <clwbintrin.h>, <clflushoptintrin.h>, <wbnoinvdintrin.h> and
1062 <pkuintrin.h>.
1063 (_wbinvd): Moved to config/i386/x86gprintrin.h.
1064 (_rdrand16_step): Likewise.
1065 (_rdrand32_step): Likewise.
1066 (_rdpid_u32): Likewise.
1067 (_readfsbase_u32): Likewise.
1068 (_readfsbase_u64): Likewise.
1069 (_readgsbase_u32): Likewise.
1070 (_readgsbase_u64): Likewise.
1071 (_writefsbase_u32): Likewise.
1072 (_writefsbase_u64): Likewise.
1073 (_writegsbase_u32): Likewise.
1074 (_writegsbase_u64): Likewise.
1075 (_rdrand64_step): Likewise.
1076 (_ptwrite64): Likewise.
1077 (_ptwrite32): Likewise.
1078 * config/i386/x86gprintrin.h: New file.
1079 * config/i386/x86intrin.h: Include <x86gprintrin.h>. Don't
1080 include <ia32intrin.h>, <lwpintrin.h>, <tbmintrin.h>,
1081 <popcntintrin.h>, <mwaitxintrin.h> and <clzerointrin.h>.
1082
1083 2020-10-09 Tom de Vries <tdevries@suse.de>
1084
1085 PR target/97348
1086 * config/nvptx/nvptx.h (ASM_SPEC): Also pass -m to nvptx-as if
1087 default is used.
1088 * config/nvptx/nvptx.opt (misa): Init with PTX_ISA_SM35.
1089
1090 2020-10-09 Richard Biener <rguenther@suse.de>
1091
1092 * doc/sourcebuild.texi (vect_masked_load): Document.
1093
1094 2020-10-09 Richard Biener <rguenther@suse.de>
1095
1096 PR tree-optimization/97334
1097 * tree-vect-slp.c (vect_build_slp_tree_1): Do not fatally
1098 fail lanes other than zero when BB vectorizing.
1099
1100 2020-10-09 Jan Hubicka <jh@suse.cz>
1101
1102 PR ipa/97292
1103 PR ipa/97335
1104 * ipa-modref-tree.h (copy_from): Drop summary in a
1105 clone.
1106
1107 2020-10-09 Richard Biener <rguenther@suse.de>
1108
1109 PR tree-optimization/97347
1110 * tree-vect-slp.c (vect_create_constant_vectors): Use
1111 edge insertion when inserting on the fallthru edge,
1112 appropriately insert at the start of BBs when inserting
1113 after PHIs.
1114
1115 2020-10-09 Andrew MacLeod <amacleod@redhat.com>
1116
1117 PR tree-optimization/97317
1118 * range-op.cc (operator_cast::op1_range): Handle casts where the precision
1119 of the RHS is only 1 greater than the precision of the LHS.
1120
1121 2020-10-09 Richard Biener <rguenther@suse.de>
1122
1123 * cgraphunit.c (expand_all_functions): Free tp_first_run_order.
1124 * ipa-modref.c (pass_ipa_modref::execute): Free order.
1125 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations): Free
1126 loop body.
1127 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Free
1128 data references upon failure.
1129 * tree-vect-loop.c (update_epilogue_loop_vinfo): Free BBs
1130 array of the original loop.
1131 * tree-vect-slp.c (vect_slp_bbs): Use an auto_vec for
1132 dataref_groups to release its memory.
1133
1134 2020-10-09 Jakub Jelinek <jakub@redhat.com>
1135
1136 PR tree-optimization/94801
1137 PR target/97312
1138 * vr-values.c (vr_values::extract_range_basic) <CASE_CFN_CLZ,
1139 CASE_CFN_CTZ>: When stmt is not an internal-fn call or
1140 C?Z_DEFINED_VALUE_AT_ZERO is not 2, assume argument is not zero
1141 and thus use [0, prec-1] range unless it can be further improved.
1142 For CTZ, don't update maxi from upper bound if it was previously prec.
1143 * gimple-range.cc (gimple_ranger::range_of_builtin_call) <CASE_CFN_CLZ,
1144 CASE_CFN_CTZ>: Likewise.
1145
1146 2020-10-09 Jakub Jelinek <jakub@redhat.com>
1147
1148 PR tree-optimization/97325
1149 * match.pd (FFS(nonzero) -> CTZ(nonzero) + 1): Cast argument to
1150 corresponding unsigned type.
1151
1152 2020-10-09 Richard Biener <rguenther@suse.de>
1153
1154 * tree-vect-slp.c (vect_create_constant_vectors): Properly insert
1155 after PHIs.
1156
1157 2020-10-08 Alexandre Oliva <oliva@adacore.com>
1158
1159 * builtins.c (mathfn_built_in_type): New.
1160 * builtins.h (mathfn_built_in_type): Declare.
1161 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use it to
1162 obtain the type expected by the intrinsic.
1163
1164 2020-10-08 Will Schmidt <will_schmidt@vnet.ibm.com>
1165
1166 * config/rs6000/rs6000-builtin.def (BU_P10_MISC_2): Rename
1167 to BU_P10_POWERPC64_MISC_2.
1168 CFUGED, CNTLZDM, CNTTZDM, PDEPD, PEXTD): Call renamed macro.
1169
1170 2020-10-08 Jan Hubicka <jh@suse.cz>
1171
1172 * tree-nrv.c (dest_safe_for_nrv_p): Disable tbaa in
1173 call_may_clobber_ref_p and ref_maybe_used_by_stmt_p.
1174 * tree-tailcall.c (find_tail_calls): Likewise.
1175 * tree-ssa-alias.c (call_may_clobber_ref_p): Add tbaa_p parameter.
1176 * tree-ssa-alias.h (call_may_clobber_ref_p): Update prototype.
1177 * tree-ssa-sccvn.c (vn_reference_lookup_3): Pass data->tbaa_p
1178 to call_may_clobber_ref_p_1.
1179
1180 2020-10-08 Mark Wielaard <mark@klomp.org>
1181
1182 * dwarf2out.c (dwarf2out_finish): Emit .file 0 entry when
1183 generating DWARF5 .debug_line table through gas.
1184
1185 2020-10-08 John Henning <john.henning@oracle.com>
1186
1187 PR other/97309
1188 * doc/invoke.texi: Improve documentation of
1189 -fallow-store-data-races.
1190
1191 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
1192
1193 PR target/96914
1194 * config/arm/arm_mve.h (__arm_vcvtnq_u32_f32): New.
1195
1196 2020-10-08 Martin Liska <mliska@suse.cz>
1197 Richard Biener <rguenther@suse.de>
1198
1199 * tree-vectorizer.h (_bb_vec_info::const_iterator): Remove.
1200 (_bb_vec_info::const_reverse_iterator): Likewise.
1201 (_bb_vec_info::region_stmts): Likewise.
1202 (_bb_vec_info::reverse_region_stmts): Likewise.
1203 (_bb_vec_info::_bb_vec_info): Adjust.
1204 (_bb_vec_info::bb): Remove.
1205 (_bb_vec_info::region_begin): Remove.
1206 (_bb_vec_info::region_end): Remove.
1207 (_bb_vec_info::bbs): New vector of BBs.
1208 (vect_slp_function): Declare.
1209 * tree-vect-patterns.c (vect_determine_precisions): Use
1210 regular stmt iteration.
1211 (vect_pattern_recog): Likewise.
1212 * tree-vect-slp.c: Include cfganal.h, tree-eh.h and tree-cfg.h.
1213 (vect_build_slp_tree_1): Properly refuse to vectorize
1214 volatile and throwing stmts.
1215 (vect_build_slp_tree_2): Pass group-size down to
1216 get_vectype_for_scalar_type.
1217 (_bb_vec_info::_bb_vec_info): Use regular stmt iteration,
1218 adjust for changed region specification.
1219 (_bb_vec_info::~_bb_vec_info): Likewise.
1220 (vect_slp_check_for_constructors): Likewise.
1221 (vect_slp_region): Likewise.
1222 (vect_slp_bbs): New worker operating on a vector of BBs.
1223 (vect_slp_bb): Wrap it.
1224 (vect_slp_function): New function splitting the function
1225 into multi-BB regions.
1226 (vect_create_constant_vectors): Handle the case of inserting
1227 after a throwing def.
1228 (vect_schedule_slp_instance): Adjust.
1229 * tree-vectorizer.c (vec_info::remove_stmt): Simplify again.
1230 (vec_info::insert_seq_on_entry): Adjust.
1231 (pass_slp_vectorize::execute): Also init PHIs. Call
1232 vect_slp_function.
1233
1234 2020-10-08 Richard Biener <rguenther@suse.de>
1235
1236 PR tree-optimization/97330
1237 * tree-ssa-sink.c (statement_sink_location): Avoid skipping
1238 PHIs when they dominate the insert location.
1239
1240 2020-10-08 Jan Hubicka <jh@suse.cz>
1241
1242 * ipa-modref.c (get_access): Fix handling of offsets.
1243 * tree-ssa-alias.c (modref_may_conflict): Watch for overflows.
1244
1245 2020-10-08 Martin Liska <mliska@suse.cz>
1246
1247 * dbgcnt.def (DEBUG_COUNTER): Add ipa_mod_ref debug counter.
1248 * tree-ssa-alias.c (modref_may_conflict): Handle the counter.
1249
1250 2020-10-08 Richard Biener <rguenther@suse.de>
1251
1252 * tree-vectorizer.c (try_vectorize_loop_1): Do not dump
1253 "basic block vectorized".
1254 (pass_slp_vectorize::execute): Likewise.
1255 * tree-vect-slp.c (vect_analyze_slp_instance): Avoid
1256 re-analyzing split single stmts.
1257
1258 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
1259
1260 PR target/96914
1261 * config/arm/arm_mve.h (vqrdmlashq_n_u8, vqrdmlashq_n_u16)
1262 (vqrdmlashq_n_u32, vqrdmlahq_n_u8, vqrdmlahq_n_u16)
1263 (vqrdmlahq_n_u32, vqdmlahq_n_u8, vqdmlahq_n_u16, vqdmlahq_n_u32)
1264 (vmlaldavaxq_p_u16, vmlaldavaxq_p_u32): Remove.
1265 * config/arm/arm_mve_builtins.def (vqrdmlashq_n_u, vqrdmlahq_n_u)
1266 (vqdmlahq_n_u, vmlaldavaxq_p_u): Remove.
1267 * config/arm/unspecs.md (VQDMLAHQ_N_U, VQRDMLAHQ_N_U)
1268 (VQRDMLASHQ_N_U)
1269 (VMLALDAVAXQ_P_U): Remove unspecs.
1270 * config/arm/iterators.md (VQDMLAHQ_N_U, VQRDMLAHQ_N_U)
1271 (VQRDMLASHQ_N_U, VMLALDAVAXQ_P_U): Remove attributes.
1272 (VQDMLAHQ_N, VQRDMLAHQ_N, VQRDMLASHQ_N, VMLALDAVAXQ_P): Remove
1273 unsigned variants from iterators.
1274 * config/arm/mve.md (mve_vqdmlahq_n_<supf><mode>)
1275 (mve_vqrdmlahq_n_<supf><mode>)
1276 (mve_vqrdmlashq_n_<supf><mode>, mve_vmlaldavaxq_p_<supf><mode>):
1277 Update comment.
1278
1279 2020-10-08 Christophe Lyon <christophe.lyon@linaro.org>
1280
1281 PR target/96914
1282 * config/arm/arm_mve.h (vqdmlashq, vqdmlashq_m): Define.
1283 * config/arm/arm_mve_builtins.def (vqdmlashq_n_s)
1284 (vqdmlashq_m_n_s,): New.
1285 * config/arm/unspecs.md (VQDMLASHQ_N_S, VQDMLASHQ_M_N_S): New
1286 unspecs.
1287 * config/arm/iterators.md (VQDMLASHQ_N_S, VQDMLASHQ_M_N_S): New
1288 attributes.
1289 (VQDMLASHQ_N): New iterator.
1290 * config/arm/mve.md (mve_vqdmlashq_n_, mve_vqdmlashq_m_n_s): New
1291 patterns.
1292
1293 2020-10-08 Jakub Jelinek <jakub@redhat.com>
1294
1295 PR target/97322
1296 * config/arm/arm.c (arm_expand_divmod_libfunc): Pass mode instead of
1297 GET_MODE (op0) or GET_MODE (op1) to emit_library_call_value.
1298
1299 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
1300
1301 PR tree-optimization/97325
1302 * gimple-range.cc (gimple_ranger::range_of_builtin_call): Handle
1303 negative numbers in __builtin_ffs and __builtin_popcount.
1304
1305 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
1306
1307 PR tree-optimization/97315
1308 * range-op.cc (value_range_with_overflow): Change any
1309 non-overflow calculation in which both bounds are
1310 overflow/underflow to be undefined.
1311
1312 2020-10-08 Aldy Hernandez <aldyh@redhat.com>
1313
1314 PR tree-optimization/97315
1315 * gimple-ssa-evrp.c (hybrid_folder::choose_value): Removes the
1316 trap and instead annotates the listing.
1317
1318 2020-10-08 Jakub Jelinek <jakub@redhat.com>
1319
1320 PR sanitizer/97294
1321 * tree-cfg.c (move_block_to_fn): Call notice_special_calls on
1322 call stmts being moved into dest_cfun.
1323 * omp-low.c (lower_rec_input_clauses): Set cfun->calls_alloca when
1324 adding __builtin_alloca_with_align call without gimplification.
1325
1326 2020-10-07 Aldy Hernandez <aldyh@redhat.com>
1327
1328 * common.opt (-fevrp-mode): Rename and move...
1329 * params.opt (--param=evrp-mode): ...here.
1330 * gimple-range.h (DEBUG_RANGE_CACHE): Use param_evrp_mode instead
1331 of flag_evrp_mode.
1332 * gimple-ssa-evrp.c (rvrp_folder): Same.
1333 (hybrid_folder): Same.
1334 (execute_early_vrp): Same.
1335
1336 2020-10-07 Richard Biener <rguenther@suse.de>
1337
1338 PR tree-optimization/97307
1339 * tree-ssa-sink.c (statement_sink_location): Change heuristic
1340 for not skipping stores to look for virtual definitions
1341 rather than uses.
1342
1343 2020-10-07 Andrew MacLeod <amacleod@redhat.com>
1344
1345 * value-range.h (irange_allocator::allocate): Allocate in two hunks
1346 instead of using the variably-sized trailing array approach.
1347
1348 2020-10-07 David Malcolm <dmalcolm@redhat.com>
1349
1350 * doc/invoke.texi (-fdiagnostics-plain-output): Add
1351 -fdiagnostics-path-format=separate-events to list of
1352 options injected by -fdiagnostics-plain-output.
1353 * opts-common.c (decode_cmdline_options_to_array): Likewise.
1354
1355 2020-10-07 Martin Jambor <mjambor@suse.cz>
1356
1357 PR ipa/96394
1358 * ipa-prop.c (update_indirect_edges_after_inlining): Do not add
1359 resolved speculation edges to vector of new direct edges even in
1360 presence of multiple speculative direct edges for a single call.
1361
1362 2020-10-07 Andrew Stubbs <ams@codesourcery.com>
1363
1364 * config/gcn/gcn.md (unspec): Add UNSPEC_ADDPTR.
1365 (addptrdi3): Add SGPR alternative.
1366
1367 2020-10-07 Mark Wielaard <mark@klomp.org>
1368
1369 * dwarf2out.c (add_filepath_AT_string): New function.
1370 (asm_outputs_debug_line_str): Likewise.
1371 (add_filename_attribute): Likewise.
1372 (add_comp_dir_attribute): Call add_filepath_AT_string.
1373 (gen_compile_unit_die): Call add_filename_attribute for name.
1374 (init_sections_and_labels): Init debug_line_str_section when
1375 asm_outputs_debug_line_str return true.
1376 (dwarf2out_early_finish): Remove DW_AT_name and DW_AT_comp_dir
1377 hack and call add_filename_attribute for the remap_debug_filename.
1378
1379 2020-10-07 Jakub Jelinek <jakub@redhat.com>
1380
1381 * configure.ac (HAVE_AS_GDWARF_5_DEBUG_FLAG,
1382 HAVE_AS_WORKING_DWARF_4_FLAG): New tests.
1383 * gcc.c (ASM_DEBUG_DWARF_OPTION): Define.
1384 (ASM_DEBUG_SPEC): Use ASM_DEBUG_DWARF_OPTION instead of
1385 "--gdwarf2". Use %{cond:opt1;:opt2} style.
1386 (ASM_DEBUG_OPTION_DWARF_OPT): Define.
1387 (ASM_DEBUG_OPTION_SPEC): Define.
1388 (asm_debug_option): New variable.
1389 (asm_options): Add "%(asm_debug_option)".
1390 (static_specs): Add asm_debug_option entry.
1391 (static_spec_functions): Add dwarf-version-gt.
1392 (debug_level_greater_than_spec_func): New function.
1393 * config/darwin.h (ASM_DEBUG_OPTION_SPEC): Define.
1394 * config/darwin9.h (ASM_DEBUG_OPTION_SPEC): Redefine.
1395 * config.in: Regenerated.
1396 * configure: Regenerated.
1397
1398 2020-10-07 Jakub Jelinek <jakub@redhat.com>
1399
1400 PR bootstrap/97305
1401 * optc-save-gen.awk: Don't declare mask variable if explicit_mask
1402 array is not present.
1403
1404 2020-10-07 Jakub Jelinek <jakub@redhat.com>
1405
1406 * omp-expand.c (expand_omp_simd): Don't emit MIN_EXPR and PLUS_EXPR
1407 at the end of entry_bb and innermost init_bb, instead force arguments
1408 for MIN_EXPR into temporaries in both cases and jump to a new bb that
1409 performs MIN_EXPR and PLUS_EXPR.
1410
1411 2020-10-07 Tom de Vries <tdevries@suse.de>
1412
1413 * tree-ssa-loop-ch.c (ch_base::copy_headers): Add missing NULL test
1414 for dump_file.
1415
1416 2020-10-06 Andrew MacLeod <amacleod@redhat.com>
1417
1418 * flag-types.h (enum evrp_mode): New enumerated type EVRP_MODE_*.
1419 * common.opt (fevrp-mode): New undocumented flag.
1420 * gimple-ssa-evrp.c: Include gimple-range.h
1421 (class rvrp_folder): EVRP folding using ranger exclusively.
1422 (rvrp_folder::rvrp_folder): New.
1423 (rvrp_folder::~rvrp_folder): New.
1424 (rvrp_folder::value_of_expr): New. Use rangers value_of_expr.
1425 (rvrp_folder::value_on_edge): New. Use rangers value_on_edge.
1426 (rvrp_folder::value_of_Stmt): New. Use rangers value_of_stmt.
1427 (rvrp_folder::fold_stmt): New. Call the simplifier.
1428 (class hybrid_folder): EVRP folding using both engines.
1429 (hybrid_folder::hybrid_folder): New.
1430 (hybrid_folder::~hybrid_folder): New.
1431 (hybrid_folder::fold_stmt): New. Simplify with one engne, then the
1432 other.
1433 (hybrid_folder::value_of_expr): New. Use both value routines.
1434 (hybrid_folder::value_on_edge): New. Use both value routines.
1435 (hybrid_folder::value_of_stmt): New. Use both value routines.
1436 (hybrid_folder::choose_value): New. Choose between range_analzyer and
1437 rangers values.
1438 (execute_early_vrp): Choose a folder based on flag_evrp_mode.
1439 * vr-values.c (simplify_using_ranges::fold_cond): Try range_of_stmt
1440 first to see if it returns a value.
1441 (simplify_using_ranges::simplify_switch_using_ranges): Return true if
1442 any changes were made to the switch.
1443
1444 2020-10-06 Andrew MacLeod <amacleod@redhat.com>
1445
1446 * Makefile.in (OBJS): Add gimple-range*.o.
1447 * gimple-range.h: New file.
1448 * gimple-range.cc: New file.
1449 * gimple-range-cache.h: New file.
1450 * gimple-range-cache.cc: New file.
1451 * gimple-range-edge.h: New file.
1452 * gimple-range-edge.cc: New file.
1453 * gimple-range-gori.h: New file.
1454 * gimple-range-gori.cc: New file.
1455
1456 2020-10-06 Dennis Zhang <dennis.zhang@arm.com>
1457
1458 * config/arm/arm.c (arm_preferred_simd_mode): Enable MVE SIMD modes.
1459
1460 2020-10-06 Tom de Vries <tdevries@suse.de>
1461
1462 PR middle-end/90861
1463 * gimplify.c (gimplify_bind_expr): Handle lookup in
1464 oacc_declare_returns using key with decl-expr.
1465
1466 2020-10-06 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1467
1468 * config/arm/iterators.md (MVE_types): Move mode iterator from mve.md to
1469 iterators.md.
1470 (MVE_VLD_ST): Likewise.
1471 (MVE_0): Likewise.
1472 (MVE_1): Likewise.
1473 (MVE_3): Likewise.
1474 (MVE_2): Likewise.
1475 (MVE_5): Likewise.
1476 (MVE_6): Likewise.
1477 (MVE_CNVT): Move mode attribute iterator from mve.md to iterators.md.
1478 (MVE_LANES): Likewise.
1479 (MVE_constraint): Likewise.
1480 (MVE_constraint1): Likewise.
1481 (MVE_constraint2): Likewise.
1482 (MVE_constraint3): Likewise.
1483 (MVE_pred): Likewise.
1484 (MVE_pred1): Likewise.
1485 (MVE_pred2): Likewise.
1486 (MVE_pred3): Likewise.
1487 (MVE_B_ELEM): Likewise.
1488 (MVE_H_ELEM): Likewise.
1489 (V_sz_elem1): Likewise.
1490 (V_extr_elem): Likewise.
1491 (earlyclobber_32): Likewise.
1492 (supf): Move int attribute from mve.md to iterators.md.
1493 (mode1): Likewise.
1494 (VCVTQ_TO_F): Move int iterator from mve.md to iterators.md.
1495 (VMVNQ_N): Likewise.
1496 (VREV64Q): Likewise.
1497 (VCVTQ_FROM_F): Likewise.
1498 (VREV16Q): Likewise.
1499 (VCVTAQ): Likewise.
1500 (VMVNQ): Likewise.
1501 (VDUPQ_N): Likewise.
1502 (VCLZQ): Likewise.
1503 (VADDVQ): Likewise.
1504 (VREV32Q): Likewise.
1505 (VMOVLBQ): Likewise.
1506 (VMOVLTQ): Likewise.
1507 (VCVTPQ): Likewise.
1508 (VCVTNQ): Likewise.
1509 (VCVTMQ): Likewise.
1510 (VADDLVQ): Likewise.
1511 (VCTPQ): Likewise.
1512 (VCTPQ_M): Likewise.
1513 (VCVTQ_N_TO_F): Likewise.
1514 (VCREATEQ): Likewise.
1515 (VSHRQ_N): Likewise.
1516 (VCVTQ_N_FROM_F): Likewise.
1517 (VADDLVQ_P): Likewise.
1518 (VCMPNEQ): Likewise.
1519 (VSHLQ): Likewise.
1520 (VABDQ): Likewise.
1521 (VADDQ_N): Likewise.
1522 (VADDVAQ): Likewise.
1523 (VADDVQ_P): Likewise.
1524 (VANDQ): Likewise.
1525 (VBICQ): Likewise.
1526 (VBRSRQ_N): Likewise.
1527 (VCADDQ_ROT270): Likewise.
1528 (VCADDQ_ROT90): Likewise.
1529 (VCMPEQQ): Likewise.
1530 (VCMPEQQ_N): Likewise.
1531 (VCMPNEQ_N): Likewise.
1532 (VEORQ): Likewise.
1533 (VHADDQ): Likewise.
1534 (VHADDQ_N): Likewise.
1535 (VHSUBQ): Likewise.
1536 (VHSUBQ_N): Likewise.
1537 (VMAXQ): Likewise.
1538 (VMAXVQ): Likewise.
1539 (VMINQ): Likewise.
1540 (VMINVQ): Likewise.
1541 (VMLADAVQ): Likewise.
1542 (VMULHQ): Likewise.
1543 (VMULLBQ_INT): Likewise.
1544 (VMULLTQ_INT): Likewise.
1545 (VMULQ): Likewise.
1546 (VMULQ_N): Likewise.
1547 (VORNQ): Likewise.
1548 (VORRQ): Likewise.
1549 (VQADDQ): Likewise.
1550 (VQADDQ_N): Likewise.
1551 (VQRSHLQ): Likewise.
1552 (VQRSHLQ_N): Likewise.
1553 (VQSHLQ): Likewise.
1554 (VQSHLQ_N): Likewise.
1555 (VQSHLQ_R): Likewise.
1556 (VQSUBQ): Likewise.
1557 (VQSUBQ_N): Likewise.
1558 (VRHADDQ): Likewise.
1559 (VRMULHQ): Likewise.
1560 (VRSHLQ): Likewise.
1561 (VRSHLQ_N): Likewise.
1562 (VRSHRQ_N): Likewise.
1563 (VSHLQ_N): Likewise.
1564 (VSHLQ_R): Likewise.
1565 (VSUBQ): Likewise.
1566 (VSUBQ_N): Likewise.
1567 (VADDLVAQ): Likewise.
1568 (VBICQ_N): Likewise.
1569 (VMLALDAVQ): Likewise.
1570 (VMLALDAVXQ): Likewise.
1571 (VMOVNBQ): Likewise.
1572 (VMOVNTQ): Likewise.
1573 (VORRQ_N): Likewise.
1574 (VQMOVNBQ): Likewise.
1575 (VQMOVNTQ): Likewise.
1576 (VSHLLBQ_N): Likewise.
1577 (VSHLLTQ_N): Likewise.
1578 (VRMLALDAVHQ): Likewise.
1579 (VBICQ_M_N): Likewise.
1580 (VCVTAQ_M): Likewise.
1581 (VCVTQ_M_TO_F): Likewise.
1582 (VQRSHRNBQ_N): Likewise.
1583 (VABAVQ): Likewise.
1584 (VSHLCQ): Likewise.
1585 (VRMLALDAVHAQ): Likewise.
1586 (VADDVAQ_P): Likewise.
1587 (VCLZQ_M): Likewise.
1588 (VCMPEQQ_M_N): Likewise.
1589 (VCMPEQQ_M): Likewise.
1590 (VCMPNEQ_M_N): Likewise.
1591 (VCMPNEQ_M): Likewise.
1592 (VDUPQ_M_N): Likewise.
1593 (VMAXVQ_P): Likewise.
1594 (VMINVQ_P): Likewise.
1595 (VMLADAVAQ): Likewise.
1596 (VMLADAVQ_P): Likewise.
1597 (VMLAQ_N): Likewise.
1598 (VMLASQ_N): Likewise.
1599 (VMVNQ_M): Likewise.
1600 (VPSELQ): Likewise.
1601 (VQDMLAHQ_N): Likewise.
1602 (VQRDMLAHQ_N): Likewise.
1603 (VQRDMLASHQ_N): Likewise.
1604 (VQRSHLQ_M_N): Likewise.
1605 (VQSHLQ_M_R): Likewise.
1606 (VREV64Q_M): Likewise.
1607 (VRSHLQ_M_N): Likewise.
1608 (VSHLQ_M_R): Likewise.
1609 (VSLIQ_N): Likewise.
1610 (VSRIQ_N): Likewise.
1611 (VMLALDAVQ_P): Likewise.
1612 (VQMOVNBQ_M): Likewise.
1613 (VMOVLTQ_M): Likewise.
1614 (VMOVNBQ_M): Likewise.
1615 (VRSHRNTQ_N): Likewise.
1616 (VORRQ_M_N): Likewise.
1617 (VREV32Q_M): Likewise.
1618 (VREV16Q_M): Likewise.
1619 (VQRSHRNTQ_N): Likewise.
1620 (VMOVNTQ_M): Likewise.
1621 (VMOVLBQ_M): Likewise.
1622 (VMLALDAVAQ): Likewise.
1623 (VQSHRNBQ_N): Likewise.
1624 (VSHRNBQ_N): Likewise.
1625 (VRSHRNBQ_N): Likewise.
1626 (VMLALDAVXQ_P): Likewise.
1627 (VQMOVNTQ_M): Likewise.
1628 (VMVNQ_M_N): Likewise.
1629 (VQSHRNTQ_N): Likewise.
1630 (VMLALDAVAXQ): Likewise.
1631 (VSHRNTQ_N): Likewise.
1632 (VCVTMQ_M): Likewise.
1633 (VCVTNQ_M): Likewise.
1634 (VCVTPQ_M): Likewise.
1635 (VCVTQ_M_N_FROM_F): Likewise.
1636 (VCVTQ_M_FROM_F): Likewise.
1637 (VRMLALDAVHQ_P): Likewise.
1638 (VADDLVAQ_P): Likewise.
1639 (VABAVQ_P): Likewise.
1640 (VSHLQ_M): Likewise.
1641 (VSRIQ_M_N): Likewise.
1642 (VSUBQ_M): Likewise.
1643 (VCVTQ_M_N_TO_F): Likewise.
1644 (VHSUBQ_M): Likewise.
1645 (VSLIQ_M_N): Likewise.
1646 (VRSHLQ_M): Likewise.
1647 (VMINQ_M): Likewise.
1648 (VMULLBQ_INT_M): Likewise.
1649 (VMULHQ_M): Likewise.
1650 (VMULQ_M): Likewise.
1651 (VHSUBQ_M_N): Likewise.
1652 (VHADDQ_M_N): Likewise.
1653 (VORRQ_M): Likewise.
1654 (VRMULHQ_M): Likewise.
1655 (VQADDQ_M): Likewise.
1656 (VRSHRQ_M_N): Likewise.
1657 (VQSUBQ_M_N): Likewise.
1658 (VADDQ_M): Likewise.
1659 (VORNQ_M): Likewise.
1660 (VRHADDQ_M): Likewise.
1661 (VQSHLQ_M): Likewise.
1662 (VANDQ_M): Likewise.
1663 (VBICQ_M): Likewise.
1664 (VSHLQ_M_N): Likewise.
1665 (VCADDQ_ROT270_M): Likewise.
1666 (VQRSHLQ_M): Likewise.
1667 (VQADDQ_M_N): Likewise.
1668 (VADDQ_M_N): Likewise.
1669 (VMAXQ_M): Likewise.
1670 (VQSUBQ_M): Likewise.
1671 (VMLASQ_M_N): Likewise.
1672 (VMLADAVAQ_P): Likewise.
1673 (VBRSRQ_M_N): Likewise.
1674 (VMULQ_M_N): Likewise.
1675 (VCADDQ_ROT90_M): Likewise.
1676 (VMULLTQ_INT_M): Likewise.
1677 (VEORQ_M): Likewise.
1678 (VSHRQ_M_N): Likewise.
1679 (VSUBQ_M_N): Likewise.
1680 (VHADDQ_M): Likewise.
1681 (VABDQ_M): Likewise.
1682 (VMLAQ_M_N): Likewise.
1683 (VQSHLQ_M_N): Likewise.
1684 (VMLALDAVAQ_P): Likewise.
1685 (VMLALDAVAXQ_P): Likewise.
1686 (VQRSHRNBQ_M_N): Likewise.
1687 (VQRSHRNTQ_M_N): Likewise.
1688 (VQSHRNBQ_M_N): Likewise.
1689 (VQSHRNTQ_M_N): Likewise.
1690 (VRSHRNBQ_M_N): Likewise.
1691 (VRSHRNTQ_M_N): Likewise.
1692 (VSHLLBQ_M_N): Likewise.
1693 (VSHLLTQ_M_N): Likewise.
1694 (VSHRNBQ_M_N): Likewise.
1695 (VSHRNTQ_M_N): Likewise.
1696 (VSTRWSBQ): Likewise.
1697 (VSTRBSOQ): Likewise.
1698 (VSTRBQ): Likewise.
1699 (VLDRBGOQ): Likewise.
1700 (VLDRBQ): Likewise.
1701 (VLDRWGBQ): Likewise.
1702 (VLD1Q): Likewise.
1703 (VLDRHGOQ): Likewise.
1704 (VLDRHGSOQ): Likewise.
1705 (VLDRHQ): Likewise.
1706 (VLDRWQ): Likewise.
1707 (VLDRDGBQ): Likewise.
1708 (VLDRDGOQ): Likewise.
1709 (VLDRDGSOQ): Likewise.
1710 (VLDRWGOQ): Likewise.
1711 (VLDRWGSOQ): Likewise.
1712 (VST1Q): Likewise.
1713 (VSTRHSOQ): Likewise.
1714 (VSTRHSSOQ): Likewise.
1715 (VSTRHQ): Likewise.
1716 (VSTRWQ): Likewise.
1717 (VSTRDSBQ): Likewise.
1718 (VSTRDSOQ): Likewise.
1719 (VSTRDSSOQ): Likewise.
1720 (VSTRWSOQ): Likewise.
1721 (VSTRWSSOQ): Likewise.
1722 (VSTRWSBWBQ): Likewise.
1723 (VLDRWGBWBQ): Likewise.
1724 (VSTRDSBWBQ): Likewise.
1725 (VLDRDGBWBQ): Likewise.
1726 (VADCIQ): Likewise.
1727 (VADCIQ_M): Likewise.
1728 (VSBCQ): Likewise.
1729 (VSBCQ_M): Likewise.
1730 (VSBCIQ): Likewise.
1731 (VSBCIQ_M): Likewise.
1732 (VADCQ): Likewise.
1733 (VADCQ_M): Likewise.
1734 (UQRSHLLQ): Likewise.
1735 (SQRSHRLQ): Likewise.
1736 (VSHLCQ_M): Likewise.
1737 * config/arm/mve.md (MVE_types): Move mode iterator to iterators.md from mve.md.
1738 (MVE_VLD_ST): Likewise.
1739 (MVE_0): Likewise.
1740 (MVE_1): Likewise.
1741 (MVE_3): Likewise.
1742 (MVE_2): Likewise.
1743 (MVE_5): Likewise.
1744 (MVE_6): Likewise.
1745 (MVE_CNVT): Move mode attribute iterator to iterators.md from mve.md.
1746 (MVE_LANES): Likewise.
1747 (MVE_constraint): Likewise.
1748 (MVE_constraint1): Likewise.
1749 (MVE_constraint2): Likewise.
1750 (MVE_constraint3): Likewise.
1751 (MVE_pred): Likewise.
1752 (MVE_pred1): Likewise.
1753 (MVE_pred2): Likewise.
1754 (MVE_pred3): Likewise.
1755 (MVE_B_ELEM): Likewise.
1756 (MVE_H_ELEM): Likewise.
1757 (V_sz_elem1): Likewise.
1758 (V_extr_elem): Likewise.
1759 (earlyclobber_32): Likewise.
1760 (supf): Move int attribute to iterators.md from mve.md.
1761 (mode1): Likewise.
1762 (VCVTQ_TO_F): Move int iterator to iterators.md from mve.md.
1763 (VMVNQ_N): Likewise.
1764 (VREV64Q): Likewise.
1765 (VCVTQ_FROM_F): Likewise.
1766 (VREV16Q): Likewise.
1767 (VCVTAQ): Likewise.
1768 (VMVNQ): Likewise.
1769 (VDUPQ_N): Likewise.
1770 (VCLZQ): Likewise.
1771 (VADDVQ): Likewise.
1772 (VREV32Q): Likewise.
1773 (VMOVLBQ): Likewise.
1774 (VMOVLTQ): Likewise.
1775 (VCVTPQ): Likewise.
1776 (VCVTNQ): Likewise.
1777 (VCVTMQ): Likewise.
1778 (VADDLVQ): Likewise.
1779 (VCTPQ): Likewise.
1780 (VCTPQ_M): Likewise.
1781 (VCVTQ_N_TO_F): Likewise.
1782 (VCREATEQ): Likewise.
1783 (VSHRQ_N): Likewise.
1784 (VCVTQ_N_FROM_F): Likewise.
1785 (VADDLVQ_P): Likewise.
1786 (VCMPNEQ): Likewise.
1787 (VSHLQ): Likewise.
1788 (VABDQ): Likewise.
1789 (VADDQ_N): Likewise.
1790 (VADDVAQ): Likewise.
1791 (VADDVQ_P): Likewise.
1792 (VANDQ): Likewise.
1793 (VBICQ): Likewise.
1794 (VBRSRQ_N): Likewise.
1795 (VCADDQ_ROT270): Likewise.
1796 (VCADDQ_ROT90): Likewise.
1797 (VCMPEQQ): Likewise.
1798 (VCMPEQQ_N): Likewise.
1799 (VCMPNEQ_N): Likewise.
1800 (VEORQ): Likewise.
1801 (VHADDQ): Likewise.
1802 (VHADDQ_N): Likewise.
1803 (VHSUBQ): Likewise.
1804 (VHSUBQ_N): Likewise.
1805 (VMAXQ): Likewise.
1806 (VMAXVQ): Likewise.
1807 (VMINQ): Likewise.
1808 (VMINVQ): Likewise.
1809 (VMLADAVQ): Likewise.
1810 (VMULHQ): Likewise.
1811 (VMULLBQ_INT): Likewise.
1812 (VMULLTQ_INT): Likewise.
1813 (VMULQ): Likewise.
1814 (VMULQ_N): Likewise.
1815 (VORNQ): Likewise.
1816 (VORRQ): Likewise.
1817 (VQADDQ): Likewise.
1818 (VQADDQ_N): Likewise.
1819 (VQRSHLQ): Likewise.
1820 (VQRSHLQ_N): Likewise.
1821 (VQSHLQ): Likewise.
1822 (VQSHLQ_N): Likewise.
1823 (VQSHLQ_R): Likewise.
1824 (VQSUBQ): Likewise.
1825 (VQSUBQ_N): Likewise.
1826 (VRHADDQ): Likewise.
1827 (VRMULHQ): Likewise.
1828 (VRSHLQ): Likewise.
1829 (VRSHLQ_N): Likewise.
1830 (VRSHRQ_N): Likewise.
1831 (VSHLQ_N): Likewise.
1832 (VSHLQ_R): Likewise.
1833 (VSUBQ): Likewise.
1834 (VSUBQ_N): Likewise.
1835 (VADDLVAQ): Likewise.
1836 (VBICQ_N): Likewise.
1837 (VMLALDAVQ): Likewise.
1838 (VMLALDAVXQ): Likewise.
1839 (VMOVNBQ): Likewise.
1840 (VMOVNTQ): Likewise.
1841 (VORRQ_N): Likewise.
1842 (VQMOVNBQ): Likewise.
1843 (VQMOVNTQ): Likewise.
1844 (VSHLLBQ_N): Likewise.
1845 (VSHLLTQ_N): Likewise.
1846 (VRMLALDAVHQ): Likewise.
1847 (VBICQ_M_N): Likewise.
1848 (VCVTAQ_M): Likewise.
1849 (VCVTQ_M_TO_F): Likewise.
1850 (VQRSHRNBQ_N): Likewise.
1851 (VABAVQ): Likewise.
1852 (VSHLCQ): Likewise.
1853 (VRMLALDAVHAQ): Likewise.
1854 (VADDVAQ_P): Likewise.
1855 (VCLZQ_M): Likewise.
1856 (VCMPEQQ_M_N): Likewise.
1857 (VCMPEQQ_M): Likewise.
1858 (VCMPNEQ_M_N): Likewise.
1859 (VCMPNEQ_M): Likewise.
1860 (VDUPQ_M_N): Likewise.
1861 (VMAXVQ_P): Likewise.
1862 (VMINVQ_P): Likewise.
1863 (VMLADAVAQ): Likewise.
1864 (VMLADAVQ_P): Likewise.
1865 (VMLAQ_N): Likewise.
1866 (VMLASQ_N): Likewise.
1867 (VMVNQ_M): Likewise.
1868 (VPSELQ): Likewise.
1869 (VQDMLAHQ_N): Likewise.
1870 (VQRDMLAHQ_N): Likewise.
1871 (VQRDMLASHQ_N): Likewise.
1872 (VQRSHLQ_M_N): Likewise.
1873 (VQSHLQ_M_R): Likewise.
1874 (VREV64Q_M): Likewise.
1875 (VRSHLQ_M_N): Likewise.
1876 (VSHLQ_M_R): Likewise.
1877 (VSLIQ_N): Likewise.
1878 (VSRIQ_N): Likewise.
1879 (VMLALDAVQ_P): Likewise.
1880 (VQMOVNBQ_M): Likewise.
1881 (VMOVLTQ_M): Likewise.
1882 (VMOVNBQ_M): Likewise.
1883 (VRSHRNTQ_N): Likewise.
1884 (VORRQ_M_N): Likewise.
1885 (VREV32Q_M): Likewise.
1886 (VREV16Q_M): Likewise.
1887 (VQRSHRNTQ_N): Likewise.
1888 (VMOVNTQ_M): Likewise.
1889 (VMOVLBQ_M): Likewise.
1890 (VMLALDAVAQ): Likewise.
1891 (VQSHRNBQ_N): Likewise.
1892 (VSHRNBQ_N): Likewise.
1893 (VRSHRNBQ_N): Likewise.
1894 (VMLALDAVXQ_P): Likewise.
1895 (VQMOVNTQ_M): Likewise.
1896 (VMVNQ_M_N): Likewise.
1897 (VQSHRNTQ_N): Likewise.
1898 (VMLALDAVAXQ): Likewise.
1899 (VSHRNTQ_N): Likewise.
1900 (VCVTMQ_M): Likewise.
1901 (VCVTNQ_M): Likewise.
1902 (VCVTPQ_M): Likewise.
1903 (VCVTQ_M_N_FROM_F): Likewise.
1904 (VCVTQ_M_FROM_F): Likewise.
1905 (VRMLALDAVHQ_P): Likewise.
1906 (VADDLVAQ_P): Likewise.
1907 (VABAVQ_P): Likewise.
1908 (VSHLQ_M): Likewise.
1909 (VSRIQ_M_N): Likewise.
1910 (VSUBQ_M): Likewise.
1911 (VCVTQ_M_N_TO_F): Likewise.
1912 (VHSUBQ_M): Likewise.
1913 (VSLIQ_M_N): Likewise.
1914 (VRSHLQ_M): Likewise.
1915 (VMINQ_M): Likewise.
1916 (VMULLBQ_INT_M): Likewise.
1917 (VMULHQ_M): Likewise.
1918 (VMULQ_M): Likewise.
1919 (VHSUBQ_M_N): Likewise.
1920 (VHADDQ_M_N): Likewise.
1921 (VORRQ_M): Likewise.
1922 (VRMULHQ_M): Likewise.
1923 (VQADDQ_M): Likewise.
1924 (VRSHRQ_M_N): Likewise.
1925 (VQSUBQ_M_N): Likewise.
1926 (VADDQ_M): Likewise.
1927 (VORNQ_M): Likewise.
1928 (VRHADDQ_M): Likewise.
1929 (VQSHLQ_M): Likewise.
1930 (VANDQ_M): Likewise.
1931 (VBICQ_M): Likewise.
1932 (VSHLQ_M_N): Likewise.
1933 (VCADDQ_ROT270_M): Likewise.
1934 (VQRSHLQ_M): Likewise.
1935 (VQADDQ_M_N): Likewise.
1936 (VADDQ_M_N): Likewise.
1937 (VMAXQ_M): Likewise.
1938 (VQSUBQ_M): Likewise.
1939 (VMLASQ_M_N): Likewise.
1940 (VMLADAVAQ_P): Likewise.
1941 (VBRSRQ_M_N): Likewise.
1942 (VMULQ_M_N): Likewise.
1943 (VCADDQ_ROT90_M): Likewise.
1944 (VMULLTQ_INT_M): Likewise.
1945 (VEORQ_M): Likewise.
1946 (VSHRQ_M_N): Likewise.
1947 (VSUBQ_M_N): Likewise.
1948 (VHADDQ_M): Likewise.
1949 (VABDQ_M): Likewise.
1950 (VMLAQ_M_N): Likewise.
1951 (VQSHLQ_M_N): Likewise.
1952 (VMLALDAVAQ_P): Likewise.
1953 (VMLALDAVAXQ_P): Likewise.
1954 (VQRSHRNBQ_M_N): Likewise.
1955 (VQRSHRNTQ_M_N): Likewise.
1956 (VQSHRNBQ_M_N): Likewise.
1957 (VQSHRNTQ_M_N): Likewise.
1958 (VRSHRNBQ_M_N): Likewise.
1959 (VRSHRNTQ_M_N): Likewise.
1960 (VSHLLBQ_M_N): Likewise.
1961 (VSHLLTQ_M_N): Likewise.
1962 (VSHRNBQ_M_N): Likewise.
1963 (VSHRNTQ_M_N): Likewise.
1964 (VSTRWSBQ): Likewise.
1965 (VSTRBSOQ): Likewise.
1966 (VSTRBQ): Likewise.
1967 (VLDRBGOQ): Likewise.
1968 (VLDRBQ): Likewise.
1969 (VLDRWGBQ): Likewise.
1970 (VLD1Q): Likewise.
1971 (VLDRHGOQ): Likewise.
1972 (VLDRHGSOQ): Likewise.
1973 (VLDRHQ): Likewise.
1974 (VLDRWQ): Likewise.
1975 (VLDRDGBQ): Likewise.
1976 (VLDRDGOQ): Likewise.
1977 (VLDRDGSOQ): Likewise.
1978 (VLDRWGOQ): Likewise.
1979 (VLDRWGSOQ): Likewise.
1980 (VST1Q): Likewise.
1981 (VSTRHSOQ): Likewise.
1982 (VSTRHSSOQ): Likewise.
1983 (VSTRHQ): Likewise.
1984 (VSTRWQ): Likewise.
1985 (VSTRDSBQ): Likewise.
1986 (VSTRDSOQ): Likewise.
1987 (VSTRDSSOQ): Likewise.
1988 (VSTRWSOQ): Likewise.
1989 (VSTRWSSOQ): Likewise.
1990 (VSTRWSBWBQ): Likewise.
1991 (VLDRWGBWBQ): Likewise.
1992 (VSTRDSBWBQ): Likewise.
1993 (VLDRDGBWBQ): Likewise.
1994 (VADCIQ): Likewise.
1995 (VADCIQ_M): Likewise.
1996 (VSBCQ): Likewise.
1997 (VSBCQ_M): Likewise.
1998 (VSBCIQ): Likewise.
1999 (VSBCIQ_M): Likewise.
2000 (VADCQ): Likewise.
2001 (VADCQ_M): Likewise.
2002 (UQRSHLLQ): Likewise.
2003 (SQRSHRLQ): Likewise.
2004 (VSHLCQ_M): Likewise.
2005 (define_c_enum "unspec"): Move MVE enumerator to unspecs.md from mve.md.
2006 * config/arm/unspecs.md (define_c_enum "unspec"): Move MVE enumerator from
2007 mve.md to unspecs.md.
2008
2009 2020-10-06 Martin Liska <mliska@suse.cz>
2010
2011 * common.opt: Remove -fdbg-cnt-list from deferred options.
2012 * dbgcnt.c (dbg_cnt_set_limit_by_index): Make a copy
2013 to original_limits.
2014 (dbg_cnt_list_all_counters): Print also current counter value
2015 and print to stderr.
2016 * opts-global.c (handle_common_deferred_options): Do not handle
2017 -fdbg-cnt-list.
2018 * opts.c (common_handle_option): Likewise.
2019 * toplev.c (finalize): Handle it after compilation here.
2020
2021 2020-10-06 Martin Liska <mliska@suse.cz>
2022
2023 * dbgcnt.c (dbg_cnt): Report also upper limit.
2024
2025 2020-10-06 Tom de Vries <tdevries@suse.de>
2026
2027 * tracer.c (count_insns): Rename to ...
2028 (analyze_bb): ... this.
2029 (cache_can_duplicate_bb_p, cached_can_duplicate_bb_p): New function.
2030 (ignore_bb_p): Use cached_can_duplicate_bb_p.
2031 (tail_duplicate): Call cache_can_duplicate_bb_p.
2032
2033 2020-10-06 Tom de Vries <tdevries@suse.de>
2034
2035 * tracer.c (can_duplicate_insn_p, can_duplicate_bb_no_insn_iter_p)
2036 (can_duplicate_bb_p): New function, factored out of ...
2037 (ignore_bb_p): ... here.
2038
2039 2020-10-06 Jakub Jelinek <jakub@redhat.com>
2040
2041 PR rtl-optimization/97282
2042 * tree-ssa-math-opts.c (divmod_candidate_p): Don't return false for
2043 constant op2 if it is not a power of two and the type has precision
2044 larger than HOST_BITS_PER_WIDE_INT or BITS_PER_WORD.
2045 * internal-fn.c (contains_call_div_mod): New function.
2046 (expand_DIVMOD): If last argument is a constant, try to expand it as
2047 TRUNC_DIV_EXPR followed by TRUNC_MOD_EXPR, but if the sequence
2048 contains any calls or {,U}{DIV,MOD} rtxes, throw it away and use
2049 divmod optab or divmod libfunc.
2050
2051 2020-10-06 Aldy Hernandez <aldyh@redhat.com>
2052
2053 * value-range.h (irange_allocator::allocate): Increase
2054 newir storage by one.
2055
2056 2020-10-06 Jakub Jelinek <jakub@redhat.com>
2057
2058 PR middle-end/97289
2059 * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Only follow
2060 node->alias_target if it is a FUNCTION_DECL.
2061
2062 2020-10-06 Joe Ramsay <joe.ramsay@arm.com>
2063
2064 * config/arm/arm-cpus.in:
2065 (ALL_FPU_INTERNAL): Remove vfp_base.
2066 (VFPv2): Remove vfp_base.
2067 (MVE): Remove vfp_base.
2068 (vfp_base): Redefine as implied bit dependent on MVE or FP
2069 (cortex-m55): Add flags to disable MVE, MVE FP, FP and DSP extensions.
2070 * config/arm/arm.c (arm_configure_build_target): Add implied bits to ISA.
2071 * config/arm/parsecpu.awk:
2072 (gen_isa): Print implied bits and their dependencies to ISA header.
2073 (gen_data): Add parsing for implied feature bits.
2074
2075 2020-10-06 Andreas Krebbel <krebbel@linux.ibm.com>
2076
2077 * doc/invoke.texi: Add z15/arch13 to the list of documented
2078 -march/-mtune options.
2079
2080 2020-10-05 Dennis Zhang <dennis.zhang@arm.com>
2081
2082 * config/arm/arm.c (arm_preferred_simd_mode): Enable MVE SIMD modes.
2083
2084 2020-10-05 Aldy Hernandez <aldyh@redhat.com>
2085
2086 * value-range.cc (irange::legacy_intersect): Only handle
2087 legacy ranges.
2088 (irange::legacy_union): Same.
2089 (irange::union_): When unioning legacy with non-legacy,
2090 first convert to legacy and do everything in legacy mode.
2091 (irange::intersect): Same, but for intersect.
2092 * range-op.cc (range_tests): Adjust for above changes.
2093
2094 2020-10-05 Aldy Hernandez <aldyh@redhat.com>
2095
2096 * range-op.cc (operator_div::wi_fold): Return varying for
2097 division by zero.
2098 (class operator_rshift): Move class up.
2099 (operator_abs::wi_fold): Return [-MIN,-MIN] for ABS([-MIN,-MIN]).
2100 (operator_tests): Adjust tests.
2101
2102 2020-10-05 Tom de Vries <tdevries@suse.de>
2103
2104 * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_XCHG_*.
2105
2106 2020-10-05 Alex Coplan <alex.coplan@arm.com>
2107
2108 * config/arm/arm-cpus.in (neoverse-v1): Add missing vendor and
2109 part numbers.
2110
2111 2020-10-05 Tom de Vries <tdevries@suse.de>
2112
2113 * tracer.c (ignore_bb_p): Remove incorrect suggestion.
2114
2115 2020-10-05 Jakub Jelinek <jakub@redhat.com>
2116
2117 * opth-gen.awk: Don't emit explicit_mask array if n_target_explicit
2118 is equal to n_target_explicit_mask.
2119 * optc-save-gen.awk: Compute has_target_explicit_mask and if false,
2120 don't emit code iterating over explicit_mask array elements. Stream
2121 also explicit_mask_* target members.
2122
2123 2020-10-05 Jakub Jelinek <jakub@redhat.com>
2124
2125 * gimple-ssa-store-merging.c
2126 (imm_store_chain_info::output_merged_store): Use ~0U instead of ~0 in
2127 unsigned int array initializer.
2128
2129 2020-10-05 Tom de Vries <tdevries@suse.de>
2130
2131 PR fortran/95654
2132 * tracer.c (ignore_bb_p): Ignore GOMP_SIMT_ENTER_ALLOC,
2133 GOMP_SIMT_VOTE_ANY and GOMP_SIMT_EXIT.
2134
2135 2020-10-03 Jakub Jelinek <jakub@redhat.com>
2136
2137 * opth-gen.awk: For variables referenced in Mask and InverseMask,
2138 don't use the explicit_mask bitmask array, but add separate
2139 explicit_mask_* members with the same types as the variables.
2140 * optc-save-gen.awk: Save, restore, compare and hash the separate
2141 explicit_mask_* members.
2142
2143 2020-10-03 Jan Hubicka <hubicka@ucw.cz>
2144
2145 * ipa-modref-tree.c (test_insert_search_collapse): Update andling
2146 of accesses.
2147 (test_merge): Likewise.
2148 * ipa-modref-tree.h (struct modref_access_node): Add offset, size,
2149 max_size, parm_offset and parm_offset_known.
2150 (modref_access_node::useful_p): Constify.
2151 (modref_access_node::range_info_useful_p): New predicate.
2152 (modref_access_node::operator==): New.
2153 (struct modref_parm_map): New structure.
2154 (modref_tree::merge): Update for racking parameters)
2155 * ipa-modref.c (dump_access): Dump new fields.
2156 (get_access): Fill in new fields.
2157 (merge_call_side_effects): Update handling of parm map.
2158 (write_modref_records): Stream new fields.
2159 (read_modref_records): Stream new fields.
2160 (compute_parm_map): Update for new parm map.
2161 (ipa_merge_modref_summary_after_inlining): Update.
2162 (modref_propagate_in_scc): Update.
2163 * tree-ssa-alias.c (modref_may_conflict): Handle known ranges.
2164
2165 2020-10-03 H.J. Lu <hjl.tools@gmail.com>
2166
2167 PR other/97280
2168 * doc/extend.texi: Replace roudnevenl with roundevenl
2169
2170 2020-10-02 David Edelsohn <dje.gcc@gmail.com>
2171 Andrew MacLeod <amacleod@redhat.com>
2172
2173 * config/rs6000/rs6000.c: Include ssa.h. Reorder some headers.
2174 * config/rs6000/rs6000-call.c: Same.
2175
2176 2020-10-02 Martin Jambor <mjambor@suse.cz>
2177
2178 * params.opt (ipa-cp-large-unit-insns): New parameter.
2179 * ipa-cp.c (get_max_overall_size): Use the new parameter.
2180
2181 2020-10-02 Martin Jambor <mjambor@suse.cz>
2182
2183 * ipa-cp.c (estimate_local_effects): Add overeall_size to dumped
2184 string.
2185 (decide_about_value): Add dumping new overall_size.
2186
2187 2020-10-02 Martin Jambor <mjambor@suse.cz>
2188
2189 * ipa-fnsummary.h (ipa_freqcounting_predicate): New type.
2190 (ipa_fn_summary): Change the type of loop_iterations and loop_strides
2191 to vectors of ipa_freqcounting_predicate.
2192 (ipa_fn_summary::ipa_fn_summary): Construct the new vectors.
2193 (ipa_call_estimates): New fields loops_with_known_iterations and
2194 loops_with_known_strides.
2195 * ipa-cp.c (hint_time_bonus): Multiply param_ipa_cp_loop_hint_bonus
2196 with the expected frequencies of loops with known iteration count or
2197 stride.
2198 * ipa-fnsummary.c (add_freqcounting_predicate): New function.
2199 (ipa_fn_summary::~ipa_fn_summary): Release the new vectors instead of
2200 just two predicates.
2201 (remap_hint_predicate_after_duplication): Replace with function
2202 remap_freqcounting_preds_after_dup.
2203 (ipa_fn_summary_t::duplicate): Use it or duplicate new vectors.
2204 (ipa_dump_fn_summary): Dump the new vectors.
2205 (analyze_function_body): Compute the loop property vectors.
2206 (ipa_call_context::estimate_size_and_time): Calculate also
2207 loops_with_known_iterations and loops_with_known_strides. Adjusted
2208 dumping accordinly.
2209 (remap_hint_predicate): Replace with function
2210 remap_freqcounting_predicate.
2211 (ipa_merge_fn_summary_after_inlining): Use it.
2212 (inline_read_section): Stream loopcounting vectors instead of two
2213 simple predicates.
2214 (ipa_fn_summary_write): Likewise.
2215 * params.opt (ipa-max-loop-predicates): New parameter.
2216 * doc/invoke.texi (ipa-max-loop-predicates): Document new param.
2217
2218 2020-10-02 Martin Jambor <mjambor@suse.cz>
2219
2220 * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to use
2221 ipa_call_estimates.
2222 (do_estimate_edge_size): Likewise.
2223 (do_estimate_edge_hints): Likewise.
2224 * ipa-fnsummary.h (struct ipa_call_estimates): New type.
2225 (ipa_call_context::estimate_size_and_time): Adjusted declaration.
2226 (estimate_ipcp_clone_size_and_time): Likewise.
2227 * ipa-cp.c (hint_time_bonus): Changed the type of the second argument
2228 to ipa_call_estimates.
2229 (perform_estimation_of_a_value): Adjusted to use ipa_call_estimates.
2230 (estimate_local_effects): Likewise.
2231 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Adjusted
2232 to return estimates in a single ipa_call_estimates parameter.
2233 (estimate_ipcp_clone_size_and_time): Likewise.
2234
2235 2020-10-02 Martin Jambor <mjambor@suse.cz>
2236
2237 * ipa-fnsummary.h (ipa_cached_call_context): New forward declaration
2238 and class.
2239 (class ipa_call_context): Make friend ipa_cached_call_context. Moved
2240 methods duplicate_from and release to it too.
2241 * ipa-fnsummary.c (ipa_call_context::duplicate_from): Moved to class
2242 ipa_cached_call_context.
2243 (ipa_call_context::release): Likewise, removed the parameter.
2244 * ipa-inline-analysis.c (node_context_cache_entry): Change the type of
2245 ctx to ipa_cached_call_context.
2246 (do_estimate_edge_time): Remove parameter from the call to
2247 ipa_cached_call_context::release.
2248
2249 2020-10-02 Martin Jambor <mjambor@suse.cz>
2250
2251 * ipa-prop.h (ipa_auto_call_arg_values): New type.
2252 (class ipa_call_arg_values): Likewise.
2253 (ipa_get_indirect_edge_target): Replaced vector arguments with
2254 ipa_call_arg_values in declaration. Added an overload for
2255 ipa_auto_call_arg_values.
2256 * ipa-fnsummary.h (ipa_call_context): Removed members m_known_vals,
2257 m_known_contexts, m_known_aggs, duplicate_from, release and equal_to,
2258 new members m_avals, store_to_cache and equivalent_to_p. Adjusted
2259 construcotr arguments.
2260 (estimate_ipcp_clone_size_and_time): Replaced vector arguments
2261 with ipa_auto_call_arg_values in declaration.
2262 (evaluate_properties_for_edge): Likewise.
2263 * ipa-cp.c (ipa_get_indirect_edge_target): Adjusted to work on
2264 ipa_call_arg_values rather than on separate vectors. Added an
2265 overload for ipa_auto_call_arg_values.
2266 (devirtualization_time_bonus): Adjusted to work on
2267 ipa_auto_call_arg_values rather than on separate vectors.
2268 (gather_context_independent_values): Adjusted to work on
2269 ipa_auto_call_arg_values rather than on separate vectors.
2270 (perform_estimation_of_a_value): Likewise.
2271 (estimate_local_effects): Likewise.
2272 (modify_known_vectors_with_val): Adjusted both variants to work on
2273 ipa_auto_call_arg_values and rename them to
2274 copy_known_vectors_add_val.
2275 (decide_about_value): Adjusted to work on ipa_call_arg_values rather
2276 than on separate vectors.
2277 (decide_whether_version_node): Likewise.
2278 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Likewise.
2279 (evaluate_properties_for_edge): Likewise.
2280 (ipa_fn_summary_t::duplicate): Likewise.
2281 (estimate_edge_devirt_benefit): Adjusted to work on
2282 ipa_call_arg_values rather than on separate vectors.
2283 (estimate_edge_size_and_time): Likewise.
2284 (estimate_calls_size_and_time_1): Likewise.
2285 (summarize_calls_size_and_time): Adjusted calls to
2286 estimate_edge_size_and_time.
2287 (estimate_calls_size_and_time): Adjusted to work on
2288 ipa_call_arg_values rather than on separate vectors.
2289 (ipa_call_context::ipa_call_context): Construct from a pointer to
2290 ipa_auto_call_arg_values instead of inividual vectors.
2291 (ipa_call_context::duplicate_from): Adjusted to access vectors within
2292 m_avals.
2293 (ipa_call_context::release): Likewise.
2294 (ipa_call_context::equal_to): Likewise.
2295 (ipa_call_context::estimate_size_and_time): Adjusted to work on
2296 ipa_call_arg_values rather than on separate vectors.
2297 (estimate_ipcp_clone_size_and_time): Adjusted to work with
2298 ipa_auto_call_arg_values rather than on separate vectors.
2299 (ipa_merge_fn_summary_after_inlining): Likewise. Adjusted call to
2300 estimate_edge_size_and_time.
2301 (ipa_update_overall_fn_summary): Adjusted call to
2302 estimate_edge_size_and_time.
2303 * ipa-inline-analysis.c (do_estimate_edge_time): Adjusted to work with
2304 ipa_auto_call_arg_values rather than with separate vectors.
2305 (do_estimate_edge_size): Likewise.
2306 (do_estimate_edge_hints): Likewise.
2307 * ipa-prop.c (ipa_auto_call_arg_values::~ipa_auto_call_arg_values):
2308 New destructor.
2309
2310 2020-10-02 Joe Ramsay <joe.ramsay@arm.com>
2311
2312 * config/arm/arm_mve.h (__arm_vmaxnmavq): Remove coercion of scalar
2313 argument.
2314 (__arm_vmaxnmvq): Likewise.
2315 (__arm_vminnmavq): Likewise.
2316 (__arm_vminnmvq): Likewise.
2317 (__arm_vmaxnmavq_p): Likewise.
2318 (__arm_vmaxnmvq_p): Likewise (and delete duplicate definition).
2319 (__arm_vminnmavq_p): Likewise.
2320 (__arm_vminnmvq_p): Likewise.
2321 (__arm_vmaxavq): Likewise.
2322 (__arm_vmaxavq_p): Likewise.
2323 (__arm_vmaxvq): Likewise.
2324 (__arm_vmaxvq_p): Likewise.
2325 (__arm_vminavq): Likewise.
2326 (__arm_vminavq_p): Likewise.
2327 (__arm_vminvq): Likewise.
2328 (__arm_vminvq_p): Likewise.
2329
2330 2020-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2331
2332 * config/aarch64/aarch64.c (neoversev1_tunings): Define.
2333 * config/aarch64/aarch64-cores.def (zeus): Use it.
2334 (neoverse-v1): Likewise.
2335
2336 2020-10-02 Jan Hubicka <hubicka@ucw.cz>
2337
2338 * attr-fnspec.h: Update documentation.
2339 (attr_fnsec::return_desc_size): Set to 2
2340 (attr_fnsec::arg_desc_size): Set to 2
2341 * builtin-attrs.def (STR1): Update fnspec.
2342 * internal-fn.def (UBSAN_NULL): Update fnspec.
2343 (UBSAN_VPTR): Update fnspec.
2344 (UBSAN_PTR): Update fnspec.
2345 (ASAN_CHECK): Update fnspec.
2346 (GOACC_DIM_SIZE): Remove fnspec.
2347 (GOACC_DIM_POS): Remove fnspec.
2348 * tree-ssa-alias.c (attr_fnspec::verify): Update verification.
2349
2350 2020-10-02 Jan Hubicka <jh@suse.cz>
2351
2352 * attr-fnspec.h: New file.
2353 * calls.c (decl_return_flags): Use attr_fnspec.
2354 * gimple.c (gimple_call_arg_flags): Use attr_fnspec.
2355 (gimple_call_return_flags): Use attr_fnspec.
2356 * tree-into-ssa.c (pass_build_ssa::execute): Use attr_fnspec.
2357 * tree-ssa-alias.c (attr_fnspec::verify): New member fuction.
2358
2359 2020-10-02 Jan Hubicka <jh@suse.cz>
2360
2361 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_range): Break out from ...
2362 (ao_ref_init_from_ptr_and_size): ... here.
2363
2364 2020-10-02 Jan Hubicka <hubicka@ucw.cz>
2365
2366 * data-streamer-in.c (streamer_read_poly_int64): New function.
2367 * data-streamer-out.c (streamer_write_poly_int64): New function.
2368 * data-streamer.h (streamer_write_poly_int64): Declare.
2369 (streamer_read_poly_int64): Declare.
2370
2371 2020-10-02 Richard Sandiford <richard.sandiford@arm.com>
2372
2373 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
2374 Delete.
2375 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): Likewise.
2376 * config/aarch64/aarch64-sve.md: Add banner comment describing
2377 how merging predicated FP operations are represented.
2378 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2): Split into...
2379 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_relaxed): ...this and...
2380 (*cond_<SVE_COND_FP_UNARY:optab><mode>_2_strict): ...this.
2381 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any): Split into...
2382 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_relaxed): ...this and...
2383 (*cond_<SVE_COND_FP_UNARY:optab><mode>_any_strict): ...this.
2384 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): Split into...
2385 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_relaxed): ...this and...
2386 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2_strict): ...this.
2387 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Split into...
2388 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_relaxed): ...this
2389 and...
2390 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any_strict): ...this.
2391 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2): Split into...
2392 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_relaxed): ...this and...
2393 (*cond_<SVE_COND_FP_BINARY:optab><mode>_2_strict): ...this.
2394 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const): Split into...
2395 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_relaxed): ...this
2396 and...
2397 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_2_const_strict): ...this.
2398 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3): Split into...
2399 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_relaxed): ...this and...
2400 (*cond_<SVE_COND_FP_BINARY:optab><mode>_3_strict): ...this.
2401 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any): Split into...
2402 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_relaxed): ...this and...
2403 (*cond_<SVE_COND_FP_BINARY:optab><mode>_any_strict): ...this.
2404 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const): Split into...
2405 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_relaxed): ...this
2406 and...
2407 (*cond_<SVE_COND_FP_BINARY_I1:optab><mode>_any_const_strict): ...this.
2408 (*cond_add<mode>_2_const): Split into...
2409 (*cond_add<mode>_2_const_relaxed): ...this and...
2410 (*cond_add<mode>_2_const_strict): ...this.
2411 (*cond_add<mode>_any_const): Split into...
2412 (*cond_add<mode>_any_const_relaxed): ...this and...
2413 (*cond_add<mode>_any_const_strict): ...this.
2414 (*cond_<SVE_COND_FCADD:optab><mode>_2): Split into...
2415 (*cond_<SVE_COND_FCADD:optab><mode>_2_relaxed): ...this and...
2416 (*cond_<SVE_COND_FCADD:optab><mode>_2_strict): ...this.
2417 (*cond_<SVE_COND_FCADD:optab><mode>_any): Split into...
2418 (*cond_<SVE_COND_FCADD:optab><mode>_any_relaxed): ...this and...
2419 (*cond_<SVE_COND_FCADD:optab><mode>_any_strict): ...this.
2420 (*cond_sub<mode>_3_const): Split into...
2421 (*cond_sub<mode>_3_const_relaxed): ...this and...
2422 (*cond_sub<mode>_3_const_strict): ...this.
2423 (*aarch64_pred_abd<mode>): Split into...
2424 (*aarch64_pred_abd<mode>_relaxed): ...this and...
2425 (*aarch64_pred_abd<mode>_strict): ...this.
2426 (*aarch64_cond_abd<mode>_2): Split into...
2427 (*aarch64_cond_abd<mode>_2_relaxed): ...this and...
2428 (*aarch64_cond_abd<mode>_2_strict): ...this.
2429 (*aarch64_cond_abd<mode>_3): Split into...
2430 (*aarch64_cond_abd<mode>_3_relaxed): ...this and...
2431 (*aarch64_cond_abd<mode>_3_strict): ...this.
2432 (*aarch64_cond_abd<mode>_any): Split into...
2433 (*aarch64_cond_abd<mode>_any_relaxed): ...this and...
2434 (*aarch64_cond_abd<mode>_any_strict): ...this.
2435 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2): Split into...
2436 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_relaxed): ...this and...
2437 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_2_strict): ...this.
2438 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4): Split into...
2439 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_relaxed): ...this and...
2440 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_4_strict): ...this.
2441 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any): Split into...
2442 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_relaxed): ...this and...
2443 (*cond_<SVE_COND_FP_TERNARY:optab><mode>_any_strict): ...this.
2444 (*cond_<SVE_COND_FCMLA:optab><mode>_4): Split into...
2445 (*cond_<SVE_COND_FCMLA:optab><mode>_4_relaxed): ...this and...
2446 (*cond_<SVE_COND_FCMLA:optab><mode>_4_strict): ...this.
2447 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Split into...
2448 (*cond_<SVE_COND_FCMLA:optab><mode>_any_relaxed): ...this and...
2449 (*cond_<SVE_COND_FCMLA:optab><mode>_any_strict): ...this.
2450 (*aarch64_pred_fac<cmp_op><mode>): Split into...
2451 (*aarch64_pred_fac<cmp_op><mode>_relaxed): ...this and...
2452 (*aarch64_pred_fac<cmp_op><mode>_strict): ...this.
2453 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>): Split
2454 into...
2455 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_relaxed):
2456 ...this and...
2457 (*cond_<optab>_nontrunc<SVE_FULL_F:mode><SVE_FULL_HSDI:mode>_strict):
2458 ...this.
2459 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>): Split
2460 into...
2461 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_relaxed):
2462 ...this and...
2463 (*cond_<optab>_nonextend<SVE_FULL_HSDI:mode><SVE_FULL_F:mode>_strict):
2464 ...this.
2465 * config/aarch64/aarch64-sve2.md
2466 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>): Split into...
2467 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_relaxed): ...this and...
2468 (*cond_<SVE2_COND_FP_UNARY_LONG:optab><mode>_strict): ...this.
2469 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any): Split into...
2470 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_relaxed): ...this
2471 and...
2472 (*cond_<SVE2_COND_FP_UNARY_NARROWB:optab><mode>_any_strict): ...this.
2473 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>): Split into...
2474 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_relaxed): ...this and...
2475 (*cond_<SVE2_COND_INT_UNARY_FP:optab><mode>_strict): ...this.
2476
2477 2020-10-02 Richard Sandiford <richard.sandiford@arm.com>
2478
2479 * config/arm/neon.md (*sub<VDQ:mode>3_neon): Use the new mode macros
2480 for the insn condition.
2481 (sub<VH:mode>3, *mul<VDQW:mode>3_neon): Likewise.
2482 (mul<VDQW:mode>3add<VDQW:mode>_neon): Likewise.
2483 (mul<VH:mode>3add<VH:mode>_neon): Likewise.
2484 (mul<VDQW:mode>3neg<VDQW:mode>add<VDQW:mode>_neon): Likewise.
2485 (fma<VCVTF:mode>4, fma<VH:mode>4, *fmsub<VCVTF:mode>4): Likewise.
2486 (quad_halves_<code>v4sf, reduc_plus_scal_<VD:mode>): Likewise.
2487 (reduc_plus_scal_<VQ:mode>, reduc_smin_scal_<VD:mode>): Likewise.
2488 (reduc_smin_scal_<VQ:mode>, reduc_smax_scal_<VD:mode>): Likewise.
2489 (reduc_smax_scal_<VQ:mode>, mul<VH:mode>3): Likewise.
2490 (neon_vabd<VF:mode>_2, neon_vabd<VF:mode>_3): Likewise.
2491 (fma<VH:mode>4_intrinsic): Delete.
2492 (neon_vadd<VCVTF:mode>): Use the new mode macros to decide which
2493 form of instruction to generate.
2494 (neon_vmla<VDQW:mode>, neon_vmls<VDQW:mode>): Likewise.
2495 (neon_vsub<VCVTF:mode>): Likewise.
2496 (neon_vfma<VH:mode>): Generate the main fma<mode>4 form instead
2497 of using fma<mode>4_intrinsic.
2498
2499 2020-10-02 Martin Liska <mliska@suse.cz>
2500
2501 PR gcov-profile/97193
2502 * coverage.c (coverage_init): GCDA note files should not be
2503 mangled and should end in output directory.
2504
2505 2020-10-02 Jason Merril <jason@redhat.com>
2506
2507 * gimple.h (gimple_call_operator_delete_p): Rename from
2508 gimple_call_replaceable_operator_delete_p.
2509 * gimple.c (gimple_call_operator_delete_p): Likewise.
2510 * tree.h (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): Remove.
2511 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Adjust.
2512 (propagate_necessity): Likewise.
2513 (eliminate_unnecessary_stmts): Likewise.
2514 * tree-ssa-structalias.c (find_func_aliases_for_call): Likewise.
2515
2516 2020-10-02 Richard Biener <rguenther@suse.de>
2517
2518 * gimple.h (GF_CALL_FROM_NEW_OR_DELETE): New call flag.
2519 (gimple_call_set_from_new_or_delete): New.
2520 (gimple_call_from_new_or_delete): Likewise.
2521 * gimple.c (gimple_build_call_from_tree): Set
2522 GF_CALL_FROM_NEW_OR_DELETE appropriately.
2523 * ipa-icf-gimple.c (func_checker::compare_gimple_call):
2524 Compare gimple_call_from_new_or_delete.
2525 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Make
2526 sure to only consider new/delete calls from new or delete
2527 expressions.
2528 (propagate_necessity): Likewise.
2529 (eliminate_unnecessary_stmts): Likewise.
2530 * tree-ssa-structalias.c (find_func_aliases_for_call):
2531 Likewise.
2532
2533 2020-10-02 Jason Merril <jason@redhat.com>
2534
2535 * tree.h (CALL_FROM_NEW_OR_DELETE_P): Move from cp-tree.h.
2536 * tree-core.h: Document new usage of protected_flag.
2537
2538 2020-10-02 Aldy Hernandez <aldyh@redhat.com>
2539
2540 * value-range.h (irange::fits_p): New.
2541
2542 2020-10-01 Alan Modra <amodra@gmail.com>
2543
2544 * config/rs6000/rs6000.c (rs6000_legitimize_address): Use
2545 gen_int_mode for high part of address constant.
2546
2547 2020-10-01 Alan Modra <amodra@gmail.com>
2548
2549 * config/rs6000/rs6000.c (rs6000_linux64_override_options):
2550 Formatting. Correct setting of TARGET_NO_FP_IN_TOC and
2551 TARGET_NO_SUM_IN_TOC.
2552
2553 2020-10-01 Alan Modra <amodra@gmail.com>
2554
2555 * config/rs6000/freebsd64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2556 rs6000_linux64_override_options.
2557 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Break
2558 out to..
2559 * config/rs6000/rs6000.c (rs6000_linux64_override_options): ..this,
2560 new function. Tweak non-biarch test and clearing of
2561 profile_kernel to work with freebsd64.h.
2562
2563 2020-10-01 Martin Liska <mliska@suse.cz>
2564
2565 * config/rs6000/rs6000-call.c: Include value-range.h.
2566 * config/rs6000/rs6000.c: Likewise.
2567
2568 2020-10-01 Tom de Vries <tdevries@suse.de>
2569
2570 PR target/80845
2571 * config/nvptx/nvptx.md (define_insn "truncsi<QHIM>2"): Emit mov.u32
2572 instead of cvt.u32.u32.
2573
2574 2020-10-01 Richard Sandiford <richard.sandiford@arm.com>
2575
2576 PR target/96528
2577 PR target/97288
2578 * config/arm/arm-protos.h (arm_expand_vector_compare): Declare.
2579 (arm_expand_vcond): Likewise.
2580 * config/arm/arm.c (arm_expand_vector_compare): New function.
2581 (arm_expand_vcond): Likewise.
2582 * config/arm/neon.md (vec_cmp<VDQW:mode><v_cmp_result>): New pattern.
2583 (vec_cmpu<VDQW:mode><VDQW:mode>): Likewise.
2584 (vcond<VDQW:mode><VDQW:mode>): Require operand 5 to be a register
2585 or zero. Use arm_expand_vcond.
2586 (vcond<V_cvtto><V32:mode>): New pattern.
2587 (vcondu<VDQIW:mode><VDQIW:mode>): Generalize to...
2588 (vcondu<VDQW:mode><v_cmp_result): ...this. Require operand 5
2589 to be a register or zero. Use arm_expand_vcond.
2590 (vcond_mask_<VDQW:mode><v_cmp_result>): New pattern.
2591 (neon_vc<cmp_op><mode>, neon_vc<cmp_op><mode>_insn): Add "@" marker.
2592 (neon_vbsl<mode>): Likewise.
2593 (neon_vc<cmp_op>u<mode>): Reexpress as...
2594 (@neon_vc<code><mode>): ...this.
2595
2596 2020-10-01 Michael Davidsaver <mdavidsaver@gmail.com>
2597
2598 * config/i386/t-rtems: Change from mtune to march when building
2599 multilibs. The mtune argument tunes or optimizes for a specific
2600 CPU model but does not ensure the generated code is appropriate
2601 for the CPU model. Prior to this patch, i386 compatible code
2602 was always generated but tuned for later models.
2603
2604 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
2605
2606 * builtins.c (compute_objsize): Replace vr_values with range_query.
2607 (get_range): Same.
2608 (gimple_call_alloc_size): Same.
2609 * builtins.h (class vr_values): Remove.
2610 (gimple_call_alloc_size): Replace vr_values with range_query.
2611 * gimple-ssa-sprintf.c (get_int_range): Same.
2612 (struct directive): Pass gimple context to fmtfunc callback.
2613 (directive::set_width): Replace inline with out-of-line version.
2614 (directive::set_precision): Same.
2615 (format_none): New gimple argument.
2616 (format_percent): New gimple argument.
2617 (format_integer): New gimple argument.
2618 (format_floating): New gimple argument.
2619 (get_string_length): Use range_query API.
2620 (format_character): New gimple argument.
2621 (format_string): New gimple argument.
2622 (format_plain): New gimple argument.
2623 (format_directive): New gimple argument.
2624 (parse_directive): Replace vr_values with range_query.
2625 (compute_format_length): Same.
2626 (handle_printf_call): Same. Adjust for range_query API.
2627 * tree-ssa-strlen.c (get_range): Same.
2628 (compare_nonzero_chars): Same.
2629 (get_addr_stridx) Replace vr_values with range_query.
2630 (get_stridx): Same.
2631 (dump_strlen_info): Same.
2632 (get_range_strlen_dynamic): Adjust for range_query API.
2633 (set_strlen_range): Same
2634 (maybe_warn_overflow): Replace vr_values with range_query.
2635 (handle_builtin_strcpy): Same.
2636 (maybe_diag_stxncpy_trunc): Add FIXME comment.
2637 (handle_builtin_memcpy): Replace vr_values with range_query.
2638 (handle_builtin_memset): Same.
2639 (get_len_or_size): Same.
2640 (strxcmp_eqz_result): Same.
2641 (handle_builtin_string_cmp): Same.
2642 (count_nonzero_bytes_addr): Same, plus adjust for range_query API.
2643 (count_nonzero_bytes): Replace vr_values with range_query.
2644 (handle_store): Same.
2645 (strlen_check_and_optimize_call): Same.
2646 (handle_integral_assign): Same.
2647 (check_and_optimize_stmt): Same.
2648 * tree-ssa-strlen.h (class vr_values): Remove.
2649 (get_range): Replace vr_values with range_query.
2650 (get_range_strlen_dynamic): Same.
2651 (handle_printf_call): Same.
2652
2653 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
2654
2655 * gimple-loop-versioning.cc (lv_dom_walker::before_dom_children):
2656 Pass m_range_analyzer instead of get_vr_values.
2657 (loop_versioning::name_prop::get_value): Rename to...
2658 (loop_versioning::name_prop::value_of_expr): ...this.
2659 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::evrp_range_analyzer):
2660 Adjust for evrp_range_analyzer
2661 inheriting from vr_values.
2662 (evrp_range_analyzer::try_find_new_range): Same.
2663 (evrp_range_analyzer::record_ranges_from_incoming_edge): Same.
2664 (evrp_range_analyzer::record_ranges_from_phis): Same.
2665 (evrp_range_analyzer::record_ranges_from_stmt): Same.
2666 (evrp_range_analyzer::push_value_range): Same.
2667 (evrp_range_analyzer::pop_value_range): Same.
2668 * gimple-ssa-evrp-analyze.h (class evrp_range_analyzer): Inherit from
2669 vr_values. Adjust accordingly.
2670 * gimple-ssa-evrp.c: Adjust for evrp_range_analyzer inheriting from
2671 vr_values.
2672 (evrp_folder::value_of_evrp): Rename from get_value.
2673 * tree-ssa-ccp.c (class ccp_folder): Rename get_value to
2674 value_of_expr.
2675 (ccp_folder::get_value): Rename to...
2676 (ccp_folder::value_of_expr): ...this.
2677 * tree-ssa-copy.c (class copy_folder): Rename get_value to
2678 value_of_expr.
2679 (copy_folder::get_value): Rename to...
2680 (copy_folder::value_of_expr): ...this.
2681 * tree-ssa-dom.c (dom_opt_dom_walker::after_dom_children): Adjust
2682 for evrp_range_analyzer inheriting from vr_values.
2683 (dom_opt_dom_walker::optimize_stmt): Same.
2684 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
2685 Call value_of_* instead of get_value.
2686 (substitute_and_fold_engine::replace_phi_args_in): Same.
2687 (substitute_and_fold_engine::propagate_into_phi_args): Same.
2688 (substitute_and_fold_dom_walker::before_dom_children): Same.
2689 * tree-ssa-propagate.h: Include value-query.h.
2690 (class substitute_and_fold_engine): Inherit from value_query.
2691 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children):
2692 Adjust for evrp_range_analyzer inheriting from vr_values.
2693 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
2694 Same.
2695 * tree-vrp.c (class vrp_folder): Same.
2696 (vrp_folder::get_value): Rename to value_of_expr.
2697 * vr-values.c (vr_values::get_lattice_entry): Adjust for
2698 vr_values inheriting from range_query.
2699 (vr_values::range_of_expr): New.
2700 (vr_values::value_of_expr): New.
2701 (vr_values::value_on_edge): New.
2702 (vr_values::value_of_stmt): New.
2703 (simplify_using_ranges::op_with_boolean_value_range_p): Call
2704 get_value_range through query.
2705 (check_for_binary_op_overflow): Rename store to query.
2706 (vr_values::vr_values): Remove vrp_value_range_pool.
2707 (vr_values::~vr_values): Same.
2708 (simplify_using_ranges::get_vr_for_comparison): Call get_value_range
2709 through query.
2710 (simplify_using_ranges::compare_names): Same.
2711 (simplify_using_ranges::vrp_evaluate_conditional): Same.
2712 (simplify_using_ranges::vrp_visit_cond_stmt): Same.
2713 (simplify_using_ranges::simplify_abs_using_ranges): Same.
2714 (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
2715 (simplify_cond_using_ranges_2): Same.
2716 (simplify_using_ranges::simplify_switch_using_ranges): Same.
2717 (simplify_using_ranges::two_valued_val_range_p): Same.
2718 (simplify_using_ranges::simplify_using_ranges): Rename store to query.
2719 (simplify_using_ranges::simplify): Assert that we have a query.
2720 * vr-values.h (class range_query): Remove.
2721 (class simplify_using_ranges): Remove inheritance of range_query.
2722 (class vr_values): Add virtuals for range_of_expr, value_of_expr,
2723 value_on_edge, value_of_stmt, and get_value_range.
2724 Call range_query allocator instead of using vrp_value_range_pool.
2725 Remove vrp_value_range_pool.
2726 (simplify_using_ranges::get_value_range): Remove.
2727
2728 2020-10-01 Richard Biener <rguenther@suse.de>
2729
2730 PR tree-optimization/97236
2731 * tree-vect-stmts.c (get_group_load_store_type): Keep
2732 VMAT_ELEMENTWISE for single-element vectors.
2733
2734 2020-10-01 Jan Hubicka <jh@suse.cz>
2735
2736 * ipa-modref.c (compute_parm_map): Be ready for callee_pi to be NULL.
2737
2738 2020-10-01 Jan Hubicka <jh@suse.cz>
2739
2740 PR ipa/97244
2741 * ipa-fnsummary.c (pass_free_fnsummary::execute): Free
2742 also indirect inlining datastructure.
2743 * ipa-modref.c (pass_ipa_modref::execute): Do not free them here.
2744 * ipa-prop.c (ipa_free_all_node_params): Do not crash when info does
2745 not exist.
2746 (ipa_unregister_cgraph_hooks): Likewise.
2747
2748 2020-10-01 Jan Hubicka <jh@suse.cz>
2749
2750 * internal-fn.c (DEF_INTERNAL_FN): Fix handling of fnspec
2751
2752 2020-10-01 Aldy Hernandez <aldyh@redhat.com>
2753
2754 * Makefile.in: Add value-query.o.
2755 * value-query.cc: New file.
2756 * value-query.h: New file.
2757
2758 2020-10-01 Alex Coplan <alex.coplan@arm.com>
2759
2760 * config/arm/arm-cpus.in: Fix ordering, move Neoverse N2 down.
2761 * config/arm/arm-tables.opt: Regenerate.
2762 * config/arm/arm-tune.md: Regenerate.
2763
2764 2020-10-01 Jakub Jelinek <jakub@redhat.com>
2765
2766 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
2767 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
2768 fenv_var and old_fpc. Formatting fixes.
2769
2770 2020-10-01 Richard Biener <rguenther@suse.de>
2771
2772 * tree-vect-patterns.c (vect_recog_bool_pattern): Also handle
2773 VIEW_CONVERT_EXPR.
2774
2775 2020-10-01 Florian Weimer <fweimer@redhat.com>
2776
2777 PR target/97250
2778 * config/i386/i386.h (PTA_NO_TUNE, PTA_X86_64_BASELINE)
2779 (PTA_X86_64_V2, PTA_X86_64_V3, PTA_X86_64_V4): New.
2780 * common/config/i386/i386-common.c (processor_alias_table):
2781 Add "x86-64-v2", "x86-64-v3", "x86-64-v4".
2782 * config/i386/i386-options.c (ix86_option_override_internal):
2783 Handle new PTA_NO_TUNE processor table entries.
2784 * doc/invoke.texi (x86 Options): Document new -march values.
2785
2786 2020-10-01 Alan Modra <amodra@gmail.com>
2787
2788 * config/rs6000/ppc-asm.h: Support __PCREL__ code.
2789
2790 2020-10-01 Alan Modra <amodra@gmail.com>
2791
2792 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2793 set -mcmodel=small for -mno-minimal-toc when pcrel.
2794
2795 2020-09-30 Martin Sebor <msebor@redhat.com>
2796
2797 PR middle-end/97189
2798 * attribs.c (attr_access::array_as_string): Avoid assuming a VLA
2799 access specification string contains a closing bracket.
2800
2801 2020-09-30 Martin Sebor <msebor@redhat.com>
2802
2803 PR c/97206
2804 * attribs.c (attr_access::array_as_string): Avoid modifying a shared
2805 type in place and use build_type_attribute_qual_variant instead.
2806
2807 2020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2808
2809 * config/arm/arm-cpus.in: Add Cortex-A78 and Cortex-A78AE cores.
2810 * config/arm/arm-tables.opt: Regenerate.
2811 * config/arm/arm-tune.md: Regenerate.
2812 * doc/invoke.texi: Update docs.
2813
2814 2020-09-30 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2815
2816 * config/aarch64/aarch64-cores.def: Add Cortex-A78 and Cortex-A78AE cores.
2817 * config/aarch64/aarch64-tune.md: Regenerate.
2818 * doc/invoke.texi: Add -mtune=cortex-a78 and -mtune=cortex-a78ae.
2819
2820 2020-09-30 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2821
2822 PR target/96795
2823 * config/arm/arm_mve.h (__ARM_mve_coerce2): Define.
2824 (__arm_vaddq): Correct the scalar argument.
2825 (__arm_vaddq_m): Likewise.
2826 (__arm_vaddq_x): Likewise.
2827 (__arm_vcmpeqq_m): Likewise.
2828 (__arm_vcmpeqq): Likewise.
2829 (__arm_vcmpgeq_m): Likewise.
2830 (__arm_vcmpgeq): Likewise.
2831 (__arm_vcmpgtq_m): Likewise.
2832 (__arm_vcmpgtq): Likewise.
2833 (__arm_vcmpleq_m): Likewise.
2834 (__arm_vcmpleq): Likewise.
2835 (__arm_vcmpltq_m): Likewise.
2836 (__arm_vcmpltq): Likewise.
2837 (__arm_vcmpneq_m): Likewise.
2838 (__arm_vcmpneq): Likewise.
2839 (__arm_vfmaq_m): Likewise.
2840 (__arm_vfmaq): Likewise.
2841 (__arm_vfmasq_m): Likewise.
2842 (__arm_vfmasq): Likewise.
2843 (__arm_vmaxnmavq): Likewise.
2844 (__arm_vmaxnmavq_p): Likewise.
2845 (__arm_vmaxnmvq): Likewise.
2846 (__arm_vmaxnmvq_p): Likewise.
2847 (__arm_vminnmavq): Likewise.
2848 (__arm_vminnmavq_p): Likewise.
2849 (__arm_vminnmvq): Likewise.
2850 (__arm_vminnmvq_p): Likewise.
2851 (__arm_vmulq_m): Likewise.
2852 (__arm_vmulq): Likewise.
2853 (__arm_vmulq_x): Likewise.
2854 (__arm_vsetq_lane): Likewise.
2855 (__arm_vsubq_m): Likewise.
2856 (__arm_vsubq): Likewise.
2857 (__arm_vsubq_x): Likewise.
2858
2859 2020-09-30 Joel Hutton <joel.hutton@arm.com>
2860
2861 PR target/96837
2862 * tree-vect-slp.c (vect_analyze_slp): Do not call
2863 vect_attempt_slp_rearrange_stmts for vector constructors.
2864
2865 2020-09-30 Tamar Christina <tamar.christina@arm.com>
2866
2867 * tree-vectorizer.h (SLP_TREE_REF_COUNT): New.
2868 * tree-vect-slp.c (_slp_tree::_slp_tree, _slp_tree::~_slp_tree,
2869 vect_free_slp_tree, vect_build_slp_tree, vect_print_slp_tree,
2870 slp_copy_subtree, vect_attempt_slp_rearrange_stmts): Use it.
2871
2872 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
2873
2874 * omp-offload.c (omp_discover_implicit_declare_target): Also
2875 handled nested functions.
2876
2877 2020-09-30 Tobias Burnus <tobias@codesourcery.com>
2878 Tom de Vries <tdevries@suse.de>
2879
2880 * builtins.c (expand_builtin_cexpi, fold_builtin_sincos): Update
2881 targetm.libc_has_function call.
2882 * builtins.def (DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C11_BUILTIN):
2883 (DEF_C2X_BUILTIN, DEF_C99_COMPL_BUILTIN, DEF_C99_C90RES_BUILTIN):
2884 Same.
2885 * config/darwin-protos.h (darwin_libc_has_function): Update prototype.
2886 * config/darwin.c (darwin_libc_has_function): Add arg.
2887 * config/linux-protos.h (linux_libc_has_function): Update prototype.
2888 * config/linux.c (linux_libc_has_function): Add arg.
2889 * config/i386/i386.c (ix86_libc_has_function): Update
2890 targetm.libc_has_function call.
2891 * config/nvptx/nvptx.c (nvptx_libc_has_function): New function.
2892 (TARGET_LIBC_HAS_FUNCTION): Redefine to nvptx_libc_has_function.
2893 * convert.c (convert_to_integer_1): Update targetm.libc_has_function
2894 call.
2895 * match.pd: Same.
2896 * target.def (libc_has_function): Add arg.
2897 * doc/tm.texi: Regenerate.
2898 * targhooks.c (default_libc_has_function, gnu_libc_has_function)
2899 (no_c99_libc_has_function): Add arg.
2900 * targhooks.h (default_libc_has_function, no_c99_libc_has_function)
2901 (gnu_libc_has_function): Update prototype.
2902 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Update
2903 targetm.libc_has_function call.
2904
2905 2020-09-30 H.J. Lu <hjl.tools@gmail.com>
2906
2907 PR target/97184
2908 * config/i386/i386.md (UNSPECV_MOVDIRI): Renamed to ...
2909 (UNSPEC_MOVDIRI): This.
2910 (UNSPECV_MOVDIR64B): Renamed to ...
2911 (UNSPEC_MOVDIR64B): This.
2912 (movdiri<mode>): Use SET operation.
2913 (@movdir64b_<mode>): Likewise.
2914
2915 2020-09-30 Florian Weimer <fweimer@redhat.com>
2916
2917 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2918 __LAHF_SAHF__ and __MOVBE__ based on ISA flags.
2919
2920 2020-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2921
2922 PR target/97150
2923 * config/aarch64/arm_neon.h (vqrshlb_u8): Make second argument
2924 signed.
2925 (vqrshlh_u16): Likewise.
2926 (vqrshls_u32): Likewise.
2927 (vqrshld_u64): Likewise.
2928 (vqshlb_u8): Likewise.
2929 (vqshlh_u16): Likewise.
2930 (vqshls_u32): Likewise.
2931 (vqshld_u64): Likewise.
2932 (vshld_u64): Likewise.
2933
2934 2020-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2935
2936 PR target/96313
2937 * config/aarch64/aarch64-simd-builtins.def (sqmovun): Use UNOPUS
2938 qualifiers.
2939 * config/aarch64/arm_neon.h (vqmovun_s16): Adjust builtin call.
2940 Remove unnecessary result cast.
2941 (vqmovun_s32): Likewise.
2942 (vqmovun_s64): Likewise.
2943 (vqmovunh_s16): Likewise. Fix return type.
2944 (vqmovuns_s32): Likewise.
2945 (vqmovund_s64): Likewise.
2946
2947 2020-09-30 Richard Sandiford <richard.sandiford@arm.com>
2948
2949 * config/aarch64/aarch64.c (aarch64_split_128bit_move_p): Add a
2950 function comment. Tighten check for FP moves.
2951 * config/aarch64/aarch64.md (*movti_aarch64): Add a w<-Z alternative.
2952 (*movtf_aarch64): Handle r<-Y like r<-r. Remove unnecessary
2953 earlyclobber. Change splitter predicate from aarch64_reg_or_imm
2954 to nonmemory_operand.
2955
2956 2020-09-30 Alex Coplan <alex.coplan@arm.com>
2957
2958 PR target/97251
2959 * config/arm/arm.md (movsf): Relax TARGET_HARD_FLOAT to
2960 TARGET_VFP_BASE.
2961 (movdf): Likewise.
2962 * config/arm/vfp.md (no_literal_pool_df_immediate): Likewise.
2963 (no_literal_pool_sf_immediate): Likewise.
2964
2965 2020-09-30 Alan Modra <amodra@gmail.com>
2966
2967 * configure.ac (--with-long-double-format): Typo fix.
2968 * configure: Regenerate.
2969
2970 2020-09-30 Alan Modra <amodra@gmail.com>
2971
2972 * config/rs6000/rs6000.md (@tablejump<mode>_normal): Don't use
2973 non-existent operands[].
2974 (@tablejump<mode>_nospec): Likewise.
2975
2976 2020-09-30 Segher Boessenkool <segher@kernel.crashing.org>
2977
2978 * config/rs6000/rs6000.md (tablejump): Simplify.
2979 (tablejumpsi): Merge this ...
2980 (tablejumpdi): ... and this ...
2981 (@tablejump<mode>_normal): ... into this.
2982 (tablejumpsi_nospec): Merge this ...
2983 (tablejumpdi_nospec): ... and this ...
2984 (@tablejump<mode>_nospec): ... into this.
2985 (*tablejump<mode>_internal1): Delete, rename to ...
2986 (@tablejump<mode>_insn_normal): ... this.
2987 (*tablejump<mode>_internal1_nospec): Delete, rename to ...
2988 (@tablejump<mode>_insn_nospec): ... this.
2989
2990 2020-09-29 Martin Sebor <msebor@redhat.com>
2991
2992 PR middle-end/97188
2993 * calls.c (maybe_warn_rdwr_sizes): Simplify warning messages.
2994 Correct handling of VLA argumments.
2995
2996 2020-09-29 Marek Polacek <polacek@redhat.com>
2997
2998 PR c++/94695
2999 * doc/invoke.texi: Document -Wrange-loop-construct.
3000
3001 2020-09-29 Jim Wilson <jimw@sifive.com>
3002
3003 PR bootstrap/97183
3004 * configure.ac (gcc_cv_header_zstd_h): Check ZSTD_VERISON_NUMBER.
3005 * configure: Regenerated.
3006
3007 2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
3008
3009 * config/arm/arm-cpus.in: Add Cortex-X1 core.
3010 * config/arm/arm-tables.opt: Regenerate.
3011 * config/arm/arm-tune.md: Regenerate.
3012 * doc/invoke.texi: Update docs.
3013
3014 2020-09-29 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
3015
3016 * config/aarch64/aarch64-cores.def: Add Cortex-X1 Arm core.
3017 * config/aarch64/aarch64-tune.md: Regenerate.
3018 * doc/invoke.texi: Add -mtune=cortex-x1 docs.
3019
3020 2020-09-29 H.J. Lu <hjl.tools@gmail.com>
3021
3022 PR target/97247
3023 * config/i386/enqcmdintrin.h: Replace <enqcmdntrin.h> with
3024 <enqcmdintrin.h>. Replace _ENQCMDNTRIN_H_INCLUDED with
3025 _ENQCMDINTRIN_H_INCLUDED.
3026
3027 2020-09-29 Richard Biener <rguenther@suse.de>
3028
3029 PR tree-optimization/97241
3030 * tree-vect-loop.c (vectorizable_reduction): Move finding
3031 the SLP node for the reduction stmt to a better place.
3032
3033 2020-09-29 Richard Biener <rguenther@suse.de>
3034
3035 * tree-vect-slp.c (vect_analyze_slp): Move SLP reduction
3036 re-arrangement and SLP graph load gathering...
3037 (vect_optimize_slp): ... here.
3038 * tree-vectorizer.h (vec_info::slp_loads): Remove.
3039
3040 2020-09-29 Hongyu Wang <hongyu.wang@intel.com>
3041
3042 PR target/97231
3043 * config/i386/amxbf16intrin.h: Add FSF copyright notes.
3044 * config/i386/amxint8intrin.h: Ditto.
3045 * config/i386/amxtileintrin.h: Ditto.
3046 * config/i386/avx512vp2intersectintrin.h: Ditto.
3047 * config/i386/avx512vp2intersectvlintrin.h: Ditto.
3048 * config/i386/pconfigintrin.h: Ditto.
3049 * config/i386/tsxldtrkintrin.h: Ditto.
3050 * config/i386/wbnoinvdintrin.h: Ditto.
3051
3052 2020-09-29 Richard Biener <rguenther@suse.de>
3053
3054 PR tree-optimization/97238
3055 * tree-ssa-reassoc.c (ovce_extract_ops): Fix typo.
3056
3057 2020-09-29 Richard Sandiford <richard.sandiford@arm.com>
3058
3059 * config/arm/arm.h (ARM_HAVE_NEON_V8QI_ARITH, ARM_HAVE_NEON_V4HI_ARITH)
3060 (ARM_HAVE_NEON_V2SI_ARITH, ARM_HAVE_NEON_V16QI_ARITH): New macros.
3061 (ARM_HAVE_NEON_V8HI_ARITH, ARM_HAVE_NEON_V4SI_ARITH): Likewise.
3062 (ARM_HAVE_NEON_V2DI_ARITH, ARM_HAVE_NEON_V4HF_ARITH): Likewise.
3063 (ARM_HAVE_NEON_V8HF_ARITH, ARM_HAVE_NEON_V2SF_ARITH): Likewise.
3064 (ARM_HAVE_NEON_V4SF_ARITH, ARM_HAVE_V8QI_ARITH, ARM_HAVE_V4HI_ARITH)
3065 (ARM_HAVE_V2SI_ARITH, ARM_HAVE_V16QI_ARITH, ARM_HAVE_V8HI_ARITH)
3066 (ARM_HAVE_V4SI_ARITH, ARM_HAVE_V2DI_ARITH, ARM_HAVE_V4HF_ARITH)
3067 (ARM_HAVE_V2SF_ARITH, ARM_HAVE_V8HF_ARITH, ARM_HAVE_V4SF_ARITH):
3068 Likewise.
3069 * config/arm/iterators.md (VNIM, VNINOTM): Delete.
3070 * config/arm/vec-common.md (add<VNIM:mode>3, addv8hf3)
3071 (add<VNINOTM:mode>3): Replace with...
3072 (add<VDQ:mode>3): ...this new expander.
3073 * config/arm/neon.md (*add<VDQ:mode>3_neon): Use the new
3074 ARM_HAVE_NEON_<MODE>_ARITH macros as the C condition.
3075 (addv8hf3_neon, addv4hf3, add<VFH:mode>3_fp16): Delete in
3076 favor of the above.
3077 (neon_vadd<VH:mode>): Use gen_add<mode>3 instead of
3078 gen_add<mode>3_fp16.
3079
3080 2020-09-29 Kito Cheng <kito.cheng@sifive.com>
3081
3082 * config/riscv/riscv-c.c (riscv_cpu_cpp_builtins): Define
3083 __riscv_cmodel_medany when PIC mode.
3084
3085 2020-09-29 Alex Coplan <alex.coplan@arm.com>
3086
3087 * config/aarch64/aarch64-cores.def: Move neoverse-n2 after saphira.
3088 * config/aarch64/aarch64-tune.md: Regenerate.
3089
3090 2020-09-29 Martin Liska <mliska@suse.cz>
3091
3092 PR tree-optimization/96979
3093 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
3094 Make a fast bail out.
3095 (bit_test_cluster::can_be_handled): Likewise here.
3096 * tree-switch-conversion.h (get_range): Use wi::to_wide instead
3097 of a folding.
3098
3099 2020-09-29 Martin Liska <mliska@suse.cz>
3100
3101 Revert:
3102 2020-09-22 Martin Liska <mliska@suse.cz>
3103
3104 PR tree-optimization/96979
3105 * doc/invoke.texi: Document new param max-switch-clustering-attempts.
3106 * params.opt: Add new parameter.
3107 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
3108 Limit number of attempts.
3109 (bit_test_cluster::find_bit_tests): Likewise.
3110
3111 2020-09-28 Aldy Hernandez <aldyh@redhat.com>
3112
3113 * value-range.h (class irange): Add irange_allocator friend.
3114 (class irange_allocator): New.
3115
3116 2020-09-28 Tobias Burnus <tobias@codesourcery.com>
3117
3118 PR middle-end/96390
3119 * omp-offload.c (omp_discover_declare_target_tgt_fn_r): Handle
3120 alias nodes.
3121
3122 2020-09-28 Paul A. Clarke <pc@us.ibm.com>
3123
3124 * config/rs6000/smmintrin.h (_mm_insert_epi8): New.
3125 (_mm_insert_epi32): New.
3126 (_mm_insert_epi64): New.
3127
3128 2020-09-28 liuhongt <hongtao.liu@intel.com>
3129
3130 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_AMX_TILE_SET,
3131 OPTION_MASK_ISA2_AMX_INT8_SET, OPTION_MASK_ISA2_AMX_BF16_SET,
3132 OPTION_MASK_ISA2_AMX_TILE_UNSET, OPTION_MASK_ISA2_AMX_INT8_UNSET,
3133 OPTION_MASK_ISA2_AMX_BF16_UNSET, OPTION_MASK_ISA2_XSAVE_UNSET):
3134 New marcos.
3135 (ix86_handle_option): Hanlde -mamx-tile, -mamx-int8, -mamx-bf16.
3136 * common/config/i386/i386-cpuinfo.h (processor_types): Add
3137 FEATURE_AMX_TILE, FEATURE_AMX_INT8, FEATURE_AMX_BF16.
3138 * common/config/i386/cpuinfo.h (XSTATE_TILECFG,
3139 XSTATE_TILEDATA, XCR_AMX_ENABLED_MASK): New macro.
3140 (get_available_features): Enable AMX features only if
3141 their states are suoorited by OSXSAVE.
3142 * common/config/i386/i386-isas.h: Add ISA_NAME_TABLE_ENTRY
3143 for amx-tile, amx-int8, amx-bf16.
3144 * config.gcc: Add amxtileintrin.h, amxint8intrin.h,
3145 amxbf16intrin.h to extra headers.
3146 * config/i386/amxbf16intrin.h: New file.
3147 * config/i386/amxint8intrin.h: Ditto.
3148 * config/i386/amxtileintrin.h: Ditto.
3149 * config/i386/cpuid.h (bit_AMX_BF16, bit_AMX_TILE, bit_AMX_INT8):
3150 New macro.
3151 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3152 __AMX_TILE__, __AMX_INT8__, AMX_BF16__.
3153 * config/i386/i386-options.c (ix86_target_string): Add
3154 -mamx-tile, -mamx-int8, -mamx-bf16.
3155 (ix86_option_override_internal): Handle AMX-TILE,
3156 AMX-INT8, AMX-BF16.
3157 * config/i386/i386.h (TARGET_AMX_TILE, TARGET_AMX_TILE_P,
3158 TARGET_AMX_INT8, TARGET_AMX_INT8_P, TARGET_AMX_BF16_P,
3159 PTA_AMX_TILE, PTA_AMX_INT8, PTA_AMX_BF16): New macros.
3160 * config/i386/i386.opt: Add -mamx-tile, -mamx-int8, -mamx-bf16.
3161 * config/i386/immintrin.h: Include amxtileintrin.h,
3162 amxint8intrin.h, amxbf16intrin.h.
3163 * doc/invoke.texi: Document -mamx-tile, -mamx-int8, -mamx-bf16.
3164 * doc/extend.texi: Document amx-tile, amx-int8, amx-bf16.
3165 * doc/sourcebuild.texi ((Effective-Target Keywords, Other
3166 hardware attributes): Document amx_int8, amx_tile, amx_bf16.
3167
3168 2020-09-28 Andrea Corallo <andrea.corallo@arm.com>
3169
3170 * config/aarch64/aarch64-builtins.c
3171 (aarch64_general_expand_builtin): Do not alter value on a
3172 force_reg returned rtx.
3173
3174 2020-09-28 Eric Botcazou <ebotcazou@adacore.com>
3175
3176 * tree-eh.c (lower_try_finally_dup_block): Revert latest change.
3177
3178 2020-09-27 Jan Hubicka <jh@suse.cz>
3179
3180 * ipa-modref.c (modref_summary::useful_p): Fix testing of stores.
3181
3182 2020-09-27 Jakub Jelinek <jakub@redhat.com>
3183
3184 PR middle-end/97073
3185 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
3186 expand_copysign_bit): Check reg_overlap_mentioned_p between target
3187 and operand(s) and if it returns true, force a pseudo as target.
3188
3189 2020-09-27 Xionghu Luo <luoxhu@linux.ibm.com>
3190
3191 * gimple-isel.cc (gimple_expand_vec_set_expr): New function.
3192 (gimple_expand_vec_cond_exprs): Rename to ...
3193 (gimple_expand_vec_exprs): ... this and call
3194 gimple_expand_vec_set_expr.
3195 * internal-fn.c (vec_set_direct): New define.
3196 (expand_vec_set_optab_fn): New function.
3197 (direct_vec_set_optab_supported_p): New define.
3198 * internal-fn.def (VEC_SET): New DEF_INTERNAL_OPTAB_FN.
3199 * optabs.c (can_vec_set_var_idx_p): New function.
3200 * optabs.h (can_vec_set_var_idx_p): New declaration.
3201
3202 2020-09-26 Jan Hubicka <jh@suse.cz>
3203
3204 * ipa-modref.c (analyze_stmt): Do not skip clobbers in early pass.
3205 * ipa-pure-const.c (analyze_stmt): Update comment.
3206
3207 2020-09-26 David Edelsohn <dje.gcc@gmail.com>
3208 Clement Chigot <clement.chigot@atos.com>
3209
3210 * collect2.c (visibility_flag): New.
3211 (main): Detect -fvisibility.
3212 (write_c_file_stat): Push and pop default visibility.
3213
3214 2020-09-26 Jan Hubicka <hubicka@ucw.cz>
3215
3216 * ipa-inline-transform.c: Include ipa-modref-tree.h and ipa-modref.h.
3217 (inline_call): Call ipa_merge_modref_summary_after_inlining.
3218 * ipa-inline.c (ipa_inline): Do not free summaries.
3219 * ipa-modref.c (dump_records): Fix formating.
3220 (merge_call_side_effects): Break out from ...
3221 (analyze_call): ... here; record recursive calls.
3222 (analyze_stmt): Add new parameter RECURSIVE_CALLS.
3223 (analyze_function): Do iterative dataflow on recursive calls.
3224 (compute_parm_map): New function.
3225 (ipa_merge_modref_summary_after_inlining): New function.
3226 (collapse_loads): New function.
3227 (modref_propagate_in_scc): Break out from ...
3228 (pass_ipa_modref::execute): ... here; Do iterative dataflow.
3229 * ipa-modref.h (ipa_merge_modref_summary_after_inlining): Declare.
3230
3231 2020-09-26 Jakub Jelinek <jakub@redhat.com>
3232
3233 * omp-expand.c (expand_omp_simd): Help vectorizer for the collapse == 1
3234 and non-composite collapse > 1 case with non-constant innermost loop
3235 step by precomputing number of iterations before loop and using an
3236 alternate IV from 0 to number of iterations - 1 with step of 1.
3237
3238 2020-09-26 Jan Hubicka <jh@suse.cz>
3239
3240 * ipa-fnsummary.c (dump_ipa_call_summary): Dump
3241 points_to_local_or_readonly_memory flag.
3242 (analyze_function_body): Compute points_to_local_or_readonly_memory
3243 flag.
3244 (remap_edge_change_prob): Rename to ...
3245 (remap_edge_params): ... this one; update
3246 points_to_local_or_readonly_memory.
3247 (remap_edge_summaries): Update.
3248 (read_ipa_call_summary): Stream the new flag.
3249 (write_ipa_call_summary): Likewise.
3250 * ipa-predicate.h (struct inline_param_summary): Add
3251 points_to_local_or_readonly_memory.
3252 (inline_param_summary::equal_to): Update.
3253 (inline_param_summary::useless_p): Update.
3254
3255 2020-09-26 Jan Hubicka <hubicka@ucw.cz>
3256
3257 * ipa-modref-tree.h (modref_ref_node::insert_access): Track if something
3258 changed.
3259 (modref_base_node::insert_ref): Likewise (and add a new optional
3260 argument)
3261 (modref_tree::insert): Likewise.
3262 (modref_tree::merge): Rewrite
3263
3264 2020-09-25 Jan Hubicka <hubicka@ucw.cz>
3265
3266 * doc/invoke.texi: Add -fno-ipa-modref to flags disabled by
3267 -flive-patching.
3268 * opts.c (control_options_for_live_patching): Disable ipa-modref.
3269
3270 2020-09-25 Jan Hubicka <hubicka@ucw.cz>
3271
3272 * ipa-modref.c (analyze_stmt): Fix return value for gimple_clobber.
3273
3274 2020-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3275
3276 * config/aarch64/aarch64-option-extensions.def (rng): Add
3277 cpuinfo string.
3278
3279 2020-09-25 Alex Coplan <alex.coplan@arm.com>
3280
3281 * config/arm/arm-cpus.in (neoverse-v1): Add FP16.
3282
3283 2020-09-25 Martin Liska <mliska@suse.cz>
3284
3285 PR gcov-profile/64636
3286 * value-prof.c (stream_out_histogram_value): Allow negative
3287 values for HIST_TYPE_IOR.
3288
3289 2020-09-25 Tom de Vries <tdevries@suse.de>
3290
3291 * config/nvptx/nvptx.c (nvptx_assemble_integer, nvptx_print_operand):
3292 Use gcc_fallthrough ().
3293
3294 2020-09-25 Richard Biener <rguenther@suse.de>
3295
3296 PR middle-end/96814
3297 * expr.c (store_constructor): Handle VECTOR_BOOLEAN_TYPE_P
3298 CTORs correctly.
3299
3300 2020-09-25 Richard Biener <rguenther@suse.de>
3301
3302 PR middle-end/97207
3303 * vec.h (auto_vec<T>::operator=(auto_vec<T>&&)): Implement.
3304
3305 2020-09-25 Richard Sandiford <richard.sandiford@arm.com>
3306
3307 * config/arm/arm-protos.h (arm_mve_mode_and_operands_type_check):
3308 Delete.
3309 * config/arm/arm.c (arm_coproc_mem_operand_wb): Use a scale factor
3310 of 2 rather than 4 for 16-bit modes.
3311 (arm_mve_mode_and_operands_type_check): Delete.
3312 * config/arm/constraints.md (Uj): Allow writeback for Neon,
3313 but continue to disallow it for MVE.
3314 * config/arm/arm.md (*arm32_mov<HFBF:mode>): Add !TARGET_HAVE_MVE.
3315 * config/arm/vfp.md (*mov_load_vfp_hf16, *mov_store_vfp_hf16): Fold
3316 back into...
3317 (*mov<mode>_vfp_<mode>16): ...here but use Uj for the FPR memory
3318 constraints. Use for base MVE too.
3319
3320 2020-09-25 Richard Biener <rguenther@suse.de>
3321
3322 PR tree-optimization/97199
3323 * tree-if-conv.c (combine_blocks): Remove edges only
3324 after looking at virtual PHI args.
3325
3326 2020-09-25 Jakub Jelinek <jakub@redhat.com>
3327
3328 * omp-low.c (scan_omp_1_stmt): Don't call scan_omp_simd for
3329 collapse > 1 loops as simt doesn't support collapsed loops yet.
3330 * omp-expand.c (expand_omp_for_init_counts, expand_omp_for_init_vars):
3331 Small tweaks to function comment.
3332 (expand_omp_simd): Rewritten collapse > 1 support to only attempt
3333 to vectorize the innermost loop and emit set of outer loops around it.
3334 For non-composite simd with collapse > 1 without broken loop don't
3335 even try to compute number of iterations first. Add support for
3336 non-rectangular simd loops.
3337 (expand_omp_for): Don't sorry_at on non-rectangular simd loops.
3338
3339 2020-09-25 Martin Liska <mliska@suse.cz>
3340
3341 * cgraph.c (cgraph_edge::debug): New.
3342 * cgraph.h (cgraph_edge::debug): New.
3343
3344 2020-09-25 Martin Liska <mliska@suse.cz>
3345
3346 * cgraph.c (cgraph_node::dump): Always print space at the end
3347 of a message. Remove one extra space.
3348
3349 2020-09-24 Alex Coplan <alex.coplan@arm.com>
3350
3351 * config/arm/arm-cpus.in (neoverse-n2): New.
3352 * config/arm/arm-tables.opt: Regenerate.
3353 * config/arm/arm-tune.md: Regenerate.
3354 * doc/invoke.texi: Document support for Neoverse N2.
3355
3356 2020-09-24 Alex Coplan <alex.coplan@arm.com>
3357
3358 * config/aarch64/aarch64-cores.def: Add Neoverse N2.
3359 * config/aarch64/aarch64-tune.md: Regenerate.
3360 * doc/invoke.texi: Document AArch64 support for Neoverse N2.
3361
3362 2020-09-24 Richard Biener <rguenther@suse.de>
3363
3364 * vec.h (auto_vec<T, 0>::auto_vec (auto_vec &&)): New move CTOR.
3365 (auto_vec<T, 0>::operator=(auto_vec &&)): Delete.
3366 * hash-table.h (hash_table::expand): Use std::move when expanding.
3367 * cfgloop.h (get_loop_exit_edges): Return auto_vec<edge>.
3368 * cfgloop.c (get_loop_exit_edges): Adjust.
3369 * cfgloopmanip.c (fix_loop_placement): Likewise.
3370 * ipa-fnsummary.c (analyze_function_body): Likewise.
3371 * ira-build.c (create_loop_tree_nodes): Likewise.
3372 (create_loop_tree_node_allocnos): Likewise.
3373 (loop_with_complex_edge_p): Likewise.
3374 * ira-color.c (ira_loop_edge_freq): Likewise.
3375 * loop-unroll.c (analyze_insns_in_loop): Likewise.
3376 * predict.c (predict_loops): Likewise.
3377 * tree-predcom.c (last_always_executed_block): Likewise.
3378 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3379 * tree-ssa-loop-im.c (store_motion_loop): Likewise.
3380 * tree-ssa-loop-ivcanon.c (loop_edge_to_cancel): Likewise.
3381 (canonicalize_loop_induction_variables): Likewise.
3382 * tree-ssa-loop-manip.c (get_loops_exits): Likewise.
3383 * tree-ssa-loop-niter.c (find_loop_niter): Likewise.
3384 (finite_loop_p): Likewise.
3385 (find_loop_niter_by_eval): Likewise.
3386 (estimate_numbers_of_iterations): Likewise.
3387 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
3388 (may_use_storent_in_loop_p): Likewise.
3389
3390 2020-09-24 Jan Hubicka <jh@suse.cz>
3391
3392 * doc/invoke.texi: Document -fipa-modref, ipa-modref-max-bases,
3393 ipa-modref-max-refs, ipa-modref-max-accesses, ipa-modref-max-tests.
3394 * ipa-modref-tree.c (test_insert_search_collapse): Update.
3395 (test_merge): Update.
3396 (gt_ggc_mx): New function.
3397 * ipa-modref-tree.h (struct modref_access_node): New structure.
3398 (struct modref_ref_node): Add every_access and accesses array.
3399 (modref_ref_node::modref_ref_node): Update ctor.
3400 (modref_ref_node::search): New member function.
3401 (modref_ref_node::collapse): New member function.
3402 (modref_ref_node::insert_access): New member function.
3403 (modref_base_node::insert_ref): Do not collapse base if ref is 0.
3404 (modref_base_node::collapse): Copllapse also refs.
3405 (modref_tree): Add accesses.
3406 (modref_tree::modref_tree): Initialize max_accesses.
3407 (modref_tree::insert): Add access parameter.
3408 (modref_tree::cleanup): New member function.
3409 (modref_tree::merge): Add parm_map; merge accesses.
3410 (modref_tree::copy_from): New member function.
3411 (modref_tree::create_ggc): Add max_accesses.
3412 * ipa-modref.c (dump_access): New function.
3413 (dump_records): Dump accesses.
3414 (dump_lto_records): Dump accesses.
3415 (get_access): New function.
3416 (record_access): Record access.
3417 (record_access_lto): Record access.
3418 (analyze_call): Compute parm_map.
3419 (analyze_function): Update construction of modref records.
3420 (modref_summaries::duplicate): Likewise; use copy_from.
3421 (write_modref_records): Stream accesses.
3422 (read_modref_records): Sream accesses.
3423 (pass_ipa_modref::execute): Update call of merge.
3424 * params.opt (-param=modref-max-accesses): New.
3425 * tree-ssa-alias.c (alias_stats): Add modref_baseptr_tests.
3426 (dump_alias_stats): Update.
3427 (base_may_alias_with_dereference_p): New function.
3428 (modref_may_conflict): Check accesses.
3429 (ref_maybe_used_by_call_p_1): Update call to modref_may_conflict.
3430 (call_may_clobber_ref_p_1): Update call to modref_may_conflict.
3431
3432 2020-09-24 Richard Sandiford <richard.sandiford@arm.com>
3433
3434 * config/arm/arm.md (*stack_protect_combined_set_insn): For non-PIC,
3435 load the address of the canary rather than the address of the
3436 constant pool entry that points to it.
3437 (*stack_protect_combined_test_insn): Likewise.
3438
3439 2020-09-24 Richard Biener <rguenther@suse.de>
3440
3441 PR tree-optimization/97085
3442 * match.pd (mask ? { false,..} : { true, ..} -> ~mask): New.
3443
3444 2020-09-24 Jan Hubicka <hubicka@ucw.cz>
3445
3446 * ipa-modref-tree.h (modref_base::collapse): Release memory.
3447 (modref_tree::create_ggc): New member function.
3448 (modref_tree::colapse): Release memory.
3449 (modref_tree::~modref_tree): New destructor.
3450 * ipa-modref.c (modref_summaries::create_ggc): New function.
3451 (analyze_function): Use create_ggc.
3452 (modref_summaries::duplicate): Likewise.
3453 (read_modref_records): Likewise.
3454 (modref_read): Likewise.
3455
3456 2020-09-24 Alan Modra <amodra@gmail.com>
3457
3458 * config/rs6000/rs6000.c (rs6000_rtx_costs): Pass mode to
3459 reg_or_add_cint_operand and reg_or_sub_cint_operand.
3460
3461 2020-09-24 Alan Modra <amodra@gmail.com>
3462
3463 PR target/93012
3464 * config/rs6000/rs6000.c (num_insns_constant_gpr): Count rldimi
3465 constants correctly.
3466
3467 2020-09-24 Alan Modra <amodra@gmail.com>
3468
3469 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3470 Conditionally define __PCREL__.
3471
3472 2020-09-24 Alan Modra <amodra@gmail.com>
3473
3474 PR target/97107
3475 * config/rs6000/rs6000-internal.h (struct rs6000_stack): Improve
3476 calls_p comment.
3477 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Likewise.
3478 (rs6000_expand_split_stack_prologue): Emit the prologue for
3479 functions that make a sibling call.
3480
3481 2020-09-24 David Malcolm <dmalcolm@redhat.com>
3482
3483 * doc/analyzer.texi (Analyzer Paths): Add note about
3484 -fno-analyzer-feasibility.
3485 * doc/invoke.texi (Static Analyzer Options): Add
3486 -fno-analyzer-feasibility.
3487
3488 2020-09-24 Paul A. Clarke <pc@us.ibm.com>
3489
3490 * doc/extend.texi: Add 'd' for doubleword variant of
3491 vector insert instruction.
3492
3493 2020-09-23 Martin Sebor <msebor@redhat.com>
3494
3495 * gimple-array-bounds.cc (build_zero_elt_array_type): New function.
3496 (array_bounds_checker::check_mem_ref): Call it.
3497
3498 2020-09-23 Martin Sebor <msebor@redhat.com>
3499
3500 PR middle-end/97175
3501 * builtins.c (maybe_warn_for_bound): Handle both DECLs and EXPRESSIONs
3502 in pad->dst.ref, same is pad->src.ref.
3503
3504 2020-09-23 Jan Hubicka <jh@suse.cz>
3505
3506 * ipa-fnsummary.c (refs_local_or_readonly_memory_p): New function.
3507 (points_to_local_or_readonly_memory_p): New function.
3508 * ipa-fnsummary.h (refs_local_or_readonly_memory_p): Declare.
3509 (points_to_local_or_readonly_memory_p): Declare.
3510 * ipa-modref.c (record_access_p): Use refs_local_or_readonly_memory_p.
3511 * ipa-pure-const.c (check_op): Likewise.
3512
3513 2020-09-23 Tom de Vries <tdevries@suse.de>
3514
3515 * config/nvptx/nvptx.md: Don't allow operand containing sum of
3516 function ref and const.
3517
3518 2020-09-23 Richard Sandiford <richard.sandiford@arm.com>
3519
3520 * config/aarch64/aarch64-protos.h (aarch64_salt_type): New enum.
3521 (aarch64_stack_protect_canary_mem): Declare.
3522 * config/aarch64/aarch64.md (UNSPEC_SALT_ADDR): New unspec.
3523 (stack_protect_set): Forward to stack_protect_combined_set.
3524 (stack_protect_combined_set): New pattern. Use
3525 aarch64_stack_protect_canary_mem.
3526 (reg_stack_protect_address_<mode>): Add a salt operand.
3527 (stack_protect_test): Forward to stack_protect_combined_test.
3528 (stack_protect_combined_test): New pattern. Use
3529 aarch64_stack_protect_canary_mem.
3530 * config/aarch64/aarch64.c (strip_salt): New function.
3531 (strip_offset_and_salt): Likewise.
3532 (tls_symbolic_operand_type): Use strip_offset_and_salt.
3533 (aarch64_stack_protect_canary_mem): New function.
3534 (aarch64_cannot_force_const_mem): Use strip_offset_and_salt.
3535 (aarch64_classify_address): Likewise.
3536 (aarch64_symbolic_address_p): Likewise.
3537 (aarch64_print_operand): Likewise.
3538 (aarch64_output_addr_const_extra): New function.
3539 (aarch64_tls_symbol_p): Use strip_salt.
3540 (aarch64_classify_symbol): Likewise.
3541 (aarch64_legitimate_pic_operand_p): Use strip_offset_and_salt.
3542 (aarch64_legitimate_constant_p): Likewise.
3543 (aarch64_mov_operand_p): Use strip_salt.
3544 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Override.
3545
3546 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3547
3548 PR target/71233
3549 * config/aarch64/arm_neon.h (vreinterpretq_f64_p128,
3550 vreinterpretq_p128_f64): Define.
3551
3552 2020-09-23 Alex Coplan <alex.coplan@arm.com>
3553
3554 * config/arm/arm-cpus.in (neoverse-v1): New.
3555 * config/arm/arm-tables.opt: Regenerate.
3556 * config/arm/arm-tune.md: Regenerate.
3557 * doc/invoke.texi: Document support for Neoverse V1.
3558
3559 2020-09-23 Alex Coplan <alex.coplan@arm.com>
3560
3561 * config/aarch64/aarch64-cores.def: Add Neoverse V1.
3562 * config/aarch64/aarch64-tune.md: Regenerate.
3563 * doc/invoke.texi: Document support for Neoverse V1.
3564
3565 2020-09-23 Richard Biener <rguenther@suse.de>
3566
3567 PR middle-end/96453
3568 * gimple-isel.cc (gimple_expand_vec_cond_expr): Remove
3569 LT_EXPR -> NE_EXPR verification and also apply it for
3570 non-constant masks.
3571
3572 2020-09-23 Jan Hubicka <hubicka@ucw.cz>
3573
3574 * ipa-modref.c (modref_summary::lto_useful_p): New member function.
3575 (modref_summary::useful_p): New member function.
3576 (analyze_function): Drop useless summaries.
3577 (modref_write): Skip useless summaries.
3578 (pass_ipa_modref::execute): Drop useless summaries.
3579 * ipa-modref.h (struct GTY): Declare useful_p and lto_useful_p.
3580 * tree-ssa-alias.c (dump_alias_stats): Fix.
3581 (modref_may_conflict): Fix stats.
3582
3583 2020-09-23 Richard Biener <rguenther@suse.de>
3584
3585 PR middle-end/96466
3586 * internal-fn.c (expand_vect_cond_mask_optab_fn): Use
3587 appropriate mode for force_reg.
3588 * tree.c (build_truth_vector_type_for): Pass VOIDmode to
3589 make_vector_type.
3590
3591 2020-09-23 Richard Sandiford <richard.sandiford@arm.com>
3592
3593 * tree-vectorizer.h (determine_peel_for_niter): Delete in favor of...
3594 (vect_determine_partial_vectors_and_peeling): ...this new function.
3595 * tree-vect-loop-manip.c (vect_update_epilogue_niters): New function.
3596 Reject using vector epilogue loops for single iterations. Install
3597 the constant number of epilogue loop iterations in the associated
3598 loop_vinfo. Rely on vect_determine_partial_vectors_and_peeling
3599 to do the main part of the test.
3600 (vect_do_peeling): Use vect_update_epilogue_niters to handle
3601 epilogue loops with a known number of iterations. Skip recomputing
3602 the number of iterations later in that case. Otherwise, use
3603 vect_determine_partial_vectors_and_peeling to decide whether the
3604 epilogue loop needs to use partial vectors or peeling.
3605 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Set the
3606 default can_use_partial_vectors_p to false if partial-vector-usage=0.
3607 (determine_peel_for_niter): Remove in favor of...
3608 (vect_determine_partial_vectors_and_peeling): ...this new function,
3609 split out from...
3610 (vect_analyze_loop_2): ...here. Reflect the vect_verify_full_masking
3611 and vect_verify_loop_lens results in CAN_USE_PARTIAL_VECTORS_P
3612 rather than USING_PARTIAL_VECTORS_P.
3613
3614 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3615
3616 PR target/71233
3617 * config/aarch64/aarch64-simd-builtins.def (frintn): Use BUILTIN_VHSDF_HSDF
3618 for modes. Remove explicit hf instantiation.
3619 * config/aarch64/arm_neon.h (vrndns_f32): Define.
3620
3621 2020-09-23 Richard Biener <rguenther@suse.de>
3622
3623 PR tree-optimization/97173
3624 * tree-vect-loop.c (vectorizable_live_operation): Extend
3625 assert to also conver element conversions.
3626
3627 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3628
3629 PR target/71233
3630 * config/aarch64/arm_neon.h (vtrn1q_p64, vtrn2q_p64, vuzp1q_p64,
3631 vuzp2q_p64, vzip1q_p64, vzip2q_p64): Define.
3632
3633 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3634
3635 PR target/71233
3636 * config/aarch64/arm_neon.h (vldrq_p128): Define.
3637
3638 2020-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3639
3640 PR target/71233
3641 * config/aarch64/arm_neon.h (vstrq_p128): Define.
3642
3643 2020-09-23 Richard Biener <rguenther@suse.de>
3644
3645 PR tree-optimization/97151
3646 * tree-ssa-structalias.c (find_func_aliases_for_call):
3647 DECL_IS_REPLACEABLE_OPERATOR_DELETE_P has no effect on
3648 arguments.
3649
3650 2020-09-23 Richard Biener <rguenther@suse.de>
3651
3652 PR middle-end/97162
3653 * alias.c (compare_base_decls): Use DECL_HARD_REGISTER
3654 and guard with VAR_P.
3655
3656 2020-09-23 Martin Liska <mliska@suse.cz>
3657
3658 PR gcov-profile/97069
3659 * profile.c (branch_prob): Line number must be at least 1.
3660
3661 2020-09-23 Tom de Vries <tdevries@suse.de>
3662
3663 PR target/97158
3664 * config/nvptx/nvptx.c (nvptx_output_mov_insn): Handle move from
3665 DF subreg to DF reg.
3666
3667 2020-09-23 David Malcolm <dmalcolm@redhat.com>
3668
3669 * Makefile.in: Add $(ZLIBINC) to CFLAGS-analyzer/engine.o.
3670
3671 2020-09-22 Jan Hubicka <jh@suse.cz>
3672
3673 * ipa-modref.c (analyze_stmt): Ignore gimple clobber.
3674
3675 2020-09-22 Jan Hubicka <jh@suse.cz>
3676
3677 * ipa-modref-tree.c: Add namespace selftest.
3678 (modref_tree_c_tests): Rename to ...
3679 (ipa_modref_tree_c_tests): ... this.
3680 * ipa-modref.c (pass_modref): Remove destructor.
3681 (ipa_modref_c_finalize): New function.
3682 * ipa-modref.h (ipa_modref_c_finalize): Declare.
3683 * selftest-run-tests.c (selftest::run_tests): Call
3684 ipa_modref_c_finalize.
3685 * selftest.h (ipa_modref_tree_c_tests): Declare.
3686 * toplev.c: Include ipa-modref-tree.h and ipa-modref.h
3687 (toplev::finalize): Call ipa_modref_c_finalize.
3688
3689 2020-09-22 David Malcolm <dmalcolm@redhat.com>
3690
3691 * doc/analyzer.texi (Other Debugging Techniques): Mention
3692 -fdump-analyzer-json.
3693 * doc/invoke.texi (Static Analyzer Options): Add
3694 -fdump-analyzer-json.
3695
3696 2020-09-22 David Faust <david.faust@oracle.com>
3697
3698 * config/bpf/bpf.md: Add defines for signed div and mod operators.
3699
3700 2020-09-22 Martin Liska <mliska@suse.cz>
3701
3702 PR tree-optimization/96979
3703 * doc/invoke.texi: Document new param max-switch-clustering-attempts.
3704 * params.opt: Add new parameter.
3705 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
3706 Limit number of attempts.
3707 (bit_test_cluster::find_bit_tests): Likewise.
3708
3709 2020-09-22 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
3710
3711 * config/s390/s390.md ("*cmp<mode>_ccs_0", "*cmp<mode>_ccz_0",
3712 "*cmp<mode>_ccs_0_fastmath"): Basically change "*cmp<mode>_ccs_0" into
3713 "*cmp<mode>_ccz_0" and for fast math add "*cmp<mode>_ccs_0_fastmath".
3714
3715 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3716
3717 PR target/71233
3718 * config/aarch64/arm_neon.h (vcls_u8, vcls_u16, vcls_u32,
3719 vclsq_u8, vclsq_u16, vclsq_u32): Define.
3720
3721 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3722
3723 PR target/71233
3724 * config/aarch64/arm_neon.h (vceqq_p64, vceqz_p64, vceqzq_p64): Define.
3725
3726 2020-09-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3727
3728 PR target/71233
3729 * config/aarch64/arm_neon.h (vadd_p8, vadd_p16, vadd_p64, vaddq_p8,
3730 vaddq_p16, vaddq_p64, vaddq_p128): Define.
3731
3732 2020-09-22 Jakub Jelinek <jakub@redhat.com>
3733
3734 * params.opt (--param=modref-max-tests=): Fix typo in help text:
3735 perofmed -> performed.
3736 * common.opt: Fix typo: incrmeental -> incremental.
3737 * ipa-modref.c: Fix typos: recroding -> recording, becaue -> because,
3738 analsis -> analysis.
3739 (class modref_summaries): Fix typo: betweehn -> between.
3740 (analyze_call): Fix typo: calle -> callee.
3741 (read_modref_records): Fix typo: expcted -> expected.
3742 (pass_ipa_modref::execute): Fix typo: calle -> callee.
3743
3744 2020-09-22 Jakub Jelinek <jakub@redhat.com>
3745
3746 * common.opt (-fipa-modref): Add dot at the end of option help.
3747 * params.opt (--param=modref-max-tests=): Likewise.
3748
3749 2020-09-21 Marek Polacek <polacek@redhat.com>
3750
3751 * doc/invoke.texi: Document -Wctad-maybe-unsupported.
3752
3753 2020-09-21 Richard Biener <rguenther@suse.de>
3754
3755 PR tree-optimization/97139
3756 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Only mark the
3757 pattern root, track visited vectorized stmts.
3758
3759 2020-09-21 Jakub Jelinek <jakub@redhat.com>
3760
3761 * configure.ac: Use mallinfo mallinfo2 as first operand of
3762 gcc_AC_CHECK_DECLS rather than [mallinfo, mallinfo2].
3763 * configure: Regenerated.
3764 * config.in: Regenerated.
3765
3766 2020-09-21 Andrea Corallo <andrea.corallo@arm.com>
3767
3768 * config/aarch64/aarch64-builtins.c
3769 (aarch64_general_expand_builtin): Use expand machinery not to
3770 alter the value of an rtx returned by force_reg.
3771
3772 2020-09-21 Richard Biener <rguenther@suse.de>
3773
3774 PR tree-optimization/97135
3775 * tree-ssa-loop-im.c (sm_seq_push_down): Do not ignore
3776 self-dependences.
3777
3778 2020-09-21 Martin Liska <mliska@suse.cz>
3779
3780 PR tree-optimization/96915
3781 * tree-switch-conversion.c (switch_conversion::expand): Accept
3782 also integer constants.
3783
3784 2020-09-21 Martin Liska <mliska@suse.cz>
3785
3786 * print-tree.c (print_node): Remove extra space.
3787
3788 2020-09-21 Andrea Corallo <andrea.corallo@arm.com>
3789
3790 PR target/96968
3791 * config/aarch64/aarch64-builtins.c
3792 (aarch64_expand_fpsr_fpcr_setter): Fix comment nit.
3793 (aarch64_expand_fpsr_fpcr_getter): New function, expand these
3794 getters using expand_insn machinery.
3795 (aarch64_general_expand_builtin): Make use of.
3796
3797 2020-09-21 Martin Liska <mliska@suse.cz>
3798
3799 * ggc-common.c (ggc_rlimit_bound): Use ONE_? macro.
3800 (ggc_min_expand_heuristic): Likewise.
3801 (ggc_min_heapsize_heuristic): Likewise.
3802 * ggc-page.c (ggc_collect): Likewise.
3803 * system.h (ONE_G): Likewise.
3804
3805 2020-09-21 Martin Liska <mliska@suse.cz>
3806
3807 * ggc-common.c (ggc_prune_overhead_list): Use SIZE_AMOUNT.
3808 * ggc-page.c (release_pages): Likewise.
3809 (ggc_collect): Likewise.
3810 (ggc_trim): Likewise.
3811 (ggc_grow): Likewise.
3812 * timevar.c (timer::print): Likewise.
3813
3814 2020-09-21 Martin Liska <mliska@suse.cz>
3815
3816 * config.in: Regenerate.
3817 * configure: Likewise.
3818 * configure.ac: Detect for mallinfo2.
3819 * ggc-common.c (defined): Use it.
3820 * system.h: Handle also HAVE_MALLINFO2.
3821
3822 2020-09-20 John David Anglin < danglin@gcc.gnu.org>
3823
3824 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Delete.
3825 * config/pa/pa64-hpux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
3826 (ENDFILE_SPEC): Link with libgcc_stub.a and mill.a.
3827 * config/pa/pa32-linux.h (ENDFILE_SPEC): Link with libgcc.a.
3828
3829 2020-09-20 Jan Hubicka <hubicka@ucw.cz>
3830
3831 * ipa-modref.c (dump_lto_records): Fix ICE.
3832
3833 2020-09-20 David Cepelik <d@dcepelik.cz>
3834 Jan Hubicka <hubicka@ucw.cz>
3835
3836 * Makefile.in: Add ipa-modref.c and ipa-modref-tree.c.
3837 * alias.c: (reference_alias_ptr_type_1): Export.
3838 * alias.h (reference_alias_ptr_type_1): Declare.
3839 * common.opt (fipa-modref): New.
3840 * gengtype.c (open_base_files): Add ipa-modref-tree.h and ipa-modref.h
3841 * ipa-modref-tree.c: New file.
3842 * ipa-modref-tree.h: New file.
3843 * ipa-modref.c: New file.
3844 * ipa-modref.h: New file.
3845 * lto-section-in.c (lto_section_name): Add ipa_modref.
3846 * lto-streamer.h (enum lto_section_type): Add LTO_section_ipa_modref.
3847 * opts.c (default_options_table): Enable ipa-modref at -O1+.
3848 * params.opt (-param=modref-max-bases, -param=modref-max-refs,
3849 -param=modref-max-tests): New params.
3850 * passes.def: Schedule pass_modref and pass_ipa_modref.
3851 * timevar.def (TV_IPA_MODREF): New timevar.
3852 (TV_TREE_MODREF): New timevar.
3853 * tree-pass.h (make_pass_modref): Declare.
3854 (make_pass_ipa_modref): Declare.
3855 * tree-ssa-alias.c (dump_alias_stats): Include ipa-modref-tree.h
3856 and ipa-modref.h
3857 (alias_stats): Add modref_use_may_alias, modref_use_no_alias,
3858 modref_clobber_may_alias, modref_clobber_no_alias, modref_tests.
3859 (dump_alias_stats): Dump new stats.
3860 (nonoverlapping_array_refs_p): Fix formating.
3861 (modref_may_conflict): New function.
3862 (ref_maybe_used_by_call_p_1): Use it.
3863 (call_may_clobber_ref_p_1): Use it.
3864 (call_may_clobber_ref_p): Update.
3865 (stmt_may_clobber_ref_p_1): Update.
3866 * tree-ssa-alias.h (call_may_clobber_ref_p_1): Update.
3867
3868 2020-09-19 Martin Sebor <msebor@redhat.com>
3869
3870 PR middle-end/82608
3871 PR middle-end/94195
3872 PR c/50584
3873 PR middle-end/84051
3874 * gimple-array-bounds.cc (get_base_decl): New function.
3875 (get_ref_size): New function.
3876 (trailing_array): New function.
3877 (array_bounds_checker::check_array_ref): Call them. Handle arrays
3878 declared in function parameters.
3879 (array_bounds_checker::check_mem_ref): Same. Handle references to
3880 dynamically allocated arrays.
3881
3882 2020-09-19 Martin Sebor <msebor@redhat.com>
3883
3884 PR c/50584
3885 * builtins.c (warn_for_access): Add argument. Distinguish between
3886 reads and writes.
3887 (check_access): Add argument. Distinguish between reads and writes.
3888 (gimple_call_alloc_size): Set range even on failure.
3889 (gimple_parm_array_size): New function.
3890 (compute_objsize): Call it.
3891 (check_memop_access): Pass check_access an additional argument.
3892 (expand_builtin_memchr, expand_builtin_strcat): Same.
3893 (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
3894 (expand_builtin_stpncpy, check_strncat_sizes): Same.
3895 (expand_builtin_strncat, expand_builtin_strncpy): Same.
3896 (expand_builtin_memcmp): Same.
3897 * builtins.h (compute_objsize): Declare a new overload.
3898 (gimple_parm_array_size): Declare.
3899 (check_access): Add argument.
3900 * calls.c (append_attrname): Simplify.
3901 (maybe_warn_rdwr_sizes): Handle internal attribute access.
3902 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Avoid adding
3903 quotes.
3904
3905 2020-09-19 Martin Sebor <msebor@redhat.com>
3906
3907 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Handle attribute
3908 access internal representation of arrays.
3909
3910 2020-09-19 Martin Sebor <msebor@redhat.com>
3911
3912 PR c/50584
3913 * attribs.c (decl_attributes): Also pass decl along with type
3914 attributes to handlers.
3915 (init_attr_rdwr_indices): Change second argument to attribute chain.
3916 Handle internal attribute representation in addition to external.
3917 (get_parm_access): New function.
3918 (attr_access::to_internal_string): Define new member function.
3919 (attr_access::to_external_string): Define new member function.
3920 (attr_access::vla_bounds): Define new member function.
3921 * attribs.h (struct attr_access): Declare new members.
3922 (attr_access::from_mode_char): Define new member function.
3923 (get_parm_access): Declare new function.
3924 * calls.c (initialize_argument_information): Pass function type
3925 attributes to init_attr_rdwr_indices.
3926 * doc/invoke.texi (-Warray-parameter, -Wvla-parameter): Document.
3927 * tree-pretty-print.c (dump_generic_node): Correct handling of
3928 qualifiers.
3929 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Same.
3930 * tree.h (access_mode): Add new enumerator.
3931
3932 2020-09-19 Sandra Loosemore <sandra@codesourcery.com>
3933
3934 * doc/generic.texi (Basic Statements): Document SWITCH_EXPR here,
3935 not SWITCH_STMT.
3936 (Statements for C and C++): Rename node to reflect what
3937 the introduction already says about sharing between C and C++
3938 front ends. Copy-edit and correct documentation for structured
3939 loops and switch.
3940
3941 2020-09-19 liuhongt <hongtao.liu@intel.com>
3942
3943 PR target/96861
3944 * config/i386/x86-tune-costs.h (skylake_cost): increase rtx
3945 cost of sse_to_integer from 2 to 6.
3946
3947 2020-09-18 Sudi Das <sudi.das@arm.com>
3948 Omar Tahir <omar.tahir@arm.com>
3949
3950 * config/arm/thumb2.md (*thumb2_csneg): New.
3951 (*thumb2_negscc): Don't match if TARGET_COND_ARITH.
3952 * config/arm/arm.md (*if_neg_move): Don't match if TARGET_COND_ARITH.
3953
3954 2020-09-18 Sudi Das <sudi.das@arm.com>
3955 Omar Tahir <omar.tahir@arm.com>
3956
3957 * config/arm/thumb2.md (*thumb2_csinc): New.
3958 (*thumb2_cond_arith): Generate CINC where possible.
3959
3960 2020-09-18 Sudi Das <sudi.das@arm.com>
3961 Omar Tahir <omar.tahir@arm.com>
3962
3963 * config/arm/arm.h (TARGET_COND_ARITH): New macro.
3964 * config/arm/arm.c (arm_have_conditional_execution): Return false if
3965 TARGET_COND_ARITH before reload.
3966 * config/arm/predicates.md (arm_comparison_operation): Returns true if
3967 comparing CC_REGNUM with constant zero.
3968 * config/arm/thumb2.md (*thumb2_csinv): New.
3969 (*thumb2_movcond): Don't match if TARGET_COND_ARITH.
3970
3971 2020-09-18 Richard Sandiford <richard.sandiford@arm.com>
3972
3973 PR middle-end/91957
3974 * ira.c (ira_setup_eliminable_regset): Skip the special elimination
3975 handling of the hard frame pointer if the hard frame pointer is fixed.
3976
3977 2020-09-18 Richard Biener <rguenther@suse.de>
3978
3979 PR tree-optimization/97081
3980 * tree-vect-patterns.c (vect_recog_rotate_pattern): Use the
3981 precision of the shifted operand to determine the mask.
3982
3983 2020-09-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3984
3985 * config/msp430/msp430.c (msp430_print_operand): Update comment.
3986 Cast to long when printing values formatted as long.
3987 Support 'd', 'e', 'f' and 'g' modifiers.
3988 Extract operand value with a single operation for all modifiers.
3989 * doc/extend.texi (msp430Operandmodifiers): New.
3990
3991 2020-09-18 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3992
3993 * config/msp430/msp430.c (increment_stack): Mark insns which increment
3994 the stack as frame_related.
3995 (msp430_expand_prologue): Add comments.
3996 (msp430_expand_epilogue): Mark insns which decrement
3997 the stack as frame_related.
3998 Add reg_note to stack pop insns describing position of register
3999 variables on the stack.
4000
4001 2020-09-18 Andrew Stubbs <ams@codesourcery.com>
4002
4003 * config/gcn/gcn-tree.c (execute_omp_gcn): Delete.
4004 (make_pass_omp_gcn): Delete.
4005 * config/gcn/t-gcn-hsa (PASSES_EXTRA): Delete.
4006 * config/gcn/gcn-passes.def: Removed.
4007
4008 2020-09-18 Alex Coplan <alex.coplan@arm.com>
4009
4010 * cfgloop.h (nb_iter_bound): Reword comment describing is_exit.
4011
4012 2020-09-18 Richard Biener <rguenther@suse.de>
4013
4014 PR tree-optimization/97095
4015 * tree-vect-loop.c (vectorizable_live_operation): Get
4016 the SLP vector type from the correct object.
4017
4018 2020-09-18 Richard Biener <rguenther@suse.de>
4019
4020 PR tree-optimization/97089
4021 * tree-ssa-sccvn.c (visit_nary_op): Do not replace unsigned
4022 divisions.
4023
4024 2020-09-18 Richard Biener <rguenther@suse.de>
4025
4026 PR tree-optimization/97098
4027 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): Do not
4028 recurse to children when all stmts were already visited.
4029
4030 2020-09-17 Sergei Trofimovich <siarheit@google.com>
4031
4032 * profile.c (sort_hist_values): Clarify hist format:
4033 start with a value, not counter.
4034
4035 2020-09-17 Yeting Kuo <fakepaper56@gmail.com>
4036
4037 * config/riscv/riscv.h (CSW_MAX_OFFSET): Fix typo.
4038
4039 2020-09-17 Patrick Palka <ppalka@redhat.com>
4040
4041 PR c/80076
4042 * gensupport.c (alter_attrs_for_subst_insn) <case SET_ATTR>:
4043 Reduce indentation of misleadingly indented code fragment.
4044 * lra-constraints.c (multi_block_pseudo_p): Likewise.
4045 * sel-sched-ir.c (merge_fences): Likewise.
4046
4047 2020-09-17 Martin Sebor <msebor@redhat.com>
4048
4049 * doc/invoke.texi (-Wuninitialized): Document -Wuninitialized for
4050 allocated objects.
4051 (-Wmaybe-uninitialized): Same.
4052
4053 2020-09-17 Richard Biener <rguenther@suse.de>
4054
4055 * tree-ssa-sccvn.c (visit_nary_op): Value-number multiplications
4056 and divisions to negates of available negated forms.
4057
4058 2020-09-17 Eric Botcazou <ebotcazou@adacore.com>
4059
4060 PR middle-end/97078
4061 * function.c (use_register_for_decl): Test cfun->tail_call_marked
4062 for a parameter here instead of...
4063 (assign_parm_setup_reg): ...here.
4064
4065 2020-09-17 Aldy Hernandez <aldyh@redhat.com>
4066
4067 * range-op.cc (multi_precision_range_tests): Normalize symbolics when copying to a
4068 multi-range.
4069 * value-range.cc (irange::copy_legacy_range): Add test.
4070
4071 2020-09-17 Jan Hubicka <jh@suse.cz>
4072
4073 * cgraph.c (cgraph_node::get_availability): Fix availability of
4074 functions in other partitions
4075 * varpool.c (varpool_node::get_availability): Likewise.
4076
4077 2020-09-17 Jojo R <jiejie_rong@c-sky.com>
4078
4079 * config/csky/csky.opt (msim): New.
4080 * doc/invoke.texi (C-SKY Options): Document -msim.
4081 * config/csky/csky-elf.h (LIB_SPEC): Add simulator runtime.
4082
4083 2020-09-17 Sergei Trofimovich <siarheit@google.com>
4084
4085 * doc/cppenv.texi: Use @code{} instead of @samp{@command{}}
4086 around 'date %s'.
4087
4088 2020-09-17 liuhongt <hongtao.liu@intel.com>
4089
4090 * common/config/i386/i386-common.c
4091 (OPTION_MASK_ISA_AVX_UNSET): Remove OPTION_MASK_ISA_XSAVE_UNSET.
4092 (OPTION_MASK_ISA_XSAVE_UNSET): Add OPTION_MASK_ISA_AVX_UNSET.
4093
4094 2020-09-16 Alexandre Oliva <oliva@adacore.com>
4095
4096 * config/rs6000/rs6000.c (have_compare_and_set_mask): Use
4097 E_*mode in cases.
4098
4099 2020-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
4100
4101 * config/rs6000/predicates.md (current_file_function_operand):
4102 Remove argument from rs6000_pcrel_p call.
4103 * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
4104 Likewise.
4105 (rs6000_global_entry_point_prologue_needed_p): Likewise.
4106 (rs6000_output_function_prologue): Likewise.
4107 * config/rs6000/rs6000-protos.h (rs6000_function_pcrel_p): New
4108 prototype.
4109 (rs6000_pcrel_p): Remove argument.
4110 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
4111 argument from rs6000_pcrel_p call.
4112 (rs6000_call_template_1): Likewise.
4113 (rs6000_indirect_call_template_1): Likewise.
4114 (rs6000_longcall_ref): Likewise.
4115 (rs6000_call_aix): Likewise.
4116 (rs6000_sibcall_aix): Likewise.
4117 (rs6000_function_pcrel_p): Rename from rs6000_pcrel_p.
4118 (rs6000_pcrel_p): Rewrite.
4119 * config/rs6000/rs6000.md (*pltseq_plt_pcrel<mode>): Remove
4120 argument from rs6000_pcrel_p call.
4121 (*call_local<mode>): Likewise.
4122 (*call_value_local<mode>): Likewise.
4123 (*call_nonlocal_aix<mode>): Likewise.
4124 (*call_value_nonlocal_aix<mode>): Likewise.
4125 (*call_indirect_pcrel<mode>): Likewise.
4126 (*call_value_indirect_pcrel<mode>): Likewise.
4127
4128 2020-09-16 Marek Polacek <polacek@redhat.com>
4129
4130 PR preprocessor/96935
4131 * input.c (get_substring_ranges_for_loc): Return if start.column
4132 is less than 1.
4133
4134 2020-09-16 Martin Sebor <msebor@redhat.com>
4135
4136 PR middle-end/96295
4137 * tree-ssa-uninit.c (maybe_warn_operand): Work harder to avoid
4138 warning for objects of empty structs
4139
4140 2020-09-16 Eric Botcazou <ebotcazou@adacore.com>
4141
4142 * tree-eh.c (lower_try_finally_dup_block): Backward propagate slocs
4143 to stack restore builtin calls.
4144 (cleanup_all_empty_eh): Do again a post-order traversal of the EH
4145 region tree.
4146
4147 2020-09-16 Andrea Corallo <andrea.corallo@arm.com>
4148
4149 * tree-vect-loop.c (vect_need_peeling_or_partial_vectors_p): New
4150 function.
4151 (vect_analyze_loop_2): Make use of it not to select partial
4152 vectors if no peel is required.
4153 (determine_peel_for_niter): Move out some logic into
4154 'vect_need_peeling_or_partial_vectors_p'.
4155
4156 2020-09-16 H.J. Lu <hjl.tools@gmail.com>
4157
4158 PR target/97032
4159 * cfgexpand.c (asm_clobber_reg_kind): Set sp_is_clobbered_by_asm
4160 to true if the stack pointer is clobbered by asm statement.
4161 * emit-rtl.h (rtl_data): Add sp_is_clobbered_by_asm.
4162 * config/i386/i386.c (ix86_get_drap_rtx): Set need_drap to true
4163 if the stack pointer is clobbered by asm statement.
4164
4165 2020-09-16 Ilya Leoshkevich <iii@linux.ibm.com>
4166
4167 * config/s390/vector.md(*vec_tf_to_v1tf): Use "f" instead of "v"
4168 for the source operand.
4169
4170 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
4171
4172 * config.gcc (C-SKY): Set use_gcc_stdint=wrap for elf target.
4173
4174 2020-09-16 Richard Biener <rguenther@suse.de>
4175
4176 * tree-vectorizer.h (_stmt_vec_info::num_slp_uses): Remove.
4177 (STMT_VINFO_NUM_SLP_USES): Likewise.
4178 (vect_free_slp_instance): Adjust.
4179 (vect_update_shared_vectype): Declare.
4180 * tree-vectorizer.c (vec_info::~vec_info): Adjust.
4181 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4182 (vectorizable_live_operation): Use vector type from
4183 SLP_TREE_REPRESENTATIVE.
4184 (vect_transform_loop): Adjust.
4185 * tree-vect-data-refs.c (vect_slp_analyze_node_alignment):
4186 Set the shared vector type.
4187 * tree-vect-slp.c (vect_free_slp_tree): Remove final_p
4188 parameter, remove STMT_VINFO_NUM_SLP_USES updating.
4189 (vect_free_slp_instance): Adjust.
4190 (vect_create_new_slp_node): Remove STMT_VINFO_NUM_SLP_USES
4191 updating.
4192 (vect_update_shared_vectype): Always compare with the
4193 present vector type, update if NULL.
4194 (vect_build_slp_tree_1): Do not update the shared vector
4195 type here.
4196 (vect_build_slp_tree_2): Adjust.
4197 (slp_copy_subtree): Likewise.
4198 (vect_attempt_slp_rearrange_stmts): Likewise.
4199 (vect_analyze_slp_instance): Likewise.
4200 (vect_analyze_slp): Likewise.
4201 (vect_slp_analyze_node_operations_1): Update the shared
4202 vector type.
4203 (vect_slp_analyze_operations): Adjust.
4204 (vect_slp_analyze_bb_1): Likewise.
4205
4206 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
4207
4208 * config/csky/t-csky-linux (CSKY_MULTILIB_OSDIRNAMES): Use mfloat-abi.
4209 (MULTILIB_OPTIONS): Likewise.
4210 * config/csky/t-csky-elf (MULTILIB_OPTIONS): Likewise.
4211 (MULTILIB_EXCEPTIONS): Likewise.
4212
4213 2020-09-16 Jakub Jelinek <jakub@redhat.com>
4214
4215 * config/arm/arm.c (arm_option_restore): Comment out opts argument
4216 name to avoid unused parameter warnings.
4217
4218 2020-09-16 Jakub Jelinek <jakub@redhat.com>
4219
4220 * optc-save-gen.awk: In cl_optimization_stream_out use
4221 bp_pack_var_len_{int,unsigned} instead of bp_pack_value. In
4222 cl_optimization_stream_in use bp_unpack_var_len_{int,unsigned}
4223 instead of bp_unpack_value. Formatting fix.
4224
4225 2020-09-16 Jakub Jelinek <jakub@redhat.com>
4226
4227 PR tree-optimization/97053
4228 * gimple-ssa-store-merging.c (check_no_overlap): Add FIRST_ORDER,
4229 START, FIRST_EARLIER and LAST_EARLIER arguments. Return false if
4230 any stores between FIRST_EARLIER inclusive and LAST_EARLIER exclusive
4231 has order in between FIRST_ORDER and LAST_ORDER and overlaps the to
4232 be merged store.
4233 (imm_store_chain_info::try_coalesce_bswap): Add FIRST_EARLIER argument.
4234 Adjust check_no_overlap caller.
4235 (imm_store_chain_info::coalesce_immediate_stores): Add first_earlier
4236 and last_earlier variables, adjust them during iterations. Adjust
4237 check_no_overlap callers, call check_no_overlap even when extending
4238 overlapping stores by extra INTEGER_CST stores.
4239
4240 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
4241
4242 * config/csky/csky-linux-elf.h (GLIBC_DYNAMIC_LINKER): Use mfloat-abi.
4243
4244 2020-09-16 Kewen Lin <linkw@linux.ibm.com>
4245
4246 PR target/97019
4247 * config/rs6000/rs6000-p8swap.c (find_alignment_op): Adjust to
4248 support multiple defintions which are all AND operations with
4249 the mask -16B.
4250 (recombine_lvx_pattern): Adjust to handle multiple AND operations
4251 from find_alignment_op.
4252 (recombine_stvx_pattern): Likewise.
4253
4254 2020-09-16 Jojo R <jiejie_rong@c-sky.com>
4255
4256 * config/csky/csky.md (CSKY_NPARM_FREGS): New.
4257 (call_value_internal_vs/d): New.
4258 (untyped_call): New.
4259 * config/csky/csky.h (TARGET_SINGLE_FPU): New.
4260 (TARGET_DOUBLE_FPU): New.
4261 (FUNCTION_VARG_REGNO_P): New.
4262 (CSKY_VREG_MODE_P): New.
4263 (FUNCTION_VARG_MODE_P): New.
4264 (CUMULATIVE_ARGS): Add extra regs info.
4265 (INIT_CUMULATIVE_ARGS): Use csky_init_cumulative_args.
4266 (FUNCTION_ARG_REGNO_P): Use FUNCTION_VARG_REGNO_P.
4267 * config/csky/csky-protos.h (csky_init_cumulative_args): Extern.
4268 * config/csky/csky.c (csky_cpu_cpp_builtins): Support TARGET_HARD_FLOAT_ABI.
4269 (csky_function_arg): Likewise.
4270 (csky_num_arg_regs): Likewise.
4271 (csky_function_arg_advance): Likewise.
4272 (csky_function_value): Likewise.
4273 (csky_libcall_value): Likewise.
4274 (csky_function_value_regno_p): Likewise.
4275 (csky_arg_partial_bytes): Likewise.
4276 (csky_setup_incoming_varargs): Likewise.
4277 (csky_init_cumulative_args): New.
4278
4279 2020-09-16 Bill Schmidt <wschmidt@linux.ibm.com>
4280
4281 * config/rs6000/rs6000-call.c (altivec_init_builtins): Fix name
4282 of __builtin_altivec_xst_len_r.
4283
4284 2020-09-15 Ilya Leoshkevich <iii@linux.ibm.com>
4285
4286 * rtlanal.c (set_noop_p): Treat subregs of registers in
4287 different modes conservatively.
4288
4289 2020-09-15 Richard Biener <rguenther@suse.de>
4290
4291 * tree-vect-slp.c (vect_get_and_check_slp_defs): Make swap
4292 argument by-value and do not change it.
4293 (vect_build_slp_tree_2): Adjust, set swap to NULL after last
4294 use.
4295
4296 2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
4297
4298 PR tree-optimization/94234
4299 * match.pd (T)(A) +- (T)(B) -> (T)(A +- B): New simplification.
4300
4301 2020-09-15 Segher Boessenkool <segher@kernel.crashing.org>
4302
4303 PR rtl-optimization/96475
4304 * bb-reorder.c (duplicate_computed_gotos): If we did anything, run
4305 cleanup_cfg.
4306
4307 2020-09-15 Richard Biener <rguenther@suse.de>
4308
4309 * tree-vect-slp.c (vect_build_slp_tree_2): Also consider
4310 building an operand from scalars when building it did not
4311 fail fatally but avoid messing with the upcall splitting
4312 of groups.
4313
4314 2020-09-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
4315
4316 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Do not
4317 check +D32 for CMSE if -mfloat-abi=soft
4318
4319 2020-09-15 liuhongt <hongtao.liu@intel.com>
4320
4321 PR target/96744
4322 * config/i386/x86-tune-costs.h (struct processor_costs):
4323 Increase mask <-> integer cost for non AVX512 target to avoid
4324 spill gpr to mask. Also retune mask <-> integer and
4325 mask_load/store for skylake_cost.
4326
4327 2020-09-15 Jakub Jelinek <jakub@redhat.com>
4328
4329 PR target/97028
4330 * config/i386/sse.md (mul<mode>3<mask_name>_bcs,
4331 <avx512>_div<mode>3<mask_name>_bcst): Use <avx512bcst> instead of
4332 <<avx512bcst>>.
4333
4334 2020-09-15 Tobias Burnus <tobias@codesourcery.com>
4335
4336 PR fortran/96668
4337 * gimplify.c (gimplify_omp_for): Add 'bool openacc' argument;
4338 update omp_finish_clause calls.
4339 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses,
4340 gimplify_expr, gimplify_omp_loop): Update omp_finish_clause
4341 and/or gimplify_for calls.
4342 * langhooks-def.h (lhd_omp_finish_clause): Add bool openacc arg.
4343 * langhooks.c (lhd_omp_finish_clause): Likewise.
4344 * langhooks.h (lhd_omp_finish_clause): Likewise.
4345 * omp-low.c (scan_sharing_clauses): Keep GOMP_MAP_TO_PSET cause for
4346 'declare target' vars.
4347
4348 2020-09-15 Feng Xue <fxue@os.amperecomputing.com>
4349
4350 PR tree-optimization/94234
4351 * genmatch.c (dt_simplify::gen_1): Emit check on final simplification
4352 result when "!" is specified on toplevel output expr.
4353 * match.pd ((A * C) +- (B * C) -> (A +- B) * C): Allow folding on expr
4354 with multi-use operands if final result is a simple gimple value.
4355
4356 2020-09-14 Sergei Trofimovich <siarheit@google.com>
4357
4358 * doc/invoke.texi: fix '-fprofile-reproducibility' option
4359 spelling in manual.
4360
4361 2020-09-14 Jose E. Marchesi <jose.marchesi@oracle.com>
4362
4363 * config/bpf/bpf.md ("nop"): Re-define as `ja 0'.
4364
4365 2020-09-14 Eric Botcazou <ebotcazou@adacore.com>
4366
4367 * cgraphunit.c (cgraph_node::expand_thunk): Make sure to set
4368 cfun->tail_call_marked when forcing a tail call.
4369 * function.c (assign_parm_setup_reg): Always use a register to
4370 load a parameter passed by reference if cfun->tail_call_marked.
4371
4372 2020-09-14 Pat Haugen <pthaugen@linux.ibm.com>
4373
4374 * config/rs6000/power10.md (power10-mffgpr, power10-mftgpr): Rename to
4375 power10-mtvsr/power10-mfvsr.
4376 * config/rs6000/power6.md (X2F_power6, power6-mftgpr, power6-mffgpr):
4377 Remove.
4378 * config/rs6000/power8.md (power8-mffgpr, power8-mftgpr): Rename to
4379 power8-mtvsr/power8-mfvsr.
4380 * config/rs6000/power9.md (power9-mffgpr, power9-mftgpr): Rename to
4381 power9-mtvsr/power9-mfvsr.
4382 * config/rs6000/rs6000.c (rs6000_adjust_cost): Remove Power6
4383 TYPE_MFFGPR cases.
4384 * config/rs6000/rs6000.md (mffgpr, mftgpr, zero_extendsi<mode>2,
4385 extendsi<mode>2, @signbit<mode>2_dm, lfiwax, lfiwzx, *movsi_internal1,
4386 movsi_from_sf, *movdi_from_sf_zero_ext, *mov<mode>_internal,
4387 movsd_hardfloat, movsf_from_si, *mov<mode>_hardfloat64, p8_mtvsrwz,
4388 p8_mtvsrd_df, p8_mtvsrd_sf, p8_mfvsrd_3_<mode>, *movdi_internal64,
4389 unpack<mode>_dm): Rename mffgpr/mftgpr to mtvsr/mfvsr.
4390 * config/rs6000/vsx.md (vsx_mov<mode>_64bit, vsx_extract_<mode>,
4391 vsx_extract_si, *vsx_extract_<mode>_p8): Likewise.
4392
4393 2020-09-14 Jakub Jelinek <jakub@redhat.com>
4394
4395 * config/arm/arm.opt (x_arm_arch_string, x_arm_cpu_string,
4396 x_arm_tune_string): Remove TargetSave entries.
4397 (march=, mcpu=, mtune=): Add Save keyword.
4398 * config/arm/arm.c (arm_option_save): Remove.
4399 (TARGET_OPTION_SAVE): Don't redefine.
4400 (arm_option_restore): Don't restore x_arm_*_string here.
4401
4402 2020-09-14 Jakub Jelinek <jakub@redhat.com>
4403
4404 * opt-read.awk: Also initialize extra_target_var_types array.
4405 * opth-gen.awk: Emit explicit_mask arrays to struct cl_optimization
4406 and cl_target_option. Adjust cl_optimization_save,
4407 cl_optimization_restore, cl_target_option_save and
4408 cl_target_option_restore declarations.
4409 * optc-save-gen.awk: Add opts_set argument to cl_optimization_save,
4410 cl_optimization_restore, cl_target_option_save and
4411 cl_target_option_restore functions and save or restore opts_set
4412 next to the opts values into or from explicit_mask arrays.
4413 In cl_target_option_eq and cl_optimization_option_eq compare
4414 explicit_mask arrays, in cl_target_option_hash and cl_optimization_hash
4415 hash them and in cl_target_option_stream_out,
4416 cl_target_option_stream_in, cl_optimization_stream_out and
4417 cl_optimization_stream_in stream them.
4418 * tree.h (build_optimization_node, build_target_option_node): Add
4419 opts_set argument.
4420 * tree.c (build_optimization_node): Add opts_set argument, pass it
4421 to cl_optimization_save.
4422 (build_target_option_node): Add opts_set argument, pass it to
4423 cl_target_option_save.
4424 * function.c (invoke_set_current_function_hook): Adjust
4425 cl_optimization_restore caller.
4426 * ipa-inline-transform.c (inline_call): Adjust cl_optimization_restore
4427 and build_optimization_node callers.
4428 * target.def (TARGET_OPTION_SAVE, TARGET_OPTION_RESTORE): Add opts_set
4429 argument.
4430 * target-globals.c (save_target_globals_default_opts): Adjust
4431 cl_optimization_restore callers.
4432 * toplev.c (process_options): Adjust build_optimization_node and
4433 cl_optimization_restore callers.
4434 (target_reinit): Adjust cl_optimization_restore caller.
4435 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
4436 Adjust build_optimization_node and cl_optimization_restore callers.
4437 * doc/tm.texi: Updated.
4438 * config/aarch64/aarch64.c (aarch64_override_options): Adjust
4439 build_target_option_node caller.
4440 (aarch64_option_save, aarch64_option_restore): Add opts_set argument.
4441 (aarch64_set_current_function): Adjust cl_target_option_restore
4442 caller.
4443 (aarch64_option_valid_attribute_p): Adjust cl_target_option_save,
4444 cl_target_option_restore, cl_optimization_restore,
4445 build_optimization_node and build_target_option_node callers.
4446 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Adjust
4447 cl_target_option_restore and build_target_option_node callers.
4448 * config/arm/arm.c (arm_option_save, arm_option_restore): Add
4449 opts_set argument.
4450 (arm_option_override): Adjust cl_target_option_save,
4451 build_optimization_node and build_target_option_node callers.
4452 (arm_set_current_function): Adjust cl_target_option_restore caller.
4453 (arm_valid_target_attribute_tree): Adjust build_target_option_node
4454 caller.
4455 (add_attribute): Formatting fix.
4456 (arm_valid_target_attribute_p): Adjust cl_optimization_restore,
4457 cl_target_option_restore, arm_valid_target_attribute_tree and
4458 build_optimization_node callers.
4459 * config/arm/arm-c.c (arm_pragma_target_parse): Adjust
4460 cl_target_option_restore callers.
4461 * config/csky/csky.c (csky_option_override): Adjust
4462 build_target_option_node and cl_target_option_save callers.
4463 * config/gcn/gcn.c (gcn_fixup_accel_lto_options): Adjust
4464 build_optimization_node and cl_optimization_restore callers.
4465 * config/i386/i386-builtins.c (get_builtin_code_for_version):
4466 Adjust cl_target_option_save and cl_target_option_restore
4467 callers.
4468 * config/i386/i386-c.c (ix86_pragma_target_parse): Adjust
4469 build_target_option_node and cl_target_option_restore callers.
4470 * config/i386/i386-options.c (ix86_function_specific_save,
4471 ix86_function_specific_restore): Add opts_set arguments.
4472 (ix86_valid_target_attribute_tree): Adjust build_target_option_node
4473 caller.
4474 (ix86_valid_target_attribute_p): Adjust build_optimization_node,
4475 cl_optimization_restore, cl_target_option_restore,
4476 ix86_valid_target_attribute_tree and build_optimization_node callers.
4477 (ix86_option_override_internal): Adjust build_target_option_node
4478 caller.
4479 (ix86_reset_previous_fndecl, ix86_set_current_function): Adjust
4480 cl_target_option_restore callers.
4481 * config/i386/i386-options.h (ix86_function_specific_save,
4482 ix86_function_specific_restore): Add opts_set argument.
4483 * config/nios2/nios2.c (nios2_option_override): Adjust
4484 build_target_option_node caller.
4485 (nios2_option_save, nios2_option_restore): Add opts_set argument.
4486 (nios2_valid_target_attribute_tree): Adjust build_target_option_node
4487 caller.
4488 (nios2_valid_target_attribute_p): Adjust build_optimization_node,
4489 cl_optimization_restore, cl_target_option_save and
4490 cl_target_option_restore callers.
4491 (nios2_set_current_function, nios2_pragma_target_parse): Adjust
4492 cl_target_option_restore callers.
4493 * config/pru/pru.c (pru_option_override): Adjust
4494 build_target_option_node caller.
4495 (pru_set_current_function): Adjust cl_target_option_restore
4496 callers.
4497 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust
4498 cl_target_option_save caller.
4499 (rs6000_option_override_internal): Adjust build_target_option_node
4500 caller.
4501 (rs6000_valid_attribute_p): Adjust build_optimization_node,
4502 cl_optimization_restore, cl_target_option_save,
4503 cl_target_option_restore and build_target_option_node callers.
4504 (rs6000_pragma_target_parse): Adjust cl_target_option_restore and
4505 build_target_option_node callers.
4506 (rs6000_activate_target_options): Adjust cl_target_option_restore
4507 callers.
4508 (rs6000_function_specific_save, rs6000_function_specific_restore):
4509 Add opts_set argument.
4510 * config/s390/s390.c (s390_function_specific_restore): Likewise.
4511 (s390_option_override_internal): Adjust s390_function_specific_restore
4512 caller.
4513 (s390_option_override, s390_valid_target_attribute_tree): Adjust
4514 build_target_option_node caller.
4515 (s390_valid_target_attribute_p): Adjust build_optimization_node,
4516 cl_optimization_restore and cl_target_option_restore callers.
4517 (s390_activate_target_options): Adjust cl_target_option_restore
4518 caller.
4519 * config/s390/s390-c.c (s390_cpu_cpp_builtins): Adjust
4520 cl_target_option_save caller.
4521 (s390_pragma_target_parse): Adjust build_target_option_node and
4522 cl_target_option_restore callers.
4523
4524 2020-09-13 Roger Sayle <roger@nextmovesoftware.com>
4525
4526 * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
4527 Provide accurate costs for DImode shifts of integer constants.
4528
4529 2020-09-12 Roger Sayle <roger@nextmovesoftware.com>
4530 John David Anglin <danglin@gcc.gnu.org>
4531
4532 * config/pa/pa.md (shrpsi4_1, shrpsi4_2): New define_insns split
4533 out from previous shrpsi4 providing two commutitive variants using
4534 plus_xor_ior_operator as a predicate.
4535 (shrpdi4_1, shrpdi4_2, shrpdi_3, shrpdi_4): Likewise DImode versions
4536 where _1 and _2 take register shifts, and _3 and _4 for integers.
4537 (rotlsi3_internal): Name this anonymous instruction.
4538 (rotrdi3): New DImode insn copied from rotrsi3.
4539 (rotldi3): New DImode expander copied from rotlsi3.
4540 (rotldi4_internal): New DImode insn copied from rotsi3_internal.
4541
4542 2020-09-11 Michael Meissner <meissner@linux.ibm.com>
4543
4544 * config/rs6000/rs6000.c (rs6000_maybe_emit_maxc_minc): Rename
4545 from rs6000_emit_p9_fp_minmax. Change return type to bool. Add
4546 comments to document NaN/signed zero behavior.
4547 (rs6000_maybe_emit_fp_cmove): Rename from rs6000_emit_p9_fp_cmove.
4548 (have_compare_and_set_mask): New helper function.
4549 (rs6000_emit_cmove): Update calls to new names and the new helper
4550 function.
4551
4552 2020-09-11 Nathan Sidwell <nathan@acm.org>
4553
4554 * config/i386/sse.md (mov<mode>): Fix operand indices.
4555
4556 2020-09-11 Martin Sebor <msebor@redhat.com>
4557
4558 PR middle-end/96903
4559 * builtins.c (compute_objsize): Remove incorrect offset adjustment.
4560 (compute_objsize): Adjust offset range here instead.
4561
4562 2020-09-11 Richard Biener <rguenther@suse.de>
4563
4564 PR tree-optimization/97020
4565 * tree-vect-slp.c (vect_slp_analyze_operations): Apply
4566 SLP costs when doing loop vectorization.
4567
4568 2020-09-11 Tom de Vries <tdevries@suse.de>
4569
4570 PR target/96964
4571 * config/nvptx/nvptx.md (define_expand "atomic_test_and_set"): New
4572 expansion.
4573
4574 2020-09-11 Andrew Stubbs <ams@codesourcery.com>
4575
4576 * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align TImode registers.
4577 * config/gcn/gcn.md: Assert that TImode registers do not early clobber.
4578
4579 2020-09-11 Richard Biener <rguenther@suse.de>
4580
4581 * tree-vectorizer.h (_slp_instance::location): New method.
4582 (vect_schedule_slp): Adjust prototype.
4583 * tree-vectorizer.c (vec_info::remove_stmt): Adjust
4584 the BB region begin if we removed the stmt it points to.
4585 * tree-vect-loop.c (vect_transform_loop): Adjust.
4586 * tree-vect-slp.c (_slp_instance::location): Implement.
4587 (vect_analyze_slp_instance): For BB vectorization set
4588 vect_location to that of the instance.
4589 (vect_slp_analyze_operations): Likewise.
4590 (vect_bb_vectorization_profitable_p): Remove wrapper.
4591 (vect_slp_analyze_bb_1): Remove cost check here.
4592 (vect_slp_region): Cost check and code generate subgraphs separately,
4593 report optimized locations and missed optimizations due to
4594 profitability for each of them.
4595 (vect_schedule_slp): Get the vector of SLP graph entries to
4596 vectorize as argument.
4597
4598 2020-09-11 Richard Biener <rguenther@suse.de>
4599
4600 PR tree-optimization/97013
4601 * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove duplicate dumping.
4602
4603 2020-09-11 Richard Biener <rguenther@suse.de>
4604
4605 * tree-vect-slp.c (vect_build_slp_tree_1): Check vector
4606 types for all lanes are compatible.
4607 (vect_analyze_slp_instance): Appropriately check for stores.
4608 (vect_schedule_slp): Likewise.
4609
4610 2020-09-11 Tom de Vries <tdevries@suse.de>
4611
4612 * config/nvptx/nvptx.c (nvptx_assemble_value): Fix undefined
4613 behaviour.
4614
4615 2020-09-11 Tom de Vries <tdevries@suse.de>
4616
4617 * config/nvptx/nvptx.c (nvptx_assemble_value): Handle negative
4618 __int128.
4619
4620 2020-09-11 Aaron Sawdey <acsawdey@linux.ibm.com>
4621
4622 * config/rs6000/rs6000.c (rs6000_option_override_internal):
4623 Change default.
4624
4625 2020-09-10 Michael Meissner <meissner@linux.ibm.com>
4626
4627 * config/rs6000/rs6000-protos.h (rs6000_emit_cmove): Change return
4628 type to bool.
4629 (rs6000_emit_int_cmove): Change return type to bool.
4630 * config/rs6000/rs6000.c (rs6000_emit_cmove): Change return type
4631 to bool.
4632 (rs6000_emit_int_cmove): Change return type to bool.
4633
4634 2020-09-10 Tom de Vries <tdevries@suse.de>
4635
4636 PR target/97004
4637 * config/nvptx/nvptx.c (nvptx_assemble_value): Handle shift by
4638 number of bits in shift operand.
4639
4640 2020-09-10 Jakub Jelinek <jakub@redhat.com>
4641
4642 * lto-streamer-out.c (collect_block_tree_leafs): Recurse on
4643 root rather than BLOCK_SUBBLOCKS (root).
4644
4645 2020-09-10 Alex Coplan <alex.coplan@arm.com>
4646
4647 * config/aarch64/aarch64-cores.def: Add Cortex-R82.
4648 * config/aarch64/aarch64-tune.md: Regenerate.
4649 * doc/invoke.texi: Add entry for Cortex-R82.
4650
4651 2020-09-10 Alex Coplan <alex.coplan@arm.com>
4652
4653 * common/config/aarch64/aarch64-common.c
4654 (aarch64_get_extension_string_for_isa_flags): Don't force +crc for
4655 Armv8-R.
4656 * config/aarch64/aarch64-arches.def: Add entry for Armv8-R.
4657 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros): Set
4658 __ARM_ARCH_PROFILE correctly for Armv8-R.
4659 * config/aarch64/aarch64.h (AARCH64_FL_V8_R): New.
4660 (AARCH64_FL_FOR_ARCH8_R): New.
4661 (AARCH64_ISA_V8_R): New.
4662 * doc/invoke.texi: Add Armv8-R to architecture table.
4663
4664 2020-09-10 Jakub Jelinek <jakub@redhat.com>
4665
4666 * config/arm/arm.c (arm_override_options_after_change_1): Add opts_set
4667 argument, test opts_set->x_str_align_functions rather than
4668 opts->x_str_align_functions.
4669 (arm_override_options_after_change, arm_option_override_internal,
4670 arm_set_current_function): Adjust callers.
4671
4672 2020-09-10 Jakub Jelinek <jakub@redhat.com>
4673
4674 PR target/96939
4675 * config/arm/arm.c (arm_override_options_after_change): Don't call
4676 arm_configure_build_target here.
4677 (arm_set_current_function): Call arm_override_options_after_change_1
4678 at the end.
4679
4680 2020-09-10 Pat Haugen <pthaugen@linux.ibm.com>
4681
4682 * config/rs6000/rs6000.md
4683 (lfiwzx, floatunssi<mode>2_lfiwzx, p8_mtvsrwz, p8_mtvsrd_sf): Fix insn
4684 type.
4685 * config/rs6000/vsx.md
4686 (vsx_concat_<mode>, vsx_splat_<mode>_reg, vsx_splat_v4sf): Likewise.
4687
4688 2020-09-10 Jonathan Yong <10walls@gmail.com>
4689
4690 * config.host: Adjust plugin name for Windows.
4691
4692 2020-09-10 Tom de Vries <tdevries@suse.de>
4693
4694 PR tree-optimization/97000
4695 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): Don't clear
4696 flag for IFN_UNIQUE.
4697
4698 2020-09-10 Jakub Jelinek <jakub@redhat.com>
4699
4700 PR debug/93865
4701 * lto-streamer.h (struct output_block): Add emit_pwd member.
4702 * lto-streamer-out.c: Include toplev.h.
4703 (clear_line_info): Set emit_pwd.
4704 (lto_output_location_1): Encode the ob->current_file != xloc.file
4705 bit directly into the location number. If changing file, emit
4706 additionally a bit whether pwd is emitted and emit it before the
4707 first relative pathname since clear_line_info.
4708 (output_function, output_constructor): Don't call clear_line_info
4709 here.
4710 * lto-streamer-in.c (struct string_pair_map): New type.
4711 (struct string_pair_map_hasher): New type.
4712 (string_pair_map_hasher::hash): New method.
4713 (string_pair_map_hasher::equal): New method.
4714 (path_name_pair_hash_table, string_pair_map_allocator): New variables.
4715 (relative_path_prefix, canon_relative_path_prefix,
4716 canon_relative_file_name): New functions.
4717 (canon_file_name): Add relative_prefix argument, if non-NULL
4718 and string is a relative path, return canon_relative_file_name.
4719 (lto_location_cache::input_location_and_block): Decode file change
4720 bit from the location number. If changing file, unpack bit whether
4721 pwd is streamed and stream in pwd. Adjust canon_file_name caller.
4722 (lto_free_file_name_hash): Delete path_name_pair_hash_table
4723 and string_pair_map_allocator.
4724
4725 2020-09-10 Richard Biener <rguenther@suse.de>
4726
4727 PR tree-optimization/96043
4728 * tree-vectorizer.h (_slp_instance::cost_vec): New.
4729 (_slp_instance::subgraph_entries): Likewise.
4730 (BB_VINFO_TARGET_COST_DATA): Remove.
4731 * tree-vect-slp.c (vect_free_slp_instance): Free
4732 cost_vec and subgraph_entries.
4733 (vect_analyze_slp_instance): Initialize them.
4734 (vect_slp_analyze_operations): Defer passing costs to
4735 the target, instead record them in the SLP graph entry.
4736 (get_ultimate_leader): New helper for graph partitioning.
4737 (vect_bb_partition_graph_r): Likewise.
4738 (vect_bb_partition_graph): New function to partition the
4739 SLP graph into independently costable parts.
4740 (vect_bb_vectorization_profitable_p): Adjust to work on
4741 a subgraph.
4742 (vect_bb_vectorization_profitable_p): New wrapper,
4743 discarding non-profitable vectorization of subgraphs.
4744 (vect_slp_analyze_bb_1): Call vect_bb_partition_graph before
4745 costing.
4746
4747 2020-09-09 David Malcolm <dmalcolm@redhat.com>
4748
4749 PR analyzer/94355
4750 * doc/invoke.texi: Document -Wanalyzer-mismatching-deallocation.
4751
4752 2020-09-09 Segher Boessenkool <segher@kernel.crashing.org>
4753
4754 PR rtl-optimization/96475
4755 * bb-reorder.c (maybe_duplicate_computed_goto): Remove single_pred_p
4756 micro-optimization.
4757
4758 2020-09-09 Tom de Vries <tdevries@suse.de>
4759
4760 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Fix Wformat
4761 warning.
4762
4763 2020-09-09 Richard Biener <rguenther@suse.de>
4764
4765 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
4766 nothing when the permutation doesn't permute.
4767
4768 2020-09-09 Tom de Vries <tdevries@suse.de>
4769
4770 PR target/96991
4771 * config/nvptx/nvptx.c (write_fn_proto): Fix boolean type check.
4772
4773 2020-09-09 Richard Biener <rguenther@suse.de>
4774
4775 * tree-vect-stmts.c (vectorizable_comparison): Allow
4776 STMT_VINFO_LIVE_P stmts.
4777
4778 2020-09-09 Richard Biener <rguenther@suse.de>
4779
4780 * tree-vect-stmts.c (vectorizable_condition): Allow
4781 STMT_VINFO_LIVE_P stmts.
4782
4783 2020-09-09 Richard Biener <rguenther@suse.de>
4784
4785 PR tree-optimization/96978
4786 * tree-vect-stmts.c (vectorizable_condition): Do not
4787 look at STMT_VINFO_LIVE_P for BB vectorization.
4788 (vectorizable_comparison): Likewise.
4789
4790 2020-09-09 liuhongt <hongtao.liu@intel.com>
4791
4792 PR target/96955
4793 * config/i386/i386.md (get_thread_pointer<mode>): New
4794 expander.
4795
4796 2020-09-08 Julian Brown <julian@codesourcery.com>
4797
4798 * config/gcn/gcn-valu.md (scatter<mode>_insn_1offset_ds<exec_scatter>):
4799 Add waitcnt.
4800 * config/gcn/gcn.md (*mov<mode>_insn, *movti_insn): Add waitcnt to
4801 ds_write alternatives.
4802
4803 2020-09-08 Julian Brown <julian@codesourcery.com>
4804
4805 * config/gcn/mkoffload.c (process_asm): Initialise regcount. Update
4806 scanning for SGPR/VGPR usage for HSACO v3.
4807
4808 2020-09-08 Aldy Hernandez <aldyh@redhat.com>
4809
4810 PR tree-optimization/96967
4811 * tree-vrp.c (find_case_label_range): Cast label range to
4812 type of switch operand.
4813
4814 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4815
4816 * config/msp430/msp430.c (msp430_file_end): Fix jumbled
4817 HAVE_AS_MSPABI_ATTRIBUTE and HAVE_AS_GNU_ATTRIBUTE checks.
4818 * configure: Regenerate.
4819 * configure.ac: Use ".mspabi_attribute 4,2" to check for assembler
4820 support for this object attribute directive.
4821
4822 2020-09-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4823
4824 * common/config/msp430/msp430-common.c (msp430_handle_option): Remove
4825 OPT_mcpu_ handling.
4826 Set target_cpu value to new enum values when parsing certain -mmcu=
4827 values.
4828 * config/msp430/msp430-opts.h (enum msp430_cpu_types): New.
4829 * config/msp430/msp430.c (msp430_option_override): Handle new
4830 target_cpu enum values.
4831 Set target_cpu using extracted value for given MCU when -mcpu=
4832 option is not passed by the user.
4833 * config/msp430/msp430.opt: Handle -mcpu= values using enums.
4834
4835 2020-09-07 Richard Sandiford <richard.sandiford@arm.com>
4836
4837 PR rtl-optimization/96796
4838 * lra-constraints.c (in_class_p): Add a default-false
4839 allow_all_reload_class_changes_p parameter. Do not treat
4840 reload moves specially when the parameter is true.
4841 (get_reload_reg): Try to narrow the class of an existing OP_OUT
4842 reload if we're reloading a reload pseudo in a reload instruction.
4843
4844 2020-09-07 Andrea Corallo <andrea.corallo@arm.com>
4845
4846 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Revert
4847 dead-code removal introduced by 09fa6acd8d9 + add a comment to
4848 clarify.
4849
4850 2020-09-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4851
4852 * doc/rtl.texi (subreg): Fix documentation to state there is a known
4853 number of undefined bits in regs and subregs of MODE_PARTIAL_INT modes.
4854
4855 2020-09-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4856
4857 * config/msp430/msp430.c (msp430_option_override): Don't set the
4858 ISA to 430 when the MCU is unrecognized.
4859
4860 2020-09-07 Iain Sandoe <iain@sandoe.co.uk>
4861
4862 * config/darwin.c (darwin_libc_has_function): Report sincos
4863 available from 10.9.
4864
4865 2020-09-07 Alex Coplan <alex.coplan@arm.com>
4866
4867 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): Delete.
4868 (*subs_mul_imm_<mode>): Delete.
4869 (*adds_<optab><mode>_multp2): Delete.
4870 (*subs_<optab><mode>_multp2): Delete.
4871 (*add_mul_imm_<mode>): Delete.
4872 (*add_<optab><ALLX:mode>_mult_<GPI:mode>): Delete.
4873 (*add_<optab><SHORT:mode>_mult_si_uxtw): Delete.
4874 (*add_<optab><mode>_multp2): Delete.
4875 (*add_<optab>si_multp2_uxtw): Delete.
4876 (*add_uxt<mode>_multp2): Delete.
4877 (*add_uxtsi_multp2_uxtw): Delete.
4878 (*sub_mul_imm_<mode>): Delete.
4879 (*sub_mul_imm_si_uxtw): Delete.
4880 (*sub_<optab><mode>_multp2): Delete.
4881 (*sub_<optab>si_multp2_uxtw): Delete.
4882 (*sub_uxt<mode>_multp2): Delete.
4883 (*sub_uxtsi_multp2_uxtw): Delete.
4884 (*neg_mul_imm_<mode>2): Delete.
4885 (*neg_mul_imm_si2_uxtw): Delete.
4886 * config/aarch64/predicates.md (aarch64_pwr_imm3): Delete.
4887 (aarch64_pwr_2_si): Delete.
4888 (aarch64_pwr_2_di): Delete.
4889
4890 2020-09-07 Alex Coplan <alex.coplan@arm.com>
4891
4892 * config/aarch64/aarch64.md
4893 (*adds_<optab><ALLX:mode>_<GPI:mode>): Ensure extended operand
4894 agrees with width of extension specifier.
4895 (*subs_<optab><ALLX:mode>_<GPI:mode>): Likewise.
4896 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
4897 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
4898 (*add_<optab><ALLX:mode>_<GPI:mode>): Likewise.
4899 (*add_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
4900 (*add_uxt<mode>_shift2): Likewise.
4901 (*sub_<optab><ALLX:mode>_<GPI:mode>): Likewise.
4902 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
4903 (*sub_uxt<mode>_shift2): Likewise.
4904 (*cmp_swp_<optab><ALLX:mode>_reg<GPI:mode>): Likewise.
4905 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Likewise.
4906
4907 2020-09-07 Richard Biener <rguenther@suse.de>
4908
4909 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
4910 stmts we start SLP analysis from, failure and splitting.
4911 (vect_schedule_slp): Dump SLP graph entry and root stmt
4912 we are about to emit code for.
4913
4914 2020-09-07 Martin Storsjö <martin@martin.st>
4915
4916 * dwarf2out.c (file_name_acquire): Make a strchr return value
4917 pointer to const.
4918
4919 2020-09-07 Jakub Jelinek <jakub@redhat.com>
4920
4921 PR debug/94235
4922 * lto-streamer-out.c (output_cfg): Also stream goto_locus for edges.
4923 Use bp_pack_var_len_unsigned instead of streamer_write_uhwi to stream
4924 e->dest->index and e->flags.
4925 (output_function): Call output_cfg before output_ssa_name, rather than
4926 after streaming all bbs.
4927 * lto-streamer-in.c (input_cfg): Stream in goto_locus for edges.
4928 Use bp_unpack_var_len_unsigned instead of streamer_read_uhwi to stream
4929 in dest_index and edge_flags.
4930
4931 2020-09-07 Richard Biener <rguenther@suse.de>
4932
4933 * tree-vectorizer.h (vectorizable_live_operation): Adjust.
4934 * tree-vect-loop.c (vectorizable_live_operation): Vectorize
4935 live lanes out of basic-block vectorization nodes.
4936 * tree-vect-slp.c (vect_bb_slp_mark_live_stmts): New function.
4937 (vect_slp_analyze_operations): Analyze live lanes and their
4938 vectorization possibility after the whole SLP graph is final.
4939 (vect_bb_slp_scalar_cost): Adjust for vectorized live lanes.
4940 * tree-vect-stmts.c (can_vectorize_live_stmts): Adjust.
4941 (vect_transform_stmt): Call can_vectorize_live_stmts also for
4942 basic-block vectorization.
4943
4944 2020-09-04 Richard Biener <rguenther@suse.de>
4945
4946 PR tree-optimization/96698
4947 PR tree-optimization/96920
4948 * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): Remove.
4949 (loop_vec_info::reduc_latch_slp_defs): Likewise.
4950 * tree-vect-stmts.c (vect_transform_stmt): Remove vectorized
4951 cycle PHI latch code.
4952 * tree-vect-loop.c (maybe_set_vectorized_backedge_value): New
4953 helper to set vectorized cycle PHI latch values.
4954 (vect_transform_loop): Walk over all PHIs again after
4955 vectorizing them, calling maybe_set_vectorized_backedge_value.
4956 Call maybe_set_vectorized_backedge_value for each vectorized
4957 stmt. Remove delayed update code.
4958 * tree-vect-slp.c (vect_analyze_slp_instance): Initialize
4959 SLP instance reduc_phis member.
4960 (vect_schedule_slp): Set vectorized cycle PHI latch values.
4961
4962 2020-09-04 Andrea Corallo <andrea.corallo@arm.com>
4963
4964 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Remove
4965 dead code as LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) is
4966 always verified.
4967
4968 2020-09-04 Christophe Lyon <christophe.lyon@linaro.org>
4969
4970 PR target/96769
4971 * config/arm/thumb1.md: Move movsi splitter for
4972 arm_disable_literal_pool after the other movsi splitters.
4973
4974 2020-09-04 Aldy Hernandez <aldyh@redhat.com>
4975
4976 * range-op.cc (range_operator::fold_range): Rename widest_irange
4977 to int_range_max.
4978 (operator_div::wi_fold): Same.
4979 (operator_lshift::op1_range): Same.
4980 (operator_rshift::op1_range): Same.
4981 (operator_cast::fold_range): Same.
4982 (operator_cast::op1_range): Same.
4983 (operator_bitwise_and::remove_impossible_ranges): Same.
4984 (operator_bitwise_and::op1_range): Same.
4985 (operator_abs::op1_range): Same.
4986 (range_cast): Same.
4987 (widest_irange_tests): Same.
4988 (range3_tests): Rename irange3 to int_range3.
4989 (int_range_max_tests): Rename from widest_irange_tests.
4990 Rename widest_irange to int_range_max.
4991 (operator_tests): Rename widest_irange to int_range_max.
4992 (range_tests): Same.
4993 * tree-vrp.c (find_case_label_range): Same.
4994 * value-range.cc (irange::irange_intersect): Same.
4995 (irange::invert): Same.
4996 * value-range.h: Same.
4997
4998 2020-09-04 Richard Biener <rguenther@suse.de>
4999
5000 PR tree-optimization/96931
5001 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): If
5002 there's a fallthru edge and no abnormal edge the call is
5003 no longer control-altering.
5004 (cleanup_control_flow_bb): Pass down the BB to
5005 cleanup_call_ctrl_altering_flag.
5006
5007 2020-09-04 Jakub Jelinek <jakub@redhat.com>
5008
5009 * lto-streamer.h (stream_input_location_now): Remove declaration.
5010 * lto-streamer-in.c (stream_input_location_now): Remove.
5011 (input_eh_region, input_struct_function_base): Use
5012 stream_input_location instead of stream_input_location_now.
5013
5014 2020-09-04 Jakub Jelinek <jakub@redhat.com>
5015
5016 * lto-streamer.h (struct output_block): Add reset_locus member.
5017 * lto-streamer-out.c (clear_line_info): Set reset_locus to true.
5018 (lto_output_location_1): If reset_locus, clear it and ensure
5019 current_{file,line,col} is different from xloc members.
5020
5021 2020-09-04 David Faust <david.faust@oracle.com>
5022
5023 * config/bpf/bpf.h (ASM_SPEC): Pass -mxbpf to gas, if specified.
5024 * config/bpf/bpf.c (bpf_output_call): Support indirect calls in xBPF.
5025
5026 2020-09-03 Martin Jambor <mjambor@suse.cz>
5027
5028 PR tree-optimization/96820
5029 * tree-sra.c (create_access): Disqualify candidates with accesses
5030 beyond the end of the original aggregate.
5031 (maybe_add_sra_candidate): Check that candidate type size fits
5032 signed uhwi for the sake of consistency.
5033
5034 2020-09-03 Will Schmidt <will_schmidt@vnet.ibm.com>
5035
5036 * config/rs6000/rs6000-call.c (rs6000_init_builtin): Update V2DI_type_node
5037 and unsigned_V2DI_type_node definitions.
5038
5039 2020-09-03 Jakub Jelinek <jakub@redhat.com>
5040
5041 PR c++/96901
5042 * tree.h (struct decl_tree_traits): New type.
5043 (decl_tree_map): New typedef.
5044
5045 2020-09-03 Jakub Jelinek <jakub@redhat.com>
5046
5047 PR lto/94311
5048 * gimple.h (gimple_location_ptr, gimple_phi_arg_location_ptr): New
5049 functions.
5050 * streamer-hooks.h (struct streamer_hooks): Add
5051 output_location_and_block callback. Fix up formatting for
5052 output_location.
5053 (stream_output_location_and_block): Define.
5054 * lto-streamer.h (class lto_location_cache): Fix comment typo. Add
5055 current_block member.
5056 (lto_location_cache::input_location_and_block): New method.
5057 (lto_location_cache::lto_location_cache): Initialize current_block.
5058 (lto_location_cache::cached_location): Add block member.
5059 (struct output_block): Add current_block member.
5060 (lto_output_location): Formatting fix.
5061 (lto_output_location_and_block): Declare.
5062 * lto-streamer.c (lto_streamer_hooks_init): Initialize
5063 streamer_hooks.output_location_and_block.
5064 * lto-streamer-in.c (lto_location_cache::cmp_loc): Also compare
5065 block members.
5066 (lto_location_cache::apply_location_cache): Handle blocks.
5067 (lto_location_cache::accept_location_cache,
5068 lto_location_cache::revert_location_cache): Fix up function comments.
5069 (lto_location_cache::input_location_and_block): New method.
5070 (lto_location_cache::input_location): Implement using
5071 input_location_and_block.
5072 (input_function): Invoke apply_location_cache after streaming in all
5073 bbs.
5074 * lto-streamer-out.c (clear_line_info): Set current_block.
5075 (lto_output_location_1): New function, moved from lto_output_location,
5076 added block handling.
5077 (lto_output_location): Implement using lto_output_location_1.
5078 (lto_output_location_and_block): New function.
5079 * gimple-streamer-in.c (input_phi): Use input_location_and_block
5080 to input and cache both location and block.
5081 (input_gimple_stmt): Likewise.
5082 * gimple-streamer-out.c (output_phi): Use
5083 stream_output_location_and_block.
5084 (output_gimple_stmt): Likewise.
5085
5086 2020-09-03 Richard Biener <rguenther@suse.de>
5087
5088 * tree-vect-generic.c (tree_vec_extract): Remove odd
5089 special-casing of boolean vectors.
5090 * fold-const.c (fold_ternary_loc): Handle boolean vector
5091 type BIT_FIELD_REFs.
5092
5093 2020-09-03 Hongtao Liu <hongtao.liu@intel.com>
5094
5095 PR target/87767
5096 * config/i386/i386-features.c
5097 (replace_constant_pool_with_broadcast): New function.
5098 (constant_pool_broadcast): Ditto.
5099 (class pass_constant_pool_broadcast): New pass.
5100 (make_pass_constant_pool_broadcast): Ditto.
5101 (remove_partial_avx_dependency): Call
5102 replace_constant_pool_with_broadcast under TARGET_AVX512F, it
5103 would save compile time when both pass rpad and cpb are
5104 available.
5105 (remove_partial_avx_dependency_gate): New function.
5106 (class pass_remove_partial_avx_dependency::gate): Call
5107 remove_partial_avx_dependency_gate.
5108 * config/i386/i386-passes.def: Insert new pass after combine.
5109 * config/i386/i386-protos.h
5110 (make_pass_constant_pool_broadcast): Declare.
5111 * config/i386/sse.md (*avx512dq_mul<mode>3<mask_name>_bcst):
5112 New define_insn.
5113 (*avx512f_mul<mode>3<mask_name>_bcst): Ditto.
5114 * config/i386/avx512fintrin.h (_mm512_set1_ps,
5115 _mm512_set1_pd,_mm512_set1_epi32, _mm512_set1_epi64): Adjusted.
5116
5117 2020-09-02 Jonathan Wakely <jwakely@redhat.com>
5118
5119 PR c++/60304
5120 * ginclude/stdbool.h (bool, false, true): Never define for C++.
5121
5122 2020-09-02 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5123
5124 * doc/invoke.texi (MSP430 options): Fix -mlarge description to
5125 indicate size_t is a 20-bit type.
5126
5127 2020-09-02 Roger Sayle <roger@nextmovesoftware.com>
5128
5129 * config/pa/pa.c (hppa_rtx_costs) [ASHIFT, ASHIFTRT, LSHIFTRT]:
5130 Provide accurate costs for shifts of integer constants.
5131
5132 2020-09-02 Jose E. Marchesi <jose.marchesi@oracle.com>
5133
5134 * config/bpf/bpf.c (bpf_asm_named_section): Delete.
5135 (TARGET_ASM_NAMED_SECTION): Likewise.
5136
5137 2020-09-02 Jose E. Marchesi <jemarch@gnu.org>
5138
5139 * config.gcc: Use elfos.h in bpf-*-* targets.
5140 * config/bpf/bpf.h (MAX_OFILE_ALIGNMENT): Remove definition.
5141 (COMMON_ASM_OP): Likewise.
5142 (INIT_SECTION_ASM_OP): Likewise.
5143 (FINI_SECTION_ASM_OP): Likewise.
5144 (ASM_OUTPUT_SKIP): Likewise.
5145 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5146 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
5147
5148 2020-09-01 Martin Sebor <msebor@redhat.com>
5149
5150 * builtins.c (compute_objsize): Only replace the upper bound
5151 of a POINTER_PLUS offset when it's less than the lower bound.
5152
5153 2020-09-01 Peter Bergner <bergner@linux.ibm.com>
5154
5155 PR target/96808
5156 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Do not
5157 reuse accumulator memory reference for source and destination accesses.
5158
5159 2020-09-01 Martin Liska <mliska@suse.cz>
5160
5161 * cfgrtl.c (rtl_create_basic_block): Use default value for
5162 growth vector function.
5163 * gimple.c (gimple_set_bb): Likewise.
5164 * symbol-summary.h: Likewise.
5165 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5166 (build_gimple_cfg): Likewise.
5167 (create_bb): Likewise.
5168 (move_block_to_fn): Likewise.
5169
5170 2020-09-01 Martin Liska <mliska@suse.cz>
5171
5172 * vec.h (vec_safe_grow): Change default of exact to false.
5173 (vec_safe_grow_cleared): Likewise.
5174
5175 2020-09-01 Roger Sayle <roger@nextmovesoftware.com>
5176
5177 PR middle-end/90597
5178 * targhooks.c (default_vector_alignment): Return at least the
5179 GET_MODE_ALIGNMENT for the type's mode.
5180
5181 2020-09-01 Richard Biener <rguenther@suse.de>
5182
5183 PR rtl-optimization/96812
5184 * tree-ssa-address.c (copy_ref_info): Also copy dependence info.
5185 * cfgrtl.h (duplicate_insn_chain): Adjust prototype.
5186 * cfgrtl.c (duplicate_insn_chain): Remap dependence info
5187 if requested.
5188 (cfg_layout_duplicate_bb): Make sure we remap dependence info.
5189 * modulo-sched.c (duplicate_insns_of_cycles): Remap dependence
5190 info.
5191 (generate_prolog_epilog): Adjust.
5192 * config/c6x/c6x.c (hwloop_optimize): Remap dependence info.
5193
5194 2020-09-01 Kewen Lin <linkw@gcc.gnu.org>
5195
5196 * doc/sourcebuild.texi (has_arch_pwr5, has_arch_pwr6, has_arch_pwr7,
5197 has_arch_pwr8, has_arch_pwr9): Document.
5198
5199 2020-08-31 Carl Love <cel@us.ibm.com>
5200
5201 PR target/85830
5202 * config/rs6000/altivec.h (vec_popcntb, vec_popcnth, vec_popcntw,
5203 vec_popcntd): Remove defines.
5204
5205 2020-08-31 Marek Polacek <polacek@redhat.com>
5206 Jason Merrill <jason@redhat.com>
5207
5208 PR c++/93529
5209 * tree.c (build_constructor_from_vec): New.
5210 * tree.h (build_constructor_from_vec): Declare.
5211
5212 2020-08-31 Aldy Hernandez <aldyh@redhat.com>
5213
5214 PR tree-optimization/96818
5215 * tree-vrp.c (find_case_label_range): Cast label range to
5216 type of switch operand.
5217
5218 2020-08-31 liuhongt <hongtao.liu@intel.com>
5219
5220 PR target/96551
5221 * config/i386/sse.md (vec_unpacku_float_hi_v16si): For vector
5222 compare to integer mask, don't use gen_rtx_LT, use
5223 ix86_expand_mask_vec_cmp instead.
5224 (vec_unpacku_float_hi_v16si): Ditto.
5225
5226 2020-08-31 Jakub Jelinek <jakub@redhat.com>
5227
5228 * tree-cfg.c (verify_gimple_switch): If the first non-default case
5229 label has CASE_HIGH, verify it has the same type as CASE_LOW.
5230
5231 2020-08-31 Feng Xue <fxue@os.amperecomputing.com>
5232
5233 PR ipa/96806
5234 * ipa-cp.c (decide_about_value): Use safe_add to avoid cost addition
5235 overflow.
5236
5237 2020-08-31 Jakub Jelinek <jakub@redhat.com>
5238
5239 PR middle-end/54201
5240 * varasm.c: Include alloc-pool.h.
5241 (output_constant_pool_contents): Emit desc->mark < 0 entries as
5242 aliases.
5243 (struct constant_descriptor_rtx_data): New type.
5244 (constant_descriptor_rtx_data_cmp): New function.
5245 (struct const_rtx_data_hasher): New type.
5246 (const_rtx_data_hasher::hash, const_rtx_data_hasher::equal): New
5247 methods.
5248 (optimize_constant_pool): New function.
5249 (output_shared_constant_pool): Call it if TARGET_SUPPORTS_ALIASES.
5250
5251 2020-08-31 Kewen Lin <linkw@gcc.gnu.org>
5252
5253 * doc/sourcebuild.texi (vect_len_load_store,
5254 vect_partial_vectors_usage_1, vect_partial_vectors_usage_2,
5255 vect_partial_vectors): Document.
5256
5257 2020-08-30 Martin Sebor <msebor@redhat.com>
5258
5259 * builtins.c (access_ref::access_ref): Call get_size_range instead
5260 of get_range.
5261
5262 2020-08-30 Jakub Jelinek <jakub@redhat.com>
5263
5264 * config/i386/sse.md (ssse3_pshufbv8qi): Use gen_int_mode instead of
5265 GEN_INT, and ix86_build_const_vector instead of gen_rtvec and
5266 gen_rtx_CONT_VECTOR.
5267
5268 2020-08-29 Bill Schmidt <wschmidt@linux.ibm.com>
5269
5270 * config/rs6000/rs6000-builtin.def (MASK_FOR_STORE): Remove.
5271 * config/rs6000/rs6000-call.c (rs6000_expand_builtin): Remove
5272 all logic for ALTIVEC_BUILTIN_MASK_FOR_STORE.
5273
5274 2020-08-28 Martin Sebor <msebor@redhat.com>
5275
5276 * attribs.c (init_attr_rdwr_indices): Use global access_mode.
5277 * attribs.h (struct attr_access): Same.
5278 * builtins.c (fold_builtin_strlen): Add argument.
5279 (compute_objsize): Declare.
5280 (get_range): Declare.
5281 (check_read_access): New function.
5282 (access_ref::access_ref): Define ctor.
5283 (warn_string_no_nul): Add arguments. Handle -Wstrintop-overread.
5284 (check_nul_terminated_array): Handle source strings of different
5285 ranges of sizes.
5286 (expand_builtin_strlen): Remove warning code, call check_read_access
5287 instead. Declare locals closer to their initialization.
5288 (expand_builtin_strnlen): Same.
5289 (maybe_warn_for_bound): New function.
5290 (warn_for_access): Remove argument. Handle -Wstrintop-overread.
5291 (inform_access): Change argument type.
5292 (get_size_range): New function.
5293 (check_access): Remove unused arguments. Add new arguments. Handle
5294 -Wstrintop-overread. Move warning code to helpers and call them.
5295 Call check_nul_terminated_array.
5296 (check_memop_access): Remove unnecessary and provide additional
5297 arguments in calls.
5298 (expand_builtin_memchr): Call check_read_access.
5299 (expand_builtin_strcat): Remove unnecessary and provide additional
5300 arguments in calls.
5301 (expand_builtin_strcpy): Same.
5302 (expand_builtin_strcpy_args): Same. Avoid testing no-warning bit.
5303 (expand_builtin_stpcpy_1): Remove unnecessary and provide additional
5304 arguments in calls.
5305 (expand_builtin_stpncpy): Same.
5306 (check_strncat_sizes): Same.
5307 (expand_builtin_strncat): Remove unnecessary and provide additional
5308 arguments in calls. Adjust comments.
5309 (expand_builtin_strncpy): Remove unnecessary and provide additional
5310 arguments in calls.
5311 (expand_builtin_memcmp): Remove warning code. Call check_access.
5312 (expand_builtin_strcmp): Call check_access instead of
5313 check_nul_terminated_array.
5314 (expand_builtin_strncmp): Handle -Wstrintop-overread.
5315 (expand_builtin_fork_or_exec): Call check_access instead of
5316 check_nul_terminated_array.
5317 (expand_builtin): Same.
5318 (fold_builtin_1): Pass additional argument.
5319 (fold_builtin_n): Same.
5320 (fold_builtin_strpbrk): Remove calls to check_nul_terminated_array.
5321 (expand_builtin_memory_chk): Add comments.
5322 (maybe_emit_chk_warning): Remove unnecessary and provide additional
5323 arguments in calls.
5324 (maybe_emit_sprintf_chk_warning): Same. Adjust comments.
5325 * builtins.h (warn_string_no_nul): Add arguments.
5326 (struct access_ref): Add member and ctor argument.
5327 (struct access_data): Add members and ctor.
5328 (check_access): Adjust signature.
5329 * calls.c (maybe_warn_nonstring_arg): Return an indication of
5330 whether a warning was issued. Issue -Wstrintop-overread instead
5331 of -Wstringop-overflow.
5332 (append_attrname): Adjust to naming changes.
5333 (maybe_warn_rdwr_sizes): Same. Remove unnecessary and provide
5334 additional arguments in calls.
5335 * calls.h (maybe_warn_nonstring_arg): Return bool.
5336 * doc/invoke.texi (-Wstringop-overread): Document new option.
5337 * gimple-fold.c (gimple_fold_builtin_strcpy): Provide an additional
5338 argument in call.
5339 (gimple_fold_builtin_stpcpy): Same.
5340 * tree-ssa-uninit.c (maybe_warn_pass_by_reference): Adjust to naming
5341 changes.
5342 * tree.h (enum access_mode): New type.
5343
5344 2020-08-28 Bill Schmidt <wschmidt@linux.ibm.com>
5345
5346 * config/rs6000/rs6000.c (rs6000_call_aix): Remove test for r12.
5347 (rs6000_sibcall_aix): Likewise.
5348
5349 2020-08-28 Andrew Stubbs <ams@codesourcery.com>
5350
5351 * config/gcn/gcn-tree.c (gcn_goacc_get_worker_red_decl): Add "true"
5352 parameter to vec_safe_grow_cleared.
5353
5354 2020-08-28 Martin Sebor <msebor@redhat.com>
5355
5356 * ggc-common.c (gt_pch_save): Add argument to a call.
5357
5358 2020-08-28 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
5359
5360 PR target/96357
5361 * config/aarch64/aarch64-sve.md
5362 (cond_sub<mode>_relaxed_const): Updated and renamed from
5363 cond_sub<mode>_any_const pattern.
5364 (cond_sub<mode>_strict_const): New pattern.
5365
5366 2020-08-28 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
5367
5368 * doc/rtl.texi: Fix typo.
5369
5370 2020-08-28 Uros Bizjak <ubizjak@gmail.com>
5371
5372 PR target/96744
5373 * config/i386/i386-expand.c (split_double_mode): Also handle
5374 E_P2HImode and E_P2QImode.
5375 * config/i386/sse.md (MASK_DWI): New define_mode_iterator.
5376 (mov<mode>): New expander for P2HI,P2QI.
5377 (*mov<mode>_internal): New define_insn_and_split to split
5378 movement of P2QI/P2HI to 2 movqi/movhi patterns after reload.
5379
5380 2020-08-28 liuhongt <hongtao.liu@intel.com>
5381
5382 * common/config/i386/i386-common.c (ix86_handle_option): Set
5383 AVX512DQ when AVX512VP2INTERSECT exists.
5384
5385 2020-08-27 Jakub Jelinek <jakub@redhat.com>
5386
5387 PR target/65146
5388 * config/i386/i386.c (iamcu_alignment): Don't decrease alignment
5389 for TYPE_ATOMIC types.
5390 (ix86_local_alignment): Likewise.
5391 (ix86_minimum_alignment): Likewise.
5392 (x86_field_alignment): Likewise, and emit a -Wpsabi diagnostic
5393 for it.
5394
5395 2020-08-27 Bill Schmidt <wschmidt@linux.ibm.com>
5396
5397 PR target/96787
5398 * config/rs6000/rs6000.c (rs6000_sibcall_aix): Support
5399 indirect call for ELFv2.
5400
5401 2020-08-27 Richard Biener <rguenther@suse.de>
5402
5403 PR tree-optimization/96522
5404 * tree-ssa-address.c (copy_ref_info): Reset flow-sensitive
5405 info of the copied points-to. Transfer bigger alignment
5406 via the access type.
5407 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
5408 Reset all flow-sensitive info.
5409
5410 2020-08-27 Martin Liska <mliska@suse.cz>
5411
5412 * alias.c (init_alias_analysis): Set exact argument of a vector
5413 growth function to true.
5414 * calls.c (internal_arg_pointer_based_exp_scan): Likewise.
5415 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
5416 * cfgexpand.c (expand_asm_stmt): Likewise.
5417 * cfgrtl.c (rtl_create_basic_block): Likewise.
5418 * combine.c (combine_split_insns): Likewise.
5419 (combine_instructions): Likewise.
5420 * config/aarch64/aarch64-sve-builtins.cc (function_expander::add_output_operand): Likewise.
5421 (function_expander::add_input_operand): Likewise.
5422 (function_expander::add_integer_operand): Likewise.
5423 (function_expander::add_address_operand): Likewise.
5424 (function_expander::add_fixed_operand): Likewise.
5425 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
5426 * dwarf2cfi.c (update_row_reg_save): Likewise.
5427 * early-remat.c (early_remat::init_block_info): Likewise.
5428 (early_remat::finalize_candidate_indices): Likewise.
5429 * except.c (sjlj_build_landing_pads): Likewise.
5430 * final.c (compute_alignments): Likewise.
5431 (grow_label_align): Likewise.
5432 * function.c (temp_slots_at_level): Likewise.
5433 * fwprop.c (build_single_def_use_links): Likewise.
5434 (update_uses): Likewise.
5435 * gcc.c (insert_wrapper): Likewise.
5436 * genautomata.c (create_state_ainsn_table): Likewise.
5437 (add_vect): Likewise.
5438 (output_dead_lock_vect): Likewise.
5439 * genmatch.c (capture_info::capture_info): Likewise.
5440 (parser::finish_match_operand): Likewise.
5441 * genrecog.c (optimize_subroutine_group): Likewise.
5442 (merge_pattern_info::merge_pattern_info): Likewise.
5443 (merge_into_decision): Likewise.
5444 (print_subroutine_start): Likewise.
5445 (main): Likewise.
5446 * gimple-loop-versioning.cc (loop_versioning::loop_versioning): Likewise.
5447 * gimple.c (gimple_set_bb): Likewise.
5448 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user): Likewise.
5449 * haifa-sched.c (sched_extend_luids): Likewise.
5450 (extend_h_i_d): Likewise.
5451 * insn-addr.h (insn_addresses_new): Likewise.
5452 * ipa-cp.c (gather_context_independent_values): Likewise.
5453 (find_more_contexts_for_caller_subset): Likewise.
5454 * ipa-devirt.c (final_warning_record::grow_type_warnings): Likewise.
5455 (ipa_odr_read_section): Likewise.
5456 * ipa-fnsummary.c (evaluate_properties_for_edge): Likewise.
5457 (ipa_fn_summary_t::duplicate): Likewise.
5458 (analyze_function_body): Likewise.
5459 (ipa_merge_fn_summary_after_inlining): Likewise.
5460 (read_ipa_call_summary): Likewise.
5461 * ipa-icf.c (sem_function::bb_dict_test): Likewise.
5462 * ipa-prop.c (ipa_alloc_node_params): Likewise.
5463 (parm_bb_aa_status_for_bb): Likewise.
5464 (ipa_compute_jump_functions_for_edge): Likewise.
5465 (ipa_analyze_node): Likewise.
5466 (update_jump_functions_after_inlining): Likewise.
5467 (ipa_read_edge_info): Likewise.
5468 (read_ipcp_transformation_info): Likewise.
5469 (ipcp_transform_function): Likewise.
5470 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
5471 * ipa-split.c (execute_split_functions): Likewise.
5472 * ira.c (find_moveable_pseudos): Likewise.
5473 * lower-subreg.c (decompose_multiword_subregs): Likewise.
5474 * lto-streamer-in.c (input_eh_regions): Likewise.
5475 (input_cfg): Likewise.
5476 (input_struct_function_base): Likewise.
5477 (input_function): Likewise.
5478 * modulo-sched.c (set_node_sched_params): Likewise.
5479 (extend_node_sched_params): Likewise.
5480 (schedule_reg_moves): Likewise.
5481 * omp-general.c (omp_construct_simd_compare): Likewise.
5482 * passes.c (pass_manager::create_pass_tab): Likewise.
5483 (enable_disable_pass): Likewise.
5484 * predict.c (determine_unlikely_bbs): Likewise.
5485 * profile.c (compute_branch_probabilities): Likewise.
5486 * read-rtl-function.c (function_reader::parse_block): Likewise.
5487 * read-rtl.c (rtx_reader::read_rtx_code): Likewise.
5488 * reg-stack.c (stack_regs_mentioned): Likewise.
5489 * regrename.c (regrename_init): Likewise.
5490 * rtlanal.c (T>::add_single_to_queue): Likewise.
5491 * sched-deps.c (init_deps_data_vector): Likewise.
5492 * sel-sched-ir.c (sel_extend_global_bb_info): Likewise.
5493 (extend_region_bb_info): Likewise.
5494 (extend_insn_data): Likewise.
5495 * symtab.c (symtab_node::create_reference): Likewise.
5496 * tracer.c (tail_duplicate): Likewise.
5497 * trans-mem.c (tm_region_init): Likewise.
5498 (get_bb_regions_instrumented): Likewise.
5499 * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
5500 (build_gimple_cfg): Likewise.
5501 (create_bb): Likewise.
5502 (move_block_to_fn): Likewise.
5503 * tree-complex.c (tree_lower_complex): Likewise.
5504 * tree-if-conv.c (predicate_rhs_code): Likewise.
5505 * tree-inline.c (copy_bb): Likewise.
5506 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
5507 (mark_phi_for_rewrite): Likewise.
5508 * tree-object-size.c (compute_builtin_object_size): Likewise.
5509 (init_object_sizes): Likewise.
5510 * tree-predcom.c (initialize_root_vars_store_elim_1): Likewise.
5511 (initialize_root_vars_store_elim_2): Likewise.
5512 (prepare_initializers_chain_store_elim): Likewise.
5513 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
5514 (multiplier_allowed_in_address_p): Likewise.
5515 * tree-ssa-coalesce.c (ssa_conflicts_new): Likewise.
5516 * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
5517 * tree-ssa-loop-ivopts.c (addr_offset_valid_p): Likewise.
5518 (get_address_cost_ainc): Likewise.
5519 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Likewise.
5520 * tree-ssa-pre.c (add_to_value): Likewise.
5521 (phi_translate_1): Likewise.
5522 (do_pre_regular_insertion): Likewise.
5523 (do_pre_partial_partial_insertion): Likewise.
5524 (init_pre): Likewise.
5525 * tree-ssa-propagate.c (ssa_prop_init): Likewise.
5526 (update_call_from_tree): Likewise.
5527 * tree-ssa-reassoc.c (optimize_range_tests_cmp_bitwise): Likewise.
5528 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5529 (vn_reference_lookup_pieces): Likewise.
5530 (eliminate_dom_walker::eliminate_push_avail): Likewise.
5531 * tree-ssa-strlen.c (set_strinfo): Likewise.
5532 (get_stridx_plus_constant): Likewise.
5533 (zero_length_string): Likewise.
5534 (find_equal_ptrs): Likewise.
5535 (printf_strlen_execute): Likewise.
5536 * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
5537 * tree-ssanames.c (make_ssa_name_fn): Likewise.
5538 * tree-streamer-in.c (streamer_read_tree_bitfields): Likewise.
5539 * tree-vect-loop.c (vect_record_loop_mask): Likewise.
5540 (vect_get_loop_mask): Likewise.
5541 (vect_record_loop_len): Likewise.
5542 (vect_get_loop_len): Likewise.
5543 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
5544 * tree-vect-slp.c (vect_slp_convert_to_external): Likewise.
5545 (vect_bb_slp_scalar_cost): Likewise.
5546 (vect_bb_vectorization_profitable_p): Likewise.
5547 (vectorizable_slp_permutation): Likewise.
5548 * tree-vect-stmts.c (vectorizable_call): Likewise.
5549 (vectorizable_simd_clone_call): Likewise.
5550 (scan_store_can_perm_p): Likewise.
5551 (vectorizable_store): Likewise.
5552 * expr.c: Likewise.
5553 * vec.c (test_safe_grow_cleared): Likewise.
5554 * vec.h (vec_safe_grow): Likewise.
5555 (vec_safe_grow_cleared): Likewise.
5556 (vl_ptr>::safe_grow): Likewise.
5557 (vl_ptr>::safe_grow_cleared): Likewise.
5558 * config/c6x/c6x.c (insn_set_clock): Likewise.
5559
5560 2020-08-27 Richard Biener <rguenther@suse.de>
5561
5562 * tree-pretty-print.c (dump_mem_ref): Handle TARGET_MEM_REFs.
5563 (dump_generic_node): Use dump_mem_ref also for TARGET_MEM_REF.
5564
5565 2020-08-27 Alex Coplan <alex.coplan@arm.com>
5566
5567 * lra-constraints.c (canonicalize_reload_addr): New.
5568 (curr_insn_transform): Use canonicalize_reload_addr to ensure we
5569 generate canonical RTL for an address reload.
5570
5571 2020-08-27 Zhiheng Xie <xiezhiheng@huawei.com>
5572
5573 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
5574 for rounding intrinsics.
5575
5576 2020-08-27 Zhiheng Xie <xiezhiheng@huawei.com>
5577
5578 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
5579 for min/max intrinsics.
5580
5581 2020-08-27 Richard Biener <rguenther@suse.de>
5582
5583 PR tree-optimization/96579
5584 * tree-ssa-reassoc.c (linearize_expr_tree): If we expand
5585 rhs via special ops make sure to swap operands.
5586
5587 2020-08-27 Richard Biener <rguenther@suse.de>
5588
5589 PR tree-optimization/96565
5590 * tree-ssa-dse.c (dse_classify_store): Remove defs with
5591 no uses from further processing.
5592
5593 2020-08-26 Göran Uddeborg <goeran@uddeborg.se>
5594
5595 PR gcov-profile/96285
5596 * common.opt, doc/invoke.texi: Clarify wording of
5597 -fprofile-exclude-files and adjust -fprofile-filter-files to
5598 match.
5599
5600 2020-08-26 H.J. Lu <hjl.tools@gmail.com>
5601
5602 PR target/96802
5603 * config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
5604 Reject target("no-general-regs-only").
5605
5606 2020-08-26 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5607
5608 * config/msp430/constraints.md (K): Change unused constraint to
5609 constraint to a const_int between 1 and 19.
5610 (P): New constraint.
5611 * config/msp430/msp430-protos.h (msp430x_logical_shift_right): Remove.
5612 (msp430_expand_shift): New.
5613 (msp430_output_asm_shift_insns): New.
5614 * config/msp430/msp430.c (msp430_rtx_costs): Remove shift costs.
5615 (CSH): Remove.
5616 (msp430_expand_helper): Remove hard-coded generation of some inline
5617 shift insns.
5618 (use_helper_for_const_shift): New.
5619 (msp430_expand_shift): New.
5620 (msp430_output_asm_shift_insns): New.
5621 (msp430_print_operand): Add new 'W' operand selector.
5622 (msp430x_logical_shift_right): Remove.
5623 * config/msp430/msp430.md (HPSI): New define_mode_iterator.
5624 (HDI): Likewise.
5625 (any_shift): New define_code_iterator.
5626 (shift_insn): New define_code_attr.
5627 Adjust unnamed insn patterns searched for by combine.
5628 (ashlhi3): Remove.
5629 (slli_1): Remove.
5630 (430x_shift_left): Remove.
5631 (slll_1): Remove.
5632 (slll_2): Remove.
5633 (ashlsi3): Remove.
5634 (ashldi3): Remove.
5635 (ashrhi3): Remove.
5636 (srai_1): Remove.
5637 (430x_arithmetic_shift_right): Remove.
5638 (srap_1): Remove.
5639 (srap_2): Remove.
5640 (sral_1): Remove.
5641 (sral_2): Remove.
5642 (ashrsi3): Remove.
5643 (ashrdi3): Remove.
5644 (lshrhi3): Remove.
5645 (srli_1): Remove.
5646 (430x_logical_shift_right): Remove.
5647 (srlp_1): Remove.
5648 (srll_1): Remove.
5649 (srll_2x): Remove.
5650 (lshrsi3): Remove.
5651 (lshrdi3): Remove.
5652 (<shift_insn><mode>3): New define_expand.
5653 (<shift_insn>hi3_430): New define_insn.
5654 (<shift_insn>si3_const): Likewise.
5655 (ashl<mode>3_430x): Likewise.
5656 (ashr<mode>3_430x): Likewise.
5657 (lshr<mode>3_430x): Likewise.
5658 (*bitbranch<mode>4_z): Replace renamed predicate msp430_bitpos with
5659 const_0_to_15_operand.
5660 * config/msp430/msp430.opt: New option -mmax-inline-shift=.
5661 * config/msp430/predicates.md (const_1_to_8_operand): New predicate.
5662 (const_0_to_15_operand): Rename msp430_bitpos predicate.
5663 (const_1_to_19_operand): New predicate.
5664 * doc/invoke.texi: Document -mmax-inline-shift=.
5665
5666 2020-08-26 Aldy Hernandez <aldyh@redhat.com>
5667
5668 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Abstract code out to...
5669 * tree-vrp.c (find_case_label_range): ...here. Rewrite for to use irange
5670 API.
5671 (simplify_stmt_for_jump_threading): Call find_case_label_range instead of
5672 duplicating the code in simplify_stmt_for_jump_threading.
5673 * tree-vrp.h (find_case_label_range): New prototype.
5674
5675 2020-08-26 Richard Biener <rguenther@suse.de>
5676
5677 PR tree-optimization/96698
5678 * tree-vectorizer.h (loop_vec_info::reduc_latch_defs): New.
5679 (loop_vec_info::reduc_latch_slp_defs): Likewise.
5680 * tree-vect-stmts.c (vect_transform_stmt): Only record
5681 stmts to update PHI latches from, perform the update ...
5682 * tree-vect-loop.c (vect_transform_loop): ... here after
5683 vectorizing those PHIs.
5684 (info_for_reduction): Properly handle non-reduction PHIs.
5685
5686 2020-08-26 Martin Liska <mliska@suse.cz>
5687
5688 * cgraphunit.c (process_symver_attribute): Match only symver
5689 TREE_PURPOSE.
5690
5691 2020-08-26 Richard Biener <rguenther@suse.de>
5692
5693 PR tree-optimization/96783
5694 * tree-vect-stmts.c (get_group_load_store_type): Use
5695 VMAT_ELEMENTWISE for negative strides when we cannot
5696 use VMAT_STRIDED_SLP.
5697
5698 2020-08-26 Martin Liska <mliska@suse.cz>
5699
5700 * doc/invoke.texi: Document how are pie and pic options merged.
5701
5702 2020-08-26 Zhiheng Xie <xiezhiheng@huawei.com>
5703
5704 * config/aarch64/aarch64-simd-builtins.def: Add proper FLAG
5705 for add/sub arithmetic intrinsics.
5706
5707 2020-08-26 Jakub Jelinek <jakub@redhat.com>
5708
5709 PR debug/96729
5710 * dwarf2out.c (dwarf2out_next_real_insn): Adjust function comment.
5711 (dwarf2out_var_location): Look for next_note only if next_real is
5712 non-NULL, in that case look for the first non-deleted
5713 NOTE_INSN_VAR_LOCATION between loc_note and next_real, if any.
5714
5715 2020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
5716
5717 * config/tilepro/gen-mul-tables.cc (main): Define IN_TARGET_CODE to 1
5718 in the target file.
5719
5720 2020-08-26 Martin Liska <mliska@suse.cz>
5721
5722 * cgraphunit.c (process_symver_attribute): Allow multiple
5723 symver attributes for one symbol.
5724 * doc/extend.texi: Document the change.
5725
5726 2020-08-25 H.J. Lu <hjl.tools@gmail.com>
5727
5728 PR target/95863
5729 * config/i386/i386.h (CTZ_DEFINED_VALUE_AT_ZERO): Return 0/2.
5730 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
5731
5732 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
5733
5734 PR middle-end/87256
5735 * config/pa/pa.c (hppa_rtx_costs_shadd_p): New helper function
5736 to check for coefficients supported by shNadd and shladd,l.
5737 (hppa_rtx_costs): Rewrite to avoid using estimates based upon
5738 FACTOR and enable recursing deeper into RTL expressions.
5739
5740 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
5741
5742 * config/pa/pa.md (ashldi3): Additionally, on !TARGET_64BIT
5743 generate a two instruction shd/zdep sequence when shifting
5744 registers by suitable constants.
5745 (shd_internal): New define_expand to provide gen_shd_internal.
5746
5747 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
5748
5749 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Rename
5750 __ARM_FEATURE_SVE_VECTOR_OPERATIONS to
5751 __ARM_FEATURE_SVE_VECTOR_OPERATORS.
5752
5753 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
5754
5755 * config/aarch64/aarch64-sve-builtins.cc (add_sve_type_attribute):
5756 Take the ACLE name of the type as a parameter and add it as fourth
5757 argument to the "SVE type" attribute.
5758 (register_builtin_types): Update call accordingly.
5759 (register_tuple_type): Likewise. Construct the name of the type
5760 earlier in order to do this.
5761 (get_arm_sve_vector_bits_attributes): New function.
5762 (handle_arm_sve_vector_bits_attribute): Report a more sensible
5763 error message if the attribute is applied to an SVE tuple type.
5764 Don't allow the attribute to be applied to an existing fixed-length
5765 SVE type. Mangle the new type as __SVE_VLS<type, vector-bits>.
5766 Add a dummy TYPE_DECL to the new type.
5767
5768 2020-08-25 Richard Sandiford <richard.sandiford@arm.com>
5769
5770 * config/aarch64/aarch64-sve-builtins.cc (DEF_SVE_TYPE): Add a
5771 leading "u" to each mangled name.
5772
5773 2020-08-25 Richard Biener <rguenther@suse.de>
5774
5775 PR tree-optimization/96548
5776 PR tree-optimization/96760
5777 * tree-ssa-loop-im.c (tree_ssa_lim): Recompute RPO after
5778 store-motion.
5779
5780 2020-08-25 Jakub Jelinek <jakub@redhat.com>
5781
5782 PR tree-optimization/96722
5783 * gimple.c (infer_nonnull_range): Formatting fix.
5784 (infer_nonnull_range_by_dereference): Return false for clobber stmts.
5785
5786 2020-08-25 Jakub Jelinek <jakub@redhat.com>
5787
5788 PR tree-optimization/96758
5789 * tree-ssa-strlen.c (handle_builtin_string_cmp): If both cstlen1
5790 and cstlen2 are set, set cmpsiz to their minimum, otherwise use the
5791 one that is set. If bound is used and smaller than cmpsiz, set cmpsiz
5792 to bound. If both cstlen1 and cstlen2 are set, perform the optimization.
5793
5794 2020-08-25 Martin Jambor <mjambor@suse.cz>
5795
5796 PR tree-optimization/96730
5797 * tree-sra.c (create_access): Disqualify any aggregate with negative
5798 offset access.
5799 (build_ref_for_model): Add assert that offset is non-negative.
5800
5801 2020-08-25 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
5802
5803 * rtl.def: Fix typo in comment.
5804
5805 2020-08-25 Roger Sayle <roger@nextmovesoftware.com>
5806
5807 PR tree-optimization/21137
5808 * fold-const.c (fold_binary_loc) [NE_EXPR/EQ_EXPR]: Call
5809 STRIP_NOPS when checking whether to simplify ((x>>C1)&C2) != 0.
5810
5811 2020-08-25 Andrew Pinski <apinski@marvell.com>
5812
5813 PR middle-end/64242
5814 * config/mips/mips.md (builtin_longjmp): Restore the frame
5815 pointer and stack pointer and gp.
5816
5817 2020-08-25 Richard Biener <rguenther@suse.de>
5818
5819 PR debug/96690
5820 * dwarf2out.c (reference_to_unused): Make FUNCTION_DECL
5821 processing more consistent with respect to
5822 symtab->global_info_ready.
5823 (tree_add_const_value_attribute): Unconditionally call
5824 rtl_for_decl_init to do all mangling early but throw
5825 away the result if early_dwarf.
5826
5827 2020-08-25 Hongtao Liu <hongtao.liu@intel.com>
5828
5829 PR target/96755
5830 * config/i386/sse.md: Correct the mode of NOT operands to
5831 SImode.
5832
5833 2020-08-25 Jakub Jelinek <jakub@redhat.com>
5834
5835 PR tree-optimization/96715
5836 * match.pd (copysign(x,-x) -> -x): New simplification.
5837
5838 2020-08-25 Jakub Jelinek <jakub@redhat.com>
5839
5840 PR target/95450
5841 * fold-const.c (native_interpret_real): For MODE_COMPOSITE_P modes
5842 punt if the to be returned REAL_CST does not encode to the bitwise
5843 same representation.
5844
5845 2020-08-24 Gerald Pfeifer <gerald@pfeifer.com>
5846
5847 * doc/install.texi (Configuration): Switch valgrind.com to https.
5848
5849 2020-08-24 Christophe Lyon <christophe.lyon@linaro.org>
5850
5851 PR target/94538
5852 PR target/94538
5853 * config/arm/thumb1.md: Disable set-constant splitter when
5854 TARGET_HAVE_MOVT.
5855 (thumb1_movsi_insn): Fix -mpure-code
5856 alternative.
5857
5858 2020-08-24 Martin Liska <mliska@suse.cz>
5859
5860 * tree-vect-data-refs.c (dr_group_sort_cmp): Work on
5861 data_ref_pair.
5862 (vect_analyze_data_ref_accesses): Work on groups.
5863 (vect_find_stmt_data_reference): Add group_id argument and fill
5864 up dataref_groups vector.
5865 * tree-vect-loop.c (vect_get_datarefs_in_loop): Pass new
5866 arguments.
5867 (vect_analyze_loop_2): Likewise.
5868 * tree-vect-slp.c (vect_slp_analyze_bb_1): Pass argument.
5869 (vect_slp_bb_region): Likewise.
5870 (vect_slp_region): Likewise.
5871 (vect_slp_bb):Work on the entire BB.
5872 * tree-vectorizer.h (vect_analyze_data_ref_accesses): Add new
5873 argument.
5874 (vect_find_stmt_data_reference): Likewise.
5875
5876 2020-08-24 Martin Liska <mliska@suse.cz>
5877
5878 PR tree-optimization/96597
5879 * tree-ssa-sccvn.c (vn_reference_lookup_call): Add missing
5880 initialization of ::punned.
5881 (vn_reference_insert): Use consistently false instead of 0.
5882 (vn_reference_insert_pieces): Likewise.
5883
5884 2020-08-24 Hans-Peter Nilsson <hp@axis.com>
5885
5886 PR target/93372
5887 * reorg.c (fill_slots_from_thread): Allow trial insns that clobber
5888 TARGET_FLAGS_REGNUM as delay-slot fillers.
5889
5890 2020-08-23 H.J. Lu <hjl.tools@gmail.com>
5891
5892 PR target/96744
5893 * config/i386/i386-options.c (IX86_ATTR_IX86_YES): New.
5894 (IX86_ATTR_IX86_NO): Likewise.
5895 (ix86_opt_type): Add ix86_opt_ix86_yes and ix86_opt_ix86_no.
5896 (ix86_valid_target_attribute_inner_p): Handle general-regs-only,
5897 ix86_opt_ix86_yes and ix86_opt_ix86_no.
5898 (ix86_option_override_internal): Check opts->x_ix86_target_flags
5899 instead of opts->x_ix86_target_flags.
5900 * doc/extend.texi: Document target("general-regs-only") function
5901 attribute.
5902
5903 2020-08-21 Richard Sandiford <richard.sandiford@arm.com>
5904
5905 * doc/extend.texi: Update links to Arm docs.
5906 * doc/invoke.texi: Likewise.
5907
5908 2020-08-21 Hongtao Liu <hongtao.liu@intel.com>
5909
5910 PR target/96262
5911 * config/i386/i386-expand.c
5912 (ix86_expand_vec_shift_qihi_constant): Refine.
5913
5914 2020-08-21 Alex Coplan <alex.coplan@arm.com>
5915
5916 PR jit/63854
5917 * gcc.c (set_static_spec): New.
5918 (set_static_spec_owned): New.
5919 (set_static_spec_shared): New.
5920 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Use
5921 set_static_spec_owned() to take ownership of lto_wrapper_file
5922 such that it gets freed in driver::finalize.
5923 (driver::maybe_run_linker): Use set_static_spec_shared() to
5924 ensure that we don't try and free() the static string "ld",
5925 also ensuring that any previously-allocated string in
5926 linker_name_spec is freed. Likewise with argv0.
5927 (driver::finalize): Use set_static_spec_shared() when resetting
5928 specs that previously had allocated strings; remove if(0)
5929 around call to free().
5930
5931 2020-08-21 Senthil Kumar Selvaraj <saaadhu@gcc.gnu.org>
5932
5933 * emit-rtl.c (try_split): Call copy_frame_info_to_split_insn
5934 to split certain RTX_FRAME_RELATED_P insns.
5935 * recog.c (copy_frame_info_to_split_insn): New function.
5936 (peep2_attempt): Split copying of frame related info of
5937 RTX_FRAME_RELATED_P insns into above function and call it.
5938 * recog.h (copy_frame_info_to_split_insn): Declare it.
5939
5940 2020-08-21 liuhongt <hongtao.liu@intel.com>
5941
5942 PR target/88808
5943 * config/i386/i386.c (ix86_preferred_reload_class): Allow
5944 QImode data go into mask registers.
5945 * config/i386/i386.md: (*movhi_internal): Adjust constraints
5946 for mask registers.
5947 (*movqi_internal): Ditto.
5948 (*anddi_1): Support mask register operations
5949 (*and<mode>_1): Ditto.
5950 (*andqi_1): Ditto.
5951 (*andn<mode>_1): Ditto.
5952 (*<code><mode>_1): Ditto.
5953 (*<code>qi_1): Ditto.
5954 (*one_cmpl<mode>2_1): Ditto.
5955 (*one_cmplsi2_1_zext): Ditto.
5956 (*one_cmplqi2_1): Ditto.
5957 (define_peephole2): Move constant 0/-1 directly into mask
5958 registers.
5959 * config/i386/predicates.md (mask_reg_operand): New predicate.
5960 * config/i386/sse.md (define_split): Add post-reload splitters
5961 that would convert "generic" patterns to mask patterns.
5962 (*knotsi_1_zext): New define_insn.
5963
5964 2020-08-21 liuhongt <hongtao.liu@intel.com>
5965
5966 * config/i386/x86-tune-costs.h (skylake_cost): Adjust cost
5967 model.
5968
5969 2020-08-21 liuhongt <hongtao.liu@intel.com>
5970
5971 * config/i386/i386.c (inline_secondary_memory_needed):
5972 No memory is needed between mask regs and gpr.
5973 (ix86_hard_regno_mode_ok): Add condition TARGET_AVX512F for
5974 mask regno.
5975 * config/i386/i386.h (enum reg_class): Add INT_MASK_REGS.
5976 (REG_CLASS_NAMES): Ditto.
5977 (REG_CLASS_CONTENTS): Ditto.
5978 * config/i386/i386.md: Exclude mask register in
5979 define_peephole2 which is avaiable only for gpr.
5980
5981 2020-08-21 H.J. Lu <hjl.tools@gmail.com>
5982
5983 PR target/71453
5984 * config/i386/i386.h (struct processor_costs): Add member
5985 mask_to_integer, integer_to_mask, mask_load[3], mask_store[3],
5986 mask_move.
5987 * config/i386/x86-tune-costs.h (ix86_size_cost, i386_cost,
5988 i386_cost, pentium_cost, lakemont_cost, pentiumpro_cost,
5989 geode_cost, k6_cost, athlon_cost, k8_cost, amdfam10_cost,
5990 bdver_cost, znver1_cost, znver2_cost, skylake_cost,
5991 btver1_cost, btver2_cost, pentium4_cost, nocona_cost,
5992 atom_cost, slm_cost, intel_cost, generic_cost, core_cost):
5993 Initialize mask_load[3], mask_store[3], mask_move,
5994 integer_to_mask, mask_to_integer for all target costs.
5995 * config/i386/i386.c (ix86_register_move_cost): Using cost
5996 model of mask registers.
5997 (inline_memory_move_cost): Ditto.
5998 (ix86_register_move_cost): Ditto.
5999
6000 2020-08-20 Iain Buclaw <ibuclaw@gdcproject.org>
6001
6002 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Don't include
6003 VxWorks header files if -fself-test is used.
6004 (STARTFILE_PREFIX_SPEC): Avoid using VSB_DIR if -fself-test is used.
6005
6006 2020-08-20 Joe Ramsay <Joe.Ramsay@arm.com>
6007
6008 PR target/96683
6009 * config/arm/mve.md (mve_vst1q_f<mode>): Require MVE memory operand for
6010 destination.
6011 (mve_vst1q_<supf><mode>): Likewise.
6012
6013 2020-08-19 2020-08-19 Carl Love <cel@us.ibm.com>
6014
6015 * config/rs6000/rs6000-builtin.def (BU_P10V_0, BU_P10V_1,
6016 BU_P10V_2, BU_P10V_3): Rename BU_P10V_VSX_0, BU_P10V_VSX_1,
6017 BU_P10V_VSX_2, BU_P10V_VSX_3 respectively.
6018 (BU_P10V_4): Remove.
6019 (BU_P10V_AV_0, BU_P10V_AV_1, BU_P10V_AV_2, BU_P10V_AV_3, BU_P10V_AV_4):
6020 New definitions for Power 10 Altivec macros.
6021 (VSTRIBR, VSTRIHR, VSTRIBL, VSTRIHL, VSTRIBR_P, VSTRIHR_P,
6022 VSTRIBL_P, VSTRIHL_P, MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM,
6023 VEXPANDMB, VEXPANDMH, VEXPANDMW, VEXPANDMD, VEXPANDMQ, VEXTRACTMB,
6024 VEXTRACTMH, VEXTRACTMW, VEXTRACTMD, VEXTRACTMQ): Replace macro
6025 expansion BU_P10V_1 with BU_P10V_AV_1.
6026 (VCLRLB, VCLRRB, VCFUGED, VCLZDM, VCTZDM, VPDEPD, VPEXTD, VGNB,
6027 VCNTMBB, VCNTMBH, VCNTMBW, VCNTMBD): Replace macro expansion
6028 BU_P10V_2 with BU_P10V_AV_2.
6029 (VEXTRACTBL, VEXTRACTHL, VEXTRACTWL, VEXTRACTDL, VEXTRACTBR, VEXTRACTHR,
6030 VEXTRACTWR, VEXTRACTDR, VINSERTGPRBL, VINSERTGPRHL, VINSERTGPRWL,
6031 VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL, VINSERTGPRBR,
6032 VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR, VINSERTVPRHR,
6033 VINSERTVPRWR, VREPLACE_ELT_V4SI, VREPLACE_ELT_UV4SI, VREPLACE_ELT_V2DF,
6034 VREPLACE_ELT_V4SF, VREPLACE_ELT_V2DI, VREPLACE_ELT_UV2DI, VREPLACE_UN_V4SI,
6035 VREPLACE_UN_UV4SI, VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
6036 VREPLACE_UN_V2DF, VSLDB_V16QI, VSLDB_V8HI, VSLDB_V4SI, VSLDB_V2DI,
6037 VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI, VSRDB_V2DI): Replace macro expansion
6038 BU_P10V_3 with BU_P10V_AV_3.
6039 (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF, VXXSPLTID): Replace macro expansion
6040 BU_P10V_1 with BU_P10V_AV_1.
6041 (XXGENPCVM_V16QI, XXGENPCVM_V8HI, XXGENPCVM_V4SI, XXGENPCVM_V2DI):
6042 Replace macro expansion BU_P10V_2 with BU_P10V_VSX_2.
6043 (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF, VXXBLEND_V16QI, VXXBLEND_V8HI,
6044 VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): Replace macor
6045 expansion BU_P10V_3 with BU_P10V_VSX_3.
6046 (XXEVAL, VXXPERMX): Replace macro expansion BU_P10V_4 with BU_P10V_VSX_4.
6047 (XVCVBF16SP, XVCVSPBF16): Replace macro expansion BU_VSX_1 with
6048 BU_P10V_VSX_1. Also change MISC to CONST.
6049 * config/rs6000/rs6000-c.c: (P10_BUILTIN_VXXPERMX): Replace with
6050 P10V_BUILTIN_VXXPERMX.
6051 (P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRLB, P10_BUILTIN_VCLRRB,
6052 P10_BUILTIN_VGNB, P10_BUILTIN_XXEVAL, P10_BUILTIN_VXXPERMX,
6053 P10_BUILTIN_VEXTRACTBL, P10_BUILTIN_VEXTRACTHL, P10_BUILTIN_VEXTRACTWL,
6054 P10_BUILTIN_VEXTRACTDL, P10_BUILTIN_VINSERTGPRHL,
6055 P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
6056 P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
6057 P10_BUILTIN_VEXTRACTBR, P10_BUILTIN_VEXTRACTHR,
6058 P10_BUILTIN_VEXTRACTWR, P10_BUILTIN_VEXTRACTDR,
6059 P10_BUILTIN_VINSERTGPRBR, P10_BUILTIN_VINSERTGPRHR,
6060 P10_BUILTIN_VINSERTGPRWR, P10_BUILTIN_VINSERTGPRDR,
6061 P10_BUILTIN_VINSERTVPRBR, P10_BUILTIN_VINSERTVPRHR,
6062 P10_BUILTIN_VINSERTVPRWR, P10_BUILTIN_VREPLACE_ELT_UV4SI,
6063 P10_BUILTIN_VREPLACE_ELT_V4SI, P10_BUILTIN_VREPLACE_ELT_UV2DI,
6064 P10_BUILTIN_VREPLACE_ELT_V2DI, P10_BUILTIN_VREPLACE_ELT_V2DF,
6065 P10_BUILTIN_VREPLACE_UN_UV4SI, P10_BUILTIN_VREPLACE_UN_V4SI,
6066 P10_BUILTIN_VREPLACE_UN_V4SF, P10_BUILTIN_VREPLACE_UN_UV2DI,
6067 P10_BUILTIN_VREPLACE_UN_V2DI, P10_BUILTIN_VREPLACE_UN_V2DF,
6068 P10_BUILTIN_VSLDB_V16QI, P10_BUILTIN_VSLDB_V16QI,
6069 P10_BUILTIN_VSLDB_V8HI, P10_BUILTIN_VSLDB_V4SI,
6070 P10_BUILTIN_VSLDB_V2DI, P10_BUILTIN_VXXSPLTIW_V4SI,
6071 P10_BUILTIN_VXXSPLTIW_V4SF, P10_BUILTIN_VXXSPLTID,
6072 P10_BUILTIN_VXXSPLTI32DX_V4SI, P10_BUILTIN_VXXSPLTI32DX_V4SF,
6073 P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
6074 P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI,
6075 P10_BUILTIN_VXXBLEND_V4SF, P10_BUILTIN_VXXBLEND_V2DF,
6076 P10_BUILTIN_VSRDB_V16QI, P10_BUILTIN_VSRDB_V8HI,
6077 P10_BUILTIN_VSRDB_V4SI, P10_BUILTIN_VSRDB_V2DI,
6078 P10_BUILTIN_VSTRIBL, P10_BUILTIN_VSTRIHL,
6079 P10_BUILTIN_VSTRIBL_P, P10_BUILTIN_VSTRIHL_P,
6080 P10_BUILTIN_VSTRIBR, P10_BUILTIN_VSTRIHR,
6081 P10_BUILTIN_VSTRIBR_P, P10_BUILTIN_VSTRIHR_P,
6082 P10_BUILTIN_MTVSRBM, P10_BUILTIN_MTVSRHM,
6083 P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
6084 P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB,
6085 P10_BUILTIN_VCNTMBH, P10_BUILTIN_VCNTMBW,
6086 P10_BUILTIN_VCNTMBD, P10_BUILTIN_VEXPANDMB,
6087 P10_BUILTIN_VEXPANDMH, P10_BUILTIN_VEXPANDMW,
6088 P10_BUILTIN_VEXPANDMD, P10_BUILTIN_VEXPANDMQ,
6089 P10_BUILTIN_VEXTRACTMB, P10_BUILTIN_VEXTRACTMH,
6090 P10_BUILTIN_VEXTRACTMW, P10_BUILTIN_VEXTRACTMD,
6091 P10_BUILTIN_VEXTRACTMQ, P10_BUILTIN_XVTLSBB_ZEROS,
6092 P10_BUILTIN_XVTLSBB_ONES): Replace with
6093 P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRLB, P10V_BUILTIN_VCLRRB,
6094 P10V_BUILTIN_VGNB, P10V_BUILTIN_XXEVAL, P10V_BUILTIN_VXXPERMX,
6095 P10V_BUILTIN_VEXTRACTBL, P10V_BUILTIN_VEXTRACTHL, P10V_BUILTIN_VEXTRACTWL,
6096 P10V_BUILTIN_VEXTRACTDL, P10V_BUILTIN_VINSERTGPRHL,
6097 P10V_BUILTIN_VINSERTGPRWL, P10V_BUILTIN_VINSERTGPRDL,
6098 P10V_BUILTIN_VINSERTVPRBL,P10V_BUILTIN_VINSERTVPRHL,
6099 P10V_BUILTIN_VEXTRACTBR, P10V_BUILTIN_VEXTRACTHR
6100 P10V_BUILTIN_VEXTRACTWR, P10V_BUILTIN_VEXTRACTDR,
6101 P10V_BUILTIN_VINSERTGPRBR, P10V_BUILTIN_VINSERTGPRHR,
6102 P10V_BUILTIN_VINSERTGPRWR, P10V_BUILTIN_VINSERTGPRDR,
6103 P10V_BUILTIN_VINSERTVPRBR, P10V_BUILTIN_VINSERTVPRHR,
6104 P10V_BUILTIN_VINSERTVPRWR, P10V_BUILTIN_VREPLACE_ELT_UV4SI,
6105 P10V_BUILTIN_VREPLACE_ELT_V4SI, P10V_BUILTIN_VREPLACE_ELT_UV2DI,
6106 P10V_BUILTIN_VREPLACE_ELT_V2DI, P10V_BUILTIN_VREPLACE_ELT_V2DF,
6107 P10V_BUILTIN_VREPLACE_UN_UV4SI, P10V_BUILTIN_VREPLACE_UN_V4SI,
6108 P10V_BUILTIN_VREPLACE_UN_V4SF, P10V_BUILTIN_VREPLACE_UN_UV2DI,
6109 P10V_BUILTIN_VREPLACE_UN_V2DI, P10V_BUILTIN_VREPLACE_UN_V2DF,
6110 P10V_BUILTIN_VSLDB_V16QI, P10V_BUILTIN_VSLDB_V16QI,
6111 P10V_BUILTIN_VSLDB_V8HI, P10V_BUILTIN_VSLDB_V4SI,
6112 P10V_BUILTIN_VSLDB_V2DI, P10V_BUILTIN_VXXSPLTIW_V4SI,
6113 P10V_BUILTIN_VXXSPLTIW_V4SF, P10V_BUILTIN_VXXSPLTID,
6114 P10V_BUILTIN_VXXSPLTI32DX_V4SI, P10V_BUILTIN_VXXSPLTI32DX_V4SF,
6115 P10V_BUILTIN_VXXBLEND_V16QI, P10V_BUILTIN_VXXBLEND_V8HI,
6116 P10V_BUILTIN_VXXBLEND_V4SI, P10V_BUILTIN_VXXBLEND_V2DI,
6117 P10V_BUILTIN_VXXBLEND_V4SF, P10V_BUILTIN_VXXBLEND_V2DF,
6118 P10V_BUILTIN_VSRDB_V16QI, P10V_BUILTIN_VSRDB_V8HI,
6119 P10V_BUILTIN_VSRDB_V4SI, P10V_BUILTIN_VSRDB_V2DI,
6120 P10V_BUILTIN_VSTRIBL, P10V_BUILTIN_VSTRIHL,
6121 P10V_BUILTIN_VSTRIBL_P, P10V_BUILTIN_VSTRIHL_P,
6122 P10V_BUILTIN_VSTRIBR, P10V_BUILTIN_VSTRIHR,
6123 P10V_BUILTIN_VSTRIBR_P, P10V_BUILTIN_VSTRIHR_P,
6124 P10V_BUILTIN_MTVSRBM, P10V_BUILTIN_MTVSRHM,
6125 P10V_BUILTIN_MTVSRWM, P10V_BUILTIN_MTVSRDM,
6126 P10V_BUILTIN_MTVSRQM, P10V_BUILTIN_VCNTMBB,
6127 P10V_BUILTIN_VCNTMBH, P10V_BUILTIN_VCNTMBW,
6128 P10V_BUILTIN_VCNTMBD, P10V_BUILTIN_VEXPANDMB,
6129 P10V_BUILTIN_VEXPANDMH, P10V_BUILTIN_VEXPANDMW,
6130 P10V_BUILTIN_VEXPANDMD, P10V_BUILTIN_VEXPANDMQ,
6131 P10V_BUILTIN_VEXTRACTMB, P10V_BUILTIN_VEXTRACTMH,
6132 P10V_BUILTIN_VEXTRACTMW, P10V_BUILTIN_VEXTRACTMD,
6133 P10V_BUILTIN_VEXTRACTMQ, P10V_BUILTIN_XVTLSBB_ZEROS,
6134 P10V_BUILTIN_XVTLSBB_ONES respectively.
6135 * config/rs6000/rs6000-call.c: Ditto above, change P10_BUILTIN_name to
6136 P10V_BUILTIN_name.
6137 (P10_BUILTIN_XVCVSPBF16, P10_BUILTIN_XVCVBF16SP): Change to
6138 P10V_BUILTIN_XVCVSPBF16, P10V_BUILTIN_XVCVBF16SP respectively.
6139
6140 2020-08-19 Bill Schmidt <wschmidt@linux.ibm.com>
6141
6142 * config/rs6000/rs6000-logue.c (rs6000_decl_ok_for_sibcall):
6143 Sibcalls are always legal when the caller doesn't preserve r2.
6144
6145 2020-08-19 Uroš Bizjak <ubizjak@gmail.com>
6146
6147 * config/i386/i386-expand.c (ix86_expand_builtin)
6148 [case IX86_BUILTIN_ENQCMD, case IX86_BUILTIN_ENQCMDS]:
6149 Rewrite expansion to use code_for_enqcmd.
6150 [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]:
6151 Rewrite expansion to use code_for_wrss.
6152 [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
6153 Rewrite expansion to use code_for_wrss.
6154
6155 2020-08-19 Feng Xue <fxue@os.amperecomputing.com>
6156
6157 PR tree-optimization/94234
6158 * match.pd ((PTR_A + OFF) - (PTR_B + OFF)) -> (PTR_A - PTR_B): New
6159 simplification.
6160
6161 2020-08-19 H.J. Lu <hjl.tools@gmail.com>
6162
6163 * common/config/i386/cpuinfo.h (get_intel_cpu): Detect Rocket
6164 Lake and Alder Lake.
6165
6166 2020-08-19 Peixin Qiao <qiaopeixin@huawei.com>
6167
6168 * config/aarch64/aarch64.c (aarch64_init_cumulative_args): Remove
6169 "fndecl && TREE_PUBLIC (fndecl)" check since it prevents the funtion
6170 type check when calling via a function pointer or when calling a static
6171 function.
6172
6173 2020-08-19 Kewen Lin <linkw@linux.ibm.com>
6174
6175 * opts-global.c (decode_options): Call target_option_override_hook
6176 before it prints for --help=*.
6177
6178 2020-08-18 Peter Bergner <bergner@linux.ibm.com>
6179
6180 * config/rs6000/rs6000-builtin.def (BU_VSX_1): Rename xvcvbf16sp to
6181 xvcvbf16spn.
6182 * config/rs6000/rs6000-call.c (builtin_function_type): Likewise.
6183 * config/rs6000/vsx.md: Likewise.
6184 * doc/extend.texi: Likewise.
6185
6186 2020-08-18 Aaron Sawdey <acsawdey@linux.ibm.com>
6187
6188 * config/rs6000/rs6000-string.c (gen_lxvl_stxvl_move):
6189 Helper function.
6190 (expand_block_move): Add lxvl/stxvl, vector pair, and
6191 unaligned VSX.
6192 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6193 Default value for -mblock-ops-vector-pair.
6194 * config/rs6000/rs6000.opt: Add -mblock-ops-vector-pair.
6195
6196 2020-08-18 Aldy Hernandez <aldyh@redhat.com>
6197
6198 * vr-values.c (check_for_binary_op_overflow): Change type of store
6199 to range_query.
6200 (vr_values::adjust_range_with_scev): Abstract most of the code...
6201 (range_of_var_in_loop): ...here. Remove value_range_equiv uses.
6202 (simplify_using_ranges::simplify_using_ranges): Change type of store
6203 to range_query.
6204 * vr-values.h (class range_query): New.
6205 (class simplify_using_ranges): Use range_query.
6206 (class vr_values): Add OVERRIDE to get_value_range.
6207 (range_of_var_in_loop): New.
6208
6209 2020-08-18 Martin Sebor <msebor@redhat.com>
6210
6211 PR middle-end/96665
6212 PR middle-end/78257
6213 * expr.c (convert_to_bytes): Replace statically allocated buffer with
6214 a dynamically allocated one of sufficient size.
6215
6216 2020-08-18 Martin Sebor <msebor@redhat.com>
6217
6218 PR tree-optimization/96670
6219 PR middle-end/78257
6220 * gimple-fold.c (gimple_fold_builtin_memchr): Call byte_representation
6221 to get it, not string_constant.
6222
6223 2020-08-18 Hu Jiangping <hujiangping@cn.fujitsu.com>
6224
6225 * doc/gimple.texi (gimple_debug_begin_stmt_p): Add return type.
6226 (gimple_debug_inline_entry_p, gimple_debug_nonbind_marker_p): Likewise.
6227
6228 2020-08-18 Martin Sebor <msebor@redhat.com>
6229
6230 * fold-const.c (native_encode_expr): Update comment.
6231
6232 2020-08-18 Uroš Bizjak <ubizjak@gmail.com>
6233
6234 PR target/96536
6235 * config/i386/i386.md (restore_stack_nonlocal): Add missing compare
6236 RTX. Rewrite expander to use high-level functions in RTL construction.
6237
6238 2020-08-18 liuhongt <hongtao.liu@intel.com>
6239
6240 PR target/96562
6241 PR target/93897
6242 * config/i386/i386-expand.c (ix86_expand_pinsr): Don't use
6243 pinsr for TImode.
6244 (ix86_expand_pextr): Don't use pextr for TImode.
6245
6246 2020-08-17 Uroš Bizjak <ubizjak@gmail.com>
6247
6248 * config/i386/i386-builtin.def (__builtin_ia32_bextri_u32)
6249 (__builtin_ia32_bextri_u64): Use CODE_FOR_nothing.
6250 * config/i386/i386.md (@tbm_bextri_<mode>):
6251 Implement as parametrized name pattern.
6252 (@rdrand<mode>): Ditto.
6253 (@rdseed<mode>): Ditto.
6254 * config/i386/i386-expand.c (ix86_expand_builtin)
6255 [case IX86_BUILTIN_BEXTRI32, case IX86_BUILTIN_BEXTRI64]:
6256 Update for parameterized name patterns.
6257 [case IX86_BUILTIN_RDRAND16_STEP, case IX86_BUILTIN_RDRAND32_STEP]
6258 [case IX86_BUILTIN_RDRAND64_STEP]: Ditto.
6259 [case IX86_BUILTIN_RDSEED16_STEP, case IX86_BUILTIN_RDSEED32_STEP]
6260 [case IX86_BUILTIN_RDSEED64_STEP]: Ditto.
6261
6262 2020-08-17 Aldy Hernandez <aldyh@redhat.com>
6263
6264 * vr-values.c (vr_values::get_value_range): Add stmt param.
6265 (vr_values::extract_range_from_comparison): Same.
6266 (vr_values::extract_range_from_assignment): Pass stmt to
6267 extract_range_from_comparison.
6268 (vr_values::adjust_range_with_scev): Pass stmt to get_value_range.
6269 (simplify_using_ranges::vrp_evaluate_conditional): Add stmt param.
6270 Pass stmt to get_value_range.
6271 (simplify_using_ranges::vrp_visit_cond_stmt): Pass stmt to
6272 get_value_range.
6273 (simplify_using_ranges::simplify_abs_using_ranges): Same.
6274 (simplify_using_ranges::simplify_div_or_mod_using_ranges): Same.
6275 (simplify_using_ranges::simplify_bit_ops_using_ranges): Same.
6276 (simplify_using_ranges::simplify_cond_using_ranges_1): Same.
6277 (simplify_using_ranges::simplify_switch_using_ranges): Same.
6278 (simplify_using_ranges::simplify_float_conversion_using_ranges): Same.
6279 * vr-values.h (class vr_values): Add stmt arg to
6280 vrp_evaluate_conditional_warnv_with_ops.
6281 Add stmt arg to extract_range_from_comparison and get_value_range.
6282 (simplify_using_ranges::get_value_range): Add stmt arg.
6283
6284 2020-08-17 liuhongt <hongtao.liu@intel.com>
6285
6286 PR target/96350
6287 * config/i386/i386.c (ix86_legitimate_constant_p): Return
6288 false for ENDBR immediate.
6289 (ix86_legitimate_address_p): Ditto.
6290 * config/i386/predicates.md
6291 (x86_64_immediate_operand): Exclude ENDBR immediate.
6292 (x86_64_zext_immediate_operand): Ditto.
6293 (x86_64_dwzext_immediate_operand): Ditto.
6294 (ix86_endbr_immediate_operand): New predicate.
6295
6296 2020-08-16 Roger Sayle <roger@nextmovesoftware.com>
6297
6298 * simplify-rtx.c (simplify_unary_operation_1) [SIGN_EXTEND]:
6299 Simplify (sign_extend:M (truncate:N (lshiftrt:M x C))) to
6300 (ashiftrt:M x C) when the shift sets the high bits appropriately.
6301
6302 2020-08-14 Martin Sebor <msebor@redhat.com>
6303
6304 PR middle-end/78257
6305 * builtins.c (expand_builtin_memory_copy_args): Rename called function.
6306 (expand_builtin_stpcpy_1): Remove argument from call.
6307 (expand_builtin_memcmp): Rename called function.
6308 (inline_expand_builtin_bytecmp): Same.
6309 * expr.c (convert_to_bytes): New function.
6310 (constant_byte_string): New function (formerly string_constant).
6311 (string_constant): Call constant_byte_string.
6312 (byte_representation): New function.
6313 * expr.h (byte_representation): Declare.
6314 * fold-const-call.c (fold_const_call): Rename called function.
6315 * fold-const.c (c_getstr): Remove an argument.
6316 (getbyterep): Define a new function.
6317 * fold-const.h (c_getstr): Remove an argument.
6318 (getbyterep): Declare a new function.
6319 * gimple-fold.c (gimple_fold_builtin_memory_op): Rename callee.
6320 (gimple_fold_builtin_string_compare): Same.
6321 (gimple_fold_builtin_memchr): Same.
6322
6323 2020-08-14 David Malcolm <dmalcolm@redhat.com>
6324
6325 * doc/analyzer.texi (Overview): Add tip about how to get a
6326 gimple dump if the analyzer ICEs.
6327
6328 2020-08-14 Uroš Bizjak <ubizjak@gmail.com>
6329
6330 * config/i386/i386-builtin.def (__builtin_ia32_llwpcb)
6331 (__builtin_ia32_slwpcb, __builtin_ia32_lwpval32)
6332 (__builtin_ia32_lwpval64, __builtin_ia32_lwpins32)
6333 (__builtin_ia32_lwpins64): Use CODE_FOR_nothing.
6334 * config/i386/i386.md (@lwp_llwpcb<mode>):
6335 Implement as parametrized name pattern.
6336 (@lwp_slwpcb<mode>): Ditto.
6337 (@lwp_lwpval<mode>): Ditto.
6338 (@lwp_lwpins<mode>): Ditto.
6339 * config/i386/i386-expand.c (ix86_expand_special_args_builtin)
6340 [case VOID_FTYPE_UINT_UINT_UINT, case VOID_FTYPE_UINT64_UINT_UINT]
6341 [case UCHAR_FTYPE_UINT_UINT_UINT, case UCHAR_FTYPE_UINT64_UINT_UINT]:
6342 Remove.
6343 (ix86_expand_builtin)
6344 [ case IX86_BUILTIN_LLWPCB, case IX86_BUILTIN_LLWPCB]:
6345 Update for parameterized name patterns.
6346 [case IX86_BUILTIN_LWPVAL32, case IX86_BUILTIN_LWPVAL64]
6347 [case IX86_BUILTIN_LWPINS32, case IX86_BUILTIN_LWPINS64]: Expand here.
6348
6349 2020-08-14 Lewis Hyatt <lhyatt@gmail.com>
6350
6351 * common.opt: Add new option -fdiagnostics-plain-output.
6352 * doc/invoke.texi: Document it.
6353 * opts-common.c (decode_cmdline_options_to_array): Implement it.
6354 (decode_cmdline_option): Add missing const qualifier to argv.
6355
6356 2020-08-14 Jakub Jelinek <jakub@redhat.com>
6357 Jonathan Wakely <jwakely@redhat.com>
6358 Jonathan Wakely <jwakely@redhat.com>
6359
6360 * system.h: Include type_traits.
6361 * vec.h (vec<T, A, vl_embed>::embedded_size): Use offsetof and asserts
6362 on vec_stdlayout, which is conditionally a vec (for standard layout T)
6363 and otherwise vec_embedded.
6364
6365 2020-08-14 Jojo R <jiejie_rong@c-sky.com>
6366
6367 * config/csky/csky-elf.h (ASM_SPEC): Use mfloat-abi.
6368 * config/csky/csky-linux-elf.h (ASM_SPEC): mfloat-abi.
6369
6370 2020-08-13 David Malcolm <dmalcolm@redhat.com>
6371
6372 PR analyzer/93032
6373 PR analyzer/93938
6374 PR analyzer/94011
6375 PR analyzer/94099
6376 PR analyzer/94399
6377 PR analyzer/94458
6378 PR analyzer/94503
6379 PR analyzer/94640
6380 PR analyzer/94688
6381 PR analyzer/94689
6382 PR analyzer/94839
6383 PR analyzer/95026
6384 PR analyzer/95042
6385 PR analyzer/95240
6386 * Makefile.in (ANALYZER_OBJS): Add analyzer/region.o,
6387 analyzer/region-model-impl-calls.o,
6388 analyzer/region-model-manager.o,
6389 analyzer/region-model-reachability.o, analyzer/store.o, and
6390 analyzer/svalue.o.
6391 * doc/analyzer.texi: Update for changes to analyzer
6392 implementation.
6393 * tristate.h (tristate::get_value): New accessor.
6394
6395 2020-08-13 Uroš Bizjak <ubizjak@gmail.com>
6396
6397 * config/i386/i386-builtin.def (CET_NORMAL): Merge to CET BDESC array.
6398 (__builtin_ia32_rddspd, __builtin_ia32_rddspq, __builtin_ia32_incsspd)
6399 (__builtin_ia32_incsspq, __builtin_ia32_wrssd, __builtin_ia32_wrssq)
6400 (__builtin_ia32_wrussd, __builtin_ia32_wrussq): Use CODE_FOR_nothing.
6401 * config/i386/i386-builtins.c: Remove handling of CET_NORMAL builtins.
6402 * config/i386/i386.md (@rdssp<mode>): Implement as parametrized
6403 name pattern. Use SWI48 mode iterator. Introduce input operand
6404 and remove explicit XOR zeroing from insn template.
6405 (@incssp<mode>): Implement as parametrized name pattern.
6406 Use SWI48 mode iterator.
6407 (@wrss<mode>): Ditto.
6408 (@wruss<mode>): Ditto.
6409 (rstorssp): Remove expander. Rename insn pattern from *rstorssp<mode>.
6410 Use DImode memory operand.
6411 (clrssbsy): Remove expander. Rename insn pattern from *clrssbsy<mode>.
6412 Use DImode memory operand.
6413 (save_stack_nonlocal): Update for parametrized name patterns.
6414 Use cleared register as an argument to gen_rddsp.
6415 (restore_stack_nonlocal): Update for parametrized name patterns.
6416 * config/i386/i386-expand.c (ix86_expand_builtin):
6417 [case IX86_BUILTIN_RDSSPD, case IX86_BUILTIN_RDSSPQ]: Expand here.
6418 [case IX86_BUILTIN_INCSSPD, case IX86_BUILTIN_INCSSPQ]: Ditto.
6419 [case IX86_BUILTIN_RSTORSSP, case IX86_BUILTIN_CLRSSBSY]:
6420 Generate DImode memory operand.
6421 [case IX86_BUILTIN_WRSSD, case IX86_BUILTIN_WRSSQ]
6422 [case IX86_BUILTIN_WRUSSD, case IX86_BUILTIN_WRUSSD]:
6423 Update for parameterized name patterns.
6424
6425 2020-08-13 Peter Bergner <bergner@linux.ibm.com>
6426
6427 PR target/96506
6428 * config/rs6000/rs6000-call.c (rs6000_promote_function_mode): Disallow
6429 MMA types as return values.
6430 (rs6000_function_arg): Disallow MMA types as function arguments.
6431
6432 2020-08-13 Richard Sandiford <richard.sandiford@arm.com>
6433
6434 Revert:
6435 2020-08-12 Peixin Qiao <qiaopeixin@huawei.com>
6436
6437 * config/aarch64/aarch64.c (aarch64_function_value): Add if
6438 condition to check ag_mode after entering if condition of
6439 aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
6440 set as false by -mgeneral-regs-only, report the diagnostic
6441 information of -mgeneral-regs-only imcompatible with the use
6442 of fp/simd register(s).
6443
6444 2020-08-13 Martin Liska <mliska@suse.cz>
6445
6446 PR ipa/96482
6447 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Mask m_value
6448 with m_mask.
6449
6450 2020-08-13 Jakub Jelinek <jakub@redhat.com>
6451
6452 * gimplify.c (gimplify_omp_taskloop_expr): New function.
6453 (gimplify_omp_for): Use it. For OMP_FOR_NON_RECTANGULAR
6454 loops adjust in outer taskloop the var-outer decls.
6455 * omp-expand.c (expand_omp_taskloop_for_inner): Handle non-rectangular
6456 loops.
6457 (expand_omp_for): Don't reject non-rectangular taskloop.
6458 * omp-general.c (omp_extract_for_data): Don't assert that
6459 non-rectangular loops have static schedule, instead treat loop->m1
6460 or loop->m2 as if loop->n1 or loop->n2 is non-constant.
6461
6462 2020-08-13 Hongtao Liu <hongtao.liu@intel.com>
6463
6464 PR target/96246
6465 * config/i386/sse.md (<avx512>_load<mode>_mask,
6466 <avx512>_load<mode>_mask): Extend to generate blendm
6467 instructions.
6468 (<avx512>_blendm<mode>, <avx512>_blendm<mode>): Change
6469 define_insn to define_expand.
6470
6471 2020-08-12 Roger Sayle <roger@nextmovesoftware.com>
6472 Uroš Bizjak <ubizjak@gmail.com>
6473
6474 PR target/96558
6475 * config/i386/i386.md (peephole2): Only reorder register clearing
6476 instructions to allow use of xor for general registers.
6477
6478 2020-08-12 Martin Liska <mliska@suse.cz>
6479
6480 PR ipa/96482
6481 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Drop value bits
6482 for bits that are unknown.
6483 (ipcp_bits_lattice::set_to_constant): Likewise.
6484 * tree-ssa-ccp.c (get_default_value): Add sanity check that
6485 IPA CP bit info has all bits set to zero in bits that
6486 are unknown.
6487
6488 2020-08-12 Peixin Qiao <qiaopeixin@huawei.com>
6489
6490 * config/aarch64/aarch64.c (aarch64_function_value): Add if
6491 condition to check ag_mode after entering if condition of
6492 aarch64_vfp_is_call_or_return_candidate. If TARGET_FLOAT is
6493 set as false by -mgeneral-regs-only, report the diagnostic
6494 information of -mgeneral-regs-only imcompatible with the use
6495 of fp/simd register(s).
6496
6497 2020-08-12 Jakub Jelinek <jakub@redhat.com>
6498
6499 PR tree-optimization/96535
6500 * toplev.c (process_options): Move flag_unroll_loops and
6501 flag_cunroll_grow_size handling from here to ...
6502 * opts.c (finish_options): ... here. For flag_cunroll_grow_size,
6503 don't check for AUTODETECT_VALUE, but instead check
6504 opts_set->x_flag_cunroll_grow_size.
6505 * common.opt (funroll-completely-grow-size): Default to 0.
6506 * config/rs6000/rs6000.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
6507 Redefine.
6508 (rs6000_override_options_after_change): New function.
6509 (rs6000_option_override_internal): Call it. Move there the
6510 flag_cunroll_grow_size, unroll_only_small_loops and
6511 flag_rename_registers handling.
6512
6513 2020-08-12 Tom de Vries <tdevries@suse.de>
6514
6515 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Make elt_size an
6516 unsigned HOST_WIDE_INT. Print init_frag.remaining using
6517 HOST_WIDE_INT_PRINT_UNSIGNED.
6518
6519 2020-08-12 Roger Sayle <roger@nextmovesoftware.com>
6520 Uroš Bizjak <ubizjak@gmail.com>
6521
6522 * config/i386/i386.md (peephole2): Reduce unnecessary
6523 register shuffling produced by register allocation.
6524
6525 2020-08-12 Aldy Hernandez <aldyh@redhat.com>
6526
6527 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use vec<>
6528 instead of std::vector<>.
6529 (evaluate_properties_for_edge): Same.
6530 (ipa_fn_summary_t::duplicate): Same.
6531 (estimate_ipcp_clone_size_and_time): Same.
6532 * vec.h (<T, A, vl_embed>::embedded_size): Change vec_embedded
6533 type to contain a char[].
6534
6535 2020-08-12 Andreas Krebbel <krebbel@linux.ibm.com>
6536
6537 PR target/96308
6538 * config/s390/s390.c (s390_cannot_force_const_mem): Reject an
6539 unary minus for everything not being a numeric constant.
6540 (legitimize_tls_address): Move a NEG out of the CONST rtx.
6541
6542 2020-08-12 Andreas Krebbel <krebbel@linux.ibm.com>
6543
6544 PR target/96456
6545 * config/s390/s390.h (TARGET_NONSIGNALING_VECTOR_COMPARE_OK): New
6546 macro.
6547 * config/s390/vector.md (vcond_comparison_operator): Use new macro
6548 for the check.
6549
6550 2020-08-11 Jakub Jelinek <jakub@redhat.com>
6551
6552 PR rtl-optimization/96539
6553 * expr.c (emit_block_move_hints): Don't copy anything if x and y
6554 are the same and neither is MEM_VOLATILE_P.
6555
6556 2020-08-11 Jakub Jelinek <jakub@redhat.com>
6557
6558 PR c/96549
6559 * tree.c (get_narrower): Use TREE_TYPE (ret) instead of
6560 TREE_TYPE (win) for COMPOUND_EXPRs.
6561
6562 2020-08-11 Jan Hubicka <hubicka@ucw.cz>
6563
6564 * predict.c (not_loop_guard_equal_edge_p): New function.
6565 (maybe_predict_edge): New function.
6566 (predict_paths_for_bb): Use it.
6567 (predict_paths_leading_to_edge): Use it.
6568
6569 2020-08-11 Martin Liska <mliska@suse.cz>
6570
6571 * dbgcnt.def (DEBUG_COUNTER): Add ipa_cp_bits.
6572 * ipa-cp.c (ipcp_store_bits_results): Use it when we store known
6573 bits for parameters.
6574
6575 2020-08-10 Marek Polacek <polacek@redhat.com>
6576
6577 * doc/sourcebuild.texi: Document dg-ice.
6578
6579 2020-08-10 Roger Sayle <roger@nextmovesoftware.com>
6580
6581 * config/i386/i386-expand.c (ix86_expand_int_movcc): Expand
6582 signed MIN_EXPR against zero as "x < 0 ? x : 0" instead of
6583 "x <= 0 ? x : 0" to enable sign_bit_compare_p optimizations.
6584
6585 2020-08-10 Aldy Hernandez <aldyh@redhat.com>
6586
6587 * value-range.h (gt_ggc_mx): Declare inline.
6588 (gt_pch_nx): Same.
6589
6590 2020-08-10 Marc Glisse <marc.glisse@inria.fr>
6591
6592 PR tree-optimization/95433
6593 * match.pd (X * C1 == C2): Handle wrapping overflow.
6594 * expr.c (maybe_optimize_mod_cmp): Qualify call to mod_inv.
6595 (mod_inv): Move...
6596 * wide-int.cc (mod_inv): ... here.
6597 * wide-int.h (mod_inv): Declare it.
6598
6599 2020-08-10 Jan Hubicka <hubicka@ucw.cz>
6600
6601 * predict.c (filter_predictions): Document semantics of filter.
6602 (equal_edge_p): Rename to ...
6603 (not_equal_edge_p): ... this; reverse semantics.
6604 (remove_predictions_associated_with_edge): Fix.
6605
6606 2020-08-10 Hongtao Liu <hongtao.liu@intel.com>
6607
6608 PR target/96243
6609 * config/i386/i386-expand.c (ix86_expand_sse_cmp): Refine for
6610 maskcmp.
6611 (ix86_expand_mask_vec_cmp): Change prototype.
6612 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): Change prototype.
6613 * config/i386/i386.c (ix86_print_operand): Remove operand
6614 modifier 'I'.
6615 * config/i386/sse.md
6616 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>): Deleted.
6617 (*<avx512>_cmp<mode>3<mask_scalar_merge_name>): Ditto.
6618 (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
6619 (*<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
6620 avx512f_maskcmp<mode>3): Ditto.
6621
6622 2020-08-09 Roger Sayle <roger@nextmovesoftware.com>
6623
6624 * expmed.c (init_expmed_one_conv): Restore all->reg's mode.
6625 (init_expmed_one_mode): Set all->reg to desired mode.
6626
6627 2020-08-08 Peter Bergner <bergner@linux.ibm.com>
6628
6629 PR target/96530
6630 * config/rs6000/rs6000.c (rs6000_invalid_conversion): Use canonical
6631 types for type comparisons. Refactor code to simplify it.
6632
6633 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6634
6635 PR fortran/93553
6636 * tree-nested.c (convert_nonlocal_omp_clauses): For
6637 OMP_CLAUSE_REDUCTION, OMP_CLAUSE_LASTPRIVATE and OMP_CLAUSE_LINEAR
6638 save info->new_local_var_chain around walks of the clause gimple
6639 sequences and declare_vars if needed into the sequence.
6640
6641 2020-08-08 Jakub Jelinek <jakub@redhat.com>
6642
6643 PR tree-optimization/96424
6644 * omp-expand.c: Include tree-eh.h.
6645 (expand_omp_for_init_vars): Handle -fexceptions -fnon-call-exceptions
6646 by forcing floating point comparison into a bool temporary.
6647
6648 2020-08-07 Marc Glisse <marc.glisse@inria.fr>
6649
6650 * generic-match-head.c (optimize_vectors_before_lowering_p): New
6651 function.
6652 * gimple-match-head.c (optimize_vectors_before_lowering_p):
6653 Likewise.
6654 * match.pd ((v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): Use it.
6655
6656 2020-08-07 Richard Biener <rguenther@suse.de>
6657
6658 PR tree-optimization/96514
6659 * tree-if-conv.c (if_convertible_bb_p): If the last stmt
6660 is a call that is control-altering, fail.
6661
6662 2020-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
6663
6664 * config/bpf/bpf.md: Remove trailing whitespaces.
6665 * config/bpf/constraints.md: Likewise.
6666 * config/bpf/predicates.md: Likewise.
6667
6668 2020-08-07 Michael Meissner <meissner@linux.ibm.com>
6669
6670 * config/rs6000/rs6000.md (bswaphi2_reg): Add ISA 3.1 support.
6671 (bswapsi2_reg): Add ISA 3.1 support.
6672 (bswapdi2): Rename bswapdi2_xxbrd to bswapdi2_brd.
6673 (bswapdi2_brd,bswapdi2_xxbrd): Rename. Add ISA 3.1 support.
6674
6675 2020-08-07 Alan Modra <amodra@gmail.com>
6676
6677 PR target/96493
6678 * config/rs6000/predicates.md (current_file_function_operand): Don't
6679 accept functions that differ in r2 usage.
6680
6681 2020-08-06 Hans-Peter Nilsson <hp@bitrange.com>
6682
6683 * config/mmix/mmix.md (MM): New mode_iterator.
6684 ("mov<mode>"): New expander to expand for all MM-modes.
6685 ("*movqi_expanded", "*movhi_expanded", "*movsi_expanded")
6686 ("*movsf_expanded", "*movdf_expanded"): Rename from the
6687 corresponding mov<M> named pattern. Add to the condition that
6688 either operand must be a register_operand.
6689 ("*movdi_expanded"): Similar, but also allow STCO in the condition.
6690
6691 2020-08-06 Richard Sandiford <richard.sandiford@arm.com>
6692
6693 PR target/96191
6694 * config/arm/arm.md (arm_stack_protect_test_insn): Zero out
6695 operand 2 after use.
6696 * config/arm/thumb1.md (thumb1_stack_protect_test_insn): Likewise.
6697
6698 2020-08-06 Peter Bergner <bergner@linux.ibm.com>
6699
6700 PR target/96446
6701 * config/rs6000/mma.md (*movpxi): Add xxsetaccz generation.
6702 Disable split for zero constant source operand.
6703 (mma_xxsetaccz): Change to define_expand. Call gen_movpxi.
6704
6705 2020-08-06 Jakub Jelinek <jakub@redhat.com>
6706
6707 PR tree-optimization/96480
6708 * tree-ssa-reassoc.c (suitable_cond_bb): Add TEST_SWAPPED_P argument.
6709 If TEST_BB ends in cond and has one edge to *OTHER_BB and another
6710 through an empty bb to that block too, if PHI args don't match, retry
6711 them through the other path from TEST_BB.
6712 (maybe_optimize_range_tests): Adjust callers. Handle such LAST_BB
6713 through inversion of the condition.
6714
6715 2020-08-06 Jose E. Marchesi <jose.marchesi@oracle.com>
6716
6717 * config/bpf/bpf-helpers.h (KERNEL_HELPER): Define.
6718 (KERNEL_VERSION): Remove.
6719 * config/bpf/bpf-helpers.def: Delete.
6720 * config/bpf/bpf.c (bpf_handle_fndecl_attribute): New function.
6721 (bpf_attribute_table): Define.
6722 (bpf_helper_names): Delete.
6723 (bpf_helper_code): Likewise.
6724 (enum bpf_builtins): Adjust to new helpers mechanism.
6725 (bpf_output_call): Likewise.
6726 (bpf_init_builtins): Likewise.
6727 (bpf_init_builtins): Likewise.
6728 * doc/extend.texi (BPF Function Attributes): New section.
6729 (BPF Kernel Helpers): Delete section.
6730
6731 2020-08-06 Richard Biener <rguenther@suse.de>
6732
6733 PR tree-optimization/96491
6734 * tree-ssa-sink.c (sink_common_stores_to_bb): Avoid
6735 sinking across abnormal edges.
6736
6737 2020-08-06 Richard Biener <rguenther@suse.de>
6738
6739 PR tree-optimization/96483
6740 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
6741 POLY_INT_CST.
6742
6743 2020-08-06 Richard Biener <rguenther@suse.de>
6744
6745 * graphite-isl-ast-to-gimple.c (ivs_params): Use hash_map instead
6746 of std::map.
6747 (ivs_params_clear): Adjust.
6748 (gcc_expression_from_isl_ast_expr_id): Likewise.
6749 (graphite_create_new_loop): Likewise.
6750 (add_parameters_to_ivs_params): Likewise.
6751
6752 2020-08-06 Roger Sayle <roger@nextmovesoftware.com>
6753 Uroš Bizjak <ubizjak@gmail.com>
6754
6755 * config/i386/i386.md (MAXMIN_IMODE): No longer needed.
6756 (<maxmin><mode>3): Support SWI248 and general_operand for
6757 second operand, when TARGET_CMOVE.
6758 (<maxmin><mode>3_1 splitter): Optimize comparisons against
6759 0, 1 and -1 to use "test" instead of "cmp".
6760 (*<maxmin>di3_doubleword): Likewise, allow general_operand
6761 and enable on TARGET_CMOVE.
6762 (peephole2): Convert clearing a register after a flag setting
6763 instruction into an xor followed by the original flag setter.
6764
6765 2020-08-06 Gerald Pfeifer <gerald@pfeifer.com>
6766
6767 * ipa-fnsummary.c (INCLUDE_VECTOR): Define.
6768 Remove direct inclusion of <vector>.
6769
6770 2020-08-06 Kewen Lin <linkw@gcc.gnu.org>
6771
6772 * config/rs6000/rs6000.c (rs6000_adjust_vect_cost_per_loop): New
6773 function.
6774 (rs6000_finish_cost): Call rs6000_adjust_vect_cost_per_loop.
6775 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Add cost
6776 modeling for vector with length.
6777 (vect_rgroup_iv_might_wrap_p): New function, factored out from...
6778 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): ...this.
6779 Update function comment.
6780 * tree-vect-stmts.c (vect_gen_len): Update function comment.
6781 * tree-vectorizer.h (vect_rgroup_iv_might_wrap_p): New declare.
6782
6783 2020-08-06 Kewen Lin <linkw@linux.ibm.com>
6784
6785 * tree-vectorizer.c (try_vectorize_loop_1): Skip the epilogue loops
6786 for dbgcnt check.
6787
6788 2020-08-05 Marc Glisse <marc.glisse@inria.fr>
6789
6790 PR tree-optimization/95906
6791 PR target/70314
6792 * match.pd ((c ? a : b) op d, (c ? a : b) op (c ? d : e),
6793 (v ? w : 0) ? a : b, c1 ? c2 ? a : b : b): New transformations.
6794 (op (c ? a : b)): Update to match the new transformations.
6795
6796 2020-08-05 Richard Sandiford <richard.sandiford@arm.com>
6797
6798 PR target/96191
6799 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Set the
6800 CC register directly, instead of a GPR. Replace the original GPR
6801 destination with an extra scratch register. Zero out operand 3
6802 after use.
6803 (stack_protect_test): Update accordingly.
6804
6805 2020-08-05 Richard Sandiford <richard.sandiford@arm.com>
6806
6807 * config/aarch64/aarch64.md (load_pair_sw_<SX:mode><SX2:mode>)
6808 (load_pair_dw_<DX:mode><DX2:mode>, load_pair_dw_tftf)
6809 (store_pair_sw_<SX:mode><SX2:mode>)
6810 (store_pair_dw_<DX:mode><DX2:mode>, store_pair_dw_tftf)
6811 (*load_pair_extendsidi2_aarch64)
6812 (*load_pair_zero_extendsidi2_aarch64): Use %z for the memory operand.
6813 * config/aarch64/aarch64-simd.md (load_pair<DREG:mode><DREG2:mode>)
6814 (vec_store_pair<DREG:mode><DREG2:mode>, load_pair<VQ:mode><VQ2:mode>)
6815 (vec_store_pair<VQ:mode><VQ2:mode>): Likewise.
6816
6817 2020-08-05 Richard Biener <rguenther@suse.de>
6818
6819 * tree-ssa-loop-im.c (invariantness_dom_walker): Remove.
6820 (invariantness_dom_walker::before_dom_children): Move to ...
6821 (compute_invariantness): ... this function.
6822 (move_computations): Inline ...
6823 (tree_ssa_lim): ... here, share RPO order and avoid some
6824 cfun references.
6825 (analyze_memory_references): Remove sorting of location
6826 lists, instead assert they are sorted already when checking.
6827 (prev_flag_edges): Remove.
6828 (execute_sm_if_changed): Pass down and adjust prev edge state.
6829 (execute_sm_exit): Likewise.
6830 (hoist_memory_references): Likewise. Commit edge insertions
6831 of each processed exit.
6832 (store_motion_loop): Do not commit edge insertions on all
6833 edges in the function.
6834 (tree_ssa_lim_initialize): Do not call alloc_aux_for_edges.
6835 (tree_ssa_lim_finalize): Do not call free_aux_for_edges.
6836
6837 2020-08-05 Richard Biener <rguenther@suse.de>
6838
6839 * genmatch.c (fail_label): New global.
6840 (expr::gen_transform): Branch to fail_label instead of
6841 returning. Fix indent of call argument checking.
6842 (dt_simplify::gen_1): Compute and emit fail_label, branch
6843 to it instead of returning early.
6844
6845 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6846
6847 * omp-expand.c (expand_omp_for): Don't disallow combined non-rectangular
6848 loops.
6849
6850 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6851
6852 PR middle-end/96459
6853 * omp-low.c (lower_omp_taskreg): Call lower_reduction_clauses even in
6854 for host teams.
6855
6856 2020-08-05 Jakub Jelinek <jakub@redhat.com>
6857
6858 * omp-expand.c (expand_omp_for_init_counts): Remember
6859 first_inner_iterations, factor and n1o from the number of iterations
6860 computation in *fd.
6861 (expand_omp_for_init_vars): Use more efficient logical iteration number
6862 to actual iterator values computation even for non-rectangular loops
6863 where number of loop iterations could not be computed at compile time.
6864
6865 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
6866
6867 * config/rs6000/altivec.h (vec_blendv, vec_permx): Add define.
6868 * config/rs6000/altivec.md (UNSPEC_XXBLEND, UNSPEC_XXPERMX.): New
6869 unspecs.
6870 (VM3): New define_mode.
6871 (VM3_char): New define_attr.
6872 (xxblend_<mode> mode VM3): New define_insn.
6873 (xxpermx): New define_expand.
6874 (xxpermx_inst): New define_insn.
6875 * config/rs6000/rs6000-builtin.def (VXXBLEND_V16QI, VXXBLEND_V8HI,
6876 VXXBLEND_V4SI, VXXBLEND_V2DI, VXXBLEND_V4SF, VXXBLEND_V2DF): New
6877 BU_P10V_3 definitions.
6878 (XXBLEND): New BU_P10_OVERLOAD_3 definition.
6879 (XXPERMX): New BU_P10_OVERLOAD_4 definition.
6880 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6881 (P10_BUILTIN_VXXPERMX): Add if statement.
6882 * config/rs6000/rs6000-call.c (P10_BUILTIN_VXXBLEND_V16QI,
6883 P10_BUILTIN_VXXBLEND_V8HI, P10_BUILTIN_VXXBLEND_V4SI,
6884 P10_BUILTIN_VXXBLEND_V2DI, P10_BUILTIN_VXXBLEND_V4SF,
6885 P10_BUILTIN_VXXBLEND_V2DF, P10_BUILTIN_VXXPERMX): Define
6886 overloaded arguments.
6887 (rs6000_expand_quaternop_builtin): Add if case for CODE_FOR_xxpermx.
6888 (builtin_quaternary_function_type): Add v16uqi_type and xxpermx_type
6889 variables, add case statement for P10_BUILTIN_VXXPERMX.
6890 (builtin_function_type): Add case statements for
6891 P10_BUILTIN_VXXBLEND_V16QI, P10_BUILTIN_VXXBLEND_V8HI,
6892 P10_BUILTIN_VXXBLEND_V4SI, P10_BUILTIN_VXXBLEND_V2DI.
6893 * doc/extend.texi: Add documentation for vec_blendv and vec_permx.
6894
6895 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
6896
6897 * config/rs6000/altivec.h (vec_splati, vec_splatid, vec_splati_ins):
6898 Add defines.
6899 * config/rs6000/altivec.md (UNSPEC_XXSPLTIW, UNSPEC_XXSPLTID,
6900 UNSPEC_XXSPLTI32DX): New.
6901 (vxxspltiw_v4si, vxxspltiw_v4sf_inst, vxxspltidp_v2df_inst,
6902 vxxsplti32dx_v4si_inst, vxxsplti32dx_v4sf_inst): New define_insn.
6903 (vxxspltiw_v4sf, vxxspltidp_v2df, vxxsplti32dx_v4si,
6904 vxxsplti32dx_v4sf.): New define_expands.
6905 * config/rs6000/predicates.md (u1bit_cint_operand,
6906 s32bit_cint_operand, c32bit_cint_operand): New predicates.
6907 * config/rs6000/rs6000-builtin.def (VXXSPLTIW_V4SI, VXXSPLTIW_V4SF,
6908 VXXSPLTID): New definitions.
6909 (VXXSPLTI32DX_V4SI, VXXSPLTI32DX_V4SF): New BU_P10V_3
6910 definitions.
6911 (XXSPLTIW, XXSPLTID): New definitions.
6912 (XXSPLTI32DX): Add definitions.
6913 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XXSPLTIW,
6914 P10_BUILTIN_VEC_XXSPLTID, P10_BUILTIN_VEC_XXSPLTI32DX):
6915 New definitions.
6916 * config/rs6000/rs6000-protos.h (rs6000_constF32toI32): New extern
6917 declaration.
6918 * config/rs6000/rs6000.c (rs6000_constF32toI32): New function.
6919 * doc/extend.texi: Add documentation for vec_splati,
6920 vec_splatid, and vec_splati_ins.
6921
6922 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
6923
6924 * config/rs6000/altivec.h (vec_sldb, vec_srdb): New defines.
6925 * config/rs6000/altivec.md (UNSPEC_SLDB, UNSPEC_SRDB): New.
6926 (SLDB_lr): New attribute.
6927 (VSHIFT_DBL_LR): New iterator.
6928 (vs<SLDB_lr>db_<mode>): New define_insn.
6929 * config/rs6000/rs6000-builtin.def (VSLDB_V16QI, VSLDB_V8HI,
6930 VSLDB_V4SI, VSLDB_V2DI, VSRDB_V16QI, VSRDB_V8HI, VSRDB_V4SI,
6931 VSRDB_V2DI): New BU_P10V_3 definitions.
6932 (SLDB, SRDB): New BU_P10_OVERLOAD_3 definitions.
6933 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_SLDB,
6934 P10_BUILTIN_VEC_SRDB): New definitions.
6935 (rs6000_expand_ternop_builtin) [CODE_FOR_vsldb_v16qi,
6936 CODE_FOR_vsldb_v8hi, CODE_FOR_vsldb_v4si, CODE_FOR_vsldb_v2di,
6937 CODE_FOR_vsrdb_v16qi, CODE_FOR_vsrdb_v8hi, CODE_FOR_vsrdb_v4si,
6938 CODE_FOR_vsrdb_v2di]: Add clauses.
6939 * doc/extend.texi: Add description for vec_sldb and vec_srdb.
6940
6941 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
6942
6943 * config/rs6000/altivec.h: Add define for vec_replace_elt and
6944 vec_replace_unaligned.
6945 * config/rs6000/vsx.md (UNSPEC_REPLACE_ELT, UNSPEC_REPLACE_UN): New
6946 unspecs.
6947 (REPLACE_ELT): New mode iterator.
6948 (REPLACE_ELT_char, REPLACE_ELT_sh, REPLACE_ELT_max): New mode attributes.
6949 (vreplace_un_<mode>, vreplace_elt_<mode>_inst): New.
6950 * config/rs6000/rs6000-builtin.def (VREPLACE_ELT_V4SI,
6951 VREPLACE_ELT_UV4SI, VREPLACE_ELT_V4SF, VREPLACE_ELT_UV2DI,
6952 VREPLACE_ELT_V2DF, VREPLACE_UN_V4SI, VREPLACE_UN_UV4SI,
6953 VREPLACE_UN_V4SF, VREPLACE_UN_V2DI, VREPLACE_UN_UV2DI,
6954 VREPLACE_UN_V2DF, (REPLACE_ELT, REPLACE_UN, VREPLACE_ELT_V2DI): New builtin
6955 entries.
6956 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_REPLACE_ELT,
6957 P10_BUILTIN_VEC_REPLACE_UN): New builtin argument definitions.
6958 (rs6000_expand_quaternop_builtin): Add 3rd argument checks for
6959 CODE_FOR_vreplace_elt_v4si, CODE_FOR_vreplace_elt_v4sf,
6960 CODE_FOR_vreplace_un_v4si, CODE_FOR_vreplace_un_v4sf.
6961 (builtin_function_type) [P10_BUILTIN_VREPLACE_ELT_UV4SI,
6962 P10_BUILTIN_VREPLACE_ELT_UV2DI, P10_BUILTIN_VREPLACE_UN_UV4SI,
6963 P10_BUILTIN_VREPLACE_UN_UV2DI]: New cases.
6964 * doc/extend.texi: Add description for vec_replace_elt and
6965 vec_replace_unaligned builtins.
6966
6967 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
6968
6969 * config/rs6000/altivec.h (vec_insertl, vec_inserth): New defines.
6970 * config/rs6000/rs6000-builtin.def (VINSERTGPRBL, VINSERTGPRHL,
6971 VINSERTGPRWL, VINSERTGPRDL, VINSERTVPRBL, VINSERTVPRHL, VINSERTVPRWL,
6972 VINSERTGPRBR, VINSERTGPRHR, VINSERTGPRWR, VINSERTGPRDR, VINSERTVPRBR,
6973 VINSERTVPRHR, VINSERTVPRWR): New builtins.
6974 (INSERTL, INSERTH): New builtins.
6975 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_INSERTL,
6976 P10_BUILTIN_VEC_INSERTH): New overloaded definitions.
6977 (P10_BUILTIN_VINSERTGPRBL, P10_BUILTIN_VINSERTGPRHL,
6978 P10_BUILTIN_VINSERTGPRWL, P10_BUILTIN_VINSERTGPRDL,
6979 P10_BUILTIN_VINSERTVPRBL, P10_BUILTIN_VINSERTVPRHL,
6980 P10_BUILTIN_VINSERTVPRWL): Add case entries.
6981 * config/rs6000/vsx.md (define_c_enum): Add UNSPEC_INSERTL,
6982 UNSPEC_INSERTR.
6983 (define_expand): Add vinsertvl_<mode>, vinsertvr_<mode>,
6984 vinsertgl_<mode>, vinsertgr_<mode>, mode is VI2.
6985 (define_ins): vinsertvl_internal_<mode>, vinsertvr_internal_<mode>,
6986 vinsertgl_internal_<mode>, vinsertgr_internal_<mode>, mode VEC_I.
6987 * doc/extend.texi: Add documentation for vec_insertl, vec_inserth.
6988
6989 2020-08-05 2020-08-04 Carl Love <cel@us.ibm.com>
6990
6991 * config/rs6000/altivec.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
6992 (vextractl<mode>, vextractr<mode>)
6993 (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
6994 (VI2): Move to ...
6995 * config/rs6000/vsx.md: (UNSPEC_EXTRACTL, UNSPEC_EXTRACTR)
6996 (vextractl<mode>, vextractr<mode>)
6997 (vextractl<mode>_internal, vextractr<mode>_internal for mode VI2)
6998 (VI2): ..here.
6999 * doc/extend.texi: Update documentation for vec_extractl.
7000 Replace builtin name vec_extractr with vec_extracth. Update
7001 description of vec_extracth.
7002
7003 2020-08-04 Jim Wilson <jimw@sifive.com>
7004
7005 * doc/invoke.texi (AArch64 Options): Delete duplicate
7006 -mstack-protector-guard docs.
7007
7008 2020-08-04 Roger Sayle <roger@nextmovesoftware.com>
7009
7010 * config/nvptx/nvptx.md (smulhi3_highpart, smulsi3_highpart)
7011 (umulhi3_highpart, umulsi3_highpart): New instructions.
7012
7013 2020-08-04 Andrew Stubbs <ams@codesourcery.com>
7014
7015 * config/gcn/gcn-run.c (R_AMDGPU_NONE): Delete.
7016 (R_AMDGPU_ABS32_LO): Delete.
7017 (R_AMDGPU_ABS32_HI): Delete.
7018 (R_AMDGPU_ABS64): Delete.
7019 (R_AMDGPU_REL32): Delete.
7020 (R_AMDGPU_REL64): Delete.
7021 (R_AMDGPU_ABS32): Delete.
7022 (R_AMDGPU_GOTPCREL): Delete.
7023 (R_AMDGPU_GOTPCREL32_LO): Delete.
7024 (R_AMDGPU_GOTPCREL32_HI): Delete.
7025 (R_AMDGPU_REL32_LO): Delete.
7026 (R_AMDGPU_REL32_HI): Delete.
7027 (reserved): Delete.
7028 (R_AMDGPU_RELATIVE64): Delete.
7029
7030 2020-08-04 Omar Tahir <omar.tahir@arm.com>
7031
7032 * config/arm/arm-cpus.in (armv8.1-m.main): Tune for Cortex-M55.
7033
7034 2020-08-04 Hu Jiangping <hujiangping@cn.fujitsu.com>
7035
7036 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Delete
7037 redundant extra_cost variable.
7038
7039 2020-08-04 Zhiheng Xie <xiezhiheng@huawei.com>
7040
7041 * config/aarch64/aarch64-builtins.c (aarch64_call_properties):
7042 Use FLOAT_MODE_P macro instead of enumerating all floating-point
7043 modes and add global flag FLAG_AUTO_FP.
7044
7045 2020-08-04 Jakub Jelinek <jakub@redhat.com>
7046
7047 * doc/extend.texi (symver): Add @cindex for symver function attribute.
7048
7049 2020-08-04 Marc Glisse <marc.glisse@inria.fr>
7050
7051 PR tree-optimization/95433
7052 * match.pd (X * C1 == C2): New transformation.
7053
7054 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
7055
7056 * gimple-ssa-sprintf.c (get_int_range): Adjust for irange API.
7057 (format_integer): Same.
7058 (handle_printf_call): Same.
7059
7060 2020-08-04 Andrew Stubbs <ams@codesourcery.com>
7061
7062 * config/gcn/gcn.md ("<expander>ti3"): New.
7063
7064 2020-08-04 Richard Biener <rguenther@suse.de>
7065
7066 PR tree-optimization/88240
7067 * tree-ssa-sccvn.h (vn_reference_s::punned): New flag.
7068 * tree-ssa-sccvn.c (vn_reference_insert): Initialize punned.
7069 (vn_reference_insert_pieces): Likewise.
7070 (visit_reference_op_call): Likewise.
7071 (visit_reference_op_load): Track whether a ref was punned.
7072 * tree-ssa-pre.c (do_hoist_insertion): Refuse to perform hoist
7073 insertion on punned floating point loads.
7074
7075 2020-08-04 Sudakshina Das <sudi.das@arm.com>
7076
7077 * config/aarch64/aarch64.c (aarch64_gen_store_pair): Add case
7078 for E_V4SImode.
7079 (aarch64_gen_load_pair): Likewise.
7080 (aarch64_copy_one_block_and_progress_pointers): Handle 256 bit copy.
7081 (aarch64_expand_cpymem): Expand copy_limit to 256bits where
7082 appropriate.
7083
7084 2020-08-04 Andrea Corallo <andrea.corallo@arm.com>
7085
7086 * config/aarch64/aarch64.md (aarch64_fjcvtzs): Add missing
7087 clobber.
7088 * doc/sourcebuild.texi (aarch64_fjcvtzs_hw) Document new
7089 target supports option.
7090
7091 2020-08-04 Tom de Vries <tdevries@suse.de>
7092
7093 PR target/96428
7094 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Handle V2SI/V2DI.
7095
7096 2020-08-04 Jakub Jelinek <jakub@redhat.com>
7097
7098 PR middle-end/96426
7099 * tree-vect-generic.c (expand_vector_conversion): Replace .VEC_CONVERT
7100 call with GIMPLE_NOP if there is no lhs.
7101
7102 2020-08-04 Jakub Jelinek <jakub@redhat.com>
7103
7104 PR debug/96354
7105 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Add IS_DEBUG
7106 argument. Return false instead of gcc_unreachable if it is true and
7107 get_addr_base_and_unit_offset returns NULL.
7108 (fold_stmt_1) <case GIMPLE_DEBUG>: Adjust caller.
7109
7110 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
7111
7112 * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional):
7113 Call is_gimple_min_invariant dropped from previous patch.
7114
7115 2020-08-04 Jakub Jelinek <jakub@redhat.com>
7116
7117 * omp-expand.c (expand_omp_for_init_counts): For triangular loops
7118 compute number of iterations at runtime more efficiently.
7119 (expand_omp_for_init_vars): Adjust immediate dominators.
7120 (extract_omp_for_update_vars): Likewise.
7121
7122 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
7123
7124 * vr-values.c (simplify_using_ranges::two_valued_val_range_p):
7125 Use irange API.
7126
7127 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
7128
7129 * vr-values.c (simplify_conversion_using_ranges): Convert to irange API.
7130
7131 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
7132
7133 * vr-values.c (test_for_singularity): Use irange API.
7134 (simplify_using_ranges::simplify_cond_using_ranges_1): Do not
7135 special case VR_RANGE.
7136
7137 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
7138
7139 * vr-values.c (simplify_using_ranges::vrp_evaluate_conditional): Adjust
7140 for irange API.
7141
7142 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
7143
7144 * vr-values.c (simplify_using_ranges::op_with_boolean_value_range_p): Adjust
7145 for irange API.
7146
7147 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
7148
7149 * tree-ssanames.c (get_range_info): Use irange instead of value_range.
7150 * tree-ssanames.h (get_range_info): Same.
7151
7152 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
7153
7154 * fold-const.c (expr_not_equal_to): Adjust for irange API.
7155
7156 2020-08-04 Aldy Hernandez <aldyh@redhat.com>
7157
7158 * builtins.c (determine_block_size): Remove ad-hoc range canonicalization.
7159
7160 2020-08-04 Xionghu Luo <luoxhu@linux.ibm.com>
7161
7162 PR rtl-optimization/71309
7163 * dse.c (find_shift_sequence): Use subreg of shifted from high part
7164 register to avoid loading from address.
7165
7166 2020-08-03 Jonathan Wakely <jwakely@redhat.com>
7167
7168 * doc/cpp.texi (Variadic Macros): Use the exact ... token in
7169 code examples.
7170
7171 2020-08-03 Nathan Sidwell <nathan@acm.org>
7172
7173 * doc/invoke.texi: Refer to c++20
7174
7175 2020-08-03 Julian Brown <julian@codesourcery.com>
7176 Thomas Schwinge <thomas@codesourcery.com>
7177
7178 * gimplify.c (gimplify_omp_target_update): Allow GOMP_MAP_TO_PSET
7179 without a preceding data-movement mapping.
7180
7181 2020-08-03 Iain Sandoe <iain@sandoe.co.uk>
7182
7183 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): UNDEF before
7184 use.
7185 (DEF_MIN_OSX_VERSION): Only define if there's no existing
7186 def.
7187
7188 2020-08-03 Iain Sandoe <iain@sandoe.co.uk>
7189
7190 * config/darwin.c (IN_TARGET_CODE): Remove.
7191 (darwin_mergeable_constant_section): Handle poly-int machine modes.
7192 (machopic_select_rtx_section): Likewise.
7193
7194 2020-08-03 Aldy Hernandez <aldyh@redhat.com>
7195
7196 PR tree-optimization/96430
7197 * range-op.cc (operator_tests): Do not shift by 31 on targets with
7198 integer's smaller than 32 bits.
7199
7200 2020-08-03 Martin Jambor <mjambor@suse.cz>
7201
7202 * hsa-brig-format.h: Moved to brig/brigfrontend.
7203 * hsa-brig.c: Removed.
7204 * hsa-builtins.def: Likewise.
7205 * hsa-common.c: Likewise.
7206 * hsa-common.h: Likewise.
7207 * hsa-dump.c: Likewise.
7208 * hsa-gen.c: Likewise.
7209 * hsa-regalloc.c: Likewise.
7210 * ipa-hsa.c: Likewise.
7211 * omp-grid.c: Likewise.
7212 * omp-grid.h: Likewise.
7213 * Makefile.in (BUILTINS_DEF): Remove hsa-builtins.def.
7214 (OBJS): Remove hsa-common.o, hsa-gen.o, hsa-regalloc.o, hsa-brig.o,
7215 hsa-dump.o, ipa-hsa.c and omp-grid.o.
7216 (GTFILES): Removed hsa-common.c and omp-expand.c.
7217 * builtins.def: Remove processing of hsa-builtins.def.
7218 (DEF_HSA_BUILTIN): Remove.
7219 * common.opt (flag_disable_hsa): Remove.
7220 (-Whsa): Ignore.
7221 * config.in (ENABLE_HSA): Removed.
7222 * configure.ac: Removed handling configuration for hsa offloading.
7223 (ENABLE_HSA): Removed.
7224 * configure: Regenerated.
7225 * doc/install.texi (--enable-offload-targets): Remove hsa from the
7226 example.
7227 (--with-hsa-runtime): Reword to reference any HSA run-time, not
7228 specifically HSA offloading.
7229 * doc/invoke.texi (Option Summary): Remove -Whsa.
7230 (Warning Options): Likewise.
7231 (Optimize Options): Remove hsa-gen-debug-stores.
7232 * doc/passes.texi (Regular IPA passes): Remove section on IPA HSA
7233 pass.
7234 * gimple-low.c (lower_stmt): Remove GIMPLE_OMP_GRID_BODY case.
7235 * gimple-pretty-print.c (dump_gimple_omp_for): Likewise.
7236 (dump_gimple_omp_block): Likewise.
7237 (pp_gimple_stmt_1): Likewise.
7238 * gimple-walk.c (walk_gimple_stmt): Likewise.
7239 * gimple.c (gimple_build_omp_grid_body): Removed function.
7240 (gimple_copy): Remove GIMPLE_OMP_GRID_BODY case.
7241 * gimple.def (GIMPLE_OMP_GRID_BODY): Removed.
7242 * gimple.h (gf_mask): Removed GF_OMP_PARALLEL_GRID_PHONY,
7243 OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY,
7244 GF_OMP_FOR_GRID_INTRA_GROUP, GF_OMP_FOR_GRID_GROUP_ITER and
7245 GF_OMP_TEAMS_GRID_PHONY. Renumbered GF_OMP_FOR_KIND_SIMD and
7246 GF_OMP_TEAMS_HOST.
7247 (gimple_build_omp_grid_body): Removed declaration.
7248 (gimple_has_substatements): Remove GIMPLE_OMP_GRID_BODY case.
7249 (gimple_omp_for_grid_phony): Removed.
7250 (gimple_omp_for_set_grid_phony): Likewise.
7251 (gimple_omp_for_grid_intra_group): Likewise.
7252 (gimple_omp_for_grid_intra_group): Likewise.
7253 (gimple_omp_for_grid_group_iter): Likewise.
7254 (gimple_omp_for_set_grid_group_iter): Likewise.
7255 (gimple_omp_parallel_grid_phony): Likewise.
7256 (gimple_omp_parallel_set_grid_phony): Likewise.
7257 (gimple_omp_teams_grid_phony): Likewise.
7258 (gimple_omp_teams_set_grid_phony): Likewise.
7259 (CASE_GIMPLE_OMP): Remove GIMPLE_OMP_GRID_BODY case.
7260 * lto-section-in.c (lto_section_name): Removed hsa.
7261 * lto-streamer.h (lto_section_type): Removed LTO_section_ipa_hsa.
7262 * lto-wrapper.c (compile_images_for_offload_targets): Remove special
7263 handling of hsa.
7264 * omp-expand.c: Do not include hsa-common.h and gt-omp-expand.h.
7265 (parallel_needs_hsa_kernel_p): Removed.
7266 (grid_launch_attributes_trees): Likewise.
7267 (grid_launch_attributes_trees): Likewise.
7268 (grid_create_kernel_launch_attr_types): Likewise.
7269 (grid_insert_store_range_dim): Likewise.
7270 (grid_get_kernel_launch_attributes): Likewise.
7271 (get_target_arguments): Remove code passing HSA grid sizes.
7272 (grid_expand_omp_for_loop): Remove.
7273 (grid_arg_decl_map): Likewise.
7274 (grid_remap_kernel_arg_accesses): Likewise.
7275 (grid_expand_target_grid_body): Likewise.
7276 (expand_omp): Remove call to grid_expand_target_grid_body.
7277 (omp_make_gimple_edges): Remove GIMPLE_OMP_GRID_BODY case.
7278 * omp-general.c: Do not include hsa-common.h.
7279 (omp_maybe_offloaded): Do not check for HSA offloading.
7280 (omp_context_selector_matches): Likewise.
7281 * omp-low.c: Do not include hsa-common.h and omp-grid.h.
7282 (build_outer_var_ref): Remove handling of GIMPLE_OMP_GRID_BODY.
7283 (scan_sharing_clauses): Remove handling of OMP_CLAUSE__GRIDDIM_.
7284 (scan_omp_parallel): Remove handling of the phoney variant.
7285 (check_omp_nesting_restrictions): Remove handling of
7286 GIMPLE_OMP_GRID_BODY and GF_OMP_FOR_KIND_GRID_LOOP.
7287 (scan_omp_1_stmt): Remove handling of GIMPLE_OMP_GRID_BODY.
7288 (lower_omp_for_lastprivate): Remove handling of gridified loops.
7289 (lower_omp_for): Remove phony loop handling.
7290 (lower_omp_taskreg): Remove phony construct handling.
7291 (lower_omp_teams): Likewise.
7292 (lower_omp_grid_body): Removed.
7293 (lower_omp_1): Remove GIMPLE_OMP_GRID_BODY case.
7294 (execute_lower_omp): Do not call omp_grid_gridify_all_targets.
7295 * opts.c (common_handle_option): Do not handle hsa when processing
7296 OPT_foffload_.
7297 * params.opt (hsa-gen-debug-stores): Remove.
7298 * passes.def: Remove pass_ipa_hsa and pass_gen_hsail.
7299 * timevar.def: Remove TV_IPA_HSA.
7300 * toplev.c: Do not include hsa-common.h.
7301 (compile_file): Do not call hsa_output_brig.
7302 * tree-core.h (enum omp_clause_code): Remove OMP_CLAUSE__GRIDDIM_.
7303 (tree_omp_clause): Remove union field dimension.
7304 * tree-nested.c (convert_nonlocal_omp_clauses): Remove the
7305 OMP_CLAUSE__GRIDDIM_ case.
7306 (convert_local_omp_clauses): Likewise.
7307 * tree-pass.h (make_pass_gen_hsail): Remove declaration.
7308 (make_pass_ipa_hsa): Likewise.
7309 * tree-pretty-print.c (dump_omp_clause): Remove GIMPLE_OMP_GRID_BODY
7310 case.
7311 * tree.c (omp_clause_num_ops): Remove the element corresponding to
7312 OMP_CLAUSE__GRIDDIM_.
7313 (omp_clause_code_name): Likewise.
7314 (walk_tree_1): Remove GIMPLE_OMP_GRID_BODY case.
7315 * tree.h (OMP_CLAUSE__GRIDDIM__DIMENSION): Remove.
7316 (OMP_CLAUSE__GRIDDIM__SIZE): Likewise.
7317 (OMP_CLAUSE__GRIDDIM__GROUP): Likewise.
7318
7319 2020-08-03 Bu Le <bule1@huawei.com>
7320
7321 * config/aarch64/aarch64-sve.md (sub<mode>3): Add support for
7322 unpacked vectors.
7323
7324 2020-08-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7325
7326 * config/msp430/msp430.h (ASM_SPEC): Don't pass on "-md" option.
7327
7328 2020-08-03 Yunde Zhong <zhongyunde@huawei.com>
7329
7330 PR rtl-optimization/95696
7331 * regrename.c (regrename_analyze): New param include_all_block_p
7332 with default value TRUE. If set to false, avoid disrupting SMS
7333 schedule.
7334 * regrename.h (regrename_analyze): Adjust prototype.
7335
7336 2020-08-03 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
7337
7338 * doc/tm.texi.in (VECTOR_STORE_FLAG_VALUE): Fix a typo.
7339 * doc/tm.texi: Regenerate.
7340
7341 2020-08-03 Richard Sandiford <richard.sandiford@arm.com>
7342
7343 * doc/invoke.texi: Add missing comma after octeontx2f95mm entry.
7344
7345 2020-08-03 Qian jianhua <qianjh@cn.fujitsu.com>
7346
7347 * config/aarch64/aarch64-cores.def (a64fx): New core.
7348 * config/aarch64/aarch64-tune.md: Regenerated.
7349 * config/aarch64/aarch64.c (a64fx_prefetch_tune, a64fx_tunings): New.
7350 * doc/invoke.texi: Add a64fx to the list.
7351
7352 2020-08-03 Roger Sayle <roger@nextmovesoftware.com>
7353
7354 PR rtl-optimization/61494
7355 * simplify-rtx.c (simplify_binary_operation_1) [MINUS]: Don't
7356 simplify x - 0.0 with -fsignaling-nans.
7357
7358 2020-08-03 Roger Sayle <roger@nextmovesoftware.com>
7359
7360 * genmatch.c (decision_tree::gen): Emit stub functions for
7361 tree code operand counts that have no simplifications.
7362 (main): Correct comment typo.
7363
7364 2020-08-03 Jonathan Wakely <jwakely@redhat.com>
7365
7366 * gimple-ssa-sprintf.c: Fix typos in comments.
7367
7368 2020-08-03 Tamar Christina <tamar.christina@arm.com>
7369
7370 * config/aarch64/driver-aarch64.c (readline): Check return value fgets.
7371
7372 2020-08-03 Richard Biener <rguenther@suse.de>
7373
7374 * doc/match-and-simplify.texi: Amend accordingly.
7375
7376 2020-08-03 Richard Biener <rguenther@suse.de>
7377
7378 * genmatch.c (parser::gimple): New.
7379 (parser::parser): Initialize gimple flag member.
7380 (parser::parse_expr): Error on ! operator modifier when
7381 not targeting GIMPLE.
7382 (main): Pass down gimple flag to parser ctor.
7383
7384 2020-08-03 Aldy Hernandez <aldyh@redhat.com>
7385
7386 * Makefile.in (GTFILES): Move value-range.h up.
7387 * gengtype-lex.l: Set yylval to handle GTY markers on templates.
7388 * ipa-cp.c (initialize_node_lattices): Call value_range
7389 constructor.
7390 (ipcp_propagate_stage): Use in-place new so value_range construct
7391 is called.
7392 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Use std
7393 vec instead of GCC's vec<>.
7394 (evaluate_properties_for_edge): Adjust for std vec.
7395 (ipa_fn_summary_t::duplicate): Same.
7396 (estimate_ipcp_clone_size_and_time): Same.
7397 * ipa-prop.c (ipa_get_value_range): Use in-place new for
7398 value_range.
7399 * ipa-prop.h (struct GTY): Remove class keyword for m_vr.
7400 * range-op.cc (empty_range_check): Rename to...
7401 (empty_range_varying): ...this and adjust for varying.
7402 (undefined_shift_range_check): Adjust for irange.
7403 (range_operator::wi_fold): Same.
7404 (range_operator::fold_range): Adjust for irange. Special case
7405 single pairs for performance.
7406 (range_operator::op1_range): Adjust for irange.
7407 (range_operator::op2_range): Same.
7408 (value_range_from_overflowed_bounds): Same.
7409 (value_range_with_overflow): Same.
7410 (create_possibly_reversed_range): Same.
7411 (range_true): Same.
7412 (range_false): Same.
7413 (range_true_and_false): Same.
7414 (get_bool_state): Adjust for irange and tweak for performance.
7415 (operator_equal::fold_range): Adjust for irange.
7416 (operator_equal::op1_range): Same.
7417 (operator_equal::op2_range): Same.
7418 (operator_not_equal::fold_range): Same.
7419 (operator_not_equal::op1_range): Same.
7420 (operator_not_equal::op2_range): Same.
7421 (build_lt): Same.
7422 (build_le): Same.
7423 (build_gt): Same.
7424 (build_ge): Same.
7425 (operator_lt::fold_range): Same.
7426 (operator_lt::op1_range): Same.
7427 (operator_lt::op2_range): Same.
7428 (operator_le::fold_range): Same.
7429 (operator_le::op1_range): Same.
7430 (operator_le::op2_range): Same.
7431 (operator_gt::fold_range): Same.
7432 (operator_gt::op1_range): Same.
7433 (operator_gt::op2_range): Same.
7434 (operator_ge::fold_range): Same.
7435 (operator_ge::op1_range): Same.
7436 (operator_ge::op2_range): Same.
7437 (operator_plus::wi_fold): Same.
7438 (operator_plus::op1_range): Same.
7439 (operator_plus::op2_range): Same.
7440 (operator_minus::wi_fold): Same.
7441 (operator_minus::op1_range): Same.
7442 (operator_minus::op2_range): Same.
7443 (operator_min::wi_fold): Same.
7444 (operator_max::wi_fold): Same.
7445 (cross_product_operator::wi_cross_product): Same.
7446 (operator_mult::op1_range): New.
7447 (operator_mult::op2_range): New.
7448 (operator_mult::wi_fold): Adjust for irange.
7449 (operator_div::wi_fold): Same.
7450 (operator_exact_divide::op1_range): Same.
7451 (operator_lshift::fold_range): Same.
7452 (operator_lshift::wi_fold): Same.
7453 (operator_lshift::op1_range): New.
7454 (operator_rshift::op1_range): New.
7455 (operator_rshift::fold_range): Adjust for irange.
7456 (operator_rshift::wi_fold): Same.
7457 (operator_cast::truncating_cast_p): Abstract out from
7458 operator_cast::fold_range.
7459 (operator_cast::fold_range): Adjust for irange and tweak for
7460 performance.
7461 (operator_cast::inside_domain_p): Abstract out from fold_range.
7462 (operator_cast::fold_pair): Same.
7463 (operator_cast::op1_range): Use abstracted methods above. Adjust
7464 for irange and tweak for performance.
7465 (operator_logical_and::fold_range): Adjust for irange.
7466 (operator_logical_and::op1_range): Same.
7467 (operator_logical_and::op2_range): Same.
7468 (unsigned_singleton_p): New.
7469 (operator_bitwise_and::remove_impossible_ranges): New.
7470 (operator_bitwise_and::fold_range): New.
7471 (wi_optimize_and_or): Adjust for irange.
7472 (operator_bitwise_and::wi_fold): Same.
7473 (set_nonzero_range_from_mask): New.
7474 (operator_bitwise_and::simple_op1_range_solver): New.
7475 (operator_bitwise_and::op1_range): Adjust for irange.
7476 (operator_bitwise_and::op2_range): Same.
7477 (operator_logical_or::fold_range): Same.
7478 (operator_logical_or::op1_range): Same.
7479 (operator_logical_or::op2_range): Same.
7480 (operator_bitwise_or::wi_fold): Same.
7481 (operator_bitwise_or::op1_range): Same.
7482 (operator_bitwise_or::op2_range): Same.
7483 (operator_bitwise_xor::wi_fold): Same.
7484 (operator_bitwise_xor::op1_range): New.
7485 (operator_bitwise_xor::op2_range): New.
7486 (operator_trunc_mod::wi_fold): Adjust for irange.
7487 (operator_logical_not::fold_range): Same.
7488 (operator_logical_not::op1_range): Same.
7489 (operator_bitwise_not::fold_range): Same.
7490 (operator_bitwise_not::op1_range): Same.
7491 (operator_cst::fold_range): Same.
7492 (operator_identity::fold_range): Same.
7493 (operator_identity::op1_range): Same.
7494 (class operator_unknown): New.
7495 (operator_unknown::fold_range): New.
7496 (class operator_abs): Adjust for irange.
7497 (operator_abs::wi_fold): Same.
7498 (operator_abs::op1_range): Same.
7499 (operator_absu::wi_fold): Same.
7500 (class operator_negate): Same.
7501 (operator_negate::fold_range): Same.
7502 (operator_negate::op1_range): Same.
7503 (operator_addr_expr::fold_range): Same.
7504 (operator_addr_expr::op1_range): Same.
7505 (pointer_plus_operator::wi_fold): Same.
7506 (pointer_min_max_operator::wi_fold): Same.
7507 (pointer_and_operator::wi_fold): Same.
7508 (pointer_or_operator::op1_range): New.
7509 (pointer_or_operator::op2_range): New.
7510 (pointer_or_operator::wi_fold): Adjust for irange.
7511 (integral_table::integral_table): Add entries for IMAGPART_EXPR
7512 and POINTER_DIFF_EXPR.
7513 (range_cast): Adjust for irange.
7514 (build_range3): New.
7515 (range3_tests): New.
7516 (widest_irange_tests): New.
7517 (multi_precision_range_tests): New.
7518 (operator_tests): New.
7519 (range_tests): New.
7520 * range-op.h (class range_operator): Adjust for irange.
7521 (range_cast): Same.
7522 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust for irange and
7523 tweak for performance.
7524 (range_fold_binary_expr): Same.
7525 (masked_increment): Change to extern.
7526 * tree-vrp.h (masked_increment): New.
7527 * tree.c (cache_wide_int_in_type_cache): New function abstracted
7528 out from wide_int_to_tree_1.
7529 (wide_int_to_tree_1): Cache 0, 1, and MAX for pointers.
7530 * value-range-equiv.cc (value_range_equiv::deep_copy): Use kind
7531 method.
7532 (value_range_equiv::move): Same.
7533 (value_range_equiv::check): Adjust for irange.
7534 (value_range_equiv::intersect): Same.
7535 (value_range_equiv::union_): Same.
7536 (value_range_equiv::dump): Same.
7537 * value-range.cc (irange::operator=): Same.
7538 (irange::maybe_anti_range): New.
7539 (irange::copy_legacy_range): New.
7540 (irange::set_undefined): Adjust for irange.
7541 (irange::swap_out_of_order_endpoints): Abstract out from set().
7542 (irange::set_varying): Adjust for irange.
7543 (irange::irange_set): New.
7544 (irange::irange_set_anti_range): New.
7545 (irange::set): Adjust for irange.
7546 (value_range::set_nonzero): Move to header file.
7547 (value_range::set_zero): Move to header file.
7548 (value_range::check): Rename to...
7549 (irange::verify_range): ...this.
7550 (value_range::num_pairs): Rename to...
7551 (irange::legacy_num_pairs): ...this, and adjust for irange.
7552 (value_range::lower_bound): Rename to...
7553 (irange::legacy_lower_bound): ...this, and adjust for irange.
7554 (value_range::upper_bound): Rename to...
7555 (irange::legacy_upper_bound): ...this, and adjust for irange.
7556 (value_range::equal_p): Rename to...
7557 (irange::legacy_equal_p): ...this.
7558 (value_range::operator==): Move to header file.
7559 (irange::equal_p): New.
7560 (irange::symbolic_p): Adjust for irange.
7561 (irange::constant_p): Same.
7562 (irange::singleton_p): Same.
7563 (irange::value_inside_range): Same.
7564 (irange::may_contain_p): Same.
7565 (irange::contains_p): Same.
7566 (irange::normalize_addresses): Same.
7567 (irange::normalize_symbolics): Same.
7568 (irange::legacy_intersect): Same.
7569 (irange::legacy_union): Same.
7570 (irange::union_): Same.
7571 (irange::intersect): Same.
7572 (irange::irange_union): New.
7573 (irange::irange_intersect): New.
7574 (subtract_one): New.
7575 (irange::invert): Adjust for irange.
7576 (dump_bound_with_infinite_markers): New.
7577 (irange::dump): Adjust for irange.
7578 (debug): Add irange versions.
7579 (range_has_numeric_bounds_p): Adjust for irange.
7580 (vrp_val_max): Move to header file.
7581 (vrp_val_min): Move to header file.
7582 (DEFINE_INT_RANGE_GC_STUBS): New.
7583 (DEFINE_INT_RANGE_INSTANCE): New.
7584 * value-range.h (class irange): New.
7585 (class int_range): New.
7586 (class value_range): Rename to a instantiation of int_range.
7587 (irange::legacy_mode_p): New.
7588 (value_range::value_range): Remove.
7589 (irange::kind): New.
7590 (irange::num_pairs): Adjust for irange.
7591 (irange::type): Adjust for irange.
7592 (irange::tree_lower_bound): New.
7593 (irange::tree_upper_bound): New.
7594 (irange::type): Adjust for irange.
7595 (irange::min): Same.
7596 (irange::max): Same.
7597 (irange::varying_p): Same.
7598 (irange::undefined_p): Same.
7599 (irange::zero_p): Same.
7600 (irange::nonzero_p): Same.
7601 (irange::supports_type_p): Same.
7602 (range_includes_zero_p): Same.
7603 (gt_ggc_mx): New.
7604 (gt_pch_nx): New.
7605 (irange::irange): New.
7606 (int_range::int_range): New.
7607 (int_range::operator=): New.
7608 (irange::set): Moved from value-range.cc and adjusted for irange.
7609 (irange::set_undefined): Same.
7610 (irange::set_varying): Same.
7611 (irange::operator==): Same.
7612 (irange::lower_bound): Same.
7613 (irange::upper_bound): Same.
7614 (irange::union_): Same.
7615 (irange::intersect): Same.
7616 (irange::set_nonzero): Same.
7617 (irange::set_zero): Same.
7618 (irange::normalize_min_max): New.
7619 (vrp_val_max): Move from value-range.cc.
7620 (vrp_val_min): Same.
7621 * vr-values.c (vr_values::get_lattice_entry): Call value_range
7622 constructor.
7623
7624 2020-08-02 Sergei Trofimovich <siarheit@google.com>
7625
7626 PR bootstrap/96404
7627 * var-tracking.c (vt_find_locations): Fully initialize
7628 all 'in_pending' bits.
7629
7630 2020-08-01 Jan Hubicka <jh@suse.cz>
7631
7632 * symtab.c (symtab_node::verify_base): Verify order.
7633 (symtab_node::verify_symtab_nodes): Verify order.
7634
7635 2020-08-01 Jan Hubicka <jh@suse.cz>
7636
7637 * predict.c (estimate_bb_frequencies): Cap recursive calls by 90%.
7638
7639 2020-08-01 Jojo R <jiejie_rong@c-sky.com>
7640
7641 * config/csky/csky_opts.h (float_abi_type): New.
7642 * config/csky/csky.h (TARGET_SOFT_FLOAT): New.
7643 (TARGET_HARD_FLOAT): New.
7644 (TARGET_HARD_FLOAT_ABI): New.
7645 (OPTION_DEFAULT_SPECS): Use mfloat-abi.
7646 * config/csky/csky.opt (mfloat-abi): New.
7647 * doc/invoke.texi (C-SKY Options): Document -mfloat-abi=.
7648
7649 2020-08-01 Cooper Qu <cooper.qu@linux.alibaba.com>
7650
7651 * config/csky/t-csky-linux: Delete big endian CPUs' multilib.
7652
7653 2020-07-31 Roger Sayle <roger@nextmovesoftware.com>
7654 Tom de Vries <tdevries@suse.de>
7655
7656 PR target/90928
7657 * config/nvptx/nvptx.c (nvptx_truly_noop_truncation): Implement.
7658 (TARGET_TRULY_NOOP_TRUNCATION): Define.
7659
7660 2020-07-31 Richard Biener <rguenther@suse.de>
7661
7662 PR debug/96383
7663 * langhooks-def.h (lhd_finalize_early_debug): Declare.
7664 (LANG_HOOKS_FINALIZE_EARLY_DEBUG): Define.
7665 (LANG_HOOKS_INITIALIZER): Amend.
7666 * langhooks.c: Include cgraph.h and debug.h.
7667 (lhd_finalize_early_debug): Default implementation from
7668 former code in finalize_compilation_unit.
7669 * langhooks.h (lang_hooks::finalize_early_debug): Add.
7670 * cgraphunit.c (symbol_table::finalize_compilation_unit):
7671 Call the finalize_early_debug langhook.
7672
7673 2020-07-31 Richard Biener <rguenther@suse.de>
7674
7675 * genmatch.c (expr::force_leaf): Add and initialize.
7676 (expr::gen_transform): Honor force_leaf by passing
7677 NULL as sequence argument to maybe_push_res_to_seq.
7678 (parser::parse_expr): Allow ! marker on result expression
7679 operations.
7680 * doc/match-and-simplify.texi: Amend.
7681
7682 2020-07-31 Kewen Lin <linkw@linux.ibm.com>
7683
7684 * tree-vect-loop.c (vect_get_known_peeling_cost): Don't consider branch
7685 taken costs for prologue and epilogue if they don't exist.
7686 (vect_estimate_min_profitable_iters): Likewise.
7687
7688 2020-07-31 Martin Liska <mliska@suse.cz>
7689
7690 * cgraph.h: Remove leading empty lines.
7691 * cgraphunit.c (enum cgraph_order_sort_kind): Remove
7692 ORDER_UNDEFINED.
7693 (struct cgraph_order_sort): Add constructors.
7694 (cgraph_order_sort::process): New.
7695 (cgraph_order_cmp): New.
7696 (output_in_order): Simplify and push nodes to vector.
7697
7698 2020-07-31 Richard Biener <rguenther@suse.de>
7699
7700 PR middle-end/96369
7701 * fold-const.c (fold_range_test): Special-case constant
7702 LHS for short-circuiting operations.
7703
7704 2020-07-31 Martin Liska <mliska@suse.cz>
7705
7706 * gcov-io.h (GCOV_PREALLOCATED_KVP): New.
7707
7708 2020-07-31 Zhiheng Xie <xiezhiheng@huawei.com>
7709
7710 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
7711 Add new argument ATTRS.
7712 (aarch64_call_properties): New function.
7713 (aarch64_modifies_global_state_p): Likewise.
7714 (aarch64_reads_global_state_p): Likewise.
7715 (aarch64_could_trap_p): Likewise.
7716 (aarch64_add_attribute): Likewise.
7717 (aarch64_get_attributes): Likewise.
7718 (aarch64_init_simd_builtins): Add attributes for each built-in function.
7719
7720 2020-07-31 Richard Biener <rguenther@suse.de>
7721
7722 PR debug/78288
7723 * var-tracking.c (vt_find_locations): Use
7724 rev_post_order_and_mark_dfs_back_seme and separately iterate
7725 over toplevel SCCs.
7726
7727 2020-07-31 Richard Biener <rguenther@suse.de>
7728
7729 * cfganal.h (rev_post_order_and_mark_dfs_back_seme): Adjust
7730 prototype.
7731 * cfganal.c (rpoamdbs_bb_data): New struct with pre BB data.
7732 (tag_header): New helper.
7733 (cmp_edge_dest_pre): Likewise.
7734 (rev_post_order_and_mark_dfs_back_seme): Compute SCCs,
7735 find SCC exits and perform a DFS walk with extra edges to
7736 compute a RPO with adjacent SCC members when requesting an
7737 iteration optimized order and populate the toplevel SCC array.
7738 * tree-ssa-sccvn.c (do_rpo_vn): Remove ad-hoc computation
7739 of max_rpo and fill it in from SCC extent info instead.
7740
7741 2020-07-30 Will Schmidt <will_schmidt@vnet.ibm.com>
7742
7743 * config/rs6000/altivec.h (vec_test_lsbb_all_ones): New define.
7744 (vec_test_lsbb_all_zeros): New define.
7745 * config/rs6000/rs6000-builtin.def (BU_P10_VSX_1): New built-in
7746 handling macro.
7747 (XVTLSBB_ZEROS, XVTLSBB_ONES): New builtin defines.
7748 (xvtlsbb_all_zeros, xvtlsbb_all_ones): New builtin overloads.
7749 * config/rs6000/rs6000-call.c (P10_BUILTIN_VEC_XVTLSBB_ZEROS,
7750 P10_BUILTIN_VEC_XVTLSBB_ONES): New altivec_builtin_types entries.
7751 * config/rs6000/rs6000.md (UNSPEC_XVTLSBB): New unspec.
7752 * config/rs6000/vsx.md (*xvtlsbb_internal): New instruction define.
7753 (xvtlsbbo, xvtlsbbz): New instruction expands.
7754
7755 2020-07-30 Cooper Qu <cooper.qu@linux.alibaba.com>
7756
7757 * config/riscv/riscv-opts.h (stack_protector_guard): New enum.
7758 * config/riscv/riscv.c (riscv_option_override): Handle
7759 the new options.
7760 * config/riscv/riscv.md (stack_protect_set): New pattern to handle
7761 flexible stack protector guard settings.
7762 (stack_protect_set_<mode>): Ditto.
7763 (stack_protect_test): Ditto.
7764 (stack_protect_test_<mode>): Ditto.
7765 * config/riscv/riscv.opt (mstack-protector-guard=,
7766 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
7767 options.
7768 * doc/invoke.texi (Option Summary) [RISC-V Options]:
7769 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
7770 -mstack-protector-guard-offset=.
7771 (RISC-V Options): Ditto.
7772
7773 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
7774
7775 PR bootstrap/96202
7776 * configure: Regenerated.
7777
7778 2020-07-30 Richard Biener <rguenther@suse.de>
7779
7780 PR tree-optimization/96370
7781 * tree-ssa-reassoc.c (rewrite_expr_tree): Add operation
7782 code parameter and use it instead of picking it up from
7783 the stmt that is being rewritten.
7784 (reassociate_bb): Pass down the operation code.
7785
7786 2020-07-30 Roger Sayle <roger@nextmovesoftware.com>
7787 Tom de Vries <tdevries@suse.de>
7788
7789 * config/nvptx/nvptx.md (nvptx_vector_index_operand): New predicate.
7790 (VECELEM): New mode attribute for a vector's uppercase element mode.
7791 (Vecelem): New mode attribute for a vector's lowercase element mode.
7792 (*vec_set<mode>_0, *vec_set<mode>_1, *vec_set<mode>_2)
7793 (*vec_set<mode>_3): New instructions.
7794 (vec_set<mode>): New expander to generate one of the above insns.
7795 (vec_extract<mode><Vecelem>): New instruction.
7796
7797 2020-07-30 Martin Liska <mliska@suse.cz>
7798
7799 PR target/95435
7800 * config/i386/x86-tune-costs.h: Use libcall for large sizes for
7801 -m32. Start using libcall from 128+ bytes.
7802
7803 2020-07-30 Martin Liska <mliska@suse.cz>
7804
7805 * config/i386/x86-tune-costs.h: Change code formatting.
7806
7807 2020-07-29 Roger Sayle <roger@nextmovesoftware.com>
7808
7809 * config/nvptx/nvptx.md (recip<mode>2): New instruction.
7810
7811 2020-07-29 Fangrui Song <maskray@google.com>
7812
7813 PR debug/95096
7814 * opts.c (common_handle_option): Don't make -gsplit-dwarf imply -g.
7815 * doc/invoke.texi (-gsplit-dwarf): Update documentation.
7816
7817 2020-07-29 Joe Ramsay <joe.ramsay@arm.com>
7818
7819 * config/arm/arm-protos.h (arm_coproc_mem_operand_no_writeback):
7820 Declare prototype.
7821 (arm_mve_mode_and_operands_type_check): Declare prototype.
7822 * config/arm/arm.c (arm_coproc_mem_operand): Refactor to use
7823 _arm_coproc_mem_operand.
7824 (arm_coproc_mem_operand_wb): New function to cover full, limited
7825 and no writeback.
7826 (arm_coproc_mem_operand_no_writeback): New constraint for memory
7827 operand with no writeback.
7828 (arm_print_operand): Extend 'E' specifier for memory operand
7829 that does not support writeback.
7830 (arm_mve_mode_and_operands_type_check): New constraint check for
7831 MVE memory operands.
7832 * config/arm/constraints.md: Add Uj constraint for VFP vldr.16
7833 and vstr.16.
7834 * config/arm/vfp.md (*mov_load_vfp_hf16): New pattern for
7835 vldr.16.
7836 (*mov_store_vfp_hf16): New pattern for vstr.16.
7837 (*mov<mode>_vfp_<mode>16): Remove MVE moves.
7838
7839 2020-07-29 Richard Biener <rguenther@suse.de>
7840
7841 PR tree-optimization/96349
7842 * tree-ssa-loop-split.c (stmt_semi_invariant_p_1): When the
7843 condition runs into a loop PHI with an abnormal entry value give up.
7844
7845 2020-07-29 Richard Biener <rguenther@suse.de>
7846
7847 * tree-vectorizer.c (vectorize_loops): Reset the SCEV
7848 cache if we removed any SIMD UID SSA defs.
7849 * gimple-loop-interchange.cc (pass_linterchange::execute):
7850 Reset the scev cache if we interchanged a loop.
7851
7852 2020-07-29 Richard Biener <rguenther@suse.de>
7853
7854 PR tree-optimization/95679
7855 * tree-ssa-propagate.h
7856 (substitute_and_fold_engine::propagate_into_phi_args): Return
7857 whether anything changed.
7858 * tree-ssa-propagate.c
7859 (substitute_and_fold_engine::propagate_into_phi_args): Likewise.
7860 (substitute_and_fold_dom_walker::before_dom_children): Update
7861 something_changed.
7862
7863 2020-07-29 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
7864
7865 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7866 Ensure that loop variable npeel_tmp advances in each iteration.
7867
7868 2020-07-29 Hans-Peter Nilsson <hp@bitrange.com>
7869
7870 * config/mmix/mmix.h (NO_FUNCTION_CSE): Define to 1.
7871
7872 2020-07-29 Hans-Peter Nilsson <hp@bitrange.com>
7873
7874 * config/mmix/mmix.h (ASM_OUTPUT_EXTERNAL): Define to
7875 default_elf_asm_output_external.
7876
7877 2020-07-28 Sergei Trofimovich <siarheit@google.com>
7878
7879 PR ipa/96291
7880 * ipa-cp.c (has_undead_caller_from_outside_scc_p): Consider
7881 unoptimized callers as undead.
7882
7883 2020-07-28 Roger Sayle <roger@nextmovesoftware.com>
7884 Richard Biener <rguenther@suse.de>
7885
7886 * match.pd (popcount(x)&1 -> parity(x)): New simplification.
7887 (parity(~x) -> parity(x)): New simplification.
7888 (parity(x)^parity(y) -> parity(x^y)): New simplification.
7889 (parity(x&1) -> x&1): New simplification.
7890 (popcount(x) -> x>>C): New simplification.
7891
7892 2020-07-28 Roger Sayle <roger@nextmovesoftware.com>
7893 Tom de Vries <tdevries@suse.de>
7894
7895 * config/nvptx/nvptx.md (extendqihi2): New instruction.
7896 (ashl<mode>3, ashr<mode>3, lshr<mode>3): Support HImode.
7897
7898 2020-07-28 Jakub Jelinek <jakub@redhat.com>
7899
7900 PR middle-end/96335
7901 * calls.c (maybe_warn_rdwr_sizes): Add FNDECL and FNTYPE arguments,
7902 instead of trying to rediscover them in the body.
7903 (initialize_argument_information): Adjust caller.
7904
7905 2020-07-28 Kewen Lin <linkw@linux.ibm.com>
7906
7907 * tree-vect-loop.c (vect_get_known_peeling_cost): Factor out some code
7908 to determine peel_iters_epilogue to...
7909 (vect_get_peel_iters_epilogue): ...this new function.
7910 (vect_estimate_min_profitable_iters): Refactor cost calculation on
7911 peel_iters_prologue and peel_iters_epilogue.
7912
7913 2020-07-27 Martin Sebor <msebor@redhat.com>
7914
7915 PR tree-optimization/84079
7916 * gimple-array-bounds.cc (array_bounds_checker::check_addr_expr):
7917 Only allow just-past-the-end references for the most significant
7918 array bound.
7919
7920 2020-07-27 Hu Jiangping <hujiangping@cn.fujitsu.com>
7921
7922 PR driver/96247
7923 * opts.c (check_alignment_argument): Set the -falign-Name
7924 on/off flag on and set the -falign-Name string value null,
7925 when the command-line specified argument is zero.
7926
7927 2020-07-27 Martin Liska <mliska@suse.cz>
7928
7929 PR tree-optimization/96058
7930 * expr.c (string_constant): Build string_constant only
7931 for a type that has same precision as char_type_node
7932 and is an integral type.
7933
7934 2020-07-27 Richard Biener <rguenther@suse.de>
7935
7936 * var-tracking.c (variable_tracking_main_1): Remove call
7937 to mark_dfs_back_edges.
7938
7939 2020-07-27 Martin Liska <mliska@suse.cz>
7940
7941 PR tree-optimization/96128
7942 * tree-vect-generic.c (expand_vector_comparison): Do not expand
7943 vector comparison with VEC_COND_EXPR.
7944
7945 2020-07-27 H.J. Lu <hjl.tools@gmail.com>
7946
7947 PR bootstrap/96203
7948 * common.opt: Add -fcf-protection=check.
7949 * flag-types.h (cf_protection_level): Add CF_CHECK.
7950 * lto-wrapper.c (merge_and_complain): Issue an error for
7951 mismatching -fcf-protection values with -fcf-protection=check.
7952 Otherwise, merge -fcf-protection values.
7953 * doc/invoke.texi: Document -fcf-protection=check.
7954
7955 2020-07-27 Martin Liska <mliska@suse.cz>
7956
7957 PR lto/45375
7958 * symbol-summary.h: Call vec_safe_reserve before grow is called
7959 in order to grow to a reasonable size.
7960 * vec.h (vec_safe_reserve): Add missing function for vl_ptr
7961 type.
7962
7963 2020-07-26 Hans-Peter Nilsson <hp@bitrange.com>
7964
7965 * configure.ac (out-of-tree linker .hidden support): Don't turn off
7966 for mmix-knuth-mmixware.
7967 * configure: Regenerate.
7968
7969 2020-07-26 Aaron Sawdey <acsawdey@linux.ibm.com>
7970
7971 * config/rs6000/rs6000.c (rs6000_option_override_internal):
7972 Set the default value for -mblock-ops-unaligned-vsx.
7973 * config/rs6000/rs6000.opt: Add -mblock-ops-unaligned-vsx.
7974 * doc/invoke.texi: Document -mblock-ops-unaligned-vsx.
7975
7976 2020-07-25 Hans-Peter Nilsson <hp@bitrange.com>
7977
7978 * config/mmix/mmix.c (TARGET_ASM_OUTPUT_IDENT): Override the default
7979 with default_asm_output_ident_directive.
7980
7981 2020-07-25 Andrew Stubbs <ams@codesourcery.com>
7982
7983 * config/gcn/gcn.c (gcn_scalar_mode_supported_p): New function.
7984 (TARGET_SCALAR_MODE_SUPPORTED_P): New define.
7985
7986 2020-07-24 David Edelsohn <dje.gcc@gmail.com>
7987 Clement Chigot <clement.chigot@atos.net>
7988
7989 * config.gcc (powerpc-ibm-aix7.1): Use t-aix64 and biarch64 for
7990 cpu_is_64bit.
7991 * config/rs6000/aix71.h (ASM_SPEC): Remove aix64 option.
7992 (ASM_SPEC32): New.
7993 (ASM_SPEC64): New.
7994 (ASM_CPU_SPEC): Remove vsx and altivec options.
7995 (CPP_SPEC_COMMON): Rename from CPP_SPEC.
7996 (CPP_SPEC32): New.
7997 (CPP_SPEC64): New.
7998 (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
7999 (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
8000 (LIB_SPEC_COMMON): Rename from LIB_SPEC.
8001 (LIB_SPEC32): New.
8002 (LIB_SPEC64): New.
8003 (LINK_SPEC_COMMON): Rename from LINK_SPEC.
8004 (LINK_SPEC32): New.
8005 (LINK_SPEC64): New.
8006 (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
8007 (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
8008 (CPP_SPEC): Same.
8009 (CPLUSPLUS_CPP_SPEC): Same.
8010 (LIB_SPEC): Same.
8011 (LINK_SPEC): Same.
8012 (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
8013 * config/rs6000/aix72.h (TARGET_DEFAULT): Use 64 bit mask if BIARCH.
8014 * config/rs6000/defaultaix64.h: Delete.
8015
8016 2020-07-24 Segher Boessenkool <segher@kernel.crashing.org>
8017
8018 * config/rs6000/rs6000.opt: Delete -mpower10.
8019
8020 2020-07-24 Alexandre Oliva <oliva@adacore.com>
8021
8022 * config/i386/intelmic-mkoffload.c
8023 (generate_target_descr_file): Use dumppfx for save_temps
8024 files. Pass -dumpbase et al down to the compiler.
8025 (generate_target_offloadend_file): Likewise.
8026 (generate_host_descr_file): Likewise.
8027 (prepare_target_image): Likewise. Move out_obj_filename
8028 setting...
8029 (main): ... here. Detect -dumpbase, set dumppfx too.
8030
8031 2020-07-24 Alexandre Oliva <oliva@adacore.com>
8032
8033 PR driver/96230
8034 * gcc.c (process_command): Adjust and document conditions to
8035 reset dumpbase_ext.
8036
8037 2020-07-24 Matthias Klose <doko@ubuntu.com>
8038
8039 * config/aarch64/aarch64.c (+aarch64_offload_options,
8040 TARGET_OFFLOAD_OPTIONS): New.
8041
8042 2020-07-24 Uroš Bizjak <ubizjak@gmail.com>
8043
8044 PR target/95750
8045 * config/i386/sync.md (mmem_thread_fence): Emit mfence_sse2 for -Os.
8046
8047 2020-07-23 Roger Sayle <roger@nextmovesoftware.com>
8048
8049 PR rtl-optimization/96298
8050 * simplify-rtx.c (simplify_binary_operation_1) [XOR]: Xor doesn't
8051 distribute over xor, so (a^b)^(c^b) is not the same as (a^c)^b.
8052
8053 2020-07-23 Dong JianQiang <dongjianqiang2@huawei.com>
8054
8055 PR gcov-profile/96267
8056 * gcov-io.c (gcov_open): enable if IN_GCOV_TOOL.
8057
8058 2020-07-23 Kewen Lin <linkw@linux.ibm.com>
8059
8060 * config/rs6000/rs6000.c (adjust_vectorization_cost): Renamed to ...
8061 (rs6000_adjust_vect_cost_per_stmt): ... here.
8062 (rs6000_add_stmt_cost): Rename adjust_vectorization_cost to
8063 rs6000_adjust_vect_cost_per_stmt.
8064
8065 2020-07-23 Kewen Lin <linkw@linux.ibm.com>
8066
8067 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
8068 IFN_LEN_LOAD and IFN_LEN_STORE.
8069 (get_alias_ptr_type_for_ptr_address): Likewise.
8070
8071 2020-07-23 Kito Cheng <kito.cheng@sifive.com>
8072
8073 PR target/96260
8074 * asan.c (asan_shadow_offset_set_p): New.
8075 * asan.h (asan_shadow_offset_set_p): Ditto.
8076 * toplev.c (process_options): Allow -fsanitize=kernel-address
8077 even TARGET_ASAN_SHADOW_OFFSET not implemented, only check when
8078 asan stack protection is enabled.
8079
8080 2020-07-22 Peter Bergner <bergner@linux.ibm.com>
8081
8082 PR target/96236
8083 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_mma_builtin): Handle
8084 little-endian memory ordering.
8085
8086 2020-07-22 Nathan Sidwell <nathan@acm.org>
8087
8088 * dumpfile.c (parse_dump_option): Deal with filenames
8089 containing '-'
8090
8091 2020-07-22 Nathan Sidwell <nathan@acm.org>
8092
8093 * incpath.c (add_path): Avoid multiple strlen calls.
8094
8095 2020-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8096
8097 * expmed.c (expand_sdiv_pow2): Check return value from emit_store_flag
8098 is not NULL_RTX before use.
8099
8100 2020-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8101
8102 * expr.c (convert_modes): Allow a constant integer to be converted to
8103 any scalar int mode.
8104
8105 2020-07-22 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
8106
8107 * config/aarch64/aarch64-ldpstp.md: Add two peepholes for adjusted vector
8108 V2SI, V2SF, V2DI, V2DF load pair and store pair modes.
8109 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
8110 Change mode parameter to machine_mode.
8111 (aarch64_operands_adjust_ok_for_ldpstp): Change mode parameter to
8112 machine_mode.
8113 * config/aarch64/aarch64.c (aarch64_operands_adjust_ok_for_ldpstp):
8114 Change mode parameter to machine_mode.
8115 (aarch64_gen_adjusted_ldpstp): Change mode parameter to machine_mode.
8116 * config/aarch64/iterators.md (VP_2E): New iterator for 2 element vectors.
8117
8118 2020-07-22 Wei Wentao <weiwt.fnst@cn.fujitsu.com>
8119
8120 * doc/languages.texi: Fix “then”/“than” typo.
8121
8122 2020-07-21 Sunil K Pandey <skpgkp2@gmail.com>
8123
8124 PR target/95237
8125 * config/i386/i386-protos.h (ix86_local_alignment): Add
8126 another function parameter may_lower alignment. Default is
8127 false.
8128 * config/i386/i386.c (ix86_lower_local_decl_alignment): New
8129 function.
8130 (ix86_local_alignment): Amend ix86_local_alignment to accept
8131 another parameter may_lower. If may_lower is true, new align
8132 may be lower than incoming alignment. If may_lower is false,
8133 new align will be greater or equal to incoming alignment.
8134 (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): Define.
8135 * doc/tm.texi: Regenerate.
8136 * doc/tm.texi.in (TARGET_LOWER_LOCAL_DECL_ALIGNMENT): New
8137 hook.
8138 * target.def (lower_local_decl_alignment): New hook.
8139
8140 2020-07-21 Uroš Bizjak <ubizjak@gmail.com>
8141
8142 PR target/95750
8143 * config/i386/sync.md (mfence_sse2): Enable for
8144 TARGET_64BIT and TARGET_SSE2.
8145 (mfence_nosse): Always enable.
8146
8147 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8148
8149 * config/msp430/msp430-protos.h (msp430_do_not_relax_short_jumps):
8150 Remove.
8151 * config/msp430/msp430.c (msp430_do_not_relax_short_jumps): Likewise.
8152 * config/msp430/msp430.md (cbranchhi4_real): Remove special case for
8153 msp430_do_not_relax_short_jumps.
8154
8155 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8156
8157 * config/msp430/msp430.md: New "extendqipsi2" define_insn.
8158
8159 2020-07-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8160
8161 * config/msp430/msp430.h (NO_FUNCTION_CSE): Set to true at -O2 and
8162 above.
8163
8164 2020-07-21 Xionghu Luo <luoxhu@linux.ibm.com>
8165
8166 PR rtl-optimization/89310
8167 * config/rs6000/rs6000.md (movsf_from_si2): New define_insn_and_split.
8168
8169 2020-07-20 Hans-Peter Nilsson <hp@bitrange.com>
8170
8171 * config/mmix/mmix.c (mmix_expand_prologue): Calculate the total
8172 allocated size and set current_function_static_stack_size, if
8173 flag_stack_usage_info.
8174
8175 2020-07-20 Sergei Trofimovich <siarheit@google.com>
8176
8177 PR target/96190
8178 * config/sparc/linux.h (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
8179 to get crtendS.o for !no-pie mode.
8180 * config/sparc/linux64.h (ENDFILE_SPEC): Ditto.
8181
8182 2020-07-20 Yang Yang <yangyang305@huawei.com>
8183
8184 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
8185 VIEW_CONVERT_EXPRs if the arguments types and return type
8186 of simd clone function are distinct with the vectype of stmt.
8187
8188 2020-07-20 Uroš Bizjak <ubizjak@gmail.com>
8189
8190 PR target/95750
8191 * config/i386/i386.h (TARGET_AVOID_MFENCE):
8192 Rename from TARGET_USE_XCHG_FOR_ATOMIC_STORE.
8193 * config/i386/sync.md (mfence_sse2): Disable for TARGET_AVOID_MFENCE.
8194 (mfence_nosse): Enable also for TARGET_AVOID_MFENCE. Emit stack
8195 referred memory in word_mode.
8196 (mem_thread_fence): Do not generate mfence_sse2 pattern when
8197 TARGET_AVOID_MFENCE is true.
8198 (atomic_store<mode>): Update for rename.
8199 * config/i386/x86-tune.def (X86_TUNE_AVOID_MFENCE):
8200 Rename from X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE.
8201
8202 2020-07-20 Martin Sebor <msebor@redhat.com>
8203
8204 PR middle-end/95189
8205 PR middle-end/95886
8206 * builtins.c (inline_expand_builtin_string_cmp): Rename...
8207 (inline_expand_builtin_bytecmp): ...to this.
8208 (builtin_memcpy_read_str): Don't expect data to be nul-terminated.
8209 (expand_builtin_memory_copy_args): Handle object representations
8210 with embedded nul bytes.
8211 (expand_builtin_memcmp): Same.
8212 (expand_builtin_strcmp): Adjust call to naming change.
8213 (expand_builtin_strncmp): Same.
8214 * expr.c (string_constant): Create empty strings with nonzero size.
8215 * fold-const.c (c_getstr): Rename locals and update comments.
8216 * tree.c (build_string): Accept null pointer argument.
8217 (build_string_literal): Same.
8218 * tree.h (build_string): Provide a default.
8219 (build_string_literal): Same.
8220
8221 2020-07-20 Richard Biener <rguenther@suse.de>
8222
8223 * cfganal.c (rev_post_order_and_mark_dfs_back_seme): Remove
8224 write-only post array.
8225
8226 2020-07-20 Jakub Jelinek <jakub@redhat.com>
8227
8228 PR libstdc++/93121
8229 * gimple-fold.c (fold_const_aggregate_ref_1): For COMPONENT_REF
8230 of a bitfield not aligned on byte boundaries try to
8231 fold_ctor_reference DECL_BIT_FIELD_REPRESENTATIVE if any and
8232 adjust it depending on endianity.
8233
8234 2020-07-20 Jakub Jelinek <jakub@redhat.com>
8235
8236 PR libstdc++/93121
8237 * fold-const.c (native_encode_initializer): Handle bit-fields.
8238
8239 2020-07-20 Kewen Lin <linkw@linux.ibm.com>
8240
8241 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8242 Set param_vect_partial_vector_usage to 0 explicitly.
8243 * doc/invoke.texi (vect-partial-vector-usage): Document new option.
8244 * optabs-query.c (get_len_load_store_mode): New function.
8245 * optabs-query.h (get_len_load_store_mode): New declare.
8246 * params.opt (vect-partial-vector-usage): New.
8247 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Add the
8248 handlings for vectorization using length-based partial vectors, call
8249 vect_gen_len for length generation, and rename some variables with
8250 items instead of scalars.
8251 (vect_set_loop_condition_partial_vectors): Add the handlings for
8252 vectorization using length-based partial vectors.
8253 (vect_do_peeling): Allow remaining eiters less than epilogue vf for
8254 LOOP_VINFO_USING_PARTIAL_VECTORS_P.
8255 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Init
8256 epil_using_partial_vectors_p.
8257 (_loop_vec_info::~_loop_vec_info): Call release_vec_loop_controls
8258 for lengths destruction.
8259 (vect_verify_loop_lens): New function.
8260 (vect_analyze_loop): Add handlings for epilogue of loop when it's
8261 marked to use vectorization using partial vectors.
8262 (vect_analyze_loop_2): Add the check to allow only one vectorization
8263 approach using partial vectorization at the same time. Check param
8264 vect-partial-vector-usage for partial vectors decision. Mark
8265 LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P if the epilogue is
8266 considerable to use partial vectors. Call release_vec_loop_controls
8267 for lengths destruction.
8268 (vect_estimate_min_profitable_iters): Adjust for loop vectorization
8269 using length-based partial vectors.
8270 (vect_record_loop_mask): Init factor to 1 for vectorization using
8271 mask-based partial vectors.
8272 (vect_record_loop_len): New function.
8273 (vect_get_loop_len): Likewise.
8274 * tree-vect-stmts.c (check_load_store_for_partial_vectors): Add
8275 checks for vectorization using length-based partial vectors. Factor
8276 some code to lambda function get_valid_nvectors.
8277 (vectorizable_store): Add handlings when using length-based partial
8278 vectors.
8279 (vectorizable_load): Likewise.
8280 (vect_gen_len): New function.
8281 * tree-vectorizer.h (struct rgroup_controls): Add field factor
8282 mainly for length-based partial vectors.
8283 (vec_loop_lens): New typedef.
8284 (_loop_vec_info): Add lens and epil_using_partial_vectors_p.
8285 (LOOP_VINFO_EPIL_USING_PARTIAL_VECTORS_P): New macro.
8286 (LOOP_VINFO_LENS): Likewise.
8287 (LOOP_VINFO_FULLY_WITH_LENGTH_P): Likewise.
8288 (vect_record_loop_len): New declare.
8289 (vect_get_loop_len): Likewise.
8290 (vect_gen_len): Likewise.
8291
8292 2020-07-20 Hans-Peter Nilsson <hp@bitrange.com>
8293
8294 * config/mmix/mmix.c (mmix_option_override): Reinstate default
8295 integer-emitting targetm.asm_out pseudos when dumping detailed
8296 assembly-code.
8297 (mmix_assemble_integer): Update comment.
8298
8299 2020-07-19 H.J. Lu <hjl.tools@gmail.com>
8300
8301 PR target/95973
8302 PR target/96238
8303 * config/i386/cpuid.h: Add include guard.
8304 (__cpuidex): New.
8305
8306 2020-07-18 H.J. Lu <hjl.tools@gmail.com>
8307
8308 PR target/95620
8309 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
8310
8311 2020-07-18 Peter Bergner <bergner@linux.ibm.com>
8312
8313 PR target/92488
8314 * config/rs6000/dfp.md (trunctdsd2): New define_insn.
8315 * config/rs6000/rs6000.md (define_attr "isa"): Add p9.
8316 (define_attr "enabled"): Handle p9.
8317
8318 2020-07-17 Roger Sayle <roger@nextmovesoftware.com>
8319
8320 * function.c (assign_parm_setup_block): Use the macro
8321 TRULY_NOOP_TRUNCATION_MODES_P instead of calling
8322 targetm.truly_noop_truncation directly.
8323
8324 2020-07-17 H.J. Lu <hjl.tools@gmail.com>
8325
8326 PR target/96186
8327 PR target/88713
8328 * config/i386/sse.md (VF_AVX512VL_VF1_128_256): Renamed to ...
8329 (VF1_AVX512ER_128_256): This. Drop DF vector modes.
8330 (rsqrt<mode>2): Replace VF_AVX512VL_VF1_128_256 with
8331 VF1_AVX512ER_128_256.
8332
8333 2020-07-17 Tamar Christina <tamar.christina@arm.com>
8334
8335 * doc/sourcebuild.texi (dg-set-compiler-env-var,
8336 dg-set-target-env-var): Document.
8337
8338 2020-07-17 Tamar Christina <tamar.christina@arm.com>
8339
8340 * config/arm/driver-arm.c (host_detect_local_cpu): Add GCC_CPUINFO.
8341
8342 2020-07-17 Tamar Christina <tamar.christina@arm.com>
8343
8344 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
8345 Add GCC_CPUINFO.
8346
8347 2020-07-17 Tamar Christina <tamar.christina@arm.com>
8348
8349 * config/aarch64/driver-aarch64.c (INCLUDE_SET): New.
8350 (parse_field): Use std::string.
8351 (split_words, readline, find_field): New.
8352 (host_detect_local_cpu): Fix truncation issues.
8353
8354 2020-07-17 Andrew Stubbs <ams@codesourcery.com>
8355
8356 * config/gcn/mkoffload.c (EM_AMDGPU): Undefine before defining.
8357 (ELFOSABI_AMDGPU_HSA): Likewise.
8358 (ELFABIVERSION_AMDGPU_HSA): Likewise.
8359 (EF_AMDGPU_MACH_AMDGCN_GFX803): Likewise.
8360 (EF_AMDGPU_MACH_AMDGCN_GFX900): Likewise.
8361 (EF_AMDGPU_MACH_AMDGCN_GFX906): Likewise.
8362 (reserved): Delete.
8363
8364 2020-07-17 Andrew Pinski <apinksi@marvell.com>
8365 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
8366
8367 PR target/93720
8368 * config/aarch64/aarch64.c (aarch64_evpc_ins): New function.
8369 (aarch64_expand_vec_perm_const_1): Call it.
8370 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_copy_lane): Make
8371 public, and add a "@" prefix.
8372
8373 2020-07-17 Andrew Pinski <apinksi@marvell.com>
8374 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
8375
8376 PR target/82199
8377 * config/aarch64/aarch64.c (aarch64_evpc_reencode): New function.
8378 (aarch64_expand_vec_perm_const_1): Call it.
8379
8380 2020-07-17 Zhiheng Xie <xiezhiheng@huawei.com>
8381
8382 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
8383 Add new field flags.
8384 (VAR1): Add new field FLAG in macro.
8385 (VAR2): Likewise.
8386 (VAR3): Likewise.
8387 (VAR4): Likewise.
8388 (VAR5): Likewise.
8389 (VAR6): Likewise.
8390 (VAR7): Likewise.
8391 (VAR8): Likewise.
8392 (VAR9): Likewise.
8393 (VAR10): Likewise.
8394 (VAR11): Likewise.
8395 (VAR12): Likewise.
8396 (VAR13): Likewise.
8397 (VAR14): Likewise.
8398 (VAR15): Likewise.
8399 (VAR16): Likewise.
8400 (aarch64_general_fold_builtin): Likewise.
8401 (aarch64_general_gimple_fold_builtin): Likewise.
8402 * config/aarch64/aarch64-simd-builtins.def: Add default flag for
8403 each built-in function.
8404 * config/aarch64/geniterators.sh: Add new field in BUILTIN macro.
8405
8406 2020-07-17 Andreas Krebbel <krebbel@linux.ibm.com>
8407
8408 PR target/96127
8409 * config/s390/s390.c (s390_expand_insv): Invoke the movstrict
8410 expanders to generate the pattern.
8411 * config/s390/s390.md ("*movstricthi", "*movstrictqi"): Remove the
8412 '*' to have callable expanders.
8413
8414 2020-07-16 Hans-Peter Nilsson <hp@axis.com>
8415 Segher Boessenkool <segher@kernel.crashing.org>
8416
8417 PR target/93372
8418 * combine.c (is_just_move): Take an rtx_insn* as argument. Use
8419 single_set on it.
8420
8421 2020-07-16 Uroš Bizjak <ubizjak@gmail.com>
8422
8423 PR target/96189
8424 * config/i386/sync.md
8425 (peephole2 to remove unneded compare after CMPXCHG):
8426 New pattern, also handle XOR zeroing and load of -1 by OR.
8427
8428 2020-07-16 Eric Botcazou <ebotcazou@adacore.com>
8429
8430 * config/i386/i386.c (ix86_compute_frame_layout): Minor tweak.
8431 (ix86_adjust_stack_and_probe): Delete.
8432 (ix86_adjust_stack_and_probe_stack_clash): Rename to above and add
8433 PROTECTION_AREA parameter. If it is true, probe PROBE_INTERVAL plus
8434 a small dope beyond SIZE bytes.
8435 (ix86_emit_probe_stack_range): Use local variable.
8436 (ix86_expand_prologue): Adjust calls to ix86_adjust_stack_and_probe
8437 and tidy up the stack checking code.
8438 * explow.c (get_stack_check_protect): Fix head comment.
8439 (anti_adjust_stack_and_probe_stack_clash): Likewise.
8440 (allocate_dynamic_stack_space): Add comment.
8441 * tree-nested.c (lookup_field_for_decl): Set the DECL_IGNORED_P and
8442 TREE_NO_WARNING but not TREE_ADDRESSABLE flags on the field.
8443
8444 2020-07-16 Andrew Stubbs <ams@codesourcery.com>
8445
8446 * config/gcn/mkoffload.c: Include simple-object.h and elf.h.
8447 (EM_AMDGPU): New macro.
8448 (ELFOSABI_AMDGPU_HSA): New macro.
8449 (ELFABIVERSION_AMDGPU_HSA): New macro.
8450 (EF_AMDGPU_MACH_AMDGCN_GFX803): New macro.
8451 (EF_AMDGPU_MACH_AMDGCN_GFX900): New macro.
8452 (EF_AMDGPU_MACH_AMDGCN_GFX906): New macro.
8453 (R_AMDGPU_NONE): New macro.
8454 (R_AMDGPU_ABS32_LO): New macro.
8455 (R_AMDGPU_ABS32_HI): New macro.
8456 (R_AMDGPU_ABS64): New macro.
8457 (R_AMDGPU_REL32): New macro.
8458 (R_AMDGPU_REL64): New macro.
8459 (R_AMDGPU_ABS32): New macro.
8460 (R_AMDGPU_GOTPCREL): New macro.
8461 (R_AMDGPU_GOTPCREL32_LO): New macro.
8462 (R_AMDGPU_GOTPCREL32_HI): New macro.
8463 (R_AMDGPU_REL32_LO): New macro.
8464 (R_AMDGPU_REL32_HI): New macro.
8465 (reserved): New macro.
8466 (R_AMDGPU_RELATIVE64): New macro.
8467 (gcn_s1_name): Delete global variable.
8468 (gcn_s2_name): Delete global variable.
8469 (gcn_o_name): Delete global variable.
8470 (gcn_cfile_name): Delete global variable.
8471 (files_to_cleanup): New global variable.
8472 (offload_abi): New global variable.
8473 (tool_cleanup): Use files_to_cleanup, not explicit list.
8474 (copy_early_debug_info): New function.
8475 (main): New local variables gcn_s1_name, gcn_s2_name, gcn_o_name,
8476 gcn_cfile_name.
8477 Create files_to_cleanup obstack.
8478 Recognize -march options.
8479 Copy early debug info from input .o files.
8480
8481 2020-07-16 Andrea Corallo <andrea.corallo@arm.com>
8482
8483 * Makefile.in (TAGS): Remove 'params.def'.
8484
8485 2020-07-16 Roger Sayle <roger@nextmovesoftware.com>
8486
8487 * target.def (TARGET_TRULY_NOOP_TRUNCATION): Clarify that
8488 targets that return false, indicating SUBREGs shouldn't be
8489 used, also need to provide a trunc?i?i2 optab that performs this
8490 truncation.
8491 * doc/tm.texi: Regenerate.
8492
8493 2020-07-15 Uroš Bizjak <ubizjak@gmail.com>
8494
8495 PR target/96189
8496 * config/i386/sync.md
8497 (peephole2 to remove unneded compare after CMPXCHG): New pattern.
8498
8499 2020-07-15 Jakub Jelinek <jakub@redhat.com>
8500
8501 PR libgomp/96198
8502 * omp-general.h (struct omp_for_data): Rename min_inner_iterations
8503 member to first_inner_iterations, adjust comment.
8504 * omp-general.c (omp_extract_for_data): Adjust for the above change.
8505 Always use n1first and n2first to compute it, rather than depending
8506 on single_nonrect_cond_code. Similarly, always compute factor
8507 as (m2 - m1) * outer_step / inner_step rather than sometimes m1 - m2
8508 depending on single_nonrect_cond_code.
8509 * omp-expand.c (expand_omp_for_init_vars): Rename min_inner_iterations
8510 to first_inner_iterations and min_inner_iterationsd to
8511 first_inner_iterationsd.
8512
8513 2020-07-15 Jakub Jelinek <jakub@redhat.com>
8514
8515 PR target/96174
8516 * config/i386/avx512fintrin.h (_mm512_cmpeq_pd_mask,
8517 _mm512_mask_cmpeq_pd_mask, _mm512_cmplt_pd_mask,
8518 _mm512_mask_cmplt_pd_mask, _mm512_cmple_pd_mask,
8519 _mm512_mask_cmple_pd_mask, _mm512_cmpunord_pd_mask,
8520 _mm512_mask_cmpunord_pd_mask, _mm512_cmpneq_pd_mask,
8521 _mm512_mask_cmpneq_pd_mask, _mm512_cmpnlt_pd_mask,
8522 _mm512_mask_cmpnlt_pd_mask, _mm512_cmpnle_pd_mask,
8523 _mm512_mask_cmpnle_pd_mask, _mm512_cmpord_pd_mask,
8524 _mm512_mask_cmpord_pd_mask, _mm512_cmpeq_ps_mask,
8525 _mm512_mask_cmpeq_ps_mask, _mm512_cmplt_ps_mask,
8526 _mm512_mask_cmplt_ps_mask, _mm512_cmple_ps_mask,
8527 _mm512_mask_cmple_ps_mask, _mm512_cmpunord_ps_mask,
8528 _mm512_mask_cmpunord_ps_mask, _mm512_cmpneq_ps_mask,
8529 _mm512_mask_cmpneq_ps_mask, _mm512_cmpnlt_ps_mask,
8530 _mm512_mask_cmpnlt_ps_mask, _mm512_cmpnle_ps_mask,
8531 _mm512_mask_cmpnle_ps_mask, _mm512_cmpord_ps_mask,
8532 _mm512_mask_cmpord_ps_mask): Move outside of __OPTIMIZE__ guarded
8533 section.
8534
8535 2020-07-15 Jakub Jelinek <jakub@redhat.com>
8536
8537 PR target/96176
8538 * builtins.c: Include gimple-ssa.h, tree-ssa-live.h and
8539 tree-outof-ssa.h.
8540 (expand_expr_force_mode): If exp is a SSA_NAME with different mode
8541 from MODE and get_gimple_for_ssa_name is a cast from MODE, use the
8542 cast's rhs.
8543
8544 2020-07-15 Jiufu Guo <guojiufu@cn.ibm.com>
8545
8546 * config/rs6000/rs6000.c (rs6000_loop_unroll_adjust): Refine hook.
8547
8548 2020-07-14 David Edelsohn <dje.gcc@gmail.com>
8549
8550 * config/rs6000/rs6000.md (rotldi3_insert_sf): Add TARGET_POWERPC64
8551 condition.
8552 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add
8553 TARGET_POWERPC64 requirement to TARGET_P8_VECTOR case.
8554
8555 2020-07-14 Lewis Hyatt <lhyatt@gmail.com>
8556
8557 PR preprocessor/49973
8558 PR other/86904
8559 * common.opt: Handle -ftabstop here instead of in c-family
8560 options. Add -fdiagnostics-column-unit= and
8561 -fdiagnostics-column-origin= options.
8562 * opts.c (common_handle_option): Handle the new options.
8563 * diagnostic-format-json.cc (json_from_expanded_location): Add
8564 diagnostic_context argument. Use it to convert column numbers as per
8565 the new options.
8566 (json_from_location_range): Likewise.
8567 (json_from_fixit_hint): Likewise.
8568 (json_end_diagnostic): Pass the new context argument to helper
8569 functions above. Add "column-origin" field to the output.
8570 (test_unknown_location): Add the new context argument to calls to
8571 helper functions.
8572 (test_bad_endpoints): Likewise.
8573 * diagnostic-show-locus.c
8574 (exploc_with_display_col::exploc_with_display_col): Support
8575 tabstop parameter.
8576 (layout_point::layout_point): Make use of class
8577 exploc_with_display_col.
8578 (layout_range::layout_range): Likewise.
8579 (struct line_bounds): Clarify that the units are now always
8580 display columns. Rename members accordingly. Add constructor.
8581 (layout::print_source_line): Add support for tab expansion.
8582 (make_range): Adapt to class layout_range changes.
8583 (layout::maybe_add_location_range): Likewise.
8584 (layout::layout): Adapt to class exploc_with_display_col changes.
8585 (layout::calculate_x_offset_display): Support tabstop parameter.
8586 (layout::print_annotation_line): Adapt to struct line_bounds changes.
8587 (layout::print_line): Likewise.
8588 (line_label::line_label): Add diagnostic_context argument.
8589 (get_affected_range): Likewise.
8590 (get_printed_columns): Likewise.
8591 (layout::print_any_labels): Adapt to struct line_label changes.
8592 (class correction): Add m_tabstop member.
8593 (correction::correction): Add tabstop argument.
8594 (correction::compute_display_cols): Use m_tabstop.
8595 (class line_corrections): Add m_context member.
8596 (line_corrections::line_corrections): Add diagnostic_context argument.
8597 (line_corrections::add_hint): Use m_context to handle tabstops.
8598 (layout::print_trailing_fixits): Adapt to class line_corrections
8599 changes.
8600 (test_layout_x_offset_display_utf8): Support tabstop parameter.
8601 (test_layout_x_offset_display_tab): New selftest.
8602 (test_one_liner_colorized_utf8): Likewise.
8603 (test_tab_expansion): Likewise.
8604 (test_diagnostic_show_locus_one_liner_utf8): Call the new tests.
8605 (diagnostic_show_locus_c_tests): Likewise.
8606 (test_overlapped_fixit_printing): Adapt to helper class and
8607 function changes.
8608 (test_overlapped_fixit_printing_utf8): Likewise.
8609 (test_overlapped_fixit_printing_2): Likewise.
8610 * diagnostic.h (enum diagnostics_column_unit): New enum.
8611 (struct diagnostic_context): Add members for the new options.
8612 (diagnostic_converted_column): Declare.
8613 (json_from_expanded_location): Add new context argument.
8614 * diagnostic.c (diagnostic_initialize): Initialize new members.
8615 (diagnostic_converted_column): New function.
8616 (maybe_line_and_column): Be willing to output a column of 0.
8617 (diagnostic_get_location_text): Convert column number as per the new
8618 options.
8619 (diagnostic_report_current_module): Likewise.
8620 (assert_location_text): Add origin and column_unit arguments for
8621 testing the new functionality.
8622 (test_diagnostic_get_location_text): Test the new functionality.
8623 * doc/invoke.texi: Document the new options and behavior.
8624 * input.h (location_compute_display_column): Add tabstop argument.
8625 * input.c (location_compute_display_column): Likewise.
8626 (test_cpp_utf8): Add selftests for tab expansion.
8627 * tree-diagnostic-path.cc (default_tree_make_json_for_path): Pass the
8628 new context argument to json_from_expanded_location().
8629
8630 2020-07-14 Jakub Jelinek <jakub@redhat.com>
8631
8632 PR middle-end/96194
8633 * expr.c (expand_constructor): Don't create temporary for store to
8634 volatile MEM if exp has an addressable type.
8635
8636 2020-07-14 Nathan Sidwell <nathan@acm.org>
8637
8638 * hash-map.h (hash_map::get): Note it is a pointer to value.
8639 * incpath.h (incpath_kind): Align comments.
8640
8641 2020-07-14 Nathan Sidwell <nathan@acm.org>
8642
8643 * tree-core.h (tree_decl_with_vis, tree_function_decl):
8644 Note additional padding on 64-bits
8645 * tree.c (cache_integer_cst): Note why no caching of enum literals.
8646 (get_tree_code_name): Robustify error case.
8647
8648 2020-07-14 Nathan Sidwell <nathan@acm.org>
8649
8650 * doc/gty.texi: Fic gt_cleare_cache name.
8651 * doc/invoke.texi: Remove duplicate opindex Wabi-tag.
8652
8653 2020-07-14 Jakub Jelinek <jakub@redhat.com>
8654
8655 * omp-general.h (struct omp_for_data): Add adjn1 member.
8656 * omp-general.c (omp_extract_for_data): For non-rect loop, punt on
8657 count computing if n1, n2 or step are not INTEGER_CST earlier.
8658 Narrow the outer iterator range if needed so that non-rect loop
8659 has at least one iteration for each outer range iteration. Compute
8660 adjn1.
8661 * omp-expand.c (expand_omp_for_init_vars): Use adjn1 if non-NULL
8662 instead of the outer loop's n1.
8663
8664 2020-07-14 Matthias Klose <doko@ubuntu.com>
8665
8666 PR lto/95604
8667 * lto-wrapper.c (merge_and_complain): Add decoded options as parameter,
8668 error on different values for -fcf-protection.
8669 (append_compiler_options): Pass -fcf-protection option.
8670 (find_and_merge_options): Add decoded options as parameter,
8671 pass decoded_options to merge_and_complain.
8672 (run_gcc): Pass decoded options to find_and_merge_options.
8673 * lto-opts.c (lto_write_options): Pass -fcf-protection option.
8674
8675 2020-07-13 Alan Modra <amodra@gmail.com>
8676
8677 * config/rs6000/rs6000.md (sibcall_local): Merge sibcall_local32
8678 and sibcall_local64.
8679 (sibcall_value_local): Similarly.
8680
8681 2020-07-13 Nathan Sidwell <nathan@acm.org>
8682
8683 * Makefile.in (distclean): Remove long gone cxxmain.c
8684
8685 2020-07-13 H.J. Lu <hjl.tools@gmail.com>
8686
8687 PR target/95443
8688 * config/i386/i386.md (cmpstrnsi): Pass a copy of the string
8689 length to cmpstrnqi patterns.
8690
8691 2020-07-13 Jakub Jelinek <jakub@redhat.com>
8692
8693 PR ipa/96130
8694 * ipa-fnsummary.c (analyze_function_body): Treat NULL bb->aux
8695 as false predicate.
8696
8697 2020-07-13 Richard Biener <rguenther@suse.de>
8698
8699 PR tree-optimization/96163
8700 * tree-vect-slp.c (vect_schedule_slp_instance): Put new stmts
8701 at least after region begin.
8702
8703 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
8704
8705 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
8706 __ARM_FEATURE_PAC_DEFAULT support.
8707
8708 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
8709
8710 PR target/94891
8711 * doc/extend.texi: Update the text for __builtin_return_address.
8712
8713 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
8714
8715 PR target/94891
8716 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
8717 Disable return address signing if __builtin_eh_return is used.
8718
8719 2020-07-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
8720
8721 PR target/94891
8722 PR target/94791
8723 * config/aarch64/aarch64-protos.h (aarch64_return_addr_rtx): Declare.
8724 * config/aarch64/aarch64.c (aarch64_return_addr_rtx): New.
8725 (aarch64_return_addr): Use aarch64_return_addr_rtx.
8726 * config/aarch64/aarch64.h (PROFILE_HOOK): Likewise.
8727
8728 2020-07-13 Richard Sandiford <richard.sandiford@arm.com>
8729
8730 PR middle-end/95114
8731 * tree.h (virtual_method_call_p): Add a default-false parameter
8732 that indicates whether the function is being called from dump
8733 routines.
8734 (obj_type_ref_class): Likewise.
8735 * tree.c (virtual_method_call_p): Likewise.
8736 * ipa-devirt.c (obj_type_ref_class): Likewise. Lazily add ODR
8737 type information for the type when the parameter is false.
8738 * tree-pretty-print.c (dump_generic_node): Update calls to
8739 virtual_method_call_p and obj_type_ref_class accordingly.
8740
8741 2020-07-13 Julian Brown <julian@codesourcery.com>
8742 Thomas Schwinge <thomas@codesourcery.com>
8743
8744 * gimplify.c (gimplify_scan_omp_clauses): Do not strip
8745 GOMP_MAP_TO_PSET/GOMP_MAP_POINTER for OpenACC enter/exit data
8746 directives (see also PR92929).
8747
8748 2020-07-13 Roger Sayle <roger@nextmovesoftware.com>
8749
8750 * convert.c (convert_to_integer_1): Narrow integer operations
8751 even on targets that require explicit truncation instructions.
8752
8753 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
8754
8755 PR target/93372
8756 * config/cris/cris-passes.def: New file.
8757 * config/cris/t-cris (PASSES_EXTRA): Add cris-passes.def.
8758 * config/cris/cris.c: Add infrastructure bits and pass execute
8759 function cris_postdbr_cmpelim.
8760 * config/cris/cris-protos.h (make_pass_cris_postdbr_cmpelim): Declare.
8761
8762 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
8763
8764 * config/cris/t-cris: Remove gt-cris.h-related excessive cargo.
8765
8766 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
8767
8768 PR target/93372
8769 * config/cris/cris.md ("*add<mode>3_addi"): New splitter.
8770 ("*addi_b_<mode>"): New pattern.
8771 ("*addsi3<setnz>"): Remove stale %-related comment.
8772
8773 2020-07-13 Hans-Peter Nilsson <hp@axis.com>
8774
8775 * config/cris/cris.md ("setnz_subst", "setnz_subst", "setcc_subst"):
8776 Use match_dup in output template, not match_operand.
8777
8778 2020-07-13 Richard Biener <rguenther@suse.de>
8779
8780 * var-tracking.c (bb_heap_node_t): Remove unused typedef.
8781 (vt_find_locations): Eliminate visited bitmap in favor of
8782 RPO order check. Dump statistics about the number of
8783 local BB dataflow computes.
8784
8785 2020-07-13 Richard Biener <rguenther@suse.de>
8786
8787 PR middle-end/94600
8788 * expr.c (expand_constructor): Make a temporary also if we're
8789 storing to volatile memory.
8790
8791 2020-07-13 Xionghu Luo <luoxhu@linux.ibm.com>
8792
8793 * config/rs6000/rs6000.md (rotl_unspec): New
8794 define_insn_and_split.
8795
8796 2020-07-13 Xionghu Luo <luoxhu@linux.ibm.com>
8797
8798 * config/rs6000/rs6000.c (rs6000_expand_vector_init):
8799 Move V4SF to V4SI, init vector like V4SI and move to V4SF back.
8800
8801 2020-07-11 Roger Sayle <roger@nextmovesoftware.com>
8802
8803 * internal-fn.c (expand_mul_overflow): When checking for signed
8804 overflow from a widening multiplication, we access the truncated
8805 lowpart RES twice, so keep this value in a pseudo register.
8806
8807 2020-07-11 Richard Sandiford <richard.sandiford@arm.com>
8808
8809 PR tree-optimization/96146
8810 * value-range.cc (value_range::set): Only decompose POLY_INT_CST
8811 bounds to integers for VR_RANGE. Decay to VR_VARYING for anti-ranges
8812 involving POLY_INT_CSTs.
8813
8814 2020-07-10 David Edelsohn <dje.gcc@gmail.com>
8815
8816 PR target/77373
8817 * config/rs6000/rs6000.c (rs6000_xcoff_select_section): Only
8818 create named section for VAR_DECL or FUNCTION_DECL.
8819
8820 2020-07-10 Joseph Myers <joseph@codesourcery.com>
8821
8822 * glimits.h [__STDC_VERSION__ > 201710L] (BOOL_MAX, BOOL_WIDTH):
8823 New macros.
8824
8825 2020-07-10 Alexander Popov <alex.popov@linux.com>
8826
8827 * shrink-wrap.c (try_shrink_wrapping): Improve debug output.
8828
8829 2020-07-10 Richard Sandiford <richard.sandiford@arm.com>
8830
8831 PR middle-end/96151
8832 * expr.c (expand_expr_real_2): When reducing bit fields,
8833 clear the target if it has a different mode from the expression.
8834 (reduce_to_bit_field_precision): Don't do that here. Instead
8835 assert that the target already has the correct mode.
8836
8837 2020-07-10 Richard Sandiford <richard.sandiford@arm.com>
8838
8839 PR target/92789
8840 PR target/95726
8841 * config/arm/arm.c (arm_attribute_table): Add
8842 "Advanced SIMD type".
8843 (arm_comp_type_attributes): Check that the "Advanced SIMD type"
8844 attributes are equal.
8845 * config/arm/arm-builtins.c: Include stringpool.h and
8846 attribs.h.
8847 (arm_mangle_builtin_vector_type): Use the mangling recorded
8848 in the "Advanced SIMD type" attribute.
8849 (arm_init_simd_builtin_types): Add an "Advanced SIMD type"
8850 attribute to each Advanced SIMD type, using the mangled type
8851 as the attribute's single argument.
8852
8853 2020-07-10 Carl Love <cel@us.ibm.com>
8854
8855 * config/rs6000/vsx.md (VSX_MM): New define_mode_iterator.
8856 (VSX_MM4): New define_mode_iterator.
8857 (vec_mtvsrbmi): New define_insn.
8858 (vec_mtvsr_<mode>): New define_insn.
8859 (vec_cntmb_<mode>): New define_insn.
8860 (vec_extract_<mode>): New define_insn.
8861 (vec_expand_<mode>): New define_insn.
8862 (define_c_enum unspec): Add entries UNSPEC_MTVSBM, UNSPEC_VCNTMB,
8863 UNSPEC_VEXTRACT, UNSPEC_VEXPAND.
8864 * config/rs6000/altivec.h ( vec_genbm, vec_genhm, vec_genwm,
8865 vec_gendm, vec_genqm, vec_cntm, vec_expandm, vec_extractm): Add
8866 defines.
8867 * config/rs6000/rs6000-builtin.def: Add defines BU_P10_2, BU_P10_1.
8868 (BU_P10_1): Add definitions for mtvsrbm, mtvsrhm, mtvsrwm,
8869 mtvsrdm, mtvsrqm, vexpandmb, vexpandmh, vexpandmw, vexpandmd,
8870 vexpandmq, vextractmb, vextractmh, vextractmw, vextractmd, vextractmq.
8871 (BU_P10_2): Add definitions for cntmbb, cntmbh, cntmbw, cntmbd.
8872 (BU_P10_OVERLOAD_1): Add definitions for mtvsrbm, mtvsrhm,
8873 mtvsrwm, mtvsrdm, mtvsrqm, vexpandm, vextractm.
8874 (BU_P10_OVERLOAD_2): Add defition for cntm.
8875 * config/rs6000/rs6000-call.c (rs6000_expand_binop_builtin): Add
8876 checks for CODE_FOR_vec_cntmbb_v16qi, CODE_FOR_vec_cntmb_v8hi,
8877 CODE_FOR_vec_cntmb_v4si, CODE_FOR_vec_cntmb_v2di.
8878 (altivec_overloaded_builtins): Add overloaded argument entries for
8879 P10_BUILTIN_VEC_MTVSRBM, P10_BUILTIN_VEC_MTVSRHM,
8880 P10_BUILTIN_VEC_MTVSRWM, P10_BUILTIN_VEC_MTVSRDM,
8881 P10_BUILTIN_VEC_MTVSRQM, P10_BUILTIN_VEC_VCNTMBB,
8882 P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
8883 P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
8884 P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
8885 P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
8886 P10_BUILTIN_VEXPANDMQ, P10_BUILTIN_VEXTRACTMB,
8887 P10_BUILTIN_VEXTRACTMH, P10_BUILTIN_VEXTRACTMW,
8888 P10_BUILTIN_VEXTRACTMD, P10_BUILTIN_VEXTRACTMQ.
8889 (builtin_function_type): Add case entries for P10_BUILTIN_MTVSRBM,
8890 P10_BUILTIN_MTVSRHM, P10_BUILTIN_MTVSRWM, P10_BUILTIN_MTVSRDM,
8891 P10_BUILTIN_MTVSRQM, P10_BUILTIN_VCNTMBB, P10_BUILTIN_VCNTMBH,
8892 P10_BUILTIN_VCNTMBW, P10_BUILTIN_VCNTMBD,
8893 P10_BUILTIN_VEXPANDMB, P10_BUILTIN_VEXPANDMH,
8894 P10_BUILTIN_VEXPANDMW, P10_BUILTIN_VEXPANDMD,
8895 P10_BUILTIN_VEXPANDMQ.
8896 * config/rs6000/rs6000-builtin.def (altivec_overloaded_builtins): Add
8897 entries for MTVSRBM, MTVSRHM, MTVSRWM, MTVSRDM, MTVSRQM, VCNTM,
8898 VEXPANDM, VEXTRACTM.
8899
8900 2020-07-10 Bill Seurer, 507-253-3502, seurer@us.ibm.com <(no_default)>
8901
8902 PR target/95581
8903 * config/rs6000/rs6000-call.c: Add new type v16qi_ftype_pcvoid.
8904 (altivec_init_builtins) Change __builtin_altivec_mask_for_load to use
8905 v16qi_ftype_pcvoid with correct number of parameters.
8906
8907 2020-07-10 H.J. Lu <hjl.tools@gmail.com>
8908
8909 PR target/96144
8910 * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Check
8911 TARGET_AVX512VL when enabling FMA.
8912
8913 2020-07-10 Andrea Corallo <andrea.corallo@arm.com>
8914 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
8915 Iain Apreotesei <iain.apreotesei@arm.com>
8916
8917 * config/arm/arm-protos.h (arm_target_insn_ok_for_lob): New
8918 prototype.
8919 * config/arm/arm.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
8920 (arm_invalid_within_doloop): Implement invalid_within_doloop hook.
8921 (arm_target_insn_ok_for_lob): New function.
8922 * config/arm/arm.h (TARGET_HAVE_LOB): Define macro.
8923 * config/arm/thumb2.md (*doloop_end_internal, doloop_begin)
8924 (dls_insn): Add new patterns.
8925 (doloop_end): Modify to select LR when LOB is available.
8926 * config/arm/unspecs.md: Add new unspec.
8927 * doc/sourcebuild.texi (arm_v8_1_lob_ok)
8928 (arm_thumb2_ok_no_arm_v8_1_lob): Document new target supports
8929 options.
8930
8931 2020-07-10 Richard Biener <rguenther@suse.de>
8932
8933 PR tree-optimization/96133
8934 * gimple-fold.c (fold_array_ctor_reference): Do not
8935 recurse to folding a CTOR that does not fully cover the
8936 asked for object.
8937
8938 2020-07-10 Cui,Lili <lili.cui@intel.com>
8939
8940 * common/config/i386/cpuinfo.h
8941 (get_intel_cpu): Handle sapphirerapids.
8942 * common/config/i386/i386-common.c
8943 (processor_names): Add sapphirerapids and alderlake.
8944 (processor_alias_table): Add sapphirerapids and alderlake.
8945 * common/config/i386/i386-cpuinfo.h
8946 (processor_subtypes): Add INTEL_COREI7_ALDERLAKE and
8947 INTEL_COREI7_ALDERLAKE.
8948 * config.gcc: Add -march=sapphirerapids and alderlake.
8949 * config/i386/driver-i386.c
8950 (host_detect_local_cpu) Handle sapphirerapids and alderlake.
8951 * config/i386/i386-c.c
8952 (ix86_target_macros_internal): Handle sapphirerapids and alderlake.
8953 * config/i386/i386-options.c
8954 (m_SAPPHIRERAPIDS) : Define.
8955 (m_ALDERLAKE): Ditto.
8956 (m_CORE_AVX512) : Add m_SAPPHIRERAPIDS.
8957 (processor_cost_table): Add sapphirerapids and alderlake.
8958 (ix86_option_override_internal) Handle PTA_WAITPKG, PTA_ENQCMD,
8959 PTA_CLDEMOTE, PTA_SERIALIZE, PTA_TSXLDTRK.
8960 * config/i386/i386.h
8961 (ix86_size_cost) : Define SAPPHIRERAPIDS and ALDERLAKE.
8962 (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
8963 PROCESSOR_ALDERLAKE.
8964 (PTA_ENQCMD): New.
8965 (PTA_CLDEMOTE): Ditto.
8966 (PTA_SERIALIZE): Ditto.
8967 (PTA_TSXLDTRK): New.
8968 (PTA_SAPPHIRERAPIDS): Ditto.
8969 (PTA_ALDERLAKE): Ditto.
8970 (processor_type) : Add PROCESSOR_SAPPHIRERAPIDS and
8971 PROCESSOR_ALDERLAKE.
8972 * doc/extend.texi: Add sapphirerapids and alderlake.
8973 * doc/invoke.texi: Add sapphirerapids and alderlake.
8974
8975 2020-07-10 Martin Liska <mliska@suse.cz>
8976
8977 * dumpfile.c [profile-report]: Add new profile dump.
8978 * dumpfile.h (enum tree_dump_index): Ad TDI_profile_report.
8979 * passes.c (pass_manager::dump_profile_report): Change stderr
8980 to dump_file.
8981
8982 2020-07-10 Kewen Lin <linkw@linux.ibm.com>
8983
8984 * tree-vect-loop.c (vect_transform_loop): Use LOOP_VINFO_NITERS which
8985 is adjusted by considering peeled prologue for non
8986 vect_use_loop_mask_for_alignment_p cases.
8987
8988 2020-07-09 Peter Bergner <bergner@linux.ibm.com>
8989
8990 PR target/96125
8991 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Define the MMA
8992 specific types __vector_quad and __vector_pair, and initialize the
8993 MMA built-ins if TARGET_EXTRA_BUILTINS is set.
8994 (mma_init_builtins): Don't test for mask set in rs6000_builtin_mask.
8995 Remove now unneeded mask variable.
8996 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add the
8997 OPTION_MASK_MMA flag for power10 if not already set.
8998
8999 2020-07-09 Richard Biener <rguenther@suse.de>
9000
9001 PR tree-optimization/96133
9002 * tree-vect-slp.c (vect_build_slp_tree_1): Compare load_p
9003 status between stmts.
9004
9005 2020-07-09 H.J. Lu <hjl.tools@gmail.com>
9006
9007 PR target/88713
9008 * config/i386/i386-expand.c (ix86_emit_swsqrtsf): Enable FMA.
9009 * config/i386/sse.md (VF_AVX512VL_VF1_128_256): New.
9010 (rsqrt<mode>2): Replace VF1_128_256 with VF_AVX512VL_VF1_128_256.
9011 (rsqrtv16sf2): Removed.
9012
9013 2020-07-09 Richard Biener <rguenther@suse.de>
9014
9015 * tree-vectorizer.h (vect_verify_datarefs_alignment): Remove.
9016 (vect_slp_analyze_and_verify_instance_alignment): Rename to ...
9017 (vect_slp_analyze_instance_alignment): ... this.
9018 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove.
9019 (vect_verify_datarefs_alignment): Likewise.
9020 (vect_enhance_data_refs_alignment): Do not call
9021 vect_verify_datarefs_alignment.
9022 (vect_slp_analyze_node_alignment): Rename from
9023 vect_slp_analyze_and_verify_node_alignment and do not
9024 call verify_data_ref_alignment.
9025 (vect_slp_analyze_instance_alignment): Rename from
9026 vect_slp_analyze_and_verify_instance_alignment.
9027 * tree-vect-stmts.c (vectorizable_store): Dump when
9028 we vectorize an unaligned access.
9029 (vectorizable_load): Likewise.
9030 * tree-vect-loop.c (vect_analyze_loop_2): Do not call
9031 vect_verify_datarefs_alignment.
9032 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust.
9033
9034 2020-07-09 Bin Cheng <bin.cheng@linux.alibaba.com>
9035
9036 PR tree-optimization/95804
9037 * tree-loop-distribution.c (break_alias_scc_partitions): Force
9038 negative post order to reduction partition.
9039
9040 2020-07-09 Jakub Jelinek <jakub@redhat.com>
9041
9042 * omp-general.h (struct omp_for_data): Add min_inner_iterations
9043 and factor members.
9044 * omp-general.c (omp_extract_for_data): Initialize them and remember
9045 them in OMP_CLAUSE_COLLAPSE_COUNT if needed and restore from there.
9046 * omp-expand.c (expand_omp_for_init_counts): Fix up computation of
9047 counts[fd->last_nonrect] if fd->loop.n2 is INTEGER_CST.
9048 (expand_omp_for_init_vars): For
9049 fd->first_nonrect + 1 == fd->last_nonrect loops with for now
9050 INTEGER_CST fd->loop.n2 find quadratic equation roots instead of
9051 using fallback method when possible.
9052
9053 2020-07-09 Omar Tahir <omar.tahir@arm.com>
9054
9055 * ira.c (move_unallocated_pseudos): Zero first_moveable_pseudo and
9056 last_moveable_pseudo before returning.
9057
9058 2020-07-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
9059
9060 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
9061 __ARM_FEATURE_BTI_DEFAULT support.
9062
9063 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
9064
9065 * config/aarch64/aarch64-protos.h (aarch64_indirect_call_asm):
9066 New declaration.
9067 * config/aarch64/aarch64.c (aarch64_regno_regclass): Handle new
9068 stub registers class.
9069 (aarch64_class_max_nregs): Likewise.
9070 (aarch64_register_move_cost): Likewise.
9071 (aarch64_sls_shared_thunks): Global array to store stub labels.
9072 (aarch64_sls_emit_function_stub): New.
9073 (aarch64_create_blr_label): New.
9074 (aarch64_sls_emit_blr_function_thunks): New.
9075 (aarch64_sls_emit_shared_blr_thunks): New.
9076 (aarch64_asm_file_end): New.
9077 (aarch64_indirect_call_asm): New.
9078 (TARGET_ASM_FILE_END): Use aarch64_asm_file_end.
9079 (TARGET_ASM_FUNCTION_EPILOGUE): Use
9080 aarch64_sls_emit_blr_function_thunks.
9081 * config/aarch64/aarch64.h (STB_REGNUM_P): New.
9082 (enum reg_class): Add STUB_REGS class.
9083 (machine_function): Introduce `call_via` array for
9084 function-local stub labels.
9085 * config/aarch64/aarch64.md (*call_insn, *call_value_insn): Use
9086 aarch64_indirect_call_asm to emit code when hardening BLR
9087 instructions.
9088 * config/aarch64/constraints.md (Ucr): New constraint
9089 representing registers for indirect calls. Is GENERAL_REGS
9090 usually, and STUB_REGS when hardening BLR instruction against
9091 SLS.
9092 * config/aarch64/predicates.md (aarch64_general_reg): STUB_REGS class
9093 is also a general register.
9094
9095 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
9096
9097 * config/aarch64/aarch64-protos.h (aarch64_sls_barrier): New.
9098 * config/aarch64/aarch64.c (aarch64_output_casesi): Emit
9099 speculation barrier after BR instruction if needs be.
9100 (aarch64_trampoline_init): Handle ptr_mode value & adjust size
9101 of code copied.
9102 (aarch64_sls_barrier): New.
9103 (aarch64_asm_trampoline_template): Add needed barriers.
9104 * config/aarch64/aarch64.h (AARCH64_ISA_SB): New.
9105 (TARGET_SB): New.
9106 (TRAMPOLINE_SIZE): Account for barrier.
9107 * config/aarch64/aarch64.md (indirect_jump, *casesi_dispatch,
9108 simple_return, *do_return, *sibcall_insn, *sibcall_value_insn):
9109 Emit barrier if needs be, also account for possible barrier using
9110 "sls_length" attribute.
9111 (sls_length): New attribute.
9112 (length): Determine default using any non-default sls_length
9113 value.
9114
9115 2020-07-09 Matthew Malcomson <matthew.malcomson@arm.com>
9116
9117 * config/aarch64/aarch64-protos.h (aarch64_harden_sls_retbr_p):
9118 New.
9119 (aarch64_harden_sls_blr_p): New.
9120 * config/aarch64/aarch64.c (enum aarch64_sls_hardening_type):
9121 New.
9122 (aarch64_harden_sls_retbr_p): New.
9123 (aarch64_harden_sls_blr_p): New.
9124 (aarch64_validate_sls_mitigation): New.
9125 (aarch64_override_options): Parse options for SLS mitigation.
9126 * config/aarch64/aarch64.opt (-mharden-sls): New option.
9127 * doc/invoke.texi: Document new option.
9128
9129 2020-07-09 Kewen Lin <linkw@linux.ibm.com>
9130
9131 * tree-vect-stmts.c (vectorizable_condition): Prohibit vectorization
9132 with partial vectors explicitly excepting for EXTRACT_LAST_REDUCTION
9133 or nested-cycle reduction.
9134
9135 2020-07-09 Kewen Lin <linkw@linux.ibm.com>
9136
9137 * tree-vect-loop.c (vect_analyze_loop_2): Update dumping string
9138 for fully masking to be more common.
9139
9140 2020-07-09 Kito Cheng <kito.cheng@sifive.com>
9141
9142 * config/riscv/riscv.md (get_thread_pointer<mode>): New.
9143 (TP_REGNUM): Ditto.
9144 * doc/extend.texi (Target Builtins): Add RISC-V built-in section.
9145 Document __builtin_thread_pointer.
9146
9147 2020-07-09 Kito Cheng <kito.cheng@sifive.com>
9148
9149 * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
9150 Abort if any arguments on stack.
9151
9152 2020-07-08 Eric Botcazou <ebotcazou@adacore.com>
9153
9154 * gimple-fold.c (gimple_fold_builtin_memory_op): Do not fold if
9155 either type has reverse scalar storage order.
9156 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not propagate through
9157 a memory copy if either type has reverse scalar storage order.
9158
9159 2020-07-08 Tobias Burnus <tobias@codesourcery.com>
9160
9161 * config/gcn/mkoffload.c (compile_native, main): Pass -fPIC/-fpic
9162 on to the native compiler, if used.
9163 * config/nvptx/mkoffload.c (compile_native, main): Likewise.
9164
9165 2020-07-08 Will Schmidt <will_schmidt@vnet.ibm.com>
9166
9167 * config/rs6000/altivec.h (vec_vmsumudm): New define.
9168 * config/rs6000/altivec.md (UNSPEC_VMSUMUDM): New unspec.
9169 (altivec_vmsumudm): New define_insn.
9170 * config/rs6000/rs6000-builtin.def (altivec_vmsumudm): New BU_ALTIVEC_3
9171 entry. (vmsumudm): New BU_ALTIVEC_OVERLOAD_3 entry.
9172 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add entries for
9173 ALTIVEC_BUILTIN_VMSUMUDM variants of vec_msum.
9174 * doc/extend.texi: Add document for vmsumudm behind vmsum.
9175
9176 2020-07-08 Richard Biener <rguenther@suse.de>
9177
9178 * tree-vect-stmts.c (get_group_load_store_type): Pass
9179 in the SLP node and the alignment support scheme output.
9180 Set that.
9181 (get_load_store_type): Likewise.
9182 (vectorizable_store): Adjust.
9183 (vectorizable_load): Likewise.
9184
9185 2020-07-08 Richard Sandiford <richard.sandiford@arm.com>
9186
9187 PR middle-end/95694
9188 * expr.c (expand_expr_real_2): Get the mode from the type rather
9189 than the rtx, and assert that it is consistent with the mode of
9190 the rtx (where known). Optimize all constant integers, not just
9191 those that can be represented in poly_int64.
9192
9193 2020-07-08 Kewen Lin <linkw@linux.ibm.com>
9194
9195 * config/rs6000/vsx.md (len_load_v16qi): New define_expand.
9196 (len_store_v16qi): Likewise.
9197
9198 2020-07-08 Kewen Lin <linkw@linux.ibm.com>
9199
9200 * doc/md.texi (len_load_@var{m}): Document.
9201 (len_store_@var{m}): Likewise.
9202 * internal-fn.c (len_load_direct): New macro.
9203 (len_store_direct): Likewise.
9204 (expand_len_load_optab_fn): Likewise.
9205 (expand_len_store_optab_fn): Likewise.
9206 (direct_len_load_optab_supported_p): Likewise.
9207 (direct_len_store_optab_supported_p): Likewise.
9208 (expand_mask_load_optab_fn): New macro. Original renamed to ...
9209 (expand_partial_load_optab_fn): ... here. Add handlings for
9210 len_load_optab.
9211 (expand_mask_store_optab_fn): New macro. Original renamed to ...
9212 (expand_partial_store_optab_fn): ... here. Add handlings for
9213 len_store_optab.
9214 (internal_load_fn_p): Handle IFN_LEN_LOAD.
9215 (internal_store_fn_p): Handle IFN_LEN_STORE.
9216 (internal_fn_stored_value_index): Handle IFN_LEN_STORE.
9217 * internal-fn.def (LEN_LOAD): New internal function.
9218 (LEN_STORE): Likewise.
9219 * optabs.def (len_load_optab, len_store_optab): New optab.
9220
9221 2020-07-07 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
9222
9223 * config/aarch64/aarch64.c (thunderx2t99_regmove_cost,
9224 thunderx2t99_vector_cost): Likewise.
9225
9226 2020-07-07 Richard Biener <rguenther@suse.de>
9227
9228 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Fix
9229 group overlap condition to allow negative step DR groups.
9230 * tree-vect-stmts.c (get_group_load_store_type): For
9231 multi element SLP groups force VMAT_STRIDED_SLP when the step
9232 is negative.
9233
9234 2020-07-07 Qian Jianhua <qianjh@cn.fujitsu.com>
9235
9236 * doc/generic.texi: Fix typo.
9237
9238 2020-07-07 Richard Biener <rguenther@suse.de>
9239
9240 * lto-streamer-out.c (cmp_symbol_files): Use the computed
9241 order map to sort symbols from the same sub-file together.
9242 (lto_output): Compute a map of sub-file to an order number
9243 it appears in the symbol output array.
9244
9245 2020-07-06 Richard Biener <rguenther@suse.de>
9246
9247 PR tree-optimization/96075
9248 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9249 TYPE_SIZE_UNIT of the vector component type instead of DR_STEP
9250 for the misalignment calculation for negative step.
9251
9252 2020-07-06 Roger Sayle <roger@nextmovesoftware.com>
9253
9254 * config/nvptx/nvptx.md (*vadd_addsi4): New instruction.
9255 (*vsub_addsi4): New instruction.
9256
9257 2020-07-06 Hans-Peter Nilsson <hp@axis.com>
9258
9259 * config/cris/cris.md (movulsr): New peephole2.
9260
9261 2020-07-06 Hans-Peter Nilsson <hp@axis.com>
9262
9263 * config/cris/sync.md ("cris_atomic_fetch_<atomic_op_name><mode>_1"):
9264 Correct gcc_assert of overlapping operands.
9265
9266 2020-07-05 Hans-Peter Nilsson <hp@axis.com>
9267
9268 * config/cris/cris.c (cris_select_cc_mode): Always return
9269 CC_NZmode for matching comparisons. Clarify comments.
9270 * config/cris/cris-modes.def: Clarify mode comment.
9271 * config/cris/cris.md (plusminus, plusminusumin, plusumin): New
9272 code iterators.
9273 (addsub, addsubbo, nd): New code iterator attributes.
9274 ("*<addsub><su>qihi"): Rename from "*extopqihi". Use code
9275 iterator constructs instead of match_operator constructs.
9276 ("*<addsubbo><su><nd><mode>si<setnz>"): Similar from
9277 "*extop<mode>si<setnz>".
9278 ("*add<su>qihi_swap"): Similar from "*addxqihi_swap".
9279 ("*<addsubbo><su><nd><mode>si<setnz>_swap"): Similar from
9280 "*extop<mode>si<setnz>_swap".
9281
9282 2020-07-05 Hans-Peter Nilsson <hp@axis.com>
9283
9284 * config/cris/cris.md ("*extopqihi", "*extop<mode>si<setnz>_swap")
9285 ("*extop<mode>si<setnz>", "*addxqihi_swap"): Reinstate.
9286
9287 2020-07-03 Eric Botcazou <ebotcazou@adacore.com>
9288
9289 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold calls that
9290 were initially created for the assignment of a variable-sized
9291 object and whose source is now a string constant.
9292 * gimple-ssa-store-merging.c (struct merged_store_group): Document
9293 STRING_CST for rhs_code field.
9294 Add string_concatenation boolean field.
9295 (merged_store_group::merged_store_group): Initialize it as well as
9296 bit_insertion here.
9297 (merged_store_group::do_merge): Set it upon seeing a STRING_CST.
9298 Also set bit_insertion here upon seeing a BIT_INSERT_EXPR.
9299 (merged_store_group::apply_stores): Clear it for small regions.
9300 Do not create a power-of-2-sized buffer if it is still true.
9301 And do not set bit_insertion here again.
9302 (encode_tree_to_bitpos): Deal with BLKmode for the expression.
9303 (merged_store_group::can_be_merged_into): Deal with STRING_CST.
9304 (imm_store_chain_info::coalesce_immediate_stores): Set bit_insertion
9305 to true after changing MEM_REF stores into BIT_INSERT_EXPR stores.
9306 (count_multiple_uses): Return 0 for STRING_CST.
9307 (split_group): Do not split the group for a string concatenation.
9308 (imm_store_chain_info::output_merged_store): Constify and rename
9309 some local variables. Build an array type as destination type
9310 for a string concatenation, as well as a zero mask, and call
9311 build_string to build the source.
9312 (lhs_valid_for_store_merging_p): Return true for VIEW_CONVERT_EXPR.
9313 (pass_store_merging::process_store): Accept STRING_CST on the RHS.
9314 * gimple.h (gimple_call_alloca_for_var_p): New accessor function.
9315 * gimplify.c (gimplify_modify_expr_to_memcpy): Set alloca_for_var.
9316 * tree.h (CALL_ALLOCA_FOR_VAR_P): Document it for BUILT_IN_MEMCPY.
9317
9318 2020-07-03 Martin Jambor <mjambor@suse.cz>
9319
9320 PR ipa/96040
9321 * ipa-sra.c (all_callee_accesses_present_p): Do not accept type
9322 mismatched accesses.
9323
9324 2020-07-03 Roger Sayle <roger@nextmovesoftware.com>
9325
9326 * config/nvptx/nvptx.md (popcount<mode>2): New instructions.
9327 (mulhishi3, mulsidi3, umulhisi3, umulsidi3): New instructions.
9328
9329 2020-07-03 Martin Liska <mliska@suse.cz>
9330 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9331
9332 PR bootstrap/96046
9333 * gcov-dump.c (tag_function): Use gcov_position_t
9334 type.
9335
9336 2020-07-03 Richard Biener <rguenther@suse.de>
9337
9338 PR tree-optimization/96037
9339 * tree-vect-stmts.c (vect_is_simple_use): Initialize *slp_def.
9340
9341 2020-07-03 Richard Biener <rguenther@suse.de>
9342
9343 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Cost the
9344 original non-pattern stmts, look at the pattern stmt
9345 vectorization status.
9346
9347 2020-07-03 Andrew Stubbs <ams@codesourcery.com>
9348
9349 * config/gcn/gcn-valu.md (fold_left_plus_<mode>): New.
9350
9351 2020-07-03 Richard Biener <rguenther@suse.de>
9352
9353 * tree-vectorizer.h (vec_info::insert_on_entry): New.
9354 (vec_info::insert_seq_on_entry): Likewise.
9355 * tree-vectorizer.c (vec_info::insert_on_entry): Implement.
9356 (vec_info::insert_seq_on_entry): Likewise.
9357 * tree-vect-stmts.c (vect_init_vector_1): Use
9358 vec_info::insert_on_entry.
9359 (vect_finish_stmt_generation): Set modified bit after
9360 adjusting VUSE.
9361 * tree-vect-slp.c (vect_create_constant_vectors): Simplify
9362 by using vec_info::insert_seq_on_entry and bypassing
9363 vec_init_vector.
9364 (vect_schedule_slp_instance): Deal with all-constant
9365 children later.
9366
9367 2020-07-03 Roger Sayle <roger@nextmovesoftware.com>
9368 Tom de Vries <tdevries@suse.de>
9369
9370 PR target/90932
9371 * config/nvptx/nvptx.c (nvptx_vector_alignment): Use tree_to_uhwi
9372 to access TYPE_SIZE (type). Return at least the mode's alignment.
9373
9374 2020-07-02 Richard Biener <rguenther@suse.de>
9375
9376 PR tree-optimization/96028
9377 * tree-vect-slp.c (vect_slp_convert_to_external): Make sure
9378 we have scalar stmts to use.
9379 (vect_slp_analyze_node_operations): When analyzing a child
9380 failed try externalizing the parent node.
9381
9382 2020-07-02 Martin Jambor <mjambor@suse.cz>
9383
9384 PR debug/95343
9385 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Adjust
9386 argument index if necessary.
9387
9388 2020-07-02 Martin Liska <mliska@suse.cz>
9389
9390 PR middle-end/95830
9391 * tree-vect-generic.c (expand_vector_condition): Forward declaration.
9392 (expand_vector_comparison): Do not expand a comparison if all
9393 uses are consumed by a VEC_COND_EXPR.
9394 (expand_vector_operation): Change void return type to bool.
9395 (expand_vector_operations_1): Pass dce_ssa_names.
9396
9397 2020-07-02 Ilya Leoshkevich <iii@linux.ibm.com>
9398
9399 PR bootstrap/95700
9400 * system.h (NULL): Redefine to nullptr.
9401
9402 2020-07-02 Jakub Jelinek <jakub@redhat.com>
9403
9404 PR tree-optimization/95857
9405 * tree-cfg.c (group_case_labels_stmt): When removing an unreachable
9406 base_bb, remember all forced and non-local labels on it and later
9407 treat those as if they have NULL label_to_block. Formatting fix.
9408 Fix a comment typo.
9409
9410 2020-07-02 Richard Biener <rguenther@suse.de>
9411
9412 PR tree-optimization/96022
9413 * tree-vect-stmts.c (vectorizable_shift): Only use the
9414 first vector stmt when extracting the scalar shift amount.
9415 * tree-vect-slp.c (vect_build_slp_tree_2): Also build unary
9416 nodes with all-scalar children from scalars but not stores.
9417 (vect_analyze_slp_instance): Mark the node not failed.
9418
9419 2020-07-02 Felix Yang <felix.yang@huawei.com>
9420
9421 PR tree-optimization/95961
9422 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use the
9423 number of scalars instead of the number of vectors as an upper bound
9424 for the loop saving info about DR in the hash table. Remove unused
9425 local variables.
9426
9427 2020-07-02 Jakub Jelinek <jakub@redhat.com>
9428
9429 * omp-expand.c (expand_omp_for): Diagnose non-rectangular loops with
9430 invalid steps - ((m2 - m1) * incr_outer) % incr must be 0 in valid
9431 OpenMP non-rectangular loops. Use XALLOCAVEC.
9432
9433 2020-07-02 Martin Liska <mliska@suse.cz>
9434
9435 PR gcov-profile/95348
9436 * coverage.c (read_counts_file): Read only COUNTERS that are
9437 not all-zero.
9438 * gcov-dump.c (tag_function): Change signature from unsigned to
9439 signed integer.
9440 (tag_blocks): Likewise.
9441 (tag_arcs): Likewise.
9442 (tag_lines): Likewise.
9443 (tag_counters): Likewise.
9444 (tag_summary): Likewise.
9445 * gcov.c (read_count_file): Read all non-zero counters
9446 sensitively.
9447
9448 2020-07-02 Kito Cheng <kito.cheng@sifive.com>
9449
9450 * config/riscv/multilib-generator (arch_canonicalize): Handle
9451 multi-letter extension.
9452 Using underline as separator between different extensions.
9453
9454 2020-07-01 Pip Cet <pipcet@gmail.com>
9455
9456 * spellcheck.c (test_data): Add problematic strings.
9457 (test_metric_conditions): Don't test the triangle inequality
9458 condition, which our distance function does not satisfy.
9459
9460 2020-07-01 Omar Tahir <omar.tahir@arm.com>
9461
9462 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Always
9463 generate a BTI instruction.
9464
9465 2020-07-01 Jeff Law <law@redhat.com>
9466
9467 PR tree-optimization/94882
9468 * match.pd (x & y) - (x | y) - 1 -> ~(x ^ y): New simplification.
9469
9470 2020-07-01 Jeff Law <law@redhat.com>
9471
9472 * config/m68k/m68k.c (m68k_output_btst): Drop "register" keyword.
9473 (emit_move_sequence, output_iorsi3, output_xorsi3): Likewise.
9474
9475 2020-07-01 Andrea Corallo <andrea.corallo@arm.com>
9476
9477 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add enums
9478 for 64bits fpsr/fpcr getter setters builtin variants.
9479 (aarch64_init_fpsr_fpcr_builtins): New function.
9480 (aarch64_general_init_builtins): Modify to make use of the later.
9481 (aarch64_expand_fpsr_fpcr_setter): New function.
9482 (aarch64_general_expand_builtin): Modify to make use of the later.
9483 * config/aarch64/aarch64.md (@aarch64_set_<fpscr_name><GPI:mode>)
9484 (@aarch64_get_<fpscr_name><GPI:mode>): New patterns replacing and
9485 generalizing 'get_fpcr', 'set_fpsr'.
9486 * config/aarch64/iterators.md (GET_FPSCR, SET_FPSCR): New int
9487 iterators.
9488 (fpscr_name): New int attribute.
9489 * doc/extend.texi (__builtin_aarch64_get_fpcr64)
9490 (__builtin_aarch64_set_fpcr64, __builtin_aarch64_get_fpsr64)
9491 (__builtin_aarch64_set_fpsr64): Add into AArch64 Built-in
9492 Functions.
9493
9494 2020-07-01 Martin Liska <mliska@suse.cz>
9495
9496 * gcov.c (print_usage): Avoid trailing space for -j option.
9497
9498 2020-07-01 Richard Biener <rguenther@suse.de>
9499
9500 PR tree-optimization/95839
9501 * tree-vect-slp.c (vect_slp_tree_uniform_p): Pre-existing
9502 vectors are not uniform.
9503 (vect_build_slp_tree_1): Handle BIT_FIELD_REFs of
9504 vector registers.
9505 (vect_build_slp_tree_2): For groups of lane extracts
9506 from a vector register generate a permute node
9507 with a special child representing the pre-existing vector.
9508 (vect_prologue_cost_for_slp): Pre-existing vectors cost nothing.
9509 (vect_slp_analyze_node_operations): Use SLP_TREE_LANES.
9510 (vectorizable_slp_permutation): Do not generate or cost identity
9511 permutes.
9512 (vect_schedule_slp_instance): Handle pre-existing vector
9513 that are function arguments.
9514
9515 2020-07-01 Richard Biener <rguenther@suse.de>
9516
9517 * system.h (INCLUDE_ISL): New guarded include.
9518 * graphite-dependences.c: Use it.
9519 * graphite-isl-ast-to-gimple.c: Likewise.
9520 * graphite-optimize-isl.c: Likewise.
9521 * graphite-poly.c: Likewise.
9522 * graphite-scop-detection.c: Likewise.
9523 * graphite-sese-to-poly.c: Likewise.
9524 * graphite.c: Likewise.
9525 * graphite.h: Drop the includes here.
9526
9527 2020-07-01 Martin Liska <mliska@suse.cz>
9528
9529 * gcov.c (print_usage): Shorted option description for -j
9530 option.
9531
9532 2020-07-01 Martin Liska <mliska@suse.cz>
9533
9534 * doc/gcov.texi: Rename 2 options.
9535 * gcov.c (print_usage): Rename -i,--json-format to
9536 -j,--json-format and -j,--human-readable to -H,--human-readable.
9537 (process_args): Fix up parsing. Document obsolete options and
9538 how are they changed.
9539
9540 2020-07-01 Jeff Law <law@redhat.com>
9541
9542 * config/pa/pa.c (pa_emit_move_sequence): Drop register keyword.
9543 (pa_output_ascii): Likewise.
9544
9545 2020-07-01 Kito Cheng <kito.cheng@sifive.com>
9546
9547 * common/config/riscv/riscv-common.c (riscv_subset_t): New field
9548 added.
9549 (riscv_subset_list::parsing_subset_version): Add parameter for
9550 indicate explicitly version, and handle explicitly version.
9551 (riscv_subset_list::handle_implied_ext): Ditto.
9552 (riscv_subset_list::add): Ditto.
9553 (riscv_subset_t::riscv_subset_t): Init new field.
9554 (riscv_subset_list::to_string): Always output version info if version
9555 explicitly specified.
9556 (riscv_subset_list::parsing_subset_version): Handle explicitly
9557 arch version.
9558 (riscv_subset_list::parse_std_ext): Ditto.
9559 (riscv_subset_list::parse_multiletter_ext): Ditto.
9560
9561 2020-06-30 Richard Sandiford <richard.sandiford@arm.com>
9562
9563 PR target/92789
9564 PR target/95726
9565 * config/aarch64/aarch64.c (aarch64_attribute_table): Add
9566 "Advanced SIMD type".
9567 (aarch64_comp_type_attributes): Check that the "Advanced SIMD type"
9568 attributes are equal.
9569 * config/aarch64/aarch64-builtins.c: Include stringpool.h and
9570 attribs.h.
9571 (aarch64_mangle_builtin_vector_type): Use the mangling recorded
9572 in the "Advanced SIMD type" attribute.
9573 (aarch64_init_simd_builtin_types): Add an "Advanced SIMD type"
9574 attribute to each Advanced SIMD type, using the mangled type
9575 as the attribute's single argument.
9576
9577 2020-06-30 Christophe Lyon <christophe.lyon@linaro.org>
9578
9579 PR target/94743
9580 * config/arm/arm.c (arm_handle_isr_attribute): Warn if
9581 -mgeneral-regs-only is not used.
9582
9583 2020-06-30 Yang Yang <yangyang305@huawei.com>
9584
9585 PR tree-optimization/95855
9586 * gimple-ssa-split-paths.c (is_feasible_trace): Add extra
9587 checks to recognize a missed if-conversion opportunity when
9588 judging whether to duplicate a block.
9589
9590 2020-06-29 Segher Boessenkool <segher@kernel.crashing.org>
9591
9592 * doc/extend.texi: Change references to "future architecture" to
9593 "ISA 3.1", "-mcpu=future" to "-mcpu=power10", and remove vaguer
9594 references to "future" (because the future is now).
9595
9596 2020-06-29 Segher Boessenkool <segher@kernel.crashing.org>
9597
9598 * config/rs6000/rs6000.md (isa): Rename "fut" to "p10".
9599
9600 2020-06-29 Roger Sayle <roger@nextmovesoftware.com>
9601
9602 * simplify-rtx.c (simplify_distributive_operation): New function
9603 to un-distribute a binary operation of two binary operations.
9604 (X & C) ^ (Y & C) to (X ^ Y) & C, when C is simple (i.e. a constant).
9605 (simplify_binary_operation_1) <IOR, XOR, AND>: Call it from here
9606 when appropriate.
9607 (test_scalar_int_ops): New function for unit self-testing
9608 scalar integer transformations in simplify-rtx.c.
9609 (test_scalar_ops): Call test_scalar_int_ops for each integer mode.
9610 (simplify_rtx_c_tests): Call test_scalar_ops.
9611
9612 2020-06-29 Richard Biener <rguenther@suse.de>
9613
9614 PR tree-optimization/95916
9615 * tree-vect-slp.c (vect_schedule_slp_instance): Explicitely handle
9616 the case of not vectorized externals.
9617
9618 2020-06-29 Richard Biener <rguenther@suse.de>
9619
9620 * tree-vectorizer.h: Do not include <utility>.
9621
9622 2020-06-29 Martin Liska <mliska@suse.cz>
9623
9624 * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Use gsi_bb
9625 instead of gimple_stmt_iterator::bb.
9626 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
9627 * tree-vectorizer.h: Likewise.
9628
9629 2020-06-29 Andrew Stubbs <ams@codesourcery.com>
9630
9631 * config/gcn/gcn-hsa.h (DBX_REGISTER_NUMBER): New macro.
9632 * config/gcn/gcn-protos.h (gcn_dwarf_register_number): New prototype.
9633 * config/gcn/gcn.c (gcn_expand_prologue): Add RTX_FRAME_RELATED_P
9634 and REG_FRAME_RELATED_EXPR to stack and frame pointer adjustments.
9635 (gcn_dwarf_register_number): New function.
9636 (gcn_dwarf_register_span): New function.
9637 (TARGET_DWARF_REGISTER_SPAN): New hook macro.
9638
9639 2020-06-29 Kaipeng Zhou <zhoukaipeng3@huawei.com>
9640
9641 PR tree-optimization/95854
9642 * gimple-ssa-store-merging.c (find_bswap_or_nop_1): Return NULL
9643 if operand 1 or 2 of a BIT_FIELD_REF cannot be converted to
9644 unsigned HOST_WIDE_INT.
9645
9646 2020-06-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9647
9648 * config/sparc/sparc.c (epilogue_renumber): Remove register.
9649 (sparc_print_operand_address): Likewise.
9650 (sparc_type_code): Likewise.
9651 (set_extends): Likewise.
9652
9653 2020-06-29 Martin Liska <mliska@suse.cz>
9654
9655 PR tree-optimization/92860
9656 * optc-save-gen.awk: Add exceptions for arc target.
9657
9658 2020-06-29 Frederik Harwath <frederik@codesourcery.com>
9659
9660 * doc/sourcebuild.texi: Describe globbing of the
9661 dump file scanning commands "suffix" argument.
9662
9663 2020-06-28 Martin Sebor <msebor@redhat.com>
9664
9665 PR c++/86568
9666 * calls.c (maybe_warn_rdwr_sizes): Use location of argument if
9667 available.
9668 * tree-ssa-ccp.c (pass_post_ipa_warn::execute): Same. Adjust
9669 indentation.
9670 * tree.c (get_nonnull_args): Consider the this pointer implicitly
9671 nonnull.
9672 * var-tracking.c (deps_vec): New type.
9673 (var_loc_dep_vec): New function.
9674 (VAR_LOC_DEP_VEC): Use it.
9675
9676 2020-06-28 Kewen Lin <linkw@linux.ibm.com>
9677
9678 * internal-fn.c (direct_mask_load_optab_supported_p): Use
9679 convert_optab_supported_p instead of direct_optab_supported_p.
9680 (direct_mask_store_optab_supported_p): Likewise.
9681
9682 2020-06-27 Aldy Hernandez <aldyh@redhat.com>
9683
9684 * gimple-ssa-evrp-analyze.h (vrp_visit_cond_stmt): Use
9685 simplify_using_ranges class.
9686 * gimple-ssa-evrp.c (class evrp_folder): New simplify_using_ranges
9687 field. Adjust all methods to use new field.
9688 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Use
9689 simplify_using_ranges class.
9690 * tree-vrp.c (class vrp_folder): New simplify_using_ranges
9691 field. Adjust all methods to use new field.
9692 (simplify_stmt_for_jump_threading): Use simplify_using_ranges class.
9693 (vrp_prop::vrp_finalize): New vrp_folder argument.
9694 (execute_vrp): Pass folder to vrp_finalize. Use
9695 simplify_using_ranges class.
9696 Remove cleanup_edges_and_switches call.
9697 * vr-values.c (vr_values::op_with_boolean_value_range_p): Change
9698 value_range_equiv uses to value_range.
9699 (simplify_using_ranges::op_with_boolean_value_range_p): Use
9700 simplify_using_ranges class.
9701 (check_for_binary_op_overflow): Make static.
9702 (vr_values::extract_range_basic): Pass this to
9703 check_for_binary_op_overflow.
9704 (compare_range_with_value): Change value_range_equiv uses to
9705 value_range.
9706 (vr_values::vr_values): Initialize simplifier field.
9707 Remove uses of to_remove_edges and to_update_switch_stmts.
9708 (vr_values::~vr_values): Remove uses of to_remove_edges and
9709 to_update_switch_stmts.
9710 (vr_values::get_vr_for_comparison): Move to simplify_using_ranges
9711 class.
9712 (vr_values::compare_name_with_value): Same.
9713 (vr_values::compare_names): Same.
9714 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
9715 (vr_values::vrp_evaluate_conditional): Same.
9716 (vr_values::vrp_visit_cond_stmt): Same.
9717 (find_case_label_ranges): Change value_range_equiv uses to
9718 value_range.
9719 (vr_values::extract_range_from_stmt): Use simplify_using_ranges class.
9720 (vr_values::simplify_truth_ops_using_ranges): Move to
9721 simplify_using_ranges class.
9722 (vr_values::simplify_div_or_mod_using_ranges): Same.
9723 (vr_values::simplify_min_or_max_using_ranges): Same.
9724 (vr_values::simplify_abs_using_ranges): Same.
9725 (vr_values::simplify_bit_ops_using_ranges): Same.
9726 (test_for_singularity): Change value_range_equiv uses to
9727 value_range.
9728 (range_fits_type_p): Same.
9729 (vr_values::simplify_cond_using_ranges_1): Same.
9730 (vr_values::simplify_cond_using_ranges_2): Make extern.
9731 (vr_values::fold_cond): Move to simplify_using_ranges class.
9732 (vr_values::simplify_switch_using_ranges): Same.
9733 (vr_values::cleanup_edges_and_switches): Same.
9734 (vr_values::simplify_float_conversion_using_ranges): Same.
9735 (vr_values::simplify_internal_call_using_ranges): Same.
9736 (vr_values::two_valued_val_range_p): Same.
9737 (vr_values::simplify_stmt_using_ranges): Move to...
9738 (simplify_using_ranges::simplify): ...here.
9739 * vr-values.h (class vr_values): Move all the simplification of
9740 statements using ranges methods and code from here...
9741 (class simplify_using_ranges): ...to here.
9742 (simplify_cond_using_ranges_2): New extern prototype.
9743
9744 2020-06-27 Jakub Jelinek <jakub@redhat.com>
9745
9746 * omp-general.h (struct omp_for_data_loop): Add non_rect_referenced
9747 member, move outer member.
9748 (struct omp_for_data): Add first_nonrect and last_nonrect members.
9749 * omp-general.c (omp_extract_for_data): Initialize first_nonrect,
9750 last_nonrect and non_rect_referenced members.
9751 * omp-expand.c (expand_omp_for_init_counts): Handle non-rectangular
9752 loops.
9753 (expand_omp_for_init_vars): Add nonrect_bounds parameter. Handle
9754 non-rectangular loops.
9755 (extract_omp_for_update_vars): Likewise.
9756 (expand_omp_for_generic, expand_omp_for_static_nochunk,
9757 expand_omp_for_static_chunk, expand_omp_simd,
9758 expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): Adjust
9759 expand_omp_for_init_vars and extract_omp_for_update_vars callers.
9760 (expand_omp_for): Don't sorry on non-composite worksharing-loop or
9761 distribute.
9762
9763 2020-06-26 H.J. Lu <hjl.tools@gmail.com>
9764
9765 PR target/95655
9766 * config/i386/gnu-user.h (SUBTARGET_FRAME_POINTER_REQUIRED):
9767 Removed.
9768 * config/i386/i386.c (ix86_frame_pointer_required): Update
9769 comments.
9770
9771 2020-06-26 Yichao Yu <yyc1992@gmail.com>
9772
9773 * multiple_target.c (redirect_to_specific_clone): Fix tests
9774 to check individual attribute rather than an attribute list.
9775
9776 2020-06-26 Peter Bergner <bergner@linux.ibm.com>
9777
9778 * config/rs6000/rs6000-call.c (cpu_is_info) <power10>: New.
9779 * doc/extend.texi (PowerPC Built-in Functions): Document power10,
9780 arch_3_1 and mma.
9781
9782 2020-06-26 Marek Polacek <polacek@redhat.com>
9783
9784 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
9785 * doc/standards.texi (C Language): Correct the default dialect.
9786 (C++ Language): Update the default for C++ to gnu++17.
9787
9788 2020-06-26 Eric Botcazou <ebotcazou@adacore.com>
9789
9790 * tree-ssa-reassoc.c (dump_range_entry): New function.
9791 (debug_range_entry): New debug function.
9792 (update_range_test): Invoke dump_range_entry for dumping.
9793 (optimize_range_tests_to_bit_test): Merge the entry test in the
9794 bit test when possible and lower the profitability threshold.
9795
9796 2020-06-26 Richard Biener <rguenther@suse.de>
9797
9798 PR tree-optimization/95897
9799 * tree-vectorizer.h (vectorizable_induction): Remove
9800 unused gimple_stmt_iterator * parameter.
9801 * tree-vect-loop.c (vectorizable_induction): Likewise.
9802 (vect_analyze_loop_operations): Adjust.
9803 * tree-vect-stmts.c (vect_analyze_stmt): Likewise.
9804 (vect_transform_stmt): Likewise.
9805 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust
9806 for fold-left reductions, clarify existing reduction case.
9807
9808 2020-06-25 Nick Clifton <nickc@redhat.com>
9809
9810 * config/m32r/m32r.md (movsicc): Disable pattern.
9811
9812 2020-06-25 Richard Biener <rguenther@suse.de>
9813
9814 PR tree-optimization/95839
9815 * tree-vect-slp.c (vect_slp_analyze_bb_1): Remove premature
9816 check on the number of datarefs.
9817
9818 2020-06-25 Iain Sandoe <iain@sandoe.co.uk>
9819
9820 * config/rs6000/rs6000-call.c (mma_init_builtins): Cast
9821 the insn_data n_operands value to unsigned.
9822
9823 2020-06-25 Richard Biener <rguenther@suse.de>
9824
9825 * tree-vect-slp.c (vect_schedule_slp_instance): Always use
9826 vector defs to determine insertion place.
9827
9828 2020-06-25 H.J. Lu <hjl.tools@gmail.com>
9829
9830 PR target/95874
9831 * config/i386/i386.h (PTA_ICELAKE_CLIENT): Remove PTA_CLWB.
9832 (PTA_ICELAKE_SERVER): Add PTA_CLWB.
9833 (PTA_TIGERLAKE): Add PTA_CLWB.
9834
9835 2020-06-25 Richard Biener <rguenther@suse.de>
9836
9837 PR tree-optimization/95866
9838 * tree-vect-stmts.c (vectorizable_shift): Reject incompatible
9839 vectorized shift operands. For scalar shifts use lane zero
9840 of a vectorized shift operand.
9841
9842 2020-06-25 Martin Liska <mliska@suse.cz>
9843
9844 PR tree-optimization/95745
9845 PR middle-end/95830
9846 * gimple-isel.cc (gimple_expand_vec_cond_exprs): Delete dead
9847 SSA_NAMEs used as the first argument of a VEC_COND_EXPR. Always
9848 return 0.
9849 * tree-vect-generic.c (expand_vector_condition): Remove dead
9850 SSA_NAMEs used as the first argument of a VEC_COND_EXPR.
9851
9852 2020-06-24 Will Schmidt <will_schmidt@vnet.ibm.com>
9853
9854 PR target/94954
9855 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Update.
9856 * config/rs6000/altivec.md (UNSPEC_CONVERT_4F32_8F16): New unspec.
9857 (convert_4f32_8f16): New define_expand
9858 * config/rs6000/rs6000-builtin.def (convert_4f32_8f16): New builtin define
9859 and overload.
9860 * config/rs6000/rs6000-call.c (P9V_BUILTIN_VEC_CONVERT_4F32_8F16): New
9861 overloaded builtin entry.
9862 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPHP): New unspec.
9863 (vsx_xvcvsphp): New define_insn.
9864
9865 2020-06-24 Roger Sayle <roger@nextmovesoftware.com>
9866 Segher Boessenkool <segher@kernel.crashing.org>
9867
9868 * simplify-rtx.c (simplify_unary_operation_1): Simplify rotates by 0.
9869
9870 2020-06-24 Roger Sayle <roger@nextmovesoftware.com>
9871
9872 * simplify-rtx.c (simplify_unary_operation_1): Simplify
9873 (parity (parity x)) as (parity x), i.e. PARITY is idempotent.
9874
9875 2020-06-24 Richard Biener <rguenther@suse.de>
9876
9877 PR tree-optimization/95866
9878 * tree-vect-slp.c (vect_slp_tree_uniform_p): New.
9879 (vect_build_slp_tree_2): Properly reset matches[0],
9880 ignore uniform constants.
9881
9882 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
9883
9884 PR target/95660
9885 * common/config/i386/cpuinfo.h (get_intel_cpu): Remove brand_id.
9886 (cpu_indicator_init): Likewise.
9887 * config/i386/driver-i386.c (host_detect_local_cpu): Updated.
9888
9889 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
9890
9891 PR target/95774
9892 * common/config/i386/cpuinfo.h (get_intel_cpu): Add Cooper Lake
9893 detection with AVX512BF16.
9894
9895 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
9896
9897 PR target/95843
9898 * common/config/i386/i386-isas.h: New file. Extracted from
9899 gcc/config/i386/i386-builtins.c.
9900 (_isa_names_table): Add option.
9901 (ISA_NAMES_TABLE_START): New.
9902 (ISA_NAMES_TABLE_END): Likewise.
9903 (ISA_NAMES_TABLE_ENTRY): Likewise.
9904 (isa_names_table): Defined with ISA_NAMES_TABLE_START,
9905 ISA_NAMES_TABLE_END and ISA_NAMES_TABLE_ENTRY. Add more ISAs
9906 from enum processor_features.
9907 * config/i386/driver-i386.c: Include
9908 "common/config/i386/cpuinfo.h" and
9909 "common/config/i386/i386-isas.h".
9910 (has_feature): New macro.
9911 (host_detect_local_cpu): Call cpu_indicator_init to get CPU
9912 features. Use has_feature to detect processor features. Call
9913 Call get_intel_cpu to get the newer Intel CPU name. Use
9914 isa_names_table to generate command-line options.
9915 * config/i386/i386-builtins.c: Include
9916 "common/config/i386/i386-isas.h".
9917 (_arch_names_table): Removed.
9918 (isa_names_table): Likewise.
9919
9920 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
9921
9922 PR target/95259
9923 * common/config/i386/cpuinfo.h: New file.
9924 (__processor_model): Moved from libgcc/config/i386/cpuinfo.h.
9925 (__processor_model2): New.
9926 (CHECK___builtin_cpu_is): New. Defined as empty if not defined.
9927 (has_cpu_feature): New function.
9928 (set_cpu_feature): Likewise.
9929 (get_amd_cpu): Moved from libgcc/config/i386/cpuinfo.c. Use
9930 CHECK___builtin_cpu_is. Return AMD CPU name.
9931 (get_intel_cpu): Moved from libgcc/config/i386/cpuinfo.c. Use
9932 Use CHECK___builtin_cpu_is. Return Intel CPU name.
9933 (get_available_features): Moved from libgcc/config/i386/cpuinfo.c.
9934 Also check FEATURE_3DNOW, FEATURE_3DNOWP, FEATURE_ADX,
9935 FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT, FEATURE_CLWB,
9936 FEATURE_CLZERO, FEATURE_CMPXCHG16B, FEATURE_CMPXCHG8B,
9937 FEATURE_ENQCMD, FEATURE_F16C, FEATURE_FSGSBASE, FEATURE_FXSAVE,
9938 FEATURE_HLE, FEATURE_IBT, FEATURE_LAHF_LM, FEATURE_LM,
9939 FEATURE_LWP, FEATURE_LZCNT, FEATURE_MOVBE, FEATURE_MOVDIR64B,
9940 FEATURE_MOVDIRI, FEATURE_MWAITX, FEATURE_OSXSAVE,
9941 FEATURE_PCONFIG, FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
9942 FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
9943 FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
9944 FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
9945 FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
9946 FEATURE_XSAVEOPT and FEATURE_XSAVES
9947 (cpu_indicator_init): Moved from libgcc/config/i386/cpuinfo.c.
9948 Also update cpu_model2.
9949 * common/config/i386/i386-cpuinfo.h (processor_vendor): Add
9950 Add VENDOR_CENTAUR, VENDOR_CYRIX and VENDOR_NSC.
9951 (processor_features): Moved from gcc/config/i386/i386-builtins.c.
9952 Renamed F_XXX to FEATURE_XXX. Add FEATURE_3DNOW, FEATURE_3DNOWP,
9953 FEATURE_ADX, FEATURE_ABM, FEATURE_CLDEMOTE, FEATURE_CLFLUSHOPT,
9954 FEATURE_CLWB, FEATURE_CLZERO, FEATURE_CMPXCHG16B,
9955 FEATURE_CMPXCHG8B, FEATURE_ENQCMD, FEATURE_F16C,
9956 FEATURE_FSGSBASE, FEATURE_FXSAVE, FEATURE_HLE, FEATURE_IBT,
9957 FEATURE_LAHF_LM, FEATURE_LM, FEATURE_LWP, FEATURE_LZCNT,
9958 FEATURE_MOVBE, FEATURE_MOVDIR64B, FEATURE_MOVDIRI,
9959 FEATURE_MWAITX, FEATURE_OSXSAVE, FEATURE_PCONFIG,
9960 FEATURE_PKU, FEATURE_PREFETCHWT1, FEATURE_PRFCHW,
9961 FEATURE_PTWRITE, FEATURE_RDPID, FEATURE_RDRND, FEATURE_RDSEED,
9962 FEATURE_RTM, FEATURE_SERIALIZE, FEATURE_SGX, FEATURE_SHA,
9963 FEATURE_SHSTK, FEATURE_TBM, FEATURE_TSXLDTRK, FEATURE_VAES,
9964 FEATURE_WAITPKG, FEATURE_WBNOINVD, FEATURE_XSAVE, FEATURE_XSAVEC,
9965 FEATURE_XSAVEOPT, FEATURE_XSAVES and CPU_FEATURE_MAX.
9966 (SIZE_OF_CPU_FEATURES): New.
9967 * config/i386/i386-builtins.c (processor_features): Removed.
9968 (isa_names_table): Replace F_XXX with FEATURE_XXX.
9969 (fold_builtin_cpu): Change __cpu_features2 to an array.
9970
9971 2020-06-24 H.J. Lu <hjl.tools@gmail.com>
9972
9973 PR target/95842
9974 * common/config/i386/i386-common.c (processor_alias_table): Add
9975 processor model and priority to each entry.
9976 (pta_size): Updated with -6.
9977 (num_arch_names): New.
9978 * common/config/i386/i386-cpuinfo.h: New file.
9979 * config/i386/i386-builtins.c (feature_priority): Removed.
9980 (processor_model): Likewise.
9981 (_arch_names_table): Likewise.
9982 (arch_names_table): Likewise.
9983 (_isa_names_table): Replace P_ZERO with P_NONE.
9984 (get_builtin_code_for_version): Replace P_ZERO with P_NONE. Use
9985 processor_alias_table.
9986 (fold_builtin_cpu): Replace arch_names_table with
9987 processor_alias_table.
9988 * config/i386/i386.h: Include "common/config/i386/i386-cpuinfo.h".
9989 (pta): Add model and priority.
9990 (num_arch_names): New.
9991
9992 2020-06-24 Richard Biener <rguenther@suse.de>
9993
9994 * tree-vectorizer.h (vect_find_first_scalar_stmt_in_slp):
9995 Declare.
9996 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
9997 Simplify for new position of vectorized SLP loads.
9998 (vect_slp_analyze_node_dependences): Adjust for it.
9999 (vect_slp_analyze_and_verify_node_alignment): Compute alignment
10000 for the first stmts dataref.
10001 * tree-vect-slp.c (vect_find_first_scalar_stmt_in_slp): New.
10002 (vect_schedule_slp_instance): Emit loads before the
10003 first scalar stmt.
10004 * tree-vect-stmts.c (vectorizable_load): Do what the comment
10005 says and use vect_find_first_scalar_stmt_in_slp.
10006
10007 2020-06-24 Richard Biener <rguenther@suse.de>
10008
10009 PR tree-optimization/95856
10010 * tree-vectorizer.c (vect_stmt_dominates_stmt_p): Honor
10011 region marker -1u.
10012
10013 2020-06-24 Jakub Jelinek <jakub@redhat.com>
10014
10015 PR middle-end/95810
10016 * fold-const.c (fold_cond_expr_with_comparison): Optimize
10017 A <= 0 ? A : -A into (type)-absu(A) rather than -abs(A).
10018
10019 2020-06-24 Jakub Jelinek <jakub@redhat.com>
10020
10021 * omp-low.c (lower_omp_for): Fix two pastos.
10022
10023 2020-06-24 Martin Liska <mliska@suse.cz>
10024
10025 * optc-save-gen.awk: Compare string options in cl_optimization_compare
10026 by strcmp.
10027
10028 2020-06-23 Aaron Sawdey <acsawdey@linux.ibm.com>
10029
10030 * config.gcc: Identify power10 as a 64-bit processor and as valid
10031 for --with-cpu and --with-tune.
10032
10033 2020-06-23 David Edelsohn <dje.gcc@gmail.com>
10034
10035 * Makefile.in (LANG_MAKEFRAGS): Same.
10036 (tmake_file): Use -include.
10037 (xmake_file): Same.
10038
10039 2020-06-23 Michael Meissner <meissner@linux.ibm.com>
10040
10041 * REVISION: Delete file meant for a private branch.
10042
10043 2020-06-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
10044
10045 PR target/95646
10046 * config/arm/arm.c: (cmse_nonsecure_entry_clear_before_return): Use
10047 'callee_saved_reg_p' instead of 'calL_used_or_fixed_reg_p'.
10048
10049 2020-06-23 Alexandre Oliva <oliva@adacore.com>
10050
10051 * collect-utils.h (dumppfx): New.
10052 * collect-utils.c (dumppfx): Likewise.
10053 * lto-wrapper.c (run_gcc): Set global dumppfx.
10054 (compile_offload_image): Pass a -dumpbase on to mkoffload.
10055 * config/nvptx/mkoffload.c (ptx_dumpbase): New.
10056 (main): Handle incoming -dumpbase. Set ptx_dumpbase. Obey
10057 save_temps.
10058 (compile_native): Pass -dumpbase et al to compiler.
10059 * config/gcn/mkoffload.c (gcn_dumpbase): New.
10060 (main): Handle incoming -dumpbase. Set gcn_dumpbase. Obey
10061 save_temps. Pass -dumpbase et al to offload target compiler.
10062 (compile_native): Pass -dumpbase et al to compiler.
10063
10064 2020-06-23 Michael Meissner <meissner@linux.ibm.com>
10065
10066 * REVISION: New file.
10067
10068 2020-06-22 Segher Boessenkool <segher@kernel.crashing.org>
10069
10070 * config/rs6000/altivec.h: Use _ARCH_PWR10, not _ARCH_PWR_FUTURE.
10071 Update comment for ISA 3.1.
10072 * config/rs6000/altivec.md: Use TARGET_POWER10, not TARGET_FUTURE.
10073 * config/rs6000/driver-rs6000.c (asm_names): Use -mpwr10 for power10
10074 on AIX, and -mpower10 elsewhere.
10075 * config/rs6000/future.md: Delete.
10076 * config/rs6000/linux64.h: Update comments. Use TARGET_POWER10, not
10077 TARGET_FUTURE.
10078 * config/rs6000/power10.md: New file.
10079 * config/rs6000/ppc-auxv.h: Use PPC_PLATFORM_POWER10, not
10080 PPC_PLATFORM_FUTURE.
10081 * config/rs6000/rs6000-builtin.def: Update comments. Use BU_P10V_*
10082 names instead of BU_FUTURE_V_* names. Use RS6000_BTM_P10 instead of
10083 RS6000_BTM_FUTURE. Use P10_BUILTIN_* instead of FUTURE_BUILTIN_*.
10084 Use BU_P10_* instead of BU_FUTURE_*.
10085 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10086 _ARCH_PWR10 instead of _ARCH_PWR_FUTURE.
10087 (altivec_resolve_overloaded_builtin): Use P10_BUILTIN_VEC_XXEVAL, not
10088 FUTURE_BUILTIN_VEC_XXEVAL.
10089 * config/rs6000/rs6000-call.c: Use P10_BUILTIN_*, not FUTURE_BUILTIN_*.
10090 Update compiler messages.
10091 * config/rs6000/rs6000-cpus.def: Update comments. Use ISA_3_1_*, not
10092 ISA_FUTURE_*. Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE.
10093 * config/rs6000/rs6000-opts.h: Use PROCESSOR_POWER10, not
10094 PROCESSOR_FUTURE.
10095 * config/rs6000/rs6000-string.c: Ditto.
10096 * config/rs6000/rs6000-tables.opt (rs6000_cpu_opt_value): Use "power10"
10097 instead of "future", reorder it to right after "power9".
10098 * config/rs6000/rs6000.c: Update comments. Use OPTION_MASK_POWER10,
10099 not OPTION_MASK_FUTURE. Use TARGET_POWER10, not TARGET_FUTURE. Use
10100 RS6000_BTM_P10, not RS6000_BTM_FUTURE. Update compiler messages.
10101 Use PROCESSOR_POWER10, not PROCESSOR_FUTURE. Use ISA_3_1_MASKS_SERVER,
10102 not ISA_FUTURE_MASKS_SERVER.
10103 (rs6000_opt_masks): Use "power10" instead of "future".
10104 (rs6000_builtin_mask_names): Ditto.
10105 (rs6000_disable_incompatible_switches): Ditto.
10106 * config/rs6000/rs6000.h: Use -mpower10, not -mfuture. Use
10107 -mcpu=power10, not -mcpu=future. Use MASK_POWER10, not MASK_FUTURE.
10108 Use OPTION_MASK_POWER10, not OPTION_MASK_FUTURE. Use RS6000_BTM_P10,
10109 not RS6000_BTM_FUTURE.
10110 * config/rs6000/rs6000.md: Use "power10", not "future". Use
10111 TARGET_POWER10, not TARGET_FUTURE. Include "power10.md", not
10112 "future.md".
10113 * config/rs6000/rs6000.opt (mfuture): Delete.
10114 (mpower10): New.
10115 * config/rs6000/t-rs6000: Use "power10.md", not "future.md".
10116 * config/rs6000/vsx.md: Use TARGET_POWER10, not TARGET_FUTURE.
10117
10118 2020-06-22 Richard Sandiford <richard.sandiford@arm.com>
10119
10120 * coretypes.h (first_type): Delete.
10121 * recog.h (insn_gen_fn::operator()): Go back to using a decltype.
10122
10123 2020-06-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
10124
10125 * doc/sourcebuild.texi (arm_v8_1m_mve_fp_ok): Add item.
10126 (arm_mve_hw): Likewise.
10127
10128 2020-06-22 H.J. Lu <hjl.tools@gmail.com>
10129
10130 PR target/95791
10131 * config/i386/i386.c (ix86_dirflag_mode_needed): Skip
10132 EXT_REX_SSE_REG_P.
10133
10134 2020-06-22 Richard Biener <rguenther@suse.de>
10135
10136 PR tree-optimization/95770
10137 * tree-vect-slp.c (vect_schedule_slp_instance): Also consider
10138 external defs.
10139
10140 2020-06-22 Andrew Stubbs <ams@codesourcery.com>
10141
10142 * config/gcn/gcn.c (gcn_function_arg): Disallow vector arguments.
10143 (gcn_return_in_memory): Return vectors in memory.
10144
10145 2020-06-22 Jakub Jelinek <jakub@redhat.com>
10146
10147 * omp-general.c (omp_extract_for_data): For triangular loops with
10148 all loop invariant expressions constant where the innermost loop is
10149 executed at least once compute number of iterations at compile time.
10150
10151 2020-06-22 Kito Cheng <kito.cheng@sifive.com>
10152
10153 * config/riscv/riscv.h (ASM_SPEC): Remove riscv_expand_arch call.
10154 (DRIVER_SELF_SPECS): New.
10155
10156 2020-06-22 Kito Cheng <kito.cheng@sifive.com>
10157
10158 * config/riscv/riscv-builtins.c (RISCV_FTYPE_NAME0): New.
10159 (RISCV_FTYPE_ATYPES0): New.
10160 (riscv_builtins): Using RISCV_USI_FTYPE for frflags.
10161 * config/riscv/riscv-ftypes.def: Remove VOID argument.
10162
10163 2020-06-21 David Edelsohn <dje.gcc@gmail.com>
10164
10165 * config.gcc: Use t-aix64, biarch64 and default64 for cpu_is_64bit.
10166 * config/rs6000/aix72.h (ASM_SPEC): Remove aix64 option.
10167 (ASM_SPEC32): New.
10168 (ASM_SPEC64): New.
10169 (ASM_CPU_SPEC): Remove vsx and altivec options.
10170 (CPP_SPEC_COMMON): Rename from CPP_SPEC.
10171 (CPP_SPEC32): New.
10172 (CPP_SPEC64): New.
10173 (CPLUSPLUS_CPP_SPEC): Rename to CPLUSPLUS_CPP_SPEC_COMMON..
10174 (TARGET_DEFAULT): Only define if not BIARCH.
10175 (LIB_SPEC_COMMON): Rename from LIB_SPEC.
10176 (LIB_SPEC32): New.
10177 (LIB_SPEC64): New.
10178 (LINK_SPEC_COMMON): Rename from LINK_SPEC.
10179 (LINK_SPEC32): New.
10180 (LINK_SPEC64): New.
10181 (STARTFILE_SPEC): Add 64 bit version of crtcxa and crtdbase.
10182 (ASM_SPEC): Define 32 and 64 bit alternatives using DEFAULT_ARCH64_P.
10183 (CPP_SPEC): Same.
10184 (CPLUSPLUS_CPP_SPEC): Same.
10185 (LIB_SPEC): Same.
10186 (LINK_SPEC): Same.
10187 (SUBTARGET_EXTRA_SPECS): Add new 32/64 specs.
10188 * config/rs6000/defaultaix64.h: New file.
10189 * config/rs6000/t-aix64: New file.
10190
10191 2020-06-21 Peter Bergner <bergner@linux.ibm.com>
10192
10193 * config/rs6000/predicates.md (mma_assemble_input_operand): New.
10194 * config/rs6000/rs6000-builtin.def (BU_MMA_1, BU_MMA_V2, BU_MMA_3,
10195 BU_MMA_5, BU_MMA_6, BU_VSX_1): Add support macros for defining MMA
10196 built-in functions.
10197 (ASSEMBLE_ACC, ASSEMBLE_PAIR, DISASSEMBLE_ACC, DISASSEMBLE_PAIR,
10198 PMXVBF16GER2, PMXVBF16GER2NN, PMXVBF16GER2NP, PMXVBF16GER2PN,
10199 PMXVBF16GER2PP, PMXVF16GER2, PMXVF16GER2NN, PMXVF16GER2NP,
10200 PMXVF16GER2PN, PMXVF16GER2PP, PMXVF32GER, PMXVF32GERNN,
10201 PMXVF32GERNP, PMXVF32GERPN, PMXVF32GERPP, PMXVF64GER, PMXVF64GERNN,
10202 PMXVF64GERNP, PMXVF64GERPN, PMXVF64GERPP, PMXVI16GER2, PMXVI16GER2PP,
10203 PMXVI16GER2S, PMXVI16GER2SPP, PMXVI4GER8, PMXVI4GER8PP, PMXVI8GER4,
10204 PMXVI8GER4PP, PMXVI8GER4SPP, XVBF16GER2, XVBF16GER2NN, XVBF16GER2NP,
10205 XVBF16GER2PN, XVBF16GER2PP, XVCVBF16SP, XVCVSPBF16, XVF16GER2,
10206 XVF16GER2NN, XVF16GER2NP, XVF16GER2PN, XVF16GER2PP, XVF32GER,
10207 XVF32GERNN, XVF32GERNP, XVF32GERPN, XVF32GERPP, XVF64GER, XVF64GERNN,
10208 XVF64GERNP, XVF64GERPN, XVF64GERPP, XVI16GER2, XVI16GER2PP, XVI16GER2S,
10209 XVI16GER2SPP, XVI4GER8, XVI4GER8PP, XVI8GER4, XVI8GER4PP, XVI8GER4SPP,
10210 XXMFACC, XXMTACC, XXSETACCZ): Add MMA built-ins.
10211 * config/rs6000/rs6000.c (rs6000_emit_move): Use CONST_INT_P.
10212 Allow zero constants.
10213 (print_operand) <case 'A'>: New output modifier.
10214 (rs6000_split_multireg_move): Add support for inserting accumulator
10215 priming and depriming instructions. Add support for splitting an
10216 assemble accumulator pattern.
10217 * config/rs6000/rs6000-call.c (mma_init_builtins, mma_expand_builtin,
10218 rs6000_gimple_fold_mma_builtin): New functions.
10219 (RS6000_BUILTIN_M): New macro.
10220 (def_builtin): Handle RS6000_BTC_QUAD and RS6000_BTC_PAIR attributes.
10221 (bdesc_mma): Add new MMA built-in support.
10222 (htm_expand_builtin): Use RS6000_BTC_OPND_MASK.
10223 (rs6000_invalid_builtin): Add handling of RS6000_BTM_FUTURE and
10224 RS6000_BTM_MMA.
10225 (rs6000_builtin_valid_without_lhs): Handle RS6000_BTC_VOID attribute.
10226 (rs6000_gimple_fold_builtin): Call rs6000_builtin_is_supported_p
10227 and rs6000_gimple_fold_mma_builtin.
10228 (rs6000_expand_builtin): Call mma_expand_builtin.
10229 Use RS6000_BTC_OPND_MASK.
10230 (rs6000_init_builtins): Adjust comment. Call mma_init_builtins.
10231 (htm_init_builtins): Use RS6000_BTC_OPND_MASK.
10232 (builtin_function_type): Handle VSX_BUILTIN_XVCVSPBF16 and
10233 VSX_BUILTIN_XVCVBF16SP.
10234 * config/rs6000/rs6000.h (RS6000_BTC_QUINARY, RS6000_BTC_SENARY,
10235 RS6000_BTC_OPND_MASK, RS6000_BTC_QUAD, RS6000_BTC_PAIR,
10236 RS6000_BTC_QUADPAIR, RS6000_BTC_GIMPLE): New defines.
10237 (RS6000_BTC_PREDICATE, RS6000_BTC_ABS, RS6000_BTC_DST,
10238 RS6000_BTC_TYPE_MASK, RS6000_BTC_ATTR_MASK): Adjust values.
10239 * config/rs6000/mma.md (MAX_MMA_OPERANDS): New define_constant.
10240 (UNSPEC_MMA_ASSEMBLE_ACC, UNSPEC_MMA_PMXVBF16GER2,
10241 UNSPEC_MMA_PMXVBF16GER2NN, UNSPEC_MMA_PMXVBF16GER2NP,
10242 UNSPEC_MMA_PMXVBF16GER2PN, UNSPEC_MMA_PMXVBF16GER2PP,
10243 UNSPEC_MMA_PMXVF16GER2, UNSPEC_MMA_PMXVF16GER2NN,
10244 UNSPEC_MMA_PMXVF16GER2NP, UNSPEC_MMA_PMXVF16GER2PN,
10245 UNSPEC_MMA_PMXVF16GER2PP, UNSPEC_MMA_PMXVF32GER,
10246 UNSPEC_MMA_PMXVF32GERNN, UNSPEC_MMA_PMXVF32GERNP,
10247 UNSPEC_MMA_PMXVF32GERPN, UNSPEC_MMA_PMXVF32GERPP,
10248 UNSPEC_MMA_PMXVF64GER, UNSPEC_MMA_PMXVF64GERNN,
10249 UNSPEC_MMA_PMXVF64GERNP, UNSPEC_MMA_PMXVF64GERPN,
10250 UNSPEC_MMA_PMXVF64GERPP, UNSPEC_MMA_PMXVI16GER2,
10251 UNSPEC_MMA_PMXVI16GER2PP, UNSPEC_MMA_PMXVI16GER2S,
10252 UNSPEC_MMA_PMXVI16GER2SPP, UNSPEC_MMA_PMXVI4GER8,
10253 UNSPEC_MMA_PMXVI4GER8PP, UNSPEC_MMA_PMXVI8GER4,
10254 UNSPEC_MMA_PMXVI8GER4PP, UNSPEC_MMA_PMXVI8GER4SPP,
10255 UNSPEC_MMA_XVBF16GER2, UNSPEC_MMA_XVBF16GER2NN,
10256 UNSPEC_MMA_XVBF16GER2NP, UNSPEC_MMA_XVBF16GER2PN,
10257 UNSPEC_MMA_XVBF16GER2PP, UNSPEC_MMA_XVF16GER2, UNSPEC_MMA_XVF16GER2NN,
10258 UNSPEC_MMA_XVF16GER2NP, UNSPEC_MMA_XVF16GER2PN, UNSPEC_MMA_XVF16GER2PP,
10259 UNSPEC_MMA_XVF32GER, UNSPEC_MMA_XVF32GERNN, UNSPEC_MMA_XVF32GERNP,
10260 UNSPEC_MMA_XVF32GERPN, UNSPEC_MMA_XVF32GERPP, UNSPEC_MMA_XVF64GER,
10261 UNSPEC_MMA_XVF64GERNN, UNSPEC_MMA_XVF64GERNP, UNSPEC_MMA_XVF64GERPN,
10262 UNSPEC_MMA_XVF64GERPP, UNSPEC_MMA_XVI16GER2, UNSPEC_MMA_XVI16GER2PP,
10263 UNSPEC_MMA_XVI16GER2S, UNSPEC_MMA_XVI16GER2SPP, UNSPEC_MMA_XVI4GER8,
10264 UNSPEC_MMA_XVI4GER8PP, UNSPEC_MMA_XVI8GER4, UNSPEC_MMA_XVI8GER4PP,
10265 UNSPEC_MMA_XVI8GER4SPP, UNSPEC_MMA_XXMFACC, UNSPEC_MMA_XXMTACC): New.
10266 (MMA_ACC, MMA_VV, MMA_AVV, MMA_PV, MMA_APV, MMA_VVI4I4I8,
10267 MMA_AVVI4I4I8, MMA_VVI4I4I2, MMA_AVVI4I4I2, MMA_VVI4I4,
10268 MMA_AVVI4I4, MMA_PVI4I2, MMA_APVI4I2, MMA_VVI4I4I4,
10269 MMA_AVVI4I4I4): New define_int_iterator.
10270 (acc, vv, avv, pv, apv, vvi4i4i8, avvi4i4i8, vvi4i4i2,
10271 avvi4i4i2, vvi4i4, avvi4i4, pvi4i2, apvi4i2, vvi4i4i4,
10272 avvi4i4i4): New define_int_attr.
10273 (*movpxi): Add zero constant alternative.
10274 (mma_assemble_pair, mma_assemble_acc): New define_expand.
10275 (*mma_assemble_acc): New define_insn_and_split.
10276 (mma_<acc>, mma_xxsetaccz, mma_<vv>, mma_<avv>, mma_<pv>, mma_<apv>,
10277 mma_<vvi4i4i8>, mma_<avvi4i4i8>, mma_<vvi4i4i2>, mma_<avvi4i4i2>,
10278 mma_<vvi4i4>, mma_<avvi4i4>, mma_<pvi4i2>, mma_<apvi4i2>,
10279 mma_<vvi4i4i4>, mma_<avvi4i4i4>): New define_insn.
10280 * config/rs6000/rs6000.md (define_attr "type"): New type mma.
10281 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVBF16SP): New.
10282 (UNSPEC_VSX_XVCVSPBF16): Likewise.
10283 (XVCVBF16): New define_int_iterator.
10284 (xvcvbf16): New define_int_attr.
10285 (vsx_<xvcvbf16>): New define_insn.
10286 * doc/extend.texi: Document the mma built-ins.
10287
10288 2020-06-21 Peter Bergner <bergner@linux.ibm.com>
10289 Michael Meissner <meissner@linux.ibm.com>
10290
10291 * config/rs6000/mma.md: New file.
10292 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10293 __MMA__ for mma.
10294 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Add support
10295 for __vector_pair and __vector_quad types.
10296 * config/rs6000/rs6000-cpus.def (OTHER_FUTURE_MASKS): Add
10297 OPTION_MASK_MMA.
10298 (POWERPC_MASKS): Likewise.
10299 * config/rs6000/rs6000-modes.def (OI, XI): New integer modes.
10300 (POI, PXI): New partial integer modes.
10301 * config/rs6000/rs6000.c (TARGET_INVALID_CONVERSION): Define.
10302 (rs6000_hard_regno_nregs_internal): Use VECTOR_ALIGNMENT_P.
10303 (rs6000_hard_regno_mode_ok_uncached): Likewise.
10304 Add support for POImode being allowed in VSX registers and PXImode
10305 being allowed in FP registers.
10306 (rs6000_modes_tieable_p): Adjust comment.
10307 Add support for POImode and PXImode.
10308 (rs6000_debug_reg_global) <print_tieable_modes>: Add OImode, POImode
10309 XImode, PXImode, V2SImode, V2SFmode and CCFPmode..
10310 (rs6000_setup_reg_addr_masks): Use VECTOR_ALIGNMENT_P.
10311 Set up appropriate addr_masks for vector pair and vector quad addresses.
10312 (rs6000_init_hard_regno_mode_ok): Add support for vector pair and
10313 vector quad registers. Setup reload handlers for POImode and PXImode.
10314 (rs6000_builtin_mask_calculate): Add support for RS6000_BTM_MMA.
10315 (rs6000_option_override_internal): Error if -mmma is specified
10316 without -mcpu=future.
10317 (rs6000_slow_unaligned_access): Use VECTOR_ALIGNMENT_P.
10318 (quad_address_p): Change size test to less than 16 bytes.
10319 (reg_offset_addressing_ok_p): Add support for ISA 3.1 vector pair
10320 and vector quad instructions.
10321 (avoiding_indexed_address_p): Likewise.
10322 (rs6000_emit_move): Disallow POImode and PXImode moves involving
10323 constants.
10324 (rs6000_preferred_reload_class): Prefer VSX registers for POImode
10325 and FP registers for PXImode.
10326 (rs6000_split_multireg_move): Support splitting POImode and PXImode
10327 move instructions.
10328 (rs6000_mangle_type): Adjust comment. Add support for mangling
10329 __vector_pair and __vector_quad types.
10330 (rs6000_opt_masks): Add entry for mma.
10331 (rs6000_builtin_mask_names): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
10332 (rs6000_function_value): Use VECTOR_ALIGNMENT_P.
10333 (address_to_insn_form): Likewise.
10334 (reg_to_non_prefixed): Likewise.
10335 (rs6000_invalid_conversion): New function.
10336 * config/rs6000/rs6000.h (MASK_MMA): Define.
10337 (BIGGEST_ALIGNMENT): Set to 512 if MMA support is enabled.
10338 (VECTOR_ALIGNMENT_P): New helper macro.
10339 (ALTIVEC_VECTOR_MODE): Use VECTOR_ALIGNMENT_P.
10340 (RS6000_BTM_MMA): Define.
10341 (RS6000_BTM_COMMON): Add RS6000_BTM_MMA and RS6000_BTM_FUTURE.
10342 (rs6000_builtin_type_index): Add RS6000_BTI_vector_pair and
10343 RS6000_BTI_vector_quad.
10344 (vector_pair_type_node): New.
10345 (vector_quad_type_node): New.
10346 * config/rs6000/rs6000.md: Include mma.md.
10347 (define_mode_iterator RELOAD): Add POI and PXI.
10348 * config/rs6000/t-rs6000 (MD_INCLUDES): Add mma.md.
10349 * config/rs6000/rs6000.opt (-mmma): New.
10350 * doc/invoke.texi: Document -mmma.
10351
10352 2020-06-20 Bin Cheng <bin.cheng@linux.alibaba.com>
10353
10354 PR tree-optimization/95638
10355 * tree-loop-distribution.c (pg_edge_callback_data): New field.
10356 (loop_distribution::break_alias_scc_partitions): Record and restore
10357 postorder information. Fix memory leak.
10358
10359 2020-06-19 Tobias Burnus <tobias@codesourcery.com>
10360
10361 * config/gcn/gcn.c (gcn_related_vector_mode): Add ARG_UNUSED.
10362 (output_file_start): Use const 'char *'.
10363
10364 2020-06-19 Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>
10365
10366 PR tree-optimization/94880
10367 * match.pd (A | B) - B -> (A & ~B): New simplification.
10368
10369 2020-06-19 Richard Biener <rguenther@suse.de>
10370
10371 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Adjust
10372 for lane permutations.
10373
10374 2020-06-19 Richard Biener <rguenther@suse.de>
10375
10376 PR tree-optimization/95761
10377 * tree-vect-slp.c (vect_schedule_slp_instance): Walk all
10378 vectorized stmts for finding the last one.
10379
10380 2020-06-18 Felix Yang <felix.yang@huawei.com>
10381
10382 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Call
10383 vect_relevant_for_alignment_p to filter out data references in
10384 the loop whose alignment is irrelevant when trying loop peeling
10385 to force alignment.
10386
10387 2020-06-18 Uroš Bizjak <ubizjak@gmail.com>
10388
10389 * config/i386/i386.md (*cmpqi_ext<mode>_1): Use SWI248 mode
10390 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
10391 mode iterator for the first operand of ZERO_EXTRACT RTX.
10392 Change ext_register_operand predicate to register_operand.
10393 Rename from *cmpqi_ext_1.
10394 (*cmpqi_ext<mode>_2): Ditto. Rename from *cmpqi_ext_2.
10395 (*cmpqi_ext<mode>_3): Ditto. Rename from *cmpqi_ext_3.
10396 (*cmpqi_ext<mode>_4): Ditto. Rename from *cmpqi_ext_4.
10397 (cmpi_ext_3): Use HImode instead of SImode for ZERO_EXTRACT RTX.
10398 (*extv<mode>): Use SWI24 mode iterator for the first operand
10399 of ZERO_EXTRACT RTX. Change ext_register_operand predicate
10400 to register_operand.
10401 (*extzv<mode>): Use SWI248 mode iterator for the first operand
10402 of ZERO_EXTRACT RTX. Change ext_register_operand predicate
10403 to register_operand.
10404 (*extzvqi): Use SWI248 mode iterator instead of SImode for
10405 ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first operand
10406 of ZERO_EXTRACT RTX. Change ext_register_operand predicate to
10407 register_operand.
10408 (*extzvqi_mem_rex64 and corresponding peephole2): Use SWI248 mode
10409 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
10410 mode iterator for the first operand of ZERO_EXTRACT RTX.
10411 Change ext_register_operand predicate to register_operand.
10412 (@insv<mode>_1): Use SWI248 mode iterator for the first operand
10413 of ZERO_EXTRACT RTX. Change ext_register_operand predicate to
10414 register_operand.
10415 (*insvqi_1): Use SWI248 mode iterator instead of SImode
10416 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the
10417 first operand of ZERO_EXTRACT RTX. Change ext_register_operand
10418 predicate to register_operand.
10419 (*insvqi_2): Ditto.
10420 (*insvqi_3): Ditto.
10421 (*insvqi_1_mem_rex64 and corresponding peephole2): Use SWI248 mode
10422 iterator instead of SImode for ZERO_EXTRACT RTX. Use SWI248
10423 mode iterator for the first operand of ZERO_EXTRACT RTX.
10424 Change ext_register_operand predicate to register_operand.
10425 (addqi_ext_1): New expander.
10426 (*addqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
10427 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
10428 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
10429 to register_operand. Rename from *addqi_ext_1.
10430 (*addqi_ext<mode>_2): Ditto. Rename from *addqi_ext_2.
10431 (divmodqi4): Use HImode instead of SImode for ZERO_EXTRACT RTX.
10432 (udivmodqi4): Ditto.
10433 (testqi_ext_1): Use HImode instead of SImode for ZERO_EXTRACT RTX.
10434 (*testqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
10435 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
10436 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
10437 to register_operand. Rename from *testqi_ext_1.
10438 (*testqi_ext<mode>_2): Ditto. Rename from *testqi_ext_2.
10439 (andqi_ext_1): New expander.
10440 (*andqi_ext<mode>_1): Use SWI248 mode iterator instead of SImode
10441 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
10442 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
10443 to register_operand. Rename from andqi_ext_1.
10444 (*andqi_ext<mode>_1_cc): Ditto. Rename from *andqi_ext_1_cc.
10445 (*andqi_ext<mode>_2): Ditto. Rename from *andqi_ext_2.
10446 (*<code>qi_ext<mode>_1): Ditto. Rename from *<code>qi_ext_1.
10447 (*<code>qi_ext<mode>_2): Ditto. Rename from *<code>qi_ext_2.
10448 (xorqi_ext_1_cc): Use HImode instead of SImode for ZERO_EXTRACT RTX.
10449 (*xorqi_ext<mode>_1_cc): Use SWI248 mode iterator instead of SImode
10450 for ZERO_EXTRACT RTX. Use SWI248 mode iterator for the first
10451 operand of ZERO_EXTRACT RTX. Change ext_register_operand predicate
10452 to register_operand. Rename from *xorqi_ext_1_cc.
10453 * config/i386/i386-expand.c (ix86_split_idivmod): Emit ZERO_EXTRACT
10454 in mode, matching its first operand.
10455 (promote_duplicated_reg): Update for renamed insv<mode>_1.
10456 * config/i386/predicates.md (ext_register_operand): Remove predicate.
10457
10458 2020-06-18 Martin Sebor <msebor@redhat.com>
10459
10460 PR middle-end/95667
10461 PR middle-end/92814
10462 * builtins.c (compute_objsize): Remove call to
10463 compute_builtin_object_size and instead compute conservative sizes
10464 directly here.
10465
10466 2020-06-18 Martin Liska <mliska@suse.cz>
10467
10468 * coretypes.h (struct iterator_range): New type.
10469 * tree-vect-patterns.c (vect_determine_precisions): Use
10470 range-based iterator.
10471 (vect_pattern_recog): Likewise.
10472 * tree-vect-slp.c (_bb_vec_info): Likewise.
10473 (_bb_vec_info::~_bb_vec_info): Likewise.
10474 (vect_slp_check_for_constructors): Likewise.
10475 * tree-vectorizer.h:Add new iterators
10476 and functions that use it.
10477
10478 2020-06-18 Martin Liska <mliska@suse.cz>
10479
10480 * config/rs6000/rs6000-call.c (fold_build_vec_cmp):
10481 Since 502d63b6d6141597bb18fd23c87736a1b384cf8f, first argument
10482 of a VEC_COND_EXPR cannot be tcc_comparison and so that
10483 a SSA_NAME needs to be created before we use it for the first
10484 argument of the VEC_COND_EXPR.
10485 (fold_compare_helper): Pass gsi to fold_build_vec_cmp.
10486
10487 2020-06-18 Richard Biener <rguenther@suse.de>
10488
10489 PR middle-end/95739
10490 * internal-fn.c (expand_vect_cond_optab_fn): Move the result
10491 to the target if necessary.
10492 (expand_vect_cond_mask_optab_fn): Likewise.
10493
10494 2020-06-18 Martin Liska <mliska@suse.cz>
10495
10496 * tree-ssa-reassoc.c (ovce_extract_ops): Replace *vcond with
10497 vcond as we check for NULL pointer.
10498
10499 2020-06-18 Tobias Burnus <tobias@codesourcery.com>
10500
10501 * gimple-pretty-print.c (dump_binary_rhs): Use braces to
10502 silence empty-body warning with gcc_fallthrough.
10503
10504 2020-06-18 Jakub Jelinek <jakub@redhat.com>
10505
10506 PR tree-optimization/95699
10507 * tree-ssa-phiopt.c (minmax_replacement): Treat (signed int)x < 0
10508 as x > INT_MAX and (signed int)x >= 0 as x <= INT_MAX. Move variable
10509 declarations to the statements that set them where possible.
10510
10511 2020-06-18 Jakub Jelinek <jakub@redhat.com>
10512
10513 PR target/95713
10514 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't allow
10515 scalar mode halfvectype other than vector boolean for
10516 VEC_PACK_TRUNC_EXPR.
10517
10518 2020-06-18 Richard Biener <rguenther@suse.de>
10519
10520 * varasm.c (assemble_variable): Make sure to not
10521 defer output when outputting addressed constants.
10522 (output_constant_def_contents): Likewise.
10523 (add_constant_to_table): Take and pass on whether to
10524 defer output.
10525 (output_addressed_constants): Likewise.
10526 (output_constant_def): Pass on whether to defer output
10527 to add_constant_to_table.
10528 (tree_output_constant_def): Defer output of constants.
10529
10530 2020-06-18 Richard Biener <rguenther@suse.de>
10531
10532 * tree-vectorizer.h (_slp_tree::two_operators): Remove.
10533 (_slp_tree::lane_permutation): New member.
10534 (_slp_tree::code): Likewise.
10535 (SLP_TREE_TWO_OPERATORS): Remove.
10536 (SLP_TREE_LANE_PERMUTATION): New.
10537 (SLP_TREE_CODE): Likewise.
10538 (vect_stmt_dominates_stmt_p): Declare.
10539 * tree-vectorizer.c (vect_stmt_dominates_stmt_p): New function.
10540 * tree-vect-stmts.c (vect_model_simple_cost): Remove
10541 SLP_TREE_TWO_OPERATORS handling.
10542 * tree-vect-slp.c (_slp_tree::_slp_tree): Amend.
10543 (_slp_tree::~_slp_tree): Likewise.
10544 (vect_two_operations_perm_ok_p): Remove.
10545 (vect_build_slp_tree_1): Remove verification of two-operator
10546 permutation here.
10547 (vect_build_slp_tree_2): When we have two different operators
10548 build two computation SLP nodes and a blend.
10549 (vect_print_slp_tree): Print the lane permutation if it exists.
10550 (slp_copy_subtree): Copy it.
10551 (vect_slp_rearrange_stmts): Re-arrange it.
10552 (vect_slp_analyze_node_operations_1): Handle SLP_TREE_CODE
10553 VEC_PERM_EXPR explicitely.
10554 (vect_schedule_slp_instance): Likewise. Remove old
10555 SLP_TREE_TWO_OPERATORS code.
10556 (vectorizable_slp_permutation): New function.
10557
10558 2020-06-18 Martin Liska <mliska@suse.cz>
10559
10560 * tree-vect-generic.c (expand_vector_condition): Check
10561 for gassign before inspecting RHS.
10562
10563 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
10564
10565 * gimplify.c (omp_notice_threadprivate_variable)
10566 (omp_default_clause, omp_notice_variable): 'inform' after 'error'
10567 diagnostic. Adjust all users.
10568
10569 2020-06-17 Thomas Schwinge <thomas@codesourcery.com>
10570
10571 * hsa-gen.c (gen_hsa_insns_for_call): Move 'function_decl ==
10572 NULL_TREE' check earlier.
10573
10574 2020-06-17 Forrest Timour <forrest.timour@gmail.com>
10575
10576 * doc/extend.texi (attribute access): Fix a typo.
10577
10578 2020-06-17 Bin Cheng <bin.cheng@linux.alibaba.com>
10579 Kaipeng Zhou <zhoukaipeng3@huawei.com>
10580
10581 PR tree-optimization/95199
10582 * tree-vect-stmts.c: Eliminate common stmts for bump and offset in
10583 strided load/store operations and remove redundant code.
10584
10585 2020-06-17 Richard Sandiford <richard.sandiford@arm.com>
10586
10587 * coretypes.h (first_type): New alias template.
10588 * recog.h (insn_gen_fn::operator()): Use it instead of a decltype.
10589 Remove spurious “...” and split the function type out into a typedef.
10590
10591 2020-06-17 Andreas Krebbel <krebbel@linux.ibm.com>
10592
10593 * config/s390/s390.c (s390_fix_long_loop_prediction): Exit early
10594 for PARALLELs.
10595
10596 2020-06-17 Richard Biener <rguenther@suse.de>
10597
10598 * tree-vect-slp.c (vect_build_slp_tree_1): Set the passed
10599 in *vectype parameter.
10600 (vect_build_slp_tree_2): Set SLP_TREE_VECTYPE from what
10601 vect_build_slp_tree_1 computed.
10602 (vect_analyze_slp_instance): Set SLP_TREE_VECTYPE.
10603 (vect_slp_analyze_node_operations_1): Use the SLP node vector type.
10604 (vect_schedule_slp_instance): Likewise.
10605 * tree-vect-stmts.c (vect_is_simple_use): Take the vector type
10606 from SLP_TREE_VECTYPE.
10607
10608 2020-06-17 Richard Biener <rguenther@suse.de>
10609
10610 PR tree-optimization/95717
10611 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
10612 Move BB SSA updating before exit/latch PHI current def copying.
10613
10614 2020-06-17 Martin Liska <mliska@suse.cz>
10615
10616 * Makefile.in: Add new file.
10617 * expr.c (expand_expr_real_2): Add gcc_unreachable as we should
10618 not meet this condition.
10619 (do_store_flag): Likewise.
10620 * gimplify.c (gimplify_expr): Gimplify first argument of
10621 VEC_COND_EXPR to be a SSA name.
10622 * internal-fn.c (vec_cond_mask_direct): New.
10623 (vec_cond_direct): Likewise.
10624 (vec_condu_direct): Likewise.
10625 (vec_condeq_direct): Likewise.
10626 (expand_vect_cond_optab_fn): New.
10627 (expand_vec_cond_optab_fn): Likewise.
10628 (expand_vec_condu_optab_fn): Likewise.
10629 (expand_vec_condeq_optab_fn): Likewise.
10630 (expand_vect_cond_mask_optab_fn): Likewise.
10631 (expand_vec_cond_mask_optab_fn): Likewise.
10632 (direct_vec_cond_mask_optab_supported_p): Likewise.
10633 (direct_vec_cond_optab_supported_p): Likewise.
10634 (direct_vec_condu_optab_supported_p): Likewise.
10635 (direct_vec_condeq_optab_supported_p): Likewise.
10636 * internal-fn.def (VCOND): New OPTAB.
10637 (VCONDU): Likewise.
10638 (VCONDEQ): Likewise.
10639 (VCOND_MASK): Likewise.
10640 * optabs.c (get_rtx_code): Make it global.
10641 (expand_vec_cond_mask_expr): Removed.
10642 (expand_vec_cond_expr): Removed.
10643 * optabs.h (expand_vec_cond_expr): Likewise.
10644 (vector_compare_rtx): Make it global.
10645 * passes.def: Add new pass_gimple_isel pass.
10646 * tree-cfg.c (verify_gimple_assign_ternary): Add check
10647 for VEC_COND_EXPR about first argument.
10648 * tree-pass.h (make_pass_gimple_isel): New.
10649 * tree-ssa-forwprop.c (pass_forwprop::execute): Prevent
10650 propagation of the first argument of a VEC_COND_EXPR.
10651 * tree-ssa-reassoc.c (ovce_extract_ops): Support SSA_NAME as
10652 first argument of a VEC_COND_EXPR.
10653 (optimize_vec_cond_expr): Likewise.
10654 * tree-vect-generic.c (expand_vector_divmod): Make SSA_NAME
10655 for a first argument of created VEC_COND_EXPR.
10656 (expand_vector_condition): Fix coding style.
10657 * tree-vect-stmts.c (vectorizable_condition): Gimplify
10658 first argument.
10659 * gimple-isel.cc: New file.
10660
10661 2020-06-17 Andrew Stubbs <ams@codesourcery.com>
10662
10663 * config/gcn/gcn-hsa.h (TEXT_SECTION_ASM_OP): Use ".text".
10664 (BSS_SECTION_ASM_OP): Use ".bss".
10665 (ASM_SPEC): Remove "-mattr=-code-object-v3".
10666 (LINK_SPEC): Add "--export-dynamic".
10667 * config/gcn/gcn-opts.h (processor_type): Replace PROCESSOR_VEGA with
10668 PROCESSOR_VEGA10 and PROCESSOR_VEGA20.
10669 * config/gcn/gcn-run.c (HSA_RUNTIME_LIB): Use ".so.1" variant.
10670 (load_image): Remove obsolete relocation handling.
10671 Add ".kd" suffix to the symbol names.
10672 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT): Set to 62.
10673 (gcn_option_override): Update gcn_isa test.
10674 (gcn_kernel_arg_types): Update all the assembler directives.
10675 Remove the obsolete options.
10676 (gcn_conditional_register_usage): Update MAX_NORMAL_SGPR_COUNT usage.
10677 (gcn_omp_device_kind_arch_isa): Handle PROCESSOR_VEGA10 and
10678 PROCESSOR_VEGA20.
10679 (output_file_start): Rework assembler file header.
10680 (gcn_hsa_declare_function_name): Rework kernel metadata.
10681 * config/gcn/gcn.h (GCN_KERNEL_ARG_TYPES): Set to 16.
10682 * config/gcn/gcn.opt (PROCESSOR_VEGA): Remove enum.
10683 (PROCESSOR_VEGA10): New enum value.
10684 (PROCESSOR_VEGA20): New enum value.
10685
10686 2020-06-17 Martin Liska <mliska@suse.cz>
10687
10688 * gcov-dump.c (print_version): Collapse lisence header to 2 lines
10689 in --version.
10690 * gcov-tool.c (print_version): Likewise.
10691 * gcov.c (print_version): Likewise.
10692
10693 2020-06-17 liuhongt <hongtao.liu@intel.com>
10694
10695 PR target/95524
10696 * config/i386/i386-expand.c
10697 (ix86_expand_vec_shift_qihi_constant): New function.
10698 * config/i386/i386-protos.h
10699 (ix86_expand_vec_shift_qihi_constant): Declare.
10700 * config/i386/sse.md (<shift_insn><mode>3): Optimize shift
10701 V*QImode by constant.
10702
10703 2020-06-16 Aldy Hernandez <aldyh@redhat.com>
10704
10705 PR tree-optimization/95649
10706 * tree-ssa-propagate.c (propagate_into_phi_args): Do not propagate unless
10707 value is a constant.
10708
10709 2020-06-16 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
10710
10711 * config.in: Regenerate.
10712 * config/s390/s390.c (print_operand): Emit vector alignment hints
10713 for target z13, if AS accepts them. For other targets the logic
10714 stays the same.
10715 * config/s390/s390.h (TARGET_VECTOR_LOADSTORE_ALIGNMENT_HINTS): Define
10716 macro.
10717 * configure: Regenerate.
10718 * configure.ac: Check HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS_ON_Z13.
10719
10720 2020-06-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
10721
10722 * config/arm/arm_mve.h (__arm_vaddq_m_n_s8): Correct the intrinsic
10723 arguments.
10724 (__arm_vaddq_m_n_s32): Likewise.
10725 (__arm_vaddq_m_n_s16): Likewise.
10726 (__arm_vaddq_m_n_u8): Likewise.
10727 (__arm_vaddq_m_n_u32): Likewise.
10728 (__arm_vaddq_m_n_u16): Likewise.
10729 (__arm_vaddq_m): Modify polymorphic variant.
10730
10731 2020-06-16 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
10732
10733 * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Correct the predicate
10734 and constraint of all the operands.
10735 (mve_sqrshrl_sat<supf>_di): Likewise.
10736 (mve_uqrshl_si): Likewise.
10737 (mve_sqrshr_si): Likewise.
10738 (mve_uqshll_di): Likewise.
10739 (mve_urshrl_di): Likewise.
10740 (mve_uqshl_si): Likewise.
10741 (mve_urshr_si): Likewise.
10742 (mve_sqshl_si): Likewise.
10743 (mve_srshr_si): Likewise.
10744 (mve_srshrl_di): Likewise.
10745 (mve_sqshll_di): Likewise.
10746 * config/arm/predicates.md (arm_low_register_operand): Define.
10747
10748 2020-06-16 Jakub Jelinek <jakub@redhat.com>
10749
10750 * tree.h (OMP_FOR_NON_RECTANGULAR): Define.
10751 * gimplify.c (gimplify_omp_for): Diagnose schedule, ordered
10752 or dist_schedule clause on non-rectangular loops. Handle
10753 gimplification of non-rectangular lb/b expressions. When changing
10754 iteration variable, adjust also non-rectangular lb/b expressions
10755 referencing that.
10756 * omp-general.h (struct omp_for_data_loop): Add m1, m2 and outer
10757 members.
10758 (struct omp_for_data): Add non_rect member.
10759 * omp-general.c (omp_extract_for_data): Handle non-rectangular
10760 loops. Fill in non_rect, m1, m2 and outer.
10761 * omp-low.c (lower_omp_for): Handle non-rectangular lb/b expressions.
10762 * omp-expand.c (expand_omp_for): Emit sorry_at for unsupported
10763 non-rectangular loop cases and assert for cases that can't be
10764 non-rectangular.
10765 * tree-pretty-print.c (dump_mem_ref): Formatting fix.
10766 (dump_omp_loop_non_rect_expr): New function.
10767 (dump_generic_node): Handle non-rectangular OpenMP loops.
10768 * tree-pretty-print.h (dump_omp_loop_non_rect_expr): Declare.
10769 * gimple-pretty-print.c (dump_gimple_omp_for): Handle non-rectangular
10770 OpenMP loops.
10771
10772 2020-06-16 Richard Biener <rguenther@suse.de>
10773
10774 PR middle-end/95690
10775 * varasm.c (build_constant_desc): Remove set_mem_attributes call.
10776
10777 2020-06-16 Kito Cheng <kito.cheng@sifive.com>
10778
10779 PR target/95683
10780 * config/riscv/riscv.c (riscv_gpr_save_operation_p): Remove
10781 assertion and turn it into a early exit check.
10782
10783 2020-06-15 Eric Botcazou <ebotcazou@adacore.com>
10784
10785 * gimplify.c (gimplify_init_constructor) <AGGREGATE_TYPE>: Declare
10786 new ENSURE_SINGLE_ACCESS constant and move variables down. If it is
10787 true and all elements are zero, then always clear. Return GS_ERROR
10788 if a temporary would be created for it and NOTIFY_TEMP_CREATION set.
10789 (gimplify_modify_expr_rhs) <VAR_DECL>: If the target is volatile but
10790 the type is aggregate non-addressable, ask gimplify_init_constructor
10791 whether it can generate a single access to the target.
10792
10793 2020-06-15 Eric Botcazou <ebotcazou@adacore.com>
10794
10795 * tree-sra.c (propagate_subaccesses_from_rhs): When a non-scalar
10796 access on the LHS is replaced with a scalar access, propagate the
10797 TYPE_REVERSE_STORAGE_ORDER flag of the type of the original access.
10798
10799 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
10800
10801 * config/xtensa/xtensa.c (TARGET_HAVE_TLS): Remove
10802 TARGET_THREADPTR reference.
10803 (xtensa_tls_symbol_p, xtensa_tls_referenced_p): Use
10804 targetm.have_tls instead of TARGET_HAVE_TLS.
10805 (xtensa_option_override): Set targetm.have_tls to false in
10806 configurations without THREADPTR.
10807
10808 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
10809
10810 * config/xtensa/elf.h (ASM_SPEC, LINK_SPEC): Pass ABI switch to
10811 assembler/linker.
10812 * config/xtensa/linux.h (ASM_SPEC, LINK_SPEC): Ditto.
10813 * config/xtensa/uclinux.h (ASM_SPEC, LINK_SPEC): Ditto.
10814 * config/xtensa/xtensa.c (xtensa_option_override): Initialize
10815 xtensa_windowed_abi if needed.
10816 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI_DEFAULT): New
10817 macro.
10818 (TARGET_WINDOWED_ABI): Redefine to xtensa_windowed_abi.
10819 * config/xtensa/xtensa.opt (xtensa_windowed_abi): New target
10820 option variable.
10821 (mabi=call0, mabi=windowed): New options.
10822 * doc/invoke.texi: Document new -mabi= Xtensa-specific options.
10823
10824 2020-06-15 Max Filippov <jcmvbkbc@gmail.com>
10825
10826 * config/xtensa/xtensa.c (xtensa_can_eliminate): New function.
10827 (TARGET_CAN_ELIMINATE): New macro.
10828 * config/xtensa/xtensa.h
10829 (XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM)
10830 (XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM): New macros.
10831 (HARD_FRAME_POINTER_REGNUM): Define using
10832 XTENSA_*_HARD_FRAME_POINTER_REGNUM.
10833 (ELIMINABLE_REGS): Replace lines with HARD_FRAME_POINTER_REGNUM
10834 by lines with XTENSA_WINDOWED_HARD_FRAME_POINTER_REGNUM and
10835 XTENSA_CALL0_HARD_FRAME_POINTER_REGNUM.
10836
10837 2020-06-15 Felix Yang <felix.yang@huawei.com>
10838
10839 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Rename
10840 parameter to loop_vinfo and update uses. Use LOOP_VINFO_DATAREFS
10841 when possible.
10842 (vect_analyze_data_refs_alignment): Likewise, and use LOOP_VINFO_DDRS
10843 when possible.
10844 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Use
10845 LOOP_VINFO_DATAREFS when possible.
10846 (update_epilogue_loop_vinfo): Likewise.
10847
10848 2020-06-15 Kito Cheng <kito.cheng@sifive.com>
10849
10850 * config/riscv/riscv.c (riscv_gen_gpr_save_insn): Change type to
10851 unsigned for i.
10852 (riscv_gpr_save_operation_p): Change type to unsigned for i and
10853 len.
10854
10855 2020-06-15 Hongtao Liu <hongtao.liu@intel.com>
10856
10857 PR target/95488
10858 * config/i386/i386-expand.c (ix86_expand_vecmul_qihi): New
10859 function.
10860 * config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Declare.
10861 * config/i386/sse.md (mul<mode>3): Drop mask_name since
10862 there's no real simd int8 multiplication instruction with
10863 mask. Also optimize it under TARGET_AVX512BW.
10864 (mulv8qi3): New expander.
10865
10866 2020-06-12 Marco Elver <elver@google.com>
10867
10868 * gimplify.c (gimplify_function_tree): Optimize and do not emit
10869 IFN_TSAN_FUNC_EXIT in a finally block if we do not need it.
10870 * params.opt: Add --param=tsan-instrument-func-entry-exit=.
10871 * tsan.c (instrument_memory_accesses): Make
10872 fentry_exit_instrument bool depend on new param.
10873
10874 2020-06-12 Felix Yang <felix.yang@huawei.com>
10875
10876 PR tree-optimization/95570
10877 * tree-vect-data-refs.c (vect_relevant_for_alignment_p): New function.
10878 (vect_verify_datarefs_alignment): Call it to filter out data references
10879 in the loop whose alignment is irrelevant.
10880 (vect_get_peeling_costs_all_drs): Likewise.
10881 (vect_peeling_supportable): Likewise.
10882 (vect_enhance_data_refs_alignment): Likewise.
10883
10884 2020-06-12 Richard Biener <rguenther@suse.de>
10885
10886 PR tree-optimization/95633
10887 * tree-vect-stmts.c (vectorizable_condition): Properly
10888 guard the vec_else_clause access with EXTRACT_LAST_REDUCTION.
10889
10890 2020-06-12 Martin Liška <mliska@suse.cz>
10891
10892 * cgraphunit.c (process_symver_attribute): Wrap weakref keyword.
10893 * dbgcnt.c (dbg_cnt_set_limit_by_index): Do not print extra new
10894 line.
10895 * lto-wrapper.c (merge_and_complain): Wrap option names.
10896
10897 2020-06-12 Kewen Lin <linkw@gcc.gnu.org>
10898
10899 * tree-vect-loop-manip.c (vect_set_loop_controls_directly): Rename
10900 LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE. Rename
10901 LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
10902 (vect_set_loop_condition_masked): Renamed to ...
10903 (vect_set_loop_condition_partial_vectors): ... this. Rename
10904 LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE. Rename
10905 vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
10906 (vect_set_loop_condition_unmasked): Renamed to ...
10907 (vect_set_loop_condition_normal): ... this.
10908 (vect_set_loop_condition): Rename vect_set_loop_condition_unmasked to
10909 vect_set_loop_condition_normal. Rename vect_set_loop_condition_masked
10910 to vect_set_loop_condition_partial_vectors.
10911 (vect_prepare_for_masked_peels): Rename LOOP_VINFO_MASK_COMPARE_TYPE
10912 to LOOP_VINFO_RGROUP_COMPARE_TYPE.
10913 * tree-vect-loop.c (vect_known_niters_smaller_than_vf): New, factored
10914 out from ...
10915 (vect_analyze_loop_costing): ... this.
10916 (_loop_vec_info::_loop_vec_info): Rename mask_compare_type to
10917 compare_type.
10918 (vect_min_prec_for_max_niters): New, factored out from ...
10919 (vect_verify_full_masking): ... this. Rename
10920 vect_iv_limit_for_full_masking to vect_iv_limit_for_partial_vectors.
10921 Rename LOOP_VINFO_MASK_COMPARE_TYPE to LOOP_VINFO_RGROUP_COMPARE_TYPE.
10922 Rename LOOP_VINFO_MASK_IV_TYPE to LOOP_VINFO_RGROUP_IV_TYPE.
10923 (vectorizable_reduction): Update some dumpings with partial
10924 vectors instead of fully-masked.
10925 (vectorizable_live_operation): Likewise.
10926 (vect_iv_limit_for_full_masking): Renamed to ...
10927 (vect_iv_limit_for_partial_vectors): ... this.
10928 * tree-vect-stmts.c (check_load_store_masking): Renamed to ...
10929 (check_load_store_for_partial_vectors): ... this. Update some
10930 dumpings with partial vectors instead of fully-masked.
10931 (vectorizable_store): Rename check_load_store_masking to
10932 check_load_store_for_partial_vectors.
10933 (vectorizable_load): Likewise.
10934 * tree-vectorizer.h (LOOP_VINFO_MASK_COMPARE_TYPE): Renamed to ...
10935 (LOOP_VINFO_RGROUP_COMPARE_TYPE): ... this.
10936 (LOOP_VINFO_MASK_IV_TYPE): Renamed to ...
10937 (LOOP_VINFO_RGROUP_IV_TYPE): ... this.
10938 (vect_iv_limit_for_full_masking): Renamed to ...
10939 (vect_iv_limit_for_partial_vectors): this.
10940 (_loop_vec_info): Rename mask_compare_type to rgroup_compare_type.
10941 Rename iv_type to rgroup_iv_type.
10942
10943 2020-06-12 Richard Sandiford <richard.sandiford@arm.com>
10944
10945 * recog.h (insn_gen_fn::f0, insn_gen_fn::f1, insn_gen_fn::f2)
10946 (insn_gen_fn::f3, insn_gen_fn::f4, insn_gen_fn::f5, insn_gen_fn::f6)
10947 (insn_gen_fn::f7, insn_gen_fn::f8, insn_gen_fn::f9, insn_gen_fn::f10)
10948 (insn_gen_fn::f11, insn_gen_fn::f12, insn_gen_fn::f13)
10949 (insn_gen_fn::f14, insn_gen_fn::f15, insn_gen_fn::f16): Delete.
10950 (insn_gen_fn::operator()): Replace overloaded definitions with
10951 a parameter-pack version.
10952
10953 2020-06-12 H.J. Lu <hjl.tools@gmail.com>
10954
10955 PR target/93492
10956 * config/i386/i386-features.c (rest_of_insert_endbranch):
10957 Renamed to ...
10958 (rest_of_insert_endbr_and_patchable_area): Change return type
10959 to void. Add need_endbr and patchable_area_size arguments.
10960 Don't call timevar_push nor timevar_pop. Replace
10961 endbr_queued_at_entrance with insn_queued_at_entrance. Insert
10962 UNSPECV_PATCHABLE_AREA for patchable area.
10963 (pass_data_insert_endbranch): Renamed to ...
10964 (pass_data_insert_endbr_and_patchable_area): This. Change
10965 pass name to endbr_and_patchable_area.
10966 (pass_insert_endbranch): Renamed to ...
10967 (pass_insert_endbr_and_patchable_area): This. Add need_endbr
10968 and patchable_area_size;.
10969 (pass_insert_endbr_and_patchable_area::gate): Set and check
10970 need_endbr and patchable_area_size.
10971 (pass_insert_endbr_and_patchable_area::execute): Call
10972 timevar_push and timevar_pop. Pass need_endbr and
10973 patchable_area_size to rest_of_insert_endbr_and_patchable_area.
10974 (make_pass_insert_endbranch): Renamed to ...
10975 (make_pass_insert_endbr_and_patchable_area): This.
10976 * config/i386/i386-passes.def: Replace pass_insert_endbranch
10977 with pass_insert_endbr_and_patchable_area.
10978 * config/i386/i386-protos.h (ix86_output_patchable_area): New.
10979 (make_pass_insert_endbranch): Renamed to ...
10980 (make_pass_insert_endbr_and_patchable_area): This.
10981 * config/i386/i386.c (ix86_asm_output_function_label): Set
10982 function_label_emitted to true.
10983 (ix86_print_patchable_function_entry): New function.
10984 (ix86_output_patchable_area): Likewise.
10985 (x86_function_profiler): Replace endbr_queued_at_entrance with
10986 insn_queued_at_entrance. Generate ENDBR only for TYPE_ENDBR.
10987 Call ix86_output_patchable_area to generate patchable area if
10988 needed.
10989 (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): New.
10990 * config/i386/i386.h (queued_insn_type): New.
10991 (machine_function): Add function_label_emitted. Replace
10992 endbr_queued_at_entrance with insn_queued_at_entrance.
10993 * config/i386/i386.md (UNSPECV_PATCHABLE_AREA): New.
10994 (patchable_area): New.
10995
10996 2020-06-11 Martin Liska <mliska@suse.cz>
10997
10998 * config/rs6000/rs6000.c (rs6000_density_test): Fix GNU coding
10999 style.
11000
11001 2020-06-11 Martin Liska <mliska@suse.cz>
11002
11003 PR target/95627
11004 * config/rs6000/rs6000.c (rs6000_density_test): Skip debug
11005 statements.
11006
11007 2020-06-11 Martin Liska <mliska@suse.cz>
11008 Jakub Jelinek <jakub@redhat.com>
11009
11010 PR sanitizer/95634
11011 * asan.c (asan_emit_stack_protection): Fix emission for ilp32
11012 by using Pmode instead of ptr_mode.
11013
11014 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
11015
11016 * tree-vect-loop-manip.c (vect_set_loop_mask): Renamed to ...
11017 (vect_set_loop_control): ... this.
11018 (vect_maybe_permute_loop_masks): Rename rgroup_masks related things.
11019 (vect_set_loop_masks_directly): Renamed to ...
11020 (vect_set_loop_controls_directly): ... this. Also rename some
11021 variables with ctrl instead of mask. Rename vect_set_loop_mask to
11022 vect_set_loop_control.
11023 (vect_set_loop_condition_masked): Rename rgroup_masks related things.
11024 Also rename some variables with ctrl instead of mask.
11025 * tree-vect-loop.c (release_vec_loop_masks): Renamed to ...
11026 (release_vec_loop_controls): ... this. Rename rgroup_masks related
11027 things.
11028 (_loop_vec_info::~_loop_vec_info): Rename release_vec_loop_masks to
11029 release_vec_loop_controls.
11030 (can_produce_all_loop_masks_p): Rename rgroup_masks related things.
11031 (vect_get_max_nscalars_per_iter): Likewise.
11032 (vect_estimate_min_profitable_iters): Likewise.
11033 (vect_record_loop_mask): Likewise.
11034 (vect_get_loop_mask): Likewise.
11035 * tree-vectorizer.h (struct rgroup_masks): Renamed to ...
11036 (struct rgroup_controls): ... this. Also rename mask_type
11037 to type and rename masks to controls.
11038
11039 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
11040
11041 * tree-vect-loop-manip.c (vect_set_loop_condition): Rename
11042 LOOP_VINFO_FULLY_MASKED_P to LOOP_VINFO_USING_PARTIAL_VECTORS_P.
11043 (vect_gen_vector_loop_niters): Likewise.
11044 (vect_do_peeling): Likewise.
11045 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
11046 fully_masked_p to using_partial_vectors_p.
11047 (vect_analyze_loop_costing): Rename LOOP_VINFO_FULLY_MASKED_P to
11048 LOOP_VINFO_USING_PARTIAL_VECTORS_P.
11049 (determine_peel_for_niter): Likewise.
11050 (vect_estimate_min_profitable_iters): Likewise.
11051 (vect_transform_loop): Likewise.
11052 * tree-vectorizer.h (LOOP_VINFO_FULLY_MASKED_P): Updated.
11053 (LOOP_VINFO_USING_PARTIAL_VECTORS_P): New macro.
11054
11055 2020-06-11 Kewen Lin <linkw@gcc.gnu.org>
11056
11057 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Rename
11058 can_fully_mask_p to can_use_partial_vectors_p.
11059 (vect_analyze_loop_2): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
11060 LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P. Rename saved_can_fully_mask_p
11061 to saved_can_use_partial_vectors_p.
11062 (vectorizable_reduction): Rename LOOP_VINFO_CAN_FULLY_MASK_P to
11063 LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P.
11064 (vectorizable_live_operation): Likewise.
11065 * tree-vect-stmts.c (permute_vec_elements): Likewise.
11066 (check_load_store_masking): Likewise.
11067 (vectorizable_operation): Likewise.
11068 (vectorizable_store): Likewise.
11069 (vectorizable_load): Likewise.
11070 (vectorizable_condition): Likewise.
11071 * tree-vectorizer.h (LOOP_VINFO_CAN_FULLY_MASK_P): Renamed to ...
11072 (LOOP_VINFO_CAN_USE_PARTIAL_VECTORS_P): ... this.
11073 (_loop_vec_info): Rename can_fully_mask_p to can_use_partial_vectors_p.
11074
11075 2020-06-11 Martin Liska <mliska@suse.cz>
11076
11077 * optc-save-gen.awk: Quote error string.
11078
11079 2020-06-11 Alexandre Oliva <oliva@adacore.com>
11080
11081 * print-rtl.c (print_mem_expr): Enable TDF_SLIM in dump_flags.
11082
11083 2020-06-11 Kito Cheng <kito.cheng@sifive.com>
11084
11085 * config/riscv/riscv-protos.h (riscv_output_gpr_save): Remove.
11086 * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Update
11087 value.
11088 * config/riscv/riscv.c (riscv_output_gpr_save): Remove.
11089 * config/riscv/riscv.md (gpr_save): Update output asm pattern.
11090
11091 2020-06-11 Kito Cheng <kito.cheng@sifive.com>
11092
11093 * config/riscv/predicates.md (gpr_save_operation): New.
11094 * config/riscv/riscv-protos.h (riscv_gen_gpr_save_insn): New.
11095 (riscv_gpr_save_operation_p): Ditto.
11096 * config/riscv/riscv-sr.c (riscv_remove_unneeded_save_restore_calls):
11097 Ignore USEs for gpr_save patter.
11098 * config/riscv/riscv.c (gpr_save_reg_order): New.
11099 (riscv_expand_prologue): Use riscv_gen_gpr_save_insn to gen gpr_save.
11100 (riscv_gen_gpr_save_insn): New.
11101 (riscv_gpr_save_operation_p): Ditto.
11102 * config/riscv/riscv.md (S3_REGNUM): New.
11103 (S4_REGNUM): Ditto.
11104 (S5_REGNUM): Ditto.
11105 (S6_REGNUM): Ditto.
11106 (S7_REGNUM): Ditto.
11107 (S8_REGNUM): Ditto.
11108 (S9_REGNUM): Ditto.
11109 (S10_REGNUM): Ditto.
11110 (S11_REGNUM): Ditto.
11111 (gpr_save): Model USEs correctly.
11112
11113 2020-06-10 Martin Sebor <msebor@redhat.com>
11114
11115 PR middle-end/95353
11116 PR middle-end/92939
11117 * builtins.c (inform_access): New function.
11118 (check_access): Call it. Add argument.
11119 (addr_decl_size): Remove.
11120 (get_range): New function.
11121 (compute_objsize): New overload. Only use compute_builtin_object_size
11122 with raw memory function.
11123 (check_memop_access): Pass new argument to compute_objsize and
11124 check_access.
11125 (expand_builtin_memchr, expand_builtin_strcat): Same.
11126 (expand_builtin_strcpy, expand_builtin_stpcpy_1): Same.
11127 (expand_builtin_stpncpy, check_strncat_sizes): Same.
11128 (expand_builtin_strncat, expand_builtin_strncpy): Same.
11129 (expand_builtin_memcmp): Same.
11130 * builtins.h (check_nul_terminated_array): Declare extern.
11131 (check_access): Add argument.
11132 (struct access_ref, struct access_data): New structs.
11133 * gimple-ssa-warn-restrict.c (clamp_offset): New helper.
11134 (builtin_access::overlap): Call it.
11135 * tree-object-size.c (decl_init_size): Declare extern.
11136 (addr_object_size): Correct offset computation.
11137 * tree-object-size.h (decl_init_size): Declare.
11138 * tree-ssa-strlen.c (handle_integral_assign): Remove a call
11139 to maybe_warn_overflow when assigning to an SSA_NAME.
11140
11141 2020-06-10 Richard Biener <rguenther@suse.de>
11142
11143 * tree-vect-loop.c (vect_determine_vectorization_factor):
11144 Skip debug stmts.
11145 (_loop_vec_info::_loop_vec_info): Likewise.
11146 (vect_update_vf_for_slp): Likewise.
11147 (vect_analyze_loop_operations): Likewise.
11148 (update_epilogue_loop_vinfo): Likewise.
11149 * tree-vect-patterns.c (vect_determine_precisions): Likewise.
11150 (vect_pattern_recog): Likewise.
11151 * tree-vect-slp.c (vect_detect_hybrid_slp): Likewise.
11152 (_bb_vec_info::_bb_vec_info): Likewise.
11153 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized):
11154 Likewise.
11155
11156 2020-06-10 Richard Biener <rguenther@suse.de>
11157
11158 PR tree-optimization/95576
11159 * tree-vect-slp.c (vect_slp_bb): Skip leading debug stmts.
11160
11161 2020-06-10 Haijian Zhang <z.zhanghaijian@huawei.com>
11162
11163 PR target/95523
11164 * config/aarch64/aarch64-sve-builtins.h
11165 (sve_switcher::m_old_maximum_field_alignment): New member.
11166 * config/aarch64/aarch64-sve-builtins.cc
11167 (sve_switcher::sve_switcher): Save maximum_field_alignment in
11168 m_old_maximum_field_alignment and clear maximum_field_alignment.
11169 (sve_switcher::~sve_switcher): Restore maximum_field_alignment.
11170
11171 2020-06-10 Richard Biener <rguenther@suse.de>
11172
11173 * tree-vectorizer.h (_slp_tree::vec_stmts): Make it a vector
11174 of gimple * stmts.
11175 (_stmt_vec_info::vec_stmts): Likewise.
11176 (vec_info::stmt_vec_info_ro): New flag.
11177 (vect_finish_replace_stmt): Adjust declaration.
11178 (vect_finish_stmt_generation): Likewise.
11179 (vectorizable_induction): Likewise.
11180 (vect_transform_reduction): Likewise.
11181 (vectorizable_lc_phi): Likewise.
11182 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Do not
11183 allocate stmt infos for increments.
11184 (vect_record_grouped_load_vectors): Adjust.
11185 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
11186 (vectorize_fold_left_reduction): Likewise.
11187 (vect_transform_reduction): Likewise.
11188 (vect_transform_cycle_phi): Likewise.
11189 (vectorizable_lc_phi): Likewise.
11190 (vectorizable_induction): Likewise.
11191 (vectorizable_live_operation): Likewise.
11192 (vect_transform_loop): Likewise.
11193 * tree-vect-patterns.c (vect_pattern_recog): Set stmt_vec_info_ro.
11194 * tree-vect-slp.c (vect_get_slp_vect_def): Adjust.
11195 (vect_get_slp_defs): Likewise.
11196 (vect_transform_slp_perm_load): Likewise.
11197 (vect_schedule_slp_instance): Likewise.
11198 (vectorize_slp_instance_root_stmt): Likewise.
11199 * tree-vect-stmts.c (vect_get_vec_defs_for_operand): Likewise.
11200 (vect_finish_stmt_generation_1): Do not allocate a stmt info.
11201 (vect_finish_replace_stmt): Do not return anything.
11202 (vect_finish_stmt_generation): Likewise.
11203 (vect_build_gather_load_calls): Adjust.
11204 (vectorizable_bswap): Likewise.
11205 (vectorizable_call): Likewise.
11206 (vectorizable_simd_clone_call): Likewise.
11207 (vect_create_vectorized_demotion_stmts): Likewise.
11208 (vectorizable_conversion): Likewise.
11209 (vectorizable_assignment): Likewise.
11210 (vectorizable_shift): Likewise.
11211 (vectorizable_operation): Likewise.
11212 (vectorizable_scan_store): Likewise.
11213 (vectorizable_store): Likewise.
11214 (vectorizable_load): Likewise.
11215 (vectorizable_condition): Likewise.
11216 (vectorizable_comparison): Likewise.
11217 (vect_transform_stmt): Likewise.
11218 * tree-vectorizer.c (vec_info::vec_info): Initialize
11219 stmt_vec_info_ro.
11220 (vec_info::replace_stmt): Copy over stmt UID rather than
11221 unsetting/setting a stmt info allocating a new UID.
11222 (vec_info::set_vinfo_for_stmt): Assert !stmt_vec_info_ro.
11223
11224 2020-06-10 Aldy Hernandez <aldyh@redhat.com>
11225
11226 * gimple-loop-versioning.cc (loop_versioning::name_prop::get_value):
11227 Add stmt parameter.
11228 * gimple-ssa-evrp.c (class evrp_folder): New.
11229 (class evrp_dom_walker): Remove.
11230 (execute_early_vrp): Use evrp_folder instead of evrp_dom_walker.
11231 * tree-ssa-ccp.c (ccp_folder::get_value): Add stmt parameter.
11232 * tree-ssa-copy.c (copy_folder::get_value): Same.
11233 * tree-ssa-propagate.c (substitute_and_fold_engine::replace_uses_in):
11234 Pass stmt to get_value.
11235 (substitute_and_fold_engine::replace_phi_args_in): Same.
11236 (substitute_and_fold_dom_walker::after_dom_children): Call
11237 post_fold_bb.
11238 (substitute_and_fold_dom_walker::foreach_new_stmt_in_bb): New.
11239 (substitute_and_fold_dom_walker::propagate_into_phi_args): New.
11240 (substitute_and_fold_dom_walker::before_dom_children): Adjust to
11241 call virtual functions for folding, pre_folding, and post folding.
11242 Call get_value with PHI. Tweak dump.
11243 * tree-ssa-propagate.h (class substitute_and_fold_engine):
11244 New argument to get_value.
11245 New virtual function pre_fold_bb.
11246 New virtual function post_fold_bb.
11247 New virtual function pre_fold_stmt.
11248 New virtual function post_new_stmt.
11249 New function propagate_into_phi_args.
11250 * tree-vrp.c (vrp_folder::get_value): Add stmt argument.
11251 * vr-values.c (vr_values::extract_range_from_stmt): Adjust dump
11252 output.
11253 (vr_values::fold_cond): New.
11254 (vr_values::simplify_cond_using_ranges_1): Call fold_cond.
11255 * vr-values.h (class vr_values): Add
11256 simplify_cond_using_ranges_when_edge_is_known.
11257
11258 2020-06-10 Martin Liska <mliska@suse.cz>
11259
11260 PR sanitizer/94910
11261 * asan.c (asan_emit_stack_protection): Emit
11262 also **SavedFlagPtr(FakeStack, class_id) = 0 in order to release
11263 a stack frame.
11264
11265 2020-06-10 Tamar Christina <tamar.christina@arm.com>
11266
11267 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Adjust costs for mul.
11268
11269 2020-06-10 Richard Biener <rguenther@suse.de>
11270
11271 * tree-vect-data-refs.c (vect_vfa_access_size): Adjust.
11272 (vect_record_grouped_load_vectors): Likewise.
11273 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
11274 (vectorize_fold_left_reduction): Likewise.
11275 (vect_transform_reduction): Likewise.
11276 (vect_transform_cycle_phi): Likewise.
11277 (vectorizable_lc_phi): Likewise.
11278 (vectorizable_induction): Likewise.
11279 (vectorizable_live_operation): Likewise.
11280 (vect_transform_loop): Likewise.
11281 * tree-vect-slp.c (vect_get_slp_defs): New function, split out
11282 from overload.
11283 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Remove.
11284 (vect_get_vec_def_for_operand): Likewise.
11285 (vect_get_vec_def_for_stmt_copy): Likewise.
11286 (vect_get_vec_defs_for_stmt_copy): Likewise.
11287 (vect_get_vec_defs_for_operand): New function.
11288 (vect_get_vec_defs): Likewise.
11289 (vect_build_gather_load_calls): Adjust.
11290 (vect_get_gather_scatter_ops): Likewise.
11291 (vectorizable_bswap): Likewise.
11292 (vectorizable_call): Likewise.
11293 (vectorizable_simd_clone_call): Likewise.
11294 (vect_get_loop_based_defs): Remove.
11295 (vect_create_vectorized_demotion_stmts): Adjust.
11296 (vectorizable_conversion): Likewise.
11297 (vectorizable_assignment): Likewise.
11298 (vectorizable_shift): Likewise.
11299 (vectorizable_operation): Likewise.
11300 (vectorizable_scan_store): Likewise.
11301 (vectorizable_store): Likewise.
11302 (vectorizable_load): Likewise.
11303 (vectorizable_condition): Likewise.
11304 (vectorizable_comparison): Likewise.
11305 (vect_transform_stmt): Adjust and remove no longer applicable
11306 sanity checks.
11307 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11308 STMT_VINFO_VEC_STMTS.
11309 (vec_info::free_stmt_vec_info): Relase it.
11310 * tree-vectorizer.h (_stmt_vec_info::vectorized_stmt): Remove.
11311 (_stmt_vec_info::vec_stmts): Add.
11312 (STMT_VINFO_VEC_STMT): Remove.
11313 (STMT_VINFO_VEC_STMTS): New.
11314 (vect_get_vec_def_for_operand_1): Remove.
11315 (vect_get_vec_def_for_operand): Likewise.
11316 (vect_get_vec_defs_for_stmt_copy): Likewise.
11317 (vect_get_vec_def_for_stmt_copy): Likewise.
11318 (vect_get_vec_defs): New overloads.
11319 (vect_get_vec_defs_for_operand): New.
11320 (vect_get_slp_defs): Declare.
11321
11322 2020-06-10 Qian Chao <qianchao9@huawei.com>
11323
11324 PR tree-optimization/95569
11325 * trans-mem.c (expand_assign_tm): Ensure that rtmp is marked TREE_ADDRESSABLE.
11326
11327 2020-06-10 Martin Liska <mliska@suse.cz>
11328
11329 PR tree-optimization/92860
11330 * optc-save-gen.awk: Generate new function cl_optimization_compare.
11331 * opth-gen.awk: Generate declaration of the function.
11332
11333 2020-06-09 Michael Meissner <meissner@linux.ibm.com>
11334
11335 * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
11336 'future' PowerPC platform.
11337 (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
11338 (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
11339 * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
11340 MMA HWCAP2 bits.
11341 * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
11342 (rs6000_clone_map): Add 'future' system target_clones support.
11343
11344 2020-06-09 Michael Kuhn <gcc@ikkoku.de>
11345
11346 * Makefile.in (ZSTD_INC): Define.
11347 (ZSTD_LIB): Include ZSTD_LDFLAGS.
11348 (CFLAGS-lto-compress.o): Add ZSTD_INC.
11349 * configure.ac (ZSTD_CPPFLAGS, ZSTD_LDFLAGS): New variables for
11350 AC_SUBST.
11351 * configure: Rebuilt.
11352
11353 2020-06-09 Jason Merrill <jason@redhat.com>
11354
11355 PR c++/95552
11356 * tree.c (walk_tree_1): Call func on the TYPE_DECL of a DECL_EXPR.
11357
11358 2020-06-09 Marco Elver <elver@google.com>
11359
11360 * params.opt: Define --param=tsan-distinguish-volatile=[0,1].
11361 * sanitizer.def (BUILT_IN_TSAN_VOLATILE_READ1): Define new
11362 builtin for volatile instrumentation of reads/writes.
11363 (BUILT_IN_TSAN_VOLATILE_READ2): Likewise.
11364 (BUILT_IN_TSAN_VOLATILE_READ4): Likewise.
11365 (BUILT_IN_TSAN_VOLATILE_READ8): Likewise.
11366 (BUILT_IN_TSAN_VOLATILE_READ16): Likewise.
11367 (BUILT_IN_TSAN_VOLATILE_WRITE1): Likewise.
11368 (BUILT_IN_TSAN_VOLATILE_WRITE2): Likewise.
11369 (BUILT_IN_TSAN_VOLATILE_WRITE4): Likewise.
11370 (BUILT_IN_TSAN_VOLATILE_WRITE8): Likewise.
11371 (BUILT_IN_TSAN_VOLATILE_WRITE16): Likewise.
11372 * tsan.c (get_memory_access_decl): Argument if access is
11373 volatile. If param tsan-distinguish-volatile is non-zero, and
11374 access if volatile, return volatile instrumentation decl.
11375 (instrument_expr): Check if access is volatile.
11376
11377 2020-06-09 Richard Biener <rguenther@suse.de>
11378
11379 * tree-vect-loop.c (vectorizable_induction): Remove dead code.
11380
11381 2020-06-09 Tobias Burnus <tobias@codesourcery.com>
11382
11383 * omp-offload.c (add_decls_addresses_to_decl_constructor,
11384 omp_finish_file): With in_lto_p, stream out all offload-table
11385 items even if the symtab_node does not exist.
11386
11387 2020-06-09 Richard Biener <rguenther@suse.de>
11388
11389 * tree-vect-stmts.c (vect_transform_stmt): Remove dead code.
11390
11391 2020-06-09 Martin Liska <mliska@suse.cz>
11392
11393 * gcov-dump.c (print_usage): Fix spacing for --raw option
11394 in --help.
11395
11396 2020-06-09 Martin Liska <mliska@suse.cz>
11397
11398 * cif-code.def (ATTRIBUTE_MISMATCH): Rename to...
11399 (SANITIZE_ATTRIBUTE_MISMATCH): ...this.
11400 * ipa-inline.c (sanitize_attrs_match_for_inline_p):
11401 Handle all sanitizer options.
11402 (can_inline_edge_p): Use renamed CIF_* enum value.
11403
11404 2020-06-09 Joe Ramsay <joe.ramsay@arm.com>
11405
11406 * config/aarch64/aarch64-sve.md (<optab><mode>2): Add support for
11407 unpacked vectors.
11408 (@aarch64_pred_<optab><mode>): Add support for unpacked vectors.
11409 (@aarch64_bic<mode>): Enable unpacked BIC.
11410 (*bic<mode>3): Enable unpacked BIC.
11411
11412 2020-06-09 Martin Liska <mliska@suse.cz>
11413
11414 PR gcov-profile/95365
11415 * doc/gcov.texi: Compile and link one example in 2 steps.
11416
11417 2020-06-09 Jakub Jelinek <jakub@redhat.com>
11418
11419 PR tree-optimization/95527
11420 * match.pd (__builtin_ffs (X) cmp CST): New optimizations.
11421
11422 2020-06-09 Michael Meissner <meissner@linux.ibm.com>
11423
11424 * config/rs6000/ppc-auxv.h (PPC_PLATFORM_FUTURE): Allocate
11425 'future' PowerPC platform.
11426 (PPC_FEATURE2_ARCH_3_1): New HWCAP2 bit for ISA 3.1.
11427 (PPC_FEATURE2_MMA): New HWCAP2 bit for MMA.
11428 * config/rs6000/rs6000-call.c (cpu_supports_info): Add ISA 3.1 and
11429 MMA HWCAP2 bits.
11430 * config/rs6000/rs6000.c (CLONE_ISA_3_1): New clone support.
11431 (rs6000_clone_map): Add 'future' system target_clones support.
11432
11433 2020-06-08 Tobias Burnus <tobias@codesourcery.com>
11434
11435 PR lto/94848
11436 PR middle-end/95551
11437 * omp-offload.c (add_decls_addresses_to_decl_constructor,
11438 omp_finish_file): Skip removed items.
11439 * lto-cgraph.c (output_offload_tables): Likewise; set force_output
11440 to this node for variables and functions.
11441
11442 2020-06-08 Jason Merrill <jason@redhat.com>
11443
11444 * aclocal.m4: Remove ax_cxx_compile_stdcxx.m4.
11445 * configure.ac: Remove AX_CXX_COMPILE_STDCXX.
11446 * configure: Regenerate.
11447
11448 2020-06-08 Martin Sebor <msebor@redhat.com>
11449
11450 * postreload.c (reload_cse_simplify_operands): Clear first array element
11451 before using it. Assert a precondition.
11452
11453 2020-06-08 Jakub Jelinek <jakub@redhat.com>
11454
11455 PR target/95528
11456 * tree-ssa-forwprop.c (simplify_vector_constructor): Don't use
11457 VEC_UNPACK*_EXPR or VEC_PACK_TRUNC_EXPR with scalar modes unless the
11458 type is vector boolean.
11459
11460 2020-06-08 Tamar Christina <tamar.christina@arm.com>
11461
11462 * config/aarch64/aarch64.c (aarch64_layout_frame): Expand comments.
11463
11464 2020-06-08 Christophe Lyon <christophe.lyon@linaro.org>
11465
11466 * config/arm/predicates.md (vfp_register_operand): Use VFP_HI_REGS
11467 instead of VFP_REGS.
11468
11469 2020-06-08 Martin Liska <mliska@suse.cz>
11470
11471 * config/rs6000/vector.md: Replace FAIL with gcc_unreachable
11472 in all vcond* patterns.
11473
11474 2020-06-08 Christophe Lyon <christophe.lyon@linaro.org>
11475
11476 * common/config/arm/arm-common.c (INCLUDE_ALGORITHM):
11477 Define. No longer include <algorithm>.
11478
11479 2020-06-07 Roger Sayle <roger@nextmovesoftware.com>
11480
11481 * config/i386/i386.md (paritydi2, paritysi2): Expand reduction
11482 via shift and xor to an USPEC PARITY matching a parityhi2_cmp.
11483 (paritydi2_cmp, paritysi2_cmp): Delete these define_insn_and_split.
11484 (parityhi2, parityqi2): New expanders.
11485 (parityhi2_cmp): Implement set parity flag with xorb insn.
11486 (parityqi2_cmp): Implement set parity flag with testb insn.
11487 New peephole2s to use these insns (UNSPEC PARITY) when appropriate.
11488
11489 2020-06-07 Jiufu Guo <guojiufu@linux.ibm.com>
11490
11491 PR target/95018
11492 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11493 Override flag_cunroll_grow_size.
11494
11495 2020-06-07 Jiufu Guo <guojiufu@linux.ibm.com>
11496
11497 * common.opt (flag_cunroll_grow_size): New flag.
11498 * toplev.c (process_options): Set flag_cunroll_grow_size.
11499 * tree-ssa-loop-ivcanon.c (pass_complete_unroll::execute):
11500 Use flag_cunroll_grow_size.
11501
11502 2020-06-06 Jan Hubicka <hubicka@ucw.cz>
11503
11504 PR lto/95548
11505 * ipa-devirt.c (struct odr_enum_val): Turn values to wide_int.
11506 (ipa_odr_summary_write): Update streaming.
11507 (ipa_odr_read_section): Update streaming.
11508
11509 2020-06-06 Alexandre Oliva <oliva@adacore.com>
11510
11511 PR driver/95456
11512 * gcc.c (do_spec_1): Don't call memcpy (_, NULL, 0).
11513
11514 2020-06-05 Thomas Schwinge <thomas@codesourcery.com>
11515 Julian Brown <julian@codesourcery.com>
11516
11517 * gimplify.c (gimplify_adjust_omp_clauses): Remove
11518 'GOMP_MAP_STRUCT' mapping from OpenACC 'exit data' directives.
11519
11520 2020-06-05 Richard Biener <rguenther@suse.de>
11521
11522 PR tree-optimization/95539
11523 * tree-vect-data-refs.c
11524 (vect_slp_analyze_and_verify_instance_alignment): Use
11525 SLP_TREE_REPRESENTATIVE for the data-ref check.
11526 * tree-vect-stmts.c (vectorizable_load): Reset stmt_info
11527 back to the first scalar stmt rather than the
11528 SLP_TREE_REPRESENTATIVE to match previous behavior.
11529
11530 2020-06-05 Felix Yang <felix.yang@huawei.com>
11531
11532 PR target/95254
11533 * expr.c (emit_move_insn): Check src and dest of the copy to see
11534 if one or both of them are subregs, try to remove the subregs when
11535 innermode and outermode are equal in size and the mode change involves
11536 an implicit round trip through memory.
11537
11538 2020-06-05 Jakub Jelinek <jakub@redhat.com>
11539
11540 PR target/95535
11541 * config/i386/i386.md (*ctzsi2_zext, *clzsi2_lzcnt_zext): New
11542 define_insn_and_split patterns.
11543 (*ctzsi2_zext_falsedep, *clzsi2_lzcnt_zext_falsedep): New
11544 define_insn patterns.
11545
11546 2020-06-05 Jonathan Wakely <jwakely@redhat.com>
11547
11548 * alloc-pool.h (object_allocator::remove_raw): New.
11549 * tree-ssa-math-opts.c (struct occurrence): Use NSMDI.
11550 (occurrence::occurrence): Add.
11551 (occurrence::~occurrence): Likewise.
11552 (occurrence::new): Likewise.
11553 (occurrence::delete): Likewise.
11554 (occ_new): Remove.
11555 (insert_bb): Use new occurence (...) instead of occ_new.
11556 (register_division_in): Likewise.
11557 (free_bb): Use delete occ instead of manually removing
11558 from the pool.
11559
11560 2020-06-05 Richard Biener <rguenther@suse.de>
11561
11562 PR middle-end/95493
11563 * cfgexpand.c (expand_debug_expr): Avoid calling
11564 set_mem_attributes_minus_bitpos when we were expanding
11565 an SSA name.
11566 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
11567 ARRAY_REF special-casing, add CONSTRUCTOR to the set of
11568 special-cases we do not want MEM_EXPRs for. Assert
11569 we end up with reasonable MEM_EXPRs.
11570
11571 2020-06-05 Lili Cui <lili.cui@intel.com>
11572
11573 PR target/95525
11574 * config/i386/i386.h (PTA_WAITPKG): Change bitmask value.
11575
11576 2020-06-04 Martin Sebor <msebor@redhat.com>
11577
11578 PR middle-end/10138
11579 PR middle-end/95136
11580 * attribs.c (init_attr_rdwr_indices): Move function here.
11581 * attribs.h (rdwr_access_hash, rdwr_map): Define.
11582 (attr_access): Add 'none'.
11583 (init_attr_rdwr_indices): Declared function.
11584 * builtins.c (warn_for_access)): New function.
11585 (check_access): Call it.
11586 * builtins.h (checK-access): Add an optional argument.
11587 * calls.c (rdwr_access_hash, rdwr_map): Move to attribs.h.
11588 (init_attr_rdwr_indices): Declare extern.
11589 (append_attrname): Handle attr_access::none.
11590 (maybe_warn_rdwr_sizes): Same.
11591 (initialize_argument_information): Update comments.
11592 * doc/extend.texi (attribute access): Document 'none'.
11593 * tree-ssa-uninit.c (struct wlimits): New.
11594 (maybe_warn_operand): New function.
11595 (maybe_warn_pass_by_reference): Same.
11596 (warn_uninitialized_vars): Refactor code into maybe_warn_operand.
11597 Also call for function calls.
11598 (pass_late_warn_uninitialized::execute): Adjust comments.
11599 (execute_early_warn_uninitialized): Same.
11600
11601 2020-06-04 Vladimir Makarov <vmakarov@redhat.com>
11602
11603 PR middle-end/95464
11604 * lra.c (lra_emit_move): Add processing STRICT_LOW_PART.
11605 * lra-constraints.c (match_reload): Use STRICT_LOW_PART in output
11606 reload if the original insn has it too.
11607
11608 2020-06-04 Richard Biener <rguenther@suse.de>
11609
11610 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr):
11611 Ensure that tmp_ha is marked TREE_ADDRESSABLE.
11612
11613 2020-06-04 Martin Jambor <mjambor@suse.cz>
11614
11615 PR ipa/95113
11616 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move non-call
11617 exceptions check to...
11618 * tree-eh.c (stmt_unremovable_because_of_non_call_eh_p): ...this
11619 new function.
11620 * tree-eh.h (stmt_unremovable_because_of_non_call_eh_p): Declare it.
11621 * ipa-sra.c (isra_track_scalar_value_uses): Use it. New parameter
11622 fun.
11623
11624 2020-06-04 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
11625
11626 PR target/94735
11627 * config/arm/predicates.md (mve_scatter_memory): Define to
11628 match (mem (reg)) for scatter store memory.
11629 * config/arm/mve.md (mve_vstrbq_scatter_offset_<supf><mode>): Modify
11630 define_insn to define_expand.
11631 (mve_vstrbq_scatter_offset_p_<supf><mode>): Likewise.
11632 (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
11633 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
11634 (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
11635 (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
11636 (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
11637 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
11638 (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
11639 (mve_vstrhq_scatter_offset_fv8hf): Likewise.
11640 (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
11641 (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
11642 (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
11643 (mve_vstrwq_scatter_offset_fv4sf): Likewise.
11644 (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
11645 (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
11646 (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
11647 (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
11648 (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
11649 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
11650 (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
11651 (mve_vstrbq_scatter_offset_<supf><mode>_insn): Define insn for scatter
11652 stores.
11653 (mve_vstrbq_scatter_offset_p_<supf><mode>_insn): Likewise.
11654 (mve_vstrhq_scatter_offset_<supf><mode>_insn): Likewise.
11655 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>_insn): Likewise.
11656 (mve_vstrhq_scatter_shifted_offset_<supf><mode>_insn): Likewise.
11657 (mve_vstrdq_scatter_offset_p_<supf>v2di_insn): Likewise.
11658 (mve_vstrdq_scatter_offset_<supf>v2di_insn): Likewise.
11659 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di_insn): Likewise.
11660 (mve_vstrdq_scatter_shifted_offset_<supf>v2di_insn): Likewise.
11661 (mve_vstrhq_scatter_offset_fv8hf_insn): Likewise.
11662 (mve_vstrhq_scatter_offset_p_fv8hf_insn): Likewise.
11663 (mve_vstrhq_scatter_shifted_offset_fv8hf_insn): Likewise.
11664 (mve_vstrhq_scatter_shifted_offset_p_fv8hf_insn): Likewise.
11665 (mve_vstrwq_scatter_offset_fv4sf_insn): Likewise.
11666 (mve_vstrwq_scatter_offset_p_fv4sf_insn): Likewise.
11667 (mve_vstrwq_scatter_offset_p_<supf>v4si_insn): Likewise.
11668 (mve_vstrwq_scatter_offset_<supf>v4si_insn): Likewise.
11669 (mve_vstrwq_scatter_shifted_offset_fv4sf_insn): Likewise.
11670 (mve_vstrwq_scatter_shifted_offset_p_fv4sf_insn): Likewise.
11671 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si_insn): Likewise.
11672 (mve_vstrwq_scatter_shifted_offset_<supf>v4si_insn): Likewise.
11673
11674 2020-06-04 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
11675
11676 * config/arm/arm_mve.h (__arm_vbicq_n_u16): Correct the intrinsic
11677 arguments.
11678 (__arm_vbicq_n_s16): Likewise.
11679 (__arm_vbicq_n_u32): Likewise.
11680 (__arm_vbicq_n_s32): Likewise.
11681 (__arm_vbicq): Modify polymorphic variant.
11682
11683 2020-06-04 Richard Biener <rguenther@suse.de>
11684
11685 * tree-vectorizer.h (vect_get_slp_vect_def): Declare.
11686 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
11687 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
11688 (vect_is_simple_use): Use SLP_TREE_REPRESENTATIVE.
11689 * tree-vect-slp.c (vect_get_slp_vect_defs): Fold into single
11690 use ...
11691 (vect_get_slp_defs): ... here.
11692 (vect_get_slp_vect_def): New function.
11693
11694 2020-06-04 Richard Biener <rguenther@suse.de>
11695
11696 * tree-vectorizer.h (_slp_tree::lanes): New.
11697 (SLP_TREE_LANES): Likewise.
11698 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use it.
11699 (vectorizable_reduction): Likewise.
11700 (vect_transform_cycle_phi): Likewise.
11701 (vectorizable_induction): Likewise.
11702 (vectorizable_live_operation): Likewise.
11703 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize lanes.
11704 (vect_create_new_slp_node): Likewise.
11705 (slp_copy_subtree): Copy it.
11706 (vect_optimize_slp): Use it.
11707 (vect_slp_analyze_node_operations_1): Likewise.
11708 (vect_slp_convert_to_external): Likewise.
11709 (vect_bb_vectorization_profitable_p): Likewise.
11710 * tree-vect-stmts.c (vectorizable_load): Likewise.
11711 (get_vectype_for_scalar_type): Likewise.
11712
11713 2020-06-04 Richard Biener <rguenther@suse.de>
11714
11715 * tree-vect-slp.c (vect_update_all_shared_vectypes): Remove.
11716 (vect_build_slp_tree_2): Simplify building all external op
11717 nodes from scalars.
11718 (vect_slp_analyze_node_operations): Remove push/pop of
11719 STMT_VINFO_DEF_TYPE.
11720 (vect_schedule_slp_instance): Likewise.
11721 * tree-vect-stmts.c (ect_check_store_rhs): Pass in the
11722 stmt_info, use the vect_is_simple_use overload combining
11723 SLP and stmt_info analysis.
11724 (vect_is_simple_cond): Likewise.
11725 (vectorizable_store): Adjust.
11726 (vectorizable_condition): Likewise.
11727 (vect_is_simple_use): Fully handle invariant SLP nodes
11728 here. Amend stmt_info operand extraction with COND_EXPR
11729 and masked stores.
11730 * tree-vect-loop.c (vectorizable_reduction): Deal with
11731 COND_EXPR representation ugliness.
11732
11733 2020-06-04 Hongtao Liu <hongtao.liu@inte.com>
11734
11735 PR target/95254
11736 * config/i386/sse.md (*vcvtps2ph_store<merge_mask_name>):
11737 Refine from *vcvtps2ph_store<mask_name>.
11738 (vcvtps2ph256<mask_name>): Refine constraint from vm to v.
11739 (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
11740 (*vcvtps2ph256<merge_mask_name>): New define_insn.
11741 (*avx512f_vcvtps2ph512<merge_mask_name>): Ditto.
11742 * config/i386/subst.md (merge_mask): New define_subst.
11743 (merge_mask_name): New define_subst_attr.
11744 (merge_mask_operand3): Ditto.
11745
11746 2020-06-04 Hao Liu <hliu@os.amperecomputing.com>
11747
11748 PR tree-optimization/89430
11749 * tree-ssa-phiopt.c
11750 (struct name_to_bb): Rename to ref_to_bb; add a new field exp;
11751 remove ssa_name_ver, store, offset fields.
11752 (struct ssa_names_hasher): Rename to refs_hasher; update functions.
11753 (class nontrapping_dom_walker): Rename m_seen_ssa_names to m_seen_refs.
11754 (nontrapping_dom_walker::add_or_mark_expr): Extend to support ARRAY_REFs
11755 and COMPONENT_REFs.
11756
11757 2020-06-04 Andreas Schwab <schwab@suse.de>
11758
11759 PR target/95154
11760 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Call assemble_external.
11761
11762 2020-06-04 Hongtao.liu <hongtao.liu@intel.com>
11763
11764 * config/i386/sse.md (pmov_dst_3_lower): New mode attribute.
11765 (trunc<mode><pmov_dst_3_lower>2): Refine from
11766 trunc<mode><pmov_dst_3>2.
11767
11768 2020-06-03 Vitor Guidi <vitor.guidi@usp.br>
11769
11770 * match.pd (tanh/sinh -> 1/cosh): New simplification.
11771
11772 2020-06-03 Aaron Sawdey <acsawdey@linux.ibm.com>
11773
11774 PR target/95347
11775 * config/rs6000/rs6000.c (is_stfs_insn): Rename to
11776 is_lfs_stfs_insn and make it recognize lfs as well.
11777 (prefixed_store_p): Use is_lfs_stfs_insn().
11778 (prefixed_load_p): Use is_lfs_stfs_insn() to recognize lfs.
11779
11780 2020-06-03 Jan Hubicka <hubicka@ucw.cz>
11781
11782 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
11783 streamer-hooks.h.
11784 (odr_enums): New static var.
11785 (struct odr_enum_val): New struct.
11786 (class odr_enum): New struct.
11787 (odr_enum_map): New hashtable.
11788 (odr_types_equivalent_p): Drop code testing TYPE_VALUES.
11789 (add_type_duplicate): Likewise.
11790 (free_odr_warning_data): Do not free TYPE_VALUES.
11791 (register_odr_enum): New function.
11792 (ipa_odr_summary_write): New function.
11793 (ipa_odr_read_section): New function.
11794 (ipa_odr_summary_read): New function.
11795 (class pass_ipa_odr): New pass.
11796 (make_pass_ipa_odr): New function.
11797 * ipa-utils.h (register_odr_enum): Declare.
11798 * lto-section-in.c: (lto_section_name): Add odr_types section.
11799 * lto-streamer.h (enum lto_section_type): Add odr_types section.
11800 * passes.def: Add odr_types pass.
11801 * lto-streamer-out.c (DFS::DFS_write_tree_body): Do not stream
11802 TYPE_VALUES.
11803 (hash_tree): Likewise.
11804 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
11805 Likewise.
11806 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
11807 Likewise.
11808 * timevar.def (TV_IPA_ODR): New timervar.
11809 * tree-pass.h (make_pass_ipa_odr): Declare.
11810 * tree.c (free_lang_data_in_type): Regiser ODR types.
11811
11812 2020-06-03 Romain Naour <romain.naour@gmail.com>
11813
11814 * Makefile.in (SELFTEST_DEPS): Move before including language makefile
11815 fragments.
11816
11817 2020-06-03 Richard Biener <rguenther@suse.de>
11818
11819 PR tree-optimization/95487
11820 * tree-vect-stmts.c (vectorizable_store): Use a truth type
11821 for the scatter mask.
11822
11823 2020-06-03 Richard Biener <rguenther@suse.de>
11824
11825 PR tree-optimization/95495
11826 * tree-vect-slp.c (vect_slp_analyze_node_operations): Use
11827 SLP_TREE_REPRESENTATIVE in the shift assertion.
11828
11829 2020-06-03 Tom Tromey <tromey@adacore.com>
11830
11831 * spellcheck.c (CASE_COST): New define.
11832 (BASE_COST): New define.
11833 (get_edit_distance): Recognize case changes.
11834 (get_edit_distance_cutoff): Update.
11835 (test_edit_distances): Update.
11836 (get_old_cutoff): Update.
11837 (test_find_closest_string): Add case sensitivity test.
11838
11839 2020-06-03 Richard Biener <rguenther@suse.de>
11840
11841 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Loop over
11842 the cost vector to unset the visited flag on stmts.
11843
11844 2020-06-03 Tobias Burnus <tobias@codesourcery.com>
11845
11846 * gimplify.c (omp_notice_variable): Use new hook.
11847 * langhooks-def.h (lhd_omp_predetermined_mapping): Declare.
11848 (LANG_HOOKS_OMP_PREDETERMINED_MAPPING): Define
11849 (LANG_HOOKS_DECLS): Add it.
11850 * langhooks.c (lhd_omp_predetermined_sharing): Remove bogus unused attr.
11851 (lhd_omp_predetermined_mapping): New.
11852 * langhooks.h (struct lang_hooks_for_decls): Add new hook.
11853
11854 2020-06-03 Jan Hubicka <jh@suse.cz>
11855
11856 * lto-streamer.h (LTO_tags): Reorder so frequent tags has small indexes;
11857 add LTO_first_tree_tag and LTO_first_gimple_tag.
11858 (lto_tag_is_tree_code_p): Update.
11859 (lto_tag_is_gimple_code_p): Update.
11860 (lto_gimple_code_to_tag): Update.
11861 (lto_tag_to_gimple_code): Update.
11862 (lto_tree_code_to_tag): Update.
11863 (lto_tag_to_tree_code): Update.
11864
11865 2020-06-02 Felix Yang <felix.yang@huawei.com>
11866
11867 PR target/95459
11868 * config/aarch64/aarch64.c (aarch64_short_vector_p):
11869 Leave later code to report an error if SVE is disabled.
11870
11871 2020-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11872
11873 * config/aarch64/aarch64-cores.def (zeus): Define.
11874 * config/aarch64/aarch64-tune.md: Regenerate.
11875 * doc/invoke.texi (AArch64 Options): Document zeus -mcpu option.
11876
11877 2020-06-02 Aaron Sawdey <acsawdey@linux.ibm.com>
11878
11879 PR target/95347
11880 * config/rs6000/rs6000.c (prefixed_store_p): Add special case
11881 for stfs.
11882 (is_stfs_insn): New helper function.
11883
11884 2020-06-02 Jan Hubicka <jh@suse.cz>
11885
11886 * lto-streamer-in.c (stream_read_tree_ref): Simplify streaming of
11887 references.
11888 * lto-streamer-out.c (stream_write_tree_ref): Likewise.
11889
11890 2020-06-02 Andrew Stubbs <ams@codesourcery.com>
11891
11892 * config/gcn/gcn-hsa.h (CC1_SPEC): Delete.
11893 * config/gcn/gcn.opt (-mlocal-symbol-id): Delete.
11894 * config/gcn/mkoffload.c (main): Don't use -mlocal-symbol-id.
11895
11896 2020-06-02 Eric Botcazou <ebotcazou@adacore.com>
11897
11898 PR middle-end/95395
11899 * optabs.c (expand_unop): Fix bits/bytes confusion in latest change.
11900 * tree-pretty-print.c (dump_generic_node) <ARRAY_TYPE>: Print quals.
11901
11902 2020-06-02 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
11903
11904 * config/s390/s390.c (print_operand): Emit vector alignment
11905 hints for z13.
11906
11907 2020-06-02 Martin Liska <mliska@suse.cz>
11908
11909 * coverage.c (get_coverage_counts): Skip sanity check for TOP N counters
11910 as they have variable number of counters.
11911 * gcov-dump.c (main): Add new option -r.
11912 (print_usage): Likewise.
11913 (tag_counters): All new raw format.
11914 * gcov-io.h (struct gcov_kvp): New.
11915 (GCOV_TOPN_VALUES): Remove.
11916 (GCOV_TOPN_VALUES_COUNTERS): Likewise.
11917 (GCOV_TOPN_MEM_COUNTERS): New.
11918 (GCOV_TOPN_DISK_COUNTERS): Likewise.
11919 (GCOV_TOPN_MAXIMUM_TRACKED_VALUES): Likewise.
11920 * ipa-profile.c (ipa_profile_generate_summary): Use
11921 GCOV_TOPN_MAXIMUM_TRACKED_VALUES.
11922 (ipa_profile_write_edge_summary): Likewise.
11923 (ipa_profile_read_edge_summary): Likewise.
11924 (ipa_profile): Remove usage of GCOV_TOPN_VALUES.
11925 * profile.c (sort_hist_values): Sort variable number
11926 of counters.
11927 (compute_value_histograms): Special case for TOP N counters
11928 that have dynamic number of key-value pairs.
11929 * value-prof.c (dump_histogram_value): Dump variable number
11930 of key-value pairs.
11931 (stream_in_histogram_value): Stream in variable number
11932 of key-value pairs for TOP N counter.
11933 (get_nth_most_common_value): Deal with variable number
11934 of key-value pairs.
11935 (dump_ic_profile): Use GCOV_TOPN_MAXIMUM_TRACKED_VALUES
11936 for loop iteration.
11937 (gimple_find_values_to_profile): Set GCOV_TOPN_MEM_COUNTERS
11938 to n_counters.
11939 * doc/gcov-dump.texi: Document new -r option.
11940
11941 2020-06-02 Iain Buclaw <ibuclaw@gdcproject.org>
11942
11943 PR target/95420
11944 * config.gcc (arm-wrs-vxworks7*): Set default cpu to generic-armv7-a.
11945
11946 2020-06-01 Jeff Law <law@torsion.usersys.redhat.com>
11947
11948 * lower-subreg.c (resolve_simple_move): If simplify_gen_subreg_concatn
11949 returns (const_int 0) for the destination, then emit nothing.
11950
11951 2020-06-01 Jan Hubicka <hubicka@ucw.cz>
11952
11953 * lto-streamer.h (enum LTO_tags): Remove LTO_field_decl_ref,
11954 LTO_function_decl_ref, LTO_label_decl_ref, LTO_namespace_decl_ref,
11955 LTO_result_decl_ref, LTO_type_decl_ref, LTO_type_ref,
11956 LTO_const_decl_ref, LTO_imported_decl_ref,
11957 LTO_translation_unit_decl_ref, LTO_global_decl_ref and
11958 LTO_namelist_decl_ref; add LTO_global_stream_ref.
11959 * lto-streamer-in.c (lto_input_tree_ref): Simplify.
11960 (lto_input_scc): Update.
11961 (lto_input_tree_1): Update.
11962 * lto-streamer-out.c (lto_indexable_tree_ref): Simlify.
11963 * lto-streamer.c (lto_tag_name): Update.
11964
11965 2020-06-01 Jan Hubicka <hubicka@ucw.cz>
11966
11967 * ipa-reference.c (stream_out_bitmap): Use lto_output_var_decl_ref.
11968 (ipa_reference_read_optimization_summary): Use lto_intput_var_decl_ref.
11969 * lto-cgraph.c (lto_output_node): Likewise.
11970 (lto_output_varpool_node): Likewise.
11971 (output_offload_tables): Likewise.
11972 (input_node): Likewise.
11973 (input_varpool_node): Likewise.
11974 (input_offload_tables): Likewise.
11975 * lto-streamer-in.c (lto_input_tree_ref): Declare.
11976 (lto_input_var_decl_ref): Declare.
11977 (lto_input_fn_decl_ref): Declare.
11978 * lto-streamer-out.c (lto_indexable_tree_ref): Use only one decl stream.
11979 (lto_output_var_decl_index): Rename to ..
11980 (lto_output_var_decl_ref): ... this.
11981 (lto_output_fn_decl_index): Rename to ...
11982 (lto_output_fn_decl_ref): ... this.
11983 * lto-streamer.h (enum lto_decl_stream_e_t): Remove per-type streams.
11984 (DEFINE_DECL_STREAM_FUNCS): Remove.
11985 (lto_output_var_decl_index): Remove.
11986 (lto_output_fn_decl_index): Remove.
11987 (lto_output_var_decl_ref): Declare.
11988 (lto_output_fn_decl_ref): Declare.
11989 (lto_input_var_decl_ref): Declare.
11990 (lto_input_fn_decl_ref): Declare.
11991
11992 2020-06-01 Feng Xue <fxue@os.amperecomputing.com>
11993
11994 * cgraphclones.c (materialize_all_clones): Adjust replace map dump.
11995 * ipa-param-manipulation.c (ipa_dump_adjusted_parameters): Do not
11996 dump infomation if there is no adjusted parameter.
11997 * (ipa_param_adjustments::dump): Adjust prefix spaces for dump string.
11998
11999 2020-06-01 Aldy Hernandez <aldyh@redhat.com>
12000
12001 * Makefile.in (gimple-array-bounds.o): New.
12002 * tree-vrp.c: Move array bounds code...
12003 * gimple-array-bounds.cc: ...here...
12004 * gimple-array-bounds.h: ...and here.
12005
12006 2020-06-01 Aldy Hernandez <aldyh@redhat.com>
12007
12008 * Makefile.in (OBJS): Add value-range-equiv.o.
12009 * tree-vrp.c (*value_range_equiv*): Move to...
12010 * value-range-equiv.cc: ...here.
12011 * tree-vrp.h (class value_range_equiv): Move to...
12012 * value-range-equiv.h: ...here.
12013 * vr-values.h: Include value-range-equiv.h.
12014
12015 2020-06-01 Feng Xue <fxue@os.amperecomputing.com>
12016
12017 PR ipa/93429
12018 * ipa-cp.c (propagate_aggs_across_jump_function): Check aggregate
12019 lattice for simple pass-through by-ref argument.
12020
12021 2020-05-31 Jeff Law <law@redhat.com>
12022
12023 * lra.c (add_auto_inc_notes): Remove function.
12024 * reload1.c (add_auto_inc_notes): Similarly. Move into...
12025 * rtlanal.c (add_auto_inc_notes): New function.
12026 * rtl.h (add_auto_inc_notes): Add prototype.
12027 * recog.c (peep2_attempt): Scan and add REG_INC notes to new insns
12028 as needed.
12029
12030 2020-05-31 Jan Hubicka <jh@suse.cz>
12031
12032 * lto-section-out.c (lto_output_decl_index): Remove.
12033 (lto_output_field_decl_index): Move to lto-streamer-out.c
12034 (lto_output_fn_decl_index): Move to lto-streamer-out.c
12035 (lto_output_namespace_decl_index): Remove.
12036 (lto_output_var_decl_index): Remove.
12037 (lto_output_type_decl_index): Remove.
12038 (lto_output_type_ref_index): Remove.
12039 * lto-streamer-out.c (output_type_ref): Remove.
12040 (lto_get_index): New function.
12041 (lto_output_tree_ref): Remove.
12042 (lto_indexable_tree_ref): New function.
12043 (lto_output_var_decl_index): Move here from lto-section-out.c; simplify.
12044 (lto_output_fn_decl_index): Move here from lto-section-out.c; simplify.
12045 (stream_write_tree_ref): Update.
12046 (lto_output_tree): Update.
12047 * lto-streamer.h (lto_output_decl_index): Remove prototype.
12048 (lto_output_field_decl_index): Remove prototype.
12049 (lto_output_namespace_decl_index): Remove prototype.
12050 (lto_output_type_decl_index): Remove prototype.
12051 (lto_output_type_ref_index): Remove prototype.
12052 (lto_output_var_decl_index): Move.
12053 (lto_output_fn_decl_index): Move
12054
12055 2020-05-31 Jakub Jelinek <jakub@redhat.com>
12056
12057 PR middle-end/95052
12058 * expr.c (store_expr): For shortedned_string_cst, ensure temp has
12059 BLKmode.
12060
12061 2020-05-31 Jeff Law <law@redhat.com>
12062
12063 * config/h8300/jumpcall.md (brabs, brabc): Disable patterns.
12064
12065 2020-05-31 Jim Wilson <jimw@sifive.com>
12066
12067 * config/riscv/riscv.md (zero_extendsidi2_shifted): New.
12068
12069 2020-05-30 Jonathan Yong <10walls@gmail.com>
12070
12071 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Insert -lkernel32
12072 after -lmsvcrt. This is necessary as libmsvcrt.a is not a pure
12073 import library, but also contains some functions that invoke
12074 others in KERNEL32.DLL.
12075
12076 2020-05-29 Segher Boessenkool <segher@kernel.crashing.org>
12077
12078 * config/rs6000/altivec.md (altivec_vmrghw_direct): Prefer VSX form.
12079 (altivec_vmrglw_direct): Ditto.
12080 (altivec_vperm_<mode>_direct): Ditto.
12081 (altivec_vperm_v8hiv16qi): Ditto.
12082 (*altivec_vperm_<mode>_uns_internal): Ditto.
12083 (*altivec_vpermr_<mode>_internal): Ditto.
12084 (vperm_v8hiv4si): Ditto.
12085 (vperm_v16qiv8hi): Ditto.
12086
12087 2020-05-29 Jan Hubicka <jh@suse.cz>
12088
12089 * lto-streamer-in.c (streamer_read_chain): Move here from
12090 tree-streamer-in.c.
12091 (stream_read_tree_ref): New.
12092 (lto_input_tree_1): Simplify.
12093 * lto-streamer-out.c (stream_write_tree_ref): New.
12094 (lto_write_tree_1): Simplify.
12095 (lto_output_tree_1): Simplify.
12096 (DFS::DFS_write_tree): Simplify.
12097 (streamer_write_chain): Move here from tree-stremaer-out.c.
12098 * lto-streamer.h (lto_output_tree_ref): Update prototype.
12099 (stream_read_tree_ref): Declare
12100 (stream_write_tree_ref): Declare
12101 * tree-streamer-in.c (streamer_read_chain): Update to use
12102 stream_read_tree_ref.
12103 (lto_input_ts_common_tree_pointers): Likewise.
12104 (lto_input_ts_vector_tree_pointers): Likewise.
12105 (lto_input_ts_poly_tree_pointers): Likewise.
12106 (lto_input_ts_complex_tree_pointers): Likewise.
12107 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
12108 (lto_input_ts_decl_common_tree_pointers): Likewise.
12109 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
12110 (lto_input_ts_field_decl_tree_pointers): Likewise.
12111 (lto_input_ts_function_decl_tree_pointers): Likewise.
12112 (lto_input_ts_type_common_tree_pointers): Likewise.
12113 (lto_input_ts_type_non_common_tree_pointers): Likewise.
12114 (lto_input_ts_list_tree_pointers): Likewise.
12115 (lto_input_ts_vec_tree_pointers): Likewise.
12116 (lto_input_ts_exp_tree_pointers): Likewise.
12117 (lto_input_ts_block_tree_pointers): Likewise.
12118 (lto_input_ts_binfo_tree_pointers): Likewise.
12119 (lto_input_ts_constructor_tree_pointers): Likewise.
12120 (lto_input_ts_omp_clause_tree_pointers): Likewise.
12121 * tree-streamer-out.c (streamer_write_chain): Update to use
12122 stream_write_tree_ref.
12123 (write_ts_common_tree_pointers): Likewise.
12124 (write_ts_vector_tree_pointers): Likewise.
12125 (write_ts_poly_tree_pointers): Likewise.
12126 (write_ts_complex_tree_pointers): Likewise.
12127 (write_ts_decl_minimal_tree_pointers): Likewise.
12128 (write_ts_decl_common_tree_pointers): Likewise.
12129 (write_ts_decl_non_common_tree_pointers): Likewise.
12130 (write_ts_decl_with_vis_tree_pointers): Likewise.
12131 (write_ts_field_decl_tree_pointers): Likewise.
12132 (write_ts_function_decl_tree_pointers): Likewise.
12133 (write_ts_type_common_tree_pointers): Likewise.
12134 (write_ts_type_non_common_tree_pointers): Likewise.
12135 (write_ts_list_tree_pointers): Likewise.
12136 (write_ts_vec_tree_pointers): Likewise.
12137 (write_ts_exp_tree_pointers): Likewise.
12138 (write_ts_block_tree_pointers): Likewise.
12139 (write_ts_binfo_tree_pointers): Likewise.
12140 (write_ts_constructor_tree_pointers): Likewise.
12141 (write_ts_omp_clause_tree_pointers): Likewise.
12142 (streamer_write_tree_body): Likewise.
12143 (streamer_write_integer_cst): Likewise.
12144 * tree-streamer.h (streamer_read_chain):Declare.
12145 (streamer_write_chain):Declare.
12146 (streamer_write_tree_body): Update prototype.
12147 (streamer_write_integer_cst): Update prototype.
12148
12149 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
12150
12151 PR bootstrap/95413
12152 * configure: Regenerated.
12153
12154 2020-05-29 Andrew Stubbs <ams@codesourcery.com>
12155
12156 * config/gcn/gcn-valu.md (add<mode>3_vcc_zext_dup): Add early clobber.
12157 (add<mode>3_vcc_zext_dup_exec): Likewise.
12158 (add<mode>3_vcc_zext_dup2): Likewise.
12159 (add<mode>3_vcc_zext_dup2_exec): Likewise.
12160
12161 2020-05-29 Richard Biener <rguenther@suse.de>
12162
12163 PR tree-optimization/95272
12164 * tree-vectorizer.h (_slp_tree::representative): Add.
12165 (SLP_TREE_REPRESENTATIVE): Likewise.
12166 * tree-vect-loop.c (vectorizable_reduction): Adjust SLP
12167 node gathering.
12168 (vectorizable_live_operation): Use the representative to
12169 attach the reduction info to.
12170 * tree-vect-slp.c (_slp_tree::_slp_tree): Initialize
12171 SLP_TREE_REPRESENTATIVE.
12172 (vect_create_new_slp_node): Likewise.
12173 (slp_copy_subtree): Copy it.
12174 (vect_slp_rearrange_stmts): Re-arrange even COND_EXPR stmts.
12175 (vect_slp_analyze_node_operations_1): Pass the representative
12176 to vect_analyze_stmt.
12177 (vect_schedule_slp_instance): Pass the representative to
12178 vect_transform_stmt.
12179
12180 2020-05-29 Richard Biener <rguenther@suse.de>
12181
12182 PR tree-optimization/95356
12183 * tree-vect-stmts.c (vectorizable_shift): Do in-place SLP
12184 node hacking during analysis.
12185
12186 2020-05-29 Jan Hubicka <hubicka@ucw.cz>
12187
12188 PR lto/95362
12189 * lto-streamer-out.c (lto_output_tree): Disable redundant streaming.
12190
12191 2020-05-29 Richard Biener <rguenther@suse.de>
12192
12193 PR tree-optimization/95403
12194 * tree-vect-stmts.c (vect_init_vector_1): Guard against NULL
12195 stmt_vinfo.
12196
12197 2020-05-29 Jakub Jelinek <jakub@redhat.com>
12198
12199 PR middle-end/95315
12200 * omp-general.c (omp_resolve_declare_variant): Fix up addition of
12201 declare variant cgraph node removal callback.
12202
12203 2020-05-29 Jakub Jelinek <jakub@redhat.com>
12204
12205 PR middle-end/95052
12206 * expr.c (store_expr): If expr_size is constant and significantly
12207 larger than TREE_STRING_LENGTH, set temp to just the
12208 TREE_STRING_LENGTH portion of the STRING_CST.
12209
12210 2020-05-29 Richard Biener <rguenther@suse.de>
12211
12212 PR tree-optimization/95393
12213 * tree-ssa-phiopt.c (minmax_replacement): Use gimple_build
12214 to build the min/max expression so we simplify cases like
12215 MAX(0, s) immediately.
12216
12217 2020-05-29 Joe Ramsay <joe.ramsay@arm.com>
12218
12219 * config/aarch64/aarch64-sve.md (<LOGICAL:optab><mode>3): Add support
12220 for unpacked EOR, ORR, AND.
12221
12222 2020-05-28 Nicolas Bértolo <nicolasbertolo@gmail.com>
12223
12224 * Makefile.in: don't look for libiberty in the "pic" subdirectory
12225 when building for Mingw. Add dependency on xgcc with the proper
12226 extension.
12227
12228 2020-05-28 Jeff Law <law@redhat.com>
12229
12230 * config/h8300/logical.md (bclrhi_msx): Remove pattern.
12231
12232 2020-05-28 Jeff Law <law@redhat.com>
12233
12234 * config/h8300/logical.md (HImode H8/SX bit-and splitter): Don't
12235 make a nonzero adjustment to the memory offset.
12236 (b<ior,xor>hi_msx): Turn into a splitter.
12237
12238 2020-05-28 Eric Botcazou <ebotcazou@adacore.com>
12239
12240 * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
12241 Fix off-by-one error.
12242
12243 2020-05-28 Richard Sandiford <richard.sandiford@arm.com>
12244
12245 * config/aarch64/aarch64.h (aarch64_frame): Add a comment above
12246 wb_candidate1 and wb_candidate2.
12247 * config/aarch64/aarch64.c (aarch64_layout_frame): Invalidate
12248 wb_candidate1 and wb_candidate2 if we decided not to use them.
12249
12250 2020-05-28 Richard Sandiford <richard.sandiford@arm.com>
12251
12252 PR testsuite/95361
12253 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Assert that
12254 we have at least some CFI operations when using a frame pointer.
12255 Only redefine the CFA if we have CFI operations.
12256
12257 2020-05-28 Richard Biener <rguenther@suse.de>
12258
12259 * tree-vect-slp.c (vect_prologue_cost_for_slp): Remove
12260 case for !SLP_TREE_VECTYPE.
12261 (vect_slp_analyze_node_operations): Adjust.
12262
12263 2020-05-28 Richard Biener <rguenther@suse.de>
12264
12265 * tree-vectorizer.h (_slp_tree::vec_defs): Add.
12266 (SLP_TREE_VEC_DEFS): Likewise.
12267 * tree-vect-slp.c (_slp_tree::_slp_tree): Adjust.
12268 (_slp_tree::~_slp_tree): Likewise.
12269 (vect_mask_constant_operand_p): Remove unused function.
12270 (vect_get_constant_vectors): Rename to...
12271 (vect_create_constant_vectors): ... this. Take the
12272 invariant node as argument and code generate it. Remove
12273 dead code, remove temporary asserts. Pass a NULL stmt_info
12274 to vect_init_vector.
12275 (vect_get_slp_defs): Simplify.
12276 (vect_schedule_slp_instance): Code-generate externals and
12277 invariants using vect_create_constant_vectors.
12278
12279 2020-05-28 Richard Biener <rguenther@suse.de>
12280
12281 * tree-vect-stmts.c (vect_finish_stmt_generation_1):
12282 Conditionalize stmt_info use, assert the new stmt cannot throw
12283 when not specified.
12284 (vect_finish_stmt_generation): Adjust assert.
12285
12286 2020-05-28 Richard Biener <rguenther@suse.de>
12287
12288 PR tree-optimization/95273
12289 PR tree-optimization/95356
12290 * tree-vect-stmts.c (vectorizable_shift): Adjust when and to
12291 what we set the vector type of the shift operand SLP node
12292 again.
12293
12294 2020-05-28 Andrea Corallo <andrea.corallo@arm.com>
12295
12296 * config/arm/arm.c (mve_vector_mem_operand): Fix unwanted
12297 fall-throughs.
12298
12299 2020-05-28 Martin Liska <mliska@suse.cz>
12300
12301 PR web/95380
12302 * doc/invoke.texi: Add missing params, remove max-once-peeled-insns and
12303 rename ipcp-unit-growth to ipa-cp-unit-growth.
12304
12305 2020-05-28 Hongtao Liu <hongtao.liu@intel.com>
12306
12307 * config/i386/sse.md (*avx512vl_<code>v2div2qi2_store_1): Rename
12308 from *avx512vl_<code>v2div2qi_store and refine memory size of
12309 the pattern.
12310 (*avx512vl_<code>v2div2qi2_mask_store_1): Ditto.
12311 (*avx512vl_<code><mode>v4qi2_store_1): Ditto.
12312 (*avx512vl_<code><mode>v4qi2_mask_store_1): Ditto.
12313 (*avx512vl_<code><mode>v8qi2_store_1): Ditto.
12314 (*avx512vl_<code><mode>v8qi2_mask_store_1): Ditto.
12315 (*avx512vl_<code><mode>v4hi2_store_1): Ditto.
12316 (*avx512vl_<code><mode>v4hi2_mask_store_1): Ditto.
12317 (*avx512vl_<code>v2div2hi2_store_1): Ditto.
12318 (*avx512vl_<code>v2div2hi2_mask_store_1): Ditto.
12319 (*avx512vl_<code>v2div2si2_store_1): Ditto.
12320 (*avx512vl_<code>v2div2si2_mask_store_1): Ditto.
12321 (*avx512f_<code>v8div16qi2_store_1): Ditto.
12322 (*avx512f_<code>v8div16qi2_mask_store_1): Ditto.
12323 (*avx512vl_<code>v2div2qi2_store_2): New define_insn_and_split.
12324 (*avx512vl_<code>v2div2qi2_mask_store_2): Ditto.
12325 (*avx512vl_<code><mode>v4qi2_store_2): Ditto.
12326 (*avx512vl_<code><mode>v4qi2_mask_store_2): Ditto.
12327 (*avx512vl_<code><mode>v8qi2_store_2): Ditto.
12328 (*avx512vl_<code><mode>v8qi2_mask_store_2): Ditto.
12329 (*avx512vl_<code><mode>v4hi2_store_2): Ditto.
12330 (*avx512vl_<code><mode>v4hi2_mask_store_2): Ditto.
12331 (*avx512vl_<code>v2div2hi2_store_2): Ditto.
12332 (*avx512vl_<code>v2div2hi2_mask_store_2): Ditto.
12333 (*avx512vl_<code>v2div2si2_store_2): Ditto.
12334 (*avx512vl_<code>v2div2si2_mask_store_2): Ditto.
12335 (*avx512f_<code>v8div16qi2_store_2): Ditto.
12336 (*avx512f_<code>v8div16qi2_mask_store_2): Ditto.
12337 * config/i386/i386-builtin-types.def: Adjust builtin type.
12338 * config/i386/i386-expand.c: Ditto.
12339 * config/i386/i386-builtin.def: Adjust builtin.
12340 * config/i386/avx512fintrin.h: Ditto.
12341 * config/i386/avx512vlbwintrin.h: Ditto.
12342 * config/i386/avx512vlintrin.h: Ditto.
12343
12344 2020-05-28 Dong JianQiang <dongjianqiang2@huawei.com>
12345
12346 PR gcov-profile/95332
12347 * gcov-io.c (gcov_var::endian): Move field.
12348 (from_file): Add IN_GCOV_TOOL check.
12349 * gcov-io.h (gcov_magic): Ditto.
12350
12351 2020-05-28 Max Filippov <jcmvbkbc@gmail.com>
12352
12353 * config/xtensa/xtensa.c (xtensa_delegitimize_address): New
12354 function.
12355 (TARGET_DELEGITIMIZE_ADDRESS): New macro.
12356
12357 2020-05-27 Eric Botcazou <ebotcazou@adacore.com>
12358
12359 * builtin-types.def (BT_UINT128): New primitive type.
12360 (BT_FN_UINT128_UINT128): New function type.
12361 * builtins.def (BUILT_IN_BSWAP128): New GCC builtin.
12362 * doc/extend.texi (__builtin_bswap128): Document it.
12363 * builtins.c (expand_builtin): Deal with BUILT_IN_BSWAP128.
12364 (is_inexpensive_builtin): Likewise.
12365 * fold-const-call.c (fold_const_call_ss): Likewise.
12366 * fold-const.c (tree_call_nonnegative_warnv_p): Likewise.
12367 * tree-ssa-ccp.c (evaluate_stmt): Likewise.
12368 * tree-vect-stmts.c (vect_get_data_ptr_increment): Likewise.
12369 (vectorizable_call): Likewise.
12370 * optabs.c (expand_unop): Always use the double word path for it.
12371 * tree-core.h (enum tree_index): Add TI_UINT128_TYPE.
12372 * tree.h (uint128_type_node): New global type.
12373 * tree.c (build_common_tree_nodes): Build it if TImode is supported.
12374
12375 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
12376
12377 * config/i386/mmx.md (*mmx_haddv2sf3): Remove SSE alternatives.
12378 (mmx_hsubv2sf3): Ditto.
12379 (mmx_haddsubv2sf3): New expander.
12380 (*mmx_haddsubv2sf3): Rename from mmx_addsubv2sf3. Correct
12381 RTL template to model horizontal subtraction and addition.
12382 * config/i386/i386-builtin.def (IX86_BUILTIN_PFPNACC):
12383 Update for rename.
12384
12385 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
12386
12387 PR target/95355
12388 * config/i386/sse.md
12389 (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>):
12390 Remove %q operand modifier from insn template.
12391 (avx512f_<code>v8hiv8di2<mask_name>): Ditto.
12392
12393 2020-05-27 Uroš Bizjak <ubizjak@gmail.com>
12394
12395 * config/i386/mmx.md (mmx_pswapdsf2): Add SSE alternatives.
12396 Enable insn pattern for TARGET_MMX_WITH_SSE.
12397 (*mmx_movshdup): New insn pattern.
12398 (*mmx_movsldup): Ditto.
12399 (*mmx_movss): Ditto.
12400 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
12401 Handle E_V2SFmode.
12402 (expand_vec_perm_movs): Handle E_V2SFmode.
12403 (expand_vec_perm_even_odd): Ditto.
12404 (expand_vec_perm_broadcast_1): Assert that E_V2SFmode
12405 is already handled by standard shuffle patterns.
12406
12407 2020-05-27 Richard Biener <rguenther@suse.de>
12408
12409 PR tree-optimization/95295
12410 * tree-ssa-loop-im.c (sm_seq_valid_bb): Fix sinking after
12411 merging stores from paths.
12412
12413 2020-05-27 Richard Biener <rguenther@suse.de>
12414
12415 PR tree-optimization/95356
12416 * tree-vect-stmts.c (vectorizable_shift): Adjust vector
12417 type for the shift operand.
12418
12419 2020-05-27 Richard Biener <rguenther@suse.de>
12420
12421 PR tree-optimization/95335
12422 * tree-vect-slp.c (vect_slp_analyze_node_operations): Reset
12423 lvisited for nodes made external.
12424
12425 2020-05-27 Richard Biener <rguenther@suse.de>
12426
12427 * dump-context.h (debug_dump_context): New class.
12428 (dump_context): Make it friend.
12429 * dumpfile.c (debug_dump_context::debug_dump_context):
12430 Implement.
12431 (debug_dump_context::~debug_dump_context): Likewise.
12432 * tree-vect-slp.c: Include dump-context.h.
12433 (vect_print_slp_tree): Dump a single SLP node.
12434 (debug): New overload for slp_tree.
12435 (vect_print_slp_graph): Rename from vect_print_slp_tree and
12436 use that.
12437 (vect_analyze_slp_instance): Adjust.
12438
12439 2020-05-27 Jakub Jelinek <jakub@redhat.com>
12440
12441 PR middle-end/95315
12442 * omp-general.c (omp_declare_variant_remove_hook): New function.
12443 (omp_resolve_declare_variant): Always return base if it is already
12444 declare_variant_alt magic decl itself. Register
12445 omp_declare_variant_remove_hook as cgraph node removal hook.
12446
12447 2020-05-27 Jeff Law <law@redhat.com>
12448
12449 * config/h8300/testcompare.md (tst_extzv_1_n): Do not accept constants
12450 for the primary input operand.
12451 (tstsi_variable_bit_qi): Similarly.
12452
12453 2020-05-26 Uroš Bizjak <ubizjak@gmail.com>
12454
12455 * config/i386/mmx.md (mmx_pswapdv2si2): Add SSE2 alternative.
12456
12457 2020-05-26 Tobias Burnus <tobias@codesourcery.com>
12458
12459 PR ipa/95320
12460 * ipa-utils.h (odr_type_p): Also permit calls with
12461 only flag_generate_offload set.
12462
12463 2020-05-26 Alexandre Oliva <oliva@adacore.com>
12464
12465 * gcc.c (validate_switches): Add braced parameter. Adjust all
12466 callers. Expected and skip trailing brace only if braced.
12467 Return after handling one atom otherwise.
12468 (DUMPS_OPTIONS): New.
12469 (cpp_debug_options): Define in terms of it.
12470
12471 2020-05-26 Richard Biener <rguenther@suse.de>
12472
12473 PR tree-optimization/95327
12474 * tree-vect-stmts.c (vectorizable_shift): Compute op1_vectype
12475 when we are not using a scalar shift.
12476
12477 2020-05-26 Uroš Bizjak <ubizjak@gmail.com>
12478
12479 * config/i386/mmx.md (*mmx_pshufd_1): New insn pattern.
12480 * config/i386/i386-expand.c (ix86_vectorize_vec_perm_const):
12481 Handle E_V2SImode and E_V4HImode.
12482 (expand_vec_perm_even_odd_1): Handle E_V4HImode.
12483 Assert that E_V2SImode is already handled.
12484 (expand_vec_perm_broadcast_1): Assert that E_V2SImode
12485 is already handled by standard shuffle patterns.
12486
12487 2020-05-26 Jan Hubicka <jh@suse.cz>
12488
12489 * tree.c (free_lang_data_in_type): Simpify types of TYPE_VALUES in
12490 enumeral types.
12491
12492 2020-05-26 Jakub Jelinek <jakub@redhat.com>
12493
12494 PR c++/95197
12495 * gimplify.c (find_combined_omp_for): Move to omp-general.c.
12496 * omp-general.h (find_combined_omp_for): Declare.
12497 * omp-general.c: Include tree-iterator.h.
12498 (find_combined_omp_for): New function, moved from gimplify.c.
12499
12500 2020-05-26 Alexandre Oliva <oliva@adacore.com>
12501
12502 * common.opt (aux_base_name): Define.
12503 (dumpbase, dumpdir): Mark as Driver options.
12504 (-dumpbase, -dumpdir): Likewise.
12505 (dumpbase-ext, -dumpbase-ext): New.
12506 (auxbase, auxbase-strip): Drop.
12507 * doc/invoke.texi (-dumpbase, -dumpbase-ext, -dumpdir):
12508 Document.
12509 (-o): Introduce the notion of primary output, mention it
12510 influences auxiliary and dump output names as well, add
12511 examples.
12512 (-save-temps): Adjust, move examples into -dump*.
12513 (-save-temps=cwd, -save-temps=obj): Likewise.
12514 (-fdump-final-insns): Adjust.
12515 * dwarf2out.c (gen_producer_string): Drop auxbase and
12516 auxbase_strip; add dumpbase_ext.
12517 * gcc.c (enum save_temps): Add SAVE_TEMPS_DUMP.
12518 (save_temps_prefix, save_temps_length): Drop.
12519 (save_temps_overrides_dumpdir): New.
12520 (dumpdir, dumpbase, dumpbase_ext): New.
12521 (dumpdir_length, dumpdir_trailing_dash_added): New.
12522 (outbase, outbase_length): New.
12523 (The Specs Language): Introduce %". Adjust %b and %B.
12524 (ASM_FINAL_SPEC): Use %b.dwo for an aux output name always.
12525 Precede object file with %w when it's the primary output.
12526 (cpp_debug_options): Do not pass on incoming -dumpdir,
12527 -dumpbase and -dumpbase-ext options; recompute them with
12528 %:dumps.
12529 (cc1_options): Drop auxbase with and without compare-debug;
12530 use cpp_debug_options instead of dumpbase. Mark asm output
12531 with %w when it's the primary output.
12532 (static_spec_functions): Drop %:compare-debug-auxbase-opt and
12533 %:replace-exception. Add %:dumps.
12534 (driver_handle_option): Implement -save-temps=*/-dumpdir
12535 mutual overriding logic. Save dumpdir, dumpbase and
12536 dumpbase-ext options. Do not save output_file in
12537 save_temps_prefix.
12538 (adds_single_suffix_p): New.
12539 (single_input_file_index): New.
12540 (process_command): Combine output dir, output base name, and
12541 dumpbase into dumpdir and outbase.
12542 (set_collect_gcc_options): Pass a possibly-adjusted -dumpdir.
12543 (do_spec_1): Optionally dumpdir instead of save_temps_prefix,
12544 and outbase instead of input_basename in %b, %B and in
12545 -save-temps aux files. Handle empty argument %".
12546 (driver::maybe_run_linker): Adjust dumpdir and auxbase.
12547 (compare_debug_dump_opt_spec_function): Adjust gkd dump file
12548 naming. Spec-quote the computed -fdump-final-insns file name.
12549 (debug_auxbase_opt): Drop.
12550 (compare_debug_self_opt_spec_function): Drop auxbase-strip
12551 computation.
12552 (compare_debug_auxbase_opt_spec_function): Drop.
12553 (not_actual_file_p): New.
12554 (replace_extension_spec_func): Drop.
12555 (dumps_spec_func): New.
12556 (convert_white_space): Split-out parts into...
12557 (quote_string, whitespace_to_convert_p): ... these. New.
12558 (quote_spec_char_p, quote_spec, quote_spec_arg): New.
12559 (driver::finalize): Release and reset new variables; drop
12560 removed ones.
12561 * lto-wrapper.c (HAVE_TARGET_EXECUTABLE_SUFFIX): Define if...
12562 (TARGET_EXECUTABLE_SUFFIX): ... is defined; define this to the
12563 empty string otherwise.
12564 (DUMPBASE_SUFFIX): Drop leading period.
12565 (debug_objcopy): Use concat.
12566 (run_gcc): Recognize -save-temps=* as -save-temps too. Obey
12567 -dumpdir. Pass on empty dumpdir and dumpbase with a directory
12568 component. Simplify temp file names.
12569 * opts.c (finish_options): Drop aux base name handling.
12570 (common_handle_option): Drop auxbase-strip handling.
12571 * toplev.c (print_switch_values): Drop auxbase, add
12572 dumpbase-ext.
12573 (process_options): Derive aux_base_name from dump_base_name
12574 and dump_base_ext.
12575 (lang_dependent_init): Compute dump_base_ext along with
12576 dump_base_name. Disable stack usage and callgraph-info during
12577 lto generation and compare-debug recompilation.
12578
12579 2020-05-26 Hongtao Liu <hongtao.liu@intel.com>
12580 Uroš Bizjak <ubizjak@gmail.com>
12581
12582 PR target/95211
12583 PR target/95256
12584 * config/i386/sse.md (<floatunssuffix>v2div2sf2): New expander.
12585 (fix<fixunssuffix>_truncv2sfv2di2): Ditto.
12586 (avx512dq_float<floatunssuffix>v2div2sf2): Renaming from
12587 float<floatunssuffix>v2div2sf2.
12588 (avx512dq_fix<fixunssuffix>_truncv2sfv2di2<mask_name>):
12589 Renaming from fix<fixunssuffix>_truncv2sfv2di2<mask_name>.
12590 (vec_pack<floatprefix>_float_<mode>): Adjust icode name.
12591 (vec_unpack_<fixprefix>fix_trunc_lo_<mode>): Ditto.
12592 (vec_unpack_<fixprefix>fix_trunc_hi_<mode>): Ditto.
12593 * config/i386/i386-builtin.def: Ditto.
12594 * emit-rtl.c (validate_subreg): Allow use of *paradoxical* vector
12595 subregs when both omode and imode are vector mode and
12596 have the same inner mode.
12597
12598 2020-05-25 Eric Botcazou <ebotcazou@adacore.com>
12599
12600 * gimple-ssa-store-merging.c (merged_store_group::can_be_merged_into):
12601 Only turn MEM_REFs into bit-field stores for small bit-field regions.
12602 (imm_store_chain_info::output_merged_store): Be prepared for sources
12603 with non-integral type in the bit-field insertion case.
12604 (pass_store_merging::process_store): Use MAX_BITSIZE_MODE_ANY_INT as
12605 the largest size for the bit-field case.
12606
12607 2020-05-25 Uroš Bizjak <ubizjak@gmail.com>
12608
12609 * config/i386/mmx.md (*vec_dupv2sf): Redefine as define_insn.
12610 (mmx_pshufw_1): Change Yv constraint to xYw. Correct type attribute.
12611 (*vec_dupv4hi): Redefine as define_insn.
12612 Remove alternative with general register input.
12613 (*vec_dupv2si): Ditto.
12614
12615 2020-05-25 Richard Biener <rguenther@suse.de>
12616
12617 PR tree-optimization/95309
12618 * tree-vect-slp.c (vect_get_constant_vectors): Move number
12619 of vector computation ...
12620 (vect_slp_analyze_node_operations): ... to analysis phase.
12621
12622 2020-05-25 Jan Hubicka <hubicka@ucw.cz>
12623
12624 * lto-streamer-out.c (lto_output_tree): Add streamer_debugging check.
12625 * lto-streamer.h (streamer_debugging): New constant
12626 * tree-streamer-in.c (streamer_read_tree_bitfields): Add
12627 streamer_debugging check.
12628 (streamer_get_pickled_tree): Likewise.
12629 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
12630
12631 2020-05-25 Richard Biener <rguenther@suse.de>
12632
12633 PR tree-optimization/95308
12634 * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize
12635 test for TARGET_MEM_REFs.
12636
12637 2020-05-25 Richard Biener <rguenther@suse.de>
12638
12639 PR tree-optimization/95295
12640 * tree-ssa-loop-im.c (sm_seq_valid_bb): Compare remat stores
12641 RHSes and drop to full sm_other if they are not equal.
12642
12643 2020-05-25 Richard Biener <rguenther@suse.de>
12644
12645 PR tree-optimization/95271
12646 * tree-vect-stmts.c (vectorizable_bswap): Update invariant SLP
12647 children vector type.
12648 (vectorizable_call): Pass down slp ops.
12649
12650 2020-05-25 Richard Biener <rguenther@suse.de>
12651
12652 PR tree-optimization/95297
12653 * tree-vect-stmts.c (vectorizable_shift): For scalar_shift_arg
12654 skip updating operand 1 vector type.
12655
12656 2020-05-25 Richard Biener <rguenther@suse.de>
12657
12658 PR tree-optimization/95284
12659 * tree-ssa-sink.c (sink_common_stores_to_bb): Amend previous
12660 fix.
12661
12662 2020-05-25 Hongtao Liu <hongtao.liu@intel.com>
12663
12664 PR target/95125
12665 * config/i386/sse.md (sf2dfmode_lower): New mode attribute.
12666 (trunc<mode><sf2dfmode_lower>2) New expander.
12667 (extend<sf2dfmode_lower><mode>2): Ditto.
12668
12669 2020-05-23 Iain Sandoe <iain@sandoe.co.uk>
12670
12671 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make
12672 ubsan_{data,type},ASAN symbols linker-visible.
12673
12674 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
12675
12676 * lto-streamer-out.c (DFS::DFS): Silence warning.
12677
12678 2020-05-22 Uroš Bizjak <ubizjak@gmail.com>
12679
12680 PR target/95255
12681 * config/i386/i386.md (<rounding_insn><mode>2): Do not try to
12682 expand non-sse4 ROUND_ROUNDEVEN rounding via SSE support routines.
12683
12684 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
12685
12686 * lto-streamer-out.c (lto_output_tree): Do not stream final ref if
12687 it is not needed.
12688
12689 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
12690
12691 * lto-section-out.c (lto_output_decl_index): Adjust dump indentation.
12692 * lto-streamer-out.c (create_output_block): Fix whitespace
12693 (lto_write_tree_1): Add (debug) dump.
12694 (DFS::DFS): Add dump.
12695 (DFS::DFS_write_tree_body): Do not dump here.
12696 (lto_output_tree): Improve dumping; do not stream ref when not needed.
12697 (produce_asm_for_decls): Fix whitespace.
12698 * tree-streamer-out.c (streamer_write_tree_header): Add dump.
12699 * tree-streamer-out.c (streamer_write_integer_cst): Add debug dump.
12700
12701 2020-05-22 Hongtao.liu <hongtao.liu@intel.com>
12702
12703 PR target/92658
12704 * config/i386/sse.md (trunc<pmov_src_lower><mode>2): New expander
12705 (truncv32hiv32qi2): Ditto.
12706 (trunc<ssedoublemodelower><mode>2): Ditto.
12707 (trunc<mode><pmov_dst_3>2): Ditto.
12708 (trunc<mode><pmov_dst_mode_4>2): Ditto.
12709 (truncv2div2si2): Ditto.
12710 (truncv8div8qi2): Ditto.
12711 (avx512f_<code>v8div16qi2): Renaming from *avx512f_<code>v8div16qi2.
12712 (avx512vl_<code>v2div2si): Renaming from *avx512vl_<code>v2div2si2.
12713 (avx512vl_<code><mode>v2<ssecakarnum>qi2): Renaming from
12714 *avx512vl_<code><mode>v<ssescalarnum>qi2.
12715
12716 2020-05-22 H.J. Lu <hongjiu.lu@intel.com>
12717
12718 PR target/95258
12719 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12720 AVX512VPOPCNTDQ.
12721
12722 2020-05-22 Richard Biener <rguenther@suse.de>
12723
12724 PR tree-optimization/95268
12725 * tree-ssa-sink.c (sink_common_stores_to_bb): Handle clobbers
12726 properly.
12727
12728 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
12729
12730 * tree-streamer.c (record_common_node): Fix hash value of pre-streamed
12731 nodes.
12732
12733 2020-05-22 Jan Hubicka <hubicka@ucw.cz>
12734
12735 * lto-streamer-in.c (lto_read_tree): Do not stream end markers.
12736 (lto_input_scc): Optimize streaming of entry lengths.
12737 * lto-streamer-out.c (lto_write_tree): Do not stream end markers
12738 (DFS::DFS): Optimize stremaing of entry lengths
12739
12740 2020-05-22 Richard Biener <rguenther@suse.de>
12741
12742 PR lto/95190
12743 * doc/invoke.texi (flto): Document behavior of diagnostic
12744 options.
12745
12746 2020-05-22 Richard Biener <rguenther@suse.de>
12747
12748 * tree-vectorizer.h (vect_is_simple_use): New overload.
12749 (vect_maybe_update_slp_op_vectype): New.
12750 * tree-vect-stmts.c (vect_is_simple_use): New overload
12751 accessing operands of SLP vs. non-SLP operation transparently.
12752 (vect_maybe_update_slp_op_vectype): New function updating
12753 the possibly shared SLP operands vector type.
12754 (vectorizable_operation): Be a bit more SLP vs non-SLP agnostic
12755 using the new vect_is_simple_use overload; update SLP invariant
12756 operand nodes vector type.
12757 (vectorizable_comparison): Likewise.
12758 (vectorizable_call): Likewise.
12759 (vectorizable_conversion): Likewise.
12760 (vectorizable_shift): Likewise.
12761 (vectorizable_store): Likewise.
12762 (vectorizable_condition): Likewise.
12763 (vectorizable_assignment): Likewise.
12764 * tree-vect-loop.c (vectorizable_reduction): Likewise.
12765 * tree-vect-slp.c (vect_get_constant_vectors): Enforce
12766 present SLP_TREE_VECTYPE and check it matches previous
12767 behavior.
12768
12769 2020-05-22 Richard Biener <rguenther@suse.de>
12770
12771 PR tree-optimization/95248
12772 * tree-ssa-loop-im.c (sm_seq_valid_bb): Remove bogus early out.
12773
12774 2020-05-22 Richard Biener <rguenther@suse.de>
12775
12776 * tree-vectorizer.h (_slp_tree::_slp_tree): New.
12777 (_slp_tree::~_slp_tree): Likewise.
12778 * tree-vect-slp.c (_slp_tree::_slp_tree): Factor out code
12779 from allocators.
12780 (_slp_tree::~_slp_tree): Implement.
12781 (vect_free_slp_tree): Simplify.
12782 (vect_create_new_slp_node): Likewise. Add nops parameter.
12783 (vect_build_slp_tree_2): Adjust.
12784 (vect_analyze_slp_instance): Likewise.
12785
12786 2020-05-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12787
12788 * adjust-alignment.c: Include memmodel.h.
12789
12790 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
12791
12792 PR target/95260
12793 * config/i386/cpuid.h: Use hexadecimal in comments.
12794
12795 2020-05-21 H.J. Lu <hongjiu.lu@intel.com>
12796
12797 PR target/95212
12798 * config/i386/i386-builtins.c (processor_features): Move
12799 F_AVX512VP2INTERSECT after F_AVX512BF16.
12800 (isa_names_table): Likewise.
12801
12802 2020-05-21 Martin Liska <mliska@suse.cz>
12803
12804 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12805 Handle OPT_moutline_atomics.
12806 * config/aarch64/aarch64.c: Add outline-atomics to
12807 aarch64_attributes.
12808 * doc/extend.texi: Document the newly added target attribute.
12809
12810 2020-05-21 Uroš Bizjak <ubizjak@gmail.com>
12811
12812 PR target/95218
12813
12814 * config/i386/mmx.md (*mmx_<code>v2sf): Do not mark
12815 operands 1 and 2 commutative. Manually swap operands.
12816 (*mmx_nabsv2sf2): Ditto.
12817
12818 Partially revert:
12819 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
12820
12821 * config/i386/i386.md (*<code>tf2_1):
12822 Mark operands 1 and 2 commutative.
12823 (*nabstf2_1): Ditto.
12824 * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
12825 commutative. Do not swap operands.
12826 (*nabs<mode>2): Ditto.
12827
12828 2020-05-20 Uroš Bizjak <ubizjak@gmail.com>
12829
12830 PR target/95229
12831 * config/i386/sse.md (<code>v8qiv8hi2): Use
12832 simplify_gen_subreg instead of simplify_subreg.
12833 (<code>v8qiv8si2): Ditto.
12834 (<code>v4qiv4si2): Ditto.
12835 (<code>v4hiv4si2): Ditto.
12836 (<code>v8qiv8di2): Ditto.
12837 (<code>v4qiv4di2): Ditto.
12838 (<code>v2qiv2di2): Ditto.
12839 (<code>v4hiv4di2): Ditto.
12840 (<code>v2hiv2di2): Ditto.
12841 (<code>v2siv2di2): Ditto.
12842
12843 2020-05-20 Uroš Bizjak <ubizjak@gmail.com>
12844
12845 PR target/95238
12846 * config/i386/i386.md (*pushsi2_rex64):
12847 Use "e" constraint instead of "i".
12848
12849 2020-05-20 Jan Hubicka <hubicka@ucw.cz>
12850
12851 * lto-streamer-in.c (lto_input_scc): Add SHARED_SCC parameter.
12852 (lto_input_tree_1): Strenghten sanity check.
12853 (lto_input_tree): Update call of lto_input_scc.
12854 * lto-streamer-out.c: Include ipa-utils.h
12855 (create_output_block): Initialize local_trees if merigng is going
12856 to happen.
12857 (destroy_output_block): Destroy local_trees.
12858 (DFS): Add max_local_entry.
12859 (local_tree_p): New function.
12860 (DFS::DFS): Initialize and maintain it.
12861 (DFS::DFS_write_tree): Decide on streaming format.
12862 (lto_output_tree): Stream inline singleton SCCs
12863 * lto-streamer.h (enum LTO_tags): Add LTO_trees.
12864 (struct output_block): Add local_trees.
12865 (lto_input_scc): Update prototype.
12866
12867 2020-05-20 Patrick Palka <ppalka@redhat.com>
12868
12869 PR c++/95223
12870 * hash-table.h (hash_table::find_with_hash): Move up the call to
12871 hash_table::verify.
12872
12873 2020-05-20 Martin Liska <mliska@suse.cz>
12874
12875 * lto-compress.c (lto_compression_zstd): Fill up
12876 num_compressed_il_bytes.
12877 (lto_uncompression_zstd): Likewise for num_uncompressed_il_bytes here.
12878
12879 2020-05-20 Richard Biener <rguenther@suse.de>
12880
12881 PR tree-optimization/95219
12882 * tree-vect-loop.c (vectorizable_induction): Reduce
12883 group_size before computing the number of required IVs.
12884
12885 2020-05-20 Richard Biener <rguenther@suse.de>
12886
12887 PR middle-end/95231
12888 * tree-inline.c (remap_gimple_stmt): Revert adjusting
12889 COND_EXPR and VEC_COND_EXPR for a -fnon-call-exception boundary.
12890
12891 2020-05-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
12892 Andre Vieira <andre.simoesdiasvieira@arm.com>
12893
12894 PR target/94959
12895 * config/arm/arm-protos.h (arm_mode_base_reg_class): Function
12896 declaration.
12897 (mve_vector_mem_operand): Likewise.
12898 * config/arm/arm.c (thumb2_legitimate_address_p): For MVE target check
12899 the load from memory to a core register is legitimate for give mode.
12900 (mve_vector_mem_operand): Define function.
12901 (arm_print_operand): Modify comment.
12902 (arm_mode_base_reg_class): Define.
12903 * config/arm/arm.h (MODE_BASE_REG_CLASS): Modify to add check for
12904 TARGET_HAVE_MVE and expand to arm_mode_base_reg_class on TRUE.
12905 * config/arm/constraints.md (Ux): Likewise.
12906 (Ul): Likewise.
12907 * config/arm/mve.md (mve_mov): Replace constraint Us with Ux and also
12908 add support for missing Vector Store Register and Vector Load Register.
12909 Add a new alternative to support load from memory to PC (or label) in
12910 vector store/load.
12911 (mve_vstrbq_<supf><mode>): Modify constraint Us to Ux.
12912 (mve_vldrbq_<supf><mode>): Modify constriant Us to Ux, predicate to
12913 mve_memory_operand and also modify the MVE instructions to emit.
12914 (mve_vldrbq_z_<supf><mode>): Modify constraint Us to Ux.
12915 (mve_vldrhq_fv8hf): Modify constriant Us to Ux, predicate to
12916 mve_memory_operand and also modify the MVE instructions to emit.
12917 (mve_vldrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
12918 mve_memory_operand and also modify the MVE instructions to emit.
12919 (mve_vldrhq_z_fv8hf): Likewise.
12920 (mve_vldrhq_z_<supf><mode>): Likewise.
12921 (mve_vldrwq_fv4sf): Likewise.
12922 (mve_vldrwq_<supf>v4si): Likewise.
12923 (mve_vldrwq_z_fv4sf): Likewise.
12924 (mve_vldrwq_z_<supf>v4si): Likewise.
12925 (mve_vld1q_f<mode>): Modify constriant Us to Ux.
12926 (mve_vld1q_<supf><mode>): Likewise.
12927 (mve_vstrhq_fv8hf): Modify constriant Us to Ux, predicate to
12928 mve_memory_operand.
12929 (mve_vstrhq_p_fv8hf): Modify constriant Us to Ux, predicate to
12930 mve_memory_operand and also modify the MVE instructions to emit.
12931 (mve_vstrhq_p_<supf><mode>): Likewise.
12932 (mve_vstrhq_<supf><mode>): Modify constriant Us to Ux, predicate to
12933 mve_memory_operand.
12934 (mve_vstrwq_fv4sf): Modify constriant Us to Ux.
12935 (mve_vstrwq_p_fv4sf): Modify constriant Us to Ux and also modify the MVE
12936 instructions to emit.
12937 (mve_vstrwq_p_<supf>v4si): Likewise.
12938 (mve_vstrwq_<supf>v4si): Likewise.Modify constriant Us to Ux.
12939 * config/arm/predicates.md (mve_memory_operand): Define.
12940
12941 2020-05-30 Richard Biener <rguenther@suse.de>
12942
12943 PR c/95141
12944 * c-fold.c (c_fully_fold_internal): Enhance guard on
12945 overflow_warning.
12946
12947 2020-05-20 Kito Cheng <kito.cheng@sifive.com>
12948
12949 PR target/90811
12950 * Makefile.in (OBJS): Add adjust-alignment.o.
12951 * adjust-alignment.c (pass_data_adjust_alignment): New.
12952 (pass_adjust_alignment): New.
12953 (pass_adjust_alignment::execute): New.
12954 (make_pass_adjust_alignment): New.
12955 * tree-pass.h (make_pass_adjust_alignment): New.
12956 * passes.def: Add pass_adjust_alignment.
12957
12958 2020-05-19 Alex Coplan <alex.coplan@arm.com>
12959
12960 PR target/94591
12961 * config/aarch64/aarch64.c (aarch64_evpc_rev_local): Don't match
12962 identity permutation.
12963
12964 2020-05-19 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12965
12966 * doc/sourcebuild.texi: Document new short_eq_int, ptr_eq_short,
12967 msp430_small, msp430_large and size24plus DejaGNU effective
12968 targets.
12969 Improve grammar in descriptions for size20plus and size32plus effective
12970 targets.
12971
12972 2020-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
12973
12974 * config/bpf/bpf.c (bpf_compute_frame_layout): Include space for
12975 callee saved registers only in xBPF.
12976 (bpf_expand_prologue): Save callee saved registers only in xBPF.
12977 (bpf_expand_epilogue): Likewise for restoring.
12978 * doc/invoke.texi (eBPF Options): Document this is activated by
12979 -mxbpf.
12980
12981 2020-05-19 Jose E. Marchesi <jose.marchesi@oracle.com>
12982
12983 * config/bpf/bpf.opt (mxbpf): New option.
12984 * doc/invoke.texi (Option Summary): Add -mxbpf.
12985 (eBPF Options): Document -mxbbpf.
12986
12987 2020-05-19 Uroš Bizjak <ubizjak@gmail.com>
12988
12989 PR target/92658
12990 * config/i386/sse.md (<code>v16qiv16hi2): New expander.
12991 (<code>v32qiv32hi2): Ditto.
12992 (<code>v8qiv8hi2): Ditto.
12993 (<code>v16qiv16si2): Ditto.
12994 (<code>v8qiv8si2): Ditto.
12995 (<code>v4qiv4si2): Ditto.
12996 (<code>v16hiv16si2): Ditto.
12997 (<code>v8hiv8si2): Ditto.
12998 (<code>v4hiv4si2): Ditto.
12999 (<code>v8qiv8di2): Ditto.
13000 (<code>v4qiv4di2): Ditto.
13001 (<code>v2qiv2di2): Ditto.
13002 (<code>v8hiv8di2): Ditto.
13003 (<code>v4hiv4di2): Ditto.
13004 (<code>v2hiv2di2): Ditto.
13005 (<code>v8siv8di2): Ditto.
13006 (<code>v4siv4di2): Ditto.
13007 (<code>v2siv2di2): Ditto.
13008
13009 2020-05-19 Kito Cheng <kito.cheng@sifive.com>
13010
13011 * common/config/riscv/riscv-common.c (riscv_implied_info_t): New.
13012 (riscv_implied_info): New.
13013 (riscv_subset_list): Add handle_implied_ext.
13014 (riscv_subset_list::to_string): New parameter version_p to
13015 control output format.
13016 (riscv_subset_list::handle_implied_ext): New.
13017 (riscv_subset_list::parse_std_ext): Call handle_implied_ext.
13018 (riscv_arch_str): New parameter version_p to control output format.
13019 (riscv_expand_arch): New.
13020 * config/riscv/riscv-protos.h (riscv_arch_str): New parameter,
13021 version_p.
13022 * config/riscv/riscv.h (riscv_expand_arch): New,
13023 (EXTRA_SPEC_FUNCTIONS): Define.
13024 (ASM_SPEC): Transform -march= via riscv_expand_arch.
13025
13026 2020-05-19 Kito Cheng <kito.cheng@sifive.com>
13027
13028 * riscv-common.c (parse_sv_or_non_std_ext): Rename to
13029 parse_multiletter_ext.
13030 (parse_multiletter_ext): Add parsing `h` and `z`, drop `sx`,
13031 adjust parsing order for 's' and 'x'.
13032
13033 2020-05-19 Richard Biener <rguenther@suse.de>
13034
13035 * tree-vectorizer.h (_slp_tree::vectype): Add field.
13036 (SLP_TREE_VECTYPE): New.
13037 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
13038 SLP_TREE_VECTYPE.
13039 (vect_create_new_slp_node): Likewise.
13040 (vect_prologue_cost_for_slp): Move here from tree-vect-stmts.c
13041 and simplify.
13042 (vect_slp_analyze_node_operations): Walk nodes children for
13043 invariant costing.
13044 (vect_get_constant_vectors): Use local scope op variable.
13045 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Remove here.
13046 (vect_model_simple_cost): Adjust.
13047 (vect_model_store_cost): Likewise.
13048 (vectorizable_store): Likewise.
13049
13050 2020-05-18 Martin Sebor <msebor@redhat.com>
13051
13052 PR middle-end/92815
13053 * tree-object-size.c (decl_init_size): New function.
13054 (addr_object_size): Call it.
13055 * tree.h (last_field): Declare.
13056 (first_field): Add attribute nonnull.
13057
13058 2020-05-18 Martin Sebor <msebor@redhat.com>
13059
13060 PR middle-end/94940
13061 * tree-vrp.c (vrp_prop::check_mem_ref): Remove unreachable code.
13062 * tree.c (component_ref_size): Correct the handling or array members
13063 of unions.
13064 Drop a pointless test.
13065 Rename a local variable.
13066
13067 2020-05-18 Jason Merrill <jason@redhat.com>
13068
13069 * aclocal.m4: Add ax_cxx_compile_stdcxx.m4.
13070 * configure.ac: Use AX_CXX_COMPILE_STDCXX(11).
13071
13072 2020-05-14 Jason Merrill <jason@redhat.com>
13073
13074 * doc/install.texi (Prerequisites): Update boostrap compiler
13075 requirement to C++11/GCC 4.8.
13076
13077 2020-05-18 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
13078
13079 PR tree-optimization/94952
13080 * gimple-ssa-store-merging.c (pass_store_merging::process_store):
13081 Initialize variables bitpos, bitregion_start, and bitregion_end in
13082 order to silence warnings about use of uninitialized variables.
13083
13084 2020-05-18 Carl Love <cel@us.ibm.com>
13085
13086 PR target/94833
13087 * config/rs6000/vsx.md (define_expand): Fix instruction generation for
13088 first_match_index_<mode>.
13089 * testsuite/gcc.target/powerpc/builtins-8-p9-runnable.c (main): Add
13090 additional test cases with zero vector elements.
13091
13092 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
13093
13094 PR target/95169
13095 * config/i386/i386-expand.c (ix86_expand_int_movcc):
13096 Avoid reversing a non-trapping comparison to a trapping one.
13097
13098 2020-05-18 Alex Coplan <alex.coplan@arm.com>
13099
13100 * config/arm/arm.c (output_move_double): Fix codegen when loading into
13101 a register pair with an odd base register.
13102
13103 2020-05-18 Uroš Bizjak <ubizjak@gmail.com>
13104
13105 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
13106 Do not emit FLAGS_REG clobber for TFmode.
13107 * config/i386/i386.md (*<code>tf2_1): Rewrite as
13108 define_insn_and_split. Mark operands 1 and 2 commutative.
13109 (*nabstf2_1): Ditto.
13110 (absneg SSE splitter): Use MODEF mode iterator instead of SSEMODEF.
13111 Do not swap memory operands. Simplify RTX generation.
13112 (neg abs SSE splitter): Ditto.
13113 * config/i386/sse.md (*<code><mode>2): Mark operands 1 and 2
13114 commutative. Do not swap operands. Simplify RTX generation.
13115 (*nabs<mode>2): Ditto.
13116
13117 2020-05-18 Richard Biener <rguenther@suse.de>
13118
13119 * tree-vect-slp.c (vect_slp_bb): Start after labels.
13120 (vect_get_constant_vectors): Really place init stmt after scalar defs.
13121 * tree-vect-stmts.c (vect_init_vector_1): Insert before
13122 region begin.
13123
13124 2020-05-18 H.J. Lu <hongjiu.lu@intel.com>
13125
13126 * config/i386/driver-i386.c (host_detect_local_cpu): Support
13127 Intel Airmont, Tremont, Comet Lake, Ice Lake and Tiger Lake
13128 processor families.
13129
13130 2020-05-18 Richard Biener <rguenther@suse.de>
13131
13132 PR middle-end/95171
13133 * tree-inline.c (remap_gimple_stmt): Split out trapping compares
13134 when inlining into a non-call EH function.
13135
13136 2020-05-18 Richard Biener <rguenther@suse.de>
13137
13138 PR tree-optimization/95172
13139 * tree-ssa-loop-im.c (execute_sm): Get flag whether we
13140 eventually need the conditional processing.
13141 (execute_sm_exit): When processing an orderd sequence
13142 avoid doing any conditional processing.
13143 (hoist_memory_references): Pass down whether all edges
13144 have ordered processing for a ref to execute_sm.
13145
13146 2020-05-17 Jeff Law <law@redhat.com>
13147
13148 * config/h8300/predicates.md (pc_or_label_operand): New predicate.
13149 * config/h8300/jumpcall.md (branch_true, branch_false): Consolidate
13150 into a single pattern using pc_or_label_operand.
13151 * config/h8300/combiner.md (bit branch patterns): Likewise.
13152 * config/h8300/peepholes.md (HImode and SImode branches): Likewise.
13153
13154 2020-05-17 H.J. Lu <hongjiu.lu@intel.com>
13155
13156 PR target/95021
13157 * config/i386/i386-features.c (has_non_address_hard_reg):
13158 Renamed to ...
13159 (pseudo_reg_set): This. Return the SET expression. Ignore
13160 pseudo register push.
13161 (general_scalar_to_vector_candidate_p): Combine single_set and
13162 has_non_address_hard_reg calls to pseudo_reg_set.
13163 (timode_scalar_to_vector_candidate_p): Likewise.
13164 * config/i386/i386.md (*pushv1ti2): New pattern.
13165
13166 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
13167
13168 Revert:
13169 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
13170
13171 * tree-vrp.c (operand_less_p): Move to...
13172 * vr-values.c (operand_less_p): ...here.
13173 * tree-vrp.h (operand_less_p): Remove.
13174
13175 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
13176
13177 * tree-vrp.c (operand_less_p): Move to...
13178 * vr-values.c (operand_less_p): ...here.
13179 * tree-vrp.h (operand_less_p): Remove.
13180
13181 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
13182
13183 * tree-vrp.c (class vrp_insert): Remove prototype for
13184 live_on_edge.
13185
13186 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
13187
13188 * tree-vrp.c (class live_names): New.
13189 (live_on_edge): Move into live_names.
13190 (build_assert_expr_for): Move into vrp_insert.
13191 (find_assert_locations_in_bb): Rename from
13192 find_assert_locations_1.
13193 (process_assert_insertions_for): Move into vrp_insert.
13194 (compare_assert_loc): Same.
13195 (remove_range_assertions): Same.
13196 (dump_asserts_for): Rename to vrp_insert::dump.
13197 (debug_asserts_for): Rename to vrp_insert::debug.
13198 (dump_all_asserts): Rename to vrp_insert::dump.
13199 (debug_all_asserts): Rename to vrp_insert::debug.
13200
13201 2020-05-17 Aldy Hernandez <aldyh@redhat.com>
13202
13203 * tree-vrp.c (class vrp_prop): Move check_all_array_refs,
13204 check_array_ref, check_mem_ref, and search_for_addr_array
13205 into new class...
13206 (class array_bounds_checker): ...here.
13207 (class check_array_bounds_dom_walker): Adjust to use
13208 array_bounds_checker.
13209 (check_all_array_refs): Move into array_bounds_checker and rename
13210 to check.
13211 (class vrp_folder): Make fold_predicate_in private.
13212
13213 2020-05-15 Jeff Law <law@redhat.com>
13214
13215 * config/h8300/h8300.md (SFI iterator): New iterator for
13216 SFmode and SImode.
13217 * config/h8300/peepholes.md (memory comparison): Use mode
13218 iterator to consolidate 3 patterns into one.
13219 (stack allocation and stack store): Handle SFmode. Handle
13220 8 byte allocations.
13221
13222 2020-05-15 Segher Boessenkool <segher@kernel.crashing.org>
13223
13224 * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_2): Also require
13225 RS6000_BTM_POWERPC64.
13226
13227 2020-05-15 Uroš Bizjak <ubizjak@gmail.com>
13228
13229 * config/i386/i386.md (SWI48DWI): New mode iterator.
13230 (*push<mode>2): Allow XMM registers.
13231 (*pushdi2_rex64): Ditto.
13232 (*pushsi2_rex64): Ditto.
13233 (*pushsi2): Ditto.
13234 (push XMM reg splitter): New splitter
13235
13236 (*pushdf) Change "x" operand constraint to "v".
13237 (*pushsf_rex64): Ditto.
13238 (*pushsf): Ditto.
13239
13240 2020-05-15 Richard Biener <rguenther@suse.de>
13241
13242 PR tree-optimization/92260
13243 * tree-vect-slp.c (vect_get_constant_vectors): Compute
13244 the number of vector stmts in a canonical way.
13245
13246 2020-05-15 Martin Liska <mliska@suse.cz>
13247
13248 * hsa-gen.c (get_symbol_for_decl): Fix misleading indentation
13249 warning.
13250
13251 2020-05-15 Andrew Stubbs <ams@codesourcery.com>
13252
13253 * config/gcn/gcn-valu.md (v<expander><mode>3): Fix unsignedp.
13254
13255 2020-05-15 Richard Biener <rguenther@suse.de>
13256
13257 PR tree-optimization/95133
13258 * gimple-ssa-split-paths.c
13259 (find_block_to_duplicate_for_splitting_paths): Check for
13260 normal edges.
13261
13262 2020-05-15 Christophe Lyon <christophe.lyon@linaro.org>
13263
13264 * config/arm/arm.c (reg_needs_saving_p): Add support for interrupt
13265 routines.
13266 (arm_compute_save_reg0_reg12_mask): Use reg_needs_saving_p.
13267
13268 2020-05-15 Tobias Burnus <tobias@codesourcery.com>
13269
13270 PR middle-end/94635
13271 * gimplify.c (gimplify_scan_omp_clauses): For MAP_TO_PSET with
13272 OMP_TARGET_EXIT_DATA, use 'release:' unless the associated
13273 item is 'delete:'.
13274
13275 2020-05-15 Uroš Bizjak <ubizjak@gmail.com>
13276
13277 PR target/95046
13278 * config/i386/i386.md (isa): Add sse3_noavx.
13279 (enabled): Handle sse3_noavx.
13280
13281 * config/i386/mmx.md (mmx_haddv2sf3): New expander.
13282 (*mmx_haddv2sf3): Rename from mmx_haddv2sf3. Add SSE/AVX
13283 alternatives. Match commutative vec_select selector operands.
13284 (*mmx_haddv2sf3_low): New insn pattern.
13285
13286 (*mmx_hsubv2sf3): Add SSE/AVX alternatives.
13287 (*mmx_hsubv2sf3_low): New insn pattern.
13288
13289 2020-05-15 Richard Biener <rguenther@suse.de>
13290
13291 PR tree-optimization/33315
13292 * tree-ssa-sink.c: Include tree-eh.h.
13293 (sink_stats): Add commoned member.
13294 (sink_common_stores_to_bb): New function implementing store
13295 commoning by sinking to the successor.
13296 (sink_code_in_bb): Call it, pass down TODO_cleanup_cfg returned.
13297 (pass_sink_code::execute): Likewise. Record commoned stores
13298 in statistics.
13299
13300 2020-05-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
13301
13302 PR rtl-optimization/37451, part of PR target/61837
13303 * loop-doloop.c (doloop_simplify_count): New function. Simplify
13304 (add -1; zero_ext; add +1) to zero_ext when not wrapping.
13305 (doloop_modify): Call doloop_simplify_count.
13306
13307 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
13308
13309 PR jit/94778
13310 * doc/sourcebuild.texi: Document effective target lgccjit.
13311
13312 2020-05-14 Andrew Stubbs <ams@codesourcery.com>
13313
13314 * config/gcn/gcn-valu.md (add<mode>3_zext_dup): Change to a
13315 define_expand, and rename the original to ...
13316 (add<mode>3_vcc_zext_dup): ... this, and add a custom VCC operand.
13317 (add<mode>3_zext_dup_exec): Likewise, with ...
13318 (add<mode>3_vcc_zext_dup_exec): ... this.
13319 (add<mode>3_zext_dup2): Likewise, with ...
13320 (add<mode>3_zext_dup_exec): ... this.
13321 (add<mode>3_zext_dup2_exec): Likewise, with ...
13322 (add<mode>3_zext_dup2): ... this.
13323 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address): Switch
13324 addv64di3_zext* calls to use addv64di3_vcc_zext*.
13325
13326 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
13327
13328 PR target/95046
13329 * config/i386/sse.md (truncv2dfv2df2): New insn pattern.
13330 (extendv2sfv2df2): Ditto.
13331
13332 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
13333
13334 * configure: Regenerated.
13335
13336 2020-05-14 Christophe Lyon <christophe.lyon@linaro.org>
13337
13338 * config/arm/arm.c (reg_needs_saving_p): New function.
13339 (use_return_insn): Use reg_needs_saving_p.
13340 (arm_get_vfp_saved_size): Likewise.
13341 (arm_compute_frame_layout): Likewise.
13342 (arm_save_coproc_regs): Likewise.
13343 (thumb1_expand_epilogue): Likewise.
13344 (arm_expand_epilogue_apcs_frame): Likewise.
13345 (arm_expand_epilogue): Likewise.
13346
13347 2020-05-14 Christophe Lyon <christophe.lyon@linaro.org>
13348
13349 * config/arm/arm.c (thumb1_expand_prologue): Update error message.
13350
13351 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
13352
13353 PR target/95046
13354 * config/i386/sse.md (sse2_cvtpi2pd): Add memory to alternative 1.
13355
13356 (floatv2siv2df2): New expander.
13357 (floatunsv2siv2df2): New insn pattern.
13358
13359 (fix_truncv2dfv2si2): New expander.
13360 (fixuns_truncv2dfv2si2): New insn pattern.
13361
13362 2020-05-14 Richard Sandiford <richard.sandiford@arm.com>
13363
13364 PR target/95105
13365 * config/aarch64/aarch64-sve-builtins.cc
13366 (handle_arm_sve_vector_bits_attribute): Create a copy of the
13367 original type's TYPE_MAIN_VARIANT, then reapply all the differences
13368 between the original type and its main variant.
13369
13370 2020-05-14 Richard Biener <rguenther@suse.de>
13371
13372 PR middle-end/95118
13373 * real.c (real_to_decimal_for_mode): Make sure we handle
13374 a zero with nonzero exponent.
13375
13376 2020-05-14 Jakub Jelinek <jakub@redhat.com>
13377
13378 * Makefile.in (GTFILES): Add omp-general.c.
13379 * cgraph.h (struct cgraph_node): Add declare_variant_alt and
13380 calls_declare_variant_alt members and initialize them in the
13381 ctor.
13382 * ipa.c (symbol_table::remove_unreachable_nodes): Handle direct
13383 calls to declare_variant_alt nodes.
13384 * lto-cgraph.c (lto_output_node): Write declare_variant_alt
13385 and calls_declare_variant_alt.
13386 (input_overwrite_node): Read them back.
13387 * omp-simd-clone.c (simd_clone_create): Copy calls_declare_variant_alt
13388 bit.
13389 * tree-inline.c (expand_call_inline): Or in calls_declare_variant_alt
13390 bit.
13391 (tree_function_versioning): Copy calls_declare_variant_alt bit.
13392 * omp-offload.c (execute_omp_device_lower): Call
13393 omp_resolve_declare_variant on direct function calls.
13394 (pass_omp_device_lower::gate): Also enable for
13395 calls_declare_variant_alt functions.
13396 * omp-general.c (omp_maybe_offloaded): Return false after inlining.
13397 (omp_context_selector_matches): Handle the case when
13398 cfun->curr_properties has PROP_gimple_any bit set.
13399 (struct omp_declare_variant_entry): New type.
13400 (struct omp_declare_variant_base_entry): New type.
13401 (struct omp_declare_variant_hasher): New type.
13402 (omp_declare_variant_hasher::hash, omp_declare_variant_hasher::equal):
13403 New methods.
13404 (omp_declare_variants): New variable.
13405 (struct omp_declare_variant_alt_hasher): New type.
13406 (omp_declare_variant_alt_hasher::hash,
13407 omp_declare_variant_alt_hasher::equal): New methods.
13408 (omp_declare_variant_alt): New variables.
13409 (omp_resolve_late_declare_variant): New function.
13410 (omp_resolve_declare_variant): Call omp_resolve_late_declare_variant
13411 when called late. Create a magic declare_variant_alt fndecl and
13412 cgraph node and return that if decision needs to be deferred until
13413 after gimplification.
13414 * cgraph.c (symbol_table::create_edge): Or in calls_declare_variant_alt
13415 bit.
13416
13417 PR middle-end/95108
13418 * omp-simd-clone.c (struct modify_stmt_info): Add after_stmt member.
13419 (ipa_simd_modify_stmt_ops): For PHIs, only add before first stmt in
13420 entry block if info->after_stmt is NULL, otherwise add after that stmt
13421 and update it after adding each stmt.
13422 (ipa_simd_modify_function_body): Initialize info.after_stmt.
13423
13424 * function.h (struct function): Add has_omp_target bit.
13425 * omp-offload.c (omp_discover_declare_target_fn_r): New function,
13426 old renamed to ...
13427 (omp_discover_declare_target_tgt_fn_r): ... this.
13428 (omp_discover_declare_target_var_r): Call
13429 omp_discover_declare_target_tgt_fn_r instead of
13430 omp_discover_declare_target_fn_r.
13431 (omp_discover_implicit_declare_target): Also queue functions with
13432 has_omp_target bit set, for those walk with
13433 omp_discover_declare_target_fn_r, for declare target to functions
13434 walk with omp_discover_declare_target_tgt_fn_r.
13435
13436 2020-05-14 Uroš Bizjak <ubizjak@gmail.com>
13437
13438 PR target/95046
13439 * config/i386/mmx.md (mmx_fix_truncv2sfv2si2): Rename from mmx_pf2id.
13440 Add SSE/AVX alternative. Change operand predicates from
13441 nonimmediate_operand to register_mmxmem_operand.
13442 Enable instruction pattern for TARGET_MMX_WITH_SSE.
13443 (fix_truncv2sfv2si2): New expander.
13444 (fixuns_truncv2sfv2si2): New insn pattern.
13445
13446 (mmx_floatv2siv2sf2): rename from mmx_floatv2si2.
13447 Add SSE/AVX alternative. Change operand predicates from
13448 nonimmediate_operand to register_mmxmem_operand.
13449 Enable instruction pattern for TARGET_MMX_WITH_SSE.
13450 (floatv2siv2sf2): New expander.
13451 (floatunsv2siv2sf2): New insn pattern.
13452
13453 * config/i386/i386-builtin.def (IX86_BUILTIN_PF2ID):
13454 Update for rename.
13455 (IX86_BUILTIN_PI2FD): Ditto.
13456
13457 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
13458
13459 * config/s390/s390.c (s390_emit_stack_probe): Call the probe_stack
13460 expander.
13461 * config/s390/s390.md ("@probe_stack2<mode>", "probe_stack"): New
13462 expanders.
13463
13464 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
13465
13466 * config/s390/s390.c (allocate_stack_space): Add missing updates
13467 of last_probe_offset.
13468
13469 2020-05-14 Andreas Krebbel <krebbel@linux.ibm.com>
13470
13471 * config/s390/s390.md ("allocate_stack"): Call
13472 anti_adjust_stack_and_probe_stack_clash when stack clash
13473 protection is enabled.
13474 * explow.c (anti_adjust_stack_and_probe_stack_clash): Remove
13475 prototype. Remove static.
13476 * explow.h (anti_adjust_stack_and_probe_stack_clash): Add
13477 prototype.
13478
13479 2020-05-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
13480
13481 * config/rs6000/altivec.h (vec_extractl): New #define.
13482 (vec_extracth): Likewise.
13483 * config/rs6000/altivec.md (UNSPEC_EXTRACTL): New constant.
13484 (UNSPEC_EXTRACTR): Likewise.
13485 (vextractl<mode>): New expansion.
13486 (vextractl<mode>_internal): New insn.
13487 (vextractr<mode>): New expansion.
13488 (vextractr<mode>_internal): New insn.
13489 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vextdubvlx):
13490 New built-in function.
13491 (__builtin_altivec_vextduhvlx): Likewise.
13492 (__builtin_altivec_vextduwvlx): Likewise.
13493 (__builtin_altivec_vextddvlx): Likewise.
13494 (__builtin_altivec_vextdubvhx): Likewise.
13495 (__builtin_altivec_vextduhvhx): Likewise.
13496 (__builtin_altivec_vextduwvhx): Likewise.
13497 (__builtin_altivec_vextddvhx): Likewise.
13498 (__builtin_vec_extractl): New overloaded built-in function.
13499 (__builtin_vec_extracth): Likewise.
13500 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
13501 Define overloaded forms of __builtin_vec_extractl and
13502 __builtin_vec_extracth.
13503 (builtin_function_type): Add cases to mark arguments of new
13504 built-in functions as unsigned.
13505 (rs6000_common_init_builtins): Add
13506 opaque_ftype_opaque_opaque_opaque_opaque.
13507 * config/rs6000/rs6000.md (du_or_d): New mode attribute.
13508 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
13509 for a Future Architecture): Add description of vec_extractl and
13510 vec_extractr built-in functions.
13511
13512 2020-05-13 Richard Biener <rguenther@suse.de>
13513
13514 * target.def (add_stmt_cost): Add new vectype parameter.
13515 * targhooks.c (default_add_stmt_cost): Adjust.
13516 * targhooks.h (default_add_stmt_cost): Likewise.
13517 * config/aarch64/aarch64.c (aarch64_add_stmt_cost): Take new
13518 vectype parameter.
13519 * config/arm/arm.c (arm_add_stmt_cost): Likewise.
13520 * config/i386/i386.c (ix86_add_stmt_cost): Likewise.
13521 * config/rs6000/rs6000.c (rs6000_add_stmt_cost): Likewise.
13522
13523 * tree-vectorizer.h (stmt_info_for_cost::vectype): Add.
13524 (dump_stmt_cost): Add new vectype parameter.
13525 (add_stmt_cost): Likewise.
13526 (record_stmt_cost): Likewise.
13527 (record_stmt_cost): Add overload with old signature.
13528 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
13529 Adjust.
13530 (vect_get_known_peeling_cost): Likewise.
13531 (vect_estimate_min_profitable_iters): Likewise.
13532 * tree-vectorizer.c (dump_stmt_cost): Add new vectype parameter.
13533 * tree-vect-stmts.c (record_stmt_cost): Likewise.
13534 (vect_prologue_cost_for_slp_op): Remove stmt_vec_info parameter
13535 and pass down correct vectype and NULL stmt_info.
13536 (vect_model_simple_cost): Adjust.
13537 (vect_model_store_cost): Likewise.
13538
13539 2020-05-13 Richard Biener <rguenther@suse.de>
13540
13541 * tree-vectorizer.h (SLP_INSTANCE_GROUP_SIZE): Remove.
13542 (_slp_instance::group_size): Likewise.
13543 * tree-vect-loop.c (vectorizable_reduction): The group size
13544 is the number of lanes in the node.
13545 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
13546 (vect_analyze_slp_instance): Do not set SLP_INSTANCE_GROUP_SIZE,
13547 verify it matches the instance trees number of lanes.
13548 (vect_slp_analyze_node_operations_1): Use the numer of lanes
13549 in the node as group size.
13550 (vect_bb_vectorization_profitable_p): Use the instance root
13551 number of lanes for the size of life.
13552 (vect_schedule_slp_instance): Use the number of lanes as
13553 group_size.
13554 * tree-vect-stmts.c (vectorizable_load): Remove SLP instance
13555 parameter. Use the number of lanes of the load for the group
13556 size in the gap adjustment code.
13557 (vect_analyze_stmt): Adjust.
13558 (vect_transform_stmt): Likewise.
13559
13560 2020-05-13 Jakub Jelinek <jakub@redhat.com>
13561
13562 PR debug/95080
13563 * cfgrtl.c (purge_dead_edges): Skip over debug and note insns even
13564 if the last insn is a note.
13565
13566 PR tree-optimization/95060
13567 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Fold a NEGATE_EXPR
13568 if it is the single use of the FMA internal builtin.
13569
13570 2020-05-13 Bin Cheng <bin.cheng@linux.alibaba.com>
13571
13572 PR tree-optimization/94969
13573 * tree-data-dependence.c (constant_access_functions): Rename to...
13574 (invariant_access_functions): ...this. Add parameter. Check for
13575 invariant access function, rather than constant.
13576 (build_classic_dist_vector): Call above function.
13577 * tree-loop-distribution.c (pg_add_dependence_edges): Add comment.
13578
13579 2020-05-13 Hongtao Liu <hongtao.liu@intel.com>
13580
13581 PR target/94118
13582 * doc/extend.texi (x86Operandmodifiers): Document more x86
13583 operand modifier.
13584 * gcc/config/i386/i386.c: Add comment for operand modifier N and I.
13585
13586 2020-05-12 Giuliano Belinassi <giuliano.belinassi@usp.br>
13587
13588 * tree-vrp.c (class vrp_insert): New.
13589 (insert_range_assertions): Move to class vrp_insert.
13590 (dump_all_asserts): Same as above.
13591 (dump_asserts_for): Same as above.
13592 (live): Same as above.
13593 (need_assert_for): Same as above.
13594 (live_on_edge): Same as above.
13595 (finish_register_edge_assert_for): Same as above.
13596 (find_switch_asserts): Same as above.
13597 (find_assert_locations): Same as above.
13598 (find_assert_locations_1): Same as above.
13599 (find_conditional_asserts): Same as above.
13600 (process_assert_insertions): Same as above.
13601 (register_new_assert_for): Same as above.
13602 (vrp_prop): New variable fun.
13603 (vrp_initialize): New parameter.
13604 (identify_jump_threads): Same as above.
13605 (execute_vrp): Same as above.
13606
13607
13608 2020-05-12 Keith Packard <keith.packard@sifive.com>
13609
13610 * config/riscv/riscv.c (riscv_unique_section): New.
13611 (TARGET_ASM_UNIQUE_SECTION): New.
13612
13613 2020-05-12 Craig Blackmore <craig.blackmore@embecosm.com>
13614
13615 * config.gcc: Add riscv-shorten-memrefs.o to extra_objs for riscv.
13616 * config/riscv/riscv-passes.def: New file.
13617 * config/riscv/riscv-protos.h (make_pass_shorten_memrefs): Declare.
13618 * config/riscv/riscv-shorten-memrefs.c: New file.
13619 * config/riscv/riscv.c (tree-pass.h): New include.
13620 (riscv_compressed_reg_p): New Function
13621 (riscv_compressed_lw_offset_p): Likewise.
13622 (riscv_compressed_lw_address_p): Likewise.
13623 (riscv_shorten_lw_offset): Likewise.
13624 (riscv_legitimize_address): Attempt to convert base + large_offset
13625 to compressible new_base + small_offset.
13626 (riscv_address_cost): Make anticipated compressed load/stores
13627 cheaper for code size than uncompressed load/stores.
13628 (riscv_register_priority): Move compressed register check to
13629 riscv_compressed_reg_p.
13630 * config/riscv/riscv.h (C_S_BITS): Define.
13631 (CSW_MAX_OFFSET): Define.
13632 * config/riscv/riscv.opt (mshorten-memefs): New option.
13633 * config/riscv/t-riscv (riscv-shorten-memrefs.o): New rule.
13634 (PASSES_EXTRA): Add riscv-passes.def.
13635 * doc/invoke.texi: Document -mshorten-memrefs.
13636
13637 * config/riscv/riscv.c (riscv_new_address_profitable_p): New function.
13638 (TARGET_NEW_ADDRESS_PROFITABLE_P): Define.
13639 * doc/tm.texi: Regenerate.
13640 * doc/tm.texi.in (TARGET_NEW_ADDRESS_PROFITABLE_P): New hook.
13641 * sched-deps.c (attempt_change): Use old address if it is cheaper than
13642 new address.
13643 * target.def (new_address_profitable_p): New hook.
13644 * targhooks.c (default_new_address_profitable_p): New function.
13645 * targhooks.h (default_new_address_profitable_p): Declare.
13646
13647 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
13648
13649 PR target/95046
13650 * config/i386/mmx.md (copysignv2sf3): New expander.
13651 (xorsignv2sf3): Ditto.
13652 (signbitv2sf3): Ditto.
13653
13654 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
13655
13656 PR target/95046
13657 * config/i386/mmx.md (fmav2sf4): New insn pattern.
13658 (fmsv2sf4): Ditto.
13659 (fnmav2sf4): Ditto.
13660 (fnmsv2sf4): Ditto.
13661
13662 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
13663
13664 * Makefile.in (CET_HOST_FLAGS): New.
13665 (COMPILER): Add $(CET_HOST_FLAGS).
13666 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
13667 AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
13668 enabled.
13669 * aclocal.m4: Regenerated.
13670 * configure: Likewise.
13671
13672 2020-05-12 Uroš Bizjak <ubizjak@gmail.com>
13673
13674 PR target/95046
13675 * config/i386/mmx.md (<code>v2sf2): New insn pattern.
13676 (*mmx_<code>v2sf2): New insn_and_split pattern.
13677 (*mmx_nabsv2sf2): Ditto.
13678 (*mmx_andnotv2sf3): New insn pattern.
13679 (*mmx_<code>v2sf3): Ditto.
13680 * config/i386/i386.md (absneg_op): New code attribute.
13681 * config/i386/i386.c (ix86_build_const_vector): Handle V2SFmode.
13682 (ix86_build_signbit_mask): Ditto.
13683
13684 2020-05-12 Richard Biener <rguenther@suse.de>
13685
13686 * tree-ssa-live.c (remove_unused_locals): Remove dead debug
13687 bind resets.
13688
13689 2020-05-12 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13690
13691 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
13692 Update prototype to include "local" argument.
13693 * config/msp430/msp430.c (msp430_output_aligned_decl_common): Add
13694 "local" argument. Handle local common decls.
13695 * config/msp430/msp430.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Adjust
13696 msp430_output_aligned_decl_common call with 0 for "local" argument.
13697 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
13698
13699 2020-05-12 Richard Biener <rguenther@suse.de>
13700
13701 * cfghooks.c (split_edge): Preserve EDGE_DFS_BACK if set.
13702
13703 2020-05-12 Martin Liska <mliska@suse.cz>
13704
13705 PR sanitizer/95033
13706 PR sanitizer/95051
13707 * sanopt.c (sanitize_rewrite_addressable_params):
13708 Clear DECL_NOT_GIMPLE_REG_P for argument.
13709
13710 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
13711
13712 PR tree-optimization/94980
13713 * tree-vect-generic.c (expand_vector_comparison): Use
13714 vector_element_bits_tree to get the element size in bits,
13715 rather than using TYPE_SIZE.
13716 (expand_vector_condition, vector_element): Likewise.
13717
13718 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
13719
13720 PR tree-optimization/94980
13721 * tree-vect-generic.c (build_replicated_const): Take the number
13722 of bits as a parameter, instead of the type of the elements.
13723 (do_plus_minus): Update accordingly, using vector_element_bits
13724 to calculate the correct number of bits.
13725 (do_negate): Likewise.
13726
13727 2020-05-12 Richard Sandiford <richard.sandiford@arm.com>
13728
13729 PR tree-optimization/94980
13730 * tree.h (vector_element_bits, vector_element_bits_tree): Declare.
13731 * tree.c (vector_element_bits, vector_element_bits_tree): New.
13732 * match.pd: Use the new functions instead of determining the
13733 vector element size directly from TYPE_SIZE(_UNIT).
13734 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
13735 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Likewise.
13736 * tree-vect-stmts.c (vect_is_simple_cond): Likewise.
13737 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
13738 (expand_vector_conversion): Likewise.
13739 (expand_vector_addition): Likewise for a TYPE_SIZE_UNIT used as
13740 a divisor. Convert the dividend to bits to compensate.
13741 * tree-vect-loop.c (vectorizable_live_operation): Call
13742 vector_element_bits instead of open-coding it.
13743
13744 2020-05-12 Jakub Jelinek <jakub@redhat.com>
13745
13746 * omp-offload.h (omp_discover_implicit_declare_target): Declare.
13747 * omp-offload.c: Include context.h.
13748 (omp_declare_target_fn_p, omp_declare_target_var_p,
13749 omp_discover_declare_target_fn_r, omp_discover_declare_target_var_r,
13750 omp_discover_implicit_declare_target): New functions.
13751 * cgraphunit.c (analyze_functions): Call
13752 omp_discover_implicit_declare_target.
13753
13754 2020-05-12 Richard Biener <rguenther@suse.de>
13755
13756 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Canonicalize
13757 literal constant &MEM[..] to a constant literal.
13758
13759 2020-05-12 Richard Biener <rguenther@suse.de>
13760
13761 PR tree-optimization/95045
13762 * dbgcnt.def (lim): Add debug-counter.
13763 * tree-ssa-loop-im.c: Include dbgcnt.h.
13764 (find_refs_for_sm): Use lim debug counter for store motion
13765 candidates.
13766 (do_store_motion): Rename form store_motion. Commit edge
13767 insertions...
13768 (store_motion_loop): ... here.
13769 (tree_ssa_lim): Adjust.
13770
13771 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
13772
13773 * config/rs6000/altivec.h (vec_clzm): Rename to vec_cntlzm.
13774 (vec_ctzm): Rename to vec_cnttzm.
13775 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13776 Change fourth operand for vec_ternarylogic to require
13777 compatibility with unsigned SImode rather than unsigned QImode.
13778 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
13779 Remove overloaded forms of vec_gnb that are no longer needed.
13780 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
13781 for a Future Architecture): Replace vec_clzm with vec_cntlzm;
13782 replace vec_ctzm with vec_cntlzm; remove four unwanted forms of
13783 vec_gnb; move vec_ternarylogic documentation into this section
13784 and replace const unsigned char with const unsigned int as its
13785 fourth argument.
13786
13787 2020-05-11 Carl Love <cel@us.ibm.com>
13788
13789 * config/rs6000/altivec.h (vec_genpcvm): New #define.
13790 * config/rs6000/rs6000-builtin.def (XXGENPCVM_V16QI): New built-in
13791 instantiation.
13792 (XXGENPCVM_V8HI): Likewise.
13793 (XXGENPCVM_V4SI): Likewise.
13794 (XXGENPCVM_V2DI): Likewise.
13795 (XXGENPCVM): New overloaded built-in instantiation.
13796 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins): Add
13797 entries for FUTURE_BUILTIN_VEC_XXGENPCVM.
13798 (altivec_expand_builtin): Add special handling for
13799 FUTURE_BUILTIN_VEC_XXGENPCVM.
13800 (builtin_function_type): Add handling for
13801 FUTURE_BUILTIN_XXGENPCVM_{V16QI,V8HI,V4SI,V2DI}.
13802 * config/rs6000/vsx.md (VSX_EXTRACT_I4): New mode iterator.
13803 (UNSPEC_XXGENPCV): New constant.
13804 (xxgenpcvm_<mode>_internal): New insn.
13805 (xxgenpcvm_<mode>): New expansion.
13806 * doc/extend.texi: Add documentation for vec_genpcvm built-ins.
13807
13808 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
13809
13810 * config/rs6000/altivec.h (vec_strir): New #define.
13811 (vec_stril): Likewise.
13812 (vec_strir_p): Likewise.
13813 (vec_stril_p): Likewise.
13814 * config/rs6000/altivec.md (UNSPEC_VSTRIR): New constant.
13815 (UNSPEC_VSTRIL): Likewise.
13816 (vstrir_<mode>): New expansion.
13817 (vstrir_code_<mode>): New insn.
13818 (vstrir_p_<mode>): New expansion.
13819 (vstrir_p_code_<mode>): New insn.
13820 (vstril_<mode>): New expansion.
13821 (vstril_code_<mode>): New insn.
13822 (vstril_p_<mode>): New expansion.
13823 (vstril_p_code_<mode>): New insn.
13824 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vstribr):
13825 New built-in function.
13826 (__builtin_altivec_vstrihr): Likewise.
13827 (__builtin_altivec_vstribl): Likewise.
13828 (__builtin_altivec_vstrihl): Likewise.
13829 (__builtin_altivec_vstribr_p): Likewise.
13830 (__builtin_altivec_vstrihr_p): Likewise.
13831 (__builtin_altivec_vstribl_p): Likewise.
13832 (__builtin_altivec_vstrihl_p): Likewise.
13833 (__builtin_vec_strir): New overloaded built-in function.
13834 (__builtin_vec_stril): Likewise.
13835 (__builtin_vec_strir_p): Likewise.
13836 (__builtin_vec_stril_p): Likewise.
13837 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
13838 Define overloaded forms of __builtin_vec_strir,
13839 __builtin_vec_stril, __builtin_vec_strir_p, and
13840 __builtin_vec_stril_p.
13841 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
13842 for a Future Architecture): Add description of vec_stril,
13843 vec_stril_p, vec_strir, and vec_strir_p built-in functions.
13844
13845 2020-05-11 Kelvin Nilsen <wschmidt@linux.ibm.com>
13846
13847 * config/rs6000/altivec.h (vec_ternarylogic): New #define.
13848 * config/rs6000/altivec.md (UNSPEC_XXEVAL): New constant.
13849 (xxeval): New insn.
13850 * config/rs6000/predicates.md (u8bit_cint_operand): New predicate.
13851 * config/rs6000/rs6000-builtin.def: Add handling of new macro
13852 RS6000_BUILTIN_4.
13853 (BU_FUTURE_V_4): New macro. Use it.
13854 (BU_FUTURE_OVERLOAD_4): Likewise.
13855 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Add
13856 handling for quaternary built-in functions.
13857 (altivec_resolve_overloaded_builtin): Add special-case handling
13858 for __builtin_vec_xxeval.
13859 * config/rs6000/rs6000-call.c: Add handling of new macro
13860 RS6000_BUILTIN_4 in initialization of rs6000_builtin_info,
13861 bdesc0_arg, bdesc1_arg, bdesc2_arg, bdesc_3arg,
13862 bdesc_altivec_preds, bdesc_abs, and bdesc_htm arrays.
13863 (altivec_overloaded_builtins): Add definitions for
13864 FUTURE_BUILTIN_VEC_XXEVAL.
13865 (bdesc_4arg): New array.
13866 (htm_expand_builtin): Add handling for quaternary built-in
13867 functions.
13868 (rs6000_expand_quaternop_builtin): New function.
13869 (rs6000_expand_builtin): Add handling for quaternary built-in
13870 functions.
13871 (rs6000_init_builtins): Initialize builtin_mode_to_type entries
13872 for unsigned QImode and unsigned HImode.
13873 (builtin_quaternary_function_type): New function.
13874 (rs6000_common_init_builtins): Add handling of quaternary
13875 operations.
13876 * config/rs6000/rs6000.h (RS6000_BTC_QUATERNARY): New defined
13877 constant.
13878 (RS6000_BTC_PREDICATE): Change value of constant.
13879 (RS6000_BTC_ABS): Likewise.
13880 (rs6000_builtins): Add support for new macro RS6000_BUILTIN_4.
13881 * doc/extend.texi (PowerPC AltiVec Built-In Functions Available
13882 for a Future Architecture): Add description of vec_ternarylogic
13883 built-in function.
13884
13885 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
13886
13887 * config/rs6000/rs6000-builtin.def (__builtin_pdepd): New built-in
13888 function.
13889 (__builtin_pextd): Likewise.
13890 * config/rs6000/rs6000.md (UNSPEC_PDEPD): New constant.
13891 (UNSPEC_PEXTD): Likewise.
13892 (pdepd): New insn.
13893 (pextd): Likewise.
13894 * doc/extend.texi (Basic PowerPC Built-in Functions Available for
13895 a Future Architecture): Add descriptions of __builtin_pdepd and
13896 __builtin_pextd functions.
13897
13898 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
13899
13900 * config/rs6000/altivec.h (vec_clrl): New #define.
13901 (vec_clrr): Likewise.
13902 * config/rs6000/altivec.md (UNSPEC_VCLRLB): New constant.
13903 (UNSPEC_VCLRRB): Likewise.
13904 (vclrlb): New insn.
13905 (vclrrb): Likewise.
13906 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vclrlb): New
13907 built-in function.
13908 (__builtin_altivec_vclrrb): Likewise.
13909 (__builtin_vec_clrl): New overloaded built-in function.
13910 (__builtin_vec_clrr): Likewise.
13911 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
13912 Define overloaded forms of __builtin_vec_clrl and
13913 __builtin_vec_clrr.
13914 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
13915 for a Future Architecture): Add descriptions of vec_clrl and
13916 vec_clrr.
13917
13918 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
13919
13920 * config/rs6000/rs6000-builtin.def (__builtin_cntlzdm): New
13921 built-in function definition.
13922 (__builtin_cnttzdm): Likewise.
13923 * config/rs6000/rs6000.md (UNSPEC_CNTLZDM): New constant.
13924 (UNSPEC_CNTTZDM): Likewise.
13925 (cntlzdm): New insn.
13926 (cnttzdm): Likewise.
13927 * doc/extend.texi (Basic PowerPC Built-in Functions available for
13928 a Future Architecture): Add descriptions of __builtin_cntlzdm and
13929 __builtin_cnttzdm functions.
13930
13931 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
13932
13933 PR target/95046
13934 * config/i386/mmx.md (sqrtv2sf2): New insn pattern.
13935
13936 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
13937
13938 * config/rs6000/altivec.h (vec_cfuge): New #define.
13939 * config/rs6000/altivec.md (UNSPEC_VCFUGED): New constant.
13940 (vcfuged): New insn.
13941 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vcfuged):
13942 New built-in function.
13943 * config/rs6000/rs6000-call.c (builtin_function_type): Add
13944 handling for FUTURE_BUILTIN_VCFUGED case.
13945 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
13946 for a Future Architecture): Add description of vec_cfuge built-in
13947 function.
13948
13949 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
13950
13951 * config/rs6000/rs6000-builtin.def (BU_FUTURE_MISC_0): New
13952 #define.
13953 (BU_FUTURE_MISC_1): Likewise.
13954 (BU_FUTURE_MISC_2): Likewise.
13955 (BU_FUTURE_MISC_3): Likewise.
13956 (__builtin_cfuged): New built-in function definition.
13957 * config/rs6000/rs6000.md (UNSPEC_CFUGED): New constant.
13958 (cfuged): New insn.
13959 * doc/extend.texi (Basic PowerPC Built-in Functions Available for
13960 a Future Architecture): New subsubsection.
13961
13962 2020-05-11 Richard Biener <rguenther@suse.de>
13963
13964 PR tree-optimization/95049
13965 * tree-ssa-sccvn.c (set_ssa_val_to): Reject lattice transition
13966 between different constants.
13967
13968 2020-05-11 Richard Sandiford <richard.sandiford@arm.com>
13969
13970 * tree-pretty-print.c (dump_generic_node): Handle BOOLEAN_TYPEs.
13971
13972 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
13973 Bill Schmidt <wschmidt@linux.ibm.com>
13974
13975 * config/rs6000/altivec.h (vec_gnb): New #define.
13976 * config/rs6000/altivec.md (UNSPEC_VGNB): New constant.
13977 (vgnb): New insn.
13978 * config/rs6000/rs6000-builtin.def (BU_FUTURE_OVERLOAD_1): New
13979 #define.
13980 (BU_FUTURE_OVERLOAD_2): Likewise.
13981 (BU_FUTURE_OVERLOAD_3): Likewise.
13982 (__builtin_altivec_gnb): New built-in function.
13983 (__buiiltin_vec_gnb): New overloaded built-in function.
13984 * config/rs6000/rs6000-call.c (altivec_overloaded_builtins):
13985 Define overloaded forms of __builtin_vec_gnb.
13986 (rs6000_expand_binop_builtin): Add error checking for 2nd argument
13987 of __builtin_vec_gnb.
13988 (builtin_function_type): Mark return value and arguments unsigned
13989 for FUTURE_BUILTIN_VGNB.
13990 * doc/extend.texi (PowerPC AltiVec Built-in Functions Available
13991 for a Future Architecture): Add description of vec_gnb built-in
13992 function.
13993
13994 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
13995 Bill Schmidt <wschmidt@linux.ibm.com>
13996
13997 * config/rs6000/altivec.h (vec_pdep): New macro implementing new
13998 built-in function.
13999 (vec_pext): Likewise.
14000 * config/rs6000/altivec.md (UNSPEC_VPDEPD): New constant.
14001 (UNSPEC_VPEXTD): Likewise.
14002 (vpdepd): New insn.
14003 (vpextd): Likewise.
14004 * config/rs6000/rs6000-builtin.def (__builtin_altivec_vpdepd): New
14005 built-in function.
14006 (__builtin_altivec_vpextd): Likewise.
14007 * config/rs6000/rs6000-call.c (builtin_function_type): Add
14008 handling for FUTURE_BUILTIN_VPDEPD and FUTURE_BUILTIN_VPEXTD
14009 cases.
14010 * doc/extend.texi (PowerPC Altivec Built-in Functions Available
14011 for a Future Architecture): Add description of vec_pdep and
14012 vec_pext built-in functions.
14013
14014 2020-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
14015 Bill Schmidt <wschmidt@linux.ibm.com>
14016
14017 * config/rs6000/altivec.h (vec_clzm): New macro.
14018 (vec_ctzm): Likewise.
14019 * config/rs6000/altivec.md (UNSPEC_VCLZDM): New constant.
14020 (UNSPEC_VCTZDM): Likewise.
14021 (vclzdm): New insn.
14022 (vctzdm): Likewise.
14023 * config/rs6000/rs6000-builtin.def (BU_FUTURE_V_0): New macro.
14024 (BU_FUTURE_V_1): Likewise.
14025 (BU_FUTURE_V_2): Likewise.
14026 (BU_FUTURE_V_3): Likewise.
14027 (__builtin_altivec_vclzdm): New builtin definition.
14028 (__builtin_altivec_vctzdm): Likewise.
14029 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Cause
14030 _ARCH_PWR_FUTURE macro to be defined if OPTION_MASK_FUTURE flag is
14031 set.
14032 * config/rs6000/rs6000-call.c (builtin_function_type): Set return
14033 value and parameter types to be unsigned for VCLZDM and VCTZDM.
14034 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
14035 support for TARGET_FUTURE flag.
14036 * config/rs6000/rs6000.h (RS6000_BTM_FUTURE): New macro constant.
14037 * doc/extend.texi (PowerPC Altivec Built-in Functions Available
14038 for a Future Architecture): New subsubsection.
14039
14040 2020-05-11 Richard Biener <rguenther@suse.de>
14041
14042 PR tree-optimization/94988
14043 PR tree-optimization/95025
14044 * tree-ssa-loop-im.c (seq_entry): Make a struct, add from.
14045 (sm_seq_push_down): Take extra parameter denoting where we
14046 moved the ref to.
14047 (execute_sm_exit): Re-issue sm_other stores in the correct
14048 order.
14049 (sm_seq_valid_bb): When always executed, allow sm_other to
14050 prevail inbetween sm_ord and record their stored value.
14051 (hoist_memory_references): Adjust refs_not_supported propagation
14052 and prune sm_other from the end of the ordered sequences.
14053
14054 2020-05-11 Felix Yang <felix.yang@huawei.com>
14055
14056 PR target/94991
14057 * config/aarch64/aarch64.md (mov<mode>):
14058 Bitcasts to the equivalent integer mode using gen_lowpart
14059 instead of doing FAIL for scalar floating point move.
14060
14061 2020-05-11 Alex Coplan <alex.coplan@arm.com>
14062
14063 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Add case
14064 to correctly calculate cost for new pattern (*csinv3_uxtw_insn3).
14065 * config/aarch64/aarch64.md (*csinv3_utxw_insn1): New.
14066 (*csinv3_uxtw_insn2): New.
14067 (*csinv3_uxtw_insn3): New.
14068 * config/aarch64/iterators.md (neg_not_cs): New.
14069
14070 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
14071
14072 PR target/95046
14073 * config/i386/mmx.md (mmx_addv2sf3): Use "v" constraint
14074 instead of "Yv" for AVX alternatives. Add "prefix" attribute.
14075 (*mmx_addv2sf3): Ditto.
14076 (*mmx_subv2sf3): Ditto.
14077 (*mmx_mulv2sf3): Ditto.
14078 (*mmx_<code>v2sf3): Ditto.
14079 (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
14080
14081 2020-05-11 Uroš Bizjak <ubizjak@gmail.com>
14082
14083 PR target/95046
14084 * config/i386/i386.c (ix86_vector_mode_supported_p):
14085 Vectorize 3dNOW! vector modes for TARGET_MMX_WITH_SSE.
14086 * config/i386/mmx.md (*mov<mode>_internal): Do not set
14087 mode of alternative 13 to V2SF for TARGET_MMX_WITH_SSE.
14088
14089 (mmx_addv2sf3): Change operand predicates from
14090 nonimmediate_operand to register_mmxmem_operand.
14091 (addv2sf3): New expander.
14092 (*mmx_addv2sf3): Add SSE/AVX alternatives. Change operand
14093 predicates from nonimmediate_operand to register_mmxmem_operand.
14094 Enable instruction pattern for TARGET_MMX_WITH_SSE.
14095
14096 (mmx_subv2sf3): Change operand predicate from
14097 nonimmediate_operand to register_mmxmem_operand.
14098 (mmx_subrv2sf3): Ditto.
14099 (subv2sf3): New expander.
14100 (*mmx_subv2sf3): Add SSE/AVX alternatives. Change operand
14101 predicates from nonimmediate_operand to register_mmxmem_operand.
14102 Enable instruction pattern for TARGET_MMX_WITH_SSE.
14103
14104 (mmx_mulv2sf3): Change operand predicates from
14105 nonimmediate_operand to register_mmxmem_operand.
14106 (mulv2sf3): New expander.
14107 (*mmx_mulv2sf3): Add SSE/AVX alternatives. Change operand
14108 predicates from nonimmediate_operand to register_mmxmem_operand.
14109 Enable instruction pattern for TARGET_MMX_WITH_SSE.
14110
14111 (mmx_<code>v2sf3): Change operand predicates from
14112 nonimmediate_operand to register_mmxmem_operand.
14113 (<code>v2sf3): New expander.
14114 (*mmx_<code>v2sf3): Add SSE/AVX alternatives. Change operand
14115 predicates from nonimmediate_operand to register_mmxmem_operand.
14116 Enable instruction pattern for TARGET_MMX_WITH_SSE.
14117 (mmx_ieee_<ieee_maxmin>v2sf3): Ditto.
14118
14119 2020-05-11 Martin Liska <mliska@suse.cz>
14120
14121 PR c/95040
14122 * common.opt: Fix typo in option description.
14123
14124 2020-05-11 Martin Liska <mliska@suse.cz>
14125
14126 PR gcov-profile/94928
14127 * gcov-io.h: Add caveat about coverage format parsing and
14128 possible outdated documentation.
14129
14130 2020-05-11 Xiong Hu Luo <luoxhu@linux.ibm.com>
14131
14132 PR tree-optimization/83403
14133 * tree-affine.c (expr_to_aff_combination): Replace SSA_NAME with
14134 determine_value_range, Add fold conversion of MULT_EXPR, fix the
14135 previous PLUS_EXPR.
14136
14137 2020-05-10 Gerald Pfeifer <gerald@pfeifer.com>
14138
14139 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32 and
14140 __ILP32__ for 32-bit targets.
14141
14142 2020-05-09 Eric Botcazou <ebotcazou@adacore.com>
14143
14144 * tree.h (expr_align): Delete.
14145 * tree.c (expr_align): Likewise.
14146
14147 2020-05-09 Hans-Peter Nilsson <hp@axis.com>
14148
14149 * resource.c (init_resource_info): Filter-out TARGET_FLAGS_REGNUM
14150 from end_of_function_needs.
14151
14152 * config.gcc: Remove support for crisv32-*-* and cris-*-linux*.
14153 * config/cris/t-linux, config/cris/linux.h, config/cris/linux.opt:
14154 Remove.
14155 * config/cris/t-elfmulti: Remove crisv32 multilib.
14156 * config/cris: Remove shared-library and CRIS v32 support.
14157
14158 Move trivially from cc0 to reg:CC model, removing most optimizations.
14159 * config/cris/cris.md: Remove all side-effect patterns and their
14160 splitters. Remove most peepholes. Add clobbers of CRIS_CC0_REGNUM
14161 to all but post-reload control-flow and movem insns. Remove
14162 constraints on all modified expanders. Remove obsoleted cc0-related
14163 references.
14164 (attr "cc"): Remove alternative "rev".
14165 (mode_iterator BWDD, DI_, SI_): New.
14166 (mode_attr sCC_destc, cmp_op1c, cmp_op2c): New.
14167 ("tst<mode>"): Remove; fold as "M" alternative into compare insn.
14168 ("mstep_shift", "mstep_mul"): Remove patterns.
14169 ("s<rcond>", "s<ocond>", "s<ncond>"): Anonymize.
14170 * config/cris/cris.c: Change all non-condition-code,
14171 non-control-flow emitted insns to add a parallel with clobber of
14172 CRIS_CC0_REGNUM, mostly by changing from gen_rtx_SET with
14173 emit_insn to use of emit_move_insn, gen_add2_insn or
14174 cris_emit_insn, as convenient.
14175 (cris_reg_overlap_mentioned_p)
14176 (cris_normal_notice_update_cc, cris_notice_update_cc): Remove.
14177 (cris_movem_load_rest_p): Don't assume all elements in a
14178 PARALLEL are SETs.
14179 (cris_store_multiple_op_p): Ditto.
14180 (cris_emit_insn): New function.
14181 * cris/cris-protos.h (cris_emit_insn): Declare.
14182
14183 PR target/93372
14184 * config/cris/cris.md (zcond): New code_iterator.
14185 ("*cbranch<mode>4_btstq<CC>"): New insn_and_split.
14186
14187 * config/cris/cris.c (TARGET_FLAGS_REGNUM): Define.
14188
14189 * config/cris/cris.h (REVERSIBLE_CC_MODE): Define to true.
14190
14191 * config/cris/cris.md ("movsi"): For memory destination
14192 post-reload, generate clobberless variant. Similarly for a
14193 zero-source post-reload.
14194 ("*mov_tomem<mode>_split"): New split.
14195 ("*mov_tomem<mode>"): New insn.
14196 ("enabled", mov_tomem_enabled): Define and use to exclude "x" ->
14197 "Q>m" for less-than-SImode.
14198 ("*mov_fromzero<mode>_split"): New split.
14199 ("*mov_fromzero<mode>"): New insn.
14200
14201 Prepare for cmpelim pass to eliminate redundant compare insns.
14202 * config/cris/cris-modes.def: New file.
14203 * config/cris/cris-protos.h (cris_select_cc_mode): Declare.
14204 (cris_notice_update_cc): Remove left-over declaration.
14205 * config/cris/cris.c (TARGET_CC_MODES_COMPATIBLE): Define.
14206 (cris_select_cc_mode, cris_cc_modes_compatible): New functions.
14207 * config/cris/cris.h (SELECT_CC_MODE): Define.
14208 * config/cris/cris.md (NZSET, NZUSE, NZVCSET, NZVCUSE): New
14209 mode_iterators.
14210 (cond): New code_iterator.
14211 (nzcond): Replacement for incorrect ncond. All callers changed.
14212 (nzvccond): Replacement for ocond. All callers changed.
14213 (rnzcond): Replacement for rcond. All callers changed.
14214 (xCC): New code_attr.
14215 (cmp_op1c, cmp_op0c): Renumber from cmp_op1c and cmp_op2c. All
14216 users changed.
14217 ("*cmpdi<NZVCSET:mode>"): Rename from "*cmpdi". Replace
14218 CCmode with iteration over NZVCSET.
14219 ("*cmp_ext<BW:mode><NZVCSET:mode>"): Similarly; rename from
14220 "*cmp_ext<mode>".
14221 ("*cmpsi<NZVCSET:mode>"): Similarly, from "*cmpsi".
14222 ("*cmp<BW:mode><NZVCSET:mode>"): Similarly from "*cmp<mode>".
14223 ("*btst<mode>"): Similarly, from "*btst".
14224 ("*cbranch<mode><code>4"): Rename from "*cbranch<mode>4",
14225 iterating over cond instead of matching the comparison with
14226 ordered_comparison_operator.
14227 ("*cbranch<mode>4_btstq<CC>"): Correct label operand number.
14228 ("b<zcond:code><mode>"): Rename from "b<ncond:code>", iterating
14229 over NZUSE.
14230 ("b<nzvccond:code><mode>"): Similarly from "b<ocond:code>", over
14231 NZVCUSE. Remove FIXME.
14232 ("*b<nzcond:code>_reversed<mode>"): Similarly from
14233 "*b<ncond:code>_reversed", over NZUSE.
14234 ("*b<nzvccond:code>_reversed<mode>"): Similarly from
14235 "*b<ocond:code>_reversed", over NZVCUSE. Remove FIXME.
14236 ("b<rnzcond:code><mode>"): Similarly from "b<rcond:code>",
14237 over NZUSE. Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
14238 depending on CC_NZmode vs. CCmode. Remove FIXME.
14239 ("*b<rnzcond:code>_reversed<mode>"): Similarly from
14240 "*b<rcond:code>_reversed", over NZUSE.
14241 ("*cstore<mode><code>4"): Rename from "*cstore<mode>4",
14242 iterating over cond instead of matching the comparison with
14243 ordered_comparison_operator.
14244 ("*s<nzcond:code><mode>"): Rename from "*s<ncond:code>",
14245 iterating over NZUSE.
14246 ("*s<rnzcond:code><mode>"): Similar from "*s<rcond:code>", over
14247 NZUSE. Reinstate "b<oCC>" vs. "b<CC>" mnemonic choice,
14248 depending on CC_NZmode vs. CCmode.
14249 ("*s<nzvccond:code><mode>"): Simlar from "*s<ocond:code>", over
14250 NZVCUSE. Remove FIXME.
14251 ("cc"): Comment on new use.
14252 ("cc_enabled"): New attribute.
14253 ("enabled"): Make default fall back to cc_enabled.
14254 ("setnz", "ccnz", "setnzvc", "ccnzvc", "setcc", "cccc"): New
14255 default_subst_attrs.
14256 ("setnz_subst", "setnzvc_subst", "setcc_subst"): New default_subst.
14257 ("*movsi_internal<setcc><setnz><setnzvc>"): Rename from
14258 "*movsi_internal". Correct contents of, and rename attribute
14259 "cc" to "cc<cccc><ccnz><ccnzvc>".
14260 ("anz", "anzvc", "acc"): New define_subst_attrs.
14261 ("<acc><anz><anzvc>movhi<setcc><setnz><setnzvc>"): Rename from
14262 "movhi". Rename "cc" attribute to "cc<cccc><ccnz><ccnzvc>".
14263 ("<acc><anz><anzvc>movqi<setcc><setnz><setnzvc>"): Similar from
14264 "movqi". Correct contents of, and rename "cc" attribute to
14265 "cc<cccc><ccnz><ccnzvc>".
14266 ("*b<zcond:code><mode>"): Rename from "b<zcond:code><mode>".
14267 ("*b<nzvccond:code><mode>"): Rename from "b<nzvccond:code><mode>".
14268 ("*b<rnzcond:code><mode>"): Rename from "*b<rnzcond:code><mode>".
14269 ("<acc><anz><anzvc>extend<mode>si2<setcc><setnz><setnzvc>"):
14270 Rename from "extend<mode>si2".
14271 ("<acc><anz><anzvc>zero_extend<mode>si2<setcc><setnz><setnzvc>"):
14272 Similar, from "zero_extend<mode>si2".
14273 ("*adddi3<setnz>"): Rename from "*adddi3".
14274 ("*subdi3<setnz>"): Similarly from "*subdi3".
14275 ("*addsi3<setnz>"): Similarly from "*addsi3".
14276 ("*subsi3<setnz>"): Similarly from "*subsi3".
14277 ("*addhi3<setnz>"): Similarly from "*addhi3" and decorate the
14278 "cc" attribute to "cc<ccnz>".
14279 ("*addqi3<setnz>"): Similarly from "*addqi3".
14280 ("*sub<mode>3<setnz>"): Similarly from "*sub<mode>3".
14281 ("*expanded_andsi<setcc><setnz><setnzvc>"): Rename from
14282 "*expanded_andsi".
14283 ("*iorsi3<setcc><setnz><setnzvc>"): Similar from "*iorsi3".
14284 Decorate "cc" attribute to make "cc<cccc><ccnz><ccnzvc>".
14285 ("*iorhi3<setcc><setnz><setnzvc>"): Similar from "*iorhi3".
14286 ("*iorqi3<setcc><setnz><setnzvc>"): Similar from "*iorqi3".
14287 ("*expanded_andhi<setcc><setnz><setnzvc>"): Similar from
14288 "*expanded_andhi". Add quick cc-setting alternative for 0..31.
14289 ("*andqi3<setcc><setnz><setnzvc>"): Similar from "*andqi3".
14290 ("<acc><anz><anzvc>xorsi3<setcc><setnz><setnzvc>"): Rename
14291 from "xorsi3".
14292 ("<acc><anz><anzvc>one_cmplsi2<setcc><setnz><setnzvc>"): Rename
14293 from "one_cmplsi2".
14294 ("<acc><anz><anzvc><shlr>si3<setcc><setnz><setnzvc>"): Rename
14295 from "<shlr>si3".
14296 ("<acc><anz><anzvc>clzsi2<setcc><setnz><setnzvc>"): Rename
14297 from "clzsi2".
14298 ("<acc><anz><anzvc>bswapsi2<setcc><setnz><setnzvc>"): Rename
14299 from "bswapsi2".
14300 ("*uminsi3<setcc><setnz><setnzvc>"): Rename from "*uminsi3".
14301
14302 * config/cris/cris-modes.def (CC_ZnN): New CC_MODE.
14303 * config/cris/cris.c (cris_rtx_costs): Handle pre-split bit-test
14304 * config/cris/cris.md (ZnNNZSET, ZnNNZUSE): New mode_iterators.
14305 (znnCC, rznnCC): New code_attrs.
14306 ("*btst<mode>"): Iterator over ZnNNZSET instead of NZVCSET. Remove
14307 obseolete comment. Add belt-and-suspenders mode-test to condition.
14308 Add fixme regarding remaining matched-but-not-generated case.
14309 ("*cbranch<mode>4_btstrq1_<CC>"): New insn_and_split.
14310 ("*cbranch<mode>4_btstqb0_<CC>"): Rename from
14311 "*cbranch<mode>4_btstq<CC>". Split to CC_NZ instead of CC.
14312 ("*b<zcond:code><mode>"): Iterate over ZnNNZUSE instead of NZUSE.
14313 Handle output of CC_ZnNmode.
14314 ("*b<nzcond:code>_reversed<mode>"): Ditto.
14315
14316 * config/cris/cris.c (cris_select_cc_mode): Return CC_NZmode for
14317 NEG too. Correct comment.
14318 * config/cris/cris.md ("<anz>neg<mode>2<setnz>"): Rename from
14319 "neg<mode>2".
14320
14321 2020-05-08 Vladimir Makarov <vmakarov@redhat.com>
14322
14323 * ira-color.c (update_costs_from_allocno): Remove
14324 conflict_cost_update_p argument. Propagate costs only along
14325 threads. Always do conflict cost update. Add printing debugging
14326 info.
14327 (update_costs_from_copies): Add printing debugging info.
14328 (restore_costs_from_copies): Ditto.
14329 (assign_hard_reg): Improve debug info.
14330 (push_only_colorable): Ditto. Call update_costs_from_prefs.
14331 (color_allocnos): Remove update_costs_from_prefs.
14332
14333 2020-05-08 Richard Biener <rguenther@suse.de>
14334
14335 * tree-vectorizer.h (vec_info::slp_loads): New.
14336 (vect_optimize_slp): Declare.
14337 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Do
14338 nothing when there are no loads.
14339 (vect_gather_slp_loads): Gather loads into a vector.
14340 (vect_supported_load_permutation_p): Remove.
14341 (vect_analyze_slp_instance): Do not verify permutation
14342 validity here.
14343 (vect_analyze_slp): Optimize permutations of reductions
14344 after all SLP instances have been gathered and gather
14345 all loads.
14346 (vect_optimize_slp): New function split out from
14347 vect_supported_load_permutation_p. Elide some permutations.
14348 (vect_slp_analyze_bb_1): Call vect_optimize_slp.
14349 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
14350 * tree-vect-stmts.c (vectorizable_load): Check whether
14351 the load can be permuted. When generating code assert we can.
14352
14353 2020-05-08 Richard Biener <rguenther@suse.de>
14354
14355 * tree-ssa-sccvn.c (rpo_avail): Change type to
14356 eliminate_dom_walker *.
14357 (eliminate_with_rpo_vn): Adjust rpo_avail to make vn_valueize
14358 use the DOM walker availability.
14359 (vn_reference_fold_indirect): Use get_addr_base_and_unit_offset_1
14360 with vn_valueize as valueization callback.
14361 (vn_reference_maybe_forwprop_address): Likewise.
14362 * tree-dfa.c (get_addr_base_and_unit_offset_1): Also valueize
14363 array_ref_low_bound.
14364
14365 2020-05-08 Jakub Jelinek <jakub@redhat.com>
14366
14367 PR tree-optimization/94786
14368 * match.pd (A ^ ((A ^ B) & -(C cmp D)) -> (C cmp D) ? B : A): New
14369 simplification.
14370
14371 PR target/94857
14372 * config/i386/i386.md (peephole2 after *add<mode>3_cc_overflow_1): New
14373 define_peephole2.
14374
14375 PR middle-end/94724
14376 * tree.c (get_narrower): Reuse the op temporary instead of
14377 shadowing it.
14378
14379 PR tree-optimization/94783
14380 * match.pd ((X + (X >> (prec - 1))) ^ (X >> (prec - 1)) to abs (X)):
14381 New simplification.
14382
14383 PR tree-optimization/94956
14384 * match.pd (FFS): Optimize __builtin_ffs* of non-zero argument into
14385 __builtin_ctz* + 1 if direct IFN_CTZ is supported.
14386
14387 PR tree-optimization/94913
14388 * match.pd (A - B + -1 >= A to B >= A): New simplification.
14389 (A - B > A to A < B): Don't test TYPE_OVERFLOW_WRAPS which is always
14390 true for TYPE_UNSIGNED integral types.
14391
14392 PR bootstrap/94961
14393 PR rtl-optimization/94516
14394 * rtl.h (remove_reg_equal_equiv_notes): Add a bool argument defaulted
14395 to false.
14396 * rtlanal.c (remove_reg_equal_equiv_notes): Add no_rescan argument.
14397 Call df_notes_rescan if that argument is not true and returning true.
14398 * combine.c (adjust_for_new_dest): Pass true as second argument to
14399 remove_reg_equal_equiv_notes.
14400 * postreload.c (reload_combine_recognize_pattern): Don't call
14401 df_notes_rescan.
14402
14403 2020-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14404
14405 * config/rs6000/rs6000.md (*setnbc_<un>signed_<GPR:mode>): New
14406 define_insn.
14407 (*setnbcr_<un>signed_<GPR:mode>): New define_insn.
14408 (*neg_eq_<mode>): Avoid for TARGET_FUTURE; add missing && 1.
14409 (*neg_ne_<mode>): Likewise.
14410
14411 2020-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14412
14413 * config/rs6000/rs6000.md (setbc_<un>signed_<GPR:mode>): New
14414 define_insn.
14415 (*setbcr_<un>signed_<GPR:mode>): Likewise.
14416 (cstore<mode>4): Use setbc[r] if available.
14417 (<code><GPR:mode><GPR2:mode>2_isel): Avoid for TARGET_FUTURE.
14418 (eq<mode>3): Use setbc for TARGET_FUTURE.
14419 (*eq<mode>3): Avoid for TARGET_FUTURE.
14420 (ne<mode>3): Replace :P with :GPR; use setbc for TARGET_FUTURE;
14421 else for non-Pmode, use gen_eq and gen_xor.
14422 (*ne<mode>3): Avoid for TARGET_FUTURE.
14423 (*eqsi3_ext<mode>): Avoid for TARGET_FUTURE; fix missing && 1.
14424
14425 2020-05-07 Jeff Law <law@redhat.com>
14426
14427 * config/h8300/h8300.md: Move expanders and patterns into
14428 files based on functionality.
14429 * config/h8300/addsub.md: New file.
14430 * config/h8300/bitfield.md: New file
14431 * config/h8300/combiner.md: New file
14432 * config/h8300/divmod.md: New file
14433 * config/h8300/extensions.md: New file
14434 * config/h8300/jumpcall.md: New file
14435 * config/h8300/logical.md: New file
14436 * config/h8300/movepush.md: New file
14437 * config/h8300/multiply.md: New file
14438 * config/h8300/other.md: New file
14439 * config/h8300/proepi.md: New file
14440 * config/h8300/shiftrotate.md: New file
14441 * config/h8300/testcompare.md: New file
14442
14443 * config/h8300/h8300.md (adds/subs splitters): Merge into single
14444 splitter.
14445 (negation expanders and patterns): Simplify and combine using
14446 iterators.
14447 (one_cmpl expanders and patterns): Likewise.
14448 (tablejump, indirect_jump patterns ): Likewise.
14449 (shift and rotate expanders and patterns): Likewise.
14450 (absolute value expander and pattern): Drop expander, rename pattern
14451 to just "abssf2"
14452 (peephole2 patterns): Move into...
14453 * config/h8300/peepholes.md: New file.
14454
14455 * config/h8300/constraints.md (L and N): Simplify now that we're not
14456 longer supporting the original H8/300 chip.
14457 * config/h8300/elf.h (LINK_SPEC): Likewise. Default to H8/300H.
14458 * config/h8300/h8300.c (shift_alg_qi): Drop H8/300 support.
14459 (shift_alg_hi, shift_alg_si): Similarly.
14460 (h8300_option_overrides): Similarly. Default to H8/300H. If
14461 compiling for H8/S, then turn off H8/300H. Do not update the
14462 shift_alg tables for H8/300 port.
14463 (h8300_emit_stack_adjustment): Remove support for H8/300. Simplify
14464 where possible.
14465 (push, split_adds_subs, h8300_rtx_costs): Likewise.
14466 (h8300_print_operand, compute_mov_length): Likewise.
14467 (output_plussi, compute_plussi_length): Likewise.
14468 (compute_plussi_cc, output_logical_op): Likewise.
14469 (compute_logical_op_length, compute_logical_op_cc): Likewise.
14470 (get_shift_alg, h8300_shift_needs_scratch): Likewise.
14471 (output_a_shift, compute_a_shift_length): Likewise.
14472 (output_a_rotate, compute_a_rotate_length): Likewise.
14473 (output_simode_bld, h8300_hard_regno_mode_ok): Likewise.
14474 (h8300_modes_tieable_p, h8300_return_in_memory): Likewise.
14475 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14476 (attr_cpu, TARGET_H8300): Remove.
14477 (TARGET_DEFAULT): Update.
14478 (UNITS_PER_WORD, PARM_BOUNDARY): Simplify where possible.
14479 (BIGGEST_ALIGNMENT, STACK_BOUNDARY): Likewise.
14480 (CONSTANT_ADDRESS_P, MOVE_MAX, Pmode): Likewise.
14481 (SIZE_TYPE, POINTER_SIZE, ASM_WORD_OP): Likewise.
14482 * config/h8300/h8300.md: Simplify patterns throughout.
14483 * config/h8300/t-h8300: Update multilib configuration.
14484
14485 * config/h8300/h8300.h (LINK_SPEC): Remove.
14486 (USER_LABEL_PREFIX): Likewise.
14487
14488 * config/h8300/h8300.c (h8300_asm_named_section): Remove.
14489 (h8300_option_override): Remove remnants of COFF support.
14490
14491 2020-05-07 Alan Modra <amodra@gmail.com>
14492
14493 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Replace
14494 set_rtx_cost with set_src_cost.
14495 * tree-switch-conversion.c (bit_test_cluster::emit): Likewise.
14496
14497 2020-05-07 Kewen Lin <linkw@gcc.gnu.org>
14498
14499 * tree-vect-stmts.c (vectorizable_load): Check alignment to avoid
14500 redundant half vector handlings for no peeling gaps.
14501
14502 2020-05-07 Giuliano Belinassi <giuliano.belinassi@usp.br>
14503
14504 * tree-ssa-operands.c (operands_scanner): New class.
14505 (operands_bitmap_obstack): Remove.
14506 (n_initialized): Remove.
14507 (build_uses): Move to operands_scanner class.
14508 (build_vuse): Same as above.
14509 (build_vdef): Same as above.
14510 (verify_ssa_operands): Same as above.
14511 (finalize_ssa_uses): Same as above.
14512 (cleanup_build_arrays): Same as above.
14513 (finalize_ssa_stmt_operands): Same as above.
14514 (start_ssa_stmt_operands): Same as above.
14515 (append_use): Same as above.
14516 (append_vdef): Same as above.
14517 (add_virtual_operand): Same as above.
14518 (add_stmt_operand): Same as above.
14519 (get_mem_ref_operands): Same as above.
14520 (get_tmr_operands): Same as above.
14521 (maybe_add_call_vops): Same as above.
14522 (get_asm_stmt_operands): Same as above.
14523 (get_expr_operands): Same as above.
14524 (parse_ssa_operands): Same as above.
14525 (finalize_ssa_defs): Same as above.
14526 (build_ssa_operands): Same as above, plus create a C-like wrapper.
14527 (update_stmt_operands): Create an instance of operands_scanner.
14528
14529 2020-05-07 Richard Biener <rguenther@suse.de>
14530
14531 PR ipa/94947
14532 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Use
14533 DECL_EXTERNAL || TREE_PUBLIC instead of externally_visible.
14534 (refered_from_nonlocal_var): Likewise.
14535 (ipa_pta_execute): Likewise.
14536
14537 2020-05-07 Erick Ochoa <erick.ochoa@theobroma-systems.com>
14538
14539 * gcc/tree-ssa-struct-alias.c: Fix comments
14540
14541 2020-05-07 Martin Liska <mliska@suse.cz>
14542
14543 * doc/invoke.texi: Fix 2 optindex entries.
14544
14545 2020-05-07 Richard Biener <rguenther@suse.de>
14546
14547 PR middle-end/94703
14548 * tree-core.h (tree_decl_common::gimple_reg_flag): Rename ...
14549 (tree_decl_common::not_gimple_reg_flag): ... to this.
14550 * tree.h (DECL_GIMPLE_REG_P): Rename ...
14551 (DECL_NOT_GIMPLE_REG_P): ... to this.
14552 * gimple-expr.c (copy_var_decl): Copy DECL_NOT_GIMPLE_REG_P.
14553 (create_tmp_reg): Simplify.
14554 (create_tmp_reg_fn): Likewise.
14555 (is_gimple_reg): Check DECL_NOT_GIMPLE_REG_P for all regs.
14556 * gimplify.c (create_tmp_from_val): Simplify.
14557 (gimplify_bind_expr): Likewise.
14558 (gimplify_compound_literal_expr): Likewise.
14559 (gimplify_function_tree): Likewise.
14560 (prepare_gimple_addressable): Set DECL_NOT_GIMPLE_REG_P.
14561 * asan.c (create_odr_indicator): Do not clear DECL_GIMPLE_REG_P.
14562 (asan_add_global): Copy it.
14563 * cgraphunit.c (cgraph_node::expand_thunk): Force args
14564 to be GIMPLE regs.
14565 * function.c (gimplify_parameters): Copy
14566 DECL_NOT_GIMPLE_REG_P.
14567 * ipa-param-manipulation.c
14568 (ipa_param_body_adjustments::common_initialization): Simplify.
14569 (ipa_param_body_adjustments::reset_debug_stmts): Copy
14570 DECL_NOT_GIMPLE_REG_P.
14571 * omp-low.c (lower_omp_for_scan): Do not set DECL_GIMPLE_REG_P.
14572 * sanopt.c (sanitize_rewrite_addressable_params): Likewise.
14573 * tree-cfg.c (make_blocks_1): Simplify.
14574 (verify_address): Do not verify DECL_GIMPLE_REG_P setting.
14575 * tree-eh.c (lower_eh_constructs_2): Simplify.
14576 * tree-inline.c (declare_return_variable): Adjust and
14577 generalize.
14578 (copy_decl_to_var): Copy DECL_NOT_GIMPLE_REG_P.
14579 (copy_result_decl_to_var): Likewise.
14580 * tree-into-ssa.c (pass_build_ssa::execute): Adjust comment.
14581 * tree-nested.c (create_tmp_var_for): Simplify.
14582 * tree-parloops.c (separate_decls_in_region_name): Copy
14583 DECL_NOT_GIMPLE_REG_P.
14584 * tree-sra.c (create_access_replacement): Adjust and
14585 generalize partial def support.
14586 * tree-ssa-forwprop.c (pass_forwprop::execute): Set
14587 DECL_NOT_GIMPLE_REG_P on decls we introduce partial defs on.
14588 * tree-ssa.c (maybe_optimize_var): Handle clearing of
14589 TREE_ADDRESSABLE and setting/clearing DECL_NOT_GIMPLE_REG_P
14590 independently.
14591 * lto-streamer-out.c (hash_tree): Hash DECL_NOT_GIMPLE_REG_P.
14592 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream
14593 DECL_NOT_GIMPLE_REG_P.
14594 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
14595 * cfgexpand.c (avoid_type_punning_on_regs): New.
14596 (discover_nonconstant_array_refs): Call
14597 avoid_type_punning_on_regs to avoid unsupported mode punning.
14598
14599 2020-05-07 Alex Coplan <alex.coplan@arm.com>
14600
14601 * config/arm/arm.c (arm_add_stmt_cost): Fix declaration, remove class
14602 from definition.
14603
14604 2020-05-07 Richard Biener <rguenther@suse.de>
14605
14606 PR tree-optimization/57359
14607 * tree-ssa-loop-im.c (im_mem_ref::indep_loop): Remove.
14608 (in_mem_ref::dep_loop): Repurpose.
14609 (LOOP_DEP_BIT): Remove.
14610 (enum dep_kind): New.
14611 (enum dep_state): Likewise.
14612 (record_loop_dependence): New function to populate the
14613 dependence cache.
14614 (query_loop_dependence): New function to query the dependence
14615 cache.
14616 (memory_accesses::refs_in_loop): Rename to ...
14617 (memory_accesses::refs_loaded_in_loop): ... this and change to
14618 only record loads.
14619 (outermost_indep_loop): Adjust.
14620 (mem_ref_alloc): Likewise.
14621 (gather_mem_refs_stmt): Likewise.
14622 (mem_refs_may_alias_p): Add tbaa_p parameter and pass it down.
14623 (struct sm_aux): New.
14624 (execute_sm): Split code generation on exits, record state
14625 into new hash-map.
14626 (enum sm_kind): New.
14627 (execute_sm_exit): Exit code generation part.
14628 (sm_seq_push_down): Helper for sm_seq_valid_bb performing
14629 dependence checking on stores reached from exits.
14630 (sm_seq_valid_bb): New function gathering SM stores on exits.
14631 (hoist_memory_references): Re-implement.
14632 (refs_independent_p): Add tbaa_p parameter and pass it down.
14633 (record_dep_loop): Remove.
14634 (ref_indep_loop_p_1): Fold into ...
14635 (ref_indep_loop_p): ... this and generalize for three kinds
14636 of dependence queries.
14637 (can_sm_ref_p): Adjust according to hoist_memory_references
14638 changes.
14639 (store_motion_loop): Don't do anything if the set of SM
14640 candidates is empty.
14641 (tree_ssa_lim_initialize): Adjust.
14642 (tree_ssa_lim_finalize): Likewise.
14643
14644 2020-05-07 Eric Botcazou <ebotcazou@adacore.com>
14645 Pierre-Marie de Rodat <derodat@adacore.com>
14646
14647 * dwarf2out.c (add_data_member_location_attribute): Take into account
14648 the variant part offset in the computation of the data bit offset.
14649 (add_bit_offset_attribute): Remove CTX parameter. Pass a new context
14650 in the call to field_byte_offset.
14651 (gen_field_die): Adjust call to add_bit_offset_attribute and remove
14652 confusing assertion.
14653 (analyze_variant_discr): Deal with boolean subtypes.
14654
14655 2020-05-07 Martin Liska <mliska@suse.cz>
14656
14657 * lto-wrapper.c: Split arguments of MAKE environment
14658 variable.
14659
14660 2020-05-07 Uroš Bizjak <ubizjak@gmail.com>
14661
14662 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
14663 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
14664 fenv_var and new_fenv_var.
14665
14666 2020-05-06 Jakub Jelinek <jakub@redhat.com>
14667
14668 PR target/93069
14669 * config/i386/subst.md (store_mask_constraint, store_mask_predicate):
14670 Remove.
14671 (avx512dq_vextract<shuffletype>64x2_1_maskm,
14672 avx512f_vextract<shuffletype>32x4_1_maskm,
14673 vec_extract_lo_<mode>_maskm, vec_extract_hi_<mode>_maskm): Remove.
14674 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>): Split
14675 into ...
14676 (*avx512dq_vextract<shuffletype>64x2_1,
14677 avx512dq_vextract<shuffletype>64x2_1_mask): ... these new
14678 define_insns. Even in the masked variant allow memory output but in
14679 that case use 0 rather than 0C constraint on the source of masked-out
14680 elts.
14681 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Split
14682 into ...
14683 (*avx512f_vextract<shuffletype>32x4_1,
14684 avx512f_vextract<shuffletype>32x4_1_mask): ... these new define_insns.
14685 Even in the masked variant allow memory output but in that case use
14686 0 rather than 0C constraint on the source of masked-out elts.
14687 (vec_extract_lo_<mode><mask_name>): Split into ...
14688 (vec_extract_lo_<mode>, vec_extract_lo_<mode>_mask): ... these new
14689 define_insns. Even in the masked variant allow memory output but in
14690 that case use 0 rather than 0C constraint on the source of masked-out
14691 elts.
14692 (vec_extract_hi_<mode><mask_name>): Split into ...
14693 (vec_extract_hi_<mode>, vec_extract_hi_<mode>_mask): ... these new
14694 define_insns. Even in the masked variant allow memory output but in
14695 that case use 0 rather than 0C constraint on the source of masked-out
14696 elts.
14697
14698 2020-05-06 qing zhao <qing.zhao@oracle.com>
14699
14700 PR c/94230
14701 * common.opt: Add -flarge-source-files.
14702 * doc/invoke.texi: Document it.
14703 * toplev.c (process_options): set line_table->default_range_bits
14704 to 0 when flag_large_source_files is true.
14705
14706 2020-05-06 Uroš Bizjak <ubizjak@gmail.com>
14707
14708 PR target/94913
14709 * config/i386/predicates.md (add_comparison_operator): New predicate.
14710 * config/i386/i386.md (compare->add splitter): New splitters.
14711
14712 2020-05-06 Richard Biener <rguenther@suse.de>
14713
14714 * tree-vectorizer.h (vect_transform_slp_perm_load): Adjust.
14715 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
14716 Remove slp_instance parameter, just iterate over all scalar stmts.
14717 (vect_slp_analyze_instance_dependence): Adjust and likewise.
14718 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Remove unused BB
14719 parameter.
14720 (vect_schedule_slp): Just iterate over all scalar stmts.
14721 (vect_supported_load_permutation_p): Adjust.
14722 (vect_transform_slp_perm_load): Remove slp_instance parameter,
14723 instead use the number of lanes in the node as group size.
14724 * tree-vect-stmts.c (vect_model_load_cost): Get vectorization
14725 factor instead of slp_instance as parameter.
14726 (vectorizable_load): Adjust.
14727
14728 2020-05-06 Andreas Schwab <schwab@suse.de>
14729
14730 * config/aarch64/driver-aarch64.c: Include "aarch64-protos.h".
14731 (aarch64_get_extension_string_for_isa_flags): Don't declare.
14732
14733 2020-05-06 Richard Biener <rguenther@suse.de>
14734
14735 PR middle-end/94964
14736 * cfgloopmanip.c (create_preheader): Require non-complex
14737 preheader edge for CP_SIMPLE_PREHEADERS.
14738
14739 2020-05-06 Richard Biener <rguenther@suse.de>
14740
14741 PR tree-optimization/94963
14742 * tree-ssa-loop-im.c (execute_sm_if_changed): Remove
14743 no-warning marking of the conditional store.
14744 (execute_sm): Instead mark the uninitialized state
14745 on loop entry to be not warned about.
14746
14747 2020-05-06 Hongtao Liu <hongtao.liu@intel.com>
14748
14749 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_TSXLDTRK_SET,
14750 OPTION_MASK_ISA2_TSXLDTRK_UNSET): New macros.
14751 * config.gcc: Add tsxldtrkintrin.h to extra_headers.
14752 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14753 TSXLDTRK.
14754 * config/i386/i386-builtin.def: Add new builtins.
14755 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14756 __TSXLDTRK__.
14757 * config/i386/i386-options.c (ix86_target_string): Add
14758 -mtsxldtrk.
14759 (ix86_valid_target_attribute_inner_p): Add attribute tsxldtrk.
14760 * config/i386/i386.h (TARGET_TSXLDTRK, TARGET_TSXLDTRK_P):
14761 New.
14762 * config/i386/i386.md (define_c_enum "unspec"): Add
14763 UNSPECV_SUSLDTRK, UNSPECV_RESLDTRK.
14764 (TSXLDTRK): New define_int_iterator.
14765 ("<tsxldtrk>"): New define_insn.
14766 * config/i386/i386.opt: Add -mtsxldtrk.
14767 * config/i386/immintrin.h: Include tsxldtrkintrin.h.
14768 * config/i386/tsxldtrkintrin.h: New.
14769 * doc/invoke.texi: Document -mtsxldtrk.
14770
14771 2020-05-06 Jakub Jelinek <jakub@redhat.com>
14772
14773 PR tree-optimization/94921
14774 * match.pd (~(~X - Y) -> X + Y, ~(~X + Y) -> X - Y): New
14775 simplifications.
14776
14777 2020-05-06 Richard Biener <rguenther@suse.de>
14778
14779 PR tree-optimization/94965
14780 * tree-vect-stmts.c (vectorizable_load): Fix typo.
14781
14782 2020-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14783
14784 * doc/install.texi: Replace Sun with Solaris as appropriate.
14785 (Tools/packages necessary for building GCC, Perl version between
14786 5.6.1 and 5.6.24): Remove Solaris 8 reference.
14787 (Installing GCC: Binaries, Solaris 2 (SPARC, Intel)): Remove
14788 TGCware reference.
14789 (Specific, i?86-*-solaris2*): Update version references for
14790 Solaris 11.3 and later. Remove gas 2.26 caveat.
14791 (Specific, *-*-solaris2*): Update version references for
14792 Solaris 11.3 and later. Remove boehm-gc reference.
14793 Document GMP, MPFR caveats on Solaris 11.3.
14794 (Specific, sparc-sun-solaris2*): Update Solaris 9 references.
14795 (Specific, sparc64-*-solaris2*): Likewise.
14796 Document --build requirement.
14797
14798 2020-05-06 Jakub Jelinek <jakub@redhat.com>
14799
14800 PR target/94950
14801 * config/riscv/riscv-builtins.c (riscv_atomic_assign_expand_fenv): Use
14802 TARGET_EXPR instead of MODIFY_EXPR for first assignment to old_flags.
14803
14804 PR rtl-optimization/94873
14805 * combine.c (combine_instructions): Don't optimize using REG_EQUAL
14806 note if SET_SRC (set) has side-effects.
14807
14808 2020-05-06 Hongtao Liu <hongtao.liu@intel.com>
14809 Wei Xiao <wei3.xiao@intel.com>
14810
14811 * common/config/i386/i386-common.c (OPTION_MASK_ISA2_SERIALIZE_SET,
14812 OPTION_MASK_ISA2_SERIALIZE_UNSET): New macros.
14813 (ix86_handle_option): Handle -mserialize.
14814 * config.gcc (serializeintrin.h): New header file.
14815 * config/i386/cpuid.h (bit_SERIALIZE): New bit.
14816 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14817 -mserialize.
14818 * config/i386/i386-builtin.def: Add new builtin.
14819 * config/i386/i386-c.c (__SERIALIZE__): New macro.
14820 * config/i386/i386-options.c (ix86_target_opts_isa2_opts):
14821 Add -mserialize.
14822 * (ix86_valid_target_attribute_inner_p): Add target attribute
14823 * for serialize.
14824 * config/i386/i386.h (TARGET_SERIALIZE, TARGET_SERIALIZE_P):
14825 New macros.
14826 * config/i386/i386.md (UNSPECV_SERIALIZE): New unspec.
14827 (serialize): New define_insn.
14828 * config/i386/i386.opt (mserialize): New option
14829 * config/i386/immintrin.h: Include serailizeintrin.h.
14830 * config/i386/serializeintrin.h: New header file.
14831 * doc/invoke.texi: Add documents for -mserialize.
14832
14833 2020-05-06 Richard Biener <rguenther@suse.de>
14834
14835 * tree-cfg.c (verify_gimple_assign_unary): Adjust integer
14836 to/from pointer conversion checking.
14837
14838 2020-05-05 Michael Meissner <meissner@linux.ibm.com>
14839
14840 * config/rs6000/rs6000-builtin.def: Delete changes meant for a
14841 private branch.
14842 * config/rs6000/rs6000-c.c: Likewise.
14843 * config/rs6000/rs6000-call.c: Likewise.
14844 * config/rs6000/rs6000.c: Likewise.
14845
14846 2020-05-05 Sebastian Huber <sebastian.huber@embedded-brains.de>
14847
14848 * config/rtems.h (RTEMS_STARTFILE_SPEC): Define if undefined.
14849 (RTEMS_ENDFILE_SPEC): Likewise.
14850 (STARTFILE_SPEC): Update comment. Add RTEMS_STARTFILE_SPEC.
14851 (ENDFILE_SPEC): Add RTEMS_ENDFILE_SPEC.
14852 (LIB_SPECS): Support -nodefaultlibs option.
14853 * config/or1k/rtems.h (RTEMS_STARTFILE_SPEC): Define.
14854 (RTEMS_ENDFILE_SPEC): Likewise.
14855 * config/rs6000/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
14856 (RTEMS_ENDFILE_SPEC): Likewise.
14857 * config/v850/rtems.h (RTEMS_STARTFILE_SPEC): Likewise.
14858 (RTEMS_ENDFILE_SPEC): Likewise.
14859
14860 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
14861
14862 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Remove.
14863 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Remove.
14864
14865 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
14866
14867 * config/pru/pru.h: Mark R3.w0 as caller saved.
14868
14869 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
14870
14871 * config/pru/pru.c (pru_emit_doloop): Use new gen_doloop_end_internal
14872 and gen_doloop_begin_internal.
14873 (pru_reorg_loop): Use gen_pruloop with mode.
14874 * config/pru/pru.md: Use new @insn syntax.
14875
14876 2020-05-05 Dimitar Dimitrov <dimitar@dinux.eu>
14877
14878 * config/pru/pru.c (pru_print_operand): Fix fall through comment.
14879
14880 2020-05-05 Uroš Bizjak <ubizjak@gmail.com>
14881
14882 * config/i386/i386.md (fixuns_trunc<mode>si2): Use
14883 "clobber (scratch:M)" instad of "clobber (match_scratch:M N)".
14884 (addqi3_cconly_overflow): Ditto.
14885 (umulv<mode>4): Ditto.
14886 (<s>mul<mode>3_highpart): Ditto.
14887 (tls_global_dynamic_32): Ditto.
14888 (tls_local_dynamic_base_32): Ditto.
14889 (atanxf2): Ditto.
14890 (asinxf2): Ditto.
14891 (acosxf2): Ditto.
14892 (logxf2): Ditto.
14893 (log10xf2): Ditto.
14894 (log2xf2): Ditto.
14895 (*adddi_4): Remove "m" constraint from scratch operand.
14896 (*add<mode>_4): Ditto.
14897
14898 2020-05-05 Jakub Jelinek <jakub@redhat.com>
14899
14900 PR rtl-optimization/94516
14901 * postreload.c (reload_cse_simplify): When replacing sp = sp + const
14902 with sp = reg, add REG_EQUAL note with sp + const.
14903 * combine-stack-adj.c (try_apply_stack_adjustment): Change return
14904 type from int to bool. Add LIVE and OTHER_INSN arguments. Undo
14905 postreload sp = sp + const to sp = reg optimization if needed and
14906 possible.
14907 (combine_stack_adjustments_for_block): Add LIVE argument. Handle
14908 reg = sp insn with sp + const REG_EQUAL note. Adjust
14909 try_apply_stack_adjustment caller, call
14910 df_simulate_initialize_forwards and df_simulate_one_insn_forwards.
14911 (combine_stack_adjustments): Allocate and free LIVE bitmap,
14912 adjust combine_stack_adjustments_for_block caller.
14913
14914 2020-05-05 Martin Liska <mliska@suse.cz>
14915
14916 PR gcov-profile/93623
14917 * tree-cfg.c (stmt_can_terminate_bb_p): Update comment to reflect
14918 reality.
14919
14920 2020-05-05 Martin Liska <mliska@suse.cz>
14921
14922 * opt-functions.awk (opt_args_non_empty): New function.
14923 * opt-read.awk: Use the function for various option arguments.
14924
14925 2020-05-05 Martin Liska <mliska@suse.cz>
14926
14927 PR driver/94330
14928 * lto-wrapper.c (run_gcc): When using -flto=jobserver,
14929 report warning when the jobserver is not detected.
14930
14931 2020-05-05 Martin Liska <mliska@suse.cz>
14932
14933 PR gcov-profile/94636
14934 * gcov.c (main): Print total lines summary at the end.
14935 (generate_results): Expect file_name always being non-null.
14936 Print newline after intermediate file is printed in order to align with
14937 what we do for normal files.
14938
14939 2020-05-05 Martin Liska <mliska@suse.cz>
14940
14941 * dumpfile.c (dump_switch_p): Change return type
14942 and print option suggestion.
14943 * dumpfile.h: Change return type.
14944 * opts-global.c (handle_common_deferred_options):
14945 Move error into dump_switch_p function.
14946
14947 2020-05-05 Martin Liska <mliska@suse.cz>
14948
14949 PR c/92472
14950 * alloc-pool.h: Use const for some arguments.
14951 * bitmap.h: Likewise.
14952 * mem-stats.h: Likewise.
14953 * sese.h (get_entry_bb): Likewise.
14954 (get_exit_bb): Likewise.
14955
14956 2020-05-05 Richard Biener <rguenther@suse.de>
14957
14958 * tree-vect-slp.c (struct vdhs_data): New.
14959 (vect_detect_hybrid_slp): New walker.
14960 (vect_detect_hybrid_slp): Rewrite.
14961
14962 2020-05-05 Richard Biener <rguenther@suse.de>
14963
14964 PR ipa/94947
14965 * tree-ssa-structalias.c (ipa_pta_execute): Use
14966 varpool_node::externally_visible_p ().
14967 (refered_from_nonlocal_var): Likewise.
14968
14969 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
14970
14971 * gcc.c (LTO_PLUGIN_SPEC): Define if not already.
14972 (LINK_PLUGIN_SPEC): Execute LTO_PLUGIN_SPEC.
14973 * config/vxworks.h (LTO_PLUGIN_SPEC): Define.
14974
14975 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
14976
14977 * gimplify.c (gimplify_init_constructor): Do not put the constructor
14978 into static memory if it is not complete.
14979
14980 2020-05-05 Richard Biener <rguenther@suse.de>
14981
14982 PR tree-optimization/94949
14983 * tree-ssa-loop-im.c (execute_sm): Check whether we use
14984 the multithreaded model or always compute the stored value
14985 before eliding a load.
14986
14987 2020-05-05 Alex Coplan <alex.coplan@arm.com>
14988
14989 * config/aarch64/aarch64.md (*one_cmpl_zero_extend): New.
14990
14991 2020-05-05 Jakub Jelinek <jakub@redhat.com>
14992
14993 PR tree-optimization/94800
14994 * match.pd (X + (X << C) to X * (1 + (1 << C)),
14995 (X << C1) + (X << C2) to X * ((1 << C1) + (1 << C2))): New
14996 canonicalizations.
14997
14998 PR target/94942
14999 * config/i386/mmx.md (*vec_dupv4hi): Use xYw constraints instead of Yv.
15000
15001 PR tree-optimization/94914
15002 * match.pd ((((type)A * B) >> prec) != 0 to .MUL_OVERFLOW(A, B) != 0):
15003 New simplification.
15004
15005 2020-05-05 Uroš Bizjak <ubizjak@gmail.com>
15006
15007 * config/i386/i386.md (*testqi_ext_3): Use
15008 int_nonimmediate_operand instead of manual mode checks.
15009 (*x86_mov<SWI48:mode>cc_0_m1_neg_leu<SWI:mode>):
15010 Use int_nonimmediate_operand predicate. Rewrite
15011 define_insn_and_split pattern to a combine pass splitter.
15012
15013 2020-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15014
15015 * configure.ac <i[34567]86-*-*>: Add --32 to tls_as_opt on Solaris.
15016 * configure: Regenerate.
15017
15018 2020-05-05 Jakub Jelinek <jakub@redhat.com>
15019
15020 PR target/94460
15021 * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
15022 ssse3_ph<plusminus_mnemonic>wv8hi3, ssse3_ph<plusminus_mnemonic>wv4hi3,
15023 avx2_ph<plusminus_mnemonic>dv8si3, ssse3_ph<plusminus_mnemonic>dv4si3,
15024 ssse3_ph<plusminus_mnemonic>dv2si3): Simplify RTL patterns.
15025
15026 2020-05-04 Clement Chigot <clement.chigot@atos.net>
15027 David Edelsohn <dje.gcc@gmail.com>
15028
15029 * config/rs6000/rs6000-call.c (rs6000_init_builtins): Override explicit
15030 for fmodl, frexpl, ldexpl and modfl builtins.
15031
15032 2020-05-04 Richard Sandiford <richard.sandiford@arm.com>
15033
15034 PR middle-end/94941
15035 * internal-fn.c (expand_load_lanes_optab_fn): Emit a move if the
15036 chosen lhs is different from the gcall lhs.
15037 (expand_mask_load_optab_fn): Likewise.
15038 (expand_gather_load_optab_fn): Likewise.
15039
15040 2020-05-04 Uroš Bizjak <ubizjak@gmail.com>
15041
15042 PR target/94795
15043 * config/i386/i386.md (*neg<mode>_ccc): New insn pattern.
15044 (EQ compare->LTU compare splitter): New splitter.
15045 (NE compare->NEG splitter): Ditto.
15046
15047 2020-05-04 Marek Polacek <polacek@redhat.com>
15048
15049 Revert:
15050 2020-04-30 Marek Polacek <polacek@redhat.com>
15051
15052 PR c++/94775
15053 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
15054 (check_aligned_type): Check if TYPE_USER_ALIGN match.
15055
15056 2020-05-04 Richard Biener <rguenther@suse.de>
15057
15058 PR tree-optimization/93891
15059 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fall back to
15060 the original reference tree for assessing access alignment.
15061
15062 2020-05-04 Richard Biener <rguenther@suse.de>
15063
15064 PR tree-optimization/39612
15065 * tree-ssa-loop-im.c (im_mem_ref::loaded): New member.
15066 (set_ref_loaded_in_loop): New.
15067 (mark_ref_loaded): Likewise.
15068 (gather_mem_refs_stmt): Call mark_ref_loaded for loads.
15069 (execute_sm): Avoid issueing a load when it was not there.
15070 (execute_sm_if_changed): Avoid issueing warnings for the
15071 conditional store.
15072
15073 2020-05-04 Martin Jambor <mjambor@suse.cz>
15074
15075 PR ipa/93385
15076 * tree-inline.c (tree_function_versioning): Leave any type conversion
15077 of replacements to setup_one_parameter and its friend
15078 force_value_to_type.
15079
15080 2020-05-04 Uroš Bizjak <ubizjak@gmail.com>
15081
15082 PR target/94650
15083 * config/i386/predicates.md (shr_comparison_operator): New predicate.
15084 * config/i386/i386.md (compare->shr splitter): New splitters.
15085
15086 2020-05-04 Jakub Jelinek <jakub@redhat.com>
15087
15088 PR tree-optimization/94718
15089 * match.pd ((X < 0) != (Y < 0) into (X ^ Y) < 0): New simplification.
15090
15091 PR tree-optimization/94718
15092 * match.pd (bitop (convert @0) (convert? @1)): For GIMPLE, if we can,
15093 replace two nop conversions on bit_{and,ior,xor} argument
15094 and result with just one conversion on the result or another argument.
15095
15096 PR tree-optimization/94718
15097 * fold-const.c (fold_binary_loc): Move (X & C) eqne (Y & C)
15098 -> (X ^ Y) & C eqne 0 optimization to ...
15099 * match.pd ((X & C) op (Y & C) into (X ^ Y) & C op 0): ... here.
15100
15101 * opts.c (get_option_html_page): Instead of hardcoding a list of
15102 options common between C/C++ and Fortran only use gfortran/
15103 documentation for warnings that have CL_Fortran set but not
15104 CL_C or CL_CXX.
15105
15106 2020-05-03 Uroš Bizjak <ubizjak@gmail.com>
15107
15108 * config/i386/i386-expand.c (ix86_expand_int_movcc):
15109 Use plus_constant instead of gen_rtx_PLUS with GEN_INT.
15110 (emit_memmov): Ditto.
15111 (emit_memset): Ditto.
15112 (ix86_expand_strlensi_unroll_1): Ditto.
15113 (release_scratch_register_on_entry): Ditto.
15114 (gen_frame_set): Ditto.
15115 (ix86_emit_restore_reg_using_pop): Ditto.
15116 (ix86_emit_outlined_ms2sysv_restore): Ditto.
15117 (ix86_expand_epilogue): Ditto.
15118 (ix86_expand_split_stack_prologue): Ditto.
15119 * config/i386/i386.md (push immediate splitter): Ditto.
15120 (strmov): Ditto.
15121 (strset): Ditto.
15122
15123 2020-05-02 Iain Sandoe <iain@sandoe.co.uk>
15124
15125 PR translation/93861
15126 * config/darwin-driver.c (darwin_driver_init): Adjust spelling in
15127 a warning.
15128
15129 2020-05-02 Jakub Jelinek <jakub@redhat.com>
15130
15131 * config/tilegx/tilegx.md
15132 (insn_stnt<I124MODE:n>_add<I48MODE:bitsuffix>): Use <I124MODE:n>
15133 rather than just <n>.
15134
15135 2020-05-01 H.J. Lu <hongjiu.lu@intel.com>
15136
15137 PR target/93492
15138 * cfgexpand.c (pass_expand::execute): Set crtl->patch_area_size
15139 and crtl->patch_area_entry.
15140 * emit-rtl.h (rtl_data): Add patch_area_size and patch_area_entry.
15141 * opts.c (common_handle_option): Limit
15142 function_entry_patch_area_size and function_entry_patch_area_start
15143 to USHRT_MAX. Fix a typo in error message.
15144 * varasm.c (assemble_start_function): Use crtl->patch_area_size
15145 and crtl->patch_area_entry.
15146 * doc/invoke.texi: Document the maximum value for
15147 -fpatchable-function-entry.
15148
15149 2020-05-01 Iain Sandoe <iain@sandoe.co.uk>
15150
15151 * config/i386/darwin.h: Repair SUBTARGET_INIT_BUILTINS.
15152 Override SUBTARGET_SHADOW_OFFSET macro.
15153
15154 2020-05-01 Andreas Tobler <andreast@gcc.gnu.org>
15155
15156 * config/i386/i386.h: Define a new macro: SUBTARGET_SHADOW_OFFSET.
15157 * config/i386/i386.c (ix86_asan_shadow_offset): Use this macro.
15158 * config/i386/darwin.h: Override the SUBTARGET_SHADOW_OFFSET macro.
15159 * config/i386/freebsd.h: Likewise.
15160 * config/freebsd.h (LIBASAN_EARLY_SPEC): Define.
15161 LIBTSAN_EARLY_SPEC): Likewise. (LIBLSAN_EARLY_SPEC): Likewise.
15162
15163 2020-04-30 Alexandre Oliva <oliva@adacore.com>
15164
15165 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15166 the newly-introduced fileio effective target.
15167
15168 2020-04-30 Richard Sandiford <richard.sandiford@arm.com>
15169
15170 PR rtl-optimization/94740
15171 * cse.c (cse_process_notes_1): Replace with...
15172 (cse_process_note_1): ...this new function, acting as a
15173 simplify_replace_fn_rtx callback to process_note. Handle only
15174 REGs and MEMs directly. Validate the MEM if cse_process_note
15175 changes its address.
15176 (cse_process_notes): Replace with...
15177 (cse_process_note): ...this new function.
15178 (cse_extended_basic_block): Update accordingly, iterating over
15179 the register notes and passing individual notes to cse_process_note.
15180
15181 2020-04-30 Carl Love <cel@us.ibm.com>
15182
15183 * config/rs6000/emmintrin.h (_mm_movemask_epi8): Fix comment.
15184
15185 2020-04-30 Martin Jambor <mjambor@suse.cz>
15186
15187 PR ipa/94856
15188 * cgraph.c (clone_of_p): Also consider thunks whih had their bodies
15189 saved by the inliner and thunks which had their call inlined.
15190 * ipa-inline-transform.c (save_inline_function_body): Fill in
15191 former_clone_of of new body holders.
15192
15193 2020-04-30 Jakub Jelinek <jakub@redhat.com>
15194
15195 * BASE-VER: Set to 11.0.0.
15196
15197 2020-04-30 Jonathan Wakely <jwakely@redhat.com>
15198
15199 * pretty-print.c (pp_take_prefix): Fix spelling in comment.
15200
15201 2020-04-30 Marek Polacek <polacek@redhat.com>
15202
15203 PR c++/94775
15204 * tree.c (check_base_type): Return true only if TYPE_USER_ALIGN match.
15205 (check_aligned_type): Check if TYPE_USER_ALIGN match.
15206
15207 2020-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15208
15209 * config/aarch64/aarch64.h (TARGET_OUTLINE_ATOMICS): Define.
15210 * config/aarch64/aarch64.opt (moutline-atomics): Change to Int variable.
15211 * doc/invoke.texi (moutline-atomics): Document as on by default.
15212
15213 2020-04-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
15214
15215 PR target/94748
15216 * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Remove
15217 the check for NOTE_INSN_DELETED_LABEL.
15218
15219 2020-04-30 Jakub Jelinek <jakub@redhat.com>
15220
15221 * configure.ac (--with-documentation-root-url,
15222 --with-changes-root-url): Diagnose URL not ending with /,
15223 use AC_DEFINE_UNQUOTED instead of AC_SUBST.
15224 * opts.h (get_changes_url): Remove.
15225 * opts.c (get_changes_url): Remove.
15226 * Makefile.in (CFLAGS-opts.o): Don't add -DDOCUMENTATION_ROOT_URL
15227 or -DCHANGES_ROOT_URL.
15228 * doc/install.texi (--with-documentation-root-url,
15229 --with-changes-root-url): Document.
15230 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Don't call
15231 get_changes_url and free, change url variable type to const char * and
15232 set it to CHANGES_ROOT_URL "gcc-10/changes.html#empty_base".
15233 * config/s390/s390.c (s390_function_arg_vector,
15234 s390_function_arg_float): Likewise.
15235 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
15236 Likewise.
15237 * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
15238 Likewise.
15239 * config.in: Regenerate.
15240 * configure: Regenerate.
15241
15242 2020-04-30 Christophe Lyon <christophe.lyon@linaro.org>
15243
15244 PR target/57002
15245 * config/arm/arm.c (isr_attribute_args): Remove duplicate entries.
15246
15247 2020-04-30 Andreas Krebbel <krebbel@linux.ibm.com>
15248
15249 * config/s390/constraints.md ("j>f", "jb4"): New constraints.
15250 * config/s390/vecintrin.h (vec_load_len_r, vec_store_len_r): Fix
15251 macro definitions.
15252 * config/s390/vx-builtins.md ("vlrlrv16qi", "vstrlrv16qi"): Add a
15253 separate expander.
15254 ("*vlrlrv16qi", "*vstrlrv16qi"): Add alternative for vl/vst.
15255 Change constraint for vlrl/vstrl to jb4.
15256
15257 2020-04-30 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
15258
15259 * var-tracking.c (vt_initialize): Move variables pre and post
15260 into inner block and initialize both in order to fix warning
15261 about uninitialized use. Remove unnecessary checks for
15262 frame_pointer_needed.
15263
15264 2020-04-30 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
15265
15266 * toplev.c (output_stack_usage_1): Ensure that first
15267 argument to fprintf is not null.
15268
15269 2020-04-29 Jakub Jelinek <jakub@redhat.com>
15270
15271 * configure.ac (-with-changes-root-url): New configure option,
15272 defaulting to https://gcc.gnu.org/.
15273 * Makefile.in (CFLAGS-opts.o): Define CHANGES_ROOT_URL for
15274 opts.c.
15275 * pretty-print.c (get_end_url_string): New function.
15276 (pp_format): Handle %{ and %} for URLs.
15277 (pp_begin_url): Use pp_string instead of pp_printf.
15278 (pp_end_url): Use get_end_url_string.
15279 * opts.h (get_changes_url): Declare.
15280 * opts.c (get_changes_url): New function.
15281 * config/rs6000/rs6000-call.c: Include opts.h.
15282 (rs6000_discover_homogeneous_aggregate): Use %{in GCC 10.1%} instead
15283 of just in GCC 10.1 in diagnostics and add URL.
15284 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Likewise.
15285 * config/aarch64/aarch64.c (aarch64_vfp_is_call_or_return_candidate):
15286 Likewise.
15287 * config/s390/s390.c (s390_function_arg_vector,
15288 s390_function_arg_float): Likewise.
15289 * configure: Regenerated.
15290
15291 PR target/94704
15292 * config/s390/s390.c (s390_function_arg_vector,
15293 s390_function_arg_float): Use DECL_FIELD_ABI_IGNORED instead of
15294 cxx17_empty_base_field_p. In -Wpsabi diagnostics use the type
15295 passed to the function rather than the type of the single element.
15296 Rename cxx17_empty_base_seen variable to empty_base_seen, change
15297 type to int, and adjust diagnostics depending on if the field
15298 has [[no_unique_attribute]] or not.
15299
15300 PR target/94832
15301 * config/i386/avx512bwintrin.h (_mm512_alignr_epi8,
15302 _mm512_mask_alignr_epi8, _mm512_maskz_alignr_epi8): Wrap macro operands
15303 used in casts into parens.
15304 * config/i386/avx512fintrin.h (_mm512_cvt_roundps_ph, _mm512_cvtps_ph,
15305 _mm512_mask_cvt_roundps_ph, _mm512_mask_cvtps_ph,
15306 _mm512_maskz_cvt_roundps_ph, _mm512_maskz_cvtps_ph,
15307 _mm512_mask_cmp_epi64_mask, _mm512_mask_cmp_epi32_mask,
15308 _mm512_mask_cmp_epu64_mask, _mm512_mask_cmp_epu32_mask,
15309 _mm512_mask_cmp_round_pd_mask, _mm512_mask_cmp_round_ps_mask,
15310 _mm512_mask_cmp_pd_mask, _mm512_mask_cmp_ps_mask): Likewise.
15311 * config/i386/avx512vlbwintrin.h (_mm256_mask_alignr_epi8,
15312 _mm256_maskz_alignr_epi8, _mm_mask_alignr_epi8, _mm_maskz_alignr_epi8,
15313 _mm256_mask_cmp_epu8_mask): Likewise.
15314 * config/i386/avx512vlintrin.h (_mm_mask_cvtps_ph, _mm_maskz_cvtps_ph,
15315 _mm256_mask_cvtps_ph, _mm256_maskz_cvtps_ph): Likewise.
15316 * config/i386/f16cintrin.h (_mm_cvtps_ph, _mm256_cvtps_ph): Likewise.
15317 * config/i386/shaintrin.h (_mm_sha1rnds4_epu32): Likewise.
15318
15319 PR target/94832
15320 * config/i386/avx2intrin.h (_mm_mask_i32gather_pd,
15321 _mm256_mask_i32gather_pd, _mm_mask_i64gather_pd,
15322 _mm256_mask_i64gather_pd, _mm_mask_i32gather_ps,
15323 _mm256_mask_i32gather_ps, _mm_mask_i64gather_ps,
15324 _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
15325 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
15326 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
15327 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
15328 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
15329 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
15330 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
15331 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
15332 _mm256_mask_i64gather_epi32): Surround macro parameter uses with
15333 parens.
15334 (_mm_i32gather_pd, _mm256_i32gather_pd, _mm_i64gather_pd,
15335 _mm256_i64gather_pd, _mm_i32gather_ps, _mm256_i32gather_ps,
15336 _mm_i64gather_ps, _mm256_i64gather_ps): Likewise. Don't use
15337 as mask vector containing -1.0 or -1.0f elts, but instead vector
15338 with all bits set using _mm*_cmpeq_p? with zero operands.
15339 * config/i386/avx512fintrin.h (_mm512_i32gather_ps,
15340 _mm512_mask_i32gather_ps, _mm512_i32gather_pd,
15341 _mm512_mask_i32gather_pd, _mm512_i64gather_ps,
15342 _mm512_mask_i64gather_ps, _mm512_i64gather_pd,
15343 _mm512_mask_i64gather_pd, _mm512_i32gather_epi32,
15344 _mm512_mask_i32gather_epi32, _mm512_i32gather_epi64,
15345 _mm512_mask_i32gather_epi64, _mm512_i64gather_epi32,
15346 _mm512_mask_i64gather_epi32, _mm512_i64gather_epi64,
15347 _mm512_mask_i64gather_epi64, _mm512_i32scatter_ps,
15348 _mm512_mask_i32scatter_ps, _mm512_i32scatter_pd,
15349 _mm512_mask_i32scatter_pd, _mm512_i64scatter_ps,
15350 _mm512_mask_i64scatter_ps, _mm512_i64scatter_pd,
15351 _mm512_mask_i64scatter_pd, _mm512_i32scatter_epi32,
15352 _mm512_mask_i32scatter_epi32, _mm512_i32scatter_epi64,
15353 _mm512_mask_i32scatter_epi64, _mm512_i64scatter_epi32,
15354 _mm512_mask_i64scatter_epi32, _mm512_i64scatter_epi64,
15355 _mm512_mask_i64scatter_epi64): Surround macro parameter uses with
15356 parens.
15357 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
15358 _mm512_prefetch_i32gather_ps, _mm512_mask_prefetch_i32gather_pd,
15359 _mm512_mask_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
15360 _mm512_prefetch_i64gather_ps, _mm512_mask_prefetch_i64gather_pd,
15361 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
15362 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
15363 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
15364 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
15365 _mm512_mask_prefetch_i64scatter_ps): Likewise.
15366 * config/i386/avx512vlintrin.h (_mm256_mmask_i32gather_ps,
15367 _mm_mmask_i32gather_ps, _mm256_mmask_i32gather_pd,
15368 _mm_mmask_i32gather_pd, _mm256_mmask_i64gather_ps,
15369 _mm_mmask_i64gather_ps, _mm256_mmask_i64gather_pd,
15370 _mm_mmask_i64gather_pd, _mm256_mmask_i32gather_epi32,
15371 _mm_mmask_i32gather_epi32, _mm256_mmask_i32gather_epi64,
15372 _mm_mmask_i32gather_epi64, _mm256_mmask_i64gather_epi32,
15373 _mm_mmask_i64gather_epi32, _mm256_mmask_i64gather_epi64,
15374 _mm_mmask_i64gather_epi64, _mm256_i32scatter_ps,
15375 _mm256_mask_i32scatter_ps, _mm_i32scatter_ps, _mm_mask_i32scatter_ps,
15376 _mm256_i32scatter_pd, _mm256_mask_i32scatter_pd, _mm_i32scatter_pd,
15377 _mm_mask_i32scatter_pd, _mm256_i64scatter_ps,
15378 _mm256_mask_i64scatter_ps, _mm_i64scatter_ps, _mm_mask_i64scatter_ps,
15379 _mm256_i64scatter_pd, _mm256_mask_i64scatter_pd, _mm_i64scatter_pd,
15380 _mm_mask_i64scatter_pd, _mm256_i32scatter_epi32,
15381 _mm256_mask_i32scatter_epi32, _mm_i32scatter_epi32,
15382 _mm_mask_i32scatter_epi32, _mm256_i32scatter_epi64,
15383 _mm256_mask_i32scatter_epi64, _mm_i32scatter_epi64,
15384 _mm_mask_i32scatter_epi64, _mm256_i64scatter_epi32,
15385 _mm256_mask_i64scatter_epi32, _mm_i64scatter_epi32,
15386 _mm_mask_i64scatter_epi32, _mm256_i64scatter_epi64,
15387 _mm256_mask_i64scatter_epi64, _mm_i64scatter_epi64,
15388 _mm_mask_i64scatter_epi64): Likewise.
15389
15390 2020-04-29 Jeff Law <law@redhat.com>
15391
15392 * config/h8300/h8300.md (H8/SX div patterns): All H8/SX specific
15393 division instructions are 4 bytes long.
15394
15395 2020-04-29 Jakub Jelinek <jakub@redhat.com>
15396
15397 PR target/94826
15398 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Use
15399 TARGET_EXPR instead of MODIFY_EXPR for first assignment to
15400 fenv_var, fenv_clear and old_fenv variables. For fenv_addr
15401 take address of TARGET_EXPR of fenv_var with void_node initializer.
15402 Formatting fixes.
15403
15404 2020-04-29 Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
15405
15406 PR tree-optimization/94774
15407 * gimple-ssa-sprintf.c (try_substitute_return_value): Initialize
15408 variable retval.
15409
15410 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
15411
15412 * calls.h (cxx17_empty_base_field_p): Turn into a function declaration.
15413 * calls.c (cxx17_empty_base_field_p): New function. Check
15414 DECL_ARTIFICIAL and RECORD_OR_UNION_TYPE_P in addition to the
15415 previous checks.
15416
15417 2020-04-29 H.J. Lu <hongjiu.lu@intel.com>
15418
15419 PR target/93654
15420 * config/i386/i386-options.c (ix86_set_indirect_branch_type):
15421 Allow -fcf-protection with -mindirect-branch=thunk-extern and
15422 -mfunction-return=thunk-extern.
15423 * doc/invoke.texi: Update notes for -fcf-protection=branch with
15424 -mindirect-branch=thunk-extern and -mindirect-return=thunk-extern.
15425
15426 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
15427
15428 * doc/sourcebuild.texi: Add missing arm_arch_v8a_hard_ok anchor.
15429
15430 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
15431
15432 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Use
15433 TARGET_EXPR instead of MODIFY_EXPR for the first assignments to
15434 fenv_var and new_fenv_var.
15435
15436 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
15437
15438 * doc/sourcebuild.texi (arm_arch_v8a_hard_ok): Document new
15439 effective-target keyword.
15440 (arm_arch_v8a_hard_multilib): Likewise.
15441 (arm_arch_v8a_hard): Document new dg-add-options keyword.
15442 * config/arm/arm.c (arm_return_in_memory): Note that the APCS
15443 code is deprecated and has not been updated to handle
15444 DECL_FIELD_ABI_IGNORED.
15445 (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
15446 (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
15447 (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
15448 avoid_cxx17_empty_base with a pointer to a bitmask. Ignore fields
15449 whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
15450 something actually is a HFA or HVA. Record whether we see a
15451 [[no_unique_address]] field that previous GCCs would not have
15452 ignored in this way.
15453 (aapcs_vfp_is_call_or_return_candidate): Update the calls to
15454 aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
15455 [[no_unique_address]] case. Use TYPE_MAIN_VARIANT in the
15456 diagnostic messages.
15457 (arm_needs_doubleword_align): Add a comment explaining why we
15458 consider even zero-sized fields.
15459
15460 2020-04-29 Richard Biener <rguenther@suse.de>
15461 Li Zekun <lizekun1@huawei.com>
15462
15463 PR lto/94822
15464 * tree.c (component_ref_size): Guard against error_mark_node
15465 DECL_INITIAL as it happens with LTO.
15466
15467 2020-04-29 Richard Sandiford <richard.sandiford@arm.com>
15468
15469 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add a
15470 comment explaining why we consider even zero-sized fields.
15471 (WARN_PSABI_EMPTY_CXX17_BASE): New constant.
15472 (WARN_PSABI_NO_UNIQUE_ADDRESS): Likewise.
15473 (aapcs_vfp_sub_candidate): Replace the boolean pointer parameter
15474 avoid_cxx17_empty_base with a pointer to a bitmask. Ignore fields
15475 whose DECL_FIELD_ABI_IGNORED bit is set when determining whether
15476 something actually is a HFA or HVA. Record whether we see a
15477 [[no_unique_address]] field that previous GCCs would not have
15478 ignored in this way.
15479 (aarch64_vfp_is_call_or_return_candidate): Add a parameter to say
15480 whether diagnostics should be suppressed. Update the calls to
15481 aapcs_vfp_sub_candidate and report a -Wpsabi warning for the
15482 [[no_unique_address]] case.
15483 (aarch64_return_in_msb): Update call accordingly, never silencing
15484 diagnostics.
15485 (aarch64_function_value): Likewise.
15486 (aarch64_return_in_memory_1): Likewise.
15487 (aarch64_init_cumulative_args): Likewise.
15488 (aarch64_gimplify_va_arg_expr): Likewise.
15489 (aarch64_pass_by_reference_1): Take a CUMULATIVE_ARGS pointer and
15490 use it to decide whether arch64_vfp_is_call_or_return_candidate
15491 should be silent.
15492 (aarch64_pass_by_reference): Update calls accordingly.
15493 (aarch64_vfp_is_call_candidate): Use the CUMULATIVE_ARGS argument
15494 to decide whether arch64_vfp_is_call_or_return_candidate should be
15495 silent.
15496
15497 2020-04-29 Haijian Zhang <z.zhanghaijian@huawei.com>
15498
15499 PR target/94820
15500 * config/aarch64/aarch64-builtins.c
15501 (aarch64_atomic_assign_expand_fenv): Use TARGET_EXPR instead of
15502 MODIFY_EXPR for first assignment to fenv_cr, fenv_sr and
15503 new_fenv_var.
15504
15505 2020-04-29 Thomas Schwinge <thomas@codesourcery.com>
15506
15507 * configure.ac <$enable_offload_targets>: Do parsing as done
15508 elsewhere.
15509 * configure: Regenerate.
15510
15511 * configure.ac <$enable_offload_targets>: 'amdgcn' is 'gcn'.
15512 * configure: Regenerate.
15513
15514 PR target/94279
15515 * rtlanal.c (set_noop_p): Handle non-constant selectors.
15516
15517 PR target/94282
15518 * common/config/gcn/gcn-common.c (gcn_except_unwind_info): New
15519 function.
15520 (TARGET_EXCEPT_UNWIND_INFO): Define.
15521
15522 2020-04-29 Jakub Jelinek <jakub@redhat.com>
15523
15524 PR target/94248
15525 * config/gcn/gcn.md (*mov<mode>_insn): Use
15526 'reg_overlap_mentioned_p' to check for overlap.
15527
15528 PR target/94706
15529 * config/ia64/ia64.c (hfa_element_mode): Use DECL_FIELD_ABI_IGNORED
15530 instead of cxx17_empty_base_field_p.
15531
15532 PR target/94707
15533 * tree-core.h (tree_decl_common): Note decl_flag_0 used for
15534 DECL_FIELD_ABI_IGNORED.
15535 * tree.h (DECL_FIELD_ABI_IGNORED): Define.
15536 * calls.h (cxx17_empty_base_field_p): Change into a temporary
15537 macro, check DECL_FIELD_ABI_IGNORED flag with no "no_unique_address"
15538 attribute.
15539 * calls.c (cxx17_empty_base_field_p): Remove.
15540 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Handle
15541 DECL_FIELD_ABI_IGNORED.
15542 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
15543 * lto-streamer-out.c (hash_tree): Likewise.
15544 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Rename
15545 cxx17_empty_base_seen to empty_base_seen, change type to int *,
15546 adjust recursive calls, use DECL_FIELD_ABI_IGNORED instead of
15547 cxx17_empty_base_field_p, if "no_unique_address" attribute is
15548 present, propagate that to the caller too.
15549 (rs6000_discover_homogeneous_aggregate): Adjust
15550 rs6000_aggregate_candidate caller, emit different diagnostics
15551 when c++17 empty base fields are present and when empty
15552 [[no_unique_address]] fields are present.
15553 * config/rs6000/rs6000.c (rs6000_special_round_type_align,
15554 darwin_rs6000_special_round_type_align): Skip DECL_FIELD_ABI_IGNORED
15555 fields.
15556
15557 2020-04-29 Richard Biener <rguenther@suse.de>
15558
15559 * tree-ssa-loop-im.c (ref_always_accessed::operator ()):
15560 Just check whether the stmt stores.
15561
15562 2020-04-28 Alexandre Oliva <oliva@adacore.com>
15563
15564 PR target/94812
15565 * config/rs6000/rs6000.md (rs6000_mffsl): Copy result to
15566 output operand in emulation. Don't overwrite pseudos.
15567
15568 2020-04-28 Jeff Law <law@redhat.com>
15569
15570 * config/h8300/h8300.md (H8/SX mult patterns): All H8/SX specific
15571 multiply patterns are 4 bytes long.
15572
15573 2020-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15574
15575 * config/arm/arm-cpus.in (cortex-m55): Remove +nofp option.
15576 * doc/invoke.texi (Arm Options): Remove -mcpu=cortex-m55 from +nofp option.
15577
15578 2020-04-28 Matthew Malcomson <matthew.malcomson@arm.com>
15579 Jakub Jelinek <jakub@redhat.com>
15580
15581 PR target/94711
15582 * config/arm/arm.c (aapcs_vfp_sub_candidate): Account for C++17 empty
15583 base class artificial fields.
15584 (aapcs_vfp_is_call_or_return_candidate): Warn when PCS ABI
15585 decision is different after this fix.
15586
15587 2020-04-28 David Malcolm <dmalcolm@redhat.com>
15588
15589 PR analyzer/94447
15590 PR analyzer/94639
15591 PR analyzer/94732
15592 PR analyzer/94754
15593 * doc/invoke.texi (Static Analyzer Options): Remove
15594 -Wanalyzer-use-of-uninitialized-value.
15595 (-Wno-analyzer-use-of-uninitialized-value): Remove item.
15596
15597 2020-04-28 Jakub Jelinek <jakub@redhat.com>
15598
15599 PR tree-optimization/94809
15600 * tree.c (build_call_expr_internal_loc_array): Call
15601 process_call_operands.
15602
15603 2020-04-27 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
15604
15605 * config/aarch64/aarch64-cores.def (thunderx3t110): Add the chip name.
15606 * config/aarch64/aarch64-tune.md: Regenerate.
15607 * config/aarch64/aarch64.c (thunderx3t110_addrcost_table): Define.
15608 (thunderx3t110_regmove_cost): Likewise.
15609 (thunderx3t110_vector_cost): Likewise.
15610 (thunderx3t110_prefetch_tune): Likewise.
15611 (thunderx3t110_tunings): Likewise.
15612 * config/aarch64/aarch64-cost-tables.h (thunderx3t110_extra_costs):
15613 Define.
15614 * config/aarch64/thunderx3t110.md: New file.
15615 * config/aarch64/aarch64.md: Include thunderx3t110.md.
15616 * doc/invoke.texi (AArch64 options): Add thunderx3t110.
15617
15618 2020-04-28 Jakub Jelinek <jakub@redhat.com>
15619
15620 PR target/94704
15621 * config/s390/s390.c (s390_function_arg_vector,
15622 s390_function_arg_float): Emit -Wpsabi diagnostics if the ABI changed.
15623
15624 2020-04-28 Richard Sandiford <richard.sandiford@arm.com>
15625
15626 PR tree-optimization/94727
15627 * tree-vect-stmts.c (vect_is_simple_cond): If both comparison
15628 operands are invariant booleans, use the mask type associated with the
15629 STMT_VINFO_VECTYPE. Use !slp_node instead of !vectype to exclude SLP.
15630 (vectorizable_condition): Pass vectype unconditionally to
15631 vect_is_simple_cond.
15632
15633 2020-04-27 Jakub Jelinek <jakub@redhat.com>
15634
15635 PR target/94780
15636 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Use
15637 TARGET_EXPR instead of MODIFY_EXPR for first assignment to
15638 sw_var, exceptions_var, mxcsr_orig_var and mxcsr_mod_var.
15639
15640 2020-04-27 David Malcolm <dmalcolm@redhat.com>
15641
15642 PR 92830
15643 * configure.ac (DOCUMENTATION_ROOT_URL): Drop trailing "gcc/" from
15644 default value, so that it can by supplied by get_option_html_page.
15645 * configure: Regenerate.
15646 * opts.c: Include "selftest.h".
15647 (get_option_html_page): New function.
15648 (get_option_url): Use it. Reformat to place comments next to the
15649 expressions they refer to.
15650 (selftest::test_get_option_html_page): New.
15651 (selftest::opts_c_tests): New.
15652 * selftest-run-tests.c (selftest::run_tests): Call
15653 selftest::opts_c_tests.
15654 * selftest.h (selftest::opts_c_tests): New decl.
15655
15656 2020-04-27 Richard Sandiford <richard.sandiford@arm.com>
15657
15658 * config/arm/arm-builtins.c (arm_expand_builtin_args): Only apply
15659 UINTVAL to CONST_INTs.
15660
15661 2020-04-27 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15662
15663 * config/arm/constraints.md (e): Remove constraint.
15664 (Te): Define constraint.
15665 * config/arm/mve.md (vaddvq_<supf><mode>): Modify constraint in
15666 operand 0 from "e" to "Te".
15667 (vaddvaq_<supf><mode>): Likewise.
15668 (vaddvq_p_<supf><mode>): Likewise.
15669 (vmladavq_<supf><mode>): Likewise.
15670 (vmladavxq_s<mode>): Likewise.
15671 (vmlsdavq_s<mode>): Likewise.
15672 (vmlsdavxq_s<mode>): Likewise.
15673 (vaddvaq_p_<supf><mode>): Likewise.
15674 (vmladavaq_<supf><mode>): Likewise.
15675 (vmladavq_p_<supf><mode>): Likewise.
15676 (vmladavxq_p_s<mode>): Likewise.
15677 (vmlsdavq_p_s<mode>): Likewise.
15678 (vmlsdavxq_p_s<mode>): Likewise.
15679 (vmlsdavaxq_s<mode>): Likewise.
15680 (vmlsdavaq_s<mode>): Likewise.
15681 (vmladavaxq_s<mode>): Likewise.
15682 (vmladavaq_p_<supf><mode>): Likewise.
15683 (vmladavaxq_p_s<mode>): Likewise.
15684 (vmlsdavaq_p_s<mode>): Likewise.
15685 (vmlsdavaxq_p_s<mode>): Likewise.
15686
15687 2020-04-27 Andre Vieira <andre.simoesdiasvieira@arm.com>
15688
15689 * config/arm/arm.c (output_move_neon): Only get the first operand if
15690 addr is PLUS.
15691
15692 2020-04-27 Felix Yang <felix.yang@huawei.com>
15693
15694 PR tree-optimization/94784
15695 * tree-ssa-forwprop.c (simplify_vector_constructor): Flip the
15696 assert around so that it checks that the two vectors have equal
15697 TYPE_VECTOR_SUBPARTS and that converting the corresponding element
15698 types is a useless_type_conversion_p.
15699
15700 2020-04-27 Szabolcs Nagy <szabolcs.nagy@arm.com>
15701
15702 PR target/94515
15703 * dwarf2cfi.c (struct GTY): Add ra_mangled.
15704 (cfi_row_equal_p): Check ra_mangled.
15705 (dwarf2out_frame_debug_cfa_window_save): Remove the argument,
15706 this only handles the sparc logic now.
15707 (dwarf2out_frame_debug_cfa_toggle_ra_mangle): New function for
15708 the aarch64 specific logic.
15709 (dwarf2out_frame_debug): Update to use the new subroutines.
15710 (change_cfi_row): Check ra_mangled.
15711
15712 2020-04-27 Jakub Jelinek <jakub@redhat.com>
15713
15714 PR target/94704
15715 * config/s390/s390.c (s390_function_arg_vector,
15716 s390_function_arg_float): Ignore cxx17_empty_base_field_p fields.
15717
15718 2020-04-27 Jiufu Guo <guojiufu@cn.ibm.com>
15719
15720 * common/config/rs6000/rs6000-common.c
15721 (rs6000_option_optimization_table) [OPT_LEVELS_ALL]: Remove turn off
15722 -fweb.
15723 * config/rs6000/rs6000.c (rs6000_option_override_internal): Avoid to
15724 set flag_web.
15725
15726 2020-04-27 Martin Liska <mliska@suse.cz>
15727
15728 PR lto/94659
15729 * cgraph.h (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
15730 Do not remove ifunc_resolvers in remove unreachable nodes in LTO.
15731
15732 2020-04-27 Xiong Hu Luo <luoxhu@linux.ibm.com>
15733
15734 PR target/91518
15735 * config/rs6000/rs6000-logue.c (frame_pointer_needed_indeed):
15736 New variable.
15737 (rs6000_emit_prologue_components):
15738 Check with frame_pointer_needed_indeed.
15739 (rs6000_emit_epilogue_components): Likewise.
15740 (rs6000_emit_prologue): Likewise.
15741 (rs6000_emit_epilogue): Set frame_pointer_needed_indeed.
15742
15743 2020-04-25 David Edelsohn <dje.gcc@gmail.com>
15744
15745 * config/rs6000/rs6000-logue.c (rs6000_stack_info): Don't push a
15746 stack frame when debugging and flag_compare_debug is enabled.
15747
15748 2020-04-25 Michael Meissner <meissner@linux.ibm.com>
15749
15750 * config/rs6000/linux64.h (PCREL_SUPPORTED_BY_OS): Define to
15751 enable PC-relative addressing for -mcpu=future.
15752 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Move
15753 after OTHER_FUTURE_MASKS. Use OTHER_FUTURE_MASKS.
15754 * config/rs6000/rs6000.c (PCREL_SUPPORTED_BY_OS): If not defined,
15755 suppress PC-relative addressing.
15756 (rs6000_option_override_internal): Split up error messages
15757 checking for -mprefixed and -mpcrel. Enable -mpcrel if the target
15758 system supports it.
15759
15760 2020-04-25 Jakub Jelinek <jakub@redhat.com>
15761 Richard Biener <rguenther@suse.de>
15762
15763 PR tree-optimization/94734
15764 PR tree-optimization/89430
15765 * tree-ssa-phiopt.c: Include tree-eh.h.
15766 (cond_store_replacement): Return false if an automatic variable
15767 access could trap. If -fstore-data-races, don't return false
15768 just because an automatic variable is addressable.
15769
15770 2020-04-24 Andrew Stubbs <ams@codesourcery.com>
15771
15772 * config/gcn/gcn-valu.md (add<mode>_zext_dup2_exec): Fix merge
15773 of high-part.
15774 (add<mode>_sext_dup2_exec): Likewise.
15775
15776 2020-04-24 Segher Boessenkool <segher@kernel.crashing.org>
15777
15778 PR target/94710
15779 * config/rs6000/vector.md (vec_shr_<mode> for VEC_L): Correct little
15780 endian byteshift_val calculation.
15781
15782 2020-04-24 Andrew Stubbs <ams@codesourcery.com>
15783
15784 * config/gcn/gcn.md (*mov<mode>_insn): Only split post-reload.
15785
15786 2020-04-24 Richard Sandiford <richard.sandiford@arm.com>
15787
15788 * config/aarch64/arm_sve.h: Add a comment.
15789
15790 2020-04-24 Haijian Zhang <z.zhanghaijian@huawei.com>
15791
15792 PR rtl-optimization/94708
15793 * combine.c (simplify_if_then_else): Add check for
15794 !HONOR_NANS (mode) && !HONOR_SIGNED_ZEROS (mode).
15795
15796 2020-04-23 Martin Sebor <msebor@redhat.com>
15797
15798 PR driver/90983
15799 * common.opt (-Wno-frame-larger-than): New option.
15800 (-Wno-larger-than, -Wno-stack-usage): Same.
15801
15802 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
15803
15804 * config/gcn/gcn-valu.md (mov<mode>_exec): Swap the numbers on operands
15805 2 and 3.
15806 (mov<mode>_exec): Likewise.
15807 (trunc<vndi><mode>2_exec): Swap parameters to gen_mov<mode>_exec.
15808 (<convop><mode><vndi>2_exec): Likewise.
15809
15810 2019-04-23 Eric Botcazou <ebotcazou@adacore.com>
15811
15812 PR tree-optimization/94717
15813 * gimple-ssa-store-merging.c (try_coalesce_bswap): Return false if one
15814 of the stores doesn't have the same landing pad number as the first.
15815 (coalesce_immediate_stores): Do not try to coalesce the store using
15816 bswap if it doesn't have the same landing pad number as the first.
15817
15818 2020-04-23 Bill Schmidt <wschmidt@linux.ibm.com>
15819
15820 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15821 Replace outdated link to ELFv2 ABI.
15822
15823 2020-04-23 Jakub Jelinek <jakub@redhat.com>
15824
15825 PR target/94710
15826 * optabs.c (expand_vec_perm_const): For shift_amt const0_rtx
15827 just return v2.
15828
15829 PR middle-end/94724
15830 * tree.c (get_narrower): Instead of creating COMPOUND_EXPRs
15831 temporarily with non-final second operand and updating it later,
15832 push COMPOUND_EXPRs into a vector and process it in reverse,
15833 creating COMPOUND_EXPRs with the final operands.
15834
15835 2020-04-23 Szabolcs Nagy <szabolcs.nagy@arm.com>
15836
15837 PR target/94697
15838 * config/aarch64/aarch64-bti-insert.c (rest_of_insert_bti): Swap
15839 bti c and bti j handling.
15840
15841 2020-04-23 Andrew Stubbs <ams@codesourcery.com>
15842 Thomas Schwinge <thomas@codesourcery.com>
15843
15844 PR middle-end/93488
15845
15846 * omp-expand.c (expand_omp_target): Use force_gimple_operand_gsi on
15847 t_async and the wait arguments.
15848
15849 2020-04-23 Richard Sandiford <richard.sandiford@arm.com>
15850
15851 PR tree-optimization/94727
15852 * tree-vect-stmts.c (vectorizable_comparison): Use mask_type when
15853 comparing invariant scalar booleans.
15854
15855 2020-04-23 Matthew Malcomson <matthew.malcomson@arm.com>
15856 Jakub Jelinek <jakub@redhat.com>
15857
15858 PR target/94383
15859 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Account for C++17
15860 empty base class artificial fields.
15861 (aarch64_vfp_is_call_or_return_candidate): Warn when ABI PCS decision is
15862 different after this fix.
15863
15864 2020-04-23 Jakub Jelinek <jakub@redhat.com>
15865
15866 PR target/94707
15867 * config/rs6000/rs6000-call.c (rs6000_discover_homogeneous_aggregate):
15868 Use TYPE_UID (TYPE_MAIN_VARIANT (type)) instead of type to check
15869 if the same type has been diagnosed most recently already.
15870
15871 2020-04-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
15872
15873 * config/arm/arm_mve.h (__arm_vbicq_n_u16): Modify function parameter's
15874 datatype.
15875 (__arm_vbicq_n_s16): Likewise.
15876 (__arm_vbicq_n_u32): Likewise.
15877 (__arm_vbicq_n_s32): Likewise.
15878 (__arm_vbicq): Likewise.
15879 (__arm_vbicq_n_s16): Modify MVE polymorphic variant argument's datatype.
15880 (__arm_vbicq_n_s32): Likewise.
15881 (__arm_vbicq_n_u16): Likewise.
15882 (__arm_vbicq_n_u32): Likewise.
15883 (__arm_vdupq_m_n_s8): Likewise.
15884 (__arm_vdupq_m_n_s16): Likewise.
15885 (__arm_vdupq_m_n_s32): Likewise.
15886 (__arm_vdupq_m_n_u8): Likewise.
15887 (__arm_vdupq_m_n_u16): Likewise.
15888 (__arm_vdupq_m_n_u32): Likewise.
15889 (__arm_vdupq_m_n_f16): Likewise.
15890 (__arm_vdupq_m_n_f32): Likewise.
15891 (__arm_vldrhq_gather_offset_s16): Likewise.
15892 (__arm_vldrhq_gather_offset_s32): Likewise.
15893 (__arm_vldrhq_gather_offset_u16): Likewise.
15894 (__arm_vldrhq_gather_offset_u32): Likewise.
15895 (__arm_vldrhq_gather_offset_f16): Likewise.
15896 (__arm_vldrhq_gather_offset_z_s16): Likewise.
15897 (__arm_vldrhq_gather_offset_z_s32): Likewise.
15898 (__arm_vldrhq_gather_offset_z_u16): Likewise.
15899 (__arm_vldrhq_gather_offset_z_u32): Likewise.
15900 (__arm_vldrhq_gather_offset_z_f16): Likewise.
15901 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
15902 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
15903 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
15904 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
15905 (__arm_vldrhq_gather_shifted_offset_f16): Likewise.
15906 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
15907 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
15908 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
15909 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
15910 (__arm_vldrhq_gather_shifted_offset_z_f16): Likewise.
15911 (__arm_vldrwq_gather_offset_s32): Likewise.
15912 (__arm_vldrwq_gather_offset_u32): Likewise.
15913 (__arm_vldrwq_gather_offset_f32): Likewise.
15914 (__arm_vldrwq_gather_offset_z_s32): Likewise.
15915 (__arm_vldrwq_gather_offset_z_u32): Likewise.
15916 (__arm_vldrwq_gather_offset_z_f32): Likewise.
15917 (__arm_vldrwq_gather_shifted_offset_s32): Likewise.
15918 (__arm_vldrwq_gather_shifted_offset_u32): Likewise.
15919 (__arm_vldrwq_gather_shifted_offset_f32): Likewise.
15920 (__arm_vldrwq_gather_shifted_offset_z_s32): Likewise.
15921 (__arm_vldrwq_gather_shifted_offset_z_u32): Likewise.
15922 (__arm_vldrwq_gather_shifted_offset_z_f32): Likewise.
15923 (__arm_vdwdupq_x_n_u8): Likewise.
15924 (__arm_vdwdupq_x_n_u16): Likewise.
15925 (__arm_vdwdupq_x_n_u32): Likewise.
15926 (__arm_viwdupq_x_n_u8): Likewise.
15927 (__arm_viwdupq_x_n_u16): Likewise.
15928 (__arm_viwdupq_x_n_u32): Likewise.
15929 (__arm_vidupq_x_n_u8): Likewise.
15930 (__arm_vddupq_x_n_u8): Likewise.
15931 (__arm_vidupq_x_n_u16): Likewise.
15932 (__arm_vddupq_x_n_u16): Likewise.
15933 (__arm_vidupq_x_n_u32): Likewise.
15934 (__arm_vddupq_x_n_u32): Likewise.
15935 (__arm_vldrdq_gather_offset_s64): Likewise.
15936 (__arm_vldrdq_gather_offset_u64): Likewise.
15937 (__arm_vldrdq_gather_offset_z_s64): Likewise.
15938 (__arm_vldrdq_gather_offset_z_u64): Likewise.
15939 (__arm_vldrdq_gather_shifted_offset_s64): Likewise.
15940 (__arm_vldrdq_gather_shifted_offset_u64): Likewise.
15941 (__arm_vldrdq_gather_shifted_offset_z_s64): Likewise.
15942 (__arm_vldrdq_gather_shifted_offset_z_u64): Likewise.
15943 (__arm_vidupq_m_n_u8): Likewise.
15944 (__arm_vidupq_m_n_u16): Likewise.
15945 (__arm_vidupq_m_n_u32): Likewise.
15946 (__arm_vddupq_m_n_u8): Likewise.
15947 (__arm_vddupq_m_n_u16): Likewise.
15948 (__arm_vddupq_m_n_u32): Likewise.
15949 (__arm_vidupq_n_u16): Likewise.
15950 (__arm_vidupq_n_u32): Likewise.
15951 (__arm_vidupq_n_u8): Likewise.
15952 (__arm_vddupq_n_u16): Likewise.
15953 (__arm_vddupq_n_u32): Likewise.
15954 (__arm_vddupq_n_u8): Likewise.
15955
15956 2020-04-23 Iain Buclaw <ibuclaw@gdcproject.org>
15957
15958 * doc/install.texi (D-Specific Options): Document
15959 --enable-libphobos-checking and --with-libphobos-druntime-only.
15960
15961 2020-04-23 Jakub Jelinek <jakub@redhat.com>
15962
15963 PR target/94707
15964 * config/rs6000/rs6000-call.c (rs6000_aggregate_candidate): Add
15965 cxx17_empty_base_seen argument. Pass it to recursive calls.
15966 Ignore cxx17_empty_base_field_p fields after setting
15967 *cxx17_empty_base_seen to true.
15968 (rs6000_discover_homogeneous_aggregate): Adjust
15969 rs6000_aggregate_candidate caller. With -Wpsabi, diagnose homogeneous
15970 aggregates with C++17 empty base fields.
15971
15972 PR c/94705
15973 * attribs.c (decl_attribute): Don't diagnose attribute exclusions
15974 if last_decl is error_mark_node or has such a TREE_TYPE.
15975
15976 PR c/94705
15977 * attribs.c (decl_attribute): Don't diagnose attribute exclusions
15978 if last_decl is error_mark_node or has such a TREE_TYPE.
15979
15980 2020-04-22 Felix Yang <felix.yang@huawei.com>
15981
15982 PR target/94678
15983 * config/aarch64/aarch64.h (TARGET_SVE):
15984 Add && !TARGET_GENERAL_REGS_ONLY.
15985 (TARGET_SVE2): Add && TARGET_SVE.
15986 (TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3,
15987 TARGET_SVE2_SM4): Add && TARGET_SVE2.
15988 * config/aarch64/aarch64-sve-builtins.h
15989 (sve_switcher::m_old_general_regs_only): New member.
15990 * config/aarch64/aarch64-sve-builtins.cc (check_required_registers):
15991 New function.
15992 (reported_missing_registers_p): New variable.
15993 (check_required_extensions): Call check_required_registers before
15994 return if all required extenstions are present.
15995 (sve_switcher::sve_switcher): Save TARGET_GENERAL_REGS_ONLY in
15996 m_old_general_regs_only and clear MASK_GENERAL_REGS_ONLY in
15997 global_options.x_target_flags.
15998 (sve_switcher::~sve_switcher): Set MASK_GENERAL_REGS_ONLY in
15999 global_options.x_target_flags if m_old_general_regs_only is true.
16000
16001 2020-04-22 Zackery Spytz <zspytz@gmail.com>
16002
16003 * doc/extend.exi: Add "free" to list of other builtin functions
16004 supported by GCC.
16005
16006 2020-04-20 Aaron Sawdey <acsawdey@linux.ibm.com>
16007
16008 PR target/94622
16009 * config/rs6000/sync.md (load_quadpti): Add attr "prefixed"
16010 if TARGET_PREFIXED.
16011 (store_quadpti): Ditto.
16012 (atomic_load<mode>): Do not swap doublewords if TARGET_PREFIXED as
16013 plq will be used and doesn't need it.
16014 (atomic_store<mode>): Ditto, for pstq.
16015
16016 2020-04-22 Erick Ochoa <erick.ochoa@theobroma-systems.com>
16017
16018 * doc/invoke.texi: Update flags turned on by -O3.
16019
16020 2020-04-22 Jakub Jelinek <jakub@redhat.com>
16021
16022 PR target/94706
16023 * config/ia64/ia64.c (hfa_element_mode): Ignore
16024 cxx17_empty_base_field_p fields.
16025
16026 PR target/94383
16027 * calls.h (cxx17_empty_base_field_p): Declare.
16028 * calls.c (cxx17_empty_base_field_p): Define.
16029
16030 2020-04-22 Christophe Lyon <christophe.lyon@linaro.org>
16031
16032 * doc/sourcebuild.texi (arm_softfp_ok, arm_hard_ok): Document.
16033
16034 2020-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16035 Andre Vieira <andre.simoesdiasvieira@arm.com>
16036 Mihail Ionescu <mihail.ionescu@arm.com>
16037
16038 * config/arm/arm.c (arm_file_start): Handle isa_bit_quirk_no_asmcpu.
16039 * config/arm/arm-cpus.in (quirk_no_asmcpu): Define.
16040 (ALL_QUIRKS): Add quirk_no_asmcpu.
16041 (cortex-m55): Define new cpu.
16042 * config/arm/arm-tables.opt: Regenerate.
16043 * config/arm/arm-tune.md: Likewise.
16044 * doc/invoke.texi (Arm Options): Document -mcpu=cortex-m55.
16045
16046 2020-04-22 Richard Sandiford <richard.sandiford@arm.com>
16047
16048 PR tree-optimization/94700
16049 * tree-ssa-forwprop.c (simplify_vector_constructor): When processing
16050 an identity constructor, use a VIEW_CONVERT_EXPR to handle mixtures
16051 of similarly-structured but distinct vector types.
16052
16053 2020-04-21 Martin Sebor <msebor@redhat.com>
16054
16055 PR middle-end/94647
16056 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Correct
16057 the computation of the lower bound of the source access size.
16058 (builtin_access::generic_overlap): Remove a hack for setting ranges
16059 of overlap offsets.
16060
16061 2020-04-21 John David Anglin <danglin@gcc.gnu.org>
16062
16063 * config/pa/som.h (ASM_WEAKEN_LABEL): Delete.
16064 (ASM_WEAKEN_DECL): New define.
16065 (HAVE_GAS_WEAKREF): Undefine.
16066
16067 2020-04-21 Richard Sandiford <richard.sandiford@arm.com>
16068
16069 PR tree-optimization/94683
16070 * tree-ssa-forwprop.c (simplify_vector_constructor): Use a
16071 VIEW_CONVERT_EXPR to handle mixtures of similarly-structured
16072 but distinct vector types.
16073
16074 2020-04-21 Jakub Jelinek <jakub@redhat.com>
16075
16076 PR c/94641
16077 * stor-layout.c (place_field, finalize_record_size): Don't emit
16078 -Wpadded warning on TYPE_ARTIFICIAL rli->t.
16079 * ubsan.c (ubsan_get_type_descriptor_type,
16080 ubsan_get_source_location_type, ubsan_create_data): Set
16081 TYPE_ARTIFICIAL.
16082 * asan.c (asan_global_struct): Likewise.
16083
16084 2020-04-21 Duan bo <duanbo3@huawei.com>
16085
16086 PR target/94577
16087 * config/aarch64/aarch64.c: Add an error message for option conflict.
16088 * doc/invoke.texi (-mcmodel=large): Mention that -mcmodel=large is
16089 incompatible with -fpic, -fPIC and -mabi=ilp32.
16090
16091 2020-04-21 Frederik Harwath <frederik@codesourcery.com>
16092
16093 PR other/94629
16094 * omp-low.c (new_omp_context): Remove assignments to
16095 ctx->outer_reduction_clauses and ctx->local_reduction_clauses.
16096
16097 2020-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
16098
16099 * config/s390/vector.md ("popcountv8hi2_vx", "popcountv4si2_vx")
16100 ("popcountv2di2_vx"): Use simplify_gen_subreg.
16101
16102 2020-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
16103
16104 PR target/94613
16105 * config/s390/s390-builtin-types.def: Add 3 new function modes.
16106 * config/s390/s390-builtins.def: Add mode dependent low-level
16107 builtin and map the overloaded builtins to these.
16108 * config/s390/vx-builtins.md ("vec_selV_HW"): Rename to ...
16109 ("vsel<V_HW"): ... this and rewrite the pattern with bitops.
16110
16111 2020-04-20 Richard Sandiford <richard.sandiford@arm.com>
16112
16113 * tree-vect-loop.c (vect_better_loop_vinfo_p): If old_loop_vinfo
16114 has a variable VF, prefer new_loop_vinfo if it is cheaper for the
16115 estimated VF and is no worse at double the estimated VF.
16116
16117 2020-04-20 Richard Sandiford <richard.sandiford@arm.com>
16118
16119 PR target/94668
16120 * config/aarch64/aarch64.c (aarch64_sve_expand_vector_init): Fix
16121 order of arguments to rtx_vector_builder.
16122 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16123 When extending the trailing constants to a full vector, replace any
16124 variables with zeros.
16125
16126 2020-04-20 Jan Hubicka <hubicka@ucw.cz>
16127
16128 PR ipa/94582
16129 * tree-inline.c (optimize_inline_calls): Recompute calls_comdat_local
16130 flag.
16131
16132 2020-04-20 Martin Liska <mliska@suse.cz>
16133
16134 * symtab.c (symtab_node::dump_references): Add space after
16135 one entry.
16136 (symtab_node::dump_referring): Likewise.
16137
16138 2020-04-18 Jeff Law <law@redhat.com>
16139
16140 PR debug/94439
16141 * regrename.c (check_new_reg_p): Ignore DEBUG_INSNs when walking
16142 the chain.
16143
16144 2020-04-18 Iain Buclaw <ibuclaw@gdcproject.org>
16145
16146 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
16147 attributes): Document d_runtime_has_std_library.
16148
16149 2020-04-17 Jeff Law <law@redhat.com>
16150
16151 PR rtl-optimization/90275
16152 * cse.c (cse_insn): Avoid recording nop sets in multi-set parallels
16153 when the destination has a REG_UNUSED note.
16154
16155 2020-04-17 Tobias Burnus <tobias@codesourcery.com>
16156
16157 PR middle-end/94635
16158 * gimplify.c (gimplify_scan_omp_clauses): Turn MAP_TO_PSET to
16159 MAP_DELETE.
16160
16161 2020-04-17 Richard Sandiford <richard.sandiford@arm.com>
16162
16163 * config/aarch64/aarch64.c (aarch64_advsimd_ldp_stp_p): New function.
16164 (aarch64_sve_adjust_stmt_cost): Add a vectype parameter. Double the
16165 cost of load and store insns if one loop iteration has enough scalar
16166 elements to use an Advanced SIMD LDP or STP.
16167 (aarch64_add_stmt_cost): Update call accordingly.
16168
16169 2020-04-17 Jakub Jelinek <jakub@redhat.com>
16170 Jeff Law <law@redhat.com>
16171
16172 PR target/94567
16173 * config/i386/i386.md (*testqi_ext_3): Use CCZmode rather than
16174 CCNOmode in ix86_match_ccmode if len is equal to <MODE>mode precision,
16175 or pos + len >= 32, or pos + len is equal to operands[2] precision
16176 and operands[2] is not a register operand. During splitting perform
16177 SImode AND if operands[0] doesn't have CCZmode and pos + len is
16178 equal to mode precision.
16179
16180 2020-04-17 Richard Biener <rguenther@suse.de>
16181
16182 PR other/94629
16183 * cgraphclones.c (cgraph_node::create_clone): Remove duplicate
16184 initialization.
16185 * dwarf2out.c (dw_val_equal_p): Fix pasto in
16186 dw_val_class_vms_delta comparison.
16187 * optabs.c (expand_binop_directly): Fix pasto in commutation
16188 check.
16189 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Fix pasto in
16190 initialization.
16191
16192 2020-04-17 Jakub Jelinek <jakub@redhat.com>
16193
16194 PR rtl-optimization/94618
16195 * cfgrtl.c (delete_insn_and_edges): Set purge not just when
16196 insn is the BB_END of its block, but also when it is only followed
16197 by DEBUG_INSNs in its block.
16198
16199 PR tree-optimization/94621
16200 * tree-inline.c (remap_type_1): Don't dereference NULL TYPE_DOMAIN.
16201 Move id->adjust_array_error_bounds check first in the condition.
16202
16203 2020-04-17 Martin Liska <mliska@suse.cz>
16204 Jonathan Yong <10walls@gmail.com>
16205
16206 PR gcov-profile/94570
16207 * coverage.c (coverage_init): Use separator properly.
16208
16209 2020-04-16 Peter Bergner <bergner@linux.ibm.com>
16210
16211 PR rtl-optimization/93974
16212 * config/rs6000/rs6000.c (TARGET_CANNOT_SUBSTITUTE_MEM_EQUIV_P): Define.
16213 (rs6000_cannot_substitute_mem_equiv_p): New function.
16214
16215 2020-04-16 Martin Jambor <mjambor@suse.cz>
16216
16217 PR ipa/93621
16218 * ipa-inline.h (ipa_saved_clone_sources): Declare.
16219 * ipa-inline-transform.c (ipa_saved_clone_sources): New variable.
16220 (save_inline_function_body): Link the new body holder with the
16221 previous one.
16222 * cgraph.c: Include ipa-inline.h.
16223 (cgraph_edge::redirect_call_stmt_to_callee): Try to find the decl from
16224 the statement in ipa_saved_clone_sources.
16225 * cgraphunit.c: Include ipa-inline.h.
16226 (expand_all_functions): Free ipa_saved_clone_sources.
16227
16228 2020-04-16 Richard Sandiford <richard.sandiford@arm.com>
16229
16230 PR target/94606
16231 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor): Take
16232 the VNx16BI lowpart of the recursively-generated constant.
16233
16234 2020-04-16 Martin Liska <mliska@suse.cz>
16235 Jakub Jelinek <jakub@redhat.com>
16236
16237 PR c++/94314
16238 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
16239 DECL_IS_REPLACEABLE_OPERATOR during cloning.
16240 * tree-ssa-dce.c (valid_new_delete_pair_p): New function.
16241 (propagate_necessity): Check operator names.
16242
16243 2020-04-16 Richard Sandiford <richard.sandiford@arm.com>
16244
16245 PR rtl-optimization/94605
16246 * early-remat.c (early_remat::process_block): Handle insns that
16247 set multiple candidate registers.
16248 2020-04-16 Jan Hubicka <hubicka@ucw.cz>
16249
16250 PR gcov-profile/93401
16251 * common.opt (profile-prefix-path): New option.
16252 * coverae.c: Include diagnostics.h.
16253 (coverage_init): Strip profile prefix path.
16254 * doc/invoke.texi (-fprofile-prefix-path): Document.
16255
16256 2020-04-16 Richard Biener <rguenther@suse.de>
16257
16258 PR middle-end/94614
16259 * expr.c (emit_move_multi_word): Do not generate code when
16260 the destination part is undefined_operand_subword_p.
16261 * lower-subreg.c (resolve_clobber): Look through a paradoxica
16262 subreg.
16263
16264 2020-04-16 Martin Jambor <mjambor@suse.cz>
16265
16266 PR tree-optimization/94598
16267 * tree-sra.c (verify_sra_access_forest): Fix verification of total
16268 scalarization accesses under access to one-element arrays.
16269
16270 2020-04-16 Jakub Jelinek <jakub@redhat.com>
16271
16272 PR bootstrap/89494
16273 * function.c (assign_parm_find_data_types): Add workaround for
16274 BROKEN_VALUE_INITIALIZATION compilers.
16275
16276 2020-04-16 Richard Biener <rguenther@suse.de>
16277
16278 * gdbhooks.py (TreePrinter): Print SSA_NAME_VERSION of SSA_NAME
16279 nodes.
16280
16281 2020-04-15 Uroš Bizjak <ubizjak@gmail.com>
16282
16283 PR target/94603
16284 * config/i386/i386-builtin.def (__builtin_ia32_movq128):
16285 Require OPTION_MASK_ISA_SSE2.
16286
16287 2020-04-15 Gustavo Romero <gromero@linux.ibm.com>
16288
16289 PR bootstrap/89494
16290 * dumpfile.c (selftest::temp_dump_context::temp_dump_context):
16291 Don't construct a dump_context temporary to call static method.
16292
16293 2020-04-15 Andrea Corallo <andrea.corallo@arm.com>
16294
16295 * config/aarch64/falkor-tag-collision-avoidance.c
16296 (valid_src_p): Check for aarch64_address_info type before
16297 accessing base field.
16298
16299 2020-04-15 Andre Vieira <andre.simoesdiasvieira@arm.com>
16300
16301 * config/arm/mve.md (mve_vec_duplicate<mode>): New pattern.
16302 (V_sz_elem2): Remove unused mode attribute.
16303
16304 2020-04-15 Matthew Malcomson <matthew.malcomson@arm.com>
16305
16306 * config/arm/arm.md (arm_movdi): Disallow for MVE.
16307
16308 2020-04-15 Richard Biener <rguenther@suse.de>
16309
16310 PR middle-end/94539
16311 * tree-ssa-alias.c (same_type_for_tbaa): Defer to
16312 alias_sets_conflict_p for pointers.
16313
16314 2020-04-14 Max Filippov <jcmvbkbc@gmail.com>
16315
16316 PR target/94584
16317 * config/xtensa/xtensa.md (zero_extendhisi2, zero_extendqisi2)
16318 (extendhisi2_internal): Add %v1 before the load instructions.
16319
16320 2020-04-14 Aaron Sawdey <acsawdey@linux.ibm.com>
16321
16322 PR target/94542
16323 * config/rs6000/rs6000.c (address_to_insn_form): Do not attempt to
16324 use PC-relative addressing for TLS references.
16325
16326 2020-04-14 Martin Jambor <mjambor@suse.cz>
16327
16328 PR ipa/94434
16329 * ipa-sra.c: Include internal-fn.h.
16330 (enum isra_scan_context): Update comment.
16331 (scan_function): Treat calls to internal_functions like loads or stores.
16332
16333 2020-04-14 Yang Yang <yangyang305@huawei.com>
16334
16335 PR tree-optimization/94574
16336 * tree-ssa.c (non_rewritable_lvalue_p): Add size check when analyzing
16337 whether a vector-insert is rewritable using a BIT_INSERT_EXPR.
16338
16339 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
16340
16341 PR target/94561
16342 * config/i386/i386.c (ix86_get_ssemov): Remove mode size check.
16343
16344 2020-04-13 Martin Sebor <msebor@redhat.com>
16345
16346 * doc/extend.texi (-Wall): Mention -Wformat-overflow and
16347 -Wformat-truncation. Move -Wzero-length-bounds last.
16348 (-Wrestrict): Document positive form of option enabled by -Wall.
16349
16350 2020-04-13 Zachary Spytz <zspytz@gmail.com>
16351
16352 * doc/extend.texi: Add realloc to list of built-in functions
16353 are recognized by the compiler.
16354
16355 2020-04-13 H.J. Lu <hongjiu.lu@intel.com>
16356
16357 PR target/94556
16358 * config/i386/i386.c (ix86_expand_epilogue): Restore the frame
16359 pointer in word_mode for eh_return epilogues.
16360
16361 2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16362
16363 * config/msp430/msp430.c (msp430_print_operand): Don't add offsets to
16364 memory references in %B, %C and %D operand selectors when the inner
16365 operand is a post increment address.
16366
16367 2020-04-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16368
16369 * config/msp430/msp430.c (msp430_print_operand): Offset a %C memory
16370 reference by 4 bytes, and %D memory reference by 6 bytes.
16371
16372 2020-04-11 Uroš Bizjak <ubizjak@gmail.com>
16373
16374 PR target/94494
16375 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE2
16376 condition for V4SI, V8HI and V16QI modes.
16377
16378 2020-04-11 Jakub Jelinek <jakub@redhat.com>
16379
16380 PR debug/94495
16381 PR target/94551
16382 * cselib.c (cselib_record_sp_cfa_base_equiv): Set PRESERVED_VALUE_P on
16383 val->val_rtx.
16384
16385 2020-04-10 Thomas Schwinge <thomas@codesourcery.com>
16386
16387 PR middle-end/89433
16388 PR middle-end/93465
16389 * omp-general.c (oacc_verify_routine_clauses): Diagnose if
16390 "#pragma omp declare target" has also been applied.
16391
16392 2020-04-09 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16393
16394 * config/msp430/msp430.c (msp430_expand_epilogue): Use emit_jump_insn
16395 when to emit the epilogue_helper insn.
16396 * config/msp430/msp430.md (epilogue_helper): Add a return insn to the
16397 RTL pattern.
16398
16399 2020-04-09 Jakub Jelinek <jakub@redhat.com>
16400
16401 PR debug/94495
16402 * cselib.h (cselib_record_sp_cfa_base_equiv,
16403 cselib_sp_derived_value_p): Declare.
16404 * cselib.c (cselib_record_sp_cfa_base_equiv,
16405 cselib_sp_derived_value_p): New functions.
16406 * var-tracking.c (add_stores): Don't record MO_VAL_SET for
16407 cselib_sp_derived_value_p values.
16408 (vt_initialize): Call cselib_record_sp_cfa_base_equiv at the
16409 start of extended basic blocks other than the first one
16410 for !frame_pointer_needed functions.
16411
16412 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
16413
16414 * doc/sourcebuild.texi (aarch64_sve_hw, aarch64_sve128_hw)
16415 (aarch64_sve256_hw, aarch64_sve512_hw, aarch64_sve1024_hw)
16416 (aarch64_sve2048_hw): Document.
16417 * config/aarch64/aarch64-protos.h
16418 (aarch64_sve::handle_arm_sve_vector_bits_attribute): Declare.
16419 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
16420 __ARM_FEATURE_SVE_VECTOR_OPERATIONS when SVE is enabled.
16421 * config/aarch64/aarch64-sve-builtins.cc (matches_type_p): New
16422 function.
16423 (find_type_suffix_for_scalar_type): Use it instead of comparing
16424 TYPE_MAIN_VARIANTs.
16425 (function_resolver::infer_vector_or_tuple_type): Likewise.
16426 (function_resolver::require_vector_type): Likewise.
16427 (handle_arm_sve_vector_bits_attribute): New function.
16428 * config/aarch64/aarch64.c (pure_scalable_type_info): New class.
16429 (aarch64_attribute_table): Add arm_sve_vector_bits.
16430 (aarch64_return_in_memory_1):
16431 (pure_scalable_type_info::piece::get_rtx): New function.
16432 (pure_scalable_type_info::num_zr): Likewise.
16433 (pure_scalable_type_info::num_pr): Likewise.
16434 (pure_scalable_type_info::get_rtx): Likewise.
16435 (pure_scalable_type_info::analyze): Likewise.
16436 (pure_scalable_type_info::analyze_registers): Likewise.
16437 (pure_scalable_type_info::analyze_array): Likewise.
16438 (pure_scalable_type_info::analyze_record): Likewise.
16439 (pure_scalable_type_info::add_piece): Likewise.
16440 (aarch64_some_values_include_pst_objects_p): Likewise.
16441 (aarch64_returns_value_in_sve_regs_p): Use pure_scalable_type_info
16442 to analyze whether the type is returned in SVE registers.
16443 (aarch64_takes_arguments_in_sve_regs_p): Likwise whether the type
16444 is passed in SVE registers.
16445 (aarch64_pass_by_reference_1): New function, extracted from...
16446 (aarch64_pass_by_reference): ...here. Use pure_scalable_type_info
16447 to analyze whether the type is a pure scalable type and, if so,
16448 whether it should be passed by reference.
16449 (aarch64_return_in_msb): Return false for pure scalable types.
16450 (aarch64_function_value_1): Fold back into...
16451 (aarch64_function_value): ...this function. Use
16452 pure_scalable_type_info to analyze whether the type is a pure
16453 scalable type and, if so, which registers it should use. Handle
16454 types that include pure scalable types but are not themselves
16455 pure scalable types.
16456 (aarch64_return_in_memory_1): New function, split out from...
16457 (aarch64_return_in_memory): ...here. Use pure_scalable_type_info
16458 to analyze whether the type is a pure scalable type and, if so,
16459 whether it should be returned by reference.
16460 (aarch64_layout_arg): Remove orig_mode argument. Use
16461 pure_scalable_type_info to analyze whether the type is a pure
16462 scalable type and, if so, which registers it should use. Handle
16463 types that include pure scalable types but are not themselves
16464 pure scalable types.
16465 (aarch64_function_arg): Update call accordingly.
16466 (aarch64_function_arg_advance): Likewise.
16467 (aarch64_pad_reg_upward): On big-endian targets, return false for
16468 pure scalable types that are smaller than 16 bytes.
16469 (aarch64_member_type_forces_blk): New function.
16470 (aapcs_vfp_sub_candidate): Exit early for built-in SVE types.
16471 (aarch64_short_vector_p): Return false for VECTOR_TYPEs that
16472 correspond to built-in SVE types. Do not rely on a vector mode
16473 if the type includes an pure scalable type. When returning true,
16474 assert that the mode is not an SVE mode.
16475 (aarch64_vfp_is_call_or_return_candidate): Do not check for SVE
16476 built-in types here. When returning true, assert that the type
16477 does not have an SVE mode.
16478 (aarch64_can_change_mode_class): Don't allow anything to change
16479 between a predicate mode and a non-predicate mode. Also don't
16480 allow changes between SVE vector modes and other modes that
16481 might be bigger than 128 bits.
16482 (aarch64_invalid_binary_op): Reject binary operations that mix
16483 SVE and GNU vector types.
16484 (TARGET_MEMBER_TYPE_FORCES_BLK): Define.
16485
16486 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
16487
16488 * config/aarch64/aarch64.c (aarch64_attribute_table): Add
16489 "SVE sizeless type".
16490 * config/aarch64/aarch64-sve-builtins.cc (make_type_sizeless)
16491 (sizeless_type_p): New functions.
16492 (register_builtin_types): Apply make_type_sizeless to the type.
16493 (register_tuple_type): Likewise.
16494 (verify_type_context): Use sizeless_type_p instead of builin_type_p.
16495
16496 2020-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
16497
16498 * config/arm/arm_cde.h: Remove `extern "C"` when compiling for
16499 C++.
16500
16501 2020-04-09 Martin Jambor <mjambor@suse.cz>
16502 Richard Biener <rguenther@suse.de>
16503
16504 PR tree-optimization/94482
16505 * tree-sra.c (create_access_replacement): Dump new replacement with
16506 TDF_UID.
16507 (sra_modify_expr): Fix handling of cases when the original EXPR writes
16508 to only part of the replacement.
16509 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly verify
16510 the first operand of combinations into REAL/IMAGPART_EXPR and
16511 BIT_FIELD_REF.
16512
16513 2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
16514
16515 * doc/sourcebuild.texi (check-function-bodies): Treat the third
16516 parameter as a list of option regexps and require each regexp
16517 to match.
16518
16519 2020-04-09 Andrea Corallo <andrea.corallo@arm.com>
16520
16521 PR target/94530
16522 * config/aarch64/falkor-tag-collision-avoidance.c
16523 (valid_src_p): Fix missing rtx type check.
16524
16525 2020-04-09 Bin Cheng <bin.cheng@linux.alibaba.com>
16526 Richard Biener <rguenther@suse.de>
16527
16528 PR tree-optimization/93674
16529 * tree-ssa-loop-ivopts.c (langhooks.h): New include.
16530 (add_iv_candidate_for_use): For iv_use of non integer or pointer type,
16531 or non-mode precision type, add candidate in unsigned type with the
16532 same precision.
16533
16534 2020-04-08 Clement Chigot <clement.chigot@atos.net>
16535
16536 * config/rs6000/aix61.h (LIB_SPEC): Add -lc128 with -mlong-double-128.
16537 * config/rs6000/aix71.h (LIB_SPEC): Likewise.
16538 * config/rs6000/aix72.h (LIB_SPEC): Likewise.
16539
16540 2020-04-08 Jakub Jelinek <jakub@redhat.com>
16541
16542 PR middle-end/94526
16543 * cselib.c (autoinc_split): Handle e->val_rtx being SP_DERIVED_VALUE_P
16544 with zero offset.
16545 * reload1.c (eliminate_regs_1): Avoid creating
16546 (plus (reg) (const_int 0)) in DEBUG_INSNs.
16547
16548 PR tree-optimization/94524
16549 * tree-vect-generic.c (expand_vector_divmod): If any elt of op1 is
16550 negative for signed TRUNC_MOD_EXPR, multiply with absolute value of
16551 op1 rather than op1 itself at the end. Punt for signed modulo by
16552 most negative constant.
16553 * tree-vect-patterns.c (vect_recog_divmod_pattern): Punt for signed
16554 modulo by most negative constant.
16555
16556 2020-04-08 Richard Biener <rguenther@suse.de>
16557
16558 PR rtl-optimization/93946
16559 * cse.c (cse_insn): Record the tabled expression in
16560 src_related. Verify a redundant store removal is valid.
16561
16562 2020-04-08 H.J. Lu <hongjiu.lu@intel.com>
16563
16564 PR target/94417
16565 * config/i386/i386-features.c (rest_of_insert_endbranch): Insert
16566 ENDBR at function entry if function will be called indirectly.
16567
16568 2020-04-08 Jakub Jelinek <jakub@redhat.com>
16569
16570 PR target/94438
16571 * config/i386/i386.c (ix86_get_mask_mode): Only use int mask for elem_size
16572 1, 2, 4 and 8.
16573
16574 2020-04-08 Martin Liska <mliska@suse.cz>
16575
16576 PR c++/94314
16577 * gimple.c (gimple_call_operator_delete_p): Rename to...
16578 (gimple_call_replaceable_operator_delete_p): ... this.
16579 Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
16580 * gimple.h (gimple_call_operator_delete_p): Rename to ...
16581 (gimple_call_replaceable_operator_delete_p): ... this.
16582 * tree-core.h (tree_function_decl): Add replaceable_operator
16583 flag.
16584 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1):
16585 Use DECL_IS_REPLACEABLE_OPERATOR_DELETE_P.
16586 (propagate_necessity): Use gimple_call_replaceable_operator_delete_p.
16587 (eliminate_unnecessary_stmts): Likewise.
16588 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
16589 Pack DECL_IS_REPLACEABLE_OPERATOR.
16590 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
16591 Unpack the field here.
16592 * tree.h (DECL_IS_REPLACEABLE_OPERATOR): New.
16593 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): New.
16594 (DECL_IS_REPLACEABLE_OPERATOR_DELETE_P): New.
16595 * cgraph.c (cgraph_node::dump): Dump if an operator is replaceable.
16596 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Compare
16597 replaceable operator flags.
16598
16599 2020-04-08 Dennis Zhang <dennis.zhang@arm.com>
16600 Matthew Malcomson <matthew.malcomson@arm.com>
16601
16602 * config/arm/arm-builtins.c (CX_IMM_QUALIFIERS): New macro.
16603 (CX_UNARY_QUALIFIERS, CX_BINARY_QUALIFIERS): Likewise.
16604 (CX_TERNARY_QUALIFIERS): Likewise.
16605 (ARM_BUILTIN_CDE_PATTERN_START): Likewise.
16606 (ARM_BUILTIN_CDE_PATTERN_END): Likewise.
16607 (arm_init_acle_builtins): Initialize CDE builtins.
16608 (arm_expand_acle_builtin): Check CDE constant operands.
16609 * config/arm/arm.h (ARM_CDE_CONST_COPROC): New macro to set the range
16610 of CDE constant operand.
16611 * config/arm/arm.c (arm_hard_regno_mode_ok): Support DImode for
16612 TARGET_VFP_BASE.
16613 (ARM_VCDE_CONST_1, ARM_VCDE_CONST_2, ARM_VCDE_CONST_3): Likewise.
16614 * config/arm/arm_cde.h (__arm_vcx1_u32): New macro of ACLE interface.
16615 (__arm_vcx1a_u32, __arm_vcx2_u32, __arm_vcx2a_u32): Likewise.
16616 (__arm_vcx3_u32, __arm_vcx3a_u32, __arm_vcx1d_u64): Likewise.
16617 (__arm_vcx1da_u64, __arm_vcx2d_u64, __arm_vcx2da_u64): Likewise.
16618 (__arm_vcx3d_u64, __arm_vcx3da_u64): Likewise.
16619 * config/arm/arm_cde_builtins.def: New file.
16620 * config/arm/iterators.md (V_reg): New attribute of SI.
16621 * config/arm/predicates.md (const_int_coproc_operand): New.
16622 (const_int_vcde1_operand, const_int_vcde2_operand): New.
16623 (const_int_vcde3_operand): New.
16624 * config/arm/unspecs.md (UNSPEC_VCDE, UNSPEC_VCDEA): New.
16625 * config/arm/vfp.md (arm_vcx1<mode>): New entry.
16626 (arm_vcx1a<mode>, arm_vcx2<mode>, arm_vcx2a<mode>): Likewise.
16627 (arm_vcx3<mode>, arm_vcx3a<mode>): Likewise.
16628
16629 2020-04-08 Dennis Zhang <dennis.zhang@arm.com>
16630
16631 * config.gcc: Add arm_cde.h.
16632 * config/arm/arm-c.c (arm_cpu_builtins): Define or undefine
16633 __ARM_FEATURE_CDE and __ARM_FEATURE_CDE_COPROC.
16634 * config/arm/arm-cpus.in (cdecp0, cdecp1, ..., cdecp7): New options.
16635 * config/arm/arm.c (arm_option_reconfigure_globals): Configure
16636 arm_arch_cde and arm_arch_cde_coproc to store the feature bits.
16637 * config/arm/arm.h (TARGET_CDE): New macro.
16638 * config/arm/arm_cde.h: New file.
16639 * doc/invoke.texi: Document CDE options +cdecp[0-7].
16640 * doc/sourcebuild.texi (arm_v8m_main_cde_ok): Document new target
16641 supports option.
16642 (arm_v8m_main_cde_fp, arm_v8_1m_main_cde_mve): Likewise.
16643
16644 2020-04-08 Jakub Jelinek <jakub@redhat.com>
16645
16646 PR rtl-optimization/94516
16647 * postreload.c: Include rtl-iter.h.
16648 (reload_cse_move2add): Handle SP autoinc here by FOR_EACH_SUBRTX_VAR
16649 looking for all MEMs with RTX_AUTOINC operand.
16650 (move2add_note_store): Remove {PRE,POST}_{INC,DEC} handling.
16651
16652 2020-04-08 Tobias Burnus <tobias@codesourcery.com>
16653
16654 * omp-grid.c (grid_eliminate_combined_simd_part): Use
16655 OMP_CLAUSE_CODE to access the omp clause code.
16656
16657 2020-04-07 Jeff Law <law@redhat.com>
16658
16659 PR rtl-optimization/92264
16660 * config/h8300/h8300.md (mov;add peephole2): Avoid applying when
16661 the destination is the stack pointer.
16662
16663 2020-04-07 Jakub Jelinek <jakub@redhat.com>
16664
16665 PR rtl-optimization/94291
16666 PR rtl-optimization/84169
16667 * combine.c (try_combine): For split_i2i3, don't assume SET_DEST
16668 must be a REG or SUBREG of REG; if it is not one of these, don't
16669 update LOG_LINKs.
16670
16671 2020-04-07 Richard Biener <rguenther@suse.de>
16672
16673 PR middle-end/94479
16674 * gimplify.c (gimplify_addr_expr): Also consider generated
16675 MEM_REFs.
16676
16677 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
16678
16679 * config/arm/arm_mve.h: Add C++ polymorphism and fix preserve MACROs.
16680
16681 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
16682
16683 * config/arm/arm_mve.h: Cast some pointers to expected types.
16684
16685 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
16686
16687 * config/arm/arm_mve.h: Replace all uses of vuninitializedq_* with the
16688 same with '__arm_' prefix.
16689
16690 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
16691
16692 * config/arm/mve.md (mve_vec_extract*): Allow memory operands in set.
16693
16694 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
16695
16696 * config/arm/arm.c (arm_mve_immediate_check): Removed.
16697 * config/arm/mve.md (MVE_pred2, MVE_constraint2): Added FP types.
16698 (mve_vcvtq_n_to_f_*, mve_vcvtq_n_from_f_*, mve_vqshrnbq_n_*,
16699 mve_vqshrntq_n_*, mve_vqshrunbq_n_s*, mve_vqshruntq_n_s*,
16700 mve_vcvtq_m_n_from_f_*, mve_vcvtq_m_n_to_f_*, mve_vqshrnbq_m_n_*,
16701 mve_vqrshruntq_m_n_s*, mve_vqshrunbq_m_n_s*,
16702 mve_vqshruntq_m_n_s*): Fixed immediate constraints.
16703
16704 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
16705
16706 * config/arm/arm.d (ashldi3): Don't use lsll for constant 32-bit shifts.
16707
16708 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
16709
16710 * config/arm/arm_mve.h: Fix v[id]wdup intrinsics.
16711 * config/arm/mve/md: Fix v[id]wdup patterns.
16712
16713 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
16714
16715 * config/arm/arm.c (output_move_neon): Deal with label + offset cases.
16716 * config/arm/mve.md (*mve_mov<mode>): Handle const vectors.
16717
16718 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
16719
16720 * config/arm/arm_mve.h: Remove use of typeof for addr pointer parameters
16721 and remove const_ptr enums.
16722
16723 2020-04-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
16724
16725 * config/arm/arm_mve.h (vsubq_n): Merge with...
16726 (vsubq): ... this.
16727 (vmulq_n): Merge with...
16728 (vmulq): ... this.
16729 (__ARM_mve_typeid): Simplify scalar and constant detection.
16730
16731 2020-04-07 Jakub Jelinek <jakub@redhat.com>
16732
16733 PR target/94509
16734 * config/i386/i386-expand.c (expand_vec_perm_pshufb): Fix the check
16735 for inter-lane permutation for 64-byte modes.
16736
16737 PR target/94488
16738 * config/aarch64/aarch64-simd.md (ashl<mode>3, lshr<mode>3,
16739 ashr<mode>3): Force operands[2] into reg whenever it is not CONST_INT.
16740 Assume it is a REG after that instead of testing it and doing FAIL
16741 otherwise. Formatting fix.
16742
16743 2020-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
16744
16745 * config/rs6000/t-rtems: Delete mcpu=8540 multilib.
16746
16747 2020-04-07 Jakub Jelinek <jakub@redhat.com>
16748
16749 PR target/94500
16750 * config/i386/i386-expand.c (emit_reduc_half): For V{64QI,32HI}mode
16751 handle i < 64 using avx512bw_lshrv4ti3. Formatting fixes.
16752
16753 2020-04-06 Jakub Jelinek <jakub@redhat.com>
16754
16755 * cselib.c (cselib_subst_to_values): For SP_DERIVED_VALUE_P
16756 + const0_rtx return the SP_DERIVED_VALUE_P.
16757
16758 2020-04-06 Richard Sandiford <richard.sandiford@arm.com>
16759
16760 PR rtl-optimization/92989
16761 * lra-lives.c (process_bb_lives): Do not treat eh_return data
16762 registers as being live at the beginning of the EH receiver.
16763
16764 2020-04-05 Zachary Spytz <zspytz@gmail.com>
16765
16766 * extend.texi: Add free to list of ISO C90 functions that
16767 are recognized by the compiler.
16768
16769 2020-04-05 Nagaraju Mekala <nmekala@xilix.com>
16770
16771 * config/microblaze/microblaze.c (microblaze_must_save_register): Check
16772 for fast_interrupt.
16773
16774 * config/microblaze/microblaze.md (trap): Update output pattern.
16775
16776 2020-04-04 Hannes Domani <ssbssa@yahoo.de>
16777 Jakub Jelinek <jakub@redhat.com>
16778
16779 PR debug/94459
16780 * dwarf2out.c (gen_subprogram_die): Look through references, pointers,
16781 arrays, pointer-to-members, function types and qualifiers when
16782 checking if in-class DIE had an 'auto' or 'decltype(auto)' return type
16783 to emit type again on definition.
16784
16785 2020-04-04 Jan Hubicka <hubicka@ucw.cz>
16786
16787 PR ipa/93940
16788 * ipa-fnsummary.c (vrp_will_run_p): New function.
16789 (fre_will_run_p): New function.
16790 (evaluate_properties_for_edge): Use it.
16791 * ipa-inline.c (can_inline_edge_by_limits_p): Do not inline
16792 !optimize_debug to optimize_debug.
16793
16794 2020-04-04 Jakub Jelinek <jakub@redhat.com>
16795
16796 PR rtl-optimization/94468
16797 * cselib.c (references_value_p): Formatting fix.
16798 (cselib_useless_value_p): New function.
16799 (discard_useless_locs, discard_useless_values,
16800 cselib_invalidate_regno_val, cselib_invalidate_mem,
16801 cselib_record_set): Use it instead of
16802 v->locs == 0 && !PRESERVED_VALUE_P (v->val_rtx).
16803
16804 PR debug/94441
16805 * tree-iterator.h (expr_single): Declare.
16806 * tree-iterator.c (expr_single): New function.
16807 * tree.h (protected_set_expr_location_if_unset): Declare.
16808 * tree.c (protected_set_expr_location): Use expr_single.
16809 (protected_set_expr_location_if_unset): New function.
16810
16811 2020-04-03 Jeff Law <law@redhat.com>
16812
16813 PR rtl-optimization/92264
16814 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Handle
16815 reloading of auto-increment addressing modes.
16816
16817 2020-04-03 H.J. Lu <hongjiu.lu@intel.com>
16818
16819 PR target/94467
16820 * config/i386/sse.md (ssse3_pshufbv8qi3): Mark scratch operand
16821 as earlyclobber.
16822
16823 2020-04-03 Jeff Law <law@redhat.com>
16824
16825 PR rtl-optimization/92264
16826 * config/m32r/m32r.c (m32r_output_block_move): Properly account for
16827 post-increment addressing of source operands as well as residuals
16828 when computing any adjustments to the input pointer.
16829
16830 2020-04-03 Jakub Jelinek <jakub@redhat.com>
16831
16832 PR target/94460
16833 * config/i386/sse.md (avx2_ph<plusminus_mnemonic>wv16hi3,
16834 avx2_ph<plusminus_mnemonic>dv8si3): Fix up RTL pattern to do
16835 second half of first lane from first lane of second operand and
16836 first half of second lane from second lane of first operand.
16837
16838 2020-04-03 Andre Vieira <andre.simoesdiasvieira@arm.com>
16839
16840 * config/arm/arm_mve.h: Condition the header file on __ARM_FEATURE_MVE.
16841
16842 2020-04-03 Tamar Christina <tamar.christina@arm.com>
16843
16844 PR target/94396
16845 * common/config/aarch64/aarch64-common.c
16846 (aarch64_get_extension_string_for_isa_flags): Handle default flags.
16847
16848 2020-04-03 Richard Biener <rguenther@suse.de>
16849
16850 PR middle-end/94465
16851 * tree.c (array_ref_low_bound): Deal with released SSA names
16852 in index position.
16853
16854 2020-04-03 Kwok Cheung Yeung <kcy@codesourcery.com>
16855
16856 * config/gcn/gcn.c (print_operand): Handle unordered comparison
16857 operators.
16858 * config/gcn/predicates.md (gcn_fp_compare_operator): Add unordered
16859 comparison operators.
16860
16861 2020-04-03 Kewen Lin <linkw@gcc.gnu.org>
16862
16863 PR tree-optimization/94443
16864 * tree-vect-loop.c (vectorizable_live_operation): Use
16865 gsi_insert_seq_before to replace gsi_insert_before.
16866
16867 2020-04-03 Martin Liska <mliska@suse.cz>
16868
16869 PR ipa/94445
16870 * ipa-icf-gimple.c (func_checker::compare_gimple_call):
16871 Compare type attributes for gimple_call_fntypes.
16872
16873 2020-04-02 Sandra Loosemore <sandra@codesourcery.com>
16874
16875 * alias.c (get_alias_set): Fix comment typos.
16876
16877 2020-04-02 Fritz Reese <foreese@gcc.gnu.org>
16878
16879 PR fortran/85982
16880 * fortran/decl.c (match_attr_spec): Lump COMP_STRUCTURE/COMP_MAP into
16881 attribute checking used by TYPE.
16882
16883 2020-04-02 Martin Jambor <mjambor@suse.cz>
16884
16885 PR ipa/92676
16886 * ipa-sra.c (struct caller_issues): New fields candidate and
16887 call_from_outside_comdat.
16888 (check_for_caller_issues): Check for calls from outsied of
16889 candidate's same_comdat_group.
16890 (check_all_callers_for_issues): Set up issues.candidate, check result
16891 of the new check.
16892 (mark_callers_calls_comdat_local): New function.
16893 (process_isra_node_results): Set calls_comdat_local of callers if
16894 appropriate.
16895
16896 2020-04-02 Richard Biener <rguenther@suse.de>
16897
16898 PR c/94392
16899 * common.opt (ffinite-loops): Initialize to zero.
16900 * opts.c (default_options_table): Remove OPT_ffinite_loops
16901 entry.
16902 * cfgloop.h (loop::finite_p): New member.
16903 * cfgloopmanip.c (copy_loop_info): Copy finite_p.
16904 * ipa-icf-gimple.c (func_checker::compare_loops): Compare
16905 finite_p.
16906 * lto-streamer-in.c (input_cfg): Stream finite_p.
16907 * lto-streamer-out.c (output_cfg): Likewise.
16908 * tree-cfg.c (replace_loop_annotate): Initialize finite_p
16909 from flag_finite_loops at CFG build time.
16910 * tree-ssa-loop-niter.c (finite_loop_p): Check the loops
16911 finite_p flag instead of flag_finite_loops.
16912 * doc/invoke.texi (ffinite-loops): Adjust documentation of
16913 default setting.
16914
16915 2020-04-02 Richard Biener <rguenther@suse.de>
16916
16917 PR debug/94450
16918 * dwarf2out.c (dwarf2out_early_finish): Remove code emitting
16919 DW_TAG_imported_unit.
16920
16921 2020-04-02 Maciej W. Rozycki <macro@wdc.com>
16922
16923 * doc/install.texi (Specific) <riscv32-*-elf, riscv32-*-linux>
16924 <riscv64-*-elf, riscv64-*-linux>: Update binutils requirement to
16925 2.30.
16926
16927 2020-04-02 Kewen Lin <linkw@gcc.gnu.org>
16928
16929 PR tree-optimization/94401
16930 * tree-vect-loop.c (vectorizable_load): Handle VMAT_CONTIGUOUS_REVERSE
16931 access type when loading halves of vector to avoid peeling for gaps.
16932
16933 2020-04-02 Jakub Jelinek <jakub@redhat.com>
16934
16935 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add a space in
16936 between a string literal and MIPS_SYSVERSION_SPEC macro.
16937
16938 2020-04-02 Martin Jambor <mjambor@suse.cz>
16939
16940 * doc/invoke.texi (Optimize Options): Document sra-max-propagations.
16941
16942 2020-04-02 Jakub Jelinek <jakub@redhat.com>
16943
16944 PR rtl-optimization/92264
16945 * params.opt (-param=max-find-base-term-values=): Decrease default
16946 from 2000 to 200.
16947
16948 PR rtl-optimization/92264
16949 * rtl.h (struct rtx_def): Mention that call bit is used as
16950 SP_DERIVED_VALUE_P in cselib.c.
16951 * cselib.c (SP_DERIVED_VALUE_P): Define.
16952 (PRESERVED_VALUE_P, SP_BASED_VALUE_P): Move definitions earlier.
16953 (cselib_hasher::equal): Handle equality between SP_DERIVED_VALUE_P
16954 val_rtx and sp based expression where offsets cancel each other.
16955 (preserve_constants_and_equivs): Formatting fix.
16956 (cselib_reset_table): Add reverse op loc to SP_DERIVED_VALUE_P
16957 locs list for cfa_base_preserved_val if needed. Formatting fix.
16958 (autoinc_split): If the to be returned value is a REG, MEM or
16959 VALUE which has SP_DERIVED_VALUE_P + CONST_INT as one of its
16960 locs, return the SP_DERIVED_VALUE_P VALUE and adjust *off.
16961 (rtx_equal_for_cselib_1): Call autoinc_split even if both
16962 expressions are PLUS in Pmode with CONST_INT second operands.
16963 Handle SP_DERIVED_VALUE_P cases.
16964 (cselib_hash_plus_const_int): New function.
16965 (cselib_hash_rtx): Use it for PLUS in Pmode with CONST_INT
16966 second operand, as well as for PRE_DEC etc. that ought to be
16967 hashed the same way.
16968 (cselib_subst_to_values): Substitute PLUS with Pmode and
16969 CONST_INT operand if the first operand is a VALUE which has
16970 SP_DERIVED_VALUE_P + CONST_INT as one of its locs for the
16971 SP_DERIVED_VALUE_P + adjusted offset.
16972 (cselib_lookup_1): When creating a new VALUE for stack_pointer_rtx,
16973 set SP_DERIVED_VALUE_P on it. Set PRESERVED_VALUE_P when adding
16974 SP_DERIVED_VALUE_P PRESERVED_VALUE_P subseted VALUE location.
16975 * var-tracking.c (vt_initialize): Call cselib_add_permanent_equiv
16976 on the sp value before calling cselib_add_permanent_equiv on the
16977 cfa_base value.
16978 * dse.c (check_for_inc_dec_1, check_for_inc_dec): Punt on RTX_AUTOINC
16979 in the insn without REG_INC note.
16980 (replace_read): Punt on RTX_AUTOINC in the *loc being replaced.
16981 Punt on invalid insns added by copy_to_mode_reg. Formatting fixes.
16982
16983 PR target/94435
16984 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): For
16985 y_mode E_[QH]Imode and y being a CONST_INT, change y_mode to SImode.
16986
16987 2020-04-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
16988
16989 PR target/94317
16990 * config/arm/arm-builtins.c (LDRGBWBXU_QUALIFIERS): Define.
16991 (LDRGBWBXU_Z_QUALIFIERS): Likewise.
16992 * config/arm/arm_mve.h (__arm_vldrdq_gather_base_wb_s64): Modify
16993 intrinsic defintion by adding a new builtin call to writeback into base
16994 address.
16995 (__arm_vldrdq_gather_base_wb_u64): Likewise.
16996 (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
16997 (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
16998 (__arm_vldrwq_gather_base_wb_s32): Likewise.
16999 (__arm_vldrwq_gather_base_wb_u32): Likewise.
17000 (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
17001 (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
17002 (__arm_vldrwq_gather_base_wb_f32): Likewise.
17003 (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
17004 * config/arm/arm_mve_builtins.def (vldrwq_gather_base_wb_z_u): Modify
17005 builtin's qualifier.
17006 (vldrdq_gather_base_wb_z_u): Likewise.
17007 (vldrwq_gather_base_wb_u): Likewise.
17008 (vldrdq_gather_base_wb_u): Likewise.
17009 (vldrwq_gather_base_wb_z_s): Likewise.
17010 (vldrwq_gather_base_wb_z_f): Likewise.
17011 (vldrdq_gather_base_wb_z_s): Likewise.
17012 (vldrwq_gather_base_wb_s): Likewise.
17013 (vldrwq_gather_base_wb_f): Likewise.
17014 (vldrdq_gather_base_wb_s): Likewise.
17015 (vldrwq_gather_base_nowb_z_u): Define builtin.
17016 (vldrdq_gather_base_nowb_z_u): Likewise.
17017 (vldrwq_gather_base_nowb_u): Likewise.
17018 (vldrdq_gather_base_nowb_u): Likewise.
17019 (vldrwq_gather_base_nowb_z_s): Likewise.
17020 (vldrwq_gather_base_nowb_z_f): Likewise.
17021 (vldrdq_gather_base_nowb_z_s): Likewise.
17022 (vldrwq_gather_base_nowb_s): Likewise.
17023 (vldrwq_gather_base_nowb_f): Likewise.
17024 (vldrdq_gather_base_nowb_s): Likewise.
17025 * config/arm/mve.md (mve_vldrwq_gather_base_nowb_<supf>v4si): Define RTL
17026 pattern.
17027 (mve_vldrwq_gather_base_wb_<supf>v4si): Modify RTL pattern.
17028 (mve_vldrwq_gather_base_nowb_z_<supf>v4si): Define RTL pattern.
17029 (mve_vldrwq_gather_base_wb_z_<supf>v4si): Modify RTL pattern.
17030 (mve_vldrwq_gather_base_wb_fv4sf): Modify RTL pattern.
17031 (mve_vldrwq_gather_base_nowb_fv4sf): Define RTL pattern.
17032 (mve_vldrwq_gather_base_wb_z_fv4sf): Modify RTL pattern.
17033 (mve_vldrwq_gather_base_nowb_z_fv4sf): Define RTL pattern.
17034 (mve_vldrdq_gather_base_nowb_<supf>v4di): Define RTL pattern.
17035 (mve_vldrdq_gather_base_wb_<supf>v4di): Modify RTL pattern.
17036 (mve_vldrdq_gather_base_nowb_z_<supf>v4di): Define RTL pattern.
17037 (mve_vldrdq_gather_base_wb_z_<supf>v4di): Modify RTL pattern.
17038
17039 2020-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
17040
17041 * config/s390/vector.md ("<ti*>add<mode>3", "mul<mode>3")
17042 ("and<mode>3", "notand<mode>3", "ior<mode>3", "ior_not<mode>3")
17043 ("xor<mode>3", "notxor<mode>3", "smin<mode>3", "smax<mode>3")
17044 ("umin<mode>3", "umax<mode>3", "vec_widen_smult_even_<mode>")
17045 ("vec_widen_umult_even_<mode>", "vec_widen_smult_odd_<mode>")
17046 ("vec_widen_umult_odd_<mode>", "add<mode>3", "sub<mode>3")
17047 ("mul<mode>3", "fma<mode>4", "fms<mode>4", "neg_fma<mode>4")
17048 ("neg_fms<mode>4", "*smax<mode>3_vxe", "*smaxv2df3_vx")
17049 ("*smin<mode>3_vxe", "*sminv2df3_vx"): Remove % constraint
17050 modifier.
17051 ("vec_widen_umult_lo_<mode>", "vec_widen_umult_hi_<mode>")
17052 ("vec_widen_smult_lo_<mode>", "vec_widen_smult_hi_<mode>"):
17053 Remove constraints from expander.
17054 * config/s390/vx-builtins.md ("vacc<bhfgq>_<mode>", "vacq")
17055 ("vacccq", "vec_avg<mode>", "vec_avgu<mode>", "vec_vmal<mode>")
17056 ("vec_vmah<mode>", "vec_vmalh<mode>", "vec_vmae<mode>")
17057 ("vec_vmale<mode>", "vec_vmao<mode>", "vec_vmalo<mode>")
17058 ("vec_smulh<mode>", "vec_umulh<mode>", "vec_nor<mode>3")
17059 ("vfmin<mode>", "vfmax<mode>"): Remove % constraint modifier.
17060
17061 2020-04-01 Peter Bergner <bergner@linux.ibm.com>
17062
17063 PR rtl-optimization/94123
17064 * lower-subreg.c (pass_lower_subreg3::gate): Remove test for
17065 flag_split_wide_types_early.
17066
17067 2020-04-01 Joerg Sonnenberger <joerg@bec.de>
17068
17069 * doc/extend.texi (Common Function Attributes): Fix typo.
17070
17071 2020-04-01 Segher Boessenkool <segher@kernel.crashing.org>
17072
17073 PR target/94420
17074 * config/rs6000/rs6000.md (*tocref<mode> for P): Add insn condition
17075 on operands[1].
17076
17077 2020-04-01 Zackery Spytz <zspytz@gmail.com>
17078
17079 * doc/extend.texi: Fix a typo in the documentation of the
17080 copy function attribute.
17081
17082 2020-04-01 Jakub Jelinek <jakub@redhat.com>
17083
17084 PR middle-end/94423
17085 * tree-object-size.c (pass_object_sizes::execute): Don't call
17086 replace_uses_by for SSA_NAME_OCCURS_IN_ABNORMAL_PHI lhs, instead
17087 call replace_call_with_value.
17088
17089 2020-04-01 Kewen Lin <linkw@gcc.gnu.org>
17090
17091 PR tree-optimization/94043
17092 * tree-vect-loop.c (vectorizable_live_operation): Generate loop-closed
17093 phi for vec_lhs and use it for lane extraction.
17094
17095 2020-03-31 Felix Yang <felix.yang@huawei.com>
17096
17097 PR tree-optimization/94398
17098 * tree-vect-stmts.c (vectorizable_store): Instead of calling
17099 vect_supportable_dr_alignment, set alignment_support_scheme to
17100 dr_unaligned_supported for gather-scatter accesses.
17101 (vectorizable_load): Likewise.
17102
17103 2020-03-31 Andrew Stubbs <ams@codesourcery.com>
17104
17105 * config/gcn/gcn-valu.md (V_QI, V_HI, V_HF, V_SI, V_SF, V_DI, V_DF):
17106 New mode iterators.
17107 (vnsi, VnSI, vndi, VnDI): New mode attributes.
17108 (mov<mode>): Use <VnDI> in place of V64DI.
17109 (mov<mode>_exec): Likewise.
17110 (mov<mode>_sgprbase): Likewise.
17111 (reload_out<mode>): Likewise.
17112 (*vec_set<mode>_1): Use GET_MODE_NUNITS instead of constant 64.
17113 (gather_load<mode>v64si): Rename to ...
17114 (gather_load<mode><vnsi>): ... this, and use <VnSI> in place of V64SI,
17115 and <VnDI> in place of V64DI.
17116 (gather<mode>_insn_1offset<exec>): Use <VnDI> in place of V64DI.
17117 (gather<mode>_insn_1offset_ds<exec>): Use <VnSI> in place of V64SI.
17118 (gather<mode>_insn_2offsets<exec>): Use <VnSI> and <VnDI>.
17119 (scatter_store<mode>v64si): Rename to ...
17120 (scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
17121 (scatter<mode>_expr<exec_scatter>): Use <VnSI> and <VnDI>.
17122 (scatter<mode>_insn_1offset<exec_scatter>): Likewise.
17123 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17124 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17125 (ds_bpermute<mode>): Use <VnSI>.
17126 (addv64si3_vcc<exec_vcc>): Rename to ...
17127 (add<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
17128 (addv64si3_vcc_dup<exec_vcc>): Rename to ...
17129 (add<mode>3_vcc_dup<exec_vcc>): ... this, and use V_SI.
17130 (addcv64si3<exec_vcc>): Rename to ...
17131 (addc<mode>3<exec_vcc>): ... this, and use V_SI.
17132 (subv64si3_vcc<exec_vcc>): Rename to ...
17133 (sub<mode>3_vcc<exec_vcc>): ... this, and use V_SI.
17134 (subcv64si3<exec_vcc>): Rename to ...
17135 (subc<mode>3<exec_vcc>): ... this, and use V_SI.
17136 (addv64di3): Rename to ...
17137 (add<mode>3): ... this, and use V_DI.
17138 (addv64di3_exec): Rename to ...
17139 (add<mode>3_exec): ... this, and use V_DI.
17140 (subv64di3): Rename to ...
17141 (sub<mode>3): ... this, and use V_DI.
17142 (subv64di3_exec): Rename to ...
17143 (sub<mode>3_exec): ... this, and use V_DI.
17144 (addv64di3_zext): Rename to ...
17145 (add<mode>3_zext): ... this, and use V_DI and <VnSI>.
17146 (addv64di3_zext_exec): Rename to ...
17147 (add<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
17148 (addv64di3_zext_dup): Rename to ...
17149 (add<mode>3_zext_dup): ... this, and use V_DI and <VnSI>.
17150 (addv64di3_zext_dup_exec): Rename to ...
17151 (add<mode>3_zext_dup_exec): ... this, and use V_DI and <VnSI>.
17152 (addv64di3_zext_dup2): Rename to ...
17153 (add<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
17154 (addv64di3_zext_dup2_exec): Rename to ...
17155 (add<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
17156 (addv64di3_sext_dup2): Rename to ...
17157 (add<mode>3_sext_dup2): ... this, and use V_DI and <VnSI>.
17158 (addv64di3_sext_dup2_exec): Rename to ...
17159 (add<mode>3_sext_dup2_exec): ... this, and use V_DI and <VnSI>.
17160 (<su>mulv64si3_highpart<exec>): Rename to ...
17161 (<su>mul<mode>3_highpart<exec>): ... this and use V_SI and <VnDI>.
17162 (mulv64di3): Rename to ...
17163 (mul<mode>3): ... this, and use V_DI and <VnSI>.
17164 (mulv64di3_exec): Rename to ...
17165 (mul<mode>3_exec): ... this, and use V_DI and <VnSI>.
17166 (mulv64di3_zext): Rename to ...
17167 (mul<mode>3_zext): ... this, and use V_DI and <VnSI>.
17168 (mulv64di3_zext_exec): Rename to ...
17169 (mul<mode>3_zext_exec): ... this, and use V_DI and <VnSI>.
17170 (mulv64di3_zext_dup2): Rename to ...
17171 (mul<mode>3_zext_dup2): ... this, and use V_DI and <VnSI>.
17172 (mulv64di3_zext_dup2_exec): Rename to ...
17173 (mul<mode>3_zext_dup2_exec): ... this, and use V_DI and <VnSI>.
17174 (<expander>v64di3): Rename to ...
17175 (<expander><mode>3): ... this, and use V_DI and <VnSI>.
17176 (<expander>v64di3_exec): Rename to ...
17177 (<expander><mode>3_exec): ... this, and use V_DI and <VnSI>.
17178 (<expander>v64si3<exec>): Rename to ...
17179 (<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
17180 (v<expander>v64si3<exec>): Rename to ...
17181 (v<expander><mode>3<exec>): ... this, and use V_SI and <VnSI>.
17182 (<expander>v64si3<exec>): Rename to ...
17183 (<expander><vnsi>3<exec>): ... this, and use V_SI.
17184 (subv64df3<exec>): Rename to ...
17185 (sub<mode>3<exec>): ... this, and use V_DF.
17186 (truncv64di<mode>2): Rename to ...
17187 (trunc<vndi><mode>2): ... this, and use <VnDI>.
17188 (truncv64di<mode>2_exec): Rename to ...
17189 (trunc<vndi><mode>2_exec): ... this, and use <VnDI>.
17190 (<convop><mode>v64di2): Rename to ...
17191 (<convop><mode><vndi>2): ... this, and use <VnDI>.
17192 (<convop><mode>v64di2_exec): Rename to ...
17193 (<convop><mode><vndi>2_exec): ... this, and use <VnDI>.
17194 (vec_cmp<u>v64qidi): Rename to ...
17195 (vec_cmp<u><mode>di): ... this, and use <VnSI>.
17196 (vec_cmp<u>v64qidi_exec): Rename to ...
17197 (vec_cmp<u><mode>di_exec): ... this, and use <VnSI>.
17198 (vcond_mask_<mode>di): Use <VnDI>.
17199 (maskload<mode>di): Likewise.
17200 (maskstore<mode>di): Likewise.
17201 (mask_gather_load<mode>v64si): Rename to ...
17202 (mask_gather_load<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
17203 (mask_scatter_store<mode>v64si): Rename to ...
17204 (mask_scatter_store<mode><vnsi>): ... this, and use <VnSI> and <VnDI>.
17205 (*<reduc_op>_dpp_shr_v64di): Rename to ...
17206 (*<reduc_op>_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
17207 (*plus_carry_in_dpp_shr_v64si): Rename to ...
17208 (*plus_carry_in_dpp_shr_<mode>): ... this, and use V_SI.
17209 (*plus_carry_dpp_shr_v64di): Rename to ...
17210 (*plus_carry_dpp_shr_<mode>): ... this, and use V_DI and <VnSI>.
17211 (vec_seriesv64si): Rename to ...
17212 (vec_series<mode>): ... this, and use V_SI.
17213 (vec_seriesv64di): Rename to ...
17214 (vec_series<mode>): ... this, and use V_DI.
17215
17216 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
17217
17218 * config/arc/arc.c (arc_print_operand): Use
17219 HOST_WIDE_INT_PRINT_DEC macro.
17220
17221 2020-03-31 Claudiu Zissulescu <claziss@synopsys.com>
17222
17223 * config/arc/arc.h (ASM_FORMAT_PRIVATE_NAME): Fix it.
17224
17225 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17226
17227 * config/arm/arm_mve.h (vbicq): Define MVE intrinsic polymorphic
17228 variant.
17229 (__arm_vbicq): Likewise.
17230
17231 2020-03-31 Vineet Gupta <vgupta@synopsys.com>
17232
17233 * config/arc/linux.h: GLIBC_DYNAMIC_LINKER support BE/arc700.
17234
17235 2020-03-31 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17236
17237 * config/arm/arm_mve.h (vaddlvq): Move the polymorphic variant to the
17238 common section of both MVE Integer and MVE Floating Point.
17239 (vaddvq): Likewise.
17240 (vaddlvq_p): Likewise.
17241 (vaddvaq): Likewise.
17242 (vaddvq_p): Likewise.
17243 (vcmpcsq): Likewise.
17244 (vmlsdavxq): Likewise.
17245 (vmlsdavq): Likewise.
17246 (vmladavxq): Likewise.
17247 (vmladavq): Likewise.
17248 (vminvq): Likewise.
17249 (vminavq): Likewise.
17250 (vmaxvq): Likewise.
17251 (vmaxavq): Likewise.
17252 (vmlaldavq): Likewise.
17253 (vcmphiq): Likewise.
17254 (vaddlvaq): Likewise.
17255 (vrmlaldavhq): Likewise.
17256 (vrmlaldavhxq): Likewise.
17257 (vrmlsldavhq): Likewise.
17258 (vrmlsldavhxq): Likewise.
17259 (vmlsldavxq): Likewise.
17260 (vmlsldavq): Likewise.
17261 (vabavq): Likewise.
17262 (vrmlaldavhaq): Likewise.
17263 (vcmpgeq_m_n): Likewise.
17264 (vmlsdavxq_p): Likewise.
17265 (vmlsdavq_p): Likewise.
17266 (vmlsdavaxq): Likewise.
17267 (vmlsdavaq): Likewise.
17268 (vaddvaq_p): Likewise.
17269 (vcmpcsq_m_n): Likewise.
17270 (vcmpcsq_m): Likewise.
17271 (vmladavxq_p): Likewise.
17272 (vmladavq_p): Likewise.
17273 (vmladavaxq): Likewise.
17274 (vmladavaq): Likewise.
17275 (vminvq_p): Likewise.
17276 (vminavq_p): Likewise.
17277 (vmaxvq_p): Likewise.
17278 (vmaxavq_p): Likewise.
17279 (vcmphiq_m): Likewise.
17280 (vaddlvaq_p): Likewise.
17281 (vmlaldavaq): Likewise.
17282 (vmlaldavaxq): Likewise.
17283 (vmlaldavq_p): Likewise.
17284 (vmlaldavxq_p): Likewise.
17285 (vmlsldavaq): Likewise.
17286 (vmlsldavaxq): Likewise.
17287 (vmlsldavq_p): Likewise.
17288 (vmlsldavxq_p): Likewise.
17289 (vrmlaldavhaxq): Likewise.
17290 (vrmlaldavhq_p): Likewise.
17291 (vrmlaldavhxq_p): Likewise.
17292 (vrmlsldavhaq): Likewise.
17293 (vrmlsldavhaxq): Likewise.
17294 (vrmlsldavhq_p): Likewise.
17295 (vrmlsldavhxq_p): Likewise.
17296 (vabavq_p): Likewise.
17297 (vmladavaq_p): Likewise.
17298 (vstrbq_scatter_offset): Likewise.
17299 (vstrbq_p): Likewise.
17300 (vstrbq_scatter_offset_p): Likewise.
17301 (vstrdq_scatter_base_p): Likewise.
17302 (vstrdq_scatter_base): Likewise.
17303 (vstrdq_scatter_offset_p): Likewise.
17304 (vstrdq_scatter_offset): Likewise.
17305 (vstrdq_scatter_shifted_offset_p): Likewise.
17306 (vstrdq_scatter_shifted_offset): Likewise.
17307 (vmaxq_x): Likewise.
17308 (vminq_x): Likewise.
17309 (vmovlbq_x): Likewise.
17310 (vmovltq_x): Likewise.
17311 (vmulhq_x): Likewise.
17312 (vmullbq_int_x): Likewise.
17313 (vmullbq_poly_x): Likewise.
17314 (vmulltq_int_x): Likewise.
17315 (vmulltq_poly_x): Likewise.
17316 (vstrbq): Likewise.
17317
17318 2020-03-31 Jakub Jelinek <jakub@redhat.com>
17319
17320 PR target/94368
17321 * config/aarch64/constraints.md (Uph): New constraint.
17322 * config/aarch64/atomics.md (cas_short_expected_imm): New mode attr.
17323 (@aarch64_compare_and_swap<mode>): Use it instead of n in operand 2's
17324 constraint.
17325
17326 2020-03-31 Marc Glisse <marc.glisse@inria.fr>
17327 Jakub Jelinek <jakub@redhat.com>
17328
17329 PR middle-end/94412
17330 * fold-const.c (fold_binary_loc) <case TRUNC_DIV_EXPR>: Use
17331 ANY_INTEGRAL_TYPE_P instead of INTEGRAL_TYPE_P.
17332
17333 2020-03-31 Jakub Jelinek <jakub@redhat.com>
17334
17335 PR tree-optimization/94403
17336 * gimple-ssa-store-merging.c (verify_symbolic_number_p): Allow also
17337 ENUMERAL_TYPE lhs_type.
17338
17339 PR rtl-optimization/94344
17340 * tree-ssa-forwprop.c (simplify_rotate): Handle also same precision
17341 conversions, either on both operands of |^+ or just one. Handle
17342 also extra same precision conversion on RSHIFT_EXPR first operand
17343 provided RSHIFT_EXPR is performed in unsigned type.
17344
17345 2020-03-30 David Malcolm <dmalcolm@redhat.com>
17346
17347 * lra.c (finish_insn_code_data_once): Set the array elements
17348 to NULL after freeing them.
17349
17350 2020-03-30 Andreas Schwab <schwab@suse.de>
17351
17352 * config/host-linux.c (TRY_EMPTY_VM_SPACE) [__riscv && __LP64__]:
17353 Define.
17354
17355 2020-03-30 Will Schmidt <will_schmidt@vnet.ibm.com>
17356
17357 * config/rs6000/rs6000-call.c altivec_init_builtins(): Remove code
17358 to skip defining builtins based on builtin_mask.
17359
17360 2020-03-30 Jakub Jelinek <jakub@redhat.com>
17361
17362 PR target/94343
17363 * config/i386/sse.md (<mask_codefor>one_cmpl<mode>2<mask_name>): If
17364 !TARGET_AVX512VL, use 512-bit vpternlog and make sure the input
17365 operand is a register. Don't enable masked variants for V*[QH]Imode.
17366
17367 PR target/93069
17368 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Use
17369 <store_mask_constraint> instead of m in output operand constraint.
17370 (vec_extract_hi_<mode><mask_name>): Use <mask_operand2> instead of
17371 %{%3%}.
17372
17373 2020-03-30 Alan Modra <amodra@gmail.com>
17374
17375 * config/rs6000/rs6000.c (rs6000_call_aix): Emit cookie to pattern.
17376 (rs6000_indirect_call_template_1): Adjust to suit.
17377 * config/rs6000/rs6000.md (call_local): Merge call_local32,
17378 call_local64, and call_local_aix.
17379 (call_value_local): Simlarly.
17380 (call_nonlocal_aix, call_value_nonlocal_aix): Adjust rtl to suit,
17381 and disable pattern when CALL_LONG.
17382 (call_indirect_aix, call_value_indirect_aix): Adjust rtl.
17383 (call_indirect_elfv2, call_indirect_pcrel): Likewise.
17384 (call_value_indirect_elfv2, call_value_indirect_pcrel): Likewise.
17385
17386 2020-03-29 H.J. Lu <hongjiu.lu@intel.com>
17387
17388 PR driver/94381
17389 * doc/invoke.texi: Update -falign-functions, -falign-loops and
17390 -falign-jumps documentation.
17391
17392 2020-03-29 Martin Liska <mliska@suse.cz>
17393
17394 PR ipa/94363
17395 * cgraphunit.c (process_function_and_variable_attributes): Remove
17396 double 'attribute' words.
17397
17398 2020-03-29 John David Anglin <dave.anglin@bell.net>
17399
17400 * config/pa/pa.c (pa_asm_output_aligned_bss): Delete duplicate
17401 .align output.
17402
17403 2020-03-28 Jakub Jelinek <jakub@redhat.com>
17404
17405 PR c/93573
17406 * c-decl.c (grokdeclarator): After issuing errors, set size_int_const
17407 to true after setting size to integer_one_node.
17408
17409 PR tree-optimization/94329
17410 * tree-ssa-reassoc.c (reassociate_bb): When calling reassoc_remove_stmt
17411 on the last stmt in a bb, make sure gsi_prev isn't done immediately
17412 after gsi_last_bb.
17413
17414 2020-03-27 Alan Modra <amodra@gmail.com>
17415
17416 PR target/94145
17417 * config/rs6000/rs6000.c (rs6000_longcall_ref): Use unspec_volatile
17418 for PLT16_LO and PLT_PCREL.
17419 * config/rs6000/rs6000.md (UNSPEC_PLT16_LO, UNSPEC_PLT_PCREL): Remove.
17420 (UNSPECV_PLT16_LO, UNSPECV_PLT_PCREL): Define.
17421 (pltseq_plt16_lo_, pltseq_plt_pcrel): Use unspec_volatile.
17422
17423 2020-03-27 Martin Sebor <msebor@redhat.com>
17424
17425 PR c++/94098
17426 * calls.c (init_attr_rdwr_indices): Iterate over all access attributes.
17427
17428 2020-03-27 Andrew Stubbs <ams@codesourcery.com>
17429
17430 * config/gcn/gcn-valu.md:
17431 (VEC_SUBDWORD_MODE): Rename to V_QIHI throughout.
17432 (VEC_1REG_MODE): Delete.
17433 (VEC_1REG_ALT): Delete.
17434 (VEC_ALL1REG_MODE): Rename to V_1REG throughout.
17435 (VEC_1REG_INT_MODE): Delete.
17436 (VEC_ALL1REG_INT_MODE): Rename to V_INT_1REG throughout.
17437 (VEC_ALL1REG_INT_ALT): Rename to V_INT_1REG_ALT throughout.
17438 (VEC_2REG_MODE): Rename to V_2REG throughout.
17439 (VEC_REG_MODE): Rename to V_noHI throughout.
17440 (VEC_ALLREG_MODE): Rename to V_ALL throughout.
17441 (VEC_ALLREG_ALT): Rename to V_ALL_ALT throughout.
17442 (VEC_ALLREG_INT_MODE): Rename to V_INT throughout.
17443 (VEC_INT_MODE): Delete.
17444 (VEC_FP_MODE): Rename to V_FP throughout and move to top.
17445 (VEC_FP_1REG_MODE): Rename to V_FP_1REG throughout and move to top.
17446 (FP_MODE): Delete and replace with FP throughout.
17447 (FP_1REG_MODE): Delete and replace with FP_1REG throughout.
17448 (VCMP_MODE): Rename to V_noQI throughout and move to top.
17449 (VCMP_MODE_INT): Rename to V_INT_noQI throughout and move to top.
17450 * config/gcn/gcn.md (FP): New mode iterator.
17451 (FP_1REG): New mode iterator.
17452
17453 2020-03-27 David Malcolm <dmalcolm@redhat.com>
17454
17455 * doc/invoke.texi (-fdump-analyzer-supergraph): Document that this
17456 now emits two .dot files.
17457 * graphviz.cc (graphviz_out::begin_tr): Only emit a TR, not a TD.
17458 (graphviz_out::end_tr): Only close a TR, not a TD.
17459 (graphviz_out::begin_td): New.
17460 (graphviz_out::end_td): New.
17461 (graphviz_out::begin_trtd): New, replacing the old implementation
17462 of graphviz_out::begin_tr.
17463 (graphviz_out::end_tdtr): New, replacing the old implementation
17464 of graphviz_out::end_tr.
17465 * graphviz.h (graphviz_out::begin_td): New decl.
17466 (graphviz_out::end_td): New decl.
17467 (graphviz_out::begin_trtd): New decl.
17468 (graphviz_out::end_tdtr): New decl.
17469
17470 2020-03-27 Richard Biener <rguenther@suse.de>
17471
17472 PR debug/94273
17473 * dwarf2out.c (should_emit_struct_debug): Return false for
17474 DINFO_LEVEL_TERSE.
17475
17476 2020-03-27 Richard Biener <rguenther@suse.de>
17477
17478 PR tree-optimization/94352
17479 * tree-ssa-propagate.c (ssa_prop_init): Move seeding of the
17480 worklist ...
17481 (ssa_propagation_engine::ssa_propagate): ... here after
17482 initializing curr_order.
17483
17484 2020-03-27 Kewen Lin <linkw@gcc.gnu.org>
17485
17486 PR tree-optimization/90332
17487 * tree-vect-stmts.c (vector_vector_composition_type): New function.
17488 (get_group_load_store_type): Adjust to call
17489 vector_vector_composition_type, extend it to construct with scalar
17490 types.
17491 (vectorizable_load): Likewise.
17492
17493 2020-03-27 Roman Zhuykov <zhroma@ispras.ru>
17494
17495 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove assertions.
17496 (create_ddg_dep_no_link): Likewise.
17497 (add_cross_iteration_register_deps): Move debug instruction check.
17498 Other minor refactoring.
17499 (add_intra_loop_mem_dep): Do not check for debug instructions.
17500 (add_inter_loop_mem_dep): Likewise.
17501 (build_intra_loop_deps): Likewise.
17502 (create_ddg): Do not include debug insns into the graph.
17503 * ddg.h (struct ddg): Remove num_debug field.
17504 * modulo-sched.c (doloop_register_get): Adjust condition.
17505 (res_MII): Remove DDG num_debug field usage.
17506 (sms_schedule_by_order): Use assertion against debug insns.
17507 (ps_has_conflicts): Drop debug insn check.
17508
17509 2020-03-26 Jakub Jelinek <jakub@redhat.com>
17510
17511 PR debug/94323
17512 * tree.c (protected_set_expr_location): Recurse on STATEMENT_LIST
17513 that contains exactly one non-DEBUG_BEGIN_STMT statement.
17514
17515 PR debug/94281
17516 * gimple.h (gimple_seq_first_nondebug_stmt): New function.
17517 (gimple_seq_last_nondebug_stmt): Don't return NULL if seq contains
17518 a single non-debug stmt followed by one or more debug stmts.
17519 * gimplify.c (gimplify_body): Use gimple_seq_first_nondebug_stmt
17520 instead of gimple_seq_first_stmt, use gimple_seq_first_nondebug_stmt
17521 and gimple_seq_last_nondebug_stmt instead of gimple_seq_first and
17522 gimple_seq_last to check if outer_stmt gbind could be reused and
17523 if yes and it is surrounded by any debug stmts, move them into the
17524 gbind body.
17525
17526 PR rtl-optimization/92264
17527 * var-tracking.c (add_stores): Call cselib_set_value_sp_based even
17528 for sp based values in !frame_pointer_needed
17529 && !ACCUMULATE_OUTGOING_ARGS functions.
17530
17531 2020-03-26 Felix Yang <felix.yang@huawei.com>
17532
17533 PR tree-optimization/94269
17534 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Restrict
17535 this
17536 operation to single basic block.
17537
17538 2020-03-25 Jeff Law <law@redhat.com>
17539
17540 PR rtl-optimization/90275
17541 * config/sh/sh.md (mov_neg_si_t): Clobber the T register in the
17542 pattern.
17543
17544 2020-03-25 Jakub Jelinek <jakub@redhat.com>
17545
17546 PR target/94292
17547 * config/arm/arm.c (arm_gen_dicompare_reg): Set mode of COMPARE to
17548 mode rather than VOIDmode.
17549
17550 2020-03-25 Martin Sebor <msebor@redhat.com>
17551
17552 PR middle-end/94004
17553 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Issue warnings
17554 even for alloca calls resulting from system macro expansion.
17555 Include inlining context in all warnings.
17556
17557 2020-03-25 Richard Sandiford <richard.sandiford@arm.com>
17558
17559 PR target/94254
17560 * config/rs6000/rs6000.c (rs6000_can_change_mode_class): Allow
17561 FPRs to change between SDmode and DDmode.
17562
17563 2020-03-25 Martin Sebor <msebor@redhat.com>
17564
17565 PR tree-optimization/94131
17566 * gimple-fold.c (get_range_strlen_tree): Fail for variable-length
17567 types and decls.
17568 * tree-ssa-strlen.c (get_range_strlen_dynamic): Avoid assuming
17569 types have constant sizes.
17570
17571 2020-03-25 Martin Liska <mliska@suse.cz>
17572
17573 PR lto/94259
17574 * configure.ac: Report error only when --with-zstd
17575 is used.
17576 * configure: Regenerate.
17577
17578 2020-03-25 Jakub Jelinek <jakub@redhat.com>
17579
17580 PR target/94308
17581 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Set
17582 INSN_CODE (insn) to -1 when changing the pattern.
17583
17584 2020-03-25 Martin Liska <mliska@suse.cz>
17585
17586 PR target/93274
17587 PR ipa/94271
17588 * config/i386/i386-features.c (make_resolver_func): Drop
17589 public flag for resolver.
17590 * config/rs6000/rs6000.c (make_resolver_func): Add comdat
17591 group for resolver and drop public flag if possible.
17592 * multiple_target.c (create_dispatcher_calls): Drop unique_name
17593 and resolution as we want to enable LTO privatization of the default
17594 symbol.
17595
17596 2020-03-25 Martin Liska <mliska@suse.cz>
17597
17598 PR lto/94259
17599 * configure.ac: Respect --without-zstd and report
17600 error when we can't find header file with --with-zstd.
17601 * configure: Regenerate.
17602
17603 2020-03-25 Jakub Jelinek <jakub@redhat.com>
17604
17605 PR middle-end/94303
17606 * varasm.c (output_constructor_array_range): If local->index
17607 RANGE_EXPR doesn't start at the current location in the constructor,
17608 skip needed number of bytes using assemble_zeros or assert we don't
17609 go backwards.
17610
17611 PR c++/94223
17612 * langhooks.c (lhd_set_decl_assembler_name): Use a static ulong
17613 counter instead of DECL_UID.
17614
17615 PR tree-optimization/94300
17616 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): If pd.offset
17617 is positive, make sure that off + size isn't larger than needed_len.
17618
17619 2020-03-25 Richard Biener <rguenther@suse.de>
17620 Jakub Jelinek <jakub@redhat.com>
17621
17622 PR debug/94283
17623 * tree-if-conv.c (ifcvt_local_dce): Delete dead statements backwards.
17624
17625 2020-03-24 Christophe Lyon <christophe.lyon@linaro.org>
17626
17627 * doc/sourcebuild.texi (ARM-specific attributes): Add
17628 arm_fp_dp_ok.
17629 (Features for dg-add-options): Add arm_fp_dp.
17630
17631 2020-03-24 John David Anglin <danglin@gcc.gnu.org>
17632
17633 PR lto/94249
17634 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Define __BIG_ENDIAN__.
17635
17636 2020-03-24 Tobias Burnus <tobias@codesourcery.com>
17637
17638 PR libgomp/81689
17639 * omp-offload.c (omp_finish_file): Fix target-link handling if
17640 targetm_common.have_named_sections is false.
17641
17642 2020-03-24 Jakub Jelinek <jakub@redhat.com>
17643
17644 PR target/94286
17645 * config/arm/arm.md (subvdi4, usubvsi4, usubvdi4): Use gen_int_mode
17646 instead of GEN_INT.
17647
17648 PR debug/94285
17649 * tree-ssa-loop-manip.c (create_iv): If after, set stmt location to
17650 e->goto_locus even if gsi_bb (*incr_pos) contains only debug stmts.
17651 If not after and at *incr_pos is a debug stmt, set stmt location to
17652 location of next non-debug stmt after it if any.
17653
17654 PR debug/94283
17655 * tree-if-conv.c (ifcvt_local_dce): For gimple debug stmts, just set
17656 GF_PLF_2, but don't add them to worklist. Don't add an assigment to
17657 worklist or set GF_PLF_2 just because it is used in a debug stmt in
17658 another bb. Formatting improvements.
17659
17660 PR debug/94277
17661 * cgraphunit.c (check_global_declaration): For DECL_EXTERNAL and
17662 non-TREE_PUBLIC non-DECL_ARTIFICIAL FUNCTION_DECLs, set TREE_PUBLIC
17663 regardless of whether TREE_NO_WARNING is set on it or whether
17664 warn_unused_function is true or not.
17665
17666 2020-03-23 Jeff Law <law@redhat.com>
17667
17668 PR rtl-optimization/90275
17669 PR target/94238
17670 PR target/94144
17671 * simplify-rtx.c (comparison_code_valid_for_mode): New function.
17672 (simplify_logical_relational_operation): Use it.
17673
17674 2020-03-23 Jakub Jelinek <jakub@redhat.com>
17675
17676 PR c++/91993
17677 * tree.c (get_narrower): Handle COMPOUND_EXPR by recursing on
17678 ultimate rhs and if returned something different, reconstructing
17679 the COMPOUND_EXPRs.
17680
17681 2020-03-23 Lewis Hyatt <lhyatt@gmail.com>
17682
17683 * opts.c (print_filtered_help): Improve the help text for alias options.
17684
17685 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17686 Andre Vieira <andre.simoesdiasvieira@arm.com>
17687 Mihail Ionescu <mihail.ionescu@arm.com>
17688
17689 * config/arm/arm_mve.h (vshlcq_m_s8): Define macro.
17690 (vshlcq_m_u8): Likewise.
17691 (vshlcq_m_s16): Likewise.
17692 (vshlcq_m_u16): Likewise.
17693 (vshlcq_m_s32): Likewise.
17694 (vshlcq_m_u32): Likewise.
17695 (__arm_vshlcq_m_s8): Define intrinsic.
17696 (__arm_vshlcq_m_u8): Likewise.
17697 (__arm_vshlcq_m_s16): Likewise.
17698 (__arm_vshlcq_m_u16): Likewise.
17699 (__arm_vshlcq_m_s32): Likewise.
17700 (__arm_vshlcq_m_u32): Likewise.
17701 (vshlcq_m): Define polymorphic variant.
17702 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_UNONE_IMM_UNONE):
17703 Use builtin qualifier.
17704 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
17705 * config/arm/mve.md (mve_vshlcq_m_vec_<supf><mode>): Define RTL pattern.
17706 (mve_vshlcq_m_carry_<supf><mode>): Likewise.
17707 (mve_vshlcq_m_<supf><mode>): Likewise.
17708
17709 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17710
17711 * config/arm/arm-builtins.c (LSLL_QUALIFIERS): Define builtin qualifier.
17712 (UQSHL_QUALIFIERS): Likewise.
17713 (ASRL_QUALIFIERS): Likewise.
17714 (SQSHL_QUALIFIERS): Likewise.
17715 * config/arm/arm_mve.h (__ARM_BIG_ENDIAN): Check to not support MVE in
17716 Big-Endian Mode.
17717 (sqrshr): Define macro.
17718 (sqrshrl): Likewise.
17719 (sqrshrl_sat48): Likewise.
17720 (sqshl): Likewise.
17721 (sqshll): Likewise.
17722 (srshr): Likewise.
17723 (srshrl): Likewise.
17724 (uqrshl): Likewise.
17725 (uqrshll): Likewise.
17726 (uqrshll_sat48): Likewise.
17727 (uqshl): Likewise.
17728 (uqshll): Likewise.
17729 (urshr): Likewise.
17730 (urshrl): Likewise.
17731 (lsll): Likewise.
17732 (asrl): Likewise.
17733 (__arm_lsll): Define intrinsic.
17734 (__arm_asrl): Likewise.
17735 (__arm_uqrshll): Likewise.
17736 (__arm_uqrshll_sat48): Likewise.
17737 (__arm_sqrshrl): Likewise.
17738 (__arm_sqrshrl_sat48): Likewise.
17739 (__arm_uqshll): Likewise.
17740 (__arm_urshrl): Likewise.
17741 (__arm_srshrl): Likewise.
17742 (__arm_sqshll): Likewise.
17743 (__arm_uqrshl): Likewise.
17744 (__arm_sqrshr): Likewise.
17745 (__arm_uqshl): Likewise.
17746 (__arm_urshr): Likewise.
17747 (__arm_sqshl): Likewise.
17748 (__arm_srshr): Likewise.
17749 * config/arm/arm_mve_builtins.def (LSLL_QUALIFIERS): Use builtin
17750 qualifier.
17751 (UQSHL_QUALIFIERS): Likewise.
17752 (ASRL_QUALIFIERS): Likewise.
17753 (SQSHL_QUALIFIERS): Likewise.
17754 * config/arm/mve.md (mve_uqrshll_sat<supf>_di): Define RTL pattern.
17755 (mve_sqrshrl_sat<supf>_di): Likewise.
17756 (mve_uqrshl_si): Likewise.
17757 (mve_sqrshr_si): Likewise.
17758 (mve_uqshll_di): Likewise.
17759 (mve_urshrl_di): Likewise.
17760 (mve_uqshl_si): Likewise.
17761 (mve_urshr_si): Likewise.
17762 (mve_sqshl_si): Likewise.
17763 (mve_srshr_si): Likewise.
17764 (mve_srshrl_di): Likewise.
17765 (mve_sqshll_di): Likewise.
17766
17767 2020-03-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17768 Andre Vieira <andre.simoesdiasvieira@arm.com>
17769 Mihail Ionescu <mihail.ionescu@arm.com>
17770
17771 * config/arm/arm_mve.h (vsetq_lane_f16): Define macro.
17772 (vsetq_lane_f32): Likewise.
17773 (vsetq_lane_s16): Likewise.
17774 (vsetq_lane_s32): Likewise.
17775 (vsetq_lane_s8): Likewise.
17776 (vsetq_lane_s64): Likewise.
17777 (vsetq_lane_u8): Likewise.
17778 (vsetq_lane_u16): Likewise.
17779 (vsetq_lane_u32): Likewise.
17780 (vsetq_lane_u64): Likewise.
17781 (vgetq_lane_f16): Likewise.
17782 (vgetq_lane_f32): Likewise.
17783 (vgetq_lane_s16): Likewise.
17784 (vgetq_lane_s32): Likewise.
17785 (vgetq_lane_s8): Likewise.
17786 (vgetq_lane_s64): Likewise.
17787 (vgetq_lane_u8): Likewise.
17788 (vgetq_lane_u16): Likewise.
17789 (vgetq_lane_u32): Likewise.
17790 (vgetq_lane_u64): Likewise.
17791 (__ARM_NUM_LANES): Likewise.
17792 (__ARM_LANEQ): Likewise.
17793 (__ARM_CHECK_LANEQ): Likewise.
17794 (__arm_vsetq_lane_s16): Define intrinsic.
17795 (__arm_vsetq_lane_s32): Likewise.
17796 (__arm_vsetq_lane_s8): Likewise.
17797 (__arm_vsetq_lane_s64): Likewise.
17798 (__arm_vsetq_lane_u8): Likewise.
17799 (__arm_vsetq_lane_u16): Likewise.
17800 (__arm_vsetq_lane_u32): Likewise.
17801 (__arm_vsetq_lane_u64): Likewise.
17802 (__arm_vgetq_lane_s16): Likewise.
17803 (__arm_vgetq_lane_s32): Likewise.
17804 (__arm_vgetq_lane_s8): Likewise.
17805 (__arm_vgetq_lane_s64): Likewise.
17806 (__arm_vgetq_lane_u8): Likewise.
17807 (__arm_vgetq_lane_u16): Likewise.
17808 (__arm_vgetq_lane_u32): Likewise.
17809 (__arm_vgetq_lane_u64): Likewise.
17810 (__arm_vsetq_lane_f16): Likewise.
17811 (__arm_vsetq_lane_f32): Likewise.
17812 (__arm_vgetq_lane_f16): Likewise.
17813 (__arm_vgetq_lane_f32): Likewise.
17814 (vgetq_lane): Define polymorphic variant.
17815 (vsetq_lane): Likewise.
17816 * config/arm/mve.md (mve_vec_extract<mode><V_elem_l>): Define RTL
17817 pattern.
17818 (mve_vec_extractv2didi): Likewise.
17819 (mve_vec_extract_sext_internal<mode>): Likewise.
17820 (mve_vec_extract_zext_internal<mode>): Likewise.
17821 (mve_vec_set<mode>_internal): Likewise.
17822 (mve_vec_setv2di_internal): Likewise.
17823 * config/arm/neon.md (vec_set<mode>): Move RTL pattern to vec-common.md
17824 file.
17825 (vec_extract<mode><V_elem_l>): Rename to
17826 "neon_vec_extract<mode><V_elem_l>".
17827 (vec_extractv2didi): Rename to "neon_vec_extractv2didi".
17828 * config/arm/vec-common.md (vec_extract<mode><V_elem_l>): Define RTL
17829 pattern common for MVE and NEON.
17830 (vec_set<mode>): Move RTL pattern from neon.md and modify to accept both
17831 MVE and NEON.
17832
17833 2020-03-23 Andre Vieira <andre.simoesdiasvieira@arm.com>
17834
17835 * config/arm/mve.md (earlyclobber_32): New mode attribute.
17836 (mve_vrev64q_*, mve_vcaddq*, mve_vhcaddq_*, mve_vcmulq_*,
17837 mve_vmull[bt]q_*, mve_vqdmull[bt]q_*): Add appropriate early clobbers.
17838
17839 2020-03-23 Richard Biener <rguenther@suse.de>
17840
17841 PR tree-optimization/94261
17842 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
17843 IL operand swapping code.
17844 (vect_slp_rearrange_stmts): Do not arrange isomorphic
17845 nodes that would need operation code adjustments.
17846
17847 2020-03-23 Tobias Burnus <tobias@codesourcery.com>
17848
17849 * doc/install.texi (amdgcn-*-amdhsa): Renamed
17850 from amdgcn-unknown-amdhsa; change
17851 amdgcn-unknown-amdhsa to amdgcn-amdhsa.
17852
17853 2020-03-23 Richard Biener <rguenther@suse.de>
17854
17855 PR ipa/94245
17856 * ipa-prop.c (ipa_read_jump_function): Build the ADDR_EXRP
17857 directly rather than also folding it via build_fold_addr_expr.
17858
17859 2020-03-23 Richard Biener <rguenther@suse.de>
17860
17861 PR tree-optimization/94266
17862 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not propagate
17863 addresses of TARGET_MEM_REFs.
17864
17865 2020-03-23 Martin Liska <mliska@suse.cz>
17866
17867 PR ipa/94250
17868 * symtab.c (symtab_node::clone_references): Save speculative_id
17869 as ref may be overwritten by create_reference.
17870 (symtab_node::clone_referring): Likewise.
17871 (symtab_node::clone_reference): Likewise.
17872
17873 2020-03-22 Iain Sandoe <iain@sandoe.co.uk>
17874
17875 * config/i386/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Remove
17876 references to Darwin.
17877 * config/i386/i386.h (JUMP_TABLES_IN_TEXT_SECTION): Define this
17878 unconditionally and comment on why.
17879
17880 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
17881
17882 * config/darwin.c (darwin_mergeable_constant_section): Collect
17883 section anchor checks into the caller.
17884 (machopic_select_section): Collect section anchor checks into
17885 the determination of 'effective zero-size' objects. When the
17886 size is unknown, assume it is non-zero, and thus return the
17887 'generic' section for the DECL.
17888
17889 2020-03-21 Iain Sandoe <iain@sandoe.co.uk>
17890
17891 PR target/93694
17892 * config/darwin.opt: Amend options descriptions.
17893
17894 2020-03-21 Richard Sandiford <richard.sandiford@arm.com>
17895
17896 PR rtl-optimization/94052
17897 * lra-constraints.c (simplify_operand_subreg): Reload the inner
17898 register of a paradoxical subreg if simplify_subreg_regno fails
17899 to give a valid hard register for the outer mode.
17900
17901 2020-03-20 Martin Jambor <mjambor@suse.cz>
17902
17903 PR tree-optimization/93435
17904 * params.opt (sra-max-propagations): New parameter.
17905 * tree-sra.c (propagation_budget): New variable.
17906 (budget_for_propagation_access): New function.
17907 (propagate_subaccesses_from_rhs): Use it.
17908 (propagate_subaccesses_from_lhs): Likewise.
17909 (propagate_all_subaccesses): Set up and destroy propagation_budget.
17910
17911 2020-03-20 Carl Love <cel@us.ibm.com>
17912
17913 PR/target 87583
17914 * config/rs6000/rs6000.c (rs6000_option_override_internal):
17915 Add check for TARGET_FPRND for Power 7 or newer.
17916
17917 2020-03-20 Jan Hubicka <hubicka@ucw.cz>
17918
17919 PR ipa/93347
17920 * cgraph.c (symbol_table::create_edge): Update calls_comdat_local flag.
17921 (cgraph_edge::redirect_callee): Move here; likewise.
17922 (cgraph_node::remove_callees): Update calls_comdat_local flag.
17923 (cgraph_node::verify_node): Verify that calls_comdat_local flag match
17924 reality.
17925 (cgraph_node::check_calls_comdat_local_p): New member function.
17926 * cgraph.h (cgraph_node::check_calls_comdat_local_p): Declare.
17927 (cgraph_edge::redirect_callee): Move offline.
17928 * ipa-fnsummary.c (compute_fn_summary): Do not compute
17929 calls_comdat_local flag here.
17930 * ipa-inline-transform.c (inline_call): Fix updating of
17931 calls_comdat_local flag.
17932 * ipa-split.c (split_function): Use true instead of 1 to set the flag.
17933 * symtab.c (symtab_node::add_to_same_comdat_group): Update
17934 calls_comdat_local flag.
17935
17936 2020-03-20 Richard Biener <rguenther@suse.de>
17937
17938 * tree-vect-slp.c (vect_analyze_slp_instance): Dump SLP tree
17939 from the possibly modified root.
17940
17941 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
17942 Andre Vieira <andre.simoesdiasvieira@arm.com>
17943 Mihail Ionescu <mihail.ionescu@arm.com>
17944
17945 * config/arm/arm_mve.h (vst1q_p_u8): Define macro.
17946 (vst1q_p_s8): Likewise.
17947 (vst2q_s8): Likewise.
17948 (vst2q_u8): Likewise.
17949 (vld1q_z_u8): Likewise.
17950 (vld1q_z_s8): Likewise.
17951 (vld2q_s8): Likewise.
17952 (vld2q_u8): Likewise.
17953 (vld4q_s8): Likewise.
17954 (vld4q_u8): Likewise.
17955 (vst1q_p_u16): Likewise.
17956 (vst1q_p_s16): Likewise.
17957 (vst2q_s16): Likewise.
17958 (vst2q_u16): Likewise.
17959 (vld1q_z_u16): Likewise.
17960 (vld1q_z_s16): Likewise.
17961 (vld2q_s16): Likewise.
17962 (vld2q_u16): Likewise.
17963 (vld4q_s16): Likewise.
17964 (vld4q_u16): Likewise.
17965 (vst1q_p_u32): Likewise.
17966 (vst1q_p_s32): Likewise.
17967 (vst2q_s32): Likewise.
17968 (vst2q_u32): Likewise.
17969 (vld1q_z_u32): Likewise.
17970 (vld1q_z_s32): Likewise.
17971 (vld2q_s32): Likewise.
17972 (vld2q_u32): Likewise.
17973 (vld4q_s32): Likewise.
17974 (vld4q_u32): Likewise.
17975 (vld4q_f16): Likewise.
17976 (vld2q_f16): Likewise.
17977 (vld1q_z_f16): Likewise.
17978 (vst2q_f16): Likewise.
17979 (vst1q_p_f16): Likewise.
17980 (vld4q_f32): Likewise.
17981 (vld2q_f32): Likewise.
17982 (vld1q_z_f32): Likewise.
17983 (vst2q_f32): Likewise.
17984 (vst1q_p_f32): Likewise.
17985 (__arm_vst1q_p_u8): Define intrinsic.
17986 (__arm_vst1q_p_s8): Likewise.
17987 (__arm_vst2q_s8): Likewise.
17988 (__arm_vst2q_u8): Likewise.
17989 (__arm_vld1q_z_u8): Likewise.
17990 (__arm_vld1q_z_s8): Likewise.
17991 (__arm_vld2q_s8): Likewise.
17992 (__arm_vld2q_u8): Likewise.
17993 (__arm_vld4q_s8): Likewise.
17994 (__arm_vld4q_u8): Likewise.
17995 (__arm_vst1q_p_u16): Likewise.
17996 (__arm_vst1q_p_s16): Likewise.
17997 (__arm_vst2q_s16): Likewise.
17998 (__arm_vst2q_u16): Likewise.
17999 (__arm_vld1q_z_u16): Likewise.
18000 (__arm_vld1q_z_s16): Likewise.
18001 (__arm_vld2q_s16): Likewise.
18002 (__arm_vld2q_u16): Likewise.
18003 (__arm_vld4q_s16): Likewise.
18004 (__arm_vld4q_u16): Likewise.
18005 (__arm_vst1q_p_u32): Likewise.
18006 (__arm_vst1q_p_s32): Likewise.
18007 (__arm_vst2q_s32): Likewise.
18008 (__arm_vst2q_u32): Likewise.
18009 (__arm_vld1q_z_u32): Likewise.
18010 (__arm_vld1q_z_s32): Likewise.
18011 (__arm_vld2q_s32): Likewise.
18012 (__arm_vld2q_u32): Likewise.
18013 (__arm_vld4q_s32): Likewise.
18014 (__arm_vld4q_u32): Likewise.
18015 (__arm_vld4q_f16): Likewise.
18016 (__arm_vld2q_f16): Likewise.
18017 (__arm_vld1q_z_f16): Likewise.
18018 (__arm_vst2q_f16): Likewise.
18019 (__arm_vst1q_p_f16): Likewise.
18020 (__arm_vld4q_f32): Likewise.
18021 (__arm_vld2q_f32): Likewise.
18022 (__arm_vld1q_z_f32): Likewise.
18023 (__arm_vst2q_f32): Likewise.
18024 (__arm_vst1q_p_f32): Likewise.
18025 (vld1q_z): Define polymorphic variant.
18026 (vld2q): Likewise.
18027 (vld4q): Likewise.
18028 (vst1q_p): Likewise.
18029 (vst2q): Likewise.
18030 * config/arm/arm_mve_builtins.def (STORE1): Use builtin qualifier.
18031 (LOAD1): Likewise.
18032 * config/arm/mve.md (mve_vst2q<mode>): Define RTL pattern.
18033 (mve_vld2q<mode>): Likewise.
18034 (mve_vld4q<mode>): Likewise.
18035
18036 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18037 Andre Vieira <andre.simoesdiasvieira@arm.com>
18038 Mihail Ionescu <mihail.ionescu@arm.com>
18039
18040 * config/arm/arm-builtins.c (ARM_BUILTIN_GET_FPSCR_NZCVQC): Define.
18041 (ARM_BUILTIN_SET_FPSCR_NZCVQC): Likewise.
18042 (arm_init_mve_builtins): Add "__builtin_arm_get_fpscr_nzcvqc" and
18043 "__builtin_arm_set_fpscr_nzcvqc" to arm_builtin_decls array.
18044 (arm_expand_builtin): Define case ARM_BUILTIN_GET_FPSCR_NZCVQC
18045 and ARM_BUILTIN_SET_FPSCR_NZCVQC.
18046 * config/arm/arm_mve.h (vadciq_s32): Define macro.
18047 (vadciq_u32): Likewise.
18048 (vadciq_m_s32): Likewise.
18049 (vadciq_m_u32): Likewise.
18050 (vadcq_s32): Likewise.
18051 (vadcq_u32): Likewise.
18052 (vadcq_m_s32): Likewise.
18053 (vadcq_m_u32): Likewise.
18054 (vsbciq_s32): Likewise.
18055 (vsbciq_u32): Likewise.
18056 (vsbciq_m_s32): Likewise.
18057 (vsbciq_m_u32): Likewise.
18058 (vsbcq_s32): Likewise.
18059 (vsbcq_u32): Likewise.
18060 (vsbcq_m_s32): Likewise.
18061 (vsbcq_m_u32): Likewise.
18062 (__arm_vadciq_s32): Define intrinsic.
18063 (__arm_vadciq_u32): Likewise.
18064 (__arm_vadciq_m_s32): Likewise.
18065 (__arm_vadciq_m_u32): Likewise.
18066 (__arm_vadcq_s32): Likewise.
18067 (__arm_vadcq_u32): Likewise.
18068 (__arm_vadcq_m_s32): Likewise.
18069 (__arm_vadcq_m_u32): Likewise.
18070 (__arm_vsbciq_s32): Likewise.
18071 (__arm_vsbciq_u32): Likewise.
18072 (__arm_vsbciq_m_s32): Likewise.
18073 (__arm_vsbciq_m_u32): Likewise.
18074 (__arm_vsbcq_s32): Likewise.
18075 (__arm_vsbcq_u32): Likewise.
18076 (__arm_vsbcq_m_s32): Likewise.
18077 (__arm_vsbcq_m_u32): Likewise.
18078 (vadciq_m): Define polymorphic variant.
18079 (vadciq): Likewise.
18080 (vadcq_m): Likewise.
18081 (vadcq): Likewise.
18082 (vsbciq_m): Likewise.
18083 (vsbciq): Likewise.
18084 (vsbcq_m): Likewise.
18085 (vsbcq): Likewise.
18086 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE): Use builtin
18087 qualifier.
18088 (BINOP_UNONE_UNONE_UNONE): Likewise.
18089 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
18090 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
18091 * config/arm/mve.md (VADCIQ): Define iterator.
18092 (VADCIQ_M): Likewise.
18093 (VSBCQ): Likewise.
18094 (VSBCQ_M): Likewise.
18095 (VSBCIQ): Likewise.
18096 (VSBCIQ_M): Likewise.
18097 (VADCQ): Likewise.
18098 (VADCQ_M): Likewise.
18099 (mve_vadciq_m_<supf>v4si): Define RTL pattern.
18100 (mve_vadciq_<supf>v4si): Likewise.
18101 (mve_vadcq_m_<supf>v4si): Likewise.
18102 (mve_vadcq_<supf>v4si): Likewise.
18103 (mve_vsbciq_m_<supf>v4si): Likewise.
18104 (mve_vsbciq_<supf>v4si): Likewise.
18105 (mve_vsbcq_m_<supf>v4si): Likewise.
18106 (mve_vsbcq_<supf>v4si): Likewise.
18107 (get_fpscr_nzcvqc): Define isns.
18108 (set_fpscr_nzcvqc): Define isns.
18109 * config/arm/unspecs.md (UNSPEC_GET_FPSCR_NZCVQC): Define.
18110 (UNSPEC_SET_FPSCR_NZCVQC): Define.
18111
18112 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18113
18114 * config/arm/arm_mve.h (vddupq_x_n_u8): Define macro.
18115 (vddupq_x_n_u16): Likewise.
18116 (vddupq_x_n_u32): Likewise.
18117 (vddupq_x_wb_u8): Likewise.
18118 (vddupq_x_wb_u16): Likewise.
18119 (vddupq_x_wb_u32): Likewise.
18120 (vdwdupq_x_n_u8): Likewise.
18121 (vdwdupq_x_n_u16): Likewise.
18122 (vdwdupq_x_n_u32): Likewise.
18123 (vdwdupq_x_wb_u8): Likewise.
18124 (vdwdupq_x_wb_u16): Likewise.
18125 (vdwdupq_x_wb_u32): Likewise.
18126 (vidupq_x_n_u8): Likewise.
18127 (vidupq_x_n_u16): Likewise.
18128 (vidupq_x_n_u32): Likewise.
18129 (vidupq_x_wb_u8): Likewise.
18130 (vidupq_x_wb_u16): Likewise.
18131 (vidupq_x_wb_u32): Likewise.
18132 (viwdupq_x_n_u8): Likewise.
18133 (viwdupq_x_n_u16): Likewise.
18134 (viwdupq_x_n_u32): Likewise.
18135 (viwdupq_x_wb_u8): Likewise.
18136 (viwdupq_x_wb_u16): Likewise.
18137 (viwdupq_x_wb_u32): Likewise.
18138 (vdupq_x_n_s8): Likewise.
18139 (vdupq_x_n_s16): Likewise.
18140 (vdupq_x_n_s32): Likewise.
18141 (vdupq_x_n_u8): Likewise.
18142 (vdupq_x_n_u16): Likewise.
18143 (vdupq_x_n_u32): Likewise.
18144 (vminq_x_s8): Likewise.
18145 (vminq_x_s16): Likewise.
18146 (vminq_x_s32): Likewise.
18147 (vminq_x_u8): Likewise.
18148 (vminq_x_u16): Likewise.
18149 (vminq_x_u32): Likewise.
18150 (vmaxq_x_s8): Likewise.
18151 (vmaxq_x_s16): Likewise.
18152 (vmaxq_x_s32): Likewise.
18153 (vmaxq_x_u8): Likewise.
18154 (vmaxq_x_u16): Likewise.
18155 (vmaxq_x_u32): Likewise.
18156 (vabdq_x_s8): Likewise.
18157 (vabdq_x_s16): Likewise.
18158 (vabdq_x_s32): Likewise.
18159 (vabdq_x_u8): Likewise.
18160 (vabdq_x_u16): Likewise.
18161 (vabdq_x_u32): Likewise.
18162 (vabsq_x_s8): Likewise.
18163 (vabsq_x_s16): Likewise.
18164 (vabsq_x_s32): Likewise.
18165 (vaddq_x_s8): Likewise.
18166 (vaddq_x_s16): Likewise.
18167 (vaddq_x_s32): Likewise.
18168 (vaddq_x_n_s8): Likewise.
18169 (vaddq_x_n_s16): Likewise.
18170 (vaddq_x_n_s32): Likewise.
18171 (vaddq_x_u8): Likewise.
18172 (vaddq_x_u16): Likewise.
18173 (vaddq_x_u32): Likewise.
18174 (vaddq_x_n_u8): Likewise.
18175 (vaddq_x_n_u16): Likewise.
18176 (vaddq_x_n_u32): Likewise.
18177 (vclsq_x_s8): Likewise.
18178 (vclsq_x_s16): Likewise.
18179 (vclsq_x_s32): Likewise.
18180 (vclzq_x_s8): Likewise.
18181 (vclzq_x_s16): Likewise.
18182 (vclzq_x_s32): Likewise.
18183 (vclzq_x_u8): Likewise.
18184 (vclzq_x_u16): Likewise.
18185 (vclzq_x_u32): Likewise.
18186 (vnegq_x_s8): Likewise.
18187 (vnegq_x_s16): Likewise.
18188 (vnegq_x_s32): Likewise.
18189 (vmulhq_x_s8): Likewise.
18190 (vmulhq_x_s16): Likewise.
18191 (vmulhq_x_s32): Likewise.
18192 (vmulhq_x_u8): Likewise.
18193 (vmulhq_x_u16): Likewise.
18194 (vmulhq_x_u32): Likewise.
18195 (vmullbq_poly_x_p8): Likewise.
18196 (vmullbq_poly_x_p16): Likewise.
18197 (vmullbq_int_x_s8): Likewise.
18198 (vmullbq_int_x_s16): Likewise.
18199 (vmullbq_int_x_s32): Likewise.
18200 (vmullbq_int_x_u8): Likewise.
18201 (vmullbq_int_x_u16): Likewise.
18202 (vmullbq_int_x_u32): Likewise.
18203 (vmulltq_poly_x_p8): Likewise.
18204 (vmulltq_poly_x_p16): Likewise.
18205 (vmulltq_int_x_s8): Likewise.
18206 (vmulltq_int_x_s16): Likewise.
18207 (vmulltq_int_x_s32): Likewise.
18208 (vmulltq_int_x_u8): Likewise.
18209 (vmulltq_int_x_u16): Likewise.
18210 (vmulltq_int_x_u32): Likewise.
18211 (vmulq_x_s8): Likewise.
18212 (vmulq_x_s16): Likewise.
18213 (vmulq_x_s32): Likewise.
18214 (vmulq_x_n_s8): Likewise.
18215 (vmulq_x_n_s16): Likewise.
18216 (vmulq_x_n_s32): Likewise.
18217 (vmulq_x_u8): Likewise.
18218 (vmulq_x_u16): Likewise.
18219 (vmulq_x_u32): Likewise.
18220 (vmulq_x_n_u8): Likewise.
18221 (vmulq_x_n_u16): Likewise.
18222 (vmulq_x_n_u32): Likewise.
18223 (vsubq_x_s8): Likewise.
18224 (vsubq_x_s16): Likewise.
18225 (vsubq_x_s32): Likewise.
18226 (vsubq_x_n_s8): Likewise.
18227 (vsubq_x_n_s16): Likewise.
18228 (vsubq_x_n_s32): Likewise.
18229 (vsubq_x_u8): Likewise.
18230 (vsubq_x_u16): Likewise.
18231 (vsubq_x_u32): Likewise.
18232 (vsubq_x_n_u8): Likewise.
18233 (vsubq_x_n_u16): Likewise.
18234 (vsubq_x_n_u32): Likewise.
18235 (vcaddq_rot90_x_s8): Likewise.
18236 (vcaddq_rot90_x_s16): Likewise.
18237 (vcaddq_rot90_x_s32): Likewise.
18238 (vcaddq_rot90_x_u8): Likewise.
18239 (vcaddq_rot90_x_u16): Likewise.
18240 (vcaddq_rot90_x_u32): Likewise.
18241 (vcaddq_rot270_x_s8): Likewise.
18242 (vcaddq_rot270_x_s16): Likewise.
18243 (vcaddq_rot270_x_s32): Likewise.
18244 (vcaddq_rot270_x_u8): Likewise.
18245 (vcaddq_rot270_x_u16): Likewise.
18246 (vcaddq_rot270_x_u32): Likewise.
18247 (vhaddq_x_n_s8): Likewise.
18248 (vhaddq_x_n_s16): Likewise.
18249 (vhaddq_x_n_s32): Likewise.
18250 (vhaddq_x_n_u8): Likewise.
18251 (vhaddq_x_n_u16): Likewise.
18252 (vhaddq_x_n_u32): Likewise.
18253 (vhaddq_x_s8): Likewise.
18254 (vhaddq_x_s16): Likewise.
18255 (vhaddq_x_s32): Likewise.
18256 (vhaddq_x_u8): Likewise.
18257 (vhaddq_x_u16): Likewise.
18258 (vhaddq_x_u32): Likewise.
18259 (vhcaddq_rot90_x_s8): Likewise.
18260 (vhcaddq_rot90_x_s16): Likewise.
18261 (vhcaddq_rot90_x_s32): Likewise.
18262 (vhcaddq_rot270_x_s8): Likewise.
18263 (vhcaddq_rot270_x_s16): Likewise.
18264 (vhcaddq_rot270_x_s32): Likewise.
18265 (vhsubq_x_n_s8): Likewise.
18266 (vhsubq_x_n_s16): Likewise.
18267 (vhsubq_x_n_s32): Likewise.
18268 (vhsubq_x_n_u8): Likewise.
18269 (vhsubq_x_n_u16): Likewise.
18270 (vhsubq_x_n_u32): Likewise.
18271 (vhsubq_x_s8): Likewise.
18272 (vhsubq_x_s16): Likewise.
18273 (vhsubq_x_s32): Likewise.
18274 (vhsubq_x_u8): Likewise.
18275 (vhsubq_x_u16): Likewise.
18276 (vhsubq_x_u32): Likewise.
18277 (vrhaddq_x_s8): Likewise.
18278 (vrhaddq_x_s16): Likewise.
18279 (vrhaddq_x_s32): Likewise.
18280 (vrhaddq_x_u8): Likewise.
18281 (vrhaddq_x_u16): Likewise.
18282 (vrhaddq_x_u32): Likewise.
18283 (vrmulhq_x_s8): Likewise.
18284 (vrmulhq_x_s16): Likewise.
18285 (vrmulhq_x_s32): Likewise.
18286 (vrmulhq_x_u8): Likewise.
18287 (vrmulhq_x_u16): Likewise.
18288 (vrmulhq_x_u32): Likewise.
18289 (vandq_x_s8): Likewise.
18290 (vandq_x_s16): Likewise.
18291 (vandq_x_s32): Likewise.
18292 (vandq_x_u8): Likewise.
18293 (vandq_x_u16): Likewise.
18294 (vandq_x_u32): Likewise.
18295 (vbicq_x_s8): Likewise.
18296 (vbicq_x_s16): Likewise.
18297 (vbicq_x_s32): Likewise.
18298 (vbicq_x_u8): Likewise.
18299 (vbicq_x_u16): Likewise.
18300 (vbicq_x_u32): Likewise.
18301 (vbrsrq_x_n_s8): Likewise.
18302 (vbrsrq_x_n_s16): Likewise.
18303 (vbrsrq_x_n_s32): Likewise.
18304 (vbrsrq_x_n_u8): Likewise.
18305 (vbrsrq_x_n_u16): Likewise.
18306 (vbrsrq_x_n_u32): Likewise.
18307 (veorq_x_s8): Likewise.
18308 (veorq_x_s16): Likewise.
18309 (veorq_x_s32): Likewise.
18310 (veorq_x_u8): Likewise.
18311 (veorq_x_u16): Likewise.
18312 (veorq_x_u32): Likewise.
18313 (vmovlbq_x_s8): Likewise.
18314 (vmovlbq_x_s16): Likewise.
18315 (vmovlbq_x_u8): Likewise.
18316 (vmovlbq_x_u16): Likewise.
18317 (vmovltq_x_s8): Likewise.
18318 (vmovltq_x_s16): Likewise.
18319 (vmovltq_x_u8): Likewise.
18320 (vmovltq_x_u16): Likewise.
18321 (vmvnq_x_s8): Likewise.
18322 (vmvnq_x_s16): Likewise.
18323 (vmvnq_x_s32): Likewise.
18324 (vmvnq_x_u8): Likewise.
18325 (vmvnq_x_u16): Likewise.
18326 (vmvnq_x_u32): Likewise.
18327 (vmvnq_x_n_s16): Likewise.
18328 (vmvnq_x_n_s32): Likewise.
18329 (vmvnq_x_n_u16): Likewise.
18330 (vmvnq_x_n_u32): Likewise.
18331 (vornq_x_s8): Likewise.
18332 (vornq_x_s16): Likewise.
18333 (vornq_x_s32): Likewise.
18334 (vornq_x_u8): Likewise.
18335 (vornq_x_u16): Likewise.
18336 (vornq_x_u32): Likewise.
18337 (vorrq_x_s8): Likewise.
18338 (vorrq_x_s16): Likewise.
18339 (vorrq_x_s32): Likewise.
18340 (vorrq_x_u8): Likewise.
18341 (vorrq_x_u16): Likewise.
18342 (vorrq_x_u32): Likewise.
18343 (vrev16q_x_s8): Likewise.
18344 (vrev16q_x_u8): Likewise.
18345 (vrev32q_x_s8): Likewise.
18346 (vrev32q_x_s16): Likewise.
18347 (vrev32q_x_u8): Likewise.
18348 (vrev32q_x_u16): Likewise.
18349 (vrev64q_x_s8): Likewise.
18350 (vrev64q_x_s16): Likewise.
18351 (vrev64q_x_s32): Likewise.
18352 (vrev64q_x_u8): Likewise.
18353 (vrev64q_x_u16): Likewise.
18354 (vrev64q_x_u32): Likewise.
18355 (vrshlq_x_s8): Likewise.
18356 (vrshlq_x_s16): Likewise.
18357 (vrshlq_x_s32): Likewise.
18358 (vrshlq_x_u8): Likewise.
18359 (vrshlq_x_u16): Likewise.
18360 (vrshlq_x_u32): Likewise.
18361 (vshllbq_x_n_s8): Likewise.
18362 (vshllbq_x_n_s16): Likewise.
18363 (vshllbq_x_n_u8): Likewise.
18364 (vshllbq_x_n_u16): Likewise.
18365 (vshlltq_x_n_s8): Likewise.
18366 (vshlltq_x_n_s16): Likewise.
18367 (vshlltq_x_n_u8): Likewise.
18368 (vshlltq_x_n_u16): Likewise.
18369 (vshlq_x_s8): Likewise.
18370 (vshlq_x_s16): Likewise.
18371 (vshlq_x_s32): Likewise.
18372 (vshlq_x_u8): Likewise.
18373 (vshlq_x_u16): Likewise.
18374 (vshlq_x_u32): Likewise.
18375 (vshlq_x_n_s8): Likewise.
18376 (vshlq_x_n_s16): Likewise.
18377 (vshlq_x_n_s32): Likewise.
18378 (vshlq_x_n_u8): Likewise.
18379 (vshlq_x_n_u16): Likewise.
18380 (vshlq_x_n_u32): Likewise.
18381 (vrshrq_x_n_s8): Likewise.
18382 (vrshrq_x_n_s16): Likewise.
18383 (vrshrq_x_n_s32): Likewise.
18384 (vrshrq_x_n_u8): Likewise.
18385 (vrshrq_x_n_u16): Likewise.
18386 (vrshrq_x_n_u32): Likewise.
18387 (vshrq_x_n_s8): Likewise.
18388 (vshrq_x_n_s16): Likewise.
18389 (vshrq_x_n_s32): Likewise.
18390 (vshrq_x_n_u8): Likewise.
18391 (vshrq_x_n_u16): Likewise.
18392 (vshrq_x_n_u32): Likewise.
18393 (vdupq_x_n_f16): Likewise.
18394 (vdupq_x_n_f32): Likewise.
18395 (vminnmq_x_f16): Likewise.
18396 (vminnmq_x_f32): Likewise.
18397 (vmaxnmq_x_f16): Likewise.
18398 (vmaxnmq_x_f32): Likewise.
18399 (vabdq_x_f16): Likewise.
18400 (vabdq_x_f32): Likewise.
18401 (vabsq_x_f16): Likewise.
18402 (vabsq_x_f32): Likewise.
18403 (vaddq_x_f16): Likewise.
18404 (vaddq_x_f32): Likewise.
18405 (vaddq_x_n_f16): Likewise.
18406 (vaddq_x_n_f32): Likewise.
18407 (vnegq_x_f16): Likewise.
18408 (vnegq_x_f32): Likewise.
18409 (vmulq_x_f16): Likewise.
18410 (vmulq_x_f32): Likewise.
18411 (vmulq_x_n_f16): Likewise.
18412 (vmulq_x_n_f32): Likewise.
18413 (vsubq_x_f16): Likewise.
18414 (vsubq_x_f32): Likewise.
18415 (vsubq_x_n_f16): Likewise.
18416 (vsubq_x_n_f32): Likewise.
18417 (vcaddq_rot90_x_f16): Likewise.
18418 (vcaddq_rot90_x_f32): Likewise.
18419 (vcaddq_rot270_x_f16): Likewise.
18420 (vcaddq_rot270_x_f32): Likewise.
18421 (vcmulq_x_f16): Likewise.
18422 (vcmulq_x_f32): Likewise.
18423 (vcmulq_rot90_x_f16): Likewise.
18424 (vcmulq_rot90_x_f32): Likewise.
18425 (vcmulq_rot180_x_f16): Likewise.
18426 (vcmulq_rot180_x_f32): Likewise.
18427 (vcmulq_rot270_x_f16): Likewise.
18428 (vcmulq_rot270_x_f32): Likewise.
18429 (vcvtaq_x_s16_f16): Likewise.
18430 (vcvtaq_x_s32_f32): Likewise.
18431 (vcvtaq_x_u16_f16): Likewise.
18432 (vcvtaq_x_u32_f32): Likewise.
18433 (vcvtnq_x_s16_f16): Likewise.
18434 (vcvtnq_x_s32_f32): Likewise.
18435 (vcvtnq_x_u16_f16): Likewise.
18436 (vcvtnq_x_u32_f32): Likewise.
18437 (vcvtpq_x_s16_f16): Likewise.
18438 (vcvtpq_x_s32_f32): Likewise.
18439 (vcvtpq_x_u16_f16): Likewise.
18440 (vcvtpq_x_u32_f32): Likewise.
18441 (vcvtmq_x_s16_f16): Likewise.
18442 (vcvtmq_x_s32_f32): Likewise.
18443 (vcvtmq_x_u16_f16): Likewise.
18444 (vcvtmq_x_u32_f32): Likewise.
18445 (vcvtbq_x_f32_f16): Likewise.
18446 (vcvttq_x_f32_f16): Likewise.
18447 (vcvtq_x_f16_u16): Likewise.
18448 (vcvtq_x_f16_s16): Likewise.
18449 (vcvtq_x_f32_s32): Likewise.
18450 (vcvtq_x_f32_u32): Likewise.
18451 (vcvtq_x_n_f16_s16): Likewise.
18452 (vcvtq_x_n_f16_u16): Likewise.
18453 (vcvtq_x_n_f32_s32): Likewise.
18454 (vcvtq_x_n_f32_u32): Likewise.
18455 (vcvtq_x_s16_f16): Likewise.
18456 (vcvtq_x_s32_f32): Likewise.
18457 (vcvtq_x_u16_f16): Likewise.
18458 (vcvtq_x_u32_f32): Likewise.
18459 (vcvtq_x_n_s16_f16): Likewise.
18460 (vcvtq_x_n_s32_f32): Likewise.
18461 (vcvtq_x_n_u16_f16): Likewise.
18462 (vcvtq_x_n_u32_f32): Likewise.
18463 (vrndq_x_f16): Likewise.
18464 (vrndq_x_f32): Likewise.
18465 (vrndnq_x_f16): Likewise.
18466 (vrndnq_x_f32): Likewise.
18467 (vrndmq_x_f16): Likewise.
18468 (vrndmq_x_f32): Likewise.
18469 (vrndpq_x_f16): Likewise.
18470 (vrndpq_x_f32): Likewise.
18471 (vrndaq_x_f16): Likewise.
18472 (vrndaq_x_f32): Likewise.
18473 (vrndxq_x_f16): Likewise.
18474 (vrndxq_x_f32): Likewise.
18475 (vandq_x_f16): Likewise.
18476 (vandq_x_f32): Likewise.
18477 (vbicq_x_f16): Likewise.
18478 (vbicq_x_f32): Likewise.
18479 (vbrsrq_x_n_f16): Likewise.
18480 (vbrsrq_x_n_f32): Likewise.
18481 (veorq_x_f16): Likewise.
18482 (veorq_x_f32): Likewise.
18483 (vornq_x_f16): Likewise.
18484 (vornq_x_f32): Likewise.
18485 (vorrq_x_f16): Likewise.
18486 (vorrq_x_f32): Likewise.
18487 (vrev32q_x_f16): Likewise.
18488 (vrev64q_x_f16): Likewise.
18489 (vrev64q_x_f32): Likewise.
18490 (__arm_vddupq_x_n_u8): Define intrinsic.
18491 (__arm_vddupq_x_n_u16): Likewise.
18492 (__arm_vddupq_x_n_u32): Likewise.
18493 (__arm_vddupq_x_wb_u8): Likewise.
18494 (__arm_vddupq_x_wb_u16): Likewise.
18495 (__arm_vddupq_x_wb_u32): Likewise.
18496 (__arm_vdwdupq_x_n_u8): Likewise.
18497 (__arm_vdwdupq_x_n_u16): Likewise.
18498 (__arm_vdwdupq_x_n_u32): Likewise.
18499 (__arm_vdwdupq_x_wb_u8): Likewise.
18500 (__arm_vdwdupq_x_wb_u16): Likewise.
18501 (__arm_vdwdupq_x_wb_u32): Likewise.
18502 (__arm_vidupq_x_n_u8): Likewise.
18503 (__arm_vidupq_x_n_u16): Likewise.
18504 (__arm_vidupq_x_n_u32): Likewise.
18505 (__arm_vidupq_x_wb_u8): Likewise.
18506 (__arm_vidupq_x_wb_u16): Likewise.
18507 (__arm_vidupq_x_wb_u32): Likewise.
18508 (__arm_viwdupq_x_n_u8): Likewise.
18509 (__arm_viwdupq_x_n_u16): Likewise.
18510 (__arm_viwdupq_x_n_u32): Likewise.
18511 (__arm_viwdupq_x_wb_u8): Likewise.
18512 (__arm_viwdupq_x_wb_u16): Likewise.
18513 (__arm_viwdupq_x_wb_u32): Likewise.
18514 (__arm_vdupq_x_n_s8): Likewise.
18515 (__arm_vdupq_x_n_s16): Likewise.
18516 (__arm_vdupq_x_n_s32): Likewise.
18517 (__arm_vdupq_x_n_u8): Likewise.
18518 (__arm_vdupq_x_n_u16): Likewise.
18519 (__arm_vdupq_x_n_u32): Likewise.
18520 (__arm_vminq_x_s8): Likewise.
18521 (__arm_vminq_x_s16): Likewise.
18522 (__arm_vminq_x_s32): Likewise.
18523 (__arm_vminq_x_u8): Likewise.
18524 (__arm_vminq_x_u16): Likewise.
18525 (__arm_vminq_x_u32): Likewise.
18526 (__arm_vmaxq_x_s8): Likewise.
18527 (__arm_vmaxq_x_s16): Likewise.
18528 (__arm_vmaxq_x_s32): Likewise.
18529 (__arm_vmaxq_x_u8): Likewise.
18530 (__arm_vmaxq_x_u16): Likewise.
18531 (__arm_vmaxq_x_u32): Likewise.
18532 (__arm_vabdq_x_s8): Likewise.
18533 (__arm_vabdq_x_s16): Likewise.
18534 (__arm_vabdq_x_s32): Likewise.
18535 (__arm_vabdq_x_u8): Likewise.
18536 (__arm_vabdq_x_u16): Likewise.
18537 (__arm_vabdq_x_u32): Likewise.
18538 (__arm_vabsq_x_s8): Likewise.
18539 (__arm_vabsq_x_s16): Likewise.
18540 (__arm_vabsq_x_s32): Likewise.
18541 (__arm_vaddq_x_s8): Likewise.
18542 (__arm_vaddq_x_s16): Likewise.
18543 (__arm_vaddq_x_s32): Likewise.
18544 (__arm_vaddq_x_n_s8): Likewise.
18545 (__arm_vaddq_x_n_s16): Likewise.
18546 (__arm_vaddq_x_n_s32): Likewise.
18547 (__arm_vaddq_x_u8): Likewise.
18548 (__arm_vaddq_x_u16): Likewise.
18549 (__arm_vaddq_x_u32): Likewise.
18550 (__arm_vaddq_x_n_u8): Likewise.
18551 (__arm_vaddq_x_n_u16): Likewise.
18552 (__arm_vaddq_x_n_u32): Likewise.
18553 (__arm_vclsq_x_s8): Likewise.
18554 (__arm_vclsq_x_s16): Likewise.
18555 (__arm_vclsq_x_s32): Likewise.
18556 (__arm_vclzq_x_s8): Likewise.
18557 (__arm_vclzq_x_s16): Likewise.
18558 (__arm_vclzq_x_s32): Likewise.
18559 (__arm_vclzq_x_u8): Likewise.
18560 (__arm_vclzq_x_u16): Likewise.
18561 (__arm_vclzq_x_u32): Likewise.
18562 (__arm_vnegq_x_s8): Likewise.
18563 (__arm_vnegq_x_s16): Likewise.
18564 (__arm_vnegq_x_s32): Likewise.
18565 (__arm_vmulhq_x_s8): Likewise.
18566 (__arm_vmulhq_x_s16): Likewise.
18567 (__arm_vmulhq_x_s32): Likewise.
18568 (__arm_vmulhq_x_u8): Likewise.
18569 (__arm_vmulhq_x_u16): Likewise.
18570 (__arm_vmulhq_x_u32): Likewise.
18571 (__arm_vmullbq_poly_x_p8): Likewise.
18572 (__arm_vmullbq_poly_x_p16): Likewise.
18573 (__arm_vmullbq_int_x_s8): Likewise.
18574 (__arm_vmullbq_int_x_s16): Likewise.
18575 (__arm_vmullbq_int_x_s32): Likewise.
18576 (__arm_vmullbq_int_x_u8): Likewise.
18577 (__arm_vmullbq_int_x_u16): Likewise.
18578 (__arm_vmullbq_int_x_u32): Likewise.
18579 (__arm_vmulltq_poly_x_p8): Likewise.
18580 (__arm_vmulltq_poly_x_p16): Likewise.
18581 (__arm_vmulltq_int_x_s8): Likewise.
18582 (__arm_vmulltq_int_x_s16): Likewise.
18583 (__arm_vmulltq_int_x_s32): Likewise.
18584 (__arm_vmulltq_int_x_u8): Likewise.
18585 (__arm_vmulltq_int_x_u16): Likewise.
18586 (__arm_vmulltq_int_x_u32): Likewise.
18587 (__arm_vmulq_x_s8): Likewise.
18588 (__arm_vmulq_x_s16): Likewise.
18589 (__arm_vmulq_x_s32): Likewise.
18590 (__arm_vmulq_x_n_s8): Likewise.
18591 (__arm_vmulq_x_n_s16): Likewise.
18592 (__arm_vmulq_x_n_s32): Likewise.
18593 (__arm_vmulq_x_u8): Likewise.
18594 (__arm_vmulq_x_u16): Likewise.
18595 (__arm_vmulq_x_u32): Likewise.
18596 (__arm_vmulq_x_n_u8): Likewise.
18597 (__arm_vmulq_x_n_u16): Likewise.
18598 (__arm_vmulq_x_n_u32): Likewise.
18599 (__arm_vsubq_x_s8): Likewise.
18600 (__arm_vsubq_x_s16): Likewise.
18601 (__arm_vsubq_x_s32): Likewise.
18602 (__arm_vsubq_x_n_s8): Likewise.
18603 (__arm_vsubq_x_n_s16): Likewise.
18604 (__arm_vsubq_x_n_s32): Likewise.
18605 (__arm_vsubq_x_u8): Likewise.
18606 (__arm_vsubq_x_u16): Likewise.
18607 (__arm_vsubq_x_u32): Likewise.
18608 (__arm_vsubq_x_n_u8): Likewise.
18609 (__arm_vsubq_x_n_u16): Likewise.
18610 (__arm_vsubq_x_n_u32): Likewise.
18611 (__arm_vcaddq_rot90_x_s8): Likewise.
18612 (__arm_vcaddq_rot90_x_s16): Likewise.
18613 (__arm_vcaddq_rot90_x_s32): Likewise.
18614 (__arm_vcaddq_rot90_x_u8): Likewise.
18615 (__arm_vcaddq_rot90_x_u16): Likewise.
18616 (__arm_vcaddq_rot90_x_u32): Likewise.
18617 (__arm_vcaddq_rot270_x_s8): Likewise.
18618 (__arm_vcaddq_rot270_x_s16): Likewise.
18619 (__arm_vcaddq_rot270_x_s32): Likewise.
18620 (__arm_vcaddq_rot270_x_u8): Likewise.
18621 (__arm_vcaddq_rot270_x_u16): Likewise.
18622 (__arm_vcaddq_rot270_x_u32): Likewise.
18623 (__arm_vhaddq_x_n_s8): Likewise.
18624 (__arm_vhaddq_x_n_s16): Likewise.
18625 (__arm_vhaddq_x_n_s32): Likewise.
18626 (__arm_vhaddq_x_n_u8): Likewise.
18627 (__arm_vhaddq_x_n_u16): Likewise.
18628 (__arm_vhaddq_x_n_u32): Likewise.
18629 (__arm_vhaddq_x_s8): Likewise.
18630 (__arm_vhaddq_x_s16): Likewise.
18631 (__arm_vhaddq_x_s32): Likewise.
18632 (__arm_vhaddq_x_u8): Likewise.
18633 (__arm_vhaddq_x_u16): Likewise.
18634 (__arm_vhaddq_x_u32): Likewise.
18635 (__arm_vhcaddq_rot90_x_s8): Likewise.
18636 (__arm_vhcaddq_rot90_x_s16): Likewise.
18637 (__arm_vhcaddq_rot90_x_s32): Likewise.
18638 (__arm_vhcaddq_rot270_x_s8): Likewise.
18639 (__arm_vhcaddq_rot270_x_s16): Likewise.
18640 (__arm_vhcaddq_rot270_x_s32): Likewise.
18641 (__arm_vhsubq_x_n_s8): Likewise.
18642 (__arm_vhsubq_x_n_s16): Likewise.
18643 (__arm_vhsubq_x_n_s32): Likewise.
18644 (__arm_vhsubq_x_n_u8): Likewise.
18645 (__arm_vhsubq_x_n_u16): Likewise.
18646 (__arm_vhsubq_x_n_u32): Likewise.
18647 (__arm_vhsubq_x_s8): Likewise.
18648 (__arm_vhsubq_x_s16): Likewise.
18649 (__arm_vhsubq_x_s32): Likewise.
18650 (__arm_vhsubq_x_u8): Likewise.
18651 (__arm_vhsubq_x_u16): Likewise.
18652 (__arm_vhsubq_x_u32): Likewise.
18653 (__arm_vrhaddq_x_s8): Likewise.
18654 (__arm_vrhaddq_x_s16): Likewise.
18655 (__arm_vrhaddq_x_s32): Likewise.
18656 (__arm_vrhaddq_x_u8): Likewise.
18657 (__arm_vrhaddq_x_u16): Likewise.
18658 (__arm_vrhaddq_x_u32): Likewise.
18659 (__arm_vrmulhq_x_s8): Likewise.
18660 (__arm_vrmulhq_x_s16): Likewise.
18661 (__arm_vrmulhq_x_s32): Likewise.
18662 (__arm_vrmulhq_x_u8): Likewise.
18663 (__arm_vrmulhq_x_u16): Likewise.
18664 (__arm_vrmulhq_x_u32): Likewise.
18665 (__arm_vandq_x_s8): Likewise.
18666 (__arm_vandq_x_s16): Likewise.
18667 (__arm_vandq_x_s32): Likewise.
18668 (__arm_vandq_x_u8): Likewise.
18669 (__arm_vandq_x_u16): Likewise.
18670 (__arm_vandq_x_u32): Likewise.
18671 (__arm_vbicq_x_s8): Likewise.
18672 (__arm_vbicq_x_s16): Likewise.
18673 (__arm_vbicq_x_s32): Likewise.
18674 (__arm_vbicq_x_u8): Likewise.
18675 (__arm_vbicq_x_u16): Likewise.
18676 (__arm_vbicq_x_u32): Likewise.
18677 (__arm_vbrsrq_x_n_s8): Likewise.
18678 (__arm_vbrsrq_x_n_s16): Likewise.
18679 (__arm_vbrsrq_x_n_s32): Likewise.
18680 (__arm_vbrsrq_x_n_u8): Likewise.
18681 (__arm_vbrsrq_x_n_u16): Likewise.
18682 (__arm_vbrsrq_x_n_u32): Likewise.
18683 (__arm_veorq_x_s8): Likewise.
18684 (__arm_veorq_x_s16): Likewise.
18685 (__arm_veorq_x_s32): Likewise.
18686 (__arm_veorq_x_u8): Likewise.
18687 (__arm_veorq_x_u16): Likewise.
18688 (__arm_veorq_x_u32): Likewise.
18689 (__arm_vmovlbq_x_s8): Likewise.
18690 (__arm_vmovlbq_x_s16): Likewise.
18691 (__arm_vmovlbq_x_u8): Likewise.
18692 (__arm_vmovlbq_x_u16): Likewise.
18693 (__arm_vmovltq_x_s8): Likewise.
18694 (__arm_vmovltq_x_s16): Likewise.
18695 (__arm_vmovltq_x_u8): Likewise.
18696 (__arm_vmovltq_x_u16): Likewise.
18697 (__arm_vmvnq_x_s8): Likewise.
18698 (__arm_vmvnq_x_s16): Likewise.
18699 (__arm_vmvnq_x_s32): Likewise.
18700 (__arm_vmvnq_x_u8): Likewise.
18701 (__arm_vmvnq_x_u16): Likewise.
18702 (__arm_vmvnq_x_u32): Likewise.
18703 (__arm_vmvnq_x_n_s16): Likewise.
18704 (__arm_vmvnq_x_n_s32): Likewise.
18705 (__arm_vmvnq_x_n_u16): Likewise.
18706 (__arm_vmvnq_x_n_u32): Likewise.
18707 (__arm_vornq_x_s8): Likewise.
18708 (__arm_vornq_x_s16): Likewise.
18709 (__arm_vornq_x_s32): Likewise.
18710 (__arm_vornq_x_u8): Likewise.
18711 (__arm_vornq_x_u16): Likewise.
18712 (__arm_vornq_x_u32): Likewise.
18713 (__arm_vorrq_x_s8): Likewise.
18714 (__arm_vorrq_x_s16): Likewise.
18715 (__arm_vorrq_x_s32): Likewise.
18716 (__arm_vorrq_x_u8): Likewise.
18717 (__arm_vorrq_x_u16): Likewise.
18718 (__arm_vorrq_x_u32): Likewise.
18719 (__arm_vrev16q_x_s8): Likewise.
18720 (__arm_vrev16q_x_u8): Likewise.
18721 (__arm_vrev32q_x_s8): Likewise.
18722 (__arm_vrev32q_x_s16): Likewise.
18723 (__arm_vrev32q_x_u8): Likewise.
18724 (__arm_vrev32q_x_u16): Likewise.
18725 (__arm_vrev64q_x_s8): Likewise.
18726 (__arm_vrev64q_x_s16): Likewise.
18727 (__arm_vrev64q_x_s32): Likewise.
18728 (__arm_vrev64q_x_u8): Likewise.
18729 (__arm_vrev64q_x_u16): Likewise.
18730 (__arm_vrev64q_x_u32): Likewise.
18731 (__arm_vrshlq_x_s8): Likewise.
18732 (__arm_vrshlq_x_s16): Likewise.
18733 (__arm_vrshlq_x_s32): Likewise.
18734 (__arm_vrshlq_x_u8): Likewise.
18735 (__arm_vrshlq_x_u16): Likewise.
18736 (__arm_vrshlq_x_u32): Likewise.
18737 (__arm_vshllbq_x_n_s8): Likewise.
18738 (__arm_vshllbq_x_n_s16): Likewise.
18739 (__arm_vshllbq_x_n_u8): Likewise.
18740 (__arm_vshllbq_x_n_u16): Likewise.
18741 (__arm_vshlltq_x_n_s8): Likewise.
18742 (__arm_vshlltq_x_n_s16): Likewise.
18743 (__arm_vshlltq_x_n_u8): Likewise.
18744 (__arm_vshlltq_x_n_u16): Likewise.
18745 (__arm_vshlq_x_s8): Likewise.
18746 (__arm_vshlq_x_s16): Likewise.
18747 (__arm_vshlq_x_s32): Likewise.
18748 (__arm_vshlq_x_u8): Likewise.
18749 (__arm_vshlq_x_u16): Likewise.
18750 (__arm_vshlq_x_u32): Likewise.
18751 (__arm_vshlq_x_n_s8): Likewise.
18752 (__arm_vshlq_x_n_s16): Likewise.
18753 (__arm_vshlq_x_n_s32): Likewise.
18754 (__arm_vshlq_x_n_u8): Likewise.
18755 (__arm_vshlq_x_n_u16): Likewise.
18756 (__arm_vshlq_x_n_u32): Likewise.
18757 (__arm_vrshrq_x_n_s8): Likewise.
18758 (__arm_vrshrq_x_n_s16): Likewise.
18759 (__arm_vrshrq_x_n_s32): Likewise.
18760 (__arm_vrshrq_x_n_u8): Likewise.
18761 (__arm_vrshrq_x_n_u16): Likewise.
18762 (__arm_vrshrq_x_n_u32): Likewise.
18763 (__arm_vshrq_x_n_s8): Likewise.
18764 (__arm_vshrq_x_n_s16): Likewise.
18765 (__arm_vshrq_x_n_s32): Likewise.
18766 (__arm_vshrq_x_n_u8): Likewise.
18767 (__arm_vshrq_x_n_u16): Likewise.
18768 (__arm_vshrq_x_n_u32): Likewise.
18769 (__arm_vdupq_x_n_f16): Likewise.
18770 (__arm_vdupq_x_n_f32): Likewise.
18771 (__arm_vminnmq_x_f16): Likewise.
18772 (__arm_vminnmq_x_f32): Likewise.
18773 (__arm_vmaxnmq_x_f16): Likewise.
18774 (__arm_vmaxnmq_x_f32): Likewise.
18775 (__arm_vabdq_x_f16): Likewise.
18776 (__arm_vabdq_x_f32): Likewise.
18777 (__arm_vabsq_x_f16): Likewise.
18778 (__arm_vabsq_x_f32): Likewise.
18779 (__arm_vaddq_x_f16): Likewise.
18780 (__arm_vaddq_x_f32): Likewise.
18781 (__arm_vaddq_x_n_f16): Likewise.
18782 (__arm_vaddq_x_n_f32): Likewise.
18783 (__arm_vnegq_x_f16): Likewise.
18784 (__arm_vnegq_x_f32): Likewise.
18785 (__arm_vmulq_x_f16): Likewise.
18786 (__arm_vmulq_x_f32): Likewise.
18787 (__arm_vmulq_x_n_f16): Likewise.
18788 (__arm_vmulq_x_n_f32): Likewise.
18789 (__arm_vsubq_x_f16): Likewise.
18790 (__arm_vsubq_x_f32): Likewise.
18791 (__arm_vsubq_x_n_f16): Likewise.
18792 (__arm_vsubq_x_n_f32): Likewise.
18793 (__arm_vcaddq_rot90_x_f16): Likewise.
18794 (__arm_vcaddq_rot90_x_f32): Likewise.
18795 (__arm_vcaddq_rot270_x_f16): Likewise.
18796 (__arm_vcaddq_rot270_x_f32): Likewise.
18797 (__arm_vcmulq_x_f16): Likewise.
18798 (__arm_vcmulq_x_f32): Likewise.
18799 (__arm_vcmulq_rot90_x_f16): Likewise.
18800 (__arm_vcmulq_rot90_x_f32): Likewise.
18801 (__arm_vcmulq_rot180_x_f16): Likewise.
18802 (__arm_vcmulq_rot180_x_f32): Likewise.
18803 (__arm_vcmulq_rot270_x_f16): Likewise.
18804 (__arm_vcmulq_rot270_x_f32): Likewise.
18805 (__arm_vcvtaq_x_s16_f16): Likewise.
18806 (__arm_vcvtaq_x_s32_f32): Likewise.
18807 (__arm_vcvtaq_x_u16_f16): Likewise.
18808 (__arm_vcvtaq_x_u32_f32): Likewise.
18809 (__arm_vcvtnq_x_s16_f16): Likewise.
18810 (__arm_vcvtnq_x_s32_f32): Likewise.
18811 (__arm_vcvtnq_x_u16_f16): Likewise.
18812 (__arm_vcvtnq_x_u32_f32): Likewise.
18813 (__arm_vcvtpq_x_s16_f16): Likewise.
18814 (__arm_vcvtpq_x_s32_f32): Likewise.
18815 (__arm_vcvtpq_x_u16_f16): Likewise.
18816 (__arm_vcvtpq_x_u32_f32): Likewise.
18817 (__arm_vcvtmq_x_s16_f16): Likewise.
18818 (__arm_vcvtmq_x_s32_f32): Likewise.
18819 (__arm_vcvtmq_x_u16_f16): Likewise.
18820 (__arm_vcvtmq_x_u32_f32): Likewise.
18821 (__arm_vcvtbq_x_f32_f16): Likewise.
18822 (__arm_vcvttq_x_f32_f16): Likewise.
18823 (__arm_vcvtq_x_f16_u16): Likewise.
18824 (__arm_vcvtq_x_f16_s16): Likewise.
18825 (__arm_vcvtq_x_f32_s32): Likewise.
18826 (__arm_vcvtq_x_f32_u32): Likewise.
18827 (__arm_vcvtq_x_n_f16_s16): Likewise.
18828 (__arm_vcvtq_x_n_f16_u16): Likewise.
18829 (__arm_vcvtq_x_n_f32_s32): Likewise.
18830 (__arm_vcvtq_x_n_f32_u32): Likewise.
18831 (__arm_vcvtq_x_s16_f16): Likewise.
18832 (__arm_vcvtq_x_s32_f32): Likewise.
18833 (__arm_vcvtq_x_u16_f16): Likewise.
18834 (__arm_vcvtq_x_u32_f32): Likewise.
18835 (__arm_vcvtq_x_n_s16_f16): Likewise.
18836 (__arm_vcvtq_x_n_s32_f32): Likewise.
18837 (__arm_vcvtq_x_n_u16_f16): Likewise.
18838 (__arm_vcvtq_x_n_u32_f32): Likewise.
18839 (__arm_vrndq_x_f16): Likewise.
18840 (__arm_vrndq_x_f32): Likewise.
18841 (__arm_vrndnq_x_f16): Likewise.
18842 (__arm_vrndnq_x_f32): Likewise.
18843 (__arm_vrndmq_x_f16): Likewise.
18844 (__arm_vrndmq_x_f32): Likewise.
18845 (__arm_vrndpq_x_f16): Likewise.
18846 (__arm_vrndpq_x_f32): Likewise.
18847 (__arm_vrndaq_x_f16): Likewise.
18848 (__arm_vrndaq_x_f32): Likewise.
18849 (__arm_vrndxq_x_f16): Likewise.
18850 (__arm_vrndxq_x_f32): Likewise.
18851 (__arm_vandq_x_f16): Likewise.
18852 (__arm_vandq_x_f32): Likewise.
18853 (__arm_vbicq_x_f16): Likewise.
18854 (__arm_vbicq_x_f32): Likewise.
18855 (__arm_vbrsrq_x_n_f16): Likewise.
18856 (__arm_vbrsrq_x_n_f32): Likewise.
18857 (__arm_veorq_x_f16): Likewise.
18858 (__arm_veorq_x_f32): Likewise.
18859 (__arm_vornq_x_f16): Likewise.
18860 (__arm_vornq_x_f32): Likewise.
18861 (__arm_vorrq_x_f16): Likewise.
18862 (__arm_vorrq_x_f32): Likewise.
18863 (__arm_vrev32q_x_f16): Likewise.
18864 (__arm_vrev64q_x_f16): Likewise.
18865 (__arm_vrev64q_x_f32): Likewise.
18866 (vabdq_x): Define polymorphic variant.
18867 (vabsq_x): Likewise.
18868 (vaddq_x): Likewise.
18869 (vandq_x): Likewise.
18870 (vbicq_x): Likewise.
18871 (vbrsrq_x): Likewise.
18872 (vcaddq_rot270_x): Likewise.
18873 (vcaddq_rot90_x): Likewise.
18874 (vcmulq_rot180_x): Likewise.
18875 (vcmulq_rot270_x): Likewise.
18876 (vcmulq_x): Likewise.
18877 (vcvtq_x): Likewise.
18878 (vcvtq_x_n): Likewise.
18879 (vcvtnq_m): Likewise.
18880 (veorq_x): Likewise.
18881 (vmaxnmq_x): Likewise.
18882 (vminnmq_x): Likewise.
18883 (vmulq_x): Likewise.
18884 (vnegq_x): Likewise.
18885 (vornq_x): Likewise.
18886 (vorrq_x): Likewise.
18887 (vrev32q_x): Likewise.
18888 (vrev64q_x): Likewise.
18889 (vrndaq_x): Likewise.
18890 (vrndmq_x): Likewise.
18891 (vrndnq_x): Likewise.
18892 (vrndpq_x): Likewise.
18893 (vrndq_x): Likewise.
18894 (vrndxq_x): Likewise.
18895 (vsubq_x): Likewise.
18896 (vcmulq_rot90_x): Likewise.
18897 (vadciq): Likewise.
18898 (vclsq_x): Likewise.
18899 (vclzq_x): Likewise.
18900 (vhaddq_x): Likewise.
18901 (vhcaddq_rot270_x): Likewise.
18902 (vhcaddq_rot90_x): Likewise.
18903 (vhsubq_x): Likewise.
18904 (vmaxq_x): Likewise.
18905 (vminq_x): Likewise.
18906 (vmovlbq_x): Likewise.
18907 (vmovltq_x): Likewise.
18908 (vmulhq_x): Likewise.
18909 (vmullbq_int_x): Likewise.
18910 (vmullbq_poly_x): Likewise.
18911 (vmulltq_int_x): Likewise.
18912 (vmulltq_poly_x): Likewise.
18913 (vmvnq_x): Likewise.
18914 (vrev16q_x): Likewise.
18915 (vrhaddq_x): Likewise.
18916 (vrmulhq_x): Likewise.
18917 (vrshlq_x): Likewise.
18918 (vrshrq_x): Likewise.
18919 (vshllbq_x): Likewise.
18920 (vshlltq_x): Likewise.
18921 (vshlq_x_n): Likewise.
18922 (vshlq_x): Likewise.
18923 (vdwdupq_x_u8): Likewise.
18924 (vdwdupq_x_u16): Likewise.
18925 (vdwdupq_x_u32): Likewise.
18926 (viwdupq_x_u8): Likewise.
18927 (viwdupq_x_u16): Likewise.
18928 (viwdupq_x_u32): Likewise.
18929 (vidupq_x_u8): Likewise.
18930 (vddupq_x_u8): Likewise.
18931 (vidupq_x_u16): Likewise.
18932 (vddupq_x_u16): Likewise.
18933 (vidupq_x_u32): Likewise.
18934 (vddupq_x_u32): Likewise.
18935 (vshrq_x): Likewise.
18936
18937 2020-03-20 Richard Biener <rguenther@suse.de>
18938
18939 * tree-vect-slp.c (vect_analyze_slp_instance): Push the stmts
18940 to vectorize for CTOR defs.
18941
18942 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
18943 Andre Vieira <andre.simoesdiasvieira@arm.com>
18944 Mihail Ionescu <mihail.ionescu@arm.com>
18945
18946 * config/arm/arm-builtins.c (LDRGBWBS_QUALIFIERS): Define builtin
18947 qualifier.
18948 (LDRGBWBU_QUALIFIERS): Likewise.
18949 (LDRGBWBS_Z_QUALIFIERS): Likewise.
18950 (LDRGBWBU_Z_QUALIFIERS): Likewise.
18951 (STRSBWBS_QUALIFIERS): Likewise.
18952 (STRSBWBU_QUALIFIERS): Likewise.
18953 (STRSBWBS_P_QUALIFIERS): Likewise.
18954 (STRSBWBU_P_QUALIFIERS): Likewise.
18955 * config/arm/arm_mve.h (vldrdq_gather_base_wb_s64): Define macro.
18956 (vldrdq_gather_base_wb_u64): Likewise.
18957 (vldrdq_gather_base_wb_z_s64): Likewise.
18958 (vldrdq_gather_base_wb_z_u64): Likewise.
18959 (vldrwq_gather_base_wb_f32): Likewise.
18960 (vldrwq_gather_base_wb_s32): Likewise.
18961 (vldrwq_gather_base_wb_u32): Likewise.
18962 (vldrwq_gather_base_wb_z_f32): Likewise.
18963 (vldrwq_gather_base_wb_z_s32): Likewise.
18964 (vldrwq_gather_base_wb_z_u32): Likewise.
18965 (vstrdq_scatter_base_wb_p_s64): Likewise.
18966 (vstrdq_scatter_base_wb_p_u64): Likewise.
18967 (vstrdq_scatter_base_wb_s64): Likewise.
18968 (vstrdq_scatter_base_wb_u64): Likewise.
18969 (vstrwq_scatter_base_wb_p_s32): Likewise.
18970 (vstrwq_scatter_base_wb_p_f32): Likewise.
18971 (vstrwq_scatter_base_wb_p_u32): Likewise.
18972 (vstrwq_scatter_base_wb_s32): Likewise.
18973 (vstrwq_scatter_base_wb_u32): Likewise.
18974 (vstrwq_scatter_base_wb_f32): Likewise.
18975 (__arm_vldrdq_gather_base_wb_s64): Define intrinsic.
18976 (__arm_vldrdq_gather_base_wb_u64): Likewise.
18977 (__arm_vldrdq_gather_base_wb_z_s64): Likewise.
18978 (__arm_vldrdq_gather_base_wb_z_u64): Likewise.
18979 (__arm_vldrwq_gather_base_wb_s32): Likewise.
18980 (__arm_vldrwq_gather_base_wb_u32): Likewise.
18981 (__arm_vldrwq_gather_base_wb_z_s32): Likewise.
18982 (__arm_vldrwq_gather_base_wb_z_u32): Likewise.
18983 (__arm_vstrdq_scatter_base_wb_s64): Likewise.
18984 (__arm_vstrdq_scatter_base_wb_u64): Likewise.
18985 (__arm_vstrdq_scatter_base_wb_p_s64): Likewise.
18986 (__arm_vstrdq_scatter_base_wb_p_u64): Likewise.
18987 (__arm_vstrwq_scatter_base_wb_p_s32): Likewise.
18988 (__arm_vstrwq_scatter_base_wb_p_u32): Likewise.
18989 (__arm_vstrwq_scatter_base_wb_s32): Likewise.
18990 (__arm_vstrwq_scatter_base_wb_u32): Likewise.
18991 (__arm_vldrwq_gather_base_wb_f32): Likewise.
18992 (__arm_vldrwq_gather_base_wb_z_f32): Likewise.
18993 (__arm_vstrwq_scatter_base_wb_f32): Likewise.
18994 (__arm_vstrwq_scatter_base_wb_p_f32): Likewise.
18995 (vstrwq_scatter_base_wb): Define polymorphic variant.
18996 (vstrwq_scatter_base_wb_p): Likewise.
18997 (vstrdq_scatter_base_wb_p): Likewise.
18998 (vstrdq_scatter_base_wb): Likewise.
18999 * config/arm/arm_mve_builtins.def (LDRGBWBS_QUALIFIERS): Use builtin
19000 qualifier.
19001 * config/arm/mve.md (mve_vstrwq_scatter_base_wb_<supf>v4si): Define RTL
19002 pattern.
19003 (mve_vstrwq_scatter_base_wb_add_<supf>v4si): Likewise.
19004 (mve_vstrwq_scatter_base_wb_<supf>v4si_insn): Likewise.
19005 (mve_vstrwq_scatter_base_wb_p_<supf>v4si): Likewise.
19006 (mve_vstrwq_scatter_base_wb_p_add_<supf>v4si): Likewise.
19007 (mve_vstrwq_scatter_base_wb_p_<supf>v4si_insn): Likewise.
19008 (mve_vstrwq_scatter_base_wb_fv4sf): Likewise.
19009 (mve_vstrwq_scatter_base_wb_add_fv4sf): Likewise.
19010 (mve_vstrwq_scatter_base_wb_fv4sf_insn): Likewise.
19011 (mve_vstrwq_scatter_base_wb_p_fv4sf): Likewise.
19012 (mve_vstrwq_scatter_base_wb_p_add_fv4sf): Likewise.
19013 (mve_vstrwq_scatter_base_wb_p_fv4sf_insn): Likewise.
19014 (mve_vstrdq_scatter_base_wb_<supf>v2di): Likewise.
19015 (mve_vstrdq_scatter_base_wb_add_<supf>v2di): Likewise.
19016 (mve_vstrdq_scatter_base_wb_<supf>v2di_insn): Likewise.
19017 (mve_vstrdq_scatter_base_wb_p_<supf>v2di): Likewise.
19018 (mve_vstrdq_scatter_base_wb_p_add_<supf>v2di): Likewise.
19019 (mve_vstrdq_scatter_base_wb_p_<supf>v2di_insn): Likewise.
19020 (mve_vldrwq_gather_base_wb_<supf>v4si): Likewise.
19021 (mve_vldrwq_gather_base_wb_<supf>v4si_insn): Likewise.
19022 (mve_vldrwq_gather_base_wb_z_<supf>v4si): Likewise.
19023 (mve_vldrwq_gather_base_wb_z_<supf>v4si_insn): Likewise.
19024 (mve_vldrwq_gather_base_wb_fv4sf): Likewise.
19025 (mve_vldrwq_gather_base_wb_fv4sf_insn): Likewise.
19026 (mve_vldrwq_gather_base_wb_z_fv4sf): Likewise.
19027 (mve_vldrwq_gather_base_wb_z_fv4sf_insn): Likewise.
19028 (mve_vldrdq_gather_base_wb_<supf>v2di): Likewise.
19029 (mve_vldrdq_gather_base_wb_<supf>v2di_insn): Likewise.
19030 (mve_vldrdq_gather_base_wb_z_<supf>v2di): Likewise.
19031 (mve_vldrdq_gather_base_wb_z_<supf>v2di_insn): Likewise.
19032
19033 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19034 Andre Vieira <andre.simoesdiasvieira@arm.com>
19035 Mihail Ionescu <mihail.ionescu@arm.com>
19036
19037 * config/arm/arm-builtins.c
19038 (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Define quinary
19039 builtin qualifier.
19040 * config/arm/arm_mve.h (vddupq_m_n_u8): Define macro.
19041 (vddupq_m_n_u32): Likewise.
19042 (vddupq_m_n_u16): Likewise.
19043 (vddupq_m_wb_u8): Likewise.
19044 (vddupq_m_wb_u16): Likewise.
19045 (vddupq_m_wb_u32): Likewise.
19046 (vddupq_n_u8): Likewise.
19047 (vddupq_n_u32): Likewise.
19048 (vddupq_n_u16): Likewise.
19049 (vddupq_wb_u8): Likewise.
19050 (vddupq_wb_u16): Likewise.
19051 (vddupq_wb_u32): Likewise.
19052 (vdwdupq_m_n_u8): Likewise.
19053 (vdwdupq_m_n_u32): Likewise.
19054 (vdwdupq_m_n_u16): Likewise.
19055 (vdwdupq_m_wb_u8): Likewise.
19056 (vdwdupq_m_wb_u32): Likewise.
19057 (vdwdupq_m_wb_u16): Likewise.
19058 (vdwdupq_n_u8): Likewise.
19059 (vdwdupq_n_u32): Likewise.
19060 (vdwdupq_n_u16): Likewise.
19061 (vdwdupq_wb_u8): Likewise.
19062 (vdwdupq_wb_u32): Likewise.
19063 (vdwdupq_wb_u16): Likewise.
19064 (vidupq_m_n_u8): Likewise.
19065 (vidupq_m_n_u32): Likewise.
19066 (vidupq_m_n_u16): Likewise.
19067 (vidupq_m_wb_u8): Likewise.
19068 (vidupq_m_wb_u16): Likewise.
19069 (vidupq_m_wb_u32): Likewise.
19070 (vidupq_n_u8): Likewise.
19071 (vidupq_n_u32): Likewise.
19072 (vidupq_n_u16): Likewise.
19073 (vidupq_wb_u8): Likewise.
19074 (vidupq_wb_u16): Likewise.
19075 (vidupq_wb_u32): Likewise.
19076 (viwdupq_m_n_u8): Likewise.
19077 (viwdupq_m_n_u32): Likewise.
19078 (viwdupq_m_n_u16): Likewise.
19079 (viwdupq_m_wb_u8): Likewise.
19080 (viwdupq_m_wb_u32): Likewise.
19081 (viwdupq_m_wb_u16): Likewise.
19082 (viwdupq_n_u8): Likewise.
19083 (viwdupq_n_u32): Likewise.
19084 (viwdupq_n_u16): Likewise.
19085 (viwdupq_wb_u8): Likewise.
19086 (viwdupq_wb_u32): Likewise.
19087 (viwdupq_wb_u16): Likewise.
19088 (__arm_vddupq_m_n_u8): Define intrinsic.
19089 (__arm_vddupq_m_n_u32): Likewise.
19090 (__arm_vddupq_m_n_u16): Likewise.
19091 (__arm_vddupq_m_wb_u8): Likewise.
19092 (__arm_vddupq_m_wb_u16): Likewise.
19093 (__arm_vddupq_m_wb_u32): Likewise.
19094 (__arm_vddupq_n_u8): Likewise.
19095 (__arm_vddupq_n_u32): Likewise.
19096 (__arm_vddupq_n_u16): Likewise.
19097 (__arm_vdwdupq_m_n_u8): Likewise.
19098 (__arm_vdwdupq_m_n_u32): Likewise.
19099 (__arm_vdwdupq_m_n_u16): Likewise.
19100 (__arm_vdwdupq_m_wb_u8): Likewise.
19101 (__arm_vdwdupq_m_wb_u32): Likewise.
19102 (__arm_vdwdupq_m_wb_u16): Likewise.
19103 (__arm_vdwdupq_n_u8): Likewise.
19104 (__arm_vdwdupq_n_u32): Likewise.
19105 (__arm_vdwdupq_n_u16): Likewise.
19106 (__arm_vdwdupq_wb_u8): Likewise.
19107 (__arm_vdwdupq_wb_u32): Likewise.
19108 (__arm_vdwdupq_wb_u16): Likewise.
19109 (__arm_vidupq_m_n_u8): Likewise.
19110 (__arm_vidupq_m_n_u32): Likewise.
19111 (__arm_vidupq_m_n_u16): Likewise.
19112 (__arm_vidupq_n_u8): Likewise.
19113 (__arm_vidupq_m_wb_u8): Likewise.
19114 (__arm_vidupq_m_wb_u16): Likewise.
19115 (__arm_vidupq_m_wb_u32): Likewise.
19116 (__arm_vidupq_n_u32): Likewise.
19117 (__arm_vidupq_n_u16): Likewise.
19118 (__arm_vidupq_wb_u8): Likewise.
19119 (__arm_vidupq_wb_u16): Likewise.
19120 (__arm_vidupq_wb_u32): Likewise.
19121 (__arm_vddupq_wb_u8): Likewise.
19122 (__arm_vddupq_wb_u16): Likewise.
19123 (__arm_vddupq_wb_u32): Likewise.
19124 (__arm_viwdupq_m_n_u8): Likewise.
19125 (__arm_viwdupq_m_n_u32): Likewise.
19126 (__arm_viwdupq_m_n_u16): Likewise.
19127 (__arm_viwdupq_m_wb_u8): Likewise.
19128 (__arm_viwdupq_m_wb_u32): Likewise.
19129 (__arm_viwdupq_m_wb_u16): Likewise.
19130 (__arm_viwdupq_n_u8): Likewise.
19131 (__arm_viwdupq_n_u32): Likewise.
19132 (__arm_viwdupq_n_u16): Likewise.
19133 (__arm_viwdupq_wb_u8): Likewise.
19134 (__arm_viwdupq_wb_u32): Likewise.
19135 (__arm_viwdupq_wb_u16): Likewise.
19136 (vidupq_m): Define polymorphic variant.
19137 (vddupq_m): Likewise.
19138 (vidupq_u16): Likewise.
19139 (vidupq_u32): Likewise.
19140 (vidupq_u8): Likewise.
19141 (vddupq_u16): Likewise.
19142 (vddupq_u32): Likewise.
19143 (vddupq_u8): Likewise.
19144 (viwdupq_m): Likewise.
19145 (viwdupq_u16): Likewise.
19146 (viwdupq_u32): Likewise.
19147 (viwdupq_u8): Likewise.
19148 (vdwdupq_m): Likewise.
19149 (vdwdupq_u16): Likewise.
19150 (vdwdupq_u32): Likewise.
19151 (vdwdupq_u8): Likewise.
19152 * config/arm/arm_mve_builtins.def
19153 (QUINOP_UNONE_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Use builtin
19154 qualifier.
19155 * config/arm/mve.md (mve_vidupq_n_u<mode>): Define RTL pattern.
19156 (mve_vidupq_u<mode>_insn): Likewise.
19157 (mve_vidupq_m_n_u<mode>): Likewise.
19158 (mve_vidupq_m_wb_u<mode>_insn): Likewise.
19159 (mve_vddupq_n_u<mode>): Likewise.
19160 (mve_vddupq_u<mode>_insn): Likewise.
19161 (mve_vddupq_m_n_u<mode>): Likewise.
19162 (mve_vddupq_m_wb_u<mode>_insn): Likewise.
19163 (mve_vdwdupq_n_u<mode>): Likewise.
19164 (mve_vdwdupq_wb_u<mode>): Likewise.
19165 (mve_vdwdupq_wb_u<mode>_insn): Likewise.
19166 (mve_vdwdupq_m_n_u<mode>): Likewise.
19167 (mve_vdwdupq_m_wb_u<mode>): Likewise.
19168 (mve_vdwdupq_m_wb_u<mode>_insn): Likewise.
19169 (mve_viwdupq_n_u<mode>): Likewise.
19170 (mve_viwdupq_wb_u<mode>): Likewise.
19171 (mve_viwdupq_wb_u<mode>_insn): Likewise.
19172 (mve_viwdupq_m_n_u<mode>): Likewise.
19173 (mve_viwdupq_m_wb_u<mode>): Likewise.
19174 (mve_viwdupq_m_wb_u<mode>_insn): Likewise.
19175
19176 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19177
19178 * config/arm/arm_mve.h (vreinterpretq_s16_s32): Define macro.
19179 (vreinterpretq_s16_s64): Likewise.
19180 (vreinterpretq_s16_s8): Likewise.
19181 (vreinterpretq_s16_u16): Likewise.
19182 (vreinterpretq_s16_u32): Likewise.
19183 (vreinterpretq_s16_u64): Likewise.
19184 (vreinterpretq_s16_u8): Likewise.
19185 (vreinterpretq_s32_s16): Likewise.
19186 (vreinterpretq_s32_s64): Likewise.
19187 (vreinterpretq_s32_s8): Likewise.
19188 (vreinterpretq_s32_u16): Likewise.
19189 (vreinterpretq_s32_u32): Likewise.
19190 (vreinterpretq_s32_u64): Likewise.
19191 (vreinterpretq_s32_u8): Likewise.
19192 (vreinterpretq_s64_s16): Likewise.
19193 (vreinterpretq_s64_s32): Likewise.
19194 (vreinterpretq_s64_s8): Likewise.
19195 (vreinterpretq_s64_u16): Likewise.
19196 (vreinterpretq_s64_u32): Likewise.
19197 (vreinterpretq_s64_u64): Likewise.
19198 (vreinterpretq_s64_u8): Likewise.
19199 (vreinterpretq_s8_s16): Likewise.
19200 (vreinterpretq_s8_s32): Likewise.
19201 (vreinterpretq_s8_s64): Likewise.
19202 (vreinterpretq_s8_u16): Likewise.
19203 (vreinterpretq_s8_u32): Likewise.
19204 (vreinterpretq_s8_u64): Likewise.
19205 (vreinterpretq_s8_u8): Likewise.
19206 (vreinterpretq_u16_s16): Likewise.
19207 (vreinterpretq_u16_s32): Likewise.
19208 (vreinterpretq_u16_s64): Likewise.
19209 (vreinterpretq_u16_s8): Likewise.
19210 (vreinterpretq_u16_u32): Likewise.
19211 (vreinterpretq_u16_u64): Likewise.
19212 (vreinterpretq_u16_u8): Likewise.
19213 (vreinterpretq_u32_s16): Likewise.
19214 (vreinterpretq_u32_s32): Likewise.
19215 (vreinterpretq_u32_s64): Likewise.
19216 (vreinterpretq_u32_s8): Likewise.
19217 (vreinterpretq_u32_u16): Likewise.
19218 (vreinterpretq_u32_u64): Likewise.
19219 (vreinterpretq_u32_u8): Likewise.
19220 (vreinterpretq_u64_s16): Likewise.
19221 (vreinterpretq_u64_s32): Likewise.
19222 (vreinterpretq_u64_s64): Likewise.
19223 (vreinterpretq_u64_s8): Likewise.
19224 (vreinterpretq_u64_u16): Likewise.
19225 (vreinterpretq_u64_u32): Likewise.
19226 (vreinterpretq_u64_u8): Likewise.
19227 (vreinterpretq_u8_s16): Likewise.
19228 (vreinterpretq_u8_s32): Likewise.
19229 (vreinterpretq_u8_s64): Likewise.
19230 (vreinterpretq_u8_s8): Likewise.
19231 (vreinterpretq_u8_u16): Likewise.
19232 (vreinterpretq_u8_u32): Likewise.
19233 (vreinterpretq_u8_u64): Likewise.
19234 (vreinterpretq_s32_f16): Likewise.
19235 (vreinterpretq_s32_f32): Likewise.
19236 (vreinterpretq_u16_f16): Likewise.
19237 (vreinterpretq_u16_f32): Likewise.
19238 (vreinterpretq_u32_f16): Likewise.
19239 (vreinterpretq_u32_f32): Likewise.
19240 (vreinterpretq_u64_f16): Likewise.
19241 (vreinterpretq_u64_f32): Likewise.
19242 (vreinterpretq_u8_f16): Likewise.
19243 (vreinterpretq_u8_f32): Likewise.
19244 (vreinterpretq_f16_f32): Likewise.
19245 (vreinterpretq_f16_s16): Likewise.
19246 (vreinterpretq_f16_s32): Likewise.
19247 (vreinterpretq_f16_s64): Likewise.
19248 (vreinterpretq_f16_s8): Likewise.
19249 (vreinterpretq_f16_u16): Likewise.
19250 (vreinterpretq_f16_u32): Likewise.
19251 (vreinterpretq_f16_u64): Likewise.
19252 (vreinterpretq_f16_u8): Likewise.
19253 (vreinterpretq_f32_f16): Likewise.
19254 (vreinterpretq_f32_s16): Likewise.
19255 (vreinterpretq_f32_s32): Likewise.
19256 (vreinterpretq_f32_s64): Likewise.
19257 (vreinterpretq_f32_s8): Likewise.
19258 (vreinterpretq_f32_u16): Likewise.
19259 (vreinterpretq_f32_u32): Likewise.
19260 (vreinterpretq_f32_u64): Likewise.
19261 (vreinterpretq_f32_u8): Likewise.
19262 (vreinterpretq_s16_f16): Likewise.
19263 (vreinterpretq_s16_f32): Likewise.
19264 (vreinterpretq_s64_f16): Likewise.
19265 (vreinterpretq_s64_f32): Likewise.
19266 (vreinterpretq_s8_f16): Likewise.
19267 (vreinterpretq_s8_f32): Likewise.
19268 (vuninitializedq_u8): Likewise.
19269 (vuninitializedq_u16): Likewise.
19270 (vuninitializedq_u32): Likewise.
19271 (vuninitializedq_u64): Likewise.
19272 (vuninitializedq_s8): Likewise.
19273 (vuninitializedq_s16): Likewise.
19274 (vuninitializedq_s32): Likewise.
19275 (vuninitializedq_s64): Likewise.
19276 (vuninitializedq_f16): Likewise.
19277 (vuninitializedq_f32): Likewise.
19278 (__arm_vuninitializedq_u8): Define intrinsic.
19279 (__arm_vuninitializedq_u16): Likewise.
19280 (__arm_vuninitializedq_u32): Likewise.
19281 (__arm_vuninitializedq_u64): Likewise.
19282 (__arm_vuninitializedq_s8): Likewise.
19283 (__arm_vuninitializedq_s16): Likewise.
19284 (__arm_vuninitializedq_s32): Likewise.
19285 (__arm_vuninitializedq_s64): Likewise.
19286 (__arm_vreinterpretq_s16_s32): Likewise.
19287 (__arm_vreinterpretq_s16_s64): Likewise.
19288 (__arm_vreinterpretq_s16_s8): Likewise.
19289 (__arm_vreinterpretq_s16_u16): Likewise.
19290 (__arm_vreinterpretq_s16_u32): Likewise.
19291 (__arm_vreinterpretq_s16_u64): Likewise.
19292 (__arm_vreinterpretq_s16_u8): Likewise.
19293 (__arm_vreinterpretq_s32_s16): Likewise.
19294 (__arm_vreinterpretq_s32_s64): Likewise.
19295 (__arm_vreinterpretq_s32_s8): Likewise.
19296 (__arm_vreinterpretq_s32_u16): Likewise.
19297 (__arm_vreinterpretq_s32_u32): Likewise.
19298 (__arm_vreinterpretq_s32_u64): Likewise.
19299 (__arm_vreinterpretq_s32_u8): Likewise.
19300 (__arm_vreinterpretq_s64_s16): Likewise.
19301 (__arm_vreinterpretq_s64_s32): Likewise.
19302 (__arm_vreinterpretq_s64_s8): Likewise.
19303 (__arm_vreinterpretq_s64_u16): Likewise.
19304 (__arm_vreinterpretq_s64_u32): Likewise.
19305 (__arm_vreinterpretq_s64_u64): Likewise.
19306 (__arm_vreinterpretq_s64_u8): Likewise.
19307 (__arm_vreinterpretq_s8_s16): Likewise.
19308 (__arm_vreinterpretq_s8_s32): Likewise.
19309 (__arm_vreinterpretq_s8_s64): Likewise.
19310 (__arm_vreinterpretq_s8_u16): Likewise.
19311 (__arm_vreinterpretq_s8_u32): Likewise.
19312 (__arm_vreinterpretq_s8_u64): Likewise.
19313 (__arm_vreinterpretq_s8_u8): Likewise.
19314 (__arm_vreinterpretq_u16_s16): Likewise.
19315 (__arm_vreinterpretq_u16_s32): Likewise.
19316 (__arm_vreinterpretq_u16_s64): Likewise.
19317 (__arm_vreinterpretq_u16_s8): Likewise.
19318 (__arm_vreinterpretq_u16_u32): Likewise.
19319 (__arm_vreinterpretq_u16_u64): Likewise.
19320 (__arm_vreinterpretq_u16_u8): Likewise.
19321 (__arm_vreinterpretq_u32_s16): Likewise.
19322 (__arm_vreinterpretq_u32_s32): Likewise.
19323 (__arm_vreinterpretq_u32_s64): Likewise.
19324 (__arm_vreinterpretq_u32_s8): Likewise.
19325 (__arm_vreinterpretq_u32_u16): Likewise.
19326 (__arm_vreinterpretq_u32_u64): Likewise.
19327 (__arm_vreinterpretq_u32_u8): Likewise.
19328 (__arm_vreinterpretq_u64_s16): Likewise.
19329 (__arm_vreinterpretq_u64_s32): Likewise.
19330 (__arm_vreinterpretq_u64_s64): Likewise.
19331 (__arm_vreinterpretq_u64_s8): Likewise.
19332 (__arm_vreinterpretq_u64_u16): Likewise.
19333 (__arm_vreinterpretq_u64_u32): Likewise.
19334 (__arm_vreinterpretq_u64_u8): Likewise.
19335 (__arm_vreinterpretq_u8_s16): Likewise.
19336 (__arm_vreinterpretq_u8_s32): Likewise.
19337 (__arm_vreinterpretq_u8_s64): Likewise.
19338 (__arm_vreinterpretq_u8_s8): Likewise.
19339 (__arm_vreinterpretq_u8_u16): Likewise.
19340 (__arm_vreinterpretq_u8_u32): Likewise.
19341 (__arm_vreinterpretq_u8_u64): Likewise.
19342 (__arm_vuninitializedq_f16): Likewise.
19343 (__arm_vuninitializedq_f32): Likewise.
19344 (__arm_vreinterpretq_s32_f16): Likewise.
19345 (__arm_vreinterpretq_s32_f32): Likewise.
19346 (__arm_vreinterpretq_s16_f16): Likewise.
19347 (__arm_vreinterpretq_s16_f32): Likewise.
19348 (__arm_vreinterpretq_s64_f16): Likewise.
19349 (__arm_vreinterpretq_s64_f32): Likewise.
19350 (__arm_vreinterpretq_s8_f16): Likewise.
19351 (__arm_vreinterpretq_s8_f32): Likewise.
19352 (__arm_vreinterpretq_u16_f16): Likewise.
19353 (__arm_vreinterpretq_u16_f32): Likewise.
19354 (__arm_vreinterpretq_u32_f16): Likewise.
19355 (__arm_vreinterpretq_u32_f32): Likewise.
19356 (__arm_vreinterpretq_u64_f16): Likewise.
19357 (__arm_vreinterpretq_u64_f32): Likewise.
19358 (__arm_vreinterpretq_u8_f16): Likewise.
19359 (__arm_vreinterpretq_u8_f32): Likewise.
19360 (__arm_vreinterpretq_f16_f32): Likewise.
19361 (__arm_vreinterpretq_f16_s16): Likewise.
19362 (__arm_vreinterpretq_f16_s32): Likewise.
19363 (__arm_vreinterpretq_f16_s64): Likewise.
19364 (__arm_vreinterpretq_f16_s8): Likewise.
19365 (__arm_vreinterpretq_f16_u16): Likewise.
19366 (__arm_vreinterpretq_f16_u32): Likewise.
19367 (__arm_vreinterpretq_f16_u64): Likewise.
19368 (__arm_vreinterpretq_f16_u8): Likewise.
19369 (__arm_vreinterpretq_f32_f16): Likewise.
19370 (__arm_vreinterpretq_f32_s16): Likewise.
19371 (__arm_vreinterpretq_f32_s32): Likewise.
19372 (__arm_vreinterpretq_f32_s64): Likewise.
19373 (__arm_vreinterpretq_f32_s8): Likewise.
19374 (__arm_vreinterpretq_f32_u16): Likewise.
19375 (__arm_vreinterpretq_f32_u32): Likewise.
19376 (__arm_vreinterpretq_f32_u64): Likewise.
19377 (__arm_vreinterpretq_f32_u8): Likewise.
19378 (vuninitializedq): Define polymorphic variant.
19379 (vreinterpretq_f16): Likewise.
19380 (vreinterpretq_f32): Likewise.
19381 (vreinterpretq_s16): Likewise.
19382 (vreinterpretq_s32): Likewise.
19383 (vreinterpretq_s64): Likewise.
19384 (vreinterpretq_s8): Likewise.
19385 (vreinterpretq_u16): Likewise.
19386 (vreinterpretq_u32): Likewise.
19387 (vreinterpretq_u64): Likewise.
19388 (vreinterpretq_u8): Likewise.
19389
19390 2020-03-20 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19391 Andre Vieira <andre.simoesdiasvieira@arm.com>
19392 Mihail Ionescu <mihail.ionescu@arm.com>
19393
19394 * config/arm/arm_mve.h (vaddq_s8): Define macro.
19395 (vaddq_s16): Likewise.
19396 (vaddq_s32): Likewise.
19397 (vaddq_u8): Likewise.
19398 (vaddq_u16): Likewise.
19399 (vaddq_u32): Likewise.
19400 (vaddq_f16): Likewise.
19401 (vaddq_f32): Likewise.
19402 (__arm_vaddq_s8): Define intrinsic.
19403 (__arm_vaddq_s16): Likewise.
19404 (__arm_vaddq_s32): Likewise.
19405 (__arm_vaddq_u8): Likewise.
19406 (__arm_vaddq_u16): Likewise.
19407 (__arm_vaddq_u32): Likewise.
19408 (__arm_vaddq_f16): Likewise.
19409 (__arm_vaddq_f32): Likewise.
19410 (vaddq): Define polymorphic variant.
19411 * config/arm/iterators.md (VNIM): Define mode iterator for common types
19412 Neon, IWMMXT and MVE.
19413 (VNINOTM): Likewise.
19414 * config/arm/mve.md (mve_vaddq<mode>): Define RTL pattern.
19415 (mve_vaddq_f<mode>): Define RTL pattern.
19416 * config/arm/neon.md (add<mode>3): Rename to addv4hf3 RTL pattern.
19417 (addv8hf3_neon): Define RTL pattern.
19418 * config/arm/vec-common.md (add<mode>3): Modify standard add RTL pattern
19419 to support MVE.
19420 (addv8hf3): Define standard RTL pattern for MVE and Neon.
19421 (add<mode>3): Modify existing standard add RTL pattern for Neon and IWMMXT.
19422
19423 2020-03-20 Martin Liska <mliska@suse.cz>
19424
19425 PR ipa/94232
19426 * ipa-cp.c (ipa_get_jf_ancestor_result): Use offset in bytes. Previously
19427 build_ref_for_offset function was used and it transforms off to bytes
19428 from bits.
19429
19430 2020-03-20 Richard Biener <rguenther@suse.de>
19431
19432 PR tree-optimization/94266
19433 * gimple-ssa-sprintf.c (get_origin_and_offset): Use the
19434 type of the underlying object to adjust for the containing
19435 field if available.
19436
19437 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
19438
19439 * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Rename this to ...
19440 (VUNSPEC_GET_FPSCR): ... this, and move it to vunspec.
19441 * config/arm/vfp.md: (get_fpscr, set_fpscr): Revert to old patterns.
19442
19443 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
19444
19445 * config/arm/mve.md (mve_mov<mode>): Fix R->R case.
19446
19447 2020-03-20 Jakub Jelinek <jakub@redhat.com>
19448
19449 PR tree-optimization/94224
19450 * gimple-ssa-store-merging.c
19451 (imm_store_chain_info::coalesce_immediate): Don't consider overlapping
19452 or adjacent INTEGER_CST rhs_code stores as mergeable if they have
19453 different lp_nr.
19454
19455 2020-03-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
19456
19457 * config/arm/arm.md (define_attr "conds"): Fix logic for neon and mve.
19458
19459 2020-03-19 Jan Hubicka <hubicka@ucw.cz>
19460
19461 PR ipa/94202
19462 * cgraph.c (cgraph_node::function_symbol): Fix availability computation.
19463 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19464
19465 2020-03-19 Jan Hubicka <hubicka@ucw.cz>
19466
19467 PR ipa/92372
19468 * cgraphunit.c (process_function_and_variable_attributes): warn
19469 for flatten attribute on alias.
19470 * ipa-inline.c (ipa_inline): Do not ICE on flatten attribute on alias.
19471
19472 2020-03-19 Martin Liska <mliska@suse.cz>
19473
19474 * lto-section-in.c: Add ext_symtab.
19475 * lto-streamer-out.c (write_symbol_extension_info): New.
19476 (produce_symtab_extension): New.
19477 (produce_asm_for_decls): Stream also produce_symtab_extension.
19478 * lto-streamer.h (enum lto_section_type): New section.
19479
19480 2020-03-19 Jakub Jelinek <jakub@redhat.com>
19481
19482 PR tree-optimization/94211
19483 * tree-ssa-phiopt.c (value_replacement): Use estimate_num_insns_seq
19484 instead of estimate_num_insns for bb_seq (middle_bb). Rename
19485 emtpy_or_with_defined_p variable to empty_or_with_defined_p, adjust
19486 all uses.
19487
19488 2020-03-19 Richard Biener <rguenther@suse.de>
19489
19490 PR ipa/94217
19491 * ipa-cp.c (ipa_get_jf_ancestor_result): Avoid build_fold_addr_expr
19492 and build_ref_for_offset.
19493
19494 2020-03-19 Richard Biener <rguenther@suse.de>
19495
19496 PR middle-end/94216
19497 * fold-const.c (fold_binary_loc): Avoid using
19498 build_fold_addr_expr when we really want an ADDR_EXPR.
19499
19500 2020-03-18 Segher Boessenkool <segher@kernel.crashing.org>
19501
19502 * config/rs6000/constraints.md (wd, wf, wi, ws, ww): New undocumented
19503 aliases for "wa".
19504
19505 2020-03-12 Richard Sandiford <richard.sandiford@arm.com>
19506
19507 PR rtl-optimization/90275
19508 * cse.c (cse_insn): Delete no-op register moves too.
19509
19510 2020-03-18 Martin Sebor <msebor@redhat.com>
19511
19512 PR ipa/92799
19513 * cgraphunit.c (process_function_and_variable_attributes): Also
19514 complain about weakref function definitions and drop all effects
19515 of the attribute.
19516
19517 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
19518 Mihail Ionescu <mihail.ionescu@arm.com>
19519 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19520
19521 * config/arm/arm_mve.h (vstrdq_scatter_base_p_s64): Define macro.
19522 (vstrdq_scatter_base_p_u64): Likewise.
19523 (vstrdq_scatter_base_s64): Likewise.
19524 (vstrdq_scatter_base_u64): Likewise.
19525 (vstrdq_scatter_offset_p_s64): Likewise.
19526 (vstrdq_scatter_offset_p_u64): Likewise.
19527 (vstrdq_scatter_offset_s64): Likewise.
19528 (vstrdq_scatter_offset_u64): Likewise.
19529 (vstrdq_scatter_shifted_offset_p_s64): Likewise.
19530 (vstrdq_scatter_shifted_offset_p_u64): Likewise.
19531 (vstrdq_scatter_shifted_offset_s64): Likewise.
19532 (vstrdq_scatter_shifted_offset_u64): Likewise.
19533 (vstrhq_scatter_offset_f16): Likewise.
19534 (vstrhq_scatter_offset_p_f16): Likewise.
19535 (vstrhq_scatter_shifted_offset_f16): Likewise.
19536 (vstrhq_scatter_shifted_offset_p_f16): Likewise.
19537 (vstrwq_scatter_base_f32): Likewise.
19538 (vstrwq_scatter_base_p_f32): Likewise.
19539 (vstrwq_scatter_offset_f32): Likewise.
19540 (vstrwq_scatter_offset_p_f32): Likewise.
19541 (vstrwq_scatter_offset_p_s32): Likewise.
19542 (vstrwq_scatter_offset_p_u32): Likewise.
19543 (vstrwq_scatter_offset_s32): Likewise.
19544 (vstrwq_scatter_offset_u32): Likewise.
19545 (vstrwq_scatter_shifted_offset_f32): Likewise.
19546 (vstrwq_scatter_shifted_offset_p_f32): Likewise.
19547 (vstrwq_scatter_shifted_offset_p_s32): Likewise.
19548 (vstrwq_scatter_shifted_offset_p_u32): Likewise.
19549 (vstrwq_scatter_shifted_offset_s32): Likewise.
19550 (vstrwq_scatter_shifted_offset_u32): Likewise.
19551 (__arm_vstrdq_scatter_base_p_s64): Define intrinsic.
19552 (__arm_vstrdq_scatter_base_p_u64): Likewise.
19553 (__arm_vstrdq_scatter_base_s64): Likewise.
19554 (__arm_vstrdq_scatter_base_u64): Likewise.
19555 (__arm_vstrdq_scatter_offset_p_s64): Likewise.
19556 (__arm_vstrdq_scatter_offset_p_u64): Likewise.
19557 (__arm_vstrdq_scatter_offset_s64): Likewise.
19558 (__arm_vstrdq_scatter_offset_u64): Likewise.
19559 (__arm_vstrdq_scatter_shifted_offset_p_s64): Likewise.
19560 (__arm_vstrdq_scatter_shifted_offset_p_u64): Likewise.
19561 (__arm_vstrdq_scatter_shifted_offset_s64): Likewise.
19562 (__arm_vstrdq_scatter_shifted_offset_u64): Likewise.
19563 (__arm_vstrwq_scatter_offset_p_s32): Likewise.
19564 (__arm_vstrwq_scatter_offset_p_u32): Likewise.
19565 (__arm_vstrwq_scatter_offset_s32): Likewise.
19566 (__arm_vstrwq_scatter_offset_u32): Likewise.
19567 (__arm_vstrwq_scatter_shifted_offset_p_s32): Likewise.
19568 (__arm_vstrwq_scatter_shifted_offset_p_u32): Likewise.
19569 (__arm_vstrwq_scatter_shifted_offset_s32): Likewise.
19570 (__arm_vstrwq_scatter_shifted_offset_u32): Likewise.
19571 (__arm_vstrhq_scatter_offset_f16): Likewise.
19572 (__arm_vstrhq_scatter_offset_p_f16): Likewise.
19573 (__arm_vstrhq_scatter_shifted_offset_f16): Likewise.
19574 (__arm_vstrhq_scatter_shifted_offset_p_f16): Likewise.
19575 (__arm_vstrwq_scatter_base_f32): Likewise.
19576 (__arm_vstrwq_scatter_base_p_f32): Likewise.
19577 (__arm_vstrwq_scatter_offset_f32): Likewise.
19578 (__arm_vstrwq_scatter_offset_p_f32): Likewise.
19579 (__arm_vstrwq_scatter_shifted_offset_f32): Likewise.
19580 (__arm_vstrwq_scatter_shifted_offset_p_f32): Likewise.
19581 (vstrhq_scatter_offset): Define polymorphic variant.
19582 (vstrhq_scatter_offset_p): Likewise.
19583 (vstrhq_scatter_shifted_offset): Likewise.
19584 (vstrhq_scatter_shifted_offset_p): Likewise.
19585 (vstrwq_scatter_base): Likewise.
19586 (vstrwq_scatter_base_p): Likewise.
19587 (vstrwq_scatter_offset): Likewise.
19588 (vstrwq_scatter_offset_p): Likewise.
19589 (vstrwq_scatter_shifted_offset): Likewise.
19590 (vstrwq_scatter_shifted_offset_p): Likewise.
19591 (vstrdq_scatter_base_p): Likewise.
19592 (vstrdq_scatter_base): Likewise.
19593 (vstrdq_scatter_offset_p): Likewise.
19594 (vstrdq_scatter_offset): Likewise.
19595 (vstrdq_scatter_shifted_offset_p): Likewise.
19596 (vstrdq_scatter_shifted_offset): Likewise.
19597 * config/arm/arm_mve_builtins.def (STRSBS): Use builtin qualifier.
19598 (STRSBS_P): Likewise.
19599 (STRSBU): Likewise.
19600 (STRSBU_P): Likewise.
19601 (STRSS): Likewise.
19602 (STRSS_P): Likewise.
19603 (STRSU): Likewise.
19604 (STRSU_P): Likewise.
19605 * config/arm/constraints.md (Ri): Define.
19606 * config/arm/mve.md (VSTRDSBQ): Define iterator.
19607 (VSTRDSOQ): Likewise.
19608 (VSTRDSSOQ): Likewise.
19609 (VSTRWSOQ): Likewise.
19610 (VSTRWSSOQ): Likewise.
19611 (mve_vstrdq_scatter_base_p_<supf>v2di): Define RTL pattern.
19612 (mve_vstrdq_scatter_base_<supf>v2di): Likewise.
19613 (mve_vstrdq_scatter_offset_p_<supf>v2di): Likewise.
19614 (mve_vstrdq_scatter_offset_<supf>v2di): Likewise.
19615 (mve_vstrdq_scatter_shifted_offset_p_<supf>v2di): Likewise.
19616 (mve_vstrdq_scatter_shifted_offset_<supf>v2di): Likewise.
19617 (mve_vstrhq_scatter_offset_fv8hf): Likewise.
19618 (mve_vstrhq_scatter_offset_p_fv8hf): Likewise.
19619 (mve_vstrhq_scatter_shifted_offset_fv8hf): Likewise.
19620 (mve_vstrhq_scatter_shifted_offset_p_fv8hf): Likewise.
19621 (mve_vstrwq_scatter_base_fv4sf): Likewise.
19622 (mve_vstrwq_scatter_base_p_fv4sf): Likewise.
19623 (mve_vstrwq_scatter_offset_fv4sf): Likewise.
19624 (mve_vstrwq_scatter_offset_p_fv4sf): Likewise.
19625 (mve_vstrwq_scatter_offset_p_<supf>v4si): Likewise.
19626 (mve_vstrwq_scatter_offset_<supf>v4si): Likewise.
19627 (mve_vstrwq_scatter_shifted_offset_fv4sf): Likewise.
19628 (mve_vstrwq_scatter_shifted_offset_p_fv4sf): Likewise.
19629 (mve_vstrwq_scatter_shifted_offset_p_<supf>v4si): Likewise.
19630 (mve_vstrwq_scatter_shifted_offset_<supf>v4si): Likewise.
19631 * config/arm/predicates.md (Ri): Define predicate to check immediate
19632 is the range +/-1016 and multiple of 8.
19633
19634 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
19635 Mihail Ionescu <mihail.ionescu@arm.com>
19636 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19637
19638 * config/arm/arm_mve.h (vst1q_f32): Define macro.
19639 (vst1q_f16): Likewise.
19640 (vst1q_s8): Likewise.
19641 (vst1q_s32): Likewise.
19642 (vst1q_s16): Likewise.
19643 (vst1q_u8): Likewise.
19644 (vst1q_u32): Likewise.
19645 (vst1q_u16): Likewise.
19646 (vstrhq_f16): Likewise.
19647 (vstrhq_scatter_offset_s32): Likewise.
19648 (vstrhq_scatter_offset_s16): Likewise.
19649 (vstrhq_scatter_offset_u32): Likewise.
19650 (vstrhq_scatter_offset_u16): Likewise.
19651 (vstrhq_scatter_offset_p_s32): Likewise.
19652 (vstrhq_scatter_offset_p_s16): Likewise.
19653 (vstrhq_scatter_offset_p_u32): Likewise.
19654 (vstrhq_scatter_offset_p_u16): Likewise.
19655 (vstrhq_scatter_shifted_offset_s32): Likewise.
19656 (vstrhq_scatter_shifted_offset_s16): Likewise.
19657 (vstrhq_scatter_shifted_offset_u32): Likewise.
19658 (vstrhq_scatter_shifted_offset_u16): Likewise.
19659 (vstrhq_scatter_shifted_offset_p_s32): Likewise.
19660 (vstrhq_scatter_shifted_offset_p_s16): Likewise.
19661 (vstrhq_scatter_shifted_offset_p_u32): Likewise.
19662 (vstrhq_scatter_shifted_offset_p_u16): Likewise.
19663 (vstrhq_s32): Likewise.
19664 (vstrhq_s16): Likewise.
19665 (vstrhq_u32): Likewise.
19666 (vstrhq_u16): Likewise.
19667 (vstrhq_p_f16): Likewise.
19668 (vstrhq_p_s32): Likewise.
19669 (vstrhq_p_s16): Likewise.
19670 (vstrhq_p_u32): Likewise.
19671 (vstrhq_p_u16): Likewise.
19672 (vstrwq_f32): Likewise.
19673 (vstrwq_s32): Likewise.
19674 (vstrwq_u32): Likewise.
19675 (vstrwq_p_f32): Likewise.
19676 (vstrwq_p_s32): Likewise.
19677 (vstrwq_p_u32): Likewise.
19678 (__arm_vst1q_s8): Define intrinsic.
19679 (__arm_vst1q_s32): Likewise.
19680 (__arm_vst1q_s16): Likewise.
19681 (__arm_vst1q_u8): Likewise.
19682 (__arm_vst1q_u32): Likewise.
19683 (__arm_vst1q_u16): Likewise.
19684 (__arm_vstrhq_scatter_offset_s32): Likewise.
19685 (__arm_vstrhq_scatter_offset_s16): Likewise.
19686 (__arm_vstrhq_scatter_offset_u32): Likewise.
19687 (__arm_vstrhq_scatter_offset_u16): Likewise.
19688 (__arm_vstrhq_scatter_offset_p_s32): Likewise.
19689 (__arm_vstrhq_scatter_offset_p_s16): Likewise.
19690 (__arm_vstrhq_scatter_offset_p_u32): Likewise.
19691 (__arm_vstrhq_scatter_offset_p_u16): Likewise.
19692 (__arm_vstrhq_scatter_shifted_offset_s32): Likewise.
19693 (__arm_vstrhq_scatter_shifted_offset_s16): Likewise.
19694 (__arm_vstrhq_scatter_shifted_offset_u32): Likewise.
19695 (__arm_vstrhq_scatter_shifted_offset_u16): Likewise.
19696 (__arm_vstrhq_scatter_shifted_offset_p_s32): Likewise.
19697 (__arm_vstrhq_scatter_shifted_offset_p_s16): Likewise.
19698 (__arm_vstrhq_scatter_shifted_offset_p_u32): Likewise.
19699 (__arm_vstrhq_scatter_shifted_offset_p_u16): Likewise.
19700 (__arm_vstrhq_s32): Likewise.
19701 (__arm_vstrhq_s16): Likewise.
19702 (__arm_vstrhq_u32): Likewise.
19703 (__arm_vstrhq_u16): Likewise.
19704 (__arm_vstrhq_p_s32): Likewise.
19705 (__arm_vstrhq_p_s16): Likewise.
19706 (__arm_vstrhq_p_u32): Likewise.
19707 (__arm_vstrhq_p_u16): Likewise.
19708 (__arm_vstrwq_s32): Likewise.
19709 (__arm_vstrwq_u32): Likewise.
19710 (__arm_vstrwq_p_s32): Likewise.
19711 (__arm_vstrwq_p_u32): Likewise.
19712 (__arm_vstrwq_p_f32): Likewise.
19713 (__arm_vstrwq_f32): Likewise.
19714 (__arm_vst1q_f32): Likewise.
19715 (__arm_vst1q_f16): Likewise.
19716 (__arm_vstrhq_f16): Likewise.
19717 (__arm_vstrhq_p_f16): Likewise.
19718 (vst1q): Define polymorphic variant.
19719 (vstrhq): Likewise.
19720 (vstrhq_p): Likewise.
19721 (vstrhq_scatter_offset_p): Likewise.
19722 (vstrhq_scatter_offset): Likewise.
19723 (vstrhq_scatter_shifted_offset_p): Likewise.
19724 (vstrhq_scatter_shifted_offset): Likewise.
19725 (vstrwq_p): Likewise.
19726 (vstrwq): Likewise.
19727 * config/arm/arm_mve_builtins.def (STRS): Use builtin qualifier.
19728 (STRS_P): Likewise.
19729 (STRSS): Likewise.
19730 (STRSS_P): Likewise.
19731 (STRSU): Likewise.
19732 (STRSU_P): Likewise.
19733 (STRU): Likewise.
19734 (STRU_P): Likewise.
19735 * config/arm/mve.md (VST1Q): Define iterator.
19736 (VSTRHSOQ): Likewise.
19737 (VSTRHSSOQ): Likewise.
19738 (VSTRHQ): Likewise.
19739 (VSTRWQ): Likewise.
19740 (mve_vstrhq_fv8hf): Define RTL pattern.
19741 (mve_vstrhq_p_fv8hf): Likewise.
19742 (mve_vstrhq_p_<supf><mode>): Likewise.
19743 (mve_vstrhq_scatter_offset_p_<supf><mode>): Likewise.
19744 (mve_vstrhq_scatter_offset_<supf><mode>): Likewise.
19745 (mve_vstrhq_scatter_shifted_offset_p_<supf><mode>): Likewise.
19746 (mve_vstrhq_scatter_shifted_offset_<supf><mode>): Likewise.
19747 (mve_vstrhq_<supf><mode>): Likewise.
19748 (mve_vstrwq_fv4sf): Likewise.
19749 (mve_vstrwq_p_fv4sf): Likewise.
19750 (mve_vstrwq_p_<supf>v4si): Likewise.
19751 (mve_vstrwq_<supf>v4si): Likewise.
19752 (mve_vst1q_f<mode>): Define expand.
19753 (mve_vst1q_<supf><mode>): Likewise.
19754
19755 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
19756 Mihail Ionescu <mihail.ionescu@arm.com>
19757 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19758
19759 * config/arm/arm_mve.h (vld1q_s8): Define macro.
19760 (vld1q_s32): Likewise.
19761 (vld1q_s16): Likewise.
19762 (vld1q_u8): Likewise.
19763 (vld1q_u32): Likewise.
19764 (vld1q_u16): Likewise.
19765 (vldrhq_gather_offset_s32): Likewise.
19766 (vldrhq_gather_offset_s16): Likewise.
19767 (vldrhq_gather_offset_u32): Likewise.
19768 (vldrhq_gather_offset_u16): Likewise.
19769 (vldrhq_gather_offset_z_s32): Likewise.
19770 (vldrhq_gather_offset_z_s16): Likewise.
19771 (vldrhq_gather_offset_z_u32): Likewise.
19772 (vldrhq_gather_offset_z_u16): Likewise.
19773 (vldrhq_gather_shifted_offset_s32): Likewise.
19774 (vldrhq_gather_shifted_offset_s16): Likewise.
19775 (vldrhq_gather_shifted_offset_u32): Likewise.
19776 (vldrhq_gather_shifted_offset_u16): Likewise.
19777 (vldrhq_gather_shifted_offset_z_s32): Likewise.
19778 (vldrhq_gather_shifted_offset_z_s16): Likewise.
19779 (vldrhq_gather_shifted_offset_z_u32): Likewise.
19780 (vldrhq_gather_shifted_offset_z_u16): Likewise.
19781 (vldrhq_s32): Likewise.
19782 (vldrhq_s16): Likewise.
19783 (vldrhq_u32): Likewise.
19784 (vldrhq_u16): Likewise.
19785 (vldrhq_z_s32): Likewise.
19786 (vldrhq_z_s16): Likewise.
19787 (vldrhq_z_u32): Likewise.
19788 (vldrhq_z_u16): Likewise.
19789 (vldrwq_s32): Likewise.
19790 (vldrwq_u32): Likewise.
19791 (vldrwq_z_s32): Likewise.
19792 (vldrwq_z_u32): Likewise.
19793 (vld1q_f32): Likewise.
19794 (vld1q_f16): Likewise.
19795 (vldrhq_f16): Likewise.
19796 (vldrhq_z_f16): Likewise.
19797 (vldrwq_f32): Likewise.
19798 (vldrwq_z_f32): Likewise.
19799 (__arm_vld1q_s8): Define intrinsic.
19800 (__arm_vld1q_s32): Likewise.
19801 (__arm_vld1q_s16): Likewise.
19802 (__arm_vld1q_u8): Likewise.
19803 (__arm_vld1q_u32): Likewise.
19804 (__arm_vld1q_u16): Likewise.
19805 (__arm_vldrhq_gather_offset_s32): Likewise.
19806 (__arm_vldrhq_gather_offset_s16): Likewise.
19807 (__arm_vldrhq_gather_offset_u32): Likewise.
19808 (__arm_vldrhq_gather_offset_u16): Likewise.
19809 (__arm_vldrhq_gather_offset_z_s32): Likewise.
19810 (__arm_vldrhq_gather_offset_z_s16): Likewise.
19811 (__arm_vldrhq_gather_offset_z_u32): Likewise.
19812 (__arm_vldrhq_gather_offset_z_u16): Likewise.
19813 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
19814 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
19815 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
19816 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
19817 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
19818 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
19819 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
19820 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
19821 (__arm_vldrhq_s32): Likewise.
19822 (__arm_vldrhq_s16): Likewise.
19823 (__arm_vldrhq_u32): Likewise.
19824 (__arm_vldrhq_u16): Likewise.
19825 (__arm_vldrhq_z_s32): Likewise.
19826 (__arm_vldrhq_z_s16): Likewise.
19827 (__arm_vldrhq_z_u32): Likewise.
19828 (__arm_vldrhq_z_u16): Likewise.
19829 (__arm_vldrwq_s32): Likewise.
19830 (__arm_vldrwq_u32): Likewise.
19831 (__arm_vldrwq_z_s32): Likewise.
19832 (__arm_vldrwq_z_u32): Likewise.
19833 (__arm_vld1q_f32): Likewise.
19834 (__arm_vld1q_f16): Likewise.
19835 (__arm_vldrwq_f32): Likewise.
19836 (__arm_vldrwq_z_f32): Likewise.
19837 (__arm_vldrhq_z_f16): Likewise.
19838 (__arm_vldrhq_f16): Likewise.
19839 (vld1q): Define polymorphic variant.
19840 (vldrhq_gather_offset): Likewise.
19841 (vldrhq_gather_offset_z): Likewise.
19842 (vldrhq_gather_shifted_offset): Likewise.
19843 (vldrhq_gather_shifted_offset_z): Likewise.
19844 * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
19845 (LDRS): Likewise.
19846 (LDRU_Z): Likewise.
19847 (LDRS_Z): Likewise.
19848 (LDRGU_Z): Likewise.
19849 (LDRGU): Likewise.
19850 (LDRGS_Z): Likewise.
19851 (LDRGS): Likewise.
19852 * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
19853 (V_sz_elem1): Likewise.
19854 (VLD1Q): Define iterator.
19855 (VLDRHGOQ): Likewise.
19856 (VLDRHGSOQ): Likewise.
19857 (VLDRHQ): Likewise.
19858 (VLDRWQ): Likewise.
19859 (mve_vldrhq_fv8hf): Define RTL pattern.
19860 (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
19861 (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
19862 (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
19863 (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
19864 (mve_vldrhq_<supf><mode>): Likewise.
19865 (mve_vldrhq_z_fv8hf): Likewise.
19866 (mve_vldrhq_z_<supf><mode>): Likewise.
19867 (mve_vldrwq_fv4sf): Likewise.
19868 (mve_vldrwq_<supf>v4si): Likewise.
19869 (mve_vldrwq_z_fv4sf): Likewise.
19870 (mve_vldrwq_z_<supf>v4si): Likewise.
19871 (mve_vld1q_f<mode>): Define RTL expand pattern.
19872 (mve_vld1q_<supf><mode>): Likewise.
19873
19874 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
19875 Mihail Ionescu <mihail.ionescu@arm.com>
19876 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19877
19878 * config/arm/arm_mve.h (vld1q_s8): Define macro.
19879 (vld1q_s32): Likewise.
19880 (vld1q_s16): Likewise.
19881 (vld1q_u8): Likewise.
19882 (vld1q_u32): Likewise.
19883 (vld1q_u16): Likewise.
19884 (vldrhq_gather_offset_s32): Likewise.
19885 (vldrhq_gather_offset_s16): Likewise.
19886 (vldrhq_gather_offset_u32): Likewise.
19887 (vldrhq_gather_offset_u16): Likewise.
19888 (vldrhq_gather_offset_z_s32): Likewise.
19889 (vldrhq_gather_offset_z_s16): Likewise.
19890 (vldrhq_gather_offset_z_u32): Likewise.
19891 (vldrhq_gather_offset_z_u16): Likewise.
19892 (vldrhq_gather_shifted_offset_s32): Likewise.
19893 (vldrhq_gather_shifted_offset_s16): Likewise.
19894 (vldrhq_gather_shifted_offset_u32): Likewise.
19895 (vldrhq_gather_shifted_offset_u16): Likewise.
19896 (vldrhq_gather_shifted_offset_z_s32): Likewise.
19897 (vldrhq_gather_shifted_offset_z_s16): Likewise.
19898 (vldrhq_gather_shifted_offset_z_u32): Likewise.
19899 (vldrhq_gather_shifted_offset_z_u16): Likewise.
19900 (vldrhq_s32): Likewise.
19901 (vldrhq_s16): Likewise.
19902 (vldrhq_u32): Likewise.
19903 (vldrhq_u16): Likewise.
19904 (vldrhq_z_s32): Likewise.
19905 (vldrhq_z_s16): Likewise.
19906 (vldrhq_z_u32): Likewise.
19907 (vldrhq_z_u16): Likewise.
19908 (vldrwq_s32): Likewise.
19909 (vldrwq_u32): Likewise.
19910 (vldrwq_z_s32): Likewise.
19911 (vldrwq_z_u32): Likewise.
19912 (vld1q_f32): Likewise.
19913 (vld1q_f16): Likewise.
19914 (vldrhq_f16): Likewise.
19915 (vldrhq_z_f16): Likewise.
19916 (vldrwq_f32): Likewise.
19917 (vldrwq_z_f32): Likewise.
19918 (__arm_vld1q_s8): Define intrinsic.
19919 (__arm_vld1q_s32): Likewise.
19920 (__arm_vld1q_s16): Likewise.
19921 (__arm_vld1q_u8): Likewise.
19922 (__arm_vld1q_u32): Likewise.
19923 (__arm_vld1q_u16): Likewise.
19924 (__arm_vldrhq_gather_offset_s32): Likewise.
19925 (__arm_vldrhq_gather_offset_s16): Likewise.
19926 (__arm_vldrhq_gather_offset_u32): Likewise.
19927 (__arm_vldrhq_gather_offset_u16): Likewise.
19928 (__arm_vldrhq_gather_offset_z_s32): Likewise.
19929 (__arm_vldrhq_gather_offset_z_s16): Likewise.
19930 (__arm_vldrhq_gather_offset_z_u32): Likewise.
19931 (__arm_vldrhq_gather_offset_z_u16): Likewise.
19932 (__arm_vldrhq_gather_shifted_offset_s32): Likewise.
19933 (__arm_vldrhq_gather_shifted_offset_s16): Likewise.
19934 (__arm_vldrhq_gather_shifted_offset_u32): Likewise.
19935 (__arm_vldrhq_gather_shifted_offset_u16): Likewise.
19936 (__arm_vldrhq_gather_shifted_offset_z_s32): Likewise.
19937 (__arm_vldrhq_gather_shifted_offset_z_s16): Likewise.
19938 (__arm_vldrhq_gather_shifted_offset_z_u32): Likewise.
19939 (__arm_vldrhq_gather_shifted_offset_z_u16): Likewise.
19940 (__arm_vldrhq_s32): Likewise.
19941 (__arm_vldrhq_s16): Likewise.
19942 (__arm_vldrhq_u32): Likewise.
19943 (__arm_vldrhq_u16): Likewise.
19944 (__arm_vldrhq_z_s32): Likewise.
19945 (__arm_vldrhq_z_s16): Likewise.
19946 (__arm_vldrhq_z_u32): Likewise.
19947 (__arm_vldrhq_z_u16): Likewise.
19948 (__arm_vldrwq_s32): Likewise.
19949 (__arm_vldrwq_u32): Likewise.
19950 (__arm_vldrwq_z_s32): Likewise.
19951 (__arm_vldrwq_z_u32): Likewise.
19952 (__arm_vld1q_f32): Likewise.
19953 (__arm_vld1q_f16): Likewise.
19954 (__arm_vldrwq_f32): Likewise.
19955 (__arm_vldrwq_z_f32): Likewise.
19956 (__arm_vldrhq_z_f16): Likewise.
19957 (__arm_vldrhq_f16): Likewise.
19958 (vld1q): Define polymorphic variant.
19959 (vldrhq_gather_offset): Likewise.
19960 (vldrhq_gather_offset_z): Likewise.
19961 (vldrhq_gather_shifted_offset): Likewise.
19962 (vldrhq_gather_shifted_offset_z): Likewise.
19963 * config/arm/arm_mve_builtins.def (LDRU): Use builtin qualifier.
19964 (LDRS): Likewise.
19965 (LDRU_Z): Likewise.
19966 (LDRS_Z): Likewise.
19967 (LDRGU_Z): Likewise.
19968 (LDRGU): Likewise.
19969 (LDRGS_Z): Likewise.
19970 (LDRGS): Likewise.
19971 * config/arm/mve.md (MVE_H_ELEM): Define mode iterator.
19972 (V_sz_elem1): Likewise.
19973 (VLD1Q): Define iterator.
19974 (VLDRHGOQ): Likewise.
19975 (VLDRHGSOQ): Likewise.
19976 (VLDRHQ): Likewise.
19977 (VLDRWQ): Likewise.
19978 (mve_vldrhq_fv8hf): Define RTL pattern.
19979 (mve_vldrhq_gather_offset_<supf><mode>): Likewise.
19980 (mve_vldrhq_gather_offset_z_<supf><mode>): Likewise.
19981 (mve_vldrhq_gather_shifted_offset_<supf><mode>): Likewise.
19982 (mve_vldrhq_gather_shifted_offset_z_<supf><mode>): Likewise.
19983 (mve_vldrhq_<supf><mode>): Likewise.
19984 (mve_vldrhq_z_fv8hf): Likewise.
19985 (mve_vldrhq_z_<supf><mode>): Likewise.
19986 (mve_vldrwq_fv4sf): Likewise.
19987 (mve_vldrwq_<supf>v4si): Likewise.
19988 (mve_vldrwq_z_fv4sf): Likewise.
19989 (mve_vldrwq_z_<supf>v4si): Likewise.
19990 (mve_vld1q_f<mode>): Define RTL expand pattern.
19991 (mve_vld1q_<supf><mode>): Likewise.
19992
19993 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
19994 Mihail Ionescu <mihail.ionescu@arm.com>
19995 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
19996
19997 * config/arm/arm-builtins.c (LDRGBS_Z_QUALIFIERS): Define builtin
19998 qualifier.
19999 (LDRGBU_Z_QUALIFIERS): Likewise.
20000 (LDRGS_Z_QUALIFIERS): Likewise.
20001 (LDRGU_Z_QUALIFIERS): Likewise.
20002 (LDRS_Z_QUALIFIERS): Likewise.
20003 (LDRU_Z_QUALIFIERS): Likewise.
20004 * config/arm/arm_mve.h (vldrbq_gather_offset_z_s16): Define macro.
20005 (vldrbq_gather_offset_z_u8): Likewise.
20006 (vldrbq_gather_offset_z_s32): Likewise.
20007 (vldrbq_gather_offset_z_u16): Likewise.
20008 (vldrbq_gather_offset_z_u32): Likewise.
20009 (vldrbq_gather_offset_z_s8): Likewise.
20010 (vldrbq_z_s16): Likewise.
20011 (vldrbq_z_u8): Likewise.
20012 (vldrbq_z_s8): Likewise.
20013 (vldrbq_z_s32): Likewise.
20014 (vldrbq_z_u16): Likewise.
20015 (vldrbq_z_u32): Likewise.
20016 (vldrwq_gather_base_z_u32): Likewise.
20017 (vldrwq_gather_base_z_s32): Likewise.
20018 (__arm_vldrbq_gather_offset_z_s8): Define intrinsic.
20019 (__arm_vldrbq_gather_offset_z_s32): Likewise.
20020 (__arm_vldrbq_gather_offset_z_s16): Likewise.
20021 (__arm_vldrbq_gather_offset_z_u8): Likewise.
20022 (__arm_vldrbq_gather_offset_z_u32): Likewise.
20023 (__arm_vldrbq_gather_offset_z_u16): Likewise.
20024 (__arm_vldrbq_z_s8): Likewise.
20025 (__arm_vldrbq_z_s32): Likewise.
20026 (__arm_vldrbq_z_s16): Likewise.
20027 (__arm_vldrbq_z_u8): Likewise.
20028 (__arm_vldrbq_z_u32): Likewise.
20029 (__arm_vldrbq_z_u16): Likewise.
20030 (__arm_vldrwq_gather_base_z_s32): Likewise.
20031 (__arm_vldrwq_gather_base_z_u32): Likewise.
20032 (vldrbq_gather_offset_z): Define polymorphic variant.
20033 * config/arm/arm_mve_builtins.def (LDRGBS_Z_QUALIFIERS): Use builtin
20034 qualifier.
20035 (LDRGBU_Z_QUALIFIERS): Likewise.
20036 (LDRGS_Z_QUALIFIERS): Likewise.
20037 (LDRGU_Z_QUALIFIERS): Likewise.
20038 (LDRS_Z_QUALIFIERS): Likewise.
20039 (LDRU_Z_QUALIFIERS): Likewise.
20040 * config/arm/mve.md (mve_vldrbq_gather_offset_z_<supf><mode>): Define
20041 RTL pattern.
20042 (mve_vldrbq_z_<supf><mode>): Likewise.
20043 (mve_vldrwq_gather_base_z_<supf>v4si): Likewise.
20044
20045 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
20046 Mihail Ionescu <mihail.ionescu@arm.com>
20047 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20048
20049 * config/arm/arm-builtins.c (STRS_P_QUALIFIERS): Define builtin
20050 qualifier.
20051 (STRU_P_QUALIFIERS): Likewise.
20052 (STRSU_P_QUALIFIERS): Likewise.
20053 (STRSS_P_QUALIFIERS): Likewise.
20054 (STRSBS_P_QUALIFIERS): Likewise.
20055 (STRSBU_P_QUALIFIERS): Likewise.
20056 * config/arm/arm_mve.h (vstrbq_p_s8): Define macro.
20057 (vstrbq_p_s32): Likewise.
20058 (vstrbq_p_s16): Likewise.
20059 (vstrbq_p_u8): Likewise.
20060 (vstrbq_p_u32): Likewise.
20061 (vstrbq_p_u16): Likewise.
20062 (vstrbq_scatter_offset_p_s8): Likewise.
20063 (vstrbq_scatter_offset_p_s32): Likewise.
20064 (vstrbq_scatter_offset_p_s16): Likewise.
20065 (vstrbq_scatter_offset_p_u8): Likewise.
20066 (vstrbq_scatter_offset_p_u32): Likewise.
20067 (vstrbq_scatter_offset_p_u16): Likewise.
20068 (vstrwq_scatter_base_p_s32): Likewise.
20069 (vstrwq_scatter_base_p_u32): Likewise.
20070 (__arm_vstrbq_p_s8): Define intrinsic.
20071 (__arm_vstrbq_p_s32): Likewise.
20072 (__arm_vstrbq_p_s16): Likewise.
20073 (__arm_vstrbq_p_u8): Likewise.
20074 (__arm_vstrbq_p_u32): Likewise.
20075 (__arm_vstrbq_p_u16): Likewise.
20076 (__arm_vstrbq_scatter_offset_p_s8): Likewise.
20077 (__arm_vstrbq_scatter_offset_p_s32): Likewise.
20078 (__arm_vstrbq_scatter_offset_p_s16): Likewise.
20079 (__arm_vstrbq_scatter_offset_p_u8): Likewise.
20080 (__arm_vstrbq_scatter_offset_p_u32): Likewise.
20081 (__arm_vstrbq_scatter_offset_p_u16): Likewise.
20082 (__arm_vstrwq_scatter_base_p_s32): Likewise.
20083 (__arm_vstrwq_scatter_base_p_u32): Likewise.
20084 (vstrbq_p): Define polymorphic variant.
20085 (vstrbq_scatter_offset_p): Likewise.
20086 (vstrwq_scatter_base_p): Likewise.
20087 * config/arm/arm_mve_builtins.def (STRS_P_QUALIFIERS): Use builtin
20088 qualifier.
20089 (STRU_P_QUALIFIERS): Likewise.
20090 (STRSU_P_QUALIFIERS): Likewise.
20091 (STRSS_P_QUALIFIERS): Likewise.
20092 (STRSBS_P_QUALIFIERS): Likewise.
20093 (STRSBU_P_QUALIFIERS): Likewise.
20094 * config/arm/mve.md (mve_vstrbq_scatter_offset_p_<supf><mode>): Define
20095 RTL pattern.
20096 (mve_vstrwq_scatter_base_p_<supf>v4si): Likewise.
20097 (mve_vstrbq_p_<supf><mode>): Likewise.
20098
20099 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
20100 Mihail Ionescu <mihail.ionescu@arm.com>
20101 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20102
20103 * config/arm/arm-builtins.c (LDRGU_QUALIFIERS): Define builtin
20104 qualifier.
20105 (LDRGS_QUALIFIERS): Likewise.
20106 (LDRS_QUALIFIERS): Likewise.
20107 (LDRU_QUALIFIERS): Likewise.
20108 (LDRGBS_QUALIFIERS): Likewise.
20109 (LDRGBU_QUALIFIERS): Likewise.
20110 * config/arm/arm_mve.h (vldrbq_gather_offset_u8): Define macro.
20111 (vldrbq_gather_offset_s8): Likewise.
20112 (vldrbq_s8): Likewise.
20113 (vldrbq_u8): Likewise.
20114 (vldrbq_gather_offset_u16): Likewise.
20115 (vldrbq_gather_offset_s16): Likewise.
20116 (vldrbq_s16): Likewise.
20117 (vldrbq_u16): Likewise.
20118 (vldrbq_gather_offset_u32): Likewise.
20119 (vldrbq_gather_offset_s32): Likewise.
20120 (vldrbq_s32): Likewise.
20121 (vldrbq_u32): Likewise.
20122 (vldrwq_gather_base_s32): Likewise.
20123 (vldrwq_gather_base_u32): Likewise.
20124 (__arm_vldrbq_gather_offset_u8): Define intrinsic.
20125 (__arm_vldrbq_gather_offset_s8): Likewise.
20126 (__arm_vldrbq_s8): Likewise.
20127 (__arm_vldrbq_u8): Likewise.
20128 (__arm_vldrbq_gather_offset_u16): Likewise.
20129 (__arm_vldrbq_gather_offset_s16): Likewise.
20130 (__arm_vldrbq_s16): Likewise.
20131 (__arm_vldrbq_u16): Likewise.
20132 (__arm_vldrbq_gather_offset_u32): Likewise.
20133 (__arm_vldrbq_gather_offset_s32): Likewise.
20134 (__arm_vldrbq_s32): Likewise.
20135 (__arm_vldrbq_u32): Likewise.
20136 (__arm_vldrwq_gather_base_s32): Likewise.
20137 (__arm_vldrwq_gather_base_u32): Likewise.
20138 (vldrbq_gather_offset): Define polymorphic variant.
20139 * config/arm/arm_mve_builtins.def (LDRGU_QUALIFIERS): Use builtin
20140 qualifier.
20141 (LDRGS_QUALIFIERS): Likewise.
20142 (LDRS_QUALIFIERS): Likewise.
20143 (LDRU_QUALIFIERS): Likewise.
20144 (LDRGBS_QUALIFIERS): Likewise.
20145 (LDRGBU_QUALIFIERS): Likewise.
20146 * config/arm/mve.md (VLDRBGOQ): Define iterator.
20147 (VLDRBQ): Likewise.
20148 (VLDRWGBQ): Likewise.
20149 (mve_vldrbq_gather_offset_<supf><mode>): Define RTL pattern.
20150 (mve_vldrbq_<supf><mode>): Likewise.
20151 (mve_vldrwq_gather_base_<supf>v4si): Likewise.
20152
20153 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
20154 Mihail Ionescu <mihail.ionescu@arm.com>
20155 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20156
20157 * config/arm/arm-builtins.c (STRS_QUALIFIERS): Define builtin qualifier.
20158 (STRU_QUALIFIERS): Likewise.
20159 (STRSS_QUALIFIERS): Likewise.
20160 (STRSU_QUALIFIERS): Likewise.
20161 (STRSBS_QUALIFIERS): Likewise.
20162 (STRSBU_QUALIFIERS): Likewise.
20163 * config/arm/arm_mve.h (vstrbq_s8): Define macro.
20164 (vstrbq_u8): Likewise.
20165 (vstrbq_u16): Likewise.
20166 (vstrbq_scatter_offset_s8): Likewise.
20167 (vstrbq_scatter_offset_u8): Likewise.
20168 (vstrbq_scatter_offset_u16): Likewise.
20169 (vstrbq_s16): Likewise.
20170 (vstrbq_u32): Likewise.
20171 (vstrbq_scatter_offset_s16): Likewise.
20172 (vstrbq_scatter_offset_u32): Likewise.
20173 (vstrbq_s32): Likewise.
20174 (vstrbq_scatter_offset_s32): Likewise.
20175 (vstrwq_scatter_base_s32): Likewise.
20176 (vstrwq_scatter_base_u32): Likewise.
20177 (__arm_vstrbq_scatter_offset_s8): Define intrinsic.
20178 (__arm_vstrbq_scatter_offset_s32): Likewise.
20179 (__arm_vstrbq_scatter_offset_s16): Likewise.
20180 (__arm_vstrbq_scatter_offset_u8): Likewise.
20181 (__arm_vstrbq_scatter_offset_u32): Likewise.
20182 (__arm_vstrbq_scatter_offset_u16): Likewise.
20183 (__arm_vstrbq_s8): Likewise.
20184 (__arm_vstrbq_s32): Likewise.
20185 (__arm_vstrbq_s16): Likewise.
20186 (__arm_vstrbq_u8): Likewise.
20187 (__arm_vstrbq_u32): Likewise.
20188 (__arm_vstrbq_u16): Likewise.
20189 (__arm_vstrwq_scatter_base_s32): Likewise.
20190 (__arm_vstrwq_scatter_base_u32): Likewise.
20191 (vstrbq): Define polymorphic variant.
20192 (vstrbq_scatter_offset): Likewise.
20193 (vstrwq_scatter_base): Likewise.
20194 * config/arm/arm_mve_builtins.def (STRS_QUALIFIERS): Use builtin
20195 qualifier.
20196 (STRU_QUALIFIERS): Likewise.
20197 (STRSS_QUALIFIERS): Likewise.
20198 (STRSU_QUALIFIERS): Likewise.
20199 (STRSBS_QUALIFIERS): Likewise.
20200 (STRSBU_QUALIFIERS): Likewise.
20201 * config/arm/mve.md (MVE_B_ELEM): Define mode attribute iterator.
20202 (VSTRWSBQ): Define iterators.
20203 (VSTRBSOQ): Likewise.
20204 (VSTRBQ): Likewise.
20205 (mve_vstrbq_<supf><mode>): Define RTL pattern.
20206 (mve_vstrbq_scatter_offset_<supf><mode>): Likewise.
20207 (mve_vstrwq_scatter_base_<supf>v4si): Likewise.
20208
20209 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
20210 Mihail Ionescu <mihail.ionescu@arm.com>
20211 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20212
20213 * config/arm/arm_mve.h (vabdq_m_f32): Define macro.
20214 (vabdq_m_f16): Likewise.
20215 (vaddq_m_f32): Likewise.
20216 (vaddq_m_f16): Likewise.
20217 (vaddq_m_n_f32): Likewise.
20218 (vaddq_m_n_f16): Likewise.
20219 (vandq_m_f32): Likewise.
20220 (vandq_m_f16): Likewise.
20221 (vbicq_m_f32): Likewise.
20222 (vbicq_m_f16): Likewise.
20223 (vbrsrq_m_n_f32): Likewise.
20224 (vbrsrq_m_n_f16): Likewise.
20225 (vcaddq_rot270_m_f32): Likewise.
20226 (vcaddq_rot270_m_f16): Likewise.
20227 (vcaddq_rot90_m_f32): Likewise.
20228 (vcaddq_rot90_m_f16): Likewise.
20229 (vcmlaq_m_f32): Likewise.
20230 (vcmlaq_m_f16): Likewise.
20231 (vcmlaq_rot180_m_f32): Likewise.
20232 (vcmlaq_rot180_m_f16): Likewise.
20233 (vcmlaq_rot270_m_f32): Likewise.
20234 (vcmlaq_rot270_m_f16): Likewise.
20235 (vcmlaq_rot90_m_f32): Likewise.
20236 (vcmlaq_rot90_m_f16): Likewise.
20237 (vcmulq_m_f32): Likewise.
20238 (vcmulq_m_f16): Likewise.
20239 (vcmulq_rot180_m_f32): Likewise.
20240 (vcmulq_rot180_m_f16): Likewise.
20241 (vcmulq_rot270_m_f32): Likewise.
20242 (vcmulq_rot270_m_f16): Likewise.
20243 (vcmulq_rot90_m_f32): Likewise.
20244 (vcmulq_rot90_m_f16): Likewise.
20245 (vcvtq_m_n_s32_f32): Likewise.
20246 (vcvtq_m_n_s16_f16): Likewise.
20247 (vcvtq_m_n_u32_f32): Likewise.
20248 (vcvtq_m_n_u16_f16): Likewise.
20249 (veorq_m_f32): Likewise.
20250 (veorq_m_f16): Likewise.
20251 (vfmaq_m_f32): Likewise.
20252 (vfmaq_m_f16): Likewise.
20253 (vfmaq_m_n_f32): Likewise.
20254 (vfmaq_m_n_f16): Likewise.
20255 (vfmasq_m_n_f32): Likewise.
20256 (vfmasq_m_n_f16): Likewise.
20257 (vfmsq_m_f32): Likewise.
20258 (vfmsq_m_f16): Likewise.
20259 (vmaxnmq_m_f32): Likewise.
20260 (vmaxnmq_m_f16): Likewise.
20261 (vminnmq_m_f32): Likewise.
20262 (vminnmq_m_f16): Likewise.
20263 (vmulq_m_f32): Likewise.
20264 (vmulq_m_f16): Likewise.
20265 (vmulq_m_n_f32): Likewise.
20266 (vmulq_m_n_f16): Likewise.
20267 (vornq_m_f32): Likewise.
20268 (vornq_m_f16): Likewise.
20269 (vorrq_m_f32): Likewise.
20270 (vorrq_m_f16): Likewise.
20271 (vsubq_m_f32): Likewise.
20272 (vsubq_m_f16): Likewise.
20273 (vsubq_m_n_f32): Likewise.
20274 (vsubq_m_n_f16): Likewise.
20275 (__attribute__): Likewise.
20276 (__arm_vabdq_m_f32): Likewise.
20277 (__arm_vabdq_m_f16): Likewise.
20278 (__arm_vaddq_m_f32): Likewise.
20279 (__arm_vaddq_m_f16): Likewise.
20280 (__arm_vaddq_m_n_f32): Likewise.
20281 (__arm_vaddq_m_n_f16): Likewise.
20282 (__arm_vandq_m_f32): Likewise.
20283 (__arm_vandq_m_f16): Likewise.
20284 (__arm_vbicq_m_f32): Likewise.
20285 (__arm_vbicq_m_f16): Likewise.
20286 (__arm_vbrsrq_m_n_f32): Likewise.
20287 (__arm_vbrsrq_m_n_f16): Likewise.
20288 (__arm_vcaddq_rot270_m_f32): Likewise.
20289 (__arm_vcaddq_rot270_m_f16): Likewise.
20290 (__arm_vcaddq_rot90_m_f32): Likewise.
20291 (__arm_vcaddq_rot90_m_f16): Likewise.
20292 (__arm_vcmlaq_m_f32): Likewise.
20293 (__arm_vcmlaq_m_f16): Likewise.
20294 (__arm_vcmlaq_rot180_m_f32): Likewise.
20295 (__arm_vcmlaq_rot180_m_f16): Likewise.
20296 (__arm_vcmlaq_rot270_m_f32): Likewise.
20297 (__arm_vcmlaq_rot270_m_f16): Likewise.
20298 (__arm_vcmlaq_rot90_m_f32): Likewise.
20299 (__arm_vcmlaq_rot90_m_f16): Likewise.
20300 (__arm_vcmulq_m_f32): Likewise.
20301 (__arm_vcmulq_m_f16): Likewise.
20302 (__arm_vcmulq_rot180_m_f32): Define intrinsic.
20303 (__arm_vcmulq_rot180_m_f16): Likewise.
20304 (__arm_vcmulq_rot270_m_f32): Likewise.
20305 (__arm_vcmulq_rot270_m_f16): Likewise.
20306 (__arm_vcmulq_rot90_m_f32): Likewise.
20307 (__arm_vcmulq_rot90_m_f16): Likewise.
20308 (__arm_vcvtq_m_n_s32_f32): Likewise.
20309 (__arm_vcvtq_m_n_s16_f16): Likewise.
20310 (__arm_vcvtq_m_n_u32_f32): Likewise.
20311 (__arm_vcvtq_m_n_u16_f16): Likewise.
20312 (__arm_veorq_m_f32): Likewise.
20313 (__arm_veorq_m_f16): Likewise.
20314 (__arm_vfmaq_m_f32): Likewise.
20315 (__arm_vfmaq_m_f16): Likewise.
20316 (__arm_vfmaq_m_n_f32): Likewise.
20317 (__arm_vfmaq_m_n_f16): Likewise.
20318 (__arm_vfmasq_m_n_f32): Likewise.
20319 (__arm_vfmasq_m_n_f16): Likewise.
20320 (__arm_vfmsq_m_f32): Likewise.
20321 (__arm_vfmsq_m_f16): Likewise.
20322 (__arm_vmaxnmq_m_f32): Likewise.
20323 (__arm_vmaxnmq_m_f16): Likewise.
20324 (__arm_vminnmq_m_f32): Likewise.
20325 (__arm_vminnmq_m_f16): Likewise.
20326 (__arm_vmulq_m_f32): Likewise.
20327 (__arm_vmulq_m_f16): Likewise.
20328 (__arm_vmulq_m_n_f32): Likewise.
20329 (__arm_vmulq_m_n_f16): Likewise.
20330 (__arm_vornq_m_f32): Likewise.
20331 (__arm_vornq_m_f16): Likewise.
20332 (__arm_vorrq_m_f32): Likewise.
20333 (__arm_vorrq_m_f16): Likewise.
20334 (__arm_vsubq_m_f32): Likewise.
20335 (__arm_vsubq_m_f16): Likewise.
20336 (__arm_vsubq_m_n_f32): Likewise.
20337 (__arm_vsubq_m_n_f16): Likewise.
20338 (vabdq_m): Define polymorphic variant.
20339 (vaddq_m): Likewise.
20340 (vaddq_m_n): Likewise.
20341 (vandq_m): Likewise.
20342 (vbicq_m): Likewise.
20343 (vbrsrq_m_n): Likewise.
20344 (vcaddq_rot270_m): Likewise.
20345 (vcaddq_rot90_m): Likewise.
20346 (vcmlaq_m): Likewise.
20347 (vcmlaq_rot180_m): Likewise.
20348 (vcmlaq_rot270_m): Likewise.
20349 (vcmlaq_rot90_m): Likewise.
20350 (vcmulq_m): Likewise.
20351 (vcmulq_rot180_m): Likewise.
20352 (vcmulq_rot270_m): Likewise.
20353 (vcmulq_rot90_m): Likewise.
20354 (veorq_m): Likewise.
20355 (vfmaq_m): Likewise.
20356 (vfmaq_m_n): Likewise.
20357 (vfmasq_m_n): Likewise.
20358 (vfmsq_m): Likewise.
20359 (vmaxnmq_m): Likewise.
20360 (vminnmq_m): Likewise.
20361 (vmulq_m): Likewise.
20362 (vmulq_m_n): Likewise.
20363 (vornq_m): Likewise.
20364 (vsubq_m): Likewise.
20365 (vsubq_m_n): Likewise.
20366 (vorrq_m): Likewise.
20367 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
20368 builtin qualifier.
20369 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
20370 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
20371 * config/arm/mve.md (mve_vabdq_m_f<mode>): Define RTL pattern.
20372 (mve_vaddq_m_f<mode>): Likewise.
20373 (mve_vaddq_m_n_f<mode>): Likewise.
20374 (mve_vandq_m_f<mode>): Likewise.
20375 (mve_vbicq_m_f<mode>): Likewise.
20376 (mve_vbrsrq_m_n_f<mode>): Likewise.
20377 (mve_vcaddq_rot270_m_f<mode>): Likewise.
20378 (mve_vcaddq_rot90_m_f<mode>): Likewise.
20379 (mve_vcmlaq_m_f<mode>): Likewise.
20380 (mve_vcmlaq_rot180_m_f<mode>): Likewise.
20381 (mve_vcmlaq_rot270_m_f<mode>): Likewise.
20382 (mve_vcmlaq_rot90_m_f<mode>): Likewise.
20383 (mve_vcmulq_m_f<mode>): Likewise.
20384 (mve_vcmulq_rot180_m_f<mode>): Likewise.
20385 (mve_vcmulq_rot270_m_f<mode>): Likewise.
20386 (mve_vcmulq_rot90_m_f<mode>): Likewise.
20387 (mve_veorq_m_f<mode>): Likewise.
20388 (mve_vfmaq_m_f<mode>): Likewise.
20389 (mve_vfmaq_m_n_f<mode>): Likewise.
20390 (mve_vfmasq_m_n_f<mode>): Likewise.
20391 (mve_vfmsq_m_f<mode>): Likewise.
20392 (mve_vmaxnmq_m_f<mode>): Likewise.
20393 (mve_vminnmq_m_f<mode>): Likewise.
20394 (mve_vmulq_m_f<mode>): Likewise.
20395 (mve_vmulq_m_n_f<mode>): Likewise.
20396 (mve_vornq_m_f<mode>): Likewise.
20397 (mve_vorrq_m_f<mode>): Likewise.
20398 (mve_vsubq_m_f<mode>): Likewise.
20399 (mve_vsubq_m_n_f<mode>): Likewise.
20400
20401 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
20402 Mihail Ionescu <mihail.ionescu@arm.com>
20403 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20404
20405 * config/arm/arm-protos.h (arm_mve_immediate_check):
20406 * config/arm/arm.c (arm_mve_immediate_check): Define fuction to check
20407 mode and interger value.
20408 * config/arm/arm_mve.h (vmlaldavaq_p_s32): Define macro.
20409 (vmlaldavaq_p_s16): Likewise.
20410 (vmlaldavaq_p_u32): Likewise.
20411 (vmlaldavaq_p_u16): Likewise.
20412 (vmlaldavaxq_p_s32): Likewise.
20413 (vmlaldavaxq_p_s16): Likewise.
20414 (vmlaldavaxq_p_u32): Likewise.
20415 (vmlaldavaxq_p_u16): Likewise.
20416 (vmlsldavaq_p_s32): Likewise.
20417 (vmlsldavaq_p_s16): Likewise.
20418 (vmlsldavaxq_p_s32): Likewise.
20419 (vmlsldavaxq_p_s16): Likewise.
20420 (vmullbq_poly_m_p8): Likewise.
20421 (vmullbq_poly_m_p16): Likewise.
20422 (vmulltq_poly_m_p8): Likewise.
20423 (vmulltq_poly_m_p16): Likewise.
20424 (vqdmullbq_m_n_s32): Likewise.
20425 (vqdmullbq_m_n_s16): Likewise.
20426 (vqdmullbq_m_s32): Likewise.
20427 (vqdmullbq_m_s16): Likewise.
20428 (vqdmulltq_m_n_s32): Likewise.
20429 (vqdmulltq_m_n_s16): Likewise.
20430 (vqdmulltq_m_s32): Likewise.
20431 (vqdmulltq_m_s16): Likewise.
20432 (vqrshrnbq_m_n_s32): Likewise.
20433 (vqrshrnbq_m_n_s16): Likewise.
20434 (vqrshrnbq_m_n_u32): Likewise.
20435 (vqrshrnbq_m_n_u16): Likewise.
20436 (vqrshrntq_m_n_s32): Likewise.
20437 (vqrshrntq_m_n_s16): Likewise.
20438 (vqrshrntq_m_n_u32): Likewise.
20439 (vqrshrntq_m_n_u16): Likewise.
20440 (vqrshrunbq_m_n_s32): Likewise.
20441 (vqrshrunbq_m_n_s16): Likewise.
20442 (vqrshruntq_m_n_s32): Likewise.
20443 (vqrshruntq_m_n_s16): Likewise.
20444 (vqshrnbq_m_n_s32): Likewise.
20445 (vqshrnbq_m_n_s16): Likewise.
20446 (vqshrnbq_m_n_u32): Likewise.
20447 (vqshrnbq_m_n_u16): Likewise.
20448 (vqshrntq_m_n_s32): Likewise.
20449 (vqshrntq_m_n_s16): Likewise.
20450 (vqshrntq_m_n_u32): Likewise.
20451 (vqshrntq_m_n_u16): Likewise.
20452 (vqshrunbq_m_n_s32): Likewise.
20453 (vqshrunbq_m_n_s16): Likewise.
20454 (vqshruntq_m_n_s32): Likewise.
20455 (vqshruntq_m_n_s16): Likewise.
20456 (vrmlaldavhaq_p_s32): Likewise.
20457 (vrmlaldavhaq_p_u32): Likewise.
20458 (vrmlaldavhaxq_p_s32): Likewise.
20459 (vrmlsldavhaq_p_s32): Likewise.
20460 (vrmlsldavhaxq_p_s32): Likewise.
20461 (vrshrnbq_m_n_s32): Likewise.
20462 (vrshrnbq_m_n_s16): Likewise.
20463 (vrshrnbq_m_n_u32): Likewise.
20464 (vrshrnbq_m_n_u16): Likewise.
20465 (vrshrntq_m_n_s32): Likewise.
20466 (vrshrntq_m_n_s16): Likewise.
20467 (vrshrntq_m_n_u32): Likewise.
20468 (vrshrntq_m_n_u16): Likewise.
20469 (vshllbq_m_n_s8): Likewise.
20470 (vshllbq_m_n_s16): Likewise.
20471 (vshllbq_m_n_u8): Likewise.
20472 (vshllbq_m_n_u16): Likewise.
20473 (vshlltq_m_n_s8): Likewise.
20474 (vshlltq_m_n_s16): Likewise.
20475 (vshlltq_m_n_u8): Likewise.
20476 (vshlltq_m_n_u16): Likewise.
20477 (vshrnbq_m_n_s32): Likewise.
20478 (vshrnbq_m_n_s16): Likewise.
20479 (vshrnbq_m_n_u32): Likewise.
20480 (vshrnbq_m_n_u16): Likewise.
20481 (vshrntq_m_n_s32): Likewise.
20482 (vshrntq_m_n_s16): Likewise.
20483 (vshrntq_m_n_u32): Likewise.
20484 (vshrntq_m_n_u16): Likewise.
20485 (__arm_vmlaldavaq_p_s32): Define intrinsic.
20486 (__arm_vmlaldavaq_p_s16): Likewise.
20487 (__arm_vmlaldavaq_p_u32): Likewise.
20488 (__arm_vmlaldavaq_p_u16): Likewise.
20489 (__arm_vmlaldavaxq_p_s32): Likewise.
20490 (__arm_vmlaldavaxq_p_s16): Likewise.
20491 (__arm_vmlaldavaxq_p_u32): Likewise.
20492 (__arm_vmlaldavaxq_p_u16): Likewise.
20493 (__arm_vmlsldavaq_p_s32): Likewise.
20494 (__arm_vmlsldavaq_p_s16): Likewise.
20495 (__arm_vmlsldavaxq_p_s32): Likewise.
20496 (__arm_vmlsldavaxq_p_s16): Likewise.
20497 (__arm_vmullbq_poly_m_p8): Likewise.
20498 (__arm_vmullbq_poly_m_p16): Likewise.
20499 (__arm_vmulltq_poly_m_p8): Likewise.
20500 (__arm_vmulltq_poly_m_p16): Likewise.
20501 (__arm_vqdmullbq_m_n_s32): Likewise.
20502 (__arm_vqdmullbq_m_n_s16): Likewise.
20503 (__arm_vqdmullbq_m_s32): Likewise.
20504 (__arm_vqdmullbq_m_s16): Likewise.
20505 (__arm_vqdmulltq_m_n_s32): Likewise.
20506 (__arm_vqdmulltq_m_n_s16): Likewise.
20507 (__arm_vqdmulltq_m_s32): Likewise.
20508 (__arm_vqdmulltq_m_s16): Likewise.
20509 (__arm_vqrshrnbq_m_n_s32): Likewise.
20510 (__arm_vqrshrnbq_m_n_s16): Likewise.
20511 (__arm_vqrshrnbq_m_n_u32): Likewise.
20512 (__arm_vqrshrnbq_m_n_u16): Likewise.
20513 (__arm_vqrshrntq_m_n_s32): Likewise.
20514 (__arm_vqrshrntq_m_n_s16): Likewise.
20515 (__arm_vqrshrntq_m_n_u32): Likewise.
20516 (__arm_vqrshrntq_m_n_u16): Likewise.
20517 (__arm_vqrshrunbq_m_n_s32): Likewise.
20518 (__arm_vqrshrunbq_m_n_s16): Likewise.
20519 (__arm_vqrshruntq_m_n_s32): Likewise.
20520 (__arm_vqrshruntq_m_n_s16): Likewise.
20521 (__arm_vqshrnbq_m_n_s32): Likewise.
20522 (__arm_vqshrnbq_m_n_s16): Likewise.
20523 (__arm_vqshrnbq_m_n_u32): Likewise.
20524 (__arm_vqshrnbq_m_n_u16): Likewise.
20525 (__arm_vqshrntq_m_n_s32): Likewise.
20526 (__arm_vqshrntq_m_n_s16): Likewise.
20527 (__arm_vqshrntq_m_n_u32): Likewise.
20528 (__arm_vqshrntq_m_n_u16): Likewise.
20529 (__arm_vqshrunbq_m_n_s32): Likewise.
20530 (__arm_vqshrunbq_m_n_s16): Likewise.
20531 (__arm_vqshruntq_m_n_s32): Likewise.
20532 (__arm_vqshruntq_m_n_s16): Likewise.
20533 (__arm_vrmlaldavhaq_p_s32): Likewise.
20534 (__arm_vrmlaldavhaq_p_u32): Likewise.
20535 (__arm_vrmlaldavhaxq_p_s32): Likewise.
20536 (__arm_vrmlsldavhaq_p_s32): Likewise.
20537 (__arm_vrmlsldavhaxq_p_s32): Likewise.
20538 (__arm_vrshrnbq_m_n_s32): Likewise.
20539 (__arm_vrshrnbq_m_n_s16): Likewise.
20540 (__arm_vrshrnbq_m_n_u32): Likewise.
20541 (__arm_vrshrnbq_m_n_u16): Likewise.
20542 (__arm_vrshrntq_m_n_s32): Likewise.
20543 (__arm_vrshrntq_m_n_s16): Likewise.
20544 (__arm_vrshrntq_m_n_u32): Likewise.
20545 (__arm_vrshrntq_m_n_u16): Likewise.
20546 (__arm_vshllbq_m_n_s8): Likewise.
20547 (__arm_vshllbq_m_n_s16): Likewise.
20548 (__arm_vshllbq_m_n_u8): Likewise.
20549 (__arm_vshllbq_m_n_u16): Likewise.
20550 (__arm_vshlltq_m_n_s8): Likewise.
20551 (__arm_vshlltq_m_n_s16): Likewise.
20552 (__arm_vshlltq_m_n_u8): Likewise.
20553 (__arm_vshlltq_m_n_u16): Likewise.
20554 (__arm_vshrnbq_m_n_s32): Likewise.
20555 (__arm_vshrnbq_m_n_s16): Likewise.
20556 (__arm_vshrnbq_m_n_u32): Likewise.
20557 (__arm_vshrnbq_m_n_u16): Likewise.
20558 (__arm_vshrntq_m_n_s32): Likewise.
20559 (__arm_vshrntq_m_n_s16): Likewise.
20560 (__arm_vshrntq_m_n_u32): Likewise.
20561 (__arm_vshrntq_m_n_u16): Likewise.
20562 (vmullbq_poly_m): Define polymorphic variant.
20563 (vmulltq_poly_m): Likewise.
20564 (vshllbq_m): Likewise.
20565 (vshrntq_m_n): Likewise.
20566 (vshrnbq_m_n): Likewise.
20567 (vshlltq_m_n): Likewise.
20568 (vshllbq_m_n): Likewise.
20569 (vrshrntq_m_n): Likewise.
20570 (vrshrnbq_m_n): Likewise.
20571 (vqshruntq_m_n): Likewise.
20572 (vqshrunbq_m_n): Likewise.
20573 (vqdmullbq_m_n): Likewise.
20574 (vqdmullbq_m): Likewise.
20575 (vqdmulltq_m_n): Likewise.
20576 (vqdmulltq_m): Likewise.
20577 (vqrshrnbq_m_n): Likewise.
20578 (vqrshrntq_m_n): Likewise.
20579 (vqrshrunbq_m_n): Likewise.
20580 (vqrshruntq_m_n): Likewise.
20581 (vqshrnbq_m_n): Likewise.
20582 (vqshrntq_m_n): Likewise.
20583 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
20584 builtin qualifiers.
20585 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
20586 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE): Likewise.
20587 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
20588 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
20589 * config/arm/mve.md (VMLALDAVAQ_P): Define iterator.
20590 (VMLALDAVAXQ_P): Likewise.
20591 (VQRSHRNBQ_M_N): Likewise.
20592 (VQRSHRNTQ_M_N): Likewise.
20593 (VQSHRNBQ_M_N): Likewise.
20594 (VQSHRNTQ_M_N): Likewise.
20595 (VRSHRNBQ_M_N): Likewise.
20596 (VRSHRNTQ_M_N): Likewise.
20597 (VSHLLBQ_M_N): Likewise.
20598 (VSHLLTQ_M_N): Likewise.
20599 (VSHRNBQ_M_N): Likewise.
20600 (VSHRNTQ_M_N): Likewise.
20601 (mve_vmlaldavaq_p_<supf><mode>): Define RTL pattern.
20602 (mve_vmlaldavaxq_p_<supf><mode>): Likewise.
20603 (mve_vqrshrnbq_m_n_<supf><mode>): Likewise.
20604 (mve_vqrshrntq_m_n_<supf><mode>): Likewise.
20605 (mve_vqshrnbq_m_n_<supf><mode>): Likewise.
20606 (mve_vqshrntq_m_n_<supf><mode>): Likewise.
20607 (mve_vrmlaldavhaq_p_sv4si): Likewise.
20608 (mve_vrshrnbq_m_n_<supf><mode>): Likewise.
20609 (mve_vrshrntq_m_n_<supf><mode>): Likewise.
20610 (mve_vshllbq_m_n_<supf><mode>): Likewise.
20611 (mve_vshlltq_m_n_<supf><mode>): Likewise.
20612 (mve_vshrnbq_m_n_<supf><mode>): Likewise.
20613 (mve_vshrntq_m_n_<supf><mode>): Likewise.
20614 (mve_vmlsldavaq_p_s<mode>): Likewise.
20615 (mve_vmlsldavaxq_p_s<mode>): Likewise.
20616 (mve_vmullbq_poly_m_p<mode>): Likewise.
20617 (mve_vmulltq_poly_m_p<mode>): Likewise.
20618 (mve_vqdmullbq_m_n_s<mode>): Likewise.
20619 (mve_vqdmullbq_m_s<mode>): Likewise.
20620 (mve_vqdmulltq_m_n_s<mode>): Likewise.
20621 (mve_vqdmulltq_m_s<mode>): Likewise.
20622 (mve_vqrshrunbq_m_n_s<mode>): Likewise.
20623 (mve_vqrshruntq_m_n_s<mode>): Likewise.
20624 (mve_vqshrunbq_m_n_s<mode>): Likewise.
20625 (mve_vqshruntq_m_n_s<mode>): Likewise.
20626 (mve_vrmlaldavhaq_p_uv4si): Likewise.
20627 (mve_vrmlaldavhaxq_p_sv4si): Likewise.
20628 (mve_vrmlsldavhaq_p_sv4si): Likewise.
20629 (mve_vrmlsldavhaxq_p_sv4si): Likewise.
20630
20631 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
20632 Mihail Ionescu <mihail.ionescu@arm.com>
20633 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
20634
20635 * config/arm/arm_mve.h (vabdq_m_s8): Define macro.
20636 (vabdq_m_s32): Likewise.
20637 (vabdq_m_s16): Likewise.
20638 (vabdq_m_u8): Likewise.
20639 (vabdq_m_u32): Likewise.
20640 (vabdq_m_u16): Likewise.
20641 (vaddq_m_n_s8): Likewise.
20642 (vaddq_m_n_s32): Likewise.
20643 (vaddq_m_n_s16): Likewise.
20644 (vaddq_m_n_u8): Likewise.
20645 (vaddq_m_n_u32): Likewise.
20646 (vaddq_m_n_u16): Likewise.
20647 (vaddq_m_s8): Likewise.
20648 (vaddq_m_s32): Likewise.
20649 (vaddq_m_s16): Likewise.
20650 (vaddq_m_u8): Likewise.
20651 (vaddq_m_u32): Likewise.
20652 (vaddq_m_u16): Likewise.
20653 (vandq_m_s8): Likewise.
20654 (vandq_m_s32): Likewise.
20655 (vandq_m_s16): Likewise.
20656 (vandq_m_u8): Likewise.
20657 (vandq_m_u32): Likewise.
20658 (vandq_m_u16): Likewise.
20659 (vbicq_m_s8): Likewise.
20660 (vbicq_m_s32): Likewise.
20661 (vbicq_m_s16): Likewise.
20662 (vbicq_m_u8): Likewise.
20663 (vbicq_m_u32): Likewise.
20664 (vbicq_m_u16): Likewise.
20665 (vbrsrq_m_n_s8): Likewise.
20666 (vbrsrq_m_n_s32): Likewise.
20667 (vbrsrq_m_n_s16): Likewise.
20668 (vbrsrq_m_n_u8): Likewise.
20669 (vbrsrq_m_n_u32): Likewise.
20670 (vbrsrq_m_n_u16): Likewise.
20671 (vcaddq_rot270_m_s8): Likewise.
20672 (vcaddq_rot270_m_s32): Likewise.
20673 (vcaddq_rot270_m_s16): Likewise.
20674 (vcaddq_rot270_m_u8): Likewise.
20675 (vcaddq_rot270_m_u32): Likewise.
20676 (vcaddq_rot270_m_u16): Likewise.
20677 (vcaddq_rot90_m_s8): Likewise.
20678 (vcaddq_rot90_m_s32): Likewise.
20679 (vcaddq_rot90_m_s16): Likewise.
20680 (vcaddq_rot90_m_u8): Likewise.
20681 (vcaddq_rot90_m_u32): Likewise.
20682 (vcaddq_rot90_m_u16): Likewise.
20683 (veorq_m_s8): Likewise.
20684 (veorq_m_s32): Likewise.
20685 (veorq_m_s16): Likewise.
20686 (veorq_m_u8): Likewise.
20687 (veorq_m_u32): Likewise.
20688 (veorq_m_u16): Likewise.
20689 (vhaddq_m_n_s8): Likewise.
20690 (vhaddq_m_n_s32): Likewise.
20691 (vhaddq_m_n_s16): Likewise.
20692 (vhaddq_m_n_u8): Likewise.
20693 (vhaddq_m_n_u32): Likewise.
20694 (vhaddq_m_n_u16): Likewise.
20695 (vhaddq_m_s8): Likewise.
20696 (vhaddq_m_s32): Likewise.
20697 (vhaddq_m_s16): Likewise.
20698 (vhaddq_m_u8): Likewise.
20699 (vhaddq_m_u32): Likewise.
20700 (vhaddq_m_u16): Likewise.
20701 (vhcaddq_rot270_m_s8): Likewise.
20702 (vhcaddq_rot270_m_s32): Likewise.
20703 (vhcaddq_rot270_m_s16): Likewise.
20704 (vhcaddq_rot90_m_s8): Likewise.
20705 (vhcaddq_rot90_m_s32): Likewise.
20706 (vhcaddq_rot90_m_s16): Likewise.
20707 (vhsubq_m_n_s8): Likewise.
20708 (vhsubq_m_n_s32): Likewise.
20709 (vhsubq_m_n_s16): Likewise.
20710 (vhsubq_m_n_u8): Likewise.
20711 (vhsubq_m_n_u32): Likewise.
20712 (vhsubq_m_n_u16): Likewise.
20713 (vhsubq_m_s8): Likewise.
20714 (vhsubq_m_s32): Likewise.
20715 (vhsubq_m_s16): Likewise.
20716 (vhsubq_m_u8): Likewise.
20717 (vhsubq_m_u32): Likewise.
20718 (vhsubq_m_u16): Likewise.
20719 (vmaxq_m_s8): Likewise.
20720 (vmaxq_m_s32): Likewise.
20721 (vmaxq_m_s16): Likewise.
20722 (vmaxq_m_u8): Likewise.
20723 (vmaxq_m_u32): Likewise.
20724 (vmaxq_m_u16): Likewise.
20725 (vminq_m_s8): Likewise.
20726 (vminq_m_s32): Likewise.
20727 (vminq_m_s16): Likewise.
20728 (vminq_m_u8): Likewise.
20729 (vminq_m_u32): Likewise.
20730 (vminq_m_u16): Likewise.
20731 (vmladavaq_p_s8): Likewise.
20732 (vmladavaq_p_s32): Likewise.
20733 (vmladavaq_p_s16): Likewise.
20734 (vmladavaq_p_u8): Likewise.
20735 (vmladavaq_p_u32): Likewise.
20736 (vmladavaq_p_u16): Likewise.
20737 (vmladavaxq_p_s8): Likewise.
20738 (vmladavaxq_p_s32): Likewise.
20739 (vmladavaxq_p_s16): Likewise.
20740 (vmlaq_m_n_s8): Likewise.
20741 (vmlaq_m_n_s32): Likewise.
20742 (vmlaq_m_n_s16): Likewise.
20743 (vmlaq_m_n_u8): Likewise.
20744 (vmlaq_m_n_u32): Likewise.
20745 (vmlaq_m_n_u16): Likewise.
20746 (vmlasq_m_n_s8): Likewise.
20747 (vmlasq_m_n_s32): Likewise.
20748 (vmlasq_m_n_s16): Likewise.
20749 (vmlasq_m_n_u8): Likewise.
20750 (vmlasq_m_n_u32): Likewise.
20751 (vmlasq_m_n_u16): Likewise.
20752 (vmlsdavaq_p_s8): Likewise.
20753 (vmlsdavaq_p_s32): Likewise.
20754 (vmlsdavaq_p_s16): Likewise.
20755 (vmlsdavaxq_p_s8): Likewise.
20756 (vmlsdavaxq_p_s32): Likewise.
20757 (vmlsdavaxq_p_s16): Likewise.
20758 (vmulhq_m_s8): Likewise.
20759 (vmulhq_m_s32): Likewise.
20760 (vmulhq_m_s16): Likewise.
20761 (vmulhq_m_u8): Likewise.
20762 (vmulhq_m_u32): Likewise.
20763 (vmulhq_m_u16): Likewise.
20764 (vmullbq_int_m_s8): Likewise.
20765 (vmullbq_int_m_s32): Likewise.
20766 (vmullbq_int_m_s16): Likewise.
20767 (vmullbq_int_m_u8): Likewise.
20768 (vmullbq_int_m_u32): Likewise.
20769 (vmullbq_int_m_u16): Likewise.
20770 (vmulltq_int_m_s8): Likewise.
20771 (vmulltq_int_m_s32): Likewise.
20772 (vmulltq_int_m_s16): Likewise.
20773 (vmulltq_int_m_u8): Likewise.
20774 (vmulltq_int_m_u32): Likewise.
20775 (vmulltq_int_m_u16): Likewise.
20776 (vmulq_m_n_s8): Likewise.
20777 (vmulq_m_n_s32): Likewise.
20778 (vmulq_m_n_s16): Likewise.
20779 (vmulq_m_n_u8): Likewise.
20780 (vmulq_m_n_u32): Likewise.
20781 (vmulq_m_n_u16): Likewise.
20782 (vmulq_m_s8): Likewise.
20783 (vmulq_m_s32): Likewise.
20784 (vmulq_m_s16): Likewise.
20785 (vmulq_m_u8): Likewise.
20786 (vmulq_m_u32): Likewise.
20787 (vmulq_m_u16): Likewise.
20788 (vornq_m_s8): Likewise.
20789 (vornq_m_s32): Likewise.
20790 (vornq_m_s16): Likewise.
20791 (vornq_m_u8): Likewise.
20792 (vornq_m_u32): Likewise.
20793 (vornq_m_u16): Likewise.
20794 (vorrq_m_s8): Likewise.
20795 (vorrq_m_s32): Likewise.
20796 (vorrq_m_s16): Likewise.
20797 (vorrq_m_u8): Likewise.
20798 (vorrq_m_u32): Likewise.
20799 (vorrq_m_u16): Likewise.
20800 (vqaddq_m_n_s8): Likewise.
20801 (vqaddq_m_n_s32): Likewise.
20802 (vqaddq_m_n_s16): Likewise.
20803 (vqaddq_m_n_u8): Likewise.
20804 (vqaddq_m_n_u32): Likewise.
20805 (vqaddq_m_n_u16): Likewise.
20806 (vqaddq_m_s8): Likewise.
20807 (vqaddq_m_s32): Likewise.
20808 (vqaddq_m_s16): Likewise.
20809 (vqaddq_m_u8): Likewise.
20810 (vqaddq_m_u32): Likewise.
20811 (vqaddq_m_u16): Likewise.
20812 (vqdmladhq_m_s8): Likewise.
20813 (vqdmladhq_m_s32): Likewise.
20814 (vqdmladhq_m_s16): Likewise.
20815 (vqdmladhxq_m_s8): Likewise.
20816 (vqdmladhxq_m_s32): Likewise.
20817 (vqdmladhxq_m_s16): Likewise.
20818 (vqdmlahq_m_n_s8): Likewise.
20819 (vqdmlahq_m_n_s32): Likewise.
20820 (vqdmlahq_m_n_s16): Likewise.
20821 (vqdmlahq_m_n_u8): Likewise.
20822 (vqdmlahq_m_n_u32): Likewise.
20823 (vqdmlahq_m_n_u16): Likewise.
20824 (vqdmlsdhq_m_s8): Likewise.
20825 (vqdmlsdhq_m_s32): Likewise.
20826 (vqdmlsdhq_m_s16): Likewise.
20827 (vqdmlsdhxq_m_s8): Likewise.
20828 (vqdmlsdhxq_m_s32): Likewise.
20829 (vqdmlsdhxq_m_s16): Likewise.
20830 (vqdmulhq_m_n_s8): Likewise.
20831 (vqdmulhq_m_n_s32): Likewise.
20832 (vqdmulhq_m_n_s16): Likewise.
20833 (vqdmulhq_m_s8): Likewise.
20834 (vqdmulhq_m_s32): Likewise.
20835 (vqdmulhq_m_s16): Likewise.
20836 (vqrdmladhq_m_s8): Likewise.
20837 (vqrdmladhq_m_s32): Likewise.
20838 (vqrdmladhq_m_s16): Likewise.
20839 (vqrdmladhxq_m_s8): Likewise.
20840 (vqrdmladhxq_m_s32): Likewise.
20841 (vqrdmladhxq_m_s16): Likewise.
20842 (vqrdmlahq_m_n_s8): Likewise.
20843 (vqrdmlahq_m_n_s32): Likewise.
20844 (vqrdmlahq_m_n_s16): Likewise.
20845 (vqrdmlahq_m_n_u8): Likewise.
20846 (vqrdmlahq_m_n_u32): Likewise.
20847 (vqrdmlahq_m_n_u16): Likewise.
20848 (vqrdmlashq_m_n_s8): Likewise.
20849 (vqrdmlashq_m_n_s32): Likewise.
20850 (vqrdmlashq_m_n_s16): Likewise.
20851 (vqrdmlashq_m_n_u8): Likewise.
20852 (vqrdmlashq_m_n_u32): Likewise.
20853 (vqrdmlashq_m_n_u16): Likewise.
20854 (vqrdmlsdhq_m_s8): Likewise.
20855 (vqrdmlsdhq_m_s32): Likewise.
20856 (vqrdmlsdhq_m_s16): Likewise.
20857 (vqrdmlsdhxq_m_s8): Likewise.
20858 (vqrdmlsdhxq_m_s32): Likewise.
20859 (vqrdmlsdhxq_m_s16): Likewise.
20860 (vqrdmulhq_m_n_s8): Likewise.
20861 (vqrdmulhq_m_n_s32): Likewise.
20862 (vqrdmulhq_m_n_s16): Likewise.
20863 (vqrdmulhq_m_s8): Likewise.
20864 (vqrdmulhq_m_s32): Likewise.
20865 (vqrdmulhq_m_s16): Likewise.
20866 (vqrshlq_m_s8): Likewise.
20867 (vqrshlq_m_s32): Likewise.
20868 (vqrshlq_m_s16): Likewise.
20869 (vqrshlq_m_u8): Likewise.
20870 (vqrshlq_m_u32): Likewise.
20871 (vqrshlq_m_u16): Likewise.
20872 (vqshlq_m_n_s8): Likewise.
20873 (vqshlq_m_n_s32): Likewise.
20874 (vqshlq_m_n_s16): Likewise.
20875 (vqshlq_m_n_u8): Likewise.
20876 (vqshlq_m_n_u32): Likewise.
20877 (vqshlq_m_n_u16): Likewise.
20878 (vqshlq_m_s8): Likewise.
20879 (vqshlq_m_s32): Likewise.
20880 (vqshlq_m_s16): Likewise.
20881 (vqshlq_m_u8): Likewise.
20882 (vqshlq_m_u32): Likewise.
20883 (vqshlq_m_u16): Likewise.
20884 (vqsubq_m_n_s8): Likewise.
20885 (vqsubq_m_n_s32): Likewise.
20886 (vqsubq_m_n_s16): Likewise.
20887 (vqsubq_m_n_u8): Likewise.
20888 (vqsubq_m_n_u32): Likewise.
20889 (vqsubq_m_n_u16): Likewise.
20890 (vqsubq_m_s8): Likewise.
20891 (vqsubq_m_s32): Likewise.
20892 (vqsubq_m_s16): Likewise.
20893 (vqsubq_m_u8): Likewise.
20894 (vqsubq_m_u32): Likewise.
20895 (vqsubq_m_u16): Likewise.
20896 (vrhaddq_m_s8): Likewise.
20897 (vrhaddq_m_s32): Likewise.
20898 (vrhaddq_m_s16): Likewise.
20899 (vrhaddq_m_u8): Likewise.
20900 (vrhaddq_m_u32): Likewise.
20901 (vrhaddq_m_u16): Likewise.
20902 (vrmulhq_m_s8): Likewise.
20903 (vrmulhq_m_s32): Likewise.
20904 (vrmulhq_m_s16): Likewise.
20905 (vrmulhq_m_u8): Likewise.
20906 (vrmulhq_m_u32): Likewise.
20907 (vrmulhq_m_u16): Likewise.
20908 (vrshlq_m_s8): Likewise.
20909 (vrshlq_m_s32): Likewise.
20910 (vrshlq_m_s16): Likewise.
20911 (vrshlq_m_u8): Likewise.
20912 (vrshlq_m_u32): Likewise.
20913 (vrshlq_m_u16): Likewise.
20914 (vrshrq_m_n_s8): Likewise.
20915 (vrshrq_m_n_s32): Likewise.
20916 (vrshrq_m_n_s16): Likewise.
20917 (vrshrq_m_n_u8): Likewise.
20918 (vrshrq_m_n_u32): Likewise.
20919 (vrshrq_m_n_u16): Likewise.
20920 (vshlq_m_n_s8): Likewise.
20921 (vshlq_m_n_s32): Likewise.
20922 (vshlq_m_n_s16): Likewise.
20923 (vshlq_m_n_u8): Likewise.
20924 (vshlq_m_n_u32): Likewise.
20925 (vshlq_m_n_u16): Likewise.
20926 (vshrq_m_n_s8): Likewise.
20927 (vshrq_m_n_s32): Likewise.
20928 (vshrq_m_n_s16): Likewise.
20929 (vshrq_m_n_u8): Likewise.
20930 (vshrq_m_n_u32): Likewise.
20931 (vshrq_m_n_u16): Likewise.
20932 (vsliq_m_n_s8): Likewise.
20933 (vsliq_m_n_s32): Likewise.
20934 (vsliq_m_n_s16): Likewise.
20935 (vsliq_m_n_u8): Likewise.
20936 (vsliq_m_n_u32): Likewise.
20937 (vsliq_m_n_u16): Likewise.
20938 (vsubq_m_n_s8): Likewise.
20939 (vsubq_m_n_s32): Likewise.
20940 (vsubq_m_n_s16): Likewise.
20941 (vsubq_m_n_u8): Likewise.
20942 (vsubq_m_n_u32): Likewise.
20943 (vsubq_m_n_u16): Likewise.
20944 (__arm_vabdq_m_s8): Define intrinsic.
20945 (__arm_vabdq_m_s32): Likewise.
20946 (__arm_vabdq_m_s16): Likewise.
20947 (__arm_vabdq_m_u8): Likewise.
20948 (__arm_vabdq_m_u32): Likewise.
20949 (__arm_vabdq_m_u16): Likewise.
20950 (__arm_vaddq_m_n_s8): Likewise.
20951 (__arm_vaddq_m_n_s32): Likewise.
20952 (__arm_vaddq_m_n_s16): Likewise.
20953 (__arm_vaddq_m_n_u8): Likewise.
20954 (__arm_vaddq_m_n_u32): Likewise.
20955 (__arm_vaddq_m_n_u16): Likewise.
20956 (__arm_vaddq_m_s8): Likewise.
20957 (__arm_vaddq_m_s32): Likewise.
20958 (__arm_vaddq_m_s16): Likewise.
20959 (__arm_vaddq_m_u8): Likewise.
20960 (__arm_vaddq_m_u32): Likewise.
20961 (__arm_vaddq_m_u16): Likewise.
20962 (__arm_vandq_m_s8): Likewise.
20963 (__arm_vandq_m_s32): Likewise.
20964 (__arm_vandq_m_s16): Likewise.
20965 (__arm_vandq_m_u8): Likewise.
20966 (__arm_vandq_m_u32): Likewise.
20967 (__arm_vandq_m_u16): Likewise.
20968 (__arm_vbicq_m_s8): Likewise.
20969 (__arm_vbicq_m_s32): Likewise.
20970 (__arm_vbicq_m_s16): Likewise.
20971 (__arm_vbicq_m_u8): Likewise.
20972 (__arm_vbicq_m_u32): Likewise.
20973 (__arm_vbicq_m_u16): Likewise.
20974 (__arm_vbrsrq_m_n_s8): Likewise.
20975 (__arm_vbrsrq_m_n_s32): Likewise.
20976 (__arm_vbrsrq_m_n_s16): Likewise.
20977 (__arm_vbrsrq_m_n_u8): Likewise.
20978 (__arm_vbrsrq_m_n_u32): Likewise.
20979 (__arm_vbrsrq_m_n_u16): Likewise.
20980 (__arm_vcaddq_rot270_m_s8): Likewise.
20981 (__arm_vcaddq_rot270_m_s32): Likewise.
20982 (__arm_vcaddq_rot270_m_s16): Likewise.
20983 (__arm_vcaddq_rot270_m_u8): Likewise.
20984 (__arm_vcaddq_rot270_m_u32): Likewise.
20985 (__arm_vcaddq_rot270_m_u16): Likewise.
20986 (__arm_vcaddq_rot90_m_s8): Likewise.
20987 (__arm_vcaddq_rot90_m_s32): Likewise.
20988 (__arm_vcaddq_rot90_m_s16): Likewise.
20989 (__arm_vcaddq_rot90_m_u8): Likewise.
20990 (__arm_vcaddq_rot90_m_u32): Likewise.
20991 (__arm_vcaddq_rot90_m_u16): Likewise.
20992 (__arm_veorq_m_s8): Likewise.
20993 (__arm_veorq_m_s32): Likewise.
20994 (__arm_veorq_m_s16): Likewise.
20995 (__arm_veorq_m_u8): Likewise.
20996 (__arm_veorq_m_u32): Likewise.
20997 (__arm_veorq_m_u16): Likewise.
20998 (__arm_vhaddq_m_n_s8): Likewise.
20999 (__arm_vhaddq_m_n_s32): Likewise.
21000 (__arm_vhaddq_m_n_s16): Likewise.
21001 (__arm_vhaddq_m_n_u8): Likewise.
21002 (__arm_vhaddq_m_n_u32): Likewise.
21003 (__arm_vhaddq_m_n_u16): Likewise.
21004 (__arm_vhaddq_m_s8): Likewise.
21005 (__arm_vhaddq_m_s32): Likewise.
21006 (__arm_vhaddq_m_s16): Likewise.
21007 (__arm_vhaddq_m_u8): Likewise.
21008 (__arm_vhaddq_m_u32): Likewise.
21009 (__arm_vhaddq_m_u16): Likewise.
21010 (__arm_vhcaddq_rot270_m_s8): Likewise.
21011 (__arm_vhcaddq_rot270_m_s32): Likewise.
21012 (__arm_vhcaddq_rot270_m_s16): Likewise.
21013 (__arm_vhcaddq_rot90_m_s8): Likewise.
21014 (__arm_vhcaddq_rot90_m_s32): Likewise.
21015 (__arm_vhcaddq_rot90_m_s16): Likewise.
21016 (__arm_vhsubq_m_n_s8): Likewise.
21017 (__arm_vhsubq_m_n_s32): Likewise.
21018 (__arm_vhsubq_m_n_s16): Likewise.
21019 (__arm_vhsubq_m_n_u8): Likewise.
21020 (__arm_vhsubq_m_n_u32): Likewise.
21021 (__arm_vhsubq_m_n_u16): Likewise.
21022 (__arm_vhsubq_m_s8): Likewise.
21023 (__arm_vhsubq_m_s32): Likewise.
21024 (__arm_vhsubq_m_s16): Likewise.
21025 (__arm_vhsubq_m_u8): Likewise.
21026 (__arm_vhsubq_m_u32): Likewise.
21027 (__arm_vhsubq_m_u16): Likewise.
21028 (__arm_vmaxq_m_s8): Likewise.
21029 (__arm_vmaxq_m_s32): Likewise.
21030 (__arm_vmaxq_m_s16): Likewise.
21031 (__arm_vmaxq_m_u8): Likewise.
21032 (__arm_vmaxq_m_u32): Likewise.
21033 (__arm_vmaxq_m_u16): Likewise.
21034 (__arm_vminq_m_s8): Likewise.
21035 (__arm_vminq_m_s32): Likewise.
21036 (__arm_vminq_m_s16): Likewise.
21037 (__arm_vminq_m_u8): Likewise.
21038 (__arm_vminq_m_u32): Likewise.
21039 (__arm_vminq_m_u16): Likewise.
21040 (__arm_vmladavaq_p_s8): Likewise.
21041 (__arm_vmladavaq_p_s32): Likewise.
21042 (__arm_vmladavaq_p_s16): Likewise.
21043 (__arm_vmladavaq_p_u8): Likewise.
21044 (__arm_vmladavaq_p_u32): Likewise.
21045 (__arm_vmladavaq_p_u16): Likewise.
21046 (__arm_vmladavaxq_p_s8): Likewise.
21047 (__arm_vmladavaxq_p_s32): Likewise.
21048 (__arm_vmladavaxq_p_s16): Likewise.
21049 (__arm_vmlaq_m_n_s8): Likewise.
21050 (__arm_vmlaq_m_n_s32): Likewise.
21051 (__arm_vmlaq_m_n_s16): Likewise.
21052 (__arm_vmlaq_m_n_u8): Likewise.
21053 (__arm_vmlaq_m_n_u32): Likewise.
21054 (__arm_vmlaq_m_n_u16): Likewise.
21055 (__arm_vmlasq_m_n_s8): Likewise.
21056 (__arm_vmlasq_m_n_s32): Likewise.
21057 (__arm_vmlasq_m_n_s16): Likewise.
21058 (__arm_vmlasq_m_n_u8): Likewise.
21059 (__arm_vmlasq_m_n_u32): Likewise.
21060 (__arm_vmlasq_m_n_u16): Likewise.
21061 (__arm_vmlsdavaq_p_s8): Likewise.
21062 (__arm_vmlsdavaq_p_s32): Likewise.
21063 (__arm_vmlsdavaq_p_s16): Likewise.
21064 (__arm_vmlsdavaxq_p_s8): Likewise.
21065 (__arm_vmlsdavaxq_p_s32): Likewise.
21066 (__arm_vmlsdavaxq_p_s16): Likewise.
21067 (__arm_vmulhq_m_s8): Likewise.
21068 (__arm_vmulhq_m_s32): Likewise.
21069 (__arm_vmulhq_m_s16): Likewise.
21070 (__arm_vmulhq_m_u8): Likewise.
21071 (__arm_vmulhq_m_u32): Likewise.
21072 (__arm_vmulhq_m_u16): Likewise.
21073 (__arm_vmullbq_int_m_s8): Likewise.
21074 (__arm_vmullbq_int_m_s32): Likewise.
21075 (__arm_vmullbq_int_m_s16): Likewise.
21076 (__arm_vmullbq_int_m_u8): Likewise.
21077 (__arm_vmullbq_int_m_u32): Likewise.
21078 (__arm_vmullbq_int_m_u16): Likewise.
21079 (__arm_vmulltq_int_m_s8): Likewise.
21080 (__arm_vmulltq_int_m_s32): Likewise.
21081 (__arm_vmulltq_int_m_s16): Likewise.
21082 (__arm_vmulltq_int_m_u8): Likewise.
21083 (__arm_vmulltq_int_m_u32): Likewise.
21084 (__arm_vmulltq_int_m_u16): Likewise.
21085 (__arm_vmulq_m_n_s8): Likewise.
21086 (__arm_vmulq_m_n_s32): Likewise.
21087 (__arm_vmulq_m_n_s16): Likewise.
21088 (__arm_vmulq_m_n_u8): Likewise.
21089 (__arm_vmulq_m_n_u32): Likewise.
21090 (__arm_vmulq_m_n_u16): Likewise.
21091 (__arm_vmulq_m_s8): Likewise.
21092 (__arm_vmulq_m_s32): Likewise.
21093 (__arm_vmulq_m_s16): Likewise.
21094 (__arm_vmulq_m_u8): Likewise.
21095 (__arm_vmulq_m_u32): Likewise.
21096 (__arm_vmulq_m_u16): Likewise.
21097 (__arm_vornq_m_s8): Likewise.
21098 (__arm_vornq_m_s32): Likewise.
21099 (__arm_vornq_m_s16): Likewise.
21100 (__arm_vornq_m_u8): Likewise.
21101 (__arm_vornq_m_u32): Likewise.
21102 (__arm_vornq_m_u16): Likewise.
21103 (__arm_vorrq_m_s8): Likewise.
21104 (__arm_vorrq_m_s32): Likewise.
21105 (__arm_vorrq_m_s16): Likewise.
21106 (__arm_vorrq_m_u8): Likewise.
21107 (__arm_vorrq_m_u32): Likewise.
21108 (__arm_vorrq_m_u16): Likewise.
21109 (__arm_vqaddq_m_n_s8): Likewise.
21110 (__arm_vqaddq_m_n_s32): Likewise.
21111 (__arm_vqaddq_m_n_s16): Likewise.
21112 (__arm_vqaddq_m_n_u8): Likewise.
21113 (__arm_vqaddq_m_n_u32): Likewise.
21114 (__arm_vqaddq_m_n_u16): Likewise.
21115 (__arm_vqaddq_m_s8): Likewise.
21116 (__arm_vqaddq_m_s32): Likewise.
21117 (__arm_vqaddq_m_s16): Likewise.
21118 (__arm_vqaddq_m_u8): Likewise.
21119 (__arm_vqaddq_m_u32): Likewise.
21120 (__arm_vqaddq_m_u16): Likewise.
21121 (__arm_vqdmladhq_m_s8): Likewise.
21122 (__arm_vqdmladhq_m_s32): Likewise.
21123 (__arm_vqdmladhq_m_s16): Likewise.
21124 (__arm_vqdmladhxq_m_s8): Likewise.
21125 (__arm_vqdmladhxq_m_s32): Likewise.
21126 (__arm_vqdmladhxq_m_s16): Likewise.
21127 (__arm_vqdmlahq_m_n_s8): Likewise.
21128 (__arm_vqdmlahq_m_n_s32): Likewise.
21129 (__arm_vqdmlahq_m_n_s16): Likewise.
21130 (__arm_vqdmlahq_m_n_u8): Likewise.
21131 (__arm_vqdmlahq_m_n_u32): Likewise.
21132 (__arm_vqdmlahq_m_n_u16): Likewise.
21133 (__arm_vqdmlsdhq_m_s8): Likewise.
21134 (__arm_vqdmlsdhq_m_s32): Likewise.
21135 (__arm_vqdmlsdhq_m_s16): Likewise.
21136 (__arm_vqdmlsdhxq_m_s8): Likewise.
21137 (__arm_vqdmlsdhxq_m_s32): Likewise.
21138 (__arm_vqdmlsdhxq_m_s16): Likewise.
21139 (__arm_vqdmulhq_m_n_s8): Likewise.
21140 (__arm_vqdmulhq_m_n_s32): Likewise.
21141 (__arm_vqdmulhq_m_n_s16): Likewise.
21142 (__arm_vqdmulhq_m_s8): Likewise.
21143 (__arm_vqdmulhq_m_s32): Likewise.
21144 (__arm_vqdmulhq_m_s16): Likewise.
21145 (__arm_vqrdmladhq_m_s8): Likewise.
21146 (__arm_vqrdmladhq_m_s32): Likewise.
21147 (__arm_vqrdmladhq_m_s16): Likewise.
21148 (__arm_vqrdmladhxq_m_s8): Likewise.
21149 (__arm_vqrdmladhxq_m_s32): Likewise.
21150 (__arm_vqrdmladhxq_m_s16): Likewise.
21151 (__arm_vqrdmlahq_m_n_s8): Likewise.
21152 (__arm_vqrdmlahq_m_n_s32): Likewise.
21153 (__arm_vqrdmlahq_m_n_s16): Likewise.
21154 (__arm_vqrdmlahq_m_n_u8): Likewise.
21155 (__arm_vqrdmlahq_m_n_u32): Likewise.
21156 (__arm_vqrdmlahq_m_n_u16): Likewise.
21157 (__arm_vqrdmlashq_m_n_s8): Likewise.
21158 (__arm_vqrdmlashq_m_n_s32): Likewise.
21159 (__arm_vqrdmlashq_m_n_s16): Likewise.
21160 (__arm_vqrdmlashq_m_n_u8): Likewise.
21161 (__arm_vqrdmlashq_m_n_u32): Likewise.
21162 (__arm_vqrdmlashq_m_n_u16): Likewise.
21163 (__arm_vqrdmlsdhq_m_s8): Likewise.
21164 (__arm_vqrdmlsdhq_m_s32): Likewise.
21165 (__arm_vqrdmlsdhq_m_s16): Likewise.
21166 (__arm_vqrdmlsdhxq_m_s8): Likewise.
21167 (__arm_vqrdmlsdhxq_m_s32): Likewise.
21168 (__arm_vqrdmlsdhxq_m_s16): Likewise.
21169 (__arm_vqrdmulhq_m_n_s8): Likewise.
21170 (__arm_vqrdmulhq_m_n_s32): Likewise.
21171 (__arm_vqrdmulhq_m_n_s16): Likewise.
21172 (__arm_vqrdmulhq_m_s8): Likewise.
21173 (__arm_vqrdmulhq_m_s32): Likewise.
21174 (__arm_vqrdmulhq_m_s16): Likewise.
21175 (__arm_vqrshlq_m_s8): Likewise.
21176 (__arm_vqrshlq_m_s32): Likewise.
21177 (__arm_vqrshlq_m_s16): Likewise.
21178 (__arm_vqrshlq_m_u8): Likewise.
21179 (__arm_vqrshlq_m_u32): Likewise.
21180 (__arm_vqrshlq_m_u16): Likewise.
21181 (__arm_vqshlq_m_n_s8): Likewise.
21182 (__arm_vqshlq_m_n_s32): Likewise.
21183 (__arm_vqshlq_m_n_s16): Likewise.
21184 (__arm_vqshlq_m_n_u8): Likewise.
21185 (__arm_vqshlq_m_n_u32): Likewise.
21186 (__arm_vqshlq_m_n_u16): Likewise.
21187 (__arm_vqshlq_m_s8): Likewise.
21188 (__arm_vqshlq_m_s32): Likewise.
21189 (__arm_vqshlq_m_s16): Likewise.
21190 (__arm_vqshlq_m_u8): Likewise.
21191 (__arm_vqshlq_m_u32): Likewise.
21192 (__arm_vqshlq_m_u16): Likewise.
21193 (__arm_vqsubq_m_n_s8): Likewise.
21194 (__arm_vqsubq_m_n_s32): Likewise.
21195 (__arm_vqsubq_m_n_s16): Likewise.
21196 (__arm_vqsubq_m_n_u8): Likewise.
21197 (__arm_vqsubq_m_n_u32): Likewise.
21198 (__arm_vqsubq_m_n_u16): Likewise.
21199 (__arm_vqsubq_m_s8): Likewise.
21200 (__arm_vqsubq_m_s32): Likewise.
21201 (__arm_vqsubq_m_s16): Likewise.
21202 (__arm_vqsubq_m_u8): Likewise.
21203 (__arm_vqsubq_m_u32): Likewise.
21204 (__arm_vqsubq_m_u16): Likewise.
21205 (__arm_vrhaddq_m_s8): Likewise.
21206 (__arm_vrhaddq_m_s32): Likewise.
21207 (__arm_vrhaddq_m_s16): Likewise.
21208 (__arm_vrhaddq_m_u8): Likewise.
21209 (__arm_vrhaddq_m_u32): Likewise.
21210 (__arm_vrhaddq_m_u16): Likewise.
21211 (__arm_vrmulhq_m_s8): Likewise.
21212 (__arm_vrmulhq_m_s32): Likewise.
21213 (__arm_vrmulhq_m_s16): Likewise.
21214 (__arm_vrmulhq_m_u8): Likewise.
21215 (__arm_vrmulhq_m_u32): Likewise.
21216 (__arm_vrmulhq_m_u16): Likewise.
21217 (__arm_vrshlq_m_s8): Likewise.
21218 (__arm_vrshlq_m_s32): Likewise.
21219 (__arm_vrshlq_m_s16): Likewise.
21220 (__arm_vrshlq_m_u8): Likewise.
21221 (__arm_vrshlq_m_u32): Likewise.
21222 (__arm_vrshlq_m_u16): Likewise.
21223 (__arm_vrshrq_m_n_s8): Likewise.
21224 (__arm_vrshrq_m_n_s32): Likewise.
21225 (__arm_vrshrq_m_n_s16): Likewise.
21226 (__arm_vrshrq_m_n_u8): Likewise.
21227 (__arm_vrshrq_m_n_u32): Likewise.
21228 (__arm_vrshrq_m_n_u16): Likewise.
21229 (__arm_vshlq_m_n_s8): Likewise.
21230 (__arm_vshlq_m_n_s32): Likewise.
21231 (__arm_vshlq_m_n_s16): Likewise.
21232 (__arm_vshlq_m_n_u8): Likewise.
21233 (__arm_vshlq_m_n_u32): Likewise.
21234 (__arm_vshlq_m_n_u16): Likewise.
21235 (__arm_vshrq_m_n_s8): Likewise.
21236 (__arm_vshrq_m_n_s32): Likewise.
21237 (__arm_vshrq_m_n_s16): Likewise.
21238 (__arm_vshrq_m_n_u8): Likewise.
21239 (__arm_vshrq_m_n_u32): Likewise.
21240 (__arm_vshrq_m_n_u16): Likewise.
21241 (__arm_vsliq_m_n_s8): Likewise.
21242 (__arm_vsliq_m_n_s32): Likewise.
21243 (__arm_vsliq_m_n_s16): Likewise.
21244 (__arm_vsliq_m_n_u8): Likewise.
21245 (__arm_vsliq_m_n_u32): Likewise.
21246 (__arm_vsliq_m_n_u16): Likewise.
21247 (__arm_vsubq_m_n_s8): Likewise.
21248 (__arm_vsubq_m_n_s32): Likewise.
21249 (__arm_vsubq_m_n_s16): Likewise.
21250 (__arm_vsubq_m_n_u8): Likewise.
21251 (__arm_vsubq_m_n_u32): Likewise.
21252 (__arm_vsubq_m_n_u16): Likewise.
21253 (vqdmladhq_m): Define polymorphic variant.
21254 (vqdmladhxq_m): Likewise.
21255 (vqdmlsdhq_m): Likewise.
21256 (vqdmlsdhxq_m): Likewise.
21257 (vabdq_m): Likewise.
21258 (vandq_m): Likewise.
21259 (vbicq_m): Likewise.
21260 (vbrsrq_m_n): Likewise.
21261 (vcaddq_rot270_m): Likewise.
21262 (vcaddq_rot90_m): Likewise.
21263 (veorq_m): Likewise.
21264 (vmaxq_m): Likewise.
21265 (vminq_m): Likewise.
21266 (vmladavaq_p): Likewise.
21267 (vmlaq_m_n): Likewise.
21268 (vmlasq_m_n): Likewise.
21269 (vmulhq_m): Likewise.
21270 (vmullbq_int_m): Likewise.
21271 (vmulltq_int_m): Likewise.
21272 (vornq_m): Likewise.
21273 (vorrq_m): Likewise.
21274 (vqdmlahq_m_n): Likewise.
21275 (vqrdmlahq_m_n): Likewise.
21276 (vqrdmlashq_m_n): Likewise.
21277 (vqrshlq_m): Likewise.
21278 (vqshlq_m_n): Likewise.
21279 (vqshlq_m): Likewise.
21280 (vrhaddq_m): Likewise.
21281 (vrmulhq_m): Likewise.
21282 (vrshlq_m): Likewise.
21283 (vrshrq_m_n): Likewise.
21284 (vshlq_m_n): Likewise.
21285 (vshrq_m_n): Likewise.
21286 (vsliq_m): Likewise.
21287 (vaddq_m_n): Likewise.
21288 (vaddq_m): Likewise.
21289 (vhaddq_m_n): Likewise.
21290 (vhaddq_m): Likewise.
21291 (vhcaddq_rot270_m): Likewise.
21292 (vhcaddq_rot90_m): Likewise.
21293 (vhsubq_m): Likewise.
21294 (vhsubq_m_n): Likewise.
21295 (vmulq_m_n): Likewise.
21296 (vmulq_m): Likewise.
21297 (vqaddq_m_n): Likewise.
21298 (vqaddq_m): Likewise.
21299 (vqdmulhq_m_n): Likewise.
21300 (vqdmulhq_m): Likewise.
21301 (vsubq_m_n): Likewise.
21302 (vsliq_m_n): Likewise.
21303 (vqsubq_m_n): Likewise.
21304 (vqsubq_m): Likewise.
21305 (vqrdmulhq_m): Likewise.
21306 (vqrdmulhq_m_n): Likewise.
21307 (vqrdmlsdhxq_m): Likewise.
21308 (vqrdmlsdhq_m): Likewise.
21309 (vqrdmladhq_m): Likewise.
21310 (vqrdmladhxq_m): Likewise.
21311 (vmlsdavaxq_p): Likewise.
21312 (vmlsdavaq_p): Likewise.
21313 (vmladavaxq_p): Likewise.
21314 * config/arm/arm_mve_builtins.def (QUADOP_NONE_NONE_NONE_IMM_UNONE): Use
21315 builtin qualifier.
21316 (QUADOP_NONE_NONE_NONE_NONE_UNONE): Likewise.
21317 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE): Likewise.
21318 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE): Likewise.
21319 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE): Likewise.
21320 * config/arm/mve.md (VHSUBQ_M): Define iterators.
21321 (VSLIQ_M_N): Likewise.
21322 (VQRDMLAHQ_M_N): Likewise.
21323 (VRSHLQ_M): Likewise.
21324 (VMINQ_M): Likewise.
21325 (VMULLBQ_INT_M): Likewise.
21326 (VMULHQ_M): Likewise.
21327 (VMULQ_M): Likewise.
21328 (VHSUBQ_M_N): Likewise.
21329 (VHADDQ_M_N): Likewise.
21330 (VORRQ_M): Likewise.
21331 (VRMULHQ_M): Likewise.
21332 (VQADDQ_M): Likewise.
21333 (VRSHRQ_M_N): Likewise.
21334 (VQSUBQ_M_N): Likewise.
21335 (VADDQ_M): Likewise.
21336 (VORNQ_M): Likewise.
21337 (VQDMLAHQ_M_N): Likewise.
21338 (VRHADDQ_M): Likewise.
21339 (VQSHLQ_M): Likewise.
21340 (VANDQ_M): Likewise.
21341 (VBICQ_M): Likewise.
21342 (VSHLQ_M_N): Likewise.
21343 (VCADDQ_ROT270_M): Likewise.
21344 (VQRSHLQ_M): Likewise.
21345 (VQADDQ_M_N): Likewise.
21346 (VADDQ_M_N): Likewise.
21347 (VMAXQ_M): Likewise.
21348 (VQSUBQ_M): Likewise.
21349 (VMLASQ_M_N): Likewise.
21350 (VMLADAVAQ_P): Likewise.
21351 (VBRSRQ_M_N): Likewise.
21352 (VMULQ_M_N): Likewise.
21353 (VCADDQ_ROT90_M): Likewise.
21354 (VMULLTQ_INT_M): Likewise.
21355 (VEORQ_M): Likewise.
21356 (VSHRQ_M_N): Likewise.
21357 (VSUBQ_M_N): Likewise.
21358 (VHADDQ_M): Likewise.
21359 (VABDQ_M): Likewise.
21360 (VQRDMLASHQ_M_N): Likewise.
21361 (VMLAQ_M_N): Likewise.
21362 (VQSHLQ_M_N): Likewise.
21363 (mve_vabdq_m_<supf><mode>): Define RTL pattern.
21364 (mve_vaddq_m_n_<supf><mode>): Likewise.
21365 (mve_vaddq_m_<supf><mode>): Likewise.
21366 (mve_vandq_m_<supf><mode>): Likewise.
21367 (mve_vbicq_m_<supf><mode>): Likewise.
21368 (mve_vbrsrq_m_n_<supf><mode>): Likewise.
21369 (mve_vcaddq_rot270_m_<supf><mode>): Likewise.
21370 (mve_vcaddq_rot90_m_<supf><mode>): Likewise.
21371 (mve_veorq_m_<supf><mode>): Likewise.
21372 (mve_vhaddq_m_n_<supf><mode>): Likewise.
21373 (mve_vhaddq_m_<supf><mode>): Likewise.
21374 (mve_vhsubq_m_n_<supf><mode>): Likewise.
21375 (mve_vhsubq_m_<supf><mode>): Likewise.
21376 (mve_vmaxq_m_<supf><mode>): Likewise.
21377 (mve_vminq_m_<supf><mode>): Likewise.
21378 (mve_vmladavaq_p_<supf><mode>): Likewise.
21379 (mve_vmlaq_m_n_<supf><mode>): Likewise.
21380 (mve_vmlasq_m_n_<supf><mode>): Likewise.
21381 (mve_vmulhq_m_<supf><mode>): Likewise.
21382 (mve_vmullbq_int_m_<supf><mode>): Likewise.
21383 (mve_vmulltq_int_m_<supf><mode>): Likewise.
21384 (mve_vmulq_m_n_<supf><mode>): Likewise.
21385 (mve_vmulq_m_<supf><mode>): Likewise.
21386 (mve_vornq_m_<supf><mode>): Likewise.
21387 (mve_vorrq_m_<supf><mode>): Likewise.
21388 (mve_vqaddq_m_n_<supf><mode>): Likewise.
21389 (mve_vqaddq_m_<supf><mode>): Likewise.
21390 (mve_vqdmlahq_m_n_<supf><mode>): Likewise.
21391 (mve_vqrdmlahq_m_n_<supf><mode>): Likewise.
21392 (mve_vqrdmlashq_m_n_<supf><mode>): Likewise.
21393 (mve_vqrshlq_m_<supf><mode>): Likewise.
21394 (mve_vqshlq_m_n_<supf><mode>): Likewise.
21395 (mve_vqshlq_m_<supf><mode>): Likewise.
21396 (mve_vqsubq_m_n_<supf><mode>): Likewise.
21397 (mve_vqsubq_m_<supf><mode>): Likewise.
21398 (mve_vrhaddq_m_<supf><mode>): Likewise.
21399 (mve_vrmulhq_m_<supf><mode>): Likewise.
21400 (mve_vrshlq_m_<supf><mode>): Likewise.
21401 (mve_vrshrq_m_n_<supf><mode>): Likewise.
21402 (mve_vshlq_m_n_<supf><mode>): Likewise.
21403 (mve_vshrq_m_n_<supf><mode>): Likewise.
21404 (mve_vsliq_m_n_<supf><mode>): Likewise.
21405 (mve_vsubq_m_n_<supf><mode>): Likewise.
21406 (mve_vhcaddq_rot270_m_s<mode>): Likewise.
21407 (mve_vhcaddq_rot90_m_s<mode>): Likewise.
21408 (mve_vmladavaxq_p_s<mode>): Likewise.
21409 (mve_vmlsdavaq_p_s<mode>): Likewise.
21410 (mve_vmlsdavaxq_p_s<mode>): Likewise.
21411 (mve_vqdmladhq_m_s<mode>): Likewise.
21412 (mve_vqdmladhxq_m_s<mode>): Likewise.
21413 (mve_vqdmlsdhq_m_s<mode>): Likewise.
21414 (mve_vqdmlsdhxq_m_s<mode>): Likewise.
21415 (mve_vqdmulhq_m_n_s<mode>): Likewise.
21416 (mve_vqdmulhq_m_s<mode>): Likewise.
21417 (mve_vqrdmladhq_m_s<mode>): Likewise.
21418 (mve_vqrdmladhxq_m_s<mode>): Likewise.
21419 (mve_vqrdmlsdhq_m_s<mode>): Likewise.
21420 (mve_vqrdmlsdhxq_m_s<mode>): Likewise.
21421 (mve_vqrdmulhq_m_n_s<mode>): Likewise.
21422 (mve_vqrdmulhq_m_s<mode>): Likewise.
21423
21424 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
21425 Mihail Ionescu <mihail.ionescu@arm.com>
21426 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21427
21428 * config/arm/arm-builtins.c (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS):
21429 Define builtin qualifier.
21430 (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
21431 (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
21432 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
21433 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
21434 (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
21435 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
21436 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
21437 * config/arm/arm_mve.h (vsriq_m_n_s8): Define macro.
21438 (vsubq_m_s8): Likewise.
21439 (vcvtq_m_n_f16_u16): Likewise.
21440 (vqshluq_m_n_s8): Likewise.
21441 (vabavq_p_s8): Likewise.
21442 (vsriq_m_n_u8): Likewise.
21443 (vshlq_m_u8): Likewise.
21444 (vsubq_m_u8): Likewise.
21445 (vabavq_p_u8): Likewise.
21446 (vshlq_m_s8): Likewise.
21447 (vcvtq_m_n_f16_s16): Likewise.
21448 (vsriq_m_n_s16): Likewise.
21449 (vsubq_m_s16): Likewise.
21450 (vcvtq_m_n_f32_u32): Likewise.
21451 (vqshluq_m_n_s16): Likewise.
21452 (vabavq_p_s16): Likewise.
21453 (vsriq_m_n_u16): Likewise.
21454 (vshlq_m_u16): Likewise.
21455 (vsubq_m_u16): Likewise.
21456 (vabavq_p_u16): Likewise.
21457 (vshlq_m_s16): Likewise.
21458 (vcvtq_m_n_f32_s32): Likewise.
21459 (vsriq_m_n_s32): Likewise.
21460 (vsubq_m_s32): Likewise.
21461 (vqshluq_m_n_s32): Likewise.
21462 (vabavq_p_s32): Likewise.
21463 (vsriq_m_n_u32): Likewise.
21464 (vshlq_m_u32): Likewise.
21465 (vsubq_m_u32): Likewise.
21466 (vabavq_p_u32): Likewise.
21467 (vshlq_m_s32): Likewise.
21468 (__arm_vsriq_m_n_s8): Define intrinsic.
21469 (__arm_vsubq_m_s8): Likewise.
21470 (__arm_vqshluq_m_n_s8): Likewise.
21471 (__arm_vabavq_p_s8): Likewise.
21472 (__arm_vsriq_m_n_u8): Likewise.
21473 (__arm_vshlq_m_u8): Likewise.
21474 (__arm_vsubq_m_u8): Likewise.
21475 (__arm_vabavq_p_u8): Likewise.
21476 (__arm_vshlq_m_s8): Likewise.
21477 (__arm_vsriq_m_n_s16): Likewise.
21478 (__arm_vsubq_m_s16): Likewise.
21479 (__arm_vqshluq_m_n_s16): Likewise.
21480 (__arm_vabavq_p_s16): Likewise.
21481 (__arm_vsriq_m_n_u16): Likewise.
21482 (__arm_vshlq_m_u16): Likewise.
21483 (__arm_vsubq_m_u16): Likewise.
21484 (__arm_vabavq_p_u16): Likewise.
21485 (__arm_vshlq_m_s16): Likewise.
21486 (__arm_vsriq_m_n_s32): Likewise.
21487 (__arm_vsubq_m_s32): Likewise.
21488 (__arm_vqshluq_m_n_s32): Likewise.
21489 (__arm_vabavq_p_s32): Likewise.
21490 (__arm_vsriq_m_n_u32): Likewise.
21491 (__arm_vshlq_m_u32): Likewise.
21492 (__arm_vsubq_m_u32): Likewise.
21493 (__arm_vabavq_p_u32): Likewise.
21494 (__arm_vshlq_m_s32): Likewise.
21495 (__arm_vcvtq_m_n_f16_u16): Likewise.
21496 (__arm_vcvtq_m_n_f16_s16): Likewise.
21497 (__arm_vcvtq_m_n_f32_u32): Likewise.
21498 (__arm_vcvtq_m_n_f32_s32): Likewise.
21499 (vcvtq_m_n): Define polymorphic variant.
21500 (vqshluq_m_n): Likewise.
21501 (vshlq_m): Likewise.
21502 (vsriq_m_n): Likewise.
21503 (vsubq_m): Likewise.
21504 (vabavq_p): Likewise.
21505 * config/arm/arm_mve_builtins.def
21506 (QUADOP_UNONE_UNONE_NONE_NONE_UNONE_QUALIFIERS): Use builtin qualifier.
21507 (QUADOP_NONE_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
21508 (QUADOP_NONE_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
21509 (QUADOP_UNONE_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
21510 (QUADOP_UNONE_UNONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
21511 (QUADOP_NONE_NONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
21512 (QUADOP_UNONE_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
21513 (QUADOP_UNONE_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
21514 * config/arm/mve.md (VABAVQ_P): Define iterator.
21515 (VSHLQ_M): Likewise.
21516 (VSRIQ_M_N): Likewise.
21517 (VSUBQ_M): Likewise.
21518 (VCVTQ_M_N_TO_F): Likewise.
21519 (mve_vabavq_p_<supf><mode>): Define RTL pattern.
21520 (mve_vqshluq_m_n_s<mode>): Likewise.
21521 (mve_vshlq_m_<supf><mode>): Likewise.
21522 (mve_vsriq_m_n_<supf><mode>): Likewise.
21523 (mve_vsubq_m_<supf><mode>): Likewise.
21524 (mve_vcvtq_m_n_to_f_<supf><mode>): Likewise.
21525
21526 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
21527 Mihail Ionescu <mihail.ionescu@arm.com>
21528 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
21529
21530 * config/arm/arm_mve.h (vrmlaldavhaxq_s32): Define macro.
21531 (vrmlsldavhaq_s32): Likewise.
21532 (vrmlsldavhaxq_s32): Likewise.
21533 (vaddlvaq_p_s32): Likewise.
21534 (vcvtbq_m_f16_f32): Likewise.
21535 (vcvtbq_m_f32_f16): Likewise.
21536 (vcvttq_m_f16_f32): Likewise.
21537 (vcvttq_m_f32_f16): Likewise.
21538 (vrev16q_m_s8): Likewise.
21539 (vrev32q_m_f16): Likewise.
21540 (vrmlaldavhq_p_s32): Likewise.
21541 (vrmlaldavhxq_p_s32): Likewise.
21542 (vrmlsldavhq_p_s32): Likewise.
21543 (vrmlsldavhxq_p_s32): Likewise.
21544 (vaddlvaq_p_u32): Likewise.
21545 (vrev16q_m_u8): Likewise.
21546 (vrmlaldavhq_p_u32): Likewise.
21547 (vmvnq_m_n_s16): Likewise.
21548 (vorrq_m_n_s16): Likewise.
21549 (vqrshrntq_n_s16): Likewise.
21550 (vqshrnbq_n_s16): Likewise.
21551 (vqshrntq_n_s16): Likewise.
21552 (vrshrnbq_n_s16): Likewise.
21553 (vrshrntq_n_s16): Likewise.
21554 (vshrnbq_n_s16): Likewise.
21555 (vshrntq_n_s16): Likewise.
21556 (vcmlaq_f16): Likewise.
21557 (vcmlaq_rot180_f16): Likewise.
21558 (vcmlaq_rot270_f16): Likewise.
21559 (vcmlaq_rot90_f16): Likewise.
21560 (vfmaq_f16): Likewise.
21561 (vfmaq_n_f16): Likewise.
21562 (vfmasq_n_f16): Likewise.
21563 (vfmsq_f16): Likewise.
21564 (vmlaldavaq_s16): Likewise.
21565 (vmlaldavaxq_s16): Likewise.
21566 (vmlsldavaq_s16): Likewise.
21567 (vmlsldavaxq_s16): Likewise.
21568 (vabsq_m_f16): Likewise.
21569 (vcvtmq_m_s16_f16): Likewise.
21570 (vcvtnq_m_s16_f16): Likewise.
21571 (vcvtpq_m_s16_f16): Likewise.
21572 (vcvtq_m_s16_f16): Likewise.
21573 (vdupq_m_n_f16): Likewise.
21574 (vmaxnmaq_m_f16): Likewise.
21575 (vmaxnmavq_p_f16): Likewise.
21576 (vmaxnmvq_p_f16): Likewise.
21577 (vminnmaq_m_f16): Likewise.
21578 (vminnmavq_p_f16): Likewise.
21579 (vminnmvq_p_f16): Likewise.
21580 (vmlaldavq_p_s16): Likewise.
21581 (vmlaldavxq_p_s16): Likewise.
21582 (vmlsldavq_p_s16): Likewise.
21583 (vmlsldavxq_p_s16): Likewise.
21584 (vmovlbq_m_s8): Likewise.
21585 (vmovltq_m_s8): Likewise.
21586 (vmovnbq_m_s16): Likewise.
21587 (vmovntq_m_s16): Likewise.
21588 (vnegq_m_f16): Likewise.
21589 (vpselq_f16): Likewise.
21590 (vqmovnbq_m_s16): Likewise.
21591 (vqmovntq_m_s16): Likewise.
21592 (vrev32q_m_s8): Likewise.
21593 (vrev64q_m_f16): Likewise.
21594 (vrndaq_m_f16): Likewise.
21595 (vrndmq_m_f16): Likewise.
21596 (vrndnq_m_f16): Likewise.
21597 (vrndpq_m_f16): Likewise.
21598 (vrndq_m_f16): Likewise.
21599 (vrndxq_m_f16): Likewise.
21600 (vcmpeqq_m_n_f16): Likewise.
21601 (vcmpgeq_m_f16): Likewise.
21602 (vcmpgeq_m_n_f16): Likewise.
21603 (vcmpgtq_m_f16): Likewise.
21604 (vcmpgtq_m_n_f16): Likewise.
21605 (vcmpleq_m_f16): Likewise.
21606 (vcmpleq_m_n_f16): Likewise.
21607 (vcmpltq_m_f16): Likewise.
21608 (vcmpltq_m_n_f16): Likewise.
21609 (vcmpneq_m_f16): Likewise.
21610 (vcmpneq_m_n_f16): Likewise.
21611 (vmvnq_m_n_u16): Likewise.
21612 (vorrq_m_n_u16): Likewise.
21613 (vqrshruntq_n_s16): Likewise.
21614 (vqshrunbq_n_s16): Likewise.
21615 (vqshruntq_n_s16): Likewise.
21616 (vcvtmq_m_u16_f16): Likewise.
21617 (vcvtnq_m_u16_f16): Likewise.
21618 (vcvtpq_m_u16_f16): Likewise.
21619 (vcvtq_m_u16_f16): Likewise.
21620 (vqmovunbq_m_s16): Likewise.
21621 (vqmovuntq_m_s16): Likewise.
21622 (vqrshrntq_n_u16): Likewise.
21623 (vqshrnbq_n_u16): Likewise.
21624 (vqshrntq_n_u16): Likewise.
21625 (vrshrnbq_n_u16): Likewise.
21626 (vrshrntq_n_u16): Likewise.
21627 (vshrnbq_n_u16): Likewise.
21628 (vshrntq_n_u16): Likewise.
21629 (vmlaldavaq_u16): Likewise.
21630 (vmlaldavaxq_u16): Likewise.
21631 (vmlaldavq_p_u16): Likewise.
21632 (vmlaldavxq_p_u16): Likewise.
21633 (vmovlbq_m_u8): Likewise.
21634 (vmovltq_m_u8): Likewise.
21635 (vmovnbq_m_u16): Likewise.
21636 (vmovntq_m_u16): Likewise.
21637 (vqmovnbq_m_u16): Likewise.
21638 (vqmovntq_m_u16): Likewise.
21639 (vrev32q_m_u8): Likewise.
21640 (vmvnq_m_n_s32): Likewise.
21641 (vorrq_m_n_s32): Likewise.
21642 (vqrshrntq_n_s32): Likewise.
21643 (vqshrnbq_n_s32): Likewise.
21644 (vqshrntq_n_s32): Likewise.
21645 (vrshrnbq_n_s32): Likewise.
21646 (vrshrntq_n_s32): Likewise.
21647 (vshrnbq_n_s32): Likewise.
21648 (vshrntq_n_s32): Likewise.
21649 (vcmlaq_f32): Likewise.
21650 (vcmlaq_rot180_f32): Likewise.
21651 (vcmlaq_rot270_f32): Likewise.
21652 (vcmlaq_rot90_f32): Likewise.
21653 (vfmaq_f32): Likewise.
21654 (vfmaq_n_f32): Likewise.
21655 (vfmasq_n_f32): Likewise.
21656 (vfmsq_f32): Likewise.
21657 (vmlaldavaq_s32): Likewise.
21658 (vmlaldavaxq_s32): Likewise.
21659 (vmlsldavaq_s32): Likewise.
21660 (vmlsldavaxq_s32): Likewise.
21661 (vabsq_m_f32): Likewise.
21662 (vcvtmq_m_s32_f32): Likewise.
21663 (vcvtnq_m_s32_f32): Likewise.
21664 (vcvtpq_m_s32_f32): Likewise.
21665 (vcvtq_m_s32_f32): Likewise.
21666 (vdupq_m_n_f32): Likewise.
21667 (vmaxnmaq_m_f32): Likewise.
21668 (vmaxnmavq_p_f32): Likewise.
21669 (vmaxnmvq_p_f32): Likewise.
21670 (vminnmaq_m_f32): Likewise.
21671 (vminnmavq_p_f32): Likewise.
21672 (vminnmvq_p_f32): Likewise.
21673 (vmlaldavq_p_s32): Likewise.
21674 (vmlaldavxq_p_s32): Likewise.
21675 (vmlsldavq_p_s32): Likewise.
21676 (vmlsldavxq_p_s32): Likewise.
21677 (vmovlbq_m_s16): Likewise.
21678 (vmovltq_m_s16): Likewise.
21679 (vmovnbq_m_s32): Likewise.
21680 (vmovntq_m_s32): Likewise.
21681 (vnegq_m_f32): Likewise.
21682 (vpselq_f32): Likewise.
21683 (vqmovnbq_m_s32): Likewise.
21684 (vqmovntq_m_s32): Likewise.
21685 (vrev32q_m_s16): Likewise.
21686 (vrev64q_m_f32): Likewise.
21687 (vrndaq_m_f32): Likewise.
21688 (vrndmq_m_f32): Likewise.
21689 (vrndnq_m_f32): Likewise.
21690 (vrndpq_m_f32): Likewise.
21691 (vrndq_m_f32): Likewise.
21692 (vrndxq_m_f32): Likewise.
21693 (vcmpeqq_m_n_f32): Likewise.
21694 (vcmpgeq_m_f32): Likewise.
21695 (vcmpgeq_m_n_f32): Likewise.
21696 (vcmpgtq_m_f32): Likewise.
21697 (vcmpgtq_m_n_f32): Likewise.
21698 (vcmpleq_m_f32): Likewise.
21699 (vcmpleq_m_n_f32): Likewise.
21700 (vcmpltq_m_f32): Likewise.
21701 (vcmpltq_m_n_f32): Likewise.
21702 (vcmpneq_m_f32): Likewise.
21703 (vcmpneq_m_n_f32): Likewise.
21704 (vmvnq_m_n_u32): Likewise.
21705 (vorrq_m_n_u32): Likewise.
21706 (vqrshruntq_n_s32): Likewise.
21707 (vqshrunbq_n_s32): Likewise.
21708 (vqshruntq_n_s32): Likewise.
21709 (vcvtmq_m_u32_f32): Likewise.
21710 (vcvtnq_m_u32_f32): Likewise.
21711 (vcvtpq_m_u32_f32): Likewise.
21712 (vcvtq_m_u32_f32): Likewise.
21713 (vqmovunbq_m_s32): Likewise.
21714 (vqmovuntq_m_s32): Likewise.
21715 (vqrshrntq_n_u32): Likewise.
21716 (vqshrnbq_n_u32): Likewise.
21717 (vqshrntq_n_u32): Likewise.
21718 (vrshrnbq_n_u32): Likewise.
21719 (vrshrntq_n_u32): Likewise.
21720 (vshrnbq_n_u32): Likewise.
21721 (vshrntq_n_u32): Likewise.
21722 (vmlaldavaq_u32): Likewise.
21723 (vmlaldavaxq_u32): Likewise.
21724 (vmlaldavq_p_u32): Likewise.
21725 (vmlaldavxq_p_u32): Likewise.
21726 (vmovlbq_m_u16): Likewise.
21727 (vmovltq_m_u16): Likewise.
21728 (vmovnbq_m_u32): Likewise.
21729 (vmovntq_m_u32): Likewise.
21730 (vqmovnbq_m_u32): Likewise.
21731 (vqmovntq_m_u32): Likewise.
21732 (vrev32q_m_u16): Likewise.
21733 (__arm_vrmlaldavhaxq_s32): Define intrinsic.
21734 (__arm_vrmlsldavhaq_s32): Likewise.
21735 (__arm_vrmlsldavhaxq_s32): Likewise.
21736 (__arm_vaddlvaq_p_s32): Likewise.
21737 (__arm_vrev16q_m_s8): Likewise.
21738 (__arm_vrmlaldavhq_p_s32): Likewise.
21739 (__arm_vrmlaldavhxq_p_s32): Likewise.
21740 (__arm_vrmlsldavhq_p_s32): Likewise.
21741 (__arm_vrmlsldavhxq_p_s32): Likewise.
21742 (__arm_vaddlvaq_p_u32): Likewise.
21743 (__arm_vrev16q_m_u8): Likewise.
21744 (__arm_vrmlaldavhq_p_u32): Likewise.
21745 (__arm_vmvnq_m_n_s16): Likewise.
21746 (__arm_vorrq_m_n_s16): Likewise.
21747 (__arm_vqrshrntq_n_s16): Likewise.
21748 (__arm_vqshrnbq_n_s16): Likewise.
21749 (__arm_vqshrntq_n_s16): Likewise.
21750 (__arm_vrshrnbq_n_s16): Likewise.
21751 (__arm_vrshrntq_n_s16): Likewise.
21752 (__arm_vshrnbq_n_s16): Likewise.
21753 (__arm_vshrntq_n_s16): Likewise.
21754 (__arm_vmlaldavaq_s16): Likewise.
21755 (__arm_vmlaldavaxq_s16): Likewise.
21756 (__arm_vmlsldavaq_s16): Likewise.
21757 (__arm_vmlsldavaxq_s16): Likewise.
21758 (__arm_vmlaldavq_p_s16): Likewise.
21759 (__arm_vmlaldavxq_p_s16): Likewise.
21760 (__arm_vmlsldavq_p_s16): Likewise.
21761 (__arm_vmlsldavxq_p_s16): Likewise.
21762 (__arm_vmovlbq_m_s8): Likewise.
21763 (__arm_vmovltq_m_s8): Likewise.
21764 (__arm_vmovnbq_m_s16): Likewise.
21765 (__arm_vmovntq_m_s16): Likewise.
21766 (__arm_vqmovnbq_m_s16): Likewise.
21767 (__arm_vqmovntq_m_s16): Likewise.
21768 (__arm_vrev32q_m_s8): Likewise.
21769 (__arm_vmvnq_m_n_u16): Likewise.
21770 (__arm_vorrq_m_n_u16): Likewise.
21771 (__arm_vqrshruntq_n_s16): Likewise.
21772 (__arm_vqshrunbq_n_s16): Likewise.
21773 (__arm_vqshruntq_n_s16): Likewise.
21774 (__arm_vqmovunbq_m_s16): Likewise.
21775 (__arm_vqmovuntq_m_s16): Likewise.
21776 (__arm_vqrshrntq_n_u16): Likewise.
21777 (__arm_vqshrnbq_n_u16): Likewise.
21778 (__arm_vqshrntq_n_u16): Likewise.
21779 (__arm_vrshrnbq_n_u16): Likewise.
21780 (__arm_vrshrntq_n_u16): Likewise.
21781 (__arm_vshrnbq_n_u16): Likewise.
21782 (__arm_vshrntq_n_u16): Likewise.
21783 (__arm_vmlaldavaq_u16): Likewise.
21784 (__arm_vmlaldavaxq_u16): Likewise.
21785 (__arm_vmlaldavq_p_u16): Likewise.
21786 (__arm_vmlaldavxq_p_u16): Likewise.
21787 (__arm_vmovlbq_m_u8): Likewise.
21788 (__arm_vmovltq_m_u8): Likewise.
21789 (__arm_vmovnbq_m_u16): Likewise.
21790 (__arm_vmovntq_m_u16): Likewise.
21791 (__arm_vqmovnbq_m_u16): Likewise.
21792 (__arm_vqmovntq_m_u16): Likewise.
21793 (__arm_vrev32q_m_u8): Likewise.
21794 (__arm_vmvnq_m_n_s32): Likewise.
21795 (__arm_vorrq_m_n_s32): Likewise.
21796 (__arm_vqrshrntq_n_s32): Likewise.
21797 (__arm_vqshrnbq_n_s32): Likewise.
21798 (__arm_vqshrntq_n_s32): Likewise.
21799 (__arm_vrshrnbq_n_s32): Likewise.
21800 (__arm_vrshrntq_n_s32): Likewise.
21801 (__arm_vshrnbq_n_s32): Likewise.
21802 (__arm_vshrntq_n_s32): Likewise.
21803 (__arm_vmlaldavaq_s32): Likewise.
21804 (__arm_vmlaldavaxq_s32): Likewise.
21805 (__arm_vmlsldavaq_s32): Likewise.
21806 (__arm_vmlsldavaxq_s32): Likewise.
21807 (__arm_vmlaldavq_p_s32): Likewise.
21808 (__arm_vmlaldavxq_p_s32): Likewise.
21809 (__arm_vmlsldavq_p_s32): Likewise.
21810 (__arm_vmlsldavxq_p_s32): Likewise.
21811 (__arm_vmovlbq_m_s16): Likewise.
21812 (__arm_vmovltq_m_s16): Likewise.
21813 (__arm_vmovnbq_m_s32): Likewise.
21814 (__arm_vmovntq_m_s32): Likewise.
21815 (__arm_vqmovnbq_m_s32): Likewise.
21816 (__arm_vqmovntq_m_s32): Likewise.
21817 (__arm_vrev32q_m_s16): Likewise.
21818 (__arm_vmvnq_m_n_u32): Likewise.
21819 (__arm_vorrq_m_n_u32): Likewise.
21820 (__arm_vqrshruntq_n_s32): Likewise.
21821 (__arm_vqshrunbq_n_s32): Likewise.
21822 (__arm_vqshruntq_n_s32): Likewise.
21823 (__arm_vqmovunbq_m_s32): Likewise.
21824 (__arm_vqmovuntq_m_s32): Likewise.
21825 (__arm_vqrshrntq_n_u32): Likewise.
21826 (__arm_vqshrnbq_n_u32): Likewise.
21827 (__arm_vqshrntq_n_u32): Likewise.
21828 (__arm_vrshrnbq_n_u32): Likewise.
21829 (__arm_vrshrntq_n_u32): Likewise.
21830 (__arm_vshrnbq_n_u32): Likewise.
21831 (__arm_vshrntq_n_u32): Likewise.
21832 (__arm_vmlaldavaq_u32): Likewise.
21833 (__arm_vmlaldavaxq_u32): Likewise.
21834 (__arm_vmlaldavq_p_u32): Likewise.
21835 (__arm_vmlaldavxq_p_u32): Likewise.
21836 (__arm_vmovlbq_m_u16): Likewise.
21837 (__arm_vmovltq_m_u16): Likewise.
21838 (__arm_vmovnbq_m_u32): Likewise.
21839 (__arm_vmovntq_m_u32): Likewise.
21840 (__arm_vqmovnbq_m_u32): Likewise.
21841 (__arm_vqmovntq_m_u32): Likewise.
21842 (__arm_vrev32q_m_u16): Likewise.
21843 (__arm_vcvtbq_m_f16_f32): Likewise.
21844 (__arm_vcvtbq_m_f32_f16): Likewise.
21845 (__arm_vcvttq_m_f16_f32): Likewise.
21846 (__arm_vcvttq_m_f32_f16): Likewise.
21847 (__arm_vrev32q_m_f16): Likewise.
21848 (__arm_vcmlaq_f16): Likewise.
21849 (__arm_vcmlaq_rot180_f16): Likewise.
21850 (__arm_vcmlaq_rot270_f16): Likewise.
21851 (__arm_vcmlaq_rot90_f16): Likewise.
21852 (__arm_vfmaq_f16): Likewise.
21853 (__arm_vfmaq_n_f16): Likewise.
21854 (__arm_vfmasq_n_f16): Likewise.
21855 (__arm_vfmsq_f16): Likewise.
21856 (__arm_vabsq_m_f16): Likewise.
21857 (__arm_vcvtmq_m_s16_f16): Likewise.
21858 (__arm_vcvtnq_m_s16_f16): Likewise.
21859 (__arm_vcvtpq_m_s16_f16): Likewise.
21860 (__arm_vcvtq_m_s16_f16): Likewise.
21861 (__arm_vdupq_m_n_f16): Likewise.
21862 (__arm_vmaxnmaq_m_f16): Likewise.
21863 (__arm_vmaxnmavq_p_f16): Likewise.
21864 (__arm_vmaxnmvq_p_f16): Likewise.
21865 (__arm_vminnmaq_m_f16): Likewise.
21866 (__arm_vminnmavq_p_f16): Likewise.
21867 (__arm_vminnmvq_p_f16): Likewise.
21868 (__arm_vnegq_m_f16): Likewise.
21869 (__arm_vpselq_f16): Likewise.
21870 (__arm_vrev64q_m_f16): Likewise.
21871 (__arm_vrndaq_m_f16): Likewise.
21872 (__arm_vrndmq_m_f16): Likewise.
21873 (__arm_vrndnq_m_f16): Likewise.
21874 (__arm_vrndpq_m_f16): Likewise.
21875 (__arm_vrndq_m_f16): Likewise.
21876 (__arm_vrndxq_m_f16): Likewise.
21877 (__arm_vcmpeqq_m_n_f16): Likewise.
21878 (__arm_vcmpgeq_m_f16): Likewise.
21879 (__arm_vcmpgeq_m_n_f16): Likewise.
21880 (__arm_vcmpgtq_m_f16): Likewise.
21881 (__arm_vcmpgtq_m_n_f16): Likewise.
21882 (__arm_vcmpleq_m_f16): Likewise.
21883 (__arm_vcmpleq_m_n_f16): Likewise.
21884 (__arm_vcmpltq_m_f16): Likewise.
21885 (__arm_vcmpltq_m_n_f16): Likewise.
21886 (__arm_vcmpneq_m_f16): Likewise.
21887 (__arm_vcmpneq_m_n_f16): Likewise.
21888 (__arm_vcvtmq_m_u16_f16): Likewise.
21889 (__arm_vcvtnq_m_u16_f16): Likewise.
21890 (__arm_vcvtpq_m_u16_f16): Likewise.
21891 (__arm_vcvtq_m_u16_f16): Likewise.
21892 (__arm_vcmlaq_f32): Likewise.
21893 (__arm_vcmlaq_rot180_f32): Likewise.
21894 (__arm_vcmlaq_rot270_f32): Likewise.
21895 (__arm_vcmlaq_rot90_f32): Likewise.
21896 (__arm_vfmaq_f32): Likewise.
21897 (__arm_vfmaq_n_f32): Likewise.
21898 (__arm_vfmasq_n_f32): Likewise.
21899 (__arm_vfmsq_f32): Likewise.
21900 (__arm_vabsq_m_f32): Likewise.
21901 (__arm_vcvtmq_m_s32_f32): Likewise.
21902 (__arm_vcvtnq_m_s32_f32): Likewise.
21903 (__arm_vcvtpq_m_s32_f32): Likewise.
21904 (__arm_vcvtq_m_s32_f32): Likewise.
21905 (__arm_vdupq_m_n_f32): Likewise.
21906 (__arm_vmaxnmaq_m_f32): Likewise.
21907 (__arm_vmaxnmavq_p_f32): Likewise.
21908 (__arm_vmaxnmvq_p_f32): Likewise.
21909 (__arm_vminnmaq_m_f32): Likewise.
21910 (__arm_vminnmavq_p_f32): Likewise.
21911 (__arm_vminnmvq_p_f32): Likewise.
21912 (__arm_vnegq_m_f32): Likewise.
21913 (__arm_vpselq_f32): Likewise.
21914 (__arm_vrev64q_m_f32): Likewise.
21915 (__arm_vrndaq_m_f32): Likewise.
21916 (__arm_vrndmq_m_f32): Likewise.
21917 (__arm_vrndnq_m_f32): Likewise.
21918 (__arm_vrndpq_m_f32): Likewise.
21919 (__arm_vrndq_m_f32): Likewise.
21920 (__arm_vrndxq_m_f32): Likewise.
21921 (__arm_vcmpeqq_m_n_f32): Likewise.
21922 (__arm_vcmpgeq_m_f32): Likewise.
21923 (__arm_vcmpgeq_m_n_f32): Likewise.
21924 (__arm_vcmpgtq_m_f32): Likewise.
21925 (__arm_vcmpgtq_m_n_f32): Likewise.
21926 (__arm_vcmpleq_m_f32): Likewise.
21927 (__arm_vcmpleq_m_n_f32): Likewise.
21928 (__arm_vcmpltq_m_f32): Likewise.
21929 (__arm_vcmpltq_m_n_f32): Likewise.
21930 (__arm_vcmpneq_m_f32): Likewise.
21931 (__arm_vcmpneq_m_n_f32): Likewise.
21932 (__arm_vcvtmq_m_u32_f32): Likewise.
21933 (__arm_vcvtnq_m_u32_f32): Likewise.
21934 (__arm_vcvtpq_m_u32_f32): Likewise.
21935 (__arm_vcvtq_m_u32_f32): Likewise.
21936 (vcvtq_m): Define polymorphic variant.
21937 (vabsq_m): Likewise.
21938 (vcmlaq): Likewise.
21939 (vcmlaq_rot180): Likewise.
21940 (vcmlaq_rot270): Likewise.
21941 (vcmlaq_rot90): Likewise.
21942 (vcmpeqq_m_n): Likewise.
21943 (vcmpgeq_m_n): Likewise.
21944 (vrndxq_m): Likewise.
21945 (vrndq_m): Likewise.
21946 (vrndpq_m): Likewise.
21947 (vcmpgtq_m_n): Likewise.
21948 (vcmpgtq_m): Likewise.
21949 (vcmpleq_m): Likewise.
21950 (vcmpleq_m_n): Likewise.
21951 (vcmpltq_m_n): Likewise.
21952 (vcmpltq_m): Likewise.
21953 (vcmpneq_m): Likewise.
21954 (vcmpneq_m_n): Likewise.
21955 (vcvtbq_m): Likewise.
21956 (vcvttq_m): Likewise.
21957 (vcvtmq_m): Likewise.
21958 (vcvtnq_m): Likewise.
21959 (vcvtpq_m): Likewise.
21960 (vdupq_m_n): Likewise.
21961 (vfmaq_n): Likewise.
21962 (vfmaq): Likewise.
21963 (vfmasq_n): Likewise.
21964 (vfmsq): Likewise.
21965 (vmaxnmaq_m): Likewise.
21966 (vmaxnmavq_m): Likewise.
21967 (vmaxnmvq_m): Likewise.
21968 (vmaxnmavq_p): Likewise.
21969 (vmaxnmvq_p): Likewise.
21970 (vminnmaq_m): Likewise.
21971 (vminnmavq_p): Likewise.
21972 (vminnmvq_p): Likewise.
21973 (vrndnq_m): Likewise.
21974 (vrndaq_m): Likewise.
21975 (vrndmq_m): Likewise.
21976 (vrev64q_m): Likewise.
21977 (vrev32q_m): Likewise.
21978 (vpselq): Likewise.
21979 (vnegq_m): Likewise.
21980 (vcmpgeq_m): Likewise.
21981 (vshrntq_n): Likewise.
21982 (vrshrntq_n): Likewise.
21983 (vmovlbq_m): Likewise.
21984 (vmovnbq_m): Likewise.
21985 (vmovntq_m): Likewise.
21986 (vmvnq_m_n): Likewise.
21987 (vmvnq_m): Likewise.
21988 (vshrnbq_n): Likewise.
21989 (vrshrnbq_n): Likewise.
21990 (vqshruntq_n): Likewise.
21991 (vrev16q_m): Likewise.
21992 (vqshrunbq_n): Likewise.
21993 (vqshrntq_n): Likewise.
21994 (vqrshruntq_n): Likewise.
21995 (vqrshrntq_n): Likewise.
21996 (vqshrnbq_n): Likewise.
21997 (vqmovuntq_m): Likewise.
21998 (vqmovntq_m): Likewise.
21999 (vqmovnbq_m): Likewise.
22000 (vorrq_m_n): Likewise.
22001 (vmovltq_m): Likewise.
22002 (vqmovunbq_m): Likewise.
22003 (vaddlvaq_p): Likewise.
22004 (vmlaldavaq): Likewise.
22005 (vmlaldavaxq): Likewise.
22006 (vmlaldavq_p): Likewise.
22007 (vmlaldavxq_p): Likewise.
22008 (vmlsldavaq): Likewise.
22009 (vmlsldavaxq): Likewise.
22010 (vmlsldavq_p): Likewise.
22011 (vmlsldavxq_p): Likewise.
22012 (vrmlaldavhaxq): Likewise.
22013 (vrmlaldavhq_p): Likewise.
22014 (vrmlaldavhxq_p): Likewise.
22015 (vrmlsldavhaq): Likewise.
22016 (vrmlsldavhaxq): Likewise.
22017 (vrmlsldavhq_p): Likewise.
22018 (vrmlsldavhxq_p): Likewise.
22019 * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_IMM_UNONE): Use
22020 builtin qualifier.
22021 (TERNOP_NONE_NONE_NONE_IMM): Likewise.
22022 (TERNOP_NONE_NONE_NONE_NONE): Likewise.
22023 (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
22024 (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
22025 (TERNOP_UNONE_UNONE_IMM_UNONE): Likewise.
22026 (TERNOP_UNONE_UNONE_NONE_IMM): Likewise.
22027 (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
22028 (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
22029 (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
22030 * config/arm/mve.md (MVE_constraint3): Define mode attribute iterator.
22031 (MVE_pred3): Likewise.
22032 (MVE_constraint1): Likewise.
22033 (MVE_pred1): Likewise.
22034 (VMLALDAVQ_P): Define iterator.
22035 (VQMOVNBQ_M): Likewise.
22036 (VMOVLTQ_M): Likewise.
22037 (VMOVNBQ_M): Likewise.
22038 (VRSHRNTQ_N): Likewise.
22039 (VORRQ_M_N): Likewise.
22040 (VREV32Q_M): Likewise.
22041 (VREV16Q_M): Likewise.
22042 (VQRSHRNTQ_N): Likewise.
22043 (VMOVNTQ_M): Likewise.
22044 (VMOVLBQ_M): Likewise.
22045 (VMLALDAVAQ): Likewise.
22046 (VQSHRNBQ_N): Likewise.
22047 (VSHRNBQ_N): Likewise.
22048 (VRSHRNBQ_N): Likewise.
22049 (VMLALDAVXQ_P): Likewise.
22050 (VQMOVNTQ_M): Likewise.
22051 (VMVNQ_M_N): Likewise.
22052 (VQSHRNTQ_N): Likewise.
22053 (VMLALDAVAXQ): Likewise.
22054 (VSHRNTQ_N): Likewise.
22055 (VCVTMQ_M): Likewise.
22056 (VCVTNQ_M): Likewise.
22057 (VCVTPQ_M): Likewise.
22058 (VCVTQ_M_N_FROM_F): Likewise.
22059 (VCVTQ_M_FROM_F): Likewise.
22060 (VRMLALDAVHQ_P): Likewise.
22061 (VADDLVAQ_P): Likewise.
22062 (mve_vrndq_m_f<mode>): Define RTL pattern.
22063 (mve_vabsq_m_f<mode>): Likewise.
22064 (mve_vaddlvaq_p_<supf>v4si): Likewise.
22065 (mve_vcmlaq_f<mode>): Likewise.
22066 (mve_vcmlaq_rot180_f<mode>): Likewise.
22067 (mve_vcmlaq_rot270_f<mode>): Likewise.
22068 (mve_vcmlaq_rot90_f<mode>): Likewise.
22069 (mve_vcmpeqq_m_n_f<mode>): Likewise.
22070 (mve_vcmpgeq_m_f<mode>): Likewise.
22071 (mve_vcmpgeq_m_n_f<mode>): Likewise.
22072 (mve_vcmpgtq_m_f<mode>): Likewise.
22073 (mve_vcmpgtq_m_n_f<mode>): Likewise.
22074 (mve_vcmpleq_m_f<mode>): Likewise.
22075 (mve_vcmpleq_m_n_f<mode>): Likewise.
22076 (mve_vcmpltq_m_f<mode>): Likewise.
22077 (mve_vcmpltq_m_n_f<mode>): Likewise.
22078 (mve_vcmpneq_m_f<mode>): Likewise.
22079 (mve_vcmpneq_m_n_f<mode>): Likewise.
22080 (mve_vcvtbq_m_f16_f32v8hf): Likewise.
22081 (mve_vcvtbq_m_f32_f16v4sf): Likewise.
22082 (mve_vcvttq_m_f16_f32v8hf): Likewise.
22083 (mve_vcvttq_m_f32_f16v4sf): Likewise.
22084 (mve_vdupq_m_n_f<mode>): Likewise.
22085 (mve_vfmaq_f<mode>): Likewise.
22086 (mve_vfmaq_n_f<mode>): Likewise.
22087 (mve_vfmasq_n_f<mode>): Likewise.
22088 (mve_vfmsq_f<mode>): Likewise.
22089 (mve_vmaxnmaq_m_f<mode>): Likewise.
22090 (mve_vmaxnmavq_p_f<mode>): Likewise.
22091 (mve_vmaxnmvq_p_f<mode>): Likewise.
22092 (mve_vminnmaq_m_f<mode>): Likewise.
22093 (mve_vminnmavq_p_f<mode>): Likewise.
22094 (mve_vminnmvq_p_f<mode>): Likewise.
22095 (mve_vmlaldavaq_<supf><mode>): Likewise.
22096 (mve_vmlaldavaxq_<supf><mode>): Likewise.
22097 (mve_vmlaldavq_p_<supf><mode>): Likewise.
22098 (mve_vmlaldavxq_p_<supf><mode>): Likewise.
22099 (mve_vmlsldavaq_s<mode>): Likewise.
22100 (mve_vmlsldavaxq_s<mode>): Likewise.
22101 (mve_vmlsldavq_p_s<mode>): Likewise.
22102 (mve_vmlsldavxq_p_s<mode>): Likewise.
22103 (mve_vmovlbq_m_<supf><mode>): Likewise.
22104 (mve_vmovltq_m_<supf><mode>): Likewise.
22105 (mve_vmovnbq_m_<supf><mode>): Likewise.
22106 (mve_vmovntq_m_<supf><mode>): Likewise.
22107 (mve_vmvnq_m_n_<supf><mode>): Likewise.
22108 (mve_vnegq_m_f<mode>): Likewise.
22109 (mve_vorrq_m_n_<supf><mode>): Likewise.
22110 (mve_vpselq_f<mode>): Likewise.
22111 (mve_vqmovnbq_m_<supf><mode>): Likewise.
22112 (mve_vqmovntq_m_<supf><mode>): Likewise.
22113 (mve_vqmovunbq_m_s<mode>): Likewise.
22114 (mve_vqmovuntq_m_s<mode>): Likewise.
22115 (mve_vqrshrntq_n_<supf><mode>): Likewise.
22116 (mve_vqrshruntq_n_s<mode>): Likewise.
22117 (mve_vqshrnbq_n_<supf><mode>): Likewise.
22118 (mve_vqshrntq_n_<supf><mode>): Likewise.
22119 (mve_vqshrunbq_n_s<mode>): Likewise.
22120 (mve_vqshruntq_n_s<mode>): Likewise.
22121 (mve_vrev32q_m_fv8hf): Likewise.
22122 (mve_vrev32q_m_<supf><mode>): Likewise.
22123 (mve_vrev64q_m_f<mode>): Likewise.
22124 (mve_vrmlaldavhaxq_sv4si): Likewise.
22125 (mve_vrmlaldavhxq_p_sv4si): Likewise.
22126 (mve_vrmlsldavhaxq_sv4si): Likewise.
22127 (mve_vrmlsldavhq_p_sv4si): Likewise.
22128 (mve_vrmlsldavhxq_p_sv4si): Likewise.
22129 (mve_vrndaq_m_f<mode>): Likewise.
22130 (mve_vrndmq_m_f<mode>): Likewise.
22131 (mve_vrndnq_m_f<mode>): Likewise.
22132 (mve_vrndpq_m_f<mode>): Likewise.
22133 (mve_vrndxq_m_f<mode>): Likewise.
22134 (mve_vrshrnbq_n_<supf><mode>): Likewise.
22135 (mve_vrshrntq_n_<supf><mode>): Likewise.
22136 (mve_vshrnbq_n_<supf><mode>): Likewise.
22137 (mve_vshrntq_n_<supf><mode>): Likewise.
22138 (mve_vcvtmq_m_<supf><mode>): Likewise.
22139 (mve_vcvtpq_m_<supf><mode>): Likewise.
22140 (mve_vcvtnq_m_<supf><mode>): Likewise.
22141 (mve_vcvtq_m_n_from_f_<supf><mode>): Likewise.
22142 (mve_vrev16q_m_<supf>v16qi): Likewise.
22143 (mve_vcvtq_m_from_f_<supf><mode>): Likewise.
22144 (mve_vrmlaldavhq_p_<supf>v4si): Likewise.
22145 (mve_vrmlsldavhaq_sv4si): Likewise.
22146
22147 2020-03-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
22148 Mihail Ionescu <mihail.ionescu@arm.com>
22149 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22150
22151 * config/arm/arm_mve.h (vpselq_u8): Define macro.
22152 (vpselq_s8): Likewise.
22153 (vrev64q_m_u8): Likewise.
22154 (vqrdmlashq_n_u8): Likewise.
22155 (vqrdmlahq_n_u8): Likewise.
22156 (vqdmlahq_n_u8): Likewise.
22157 (vmvnq_m_u8): Likewise.
22158 (vmlasq_n_u8): Likewise.
22159 (vmlaq_n_u8): Likewise.
22160 (vmladavq_p_u8): Likewise.
22161 (vmladavaq_u8): Likewise.
22162 (vminvq_p_u8): Likewise.
22163 (vmaxvq_p_u8): Likewise.
22164 (vdupq_m_n_u8): Likewise.
22165 (vcmpneq_m_u8): Likewise.
22166 (vcmpneq_m_n_u8): Likewise.
22167 (vcmphiq_m_u8): Likewise.
22168 (vcmphiq_m_n_u8): Likewise.
22169 (vcmpeqq_m_u8): Likewise.
22170 (vcmpeqq_m_n_u8): Likewise.
22171 (vcmpcsq_m_u8): Likewise.
22172 (vcmpcsq_m_n_u8): Likewise.
22173 (vclzq_m_u8): Likewise.
22174 (vaddvaq_p_u8): Likewise.
22175 (vsriq_n_u8): Likewise.
22176 (vsliq_n_u8): Likewise.
22177 (vshlq_m_r_u8): Likewise.
22178 (vrshlq_m_n_u8): Likewise.
22179 (vqshlq_m_r_u8): Likewise.
22180 (vqrshlq_m_n_u8): Likewise.
22181 (vminavq_p_s8): Likewise.
22182 (vminaq_m_s8): Likewise.
22183 (vmaxavq_p_s8): Likewise.
22184 (vmaxaq_m_s8): Likewise.
22185 (vcmpneq_m_s8): Likewise.
22186 (vcmpneq_m_n_s8): Likewise.
22187 (vcmpltq_m_s8): Likewise.
22188 (vcmpltq_m_n_s8): Likewise.
22189 (vcmpleq_m_s8): Likewise.
22190 (vcmpleq_m_n_s8): Likewise.
22191 (vcmpgtq_m_s8): Likewise.
22192 (vcmpgtq_m_n_s8): Likewise.
22193 (vcmpgeq_m_s8): Likewise.
22194 (vcmpgeq_m_n_s8): Likewise.
22195 (vcmpeqq_m_s8): Likewise.
22196 (vcmpeqq_m_n_s8): Likewise.
22197 (vshlq_m_r_s8): Likewise.
22198 (vrshlq_m_n_s8): Likewise.
22199 (vrev64q_m_s8): Likewise.
22200 (vqshlq_m_r_s8): Likewise.
22201 (vqrshlq_m_n_s8): Likewise.
22202 (vqnegq_m_s8): Likewise.
22203 (vqabsq_m_s8): Likewise.
22204 (vnegq_m_s8): Likewise.
22205 (vmvnq_m_s8): Likewise.
22206 (vmlsdavxq_p_s8): Likewise.
22207 (vmlsdavq_p_s8): Likewise.
22208 (vmladavxq_p_s8): Likewise.
22209 (vmladavq_p_s8): Likewise.
22210 (vminvq_p_s8): Likewise.
22211 (vmaxvq_p_s8): Likewise.
22212 (vdupq_m_n_s8): Likewise.
22213 (vclzq_m_s8): Likewise.
22214 (vclsq_m_s8): Likewise.
22215 (vaddvaq_p_s8): Likewise.
22216 (vabsq_m_s8): Likewise.
22217 (vqrdmlsdhxq_s8): Likewise.
22218 (vqrdmlsdhq_s8): Likewise.
22219 (vqrdmlashq_n_s8): Likewise.
22220 (vqrdmlahq_n_s8): Likewise.
22221 (vqrdmladhxq_s8): Likewise.
22222 (vqrdmladhq_s8): Likewise.
22223 (vqdmlsdhxq_s8): Likewise.
22224 (vqdmlsdhq_s8): Likewise.
22225 (vqdmlahq_n_s8): Likewise.
22226 (vqdmladhxq_s8): Likewise.
22227 (vqdmladhq_s8): Likewise.
22228 (vmlsdavaxq_s8): Likewise.
22229 (vmlsdavaq_s8): Likewise.
22230 (vmlasq_n_s8): Likewise.
22231 (vmlaq_n_s8): Likewise.
22232 (vmladavaxq_s8): Likewise.
22233 (vmladavaq_s8): Likewise.
22234 (vsriq_n_s8): Likewise.
22235 (vsliq_n_s8): Likewise.
22236 (vpselq_u16): Likewise.
22237 (vpselq_s16): Likewise.
22238 (vrev64q_m_u16): Likewise.
22239 (vqrdmlashq_n_u16): Likewise.
22240 (vqrdmlahq_n_u16): Likewise.
22241 (vqdmlahq_n_u16): Likewise.
22242 (vmvnq_m_u16): Likewise.
22243 (vmlasq_n_u16): Likewise.
22244 (vmlaq_n_u16): Likewise.
22245 (vmladavq_p_u16): Likewise.
22246 (vmladavaq_u16): Likewise.
22247 (vminvq_p_u16): Likewise.
22248 (vmaxvq_p_u16): Likewise.
22249 (vdupq_m_n_u16): Likewise.
22250 (vcmpneq_m_u16): Likewise.
22251 (vcmpneq_m_n_u16): Likewise.
22252 (vcmphiq_m_u16): Likewise.
22253 (vcmphiq_m_n_u16): Likewise.
22254 (vcmpeqq_m_u16): Likewise.
22255 (vcmpeqq_m_n_u16): Likewise.
22256 (vcmpcsq_m_u16): Likewise.
22257 (vcmpcsq_m_n_u16): Likewise.
22258 (vclzq_m_u16): Likewise.
22259 (vaddvaq_p_u16): Likewise.
22260 (vsriq_n_u16): Likewise.
22261 (vsliq_n_u16): Likewise.
22262 (vshlq_m_r_u16): Likewise.
22263 (vrshlq_m_n_u16): Likewise.
22264 (vqshlq_m_r_u16): Likewise.
22265 (vqrshlq_m_n_u16): Likewise.
22266 (vminavq_p_s16): Likewise.
22267 (vminaq_m_s16): Likewise.
22268 (vmaxavq_p_s16): Likewise.
22269 (vmaxaq_m_s16): Likewise.
22270 (vcmpneq_m_s16): Likewise.
22271 (vcmpneq_m_n_s16): Likewise.
22272 (vcmpltq_m_s16): Likewise.
22273 (vcmpltq_m_n_s16): Likewise.
22274 (vcmpleq_m_s16): Likewise.
22275 (vcmpleq_m_n_s16): Likewise.
22276 (vcmpgtq_m_s16): Likewise.
22277 (vcmpgtq_m_n_s16): Likewise.
22278 (vcmpgeq_m_s16): Likewise.
22279 (vcmpgeq_m_n_s16): Likewise.
22280 (vcmpeqq_m_s16): Likewise.
22281 (vcmpeqq_m_n_s16): Likewise.
22282 (vshlq_m_r_s16): Likewise.
22283 (vrshlq_m_n_s16): Likewise.
22284 (vrev64q_m_s16): Likewise.
22285 (vqshlq_m_r_s16): Likewise.
22286 (vqrshlq_m_n_s16): Likewise.
22287 (vqnegq_m_s16): Likewise.
22288 (vqabsq_m_s16): Likewise.
22289 (vnegq_m_s16): Likewise.
22290 (vmvnq_m_s16): Likewise.
22291 (vmlsdavxq_p_s16): Likewise.
22292 (vmlsdavq_p_s16): Likewise.
22293 (vmladavxq_p_s16): Likewise.
22294 (vmladavq_p_s16): Likewise.
22295 (vminvq_p_s16): Likewise.
22296 (vmaxvq_p_s16): Likewise.
22297 (vdupq_m_n_s16): Likewise.
22298 (vclzq_m_s16): Likewise.
22299 (vclsq_m_s16): Likewise.
22300 (vaddvaq_p_s16): Likewise.
22301 (vabsq_m_s16): Likewise.
22302 (vqrdmlsdhxq_s16): Likewise.
22303 (vqrdmlsdhq_s16): Likewise.
22304 (vqrdmlashq_n_s16): Likewise.
22305 (vqrdmlahq_n_s16): Likewise.
22306 (vqrdmladhxq_s16): Likewise.
22307 (vqrdmladhq_s16): Likewise.
22308 (vqdmlsdhxq_s16): Likewise.
22309 (vqdmlsdhq_s16): Likewise.
22310 (vqdmlahq_n_s16): Likewise.
22311 (vqdmladhxq_s16): Likewise.
22312 (vqdmladhq_s16): Likewise.
22313 (vmlsdavaxq_s16): Likewise.
22314 (vmlsdavaq_s16): Likewise.
22315 (vmlasq_n_s16): Likewise.
22316 (vmlaq_n_s16): Likewise.
22317 (vmladavaxq_s16): Likewise.
22318 (vmladavaq_s16): Likewise.
22319 (vsriq_n_s16): Likewise.
22320 (vsliq_n_s16): Likewise.
22321 (vpselq_u32): Likewise.
22322 (vpselq_s32): Likewise.
22323 (vrev64q_m_u32): Likewise.
22324 (vqrdmlashq_n_u32): Likewise.
22325 (vqrdmlahq_n_u32): Likewise.
22326 (vqdmlahq_n_u32): Likewise.
22327 (vmvnq_m_u32): Likewise.
22328 (vmlasq_n_u32): Likewise.
22329 (vmlaq_n_u32): Likewise.
22330 (vmladavq_p_u32): Likewise.
22331 (vmladavaq_u32): Likewise.
22332 (vminvq_p_u32): Likewise.
22333 (vmaxvq_p_u32): Likewise.
22334 (vdupq_m_n_u32): Likewise.
22335 (vcmpneq_m_u32): Likewise.
22336 (vcmpneq_m_n_u32): Likewise.
22337 (vcmphiq_m_u32): Likewise.
22338 (vcmphiq_m_n_u32): Likewise.
22339 (vcmpeqq_m_u32): Likewise.
22340 (vcmpeqq_m_n_u32): Likewise.
22341 (vcmpcsq_m_u32): Likewise.
22342 (vcmpcsq_m_n_u32): Likewise.
22343 (vclzq_m_u32): Likewise.
22344 (vaddvaq_p_u32): Likewise.
22345 (vsriq_n_u32): Likewise.
22346 (vsliq_n_u32): Likewise.
22347 (vshlq_m_r_u32): Likewise.
22348 (vrshlq_m_n_u32): Likewise.
22349 (vqshlq_m_r_u32): Likewise.
22350 (vqrshlq_m_n_u32): Likewise.
22351 (vminavq_p_s32): Likewise.
22352 (vminaq_m_s32): Likewise.
22353 (vmaxavq_p_s32): Likewise.
22354 (vmaxaq_m_s32): Likewise.
22355 (vcmpneq_m_s32): Likewise.
22356 (vcmpneq_m_n_s32): Likewise.
22357 (vcmpltq_m_s32): Likewise.
22358 (vcmpltq_m_n_s32): Likewise.
22359 (vcmpleq_m_s32): Likewise.
22360 (vcmpleq_m_n_s32): Likewise.
22361 (vcmpgtq_m_s32): Likewise.
22362 (vcmpgtq_m_n_s32): Likewise.
22363 (vcmpgeq_m_s32): Likewise.
22364 (vcmpgeq_m_n_s32): Likewise.
22365 (vcmpeqq_m_s32): Likewise.
22366 (vcmpeqq_m_n_s32): Likewise.
22367 (vshlq_m_r_s32): Likewise.
22368 (vrshlq_m_n_s32): Likewise.
22369 (vrev64q_m_s32): Likewise.
22370 (vqshlq_m_r_s32): Likewise.
22371 (vqrshlq_m_n_s32): Likewise.
22372 (vqnegq_m_s32): Likewise.
22373 (vqabsq_m_s32): Likewise.
22374 (vnegq_m_s32): Likewise.
22375 (vmvnq_m_s32): Likewise.
22376 (vmlsdavxq_p_s32): Likewise.
22377 (vmlsdavq_p_s32): Likewise.
22378 (vmladavxq_p_s32): Likewise.
22379 (vmladavq_p_s32): Likewise.
22380 (vminvq_p_s32): Likewise.
22381 (vmaxvq_p_s32): Likewise.
22382 (vdupq_m_n_s32): Likewise.
22383 (vclzq_m_s32): Likewise.
22384 (vclsq_m_s32): Likewise.
22385 (vaddvaq_p_s32): Likewise.
22386 (vabsq_m_s32): Likewise.
22387 (vqrdmlsdhxq_s32): Likewise.
22388 (vqrdmlsdhq_s32): Likewise.
22389 (vqrdmlashq_n_s32): Likewise.
22390 (vqrdmlahq_n_s32): Likewise.
22391 (vqrdmladhxq_s32): Likewise.
22392 (vqrdmladhq_s32): Likewise.
22393 (vqdmlsdhxq_s32): Likewise.
22394 (vqdmlsdhq_s32): Likewise.
22395 (vqdmlahq_n_s32): Likewise.
22396 (vqdmladhxq_s32): Likewise.
22397 (vqdmladhq_s32): Likewise.
22398 (vmlsdavaxq_s32): Likewise.
22399 (vmlsdavaq_s32): Likewise.
22400 (vmlasq_n_s32): Likewise.
22401 (vmlaq_n_s32): Likewise.
22402 (vmladavaxq_s32): Likewise.
22403 (vmladavaq_s32): Likewise.
22404 (vsriq_n_s32): Likewise.
22405 (vsliq_n_s32): Likewise.
22406 (vpselq_u64): Likewise.
22407 (vpselq_s64): Likewise.
22408 (__arm_vpselq_u8): Define intrinsic.
22409 (__arm_vpselq_s8): Likewise.
22410 (__arm_vrev64q_m_u8): Likewise.
22411 (__arm_vqrdmlashq_n_u8): Likewise.
22412 (__arm_vqrdmlahq_n_u8): Likewise.
22413 (__arm_vqdmlahq_n_u8): Likewise.
22414 (__arm_vmvnq_m_u8): Likewise.
22415 (__arm_vmlasq_n_u8): Likewise.
22416 (__arm_vmlaq_n_u8): Likewise.
22417 (__arm_vmladavq_p_u8): Likewise.
22418 (__arm_vmladavaq_u8): Likewise.
22419 (__arm_vminvq_p_u8): Likewise.
22420 (__arm_vmaxvq_p_u8): Likewise.
22421 (__arm_vdupq_m_n_u8): Likewise.
22422 (__arm_vcmpneq_m_u8): Likewise.
22423 (__arm_vcmpneq_m_n_u8): Likewise.
22424 (__arm_vcmphiq_m_u8): Likewise.
22425 (__arm_vcmphiq_m_n_u8): Likewise.
22426 (__arm_vcmpeqq_m_u8): Likewise.
22427 (__arm_vcmpeqq_m_n_u8): Likewise.
22428 (__arm_vcmpcsq_m_u8): Likewise.
22429 (__arm_vcmpcsq_m_n_u8): Likewise.
22430 (__arm_vclzq_m_u8): Likewise.
22431 (__arm_vaddvaq_p_u8): Likewise.
22432 (__arm_vsriq_n_u8): Likewise.
22433 (__arm_vsliq_n_u8): Likewise.
22434 (__arm_vshlq_m_r_u8): Likewise.
22435 (__arm_vrshlq_m_n_u8): Likewise.
22436 (__arm_vqshlq_m_r_u8): Likewise.
22437 (__arm_vqrshlq_m_n_u8): Likewise.
22438 (__arm_vminavq_p_s8): Likewise.
22439 (__arm_vminaq_m_s8): Likewise.
22440 (__arm_vmaxavq_p_s8): Likewise.
22441 (__arm_vmaxaq_m_s8): Likewise.
22442 (__arm_vcmpneq_m_s8): Likewise.
22443 (__arm_vcmpneq_m_n_s8): Likewise.
22444 (__arm_vcmpltq_m_s8): Likewise.
22445 (__arm_vcmpltq_m_n_s8): Likewise.
22446 (__arm_vcmpleq_m_s8): Likewise.
22447 (__arm_vcmpleq_m_n_s8): Likewise.
22448 (__arm_vcmpgtq_m_s8): Likewise.
22449 (__arm_vcmpgtq_m_n_s8): Likewise.
22450 (__arm_vcmpgeq_m_s8): Likewise.
22451 (__arm_vcmpgeq_m_n_s8): Likewise.
22452 (__arm_vcmpeqq_m_s8): Likewise.
22453 (__arm_vcmpeqq_m_n_s8): Likewise.
22454 (__arm_vshlq_m_r_s8): Likewise.
22455 (__arm_vrshlq_m_n_s8): Likewise.
22456 (__arm_vrev64q_m_s8): Likewise.
22457 (__arm_vqshlq_m_r_s8): Likewise.
22458 (__arm_vqrshlq_m_n_s8): Likewise.
22459 (__arm_vqnegq_m_s8): Likewise.
22460 (__arm_vqabsq_m_s8): Likewise.
22461 (__arm_vnegq_m_s8): Likewise.
22462 (__arm_vmvnq_m_s8): Likewise.
22463 (__arm_vmlsdavxq_p_s8): Likewise.
22464 (__arm_vmlsdavq_p_s8): Likewise.
22465 (__arm_vmladavxq_p_s8): Likewise.
22466 (__arm_vmladavq_p_s8): Likewise.
22467 (__arm_vminvq_p_s8): Likewise.
22468 (__arm_vmaxvq_p_s8): Likewise.
22469 (__arm_vdupq_m_n_s8): Likewise.
22470 (__arm_vclzq_m_s8): Likewise.
22471 (__arm_vclsq_m_s8): Likewise.
22472 (__arm_vaddvaq_p_s8): Likewise.
22473 (__arm_vabsq_m_s8): Likewise.
22474 (__arm_vqrdmlsdhxq_s8): Likewise.
22475 (__arm_vqrdmlsdhq_s8): Likewise.
22476 (__arm_vqrdmlashq_n_s8): Likewise.
22477 (__arm_vqrdmlahq_n_s8): Likewise.
22478 (__arm_vqrdmladhxq_s8): Likewise.
22479 (__arm_vqrdmladhq_s8): Likewise.
22480 (__arm_vqdmlsdhxq_s8): Likewise.
22481 (__arm_vqdmlsdhq_s8): Likewise.
22482 (__arm_vqdmlahq_n_s8): Likewise.
22483 (__arm_vqdmladhxq_s8): Likewise.
22484 (__arm_vqdmladhq_s8): Likewise.
22485 (__arm_vmlsdavaxq_s8): Likewise.
22486 (__arm_vmlsdavaq_s8): Likewise.
22487 (__arm_vmlasq_n_s8): Likewise.
22488 (__arm_vmlaq_n_s8): Likewise.
22489 (__arm_vmladavaxq_s8): Likewise.
22490 (__arm_vmladavaq_s8): Likewise.
22491 (__arm_vsriq_n_s8): Likewise.
22492 (__arm_vsliq_n_s8): Likewise.
22493 (__arm_vpselq_u16): Likewise.
22494 (__arm_vpselq_s16): Likewise.
22495 (__arm_vrev64q_m_u16): Likewise.
22496 (__arm_vqrdmlashq_n_u16): Likewise.
22497 (__arm_vqrdmlahq_n_u16): Likewise.
22498 (__arm_vqdmlahq_n_u16): Likewise.
22499 (__arm_vmvnq_m_u16): Likewise.
22500 (__arm_vmlasq_n_u16): Likewise.
22501 (__arm_vmlaq_n_u16): Likewise.
22502 (__arm_vmladavq_p_u16): Likewise.
22503 (__arm_vmladavaq_u16): Likewise.
22504 (__arm_vminvq_p_u16): Likewise.
22505 (__arm_vmaxvq_p_u16): Likewise.
22506 (__arm_vdupq_m_n_u16): Likewise.
22507 (__arm_vcmpneq_m_u16): Likewise.
22508 (__arm_vcmpneq_m_n_u16): Likewise.
22509 (__arm_vcmphiq_m_u16): Likewise.
22510 (__arm_vcmphiq_m_n_u16): Likewise.
22511 (__arm_vcmpeqq_m_u16): Likewise.
22512 (__arm_vcmpeqq_m_n_u16): Likewise.
22513 (__arm_vcmpcsq_m_u16): Likewise.
22514 (__arm_vcmpcsq_m_n_u16): Likewise.
22515 (__arm_vclzq_m_u16): Likewise.
22516 (__arm_vaddvaq_p_u16): Likewise.
22517 (__arm_vsriq_n_u16): Likewise.
22518 (__arm_vsliq_n_u16): Likewise.
22519 (__arm_vshlq_m_r_u16): Likewise.
22520 (__arm_vrshlq_m_n_u16): Likewise.
22521 (__arm_vqshlq_m_r_u16): Likewise.
22522 (__arm_vqrshlq_m_n_u16): Likewise.
22523 (__arm_vminavq_p_s16): Likewise.
22524 (__arm_vminaq_m_s16): Likewise.
22525 (__arm_vmaxavq_p_s16): Likewise.
22526 (__arm_vmaxaq_m_s16): Likewise.
22527 (__arm_vcmpneq_m_s16): Likewise.
22528 (__arm_vcmpneq_m_n_s16): Likewise.
22529 (__arm_vcmpltq_m_s16): Likewise.
22530 (__arm_vcmpltq_m_n_s16): Likewise.
22531 (__arm_vcmpleq_m_s16): Likewise.
22532 (__arm_vcmpleq_m_n_s16): Likewise.
22533 (__arm_vcmpgtq_m_s16): Likewise.
22534 (__arm_vcmpgtq_m_n_s16): Likewise.
22535 (__arm_vcmpgeq_m_s16): Likewise.
22536 (__arm_vcmpgeq_m_n_s16): Likewise.
22537 (__arm_vcmpeqq_m_s16): Likewise.
22538 (__arm_vcmpeqq_m_n_s16): Likewise.
22539 (__arm_vshlq_m_r_s16): Likewise.
22540 (__arm_vrshlq_m_n_s16): Likewise.
22541 (__arm_vrev64q_m_s16): Likewise.
22542 (__arm_vqshlq_m_r_s16): Likewise.
22543 (__arm_vqrshlq_m_n_s16): Likewise.
22544 (__arm_vqnegq_m_s16): Likewise.
22545 (__arm_vqabsq_m_s16): Likewise.
22546 (__arm_vnegq_m_s16): Likewise.
22547 (__arm_vmvnq_m_s16): Likewise.
22548 (__arm_vmlsdavxq_p_s16): Likewise.
22549 (__arm_vmlsdavq_p_s16): Likewise.
22550 (__arm_vmladavxq_p_s16): Likewise.
22551 (__arm_vmladavq_p_s16): Likewise.
22552 (__arm_vminvq_p_s16): Likewise.
22553 (__arm_vmaxvq_p_s16): Likewise.
22554 (__arm_vdupq_m_n_s16): Likewise.
22555 (__arm_vclzq_m_s16): Likewise.
22556 (__arm_vclsq_m_s16): Likewise.
22557 (__arm_vaddvaq_p_s16): Likewise.
22558 (__arm_vabsq_m_s16): Likewise.
22559 (__arm_vqrdmlsdhxq_s16): Likewise.
22560 (__arm_vqrdmlsdhq_s16): Likewise.
22561 (__arm_vqrdmlashq_n_s16): Likewise.
22562 (__arm_vqrdmlahq_n_s16): Likewise.
22563 (__arm_vqrdmladhxq_s16): Likewise.
22564 (__arm_vqrdmladhq_s16): Likewise.
22565 (__arm_vqdmlsdhxq_s16): Likewise.
22566 (__arm_vqdmlsdhq_s16): Likewise.
22567 (__arm_vqdmlahq_n_s16): Likewise.
22568 (__arm_vqdmladhxq_s16): Likewise.
22569 (__arm_vqdmladhq_s16): Likewise.
22570 (__arm_vmlsdavaxq_s16): Likewise.
22571 (__arm_vmlsdavaq_s16): Likewise.
22572 (__arm_vmlasq_n_s16): Likewise.
22573 (__arm_vmlaq_n_s16): Likewise.
22574 (__arm_vmladavaxq_s16): Likewise.
22575 (__arm_vmladavaq_s16): Likewise.
22576 (__arm_vsriq_n_s16): Likewise.
22577 (__arm_vsliq_n_s16): Likewise.
22578 (__arm_vpselq_u32): Likewise.
22579 (__arm_vpselq_s32): Likewise.
22580 (__arm_vrev64q_m_u32): Likewise.
22581 (__arm_vqrdmlashq_n_u32): Likewise.
22582 (__arm_vqrdmlahq_n_u32): Likewise.
22583 (__arm_vqdmlahq_n_u32): Likewise.
22584 (__arm_vmvnq_m_u32): Likewise.
22585 (__arm_vmlasq_n_u32): Likewise.
22586 (__arm_vmlaq_n_u32): Likewise.
22587 (__arm_vmladavq_p_u32): Likewise.
22588 (__arm_vmladavaq_u32): Likewise.
22589 (__arm_vminvq_p_u32): Likewise.
22590 (__arm_vmaxvq_p_u32): Likewise.
22591 (__arm_vdupq_m_n_u32): Likewise.
22592 (__arm_vcmpneq_m_u32): Likewise.
22593 (__arm_vcmpneq_m_n_u32): Likewise.
22594 (__arm_vcmphiq_m_u32): Likewise.
22595 (__arm_vcmphiq_m_n_u32): Likewise.
22596 (__arm_vcmpeqq_m_u32): Likewise.
22597 (__arm_vcmpeqq_m_n_u32): Likewise.
22598 (__arm_vcmpcsq_m_u32): Likewise.
22599 (__arm_vcmpcsq_m_n_u32): Likewise.
22600 (__arm_vclzq_m_u32): Likewise.
22601 (__arm_vaddvaq_p_u32): Likewise.
22602 (__arm_vsriq_n_u32): Likewise.
22603 (__arm_vsliq_n_u32): Likewise.
22604 (__arm_vshlq_m_r_u32): Likewise.
22605 (__arm_vrshlq_m_n_u32): Likewise.
22606 (__arm_vqshlq_m_r_u32): Likewise.
22607 (__arm_vqrshlq_m_n_u32): Likewise.
22608 (__arm_vminavq_p_s32): Likewise.
22609 (__arm_vminaq_m_s32): Likewise.
22610 (__arm_vmaxavq_p_s32): Likewise.
22611 (__arm_vmaxaq_m_s32): Likewise.
22612 (__arm_vcmpneq_m_s32): Likewise.
22613 (__arm_vcmpneq_m_n_s32): Likewise.
22614 (__arm_vcmpltq_m_s32): Likewise.
22615 (__arm_vcmpltq_m_n_s32): Likewise.
22616 (__arm_vcmpleq_m_s32): Likewise.
22617 (__arm_vcmpleq_m_n_s32): Likewise.
22618 (__arm_vcmpgtq_m_s32): Likewise.
22619 (__arm_vcmpgtq_m_n_s32): Likewise.
22620 (__arm_vcmpgeq_m_s32): Likewise.
22621 (__arm_vcmpgeq_m_n_s32): Likewise.
22622 (__arm_vcmpeqq_m_s32): Likewise.
22623 (__arm_vcmpeqq_m_n_s32): Likewise.
22624 (__arm_vshlq_m_r_s32): Likewise.
22625 (__arm_vrshlq_m_n_s32): Likewise.
22626 (__arm_vrev64q_m_s32): Likewise.
22627 (__arm_vqshlq_m_r_s32): Likewise.
22628 (__arm_vqrshlq_m_n_s32): Likewise.
22629 (__arm_vqnegq_m_s32): Likewise.
22630 (__arm_vqabsq_m_s32): Likewise.
22631 (__arm_vnegq_m_s32): Likewise.
22632 (__arm_vmvnq_m_s32): Likewise.
22633 (__arm_vmlsdavxq_p_s32): Likewise.
22634 (__arm_vmlsdavq_p_s32): Likewise.
22635 (__arm_vmladavxq_p_s32): Likewise.
22636 (__arm_vmladavq_p_s32): Likewise.
22637 (__arm_vminvq_p_s32): Likewise.
22638 (__arm_vmaxvq_p_s32): Likewise.
22639 (__arm_vdupq_m_n_s32): Likewise.
22640 (__arm_vclzq_m_s32): Likewise.
22641 (__arm_vclsq_m_s32): Likewise.
22642 (__arm_vaddvaq_p_s32): Likewise.
22643 (__arm_vabsq_m_s32): Likewise.
22644 (__arm_vqrdmlsdhxq_s32): Likewise.
22645 (__arm_vqrdmlsdhq_s32): Likewise.
22646 (__arm_vqrdmlashq_n_s32): Likewise.
22647 (__arm_vqrdmlahq_n_s32): Likewise.
22648 (__arm_vqrdmladhxq_s32): Likewise.
22649 (__arm_vqrdmladhq_s32): Likewise.
22650 (__arm_vqdmlsdhxq_s32): Likewise.
22651 (__arm_vqdmlsdhq_s32): Likewise.
22652 (__arm_vqdmlahq_n_s32): Likewise.
22653 (__arm_vqdmladhxq_s32): Likewise.
22654 (__arm_vqdmladhq_s32): Likewise.
22655 (__arm_vmlsdavaxq_s32): Likewise.
22656 (__arm_vmlsdavaq_s32): Likewise.
22657 (__arm_vmlasq_n_s32): Likewise.
22658 (__arm_vmlaq_n_s32): Likewise.
22659 (__arm_vmladavaxq_s32): Likewise.
22660 (__arm_vmladavaq_s32): Likewise.
22661 (__arm_vsriq_n_s32): Likewise.
22662 (__arm_vsliq_n_s32): Likewise.
22663 (__arm_vpselq_u64): Likewise.
22664 (__arm_vpselq_s64): Likewise.
22665 (vcmpneq_m_n): Define polymorphic variant.
22666 (vcmpneq_m): Likewise.
22667 (vqrdmlsdhq): Likewise.
22668 (vqrdmlsdhxq): Likewise.
22669 (vqrshlq_m_n): Likewise.
22670 (vqshlq_m_r): Likewise.
22671 (vrev64q_m): Likewise.
22672 (vrshlq_m_n): Likewise.
22673 (vshlq_m_r): Likewise.
22674 (vsliq_n): Likewise.
22675 (vsriq_n): Likewise.
22676 (vqrdmlashq_n): Likewise.
22677 (vqrdmlahq): Likewise.
22678 (vqrdmladhxq): Likewise.
22679 (vqrdmladhq): Likewise.
22680 (vqnegq_m): Likewise.
22681 (vqdmlsdhxq): Likewise.
22682 (vabsq_m): Likewise.
22683 (vclsq_m): Likewise.
22684 (vclzq_m): Likewise.
22685 (vcmpgeq_m): Likewise.
22686 (vcmpgeq_m_n): Likewise.
22687 (vdupq_m_n): Likewise.
22688 (vmaxaq_m): Likewise.
22689 (vmlaq_n): Likewise.
22690 (vmlasq_n): Likewise.
22691 (vmvnq_m): Likewise.
22692 (vnegq_m): Likewise.
22693 (vpselq): Likewise.
22694 (vqdmlahq_n): Likewise.
22695 (vqrdmlahq_n): Likewise.
22696 (vqdmlsdhq): Likewise.
22697 (vqdmladhq): Likewise.
22698 (vqabsq_m): Likewise.
22699 (vminaq_m): Likewise.
22700 (vrmlaldavhaq): Likewise.
22701 (vmlsdavxq_p): Likewise.
22702 (vmlsdavq_p): Likewise.
22703 (vmlsdavaxq): Likewise.
22704 (vmlsdavaq): Likewise.
22705 (vaddvaq_p): Likewise.
22706 (vcmpcsq_m_n): Likewise.
22707 (vcmpcsq_m): Likewise.
22708 (vcmpeqq_m_n): Likewise.
22709 (vcmpeqq_m): Likewise.
22710 (vmladavxq_p): Likewise.
22711 (vmladavq_p): Likewise.
22712 (vmladavaxq): Likewise.
22713 (vmladavaq): Likewise.
22714 (vminvq_p): Likewise.
22715 (vminavq_p): Likewise.
22716 (vmaxvq_p): Likewise.
22717 (vmaxavq_p): Likewise.
22718 (vcmpltq_m_n): Likewise.
22719 (vcmpltq_m): Likewise.
22720 (vcmpleq_m): Likewise.
22721 (vcmpleq_m_n): Likewise.
22722 (vcmphiq_m_n): Likewise.
22723 (vcmphiq_m): Likewise.
22724 (vcmpgtq_m_n): Likewise.
22725 (vcmpgtq_m): Likewise.
22726 * config/arm/arm_mve_builtins.def (TERNOP_NONE_NONE_NONE_IMM): Use
22727 builtin qualifier.
22728 (TERNOP_NONE_NONE_NONE_NONE): Likewise.
22729 (TERNOP_NONE_NONE_NONE_UNONE): Likewise.
22730 (TERNOP_UNONE_NONE_NONE_UNONE): Likewise.
22731 (TERNOP_UNONE_UNONE_NONE_UNONE): Likewise.
22732 (TERNOP_UNONE_UNONE_UNONE_IMM): Likewise.
22733 (TERNOP_UNONE_UNONE_UNONE_UNONE): Likewise.
22734 * config/arm/constraints.md (Rc): Define constraint to check constant is
22735 in the range of 0 to 15.
22736 (Re): Define constraint to check constant is in the range of 0 to 31.
22737 * config/arm/mve.md (VADDVAQ_P): Define iterator.
22738 (VCLZQ_M): Likewise.
22739 (VCMPEQQ_M_N): Likewise.
22740 (VCMPEQQ_M): Likewise.
22741 (VCMPNEQ_M_N): Likewise.
22742 (VCMPNEQ_M): Likewise.
22743 (VDUPQ_M_N): Likewise.
22744 (VMAXVQ_P): Likewise.
22745 (VMINVQ_P): Likewise.
22746 (VMLADAVAQ): Likewise.
22747 (VMLADAVQ_P): Likewise.
22748 (VMLAQ_N): Likewise.
22749 (VMLASQ_N): Likewise.
22750 (VMVNQ_M): Likewise.
22751 (VPSELQ): Likewise.
22752 (VQDMLAHQ_N): Likewise.
22753 (VQRDMLAHQ_N): Likewise.
22754 (VQRDMLASHQ_N): Likewise.
22755 (VQRSHLQ_M_N): Likewise.
22756 (VQSHLQ_M_R): Likewise.
22757 (VREV64Q_M): Likewise.
22758 (VRSHLQ_M_N): Likewise.
22759 (VSHLQ_M_R): Likewise.
22760 (VSLIQ_N): Likewise.
22761 (VSRIQ_N): Likewise.
22762 (mve_vabsq_m_s<mode>): Define RTL pattern.
22763 (mve_vaddvaq_p_<supf><mode>): Likewise.
22764 (mve_vclsq_m_s<mode>): Likewise.
22765 (mve_vclzq_m_<supf><mode>): Likewise.
22766 (mve_vcmpcsq_m_n_u<mode>): Likewise.
22767 (mve_vcmpcsq_m_u<mode>): Likewise.
22768 (mve_vcmpeqq_m_n_<supf><mode>): Likewise.
22769 (mve_vcmpeqq_m_<supf><mode>): Likewise.
22770 (mve_vcmpgeq_m_n_s<mode>): Likewise.
22771 (mve_vcmpgeq_m_s<mode>): Likewise.
22772 (mve_vcmpgtq_m_n_s<mode>): Likewise.
22773 (mve_vcmpgtq_m_s<mode>): Likewise.
22774 (mve_vcmphiq_m_n_u<mode>): Likewise.
22775 (mve_vcmphiq_m_u<mode>): Likewise.
22776 (mve_vcmpleq_m_n_s<mode>): Likewise.
22777 (mve_vcmpleq_m_s<mode>): Likewise.
22778 (mve_vcmpltq_m_n_s<mode>): Likewise.
22779 (mve_vcmpltq_m_s<mode>): Likewise.
22780 (mve_vcmpneq_m_n_<supf><mode>): Likewise.
22781 (mve_vcmpneq_m_<supf><mode>): Likewise.
22782 (mve_vdupq_m_n_<supf><mode>): Likewise.
22783 (mve_vmaxaq_m_s<mode>): Likewise.
22784 (mve_vmaxavq_p_s<mode>): Likewise.
22785 (mve_vmaxvq_p_<supf><mode>): Likewise.
22786 (mve_vminaq_m_s<mode>): Likewise.
22787 (mve_vminavq_p_s<mode>): Likewise.
22788 (mve_vminvq_p_<supf><mode>): Likewise.
22789 (mve_vmladavaq_<supf><mode>): Likewise.
22790 (mve_vmladavq_p_<supf><mode>): Likewise.
22791 (mve_vmladavxq_p_s<mode>): Likewise.
22792 (mve_vmlaq_n_<supf><mode>): Likewise.
22793 (mve_vmlasq_n_<supf><mode>): Likewise.
22794 (mve_vmlsdavq_p_s<mode>): Likewise.
22795 (mve_vmlsdavxq_p_s<mode>): Likewise.
22796 (mve_vmvnq_m_<supf><mode>): Likewise.
22797 (mve_vnegq_m_s<mode>): Likewise.
22798 (mve_vpselq_<supf><mode>): Likewise.
22799 (mve_vqabsq_m_s<mode>): Likewise.
22800 (mve_vqdmlahq_n_<supf><mode>): Likewise.
22801 (mve_vqnegq_m_s<mode>): Likewise.
22802 (mve_vqrdmladhq_s<mode>): Likewise.
22803 (mve_vqrdmladhxq_s<mode>): Likewise.
22804 (mve_vqrdmlahq_n_<supf><mode>): Likewise.
22805 (mve_vqrdmlashq_n_<supf><mode>): Likewise.
22806 (mve_vqrdmlsdhq_s<mode>): Likewise.
22807 (mve_vqrdmlsdhxq_s<mode>): Likewise.
22808 (mve_vqrshlq_m_n_<supf><mode>): Likewise.
22809 (mve_vqshlq_m_r_<supf><mode>): Likewise.
22810 (mve_vrev64q_m_<supf><mode>): Likewise.
22811 (mve_vrshlq_m_n_<supf><mode>): Likewise.
22812 (mve_vshlq_m_r_<supf><mode>): Likewise.
22813 (mve_vsliq_n_<supf><mode>): Likewise.
22814 (mve_vsriq_n_<supf><mode>): Likewise.
22815 (mve_vqdmlsdhxq_s<mode>): Likewise.
22816 (mve_vqdmlsdhq_s<mode>): Likewise.
22817 (mve_vqdmladhxq_s<mode>): Likewise.
22818 (mve_vqdmladhq_s<mode>): Likewise.
22819 (mve_vmlsdavaxq_s<mode>): Likewise.
22820 (mve_vmlsdavaq_s<mode>): Likewise.
22821 (mve_vmladavaxq_s<mode>): Likewise.
22822 * config/arm/predicates.md (mve_imm_15):Define predicate to check the
22823 matching constraint Rc.
22824 (mve_imm_31): Define predicate to check the matching constraint Re.
22825
22826 2020-03-18 Andrew Stubbs <ams@codesourcery.com>
22827
22828 * config/gcn/gcn-valu.md (vec_cmp<mode>di): Set operand 1 to DImode.
22829 (vec_cmp<mode>di_dup): Likewise.
22830 * config/gcn/gcn.h (STORE_FLAG_VALUE): Set to -1.
22831
22832 2020-03-18 Andrew Stubbs <ams@codesourcery.com>
22833
22834 * config/gcn/gcn-valu.md (COND_MODE): Delete.
22835 (COND_INT_MODE): Delete.
22836 (cond_op): Add "mult".
22837 (cond_<expander><mode>): Use VEC_ALLREG_MODE.
22838 (cond_<expander><mode>): Use VEC_ALLREG_INT_MODE.
22839
22840 2020-03-18 Richard Biener <rguenther@suse.de>
22841
22842 PR middle-end/94206
22843 * gimple-fold.c (gimple_fold_builtin_memset): Avoid using
22844 partial int modes or not mode-precision integer types for
22845 the store.
22846
22847 2020-03-18 Jakub Jelinek <jakub@redhat.com>
22848
22849 * asan.c (get_mem_refs_of_builtin_call): Fix up duplicated word issue
22850 in a comment.
22851 * config/arc/arc.c (frame_stack_add): Likewise.
22852 * gimple-loop-versioning.cc (loop_versioning::analyze_arbitrary_term):
22853 Likewise.
22854 * ipa-predicate.c (predicate::remap_after_inlining): Likewise.
22855 * tree-ssa-strlen.h (handle_printf_call): Likewise.
22856 * tree-ssa-strlen.c (is_strlen_related_p): Likewise.
22857 * optinfo-emit-json.cc (optrecord_json_writer::add_record): Likewise.
22858
22859 2020-03-18 Duan bo <duanbo3@huawei.com>
22860
22861 PR target/94201
22862 * config/aarch64/aarch64.md (ldr_got_tiny): Delete.
22863 (@ldr_got_tiny_<mode>): New pattern.
22864 (ldr_got_tiny_sidi): Likewise.
22865 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Use
22866 them to handle SYMBOL_TINY_GOT for ILP32.
22867
22868 2020-03-18 Richard Sandiford <richard.sandiford@arm.com>
22869
22870 * config/aarch64/aarch64.c (aarch64_sve_abi): Treat p12-p15 as
22871 call-preserved for SVE PCS functions.
22872 (aarch64_layout_frame): Cope with up to 12 predicate save slots.
22873 Optimize the case in which there are no following vector save slots.
22874
22875 2020-03-18 Richard Biener <rguenther@suse.de>
22876
22877 PR middle-end/94188
22878 * fold-const.c (build_fold_addr_expr): Convert address to
22879 correct type.
22880 * asan.c (maybe_create_ssa_name): Strip useless type conversions.
22881 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Use build1
22882 to build the ADDR_EXPR which we don't really want to simplify.
22883 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
22884 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Likewise.
22885 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
22886 (simplify_builtin_call): Strip useless type conversions.
22887 * tree-ssa-strlen.c (new_strinfo): Likewise.
22888
22889 2020-03-17 Alexey Neyman <stilor@att.net>
22890
22891 PR debug/93751
22892 * dwarf2out.c (gen_decl_die): Proceed to generating the DIE if
22893 the debug level is terse and the declaration is public. Do not
22894 generate type info.
22895 (dwarf2out_decl): Same.
22896 (add_type_attribute): Return immediately if debug level is
22897 terse.
22898
22899 2020-03-17 Richard Sandiford <richard.sandiford@arm.com>
22900
22901 * config/aarch64/iterators.md (Vmtype): Handle V4BF and V8BF.
22902
22903 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
22904 Mihail Ionescu <mihail.ionescu@arm.com>
22905 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
22906
22907 * config/arm/arm-builtins.c (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS):
22908 Define qualifier for ternary operands.
22909 (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
22910 (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
22911 (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
22912 (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
22913 (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
22914 (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
22915 (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
22916 (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
22917 (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
22918 (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
22919 (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
22920 (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
22921 (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
22922 * config/arm/arm_mve.h (vabavq_s8): Define macro.
22923 (vabavq_s16): Likewise.
22924 (vabavq_s32): Likewise.
22925 (vbicq_m_n_s16): Likewise.
22926 (vbicq_m_n_s32): Likewise.
22927 (vbicq_m_n_u16): Likewise.
22928 (vbicq_m_n_u32): Likewise.
22929 (vcmpeqq_m_f16): Likewise.
22930 (vcmpeqq_m_f32): Likewise.
22931 (vcvtaq_m_s16_f16): Likewise.
22932 (vcvtaq_m_u16_f16): Likewise.
22933 (vcvtaq_m_s32_f32): Likewise.
22934 (vcvtaq_m_u32_f32): Likewise.
22935 (vcvtq_m_f16_s16): Likewise.
22936 (vcvtq_m_f16_u16): Likewise.
22937 (vcvtq_m_f32_s32): Likewise.
22938 (vcvtq_m_f32_u32): Likewise.
22939 (vqrshrnbq_n_s16): Likewise.
22940 (vqrshrnbq_n_u16): Likewise.
22941 (vqrshrnbq_n_s32): Likewise.
22942 (vqrshrnbq_n_u32): Likewise.
22943 (vqrshrunbq_n_s16): Likewise.
22944 (vqrshrunbq_n_s32): Likewise.
22945 (vrmlaldavhaq_s32): Likewise.
22946 (vrmlaldavhaq_u32): Likewise.
22947 (vshlcq_s8): Likewise.
22948 (vshlcq_u8): Likewise.
22949 (vshlcq_s16): Likewise.
22950 (vshlcq_u16): Likewise.
22951 (vshlcq_s32): Likewise.
22952 (vshlcq_u32): Likewise.
22953 (vabavq_u8): Likewise.
22954 (vabavq_u16): Likewise.
22955 (vabavq_u32): Likewise.
22956 (__arm_vabavq_s8): Define intrinsic.
22957 (__arm_vabavq_s16): Likewise.
22958 (__arm_vabavq_s32): Likewise.
22959 (__arm_vabavq_u8): Likewise.
22960 (__arm_vabavq_u16): Likewise.
22961 (__arm_vabavq_u32): Likewise.
22962 (__arm_vbicq_m_n_s16): Likewise.
22963 (__arm_vbicq_m_n_s32): Likewise.
22964 (__arm_vbicq_m_n_u16): Likewise.
22965 (__arm_vbicq_m_n_u32): Likewise.
22966 (__arm_vqrshrnbq_n_s16): Likewise.
22967 (__arm_vqrshrnbq_n_u16): Likewise.
22968 (__arm_vqrshrnbq_n_s32): Likewise.
22969 (__arm_vqrshrnbq_n_u32): Likewise.
22970 (__arm_vqrshrunbq_n_s16): Likewise.
22971 (__arm_vqrshrunbq_n_s32): Likewise.
22972 (__arm_vrmlaldavhaq_s32): Likewise.
22973 (__arm_vrmlaldavhaq_u32): Likewise.
22974 (__arm_vshlcq_s8): Likewise.
22975 (__arm_vshlcq_u8): Likewise.
22976 (__arm_vshlcq_s16): Likewise.
22977 (__arm_vshlcq_u16): Likewise.
22978 (__arm_vshlcq_s32): Likewise.
22979 (__arm_vshlcq_u32): Likewise.
22980 (__arm_vcmpeqq_m_f16): Likewise.
22981 (__arm_vcmpeqq_m_f32): Likewise.
22982 (__arm_vcvtaq_m_s16_f16): Likewise.
22983 (__arm_vcvtaq_m_u16_f16): Likewise.
22984 (__arm_vcvtaq_m_s32_f32): Likewise.
22985 (__arm_vcvtaq_m_u32_f32): Likewise.
22986 (__arm_vcvtq_m_f16_s16): Likewise.
22987 (__arm_vcvtq_m_f16_u16): Likewise.
22988 (__arm_vcvtq_m_f32_s32): Likewise.
22989 (__arm_vcvtq_m_f32_u32): Likewise.
22990 (vcvtaq_m): Define polymorphic variant.
22991 (vcvtq_m): Likewise.
22992 (vabavq): Likewise.
22993 (vshlcq): Likewise.
22994 (vbicq_m_n): Likewise.
22995 (vqrshrnbq_n): Likewise.
22996 (vqrshrunbq_n): Likewise.
22997 * config/arm/arm_mve_builtins.def
22998 (TERNOP_UNONE_UNONE_UNONE_IMM_QUALIFIERS): Use the builtin qualifer.
22999 (TERNOP_UNONE_UNONE_NONE_NONE_QUALIFIERS): Likewise.
23000 (TERNOP_UNONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
23001 (TERNOP_NONE_NONE_UNONE_IMM_QUALIFIERS): Likewise.
23002 (TERNOP_UNONE_UNONE_NONE_IMM_QUALIFIERS): Likewise.
23003 (TERNOP_UNONE_UNONE_NONE_UNONE_QUALIFIERS): Likewise.
23004 (TERNOP_UNONE_UNONE_IMM_UNONE_QUALIFIERS): Likewise.
23005 (TERNOP_UNONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
23006 (TERNOP_NONE_NONE_NONE_IMM_QUALIFIERS): Likewise.
23007 (TERNOP_NONE_NONE_NONE_UNONE_QUALIFIERS): Likewise.
23008 (TERNOP_NONE_NONE_IMM_UNONE_QUALIFIERS): Likewise.
23009 (TERNOP_NONE_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
23010 (TERNOP_UNONE_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
23011 (TERNOP_NONE_NONE_NONE_NONE_QUALIFIERS): Likewise.
23012 * config/arm/mve.md (VBICQ_M_N): Define iterator.
23013 (VCVTAQ_M): Likewise.
23014 (VCVTQ_M_TO_F): Likewise.
23015 (VQRSHRNBQ_N): Likewise.
23016 (VABAVQ): Likewise.
23017 (VSHLCQ): Likewise.
23018 (VRMLALDAVHAQ): Likewise.
23019 (mve_vbicq_m_n_<supf><mode>): Define RTL pattern.
23020 (mve_vcmpeqq_m_f<mode>): Likewise.
23021 (mve_vcvtaq_m_<supf><mode>): Likewise.
23022 (mve_vcvtq_m_to_f_<supf><mode>): Likewise.
23023 (mve_vqrshrnbq_n_<supf><mode>): Likewise.
23024 (mve_vqrshrunbq_n_s<mode>): Likewise.
23025 (mve_vrmlaldavhaq_<supf>v4si): Likewise.
23026 (mve_vabavq_<supf><mode>): Likewise.
23027 (mve_vshlcq_<supf><mode>): Likewise.
23028 (mve_vshlcq_<supf><mode>): Likewise.
23029 (mve_vshlcq_vec_<supf><mode>): Define RTL expand.
23030 (mve_vshlcq_carry_<supf><mode>): Likewise.
23031
23032 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
23033 Mihail Ionescu <mihail.ionescu@arm.com>
23034 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23035
23036 * config/arm/arm_mve.h (vqmovntq_u16): Define macro.
23037 (vqmovnbq_u16): Likewise.
23038 (vmulltq_poly_p8): Likewise.
23039 (vmullbq_poly_p8): Likewise.
23040 (vmovntq_u16): Likewise.
23041 (vmovnbq_u16): Likewise.
23042 (vmlaldavxq_u16): Likewise.
23043 (vmlaldavq_u16): Likewise.
23044 (vqmovuntq_s16): Likewise.
23045 (vqmovunbq_s16): Likewise.
23046 (vshlltq_n_u8): Likewise.
23047 (vshllbq_n_u8): Likewise.
23048 (vorrq_n_u16): Likewise.
23049 (vbicq_n_u16): Likewise.
23050 (vcmpneq_n_f16): Likewise.
23051 (vcmpneq_f16): Likewise.
23052 (vcmpltq_n_f16): Likewise.
23053 (vcmpltq_f16): Likewise.
23054 (vcmpleq_n_f16): Likewise.
23055 (vcmpleq_f16): Likewise.
23056 (vcmpgtq_n_f16): Likewise.
23057 (vcmpgtq_f16): Likewise.
23058 (vcmpgeq_n_f16): Likewise.
23059 (vcmpgeq_f16): Likewise.
23060 (vcmpeqq_n_f16): Likewise.
23061 (vcmpeqq_f16): Likewise.
23062 (vsubq_f16): Likewise.
23063 (vqmovntq_s16): Likewise.
23064 (vqmovnbq_s16): Likewise.
23065 (vqdmulltq_s16): Likewise.
23066 (vqdmulltq_n_s16): Likewise.
23067 (vqdmullbq_s16): Likewise.
23068 (vqdmullbq_n_s16): Likewise.
23069 (vorrq_f16): Likewise.
23070 (vornq_f16): Likewise.
23071 (vmulq_n_f16): Likewise.
23072 (vmulq_f16): Likewise.
23073 (vmovntq_s16): Likewise.
23074 (vmovnbq_s16): Likewise.
23075 (vmlsldavxq_s16): Likewise.
23076 (vmlsldavq_s16): Likewise.
23077 (vmlaldavxq_s16): Likewise.
23078 (vmlaldavq_s16): Likewise.
23079 (vminnmvq_f16): Likewise.
23080 (vminnmq_f16): Likewise.
23081 (vminnmavq_f16): Likewise.
23082 (vminnmaq_f16): Likewise.
23083 (vmaxnmvq_f16): Likewise.
23084 (vmaxnmq_f16): Likewise.
23085 (vmaxnmavq_f16): Likewise.
23086 (vmaxnmaq_f16): Likewise.
23087 (veorq_f16): Likewise.
23088 (vcmulq_rot90_f16): Likewise.
23089 (vcmulq_rot270_f16): Likewise.
23090 (vcmulq_rot180_f16): Likewise.
23091 (vcmulq_f16): Likewise.
23092 (vcaddq_rot90_f16): Likewise.
23093 (vcaddq_rot270_f16): Likewise.
23094 (vbicq_f16): Likewise.
23095 (vandq_f16): Likewise.
23096 (vaddq_n_f16): Likewise.
23097 (vabdq_f16): Likewise.
23098 (vshlltq_n_s8): Likewise.
23099 (vshllbq_n_s8): Likewise.
23100 (vorrq_n_s16): Likewise.
23101 (vbicq_n_s16): Likewise.
23102 (vqmovntq_u32): Likewise.
23103 (vqmovnbq_u32): Likewise.
23104 (vmulltq_poly_p16): Likewise.
23105 (vmullbq_poly_p16): Likewise.
23106 (vmovntq_u32): Likewise.
23107 (vmovnbq_u32): Likewise.
23108 (vmlaldavxq_u32): Likewise.
23109 (vmlaldavq_u32): Likewise.
23110 (vqmovuntq_s32): Likewise.
23111 (vqmovunbq_s32): Likewise.
23112 (vshlltq_n_u16): Likewise.
23113 (vshllbq_n_u16): Likewise.
23114 (vorrq_n_u32): Likewise.
23115 (vbicq_n_u32): Likewise.
23116 (vcmpneq_n_f32): Likewise.
23117 (vcmpneq_f32): Likewise.
23118 (vcmpltq_n_f32): Likewise.
23119 (vcmpltq_f32): Likewise.
23120 (vcmpleq_n_f32): Likewise.
23121 (vcmpleq_f32): Likewise.
23122 (vcmpgtq_n_f32): Likewise.
23123 (vcmpgtq_f32): Likewise.
23124 (vcmpgeq_n_f32): Likewise.
23125 (vcmpgeq_f32): Likewise.
23126 (vcmpeqq_n_f32): Likewise.
23127 (vcmpeqq_f32): Likewise.
23128 (vsubq_f32): Likewise.
23129 (vqmovntq_s32): Likewise.
23130 (vqmovnbq_s32): Likewise.
23131 (vqdmulltq_s32): Likewise.
23132 (vqdmulltq_n_s32): Likewise.
23133 (vqdmullbq_s32): Likewise.
23134 (vqdmullbq_n_s32): Likewise.
23135 (vorrq_f32): Likewise.
23136 (vornq_f32): Likewise.
23137 (vmulq_n_f32): Likewise.
23138 (vmulq_f32): Likewise.
23139 (vmovntq_s32): Likewise.
23140 (vmovnbq_s32): Likewise.
23141 (vmlsldavxq_s32): Likewise.
23142 (vmlsldavq_s32): Likewise.
23143 (vmlaldavxq_s32): Likewise.
23144 (vmlaldavq_s32): Likewise.
23145 (vminnmvq_f32): Likewise.
23146 (vminnmq_f32): Likewise.
23147 (vminnmavq_f32): Likewise.
23148 (vminnmaq_f32): Likewise.
23149 (vmaxnmvq_f32): Likewise.
23150 (vmaxnmq_f32): Likewise.
23151 (vmaxnmavq_f32): Likewise.
23152 (vmaxnmaq_f32): Likewise.
23153 (veorq_f32): Likewise.
23154 (vcmulq_rot90_f32): Likewise.
23155 (vcmulq_rot270_f32): Likewise.
23156 (vcmulq_rot180_f32): Likewise.
23157 (vcmulq_f32): Likewise.
23158 (vcaddq_rot90_f32): Likewise.
23159 (vcaddq_rot270_f32): Likewise.
23160 (vbicq_f32): Likewise.
23161 (vandq_f32): Likewise.
23162 (vaddq_n_f32): Likewise.
23163 (vabdq_f32): Likewise.
23164 (vshlltq_n_s16): Likewise.
23165 (vshllbq_n_s16): Likewise.
23166 (vorrq_n_s32): Likewise.
23167 (vbicq_n_s32): Likewise.
23168 (vrmlaldavhq_u32): Likewise.
23169 (vctp8q_m): Likewise.
23170 (vctp64q_m): Likewise.
23171 (vctp32q_m): Likewise.
23172 (vctp16q_m): Likewise.
23173 (vaddlvaq_u32): Likewise.
23174 (vrmlsldavhxq_s32): Likewise.
23175 (vrmlsldavhq_s32): Likewise.
23176 (vrmlaldavhxq_s32): Likewise.
23177 (vrmlaldavhq_s32): Likewise.
23178 (vcvttq_f16_f32): Likewise.
23179 (vcvtbq_f16_f32): Likewise.
23180 (vaddlvaq_s32): Likewise.
23181 (__arm_vqmovntq_u16): Define intrinsic.
23182 (__arm_vqmovnbq_u16): Likewise.
23183 (__arm_vmulltq_poly_p8): Likewise.
23184 (__arm_vmullbq_poly_p8): Likewise.
23185 (__arm_vmovntq_u16): Likewise.
23186 (__arm_vmovnbq_u16): Likewise.
23187 (__arm_vmlaldavxq_u16): Likewise.
23188 (__arm_vmlaldavq_u16): Likewise.
23189 (__arm_vqmovuntq_s16): Likewise.
23190 (__arm_vqmovunbq_s16): Likewise.
23191 (__arm_vshlltq_n_u8): Likewise.
23192 (__arm_vshllbq_n_u8): Likewise.
23193 (__arm_vorrq_n_u16): Likewise.
23194 (__arm_vbicq_n_u16): Likewise.
23195 (__arm_vcmpneq_n_f16): Likewise.
23196 (__arm_vcmpneq_f16): Likewise.
23197 (__arm_vcmpltq_n_f16): Likewise.
23198 (__arm_vcmpltq_f16): Likewise.
23199 (__arm_vcmpleq_n_f16): Likewise.
23200 (__arm_vcmpleq_f16): Likewise.
23201 (__arm_vcmpgtq_n_f16): Likewise.
23202 (__arm_vcmpgtq_f16): Likewise.
23203 (__arm_vcmpgeq_n_f16): Likewise.
23204 (__arm_vcmpgeq_f16): Likewise.
23205 (__arm_vcmpeqq_n_f16): Likewise.
23206 (__arm_vcmpeqq_f16): Likewise.
23207 (__arm_vsubq_f16): Likewise.
23208 (__arm_vqmovntq_s16): Likewise.
23209 (__arm_vqmovnbq_s16): Likewise.
23210 (__arm_vqdmulltq_s16): Likewise.
23211 (__arm_vqdmulltq_n_s16): Likewise.
23212 (__arm_vqdmullbq_s16): Likewise.
23213 (__arm_vqdmullbq_n_s16): Likewise.
23214 (__arm_vorrq_f16): Likewise.
23215 (__arm_vornq_f16): Likewise.
23216 (__arm_vmulq_n_f16): Likewise.
23217 (__arm_vmulq_f16): Likewise.
23218 (__arm_vmovntq_s16): Likewise.
23219 (__arm_vmovnbq_s16): Likewise.
23220 (__arm_vmlsldavxq_s16): Likewise.
23221 (__arm_vmlsldavq_s16): Likewise.
23222 (__arm_vmlaldavxq_s16): Likewise.
23223 (__arm_vmlaldavq_s16): Likewise.
23224 (__arm_vminnmvq_f16): Likewise.
23225 (__arm_vminnmq_f16): Likewise.
23226 (__arm_vminnmavq_f16): Likewise.
23227 (__arm_vminnmaq_f16): Likewise.
23228 (__arm_vmaxnmvq_f16): Likewise.
23229 (__arm_vmaxnmq_f16): Likewise.
23230 (__arm_vmaxnmavq_f16): Likewise.
23231 (__arm_vmaxnmaq_f16): Likewise.
23232 (__arm_veorq_f16): Likewise.
23233 (__arm_vcmulq_rot90_f16): Likewise.
23234 (__arm_vcmulq_rot270_f16): Likewise.
23235 (__arm_vcmulq_rot180_f16): Likewise.
23236 (__arm_vcmulq_f16): Likewise.
23237 (__arm_vcaddq_rot90_f16): Likewise.
23238 (__arm_vcaddq_rot270_f16): Likewise.
23239 (__arm_vbicq_f16): Likewise.
23240 (__arm_vandq_f16): Likewise.
23241 (__arm_vaddq_n_f16): Likewise.
23242 (__arm_vabdq_f16): Likewise.
23243 (__arm_vshlltq_n_s8): Likewise.
23244 (__arm_vshllbq_n_s8): Likewise.
23245 (__arm_vorrq_n_s16): Likewise.
23246 (__arm_vbicq_n_s16): Likewise.
23247 (__arm_vqmovntq_u32): Likewise.
23248 (__arm_vqmovnbq_u32): Likewise.
23249 (__arm_vmulltq_poly_p16): Likewise.
23250 (__arm_vmullbq_poly_p16): Likewise.
23251 (__arm_vmovntq_u32): Likewise.
23252 (__arm_vmovnbq_u32): Likewise.
23253 (__arm_vmlaldavxq_u32): Likewise.
23254 (__arm_vmlaldavq_u32): Likewise.
23255 (__arm_vqmovuntq_s32): Likewise.
23256 (__arm_vqmovunbq_s32): Likewise.
23257 (__arm_vshlltq_n_u16): Likewise.
23258 (__arm_vshllbq_n_u16): Likewise.
23259 (__arm_vorrq_n_u32): Likewise.
23260 (__arm_vbicq_n_u32): Likewise.
23261 (__arm_vcmpneq_n_f32): Likewise.
23262 (__arm_vcmpneq_f32): Likewise.
23263 (__arm_vcmpltq_n_f32): Likewise.
23264 (__arm_vcmpltq_f32): Likewise.
23265 (__arm_vcmpleq_n_f32): Likewise.
23266 (__arm_vcmpleq_f32): Likewise.
23267 (__arm_vcmpgtq_n_f32): Likewise.
23268 (__arm_vcmpgtq_f32): Likewise.
23269 (__arm_vcmpgeq_n_f32): Likewise.
23270 (__arm_vcmpgeq_f32): Likewise.
23271 (__arm_vcmpeqq_n_f32): Likewise.
23272 (__arm_vcmpeqq_f32): Likewise.
23273 (__arm_vsubq_f32): Likewise.
23274 (__arm_vqmovntq_s32): Likewise.
23275 (__arm_vqmovnbq_s32): Likewise.
23276 (__arm_vqdmulltq_s32): Likewise.
23277 (__arm_vqdmulltq_n_s32): Likewise.
23278 (__arm_vqdmullbq_s32): Likewise.
23279 (__arm_vqdmullbq_n_s32): Likewise.
23280 (__arm_vorrq_f32): Likewise.
23281 (__arm_vornq_f32): Likewise.
23282 (__arm_vmulq_n_f32): Likewise.
23283 (__arm_vmulq_f32): Likewise.
23284 (__arm_vmovntq_s32): Likewise.
23285 (__arm_vmovnbq_s32): Likewise.
23286 (__arm_vmlsldavxq_s32): Likewise.
23287 (__arm_vmlsldavq_s32): Likewise.
23288 (__arm_vmlaldavxq_s32): Likewise.
23289 (__arm_vmlaldavq_s32): Likewise.
23290 (__arm_vminnmvq_f32): Likewise.
23291 (__arm_vminnmq_f32): Likewise.
23292 (__arm_vminnmavq_f32): Likewise.
23293 (__arm_vminnmaq_f32): Likewise.
23294 (__arm_vmaxnmvq_f32): Likewise.
23295 (__arm_vmaxnmq_f32): Likewise.
23296 (__arm_vmaxnmavq_f32): Likewise.
23297 (__arm_vmaxnmaq_f32): Likewise.
23298 (__arm_veorq_f32): Likewise.
23299 (__arm_vcmulq_rot90_f32): Likewise.
23300 (__arm_vcmulq_rot270_f32): Likewise.
23301 (__arm_vcmulq_rot180_f32): Likewise.
23302 (__arm_vcmulq_f32): Likewise.
23303 (__arm_vcaddq_rot90_f32): Likewise.
23304 (__arm_vcaddq_rot270_f32): Likewise.
23305 (__arm_vbicq_f32): Likewise.
23306 (__arm_vandq_f32): Likewise.
23307 (__arm_vaddq_n_f32): Likewise.
23308 (__arm_vabdq_f32): Likewise.
23309 (__arm_vshlltq_n_s16): Likewise.
23310 (__arm_vshllbq_n_s16): Likewise.
23311 (__arm_vorrq_n_s32): Likewise.
23312 (__arm_vbicq_n_s32): Likewise.
23313 (__arm_vrmlaldavhq_u32): Likewise.
23314 (__arm_vctp8q_m): Likewise.
23315 (__arm_vctp64q_m): Likewise.
23316 (__arm_vctp32q_m): Likewise.
23317 (__arm_vctp16q_m): Likewise.
23318 (__arm_vaddlvaq_u32): Likewise.
23319 (__arm_vrmlsldavhxq_s32): Likewise.
23320 (__arm_vrmlsldavhq_s32): Likewise.
23321 (__arm_vrmlaldavhxq_s32): Likewise.
23322 (__arm_vrmlaldavhq_s32): Likewise.
23323 (__arm_vcvttq_f16_f32): Likewise.
23324 (__arm_vcvtbq_f16_f32): Likewise.
23325 (__arm_vaddlvaq_s32): Likewise.
23326 (vst4q): Define polymorphic variant.
23327 (vrndxq): Likewise.
23328 (vrndq): Likewise.
23329 (vrndpq): Likewise.
23330 (vrndnq): Likewise.
23331 (vrndmq): Likewise.
23332 (vrndaq): Likewise.
23333 (vrev64q): Likewise.
23334 (vnegq): Likewise.
23335 (vdupq_n): Likewise.
23336 (vabsq): Likewise.
23337 (vrev32q): Likewise.
23338 (vcvtbq_f32): Likewise.
23339 (vcvttq_f32): Likewise.
23340 (vcvtq): Likewise.
23341 (vsubq_n): Likewise.
23342 (vbrsrq_n): Likewise.
23343 (vcvtq_n): Likewise.
23344 (vsubq): Likewise.
23345 (vorrq): Likewise.
23346 (vabdq): Likewise.
23347 (vaddq_n): Likewise.
23348 (vandq): Likewise.
23349 (vbicq): Likewise.
23350 (vornq): Likewise.
23351 (vmulq_n): Likewise.
23352 (vmulq): Likewise.
23353 (vcaddq_rot270): Likewise.
23354 (vcmpeqq_n): Likewise.
23355 (vcmpeqq): Likewise.
23356 (vcaddq_rot90): Likewise.
23357 (vcmpgeq_n): Likewise.
23358 (vcmpgeq): Likewise.
23359 (vcmpgtq_n): Likewise.
23360 (vcmpgtq): Likewise.
23361 (vcmpgtq): Likewise.
23362 (vcmpleq_n): Likewise.
23363 (vcmpleq_n): Likewise.
23364 (vcmpleq): Likewise.
23365 (vcmpleq): Likewise.
23366 (vcmpltq_n): Likewise.
23367 (vcmpltq_n): Likewise.
23368 (vcmpltq): Likewise.
23369 (vcmpltq): Likewise.
23370 (vcmpneq_n): Likewise.
23371 (vcmpneq_n): Likewise.
23372 (vcmpneq): Likewise.
23373 (vcmpneq): Likewise.
23374 (vcmulq): Likewise.
23375 (vcmulq): Likewise.
23376 (vcmulq_rot180): Likewise.
23377 (vcmulq_rot180): Likewise.
23378 (vcmulq_rot270): Likewise.
23379 (vcmulq_rot270): Likewise.
23380 (vcmulq_rot90): Likewise.
23381 (vcmulq_rot90): Likewise.
23382 (veorq): Likewise.
23383 (veorq): Likewise.
23384 (vmaxnmaq): Likewise.
23385 (vmaxnmaq): Likewise.
23386 (vmaxnmavq): Likewise.
23387 (vmaxnmavq): Likewise.
23388 (vmaxnmq): Likewise.
23389 (vmaxnmq): Likewise.
23390 (vmaxnmvq): Likewise.
23391 (vmaxnmvq): Likewise.
23392 (vminnmaq): Likewise.
23393 (vminnmaq): Likewise.
23394 (vminnmavq): Likewise.
23395 (vminnmavq): Likewise.
23396 (vminnmq): Likewise.
23397 (vminnmq): Likewise.
23398 (vminnmvq): Likewise.
23399 (vminnmvq): Likewise.
23400 (vbicq_n): Likewise.
23401 (vqmovntq): Likewise.
23402 (vqmovntq): Likewise.
23403 (vqmovnbq): Likewise.
23404 (vqmovnbq): Likewise.
23405 (vmulltq_poly): Likewise.
23406 (vmulltq_poly): Likewise.
23407 (vmullbq_poly): Likewise.
23408 (vmullbq_poly): Likewise.
23409 (vmovntq): Likewise.
23410 (vmovntq): Likewise.
23411 (vmovnbq): Likewise.
23412 (vmovnbq): Likewise.
23413 (vmlaldavxq): Likewise.
23414 (vmlaldavxq): Likewise.
23415 (vqmovuntq): Likewise.
23416 (vqmovuntq): Likewise.
23417 (vshlltq_n): Likewise.
23418 (vshlltq_n): Likewise.
23419 (vshllbq_n): Likewise.
23420 (vshllbq_n): Likewise.
23421 (vorrq_n): Likewise.
23422 (vorrq_n): Likewise.
23423 (vmlaldavq): Likewise.
23424 (vmlaldavq): Likewise.
23425 (vqmovunbq): Likewise.
23426 (vqmovunbq): Likewise.
23427 (vqdmulltq_n): Likewise.
23428 (vqdmulltq_n): Likewise.
23429 (vqdmulltq): Likewise.
23430 (vqdmulltq): Likewise.
23431 (vqdmullbq_n): Likewise.
23432 (vqdmullbq_n): Likewise.
23433 (vqdmullbq): Likewise.
23434 (vqdmullbq): Likewise.
23435 (vaddlvaq): Likewise.
23436 (vaddlvaq): Likewise.
23437 (vrmlaldavhq): Likewise.
23438 (vrmlaldavhq): Likewise.
23439 (vrmlaldavhxq): Likewise.
23440 (vrmlaldavhxq): Likewise.
23441 (vrmlsldavhq): Likewise.
23442 (vrmlsldavhq): Likewise.
23443 (vrmlsldavhxq): Likewise.
23444 (vrmlsldavhxq): Likewise.
23445 (vmlsldavxq): Likewise.
23446 (vmlsldavxq): Likewise.
23447 (vmlsldavq): Likewise.
23448 (vmlsldavq): Likewise.
23449 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
23450 (BINOP_NONE_NONE_NONE): Likewise.
23451 (BINOP_UNONE_NONE_NONE): Likewise.
23452 (BINOP_UNONE_UNONE_IMM): Likewise.
23453 (BINOP_UNONE_UNONE_NONE): Likewise.
23454 (BINOP_UNONE_UNONE_UNONE): Likewise.
23455 * config/arm/mve.md (mve_vabdq_f<mode>): Define RTL pattern.
23456 (mve_vaddlvaq_<supf>v4si): Likewise.
23457 (mve_vaddq_n_f<mode>): Likewise.
23458 (mve_vandq_f<mode>): Likewise.
23459 (mve_vbicq_f<mode>): Likewise.
23460 (mve_vbicq_n_<supf><mode>): Likewise.
23461 (mve_vcaddq_rot270_f<mode>): Likewise.
23462 (mve_vcaddq_rot90_f<mode>): Likewise.
23463 (mve_vcmpeqq_f<mode>): Likewise.
23464 (mve_vcmpeqq_n_f<mode>): Likewise.
23465 (mve_vcmpgeq_f<mode>): Likewise.
23466 (mve_vcmpgeq_n_f<mode>): Likewise.
23467 (mve_vcmpgtq_f<mode>): Likewise.
23468 (mve_vcmpgtq_n_f<mode>): Likewise.
23469 (mve_vcmpleq_f<mode>): Likewise.
23470 (mve_vcmpleq_n_f<mode>): Likewise.
23471 (mve_vcmpltq_f<mode>): Likewise.
23472 (mve_vcmpltq_n_f<mode>): Likewise.
23473 (mve_vcmpneq_f<mode>): Likewise.
23474 (mve_vcmpneq_n_f<mode>): Likewise.
23475 (mve_vcmulq_f<mode>): Likewise.
23476 (mve_vcmulq_rot180_f<mode>): Likewise.
23477 (mve_vcmulq_rot270_f<mode>): Likewise.
23478 (mve_vcmulq_rot90_f<mode>): Likewise.
23479 (mve_vctp<mode1>q_mhi): Likewise.
23480 (mve_vcvtbq_f16_f32v8hf): Likewise.
23481 (mve_vcvttq_f16_f32v8hf): Likewise.
23482 (mve_veorq_f<mode>): Likewise.
23483 (mve_vmaxnmaq_f<mode>): Likewise.
23484 (mve_vmaxnmavq_f<mode>): Likewise.
23485 (mve_vmaxnmq_f<mode>): Likewise.
23486 (mve_vmaxnmvq_f<mode>): Likewise.
23487 (mve_vminnmaq_f<mode>): Likewise.
23488 (mve_vminnmavq_f<mode>): Likewise.
23489 (mve_vminnmq_f<mode>): Likewise.
23490 (mve_vminnmvq_f<mode>): Likewise.
23491 (mve_vmlaldavq_<supf><mode>): Likewise.
23492 (mve_vmlaldavxq_<supf><mode>): Likewise.
23493 (mve_vmlsldavq_s<mode>): Likewise.
23494 (mve_vmlsldavxq_s<mode>): Likewise.
23495 (mve_vmovnbq_<supf><mode>): Likewise.
23496 (mve_vmovntq_<supf><mode>): Likewise.
23497 (mve_vmulq_f<mode>): Likewise.
23498 (mve_vmulq_n_f<mode>): Likewise.
23499 (mve_vornq_f<mode>): Likewise.
23500 (mve_vorrq_f<mode>): Likewise.
23501 (mve_vorrq_n_<supf><mode>): Likewise.
23502 (mve_vqdmullbq_n_s<mode>): Likewise.
23503 (mve_vqdmullbq_s<mode>): Likewise.
23504 (mve_vqdmulltq_n_s<mode>): Likewise.
23505 (mve_vqdmulltq_s<mode>): Likewise.
23506 (mve_vqmovnbq_<supf><mode>): Likewise.
23507 (mve_vqmovntq_<supf><mode>): Likewise.
23508 (mve_vqmovunbq_s<mode>): Likewise.
23509 (mve_vqmovuntq_s<mode>): Likewise.
23510 (mve_vrmlaldavhxq_sv4si): Likewise.
23511 (mve_vrmlsldavhq_sv4si): Likewise.
23512 (mve_vrmlsldavhxq_sv4si): Likewise.
23513 (mve_vshllbq_n_<supf><mode>): Likewise.
23514 (mve_vshlltq_n_<supf><mode>): Likewise.
23515 (mve_vsubq_f<mode>): Likewise.
23516 (mve_vmulltq_poly_p<mode>): Likewise.
23517 (mve_vmullbq_poly_p<mode>): Likewise.
23518 (mve_vrmlaldavhq_<supf>v4si): Likewise.
23519
23520 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
23521 Mihail Ionescu <mihail.ionescu@arm.com>
23522 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
23523
23524 * config/arm/arm_mve.h (vsubq_u8): Define macro.
23525 (vsubq_n_u8): Likewise.
23526 (vrmulhq_u8): Likewise.
23527 (vrhaddq_u8): Likewise.
23528 (vqsubq_u8): Likewise.
23529 (vqsubq_n_u8): Likewise.
23530 (vqaddq_u8): Likewise.
23531 (vqaddq_n_u8): Likewise.
23532 (vorrq_u8): Likewise.
23533 (vornq_u8): Likewise.
23534 (vmulq_u8): Likewise.
23535 (vmulq_n_u8): Likewise.
23536 (vmulltq_int_u8): Likewise.
23537 (vmullbq_int_u8): Likewise.
23538 (vmulhq_u8): Likewise.
23539 (vmladavq_u8): Likewise.
23540 (vminvq_u8): Likewise.
23541 (vminq_u8): Likewise.
23542 (vmaxvq_u8): Likewise.
23543 (vmaxq_u8): Likewise.
23544 (vhsubq_u8): Likewise.
23545 (vhsubq_n_u8): Likewise.
23546 (vhaddq_u8): Likewise.
23547 (vhaddq_n_u8): Likewise.
23548 (veorq_u8): Likewise.
23549 (vcmpneq_n_u8): Likewise.
23550 (vcmphiq_u8): Likewise.
23551 (vcmphiq_n_u8): Likewise.
23552 (vcmpeqq_u8): Likewise.
23553 (vcmpeqq_n_u8): Likewise.
23554 (vcmpcsq_u8): Likewise.
23555 (vcmpcsq_n_u8): Likewise.
23556 (vcaddq_rot90_u8): Likewise.
23557 (vcaddq_rot270_u8): Likewise.
23558 (vbicq_u8): Likewise.
23559 (vandq_u8): Likewise.
23560 (vaddvq_p_u8): Likewise.
23561 (vaddvaq_u8): Likewise.
23562 (vaddq_n_u8): Likewise.
23563 (vabdq_u8): Likewise.
23564 (vshlq_r_u8): Likewise.
23565 (vrshlq_u8): Likewise.
23566 (vrshlq_n_u8): Likewise.
23567 (vqshlq_u8): Likewise.
23568 (vqshlq_r_u8): Likewise.
23569 (vqrshlq_u8): Likewise.
23570 (vqrshlq_n_u8): Likewise.
23571 (vminavq_s8): Likewise.
23572 (vminaq_s8): Likewise.
23573 (vmaxavq_s8): Likewise.
23574 (vmaxaq_s8): Likewise.
23575 (vbrsrq_n_u8): Likewise.
23576 (vshlq_n_u8): Likewise.
23577 (vrshrq_n_u8): Likewise.
23578 (vqshlq_n_u8): Likewise.
23579 (vcmpneq_n_s8): Likewise.
23580 (vcmpltq_s8): Likewise.
23581 (vcmpltq_n_s8): Likewise.
23582 (vcmpleq_s8): Likewise.
23583 (vcmpleq_n_s8): Likewise.
23584 (vcmpgtq_s8): Likewise.
23585 (vcmpgtq_n_s8): Likewise.
23586 (vcmpgeq_s8): Likewise.
23587 (vcmpgeq_n_s8): Likewise.
23588 (vcmpeqq_s8): Likewise.
23589 (vcmpeqq_n_s8): Likewise.
23590 (vqshluq_n_s8): Likewise.
23591 (vaddvq_p_s8): Likewise.
23592 (vsubq_s8): Likewise.
23593 (vsubq_n_s8): Likewise.
23594 (vshlq_r_s8): Likewise.
23595 (vrshlq_s8): Likewise.
23596 (vrshlq_n_s8): Likewise.
23597 (vrmulhq_s8): Likewise.
23598 (vrhaddq_s8): Likewise.
23599 (vqsubq_s8): Likewise.
23600 (vqsubq_n_s8): Likewise.
23601 (vqshlq_s8): Likewise.
23602 (vqshlq_r_s8): Likewise.
23603 (vqrshlq_s8): Likewise.
23604 (vqrshlq_n_s8): Likewise.
23605 (vqrdmulhq_s8): Likewise.
23606 (vqrdmulhq_n_s8): Likewise.
23607 (vqdmulhq_s8): Likewise.
23608 (vqdmulhq_n_s8): Likewise.
23609 (vqaddq_s8): Likewise.
23610 (vqaddq_n_s8): Likewise.
23611 (vorrq_s8): Likewise.
23612 (vornq_s8): Likewise.
23613 (vmulq_s8): Likewise.
23614 (vmulq_n_s8): Likewise.
23615 (vmulltq_int_s8): Likewise.
23616 (vmullbq_int_s8): Likewise.
23617 (vmulhq_s8): Likewise.
23618 (vmlsdavxq_s8): Likewise.
23619 (vmlsdavq_s8): Likewise.
23620 (vmladavxq_s8): Likewise.
23621 (vmladavq_s8): Likewise.
23622 (vminvq_s8): Likewise.
23623 (vminq_s8): Likewise.
23624 (vmaxvq_s8): Likewise.
23625 (vmaxq_s8): Likewise.
23626 (vhsubq_s8): Likewise.
23627 (vhsubq_n_s8): Likewise.
23628 (vhcaddq_rot90_s8): Likewise.
23629 (vhcaddq_rot270_s8): Likewise.
23630 (vhaddq_s8): Likewise.
23631 (vhaddq_n_s8): Likewise.
23632 (veorq_s8): Likewise.
23633 (vcaddq_rot90_s8): Likewise.
23634 (vcaddq_rot270_s8): Likewise.
23635 (vbrsrq_n_s8): Likewise.
23636 (vbicq_s8): Likewise.
23637 (vandq_s8): Likewise.
23638 (vaddvaq_s8): Likewise.
23639 (vaddq_n_s8): Likewise.
23640 (vabdq_s8): Likewise.
23641 (vshlq_n_s8): Likewise.
23642 (vrshrq_n_s8): Likewise.
23643 (vqshlq_n_s8): Likewise.
23644 (vsubq_u16): Likewise.
23645 (vsubq_n_u16): Likewise.
23646 (vrmulhq_u16): Likewise.
23647 (vrhaddq_u16): Likewise.
23648 (vqsubq_u16): Likewise.
23649 (vqsubq_n_u16): Likewise.
23650 (vqaddq_u16): Likewise.
23651 (vqaddq_n_u16): Likewise.
23652 (vorrq_u16): Likewise.
23653 (vornq_u16): Likewise.
23654 (vmulq_u16): Likewise.
23655 (vmulq_n_u16): Likewise.
23656 (vmulltq_int_u16): Likewise.
23657 (vmullbq_int_u16): Likewise.
23658 (vmulhq_u16): Likewise.
23659 (vmladavq_u16): Likewise.
23660 (vminvq_u16): Likewise.
23661 (vminq_u16): Likewise.
23662 (vmaxvq_u16): Likewise.
23663 (vmaxq_u16): Likewise.
23664 (vhsubq_u16): Likewise.
23665 (vhsubq_n_u16): Likewise.
23666 (vhaddq_u16): Likewise.
23667 (vhaddq_n_u16): Likewise.
23668 (veorq_u16): Likewise.
23669 (vcmpneq_n_u16): Likewise.
23670 (vcmphiq_u16): Likewise.
23671 (vcmphiq_n_u16): Likewise.
23672 (vcmpeqq_u16): Likewise.
23673 (vcmpeqq_n_u16): Likewise.
23674 (vcmpcsq_u16): Likewise.
23675 (vcmpcsq_n_u16): Likewise.
23676 (vcaddq_rot90_u16): Likewise.
23677 (vcaddq_rot270_u16): Likewise.
23678 (vbicq_u16): Likewise.
23679 (vandq_u16): Likewise.
23680 (vaddvq_p_u16): Likewise.
23681 (vaddvaq_u16): Likewise.
23682 (vaddq_n_u16): Likewise.
23683 (vabdq_u16): Likewise.
23684 (vshlq_r_u16): Likewise.
23685 (vrshlq_u16): Likewise.
23686 (vrshlq_n_u16): Likewise.
23687 (vqshlq_u16): Likewise.
23688 (vqshlq_r_u16): Likewise.
23689 (vqrshlq_u16): Likewise.
23690 (vqrshlq_n_u16): Likewise.
23691 (vminavq_s16): Likewise.
23692 (vminaq_s16): Likewise.
23693 (vmaxavq_s16): Likewise.
23694 (vmaxaq_s16): Likewise.
23695 (vbrsrq_n_u16): Likewise.
23696 (vshlq_n_u16): Likewise.
23697 (vrshrq_n_u16): Likewise.
23698 (vqshlq_n_u16): Likewise.
23699 (vcmpneq_n_s16): Likewise.
23700 (vcmpltq_s16): Likewise.
23701 (vcmpltq_n_s16): Likewise.
23702 (vcmpleq_s16): Likewise.
23703 (vcmpleq_n_s16): Likewise.
23704 (vcmpgtq_s16): Likewise.
23705 (vcmpgtq_n_s16): Likewise.
23706 (vcmpgeq_s16): Likewise.
23707 (vcmpgeq_n_s16): Likewise.
23708 (vcmpeqq_s16): Likewise.
23709 (vcmpeqq_n_s16): Likewise.
23710 (vqshluq_n_s16): Likewise.
23711 (vaddvq_p_s16): Likewise.
23712 (vsubq_s16): Likewise.
23713 (vsubq_n_s16): Likewise.
23714 (vshlq_r_s16): Likewise.
23715 (vrshlq_s16): Likewise.
23716 (vrshlq_n_s16): Likewise.
23717 (vrmulhq_s16): Likewise.
23718 (vrhaddq_s16): Likewise.
23719 (vqsubq_s16): Likewise.
23720 (vqsubq_n_s16): Likewise.
23721 (vqshlq_s16): Likewise.
23722 (vqshlq_r_s16): Likewise.
23723 (vqrshlq_s16): Likewise.
23724 (vqrshlq_n_s16): Likewise.
23725 (vqrdmulhq_s16): Likewise.
23726 (vqrdmulhq_n_s16): Likewise.
23727 (vqdmulhq_s16): Likewise.
23728 (vqdmulhq_n_s16): Likewise.
23729 (vqaddq_s16): Likewise.
23730 (vqaddq_n_s16): Likewise.
23731 (vorrq_s16): Likewise.
23732 (vornq_s16): Likewise.
23733 (vmulq_s16): Likewise.
23734 (vmulq_n_s16): Likewise.
23735 (vmulltq_int_s16): Likewise.
23736 (vmullbq_int_s16): Likewise.
23737 (vmulhq_s16): Likewise.
23738 (vmlsdavxq_s16): Likewise.
23739 (vmlsdavq_s16): Likewise.
23740 (vmladavxq_s16): Likewise.
23741 (vmladavq_s16): Likewise.
23742 (vminvq_s16): Likewise.
23743 (vminq_s16): Likewise.
23744 (vmaxvq_s16): Likewise.
23745 (vmaxq_s16): Likewise.
23746 (vhsubq_s16): Likewise.
23747 (vhsubq_n_s16): Likewise.
23748 (vhcaddq_rot90_s16): Likewise.
23749 (vhcaddq_rot270_s16): Likewise.
23750 (vhaddq_s16): Likewise.
23751 (vhaddq_n_s16): Likewise.
23752 (veorq_s16): Likewise.
23753 (vcaddq_rot90_s16): Likewise.
23754 (vcaddq_rot270_s16): Likewise.
23755 (vbrsrq_n_s16): Likewise.
23756 (vbicq_s16): Likewise.
23757 (vandq_s16): Likewise.
23758 (vaddvaq_s16): Likewise.
23759 (vaddq_n_s16): Likewise.
23760 (vabdq_s16): Likewise.
23761 (vshlq_n_s16): Likewise.
23762 (vrshrq_n_s16): Likewise.
23763 (vqshlq_n_s16): Likewise.
23764 (vsubq_u32): Likewise.
23765 (vsubq_n_u32): Likewise.
23766 (vrmulhq_u32): Likewise.
23767 (vrhaddq_u32): Likewise.
23768 (vqsubq_u32): Likewise.
23769 (vqsubq_n_u32): Likewise.
23770 (vqaddq_u32): Likewise.
23771 (vqaddq_n_u32): Likewise.
23772 (vorrq_u32): Likewise.
23773 (vornq_u32): Likewise.
23774 (vmulq_u32): Likewise.
23775 (vmulq_n_u32): Likewise.
23776 (vmulltq_int_u32): Likewise.
23777 (vmullbq_int_u32): Likewise.
23778 (vmulhq_u32): Likewise.
23779 (vmladavq_u32): Likewise.
23780 (vminvq_u32): Likewise.
23781 (vminq_u32): Likewise.
23782 (vmaxvq_u32): Likewise.
23783 (vmaxq_u32): Likewise.
23784 (vhsubq_u32): Likewise.
23785 (vhsubq_n_u32): Likewise.
23786 (vhaddq_u32): Likewise.
23787 (vhaddq_n_u32): Likewise.
23788 (veorq_u32): Likewise.
23789 (vcmpneq_n_u32): Likewise.
23790 (vcmphiq_u32): Likewise.
23791 (vcmphiq_n_u32): Likewise.
23792 (vcmpeqq_u32): Likewise.
23793 (vcmpeqq_n_u32): Likewise.
23794 (vcmpcsq_u32): Likewise.
23795 (vcmpcsq_n_u32): Likewise.
23796 (vcaddq_rot90_u32): Likewise.
23797 (vcaddq_rot270_u32): Likewise.
23798 (vbicq_u32): Likewise.
23799 (vandq_u32): Likewise.
23800 (vaddvq_p_u32): Likewise.
23801 (vaddvaq_u32): Likewise.
23802 (vaddq_n_u32): Likewise.
23803 (vabdq_u32): Likewise.
23804 (vshlq_r_u32): Likewise.
23805 (vrshlq_u32): Likewise.
23806 (vrshlq_n_u32): Likewise.
23807 (vqshlq_u32): Likewise.
23808 (vqshlq_r_u32): Likewise.
23809 (vqrshlq_u32): Likewise.
23810 (vqrshlq_n_u32): Likewise.
23811 (vminavq_s32): Likewise.
23812 (vminaq_s32): Likewise.
23813 (vmaxavq_s32): Likewise.
23814 (vmaxaq_s32): Likewise.
23815 (vbrsrq_n_u32): Likewise.
23816 (vshlq_n_u32): Likewise.
23817 (vrshrq_n_u32): Likewise.
23818 (vqshlq_n_u32): Likewise.
23819 (vcmpneq_n_s32): Likewise.
23820 (vcmpltq_s32): Likewise.
23821 (vcmpltq_n_s32): Likewise.
23822 (vcmpleq_s32): Likewise.
23823 (vcmpleq_n_s32): Likewise.
23824 (vcmpgtq_s32): Likewise.
23825 (vcmpgtq_n_s32): Likewise.
23826 (vcmpgeq_s32): Likewise.
23827 (vcmpgeq_n_s32): Likewise.
23828 (vcmpeqq_s32): Likewise.
23829 (vcmpeqq_n_s32): Likewise.
23830 (vqshluq_n_s32): Likewise.
23831 (vaddvq_p_s32): Likewise.
23832 (vsubq_s32): Likewise.
23833 (vsubq_n_s32): Likewise.
23834 (vshlq_r_s32): Likewise.
23835 (vrshlq_s32): Likewise.
23836 (vrshlq_n_s32): Likewise.
23837 (vrmulhq_s32): Likewise.
23838 (vrhaddq_s32): Likewise.
23839 (vqsubq_s32): Likewise.
23840 (vqsubq_n_s32): Likewise.
23841 (vqshlq_s32): Likewise.
23842 (vqshlq_r_s32): Likewise.
23843 (vqrshlq_s32): Likewise.
23844 (vqrshlq_n_s32): Likewise.
23845 (vqrdmulhq_s32): Likewise.
23846 (vqrdmulhq_n_s32): Likewise.
23847 (vqdmulhq_s32): Likewise.
23848 (vqdmulhq_n_s32): Likewise.
23849 (vqaddq_s32): Likewise.
23850 (vqaddq_n_s32): Likewise.
23851 (vorrq_s32): Likewise.
23852 (vornq_s32): Likewise.
23853 (vmulq_s32): Likewise.
23854 (vmulq_n_s32): Likewise.
23855 (vmulltq_int_s32): Likewise.
23856 (vmullbq_int_s32): Likewise.
23857 (vmulhq_s32): Likewise.
23858 (vmlsdavxq_s32): Likewise.
23859 (vmlsdavq_s32): Likewise.
23860 (vmladavxq_s32): Likewise.
23861 (vmladavq_s32): Likewise.
23862 (vminvq_s32): Likewise.
23863 (vminq_s32): Likewise.
23864 (vmaxvq_s32): Likewise.
23865 (vmaxq_s32): Likewise.
23866 (vhsubq_s32): Likewise.
23867 (vhsubq_n_s32): Likewise.
23868 (vhcaddq_rot90_s32): Likewise.
23869 (vhcaddq_rot270_s32): Likewise.
23870 (vhaddq_s32): Likewise.
23871 (vhaddq_n_s32): Likewise.
23872 (veorq_s32): Likewise.
23873 (vcaddq_rot90_s32): Likewise.
23874 (vcaddq_rot270_s32): Likewise.
23875 (vbrsrq_n_s32): Likewise.
23876 (vbicq_s32): Likewise.
23877 (vandq_s32): Likewise.
23878 (vaddvaq_s32): Likewise.
23879 (vaddq_n_s32): Likewise.
23880 (vabdq_s32): Likewise.
23881 (vshlq_n_s32): Likewise.
23882 (vrshrq_n_s32): Likewise.
23883 (vqshlq_n_s32): Likewise.
23884 (__arm_vsubq_u8): Define intrinsic.
23885 (__arm_vsubq_n_u8): Likewise.
23886 (__arm_vrmulhq_u8): Likewise.
23887 (__arm_vrhaddq_u8): Likewise.
23888 (__arm_vqsubq_u8): Likewise.
23889 (__arm_vqsubq_n_u8): Likewise.
23890 (__arm_vqaddq_u8): Likewise.
23891 (__arm_vqaddq_n_u8): Likewise.
23892 (__arm_vorrq_u8): Likewise.
23893 (__arm_vornq_u8): Likewise.
23894 (__arm_vmulq_u8): Likewise.
23895 (__arm_vmulq_n_u8): Likewise.
23896 (__arm_vmulltq_int_u8): Likewise.
23897 (__arm_vmullbq_int_u8): Likewise.
23898 (__arm_vmulhq_u8): Likewise.
23899 (__arm_vmladavq_u8): Likewise.
23900 (__arm_vminvq_u8): Likewise.
23901 (__arm_vminq_u8): Likewise.
23902 (__arm_vmaxvq_u8): Likewise.
23903 (__arm_vmaxq_u8): Likewise.
23904 (__arm_vhsubq_u8): Likewise.
23905 (__arm_vhsubq_n_u8): Likewise.
23906 (__arm_vhaddq_u8): Likewise.
23907 (__arm_vhaddq_n_u8): Likewise.
23908 (__arm_veorq_u8): Likewise.
23909 (__arm_vcmpneq_n_u8): Likewise.
23910 (__arm_vcmphiq_u8): Likewise.
23911 (__arm_vcmphiq_n_u8): Likewise.
23912 (__arm_vcmpeqq_u8): Likewise.
23913 (__arm_vcmpeqq_n_u8): Likewise.
23914 (__arm_vcmpcsq_u8): Likewise.
23915 (__arm_vcmpcsq_n_u8): Likewise.
23916 (__arm_vcaddq_rot90_u8): Likewise.
23917 (__arm_vcaddq_rot270_u8): Likewise.
23918 (__arm_vbicq_u8): Likewise.
23919 (__arm_vandq_u8): Likewise.
23920 (__arm_vaddvq_p_u8): Likewise.
23921 (__arm_vaddvaq_u8): Likewise.
23922 (__arm_vaddq_n_u8): Likewise.
23923 (__arm_vabdq_u8): Likewise.
23924 (__arm_vshlq_r_u8): Likewise.
23925 (__arm_vrshlq_u8): Likewise.
23926 (__arm_vrshlq_n_u8): Likewise.
23927 (__arm_vqshlq_u8): Likewise.
23928 (__arm_vqshlq_r_u8): Likewise.
23929 (__arm_vqrshlq_u8): Likewise.
23930 (__arm_vqrshlq_n_u8): Likewise.
23931 (__arm_vminavq_s8): Likewise.
23932 (__arm_vminaq_s8): Likewise.
23933 (__arm_vmaxavq_s8): Likewise.
23934 (__arm_vmaxaq_s8): Likewise.
23935 (__arm_vbrsrq_n_u8): Likewise.
23936 (__arm_vshlq_n_u8): Likewise.
23937 (__arm_vrshrq_n_u8): Likewise.
23938 (__arm_vqshlq_n_u8): Likewise.
23939 (__arm_vcmpneq_n_s8): Likewise.
23940 (__arm_vcmpltq_s8): Likewise.
23941 (__arm_vcmpltq_n_s8): Likewise.
23942 (__arm_vcmpleq_s8): Likewise.
23943 (__arm_vcmpleq_n_s8): Likewise.
23944 (__arm_vcmpgtq_s8): Likewise.
23945 (__arm_vcmpgtq_n_s8): Likewise.
23946 (__arm_vcmpgeq_s8): Likewise.
23947 (__arm_vcmpgeq_n_s8): Likewise.
23948 (__arm_vcmpeqq_s8): Likewise.
23949 (__arm_vcmpeqq_n_s8): Likewise.
23950 (__arm_vqshluq_n_s8): Likewise.
23951 (__arm_vaddvq_p_s8): Likewise.
23952 (__arm_vsubq_s8): Likewise.
23953 (__arm_vsubq_n_s8): Likewise.
23954 (__arm_vshlq_r_s8): Likewise.
23955 (__arm_vrshlq_s8): Likewise.
23956 (__arm_vrshlq_n_s8): Likewise.
23957 (__arm_vrmulhq_s8): Likewise.
23958 (__arm_vrhaddq_s8): Likewise.
23959 (__arm_vqsubq_s8): Likewise.
23960 (__arm_vqsubq_n_s8): Likewise.
23961 (__arm_vqshlq_s8): Likewise.
23962 (__arm_vqshlq_r_s8): Likewise.
23963 (__arm_vqrshlq_s8): Likewise.
23964 (__arm_vqrshlq_n_s8): Likewise.
23965 (__arm_vqrdmulhq_s8): Likewise.
23966 (__arm_vqrdmulhq_n_s8): Likewise.
23967 (__arm_vqdmulhq_s8): Likewise.
23968 (__arm_vqdmulhq_n_s8): Likewise.
23969 (__arm_vqaddq_s8): Likewise.
23970 (__arm_vqaddq_n_s8): Likewise.
23971 (__arm_vorrq_s8): Likewise.
23972 (__arm_vornq_s8): Likewise.
23973 (__arm_vmulq_s8): Likewise.
23974 (__arm_vmulq_n_s8): Likewise.
23975 (__arm_vmulltq_int_s8): Likewise.
23976 (__arm_vmullbq_int_s8): Likewise.
23977 (__arm_vmulhq_s8): Likewise.
23978 (__arm_vmlsdavxq_s8): Likewise.
23979 (__arm_vmlsdavq_s8): Likewise.
23980 (__arm_vmladavxq_s8): Likewise.
23981 (__arm_vmladavq_s8): Likewise.
23982 (__arm_vminvq_s8): Likewise.
23983 (__arm_vminq_s8): Likewise.
23984 (__arm_vmaxvq_s8): Likewise.
23985 (__arm_vmaxq_s8): Likewise.
23986 (__arm_vhsubq_s8): Likewise.
23987 (__arm_vhsubq_n_s8): Likewise.
23988 (__arm_vhcaddq_rot90_s8): Likewise.
23989 (__arm_vhcaddq_rot270_s8): Likewise.
23990 (__arm_vhaddq_s8): Likewise.
23991 (__arm_vhaddq_n_s8): Likewise.
23992 (__arm_veorq_s8): Likewise.
23993 (__arm_vcaddq_rot90_s8): Likewise.
23994 (__arm_vcaddq_rot270_s8): Likewise.
23995 (__arm_vbrsrq_n_s8): Likewise.
23996 (__arm_vbicq_s8): Likewise.
23997 (__arm_vandq_s8): Likewise.
23998 (__arm_vaddvaq_s8): Likewise.
23999 (__arm_vaddq_n_s8): Likewise.
24000 (__arm_vabdq_s8): Likewise.
24001 (__arm_vshlq_n_s8): Likewise.
24002 (__arm_vrshrq_n_s8): Likewise.
24003 (__arm_vqshlq_n_s8): Likewise.
24004 (__arm_vsubq_u16): Likewise.
24005 (__arm_vsubq_n_u16): Likewise.
24006 (__arm_vrmulhq_u16): Likewise.
24007 (__arm_vrhaddq_u16): Likewise.
24008 (__arm_vqsubq_u16): Likewise.
24009 (__arm_vqsubq_n_u16): Likewise.
24010 (__arm_vqaddq_u16): Likewise.
24011 (__arm_vqaddq_n_u16): Likewise.
24012 (__arm_vorrq_u16): Likewise.
24013 (__arm_vornq_u16): Likewise.
24014 (__arm_vmulq_u16): Likewise.
24015 (__arm_vmulq_n_u16): Likewise.
24016 (__arm_vmulltq_int_u16): Likewise.
24017 (__arm_vmullbq_int_u16): Likewise.
24018 (__arm_vmulhq_u16): Likewise.
24019 (__arm_vmladavq_u16): Likewise.
24020 (__arm_vminvq_u16): Likewise.
24021 (__arm_vminq_u16): Likewise.
24022 (__arm_vmaxvq_u16): Likewise.
24023 (__arm_vmaxq_u16): Likewise.
24024 (__arm_vhsubq_u16): Likewise.
24025 (__arm_vhsubq_n_u16): Likewise.
24026 (__arm_vhaddq_u16): Likewise.
24027 (__arm_vhaddq_n_u16): Likewise.
24028 (__arm_veorq_u16): Likewise.
24029 (__arm_vcmpneq_n_u16): Likewise.
24030 (__arm_vcmphiq_u16): Likewise.
24031 (__arm_vcmphiq_n_u16): Likewise.
24032 (__arm_vcmpeqq_u16): Likewise.
24033 (__arm_vcmpeqq_n_u16): Likewise.
24034 (__arm_vcmpcsq_u16): Likewise.
24035 (__arm_vcmpcsq_n_u16): Likewise.
24036 (__arm_vcaddq_rot90_u16): Likewise.
24037 (__arm_vcaddq_rot270_u16): Likewise.
24038 (__arm_vbicq_u16): Likewise.
24039 (__arm_vandq_u16): Likewise.
24040 (__arm_vaddvq_p_u16): Likewise.
24041 (__arm_vaddvaq_u16): Likewise.
24042 (__arm_vaddq_n_u16): Likewise.
24043 (__arm_vabdq_u16): Likewise.
24044 (__arm_vshlq_r_u16): Likewise.
24045 (__arm_vrshlq_u16): Likewise.
24046 (__arm_vrshlq_n_u16): Likewise.
24047 (__arm_vqshlq_u16): Likewise.
24048 (__arm_vqshlq_r_u16): Likewise.
24049 (__arm_vqrshlq_u16): Likewise.
24050 (__arm_vqrshlq_n_u16): Likewise.
24051 (__arm_vminavq_s16): Likewise.
24052 (__arm_vminaq_s16): Likewise.
24053 (__arm_vmaxavq_s16): Likewise.
24054 (__arm_vmaxaq_s16): Likewise.
24055 (__arm_vbrsrq_n_u16): Likewise.
24056 (__arm_vshlq_n_u16): Likewise.
24057 (__arm_vrshrq_n_u16): Likewise.
24058 (__arm_vqshlq_n_u16): Likewise.
24059 (__arm_vcmpneq_n_s16): Likewise.
24060 (__arm_vcmpltq_s16): Likewise.
24061 (__arm_vcmpltq_n_s16): Likewise.
24062 (__arm_vcmpleq_s16): Likewise.
24063 (__arm_vcmpleq_n_s16): Likewise.
24064 (__arm_vcmpgtq_s16): Likewise.
24065 (__arm_vcmpgtq_n_s16): Likewise.
24066 (__arm_vcmpgeq_s16): Likewise.
24067 (__arm_vcmpgeq_n_s16): Likewise.
24068 (__arm_vcmpeqq_s16): Likewise.
24069 (__arm_vcmpeqq_n_s16): Likewise.
24070 (__arm_vqshluq_n_s16): Likewise.
24071 (__arm_vaddvq_p_s16): Likewise.
24072 (__arm_vsubq_s16): Likewise.
24073 (__arm_vsubq_n_s16): Likewise.
24074 (__arm_vshlq_r_s16): Likewise.
24075 (__arm_vrshlq_s16): Likewise.
24076 (__arm_vrshlq_n_s16): Likewise.
24077 (__arm_vrmulhq_s16): Likewise.
24078 (__arm_vrhaddq_s16): Likewise.
24079 (__arm_vqsubq_s16): Likewise.
24080 (__arm_vqsubq_n_s16): Likewise.
24081 (__arm_vqshlq_s16): Likewise.
24082 (__arm_vqshlq_r_s16): Likewise.
24083 (__arm_vqrshlq_s16): Likewise.
24084 (__arm_vqrshlq_n_s16): Likewise.
24085 (__arm_vqrdmulhq_s16): Likewise.
24086 (__arm_vqrdmulhq_n_s16): Likewise.
24087 (__arm_vqdmulhq_s16): Likewise.
24088 (__arm_vqdmulhq_n_s16): Likewise.
24089 (__arm_vqaddq_s16): Likewise.
24090 (__arm_vqaddq_n_s16): Likewise.
24091 (__arm_vorrq_s16): Likewise.
24092 (__arm_vornq_s16): Likewise.
24093 (__arm_vmulq_s16): Likewise.
24094 (__arm_vmulq_n_s16): Likewise.
24095 (__arm_vmulltq_int_s16): Likewise.
24096 (__arm_vmullbq_int_s16): Likewise.
24097 (__arm_vmulhq_s16): Likewise.
24098 (__arm_vmlsdavxq_s16): Likewise.
24099 (__arm_vmlsdavq_s16): Likewise.
24100 (__arm_vmladavxq_s16): Likewise.
24101 (__arm_vmladavq_s16): Likewise.
24102 (__arm_vminvq_s16): Likewise.
24103 (__arm_vminq_s16): Likewise.
24104 (__arm_vmaxvq_s16): Likewise.
24105 (__arm_vmaxq_s16): Likewise.
24106 (__arm_vhsubq_s16): Likewise.
24107 (__arm_vhsubq_n_s16): Likewise.
24108 (__arm_vhcaddq_rot90_s16): Likewise.
24109 (__arm_vhcaddq_rot270_s16): Likewise.
24110 (__arm_vhaddq_s16): Likewise.
24111 (__arm_vhaddq_n_s16): Likewise.
24112 (__arm_veorq_s16): Likewise.
24113 (__arm_vcaddq_rot90_s16): Likewise.
24114 (__arm_vcaddq_rot270_s16): Likewise.
24115 (__arm_vbrsrq_n_s16): Likewise.
24116 (__arm_vbicq_s16): Likewise.
24117 (__arm_vandq_s16): Likewise.
24118 (__arm_vaddvaq_s16): Likewise.
24119 (__arm_vaddq_n_s16): Likewise.
24120 (__arm_vabdq_s16): Likewise.
24121 (__arm_vshlq_n_s16): Likewise.
24122 (__arm_vrshrq_n_s16): Likewise.
24123 (__arm_vqshlq_n_s16): Likewise.
24124 (__arm_vsubq_u32): Likewise.
24125 (__arm_vsubq_n_u32): Likewise.
24126 (__arm_vrmulhq_u32): Likewise.
24127 (__arm_vrhaddq_u32): Likewise.
24128 (__arm_vqsubq_u32): Likewise.
24129 (__arm_vqsubq_n_u32): Likewise.
24130 (__arm_vqaddq_u32): Likewise.
24131 (__arm_vqaddq_n_u32): Likewise.
24132 (__arm_vorrq_u32): Likewise.
24133 (__arm_vornq_u32): Likewise.
24134 (__arm_vmulq_u32): Likewise.
24135 (__arm_vmulq_n_u32): Likewise.
24136 (__arm_vmulltq_int_u32): Likewise.
24137 (__arm_vmullbq_int_u32): Likewise.
24138 (__arm_vmulhq_u32): Likewise.
24139 (__arm_vmladavq_u32): Likewise.
24140 (__arm_vminvq_u32): Likewise.
24141 (__arm_vminq_u32): Likewise.
24142 (__arm_vmaxvq_u32): Likewise.
24143 (__arm_vmaxq_u32): Likewise.
24144 (__arm_vhsubq_u32): Likewise.
24145 (__arm_vhsubq_n_u32): Likewise.
24146 (__arm_vhaddq_u32): Likewise.
24147 (__arm_vhaddq_n_u32): Likewise.
24148 (__arm_veorq_u32): Likewise.
24149 (__arm_vcmpneq_n_u32): Likewise.
24150 (__arm_vcmphiq_u32): Likewise.
24151 (__arm_vcmphiq_n_u32): Likewise.
24152 (__arm_vcmpeqq_u32): Likewise.
24153 (__arm_vcmpeqq_n_u32): Likewise.
24154 (__arm_vcmpcsq_u32): Likewise.
24155 (__arm_vcmpcsq_n_u32): Likewise.
24156 (__arm_vcaddq_rot90_u32): Likewise.
24157 (__arm_vcaddq_rot270_u32): Likewise.
24158 (__arm_vbicq_u32): Likewise.
24159 (__arm_vandq_u32): Likewise.
24160 (__arm_vaddvq_p_u32): Likewise.
24161 (__arm_vaddvaq_u32): Likewise.
24162 (__arm_vaddq_n_u32): Likewise.
24163 (__arm_vabdq_u32): Likewise.
24164 (__arm_vshlq_r_u32): Likewise.
24165 (__arm_vrshlq_u32): Likewise.
24166 (__arm_vrshlq_n_u32): Likewise.
24167 (__arm_vqshlq_u32): Likewise.
24168 (__arm_vqshlq_r_u32): Likewise.
24169 (__arm_vqrshlq_u32): Likewise.
24170 (__arm_vqrshlq_n_u32): Likewise.
24171 (__arm_vminavq_s32): Likewise.
24172 (__arm_vminaq_s32): Likewise.
24173 (__arm_vmaxavq_s32): Likewise.
24174 (__arm_vmaxaq_s32): Likewise.
24175 (__arm_vbrsrq_n_u32): Likewise.
24176 (__arm_vshlq_n_u32): Likewise.
24177 (__arm_vrshrq_n_u32): Likewise.
24178 (__arm_vqshlq_n_u32): Likewise.
24179 (__arm_vcmpneq_n_s32): Likewise.
24180 (__arm_vcmpltq_s32): Likewise.
24181 (__arm_vcmpltq_n_s32): Likewise.
24182 (__arm_vcmpleq_s32): Likewise.
24183 (__arm_vcmpleq_n_s32): Likewise.
24184 (__arm_vcmpgtq_s32): Likewise.
24185 (__arm_vcmpgtq_n_s32): Likewise.
24186 (__arm_vcmpgeq_s32): Likewise.
24187 (__arm_vcmpgeq_n_s32): Likewise.
24188 (__arm_vcmpeqq_s32): Likewise.
24189 (__arm_vcmpeqq_n_s32): Likewise.
24190 (__arm_vqshluq_n_s32): Likewise.
24191 (__arm_vaddvq_p_s32): Likewise.
24192 (__arm_vsubq_s32): Likewise.
24193 (__arm_vsubq_n_s32): Likewise.
24194 (__arm_vshlq_r_s32): Likewise.
24195 (__arm_vrshlq_s32): Likewise.
24196 (__arm_vrshlq_n_s32): Likewise.
24197 (__arm_vrmulhq_s32): Likewise.
24198 (__arm_vrhaddq_s32): Likewise.
24199 (__arm_vqsubq_s32): Likewise.
24200 (__arm_vqsubq_n_s32): Likewise.
24201 (__arm_vqshlq_s32): Likewise.
24202 (__arm_vqshlq_r_s32): Likewise.
24203 (__arm_vqrshlq_s32): Likewise.
24204 (__arm_vqrshlq_n_s32): Likewise.
24205 (__arm_vqrdmulhq_s32): Likewise.
24206 (__arm_vqrdmulhq_n_s32): Likewise.
24207 (__arm_vqdmulhq_s32): Likewise.
24208 (__arm_vqdmulhq_n_s32): Likewise.
24209 (__arm_vqaddq_s32): Likewise.
24210 (__arm_vqaddq_n_s32): Likewise.
24211 (__arm_vorrq_s32): Likewise.
24212 (__arm_vornq_s32): Likewise.
24213 (__arm_vmulq_s32): Likewise.
24214 (__arm_vmulq_n_s32): Likewise.
24215 (__arm_vmulltq_int_s32): Likewise.
24216 (__arm_vmullbq_int_s32): Likewise.
24217 (__arm_vmulhq_s32): Likewise.
24218 (__arm_vmlsdavxq_s32): Likewise.
24219 (__arm_vmlsdavq_s32): Likewise.
24220 (__arm_vmladavxq_s32): Likewise.
24221 (__arm_vmladavq_s32): Likewise.
24222 (__arm_vminvq_s32): Likewise.
24223 (__arm_vminq_s32): Likewise.
24224 (__arm_vmaxvq_s32): Likewise.
24225 (__arm_vmaxq_s32): Likewise.
24226 (__arm_vhsubq_s32): Likewise.
24227 (__arm_vhsubq_n_s32): Likewise.
24228 (__arm_vhcaddq_rot90_s32): Likewise.
24229 (__arm_vhcaddq_rot270_s32): Likewise.
24230 (__arm_vhaddq_s32): Likewise.
24231 (__arm_vhaddq_n_s32): Likewise.
24232 (__arm_veorq_s32): Likewise.
24233 (__arm_vcaddq_rot90_s32): Likewise.
24234 (__arm_vcaddq_rot270_s32): Likewise.
24235 (__arm_vbrsrq_n_s32): Likewise.
24236 (__arm_vbicq_s32): Likewise.
24237 (__arm_vandq_s32): Likewise.
24238 (__arm_vaddvaq_s32): Likewise.
24239 (__arm_vaddq_n_s32): Likewise.
24240 (__arm_vabdq_s32): Likewise.
24241 (__arm_vshlq_n_s32): Likewise.
24242 (__arm_vrshrq_n_s32): Likewise.
24243 (__arm_vqshlq_n_s32): Likewise.
24244 (vsubq): Define polymorphic variant.
24245 (vsubq_n): Likewise.
24246 (vshlq_r): Likewise.
24247 (vrshlq_n): Likewise.
24248 (vrshlq): Likewise.
24249 (vrmulhq): Likewise.
24250 (vrhaddq): Likewise.
24251 (vqsubq_n): Likewise.
24252 (vqsubq): Likewise.
24253 (vqshlq): Likewise.
24254 (vqshlq_r): Likewise.
24255 (vqshluq): Likewise.
24256 (vrshrq_n): Likewise.
24257 (vshlq_n): Likewise.
24258 (vqshluq_n): Likewise.
24259 (vqshlq_n): Likewise.
24260 (vqrshlq_n): Likewise.
24261 (vqrshlq): Likewise.
24262 (vqrdmulhq_n): Likewise.
24263 (vqrdmulhq): Likewise.
24264 (vqdmulhq_n): Likewise.
24265 (vqdmulhq): Likewise.
24266 (vqaddq_n): Likewise.
24267 (vqaddq): Likewise.
24268 (vorrq_n): Likewise.
24269 (vorrq): Likewise.
24270 (vornq): Likewise.
24271 (vmulq_n): Likewise.
24272 (vmulq): Likewise.
24273 (vmulltq_int): Likewise.
24274 (vmullbq_int): Likewise.
24275 (vmulhq): Likewise.
24276 (vminq): Likewise.
24277 (vminaq): Likewise.
24278 (vmaxq): Likewise.
24279 (vmaxaq): Likewise.
24280 (vhsubq_n): Likewise.
24281 (vhsubq): Likewise.
24282 (vhcaddq_rot90): Likewise.
24283 (vhcaddq_rot270): Likewise.
24284 (vhaddq_n): Likewise.
24285 (vhaddq): Likewise.
24286 (veorq): Likewise.
24287 (vcaddq_rot90): Likewise.
24288 (vcaddq_rot270): Likewise.
24289 (vbrsrq_n): Likewise.
24290 (vbicq_n): Likewise.
24291 (vbicq): Likewise.
24292 (vaddq): Likewise.
24293 (vaddq_n): Likewise.
24294 (vandq): Likewise.
24295 (vabdq): Likewise.
24296 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_IMM): Use it.
24297 (BINOP_NONE_NONE_NONE): Likewise.
24298 (BINOP_NONE_NONE_UNONE): Likewise.
24299 (BINOP_UNONE_NONE_IMM): Likewise.
24300 (BINOP_UNONE_NONE_NONE): Likewise.
24301 (BINOP_UNONE_UNONE_IMM): Likewise.
24302 (BINOP_UNONE_UNONE_NONE): Likewise.
24303 (BINOP_UNONE_UNONE_UNONE): Likewise.
24304 * config/arm/constraints.md (Ra): Define constraint to check constant is
24305 in the range of 0 to 7.
24306 (Rg): Define constriant to check the constant is one among 1, 2, 4
24307 and 8.
24308 * config/arm/mve.md (mve_vabdq_<supf>): Define RTL pattern.
24309 (mve_vaddq_n_<supf>): Likewise.
24310 (mve_vaddvaq_<supf>): Likewise.
24311 (mve_vaddvq_p_<supf>): Likewise.
24312 (mve_vandq_<supf>): Likewise.
24313 (mve_vbicq_<supf>): Likewise.
24314 (mve_vbrsrq_n_<supf>): Likewise.
24315 (mve_vcaddq_rot270_<supf>): Likewise.
24316 (mve_vcaddq_rot90_<supf>): Likewise.
24317 (mve_vcmpcsq_n_u): Likewise.
24318 (mve_vcmpcsq_u): Likewise.
24319 (mve_vcmpeqq_n_<supf>): Likewise.
24320 (mve_vcmpeqq_<supf>): Likewise.
24321 (mve_vcmpgeq_n_s): Likewise.
24322 (mve_vcmpgeq_s): Likewise.
24323 (mve_vcmpgtq_n_s): Likewise.
24324 (mve_vcmpgtq_s): Likewise.
24325 (mve_vcmphiq_n_u): Likewise.
24326 (mve_vcmphiq_u): Likewise.
24327 (mve_vcmpleq_n_s): Likewise.
24328 (mve_vcmpleq_s): Likewise.
24329 (mve_vcmpltq_n_s): Likewise.
24330 (mve_vcmpltq_s): Likewise.
24331 (mve_vcmpneq_n_<supf>): Likewise.
24332 (mve_vddupq_n_u): Likewise.
24333 (mve_veorq_<supf>): Likewise.
24334 (mve_vhaddq_n_<supf>): Likewise.
24335 (mve_vhaddq_<supf>): Likewise.
24336 (mve_vhcaddq_rot270_s): Likewise.
24337 (mve_vhcaddq_rot90_s): Likewise.
24338 (mve_vhsubq_n_<supf>): Likewise.
24339 (mve_vhsubq_<supf>): Likewise.
24340 (mve_vidupq_n_u): Likewise.
24341 (mve_vmaxaq_s): Likewise.
24342 (mve_vmaxavq_s): Likewise.
24343 (mve_vmaxq_<supf>): Likewise.
24344 (mve_vmaxvq_<supf>): Likewise.
24345 (mve_vminaq_s): Likewise.
24346 (mve_vminavq_s): Likewise.
24347 (mve_vminq_<supf>): Likewise.
24348 (mve_vminvq_<supf>): Likewise.
24349 (mve_vmladavq_<supf>): Likewise.
24350 (mve_vmladavxq_s): Likewise.
24351 (mve_vmlsdavq_s): Likewise.
24352 (mve_vmlsdavxq_s): Likewise.
24353 (mve_vmulhq_<supf>): Likewise.
24354 (mve_vmullbq_int_<supf>): Likewise.
24355 (mve_vmulltq_int_<supf>): Likewise.
24356 (mve_vmulq_n_<supf>): Likewise.
24357 (mve_vmulq_<supf>): Likewise.
24358 (mve_vornq_<supf>): Likewise.
24359 (mve_vorrq_<supf>): Likewise.
24360 (mve_vqaddq_n_<supf>): Likewise.
24361 (mve_vqaddq_<supf>): Likewise.
24362 (mve_vqdmulhq_n_s): Likewise.
24363 (mve_vqdmulhq_s): Likewise.
24364 (mve_vqrdmulhq_n_s): Likewise.
24365 (mve_vqrdmulhq_s): Likewise.
24366 (mve_vqrshlq_n_<supf>): Likewise.
24367 (mve_vqrshlq_<supf>): Likewise.
24368 (mve_vqshlq_n_<supf>): Likewise.
24369 (mve_vqshlq_r_<supf>): Likewise.
24370 (mve_vqshlq_<supf>): Likewise.
24371 (mve_vqshluq_n_s): Likewise.
24372 (mve_vqsubq_n_<supf>): Likewise.
24373 (mve_vqsubq_<supf>): Likewise.
24374 (mve_vrhaddq_<supf>): Likewise.
24375 (mve_vrmulhq_<supf>): Likewise.
24376 (mve_vrshlq_n_<supf>): Likewise.
24377 (mve_vrshlq_<supf>): Likewise.
24378 (mve_vrshrq_n_<supf>): Likewise.
24379 (mve_vshlq_n_<supf>): Likewise.
24380 (mve_vshlq_r_<supf>): Likewise.
24381 (mve_vsubq_n_<supf>): Likewise.
24382 (mve_vsubq_<supf>): Likewise.
24383 * config/arm/predicates.md (mve_imm_7): Define predicate to check
24384 the matching constraint Ra.
24385 (mve_imm_selective_upto_8): Define predicate to check the matching
24386 constraint Rg.
24387
24388 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
24389 Mihail Ionescu <mihail.ionescu@arm.com>
24390 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24391
24392 * config/arm/arm-builtins.c (BINOP_NONE_NONE_UNONE_QUALIFIERS): Define
24393 qualifier for binary operands.
24394 (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
24395 (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
24396 * config/arm/arm_mve.h (vaddlvq_p_s32): Define macro.
24397 (vaddlvq_p_u32): Likewise.
24398 (vcmpneq_s8): Likewise.
24399 (vcmpneq_s16): Likewise.
24400 (vcmpneq_s32): Likewise.
24401 (vcmpneq_u8): Likewise.
24402 (vcmpneq_u16): Likewise.
24403 (vcmpneq_u32): Likewise.
24404 (vshlq_s8): Likewise.
24405 (vshlq_s16): Likewise.
24406 (vshlq_s32): Likewise.
24407 (vshlq_u8): Likewise.
24408 (vshlq_u16): Likewise.
24409 (vshlq_u32): Likewise.
24410 (__arm_vaddlvq_p_s32): Define intrinsic.
24411 (__arm_vaddlvq_p_u32): Likewise.
24412 (__arm_vcmpneq_s8): Likewise.
24413 (__arm_vcmpneq_s16): Likewise.
24414 (__arm_vcmpneq_s32): Likewise.
24415 (__arm_vcmpneq_u8): Likewise.
24416 (__arm_vcmpneq_u16): Likewise.
24417 (__arm_vcmpneq_u32): Likewise.
24418 (__arm_vshlq_s8): Likewise.
24419 (__arm_vshlq_s16): Likewise.
24420 (__arm_vshlq_s32): Likewise.
24421 (__arm_vshlq_u8): Likewise.
24422 (__arm_vshlq_u16): Likewise.
24423 (__arm_vshlq_u32): Likewise.
24424 (vaddlvq_p): Define polymorphic variant.
24425 (vcmpneq): Likewise.
24426 (vshlq): Likewise.
24427 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_UNONE_QUALIFIERS):
24428 Use it.
24429 (BINOP_UNONE_NONE_NONE_QUALIFIERS): Likewise.
24430 (BINOP_UNONE_UNONE_NONE_QUALIFIERS): Likewise.
24431 * config/arm/mve.md (mve_vaddlvq_p_<supf>v4si): Define RTL pattern.
24432 (mve_vcmpneq_<supf><mode>): Likewise.
24433 (mve_vshlq_<supf><mode>): Likewise.
24434
24435 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
24436 Mihail Ionescu <mihail.ionescu@arm.com>
24437 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24438
24439 * config/arm/arm-builtins.c (BINOP_UNONE_UNONE_IMM_QUALIFIERS): Define
24440 qualifier for binary operands.
24441 (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
24442 (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
24443 * config/arm/arm_mve.h (vcvtq_n_s16_f16): Define macro.
24444 (vcvtq_n_s32_f32): Likewise.
24445 (vcvtq_n_u16_f16): Likewise.
24446 (vcvtq_n_u32_f32): Likewise.
24447 (vcreateq_u8): Likewise.
24448 (vcreateq_u16): Likewise.
24449 (vcreateq_u32): Likewise.
24450 (vcreateq_u64): Likewise.
24451 (vcreateq_s8): Likewise.
24452 (vcreateq_s16): Likewise.
24453 (vcreateq_s32): Likewise.
24454 (vcreateq_s64): Likewise.
24455 (vshrq_n_s8): Likewise.
24456 (vshrq_n_s16): Likewise.
24457 (vshrq_n_s32): Likewise.
24458 (vshrq_n_u8): Likewise.
24459 (vshrq_n_u16): Likewise.
24460 (vshrq_n_u32): Likewise.
24461 (__arm_vcreateq_u8): Define intrinsic.
24462 (__arm_vcreateq_u16): Likewise.
24463 (__arm_vcreateq_u32): Likewise.
24464 (__arm_vcreateq_u64): Likewise.
24465 (__arm_vcreateq_s8): Likewise.
24466 (__arm_vcreateq_s16): Likewise.
24467 (__arm_vcreateq_s32): Likewise.
24468 (__arm_vcreateq_s64): Likewise.
24469 (__arm_vshrq_n_s8): Likewise.
24470 (__arm_vshrq_n_s16): Likewise.
24471 (__arm_vshrq_n_s32): Likewise.
24472 (__arm_vshrq_n_u8): Likewise.
24473 (__arm_vshrq_n_u16): Likewise.
24474 (__arm_vshrq_n_u32): Likewise.
24475 (__arm_vcvtq_n_s16_f16): Likewise.
24476 (__arm_vcvtq_n_s32_f32): Likewise.
24477 (__arm_vcvtq_n_u16_f16): Likewise.
24478 (__arm_vcvtq_n_u32_f32): Likewise.
24479 (vshrq_n): Define polymorphic variant.
24480 * config/arm/arm_mve_builtins.def (BINOP_UNONE_UNONE_IMM_QUALIFIERS):
24481 Use it.
24482 (BINOP_UNONE_UNONE_UNONE_QUALIFIERS): Likewise.
24483 (BINOP_UNONE_NONE_IMM_QUALIFIERS): Likewise.
24484 * config/arm/constraints.md (Rb): Define constraint to check constant is
24485 in the range of 1 to 8.
24486 (Rf): Define constraint to check constant is in the range of 1 to 32.
24487 * config/arm/mve.md (mve_vcreateq_<supf><mode>): Define RTL pattern.
24488 (mve_vshrq_n_<supf><mode>): Likewise.
24489 (mve_vcvtq_n_from_f_<supf><mode>): Likewise.
24490 * config/arm/predicates.md (mve_imm_8): Define predicate to check
24491 the matching constraint Rb.
24492 (mve_imm_32): Define predicate to check the matching constraint Rf.
24493
24494 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
24495 Mihail Ionescu <mihail.ionescu@arm.com>
24496 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24497
24498 * config/arm/arm-builtins.c (BINOP_NONE_NONE_NONE_QUALIFIERS): Define
24499 qualifier for binary operands.
24500 (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
24501 (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
24502 (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
24503 * config/arm/arm_mve.h (vsubq_n_f16): Define macro.
24504 (vsubq_n_f32): Likewise.
24505 (vbrsrq_n_f16): Likewise.
24506 (vbrsrq_n_f32): Likewise.
24507 (vcvtq_n_f16_s16): Likewise.
24508 (vcvtq_n_f32_s32): Likewise.
24509 (vcvtq_n_f16_u16): Likewise.
24510 (vcvtq_n_f32_u32): Likewise.
24511 (vcreateq_f16): Likewise.
24512 (vcreateq_f32): Likewise.
24513 (__arm_vsubq_n_f16): Define intrinsic.
24514 (__arm_vsubq_n_f32): Likewise.
24515 (__arm_vbrsrq_n_f16): Likewise.
24516 (__arm_vbrsrq_n_f32): Likewise.
24517 (__arm_vcvtq_n_f16_s16): Likewise.
24518 (__arm_vcvtq_n_f32_s32): Likewise.
24519 (__arm_vcvtq_n_f16_u16): Likewise.
24520 (__arm_vcvtq_n_f32_u32): Likewise.
24521 (__arm_vcreateq_f16): Likewise.
24522 (__arm_vcreateq_f32): Likewise.
24523 (vsubq): Define polymorphic variant.
24524 (vbrsrq): Likewise.
24525 (vcvtq_n): Likewise.
24526 * config/arm/arm_mve_builtins.def (BINOP_NONE_NONE_NONE_QUALIFIERS): Use
24527 it.
24528 (BINOP_NONE_NONE_IMM_QUALIFIERS): Likewise.
24529 (BINOP_NONE_UNONE_IMM_QUALIFIERS): Likewise.
24530 (BINOP_NONE_UNONE_UNONE_QUALIFIERS): Likewise.
24531 * config/arm/constraints.md (Rd): Define constraint to check constant is
24532 in the range of 1 to 16.
24533 * config/arm/mve.md (mve_vsubq_n_f<mode>): Define RTL pattern.
24534 mve_vbrsrq_n_f<mode>: Likewise.
24535 mve_vcvtq_n_to_f_<supf><mode>: Likewise.
24536 mve_vcreateq_f<mode>: Likewise.
24537 * config/arm/predicates.md (mve_imm_16): Define predicate to check
24538 the matching constraint Rd.
24539
24540 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
24541 Mihail Ionescu <mihail.ionescu@arm.com>
24542 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24543
24544 * config/arm/arm-builtins.c (hi_UP): Define mode.
24545 * config/arm/arm.h (IS_VPR_REGNUM): Move.
24546 * config/arm/arm.md (VPR_REGNUM): Define before APSRQ_REGNUM.
24547 (APSRQ_REGNUM): Modify.
24548 (APSRGE_REGNUM): Modify.
24549 * config/arm/arm_mve.h (vctp16q): Define macro.
24550 (vctp32q): Likewise.
24551 (vctp64q): Likewise.
24552 (vctp8q): Likewise.
24553 (vpnot): Likewise.
24554 (__arm_vctp16q): Define intrinsic.
24555 (__arm_vctp32q): Likewise.
24556 (__arm_vctp64q): Likewise.
24557 (__arm_vctp8q): Likewise.
24558 (__arm_vpnot): Likewise.
24559 * config/arm/arm_mve_builtins.def (UNOP_UNONE_UNONE): Use builtin
24560 qualifier.
24561 * config/arm/mve.md (mve_vctp<mode1>qhi): Define RTL pattern.
24562 (mve_vpnothi): Likewise.
24563
24564 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
24565 Mihail Ionescu <mihail.ionescu@arm.com>
24566 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24567
24568 * config/arm/arm.h (enum reg_class): Define new class EVEN_REGS.
24569 * config/arm/arm_mve.h (vdupq_n_s8): Define macro.
24570 (vdupq_n_s16): Likewise.
24571 (vdupq_n_s32): Likewise.
24572 (vabsq_s8): Likewise.
24573 (vabsq_s16): Likewise.
24574 (vabsq_s32): Likewise.
24575 (vclsq_s8): Likewise.
24576 (vclsq_s16): Likewise.
24577 (vclsq_s32): Likewise.
24578 (vclzq_s8): Likewise.
24579 (vclzq_s16): Likewise.
24580 (vclzq_s32): Likewise.
24581 (vnegq_s8): Likewise.
24582 (vnegq_s16): Likewise.
24583 (vnegq_s32): Likewise.
24584 (vaddlvq_s32): Likewise.
24585 (vaddvq_s8): Likewise.
24586 (vaddvq_s16): Likewise.
24587 (vaddvq_s32): Likewise.
24588 (vmovlbq_s8): Likewise.
24589 (vmovlbq_s16): Likewise.
24590 (vmovltq_s8): Likewise.
24591 (vmovltq_s16): Likewise.
24592 (vmvnq_s8): Likewise.
24593 (vmvnq_s16): Likewise.
24594 (vmvnq_s32): Likewise.
24595 (vrev16q_s8): Likewise.
24596 (vrev32q_s8): Likewise.
24597 (vrev32q_s16): Likewise.
24598 (vqabsq_s8): Likewise.
24599 (vqabsq_s16): Likewise.
24600 (vqabsq_s32): Likewise.
24601 (vqnegq_s8): Likewise.
24602 (vqnegq_s16): Likewise.
24603 (vqnegq_s32): Likewise.
24604 (vcvtaq_s16_f16): Likewise.
24605 (vcvtaq_s32_f32): Likewise.
24606 (vcvtnq_s16_f16): Likewise.
24607 (vcvtnq_s32_f32): Likewise.
24608 (vcvtpq_s16_f16): Likewise.
24609 (vcvtpq_s32_f32): Likewise.
24610 (vcvtmq_s16_f16): Likewise.
24611 (vcvtmq_s32_f32): Likewise.
24612 (vmvnq_u8): Likewise.
24613 (vmvnq_u16): Likewise.
24614 (vmvnq_u32): Likewise.
24615 (vdupq_n_u8): Likewise.
24616 (vdupq_n_u16): Likewise.
24617 (vdupq_n_u32): Likewise.
24618 (vclzq_u8): Likewise.
24619 (vclzq_u16): Likewise.
24620 (vclzq_u32): Likewise.
24621 (vaddvq_u8): Likewise.
24622 (vaddvq_u16): Likewise.
24623 (vaddvq_u32): Likewise.
24624 (vrev32q_u8): Likewise.
24625 (vrev32q_u16): Likewise.
24626 (vmovltq_u8): Likewise.
24627 (vmovltq_u16): Likewise.
24628 (vmovlbq_u8): Likewise.
24629 (vmovlbq_u16): Likewise.
24630 (vrev16q_u8): Likewise.
24631 (vaddlvq_u32): Likewise.
24632 (vcvtpq_u16_f16): Likewise.
24633 (vcvtpq_u32_f32): Likewise.
24634 (vcvtnq_u16_f16): Likewise.
24635 (vcvtmq_u16_f16): Likewise.
24636 (vcvtmq_u32_f32): Likewise.
24637 (vcvtaq_u16_f16): Likewise.
24638 (vcvtaq_u32_f32): Likewise.
24639 (__arm_vdupq_n_s8): Define intrinsic.
24640 (__arm_vdupq_n_s16): Likewise.
24641 (__arm_vdupq_n_s32): Likewise.
24642 (__arm_vabsq_s8): Likewise.
24643 (__arm_vabsq_s16): Likewise.
24644 (__arm_vabsq_s32): Likewise.
24645 (__arm_vclsq_s8): Likewise.
24646 (__arm_vclsq_s16): Likewise.
24647 (__arm_vclsq_s32): Likewise.
24648 (__arm_vclzq_s8): Likewise.
24649 (__arm_vclzq_s16): Likewise.
24650 (__arm_vclzq_s32): Likewise.
24651 (__arm_vnegq_s8): Likewise.
24652 (__arm_vnegq_s16): Likewise.
24653 (__arm_vnegq_s32): Likewise.
24654 (__arm_vaddlvq_s32): Likewise.
24655 (__arm_vaddvq_s8): Likewise.
24656 (__arm_vaddvq_s16): Likewise.
24657 (__arm_vaddvq_s32): Likewise.
24658 (__arm_vmovlbq_s8): Likewise.
24659 (__arm_vmovlbq_s16): Likewise.
24660 (__arm_vmovltq_s8): Likewise.
24661 (__arm_vmovltq_s16): Likewise.
24662 (__arm_vmvnq_s8): Likewise.
24663 (__arm_vmvnq_s16): Likewise.
24664 (__arm_vmvnq_s32): Likewise.
24665 (__arm_vrev16q_s8): Likewise.
24666 (__arm_vrev32q_s8): Likewise.
24667 (__arm_vrev32q_s16): Likewise.
24668 (__arm_vqabsq_s8): Likewise.
24669 (__arm_vqabsq_s16): Likewise.
24670 (__arm_vqabsq_s32): Likewise.
24671 (__arm_vqnegq_s8): Likewise.
24672 (__arm_vqnegq_s16): Likewise.
24673 (__arm_vqnegq_s32): Likewise.
24674 (__arm_vmvnq_u8): Likewise.
24675 (__arm_vmvnq_u16): Likewise.
24676 (__arm_vmvnq_u32): Likewise.
24677 (__arm_vdupq_n_u8): Likewise.
24678 (__arm_vdupq_n_u16): Likewise.
24679 (__arm_vdupq_n_u32): Likewise.
24680 (__arm_vclzq_u8): Likewise.
24681 (__arm_vclzq_u16): Likewise.
24682 (__arm_vclzq_u32): Likewise.
24683 (__arm_vaddvq_u8): Likewise.
24684 (__arm_vaddvq_u16): Likewise.
24685 (__arm_vaddvq_u32): Likewise.
24686 (__arm_vrev32q_u8): Likewise.
24687 (__arm_vrev32q_u16): Likewise.
24688 (__arm_vmovltq_u8): Likewise.
24689 (__arm_vmovltq_u16): Likewise.
24690 (__arm_vmovlbq_u8): Likewise.
24691 (__arm_vmovlbq_u16): Likewise.
24692 (__arm_vrev16q_u8): Likewise.
24693 (__arm_vaddlvq_u32): Likewise.
24694 (__arm_vcvtpq_u16_f16): Likewise.
24695 (__arm_vcvtpq_u32_f32): Likewise.
24696 (__arm_vcvtnq_u16_f16): Likewise.
24697 (__arm_vcvtmq_u16_f16): Likewise.
24698 (__arm_vcvtmq_u32_f32): Likewise.
24699 (__arm_vcvtaq_u16_f16): Likewise.
24700 (__arm_vcvtaq_u32_f32): Likewise.
24701 (__arm_vcvtaq_s16_f16): Likewise.
24702 (__arm_vcvtaq_s32_f32): Likewise.
24703 (__arm_vcvtnq_s16_f16): Likewise.
24704 (__arm_vcvtnq_s32_f32): Likewise.
24705 (__arm_vcvtpq_s16_f16): Likewise.
24706 (__arm_vcvtpq_s32_f32): Likewise.
24707 (__arm_vcvtmq_s16_f16): Likewise.
24708 (__arm_vcvtmq_s32_f32): Likewise.
24709 (vdupq_n): Define polymorphic variant.
24710 (vabsq): Likewise.
24711 (vclsq): Likewise.
24712 (vclzq): Likewise.
24713 (vnegq): Likewise.
24714 (vaddlvq): Likewise.
24715 (vaddvq): Likewise.
24716 (vmovlbq): Likewise.
24717 (vmovltq): Likewise.
24718 (vmvnq): Likewise.
24719 (vrev16q): Likewise.
24720 (vrev32q): Likewise.
24721 (vqabsq): Likewise.
24722 (vqnegq): Likewise.
24723 * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
24724 (UNOP_SNONE_NONE): Likewise.
24725 (UNOP_UNONE_UNONE): Likewise.
24726 (UNOP_UNONE_NONE): Likewise.
24727 * config/arm/constraints.md (e): Define new constriant to allow only
24728 even registers.
24729 * config/arm/mve.md (mve_vqabsq_s<mode>): Define RTL pattern.
24730 (mve_vnegq_s<mode>): Likewise.
24731 (mve_vmvnq_<supf><mode>): Likewise.
24732 (mve_vdupq_n_<supf><mode>): Likewise.
24733 (mve_vclzq_<supf><mode>): Likewise.
24734 (mve_vclsq_s<mode>): Likewise.
24735 (mve_vaddvq_<supf><mode>): Likewise.
24736 (mve_vabsq_s<mode>): Likewise.
24737 (mve_vrev32q_<supf><mode>): Likewise.
24738 (mve_vmovltq_<supf><mode>): Likewise.
24739 (mve_vmovlbq_<supf><mode>): Likewise.
24740 (mve_vcvtpq_<supf><mode>): Likewise.
24741 (mve_vcvtnq_<supf><mode>): Likewise.
24742 (mve_vcvtmq_<supf><mode>): Likewise.
24743 (mve_vcvtaq_<supf><mode>): Likewise.
24744 (mve_vrev16q_<supf>v16qi): Likewise.
24745 (mve_vaddlvq_<supf>v4si): Likewise.
24746
24747 2020-03-17 Jakub Jelinek <jakub@redhat.com>
24748
24749 * lra-spills.c (remove_pseudos): Fix up duplicated word issue in
24750 a dump message.
24751 * tree-sra.c (create_access_replacement): Fix up duplicated word issue
24752 in a comment.
24753 * read-rtl-function.c (find_param_by_name,
24754 function_reader::parse_enum_value, function_reader::get_insn_by_uid):
24755 Likewise.
24756 * spellcheck.c (get_edit_distance_cutoff): Likewise.
24757 * tree-data-ref.c (create_ifn_alias_checks): Likewise.
24758 * tree.def (SWITCH_EXPR): Likewise.
24759 * selftest.c (assert_str_contains): Likewise.
24760 * ipa-param-manipulation.h (class ipa_param_body_adjustments):
24761 Likewise.
24762 * tree-ssa-math-opts.c (convert_expand_mult_copysign): Likewise.
24763 * tree-ssa-loop-split.c (find_vdef_in_loop): Likewise.
24764 * langhooks.h (struct lang_hooks_for_decls): Likewise.
24765 * ipa-prop.h (struct ipa_param_descriptor): Likewise.
24766 * tree-ssa-strlen.c (handle_builtin_string_cmp, handle_store):
24767 Likewise.
24768 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
24769 * tree-ssa-reassoc.c (reassociate_bb): Likewise.
24770 * tree.c (component_ref_size): Likewise.
24771 * hsa-common.c (hsa_init_compilation_unit_data): Likewise.
24772 * gimple-ssa-sprintf.c (get_string_length, format_string,
24773 format_directive): Likewise.
24774 * omp-grid.c (grid_process_kernel_body_copy): Likewise.
24775 * input.c (string_concat_db::get_string_concatenation,
24776 test_lexer_string_locations_ucn4): Likewise.
24777 * cfgexpand.c (pass_expand::execute): Likewise.
24778 * gimple-ssa-warn-restrict.c (builtin_memref::offset_out_of_bounds,
24779 maybe_diag_overlap): Likewise.
24780 * rtl.c (RTX_CODE_HWINT_P_1): Likewise.
24781 * shrink-wrap.c (spread_components): Likewise.
24782 * tree-ssa-dse.c (initialize_ao_ref_for_dse, valid_ao_ref_for_dse):
24783 Likewise.
24784 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
24785 Likewise.
24786 * dwarf2out.c (dwarf2out_early_finish): Likewise.
24787 * gimple-ssa-store-merging.c: Likewise.
24788 * ira-costs.c (record_operand_costs): Likewise.
24789 * tree-vect-loop.c (vectorizable_reduction): Likewise.
24790 * target.def (dispatch): Likewise.
24791 (validate_dims, gen_ccmp_first): Fix up duplicated word issue
24792 in documentation text.
24793 * doc/tm.texi: Regenerated.
24794 * config/i386/x86-tune.def (X86_TUNE_PARTIAL_FLAG_REG_STALL): Fix up
24795 duplicated word issue in a comment.
24796 * config/i386/i386.c (ix86_test_loading_unspec): Likewise.
24797 * config/i386/i386-features.c (remove_partial_avx_dependency):
24798 Likewise.
24799 * config/msp430/msp430.c (msp430_select_section): Likewise.
24800 * config/gcn/gcn-run.c (load_image): Likewise.
24801 * config/aarch64/aarch64-sve.md (sve_ld1r<mode>): Likewise.
24802 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Likewise.
24803 * config/aarch64/falkor-tag-collision-avoidance.c
24804 (single_dest_per_chain): Likewise.
24805 * config/nvptx/nvptx.c (nvptx_record_fndecl): Likewise.
24806 * config/fr30/fr30.c (fr30_arg_partial_bytes): Likewise.
24807 * config/rs6000/rs6000-string.c (expand_cmp_vec_sequence): Likewise.
24808 * config/rs6000/rs6000-p8swap.c (replace_swapped_load_constant):
24809 Likewise.
24810 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
24811 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
24812 * config/rs6000/rs6000-logue.c
24813 (rs6000_emit_probe_stack_range_stack_clash): Likewise.
24814 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Likewise.
24815 Fix various other issues in the comment.
24816
24817 2020-03-17 Mihail Ionescu <mihail.ionescu@arm.com>
24818
24819 * config/arm/t-rmprofile: create new multilib for
24820 armv8.1-m.main+mve hard float and reuse v8-m.main ones for
24821 v8.1-m.main+mve.
24822
24823 2020-03-17 Jakub Jelinek <jakub@redhat.com>
24824
24825 PR tree-optimization/94015
24826 * tree-ssa-strlen.c (count_nonzero_bytes): Split portions of the
24827 function where EXP is address of the bytes being stored rather than
24828 the bytes themselves into count_nonzero_bytes_addr. Punt on zero
24829 sized MEM_REF. Use VAR_P macro and handle CONST_DECL like VAR_DECLs.
24830 Use ctor_for_folding instead of looking at DECL_INITIAL. Punt before
24831 calling native_encode_expr if host or target doesn't have 8-bit
24832 chars. Formatting fixes.
24833 (count_nonzero_bytes_addr): New function.
24834
24835 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
24836 Mihail Ionescu <mihail.ionescu@arm.com>
24837 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24838
24839 * config/arm/arm-builtins.c (UNOP_SNONE_SNONE_QUALIFIERS): Define.
24840 (UNOP_SNONE_NONE_QUALIFIERS): Likewise.
24841 (UNOP_SNONE_IMM_QUALIFIERS): Likewise.
24842 (UNOP_UNONE_NONE_QUALIFIERS): Likewise.
24843 (UNOP_UNONE_UNONE_QUALIFIERS): Likewise.
24844 (UNOP_UNONE_IMM_QUALIFIERS): Likewise.
24845 * config/arm/arm_mve.h (vmvnq_n_s16): Define macro.
24846 (vmvnq_n_s32): Likewise.
24847 (vrev64q_s8): Likewise.
24848 (vrev64q_s16): Likewise.
24849 (vrev64q_s32): Likewise.
24850 (vcvtq_s16_f16): Likewise.
24851 (vcvtq_s32_f32): Likewise.
24852 (vrev64q_u8): Likewise.
24853 (vrev64q_u16): Likewise.
24854 (vrev64q_u32): Likewise.
24855 (vmvnq_n_u16): Likewise.
24856 (vmvnq_n_u32): Likewise.
24857 (vcvtq_u16_f16): Likewise.
24858 (vcvtq_u32_f32): Likewise.
24859 (__arm_vmvnq_n_s16): Define intrinsic.
24860 (__arm_vmvnq_n_s32): Likewise.
24861 (__arm_vrev64q_s8): Likewise.
24862 (__arm_vrev64q_s16): Likewise.
24863 (__arm_vrev64q_s32): Likewise.
24864 (__arm_vrev64q_u8): Likewise.
24865 (__arm_vrev64q_u16): Likewise.
24866 (__arm_vrev64q_u32): Likewise.
24867 (__arm_vmvnq_n_u16): Likewise.
24868 (__arm_vmvnq_n_u32): Likewise.
24869 (__arm_vcvtq_s16_f16): Likewise.
24870 (__arm_vcvtq_s32_f32): Likewise.
24871 (__arm_vcvtq_u16_f16): Likewise.
24872 (__arm_vcvtq_u32_f32): Likewise.
24873 (vrev64q): Define polymorphic variant.
24874 * config/arm/arm_mve_builtins.def (UNOP_SNONE_SNONE): Use it.
24875 (UNOP_SNONE_NONE): Likewise.
24876 (UNOP_SNONE_IMM): Likewise.
24877 (UNOP_UNONE_UNONE): Likewise.
24878 (UNOP_UNONE_NONE): Likewise.
24879 (UNOP_UNONE_IMM): Likewise.
24880 * config/arm/mve.md (mve_vrev64q_<supf><mode>): Define RTL pattern.
24881 (mve_vcvtq_from_f_<supf><mode>): Likewise.
24882 (mve_vmvnq_n_<supf><mode>): Likewise.
24883
24884 2020-03-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
24885 Mihail Ionescu <mihail.ionescu@arm.com>
24886 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24887
24888 * config/arm/arm-builtins.c (UNOP_NONE_NONE_QUALIFIERS): Define macro.
24889 (UNOP_NONE_SNONE_QUALIFIERS): Likewise.
24890 (UNOP_NONE_UNONE_QUALIFIERS): Likewise.
24891 * config/arm/arm_mve.h (vrndxq_f16): Define macro.
24892 (vrndxq_f32): Likewise.
24893 (vrndq_f16) Likewise.
24894 (vrndq_f32): Likewise.
24895 (vrndpq_f16): Likewise.
24896 (vrndpq_f32): Likewise.
24897 (vrndnq_f16): Likewise.
24898 (vrndnq_f32): Likewise.
24899 (vrndmq_f16): Likewise.
24900 (vrndmq_f32): Likewise.
24901 (vrndaq_f16): Likewise.
24902 (vrndaq_f32): Likewise.
24903 (vrev64q_f16): Likewise.
24904 (vrev64q_f32): Likewise.
24905 (vnegq_f16): Likewise.
24906 (vnegq_f32): Likewise.
24907 (vdupq_n_f16): Likewise.
24908 (vdupq_n_f32): Likewise.
24909 (vabsq_f16): Likewise.
24910 (vabsq_f32): Likewise.
24911 (vrev32q_f16): Likewise.
24912 (vcvttq_f32_f16): Likewise.
24913 (vcvtbq_f32_f16): Likewise.
24914 (vcvtq_f16_s16): Likewise.
24915 (vcvtq_f32_s32): Likewise.
24916 (vcvtq_f16_u16): Likewise.
24917 (vcvtq_f32_u32): Likewise.
24918 (__arm_vrndxq_f16): Define intrinsic.
24919 (__arm_vrndxq_f32): Likewise.
24920 (__arm_vrndq_f16): Likewise.
24921 (__arm_vrndq_f32): Likewise.
24922 (__arm_vrndpq_f16): Likewise.
24923 (__arm_vrndpq_f32): Likewise.
24924 (__arm_vrndnq_f16): Likewise.
24925 (__arm_vrndnq_f32): Likewise.
24926 (__arm_vrndmq_f16): Likewise.
24927 (__arm_vrndmq_f32): Likewise.
24928 (__arm_vrndaq_f16): Likewise.
24929 (__arm_vrndaq_f32): Likewise.
24930 (__arm_vrev64q_f16): Likewise.
24931 (__arm_vrev64q_f32): Likewise.
24932 (__arm_vnegq_f16): Likewise.
24933 (__arm_vnegq_f32): Likewise.
24934 (__arm_vdupq_n_f16): Likewise.
24935 (__arm_vdupq_n_f32): Likewise.
24936 (__arm_vabsq_f16): Likewise.
24937 (__arm_vabsq_f32): Likewise.
24938 (__arm_vrev32q_f16): Likewise.
24939 (__arm_vcvttq_f32_f16): Likewise.
24940 (__arm_vcvtbq_f32_f16): Likewise.
24941 (__arm_vcvtq_f16_s16): Likewise.
24942 (__arm_vcvtq_f32_s32): Likewise.
24943 (__arm_vcvtq_f16_u16): Likewise.
24944 (__arm_vcvtq_f32_u32): Likewise.
24945 (vrndxq): Define polymorphic variants.
24946 (vrndq): Likewise.
24947 (vrndpq): Likewise.
24948 (vrndnq): Likewise.
24949 (vrndmq): Likewise.
24950 (vrndaq): Likewise.
24951 (vrev64q): Likewise.
24952 (vnegq): Likewise.
24953 (vabsq): Likewise.
24954 (vrev32q): Likewise.
24955 (vcvtbq_f32): Likewise.
24956 (vcvttq_f32): Likewise.
24957 (vcvtq): Likewise.
24958 * config/arm/arm_mve_builtins.def (VAR2): Define.
24959 (VAR1): Define.
24960 * config/arm/mve.md (mve_vrndxq_f<mode>): Add RTL pattern.
24961 (mve_vrndq_f<mode>): Likewise.
24962 (mve_vrndpq_f<mode>): Likewise.
24963 (mve_vrndnq_f<mode>): Likewise.
24964 (mve_vrndmq_f<mode>): Likewise.
24965 (mve_vrndaq_f<mode>): Likewise.
24966 (mve_vrev64q_f<mode>): Likewise.
24967 (mve_vnegq_f<mode>): Likewise.
24968 (mve_vdupq_n_f<mode>): Likewise.
24969 (mve_vabsq_f<mode>): Likewise.
24970 (mve_vrev32q_fv8hf): Likewise.
24971 (mve_vcvttq_f32_f16v4sf): Likewise.
24972 (mve_vcvtbq_f32_f16v4sf): Likewise.
24973 (mve_vcvtq_to_f_<supf><mode>): Likewise.
24974
24975 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
24976 Mihail Ionescu <mihail.ionescu@arm.com>
24977 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
24978
24979 * config/arm/arm-builtins.c (CF): Define mve_builtin_data.
24980 (VAR1): Define.
24981 (ARM_BUILTIN_MVE_PATTERN_START): Define.
24982 (arm_init_mve_builtins): Define function.
24983 (arm_init_builtins): Add TARGET_HAVE_MVE check.
24984 (arm_expand_builtin_1): Check the range of fcode.
24985 (arm_expand_mve_builtin): Define function to expand MVE builtins.
24986 (arm_expand_builtin): Check the range of fcode.
24987 * config/arm/arm_mve.h (__ARM_FEATURE_MVE): Define MVE floating point
24988 types.
24989 (__ARM_MVE_PRESERVE_USER_NAMESPACE): Define to protect user namespace.
24990 (vst4q_s8): Define macro.
24991 (vst4q_s16): Likewise.
24992 (vst4q_s32): Likewise.
24993 (vst4q_u8): Likewise.
24994 (vst4q_u16): Likewise.
24995 (vst4q_u32): Likewise.
24996 (vst4q_f16): Likewise.
24997 (vst4q_f32): Likewise.
24998 (__arm_vst4q_s8): Define inline builtin.
24999 (__arm_vst4q_s16): Likewise.
25000 (__arm_vst4q_s32): Likewise.
25001 (__arm_vst4q_u8): Likewise.
25002 (__arm_vst4q_u16): Likewise.
25003 (__arm_vst4q_u32): Likewise.
25004 (__arm_vst4q_f16): Likewise.
25005 (__arm_vst4q_f32): Likewise.
25006 (__ARM_mve_typeid): Define macro with MVE types.
25007 (__ARM_mve_coerce): Define macro with _Generic feature.
25008 (vst4q): Define polymorphic variant for different vst4q builtins.
25009 * config/arm/arm_mve_builtins.def: New file.
25010 * config/arm/iterators.md (VSTRUCT): Modify to allow XI and OI
25011 modes in MVE.
25012 * config/arm/mve.md (MVE_VLD_ST): Define iterator.
25013 (unspec): Define unspec.
25014 (mve_vst4q<mode>): Define RTL pattern.
25015 * config/arm/neon.md (mov<mode>): Modify expand to allow XI and OI
25016 modes in MVE.
25017 (neon_mov<mode>): Modify RTL define_insn to allow XI and OI modes
25018 in MVE.
25019 (define_split): Allow OI mode split for MVE after reload.
25020 (define_split): Allow XI mode split for MVE after reload.
25021 * config/arm/t-arm (arm.o): Add entry for arm_mve_builtins.def.
25022 (arm-builtins.o): Likewise.
25023
25024 2020-03-17 Christophe Lyon <christophe.lyon@linaro.org>
25025
25026 * c-typeck.c (process_init_element): Handle constructor_type with
25027 type size represented by POLY_INT_CST.
25028
25029 2020-03-17 Jakub Jelinek <jakub@redhat.com>
25030
25031 PR tree-optimization/94187
25032 * tree-ssa-strlen.c (count_nonzero_bytes): Punt if
25033 nchars - offset < nbytes.
25034
25035 PR middle-end/94189
25036 * builtins.c (expand_builtin_strnlen): Do return NULL_RTX if we would
25037 emit a warning if it was enabled and don't depend on TREE_NO_WARNING
25038 for code-generation.
25039
25040 2020-03-16 Vladimir Makarov <vmakarov@redhat.com>
25041
25042 PR target/94185
25043 * lra-spills.c (remove_pseudos): Do not reuse insn alternative
25044 after changing memory subreg.
25045
25046 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
25047 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
25048
25049 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Modify function to add
25050 emulator calls for dobule precision arithmetic operations for MVE.
25051
25052 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
25053 Mihail Ionescu <mihail.ionescu@arm.com>
25054 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
25055
25056 * common/config/arm/arm-common.c (arm_asm_auto_mfpu): When vfp_base
25057 feature bit is on and -mfpu=auto is passed as compiler option, do not
25058 generate error on not finding any matching fpu. Because in this case
25059 fpu is not required.
25060 * config/arm/arm-cpus.in (vfp_base): Define feature bit, this bit is
25061 enabled for MVE and also for all VFP extensions.
25062 (VFPv2): Modify fgroup to enable vfp_base feature bit when ever VFPv2
25063 is enabled.
25064 (MVE): Define fgroup to enable feature bits mve, vfp_base and armv7em.
25065 (MVE_FP): Define fgroup to enable feature bits is fgroup MVE and FPv5
25066 along with feature bits mve_float.
25067 (mve): Modify add options in armv8.1-m.main arch for MVE.
25068 (mve.fp): Modify add options in armv8.1-m.main arch for MVE with
25069 floating point.
25070 * config/arm/arm.c (use_return_insn): Replace the
25071 check with TARGET_VFP_BASE.
25072 (thumb2_legitimate_index_p): Replace TARGET_HARD_FLOAT with
25073 TARGET_VFP_BASE.
25074 (arm_rtx_costs_internal): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
25075 with TARGET_VFP_BASE, to allow cost calculations for copies in MVE as
25076 well.
25077 (arm_get_vfp_saved_size): Replace TARGET_HARD_FLOAT with
25078 TARGET_VFP_BASE, to allow space calculation for VFP registers in MVE
25079 as well.
25080 (arm_compute_frame_layout): Likewise.
25081 (arm_save_coproc_regs): Likewise.
25082 (arm_fixed_condition_code_regs): Modify to enable using VFPCC_REGNUM
25083 in MVE as well.
25084 (arm_hard_regno_mode_ok): Replace "TARGET_HARD_FLOAT || TARGET_HAVE_MVE"
25085 with equivalent macro TARGET_VFP_BASE.
25086 (arm_expand_epilogue_apcs_frame): Likewise.
25087 (arm_expand_epilogue): Likewise.
25088 (arm_conditional_register_usage): Likewise.
25089 (arm_declare_function_name): Add check to skip printing .fpu directive
25090 in assembly file when TARGET_VFP_BASE is enabled and fpu_to_print is
25091 "softvfp".
25092 * config/arm/arm.h (TARGET_VFP_BASE): Define.
25093 * config/arm/arm.md (arch): Add "mve" to arch.
25094 (eq_attr "arch" "mve"): Enable on TARGET_HAVE_MVE is true.
25095 (vfp_pop_multiple_with_writeback): Replace "TARGET_HARD_FLOAT
25096 || TARGET_HAVE_MVE" with equivalent macro TARGET_VFP_BASE.
25097 * config/arm/constraints.md (Uf): Define to allow modification to FPCCR
25098 in MVE.
25099 * config/arm/thumb2.md (thumb2_movsfcc_soft_insn): Modify target guard
25100 to not allow for MVE.
25101 * config/arm/unspecs.md (UNSPEC_GET_FPSCR): Move to volatile unspecs
25102 enum.
25103 (VUNSPEC_GET_FPSCR): Define.
25104 * config/arm/vfp.md (thumb2_movhi_vfp): Add support for VMSR and VMRS
25105 instructions which move to general-purpose Register from Floating-point
25106 Special register and vice-versa.
25107 (thumb2_movhi_fp16): Likewise.
25108 (thumb2_movsi_vfp): Add support for VMSR and VMRS instructions along
25109 with MCR and MRC instructions which set and get Floating-point Status
25110 and Control Register (FPSCR).
25111 (movdi_vfp): Modify pattern to enable Single-precision scalar float move
25112 in MVE.
25113 (thumb2_movdf_vfp): Modify pattern to enable Double-precision scalar
25114 float move patterns in MVE.
25115 (thumb2_movsfcc_vfp): Modify pattern to enable single float conditional
25116 code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
25117 (thumb2_movdfcc_vfp): Modify pattern to enable double float conditional
25118 code move patterns of VFP also in MVE by adding TARGET_VFP_BASE check.
25119 (push_multi_vfp): Add support to use VFP VPUSH pattern for MVE by adding
25120 TARGET_VFP_BASE check.
25121 (set_fpscr): Add support to set FPSCR register for MVE. Modify pattern
25122 using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
25123 register.
25124 (get_fpscr): Add support to get FPSCR register for MVE. Modify pattern
25125 using VFPCC_REGNUM as few MVE intrinsics use carry bit of FPSCR
25126 register.
25127
25128
25129 2020-03-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
25130 Mihail Ionescu <mihail.ionescu@arm.com>
25131 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
25132
25133 * config.gcc (arm_mve.h): Include mve intrinsics header file.
25134 * config/arm/aout.h (p0): Add new register name for MVE predicated
25135 cases.
25136 * config/arm-builtins.c (ARM_BUILTIN_SIMD_LANE_CHECK): Define macro
25137 common to Neon and MVE.
25138 (ARM_BUILTIN_NEON_LANE_CHECK): Renamed to ARM_BUILTIN_SIMD_LANE_CHECK.
25139 (arm_init_simd_builtin_types): Disable poly types for MVE.
25140 (arm_init_neon_builtins): Move a check to arm_init_builtins function.
25141 (arm_init_builtins): Use ARM_BUILTIN_SIMD_LANE_CHECK instead of
25142 ARM_BUILTIN_NEON_LANE_CHECK.
25143 (mve_dereference_pointer): Add function.
25144 (arm_expand_builtin_args): Call to mve_dereference_pointer when MVE is
25145 enabled.
25146 (arm_expand_neon_builtin): Moved to arm_expand_builtin function.
25147 (arm_expand_builtin): Moved from arm_expand_neon_builtin function.
25148 * config/arm/arm-c.c (__ARM_FEATURE_MVE): Define macro for MVE and MVE
25149 with floating point enabled.
25150 * config/arm/arm-protos.h (neon_immediate_valid_for_move): Renamed to
25151 simd_immediate_valid_for_move.
25152 (simd_immediate_valid_for_move): Renamed from
25153 neon_immediate_valid_for_move function.
25154 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Generate
25155 error if vfpv2 feature bit is disabled and mve feature bit is also
25156 disabled for HARD_FLOAT_ABI.
25157 (use_return_insn): Check to not push VFP regs for MVE.
25158 (aapcs_vfp_allocate): Add MVE check to have same Procedure Call Standard
25159 as Neon.
25160 (aapcs_vfp_allocate_return_reg): Likewise.
25161 (thumb2_legitimate_address_p): Check to return 0 on valid Thumb-2
25162 address operand for MVE.
25163 (arm_rtx_costs_internal): MVE check to determine cost of rtx.
25164 (neon_valid_immediate): Rename to simd_valid_immediate.
25165 (simd_valid_immediate): Rename from neon_valid_immediate.
25166 (simd_valid_immediate): MVE check on size of vector is 128 bits.
25167 (neon_immediate_valid_for_move): Rename to
25168 simd_immediate_valid_for_move.
25169 (simd_immediate_valid_for_move): Rename from
25170 neon_immediate_valid_for_move.
25171 (neon_immediate_valid_for_logic): Modify call to neon_valid_immediate
25172 function.
25173 (neon_make_constant): Modify call to neon_valid_immediate function.
25174 (neon_vector_mem_operand): Return VFP register for POST_INC or PRE_DEC
25175 for MVE.
25176 (output_move_neon): Add MVE check to generate vldm/vstm instrcutions.
25177 (arm_compute_frame_layout): Calculate space for saved VFP registers for
25178 MVE.
25179 (arm_save_coproc_regs): Save coproc registers for MVE.
25180 (arm_print_operand): Add case 'E' to print memory operands for MVE.
25181 (arm_print_operand_address): Check to print register number for MVE.
25182 (arm_hard_regno_mode_ok): Check for arm hard regno mode ok for MVE.
25183 (arm_modes_tieable_p): Check to allow structure mode for MVE.
25184 (arm_regno_class): Add VPR_REGNUM check.
25185 (arm_expand_epilogue_apcs_frame): MVE check to calculate epilogue code
25186 for APCS frame.
25187 (arm_expand_epilogue): MVE check for enabling pop instructions in
25188 epilogue.
25189 (arm_print_asm_arch_directives): Modify function to disable print of
25190 .arch_extension "mve" and "fp" for cases where MVE is enabled with
25191 "SOFT FLOAT ABI".
25192 (arm_vector_mode_supported_p): Check for modes available in MVE interger
25193 and MVE floating point.
25194 (arm_array_mode_supported_p): Add TARGET_HAVE_MVE check for array mode
25195 pointer support.
25196 (arm_conditional_register_usage): Enable usage of conditional regsiter
25197 for MVE.
25198 (fixed_regs[VPR_REGNUM]): Enable VPR_REG for MVE.
25199 (arm_declare_function_name): Modify function to disable print of
25200 .arch_extension "mve" and "fp" for cases where MVE is enabled with
25201 "SOFT FLOAT ABI".
25202 * config/arm/arm.h (TARGET_HAVE_MVE): Disable for soft float abi and
25203 when target general registers are required.
25204 (TARGET_HAVE_MVE_FLOAT): Likewise.
25205 (FIXED_REGISTERS): Add bit for VFP_REG class which is enabled in arm.c
25206 for MVE.
25207 (CALL_USED_REGISTERS): Set bit for VFP_REG class in CALL_USED_REGISTERS
25208 which indicate this is not available for across function calls.
25209 (FIRST_PSEUDO_REGISTER): Modify.
25210 (VALID_MVE_MODE): Define valid MVE mode.
25211 (VALID_MVE_SI_MODE): Define valid MVE SI mode.
25212 (VALID_MVE_SF_MODE): Define valid MVE SF mode.
25213 (VALID_MVE_STRUCT_MODE): Define valid MVE struct mode.
25214 (VPR_REGNUM): Add Vector Predication Register in arm_regs_in_sequence
25215 for MVE.
25216 (IS_VPR_REGNUM): Macro to check for VPR_REG register.
25217 (REG_ALLOC_ORDER): Add VPR_REGNUM entry.
25218 (enum reg_class): Add VPR_REG entry.
25219 (REG_CLASS_NAMES): Add VPR_REG entry.
25220 * config/arm/arm.md (VPR_REGNUM): Define.
25221 (conds): Check is_mve_type attrbiute to differentiate "conditional" and
25222 "unconditional" instructions.
25223 (arm_movsf_soft_insn): Modify RTL to not allow for MVE.
25224 (movdf_soft_insn): Modify RTL to not allow for MVE.
25225 (vfp_pop_multiple_with_writeback): Enable for MVE.
25226 (include "mve.md"): Include mve.md file.
25227 * config/arm/arm_mve.h: Add MVE intrinsics head file.
25228 * config/arm/constraints.md (Up): Constraint to enable "p0" register in MVE
25229 for vector predicated operands.
25230 * config/arm/iterators.md (VNIM1): Define.
25231 (VNINOTM1): Define.
25232 (VHFBF_split): Define
25233 * config/arm/mve.md: New file.
25234 (mve_mov<mode>): Define RTL for move, store and load in MVE.
25235 (mve_mov<mode>): Define move RTL pattern with vec_duplicate operator for
25236 second operand.
25237 * config/arm/neon.md (neon_immediate_valid_for_move): Rename with
25238 simd_immediate_valid_for_move.
25239 (neon_mov<mode>): Split pattern and move expand pattern "movv8hf" which
25240 is common to MVE and NEON to vec-common.md file.
25241 (vec_init<mode><V_elem_l>): Add TARGET_HAVE_MVE check.
25242 * config/arm/predicates.md (vpr_register_operand): Define.
25243 * config/arm/t-arm: Add mve.md file.
25244 * config/arm/types.md (mve_move): Add MVE instructions mve_move to
25245 attribute "type".
25246 (mve_store): Add MVE instructions mve_store to attribute "type".
25247 (mve_load): Add MVE instructions mve_load to attribute "type".
25248 (is_mve_type): Define attribute.
25249 * config/arm/vec-common.md (mov<mode>): Modify RTL expand to support
25250 standard move patterns in MVE along with NEON and IWMMXT with mode
25251 iterator VNIM1.
25252 (mov<mode>): Modify RTL expand to support standard move patterns in NEON
25253 and IWMMXT with mode iterator V8HF.
25254 (movv8hf): Define RTL expand to support standard "movv8hf" pattern in
25255 NEON and MVE.
25256 * config/arm/vfp.md (neon_immediate_valid_for_move): Rename to
25257 simd_immediate_valid_for_move.
25258
25259
25260 2020-03-16 H.J. Lu <hongjiu.lu@intel.com>
25261
25262 PR target/89229
25263 * config/i386/i386.md (*movsi_internal): Call ix86_output_ssemov
25264 for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL
25265 check.
25266 * config/i386/predicates.md (ext_sse_reg_operand): Removed.
25267
25268 2020-03-16 Jakub Jelinek <jakub@redhat.com>
25269
25270 PR debug/94167
25271 * tree-inline.c (insert_init_stmt): Don't gimple_regimplify_operands
25272 DEBUG_STMTs.
25273
25274 PR tree-optimization/94166
25275 * tree-ssa-reassoc.c (sort_by_mach_mode): Use SSA_NAME_VERSION
25276 as secondary comparison key.
25277
25278 2020-03-16 Bin Cheng <bin.cheng@linux.alibaba.com>
25279
25280 PR tree-optimization/94125
25281 * tree-loop-distribution.c
25282 (loop_distribution::break_alias_scc_partitions): Update post order
25283 number for merged scc.
25284
25285 2020-03-15 H.J. Lu <hongjiu.lu@intel.com>
25286
25287 PR target/89229
25288 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_SI and
25289 MODE_SF.
25290 * config/i386/i386.md (*movsf_internal): Call ix86_output_ssemov
25291 for TYPE_SSEMOV. Remove TARGET_PREFER_AVX256, TARGET_AVX512VL
25292 and ext_sse_reg_operand check.
25293
25294 2020-03-15 Lewis Hyatt <lhyatt@gmail.com>
25295
25296 * common.opt: Avoid redundancy in the help text.
25297 * config/arc/arc.opt: Likewise.
25298 * config/cr16/cr16.opt: Likewise.
25299
25300 2020-03-14 Jakub Jelinek <jakub@redhat.com>
25301
25302 PR middle-end/93566
25303 * tree-nested.c (convert_nonlocal_omp_clauses,
25304 convert_local_omp_clauses): Handle {,in_,task_}reduction clauses
25305 with C/C++ array sections.
25306
25307 2020-03-14 H.J. Lu <hongjiu.lu@intel.com>
25308
25309 PR target/89229
25310 * config/i386/i386.md (*movdi_internal): Call ix86_output_ssemov
25311 for TYPE_SSEMOV. Remove ext_sse_reg_operand and TARGET_AVX512VL
25312 check.
25313
25314 2020-03-14 Jakub Jelinek <jakub@redhat.com>
25315
25316 * gimple-fold.c (gimple_fold_builtin_strncpy): Change
25317 "a an" to "an" in a comment.
25318 * hsa-common.h (is_a_helper): Likewise.
25319 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.
25320 * config/arc/arc.c (arc600_corereg_hazard): Likewise.
25321 * config/s390/s390.c (s390_indirect_branch_via_thunk): Likewise.
25322
25323 2020-03-13 Aaron Sawdey <acsawdey@linux.ibm.com>
25324
25325 PR target/92379
25326 * config/rs6000/rs6000.c (num_insns_constant_multi): Don't shift a
25327 64-bit value by 64 bits (UB).
25328
25329 2020-03-13 Vladimir Makarov <vmakarov@redhat.com>
25330
25331 PR rtl-optimization/92303
25332 * lra-spills.c (remove_pseudos): Try to simplify memory subreg.
25333
25334 2020-03-13 Segher Boessenkool <segher@kernel.crashing.org>
25335
25336 PR rtl-optimization/94148
25337 PR rtl-optimization/94042
25338 * df-core.c (BB_LAST_CHANGE_AGE): Delete.
25339 (df_worklist_propagate_forward): New parameter last_change_age, use
25340 that instead of bb->aux.
25341 (df_worklist_propagate_backward): Ditto.
25342 (df_worklist_dataflow_doublequeue): Use a local array last_change_age.
25343
25344 2020-03-13 Richard Biener <rguenther@suse.de>
25345
25346 PR tree-optimization/94163
25347 * tree-ssa-pre.c (create_expression_by_pieces): Check
25348 whether alignment would be zero.
25349
25350 2020-03-13 Martin Liska <mliska@suse.cz>
25351
25352 PR lto/94157
25353 * lto-wrapper.c (run_gcc): Use concat for appending
25354 to collect_gcc_options.
25355
25356 2020-03-13 Jakub Jelinek <jakub@redhat.com>
25357
25358 PR target/94121
25359 * config/aarch64/aarch64.c (aarch64_add_offset_1): Use gen_int_mode
25360 instead of GEN_INT.
25361
25362 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
25363
25364 PR target/89229
25365 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DF.
25366 * config/i386/i386.md (*movdf_internal): Call ix86_output_ssemov
25367 for TYPE_SSEMOV. Remove TARGET_AVX512F, TARGET_PREFER_AVX256,
25368 TARGET_AVX512VL and ext_sse_reg_operand check.
25369
25370 2020-03-13 Bu Le <bule1@huawei.com>
25371
25372 PR target/94154
25373 * config/aarch64/aarch64.opt (-param=aarch64-float-recp-precision=)
25374 (-param=aarch64-double-recp-precision=): New options.
25375 * doc/invoke.texi: Document them.
25376 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Use them
25377 instead of hard-coding the choice of 1 for float and 2 for double.
25378
25379 2020-03-13 Eric Botcazou <ebotcazou@adacore.com>
25380
25381 PR rtl-optimization/94119
25382 * resource.h (clear_hashed_info_until_next_barrier): Declare.
25383 * resource.c (clear_hashed_info_until_next_barrier): New function.
25384 * reorg.c (add_to_delay_list): Fix formatting.
25385 (relax_delay_slots): Call clear_hashed_info_until_next_barrier on
25386 the next instruction after removing a BARRIER.
25387
25388 2020-03-13 Eric Botcazou <ebotcazou@adacore.com>
25389
25390 PR middle-end/92071
25391 * expmed.c (store_integral_bit_field): For fields larger than a word,
25392 call extract_bit_field on the value if the mode is BLKmode. Remove
25393 specific path for big-endian targets and tidy things up a little bit.
25394
25395 2020-03-12 Richard Sandiford <richard.sandiford@arm.com>
25396
25397 PR rtl-optimization/90275
25398 * cse.c (cse_insn): Delete no-op register moves too.
25399
25400 2020-03-12 Darius Galis <darius.galis@cyberthorstudios.com>
25401
25402 * config/rx/rx.md (CTRLREG_CPEN): Remove.
25403 * config/rx/rx.c (rx_print_operand): Remove CTRLREG_CPEN support.
25404
25405 2020-03-12 Richard Biener <rguenther@suse.de>
25406
25407 PR tree-optimization/94103
25408 * tree-ssa-sccvn.c (visit_reference_op_load): Avoid type
25409 punning when the mode precision is not sufficient.
25410
25411 2020-03-12 H.J. Lu <hongjiu.lu@intel.com>
25412
25413 PR target/89229
25414 * config/i386/i386.c (ix86_output_ssemov): Handle MODE_DI,
25415 MODE_V1DF and MODE_V2SF.
25416 * config/i386/mmx.md (MMXMODE:*mov<mode>_internal): Call
25417 ix86_output_ssemov for TYPE_SSEMOV. Remove ext_sse_reg_operand
25418 check.
25419
25420 2020-03-12 Jakub Jelinek <jakub@redhat.com>
25421
25422 * doc/tm.texi.in (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change
25423 ASM_OUTPUT_ALIGNED_DECL in description to ASM_OUTPUT_ALIGNED_LOCAL
25424 and ASM_OUTPUT_DECL to ASM_OUTPUT_LOCAL.
25425 * doc/tm.texi: Regenerated.
25426
25427 PR tree-optimization/94130
25428 * tree-ssa-dse.c: Include gimplify.h.
25429 (increment_start_addr): If stmt has lhs, drop the lhs from call and
25430 set it after the call to the original value of the first argument.
25431 Formatting fixes.
25432 (decrement_count): Formatting fix.
25433
25434 2020-03-11 Delia Burduv <delia.burduv@arm.com>
25435
25436 * config/arm/arm-builtins.c
25437 (arm_init_simd_builtin_scalar_types): New.
25438 * config/arm/arm_neon.h (vld2_bf16): Used new builtin type.
25439 (vld2q_bf16): Used new builtin type.
25440 (vld3_bf16): Used new builtin type.
25441 (vld3q_bf16): Used new builtin type.
25442 (vld4_bf16): Used new builtin type.
25443 (vld4q_bf16): Used new builtin type.
25444 (vld2_dup_bf16): Used new builtin type.
25445 (vld2q_dup_bf16): Used new builtin type.
25446 (vld3_dup_bf16): Used new builtin type.
25447 (vld3q_dup_bf16): Used new builtin type.
25448 (vld4_dup_bf16): Used new builtin type.
25449 (vld4q_dup_bf16): Used new builtin type.
25450
25451 2020-03-11 Jakub Jelinek <jakub@redhat.com>
25452
25453 PR target/94134
25454 * config/pdp11/pdp11.c (pdp11_asm_output_var): Call switch_to_section
25455 at the start to switch to data section. Don't print extra newline if
25456 .globl directive has not been emitted.
25457
25458 2020-03-11 Richard Biener <rguenther@suse.de>
25459
25460 * match.pd ((T *)(ptr - ptr-cst) -> &MEM[ptr + -ptr-cst]):
25461 New pattern.
25462
25463 2020-03-11 Eric Botcazou <ebotcazou@adacore.com>
25464
25465 PR middle-end/93961
25466 * tree.c (variably_modified_type_p) <RECORD_TYPE>: Recurse into fields
25467 whose type is a qualified union.
25468
25469 2020-03-11 Jakub Jelinek <jakub@redhat.com>
25470
25471 PR target/94121
25472 * config/aarch64/aarch64.c (aarch64_add_offset_1): Use absu_hwi
25473 instead of abs_hwi, change moffset type to unsigned HOST_WIDE_INT.
25474
25475 PR bootstrap/93962
25476 * value-prof.c (dump_histogram_value): Use abs_hwi instead of
25477 std::abs.
25478 (get_nth_most_common_value): Use abs_hwi instead of abs.
25479
25480 PR middle-end/94111
25481 * dfp.c (decimal_to_binary): Only use decimal128ToString if from->cl
25482 is rvc_normal, otherwise use real_to_decimal to print the number to
25483 string.
25484
25485 PR tree-optimization/94114
25486 * tree-loop-distribution.c (generate_memset_builtin): Call
25487 rewrite_to_non_trapping_overflow even on mem.
25488 (generate_memcpy_builtin): Call rewrite_to_non_trapping_overflow even
25489 on dest and src.
25490
25491 2020-03-10 Jeff Law <law@redhat.com>
25492
25493 * config/bfin/bfin.md (movsi_insv): Add length attribute.
25494
25495 2020-03-10 Jiufu Guo <guojiufu@linux.ibm.com>
25496
25497 PR target/93709
25498 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): Check
25499 NAN and SIGNED_ZEROR for smax/smin.
25500
25501 2020-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
25502
25503 PR target/90763
25504 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
25505 clause to handle P9V_BUILTIN_VEC_LXVL with const arguments.
25506
25507 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
25508
25509 * loop-iv.c (find_simple_exit): Make it static.
25510 * cfgloop.h: Remove the corresponding prototype.
25511
25512 2020-03-10 Roman Zhuykov <zhroma@ispras.ru>
25513
25514 * ddg.c (create_ddg): Fix intendation.
25515 (set_recurrence_length): Likewise.
25516 (create_ddg_all_sccs): Likewise.
25517
25518 2020-03-10 Jakub Jelinek <jakub@redhat.com>
25519
25520 PR target/94088
25521 * config/i386/i386.md (*testqi_ext_3): Call ix86_match_ccmode with
25522 CCZmode instead of CCNOmode if operands[2] has DImode and pos + len
25523 is 32.
25524
25525 2020-03-09 Jason Merrill <jason@redhat.com>
25526
25527 * gdbinit.in (pgs): Fix typo in documentation.
25528
25529 2020-03-09 Vladimir Makarov <vmakarov@redhat.com>
25530
25531 Revert:
25532
25533 2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
25534
25535 PR rtl-optimization/93564
25536 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
25537 do not honor reg alloc order.
25538
25539 2020-03-09 Andrew Pinski <apinski@marvell.com>
25540
25541 PR inline-asm/94095
25542 * doc/extend.texi (x86 Operand Modifiers): Fix column
25543 for 'A' modifier.
25544
25545 2020-03-09 Martin Liska <mliska@suse.cz>
25546
25547 PR target/93800
25548 * config/rs6000/rs6000.c (rs6000_option_override_internal):
25549 Remove set of str_align_loops and str_align_jumps as these
25550 should be set in previous 2 conditions in the function.
25551
25552 2020-03-09 Jakub Jelinek <jakub@redhat.com>
25553
25554 PR rtl-optimization/94045
25555 * params.opt (-param=max-find-base-term-values=): New option.
25556 * alias.c (find_base_term): Add cut-off for number of visited VALUEs
25557 in a single toplevel find_base_term call.
25558
25559 2020-03-06 Wilco Dijkstra <wdijkstr@arm.com>
25560
25561 PR target/91598
25562 * config/aarch64/aarch64-builtins.c (TYPES_TERNOPU_LANE): Add define.
25563 * config/aarch64/aarch64-simd.md
25564 (aarch64_vec_<su>mult_lane<Qlane>): Add new insn for widening lane mul.
25565 (aarch64_vec_<su>mlal_lane<Qlane>): Likewise.
25566 * config/aarch64/aarch64-simd-builtins.def: Add intrinsics.
25567 * config/aarch64/arm_neon.h:
25568 (vmlal_lane_s16): Expand using intrinsics rather than inline asm.
25569 (vmlal_lane_u16): Likewise.
25570 (vmlal_lane_s32): Likewise.
25571 (vmlal_lane_u32): Likewise.
25572 (vmlal_laneq_s16): Likewise.
25573 (vmlal_laneq_u16): Likewise.
25574 (vmlal_laneq_s32): Likewise.
25575 (vmlal_laneq_u32): Likewise.
25576 (vmull_lane_s16): Likewise.
25577 (vmull_lane_u16): Likewise.
25578 (vmull_lane_s32): Likewise.
25579 (vmull_lane_u32): Likewise.
25580 (vmull_laneq_s16): Likewise.
25581 (vmull_laneq_u16): Likewise.
25582 (vmull_laneq_s32): Likewise.
25583 (vmull_laneq_u32): Likewise.
25584 * config/aarch64/iterators.md (Vcondtype): New iterator for lane mul.
25585 (Qlane): Likewise.
25586
25587 2020-03-06 Wilco Dijkstra <wdijkstr@arm.com>
25588
25589 * aarch64/aarch64-simd.md (aarch64_mla_elt<mode>): Correct lane syntax.
25590 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25591 (aarch64_mls_elt<mode>): Likewise.
25592 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25593 (aarch64_fma4_elt<mode>): Likewise.
25594 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25595 (aarch64_fma4_elt_to_64v2df): Likewise.
25596 (aarch64_fnma4_elt<mode>): Likewise.
25597 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25598 (aarch64_fnma4_elt_to_64v2df): Likewise.
25599
25600 2020-03-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25601
25602 * config/aarch64/aarch64-sve2.md (@aarch64_sve_<sve_int_op><mode>:
25603 Specify movprfx attribute.
25604 (@aarch64_sve_<sve_int_op>_lane_<mode>): Likewise.
25605
25606 2020-03-06 David Edelsohn <dje.gcc@gmail.com>
25607
25608 PR target/94065
25609 * config/rs6000/aix61.h (TARGET_NO_SUM_IN_TOC): Set to 1 for
25610 cmodel=large.
25611 (TARGET_NO_FP_IN_TOC): Same.
25612 * config/rs6000/aix71.h: Same.
25613 * config/rs6000/aix72.h: Same.
25614
25615 2020-03-06 Andrew Pinski <apinski@marvell.com>
25616 Jeff Law <law@redhat.com>
25617
25618 PR rtl-optimization/93996
25619 * haifa-sched.c (remove_notes): Be more careful when adding
25620 REG_SAVE_NOTE.
25621
25622 2020-03-06 Delia Burduv <delia.burduv@arm.com>
25623
25624 * config/arm/arm_neon.h (vld2_bf16): New.
25625 (vld2q_bf16): New.
25626 (vld3_bf16): New.
25627 (vld3q_bf16): New.
25628 (vld4_bf16): New.
25629 (vld4q_bf16): New.
25630 (vld2_dup_bf16): New.
25631 (vld2q_dup_bf16): New.
25632 (vld3_dup_bf16): New.
25633 (vld3q_dup_bf16): New.
25634 (vld4_dup_bf16): New.
25635 (vld4q_dup_bf16): New.
25636 * config/arm/arm_neon_builtins.def
25637 (vld2): Changed to VAR13 and added v4bf, v8bf
25638 (vld2_dup): Changed to VAR8 and added v4bf, v8bf
25639 (vld3): Changed to VAR13 and added v4bf, v8bf
25640 (vld3_dup): Changed to VAR8 and added v4bf, v8bf
25641 (vld4): Changed to VAR13 and added v4bf, v8bf
25642 (vld4_dup): Changed to VAR8 and added v4bf, v8bf
25643 * config/arm/iterators.md (VDXBF2): New iterator.
25644 *config/arm/neon.md (neon_vld2): Use new iterators.
25645 (neon_vld2_dup<mode): Use new iterators.
25646 (neon_vld3<mode>): Likewise.
25647 (neon_vld3qa<mode>): Likewise.
25648 (neon_vld3qb<mode>): Likewise.
25649 (neon_vld3_dup<mode>): Likewise.
25650 (neon_vld4<mode>): Likewise.
25651 (neon_vld4qa<mode>): Likewise.
25652 (neon_vld4qb<mode>): Likewise.
25653 (neon_vld4_dup<mode>): Likewise.
25654 (neon_vld2_dupv8bf): New.
25655 (neon_vld3_dupv8bf): Likewise.
25656 (neon_vld4_dupv8bf): Likewise.
25657
25658 2020-03-06 Delia Burduv <delia.burduv@arm.com>
25659
25660 * config/arm/arm_neon.h (bfloat16x4x2_t): New typedef.
25661 (bfloat16x8x2_t): New typedef.
25662 (bfloat16x4x3_t): New typedef.
25663 (bfloat16x8x3_t): New typedef.
25664 (bfloat16x4x4_t): New typedef.
25665 (bfloat16x8x4_t): New typedef.
25666 (vst2_bf16): New.
25667 (vst2q_bf16): New.
25668 (vst3_bf16): New.
25669 (vst3q_bf16): New.
25670 (vst4_bf16): New.
25671 (vst4q_bf16): New.
25672 * config/arm/arm-builtins.c (v2bf_UP): Define.
25673 (VAR13): New.
25674 (arm_init_simd_builtin_types): Init Bfloat16x2_t eltype.
25675 * config/arm/arm-modes.def (V2BF): New mode.
25676 * config/arm/arm-simd-builtin-types.def
25677 (Bfloat16x2_t): New entry.
25678 * config/arm/arm_neon_builtins.def
25679 (vst2): Changed to VAR13 and added v4bf, v8bf
25680 (vst3): Changed to VAR13 and added v4bf, v8bf
25681 (vst4): Changed to VAR13 and added v4bf, v8bf
25682 * config/arm/iterators.md (VDXBF): New iterator.
25683 (VQ2BF): New iterator.
25684 *config/arm/neon.md (neon_vst2<mode>): Used new iterators.
25685 (neon_vst2<mode>): Used new iterators.
25686 (neon_vst3<mode>): Used new iterators.
25687 (neon_vst3<mode>): Used new iterators.
25688 (neon_vst3qa<mode>): Used new iterators.
25689 (neon_vst3qb<mode>): Used new iterators.
25690 (neon_vst4<mode>): Used new iterators.
25691 (neon_vst4<mode>): Used new iterators.
25692 (neon_vst4qa<mode>): Used new iterators.
25693 (neon_vst4qb<mode>): Used new iterators.
25694
25695 2020-03-06 Delia Burduv <delia.burduv@arm.com>
25696
25697 * config/aarch64/aarch64-simd-builtins.def
25698 (bfcvtn): New built-in function.
25699 (bfcvtn_q): New built-in function.
25700 (bfcvtn2): New built-in function.
25701 (bfcvt): New built-in function.
25702 * config/aarch64/aarch64-simd.md
25703 (aarch64_bfcvtn<q><mode>): New pattern.
25704 (aarch64_bfcvtn2v8bf): New pattern.
25705 (aarch64_bfcvtbf): New pattern.
25706 * config/aarch64/arm_bf16.h (float32_t): New typedef.
25707 (vcvth_bf16_f32): New intrinsic.
25708 * config/aarch64/arm_bf16.h (vcvt_bf16_f32): New intrinsic.
25709 (vcvtq_low_bf16_f32): New intrinsic.
25710 (vcvtq_high_bf16_f32): New intrinsic.
25711 * config/aarch64/iterators.md (V4SF_TO_BF): New mode iterator.
25712 (UNSPEC_BFCVTN): New UNSPEC.
25713 (UNSPEC_BFCVTN2): New UNSPEC.
25714 (UNSPEC_BFCVT): New UNSPEC.
25715 * config/arm/types.md (bf_cvt): New type.
25716
25717 2020-03-06 Andreas Krebbel <krebbel@linux.ibm.com>
25718
25719 * config/s390/s390.md ("tabort"): Get rid of two consecutive
25720 blanks in format string.
25721
25722 2020-03-05 H.J. Lu <hongjiu.lu@intel.com>
25723
25724 PR target/89229
25725 PR target/89346
25726 * config/i386/i386-protos.h (ix86_output_ssemov): New prototype.
25727 * config/i386/i386.c (ix86_get_ssemov): New function.
25728 (ix86_output_ssemov): Likewise.
25729 * config/i386/sse.md (VMOVE:mov<mode>_internal): Call
25730 ix86_output_ssemov for TYPE_SSEMOV. Remove TARGET_AVX512VL
25731 check.
25732 (*movxi_internal_avx512f): Call ix86_output_ssemov for TYPE_SSEMOV.
25733 (*movoi_internal_avx): Call ix86_output_ssemov for TYPE_SSEMOV.
25734 Remove ext_sse_reg_operand and TARGET_AVX512VL check.
25735 (*movti_internal): Likewise.
25736 (*movtf_internal): Call ix86_output_ssemov for TYPE_SSEMOV.
25737
25738 2020-03-05 Jeff Law <law@redhat.com>
25739
25740 PR tree-optimization/91890
25741 * gimple-ssa-warn-restrict.c (maybe_diag_overlap): Remove LOC argument.
25742 Use gimple_or_expr_nonartificial_location.
25743 (check_bounds_overlap): Drop LOC argument to maybe_diag_access_bounds.
25744 Use gimple_or_expr_nonartificial_location.
25745 * gimple.c (gimple_or_expr_nonartificial_location): New function.
25746 * gimple.h (gimple_or_expr_nonartificial_location): Declare it.
25747 * tree-ssa-strlen.c (maybe_warn_overflow): Use
25748 gimple_or_expr_nonartificial_location.
25749 (maybe_diag_stxncpy_trunc, handle_builtin_stxncpy_strncat): Likewise.
25750 (maybe_warn_pointless_strcmp): Likewise.
25751
25752 2020-03-05 Jakub Jelinek <jakub@redhat.com>
25753
25754 PR target/94046
25755 * config/i386/avx2intrin.h (_mm_mask_i32gather_ps): Fix first cast of
25756 SRC and MASK arguments to __m128 from __m128d.
25757 (_mm256_mask_i32gather_ps): Fix first cast of MASK argument to __m256
25758 from __m256d.
25759 (_mm_mask_i64gather_ps): Fix first cast of MASK argument to __m128
25760 from __m128d.
25761 * config/i386/xopintrin.h (_mm_permute2_pd): Fix first cast of C
25762 argument to __m128i from __m128d.
25763 (_mm256_permute2_pd): Fix first cast of C argument to __m256i from
25764 __m256d.
25765 (_mm_permute2_ps): Fix first cast of C argument to __m128i from __m128.
25766 (_mm256_permute2_ps): Fix first cast of C argument to __m256i from
25767 __m256.
25768
25769 2020-03-05 Delia Burduv <delia.burduv@arm.com>
25770
25771 * config/arm/arm_neon.h (vbfmmlaq_f32): New.
25772 (vbfmlalbq_f32): New.
25773 (vbfmlaltq_f32): New.
25774 (vbfmlalbq_lane_f32): New.
25775 (vbfmlaltq_lane_f32): New.
25776 (vbfmlalbq_laneq_f32): New.
25777 (vbfmlaltq_laneq_f32): New.
25778 * config/arm/arm_neon_builtins.def (vmmla): New.
25779 (vfmab): New.
25780 (vfmat): New.
25781 (vfmab_lane): New.
25782 (vfmat_lane): New.
25783 (vfmab_laneq): New.
25784 (vfmat_laneq): New.
25785 * config/arm/iterators.md (BF_MA): New int iterator.
25786 (bt): New int attribute.
25787 (VQXBF): Copy of VQX with V8BF.
25788 * config/arm/neon.md (neon_vmmlav8bf): New insn.
25789 (neon_vfma<bt>v8bf): New insn.
25790 (neon_vfma<bt>_lanev8bf): New insn.
25791 (neon_vfma<bt>_laneqv8bf): New expand.
25792 (neon_vget_high<mode>): Changed iterator to VQXBF.
25793 * config/arm/unspecs.md (UNSPEC_BFMMLA): New UNSPEC.
25794 (UNSPEC_BFMAB): New UNSPEC.
25795 (UNSPEC_BFMAT): New UNSPEC.
25796
25797 2020-03-05 Jakub Jelinek <jakub@redhat.com>
25798
25799 PR middle-end/93399
25800 * tree-pretty-print.h (pretty_print_string): Declare.
25801 * tree-pretty-print.c (pretty_print_string): Remove forward
25802 declaration, no longer static. Change nbytes parameter type
25803 from unsigned to size_t.
25804 * print-rtl.c (print_value) <case CONST_STRING>: Use
25805 pretty_print_string and for shrink way too long strings.
25806
25807 2020-03-05 Richard Biener <rguenther@suse.de>
25808 Jakub Jelinek <jakub@redhat.com>
25809
25810 PR tree-optimization/93582
25811 * tree-ssa-sccvn.c (vn_reference_lookup_3): Treat POINTER_PLUS_EXPR
25812 last operand as signed when looking for memset offset. Formatting
25813 fix.
25814
25815 2020-03-04 Andrew Pinski <apinski@marvell.com>
25816
25817 PR bootstrap/93962
25818 * value-prof.c (dump_histogram_value): Use std::abs.
25819
25820 2020-03-04 Martin Sebor <msebor@redhat.com>
25821
25822 PR tree-optimization/93986
25823 * tree-ssa-strlen.c (maybe_warn_overflow): Convert all wide_int
25824 operands to the same precision widest_int to avoid ICEs.
25825
25826 2020-03-04 Bill Schmidt <wschmidt@linux.ibm.com>
25827
25828 PR target/87560
25829 * rs6000-cpus.def (OTHER_ALTIVEC_MASKS): New #define.
25830 * rs6000.c (rs6000_disable_incompatible_switches): Add table entry
25831 for OPTION_MASK_ALTIVEC.
25832
25833 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
25834
25835 * config.gcc: Include the glibc-stdint.h header for zTPF.
25836
25837 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
25838
25839 * config/s390/s390.c (s390_secondary_memory_needed): Disallow
25840 direct FPR-GPR copies.
25841 (s390_register_info_gprtofpr): Disallow GPR content to be saved in
25842 FPRs.
25843
25844 2020-03-04 Andreas Krebbel <krebbel@linux.ibm.com>
25845
25846 * config/s390/s390.c (s390_emit_prologue): Specify the 2 new
25847 operands to the prologue_tpf expander.
25848 (s390_emit_epilogue): Likewise.
25849 (s390_option_override_internal): Do error checking and setup for
25850 the new options.
25851 * config/s390/tpf.h (TPF_TRACE_PROLOGUE_CHECK)
25852 (TPF_TRACE_EPILOGUE_CHECK, TPF_TRACE_PROLOGUE_TARGET)
25853 (TPF_TRACE_EPILOGUE_TARGET, TPF_TRACE_PROLOGUE_SKIP_TARGET)
25854 (TPF_TRACE_EPILOGUE_SKIP_TARGET): New macro definitions.
25855 * config/s390/tpf.md ("prologue_tpf", "epilogue_tpf"): Add two new
25856 operands for the check flag and the branch target.
25857 * config/s390/tpf.opt ("mtpf-trace-hook-prologue-check")
25858 ("mtpf-trace-hook-prologue-target")
25859 ("mtpf-trace-hook-epilogue-check")
25860 ("mtpf-trace-hook-epilogue-target", "mtpf-trace-skip"): New
25861 options.
25862 * doc/invoke.texi: Document -mtpf-trace-skip option. The other
25863 options are for debugging purposes and will not be documented
25864 here.
25865
25866 2020-03-04 Jakub Jelinek <jakub@redhat.com>
25867
25868 PR debug/93888
25869 * tree-inline.c (copy_decl_to_var): Copy DECL_BY_REFERENCE flag.
25870
25871 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Add offseti
25872 argument. Change pd argument so that it can be modified. Turn
25873 constant non-CONSTRUCTOR store into non-constant if it is too large.
25874 Adjust offset and size of CONSTRUCTOR or non-constant store to avoid
25875 overflows.
25876 (vn_walk_cb_data::vn_walk_cb_data, vn_reference_lookup_3): Adjust
25877 callers.
25878
25879 2020-02-04 Richard Biener <rguenther@suse.de>
25880
25881 PR tree-optimization/93964
25882 * graphite-isl-ast-to-gimple.c
25883 (gcc_expression_from_isl_ast_expr_id): Add intermediate
25884 conversion for pointer to integer converts.
25885 * graphite-scop-detection.c (assign_parameter_index_in_region):
25886 Relax assert.
25887
25888 2020-03-04 Martin Liska <mliska@suse.cz>
25889
25890 PR c/93886
25891 PR c/93887
25892 * doc/invoke.texi: Clarify --help=language and --help=common
25893 interaction.
25894
25895 2020-03-04 Jakub Jelinek <jakub@redhat.com>
25896
25897 PR tree-optimization/94001
25898 * tree-tailcall.c (process_assignment): Before comparing op1 to
25899 *ass_var, verify *ass_var is non-NULL.
25900
25901 2020-03-04 Kito Cheng <kito.cheng@sifive.com>
25902
25903 PR target/93995
25904 * config/riscv/riscv.c (riscv_emit_float_compare): Using NE to compare
25905 the result of IOR.
25906
25907 2020-03-03 Dennis Zhang <dennis.zhang@arm.com>
25908
25909 * config/arm/arm_bf16.h (vcvtah_f32_bf16, vcvth_bf16_f32): New.
25910 * config/arm/arm_neon.h (vcvt_f32_bf16, vcvtq_low_f32_bf16): New.
25911 (vcvtq_high_f32_bf16, vcvt_bf16_f32): New.
25912 (vcvtq_low_bf16_f32, vcvtq_high_bf16_f32): New.
25913 * config/arm/arm_neon_builtins.def (vbfcvt, vbfcvt_high): New entries.
25914 (vbfcvtv4sf, vbfcvtv4sf_high): Likewise.
25915 * config/arm/iterators.md (VBFCVT, VBFCVTM): New mode iterators.
25916 (V_bf_low, V_bf_cvt_m): New mode attributes.
25917 * config/arm/neon.md (neon_vbfcvtv4sf<VBFCVT:mode>): New.
25918 (neon_vbfcvtv4sf_highv8bf, neon_vbfcvtsf): New.
25919 (neon_vbfcvt<VBFCVT:mode>, neon_vbfcvt_highv8bf): New.
25920 (neon_vbfcvtbf_cvtmode<mode>, neon_vbfcvtbf): New
25921 * config/arm/unspecs.md (UNSPEC_BFCVT, UNSPEC_BFCVT_HIG): New.
25922
25923 2020-03-03 Jakub Jelinek <jakub@redhat.com>
25924
25925 PR tree-optimization/93582
25926 * tree-ssa-sccvn.h (vn_reference_lookup): Add mask argument.
25927 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add mask and masked_result
25928 members, initialize them in the constructor and if mask is non-NULL,
25929 artificially push_partial_def {} for the portions of the mask that
25930 contain zeros.
25931 (vn_walk_cb_data::finish): If mask is non-NULL, set masked_result to
25932 val and return (void *)-1. Formatting fix.
25933 (vn_reference_lookup_pieces): Adjust vn_walk_cb_data initialization.
25934 Formatting fix.
25935 (vn_reference_lookup): Add mask argument. If non-NULL, don't call
25936 fully_constant_vn_reference_p nor vn_reference_lookup_1 and return
25937 data.mask_result.
25938 (visit_nary_op): Handle BIT_AND_EXPR of a memory load and INTEGER_CST
25939 mask.
25940 (visit_stmt): Formatting fix.
25941
25942 2020-03-03 Richard Biener <rguenther@suse.de>
25943
25944 PR tree-optimization/93946
25945 * alias.h (refs_same_for_tbaa_p): Declare.
25946 * alias.c (refs_same_for_tbaa_p): New function.
25947 * tree-ssa-alias.c (ao_ref_alias_set): For a NULL ref return
25948 zero.
25949 * tree-ssa-scopedtables.h
25950 (avail_exprs_stack::lookup_avail_expr): Add output argument
25951 giving access to the hashtable entry.
25952 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
25953 Likewise.
25954 * tree-ssa-dom.c: Include alias.h.
25955 (dom_opt_dom_walker::optimize_stmt): Validate TBAA state before
25956 removing redundant store.
25957 * tree-ssa-sccvn.h (vn_reference_s::base_set): New member.
25958 (ao_ref_init_from_vn_reference): Adjust prototype.
25959 (vn_reference_lookup_pieces): Likewise.
25960 (vn_reference_insert_pieces): Likewise.
25961 * tree-ssa-sccvn.c: Track base alias set in addition to alias
25962 set everywhere.
25963 (eliminate_dom_walker::eliminate_stmt): Also check base alias
25964 set when removing redundant stores.
25965 (visit_reference_op_store): Likewise.
25966 * dse.c (record_store): Adjust valdity check for redundant
25967 store removal.
25968
25969 2020-03-03 Jakub Jelinek <jakub@redhat.com>
25970
25971 PR target/26877
25972 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Reorder.
25973
25974 PR rtl-optimization/94002
25975 * explow.c (plus_constant): Punt if cst has VOIDmode and
25976 get_pool_mode is different from mode.
25977
25978 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
25979
25980 * config/arc/arc.c (leigitimate_small_data_address_p): Check if an
25981 address has an offset which fits the scalling constraint for a
25982 load/store operation.
25983 (legitimate_scaled_address_p): Update use
25984 leigitimate_small_data_address_p.
25985 (arc_print_operand): Likewise.
25986 (arc_legitimate_address_p): Likewise.
25987 (legitimate_small_data_address_p): Likewise.
25988
25989 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
25990
25991 * config/arc/arc.md (fmasf4_fpu): Use accl_operand predicate.
25992 (fnmasf4_fpu): Likewise.
25993
25994 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
25995
25996 * config/arc/arc.md (adddi3): Early expand the 64bit operation into
25997 32bit ops.
25998 (subdi3): Likewise.
25999 (adddi3_i): Remove pattern.
26000 (subdi3_i): Likewise.
26001
26002 2020-03-03 Claudiu Zissulescu <claziss@synopsys.com>
26003
26004 * config/arc/arc.md (eh_return): Add length info.
26005
26006 2020-03-02 David Malcolm <dmalcolm@redhat.com>
26007
26008 * doc/invoke.texi (-fanalyzer-show-duplicate-count): New.
26009
26010 2020-03-02 David Malcolm <dmalcolm@redhat.com>
26011
26012 * doc/invoke.texi (Static Analyzer Options): Add
26013 -Wanalyzer-stale-setjmp-buffer to the list of options enabled
26014 by -fanalyzer.
26015
26016 2020-03-02 Uroš Bizjak <ubizjak@gmail.com>
26017
26018 PR target/93997
26019 * config/i386/i386.md (movstrict<mode>): Allow only
26020 registers with VALID_INT_MODE_P modes.
26021
26022 2020-03-02 Andrew Stubbs <ams@codesourcery.com>
26023
26024 * config/gcn/gcn-valu.md (dpp_move<mode>): New.
26025 (reduc_insn): Use 'U' and 'B' operand codes.
26026 (reduc_<reduc_op>_scal_<mode>): Allow all types.
26027 (reduc_<reduc_op>_scal_v64di): Delete.
26028 (*<reduc_op>_dpp_shr_<mode>): Allow all 1reg types.
26029 (*plus_carry_dpp_shr_v64si): Change to ...
26030 (*plus_carry_dpp_shr_<mode>): ... this and allow all 1reg int types.
26031 (mov_from_lane63_v64di): Change to ...
26032 (mov_from_lane63_<mode>): ... this, and allow all 64-bit modes.
26033 * config/gcn/gcn.c (gcn_expand_dpp_shr_insn): Increase buffer size.
26034 Support UNSPEC_MOV_DPP_SHR output formats.
26035 (gcn_expand_reduc_scalar): Add "use_moves" reductions.
26036 Add "use_extends" reductions.
26037 (print_operand_address): Add 'I' and 'U' codes.
26038 * config/gcn/gcn.md (unspec): Add UNSPEC_MOV_DPP_SHR.
26039
26040 2020-03-02 Martin Liska <mliska@suse.cz>
26041
26042 * lto-wrapper.c: Fix typo in comment about
26043 C++ standard version.
26044
26045 2020-03-01 Martin Sebor <msebor@redhat.com>
26046
26047 PR c++/92721
26048 * calls.c (init_attr_rdwr_indices): Correctly handle attribute.
26049
26050 2020-03-01 Martin Sebor <msebor@redhat.com>
26051
26052 PR middle-end/93829
26053 * tree-ssa-strlen.c (count_nonzero_bytes): Set the size to that
26054 of a pointer in the outermost ADDR_EXPRs.
26055
26056 2020-02-28 Jeff Law <law@redhat.com>
26057
26058 * config/v850/v850.h (STATIC_CHAIN_REGNUM): Change to r19.
26059 * config/v850/v850.c (v850_asm_trampoline_template): Update
26060 accordingly.
26061
26062 2020-02-28 Michael Meissner <meissner@linux.ibm.com>
26063
26064 PR target/93937
26065 * config/rs6000/vsx.md (vsx_extract_<mode>_<VS_scalar>mode_var):
26066 Delete insn.
26067
26068 2020-02-28 Martin Liska <mliska@suse.cz>
26069
26070 PR other/93965
26071 * configure.ac: Improve detection of ld_date by requiring
26072 either two dashes or none.
26073 * configure: Regenerate.
26074
26075 2020-02-28 Vladimir Makarov <vmakarov@redhat.com>
26076
26077 PR rtl-optimization/93564
26078 * ira-color.c (assign_hard_reg): Prefer smaller hard regno when we
26079 do not honor reg alloc order.
26080
26081 2020-02-27 Joel Hutton <Joel.Hutton@arm.com>
26082
26083 PR target/87612
26084 * config/aarch64/aarch64.c (aarch64_override_options): Fix
26085 misleading warning string.
26086
26087 2020-02-27 Martin Sebor <msebor@redhat.com>
26088
26089 * doc/invoke.texi (-Wbuiltin-declaration-mismatch): Fix a typo.
26090
26091 2020-02-27 Michael Meissner <meissner@linux.ibm.com>
26092
26093 PR target/93932
26094 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
26095 Split the insn into two parts. This insn only does variable
26096 extract from a register.
26097 (vsx_extract_<mode>_var_load, VSX_D iterator): New insn, do
26098 variable extract from memory.
26099 (vsx_extract_v4sf_var): Split the insn into two parts. This insn
26100 only does variable extract from a register.
26101 (vsx_extract_v4sf_var_load): New insn, do variable extract from
26102 memory.
26103 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Split the insn
26104 into two parts. This insn only does variable extract from a
26105 register.
26106 (vsx_extract_<mode>_var_load, VSX_EXTRACT_I iterator): New insn,
26107 do variable extract from memory.
26108
26109 2020-02-27 Martin Jambor <mjambor@suse.cz>
26110 Feng Xue <fxue@os.amperecomputing.com>
26111
26112 PR ipa/93707
26113 * ipa-cp.c (same_node_or_its_all_contexts_clone_p): Replaced with
26114 new function calls_same_node_or_its_all_contexts_clone_p.
26115 (cgraph_edge_brings_value_p): Use it.
26116 (cgraph_edge_brings_value_p): Likewise.
26117 (self_recursive_pass_through_p): Return false if caller is a clone.
26118 (self_recursive_agg_pass_through_p): Likewise.
26119
26120 2020-02-27 Jan Hubicka <hubicka@ucw.cz>
26121
26122 PR middle-end/92152
26123 * alias.c (ends_tbaa_access_path_p): Break out from ...
26124 (component_uses_parent_alias_set_from): ... here.
26125 * alias.h (ends_tbaa_access_path_p): Declare.
26126 * tree-ssa-alias.c (access_path_may_continue_p): Break out from ...;
26127 handle trailing arrays past end of tbaa access path.
26128 (aliasing_component_refs_p): ... here; likewise.
26129 (nonoverlapping_refs_since_match_p): Track TBAA segment of the access
26130 path; disambiguate also past end of it.
26131 (nonoverlapping_component_refs_p): Use only TBAA segment of the access
26132 path.
26133
26134 2020-02-27 Mihail Ionescu <mihail.ionescu@arm.com>
26135
26136 * (__ARM_NUM_LANES, __arm_lane, __arm_lane_q): Move to the
26137 beginning of the file.
26138 (vcreate_bf16, vcombine_bf16): New.
26139 (vdup_n_bf16, vdupq_n_bf16): New.
26140 (vdup_lane_bf16, vdup_laneq_bf16): New.
26141 (vdupq_lane_bf16, vdupq_laneq_bf16): New.
26142 (vduph_lane_bf16, vduph_laneq_bf16): New.
26143 (vset_lane_bf16, vsetq_lane_bf16): New.
26144 (vget_lane_bf16, vgetq_lane_bf16): New.
26145 (vget_high_bf16, vget_low_bf16): New.
26146 (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
26147 (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
26148 (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
26149 (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
26150 (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
26151 (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
26152 (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
26153 (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
26154 (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
26155 (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
26156 (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New.
26157 (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
26158 (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
26159 (vreinterpretq_bf16_p128): New.
26160 (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
26161 (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
26162 (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
26163 (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
26164 (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
26165 (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
26166 (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
26167 (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
26168 (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
26169 (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
26170 (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
26171 (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
26172 (vreinterpretq_p128_bf16): New.
26173 * config/arm/arm_neon_builtins.def (VDX): Add V4BF.
26174 (V_elem): Likewise.
26175 (V_elem_l): Likewise.
26176 (VD_LANE): Likewise.
26177 (VQX) Add V8BF.
26178 (V_DOUBLE): Likewise.
26179 (VDQX): Add V4BF and V8BF.
26180 (V_two_elem, V_three_elem, V_four_elem): Likewise.
26181 (V_reg): Likewise.
26182 (V_HALF): Likewise.
26183 (V_double_vector_mode): Likewise.
26184 (V_cmp_result): Likewise.
26185 (V_uf_sclr): Likewise.
26186 (V_sz_elem): Likewise.
26187 (Is_d_reg): Likewise.
26188 (V_mode_nunits): Likewise.
26189 * config/arm/neon.md (neon_vdup_lane): Enable for BFloat16.
26190
26191 2020-02-27 Andrew Stubbs <ams@codesourcery.com>
26192
26193 * config/gcn/gcn-valu.md (VEC_SUBDWORD_MODE): New mode iterator.
26194 (<expander><mode>2<exec>): Change modes to VEC_ALL1REG_INT_MODE.
26195 (<expander><mode>3<exec>): Likewise.
26196 (<expander><mode>3): New.
26197 (v<expander><mode>3): New.
26198 (<expander><mode>3): New.
26199 (<expander><mode>3<exec>): Rename to ...
26200 (<expander>v64si3<exec>): ... this, and change modes to V64SI.
26201 * config/gcn/gcn.md (mnemonic): Use '%B' for not.
26202
26203 2020-02-27 Alexandre Oliva <oliva@adacore.com>
26204
26205 * config/vx-common.h (NO_DOLLAR_IN_LABEL, NO_DOT_IN_LABEL): Leave
26206 them alone on vx7.
26207
26208 2020-02-27 Richard Biener <rguenther@suse.de>
26209
26210 PR tree-optimization/93508
26211 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle _CHK like
26212 non-_CHK variants. Valueize their length arguments.
26213
26214 2020-02-27 Richard Biener <rguenther@suse.de>
26215
26216 PR tree-optimization/93953
26217 * tree-vect-slp.c (slp_copy_subtree): Avoid keeping a reference
26218 to the hash-map entry.
26219
26220 2020-02-27 Andrew Stubbs <ams@codesourcery.com>
26221
26222 * config/gcn/gcn.md (mov<mode>): Add transformations for BI subregs.
26223
26224 2020-02-27 Mark Williams <mwilliams@fb.com>
26225
26226 * dwarf2out.c (file_name_acquire): Call remap_debug_filename.
26227 * lto-opts.c (lto_write_options): Drop -fdebug-prefix-map,
26228 -ffile-prefix-map and -fmacro-prefix-map.
26229 * lto-streamer-out.c: Include file-prefix-map.h.
26230 (lto_output_location): Remap the file part of locations.
26231
26232 2020-02-27 Jakub Jelinek <jakub@redhat.com>
26233
26234 PR c/93949
26235 * gimplify.c (gimplify_init_constructor): Don't promote readonly
26236 DECL_REGISTER variables to TREE_STATIC.
26237
26238 PR tree-optimization/93582
26239 PR tree-optimization/93945
26240 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle memset with
26241 non-zero INTEGER_CST second argument and ref->offset or ref->size
26242 not a multiple of BITS_PER_UNIT.
26243
26244 2020-02-27 Jonathan Wakely <jwakely@redhat.com>
26245
26246 * doc/install.texi (Binaries): Update description of BullFreeware.
26247
26248 2020-02-26 Sandra Loosemore <sandra@codesourcery.com>
26249
26250 PR c++/90467
26251
26252 * doc/invoke.texi (Option Summary): Re-alphabetize warnings in
26253 C++ Language Options, Warning Options, and Static Analyzer
26254 Options lists. Document negative form of options enabled by
26255 default. Move some things around to more accurately sort
26256 warnings by category.
26257 (C++ Dialect Options, Warning Options, Static Analyzer
26258 Options): Document negative form of options when enabled by
26259 default. Move some things around to more accurately sort
26260 warnings by category. Add some missing index entries.
26261 Light copy-editing.
26262
26263 2020-02-26 Carl Love <cel@us.ibm.com>
26264
26265 PR target/91276
26266 * doc/extend.texi (PowerPC AltiVec Built-in Functions available on
26267 ISA 2.07): The builtin-function name __builtin_crypto_vpmsumb is only
26268 for the vector unsigned short arguments. It is also listed as the
26269 name of the built-in for arguments vector unsigned short,
26270 vector unsigned int and vector unsigned long long built-ins. The
26271 name of the builtins for these arguments should be:
26272 __builtin_crypto_vpmsumh, __builtin_crypto_vpmsumw and
26273 __builtin_crypto_vpmsumd respectively.
26274
26275 2020-02-26 Richard Biener <rguenther@suse.de>
26276
26277 * tree-vect-slp.c (vect_print_slp_tree): Also dump ref count
26278 and load permutation.
26279
26280 2020-02-26 Richard Sandiford <richard.sandiford@arm.com>
26281
26282 PR middle-end/93843
26283 * optabs-tree.c (supportable_convert_operation): Reject types with
26284 scalar modes.
26285
26286 2020-02-26 David Malcolm <dmalcolm@redhat.com>
26287
26288 * Makefile.in (ANALYZER_OBJS): Add analyzer/bar-chart.o.
26289
26290 2020-02-26 Jakub Jelinek <jakub@redhat.com>
26291
26292 PR tree-optimization/93820
26293 * gimple-ssa-store-merging.c (check_no_overlap): Change RHS_CODE
26294 argument to ALL_INTEGER_CST_P boolean.
26295 (imm_store_chain_info::try_coalesce_bswap): Adjust caller.
26296 (imm_store_chain_info::coalesce_immediate_stores): Likewise. Handle
26297 adjacent INTEGER_CST store into merged_store->only_constants like
26298 overlapping one.
26299
26300 2020-02-25 Jakub Jelinek <jakub@redhat.com>
26301
26302 PR other/93912
26303 * config/sh/sh.c (expand_cbranchdi4): Fix comment typo, probablity
26304 -> probability.
26305 * cfghooks.c (verify_flow_info): Likewise.
26306 * predict.c (combine_predictions_for_bb): Likewise.
26307 * bb-reorder.c (connect_better_edge_p): Likewise. Fix comment typo,
26308 sucessor -> successor.
26309 (find_traces_1_round): Fix comment typo, destinarion -> destination.
26310 * omp-expand.c (expand_oacc_for): Fix comment typo, sucessors ->
26311 successors.
26312 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Fix dump
26313 message typo, sucessors -> successors.
26314
26315 2020-02-25 Martin Sebor <msebor@redhat.com>
26316
26317 * doc/extend.texi (attribute access): Correct an example.
26318
26319 2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
26320
26321 * config/aarch64/aarch64-builtins.c (aarch64_scalar_builtin_types):
26322 Add simd_bf.
26323 (aarch64_init_simd_builtin_scalar_types): Register simd_bf.
26324 (VAR15, VAR16): New.
26325 * config/aarch64/iterators.md (VALLDIF): Enable for V4BF and V8BF.
26326 (VD): Enable for V4BF.
26327 (VDC): Likewise.
26328 (VQ): Enable for V8BF.
26329 (VQ2): Likewise.
26330 (VQ_NO2E): Likewise.
26331 (VDBL, Vdbl): Add V4BF.
26332 (V_INT_EQUIV, v_int_equiv): Add V4BF and V8BF.
26333 * config/aarch64/arm_neon.h (bfloat16x4x2_t): New typedef.
26334 (bfloat16x8x2_t): Likewise.
26335 (bfloat16x4x3_t): Likewise.
26336 (bfloat16x8x3_t): Likewise.
26337 (bfloat16x4x4_t): Likewise.
26338 (bfloat16x8x4_t): Likewise.
26339 (vcombine_bf16): New.
26340 (vld1_bf16, vld1_bf16_x2): New.
26341 (vld1_bf16_x3, vld1_bf16_x4): New.
26342 (vld1q_bf16, vld1q_bf16_x2): New.
26343 (vld1q_bf16_x3, vld1q_bf16_x4): New.
26344 (vld1_lane_bf16): New.
26345 (vld1q_lane_bf16): New.
26346 (vld1_dup_bf16): New.
26347 (vld1q_dup_bf16): New.
26348 (vld2_bf16): New.
26349 (vld2q_bf16): New.
26350 (vld2_dup_bf16): New.
26351 (vld2q_dup_bf16): New.
26352 (vld3_bf16): New.
26353 (vld3q_bf16): New.
26354 (vld3_dup_bf16): New.
26355 (vld3q_dup_bf16): New.
26356 (vld4_bf16): New.
26357 (vld4q_bf16): New.
26358 (vld4_dup_bf16): New.
26359 (vld4q_dup_bf16): New.
26360 (vst1_bf16, vst1_bf16_x2): New.
26361 (vst1_bf16_x3, vst1_bf16_x4): New.
26362 (vst1q_bf16, vst1q_bf16_x2): New.
26363 (vst1q_bf16_x3, vst1q_bf16_x4): New.
26364 (vst1_lane_bf16): New.
26365 (vst1q_lane_bf16): New.
26366 (vst2_bf16): New.
26367 (vst2q_bf16): New.
26368 (vst3_bf16): New.
26369 (vst3q_bf16): New.
26370 (vst4_bf16): New.
26371 (vst4q_bf16): New.
26372
26373 2020-02-25 Mihail Ionescu <mihail.ionescu@arm.com>
26374
26375 * config/aarch64/iterators.md (VDQF_F16) Add V4BF and V8BF.
26376 (VALL_F16): Likewise.
26377 (VALLDI_F16): Likewise.
26378 (Vtype): Likewise.
26379 (Vetype): Likewise.
26380 (vswap_width_name): Likewise.
26381 (VSWAP_WIDTH): Likewise.
26382 (Vel): Likewise.
26383 (VEL): Likewise.
26384 (q): Likewise.
26385 * config/aarch64/arm_neon.h (vset_lane_bf16, vsetq_lane_bf16): New.
26386 (vget_lane_bf16, vgetq_lane_bf16): New.
26387 (vcreate_bf16): New.
26388 (vdup_n_bf16, vdupq_n_bf16): New.
26389 (vdup_lane_bf16, vdup_laneq_bf16): New.
26390 (vdupq_lane_bf16, vdupq_laneq_bf16): New.
26391 (vduph_lane_bf16, vduph_laneq_bf16): New.
26392 (vreinterpret_bf16_u8, vreinterpretq_bf16_u8): New.
26393 (vreinterpret_bf16_u16, vreinterpretq_bf16_u16): New.
26394 (vreinterpret_bf16_u32, vreinterpretq_bf16_u32): New.
26395 (vreinterpret_bf16_u64, vreinterpretq_bf16_u64): New.
26396 (vreinterpret_bf16_s8, vreinterpretq_bf16_s8): New.
26397 (vreinterpret_bf16_s16, vreinterpretq_bf16_s16): New.
26398 (vreinterpret_bf16_s32, vreinterpretq_bf16_s32): New.
26399 (vreinterpret_bf16_s64, vreinterpretq_bf16_s64): New.
26400 (vreinterpret_bf16_p8, vreinterpretq_bf16_p8): New.
26401 (vreinterpret_bf16_p16, vreinterpretq_bf16_p16): New.
26402 (vreinterpret_bf16_p64, vreinterpretq_bf16_p64): New
26403 (vreinterpret_bf16_f16, vreinterpretq_bf16_f16): New
26404 (vreinterpret_bf16_f32, vreinterpretq_bf16_f32): New.
26405 (vreinterpret_bf16_f64, vreinterpretq_bf16_f64): New.
26406 (vreinterpretq_bf16_p128): New.
26407 (vreinterpret_s8_bf16, vreinterpretq_s8_bf16): New.
26408 (vreinterpret_s16_bf16, vreinterpretq_s16_bf16): New.
26409 (vreinterpret_s32_bf16, vreinterpretq_s32_bf16): New.
26410 (vreinterpret_s64_bf16, vreinterpretq_s64_bf16): New.
26411 (vreinterpret_u8_bf16, vreinterpretq_u8_bf16): New.
26412 (vreinterpret_u16_bf16, vreinterpretq_u16_bf16): New.
26413 (vreinterpret_u32_bf16, vreinterpretq_u32_bf16): New.
26414 (vreinterpret_u64_bf16, vreinterpretq_u64_bf16): New.
26415 (vreinterpret_p8_bf16, vreinterpretq_p8_bf16): New.
26416 (vreinterpret_p16_bf16, vreinterpretq_p16_bf16): New.
26417 (vreinterpret_p64_bf16, vreinterpretq_p64_bf16): New.
26418 (vreinterpret_f32_bf16, vreinterpretq_f32_bf16): New.
26419 (vreinterpret_f64_bf16,vreinterpretq_f64_bf16): New.
26420 (vreinterpret_f16_bf16,vreinterpretq_f16_bf16): New.
26421 (vreinterpretq_p128_bf16): New.
26422
26423 2020-02-25 Dennis Zhang <dennis.zhang@arm.com>
26424
26425 * config/arm/arm_neon.h (vbfdot_f32, vbfdotq_f32): New
26426 (vbfdot_lane_f32, vbfdotq_laneq_f32): New.
26427 (vbfdot_laneq_f32, vbfdotq_lane_f32): New.
26428 * config/arm/arm_neon_builtins.def (vbfdot): New entry.
26429 (vbfdot_lanev4bf, vbfdot_lanev8bf): Likewise.
26430 * config/arm/iterators.md (VSF2BF): New attribute.
26431 * config/arm/neon.md (neon_vbfdot<VCVTF:mode>): New entry.
26432 (neon_vbfdot_lanev4bf<VCVTF:mode>): Likewise.
26433 (neon_vbfdot_lanev8bf<VCVTF:mode>): Likewise.
26434
26435 2020-02-25 Christophe Lyon <christophe.lyon@linaro.org>
26436
26437 * config/arm/arm.md (required_for_purecode): New attribute.
26438 (enabled): Handle required_for_purecode.
26439 * config/arm/thumb1.md (thumb1_movsi_insn): Add alternative to
26440 work with -mpure-code.
26441
26442 2020-02-25 Jakub Jelinek <jakub@redhat.com>
26443
26444 PR rtl-optimization/93908
26445 * combine.c (find_split_point): For store into ZERO_EXTRACT, and src
26446 with mask.
26447
26448 2019-02-25 Eric Botcazou <ebotcazou@adacore.com>
26449
26450 * dwarf2out.c (dwarf2out_size_function): Run in early-DWARF mode.
26451
26452 2020-02-25 Roman Zhuykov <zhroma@ispras.ru>
26453
26454 * doc/install.texi (--enable-checking): Adjust wording.
26455
26456 2020-02-25 Richard Biener <rguenther@suse.de>
26457
26458 PR tree-optimization/93868
26459 * tree-vect-slp.c (slp_copy_subtree): New function.
26460 (vect_attempt_slp_rearrange_stmts): Copy the SLP tree before
26461 re-arranging stmts in it.
26462
26463 2020-02-25 Jakub Jelinek <jakub@redhat.com>
26464
26465 PR middle-end/93874
26466 * passes.c (pass_manager::dump_passes): Create a cgraph node for the
26467 dummy function and remove it at the end.
26468
26469 PR translation/93864
26470 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Fix comment typo
26471 paramter -> parameter.
26472 * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Likewise.
26473 * ipa-prop.h (struct ipa_agg_replacement_value): Likewise.
26474
26475 2020-02-24 Roman Zhuykov <zhroma@ispras.ru>
26476
26477 * doc/install.texi (--enable-checking): Properly document current
26478 behavior.
26479 (--enable-stage1-checking): Minor clarification about bootstrap.
26480
26481 2020-02-24 David Malcolm <dmalcolm@redhat.com>
26482
26483 PR analyzer/93032
26484 * doc/invoke.texi (-Wnanalyzer-tainted-array-index): Note that
26485 -fanalyzer-checker=taint is also required.
26486 (-fanalyzer-checker=): Note that providing this option enables the
26487 given checker, and doing so may be required for checkers that are
26488 disabled by default.
26489
26490 2020-02-24 David Malcolm <dmalcolm@redhat.com>
26491
26492 * doc/invoke.texi (-fanalyzer-verbosity=): "2" only shows
26493 significant control flow events; add a "3" which shows all
26494 control flow events; the old "3" becomes "4".
26495
26496 2020-02-24 Jakub Jelinek <jakub@redhat.com>
26497
26498 PR tree-optimization/93582
26499 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Consider
26500 pd.offset and pd.size to be counted in bits rather than bytes, add
26501 support for maxsizei that is not a multiple of BITS_PER_UNIT and
26502 handle bitfield stores and loads.
26503 (vn_reference_lookup_3): Don't call ranges_known_overlap_p with
26504 uncomparable quantities - bytes vs. bits. Allow push_partial_def
26505 on offsets/sizes that aren't multiple of BITS_PER_UNIT and adjust
26506 pd.offset/pd.size to be counted in bits rather than bytes.
26507 Formatting fix. Rename shadowed len variable to buflen.
26508
26509 2020-02-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26510 Kugan Vivekandarajah <kugan.vivekanandarajah@linaro.org>
26511
26512 PR driver/47785
26513 * gcc.c (putenv_COLLECT_AS_OPTIONS): New function.
26514 (driver::main): Call putenv_COLLECT_AS_OPTIONS.
26515 * opts-common.c (parse_options_from_collect_gcc_options): New function.
26516 (prepend_xassembler_to_collect_as_options): Likewise.
26517 * opts.h (parse_options_from_collect_gcc_options): Declare prototype.
26518 (prepend_xassembler_to_collect_as_options): Likewise.
26519 * lto-opts.c (lto_write_options): Stream assembler options
26520 in COLLECT_AS_OPTIONS.
26521 * lto-wrapper.c (xassembler_options_error): New static variable.
26522 (get_options_from_collect_gcc_options): Move parsing options code to
26523 parse_options_from_collect_gcc_options and call it.
26524 (merge_and_complain): Validate -Xassembler options.
26525 (append_compiler_options): Handle OPT_Xassembler.
26526 (run_gcc): Append command line -Xassembler options to
26527 collect_gcc_options.
26528 * doc/invoke.texi: Add documentation about using Xassembler
26529 options with LTO.
26530
26531 2020-02-24 Kito Cheng <kito.cheng@sifive.com>
26532
26533 * config/riscv/riscv.c (riscv_emit_float_compare): Change the code gen
26534 for LTGT.
26535 (riscv_rtx_costs): Update cost model for LTGT.
26536
26537 2020-02-23 Vladimir Makarov <vmakarov@redhat.com>
26538
26539 PR rtl-optimization/93564
26540 * ira-color.c (struct update_cost_queue_elem): New member start.
26541 (queue_update_cost, get_next_update_cost): Add new arg start.
26542 (allocnos_conflict_p): New function.
26543 (update_costs_from_allocno): Add new arg conflict_cost_update_p.
26544 Add checking conflicts with allocnos_conflict_p.
26545 (update_costs_from_prefs, restore_costs_from_copies): Adjust
26546 update_costs_from_allocno calls.
26547 (update_conflict_hard_regno_costs): Add checking conflicts with
26548 allocnos_conflict_p. Adjust calls of queue_update_cost and
26549 get_next_update_cost.
26550 (assign_hard_reg): Adjust calls of queue_update_cost. Add
26551 debugging print.
26552 (bucket_allocno_compare_func): Restore previous version.
26553
26554 2020-02-21 John David Anglin <danglin@gcc.gnu.org>
26555
26556 * config/pa/pa.c (pa_function_value): Fix check for word and
26557 double-word size when handling aggregate return values.
26558 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Fix to indicate
26559 that homogeneous SFmode and DFmode aggregates are passed and returned
26560 in general registers.
26561
26562 2020-02-21 Jakub Jelinek <jakub@redhat.com>
26563
26564 PR translation/93759
26565 * opts.c (print_filtered_help): Translate help before appending
26566 messages to it rather than after that.
26567
26568 2020-02-19 Richard Sandiford <richard.sandiford@arm.com>
26569
26570 PR rtl-optimization/PR92989
26571 * lra-lives.c (process_bb_lives): Restore the original order
26572 of the bb liveness update. Call make_hard_regno_dead for each
26573 register clobbered at the start of an EH receiver.
26574
26575 2020-02-18 Feng Xue <fxue@os.amperecomputing.com>
26576
26577 PR ipa/93763
26578 * ipa-cp.c (self_recursively_generated_p): Mark self-dependent value as
26579 self-recursively generated.
26580
26581 2020-02-21 Iain Sandoe <iain@sandoe.co.uk>
26582
26583 PR target/93860
26584 * config/darwin-c.c (pop_field_alignment): Adjust quoting of
26585 error string.
26586
26587 2020-02-21 Mihail Ionescu <mihail.ionescu@arm.com>
26588
26589 * doc/sourcebuild.texi (arm_v8_1m_mve_ok):
26590 Document new target supports option.
26591
26592 2020-02-21 Dennis Zhang <dennis.zhang@arm.com>
26593
26594 * config/arm/arm_neon.h (vmmlaq_s32, vmmlaq_u32, vusmmlaq_s32): New.
26595 * config/arm/arm_neon_builtins.def (smmla, ummla, usmmla): New.
26596 * config/arm/iterators.md (MATMUL): New iterator.
26597 (sup): Add UNSPEC_MATMUL_S, UNSPEC_MATMUL_U, and UNSPEC_MATMUL_US.
26598 (mmla_sfx): New attribute.
26599 * config/arm/neon.md (neon_<sup>mmlav16qi): New.
26600 * config/arm/unspecs.md (UNSPEC_MATMUL_S, UNSPEC_MATMUL_U): New.
26601 (UNSPEC_MATMUL_US): New.
26602
26603 2020-02-21 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
26604
26605 * config/arm/arm.md: Prevent scalar shifts from being used when big
26606 endian is enabled.
26607
26608 2020-02-21 Jan Hubicka <hubicka@ucw.cz>
26609 Richard Biener <rguenther@suse.de>
26610
26611 PR tree-optimization/93586
26612 * tree-ssa-alias.c (nonoverlapping_array_refs_p): Finish array walk
26613 after mismatched array refs; do not sure type size information to
26614 recover from unmatched referneces with !flag_strict_aliasing_p.
26615
26616 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
26617
26618 * config/gcn/gcn-valu.md (gather_load<mode>): Rename to ...
26619 (gather_load<mode>v64si): ... this and set operand 2 to V64SI.
26620 (scatter_store<mode>): Rename to ...
26621 (scatter_store<mode>v64si): ... this and set operand 1 to V64SI.
26622 (scatter<mode>_exec): Delete. Move contents ...
26623 (mask_scatter_store<mode>): ... here, and rename that to ...
26624 (mask_gather_load<mode>v64si): ... this. Set operand 2 to V64SI.
26625 Remove mode conversion.
26626 (mask_gather_load<mode>): Rename to ...
26627 (mask_scatter_store<mode>v64si): ... this. Set operand 1 to V64SI.
26628 Remove mode conversion.
26629 * config/gcn/gcn.c (gcn_expand_scaled_offsets): Remove mode conversion.
26630
26631 2020-02-21 Martin Jambor <mjambor@suse.cz>
26632
26633 PR tree-optimization/93845
26634 * tree-sra.c (verify_sra_access_forest): Only test access size of
26635 scalar types.
26636
26637 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
26638
26639 * config/gcn/gcn.c (gcn_hard_regno_mode_ok): Align VGPR pairs.
26640 * config/gcn/gcn-valu.md (addv64di3): Remove early-clobber.
26641 (addv64di3_exec): Likewise.
26642 (subv64di3): Likewise.
26643 (subv64di3_exec): Likewise.
26644 (addv64di3_zext): Likewise.
26645 (addv64di3_zext_exec): Likewise.
26646 (addv64di3_zext_dup): Likewise.
26647 (addv64di3_zext_dup_exec): Likewise.
26648 (addv64di3_zext_dup2): Likewise.
26649 (addv64di3_zext_dup2_exec): Likewise.
26650 (addv64di3_sext_dup2): Likewise.
26651 (addv64di3_sext_dup2_exec): Likewise.
26652 (<expander>v64di3): Likewise.
26653 (<expander>v64di3_exec): Likewise.
26654 (*<reduc_op>_dpp_shr_v64di): Likewise.
26655 (*plus_carry_dpp_shr_v64di): Likewise.
26656 * config/gcn/gcn.md (adddi3): Likewise.
26657 (addptrdi3): Likewise.
26658 (<expander>di3): Likewise.
26659
26660 2020-02-21 Andrew Stubbs <ams@codesourcery.com>
26661
26662 * config/gcn/gcn-valu.md (vec_seriesv64di): Use gen_vec_duplicatev64di.
26663
26664 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
26665
26666 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Add SVE
26667 support. Use aarch64_emit_mult instead of emitting multiplication
26668 instructions directly.
26669 * config/aarch64/aarch64-sve.md (sqrt<mode>2, rsqrt<mode>2)
26670 (@aarch64_rsqrte<mode>, @aarch64_rsqrts<mode>): New expanders.
26671
26672 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
26673
26674 * config/aarch64/aarch64.c (aarch64_emit_mult): New function.
26675 (aarch64_emit_approx_div): Add SVE support. Use aarch64_emit_mult
26676 instead of emitting multiplication instructions directly.
26677 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_OPTAB): New iterator.
26678 * config/aarch64/aarch64-sve.md (div<mode>3, @aarch64_frecpe<mode>)
26679 (@aarch64_frecps<mode>): New expanders.
26680
26681 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
26682
26683 * config/aarch64/aarch64-protos.h (AARCH64_APPROX_MODE): Operate
26684 on and produce uint64_ts rather than ints.
26685 (AARCH64_APPROX_NONE, AARCH64_APPROX_ALL): Change to uint64_ts.
26686 (cpu_approx_modes): Change the fields from unsigned int to uint64_t.
26687
26688 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
26689
26690 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Don't create
26691 an unused xmsk register when handling approximate rsqrt.
26692
26693 2020-02-21 Richard Sandiford <richard.sandiford@arm.com>
26694
26695 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Fix inverted
26696 flag_finite_math_only condition.
26697
26698 2020-02-20 Uroš Bizjak <ubizjak@gmail.com>
26699
26700 PR target/93828
26701 * config/i386/mmx.md (*vec_extractv2sf_1): Match source operand
26702 to destination operand for shufps alternative.
26703 (*vec_extractv2si_1): Ditto.
26704
26705 2020-02-20 Peter Bergner <bergner@linux.ibm.com>
26706
26707 PR target/93658
26708 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Handle VSX
26709 vector modes.
26710
26711 2020-02-20 Martin Liska <mliska@suse.cz>
26712
26713 PR translation/93831
26714 * config/darwin.c (darwin_override_options): Change 64b to 64-bit mode.
26715
26716 2020-02-20 Martin Liska <mliska@suse.cz>
26717
26718 PR translation/93830
26719 * common/config/avr/avr-common.c: Remote trailing "|".
26720
26721 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
26722
26723 * collect2.c (maybe_run_lto_and_relink): Fix typo in
26724 comment.
26725
26726 2020-02-19 Richard Sandiford <richard.sandiford@arm.com>
26727
26728 PR tree-optimization/93767
26729 * tree-vect-data-refs.c (vect_compile_time_alias): Remove the
26730 access-size bias from the offset calculations for negative strides.
26731
26732 2020-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
26733
26734 * collect2.c (c_file, o_file): Make const again.
26735 (ldout,lderrout, dump_ld_file): Remove.
26736 (tool_cleanup): Avoid calling not signal-safe functions.
26737 (maybe_run_lto_and_relink): Avoid possible signal handler
26738 access to unintialzed memory (lto_o_files).
26739 (main): Avoid leaking temp files in $TMPDIR.
26740 Initialize c_file/o_file with concat, which avoids exposing
26741 uninitialized memory to signal handler, which calls unlink(!).
26742 Avoid calling maybe_unlink when the main function returns,
26743 since the atexit handler is already doing this.
26744 * collect2.h (dump_ld_file, ldout, lderrout): Remove.
26745
26746 2020-02-19 Martin Jambor <mjambor@suse.cz>
26747
26748 PR tree-optimization/93776
26749 * tree-sra.c (create_access): Do not create zero size accesses.
26750 (get_access_for_expr): Do not search for zero sized accesses.
26751
26752 2020-02-19 Martin Jambor <mjambor@suse.cz>
26753
26754 PR tree-optimization/93667
26755 * tree-sra.c (scalarizable_type_p): Return false if record fields
26756 do not follow wach other.
26757
26758 2020-01-21 Kito Cheng <kito.cheng@sifive.com>
26759
26760 * config/riscv/riscv.c (riscv_output_move) Using fmv.x.w/fmv.w.x
26761 rather than fmv.x.s/fmv.s.x.
26762
26763 2020-02-18 James Greenhalgh <james.greenhalgh@arm.com>
26764
26765 * config/aarch64/aarch64-simd-builtins.def
26766 (intrinsic_vec_smult_lo_): New.
26767 (intrinsic_vec_umult_lo_): Likewise.
26768 (vec_widen_smult_hi_): Likewise.
26769 (vec_widen_umult_hi_): Likewise.
26770 * config/aarch64/aarch64-simd.md
26771 (aarch64_intrinsic_vec_<su>mult_lo_<mode>): New.
26772 * config/aarch64/arm_neon.h (vmull_high_s8): Use intrinsics.
26773 (vmull_high_s16): Likewise.
26774 (vmull_high_s32): Likewise.
26775 (vmull_high_u8): Likewise.
26776 (vmull_high_u16): Likewise.
26777 (vmull_high_u32): Likewise.
26778 (vmull_s8): Likewise.
26779 (vmull_s16): Likewise.
26780 (vmull_s32): Likewise.
26781 (vmull_u8): Likewise.
26782 (vmull_u16): Likewise.
26783 (vmull_u32): Likewise.
26784
26785 2020-02-18 Martin Liska <mliska@suse.cz>
26786
26787 * value-prof.c (stream_out_histogram_value): Restore LTO PGO
26788 bootstrap by missing removal of invalid sanity check.
26789
26790 2020-02-18 Martin Liska <mliska@suse.cz>
26791
26792 PR ipa/92518
26793 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
26794 Always compare LHS of gimple_assign.
26795
26796 2020-02-18 Martin Liska <mliska@suse.cz>
26797
26798 PR ipa/93583
26799 * cgraph.c (cgraph_node::verify_node): Verify MALLOC attribute
26800 and return type of functions.
26801 * ipa-param-manipulation.c (ipa_param_adjustments::adjust_decl):
26802 Drop MALLOC attribute for void functions.
26803 * ipa-pure-const.c (funct_state_summary_t::duplicate): Drop
26804 malloc_state for a new VOID clone.
26805
26806 2020-02-18 Martin Liska <mliska@suse.cz>
26807
26808 PR ipa/92924
26809 * common.opt: Add -fprofile-reproducibility.
26810 * doc/invoke.texi: Document it.
26811 * value-prof.c (dump_histogram_value):
26812 Document and support behavior for counters[0]
26813 being a negative value.
26814 (get_nth_most_common_value): Handle negative
26815 counters[0] in respect to flag_profile_reproducible.
26816
26817 2020-02-18 Jakub Jelinek <jakub@redhat.com>
26818
26819 PR ipa/93797
26820 * cgraph.c (verify_speculative_call): Use speculative_id instead of
26821 speculative_uid in messages. Remove trailing whitespace from error
26822 message. Use num_speculative_call_targets instead of
26823 num_speculative_targets in a message.
26824 (cgraph_node::verify_node): Use call_stmt instead of cal_stmt in
26825 edge messages and stmt instead of cal_stmt in reference message.
26826
26827 PR tree-optimization/93780
26828 * tree-ssa.c (non_rewritable_lvalue_p): Check valid_vector_subparts_p
26829 before calling build_vector_type.
26830 (execute_update_addresses_taken): Likewise.
26831
26832 PR driver/93796
26833 * params.opt (-param=ipa-max-switch-predicate-bounds=): Fix help
26834 typo, functoin -> function.
26835 * tree.c (free_lang_data_in_decl): Fix comment typo,
26836 functoin -> function.
26837 * ipa-visibility.c (cgraph_externally_visible_p): Likewise.
26838
26839 2020-02-17 David Malcolm <dmalcolm@redhat.com>
26840
26841 * diagnostic.c (print_any_cwe): Don't call get_cwe_url if URLs
26842 won't be printed.
26843 (print_option_information): Don't call get_option_url if URLs
26844 won't be printed.
26845
26846 2020-02-17 Alexandre Oliva <oliva@adacore.com>
26847
26848 * tree-emutls.c (new_emutls_decl, emutls_common_1): Complete
26849 handling of register_common-less targets.
26850
26851 2020-02-17 Martin Liska <mliska@suse.cz>
26852
26853 PR ipa/93760
26854 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar.
26855
26856 2020-02-17 Martin Liska <mliska@suse.cz>
26857
26858 PR translation/93755
26859 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26860 Fix double quotes.
26861
26862 2020-02-17 Martin Liska <mliska@suse.cz>
26863
26864 PR other/93756
26865 * config/rx/elf.opt: Fix typo.
26866
26867 2020-02-17 Richard Biener <rguenther@suse.de>
26868
26869 PR c/86134
26870 * opts-global.c (print_ignored_options): Use inform and
26871 amend message.
26872
26873 2020-02-17 Jiufu Guo <guojiufu@linux.ibm.com>
26874
26875 PR target/93047
26876 * config/rs6000/rs6000.md (untyped_call): Add emit_clobber.
26877
26878 2020-02-16 Uroš Bizjak <ubizjak@gmail.com>
26879
26880 PR target/93743
26881 * config/i386/i386.md (atan2xf3): Swap operands 1 and 2.
26882 (atan2<mode>3): Update operand order in the call to gen_atan2xf3.
26883
26884 2020-02-15 Jason Merrill <jason@redhat.com>
26885
26886 * doc/invoke.texi (C Dialect Options): Add -std=c++20.
26887
26888 2020-02-15 Jakub Jelinek <jakub@redhat.com>
26889
26890 PR tree-optimization/93744
26891 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0,
26892 A - ((A - B) & -(C cmp D)) -> (C cmp D) ? B : A,
26893 A + ((B - A) & -(C cmp D)) -> (C cmp D) ? B : A): For GENERIC, make
26894 sure @2 in the first and @1 in the other patterns has no side-effects.
26895
26896 2020-02-15 David Malcolm <dmalcolm@redhat.com>
26897 Bernd Edlinger <bernd.edlinger@hotmail.de>
26898
26899 PR 87488
26900 PR other/93168
26901 * config.in (DIAGNOSTICS_URLS_DEFAULT): New define.
26902 * configure.ac (--with-diagnostics-urls): New configuration
26903 option, based on --with-diagnostics-color.
26904 (DIAGNOSTICS_URLS_DEFAULT): New define.
26905 * config.h: Regenerate.
26906 * configure: Regenerate.
26907 * diagnostic.c (diagnostic_urls_init): Handle -1 for
26908 DIAGNOSTICS_URLS_DEFAULT from configure-time
26909 --with-diagnostics-urls=auto-if-env by querying for a GCC_URLS
26910 and TERM_URLS environment variable.
26911 * diagnostic-url.h (diagnostic_url_format): New enum type.
26912 (diagnostic_urls_enabled_p): rename to...
26913 (determine_url_format): ... this, and change return type.
26914 * diagnostic-color.c (parse_env_vars_for_urls): New helper function.
26915 (auto_enable_urls): Disable URLs on xfce4-terminal, gnome-terminal,
26916 the linux console, and mingw.
26917 (diagnostic_urls_enabled_p): rename to...
26918 (determine_url_format): ... this, and adjust.
26919 * pretty-print.h (pretty_printer::show_urls): rename to...
26920 (pretty_printer::url_format): ... this, and change to enum.
26921 * pretty-print.c (pretty_printer::pretty_printer,
26922 pp_begin_url, pp_end_url, test_urls): Adjust.
26923 * doc/install.texi (--with-diagnostics-urls): Document the new
26924 configuration option.
26925 (--with-diagnostics-color): Document the existing interaction
26926 with GCC_COLORS better.
26927 * doc/invoke.texi (-fdiagnostics-urls): Add GCC_URLS and TERM_URLS
26928 vindex reference. Update description of defaults based on the above.
26929 (-fdiagnostics-color): Update description of how -fdiagnostics-color
26930 interacts with GCC_COLORS.
26931
26932 2020-02-14 Eric Botcazou <ebotcazou@adacore.com>
26933
26934 PR target/93704
26935 * config/sparc/sparc.c (eligible_for_call_delay): Test HAVE_GNU_LD in
26936 conjunction with TARGET_GNU_TLS in early return.
26937
26938 2020-02-14 Alexander Monakov <amonakov@ispras.ru>
26939
26940 * rtlanal.c (rtx_cost): Handle a SET up front. Avoid division if
26941 the mode is not wider than UNITS_PER_WORD.
26942
26943 2020-02-14 Martin Jambor <mjambor@suse.cz>
26944
26945 PR tree-optimization/93516
26946 * tree-sra.c (propagate_subaccesses_from_rhs): Do not create
26947 access of the same type as the parent.
26948 (propagate_subaccesses_from_lhs): Likewise.
26949
26950 2020-02-14 Hongtao Liu <hongtao.liu@intel.com>
26951
26952 PR target/93724
26953 * config/i386/avx512vbmi2intrin.h
26954 (_mm512_shrdi_epi16, _mm512_mask_shrdi_epi16,
26955 _mm512_maskz_shrdi_epi16, _mm512_shrdi_epi32,
26956 _mm512_mask_shrdi_epi32, _mm512_maskz_shrdi_epi32,
26957 _m512_shrdi_epi64, _m512_mask_shrdi_epi64,
26958 _m512_maskz_shrdi_epi64, _mm512_shldi_epi16,
26959 _mm512_mask_shldi_epi16, _mm512_maskz_shldi_epi16,
26960 _mm512_shldi_epi32, _mm512_mask_shldi_epi32,
26961 _mm512_maskz_shldi_epi32, _mm512_shldi_epi64,
26962 _mm512_mask_shldi_epi64, _mm512_maskz_shldi_epi64): Fix typo
26963 of lacking a closing parenthesis.
26964 * config/i386/avx512vbmi2vlintrin.h
26965 (_mm256_shrdi_epi16, _mm256_mask_shrdi_epi16,
26966 _mm256_maskz_shrdi_epi16, _mm256_shrdi_epi32,
26967 _mm256_mask_shrdi_epi32, _mm256_maskz_shrdi_epi32,
26968 _m256_shrdi_epi64, _m256_mask_shrdi_epi64,
26969 _m256_maskz_shrdi_epi64, _mm256_shldi_epi16,
26970 _mm256_mask_shldi_epi16, _mm256_maskz_shldi_epi16,
26971 _mm256_shldi_epi32, _mm256_mask_shldi_epi32,
26972 _mm256_maskz_shldi_epi32, _mm256_shldi_epi64,
26973 _mm256_mask_shldi_epi64, _mm256_maskz_shldi_epi64,
26974 _mm_shrdi_epi16, _mm_mask_shrdi_epi16,
26975 _mm_maskz_shrdi_epi16, _mm_shrdi_epi32,
26976 _mm_mask_shrdi_epi32, _mm_maskz_shrdi_epi32,
26977 _mm_shrdi_epi64, _mm_mask_shrdi_epi64,
26978 _m_maskz_shrdi_epi64, _mm_shldi_epi16,
26979 _mm_mask_shldi_epi16, _mm_maskz_shldi_epi16,
26980 _mm_shldi_epi32, _mm_mask_shldi_epi32,
26981 _mm_maskz_shldi_epi32, _mm_shldi_epi64,
26982 _mm_mask_shldi_epi64, _mm_maskz_shldi_epi64): Ditto.
26983
26984 2020-02-13 H.J. Lu <hongjiu.lu@intel.com>
26985
26986 PR target/93656
26987 * config/i386/i386.c (ix86_trampoline_init): Skip ENDBR32 at
26988 the target function entry.
26989
26990 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
26991
26992 * common/config/arc/arc-common.c (arc_option_optimization_table):
26993 Disable if-conversion step when optimized for size.
26994
26995 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
26996
26997 * config/arc/arc.c (arc_conditional_register_usage): R0-R3 and
26998 R12-R15 are always in ARCOMPACT16_REGS register class.
26999 * config/arc/arc.opt (mq-class): Deprecate.
27000 * config/arc/constraint.md ("q"): Remove dependency on mq-class
27001 option.
27002 * doc/invoke.texi (mq-class): Update text.
27003 * common/config/arc/arc-common.c (arc_option_optimization_table):
27004 Update list.
27005
27006 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
27007
27008 * config/arc/arc.c (arc_insn_cost): New function.
27009 (TARGET_INSN_COST): Define.
27010 * config/arc/arc.md (cost): New attribute.
27011 (add_n): Use arc_nonmemory_operand.
27012 (ashlsi3_insn): Likewise, also update constraints.
27013 (ashrsi3_insn): Likewise.
27014 (rotrsi3): Likewise.
27015 (add_shift): Likewise.
27016 * config/arc/predicates.md (arc_nonmemory_operand): New predicate.
27017
27018 2020-02-13 Claudiu Zissulescu <claziss@synopsys.com>
27019
27020 * config/arc/arc.md (mulsidi_600): Correctly select mlo/mhi
27021 registers.
27022 (umulsidi_600): Likewise.
27023
27024 2020-02-13 Jakub Jelinek <jakub@redhat.com>
27025
27026 PR target/93696
27027 * config/i386/avx512bitalgintrin.h (_mm512_mask_popcnt_epi8,
27028 _mm512_mask_popcnt_epi16, _mm256_mask_popcnt_epi8,
27029 _mm256_mask_popcnt_epi16, _mm_mask_popcnt_epi8,
27030 _mm_mask_popcnt_epi16): Rename __B argument to __A and __A to __W,
27031 pass __A to the builtin followed by __W instead of __A followed by
27032 __B.
27033 * config/i386/avx512vpopcntdqintrin.h (_mm512_mask_popcnt_epi32,
27034 _mm512_mask_popcnt_epi64): Likewise.
27035 * config/i386/avx512vpopcntdqvlintrin.h (_mm_mask_popcnt_epi32,
27036 _mm256_mask_popcnt_epi32, _mm_mask_popcnt_epi64,
27037 _mm256_mask_popcnt_epi64): Likewise.
27038
27039 PR tree-optimization/93582
27040 * fold-const.h (shift_bytes_in_array_left,
27041 shift_bytes_in_array_right): Declare.
27042 * fold-const.c (shift_bytes_in_array_left,
27043 shift_bytes_in_array_right): New function, moved from
27044 gimple-ssa-store-merging.c, no longer static.
27045 * gimple-ssa-store-merging.c (shift_bytes_in_array): Move
27046 to gimple-ssa-store-merging.c and rename to shift_bytes_in_array_left.
27047 (shift_bytes_in_array_right): Move to gimple-ssa-store-merging.c.
27048 (encode_tree_to_bitpos): Use shift_bytes_in_array_left instead of
27049 shift_bytes_in_array.
27050 (verify_shift_bytes_in_array): Rename to ...
27051 (verify_shift_bytes_in_array_left): ... this. Use
27052 shift_bytes_in_array_left instead of shift_bytes_in_array.
27053 (store_merging_c_tests): Call verify_shift_bytes_in_array_left
27054 instead of verify_shift_bytes_in_array.
27055 * tree-ssa-sccvn.c (vn_reference_lookup_3): For native_encode_expr
27056 / native_interpret_expr where the store covers all needed bits,
27057 punt on PDP-endian, otherwise allow all involved offsets and sizes
27058 not to be byte-aligned.
27059
27060 PR target/93673
27061 * config/i386/sse.md (k<code><mode>): Drop mode from last operand and
27062 use const_0_to_255_operand predicate instead of immediate_operand.
27063 (avx512dq_fpclass<mode><mask_scalar_merge_name>,
27064 avx512dq_vmfpclass<mode><mask_scalar_merge_name>,
27065 vgf2p8affineinvqb_<mode><mask_name>,
27066 vgf2p8affineqb_<mode><mask_name>): Drop mode from
27067 const_0_to_255_operand predicated operands.
27068
27069 2020-02-12 Jeff Law <law@redhat.com>
27070
27071 * config/h8300/h8300.md (comparison shortening peepholes): Use
27072 a mode iterator to merge the HImode and SImode peepholes.
27073
27074 2020-02-12 Jakub Jelinek <jakub@redhat.com>
27075
27076 PR middle-end/93663
27077 * real.c (is_even): Make static. Function comment fix.
27078 (is_halfway_below): Make static, don't assert R is not inf/nan,
27079 instead return false for those. Small formatting fixes.
27080
27081 2020-02-12 Martin Sebor <msebor@redhat.com>
27082
27083 PR middle-end/93646
27084 * tree-ssa-strlen.c (handle_builtin_stxncpy): Rename...
27085 (handle_builtin_stxncpy_strncat): ...to this. Change first argument.
27086 Issue only -Wstringop-overflow strncat, never -Wstringop-truncation.
27087 (strlen_check_and_optimize_call): Adjust callee name.
27088
27089 2020-02-12 Jeff Law <law@redhat.com>
27090
27091 * config/h8300/h8300.md (comparison shortening peepholes): Drop
27092 (and (xor)) variant. Combine other two into single peephole.
27093
27094 2020-02-12 Wilco Dijkstra <wdijkstr@arm.com>
27095
27096 PR rtl-optimization/93565
27097 * config/aarch64/aarch64.c (aarch64_rtx_costs): Add CTZ costs.
27098
27099 2020-02-12 Wilco Dijkstra <wdijkstr@arm.com>
27100
27101 * config/aarch64/aarch64-simd.md
27102 (aarch64_zero_extend<GPI:mode>_reduc_plus_<VDQV_E:mode>): New pattern.
27103 * config/aarch64/aarch64.md (popcount<mode>2): Use it instead of
27104 generating separate ADDV and zero_extend patterns.
27105 * config/aarch64/iterators.md (VDQV_E): New iterator.
27106
27107 2020-02-12 Jeff Law <law@redhat.com>
27108
27109 * config/h8300/h8300.md (cpymemsi, movmd): Remove dead patterns,
27110 expanders, splits, etc.
27111 (movmd_internal_<mode>, movmd splitter, movstr, movsd): Likewise.
27112 (stpcpy_internal_<mode>, stpcpy splitter): Likewise.
27113 (peepholes to convert QI/HI mode pushes to SI mode pushes): Likewise.
27114 * config/h8300/h8300.c (h8300_swap_into_er6): Remove unused function.
27115 (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise
27116 * config/h8300/h8300-protos.h (h8300_swap_into_er6): Remove unused
27117 function prototype.
27118 (h8300_swap_out_of_er6, h8sx_emit_movmd): Likewise.
27119
27120 2020-02-12 Jakub Jelinek <jakub@redhat.com>
27121
27122 PR target/93670
27123 * config/i386/sse.md (VI48F_256_DQ): New mode iterator.
27124 (avx512vl_vextractf128<mode>): Use it instead of VI48F_256. Remove
27125 TARGET_AVX512DQ from condition.
27126 (vec_extract_lo_<mode><mask_name>): Use <mask_avx512dq_condition>
27127 instead of <mask_mode512bit_condition> in condition. If
27128 TARGET_AVX512DQ is false, emit vextract*64x4 instead of
27129 vextract*32x8.
27130 (vec_extract_lo_<mode><mask_name>): Drop <mask_avx512dq_condition>
27131 from condition.
27132
27133 2020-02-12 Kewen Lin <linkw@gcc.gnu.org>
27134
27135 PR target/91052
27136 * ira.c (combine_and_move_insns): Skip multiple_sets def_insn.
27137
27138 2020-02-12 Segher Boessenkool <segher@kernel.crashing.org>
27139
27140 * config/rs6000/rs6000.c (rs6000_debug_print_mode): Don't use sizeof
27141 where strlen is more legible.
27142 (rs6000_builtin_vectorized_libmass): Ditto.
27143 (rs6000_print_options_internal): Ditto.
27144
27145 2020-02-11 Martin Sebor <msebor@redhat.com>
27146
27147 PR tree-optimization/93683
27148 * tree-ssa-alias.c (stmt_kills_ref_p): Avoid using LHS when not set.
27149
27150 2020-02-11 Michael Meissner <meissner@linux.ibm.com>
27151
27152 * config/rs6000/predicates.md (cint34_operand): Rename the
27153 -mprefixed-addr option to be -mprefixed.
27154 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Rename
27155 the -mprefixed-addr option to be -mprefixed.
27156 (OTHER_FUTURE_MASKS): Likewise.
27157 (POWERPC_MASKS): Likewise.
27158 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
27159 the -mprefixed-addr option to be -mprefixed. Change error
27160 messages to refer to -mprefixed.
27161 (num_insns_constant_gpr): Rename the -mprefixed-addr option to be
27162 -mprefixed.
27163 (rs6000_legitimate_offset_address_p): Likewise.
27164 (rs6000_mode_dependent_address): Likewise.
27165 (rs6000_opt_masks): Change the spelling of "-mprefixed-addr" to be
27166 "-mprefixed" for target attributes and pragmas.
27167 (address_to_insn_form): Rename the -mprefixed-addr option to be
27168 -mprefixed.
27169 (rs6000_adjust_insn_length): Likewise.
27170 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Rename the
27171 -mprefixed-addr option to be -mprefixed.
27172 (ASM_OUTPUT_OPCODE): Likewise.
27173 * config/rs6000/rs6000.md (prefixed insn attribute): Rename the
27174 -mprefixed-addr option to be -mprefixed.
27175 * config/rs6000/rs6000.opt (-mprefixed): Rename the
27176 -mprefixed-addr option to be prefixed. Change the option from
27177 being undocumented to being documented.
27178 * doc/invoke.texi (RS/6000 and PowerPC Options): Document the
27179 -mprefixed option. Update the -mpcrel documentation to mention
27180 -mprefixed.
27181
27182 2020-02-11 Hans-Peter Nilsson <hp@axis.com>
27183
27184 * ira-conflicts.c (print_hard_reg_set): Correct output for sets
27185 including FIRST_PSEUDO_REGISTER - 1.
27186 * ira-color.c (print_hard_reg_set): Ditto.
27187
27188 2020-02-11 Stam Markianos-Wright <stam.markianos-wright@arm.com>
27189
27190 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
27191 (USTERNOP_QUALIFIERS): New define.
27192 (USMAC_LANE_QUADTUP_QUALIFIERS): New define.
27193 (SUMAC_LANE_QUADTUP_QUALIFIERS): New define.
27194 (arm_expand_builtin_args): Add case ARG_BUILTIN_LANE_QUADTUP_INDEX.
27195 (arm_expand_builtin_1): Add qualifier_lane_quadtup_index.
27196 * config/arm/arm_neon.h (vusdot_s32): New.
27197 (vusdot_lane_s32): New.
27198 (vusdotq_lane_s32): New.
27199 (vsudot_lane_s32): New.
27200 (vsudotq_lane_s32): New.
27201 * config/arm/arm_neon_builtins.def (usdot, usdot_lane,sudot_lane): New.
27202 * config/arm/iterators.md (DOTPROD_I8MM): New.
27203 (sup, opsuffix): Add <us/su>.
27204 * config/arm/neon.md (neon_usdot, <us/su>dot_lane: New.
27205 * config/arm/unspecs.md (UNSPEC_DOT_US, UNSPEC_DOT_SU): New.
27206
27207 2020-02-11 Richard Biener <rguenther@suse.de>
27208
27209 PR tree-optimization/93661
27210 PR tree-optimization/93662
27211 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
27212 tree_to_poly_int64.
27213 * tree-sra.c (get_access_for_expr): Likewise.
27214
27215 2020-02-10 Jakub Jelinek <jakub@redhat.com>
27216
27217 PR target/93637
27218 * config/i386/sse.md (VI_256_AVX2): New mode iterator.
27219 (vcond_mask_<mode><sseintvecmodelower>): Use it instead of VI_256.
27220 Change condition from TARGET_AVX2 to TARGET_AVX.
27221
27222 2020-02-10 Iain Sandoe <iain@sandoe.co.uk>
27223
27224 PR other/93641
27225 * config/darwin-c.c (darwin_cfstring_ref_p): Fix up last
27226 argument of strncmp.
27227
27228 2020-02-10 Hans-Peter Nilsson <hp@axis.com>
27229
27230 Try to generate zero-based comparisons.
27231 * config/cris/cris.c (cris_reduce_compare): New function.
27232 * config/cris/cris-protos.h (cris_reduce_compare): Add prototype.
27233 * config/cris/cris.md ("cbranch<mode>4", "cbranchdi4", "cstoredi4")
27234 (cstore<mode>4"): Apply cris_reduce_compare in expanders.
27235
27236 2020-02-10 Richard Earnshaw <rearnsha@arm.com>
27237
27238 PR target/91913
27239 * config/arm/arm.md (movsi_compare0): Allow SP as a source register
27240 in Thumb state and also as a destination in Arm state. Add T16
27241 variants.
27242
27243 2020-02-10 Hans-Peter Nilsson <hp@axis.com>
27244
27245 * md.texi (Define Subst): Match closing paren in example.
27246
27247 2020-02-10 Jakub Jelinek <jakub@redhat.com>
27248
27249 PR target/58218
27250 PR other/93641
27251 * config/i386/i386.c (x86_64_elf_section_type_flags): Fix up last
27252 arguments of strncmp.
27253
27254 2020-02-10 Feng Xue <fxue@os.amperecomputing.com>
27255
27256 PR ipa/93203
27257 * ipa-cp.c (ipcp_lattice::add_value): Add source with same call edge
27258 but different source value.
27259 (adjust_callers_for_value_intersection): New function.
27260 (gather_edges_for_value): Adjust order of callers to let a
27261 non-self-recursive caller be the first element.
27262 (self_recursive_pass_through_p): Add a new parameter "simple", and
27263 check generalized self-recursive pass-through jump function.
27264 (self_recursive_agg_pass_through_p): Likewise.
27265 (find_more_scalar_values_for_callers_subset): Compute value from
27266 pass-through jump function for self-recursive.
27267 (intersect_with_plats): Cleanup previous implementation code for value
27268 itersection with self-recursive call edge.
27269 (intersect_with_agg_replacements): Likewise.
27270 (intersect_aggregates_with_edge): Deduce value from pass-through jump
27271 function for self-recursive call edge. Cleanup previous implementation
27272 code for value intersection with self-recursive call edge.
27273 (decide_whether_version_node): Remove dead callers and adjust order
27274 to let a non-self-recursive caller be the first element.
27275
27276 2020-02-09 Uroš Bizjak <ubizjak@gmail.com>
27277
27278 * recog.c: Move pass_split_before_sched2 code in front of
27279 pass_split_before_regstack.
27280 (pass_data_split_before_sched2): Rename pass to split3 from split4.
27281 (pass_data_split_before_regstack): Rename pass to split4 from split3.
27282 (rest_of_handle_split_before_sched2): Remove.
27283 (pass_split_before_sched2::execute): Unconditionally call
27284 split_all_insns.
27285 (enable_split_before_sched2): New function.
27286 (pass_split_before_sched2::gate): Use enable_split_before_sched2.
27287 (pass_split_before_regstack::gate): Ditto.
27288 * config/nds32/nds32.c (nds32_split_double_word_load_store_p):
27289 Update name check for renamed split4 pass.
27290 * config/sh/sh.c (register_sh_passes): Update pass insertion
27291 point for renamed split4 pass.
27292
27293 2020-02-09 Jakub Jelinek <jakub@redhat.com>
27294
27295 * gimplify.c (gimplify_adjust_omp_clauses_1): Promote
27296 DECL_IN_CONSTANT_POOL variables into "omp declare target" to avoid
27297 copying them around between host and target.
27298
27299 2020-02-08 Andrew Pinski <apinski@marvell.com>
27300
27301 PR target/91927
27302 * config/aarch64/aarch64-simd.md (movmisalign<mode>): Check
27303 STRICT_ALIGNMENT also.
27304
27305 2020-02-08 Jim Wilson <jimw@sifive.com>
27306
27307 PR target/93532
27308 * config/riscv/riscv.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
27309
27310 2020-02-08 Uroš Bizjak <ubizjak@gmail.com>
27311 Jakub Jelinek <jakub@redhat.com>
27312
27313 PR target/65782
27314 * config/i386/i386.h (CALL_USED_REGISTERS): Make
27315 xmm16-xmm31 call-used even in 64-bit ms-abi.
27316
27317 2020-02-07 Dennis Zhang <dennis.zhang@arm.com>
27318
27319 * config/aarch64/aarch64-simd-builtins.def (simd_smmla): New entry.
27320 (simd_ummla, simd_usmmla): Likewise.
27321 * config/aarch64/aarch64-simd.md (aarch64_simd_<sur>mmlav16qi): New.
27322 * config/aarch64/arm_neon.h (vmmlaq_s32, vmmlaq_u32): New.
27323 (vusmmlaq_s32): New.
27324
27325 2020-02-07 Richard Biener <rguenther@suse.de>
27326
27327 PR middle-end/93519
27328 * tree-inline.c (fold_marked_statements): Do a PRE walk,
27329 skipping unreachable regions.
27330 (optimize_inline_calls): Skip folding stmts when we didn't
27331 inline.
27332
27333 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
27334
27335 PR target/85667
27336 * config/i386/i386.c (function_arg_ms_64): Add a type argument.
27337 Don't return aggregates with only SFmode and DFmode in SSE
27338 register.
27339 (ix86_function_arg): Pass arg.type to function_arg_ms_64.
27340
27341 2020-02-07 Jakub Jelinek <jakub@redhat.com>
27342
27343 PR target/93122
27344 * config/rs6000/rs6000-logue.c
27345 (rs6000_emit_probe_stack_range_stack_clash): Always use gen_add3_insn,
27346 if it fails, move rs into end_addr and retry. Add
27347 REG_FRAME_RELATED_EXPR note whenever it returns more than one insn or
27348 the insn pattern doesn't describe well what exactly happens to
27349 dwarf2cfi.c.
27350
27351 PR target/93594
27352 * config/i386/predicates.md (avx_identity_operand): Remove.
27353 * config/i386/sse.md (*avx_vec_concat<mode>_1): Remove.
27354 (avx_<castmode><avxsizesuffix>_<castmode>,
27355 avx512f_<castmode><avxsizesuffix>_256<castmode>): Change patterns to
27356 a VEC_CONCAT of the operand and UNSPEC_CAST.
27357 (avx512f_<castmode><avxsizesuffix>_<castmode>): Change pattern to
27358 a VEC_CONCAT of VEC_CONCAT of the operand and UNSPEC_CAST with
27359 UNSPEC_CAST.
27360
27361 PR target/93611
27362 * config/i386/i386.c (ix86_lea_outperforms): Make sure to clear
27363 recog_data.insn if distance_non_agu_define changed it.
27364
27365 2020-02-06 Michael Meissner <meissner@linux.ibm.com>
27366
27367 PR target/93569
27368 * config/rs6000/rs6000.c (reg_to_non_prefixed): Before ISA 3.0
27369 we only had X-FORM (reg+reg) addressing for vectors. Also before
27370 ISA 3.0, we only had X-FORM addressing for scalars in the
27371 traditional Altivec registers.
27372
27373 2020-02-06 <zhongyunde@huawei.com>
27374 Vladimir Makarov <vmakarov@redhat.com>
27375
27376 PR rtl-optimization/93561
27377 * lra-assigns.c (spill_for): Check that tested hard regno is not out of
27378 hard register range.
27379
27380 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
27381
27382 * config/aarch64/aarch64.md (aarch64_movk<mode>): Add a type
27383 attribute.
27384
27385 2020-02-06 Segher Boessenkool <segher@kernel.crashing.org>
27386
27387 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Handle the case
27388 where the low and the high 32 bits are equal to each other specially,
27389 with an rldimi instruction.
27390
27391 2020-02-06 Mihail Ionescu <mihail.ionescu@arm.com>
27392
27393 * config/arm/arm-cpus.in: Set profile M for armv8.1-m.main.
27394
27395 2020-02-06 Mihail Ionescu <mihail.ionescu@arm.com>
27396
27397 * config/arm/arm-tables.opt: Regenerate.
27398
27399 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
27400
27401 PR target/87763
27402 * config/aarch64/aarch64-protos.h (aarch64_movk_shift): Declare.
27403 * config/aarch64/aarch64.c (aarch64_movk_shift): New function.
27404 * config/aarch64/aarch64.md (aarch64_movk<mode>): New pattern.
27405
27406 2020-02-06 Richard Sandiford <richard.sandiford@arm.com>
27407
27408 PR rtl-optimization/87763
27409 * config/aarch64/aarch64.md (*ashiftsi_extvdi_bfiz): New pattern.
27410
27411 2020-02-06 Delia Burduv <delia.burduv@arm.com>
27412
27413 * config/aarch64/aarch64-simd-builtins.def
27414 (bfmlaq): New built-in function.
27415 (bfmlalb): New built-in function.
27416 (bfmlalt): New built-in function.
27417 (bfmlalb_lane): New built-in function.
27418 (bfmlalt_lane): New built-in function.
27419 * config/aarch64/aarch64-simd.md
27420 (aarch64_bfmmlaqv4sf): New pattern.
27421 (aarch64_bfmlal<bt>v4sf): New pattern.
27422 (aarch64_bfmlal<bt>_lane<q>v4sf): New pattern.
27423 * config/aarch64/arm_neon.h (vbfmmlaq_f32): New intrinsic.
27424 (vbfmlalbq_f32): New intrinsic.
27425 (vbfmlaltq_f32): New intrinsic.
27426 (vbfmlalbq_lane_f32): New intrinsic.
27427 (vbfmlaltq_lane_f32): New intrinsic.
27428 (vbfmlalbq_laneq_f32): New intrinsic.
27429 (vbfmlaltq_laneq_f32): New intrinsic.
27430 * config/aarch64/iterators.md (BF_MLA): New int iterator.
27431 (bt): New int attribute.
27432
27433 2020-02-06 Uroš Bizjak <ubizjak@gmail.com>
27434
27435 * config/i386/i386.md (*pushtf): Emit "#" instead of
27436 calling gcc_unreachable in insn output.
27437 (*pushxf): Ditto.
27438 (*pushdf): Ditto.
27439 (*pushsf_rex64): Ditto for alternatives other than 1.
27440 (*pushsf): Ditto for alternatives other than 1.
27441
27442 2020-02-06 Martin Liska <mliska@suse.cz>
27443
27444 PR gcov-profile/91971
27445 PR gcov-profile/93466
27446 * coverage.c (coverage_init): Revert mangling of
27447 path into filename. It can lead to huge filename length.
27448 Creation of subfolders seem more natural.
27449
27450 2020-02-06 Stam Markianos-Wright <stam.markianos-wright@arm.com>
27451
27452 PR target/93300
27453 * config/arm/arm.c (arm_block_arith_comp_libfuncs_for_mode): New.
27454 (arm_init_libfuncs): Add BFmode support to block spurious BF libfuncs.
27455 Use arm_block_arith_comp_libfuncs_for_mode for HFmode.
27456
27457 2020-02-06 Jakub Jelinek <jakub@redhat.com>
27458
27459 PR target/93594
27460 * config/i386/predicates.md (avx_identity_operand): New predicate.
27461 * config/i386/sse.md (*avx_vec_concat<mode>_1): New
27462 define_insn_and_split.
27463
27464 PR libgomp/93515
27465 * omp-low.c (use_pointer_for_field): For nested constructs, also
27466 look for map clauses on target construct.
27467 (scan_omp_1_stmt) <case GIMPLE_OMP_TARGET>: Bump temporarily
27468 taskreg_nesting_level.
27469
27470 PR libgomp/93515
27471 * gimplify.c (gimplify_scan_omp_clauses) <do_notice>: If adding
27472 shared clause, call omp_notice_variable on outer context if any.
27473
27474 2020-02-05 Jason Merrill <jason@redhat.com>
27475
27476 PR c++/92003
27477 * symtab.c (symtab_node::nonzero_address): A DECL_COMDAT decl has
27478 non-zero address even if weak and not yet defined.
27479
27480 2020-02-05 Martin Sebor <msebor@redhat.com>
27481
27482 PR tree-optimization/92765
27483 * gimple-fold.c (get_range_strlen_tree): Handle MEM_REF and PARM_DECL.
27484 * tree-ssa-strlen.c (compute_string_length): Remove.
27485 (determine_min_objsize): Remove.
27486 (get_len_or_size): Add an argument. Call get_range_strlen_dynamic.
27487 Avoid using type size as the upper bound on string length.
27488 (handle_builtin_string_cmp): Add an argument. Adjust.
27489 (strlen_check_and_optimize_call): Pass additional argument to
27490 handle_builtin_string_cmp.
27491
27492 2020-02-05 Uroš Bizjak <ubizjak@gmail.com>
27493
27494 * config/i386/i386.md (*pushdi2_rex64 peephole2): Remove.
27495 (*pushdi2_rex64 peephole2): Unconditionally split after
27496 epilogue_completed.
27497 (*ashl<mode>3_doubleword): Ditto.
27498 (*<shift_insn><mode>3_doubleword): Ditto.
27499
27500 2020-02-05 Michael Meissner <meissner@linux.ibm.com>
27501
27502 PR target/93568
27503 * config/rs6000/rs6000.c (get_vector_offset): Fix
27504
27505 2020-02-05 Andrew Stubbs <ams@codesourcery.com>
27506
27507 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Use / not space.
27508
27509 2020-02-05 David Malcolm <dmalcolm@redhat.com>
27510
27511 * doc/analyzer.texi
27512 (Special Functions for Debugging the Analyzer): Update description
27513 of __analyzer_dump_exploded_nodes.
27514
27515 2020-02-05 Jakub Jelinek <jakub@redhat.com>
27516
27517 PR target/92190
27518 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper): Only
27519 include sets and not clobbers in the vzeroupper pattern.
27520 * config/i386/sse.md (*avx_vzeroupper): Require in insn condition that
27521 the parallel has 17 (64-bit) or 9 (32-bit) elts.
27522 (*avx_vzeroupper_1): New define_insn_and_split.
27523
27524 PR target/92190
27525 * recog.c (pass_split_after_reload::gate): For STACK_REGS targets,
27526 don't run when !optimize.
27527 (pass_split_before_regstack::gate): For STACK_REGS targets, run even
27528 when !optimize.
27529
27530 2020-02-05 Richard Biener <rguenther@suse.de>
27531
27532 PR middle-end/90648
27533 * genmatch.c (dt_node::gen_kids_1): Emit number of argument
27534 checks before matching calls.
27535
27536 2020-02-05 Jakub Jelinek <jakub@redhat.com>
27537
27538 * tree-ssa-alias.c (aliasing_matching_component_refs_p): Fix up
27539 function comment typo.
27540
27541 PR middle-end/93555
27542 * omp-simd-clone.c (expand_simd_clones): If simd_clone_mangle or
27543 simd_clone_create failed when i == 0, adjust clone->nargs by
27544 clone->inbranch.
27545
27546 2020-02-05 Martin Liska <mliska@suse.cz>
27547
27548 PR c++/92717
27549 * doc/invoke.texi: Document that one should
27550 not combine ASLR and -fpch.
27551
27552 2020-02-04 Richard Biener <rguenther@suse.de>
27553
27554 PR tree-optimization/93538
27555 * match.pd (addr EQ/NE ptr): Amend to handle &ptr->x EQ/NE ptr.
27556
27557 2020-02-04 Richard Biener <rguenther@suse.de>
27558
27559 PR tree-optimization/91123
27560 * tree-ssa-sccvn.c (vn_walk_cb_data::finish): New method.
27561 (vn_walk_cb_data::last_vuse): New member.
27562 (vn_walk_cb_data::saved_operands): Likewsie.
27563 (vn_walk_cb_data::~vn_walk_cb_data): Release saved_operands.
27564 (vn_walk_cb_data::push_partial_def): Use finish.
27565 (vn_reference_lookup_2): Update last_vuse and use finish if
27566 we've saved operands.
27567 (vn_reference_lookup_3): Use finish and update calls to
27568 push_partial_defs everywhere. When translating through
27569 memcpy or aggregate copies save off operands and alias-set.
27570 (eliminate_dom_walker::eliminate_stmt): Restore VN_WALKREWRITE
27571 operation for redundant store removal.
27572
27573 2020-02-04 Richard Biener <rguenther@suse.de>
27574
27575 PR tree-optimization/92819
27576 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
27577 generating more stmts than before.
27578
27579 2020-02-04 Martin Liska <mliska@suse.cz>
27580
27581 * config/arm/arm.c (arm_gen_far_branch): Move the function
27582 outside of selftests.
27583
27584 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
27585
27586 * config/rs6000/rs6000.c (adjust_vec_address_pcrel): New helper
27587 function to adjust PC-relative vector addresses.
27588 (rs6000_adjust_vec_address): Call adjust_vec_address_pcrel to
27589 handle vectors with PC-relative addresses.
27590
27591 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
27592
27593 * config/rs6000/rs6000.c (reg_to_non_prefixed): Add forward
27594 reference.
27595 (hard_reg_and_mode_to_addr_mask): Delete.
27596 (rs6000_adjust_vec_address): If the original vector address
27597 was REG+REG or REG+OFFSET and the element is not zero, do the add
27598 of the elements in the original address before adding the offset
27599 for the vector element. Use address_to_insn_form to validate the
27600 address using the register being loaded, rather than guessing
27601 whether the address is a DS-FORM or DQ-FORM address.
27602
27603 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
27604
27605 * config/rs6000/rs6000.c (get_vector_offset): New helper function
27606 to calculate the offset in memory from the start of a vector of a
27607 particular element. Add code to keep the element number in
27608 bounds if the element number is variable.
27609 (rs6000_adjust_vec_address): Move calculation of offset of the
27610 vector element to get_vector_offset.
27611 (rs6000_split_vec_extract_var): Do not do the initial AND of
27612 element here, move the code to get_vector_offset.
27613
27614 2020-02-03 Michael Meissner <meissner@linux.ibm.com>
27615
27616 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add some
27617 gcc_asserts.
27618
27619 2020-02-03 Segher Boessenkool <segher@kernel.crashing.org>
27620
27621 * config/rs6000/constraints.md: Improve documentation.
27622
27623 2020-02-03 Richard Earnshaw <rearnsha@arm.com>
27624
27625 PR target/93548
27626 * config/arm/t-arm: ($(srcdir)/config/arm/arm-tune.md)
27627 ($(srcdir)/config/arm/arm-tables.opt): Use move-if-change.
27628
27629 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
27630
27631 * config.gcc: Remove "carrizo" support.
27632 * config/gcn/gcn-opts.h (processor_type): Likewise.
27633 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): Likewise.
27634 * config/gcn/gcn.opt (gpu_type): Likewise.
27635 * config/gcn/t-omp-device: Likewise.
27636
27637 2020-02-03 Stam Markianos-Wright <stam.markianos-wright@arm.com>
27638
27639 PR target/91816
27640 * config/arm/arm-protos.h: New function arm_gen_far_branch prototype.
27641 * config/arm/arm.c (arm_gen_far_branch): New function
27642 arm_gen_far_branch.
27643 * config/arm/arm.md: Update b<cond> for Thumb2 range checks.
27644
27645 2020-02-03 Julian Brown <julian@codesourcery.com>
27646 Tobias Burnus <tobias@codesourcery.com>
27647
27648 * doc/invoke.texi: Update mention of OpenACC version to 2.6.
27649
27650 2020-02-03 Jakub Jelinek <jakub@redhat.com>
27651
27652 PR target/93533
27653 * config/s390/s390.md (popcounthi2_z196): Fix up expander to emit
27654 valid RTL to sum up the lowest and second lowest bytes of the popcnt
27655 result.
27656
27657 2020-02-02 Vladimir Makarov <vmakarov@redhat.com>
27658
27659 PR rtl-optimization/91333
27660 * ira-color.c (struct allocno_color_data): Add member
27661 hard_reg_prefs.
27662 (init_allocno_threads): Set the member up.
27663 (bucket_allocno_compare_func): Add compare hard reg
27664 prefs.
27665
27666 2020-01-31 Sandra Loosemore <sandra@codesourcery.com>
27667
27668 nios2: Support for GOT-relative DW_EH_PE_datarel encoding.
27669
27670 * configure.ac [nios2-*-*]: Check HAVE_AS_NIOS2_GOTOFF_RELOCATION.
27671 * config.in: Regenerated.
27672 * configure: Regenerated.
27673 * config/nios2/nios2.h (ASM_PREFERRED_EH_DATA_FORMAT): Fix handling
27674 for PIC when HAVE_AS_NIOS2_GOTOFF_RELOCATION.
27675 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New.
27676
27677 2020-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
27678
27679 * configure: Regenerate.
27680
27681 2020-01-31 Vladimir Makarov <vmakarov@redhat.com>
27682
27683 PR rtl-optimization/91333
27684 * ira-color.c (bucket_allocno_compare_func): Move conflict hard
27685 reg preferences comparison up.
27686
27687 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
27688
27689 * config/aarch64/aarch64.h (TARGET_SVE_BF16): New macro.
27690 * config/aarch64/aarch64-sve-builtins-sve2.h (svcvtnt): Move to
27691 aarch64-sve-builtins-base.h.
27692 * config/aarch64/aarch64-sve-builtins-sve2.cc (svcvtnt): Move to
27693 aarch64-sve-builtins-base.cc.
27694 * config/aarch64/aarch64-sve-builtins-base.h (svbfdot, svbfdot_lane)
27695 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
27696 (svcvtnt): Declare.
27697 * config/aarch64/aarch64-sve-builtins-base.cc (svbfdot, svbfdot_lane)
27698 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
27699 (svcvtnt): New functions.
27700 * config/aarch64/aarch64-sve-builtins-base.def (svbfdot, svbfdot_lane)
27701 (svbfmlalb, svbfmlalb_lane, svbfmlalt, svbfmlalt_lane, svbfmmla)
27702 (svcvtnt): New functions.
27703 (svcvt): Add a form that converts f32 to bf16.
27704 * config/aarch64/aarch64-sve-builtins-shapes.h (ternary_bfloat)
27705 (ternary_bfloat_lane, ternary_bfloat_lanex2, ternary_bfloat_opt_n):
27706 Declare.
27707 * config/aarch64/aarch64-sve-builtins-shapes.cc (parse_element_type):
27708 Treat B as bfloat16_t.
27709 (ternary_bfloat_lane_base): New class.
27710 (ternary_bfloat_def): Likewise.
27711 (ternary_bfloat): New shape.
27712 (ternary_bfloat_lane_def): New class.
27713 (ternary_bfloat_lane): New shape.
27714 (ternary_bfloat_lanex2_def): New class.
27715 (ternary_bfloat_lanex2): New shape.
27716 (ternary_bfloat_opt_n_def): New class.
27717 (ternary_bfloat_opt_n): New shape.
27718 * config/aarch64/aarch64-sve-builtins.cc (TYPES_cvt_bfloat): New macro.
27719 * config/aarch64/aarch64-sve.md (@aarch64_sve_<sve_fp_op>vnx4sf)
27720 (@aarch64_sve_<sve_fp_op>_lanevnx4sf): New patterns.
27721 (@aarch64_sve_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>)
27722 (@cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
27723 (*cond_<optab>_trunc<VNx4SF_ONLY:mode><VNx8BF_ONLY:mode>): Likewise.
27724 (@aarch64_sve_cvtnt<VNx8BF_ONLY:mode>): Likewise.
27725 * config/aarch64/aarch64-sve2.md (@aarch64_sve2_cvtnt<mode>): Key
27726 the pattern off the narrow mode instead of the wider one.
27727 * config/aarch64/iterators.md (VNx8BF_ONLY): New mode iterator.
27728 (UNSPEC_BFMLALB, UNSPEC_BFMLALT, UNSPEC_BFMMLA): New unspecs.
27729 (sve_fp_op): Handle them.
27730 (SVE_BFLOAT_TERNARY_LONG): New int itertor.
27731 (SVE_BFLOAT_TERNARY_LONG_LANE): Likewise.
27732
27733 2020-01-31 Richard Sandiford <richard.sandiford@arm.com>
27734
27735 * config/aarch64/arm_sve.h: Include arm_bf16.h.
27736 * config/aarch64/aarch64-modes.def (BF): Move definition before
27737 VECTOR_MODES. Remove separate VECTOR_MODES for V4BF and V8BF.
27738 (SVE_MODES): Handle BF modes.
27739 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle
27740 BF modes.
27741 (aarch64_full_sve_mode): Likewise.
27742 * config/aarch64/iterators.md (SVE_STRUCT): Add VNx16BF, VNx24BF
27743 and VNx32BF.
27744 (SVE_FULL, SVE_FULL_HSD, SVE_ALL): Add VNx8BF.
27745 (Vetype, Vesize, Vctype, VEL, Vel, VEL_INT, V128, v128, vwcore)
27746 (V_INT_EQUIV, v_int_equiv, V_FP_EQUIV, v_fp_equiv, vector_count)
27747 (insn_length, VSINGLE, vsingle, VPRED, vpred, VDOUBLE): Handle the
27748 new SVE BF modes.
27749 * config/aarch64/aarch64-sve-builtins.h (TYPE_bfloat): New
27750 type_class_index.
27751 * config/aarch64/aarch64-sve-builtins.cc (TYPES_all_arith): New macro.
27752 (TYPES_all_data): Add bf16.
27753 (TYPES_reinterpret1, TYPES_reinterpret): Likewise.
27754 (register_tuple_type): Increase buffer size.
27755 * config/aarch64/aarch64-sve-builtins.def (svbfloat16_t): New type.
27756 (bf16): New type suffix.
27757 * config/aarch64/aarch64-sve-builtins-base.def (svabd, svadd, svaddv)
27758 (svcmpeq, svcmpge, svcmpgt, svcmple, svcmplt, svcmpne, svmad, svmax)
27759 (svmaxv, svmin, svminv, svmla, svmls, svmsb, svmul, svsub, svsubr):
27760 Change type from all_data to all_arith.
27761 * config/aarch64/aarch64-sve-builtins-sve2.def (svaddp, svmaxp)
27762 (svminp): Likewise.
27763
27764 2020-01-31 Dennis Zhang <dennis.zhang@arm.com>
27765 Matthew Malcomson <matthew.malcomson@arm.com>
27766 Richard Sandiford <richard.sandiford@arm.com>
27767
27768 * doc/invoke.texi (f32mm): Document new AArch64 -march= extension.
27769 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
27770 __ARM_FEATURE_SVE_MATMUL_INT8, __ARM_FEATURE_SVE_MATMUL_FP32 and
27771 __ARM_FEATURE_SVE_MATMUL_FP64 as appropriate. Don't define
27772 __ARM_FEATURE_MATMUL_FP64.
27773 * config/aarch64/aarch64-option-extensions.def (fp, simd, fp16)
27774 (sve): Add AARCH64_FL_F32MM to the list of extensions that should
27775 be disabled at the same time.
27776 (f32mm): New extension.
27777 * config/aarch64/aarch64.h (AARCH64_FL_F32MM): New macro.
27778 (AARCH64_FL_F64MM): Bump to the next bit up.
27779 (AARCH64_ISA_F32MM, TARGET_SVE_I8MM, TARGET_F32MM, TARGET_SVE_F32MM)
27780 (TARGET_SVE_F64MM): New macros.
27781 * config/aarch64/iterators.md (SVE_MATMULF): New mode iterator.
27782 (UNSPEC_FMMLA, UNSPEC_SMATMUL, UNSPEC_UMATMUL, UNSPEC_USMATMUL)
27783 (UNSPEC_TRN1Q, UNSPEC_TRN2Q, UNSPEC_UZP1Q, UNSPEC_UZP2Q, UNSPEC_ZIP1Q)
27784 (UNSPEC_ZIP2Q): New unspeccs.
27785 (DOTPROD_US_ONLY, PERMUTEQ, MATMUL, FMMLA): New int iterators.
27786 (optab, sur, perm_insn): Handle the new unspecs.
27787 (sve_fp_op): Handle UNSPEC_FMMLA. Resort.
27788 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use
27789 TARGET_SVE_F64MM instead of separate tests.
27790 (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod<vsi2qi>): New pattern.
27791 (@aarch64_<DOTPROD_US_ONLY:sur>dot_prod_lane<vsi2qi>): Likewise.
27792 (@aarch64_sve_add_<MATMUL:optab><vsi2qi>): Likewise.
27793 (@aarch64_sve_<FMMLA:sve_fp_op><mode>): Likewise.
27794 (@aarch64_sve_<PERMUTEQ:optab><mode>): Likewise.
27795 * config/aarch64/aarch64-sve-builtins.cc (TYPES_s_float): New macro.
27796 (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): Use it.
27797 (TYPES_s_signed): New macro.
27798 (TYPES_s_integer): Use it.
27799 (TYPES_d_float): New macro.
27800 (TYPES_d_data): Use it.
27801 * config/aarch64/aarch64-sve-builtins-shapes.h (mmla): Declare.
27802 (ternary_intq_uintq_lane, ternary_intq_uintq_opt_n, ternary_uintq_intq)
27803 (ternary_uintq_intq_lane, ternary_uintq_intq_opt_n): Likewise.
27804 * config/aarch64/aarch64-sve-builtins-shapes.cc (mmla_def): New class.
27805 (svmmla): New shape.
27806 (ternary_resize2_opt_n_base): Add TYPE_CLASS2 and TYPE_CLASS3
27807 template parameters.
27808 (ternary_resize2_lane_base): Likewise.
27809 (ternary_resize2_base): New class.
27810 (ternary_qq_lane_base): Likewise.
27811 (ternary_intq_uintq_lane_def): Likewise.
27812 (ternary_intq_uintq_lane): New shape.
27813 (ternary_intq_uintq_opt_n_def): New class
27814 (ternary_intq_uintq_opt_n): New shape.
27815 (ternary_qq_lane_def): Inherit from ternary_qq_lane_base.
27816 (ternary_uintq_intq_def): New class.
27817 (ternary_uintq_intq): New shape.
27818 (ternary_uintq_intq_lane_def): New class.
27819 (ternary_uintq_intq_lane): New shape.
27820 (ternary_uintq_intq_opt_n_def): New class.
27821 (ternary_uintq_intq_opt_n): New shape.
27822 * config/aarch64/aarch64-sve-builtins-base.h (svmmla, svsudot)
27823 (svsudot_lane, svtrn1q, svtrn2q, svusdot, svusdot_lane, svusmmla)
27824 (svuzp1q, svuzp2q, svzip1q, svzip2q): Declare.
27825 * config/aarch64/aarch64-sve-builtins-base.cc (svdot_lane_impl):
27826 Generalize to...
27827 (svdotprod_lane_impl): ...this new class.
27828 (svmmla_impl, svusdot_impl): New classes.
27829 (svdot_lane): Update to use svdotprod_lane_impl.
27830 (svmmla, svsudot, svsudot_lane, svtrn1q, svtrn2q, svusdot)
27831 (svusdot_lane, svusmmla, svuzp1q, svuzp2q, svzip1q, svzip2q): New
27832 functions.
27833 * config/aarch64/aarch64-sve-builtins-base.def (svmmla): New base
27834 function, with no types defined.
27835 (svmmla, svusmmla, svsudot, svsudot_lane, svusdot, svusdot_lane): New
27836 AARCH64_FL_I8MM functions.
27837 (svmmla): New AARCH64_FL_F32MM function.
27838 (svld1ro): Depend only on AARCH64_FL_F64MM, not on AARCH64_FL_V8_6.
27839 (svmmla, svtrn1q, svtrn2q, svuz1q, svuz2q, svzip1q, svzip2q): New
27840 AARCH64_FL_F64MM function.
27841 (REQUIRED_EXTENSIONS):
27842
27843 2020-01-31 Andrew Stubbs <ams@codesourcery.com>
27844
27845 * config/gcn/gcn-valu.md (addv64di3_exec): Allow one '0' in each
27846 alternative only.
27847
27848 2020-01-31 Uroš Bizjak <ubizjak@gmail.com>
27849
27850 * config/i386/i386.md (*movoi_internal_avx): Do not check for
27851 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL. Remove MODE_V8SF handling.
27852 (*movti_internal): Do not check for
27853 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
27854 (*movtf_internal): Move check for TARGET_SSE2 and size optimization
27855 just after check for TARGET_AVX.
27856 (*movdf_internal): Ditto.
27857 * config/i386/mmx.md (*mov<mode>_internal): Do not check for
27858 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
27859 * config/i386/sse.md (mov<mode>_internal): Only check
27860 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL with V2DFmode. Move check
27861 for TARGET_SSE2 and size optimization just after check for TARGET_AVX.
27862 (<sse>_andnot<mode>3<mask_name>): Move check for
27863 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL after check for TARGET_AVX.
27864 (<code><mode>3<mask_name>): Ditto.
27865 (*andnot<mode>3): Ditto.
27866 (*andnottf3): Ditto.
27867 (*<code><mode>3): Ditto.
27868 (*<code>tf3): Ditto.
27869 (*andnot<VI:mode>3): Remove
27870 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling.
27871 (<mask_codefor><code><VI48_AVX_AVX512F:mode>3<mask_name>): Ditto.
27872 (*<code><VI12_AVX_AVX512F:mode>3): Ditto.
27873 (sse4_1_blendv<ssemodesuffix>): Ditto.
27874 * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL):
27875 Explain that tune applies to 128bit instructions only.
27876
27877 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
27878
27879 * config/gcn/mkoffload.c (process_asm): Add sgpr_count and vgpr_count
27880 to definition of hsa_kernel_description. Parse assembly to find SGPR
27881 and VGPR count of kernel and store in hsa_kernel_description.
27882
27883 2020-01-31 Tamar Christina <tamar.christina@arm.com>
27884
27885 PR rtl-optimization/91838
27886 * simplify-rtx.c (simplify_binary_operation_1): Update LSHIFTRT case
27887 to truncate if allowed or reject combination.
27888
27889 2020-01-31 Andrew Stubbs <ams@codesourcery.com>
27890
27891 * tree-ssa-loop-ivopts.c (get_iv): Use sizetype for zero-step.
27892 (find_inv_vars_cb): Likewise.
27893
27894 2020-01-31 David Malcolm <dmalcolm@redhat.com>
27895
27896 * calls.c (special_function_p): Split out the check for DECL_NAME
27897 being non-NULL and fndecl being extern at file scope into a
27898 new maybe_special_function_p and call it. Drop check for fndecl
27899 being non-NULL that was after a usage of DECL_NAME (fndecl).
27900 * tree.h (maybe_special_function_p): New inline function.
27901
27902 2020-01-30 Andrew Stubbs <ams@codesourcery.com>
27903
27904 * config/gcn/gcn-valu.md (gather<mode>_exec): Move contents ...
27905 (mask_gather_load<mode>): ... here, and zero-initialize the
27906 destination.
27907 (maskload<mode>di): Zero-initialize the destination.
27908 * config/gcn/gcn.c:
27909
27910 2020-01-30 David Malcolm <dmalcolm@redhat.com>
27911
27912 PR analyzer/93356
27913 * doc/analyzer.texi (Limitations): Note that constraints on
27914 floating-point values are currently ignored.
27915
27916 2020-01-30 Jakub Jelinek <jakub@redhat.com>
27917
27918 PR lto/93384
27919 * symtab.c (symtab_node::noninterposable_alias): If localalias
27920 already exists, but is not usable, append numbers after it until
27921 a unique name is found. Formatting fix.
27922
27923 PR middle-end/93505
27924 * combine.c (simplify_comparison) <case ROTATE>: Punt on out of range
27925 rotate counts.
27926
27927 2020-01-30 Andrew Stubbs <ams@codesourcery.com>
27928
27929 * config/gcn/gcn.c (print_operand): Handle LTGT.
27930 * config/gcn/predicates.md (gcn_fp_compare_operator): Allow ltgt.
27931
27932 2020-01-30 Richard Biener <rguenther@suse.de>
27933
27934 * tree-pretty-print.c (dump_generic_node): Wrap VECTOR_CST
27935 and CONSTRUCTOR in _Literal (type) with TDF_GIMPLE.
27936
27937 2020-01-30 John David Anglin <danglin@gcc.gnu.org>
27938
27939 * config/pa/pa.c (pa_elf_select_rtx_section): Place function pointers
27940 without a DECL in .data.rel.ro.local.
27941
27942 2020-01-30 Jakub Jelinek <jakub@redhat.com>
27943
27944 PR target/93494
27945 * config/arm/arm.md (uaddvdi4): Actually emit what gen_uaddvsi4
27946 returned.
27947
27948 PR target/91824
27949 * config/i386/sse.md
27950 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext): Renamed to ...
27951 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext): ... this. Use
27952 any_extend code iterator instead of always zero_extend.
27953 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_lt): Renamed to ...
27954 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_lt): ... this.
27955 Use any_extend code iterator instead of always zero_extend.
27956 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_zext_shift): Renamed to ...
27957 (*<sse>_movmsk<ssemodesuffix><avxsizesuffix>_<u>ext_shift): ... this.
27958 Use any_extend code iterator instead of always zero_extend.
27959 (*sse2_pmovmskb_ext): New define_insn.
27960 (*sse2_pmovmskb_ext_lt): New define_insn_and_split.
27961
27962 PR target/91824
27963 * config/i386/i386.md (*popcountsi2_zext): New define_insn_and_split.
27964 (*popcountsi2_zext_falsedep): New define_insn.
27965
27966 2020-01-30 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
27967
27968 * config.in: Regenerated.
27969 * configure: Regenerated.
27970
27971 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
27972
27973 PR bootstrap/93409
27974 * config/gcn/gcn-hsa.h (ASM_SPEC): Add -mattr=-code-object-v3 as
27975 LLVM's assembler changed the default in version 9.
27976
27977 2020-01-24 Jeff Law <law@redhat.com>
27978
27979 PR tree-optimization/89689
27980 * builtins.def (BUILT_IN_OBJECT_SIZE): Make it const rather than pure.
27981
27982 2020-01-29 Richard Sandiford <richard.sandiford@arm.com>
27983
27984 Revert:
27985
27986 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
27987
27988 PR rtl-optimization/87763
27989 * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
27990 simplification to handle subregs as well as bare regs.
27991 * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
27992
27993 2020-01-29 Joel Hutton <Joel.Hutton@arm.com>
27994
27995 PR target/93221
27996 * ira.c (ira): Revert use of simplified LRA algorithm.
27997
27998 2020-01-29 Martin Jambor <mjambor@suse.cz>
27999
28000 PR tree-optimization/92706
28001 * tree-sra.c (struct access): Fields first_link, last_link,
28002 next_queued and grp_queued renamed to first_rhs_link, last_rhs_link,
28003 next_rhs_queued and grp_rhs_queued respectively, new fields
28004 first_lhs_link, last_lhs_link, next_lhs_queued and grp_lhs_queued.
28005 (struct assign_link): Field next renamed to next_rhs, new field
28006 next_lhs. Updated comment.
28007 (work_queue_head): Renamed to rhs_work_queue_head.
28008 (lhs_work_queue_head): New variable.
28009 (add_link_to_lhs): New function.
28010 (relink_to_new_repr): Also relink LHS lists.
28011 (add_access_to_work_queue): Renamed to add_access_to_rhs_work_queue.
28012 (add_access_to_lhs_work_queue): New function.
28013 (pop_access_from_work_queue): Renamed to
28014 pop_access_from_rhs_work_queue.
28015 (pop_access_from_lhs_work_queue): New function.
28016 (build_accesses_from_assign): Also add links to LHS lists and to LHS
28017 work_queue.
28018 (child_would_conflict_in_lacc): Renamed to
28019 child_would_conflict_in_acc. Adjusted parameter names.
28020 (create_artificial_child_access): New parameter set_grp_read, use it.
28021 (subtree_mark_written_and_enqueue): Renamed to
28022 subtree_mark_written_and_rhs_enqueue.
28023 (propagate_subaccesses_across_link): Renamed to
28024 propagate_subaccesses_from_rhs.
28025 (propagate_subaccesses_from_lhs): New function.
28026 (propagate_all_subaccesses): Also propagate subaccesses from LHSs to
28027 RHSs.
28028
28029 2020-01-29 Martin Jambor <mjambor@suse.cz>
28030
28031 PR tree-optimization/92706
28032 * tree-sra.c (struct access): Adjust comment of
28033 grp_total_scalarization.
28034 (find_access_in_subtree): Look for single children spanning an entire
28035 access.
28036 (scalarizable_type_p): Allow register accesses, adjust callers.
28037 (completely_scalarize): Remove function.
28038 (scalarize_elem): Likewise.
28039 (create_total_scalarization_access): Likewise.
28040 (sort_and_splice_var_accesses): Do not track total scalarization
28041 flags.
28042 (analyze_access_subtree): New parameter totally, adjust to new meaning
28043 of grp_total_scalarization.
28044 (analyze_access_trees): Pass new parameter to analyze_access_subtree.
28045 (can_totally_scalarize_forest_p): New function.
28046 (create_total_scalarization_access): Likewise.
28047 (create_total_access_and_reshape): Likewise.
28048 (total_should_skip_creating_access): Likewise.
28049 (totally_scalarize_subtree): Likewise.
28050 (analyze_all_variable_accesses): Perform total scalarization after
28051 subaccess propagation using the new functions above.
28052 (initialize_constant_pool_replacements): Output initializers by
28053 traversing the access tree.
28054
28055 2020-01-29 Martin Jambor <mjambor@suse.cz>
28056
28057 * tree-sra.c (verify_sra_access_forest): New function.
28058 (verify_all_sra_access_forests): Likewise.
28059 (create_artificial_child_access): Set parent.
28060 (analyze_all_variable_accesses): Call the verifier.
28061
28062 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
28063
28064 * cgraph.c (cgraph_edge::resolve_speculation): Only lookup direct edge
28065 if called on indirect edge.
28066 (cgraph_edge::redirect_call_stmt_to_callee): Lookup indirect edge of
28067 speculative call if needed.
28068
28069 2020-01-29 Richard Biener <rguenther@suse.de>
28070
28071 PR tree-optimization/93428
28072 * tree-vect-slp.c (vect_build_slp_tree_2): Compute the load
28073 permutation when the load node is created.
28074 (vect_analyze_slp_instance): Re-use it here.
28075
28076 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
28077
28078 * ipa-prop.c (update_indirect_edges_after_inlining): Fix warning.
28079
28080 2020-01-28 Vladimir Makarov <vmakarov@redhat.com>
28081
28082 PR rtl-optimization/93272
28083 * ira-lives.c (process_out_of_region_eh_regs): New function.
28084 (process_bb_node_lives): Call it.
28085
28086 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
28087
28088 * coverage.c (read_counts_file): Make error message lowercase.
28089
28090 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
28091
28092 * profile-count.c (profile_quality_display_names): Fix ordering.
28093
28094 2020-01-28 Jan Hubicka <hubicka@ucw.cz>
28095
28096 PR lto/93318
28097 * cgraph.c (cgraph_add_edge_to_call_site_hash): Update call site
28098 hash only when edge is first within the sequence.
28099 (cgraph_edge::set_call_stmt): Update handling of speculative calls.
28100 (symbol_table::create_edge): Do not set target_prob.
28101 (cgraph_edge::remove_caller): Watch for speculative calls when updating
28102 the call site hash.
28103 (cgraph_edge::make_speculative): Drop target_prob parameter.
28104 (cgraph_edge::speculative_call_info): Remove.
28105 (cgraph_edge::first_speculative_call_target): New member function.
28106 (update_call_stmt_hash_for_removing_direct_edge): New function.
28107 (cgraph_edge::resolve_speculation): Rewrite to new API.
28108 (cgraph_edge::speculative_call_for_target): New member function.
28109 (cgraph_edge::make_direct): Rewrite to new API; fix handling of
28110 multiple speculation targets.
28111 (cgraph_edge::redirect_call_stmt_to_callee): Likewise; fix updating
28112 of profile.
28113 (verify_speculative_call): Verify that targets form an interval.
28114 * cgraph.h (cgraph_edge::speculative_call_info): Remove.
28115 (cgraph_edge::first_speculative_call_target): New member function.
28116 (cgraph_edge::next_speculative_call_target): New member function.
28117 (cgraph_edge::speculative_call_target_ref): New member function.
28118 (cgraph_edge;:speculative_call_indirect_edge): New member funtion.
28119 (cgraph_edge): Remove target_prob.
28120 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
28121 Fix handling of speculative calls.
28122 * ipa-devirt.c (ipa_devirt): Fix handling of speculative cals.
28123 * ipa-fnsummary.c (analyze_function_body): Likewise.
28124 * ipa-inline.c (speculation_useful_p): Use new speculative call API.
28125 * ipa-profile.c (dump_histogram): Fix formating.
28126 (ipa_profile_generate_summary): Watch for overflows.
28127 (ipa_profile): Do not require probablity to be 1/2; update to new API.
28128 * ipa-prop.c (ipa_make_edge_direct_to_target): Update to new API.
28129 (update_indirect_edges_after_inlining): Update to new API.
28130 * ipa-utils.c (ipa_merge_profiles): Rewrite merging of speculative call
28131 profiles.
28132 * profile-count.h: (profile_probability::adjusted): New.
28133 * tree-inline.c (copy_bb): Update to new speculative call API; fix
28134 updating of profile.
28135 * value-prof.c (gimple_ic_transform): Rename to ...
28136 (dump_ic_profile): ... this one; update dumping.
28137 (stream_in_histogram_value): Fix formating.
28138 (gimple_value_profile_transformations): Update.
28139
28140 2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
28141
28142 PR target/91461
28143 * config/i386/i386.md (*movoi_internal_avx): Remove
28144 TARGET_SSE_TYPELESS_STORES check.
28145 (*movti_internal): Prefer TARGET_AVX over
28146 TARGET_SSE_TYPELESS_STORES.
28147 (*movtf_internal): Likewise.
28148 * config/i386/sse.md (mov<mode>_internal): Prefer TARGET_AVX over
28149 TARGET_SSE_TYPELESS_STORES. Remove "<MODE_SIZE> == 16" check
28150 from TARGET_SSE_TYPELESS_STORES.
28151
28152 2020-01-28 David Malcolm <dmalcolm@redhat.com>
28153
28154 * diagnostic-core.h (warning_at): Rename overload to...
28155 (warning_meta): ...this.
28156 (emit_diagnostic_valist): Delete decl of overload taking
28157 diagnostic_metadata.
28158 * diagnostic.c (emit_diagnostic_valist): Likewise for defn.
28159 (warning_at): Rename overload taking diagnostic_metadata to...
28160 (warning_meta): ...this.
28161
28162 2020-01-28 Richard Biener <rguenther@suse.de>
28163
28164 PR tree-optimization/93439
28165 * tree-parloops.c (create_loop_fn): Move clique bookkeeping...
28166 * tree-cfg.c (move_sese_region_to_fn): ... here.
28167 (verify_types_in_gimple_reference): Verify used cliques are
28168 tracked.
28169
28170 2020-01-28 H.J. Lu <hongjiu.lu@intel.com>
28171
28172 PR target/91399
28173 * config/i386/i386-options.c (set_ix86_tune_features): Add an
28174 argument of a pointer to struct gcc_options and pass it to
28175 parse_mtune_ctrl_str.
28176 (ix86_function_specific_restore): Pass opts to
28177 set_ix86_tune_features.
28178 (ix86_option_override_internal): Likewise.
28179 (parse_mtune_ctrl_str): Add an argument of a pointer to struct
28180 gcc_options and use it for x_ix86_tune_ctrl_string.
28181
28182 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
28183
28184 PR rtl-optimization/87763
28185 * simplify-rtx.c (simplify_truncation): Extend sign/zero_extract
28186 simplification to handle subregs as well as bare regs.
28187 * config/i386/i386.md (*testqi_ext_3): Match QI extracts too.
28188
28189 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
28190
28191 * tree-vect-loop.c (vectorizable_reduction): Fail gracefully
28192 for reduction chains that (now) include a call.
28193
28194 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
28195
28196 PR tree-optimization/92822
28197 * tree-ssa-forwprop.c (simplify_vector_constructor): When filling
28198 out the don't-care elements of a vector whose significant elements
28199 are duplicates, make the don't-care elements duplicates too.
28200
28201 2020-01-28 Richard Sandiford <richard.sandiford@arm.com>
28202
28203 PR tree-optimization/93434
28204 * tree-predcom.c (split_data_refs_to_components): Record which
28205 components have had aliasing loads removed. Prevent store-store
28206 commoning for all such components.
28207
28208 2020-01-28 Jakub Jelinek <jakub@redhat.com>
28209
28210 PR target/93418
28211 * config/i386/i386.c (ix86_fold_builtin) <do_shift>: If mask is not
28212 -1 or is_vshift is true, use new_vector with number of elts npatterns
28213 rather than new_unary_operation.
28214
28215 PR tree-optimization/93454
28216 * gimple-fold.c (fold_array_ctor_reference): Perform
28217 elt_size.to_uhwi () just once, instead of calling it in every
28218 iteration. Punt if that value is above size of the temporary
28219 buffer. Decrease third native_encode_expr argument when
28220 bufoff + elt_sz is above size of buf.
28221
28222 2020-01-27 Joseph Myers <joseph@codesourcery.com>
28223
28224 * config/mips/mips.c (mips_declare_object_name)
28225 [USE_GNU_UNIQUE_OBJECT]: Support use of gnu_unique_object.
28226
28227 2020-01-27 Martin Liska <mliska@suse.cz>
28228
28229 PR gcov-profile/93403
28230 * tree-profile.c (gimple_init_gcov_profiler): Generate
28231 both __gcov_indirect_call_profiler_v4 and
28232 __gcov_indirect_call_profiler_v4_atomic.
28233
28234 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
28235
28236 PR target/92822
28237 * config/aarch64/aarch64-simd.md (aarch64_get_half<mode>): New
28238 expander.
28239 (@aarch64_split_simd_mov<mode>): Use it.
28240 (aarch64_simd_mov_from_<mode>low): Add a GPR alternative.
28241 Leave the vec_extract patterns to handle 2-element vectors.
28242 (aarch64_simd_mov_from_<mode>high): Likewise.
28243 (vec_extract<VQMOV_NO2E:mode><Vhalf>): New expander.
28244 (vec_extractv2dfv1df): Likewise.
28245
28246 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
28247
28248 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Match
28249 jump conditions for *compare_condjump<GPI:mode>.
28250
28251 2020-01-27 David Malcolm <dmalcolm@redhat.com>
28252
28253 PR analyzer/93276
28254 * digraph.cc (test_edge::test_edge): Specify template for base
28255 class initializer.
28256
28257 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
28258
28259 * config/arc/arc.c (arc_rtx_costs): Update mul64 cost.
28260
28261 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
28262
28263 * config/arc/arc-protos.h (gen_mlo): Remove.
28264 (gen_mhi): Likewise.
28265 * config/arc/arc.c (AUX_MULHI): Define.
28266 (arc_must_save_reister): Special handling for r58/59.
28267 (arc_compute_frame_size): Consider mlo/mhi registers.
28268 (arc_save_callee_saves): Emit fp/sp move only when emit_move
28269 paramter is true.
28270 (arc_conditional_register_usage): Remove TARGET_BIG_ENDIAN from
28271 mlo/mhi name selection.
28272 (arc_restore_callee_saves): Don't early restore blink when ISR.
28273 (arc_expand_prologue): Add mlo/mhi saving.
28274 (arc_expand_epilogue): Add mlo/mhi restoring.
28275 (gen_mlo): Remove.
28276 (gen_mhi): Remove.
28277 * config/arc/arc.h (DBX_REGISTER_NUMBER): Correct register
28278 numbering when MUL64 option is used.
28279 (DWARF2_FRAME_REG_OUT): Define.
28280 * config/arc/arc.md (arc600_stall): New pattern.
28281 (VUNSPEC_ARC_ARC600_STALL): Define.
28282 (mulsi64): Use correct mlo/mhi registers.
28283 (mulsi_600): Clean it up.
28284 * config/arc/predicates.md (mlo_operand): Remove any dependency on
28285 TARGET_BIG_ENDIAN.
28286 (mhi_operand): Likewise.
28287
28288 2020-01-27 Claudiu Zissulescu <claziss@synopsys.com>
28289 Petro Karashchenko <petro.karashchenko@ring.com>
28290
28291 * config/arc/arc.c (arc_is_uncached_mem_p): Check struct
28292 attributes if needed.
28293 (prepare_move_operands): Generate special unspec instruction for
28294 direct access.
28295 (arc_isuncached_mem_p): Propagate uncached attribute to each
28296 structure member.
28297 * config/arc/arc.md (VUNSPEC_ARC_LDDI): Define.
28298 (VUNSPEC_ARC_STDI): Likewise.
28299 (ALLI): New mode iterator.
28300 (mALLI): New mode attribute.
28301 (lddi): New instruction pattern.
28302 (stdi): Likewise.
28303 (stdidi_split): Split instruction for architectures which are not
28304 supporting ll64 option.
28305 (lddidi_split): Likewise.
28306
28307 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
28308
28309 PR rtl-optimization/92989
28310 * lra-lives.c (process_bb_lives): Update the live-in set before
28311 processing additional clobbers.
28312
28313 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
28314
28315 PR rtl-optimization/93170
28316 * cselib.c (cselib_invalidate_regno_val): New function, split out
28317 from...
28318 (cselib_invalidate_regno): ...here.
28319 (cselib_invalidated_by_call_p): New function.
28320 (cselib_process_insn): Iterate over all the hard-register entries in
28321 REG_VALUES and invalidate any that cross call-clobbered registers.
28322
28323 2020-01-27 Richard Sandiford <richard.sandiford@arm.com>
28324
28325 * dojump.c (split_comparison): Use HONOR_NANS rather than
28326 HONOR_SNANS when splitting LTGT.
28327
28328 2020-01-27 Martin Liska <mliska@suse.cz>
28329
28330 PR driver/91220
28331 * opts.c (print_filtered_help): Exclude language-specific
28332 options from --help=common unless enabled in all FEs.
28333
28334 2020-01-27 Martin Liska <mliska@suse.cz>
28335
28336 * opts.c (print_help): Exclude params from
28337 all except --help=param.
28338
28339 2020-01-27 Martin Liska <mliska@suse.cz>
28340
28341 PR target/93274
28342 * config/i386/i386-features.c (make_resolver_func):
28343 Align the code with ppc64 target implementation.
28344 Do not generate a unique name for resolver function.
28345
28346 2020-01-27 Richard Biener <rguenther@suse.de>
28347
28348 PR tree-optimization/93397
28349 * tree-vect-slp.c (vect_analyze_slp_instance): Delay
28350 converted reduction chain SLP graph adjustment.
28351
28352 2020-01-26 Marek Polacek <polacek@redhat.com>
28353
28354 PR sanitizer/93436
28355 * sanopt.c (sanitize_rewrite_addressable_params): Avoid crash on
28356 null DECL_NAME.
28357
28358 2020-01-26 Jason Merrill <jason@redhat.com>
28359
28360 PR c++/92601
28361 * tree.c (verify_type_variant): Only verify TYPE_NEEDS_CONSTRUCTING
28362 of complete types.
28363
28364 2020-01-26 Darius Galis <darius.galis@cyberthorstudios.com>
28365
28366 * config/rx/rx.md (setmemsi): Added rx_allow_string_insns constraint
28367 (rx_setmem): Likewise.
28368
28369 2020-01-26 Jakub Jelinek <jakub@redhat.com>
28370
28371 PR target/93412
28372 * config/i386/i386.md (*addv<dwi>4_doubleword, *subv<dwi>4_doubleword):
28373 Use nonimmediate_operand instead of x86_64_hilo_general_operand and
28374 drop <di> from constraint of last operand.
28375
28376 PR target/93430
28377 * config/i386/sse.md (*avx_vperm_broadcast_<mode>): Disallow for
28378 TARGET_AVX2 and V4DFmode not in the split condition, but in the
28379 pattern condition, though allow { 0, 0, 0, 0 } broadcast always.
28380
28381 2020-01-25 Feng Xue <fxue@os.amperecomputing.com>
28382
28383 PR ipa/93166
28384 * ipa-cp.c (get_info_about_necessary_edges): Remove value
28385 check assertion.
28386
28387 2020-01-24 Jeff Law <law@redhat.com>
28388
28389 PR tree-optimization/92788
28390 * tree-ssa-threadedge.c (thread_across_edge): Check EDGE_COMPLEX
28391 not EDGE_ABNORMAL.
28392
28393 2020-01-24 Jakub Jelinek <jakub@redhat.com>
28394
28395 PR target/93395
28396 * config/i386/sse.md (*avx_vperm_broadcast_v4sf,
28397 *avx_vperm_broadcast_<mode>,
28398 <sse2_avx_avx512f>_vpermil<mode><mask_name>,
28399 *<sse2_avx_avx512f>_vpermilp<mode><mask_name>):
28400 Move before avx2_perm<mode>/avx512f_perm<mode>.
28401
28402 PR target/93376
28403 * simplify-rtx.c (simplify_const_unary_operation,
28404 simplify_const_binary_operation): Punt for mode precision above
28405 MAX_BITSIZE_MODE_ANY_INT.
28406
28407 2020-01-24 Andrew Pinski <apinski@marvell.com>
28408
28409 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Change
28410 alu.shift_reg to 0.
28411
28412 2020-01-24 Jeff Law <law@redhat.com>
28413
28414 PR target/13721
28415 * config/h8300/h8300.c (h8300_print_operand): Only call byte_reg
28416 for REGs. Call output_operand_lossage to get more reasonable
28417 diagnostics.
28418
28419 2020-01-24 Andrew Stubbs <ams@codesourcery.com>
28420
28421 * config/gcn/gcn-valu.md (vec_cmp<mode>di): Use
28422 gcn_fp_compare_operator.
28423 (vec_cmpu<mode>di): Use gcn_compare_operator.
28424 (vec_cmp<u>v64qidi): Use gcn_compare_operator.
28425 (vec_cmp<mode>di_exec): Use gcn_fp_compare_operator.
28426 (vec_cmpu<mode>di_exec): Use gcn_compare_operator.
28427 (vec_cmp<u>v64qidi_exec): Use gcn_compare_operator.
28428 (vec_cmp<mode>di_dup): Use gcn_fp_compare_operator.
28429 (vec_cmp<mode>di_dup_exec): Use gcn_fp_compare_operator.
28430 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): Use
28431 gcn_fp_compare_operator.
28432 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): Use
28433 gcn_fp_compare_operator.
28434 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): Use
28435 gcn_fp_compare_operator.
28436 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): Use
28437 gcn_fp_compare_operator.
28438
28439 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
28440
28441 * doc/install.texi (Cross-Compiler-Specific Options): Document
28442 `--with-toolexeclibdir' option.
28443
28444 2020-01-24 Hans-Peter Nilsson <hp@axis.com>
28445
28446 * target.def (flags_regnum): Also mention effect on delay slot filling.
28447 * doc/tm.texi: Regenerate.
28448
28449 2020-01-23 Jeff Law <law@redhat.com>
28450
28451 PR translation/90162
28452 * config/h8300/h8300.c (h8300_option_override): Fix diagnostic text.
28453
28454 2020-01-23 Mikael Tillenius <mti-1@tillenius.com>
28455
28456 PR target/92269
28457 * config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of
28458 profiling label
28459
28460 2020-01-23 Jakub Jelinek <jakub@redhat.com>
28461
28462 PR rtl-optimization/93402
28463 * postreload.c (reload_combine_recognize_pattern): Don't try to adjust
28464 USE insns.
28465
28466 2020-01-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
28467
28468 * config.in: Regenerated.
28469 * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to 1
28470 for TARGET_LIBC_GNUSTACK.
28471 * configure: Regenerated.
28472 * configure.ac: Define TARGET_LIBC_GNUSTACK if glibc version is
28473 found to be 2.31 or greater.
28474
28475 2020-01-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
28476
28477 * config/mips/linux.h (NEED_INDICATE_EXEC_STACK): Define to
28478 TARGET_SOFT_FLOAT.
28479 * config/mips/mips.c (TARGET_ASM_FILE_END): Define to ...
28480 (mips_asm_file_end): New function. Delegate to
28481 file_end_indicate_exec_stack if NEED_INDICATE_EXEC_STACK is true.
28482 * config/mips/mips.h (NEED_INDICATE_EXEC_STACK): Define to 0.
28483
28484 2020-01-23 Jakub Jelinek <jakub@redhat.com>
28485
28486 PR target/93376
28487 * config/i386/i386-modes.def (POImode): New mode.
28488 (MAX_BITSIZE_MODE_ANY_INT): Change from 128 to 160.
28489 * config/i386/i386.md (DPWI): New mode attribute.
28490 (addv<mode>4, subv<mode>4): Use <DPWI> instead of <DWI>.
28491 (QWI): Rename to...
28492 (QPWI): ... this. Use POI instead of OI for TImode.
28493 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1,
28494 *subv<dwi>4_doubleword, *subv<dwi>4_doubleword_1): Use <QPWI>
28495 instead of <QWI>.
28496
28497 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
28498
28499 PR target/93341
28500 * config/aarch64/aarch64.md (UNSPEC_SPECULATION_TRACKER_REV): New
28501 unspec.
28502 (speculation_tracker_rev): New pattern.
28503 * config/aarch64/aarch64-speculation.cc (aarch64_do_track_speculation):
28504 Use speculation_tracker_rev to track the inverse condition.
28505
28506 2020-01-23 Richard Biener <rguenther@suse.de>
28507
28508 PR tree-optimization/93381
28509 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Take
28510 alias-set of the def as argument and record the first one.
28511 (vn_walk_cb_data::first_set): New member.
28512 (vn_reference_lookup_3): Pass the alias-set of the current def
28513 to push_partial_def. Fix alias-set used in the aggregate copy
28514 case.
28515 (vn_reference_lookup): Consistently set *last_vuse_ptr.
28516 * real.c (clear_significand_below): Fix out-of-bound access.
28517
28518 2020-01-23 Jakub Jelinek <jakub@redhat.com>
28519
28520 PR target/93346
28521 * config/i386/i386.md (*bmi2_bzhi_<mode>3_2, *bmi2_bzhi_<mode>3_3):
28522 New define_insn patterns.
28523
28524 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
28525
28526 * doc/sourcebuild.texi (check-function-bodies): Add an
28527 optional target/xfail selector.
28528
28529 2020-01-23 Richard Sandiford <richard.sandiford@arm.com>
28530
28531 PR rtl-optimization/93124
28532 * auto-inc-dec.c (merge_in_block): Don't add auto inc/decs to
28533 bare USE and CLOBBER insns.
28534
28535 2020-01-22 Andrew Pinski <apinski@marvell.com>
28536
28537 * config/arc/arc.c (output_short_suffix): Check insn for nullness.
28538
28539 2020-01-22 David Malcolm <dmalcolm@redhat.com>
28540
28541 PR analyzer/93307
28542 * gdbinit.in (break-on-saved-diagnostic): Update for move of
28543 diagnostic_manager into "ana" namespace.
28544 * selftest-run-tests.c (selftest::run_tests): Update for move of
28545 selftest::run_analyzer_selftests to
28546 ana::selftest::run_analyzer_selftests.
28547
28548 2020-01-22 Richard Sandiford <richard.sandiford@arm.com>
28549
28550 * cfgexpand.c (union_stack_vars): Update the size.
28551
28552 2020-01-22 Richard Biener <rguenther@suse.de>
28553
28554 PR tree-optimization/93381
28555 * tree-ssa-structalias.c (find_func_aliases): Assume offsetting
28556 throughout, handle all conversions the same.
28557
28558 2020-01-22 Jakub Jelinek <jakub@redhat.com>
28559
28560 PR target/93335
28561 * config/aarch64/aarch64.c (aarch64_expand_subvti): Only use
28562 gen_subdi3_compare1_imm if low_in2 satisfies aarch64_plus_immediate
28563 predicate, not whenever it is CONST_INT. Otherwise, force_reg it.
28564 Call force_reg on high_in2 unconditionally.
28565
28566 2020-01-22 Martin Liska <mliska@suse.cz>
28567
28568 PR tree-optimization/92924
28569 * profile.c (compute_value_histograms): Divide
28570 all counter values.
28571
28572 2020-01-22 Jakub Jelinek <jakub@redhat.com>
28573
28574 PR target/91298
28575 * output.h (assemble_name_resolve): Declare.
28576 * varasm.c (assemble_name_resolve): New function.
28577 (assemble_name): Use it.
28578 * config/i386/i386.h (ASM_OUTPUT_SYMBOL_REF): Define.
28579
28580 2020-01-22 Joseph Myers <joseph@codesourcery.com>
28581
28582 * doc/sourcebuild.texi (Texinfo Manuals, Front End): Refer to
28583 update_web_docs_git instead of update_web_docs_svn.
28584
28585 2020-01-21 Andrew Pinski <apinski@marvell.com>
28586
28587 PR target/9311
28588 * config/aarch64/aarch64.md (tlsgd_small_<mode>): Have operand 0
28589 as PTR mode. Have operand 1 as being modeless, it can be P mode.
28590 (*tlsgd_small_<mode>): Likewise.
28591 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately)
28592 <case SYMBOL_SMALL_TLSGD>: Call gen_tlsgd_small_* with a ptr_mode
28593 register. Convert that register back to dest using convert_mode.
28594
28595 2020-01-21 Jim Wilson <jimw@sifive.com>
28596
28597 * config/riscv/riscv-sr.c (riscv_sr_match_prologue): Use INTVAL
28598 instead of XINT.
28599
28600 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
28601 Uros Bizjak <ubizjak@gmail.com>
28602
28603 PR target/93319
28604 * config/i386/i386.c (ix86_tls_module_base): Replace Pmode
28605 with ptr_mode.
28606 (legitimize_tls_address): Do GNU2 TLS address computation in
28607 ptr_mode and zero-extend result to Pmode.
28608 * config/i386/i386.md (@tls_dynamic_gnu2_64_<mode>): Replace
28609 :P with :PTR and Pmode with ptr_mode.
28610 (*tls_dynamic_gnu2_lea_64_<mode>): Likewise.
28611 (*tls_dynamic_gnu2_call_64_<mode>): Likewise.
28612 (*tls_dynamic_gnu2_combine_64_<mode>): Likewise.
28613
28614 2020-01-21 Jakub Jelinek <jakub@redhat.com>
28615
28616 PR target/93333
28617 * config/riscv/riscv.c (riscv_rtx_costs) <case ZERO_EXTRACT>: Verify
28618 the last two operands are CONST_INT_P before using them as such.
28619
28620 2020-01-21 Richard Sandiford <richard.sandiford@arm.com>
28621
28622 * config/aarch64/aarch64-sve-builtins.def: Use get_typenode_from_name
28623 to get the integer element types.
28624
28625 2020-01-21 Richard Sandiford <richard.sandiford@arm.com>
28626
28627 * config/aarch64/aarch64-sve-builtins.h
28628 (function_expander::convert_to_pmode): Declare.
28629 * config/aarch64/aarch64-sve-builtins.cc
28630 (function_expander::convert_to_pmode): New function.
28631 (function_expander::get_contiguous_base): Use it.
28632 (function_expander::prepare_gather_address_operands): Likewise.
28633 * config/aarch64/aarch64-sve-builtins-sve2.cc
28634 (svwhilerw_svwhilewr_impl::expand): Likewise.
28635
28636 2020-01-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
28637
28638 PR target/92424
28639 * config/aarch64/aarch64.c (aarch64_declare_function_name): Set
28640 cfun->machine->label_is_assembled.
28641 (aarch64_print_patchable_function_entry): New.
28642 (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY): Define.
28643 * config/aarch64/aarch64.h (struct machine_function): New field,
28644 label_is_assembled.
28645
28646 2020-01-21 David Malcolm <dmalcolm@redhat.com>
28647
28648 PR ipa/93315
28649 * ipa-profile.c (ipa_profile): Delete call_sums and set it to
28650 NULL on exit.
28651
28652 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
28653
28654 PR lto/93318
28655 * cgraph.c (cgraph_edge::resolve_speculation,
28656 cgraph_edge::redirect_call_stmt_to_callee): Fix update of
28657 call_stmt_site_hash.
28658
28659 2020-01-21 Martin Liska <mliska@suse.cz>
28660
28661 * config/rs6000/rs6000.c (common_mode_defined): Remove
28662 unused variable.
28663
28664 2020-01-21 Richard Biener <rguenther@suse.de>
28665
28666 PR tree-optimization/92328
28667 * tree-ssa-sccvn.c (vn_reference_lookup_3): Preserve
28668 type when value-numbering same-sized store by inserting a
28669 VIEW_CONVERT_EXPR.
28670 (eliminate_dom_walker::eliminate_stmt): When eliminating
28671 a redundant store handle bit-reinterpretation of the same value.
28672
28673 2020-01-21 Andrew Pinski <apinski@marvel.com>
28674
28675 PR tree-opt/93321
28676 * tree-into-ssa.c (prepare_block_for_update_1): Split out
28677 from ...
28678 (prepare_block_for_update): This. Use a worklist instead of
28679 recursing.
28680
28681 2020-01-21 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
28682
28683 * config/arm/arm.c (clear_operation_p):
28684 Initialise last_regno, skip first iteration
28685 based on the first_set value and use ints instead
28686 of the unnecessary HOST_WIDE_INTs.
28687
28688 2020-01-21 Jakub Jelinek <jakub@redhat.com>
28689
28690 PR target/93073
28691 * config/rs6000/rs6000.c (rs6000_emit_cmove): If using fsel, punt for
28692 compare_mode other than SFmode or DFmode.
28693
28694 2020-01-21 Kito Cheng <kito.cheng@sifive.com>
28695
28696 PR target/93304
28697 * config/riscv/riscv-protos.h (riscv_hard_regno_rename_ok): New.
28698 * config/riscv/riscv.c (riscv_hard_regno_rename_ok): New.
28699 * config/riscv/riscv.h (HARD_REGNO_RENAME_OK): Defined.
28700
28701 2020-01-20 Wilco Dijkstra <wdijkstr@arm.com>
28702
28703 * config/aarch64/aarch64.c (neoversen1_tunings): Set jump_align to 4.
28704
28705 2020-01-20 Andrew Pinski <apinski@marvell.com>
28706
28707 PR middle-end/93242
28708 * targhooks.c (default_print_patchable_function_entry): Use
28709 output_asm_insn to emit the nop instruction.
28710
28711 2020-01-20 Fangrui Song <maskray@google.com>
28712
28713 PR middle-end/93194
28714 * targhooks.c (default_print_patchable_function_entry): Align to
28715 POINTER_SIZE.
28716
28717 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
28718
28719 PR target/93319
28720 * config/i386/i386.c (legitimize_tls_address): Pass Pmode to
28721 gen_tls_dynamic_gnu2_64. Compute GNU2 TLS address in ptr_mode.
28722 * config/i386/i386.md (tls_dynamic_gnu2_64): Renamed to ...
28723 (@tls_dynamic_gnu2_64_<mode>): This. Replace DI with P.
28724 (*tls_dynamic_gnu2_lea_64): Renamed to ...
28725 (*tls_dynamic_gnu2_lea_64_<mode>): This. Replace DI with P.
28726 Remove the {q} suffix from lea.
28727 (*tls_dynamic_gnu2_call_64): Renamed to ...
28728 (*tls_dynamic_gnu2_call_64_<mode>): This. Replace DI with P.
28729 (*tls_dynamic_gnu2_combine_64): Renamed to ...
28730 (*tls_dynamic_gnu2_combine_64_<mode>): This. Replace DI with P.
28731 Pass Pmode to gen_tls_dynamic_gnu2_64.
28732
28733 2020-01-20 Wilco Dijkstra <wdijkstr@arm.com>
28734
28735 * config/aarch64/aarch64.h (SLOW_BYTE_ACCESS): Set to 1.
28736
28737 2020-01-20 Richard Sandiford <richard.sandiford@arm.com>
28738
28739 * config/aarch64/aarch64-sve-builtins-base.cc
28740 (svld1ro_impl::memory_vector_mode): Remove parameter name.
28741
28742 2020-01-20 Richard Biener <rguenther@suse.de>
28743
28744 PR debug/92763
28745 * dwarf2out.c (prune_unused_types): Unconditionally mark
28746 called function DIEs.
28747
28748 2020-01-20 Martin Liska <mliska@suse.cz>
28749
28750 PR tree-optimization/93199
28751 * tree-eh.c (struct leh_state): Add
28752 new field outer_non_cleanup.
28753 (cleanup_is_dead_in): Pass leh_state instead
28754 of eh_region. Add a checking that state->outer_non_cleanup
28755 points to outer non-clean up region.
28756 (lower_try_finally): Record outer_non_cleanup
28757 for this_state.
28758 (lower_catch): Likewise.
28759 (lower_eh_filter): Likewise.
28760 (lower_eh_must_not_throw): Likewise.
28761 (lower_cleanup): Likewise.
28762
28763 2020-01-20 Richard Biener <rguenther@suse.de>
28764
28765 PR tree-optimization/93094
28766 * tree-vectorizer.h (vect_loop_versioning): Adjust.
28767 (vect_transform_loop): Likewise.
28768 * tree-vectorizer.c (try_vectorize_loop_1): Pass down
28769 loop_vectorized_call to vect_transform_loop.
28770 * tree-vect-loop.c (vect_transform_loop): Pass down
28771 loop_vectorized_call to vect_loop_versioning.
28772 * tree-vect-loop-manip.c (vect_loop_versioning): Use
28773 the earlier discovered loop_vectorized_call.
28774
28775 2020-01-19 Eric S. Raymond <esr@thyrsus.com>
28776
28777 * doc/contribute.texi: Update for SVN -> Git transition.
28778 * doc/install.texi: Likewise.
28779
28780 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
28781
28782 PR lto/93318
28783 * cgraph.c (cgraph_edge::make_speculative): Increase number of
28784 speculative targets.
28785 (verify_speculative_call): New function
28786 (cgraph_node::verify_node): Use it.
28787 * ipa-profile.c (ipa_profile): Fix formating; do not set number of
28788 speculations.
28789
28790 2020-01-18 Jan Hubicka <hubicka@ucw.cz>
28791
28792 PR lto/93318
28793 * cgraph.c (cgraph_edge::resolve_speculation): Fix foramting.
28794 (cgraph_edge::make_direct): Remove all indirect targets.
28795 (cgraph_edge::redirect_call_stmt_to_callee): Use make_direct..
28796 (cgraph_node::verify_node): Verify that only one call_stmt or
28797 lto_stmt_uid is set.
28798 * cgraphclones.c (cgraph_edge::clone): Set only one call_stmt or
28799 lto_stmt_uid.
28800 * lto-cgraph.c (lto_output_edge): Simplify streaming of stmt.
28801 (lto_output_ref): Simplify streaming of stmt.
28802 * lto-streamer-in.c (fixup_call_stmt_edges_1): Clear lto_stmt_uid.
28803
28804 2020-01-18 Tamar Christina <tamar.christina@arm.com>
28805
28806 * config/aarch64/aarch64-sve-builtins-base.cc (memory_vector_mode):
28807 Mark parameter unused.
28808
28809 2020-01-18 Hans-Peter Nilsson <hp@axis.com>
28810
28811 * config.gcc <obsolete targets>: Add crisv32-*-* and cris-*-linux*
28812
28813 2019-01-18 Gerald Pfeifer <gerald@pfeifer.com>
28814
28815 * varpool.c (ctor_useable_for_folding_p): Fix grammar.
28816
28817 2020-01-18 Iain Sandoe <iain@sandoe.co.uk>
28818
28819 * Makefile.in: Add coroutine-passes.o.
28820 * builtin-types.def (BT_CONST_SIZE): New.
28821 (BT_FN_BOOL_PTR): New.
28822 (BT_FN_PTR_PTR_CONST_SIZE_BOOL): New.
28823 * builtins.def (DEF_COROUTINE_BUILTIN): New.
28824 * coroutine-builtins.def: New file.
28825 * coroutine-passes.cc: New file.
28826 * function.h (struct GTY function): Add a bit to indicate that the
28827 function is a coroutine component.
28828 * internal-fn.c (expand_CO_FRAME): New.
28829 (expand_CO_YIELD): New.
28830 (expand_CO_SUSPN): New.
28831 (expand_CO_ACTOR): New.
28832 * internal-fn.def (CO_ACTOR): New.
28833 (CO_YIELD): New.
28834 (CO_SUSPN): New.
28835 (CO_FRAME): New.
28836 * passes.def: Add pass_coroutine_lower_builtins,
28837 pass_coroutine_early_expand_ifns.
28838 * tree-pass.h (make_pass_coroutine_lower_builtins): New.
28839 (make_pass_coroutine_early_expand_ifns): New.
28840 * doc/invoke.texi: Document the fcoroutines command line
28841 switch.
28842
28843 2020-01-18 Jakub Jelinek <jakub@redhat.com>
28844
28845 * config/arm/vfp.md (*clear_vfp_multiple): Remove unused variable.
28846
28847 PR target/93312
28848 * config/arm/arm.c (clear_operation_p): Don't use REGNO until
28849 after checking the argument is a REG. Don't use REGNO (reg)
28850 again to set last_regno, reuse regno variable instead.
28851
28852 2020-01-17 David Malcolm <dmalcolm@redhat.com>
28853
28854 * doc/analyzer.texi (Limitations): Add note about NaN.
28855
28856 2020-01-17 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
28857 Sudakshina Das <sudi.das@arm.com>
28858
28859 * config/arm/arm.md (ashldi3): Generate thumb2_lsll for both reg
28860 and valid immediate.
28861 (ashrdi3): Generate thumb2_asrl for both reg and valid immediate.
28862 (lshrdi3): Generate thumb2_lsrl for valid immediates.
28863 * config/arm/constraints.md (Pg): New.
28864 * config/arm/predicates.md (long_shift_imm): New.
28865 (arm_reg_or_long_shift_imm): Likewise.
28866 * config/arm/thumb2.md (thumb2_asrl): New immediate alternative.
28867 (thumb2_lsll): Likewise.
28868 (thumb2_lsrl): New.
28869
28870 2020-01-17 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
28871 Sudakshina Das <sudi.das@arm.com>
28872
28873 * config/arm/arm.md (ashldi3): Generate thumb2_lsll for TARGET_HAVE_MVE.
28874 (ashrdi3): Generate thumb2_asrl for TARGET_HAVE_MVE.
28875 * config/arm/arm.c (arm_hard_regno_mode_ok): Allocate even odd
28876 register pairs for doubleword quantities for ARMv8.1M-Mainline.
28877 * config/arm/thumb2.md (thumb2_asrl): New.
28878 (thumb2_lsll): Likewise.
28879
28880 2020-01-17 Jakub Jelinek <jakub@redhat.com>
28881
28882 * config/arm/arm.c (cmse_nonsecure_call_inline_register_clear): Remove
28883 unused variable.
28884
28885 2020-01-17 Alexander Monakov <amonakov@ispras.ru>
28886
28887 * gdbinit.in (help-gcc-hooks): New command.
28888 (pp, pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, ptc, pdn, ptn, pdd, prc,
28889 pi, pbm, pel, trt): Take $arg0 instead of $ if supplied. Update
28890 documentation.
28891
28892 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
28893
28894 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): Use the
28895 correct target macro.
28896
28897 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
28898
28899 * config/aarch64/aarch64-protos.h
28900 (aarch64_sve_ld1ro_operand_p): New.
28901 * config/aarch64/aarch64-sve-builtins-base.cc
28902 (class load_replicate): New.
28903 (class svld1ro_impl): New.
28904 (class svld1rq_impl): Change to inherit from load_replicate.
28905 (svld1ro): New sve intrinsic function base.
28906 * config/aarch64/aarch64-sve-builtins-base.def (svld1ro):
28907 New DEF_SVE_FUNCTION.
28908 * config/aarch64/aarch64-sve-builtins-base.h
28909 (svld1ro): New decl.
28910 * config/aarch64/aarch64-sve-builtins.cc
28911 (function_expander::add_mem_operand): Modify assert to allow
28912 OImode.
28913 * config/aarch64/aarch64-sve.md (@aarch64_sve_ld1ro<mode>): New
28914 pattern.
28915 * config/aarch64/aarch64.c
28916 (aarch64_sve_ld1rq_operand_p): Implement in terms of ...
28917 (aarch64_sve_ld1rq_ld1ro_operand_p): This.
28918 (aarch64_sve_ld1ro_operand_p): New.
28919 * config/aarch64/aarch64.md (UNSPEC_LD1RO): New unspec.
28920 * config/aarch64/constraints.md (UOb,UOh,UOw,UOd): New.
28921 * config/aarch64/predicates.md
28922 (aarch64_sve_ld1ro_operand_{b,h,w,d}): New.
28923
28924 2020-01-17 Matthew Malcomson <matthew.malcomson@arm.com>
28925
28926 * config/aarch64/aarch64-c.c (_ARM_FEATURE_MATMUL_FLOAT64):
28927 Introduce this ACLE specified predefined macro.
28928 * config/aarch64/aarch64-option-extensions.def (f64mm): New.
28929 (fp): Disabling this disables f64mm.
28930 (simd): Disabling this disables f64mm.
28931 (fp16): Disabling this disables f64mm.
28932 (sve): Disabling this disables f64mm.
28933 * config/aarch64/aarch64.h (AARCH64_FL_F64MM): New.
28934 (AARCH64_ISA_F64MM): New.
28935 (TARGET_F64MM): New.
28936 * doc/invoke.texi (f64mm): Document new option.
28937
28938 2020-01-17 Wilco Dijkstra <wdijkstr@arm.com>
28939
28940 * config/aarch64/aarch64.c (generic_tunings): Add branch fusion.
28941 (neoversen1_tunings): Likewise.
28942
28943 2020-01-17 Wilco Dijkstra <wdijkstr@arm.com>
28944
28945 PR target/92692
28946 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap)
28947 Add assert to ensure prolog has been emitted.
28948 (aarch64_split_atomic_op): Likewise.
28949 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>)
28950 Use epilogue_completed rather than reload_completed.
28951 (aarch64_atomic_exchange<mode>): Likewise.
28952 (aarch64_atomic_<atomic_optab><mode>): Likewise.
28953 (atomic_nand<mode>): Likewise.
28954 (aarch64_atomic_fetch_<atomic_optab><mode>): Likewise.
28955 (atomic_fetch_nand<mode>): Likewise.
28956 (aarch64_atomic_<atomic_optab>_fetch<mode>): Likewise.
28957 (atomic_nand_fetch<mode>): Likewise.
28958
28959 2020-01-17 Richard Sandiford <richard.sandiford@arm.com>
28960
28961 PR target/93133
28962 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Return false
28963 for FP modes.
28964 (REVERSE_CONDITION): Delete.
28965 * config/aarch64/iterators.md (CC_ONLY): New mode iterator.
28966 (CCFP_CCFPE): Likewise.
28967 (e): New mode attribute.
28968 * config/aarch64/aarch64.md (ccmp<GPI:mode>): Rename to...
28969 (@ccmp<CC_ONLY:mode><GPI:mode>): ...this, using CC_ONLY instead of CC.
28970 (fccmp<GPF:mode>, fccmpe<GPF:mode>): Merge into...
28971 (@ccmp<CCFP_CCFPE:mode><GPF:mode>): ...this combined pattern.
28972 (@ccmp<CC_ONLY:mode><GPI:mode>_rev): New pattern.
28973 (@ccmp<CCFP_CCFPE:mode><GPF:mode>_rev): Likewise.
28974 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Update
28975 name of generator from gen_ccmpdi to gen_ccmpccdi.
28976 (aarch64_gen_ccmp_next): Use code_for_ccmp. If we want to reverse
28977 the previous comparison but aren't able to, use the new ccmp_rev
28978 patterns instead.
28979
28980 2020-01-17 Richard Sandiford <richard.sandiford@arm.com>
28981
28982 * gimplify.c (gimplify_return_expr): Use poly_int_tree_p rather
28983 than testing directly for INTEGER_CST.
28984 (gimplify_target_expr, gimplify_omp_depend): Likewise.
28985
28986 2020-01-17 Jakub Jelinek <jakub@redhat.com>
28987
28988 PR tree-optimization/93292
28989 * tree-vect-stmts.c (vectorizable_comparison): Punt also if
28990 get_vectype_for_scalar_type returns NULL.
28991
28992 2020-01-16 Jan Hubicka <hubicka@ucw.cz>
28993
28994 * params.opt (-param=max-predicted-iterations): Increase range from 0.
28995 * predict.c (estimate_loops): Add 1 to param_max_predicted_iterations.
28996
28997 2020-01-16 Jan Hubicka <hubicka@ucw.cz>
28998
28999 * ipa-fnsummary.c (estimate_calls_size_and_time): Fix formating of
29000 dump.
29001 * params.opt: (max-predicted-iterations): Set bounds.
29002 * predict.c (real_almost_one, real_br_prob_base,
29003 real_inv_br_prob_base, real_one_half, real_bb_freq_max): Remove.
29004 (propagate_freq): Add max_cyclic_prob parameter; cap cyclic
29005 probabilities; do not truncate to reg_br_prob_bases.
29006 (estimate_loops_at_level): Pass max_cyclic_prob.
29007 (estimate_loops): Compute max_cyclic_prob.
29008 (estimate_bb_frequencies): Do not initialize real_*; update calculation
29009 of back edge prob.
29010 * profile-count.c (profile_probability::to_sreal): New.
29011 * profile-count.h (class sreal): Move up in file.
29012 (profile_probability::to_sreal): Declare.
29013
29014 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
29015
29016 * config/arm/arm.c
29017 (arm_invalid_conversion): New function for target hook.
29018 (arm_invalid_unary_op): New function for target hook.
29019 (arm_invalid_binary_op): New function for target hook.
29020
29021 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
29022
29023 * config.gcc: Add arm_bf16.h.
29024 * config/arm/arm-builtins.c (arm_mangle_builtin_type): Fix comment.
29025 (arm_simd_builtin_std_type): Add BFmode.
29026 (arm_init_simd_builtin_types): Define element types for vector types.
29027 (arm_init_bf16_types): New function.
29028 (arm_init_builtins): Add arm_init_bf16_types function call.
29029 * config/arm/arm-modes.def: Add BFmode and V4BF, V8BF vector modes.
29030 * config/arm/arm-simd-builtin-types.def: Add V4BF, V8BF.
29031 * config/arm/arm.c (aapcs_vfp_sub_candidate): Add BFmode.
29032 (arm_hard_regno_mode_ok): Add BFmode and tidy up statements.
29033 (arm_vector_mode_supported_p): Add V4BF, V8BF.
29034 (arm_mangle_type): Add __bf16.
29035 * config/arm/arm.h: Add V4BF, V8BF to VALID_NEON_DREG_MODE,
29036 VALID_NEON_QREG_MODE respectively. Add export arm_bf16_type_node,
29037 arm_bf16_ptr_type_node.
29038 * config/arm/arm.md: Add BFmode to movhf expand, mov pattern and
29039 define_split between ARM registers.
29040 * config/arm/arm_bf16.h: New file.
29041 * config/arm/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
29042 * config/arm/iterators.md: (ANY64_BF, VDXMOV, VHFBF, HFBF, fporbf): New.
29043 (VQXMOV): Add V8BF.
29044 * config/arm/neon.md: Add BF vector types to movhf NEON move patterns.
29045 * config/arm/vfp.md: Add BFmode to movhf patterns.
29046
29047 2020-01-16 Mihail Ionescu <mihail.ionescu@arm.com>
29048 Andre Vieira <andre.simoesdiasvieira@arm.com>
29049
29050 * config/arm/arm-cpus.in (mve, mve_float): New features.
29051 (dsp, mve, mve.fp): New options.
29052 * config/arm/arm.h (TARGET_HAVE_MVE, TARGET_HAVE_MVE_FLOAT): Define.
29053 * config/arm/t-rmprofile: Map v8.1-M multilibs to v8-M.
29054 * doc/invoke.texi: Document the armv8.1-m mve and dps options.
29055
29056 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29057 Thomas Preud'homme <thomas.preudhomme@arm.com>
29058
29059 * config/arm/arm-cpus.in (ARMv8_1m_main): Redefine as an extension to
29060 Armv8-M Mainline.
29061 * config/arm/arm.c (arm_options_perform_arch_sanity_checks): Remove
29062 error for using -mcmse when targeting Armv8.1-M Mainline.
29063
29064 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29065 Thomas Preud'homme <thomas.preudhomme@arm.com>
29066
29067 * config/arm/arm.md (nonsecure_call_internal): Do not force memory
29068 address in r4 when targeting Armv8.1-M Mainline.
29069 (nonsecure_call_value_internal): Likewise.
29070 * config/arm/thumb2.md (nonsecure_call_reg_thumb2): Make memory address
29071 a register match_operand again. Emit BLXNS when targeting
29072 Armv8.1-M Mainline.
29073 (nonsecure_call_value_reg_thumb2): Likewise.
29074
29075 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29076 Thomas Preud'homme <thomas.preudhomme@arm.com>
29077
29078 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): Declare early.
29079 (cmse_nonsecure_call_inline_register_clear): Define new lazy_fpclear
29080 variable as true when floating-point ABI is not hard. Replace
29081 check against TARGET_HARD_FLOAT_ABI by checks against lazy_fpclear.
29082 Generate VLSTM and VLLDM instruction respectively before and
29083 after a function call to cmse_nonsecure_call function.
29084 * config/arm/unspecs.md (VUNSPEC_VLSTM): Define unspec.
29085 (VUNSPEC_VLLDM): Likewise.
29086 * config/arm/vfp.md (lazy_store_multiple_insn): New define_insn.
29087 (lazy_load_multiple_insn): Likewise.
29088
29089 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29090 Thomas Preud'homme <thomas.preudhomme@arm.com>
29091
29092 * config/arm/arm.c (vfp_emit_fstmd): Declare early.
29093 (arm_emit_vfp_multi_reg_pop): Likewise.
29094 (cmse_nonsecure_call_inline_register_clear): Abstract number of VFP
29095 registers to clear in max_fp_regno. Emit VPUSH and VPOP to save and
29096 restore callee-saved VFP registers.
29097
29098 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29099 Thomas Preud'homme <thomas.preudhomme@arm.com>
29100
29101 * config/arm/arm.c (arm_emit_multi_reg_pop): Declare early.
29102 (cmse_nonsecure_call_clear_caller_saved): Rename into ...
29103 (cmse_nonsecure_call_inline_register_clear): This. Save and clear
29104 callee-saved GPRs as well as clear ip register before doing a nonsecure
29105 call then restore callee-saved GPRs after it when targeting
29106 Armv8.1-M Mainline.
29107 (arm_reorg): Adapt to function rename.
29108
29109 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29110 Thomas Preud'homme <thomas.preudhomme@arm.com>
29111
29112 * config/arm/arm-protos.h (clear_operation_p): Adapt prototype.
29113 * config/arm/arm.c (clear_operation_p): Extend to be able to check a
29114 clear_vfp_multiple pattern based on a new vfp parameter.
29115 (cmse_clear_registers): Generate VSCCLRM to clear VFP registers when
29116 targeting Armv8.1-M Mainline.
29117 (cmse_nonsecure_entry_clear_before_return): Clear VFP registers
29118 unconditionally when targeting Armv8.1-M Mainline architecture. Check
29119 whether VFP registers are available before looking call_used_regs for a
29120 VFP register.
29121 * config/arm/predicates.md (clear_multiple_operation): Adapt to change
29122 of prototype of clear_operation_p.
29123 (clear_vfp_multiple_operation): New predicate.
29124 * config/arm/unspecs.md (VUNSPEC_VSCCLRM_VPR): New volatile unspec.
29125 * config/arm/vfp.md (clear_vfp_multiple): New define_insn.
29126
29127 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29128 Thomas Preud'homme <thomas.preudhomme@arm.com>
29129
29130 * config/arm/arm-protos.h (clear_operation_p): Declare.
29131 * config/arm/arm.c (clear_operation_p): New function.
29132 (cmse_clear_registers): Generate clear_multiple instruction pattern if
29133 targeting Armv8.1-M Mainline or successor.
29134 (output_return_instruction): Only output APSR register clearing if
29135 Armv8.1-M Mainline instructions not available.
29136 (thumb_exit): Likewise.
29137 * config/arm/predicates.md (clear_multiple_operation): New predicate.
29138 * config/arm/thumb2.md (clear_apsr): New define_insn.
29139 (clear_multiple): Likewise.
29140 * config/arm/unspecs.md (VUNSPEC_CLRM_APSR): New volatile unspec.
29141
29142 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29143 Thomas Preud'homme <thomas.preudhomme@arm.com>
29144
29145 * config/arm/arm.c (fp_sysreg_names): Declare and define.
29146 (use_return_insn): Also return false for Armv8.1-M Mainline.
29147 (output_return_instruction): Skip FPSCR clearing if Armv8.1-M
29148 Mainline instructions are available.
29149 (arm_compute_frame_layout): Allocate space in frame for FPCXTNS
29150 when targeting Armv8.1-M Mainline Security Extensions.
29151 (arm_expand_prologue): Save FPCXTNS if this is an Armv8.1-M
29152 Mainline entry function.
29153 (cmse_nonsecure_entry_clear_before_return): Clear IP and r4 if
29154 targeting Armv8.1-M Mainline or successor.
29155 (arm_expand_epilogue): Fix indentation of caller-saved register
29156 clearing. Restore FPCXTNS if this is an Armv8.1-M Mainline
29157 entry function.
29158 * config/arm/arm.h (TARGET_HAVE_FP_CMSE): New macro.
29159 (FP_SYSREGS): Likewise.
29160 (enum vfp_sysregs_encoding): Define enum.
29161 (fp_sysreg_names): Declare.
29162 * config/arm/unspecs.md (VUNSPEC_VSTR_VLDR): New volatile unspec.
29163 * config/arm/vfp.md (push_fpsysreg_insn): New define_insn.
29164 (pop_fpsysreg_insn): Likewise.
29165
29166 2020-01-16 Mihail-Calin Ionescu <mihail.ionescu@arm.com>
29167 Thomas Preud'homme <thomas.preudhomme@arm.com>
29168
29169 * config/arm/arm-cpus.in (armv8_1m_main): New feature.
29170 (ARMv4, ARMv4t, ARMv5t, ARMv5te, ARMv5tej, ARMv6, ARMv6j, ARMv6k,
29171 ARMv6z, ARMv6kz, ARMv6zk, ARMv6t2, ARMv6m, ARMv7, ARMv7a, ARMv7ve,
29172 ARMv7r, ARMv7m, ARMv7em, ARMv8a, ARMv8_1a, ARMv8_2a, ARMv8_3a,
29173 ARMv8_4a, ARMv8_5a, ARMv8m_base, ARMv8m_main, ARMv8r): Reindent.
29174 (ARMv8_1m_main): New feature group.
29175 (armv8.1-m.main): New architecture.
29176 * config/arm/arm-tables.opt: Regenerate.
29177 * config/arm/arm.c (arm_arch8_1m_main): Define and default initialize.
29178 (arm_option_reconfigure_globals): Initialize arm_arch8_1m_main.
29179 (arm_options_perform_arch_sanity_checks): Error out when targeting
29180 Armv8.1-M Mainline Security Extensions.
29181 * config/arm/arm.h (arm_arch8_1m_main): Declare.
29182
29183 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
29184
29185 * config/aarch64/aarch64-simd-builtins.def (aarch64_bfdot,
29186 aarch64_bfdot_lane, aarch64_bfdot_laneq): New.
29187 * config/aarch64/aarch64-simd.md (aarch64_bfdot, aarch64_bfdot_lane,
29188 aarch64_bfdot_laneq): New.
29189 * config/aarch64/arm_bf16.h (vbfdot_f32, vbfdotq_f32,
29190 vbfdot_lane_f32, vbfdotq_lane_f32, vbfdot_laneq_f32,
29191 vbfdotq_laneq_f32): New.
29192 * config/aarch64/iterators.md (UNSPEC_BFDOT, Vbfdottype,
29193 VBFMLA_W, VBF): New.
29194 (isquadop): Add V4BF, V8BF.
29195
29196 2020-01-16 Stam Markianos-Wright <stam.markianos-wright@arm.com>
29197
29198 * config/aarch64/aarch64-builtins.c: (enum aarch64_type_qualifiers):
29199 New qualifier_lane_quadtup_index, TYPES_TERNOP_SSUS,
29200 TYPES_QUADOPSSUS_LANE_QUADTUP, TYPES_QUADOPSSSU_LANE_QUADTUP.
29201 (aarch64_simd_expand_args): Add case SIMD_ARG_LANE_QUADTUP_INDEX.
29202 (aarch64_simd_expand_builtin): Add qualifier_lane_quadtup_index.
29203 * config/aarch64/aarch64-simd-builtins.def (usdot, usdot_lane,
29204 usdot_laneq, sudot_lane,sudot_laneq): New.
29205 * config/aarch64/aarch64-simd.md (aarch64_usdot): New.
29206 (aarch64_<sur>dot_lane): New.
29207 * config/aarch64/arm_neon.h (vusdot_s32): New.
29208 (vusdotq_s32): New.
29209 (vusdot_lane_s32): New.
29210 (vsudot_lane_s32): New.
29211 * config/aarch64/iterators.md (DOTPROD_I8MM): New iterator.
29212 (UNSPEC_USDOT, UNSPEC_SUDOT): New unspecs.
29213
29214 2020-01-16 Martin Liska <mliska@suse.cz>
29215
29216 * value-prof.c (dump_histogram_value): Fix
29217 obvious spacing issue.
29218
29219 2020-01-16 Andrew Pinski <apinski@marvell.com>
29220
29221 * tree-ssa-sccvn.c(vn_reference_lookup_3): Check lhs for
29222 !storage_order_barrier_p.
29223
29224 2020-01-16 Andrew Pinski <apinski@marvell.com>
29225
29226 * sched-int.h (_dep): Add unused bit-field field for the padding.
29227 * sched-deps.c (init_dep_1): Init unused field.
29228
29229 2020-01-16 Andrew Pinski <apinski@marvell.com>
29230
29231 * optabs.h (create_expand_operand): Initialize target field also.
29232
29233 2020-01-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
29234
29235 PR tree-optimization/92429
29236 * tree-ssa-loop-niter.h (simplify_replace_tree): Add parameter.
29237 * tree-ssa-loop-niter.c (simplify_replace_tree): Add parameter to
29238 control folding.
29239 * tree-vect-loop.c (update_epilogue_vinfo): Do not fold when replacing
29240 tree.
29241
29242 2020-01-16 Richard Sandiford <richard.sandiford@arm.com>
29243
29244 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move): Apply
29245 aarch64_sve_int_mode to each mode.
29246
29247 2020-01-15 David Malcolm <dmalcolm@redhat.com>
29248
29249 * doc/analyzer.texi (Overview): Add note about
29250 -fdump-ipa-analyzer.
29251
29252 2020-01-15 Wilco Dijkstra <wdijkstr@arm.com>
29253
29254 PR tree-optimization/93231
29255 * tree-ssa-forwprop.c (optimize_count_trailing_zeroes): Check
29256 input_type is unsigned. Use tree_to_shwi for shift constant.
29257 Check CST_STRING element size is CHAR_TYPE_SIZE bits.
29258 (simplify_count_trailing_zeroes): Add test to handle known non-zero
29259 inputs more efficiently.
29260
29261 2020-01-15 Uroš Bizjak <ubizjak@gmail.com>
29262
29263 * config/i386/i386.md (*movsf_internal): Do not require
29264 SSE2 ISA for alternatives 14 and 15.
29265
29266 2020-01-15 Richard Biener <rguenther@suse.de>
29267
29268 PR middle-end/93273
29269 * tree-eh.c (sink_clobbers): If we already visited the destination
29270 block do not defer insertion.
29271 (pass_lower_eh_dispatch::execute): Maintain BB_VISITED for
29272 the purpose of defered insertion.
29273
29274 2020-01-15 Jakub Jelinek <jakub@redhat.com>
29275
29276 * BASE-VER: Bump to 10.0.1.
29277
29278 2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
29279
29280 PR tree-optimization/93247
29281 * tree-vect-loop.c (update_epilogue_loop_vinfo): Check the access
29282 type of the stmt that we're going to vectorize.
29283
29284 2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
29285
29286 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Use a
29287 VIEW_CONVERT_EXPR if the vectorized constructor has a diffeent
29288 type from the lhs.
29289
29290 2020-01-15 Martin Liska <mliska@suse.cz>
29291
29292 * ipa-profile.c (ipa_profile_read_edge_summary): Do not allow
29293 2 calls of streamer_read_hwi in a function call.
29294
29295 2020-01-15 Richard Biener <rguenther@suse.de>
29296
29297 * alias.c (record_alias_subset): Avoid redundant work when
29298 subset is already recorded.
29299
29300 2020-01-14 David Malcolm <dmalcolm@redhat.com>
29301
29302 * doc/invoke.texi (-fdiagnostics-show-cwe): Add note that some of
29303 the analyzer options provide CWE identifiers.
29304
29305 2020-01-14 David Malcolm <dmalcolm@redhat.com>
29306
29307 * tree-diagnostic-path.cc (path_summary::event_range::print):
29308 When testing for UNKNOWN_LOCATION, look through ad-hoc wrappers
29309 using get_pure_location.
29310
29311 2020-01-15 Jakub Jelinek <jakub@redhat.com>
29312
29313 PR tree-optimization/93262
29314 * tree-ssa-dse.c (maybe_trim_memstar_call): For *_chk builtins,
29315 perform head trimming only if the last argument is constant,
29316 either all ones, or larger or equal to head trim, in the latter
29317 case decrease the last argument by head_trim.
29318
29319 PR tree-optimization/93249
29320 * tree-ssa-dse.c: Include builtins.h and gimple-fold.h.
29321 (maybe_trim_memstar_call): Move head_trim and tail_trim vars to
29322 function body scope, reindent. For BUILTIN_IN_STRNCPY*, don't
29323 perform head trim unless we can prove there are no '\0' chars
29324 from the source among the first head_trim chars.
29325
29326 2020-01-14 David Malcolm <dmalcolm@redhat.com>
29327
29328 * Makefile.in (ANALYZER_OBJS): Add analyzer/function-set.o.
29329
29330 2020-01-15 Jakub Jelinek <jakub@redhat.com>
29331
29332 PR target/93009
29333 * config/i386/sse.md
29334 (*<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name>_bcst_1,
29335 *<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name>_bcst_1,
29336 *<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name>_bcst_1,
29337 *<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name>_bcst_1): Use
29338 just a single alternative instead of two, make operands 1 and 2
29339 commutative.
29340
29341 2020-01-14 Jan Hubicka <hubicka@ucw.cz>
29342
29343 PR lto/91576
29344 * ipa-devirt.c (odr_types_equivalent_p): Compare TREE_ADDRESSABLE and
29345 TYPE_MODE.
29346
29347 2020-01-14 David Malcolm <dmalcolm@redhat.com>
29348
29349 * Makefile.in (lang_opt_files): Add analyzer.opt.
29350 (ANALYZER_OBJS): New.
29351 (OBJS): Add digraph.o, graphviz.o, ordered-hash-map-tests.o,
29352 tristate.o and ANALYZER_OBJS.
29353 (TEXI_GCCINT_FILES): Add analyzer.texi.
29354 * common.opt (-fanalyzer): New driver option.
29355 * config.in: Regenerate.
29356 * configure: Regenerate.
29357 * configure.ac (--disable-analyzer, ENABLE_ANALYZER): New option.
29358 (gccdepdir): Also create depdir for "analyzer" subdir.
29359 * digraph.cc: New file.
29360 * digraph.h: New file.
29361 * doc/analyzer.texi: New file.
29362 * doc/gccint.texi ("Static Analyzer") New menu item.
29363 (analyzer.texi): Include it.
29364 * doc/invoke.texi ("Static Analyzer Options"): New list and new section.
29365 ("Warning Options"): Add static analysis warnings to the list.
29366 (-Wno-analyzer-double-fclose): New option.
29367 (-Wno-analyzer-double-free): New option.
29368 (-Wno-analyzer-exposure-through-output-file): New option.
29369 (-Wno-analyzer-file-leak): New option.
29370 (-Wno-analyzer-free-of-non-heap): New option.
29371 (-Wno-analyzer-malloc-leak): New option.
29372 (-Wno-analyzer-possible-null-argument): New option.
29373 (-Wno-analyzer-possible-null-dereference): New option.
29374 (-Wno-analyzer-null-argument): New option.
29375 (-Wno-analyzer-null-dereference): New option.
29376 (-Wno-analyzer-stale-setjmp-buffer): New option.
29377 (-Wno-analyzer-tainted-array-index): New option.
29378 (-Wno-analyzer-use-after-free): New option.
29379 (-Wno-analyzer-use-of-pointer-in-stale-stack-frame): New option.
29380 (-Wno-analyzer-use-of-uninitialized-value): New option.
29381 (-Wanalyzer-too-complex): New option.
29382 (-fanalyzer-call-summaries): New warning.
29383 (-fanalyzer-checker=): New warning.
29384 (-fanalyzer-fine-grained): New warning.
29385 (-fno-analyzer-state-merge): New warning.
29386 (-fno-analyzer-state-purge): New warning.
29387 (-fanalyzer-transitivity): New warning.
29388 (-fanalyzer-verbose-edges): New warning.
29389 (-fanalyzer-verbose-state-changes): New warning.
29390 (-fanalyzer-verbosity=): New warning.
29391 (-fdump-analyzer): New warning.
29392 (-fdump-analyzer-callgraph): New warning.
29393 (-fdump-analyzer-exploded-graph): New warning.
29394 (-fdump-analyzer-exploded-nodes): New warning.
29395 (-fdump-analyzer-exploded-nodes-2): New warning.
29396 (-fdump-analyzer-exploded-nodes-3): New warning.
29397 (-fdump-analyzer-supergraph): New warning.
29398 * doc/sourcebuild.texi (dg-require-dot): New.
29399 (dg-check-dot): New.
29400 * gdbinit.in (break-on-saved-diagnostic): New command.
29401 * graphviz.cc: New file.
29402 * graphviz.h: New file.
29403 * ordered-hash-map-tests.cc: New file.
29404 * ordered-hash-map.h: New file.
29405 * passes.def (pass_analyzer): Add before
29406 pass_ipa_whole_program_visibility.
29407 * selftest-run-tests.c (selftest::run_tests): Call
29408 selftest::ordered_hash_map_tests_cc_tests.
29409 * selftest.h (selftest::ordered_hash_map_tests_cc_tests): New
29410 decl.
29411 * shortest-paths.h: New file.
29412 * timevar.def (TV_ANALYZER): New timevar.
29413 (TV_ANALYZER_SUPERGRAPH): Likewise.
29414 (TV_ANALYZER_STATE_PURGE): Likewise.
29415 (TV_ANALYZER_PLAN): Likewise.
29416 (TV_ANALYZER_SCC): Likewise.
29417 (TV_ANALYZER_WORKLIST): Likewise.
29418 (TV_ANALYZER_DUMP): Likewise.
29419 (TV_ANALYZER_DIAGNOSTICS): Likewise.
29420 (TV_ANALYZER_SHORTEST_PATHS): Likewise.
29421 * tree-pass.h (make_pass_analyzer): New decl.
29422 * tristate.cc: New file.
29423 * tristate.h: New file.
29424
29425 2020-01-14 Uroš Bizjak <ubizjak@gmail.com>
29426
29427 PR target/93254
29428 * config/i386/i386.md (*movsf_internal): Require SSE2 ISA for
29429 alternatives 9 and 10.
29430
29431 2020-01-14 David Malcolm <dmalcolm@redhat.com>
29432
29433 * attribs.c (excl_hash_traits::empty_zero_p): New static constant.
29434 * gcov.c (function_start_pair_hash::empty_zero_p): Likewise.
29435 * graphite.c (struct sese_scev_hash::empty_zero_p): Likewise.
29436 * hash-map-tests.c (selftest::test_nonzero_empty_key): New selftest.
29437 (selftest::hash_map_tests_c_tests): Call it.
29438 * hash-map-traits.h (simple_hashmap_traits::empty_zero_p):
29439 New static constant, using the value of = H::empty_zero_p.
29440 (unbounded_hashmap_traits::empty_zero_p): Likewise, using the value
29441 from default_hash_traits <Value>.
29442 * hash-map.h (hash_map::empty_zero_p): Likewise, using the value
29443 from Traits.
29444 * hash-set-tests.c (value_hash_traits::empty_zero_p): Likewise.
29445 * hash-table.h (hash_table::alloc_entries): Guard the loop of
29446 calls to mark_empty with !Descriptor::empty_zero_p.
29447 (hash_table::empty_slow): Conditionalize the memset call with a
29448 check that Descriptor::empty_zero_p; otherwise, loop through the
29449 entries calling mark_empty on them.
29450 * hash-traits.h (int_hash::empty_zero_p): New static constant.
29451 (pointer_hash::empty_zero_p): Likewise.
29452 (pair_hash::empty_zero_p): Likewise.
29453 * ipa-devirt.c (default_hash_traits <type_pair>::empty_zero_p):
29454 Likewise.
29455 * ipa-prop.c (ipa_bit_ggc_hash_traits::empty_zero_p): Likewise.
29456 (ipa_vr_ggc_hash_traits::empty_zero_p): Likewise.
29457 * profile.c (location_triplet_hash::empty_zero_p): Likewise.
29458 * sanopt.c (sanopt_tree_triplet_hash::empty_zero_p): Likewise.
29459 (sanopt_tree_couple_hash::empty_zero_p): Likewise.
29460 * tree-hasher.h (int_tree_hasher::empty_zero_p): Likewise.
29461 * tree-ssa-sccvn.c (vn_ssa_aux_hasher::empty_zero_p): Likewise.
29462 * tree-vect-slp.c (bst_traits::empty_zero_p): Likewise.
29463 * tree-vectorizer.h
29464 (default_hash_traits<scalar_cond_masked_key>::empty_zero_p):
29465 Likewise.
29466
29467 2020-01-14 Kewen Lin <linkw@gcc.gnu.org>
29468
29469 * cfgloopanal.c (average_num_loop_insns): Free bbs when early return,
29470 fix typo on return value.
29471
29472 2020-01-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
29473
29474 PR ipa/69678
29475 * cgraph.c (symbol_table::create_edge): Init speculative_id and
29476 target_prob.
29477 (cgraph_edge::make_speculative): Add param for setting speculative_id
29478 and target_prob.
29479 (cgraph_edge::speculative_call_info): Update comments and find reference
29480 by speculative_id for multiple indirect targets.
29481 (cgraph_edge::resolve_speculation): Decrease the speculations
29482 for indirect edge, drop it's speculative if not direct target
29483 left. Update comments.
29484 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
29485 (cgraph_node::dump): Print num_speculative_call_targets.
29486 (cgraph_node::verify_node): Don't report error if speculative
29487 edge not include statement.
29488 (cgraph_edge::num_speculative_call_targets_p): New function.
29489 * cgraph.h (int common_target_id): Remove.
29490 (int common_target_probability): Remove.
29491 (num_speculative_call_targets): New variable.
29492 (make_speculative): Add param for setting speculative_id.
29493 (cgraph_edge::num_speculative_call_targets_p): New declare.
29494 (target_prob): New variable.
29495 (speculative_id): New variable.
29496 * ipa-fnsummary.c (analyze_function_body): Create and duplicate
29497 call summaries for multiple speculative call targets.
29498 * cgraphclones.c (cgraph_node::create_clone): Clone speculative_id.
29499 * ipa-profile.c (struct speculative_call_target): New struct.
29500 (class speculative_call_summary): New class.
29501 (class speculative_call_summaries): New class.
29502 (call_sums): New variable.
29503 (ipa_profile_generate_summary): Generate indirect multiple targets summaries.
29504 (ipa_profile_write_edge_summary): New function.
29505 (ipa_profile_write_summary): Stream out indirect multiple targets summaries.
29506 (ipa_profile_dump_all_summaries): New function.
29507 (ipa_profile_read_edge_summary): New function.
29508 (ipa_profile_read_summary_section): New function.
29509 (ipa_profile_read_summary): Stream in indirect multiple targets summaries.
29510 (ipa_profile): Generate num_speculative_call_targets from
29511 profile summaries.
29512 * ipa-ref.h (speculative_id): New variable.
29513 * ipa-utils.c (ipa_merge_profiles): Update with target_prob.
29514 * lto-cgraph.c (lto_output_edge): Remove indirect common_target_id and
29515 common_target_probability. Stream out speculative_id and
29516 num_speculative_call_targets.
29517 (input_edge): Likewise.
29518 * predict.c (dump_prediction): Remove edges count assert to be
29519 precise.
29520 * symtab.c (symtab_node::create_reference): Init speculative_id.
29521 (symtab_node::clone_references): Clone speculative_id.
29522 (symtab_node::clone_referring): Clone speculative_id.
29523 (symtab_node::clone_reference): Clone speculative_id.
29524 (symtab_node::clear_stmts_in_references): Clear speculative_id.
29525 * tree-inline.c (copy_bb): Duplicate all the speculative edges
29526 if indirect call contains multiple speculative targets.
29527 * value-prof.h (check_ic_target): Remove.
29528 * value-prof.c (gimple_value_profile_transformations):
29529 Use void function gimple_ic_transform.
29530 * value-prof.c (gimple_ic_transform): Handle topn case.
29531 Fix comment typos. Change it to a void function.
29532
29533 2020-01-13 Andrew Pinski <apinski@marvell.com>
29534
29535 * config/aarch64/aarch64-cores.def (octeontx2): New define.
29536 (octeontx2t98): New define.
29537 (octeontx2t96): New define.
29538 (octeontx2t93): New define.
29539 (octeontx2f95): New define.
29540 (octeontx2f95n): New define.
29541 (octeontx2f95mm): New define.
29542 * config/aarch64/aarch64-tune.md: Regenerate.
29543 * doc/invoke.texi (-mcpu=): Document the new cpu types.
29544
29545 2020-01-13 Jason Merrill <jason@redhat.com>
29546
29547 PR c++/33799 - destroy return value if local cleanup throws.
29548 * gimplify.c (gimplify_return_expr): Handle COMPOUND_EXPR.
29549
29550 2020-01-13 Martin Liska <mliska@suse.cz>
29551
29552 * ipa-cp.c (get_max_overall_size): Use newly
29553 renamed param param_ipa_cp_unit_growth.
29554 * params.opt: Remove legacy param name.
29555
29556 2020-01-13 Martin Sebor <msebor@redhat.com>
29557
29558 PR tree-optimization/93213
29559 * tree-ssa-strlen.c (handle_store): Only allow single-byte nul-over-nul
29560 stores to be eliminated.
29561
29562 2020-01-13 Martin Liska <mliska@suse.cz>
29563
29564 * opts.c (print_help): Do not print CL_PARAM
29565 and CL_WARNING for CL_OPTIMIZATION.
29566
29567 2020-01-13 Jonathan Wakely <jwakely@redhat.com>
29568
29569 PR driver/92757
29570 * doc/invoke.texi (Warning Options): Add caveat about some warnings
29571 depending on optimization settings.
29572
29573 2020-01-13 Jakub Jelinek <jakub@redhat.com>
29574
29575 PR tree-optimization/90838
29576 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
29577 SCALAR_INT_TYPE_MODE directly in CTZ_DEFINED_VALUE_AT_ZERO macro
29578 argument rather than to initialize temporary for targets that
29579 don't use the mode argument at all. Initialize ctzval to avoid
29580 warning at -O0.
29581
29582 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
29583
29584 * tree.h (OMP_CLAUSE_USE_DEVICE_PTR_IF_PRESENT): New definition.
29585 * tree-core.h: Document it.
29586 * gimplify.c (gimplify_omp_workshare): Set it.
29587 * omp-low.c (lower_omp_target): Use it.
29588 * tree-pretty-print.c (dump_omp_clause): Print it.
29589
29590 * omp-low.c (lower_omp_target) <OMP_CLAUSE_USE_DEVICE_PTR etc.>:
29591 Assert that for OpenACC we always have 'GOMP_MAP_USE_DEVICE_PTR'.
29592
29593 2020-01-10 David Malcolm <dmalcolm@redhat.com>
29594
29595 * Makefile.in (OBJS): Add tree-diagnostic-path.o.
29596 * common.opt (fdiagnostics-path-format=): New option.
29597 (diagnostic_path_format): New enum.
29598 (fdiagnostics-show-path-depths): New option.
29599 * coretypes.h (diagnostic_event_id_t): New forward decl.
29600 * diagnostic-color.c (color_dict): Add "path".
29601 * diagnostic-event-id.h: New file.
29602 * diagnostic-format-json.cc (json_from_expanded_location): Make
29603 non-static.
29604 (json_end_diagnostic): Call context->make_json_for_path if it
29605 exists and the diagnostic has a path.
29606 (diagnostic_output_format_init): Clear context->print_path.
29607 * diagnostic-path.h: New file.
29608 * diagnostic-show-locus.c (colorizer::set_range): Special-case
29609 when printing a run of events in a diagnostic_path so that they
29610 all get the same color.
29611 (layout::m_diagnostic_path_p): New field.
29612 (layout::layout): Initialize it.
29613 (layout::print_any_labels): Don't colorize the label text for an
29614 event in a diagnostic_path.
29615 (gcc_rich_location::add_location_if_nearby): Add
29616 "restrict_to_current_line_spans" and "label" params. Pass the
29617 former to layout.maybe_add_location_range; pass the latter
29618 when calling add_range.
29619 * diagnostic.c: Include "diagnostic-path.h".
29620 (diagnostic_initialize): Initialize context->path_format and
29621 context->show_path_depths.
29622 (diagnostic_show_any_path): New function.
29623 (diagnostic_path::interprocedural_p): New function.
29624 (diagnostic_report_diagnostic): Call diagnostic_show_any_path.
29625 (simple_diagnostic_path::num_events): New function.
29626 (simple_diagnostic_path::get_event): New function.
29627 (simple_diagnostic_path::add_event): New function.
29628 (simple_diagnostic_event::simple_diagnostic_event): New ctor.
29629 (simple_diagnostic_event::~simple_diagnostic_event): New dtor.
29630 (debug): New overload taking a diagnostic_path *.
29631 * diagnostic.def (DK_DIAGNOSTIC_PATH): New.
29632 * diagnostic.h (enum diagnostic_path_format): New enum.
29633 (json::value): New forward decl.
29634 (diagnostic_context::path_format): New field.
29635 (diagnostic_context::show_path_depths): New field.
29636 (diagnostic_context::print_path): New callback field.
29637 (diagnostic_context::make_json_for_path): New callback field.
29638 (diagnostic_show_any_path): New decl.
29639 (json_from_expanded_location): New decl.
29640 * doc/invoke.texi (-fdiagnostics-path-format=): New option.
29641 (-fdiagnostics-show-path-depths): New option.
29642 (-fdiagnostics-color): Add "path" to description of default
29643 GCC_COLORS; describe it.
29644 (-fdiagnostics-format=json): Document how diagnostic paths are
29645 represented in the JSON output format.
29646 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
29647 Add optional params "restrict_to_current_line_spans" and "label".
29648 * opts.c (common_handle_option): Handle
29649 OPT_fdiagnostics_path_format_ and
29650 OPT_fdiagnostics_show_path_depths.
29651 * pretty-print.c: Include "diagnostic-event-id.h".
29652 (pp_format): Implement "%@" format code for printing
29653 diagnostic_event_id_t *.
29654 (selftest::test_pp_format): Add tests for "%@".
29655 * selftest-run-tests.c (selftest::run_tests): Call
29656 selftest::tree_diagnostic_path_cc_tests.
29657 * selftest.h (selftest::tree_diagnostic_path_cc_tests): New decl.
29658 * toplev.c (general_init): Initialize global_dc->path_format and
29659 global_dc->show_path_depths.
29660 * tree-diagnostic-path.cc: New file.
29661 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Make
29662 non-static. Drop "diagnostic" param in favor of storing the
29663 original value of "where" and re-using it.
29664 (virt_loc_aware_diagnostic_finalizer): Update for dropped param of
29665 maybe_unwind_expanded_macro_loc.
29666 (tree_diagnostics_defaults): Initialize context->print_path and
29667 context->make_json_for_path.
29668 * tree-diagnostic.h (default_tree_diagnostic_path_printer): New
29669 decl.
29670 (default_tree_make_json_for_path): New decl.
29671 (maybe_unwind_expanded_macro_loc): New decl.
29672
29673 2020-01-10 Jakub Jelinek <jakub@redhat.com>
29674
29675 PR tree-optimization/93210
29676 * fold-const.h (native_encode_initializer,
29677 can_native_interpret_type_p): Declare.
29678 * fold-const.c (native_encode_string): Fix up handling with off != -1,
29679 simplify.
29680 (native_encode_initializer): New function, moved from dwarf2out.c.
29681 Adjust to native_encode_expr compatible arguments, including dry-run
29682 and partial extraction modes. Don't handle STRING_CST.
29683 (can_native_interpret_type_p): No longer static.
29684 * gimple-fold.c (fold_ctor_reference): For native_encode_expr, verify
29685 offset / BITS_PER_UNIT fits into int and don't call it if
29686 can_native_interpret_type_p fails. If suboff is NULL and for
29687 CONSTRUCTOR fold_{,non}array_ctor_reference returns NULL, retry with
29688 native_encode_initializer.
29689 (fold_const_aggregate_ref_1): Formatting fix.
29690 * dwarf2out.c (native_encode_initializer): Moved to fold-const.c.
29691 (tree_add_const_value_attribute): Adjust caller.
29692
29693 PR tree-optimization/90838
29694 * tree-ssa-forwprop.c (simplify_count_trailing_zeroes): Use
29695 SCALAR_INT_TYPE_MODE instead of TYPE_MODE as operand of
29696 CTZ_DEFINED_VALUE_AT_ZERO.
29697
29698 2020-01-10 Vladimir Makarov <vmakarov@redhat.com>
29699
29700 PR inline-asm/93027
29701 * lra-constraints.c (match_reload): Permit input operands have the
29702 same mode as output while other input operands have a different
29703 mode.
29704
29705 2020-01-10 Wilco Dijkstra <wdijkstr@arm.com>
29706
29707 PR tree-optimization/90838
29708 * tree-ssa-forwprop.c (check_ctz_array): Add new function.
29709 (check_ctz_string): Likewise.
29710 (optimize_count_trailing_zeroes): Likewise.
29711 (simplify_count_trailing_zeroes): Likewise.
29712 (pass_forwprop::execute): Try ctz simplification.
29713 * match.pd: Add matching for ctz idioms.
29714
29715 2020-01-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
29716
29717 * config/aarch64/aarch64.c (aarch64_invalid_conversion): New function
29718 for target hook.
29719 (aarch64_invalid_unary_op): New function for target hook.
29720 (aarch64_invalid_binary_op): New function for target hook.
29721
29722 2020-01-10 Stam Markianos-Wright <stam.markianos-wright@arm.com>
29723
29724 * config.gcc: Add arm_bf16.h.
29725 * config/aarch64/aarch64-builtins.c
29726 (aarch64_simd_builtin_std_type): Add BFmode.
29727 (aarch64_init_simd_builtin_types): Define element types for vector
29728 types.
29729 (aarch64_init_bf16_types): New function.
29730 (aarch64_general_init_builtins): Add arm_init_bf16_types function call.
29731 * config/aarch64/aarch64-modes.def: Add BFmode and V4BF, V8BF vector
29732 modes.
29733 * config/aarch64/aarch64-simd-builtin-types.def: Add BF SIMD types.
29734 * config/aarch64/aarch64-simd.md: Add BF vector types to NEON move
29735 patterns.
29736 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): Add V4BF.
29737 (AARCH64_VALID_SIMD_QREG_MODE): Add V8BF.
29738 * config/aarch64/aarch64.c
29739 (aarch64_classify_vector_mode): Add support for BF types.
29740 (aarch64_gimplify_va_arg_expr): Add support for BF types.
29741 (aarch64_vq_mode): Add support for BF types.
29742 (aarch64_simd_container_mode): Add support for BF types.
29743 (aarch64_mangle_type): Add support for BF scalar type.
29744 * config/aarch64/aarch64.md: Add BFmode to movhf pattern.
29745 * config/aarch64/arm_bf16.h: New file.
29746 * config/aarch64/arm_neon.h: Add arm_bf16.h and Bfloat vector types.
29747 * config/aarch64/iterators.md: Add BF types to mode attributes.
29748 (HFBF, GPF_TF_F16_MOV, VDMOV, VQMOV, VQMOV_NO2Em VALL_F16MOV): New.
29749
29750 2020-01-10 Jason Merrill <jason@redhat.com>
29751
29752 PR c++/93173 - incorrect tree sharing.
29753 * gimplify.c (copy_if_shared): No longer static.
29754 * gimplify.h: Declare it.
29755
29756 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
29757
29758 * doc/invoke.texi (-msve-vector-bits=): Document that
29759 -msve-vector-bits=128 now generates VL-specific code for
29760 little-endian targets.
29761 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types): Use
29762 build_vector_type_for_mode to construct the data vector types.
29763 * config/aarch64/aarch64.c (aarch64_convert_sve_vector_bits): Generate
29764 VL-specific code for -msve-vector-bits=128 on little-endian targets.
29765 (aarch64_simd_container_mode): Always prefer Advanced SIMD modes
29766 for 128-bit vectors.
29767
29768 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
29769
29770 * config/aarch64/aarch64.c (aarch64_evpc_sel): Fix gen_vcond_mask
29771 invocation.
29772
29773 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
29774
29775 * config/aarch64/aarch64-builtins.c
29776 (aarch64_builtin_vectorized_function): Check for specific vector modes,
29777 rather than checking the number of elements and the element mode.
29778
29779 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
29780
29781 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
29782 get_related_vectype_for_scalar_type rather than build_vector_type
29783 to create the index type for a conditional reduction.
29784
29785 2020-01-10 Richard Sandiford <richard.sandiford@arm.com>
29786
29787 * tree-vect-loop.c (update_epilogue_loop_vinfo): Update DR_REF
29788 for any type of gather or scatter, including strided accesses.
29789
29790 2020-01-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
29791
29792 * tree-vectorizer.h (get_dr_vinfo_offset): Add missing function
29793 comment.
29794
29795 2020-01-10 Andre Vieira <andre.simoesdiasvieira@arm.com>
29796
29797 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Use
29798 get_dr_vinfo_offset
29799 * tree-vect-loop.c (update_epilogue_loop_vinfo): Remove orig_drs_init
29800 parameter and its use to reset DR_OFFSET's.
29801 (vect_transform_loop): Remove orig_drs_init argument.
29802 * tree-vect-loop-manip.c (vect_update_init_of_dr): Update the offset
29803 member of dr_vec_info rather than the offset of the associated
29804 data_reference's innermost_loop_behavior.
29805 (vect_update_init_of_dr): Pass dr_vec_info instead of data_reference.
29806 (vect_do_peeling): Remove orig_drs_init parameter and its construction.
29807 * tree-vect-stmts.c (check_scan_store): Replace use of DR_OFFSET with
29808 get_dr_vinfo_offset.
29809 (vectorizable_store): Likewise.
29810 (vectorizable_load): Likewise.
29811
29812 2020-01-10 Richard Biener <rguenther@suse.de>
29813
29814 * gimple-ssa-store-merging
29815 (pass_store_merging::terminate_all_aliasing_chains): Cache alias info.
29816
29817 2020-01-10 Martin Liska <mliska@suse.cz>
29818
29819 PR ipa/93217
29820 * ipa-inline-analysis.c (offline_size): Make proper parenthesis
29821 encapsulation that was there before r280040.
29822
29823 2020-01-10 Richard Biener <rguenther@suse.de>
29824
29825 PR middle-end/93199
29826 * tree-eh.c (sink_clobbers): Move clobbers to out-of-IL
29827 sequences to avoid walking them again for secondary opportunities.
29828 (pass_lower_eh_dispatch::execute): Instead actually insert
29829 them here.
29830
29831 2020-01-10 Richard Biener <rguenther@suse.de>
29832
29833 PR middle-end/93199
29834 * tree-eh.c (redirect_eh_edge_1): Avoid some work if possible.
29835 (cleanup_all_empty_eh): Walk landing pads in reverse order to
29836 avoid quadraticness.
29837
29838 2020-01-10 Martin Jambor <mjambor@suse.cz>
29839
29840 * params.opt (param_ipa_sra_max_replacements): Mark as Optimization.
29841 * ipa-sra.c (pull_accesses_from_callee): New parameter caller, use it
29842 to get param_ipa_sra_max_replacements.
29843 (param_splitting_across_edge): Pass the caller to
29844 pull_accesses_from_callee.
29845
29846 2020-01-10 Martin Jambor <mjambor@suse.cz>
29847
29848 * params.opt (param_ipcp_unit_growth): Mark as Optimization.
29849 * ipa-cp.c (max_new_size): Removed.
29850 (orig_overall_size): New variable.
29851 (get_max_overall_size): New function.
29852 (estimate_local_effects): Use it. Adjust dump.
29853 (decide_about_value): Likewise.
29854 (ipcp_propagate_stage): Do not calculate max_new_size, just store
29855 orig_overall_size. Adjust dump.
29856 (ipa_cp_c_finalize): Clear orig_overall_size instead of max_new_size.
29857
29858 2020-01-10 Martin Jambor <mjambor@suse.cz>
29859
29860 * params.opt (param_ipa_max_agg_items): Mark as Optimization
29861 * ipa-cp.c (merge_agg_lats_step): New parameter max_agg_items, use
29862 instead of param_ipa_max_agg_items.
29863 (merge_aggregate_lattices): Extract param_ipa_max_agg_items from
29864 optimization info for the callee.
29865
29866 2020-01-09 Kwok Cheung Yeung <kcy@codesourcery.com>
29867
29868 * lto-streamer-in.c (input_function): Remove streamed-in inline debug
29869 markers if debug_inline_points is false.
29870
29871 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
29872
29873 * config.gcc (aarch64*-*-*): Add aarch64-sve-builtins-sve2.o to
29874 extra_objs.
29875 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): Depend on
29876 aarch64-sve-builtins-base.def, aarch64-sve-builtins-sve2.def and
29877 aarch64-sve-builtins-sve2.h.
29878 (aarch64-sve-builtins-sve2.o): New rule.
29879 * config/aarch64/aarch64.h (AARCH64_ISA_SVE2_AES): New macro.
29880 (AARCH64_ISA_SVE2_BITPERM, AARCH64_ISA_SVE2_SHA3): Likewise.
29881 (AARCH64_ISA_SVE2_SM4, TARGET_SVE2_AES, TARGET_SVE2_BITPERM): Likewise.
29882 (TARGET_SVE2_SHA, TARGET_SVE2_SM4): Likewise.
29883 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Handle
29884 TARGET_SVE2_AES, TARGET_SVE2_BITPERM, TARGET_SVE2_SHA3 and
29885 TARGET_SVE2_SM4.
29886 * config/aarch64/aarch64-sve.md: Update comments with SVE2
29887 instructions that are handled here.
29888 (@cond_asrd<mode>): Generalize to...
29889 (@cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>): ...this.
29890 (*cond_asrd<mode>_2): Generalize to...
29891 (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_2): ...this.
29892 (*cond_asrd<mode>_z): Generalize to...
29893 (*cond_<SVE_INT_SHIFT_IMM:sve_int_op><mode>_z): ...this.
29894 * config/aarch64/aarch64.md (UNSPEC_LDNT1_GATHER): New unspec.
29895 (UNSPEC_STNT1_SCATTER, UNSPEC_WHILEGE, UNSPEC_WHILEGT): Likewise.
29896 (UNSPEC_WHILEHI, UNSPEC_WHILEHS): Likewise.
29897 * config/aarch64/aarch64-sve2.md (@aarch64_gather_ldnt<mode>): New
29898 pattern.
29899 (@aarch64_gather_ldnt_<ANY_EXTEND:optab><SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
29900 (@aarch64_scatter_stnt<mode>): Likewise.
29901 (@aarch64_scatter_stnt_<SVE_FULL_SDI:mode><SVE_PARTIAL_I:mode>)
29902 (@aarch64_mul_lane_<mode>): Likewise.
29903 (@aarch64_sve_suqadd<mode>_const): Likewise.
29904 (*<sur>h<addsub><mode>): Generalize to...
29905 (@aarch64_pred_<SVE2_COND_INT_BINARY_REV:sve_int_op><mode>): ...this
29906 new pattern.
29907 (@cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>): New expander.
29908 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_2): New pattern.
29909 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_3): Likewise.
29910 (*cond_<SVE2_COND_INT_BINARY:sve_int_op><mode>_any): Likewise.
29911 (*cond_<SVE2_COND_INT_BINARY_NOREV:sve_int_op><mode>_z): Likewise.
29912 (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op><mode>):: Likewise.
29913 (@aarch64_sve_<SVE2_INT_BINARY:sve_int_op>_lane_<mode>): Likewise.
29914 (@aarch64_pred_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): Likewise.
29915 (@cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>): New expander.
29916 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_2): New pattern.
29917 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_3): Likewise.
29918 (*cond_<SVE2_COND_INT_SHIFT:sve_int_op><mode>_any): Likewise.
29919 (@aarch64_sve_<SVE2_INT_TERNARY:sve_int_op><mode>): Likewise.
29920 (@aarch64_sve_<SVE2_INT_TERNARY_LANE:sve_int_op>_lane_<mode>)
29921 (@aarch64_sve_add_mul_lane_<mode>): Likewise.
29922 (@aarch64_sve_sub_mul_lane_<mode>): Likewise.
29923 (@aarch64_sve2_xar<mode>): Likewise.
29924 (@aarch64_sve2_bcax<mode>): Likewise.
29925 (*aarch64_sve2_eor3<mode>): Rename to...
29926 (@aarch64_sve2_eor3<mode>): ...this.
29927 (@aarch64_sve2_bsl<mode>): New expander.
29928 (@aarch64_sve2_nbsl<mode>): Likewise.
29929 (@aarch64_sve2_bsl1n<mode>): Likewise.
29930 (@aarch64_sve2_bsl2n<mode>): Likewise.
29931 (@aarch64_sve_add_<SHIFTRT:sve_int_op><mode>): Likewise.
29932 (*aarch64_sve2_sra<mode>): Add MOVPRFX support.
29933 (@aarch64_sve_add_<VRSHR_N:sve_int_op><mode>): New pattern.
29934 (@aarch64_sve_<SVE2_INT_SHIFT_INSERT:sve_int_op><mode>): Likewise.
29935 (@aarch64_sve2_<USMAX:su>aba<mode>): New expander.
29936 (*aarch64_sve2_<USMAX:su>aba<mode>): New pattern.
29937 (@aarch64_sve_<SVE2_INT_BINARY_WIDE:sve_int_op><mode>): Likewise.
29938 (<su>mull<bt><Vwide>): Generalize to...
29939 (@aarch64_sve_<SVE2_INT_BINARY_LONG:sve_int_op><mode>): ...this new
29940 pattern.
29941 (@aarch64_sve_<SVE2_INT_BINARY_LONG_lANE:sve_int_op>_lane_<mode>)
29942 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_LONG:sve_int_op><mode>)
29943 (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG:sve_int_op><mode>)
29944 (@aarch64_sve_add_<SVE2_INT_ADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
29945 (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG:sve_int_op><mode>)
29946 (@aarch64_sve_qadd_<SVE2_INT_QADD_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
29947 (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG:sve_int_op><mode>)
29948 (@aarch64_sve_sub_<SVE2_INT_SUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
29949 (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG:sve_int_op><mode>)
29950 (@aarch64_sve_qsub_<SVE2_INT_QSUB_BINARY_LONG_LANE:sve_int_op>_lane_<mode>)
29951 (@aarch64_sve_<SVE2_FP_TERNARY_LONG:sve_fp_op><mode>): New patterns.
29952 (@aarch64_<SVE2_FP_TERNARY_LONG_LANE:sve_fp_op>_lane_<mode>)
29953 (@aarch64_sve_<SVE2_INT_UNARY_NARROWB:sve_int_op><mode>): Likewise.
29954 (@aarch64_sve_<SVE2_INT_UNARY_NARROWT:sve_int_op><mode>): Likewise.
29955 (@aarch64_sve_<SVE2_INT_BINARY_NARROWB:sve_int_op><mode>): Likewise.
29956 (@aarch64_sve_<SVE2_INT_BINARY_NARROWT:sve_int_op><mode>): Likewise.
29957 (<SHRNB:r>shrnb<mode>): Generalize to...
29958 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWB:sve_int_op><mode>): ...this
29959 new pattern.
29960 (<SHRNT:r>shrnt<mode>): Generalize to...
29961 (@aarch64_sve_<SVE2_INT_SHIFT_IMM_NARROWT:sve_int_op><mode>): ...this
29962 new pattern.
29963 (@aarch64_pred_<SVE2_INT_BINARY_PAIR:sve_int_op><mode>): New pattern.
29964 (@aarch64_pred_<SVE2_FP_BINARY_PAIR:sve_fp_op><mode>): Likewise.
29965 (@cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>): New expander.
29966 (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_2): New pattern.
29967 (*cond_<SVE2_INT_BINARY_PAIR_LONG:sve_int_op><mode>_z): Likewise.
29968 (@aarch64_sve_<SVE2_INT_CADD:optab><mode>): Likewise.
29969 (@aarch64_sve_<SVE2_INT_CMLA:optab><mode>): Likewise.
29970 (@aarch64_<SVE2_INT_CMLA:optab>_lane_<mode>): Likewise.
29971 (@aarch64_sve_<SVE2_INT_CDOT:optab><mode>): Likewise.
29972 (@aarch64_<SVE2_INT_CDOT:optab>_lane_<mode>): Likewise.
29973 (@aarch64_pred_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): Likewise.
29974 (@cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New expander.
29975 (*cond_<SVE2_COND_FP_UNARY_LONG:sve_fp_op><mode>): New pattern.
29976 (@aarch64_sve2_cvtnt<mode>): Likewise.
29977 (@aarch64_pred_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): Likewise.
29978 (@cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>): New expander.
29979 (*cond_<SVE2_COND_FP_UNARY_NARROWB:sve_fp_op><mode>_any): New pattern.
29980 (@aarch64_sve2_cvtxnt<mode>): Likewise.
29981 (@aarch64_pred_<SVE2_U32_UNARY:sve_int_op><mode>): Likewise.
29982 (@cond_<SVE2_U32_UNARY:sve_int_op><mode>): New expander.
29983 (*cond_<SVE2_U32_UNARY:sve_int_op><mode>): New pattern.
29984 (@aarch64_pred_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): Likewise.
29985 (@cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New expander.
29986 (*cond_<SVE2_COND_INT_UNARY_FP:sve_fp_op><mode>): New pattern.
29987 (@aarch64_sve2_pmul<mode>): Likewise.
29988 (@aarch64_sve_<SVE2_PMULL:optab><mode>): Likewise.
29989 (@aarch64_sve_<SVE2_PMULL_PAIR:optab><mode>): Likewise.
29990 (@aarch64_sve2_tbl2<mode>): Likewise.
29991 (@aarch64_sve2_tbx<mode>): Likewise.
29992 (@aarch64_sve_<SVE2_INT_BITPERM:sve_int_op><mode>): Likewise.
29993 (@aarch64_sve2_histcnt<mode>): Likewise.
29994 (@aarch64_sve2_histseg<mode>): Likewise.
29995 (@aarch64_pred_<SVE2_MATCH:sve_int_op><mode>): Likewise.
29996 (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_cc): Likewise.
29997 (*aarch64_pred_<SVE2_MATCH:sve_int_op><mode>_ptest): Likewise.
29998 (aarch64_sve2_aes<CRYPTO_AES:aes_op>): Likewise.
29999 (aarch64_sve2_aes<CRYPTO_AESMC:aesmc_op>): Likewise.
30000 (*aarch64_sve2_aese_fused, *aarch64_sve2_aesd_fused): Likewise.
30001 (aarch64_sve2_rax1, aarch64_sve2_sm4e, aarch64_sve2_sm4ekey): Likewise.
30002 (<su>mulh<r>s<mode>3): Update after above pattern name changes.
30003 * config/aarch64/iterators.md (VNx16QI_ONLY, VNx4SF_ONLY)
30004 (SVE_STRUCT2, SVE_FULL_BHI, SVE_FULL_HSI, SVE_FULL_HDI)
30005 (SVE2_PMULL_PAIR_I): New mode iterators.
30006 (UNSPEC_ADCLB, UNSPEC_ADCLT, UNSPEC_ADDHNB, UNSPEC_ADDHNT, UNSPEC_BDEP)
30007 (UNSPEC_BEXT, UNSPEC_BGRP, UNSPEC_CADD90, UNSPEC_CADD270, UNSPEC_CDOT)
30008 (UNSPEC_CDOT90, UNSPEC_CDOT180, UNSPEC_CDOT270, UNSPEC_CMLA)
30009 (UNSPEC_CMLA90, UNSPEC_CMLA180, UNSPEC_CMLA270, UNSPEC_COND_FCVTLT)
30010 (UNSPEC_COND_FCVTNT, UNSPEC_COND_FCVTX, UNSPEC_COND_FCVTXNT)
30011 (UNSPEC_COND_FLOGB, UNSPEC_EORBT, UNSPEC_EORTB, UNSPEC_FADDP)
30012 (UNSPEC_FMAXP, UNSPEC_FMAXNMP, UNSPEC_FMLALB, UNSPEC_FMLALT)
30013 (UNSPEC_FMLSLB, UNSPEC_FMLSLT, UNSPEC_FMINP, UNSPEC_FMINNMP)
30014 (UNSPEC_HISTCNT, UNSPEC_HISTSEG, UNSPEC_MATCH, UNSPEC_NMATCH)
30015 (UNSPEC_PMULLB, UNSPEC_PMULLB_PAIR, UNSPEC_PMULLT, UNSPEC_PMULLT_PAIR)
30016 (UNSPEC_RADDHNB, UNSPEC_RADDHNT, UNSPEC_RSUBHNB, UNSPEC_RSUBHNT)
30017 (UNSPEC_SLI, UNSPEC_SRI, UNSPEC_SABDLB, UNSPEC_SABDLT, UNSPEC_SADDLB)
30018 (UNSPEC_SADDLBT, UNSPEC_SADDLT, UNSPEC_SADDWB, UNSPEC_SADDWT)
30019 (UNSPEC_SBCLB, UNSPEC_SBCLT, UNSPEC_SMAXP, UNSPEC_SMINP)
30020 (UNSPEC_SQCADD90, UNSPEC_SQCADD270, UNSPEC_SQDMULLB, UNSPEC_SQDMULLBT)
30021 (UNSPEC_SQDMULLT, UNSPEC_SQRDCMLAH, UNSPEC_SQRDCMLAH90)
30022 (UNSPEC_SQRDCMLAH180, UNSPEC_SQRDCMLAH270, UNSPEC_SQRSHRNB)
30023 (UNSPEC_SQRSHRNT, UNSPEC_SQRSHRUNB, UNSPEC_SQRSHRUNT, UNSPEC_SQSHRNB)
30024 (UNSPEC_SQSHRNT, UNSPEC_SQSHRUNB, UNSPEC_SQSHRUNT, UNSPEC_SQXTNB)
30025 (UNSPEC_SQXTNT, UNSPEC_SQXTUNB, UNSPEC_SQXTUNT, UNSPEC_SSHLLB)
30026 (UNSPEC_SSHLLT, UNSPEC_SSUBLB, UNSPEC_SSUBLBT, UNSPEC_SSUBLT)
30027 (UNSPEC_SSUBLTB, UNSPEC_SSUBWB, UNSPEC_SSUBWT, UNSPEC_SUBHNB)
30028 (UNSPEC_SUBHNT, UNSPEC_TBL2, UNSPEC_UABDLB, UNSPEC_UABDLT)
30029 (UNSPEC_UADDLB, UNSPEC_UADDLT, UNSPEC_UADDWB, UNSPEC_UADDWT)
30030 (UNSPEC_UMAXP, UNSPEC_UMINP, UNSPEC_UQRSHRNB, UNSPEC_UQRSHRNT)
30031 (UNSPEC_UQSHRNB, UNSPEC_UQSHRNT, UNSPEC_UQXTNB, UNSPEC_UQXTNT)
30032 (UNSPEC_USHLLB, UNSPEC_USHLLT, UNSPEC_USUBLB, UNSPEC_USUBLT)
30033 (UNSPEC_USUBWB, UNSPEC_USUBWT): New unspecs.
30034 (UNSPEC_SMULLB, UNSPEC_SMULLT, UNSPEC_UMULLB, UNSPEC_UMULLT)
30035 (UNSPEC_SMULHS, UNSPEC_SMULHRS, UNSPEC_UMULHS, UNSPEC_UMULHRS)
30036 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SHRNB, UNSPEC_SHRNT): Move
30037 further down file.
30038 (VNARROW, Ventype): New mode attributes.
30039 (Vewtype): Handle VNx2DI. Fix typo in comment.
30040 (VDOUBLE): New mode attribute.
30041 (sve_lane_con): Handle VNx8HI.
30042 (SVE_INT_UNARY): Include ss_abs and ss_neg for TARGET_SVE2.
30043 (SVE_INT_BINARY): Likewise ss_plus, us_plus, ss_minus and us_minus.
30044 (sve_int_op, sve_int_op_rev): Handle the above codes.
30045 (sve_pred_int_rhs2_operand): Likewise.
30046 (MULLBT, SHRNB, SHRNT): Delete.
30047 (SVE_INT_SHIFT_IMM): New int iterator.
30048 (SVE_WHILE): Add UNSPEC_WHILEGE, UNSPEC_WHILEGT, UNSPEC_WHILEHI
30049 and UNSPEC_WHILEHS for TARGET_SVE2.
30050 (SVE2_U32_UNARY, SVE2_INT_UNARY_NARROWB, SVE2_INT_UNARY_NARROWT)
30051 (SVE2_INT_BINARY, SVE2_INT_BINARY_LANE, SVE2_INT_BINARY_LONG)
30052 (SVE2_INT_BINARY_LONG_LANE, SVE2_INT_BINARY_NARROWB)
30053 (SVE2_INT_BINARY_NARROWT, SVE2_INT_BINARY_PAIR, SVE2_FP_BINARY_PAIR)
30054 (SVE2_INT_BINARY_PAIR_LONG, SVE2_INT_BINARY_WIDE): New int iterators.
30055 (SVE2_INT_SHIFT_IMM_LONG, SVE2_INT_SHIFT_IMM_NARROWB): Likewise.
30056 (SVE2_INT_SHIFT_IMM_NARROWT, SVE2_INT_SHIFT_INSERT, SVE2_INT_CADD)
30057 (SVE2_INT_BITPERM, SVE2_INT_TERNARY, SVE2_INT_TERNARY_LANE): Likewise.
30058 (SVE2_FP_TERNARY_LONG, SVE2_FP_TERNARY_LONG_LANE, SVE2_INT_CMLA)
30059 (SVE2_INT_CDOT, SVE2_INT_ADD_BINARY_LONG, SVE2_INT_QADD_BINARY_LONG)
30060 (SVE2_INT_SUB_BINARY_LONG, SVE2_INT_QSUB_BINARY_LONG): Likewise.
30061 (SVE2_INT_ADD_BINARY_LONG_LANE, SVE2_INT_QADD_BINARY_LONG_LANE)
30062 (SVE2_INT_SUB_BINARY_LONG_LANE, SVE2_INT_QSUB_BINARY_LONG_LANE)
30063 (SVE2_COND_INT_UNARY_FP, SVE2_COND_FP_UNARY_LONG): Likewise.
30064 (SVE2_COND_FP_UNARY_NARROWB, SVE2_COND_INT_BINARY): Likewise.
30065 (SVE2_COND_INT_BINARY_NOREV, SVE2_COND_INT_BINARY_REV): Likewise.
30066 (SVE2_COND_INT_SHIFT, SVE2_MATCH, SVE2_PMULL): Likewise.
30067 (optab): Handle the new unspecs.
30068 (su, r): Remove entries for UNSPEC_SHRNB, UNSPEC_SHRNT, UNSPEC_RSHRNB
30069 and UNSPEC_RSHRNT.
30070 (lr): Handle the new unspecs.
30071 (bt): Delete.
30072 (cmp_op, while_optab_cmp, sve_int_op): Handle the new unspecs.
30073 (sve_int_op_rev, sve_int_add_op, sve_int_qadd_op, sve_int_sub_op)
30074 (sve_int_qsub_op): New int attributes.
30075 (sve_fp_op, rot): Handle the new unspecs.
30076 * config/aarch64/aarch64-sve-builtins.h
30077 (function_resolver::require_matching_pointer_type): Declare.
30078 (function_resolver::resolve_unary): Add an optional boolean argument.
30079 (function_resolver::finish_opt_n_resolution): Add an optional
30080 type_suffix_index argument.
30081 (gimple_folder::redirect_call): Declare.
30082 (gimple_expander::prepare_gather_address_operands): Add an optional
30083 bool parameter.
30084 * config/aarch64/aarch64-sve-builtins.cc: Include
30085 aarch64-sve-builtins-sve2.h.
30086 (TYPES_b_unsigned, TYPES_b_integer, TYPES_bh_integer): New macros.
30087 (TYPES_bs_unsigned, TYPES_hs_signed, TYPES_hs_integer): Likewise.
30088 (TYPES_hd_unsigned, TYPES_hsd_signed): Likewise.
30089 (TYPES_hsd_integer): Use TYPES_hsd_signed.
30090 (TYPES_s_float_hsd_integer, TYPES_s_float_sd_integer): New macros.
30091 (TYPES_s_unsigned): Likewise.
30092 (TYPES_s_integer): Use TYPES_s_unsigned.
30093 (TYPES_sd_signed, TYPES_sd_unsigned): New macros.
30094 (TYPES_sd_integer): Use them.
30095 (TYPES_d_unsigned): New macro.
30096 (TYPES_d_integer): Use it.
30097 (TYPES_d_data, TYPES_cvt_long, TYPES_cvt_narrow_s): New macros.
30098 (TYPES_cvt_narrow): Likewise.
30099 (DEF_SVE_TYPES_ARRAY): Include the new types macros above.
30100 (preds_mx): New variable.
30101 (function_builder::add_overloaded_function): Allow the new feature
30102 set to be more restrictive than the original one.
30103 (function_resolver::infer_pointer_type): Remove qualifiers from
30104 the pointer type before printing it.
30105 (function_resolver::require_matching_pointer_type): New function.
30106 (function_resolver::resolve_sv_displacement): Handle functions
30107 that don't support 32-bit vector indices or svint32_t vector offsets.
30108 (function_resolver::finish_opt_n_resolution): Take the inferred type
30109 as a separate argument.
30110 (function_resolver::resolve_unary): Optionally treat all forms in
30111 the same way as normal merging functions.
30112 (gimple_folder::redirect_call): New function.
30113 (function_expander::prepare_gather_address_operands): Add an argument
30114 that says whether scaled forms are available. If they aren't,
30115 handle scaling of vector indices and don't add the extension and
30116 scaling operands.
30117 (function_expander::map_to_unspecs): If aarch64_sve isn't available,
30118 fall back to using cond_* instead.
30119 * config/aarch64/aarch64-sve-builtins-functions.h (rtx_code_function):
30120 Split out the member variables into...
30121 (rtx_code_function_base): ...this new base class.
30122 (rtx_code_function_rotated): Inherit rtx_code_function_base.
30123 (unspec_based_function): Split out the member variables into...
30124 (unspec_based_function_base): ...this new base class.
30125 (unspec_based_function_rotated): Inherit unspec_based_function_base.
30126 (unspec_based_function_exact_insn): New class.
30127 (unspec_based_add_function, unspec_based_add_lane_function)
30128 (unspec_based_lane_function, unspec_based_pred_function)
30129 (unspec_based_qadd_function, unspec_based_qadd_lane_function)
30130 (unspec_based_qsub_function, unspec_based_qsub_lane_function)
30131 (unspec_based_sub_function, unspec_based_sub_lane_function): New
30132 typedefs.
30133 (unspec_based_fused_function): New class.
30134 (unspec_based_mla_function, unspec_based_mls_function): New typedefs.
30135 (unspec_based_fused_lane_function): New class.
30136 (unspec_based_mla_lane_function, unspec_based_mls_lane_function): New
30137 typedefs.
30138 (CODE_FOR_MODE1): New macro.
30139 (fixed_insn_function): New class.
30140 (while_comparison): Likewise.
30141 * config/aarch64/aarch64-sve-builtins-shapes.h (binary_long_lane)
30142 (binary_long_opt_n, binary_narrowb_opt_n, binary_narrowt_opt_n)
30143 (binary_to_uint, binary_wide, binary_wide_opt_n, compare, compare_ptr)
30144 (load_ext_gather_index_restricted, load_ext_gather_offset_restricted)
30145 (load_gather_sv_restricted, shift_left_imm_long): Declare.
30146 (shift_left_imm_to_uint, shift_right_imm_narrowb): Likewise.
30147 (shift_right_imm_narrowt, shift_right_imm_narrowb_to_uint): Likewise.
30148 (shift_right_imm_narrowt_to_uint, store_scatter_index_restricted)
30149 (store_scatter_offset_restricted, tbl_tuple, ternary_long_lane)
30150 (ternary_long_opt_n, ternary_qq_lane_rotate, ternary_qq_rotate)
30151 (ternary_shift_left_imm, ternary_shift_right_imm, ternary_uint)
30152 (unary_convert_narrowt, unary_long, unary_narrowb, unary_narrowt)
30153 (unary_narrowb_to_uint, unary_narrowt_to_uint, unary_to_int): Likewise.
30154 * config/aarch64/aarch64-sve-builtins-shapes.cc (apply_predication):
30155 Also add an initial argument for unary_convert_narrowt, regardless
30156 of the predication type.
30157 (build_32_64): Allow loads and stores to specify MODE_none.
30158 (build_sv_index64, build_sv_uint_offset): New functions.
30159 (long_type_suffix): New function.
30160 (binary_imm_narrowb_base, binary_imm_narrowt_base): New classes.
30161 (binary_imm_long_base, load_gather_sv_base): Likewise.
30162 (shift_right_imm_narrow_wrapper, ternary_shift_imm_base): Likewise.
30163 (ternary_resize2_opt_n_base, ternary_resize2_lane_base): Likewise.
30164 (unary_narrowb_base, unary_narrowt_base): Likewise.
30165 (binary_long_lane_def, binary_long_lane): New shape.
30166 (binary_long_opt_n_def, binary_long_opt_n): Likewise.
30167 (binary_narrowb_opt_n_def, binary_narrowb_opt_n): Likewise.
30168 (binary_narrowt_opt_n_def, binary_narrowt_opt_n): Likewise.
30169 (binary_to_uint_def, binary_to_uint): Likewise.
30170 (binary_wide_def, binary_wide): Likewise.
30171 (binary_wide_opt_n_def, binary_wide_opt_n): Likewise.
30172 (compare_def, compare): Likewise.
30173 (compare_ptr_def, compare_ptr): Likewise.
30174 (load_ext_gather_index_restricted_def,
30175 load_ext_gather_index_restricted): Likewise.
30176 (load_ext_gather_offset_restricted_def,
30177 load_ext_gather_offset_restricted): Likewise.
30178 (load_gather_sv_def): Inherit from load_gather_sv_base.
30179 (load_gather_sv_restricted_def, load_gather_sv_restricted): New shape.
30180 (shift_left_imm_def, shift_left_imm): Likewise.
30181 (shift_left_imm_long_def, shift_left_imm_long): Likewise.
30182 (shift_left_imm_to_uint_def, shift_left_imm_to_uint): Likewise.
30183 (store_scatter_index_restricted_def,
30184 store_scatter_index_restricted): Likewise.
30185 (store_scatter_offset_restricted_def,
30186 store_scatter_offset_restricted): Likewise.
30187 (tbl_tuple_def, tbl_tuple): Likewise.
30188 (ternary_long_lane_def, ternary_long_lane): Likewise.
30189 (ternary_long_opt_n_def, ternary_long_opt_n): Likewise.
30190 (ternary_qq_lane_def): Inherit from ternary_resize2_lane_base.
30191 (ternary_qq_lane_rotate_def, ternary_qq_lane_rotate): New shape
30192 (ternary_qq_opt_n_def): Inherit from ternary_resize2_opt_n_base.
30193 (ternary_qq_rotate_def, ternary_qq_rotate): New shape.
30194 (ternary_shift_left_imm_def, ternary_shift_left_imm): Likewise.
30195 (ternary_shift_right_imm_def, ternary_shift_right_imm): Likewise.
30196 (ternary_uint_def, ternary_uint): Likewise.
30197 (unary_convert): Fix typo in comment.
30198 (unary_convert_narrowt_def, unary_convert_narrowt): New shape.
30199 (unary_long_def, unary_long): Likewise.
30200 (unary_narrowb_def, unary_narrowb): Likewise.
30201 (unary_narrowt_def, unary_narrowt): Likewise.
30202 (unary_narrowb_to_uint_def, unary_narrowb_to_uint): Likewise.
30203 (unary_narrowt_to_uint_def, unary_narrowt_to_uint): Likewise.
30204 (unary_to_int_def, unary_to_int): Likewise.
30205 * config/aarch64/aarch64-sve-builtins-base.cc (unspec_cmla)
30206 (unspec_fcmla, unspec_cond_fcmla, expand_mla_mls_lane): New functions.
30207 (svasrd_impl): Delete.
30208 (svcadd_impl::expand): Handle integer operations too.
30209 (svcmla_impl::expand, svcmla_lane::expand): Likewise, using the
30210 new functions to derive the unspec numbers.
30211 (svmla_svmls_lane_impl): Replace with...
30212 (svmla_lane_impl, svmls_lane_impl): ...these new classes. Handle
30213 integer operations too.
30214 (svwhile_impl): Rename to...
30215 (svwhilelx_impl): ...this and inherit from while_comparison.
30216 (svasrd): Use unspec_based_function.
30217 (svmla_lane): Use svmla_lane_impl.
30218 (svmls_lane): Use svmls_lane_impl.
30219 (svrecpe, svrsqrte): Handle unsigned integer operations too.
30220 (svwhilele, svwhilelt): Use svwhilelx_impl.
30221 * config/aarch64/aarch64-sve-builtins-sve2.h: New file.
30222 * config/aarch64/aarch64-sve-builtins-sve2.cc: Likewise.
30223 * config/aarch64/aarch64-sve-builtins-sve2.def: Likewise.
30224 * config/aarch64/aarch64-sve-builtins.def: Include
30225 aarch64-sve-builtins-sve2.def.
30226
30227 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
30228
30229 * config/aarch64/aarch64-protos.h (aarch64_sve_arith_immediate_p)
30230 (aarch64_sve_sqadd_sqsub_immediate_p): Add a machine_mode argument.
30231 * config/aarch64/aarch64.c (aarch64_sve_arith_immediate_p)
30232 (aarch64_sve_sqadd_sqsub_immediate_p): Likewise. Handle scalar
30233 immediates as well as vector ones.
30234 * config/aarch64/predicates.md (aarch64_sve_arith_immediate)
30235 (aarch64_sve_sub_arith_immediate, aarch64_sve_qadd_immediate)
30236 (aarch64_sve_qsub_immediate): Update calls accordingly.
30237
30238 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
30239
30240 * config/aarch64/aarch64-sve2.md: Add banner comments.
30241 (<su>mulh<r>s<mode>3): Move further up file.
30242 (<su>mull<bt><Vwide>, <r>shrnb<mode>, <r>shrnt<mode>)
30243 (*aarch64_sve2_sra<mode>): Move further down file.
30244 * config/aarch64/t-aarch64 (s-check-sve-md): Check aarch64-sve2.md too.
30245
30246 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
30247
30248 * config/aarch64/iterators.md (SVE_WHILE): Add UNSPEC_WHILERW
30249 and UNSPEC_WHILEWR.
30250 (while_optab_cmp): Handle them.
30251 * config/aarch64/aarch64-sve.md
30252 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): Make public
30253 and add a "@" marker.
30254 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): Use it
30255 instead of gen_aarch64_sve2_while_ptest.
30256 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): Delete.
30257
30258 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
30259
30260 * config/aarch64/aarch64.md (UNSPEC_WHILE_LE): Rename to...
30261 (UNSPEC_WHILELE): ...this.
30262 (UNSPEC_WHILE_LO): Rename to...
30263 (UNSPEC_WHILELO): ...this.
30264 (UNSPEC_WHILE_LS): Rename to...
30265 (UNSPEC_WHILELS): ...this.
30266 (UNSPEC_WHILE_LT): Rename to...
30267 (UNSPEC_WHILELT): ...this.
30268 * config/aarch64/iterators.md (SVE_WHILE): Update accordingly.
30269 (cmp_op, while_optab_cmp): Likewise.
30270 * config/aarch64/aarch64.c (aarch64_sve_move_pred_via_while): Likewise.
30271 * config/aarch64/aarch64-sve-builtins-base.cc (svwhilele): Likewise.
30272 (svwhilelt): Likewise.
30273
30274 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
30275
30276 * config/aarch64/aarch64-sve-builtins-shapes.h (unary_count): Delete.
30277 (unary_to_uint): Define.
30278 * config/aarch64/aarch64-sve-builtins-shapes.cc (unary_count_def)
30279 (unary_count): Rename to...
30280 (unary_to_uint_def, unary_to_uint): ...this.
30281 * config/aarch64/aarch64-sve-builtins-base.def: Update accordingly.
30282
30283 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
30284
30285 * config/aarch64/aarch64-sve-builtins-functions.h
30286 (code_for_mode_function): New class.
30287 (CODE_FOR_MODE0, QUIET_CODE_FOR_MODE0): New macros.
30288 * config/aarch64/aarch64-sve-builtins-base.cc (svcompact_impl)
30289 (svext_impl, svmul_lane_impl, svsplice_impl, svtmad_impl): Delete.
30290 (svcompact, svext, svsplice): Use QUIET_CODE_FOR_MODE0.
30291 (svmul_lane, svtmad): Use CODE_FOR_MODE0.
30292
30293 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
30294
30295 * config/aarch64/iterators.md (addsub): New code attribute.
30296 * config/aarch64/aarch64-simd.md (aarch64_<su_optab><optab><mode>):
30297 Re-express as...
30298 (aarch64_<su_optab>q<addsub><mode>): ...this, making the same change
30299 in the asm string and attributes. Fix indentation.
30300 * config/aarch64/aarch64-sve.md (@aarch64_<su_optab><optab><mode>):
30301 Re-express as...
30302 (@aarch64_sve_<optab><mode>): ...this.
30303 * config/aarch64/aarch64-sve-builtins.h
30304 (function_expander::expand_signed_unpred_op): Delete.
30305 * config/aarch64/aarch64-sve-builtins.cc
30306 (function_expander::expand_signed_unpred_op): Likewise.
30307 (function_expander::map_to_rtx_codes): If the optab isn't defined,
30308 try using code_for_aarch64_sve instead.
30309 * config/aarch64/aarch64-sve-builtins-base.cc (svqadd_impl): Delete.
30310 (svqsub_impl): Likewise.
30311 (svqadd, svqsub): Use rtx_code_function instead.
30312
30313 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
30314
30315 * config/aarch64/iterators.md (SRHSUB, URHSUB): Delete.
30316 (HADDSUB, sur, addsub): Remove them.
30317
30318 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
30319
30320 * tree-nrv.c (pass_return_slot::execute): Handle all internal
30321 functions the same way, rather than singling out those that
30322 aren't mapped directly to optabs.
30323
30324 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
30325
30326 * target.def (compatible_vector_types_p): New target hook.
30327 * hooks.h (hook_bool_const_tree_const_tree_true): Declare.
30328 * hooks.c (hook_bool_const_tree_const_tree_true): New function.
30329 * doc/tm.texi.in (TARGET_COMPATIBLE_VECTOR_TYPES_P): New hook.
30330 * doc/tm.texi: Regenerate.
30331 * gimple-expr.c: Include target.h.
30332 (useless_type_conversion_p): Use targetm.compatible_vector_types_p.
30333 * config/aarch64/aarch64.c (aarch64_compatible_vector_types_p): New
30334 function.
30335 (TARGET_COMPATIBLE_VECTOR_TYPES_P): Define.
30336 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
30337 Use the original predicate if it already has a suitable type.
30338
30339 2020-01-09 Martin Jambor <mjambor@suse.cz>
30340
30341 * cgraph.h (cgraph_edge): Make remove, set_call_stmt, make_direct,
30342 resolve_speculation and redirect_call_stmt_to_callee static. Change
30343 return type of set_call_stmt to cgraph_edge *.
30344 * auto-profile.c (afdo_indirect_call): Adjust call to
30345 redirect_call_stmt_to_callee.
30346 * cgraph.c (cgraph_edge::set_call_stmt): Make return cgraph-edge *,
30347 make the this pointer explicit, adjust self-recursive calls and the
30348 call top make_direct. Return the resulting edge.
30349 (cgraph_edge::remove): Make this pointer explicit.
30350 (cgraph_edge::resolve_speculation): Likewise, adjust call to remove.
30351 (cgraph_edge::make_direct): Likewise, adjust call to
30352 resolve_speculation.
30353 (cgraph_edge::redirect_call_stmt_to_callee): Likewise, also adjust
30354 call to set_call_stmt.
30355 (cgraph_update_edges_for_call_stmt_node): Update call to
30356 set_call_stmt and remove.
30357 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
30358 Renamed edge to master_edge. Adjusted calls to set_call_stmt.
30359 (cgraph_node::create_edge_including_clones): Moved "first" definition
30360 of edge to the block where it was used. Adjusted calls to
30361 set_call_stmt.
30362 (cgraph_node::remove_symbol_and_inline_clones): Adjust call to
30363 cgraph_edge::remove.
30364 * cgraphunit.c (walk_polymorphic_call_targets): Adjusted calls to
30365 make_direct and redirect_call_stmt_to_callee.
30366 * ipa-fnsummary.c (redirect_to_unreachable): Adjust calls to
30367 resolve_speculation and make_direct.
30368 * ipa-inline-transform.c (inline_transform): Adjust call to
30369 redirect_call_stmt_to_callee.
30370 (check_speculations_1):: Adjust call to resolve_speculation.
30371 * ipa-inline.c (resolve_noninline_speculation): Adjust call to
30372 resolve-speculation.
30373 (inline_small_functions): Adjust call to resolve_speculation.
30374 (ipa_inline): Likewise.
30375 * ipa-prop.c (ipa_make_edge_direct_to_target): Adjust call to
30376 make_direct.
30377 * ipa-visibility.c (function_and_variable_visibility): Make iteration
30378 safe with regards to edge removal, adjust calls to
30379 redirect_call_stmt_to_callee.
30380 * ipa.c (walk_polymorphic_call_targets): Adjust calls to make_direct
30381 and redirect_call_stmt_to_callee.
30382 * multiple_target.c (create_dispatcher_calls): Adjust call to
30383 redirect_call_stmt_to_callee
30384 (redirect_to_specific_clone): Likewise.
30385 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
30386 Adjust calls to cgraph_edge::remove.
30387 * tree-inline.c (copy_bb): Adjust call to set_call_stmt.
30388 (redirect_all_calls): Adjust call to redirect_call_stmt_to_callee.
30389 (expand_call_inline): Adjust call to cgraph_edge::remove.
30390
30391 2020-01-09 Martin Liska <mliska@suse.cz>
30392
30393 * params.opt: Set Optimization for
30394 param_max_speculative_devirt_maydefs.
30395
30396 2020-01-09 Martin Sebor <msebor@redhat.com>
30397
30398 PR middle-end/93200
30399 PR fortran/92956
30400 * builtins.c (compute_objsize): Avoid handling MEM_REFs of vector type.
30401
30402 2020-01-09 Martin Liska <mliska@suse.cz>
30403
30404 * auto-profile.c (auto_profile): Use opt_for_fn
30405 for a parameter.
30406 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
30407 (propagate_vals_across_arith_jfunc): Likewise.
30408 (hint_time_bonus): Likewise.
30409 (incorporate_penalties): Likewise.
30410 (good_cloning_opportunity_p): Likewise.
30411 (perform_estimation_of_a_value): Likewise.
30412 (estimate_local_effects): Likewise.
30413 (ipcp_propagate_stage): Likewise.
30414 * ipa-fnsummary.c (decompose_param_expr): Likewise.
30415 (set_switch_stmt_execution_predicate): Likewise.
30416 (analyze_function_body): Likewise.
30417 * ipa-inline-analysis.c (offline_size): Likewise.
30418 * ipa-inline.c (early_inliner): Likewise.
30419 * ipa-prop.c (ipa_analyze_node): Likewise.
30420 (ipcp_transform_function): Likewise.
30421 * ipa-sra.c (process_scan_results): Likewise.
30422 (ipa_sra_summarize_function): Likewise.
30423 * params.opt: Rename ipcp-unit-growth to
30424 ipa-cp-unit-growth. Add Optimization for various
30425 IPA-related parameters.
30426
30427 2020-01-09 Richard Biener <rguenther@suse.de>
30428
30429 PR middle-end/93054
30430 * gimplify.c (gimplify_expr): Deal with NOP definitions.
30431
30432 2020-01-09 Richard Biener <rguenther@suse.de>
30433
30434 PR tree-optimization/93040
30435 * gimple-ssa-store-merging.c (find_bswap_or_nop): Raise search limit.
30436
30437 2020-01-09 Georg-Johann Lay <avr@gjlay.de>
30438
30439 * common/config/avr/avr-common.c (avr_option_optimization_table)
30440 [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
30441
30442 2020-01-09 Martin Liska <mliska@suse.cz>
30443
30444 * cgraphclones.c (symbol_table::materialize_all_clones):
30445 Use cgraph_node::dump_name.
30446
30447 2020-01-09 Jakub Jelinek <jakub@redhat.com>
30448
30449 PR inline-asm/93202
30450 * config/riscv/riscv.c (riscv_print_operand_reloc): Use
30451 output_operand_lossage instead of gcc_unreachable.
30452 * doc/md.texi (riscv f constraint): Fix typo.
30453
30454 PR target/93141
30455 * config/i386/i386.md (subv<mode>4): Use SWIDWI iterator instead of
30456 SWI. Use <general_hilo_operand> instead of <general_operand>. Use
30457 CONST_SCALAR_INT_P instead of CONST_INT_P.
30458 (*subv<mode>4_1): Rename to ...
30459 (subv<mode>4_1): ... this.
30460 (*subv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
30461 define_insn_and_split patterns.
30462 (*subv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
30463 patterns.
30464
30465 2020-01-08 David Malcolm <dmalcolm@redhat.com>
30466
30467 * vec.c (class selftest::count_dtor): New class.
30468 (selftest::test_auto_delete_vec): New test.
30469 (selftest::vec_c_tests): Call it.
30470 * vec.h (class auto_delete_vec): New class template.
30471 (auto_delete_vec<T>::~auto_delete_vec): New dtor.
30472
30473 2020-01-08 David Malcolm <dmalcolm@redhat.com>
30474
30475 * sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
30476
30477 2020-01-08 Jim Wilson <jimw@sifive.com>
30478
30479 * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out
30480 use of TLS_MODEL_LOCAL_EXEC when not pic.
30481
30482 2020-01-08 David Malcolm <dmalcolm@redhat.com>
30483
30484 * hash-map-tests.c (selftest::test_map_of_strings_to_int): Fix
30485 memory leak.
30486
30487 2020-01-08 Jakub Jelinek <jakub@redhat.com>
30488
30489 PR target/93187
30490 * config/i386/i386.md (*stack_protect_set_2_<mode> peephole2,
30491 *stack_protect_set_3 peephole2): Also check that the second
30492 insns source is general_operand.
30493
30494 PR target/93174
30495 * config/i386/i386.md (addcarry<mode>_0): Use nonimmediate_operand
30496 predicate for output operand instead of register_operand.
30497 (addcarry<mode>, addcarry<mode>_1): Likewise. Add alternative with
30498 memory destination and non-memory operands[2].
30499
30500 2020-01-08 Martin Liska <mliska@suse.cz>
30501
30502 * cgraph.c (cgraph_node::dump): Use ::dump_name or
30503 ::dump_asm_name instead of (::name or ::asm_name).
30504 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
30505 * cgraphunit.c (walk_polymorphic_call_targets): Likewise.
30506 (analyze_functions): Likewise.
30507 (expand_all_functions): Likewise.
30508 * ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
30509 (propagate_bits_across_jump_function): Likewise.
30510 (dump_profile_updates): Likewise.
30511 (ipcp_store_bits_results): Likewise.
30512 (ipcp_store_vr_results): Likewise.
30513 * ipa-devirt.c (dump_targets): Likewise.
30514 * ipa-fnsummary.c (analyze_function_body): Likewise.
30515 * ipa-hsa.c (check_warn_node_versionable): Likewise.
30516 (process_hsa_functions): Likewise.
30517 * ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
30518 (set_alias_uids): Likewise.
30519 * ipa-inline-transform.c (save_inline_function_body): Likewise.
30520 * ipa-inline.c (recursive_inlining): Likewise.
30521 (inline_to_all_callers_1): Likewise.
30522 (ipa_inline): Likewise.
30523 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
30524 (ipa_propagate_frequency): Likewise.
30525 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
30526 (remove_described_reference): Likewise.
30527 * ipa-pure-const.c (worse_state): Likewise.
30528 (check_retval_uses): Likewise.
30529 (analyze_function): Likewise.
30530 (propagate_pure_const): Likewise.
30531 (propagate_nothrow): Likewise.
30532 (dump_malloc_lattice): Likewise.
30533 (propagate_malloc): Likewise.
30534 (pass_local_pure_const::execute): Likewise.
30535 * ipa-visibility.c (optimize_weakref): Likewise.
30536 (function_and_variable_visibility): Likewise.
30537 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
30538 (ipa_discover_variable_flags): Likewise.
30539 * lto-streamer-out.c (output_function): Likewise.
30540 (output_constructor): Likewise.
30541 * tree-inline.c (copy_bb): Likewise.
30542 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
30543 * varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
30544
30545 2020-01-08 Richard Biener <rguenther@suse.de>
30546
30547 PR middle-end/93199
30548 * tree-eh.c (sink_clobbers): Update virtual operands for
30549 the first and last stmt only. Add a dry-run capability.
30550 (pass_lower_eh_dispatch::execute): Perform clobber sinking
30551 after CFG manipulations and in RPO order to catch all
30552 secondary opportunities reliably.
30553
30554 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
30555
30556 PR target/93182
30557 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
30558
30559 2019-01-08 Richard Biener <rguenther@suse.de>
30560
30561 PR middle-end/93199
30562 * gimple-fold.c (rewrite_to_defined_overflow): Mark stmt modified.
30563 * tree-ssa-loop-im.c (move_computations_worker): Properly adjust
30564 virtual operand, also updating SSA use.
30565 * gimple-loop-interchange.cc (loop_cand::undo_simple_reduction):
30566 Update stmt after resetting virtual operand.
30567 (tree_loop_interchange::move_code_to_inner_loop): Likewise.
30568 * gimple-iterator.c (gsi_remove): When not removing the stmt
30569 permanently do not delink immediate uses or mark the stmt modified.
30570
30571 2020-01-08 Martin Liska <mliska@suse.cz>
30572
30573 * ipa-fnsummary.c (dump_ipa_call_summary): Use symtab_node::dump_name.
30574 (ipa_call_context::estimate_size_and_time): Likewise.
30575 (inline_analyze_function): Likewise.
30576
30577 2020-01-08 Martin Liska <mliska@suse.cz>
30578
30579 * cgraph.c (cgraph_node::dump): Use systematically
30580 dump_asm_name.
30581
30582 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
30583
30584 Add -nodevicespecs option for avr.
30585
30586 PR target/93182
30587 * config/avr/avr.opt (-nodevicespecs): New driver option.
30588 * config/avr/driver-avr.c (avr_devicespecs_file): Only issue
30589 "-specs=device-specs/..." if that option is not set.
30590 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
30591
30592 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
30593
30594 Implement 64-bit double functions for avr.
30595
30596 PR target/92055
30597 * config.gcc (tm_defines) [target=avr]: Support --with-libf7,
30598 --with-double-comparison.
30599 * doc/install.texi: Document them.
30600 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
30601 <WITH_LIBF7_LIBGCC, WITH_LIBF7_MATH, WITH_LIBF7_MATH_SYMBOLS>
30602 <WITH_DOUBLE_COMPARISON>: New built-in defines.
30603 * doc/invoke.texi (AVR Built-in Macros): Document them.
30604 * config/avr/avr-protos.h (avr_float_lib_compare_returns_bool): New.
30605 * config/avr/avr.c (avr_float_lib_compare_returns_bool): New function.
30606 * config/avr/avr.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): New macro.
30607
30608 2020-01-08 Richard Earnshaw <rearnsha@arm.com>
30609
30610 PR target/93188
30611 * config/arm/t-multilib (MULTILIB_MATCHES): Add rules to match
30612 armv7-a{+mp,+sec,+mp+sec} to appropriate armv7 multilib variants
30613 when only building rm-profile multilibs.
30614
30615 2020-01-08 Feng Xue <fxue@os.amperecomputing.com>
30616
30617 PR ipa/93084
30618 * ipa-cp.c (self_recursively_generated_p): Find matched aggregate
30619 lattice for a value to check.
30620 (propagate_vals_across_arith_jfunc): Add an assertion to ensure
30621 finite propagation in self-recursive scc.
30622
30623 2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com>
30624
30625 * ipa-inline.c (caller_growth_limits): Restore the AND.
30626
30627 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
30628
30629 * config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator.
30630 (VEC_ALLREG_ALT): New iterator.
30631 (VEC_ALLREG_INT_MODE): New iterator.
30632 (VCMP_MODE): New iterator.
30633 (VCMP_MODE_INT): New iterator.
30634 (vec_cmpu<mode>di): Use VCMP_MODE_INT.
30635 (vec_cmp<u>v64qidi): New define_expand.
30636 (vec_cmp<mode>di_exec): Use VCMP_MODE.
30637 (vec_cmpu<mode>di_exec): New define_expand.
30638 (vec_cmp<u>v64qidi_exec): New define_expand.
30639 (vec_cmp<mode>di_dup): Use VCMP_MODE.
30640 (vec_cmp<mode>di_dup_exec): Use VCMP_MODE.
30641 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>): Rename ...
30642 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): ... to this.
30643 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Rename ...
30644 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): ... to this.
30645 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Rename ...
30646 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): ... to this.
30647 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Rename ...
30648 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): ... to
30649 this.
30650 * config/gcn/gcn.c (print_operand): Fix 8 and 16 bit suffixes.
30651 * config/gcn/gcn.md (expander): Add sign_extend and zero_extend.
30652
30653 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
30654
30655 * config/gcn/constraints.md (DA): Update description and match.
30656 (DB): Likewise.
30657 (Db): New constraint.
30658 * config/gcn/gcn-protos.h (gcn_inline_constant64_p): Add second
30659 parameter.
30660 * config/gcn/gcn.c (gcn_inline_constant64_p): Add 'mixed' parameter.
30661 Implement 'Db' mixed immediate type.
30662 * config/gcn/gcn-valu.md (addcv64si3<exec_vcc>): Rework constraints.
30663 (addcv64si3_dup<exec_vcc>): Delete.
30664 (subcv64si3<exec_vcc>): Rework constraints.
30665 (addv64di3): Rework constraints.
30666 (addv64di3_exec): Rework constraints.
30667 (subv64di3): Rework constraints.
30668 (addv64di3_dup): Delete.
30669 (addv64di3_dup_exec): Delete.
30670 (addv64di3_zext): Rework constraints.
30671 (addv64di3_zext_exec): Rework constraints.
30672 (addv64di3_zext_dup): Rework constraints.
30673 (addv64di3_zext_dup_exec): Rework constraints.
30674 (addv64di3_zext_dup2): Rework constraints.
30675 (addv64di3_zext_dup2_exec): Rework constraints.
30676 (addv64di3_sext_dup2): Rework constraints.
30677 (addv64di3_sext_dup2_exec): Rework constraints.
30678
30679 2020-01-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
30680
30681 * doc/sourcebuild.texi (arm_little_endian, arm_nothumb): Documented
30682 existing target checks.
30683
30684 2020-01-07 Richard Biener <rguenther@suse.de>
30685
30686 * doc/install.texi: Bump minimal supported MPC version.
30687
30688 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
30689
30690 * langhooks-def.h (lhd_simulate_enum_decl): Declare.
30691 (LANG_HOOKS_SIMULATE_ENUM_DECL): Use it.
30692 * langhooks.c: Include stor-layout.h.
30693 (lhd_simulate_enum_decl): New function.
30694 * config/aarch64/aarch64-sve-builtins.cc (init_builtins): Call
30695 handle_arm_sve_h for the LTO frontend.
30696 (register_vector_type): Cope with null returns from pushdecl.
30697
30698 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
30699
30700 * config/aarch64/aarch64-protos.h (aarch64_sve::svbool_type_p)
30701 (aarch64_sve::nvectors_if_data_type): Replace with...
30702 (aarch64_sve::builtin_type_p): ...this.
30703 * config/aarch64/aarch64-sve-builtins.cc: Include attribs.h.
30704 (find_vector_type): Delete.
30705 (add_sve_type_attribute): New function.
30706 (lookup_sve_type_attribute): Likewise.
30707 (register_builtin_types): Add an "SVE type" attribute to each type.
30708 (register_tuple_type): Likewise.
30709 (svbool_type_p, nvectors_if_data_type): Delete.
30710 (mangle_builtin_type): Use lookup_sve_type_attribute.
30711 (builtin_type_p): Likewise. Add an overload that returns the
30712 number of constituent vector and predicate registers.
30713 * config/aarch64/aarch64.c (aarch64_sve_argument_p): Delete.
30714 (aarch64_returns_value_in_sve_regs_p): Use aarch64_sve::builtin_type_p
30715 instead of aarch64_sve_argument_p.
30716 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
30717 (aarch64_pass_by_reference): Likewise.
30718 (aarch64_function_value_1): Likewise.
30719 (aarch64_return_in_memory): Likewise.
30720 (aarch64_layout_arg): Likewise.
30721
30722 2020-01-07 Jakub Jelinek <jakub@redhat.com>
30723
30724 PR tree-optimization/93156
30725 * tree-ssa-ccp.c (bit_value_binop): For x * x note that the second
30726 least significant bit is always clear.
30727
30728 PR tree-optimization/93118
30729 * match.pd ((x >> c) << c -> x & (-1<<c)): Add nop_convert?. Add new
30730 simplifier with two intermediate conversions.
30731
30732 2020-01-07 Martin Liska <mliska@suse.cz>
30733
30734 * params.opt: Add Optimization for various parameters.
30735
30736 2020-01-07 Martin Liska <mliska@suse.cz>
30737
30738 PR ipa/83411
30739 * doc/extend.texi: Explain cloning for target_clone
30740 attribute.
30741
30742 2020-01-07 Martin Liska <mliska@suse.cz>
30743
30744 PR tree-optimization/92860
30745 * common.opt: Make in Optimization option
30746 as it is affected by -O0, which is an Optimization
30747 option.
30748 * tree-inline.c (tree_inlinable_function_p):
30749 Use opt_for_fn for warn_inline.
30750 (expand_call_inline): Likewise.
30751
30752 2020-01-07 Martin Liska <mliska@suse.cz>
30753
30754 PR tree-optimization/92860
30755 * common.opt: Make flag_ree as optimization
30756 attribute.
30757
30758 2020-01-07 Martin Liska <mliska@suse.cz>
30759
30760 PR optimization/92860
30761 * params.opt: Mark param_min_crossjump_insns with Optimization
30762 keyword.
30763
30764 2020-01-07 Luo Xiong Hu <luoxhu@linux.ibm.com>
30765
30766 * ipa-inline-analysis.c (estimate_growth): Fix typo.
30767 * ipa-inline.c (caller_growth_limits): Use OR instead of AND.
30768
30769 2020-01-06 Michael Meissner <meissner@linux.ibm.com>
30770
30771 * config/rs6000/rs6000.c (hard_reg_and_mode_to_addr_mask): New
30772 helper function to return the valid addressing formats for a given
30773 hard register and mode.
30774 (rs6000_adjust_vec_address): Call hard_reg_and_mode_to_addr_mask.
30775
30776 * config/rs6000/constraints.md (Q constraint): Update
30777 documentation.
30778 * doc/md.texi (RS/6000 constraints): Update 'Q' cosntraint
30779 documentation.
30780
30781 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
30782 Use 'Q' for doing vector extract from memory.
30783 (vsx_extract_v4sf_var): Use 'Q' for doing vector extract from
30784 memory.
30785 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Use 'Q' for
30786 doing vector extract from memory.
30787 (vsx_extract_<mode>_<VS_scalar>mode_var): Use 'Q' for doing vector
30788 extract from memory.
30789
30790 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add support
30791 for the offset being 34-bits when -mcpu=future is used.
30792
30793 2020-01-06 John David Anglin <danglin@gcc.gnu.org>
30794
30795 * config/pa/pa.md: Revert change to use ordered_comparison_operator
30796 instead of cmpib_comparison_operator in cmpib patterns.
30797 * config/pa/predicates.md (cmpib_comparison_operator): Revert removal
30798 of cmpib_comparison_operator. Revise comment.
30799
30800 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
30801
30802 * tree-vect-slp.c (vect_build_slp_tree_1): Require all shifts
30803 in an IFN_DIV_POW2 node to be equal.
30804
30805 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
30806
30807 * tree-vect-stmts.c (vect_check_load_store_mask): Rename to...
30808 (vect_check_scalar_mask): ...this.
30809 (vectorizable_store, vectorizable_load): Update call accordingly.
30810 (vectorizable_call): Use vect_check_scalar_mask to check the mask
30811 argument in calls to conditional internal functions.
30812
30813 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
30814
30815 * config/gcn/gcn-valu.md (subv64di3): Use separate alternatives for
30816 '0' matching inputs.
30817 (subv64di3_exec): Likewise.
30818
30819 2020-01-06 Bryan Stenson <bryan@siliconvortex.com>
30820
30821 * config/mips/mips.c (vr4130_align_insns): Fix typo.
30822 * doc/md.texi (movstr): Likewise.
30823
30824 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
30825
30826 * config/gcn/gcn-valu.md (vec_extract<mode><scalar_mode>): Add early
30827 clobber.
30828
30829 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
30830
30831 * config/aarch64/t-aarch64 ($(srcdir)/config/aarch64/aarch64-tune.md):
30832 Depend on...
30833 (s-aarch64-tune-md): ...this new stamp file. Pipe the new contents
30834 to a temporary file and use move-if-change to update the real
30835 file where necessary.
30836
30837 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
30838
30839 * config/aarch64/aarch64-sve.md (@aarch64_sel_dup<mode>): Use Upl
30840 rather than Upa for CPY /M.
30841
30842 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
30843
30844 * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
30845 immediate.
30846
30847 2020-01-06 Martin Liska <mliska@suse.cz>
30848
30849 PR tree-optimization/92860
30850 * params.opt: Mark param_max_combine_insns with Optimization
30851 keyword.
30852
30853 2020-01-05 Jakub Jelinek <jakub@redhat.com>
30854
30855 PR target/93141
30856 * config/i386/i386.md (SWIDWI): New mode iterator.
30857 (DWI, dwi): Add TImode variants.
30858 (addv<mode>4): Use SWIDWI iterator instead of SWI. Use
30859 <general_hilo_operand> instead of <general_operand>. Use
30860 CONST_SCALAR_INT_P instead of CONST_INT_P.
30861 (*addv<mode>4_1): Rename to ...
30862 (addv<mode>4_1): ... this.
30863 (QWI): New mode attribute.
30864 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
30865 define_insn_and_split patterns.
30866 (*addv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
30867 patterns.
30868 (uaddv<mode>4): Use SWIDWI iterator instead of SWI. Use
30869 <general_hilo_operand> instead of <general_operand>.
30870 (*addcarry<mode>_1): New define_insn.
30871 (*add<dwi>3_doubleword_cc_overflow_1): New define_insn_and_split.
30872
30873 2020-01-03 Konstantin Kharlamov <Hi-Angel@yandex.ru>
30874
30875 * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm):
30876 Use "call" instead of "set".
30877
30878 2020-01-03 Martin Jambor <mjambor@suse.cz>
30879
30880 PR ipa/92917
30881 * ipa-cp.c (print_all_lattices): Skip functions without info.
30882
30883 2020-01-03 Jakub Jelinek <jakub@redhat.com>
30884
30885 PR target/93089
30886 * config/i386/i386-options.c (ix86_simd_clone_adjust): If
30887 TARGET_PREFER_AVX128, use prefer-vector-width=256 for 'c' and 'd'
30888 simd clones. If TARGET_PREFER_AVX256, use prefer-vector-width=512
30889 for 'e' simd clones.
30890
30891 PR target/93089
30892 * config/i386/i386.opt (x_prefer_vector_width_type): Remove TargetSave
30893 entry.
30894 (mprefer-vector-width=): Add Save.
30895 * config/i386/i386-options.c (ix86_target_string): Add PVW argument, print
30896 -mprefer-vector-width= if non-zero. Fix up -mfpmath= comment.
30897 (ix86_debug_options, ix86_function_specific_print): Adjust
30898 ix86_target_string callers.
30899 (ix86_valid_target_attribute_inner_p): Handle prefer-vector-width=.
30900 (ix86_valid_target_attribute_tree): Likewise.
30901 * config/i386/i386-options.h (ix86_target_string): Add PVW argument.
30902 * config/i386/i386-expand.c (ix86_expand_builtin): Adjust
30903 ix86_target_string caller.
30904
30905 PR target/93110
30906 * config/i386/i386.md (abs<mode>2): Use expand_simple_binop instead of
30907 emitting ASHIFTRT, XOR and MINUS by hand. Use gen_int_mode with QImode
30908 instead of gen_int_shift_amount + convert_modes.
30909
30910 PR rtl-optimization/93088
30911 * loop-iv.c (find_single_def_src): Punt after looking through
30912 128 reg copies for regs with single definitions. Move definitions
30913 to first uses.
30914
30915 2020-01-02 Dennis Zhang <dennis.zhang@arm.com>
30916
30917 * config/arm/arm-c.c (arm_cpu_builtins): Define
30918 __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC,
30919 __ARM_FEATURE_BF16_SCALAR_ARITHMETIC, and
30920 __ARM_BF16_FORMAT_ALTERNATIVE when enabled.
30921 * config/arm/arm-cpus.in (armv8_6, i8mm, bf16): New features.
30922 * config/arm/arm-tables.opt: Regenerated.
30923 * config/arm/arm.c (arm_option_reconfigure_globals): Initialize
30924 arm_arch_i8mm and arm_arch_bf16 when enabled.
30925 * config/arm/arm.h (TARGET_I8MM): New macro.
30926 (TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
30927 * config/arm/t-aprofile: Add matching rules for -march=armv8.6-a.
30928 * config/arm/t-arm-elf (all_v8_archs): Add armv8.6-a.
30929 * config/arm/t-multilib: Add matching rules for -march=armv8.6-a.
30930 (v8_6_a_simd_variants): New.
30931 (v8_*_a_simd_variants): Add i8mm and bf16.
30932 * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options.
30933
30934 2020-01-02 Jakub Jelinek <jakub@redhat.com>
30935
30936 PR ipa/93087
30937 * predict.c (compute_function_frequency): Don't call
30938 warn_function_cold on functions that already have cold attribute.
30939
30940 2020-01-01 John David Anglin <danglin@gcc.gnu.org>
30941
30942 PR target/67834
30943 * config/pa/pa.c (pa_elf_select_rtx_section): New. Put references to
30944 COMDAT group function labels in .data.rel.ro.local section.
30945 * config/pa/pa32-linux.h (TARGET_ASM_SELECT_RTX_SECTION): Define.
30946
30947 PR target/93111
30948 * config/pa/pa.md (scc): Use ordered_comparison_operator instead of
30949 comparison_operator in B and S integer comparisons. Likewise, use
30950 ordered_comparison_operator instead of cmpib_comparison_operator in
30951 cmpib patterns.
30952 * config/pa/predicates.md (cmpib_comparison_operator): Remove.
30953
30954 2020-01-01 Jakub Jelinek <jakub@redhat.com>
30955
30956 Update copyright years.
30957
30958 * gcc.c (process_command): Update copyright notice dates.
30959 * gcov-dump.c (print_version): Ditto.
30960 * gcov.c (print_version): Ditto.
30961 * gcov-tool.c (print_version): Ditto.
30962 * gengtype.c (create_file): Ditto.
30963 * doc/cpp.texi: Bump @copying's copyright year.
30964 * doc/cppinternals.texi: Ditto.
30965 * doc/gcc.texi: Ditto.
30966 * doc/gccint.texi: Ditto.
30967 * doc/gcov.texi: Ditto.
30968 * doc/install.texi: Ditto.
30969 * doc/invoke.texi: Ditto.
30970
30971 2020-01-01 Jan Hubicka <hubicka@ucw.cz>
30972
30973 * ipa.c (walk_polymorphic_call_targets): Fix updating of overall
30974 summary.
30975
30976 2020-01-01 Jakub Jelinek <jakub@redhat.com>
30977
30978 PR tree-optimization/93098
30979 * match.pd (popcount): For shift amounts, use integer_onep
30980 or wi::to_widest () == cst instead of tree_to_uhwi () == cst
30981 tests. Make sure that precision is power of two larger than or equal
30982 to 16. Ensure shift is never negative. Use HOST_WIDE_INT_UC macro
30983 instead of ULL suffixed constants. Formatting fixes.
30984 \f
30985 Copyright (C) 2020 Free Software Foundation, Inc.
30986
30987 Copying and distribution of this file, with or without modification,
30988 are permitted in any medium without royalty provided the copyright
30989 notice and this notice are preserved.