[AArch64] Specify some SVE ACLE functions in a more generic way
[gcc.git] / gcc / ChangeLog
1 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
2
3 * config/aarch64/aarch64-sve-builtins-functions.h
4 (code_for_mode_function): New class.
5 (CODE_FOR_MODE0, QUIET_CODE_FOR_MODE0): New macros.
6 * config/aarch64/aarch64-sve-builtins-base.cc (svcompact_impl)
7 (svext_impl, svmul_lane_impl, svsplice_impl, svtmad_impl): Delete.
8 (svcompact, svext, svsplice): Use QUIET_CODE_FOR_MODE0.
9 (svmul_lane, svtmad): Use CODE_FOR_MODE0.
10
11 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
12
13 * config/aarch64/iterators.md (addsub): New code attribute.
14 * config/aarch64/aarch64-simd.md (aarch64_<su_optab><optab><mode>):
15 Re-express as...
16 (aarch64_<su_optab>q<addsub><mode>): ...this, making the same change
17 in the asm string and attributes. Fix indentation.
18 * config/aarch64/aarch64-sve.md (@aarch64_<su_optab><optab><mode>):
19 Re-express as...
20 (@aarch64_sve_<optab><mode>): ...this.
21 * config/aarch64/aarch64-sve-builtins.h
22 (function_expander::expand_signed_unpred_op): Delete.
23 * config/aarch64/aarch64-sve-builtins.cc
24 (function_expander::expand_signed_unpred_op): Likewise.
25 (function_expander::map_to_rtx_codes): If the optab isn't defined,
26 try using code_for_aarch64_sve instead.
27 * config/aarch64/aarch64-sve-builtins-base.cc (svqadd_impl): Delete.
28 (svqsub_impl): Likewise.
29 (svqadd, svqsub): Use rtx_code_function instead.
30
31 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
32
33 * config/aarch64/iterators.md (SRHSUB, URHSUB): Delete.
34 (HADDSUB, sur, addsub): Remove them.
35
36 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
37
38 * tree-nrv.c (pass_return_slot::execute): Handle all internal
39 functions the same way, rather than singling out those that
40 aren't mapped directly to optabs.
41
42 2020-01-09 Richard Sandiford <richard.sandiford@arm.com>
43
44 * target.def (compatible_vector_types_p): New target hook.
45 * hooks.h (hook_bool_const_tree_const_tree_true): Declare.
46 * hooks.c (hook_bool_const_tree_const_tree_true): New function.
47 * doc/tm.texi.in (TARGET_COMPATIBLE_VECTOR_TYPES_P): New hook.
48 * doc/tm.texi: Regenerate.
49 * gimple-expr.c: Include target.h.
50 (useless_type_conversion_p): Use targetm.compatible_vector_types_p.
51 * config/aarch64/aarch64.c (aarch64_compatible_vector_types_p): New
52 function.
53 (TARGET_COMPATIBLE_VECTOR_TYPES_P): Define.
54 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
55 Use the original predicate if it already has a suitable type.
56
57 2020-01-09 Martin Jambor <mjambor@suse.cz>
58
59 * cgraph.h (cgraph_edge): Make remove, set_call_stmt, make_direct,
60 resolve_speculation and redirect_call_stmt_to_callee static. Change
61 return type of set_call_stmt to cgraph_edge *.
62 * auto-profile.c (afdo_indirect_call): Adjust call to
63 redirect_call_stmt_to_callee.
64 * cgraph.c (cgraph_edge::set_call_stmt): Make return cgraph-edge *,
65 make the this pointer explicit, adjust self-recursive calls and the
66 call top make_direct. Return the resulting edge.
67 (cgraph_edge::remove): Make this pointer explicit.
68 (cgraph_edge::resolve_speculation): Likewise, adjust call to remove.
69 (cgraph_edge::make_direct): Likewise, adjust call to
70 resolve_speculation.
71 (cgraph_edge::redirect_call_stmt_to_callee): Likewise, also adjust
72 call to set_call_stmt.
73 (cgraph_update_edges_for_call_stmt_node): Update call to
74 set_call_stmt and remove.
75 * cgraphclones.c (cgraph_node::set_call_stmt_including_clones):
76 Renamed edge to master_edge. Adjusted calls to set_call_stmt.
77 (cgraph_node::create_edge_including_clones): Moved "first" definition
78 of edge to the block where it was used. Adjusted calls to
79 set_call_stmt.
80 (cgraph_node::remove_symbol_and_inline_clones): Adjust call to
81 cgraph_edge::remove.
82 * cgraphunit.c (walk_polymorphic_call_targets): Adjusted calls to
83 make_direct and redirect_call_stmt_to_callee.
84 * ipa-fnsummary.c (redirect_to_unreachable): Adjust calls to
85 resolve_speculation and make_direct.
86 * ipa-inline-transform.c (inline_transform): Adjust call to
87 redirect_call_stmt_to_callee.
88 (check_speculations_1):: Adjust call to resolve_speculation.
89 * ipa-inline.c (resolve_noninline_speculation): Adjust call to
90 resolve-speculation.
91 (inline_small_functions): Adjust call to resolve_speculation.
92 (ipa_inline): Likewise.
93 * ipa-prop.c (ipa_make_edge_direct_to_target): Adjust call to
94 make_direct.
95 * ipa-visibility.c (function_and_variable_visibility): Make iteration
96 safe with regards to edge removal, adjust calls to
97 redirect_call_stmt_to_callee.
98 * ipa.c (walk_polymorphic_call_targets): Adjust calls to make_direct
99 and redirect_call_stmt_to_callee.
100 * multiple_target.c (create_dispatcher_calls): Adjust call to
101 redirect_call_stmt_to_callee
102 (redirect_to_specific_clone): Likewise.
103 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
104 Adjust calls to cgraph_edge::remove.
105 * tree-inline.c (copy_bb): Adjust call to set_call_stmt.
106 (redirect_all_calls): Adjust call to redirect_call_stmt_to_callee.
107 (expand_call_inline): Adjust call to cgraph_edge::remove.
108
109 2020-01-09 Martin Liska <mliska@suse.cz>
110
111 * params.opt: Set Optimization for
112 param_max_speculative_devirt_maydefs.
113
114 2020-01-09 Martin Sebor <msebor@redhat.com>
115
116 PR middle-end/93200
117 PR fortran/92956
118 * builtins.c (compute_objsize): Avoid handling MEM_REFs of vector type.
119
120 2020-01-09 Martin Liska <mliska@suse.cz>
121
122 * auto-profile.c (auto_profile): Use opt_for_fn
123 for a parameter.
124 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
125 (propagate_vals_across_arith_jfunc): Likewise.
126 (hint_time_bonus): Likewise.
127 (incorporate_penalties): Likewise.
128 (good_cloning_opportunity_p): Likewise.
129 (perform_estimation_of_a_value): Likewise.
130 (estimate_local_effects): Likewise.
131 (ipcp_propagate_stage): Likewise.
132 * ipa-fnsummary.c (decompose_param_expr): Likewise.
133 (set_switch_stmt_execution_predicate): Likewise.
134 (analyze_function_body): Likewise.
135 * ipa-inline-analysis.c (offline_size): Likewise.
136 * ipa-inline.c (early_inliner): Likewise.
137 * ipa-prop.c (ipa_analyze_node): Likewise.
138 (ipcp_transform_function): Likewise.
139 * ipa-sra.c (process_scan_results): Likewise.
140 (ipa_sra_summarize_function): Likewise.
141 * params.opt: Rename ipcp-unit-growth to
142 ipa-cp-unit-growth. Add Optimization for various
143 IPA-related parameters.
144
145 2020-01-09 Richard Biener <rguenther@suse.de>
146
147 PR middle-end/93054
148 * gimplify.c (gimplify_expr): Deal with NOP definitions.
149
150 2020-01-09 Richard Biener <rguenther@suse.de>
151
152 PR tree-optimization/93040
153 * gimple-ssa-store-merging.c (find_bswap_or_nop): Raise search limit.
154
155 2020-01-09 Georg-Johann Lay <avr@gjlay.de>
156
157 * common/config/avr/avr-common.c (avr_option_optimization_table)
158 [OPT_LEVELS_1_PLUS]: Set -fsplit-wide-types-early.
159
160 2020-01-09 Martin Liska <mliska@suse.cz>
161
162 * cgraphclones.c (symbol_table::materialize_all_clones):
163 Use cgraph_node::dump_name.
164
165 2020-01-09 Jakub Jelinek <jakub@redhat.com>
166
167 PR inline-asm/93202
168 * config/riscv/riscv.c (riscv_print_operand_reloc): Use
169 output_operand_lossage instead of gcc_unreachable.
170 * doc/md.texi (riscv f constraint): Fix typo.
171
172 PR target/93141
173 * config/i386/i386.md (subv<mode>4): Use SWIDWI iterator instead of
174 SWI. Use <general_hilo_operand> instead of <general_operand>. Use
175 CONST_SCALAR_INT_P instead of CONST_INT_P.
176 (*subv<mode>4_1): Rename to ...
177 (subv<mode>4_1): ... this.
178 (*subv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
179 define_insn_and_split patterns.
180 (*subv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
181 patterns.
182
183 2020-01-08 David Malcolm <dmalcolm@redhat.com>
184
185 * vec.c (class selftest::count_dtor): New class.
186 (selftest::test_auto_delete_vec): New test.
187 (selftest::vec_c_tests): Call it.
188 * vec.h (class auto_delete_vec): New class template.
189 (auto_delete_vec<T>::~auto_delete_vec): New dtor.
190
191 2020-01-08 David Malcolm <dmalcolm@redhat.com>
192
193 * sbitmap.h (auto_sbitmap): Add operator const_sbitmap.
194
195 2020-01-08 Jim Wilson <jimw@sifive.com>
196
197 * config/riscv/riscv.c (riscv_legitimize_tls_address): Ifdef out
198 use of TLS_MODEL_LOCAL_EXEC when not pic.
199
200 2020-01-08 David Malcolm <dmalcolm@redhat.com>
201
202 * hash-map-tests.c (selftest::test_map_of_strings_to_int): Fix
203 memory leak.
204
205 2020-01-08 Jakub Jelinek <jakub@redhat.com>
206
207 PR target/93187
208 * config/i386/i386.md (*stack_protect_set_2_<mode> peephole2,
209 *stack_protect_set_3 peephole2): Also check that the second
210 insns source is general_operand.
211
212 PR target/93174
213 * config/i386/i386.md (addcarry<mode>_0): Use nonimmediate_operand
214 predicate for output operand instead of register_operand.
215 (addcarry<mode>, addcarry<mode>_1): Likewise. Add alternative with
216 memory destination and non-memory operands[2].
217
218 2020-01-08 Martin Liska <mliska@suse.cz>
219
220 * cgraph.c (cgraph_node::dump): Use ::dump_name or
221 ::dump_asm_name instead of (::name or ::asm_name).
222 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
223 * cgraphunit.c (walk_polymorphic_call_targets): Likewise.
224 (analyze_functions): Likewise.
225 (expand_all_functions): Likewise.
226 * ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
227 (propagate_bits_across_jump_function): Likewise.
228 (dump_profile_updates): Likewise.
229 (ipcp_store_bits_results): Likewise.
230 (ipcp_store_vr_results): Likewise.
231 * ipa-devirt.c (dump_targets): Likewise.
232 * ipa-fnsummary.c (analyze_function_body): Likewise.
233 * ipa-hsa.c (check_warn_node_versionable): Likewise.
234 (process_hsa_functions): Likewise.
235 * ipa-icf.c (sem_item_optimizer::merge_classes): Likewise.
236 (set_alias_uids): Likewise.
237 * ipa-inline-transform.c (save_inline_function_body): Likewise.
238 * ipa-inline.c (recursive_inlining): Likewise.
239 (inline_to_all_callers_1): Likewise.
240 (ipa_inline): Likewise.
241 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
242 (ipa_propagate_frequency): Likewise.
243 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
244 (remove_described_reference): Likewise.
245 * ipa-pure-const.c (worse_state): Likewise.
246 (check_retval_uses): Likewise.
247 (analyze_function): Likewise.
248 (propagate_pure_const): Likewise.
249 (propagate_nothrow): Likewise.
250 (dump_malloc_lattice): Likewise.
251 (propagate_malloc): Likewise.
252 (pass_local_pure_const::execute): Likewise.
253 * ipa-visibility.c (optimize_weakref): Likewise.
254 (function_and_variable_visibility): Likewise.
255 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
256 (ipa_discover_variable_flags): Likewise.
257 * lto-streamer-out.c (output_function): Likewise.
258 (output_constructor): Likewise.
259 * tree-inline.c (copy_bb): Likewise.
260 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
261 * varpool.c (symbol_table::remove_unreferenced_decls): Likewise.
262
263 2020-01-08 Richard Biener <rguenther@suse.de>
264
265 PR middle-end/93199
266 * tree-eh.c (sink_clobbers): Update virtual operands for
267 the first and last stmt only. Add a dry-run capability.
268 (pass_lower_eh_dispatch::execute): Perform clobber sinking
269 after CFG manipulations and in RPO order to catch all
270 secondary opportunities reliably.
271
272 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
273
274 PR target/93182
275 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
276
277 2019-01-08 Richard Biener <rguenther@suse.de>
278
279 PR middle-end/93199
280 * gimple-fold.c (rewrite_to_defined_overflow): Mark stmt modified.
281 * tree-ssa-loop-im.c (move_computations_worker): Properly adjust
282 virtual operand, also updating SSA use.
283 * gimple-loop-interchange.cc (loop_cand::undo_simple_reduction):
284 Update stmt after resetting virtual operand.
285 (tree_loop_interchange::move_code_to_inner_loop): Likewise.
286 * gimple-iterator.c (gsi_remove): When not removing the stmt
287 permanently do not delink immediate uses or mark the stmt modified.
288
289 2020-01-08 Martin Liska <mliska@suse.cz>
290
291 * ipa-fnsummary.c (dump_ipa_call_summary): Use symtab_node::dump_name.
292 (ipa_call_context::estimate_size_and_time): Likewise.
293 (inline_analyze_function): Likewise.
294
295 2020-01-08 Martin Liska <mliska@suse.cz>
296
297 * cgraph.c (cgraph_node::dump): Use systematically
298 dump_asm_name.
299
300 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
301
302 Add -nodevicespecs option for avr.
303
304 PR target/93182
305 * config/avr/avr.opt (-nodevicespecs): New driver option.
306 * config/avr/driver-avr.c (avr_devicespecs_file): Only issue
307 "-specs=device-specs/..." if that option is not set.
308 * doc/invoke.texi (AVR Options) <-nodevicespecs>: Document.
309
310 2020-01-08 Georg-Johann Lay <avr@gjlay.de>
311
312 Implement 64-bit double functions for avr.
313
314 PR target/92055
315 * config.gcc (tm_defines) [target=avr]: Support --with-libf7,
316 --with-double-comparison.
317 * doc/install.texi: Document them.
318 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
319 <WITH_LIBF7_LIBGCC, WITH_LIBF7_MATH, WITH_LIBF7_MATH_SYMBOLS>
320 <WITH_DOUBLE_COMPARISON>: New built-in defines.
321 * doc/invoke.texi (AVR Built-in Macros): Document them.
322 * config/avr/avr-protos.h (avr_float_lib_compare_returns_bool): New.
323 * config/avr/avr.c (avr_float_lib_compare_returns_bool): New function.
324 * config/avr/avr.h (FLOAT_LIB_COMPARE_RETURNS_BOOL): New macro.
325
326 2020-01-08 Richard Earnshaw <rearnsha@arm.com>
327
328 PR target/93188
329 * config/arm/t-multilib (MULTILIB_MATCHES): Add rules to match
330 armv7-a{+mp,+sec,+mp+sec} to appropriate armv7 multilib variants
331 when only building rm-profile multilibs.
332
333 2020-01-08 Feng Xue <fxue@os.amperecomputing.com>
334
335 PR ipa/93084
336 * ipa-cp.c (self_recursively_generated_p): Find matched aggregate
337 lattice for a value to check.
338 (propagate_vals_across_arith_jfunc): Add an assertion to ensure
339 finite propagation in self-recursive scc.
340
341 2020-01-08 Luo Xiong Hu <luoxhu@linux.ibm.com>
342
343 * ipa-inline.c (caller_growth_limits): Restore the AND.
344
345 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
346
347 * config/gcn/gcn-valu.md (VEC_1REG_INT_ALT): Delete iterator.
348 (VEC_ALLREG_ALT): New iterator.
349 (VEC_ALLREG_INT_MODE): New iterator.
350 (VCMP_MODE): New iterator.
351 (VCMP_MODE_INT): New iterator.
352 (vec_cmpu<mode>di): Use VCMP_MODE_INT.
353 (vec_cmp<u>v64qidi): New define_expand.
354 (vec_cmp<mode>di_exec): Use VCMP_MODE.
355 (vec_cmpu<mode>di_exec): New define_expand.
356 (vec_cmp<u>v64qidi_exec): New define_expand.
357 (vec_cmp<mode>di_dup): Use VCMP_MODE.
358 (vec_cmp<mode>di_dup_exec): Use VCMP_MODE.
359 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>): Rename ...
360 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>): ... to this.
361 (vcond<VEC_ALL1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Rename ...
362 (vcond<VEC_ALLREG_MODE:mode><VEC_ALLREG_ALT:mode>_exec): ... to this.
363 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Rename ...
364 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>): ... to this.
365 (vcondu<VEC_ALL1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Rename ...
366 (vcondu<VEC_ALLREG_MODE:mode><VEC_ALLREG_INT_MODE:mode>_exec): ... to
367 this.
368 * config/gcn/gcn.c (print_operand): Fix 8 and 16 bit suffixes.
369 * config/gcn/gcn.md (expander): Add sign_extend and zero_extend.
370
371 2020-01-07 Andrew Stubbs <ams@codesourcery.com>
372
373 * config/gcn/constraints.md (DA): Update description and match.
374 (DB): Likewise.
375 (Db): New constraint.
376 * config/gcn/gcn-protos.h (gcn_inline_constant64_p): Add second
377 parameter.
378 * config/gcn/gcn.c (gcn_inline_constant64_p): Add 'mixed' parameter.
379 Implement 'Db' mixed immediate type.
380 * config/gcn/gcn-valu.md (addcv64si3<exec_vcc>): Rework constraints.
381 (addcv64si3_dup<exec_vcc>): Delete.
382 (subcv64si3<exec_vcc>): Rework constraints.
383 (addv64di3): Rework constraints.
384 (addv64di3_exec): Rework constraints.
385 (subv64di3): Rework constraints.
386 (addv64di3_dup): Delete.
387 (addv64di3_dup_exec): Delete.
388 (addv64di3_zext): Rework constraints.
389 (addv64di3_zext_exec): Rework constraints.
390 (addv64di3_zext_dup): Rework constraints.
391 (addv64di3_zext_dup_exec): Rework constraints.
392 (addv64di3_zext_dup2): Rework constraints.
393 (addv64di3_zext_dup2_exec): Rework constraints.
394 (addv64di3_sext_dup2): Rework constraints.
395 (addv64di3_sext_dup2_exec): Rework constraints.
396
397 2020-01-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
398
399 * doc/sourcebuild.texi (arm_little_endian, arm_nothumb): Documented
400 existing target checks.
401
402 2020-01-07 Richard Biener <rguenther@suse.de>
403
404 * doc/install.texi: Bump minimal supported MPC version.
405
406 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
407
408 * langhooks-def.h (lhd_simulate_enum_decl): Declare.
409 (LANG_HOOKS_SIMULATE_ENUM_DECL): Use it.
410 * langhooks.c: Include stor-layout.h.
411 (lhd_simulate_enum_decl): New function.
412 * config/aarch64/aarch64-sve-builtins.cc (init_builtins): Call
413 handle_arm_sve_h for the LTO frontend.
414 (register_vector_type): Cope with null returns from pushdecl.
415
416 2020-01-07 Richard Sandiford <richard.sandiford@arm.com>
417
418 * config/aarch64/aarch64-protos.h (aarch64_sve::svbool_type_p)
419 (aarch64_sve::nvectors_if_data_type): Replace with...
420 (aarch64_sve::builtin_type_p): ...this.
421 * config/aarch64/aarch64-sve-builtins.cc: Include attribs.h.
422 (find_vector_type): Delete.
423 (add_sve_type_attribute): New function.
424 (lookup_sve_type_attribute): Likewise.
425 (register_builtin_types): Add an "SVE type" attribute to each type.
426 (register_tuple_type): Likewise.
427 (svbool_type_p, nvectors_if_data_type): Delete.
428 (mangle_builtin_type): Use lookup_sve_type_attribute.
429 (builtin_type_p): Likewise. Add an overload that returns the
430 number of constituent vector and predicate registers.
431 * config/aarch64/aarch64.c (aarch64_sve_argument_p): Delete.
432 (aarch64_returns_value_in_sve_regs_p): Use aarch64_sve::builtin_type_p
433 instead of aarch64_sve_argument_p.
434 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
435 (aarch64_pass_by_reference): Likewise.
436 (aarch64_function_value_1): Likewise.
437 (aarch64_return_in_memory): Likewise.
438 (aarch64_layout_arg): Likewise.
439
440 2020-01-07 Jakub Jelinek <jakub@redhat.com>
441
442 PR tree-optimization/93156
443 * tree-ssa-ccp.c (bit_value_binop): For x * x note that the second
444 least significant bit is always clear.
445
446 PR tree-optimization/93118
447 * match.pd ((x >> c) << c -> x & (-1<<c)): Add nop_convert?. Add new
448 simplifier with two intermediate conversions.
449
450 2020-01-07 Martin Liska <mliska@suse.cz>
451
452 * params.opt: Add Optimization for various parameters.
453
454 2020-01-07 Martin Liska <mliska@suse.cz>
455
456 PR ipa/83411
457 * doc/extend.texi: Explain cloning for target_clone
458 attribute.
459
460 2020-01-07 Martin Liska <mliska@suse.cz>
461
462 PR tree-optimization/92860
463 * common.opt: Make in Optimization option
464 as it is affected by -O0, which is an Optimization
465 option.
466 * tree-inline.c (tree_inlinable_function_p):
467 Use opt_for_fn for warn_inline.
468 (expand_call_inline): Likewise.
469
470 2020-01-07 Martin Liska <mliska@suse.cz>
471
472 PR tree-optimization/92860
473 * common.opt: Make flag_ree as optimization
474 attribute.
475
476 2020-01-07 Martin Liska <mliska@suse.cz>
477
478 PR optimization/92860
479 * params.opt: Mark param_min_crossjump_insns with Optimization
480 keyword.
481
482 2020-01-07 Luo Xiong Hu <luoxhu@linux.ibm.com>
483
484 * ipa-inline-analysis.c (estimate_growth): Fix typo.
485 * ipa-inline.c (caller_growth_limits): Use OR instead of AND.
486
487 2020-01-06 Michael Meissner <meissner@linux.ibm.com>
488
489 * config/rs6000/rs6000.c (hard_reg_and_mode_to_addr_mask): New
490 helper function to return the valid addressing formats for a given
491 hard register and mode.
492 (rs6000_adjust_vec_address): Call hard_reg_and_mode_to_addr_mask.
493
494 * config/rs6000/constraints.md (Q constraint): Update
495 documentation.
496 * doc/md.texi (RS/6000 constraints): Update 'Q' cosntraint
497 documentation.
498
499 * config/rs6000/vsx.md (vsx_extract_<mode>_var, VSX_D iterator):
500 Use 'Q' for doing vector extract from memory.
501 (vsx_extract_v4sf_var): Use 'Q' for doing vector extract from
502 memory.
503 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): Use 'Q' for
504 doing vector extract from memory.
505 (vsx_extract_<mode>_<VS_scalar>mode_var): Use 'Q' for doing vector
506 extract from memory.
507
508 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Add support
509 for the offset being 34-bits when -mcpu=future is used.
510
511 2020-01-06 John David Anglin <danglin@gcc.gnu.org>
512
513 * config/pa/pa.md: Revert change to use ordered_comparison_operator
514 instead of cmpib_comparison_operator in cmpib patterns.
515 * config/pa/predicates.md (cmpib_comparison_operator): Revert removal
516 of cmpib_comparison_operator. Revise comment.
517
518 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
519
520 * tree-vect-slp.c (vect_build_slp_tree_1): Require all shifts
521 in an IFN_DIV_POW2 node to be equal.
522
523 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
524
525 * tree-vect-stmts.c (vect_check_load_store_mask): Rename to...
526 (vect_check_scalar_mask): ...this.
527 (vectorizable_store, vectorizable_load): Update call accordingly.
528 (vectorizable_call): Use vect_check_scalar_mask to check the mask
529 argument in calls to conditional internal functions.
530
531 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
532
533 * config/gcn/gcn-valu.md (subv64di3): Use separate alternatives for
534 '0' matching inputs.
535 (subv64di3_exec): Likewise.
536
537 2020-01-06 Bryan Stenson <bryan@siliconvortex.com>
538
539 * config/mips/mips.c (vr4130_align_insns): Fix typo.
540 * doc/md.texi (movstr): Likewise.
541
542 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
543
544 * config/gcn/gcn-valu.md (vec_extract<mode><scalar_mode>): Add early
545 clobber.
546
547 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
548
549 * config/aarch64/t-aarch64 ($(srcdir)/config/aarch64/aarch64-tune.md):
550 Depend on...
551 (s-aarch64-tune-md): ...this new stamp file. Pipe the new contents
552 to a temporary file and use move-if-change to update the real
553 file where necessary.
554
555 2020-01-06 Richard Sandiford <richard.sandiford@arm.com>
556
557 * config/aarch64/aarch64-sve.md (@aarch64_sel_dup<mode>): Use Upl
558 rather than Upa for CPY /M.
559
560 2020-01-06 Andrew Stubbs <ams@codesourcery.com>
561
562 * config/gcn/gcn.c (gcn_inline_constant_p): Allow 64 as an inline
563 immediate.
564
565 2020-01-06 Martin Liska <mliska@suse.cz>
566
567 PR tree-optimization/92860
568 * params.opt: Mark param_max_combine_insns with Optimization
569 keyword.
570
571 2020-01-05 Jakub Jelinek <jakub@redhat.com>
572
573 PR target/93141
574 * config/i386/i386.md (SWIDWI): New mode iterator.
575 (DWI, dwi): Add TImode variants.
576 (addv<mode>4): Use SWIDWI iterator instead of SWI. Use
577 <general_hilo_operand> instead of <general_operand>. Use
578 CONST_SCALAR_INT_P instead of CONST_INT_P.
579 (*addv<mode>4_1): Rename to ...
580 (addv<mode>4_1): ... this.
581 (QWI): New mode attribute.
582 (*addv<dwi>4_doubleword, *addv<dwi>4_doubleword_1): New
583 define_insn_and_split patterns.
584 (*addv<mode>4_overflow_1, *addv<mode>4_overflow_2): New define_insn
585 patterns.
586 (uaddv<mode>4): Use SWIDWI iterator instead of SWI. Use
587 <general_hilo_operand> instead of <general_operand>.
588 (*addcarry<mode>_1): New define_insn.
589 (*add<dwi>3_doubleword_cc_overflow_1): New define_insn_and_split.
590
591 2020-01-03 Konstantin Kharlamov <Hi-Angel@yandex.ru>
592
593 * gdbinit.in (pr, prl, pt, pct, pgg, pgq, pgs, pge, pmz, pdd, pbs, pbm):
594 Use "call" instead of "set".
595
596 2020-01-03 Martin Jambor <mjambor@suse.cz>
597
598 PR ipa/92917
599 * ipa-cp.c (print_all_lattices): Skip functions without info.
600
601 2020-01-03 Jakub Jelinek <jakub@redhat.com>
602
603 PR target/93089
604 * config/i386/i386-options.c (ix86_simd_clone_adjust): If
605 TARGET_PREFER_AVX128, use prefer-vector-width=256 for 'c' and 'd'
606 simd clones. If TARGET_PREFER_AVX256, use prefer-vector-width=512
607 for 'e' simd clones.
608
609 PR target/93089
610 * config/i386/i386.opt (x_prefer_vector_width_type): Remove TargetSave
611 entry.
612 (mprefer-vector-width=): Add Save.
613 * config/i386/i386-options.c (ix86_target_string): Add PVW argument, print
614 -mprefer-vector-width= if non-zero. Fix up -mfpmath= comment.
615 (ix86_debug_options, ix86_function_specific_print): Adjust
616 ix86_target_string callers.
617 (ix86_valid_target_attribute_inner_p): Handle prefer-vector-width=.
618 (ix86_valid_target_attribute_tree): Likewise.
619 * config/i386/i386-options.h (ix86_target_string): Add PVW argument.
620 * config/i386/i386-expand.c (ix86_expand_builtin): Adjust
621 ix86_target_string caller.
622
623 PR target/93110
624 * config/i386/i386.md (abs<mode>2): Use expand_simple_binop instead of
625 emitting ASHIFTRT, XOR and MINUS by hand. Use gen_int_mode with QImode
626 instead of gen_int_shift_amount + convert_modes.
627
628 PR rtl-optimization/93088
629 * loop-iv.c (find_single_def_src): Punt after looking through
630 128 reg copies for regs with single definitions. Move definitions
631 to first uses.
632
633 2020-01-02 Dennis Zhang <dennis.zhang@arm.com>
634
635 * config/arm/arm-c.c (arm_cpu_builtins): Define
636 __ARM_FEATURE_MATMUL_INT8, __ARM_FEATURE_BF16_VECTOR_ARITHMETIC,
637 __ARM_FEATURE_BF16_SCALAR_ARITHMETIC, and
638 __ARM_BF16_FORMAT_ALTERNATIVE when enabled.
639 * config/arm/arm-cpus.in (armv8_6, i8mm, bf16): New features.
640 * config/arm/arm-tables.opt: Regenerated.
641 * config/arm/arm.c (arm_option_reconfigure_globals): Initialize
642 arm_arch_i8mm and arm_arch_bf16 when enabled.
643 * config/arm/arm.h (TARGET_I8MM): New macro.
644 (TARGET_BF16_FP, TARGET_BF16_SIMD): Likewise.
645 * config/arm/t-aprofile: Add matching rules for -march=armv8.6-a.
646 * config/arm/t-arm-elf (all_v8_archs): Add armv8.6-a.
647 * config/arm/t-multilib: Add matching rules for -march=armv8.6-a.
648 (v8_6_a_simd_variants): New.
649 (v8_*_a_simd_variants): Add i8mm and bf16.
650 * doc/invoke.texi (armv8.6-a, i8mm, bf16): Document new options.
651
652 2020-01-02 Jakub Jelinek <jakub@redhat.com>
653
654 PR ipa/93087
655 * predict.c (compute_function_frequency): Don't call
656 warn_function_cold on functions that already have cold attribute.
657
658 2020-01-01 John David Anglin <danglin@gcc.gnu.org>
659
660 PR target/67834
661 * config/pa/pa.c (pa_elf_select_rtx_section): New. Put references to
662 COMDAT group function labels in .data.rel.ro.local section.
663 * config/pa/pa32-linux.h (TARGET_ASM_SELECT_RTX_SECTION): Define.
664
665 PR target/93111
666 * config/pa/pa.md (scc): Use ordered_comparison_operator instead of
667 comparison_operator in B and S integer comparisons. Likewise, use
668 ordered_comparison_operator instead of cmpib_comparison_operator in
669 cmpib patterns.
670 * config/pa/predicates.md (cmpib_comparison_operator): Remove.
671
672 2020-01-01 Jakub Jelinek <jakub@redhat.com>
673
674 Update copyright years.
675
676 * gcc.c (process_command): Update copyright notice dates.
677 * gcov-dump.c (print_version): Ditto.
678 * gcov.c (print_version): Ditto.
679 * gcov-tool.c (print_version): Ditto.
680 * gengtype.c (create_file): Ditto.
681 * doc/cpp.texi: Bump @copying's copyright year.
682 * doc/cppinternals.texi: Ditto.
683 * doc/gcc.texi: Ditto.
684 * doc/gccint.texi: Ditto.
685 * doc/gcov.texi: Ditto.
686 * doc/install.texi: Ditto.
687 * doc/invoke.texi: Ditto.
688
689 2020-01-01 Jan Hubicka <hubicka@ucw.cz>
690
691 * ipa.c (walk_polymorphic_call_targets): Fix updating of overall
692 summary.
693
694 2020-01-01 Jakub Jelinek <jakub@redhat.com>
695
696 PR tree-optimization/93098
697 * match.pd (popcount): For shift amounts, use integer_onep
698 or wi::to_widest () == cst instead of tree_to_uhwi () == cst
699 tests. Make sure that precision is power of two larger than or equal
700 to 16. Ensure shift is never negative. Use HOST_WIDE_INT_UC macro
701 instead of ULL suffixed constants. Formatting fixes.
702 \f
703 Copyright (C) 2020 Free Software Foundation, Inc.
704
705 Copying and distribution of this file, with or without modification,
706 are permitted in any medium without royalty provided the copyright
707 notice and this notice are preserved.